@graphcommerce/magento-cart-items 3.1.16 → 3.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/index.ts +0 -1
- package/package.json +6 -6
- package/DeliveryLabel/DeliveryLabel.tsx +0 -68
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.1.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ae28fb14c`](https://github.com/graphcommerce-org/graphcommerce/commit/ae28fb14cec298c52970260a4fc2c2551b5f175e), [`98d6a9cce`](https://github.com/graphcommerce-org/graphcommerce/commit/98d6a9cce1bb9514088be0af2736721b3edda467), [`aab6b4fa5`](https://github.com/graphcommerce-org/graphcommerce/commit/aab6b4fa5b4708003cfb5bf673a617dc5dbf3078)]:
|
|
8
|
+
- @graphcommerce/magento-cart@4.9.2
|
|
9
|
+
- @graphcommerce/next-ui@4.29.1
|
|
10
|
+
- @graphcommerce/magento-product@4.8.1
|
|
11
|
+
- @graphcommerce/magento-customer@4.12.2
|
|
12
|
+
- @graphcommerce/magento-store@4.3.4
|
|
13
|
+
|
|
14
|
+
## 3.1.17
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`2b5451395`](https://github.com/graphcommerce-org/graphcommerce/commit/2b5451395dc1173de55d18d08968866e561f90ab), [`e76df6dc3`](https://github.com/graphcommerce-org/graphcommerce/commit/e76df6dc37c11c793a5d008ba36932d17dc23855), [`c4ed376e2`](https://github.com/graphcommerce-org/graphcommerce/commit/c4ed376e2c72b16b34704d7d1ca69c074de172ba), [`78d7d51cb`](https://github.com/graphcommerce-org/graphcommerce/commit/78d7d51cb1551601d3a4756cd1f2157a49ff93b9), [`0bd9ea582`](https://github.com/graphcommerce-org/graphcommerce/commit/0bd9ea58230dde79c5fe2cdb07e9860151460270)]:
|
|
19
|
+
- @graphcommerce/magento-product@4.8.0
|
|
20
|
+
- @graphcommerce/next-ui@4.29.0
|
|
21
|
+
- @graphcommerce/magento-cart@4.9.1
|
|
22
|
+
- @graphcommerce/magento-customer@4.12.1
|
|
23
|
+
- @graphcommerce/magento-store@4.3.3
|
|
24
|
+
|
|
3
25
|
## 3.1.16
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/index.ts
CHANGED
|
@@ -4,6 +4,5 @@ export * from './CartItem/CartItem'
|
|
|
4
4
|
export * from './CartItems/CartItems'
|
|
5
5
|
export * from './components/ActionCartItem/ActionCartItem'
|
|
6
6
|
export * from './components/SelectedCustomizableOptions/SelectedCustomizableOptions'
|
|
7
|
-
export * from './DeliveryLabel/DeliveryLabel'
|
|
8
7
|
export * from './RemoveItemFromCart/RemoveItemFromCartFab'
|
|
9
8
|
export * from './UpdateItemQuantity/UpdateItemQuantity'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-items",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.18",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@graphcommerce/graphql": "3.5.0",
|
|
22
22
|
"@graphcommerce/image": "3.1.10",
|
|
23
|
-
"@graphcommerce/magento-cart": "4.9.
|
|
24
|
-
"@graphcommerce/magento-customer": "4.12.
|
|
25
|
-
"@graphcommerce/magento-product": "4.
|
|
26
|
-
"@graphcommerce/magento-store": "4.3.
|
|
27
|
-
"@graphcommerce/next-ui": "4.
|
|
23
|
+
"@graphcommerce/magento-cart": "4.9.2",
|
|
24
|
+
"@graphcommerce/magento-customer": "4.12.2",
|
|
25
|
+
"@graphcommerce/magento-product": "4.8.1",
|
|
26
|
+
"@graphcommerce/magento-store": "4.3.4",
|
|
27
|
+
"@graphcommerce/next-ui": "4.29.1",
|
|
28
28
|
"@graphcommerce/react-hook-form": "3.3.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { extendableComponent } from '@graphcommerce/next-ui'
|
|
2
|
-
import { Box, IconButton, Popover, SxProps, Theme } from '@mui/material'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
export type DeliveryLabelProps = { sx?: SxProps<Theme> }
|
|
6
|
-
|
|
7
|
-
const name = 'DeliveryLabel' as const
|
|
8
|
-
const parts = ['root', 'labelContainer', 'label', 'popover'] as const
|
|
9
|
-
const { classes } = extendableComponent(name, parts)
|
|
10
|
-
|
|
11
|
-
export function DeliveryLabel(props: DeliveryLabelProps) {
|
|
12
|
-
const { sx = [] } = props
|
|
13
|
-
const [anchorEl, setAnchorEl] = React.useState<HTMLButtonElement | null>(null)
|
|
14
|
-
|
|
15
|
-
const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {
|
|
16
|
-
setAnchorEl(event.currentTarget)
|
|
17
|
-
}
|
|
18
|
-
const handleClose = () => setAnchorEl(null)
|
|
19
|
-
|
|
20
|
-
const open = Boolean(anchorEl)
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<Box
|
|
24
|
-
className={classes.root}
|
|
25
|
-
sx={[{ display: 'inline-block' }, ...(Array.isArray(sx) ? sx : [sx])]}
|
|
26
|
-
>
|
|
27
|
-
<IconButton
|
|
28
|
-
component='button'
|
|
29
|
-
className={classes.labelContainer}
|
|
30
|
-
sx={{ padding: '5px' }}
|
|
31
|
-
onClick={handleClick}
|
|
32
|
-
size='large'
|
|
33
|
-
>
|
|
34
|
-
<Box
|
|
35
|
-
className={classes.label}
|
|
36
|
-
sx={{
|
|
37
|
-
borderRadius: '100%',
|
|
38
|
-
width: 10,
|
|
39
|
-
height: 10,
|
|
40
|
-
background: '#01D26A', // TODO: order statuses. green, yellow, red
|
|
41
|
-
}}
|
|
42
|
-
/>
|
|
43
|
-
</IconButton>
|
|
44
|
-
<Popover
|
|
45
|
-
id={open ? 'simple-popover' : undefined}
|
|
46
|
-
open={open}
|
|
47
|
-
anchorEl={anchorEl}
|
|
48
|
-
onClose={handleClose}
|
|
49
|
-
anchorOrigin={{
|
|
50
|
-
vertical: 'bottom',
|
|
51
|
-
horizontal: 'center',
|
|
52
|
-
}}
|
|
53
|
-
transformOrigin={{
|
|
54
|
-
vertical: 'top',
|
|
55
|
-
horizontal: 'center',
|
|
56
|
-
}}
|
|
57
|
-
className={classes.popover}
|
|
58
|
-
sx={{
|
|
59
|
-
'& > .MuiPaper-root': {
|
|
60
|
-
padding: '6px',
|
|
61
|
-
},
|
|
62
|
-
}}
|
|
63
|
-
>
|
|
64
|
-
Ordered before <b>23:00</b>, delivery <b>tomorrow</b>
|
|
65
|
-
</Popover>
|
|
66
|
-
</Box>
|
|
67
|
-
)
|
|
68
|
-
}
|