@graphcommerce/next-ui 3.20.7 → 3.20.8
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
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.20.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.20.7...@graphcommerce/next-ui@3.20.8) (2021-12-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* could not scroll to the bottom of a left/right sheet ([b84c86e](https://github.com/ho-nl/m2-pwa/commit/b84c86efa090657fc4cd480547f576bf6d9e0709))
|
|
12
|
+
* scroller should not snap to off-axis while dragging and direction isn't set to both ([9118bfc](https://github.com/ho-nl/m2-pwa/commit/9118bfcb1eb9ade5f144167e47e0c26724ce832f))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [3.20.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.20.6...@graphcommerce/next-ui@3.20.7) (2021-12-13)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -11,9 +11,9 @@ export function LayoutOverlay(props: LayoutOverlayProps) {
|
|
|
11
11
|
const { children, variantSm = 'bottom', variantMd = 'right', classes } = props
|
|
12
12
|
|
|
13
13
|
const scrollSnapTypeSm: ScrollSnapType =
|
|
14
|
-
variantSm === 'left' || variantSm === 'right' ? '
|
|
14
|
+
variantSm === 'left' || variantSm === 'right' ? 'inline mandatory' : 'block proximity'
|
|
15
15
|
const scrollSnapTypeMd: ScrollSnapType =
|
|
16
|
-
variantMd === 'left' || variantMd === 'right' ? '
|
|
16
|
+
variantMd === 'left' || variantMd === 'right' ? 'inline mandatory' : 'block proximity'
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<ScrollerProvider scrollSnapTypeSm={scrollSnapTypeSm} scrollSnapTypeMd={scrollSnapTypeMd}>
|
|
@@ -28,43 +28,43 @@ const useStyles = makeStyles(
|
|
|
28
28
|
},
|
|
29
29
|
[theme.breakpoints.down('sm')]: {
|
|
30
30
|
width: '100vw',
|
|
31
|
-
borderRadius: theme.shape.borderRadius * 3,
|
|
32
31
|
},
|
|
33
32
|
[theme.breakpoints.up('md')]: {
|
|
34
33
|
width: '100vw',
|
|
35
|
-
borderRadius: theme.shape.borderRadius * 4,
|
|
36
34
|
},
|
|
37
35
|
},
|
|
38
36
|
rootVariantSmLeft: {
|
|
39
37
|
[theme.breakpoints.down('sm')]: {
|
|
40
38
|
gridTemplate: `"overlay beforeOverlay"`,
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
borderTopRightRadius: theme.shape.borderRadius * 3,
|
|
40
|
+
borderBottomRightRadius: theme.shape.borderRadius * 3,
|
|
43
41
|
},
|
|
44
42
|
},
|
|
45
43
|
rootVariantMdLeft: {
|
|
46
44
|
[theme.breakpoints.up('md')]: {
|
|
47
45
|
gridTemplate: `"overlay beforeOverlay"`,
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
borderTopRightRadius: theme.shape.borderRadius * 4,
|
|
47
|
+
borderBottomRightRadius: theme.shape.borderRadius * 4,
|
|
50
48
|
},
|
|
51
49
|
},
|
|
52
50
|
rootVariantSmRight: {
|
|
53
51
|
[theme.breakpoints.down('sm')]: {
|
|
54
52
|
gridTemplate: `"beforeOverlay overlay"`,
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
borderTopLeftRadius: theme.shape.borderRadius * 3,
|
|
54
|
+
borderBottomLeftRadius: theme.shape.borderRadius * 3,
|
|
57
55
|
},
|
|
58
56
|
},
|
|
59
57
|
rootVariantMdRight: {
|
|
60
58
|
[theme.breakpoints.up('md')]: {
|
|
61
59
|
gridTemplate: `"beforeOverlay overlay"`,
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
borderTopLeftRadius: theme.shape.borderRadius * 4,
|
|
61
|
+
borderBottomLeftRadius: theme.shape.borderRadius * 4,
|
|
64
62
|
},
|
|
65
63
|
},
|
|
66
64
|
rootVariantSmBottom: {
|
|
67
65
|
[theme.breakpoints.down('sm')]: {
|
|
66
|
+
borderTopLeftRadius: theme.shape.borderRadius * 3,
|
|
67
|
+
borderTopRightRadius: theme.shape.borderRadius * 3,
|
|
68
68
|
gridTemplate: `"beforeOverlay" "overlay"`,
|
|
69
69
|
height: '100vh',
|
|
70
70
|
'@supports (-webkit-touch-callout: none)': {
|
|
@@ -73,6 +73,8 @@ const useStyles = makeStyles(
|
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
75
|
rootVariantMdBottom: {
|
|
76
|
+
borderTopLeftRadius: theme.shape.borderRadius * 4,
|
|
77
|
+
borderTopRightRadius: theme.shape.borderRadius * 4,
|
|
76
78
|
[theme.breakpoints.up('md')]: {
|
|
77
79
|
gridTemplate: `"beforeOverlay" "overlay"`,
|
|
78
80
|
height: '100vh',
|
|
@@ -81,7 +83,6 @@ const useStyles = makeStyles(
|
|
|
81
83
|
beforeOverlay: {
|
|
82
84
|
gridArea: 'beforeOverlay',
|
|
83
85
|
scrollSnapAlign: 'start',
|
|
84
|
-
scrollSnapStop: 'always',
|
|
85
86
|
display: 'grid',
|
|
86
87
|
alignContent: 'end',
|
|
87
88
|
},
|
|
@@ -134,7 +135,6 @@ const useStyles = makeStyles(
|
|
|
134
135
|
[theme.breakpoints.down('sm')]: {
|
|
135
136
|
marginTop: `calc(${theme.appShell.headerHeightSm} * 0.5 * -1)`,
|
|
136
137
|
paddingTop: `calc(${theme.appShell.headerHeightSm} * 0.5)`,
|
|
137
|
-
scrollSnapStop: 'always',
|
|
138
138
|
display: 'grid',
|
|
139
139
|
},
|
|
140
140
|
},
|
|
@@ -142,8 +142,6 @@ const useStyles = makeStyles(
|
|
|
142
142
|
[theme.breakpoints.up('md')]: {
|
|
143
143
|
marginTop: `calc(${theme.appShell.headerHeightMd} + (${theme.appShell.appBarHeightMd} - ${theme.appShell.appBarInnerHeightMd}) * 0.5)`,
|
|
144
144
|
paddingTop: `calc(${theme.appShell.headerHeightMd} + (${theme.appShell.appBarHeightMd} - ${theme.appShell.appBarInnerHeightMd}) * -0.5)`,
|
|
145
|
-
scrollSnapAlign: 'start',
|
|
146
|
-
scrollSnapStop: 'always',
|
|
147
145
|
display: 'grid',
|
|
148
146
|
},
|
|
149
147
|
},
|
|
@@ -152,17 +150,20 @@ const useStyles = makeStyles(
|
|
|
152
150
|
backgroundColor: theme.palette.background.paper,
|
|
153
151
|
boxShadow: theme.shadows[24],
|
|
154
152
|
minWidth: 'min(800px, 90vw)',
|
|
153
|
+
scrollSnapAlign: 'end',
|
|
155
154
|
},
|
|
156
155
|
overlayPaneVariantSmBottom: {
|
|
157
156
|
[theme.breakpoints.down('sm')]: {
|
|
158
157
|
width: '100vw',
|
|
159
|
-
|
|
158
|
+
borderTopLeftRadius: theme.shape.borderRadius * 3,
|
|
159
|
+
borderTopRightRadius: theme.shape.borderRadius * 3,
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
overlayPaneVariantMdBottom: {
|
|
163
163
|
[theme.breakpoints.up('md')]: {
|
|
164
164
|
width: '100vw',
|
|
165
|
-
|
|
165
|
+
borderTopLeftRadius: theme.shape.borderRadius * 3,
|
|
166
|
+
borderTopRightRadius: theme.shape.borderRadius * 3,
|
|
166
167
|
},
|
|
167
168
|
},
|
|
168
169
|
overlayPaneVariantSmLeft: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.8",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/client": "^3.5.6",
|
|
13
|
-
"@graphcommerce/framer-next-pages": "^2.108.
|
|
14
|
-
"@graphcommerce/framer-scroller": "^1.1.
|
|
15
|
-
"@graphcommerce/framer-utils": "^2.103.
|
|
16
|
-
"@graphcommerce/graphql": "^2.105.
|
|
17
|
-
"@graphcommerce/image": "^2.105.
|
|
13
|
+
"@graphcommerce/framer-next-pages": "^2.108.3",
|
|
14
|
+
"@graphcommerce/framer-scroller": "^1.1.8",
|
|
15
|
+
"@graphcommerce/framer-utils": "^2.103.19",
|
|
16
|
+
"@graphcommerce/graphql": "^2.105.8",
|
|
17
|
+
"@graphcommerce/image": "^2.105.8",
|
|
18
18
|
"@lingui/macro": "^3.13.0",
|
|
19
19
|
"@material-ui/core": "^4.12.3",
|
|
20
20
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
21
21
|
"@material-ui/styles": "^4.11.4",
|
|
22
22
|
"clsx": "^1.1.1",
|
|
23
|
-
"framer-motion": "^5.
|
|
23
|
+
"framer-motion": "^5.5.1",
|
|
24
24
|
"graphql": "^16.1.0",
|
|
25
25
|
"next": "^12.0.7",
|
|
26
26
|
"react": "^17.0.2",
|
|
27
27
|
"react-dom": "^17.0.2",
|
|
28
|
-
"react-focus-lock": "^2.7.
|
|
28
|
+
"react-focus-lock": "^2.7.1",
|
|
29
29
|
"react-is": "^17.0.2",
|
|
30
30
|
"react-schemaorg": "^2.0.0",
|
|
31
31
|
"schema-dts": "^1.0.0",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
36
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
36
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.8",
|
|
37
37
|
"@graphcommerce/prettier-config-pwa": "^3.0.4",
|
|
38
38
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
39
39
|
"@playwright/test": "^1.17.1",
|
|
40
40
|
"@types/react-is": "^17.0.3",
|
|
41
41
|
"graphql-tag": "2.12.6",
|
|
42
|
-
"typescript": "^4.5.
|
|
42
|
+
"typescript": "^4.5.4"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"project": "./tsconfig.json"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "a69bd94ffdcca6ca9487eec1cafe9ade3fcdffa3"
|
|
56
56
|
}
|