@graphcommerce/magento-cart 3.5.6 → 3.5.10
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
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [3.5.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.5.8...@graphcommerce/magento-cart@3.5.9) (2021-11-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Checkout button margin consistency ([9fcf7e7](https://github.com/ho-nl/m2-pwa/commit/9fcf7e7d96172448b2d2911771d6bf70ab976594))
|
|
12
|
+
* remove hardcoded fontSize ([e4e09e1](https://github.com/ho-nl/m2-pwa/commit/e4e09e11baeb8edeff634550b8cdb88571d96911))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.5.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.4.5...@graphcommerce/magento-cart@3.5.0) (2021-11-02)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { Money } from '@graphcommerce/magento-store'
|
|
2
|
-
import {
|
|
3
|
-
Button,
|
|
4
|
-
iconChevronRight,
|
|
5
|
-
responsiveVal,
|
|
6
|
-
SvgImage,
|
|
7
|
-
SvgImageSimple,
|
|
8
|
-
} from '@graphcommerce/next-ui'
|
|
2
|
+
import { Button, iconChevronRight, SvgImageSimple } from '@graphcommerce/next-ui'
|
|
9
3
|
import { makeStyles, Theme } from '@material-ui/core'
|
|
10
4
|
import PageLink from 'next/link'
|
|
11
5
|
import React, { PropsWithChildren } from 'react'
|
|
@@ -17,27 +11,19 @@ const useStyles = makeStyles(
|
|
|
17
11
|
textAlign: 'center',
|
|
18
12
|
},
|
|
19
13
|
checkoutButton: {
|
|
20
|
-
|
|
21
|
-
fontSize: 17,
|
|
22
|
-
fontFamily: theme.typography.fontFamily,
|
|
23
|
-
fontWeight: 500,
|
|
14
|
+
marginTop: theme.spacings.md,
|
|
24
15
|
marginBottom: theme.spacings.lg,
|
|
25
|
-
marginTop: theme.spacings.lg,
|
|
26
|
-
width: '100%',
|
|
27
|
-
maxHeight: 60,
|
|
28
|
-
maxWidth: 440,
|
|
29
|
-
padding: `${theme.spacings.xs} ${theme.spacings.sm}`,
|
|
30
16
|
},
|
|
31
17
|
checkoutButtonIcon: {
|
|
32
18
|
marginLeft: 0,
|
|
33
19
|
},
|
|
34
|
-
|
|
35
|
-
fontWeight: theme.typography.fontWeightBold,
|
|
20
|
+
checkoutButtonTotal: {
|
|
36
21
|
paddingRight: theme.spacings.xxs,
|
|
37
22
|
'& ~ span.MuiButton-endIcon': {
|
|
38
23
|
marginLeft: 6,
|
|
39
24
|
},
|
|
40
25
|
},
|
|
26
|
+
checkoutMoney: {},
|
|
41
27
|
}),
|
|
42
28
|
{ name: 'Cart' },
|
|
43
29
|
)
|
|
@@ -55,12 +41,17 @@ export default function CartStartCheckout(props: CartStartCheckoutProps) {
|
|
|
55
41
|
<Button
|
|
56
42
|
variant='pill'
|
|
57
43
|
color='secondary'
|
|
44
|
+
size='large'
|
|
58
45
|
className={classes.checkoutButton}
|
|
59
46
|
endIcon={<SvgImageSimple src={iconChevronRight} inverted />}
|
|
60
47
|
disabled={!hasTotals}
|
|
61
48
|
>
|
|
62
|
-
<span className={classes.
|
|
63
|
-
{hasTotals &&
|
|
49
|
+
<span className={classes.checkoutButtonTotal}>Start Checkout</span>{' '}
|
|
50
|
+
{hasTotals && (
|
|
51
|
+
<span className={classes.checkoutMoney}>
|
|
52
|
+
<Money {...prices?.grand_total} />
|
|
53
|
+
</span>
|
|
54
|
+
)}
|
|
64
55
|
</Button>
|
|
65
56
|
</PageLink>
|
|
66
57
|
{children}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.10",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/client": "^3.4.16",
|
|
24
|
-
"@graphcommerce/framer-scroller": "^1.0.
|
|
24
|
+
"@graphcommerce/framer-scroller": "^1.0.2",
|
|
25
25
|
"@graphcommerce/graphql": "^2.105.3",
|
|
26
26
|
"@graphcommerce/image": "^2.105.2",
|
|
27
|
-
"@graphcommerce/magento-customer": "^3.4.
|
|
27
|
+
"@graphcommerce/magento-customer": "^3.4.10",
|
|
28
28
|
"@graphcommerce/magento-graphql": "^2.104.3",
|
|
29
|
-
"@graphcommerce/magento-store": "^3.2.
|
|
30
|
-
"@graphcommerce/next-ui": "^3.
|
|
29
|
+
"@graphcommerce/magento-store": "^3.2.9",
|
|
30
|
+
"@graphcommerce/next-ui": "^3.14.1",
|
|
31
31
|
"@graphcommerce/react-hook-form": "^2.103.0",
|
|
32
32
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
33
33
|
"@material-ui/core": "^4.12.3",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"react": "^17.0.2",
|
|
39
39
|
"react-dom": "^17.0.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "0257164ff213435dc3ca5fbfadf7ef9b57657037"
|
|
42
42
|
}
|