@graphcommerce/magento-cart-coupon 3.0.5 → 3.0.6
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,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1345](https://github.com/graphcommerce-org/graphcommerce/pull/1345) [`eee3c867d`](https://github.com/graphcommerce-org/graphcommerce/commit/eee3c867d0c56401b4290862917a2e34cea92ffe) Thanks [@NickdeK](https://github.com/NickdeK)! - Changed active coupon element to Chip and fixed alignment.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`b76d0892a`](https://github.com/graphcommerce-org/graphcommerce/commit/b76d0892a11bd916aefd46ba72c2da00e38ce45b)]:
|
|
10
|
+
- @graphcommerce/next-ui@4.3.2
|
|
11
|
+
|
|
3
12
|
## 3.0.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -62,6 +62,7 @@ export function CouponAccordion(props: CouponAccordionProps) {
|
|
|
62
62
|
className={classes.button}
|
|
63
63
|
sx={(theme) => ({
|
|
64
64
|
justifyContent: 'space-between',
|
|
65
|
+
gap: theme.spacings.sm,
|
|
65
66
|
padding: `${theme.spacings.xs} ${theme.spacings.sm}`,
|
|
66
67
|
width: '100%',
|
|
67
68
|
borderRadius: responsiveVal(theme.shape.borderRadius * 3, theme.shape.borderRadius * 4),
|
|
@@ -88,6 +89,7 @@ export function CouponAccordion(props: CouponAccordionProps) {
|
|
|
88
89
|
},
|
|
89
90
|
'&.disabled': {
|
|
90
91
|
cursor: 'default',
|
|
92
|
+
justifyContent: 'flex-start',
|
|
91
93
|
'&:hover': {
|
|
92
94
|
background: 'transparent',
|
|
93
95
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFormGqlMutationCart, ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { extendableComponent } from '@graphcommerce/next-ui'
|
|
3
|
+
import { Box, SxProps, Theme, Chip } from '@mui/material'
|
|
4
4
|
import { CouponFragment } from '../Api/Coupon.gql'
|
|
5
5
|
import { RemoveCouponFormDocument } from './RemoveCouponForm.gql'
|
|
6
6
|
|
|
@@ -18,24 +18,15 @@ export function RemoveCouponForm(props: RemoveCouponFormProps) {
|
|
|
18
18
|
const submitHandler = handleSubmit(() => {})
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<Box
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
className={classes.button}
|
|
27
|
-
endIcon={<IconSvg src={iconCancelAlt} />}
|
|
21
|
+
<Box className={classes.root} sx={sx}>
|
|
22
|
+
<Chip
|
|
23
|
+
label={applied_coupons?.[0]?.code}
|
|
24
|
+
onDelete={submitHandler}
|
|
25
|
+
size='responsive'
|
|
28
26
|
sx={(theme) => ({
|
|
29
|
-
|
|
30
|
-
background: lighten(theme.palette.secondary.light, theme.palette.action.hoverOpacity),
|
|
31
|
-
'& svg': {
|
|
32
|
-
stroke: 'transparent',
|
|
33
|
-
fill: theme.palette.secondary.main,
|
|
34
|
-
},
|
|
27
|
+
...theme.typography.overline,
|
|
35
28
|
})}
|
|
36
|
-
|
|
37
|
-
{applied_coupons?.[0]?.code}
|
|
38
|
-
</Button>
|
|
29
|
+
/>
|
|
39
30
|
<ApolloCartErrorAlert error={error} />
|
|
40
31
|
</Box>
|
|
41
32
|
)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-coupon",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.6",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@graphcommerce/image": "^3.1.1",
|
|
23
23
|
"@graphcommerce/magento-cart": "^4.1.4",
|
|
24
24
|
"@graphcommerce/magento-store": "^4.1.2",
|
|
25
|
-
"@graphcommerce/next-ui": "^4.2
|
|
25
|
+
"@graphcommerce/next-ui": "^4.3.2",
|
|
26
26
|
"@graphcommerce/react-hook-form": "^3.0.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|