@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.cjs.js CHANGED
@@ -44,6 +44,44 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
44
44
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
45
45
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
46
46
 
47
+ function ownKeys(object, enumerableOnly) {
48
+ var keys = Object.keys(object);
49
+
50
+ if (Object.getOwnPropertySymbols) {
51
+ var symbols = Object.getOwnPropertySymbols(object);
52
+
53
+ if (enumerableOnly) {
54
+ symbols = symbols.filter(function (sym) {
55
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
56
+ });
57
+ }
58
+
59
+ keys.push.apply(keys, symbols);
60
+ }
61
+
62
+ return keys;
63
+ }
64
+
65
+ function _objectSpread2(target) {
66
+ for (var i = 1; i < arguments.length; i++) {
67
+ var source = arguments[i] != null ? arguments[i] : {};
68
+
69
+ if (i % 2) {
70
+ ownKeys(Object(source), true).forEach(function (key) {
71
+ _defineProperty(target, key, source[key]);
72
+ });
73
+ } else if (Object.getOwnPropertyDescriptors) {
74
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
75
+ } else {
76
+ ownKeys(Object(source)).forEach(function (key) {
77
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
78
+ });
79
+ }
80
+ }
81
+
82
+ return target;
83
+ }
84
+
47
85
  function _defineProperty(obj, key, value) {
48
86
  if (key in obj) {
49
87
  Object.defineProperty(obj, key, {
@@ -77,40 +115,6 @@ function _extends$2() {
77
115
  return _extends$2.apply(this, arguments);
78
116
  }
79
117
 
80
- function ownKeys(object, enumerableOnly) {
81
- var keys = Object.keys(object);
82
-
83
- if (Object.getOwnPropertySymbols) {
84
- var symbols = Object.getOwnPropertySymbols(object);
85
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
86
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
87
- });
88
- keys.push.apply(keys, symbols);
89
- }
90
-
91
- return keys;
92
- }
93
-
94
- function _objectSpread2(target) {
95
- for (var i = 1; i < arguments.length; i++) {
96
- var source = arguments[i] != null ? arguments[i] : {};
97
-
98
- if (i % 2) {
99
- ownKeys(Object(source), true).forEach(function (key) {
100
- _defineProperty(target, key, source[key]);
101
- });
102
- } else if (Object.getOwnPropertyDescriptors) {
103
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
104
- } else {
105
- ownKeys(Object(source)).forEach(function (key) {
106
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
107
- });
108
- }
109
- }
110
-
111
- return target;
112
- }
113
-
114
118
  function _objectWithoutPropertiesLoose(source, excluded) {
115
119
  if (source == null) return {};
116
120
  var target = {};
@@ -147,18 +151,6 @@ function _objectWithoutProperties(source, excluded) {
147
151
  return target;
148
152
  }
149
153
 
150
- function _taggedTemplateLiteral(strings, raw) {
151
- if (!raw) {
152
- raw = strings.slice(0);
153
- }
154
-
155
- return Object.freeze(Object.defineProperties(strings, {
156
- raw: {
157
- value: Object.freeze(raw)
158
- }
159
- }));
160
- }
161
-
162
154
  function _slicedToArray(arr, i) {
163
155
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
164
156
  }
@@ -168,14 +160,17 @@ function _arrayWithHoles(arr) {
168
160
  }
169
161
 
170
162
  function _iterableToArrayLimit(arr, i) {
171
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
163
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
164
+
165
+ if (_i == null) return;
172
166
  var _arr = [];
173
167
  var _n = true;
174
168
  var _d = false;
175
- var _e = undefined;
169
+
170
+ var _s, _e;
176
171
 
177
172
  try {
178
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
173
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
179
174
  _arr.push(_s.value);
180
175
 
181
176
  if (i && _arr.length === i) break;
@@ -222,12 +217,14 @@ var useChromeContext = function useChromeContext() {
222
217
  return React.useContext(ChromeContext);
223
218
  };
224
219
 
225
- var _templateObject$s;
226
220
  var COMPONENT_ID$r = 'chrome.chrome';
227
221
  var StyledChrome = styled__default['default'].div.attrs({
228
222
  'data-garden-id': COMPONENT_ID$r,
229
- 'data-garden-version': '8.39.0'
230
- })(_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) {
223
+ 'data-garden-version': '8.41.0'
224
+ }).withConfig({
225
+ displayName: "StyledChrome",
226
+ componentId: "sc-1uqm6u6-0"
227
+ })(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], function (props) {
231
228
  return props.theme.fonts.system;
232
229
  }, function (props) {
233
230
  return props.theme.rtl && 'rtl';
@@ -238,12 +235,14 @@ StyledChrome.defaultProps = {
238
235
  theme: reactTheming.DEFAULT_THEME
239
236
  };
240
237
 
241
- var _templateObject$r;
242
238
  var COMPONENT_ID$q = 'chrome.header_item_icon';
243
239
  var StyledHeaderItemIcon = styled__default['default'].div.attrs({
244
240
  'data-garden-id': COMPONENT_ID$q,
245
- 'data-garden-version': '8.39.0'
246
- })(_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) {
241
+ 'data-garden-version': '8.41.0'
242
+ }).withConfig({
243
+ displayName: "StyledHeaderItemIcon",
244
+ componentId: "sc-1jhhp6z-0"
245
+ })(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], function (props) {
247
246
  return props.theme.iconSizes.md;
248
247
  }, function (props) {
249
248
  return props.theme.iconSizes.md;
@@ -256,7 +255,6 @@ StyledHeaderItemIcon.defaultProps = {
256
255
  theme: reactTheming.DEFAULT_THEME
257
256
  };
258
257
 
259
- var _templateObject$q;
260
258
  var COMPONENT_ID$p = 'chrome.base_header_item';
261
259
  var getHeaderItemSize = function getHeaderItemSize(props) {
262
260
  return "".concat(props.theme.space.base * 7.5, "px");
@@ -267,8 +265,11 @@ var sizeStyles$4 = function sizeStyles(props) {
267
265
  };
268
266
  var StyledBaseHeaderItem = styled__default['default'].button.attrs({
269
267
  'data-garden-id': COMPONENT_ID$p,
270
- 'data-garden-version': '8.39.0'
271
- })(_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) {
268
+ 'data-garden-version': '8.41.0'
269
+ }).withConfig({
270
+ displayName: "StyledBaseHeaderItem",
271
+ componentId: "sc-1qua7h6-0"
272
+ })(["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) {
272
273
  return props.maxX && '1';
273
274
  }, function (props) {
274
275
  return props.maxX ? 'start' : 'center';
@@ -289,13 +290,15 @@ StyledBaseHeaderItem.defaultProps = {
289
290
  theme: reactTheming.DEFAULT_THEME
290
291
  };
291
292
 
292
- var _templateObject$p;
293
293
  var COMPONENT_ID$o = 'chrome.header_item_text';
294
294
  var clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
295
295
  var StyledHeaderItemText = styled__default['default'].span.attrs({
296
296
  'data-garden-id': COMPONENT_ID$o,
297
- 'data-garden-version': '8.39.0'
298
- })(_templateObject$p || (_templateObject$p = _taggedTemplateLiteral(["\n margin: 0 3px;\n\n ", "\n\n ", ";\n"])), function (props) {
297
+ 'data-garden-version': '8.41.0'
298
+ }).withConfig({
299
+ displayName: "StyledHeaderItemText",
300
+ componentId: "sc-goz7la-0"
301
+ })(["margin:0 3px;", " ", ";"], function (props) {
299
302
  return props.isClipped && clippedStyling;
300
303
  }, function (props) {
301
304
  return reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props);
@@ -304,7 +307,6 @@ StyledHeaderItemText.defaultProps = {
304
307
  theme: reactTheming.DEFAULT_THEME
305
308
  };
306
309
 
307
- var _templateObject$o;
308
310
  var COMPONENT_ID$n = 'chrome.nav';
309
311
  var colorStyles$5 = function colorStyles(props) {
310
312
  var shade = props.isDark || props.isLight ? 600 : 700;
@@ -320,8 +322,11 @@ var getExpandedNavWidth = function getExpandedNavWidth() {
320
322
  };
321
323
  var StyledNav = styled__default['default'].nav.attrs({
322
324
  'data-garden-id': COMPONENT_ID$n,
323
- 'data-garden-version': '8.39.0'
324
- })(_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) {
325
+ 'data-garden-version': '8.41.0'
326
+ }).withConfig({
327
+ displayName: "StyledNav",
328
+ componentId: "sc-6j462r-0"
329
+ })(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], function (props) {
325
330
  return props.isExpanded ? getExpandedNavWidth : getNavWidth;
326
331
  }, function (props) {
327
332
  return props.theme.fontSizes.md;
@@ -334,7 +339,6 @@ StyledNav.defaultProps = {
334
339
  theme: reactTheming.DEFAULT_THEME
335
340
  };
336
341
 
337
- var _templateObject$n;
338
342
  var COMPONENT_ID$m = 'chrome.header_item';
339
343
  var retrieveProductColor$1 = function retrieveProductColor(props) {
340
344
  switch (props.product) {
@@ -358,9 +362,12 @@ var retrieveProductColor$1 = function retrieveProductColor(props) {
358
362
  };
359
363
  var StyledLogoHeaderItem = styled__default['default'](StyledBaseHeaderItem).attrs({
360
364
  'data-garden-id': COMPONENT_ID$m,
361
- 'data-garden-version': '8.39.0',
365
+ 'data-garden-version': '8.41.0',
362
366
  as: 'div'
363
- })(_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) {
367
+ }).withConfig({
368
+ displayName: "StyledLogoHeaderItem",
369
+ componentId: "sc-1n1d1yv-0"
370
+ })(["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) {
364
371
  return props.theme.rtl ? "-".concat(props.theme.space.base, "px") : 'auto';
365
372
  }, function (props) {
366
373
  return props.theme.rtl ? 'auto' : "-".concat(props.theme.space.base, "px");
@@ -385,7 +392,6 @@ StyledLogoHeaderItem.defaultProps = {
385
392
  theme: reactTheming.DEFAULT_THEME
386
393
  };
387
394
 
388
- var _templateObject$m;
389
395
  var COMPONENT_ID$l = 'chrome.base_nav_item';
390
396
  var getNavItemHeight = function getNavItemHeight(props) {
391
397
  return "".concat(props.theme.space.base * 13, "px");
@@ -397,23 +403,28 @@ var sizeStyles$3 = function sizeStyles(props) {
397
403
  };
398
404
  var StyledBaseNavItem = styled__default['default'].button.attrs({
399
405
  'data-garden-id': COMPONENT_ID$l,
400
- 'data-garden-version': '8.39.0'
401
- })(_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) {
406
+ 'data-garden-version': '8.41.0'
407
+ }).withConfig({
408
+ displayName: "StyledBaseNavItem",
409
+ componentId: "sc-zvo43f-0"
410
+ })(["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) {
402
411
  return sizeStyles$3(props);
403
412
  });
404
413
  StyledBaseNavItem.defaultProps = {
405
414
  theme: reactTheming.DEFAULT_THEME
406
415
  };
407
416
 
408
- var _templateObject$l;
409
417
  var COMPONENT_ID$k = 'chrome.header';
410
418
  var getHeaderHeight = function getHeaderHeight(props) {
411
419
  return getNavItemHeight(props);
412
420
  };
413
421
  var StyledHeader = styled__default['default'].header.attrs({
414
422
  'data-garden-id': COMPONENT_ID$k,
415
- 'data-garden-version': '8.39.0'
416
- })(_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) {
423
+ 'data-garden-version': '8.41.0'
424
+ }).withConfig({
425
+ displayName: "StyledHeader",
426
+ componentId: "sc-1cexpz-0"
427
+ })(["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) {
417
428
  return props.isStandalone && 'relative';
418
429
  }, function (props) {
419
430
  return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
@@ -436,7 +447,6 @@ StyledHeader.defaultProps = {
436
447
  theme: reactTheming.DEFAULT_THEME
437
448
  };
438
449
 
439
- var _templateObject$k;
440
450
  var COMPONENT_ID$j = 'chrome.skipnav';
441
451
  var animationStyles = function animationStyles() {
442
452
  var animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
@@ -458,8 +468,11 @@ var sizeStyles$2 = function sizeStyles(props) {
458
468
  };
459
469
  var StyledSkipNav = styled__default['default'].a.attrs({
460
470
  'data-garden-id': COMPONENT_ID$j,
461
- 'data-garden-version': '8.39.0'
462
- })(_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) {
471
+ 'data-garden-version': '8.41.0'
472
+ }).withConfig({
473
+ displayName: "StyledSkipNav",
474
+ componentId: "sc-1tsro34-0"
475
+ })(["", ";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) {
463
476
  return props.theme.rtl && 'rtl';
464
477
  }, function (props) {
465
478
  return props.zIndex;
@@ -496,7 +509,6 @@ function SvgLinkStroke(props) {
496
509
  }, props), _ref$1);
497
510
  }
498
511
 
499
- var _templateObject$j;
500
512
  var COMPONENT_ID$i = 'chrome.skipnav_icon';
501
513
  var sizeStyles$1 = function sizeStyles(theme) {
502
514
  var margin = "".concat(theme.space.base * 2, "px");
@@ -505,8 +517,11 @@ var sizeStyles$1 = function sizeStyles(theme) {
505
517
  };
506
518
  var StyledSkipNavIcon = styled__default['default'](SvgLinkStroke).attrs({
507
519
  'data-garden-id': COMPONENT_ID$i,
508
- 'data-garden-version': '8.39.0'
509
- })(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n transform: ", ";\n color: ", ";\n\n ", ";\n\n ", ";\n"])), function (props) {
520
+ 'data-garden-version': '8.41.0'
521
+ }).withConfig({
522
+ displayName: "StyledSkipNavIcon",
523
+ componentId: "sc-1ika5z4-0"
524
+ })(["transform:", ";color:", ";", ";", ";"], function (props) {
510
525
  return props.theme.rtl && 'scaleX(-1)';
511
526
  }, function (props) {
512
527
  return reactTheming.getColor('neutralHue', 600, props.theme);
@@ -519,12 +534,14 @@ StyledSkipNavIcon.defaultProps = {
519
534
  theme: reactTheming.DEFAULT_THEME
520
535
  };
521
536
 
522
- var _templateObject$i;
523
537
  var COMPONENT_ID$h = 'chrome.body';
524
538
  var StyledBody = styled__default['default'].div.attrs({
525
539
  'data-garden-id': COMPONENT_ID$h,
526
- 'data-garden-version': '8.39.0'
527
- })(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n flex: 1;\n order: 1;\n background-color: ", ";\n min-width: 0;\n\n ", ";\n"])), function (props) {
540
+ 'data-garden-version': '8.41.0'
541
+ }).withConfig({
542
+ displayName: "StyledBody",
543
+ componentId: "sc-c7h9kv-0"
544
+ })(["flex:1;order:1;background-color:", ";min-width:0;", ";"], function (props) {
528
545
  return reactTheming.getColor('neutralHue', 100, props.theme);
529
546
  }, function (props) {
530
547
  return reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props);
@@ -533,15 +550,17 @@ StyledBody.defaultProps = {
533
550
  theme: reactTheming.DEFAULT_THEME
534
551
  };
535
552
 
536
- var _templateObject$h;
537
553
  var COMPONENT_ID$g = 'chrome.footer';
538
554
  var getFooterHeight = function getFooterHeight(props) {
539
555
  return "".concat(props.theme.space.base * 20, "px");
540
556
  };
541
557
  var StyledFooter = styled__default['default'].footer.attrs({
542
558
  'data-garden-id': COMPONENT_ID$g,
543
- 'data-garden-version': '8.39.0'
544
- })(_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) {
559
+ 'data-garden-version': '8.41.0'
560
+ }).withConfig({
561
+ displayName: "StyledFooter",
562
+ componentId: "sc-v7lib2-0"
563
+ })(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], function (props) {
545
564
  return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
546
565
  }, function (props) {
547
566
  return props.theme.colors.background;
@@ -554,12 +573,14 @@ StyledFooter.defaultProps = {
554
573
  theme: reactTheming.DEFAULT_THEME
555
574
  };
556
575
 
557
- var _templateObject$g;
558
576
  var COMPONENT_ID$f = 'chrome.content';
559
577
  var StyledContent = styled__default['default'].div.attrs({
560
578
  'data-garden-id': COMPONENT_ID$f,
561
- 'data-garden-version': '8.39.0'
562
- })(_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) {
579
+ 'data-garden-version': '8.41.0'
580
+ }).withConfig({
581
+ displayName: "StyledContent",
582
+ componentId: "sc-qcuzxn-0"
583
+ })(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], function (props) {
563
584
  return props.hasFooter ? "calc(100% - ".concat(polished.math("".concat(getHeaderHeight(props), " + ").concat(getFooterHeight(props))), ")") : "calc(100% - ".concat(getHeaderHeight(props), ")");
564
585
  }, function (props) {
565
586
  return reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md);
@@ -574,12 +595,14 @@ StyledContent.defaultProps = {
574
595
  theme: reactTheming.DEFAULT_THEME
575
596
  };
576
597
 
577
- var _templateObject$f;
578
598
  var COMPONENT_ID$e = 'chrome.main';
579
599
  var StyledMain = styled__default['default'].main.attrs({
580
600
  'data-garden-id': COMPONENT_ID$e,
581
- 'data-garden-version': '8.39.0'
582
- })(_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) {
601
+ 'data-garden-version': '8.41.0'
602
+ }).withConfig({
603
+ displayName: "StyledMain",
604
+ componentId: "sc-t61cre-0"
605
+ })(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], function (props) {
583
606
  return props.theme.colors.background;
584
607
  }, function (props) {
585
608
  return reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props);
@@ -588,12 +611,14 @@ StyledMain.defaultProps = {
588
611
  theme: reactTheming.DEFAULT_THEME
589
612
  };
590
613
 
591
- var _templateObject$e;
592
614
  var COMPONENT_ID$d = 'chrome.sidebar';
593
615
  var StyledSidebar = styled__default['default'].aside.attrs({
594
616
  'data-garden-id': COMPONENT_ID$d,
595
- 'data-garden-version': '8.39.0'
596
- })(_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) {
617
+ 'data-garden-version': '8.41.0'
618
+ }).withConfig({
619
+ displayName: "StyledSidebar",
620
+ componentId: "sc-1q77fuw-0"
621
+ })(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], function (props) {
597
622
  return props.theme.rtl ? 'left' : 'right';
598
623
  }, function (props) {
599
624
  return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
@@ -604,12 +629,14 @@ StyledSidebar.defaultProps = {
604
629
  theme: reactTheming.DEFAULT_THEME
605
630
  };
606
631
 
607
- var _templateObject$d;
608
632
  var COMPONENT_ID$c = 'chrome.footer_item';
609
633
  var StyledFooterItem = styled__default['default'].div.attrs({
610
634
  'data-garden-id': COMPONENT_ID$c,
611
- 'data-garden-version': '8.39.0'
612
- })(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral(["\n margin: ", ";\n\n ", ";\n"])), function (props) {
635
+ 'data-garden-version': '8.41.0'
636
+ }).withConfig({
637
+ displayName: "StyledFooterItem",
638
+ componentId: "sc-1cktm85-0"
639
+ })(["margin:", ";", ";"], function (props) {
613
640
  return "0 ".concat(props.theme.space.base, "px");
614
641
  }, function (props) {
615
642
  return reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props);
@@ -618,7 +645,6 @@ StyledFooterItem.defaultProps = {
618
645
  theme: reactTheming.DEFAULT_THEME
619
646
  };
620
647
 
621
- var _templateObject$c;
622
648
  var COMPONENT_ID$b = 'chrome.header_item';
623
649
  var imgStyles = function imgStyles(props) {
624
650
  var size = polished.math("".concat(getHeaderItemSize(props), " - ").concat(props.theme.space.base * 2));
@@ -626,8 +652,11 @@ var imgStyles = function imgStyles(props) {
626
652
  };
627
653
  var StyledHeaderItem = styled__default['default'](StyledBaseHeaderItem).attrs({
628
654
  'data-garden-id': COMPONENT_ID$b,
629
- 'data-garden-version': '8.39.0'
630
- })(_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) {
655
+ 'data-garden-version': '8.41.0'
656
+ }).withConfig({
657
+ displayName: "StyledHeaderItem",
658
+ componentId: "sc-14sft6n-0"
659
+ })(["&: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) {
631
660
  return props.theme.shadows.md(reactTheming.getColor('chromeHue', 400, props.theme, 0.35));
632
661
  },
633
662
  StyledHeaderItemIcon,
@@ -646,20 +675,21 @@ StyledHeaderItem.defaultProps = {
646
675
  theme: reactTheming.DEFAULT_THEME
647
676
  };
648
677
 
649
- var _templateObject$b;
650
678
  var COMPONENT_ID$a = 'chrome.header_item_wrapper';
651
679
  var StyledHeaderItemWrapper = styled__default['default'](StyledBaseHeaderItem).attrs({
652
680
  'data-garden-id': COMPONENT_ID$a,
653
- 'data-garden-version': '8.39.0',
681
+ 'data-garden-version': '8.41.0',
654
682
  as: 'div'
655
- })(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n ", ";\n"])), function (props) {
683
+ }).withConfig({
684
+ displayName: "StyledHeaderItemWrapper",
685
+ componentId: "sc-1uieu55-0"
686
+ })(["", ";"], function (props) {
656
687
  return reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props);
657
688
  });
658
689
  StyledHeaderItemWrapper.defaultProps = {
659
690
  theme: reactTheming.DEFAULT_THEME
660
691
  };
661
692
 
662
- var _templateObject$a;
663
693
  var COMPONENT_ID$9 = 'chrome.logo_nav_item';
664
694
  var retrieveProductColor = function retrieveProductColor(product) {
665
695
  switch (product) {
@@ -688,32 +718,39 @@ var colorStyles$3 = function colorStyles(props) {
688
718
  };
689
719
  var StyledLogoNavItem = styled__default['default'](StyledBaseNavItem).attrs({
690
720
  'data-garden-id': COMPONENT_ID$9,
691
- 'data-garden-version': '8.39.0',
721
+ 'data-garden-version': '8.41.0',
692
722
  as: 'div'
693
- })(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral(["\n order: 0;\n opacity: 1;\n cursor: default;\n\n ", ";\n"])), function (props) {
723
+ }).withConfig({
724
+ displayName: "StyledLogoNavItem",
725
+ componentId: "sc-saaydx-0"
726
+ })(["order:0;opacity:1;cursor:default;", ";"], function (props) {
694
727
  return colorStyles$3(props);
695
728
  });
696
729
  StyledLogoNavItem.defaultProps = {
697
730
  theme: reactTheming.DEFAULT_THEME
698
731
  };
699
732
 
700
- var _templateObject$9;
701
733
  var COMPONENT_ID$8 = 'chrome.brandmark_nav_item';
702
734
  var StyledBrandmarkNavItem = styled__default['default'](StyledBaseNavItem).attrs({
703
735
  'data-garden-id': COMPONENT_ID$8,
704
- 'data-garden-version': '8.39.0',
736
+ 'data-garden-version': '8.41.0',
705
737
  as: 'div'
706
- })(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral(["\n order: 1;\n opacity: 0.3;\n margin-top: auto;\n"])));
738
+ }).withConfig({
739
+ displayName: "StyledBrandmarkNavItem",
740
+ componentId: "sc-8kynd4-0"
741
+ })(["order:1;opacity:0.3;margin-top:auto;"]);
707
742
  StyledBrandmarkNavItem.defaultProps = {
708
743
  theme: reactTheming.DEFAULT_THEME
709
744
  };
710
745
 
711
- var _templateObject$8;
712
746
  var COMPONENT_ID$7 = 'chrome.nav_item_icon';
713
747
  var StyledNavItemIcon = styled__default['default'].div.attrs({
714
748
  'data-garden-id': COMPONENT_ID$7,
715
- 'data-garden-version': '8.39.0'
716
- })(_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) {
749
+ 'data-garden-version': '8.41.0'
750
+ }).withConfig({
751
+ displayName: "StyledNavItemIcon",
752
+ componentId: "sc-7w9rpt-0"
753
+ })(["align-self:flex-start;order:0;border-radius:", ";width:", ";height:", ";", ";"], function (props) {
717
754
  return props.theme.borderRadii.md;
718
755
  }, function (props) {
719
756
  return props.theme.iconSizes.lg;
@@ -726,7 +763,6 @@ StyledNavItemIcon.defaultProps = {
726
763
  theme: reactTheming.DEFAULT_THEME
727
764
  };
728
765
 
729
- var _templateObject$7;
730
766
  var COMPONENT_ID$6 = 'chrome.nav_item';
731
767
  var colorStyles$2 = function colorStyles(props) {
732
768
  var BLACK = props.theme.palette.black;
@@ -750,9 +786,12 @@ var colorStyles$2 = function colorStyles(props) {
750
786
  };
751
787
  var StyledNavItem = styled__default['default'](StyledBaseNavItem).attrs({
752
788
  'data-garden-id': COMPONENT_ID$6,
753
- 'data-garden-version': '8.39.0',
789
+ 'data-garden-version': '8.41.0',
754
790
  as: 'button'
755
- })(_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) {
791
+ }).withConfig({
792
+ displayName: "StyledNavItem",
793
+ componentId: "sc-gs8mjz-0"
794
+ })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", " ", ";"], function (props) {
756
795
  return props.isExpanded && 'start';
757
796
  }, function (props) {
758
797
  return props.isCurrent ? 'default' : 'pointer';
@@ -769,12 +808,14 @@ StyledNavItem.defaultProps = {
769
808
  theme: reactTheming.DEFAULT_THEME
770
809
  };
771
810
 
772
- var _templateObject$6;
773
811
  var COMPONENT_ID$5 = 'chrome.nav_item_text';
774
812
  var StyledNavItemText = styled__default['default'].span.attrs({
775
813
  'data-garden-id': COMPONENT_ID$5,
776
- 'data-garden-version': '8.39.0'
777
- })(_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) {
814
+ 'data-garden-version': '8.41.0'
815
+ }).withConfig({
816
+ displayName: "StyledNavItemText",
817
+ componentId: "sc-13m84xl-0"
818
+ })(["position:absolute;order:1;clip:rect(1px,1px,1px,1px);margin:", ";width:1px;height:1px;overflow:hidden;line-height:", ";white-space:", ";", " ", ";"], function (props) {
778
819
  return props.isExpanded && "0 ".concat(polished.math("(".concat(getNavWidth(props), " - ").concat(props.theme.iconSizes.lg, ") / 4")));
779
820
  }, function (props) {
780
821
  return reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
@@ -789,7 +830,6 @@ StyledNavItemText.defaultProps = {
789
830
  theme: reactTheming.DEFAULT_THEME
790
831
  };
791
832
 
792
- var _templateObject$5;
793
833
  var COMPONENT_ID$4 = 'chrome.subnav_item';
794
834
  var colorStyles$1 = function colorStyles(props) {
795
835
  var BLACK = props.theme.palette.black;
@@ -814,8 +854,11 @@ var getSubNavItemHeight = function getSubNavItemHeight(props) {
814
854
  };
815
855
  var StyledSubNavItem = styled__default['default'].button.attrs({
816
856
  'data-garden-id': COMPONENT_ID$4,
817
- 'data-garden-version': '8.39.0'
818
- })(_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) {
857
+ 'data-garden-version': '8.41.0'
858
+ }).withConfig({
859
+ displayName: "StyledSubNavItem",
860
+ componentId: "sc-1yg9dpx-0"
861
+ })(["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) {
819
862
  return props.theme.space.base * 2;
820
863
  }, function (props) {
821
864
  return props.theme.borderRadii.md;
@@ -832,7 +875,6 @@ StyledSubNavItem.defaultProps = {
832
875
  theme: reactTheming.DEFAULT_THEME
833
876
  };
834
877
 
835
- var _templateObject$4;
836
878
  var COMPONENT_ID$3 = 'chrome.subnav';
837
879
  var colorStyles = function colorStyles(props) {
838
880
  var shade;
@@ -847,8 +889,11 @@ var colorStyles = function colorStyles(props) {
847
889
  };
848
890
  var StyledSubNav = styled__default['default'].nav.attrs({
849
891
  'data-garden-id': COMPONENT_ID$3,
850
- 'data-garden-version': '8.39.0'
851
- })(_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) {
892
+ 'data-garden-version': '8.41.0'
893
+ }).withConfig({
894
+ displayName: "StyledSubNav",
895
+ componentId: "sc-19hjou6-0"
896
+ })(["flex-direction:column;order:0;padding:", ";min-width:220px;font-size:", ";", ";& > ", ":first-child{margin-top:0;}", ";"], function (props) {
852
897
  return "".concat(props.theme.space.base * 6, "px ").concat(props.theme.space.base * 5, "px");
853
898
  }, function (props) {
854
899
  return props.theme.fontSizes.md;
@@ -861,7 +906,6 @@ StyledSubNav.defaultProps = {
861
906
  theme: reactTheming.DEFAULT_THEME
862
907
  };
863
908
 
864
- var _templateObject$3;
865
909
  var COMPONENT_ID$2 = 'chrome.subnav_item_text';
866
910
  var sizeStyles = function sizeStyles(props) {
867
911
  var baseLineHeight = props.theme.space.base * 5;
@@ -871,8 +915,11 @@ var sizeStyles = function sizeStyles(props) {
871
915
  };
872
916
  var StyledSubNavItemText = styled__default['default'].span.attrs({
873
917
  'data-garden-id': COMPONENT_ID$2,
874
- 'data-garden-version': '8.39.0'
875
- })(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: ", ";\n\n ", "\n\n ", ";\n"])), function (props) {
918
+ 'data-garden-version': '8.41.0'
919
+ }).withConfig({
920
+ displayName: "StyledSubNavItemText",
921
+ componentId: "sc-1hy0pn7-0"
922
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:", ";", " ", ";"], function (props) {
876
923
  return props.isWrapped ? 'normal' : 'nowrap';
877
924
  }, function (props) {
878
925
  return sizeStyles(props);
@@ -883,13 +930,15 @@ StyledSubNavItemText.defaultProps = {
883
930
  theme: reactTheming.DEFAULT_THEME
884
931
  };
885
932
 
886
- var _templateObject$2;
887
933
  var COMPONENT_ID$1 = 'chrome.collapsible_sub_nav_item';
888
934
  var StyledSubNavItemHeader = styled__default['default'](StyledSubNavItem).attrs({
889
935
  'data-garden-id': COMPONENT_ID$1,
890
- 'data-garden-version': '8.39.0',
936
+ 'data-garden-version': '8.41.0',
891
937
  'data-garden-header': 'true'
892
- })(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n position: relative;\n /* stylelint-disable-next-line property-no-unknown */\n padding-", ": ", "px;\n\n ", ";\n"])), function (props) {
938
+ }).withConfig({
939
+ displayName: "StyledSubNavItemHeader",
940
+ componentId: "sc-1vniter-0"
941
+ })(["position:relative;padding-", ":", "px;", ";"], function (props) {
893
942
  return props.theme.rtl ? 'left' : 'right';
894
943
  }, function (props) {
895
944
  return props.theme.space.base * 7;
@@ -918,7 +967,6 @@ function SvgChevronDownStroke(props) {
918
967
  }, props), _ref);
919
968
  }
920
969
 
921
- var _templateObject$1, _templateObject2;
922
970
  var _excluded$8 = ["theme", "isExpanded"];
923
971
  var COMPONENT_ID = 'chrome.collapsible_sub_nav_item_icon';
924
972
  var FilteredChevronDownStrokeIcon = React__default['default'].forwardRef(function (_ref, ref) {
@@ -930,7 +978,10 @@ var FilteredChevronDownStrokeIcon = React__default['default'].forwardRef(functio
930
978
  }, validProps));
931
979
  });
932
980
  FilteredChevronDownStrokeIcon.displayName = 'FilteredChevronDownStrokeIcon';
933
- var StyledSubNavItemIcon = styled__default['default'](FilteredChevronDownStrokeIcon)(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n width: ", ";\n height: ", ";\n"])), function (props) {
981
+ var StyledSubNavItemIcon = styled__default['default'](FilteredChevronDownStrokeIcon).withConfig({
982
+ displayName: "StyledSubNavItemIcon",
983
+ componentId: "sc-1d02hho-0"
984
+ })(["width:", ";height:", ";"], function (props) {
934
985
  return props.theme.iconSizes.sm;
935
986
  }, function (props) {
936
987
  return props.theme.iconSizes.sm;
@@ -940,8 +991,11 @@ StyledSubNavItemIcon.defaultProps = {
940
991
  };
941
992
  var StyledSubNavItemIconWrapper = styled__default['default'].div.attrs({
942
993
  'data-garden-id': COMPONENT_ID,
943
- 'data-garden-version': '8.39.0'
944
- })(_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) {
994
+ 'data-garden-version': '8.41.0'
995
+ }).withConfig({
996
+ displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
997
+ componentId: "sc-1d02hho-1"
998
+ })(["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) {
945
999
  return props.theme.rtl ? 'auto' : 0;
946
1000
  }, function (props) {
947
1001
  return props.theme.rtl && 0;
@@ -959,13 +1013,15 @@ StyledSubNavItemIconWrapper.defaultProps = {
959
1013
  theme: reactTheming.DEFAULT_THEME
960
1014
  };
961
1015
 
962
- var _templateObject;
963
1016
  var PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
964
1017
  var hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
965
1018
  var StyledSubNavPanel = styled__default['default'].div.attrs({
966
1019
  'data-garden-id': PANEL_COMPONENT_ID,
967
- 'data-garden-version': '8.39.0'
968
- })(_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) {
1020
+ 'data-garden-version': '8.41.0'
1021
+ }).withConfig({
1022
+ displayName: "StyledSubNavPanel",
1023
+ componentId: "sc-1jv3rpv-0"
1024
+ })(["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) {
969
1025
  return props.isHidden && hiddenStyling;
970
1026
  }, StyledSubNavItem, function (props) {
971
1027
  return props.theme.rtl ? 'right' : 'left';