@graphcommerce/next-ui 3.21.10 → 3.21.14

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.
@@ -19,9 +19,7 @@ const useStyles = makeStyles(
19
19
  },
20
20
  },
21
21
  }),
22
- {
23
- name: 'FixedFab',
24
- },
22
+ { name: 'FixedFab' },
25
23
  )
26
24
 
27
25
  type FixedFabProps = {
package/AppShell/index.ts CHANGED
@@ -14,4 +14,3 @@ export * from './MenuFabSecondaryItem'
14
14
  export * from './PlaceholderFab'
15
15
  export * from './GlobalHead'
16
16
  export * from './useFabAnimation'
17
- export * from './useFixedFabAnimation'
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.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.12...@graphcommerce/next-ui@3.21.13) (2021-12-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * cart fab wouldnt properly switch to darkmode ([2f4fe1e](https://github.com/ho-nl/m2-pwa/commit/2f4fe1ed28ab3b63440f40d1455f06bc02e44ce7))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.21.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.21.9...@graphcommerce/next-ui@3.21.10) (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.10",
3
+ "version": "3.21.14",
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.20",
13
+ "@graphcommerce/framer-next-pages": "^2.108.10",
14
+ "@graphcommerce/framer-scroller": "^1.1.24",
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": "c8ce20cffa0bf8fe47fa75d98c97d8c5d684c485"
55
+ "gitHead": "ce4499b06791f3b2e54a7e88bfca40abbcd1401c"
56
56
  }
@@ -1,15 +0,0 @@
1
- import { alpha, useTheme } from '@material-ui/core'
2
- import { useTransform } from 'framer-motion'
3
- import { useScrollY } from '../Layout/hooks/useScrollY'
4
-
5
- export function useFixedFabAnimation() {
6
- const theme = useTheme()
7
- const scrollY = useScrollY()
8
- const opacity = useTransform(scrollY, [50, 60], [0, 1])
9
- const backgroundColor = useTransform(
10
- scrollY,
11
- [0, 10],
12
- [alpha(theme.palette.background.paper, 0), alpha(theme.palette.background.paper, 1)],
13
- )
14
- return { backgroundColor, opacity }
15
- }