@graphcommerce/next-ui 4.6.1 → 4.7.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.
@@ -33,6 +33,7 @@ export function BlogAuthor(props: BlogAuthorProps) {
33
33
  >
34
34
  <Chip
35
35
  sx={{
36
+ borderRadius: '99em',
36
37
  height: responsiveVal(44, 66),
37
38
  '& .MuiChip-label': {
38
39
  paddingLeft: responsiveVal(10, 14),
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`99600dd09`](https://github.com/graphcommerce-org/graphcommerce/commit/99600dd091980dd9ef335c04d2efac0835c20b2f)]:
8
+ - @graphcommerce/framer-next-pages@3.2.1
9
+ - @graphcommerce/framer-scroller@2.1.9
10
+
11
+ ## 4.7.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#1416](https://github.com/graphcommerce-org/graphcommerce/pull/1416) [`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - SEO audit
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04)]:
20
+ - @graphcommerce/framer-next-pages@3.2.0
21
+ - @graphcommerce/framer-scroller@2.1.8
22
+
23
+ ## 4.6.2
24
+
25
+ ### Patch Changes
26
+
27
+ - [#1426](https://github.com/graphcommerce-org/graphcommerce/pull/1426) [`100f4c38c`](https://github.com/graphcommerce-org/graphcommerce/commit/100f4c38c8fcda4bc6e0425e38028b550b60adc2) Thanks [@paales](https://github.com/paales)! - Upgrade packages
28
+
29
+ - Updated dependencies []:
30
+ - @graphcommerce/framer-scroller@2.1.7
31
+
3
32
  ## 4.6.1
4
33
 
5
34
  ### Patch Changes
@@ -1,6 +1,5 @@
1
- import { Box, SxProps, Theme } from '@mui/material'
1
+ import { Box, SxProps, Theme, Typography } from '@mui/material'
2
2
  import React from 'react'
3
- import { SectionContainer } from '../../SectionContainer/SectionContainer'
4
3
  import { extendableComponent } from '../../Styles'
5
4
  import { responsiveVal } from '../../Styles/responsiveVal'
6
5
  import { Row } from '../Row'
@@ -8,6 +7,7 @@ import { Row } from '../Row'
8
7
  export type ButtonLinkListProps = {
9
8
  title: string
10
9
  children: React.ReactNode
10
+ component?: React.ElementType
11
11
  sx?: SxProps<Theme>
12
12
  } & OwnerState
13
13
 
@@ -21,7 +21,7 @@ const { withState } = extendableComponent<OwnerState, typeof compName, typeof pa
21
21
  )
22
22
 
23
23
  export function ButtonLinkList(props: ButtonLinkListProps) {
24
- const { title, children, containsBigLinks, sx = [] } = props
24
+ const { title, children, component = 'span', containsBigLinks, sx = [] } = props
25
25
 
26
26
  const classes = withState({ containsBigLinks })
27
27
 
@@ -31,20 +31,39 @@ export function ButtonLinkList(props: ButtonLinkListProps) {
31
31
  className={classes.root}
32
32
  sx={[{ maxWidth: 820 }, ...(Array.isArray(sx) ? sx : [sx])]}
33
33
  >
34
- <SectionContainer labelLeft={title}>
35
- <Box
36
- className={classes.links}
37
- sx={(theme) => ({
38
- display: 'grid',
39
- columnGap: theme.spacings.sm,
40
- '&:not(.containsBigLinks)': {
41
- gridTemplateColumns: `repeat(auto-fill, minmax(${responsiveVal(210, 350)}, 1fr))`,
34
+ <Box
35
+ sx={[
36
+ (theme) => ({
37
+ position: 'relative',
38
+ '&:focus': {
39
+ outline: 'none',
42
40
  },
43
- })}
44
- >
45
- {children}
46
- </Box>
47
- </SectionContainer>
41
+ display: 'flex',
42
+ justifyContent: 'space-between',
43
+ alignItems: 'center',
44
+ marginTop: theme.spacings.sm,
45
+ marginBottom: theme.spacings.xxs,
46
+ paddingBottom: theme.spacings.xxs,
47
+ borderBottom: `1px solid ${theme.palette.divider}`,
48
+ }),
49
+ ]}
50
+ >
51
+ <Typography variant='overline' color='textSecondary' component={component}>
52
+ {title}
53
+ </Typography>
54
+ </Box>
55
+ <Box
56
+ className={classes.links}
57
+ sx={(theme) => ({
58
+ display: 'grid',
59
+ columnGap: theme.spacings.sm,
60
+ '&:not(.containsBigLinks)': {
61
+ gridTemplateColumns: `repeat(auto-fill, minmax(${responsiveVal(210, 350)}, 1fr))`,
62
+ },
63
+ })}
64
+ >
65
+ {children}
66
+ </Box>
48
67
  </Row>
49
68
  )
50
69
  }
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import { IconSvg } from '../../IconSvg'
5
5
  import { iconChevronRight } from '../../icons'
6
6
 
7
- export type ButtonLinkProps = { url: string; endIcon?: React.ReactNode } & ButtonProps
7
+ export type ButtonLinkListItemProps = { url: string; endIcon?: React.ReactNode } & ButtonProps
8
8
 
9
9
  const ButtonItem = styled(Button)(({ theme }) => ({
10
10
  color: theme.palette.text.primary,
@@ -16,12 +16,12 @@ const ButtonItem = styled(Button)(({ theme }) => ({
16
16
  typography: 'body1',
17
17
  }))
18
18
 
19
- export function ButtonLinkListItem(props: ButtonLinkProps) {
19
+ export function ButtonLinkListItem(props: ButtonLinkListItemProps) {
20
20
  const { children, url, endIcon = <IconSvg src={iconChevronRight} />, ...buttonProps } = props
21
21
 
22
22
  return (
23
23
  <PageLink href={url} passHref>
24
- <ButtonItem {...buttonProps} endIcon={endIcon}>
24
+ <ButtonItem {...buttonProps} endIcon={endIcon} LinkComponent='h3'>
25
25
  {children}
26
26
  </ButtonItem>
27
27
  </PageLink>
@@ -37,7 +37,7 @@ export function ContentLinks(props: ContentLinksProps) {
37
37
  gridAutoColumns: `max-content`,
38
38
  })}
39
39
  >
40
- <Typography variant='subtitle1' component='h3' className={classes.title}>
40
+ <Typography variant='subtitle1' component='h2' className={classes.title}>
41
41
  {title}
42
42
  </Typography>
43
43
  {children}
@@ -24,6 +24,7 @@ export const IconBlock = React.forwardRef<HTMLAnchorElement, IconBlockProps>((pr
24
24
  variant='subtitle1'
25
25
  className={classes.title}
26
26
  sx={(theme) => ({ fontWeight: theme.typography.fontWeightBold })}
27
+ component='span'
27
28
  >
28
29
  {title}
29
30
  </Typography>
@@ -18,7 +18,11 @@ export function IconBlocks(props: IconBlocksProps) {
18
18
  const { title, children, sx = [] } = props
19
19
 
20
20
  return (
21
- <Row className={classes.container} sx={[{ maxWidth: 820 }, ...(Array.isArray(sx) ? sx : [sx])]}>
21
+ <Row
22
+ maxWidth='md'
23
+ className={classes.container}
24
+ sx={[{ maxWidth: 820 }, ...(Array.isArray(sx) ? sx : [sx])]}
25
+ >
22
26
  <Box className={classes.wrapper} sx={(theme) => ({ paddingTop: `${theme.spacings.lg}` })}>
23
27
  <Box
24
28
  className={classes.title}
@@ -4,7 +4,7 @@ import { CacheProvider } from '@emotion/react'
4
4
 
5
5
  let muiCache: EmotionCache | undefined
6
6
  export const createMuiCache = () => {
7
- muiCache = createCache({ key: 'mui', prepend: true })
7
+ muiCache = createCache({ key: 'mui' })
8
8
  return muiCache
9
9
  }
10
10
 
package/icons/index.ts CHANGED
@@ -39,3 +39,4 @@ export { default as icon404 } from './explore.svg'
39
39
  export { default as iconSun } from './sun.svg'
40
40
  export { default as iconMoon } from './moon.svg'
41
41
  export { default as iconPlay } from './play.svg'
42
+ export { default as iconEllypsis } from './ellypsis.svg'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/next-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.6.1",
5
+ "version": "4.7.1",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "sideEffects": false,
@@ -19,11 +19,11 @@
19
19
  "@emotion/react": "^11.9.0",
20
20
  "@emotion/server": "^11.4.0",
21
21
  "@emotion/styled": "^11.6.0",
22
- "@graphcommerce/framer-next-pages": "3.1.6",
23
- "@graphcommerce/framer-scroller": "2.1.6",
22
+ "@graphcommerce/framer-next-pages": "3.2.1",
23
+ "@graphcommerce/framer-scroller": "2.1.9",
24
24
  "@graphcommerce/framer-utils": "3.1.2",
25
25
  "@graphcommerce/image": "3.1.5",
26
- "react-is": "^18.0.0",
26
+ "react-is": "^17.0.0",
27
27
  "react-schemaorg": "^2.0.0",
28
28
  "schema-dts": "^1.1.0"
29
29
  },
@@ -37,7 +37,7 @@
37
37
  "react-dom": "^17.0.2"
38
38
  },
39
39
  "devDependencies": {
40
- "@graphcommerce/eslint-config-pwa": "^4.1.5",
40
+ "@graphcommerce/eslint-config-pwa": "^4.1.6",
41
41
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
42
42
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
43
43
  "@playwright/test": "^1.21.1",