@graphcommerce/next-ui 3.2.3 → 3.3.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.
@@ -1,10 +1,12 @@
1
1
  import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/framer-scroller'
2
- import { Link, makeStyles, Theme } from '@material-ui/core'
2
+ import { Link, LinkProps as MuiLinkProps, makeStyles, Theme } from '@material-ui/core'
3
+ import { Variant as ThemeVariant } from '@material-ui/core/styles/createTypography'
3
4
  import clsx from 'clsx'
4
5
  import { m } from 'framer-motion'
5
6
  import PageLink from 'next/link'
6
7
  import { useRouter } from 'next/router'
7
8
  import React from 'react'
9
+ import { UseStyles } from '../Styles'
8
10
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
9
11
  import { iconChevronLeft, iconChevronRight } from '../icons'
10
12
  import { MenuProps } from './Menu'
@@ -79,11 +81,11 @@ const useStyles = makeStyles(
79
81
  { name: 'DesktopNavBar' },
80
82
  )
81
83
 
82
- export type MenuTabsProps = MenuProps
84
+ export type MenuTabsProps = MenuProps & UseStyles<typeof useStyles> & { LinkProps?: MuiLinkProps }
83
85
 
84
86
  export default function DesktopNavBar(props: MenuTabsProps) {
85
- const { menu } = props
86
- const classes = useStyles()
87
+ const { menu, LinkProps } = props
88
+ const classes = useStyles(props)
87
89
  const router = useRouter()
88
90
 
89
91
  return (
@@ -92,7 +94,11 @@ export default function DesktopNavBar(props: MenuTabsProps) {
92
94
  <Scroller className={classes.scroller} hideScrollbar>
93
95
  {menu.map(({ href, children, ...linkProps }) => (
94
96
  <PageLink key={href.toString()} href={href} {...linkProps} passHref>
95
- <Link className={classes.link} variant='h6'>
97
+ <Link
98
+ variant='h6'
99
+ {...LinkProps}
100
+ className={clsx(classes.link, LinkProps?.className)}
101
+ >
96
102
  {children}
97
103
  <div
98
104
  className={clsx(
@@ -10,7 +10,6 @@ const useStyles = makeStyles(
10
10
  bottom: 20,
11
11
  right: 20,
12
12
  zIndex: 100,
13
- width: 56,
14
13
  boxShadow: theme.shadows[4],
15
14
  borderRadius: 99,
16
15
  maxWidth: 56,
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
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.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
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * regression in header ([4738fb7](https://github.com/ho-nl/m2-pwa/commit/4738fb7e13fb3be187f58b474219497783525d72))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.2.3...@graphcommerce/next-ui@3.3.0) (2021-10-13)
18
+
19
+
20
+ ### Features
21
+
22
+ * allow styling DesktopNavBar ([12f99a6](https://github.com/ho-nl/m2-pwa/commit/12f99a603d9e9f89e28ec2452823b58abee59c4c))
23
+ * implement extensibility for DesktopNavBar, SearchButton ([5710de8](https://github.com/ho-nl/m2-pwa/commit/5710de8936f59c7d0fcc648978183f0e7fdd26b7))
24
+ * make DesktopNavBar Link variant customizable ([d47172f](https://github.com/ho-nl/m2-pwa/commit/d47172f3ebe0cc0b769e0d17c171ae4bb2045bbb))
25
+
26
+
27
+
28
+
29
+
6
30
  ## [3.2.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.2.2...@graphcommerce/next-ui@3.2.3) (2021-10-11)
7
31
 
8
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.2.3",
3
+ "version": "3.3.3",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,19 +10,19 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.4.16",
13
- "@graphcommerce/framer-next-pages": "^2.106.7",
14
- "@graphcommerce/framer-scroller": "^0.2.9",
15
- "@graphcommerce/framer-sheet": "^2.105.7",
16
- "@graphcommerce/framer-utils": "^2.103.6",
17
- "@graphcommerce/graphql": "^2.103.5",
18
- "@graphcommerce/image": "^2.104.8",
13
+ "@graphcommerce/framer-next-pages": "^2.106.9",
14
+ "@graphcommerce/framer-scroller": "^0.2.11",
15
+ "@graphcommerce/framer-sheet": "^2.105.9",
16
+ "@graphcommerce/framer-utils": "^2.103.8",
17
+ "@graphcommerce/graphql": "^2.103.7",
18
+ "@graphcommerce/image": "^2.104.10",
19
19
  "@graphql-typed-document-node/core": "^3.1.0",
20
20
  "@material-ui/core": "^4.12.3",
21
21
  "@material-ui/lab": "^4.0.0-alpha.60",
22
22
  "@material-ui/styles": "^4.11.4",
23
23
  "clsx": "^1.1.1",
24
24
  "framer-motion": "^4.1.17",
25
- "graphql": "^15.6.0",
25
+ "graphql": "^15.6.1",
26
26
  "next": "^11.1.2",
27
27
  "node-fetch": "^3.0.0",
28
28
  "react": "^17.0.2",
@@ -31,18 +31,18 @@
31
31
  "react-is": "^17.0.2",
32
32
  "react-schemaorg": "^2.0.0",
33
33
  "schema-dts": "^1.0.0",
34
- "type-fest": "^2.3.4"
34
+ "type-fest": "^2.5.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@graphcommerce/browserslist-config-pwa": "^3.0.1",
38
- "@graphcommerce/eslint-config-pwa": "^3.0.5",
39
- "@graphcommerce/prettier-config-pwa": "^3.0.2",
40
- "@graphcommerce/typescript-config-pwa": "^3.1.0",
41
- "@playwright/test": "^1.15.0",
37
+ "@graphcommerce/browserslist-config-pwa": "^3.0.2",
38
+ "@graphcommerce/eslint-config-pwa": "^3.0.7",
39
+ "@graphcommerce/prettier-config-pwa": "^3.0.3",
40
+ "@graphcommerce/typescript-config-pwa": "^3.1.1",
41
+ "@playwright/test": "^1.15.2",
42
42
  "@types/react-dom": "^17.0.9",
43
43
  "@types/react-is": "^17.0.2",
44
44
  "graphql-tag": "2.12.5",
45
- "typescript": "^4.4.3"
45
+ "typescript": "^4.4.4"
46
46
  },
47
47
  "sideEffects": false,
48
48
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -55,5 +55,5 @@
55
55
  "project": "./tsconfig.json"
56
56
  }
57
57
  },
58
- "gitHead": "23efb6abb9e5bb287434d07dbba664511b2c5e36"
58
+ "gitHead": "996d782db6b91323acf71868a7790d608367d918"
59
59
  }