@graphcommerce/next-ui 3.11.0 → 3.11.4
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/AppShell/AppShellHeader/index.tsx +3 -3
- package/AppShell/ForwardButton.tsx +3 -8
- package/AppShell/MenuFab.tsx +1 -1
- package/ButtonLink/index.tsx +1 -1
- package/CHANGELOG.md +22 -0
- package/ChipMenu/index.tsx +3 -3
- package/Form/InputCheckmark.tsx +1 -1
- package/FramerScroller/components/SidebarGallery.tsx +2 -2
- package/IconHeader/index.tsx +1 -1
- package/Pagination/index.tsx +2 -12
- package/Snackbar/MessageSnackbarImpl.tsx +2 -7
- package/StarRatingField/index.tsx +2 -11
- package/TextInputNumber/index.tsx +2 -6
- package/Title/index.tsx +1 -1
- package/package.json +10 -10
|
@@ -315,17 +315,17 @@ export default function AppShellHeader(props: AppShellHeaderProps) {
|
|
|
315
315
|
classes={{ root: classes.fab }}
|
|
316
316
|
onClick={() => router.go(closeSteps * -1)}
|
|
317
317
|
>
|
|
318
|
-
<SvgImageSimple src={iconClose}
|
|
318
|
+
<SvgImageSimple src={iconClose} />
|
|
319
319
|
</Fab>
|
|
320
320
|
) : (
|
|
321
321
|
<PageLink href='/' passHref>
|
|
322
322
|
<Fab size='small' classes={{ root: classes.fab }}>
|
|
323
|
-
<SvgImageSimple src={iconClose}
|
|
323
|
+
<SvgImageSimple src={iconClose} />
|
|
324
324
|
</Fab>
|
|
325
325
|
</PageLink>
|
|
326
326
|
))
|
|
327
327
|
|
|
328
|
-
const backIcon = <SvgImageSimple src={iconChevronLeft}
|
|
328
|
+
const backIcon = <SvgImageSimple src={iconChevronLeft} />
|
|
329
329
|
let back = backSteps > 0 && (
|
|
330
330
|
<Button
|
|
331
331
|
onClick={() => router.back()}
|
|
@@ -39,19 +39,14 @@ const useStyles = makeStyles(
|
|
|
39
39
|
|
|
40
40
|
export type ForwardButtonProps = UseStyles<typeof useStyles> & ButtonProps & { down?: boolean }
|
|
41
41
|
|
|
42
|
-
const ForwardButton = React.forwardRef((props: ForwardButtonProps) => {
|
|
42
|
+
const ForwardButton = React.forwardRef((props: ForwardButtonProps, ref) => {
|
|
43
43
|
const { text, icon, ...classes } = useStyles(props)
|
|
44
44
|
const { children, down, ...fabProps } = props
|
|
45
45
|
|
|
46
46
|
return (
|
|
47
|
-
<Button variant='pill' classes={classes} {...fabProps}>
|
|
47
|
+
<Button variant='pill' classes={classes} {...fabProps} ref={ref}>
|
|
48
48
|
<span className={text}>{children}</span>
|
|
49
|
-
<SvgImageSimple
|
|
50
|
-
src={iconChevronRight}
|
|
51
|
-
alt='chevron right'
|
|
52
|
-
size='small'
|
|
53
|
-
className={classes.root}
|
|
54
|
-
/>
|
|
49
|
+
<SvgImageSimple src={iconChevronRight} size='small' className={classes.root} />
|
|
55
50
|
</Button>
|
|
56
51
|
)
|
|
57
52
|
})
|
package/AppShell/MenuFab.tsx
CHANGED
|
@@ -85,7 +85,7 @@ export default function MenuFab(props: MenuFabProps) {
|
|
|
85
85
|
onClick={(event) => setOpenEl(event.currentTarget)}
|
|
86
86
|
className={classes.menuFab}
|
|
87
87
|
>
|
|
88
|
-
<SvgImageSimple src={iconMenu} inverted
|
|
88
|
+
<SvgImageSimple src={iconMenu} inverted />
|
|
89
89
|
</Fab>
|
|
90
90
|
|
|
91
91
|
<Menu
|
package/ButtonLink/index.tsx
CHANGED
|
@@ -39,7 +39,7 @@ export default function ButtonLink(props: ButtonLinkProps) {
|
|
|
39
39
|
<PageLink href={url} passHref>
|
|
40
40
|
<Button {...buttonProps} className={classes.buttonLink}>
|
|
41
41
|
<span>{title}</span>
|
|
42
|
-
{endIcon ?? <SvgImageSimple src={iconChevronRight}
|
|
42
|
+
{endIcon ?? <SvgImageSimple src={iconChevronRight} />}
|
|
43
43
|
</Button>
|
|
44
44
|
</PageLink>
|
|
45
45
|
)
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.11.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.11.2...@graphcommerce/next-ui@3.11.3) (2021-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* category page design fixs ([d3fccc2](https://github.com/ho-nl/m2-pwa/commit/d3fccc2a86106b854e9a1fd89040a248fe20c99a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.11.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.11.0...@graphcommerce/next-ui@3.11.1) (2021-10-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.11.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.10.2...@graphcommerce/next-ui@3.11.0) (2021-10-28)
|
|
7
29
|
|
|
8
30
|
|
package/ChipMenu/index.tsx
CHANGED
|
@@ -77,11 +77,11 @@ export default function ChipMenu(props: ChipMenuProps) {
|
|
|
77
77
|
const classes = useChipMenuStyles(props)
|
|
78
78
|
|
|
79
79
|
let deleteIcon = selected ? (
|
|
80
|
-
<SvgImageSimple src={iconCloseCircle}
|
|
80
|
+
<SvgImageSimple src={iconCloseCircle} />
|
|
81
81
|
) : (
|
|
82
|
-
<SvgImageSimple src={iconChevronDown}
|
|
82
|
+
<SvgImageSimple src={iconChevronDown} />
|
|
83
83
|
)
|
|
84
|
-
if (openEl) deleteIcon = <SvgImageSimple src={iconChevronUp}
|
|
84
|
+
if (openEl) deleteIcon = <SvgImageSimple src={iconChevronUp} />
|
|
85
85
|
|
|
86
86
|
const selectedAndMenuHidden = selected && !openEl && selectedLabel
|
|
87
87
|
|
package/Form/InputCheckmark.tsx
CHANGED
|
@@ -26,5 +26,5 @@ export default function InputCheckmark(props: InputCheckmarkProps) {
|
|
|
26
26
|
const classes = useStyles()
|
|
27
27
|
|
|
28
28
|
if (!valid) return <>{children}</>
|
|
29
|
-
return <SvgImageSimple src={iconCheckmark}
|
|
29
|
+
return <SvgImageSimple src={iconCheckmark} className={classes.iconCheckmark} />
|
|
30
30
|
}
|
|
@@ -260,9 +260,9 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
|
|
|
260
260
|
<m.div layout className={classes.topRight}>
|
|
261
261
|
<Fab color='inherit' size='small' className={classes.toggleIcon} onMouseUp={toggle}>
|
|
262
262
|
{!zoomed ? (
|
|
263
|
-
<SvgImageSimple src={iconFullscreen}
|
|
263
|
+
<SvgImageSimple src={iconFullscreen} />
|
|
264
264
|
) : (
|
|
265
|
-
<SvgImageSimple src={iconFullscreenExit}
|
|
265
|
+
<SvgImageSimple src={iconFullscreenExit} />
|
|
266
266
|
)}
|
|
267
267
|
</Fab>
|
|
268
268
|
</m.div>
|
package/IconHeader/index.tsx
CHANGED
|
@@ -88,7 +88,7 @@ export default function IconHeader(props: IconHeaderProps) {
|
|
|
88
88
|
return (
|
|
89
89
|
<div className={clsx(classes.container, !noMargin && classes.margin)}>
|
|
90
90
|
<div className={clsx(classes.innerContainer, !stayInline && classes.breakColumnsDesktop)}>
|
|
91
|
-
<SvgImageSimple {...svgImageProps}
|
|
91
|
+
<SvgImageSimple {...svgImageProps} />
|
|
92
92
|
<Typography
|
|
93
93
|
variant={variants[size]}
|
|
94
94
|
component='h2'
|
package/Pagination/index.tsx
CHANGED
|
@@ -97,21 +97,11 @@ export default function Pagination(props: PagePaginationProps) {
|
|
|
97
97
|
const nextBtnProps = items[items.length - 1]
|
|
98
98
|
|
|
99
99
|
const chevronLeft = (
|
|
100
|
-
<SvgImageSimple
|
|
101
|
-
src={iconChevronLeft}
|
|
102
|
-
alt='chevron left'
|
|
103
|
-
muted={page === 1}
|
|
104
|
-
className={classes.icon}
|
|
105
|
-
/>
|
|
100
|
+
<SvgImageSimple src={iconChevronLeft} muted={page === 1} className={classes.icon} />
|
|
106
101
|
)
|
|
107
102
|
|
|
108
103
|
const chevronRight = (
|
|
109
|
-
<SvgImageSimple
|
|
110
|
-
src={iconChevronRight}
|
|
111
|
-
alt='chevron right'
|
|
112
|
-
muted={page === count}
|
|
113
|
-
className={classes.icon}
|
|
114
|
-
/>
|
|
104
|
+
<SvgImageSimple src={iconChevronRight} muted={page === count} className={classes.icon} />
|
|
115
105
|
)
|
|
116
106
|
|
|
117
107
|
return (
|
|
@@ -202,12 +202,7 @@ export default function MessageSnackbarImpl(props: MessageSnackbarImplProps) {
|
|
|
202
202
|
<>
|
|
203
203
|
<div className={classes.children}>
|
|
204
204
|
<div>
|
|
205
|
-
<SvgImageSimple
|
|
206
|
-
src={icon}
|
|
207
|
-
alt='checkmark'
|
|
208
|
-
size='large'
|
|
209
|
-
className={classes.messageIcon}
|
|
210
|
-
/>
|
|
205
|
+
<SvgImageSimple src={icon} size='large' className={classes.messageIcon} />
|
|
211
206
|
{children}
|
|
212
207
|
</div>
|
|
213
208
|
</div>
|
|
@@ -218,7 +213,7 @@ export default function MessageSnackbarImpl(props: MessageSnackbarImplProps) {
|
|
|
218
213
|
)}
|
|
219
214
|
<div className={classes.closeButton}>
|
|
220
215
|
<Fab aria-label='Close snackbar' size='medium' onClick={hideSnackbar}>
|
|
221
|
-
<SvgImageSimple src={iconClose} size='small'
|
|
216
|
+
<SvgImageSimple src={iconClose} size='small' />
|
|
222
217
|
</Fab>
|
|
223
218
|
</div>
|
|
224
219
|
</>
|
|
@@ -38,17 +38,8 @@ export default function StarRatingField(props: StarRatingFieldProps) {
|
|
|
38
38
|
name={`star-rating-${id}`}
|
|
39
39
|
max={5}
|
|
40
40
|
size='small'
|
|
41
|
-
emptyIcon={
|
|
42
|
-
|
|
43
|
-
src={iconStar}
|
|
44
|
-
alt='star'
|
|
45
|
-
loading='eager'
|
|
46
|
-
className={classes.iconStarEmpty}
|
|
47
|
-
/>
|
|
48
|
-
}
|
|
49
|
-
icon={
|
|
50
|
-
<SvgImageSimple src={iconStar} alt='star' loading='eager' className={classes.iconStar} />
|
|
51
|
-
}
|
|
41
|
+
emptyIcon={<SvgImageSimple src={iconStar} className={classes.iconStarEmpty} />}
|
|
42
|
+
icon={<SvgImageSimple src={iconStar} className={classes.iconStar} />}
|
|
52
43
|
onChange={(event, value) => {
|
|
53
44
|
onChange(id ?? '', value ?? 0)
|
|
54
45
|
}}
|
|
@@ -133,9 +133,7 @@ export default function TextInputNumber(props: TextInputNumberProps) {
|
|
|
133
133
|
className={clsx(classes.button, DownProps.className)}
|
|
134
134
|
{...DownProps}
|
|
135
135
|
>
|
|
136
|
-
{DownProps.children ??
|
|
137
|
-
<SvgImageSimple src={iconMin} size='small' alt='Step down' loading='eager' />
|
|
138
|
-
)}
|
|
136
|
+
{DownProps.children ?? <SvgImageSimple src={iconMin} size='small' />}
|
|
139
137
|
</IconButton>
|
|
140
138
|
),
|
|
141
139
|
endAdornment: (
|
|
@@ -151,9 +149,7 @@ export default function TextInputNumber(props: TextInputNumberProps) {
|
|
|
151
149
|
className={clsx(classes.button, UpProps.className)}
|
|
152
150
|
{...UpProps}
|
|
153
151
|
>
|
|
154
|
-
{UpProps.children ??
|
|
155
|
-
<SvgImageSimple src={iconPlus} size='small' alt='Step up' loading='eager' />
|
|
156
|
-
)}
|
|
152
|
+
{UpProps.children ?? <SvgImageSimple src={iconPlus} size='small' />}
|
|
157
153
|
</IconButton>
|
|
158
154
|
),
|
|
159
155
|
}}
|
package/Title/index.tsx
CHANGED
|
@@ -48,7 +48,7 @@ const Title = React.forwardRef<HTMLDivElement, TitleProps>((props, ref) => {
|
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
50
|
<div className={clsx(classes.container, small && classes.small)}>
|
|
51
|
-
{icon && <SvgImageSimple src={icon}
|
|
51
|
+
{icon && <SvgImageSimple src={icon} size='xl' />}
|
|
52
52
|
<Typography
|
|
53
53
|
ref={ref}
|
|
54
54
|
variant={variant || (small ? 'h6' : 'h3')}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.4",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/client": "^3.4.16",
|
|
13
|
-
"@graphcommerce/framer-next-pages": "^2.107.
|
|
14
|
-
"@graphcommerce/framer-scroller": "^0.4.
|
|
15
|
-
"@graphcommerce/framer-sheet": "^2.105.
|
|
16
|
-
"@graphcommerce/framer-utils": "^2.103.
|
|
17
|
-
"@graphcommerce/graphql": "^2.105.
|
|
18
|
-
"@graphcommerce/image": "^2.105.
|
|
13
|
+
"@graphcommerce/framer-next-pages": "^2.107.2",
|
|
14
|
+
"@graphcommerce/framer-scroller": "^0.4.3",
|
|
15
|
+
"@graphcommerce/framer-sheet": "^2.105.15",
|
|
16
|
+
"@graphcommerce/framer-utils": "^2.103.13",
|
|
17
|
+
"@graphcommerce/graphql": "^2.105.2",
|
|
18
|
+
"@graphcommerce/image": "^2.105.2",
|
|
19
19
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
20
20
|
"@material-ui/core": "^4.12.3",
|
|
21
21
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"clsx": "^1.1.1",
|
|
24
24
|
"framer-motion": "^4.1.17",
|
|
25
25
|
"graphql": "^15.6.1",
|
|
26
|
-
"next": "^12.0.
|
|
26
|
+
"next": "^12.0.2",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2",
|
|
29
29
|
"react-focus-lock": "^2.5.2",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
37
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
37
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.3",
|
|
38
38
|
"@graphcommerce/prettier-config-pwa": "^3.0.3",
|
|
39
39
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
40
40
|
"@playwright/test": "^1.16.2",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"project": "./tsconfig.json"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b6321b8f479a0ef6e4b1b543702158d964bbeac6"
|
|
57
57
|
}
|