@graphcommerce/framer-scroller 0.2.8 → 0.2.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.
- package/CHANGELOG.md +11 -0
- package/components/ScrollerDots.tsx +8 -6
- package/package.json +3 -3
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
|
+
## [0.2.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@0.2.8...@graphcommerce/framer-scroller@0.2.9) (2021-10-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **framer-scroller:** dots should have a background ([8f2e1a1](https://github.com/ho-nl/m2-pwa/commit/8f2e1a1ffc9de3369938fe2f9e9f25f592739d8d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.2.8](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/framer-scroller@0.2.7...@graphcommerce/framer-scroller@0.2.8) (2021-10-09)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useMotionValueValue } from '@graphcommerce/framer-utils'
|
|
2
|
+
import { UseStyles } from '@graphcommerce/next-ui'
|
|
2
3
|
import { Fab, FabProps, makeStyles, Theme } from '@material-ui/core'
|
|
3
4
|
import clsx from 'clsx'
|
|
4
5
|
import { HTMLMotionProps, m } from 'framer-motion'
|
|
@@ -6,11 +7,6 @@ import React from 'react'
|
|
|
6
7
|
import { useScrollTo } from '../hooks/useScrollTo'
|
|
7
8
|
import { useScrollerContext } from '../hooks/useScrollerContext'
|
|
8
9
|
|
|
9
|
-
export type DotsProps = {
|
|
10
|
-
classes?: Record<'dots' | 'dot' | 'circle', string>
|
|
11
|
-
fabProps?: Omit<FabProps, 'onClick' | 'children'>
|
|
12
|
-
} & HTMLMotionProps<'div'>
|
|
13
|
-
|
|
14
10
|
const useStyles = makeStyles(
|
|
15
11
|
(theme: Theme) => ({
|
|
16
12
|
dots: {
|
|
@@ -18,6 +14,7 @@ const useStyles = makeStyles(
|
|
|
18
14
|
display: 'grid',
|
|
19
15
|
gridAutoFlow: 'column',
|
|
20
16
|
padding: `0 7px`,
|
|
17
|
+
borderRadius: '20px',
|
|
21
18
|
},
|
|
22
19
|
dot: {
|
|
23
20
|
boxShadow: 'none',
|
|
@@ -34,8 +31,13 @@ const useStyles = makeStyles(
|
|
|
34
31
|
{ name: 'ScrollerDots' },
|
|
35
32
|
)
|
|
36
33
|
|
|
34
|
+
export type DotsProps = {
|
|
35
|
+
fabProps?: Omit<FabProps, 'onClick' | 'children'>
|
|
36
|
+
} & HTMLMotionProps<'div'> &
|
|
37
|
+
UseStyles<typeof useStyles>
|
|
38
|
+
|
|
37
39
|
const ScrollerDots = m(
|
|
38
|
-
React.forwardRef<
|
|
40
|
+
React.forwardRef<HTMLDivElement, DotsProps>((props, ref) => {
|
|
39
41
|
const { fabProps, ...containerProps } = props
|
|
40
42
|
const { dots, dot, circle, ...classes } = useStyles(props)
|
|
41
43
|
const { items, getScrollSnapPositions } = useScrollerContext()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/framer-scroller",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "tsc -W"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@graphcommerce/framer-utils": "^2.103.6",
|
|
20
|
-
"@graphcommerce/image": "^2.104.
|
|
20
|
+
"@graphcommerce/image": "^2.104.8",
|
|
21
21
|
"@material-ui/core": "^4.12.3",
|
|
22
22
|
"popmotion": "9.3.6"
|
|
23
23
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"react-dom": "^17.0.2",
|
|
36
36
|
"type-fest": "^1.0.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "e8e29078b5d241da5f90b930338e84ba543b0ea4"
|
|
39
39
|
}
|