@graphcommerce/next-ui 3.21.11 → 3.21.15

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.
@@ -1,5 +1,4 @@
1
1
  import { Container, makeStyles, Theme } from '@material-ui/core'
2
- import clsx from 'clsx'
3
2
  import React from 'react'
4
3
  import { UseStyles } from '../../Styles'
5
4
 
@@ -7,22 +6,18 @@ const useStyles = makeStyles(
7
6
  (theme: Theme) => ({
8
7
  root: {
9
8
  position: 'sticky',
9
+ top: theme.appShell.headerHeightSm,
10
10
  zIndex: 96,
11
- },
12
- fillMobileOnly: {
13
11
  [theme.breakpoints.up('md')]: {
14
12
  top: `${theme.page.vertical} !important`,
15
13
  },
16
14
  },
17
15
  }),
18
- {
19
- name: 'AppShellSticky',
20
- },
16
+ { name: 'AppShellSticky' },
21
17
  )
22
18
 
23
19
  type AppShellStickyBaseProps = {
24
20
  children: React.ReactNode
25
- headerFill?: 'mobile-only' | 'both'
26
21
  }
27
22
 
28
23
  type AppShellStickyProps = AppShellStickyBaseProps & UseStyles<typeof useStyles>
@@ -32,18 +27,11 @@ type AppShellStickyProps = AppShellStickyBaseProps & UseStyles<typeof useStyles>
32
27
  - determines top offset based on header height dynamically
33
28
  */
34
29
  export default function AppShellSticky(props: AppShellStickyProps) {
35
- const { children, headerFill = 'both' } = props
30
+ const { children } = props
36
31
  const classes = useStyles(props)
37
32
 
38
- // todo
39
- const top = 0
40
-
41
33
  return (
42
- <Container
43
- maxWidth={false}
44
- className={clsx(classes.root, headerFill === 'mobile-only' && classes.fillMobileOnly)}
45
- style={{ top }}
46
- >
34
+ <Container maxWidth={false} className={classes.root}>
47
35
  <>{children}</>
48
36
  </Container>
49
37
  )
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.21.15](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.14...@graphcommerce/next-ui@3.21.15) (2021-12-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * make sure the filters are aligned properly on mobile ([4bfe978](https://github.com/ho-nl/m2-pwa/commit/4bfe978f095c1b9867608c138eccf3227b18d4e9))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.21.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.12...@graphcommerce/next-ui@3.21.13) (2021-12-23)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **framer-next-pages:** make sure we dont have a double scroll while a bottomsheet is opened ([2887aba](https://github.com/ho-nl/m2-pwa/commit/2887abae0c0c553bdc6343fd2f431e4daeabefb5))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.21.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.10...@graphcommerce/next-ui@3.21.11) (2021-12-22)
7
29
 
8
30
 
@@ -11,6 +11,11 @@ import { useOverlayPosition } from '../hooks/useOverlayPosition'
11
11
 
12
12
  const useStyles = makeStyles(
13
13
  (theme: Theme) => ({
14
+ '@global': {
15
+ body: {
16
+ overflow: 'hidden',
17
+ },
18
+ },
14
19
  root: {
15
20
  display: 'grid',
16
21
  cursor: 'default',
@@ -138,12 +143,7 @@ const useStyles = makeStyles(
138
143
  minWidth: 'min(800px, 90vw)',
139
144
  scrollSnapAlign: 'end',
140
145
 
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
- },
146
+ paddingBottom: 56,
147
147
  },
148
148
  overlayPaneVariantSmBottom: {
149
149
  [theme.breakpoints.down('sm')]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.21.11",
3
+ "version": "3.21.15",
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.9",
14
- "@graphcommerce/framer-scroller": "^1.1.21",
13
+ "@graphcommerce/framer-next-pages": "^2.108.11",
14
+ "@graphcommerce/framer-scroller": "^1.1.25",
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": "69021da9f882aed2f55a4f437b8e03ef802e805c"
55
+ "gitHead": "a9174584cfeb04807a72b6c609175c24e24ac818"
56
56
  }