@graphcommerce/next-ui 3.11.5 → 3.12.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.
@@ -113,10 +113,13 @@ const useStyles = makeStyles(
113
113
  sheetHeaderActionRight: {
114
114
  justifySelf: 'flex-end',
115
115
  '& > .Mui-disabled': {
116
- opacity: 0.25,
117
- color: `${theme.palette.primary.contrastText} !important`,
118
- [theme.breakpoints.up('md')]: {
116
+ // color: `${theme.palette.primary.contrastText} !important`,
117
+ [theme.breakpoints.up('sm')]: {
118
+ opacity: 0.25,
119
119
  color: `${theme.palette.secondary.contrastText} !important`,
120
+ '& svg': {
121
+ stroke: `${theme.palette.secondary.contrastText} !important`,
122
+ },
120
123
  },
121
124
  },
122
125
  },
@@ -187,7 +190,10 @@ const useStyles = makeStyles(
187
190
  background: theme.palette.background.paper,
188
191
  color: theme.palette.text.primary,
189
192
  '&:hover': {
190
- background: theme.palette.background.highlight,
193
+ background: theme.palette.background.paper,
194
+ },
195
+ '& svg': {
196
+ stroke: theme.palette.text.primary,
191
197
  },
192
198
  },
193
199
  sheetShellActionsFullPage: {
@@ -336,6 +342,7 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
336
342
  <Button
337
343
  onClick={historyOnClick}
338
344
  variant='pill-link'
345
+ size='small'
339
346
  className={classes.backButton}
340
347
  startIcon={backIcon}
341
348
  >
@@ -16,7 +16,7 @@ const useStyles = makeStyles(
16
16
  (theme: Theme) => ({
17
17
  title: {},
18
18
  margin: {
19
- marginTop: theme.spacings.md,
19
+ marginTop: theme.spacings.lg,
20
20
  marginBottom: theme.spacings.lg,
21
21
  },
22
22
  }),
@@ -43,6 +43,9 @@ const useStyles = makeStyles(
43
43
  '&:hover, &:focus': {
44
44
  background: theme.palette.text.primary,
45
45
  },
46
+ '& svg': {
47
+ stroke: theme.palette.background.default,
48
+ },
46
49
  },
47
50
  menu: {
48
51
  backgroundColor: theme.palette.background.paper,
@@ -64,10 +67,14 @@ const useStyles = makeStyles(
64
67
  )
65
68
 
66
69
  export type MenuFabProps = MenuProps &
67
- UseStyles<typeof useStyles> & { children?: React.ReactNode; search?: React.ReactNode }
70
+ UseStyles<typeof useStyles> & {
71
+ children?: React.ReactNode
72
+ search?: React.ReactNode
73
+ menuIcon?: React.ReactNode
74
+ }
68
75
 
69
76
  export default function MenuFab(props: MenuFabProps) {
70
- const { menu, children, search } = props
77
+ const { menu, children, search, menuIcon } = props
71
78
  const classes = useStyles(props)
72
79
  const router = useRouter()
73
80
  const [openEl, setOpenEl] = React.useState<null | HTMLElement>(null)
@@ -85,7 +92,7 @@ export default function MenuFab(props: MenuFabProps) {
85
92
  onClick={(event) => setOpenEl(event.currentTarget)}
86
93
  className={classes.menuFab}
87
94
  >
88
- <SvgImageSimple src={iconMenu} inverted />
95
+ {menuIcon ?? <SvgImageSimple src={iconMenu} inverted />}
89
96
  </Fab>
90
97
 
91
98
  <Menu
@@ -10,13 +10,16 @@ const useStyles = makeStyles(
10
10
  maxWidth: 800,
11
11
  margin: `0 auto`,
12
12
  marginBottom: theme.spacings.md,
13
- '& > div': {
14
- height: 52,
15
- borderRadius: 30,
16
- '& > div': {
17
- width: '44px !important',
18
- height: '44px !important',
19
- },
13
+ },
14
+ authorChip: {
15
+ height: 66,
16
+ '& .MuiChip-label': {
17
+ paddingLeft: 14,
18
+ paddingRight: 14,
19
+ },
20
+ '& .MuiAvatar-root': {
21
+ width: 44,
22
+ height: 44,
20
23
  },
21
24
  },
22
25
  date: {
@@ -46,7 +49,9 @@ export default function BlogAuthor(props: BlogAuthorProps) {
46
49
  <div className={classes.wrapper}>
47
50
  <Chip
48
51
  variant='outlined'
52
+ size='medium'
49
53
  avatar={<Avatar>{author.charAt(0).toUpperCase()}</Avatar>}
54
+ className={classes.authorChip}
50
55
  label={
51
56
  <section>
52
57
  <div className={classes.author}>{author}</div>
@@ -9,40 +9,8 @@ const useStyles = makeStyles(
9
9
  maxWidth: 800,
10
10
  margin: `0 auto`,
11
11
  marginBottom: theme.spacings.md,
12
- position: 'relative',
13
- backgroundColor: 'rgba(0,0,0,0.08)',
14
- overflow: 'hidden',
15
- },
16
- copy: {
17
- color: '#fff',
18
- display: 'grid',
19
- justifyItems: 'end',
20
- alignContent: 'end',
21
- padding: `${theme.spacings.lg} ${theme.spacings.md}`,
22
- minHeight: '30vh',
23
- '& > *': {
24
- zIndex: 0,
25
- maxWidth: 'max-content',
26
- },
27
- [theme.breakpoints.up('lg')]: {
28
- padding: `${theme.spacings.lg} ${theme.spacings.lg}`,
29
- },
30
- },
31
- asset: {
32
- position: 'absolute',
33
- top: '0',
34
- zIndex: 0,
35
- width: '100%',
36
- height: '100%',
37
- '& img': {
38
- width: '100%',
39
- height: '100% !important',
40
- objectFit: 'cover',
41
- },
42
- [theme.breakpoints.up('md')]: {
43
- height: '100%',
44
- },
45
12
  },
13
+ asset: {},
46
14
  }),
47
15
  { name: 'BlogHeader' },
48
16
  )
@@ -56,9 +24,6 @@ export default function BlogHeader(props: BlogHeaderProps) {
56
24
  const classes = useStyles()
57
25
 
58
26
  return (
59
- <div className={classes.header}>
60
- <Typography variant='body1' className={classes.copy} />
61
- {asset && <div className={classes.asset}>{asset}</div>}
62
- </div>
27
+ <div className={classes.header}>{asset && <div className={classes.asset}>{asset}</div>}</div>
63
28
  )
64
29
  }
@@ -17,7 +17,7 @@ const useStyles = makeStyles(
17
17
  date: {
18
18
  display: 'inline-block',
19
19
  textDecoration: 'none',
20
- color: 'rgb(0, 0, 0, 0.3)',
20
+ color: theme.palette.text.disabled,
21
21
  },
22
22
  asset: {
23
23
  display: 'grid',
@@ -32,7 +32,7 @@ const useStyles = makeStyles(
32
32
  alignSelf: 'center',
33
33
  justifySelf: 'center',
34
34
  },
35
- background: 'rgb(0, 0, 0, 0.08)',
35
+ background: theme.palette.background.paper,
36
36
  },
37
37
  title: {
38
38
  ...theme.typography.h3,
package/Button/index.tsx CHANGED
@@ -3,9 +3,11 @@ import {
3
3
  ButtonClassKey as MuiButtonClassKey,
4
4
  Theme,
5
5
  makeStyles,
6
+ lighten,
6
7
  } from '@material-ui/core'
7
8
  import clsx from 'clsx'
8
9
  import React from 'react'
10
+ import { responsiveVal } from '..'
9
11
 
10
12
  type BaseButtonProps = Omit<Parameters<typeof MuiButton>['0'], 'variant' | 'classes'> & {
11
13
  variant?: 'text' | 'outlined' | 'contained' | 'pill' | 'pill-link'
@@ -19,13 +21,11 @@ type ButtonClassKey =
19
21
  | 'pillSizeLarge'
20
22
  | 'pillSizeSmall'
21
23
  | 'pillNoElevation'
22
- | 'textBold'
23
24
  | 'withStartIcon'
24
25
  | 'startIconText'
25
26
  | 'loading'
26
27
 
27
28
  type ClassKeys = ButtonClassKey | MuiButtonClassKey
28
- type Text = 'normal' | 'bold'
29
29
 
30
30
  export type ButtonProps = BaseButtonProps & {
31
31
  classes?: { [index in ClassKeys]?: string }
@@ -58,13 +58,19 @@ const useStyles = makeStyles<
58
58
  borderRadius: '99em',
59
59
  },
60
60
  pillLink: {
61
- [theme.breakpoints.up('md')]: {
62
- background: theme.palette.secondary.main,
63
- color: theme.palette.secondary.contrastText,
64
- boxShadow: theme.shadows[6],
65
- borderRadius: 25,
66
- padding: '6px 16px',
67
-
61
+ [theme.breakpoints.up('sm')]: {
62
+ // manually match MuiButton and containedPrimary styles
63
+ textTransform: 'none',
64
+ ...theme.typography.body2,
65
+ fontWeight: 400,
66
+ padding: `${responsiveVal(8, 10)} ${responsiveVal(12, 22)}`,
67
+ backgroundColor: theme.palette.secondary.main,
68
+ color: theme.palette.primary.contrastText,
69
+ borderRadius: '99em',
70
+ boxShadow: theme.shadows[1],
71
+ '& svg': {
72
+ stroke: theme.palette.primary.contrastText,
73
+ },
68
74
  '&:hover': {
69
75
  background: theme.palette.secondary.dark,
70
76
  },
@@ -88,9 +94,6 @@ const useStyles = makeStyles<
88
94
  boxShadow: 'none',
89
95
  },
90
96
  },
91
- textBold: {
92
- fontWeight: theme.typography.fontWeightBold,
93
- },
94
97
  startIconText: {
95
98
  display: 'none',
96
99
  [theme.breakpoints.up('md')]: {
@@ -117,7 +120,6 @@ export default React.forwardRef<any, ButtonProps>((props, ref) => {
117
120
  pillSizeLarge,
118
121
  pillSizeSmall,
119
122
  pillLink,
120
- textBold,
121
123
  ...buttonClasses
122
124
  } = classes
123
125
 
@@ -130,7 +132,6 @@ export default React.forwardRef<any, ButtonProps>((props, ref) => {
130
132
  pillSizeLarge,
131
133
  pillSizeSmall,
132
134
  pillLink,
133
- textBold,
134
135
  ...buttonClasses,
135
136
  },
136
137
  })
@@ -161,7 +162,6 @@ export default React.forwardRef<any, ButtonProps>((props, ref) => {
161
162
  [pillClasses.pillSizeSmall]: variant === 'pill' && size === 'small',
162
163
  [pillClasses.pillNoElevation]: buttonProps.disableElevation,
163
164
  [pillClasses.pillLink]: variant === 'pill-link',
164
- [pillClasses.textBold]: text === 'bold',
165
165
  [pillClasses.loading]: loading,
166
166
  [pillClasses.withStartIcon]: withIcon,
167
167
  },
@@ -3,7 +3,6 @@ import PageLink from 'next/link'
3
3
  import React from 'react'
4
4
  import Button, { ButtonProps } from '../Button'
5
5
  import { UseStyles } from '../Styles'
6
- import SvgImage from '../SvgImage'
7
6
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
8
7
  import { iconChevronRight } from '../icons'
9
8
 
@@ -12,7 +11,7 @@ const useStyles = makeStyles((theme: Theme) => ({
12
11
  color: theme.palette.text.primary,
13
12
  textDecoration: 'none',
14
13
  padding: `${theme.spacings.xs} 0`,
15
- borderBottom: `1px solid ${theme.palette.grey[300]}`,
14
+ borderBottom: `1px solid ${theme.palette.divider}`,
16
15
  borderRadius: 0,
17
16
  ...theme.typography.body1,
18
17
  '& > *': {
package/CHANGELOG.md CHANGED
@@ -3,6 +3,75 @@
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.12.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.12.2...@graphcommerce/next-ui@3.12.3) (2021-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **MenuFab:** make icon customizable ([375bafd](https://github.com/ho-nl/m2-pwa/commit/375bafd901b3c53405e02d681ea0dca3af190e35))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.12.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.12.1...@graphcommerce/next-ui@3.12.2) (2021-11-02)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **message-snackbar:** children alignment ([02051df](https://github.com/ho-nl/m2-pwa/commit/02051df0f09945218117c6ba2c761e4dca3872a3))
23
+ * **message-snackbar:** children alignment ([9b9ac09](https://github.com/ho-nl/m2-pwa/commit/9b9ac094e10ec3e57155014366f39a22f07a7f52))
24
+
25
+
26
+
27
+
28
+
29
+ ## [3.12.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.12.0...@graphcommerce/next-ui@3.12.1) (2021-11-02)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * RemoveCoupon Button and fix pill-link style to match buttons ([6838812](https://github.com/ho-nl/m2-pwa/commit/68388123773fb4f79a3e4b1beb7ecca601d7748e))
35
+
36
+
37
+
38
+
39
+
40
+ # [3.12.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.11.5...@graphcommerce/next-ui@3.12.0) (2021-11-02)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * build ([2c2d317](https://github.com/ho-nl/m2-pwa/commit/2c2d317432e3a6f2b027f24c00ac2416d56847be))
46
+ * build ([5d07e8e](https://github.com/ho-nl/m2-pwa/commit/5d07e8e8dc9b70ab8e58018183c54484944e8822))
47
+ * cancel filter icon ([8e03602](https://github.com/ho-nl/m2-pwa/commit/8e03602dd54b2dae714ad514515fad907539b594))
48
+ * cleanup blog header styles ([b96aec1](https://github.com/ho-nl/m2-pwa/commit/b96aec13b5a0af74ec2058502c7da558eb675dbb))
49
+ * darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
50
+ * darkTheme ([df3d326](https://github.com/ho-nl/m2-pwa/commit/df3d326126446c1b92f8e46eff0533bbbe35604f))
51
+ * darkTheme ([a12786f](https://github.com/ho-nl/m2-pwa/commit/a12786f33cf09e974cceb8592ec98439ccbc3fad))
52
+ * darkTheme ([d0517af](https://github.com/ho-nl/m2-pwa/commit/d0517af5a788532c48f567ee3e840986efa26a67))
53
+ * darkTheme ([ae017c1](https://github.com/ho-nl/m2-pwa/commit/ae017c1a1e82f86ee5eb2f67106dac8174950c45))
54
+ * full image on blog view page ([6d14b0e](https://github.com/ho-nl/m2-pwa/commit/6d14b0ef24fa60321a442a42d5861adc20e4a5fa))
55
+ * icon size in checkout ([d7bb962](https://github.com/ho-nl/m2-pwa/commit/d7bb962a6827b81f737f22e36f828454abef1b47))
56
+ * move checkmark icons on select fields ([95ce54d](https://github.com/ho-nl/m2-pwa/commit/95ce54d7fd41d11120847f2fdf6b9097a2c93871))
57
+ * remove text from inputprops ([ccc11f2](https://github.com/ho-nl/m2-pwa/commit/ccc11f267e85b8b333877afb4ce11f96dad0a3d0))
58
+ * remove text='bold', make contained button text stronger by default ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
59
+ * remove unused imports ([5018763](https://github.com/ho-nl/m2-pwa/commit/5018763a8a2bbd0ba4a775979cc5885e9b17ad8d))
60
+ * style cleanup snackbar ([610221a](https://github.com/ho-nl/m2-pwa/commit/610221ad82f5726e9d745436cb1c08314bd342d5))
61
+ * svg color ([095ac85](https://github.com/ho-nl/m2-pwa/commit/095ac8578409ec005fbfe449fe4759d4f63b6f79))
62
+
63
+
64
+ ### Features
65
+
66
+ * add social icons to codebase for convenience ([9e4b404](https://github.com/ho-nl/m2-pwa/commit/9e4b404aa1dbc821562529f7b15ab4761a1ab52c))
67
+ * darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
68
+ * darkTheme ([3ed6647](https://github.com/ho-nl/m2-pwa/commit/3ed664714670315bc9f20542549724f66cb5052d))
69
+ * Mui true Pagination based on Fab ([572fa7b](https://github.com/ho-nl/m2-pwa/commit/572fa7b031b58b6ffdab60c4a50407a53202fa34))
70
+
71
+
72
+
73
+
74
+
6
75
  ## [3.11.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.11.4...@graphcommerce/next-ui@3.11.5) (2021-11-02)
7
76
 
8
77
 
@@ -3,38 +3,24 @@ import clsx from 'clsx'
3
3
  import React, { PropsWithChildren, useState } from 'react'
4
4
  import SectionHeader from '../SectionHeader'
5
5
  import responsiveVal from '../Styles/responsiveVal'
6
- import SvgImage from '../SvgImage'
7
6
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
8
- import { iconChevronDown, iconChevronUp, iconCloseCircle } from '../icons'
7
+ import { iconChevronDown, iconChevronUp, iconCancelAlt } from '../icons'
9
8
 
10
9
  export const useChipMenuStyles = makeStyles(
11
10
  (theme: Theme) => ({
12
- /*
13
- !importants: ensure background #xxxxxx on hover, focus etc regardless given props to the component
14
- otherwise you'll get: ".MuiChip-deletable.MuiChip-outlined:hover" which is prone to changes and thereby a fragile selector
15
- */
16
- chip: {
17
- background: theme.palette.background.default,
18
- '& .MuiChip-label': {
19
- wordWrap: 'break-word',
20
- },
21
- '&:hover': {
22
- background: `${theme.palette.background.highlight} !important`,
23
- },
24
- '&:focus': {
25
- background: `${theme.palette.background.default} !important`,
26
- },
27
- },
11
+ chip: {},
28
12
  chipSelected: {
29
- border: `1px solid ${theme.palette.text.primary}`,
30
- background: theme.palette.grey['100'],
13
+ borderColor: theme.palette.text.primary,
31
14
  color: theme.palette.text.primary,
32
15
  '&:hover': {
33
16
  background: `${theme.palette.background.default} !important`,
34
- borderColor: theme.palette.grey['600'],
17
+ borderColor: theme.palette.divider,
35
18
  },
36
19
  '&:focus': {
37
- background: `${theme.palette.grey['100']} !important`,
20
+ background: `${theme.palette.background.paper} !important`,
21
+ },
22
+ '& svg': {
23
+ stroke: theme.palette.text.primary,
38
24
  },
39
25
  },
40
26
  menuPaper: {
@@ -50,6 +36,10 @@ export const useChipMenuStyles = makeStyles(
50
36
  marginTop: '8px',
51
37
  },
52
38
  },
39
+ iconCancel: {
40
+ stroke: `none !important`,
41
+ fill: `${theme.palette.text.primary} !important`,
42
+ },
53
43
  menuList: {
54
44
  padding: 0,
55
45
  '&:focus': {
@@ -77,7 +67,7 @@ export default function ChipMenu(props: ChipMenuProps) {
77
67
  const classes = useChipMenuStyles(props)
78
68
 
79
69
  let deleteIcon = selected ? (
80
- <SvgImageSimple src={iconCloseCircle} />
70
+ <SvgImageSimple src={iconCancelAlt} className={classes.iconCancel} />
81
71
  ) : (
82
72
  <SvgImageSimple src={iconChevronDown} />
83
73
  )
@@ -1,15 +1,18 @@
1
1
  import { makeStyles, Theme } from '@material-ui/core'
2
+ import clsx from 'clsx'
2
3
  import React, { PropsWithChildren } from 'react'
3
- import SvgImage from '../SvgImage'
4
4
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
5
5
  import { iconCheckmark } from '../icons'
6
6
 
7
- export type InputCheckmarkProps = PropsWithChildren<{ show?: boolean }>
7
+ export type InputCheckmarkProps = PropsWithChildren<{ show?: boolean; select?: boolean }>
8
8
  const useStyles = makeStyles(
9
9
  (theme: Theme) => ({
10
10
  iconCheckmark: {
11
11
  stroke: '#01D26A',
12
12
  },
13
+ select: {
14
+ marginRight: 15,
15
+ },
13
16
  }),
14
17
  { name: 'InputCheckmark' },
15
18
  )
@@ -22,9 +25,14 @@ const useStyles = makeStyles(
22
25
  * ```
23
26
  */
24
27
  export default function InputCheckmark(props: InputCheckmarkProps) {
25
- const { show: valid, children } = props
28
+ const { show: valid, children, select = false } = props
26
29
  const classes = useStyles()
27
30
 
28
31
  if (!valid) return <>{children}</>
29
- return <SvgImageSimple src={iconCheckmark} className={classes.iconCheckmark} />
32
+ return (
33
+ <SvgImageSimple
34
+ src={iconCheckmark}
35
+ className={clsx(classes.iconCheckmark, select && classes.select)}
36
+ />
37
+ )
30
38
  }
package/Form/index.tsx CHANGED
@@ -1,4 +1,4 @@
1
- import { makeStyles, Theme } from '@material-ui/core'
1
+ import { darken, makeStyles, Theme } from '@material-ui/core'
2
2
  import clsx from 'clsx'
3
3
  import React from 'react'
4
4
  import { UseStyles } from '../Styles'
@@ -14,7 +14,7 @@ const useStyles = makeStyles(
14
14
  background: theme.palette.secondary.light,
15
15
  },
16
16
  default: {
17
- background: theme.palette.background.highlight,
17
+ background: darken(theme.palette.background.paper, 0.02),
18
18
  },
19
19
  contained: {
20
20
  padding: theme.spacings.sm,
@@ -17,7 +17,6 @@ import React, { useEffect, useRef } from 'react'
17
17
  import { Row } from '../..'
18
18
  import { UseStyles } from '../../Styles'
19
19
  import responsiveVal from '../../Styles/responsiveVal'
20
- import SvgImage from '../../SvgImage'
21
20
  import SvgImageSimple from '../../SvgImage/SvgImageSimple'
22
21
  import { iconChevronLeft, iconChevronRight, iconFullscreen, iconFullscreenExit } from '../../icons'
23
22
 
@@ -34,7 +33,10 @@ const useStyles = makeStyles(
34
33
  [theme.breakpoints.up('md')]: {
35
34
  gridTemplateColumns: '1fr auto',
36
35
  },
37
- background: theme.palette.background.highlight,
36
+ background:
37
+ theme.palette.type === 'light'
38
+ ? theme.palette.background.image
39
+ : theme.palette.background.paper,
38
40
  paddingRight: `calc((100% - ${theme.breakpoints.values.lg}px) / 2)`,
39
41
  },
40
42
  rootZoomed: {
@@ -56,6 +58,7 @@ const useStyles = makeStyles(
56
58
 
57
59
  return {
58
60
  height: 0, // https://stackoverflow.com/questions/44770074/css-grid-row-height-safari-bug
61
+ backgroundColor: theme.palette.background.image,
59
62
  position: 'relative',
60
63
  minHeight: '100%',
61
64
  paddingTop: `min(${ratio}, ${maxHeight})`,
@@ -156,7 +159,7 @@ const useStyles = makeStyles(
156
159
  top: `calc(50% - 28px)`,
157
160
  },
158
161
  dots: {
159
- background: alpha(theme.palette.background.highlight, 0.7),
162
+ background: alpha(theme.palette.background.paper, 0.7),
160
163
  },
161
164
  }),
162
165
  { name: 'SidebarGallery' },
@@ -258,7 +261,7 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
258
261
  ))}
259
262
  </Scroller>
260
263
  <m.div layout className={classes.topRight}>
261
- <Fab color='inherit' size='small' className={classes.toggleIcon} onMouseUp={toggle}>
264
+ <Fab size='small' className={classes.toggleIcon} onMouseUp={toggle}>
262
265
  {!zoomed ? (
263
266
  <SvgImageSimple src={iconFullscreen} />
264
267
  ) : (
@@ -1,17 +1,31 @@
1
- import { makeStyles, Theme } from '@material-ui/core'
1
+ import { Fab, makeStyles, Theme, Typography } from '@material-ui/core'
2
2
  import { PaginationProps, usePagination } from '@material-ui/lab'
3
+ import clsx from 'clsx'
3
4
  import React from 'react'
4
5
  import { UseStyles } from '../Styles'
5
- import SvgImage from '../SvgImage'
6
6
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
7
7
  import { iconChevronLeft, iconChevronRight } from '../icons'
8
8
 
9
9
  const useStyles = makeStyles((theme: Theme) => ({
10
+ root: {
11
+ margin: '0 auto',
12
+ marginTop: theme.spacings.lg,
13
+ marginBottom: theme.spacings.lg,
14
+ display: 'flex',
15
+ alignItems: 'center',
16
+ justifyContent: 'center',
17
+ gap: 6,
18
+ '& .Mui-disabled': {
19
+ background: 'none',
20
+ '& svg': {
21
+ stroke: theme.palette.text.disabled,
22
+ },
23
+ },
24
+ },
10
25
  pagination: {
11
26
  gridArea: 'pagination',
12
27
  justifyContent: 'center',
13
28
  display: 'grid',
14
- gap: 8,
15
29
  gridAutoFlow: 'column',
16
30
  alignItems: 'center',
17
31
  marginBottom: theme.spacings.xxl,
@@ -24,51 +38,6 @@ const useStyles = makeStyles((theme: Theme) => ({
24
38
  boxShadow: 'none',
25
39
  },
26
40
  },
27
- disabled: {
28
- background: 'none !important',
29
- },
30
- root: {
31
- margin: '32px auto 0 auto',
32
- marginTop: theme.spacings.lg,
33
- marginBottom: theme.spacings.lg,
34
- display: 'flex',
35
- alignItems: 'center',
36
- justifyContent: 'center',
37
- // fontSize: 18,
38
- '& span': {
39
- padding: '0 8px 0 0',
40
- },
41
- '& a': {
42
- transition: 'background .25s ease',
43
- borderRadius: '100%',
44
- height: 40,
45
- width: 40,
46
- '&:hover': {
47
- background: 'rgba(0, 0, 0, 0.04)',
48
- },
49
- },
50
- [theme.breakpoints.down('xs')]: {
51
- alignItems: 'center',
52
- },
53
- },
54
- icon: {
55
- display: 'flex',
56
- borderRadius: '100%',
57
- padding: 6,
58
- height: 40,
59
- width: 40,
60
- },
61
- label: {
62
- ...theme.typography.body1,
63
- textAlign: 'center',
64
- },
65
- labelTitle: {
66
- ...theme.typography.body1,
67
- display: 'inline',
68
- [theme.breakpoints.down('xs')]: {
69
- display: 'block',
70
- },
71
- },
72
41
  }))
73
42
 
74
43
  export type PagePaginationProps = {
@@ -97,19 +66,22 @@ export default function Pagination(props: PagePaginationProps) {
97
66
  const nextBtnProps = items[items.length - 1]
98
67
 
99
68
  const chevronLeft = (
100
- <SvgImageSimple src={iconChevronLeft} muted={page === 1} className={classes.icon} />
69
+ <Fab size='medium' disabled={page === 1} color='inherit'>
70
+ <SvgImageSimple src={iconChevronLeft} />
71
+ </Fab>
101
72
  )
102
73
 
103
74
  const chevronRight = (
104
- <SvgImageSimple src={iconChevronRight} muted={page === count} className={classes.icon} />
75
+ <Fab size='medium' disabled={page === count} color='inherit'>
76
+ <SvgImageSimple src={iconChevronRight} />
77
+ </Fab>
105
78
  )
106
79
 
107
80
  return (
108
81
  <div className={classes.root}>
109
82
  {page === 1 ? chevronLeft : renderLink(page - 1, chevronLeft, prevBtnProps)}
110
83
 
111
- <span className={classes.labelTitle}>Page</span>
112
- <span className={classes.label}>{`${page} of ${Math.max(1, count)}`}</span>
84
+ <Typography variant='body1'>Page {`${page} of ${Math.max(1, count)}`}</Typography>
113
85
 
114
86
  {page === count ? chevronRight : renderLink(page + 1, chevronRight, nextBtnProps)}
115
87
  </div>
@@ -17,7 +17,7 @@ const useStyles = makeStyles(
17
17
  overline: {
18
18
  display: 'block',
19
19
  padding: `${theme.spacings.xs} 0`,
20
- borderBottom: `1px solid ${theme.palette.grey[300]}`,
20
+ borderBottom: `1px solid ${theme.palette.divider}`,
21
21
  },
22
22
  links: ({ containsBigLinks }: ButtonLinkListPropsBase) => ({
23
23
  display: 'grid',
@@ -1,5 +1,5 @@
1
1
  import { makeStyles, Theme, Typography } from '@material-ui/core'
2
- import React, { useRef } from 'react'
2
+ import React from 'react'
3
3
  import Button from '../../../Button'
4
4
  import { UseStyles } from '../../../Styles'
5
5
 
@@ -10,7 +10,7 @@ const useStyles = makeStyles(
10
10
  gridAutoFlow: 'row',
11
11
  justifyItems: 'center',
12
12
  gap: `${theme.spacings.xs}`,
13
- border: `1px solid ${theme.palette.grey[300]}`,
13
+ border: `1px solid ${theme.palette.divider}`,
14
14
  padding: `${theme.spacings.sm}`,
15
15
  borderRadius: '6px',
16
16
  textAlign: 'center',
@@ -22,7 +22,7 @@ const useStyles = makeStyles(
22
22
  gridAutoFlow: 'row',
23
23
  justifyItems: 'center',
24
24
  gap: `${theme.spacings.xs}`,
25
- border: `1px solid ${theme.palette.grey[300]}`,
25
+ border: `1px solid ${theme.palette.divider}`,
26
26
  padding: `${theme.spacings.sm}`,
27
27
  borderRadius: '6px',
28
28
  cursor: 'pointer',
@@ -7,7 +7,10 @@ const useStyles = makeStyles(
7
7
  (theme: Theme) => ({
8
8
  wrapper: {
9
9
  display: 'grid',
10
- background: 'rgba(0,0,0,0.03)',
10
+ background:
11
+ theme.palette.type === 'light'
12
+ ? theme.palette.background.image
13
+ : theme.palette.background.paper,
11
14
  justifyItems: 'center',
12
15
  columnGap: theme.spacings.lg,
13
16
  padding: `${theme.spacings.xl} 0`,
@@ -27,12 +30,14 @@ const useStyles = makeStyles(
27
30
  },
28
31
  },
29
32
  copy: {
33
+ marginTop: theme.spacings.lg,
30
34
  color: theme.palette.text.primary,
31
35
  maxWidth: '80%',
32
36
  display: 'grid',
33
37
  alignContent: 'center',
34
38
  [theme.breakpoints.up('md')]: {
35
39
  maxWidth: '70%',
40
+ marginTop: 0,
36
41
  },
37
42
  '& > *': {
38
43
  maxWidth: 'max-content',
@@ -86,7 +86,7 @@ export type SpecialBannerProps = UseStyles<typeof useStyles> &
86
86
 
87
87
  export default function SpecialBanner(props: SpecialBannerProps) {
88
88
  const { asset, topic, pageLinks, children, ...containerProps } = props
89
- const classes = useStyles()
89
+ const classes = useStyles(props)
90
90
 
91
91
  return (
92
92
  <Row maxWidth={false} {...containerProps}>
@@ -22,7 +22,7 @@ const useStyles = makeStyles(
22
22
  },
23
23
  labelLeft: {},
24
24
  labelRight: {
25
- color: theme.palette.primary.contrastText,
25
+ color: theme.palette.text.primary,
26
26
  lineHeight: 1,
27
27
  },
28
28
  }),
@@ -56,11 +56,21 @@ export default function SectionHeader(props: SectionHeaderProps) {
56
56
  [classes.sectionHeaderSidePadding]: usePadding,
57
57
  })}
58
58
  >
59
- <Typography className={classes.labelLeft} variant={variantLeft} component='div'>
59
+ <Typography
60
+ className={classes.labelLeft}
61
+ variant={variantLeft}
62
+ color='textSecondary'
63
+ component='div'
64
+ >
60
65
  {labelLeft}
61
66
  </Typography>
62
67
  {labelRight && (
63
- <Typography className={classes.labelRight} variant={variantRight} component='div'>
68
+ <Typography
69
+ className={classes.labelRight}
70
+ variant={variantRight}
71
+ color='textSecondary'
72
+ component='div'
73
+ >
64
74
  {labelRight}
65
75
  </Typography>
66
76
  )}
@@ -6,6 +6,7 @@ import {
6
6
  SnackbarProps,
7
7
  Theme,
8
8
  Portal,
9
+ lighten,
9
10
  } from '@material-ui/core'
10
11
  import clsx from 'clsx'
11
12
  import React, { useEffect, useState } from 'react'
@@ -35,9 +36,8 @@ const useStyles = makeStyles(
35
36
  rootPill: {
36
37
  backgroundColor: theme.palette.background.paper,
37
38
  color: theme.palette.text.primary,
38
-
39
39
  [theme.breakpoints.up('md')]: {
40
- borderRadius: 50,
40
+ borderRadius: '99em',
41
41
  },
42
42
  },
43
43
  rootPillLarge: {},
@@ -58,61 +58,29 @@ const useStyles = makeStyles(
58
58
  },
59
59
  },
60
60
  children: {
61
- // display: 'flex',
61
+ display: 'flex',
62
+ columnGap: 10,
62
63
  gridArea: 'children',
63
- ...theme.typography.h6,
64
+ ...theme.typography.subtitle1,
64
65
  fontWeight: 400,
65
-
66
- '& .MuiSvgIcon-root': {
67
- position: 'relative',
68
- fontSize: '1.1em',
69
- top: '0.15em',
70
- },
71
66
  },
72
67
  actionButton: {
73
68
  gridArea: 'action',
74
69
  '&:hover, &:focus': {
75
70
  backgroundColor: 'transparent',
76
71
  },
77
- '& .MuiPillButton-pill': {
78
- width: '100%',
79
- padding: theme.spacings.xxs,
80
- borderRadius: 40,
81
- },
82
- [theme.breakpoints.up('md')]: {
83
- margin: 0,
72
+ [theme.breakpoints.down('md')]: {
84
73
  '& .MuiPillButton-pill': {
85
74
  width: '100%',
86
- padding: '8px 16px',
87
75
  },
88
76
  },
89
77
  },
90
- closeButton: {
91
- gridArea: 'close',
92
- '& .MuiSvgIcon-root': {
93
- height: 24,
94
- },
95
- '& .MuiFab-sizeMedium': {
96
- height: 36,
97
- width: 36,
98
- },
99
- [theme.breakpoints.up('md')]: {
100
- '& .MuiSvgIcon-root': {
101
- height: 28,
102
- },
103
- '& .MuiFab-sizeMedium': {
104
- height: 44,
105
- width: 44,
106
- },
107
- },
78
+ close: {
79
+ backgroundColor: lighten(theme.palette.background.paper, 0.1),
108
80
  },
109
81
  sticky: {
110
82
  position: 'sticky',
111
83
  },
112
- messageIcon: {
113
- display: 'inline-block',
114
- marginRight: 5,
115
- },
116
84
  }),
117
85
  { name: 'MessageSnackbar' },
118
86
  )
@@ -201,21 +169,22 @@ export default function MessageSnackbarImpl(props: MessageSnackbarImplProps) {
201
169
  message={
202
170
  <>
203
171
  <div className={classes.children}>
204
- <div>
205
- <SvgImageSimple src={icon} size='large' className={classes.messageIcon} />
206
- {children}
207
- </div>
172
+ <SvgImageSimple src={icon} size='large' />
173
+ <div>{children}</div>
208
174
  </div>
209
175
  {action && (
210
176
  <div className={classes.actionButton} onClick={hideSnackbar}>
211
177
  {action}
212
178
  </div>
213
179
  )}
214
- <div className={classes.closeButton}>
215
- <Fab aria-label='Close snackbar' size='medium' onClick={hideSnackbar}>
216
- <SvgImageSimple src={iconClose} size='small' />
217
- </Fab>
218
- </div>
180
+ <Fab
181
+ className={classes.close}
182
+ aria-label='Close snackbar'
183
+ size='small'
184
+ onClick={hideSnackbar}
185
+ >
186
+ <SvgImageSimple src={iconClose} />
187
+ </Fab>
219
188
  </>
220
189
  }
221
190
  />
@@ -2,7 +2,6 @@ import { makeStyles, Theme } from '@material-ui/core'
2
2
  import { Rating, RatingProps } from '@material-ui/lab'
3
3
  import React from 'react'
4
4
  import { SvgImageSimple } from '..'
5
- import SvgImage from '../SvgImage'
6
5
  import { iconStar } from '../icons'
7
6
 
8
7
  export type StarRatingFieldProps = {
@@ -7,13 +7,14 @@ import responsiveVal from '../Styles/responsiveVal'
7
7
  const useStyles = makeStyles(
8
8
  (theme: Theme) => ({
9
9
  root: {
10
+ marginTop: '-2px',
10
11
  display: 'grid',
11
12
  gridAutoFlow: 'column',
12
13
  gap: responsiveVal(8, 12),
13
14
  // padding: `0 ${theme.page.horizontal}`,
14
15
  },
15
16
  step: {
16
- height: 2,
17
+ height: responsiveVal(2, 3),
17
18
  background: theme.palette.divider,
18
19
  },
19
20
  current: {
@@ -15,7 +15,6 @@ const useStyles = makeStyles(
15
15
  strokeWidth: 1.8,
16
16
  strokeLinecap: 'square',
17
17
  strokeLinejoin: 'miter',
18
- stroke: theme.palette.text.primary,
19
18
  fill: 'none',
20
19
  },
21
20
  sizeInherit: {
@@ -32,21 +31,17 @@ const useStyles = makeStyles(
32
31
  strokeWidth: 1.4,
33
32
  },
34
33
  sizeXl: {
35
- width: responsiveVal(38, 42),
36
- height: responsiveVal(38, 42),
37
- strokeWidth: 1.8,
34
+ width: responsiveVal(38, 62),
35
+ height: responsiveVal(38, 62),
36
+ strokeWidth: 1.5,
38
37
  },
39
38
  sizeXxl: {
40
39
  width: responsiveVal(96, 148),
41
40
  height: responsiveVal(96, 148),
42
41
  strokeWidth: 1,
43
42
  },
44
- muted: {
45
- stroke: theme.palette.text.disabled,
46
- },
47
- inverted: {
48
- stroke: theme.palette.background.default,
49
- },
43
+ muted: {},
44
+ inverted: {},
50
45
  }),
51
46
  { name: 'SvgImageSimple' },
52
47
  )
@@ -12,7 +12,6 @@ import clsx from 'clsx'
12
12
  import React, { ChangeEvent, Ref, useCallback, useEffect, useRef, useState } from 'react'
13
13
  import { UseStyles } from '../Styles'
14
14
  import responsiveVal from '../Styles/responsiveVal'
15
- import SvgImage from '../SvgImage'
16
15
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
17
16
  import { iconMin, iconPlus } from '../icons'
18
17
 
package/Theme/types.ts CHANGED
@@ -2,7 +2,7 @@ export {}
2
2
 
3
3
  declare module '@material-ui/core/styles/createPalette' {
4
4
  interface TypeBackground {
5
- highlight: string
5
+ image: string
6
6
  }
7
7
  }
8
8
 
package/Title/index.tsx CHANGED
@@ -1,6 +1,7 @@
1
1
  import { makeStyles, Theme, Typography, TypographyProps } from '@material-ui/core'
2
2
  import clsx from 'clsx'
3
3
  import React from 'react'
4
+ import { responsiveVal } from '..'
4
5
  import { UseStyles } from '../Styles'
5
6
  import SvgImage, { SvgImageProps } from '../SvgImage'
6
7
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
@@ -18,14 +19,13 @@ const useStyles = makeStyles(
18
19
  },
19
20
  },
20
21
  typography: {},
21
- icon: {
22
- [theme.breakpoints.down('sm')]: {
23
- width: 48,
24
- height: 48,
25
- },
26
- },
27
22
  small: {
28
23
  flexFlow: 'unset',
24
+ '& svg': {
25
+ width: responsiveVal(24, 28),
26
+ height: responsiveVal(24, 28),
27
+ strokeWidth: 1.4,
28
+ },
29
29
  },
30
30
  }),
31
31
  {
@@ -0,0 +1 @@
1
+ <svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" aria-labelledby="cancelAltIconTitle" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6"> <title id="cancelAltIconTitle">cancelAlt</title> <symbol id="icon" viewBox="0 0 24 24"><path d="M19.0710678,4.92893219 C22.9763107,8.83417511 22.9763107,15.1658249 19.0710678,19.0710678 C15.1658249,22.9763107 8.83417511,22.9763107 4.92893219,19.0710678 C1.02368927,15.1658249 1.02368927,8.83417511 4.92893219,4.92893219 C8.83417511,1.02368927 15.1658249,1.02368927 19.0710678,4.92893219 Z M16.9497475,8.46446609 L15.5355339,7.05025253 L12,10.5857864 L8.46446609,7.05025253 L7.05025253,8.46446609 L10.5857864,12 L7.05025253,15.5355339 L8.46446609,16.9497475 L12,13.4142136 L15.5355339,16.9497475 L16.9497475,15.5355339 L13.4142136,12 L16.9497475,8.46446609 Z" id="Shape"></path></symbol></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" aria-labelledby="facebookIcon" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6"> <title id="facebookIconTitle">Facebook</title> <symbol id="icon" viewBox="0 0 24 24"> <path d="M22,12 C22,6.4775 17.5225,2 12,2 C6.4775,2 2,6.4775 2,12 C2,16.9916667 5.65666667,21.1283333 10.4375,21.8783333 L10.4375,14.8908333 L7.89833333,14.8908333 L7.89833333,11.9991667 L10.4375,11.9991667 L10.4375,9.7975 C10.4375,7.29166667 11.9308333,5.90666667 14.215,5.90666667 C15.3083333,5.90666667 16.4533333,6.1025 16.4533333,6.1025 L16.4533333,8.56333333 L15.1916667,8.56333333 C13.9491667,8.56333333 13.5616667,9.33416667 13.5616667,10.125 L13.5616667,12 L16.335,12 L15.8916667,14.8916667 L13.5616667,14.8916667 L13.5616667,21.8791667 C18.3433333,21.1283333 22,16.9908333 22,12 Z" id="Shape"></path> </symbol></svg>
package/icons/index.tsx CHANGED
@@ -13,7 +13,7 @@ export { default as iconShoppingBag } from './bag.svg'
13
13
  export { default as iconFullscreenExit } from './minimise.svg'
14
14
  export { default as iconChat } from './chat-alt.svg'
15
15
  export { default as iconChevronBack } from './chevron-left.svg'
16
- export { default as iconCloseCircle } from './cancel.svg'
16
+ export { default as iconCancelAlt } from './cancel-alt.svg'
17
17
  export { default as iconEmail } from './envelope-alt.svg'
18
18
  export { default as iconCheckmark } from './ok.svg'
19
19
  export { default as iconArrowBack } from './arrow-left.svg'
@@ -0,0 +1 @@
1
+ <svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" aria-labelledby="instagramIcon" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6"> <title id="instagramIconTitle">Instagram</title> <symbol id="icon" viewBox="0 0 24 24"> <path d="M12,2 C9.28333333,2 8.94416667,2.0125 7.8775,2.06 C6.8125,2.11 6.0875,2.2775 5.45,2.525 C4.7925,2.78 4.23416667,3.1225 3.67833333,3.67833333 C3.1225,4.23416667 2.77916667,4.79166667 2.525,5.45 C2.2775,6.0875 2.10916667,6.8125 2.06,7.8775 C2.01,8.94416667 2,9.28333333 2,12 C2,14.7166667 2.0125,15.0558333 2.06,16.1225 C2.11,17.1866667 2.2775,17.9125 2.525,18.55 C2.78,19.2066667 3.1225,19.7658333 3.67833333,20.3216667 C4.23416667,20.8766667 4.79166667,21.2208333 5.45,21.475 C6.08833333,21.7216667 6.81333333,21.8908333 7.8775,21.94 C8.94416667,21.99 9.28333333,22 12,22 C14.7166667,22 15.0558333,21.9875 16.1225,21.94 C17.1866667,21.89 17.9125,21.7216667 18.55,21.475 C19.2066667,21.22 19.7658333,20.8766667 20.3216667,20.3216667 C20.8766667,19.7658333 21.2208333,19.2091667 21.475,18.55 C21.7216667,17.9125 21.8908333,17.1866667 21.94,16.1225 C21.99,15.0558333 22,14.7166667 22,12 C22,9.28333333 21.9875,8.94416667 21.94,7.8775 C21.89,6.81333333 21.7216667,6.08666667 21.475,5.45 C21.22,4.7925 20.8766667,4.23416667 20.3216667,3.67833333 C19.7658333,3.1225 19.2091667,2.77916667 18.55,2.525 C17.9125,2.2775 17.1866667,2.10916667 16.1225,2.06 C15.0558333,2.01 14.7166667,2 12,2 Z M12,3.8 C14.6691667,3.8 14.9875,3.81333333 16.0416667,3.85916667 C17.0166667,3.905 17.5458333,4.06666667 17.8975,4.205 C18.3658333,4.38583333 18.6975,4.6025 19.0491667,4.95166667 C19.3983333,5.30166667 19.615,5.63416667 19.7958333,6.1025 C19.9325,6.45416667 20.0958333,6.98333333 20.14,7.95833333 C20.1875,9.01333333 20.1983333,9.33 20.1983333,12 C20.1983333,14.67 20.1858333,14.9875 20.1366667,16.0416667 C20.0858333,17.0166667 19.9233333,17.5458333 19.7858333,17.8975 C19.5991667,18.3658333 19.3866667,18.6975 19.0366667,19.0491667 C18.6875,19.3983333 18.35,19.615 17.8866667,19.7958333 C17.5366667,19.9325 16.9991667,20.0958333 16.0241667,20.14 C14.9625,20.1875 14.65,20.1983333 11.975,20.1983333 C9.29916667,20.1983333 8.98666667,20.1858333 7.92583333,20.1366667 C6.95,20.0858333 6.4125,19.9233333 6.0625,19.7858333 C5.58833333,19.5991667 5.2625,19.3866667 4.91333333,19.0366667 C4.5625,18.6875 4.33833333,18.35 4.16333333,17.8866667 C4.02583333,17.5366667 3.86416667,16.9991667 3.81333333,16.0241667 C3.77583333,14.9741667 3.7625,14.65 3.7625,11.9875 C3.7625,9.32416667 3.77583333,8.99916667 3.81333333,7.93666667 C3.86416667,6.96166667 4.02583333,6.425 4.16333333,6.075 C4.33833333,5.6 4.5625,5.275 4.91333333,4.92416667 C5.2625,4.575 5.58833333,4.35 6.0625,4.17583333 C6.4125,4.0375 6.93833333,3.875 7.91333333,3.825 C8.97583333,3.7875 9.28833333,3.775 11.9625,3.775 L12,3.8 L12,3.8 Z M12,6.865 C9.1625,6.865 6.865,9.165 6.865,12 C6.865,14.8375 9.165,17.135 12,17.135 C14.8375,17.135 17.135,14.835 17.135,12 C17.135,9.1625 14.835,6.865 12,6.865 Z M12,15.3333333 C10.1583333,15.3333333 8.66666667,13.8416667 8.66666667,12 C8.66666667,10.1583333 10.1583333,8.66666667 12,8.66666667 C13.8416667,8.66666667 15.3333333,10.1583333 15.3333333,12 C15.3333333,13.8416667 13.8416667,15.3333333 12,15.3333333 Z M18.5383333,6.6625 C18.5383333,7.325 18,7.8625 17.3383333,7.8625 C16.6758333,7.8625 16.1383333,7.32416667 16.1383333,6.6625 C16.1383333,6.00083333 16.6766667,5.46333237 17.3383333,5.46333237 C17.9991667,5.4625 18.5383333,6.00083333 18.5383333,6.6625 Z" id="Shape"></path> </symbol></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" aria-labelledby="linkedinIcon" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6"> <title id="linkedinIconTitle">Linkedin</title> <symbol id="icon" viewBox="0 0 24 24"> <path d="M19.0391667,19.0433333 L16.0775,19.0433333 L16.0775,14.4025 C16.0775,13.2958333 16.055,11.8716667 14.5341667,11.8716667 C12.99,11.8716667 12.7541667,13.0758333 12.7541667,14.3208333 L12.7541667,19.0433333 L9.7925,19.0433333 L9.7925,9.5 L12.6375,9.5 L12.6375,10.8008333 L12.6758333,10.8008333 C13.0733333,10.0508333 14.04,9.25916667 15.4841667,9.25916667 C18.485,9.25916667 19.04,11.2341667 19.04,13.805 L19.04,19.0433333 L19.0391667,19.0433333 Z M6.4475,8.19416667 C5.49416667,8.19416667 4.72833333,7.4225 4.72833333,6.47333333 C4.72833333,5.525 5.495,4.75416667 6.4475,4.75416667 C7.3975,4.75416667 8.1675,5.525 8.1675,6.47333333 C8.1675,7.4225 7.39666667,8.19416667 6.4475,8.19416667 Z M7.9325,19.0433333 L4.9625,19.0433333 L4.9625,9.5 L7.9325,9.5 L7.9325,19.0433333 Z M20.5208333,2 L3.47583333,2 C2.66,2 2,2.645 2,3.44083333 L2,20.5591667 C2,21.3558333 2.66,22 3.47583333,22 L20.5183333,22 C21.3333333,22 22,21.3558333 22,20.5591667 L22,3.44083333 C22,2.645 21.3333333,2 20.5183333,2 L20.5208333,2 Z" id="Shape"></path> </symbol></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" xmlns="http://www.w3.org/2000/svg" width="48px" height="48px" aria-labelledby="iconTwitter" stroke="#2329D6" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="#2329D6"> <title id="iconTwitterTitle">Twitter</title> <symbol id="icon" viewBox="0 0 24 24"> <path d="M8.16087442,20.762239 C16.1774221,20.762239 20.5607655,14.1194402 20.5607655,8.36234795 C20.5607655,8.1725537 20.5607655,7.98275945 20.5517277,7.80200302 C21.4012829,7.18743116 22.1423842,6.41921633 22.7298426,5.54254765 C21.95259,5.88598487 21.1120726,6.12096823 20.2263661,6.22942208 C21.1301482,5.68715279 21.8170227,4.83759758 22.1423842,3.81632375 C21.3018668,4.31340393 20.3709712,4.67491679 19.3768109,4.87374886 C18.5814826,4.02419365 17.4517549,3.5 16.1954977,3.5 C13.7914372,3.5 11.8392678,5.45216944 11.8392678,7.85622995 C11.8392678,8.19966716 11.875419,8.53406656 11.9567594,8.85039031 C8.33259303,8.66963388 5.12416641,6.93437216 2.9731649,4.29532829 C2.60261422,4.93701361 2.3857065,5.68715279 2.3857065,6.48248108 C2.3857065,7.99179727 3.15392133,9.32939485 4.32883812,10.1066475 C3.61485022,10.0885718 2.94605143,9.88973978 2.35859304,9.5643782 C2.35859304,9.58245385 2.35859304,9.60052949 2.35859304,9.61860513 C2.35859304,11.7334554 3.8588714,13.4867927 5.85622995,13.8934947 C5.49471709,13.9929107 5.10609076,14.0471377 4.70842662,14.0471377 C4.42825415,14.0471377 4.15711951,14.0200242 3.88598487,13.9657973 C4.43729198,15.701059 6.0460242,16.9573162 7.95300453,16.9934674 C6.46176398,18.1593464 4.58189712,18.8552587 2.53934947,18.8552587 C2.18687443,18.8552587 1.84343722,18.837183 1.5,18.7919939 C3.40698033,20.0392133 5.70258698,20.762239 8.16087442,20.762239" id="Path" stroke="#2329D6"></path> </symbol></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.11.5",
3
+ "version": "3.12.3",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -53,5 +53,5 @@
53
53
  "project": "./tsconfig.json"
54
54
  }
55
55
  },
56
- "gitHead": "62ee387abaaf2dbd3b9af99597d3d4592c30ab64"
56
+ "gitHead": "8fc77cf7261a01a54e82d2c9bdb2b59c31faeffc"
57
57
  }