@graphcommerce/next-ui 4.1.2 → 4.1.3
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 +12 -0
- package/FramerScroller/SidebarSlider.tsx +15 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1285](https://github.com/ho-nl/m2-pwa/pull/1285)
|
|
8
|
+
[`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)
|
|
9
|
+
Thanks [@paales](https://github.com/paales)! - upgraded dependencies
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
[[`16d77b280`](https://github.com/ho-nl/m2-pwa/commit/16d77b2806e49e376d06bc0d578d38eb724b0c17)]:
|
|
13
|
+
- @graphcommerce/framer-scroller@2.0.4
|
|
14
|
+
|
|
3
15
|
## 4.1.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Scroller,
|
|
3
3
|
ScrollerButton,
|
|
4
|
+
ScrollerButtonProps as ScrollerButtonPropsType,
|
|
4
5
|
ScrollerPageCounter,
|
|
5
6
|
ScrollerProvider,
|
|
6
7
|
} from '@graphcommerce/framer-scroller'
|
|
@@ -23,10 +24,15 @@ const { classes, selectors } = extendableComponent('SidebarSlider', [
|
|
|
23
24
|
'centerRight',
|
|
24
25
|
] as const)
|
|
25
26
|
|
|
26
|
-
export type SidebarSliderProps = {
|
|
27
|
+
export type SidebarSliderProps = {
|
|
28
|
+
children: ReactNode
|
|
29
|
+
sidebar: ReactNode
|
|
30
|
+
sx?: SxProps<Theme>
|
|
31
|
+
buttonSize?: ScrollerButtonPropsType['size']
|
|
32
|
+
}
|
|
27
33
|
|
|
28
34
|
export function SidebarSlider(props: SidebarSliderProps) {
|
|
29
|
-
const { children, sidebar, sx } = props
|
|
35
|
+
const { children, sidebar, sx, buttonSize } = props
|
|
30
36
|
|
|
31
37
|
return (
|
|
32
38
|
<Row maxWidth={false} disableGutters className={classes.root} sx={sx}>
|
|
@@ -79,6 +85,7 @@ export function SidebarSlider(props: SidebarSliderProps) {
|
|
|
79
85
|
direction='left'
|
|
80
86
|
className={classes.sliderButtons}
|
|
81
87
|
sx={{ display: { xs: 'none', md: 'flex' } }}
|
|
88
|
+
size={buttonSize}
|
|
82
89
|
>
|
|
83
90
|
<SvgIcon src={iconChevronLeft} />
|
|
84
91
|
</ScrollerButton>
|
|
@@ -93,7 +100,12 @@ export function SidebarSlider(props: SidebarSliderProps) {
|
|
|
93
100
|
top: `calc(50% - 28px)`,
|
|
94
101
|
})}
|
|
95
102
|
>
|
|
96
|
-
<ScrollerButton
|
|
103
|
+
<ScrollerButton
|
|
104
|
+
direction='right'
|
|
105
|
+
className={classes.sliderButtons}
|
|
106
|
+
sx={{ display: { xs: 'none', md: 'flex' } }}
|
|
107
|
+
size={buttonSize}
|
|
108
|
+
>
|
|
97
109
|
<SvgIcon src={iconChevronRight} />
|
|
98
110
|
</ScrollerButton>
|
|
99
111
|
</Box>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.1.
|
|
5
|
+
"version": "4.1.3",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"@emotion/server": "^11.4.0",
|
|
21
21
|
"@emotion/styled": "^11.6.0",
|
|
22
22
|
"@graphcommerce/framer-next-pages": "^3.1.0",
|
|
23
|
-
"@graphcommerce/framer-scroller": "^2.0.
|
|
23
|
+
"@graphcommerce/framer-scroller": "^2.0.4",
|
|
24
24
|
"@graphcommerce/framer-utils": "^3.0.3",
|
|
25
25
|
"@graphcommerce/image": "^3.1.0",
|
|
26
26
|
"react-is": "^17.0.2",
|
|
27
27
|
"react-schemaorg": "^2.0.0",
|
|
28
|
-
"schema-dts": "^1.
|
|
28
|
+
"schema-dts": "^1.1.0",
|
|
29
29
|
"type-fest": "^2.12.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-dom": "^17.0.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
42
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.4",
|
|
43
43
|
"@graphcommerce/prettier-config-pwa": "^4.0.2",
|
|
44
44
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
45
45
|
"@playwright/test": "^1.19.1",
|