@graphcommerce/magento-cart-coupon 2.107.22 → 2.108.3
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useFormGqlMutationCart, ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
|
|
2
2
|
import { Button, responsiveVal, UseStyles } from '@graphcommerce/next-ui'
|
|
3
|
+
import { Trans } from '@lingui/macro'
|
|
3
4
|
import { FormControl, makeStyles, TextField, Theme } from '@material-ui/core'
|
|
4
5
|
import React from 'react'
|
|
5
6
|
import { ApplyCouponFormDocument } from './ApplyCouponForm.gql'
|
|
@@ -43,7 +44,7 @@ export default function ApplyCouponForm(props: ApplyCouponFormProps) {
|
|
|
43
44
|
color='secondary'
|
|
44
45
|
variant='pill'
|
|
45
46
|
>
|
|
46
|
-
Apply
|
|
47
|
+
<Trans>Apply</Trans>
|
|
47
48
|
</Button>
|
|
48
49
|
</FormControl>
|
|
49
50
|
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.107.22...@graphcommerce/magento-cart-coupon@2.108.0) (2021-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [2.107.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-coupon@2.107.0...@graphcommerce/magento-cart-coupon@2.107.1) (2021-11-02)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
AnimatedRow,
|
|
4
4
|
iconChevronDown,
|
|
5
5
|
iconChevronUp,
|
|
6
|
-
SvgImage,
|
|
7
6
|
SvgImageSimple,
|
|
8
7
|
UseStyles,
|
|
9
8
|
} from '@graphcommerce/next-ui'
|
|
9
|
+
import { Trans } from '@lingui/macro'
|
|
10
10
|
import { Button, makeStyles, Theme, Typography } from '@material-ui/core'
|
|
11
11
|
import clsx from 'clsx'
|
|
12
12
|
import { AnimatePresence, m } from 'framer-motion'
|
|
@@ -93,7 +93,9 @@ export default function CouponAccordion(props: CouponAccordionProps) {
|
|
|
93
93
|
</>
|
|
94
94
|
}
|
|
95
95
|
>
|
|
96
|
-
<Typography variant='subtitle1'>
|
|
96
|
+
<Typography variant='subtitle1'>
|
|
97
|
+
<Trans>Discount code</Trans>
|
|
98
|
+
</Typography>
|
|
97
99
|
<AnimatePresence>
|
|
98
100
|
{coupon && (
|
|
99
101
|
<m.div
|
|
@@ -14,23 +14,6 @@ const useStyles = makeStyles(
|
|
|
14
14
|
stroke: 'transparent',
|
|
15
15
|
fill: theme.palette.secondary.main,
|
|
16
16
|
},
|
|
17
|
-
// margin: `-1px 0 -2px`,
|
|
18
|
-
// padding: `4px ${theme.spacings.xxs} 4px ${theme.spacings.xxs}`,
|
|
19
|
-
// color: theme.palette.secondary.main,
|
|
20
|
-
// borderRadius: 4,
|
|
21
|
-
// ...theme.typography.body2,
|
|
22
|
-
// fontWeight: 600,
|
|
23
|
-
// display: 'flex',
|
|
24
|
-
// alignItems: 'center',
|
|
25
|
-
// '& .MuiIconButton-root': {
|
|
26
|
-
// width: 14,
|
|
27
|
-
// height: 14,
|
|
28
|
-
// marginLeft: 4,
|
|
29
|
-
// color: theme.palette.grey[400],
|
|
30
|
-
// '& .MuiSvgIcon-root': {
|
|
31
|
-
// padding: 2,
|
|
32
|
-
// },
|
|
33
|
-
// },
|
|
34
17
|
},
|
|
35
18
|
}),
|
|
36
19
|
{ name: 'RemoveCouponForm' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart-coupon",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.108.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.5",
|
|
18
18
|
"@graphcommerce/prettier-config-pwa": "^3.0.4",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
20
20
|
"@playwright/test": "^1.16.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.4.16",
|
|
24
|
-
"@graphcommerce/graphql": "^2.105.
|
|
25
|
-
"@graphcommerce/image": "^2.105.
|
|
26
|
-
"@graphcommerce/magento-cart": "^3.
|
|
27
|
-
"@graphcommerce/magento-store": "^3.
|
|
28
|
-
"@graphcommerce/next-ui": "^3.
|
|
29
|
-
"@graphcommerce/react-hook-form": "^2.
|
|
30
|
-
"@
|
|
24
|
+
"@graphcommerce/graphql": "^2.105.5",
|
|
25
|
+
"@graphcommerce/image": "^2.105.4",
|
|
26
|
+
"@graphcommerce/magento-cart": "^3.7.3",
|
|
27
|
+
"@graphcommerce/magento-store": "^3.3.3",
|
|
28
|
+
"@graphcommerce/next-ui": "^3.18.1",
|
|
29
|
+
"@graphcommerce/react-hook-form": "^2.104.0",
|
|
30
|
+
"@lingui/macro": "^3.12.1",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
32
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
33
33
|
"clsx": "^1.1.1",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"react": "^17.0.2",
|
|
37
37
|
"react-dom": "^17.0.2"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "5ed153aa2213be8363138c0956872fe2fde2f590"
|
|
40
40
|
}
|