@zendeskgarden/react-chrome 8.62.0 → 8.62.2
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/index.cjs.js +173 -176
- package/dist/index.esm.js +39 -39
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
|
-
|
|
12
10
|
var React = require('react');
|
|
13
11
|
var PropTypes = require('prop-types');
|
|
14
12
|
var styled = require('styled-components');
|
|
@@ -19,7 +17,7 @@ var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
|
19
17
|
var reactUid = require('react-uid');
|
|
20
18
|
var mergeRefs = require('react-merge-refs');
|
|
21
19
|
|
|
22
|
-
function
|
|
20
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
21
|
|
|
24
22
|
function _interopNamespace(e) {
|
|
25
23
|
if (e && e.__esModule) return e;
|
|
@@ -35,15 +33,14 @@ function _interopNamespace(e) {
|
|
|
35
33
|
}
|
|
36
34
|
});
|
|
37
35
|
}
|
|
38
|
-
n
|
|
36
|
+
n.default = e;
|
|
39
37
|
return Object.freeze(n);
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
43
40
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
44
|
-
var PropTypes__default = /*#__PURE__*/
|
|
45
|
-
var styled__default = /*#__PURE__*/
|
|
46
|
-
var mergeRefs__default = /*#__PURE__*/
|
|
41
|
+
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
42
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
43
|
+
var mergeRefs__default = /*#__PURE__*/_interopDefault(mergeRefs);
|
|
47
44
|
|
|
48
45
|
function _extends$3() {
|
|
49
46
|
_extends$3 = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -60,7 +57,7 @@ function _extends$3() {
|
|
|
60
57
|
return _extends$3.apply(this, arguments);
|
|
61
58
|
}
|
|
62
59
|
|
|
63
|
-
const ChromeContext =
|
|
60
|
+
const ChromeContext = React__namespace.default.createContext({
|
|
64
61
|
hue: 'chromeHue'
|
|
65
62
|
});
|
|
66
63
|
const useChromeContext = () => {
|
|
@@ -68,9 +65,9 @@ const useChromeContext = () => {
|
|
|
68
65
|
};
|
|
69
66
|
|
|
70
67
|
const COMPONENT_ID$A = 'chrome.chrome';
|
|
71
|
-
const StyledChrome = styled__default
|
|
68
|
+
const StyledChrome = styled__default.default.div.attrs({
|
|
72
69
|
'data-garden-id': COMPONENT_ID$A,
|
|
73
|
-
'data-garden-version': '8.62.
|
|
70
|
+
'data-garden-version': '8.62.2'
|
|
74
71
|
}).withConfig({
|
|
75
72
|
displayName: "StyledChrome",
|
|
76
73
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -80,9 +77,9 @@ StyledChrome.defaultProps = {
|
|
|
80
77
|
};
|
|
81
78
|
|
|
82
79
|
const COMPONENT_ID$z = 'chrome.header_item_icon';
|
|
83
|
-
const StyledHeaderItemIcon = styled__default
|
|
80
|
+
const StyledHeaderItemIcon = styled__default.default.div.attrs({
|
|
84
81
|
'data-garden-id': COMPONENT_ID$z,
|
|
85
|
-
'data-garden-version': '8.62.
|
|
82
|
+
'data-garden-version': '8.62.2'
|
|
86
83
|
}).withConfig({
|
|
87
84
|
displayName: "StyledHeaderItemIcon",
|
|
88
85
|
componentId: "sc-1jhhp6z-0"
|
|
@@ -97,9 +94,9 @@ const sizeStyles$4 = props => {
|
|
|
97
94
|
const size = props.theme.space.base * 7.5;
|
|
98
95
|
return styled.css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : `${size}px`, reactTheming.getLineHeight(size, props.theme.fontSizes.md));
|
|
99
96
|
};
|
|
100
|
-
const StyledBaseHeaderItem = styled__default
|
|
97
|
+
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
101
98
|
'data-garden-id': COMPONENT_ID$y,
|
|
102
|
-
'data-garden-version': '8.62.
|
|
99
|
+
'data-garden-version': '8.62.2'
|
|
103
100
|
}).withConfig({
|
|
104
101
|
displayName: "StyledBaseHeaderItem",
|
|
105
102
|
componentId: "sc-1qua7h6-0"
|
|
@@ -118,9 +115,9 @@ StyledBaseHeaderItem.defaultProps = {
|
|
|
118
115
|
|
|
119
116
|
const COMPONENT_ID$x = 'chrome.header_item_text';
|
|
120
117
|
const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
121
|
-
const StyledHeaderItemText = styled__default
|
|
118
|
+
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
122
119
|
'data-garden-id': COMPONENT_ID$x,
|
|
123
|
-
'data-garden-version': '8.62.
|
|
120
|
+
'data-garden-version': '8.62.2'
|
|
124
121
|
}).withConfig({
|
|
125
122
|
displayName: "StyledHeaderItemText",
|
|
126
123
|
componentId: "sc-goz7la-0"
|
|
@@ -142,9 +139,9 @@ const getNavWidth = props => {
|
|
|
142
139
|
const getExpandedNavWidth = () => {
|
|
143
140
|
return `200px`;
|
|
144
141
|
};
|
|
145
|
-
const StyledNav = styled__default
|
|
142
|
+
const StyledNav = styled__default.default.nav.attrs({
|
|
146
143
|
'data-garden-id': COMPONENT_ID$w,
|
|
147
|
-
'data-garden-version': '8.62.
|
|
144
|
+
'data-garden-version': '8.62.2'
|
|
148
145
|
}).withConfig({
|
|
149
146
|
displayName: "StyledNav",
|
|
150
147
|
componentId: "sc-6j462r-0"
|
|
@@ -174,9 +171,9 @@ const retrieveProductColor$1 = props => {
|
|
|
174
171
|
return 'inherit';
|
|
175
172
|
}
|
|
176
173
|
};
|
|
177
|
-
const StyledLogoHeaderItem = styled__default
|
|
174
|
+
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
178
175
|
'data-garden-id': COMPONENT_ID$v,
|
|
179
|
-
'data-garden-version': '8.62.
|
|
176
|
+
'data-garden-version': '8.62.2',
|
|
180
177
|
as: 'div'
|
|
181
178
|
}).withConfig({
|
|
182
179
|
displayName: "StyledLogoHeaderItem",
|
|
@@ -195,9 +192,9 @@ const sizeStyles$3 = props => {
|
|
|
195
192
|
const horizontalPadding = polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`);
|
|
196
193
|
return styled.css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
197
194
|
};
|
|
198
|
-
const StyledBaseNavItem = styled__default
|
|
195
|
+
const StyledBaseNavItem = styled__default.default.button.attrs({
|
|
199
196
|
'data-garden-id': COMPONENT_ID$u,
|
|
200
|
-
'data-garden-version': '8.62.
|
|
197
|
+
'data-garden-version': '8.62.2'
|
|
201
198
|
}).withConfig({
|
|
202
199
|
displayName: "StyledBaseNavItem",
|
|
203
200
|
componentId: "sc-zvo43f-0"
|
|
@@ -210,9 +207,9 @@ const COMPONENT_ID$t = 'chrome.header';
|
|
|
210
207
|
const getHeaderHeight = props => {
|
|
211
208
|
return getNavItemHeight(props);
|
|
212
209
|
};
|
|
213
|
-
const StyledHeader = styled__default
|
|
210
|
+
const StyledHeader = styled__default.default.header.attrs({
|
|
214
211
|
'data-garden-id': COMPONENT_ID$t,
|
|
215
|
-
'data-garden-version': '8.62.
|
|
212
|
+
'data-garden-version': '8.62.2'
|
|
216
213
|
}).withConfig({
|
|
217
214
|
displayName: "StyledHeader",
|
|
218
215
|
componentId: "sc-1cexpz-0"
|
|
@@ -244,9 +241,9 @@ const sizeStyles$2 = props => {
|
|
|
244
241
|
const lineHeight = reactTheming.getLineHeight(padding, fontSize);
|
|
245
242
|
return styled.css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
246
243
|
};
|
|
247
|
-
const StyledSkipNav = styled__default
|
|
244
|
+
const StyledSkipNav = styled__default.default.a.attrs({
|
|
248
245
|
'data-garden-id': COMPONENT_ID$s,
|
|
249
|
-
'data-garden-version': '8.62.
|
|
246
|
+
'data-garden-version': '8.62.2'
|
|
250
247
|
}).withConfig({
|
|
251
248
|
displayName: "StyledSkipNav",
|
|
252
249
|
componentId: "sc-1tsro34-0"
|
|
@@ -280,9 +277,9 @@ const sizeStyles$1 = theme => {
|
|
|
280
277
|
const size = theme.iconSizes.md;
|
|
281
278
|
return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
282
279
|
};
|
|
283
|
-
const StyledSkipNavIcon = styled__default
|
|
280
|
+
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
284
281
|
'data-garden-id': COMPONENT_ID$r,
|
|
285
|
-
'data-garden-version': '8.62.
|
|
282
|
+
'data-garden-version': '8.62.2'
|
|
286
283
|
}).withConfig({
|
|
287
284
|
displayName: "StyledSkipNavIcon",
|
|
288
285
|
componentId: "sc-1ika5z4-0"
|
|
@@ -292,9 +289,9 @@ StyledSkipNavIcon.defaultProps = {
|
|
|
292
289
|
};
|
|
293
290
|
|
|
294
291
|
const COMPONENT_ID$q = 'chrome.body';
|
|
295
|
-
const StyledBody = styled__default
|
|
292
|
+
const StyledBody = styled__default.default.div.attrs({
|
|
296
293
|
'data-garden-id': COMPONENT_ID$q,
|
|
297
|
-
'data-garden-version': '8.62.
|
|
294
|
+
'data-garden-version': '8.62.2'
|
|
298
295
|
}).withConfig({
|
|
299
296
|
displayName: "StyledBody",
|
|
300
297
|
componentId: "sc-c7h9kv-0"
|
|
@@ -307,9 +304,9 @@ const COMPONENT_ID$p = 'chrome.footer';
|
|
|
307
304
|
const getFooterHeight = props => {
|
|
308
305
|
return `${props.theme.space.base * 20}px`;
|
|
309
306
|
};
|
|
310
|
-
const StyledFooter = styled__default
|
|
307
|
+
const StyledFooter = styled__default.default.footer.attrs({
|
|
311
308
|
'data-garden-id': COMPONENT_ID$p,
|
|
312
|
-
'data-garden-version': '8.62.
|
|
309
|
+
'data-garden-version': '8.62.2'
|
|
313
310
|
}).withConfig({
|
|
314
311
|
displayName: "StyledFooter",
|
|
315
312
|
componentId: "sc-v7lib2-0"
|
|
@@ -319,9 +316,9 @@ StyledFooter.defaultProps = {
|
|
|
319
316
|
};
|
|
320
317
|
|
|
321
318
|
const COMPONENT_ID$o = 'chrome.content';
|
|
322
|
-
const StyledContent = styled__default
|
|
319
|
+
const StyledContent = styled__default.default.div.attrs({
|
|
323
320
|
'data-garden-id': COMPONENT_ID$o,
|
|
324
|
-
'data-garden-version': '8.62.
|
|
321
|
+
'data-garden-version': '8.62.2'
|
|
325
322
|
}).withConfig({
|
|
326
323
|
displayName: "StyledContent",
|
|
327
324
|
componentId: "sc-qcuzxn-0"
|
|
@@ -331,9 +328,9 @@ StyledContent.defaultProps = {
|
|
|
331
328
|
};
|
|
332
329
|
|
|
333
330
|
const COMPONENT_ID$n = 'chrome.main';
|
|
334
|
-
const StyledMain = styled__default
|
|
331
|
+
const StyledMain = styled__default.default.main.attrs({
|
|
335
332
|
'data-garden-id': COMPONENT_ID$n,
|
|
336
|
-
'data-garden-version': '8.62.
|
|
333
|
+
'data-garden-version': '8.62.2'
|
|
337
334
|
}).withConfig({
|
|
338
335
|
displayName: "StyledMain",
|
|
339
336
|
componentId: "sc-t61cre-0"
|
|
@@ -343,9 +340,9 @@ StyledMain.defaultProps = {
|
|
|
343
340
|
};
|
|
344
341
|
|
|
345
342
|
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
346
|
-
const StyledSidebar = styled__default
|
|
343
|
+
const StyledSidebar = styled__default.default.aside.attrs({
|
|
347
344
|
'data-garden-id': COMPONENT_ID$m,
|
|
348
|
-
'data-garden-version': '8.62.
|
|
345
|
+
'data-garden-version': '8.62.2'
|
|
349
346
|
}).withConfig({
|
|
350
347
|
displayName: "StyledSidebar",
|
|
351
348
|
componentId: "sc-1q77fuw-0"
|
|
@@ -355,9 +352,9 @@ StyledSidebar.defaultProps = {
|
|
|
355
352
|
};
|
|
356
353
|
|
|
357
354
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
358
|
-
const StyledFooterItem = styled__default
|
|
355
|
+
const StyledFooterItem = styled__default.default.div.attrs({
|
|
359
356
|
'data-garden-id': COMPONENT_ID$l,
|
|
360
|
-
'data-garden-version': '8.62.
|
|
357
|
+
'data-garden-version': '8.62.2'
|
|
361
358
|
}).withConfig({
|
|
362
359
|
displayName: "StyledFooterItem",
|
|
363
360
|
componentId: "sc-1cktm85-0"
|
|
@@ -371,9 +368,9 @@ const imgStyles = props => {
|
|
|
371
368
|
const size = polished.math(`${getHeaderItemSize(props)} - ${props.theme.space.base * 2}`);
|
|
372
369
|
return styled.css(["img{margin:0;border-radius:", ";width:", ";height:", ";}"], polished.math(`${props.theme.borderRadii.md} - 1`), size, size);
|
|
373
370
|
};
|
|
374
|
-
const StyledHeaderItem = styled__default
|
|
371
|
+
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
375
372
|
'data-garden-id': COMPONENT_ID$k,
|
|
376
|
-
'data-garden-version': '8.62.
|
|
373
|
+
'data-garden-version': '8.62.2'
|
|
377
374
|
}).withConfig({
|
|
378
375
|
displayName: "StyledHeaderItem",
|
|
379
376
|
componentId: "sc-14sft6n-0"
|
|
@@ -394,9 +391,9 @@ StyledHeaderItem.defaultProps = {
|
|
|
394
391
|
};
|
|
395
392
|
|
|
396
393
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
397
|
-
const StyledHeaderItemWrapper = styled__default
|
|
394
|
+
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
398
395
|
'data-garden-id': COMPONENT_ID$j,
|
|
399
|
-
'data-garden-version': '8.62.
|
|
396
|
+
'data-garden-version': '8.62.2',
|
|
400
397
|
as: 'div'
|
|
401
398
|
}).withConfig({
|
|
402
399
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -432,9 +429,9 @@ const colorStyles$4 = props => {
|
|
|
432
429
|
const color = props.isLight || props.isDark ? fillColor : retrieveProductColor(props.product);
|
|
433
430
|
return styled.css(["color:", ";fill:", ";"], color, fillColor);
|
|
434
431
|
};
|
|
435
|
-
const StyledLogoNavItem = styled__default
|
|
432
|
+
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
436
433
|
'data-garden-id': COMPONENT_ID$i,
|
|
437
|
-
'data-garden-version': '8.62.
|
|
434
|
+
'data-garden-version': '8.62.2',
|
|
438
435
|
as: 'div'
|
|
439
436
|
}).withConfig({
|
|
440
437
|
displayName: "StyledLogoNavItem",
|
|
@@ -445,9 +442,9 @@ StyledLogoNavItem.defaultProps = {
|
|
|
445
442
|
};
|
|
446
443
|
|
|
447
444
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
448
|
-
const StyledBrandmarkNavItem = styled__default
|
|
445
|
+
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
449
446
|
'data-garden-id': COMPONENT_ID$h,
|
|
450
|
-
'data-garden-version': '8.62.
|
|
447
|
+
'data-garden-version': '8.62.2',
|
|
451
448
|
as: 'div'
|
|
452
449
|
}).withConfig({
|
|
453
450
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -458,9 +455,9 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
458
455
|
};
|
|
459
456
|
|
|
460
457
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
461
|
-
const StyledNavItemIcon = styled__default
|
|
458
|
+
const StyledNavItemIcon = styled__default.default.div.attrs({
|
|
462
459
|
'data-garden-id': COMPONENT_ID$g,
|
|
463
|
-
'data-garden-version': '8.62.
|
|
460
|
+
'data-garden-version': '8.62.2'
|
|
464
461
|
}).withConfig({
|
|
465
462
|
displayName: "StyledNavItemIcon",
|
|
466
463
|
componentId: "sc-7w9rpt-0"
|
|
@@ -490,9 +487,9 @@ const colorStyles$3 = props => {
|
|
|
490
487
|
const focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
|
|
491
488
|
return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:inset ", ";}&:active{background-color:", ";}"], props.isCurrent ? 1 : 0.6, currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
|
|
492
489
|
};
|
|
493
|
-
const StyledNavItem = styled__default
|
|
490
|
+
const StyledNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
494
491
|
'data-garden-id': COMPONENT_ID$f,
|
|
495
|
-
'data-garden-version': '8.62.
|
|
492
|
+
'data-garden-version': '8.62.2',
|
|
496
493
|
as: 'button'
|
|
497
494
|
}).withConfig({
|
|
498
495
|
displayName: "StyledNavItem",
|
|
@@ -507,9 +504,9 @@ StyledNavItem.defaultProps = {
|
|
|
507
504
|
};
|
|
508
505
|
|
|
509
506
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
510
|
-
const StyledNavItemText = styled__default
|
|
507
|
+
const StyledNavItemText = styled__default.default.span.attrs({
|
|
511
508
|
'data-garden-id': COMPONENT_ID$e,
|
|
512
|
-
'data-garden-version': '8.62.
|
|
509
|
+
'data-garden-version': '8.62.2'
|
|
513
510
|
}).withConfig({
|
|
514
511
|
displayName: "StyledNavItemText",
|
|
515
512
|
componentId: "sc-13m84xl-0"
|
|
@@ -549,9 +546,9 @@ const colorStyles$2 = props => {
|
|
|
549
546
|
const getSubNavItemHeight = props => {
|
|
550
547
|
return `${props.theme.space.base * 7.5}px`;
|
|
551
548
|
};
|
|
552
|
-
const StyledSubNavItem = styled__default
|
|
549
|
+
const StyledSubNavItem = styled__default.default.button.attrs({
|
|
553
550
|
'data-garden-id': COMPONENT_ID$d,
|
|
554
|
-
'data-garden-version': '8.62.
|
|
551
|
+
'data-garden-version': '8.62.2'
|
|
555
552
|
}).withConfig({
|
|
556
553
|
displayName: "StyledSubNavItem",
|
|
557
554
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -572,9 +569,9 @@ const colorStyles$1 = props => {
|
|
|
572
569
|
const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
573
570
|
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
574
571
|
};
|
|
575
|
-
const StyledSubNav = styled__default
|
|
572
|
+
const StyledSubNav = styled__default.default.nav.attrs({
|
|
576
573
|
'data-garden-id': COMPONENT_ID$c,
|
|
577
|
-
'data-garden-version': '8.62.
|
|
574
|
+
'data-garden-version': '8.62.2'
|
|
578
575
|
}).withConfig({
|
|
579
576
|
displayName: "StyledSubNav",
|
|
580
577
|
componentId: "sc-19hjou6-0"
|
|
@@ -590,9 +587,9 @@ const sizeStyles = props => {
|
|
|
590
587
|
const lineHeight = reactTheming.getLineHeight(baseLineHeight, props.theme.fontSizes.md);
|
|
591
588
|
return styled.css(["margin:", " 0;line-height:", ";"], verticalMargin, lineHeight);
|
|
592
589
|
};
|
|
593
|
-
const StyledSubNavItemText = styled__default
|
|
590
|
+
const StyledSubNavItemText = styled__default.default.span.attrs({
|
|
594
591
|
'data-garden-id': COMPONENT_ID$b,
|
|
595
|
-
'data-garden-version': '8.62.
|
|
592
|
+
'data-garden-version': '8.62.2'
|
|
596
593
|
}).withConfig({
|
|
597
594
|
displayName: "StyledSubNavItemText",
|
|
598
595
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -602,9 +599,9 @@ StyledSubNavItemText.defaultProps = {
|
|
|
602
599
|
};
|
|
603
600
|
|
|
604
601
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
605
|
-
const StyledSubNavItemHeader = styled__default
|
|
602
|
+
const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
|
|
606
603
|
'data-garden-id': COMPONENT_ID$a,
|
|
607
|
-
'data-garden-version': '8.62.
|
|
604
|
+
'data-garden-version': '8.62.2',
|
|
608
605
|
'data-garden-header': 'true'
|
|
609
606
|
}).withConfig({
|
|
610
607
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -634,27 +631,27 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
|
634
631
|
};
|
|
635
632
|
|
|
636
633
|
const COMPONENT_ID$9 = 'chrome.collapsible_sub_nav_item_icon';
|
|
637
|
-
const FilteredChevronDownStrokeIcon =
|
|
634
|
+
const FilteredChevronDownStrokeIcon = React__namespace.default.forwardRef((_ref, ref) => {
|
|
638
635
|
let {
|
|
639
636
|
theme,
|
|
640
637
|
isExpanded,
|
|
641
638
|
...validProps
|
|
642
639
|
} = _ref;
|
|
643
|
-
return
|
|
640
|
+
return React__namespace.default.createElement(SvgChevronDownStroke, _extends$3({
|
|
644
641
|
ref: ref
|
|
645
642
|
}, validProps));
|
|
646
643
|
});
|
|
647
644
|
FilteredChevronDownStrokeIcon.displayName = 'FilteredChevronDownStrokeIcon';
|
|
648
|
-
const StyledSubNavItemIcon = styled__default
|
|
645
|
+
const StyledSubNavItemIcon = styled__default.default(FilteredChevronDownStrokeIcon).withConfig({
|
|
649
646
|
displayName: "StyledSubNavItemIcon",
|
|
650
647
|
componentId: "sc-1d02hho-0"
|
|
651
648
|
})(["width:", ";height:", ";"], props => props.theme.iconSizes.sm, props => props.theme.iconSizes.sm);
|
|
652
649
|
StyledSubNavItemIcon.defaultProps = {
|
|
653
650
|
theme: reactTheming.DEFAULT_THEME
|
|
654
651
|
};
|
|
655
|
-
const StyledSubNavItemIconWrapper = styled__default
|
|
652
|
+
const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
|
|
656
653
|
'data-garden-id': COMPONENT_ID$9,
|
|
657
|
-
'data-garden-version': '8.62.
|
|
654
|
+
'data-garden-version': '8.62.2'
|
|
658
655
|
}).withConfig({
|
|
659
656
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
660
657
|
componentId: "sc-1d02hho-1"
|
|
@@ -670,9 +667,9 @@ StyledSubNavItemIconWrapper.defaultProps = {
|
|
|
670
667
|
|
|
671
668
|
const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
672
669
|
const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
673
|
-
const StyledSubNavPanel = styled__default
|
|
670
|
+
const StyledSubNavPanel = styled__default.default.div.attrs({
|
|
674
671
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
675
|
-
'data-garden-version': '8.62.
|
|
672
|
+
'data-garden-version': '8.62.2'
|
|
676
673
|
}).withConfig({
|
|
677
674
|
displayName: "StyledSubNavPanel",
|
|
678
675
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -701,9 +698,9 @@ const borderStyle = _ref => {
|
|
|
701
698
|
}
|
|
702
699
|
return `border${borderSide}: ${theme.borders.sm} ${borderColor};`;
|
|
703
700
|
};
|
|
704
|
-
const StyledSheet = styled__default
|
|
701
|
+
const StyledSheet = styled__default.default.aside.attrs({
|
|
705
702
|
'data-garden-id': COMPONENT_ID$8,
|
|
706
|
-
'data-garden-version': '8.62.
|
|
703
|
+
'data-garden-version': '8.62.2'
|
|
707
704
|
}).withConfig({
|
|
708
705
|
displayName: "StyledSheet",
|
|
709
706
|
componentId: "sc-dx8ijk-0"
|
|
@@ -713,9 +710,9 @@ StyledSheet.defaultProps = {
|
|
|
713
710
|
};
|
|
714
711
|
|
|
715
712
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
716
|
-
const StyledSheetWrapper = styled__default
|
|
713
|
+
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
717
714
|
'data-garden-id': COMPONENT_ID$7,
|
|
718
|
-
'data-garden-version': '8.62.
|
|
715
|
+
'data-garden-version': '8.62.2'
|
|
719
716
|
}).withConfig({
|
|
720
717
|
displayName: "StyledSheetWrapper",
|
|
721
718
|
componentId: "sc-f6x9zb-0"
|
|
@@ -740,9 +737,9 @@ StyledSheetWrapper.defaultProps = {
|
|
|
740
737
|
};
|
|
741
738
|
|
|
742
739
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
743
|
-
const StyledSheetTitle = styled__default
|
|
740
|
+
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
744
741
|
'data-garden-id': COMPONENT_ID$6,
|
|
745
|
-
'data-garden-version': '8.62.
|
|
742
|
+
'data-garden-version': '8.62.2'
|
|
746
743
|
}).withConfig({
|
|
747
744
|
displayName: "StyledSheetTitle",
|
|
748
745
|
componentId: "sc-1gogk75-0"
|
|
@@ -752,9 +749,9 @@ StyledSheetTitle.defaultProps = {
|
|
|
752
749
|
};
|
|
753
750
|
|
|
754
751
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
755
|
-
const StyledSheetDescription = styled__default
|
|
752
|
+
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
756
753
|
'data-garden-id': COMPONENT_ID$5,
|
|
757
|
-
'data-garden-version': '8.62.
|
|
754
|
+
'data-garden-version': '8.62.2'
|
|
758
755
|
}).withConfig({
|
|
759
756
|
displayName: "StyledSheetDescription",
|
|
760
757
|
componentId: "sc-1puglb6-0"
|
|
@@ -764,9 +761,9 @@ StyledSheetDescription.defaultProps = {
|
|
|
764
761
|
};
|
|
765
762
|
|
|
766
763
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
767
|
-
const StyledSheetBody = styled__default
|
|
764
|
+
const StyledSheetBody = styled__default.default.div.attrs({
|
|
768
765
|
'data-garden-id': COMPONENT_ID$4,
|
|
769
|
-
'data-garden-version': '8.62.
|
|
766
|
+
'data-garden-version': '8.62.2'
|
|
770
767
|
}).withConfig({
|
|
771
768
|
displayName: "StyledSheetBody",
|
|
772
769
|
componentId: "sc-bt4eoj-0"
|
|
@@ -786,9 +783,9 @@ const colorStyles = props => {
|
|
|
786
783
|
const foregroundColor = 'neutralHue';
|
|
787
784
|
return styled.css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}&[data-garden-focus-visible]{box-shadow:", ";}&:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], reactTheming.getColor(foregroundColor, 600, props.theme), reactTheming.getColor(backgroundColor, 600, props.theme, 0.08), reactTheming.getColor(foregroundColor, 700, props.theme), props.theme.shadows.md(reactTheming.getColor(backgroundColor, 600, props.theme, 0.35)), reactTheming.getColor(backgroundColor, 600, props.theme, 0.2), reactTheming.getColor(foregroundColor, 800, props.theme));
|
|
788
785
|
};
|
|
789
|
-
const StyledSheetClose = styled__default
|
|
786
|
+
const StyledSheetClose = styled__default.default.button.attrs({
|
|
790
787
|
'data-garden-id': COMPONENT_ID$3,
|
|
791
|
-
'data-garden-version': '8.62.
|
|
788
|
+
'data-garden-version': '8.62.2'
|
|
792
789
|
}).withConfig({
|
|
793
790
|
displayName: "StyledSheetClose",
|
|
794
791
|
componentId: "sc-1ab02oq-0"
|
|
@@ -798,9 +795,9 @@ StyledSheetClose.defaultProps = {
|
|
|
798
795
|
};
|
|
799
796
|
|
|
800
797
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
801
|
-
const StyledSheetFooter = styled__default
|
|
798
|
+
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
802
799
|
'data-garden-id': COMPONENT_ID$2,
|
|
803
|
-
'data-garden-version': '8.62.
|
|
800
|
+
'data-garden-version': '8.62.2'
|
|
804
801
|
}).withConfig({
|
|
805
802
|
displayName: "StyledSheetFooter",
|
|
806
803
|
componentId: "sc-2cktos-0"
|
|
@@ -810,9 +807,9 @@ StyledSheetFooter.defaultProps = {
|
|
|
810
807
|
};
|
|
811
808
|
|
|
812
809
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
813
|
-
const StyledSheetFooterItem = styled__default
|
|
810
|
+
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
814
811
|
'data-garden-id': COMPONENT_ID$1,
|
|
815
|
-
'data-garden-version': '8.62.
|
|
812
|
+
'data-garden-version': '8.62.2'
|
|
816
813
|
}).withConfig({
|
|
817
814
|
displayName: "StyledSheetFooterItem",
|
|
818
815
|
componentId: "sc-r9ixh-0"
|
|
@@ -822,9 +819,9 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
822
819
|
};
|
|
823
820
|
|
|
824
821
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
825
|
-
const StyledSheetHeader = styled__default
|
|
822
|
+
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
826
823
|
'data-garden-id': COMPONENT_ID,
|
|
827
|
-
'data-garden-version': '8.62.
|
|
824
|
+
'data-garden-version': '8.62.2'
|
|
828
825
|
}).withConfig({
|
|
829
826
|
displayName: "StyledSheetHeader",
|
|
830
827
|
componentId: "sc-o2ry8i-0"
|
|
@@ -833,7 +830,7 @@ StyledSheetHeader.defaultProps = {
|
|
|
833
830
|
theme: reactTheming.DEFAULT_THEME
|
|
834
831
|
};
|
|
835
832
|
|
|
836
|
-
const Chrome =
|
|
833
|
+
const Chrome = React__namespace.default.forwardRef((_ref, ref) => {
|
|
837
834
|
let {
|
|
838
835
|
hue,
|
|
839
836
|
isFluid,
|
|
@@ -869,47 +866,47 @@ const Chrome = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
869
866
|
}
|
|
870
867
|
return undefined;
|
|
871
868
|
}, [environment, isFluid]);
|
|
872
|
-
return
|
|
869
|
+
return React__namespace.default.createElement(ChromeContext.Provider, {
|
|
873
870
|
value: chromeContextValue
|
|
874
|
-
},
|
|
871
|
+
}, React__namespace.default.createElement(StyledChrome, _extends$3({
|
|
875
872
|
ref: ref
|
|
876
873
|
}, props)));
|
|
877
874
|
});
|
|
878
875
|
Chrome.displayName = 'Chrome';
|
|
879
876
|
Chrome.propTypes = {
|
|
880
|
-
hue: PropTypes__default
|
|
877
|
+
hue: PropTypes__default.default.string
|
|
881
878
|
};
|
|
882
879
|
|
|
883
|
-
const SkipNav =
|
|
880
|
+
const SkipNav = React__namespace.default.forwardRef((_ref, ref) => {
|
|
884
881
|
let {
|
|
885
882
|
targetId,
|
|
886
883
|
zIndex,
|
|
887
884
|
children,
|
|
888
885
|
...props
|
|
889
886
|
} = _ref;
|
|
890
|
-
return
|
|
887
|
+
return React__namespace.default.createElement(StyledSkipNav, _extends$3({
|
|
891
888
|
href: `#${targetId}`,
|
|
892
889
|
zIndex: zIndex,
|
|
893
890
|
ref: ref
|
|
894
|
-
}, props),
|
|
891
|
+
}, props), React__namespace.default.createElement(StyledSkipNavIcon, null), children);
|
|
895
892
|
});
|
|
896
893
|
SkipNav.displayName = 'SkipNav';
|
|
897
894
|
SkipNav.propTypes = {
|
|
898
|
-
targetId: PropTypes__default
|
|
899
|
-
zIndex: PropTypes__default
|
|
895
|
+
targetId: PropTypes__default.default.string.isRequired,
|
|
896
|
+
zIndex: PropTypes__default.default.number
|
|
900
897
|
};
|
|
901
898
|
SkipNav.defaultProps = {
|
|
902
899
|
zIndex: 1
|
|
903
900
|
};
|
|
904
901
|
|
|
905
|
-
const BodyContext =
|
|
902
|
+
const BodyContext = React__namespace.default.createContext({
|
|
906
903
|
hasFooter: true
|
|
907
904
|
});
|
|
908
905
|
const useBodyContext = () => {
|
|
909
906
|
return React.useContext(BodyContext);
|
|
910
907
|
};
|
|
911
908
|
|
|
912
|
-
const Body$1 =
|
|
909
|
+
const Body$1 = React__namespace.default.forwardRef((_ref, ref) => {
|
|
913
910
|
let {
|
|
914
911
|
hasFooter,
|
|
915
912
|
...props
|
|
@@ -917,72 +914,72 @@ const Body$1 = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
917
914
|
const bodyContextValue = React.useMemo(() => ({
|
|
918
915
|
hasFooter: !!hasFooter
|
|
919
916
|
}), [hasFooter]);
|
|
920
|
-
return
|
|
917
|
+
return React__namespace.default.createElement(BodyContext.Provider, {
|
|
921
918
|
value: bodyContextValue
|
|
922
|
-
},
|
|
919
|
+
}, React__namespace.default.createElement(StyledBody, _extends$3({
|
|
923
920
|
ref: ref
|
|
924
921
|
}, props)));
|
|
925
922
|
});
|
|
926
923
|
Body$1.displayName = 'Body';
|
|
927
924
|
Body$1.propTypes = {
|
|
928
|
-
hasFooter: PropTypes__default
|
|
925
|
+
hasFooter: PropTypes__default.default.bool
|
|
929
926
|
};
|
|
930
927
|
|
|
931
|
-
const Content =
|
|
928
|
+
const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
932
929
|
const {
|
|
933
930
|
hasFooter
|
|
934
931
|
} = useBodyContext();
|
|
935
|
-
return
|
|
932
|
+
return React__namespace.default.createElement(StyledContent, _extends$3({
|
|
936
933
|
ref: ref,
|
|
937
934
|
hasFooter: hasFooter
|
|
938
935
|
}, props));
|
|
939
936
|
});
|
|
940
937
|
Content.displayName = 'Content';
|
|
941
938
|
|
|
942
|
-
const Main =
|
|
939
|
+
const Main = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledMain, _extends$3({
|
|
943
940
|
ref: ref
|
|
944
941
|
}, props)));
|
|
945
942
|
Main.displayName = 'Main';
|
|
946
943
|
|
|
947
|
-
const Sidebar =
|
|
944
|
+
const Sidebar = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledSidebar, _extends$3({
|
|
948
945
|
ref: ref
|
|
949
946
|
}, props)));
|
|
950
947
|
Sidebar.displayName = 'Sidebar';
|
|
951
948
|
|
|
952
|
-
const Header$1 =
|
|
949
|
+
const Header$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, _extends$3({
|
|
953
950
|
ref: ref
|
|
954
951
|
}, props)));
|
|
955
952
|
Header$1.displayName = 'Header';
|
|
956
953
|
Header$1.propTypes = {
|
|
957
|
-
isStandalone: PropTypes__default
|
|
954
|
+
isStandalone: PropTypes__default.default.bool
|
|
958
955
|
};
|
|
959
956
|
|
|
960
957
|
const PLACEMENT = ['end', 'start'];
|
|
961
958
|
const PRODUCT = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
962
959
|
|
|
963
|
-
const HeaderItem =
|
|
960
|
+
const HeaderItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
964
961
|
let {
|
|
965
962
|
hasLogo,
|
|
966
963
|
product,
|
|
967
964
|
...other
|
|
968
965
|
} = _ref;
|
|
969
966
|
if (hasLogo) {
|
|
970
|
-
return
|
|
967
|
+
return React__namespace.default.createElement(StyledLogoHeaderItem, _extends$3({
|
|
971
968
|
ref: ref,
|
|
972
969
|
product: product
|
|
973
970
|
}, other));
|
|
974
971
|
}
|
|
975
|
-
return
|
|
972
|
+
return React__namespace.default.createElement(StyledHeaderItem, _extends$3({
|
|
976
973
|
ref: ref
|
|
977
974
|
}, other));
|
|
978
975
|
});
|
|
979
976
|
HeaderItem.displayName = 'HeaderItem';
|
|
980
977
|
HeaderItem.propTypes = {
|
|
981
|
-
maxX: PropTypes__default
|
|
982
|
-
maxY: PropTypes__default
|
|
983
|
-
isRound: PropTypes__default
|
|
984
|
-
product: PropTypes__default
|
|
985
|
-
hasLogo: PropTypes__default
|
|
978
|
+
maxX: PropTypes__default.default.bool,
|
|
979
|
+
maxY: PropTypes__default.default.bool,
|
|
980
|
+
isRound: PropTypes__default.default.bool,
|
|
981
|
+
product: PropTypes__default.default.oneOf(PRODUCT),
|
|
982
|
+
hasLogo: PropTypes__default.default.bool
|
|
986
983
|
};
|
|
987
984
|
|
|
988
985
|
const HeaderItemIcon = _ref => {
|
|
@@ -1002,44 +999,44 @@ const HeaderItemIcon = _ref => {
|
|
|
1002
999
|
...iconProps
|
|
1003
1000
|
});
|
|
1004
1001
|
};
|
|
1005
|
-
return
|
|
1002
|
+
return React__namespace.default.createElement(StyledHeaderItemIcon, _extends$3({
|
|
1006
1003
|
as: Icon
|
|
1007
1004
|
}, props));
|
|
1008
1005
|
}
|
|
1009
1006
|
return null;
|
|
1010
1007
|
};
|
|
1011
1008
|
|
|
1012
|
-
const HeaderItemText =
|
|
1009
|
+
const HeaderItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemText, _extends$3({
|
|
1013
1010
|
ref: ref
|
|
1014
1011
|
}, props)));
|
|
1015
1012
|
HeaderItemText.displayName = 'HeaderItemText';
|
|
1016
1013
|
HeaderItemText.propTypes = {
|
|
1017
|
-
isClipped: PropTypes__default
|
|
1014
|
+
isClipped: PropTypes__default.default.bool
|
|
1018
1015
|
};
|
|
1019
1016
|
|
|
1020
|
-
const HeaderItemWrapper =
|
|
1017
|
+
const HeaderItemWrapper = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemWrapper, _extends$3({
|
|
1021
1018
|
ref: ref
|
|
1022
1019
|
}, props)));
|
|
1023
1020
|
HeaderItemWrapper.displayName = 'HeaderItemWrapper';
|
|
1024
1021
|
|
|
1025
|
-
const Footer$1 =
|
|
1022
|
+
const Footer$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooter, _extends$3({
|
|
1026
1023
|
ref: ref
|
|
1027
1024
|
}, props)));
|
|
1028
1025
|
Footer$1.displayName = 'Footer';
|
|
1029
1026
|
|
|
1030
|
-
const FooterItem$1 =
|
|
1027
|
+
const FooterItem$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooterItem, _extends$3({
|
|
1031
1028
|
ref: ref
|
|
1032
1029
|
}, props)));
|
|
1033
1030
|
FooterItem$1.displayName = 'FooterItem';
|
|
1034
1031
|
|
|
1035
|
-
const NavContext =
|
|
1032
|
+
const NavContext = React__namespace.default.createContext({
|
|
1036
1033
|
isExpanded: false
|
|
1037
1034
|
});
|
|
1038
1035
|
const useNavContext = () => {
|
|
1039
1036
|
return React.useContext(NavContext);
|
|
1040
1037
|
};
|
|
1041
1038
|
|
|
1042
|
-
const Nav =
|
|
1039
|
+
const Nav = React__namespace.default.forwardRef((props, ref) => {
|
|
1043
1040
|
const {
|
|
1044
1041
|
hue,
|
|
1045
1042
|
isLight,
|
|
@@ -1048,9 +1045,9 @@ const Nav = React__default["default"].forwardRef((props, ref) => {
|
|
|
1048
1045
|
const navContextValue = React.useMemo(() => ({
|
|
1049
1046
|
isExpanded: !!props.isExpanded
|
|
1050
1047
|
}), [props.isExpanded]);
|
|
1051
|
-
return
|
|
1048
|
+
return React__namespace.default.createElement(NavContext.Provider, {
|
|
1052
1049
|
value: navContextValue
|
|
1053
|
-
},
|
|
1050
|
+
}, React__namespace.default.createElement(StyledNav, _extends$3({
|
|
1054
1051
|
ref: ref
|
|
1055
1052
|
}, props, {
|
|
1056
1053
|
hue: hue,
|
|
@@ -1060,10 +1057,10 @@ const Nav = React__default["default"].forwardRef((props, ref) => {
|
|
|
1060
1057
|
});
|
|
1061
1058
|
Nav.displayName = 'Nav';
|
|
1062
1059
|
Nav.propTypes = {
|
|
1063
|
-
isExpanded: PropTypes__default
|
|
1060
|
+
isExpanded: PropTypes__default.default.bool
|
|
1064
1061
|
};
|
|
1065
1062
|
|
|
1066
|
-
const NavItem =
|
|
1063
|
+
const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1067
1064
|
let {
|
|
1068
1065
|
hasLogo,
|
|
1069
1066
|
hasBrandmark,
|
|
@@ -1080,7 +1077,7 @@ const NavItem = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1080
1077
|
} = useNavContext();
|
|
1081
1078
|
const ariaCurrent = other.isCurrent || undefined;
|
|
1082
1079
|
if (hasLogo) {
|
|
1083
|
-
return
|
|
1080
|
+
return React__namespace.default.createElement(StyledLogoNavItem, _extends$3({
|
|
1084
1081
|
ref: ref,
|
|
1085
1082
|
isDark: isDark,
|
|
1086
1083
|
isLight: isLight,
|
|
@@ -1089,11 +1086,11 @@ const NavItem = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1089
1086
|
}, other));
|
|
1090
1087
|
}
|
|
1091
1088
|
if (hasBrandmark) {
|
|
1092
|
-
return
|
|
1089
|
+
return React__namespace.default.createElement(StyledBrandmarkNavItem, _extends$3({
|
|
1093
1090
|
ref: ref
|
|
1094
1091
|
}, other));
|
|
1095
1092
|
}
|
|
1096
|
-
return
|
|
1093
|
+
return React__namespace.default.createElement(StyledNavItem, _extends$3({
|
|
1097
1094
|
tabIndex: 0,
|
|
1098
1095
|
ref: ref,
|
|
1099
1096
|
isExpanded: isExpanded,
|
|
@@ -1105,9 +1102,9 @@ const NavItem = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1105
1102
|
});
|
|
1106
1103
|
NavItem.displayName = 'NavItem';
|
|
1107
1104
|
NavItem.propTypes = {
|
|
1108
|
-
product: PropTypes__default
|
|
1109
|
-
hasLogo: PropTypes__default
|
|
1110
|
-
hasBrandmark: PropTypes__default
|
|
1105
|
+
product: PropTypes__default.default.oneOf(PRODUCT),
|
|
1106
|
+
hasLogo: PropTypes__default.default.bool,
|
|
1107
|
+
hasBrandmark: PropTypes__default.default.bool
|
|
1111
1108
|
};
|
|
1112
1109
|
|
|
1113
1110
|
const NavItemIcon = _ref => {
|
|
@@ -1127,34 +1124,34 @@ const NavItemIcon = _ref => {
|
|
|
1127
1124
|
...iconProps
|
|
1128
1125
|
});
|
|
1129
1126
|
};
|
|
1130
|
-
return
|
|
1127
|
+
return React__namespace.default.createElement(StyledNavItemIcon, _extends$3({
|
|
1131
1128
|
as: Icon
|
|
1132
1129
|
}, props));
|
|
1133
1130
|
}
|
|
1134
1131
|
return null;
|
|
1135
1132
|
};
|
|
1136
1133
|
|
|
1137
|
-
const NavItemText =
|
|
1134
|
+
const NavItemText = React__namespace.default.forwardRef((props, ref) => {
|
|
1138
1135
|
const {
|
|
1139
1136
|
isExpanded
|
|
1140
1137
|
} = useNavContext();
|
|
1141
|
-
return
|
|
1138
|
+
return React__namespace.default.createElement(StyledNavItemText, _extends$3({
|
|
1142
1139
|
ref: ref,
|
|
1143
1140
|
isExpanded: isExpanded
|
|
1144
1141
|
}, props));
|
|
1145
1142
|
});
|
|
1146
1143
|
NavItemText.displayName = 'NavItemText';
|
|
1147
1144
|
NavItemText.propTypes = {
|
|
1148
|
-
isWrapped: PropTypes__default
|
|
1145
|
+
isWrapped: PropTypes__default.default.bool
|
|
1149
1146
|
};
|
|
1150
1147
|
|
|
1151
|
-
const SubNav =
|
|
1148
|
+
const SubNav = React__namespace.default.forwardRef((props, ref) => {
|
|
1152
1149
|
const {
|
|
1153
1150
|
hue,
|
|
1154
1151
|
isLight,
|
|
1155
1152
|
isDark
|
|
1156
1153
|
} = useChromeContext();
|
|
1157
|
-
return
|
|
1154
|
+
return React__namespace.default.createElement(StyledSubNav, _extends$3({
|
|
1158
1155
|
ref: ref,
|
|
1159
1156
|
hue: hue,
|
|
1160
1157
|
isLight: isLight,
|
|
@@ -1163,12 +1160,12 @@ const SubNav = React__default["default"].forwardRef((props, ref) => {
|
|
|
1163
1160
|
});
|
|
1164
1161
|
SubNav.displayName = 'SubNav';
|
|
1165
1162
|
|
|
1166
|
-
const SubNavItem =
|
|
1163
|
+
const SubNavItem = React__namespace.default.forwardRef((props, ref) => {
|
|
1167
1164
|
const {
|
|
1168
1165
|
isDark,
|
|
1169
1166
|
isLight
|
|
1170
1167
|
} = useChromeContext();
|
|
1171
|
-
return
|
|
1168
|
+
return React__namespace.default.createElement(StyledSubNavItem, _extends$3({
|
|
1172
1169
|
ref: ref,
|
|
1173
1170
|
isDark: isDark,
|
|
1174
1171
|
isLight: isLight
|
|
@@ -1176,18 +1173,18 @@ const SubNavItem = React__default["default"].forwardRef((props, ref) => {
|
|
|
1176
1173
|
});
|
|
1177
1174
|
SubNavItem.displayName = 'SubNavItem';
|
|
1178
1175
|
SubNavItem.propTypes = {
|
|
1179
|
-
isCurrent: PropTypes__default
|
|
1176
|
+
isCurrent: PropTypes__default.default.bool
|
|
1180
1177
|
};
|
|
1181
1178
|
|
|
1182
|
-
const SubNavItemText =
|
|
1179
|
+
const SubNavItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledSubNavItemText, _extends$3({
|
|
1183
1180
|
ref: ref
|
|
1184
1181
|
}, props)));
|
|
1185
1182
|
SubNavItemText.displayName = 'SubNavItemText';
|
|
1186
1183
|
SubNavItemText.propTypes = {
|
|
1187
|
-
isWrapped: PropTypes__default
|
|
1184
|
+
isWrapped: PropTypes__default.default.bool
|
|
1188
1185
|
};
|
|
1189
1186
|
|
|
1190
|
-
const CollapsibleSubNavItem =
|
|
1187
|
+
const CollapsibleSubNavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1191
1188
|
let {
|
|
1192
1189
|
header,
|
|
1193
1190
|
children,
|
|
@@ -1219,29 +1216,29 @@ const CollapsibleSubNavItem = React__default["default"].forwardRef((_ref, ref) =
|
|
|
1219
1216
|
panelRef.current.style.maxHeight = `${panelRef.current.scrollHeight}px`;
|
|
1220
1217
|
}
|
|
1221
1218
|
}, [expanded, children]);
|
|
1222
|
-
return
|
|
1219
|
+
return React__namespace.default.createElement("div", {
|
|
1223
1220
|
ref: ref
|
|
1224
|
-
},
|
|
1221
|
+
}, React__namespace.default.createElement("div", getHeaderProps({
|
|
1225
1222
|
ariaLevel: 2
|
|
1226
|
-
}),
|
|
1223
|
+
}), React__namespace.default.createElement(StyledSubNavItemHeader, getTriggerProps({
|
|
1227
1224
|
isExpanded: expanded,
|
|
1228
1225
|
index: 0,
|
|
1229
1226
|
role: null,
|
|
1230
1227
|
tabIndex: null,
|
|
1231
1228
|
...other
|
|
1232
|
-
}),
|
|
1229
|
+
}), React__namespace.default.createElement(React__namespace.default.Fragment, null, header, React__namespace.default.createElement(StyledSubNavItemIconWrapper, {
|
|
1233
1230
|
isExpanded: expanded
|
|
1234
|
-
},
|
|
1231
|
+
}, React__namespace.default.createElement(StyledSubNavItemIcon, null))))), React__namespace.default.createElement(StyledSubNavPanel, getPanelProps({
|
|
1235
1232
|
index: 0,
|
|
1236
1233
|
isHidden: !expanded,
|
|
1237
1234
|
ref: panelRef
|
|
1238
1235
|
}), children));
|
|
1239
1236
|
});
|
|
1240
1237
|
CollapsibleSubNavItem.propTypes = {
|
|
1241
|
-
header: PropTypes__default
|
|
1242
|
-
isExpanded: PropTypes__default
|
|
1243
|
-
onChange: PropTypes__default
|
|
1244
|
-
children: PropTypes__default
|
|
1238
|
+
header: PropTypes__default.default.any,
|
|
1239
|
+
isExpanded: PropTypes__default.default.bool,
|
|
1240
|
+
onChange: PropTypes__default.default.func,
|
|
1241
|
+
children: PropTypes__default.default.node
|
|
1245
1242
|
};
|
|
1246
1243
|
CollapsibleSubNavItem.displayName = 'CollapsibleSubNavItem';
|
|
1247
1244
|
|
|
@@ -1298,7 +1295,7 @@ const SheetTitle = React.forwardRef((_ref, ref) => {
|
|
|
1298
1295
|
const {
|
|
1299
1296
|
titleId
|
|
1300
1297
|
} = useSheetContext();
|
|
1301
|
-
return
|
|
1298
|
+
return React__namespace.default.createElement(StyledSheetTitle, _extends$3({
|
|
1302
1299
|
id: id || titleId,
|
|
1303
1300
|
ref: ref
|
|
1304
1301
|
}, props));
|
|
@@ -1314,7 +1311,7 @@ const SheetDescription = React.forwardRef((_ref, ref) => {
|
|
|
1314
1311
|
const {
|
|
1315
1312
|
descriptionId
|
|
1316
1313
|
} = useSheetContext();
|
|
1317
|
-
return
|
|
1314
|
+
return React__namespace.default.createElement(StyledSheetDescription, _extends$3({
|
|
1318
1315
|
id: id || descriptionId,
|
|
1319
1316
|
ref: ref
|
|
1320
1317
|
}, props));
|
|
@@ -1326,7 +1323,7 @@ const SheetHeader = React.forwardRef((props, ref) => {
|
|
|
1326
1323
|
const {
|
|
1327
1324
|
isCloseButtonPresent
|
|
1328
1325
|
} = useSheetContext();
|
|
1329
|
-
return
|
|
1326
|
+
return React__namespace.default.createElement(StyledSheetHeader, _extends$3({
|
|
1330
1327
|
ref: ref,
|
|
1331
1328
|
isCloseButtonPresent: isCloseButtonPresent
|
|
1332
1329
|
}, props));
|
|
@@ -1335,7 +1332,7 @@ SheetHeader.displayName = 'Sheet.Header';
|
|
|
1335
1332
|
const Header = SheetHeader;
|
|
1336
1333
|
|
|
1337
1334
|
const SheetBody = React.forwardRef((props, ref) => {
|
|
1338
|
-
return
|
|
1335
|
+
return React__namespace.default.createElement(StyledSheetBody, _extends$3({
|
|
1339
1336
|
ref: ref
|
|
1340
1337
|
}, props));
|
|
1341
1338
|
});
|
|
@@ -1343,7 +1340,7 @@ SheetBody.displayName = 'Sheet.Body';
|
|
|
1343
1340
|
const Body = SheetBody;
|
|
1344
1341
|
|
|
1345
1342
|
const SheetFooter = React.forwardRef((props, ref) => {
|
|
1346
|
-
return
|
|
1343
|
+
return React__namespace.default.createElement(StyledSheetFooter, _extends$3({
|
|
1347
1344
|
ref: ref
|
|
1348
1345
|
}, props));
|
|
1349
1346
|
});
|
|
@@ -1351,7 +1348,7 @@ SheetFooter.displayName = 'Sheet.Footer';
|
|
|
1351
1348
|
const Footer = SheetFooter;
|
|
1352
1349
|
|
|
1353
1350
|
const SheetFooterItem = React.forwardRef((props, ref) => {
|
|
1354
|
-
return
|
|
1351
|
+
return React__namespace.default.createElement(StyledSheetFooterItem, _extends$3({
|
|
1355
1352
|
ref: ref
|
|
1356
1353
|
}, props));
|
|
1357
1354
|
});
|
|
@@ -1386,15 +1383,15 @@ const SheetClose = React.forwardRef((props, ref) => {
|
|
|
1386
1383
|
setIsCloseButtonPresent(true);
|
|
1387
1384
|
return () => setIsCloseButtonPresent(false);
|
|
1388
1385
|
}, [setIsCloseButtonPresent]);
|
|
1389
|
-
return
|
|
1386
|
+
return React__namespace.default.createElement(StyledSheetClose, _extends$3({
|
|
1390
1387
|
"aria-label": "Close Sheet",
|
|
1391
1388
|
ref: ref
|
|
1392
|
-
}, props),
|
|
1389
|
+
}, props), React__namespace.default.createElement(SvgXStroke, null));
|
|
1393
1390
|
});
|
|
1394
1391
|
SheetClose.displayName = 'Sheet.Close';
|
|
1395
1392
|
const Close = SheetClose;
|
|
1396
1393
|
|
|
1397
|
-
const SheetComponent =
|
|
1394
|
+
const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1398
1395
|
let {
|
|
1399
1396
|
id,
|
|
1400
1397
|
isOpen,
|
|
@@ -1409,7 +1406,7 @@ const SheetComponent = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1409
1406
|
const sheetRef = React.useRef(null);
|
|
1410
1407
|
const seed = reactUid.useUIDSeed();
|
|
1411
1408
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1412
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'8.62.
|
|
1409
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'8.62.2'}`), [id, seed]);
|
|
1413
1410
|
const titleId = `${idPrefix}--title`;
|
|
1414
1411
|
const descriptionId = `${idPrefix}--description`;
|
|
1415
1412
|
const sheetContext = React.useMemo(() => ({
|
|
@@ -1424,9 +1421,9 @@ const SheetComponent = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1424
1421
|
focusOnMount,
|
|
1425
1422
|
restoreFocus
|
|
1426
1423
|
});
|
|
1427
|
-
return
|
|
1424
|
+
return React__namespace.default.createElement(SheetContext.Provider, {
|
|
1428
1425
|
value: sheetContext
|
|
1429
|
-
},
|
|
1426
|
+
}, React__namespace.default.createElement(StyledSheet, _extends$3({
|
|
1430
1427
|
isOpen: isOpen,
|
|
1431
1428
|
isAnimated: isAnimated,
|
|
1432
1429
|
placement: placement,
|
|
@@ -1435,8 +1432,8 @@ const SheetComponent = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1435
1432
|
id: idPrefix,
|
|
1436
1433
|
"aria-labelledby": titleId,
|
|
1437
1434
|
"aria-describedby": descriptionId,
|
|
1438
|
-
ref: mergeRefs__default
|
|
1439
|
-
}, props),
|
|
1435
|
+
ref: mergeRefs__default.default([sheetRef, ref])
|
|
1436
|
+
}, props), React__namespace.default.createElement(StyledSheetWrapper, {
|
|
1440
1437
|
isOpen: isOpen,
|
|
1441
1438
|
isAnimated: isAnimated,
|
|
1442
1439
|
placement: placement,
|
|
@@ -1445,13 +1442,13 @@ const SheetComponent = React__default["default"].forwardRef((_ref, ref) => {
|
|
|
1445
1442
|
});
|
|
1446
1443
|
SheetComponent.displayName = 'Sheet';
|
|
1447
1444
|
SheetComponent.propTypes = {
|
|
1448
|
-
id: PropTypes__default
|
|
1449
|
-
isOpen: PropTypes__default
|
|
1450
|
-
isAnimated: PropTypes__default
|
|
1451
|
-
focusOnMount: PropTypes__default
|
|
1452
|
-
restoreFocus: PropTypes__default
|
|
1453
|
-
placement: PropTypes__default
|
|
1454
|
-
size: PropTypes__default
|
|
1445
|
+
id: PropTypes__default.default.string,
|
|
1446
|
+
isOpen: PropTypes__default.default.bool,
|
|
1447
|
+
isAnimated: PropTypes__default.default.bool,
|
|
1448
|
+
focusOnMount: PropTypes__default.default.bool,
|
|
1449
|
+
restoreFocus: PropTypes__default.default.bool,
|
|
1450
|
+
placement: PropTypes__default.default.oneOf(PLACEMENT),
|
|
1451
|
+
size: PropTypes__default.default.string
|
|
1455
1452
|
};
|
|
1456
1453
|
SheetComponent.defaultProps = {
|
|
1457
1454
|
isAnimated: true,
|