@graphcommerce/magento-cart-items 10.0.0-canary.67 → 10.0.0-canary.68
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,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.0.0-canary.68
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#2557](https://github.com/graphcommerce-org/graphcommerce/pull/2557) [`ceaadd8`](https://github.com/graphcommerce-org/graphcommerce/commit/ceaadd87f0648982a068a3b07b1fa149c9127f49) - ## Material UI v5 → v7 Migration
|
|
8
|
+
|
|
9
|
+
This release upgrades Material UI from v5 to v7 with full CSS variables support. ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 10.0.0-canary.67
|
|
4
12
|
|
|
5
13
|
## 10.0.0-canary.66
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
filterNonNullableKeys,
|
|
8
8
|
NextLink,
|
|
9
9
|
responsiveVal,
|
|
10
|
+
sxx,
|
|
10
11
|
} from '@graphcommerce/next-ui'
|
|
11
12
|
import type { SxProps, Theme } from '@mui/material'
|
|
12
13
|
import { Badge, Box, Link } from '@mui/material'
|
|
@@ -51,7 +52,7 @@ export function CartItem(props: CartItemProps) {
|
|
|
51
52
|
return (
|
|
52
53
|
<Box
|
|
53
54
|
className={classes.item}
|
|
54
|
-
sx={
|
|
55
|
+
sx={sxx(
|
|
55
56
|
(theme) => ({
|
|
56
57
|
display: 'grid',
|
|
57
58
|
gridTemplate: `
|
|
@@ -71,7 +72,6 @@ export function CartItem(props: CartItemProps) {
|
|
|
71
72
|
gridTemplateColumns: `${rowImageSize} 4fr 1fr minmax(120px, 1fr) minmax(75px, 1fr)`,
|
|
72
73
|
marginBottom: theme.spacings.md,
|
|
73
74
|
},
|
|
74
|
-
|
|
75
75
|
'&:not(.withOptions)': {
|
|
76
76
|
display: 'grid',
|
|
77
77
|
gridTemplate: `
|
|
@@ -87,8 +87,8 @@ export function CartItem(props: CartItemProps) {
|
|
|
87
87
|
},
|
|
88
88
|
},
|
|
89
89
|
}),
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
sx,
|
|
91
|
+
)}
|
|
92
92
|
>
|
|
93
93
|
<Badge
|
|
94
94
|
color='default'
|
|
@@ -98,9 +98,9 @@ export function CartItem(props: CartItemProps) {
|
|
|
98
98
|
fabProps={{ className: classes.badge }}
|
|
99
99
|
sx={(theme) => ({
|
|
100
100
|
'& > button': {
|
|
101
|
-
background: theme.palette.background.paper,
|
|
101
|
+
background: theme.vars.palette.background.paper,
|
|
102
102
|
'&:hover, &:active, &:visited': {
|
|
103
|
-
background: theme.palette.background.paper,
|
|
103
|
+
background: theme.vars.palette.background.paper,
|
|
104
104
|
},
|
|
105
105
|
[theme.breakpoints.down('md')]: {
|
|
106
106
|
width: 30,
|
|
@@ -123,7 +123,7 @@ export function CartItem(props: CartItemProps) {
|
|
|
123
123
|
width: rowImageSize,
|
|
124
124
|
height: rowImageSize,
|
|
125
125
|
padding: responsiveVal(5, 10),
|
|
126
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
126
|
+
border: `1px solid ${theme.vars.palette.divider}`,
|
|
127
127
|
borderRadius: '50%',
|
|
128
128
|
alignSelf: 'center',
|
|
129
129
|
})}
|
|
@@ -143,7 +143,7 @@ export function CartItem(props: CartItemProps) {
|
|
|
143
143
|
className={classes.image}
|
|
144
144
|
sx={(theme) => ({
|
|
145
145
|
gridColumn: 1,
|
|
146
|
-
backgroundColor: theme.palette.background.image,
|
|
146
|
+
backgroundColor: theme.vars.palette.background.image,
|
|
147
147
|
objectFit: 'cover',
|
|
148
148
|
display: 'block',
|
|
149
149
|
width: '110% !important',
|
|
@@ -165,7 +165,7 @@ export function CartItem(props: CartItemProps) {
|
|
|
165
165
|
sx={(theme) => ({
|
|
166
166
|
typgrapht: 'subtitle1',
|
|
167
167
|
fontWeight: theme.typography.fontWeightBold,
|
|
168
|
-
color: theme.palette.text.primary,
|
|
168
|
+
color: theme.vars.palette.text.primary,
|
|
169
169
|
textDecoration: 'none',
|
|
170
170
|
flexWrap: 'nowrap',
|
|
171
171
|
maxWidth: 'max-content',
|
|
@@ -189,7 +189,7 @@ export function CartItem(props: CartItemProps) {
|
|
|
189
189
|
sx={(theme) => ({
|
|
190
190
|
gridArea: 'itemPrice',
|
|
191
191
|
textAlign: 'left',
|
|
192
|
-
color: theme.palette.text.secondary,
|
|
192
|
+
color: theme.vars.palette.text.secondary,
|
|
193
193
|
alignSelf: 'center',
|
|
194
194
|
[theme.breakpoints.up('sm')]: {
|
|
195
195
|
alignSelf: 'flex-start',
|
|
@@ -3,7 +3,12 @@ import { useDisplayInclTax } from '@graphcommerce/magento-cart/hooks'
|
|
|
3
3
|
import { productPath } from '@graphcommerce/magento-product'
|
|
4
4
|
import { Money, PriceModifiersList, type PriceModifier } from '@graphcommerce/magento-store'
|
|
5
5
|
import type { ActionCardProps } from '@graphcommerce/next-ui'
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
ActionCard,
|
|
8
|
+
actionCardImageSizes,
|
|
9
|
+
filterNonNullableKeys,
|
|
10
|
+
sxx,
|
|
11
|
+
} from '@graphcommerce/next-ui'
|
|
7
12
|
import { Trans } from '@lingui/react/macro'
|
|
8
13
|
import { Box, Button, Link } from '@mui/material'
|
|
9
14
|
import type { CartItemFragment } from '../../Api/CartItem.gql'
|
|
@@ -50,7 +55,7 @@ export function CartItemActionCard(props: CartItemActionCardProps) {
|
|
|
50
55
|
return (
|
|
51
56
|
<ActionCard
|
|
52
57
|
value={uid}
|
|
53
|
-
sx={
|
|
58
|
+
sx={sxx(
|
|
54
59
|
(theme) => ({
|
|
55
60
|
'&.ActionCard-root': {
|
|
56
61
|
px: 0,
|
|
@@ -69,9 +74,6 @@ export function CartItemActionCard(props: CartItemActionCardProps) {
|
|
|
69
74
|
'& .ActionCard-end': {
|
|
70
75
|
justifyContent: 'space-between',
|
|
71
76
|
},
|
|
72
|
-
'& .ActionCard-action': {
|
|
73
|
-
pr: readOnly ? 0 : theme.spacings.xs,
|
|
74
|
-
},
|
|
75
77
|
'& .ActionCard-image': {
|
|
76
78
|
alignSelf: 'flex-start',
|
|
77
79
|
},
|
|
@@ -81,12 +83,33 @@ export function CartItemActionCard(props: CartItemActionCardProps) {
|
|
|
81
83
|
justifyItems: 'start',
|
|
82
84
|
},
|
|
83
85
|
'& .ActionCard-price': {
|
|
84
|
-
pr: readOnly ? 0 : theme.spacings.xs,
|
|
85
86
|
mb: { xs: 0.5, sm: 0 },
|
|
86
87
|
},
|
|
87
88
|
}),
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
readOnly
|
|
90
|
+
? {
|
|
91
|
+
'& .ActionCard-action': {
|
|
92
|
+
pr: 0,
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
: (theme) => ({
|
|
96
|
+
'& .ActionCard-action': {
|
|
97
|
+
pr: theme.spacings.xs,
|
|
98
|
+
},
|
|
99
|
+
}),
|
|
100
|
+
readOnly
|
|
101
|
+
? {
|
|
102
|
+
'& .ActionCard-price': {
|
|
103
|
+
pr: 0,
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
: (theme) => ({
|
|
107
|
+
'& .ActionCard-price': {
|
|
108
|
+
pr: theme.spacings.xs,
|
|
109
|
+
},
|
|
110
|
+
}),
|
|
111
|
+
sx,
|
|
112
|
+
)}
|
|
90
113
|
image={
|
|
91
114
|
product.thumbnail?.url ? (
|
|
92
115
|
<Image
|
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": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.68",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
".": "./index.ts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/ecommerce-ui": "^10.0.0-canary.
|
|
19
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.
|
|
20
|
-
"@graphcommerce/framer-next-pages": "^10.0.0-canary.
|
|
21
|
-
"@graphcommerce/graphql": "^10.0.0-canary.
|
|
22
|
-
"@graphcommerce/image": "^10.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-cart": "^10.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-customer": "^10.0.0-canary.
|
|
25
|
-
"@graphcommerce/magento-product": "^10.0.0-canary.
|
|
26
|
-
"@graphcommerce/magento-store": "^10.0.0-canary.
|
|
27
|
-
"@graphcommerce/next-ui": "^10.0.0-canary.
|
|
28
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
29
|
-
"@graphcommerce/react-hook-form": "^10.0.0-canary.
|
|
30
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.
|
|
18
|
+
"@graphcommerce/ecommerce-ui": "^10.0.0-canary.68",
|
|
19
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
|
|
20
|
+
"@graphcommerce/framer-next-pages": "^10.0.0-canary.68",
|
|
21
|
+
"@graphcommerce/graphql": "^10.0.0-canary.68",
|
|
22
|
+
"@graphcommerce/image": "^10.0.0-canary.68",
|
|
23
|
+
"@graphcommerce/magento-cart": "^10.0.0-canary.68",
|
|
24
|
+
"@graphcommerce/magento-customer": "^10.0.0-canary.68",
|
|
25
|
+
"@graphcommerce/magento-product": "^10.0.0-canary.68",
|
|
26
|
+
"@graphcommerce/magento-store": "^10.0.0-canary.68",
|
|
27
|
+
"@graphcommerce/next-ui": "^10.0.0-canary.68",
|
|
28
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
|
|
29
|
+
"@graphcommerce/react-hook-form": "^10.0.0-canary.68",
|
|
30
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
|
|
31
31
|
"@lingui/core": "^5",
|
|
32
32
|
"@lingui/macro": "^5",
|
|
33
33
|
"@lingui/react": "^5",
|
|
34
|
-
"@mui/material": "^
|
|
34
|
+
"@mui/material": "^7.0.0",
|
|
35
35
|
"framer-motion": "^11.0.0",
|
|
36
36
|
"next": "*",
|
|
37
37
|
"react": "^19.2.0",
|