@graphcommerce/next-ui 3.0.6 → 3.1.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.
- package/AppShell/AppShellHeader/index.tsx +3 -3
- package/AppShell/FullPageShellBase.tsx +1 -0
- package/Blog/BlogTitle/index.tsx +3 -3
- package/CHANGELOG.md +46 -0
- package/FramerScroller/components/SidebarGallery.tsx +20 -7
- package/Row/HeroBanner/index.tsx +0 -3
- package/Row/IconBlocks/IconBlock/index.tsx +1 -1
- package/icons/icon_shopping_bag.svg +2 -2
- package/package.json +2 -2
|
@@ -38,7 +38,7 @@ const useStyles = makeStyles(
|
|
|
38
38
|
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
39
39
|
},
|
|
40
40
|
dividerSpacer: {
|
|
41
|
-
minHeight:
|
|
41
|
+
minHeight: 1,
|
|
42
42
|
},
|
|
43
43
|
dividerSheetShell: {
|
|
44
44
|
marginTop: `calc((${theme.page.headerInnerHeight.md} * 0.15))`,
|
|
@@ -130,8 +130,8 @@ const useStyles = makeStyles(
|
|
|
130
130
|
sheetHeaderFillMobileOnly: {
|
|
131
131
|
[theme.breakpoints.up('md')]: {
|
|
132
132
|
pointerEvents: 'none',
|
|
133
|
-
background: '
|
|
134
|
-
|
|
133
|
+
background: 'green',
|
|
134
|
+
position: 'fixed',
|
|
135
135
|
},
|
|
136
136
|
},
|
|
137
137
|
innerContainer: {
|
package/Blog/BlogTitle/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { makeStyles, Theme
|
|
1
|
+
import { makeStyles, Theme } from '@material-ui/core'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import
|
|
3
|
+
import AppShellTitle from '../../AppShell/AppShellTitle'
|
|
4
4
|
import { UseStyles } from '../../Styles'
|
|
5
5
|
|
|
6
6
|
const useStyles = makeStyles(
|
|
@@ -23,7 +23,7 @@ export default function BlogTitle(props: BlogTitleProps) {
|
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<div className={classes.wrapper}>
|
|
26
|
-
<
|
|
26
|
+
<AppShellTitle variant='h2'>{title}</AppShellTitle>
|
|
27
27
|
</div>
|
|
28
28
|
)
|
|
29
29
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
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.1.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.1.2...@graphcommerce/next-ui@3.1.3) (2021-10-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **blog:** use app shell title ([987bb15](https://github.com/ho-nl/m2-pwa/commit/987bb157c4064141b1c2978935e66cf47ae24ff0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.1.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.1.1...@graphcommerce/next-ui@3.1.2) (2021-10-04)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **hero-banner:** too large top spacing ([0ad8499](https://github.com/ho-nl/m2-pwa/commit/0ad8499a1702caf8e121f38e1ccb70fba4f418db))
|
|
23
|
+
* **sheet-shell:** mobile border bottom gap ([70104d8](https://github.com/ho-nl/m2-pwa/commit/70104d88994c2324f415eec1efeeba21de7872b9))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.1.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.1.0...@graphcommerce/next-ui@3.1.1) (2021-10-04)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* cart icon alignment ([8b75b40](https://github.com/ho-nl/m2-pwa/commit/8b75b40bcdecf6d43579ee824677bf1a03763157))
|
|
35
|
+
* **icon-block:** render href ([738fd82](https://github.com/ho-nl/m2-pwa/commit/738fd82629dd3be92fe0cdd63ed8eeaa5d4886f6))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.0.6...@graphcommerce/next-ui@3.1.0) (2021-10-01)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* **sidebar-gallery:** close using esc key ([fd46fe1](https://github.com/ho-nl/m2-pwa/commit/fd46fe1029f436c1e0e04cbcc3b66deca4d1b0b6))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
6
52
|
## [3.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.0.0...@graphcommerce/next-ui@3.0.1) (2021-09-27)
|
|
7
53
|
|
|
8
54
|
**Note:** Version bump only for package @graphcommerce/next-ui
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CenterSlide,
|
|
3
|
+
MotionImageAspect,
|
|
4
|
+
MotionImageAspectProps,
|
|
5
|
+
Scroller,
|
|
2
6
|
ScrollerButton,
|
|
3
7
|
ScrollerDots,
|
|
4
8
|
ScrollerProvider,
|
|
5
|
-
Scroller,
|
|
6
|
-
MotionImageAspectProps,
|
|
7
|
-
CenterSlide,
|
|
8
|
-
MotionImageAspect,
|
|
9
9
|
} from '@graphcommerce/framer-scroller'
|
|
10
10
|
import { clientSize, useMotionValueValue } from '@graphcommerce/framer-utils'
|
|
11
11
|
import { Fab, makeStyles, Theme, useTheme } from '@material-ui/core'
|
|
12
12
|
import clsx from 'clsx'
|
|
13
|
-
import { m } from 'framer-motion'
|
|
14
|
-
import React, { useState } from 'react'
|
|
13
|
+
import { m, useDomEvent } from 'framer-motion'
|
|
14
|
+
import React, { useRef, useState } from 'react'
|
|
15
15
|
import { UseStyles } from '../../Styles'
|
|
16
16
|
import responsiveVal from '../../Styles/responsiveVal'
|
|
17
17
|
import SvgImage from '../../SvgImage'
|
|
@@ -44,7 +44,7 @@ const useStyles = makeStyles(
|
|
|
44
44
|
zIndex: theme.zIndex.modal,
|
|
45
45
|
marginTop: 0,
|
|
46
46
|
[theme.breakpoints.up('md')]: {
|
|
47
|
-
marginTop: `calc(${theme.page.headerInnerHeight.md} * -1 - ${theme.spacings.sm}
|
|
47
|
+
marginTop: `calc(${theme.page.headerInnerHeight.md} * -1 - ${theme.spacings.sm})`,
|
|
48
48
|
},
|
|
49
49
|
paddingRight: 0,
|
|
50
50
|
},
|
|
@@ -55,6 +55,7 @@ const useStyles = makeStyles(
|
|
|
55
55
|
|
|
56
56
|
const maxHeight = `calc(100vh - ${headerHeight} - ${galleryMargin} - ${extraSpacing})`
|
|
57
57
|
const ratio = `calc(${height} / ${width} * 100%)`
|
|
58
|
+
|
|
58
59
|
return {
|
|
59
60
|
height: 0, // https://stackoverflow.com/questions/44770074/css-grid-row-height-safari-bug
|
|
60
61
|
position: 'relative',
|
|
@@ -183,6 +184,18 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
|
|
|
183
184
|
|
|
184
185
|
const theme = useTheme()
|
|
185
186
|
|
|
187
|
+
const windowRef = useRef(typeof window !== 'undefined' ? window : null)
|
|
188
|
+
|
|
189
|
+
const handleEscapeKey = (e: KeyboardEvent | Event) => {
|
|
190
|
+
if (zoomed) {
|
|
191
|
+
if ((e as KeyboardEvent)?.key === 'Escape') {
|
|
192
|
+
toggle()
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
useDomEvent(windowRef, 'keyup', handleEscapeKey, { passive: true })
|
|
198
|
+
|
|
186
199
|
return (
|
|
187
200
|
<ScrollerProvider scrollSnapAlign='center'>
|
|
188
201
|
<m.div layout className={clsxZoom('root')}>
|
package/Row/HeroBanner/index.tsx
CHANGED
|
@@ -44,7 +44,7 @@ const IconBlock = React.forwardRef<HTMLAnchorElement, IconBlockProps>((props, re
|
|
|
44
44
|
|
|
45
45
|
if (href) {
|
|
46
46
|
return (
|
|
47
|
-
<Button variant='text' color='primary' className={classes.block} ref={ref}>
|
|
47
|
+
<Button href={href} variant='text' color='primary' className={classes.block} ref={ref}>
|
|
48
48
|
<div>{content}</div>
|
|
49
49
|
</Button>
|
|
50
50
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<g
|
|
2
|
+
<svg transform="translate(0.25, 0.25)" width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
4
4
|
<path d="M22.7211388,13.8851398 L23.5468356,26.00354 L8.74931805,26.00354 L9.57501488,13.8851398 L22.7211388,13.8851398 Z" id="Rectangle-6" stroke="#000000" stroke-width="1.4"></path>
|
|
5
5
|
<path d="M12.4444055,14.953 L12.4444055,11.4552028 C12.4444055,9.54694698 13.9458954,8 15.798077,8 C17.6502587,8 19.1517485,9.54694698 19.1517485,11.4552028 L19.1517485,14.9497766" id="Path" stroke="#000000" stroke-width="1.4" stroke-linecap="square" stroke-linejoin="bevel"></path>
|
|
6
6
|
</g>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"project": "./tsconfig.json"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "148ed6eb34bf3b3da72c1791c4195d8d141bc6e6"
|
|
60
60
|
}
|