@graphcommerce/next-ui 3.21.8 → 3.21.9

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.
@@ -10,7 +10,7 @@ export default function AnimatedRow(props: AnimatedRowProps) {
10
10
  return (
11
11
  <m.div
12
12
  {...props}
13
- layout='size'
13
+ layout
14
14
  initial={{ opacity: 0, height: 0 }}
15
15
  animate={{ opacity: 1, height: 'auto' }}
16
16
  exit={{ opacity: 0, height: 0 }}
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.21.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.8...@graphcommerce/next-ui@3.21.9) (2021-12-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * layout overlay sometimes have a horizontal scrollbar ([a1cfe72](https://github.com/ho-nl/m2-pwa/commit/a1cfe72d207dcdf07948080b605b64e7f73939bf))
12
+ * make sure the bottomsheet has enough space on android ([02d3e63](https://github.com/ho-nl/m2-pwa/commit/02d3e639388446423149461ae52d0ed12a962f5e))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [3.21.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.7...@graphcommerce/next-ui@3.21.8) (2021-12-21)
7
19
 
8
20
 
@@ -19,12 +19,6 @@ const useStyles = makeStyles(
19
19
  '@supports (-webkit-touch-callout: none)': {
20
20
  height: '-webkit-fill-available',
21
21
  },
22
- [theme.breakpoints.down('sm')]: {
23
- width: '100vw',
24
- },
25
- [theme.breakpoints.up('md')]: {
26
- width: '100vw',
27
- },
28
22
  },
29
23
  rootVariantSmLeft: {
30
24
  [theme.breakpoints.down('sm')]: {
@@ -118,7 +112,6 @@ const useStyles = makeStyles(
118
112
  pointerEvents: 'none',
119
113
  gridArea: 'overlay',
120
114
  scrollSnapAlign: 'start',
121
- width: 'min-content',
122
115
  minHeight: '100vh',
123
116
  '@supports (-webkit-touch-callout: none)': {
124
117
  minHeight: '-webkit-fill-available',
@@ -144,17 +137,22 @@ const useStyles = makeStyles(
144
137
  boxShadow: theme.shadows[24],
145
138
  minWidth: 'min(800px, 90vw)',
146
139
  scrollSnapAlign: 'end',
140
+
141
+ // The top bar on Google Chrome is about 56 pixels high. If we do not provide this padding we'll run into the issue that the user can't scroll to the bottom.
142
+ // We can't change this value with JS as that causes much jank
143
+ [`@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) and (max-width:${theme.breakpoints.values.sm}px)`]:
144
+ {
145
+ paddingBottom: 56,
146
+ },
147
147
  },
148
148
  overlayPaneVariantSmBottom: {
149
149
  [theme.breakpoints.down('sm')]: {
150
- width: '100vw',
151
150
  borderTopLeftRadius: theme.shape.borderRadius * 3,
152
151
  borderTopRightRadius: theme.shape.borderRadius * 3,
153
152
  },
154
153
  },
155
154
  overlayPaneVariantMdBottom: {
156
155
  [theme.breakpoints.up('md')]: {
157
- width: '100vw',
158
156
  borderTopLeftRadius: theme.shape.borderRadius * 3,
159
157
  borderTopRightRadius: theme.shape.borderRadius * 3,
160
158
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.21.8",
3
+ "version": "3.21.9",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.5.6",
13
- "@graphcommerce/framer-next-pages": "^2.108.8",
14
- "@graphcommerce/framer-scroller": "^1.1.18",
13
+ "@graphcommerce/framer-next-pages": "^2.108.9",
14
+ "@graphcommerce/framer-scroller": "^1.1.19",
15
15
  "@graphcommerce/framer-utils": "^2.103.20",
16
16
  "@graphcommerce/graphql": "^2.105.12",
17
17
  "@graphcommerce/image": "^2.105.11",
@@ -52,5 +52,5 @@
52
52
  "project": "./tsconfig.json"
53
53
  }
54
54
  },
55
- "gitHead": "5ad26fe58ae85c8d776e3f571e96832f24811d5d"
55
+ "gitHead": "fbca834579f81b45ee062e85146535eb6d7ab079"
56
56
  }