@graphcommerce/next-ui 3.12.2 → 3.12.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.
@@ -67,10 +67,14 @@ const useStyles = makeStyles(
67
67
  )
68
68
 
69
69
  export type MenuFabProps = MenuProps &
70
- UseStyles<typeof useStyles> & { children?: React.ReactNode; search?: React.ReactNode }
70
+ UseStyles<typeof useStyles> & {
71
+ children?: React.ReactNode
72
+ search?: React.ReactNode
73
+ menuIcon?: React.ReactNode
74
+ }
71
75
 
72
76
  export default function MenuFab(props: MenuFabProps) {
73
- const { menu, children, search } = props
77
+ const { menu, children, search, menuIcon } = props
74
78
  const classes = useStyles(props)
75
79
  const router = useRouter()
76
80
  const [openEl, setOpenEl] = React.useState<null | HTMLElement>(null)
@@ -88,7 +92,7 @@ export default function MenuFab(props: MenuFabProps) {
88
92
  onClick={(event) => setOpenEl(event.currentTarget)}
89
93
  className={classes.menuFab}
90
94
  >
91
- <SvgImageSimple src={iconMenu} inverted />
95
+ {menuIcon ?? <SvgImageSimple src={iconMenu} inverted />}
92
96
  </Fab>
93
97
 
94
98
  <Menu
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.12.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.12.2...@graphcommerce/next-ui@3.12.3) (2021-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **MenuFab:** make icon customizable ([375bafd](https://github.com/ho-nl/m2-pwa/commit/375bafd901b3c53405e02d681ea0dca3af190e35))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.12.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.12.1...@graphcommerce/next-ui@3.12.2) (2021-11-02)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.12.2",
3
+ "version": "3.12.3",
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": "afae9da3ec938f2c088c254bcde22e1db2636ace"
56
+ "gitHead": "8fc77cf7261a01a54e82d2c9bdb2b59c31faeffc"
57
57
  }