@graphcommerce/magento-product 3.4.3 → 3.5.1

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,26 @@
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-product@3.4.5...@graphcommerce/magento-product@3.5.0) (2021-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * build ([98a0bba](https://github.com/ho-nl/m2-pwa/commit/98a0bba7d00e1c6a5ff0787183b711b1edb8b984))
12
+ * darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
13
+ * darkTheme ([df3d326](https://github.com/ho-nl/m2-pwa/commit/df3d326126446c1b92f8e46eff0533bbbe35604f))
14
+ * remove unused imports ([b832188](https://github.com/ho-nl/m2-pwa/commit/b8321887f10a4a026adc5ca39166eeef90e60669))
15
+
16
+
17
+ ### Features
18
+
19
+ * darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
20
+ * darkTheme ([3ed6647](https://github.com/ho-nl/m2-pwa/commit/3ed664714670315bc9f20542549724f66cb5052d))
21
+
22
+
23
+
24
+
25
+
6
26
  ## [3.4.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.4.2...@graphcommerce/magento-product@3.4.3) (2021-11-01)
7
27
 
8
28
 
@@ -5,9 +5,7 @@ import {
5
5
  Button,
6
6
  ButtonProps,
7
7
  MessageSnackbar,
8
- SvgImage,
9
8
  TextInputNumber,
10
- iconCheckmark,
11
9
  iconChevronRight,
12
10
  SvgImageSimple,
13
11
  } from '@graphcommerce/next-ui'
@@ -1,10 +1,5 @@
1
1
  import { cloneDeep } from '@apollo/client/utilities'
2
- import {
3
- useChipMenuStyles,
4
- SvgImage,
5
- iconCloseCircle,
6
- SvgImageSimple,
7
- } from '@graphcommerce/next-ui'
2
+ import { useChipMenuStyles, SvgImage, iconCancelAlt, SvgImageSimple } from '@graphcommerce/next-ui'
8
3
  import { Chip, ChipProps } from '@material-ui/core'
9
4
  import clsx from 'clsx'
10
5
  import React from 'react'
@@ -56,7 +51,7 @@ export default function FilterCheckboxType(props: FilterCheckboxTypeProps) {
56
51
  }
57
52
  : undefined
58
53
  }
59
- deleteIcon={isActive ? <SvgImageSimple src={iconCloseCircle} size='small' /> : undefined}
54
+ deleteIcon={isActive ? <SvgImageSimple src={iconCancelAlt} size='small' /> : undefined}
60
55
  label={label}
61
56
  clickable
62
57
  {...chipProps}
@@ -65,7 +65,7 @@ const useFilterEqualStyles = makeStyles(
65
65
  textDecoration: 'none',
66
66
  },
67
67
  resetButton: {
68
- background: theme.palette.grey['100'],
68
+ // background: theme.palette.grey['100'],
69
69
  marginRight: theme.spacings.xxs,
70
70
  },
71
71
  filterAmount: {
@@ -87,7 +87,7 @@ const useFilterEqualStyles = makeStyles(
87
87
  },
88
88
  isActive: {
89
89
  border: `1px solid ${theme.palette.primary.main}`,
90
- boxShadow: `inset 0 0 0 4px #fff`,
90
+ boxShadow: `inset 0 0 0 4px ${theme.palette.background.paper}`,
91
91
  },
92
92
  }),
93
93
  { name: 'FilterEqual' },
@@ -38,7 +38,7 @@ const useStyles = makeStyles(
38
38
  paddingLeft: 0,
39
39
  paddingRight: 0,
40
40
  [theme.breakpoints.up('md')]: {
41
- background: '#fff',
41
+ background: theme.palette.background.default,
42
42
  borderRadius: '99em',
43
43
  },
44
44
  [theme.breakpoints.down('sm')]: {
@@ -52,6 +52,8 @@ const useStyles = makeStyles(
52
52
  paddingBottom: 1,
53
53
  [theme.breakpoints.up('md')]: {
54
54
  borderRadius: '99em',
55
+ paddingLeft: 6,
56
+ paddingRight: 6,
55
57
  },
56
58
  columnGap: 6,
57
59
  gridAutoColumns: 'min-content',
@@ -87,7 +87,7 @@ export const useProductListItemStyles = makeStyles(
87
87
  height: 0, // https://stackoverflow.com/questions/44770074/css-grid-row-height-safari-bug
88
88
  position: 'relative',
89
89
  paddingTop: `calc(100% / ${aspectRatio[0]} * ${aspectRatio[1]})`,
90
- background: theme.palette.background.highlight, // thema specifiek
90
+ background: theme.palette.background.image, // theme specific,
91
91
  borderRadius: 2,
92
92
  }),
93
93
  placeholder: {
@@ -113,8 +113,9 @@ export const useProductListItemStyles = makeStyles(
113
113
  ...theme.typography.caption,
114
114
  background: theme.palette.text.primary,
115
115
  fontWeight: theme.typography.fontWeightBold,
116
+ border: `1px solid ${theme.palette.divider}`,
116
117
  padding: '0px 6px',
117
- color: '#fff',
118
+ color: theme.palette.background.default,
118
119
  display: 'inline-block',
119
120
  borderRadius: 2,
120
121
  },
@@ -14,7 +14,8 @@ const useStyles = makeStyles(
14
14
  gridTemplateColumns: `min-content auto`,
15
15
  columnGap: theme.spacings.xxs,
16
16
  marginTop: theme.spacings.xxs,
17
- background: '#fff',
17
+ background: theme.palette.background.paper,
18
+ border: `1px solid ${theme.palette.divider}`,
18
19
  padding: theme.spacings.xxs,
19
20
  borderRadius: responsiveVal(4, 6),
20
21
  },
@@ -30,7 +31,7 @@ const useStyles = makeStyles(
30
31
  },
31
32
  subtitle: {
32
33
  gridArea: 'subtitle',
33
- color: theme.palette.text.disabled,
34
+ color: theme.palette.text.primary,
34
35
  },
35
36
  }),
36
37
  { name: 'ProductSidebarDelivery' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-product",
3
- "version": "3.4.3",
3
+ "version": "3.5.1",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,29 +14,29 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.2",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.3",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.3",
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/framer-scroller": "^0.4.2",
25
- "@graphcommerce/graphql": "^2.105.1",
26
- "@graphcommerce/image": "^2.105.1",
27
- "@graphcommerce/magento-cart": "^3.4.3",
28
- "@graphcommerce/magento-store": "^3.1.6",
29
- "@graphcommerce/next-ui": "^3.11.3",
24
+ "@graphcommerce/framer-scroller": "^0.4.3",
25
+ "@graphcommerce/graphql": "^2.105.2",
26
+ "@graphcommerce/image": "^2.105.2",
27
+ "@graphcommerce/magento-cart": "^3.5.1",
28
+ "@graphcommerce/magento-store": "^3.2.1",
29
+ "@graphcommerce/next-ui": "^3.12.1",
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",
33
33
  "clsx": "^1.1.1",
34
34
  "framer-motion": "^4.1.17",
35
- "next": "^12.0.1",
35
+ "next": "^12.0.2",
36
36
  "react": "^17.0.2",
37
37
  "react-dom": "^17.0.2",
38
38
  "schema-dts": "^1.0.0",
39
39
  "type-fest": "^2.5.1"
40
40
  },
41
- "gitHead": "570a61e72f88ef0a4bd1472d48c7a7dd28154f59"
41
+ "gitHead": "034145dd36551a6c71be6c51f0f1560ef50cb77a"
42
42
  }