@graphcommerce/magento-product 3.6.4 → 3.7.0

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.7.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.6.4...@graphcommerce/magento-product@3.7.0) (2021-12-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * borderRadius ([b9cffcc](https://github.com/ho-nl/m2-pwa/commit/b9cffccf444cb2ff8d6257ef3a64c0ea18e30477))
12
+ * icon OrderBefore ([25a2390](https://github.com/ho-nl/m2-pwa/commit/25a2390321c7047c5191a15a9352020b8161ff7a))
13
+
14
+
15
+ ### Features
16
+
17
+ * borderRadius based on theme.shape.borderRadius ([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
18
+ * introduce borderRadius ([183afbc](https://github.com/ho-nl/m2-pwa/commit/183afbc8ee269f6694c372b06afdf41302f86c09))
19
+ * variable font weights ([bfd8142](https://github.com/ho-nl/m2-pwa/commit/bfd8142b96742efd1208556e3c48de382d8d8ceb))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [3.6.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product@3.6.3...@graphcommerce/magento-product@3.6.4) (2021-11-27)
7
26
 
8
27
 
@@ -88,6 +88,7 @@ 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: responsiveVal(theme.shape.borderRadius * 2, theme.shape.borderRadius * 3),
91
92
  }),
92
93
  placeholder: {
93
94
  display: 'flex',
@@ -6,22 +6,19 @@ import { ProductPageDescriptionFragment } from './ProductPageDescription.gql'
6
6
  const useStyles = makeStyles((theme: Theme) => ({
7
7
  /* nested styles because we don't know beforehand which elements the description contains */
8
8
  description: {
9
- ...theme.typography.body2,
10
- fontWeight: 400,
11
- [theme.breakpoints.up('md')]: {
12
- ...theme.typography.h4,
13
- lineHeight: 1.7,
14
- fontWeight: 400,
15
- },
16
9
  '& p:first-of-type': {
17
10
  marginTop: 0,
18
11
  },
19
12
  '& p, & li': {
20
- ...theme.typography.h4,
13
+ ...theme.typography.body1,
21
14
  fontWeight: 400,
15
+
22
16
  [theme.breakpoints.up('md')]: {
23
17
  ...theme.typography.h3,
24
18
  fontWeight: 400,
19
+ '@supports (font-variation-settings: normal)': {
20
+ fontVariationSettings: "'wght' 420",
21
+ },
25
22
  },
26
23
  },
27
24
  '& ul': {
@@ -1,5 +1,5 @@
1
- import { SvgImage, responsiveVal, iconBox, SvgImageSimple } from '@graphcommerce/next-ui'
2
- import { makeStyles, Theme, Typography } from '@material-ui/core'
1
+ import { SvgImage, responsiveVal, iconOrderBefore, SvgImageSimple } from '@graphcommerce/next-ui'
2
+ import { darken, lighten, makeStyles, Theme, Typography } from '@material-ui/core'
3
3
  import React from 'react'
4
4
 
5
5
  const useStyles = makeStyles(
@@ -14,16 +14,16 @@ const useStyles = makeStyles(
14
14
  gridTemplateColumns: `min-content auto`,
15
15
  columnGap: theme.spacings.xxs,
16
16
  marginTop: theme.spacings.xxs,
17
- background: theme.palette.background.paper,
18
- border: `1px solid ${theme.palette.divider}`,
17
+ background:
18
+ theme.palette.type === 'light'
19
+ ? darken(theme.palette.background.default, 0.01)
20
+ : lighten(theme.palette.background.default, 0.2),
19
21
  padding: theme.spacings.xxs,
20
- borderRadius: responsiveVal(4, 6),
22
+ borderRadius: responsiveVal(theme.shape.borderRadius * 3, theme.shape.borderRadius * 4),
21
23
  },
22
24
  text: {},
23
25
  image: {
24
26
  gridArea: 'image',
25
- width: responsiveVal(18, 24),
26
- height: responsiveVal(18, 24),
27
27
  },
28
28
  title: {
29
29
  gridArea: 'title',
@@ -42,7 +42,7 @@ export default function ProductSidebarDelivery() {
42
42
 
43
43
  return (
44
44
  <div className={classes.root}>
45
- <SvgImageSimple className={classes.image} src={iconBox} />
45
+ <SvgImageSimple className={classes.image} src={iconOrderBefore} size='small' />
46
46
  <Typography className={classes.title} variant='body2' component='div'>
47
47
  Order before 22:00
48
48
  </Typography>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-product",
3
- "version": "3.6.4",
3
+ "version": "3.7.0",
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.4",
25
25
  "@graphcommerce/graphql": "^2.105.5",
26
26
  "@graphcommerce/image": "^2.105.4",
27
- "@graphcommerce/magento-cart": "^3.7.4",
28
- "@graphcommerce/magento-store": "^3.3.4",
29
- "@graphcommerce/next-ui": "^3.18.2",
27
+ "@graphcommerce/magento-cart": "^3.8.0",
28
+ "@graphcommerce/magento-store": "^3.3.5",
29
+ "@graphcommerce/next-ui": "^3.19.0",
30
30
  "@lingui/macro": "^3.12.1",
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": "4d36627aeb43cba320c249b9a876384627064f18"
41
+ "gitHead": "f079c0b5b96dd1a048ca4d3c1d07916353c6bc33"
42
42
  }