@graphcommerce/magento-cart-items 3.1.16 → 3.1.17

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - 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)]:
8
+ - @graphcommerce/magento-product@4.8.0
9
+ - @graphcommerce/next-ui@4.29.0
10
+ - @graphcommerce/magento-cart@4.9.1
11
+ - @graphcommerce/magento-customer@4.12.1
12
+ - @graphcommerce/magento-store@4.3.3
13
+
3
14
  ## 3.1.16
4
15
 
5
16
  ### 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.16",
5
+ "version": "3.1.17",
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.0",
24
- "@graphcommerce/magento-customer": "4.12.0",
25
- "@graphcommerce/magento-product": "4.7.3",
26
- "@graphcommerce/magento-store": "4.3.2",
27
- "@graphcommerce/next-ui": "4.28.1",
23
+ "@graphcommerce/magento-cart": "4.9.1",
24
+ "@graphcommerce/magento-customer": "4.12.1",
25
+ "@graphcommerce/magento-product": "4.8.0",
26
+ "@graphcommerce/magento-store": "4.3.3",
27
+ "@graphcommerce/next-ui": "4.29.0",
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
- }