@zendeskgarden/react-chrome 8.44.1 → 8.47.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/dist/index.cjs.js +588 -174
- package/dist/index.esm.js +588 -176
- package/dist/typings/elements/sheet/Sheet.d.ts +42 -0
- package/dist/typings/elements/sheet/components/Body.d.ts +8 -0
- package/dist/typings/elements/sheet/components/Close.d.ts +8 -0
- package/dist/typings/elements/sheet/components/Description.d.ts +8 -0
- package/dist/typings/elements/sheet/components/Footer.d.ts +9 -0
- package/dist/typings/elements/sheet/components/FooterItem.d.ts +8 -0
- package/dist/typings/elements/sheet/components/Header.d.ts +8 -0
- package/dist/typings/elements/sheet/components/Title.d.ts +8 -0
- package/dist/typings/index.d.ts +1 -0
- package/dist/typings/styled/index.d.ts +10 -0
- package/dist/typings/styled/sheet/StyledSheet.d.ts +18 -0
- package/dist/typings/styled/sheet/StyledSheetBody.d.ts +10 -0
- package/dist/typings/styled/sheet/StyledSheetClose.d.ts +11 -0
- package/dist/typings/styled/sheet/StyledSheetDescription.d.ts +11 -0
- package/dist/typings/styled/sheet/StyledSheetFooter.d.ts +15 -0
- package/dist/typings/styled/sheet/StyledSheetFooterItem.d.ts +11 -0
- package/dist/typings/styled/sheet/StyledSheetHeader.d.ts +11 -0
- package/dist/typings/styled/sheet/StyledSheetTitle.d.ts +11 -0
- package/dist/typings/styled/sheet/StyledSheetWrapper.d.ts +18 -0
- package/dist/typings/utils/useFocusableMount.d.ts +14 -0
- package/dist/typings/utils/useSheetContext.d.ts +13 -0
- package/package.json +6 -5
package/dist/index.esm.js
CHANGED
|
@@ -6,13 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as React from 'react';
|
|
9
|
-
import React__default, { useContext, useMemo, useEffect, Children, useRef, useState } from 'react';
|
|
9
|
+
import React__default, { useContext, useMemo, useEffect, Children, useRef, useState, createContext, forwardRef } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import styled, { css, keyframes, ThemeContext } from 'styled-components';
|
|
12
12
|
import { math, rgba, readableColor } from 'polished';
|
|
13
13
|
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, PALETTE, useDocument } from '@zendeskgarden/react-theming';
|
|
14
14
|
import { useAccordion } from '@zendeskgarden/container-accordion';
|
|
15
15
|
import { getControlledValue } from '@zendeskgarden/container-utilities';
|
|
16
|
+
import { useUIDSeed } from 'react-uid';
|
|
17
|
+
import mergeRefs from 'react-merge-refs';
|
|
16
18
|
|
|
17
19
|
function ownKeys(object, enumerableOnly) {
|
|
18
20
|
var keys = Object.keys(object);
|
|
@@ -67,8 +69,8 @@ function _defineProperty(obj, key, value) {
|
|
|
67
69
|
return obj;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
function _extends$
|
|
71
|
-
_extends$
|
|
72
|
+
function _extends$3() {
|
|
73
|
+
_extends$3 = Object.assign || function (target) {
|
|
72
74
|
for (var i = 1; i < arguments.length; i++) {
|
|
73
75
|
var source = arguments[i];
|
|
74
76
|
|
|
@@ -82,7 +84,7 @@ function _extends$2() {
|
|
|
82
84
|
return target;
|
|
83
85
|
};
|
|
84
86
|
|
|
85
|
-
return _extends$
|
|
87
|
+
return _extends$3.apply(this, arguments);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -187,10 +189,10 @@ var useChromeContext = function useChromeContext() {
|
|
|
187
189
|
return useContext(ChromeContext);
|
|
188
190
|
};
|
|
189
191
|
|
|
190
|
-
var COMPONENT_ID$
|
|
192
|
+
var COMPONENT_ID$A = 'chrome.chrome';
|
|
191
193
|
var StyledChrome = styled.div.attrs({
|
|
192
|
-
'data-garden-id': COMPONENT_ID$
|
|
193
|
-
'data-garden-version': '8.
|
|
194
|
+
'data-garden-id': COMPONENT_ID$A,
|
|
195
|
+
'data-garden-version': '8.47.0'
|
|
194
196
|
}).withConfig({
|
|
195
197
|
displayName: "StyledChrome",
|
|
196
198
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -199,16 +201,16 @@ var StyledChrome = styled.div.attrs({
|
|
|
199
201
|
}, function (props) {
|
|
200
202
|
return props.theme.rtl && 'rtl';
|
|
201
203
|
}, function (props) {
|
|
202
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
204
|
+
return retrieveComponentStyles(COMPONENT_ID$A, props);
|
|
203
205
|
});
|
|
204
206
|
StyledChrome.defaultProps = {
|
|
205
207
|
theme: DEFAULT_THEME
|
|
206
208
|
};
|
|
207
209
|
|
|
208
|
-
var COMPONENT_ID$
|
|
210
|
+
var COMPONENT_ID$z = 'chrome.header_item_icon';
|
|
209
211
|
var StyledHeaderItemIcon = styled.div.attrs({
|
|
210
|
-
'data-garden-id': COMPONENT_ID$
|
|
211
|
-
'data-garden-version': '8.
|
|
212
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
213
|
+
'data-garden-version': '8.47.0'
|
|
212
214
|
}).withConfig({
|
|
213
215
|
displayName: "StyledHeaderItemIcon",
|
|
214
216
|
componentId: "sc-1jhhp6z-0"
|
|
@@ -219,13 +221,13 @@ var StyledHeaderItemIcon = styled.div.attrs({
|
|
|
219
221
|
}, function (props) {
|
|
220
222
|
return props.theme.iconSizes.md;
|
|
221
223
|
}, function (props) {
|
|
222
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
224
|
+
return retrieveComponentStyles(COMPONENT_ID$z, props);
|
|
223
225
|
});
|
|
224
226
|
StyledHeaderItemIcon.defaultProps = {
|
|
225
227
|
theme: DEFAULT_THEME
|
|
226
228
|
};
|
|
227
229
|
|
|
228
|
-
var COMPONENT_ID$
|
|
230
|
+
var COMPONENT_ID$y = 'chrome.base_header_item';
|
|
229
231
|
var getHeaderItemSize = function getHeaderItemSize(props) {
|
|
230
232
|
return "".concat(props.theme.space.base * 7.5, "px");
|
|
231
233
|
};
|
|
@@ -234,8 +236,8 @@ var sizeStyles$4 = function sizeStyles(props) {
|
|
|
234
236
|
return css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : "".concat(size, "px"), getLineHeight(size, props.theme.fontSizes.md));
|
|
235
237
|
};
|
|
236
238
|
var StyledBaseHeaderItem = styled.button.attrs({
|
|
237
|
-
'data-garden-id': COMPONENT_ID$
|
|
238
|
-
'data-garden-version': '8.
|
|
239
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
240
|
+
'data-garden-version': '8.47.0'
|
|
239
241
|
}).withConfig({
|
|
240
242
|
displayName: "StyledBaseHeaderItem",
|
|
241
243
|
componentId: "sc-1qua7h6-0"
|
|
@@ -254,31 +256,31 @@ var StyledBaseHeaderItem = styled.button.attrs({
|
|
|
254
256
|
}
|
|
255
257
|
return props.theme.borderRadii.md;
|
|
256
258
|
}, sizeStyles$4, function (props) {
|
|
257
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
259
|
+
return retrieveComponentStyles(COMPONENT_ID$y, props);
|
|
258
260
|
});
|
|
259
261
|
StyledBaseHeaderItem.defaultProps = {
|
|
260
262
|
theme: DEFAULT_THEME
|
|
261
263
|
};
|
|
262
264
|
|
|
263
|
-
var COMPONENT_ID$
|
|
265
|
+
var COMPONENT_ID$x = 'chrome.header_item_text';
|
|
264
266
|
var clippedStyling = css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
265
267
|
var StyledHeaderItemText = styled.span.attrs({
|
|
266
|
-
'data-garden-id': COMPONENT_ID$
|
|
267
|
-
'data-garden-version': '8.
|
|
268
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
269
|
+
'data-garden-version': '8.47.0'
|
|
268
270
|
}).withConfig({
|
|
269
271
|
displayName: "StyledHeaderItemText",
|
|
270
272
|
componentId: "sc-goz7la-0"
|
|
271
273
|
})(["margin:0 3px;", " ", ";"], function (props) {
|
|
272
274
|
return props.isClipped && clippedStyling;
|
|
273
275
|
}, function (props) {
|
|
274
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
276
|
+
return retrieveComponentStyles(COMPONENT_ID$x, props);
|
|
275
277
|
});
|
|
276
278
|
StyledHeaderItemText.defaultProps = {
|
|
277
279
|
theme: DEFAULT_THEME
|
|
278
280
|
};
|
|
279
281
|
|
|
280
|
-
var COMPONENT_ID$
|
|
281
|
-
var colorStyles$
|
|
282
|
+
var COMPONENT_ID$w = 'chrome.nav';
|
|
283
|
+
var colorStyles$6 = function colorStyles(props) {
|
|
282
284
|
var shade = props.isDark || props.isLight ? 600 : 700;
|
|
283
285
|
var backgroundColor = getColor(props.hue, shade, props.theme);
|
|
284
286
|
var foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
@@ -291,8 +293,8 @@ var getExpandedNavWidth = function getExpandedNavWidth() {
|
|
|
291
293
|
return "200px";
|
|
292
294
|
};
|
|
293
295
|
var StyledNav = styled.nav.attrs({
|
|
294
|
-
'data-garden-id': COMPONENT_ID$
|
|
295
|
-
'data-garden-version': '8.
|
|
296
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
297
|
+
'data-garden-version': '8.47.0'
|
|
296
298
|
}).withConfig({
|
|
297
299
|
displayName: "StyledNav",
|
|
298
300
|
componentId: "sc-6j462r-0"
|
|
@@ -301,15 +303,15 @@ var StyledNav = styled.nav.attrs({
|
|
|
301
303
|
}, function (props) {
|
|
302
304
|
return props.theme.fontSizes.md;
|
|
303
305
|
}, function (props) {
|
|
304
|
-
return colorStyles$
|
|
306
|
+
return colorStyles$6(props);
|
|
305
307
|
}, function (props) {
|
|
306
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
308
|
+
return retrieveComponentStyles(COMPONENT_ID$w, props);
|
|
307
309
|
});
|
|
308
310
|
StyledNav.defaultProps = {
|
|
309
311
|
theme: DEFAULT_THEME
|
|
310
312
|
};
|
|
311
313
|
|
|
312
|
-
var COMPONENT_ID$
|
|
314
|
+
var COMPONENT_ID$v = 'chrome.header_item';
|
|
313
315
|
var retrieveProductColor$1 = function retrieveProductColor(props) {
|
|
314
316
|
switch (props.product) {
|
|
315
317
|
case 'chat':
|
|
@@ -331,8 +333,8 @@ var retrieveProductColor$1 = function retrieveProductColor(props) {
|
|
|
331
333
|
}
|
|
332
334
|
};
|
|
333
335
|
var StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
334
|
-
'data-garden-id': COMPONENT_ID$
|
|
335
|
-
'data-garden-version': '8.
|
|
336
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
337
|
+
'data-garden-version': '8.47.0',
|
|
336
338
|
as: 'div'
|
|
337
339
|
}).withConfig({
|
|
338
340
|
displayName: "StyledLogoHeaderItem",
|
|
@@ -356,13 +358,13 @@ var StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
|
356
358
|
}, function (props) {
|
|
357
359
|
return props.theme.iconSizes.lg;
|
|
358
360
|
}, function (props) {
|
|
359
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
361
|
+
return retrieveComponentStyles(COMPONENT_ID$v, props);
|
|
360
362
|
});
|
|
361
363
|
StyledLogoHeaderItem.defaultProps = {
|
|
362
364
|
theme: DEFAULT_THEME
|
|
363
365
|
};
|
|
364
366
|
|
|
365
|
-
var COMPONENT_ID$
|
|
367
|
+
var COMPONENT_ID$u = 'chrome.base_nav_item';
|
|
366
368
|
var getNavItemHeight = function getNavItemHeight(props) {
|
|
367
369
|
return "".concat(props.theme.space.base * 13, "px");
|
|
368
370
|
};
|
|
@@ -372,8 +374,8 @@ var sizeStyles$3 = function sizeStyles(props) {
|
|
|
372
374
|
return css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
373
375
|
};
|
|
374
376
|
var StyledBaseNavItem = styled.button.attrs({
|
|
375
|
-
'data-garden-id': COMPONENT_ID$
|
|
376
|
-
'data-garden-version': '8.
|
|
377
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
378
|
+
'data-garden-version': '8.47.0'
|
|
377
379
|
}).withConfig({
|
|
378
380
|
displayName: "StyledBaseNavItem",
|
|
379
381
|
componentId: "sc-zvo43f-0"
|
|
@@ -384,13 +386,13 @@ StyledBaseNavItem.defaultProps = {
|
|
|
384
386
|
theme: DEFAULT_THEME
|
|
385
387
|
};
|
|
386
388
|
|
|
387
|
-
var COMPONENT_ID$
|
|
389
|
+
var COMPONENT_ID$t = 'chrome.header';
|
|
388
390
|
var getHeaderHeight = function getHeaderHeight(props) {
|
|
389
391
|
return getNavItemHeight(props);
|
|
390
392
|
};
|
|
391
393
|
var StyledHeader = styled.header.attrs({
|
|
392
|
-
'data-garden-id': COMPONENT_ID$
|
|
393
|
-
'data-garden-version': '8.
|
|
394
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
395
|
+
'data-garden-version': '8.47.0'
|
|
394
396
|
}).withConfig({
|
|
395
397
|
displayName: "StyledHeader",
|
|
396
398
|
componentId: "sc-1cexpz-0"
|
|
@@ -411,18 +413,18 @@ var StyledHeader = styled.header.attrs({
|
|
|
411
413
|
}, function (props) {
|
|
412
414
|
return props.isStandalone && "\n ".concat(StyledLogoHeaderItem, " {\n display: inline-flex;\n }\n ");
|
|
413
415
|
}, function (props) {
|
|
414
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
416
|
+
return retrieveComponentStyles(COMPONENT_ID$t, props);
|
|
415
417
|
});
|
|
416
418
|
StyledHeader.defaultProps = {
|
|
417
419
|
theme: DEFAULT_THEME
|
|
418
420
|
};
|
|
419
421
|
|
|
420
|
-
var COMPONENT_ID$
|
|
422
|
+
var COMPONENT_ID$s = 'chrome.skipnav';
|
|
421
423
|
var animationStyles = function animationStyles() {
|
|
422
424
|
var animationName = keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
423
425
|
return css(["transition:opacity 0.2s ease-out,clip 0s linear 0.2s;opacity:0;clip:rect(0,0,0,0);&:focus{transition:opacity 0.2s ease-in-out;animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ", ";opacity:1;clip:rect(0,150vw,100vh,-50vw);}"], animationName);
|
|
424
426
|
};
|
|
425
|
-
var colorStyles$
|
|
427
|
+
var colorStyles$5 = function colorStyles(theme) {
|
|
426
428
|
var color = getColor('primaryHue', 600, theme);
|
|
427
429
|
var borderColor = getColor('neutralHue', 300, theme);
|
|
428
430
|
var boxShadow = theme.shadows.lg("".concat(theme.space.base * 5, "px"), "".concat(theme.space.base * 7, "px"), getColor('chromeHue', 600, theme, 0.15));
|
|
@@ -437,8 +439,8 @@ var sizeStyles$2 = function sizeStyles(props) {
|
|
|
437
439
|
return css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
438
440
|
};
|
|
439
441
|
var StyledSkipNav = styled.a.attrs({
|
|
440
|
-
'data-garden-id': COMPONENT_ID$
|
|
441
|
-
'data-garden-version': '8.
|
|
442
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
443
|
+
'data-garden-version': '8.47.0'
|
|
442
444
|
}).withConfig({
|
|
443
445
|
displayName: "StyledSkipNav",
|
|
444
446
|
componentId: "sc-1tsro34-0"
|
|
@@ -453,41 +455,41 @@ var StyledSkipNav = styled.a.attrs({
|
|
|
453
455
|
}, function (props) {
|
|
454
456
|
return sizeStyles$2(props);
|
|
455
457
|
}, function (props) {
|
|
456
|
-
return colorStyles$
|
|
458
|
+
return colorStyles$5(props.theme);
|
|
457
459
|
}, function (props) {
|
|
458
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
460
|
+
return retrieveComponentStyles(COMPONENT_ID$s, props);
|
|
459
461
|
});
|
|
460
462
|
StyledSkipNav.defaultProps = {
|
|
461
463
|
theme: DEFAULT_THEME
|
|
462
464
|
};
|
|
463
465
|
|
|
464
|
-
function _extends$
|
|
466
|
+
function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
465
467
|
|
|
466
|
-
var _ref$
|
|
468
|
+
var _ref$2 = /*#__PURE__*/React.createElement("path", {
|
|
467
469
|
fill: "currentColor",
|
|
468
470
|
d: "M4.441 7.38l.095.083.939.939-.708.707-.939-.939-2 2-.132.142a2.829 2.829 0 003.99 3.99l.142-.132 2-2-.939-.939.707-.708.94.94a1 1 0 01.083 1.32l-.083.094-2 2A3.828 3.828 0 01.972 9.621l.15-.158 2-2A1 1 0 014.34 7.31l.101.07zm7.413-3.234a.5.5 0 01.057.638l-.057.07-7 7a.5.5 0 01-.765-.638l.057-.07 7-7a.5.5 0 01.708 0zm3.023-3.025a3.829 3.829 0 01.15 5.257l-.15.158-2 2a1 1 0 01-1.32.083l-.094-.083-.94-.94.708-.707.939.94 2-2 .132-.142a2.829 2.829 0 00-3.99-3.99l-.142.131-2 2 .939.939-.707.708-.94-.94a1 1 0 01-.082-1.32l.083-.094 2-2a3.828 3.828 0 015.414 0z"
|
|
469
471
|
});
|
|
470
472
|
|
|
471
473
|
function SvgLinkStroke(props) {
|
|
472
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
474
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
473
475
|
xmlns: "http://www.w3.org/2000/svg",
|
|
474
476
|
width: 16,
|
|
475
477
|
height: 16,
|
|
476
478
|
viewBox: "0 0 16 16",
|
|
477
479
|
focusable: "false",
|
|
478
480
|
role: "presentation"
|
|
479
|
-
}, props), _ref$
|
|
481
|
+
}, props), _ref$2);
|
|
480
482
|
}
|
|
481
483
|
|
|
482
|
-
var COMPONENT_ID$
|
|
484
|
+
var COMPONENT_ID$r = 'chrome.skipnav_icon';
|
|
483
485
|
var sizeStyles$1 = function sizeStyles(theme) {
|
|
484
486
|
var margin = "".concat(theme.space.base * 2, "px");
|
|
485
487
|
var size = theme.iconSizes.md;
|
|
486
488
|
return css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
487
489
|
};
|
|
488
490
|
var StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
489
|
-
'data-garden-id': COMPONENT_ID$
|
|
490
|
-
'data-garden-version': '8.
|
|
491
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
492
|
+
'data-garden-version': '8.47.0'
|
|
491
493
|
}).withConfig({
|
|
492
494
|
displayName: "StyledSkipNavIcon",
|
|
493
495
|
componentId: "sc-1ika5z4-0"
|
|
@@ -498,35 +500,35 @@ var StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
|
498
500
|
}, function (props) {
|
|
499
501
|
return sizeStyles$1(props.theme);
|
|
500
502
|
}, function (props) {
|
|
501
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
503
|
+
return retrieveComponentStyles(COMPONENT_ID$r, props);
|
|
502
504
|
});
|
|
503
505
|
StyledSkipNavIcon.defaultProps = {
|
|
504
506
|
theme: DEFAULT_THEME
|
|
505
507
|
};
|
|
506
508
|
|
|
507
|
-
var COMPONENT_ID$
|
|
509
|
+
var COMPONENT_ID$q = 'chrome.body';
|
|
508
510
|
var StyledBody = styled.div.attrs({
|
|
509
|
-
'data-garden-id': COMPONENT_ID$
|
|
510
|
-
'data-garden-version': '8.
|
|
511
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
512
|
+
'data-garden-version': '8.47.0'
|
|
511
513
|
}).withConfig({
|
|
512
514
|
displayName: "StyledBody",
|
|
513
515
|
componentId: "sc-c7h9kv-0"
|
|
514
516
|
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], function (props) {
|
|
515
517
|
return getColor('neutralHue', 100, props.theme);
|
|
516
518
|
}, function (props) {
|
|
517
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
519
|
+
return retrieveComponentStyles(COMPONENT_ID$q, props);
|
|
518
520
|
});
|
|
519
521
|
StyledBody.defaultProps = {
|
|
520
522
|
theme: DEFAULT_THEME
|
|
521
523
|
};
|
|
522
524
|
|
|
523
|
-
var COMPONENT_ID$
|
|
525
|
+
var COMPONENT_ID$p = 'chrome.footer';
|
|
524
526
|
var getFooterHeight = function getFooterHeight(props) {
|
|
525
527
|
return "".concat(props.theme.space.base * 20, "px");
|
|
526
528
|
};
|
|
527
529
|
var StyledFooter = styled.footer.attrs({
|
|
528
|
-
'data-garden-id': COMPONENT_ID$
|
|
529
|
-
'data-garden-version': '8.
|
|
530
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
531
|
+
'data-garden-version': '8.47.0'
|
|
530
532
|
}).withConfig({
|
|
531
533
|
displayName: "StyledFooter",
|
|
532
534
|
componentId: "sc-v7lib2-0"
|
|
@@ -537,16 +539,16 @@ var StyledFooter = styled.footer.attrs({
|
|
|
537
539
|
}, function (props) {
|
|
538
540
|
return props.theme.space.base * 9;
|
|
539
541
|
}, getFooterHeight, function (props) {
|
|
540
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
542
|
+
return retrieveComponentStyles(COMPONENT_ID$p, props);
|
|
541
543
|
});
|
|
542
544
|
StyledFooter.defaultProps = {
|
|
543
545
|
theme: DEFAULT_THEME
|
|
544
546
|
};
|
|
545
547
|
|
|
546
|
-
var COMPONENT_ID$
|
|
548
|
+
var COMPONENT_ID$o = 'chrome.content';
|
|
547
549
|
var StyledContent = styled.div.attrs({
|
|
548
|
-
'data-garden-id': COMPONENT_ID$
|
|
549
|
-
'data-garden-version': '8.
|
|
550
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
551
|
+
'data-garden-version': '8.47.0'
|
|
550
552
|
}).withConfig({
|
|
551
553
|
displayName: "StyledContent",
|
|
552
554
|
componentId: "sc-qcuzxn-0"
|
|
@@ -559,32 +561,32 @@ var StyledContent = styled.div.attrs({
|
|
|
559
561
|
}, function (props) {
|
|
560
562
|
return props.theme.fontSizes.md;
|
|
561
563
|
}, function (props) {
|
|
562
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
564
|
+
return retrieveComponentStyles(COMPONENT_ID$o, props);
|
|
563
565
|
});
|
|
564
566
|
StyledContent.defaultProps = {
|
|
565
567
|
theme: DEFAULT_THEME
|
|
566
568
|
};
|
|
567
569
|
|
|
568
|
-
var COMPONENT_ID$
|
|
570
|
+
var COMPONENT_ID$n = 'chrome.main';
|
|
569
571
|
var StyledMain = styled.main.attrs({
|
|
570
|
-
'data-garden-id': COMPONENT_ID$
|
|
571
|
-
'data-garden-version': '8.
|
|
572
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
573
|
+
'data-garden-version': '8.47.0'
|
|
572
574
|
}).withConfig({
|
|
573
575
|
displayName: "StyledMain",
|
|
574
576
|
componentId: "sc-t61cre-0"
|
|
575
577
|
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], function (props) {
|
|
576
578
|
return props.theme.colors.background;
|
|
577
579
|
}, function (props) {
|
|
578
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
580
|
+
return retrieveComponentStyles(COMPONENT_ID$n, props);
|
|
579
581
|
});
|
|
580
582
|
StyledMain.defaultProps = {
|
|
581
583
|
theme: DEFAULT_THEME
|
|
582
584
|
};
|
|
583
585
|
|
|
584
|
-
var COMPONENT_ID$
|
|
586
|
+
var COMPONENT_ID$m = 'chrome.sidebar';
|
|
585
587
|
var StyledSidebar = styled.aside.attrs({
|
|
586
|
-
'data-garden-id': COMPONENT_ID$
|
|
587
|
-
'data-garden-version': '8.
|
|
588
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
589
|
+
'data-garden-version': '8.47.0'
|
|
588
590
|
}).withConfig({
|
|
589
591
|
displayName: "StyledSidebar",
|
|
590
592
|
componentId: "sc-1q77fuw-0"
|
|
@@ -593,36 +595,36 @@ var StyledSidebar = styled.aside.attrs({
|
|
|
593
595
|
}, function (props) {
|
|
594
596
|
return "".concat(props.theme.borders.sm, " ").concat(getColor('neutralHue', 300, props.theme));
|
|
595
597
|
}, function (props) {
|
|
596
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
598
|
+
return retrieveComponentStyles(COMPONENT_ID$m, props);
|
|
597
599
|
});
|
|
598
600
|
StyledSidebar.defaultProps = {
|
|
599
601
|
theme: DEFAULT_THEME
|
|
600
602
|
};
|
|
601
603
|
|
|
602
|
-
var COMPONENT_ID$
|
|
604
|
+
var COMPONENT_ID$l = 'chrome.footer_item';
|
|
603
605
|
var StyledFooterItem = styled.div.attrs({
|
|
604
|
-
'data-garden-id': COMPONENT_ID$
|
|
605
|
-
'data-garden-version': '8.
|
|
606
|
+
'data-garden-id': COMPONENT_ID$l,
|
|
607
|
+
'data-garden-version': '8.47.0'
|
|
606
608
|
}).withConfig({
|
|
607
609
|
displayName: "StyledFooterItem",
|
|
608
610
|
componentId: "sc-1cktm85-0"
|
|
609
611
|
})(["margin:", ";", ";"], function (props) {
|
|
610
612
|
return "0 ".concat(props.theme.space.base, "px");
|
|
611
613
|
}, function (props) {
|
|
612
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
614
|
+
return retrieveComponentStyles(COMPONENT_ID$l, props);
|
|
613
615
|
});
|
|
614
616
|
StyledFooterItem.defaultProps = {
|
|
615
617
|
theme: DEFAULT_THEME
|
|
616
618
|
};
|
|
617
619
|
|
|
618
|
-
var COMPONENT_ID$
|
|
620
|
+
var COMPONENT_ID$k = 'chrome.header_item';
|
|
619
621
|
var imgStyles = function imgStyles(props) {
|
|
620
622
|
var size = math("".concat(getHeaderItemSize(props), " - ").concat(props.theme.space.base * 2));
|
|
621
623
|
return css(["img{margin:0;border-radius:", ";width:", ";height:", ";}"], math("".concat(props.theme.borderRadii.md, " - 1")), size, size);
|
|
622
624
|
};
|
|
623
625
|
var StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
624
|
-
'data-garden-id': COMPONENT_ID$
|
|
625
|
-
'data-garden-version': '8.
|
|
626
|
+
'data-garden-id': COMPONENT_ID$k,
|
|
627
|
+
'data-garden-version': '8.47.0'
|
|
626
628
|
}).withConfig({
|
|
627
629
|
displayName: "StyledHeaderItem",
|
|
628
630
|
componentId: "sc-14sft6n-0"
|
|
@@ -639,28 +641,28 @@ StyledHeaderItemText, function (props) {
|
|
|
639
641
|
}, imgStyles, function (props) {
|
|
640
642
|
return props.isRound && "\n ".concat(StyledHeaderItemIcon, " {\n border-radius: 100px;\n }\n ");
|
|
641
643
|
}, function (props) {
|
|
642
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
644
|
+
return retrieveComponentStyles(COMPONENT_ID$k, props);
|
|
643
645
|
});
|
|
644
646
|
StyledHeaderItem.defaultProps = {
|
|
645
647
|
theme: DEFAULT_THEME
|
|
646
648
|
};
|
|
647
649
|
|
|
648
|
-
var COMPONENT_ID$
|
|
650
|
+
var COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
649
651
|
var StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
|
|
650
|
-
'data-garden-id': COMPONENT_ID$
|
|
651
|
-
'data-garden-version': '8.
|
|
652
|
+
'data-garden-id': COMPONENT_ID$j,
|
|
653
|
+
'data-garden-version': '8.47.0',
|
|
652
654
|
as: 'div'
|
|
653
655
|
}).withConfig({
|
|
654
656
|
displayName: "StyledHeaderItemWrapper",
|
|
655
657
|
componentId: "sc-1uieu55-0"
|
|
656
658
|
})(["", ";"], function (props) {
|
|
657
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
659
|
+
return retrieveComponentStyles(COMPONENT_ID$j, props);
|
|
658
660
|
});
|
|
659
661
|
StyledHeaderItemWrapper.defaultProps = {
|
|
660
662
|
theme: DEFAULT_THEME
|
|
661
663
|
};
|
|
662
664
|
|
|
663
|
-
var COMPONENT_ID$
|
|
665
|
+
var COMPONENT_ID$i = 'chrome.logo_nav_item';
|
|
664
666
|
var retrieveProductColor = function retrieveProductColor(product) {
|
|
665
667
|
switch (product) {
|
|
666
668
|
case 'chat':
|
|
@@ -681,29 +683,29 @@ var retrieveProductColor = function retrieveProductColor(product) {
|
|
|
681
683
|
return 'inherit';
|
|
682
684
|
}
|
|
683
685
|
};
|
|
684
|
-
var colorStyles$
|
|
686
|
+
var colorStyles$4 = function colorStyles(props) {
|
|
685
687
|
var fillColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
686
688
|
var color = props.isLight || props.isDark ? fillColor : retrieveProductColor(props.product);
|
|
687
689
|
return css(["color:", ";fill:", ";"], color, fillColor);
|
|
688
690
|
};
|
|
689
691
|
var StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
|
|
690
|
-
'data-garden-id': COMPONENT_ID$
|
|
691
|
-
'data-garden-version': '8.
|
|
692
|
+
'data-garden-id': COMPONENT_ID$i,
|
|
693
|
+
'data-garden-version': '8.47.0',
|
|
692
694
|
as: 'div'
|
|
693
695
|
}).withConfig({
|
|
694
696
|
displayName: "StyledLogoNavItem",
|
|
695
697
|
componentId: "sc-saaydx-0"
|
|
696
698
|
})(["order:0;opacity:1;cursor:default;", ";"], function (props) {
|
|
697
|
-
return colorStyles$
|
|
699
|
+
return colorStyles$4(props);
|
|
698
700
|
});
|
|
699
701
|
StyledLogoNavItem.defaultProps = {
|
|
700
702
|
theme: DEFAULT_THEME
|
|
701
703
|
};
|
|
702
704
|
|
|
703
|
-
var COMPONENT_ID$
|
|
705
|
+
var COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
704
706
|
var StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
|
|
705
|
-
'data-garden-id': COMPONENT_ID$
|
|
706
|
-
'data-garden-version': '8.
|
|
707
|
+
'data-garden-id': COMPONENT_ID$h,
|
|
708
|
+
'data-garden-version': '8.47.0',
|
|
707
709
|
as: 'div'
|
|
708
710
|
}).withConfig({
|
|
709
711
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -713,10 +715,10 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
713
715
|
theme: DEFAULT_THEME
|
|
714
716
|
};
|
|
715
717
|
|
|
716
|
-
var COMPONENT_ID$
|
|
718
|
+
var COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
717
719
|
var StyledNavItemIcon = styled.div.attrs({
|
|
718
|
-
'data-garden-id': COMPONENT_ID$
|
|
719
|
-
'data-garden-version': '8.
|
|
720
|
+
'data-garden-id': COMPONENT_ID$g,
|
|
721
|
+
'data-garden-version': '8.47.0'
|
|
720
722
|
}).withConfig({
|
|
721
723
|
displayName: "StyledNavItemIcon",
|
|
722
724
|
componentId: "sc-7w9rpt-0"
|
|
@@ -727,14 +729,14 @@ var StyledNavItemIcon = styled.div.attrs({
|
|
|
727
729
|
}, function (props) {
|
|
728
730
|
return props.theme.iconSizes.lg;
|
|
729
731
|
}, function (props) {
|
|
730
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
732
|
+
return retrieveComponentStyles(COMPONENT_ID$g, props);
|
|
731
733
|
});
|
|
732
734
|
StyledNavItemIcon.defaultProps = {
|
|
733
735
|
theme: DEFAULT_THEME
|
|
734
736
|
};
|
|
735
737
|
|
|
736
|
-
var COMPONENT_ID$
|
|
737
|
-
var colorStyles$
|
|
738
|
+
var COMPONENT_ID$f = 'chrome.nav_item';
|
|
739
|
+
var colorStyles$3 = function colorStyles(props) {
|
|
738
740
|
var BLACK = props.theme.palette.black;
|
|
739
741
|
var WHITE = props.theme.palette.white;
|
|
740
742
|
var currentColor;
|
|
@@ -755,8 +757,8 @@ var colorStyles$2 = function colorStyles(props) {
|
|
|
755
757
|
return 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);
|
|
756
758
|
};
|
|
757
759
|
var StyledNavItem = styled(StyledBaseNavItem).attrs({
|
|
758
|
-
'data-garden-id': COMPONENT_ID$
|
|
759
|
-
'data-garden-version': '8.
|
|
760
|
+
'data-garden-id': COMPONENT_ID$f,
|
|
761
|
+
'data-garden-version': '8.47.0',
|
|
760
762
|
as: 'button'
|
|
761
763
|
}).withConfig({
|
|
762
764
|
displayName: "StyledNavItem",
|
|
@@ -768,20 +770,20 @@ var StyledNavItem = styled(StyledBaseNavItem).attrs({
|
|
|
768
770
|
}, function (props) {
|
|
769
771
|
return props.isExpanded && 'inherit';
|
|
770
772
|
}, function (props) {
|
|
771
|
-
return colorStyles$
|
|
773
|
+
return colorStyles$3(props);
|
|
772
774
|
}, function (props) {
|
|
773
775
|
return props.isExpanded && "\n ".concat(StyledNavItemIcon, " {\n margin: 0 ").concat(math("(".concat(getNavWidth(props), " - ").concat(props.theme.iconSizes.lg, ") / 4")), ";\n }\n ");
|
|
774
776
|
}, function (props) {
|
|
775
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
777
|
+
return retrieveComponentStyles(COMPONENT_ID$f, props);
|
|
776
778
|
});
|
|
777
779
|
StyledNavItem.defaultProps = {
|
|
778
780
|
theme: DEFAULT_THEME
|
|
779
781
|
};
|
|
780
782
|
|
|
781
|
-
var COMPONENT_ID$
|
|
783
|
+
var COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
782
784
|
var StyledNavItemText = styled.span.attrs({
|
|
783
|
-
'data-garden-id': COMPONENT_ID$
|
|
784
|
-
'data-garden-version': '8.
|
|
785
|
+
'data-garden-id': COMPONENT_ID$e,
|
|
786
|
+
'data-garden-version': '8.47.0'
|
|
785
787
|
}).withConfig({
|
|
786
788
|
displayName: "StyledNavItemText",
|
|
787
789
|
componentId: "sc-13m84xl-0"
|
|
@@ -794,14 +796,14 @@ var StyledNavItemText = styled.span.attrs({
|
|
|
794
796
|
}, function (props) {
|
|
795
797
|
return props.isExpanded && "\n ".concat(StyledNavItem, " > && {\n position: static;\n flex: 1;\n clip: auto;\n width: auto;\n height: auto;\n text-overflow: ellipsis;\n }\n ");
|
|
796
798
|
}, function (props) {
|
|
797
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
799
|
+
return retrieveComponentStyles(COMPONENT_ID$e, props);
|
|
798
800
|
});
|
|
799
801
|
StyledNavItemText.defaultProps = {
|
|
800
802
|
theme: DEFAULT_THEME
|
|
801
803
|
};
|
|
802
804
|
|
|
803
|
-
var COMPONENT_ID$
|
|
804
|
-
var colorStyles$
|
|
805
|
+
var COMPONENT_ID$d = 'chrome.subnav_item';
|
|
806
|
+
var colorStyles$2 = function colorStyles(props) {
|
|
805
807
|
var BLACK = props.theme.palette.black;
|
|
806
808
|
var WHITE = props.theme.palette.white;
|
|
807
809
|
var currentColor;
|
|
@@ -823,8 +825,8 @@ var getSubNavItemHeight = function getSubNavItemHeight(props) {
|
|
|
823
825
|
return "".concat(props.theme.space.base * 7.5, "px");
|
|
824
826
|
};
|
|
825
827
|
var StyledSubNavItem = styled.button.attrs({
|
|
826
|
-
'data-garden-id': COMPONENT_ID$
|
|
827
|
-
'data-garden-version': '8.
|
|
828
|
+
'data-garden-id': COMPONENT_ID$d,
|
|
829
|
+
'data-garden-version': '8.47.0'
|
|
828
830
|
}).withConfig({
|
|
829
831
|
displayName: "StyledSubNavItem",
|
|
830
832
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -837,16 +839,16 @@ var StyledSubNavItem = styled.button.attrs({
|
|
|
837
839
|
}, function (props) {
|
|
838
840
|
return "0 ".concat(props.theme.space.base * 2, "px");
|
|
839
841
|
}, getSubNavItemHeight, function (props) {
|
|
840
|
-
return colorStyles$
|
|
842
|
+
return colorStyles$2(props);
|
|
841
843
|
}, function (props) {
|
|
842
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
844
|
+
return retrieveComponentStyles(COMPONENT_ID$d, props);
|
|
843
845
|
});
|
|
844
846
|
StyledSubNavItem.defaultProps = {
|
|
845
847
|
theme: DEFAULT_THEME
|
|
846
848
|
};
|
|
847
849
|
|
|
848
|
-
var COMPONENT_ID$
|
|
849
|
-
var colorStyles = function colorStyles(props) {
|
|
850
|
+
var COMPONENT_ID$c = 'chrome.subnav';
|
|
851
|
+
var colorStyles$1 = function colorStyles(props) {
|
|
850
852
|
var shade;
|
|
851
853
|
if (props.isLight) {
|
|
852
854
|
shade = 500;
|
|
@@ -858,8 +860,8 @@ var colorStyles = function colorStyles(props) {
|
|
|
858
860
|
return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
859
861
|
};
|
|
860
862
|
var StyledSubNav = styled.nav.attrs({
|
|
861
|
-
'data-garden-id': COMPONENT_ID$
|
|
862
|
-
'data-garden-version': '8.
|
|
863
|
+
'data-garden-id': COMPONENT_ID$c,
|
|
864
|
+
'data-garden-version': '8.47.0'
|
|
863
865
|
}).withConfig({
|
|
864
866
|
displayName: "StyledSubNav",
|
|
865
867
|
componentId: "sc-19hjou6-0"
|
|
@@ -868,7 +870,7 @@ var StyledSubNav = styled.nav.attrs({
|
|
|
868
870
|
}, function (props) {
|
|
869
871
|
return props.theme.fontSizes.md;
|
|
870
872
|
}, function (props) {
|
|
871
|
-
return colorStyles(props);
|
|
873
|
+
return colorStyles$1(props);
|
|
872
874
|
}, StyledSubNavItem, function (props) {
|
|
873
875
|
return retrieveComponentStyles('chrome.subnav', props);
|
|
874
876
|
});
|
|
@@ -876,7 +878,7 @@ StyledSubNav.defaultProps = {
|
|
|
876
878
|
theme: DEFAULT_THEME
|
|
877
879
|
};
|
|
878
880
|
|
|
879
|
-
var COMPONENT_ID$
|
|
881
|
+
var COMPONENT_ID$b = 'chrome.subnav_item_text';
|
|
880
882
|
var sizeStyles = function sizeStyles(props) {
|
|
881
883
|
var baseLineHeight = props.theme.space.base * 5;
|
|
882
884
|
var verticalMargin = math("(".concat(getSubNavItemHeight(props), " - ").concat(baseLineHeight, ") / 2"));
|
|
@@ -884,8 +886,8 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
884
886
|
return css(["margin:", " 0;line-height:", ";"], verticalMargin, lineHeight);
|
|
885
887
|
};
|
|
886
888
|
var StyledSubNavItemText = styled.span.attrs({
|
|
887
|
-
'data-garden-id': COMPONENT_ID$
|
|
888
|
-
'data-garden-version': '8.
|
|
889
|
+
'data-garden-id': COMPONENT_ID$b,
|
|
890
|
+
'data-garden-version': '8.47.0'
|
|
889
891
|
}).withConfig({
|
|
890
892
|
displayName: "StyledSubNavItemText",
|
|
891
893
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -894,16 +896,16 @@ var StyledSubNavItemText = styled.span.attrs({
|
|
|
894
896
|
}, function (props) {
|
|
895
897
|
return sizeStyles(props);
|
|
896
898
|
}, function (props) {
|
|
897
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
899
|
+
return retrieveComponentStyles(COMPONENT_ID$b, props);
|
|
898
900
|
});
|
|
899
901
|
StyledSubNavItemText.defaultProps = {
|
|
900
902
|
theme: DEFAULT_THEME
|
|
901
903
|
};
|
|
902
904
|
|
|
903
|
-
var COMPONENT_ID$
|
|
905
|
+
var COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
904
906
|
var StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
|
|
905
|
-
'data-garden-id': COMPONENT_ID$
|
|
906
|
-
'data-garden-version': '8.
|
|
907
|
+
'data-garden-id': COMPONENT_ID$a,
|
|
908
|
+
'data-garden-version': '8.47.0',
|
|
907
909
|
'data-garden-header': 'true'
|
|
908
910
|
}).withConfig({
|
|
909
911
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -913,37 +915,37 @@ var StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
|
|
|
913
915
|
}, function (props) {
|
|
914
916
|
return props.theme.space.base * 7;
|
|
915
917
|
}, function (props) {
|
|
916
|
-
return retrieveComponentStyles(COMPONENT_ID$
|
|
918
|
+
return retrieveComponentStyles(COMPONENT_ID$a, props);
|
|
917
919
|
});
|
|
918
920
|
StyledSubNavItemHeader.defaultProps = {
|
|
919
921
|
theme: DEFAULT_THEME
|
|
920
922
|
};
|
|
921
923
|
|
|
922
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
924
|
+
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
923
925
|
|
|
924
|
-
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
926
|
+
var _ref$1 = /*#__PURE__*/React.createElement("path", {
|
|
925
927
|
fill: "currentColor",
|
|
926
928
|
d: "M1.646 3.646a.5.5 0 01.638-.057l.07.057L6 7.293l3.646-3.647a.5.5 0 01.638-.057l.07.057a.5.5 0 01.057.638l-.057.07-4 4a.5.5 0 01-.638.057l-.07-.057-4-4a.5.5 0 010-.708z"
|
|
927
929
|
});
|
|
928
930
|
|
|
929
931
|
function SvgChevronDownStroke(props) {
|
|
930
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
932
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
931
933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
932
934
|
width: 12,
|
|
933
935
|
height: 12,
|
|
934
936
|
viewBox: "0 0 12 12",
|
|
935
937
|
focusable: "false",
|
|
936
938
|
role: "presentation"
|
|
937
|
-
}, props), _ref);
|
|
939
|
+
}, props), _ref$1);
|
|
938
940
|
}
|
|
939
941
|
|
|
940
|
-
var _excluded$
|
|
941
|
-
var COMPONENT_ID = 'chrome.collapsible_sub_nav_item_icon';
|
|
942
|
+
var _excluded$b = ["theme", "isExpanded"];
|
|
943
|
+
var COMPONENT_ID$9 = 'chrome.collapsible_sub_nav_item_icon';
|
|
942
944
|
var FilteredChevronDownStrokeIcon = React__default.forwardRef(function (_ref, ref) {
|
|
943
945
|
_ref.theme;
|
|
944
946
|
_ref.isExpanded;
|
|
945
|
-
var validProps = _objectWithoutProperties(_ref, _excluded$
|
|
946
|
-
return React__default.createElement(SvgChevronDownStroke, _extends$
|
|
947
|
+
var validProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
948
|
+
return React__default.createElement(SvgChevronDownStroke, _extends$3({
|
|
947
949
|
ref: ref
|
|
948
950
|
}, validProps));
|
|
949
951
|
});
|
|
@@ -960,8 +962,8 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
960
962
|
theme: DEFAULT_THEME
|
|
961
963
|
};
|
|
962
964
|
var StyledSubNavItemIconWrapper = styled.div.attrs({
|
|
963
|
-
'data-garden-id': COMPONENT_ID,
|
|
964
|
-
'data-garden-version': '8.
|
|
965
|
+
'data-garden-id': COMPONENT_ID$9,
|
|
966
|
+
'data-garden-version': '8.47.0'
|
|
965
967
|
}).withConfig({
|
|
966
968
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
967
969
|
componentId: "sc-1d02hho-1"
|
|
@@ -977,7 +979,7 @@ var StyledSubNavItemIconWrapper = styled.div.attrs({
|
|
|
977
979
|
}
|
|
978
980
|
return undefined;
|
|
979
981
|
}, function (props) {
|
|
980
|
-
return retrieveComponentStyles(COMPONENT_ID, props);
|
|
982
|
+
return retrieveComponentStyles(COMPONENT_ID$9, props);
|
|
981
983
|
});
|
|
982
984
|
StyledSubNavItemIconWrapper.defaultProps = {
|
|
983
985
|
theme: DEFAULT_THEME
|
|
@@ -987,7 +989,7 @@ var PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
987
989
|
var hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
988
990
|
var StyledSubNavPanel = styled.div.attrs({
|
|
989
991
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
990
|
-
'data-garden-version': '8.
|
|
992
|
+
'data-garden-version': '8.47.0'
|
|
991
993
|
}).withConfig({
|
|
992
994
|
displayName: "StyledSubNavPanel",
|
|
993
995
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -1004,11 +1006,224 @@ StyledSubNavPanel.defaultProps = {
|
|
|
1004
1006
|
theme: DEFAULT_THEME
|
|
1005
1007
|
};
|
|
1006
1008
|
|
|
1007
|
-
var
|
|
1009
|
+
var COMPONENT_ID$8 = 'chrome.sheet';
|
|
1010
|
+
var borderStyle = function borderStyle(_ref) {
|
|
1011
|
+
var theme = _ref.theme,
|
|
1012
|
+
placement = _ref.placement,
|
|
1013
|
+
isOpen = _ref.isOpen;
|
|
1014
|
+
var borderColor = isOpen ? getColor('neutralHue', 300, theme) : 'transparent';
|
|
1015
|
+
var borderSides = ['-left', '-right'];
|
|
1016
|
+
var borderSide = '';
|
|
1017
|
+
if (theme.rtl) {
|
|
1018
|
+
borderSides.reverse();
|
|
1019
|
+
}
|
|
1020
|
+
if (placement === 'end') {
|
|
1021
|
+
borderSide = borderSides[0];
|
|
1022
|
+
} else if (placement === 'start') {
|
|
1023
|
+
borderSide = borderSides[1];
|
|
1024
|
+
}
|
|
1025
|
+
return "border".concat(borderSide, ": ").concat(theme.borders.sm, " ").concat(borderColor, ";");
|
|
1026
|
+
};
|
|
1027
|
+
var StyledSheet = styled.aside.attrs({
|
|
1028
|
+
'data-garden-id': COMPONENT_ID$8,
|
|
1029
|
+
'data-garden-version': '8.47.0'
|
|
1030
|
+
}).withConfig({
|
|
1031
|
+
displayName: "StyledSheet",
|
|
1032
|
+
componentId: "sc-dx8ijk-0"
|
|
1033
|
+
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], function (props) {
|
|
1034
|
+
return props.isAnimated && 'width 250ms ease-in-out';
|
|
1035
|
+
}, function (props) {
|
|
1036
|
+
return props.theme.colors.background;
|
|
1037
|
+
}, function (props) {
|
|
1038
|
+
return props.isOpen ? props.size : '0px';
|
|
1039
|
+
}, function (props) {
|
|
1040
|
+
return props.theme.fontSizes.md;
|
|
1041
|
+
}, function (props) {
|
|
1042
|
+
return borderStyle(props);
|
|
1043
|
+
}, function (props) {
|
|
1044
|
+
return retrieveComponentStyles(COMPONENT_ID$8, props);
|
|
1045
|
+
});
|
|
1046
|
+
StyledSheet.defaultProps = {
|
|
1047
|
+
theme: DEFAULT_THEME
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
var COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
1051
|
+
var StyledSheetWrapper = styled.div.attrs({
|
|
1052
|
+
'data-garden-id': COMPONENT_ID$7,
|
|
1053
|
+
'data-garden-version': '8.47.0'
|
|
1054
|
+
}).withConfig({
|
|
1055
|
+
displayName: "StyledSheetWrapper",
|
|
1056
|
+
componentId: "sc-f6x9zb-0"
|
|
1057
|
+
})(["display:flex;position:relative;flex-direction:column;transform:", ";transition:", ";min-width:", ";", ";"], function (props) {
|
|
1058
|
+
var translateValues = [-100, 100];
|
|
1059
|
+
var translation = 'translateX(0%)';
|
|
1060
|
+
if (props.isOpen) {
|
|
1061
|
+
return translation;
|
|
1062
|
+
}
|
|
1063
|
+
if (props.theme.rtl) {
|
|
1064
|
+
translateValues.reverse();
|
|
1065
|
+
}
|
|
1066
|
+
if (props.placement === 'end') {
|
|
1067
|
+
translation = "translateX(".concat(translateValues[1], "%)");
|
|
1068
|
+
} else if (props.placement === 'start') {
|
|
1069
|
+
translation = "translateX(".concat(translateValues[0], "%)");
|
|
1070
|
+
}
|
|
1071
|
+
return translation;
|
|
1072
|
+
}, function (props) {
|
|
1073
|
+
return props.isAnimated && 'transform 250ms ease-in-out';
|
|
1074
|
+
}, function (props) {
|
|
1075
|
+
return props.size;
|
|
1076
|
+
}, function (props) {
|
|
1077
|
+
return retrieveComponentStyles(COMPONENT_ID$7, props);
|
|
1078
|
+
});
|
|
1079
|
+
StyledSheetWrapper.defaultProps = {
|
|
1080
|
+
theme: DEFAULT_THEME
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
var COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
1084
|
+
var StyledSheetTitle = styled.div.attrs({
|
|
1085
|
+
'data-garden-id': COMPONENT_ID$6,
|
|
1086
|
+
'data-garden-version': '8.47.0'
|
|
1087
|
+
}).withConfig({
|
|
1088
|
+
displayName: "StyledSheetTitle",
|
|
1089
|
+
componentId: "sc-1gogk75-0"
|
|
1090
|
+
})(["line-height:", ";color:", ";font-weight:", ";", ";"], function (props) {
|
|
1091
|
+
return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
|
|
1092
|
+
}, function (props) {
|
|
1093
|
+
return props.theme.colors.foreground;
|
|
1094
|
+
}, function (props) {
|
|
1095
|
+
return props.theme.fontWeights.semibold;
|
|
1096
|
+
}, function (props) {
|
|
1097
|
+
return retrieveComponentStyles(COMPONENT_ID$6, props);
|
|
1098
|
+
});
|
|
1099
|
+
StyledSheetTitle.defaultProps = {
|
|
1100
|
+
theme: DEFAULT_THEME
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
var COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
1104
|
+
var StyledSheetDescription = styled.div.attrs({
|
|
1105
|
+
'data-garden-id': COMPONENT_ID$5,
|
|
1106
|
+
'data-garden-version': '8.47.0'
|
|
1107
|
+
}).withConfig({
|
|
1108
|
+
displayName: "StyledSheetDescription",
|
|
1109
|
+
componentId: "sc-1puglb6-0"
|
|
1110
|
+
})(["line-height:", ";color:", ";", ";"], function (props) {
|
|
1111
|
+
return getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md);
|
|
1112
|
+
}, function (props) {
|
|
1113
|
+
return getColor('neutralHue', 600, props.theme);
|
|
1114
|
+
}, function (props) {
|
|
1115
|
+
return retrieveComponentStyles(COMPONENT_ID$5, props);
|
|
1116
|
+
});
|
|
1117
|
+
StyledSheetDescription.defaultProps = {
|
|
1118
|
+
theme: DEFAULT_THEME
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
var COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
1122
|
+
var StyledSheetBody = styled.div.attrs({
|
|
1123
|
+
'data-garden-id': COMPONENT_ID$4,
|
|
1124
|
+
'data-garden-version': '8.47.0'
|
|
1125
|
+
}).withConfig({
|
|
1126
|
+
displayName: "StyledSheetBody",
|
|
1127
|
+
componentId: "sc-bt4eoj-0"
|
|
1128
|
+
})(["flex:1;overflow-y:auto;padding:", "px;", ";"], function (props) {
|
|
1129
|
+
return props.theme.space.base * 5;
|
|
1130
|
+
}, function (props) {
|
|
1131
|
+
return retrieveComponentStyles(COMPONENT_ID$4, props);
|
|
1132
|
+
});
|
|
1133
|
+
StyledSheetBody.defaultProps = {
|
|
1134
|
+
theme: DEFAULT_THEME
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
var COMPONENT_ID$3 = 'chrome.sheet_close';
|
|
1138
|
+
var colorStyles = function colorStyles(props) {
|
|
1139
|
+
var backgroundColor = 'primaryHue';
|
|
1140
|
+
var foregroundColor = 'neutralHue';
|
|
1141
|
+
return 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:", ";}"], getColor(foregroundColor, 600, props.theme), getColor(backgroundColor, 600, props.theme, 0.08), getColor(foregroundColor, 700, props.theme), props.theme.shadows.md(getColor(backgroundColor, 600, props.theme, 0.35)), getColor(backgroundColor, 600, props.theme, 0.2), getColor(foregroundColor, 800, props.theme));
|
|
1142
|
+
};
|
|
1143
|
+
var StyledSheetClose = styled.button.attrs({
|
|
1144
|
+
'data-garden-id': COMPONENT_ID$3,
|
|
1145
|
+
'data-garden-version': '8.47.0'
|
|
1146
|
+
}).withConfig({
|
|
1147
|
+
displayName: "StyledSheetClose",
|
|
1148
|
+
componentId: "sc-1ab02oq-0"
|
|
1149
|
+
})(["display:flex;position:absolute;top:", "px;", ":", ";align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}&:focus{outline:none;}", ";& > svg{vertical-align:middle;}", ";"], function (props) {
|
|
1150
|
+
return props.theme.space.base * 2.5;
|
|
1151
|
+
}, function (props) {
|
|
1152
|
+
return props.theme.rtl ? 'left' : 'right';
|
|
1153
|
+
}, function (props) {
|
|
1154
|
+
return "".concat(props.theme.space.base * 2, "px");
|
|
1155
|
+
}, function (props) {
|
|
1156
|
+
return props.theme.space.base * 10;
|
|
1157
|
+
}, function (props) {
|
|
1158
|
+
return props.theme.space.base * 10;
|
|
1159
|
+
}, function (props) {
|
|
1160
|
+
return colorStyles(props);
|
|
1161
|
+
}, function (props) {
|
|
1162
|
+
return retrieveComponentStyles(COMPONENT_ID$3, props);
|
|
1163
|
+
});
|
|
1164
|
+
StyledSheetClose.defaultProps = {
|
|
1165
|
+
theme: DEFAULT_THEME
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
var COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
1169
|
+
var StyledSheetFooter = styled.footer.attrs({
|
|
1170
|
+
'data-garden-id': COMPONENT_ID$2,
|
|
1171
|
+
'data-garden-version': '8.47.0'
|
|
1172
|
+
}).withConfig({
|
|
1173
|
+
displayName: "StyledSheetFooter",
|
|
1174
|
+
componentId: "sc-2cktos-0"
|
|
1175
|
+
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], function (props) {
|
|
1176
|
+
return props.isCompact ? 'center' : 'flex-end';
|
|
1177
|
+
}, function (props) {
|
|
1178
|
+
return "".concat(props.theme.borders.sm, " ").concat(getColor('neutralHue', 300, props.theme), "}");
|
|
1179
|
+
}, function (props) {
|
|
1180
|
+
return props.theme.space.base * (props.isCompact ? 2.5 : 5);
|
|
1181
|
+
}, function (props) {
|
|
1182
|
+
return retrieveComponentStyles(COMPONENT_ID$2, props);
|
|
1183
|
+
});
|
|
1184
|
+
StyledSheetFooter.defaultProps = {
|
|
1185
|
+
theme: DEFAULT_THEME
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
var COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
1189
|
+
var StyledSheetFooterItem = styled.div.attrs({
|
|
1190
|
+
'data-garden-id': COMPONENT_ID$1,
|
|
1191
|
+
'data-garden-version': '8.47.0'
|
|
1192
|
+
}).withConfig({
|
|
1193
|
+
displayName: "StyledSheetFooterItem",
|
|
1194
|
+
componentId: "sc-r9ixh-0"
|
|
1195
|
+
})(["", " ", ";"], function (props) {
|
|
1196
|
+
return "margin-".concat(props.theme.rtl ? 'right' : 'left', ": ").concat(props.theme.space.base * 5, "px;");
|
|
1197
|
+
}, function (props) {
|
|
1198
|
+
return retrieveComponentStyles(COMPONENT_ID$1, props);
|
|
1199
|
+
});
|
|
1200
|
+
StyledSheetFooterItem.defaultProps = {
|
|
1201
|
+
theme: DEFAULT_THEME
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
var COMPONENT_ID = 'chrome.sheet_header';
|
|
1205
|
+
var StyledSheetHeader = styled.header.attrs({
|
|
1206
|
+
'data-garden-id': COMPONENT_ID,
|
|
1207
|
+
'data-garden-version': '8.47.0'
|
|
1208
|
+
}).withConfig({
|
|
1209
|
+
displayName: "StyledSheetHeader",
|
|
1210
|
+
componentId: "sc-o2ry8i-0"
|
|
1211
|
+
})(["border-bottom:", ";padding:", "px;", ";"], function (props) {
|
|
1212
|
+
return "".concat(props.theme.borders.sm, " ").concat(getColor('neutralHue', 300, props.theme), "}");
|
|
1213
|
+
}, function (props) {
|
|
1214
|
+
return props.theme.space.base * 5;
|
|
1215
|
+
}, function (props) {
|
|
1216
|
+
return retrieveComponentStyles(COMPONENT_ID, props);
|
|
1217
|
+
});
|
|
1218
|
+
StyledSheetHeader.defaultProps = {
|
|
1219
|
+
theme: DEFAULT_THEME
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
var _excluded$a = ["hue", "isFluid"];
|
|
1008
1223
|
var Chrome = React__default.forwardRef(function (_ref, ref) {
|
|
1009
1224
|
var hue = _ref.hue,
|
|
1010
1225
|
isFluid = _ref.isFluid,
|
|
1011
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1226
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1012
1227
|
var theme = useContext(ThemeContext);
|
|
1013
1228
|
var isLightMemoized = useMemo(function () {
|
|
1014
1229
|
if (hue) {
|
|
@@ -1044,7 +1259,7 @@ var Chrome = React__default.forwardRef(function (_ref, ref) {
|
|
|
1044
1259
|
}, [environment, isFluid]);
|
|
1045
1260
|
return React__default.createElement(ChromeContext.Provider, {
|
|
1046
1261
|
value: chromeContextValue
|
|
1047
|
-
}, React__default.createElement(StyledChrome, _extends$
|
|
1262
|
+
}, React__default.createElement(StyledChrome, _extends$3({
|
|
1048
1263
|
ref: ref
|
|
1049
1264
|
}, props)));
|
|
1050
1265
|
});
|
|
@@ -1053,13 +1268,13 @@ Chrome.propTypes = {
|
|
|
1053
1268
|
hue: PropTypes.string
|
|
1054
1269
|
};
|
|
1055
1270
|
|
|
1056
|
-
var _excluded$
|
|
1271
|
+
var _excluded$9 = ["targetId", "zIndex", "children"];
|
|
1057
1272
|
var SkipNav = React__default.forwardRef(function (_ref, ref) {
|
|
1058
1273
|
var targetId = _ref.targetId,
|
|
1059
1274
|
zIndex = _ref.zIndex,
|
|
1060
1275
|
children = _ref.children,
|
|
1061
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1062
|
-
return React__default.createElement(StyledSkipNav, _extends$
|
|
1276
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1277
|
+
return React__default.createElement(StyledSkipNav, _extends$3({
|
|
1063
1278
|
href: "#".concat(targetId),
|
|
1064
1279
|
zIndex: zIndex,
|
|
1065
1280
|
ref: ref
|
|
@@ -1081,10 +1296,10 @@ var useBodyContext = function useBodyContext() {
|
|
|
1081
1296
|
return useContext(BodyContext);
|
|
1082
1297
|
};
|
|
1083
1298
|
|
|
1084
|
-
var _excluded$
|
|
1299
|
+
var _excluded$8 = ["hasFooter"];
|
|
1085
1300
|
var Body = React__default.forwardRef(function (_ref, ref) {
|
|
1086
1301
|
var hasFooter = _ref.hasFooter,
|
|
1087
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1302
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
1088
1303
|
var bodyContextValue = useMemo(function () {
|
|
1089
1304
|
return {
|
|
1090
1305
|
hasFooter: !!hasFooter
|
|
@@ -1092,7 +1307,7 @@ var Body = React__default.forwardRef(function (_ref, ref) {
|
|
|
1092
1307
|
}, [hasFooter]);
|
|
1093
1308
|
return React__default.createElement(BodyContext.Provider, {
|
|
1094
1309
|
value: bodyContextValue
|
|
1095
|
-
}, React__default.createElement(StyledBody, _extends$
|
|
1310
|
+
}, React__default.createElement(StyledBody, _extends$3({
|
|
1096
1311
|
ref: ref
|
|
1097
1312
|
}, props)));
|
|
1098
1313
|
});
|
|
@@ -1104,7 +1319,7 @@ Body.propTypes = {
|
|
|
1104
1319
|
var Content = React__default.forwardRef(function (props, ref) {
|
|
1105
1320
|
var _useBodyContext = useBodyContext(),
|
|
1106
1321
|
hasFooter = _useBodyContext.hasFooter;
|
|
1107
|
-
return React__default.createElement(StyledContent, _extends$
|
|
1322
|
+
return React__default.createElement(StyledContent, _extends$3({
|
|
1108
1323
|
ref: ref,
|
|
1109
1324
|
hasFooter: hasFooter
|
|
1110
1325
|
}, props));
|
|
@@ -1112,21 +1327,21 @@ var Content = React__default.forwardRef(function (props, ref) {
|
|
|
1112
1327
|
Content.displayName = 'Content';
|
|
1113
1328
|
|
|
1114
1329
|
var Main = React__default.forwardRef(function (props, ref) {
|
|
1115
|
-
return React__default.createElement(StyledMain, _extends$
|
|
1330
|
+
return React__default.createElement(StyledMain, _extends$3({
|
|
1116
1331
|
ref: ref
|
|
1117
1332
|
}, props));
|
|
1118
1333
|
});
|
|
1119
1334
|
Main.displayName = 'Main';
|
|
1120
1335
|
|
|
1121
1336
|
var Sidebar = React__default.forwardRef(function (props, ref) {
|
|
1122
|
-
return React__default.createElement(StyledSidebar, _extends$
|
|
1337
|
+
return React__default.createElement(StyledSidebar, _extends$3({
|
|
1123
1338
|
ref: ref
|
|
1124
1339
|
}, props));
|
|
1125
1340
|
});
|
|
1126
1341
|
Sidebar.displayName = 'Sidebar';
|
|
1127
1342
|
|
|
1128
1343
|
var Header = React__default.forwardRef(function (props, ref) {
|
|
1129
|
-
return React__default.createElement(StyledHeader, _extends$
|
|
1344
|
+
return React__default.createElement(StyledHeader, _extends$3({
|
|
1130
1345
|
ref: ref
|
|
1131
1346
|
}, props));
|
|
1132
1347
|
});
|
|
@@ -1137,18 +1352,18 @@ Header.propTypes = {
|
|
|
1137
1352
|
|
|
1138
1353
|
var PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
1139
1354
|
|
|
1140
|
-
var _excluded$
|
|
1355
|
+
var _excluded$7 = ["hasLogo", "product"];
|
|
1141
1356
|
var HeaderItem = React__default.forwardRef(function (_ref, ref) {
|
|
1142
1357
|
var hasLogo = _ref.hasLogo,
|
|
1143
1358
|
product = _ref.product,
|
|
1144
|
-
other = _objectWithoutProperties(_ref, _excluded$
|
|
1359
|
+
other = _objectWithoutProperties(_ref, _excluded$7);
|
|
1145
1360
|
if (hasLogo) {
|
|
1146
|
-
return React__default.createElement(StyledLogoHeaderItem, _extends$
|
|
1361
|
+
return React__default.createElement(StyledLogoHeaderItem, _extends$3({
|
|
1147
1362
|
ref: ref,
|
|
1148
1363
|
product: product
|
|
1149
1364
|
}, other));
|
|
1150
1365
|
}
|
|
1151
|
-
return React__default.createElement(StyledHeaderItem, _extends$
|
|
1366
|
+
return React__default.createElement(StyledHeaderItem, _extends$3({
|
|
1152
1367
|
ref: ref
|
|
1153
1368
|
}, other));
|
|
1154
1369
|
});
|
|
@@ -1161,20 +1376,20 @@ HeaderItem.propTypes = {
|
|
|
1161
1376
|
hasLogo: PropTypes.bool
|
|
1162
1377
|
};
|
|
1163
1378
|
|
|
1164
|
-
var _excluded$
|
|
1379
|
+
var _excluded$6 = ["children"];
|
|
1165
1380
|
var HeaderItemIcon = function HeaderItemIcon(_ref) {
|
|
1166
1381
|
var children = _ref.children,
|
|
1167
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1382
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
1168
1383
|
var Element = function Element(elementProps) {
|
|
1169
1384
|
return React__default.cloneElement(Children.only(children), _objectSpread2(_objectSpread2({}, elementProps), props));
|
|
1170
1385
|
};
|
|
1171
|
-
return React__default.createElement(StyledHeaderItemIcon, _extends$
|
|
1386
|
+
return React__default.createElement(StyledHeaderItemIcon, _extends$3({
|
|
1172
1387
|
as: Element
|
|
1173
1388
|
}, props));
|
|
1174
1389
|
};
|
|
1175
1390
|
|
|
1176
1391
|
var HeaderItemText = React__default.forwardRef(function (props, ref) {
|
|
1177
|
-
return React__default.createElement(StyledHeaderItemText, _extends$
|
|
1392
|
+
return React__default.createElement(StyledHeaderItemText, _extends$3({
|
|
1178
1393
|
ref: ref
|
|
1179
1394
|
}, props));
|
|
1180
1395
|
});
|
|
@@ -1184,21 +1399,21 @@ HeaderItemText.propTypes = {
|
|
|
1184
1399
|
};
|
|
1185
1400
|
|
|
1186
1401
|
var HeaderItemWrapper = React__default.forwardRef(function (props, ref) {
|
|
1187
|
-
return React__default.createElement(StyledHeaderItemWrapper, _extends$
|
|
1402
|
+
return React__default.createElement(StyledHeaderItemWrapper, _extends$3({
|
|
1188
1403
|
ref: ref
|
|
1189
1404
|
}, props));
|
|
1190
1405
|
});
|
|
1191
1406
|
HeaderItemWrapper.displayName = 'HeaderItemWrapper';
|
|
1192
1407
|
|
|
1193
1408
|
var Footer = React__default.forwardRef(function (props, ref) {
|
|
1194
|
-
return React__default.createElement(StyledFooter, _extends$
|
|
1409
|
+
return React__default.createElement(StyledFooter, _extends$3({
|
|
1195
1410
|
ref: ref
|
|
1196
1411
|
}, props));
|
|
1197
1412
|
});
|
|
1198
1413
|
Footer.displayName = 'Footer';
|
|
1199
1414
|
|
|
1200
1415
|
var FooterItem = React__default.forwardRef(function (props, ref) {
|
|
1201
|
-
return React__default.createElement(StyledFooterItem, _extends$
|
|
1416
|
+
return React__default.createElement(StyledFooterItem, _extends$3({
|
|
1202
1417
|
ref: ref
|
|
1203
1418
|
}, props));
|
|
1204
1419
|
});
|
|
@@ -1223,7 +1438,7 @@ var Nav = React__default.forwardRef(function (props, ref) {
|
|
|
1223
1438
|
}, [props.isExpanded]);
|
|
1224
1439
|
return React__default.createElement(NavContext.Provider, {
|
|
1225
1440
|
value: navContextValue
|
|
1226
|
-
}, React__default.createElement(StyledNav, _extends$
|
|
1441
|
+
}, React__default.createElement(StyledNav, _extends$3({
|
|
1227
1442
|
ref: ref
|
|
1228
1443
|
}, props, {
|
|
1229
1444
|
hue: hue,
|
|
@@ -1236,12 +1451,12 @@ Nav.propTypes = {
|
|
|
1236
1451
|
isExpanded: PropTypes.bool
|
|
1237
1452
|
};
|
|
1238
1453
|
|
|
1239
|
-
var _excluded$
|
|
1454
|
+
var _excluded$5 = ["hasLogo", "hasBrandmark", "product"];
|
|
1240
1455
|
var NavItem = React__default.forwardRef(function (_ref, ref) {
|
|
1241
1456
|
var hasLogo = _ref.hasLogo,
|
|
1242
1457
|
hasBrandmark = _ref.hasBrandmark,
|
|
1243
1458
|
product = _ref.product,
|
|
1244
|
-
other = _objectWithoutProperties(_ref, _excluded$
|
|
1459
|
+
other = _objectWithoutProperties(_ref, _excluded$5);
|
|
1245
1460
|
var _useChromeContext = useChromeContext(),
|
|
1246
1461
|
hue = _useChromeContext.hue,
|
|
1247
1462
|
isLight = _useChromeContext.isLight,
|
|
@@ -1249,7 +1464,7 @@ var NavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1249
1464
|
var _useNavContext = useNavContext(),
|
|
1250
1465
|
isExpanded = _useNavContext.isExpanded;
|
|
1251
1466
|
if (hasLogo) {
|
|
1252
|
-
return React__default.createElement(StyledLogoNavItem, _extends$
|
|
1467
|
+
return React__default.createElement(StyledLogoNavItem, _extends$3({
|
|
1253
1468
|
ref: ref,
|
|
1254
1469
|
isDark: isDark,
|
|
1255
1470
|
isLight: isLight,
|
|
@@ -1257,11 +1472,11 @@ var NavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1257
1472
|
}, other));
|
|
1258
1473
|
}
|
|
1259
1474
|
if (hasBrandmark) {
|
|
1260
|
-
return React__default.createElement(StyledBrandmarkNavItem, _extends$
|
|
1475
|
+
return React__default.createElement(StyledBrandmarkNavItem, _extends$3({
|
|
1261
1476
|
ref: ref
|
|
1262
1477
|
}, other));
|
|
1263
1478
|
}
|
|
1264
|
-
return React__default.createElement(StyledNavItem, _extends$
|
|
1479
|
+
return React__default.createElement(StyledNavItem, _extends$3({
|
|
1265
1480
|
tabIndex: 0,
|
|
1266
1481
|
ref: ref,
|
|
1267
1482
|
isExpanded: isExpanded,
|
|
@@ -1278,14 +1493,14 @@ NavItem.propTypes = {
|
|
|
1278
1493
|
isCurrent: PropTypes.bool
|
|
1279
1494
|
};
|
|
1280
1495
|
|
|
1281
|
-
var _excluded$
|
|
1496
|
+
var _excluded$4 = ["children"];
|
|
1282
1497
|
var NavItemIcon = function NavItemIcon(_ref) {
|
|
1283
1498
|
var children = _ref.children,
|
|
1284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1499
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1285
1500
|
var Element = function Element(elementProps) {
|
|
1286
1501
|
return React__default.cloneElement(Children.only(children), _objectSpread2(_objectSpread2({}, elementProps), props));
|
|
1287
1502
|
};
|
|
1288
|
-
return React__default.createElement(StyledNavItemIcon, _extends$
|
|
1503
|
+
return React__default.createElement(StyledNavItemIcon, _extends$3({
|
|
1289
1504
|
as: Element
|
|
1290
1505
|
}, props));
|
|
1291
1506
|
};
|
|
@@ -1293,7 +1508,7 @@ var NavItemIcon = function NavItemIcon(_ref) {
|
|
|
1293
1508
|
var NavItemText = React__default.forwardRef(function (props, ref) {
|
|
1294
1509
|
var _useNavContext = useNavContext(),
|
|
1295
1510
|
isExpanded = _useNavContext.isExpanded;
|
|
1296
|
-
return React__default.createElement(StyledNavItemText, _extends$
|
|
1511
|
+
return React__default.createElement(StyledNavItemText, _extends$3({
|
|
1297
1512
|
ref: ref,
|
|
1298
1513
|
isExpanded: isExpanded
|
|
1299
1514
|
}, props));
|
|
@@ -1308,7 +1523,7 @@ var SubNav = React__default.forwardRef(function (props, ref) {
|
|
|
1308
1523
|
hue = _useChromeContext.hue,
|
|
1309
1524
|
isLight = _useChromeContext.isLight,
|
|
1310
1525
|
isDark = _useChromeContext.isDark;
|
|
1311
|
-
return React__default.createElement(StyledSubNav, _extends$
|
|
1526
|
+
return React__default.createElement(StyledSubNav, _extends$3({
|
|
1312
1527
|
ref: ref,
|
|
1313
1528
|
hue: hue,
|
|
1314
1529
|
isLight: isLight,
|
|
@@ -1321,7 +1536,7 @@ var SubNavItem = React__default.forwardRef(function (props, ref) {
|
|
|
1321
1536
|
var _useChromeContext = useChromeContext(),
|
|
1322
1537
|
isDark = _useChromeContext.isDark,
|
|
1323
1538
|
isLight = _useChromeContext.isLight;
|
|
1324
|
-
return React__default.createElement(StyledSubNavItem, _extends$
|
|
1539
|
+
return React__default.createElement(StyledSubNavItem, _extends$3({
|
|
1325
1540
|
ref: ref,
|
|
1326
1541
|
isDark: isDark,
|
|
1327
1542
|
isLight: isLight
|
|
@@ -1333,7 +1548,7 @@ SubNavItem.propTypes = {
|
|
|
1333
1548
|
};
|
|
1334
1549
|
|
|
1335
1550
|
var SubNavItemText = React__default.forwardRef(function (props, ref) {
|
|
1336
|
-
return React__default.createElement(StyledSubNavItemText, _extends$
|
|
1551
|
+
return React__default.createElement(StyledSubNavItemText, _extends$3({
|
|
1337
1552
|
ref: ref
|
|
1338
1553
|
}, props));
|
|
1339
1554
|
});
|
|
@@ -1342,13 +1557,13 @@ SubNavItemText.propTypes = {
|
|
|
1342
1557
|
isWrapped: PropTypes.bool
|
|
1343
1558
|
};
|
|
1344
1559
|
|
|
1345
|
-
var _excluded = ["header", "children", "isExpanded", "onChange"];
|
|
1560
|
+
var _excluded$3 = ["header", "children", "isExpanded", "onChange"];
|
|
1346
1561
|
var CollapsibleSubNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
1347
1562
|
var header = _ref.header,
|
|
1348
1563
|
children = _ref.children,
|
|
1349
1564
|
controlledExpanded = _ref.isExpanded,
|
|
1350
1565
|
_onChange = _ref.onChange,
|
|
1351
|
-
other = _objectWithoutProperties(_ref, _excluded);
|
|
1566
|
+
other = _objectWithoutProperties(_ref, _excluded$3);
|
|
1352
1567
|
var panelRef = useRef();
|
|
1353
1568
|
var _useState = useState(controlledExpanded),
|
|
1354
1569
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1399,4 +1614,201 @@ CollapsibleSubNavItem.propTypes = {
|
|
|
1399
1614
|
children: PropTypes.node
|
|
1400
1615
|
};
|
|
1401
1616
|
|
|
1402
|
-
|
|
1617
|
+
var SheetContext = createContext({});
|
|
1618
|
+
var useSheetContext = function useSheetContext() {
|
|
1619
|
+
return useContext(SheetContext);
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
function ownerDocument(node) {
|
|
1623
|
+
return node && node.ownerDocument || document;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
function activeElement(doc) {
|
|
1627
|
+
if (doc === void 0) {
|
|
1628
|
+
doc = ownerDocument();
|
|
1629
|
+
}
|
|
1630
|
+
try {
|
|
1631
|
+
var active = doc.activeElement;
|
|
1632
|
+
if (!active || !active.nodeName) return null;
|
|
1633
|
+
return active;
|
|
1634
|
+
} catch (e) {
|
|
1635
|
+
return doc.body;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
function useFocusableMount(_ref) {
|
|
1640
|
+
var isMounted = _ref.isMounted,
|
|
1641
|
+
focusOnMount = _ref.focusOnMount,
|
|
1642
|
+
restoreFocus = _ref.restoreFocus,
|
|
1643
|
+
targetRef = _ref.targetRef;
|
|
1644
|
+
var triggerRef = useRef();
|
|
1645
|
+
useEffect(function () {
|
|
1646
|
+
if (isMounted && focusOnMount && targetRef.current) {
|
|
1647
|
+
triggerRef.current = activeElement();
|
|
1648
|
+
targetRef.current.focus();
|
|
1649
|
+
}
|
|
1650
|
+
}, [isMounted, focusOnMount, targetRef]);
|
|
1651
|
+
useEffect(function () {
|
|
1652
|
+
if (!isMounted && restoreFocus && triggerRef.current) {
|
|
1653
|
+
triggerRef.current.focus();
|
|
1654
|
+
}
|
|
1655
|
+
}, [isMounted, restoreFocus, triggerRef]);
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
var _excluded$2 = ["id"];
|
|
1659
|
+
var SheetTitle = forwardRef(function (_ref, ref) {
|
|
1660
|
+
var id = _ref.id,
|
|
1661
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1662
|
+
var _useSheetContext = useSheetContext(),
|
|
1663
|
+
titleId = _useSheetContext.titleId;
|
|
1664
|
+
return React__default.createElement(StyledSheetTitle, _extends$3({
|
|
1665
|
+
id: id || titleId,
|
|
1666
|
+
ref: ref
|
|
1667
|
+
}, props));
|
|
1668
|
+
});
|
|
1669
|
+
SheetTitle.displayName = 'Sheet.Title';
|
|
1670
|
+
|
|
1671
|
+
var _excluded$1 = ["id"];
|
|
1672
|
+
var SheetDescription = forwardRef(function (_ref, ref) {
|
|
1673
|
+
var id = _ref.id,
|
|
1674
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
1675
|
+
var _useSheetContext = useSheetContext(),
|
|
1676
|
+
descriptionId = _useSheetContext.descriptionId;
|
|
1677
|
+
return React__default.createElement(StyledSheetDescription, _extends$3({
|
|
1678
|
+
id: id || descriptionId,
|
|
1679
|
+
ref: ref
|
|
1680
|
+
}, props));
|
|
1681
|
+
});
|
|
1682
|
+
SheetDescription.displayName = 'Sheet.Description';
|
|
1683
|
+
|
|
1684
|
+
var SheetHeader = forwardRef(function (props, ref) {
|
|
1685
|
+
return React__default.createElement(StyledSheetHeader, _extends$3({
|
|
1686
|
+
ref: ref
|
|
1687
|
+
}, props));
|
|
1688
|
+
});
|
|
1689
|
+
SheetHeader.displayName = 'Sheet.Header';
|
|
1690
|
+
|
|
1691
|
+
var SheetBody = forwardRef(function (props, ref) {
|
|
1692
|
+
return React__default.createElement(StyledSheetBody, _extends$3({
|
|
1693
|
+
ref: ref
|
|
1694
|
+
}, props));
|
|
1695
|
+
});
|
|
1696
|
+
SheetBody.displayName = 'Sheet.Body';
|
|
1697
|
+
|
|
1698
|
+
var SheetFooter = forwardRef(function (props, ref) {
|
|
1699
|
+
return React__default.createElement(StyledSheetFooter, _extends$3({
|
|
1700
|
+
ref: ref
|
|
1701
|
+
}, props));
|
|
1702
|
+
});
|
|
1703
|
+
SheetFooter.displayName = 'Sheet.Footer';
|
|
1704
|
+
|
|
1705
|
+
var SheetFooterItem = forwardRef(function (props, ref) {
|
|
1706
|
+
return React__default.createElement(StyledSheetFooterItem, _extends$3({
|
|
1707
|
+
ref: ref
|
|
1708
|
+
}, props));
|
|
1709
|
+
});
|
|
1710
|
+
SheetFooterItem.displayName = 'Sheet.FooterItem';
|
|
1711
|
+
|
|
1712
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1713
|
+
|
|
1714
|
+
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
1715
|
+
stroke: "currentColor",
|
|
1716
|
+
strokeLinecap: "round",
|
|
1717
|
+
d: "M3 13L13 3m0 10L3 3"
|
|
1718
|
+
});
|
|
1719
|
+
|
|
1720
|
+
function SvgXStroke(props) {
|
|
1721
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
1722
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1723
|
+
width: 16,
|
|
1724
|
+
height: 16,
|
|
1725
|
+
viewBox: "0 0 16 16",
|
|
1726
|
+
focusable: "false",
|
|
1727
|
+
role: "presentation"
|
|
1728
|
+
}, props), _ref);
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
var SheetClose = forwardRef(function (props, ref) {
|
|
1732
|
+
return React__default.createElement(StyledSheetClose, _extends$3({
|
|
1733
|
+
"aria-label": "Close Sheet",
|
|
1734
|
+
ref: ref
|
|
1735
|
+
}, props), React__default.createElement(SvgXStroke, null));
|
|
1736
|
+
});
|
|
1737
|
+
SheetClose.displayName = 'Sheet.Close';
|
|
1738
|
+
|
|
1739
|
+
var _excluded = ["id", "isOpen", "isAnimated", "focusOnMount", "restoreFocus", "placement", "size", "children"];
|
|
1740
|
+
var Sheet = React__default.forwardRef(function (_ref, ref) {
|
|
1741
|
+
var id = _ref.id,
|
|
1742
|
+
isOpen = _ref.isOpen,
|
|
1743
|
+
isAnimated = _ref.isAnimated,
|
|
1744
|
+
focusOnMount = _ref.focusOnMount,
|
|
1745
|
+
restoreFocus = _ref.restoreFocus,
|
|
1746
|
+
placement = _ref.placement,
|
|
1747
|
+
size = _ref.size,
|
|
1748
|
+
children = _ref.children,
|
|
1749
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
1750
|
+
var sheetRef = useRef(null);
|
|
1751
|
+
var seed = useUIDSeed();
|
|
1752
|
+
var _useState = useState(id || seed("sheet_".concat('8.47.0'))),
|
|
1753
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
1754
|
+
idPrefix = _useState2[0];
|
|
1755
|
+
var titleId = "".concat(idPrefix, "--title");
|
|
1756
|
+
var descriptionId = "".concat(idPrefix, "--description");
|
|
1757
|
+
var sheetContext = useMemo(function () {
|
|
1758
|
+
return {
|
|
1759
|
+
titleId: titleId,
|
|
1760
|
+
descriptionId: descriptionId
|
|
1761
|
+
};
|
|
1762
|
+
}, [titleId, descriptionId]);
|
|
1763
|
+
useFocusableMount({
|
|
1764
|
+
targetRef: sheetRef,
|
|
1765
|
+
isMounted: isOpen,
|
|
1766
|
+
focusOnMount: focusOnMount,
|
|
1767
|
+
restoreFocus: restoreFocus
|
|
1768
|
+
});
|
|
1769
|
+
return React__default.createElement(SheetContext.Provider, {
|
|
1770
|
+
value: sheetContext
|
|
1771
|
+
}, React__default.createElement(StyledSheet, _extends$3({
|
|
1772
|
+
isOpen: isOpen,
|
|
1773
|
+
isAnimated: isAnimated,
|
|
1774
|
+
placement: placement,
|
|
1775
|
+
size: size,
|
|
1776
|
+
tabIndex: -1,
|
|
1777
|
+
id: idPrefix,
|
|
1778
|
+
"aria-labelledby": titleId,
|
|
1779
|
+
"aria-describedby": descriptionId,
|
|
1780
|
+
ref: mergeRefs([sheetRef, ref])
|
|
1781
|
+
}, props), React__default.createElement(StyledSheetWrapper, {
|
|
1782
|
+
isOpen: isOpen,
|
|
1783
|
+
isAnimated: isAnimated,
|
|
1784
|
+
placement: placement,
|
|
1785
|
+
size: size
|
|
1786
|
+
}, children)));
|
|
1787
|
+
});
|
|
1788
|
+
Sheet.Title = SheetTitle;
|
|
1789
|
+
Sheet.Description = SheetDescription;
|
|
1790
|
+
Sheet.Header = SheetHeader;
|
|
1791
|
+
Sheet.Body = SheetBody;
|
|
1792
|
+
Sheet.Footer = SheetFooter;
|
|
1793
|
+
Sheet.FooterItem = SheetFooterItem;
|
|
1794
|
+
Sheet.Close = SheetClose;
|
|
1795
|
+
Sheet.displayName = 'Sheet';
|
|
1796
|
+
Sheet.propTypes = {
|
|
1797
|
+
id: PropTypes.string,
|
|
1798
|
+
isOpen: PropTypes.bool,
|
|
1799
|
+
isAnimated: PropTypes.bool,
|
|
1800
|
+
focusOnMount: PropTypes.bool,
|
|
1801
|
+
restoreFocus: PropTypes.bool,
|
|
1802
|
+
placement: PropTypes.oneOf(['start', 'end']),
|
|
1803
|
+
size: PropTypes.string
|
|
1804
|
+
};
|
|
1805
|
+
Sheet.defaultProps = {
|
|
1806
|
+
isOpen: false,
|
|
1807
|
+
isAnimated: true,
|
|
1808
|
+
focusOnMount: false,
|
|
1809
|
+
restoreFocus: false,
|
|
1810
|
+
placement: 'end',
|
|
1811
|
+
size: '380px'
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
export { Body, Chrome, CollapsibleSubNavItem, Content, Footer, FooterItem, Header, HeaderItem, HeaderItemIcon, HeaderItemText, HeaderItemWrapper, Main, Nav, NavItem, NavItemIcon, NavItemText, Sheet, Sidebar, SkipNav, SubNav, SubNavItem, SubNavItemText };
|