@graphcommerce/next-ui 7.1.0-canary.8 → 8.0.0-canary.100
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/ActionCard/ActionCard.tsx +2 -0
- package/CHANGELOG.md +257 -8
- package/Config.graphqls +24 -0
- package/Footer/Footer.tsx +97 -94
- package/FramerScroller/ItemScroller.tsx +3 -3
- package/FramerScroller/SidebarGallery.tsx +181 -162
- package/JsonLd/JsonLd.tsx +0 -2
- package/LayoutDefault/components/LayoutDefault.tsx +6 -1
- package/LayoutParts/DesktopNavBar.tsx +2 -0
- package/LayoutParts/Logo.tsx +20 -20
- package/LazyHydrate/LazyHydrate.tsx +72 -0
- package/LazyHydrate/index.ts +1 -0
- package/Navigation/components/NavigationFab.tsx +9 -7
- package/Navigation/components/NavigationOverlay.tsx +9 -1
- package/Navigation/components/NavigationProvider.tsx +18 -4
- package/Overlay/components/OverlayBase.tsx +1 -1
- package/Overlay/components/index.ts +1 -0
- package/Page/CssAndFramerMotionProvider.tsx +20 -18
- package/PageMeta/PageMeta.tsx +20 -13
- package/RenderType/filterNonNullableKeys.ts +11 -14
- package/Row/ColumnOne/variant/VariantMessage.tsx +12 -0
- package/Row/ColumnOne/variant/index.ts +1 -0
- package/Row/index.ts +1 -0
- package/SkipLink/SkipLink.tsx +38 -0
- package/Snackbar/DismissibleSnackbar.tsx +28 -0
- package/Snackbar/MessageSnackbarImpl.tsx +19 -2
- package/Styles/EmotionProvider.tsx +8 -8
- package/Styles/createEmotionCache.ts +14 -0
- package/Styles/withEmotionCache.tsx +26 -16
- package/TextInputNumber/TextInputNumber.tsx +7 -1
- package/Theme/MuiButton.ts +2 -2
- package/Theme/MuiChip.ts +2 -2
- package/Theme/MuiFab.ts +1 -1
- package/Theme/MuiSlider.ts +2 -2
- package/Theme/MuiSnackbar.ts +6 -4
- package/hooks/useDateTimeFormat.ts +3 -5
- package/hooks/useNumberFormat.ts +3 -5
- package/index.ts +4 -2
- package/package.json +16 -18
|
@@ -55,6 +55,7 @@ const parts = [
|
|
|
55
55
|
'after',
|
|
56
56
|
'secondaryAction',
|
|
57
57
|
'reset',
|
|
58
|
+
'end',
|
|
58
59
|
] as const
|
|
59
60
|
const name = 'ActionCard'
|
|
60
61
|
|
|
@@ -317,6 +318,7 @@ export function ActionCard(props: ActionCardProps) {
|
|
|
317
318
|
</Box>
|
|
318
319
|
|
|
319
320
|
<Box
|
|
321
|
+
className={classes.end}
|
|
320
322
|
sx={{
|
|
321
323
|
display: 'flex',
|
|
322
324
|
flexDirection: 'column',
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,254 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.0-canary.100
|
|
4
|
+
|
|
5
|
+
## 8.0.0-canary.99
|
|
6
|
+
|
|
7
|
+
## 8.0.0-canary.98
|
|
8
|
+
|
|
9
|
+
## 8.0.0-canary.97
|
|
10
|
+
|
|
11
|
+
## 8.0.0-canary.96
|
|
12
|
+
|
|
13
|
+
## 8.0.0-canary.95
|
|
14
|
+
|
|
15
|
+
## 8.0.0-canary.94
|
|
16
|
+
|
|
17
|
+
## 8.0.0-canary.93
|
|
18
|
+
|
|
19
|
+
## 8.0.0-canary.92
|
|
20
|
+
|
|
21
|
+
## 8.0.0-canary.91
|
|
22
|
+
|
|
23
|
+
## 8.0.0-canary.90
|
|
24
|
+
|
|
25
|
+
## 8.0.0-canary.89
|
|
26
|
+
|
|
27
|
+
## 8.0.0-canary.88
|
|
28
|
+
|
|
29
|
+
## 8.0.0-canary.87
|
|
30
|
+
|
|
31
|
+
## 8.0.0-canary.86
|
|
32
|
+
|
|
33
|
+
## 8.0.0-canary.85
|
|
34
|
+
|
|
35
|
+
## 8.0.0-canary.84
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- [#2161](https://github.com/graphcommerce-org/graphcommerce/pull/2161) [`cc5c636`](https://github.com/graphcommerce-org/graphcommerce/commit/cc5c636f9f2b3d9fa33384b9a02d6ad3631aa414) - Removed whitespace on top of the zoomed in image on the PDP.
|
|
40
|
+
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
41
|
+
|
|
42
|
+
## 8.0.0-canary.83
|
|
43
|
+
|
|
44
|
+
## 8.0.0-canary.82
|
|
45
|
+
|
|
46
|
+
## 8.0.0-canary.81
|
|
47
|
+
|
|
48
|
+
## 8.0.0-canary.80
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- [#2138](https://github.com/graphcommerce-org/graphcommerce/pull/2138) [`a057d62`](https://github.com/graphcommerce-org/graphcommerce/commit/a057d6274e1d427e631ab3fad7a16078315103b8) - Wrap the logo in a div on the homepage to prevent redirection.
|
|
53
|
+
([@carlocarels90](https://github.com/carlocarels90))
|
|
54
|
+
|
|
55
|
+
## 8.0.0-canary.79
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- [#2137](https://github.com/graphcommerce-org/graphcommerce/pull/2137) [`df507b1`](https://github.com/graphcommerce-org/graphcommerce/commit/df507b194c67eef7b02df858c07938bb308b5397) - Don't render pseudo-locale in HTML lang attribute
|
|
60
|
+
([@hnsr](https://github.com/hnsr))
|
|
61
|
+
|
|
62
|
+
## 8.0.0-canary.78
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- [#2135](https://github.com/graphcommerce-org/graphcommerce/pull/2135) [`7b017f5`](https://github.com/graphcommerce-org/graphcommerce/commit/7b017f58ba3be587d20a7f52c84b2907d52fe201) - Fix incorrect canonical URLs when i18n domain routing is used
|
|
67
|
+
([@hnsr](https://github.com/hnsr))
|
|
68
|
+
|
|
69
|
+
## 8.0.0-canary.77
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- [`e33660f`](https://github.com/graphcommerce-org/graphcommerce/commit/e33660f172466dcfa0ab7262cee612d9a3e47776) - a11y improvements (see https://github.com/graphcommerce-org/graphcommerce/issues/1995 for more info)
|
|
74
|
+
([@FrankHarland](https://github.com/FrankHarland))
|
|
75
|
+
|
|
76
|
+
## 8.0.0-canary.76
|
|
77
|
+
|
|
78
|
+
## 8.0.0-canary.75
|
|
79
|
+
|
|
80
|
+
## 8.0.0-canary.74
|
|
81
|
+
|
|
82
|
+
### Minor Changes
|
|
83
|
+
|
|
84
|
+
- [#2133](https://github.com/graphcommerce-org/graphcommerce/pull/2133) [`133f908`](https://github.com/graphcommerce-org/graphcommerce/commit/133f908200a79589036420f2925835724522cab8) - Added lazy hydration to improve total blocking time. Added LazyHydrate component which can be wrapped around other components you want to lazy hydrate.
|
|
85
|
+
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
86
|
+
|
|
87
|
+
## 8.0.0-canary.73
|
|
88
|
+
|
|
89
|
+
## 8.0.0-canary.72
|
|
90
|
+
|
|
91
|
+
## 8.0.0-canary.71
|
|
92
|
+
|
|
93
|
+
## 8.0.0-canary.70
|
|
94
|
+
|
|
95
|
+
## 8.0.0-canary.69
|
|
96
|
+
|
|
97
|
+
## 7.1.0-canary.68
|
|
98
|
+
|
|
99
|
+
## 7.1.0-canary.67
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- [#2108](https://github.com/graphcommerce-org/graphcommerce/pull/2108) [`7fc4bb9`](https://github.com/graphcommerce-org/graphcommerce/commit/7fc4bb925c59da46961c9656a2a67b37a9c2d652) - Removed the 'NoSSR' functionality from `<WaitForQueries/>` component as it slows down rendering. The 'feature' was necessary for the following use case: When hydrating a component that was server rendered and was living inside a `<Suspense />` component. It would cause an hydration error and this was the workaround. With useSuspenseQuery and React 18, this problem will not occur.
|
|
104
|
+
([@StefanAngenent](https://github.com/StefanAngenent))
|
|
105
|
+
|
|
106
|
+
## 7.1.0-canary.66
|
|
107
|
+
|
|
108
|
+
## 7.1.0-canary.65
|
|
109
|
+
|
|
110
|
+
## 7.1.0-canary.64
|
|
111
|
+
|
|
112
|
+
## 7.1.0-canary.63
|
|
113
|
+
|
|
114
|
+
## 7.1.0-canary.62
|
|
115
|
+
|
|
116
|
+
## 7.1.0-canary.61
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- [#2125](https://github.com/graphcommerce-org/graphcommerce/pull/2125) [`5224ee500`](https://github.com/graphcommerce-org/graphcommerce/commit/5224ee5001c94a19f226fa36106e76739319297c) - If there is an open menu in an overlay, pressing the escape button now closes the menu instead of the overlay. ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
121
|
+
|
|
122
|
+
## 7.1.0-canary.60
|
|
123
|
+
|
|
124
|
+
## 7.1.0-canary.59
|
|
125
|
+
|
|
126
|
+
## 7.1.0-canary.58
|
|
127
|
+
|
|
128
|
+
### Patch Changes
|
|
129
|
+
|
|
130
|
+
- [#2121](https://github.com/graphcommerce-org/graphcommerce/pull/2121) [`a5da6ffc8`](https://github.com/graphcommerce-org/graphcommerce/commit/a5da6ffc8be359e93c7bde986134f7162aae13b9) - Change the critical css injection location to be in the head instead of `<style>` tags in the body. It has a number of negative consequences, such as the famous "flash of unstyled content" (FOUC) and the re-paint and re-layout required. ([@paales](https://github.com/paales))
|
|
131
|
+
|
|
132
|
+
## 7.1.0-canary.57
|
|
133
|
+
|
|
134
|
+
## 7.1.0-canary.56
|
|
135
|
+
|
|
136
|
+
### Patch Changes
|
|
137
|
+
|
|
138
|
+
- [#2123](https://github.com/graphcommerce-org/graphcommerce/pull/2123) [`8ad60f255`](https://github.com/graphcommerce-org/graphcommerce/commit/8ad60f255b747858c35dd6b6cf5c90147d960082) - Fixed schema-dts dependency issue ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
139
|
+
|
|
140
|
+
## 7.1.0-canary.55
|
|
141
|
+
|
|
142
|
+
### Patch Changes
|
|
143
|
+
|
|
144
|
+
- [#2004](https://github.com/graphcommerce-org/graphcommerce/pull/2004) [`da2135744`](https://github.com/graphcommerce-org/graphcommerce/commit/da2135744dddfa0d211c59589090ebb1977c38c9) - Added info icon for Snackbar when severity is set to info ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
145
|
+
|
|
146
|
+
- [#2004](https://github.com/graphcommerce-org/graphcommerce/pull/2004) [`d608830ce`](https://github.com/graphcommerce-org/graphcommerce/commit/d608830ce77f85ff725cc106b9fc55a22012c74c) - Added ‘disableBackdropClick’ prop to MessageSnackbar to allow page interaction without closing the snackbar ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
147
|
+
|
|
148
|
+
- [#2004](https://github.com/graphcommerce-org/graphcommerce/pull/2004) [`94e1ae811`](https://github.com/graphcommerce-org/graphcommerce/commit/94e1ae811fe9eb0051863e8be91c6399ddcdf22f) - Added DismissibleSnackbar component to allow messages to be shown only once ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
149
|
+
|
|
150
|
+
- [#2004](https://github.com/graphcommerce-org/graphcommerce/pull/2004) [`53947d39f`](https://github.com/graphcommerce-org/graphcommerce/commit/53947d39f2f3ee578c14903c96a2b356d99d9475) - Implemented Message variant for RowColumnOne to show an important message which, after dismissing, will not show again ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
151
|
+
|
|
152
|
+
## 7.1.0-canary.54
|
|
153
|
+
|
|
154
|
+
## 7.1.0-canary.53
|
|
155
|
+
|
|
156
|
+
## 7.1.0-canary.52
|
|
157
|
+
|
|
158
|
+
## 7.1.0-canary.51
|
|
159
|
+
|
|
160
|
+
## 7.1.0-canary.50
|
|
161
|
+
|
|
162
|
+
## 7.1.0-canary.49
|
|
163
|
+
|
|
164
|
+
## 7.1.0-canary.48
|
|
165
|
+
|
|
166
|
+
## 7.1.0-canary.47
|
|
167
|
+
|
|
168
|
+
## 7.1.0-canary.46
|
|
169
|
+
|
|
170
|
+
## 7.1.0-canary.45
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- [#2077](https://github.com/graphcommerce-org/graphcommerce/pull/2077) [`727d1004d`](https://github.com/graphcommerce-org/graphcommerce/commit/727d1004dfcb7dddf6e35b6b157a34491bb05cc6) - Fixed ItemScroller component className. Changed from SidebarSlider to ItemScroller ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
175
|
+
|
|
176
|
+
## 7.1.0-canary.38
|
|
177
|
+
|
|
178
|
+
### Patch Changes
|
|
179
|
+
|
|
180
|
+
- [#2048](https://github.com/graphcommerce-org/graphcommerce/pull/2048) [`695f40cf2`](https://github.com/graphcommerce-org/graphcommerce/commit/695f40cf220636d17f04bc9b0ce86c549c740386) - filterNonNullable keys simplified the types which caused unions to be collapsed ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
181
|
+
|
|
182
|
+
## 7.1.0-canary.37
|
|
183
|
+
|
|
184
|
+
## 7.1.0-canary.36
|
|
185
|
+
|
|
186
|
+
## 7.1.0-canary.35
|
|
187
|
+
|
|
188
|
+
## 7.1.0-canary.34
|
|
189
|
+
|
|
190
|
+
## 7.1.0-canary.33
|
|
191
|
+
|
|
192
|
+
## 7.1.0-canary.32
|
|
193
|
+
|
|
194
|
+
## 7.1.0-canary.31
|
|
195
|
+
|
|
196
|
+
## 7.1.0-canary.30
|
|
197
|
+
|
|
198
|
+
### Patch Changes
|
|
199
|
+
|
|
200
|
+
- [#2105](https://github.com/graphcommerce-org/graphcommerce/pull/2105) [`185f9ddeb`](https://github.com/graphcommerce-org/graphcommerce/commit/185f9ddebff0eaf1f388faebe88a5d400294512a) - Fixed bug where the mobile menu wouldn't open after the first selected level ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
201
|
+
|
|
202
|
+
## 7.1.0-canary.29
|
|
203
|
+
|
|
204
|
+
## 7.1.0-canary.28
|
|
205
|
+
|
|
206
|
+
### Minor Changes
|
|
207
|
+
|
|
208
|
+
- [#2018](https://github.com/graphcommerce-org/graphcommerce/pull/2018) [`750aa6a72`](https://github.com/graphcommerce-org/graphcommerce/commit/750aa6a72710869d54244467253212e551d335e0) - Changed the layout of the succes page. We are using ActionCards right now to match the design of the cart. ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
209
|
+
|
|
210
|
+
## 7.1.0-canary.27
|
|
211
|
+
|
|
212
|
+
## 7.1.0-canary.26
|
|
213
|
+
|
|
214
|
+
## 7.1.0-canary.25
|
|
215
|
+
|
|
216
|
+
## 7.1.0-canary.24
|
|
217
|
+
|
|
218
|
+
## 7.1.0-canary.23
|
|
219
|
+
|
|
220
|
+
## 7.1.0-canary.22
|
|
221
|
+
|
|
222
|
+
## 7.1.0-canary.21
|
|
223
|
+
|
|
224
|
+
## 7.1.0-canary.20
|
|
225
|
+
|
|
226
|
+
## 7.1.0-canary.19
|
|
227
|
+
|
|
228
|
+
## 7.1.0-canary.18
|
|
229
|
+
|
|
230
|
+
## 7.1.0-canary.17
|
|
231
|
+
|
|
232
|
+
## 7.1.0-canary.16
|
|
233
|
+
|
|
234
|
+
## 7.1.0-canary.15
|
|
235
|
+
|
|
236
|
+
## 7.1.0-canary.14
|
|
237
|
+
|
|
238
|
+
### Patch Changes
|
|
239
|
+
|
|
240
|
+
- [#2045](https://github.com/graphcommerce-org/graphcommerce/pull/2045) [`1ac1e0989`](https://github.com/graphcommerce-org/graphcommerce/commit/1ac1e09897daadd646200cb3ddc2aa75a51e182e) - Make sure the product image gallery traps focus and scrollbar doesn't disappear suddenly ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
241
|
+
|
|
242
|
+
## 7.1.0-canary.13
|
|
243
|
+
|
|
244
|
+
## 7.1.0-canary.12
|
|
245
|
+
|
|
246
|
+
## 7.1.0-canary.11
|
|
247
|
+
|
|
248
|
+
## 7.1.0-canary.10
|
|
249
|
+
|
|
250
|
+
## 7.1.0-canary.9
|
|
251
|
+
|
|
3
252
|
## 7.1.0-canary.8
|
|
4
253
|
|
|
5
254
|
### Minor Changes
|
|
@@ -1432,31 +1681,31 @@
|
|
|
1432
1681
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1433
1682
|
|
|
1434
1683
|
```tsx
|
|
1435
|
-
import { Trans, t } from
|
|
1684
|
+
import { Trans, t } from "@lingui/macro";
|
|
1436
1685
|
|
|
1437
1686
|
function MyComponent() {
|
|
1438
|
-
const foo =
|
|
1687
|
+
const foo = "bar";
|
|
1439
1688
|
return (
|
|
1440
1689
|
<div aria-label={t`Account ${foo}`}>
|
|
1441
1690
|
<Trans>My Translation {foo}</Trans>
|
|
1442
1691
|
</div>
|
|
1443
|
-
)
|
|
1692
|
+
);
|
|
1444
1693
|
}
|
|
1445
1694
|
```
|
|
1446
1695
|
|
|
1447
1696
|
Needs to be replaced with:
|
|
1448
1697
|
|
|
1449
1698
|
```tsx
|
|
1450
|
-
import { Trans } from
|
|
1451
|
-
import { i18n } from
|
|
1699
|
+
import { Trans } from "@lingui/react";
|
|
1700
|
+
import { i18n } from "@lingui/core";
|
|
1452
1701
|
|
|
1453
1702
|
function MyComponent() {
|
|
1454
|
-
const foo =
|
|
1703
|
+
const foo = "bar";
|
|
1455
1704
|
return (
|
|
1456
1705
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1457
|
-
<Trans key=
|
|
1706
|
+
<Trans key="My Translation {foo}" values={{ foo }}></Trans>
|
|
1458
1707
|
</div>
|
|
1459
|
-
)
|
|
1708
|
+
);
|
|
1460
1709
|
}
|
|
1461
1710
|
```
|
|
1462
1711
|
|
package/Config.graphqls
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
extend input GraphCommerceConfig {
|
|
2
|
+
"""
|
|
3
|
+
Configuration for the SidebarGallery component
|
|
4
|
+
"""
|
|
5
|
+
sidebarGallery: SidebarGalleryConfig
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Enumeration of all possible positions for the sidebar gallery thumbnails.
|
|
10
|
+
"""
|
|
11
|
+
enum SidebarGalleryPaginationVariant {
|
|
12
|
+
DOTS
|
|
13
|
+
THUMBNAILS_BOTTOM
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
"""
|
|
17
|
+
SidebarGalleryConfig will contain all configuration values for the Sidebar Gallery component.
|
|
18
|
+
"""
|
|
19
|
+
input SidebarGalleryConfig {
|
|
20
|
+
"""
|
|
21
|
+
Variant used for the pagination
|
|
22
|
+
"""
|
|
23
|
+
paginationVariant: SidebarGalleryPaginationVariant
|
|
24
|
+
}
|
package/Footer/Footer.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContainerProps, Container, Box } from '@mui/material'
|
|
2
2
|
import React from 'react'
|
|
3
|
+
import { LazyHydrate } from '../LazyHydrate'
|
|
3
4
|
import { extendableComponent } from '../Styles'
|
|
4
5
|
|
|
5
6
|
export type FooterProps = {
|
|
@@ -30,110 +31,112 @@ export function Footer(props: FooterProps) {
|
|
|
30
31
|
} = props
|
|
31
32
|
|
|
32
33
|
return (
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
<LazyHydrate>
|
|
35
|
+
<Container
|
|
36
|
+
sx={[
|
|
37
|
+
(theme) => ({
|
|
38
|
+
gridTemplateColumns: '5fr 3fr',
|
|
39
|
+
borderTop: `1px solid ${theme.palette.divider}`,
|
|
40
|
+
display: 'grid',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
padding: `${theme.spacings.lg} ${theme.page.horizontal} ${theme.page.vertical}`,
|
|
43
|
+
justifyItems: 'center',
|
|
44
|
+
gridTemplateAreas: `
|
|
43
45
|
'switcher switcher'
|
|
44
46
|
'support support'
|
|
45
47
|
'social social'
|
|
46
48
|
'links links'
|
|
47
49
|
`,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
gap: theme.spacings.md,
|
|
51
|
+
'& > *': { maxWidth: 'max-content' },
|
|
50
52
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
[theme.breakpoints.up('md')]: {
|
|
54
|
+
gap: theme.spacings.sm,
|
|
55
|
+
gridTemplateAreas: `
|
|
54
56
|
'social switcher'
|
|
55
57
|
'links support'
|
|
56
58
|
`,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
}),
|
|
64
|
-
...(Array.isArray(sx) ? sx : [sx]),
|
|
65
|
-
]}
|
|
66
|
-
maxWidth={false}
|
|
67
|
-
className={classes.root}
|
|
68
|
-
{...containerProps}
|
|
69
|
-
>
|
|
70
|
-
{socialLinks && (
|
|
71
|
-
<Box
|
|
72
|
-
sx={(theme) => ({
|
|
73
|
-
display: 'grid',
|
|
74
|
-
justifyContent: 'start',
|
|
75
|
-
gridAutoFlow: 'column',
|
|
76
|
-
gridArea: 'social',
|
|
77
|
-
gap: { xs: `0 ${theme.spacings.xs}`, md: `0 ${theme.spacings.xs}` },
|
|
78
|
-
'& > *': {
|
|
79
|
-
minWidth: 'min-content',
|
|
80
|
-
},
|
|
81
|
-
})}
|
|
82
|
-
className={classes.social}
|
|
83
|
-
>
|
|
84
|
-
{socialLinks}
|
|
85
|
-
</Box>
|
|
86
|
-
)}
|
|
87
|
-
{storeSwitcher && (
|
|
88
|
-
<Box
|
|
89
|
-
sx={(theme) => ({
|
|
90
|
-
gridArea: 'switcher',
|
|
91
|
-
justifySelf: 'end',
|
|
92
|
-
[theme.breakpoints.down('md')]: {
|
|
93
|
-
justifySelf: 'center',
|
|
94
|
-
},
|
|
95
|
-
})}
|
|
96
|
-
className={classes.storeSwitcher}
|
|
97
|
-
>
|
|
98
|
-
{storeSwitcher}
|
|
99
|
-
</Box>
|
|
100
|
-
)}
|
|
101
|
-
{customerService && (
|
|
102
|
-
<Box
|
|
103
|
-
sx={(theme) => ({
|
|
104
|
-
gridArea: 'support',
|
|
105
|
-
justifySelf: 'flex-end',
|
|
106
|
-
[theme.breakpoints.down('md')]: {
|
|
107
|
-
justifySelf: 'center',
|
|
108
|
-
},
|
|
109
|
-
})}
|
|
110
|
-
className={classes.support}
|
|
111
|
-
>
|
|
112
|
-
{customerService}
|
|
113
|
-
</Box>
|
|
114
|
-
)}
|
|
115
|
-
{copyright && (
|
|
116
|
-
<Box
|
|
117
|
-
sx={(theme) => ({
|
|
118
|
-
typography: 'body2',
|
|
119
|
-
display: 'grid',
|
|
120
|
-
gridAutoFlow: 'column',
|
|
121
|
-
alignContent: 'center',
|
|
122
|
-
gridArea: 'links',
|
|
123
|
-
gap: theme.spacings.sm,
|
|
124
|
-
[theme.breakpoints.down('md')]: {
|
|
125
|
-
gridAutoFlow: 'row',
|
|
126
|
-
textAlign: 'center',
|
|
127
|
-
gap: `8px`,
|
|
59
|
+
justifyItems: 'start',
|
|
60
|
+
padding: `${theme.page.vertical} ${theme.page.horizontal}`,
|
|
61
|
+
gridTemplateColumns: 'auto auto',
|
|
62
|
+
gridTemplateRows: 'auto',
|
|
63
|
+
justifyContent: 'space-between',
|
|
128
64
|
},
|
|
129
|
-
})
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
65
|
+
}),
|
|
66
|
+
...(Array.isArray(sx) ? sx : [sx]),
|
|
67
|
+
]}
|
|
68
|
+
maxWidth={false}
|
|
69
|
+
className={classes.root}
|
|
70
|
+
{...containerProps}
|
|
71
|
+
>
|
|
72
|
+
{socialLinks && (
|
|
73
|
+
<Box
|
|
74
|
+
sx={(theme) => ({
|
|
75
|
+
display: 'grid',
|
|
76
|
+
justifyContent: 'start',
|
|
77
|
+
gridAutoFlow: 'column',
|
|
78
|
+
gridArea: 'social',
|
|
79
|
+
gap: { xs: `0 ${theme.spacings.xs}`, md: `0 ${theme.spacings.xs}` },
|
|
80
|
+
'& > *': {
|
|
81
|
+
minWidth: 'min-content',
|
|
82
|
+
},
|
|
83
|
+
})}
|
|
84
|
+
className={classes.social}
|
|
85
|
+
>
|
|
86
|
+
{socialLinks}
|
|
87
|
+
</Box>
|
|
88
|
+
)}
|
|
89
|
+
{storeSwitcher && (
|
|
90
|
+
<Box
|
|
91
|
+
sx={(theme) => ({
|
|
92
|
+
gridArea: 'switcher',
|
|
93
|
+
justifySelf: 'end',
|
|
94
|
+
[theme.breakpoints.down('md')]: {
|
|
95
|
+
justifySelf: 'center',
|
|
96
|
+
},
|
|
97
|
+
})}
|
|
98
|
+
className={classes.storeSwitcher}
|
|
99
|
+
>
|
|
100
|
+
{storeSwitcher}
|
|
101
|
+
</Box>
|
|
102
|
+
)}
|
|
103
|
+
{customerService && (
|
|
104
|
+
<Box
|
|
105
|
+
sx={(theme) => ({
|
|
106
|
+
gridArea: 'support',
|
|
107
|
+
justifySelf: 'flex-end',
|
|
108
|
+
[theme.breakpoints.down('md')]: {
|
|
109
|
+
justifySelf: 'center',
|
|
110
|
+
},
|
|
111
|
+
})}
|
|
112
|
+
className={classes.support}
|
|
113
|
+
>
|
|
114
|
+
{customerService}
|
|
115
|
+
</Box>
|
|
116
|
+
)}
|
|
117
|
+
{copyright && (
|
|
118
|
+
<Box
|
|
119
|
+
sx={(theme) => ({
|
|
120
|
+
typography: 'body2',
|
|
121
|
+
display: 'grid',
|
|
122
|
+
gridAutoFlow: 'column',
|
|
123
|
+
alignContent: 'center',
|
|
124
|
+
gridArea: 'links',
|
|
125
|
+
gap: theme.spacings.sm,
|
|
126
|
+
[theme.breakpoints.down('md')]: {
|
|
127
|
+
gridAutoFlow: 'row',
|
|
128
|
+
textAlign: 'center',
|
|
129
|
+
gap: `8px`,
|
|
130
|
+
},
|
|
131
|
+
})}
|
|
132
|
+
className={classes.copyright}
|
|
133
|
+
>
|
|
134
|
+
{copyright}
|
|
135
|
+
</Box>
|
|
136
|
+
)}
|
|
137
|
+
{children}
|
|
138
|
+
</Container>
|
|
139
|
+
</LazyHydrate>
|
|
137
140
|
)
|
|
138
141
|
}
|
|
139
142
|
|
|
@@ -10,7 +10,7 @@ import { extendableComponent, responsiveVal } from '../Styles'
|
|
|
10
10
|
import { useFabSize } from '../Theme'
|
|
11
11
|
import { iconChevronLeft, iconChevronRight } from '../icons'
|
|
12
12
|
|
|
13
|
-
const { classes } = extendableComponent('
|
|
13
|
+
const { classes } = extendableComponent('ItemScroller', [
|
|
14
14
|
'root',
|
|
15
15
|
'grid',
|
|
16
16
|
'sidebar',
|
|
@@ -21,13 +21,13 @@ const { classes } = extendableComponent('SidebarSlider', [
|
|
|
21
21
|
'centerRight',
|
|
22
22
|
] as const)
|
|
23
23
|
|
|
24
|
-
type
|
|
24
|
+
export type ItemScrollerProps = {
|
|
25
25
|
children: React.ReactNode
|
|
26
26
|
sx?: SxProps<Theme>
|
|
27
27
|
buttonSize?: ScrollerButtonProps['size']
|
|
28
28
|
} & Pick<ScrollerButtonProps, 'showButtons'>
|
|
29
29
|
|
|
30
|
-
export function ItemScroller(props:
|
|
30
|
+
export function ItemScroller(props: ItemScrollerProps) {
|
|
31
31
|
const { children, sx, buttonSize = 'responsive', showButtons } = props
|
|
32
32
|
|
|
33
33
|
const size = useFabSize(buttonSize)
|