@zendeskgarden/react-chrome 9.0.0 → 9.1.0
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/LICENSE.md +176 -0
- package/dist/esm/elements/SkipNav.js +1 -1
- package/dist/esm/elements/body/Content.js +1 -1
- package/dist/esm/elements/header/Header.js +10 -3
- package/dist/esm/elements/header/HeaderItem.js +11 -2
- package/dist/esm/elements/header/HeaderItemText.js +10 -3
- package/dist/esm/elements/nav/Nav.js +11 -7
- package/dist/esm/elements/nav/NavItem.js +4 -4
- package/dist/esm/elements/nav/NavItemText.js +8 -3
- package/dist/esm/elements/sheet/Sheet.js +9 -9
- package/dist/esm/elements/sheet/components/Footer.js +8 -3
- package/dist/esm/elements/sheet/components/Header.js +1 -1
- package/dist/esm/styled/StyledChrome.js +1 -1
- package/dist/esm/styled/StyledSkipNav.js +2 -2
- package/dist/esm/styled/StyledSkipNavIcon.js +1 -1
- package/dist/esm/styled/body/StyledBody.js +1 -1
- package/dist/esm/styled/body/StyledContent.js +3 -3
- package/dist/esm/styled/body/StyledMain.js +1 -1
- package/dist/esm/styled/footer/StyledFooter.js +1 -1
- package/dist/esm/styled/footer/StyledFooterItem.js +1 -1
- package/dist/esm/styled/header/StyledBaseHeaderItem.js +7 -7
- package/dist/esm/styled/header/StyledHeader.js +4 -4
- package/dist/esm/styled/header/StyledHeaderItem.js +5 -5
- package/dist/esm/styled/header/StyledHeaderItemIcon.js +1 -1
- package/dist/esm/styled/header/StyledHeaderItemText.js +2 -2
- package/dist/esm/styled/header/StyledHeaderItemWrapper.js +1 -1
- package/dist/esm/styled/header/StyledLogoHeaderItem.js +3 -3
- package/dist/esm/styled/nav/StyledBaseNavItem.js +1 -1
- package/dist/esm/styled/nav/StyledBrandmarkNavItem.js +1 -1
- package/dist/esm/styled/nav/StyledLogoNavItem.js +4 -4
- package/dist/esm/styled/nav/StyledNav.js +6 -6
- package/dist/esm/styled/nav/StyledNavButton.js +7 -7
- package/dist/esm/styled/nav/StyledNavItemIcon.js +1 -1
- package/dist/esm/styled/nav/StyledNavItemText.js +9 -9
- package/dist/esm/styled/nav/StyledNavList.js +1 -1
- package/dist/esm/styled/nav/StyledNavListItem.js +1 -1
- package/dist/esm/styled/sheet/StyledSheet.js +10 -10
- package/dist/esm/styled/sheet/StyledSheetBody.js +1 -1
- package/dist/esm/styled/sheet/StyledSheetClose.js +1 -1
- package/dist/esm/styled/sheet/StyledSheetDescription.js +1 -1
- package/dist/esm/styled/sheet/StyledSheetFooter.js +4 -4
- package/dist/esm/styled/sheet/StyledSheetFooterItem.js +1 -1
- package/dist/esm/styled/sheet/StyledSheetHeader.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetTitle.js +1 -1
- package/dist/esm/styled/sheet/StyledSheetWrapper.js +8 -8
- package/dist/index.cjs.js +169 -132
- package/dist/typings/styled/StyledSkipNav.d.ts +1 -1
- package/dist/typings/styled/body/StyledContent.d.ts +1 -1
- package/dist/typings/styled/header/StyledBaseHeaderItem.d.ts +3 -3
- package/dist/typings/styled/header/StyledHeader.d.ts +1 -1
- package/dist/typings/styled/header/StyledHeaderItemIcon.d.ts +1 -1
- package/dist/typings/styled/header/StyledHeaderItemText.d.ts +1 -1
- package/dist/typings/styled/header/StyledLogoHeaderItem.d.ts +1 -1
- package/dist/typings/styled/nav/StyledLogoNavItem.d.ts +2 -2
- package/dist/typings/styled/nav/StyledNav.d.ts +2 -2
- package/dist/typings/styled/nav/StyledNavButton.d.ts +2 -2
- package/dist/typings/styled/nav/StyledNavItemIcon.d.ts +1 -1
- package/dist/typings/styled/nav/StyledNavItemText.d.ts +2 -2
- package/dist/typings/styled/sheet/StyledSheet.d.ts +4 -4
- package/dist/typings/styled/sheet/StyledSheetFooter.d.ts +1 -1
- package/dist/typings/styled/sheet/StyledSheetHeader.d.ts +1 -1
- package/dist/typings/styled/sheet/StyledSheetWrapper.d.ts +4 -4
- package/package.json +6 -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.
|
|
50
|
+
'data-garden-version': '9.1.0'
|
|
51
51
|
}).withConfig({
|
|
52
52
|
displayName: "StyledChrome",
|
|
53
53
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -110,11 +110,11 @@ const sizeStyles$g = _ref2 => {
|
|
|
110
110
|
};
|
|
111
111
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
112
112
|
'data-garden-id': COMPONENT_ID$v,
|
|
113
|
-
'data-garden-version': '9.
|
|
113
|
+
'data-garden-version': '9.1.0'
|
|
114
114
|
}).withConfig({
|
|
115
115
|
displayName: "StyledSkipNav",
|
|
116
116
|
componentId: "sc-1tsro34-0"
|
|
117
|
-
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props
|
|
117
|
+
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.$zIndex, props => props.theme.borderRadii.md, sizeStyles$g, reactTheming.SELECTOR_FOCUS_VISIBLE, colorStyles$a, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
118
118
|
|
|
119
119
|
var _path$1;
|
|
120
120
|
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
@@ -143,7 +143,7 @@ const sizeStyles$f = _ref => {
|
|
|
143
143
|
};
|
|
144
144
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
145
145
|
'data-garden-id': COMPONENT_ID$u,
|
|
146
|
-
'data-garden-version': '9.
|
|
146
|
+
'data-garden-version': '9.1.0'
|
|
147
147
|
}).withConfig({
|
|
148
148
|
displayName: "StyledSkipNavIcon",
|
|
149
149
|
componentId: "sc-1ika5z4-0"
|
|
@@ -155,7 +155,7 @@ const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
|
155
155
|
const COMPONENT_ID$t = 'chrome.body';
|
|
156
156
|
const StyledBody = styled__default.default.div.attrs({
|
|
157
157
|
'data-garden-id': COMPONENT_ID$t,
|
|
158
|
-
'data-garden-version': '9.
|
|
158
|
+
'data-garden-version': '9.1.0'
|
|
159
159
|
}).withConfig({
|
|
160
160
|
displayName: "StyledBody",
|
|
161
161
|
componentId: "sc-c7h9kv-0"
|
|
@@ -168,16 +168,16 @@ const COMPONENT_ID$s = 'chrome.content';
|
|
|
168
168
|
const sizeStyles$e = _ref => {
|
|
169
169
|
let {
|
|
170
170
|
theme,
|
|
171
|
-
hasFooter
|
|
171
|
+
$hasFooter
|
|
172
172
|
} = _ref;
|
|
173
173
|
const fontSize = theme.fontSizes.md;
|
|
174
|
-
const height = hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(theme)} + ${getFooterHeight(theme)}`)})` : `calc(100% - ${getHeaderHeight(theme)})`;
|
|
174
|
+
const height = $hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(theme)} + ${getFooterHeight(theme)}`)})` : `calc(100% - ${getHeaderHeight(theme)})`;
|
|
175
175
|
const lineHeight = reactTheming.getLineHeight(theme.lineHeights.md, theme.fontSizes.md);
|
|
176
176
|
return styled.css(["height:", ";line-height:", ";font-size:", ";"], height, lineHeight, fontSize);
|
|
177
177
|
};
|
|
178
178
|
const StyledContent = styled__default.default.div.attrs({
|
|
179
179
|
'data-garden-id': COMPONENT_ID$s,
|
|
180
|
-
'data-garden-version': '9.
|
|
180
|
+
'data-garden-version': '9.1.0'
|
|
181
181
|
}).withConfig({
|
|
182
182
|
displayName: "StyledContent",
|
|
183
183
|
componentId: "sc-qcuzxn-0"
|
|
@@ -189,7 +189,7 @@ const StyledContent = styled__default.default.div.attrs({
|
|
|
189
189
|
const COMPONENT_ID$r = 'chrome.main';
|
|
190
190
|
const StyledMain = styled__default.default.main.attrs({
|
|
191
191
|
'data-garden-id': COMPONENT_ID$r,
|
|
192
|
-
'data-garden-version': '9.
|
|
192
|
+
'data-garden-version': '9.1.0'
|
|
193
193
|
}).withConfig({
|
|
194
194
|
displayName: "StyledMain",
|
|
195
195
|
componentId: "sc-t61cre-0"
|
|
@@ -224,7 +224,7 @@ const sizeStyles$d = _ref2 => {
|
|
|
224
224
|
};
|
|
225
225
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
226
226
|
'data-garden-id': COMPONENT_ID$q,
|
|
227
|
-
'data-garden-version': '9.
|
|
227
|
+
'data-garden-version': '9.1.0'
|
|
228
228
|
}).withConfig({
|
|
229
229
|
displayName: "StyledFooter",
|
|
230
230
|
componentId: "sc-v7lib2-0"
|
|
@@ -233,7 +233,7 @@ const StyledFooter = styled__default.default.footer.attrs({
|
|
|
233
233
|
const COMPONENT_ID$p = 'chrome.footer_item';
|
|
234
234
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
235
235
|
'data-garden-id': COMPONENT_ID$p,
|
|
236
|
-
'data-garden-version': '9.
|
|
236
|
+
'data-garden-version': '9.1.0'
|
|
237
237
|
}).withConfig({
|
|
238
238
|
displayName: "StyledFooterItem",
|
|
239
239
|
componentId: "sc-1cktm85-0"
|
|
@@ -250,7 +250,7 @@ const sizeStyles$c = _ref => {
|
|
|
250
250
|
};
|
|
251
251
|
const StyledHeaderItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
252
252
|
'data-garden-id': COMPONENT_ID$o,
|
|
253
|
-
'data-garden-version': '9.
|
|
253
|
+
'data-garden-version': '9.1.0'
|
|
254
254
|
}).withConfig({
|
|
255
255
|
displayName: "StyledHeaderItemIcon",
|
|
256
256
|
componentId: "sc-1jhhp6z-0"
|
|
@@ -260,18 +260,18 @@ const COMPONENT_ID$n = 'chrome.base_header_item';
|
|
|
260
260
|
const sizeStyles$b = _ref => {
|
|
261
261
|
let {
|
|
262
262
|
theme,
|
|
263
|
-
maxY,
|
|
264
|
-
isRound
|
|
263
|
+
$maxY,
|
|
264
|
+
$isRound
|
|
265
265
|
} = _ref;
|
|
266
266
|
const margin = `0 ${theme.space.base * 3}px`;
|
|
267
267
|
const size = getHeaderItemSize(theme);
|
|
268
|
-
const height = maxY ? '100%' : size;
|
|
268
|
+
const height = $maxY ? '100%' : size;
|
|
269
269
|
const lineHeight = reactTheming.getLineHeight(size, theme.fontSizes.md);
|
|
270
270
|
const padding = `0 ${theme.space.base * 0.75}px`;
|
|
271
271
|
let borderRadius;
|
|
272
|
-
if (isRound) {
|
|
272
|
+
if ($isRound) {
|
|
273
273
|
borderRadius = '100%';
|
|
274
|
-
} else if (maxY) {
|
|
274
|
+
} else if ($maxY) {
|
|
275
275
|
borderRadius = '0';
|
|
276
276
|
} else {
|
|
277
277
|
borderRadius = theme.borderRadii.md;
|
|
@@ -280,26 +280,26 @@ const sizeStyles$b = _ref => {
|
|
|
280
280
|
};
|
|
281
281
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
282
282
|
'data-garden-id': COMPONENT_ID$n,
|
|
283
|
-
'data-garden-version': '9.
|
|
283
|
+
'data-garden-version': '9.1.0'
|
|
284
284
|
}).withConfig({
|
|
285
285
|
displayName: "StyledBaseHeaderItem",
|
|
286
286
|
componentId: "sc-1qua7h6-0"
|
|
287
|
-
})(["display:inline-flex;position:relative;flex:", ";align-items:center;justify-content:", ";order:1;transition:box-shadow 0.1s ease-in-out,color 0.1s ease-in-out;z-index:0;border:none;background:transparent;text-decoration:none;white-space:nowrap;color:inherit;", ";", ";"], props => props
|
|
287
|
+
})(["display:inline-flex;position:relative;flex:", ";align-items:center;justify-content:", ";order:1;transition:box-shadow 0.1s ease-in-out,color 0.1s ease-in-out;z-index:0;border:none;background:transparent;text-decoration:none;white-space:nowrap;color:inherit;", ";", ";"], props => props.$maxX && '1', props => props.$maxX ? 'start' : 'center', sizeStyles$b, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
288
288
|
|
|
289
289
|
const COMPONENT_ID$m = 'chrome.header_item_text';
|
|
290
290
|
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
291
291
|
'data-garden-id': COMPONENT_ID$m,
|
|
292
|
-
'data-garden-version': '9.
|
|
292
|
+
'data-garden-version': '9.1.0'
|
|
293
293
|
}).withConfig({
|
|
294
294
|
displayName: "StyledHeaderItemText",
|
|
295
295
|
componentId: "sc-goz7la-0"
|
|
296
|
-
})(["margin:", ";", " ", ";"], props => `0 ${props.theme.space.base * 0.75}px`, props => props
|
|
296
|
+
})(["margin:", ";", " ", ";"], props => `0 ${props.theme.space.base * 0.75}px`, props => props.$isClipped && polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
297
297
|
|
|
298
298
|
const COMPONENT_ID$l = 'chrome.header_item';
|
|
299
299
|
const colorStyles$8 = _ref => {
|
|
300
300
|
let {
|
|
301
301
|
theme,
|
|
302
|
-
product
|
|
302
|
+
$product
|
|
303
303
|
} = _ref;
|
|
304
304
|
const borderColor = reactTheming.getColor({
|
|
305
305
|
theme,
|
|
@@ -309,7 +309,7 @@ const colorStyles$8 = _ref => {
|
|
|
309
309
|
theme,
|
|
310
310
|
variable: 'foreground.default'
|
|
311
311
|
});
|
|
312
|
-
const color = getProductColor(product, fill );
|
|
312
|
+
const color = getProductColor($product, fill );
|
|
313
313
|
return styled.css(["border-", "-color:", ";color:", ";fill:", ";"], theme.rtl ? 'left' : 'right', borderColor, color, fill);
|
|
314
314
|
};
|
|
315
315
|
const sizeStyles$a = _ref2 => {
|
|
@@ -325,7 +325,7 @@ const sizeStyles$a = _ref2 => {
|
|
|
325
325
|
};
|
|
326
326
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
327
327
|
'data-garden-id': COMPONENT_ID$l,
|
|
328
|
-
'data-garden-version': '9.
|
|
328
|
+
'data-garden-version': '9.1.0',
|
|
329
329
|
as: 'div'
|
|
330
330
|
}).withConfig({
|
|
331
331
|
displayName: "StyledLogoHeaderItem",
|
|
@@ -336,7 +336,7 @@ const COMPONENT_ID$k = 'chrome.header';
|
|
|
336
336
|
const colorStyles$7 = _ref => {
|
|
337
337
|
let {
|
|
338
338
|
theme,
|
|
339
|
-
isStandalone
|
|
339
|
+
$isStandalone
|
|
340
340
|
} = _ref;
|
|
341
341
|
const backgroundColor = reactTheming.getColor({
|
|
342
342
|
theme,
|
|
@@ -350,7 +350,7 @@ const colorStyles$7 = _ref => {
|
|
|
350
350
|
variable: 'shadow.small',
|
|
351
351
|
theme
|
|
352
352
|
});
|
|
353
|
-
const boxShadow = isStandalone ? theme.shadows.lg('0', `${theme.space.base * 2}px`, boxShadowColor) : undefined;
|
|
353
|
+
const boxShadow = $isStandalone ? theme.shadows.lg('0', `${theme.space.base * 2}px`, boxShadowColor) : undefined;
|
|
354
354
|
const foregroundColor = reactTheming.getColor({
|
|
355
355
|
theme,
|
|
356
356
|
variable: 'foreground.subtle'
|
|
@@ -369,17 +369,17 @@ const sizeStyles$9 = _ref2 => {
|
|
|
369
369
|
};
|
|
370
370
|
const StyledHeader = styled__default.default.header.attrs({
|
|
371
371
|
'data-garden-id': COMPONENT_ID$k,
|
|
372
|
-
'data-garden-version': '9.
|
|
372
|
+
'data-garden-version': '9.1.0'
|
|
373
373
|
}).withConfig({
|
|
374
374
|
displayName: "StyledHeader",
|
|
375
375
|
componentId: "sc-1cexpz-0"
|
|
376
|
-
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;", ";", ";", "{display:", ";}", ";"], props => props
|
|
376
|
+
})(["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', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
|
|
377
377
|
|
|
378
378
|
const COMPONENT_ID$j = 'chrome.header_item';
|
|
379
379
|
const colorStyles$6 = _ref => {
|
|
380
380
|
let {
|
|
381
381
|
theme,
|
|
382
|
-
maxY
|
|
382
|
+
$maxY
|
|
383
383
|
} = _ref;
|
|
384
384
|
const options = {
|
|
385
385
|
theme,
|
|
@@ -405,22 +405,22 @@ const colorStyles$6 = _ref => {
|
|
|
405
405
|
});
|
|
406
406
|
return styled.css(["&:hover,&:focus{color:inherit;}", ";&:hover ", ",&:hover ", "{color:", ";}&:active ", ",&:active ", "{color:", ";}"], reactTheming.focusStyles({
|
|
407
407
|
theme,
|
|
408
|
-
inset: maxY
|
|
408
|
+
inset: $maxY
|
|
409
409
|
}), StyledHeaderItemIcon, StyledHeaderItemText, hoverColor, StyledHeaderItemIcon, StyledHeaderItemText, activeColor);
|
|
410
410
|
};
|
|
411
411
|
const sizeStyles$8 = _ref2 => {
|
|
412
412
|
let {
|
|
413
413
|
theme,
|
|
414
|
-
isRound
|
|
414
|
+
$isRound
|
|
415
415
|
} = _ref2;
|
|
416
|
-
const iconBorderRadius = isRound ? '100px' : undefined;
|
|
416
|
+
const iconBorderRadius = $isRound ? '100px' : undefined;
|
|
417
417
|
const imageBorderRadius = polished.math(`${theme.borderRadii.md} - 1`);
|
|
418
418
|
const imageSize = polished.math(`${getHeaderItemSize(theme)} - ${theme.space.base * 2}`);
|
|
419
419
|
return styled.css(["img{margin:0;border-radius:", ";width:", ";height:", ";}", "{border-radius:", ";}"], imageBorderRadius, imageSize, imageSize, StyledHeaderItemIcon, iconBorderRadius);
|
|
420
420
|
};
|
|
421
421
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
422
422
|
'data-garden-id': COMPONENT_ID$j,
|
|
423
|
-
'data-garden-version': '9.
|
|
423
|
+
'data-garden-version': '9.1.0'
|
|
424
424
|
}).withConfig({
|
|
425
425
|
displayName: "StyledHeaderItem",
|
|
426
426
|
componentId: "sc-14sft6n-0"
|
|
@@ -429,7 +429,7 @@ const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
|
429
429
|
const COMPONENT_ID$i = 'chrome.header_item_wrapper';
|
|
430
430
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
431
431
|
'data-garden-id': COMPONENT_ID$i,
|
|
432
|
-
'data-garden-version': '9.
|
|
432
|
+
'data-garden-version': '9.1.0',
|
|
433
433
|
as: 'div'
|
|
434
434
|
}).withConfig({
|
|
435
435
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -440,12 +440,12 @@ const COMPONENT_ID$h = 'chrome.nav';
|
|
|
440
440
|
const colorStyles$5 = _ref => {
|
|
441
441
|
let {
|
|
442
442
|
theme,
|
|
443
|
-
hue
|
|
443
|
+
$hue
|
|
444
444
|
} = _ref;
|
|
445
|
-
const shade = hue === 'chromeHue' ? 900 : undefined;
|
|
445
|
+
const shade = $hue === 'chromeHue' ? 900 : undefined;
|
|
446
446
|
const backgroundColor = reactTheming.getColor({
|
|
447
447
|
theme,
|
|
448
|
-
hue,
|
|
448
|
+
hue: $hue,
|
|
449
449
|
shade
|
|
450
450
|
});
|
|
451
451
|
const foregroundColor = reactTheming.getColor({
|
|
@@ -462,15 +462,15 @@ const colorStyles$5 = _ref => {
|
|
|
462
462
|
const sizeStyles$7 = _ref2 => {
|
|
463
463
|
let {
|
|
464
464
|
theme,
|
|
465
|
-
isExpanded
|
|
465
|
+
$isExpanded
|
|
466
466
|
} = _ref2;
|
|
467
467
|
const fontSize = theme.fontSizes.md;
|
|
468
|
-
const width = isExpanded ? getNavWidthExpanded() : getNavWidth(theme);
|
|
468
|
+
const width = $isExpanded ? getNavWidthExpanded() : getNavWidth(theme);
|
|
469
469
|
return styled.css(["width:", ";font-size:", ";"], width, fontSize);
|
|
470
470
|
};
|
|
471
471
|
const StyledNav = styled__default.default.nav.attrs({
|
|
472
472
|
'data-garden-id': COMPONENT_ID$h,
|
|
473
|
-
'data-garden-version': '9.
|
|
473
|
+
'data-garden-version': '9.1.0'
|
|
474
474
|
}).withConfig({
|
|
475
475
|
displayName: "StyledNav",
|
|
476
476
|
componentId: "sc-6j462r-0"
|
|
@@ -479,7 +479,7 @@ const StyledNav = styled__default.default.nav.attrs({
|
|
|
479
479
|
const COMPONENT_ID$g = 'chrome.nav_list';
|
|
480
480
|
const StyledNavList = styled__default.default.ul.attrs({
|
|
481
481
|
'data-garden-id': COMPONENT_ID$g,
|
|
482
|
-
'data-garden-version': '9.
|
|
482
|
+
'data-garden-version': '9.1.0'
|
|
483
483
|
}).withConfig({
|
|
484
484
|
displayName: "StyledNavList",
|
|
485
485
|
componentId: "sc-1s0nkfb-0"
|
|
@@ -488,7 +488,7 @@ const StyledNavList = styled__default.default.ul.attrs({
|
|
|
488
488
|
const COMPONENT_ID$f = 'chrome.nav_list_item';
|
|
489
489
|
const StyledNavListItem = styled__default.default.li.attrs({
|
|
490
490
|
'data-garden-id': COMPONENT_ID$f,
|
|
491
|
-
'data-garden-version': '9.
|
|
491
|
+
'data-garden-version': '9.1.0'
|
|
492
492
|
}).withConfig({
|
|
493
493
|
displayName: "StyledNavListItem",
|
|
494
494
|
componentId: "sc-18cj2v7-0"
|
|
@@ -506,7 +506,7 @@ const sizeStyles$6 = _ref => {
|
|
|
506
506
|
};
|
|
507
507
|
const StyledBaseNavItem = styled__default.default.div.attrs({
|
|
508
508
|
'data-garden-id': COMPONENT_ID$e,
|
|
509
|
-
'data-garden-version': '9.
|
|
509
|
+
'data-garden-version': '9.1.0'
|
|
510
510
|
}).withConfig({
|
|
511
511
|
displayName: "StyledBaseNavItem",
|
|
512
512
|
componentId: "sc-zvo43f-0"
|
|
@@ -516,19 +516,19 @@ const COMPONENT_ID$d = 'chrome.logo_nav_list_item';
|
|
|
516
516
|
const colorStyles$4 = _ref => {
|
|
517
517
|
let {
|
|
518
518
|
theme,
|
|
519
|
-
hue,
|
|
520
|
-
product
|
|
519
|
+
$hue,
|
|
520
|
+
$product
|
|
521
521
|
} = _ref;
|
|
522
522
|
const fillColor = reactTheming.getColor({
|
|
523
523
|
theme,
|
|
524
524
|
variable: 'foreground.default'
|
|
525
525
|
});
|
|
526
|
-
const color = hue === 'chromeHue' ? getProductColor(product) : fillColor;
|
|
526
|
+
const color = $hue === 'chromeHue' ? getProductColor($product) : fillColor;
|
|
527
527
|
return styled.css(["color:", ";fill:", ";"], color, fillColor);
|
|
528
528
|
};
|
|
529
529
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
530
530
|
'data-garden-id': COMPONENT_ID$d,
|
|
531
|
-
'data-garden-version': '9.
|
|
531
|
+
'data-garden-version': '9.1.0'
|
|
532
532
|
}).withConfig({
|
|
533
533
|
displayName: "StyledLogoNavItem",
|
|
534
534
|
componentId: "sc-saaydx-0"
|
|
@@ -537,7 +537,7 @@ const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
|
537
537
|
const COMPONENT_ID$c = 'chrome.brandmark_nav_list_item';
|
|
538
538
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
539
539
|
'data-garden-id': COMPONENT_ID$c,
|
|
540
|
-
'data-garden-version': '9.
|
|
540
|
+
'data-garden-version': '9.1.0'
|
|
541
541
|
}).withConfig({
|
|
542
542
|
displayName: "StyledBrandmarkNavItem",
|
|
543
543
|
componentId: "sc-8kynd4-0"
|
|
@@ -553,7 +553,7 @@ const sizeStyles$5 = _ref => {
|
|
|
553
553
|
};
|
|
554
554
|
const StyledNavItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
555
555
|
'data-garden-id': COMPONENT_ID$b,
|
|
556
|
-
'data-garden-version': '9.
|
|
556
|
+
'data-garden-version': '9.1.0'
|
|
557
557
|
}).withConfig({
|
|
558
558
|
displayName: "StyledNavItemIcon",
|
|
559
559
|
componentId: "sc-7w9rpt-0"
|
|
@@ -563,7 +563,7 @@ const COMPONENT_ID$a = 'chrome.nav_button';
|
|
|
563
563
|
const colorStyles$3 = _ref => {
|
|
564
564
|
let {
|
|
565
565
|
theme,
|
|
566
|
-
hue
|
|
566
|
+
$hue
|
|
567
567
|
} = _ref;
|
|
568
568
|
const activeBackgroundColor = reactTheming.getColor({
|
|
569
569
|
theme,
|
|
@@ -575,9 +575,9 @@ const colorStyles$3 = _ref => {
|
|
|
575
575
|
},
|
|
576
576
|
transparency: theme.opacity[100]
|
|
577
577
|
});
|
|
578
|
-
const currentBackgroundColor = hue === 'chromeHue' ? reactTheming.getColor({
|
|
578
|
+
const currentBackgroundColor = $hue === 'chromeHue' ? reactTheming.getColor({
|
|
579
579
|
theme,
|
|
580
|
-
hue,
|
|
580
|
+
hue: $hue,
|
|
581
581
|
shade: 700
|
|
582
582
|
}) : reactTheming.getColor({
|
|
583
583
|
theme,
|
|
@@ -622,54 +622,54 @@ const colorStyles$3 = _ref => {
|
|
|
622
622
|
const sizeStyles$4 = _ref2 => {
|
|
623
623
|
let {
|
|
624
624
|
theme,
|
|
625
|
-
isExpanded
|
|
625
|
+
$isExpanded
|
|
626
626
|
} = _ref2;
|
|
627
|
-
const iconMargin = isExpanded ? `0 ${polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`)}` : undefined;
|
|
627
|
+
const iconMargin = $isExpanded ? `0 ${polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`)}` : undefined;
|
|
628
628
|
return styled.css(["margin:0;border:none;box-sizing:border-box;min-width:0;font-size:inherit;", "{margin:", ";}"], StyledNavItemIcon, iconMargin);
|
|
629
629
|
};
|
|
630
630
|
const StyledNavButton = styled__default.default(StyledBaseNavItem).attrs({
|
|
631
631
|
'data-garden-id': COMPONENT_ID$a,
|
|
632
|
-
'data-garden-version': '9.
|
|
632
|
+
'data-garden-version': '9.1.0',
|
|
633
633
|
as: 'button'
|
|
634
634
|
}).withConfig({
|
|
635
635
|
displayName: "StyledNavButton",
|
|
636
636
|
componentId: "sc-f5ux3-0"
|
|
637
|
-
})(["flex:1;justify-content:", ";cursor:pointer;text-align:", ";text-decoration:none;", ";&:hover,&:focus{text-decoration:none;}&[aria-current='true']{cursor:default;}", ";", ";"], props => props
|
|
637
|
+
})(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
638
638
|
|
|
639
639
|
const COMPONENT_ID$9 = 'chrome.nav_item_text';
|
|
640
640
|
const sizeStyles$3 = _ref => {
|
|
641
641
|
let {
|
|
642
642
|
theme,
|
|
643
|
-
isExpanded,
|
|
644
|
-
isWrapped
|
|
643
|
+
$isExpanded,
|
|
644
|
+
$isWrapped
|
|
645
645
|
} = _ref;
|
|
646
|
-
const clip = isExpanded ? 'auto' : undefined;
|
|
646
|
+
const clip = $isExpanded ? 'auto' : undefined;
|
|
647
647
|
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, theme.fontSizes.md);
|
|
648
|
-
const margin = isExpanded ? `0 ${polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`)}` : undefined;
|
|
649
|
-
const width = isExpanded ? 'auto' : undefined;
|
|
650
|
-
const height = isExpanded ? 'auto' : undefined;
|
|
651
|
-
const whiteSpace = isWrapped ? undefined : 'nowrap';
|
|
648
|
+
const margin = $isExpanded ? `0 ${polished.math(`(${getNavWidth(theme)} - ${theme.iconSizes.lg}) / 4`)}` : undefined;
|
|
649
|
+
const width = $isExpanded ? 'auto' : undefined;
|
|
650
|
+
const height = $isExpanded ? 'auto' : undefined;
|
|
651
|
+
const whiteSpace = $isWrapped ? undefined : 'nowrap';
|
|
652
652
|
return styled.css(["clip:rect(1px,1px,1px,1px);margin:", ";width:1px;height:1px;line-height:", ";white-space:", ";", " > &&{clip:", ";width:", ";height:", ";}"], margin, lineHeight, whiteSpace, StyledNavButton, clip, width, height);
|
|
653
653
|
};
|
|
654
654
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
655
655
|
'data-garden-id': COMPONENT_ID$9,
|
|
656
|
-
'data-garden-version': '9.
|
|
656
|
+
'data-garden-version': '9.1.0'
|
|
657
657
|
}).withConfig({
|
|
658
658
|
displayName: "StyledNavItemText",
|
|
659
659
|
componentId: "sc-13m84xl-0"
|
|
660
|
-
})(["position:absolute;order:1;overflow:hidden;", " > &&{position:", ";flex:", ";text-overflow:", ";}", ";", ";"], StyledNavButton, props => props
|
|
660
|
+
})(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
661
661
|
|
|
662
662
|
const COMPONENT_ID$8 = 'chrome.sheet';
|
|
663
663
|
const colorStyles$2 = _ref => {
|
|
664
664
|
let {
|
|
665
665
|
theme,
|
|
666
|
-
isOpen
|
|
666
|
+
$isOpen
|
|
667
667
|
} = _ref;
|
|
668
668
|
const backgroundColor = reactTheming.getColor({
|
|
669
669
|
theme,
|
|
670
670
|
variable: 'background.default'
|
|
671
671
|
});
|
|
672
|
-
const borderColor = isOpen ? reactTheming.getColor({
|
|
672
|
+
const borderColor = $isOpen ? reactTheming.getColor({
|
|
673
673
|
theme,
|
|
674
674
|
variable: 'border.default'
|
|
675
675
|
}) : 'transparent';
|
|
@@ -678,16 +678,16 @@ const colorStyles$2 = _ref => {
|
|
|
678
678
|
const sizeStyles$2 = _ref2 => {
|
|
679
679
|
let {
|
|
680
680
|
theme,
|
|
681
|
-
isOpen,
|
|
682
|
-
placement,
|
|
683
|
-
size
|
|
681
|
+
$isOpen,
|
|
682
|
+
$placement,
|
|
683
|
+
$size
|
|
684
684
|
} = _ref2;
|
|
685
|
-
const width = isOpen ? size : 0;
|
|
685
|
+
const width = $isOpen ? $size : 0;
|
|
686
686
|
const fontSize = theme.fontSizes.md;
|
|
687
687
|
const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
|
|
688
|
-
const border = isOpen ? theme.borders.sm : 'none';
|
|
688
|
+
const border = $isOpen ? theme.borders.sm : 'none';
|
|
689
689
|
let borderProperty;
|
|
690
|
-
if (placement === 'start') {
|
|
690
|
+
if ($placement === 'start') {
|
|
691
691
|
borderProperty = `border-${theme.rtl ? 'left' : 'right'}`;
|
|
692
692
|
} else {
|
|
693
693
|
borderProperty = `border-${theme.rtl ? 'right' : 'left'}`;
|
|
@@ -696,25 +696,25 @@ const sizeStyles$2 = _ref2 => {
|
|
|
696
696
|
};
|
|
697
697
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
698
698
|
'data-garden-id': COMPONENT_ID$8,
|
|
699
|
-
'data-garden-version': '9.
|
|
699
|
+
'data-garden-version': '9.1.0'
|
|
700
700
|
}).withConfig({
|
|
701
701
|
displayName: "StyledSheet",
|
|
702
702
|
componentId: "sc-dx8ijk-0"
|
|
703
|
-
})(["display:flex;order:1;transition:", ";overflow:hidden;", ";&:focus{outline:none;}", ";", ";"], props => props
|
|
703
|
+
})(["display:flex;order:1;transition:", ";overflow:hidden;", ";&:focus{outline:none;}", ";", ";"], props => props.$isAnimated && 'width 250ms ease-in-out', sizeStyles$2, colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
704
704
|
|
|
705
705
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
706
706
|
const transformStyles = _ref => {
|
|
707
707
|
let {
|
|
708
708
|
theme,
|
|
709
|
-
isAnimated,
|
|
710
|
-
isOpen,
|
|
711
|
-
placement
|
|
709
|
+
$isAnimated,
|
|
710
|
+
$isOpen,
|
|
711
|
+
$placement
|
|
712
712
|
} = _ref;
|
|
713
|
-
const transition = isAnimated ? 'transform 250ms ease-in-out' : undefined;
|
|
713
|
+
const transition = $isAnimated ? 'transform 250ms ease-in-out' : undefined;
|
|
714
714
|
let transform;
|
|
715
|
-
if (isOpen) {
|
|
715
|
+
if ($isOpen) {
|
|
716
716
|
transform = 'translateX(0)';
|
|
717
|
-
} else if (placement === 'start') {
|
|
717
|
+
} else if ($placement === 'start') {
|
|
718
718
|
transform = `translateX(${theme.rtl ? 100 : -100}%)`;
|
|
719
719
|
} else {
|
|
720
720
|
transform = `translateX(${theme.rtl ? -100 : 100}%)`;
|
|
@@ -723,16 +723,16 @@ const transformStyles = _ref => {
|
|
|
723
723
|
};
|
|
724
724
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
725
725
|
'data-garden-id': COMPONENT_ID$7,
|
|
726
|
-
'data-garden-version': '9.
|
|
726
|
+
'data-garden-version': '9.1.0'
|
|
727
727
|
}).withConfig({
|
|
728
728
|
displayName: "StyledSheetWrapper",
|
|
729
729
|
componentId: "sc-f6x9zb-0"
|
|
730
|
-
})(["display:flex;position:relative;flex-direction:column;min-width:", ";", ";", ";"], props => props
|
|
730
|
+
})(["display:flex;position:relative;flex-direction:column;min-width:", ";", ";", ";"], props => props.$size, transformStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
|
|
731
731
|
|
|
732
732
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
733
733
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
734
734
|
'data-garden-id': COMPONENT_ID$6,
|
|
735
|
-
'data-garden-version': '9.
|
|
735
|
+
'data-garden-version': '9.1.0'
|
|
736
736
|
}).withConfig({
|
|
737
737
|
displayName: "StyledSheetTitle",
|
|
738
738
|
componentId: "sc-1gogk75-0"
|
|
@@ -744,7 +744,7 @@ const StyledSheetTitle = styled__default.default.div.attrs({
|
|
|
744
744
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
745
745
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
746
746
|
'data-garden-id': COMPONENT_ID$5,
|
|
747
|
-
'data-garden-version': '9.
|
|
747
|
+
'data-garden-version': '9.1.0'
|
|
748
748
|
}).withConfig({
|
|
749
749
|
displayName: "StyledSheetDescription",
|
|
750
750
|
componentId: "sc-1puglb6-0"
|
|
@@ -756,7 +756,7 @@ const StyledSheetDescription = styled__default.default.div.attrs({
|
|
|
756
756
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
757
757
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
758
758
|
'data-garden-id': COMPONENT_ID$4,
|
|
759
|
-
'data-garden-version': '9.
|
|
759
|
+
'data-garden-version': '9.1.0'
|
|
760
760
|
}).withConfig({
|
|
761
761
|
displayName: "StyledSheetBody",
|
|
762
762
|
componentId: "sc-bt4eoj-0"
|
|
@@ -773,7 +773,7 @@ const positionStyles = _ref => {
|
|
|
773
773
|
};
|
|
774
774
|
const StyledSheetClose = styled__default.default(reactButtons.IconButton).attrs({
|
|
775
775
|
'data-garden-id': COMPONENT_ID$3,
|
|
776
|
-
'data-garden-version': '9.
|
|
776
|
+
'data-garden-version': '9.1.0'
|
|
777
777
|
}).withConfig({
|
|
778
778
|
displayName: "StyledSheetClose",
|
|
779
779
|
componentId: "sc-1ab02oq-0"
|
|
@@ -793,24 +793,24 @@ const colorStyles$1 = _ref => {
|
|
|
793
793
|
const sizeStyles$1 = _ref2 => {
|
|
794
794
|
let {
|
|
795
795
|
theme,
|
|
796
|
-
isCompact
|
|
796
|
+
$isCompact
|
|
797
797
|
} = _ref2;
|
|
798
798
|
const border = theme.borders.sm;
|
|
799
|
-
const padding = `${theme.space.base * (isCompact ? 2.5 : 5)}px`;
|
|
799
|
+
const padding = `${theme.space.base * ($isCompact ? 2.5 : 5)}px`;
|
|
800
800
|
return styled.css(["border-top:", ";padding:", ";"], border, padding);
|
|
801
801
|
};
|
|
802
802
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
803
803
|
'data-garden-id': COMPONENT_ID$2,
|
|
804
|
-
'data-garden-version': '9.
|
|
804
|
+
'data-garden-version': '9.1.0'
|
|
805
805
|
}).withConfig({
|
|
806
806
|
displayName: "StyledSheetFooter",
|
|
807
807
|
componentId: "sc-2cktos-0"
|
|
808
|
-
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";", ";", ";", ";"], props => props
|
|
808
|
+
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";", ";", ";", ";"], props => props.$isCompact ? 'center' : 'flex-end', sizeStyles$1, colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
809
809
|
|
|
810
810
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
811
811
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
812
812
|
'data-garden-id': COMPONENT_ID$1,
|
|
813
|
-
'data-garden-version': '9.
|
|
813
|
+
'data-garden-version': '9.1.0'
|
|
814
814
|
}).withConfig({
|
|
815
815
|
displayName: "StyledSheetFooterItem",
|
|
816
816
|
componentId: "sc-r9ixh-0"
|
|
@@ -830,11 +830,11 @@ const colorStyles = _ref => {
|
|
|
830
830
|
const sizeStyles = _ref2 => {
|
|
831
831
|
let {
|
|
832
832
|
theme,
|
|
833
|
-
isCloseButtonPresent
|
|
833
|
+
$isCloseButtonPresent
|
|
834
834
|
} = _ref2;
|
|
835
835
|
const border = theme.borders.sm;
|
|
836
836
|
let padding = `${theme.space.base * 5}px`;
|
|
837
|
-
if (isCloseButtonPresent) {
|
|
837
|
+
if ($isCloseButtonPresent) {
|
|
838
838
|
const paddingSide = `${theme.space.base * 14}px`;
|
|
839
839
|
padding = theme.rtl ? `${padding} ${padding} ${padding} ${paddingSide}` : `${padding} ${paddingSide} ${padding} ${padding}`;
|
|
840
840
|
}
|
|
@@ -842,7 +842,7 @@ const sizeStyles = _ref2 => {
|
|
|
842
842
|
};
|
|
843
843
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
844
844
|
'data-garden-id': COMPONENT_ID,
|
|
845
|
-
'data-garden-version': '9.
|
|
845
|
+
'data-garden-version': '9.1.0'
|
|
846
846
|
}).withConfig({
|
|
847
847
|
displayName: "StyledSheetHeader",
|
|
848
848
|
componentId: "sc-o2ry8i-0"
|
|
@@ -851,17 +851,26 @@ const StyledSheetHeader = styled__default.default.header.attrs({
|
|
|
851
851
|
const HeaderItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
852
852
|
let {
|
|
853
853
|
hasLogo,
|
|
854
|
+
isRound,
|
|
855
|
+
maxX,
|
|
856
|
+
maxY,
|
|
854
857
|
product,
|
|
855
858
|
...other
|
|
856
859
|
} = _ref;
|
|
857
860
|
if (hasLogo) {
|
|
858
861
|
return React__namespace.default.createElement(StyledLogoHeaderItem, Object.assign({
|
|
859
862
|
ref: ref,
|
|
860
|
-
|
|
863
|
+
$isRound: isRound,
|
|
864
|
+
$maxX: maxX,
|
|
865
|
+
$maxY: maxY,
|
|
866
|
+
$product: product
|
|
861
867
|
}, other));
|
|
862
868
|
}
|
|
863
869
|
return React__namespace.default.createElement(StyledHeaderItem, Object.assign({
|
|
864
|
-
ref: ref
|
|
870
|
+
ref: ref,
|
|
871
|
+
$isRound: isRound,
|
|
872
|
+
$maxX: maxX,
|
|
873
|
+
$maxY: maxY
|
|
865
874
|
}, other));
|
|
866
875
|
});
|
|
867
876
|
HeaderItem.displayName = 'Header.Item';
|
|
@@ -882,9 +891,16 @@ const HeaderItemIcon = _ref => {
|
|
|
882
891
|
};
|
|
883
892
|
HeaderItemIcon.displayName = 'Header.ItemIcon';
|
|
884
893
|
|
|
885
|
-
const HeaderItemText = React__namespace.default.forwardRef((
|
|
886
|
-
|
|
887
|
-
|
|
894
|
+
const HeaderItemText = React__namespace.default.forwardRef((_ref, ref) => {
|
|
895
|
+
let {
|
|
896
|
+
isClipped,
|
|
897
|
+
...other
|
|
898
|
+
} = _ref;
|
|
899
|
+
return React__namespace.default.createElement(StyledHeaderItemText, Object.assign({
|
|
900
|
+
ref: ref,
|
|
901
|
+
$isClipped: isClipped
|
|
902
|
+
}, other));
|
|
903
|
+
});
|
|
888
904
|
HeaderItemText.displayName = 'Header.ItemText';
|
|
889
905
|
HeaderItemText.propTypes = {
|
|
890
906
|
isClipped: PropTypes__default.default.bool
|
|
@@ -939,8 +955,8 @@ const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
939
955
|
if (hasLogo) {
|
|
940
956
|
retVal = React__namespace.default.createElement(StyledLogoNavItem, Object.assign({
|
|
941
957
|
ref: ref,
|
|
942
|
-
hue: hue,
|
|
943
|
-
product: product
|
|
958
|
+
$hue: hue,
|
|
959
|
+
$product: product
|
|
944
960
|
}, other));
|
|
945
961
|
} else if (hasBrandmark) {
|
|
946
962
|
retVal = React__namespace.default.createElement(StyledBrandmarkNavItem, Object.assign({
|
|
@@ -950,8 +966,8 @@ const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
950
966
|
retVal = React__namespace.default.createElement(StyledNavButton, Object.assign({
|
|
951
967
|
tabIndex: 0,
|
|
952
968
|
ref: ref,
|
|
953
|
-
isExpanded: isExpanded,
|
|
954
|
-
hue: hue,
|
|
969
|
+
$isExpanded: isExpanded,
|
|
970
|
+
$hue: hue,
|
|
955
971
|
"aria-current": isCurrent || undefined
|
|
956
972
|
}, other));
|
|
957
973
|
}
|
|
@@ -976,14 +992,19 @@ const NavItemIcon = _ref => {
|
|
|
976
992
|
};
|
|
977
993
|
NavItemIcon.displayName = 'Nav.ItemIcon';
|
|
978
994
|
|
|
979
|
-
const NavItemText = React__namespace.default.forwardRef((
|
|
995
|
+
const NavItemText = React__namespace.default.forwardRef((_ref, ref) => {
|
|
996
|
+
let {
|
|
997
|
+
isWrapped,
|
|
998
|
+
...other
|
|
999
|
+
} = _ref;
|
|
980
1000
|
const {
|
|
981
1001
|
isExpanded
|
|
982
1002
|
} = useNavContext();
|
|
983
1003
|
return React__namespace.default.createElement(StyledNavItemText, Object.assign({
|
|
984
1004
|
ref: ref,
|
|
985
|
-
isExpanded: isExpanded
|
|
986
|
-
|
|
1005
|
+
$isExpanded: isExpanded,
|
|
1006
|
+
$isWrapped: isWrapped
|
|
1007
|
+
}, other));
|
|
987
1008
|
});
|
|
988
1009
|
NavItemText.displayName = 'Nav.ItemText';
|
|
989
1010
|
NavItemText.propTypes = {
|
|
@@ -1047,7 +1068,7 @@ const SkipNav = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1047
1068
|
} = _ref;
|
|
1048
1069
|
return React__namespace.default.createElement(StyledSkipNav, Object.assign({
|
|
1049
1070
|
href: `#${targetId}`,
|
|
1050
|
-
zIndex: zIndex,
|
|
1071
|
+
$zIndex: zIndex,
|
|
1051
1072
|
ref: ref
|
|
1052
1073
|
}, props), React__namespace.default.createElement(StyledSkipNavIcon, null), children);
|
|
1053
1074
|
});
|
|
@@ -1085,7 +1106,7 @@ const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1085
1106
|
} = useBodyContext() || {};
|
|
1086
1107
|
return React__namespace.default.createElement(StyledContent, Object.assign({
|
|
1087
1108
|
ref: ref,
|
|
1088
|
-
hasFooter: hasFooter
|
|
1109
|
+
$hasFooter: hasFooter
|
|
1089
1110
|
}, props));
|
|
1090
1111
|
});
|
|
1091
1112
|
Content.displayName = 'Content';
|
|
@@ -1095,9 +1116,16 @@ const Main = React__namespace.default.forwardRef((props, ref) => React__namespac
|
|
|
1095
1116
|
}, props)));
|
|
1096
1117
|
Main.displayName = 'Main';
|
|
1097
1118
|
|
|
1098
|
-
const HeaderComponent = React__namespace.default.forwardRef((
|
|
1099
|
-
|
|
1100
|
-
|
|
1119
|
+
const HeaderComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1120
|
+
let {
|
|
1121
|
+
isStandalone,
|
|
1122
|
+
...other
|
|
1123
|
+
} = _ref;
|
|
1124
|
+
return React__namespace.default.createElement(StyledHeader, Object.assign({
|
|
1125
|
+
ref: ref,
|
|
1126
|
+
$isStandalone: isStandalone
|
|
1127
|
+
}, other));
|
|
1128
|
+
});
|
|
1101
1129
|
HeaderComponent.displayName = 'Header';
|
|
1102
1130
|
HeaderComponent.propTypes = {
|
|
1103
1131
|
isStandalone: PropTypes__default.default.bool
|
|
@@ -1143,14 +1171,18 @@ const NavList = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1143
1171
|
});
|
|
1144
1172
|
NavList.displayName = 'Nav.List';
|
|
1145
1173
|
|
|
1146
|
-
const NavComponent = React__namespace.default.forwardRef((
|
|
1174
|
+
const NavComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1175
|
+
let {
|
|
1176
|
+
isExpanded,
|
|
1177
|
+
...other
|
|
1178
|
+
} = _ref;
|
|
1147
1179
|
const {
|
|
1148
1180
|
hue,
|
|
1149
1181
|
isLight
|
|
1150
1182
|
} = useChromeContext();
|
|
1151
1183
|
const navContextValue = React.useMemo(() => ({
|
|
1152
|
-
isExpanded: !!
|
|
1153
|
-
}), [
|
|
1184
|
+
isExpanded: !!isExpanded
|
|
1185
|
+
}), [isExpanded]);
|
|
1154
1186
|
return React__namespace.default.createElement(styled.ThemeProvider, {
|
|
1155
1187
|
theme: parentTheme => ({
|
|
1156
1188
|
...parentTheme,
|
|
@@ -1162,10 +1194,10 @@ const NavComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1162
1194
|
}, React__namespace.default.createElement(NavContext.Provider, {
|
|
1163
1195
|
value: navContextValue
|
|
1164
1196
|
}, React__namespace.default.createElement(StyledNav, Object.assign({
|
|
1165
|
-
ref: ref
|
|
1166
|
-
|
|
1167
|
-
hue: hue
|
|
1168
|
-
}))));
|
|
1197
|
+
ref: ref,
|
|
1198
|
+
$isExpanded: isExpanded,
|
|
1199
|
+
$hue: hue
|
|
1200
|
+
}, other))));
|
|
1169
1201
|
});
|
|
1170
1202
|
NavComponent.displayName = 'Nav';
|
|
1171
1203
|
NavComponent.propTypes = {
|
|
@@ -1243,7 +1275,7 @@ const SheetHeader = React.forwardRef((props, ref) => {
|
|
|
1243
1275
|
} = useSheetContext();
|
|
1244
1276
|
return React__namespace.default.createElement(StyledSheetHeader, Object.assign({
|
|
1245
1277
|
ref: ref,
|
|
1246
|
-
isCloseButtonPresent: isCloseButtonPresent
|
|
1278
|
+
$isCloseButtonPresent: isCloseButtonPresent
|
|
1247
1279
|
}, props));
|
|
1248
1280
|
});
|
|
1249
1281
|
SheetHeader.displayName = 'Sheet.Header';
|
|
@@ -1257,10 +1289,15 @@ const SheetBody = React.forwardRef((props, ref) => {
|
|
|
1257
1289
|
SheetBody.displayName = 'Sheet.Body';
|
|
1258
1290
|
const Body = SheetBody;
|
|
1259
1291
|
|
|
1260
|
-
const SheetFooter = React.forwardRef((
|
|
1292
|
+
const SheetFooter = React.forwardRef((_ref, ref) => {
|
|
1293
|
+
let {
|
|
1294
|
+
isCompact,
|
|
1295
|
+
...other
|
|
1296
|
+
} = _ref;
|
|
1261
1297
|
return React__namespace.default.createElement(StyledSheetFooter, Object.assign({
|
|
1262
|
-
ref: ref
|
|
1263
|
-
|
|
1298
|
+
ref: ref,
|
|
1299
|
+
$isCompact: isCompact
|
|
1300
|
+
}, other));
|
|
1264
1301
|
});
|
|
1265
1302
|
SheetFooter.displayName = 'Sheet.Footer';
|
|
1266
1303
|
const Footer = SheetFooter;
|
|
@@ -1321,7 +1358,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1321
1358
|
const sheetRef = React.useRef(null);
|
|
1322
1359
|
const seed = reactUid.useUIDSeed();
|
|
1323
1360
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1324
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.
|
|
1361
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.1.0'}`), [id, seed]);
|
|
1325
1362
|
const titleId = `${idPrefix}--title`;
|
|
1326
1363
|
const descriptionId = `${idPrefix}--description`;
|
|
1327
1364
|
const sheetContext = React.useMemo(() => ({
|
|
@@ -1340,20 +1377,20 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1340
1377
|
value: sheetContext
|
|
1341
1378
|
}, React__namespace.default.createElement(StyledSheet, Object.assign({
|
|
1342
1379
|
inert: isOpen ? undefined : '',
|
|
1343
|
-
isOpen: isOpen,
|
|
1344
|
-
isAnimated: isAnimated,
|
|
1345
|
-
placement: placement,
|
|
1346
|
-
size: size,
|
|
1380
|
+
$isOpen: isOpen,
|
|
1381
|
+
$isAnimated: isAnimated,
|
|
1382
|
+
$placement: placement,
|
|
1383
|
+
$size: size,
|
|
1347
1384
|
tabIndex: -1,
|
|
1348
1385
|
id: idPrefix,
|
|
1349
1386
|
"aria-labelledby": titleId,
|
|
1350
1387
|
"aria-describedby": descriptionId,
|
|
1351
1388
|
ref: reactMergeRefs.mergeRefs([sheetRef, ref])
|
|
1352
1389
|
}, props), React__namespace.default.createElement(StyledSheetWrapper, {
|
|
1353
|
-
isOpen: isOpen,
|
|
1354
|
-
isAnimated: isAnimated,
|
|
1355
|
-
placement: placement,
|
|
1356
|
-
size: size
|
|
1390
|
+
$isOpen: isOpen,
|
|
1391
|
+
$isAnimated: isAnimated,
|
|
1392
|
+
$placement: placement,
|
|
1393
|
+
$size: size
|
|
1357
1394
|
}, children)));
|
|
1358
1395
|
});
|
|
1359
1396
|
SheetComponent.displayName = 'Sheet';
|