@zendeskgarden/react-chrome 9.12.3 → 9.12.4
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/dist/esm/elements/Chrome.js +5 -6
- package/dist/esm/elements/SkipNav.js +10 -13
- package/dist/esm/elements/body/Body.js +3 -3
- package/dist/esm/elements/footer/Footer.js +3 -3
- package/dist/esm/elements/footer/FooterItem.js +3 -3
- package/dist/esm/elements/header/Header.js +13 -16
- package/dist/esm/elements/header/HeaderItem.js +8 -9
- package/dist/esm/elements/header/HeaderItemIcon.js +4 -7
- package/dist/esm/elements/header/HeaderItemText.js +7 -10
- package/dist/esm/elements/header/HeaderItemWrapper.js +11 -14
- package/dist/esm/elements/nav/Nav.js +4 -5
- package/dist/esm/elements/nav/NavItem.js +7 -8
- package/dist/esm/elements/nav/NavItemIcon.js +4 -7
- package/dist/esm/elements/nav/NavItemText.js +4 -5
- package/dist/esm/elements/sheet/Sheet.js +11 -12
- package/dist/esm/elements/sheet/components/Description.js +4 -5
- package/dist/esm/elements/sheet/components/Footer.js +4 -5
- package/dist/esm/elements/sheet/components/Title.js +4 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/link-stroke.svg.js +4 -4
- package/dist/esm/styled/StyledChrome.js +3 -3
- package/dist/esm/styled/StyledSkipNav.js +11 -13
- package/dist/esm/styled/StyledSkipNavIcon.js +7 -8
- package/dist/esm/styled/body/StyledBody.js +3 -3
- package/dist/esm/styled/body/StyledContent.js +8 -9
- package/dist/esm/styled/body/StyledMain.js +3 -3
- package/dist/esm/styled/footer/StyledFooter.js +10 -12
- package/dist/esm/styled/footer/StyledFooterItem.js +3 -3
- package/dist/esm/styled/header/StyledBaseHeaderItem.js +9 -10
- package/dist/esm/styled/header/StyledHeader.js +11 -13
- package/dist/esm/styled/header/StyledHeaderItem.js +12 -14
- package/dist/esm/styled/header/StyledHeaderItemIcon.js +7 -8
- package/dist/esm/styled/header/StyledHeaderItemText.js +3 -3
- package/dist/esm/styled/header/StyledHeaderItemWrapper.js +3 -3
- package/dist/esm/styled/header/StyledLogoHeaderItem.js +12 -14
- package/dist/esm/styled/nav/StyledBaseNavItem.js +7 -8
- package/dist/esm/styled/nav/StyledBrandmarkNavItem.js +3 -3
- package/dist/esm/styled/nav/StyledLogoNavItem.js +9 -10
- package/dist/esm/styled/nav/StyledNav.js +12 -14
- package/dist/esm/styled/nav/StyledNavButton.js +12 -14
- package/dist/esm/styled/nav/StyledNavItemIcon.js +7 -8
- package/dist/esm/styled/nav/StyledNavItemText.js +9 -10
- package/dist/esm/styled/nav/StyledNavList.js +3 -3
- package/dist/esm/styled/nav/StyledNavListItem.js +3 -3
- package/dist/esm/styled/sheet/StyledSheet.js +15 -17
- package/dist/esm/styled/sheet/StyledSheetBody.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetClose.js +6 -7
- package/dist/esm/styled/sheet/StyledSheetDescription.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetFooter.js +11 -13
- package/dist/esm/styled/sheet/StyledSheetFooterItem.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetHeader.js +8 -10
- package/dist/esm/styled/sheet/StyledSheetTitle.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetWrapper.js +9 -10
- package/dist/esm/styled/utils.js +1 -4
- package/dist/esm/utils/useFocusableMount.js +6 -7
- package/dist/index.cjs.js +248 -309
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -47,7 +47,7 @@ const PRODUCTS = ['chat', 'explore', 'guide', 'support', 'talk'];
|
|
|
47
47
|
const COMPONENT_ID$w = 'chrome.chrome';
|
|
48
48
|
const StyledChrome = styled__default.default.div.attrs({
|
|
49
49
|
'data-garden-id': COMPONENT_ID$w,
|
|
50
|
-
'data-garden-version': '9.12.
|
|
50
|
+
'data-garden-version': '9.12.4'
|
|
51
51
|
}).withConfig({
|
|
52
52
|
displayName: "StyledChrome",
|
|
53
53
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -59,20 +59,16 @@ const getHeaderItemSize = theme => `${theme.space.base * 7.5}px`;
|
|
|
59
59
|
const getNavItemHeight = theme => getHeaderHeight(theme);
|
|
60
60
|
const getNavWidth = theme => `${theme.space.base * 15}px`;
|
|
61
61
|
const getNavWidthExpanded = () => `200px`;
|
|
62
|
-
const getProductColor =
|
|
63
|
-
let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'inherit';
|
|
64
|
-
return product ? reactTheming.PALETTE.product[product] || fallback : fallback;
|
|
65
|
-
};
|
|
62
|
+
const getProductColor = (product, fallback = 'inherit') => product ? reactTheming.PALETTE.product[product] || fallback : fallback;
|
|
66
63
|
|
|
67
64
|
const COMPONENT_ID$v = 'chrome.skipnav';
|
|
68
65
|
const animationStyles = () => {
|
|
69
66
|
const animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
70
67
|
return styled.css(["transition:opacity 0.2s ease-out,clip 0s linear 0.2s;opacity:0;clip:rect(0,0,0,0);&:focus{transition:opacity 0.2s ease-in-out;animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ", ";opacity:1;clip:rect(0,150vw,100vh,-50vw);}"], animationName);
|
|
71
68
|
};
|
|
72
|
-
const colorStyles$a =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} = _ref;
|
|
69
|
+
const colorStyles$a = ({
|
|
70
|
+
theme
|
|
71
|
+
}) => {
|
|
76
72
|
const backgroundColor = reactTheming.getColor({
|
|
77
73
|
theme,
|
|
78
74
|
variable: 'background.raised'
|
|
@@ -96,10 +92,9 @@ const colorStyles$a = _ref => {
|
|
|
96
92
|
boxShadow
|
|
97
93
|
}));
|
|
98
94
|
};
|
|
99
|
-
const sizeStyles$g =
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} = _ref2;
|
|
95
|
+
const sizeStyles$g = ({
|
|
96
|
+
theme
|
|
97
|
+
}) => {
|
|
103
98
|
const top = polished.math(`${getHeaderHeight(theme)} / 2`);
|
|
104
99
|
const border = theme.borders.sm;
|
|
105
100
|
const padding = `${theme.space.base * 5}px`;
|
|
@@ -110,7 +105,7 @@ const sizeStyles$g = _ref2 => {
|
|
|
110
105
|
};
|
|
111
106
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
112
107
|
'data-garden-id': COMPONENT_ID$v,
|
|
113
|
-
'data-garden-version': '9.12.
|
|
108
|
+
'data-garden-version': '9.12.4'
|
|
114
109
|
}).withConfig({
|
|
115
110
|
displayName: "StyledSkipNav",
|
|
116
111
|
componentId: "sc-1tsro34-0"
|
|
@@ -133,17 +128,16 @@ var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
|
133
128
|
};
|
|
134
129
|
|
|
135
130
|
const COMPONENT_ID$u = 'chrome.skipnav_icon';
|
|
136
|
-
const sizeStyles$f =
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
} = _ref;
|
|
131
|
+
const sizeStyles$f = ({
|
|
132
|
+
theme
|
|
133
|
+
}) => {
|
|
140
134
|
const margin = `${theme.space.base * 2}px`;
|
|
141
135
|
const size = theme.iconSizes.md;
|
|
142
136
|
return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
143
137
|
};
|
|
144
138
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
145
139
|
'data-garden-id': COMPONENT_ID$u,
|
|
146
|
-
'data-garden-version': '9.12.
|
|
140
|
+
'data-garden-version': '9.12.4'
|
|
147
141
|
}).withConfig({
|
|
148
142
|
displayName: "StyledSkipNavIcon",
|
|
149
143
|
componentId: "sc-1ika5z4-0"
|
|
@@ -155,7 +149,7 @@ const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
|
155
149
|
const COMPONENT_ID$t = 'chrome.body';
|
|
156
150
|
const StyledBody = styled__default.default.div.attrs({
|
|
157
151
|
'data-garden-id': COMPONENT_ID$t,
|
|
158
|
-
'data-garden-version': '9.12.
|
|
152
|
+
'data-garden-version': '9.12.4'
|
|
159
153
|
}).withConfig({
|
|
160
154
|
displayName: "StyledBody",
|
|
161
155
|
componentId: "sc-c7h9kv-0"
|
|
@@ -165,11 +159,10 @@ const StyledBody = styled__default.default.div.attrs({
|
|
|
165
159
|
}), reactTheming.componentStyles);
|
|
166
160
|
|
|
167
161
|
const COMPONENT_ID$s = 'chrome.content';
|
|
168
|
-
const sizeStyles$e =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
} = _ref;
|
|
162
|
+
const sizeStyles$e = ({
|
|
163
|
+
theme,
|
|
164
|
+
$hasFooter
|
|
165
|
+
}) => {
|
|
173
166
|
const fontSize = theme.fontSizes.md;
|
|
174
167
|
const height = $hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(theme)} + ${getFooterHeight(theme)}`)})` : `calc(100% - ${getHeaderHeight(theme)})`;
|
|
175
168
|
const lineHeight = reactTheming.getLineHeight(theme.lineHeights.md, theme.fontSizes.md);
|
|
@@ -177,7 +170,7 @@ const sizeStyles$e = _ref => {
|
|
|
177
170
|
};
|
|
178
171
|
const StyledContent = styled__default.default.div.attrs({
|
|
179
172
|
'data-garden-id': COMPONENT_ID$s,
|
|
180
|
-
'data-garden-version': '9.12.
|
|
173
|
+
'data-garden-version': '9.12.4'
|
|
181
174
|
}).withConfig({
|
|
182
175
|
displayName: "StyledContent",
|
|
183
176
|
componentId: "sc-qcuzxn-0"
|
|
@@ -189,7 +182,7 @@ const StyledContent = styled__default.default.div.attrs({
|
|
|
189
182
|
const COMPONENT_ID$r = 'chrome.main';
|
|
190
183
|
const StyledMain = styled__default.default.main.attrs({
|
|
191
184
|
'data-garden-id': COMPONENT_ID$r,
|
|
192
|
-
'data-garden-version': '9.12.
|
|
185
|
+
'data-garden-version': '9.12.4'
|
|
193
186
|
}).withConfig({
|
|
194
187
|
displayName: "StyledMain",
|
|
195
188
|
componentId: "sc-t61cre-0"
|
|
@@ -199,10 +192,9 @@ const StyledMain = styled__default.default.main.attrs({
|
|
|
199
192
|
}), reactTheming.componentStyles);
|
|
200
193
|
|
|
201
194
|
const COMPONENT_ID$q = 'chrome.footer';
|
|
202
|
-
const colorStyles$9 =
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
} = _ref;
|
|
195
|
+
const colorStyles$9 = ({
|
|
196
|
+
theme
|
|
197
|
+
}) => {
|
|
206
198
|
const backgroundColor = reactTheming.getColor({
|
|
207
199
|
theme,
|
|
208
200
|
variable: 'background.default'
|
|
@@ -213,10 +205,9 @@ const colorStyles$9 = _ref => {
|
|
|
213
205
|
});
|
|
214
206
|
return styled.css(["border-top-color:", ";background-color:", ";"], borderColor, backgroundColor);
|
|
215
207
|
};
|
|
216
|
-
const sizeStyles$d =
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
} = _ref2;
|
|
208
|
+
const sizeStyles$d = ({
|
|
209
|
+
theme
|
|
210
|
+
}) => {
|
|
220
211
|
const border = theme.borders.sm;
|
|
221
212
|
const padding = `0 ${theme.space.base * 9}px`;
|
|
222
213
|
const height = getFooterHeight(theme);
|
|
@@ -224,7 +215,7 @@ const sizeStyles$d = _ref2 => {
|
|
|
224
215
|
};
|
|
225
216
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
226
217
|
'data-garden-id': COMPONENT_ID$q,
|
|
227
|
-
'data-garden-version': '9.12.
|
|
218
|
+
'data-garden-version': '9.12.4'
|
|
228
219
|
}).withConfig({
|
|
229
220
|
displayName: "StyledFooter",
|
|
230
221
|
componentId: "sc-v7lib2-0"
|
|
@@ -233,36 +224,34 @@ const StyledFooter = styled__default.default.footer.attrs({
|
|
|
233
224
|
const COMPONENT_ID$p = 'chrome.footer_item';
|
|
234
225
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
235
226
|
'data-garden-id': COMPONENT_ID$p,
|
|
236
|
-
'data-garden-version': '9.12.
|
|
227
|
+
'data-garden-version': '9.12.4'
|
|
237
228
|
}).withConfig({
|
|
238
229
|
displayName: "StyledFooterItem",
|
|
239
230
|
componentId: "sc-1cktm85-0"
|
|
240
231
|
})(["margin:", ";", ";"], props => `0 ${props.theme.space.base}px`, reactTheming.componentStyles);
|
|
241
232
|
|
|
242
233
|
const COMPONENT_ID$o = 'chrome.header_item_icon';
|
|
243
|
-
const sizeStyles$c =
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
} = _ref;
|
|
234
|
+
const sizeStyles$c = ({
|
|
235
|
+
theme
|
|
236
|
+
}) => {
|
|
247
237
|
const margin = `0 ${theme.space.base * 0.75}px`;
|
|
248
238
|
const size = theme.iconSizes.md;
|
|
249
239
|
return styled.css(["margin:", ";width:", ";min-width:", ";height:", ";"], margin, size, size, size);
|
|
250
240
|
};
|
|
251
241
|
const StyledHeaderItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
252
242
|
'data-garden-id': COMPONENT_ID$o,
|
|
253
|
-
'data-garden-version': '9.12.
|
|
243
|
+
'data-garden-version': '9.12.4'
|
|
254
244
|
}).withConfig({
|
|
255
245
|
displayName: "StyledHeaderItemIcon",
|
|
256
246
|
componentId: "sc-1jhhp6z-0"
|
|
257
247
|
})(["transition:transform 0.25s ease-in-out;", ";", ";"], sizeStyles$c, reactTheming.componentStyles);
|
|
258
248
|
|
|
259
249
|
const COMPONENT_ID$n = 'chrome.base_header_item';
|
|
260
|
-
const sizeStyles$b =
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
} = _ref;
|
|
250
|
+
const sizeStyles$b = ({
|
|
251
|
+
theme,
|
|
252
|
+
$maxY,
|
|
253
|
+
$isRound
|
|
254
|
+
}) => {
|
|
266
255
|
const margin = `0 ${theme.space.base * 3}px`;
|
|
267
256
|
const size = getHeaderItemSize(theme);
|
|
268
257
|
const height = $maxY ? '100%' : size;
|
|
@@ -280,7 +269,7 @@ const sizeStyles$b = _ref => {
|
|
|
280
269
|
};
|
|
281
270
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
282
271
|
'data-garden-id': COMPONENT_ID$n,
|
|
283
|
-
'data-garden-version': '9.12.
|
|
272
|
+
'data-garden-version': '9.12.4'
|
|
284
273
|
}).withConfig({
|
|
285
274
|
displayName: "StyledBaseHeaderItem",
|
|
286
275
|
componentId: "sc-1qua7h6-0"
|
|
@@ -289,18 +278,17 @@ const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
|
289
278
|
const COMPONENT_ID$m = 'chrome.header_item_text';
|
|
290
279
|
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
291
280
|
'data-garden-id': COMPONENT_ID$m,
|
|
292
|
-
'data-garden-version': '9.12.
|
|
281
|
+
'data-garden-version': '9.12.4'
|
|
293
282
|
}).withConfig({
|
|
294
283
|
displayName: "StyledHeaderItemText",
|
|
295
284
|
componentId: "sc-goz7la-0"
|
|
296
285
|
})(["margin:", ";", " ", ";"], props => `0 ${props.theme.space.base * 0.75}px`, props => props.$isClipped && polished.hideVisually(), reactTheming.componentStyles);
|
|
297
286
|
|
|
298
287
|
const COMPONENT_ID$l = 'chrome.header_item';
|
|
299
|
-
const colorStyles$8 =
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
} = _ref;
|
|
288
|
+
const colorStyles$8 = ({
|
|
289
|
+
theme,
|
|
290
|
+
$product
|
|
291
|
+
}) => {
|
|
304
292
|
const borderColor = reactTheming.getColor({
|
|
305
293
|
theme,
|
|
306
294
|
variable: 'border.default'
|
|
@@ -312,10 +300,9 @@ const colorStyles$8 = _ref => {
|
|
|
312
300
|
const color = getProductColor($product, fill );
|
|
313
301
|
return styled.css(["border-", "-color:", ";color:", ";fill:", ";"], theme.rtl ? 'left' : 'right', borderColor, color, fill);
|
|
314
302
|
};
|
|
315
|
-
const sizeStyles$a =
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
} = _ref2;
|
|
303
|
+
const sizeStyles$a = ({
|
|
304
|
+
theme
|
|
305
|
+
}) => {
|
|
319
306
|
const border = theme.borders.sm;
|
|
320
307
|
const iconSize = theme.iconSizes.lg;
|
|
321
308
|
const marginRight = theme.rtl ? `-${theme.space.base}px` : 'auto';
|
|
@@ -325,7 +312,7 @@ const sizeStyles$a = _ref2 => {
|
|
|
325
312
|
};
|
|
326
313
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
327
314
|
'data-garden-id': COMPONENT_ID$l,
|
|
328
|
-
'data-garden-version': '9.12.
|
|
315
|
+
'data-garden-version': '9.12.4',
|
|
329
316
|
as: 'div'
|
|
330
317
|
}).withConfig({
|
|
331
318
|
displayName: "StyledLogoHeaderItem",
|
|
@@ -333,11 +320,10 @@ const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs
|
|
|
333
320
|
})(["display:none;order:0;border-radius:0;padding:0;overflow:hidden;text-decoration:none;", ";", ";", "{", "}", ";"], sizeStyles$a, colorStyles$8, StyledHeaderItemText, polished.hideVisually(), reactTheming.componentStyles);
|
|
334
321
|
|
|
335
322
|
const COMPONENT_ID$k = 'chrome.header';
|
|
336
|
-
const colorStyles$7 =
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
} = _ref;
|
|
323
|
+
const colorStyles$7 = ({
|
|
324
|
+
theme,
|
|
325
|
+
$isStandalone
|
|
326
|
+
}) => {
|
|
341
327
|
const backgroundColor = reactTheming.getColor({
|
|
342
328
|
theme,
|
|
343
329
|
variable: 'background.default'
|
|
@@ -357,10 +343,9 @@ const colorStyles$7 = _ref => {
|
|
|
357
343
|
});
|
|
358
344
|
return styled.css(["border-bottom-color:", ";box-shadow:", ";background-color:", ";color:", ";"], borderColor, boxShadow, backgroundColor, foregroundColor);
|
|
359
345
|
};
|
|
360
|
-
const sizeStyles$9 =
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
} = _ref2;
|
|
346
|
+
const sizeStyles$9 = ({
|
|
347
|
+
theme
|
|
348
|
+
}) => {
|
|
364
349
|
const border = theme.borders.sm;
|
|
365
350
|
const padding = `0 ${theme.space.base}px`;
|
|
366
351
|
const fontSize = theme.fontSizes.md;
|
|
@@ -369,18 +354,17 @@ const sizeStyles$9 = _ref2 => {
|
|
|
369
354
|
};
|
|
370
355
|
const StyledHeader = styled__default.default.header.attrs({
|
|
371
356
|
'data-garden-id': COMPONENT_ID$k,
|
|
372
|
-
'data-garden-version': '9.12.
|
|
357
|
+
'data-garden-version': '9.12.4'
|
|
373
358
|
}).withConfig({
|
|
374
359
|
displayName: "StyledHeader",
|
|
375
360
|
componentId: "sc-1cexpz-0"
|
|
376
361
|
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;", ";", ";", "{display:", ";}", ";"], props => props.$isStandalone && 'relative', sizeStyles$9, colorStyles$7, StyledLogoHeaderItem, props => props.$isStandalone && 'inline-flex', reactTheming.componentStyles);
|
|
377
362
|
|
|
378
363
|
const COMPONENT_ID$j = 'chrome.header_item';
|
|
379
|
-
const colorStyles$6 =
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
} = _ref;
|
|
364
|
+
const colorStyles$6 = ({
|
|
365
|
+
theme,
|
|
366
|
+
$maxY
|
|
367
|
+
}) => {
|
|
384
368
|
const options = {
|
|
385
369
|
theme,
|
|
386
370
|
variable: 'foreground.subtle'
|
|
@@ -408,11 +392,10 @@ const colorStyles$6 = _ref => {
|
|
|
408
392
|
inset: $maxY
|
|
409
393
|
}), StyledHeaderItemIcon, StyledHeaderItemText, hoverColor, StyledHeaderItemIcon, StyledHeaderItemText, activeColor);
|
|
410
394
|
};
|
|
411
|
-
const sizeStyles$8 =
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
} = _ref2;
|
|
395
|
+
const sizeStyles$8 = ({
|
|
396
|
+
theme,
|
|
397
|
+
$isRound
|
|
398
|
+
}) => {
|
|
416
399
|
const iconBorderRadius = $isRound ? '100px' : undefined;
|
|
417
400
|
const imageBorderRadius = polished.math(`${theme.borderRadii.md} - 1`);
|
|
418
401
|
const imageSize = polished.math(`${getHeaderItemSize(theme)} - ${theme.space.base * 2}`);
|
|
@@ -420,7 +403,7 @@ const sizeStyles$8 = _ref2 => {
|
|
|
420
403
|
};
|
|
421
404
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
422
405
|
'data-garden-id': COMPONENT_ID$j,
|
|
423
|
-
'data-garden-version': '9.12.
|
|
406
|
+
'data-garden-version': '9.12.4'
|
|
424
407
|
}).withConfig({
|
|
425
408
|
displayName: "StyledHeaderItem",
|
|
426
409
|
componentId: "sc-14sft6n-0"
|
|
@@ -429,7 +412,7 @@ const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
|
429
412
|
const COMPONENT_ID$i = 'chrome.header_item_wrapper';
|
|
430
413
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
431
414
|
'data-garden-id': COMPONENT_ID$i,
|
|
432
|
-
'data-garden-version': '9.12.
|
|
415
|
+
'data-garden-version': '9.12.4',
|
|
433
416
|
as: 'div'
|
|
434
417
|
}).withConfig({
|
|
435
418
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -437,11 +420,10 @@ const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).at
|
|
|
437
420
|
})(["", ";"], reactTheming.componentStyles);
|
|
438
421
|
|
|
439
422
|
const COMPONENT_ID$h = 'chrome.nav';
|
|
440
|
-
const colorStyles$5 =
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
} = _ref;
|
|
423
|
+
const colorStyles$5 = ({
|
|
424
|
+
theme,
|
|
425
|
+
$hue
|
|
426
|
+
}) => {
|
|
445
427
|
const shade = $hue === 'chromeHue' ? 900 : undefined;
|
|
446
428
|
const backgroundColor = reactTheming.getColor({
|
|
447
429
|
theme,
|
|
@@ -459,18 +441,17 @@ const colorStyles$5 = _ref => {
|
|
|
459
441
|
});
|
|
460
442
|
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
461
443
|
};
|
|
462
|
-
const sizeStyles$7 =
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
} = _ref2;
|
|
444
|
+
const sizeStyles$7 = ({
|
|
445
|
+
theme,
|
|
446
|
+
$isExpanded
|
|
447
|
+
}) => {
|
|
467
448
|
const fontSize = theme.fontSizes.md;
|
|
468
449
|
const width = $isExpanded ? getNavWidthExpanded() : getNavWidth(theme);
|
|
469
450
|
return styled.css(["width:", ";font-size:", ";"], width, fontSize);
|
|
470
451
|
};
|
|
471
452
|
const StyledNav = styled__default.default.nav.attrs({
|
|
472
453
|
'data-garden-id': COMPONENT_ID$h,
|
|
473
|
-
'data-garden-version': '9.12.
|
|
454
|
+
'data-garden-version': '9.12.4'
|
|
474
455
|
}).withConfig({
|
|
475
456
|
displayName: "StyledNav",
|
|
476
457
|
componentId: "sc-6j462r-0"
|
|
@@ -479,7 +460,7 @@ const StyledNav = styled__default.default.nav.attrs({
|
|
|
479
460
|
const COMPONENT_ID$g = 'chrome.nav_list';
|
|
480
461
|
const StyledNavList = styled__default.default.ul.attrs({
|
|
481
462
|
'data-garden-id': COMPONENT_ID$g,
|
|
482
|
-
'data-garden-version': '9.12.
|
|
463
|
+
'data-garden-version': '9.12.4'
|
|
483
464
|
}).withConfig({
|
|
484
465
|
displayName: "StyledNavList",
|
|
485
466
|
componentId: "sc-1s0nkfb-0"
|
|
@@ -488,17 +469,16 @@ const StyledNavList = styled__default.default.ul.attrs({
|
|
|
488
469
|
const COMPONENT_ID$f = 'chrome.nav_list_item';
|
|
489
470
|
const StyledNavListItem = styled__default.default.li.attrs({
|
|
490
471
|
'data-garden-id': COMPONENT_ID$f,
|
|
491
|
-
'data-garden-version': '9.12.
|
|
472
|
+
'data-garden-version': '9.12.4'
|
|
492
473
|
}).withConfig({
|
|
493
474
|
displayName: "StyledNavListItem",
|
|
494
475
|
componentId: "sc-18cj2v7-0"
|
|
495
476
|
})(["display:flex;order:1;margin:0;padding:0;list-style-type:none;", ";"], reactTheming.componentStyles);
|
|
496
477
|
|
|
497
478
|
const COMPONENT_ID$e = 'chrome.base_nav_item';
|
|
498
|
-
const sizeStyles$6 =
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
} = _ref;
|
|
479
|
+
const sizeStyles$6 = ({
|
|
480
|
+
theme
|
|
481
|
+
}) => {
|
|
502
482
|
const minHeight = getNavItemHeight(theme);
|
|
503
483
|
const verticalPadding = polished.math(`(${minHeight} - ${theme.iconSizes.lg}) / 2`);
|
|
504
484
|
const horizontalPadding = polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`);
|
|
@@ -506,19 +486,18 @@ const sizeStyles$6 = _ref => {
|
|
|
506
486
|
};
|
|
507
487
|
const StyledBaseNavItem = styled__default.default.div.attrs({
|
|
508
488
|
'data-garden-id': COMPONENT_ID$e,
|
|
509
|
-
'data-garden-version': '9.12.
|
|
489
|
+
'data-garden-version': '9.12.4'
|
|
510
490
|
}).withConfig({
|
|
511
491
|
displayName: "StyledBaseNavItem",
|
|
512
492
|
componentId: "sc-zvo43f-0"
|
|
513
493
|
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:outline-color 0.1s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;", ";"], sizeStyles$6);
|
|
514
494
|
|
|
515
495
|
const COMPONENT_ID$d = 'chrome.logo_nav_list_item';
|
|
516
|
-
const colorStyles$4 =
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
} = _ref;
|
|
496
|
+
const colorStyles$4 = ({
|
|
497
|
+
theme,
|
|
498
|
+
$hue,
|
|
499
|
+
$product
|
|
500
|
+
}) => {
|
|
522
501
|
const fillColor = reactTheming.getColor({
|
|
523
502
|
theme,
|
|
524
503
|
variable: 'foreground.default'
|
|
@@ -528,7 +507,7 @@ const colorStyles$4 = _ref => {
|
|
|
528
507
|
};
|
|
529
508
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
530
509
|
'data-garden-id': COMPONENT_ID$d,
|
|
531
|
-
'data-garden-version': '9.12.
|
|
510
|
+
'data-garden-version': '9.12.4'
|
|
532
511
|
}).withConfig({
|
|
533
512
|
displayName: "StyledLogoNavItem",
|
|
534
513
|
componentId: "sc-saaydx-0"
|
|
@@ -537,34 +516,32 @@ const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
|
537
516
|
const COMPONENT_ID$c = 'chrome.brandmark_nav_list_item';
|
|
538
517
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
539
518
|
'data-garden-id': COMPONENT_ID$c,
|
|
540
|
-
'data-garden-version': '9.12.
|
|
519
|
+
'data-garden-version': '9.12.4'
|
|
541
520
|
}).withConfig({
|
|
542
521
|
displayName: "StyledBrandmarkNavItem",
|
|
543
522
|
componentId: "sc-8kynd4-0"
|
|
544
523
|
})(["order:1;opacity:", ";margin-top:auto;min-height:0;"], props => props.theme.opacity[400]);
|
|
545
524
|
|
|
546
525
|
const COMPONENT_ID$b = 'chrome.nav_item_icon';
|
|
547
|
-
const sizeStyles$5 =
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
} = _ref;
|
|
526
|
+
const sizeStyles$5 = ({
|
|
527
|
+
theme
|
|
528
|
+
}) => {
|
|
551
529
|
const size = theme.iconSizes.lg;
|
|
552
530
|
return styled.css(["width:", ";height:", ";"], size, size);
|
|
553
531
|
};
|
|
554
532
|
const StyledNavItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
555
533
|
'data-garden-id': COMPONENT_ID$b,
|
|
556
|
-
'data-garden-version': '9.12.
|
|
534
|
+
'data-garden-version': '9.12.4'
|
|
557
535
|
}).withConfig({
|
|
558
536
|
displayName: "StyledNavItemIcon",
|
|
559
537
|
componentId: "sc-7w9rpt-0"
|
|
560
538
|
})(["align-self:flex-start;order:0;border-radius:", ";", ";", ";"], props => props.theme.borderRadii.md, sizeStyles$5, reactTheming.componentStyles);
|
|
561
539
|
|
|
562
540
|
const COMPONENT_ID$a = 'chrome.nav_button';
|
|
563
|
-
const colorStyles$3 =
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
} = _ref;
|
|
541
|
+
const colorStyles$3 = ({
|
|
542
|
+
theme,
|
|
543
|
+
$hue
|
|
544
|
+
}) => {
|
|
568
545
|
const activeBackgroundColor = reactTheming.getColor({
|
|
569
546
|
theme,
|
|
570
547
|
dark: {
|
|
@@ -619,17 +596,16 @@ const colorStyles$3 = _ref => {
|
|
|
619
596
|
}
|
|
620
597
|
}), activeBackgroundColor, currentBackgroundColor);
|
|
621
598
|
};
|
|
622
|
-
const sizeStyles$4 =
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
} = _ref2;
|
|
599
|
+
const sizeStyles$4 = ({
|
|
600
|
+
theme,
|
|
601
|
+
$isExpanded
|
|
602
|
+
}) => {
|
|
627
603
|
const iconMargin = $isExpanded ? `0 ${polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`)}` : undefined;
|
|
628
604
|
return styled.css(["margin:0;border:none;box-sizing:border-box;min-width:0;font-size:inherit;", "{margin:", ";}"], StyledNavItemIcon, iconMargin);
|
|
629
605
|
};
|
|
630
606
|
const StyledNavButton = styled__default.default(StyledBaseNavItem).attrs({
|
|
631
607
|
'data-garden-id': COMPONENT_ID$a,
|
|
632
|
-
'data-garden-version': '9.12.
|
|
608
|
+
'data-garden-version': '9.12.4',
|
|
633
609
|
as: 'button'
|
|
634
610
|
}).withConfig({
|
|
635
611
|
displayName: "StyledNavButton",
|
|
@@ -637,12 +613,11 @@ const StyledNavButton = styled__default.default(StyledBaseNavItem).attrs({
|
|
|
637
613
|
})(["flex:1;justify-content:", ";cursor:pointer;text-align:", ";text-decoration:none;", ";&:hover,&:focus{text-decoration:none;}&[aria-current='true']{cursor:default;}", ";", ";"], props => props.$isExpanded && 'start', props => props.$isExpanded && 'inherit', sizeStyles$4, colorStyles$3, reactTheming.componentStyles);
|
|
638
614
|
|
|
639
615
|
const COMPONENT_ID$9 = 'chrome.nav_item_text';
|
|
640
|
-
const sizeStyles$3 =
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
} = _ref;
|
|
616
|
+
const sizeStyles$3 = ({
|
|
617
|
+
theme,
|
|
618
|
+
$isExpanded,
|
|
619
|
+
$isWrapped
|
|
620
|
+
}) => {
|
|
646
621
|
const clip = $isExpanded ? 'auto' : undefined;
|
|
647
622
|
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, theme.fontSizes.md);
|
|
648
623
|
const margin = $isExpanded ? `0 ${polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`)}` : undefined;
|
|
@@ -653,18 +628,17 @@ const sizeStyles$3 = _ref => {
|
|
|
653
628
|
};
|
|
654
629
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
655
630
|
'data-garden-id': COMPONENT_ID$9,
|
|
656
|
-
'data-garden-version': '9.12.
|
|
631
|
+
'data-garden-version': '9.12.4'
|
|
657
632
|
}).withConfig({
|
|
658
633
|
displayName: "StyledNavItemText",
|
|
659
634
|
componentId: "sc-13m84xl-0"
|
|
660
635
|
})(["position:absolute;order:1;overflow:hidden;", " > &&{position:", ";flex:", ";text-overflow:", ";}", ";", ";"], StyledNavButton, props => props.$isExpanded ? 'static' : undefined, props => props.$isExpanded ? 1 : undefined, props => props.$isExpanded ? 'ellipsis' : undefined, sizeStyles$3, reactTheming.componentStyles);
|
|
661
636
|
|
|
662
637
|
const COMPONENT_ID$8 = 'chrome.sheet';
|
|
663
|
-
const colorStyles$2 =
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
} = _ref;
|
|
638
|
+
const colorStyles$2 = ({
|
|
639
|
+
theme,
|
|
640
|
+
$isOpen
|
|
641
|
+
}) => {
|
|
668
642
|
const backgroundColor = reactTheming.getColor({
|
|
669
643
|
theme,
|
|
670
644
|
variable: 'background.default'
|
|
@@ -675,13 +649,12 @@ const colorStyles$2 = _ref => {
|
|
|
675
649
|
}) : 'transparent';
|
|
676
650
|
return styled.css(["border-color:", ";background-color:", ";"], borderColor, backgroundColor);
|
|
677
651
|
};
|
|
678
|
-
const sizeStyles$2 =
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
} = _ref2;
|
|
652
|
+
const sizeStyles$2 = ({
|
|
653
|
+
theme,
|
|
654
|
+
$isOpen,
|
|
655
|
+
$placement,
|
|
656
|
+
$size
|
|
657
|
+
}) => {
|
|
685
658
|
const width = $isOpen ? $size : 0;
|
|
686
659
|
const fontSize = theme.fontSizes.md;
|
|
687
660
|
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
|
|
@@ -696,20 +669,19 @@ const sizeStyles$2 = _ref2 => {
|
|
|
696
669
|
};
|
|
697
670
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
698
671
|
'data-garden-id': COMPONENT_ID$8,
|
|
699
|
-
'data-garden-version': '9.12.
|
|
672
|
+
'data-garden-version': '9.12.4'
|
|
700
673
|
}).withConfig({
|
|
701
674
|
displayName: "StyledSheet",
|
|
702
675
|
componentId: "sc-dx8ijk-0"
|
|
703
676
|
})(["display:flex;order:1;transition:", ";overflow:hidden;", ";&:focus{outline:none;}", ";", ";"], props => props.$isAnimated && 'width 250ms ease-in-out', sizeStyles$2, colorStyles$2, reactTheming.componentStyles);
|
|
704
677
|
|
|
705
678
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
706
|
-
const transformStyles =
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
} = _ref;
|
|
679
|
+
const transformStyles = ({
|
|
680
|
+
theme,
|
|
681
|
+
$isAnimated,
|
|
682
|
+
$isOpen,
|
|
683
|
+
$placement
|
|
684
|
+
}) => {
|
|
713
685
|
const transition = $isAnimated ? 'transform 250ms ease-in-out' : undefined;
|
|
714
686
|
let transform;
|
|
715
687
|
if ($isOpen) {
|
|
@@ -723,7 +695,7 @@ const transformStyles = _ref => {
|
|
|
723
695
|
};
|
|
724
696
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
725
697
|
'data-garden-id': COMPONENT_ID$7,
|
|
726
|
-
'data-garden-version': '9.12.
|
|
698
|
+
'data-garden-version': '9.12.4'
|
|
727
699
|
}).withConfig({
|
|
728
700
|
displayName: "StyledSheetWrapper",
|
|
729
701
|
componentId: "sc-f6x9zb-0"
|
|
@@ -732,7 +704,7 @@ const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
|
732
704
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
733
705
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
734
706
|
'data-garden-id': COMPONENT_ID$6,
|
|
735
|
-
'data-garden-version': '9.12.
|
|
707
|
+
'data-garden-version': '9.12.4'
|
|
736
708
|
}).withConfig({
|
|
737
709
|
displayName: "StyledSheetTitle",
|
|
738
710
|
componentId: "sc-1gogk75-0"
|
|
@@ -744,7 +716,7 @@ const StyledSheetTitle = styled__default.default.div.attrs({
|
|
|
744
716
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
745
717
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
746
718
|
'data-garden-id': COMPONENT_ID$5,
|
|
747
|
-
'data-garden-version': '9.12.
|
|
719
|
+
'data-garden-version': '9.12.4'
|
|
748
720
|
}).withConfig({
|
|
749
721
|
displayName: "StyledSheetDescription",
|
|
750
722
|
componentId: "sc-1puglb6-0"
|
|
@@ -756,52 +728,49 @@ const StyledSheetDescription = styled__default.default.div.attrs({
|
|
|
756
728
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
757
729
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
758
730
|
'data-garden-id': COMPONENT_ID$4,
|
|
759
|
-
'data-garden-version': '9.12.
|
|
731
|
+
'data-garden-version': '9.12.4'
|
|
760
732
|
}).withConfig({
|
|
761
733
|
displayName: "StyledSheetBody",
|
|
762
734
|
componentId: "sc-bt4eoj-0"
|
|
763
735
|
})(["flex:1;overflow-y:auto;padding:", "px;color-scheme:only ", ";", ";"], props => props.theme.space.base * 5, p => p.theme.colors.base, reactTheming.componentStyles);
|
|
764
736
|
|
|
765
737
|
const COMPONENT_ID$3 = 'chrome.sheet_close';
|
|
766
|
-
const positionStyles =
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
} = _ref;
|
|
738
|
+
const positionStyles = ({
|
|
739
|
+
theme
|
|
740
|
+
}) => {
|
|
770
741
|
const top = `${theme.space.base * 2.5}px`;
|
|
771
742
|
const position = `${theme.space.base * 2}px`;
|
|
772
743
|
return styled.css(["top:", ";", ":", ";"], top, theme.rtl ? 'left' : 'right', position);
|
|
773
744
|
};
|
|
774
745
|
const StyledSheetClose = styled__default.default(reactButtons.IconButton).attrs({
|
|
775
746
|
'data-garden-id': COMPONENT_ID$3,
|
|
776
|
-
'data-garden-version': '9.12.
|
|
747
|
+
'data-garden-version': '9.12.4'
|
|
777
748
|
}).withConfig({
|
|
778
749
|
displayName: "StyledSheetClose",
|
|
779
750
|
componentId: "sc-1ab02oq-0"
|
|
780
751
|
})(["position:absolute;", ";", ";"], positionStyles, reactTheming.componentStyles);
|
|
781
752
|
|
|
782
753
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
783
|
-
const colorStyles$1 =
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
} = _ref;
|
|
754
|
+
const colorStyles$1 = ({
|
|
755
|
+
theme
|
|
756
|
+
}) => {
|
|
787
757
|
const borderColor = reactTheming.getColor({
|
|
788
758
|
theme,
|
|
789
759
|
variable: 'border.subtle'
|
|
790
760
|
});
|
|
791
761
|
return styled.css(["border-top-color:", ";"], borderColor);
|
|
792
762
|
};
|
|
793
|
-
const sizeStyles$1 =
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
} = _ref2;
|
|
763
|
+
const sizeStyles$1 = ({
|
|
764
|
+
theme,
|
|
765
|
+
$isCompact
|
|
766
|
+
}) => {
|
|
798
767
|
const border = theme.borders.sm;
|
|
799
768
|
const padding = `${theme.space.base * ($isCompact ? 2.5 : 5)}px`;
|
|
800
769
|
return styled.css(["border-top:", ";padding:", ";"], border, padding);
|
|
801
770
|
};
|
|
802
771
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
803
772
|
'data-garden-id': COMPONENT_ID$2,
|
|
804
|
-
'data-garden-version': '9.12.
|
|
773
|
+
'data-garden-version': '9.12.4'
|
|
805
774
|
}).withConfig({
|
|
806
775
|
displayName: "StyledSheetFooter",
|
|
807
776
|
componentId: "sc-2cktos-0"
|
|
@@ -810,28 +779,26 @@ const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
|
810
779
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
811
780
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
812
781
|
'data-garden-id': COMPONENT_ID$1,
|
|
813
|
-
'data-garden-version': '9.12.
|
|
782
|
+
'data-garden-version': '9.12.4'
|
|
814
783
|
}).withConfig({
|
|
815
784
|
displayName: "StyledSheetFooterItem",
|
|
816
785
|
componentId: "sc-r9ixh-0"
|
|
817
786
|
})(["", " ", ";"], props => `margin-${props.theme.rtl ? 'right' : 'left'}: ${props.theme.space.base * 5}px;`, reactTheming.componentStyles);
|
|
818
787
|
|
|
819
788
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
820
|
-
const colorStyles =
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
} = _ref;
|
|
789
|
+
const colorStyles = ({
|
|
790
|
+
theme
|
|
791
|
+
}) => {
|
|
824
792
|
const borderColor = reactTheming.getColor({
|
|
825
793
|
theme,
|
|
826
794
|
variable: 'border.subtle'
|
|
827
795
|
});
|
|
828
796
|
return styled.css(["border-bottom-color:", ";"], borderColor);
|
|
829
797
|
};
|
|
830
|
-
const sizeStyles =
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
} = _ref2;
|
|
798
|
+
const sizeStyles = ({
|
|
799
|
+
theme,
|
|
800
|
+
$isCloseButtonPresent
|
|
801
|
+
}) => {
|
|
835
802
|
const border = theme.borders.sm;
|
|
836
803
|
let padding = `${theme.space.base * 5}px`;
|
|
837
804
|
if ($isCloseButtonPresent) {
|
|
@@ -842,21 +809,20 @@ const sizeStyles = _ref2 => {
|
|
|
842
809
|
};
|
|
843
810
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
844
811
|
'data-garden-id': COMPONENT_ID,
|
|
845
|
-
'data-garden-version': '9.12.
|
|
812
|
+
'data-garden-version': '9.12.4'
|
|
846
813
|
}).withConfig({
|
|
847
814
|
displayName: "StyledSheetHeader",
|
|
848
815
|
componentId: "sc-o2ry8i-0"
|
|
849
816
|
})(["", ";", ";", ";"], sizeStyles, colorStyles, reactTheming.componentStyles);
|
|
850
817
|
|
|
851
|
-
const HeaderItem = React__namespace.default.forwardRef((
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
} = _ref;
|
|
818
|
+
const HeaderItem = React__namespace.default.forwardRef(({
|
|
819
|
+
hasLogo,
|
|
820
|
+
isRound,
|
|
821
|
+
maxX,
|
|
822
|
+
maxY,
|
|
823
|
+
product,
|
|
824
|
+
...other
|
|
825
|
+
}, ref) => {
|
|
860
826
|
if (hasLogo) {
|
|
861
827
|
return React__namespace.default.createElement(StyledLogoHeaderItem, Object.assign({
|
|
862
828
|
ref: ref,
|
|
@@ -882,44 +848,35 @@ HeaderItem.propTypes = {
|
|
|
882
848
|
hasLogo: PropTypes__default.default.bool
|
|
883
849
|
};
|
|
884
850
|
|
|
885
|
-
const HeaderItemIcon =
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
} = _ref;
|
|
890
|
-
return React__namespace.default.createElement(StyledHeaderItemIcon, props, children);
|
|
891
|
-
};
|
|
851
|
+
const HeaderItemIcon = ({
|
|
852
|
+
children,
|
|
853
|
+
...props
|
|
854
|
+
}) => React__namespace.default.createElement(StyledHeaderItemIcon, props, children);
|
|
892
855
|
HeaderItemIcon.displayName = 'Header.ItemIcon';
|
|
893
856
|
|
|
894
|
-
const HeaderItemText = React__namespace.default.forwardRef((
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
$isClipped: isClipped
|
|
902
|
-
}, other));
|
|
903
|
-
});
|
|
857
|
+
const HeaderItemText = React__namespace.default.forwardRef(({
|
|
858
|
+
isClipped,
|
|
859
|
+
...other
|
|
860
|
+
}, ref) => React__namespace.default.createElement(StyledHeaderItemText, Object.assign({
|
|
861
|
+
ref: ref,
|
|
862
|
+
$isClipped: isClipped
|
|
863
|
+
}, other)));
|
|
904
864
|
HeaderItemText.displayName = 'Header.ItemText';
|
|
905
865
|
HeaderItemText.propTypes = {
|
|
906
866
|
isClipped: PropTypes__default.default.bool
|
|
907
867
|
};
|
|
908
868
|
|
|
909
|
-
const HeaderItemWrapper = React__namespace.default.forwardRef((
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
$maxY: maxY
|
|
921
|
-
}, other));
|
|
922
|
-
});
|
|
869
|
+
const HeaderItemWrapper = React__namespace.default.forwardRef(({
|
|
870
|
+
isRound,
|
|
871
|
+
maxX,
|
|
872
|
+
maxY,
|
|
873
|
+
...other
|
|
874
|
+
}, ref) => React__namespace.default.createElement(StyledHeaderItemWrapper, Object.assign({
|
|
875
|
+
ref: ref,
|
|
876
|
+
$isRound: isRound,
|
|
877
|
+
$maxX: maxX,
|
|
878
|
+
$maxY: maxY
|
|
879
|
+
}, other)));
|
|
923
880
|
HeaderItemWrapper.displayName = 'Header.ItemWrapper';
|
|
924
881
|
|
|
925
882
|
const FooterItem$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooterItem, Object.assign({
|
|
@@ -946,14 +903,13 @@ const useNavListContext = () => {
|
|
|
946
903
|
return React.useContext(NavListContext);
|
|
947
904
|
};
|
|
948
905
|
|
|
949
|
-
const NavItem = React__namespace.default.forwardRef((
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
} = _ref;
|
|
906
|
+
const NavItem = React__namespace.default.forwardRef(({
|
|
907
|
+
hasLogo,
|
|
908
|
+
hasBrandmark,
|
|
909
|
+
product,
|
|
910
|
+
isCurrent,
|
|
911
|
+
...other
|
|
912
|
+
}, ref) => {
|
|
957
913
|
const {
|
|
958
914
|
hue
|
|
959
915
|
} = useChromeContext();
|
|
@@ -994,20 +950,16 @@ NavItem.propTypes = {
|
|
|
994
950
|
hasBrandmark: PropTypes__default.default.bool
|
|
995
951
|
};
|
|
996
952
|
|
|
997
|
-
const NavItemIcon =
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
} = _ref;
|
|
1002
|
-
return React__namespace.default.createElement(StyledNavItemIcon, props, children);
|
|
1003
|
-
};
|
|
953
|
+
const NavItemIcon = ({
|
|
954
|
+
children,
|
|
955
|
+
...props
|
|
956
|
+
}) => React__namespace.default.createElement(StyledNavItemIcon, props, children);
|
|
1004
957
|
NavItemIcon.displayName = 'Nav.ItemIcon';
|
|
1005
958
|
|
|
1006
|
-
const NavItemText = React__namespace.default.forwardRef((
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
} = _ref;
|
|
959
|
+
const NavItemText = React__namespace.default.forwardRef(({
|
|
960
|
+
isWrapped,
|
|
961
|
+
...other
|
|
962
|
+
}, ref) => {
|
|
1011
963
|
const {
|
|
1012
964
|
isExpanded
|
|
1013
965
|
} = useNavContext();
|
|
@@ -1022,12 +974,11 @@ NavItemText.propTypes = {
|
|
|
1022
974
|
isWrapped: PropTypes__default.default.bool
|
|
1023
975
|
};
|
|
1024
976
|
|
|
1025
|
-
const Chrome = React__namespace.default.forwardRef((
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
} = _ref;
|
|
977
|
+
const Chrome = React__namespace.default.forwardRef(({
|
|
978
|
+
hue,
|
|
979
|
+
isFluid,
|
|
980
|
+
...props
|
|
981
|
+
}, ref) => {
|
|
1031
982
|
const theme = React.useContext(styled.ThemeContext) || reactTheming.DEFAULT_THEME;
|
|
1032
983
|
const isLightMemoized = React.useMemo(() => {
|
|
1033
984
|
if (hue) {
|
|
@@ -1070,19 +1021,16 @@ Chrome.propTypes = {
|
|
|
1070
1021
|
hue: PropTypes__default.default.string
|
|
1071
1022
|
};
|
|
1072
1023
|
|
|
1073
|
-
const SkipNav = React__namespace.default.forwardRef((
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
ref: ref
|
|
1084
|
-
}, props), React__namespace.default.createElement(StyledSkipNavIcon, null), children);
|
|
1085
|
-
});
|
|
1024
|
+
const SkipNav = React__namespace.default.forwardRef(({
|
|
1025
|
+
targetId,
|
|
1026
|
+
zIndex = 1,
|
|
1027
|
+
children,
|
|
1028
|
+
...props
|
|
1029
|
+
}, ref) => React__namespace.default.createElement(StyledSkipNav, Object.assign({
|
|
1030
|
+
href: `#${targetId}`,
|
|
1031
|
+
$zIndex: zIndex,
|
|
1032
|
+
ref: ref
|
|
1033
|
+
}, props), React__namespace.default.createElement(StyledSkipNavIcon, null), children));
|
|
1086
1034
|
SkipNav.displayName = 'SkipNav';
|
|
1087
1035
|
SkipNav.propTypes = {
|
|
1088
1036
|
targetId: PropTypes__default.default.string.isRequired,
|
|
@@ -1124,16 +1072,13 @@ const Main = React__namespace.default.forwardRef((props, ref) => React__namespac
|
|
|
1124
1072
|
}, props)));
|
|
1125
1073
|
Main.displayName = 'Main';
|
|
1126
1074
|
|
|
1127
|
-
const HeaderComponent = React__namespace.default.forwardRef((
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
$isStandalone: isStandalone
|
|
1135
|
-
}, other));
|
|
1136
|
-
});
|
|
1075
|
+
const HeaderComponent = React__namespace.default.forwardRef(({
|
|
1076
|
+
isStandalone,
|
|
1077
|
+
...other
|
|
1078
|
+
}, ref) => React__namespace.default.createElement(StyledHeader, Object.assign({
|
|
1079
|
+
ref: ref,
|
|
1080
|
+
$isStandalone: isStandalone
|
|
1081
|
+
}, other)));
|
|
1137
1082
|
HeaderComponent.displayName = 'Header';
|
|
1138
1083
|
HeaderComponent.propTypes = {
|
|
1139
1084
|
isStandalone: PropTypes__default.default.bool
|
|
@@ -1179,11 +1124,10 @@ const NavList = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1179
1124
|
});
|
|
1180
1125
|
NavList.displayName = 'Nav.List';
|
|
1181
1126
|
|
|
1182
|
-
const NavComponent = React__namespace.default.forwardRef((
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
} = _ref;
|
|
1127
|
+
const NavComponent = React__namespace.default.forwardRef(({
|
|
1128
|
+
isExpanded,
|
|
1129
|
+
...other
|
|
1130
|
+
}, ref) => {
|
|
1187
1131
|
const {
|
|
1188
1132
|
hue,
|
|
1189
1133
|
isLight
|
|
@@ -1224,13 +1168,12 @@ const useSheetContext = () => {
|
|
|
1224
1168
|
return React.useContext(SheetContext);
|
|
1225
1169
|
};
|
|
1226
1170
|
|
|
1227
|
-
function useFocusableMount(
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
} = _ref;
|
|
1171
|
+
function useFocusableMount({
|
|
1172
|
+
isMounted,
|
|
1173
|
+
focusOnMount,
|
|
1174
|
+
restoreFocus,
|
|
1175
|
+
targetRef
|
|
1176
|
+
}) {
|
|
1234
1177
|
const triggerRef = React.useRef();
|
|
1235
1178
|
React.useEffect(() => {
|
|
1236
1179
|
if (isMounted && focusOnMount && targetRef.current) {
|
|
@@ -1245,11 +1188,10 @@ function useFocusableMount(_ref) {
|
|
|
1245
1188
|
}, [isMounted, restoreFocus, triggerRef]);
|
|
1246
1189
|
}
|
|
1247
1190
|
|
|
1248
|
-
const SheetTitle = React.forwardRef((
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
} = _ref;
|
|
1191
|
+
const SheetTitle = React.forwardRef(({
|
|
1192
|
+
id,
|
|
1193
|
+
...props
|
|
1194
|
+
}, ref) => {
|
|
1253
1195
|
const {
|
|
1254
1196
|
titleId
|
|
1255
1197
|
} = useSheetContext();
|
|
@@ -1261,11 +1203,10 @@ const SheetTitle = React.forwardRef((_ref, ref) => {
|
|
|
1261
1203
|
SheetTitle.displayName = 'Sheet.Title';
|
|
1262
1204
|
const Title = SheetTitle;
|
|
1263
1205
|
|
|
1264
|
-
const SheetDescription = React.forwardRef((
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
} = _ref;
|
|
1206
|
+
const SheetDescription = React.forwardRef(({
|
|
1207
|
+
id,
|
|
1208
|
+
...props
|
|
1209
|
+
}, ref) => {
|
|
1269
1210
|
const {
|
|
1270
1211
|
descriptionId
|
|
1271
1212
|
} = useSheetContext();
|
|
@@ -1297,11 +1238,10 @@ const SheetBody = React.forwardRef((props, ref) => {
|
|
|
1297
1238
|
SheetBody.displayName = 'Sheet.Body';
|
|
1298
1239
|
const Body = SheetBody;
|
|
1299
1240
|
|
|
1300
|
-
const SheetFooter = React.forwardRef((
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
} = _ref;
|
|
1241
|
+
const SheetFooter = React.forwardRef(({
|
|
1242
|
+
isCompact,
|
|
1243
|
+
...other
|
|
1244
|
+
}, ref) => {
|
|
1305
1245
|
return React__namespace.default.createElement(StyledSheetFooter, Object.assign({
|
|
1306
1246
|
ref: ref,
|
|
1307
1247
|
$isCompact: isCompact
|
|
@@ -1351,18 +1291,17 @@ const SheetClose = React.forwardRef((props, ref) => {
|
|
|
1351
1291
|
SheetClose.displayName = 'Sheet.Close';
|
|
1352
1292
|
const Close = SheetClose;
|
|
1353
1293
|
|
|
1354
|
-
const SheetComponent = React__namespace.default.forwardRef((
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
} = _ref;
|
|
1294
|
+
const SheetComponent = React__namespace.default.forwardRef(({
|
|
1295
|
+
id,
|
|
1296
|
+
isOpen,
|
|
1297
|
+
isAnimated = true,
|
|
1298
|
+
focusOnMount,
|
|
1299
|
+
restoreFocus,
|
|
1300
|
+
placement = 'end',
|
|
1301
|
+
size = '380px',
|
|
1302
|
+
children,
|
|
1303
|
+
...props
|
|
1304
|
+
}, ref) => {
|
|
1366
1305
|
const sheetRef = React.useRef(null);
|
|
1367
1306
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1368
1307
|
const idPrefix = containerUtilities.useId(id);
|