@graphcommerce/next-ui 3.3.3 → 3.4.0
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/AppShell/DesktopNavBar.tsx +9 -4
- package/CHANGELOG.md +11 -0
- package/package.json +2 -2
|
@@ -81,10 +81,15 @@ const useStyles = makeStyles(
|
|
|
81
81
|
{ name: 'DesktopNavBar' },
|
|
82
82
|
)
|
|
83
83
|
|
|
84
|
-
export type MenuTabsProps = MenuProps &
|
|
84
|
+
export type MenuTabsProps = MenuProps &
|
|
85
|
+
UseStyles<typeof useStyles> & {
|
|
86
|
+
LinkProps?: MuiLinkProps
|
|
87
|
+
iconScrollerBtnLeft?: React.ReactNode
|
|
88
|
+
iconScrollerBtnRight?: React.ReactNode
|
|
89
|
+
}
|
|
85
90
|
|
|
86
91
|
export default function DesktopNavBar(props: MenuTabsProps) {
|
|
87
|
-
const { menu, LinkProps } = props
|
|
92
|
+
const { menu, LinkProps, iconScrollerBtnLeft, iconScrollerBtnRight } = props
|
|
88
93
|
const classes = useStyles(props)
|
|
89
94
|
const router = useRouter()
|
|
90
95
|
|
|
@@ -117,7 +122,7 @@ export default function DesktopNavBar(props: MenuTabsProps) {
|
|
|
117
122
|
size='small'
|
|
118
123
|
classes={{ root: clsx(classes.prevNextBtn, classes.prevBtn) }}
|
|
119
124
|
>
|
|
120
|
-
<SvgImageSimple src={iconChevronLeft} />
|
|
125
|
+
{iconScrollerBtnLeft ?? <SvgImageSimple src={iconChevronLeft} />}
|
|
121
126
|
</ScrollerButton>
|
|
122
127
|
</m.div>
|
|
123
128
|
|
|
@@ -127,7 +132,7 @@ export default function DesktopNavBar(props: MenuTabsProps) {
|
|
|
127
132
|
size='small'
|
|
128
133
|
classes={{ root: clsx(classes.prevNextBtn, classes.nextBtn) }}
|
|
129
134
|
>
|
|
130
|
-
<SvgImageSimple src={iconChevronRight} />
|
|
135
|
+
{iconScrollerBtnRight ?? <SvgImageSimple src={iconChevronRight} />}
|
|
131
136
|
</ScrollerButton>
|
|
132
137
|
</m.div>
|
|
133
138
|
</div>
|
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.4.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.3.3...@graphcommerce/next-ui@3.4.0) (2021-10-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **DesktopNavBar:** allow custom scroller button icons ([401f457](https://github.com/ho-nl/m2-pwa/commit/401f4572ce67dbe52008dca8e1d4473e2fcbf5cf))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.3.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.3.2...@graphcommerce/next-ui@3.3.3) (2021-10-13)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"project": "./tsconfig.json"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "f94866e061369b3d3824d1953a7bfb65c603568f"
|
|
59
59
|
}
|