@graphcommerce/magento-category 10.0.0-canary.66 → 10.0.0-canary.68
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 +4 -0
- package/components/CategoryBreadcrumb/CategoryBreadcrumb.tsx +7 -1
- package/components/CategoryBreadcrumb/CategoryBreadcrumbs.tsx +2 -6
- package/components/CategoryChildren/CategoryChildren.tsx +3 -6
- package/components/CategoryDescription/CategoryDescription.tsx +4 -4
- package/components/CategoryHeroNav/CategoryHeroNav.tsx +5 -5
- package/components/CategoryHeroNav/CategoryHeroNavTitle.tsx +4 -4
- package/package.json +13 -12
package/CHANGELOG.md
CHANGED
|
@@ -31,7 +31,13 @@ export function CategoryBreadcrumb(props: CategoryPageBreadcrumbsProps) {
|
|
|
31
31
|
{breadcrumb.category_name}
|
|
32
32
|
</Link>
|
|
33
33
|
))}
|
|
34
|
-
<Typography
|
|
34
|
+
<Typography
|
|
35
|
+
sx={{
|
|
36
|
+
color: 'text.primary',
|
|
37
|
+
}}
|
|
38
|
+
>
|
|
39
|
+
{name}
|
|
40
|
+
</Typography>
|
|
35
41
|
</Breadcrumbs>
|
|
36
42
|
)
|
|
37
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BreadcrumbsProps } from '@graphcommerce/next-ui'
|
|
2
|
-
import { Breadcrumbs, BreadcrumbsJsonLd, jsonLdBreadcrumb } from '@graphcommerce/next-ui'
|
|
2
|
+
import { Breadcrumbs, BreadcrumbsJsonLd, jsonLdBreadcrumb, sxx } from '@graphcommerce/next-ui'
|
|
3
3
|
import { useRouter } from 'next/router'
|
|
4
4
|
import type { BreadcrumbList } from 'schema-dts'
|
|
5
5
|
import type { CategoryBreadcrumbFragment } from './CategoryBreadcrumb.gql'
|
|
@@ -26,11 +26,7 @@ export function CategoryBreadcrumbs(props: CategoryBreadcrumbsProps) {
|
|
|
26
26
|
...jsonLdBreadcrumb(bc, router),
|
|
27
27
|
})}
|
|
28
28
|
/>
|
|
29
|
-
<Breadcrumbs
|
|
30
|
-
breadcrumbs={breadcrumbs}
|
|
31
|
-
{...breadcrumbsProps}
|
|
32
|
-
sx={[...(Array.isArray(sx) ? sx : [sx])]}
|
|
33
|
-
/>
|
|
29
|
+
<Breadcrumbs breadcrumbs={breadcrumbs} {...breadcrumbsProps} sx={sx} />
|
|
34
30
|
</>
|
|
35
31
|
)
|
|
36
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Scroller, ScrollerProvider } from '@graphcommerce/framer-scroller'
|
|
2
2
|
import type { ProductListParams } from '@graphcommerce/magento-product'
|
|
3
3
|
import { productListLink } from '@graphcommerce/magento-product'
|
|
4
|
-
import { extendableComponent, filterNonNullableKeys } from '@graphcommerce/next-ui'
|
|
4
|
+
import { extendableComponent, filterNonNullableKeys, sxx } from '@graphcommerce/next-ui'
|
|
5
5
|
import type { SxProps, Theme } from '@mui/material'
|
|
6
6
|
import { Box, Link } from '@mui/material'
|
|
7
7
|
import type { CategoryChildrenFragment } from './CategoryChildren.gql'
|
|
@@ -38,10 +38,7 @@ export function CategoryChildren(props: CategoryChildrenProps) {
|
|
|
38
38
|
<ScrollerProvider scrollSnapAlign='none'>
|
|
39
39
|
<Box
|
|
40
40
|
className={classes.container}
|
|
41
|
-
sx={
|
|
42
|
-
{ display: 'flex', width: '100%', overflow: 'hidden' },
|
|
43
|
-
...(Array.isArray(sx) ? sx : [sx]),
|
|
44
|
-
]}
|
|
41
|
+
sx={sxx({ display: 'flex', width: '100%', overflow: 'hidden' }, sx)}
|
|
45
42
|
>
|
|
46
43
|
<Scroller
|
|
47
44
|
className={classes.scroller}
|
|
@@ -69,7 +66,7 @@ export function CategoryChildren(props: CategoryChildrenProps) {
|
|
|
69
66
|
content: '""',
|
|
70
67
|
width: 40,
|
|
71
68
|
height: 2,
|
|
72
|
-
background: theme.palette.primary.main,
|
|
69
|
+
background: theme.vars.palette.primary.main,
|
|
73
70
|
position: 'absolute',
|
|
74
71
|
left: 0,
|
|
75
72
|
right: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ProductListItemRenderer } from '@graphcommerce/magento-product'
|
|
2
|
-
import { extendableComponent } from '@graphcommerce/next-ui'
|
|
2
|
+
import { extendableComponent, sxx } from '@graphcommerce/next-ui'
|
|
3
3
|
import type { SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Box } from '@mui/material'
|
|
5
5
|
import type { CategoryDescriptionFragment } from './CategoryDescription.gql'
|
|
@@ -40,7 +40,7 @@ export function CategoryDescription(props: CategoryDescriptionProps) {
|
|
|
40
40
|
{...divProps}
|
|
41
41
|
className={classes.root}
|
|
42
42
|
dangerouslySetInnerHTML={{ __html: description }}
|
|
43
|
-
sx={
|
|
43
|
+
sx={sxx(
|
|
44
44
|
(theme) => ({
|
|
45
45
|
typography: 'subtitle1',
|
|
46
46
|
[theme.breakpoints.down('sm')]: {
|
|
@@ -57,8 +57,8 @@ export function CategoryDescription(props: CategoryDescriptionProps) {
|
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
}),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
sx,
|
|
61
|
+
)}
|
|
62
62
|
/>
|
|
63
63
|
) : null
|
|
64
64
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { productListLink } from '@graphcommerce/magento-product'
|
|
2
|
-
import { breakpointVal, extendableComponent, Row } from '@graphcommerce/next-ui'
|
|
2
|
+
import { breakpointVal, extendableComponent, Row, sxx } from '@graphcommerce/next-ui'
|
|
3
3
|
import type { SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Box, Link, Typography } from '@mui/material'
|
|
5
5
|
import React from 'react'
|
|
@@ -20,7 +20,7 @@ export const CategoryHeroNav = React.memo<CategoryHeroNavProps>(
|
|
|
20
20
|
<Row
|
|
21
21
|
className={classes.wrapper}
|
|
22
22
|
maxWidth={false}
|
|
23
|
-
sx={
|
|
23
|
+
sx={sxx(
|
|
24
24
|
(theme) => ({
|
|
25
25
|
display: 'grid',
|
|
26
26
|
gridTemplateColumns: '1fr',
|
|
@@ -30,7 +30,7 @@ export const CategoryHeroNav = React.memo<CategoryHeroNavProps>(
|
|
|
30
30
|
"placeholder"
|
|
31
31
|
`,
|
|
32
32
|
gridTemplateRows: 'auto auto 1fr',
|
|
33
|
-
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
33
|
+
borderBottom: `1px solid ${theme.vars.palette.divider}`,
|
|
34
34
|
marginBottom: theme.spacings.xxl,
|
|
35
35
|
paddingBottom: theme.page.vertical,
|
|
36
36
|
[theme.breakpoints.up('md')]: {
|
|
@@ -47,8 +47,8 @@ export const CategoryHeroNav = React.memo<CategoryHeroNavProps>(
|
|
|
47
47
|
gridTemplateRows: '0.3fr 0.7fr',
|
|
48
48
|
},
|
|
49
49
|
}),
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
sx,
|
|
51
|
+
)}
|
|
52
52
|
>
|
|
53
53
|
<Box
|
|
54
54
|
className={classes.title}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutTitle } from '@graphcommerce/next-ui'
|
|
1
|
+
import { LayoutTitle, sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { memo } from 'react'
|
|
4
4
|
|
|
@@ -13,15 +13,15 @@ export const CategoryHeroNavTitle = memo<CategoryHeroNavTitleProps>((props) => {
|
|
|
13
13
|
return (
|
|
14
14
|
<LayoutTitle
|
|
15
15
|
variant='h1'
|
|
16
|
-
sx={
|
|
16
|
+
sx={sxx(
|
|
17
17
|
(theme) => ({
|
|
18
18
|
[theme.breakpoints.up('md')]: {
|
|
19
19
|
m: 0,
|
|
20
20
|
justifyContent: 'start',
|
|
21
21
|
},
|
|
22
22
|
}),
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
sx,
|
|
24
|
+
)}
|
|
25
25
|
>
|
|
26
26
|
{children}
|
|
27
27
|
</LayoutTitle>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-category",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.0-canary.
|
|
5
|
+
"version": "10.0.0-canary.68",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -13,22 +13,23 @@
|
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": "./index.ts",
|
|
16
|
-
"./queries/getCategoryStaticPaths": "./queries/getCategoryStaticPaths.ts"
|
|
16
|
+
"./queries/getCategoryStaticPaths": "./queries/getCategoryStaticPaths.ts",
|
|
17
|
+
"./components/CategoryBreadcrumb/categoryToBreadcrumbs": "./components/CategoryBreadcrumb/categoryToBreadcrumbs.ts"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.
|
|
20
|
-
"@graphcommerce/framer-scroller": "^10.0.0-canary.
|
|
21
|
-
"@graphcommerce/graphql": "^10.0.0-canary.
|
|
22
|
-
"@graphcommerce/image": "^10.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-product": "^10.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-store": "^10.0.0-canary.
|
|
25
|
-
"@graphcommerce/next-ui": "^10.0.0-canary.
|
|
26
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
27
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.
|
|
20
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
|
|
21
|
+
"@graphcommerce/framer-scroller": "^10.0.0-canary.68",
|
|
22
|
+
"@graphcommerce/graphql": "^10.0.0-canary.68",
|
|
23
|
+
"@graphcommerce/image": "^10.0.0-canary.68",
|
|
24
|
+
"@graphcommerce/magento-product": "^10.0.0-canary.68",
|
|
25
|
+
"@graphcommerce/magento-store": "^10.0.0-canary.68",
|
|
26
|
+
"@graphcommerce/next-ui": "^10.0.0-canary.68",
|
|
27
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
|
|
28
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
|
|
28
29
|
"@lingui/core": "^5",
|
|
29
30
|
"@lingui/macro": "^5",
|
|
30
31
|
"@lingui/react": "^5",
|
|
31
|
-
"@mui/material": "^
|
|
32
|
+
"@mui/material": "^7.0.0",
|
|
32
33
|
"next": "*",
|
|
33
34
|
"react": "^19.2.0",
|
|
34
35
|
"react-dom": "^19.2.0"
|