@graphcommerce/magento-cart 3.4.4 → 3.5.2
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,25 @@
|
|
|
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
|
|
12
|
+
* darkTheme, prevent cart total color overlap ([9d4d7aa](https://github.com/ho-nl/m2-pwa/commit/9d4d7aa20ec05f13662efccce99dee10e462bf18))
|
|
13
|
+
* remove text='bold', make contained button text stronger by default ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
|
|
19
|
+
* darkTheme ([3ed6647](https://github.com/ho-nl/m2-pwa/commit/3ed664714670315bc9f20542549724f66cb5052d))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [3.4.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.4.0...@graphcommerce/magento-cart@3.4.1) (2021-10-28)
|
|
7
26
|
|
|
8
27
|
|
|
@@ -5,7 +5,8 @@ import {
|
|
|
5
5
|
FixedFab,
|
|
6
6
|
useFixedFabAnimation,
|
|
7
7
|
} from '@graphcommerce/next-ui'
|
|
8
|
-
import { Fab, FabProps, NoSsr } from '@material-ui/core'
|
|
8
|
+
import { Fab, FabProps, makeStyles, NoSsr, Theme } from '@material-ui/core'
|
|
9
|
+
import clsx from 'clsx'
|
|
9
10
|
import { m } from 'framer-motion'
|
|
10
11
|
import PageLink from 'next/link'
|
|
11
12
|
import React from 'react'
|
|
@@ -19,8 +20,16 @@ export type CartFabProps = {
|
|
|
19
20
|
|
|
20
21
|
type CartFabContentProps = CartFabProps & CartTotalQuantityFragment
|
|
21
22
|
|
|
23
|
+
const useStyles = makeStyles((theme: Theme) => ({
|
|
24
|
+
fab: {
|
|
25
|
+
boxShadow: 'none',
|
|
26
|
+
background: theme.palette.background.default,
|
|
27
|
+
},
|
|
28
|
+
}))
|
|
29
|
+
|
|
22
30
|
function CartFabContent(props: CartFabContentProps) {
|
|
23
|
-
const { total_quantity, icon, ...fabProps } = props
|
|
31
|
+
const { total_quantity, icon, className, ...fabProps } = props
|
|
32
|
+
const classes = useStyles()
|
|
24
33
|
const cartIcon = icon ?? <SvgImageSimple src={iconShoppingBag} loading='eager' size='large' />
|
|
25
34
|
const { boxShadow } = useFixedFabAnimation()
|
|
26
35
|
|
|
@@ -31,7 +40,7 @@ function CartFabContent(props: CartFabContentProps) {
|
|
|
31
40
|
aria-label='Cart'
|
|
32
41
|
color='inherit'
|
|
33
42
|
size='large'
|
|
34
|
-
|
|
43
|
+
className={clsx(classes.fab, className)}
|
|
35
44
|
{...fabProps}
|
|
36
45
|
>
|
|
37
46
|
{total_quantity > 0 ? (
|
|
@@ -10,11 +10,14 @@ import { GetCartSummaryDocument } from './GetCartSummary.gql'
|
|
|
10
10
|
const useStyles = makeStyles(
|
|
11
11
|
(theme: Theme) => ({
|
|
12
12
|
root: {
|
|
13
|
-
borderRadius: 4,
|
|
14
|
-
background: '#FFFADD',
|
|
15
13
|
margin: `${theme.spacings.sm} 0`,
|
|
14
|
+
'& div:last-child': {
|
|
15
|
+
borderRadius: '0 0 4px 4px',
|
|
16
|
+
},
|
|
16
17
|
},
|
|
17
18
|
detailsContainer: {
|
|
19
|
+
borderRadius: '4px 4px 0 0',
|
|
20
|
+
background: theme.palette.type === 'light' ? '#FFE10820' : theme.palette.background.paper,
|
|
18
21
|
padding: theme.spacings.sm,
|
|
19
22
|
gridColumnGap: theme.spacings.xl,
|
|
20
23
|
gridRowGap: theme.spacings.sm,
|
|
@@ -11,7 +11,7 @@ const useStyles = makeStyles(
|
|
|
11
11
|
(theme: Theme) => ({
|
|
12
12
|
costsContainer: {
|
|
13
13
|
borderRadius: 4,
|
|
14
|
-
background: '#
|
|
14
|
+
background: theme.palette.type === 'light' ? '#FFE10820' : theme.palette.background.paper,
|
|
15
15
|
padding: `${theme.spacings.xs} ${theme.spacings.sm}`,
|
|
16
16
|
},
|
|
17
17
|
containerMarginTop: {
|
|
@@ -91,7 +91,6 @@ export default function InlineAccount(props: InlineAccountProps) {
|
|
|
91
91
|
<Button
|
|
92
92
|
variant='pill'
|
|
93
93
|
color='secondary'
|
|
94
|
-
text='bold'
|
|
95
94
|
loading={loading}
|
|
96
95
|
onClick={() => setToggled(!toggled)}
|
|
97
96
|
className={classes.button}
|
|
@@ -137,7 +136,6 @@ export default function InlineAccount(props: InlineAccountProps) {
|
|
|
137
136
|
<Button
|
|
138
137
|
variant='pill'
|
|
139
138
|
color='secondary'
|
|
140
|
-
text='bold'
|
|
141
139
|
href={accountHref}
|
|
142
140
|
className={classes.button}
|
|
143
141
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@graphcommerce/framer-scroller": "^0.4.3",
|
|
25
25
|
"@graphcommerce/graphql": "^2.105.2",
|
|
26
26
|
"@graphcommerce/image": "^2.105.2",
|
|
27
|
-
"@graphcommerce/magento-customer": "^3.
|
|
27
|
+
"@graphcommerce/magento-customer": "^3.4.2",
|
|
28
28
|
"@graphcommerce/magento-graphql": "^2.104.2",
|
|
29
|
-
"@graphcommerce/magento-store": "^3.
|
|
30
|
-
"@graphcommerce/next-ui": "^3.
|
|
29
|
+
"@graphcommerce/magento-store": "^3.2.2",
|
|
30
|
+
"@graphcommerce/next-ui": "^3.12.2",
|
|
31
31
|
"@graphcommerce/react-hook-form": "^2.102.14",
|
|
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": "afae9da3ec938f2c088c254bcde22e1db2636ace"
|
|
42
42
|
}
|