@graphcommerce/next-ui 3.13.2 → 3.14.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.
@@ -23,10 +23,11 @@ const useStyles = makeStyles(
23
23
  },
24
24
  },
25
25
  scroller: {
26
- display: 'flex',
26
+ display: 'grid',
27
27
  columnGap: 40,
28
28
  padding: '0 40px',
29
29
  minHeight: 40,
30
+ gridAutoColumns: 'min-content',
30
31
  },
31
32
  prevNextBtnWrapper: {
32
33
  position: 'absolute',
@@ -11,7 +11,7 @@ import {
11
11
  import { m } from 'framer-motion'
12
12
  import PageLink from 'next/link'
13
13
  import { Router, useRouter } from 'next/router'
14
- import React from 'react'
14
+ import React, { useEffect } from 'react'
15
15
  import { UseStyles } from '../Styles'
16
16
  import responsiveVal from '../Styles/responsiveVal'
17
17
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
@@ -56,10 +56,6 @@ const useStyles = makeStyles(
56
56
  ...theme.typography.h3,
57
57
  fontWeight: 550,
58
58
  lineHeight: 1,
59
- // fontSize: '1.6em',
60
- // fontWeight: 550,
61
- // letterSpacing: '-0.0375em',
62
- // lineHeight: 1,
63
59
  },
64
60
  menuItem: {},
65
61
  }),
@@ -81,7 +77,11 @@ export default function MenuFab(props: MenuFabProps) {
81
77
 
82
78
  const { filter, opacity, scale } = useFabAnimation()
83
79
 
84
- Router.events.on('routeChangeStart', () => setOpenEl(null))
80
+ useEffect(() => {
81
+ const clear = () => setOpenEl(null)
82
+ router.events.on('routeChangeStart', clear)
83
+ return () => router.events.off('routeChangeStart', clear)
84
+ }, [router])
85
85
 
86
86
  return (
87
87
  <m.div className={classes.menuWrapper} style={{ opacity, scale, filter }}>
@@ -60,7 +60,7 @@ function SheetShellBase(props: SheetShellBaseProps) {
60
60
  const sheetClasses = useSheetStyles(props)
61
61
  const router = useRouter()
62
62
  const pageRouter = usePageRouter()
63
- const { depth, closeSteps, active } = usePageContext()
63
+ const { depth, closeSteps, active, direction } = usePageContext()
64
64
  const open = depth < 0 || router.asPath === pageRouter.asPath
65
65
  const initialLocale = useRef(router.locale)
66
66
 
@@ -95,7 +95,7 @@ function SheetShellBase(props: SheetShellBaseProps) {
95
95
  <Sheet open={open} onSnap={handleSnap} variant={variant} size={size}>
96
96
  <SheetBackdrop onTap={handleClose} classes={sheetClasses} />
97
97
  <SheetContainer classes={sheetContainerClasses}>
98
- <SheetPanel classes={sheetClasses}>
98
+ <SheetPanel initial={direction === -1 ? 'snapPoint1' : 'closed'} classes={sheetClasses}>
99
99
  {/* <FocusLock returnFocus={{ preventScroll: true }} disabled={!isActive}> */}
100
100
  {children}
101
101
  {/* </FocusLock> */}
package/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
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.14.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.14.2...@graphcommerce/next-ui@3.14.3) (2021-11-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * spacing DesktopNavBar items ([c3373b9](https://github.com/ho-nl/m2-pwa/commit/c3373b97add87864adc5809ab04cf683bc5b0498))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.14.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.14.0...@graphcommerce/next-ui@3.14.1) (2021-11-04)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * can't remove filters on click icon ([2528802](https://github.com/ho-nl/m2-pwa/commit/252880216994da7f8e65c1b565ff996bbab0472a))
23
+ * Checkout button margin consistency ([9fcf7e7](https://github.com/ho-nl/m2-pwa/commit/9fcf7e7d96172448b2d2911771d6bf70ab976594))
24
+ * remove hardcoded fontSize ([e4e09e1](https://github.com/ho-nl/m2-pwa/commit/e4e09e11baeb8edeff634550b8cdb88571d96911))
25
+
26
+
27
+
28
+
29
+
30
+ # [3.14.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.13.2...@graphcommerce/next-ui@3.14.0) (2021-11-04)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **menu-fab:** fix route change start event handling ([20dde65](https://github.com/ho-nl/m2-pwa/commit/20dde65f8e8ead449b21f4f5292d653d003e6ead))
36
+
37
+
38
+ ### Features
39
+
40
+ * **sheet-shell-base:** stop animating drawer on browser back ([c6262f1](https://github.com/ho-nl/m2-pwa/commit/c6262f1c3a0d181e57bd5d4971efb469901503b1))
41
+
42
+
43
+
44
+
45
+
6
46
  ## [3.13.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.13.1...@graphcommerce/next-ui@3.13.2) (2021-11-03)
7
47
 
8
48
 
@@ -67,7 +67,9 @@ export default function ChipMenu(props: ChipMenuProps) {
67
67
  const classes = useChipMenuStyles(props)
68
68
 
69
69
  let deleteIcon = selected ? (
70
- <SvgImageSimple src={iconCancelAlt} className={classes.iconCancel} />
70
+ <div>
71
+ <SvgImageSimple src={iconCancelAlt} className={classes.iconCancel} />
72
+ </div>
71
73
  ) : (
72
74
  <SvgImageSimple src={iconChevronDown} />
73
75
  )
@@ -2,8 +2,8 @@ import { styled } from '@material-ui/core'
2
2
 
3
3
  const FormActions = styled('div')(
4
4
  ({ theme }) => ({
5
- paddingTop: theme.spacings.xxs,
6
- paddingBottom: theme.spacings.md,
5
+ paddingTop: theme.spacings.md,
6
+ paddingBottom: theme.spacings.lg,
7
7
  justifyContent: 'center',
8
8
  display: 'grid',
9
9
  gridAutoFlow: 'column',
@@ -10,8 +10,8 @@ import SvgImage, { SvgImageProps } from '../SvgImage'
10
10
  const useStyles = makeStyles(
11
11
  (theme: Theme) => ({
12
12
  container: {
13
+ ...theme.typography.subtitle1,
13
14
  textAlign: 'center',
14
- fontSize: responsiveVal(16, 24),
15
15
  },
16
16
  innerContainer: {
17
17
  display: 'flex',
@@ -3,12 +3,12 @@ import { Badge, withStyles } from '@material-ui/core'
3
3
  const StyledBadge = withStyles((theme) => ({
4
4
  colorError: {},
5
5
  badge: {
6
+ ...theme.typography.caption,
6
7
  right: 6,
7
8
  top: 6,
8
9
  padding: 3,
9
10
  color: '#FFF',
10
11
  borderRadius: '100%',
11
- fontSize: 10,
12
12
  [theme.breakpoints.up('md')]: {
13
13
  padding: 6,
14
14
  right: 8,
@@ -27,9 +27,7 @@ const useStyles = makeStyles(
27
27
  appearance: 'none',
28
28
  },
29
29
  },
30
- button: {
31
- fontSize: 22,
32
- },
30
+ button: {},
33
31
  adornedEnd: {
34
32
  paddingRight: responsiveVal(7, 14),
35
33
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.13.2",
3
+ "version": "3.14.3",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "@apollo/client": "^3.4.16",
13
13
  "@graphcommerce/framer-next-pages": "^2.107.3",
14
14
  "@graphcommerce/framer-scroller": "^1.0.2",
15
- "@graphcommerce/framer-sheet": "^2.105.15",
15
+ "@graphcommerce/framer-sheet": "^2.106.0",
16
16
  "@graphcommerce/framer-utils": "^2.103.13",
17
17
  "@graphcommerce/graphql": "^2.105.3",
18
18
  "@graphcommerce/image": "^2.105.2",
@@ -53,5 +53,5 @@
53
53
  "project": "./tsconfig.json"
54
54
  }
55
55
  },
56
- "gitHead": "db0c7ff1a81b75e4e6eeee3717a1fc608d9c3c86"
56
+ "gitHead": "c0165c35074fb4f6e8ddf64d3d12b8cfbb169c1d"
57
57
  }