@graphcommerce/next-ui 3.1.6 → 3.1.7
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 +11 -0
- package/FullPageMessage/index.tsx +11 -9
- package/SvgImage/SvgImageSimple.tsx +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.1.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.1.6...@graphcommerce/next-ui@3.1.7) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* SvgImageSimple should pass the layout prop ([a0b5c81](https://github.com/ho-nl/m2-pwa/commit/a0b5c818f93ba24a34c6ce8aa21f8af50bd05dd2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.1.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.1.5...@graphcommerce/next-ui@3.1.6) (2021-10-07)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -11,6 +11,11 @@ const useStyles = makeStyles(
|
|
|
11
11
|
marginTop: theme.spacings.md,
|
|
12
12
|
marginBottom: theme.spacings.md,
|
|
13
13
|
},
|
|
14
|
+
innerContainer: {
|
|
15
|
+
display: 'grid',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
justifyItems: 'center',
|
|
18
|
+
},
|
|
14
19
|
rootMargin: {
|
|
15
20
|
marginTop: responsiveVal(50, 250),
|
|
16
21
|
},
|
|
@@ -18,21 +23,18 @@ const useStyles = makeStyles(
|
|
|
18
23
|
textAlign: 'center',
|
|
19
24
|
marginTop: theme.spacings.sm,
|
|
20
25
|
},
|
|
21
|
-
|
|
22
|
-
display: 'grid',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
justifyItems: 'center',
|
|
25
|
-
},
|
|
26
|
+
|
|
26
27
|
button: {
|
|
27
28
|
marginTop: theme.spacings.sm,
|
|
28
29
|
},
|
|
29
30
|
altButton: {
|
|
30
31
|
marginTop: 6,
|
|
31
32
|
},
|
|
33
|
+
icon: {
|
|
34
|
+
height: responsiveVal(120, 180),
|
|
35
|
+
},
|
|
32
36
|
}),
|
|
33
|
-
{
|
|
34
|
-
name: 'FullPageMessage',
|
|
35
|
-
},
|
|
37
|
+
{ name: 'FullPageMessage' },
|
|
36
38
|
)
|
|
37
39
|
|
|
38
40
|
export type FullPageMessageProps = {
|
|
@@ -51,7 +53,7 @@ export default function FullPageMessage(props: FullPageMessageProps) {
|
|
|
51
53
|
return (
|
|
52
54
|
<div className={clsx(classes.root, disableMargin || classes.rootMargin)}>
|
|
53
55
|
<Container maxWidth='md' className={classes.innerContainer}>
|
|
54
|
-
{icon}
|
|
56
|
+
<div className={classes.icon}>{icon}</div>
|
|
55
57
|
|
|
56
58
|
<div className={classes.subject}>
|
|
57
59
|
<Typography variant='h3' gutterBottom>
|
|
@@ -42,14 +42,14 @@ type SvgImageSimpleProps = Omit<ImageProps, 'fixed'> & {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
const SvgImageSimple = forwardRef<HTMLImageElement, SvgImageSimpleProps>((props, ref) => {
|
|
45
|
-
const { className, size = 'medium', muted, inverted, ...imageProps } = props
|
|
45
|
+
const { className, size = 'medium', muted, inverted, layout = 'fixed', ...imageProps } = props
|
|
46
46
|
const classes = useStyles()
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
49
|
<Image
|
|
50
50
|
{...imageProps}
|
|
51
51
|
ref={ref}
|
|
52
|
-
layout=
|
|
52
|
+
layout={layout}
|
|
53
53
|
className={clsx(
|
|
54
54
|
className,
|
|
55
55
|
classes.image,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"project": "./tsconfig.json"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "7c6ad9b6fdf91e48b33013218d962ad15f931db8"
|
|
59
59
|
}
|