@graphcommerce/next-ui 3.17.0 → 3.17.1

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,16 +1,13 @@
1
- import { alpha, useMediaQuery, useTheme } from '@material-ui/core'
1
+ import { alpha, useTheme } from '@material-ui/core'
2
2
  import { useMotionTemplate, useTransform, useViewportScroll } from 'framer-motion'
3
3
 
4
4
  export default function useFixedFabAnimation() {
5
5
  const theme = useTheme()
6
- const isMobile = useMediaQuery(theme.breakpoints.down('sm'))
7
6
  const { scrollY } = useViewportScroll()
8
- const scrollTo = isMobile ? 0 : 60
9
- const scrollToBg = isMobile ? 0 : 10
10
- const opacity = useTransform(scrollY, [50, scrollTo], [0, 0.08])
7
+ const opacity = useTransform(scrollY, [50, 60], [0, 0.08])
11
8
  const opacity1 = useTransform(
12
9
  scrollY,
13
- [0, scrollToBg],
10
+ [0, 10],
14
11
  [alpha(theme.palette.background.paper, 0), alpha(theme.palette.background.paper, 1)],
15
12
  )
16
13
  const boxShadow = useMotionTemplate`0 2px 10px 0 rgba(0, 0, 0, ${opacity})`
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.17.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.17.0...@graphcommerce/next-ui@3.17.1) (2021-11-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * disable CartFab animation for mobile ([ea04e67](https://github.com/ho-nl/m2-pwa/commit/ea04e678b7d5ab23e903a59a7f369053d17f9e79))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.17.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.16.0...@graphcommerce/next-ui@3.17.0) (2021-11-12)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.17.0",
3
+ "version": "3.17.1",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -53,5 +53,5 @@
53
53
  "project": "./tsconfig.json"
54
54
  }
55
55
  },
56
- "gitHead": "6a39908a131938d9c3365cc937b92c1f1f8b33c6"
56
+ "gitHead": "e8578cc336e58d896531179f5fcb6973e8a983ce"
57
57
  }