@graphcommerce/magento-cart 3.6.4 → 3.6.5
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 +11 -0
- package/components/CartFab/CartFab.tsx +12 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.6.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.6.4...@graphcommerce/magento-cart@3.6.5) (2021-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* behaviour for CartFab animation including darkTheme support ([6152ef3](https://github.com/ho-nl/m2-pwa/commit/6152ef32d093e42c58ee79d4d713c5b8c2870746))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.6.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.6.3...@graphcommerce/magento-cart@3.6.4) (2021-11-12)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
UseStyles,
|
|
9
9
|
} from '@graphcommerce/next-ui'
|
|
10
10
|
import { Fab, FabProps, makeStyles, NoSsr, Theme } from '@material-ui/core'
|
|
11
|
+
import clsx from 'clsx'
|
|
11
12
|
import { m } from 'framer-motion'
|
|
12
13
|
import PageLink from 'next/link'
|
|
13
14
|
import React from 'react'
|
|
@@ -19,6 +20,7 @@ const useStyles = makeStyles(
|
|
|
19
20
|
(theme: Theme) => ({
|
|
20
21
|
fab: {
|
|
21
22
|
boxShadow: 'none',
|
|
23
|
+
background: 'none',
|
|
22
24
|
[theme.breakpoints.down('sm')]: {
|
|
23
25
|
width: responsiveVal(42, 56),
|
|
24
26
|
height: responsiveVal(42, 56),
|
|
@@ -40,15 +42,22 @@ type CartFabContentProps = CartFabProps & CartTotalQuantityFragment
|
|
|
40
42
|
function CartFabContent(props: CartFabContentProps) {
|
|
41
43
|
const { total_quantity, icon, ...fabProps } = props
|
|
42
44
|
const cartIcon = icon ?? <SvgImageSimple src={iconShoppingBag} loading='eager' size='large' />
|
|
43
|
-
const { boxShadow } = useFixedFabAnimation()
|
|
45
|
+
const { boxShadow, backgroundColor } = useFixedFabAnimation()
|
|
44
46
|
const classes = useStyles(props)
|
|
45
47
|
|
|
46
48
|
return (
|
|
47
|
-
<m.div
|
|
49
|
+
<m.div
|
|
50
|
+
style={{
|
|
51
|
+
boxShadow,
|
|
52
|
+
backgroundColor,
|
|
53
|
+
width: 'inherit',
|
|
54
|
+
borderRadius: 'inherit',
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
48
57
|
<PageLink href='/cart' passHref>
|
|
49
58
|
<Fab
|
|
50
59
|
aria-label='Cart'
|
|
51
|
-
color='
|
|
60
|
+
color='inherit'
|
|
52
61
|
size='large'
|
|
53
62
|
classes={{ root: classes.fab }}
|
|
54
63
|
{...fabProps}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@graphcommerce/framer-scroller": "^1.0.3",
|
|
25
25
|
"@graphcommerce/graphql": "^2.105.4",
|
|
26
26
|
"@graphcommerce/image": "^2.105.3",
|
|
27
|
-
"@graphcommerce/magento-customer": "^3.5.
|
|
27
|
+
"@graphcommerce/magento-customer": "^3.5.5",
|
|
28
28
|
"@graphcommerce/magento-graphql": "^2.104.4",
|
|
29
|
-
"@graphcommerce/magento-store": "^3.2.
|
|
30
|
-
"@graphcommerce/next-ui": "^3.
|
|
29
|
+
"@graphcommerce/magento-store": "^3.2.20",
|
|
30
|
+
"@graphcommerce/next-ui": "^3.16.0",
|
|
31
31
|
"@graphcommerce/react-hook-form": "^2.103.1",
|
|
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": "b503ad4f2790a50e7c7aadf21ef61d104c8c8798"
|
|
42
42
|
}
|