@graphcommerce/next-ui 4.6.2 → 4.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.
@@ -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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04)]:
12
+ - @graphcommerce/framer-next-pages@3.2.0
13
+ - @graphcommerce/framer-scroller@2.1.8
14
+
3
15
  ## 4.6.2
4
16
 
5
17
  ### 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
  }
@@ -21,7 +21,7 @@ export function ButtonLinkListItem(props: ButtonLinkListItemProps) {
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}
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.2",
5
+ "version": "4.7.0",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "sideEffects": false,
@@ -19,8 +19,8 @@
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.7",
22
+ "@graphcommerce/framer-next-pages": "3.2.0",
23
+ "@graphcommerce/framer-scroller": "2.1.8",
24
24
  "@graphcommerce/framer-utils": "3.1.2",
25
25
  "@graphcommerce/image": "3.1.5",
26
26
  "react-is": "^17.0.0",