@graphcommerce/next-ui 3.22.1 → 3.22.2

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 CHANGED
@@ -3,6 +3,19 @@
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.22.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.22.1...@graphcommerce/next-ui@3.22.2) (2022-01-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * broder radius of drawer was too small on desktop ([f8b3962](https://github.com/ho-nl/m2-pwa/commit/f8b3962825972e6bc232387e0a2e801289fcc492))
12
+ * close button of bottom sheet spacing ([be33c20](https://github.com/ho-nl/m2-pwa/commit/be33c20fc8f41ad85d90bff15842738bc370b81e))
13
+ * regression where primary action wasn't visible ([66f8ed2](https://github.com/ho-nl/m2-pwa/commit/66f8ed20ea0728881be81994d49bd6c399f2e914))
14
+
15
+
16
+
17
+
18
+
6
19
  ## [3.22.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.22.0...@graphcommerce/next-ui@3.22.1) (2022-01-04)
7
20
 
8
21
 
@@ -117,7 +117,7 @@ export function LayoutHeader(props: LayoutHeaderProps) {
117
117
  if (back) left = back
118
118
 
119
119
  if (!right) right = close
120
- else if (!left) right = close
120
+ else if (!left) left = close
121
121
 
122
122
  if (!left && !right && !children) return null
123
123
 
@@ -3,15 +3,25 @@ import React from 'react'
3
3
  import Button from '../../Button'
4
4
  import SvgImageSimple from '../../SvgImage/SvgImageSimple'
5
5
  import { iconClose } from '../../icons'
6
+ import { makeStyles, Theme } from '@material-ui/core'
7
+ import { responsiveVal } from '../../Styles/responsiveVal'
6
8
 
7
9
  export function useShowClose() {
8
10
  const { overlayGroup } = usePageContext()
9
11
  return !!overlayGroup
10
12
  }
11
13
 
14
+ const useStyles = makeStyles((theme: Theme) => ({
15
+ close: {
16
+ marginLeft: `calc(${responsiveVal(12, 22)} * -1)`,
17
+ marginRight: `calc(${responsiveVal(12, 22)} * -1)`,
18
+ },
19
+ }))
20
+
12
21
  export default function LayoutHeaderClose() {
13
22
  const { closeSteps } = usePageContext()
14
23
  const onClick = useGo(closeSteps * -1)
24
+ const classes = useStyles()
15
25
 
16
26
  return (
17
27
  <Button
@@ -20,6 +30,7 @@ export default function LayoutHeaderClose() {
20
30
  aria-label='Close'
21
31
  variant='text'
22
32
  startIcon={<SvgImageSimple src={iconClose} />}
33
+ className={classes.close}
23
34
  >
24
35
  Close
25
36
  </Button>
@@ -94,8 +94,8 @@ const useStyles = makeStyles(
94
94
  },
95
95
  overlayPaneVariantMdBottom: {
96
96
  [theme.breakpoints.up('md')]: {
97
- borderTopLeftRadius: theme.shape.borderRadius * 3,
98
- borderTopRightRadius: theme.shape.borderRadius * 3,
97
+ borderTopLeftRadius: theme.shape.borderRadius * 4,
98
+ borderTopRightRadius: theme.shape.borderRadius * 4,
99
99
  },
100
100
  },
101
101
  overlayPaneSizeSmFloating: {
@@ -105,7 +105,7 @@ const useStyles = makeStyles(
105
105
  },
106
106
  overlayPaneSizeMdFloating: {
107
107
  [theme.breakpoints.up('md')]: {
108
- borderRadius: theme.shape.borderRadius * 3,
108
+ borderRadius: theme.shape.borderRadius * 4,
109
109
  },
110
110
  },
111
111
  overlayPaneSmVariantSizeLeftFull: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.22.1",
3
+ "version": "3.22.2",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,8 +10,8 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.5.6",
13
- "@graphcommerce/framer-next-pages": "^2.109.1",
14
- "@graphcommerce/framer-scroller": "^1.2.1",
13
+ "@graphcommerce/framer-next-pages": "^2.109.2",
14
+ "@graphcommerce/framer-scroller": "^1.2.2",
15
15
  "@graphcommerce/framer-utils": "^2.103.21",
16
16
  "@graphcommerce/graphql": "^2.105.13",
17
17
  "@graphcommerce/image": "^2.105.13",
@@ -51,5 +51,5 @@
51
51
  "project": "./tsconfig.json"
52
52
  }
53
53
  },
54
- "gitHead": "ddea6bd034cb06864b33fc4d8af9a3b5dad1c914"
54
+ "gitHead": "0553535bc06348d46a64c90e5330f8ff108c0cbc"
55
55
  }