@graphcommerce/magento-category 3.4.4 → 3.5.3

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,29 @@
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.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.5.1...@graphcommerce/magento-category@3.5.2) (2021-12-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * spacing of LayoutTItle ([7afcd31](https://github.com/ho-nl/m2-pwa/commit/7afcd3163d16e902cf2ff7917f56ee6a8798f55b))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.5.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.4.4...@graphcommerce/magento-category@3.5.0) (2021-12-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * borderRadius based on theme.shape.borderRadius ([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
23
+ * introduce borderRadius ([183afbc](https://github.com/ho-nl/m2-pwa/commit/183afbc8ee269f6694c372b06afdf41302f86c09))
24
+
25
+
26
+
27
+
28
+
6
29
  # [3.4.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-category@3.3.29...@graphcommerce/magento-category@3.4.0) (2021-11-12)
7
30
 
8
31
 
@@ -1,5 +1,5 @@
1
1
  import { UseStyles } from '@graphcommerce/next-ui'
2
- import { makeStyles, Theme, Typography } from '@material-ui/core'
2
+ import { makeStyles, Theme } from '@material-ui/core'
3
3
  import React from 'react'
4
4
  import { CategoryDescriptionFragment } from './CategoryDescription.gql'
5
5
 
@@ -20,7 +20,6 @@ const useStyles = makeStyles(
20
20
  [theme.breakpoints.up('xl')]: {
21
21
  maxWidth: '30%',
22
22
  },
23
-
24
23
  ...theme.typography.subtitle1,
25
24
  },
26
25
  }),
@@ -32,6 +31,7 @@ export default function CategoryDescription(props: CategoryDescriptionProps) {
32
31
  const classes = useStyles(props)
33
32
 
34
33
  return description ? (
34
+ // eslint-disable-next-line react/no-danger
35
35
  <div {...divProps} className={classes.root} dangerouslySetInnerHTML={{ __html: description }} />
36
36
  ) : null
37
37
  }
@@ -1,4 +1,5 @@
1
1
  import { ProductListLink } from '@graphcommerce/magento-product'
2
+ import { responsiveVal, Row } from '@graphcommerce/next-ui'
2
3
  import { makeStyles, Theme, Typography } from '@material-ui/core'
3
4
  import React from 'react'
4
5
  import { CategoryHeroNavFragment } from './CategoryHeroNav.gql'
@@ -15,8 +16,7 @@ const useStyles = makeStyles(
15
16
  `,
16
17
  gridTemplateRows: 'auto auto 1fr',
17
18
  borderBottom: `1px solid ${theme.palette.divider}`,
18
- marginBottom: theme.spacings.xl,
19
- paddingRight: 0,
19
+ marginBottom: theme.spacings.xxl,
20
20
  paddingBottom: theme.page.vertical,
21
21
  [theme.breakpoints.up('md')]: {
22
22
  rowGap: theme.spacings.md,
@@ -27,7 +27,7 @@ const useStyles = makeStyles(
27
27
  categories: {
28
28
  gridArea: 'categories',
29
29
  display: 'grid',
30
- gridColumnGap: theme.spacings.xl,
30
+ gridColumnGap: theme.spacings.xxl,
31
31
  gridRowGap: theme.spacings.lg,
32
32
  height: 'min-content',
33
33
  maxWidth: '80vw',
@@ -62,6 +62,7 @@ const useStyles = makeStyles(
62
62
  '& video': {
63
63
  objectFit: 'cover',
64
64
  width: '100%',
65
+ borderRadius: responsiveVal(theme.shape.borderRadius * 2, theme.shape.borderRadius * 3),
65
66
  },
66
67
  },
67
68
  [theme.breakpoints.up('md')]: {
@@ -95,32 +96,30 @@ export default function CategoryHeroNav({ children, title, asset }: CategoryHero
95
96
  const classes = useStyles()
96
97
 
97
98
  return (
98
- <>
99
- <div className={classes.wrapper}>
100
- <div className={classes.title}>{title}</div>
101
- <div className={classes.categories}>
102
- {children?.map((category) => {
103
- if (!category?.url_path || !category.uid || !category.name) return null
104
- return (
105
- <ProductListLink
106
- underline='none'
107
- color='textPrimary'
108
- url={category.url_path}
109
- filters={{}}
110
- sort={{}}
111
- key={category.uid}
112
- >
113
- <Typography variant='h4' component='span'>
114
- {category.name}
115
- </Typography>
116
- </ProductListLink>
117
- )
118
- })}
119
- </div>
120
- <div className={classes.placeholder}>
121
- <div>{asset}</div>
122
- </div>
99
+ <Row className={classes.wrapper} maxWidth={false}>
100
+ <div className={classes.title}>{title}</div>
101
+ <div className={classes.categories}>
102
+ {children?.map((category) => {
103
+ if (!category?.url_path || !category.uid || !category.name) return null
104
+ return (
105
+ <ProductListLink
106
+ underline='none'
107
+ color='textPrimary'
108
+ url={category.url_path}
109
+ filters={{}}
110
+ sort={{}}
111
+ key={category.uid}
112
+ >
113
+ <Typography variant='h4' component='span'>
114
+ {category.name}
115
+ </Typography>
116
+ </ProductListLink>
117
+ )
118
+ })}
123
119
  </div>
124
- </>
120
+ <div className={classes.placeholder}>
121
+ <div>{asset}</div>
122
+ </div>
123
+ </Row>
125
124
  )
126
125
  }
@@ -1,11 +1,10 @@
1
- import { AppShellTitle } from '@graphcommerce/next-ui'
1
+ import { LayoutTitle } from '@graphcommerce/next-ui'
2
2
  import { makeStyles, Theme } from '@material-ui/core'
3
3
  import React from 'react'
4
4
 
5
5
  const useStyles = makeStyles(
6
6
  (theme: Theme) => ({
7
- title: {
8
- // alignItems: 'center',
7
+ container: {
9
8
  justifyContent: 'center',
10
9
  [theme.breakpoints.up('md')]: {
11
10
  margin: 0,
@@ -26,8 +25,8 @@ export default function CategoryHeroNavTitle(props: CategoryHeroNavTitleProps) {
26
25
  const classes = useStyles()
27
26
 
28
27
  return (
29
- <AppShellTitle classes={classes} variant='h1'>
28
+ <LayoutTitle classes={classes} variant='h1'>
30
29
  {children}
31
- </AppShellTitle>
30
+ </LayoutTitle>
32
31
  )
33
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-category",
3
- "version": "3.4.4",
3
+ "version": "3.5.3",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,19 +14,19 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.5",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.6",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.4",
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": "^1.0.4",
25
- "@graphcommerce/graphql": "^2.105.5",
26
- "@graphcommerce/image": "^2.105.4",
27
- "@graphcommerce/magento-product": "^3.6.4",
28
- "@graphcommerce/magento-store": "^3.3.4",
29
- "@graphcommerce/next-ui": "^3.18.2",
24
+ "@graphcommerce/framer-scroller": "^1.1.1",
25
+ "@graphcommerce/graphql": "^2.105.6",
26
+ "@graphcommerce/image": "^2.105.5",
27
+ "@graphcommerce/magento-product": "^3.7.3",
28
+ "@graphcommerce/magento-store": "^3.3.8",
29
+ "@graphcommerce/next-ui": "^3.20.1",
30
30
  "@lingui/macro": "^3.12.1",
31
31
  "@material-ui/core": "^4.12.3",
32
32
  "next": "^12.0.3",
@@ -34,5 +34,5 @@
34
34
  "react-dom": "^17.0.2",
35
35
  "type-fest": "^2.5.1"
36
36
  },
37
- "gitHead": "4d36627aeb43cba320c249b9a876384627064f18"
37
+ "gitHead": "b4bdc1cd365ebdd0bad8e1ed6afd374123bb2908"
38
38
  }