@graphcommerce/magento-product 3.5.20 → 3.5.21
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,19 @@
|
|
|
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.21](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.5.20...@graphcommerce/magento-product@3.5.21) (2021-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* clean up themeProvider ([6868e71](https://github.com/ho-nl/m2-pwa/commit/6868e71b59a637be8229a2ab49791dd324e02bb9))
|
|
12
|
+
* darkTheme ([b08f522](https://github.com/ho-nl/m2-pwa/commit/b08f52255c91dcba5498481ba5e9f0fa0b6c5013))
|
|
13
|
+
* design ([c9c5bfb](https://github.com/ho-nl/m2-pwa/commit/c9c5bfbfda7f123c6f4ce5582d8afb3370fe826c))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [3.5.19](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.5.18...@graphcommerce/magento-product@3.5.19) (2021-11-11)
|
|
7
20
|
|
|
8
21
|
|
|
@@ -6,16 +6,17 @@ import { ProductListCountFragment } from './ProductListCount.gql'
|
|
|
6
6
|
const useStyles = makeStyles(
|
|
7
7
|
(theme: Theme) => ({
|
|
8
8
|
productListCount: {
|
|
9
|
+
display: 'grid',
|
|
10
|
+
gridAutoFlow: 'column',
|
|
11
|
+
gridTemplateColumns: '1fr max-content 1fr',
|
|
9
12
|
maxWidth: '100%',
|
|
10
13
|
width: responsiveVal(280, 650),
|
|
11
14
|
margin: '0 auto',
|
|
12
|
-
padding: theme.spacings.xs,
|
|
13
|
-
paddingTop: responsiveVal(24, 30),
|
|
14
|
-
paddingBottom: responsiveVal(4, 8),
|
|
15
|
-
position: 'relative',
|
|
16
15
|
textAlign: 'center',
|
|
17
16
|
gridArea: 'count',
|
|
18
|
-
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
marginTop: theme.spacings.md,
|
|
19
|
+
marginBottom: theme.spacings.md,
|
|
19
20
|
},
|
|
20
21
|
line: {
|
|
21
22
|
background: theme.palette.divider,
|
|
@@ -26,11 +27,9 @@ const useStyles = makeStyles(
|
|
|
26
27
|
count: {
|
|
27
28
|
...theme.typography.body2,
|
|
28
29
|
margin: '0 auto',
|
|
29
|
-
background: theme.palette.background.default,
|
|
30
30
|
display: 'inline-block',
|
|
31
31
|
padding: `0 ${theme.spacings.xs} 0 ${theme.spacings.xs}`,
|
|
32
32
|
color: theme.palette.text.disabled,
|
|
33
|
-
transform: 'translateY(calc(-50% - 1px))',
|
|
34
33
|
},
|
|
35
34
|
}),
|
|
36
35
|
{
|
|
@@ -50,6 +49,7 @@ export default function ProductListCount(props: ProductCountProps) {
|
|
|
50
49
|
<div className={classes.count}>
|
|
51
50
|
{total_count} product{(total_count ?? 0) > 1 ? 's' : ''}
|
|
52
51
|
</div>
|
|
52
|
+
<div className={classes.line} />
|
|
53
53
|
</div>
|
|
54
54
|
)
|
|
55
55
|
}
|
|
@@ -3,6 +3,7 @@ import { FilterEqualTypeInput } from '@graphcommerce/graphql'
|
|
|
3
3
|
import { ChipMenu, ChipMenuProps, responsiveVal } from '@graphcommerce/next-ui'
|
|
4
4
|
import {
|
|
5
5
|
Checkbox,
|
|
6
|
+
lighten,
|
|
6
7
|
ListItem,
|
|
7
8
|
ListItemSecondaryAction,
|
|
8
9
|
ListItemText,
|
|
@@ -26,6 +27,7 @@ type FilterEqualTypeProps = NonNullable<
|
|
|
26
27
|
|
|
27
28
|
const useFilterEqualStyles = makeStyles(
|
|
28
29
|
(theme: Theme) => ({
|
|
30
|
+
root: {},
|
|
29
31
|
listItem: {
|
|
30
32
|
padding: `0 ${theme.spacings.xxs} 0`,
|
|
31
33
|
display: 'block',
|
|
@@ -126,6 +128,7 @@ export default function FilterEqualType(props: FilterEqualTypeProps) {
|
|
|
126
128
|
selected={currentLabels.length > 0}
|
|
127
129
|
selectedLabel={currentLabels.length > 0 ? currentLabels.join(', ') : undefined}
|
|
128
130
|
onDelete={currentLabels.length > 0 ? removeFilter : undefined}
|
|
131
|
+
className={classes.root}
|
|
129
132
|
>
|
|
130
133
|
<div className={classes.linkContainer}>
|
|
131
134
|
{options?.map((option) => {
|
|
@@ -88,7 +88,6 @@ export const useProductListItemStyles = makeStyles(
|
|
|
88
88
|
position: 'relative',
|
|
89
89
|
paddingTop: `calc(100% / ${aspectRatio[0]} * ${aspectRatio[1]})`,
|
|
90
90
|
background: theme.palette.background.image, // theme specific,
|
|
91
|
-
borderRadius: 2,
|
|
92
91
|
}),
|
|
93
92
|
placeholder: {
|
|
94
93
|
display: 'flex',
|
|
@@ -117,7 +116,6 @@ export const useProductListItemStyles = makeStyles(
|
|
|
117
116
|
padding: '0px 6px',
|
|
118
117
|
color: theme.palette.background.default,
|
|
119
118
|
display: 'inline-block',
|
|
120
|
-
borderRadius: 2,
|
|
121
119
|
},
|
|
122
120
|
}),
|
|
123
121
|
{ name: 'ProductListItem' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-product",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.21",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -24,9 +24,9 @@
|
|
|
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-cart": "^3.6.
|
|
28
|
-
"@graphcommerce/magento-store": "^3.2.
|
|
29
|
-
"@graphcommerce/next-ui": "^3.
|
|
27
|
+
"@graphcommerce/magento-cart": "^3.6.5",
|
|
28
|
+
"@graphcommerce/magento-store": "^3.2.20",
|
|
29
|
+
"@graphcommerce/next-ui": "^3.16.0",
|
|
30
30
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
31
31
|
"@material-ui/core": "^4.12.3",
|
|
32
32
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"schema-dts": "^1.0.0",
|
|
39
39
|
"type-fest": "^2.5.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "b503ad4f2790a50e7c7aadf21ef61d104c8c8798"
|
|
42
42
|
}
|