@graphcommerce/next-ui 3.2.0 → 3.2.1
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/Button/index.tsx
CHANGED
|
@@ -56,7 +56,7 @@ const useStyles = makeStyles<
|
|
|
56
56
|
[theme.breakpoints.up('md')]: {
|
|
57
57
|
background: theme.palette.secondary.main,
|
|
58
58
|
color: theme.palette.secondary.contrastText,
|
|
59
|
-
boxShadow: theme.shadows[
|
|
59
|
+
boxShadow: theme.shadows[6],
|
|
60
60
|
borderRadius: 25,
|
|
61
61
|
padding: '6px 16px',
|
|
62
62
|
fontWeight: theme.typography.fontWeightBold,
|
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.2.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.2.0...@graphcommerce/next-ui@3.2.1) (2021-10-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **framer-scroller:** dots should have a background ([8f2e1a1](https://github.com/ho-nl/m2-pwa/commit/8f2e1a1ffc9de3369938fe2f9e9f25f592739d8d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.1.7...@graphcommerce/next-ui@3.2.0) (2021-10-09)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ScrollerProvider,
|
|
10
10
|
} from '@graphcommerce/framer-scroller'
|
|
11
11
|
import { clientSize, useMotionValueValue } from '@graphcommerce/framer-utils'
|
|
12
|
-
import { Fab, makeStyles, Theme, useTheme } from '@material-ui/core'
|
|
12
|
+
import { Fab, makeStyles, Theme, useTheme, alpha } from '@material-ui/core'
|
|
13
13
|
import clsx from 'clsx'
|
|
14
14
|
import { m, useDomEvent, useMotionValue } from 'framer-motion'
|
|
15
15
|
import { useRouter } from 'next/router'
|
|
@@ -23,6 +23,7 @@ import { iconChevronLeft, iconChevronRight, iconFullscreen, iconFullscreenExit }
|
|
|
23
23
|
type StyleProps = {
|
|
24
24
|
aspectRatio: [number, number]
|
|
25
25
|
clientHeight: number
|
|
26
|
+
classes?: Record<string, unknown>
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
const useStyles = makeStyles(
|
|
@@ -131,7 +132,7 @@ const useStyles = makeStyles(
|
|
|
131
132
|
},
|
|
132
133
|
},
|
|
133
134
|
toggleIcon: {
|
|
134
|
-
boxShadow: theme.shadows[
|
|
135
|
+
boxShadow: theme.shadows[6],
|
|
135
136
|
},
|
|
136
137
|
topRight: {
|
|
137
138
|
display: 'grid',
|
|
@@ -156,6 +157,9 @@ const useStyles = makeStyles(
|
|
|
156
157
|
right: theme.spacings.sm,
|
|
157
158
|
top: `calc(50% - 28px)`,
|
|
158
159
|
},
|
|
160
|
+
dots: {
|
|
161
|
+
background: alpha(theme.palette.background.highlight, 0.7),
|
|
162
|
+
},
|
|
159
163
|
}),
|
|
160
164
|
{ name: 'SidebarGallery' },
|
|
161
165
|
)
|
|
@@ -172,7 +176,7 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
|
|
|
172
176
|
const router = useRouter()
|
|
173
177
|
const prevRoute = usePrevPageRouter()
|
|
174
178
|
const clientHeight = useMotionValueValue(clientSize.y, (y) => y)
|
|
175
|
-
const classes = useStyles({ clientHeight, aspectRatio })
|
|
179
|
+
const classes = useStyles({ clientHeight, aspectRatio, classes: props.classes })
|
|
176
180
|
|
|
177
181
|
const route = `#${routeHash}`
|
|
178
182
|
// We're using the URL to manage the state of the gallery.
|
|
@@ -275,7 +279,7 @@ export default function SidebarGallery(props: SidebarGalleryProps) {
|
|
|
275
279
|
</div>
|
|
276
280
|
|
|
277
281
|
<div className={classes.bottomCenter}>
|
|
278
|
-
<ScrollerDots layout />
|
|
282
|
+
<ScrollerDots layout classes={{ dots: classes.dots }} />
|
|
279
283
|
</div>
|
|
280
284
|
</m.div>
|
|
281
285
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/client": "^3.4.16",
|
|
13
13
|
"@graphcommerce/framer-next-pages": "^2.106.7",
|
|
14
|
-
"@graphcommerce/framer-scroller": "^0.2.
|
|
14
|
+
"@graphcommerce/framer-scroller": "^0.2.9",
|
|
15
15
|
"@graphcommerce/framer-sheet": "^2.105.6",
|
|
16
16
|
"@graphcommerce/framer-utils": "^2.103.6",
|
|
17
17
|
"@graphcommerce/graphql": "^2.103.5",
|
|
18
|
-
"@graphcommerce/image": "^2.104.
|
|
18
|
+
"@graphcommerce/image": "^2.104.8",
|
|
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",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"project": "./tsconfig.json"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "e8e29078b5d241da5f90b930338e84ba543b0ea4"
|
|
59
59
|
}
|