@zendeskgarden/react-chrome 8.39.0 → 8.41.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.esm.js CHANGED
@@ -14,6 +14,44 @@ import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, PALETT
14
14
  import { useAccordion } from '@zendeskgarden/container-accordion';
15
15
  import { getControlledValue } from '@zendeskgarden/container-utilities';
16
16
 
17
+ function ownKeys(object, enumerableOnly) {
18
+ var keys = Object.keys(object);
19
+
20
+ if (Object.getOwnPropertySymbols) {
21
+ var symbols = Object.getOwnPropertySymbols(object);
22
+
23
+ if (enumerableOnly) {
24
+ symbols = symbols.filter(function (sym) {
25
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
26
+ });
27
+ }
28
+
29
+ keys.push.apply(keys, symbols);
30
+ }
31
+
32
+ return keys;
33
+ }
34
+
35
+ function _objectSpread2(target) {
36
+ for (var i = 1; i < arguments.length; i++) {
37
+ var source = arguments[i] != null ? arguments[i] : {};
38
+
39
+ if (i % 2) {
40
+ ownKeys(Object(source), true).forEach(function (key) {
41
+ _defineProperty(target, key, source[key]);
42
+ });
43
+ } else if (Object.getOwnPropertyDescriptors) {
44
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
45
+ } else {
46
+ ownKeys(Object(source)).forEach(function (key) {
47
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
48
+ });
49
+ }
50
+ }
51
+
52
+ return target;
53
+ }
54
+
17
55
  function _defineProperty(obj, key, value) {
18
56
  if (key in obj) {
19
57
  Object.defineProperty(obj, key, {
@@ -47,40 +85,6 @@ function _extends$2() {
47
85
  return _extends$2.apply(this, arguments);
48
86
  }
49
87
 
50
- function ownKeys(object, enumerableOnly) {
51
- var keys = Object.keys(object);
52
-
53
- if (Object.getOwnPropertySymbols) {
54
- var symbols = Object.getOwnPropertySymbols(object);
55
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
56
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
57
- });
58
- keys.push.apply(keys, symbols);
59
- }
60
-
61
- return keys;
62
- }
63
-
64
- function _objectSpread2(target) {
65
- for (var i = 1; i < arguments.length; i++) {
66
- var source = arguments[i] != null ? arguments[i] : {};
67
-
68
- if (i % 2) {
69
- ownKeys(Object(source), true).forEach(function (key) {
70
- _defineProperty(target, key, source[key]);
71
- });
72
- } else if (Object.getOwnPropertyDescriptors) {
73
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
74
- } else {
75
- ownKeys(Object(source)).forEach(function (key) {
76
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
77
- });
78
- }
79
- }
80
-
81
- return target;
82
- }
83
-
84
88
  function _objectWithoutPropertiesLoose(source, excluded) {
85
89
  if (source == null) return {};
86
90
  var target = {};
@@ -117,18 +121,6 @@ function _objectWithoutProperties(source, excluded) {
117
121
  return target;
118
122
  }
119
123
 
120
- function _taggedTemplateLiteral(strings, raw) {
121
- if (!raw) {
122
- raw = strings.slice(0);
123
- }
124
-
125
- return Object.freeze(Object.defineProperties(strings, {
126
- raw: {
127
- value: Object.freeze(raw)
128
- }
129
- }));
130
- }
131
-
132
124
  function _slicedToArray(arr, i) {
133
125
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
134
126
  }
@@ -138,14 +130,17 @@ function _arrayWithHoles(arr) {
138
130
  }
139
131
 
140
132
  function _iterableToArrayLimit(arr, i) {
141
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
133
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
134
+
135
+ if (_i == null) return;
142
136
  var _arr = [];
143
137
  var _n = true;
144
138
  var _d = false;
145
- var _e = undefined;
139
+
140
+ var _s, _e;
146
141
 
147
142
  try {
148
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
143
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
149
144
  _arr.push(_s.value);
150
145
 
151
146
  if (i && _arr.length === i) break;
@@ -192,12 +187,14 @@ var useChromeContext = function useChromeContext() {
192
187
  return useContext(ChromeContext);
193
188
  };
194
189
 
195
- var _templateObject$s;
196
190
  var COMPONENT_ID$r = 'chrome.chrome';
197
191
  var StyledChrome = styled.div.attrs({
198
192
  'data-garden-id': COMPONENT_ID$r,
199
- 'data-garden-version': '8.39.0'
200
- })(_templateObject$s || (_templateObject$s = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n margin: 0;\n height: 100vh;\n overflow-y: hidden; /* [1] */\n font-family: ", ";\n direction: ", ";\n\n ", ";\n"])), function (props) {
193
+ 'data-garden-version': '8.41.0'
194
+ }).withConfig({
195
+ displayName: "StyledChrome",
196
+ componentId: "sc-1uqm6u6-0"
197
+ })(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], function (props) {
201
198
  return props.theme.fonts.system;
202
199
  }, function (props) {
203
200
  return props.theme.rtl && 'rtl';
@@ -208,12 +205,14 @@ StyledChrome.defaultProps = {
208
205
  theme: DEFAULT_THEME
209
206
  };
210
207
 
211
- var _templateObject$r;
212
208
  var COMPONENT_ID$q = 'chrome.header_item_icon';
213
209
  var StyledHeaderItemIcon = styled.div.attrs({
214
210
  'data-garden-id': COMPONENT_ID$q,
215
- 'data-garden-version': '8.39.0'
216
- })(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n transition: transform 0.25s ease-in-out;\n margin: 0 3px;\n width: ", ";\n min-width: ", ";\n height: ", ";\n\n ", ";\n"])), function (props) {
211
+ 'data-garden-version': '8.41.0'
212
+ }).withConfig({
213
+ displayName: "StyledHeaderItemIcon",
214
+ componentId: "sc-1jhhp6z-0"
215
+ })(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], function (props) {
217
216
  return props.theme.iconSizes.md;
218
217
  }, function (props) {
219
218
  return props.theme.iconSizes.md;
@@ -226,7 +225,6 @@ StyledHeaderItemIcon.defaultProps = {
226
225
  theme: DEFAULT_THEME
227
226
  };
228
227
 
229
- var _templateObject$q;
230
228
  var COMPONENT_ID$p = 'chrome.base_header_item';
231
229
  var getHeaderItemSize = function getHeaderItemSize(props) {
232
230
  return "".concat(props.theme.space.base * 7.5, "px");
@@ -237,8 +235,11 @@ var sizeStyles$4 = function sizeStyles(props) {
237
235
  };
238
236
  var StyledBaseHeaderItem = styled.button.attrs({
239
237
  'data-garden-id': COMPONENT_ID$p,
240
- 'data-garden-version': '8.39.0'
241
- })(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n display: inline-flex;\n position: relative;\n flex: ", ";\n align-items: center;\n justify-content: ", ";\n order: 1;\n transition: box-shadow 0.1s ease-in-out, color 0.1s ease-in-out;\n z-index: 0; /* [1] */\n margin: ", ";\n border: none; /* [2] */\n border-radius: ", ";\n background: transparent; /* [2] */\n text-decoration: none;\n white-space: nowrap;\n color: inherit;\n font-size: inherit; /* [2] */\n\n ", "\n\n ", ";\n"])), function (props) {
238
+ 'data-garden-version': '8.41.0'
239
+ }).withConfig({
240
+ displayName: "StyledBaseHeaderItem",
241
+ componentId: "sc-1qua7h6-0"
242
+ })(["display:inline-flex;position:relative;flex:", ";align-items:center;justify-content:", ";order:1;transition:box-shadow 0.1s ease-in-out,color 0.1s ease-in-out;z-index:0;margin:", ";border:none;border-radius:", ";background:transparent;text-decoration:none;white-space:nowrap;color:inherit;font-size:inherit;", " ", ";"], function (props) {
242
243
  return props.maxX && '1';
243
244
  }, function (props) {
244
245
  return props.maxX ? 'start' : 'center';
@@ -259,13 +260,15 @@ StyledBaseHeaderItem.defaultProps = {
259
260
  theme: DEFAULT_THEME
260
261
  };
261
262
 
262
- var _templateObject$p;
263
263
  var COMPONENT_ID$o = 'chrome.header_item_text';
264
264
  var clippedStyling = css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
265
265
  var StyledHeaderItemText = styled.span.attrs({
266
266
  'data-garden-id': COMPONENT_ID$o,
267
- 'data-garden-version': '8.39.0'
268
- })(_templateObject$p || (_templateObject$p = _taggedTemplateLiteral(["\n margin: 0 3px;\n\n ", "\n\n ", ";\n"])), function (props) {
267
+ 'data-garden-version': '8.41.0'
268
+ }).withConfig({
269
+ displayName: "StyledHeaderItemText",
270
+ componentId: "sc-goz7la-0"
271
+ })(["margin:0 3px;", " ", ";"], function (props) {
269
272
  return props.isClipped && clippedStyling;
270
273
  }, function (props) {
271
274
  return retrieveComponentStyles(COMPONENT_ID$o, props);
@@ -274,7 +277,6 @@ StyledHeaderItemText.defaultProps = {
274
277
  theme: DEFAULT_THEME
275
278
  };
276
279
 
277
- var _templateObject$o;
278
280
  var COMPONENT_ID$n = 'chrome.nav';
279
281
  var colorStyles$5 = function colorStyles(props) {
280
282
  var shade = props.isDark || props.isLight ? 600 : 700;
@@ -290,8 +292,11 @@ var getExpandedNavWidth = function getExpandedNavWidth() {
290
292
  };
291
293
  var StyledNav = styled.nav.attrs({
292
294
  'data-garden-id': COMPONENT_ID$n,
293
- 'data-garden-version': '8.39.0'
294
- })(_templateObject$o || (_templateObject$o = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n flex-direction: column;\n flex-shrink: 0;\n order: -1;\n width: ", ";\n font-size: ", ";\n\n ", ";\n\n ", ";\n"])), function (props) {
295
+ 'data-garden-version': '8.41.0'
296
+ }).withConfig({
297
+ displayName: "StyledNav",
298
+ componentId: "sc-6j462r-0"
299
+ })(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], function (props) {
295
300
  return props.isExpanded ? getExpandedNavWidth : getNavWidth;
296
301
  }, function (props) {
297
302
  return props.theme.fontSizes.md;
@@ -304,7 +309,6 @@ StyledNav.defaultProps = {
304
309
  theme: DEFAULT_THEME
305
310
  };
306
311
 
307
- var _templateObject$n;
308
312
  var COMPONENT_ID$m = 'chrome.header_item';
309
313
  var retrieveProductColor$1 = function retrieveProductColor(props) {
310
314
  switch (props.product) {
@@ -328,9 +332,12 @@ var retrieveProductColor$1 = function retrieveProductColor(props) {
328
332
  };
329
333
  var StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
330
334
  'data-garden-id': COMPONENT_ID$m,
331
- 'data-garden-version': '8.39.0',
335
+ 'data-garden-version': '8.41.0',
332
336
  as: 'div'
333
- })(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n display: none;\n order: 0;\n margin-right: ", ";\n margin-left: ", ";\n /* stylelint-disable-next-line property-no-unknown */\n border-", ": ", ";\n border-radius: 0;\n padding: 0;\n width: ", ";\n height: 100%;\n overflow: hidden;\n fill: ", ";\n text-decoration: none; /* [1] */\n color: ", "; /* [1] */\n\n ", " {\n ", "\n }\n\n ", " {\n margin: 0;\n width: ", ";\n height: ", ";\n }\n\n ", ";\n"])), function (props) {
337
+ }).withConfig({
338
+ displayName: "StyledLogoHeaderItem",
339
+ componentId: "sc-1n1d1yv-0"
340
+ })(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], function (props) {
334
341
  return props.theme.rtl ? "-".concat(props.theme.space.base, "px") : 'auto';
335
342
  }, function (props) {
336
343
  return props.theme.rtl ? 'auto' : "-".concat(props.theme.space.base, "px");
@@ -355,7 +362,6 @@ StyledLogoHeaderItem.defaultProps = {
355
362
  theme: DEFAULT_THEME
356
363
  };
357
364
 
358
- var _templateObject$m;
359
365
  var COMPONENT_ID$l = 'chrome.base_nav_item';
360
366
  var getNavItemHeight = function getNavItemHeight(props) {
361
367
  return "".concat(props.theme.space.base * 13, "px");
@@ -367,23 +373,28 @@ var sizeStyles$3 = function sizeStyles(props) {
367
373
  };
368
374
  var StyledBaseNavItem = styled.button.attrs({
369
375
  'data-garden-id': COMPONENT_ID$l,
370
- 'data-garden-version': '8.39.0'
371
- })(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n /* stylelint-disable-next-line value-list-comma-newline-after */\n transition: box-shadow 0.1s ease-in-out, background-color 0.1s ease-in-out,\n opacity 0.1s ease-in-out;\n border: none; /* [1] */\n box-sizing: border-box;\n background: transparent; /* [1] */\n text-decoration: none; /* [2] */\n color: inherit; /* [2] */\n font-size: inherit; /* [1] */\n\n ", "\n"])), function (props) {
376
+ 'data-garden-version': '8.41.0'
377
+ }).withConfig({
378
+ displayName: "StyledBaseNavItem",
379
+ componentId: "sc-zvo43f-0"
380
+ })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;border:none;box-sizing:border-box;background:transparent;text-decoration:none;color:inherit;font-size:inherit;", ""], function (props) {
372
381
  return sizeStyles$3(props);
373
382
  });
374
383
  StyledBaseNavItem.defaultProps = {
375
384
  theme: DEFAULT_THEME
376
385
  };
377
386
 
378
- var _templateObject$l;
379
387
  var COMPONENT_ID$k = 'chrome.header';
380
388
  var getHeaderHeight = function getHeaderHeight(props) {
381
389
  return getNavItemHeight(props);
382
390
  };
383
391
  var StyledHeader = styled.header.attrs({
384
392
  'data-garden-id': COMPONENT_ID$k,
385
- 'data-garden-version': '8.39.0'
386
- })(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n display: flex;\n position: ", ";\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n border-bottom: ", ";\n box-shadow: ", ";\n background-color: ", ";\n padding: 0 ", "px;\n height: ", ";\n color: ", ";\n font-size: ", ";\n\n ", "\n\n ", ";\n"])), function (props) {
393
+ 'data-garden-version': '8.41.0'
394
+ }).withConfig({
395
+ displayName: "StyledHeader",
396
+ componentId: "sc-1cexpz-0"
397
+ })(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], function (props) {
387
398
  return props.isStandalone && 'relative';
388
399
  }, function (props) {
389
400
  return "".concat(props.theme.borders.sm, " ").concat(getColor('neutralHue', 300, props.theme));
@@ -406,7 +417,6 @@ StyledHeader.defaultProps = {
406
417
  theme: DEFAULT_THEME
407
418
  };
408
419
 
409
- var _templateObject$k;
410
420
  var COMPONENT_ID$j = 'chrome.skipnav';
411
421
  var animationStyles = function animationStyles() {
412
422
  var animationName = keyframes(["0%{transform:translate(-50%,-50%);}"]);
@@ -428,8 +438,11 @@ var sizeStyles$2 = function sizeStyles(props) {
428
438
  };
429
439
  var StyledSkipNav = styled.a.attrs({
430
440
  'data-garden-id': COMPONENT_ID$j,
431
- 'data-garden-version': '8.39.0'
432
- })(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n ", ";\n\n display: inline-flex;\n position: absolute;\n left: 50%;\n align-items: center;\n justify-content: center;\n transform: translateX(-50%);\n direction: ", ";\n z-index: ", ";\n border: ", ";\n border-radius: ", ";\n text-decoration: underline;\n white-space: nowrap;\n\n ", ";\n\n &:focus {\n outline: none;\n }\n\n ", ";\n\n ", ";\n"])), animationStyles(), function (props) {
441
+ 'data-garden-version': '8.41.0'
442
+ }).withConfig({
443
+ displayName: "StyledSkipNav",
444
+ componentId: "sc-1tsro34-0"
445
+ })(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";&:focus{outline:none;}", ";", ";"], animationStyles(), function (props) {
433
446
  return props.theme.rtl && 'rtl';
434
447
  }, function (props) {
435
448
  return props.zIndex;
@@ -466,7 +479,6 @@ function SvgLinkStroke(props) {
466
479
  }, props), _ref$1);
467
480
  }
468
481
 
469
- var _templateObject$j;
470
482
  var COMPONENT_ID$i = 'chrome.skipnav_icon';
471
483
  var sizeStyles$1 = function sizeStyles(theme) {
472
484
  var margin = "".concat(theme.space.base * 2, "px");
@@ -475,8 +487,11 @@ var sizeStyles$1 = function sizeStyles(theme) {
475
487
  };
476
488
  var StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
477
489
  'data-garden-id': COMPONENT_ID$i,
478
- 'data-garden-version': '8.39.0'
479
- })(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n transform: ", ";\n color: ", ";\n\n ", ";\n\n ", ";\n"])), function (props) {
490
+ 'data-garden-version': '8.41.0'
491
+ }).withConfig({
492
+ displayName: "StyledSkipNavIcon",
493
+ componentId: "sc-1ika5z4-0"
494
+ })(["transform:", ";color:", ";", ";", ";"], function (props) {
480
495
  return props.theme.rtl && 'scaleX(-1)';
481
496
  }, function (props) {
482
497
  return getColor('neutralHue', 600, props.theme);
@@ -489,12 +504,14 @@ StyledSkipNavIcon.defaultProps = {
489
504
  theme: DEFAULT_THEME
490
505
  };
491
506
 
492
- var _templateObject$i;
493
507
  var COMPONENT_ID$h = 'chrome.body';
494
508
  var StyledBody = styled.div.attrs({
495
509
  'data-garden-id': COMPONENT_ID$h,
496
- 'data-garden-version': '8.39.0'
497
- })(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n flex: 1;\n order: 1;\n background-color: ", ";\n min-width: 0;\n\n ", ";\n"])), function (props) {
510
+ 'data-garden-version': '8.41.0'
511
+ }).withConfig({
512
+ displayName: "StyledBody",
513
+ componentId: "sc-c7h9kv-0"
514
+ })(["flex:1;order:1;background-color:", ";min-width:0;", ";"], function (props) {
498
515
  return getColor('neutralHue', 100, props.theme);
499
516
  }, function (props) {
500
517
  return retrieveComponentStyles(COMPONENT_ID$h, props);
@@ -503,15 +520,17 @@ StyledBody.defaultProps = {
503
520
  theme: DEFAULT_THEME
504
521
  };
505
522
 
506
- var _templateObject$h;
507
523
  var COMPONENT_ID$g = 'chrome.footer';
508
524
  var getFooterHeight = function getFooterHeight(props) {
509
525
  return "".concat(props.theme.space.base * 20, "px");
510
526
  };
511
527
  var StyledFooter = styled.footer.attrs({
512
528
  'data-garden-id': COMPONENT_ID$g,
513
- 'data-garden-version': '8.39.0'
514
- })(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n border-top: ", ";\n background-color: ", ";\n padding: 0 ", "px;\n height: ", ";\n\n ", ";\n"])), function (props) {
529
+ 'data-garden-version': '8.41.0'
530
+ }).withConfig({
531
+ displayName: "StyledFooter",
532
+ componentId: "sc-v7lib2-0"
533
+ })(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], function (props) {
515
534
  return "".concat(props.theme.borders.sm, " ").concat(getColor('neutralHue', 300, props.theme));
516
535
  }, function (props) {
517
536
  return props.theme.colors.background;
@@ -524,12 +543,14 @@ StyledFooter.defaultProps = {
524
543
  theme: DEFAULT_THEME
525
544
  };
526
545
 
527
- var _templateObject$g;
528
546
  var COMPONENT_ID$f = 'chrome.content';
529
547
  var StyledContent = styled.div.attrs({
530
548
  'data-garden-id': COMPONENT_ID$f,
531
- 'data-garden-version': '8.39.0'
532
- })(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n display: flex;\n height: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n\n &:focus {\n outline: none;\n }\n\n ", ";\n"])), function (props) {
549
+ 'data-garden-version': '8.41.0'
550
+ }).withConfig({
551
+ displayName: "StyledContent",
552
+ componentId: "sc-qcuzxn-0"
553
+ })(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], function (props) {
533
554
  return props.hasFooter ? "calc(100% - ".concat(math("".concat(getHeaderHeight(props), " + ").concat(getFooterHeight(props))), ")") : "calc(100% - ".concat(getHeaderHeight(props), ")");
534
555
  }, function (props) {
535
556
  return getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md);
@@ -544,12 +565,14 @@ StyledContent.defaultProps = {
544
565
  theme: DEFAULT_THEME
545
566
  };
546
567
 
547
- var _templateObject$f;
548
568
  var COMPONENT_ID$e = 'chrome.main';
549
569
  var StyledMain = styled.main.attrs({
550
570
  'data-garden-id': COMPONENT_ID$e,
551
- 'data-garden-version': '8.39.0'
552
- })(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral(["\n flex: 1;\n order: 1;\n background-color: ", ";\n overflow: auto;\n\n :focus {\n outline: none;\n }\n\n ", ";\n"])), function (props) {
571
+ 'data-garden-version': '8.41.0'
572
+ }).withConfig({
573
+ displayName: "StyledMain",
574
+ componentId: "sc-t61cre-0"
575
+ })(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], function (props) {
553
576
  return props.theme.colors.background;
554
577
  }, function (props) {
555
578
  return retrieveComponentStyles(COMPONENT_ID$e, props);
@@ -558,12 +581,14 @@ StyledMain.defaultProps = {
558
581
  theme: DEFAULT_THEME
559
582
  };
560
583
 
561
- var _templateObject$e;
562
584
  var COMPONENT_ID$d = 'chrome.sidebar';
563
585
  var StyledSidebar = styled.aside.attrs({
564
586
  'data-garden-id': COMPONENT_ID$d,
565
- 'data-garden-version': '8.39.0'
566
- })(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral(["\n flex-shrink: 0;\n order: 0;\n box-sizing: border-box;\n /* stylelint-disable-next-line property-no-unknown */\n border-", ": ", ";\n width: 330px;\n overflow: auto;\n\n &:focus {\n outline: none;\n }\n\n ", ";\n"])), function (props) {
587
+ 'data-garden-version': '8.41.0'
588
+ }).withConfig({
589
+ displayName: "StyledSidebar",
590
+ componentId: "sc-1q77fuw-0"
591
+ })(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], function (props) {
567
592
  return props.theme.rtl ? 'left' : 'right';
568
593
  }, function (props) {
569
594
  return "".concat(props.theme.borders.sm, " ").concat(getColor('neutralHue', 300, props.theme));
@@ -574,12 +599,14 @@ StyledSidebar.defaultProps = {
574
599
  theme: DEFAULT_THEME
575
600
  };
576
601
 
577
- var _templateObject$d;
578
602
  var COMPONENT_ID$c = 'chrome.footer_item';
579
603
  var StyledFooterItem = styled.div.attrs({
580
604
  'data-garden-id': COMPONENT_ID$c,
581
- 'data-garden-version': '8.39.0'
582
- })(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral(["\n margin: ", ";\n\n ", ";\n"])), function (props) {
605
+ 'data-garden-version': '8.41.0'
606
+ }).withConfig({
607
+ displayName: "StyledFooterItem",
608
+ componentId: "sc-1cktm85-0"
609
+ })(["margin:", ";", ";"], function (props) {
583
610
  return "0 ".concat(props.theme.space.base, "px");
584
611
  }, function (props) {
585
612
  return retrieveComponentStyles(COMPONENT_ID$c, props);
@@ -588,7 +615,6 @@ StyledFooterItem.defaultProps = {
588
615
  theme: DEFAULT_THEME
589
616
  };
590
617
 
591
- var _templateObject$c;
592
618
  var COMPONENT_ID$b = 'chrome.header_item';
593
619
  var imgStyles = function imgStyles(props) {
594
620
  var size = math("".concat(getHeaderItemSize(props), " - ").concat(props.theme.space.base * 2));
@@ -596,8 +622,11 @@ var imgStyles = function imgStyles(props) {
596
622
  };
597
623
  var StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
598
624
  'data-garden-id': COMPONENT_ID$b,
599
- 'data-garden-version': '8.39.0'
600
- })(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral(["\n &:hover,\n &:focus {\n text-decoration: none; /* [1] */\n color: inherit; /* [1] */\n }\n\n &:focus {\n outline: none; /* [1] */\n }\n\n &[data-garden-focus-visible] {\n box-shadow: ", ";\n }\n\n &[data-garden-focus-visible]:active {\n box-shadow: none;\n }\n\n /* prettier-ignore */\n &:hover ", ",\n &:hover ", ",\n &:active ", ",\n &:active ", " {\n color: ", ";\n }\n\n ", "\n\n ", "\n\n ", "\n\n ", ";\n"])), function (props) {
625
+ 'data-garden-version': '8.41.0'
626
+ }).withConfig({
627
+ displayName: "StyledHeaderItem",
628
+ componentId: "sc-14sft6n-0"
629
+ })(["&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}&[data-garden-focus-visible]{box-shadow:", ";}&[data-garden-focus-visible]:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", " ", ";"], function (props) {
601
630
  return props.theme.shadows.md(getColor('chromeHue', 400, props.theme, 0.35));
602
631
  },
603
632
  StyledHeaderItemIcon,
@@ -616,20 +645,21 @@ StyledHeaderItem.defaultProps = {
616
645
  theme: DEFAULT_THEME
617
646
  };
618
647
 
619
- var _templateObject$b;
620
648
  var COMPONENT_ID$a = 'chrome.header_item_wrapper';
621
649
  var StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
622
650
  'data-garden-id': COMPONENT_ID$a,
623
- 'data-garden-version': '8.39.0',
651
+ 'data-garden-version': '8.41.0',
624
652
  as: 'div'
625
- })(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n ", ";\n"])), function (props) {
653
+ }).withConfig({
654
+ displayName: "StyledHeaderItemWrapper",
655
+ componentId: "sc-1uieu55-0"
656
+ })(["", ";"], function (props) {
626
657
  return retrieveComponentStyles(COMPONENT_ID$a, props);
627
658
  });
628
659
  StyledHeaderItemWrapper.defaultProps = {
629
660
  theme: DEFAULT_THEME
630
661
  };
631
662
 
632
- var _templateObject$a;
633
663
  var COMPONENT_ID$9 = 'chrome.logo_nav_item';
634
664
  var retrieveProductColor = function retrieveProductColor(product) {
635
665
  switch (product) {
@@ -658,32 +688,39 @@ var colorStyles$3 = function colorStyles(props) {
658
688
  };
659
689
  var StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
660
690
  'data-garden-id': COMPONENT_ID$9,
661
- 'data-garden-version': '8.39.0',
691
+ 'data-garden-version': '8.41.0',
662
692
  as: 'div'
663
- })(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral(["\n order: 0;\n opacity: 1;\n cursor: default;\n\n ", ";\n"])), function (props) {
693
+ }).withConfig({
694
+ displayName: "StyledLogoNavItem",
695
+ componentId: "sc-saaydx-0"
696
+ })(["order:0;opacity:1;cursor:default;", ";"], function (props) {
664
697
  return colorStyles$3(props);
665
698
  });
666
699
  StyledLogoNavItem.defaultProps = {
667
700
  theme: DEFAULT_THEME
668
701
  };
669
702
 
670
- var _templateObject$9;
671
703
  var COMPONENT_ID$8 = 'chrome.brandmark_nav_item';
672
704
  var StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
673
705
  'data-garden-id': COMPONENT_ID$8,
674
- 'data-garden-version': '8.39.0',
706
+ 'data-garden-version': '8.41.0',
675
707
  as: 'div'
676
- })(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral(["\n order: 1;\n opacity: 0.3;\n margin-top: auto;\n"])));
708
+ }).withConfig({
709
+ displayName: "StyledBrandmarkNavItem",
710
+ componentId: "sc-8kynd4-0"
711
+ })(["order:1;opacity:0.3;margin-top:auto;"]);
677
712
  StyledBrandmarkNavItem.defaultProps = {
678
713
  theme: DEFAULT_THEME
679
714
  };
680
715
 
681
- var _templateObject$8;
682
716
  var COMPONENT_ID$7 = 'chrome.nav_item_icon';
683
717
  var StyledNavItemIcon = styled.div.attrs({
684
718
  'data-garden-id': COMPONENT_ID$7,
685
- 'data-garden-version': '8.39.0'
686
- })(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral(["\n align-self: flex-start;\n order: 0;\n border-radius: ", ";\n width: ", ";\n height: ", ";\n\n ", ";\n"])), function (props) {
719
+ 'data-garden-version': '8.41.0'
720
+ }).withConfig({
721
+ displayName: "StyledNavItemIcon",
722
+ componentId: "sc-7w9rpt-0"
723
+ })(["align-self:flex-start;order:0;border-radius:", ";width:", ";height:", ";", ";"], function (props) {
687
724
  return props.theme.borderRadii.md;
688
725
  }, function (props) {
689
726
  return props.theme.iconSizes.lg;
@@ -696,7 +733,6 @@ StyledNavItemIcon.defaultProps = {
696
733
  theme: DEFAULT_THEME
697
734
  };
698
735
 
699
- var _templateObject$7;
700
736
  var COMPONENT_ID$6 = 'chrome.nav_item';
701
737
  var colorStyles$2 = function colorStyles(props) {
702
738
  var BLACK = props.theme.palette.black;
@@ -720,9 +756,12 @@ var colorStyles$2 = function colorStyles(props) {
720
756
  };
721
757
  var StyledNavItem = styled(StyledBaseNavItem).attrs({
722
758
  'data-garden-id': COMPONENT_ID$6,
723
- 'data-garden-version': '8.39.0',
759
+ 'data-garden-version': '8.41.0',
724
760
  as: 'button'
725
- })(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n justify-content: ", ";\n order: 1;\n margin: 0; /* [2] */\n cursor: ", ";\n text-align: ", ";\n\n &:hover,\n &:focus {\n text-decoration: none; /* [1] */\n color: inherit; /* [1] */\n }\n\n &:focus {\n outline: none; /* [1] */\n }\n\n ", ";\n\n ", "\n\n ", ";\n"])), function (props) {
761
+ }).withConfig({
762
+ displayName: "StyledNavItem",
763
+ componentId: "sc-gs8mjz-0"
764
+ })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", " ", ";"], function (props) {
726
765
  return props.isExpanded && 'start';
727
766
  }, function (props) {
728
767
  return props.isCurrent ? 'default' : 'pointer';
@@ -739,12 +778,14 @@ StyledNavItem.defaultProps = {
739
778
  theme: DEFAULT_THEME
740
779
  };
741
780
 
742
- var _templateObject$6;
743
781
  var COMPONENT_ID$5 = 'chrome.nav_item_text';
744
782
  var StyledNavItemText = styled.span.attrs({
745
783
  'data-garden-id': COMPONENT_ID$5,
746
- 'data-garden-version': '8.39.0'
747
- })(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n position: absolute;\n order: 1;\n clip: rect(1px, 1px, 1px, 1px);\n margin: ", ";\n width: 1px;\n height: 1px;\n overflow: hidden;\n line-height: ", ";\n white-space: ", ";\n\n ", "\n\n ", ";\n"])), function (props) {
784
+ 'data-garden-version': '8.41.0'
785
+ }).withConfig({
786
+ displayName: "StyledNavItemText",
787
+ componentId: "sc-13m84xl-0"
788
+ })(["position:absolute;order:1;clip:rect(1px,1px,1px,1px);margin:", ";width:1px;height:1px;overflow:hidden;line-height:", ";white-space:", ";", " ", ";"], function (props) {
748
789
  return props.isExpanded && "0 ".concat(math("(".concat(getNavWidth(props), " - ").concat(props.theme.iconSizes.lg, ") / 4")));
749
790
  }, function (props) {
750
791
  return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
@@ -759,7 +800,6 @@ StyledNavItemText.defaultProps = {
759
800
  theme: DEFAULT_THEME
760
801
  };
761
802
 
762
- var _templateObject$5;
763
803
  var COMPONENT_ID$4 = 'chrome.subnav_item';
764
804
  var colorStyles$1 = function colorStyles(props) {
765
805
  var BLACK = props.theme.palette.black;
@@ -784,8 +824,11 @@ var getSubNavItemHeight = function getSubNavItemHeight(props) {
784
824
  };
785
825
  var StyledSubNavItem = styled.button.attrs({
786
826
  'data-garden-id': COMPONENT_ID$4,
787
- 'data-garden-version': '8.39.0'
788
- })(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n /* prettier-ignore */\n transition: box-shadow 0.1s ease-in-out,\n background-color 0.1s ease-in-out,\n opacity 0.1s ease-in-out;\n margin: ", "px 0 0; /* [2] */\n border: none; /* [2] */\n border-radius: ", ";\n box-sizing: border-box;\n background: transparent; /* [2] */\n cursor: ", "; /* [2] */\n padding: ", ";\n width: 100%; /* [2] */\n min-height: ", ";\n text-align: inherit; /* [2] */\n font-size: inherit; /* [2] */\n\n &,\n &:hover,\n &:focus {\n text-decoration: none; /* [1] */\n color: inherit; /* [1] */\n }\n\n &:focus {\n outline: none; /* [1] */\n }\n\n ", ";\n\n ", ";\n"])), function (props) {
827
+ 'data-garden-version': '8.41.0'
828
+ }).withConfig({
829
+ displayName: "StyledSubNavItem",
830
+ componentId: "sc-1yg9dpx-0"
831
+ })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;margin:", "px 0 0;border:none;border-radius:", ";box-sizing:border-box;background:transparent;cursor:", ";padding:", ";width:100%;min-height:", ";text-align:inherit;font-size:inherit;&,&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", ";"], function (props) {
789
832
  return props.theme.space.base * 2;
790
833
  }, function (props) {
791
834
  return props.theme.borderRadii.md;
@@ -802,7 +845,6 @@ StyledSubNavItem.defaultProps = {
802
845
  theme: DEFAULT_THEME
803
846
  };
804
847
 
805
- var _templateObject$4;
806
848
  var COMPONENT_ID$3 = 'chrome.subnav';
807
849
  var colorStyles = function colorStyles(props) {
808
850
  var shade;
@@ -817,8 +859,11 @@ var colorStyles = function colorStyles(props) {
817
859
  };
818
860
  var StyledSubNav = styled.nav.attrs({
819
861
  'data-garden-id': COMPONENT_ID$3,
820
- 'data-garden-version': '8.39.0'
821
- })(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n flex-direction: column;\n order: 0;\n padding: ", ";\n min-width: 220px;\n font-size: ", ";\n\n ", ";\n\n & > ", ":first-child {\n margin-top: 0;\n }\n\n ", ";\n"])), function (props) {
862
+ 'data-garden-version': '8.41.0'
863
+ }).withConfig({
864
+ displayName: "StyledSubNav",
865
+ componentId: "sc-19hjou6-0"
866
+ })(["flex-direction:column;order:0;padding:", ";min-width:220px;font-size:", ";", ";& > ", ":first-child{margin-top:0;}", ";"], function (props) {
822
867
  return "".concat(props.theme.space.base * 6, "px ").concat(props.theme.space.base * 5, "px");
823
868
  }, function (props) {
824
869
  return props.theme.fontSizes.md;
@@ -831,7 +876,6 @@ StyledSubNav.defaultProps = {
831
876
  theme: DEFAULT_THEME
832
877
  };
833
878
 
834
- var _templateObject$3;
835
879
  var COMPONENT_ID$2 = 'chrome.subnav_item_text';
836
880
  var sizeStyles = function sizeStyles(props) {
837
881
  var baseLineHeight = props.theme.space.base * 5;
@@ -841,8 +885,11 @@ var sizeStyles = function sizeStyles(props) {
841
885
  };
842
886
  var StyledSubNavItemText = styled.span.attrs({
843
887
  'data-garden-id': COMPONENT_ID$2,
844
- 'data-garden-version': '8.39.0'
845
- })(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: ", ";\n\n ", "\n\n ", ";\n"])), function (props) {
888
+ 'data-garden-version': '8.41.0'
889
+ }).withConfig({
890
+ displayName: "StyledSubNavItemText",
891
+ componentId: "sc-1hy0pn7-0"
892
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:", ";", " ", ";"], function (props) {
846
893
  return props.isWrapped ? 'normal' : 'nowrap';
847
894
  }, function (props) {
848
895
  return sizeStyles(props);
@@ -853,13 +900,15 @@ StyledSubNavItemText.defaultProps = {
853
900
  theme: DEFAULT_THEME
854
901
  };
855
902
 
856
- var _templateObject$2;
857
903
  var COMPONENT_ID$1 = 'chrome.collapsible_sub_nav_item';
858
904
  var StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
859
905
  'data-garden-id': COMPONENT_ID$1,
860
- 'data-garden-version': '8.39.0',
906
+ 'data-garden-version': '8.41.0',
861
907
  'data-garden-header': 'true'
862
- })(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n position: relative;\n /* stylelint-disable-next-line property-no-unknown */\n padding-", ": ", "px;\n\n ", ";\n"])), function (props) {
908
+ }).withConfig({
909
+ displayName: "StyledSubNavItemHeader",
910
+ componentId: "sc-1vniter-0"
911
+ })(["position:relative;padding-", ":", "px;", ";"], function (props) {
863
912
  return props.theme.rtl ? 'left' : 'right';
864
913
  }, function (props) {
865
914
  return props.theme.space.base * 7;
@@ -888,7 +937,6 @@ function SvgChevronDownStroke(props) {
888
937
  }, props), _ref);
889
938
  }
890
939
 
891
- var _templateObject$1, _templateObject2;
892
940
  var _excluded$8 = ["theme", "isExpanded"];
893
941
  var COMPONENT_ID = 'chrome.collapsible_sub_nav_item_icon';
894
942
  var FilteredChevronDownStrokeIcon = React__default.forwardRef(function (_ref, ref) {
@@ -900,7 +948,10 @@ var FilteredChevronDownStrokeIcon = React__default.forwardRef(function (_ref, re
900
948
  }, validProps));
901
949
  });
902
950
  FilteredChevronDownStrokeIcon.displayName = 'FilteredChevronDownStrokeIcon';
903
- var StyledSubNavItemIcon = styled(FilteredChevronDownStrokeIcon)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n"])), function (props) {
951
+ var StyledSubNavItemIcon = styled(FilteredChevronDownStrokeIcon).withConfig({
952
+ displayName: "StyledSubNavItemIcon",
953
+ componentId: "sc-1d02hho-0"
954
+ })(["width:", ";height:", ";"], function (props) {
904
955
  return props.theme.iconSizes.sm;
905
956
  }, function (props) {
906
957
  return props.theme.iconSizes.sm;
@@ -910,8 +961,11 @@ StyledSubNavItemIcon.defaultProps = {
910
961
  };
911
962
  var StyledSubNavItemIconWrapper = styled.div.attrs({
912
963
  'data-garden-id': COMPONENT_ID,
913
- 'data-garden-version': '8.39.0'
914
- })(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n position: absolute;\n top: 0;\n right: ", ";\n left: ", ";\n align-items: center;\n justify-content: center;\n width: ", "px;\n height: ", ";\n\n ", " {\n transform: ", ";\n transition: transform 0.25s ease-in-out;\n }\n\n ", ";\n"])), function (props) {
964
+ 'data-garden-version': '8.41.0'
965
+ }).withConfig({
966
+ displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
967
+ componentId: "sc-1d02hho-1"
968
+ })(["display:flex;position:absolute;top:0;right:", ";left:", ";align-items:center;justify-content:center;width:", "px;height:", ";", "{transform:", ";transition:transform 0.25s ease-in-out;}", ";"], function (props) {
915
969
  return props.theme.rtl ? 'auto' : 0;
916
970
  }, function (props) {
917
971
  return props.theme.rtl && 0;
@@ -929,13 +983,15 @@ StyledSubNavItemIconWrapper.defaultProps = {
929
983
  theme: DEFAULT_THEME
930
984
  };
931
985
 
932
- var _templateObject;
933
986
  var PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
934
987
  var hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
935
988
  var StyledSubNavPanel = styled.div.attrs({
936
989
  'data-garden-id': PANEL_COMPONENT_ID,
937
- 'data-garden-version': '8.39.0'
938
- })(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* stylelint-disable-next-line max-line-length */\n transition: max-height 0.25s cubic-bezier(0.15, 0.85, 0.35, 1.2), 0.25s visibility 0s linear;\n height: auto;\n max-height: 100%;\n\n ", "\n\n ", " {\n /* stylelint-disable-next-line property-no-unknown */\n padding-", ": ", ";\n }\n\n ", ";\n"])), function (props) {
990
+ 'data-garden-version': '8.41.0'
991
+ }).withConfig({
992
+ displayName: "StyledSubNavPanel",
993
+ componentId: "sc-1jv3rpv-0"
994
+ })(["transition:max-height 0.25s cubic-bezier(0.15,0.85,0.35,1.2),0.25s visibility 0s linear;height:auto;max-height:100%;", " ", "{padding-", ":", ";}", ";"], function (props) {
939
995
  return props.isHidden && hiddenStyling;
940
996
  }, StyledSubNavItem, function (props) {
941
997
  return props.theme.rtl ? 'right' : 'left';