@zendeskgarden/react-chrome 8.57.0 → 8.58.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
@@ -45,225 +45,65 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
45
45
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
46
46
  var mergeRefs__default = /*#__PURE__*/_interopDefaultLegacy(mergeRefs);
47
47
 
48
- function ownKeys(object, enumerableOnly) {
49
- var keys = Object.keys(object);
50
-
51
- if (Object.getOwnPropertySymbols) {
52
- var symbols = Object.getOwnPropertySymbols(object);
53
- enumerableOnly && (symbols = symbols.filter(function (sym) {
54
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
55
- })), keys.push.apply(keys, symbols);
56
- }
57
-
58
- return keys;
59
- }
60
-
61
- function _objectSpread2(target) {
62
- for (var i = 1; i < arguments.length; i++) {
63
- var source = null != arguments[i] ? arguments[i] : {};
64
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
65
- _defineProperty(target, key, source[key]);
66
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
67
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
68
- });
69
- }
70
-
71
- return target;
72
- }
73
-
74
- function _defineProperty(obj, key, value) {
75
- if (key in obj) {
76
- Object.defineProperty(obj, key, {
77
- value: value,
78
- enumerable: true,
79
- configurable: true,
80
- writable: true
81
- });
82
- } else {
83
- obj[key] = value;
84
- }
85
-
86
- return obj;
87
- }
88
-
89
48
  function _extends$3() {
90
49
  _extends$3 = Object.assign ? Object.assign.bind() : function (target) {
91
50
  for (var i = 1; i < arguments.length; i++) {
92
51
  var source = arguments[i];
93
-
94
52
  for (var key in source) {
95
53
  if (Object.prototype.hasOwnProperty.call(source, key)) {
96
54
  target[key] = source[key];
97
55
  }
98
56
  }
99
57
  }
100
-
101
58
  return target;
102
59
  };
103
60
  return _extends$3.apply(this, arguments);
104
61
  }
105
62
 
106
- function _objectWithoutPropertiesLoose(source, excluded) {
107
- if (source == null) return {};
108
- var target = {};
109
- var sourceKeys = Object.keys(source);
110
- var key, i;
111
-
112
- for (i = 0; i < sourceKeys.length; i++) {
113
- key = sourceKeys[i];
114
- if (excluded.indexOf(key) >= 0) continue;
115
- target[key] = source[key];
116
- }
117
-
118
- return target;
119
- }
120
-
121
- function _objectWithoutProperties(source, excluded) {
122
- if (source == null) return {};
123
-
124
- var target = _objectWithoutPropertiesLoose(source, excluded);
125
-
126
- var key, i;
127
-
128
- if (Object.getOwnPropertySymbols) {
129
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
130
-
131
- for (i = 0; i < sourceSymbolKeys.length; i++) {
132
- key = sourceSymbolKeys[i];
133
- if (excluded.indexOf(key) >= 0) continue;
134
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
135
- target[key] = source[key];
136
- }
137
- }
138
-
139
- return target;
140
- }
141
-
142
- function _slicedToArray(arr, i) {
143
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
144
- }
145
-
146
- function _arrayWithHoles(arr) {
147
- if (Array.isArray(arr)) return arr;
148
- }
149
-
150
- function _iterableToArrayLimit(arr, i) {
151
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
152
-
153
- if (_i == null) return;
154
- var _arr = [];
155
- var _n = true;
156
- var _d = false;
157
-
158
- var _s, _e;
159
-
160
- try {
161
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
162
- _arr.push(_s.value);
163
-
164
- if (i && _arr.length === i) break;
165
- }
166
- } catch (err) {
167
- _d = true;
168
- _e = err;
169
- } finally {
170
- try {
171
- if (!_n && _i["return"] != null) _i["return"]();
172
- } finally {
173
- if (_d) throw _e;
174
- }
175
- }
176
-
177
- return _arr;
178
- }
179
-
180
- function _unsupportedIterableToArray(o, minLen) {
181
- if (!o) return;
182
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
183
- var n = Object.prototype.toString.call(o).slice(8, -1);
184
- if (n === "Object" && o.constructor) n = o.constructor.name;
185
- if (n === "Map" || n === "Set") return Array.from(o);
186
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
187
- }
188
-
189
- function _arrayLikeToArray(arr, len) {
190
- if (len == null || len > arr.length) len = arr.length;
191
-
192
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
193
-
194
- return arr2;
195
- }
196
-
197
- function _nonIterableRest() {
198
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
199
- }
200
-
201
- var ChromeContext = React__default["default"].createContext({
63
+ const ChromeContext = React__default["default"].createContext({
202
64
  hue: 'chromeHue'
203
65
  });
204
- var useChromeContext = function useChromeContext() {
66
+ const useChromeContext = () => {
205
67
  return React.useContext(ChromeContext);
206
68
  };
207
69
 
208
- var COMPONENT_ID$A = 'chrome.chrome';
209
- var StyledChrome = styled__default["default"].div.attrs({
70
+ const COMPONENT_ID$A = 'chrome.chrome';
71
+ const StyledChrome = styled__default["default"].div.attrs({
210
72
  'data-garden-id': COMPONENT_ID$A,
211
- 'data-garden-version': '8.57.0'
73
+ 'data-garden-version': '8.58.0'
212
74
  }).withConfig({
213
75
  displayName: "StyledChrome",
214
76
  componentId: "sc-1uqm6u6-0"
215
- })(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], function (props) {
216
- return props.theme.fonts.system;
217
- }, function (props) {
218
- return props.theme.rtl && 'rtl';
219
- }, function (props) {
220
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$A, props);
221
- });
77
+ })(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$A, props));
222
78
  StyledChrome.defaultProps = {
223
79
  theme: reactTheming.DEFAULT_THEME
224
80
  };
225
81
 
226
- var COMPONENT_ID$z = 'chrome.header_item_icon';
227
- var StyledHeaderItemIcon = styled__default["default"].div.attrs({
82
+ const COMPONENT_ID$z = 'chrome.header_item_icon';
83
+ const StyledHeaderItemIcon = styled__default["default"].div.attrs({
228
84
  'data-garden-id': COMPONENT_ID$z,
229
- 'data-garden-version': '8.57.0'
85
+ 'data-garden-version': '8.58.0'
230
86
  }).withConfig({
231
87
  displayName: "StyledHeaderItemIcon",
232
88
  componentId: "sc-1jhhp6z-0"
233
- })(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], function (props) {
234
- return props.theme.iconSizes.md;
235
- }, function (props) {
236
- return props.theme.iconSizes.md;
237
- }, function (props) {
238
- return props.theme.iconSizes.md;
239
- }, function (props) {
240
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$z, props);
241
- });
89
+ })(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$z, props));
242
90
  StyledHeaderItemIcon.defaultProps = {
243
91
  theme: reactTheming.DEFAULT_THEME
244
92
  };
245
93
 
246
- var COMPONENT_ID$y = 'chrome.base_header_item';
247
- var getHeaderItemSize = function getHeaderItemSize(props) {
248
- return "".concat(props.theme.space.base * 7.5, "px");
94
+ const COMPONENT_ID$y = 'chrome.base_header_item';
95
+ const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
96
+ const sizeStyles$4 = props => {
97
+ const size = props.theme.space.base * 7.5;
98
+ return styled.css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : `${size}px`, reactTheming.getLineHeight(size, props.theme.fontSizes.md));
249
99
  };
250
- var sizeStyles$4 = function sizeStyles(props) {
251
- var size = props.theme.space.base * 7.5;
252
- return styled.css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : "".concat(size, "px"), reactTheming.getLineHeight(size, props.theme.fontSizes.md));
253
- };
254
- var StyledBaseHeaderItem = styled__default["default"].button.attrs({
100
+ const StyledBaseHeaderItem = styled__default["default"].button.attrs({
255
101
  'data-garden-id': COMPONENT_ID$y,
256
- 'data-garden-version': '8.57.0'
102
+ 'data-garden-version': '8.58.0'
257
103
  }).withConfig({
258
104
  displayName: "StyledBaseHeaderItem",
259
105
  componentId: "sc-1qua7h6-0"
260
- })(["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) {
261
- return props.maxX && '1';
262
- }, function (props) {
263
- return props.maxX ? 'start' : 'center';
264
- }, function (props) {
265
- return "0 ".concat(props.theme.space.base * 3, "px");
266
- }, function (props) {
106
+ })(["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;", " ", ";"], props => props.maxX && '1', props => props.maxX ? 'start' : 'center', props => `0 ${props.theme.space.base * 3}px`, props => {
267
107
  if (props.isRound) {
268
108
  return '100%';
269
109
  }
@@ -271,64 +111,50 @@ var StyledBaseHeaderItem = styled__default["default"].button.attrs({
271
111
  return '0';
272
112
  }
273
113
  return props.theme.borderRadii.md;
274
- }, sizeStyles$4, function (props) {
275
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$y, props);
276
- });
114
+ }, sizeStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$y, props));
277
115
  StyledBaseHeaderItem.defaultProps = {
278
116
  theme: reactTheming.DEFAULT_THEME
279
117
  };
280
118
 
281
- var COMPONENT_ID$x = 'chrome.header_item_text';
282
- var clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
283
- var StyledHeaderItemText = styled__default["default"].span.attrs({
119
+ const COMPONENT_ID$x = 'chrome.header_item_text';
120
+ const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
121
+ const StyledHeaderItemText = styled__default["default"].span.attrs({
284
122
  'data-garden-id': COMPONENT_ID$x,
285
- 'data-garden-version': '8.57.0'
123
+ 'data-garden-version': '8.58.0'
286
124
  }).withConfig({
287
125
  displayName: "StyledHeaderItemText",
288
126
  componentId: "sc-goz7la-0"
289
- })(["margin:0 3px;", " ", ";"], function (props) {
290
- return props.isClipped && clippedStyling;
291
- }, function (props) {
292
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props);
293
- });
127
+ })(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props));
294
128
  StyledHeaderItemText.defaultProps = {
295
129
  theme: reactTheming.DEFAULT_THEME
296
130
  };
297
131
 
298
- var COMPONENT_ID$w = 'chrome.nav';
299
- var colorStyles$6 = function colorStyles(props) {
300
- var shade = props.isDark || props.isLight ? 600 : 700;
301
- var backgroundColor = reactTheming.getColor(props.hue, shade, props.theme);
302
- var foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
132
+ const COMPONENT_ID$w = 'chrome.nav';
133
+ const colorStyles$6 = props => {
134
+ const shade = props.isDark || props.isLight ? 600 : 700;
135
+ const backgroundColor = reactTheming.getColor(props.hue, shade, props.theme);
136
+ const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
303
137
  return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
304
138
  };
305
- var getNavWidth = function getNavWidth(props) {
306
- return "".concat(props.theme.space.base * 15, "px");
139
+ const getNavWidth = props => {
140
+ return `${props.theme.space.base * 15}px`;
307
141
  };
308
- var getExpandedNavWidth = function getExpandedNavWidth() {
309
- return "200px";
142
+ const getExpandedNavWidth = () => {
143
+ return `200px`;
310
144
  };
311
- var StyledNav = styled__default["default"].nav.attrs({
145
+ const StyledNav = styled__default["default"].nav.attrs({
312
146
  'data-garden-id': COMPONENT_ID$w,
313
- 'data-garden-version': '8.57.0'
147
+ 'data-garden-version': '8.58.0'
314
148
  }).withConfig({
315
149
  displayName: "StyledNav",
316
150
  componentId: "sc-6j462r-0"
317
- })(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], function (props) {
318
- return props.isExpanded ? getExpandedNavWidth : getNavWidth;
319
- }, function (props) {
320
- return props.theme.fontSizes.md;
321
- }, function (props) {
322
- return colorStyles$6(props);
323
- }, function (props) {
324
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props);
325
- });
151
+ })(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
326
152
  StyledNav.defaultProps = {
327
153
  theme: reactTheming.DEFAULT_THEME
328
154
  };
329
155
 
330
- var COMPONENT_ID$v = 'chrome.header_item';
331
- var retrieveProductColor$1 = function retrieveProductColor(props) {
156
+ const COMPONENT_ID$v = 'chrome.header_item';
157
+ const retrieveProductColor$1 = props => {
332
158
  switch (props.product) {
333
159
  case 'chat':
334
160
  return reactTheming.PALETTE.product.chat;
@@ -348,133 +174,83 @@ var retrieveProductColor$1 = function retrieveProductColor(props) {
348
174
  return 'inherit';
349
175
  }
350
176
  };
351
- var StyledLogoHeaderItem = styled__default["default"](StyledBaseHeaderItem).attrs({
177
+ const StyledLogoHeaderItem = styled__default["default"](StyledBaseHeaderItem).attrs({
352
178
  'data-garden-id': COMPONENT_ID$v,
353
- 'data-garden-version': '8.57.0',
179
+ 'data-garden-version': '8.58.0',
354
180
  as: 'div'
355
181
  }).withConfig({
356
182
  displayName: "StyledLogoHeaderItem",
357
183
  componentId: "sc-1n1d1yv-0"
358
- })(["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) {
359
- return props.theme.rtl ? "-".concat(props.theme.space.base, "px") : 'auto';
360
- }, function (props) {
361
- return props.theme.rtl ? 'auto' : "-".concat(props.theme.space.base, "px");
362
- }, function (props) {
363
- return props.theme.rtl ? 'left' : 'right';
364
- }, function (props) {
365
- return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
366
- }, function (props) {
367
- return getNavWidth(props);
368
- }, function (props) {
369
- return reactTheming.getColor('chromeHue', 700, props.theme);
370
- }, function (props) {
371
- return retrieveProductColor$1(props);
372
- }, StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, function (props) {
373
- return props.theme.iconSizes.lg;
374
- }, function (props) {
375
- return props.theme.iconSizes.lg;
376
- }, function (props) {
377
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props);
378
- });
184
+ })(["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:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => reactTheming.getColor('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
379
185
  StyledLogoHeaderItem.defaultProps = {
380
186
  theme: reactTheming.DEFAULT_THEME
381
187
  };
382
188
 
383
- var COMPONENT_ID$u = 'chrome.base_nav_item';
384
- var getNavItemHeight = function getNavItemHeight(props) {
385
- return "".concat(props.theme.space.base * 13, "px");
189
+ const COMPONENT_ID$u = 'chrome.base_nav_item';
190
+ const getNavItemHeight = props => {
191
+ return `${props.theme.space.base * 13}px`;
386
192
  };
387
- var sizeStyles$3 = function sizeStyles(props) {
388
- var verticalPadding = polished.math("(".concat(getNavItemHeight(props), " - ").concat(props.theme.iconSizes.lg, ") / 2"));
389
- var horizontalPadding = polished.math("(".concat(getNavWidth(props), " - ").concat(props.theme.iconSizes.lg, ") / 4"));
193
+ const sizeStyles$3 = props => {
194
+ const verticalPadding = polished.math(`(${getNavItemHeight(props)} - ${props.theme.iconSizes.lg}) / 2`);
195
+ const horizontalPadding = polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`);
390
196
  return styled.css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
391
197
  };
392
- var StyledBaseNavItem = styled__default["default"].button.attrs({
198
+ const StyledBaseNavItem = styled__default["default"].button.attrs({
393
199
  'data-garden-id': COMPONENT_ID$u,
394
- 'data-garden-version': '8.57.0'
200
+ 'data-garden-version': '8.58.0'
395
201
  }).withConfig({
396
202
  displayName: "StyledBaseNavItem",
397
203
  componentId: "sc-zvo43f-0"
398
- })(["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) {
399
- return sizeStyles$3(props);
400
- });
204
+ })(["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;", ""], props => sizeStyles$3(props));
401
205
  StyledBaseNavItem.defaultProps = {
402
206
  theme: reactTheming.DEFAULT_THEME
403
207
  };
404
208
 
405
- var COMPONENT_ID$t = 'chrome.header';
406
- var getHeaderHeight = function getHeaderHeight(props) {
209
+ const COMPONENT_ID$t = 'chrome.header';
210
+ const getHeaderHeight = props => {
407
211
  return getNavItemHeight(props);
408
212
  };
409
- var StyledHeader = styled__default["default"].header.attrs({
213
+ const StyledHeader = styled__default["default"].header.attrs({
410
214
  'data-garden-id': COMPONENT_ID$t,
411
- 'data-garden-version': '8.57.0'
215
+ 'data-garden-version': '8.58.0'
412
216
  }).withConfig({
413
217
  displayName: "StyledHeader",
414
218
  componentId: "sc-1cexpz-0"
415
- })(["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) {
416
- return props.isStandalone && 'relative';
417
- }, function (props) {
418
- return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
419
- }, function (props) {
420
- return props.isStandalone && props.theme.shadows.lg('0', '10px', reactTheming.getColor('chromeHue', 600, props.theme, 0.15));
421
- }, function (props) {
422
- return props.theme.colors.background;
423
- }, function (props) {
424
- return props.theme.space.base;
425
- }, getHeaderHeight, function (props) {
426
- return reactTheming.getColor('neutralHue', 600, props.theme);
427
- }, function (props) {
428
- return props.theme.fontSizes.md;
429
- }, function (props) {
430
- return props.isStandalone && "\n ".concat(StyledLogoHeaderItem, " {\n display: inline-flex;\n }\n ");
431
- }, function (props) {
432
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props);
433
- });
219
+ })(["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:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', reactTheming.getColor('chromeHue', 600, props.theme, 0.15)), props => props.theme.colors.background, props => props.theme.space.base, getHeaderHeight, props => reactTheming.getColor('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isStandalone && `
220
+ ${StyledLogoHeaderItem} {
221
+ display: inline-flex;
222
+ }
223
+ `, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
434
224
  StyledHeader.defaultProps = {
435
225
  theme: reactTheming.DEFAULT_THEME
436
226
  };
437
227
 
438
- var COMPONENT_ID$s = 'chrome.skipnav';
439
- var animationStyles = function animationStyles() {
440
- var animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
228
+ const COMPONENT_ID$s = 'chrome.skipnav';
229
+ const animationStyles = () => {
230
+ const animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
441
231
  return styled.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);
442
232
  };
443
- var colorStyles$5 = function colorStyles(theme) {
444
- var color = reactTheming.getColor('primaryHue', 600, theme);
445
- var borderColor = reactTheming.getColor('neutralHue', 300, theme);
446
- var boxShadow = theme.shadows.lg("".concat(theme.space.base * 5, "px"), "".concat(theme.space.base * 7, "px"), reactTheming.getColor('chromeHue', 600, theme, 0.15));
233
+ const colorStyles$5 = theme => {
234
+ const color = reactTheming.getColor('primaryHue', 600, theme);
235
+ const borderColor = reactTheming.getColor('neutralHue', 300, theme);
236
+ const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColor('chromeHue', 600, theme, 0.15));
447
237
  return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}"], borderColor, boxShadow, theme.colors.background, color, color);
448
238
  };
449
- var sizeStyles$2 = function sizeStyles(props) {
450
- var top = polished.math("".concat(getHeaderHeight(props), " / 2"));
451
- var padding = "".concat(props.theme.space.base * 5, "px");
452
- var paddingStart = "".concat(props.theme.space.base * 4, "px");
453
- var fontSize = props.theme.fontSizes.md;
454
- var lineHeight = reactTheming.getLineHeight(padding, fontSize);
239
+ const sizeStyles$2 = props => {
240
+ const top = polished.math(`${getHeaderHeight(props)} / 2`);
241
+ const padding = `${props.theme.space.base * 5}px`;
242
+ const paddingStart = `${props.theme.space.base * 4}px`;
243
+ const fontSize = props.theme.fontSizes.md;
244
+ const lineHeight = reactTheming.getLineHeight(padding, fontSize);
455
245
  return styled.css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
456
246
  };
457
- var StyledSkipNav = styled__default["default"].a.attrs({
247
+ const StyledSkipNav = styled__default["default"].a.attrs({
458
248
  'data-garden-id': COMPONENT_ID$s,
459
- 'data-garden-version': '8.57.0'
249
+ 'data-garden-version': '8.58.0'
460
250
  }).withConfig({
461
251
  displayName: "StyledSkipNav",
462
252
  componentId: "sc-1tsro34-0"
463
- })(["", ";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) {
464
- return props.theme.rtl && 'rtl';
465
- }, function (props) {
466
- return props.zIndex;
467
- }, function (props) {
468
- return props.theme.borders.sm;
469
- }, function (props) {
470
- return props.theme.borderRadii.md;
471
- }, function (props) {
472
- return sizeStyles$2(props);
473
- }, function (props) {
474
- return colorStyles$5(props.theme);
475
- }, function (props) {
476
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props);
477
- });
253
+ })(["", ";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(), props => props.theme.rtl && 'rtl', props => props.zIndex, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$2(props), props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
478
254
  StyledSkipNav.defaultProps = {
479
255
  theme: reactTheming.DEFAULT_THEME
480
256
  };
@@ -490,196 +266,148 @@ var SvgLinkStroke = function SvgLinkStroke(props) {
490
266
  height: 16,
491
267
  focusable: "false",
492
268
  viewBox: "0 0 16 16",
493
- "aria-hidden": "true"
269
+ "aria-hidden": "true",
270
+ role: "img"
494
271
  }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
495
272
  fill: "currentColor",
496
273
  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"
497
274
  })));
498
275
  };
499
276
 
500
- var COMPONENT_ID$r = 'chrome.skipnav_icon';
501
- var sizeStyles$1 = function sizeStyles(theme) {
502
- var margin = "".concat(theme.space.base * 2, "px");
503
- var size = theme.iconSizes.md;
277
+ const COMPONENT_ID$r = 'chrome.skipnav_icon';
278
+ const sizeStyles$1 = theme => {
279
+ const margin = `${theme.space.base * 2}px`;
280
+ const size = theme.iconSizes.md;
504
281
  return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
505
282
  };
506
- var StyledSkipNavIcon = styled__default["default"](SvgLinkStroke).attrs({
283
+ const StyledSkipNavIcon = styled__default["default"](SvgLinkStroke).attrs({
507
284
  'data-garden-id': COMPONENT_ID$r,
508
- 'data-garden-version': '8.57.0'
285
+ 'data-garden-version': '8.58.0'
509
286
  }).withConfig({
510
287
  displayName: "StyledSkipNavIcon",
511
288
  componentId: "sc-1ika5z4-0"
512
- })(["transform:", ";color:", ";", ";", ";"], function (props) {
513
- return props.theme.rtl && 'scaleX(-1)';
514
- }, function (props) {
515
- return reactTheming.getColor('neutralHue', 600, props.theme);
516
- }, function (props) {
517
- return sizeStyles$1(props.theme);
518
- }, function (props) {
519
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props);
520
- });
289
+ })(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColor('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
521
290
  StyledSkipNavIcon.defaultProps = {
522
291
  theme: reactTheming.DEFAULT_THEME
523
292
  };
524
293
 
525
- var COMPONENT_ID$q = 'chrome.body';
526
- var StyledBody = styled__default["default"].div.attrs({
294
+ const COMPONENT_ID$q = 'chrome.body';
295
+ const StyledBody = styled__default["default"].div.attrs({
527
296
  'data-garden-id': COMPONENT_ID$q,
528
- 'data-garden-version': '8.57.0'
297
+ 'data-garden-version': '8.58.0'
529
298
  }).withConfig({
530
299
  displayName: "StyledBody",
531
300
  componentId: "sc-c7h9kv-0"
532
- })(["flex:1;order:1;background-color:", ";min-width:0;", ";"], function (props) {
533
- return reactTheming.getColor('neutralHue', 100, props.theme);
534
- }, function (props) {
535
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props);
536
- });
301
+ })(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColor('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
537
302
  StyledBody.defaultProps = {
538
303
  theme: reactTheming.DEFAULT_THEME
539
304
  };
540
305
 
541
- var COMPONENT_ID$p = 'chrome.footer';
542
- var getFooterHeight = function getFooterHeight(props) {
543
- return "".concat(props.theme.space.base * 20, "px");
306
+ const COMPONENT_ID$p = 'chrome.footer';
307
+ const getFooterHeight = props => {
308
+ return `${props.theme.space.base * 20}px`;
544
309
  };
545
- var StyledFooter = styled__default["default"].footer.attrs({
310
+ const StyledFooter = styled__default["default"].footer.attrs({
546
311
  'data-garden-id': COMPONENT_ID$p,
547
- 'data-garden-version': '8.57.0'
312
+ 'data-garden-version': '8.58.0'
548
313
  }).withConfig({
549
314
  displayName: "StyledFooter",
550
315
  componentId: "sc-v7lib2-0"
551
- })(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], function (props) {
552
- return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
553
- }, function (props) {
554
- return props.theme.colors.background;
555
- }, function (props) {
556
- return props.theme.space.base * 9;
557
- }, getFooterHeight, function (props) {
558
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props);
559
- });
316
+ })(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}`, props => props.theme.colors.background, props => props.theme.space.base * 9, getFooterHeight, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
560
317
  StyledFooter.defaultProps = {
561
318
  theme: reactTheming.DEFAULT_THEME
562
319
  };
563
320
 
564
- var COMPONENT_ID$o = 'chrome.content';
565
- var StyledContent = styled__default["default"].div.attrs({
321
+ const COMPONENT_ID$o = 'chrome.content';
322
+ const StyledContent = styled__default["default"].div.attrs({
566
323
  'data-garden-id': COMPONENT_ID$o,
567
- 'data-garden-version': '8.57.0'
324
+ 'data-garden-version': '8.58.0'
568
325
  }).withConfig({
569
326
  displayName: "StyledContent",
570
327
  componentId: "sc-qcuzxn-0"
571
- })(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], function (props) {
572
- return props.hasFooter ? "calc(100% - ".concat(polished.math("".concat(getHeaderHeight(props), " + ").concat(getFooterHeight(props))), ")") : "calc(100% - ".concat(getHeaderHeight(props), ")");
573
- }, function (props) {
574
- return reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md);
575
- }, function (props) {
576
- return props.theme.colors.foreground;
577
- }, function (props) {
578
- return props.theme.fontSizes.md;
579
- }, function (props) {
580
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props);
581
- });
328
+ })(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.theme.colors.foreground, props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
582
329
  StyledContent.defaultProps = {
583
330
  theme: reactTheming.DEFAULT_THEME
584
331
  };
585
332
 
586
- var COMPONENT_ID$n = 'chrome.main';
587
- var StyledMain = styled__default["default"].main.attrs({
333
+ const COMPONENT_ID$n = 'chrome.main';
334
+ const StyledMain = styled__default["default"].main.attrs({
588
335
  'data-garden-id': COMPONENT_ID$n,
589
- 'data-garden-version': '8.57.0'
336
+ 'data-garden-version': '8.58.0'
590
337
  }).withConfig({
591
338
  displayName: "StyledMain",
592
339
  componentId: "sc-t61cre-0"
593
- })(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], function (props) {
594
- return props.theme.colors.background;
595
- }, function (props) {
596
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props);
597
- });
340
+ })(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => props.theme.colors.background, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
598
341
  StyledMain.defaultProps = {
599
342
  theme: reactTheming.DEFAULT_THEME
600
343
  };
601
344
 
602
- var COMPONENT_ID$m = 'chrome.sidebar';
603
- var StyledSidebar = styled__default["default"].aside.attrs({
345
+ const COMPONENT_ID$m = 'chrome.sidebar';
346
+ const StyledSidebar = styled__default["default"].aside.attrs({
604
347
  'data-garden-id': COMPONENT_ID$m,
605
- 'data-garden-version': '8.57.0'
348
+ 'data-garden-version': '8.58.0'
606
349
  }).withConfig({
607
350
  displayName: "StyledSidebar",
608
351
  componentId: "sc-1q77fuw-0"
609
- })(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], function (props) {
610
- return props.theme.rtl ? 'left' : 'right';
611
- }, function (props) {
612
- return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme));
613
- }, function (props) {
614
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props);
615
- });
352
+ })(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
616
353
  StyledSidebar.defaultProps = {
617
354
  theme: reactTheming.DEFAULT_THEME
618
355
  };
619
356
 
620
- var COMPONENT_ID$l = 'chrome.footer_item';
621
- var StyledFooterItem = styled__default["default"].div.attrs({
357
+ const COMPONENT_ID$l = 'chrome.footer_item';
358
+ const StyledFooterItem = styled__default["default"].div.attrs({
622
359
  'data-garden-id': COMPONENT_ID$l,
623
- 'data-garden-version': '8.57.0'
360
+ 'data-garden-version': '8.58.0'
624
361
  }).withConfig({
625
362
  displayName: "StyledFooterItem",
626
363
  componentId: "sc-1cktm85-0"
627
- })(["margin:", ";", ";"], function (props) {
628
- return "0 ".concat(props.theme.space.base, "px");
629
- }, function (props) {
630
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props);
631
- });
364
+ })(["margin:", ";", ";"], props => `0 ${props.theme.space.base}px`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
632
365
  StyledFooterItem.defaultProps = {
633
366
  theme: reactTheming.DEFAULT_THEME
634
367
  };
635
368
 
636
- var COMPONENT_ID$k = 'chrome.header_item';
637
- var imgStyles = function imgStyles(props) {
638
- var size = polished.math("".concat(getHeaderItemSize(props), " - ").concat(props.theme.space.base * 2));
639
- return styled.css(["img{margin:0;border-radius:", ";width:", ";height:", ";}"], polished.math("".concat(props.theme.borderRadii.md, " - 1")), size, size);
369
+ const COMPONENT_ID$k = 'chrome.header_item';
370
+ const imgStyles = props => {
371
+ const size = polished.math(`${getHeaderItemSize(props)} - ${props.theme.space.base * 2}`);
372
+ return styled.css(["img{margin:0;border-radius:", ";width:", ";height:", ";}"], polished.math(`${props.theme.borderRadii.md} - 1`), size, size);
640
373
  };
641
- var StyledHeaderItem = styled__default["default"](StyledBaseHeaderItem).attrs({
374
+ const StyledHeaderItem = styled__default["default"](StyledBaseHeaderItem).attrs({
642
375
  'data-garden-id': COMPONENT_ID$k,
643
- 'data-garden-version': '8.57.0'
376
+ 'data-garden-version': '8.58.0'
644
377
  }).withConfig({
645
378
  displayName: "StyledHeaderItem",
646
379
  componentId: "sc-14sft6n-0"
647
- })(["&: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) {
648
- return props.theme.shadows.md(reactTheming.getColor('chromeHue', 400, props.theme, 0.35));
649
- },
650
- StyledHeaderItemIcon,
651
- StyledHeaderItemText,
652
- StyledHeaderItemIcon,
653
- StyledHeaderItemText, function (props) {
654
- return reactTheming.getColor('chromeHue', 700, props.theme);
655
- }, function (props) {
656
- return props.maxY && "\n &[data-garden-focus-visible] {\n box-shadow: inset ".concat(props.theme.shadows.lg(props.theme.shadowWidths.md, '0', reactTheming.getColor('chromeHue', 400, props.theme, 0.35)), ",\n ").concat(props.theme.shadowWidths.md, " 0 0 0 ").concat(reactTheming.getColor('chromeHue', 400, props.theme, 0.35), ",\n inset ").concat(props.theme.shadows.lg("-".concat(props.theme.shadowWidths.md), '0', reactTheming.getColor('chromeHue', 400, props.theme, 0.35)), ",\n -").concat(props.theme.shadowWidths.md, " 0 0 0 ").concat(reactTheming.getColor('chromeHue', 400, props.theme, 0.35), ";\n }\n ");
657
- }, imgStyles, function (props) {
658
- return props.isRound && "\n ".concat(StyledHeaderItemIcon, " {\n border-radius: 100px;\n }\n ");
659
- }, function (props) {
660
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props);
661
- });
380
+ })(["&: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:", ";}", " ", " ", " ", ";"], props => props.theme.shadows.md(reactTheming.getColor('chromeHue', 400, props.theme, 0.35)), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColor('chromeHue', 700, props.theme), props => props.maxY && `
381
+ &[data-garden-focus-visible] {
382
+ box-shadow: inset ${props.theme.shadows.lg(props.theme.shadowWidths.md, '0', reactTheming.getColor('chromeHue', 400, props.theme, 0.35))},
383
+ ${props.theme.shadowWidths.md} 0 0 0 ${reactTheming.getColor('chromeHue', 400, props.theme, 0.35)},
384
+ inset ${props.theme.shadows.lg(`-${props.theme.shadowWidths.md}`, '0', reactTheming.getColor('chromeHue', 400, props.theme, 0.35))},
385
+ -${props.theme.shadowWidths.md} 0 0 0 ${reactTheming.getColor('chromeHue', 400, props.theme, 0.35)};
386
+ }
387
+ `, imgStyles, props => props.isRound && `
388
+ ${StyledHeaderItemIcon} {
389
+ border-radius: 100px;
390
+ }
391
+ `, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
662
392
  StyledHeaderItem.defaultProps = {
663
393
  theme: reactTheming.DEFAULT_THEME
664
394
  };
665
395
 
666
- var COMPONENT_ID$j = 'chrome.header_item_wrapper';
667
- var StyledHeaderItemWrapper = styled__default["default"](StyledBaseHeaderItem).attrs({
396
+ const COMPONENT_ID$j = 'chrome.header_item_wrapper';
397
+ const StyledHeaderItemWrapper = styled__default["default"](StyledBaseHeaderItem).attrs({
668
398
  'data-garden-id': COMPONENT_ID$j,
669
- 'data-garden-version': '8.57.0',
399
+ 'data-garden-version': '8.58.0',
670
400
  as: 'div'
671
401
  }).withConfig({
672
402
  displayName: "StyledHeaderItemWrapper",
673
403
  componentId: "sc-1uieu55-0"
674
- })(["", ";"], function (props) {
675
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props);
676
- });
404
+ })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
677
405
  StyledHeaderItemWrapper.defaultProps = {
678
406
  theme: reactTheming.DEFAULT_THEME
679
407
  };
680
408
 
681
- var COMPONENT_ID$i = 'chrome.logo_nav_item';
682
- var retrieveProductColor = function retrieveProductColor(product) {
409
+ const COMPONENT_ID$i = 'chrome.logo_nav_item';
410
+ const retrieveProductColor = product => {
683
411
  switch (product) {
684
412
  case 'chat':
685
413
  return reactTheming.PALETTE.product.chat;
@@ -699,29 +427,27 @@ var retrieveProductColor = function retrieveProductColor(product) {
699
427
  return 'inherit';
700
428
  }
701
429
  };
702
- var colorStyles$4 = function colorStyles(props) {
703
- var fillColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
704
- var color = props.isLight || props.isDark ? fillColor : retrieveProductColor(props.product);
430
+ const colorStyles$4 = props => {
431
+ const fillColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
432
+ const color = props.isLight || props.isDark ? fillColor : retrieveProductColor(props.product);
705
433
  return styled.css(["color:", ";fill:", ";"], color, fillColor);
706
434
  };
707
- var StyledLogoNavItem = styled__default["default"](StyledBaseNavItem).attrs({
435
+ const StyledLogoNavItem = styled__default["default"](StyledBaseNavItem).attrs({
708
436
  'data-garden-id': COMPONENT_ID$i,
709
- 'data-garden-version': '8.57.0',
437
+ 'data-garden-version': '8.58.0',
710
438
  as: 'div'
711
439
  }).withConfig({
712
440
  displayName: "StyledLogoNavItem",
713
441
  componentId: "sc-saaydx-0"
714
- })(["order:0;opacity:1;cursor:default;", ";"], function (props) {
715
- return colorStyles$4(props);
716
- });
442
+ })(["order:0;opacity:1;cursor:default;", ";"], props => colorStyles$4(props));
717
443
  StyledLogoNavItem.defaultProps = {
718
444
  theme: reactTheming.DEFAULT_THEME
719
445
  };
720
446
 
721
- var COMPONENT_ID$h = 'chrome.brandmark_nav_item';
722
- var StyledBrandmarkNavItem = styled__default["default"](StyledBaseNavItem).attrs({
447
+ const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
448
+ const StyledBrandmarkNavItem = styled__default["default"](StyledBaseNavItem).attrs({
723
449
  'data-garden-id': COMPONENT_ID$h,
724
- 'data-garden-version': '8.57.0',
450
+ 'data-garden-version': '8.58.0',
725
451
  as: 'div'
726
452
  }).withConfig({
727
453
  displayName: "StyledBrandmarkNavItem",
@@ -731,32 +457,24 @@ StyledBrandmarkNavItem.defaultProps = {
731
457
  theme: reactTheming.DEFAULT_THEME
732
458
  };
733
459
 
734
- var COMPONENT_ID$g = 'chrome.nav_item_icon';
735
- var StyledNavItemIcon = styled__default["default"].div.attrs({
460
+ const COMPONENT_ID$g = 'chrome.nav_item_icon';
461
+ const StyledNavItemIcon = styled__default["default"].div.attrs({
736
462
  'data-garden-id': COMPONENT_ID$g,
737
- 'data-garden-version': '8.57.0'
463
+ 'data-garden-version': '8.58.0'
738
464
  }).withConfig({
739
465
  displayName: "StyledNavItemIcon",
740
466
  componentId: "sc-7w9rpt-0"
741
- })(["align-self:flex-start;order:0;border-radius:", ";width:", ";height:", ";", ";"], function (props) {
742
- return props.theme.borderRadii.md;
743
- }, function (props) {
744
- return props.theme.iconSizes.lg;
745
- }, function (props) {
746
- return props.theme.iconSizes.lg;
747
- }, function (props) {
748
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props);
749
- });
467
+ })(["align-self:flex-start;order:0;border-radius:", ";width:", ";height:", ";", ";"], props => props.theme.borderRadii.md, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
750
468
  StyledNavItemIcon.defaultProps = {
751
469
  theme: reactTheming.DEFAULT_THEME
752
470
  };
753
471
 
754
- var COMPONENT_ID$f = 'chrome.nav_item';
755
- var colorStyles$3 = function colorStyles(props) {
756
- var BLACK = props.theme.palette.black;
757
- var WHITE = props.theme.palette.white;
758
- var currentColor;
759
- var hoverColor;
472
+ const COMPONENT_ID$f = 'chrome.nav_item';
473
+ const colorStyles$3 = props => {
474
+ const BLACK = props.theme.palette.black;
475
+ const WHITE = props.theme.palette.white;
476
+ let currentColor;
477
+ let hoverColor;
760
478
  if (props.isCurrent) {
761
479
  if (props.isLight) {
762
480
  currentColor = polished.rgba(BLACK, 0.3);
@@ -768,62 +486,53 @@ var colorStyles$3 = function colorStyles(props) {
768
486
  } else {
769
487
  hoverColor = polished.rgba(props.isLight ? WHITE : BLACK, 0.1);
770
488
  }
771
- var activeColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.1);
772
- var focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
489
+ const activeColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.1);
490
+ const focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
773
491
  return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:inset ", ";}&:active{background-color:", ";}"], props.isCurrent ? 1 : 0.6, currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
774
492
  };
775
- var StyledNavItem = styled__default["default"](StyledBaseNavItem).attrs({
493
+ const StyledNavItem = styled__default["default"](StyledBaseNavItem).attrs({
776
494
  'data-garden-id': COMPONENT_ID$f,
777
- 'data-garden-version': '8.57.0',
495
+ 'data-garden-version': '8.58.0',
778
496
  as: 'button'
779
497
  }).withConfig({
780
498
  displayName: "StyledNavItem",
781
499
  componentId: "sc-gs8mjz-0"
782
- })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", " ", ";"], function (props) {
783
- return props.isExpanded && 'start';
784
- }, function (props) {
785
- return props.isCurrent ? 'default' : 'pointer';
786
- }, function (props) {
787
- return props.isExpanded && 'inherit';
788
- }, function (props) {
789
- return colorStyles$3(props);
790
- }, function (props) {
791
- return props.isExpanded && "\n ".concat(StyledNavItemIcon, " {\n margin: 0 ").concat(polished.math("(".concat(getNavWidth(props), " - ").concat(props.theme.iconSizes.lg, ") / 4")), ";\n }\n ");
792
- }, function (props) {
793
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props);
794
- });
500
+ })(["justify-content:", ";order:1;margin:0;cursor:", ";text-align:", ";&:hover,&:focus{text-decoration:none;color:inherit;}&:focus{outline:none;}", ";", " ", ";"], props => props.isExpanded && 'start', props => props.isCurrent ? 'default' : 'pointer', props => props.isExpanded && 'inherit', props => colorStyles$3(props), props => props.isExpanded && `
501
+ ${StyledNavItemIcon} {
502
+ margin: 0 ${polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)};
503
+ }
504
+ `, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
795
505
  StyledNavItem.defaultProps = {
796
506
  theme: reactTheming.DEFAULT_THEME
797
507
  };
798
508
 
799
- var COMPONENT_ID$e = 'chrome.nav_item_text';
800
- var StyledNavItemText = styled__default["default"].span.attrs({
509
+ const COMPONENT_ID$e = 'chrome.nav_item_text';
510
+ const StyledNavItemText = styled__default["default"].span.attrs({
801
511
  'data-garden-id': COMPONENT_ID$e,
802
- 'data-garden-version': '8.57.0'
512
+ 'data-garden-version': '8.58.0'
803
513
  }).withConfig({
804
514
  displayName: "StyledNavItemText",
805
515
  componentId: "sc-13m84xl-0"
806
- })(["position:absolute;order:1;clip:rect(1px,1px,1px,1px);margin:", ";width:1px;height:1px;overflow:hidden;line-height:", ";white-space:", ";", " ", ";"], function (props) {
807
- return props.isExpanded && "0 ".concat(polished.math("(".concat(getNavWidth(props), " - ").concat(props.theme.iconSizes.lg, ") / 4")));
808
- }, function (props) {
809
- return reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
810
- }, function (props) {
811
- return props.isWrapped ? 'normal' : 'nowrap';
812
- }, function (props) {
813
- 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 ");
814
- }, function (props) {
815
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props);
816
- });
516
+ })(["position:absolute;order:1;clip:rect(1px,1px,1px,1px);margin:", ";width:1px;height:1px;overflow:hidden;line-height:", ";white-space:", ";", " ", ";"], props => props.isExpanded && `0 ${polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)}`, props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.isWrapped ? 'normal' : 'nowrap', props => props.isExpanded && `
517
+ ${StyledNavItem} > && {
518
+ position: static;
519
+ flex: 1;
520
+ clip: auto;
521
+ width: auto;
522
+ height: auto;
523
+ text-overflow: ellipsis;
524
+ }
525
+ `, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
817
526
  StyledNavItemText.defaultProps = {
818
527
  theme: reactTheming.DEFAULT_THEME
819
528
  };
820
529
 
821
- var COMPONENT_ID$d = 'chrome.subnav_item';
822
- var colorStyles$2 = function colorStyles(props) {
823
- var BLACK = props.theme.palette.black;
824
- var WHITE = props.theme.palette.white;
825
- var currentColor;
826
- var hoverColor;
530
+ const COMPONENT_ID$d = 'chrome.subnav_item';
531
+ const colorStyles$2 = props => {
532
+ const BLACK = props.theme.palette.black;
533
+ const WHITE = props.theme.palette.white;
534
+ let currentColor;
535
+ let hoverColor;
827
536
  if (props.isCurrent) {
828
537
  if (props.isLight) {
829
538
  currentColor = polished.rgba(BLACK, 0.1);
@@ -833,106 +542,74 @@ var colorStyles$2 = function colorStyles(props) {
833
542
  } else {
834
543
  hoverColor = polished.rgba(props.isLight ? WHITE : BLACK, 0.1);
835
544
  }
836
- var activeColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.03);
837
- var focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
545
+ const activeColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.03);
546
+ const focusColor = polished.rgba(props.isLight ? BLACK : WHITE, 0.2);
838
547
  return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}&[data-garden-focus-visible]{opacity:1;box-shadow:", ";}&:not([data-garden-header='true']):active{background-color:", ";}"], props.isCurrent ? '1' : '0.6', currentColor, hoverColor, props.theme.shadows.md(focusColor), activeColor);
839
548
  };
840
- var getSubNavItemHeight = function getSubNavItemHeight(props) {
841
- return "".concat(props.theme.space.base * 7.5, "px");
549
+ const getSubNavItemHeight = props => {
550
+ return `${props.theme.space.base * 7.5}px`;
842
551
  };
843
- var StyledSubNavItem = styled__default["default"].button.attrs({
552
+ const StyledSubNavItem = styled__default["default"].button.attrs({
844
553
  'data-garden-id': COMPONENT_ID$d,
845
- 'data-garden-version': '8.57.0'
554
+ 'data-garden-version': '8.58.0'
846
555
  }).withConfig({
847
556
  displayName: "StyledSubNavItem",
848
557
  componentId: "sc-1yg9dpx-0"
849
- })(["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) {
850
- return props.theme.space.base * 2;
851
- }, function (props) {
852
- return props.theme.borderRadii.md;
853
- }, function (props) {
854
- return props.isCurrent ? 'default' : 'pointer';
855
- }, function (props) {
856
- return "0 ".concat(props.theme.space.base * 2, "px");
857
- }, getSubNavItemHeight, function (props) {
858
- return colorStyles$2(props);
859
- }, function (props) {
860
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props);
861
- });
558
+ })(["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;}", ";", ";"], props => props.theme.space.base * 2, props => props.theme.borderRadii.md, props => props.isCurrent ? 'default' : 'pointer', props => `0 ${props.theme.space.base * 2}px`, getSubNavItemHeight, props => colorStyles$2(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
862
559
  StyledSubNavItem.defaultProps = {
863
560
  theme: reactTheming.DEFAULT_THEME
864
561
  };
865
562
 
866
- var COMPONENT_ID$c = 'chrome.subnav';
867
- var colorStyles$1 = function colorStyles(props) {
868
- var shade;
563
+ const COMPONENT_ID$c = 'chrome.subnav';
564
+ const colorStyles$1 = props => {
565
+ let shade;
869
566
  if (props.isLight) {
870
567
  shade = 500;
871
568
  } else {
872
569
  shade = props.isDark ? 700 : 800;
873
570
  }
874
- var backgroundColor = reactTheming.getColor(props.hue, shade, props.theme);
875
- var foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
571
+ const backgroundColor = reactTheming.getColor(props.hue, shade, props.theme);
572
+ const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
876
573
  return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
877
574
  };
878
- var StyledSubNav = styled__default["default"].nav.attrs({
575
+ const StyledSubNav = styled__default["default"].nav.attrs({
879
576
  'data-garden-id': COMPONENT_ID$c,
880
- 'data-garden-version': '8.57.0'
577
+ 'data-garden-version': '8.58.0'
881
578
  }).withConfig({
882
579
  displayName: "StyledSubNav",
883
580
  componentId: "sc-19hjou6-0"
884
- })(["flex-direction:column;order:0;padding:", ";min-width:220px;font-size:", ";", ";& > ", ":first-child{margin-top:0;}", ";"], function (props) {
885
- return "".concat(props.theme.space.base * 6, "px ").concat(props.theme.space.base * 5, "px");
886
- }, function (props) {
887
- return props.theme.fontSizes.md;
888
- }, function (props) {
889
- return colorStyles$1(props);
890
- }, StyledSubNavItem, function (props) {
891
- return reactTheming.retrieveComponentStyles('chrome.subnav', props);
892
- });
581
+ })(["flex-direction:column;order:0;padding:", ";min-width:220px;font-size:", ";", ";& > ", ":first-child{margin-top:0;}", ";"], props => `${props.theme.space.base * 6}px ${props.theme.space.base * 5}px`, props => props.theme.fontSizes.md, props => colorStyles$1(props), StyledSubNavItem, props => reactTheming.retrieveComponentStyles('chrome.subnav', props));
893
582
  StyledSubNav.defaultProps = {
894
583
  theme: reactTheming.DEFAULT_THEME
895
584
  };
896
585
 
897
- var COMPONENT_ID$b = 'chrome.subnav_item_text';
898
- var sizeStyles = function sizeStyles(props) {
899
- var baseLineHeight = props.theme.space.base * 5;
900
- var verticalMargin = polished.math("(".concat(getSubNavItemHeight(props), " - ").concat(baseLineHeight, ") / 2"));
901
- var lineHeight = reactTheming.getLineHeight(baseLineHeight, props.theme.fontSizes.md);
586
+ const COMPONENT_ID$b = 'chrome.subnav_item_text';
587
+ const sizeStyles = props => {
588
+ const baseLineHeight = props.theme.space.base * 5;
589
+ const verticalMargin = polished.math(`(${getSubNavItemHeight(props)} - ${baseLineHeight}) / 2`);
590
+ const lineHeight = reactTheming.getLineHeight(baseLineHeight, props.theme.fontSizes.md);
902
591
  return styled.css(["margin:", " 0;line-height:", ";"], verticalMargin, lineHeight);
903
592
  };
904
- var StyledSubNavItemText = styled__default["default"].span.attrs({
593
+ const StyledSubNavItemText = styled__default["default"].span.attrs({
905
594
  'data-garden-id': COMPONENT_ID$b,
906
- 'data-garden-version': '8.57.0'
595
+ 'data-garden-version': '8.58.0'
907
596
  }).withConfig({
908
597
  displayName: "StyledSubNavItemText",
909
598
  componentId: "sc-1hy0pn7-0"
910
- })(["overflow:hidden;text-overflow:ellipsis;white-space:", ";", " ", ";"], function (props) {
911
- return props.isWrapped ? 'normal' : 'nowrap';
912
- }, function (props) {
913
- return sizeStyles(props);
914
- }, function (props) {
915
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props);
916
- });
599
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:", ";", " ", ";"], props => props.isWrapped ? 'normal' : 'nowrap', props => sizeStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
917
600
  StyledSubNavItemText.defaultProps = {
918
601
  theme: reactTheming.DEFAULT_THEME
919
602
  };
920
603
 
921
- var COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
922
- var StyledSubNavItemHeader = styled__default["default"](StyledSubNavItem).attrs({
604
+ const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
605
+ const StyledSubNavItemHeader = styled__default["default"](StyledSubNavItem).attrs({
923
606
  'data-garden-id': COMPONENT_ID$a,
924
- 'data-garden-version': '8.57.0',
607
+ 'data-garden-version': '8.58.0',
925
608
  'data-garden-header': 'true'
926
609
  }).withConfig({
927
610
  displayName: "StyledSubNavItemHeader",
928
611
  componentId: "sc-1vniter-0"
929
- })(["position:relative;padding-", ":", "px;", ";"], function (props) {
930
- return props.theme.rtl ? 'left' : 'right';
931
- }, function (props) {
932
- return props.theme.space.base * 7;
933
- }, function (props) {
934
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props);
935
- });
612
+ })(["position:relative;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.space.base * 7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
936
613
  StyledSubNavItemHeader.defaultProps = {
937
614
  theme: reactTheming.DEFAULT_THEME
938
615
  };
@@ -948,88 +625,72 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
948
625
  height: 12,
949
626
  focusable: "false",
950
627
  viewBox: "0 0 12 12",
951
- "aria-hidden": "true"
628
+ "aria-hidden": "true",
629
+ role: "img"
952
630
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
953
631
  fill: "currentColor",
954
632
  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"
955
633
  })));
956
634
  };
957
635
 
958
- var _excluded$b = ["theme", "isExpanded"];
959
- var COMPONENT_ID$9 = 'chrome.collapsible_sub_nav_item_icon';
960
- var FilteredChevronDownStrokeIcon = React__default["default"].forwardRef(function (_ref, ref) {
961
- _ref.theme;
962
- _ref.isExpanded;
963
- var validProps = _objectWithoutProperties(_ref, _excluded$b);
636
+ const COMPONENT_ID$9 = 'chrome.collapsible_sub_nav_item_icon';
637
+ const FilteredChevronDownStrokeIcon = React__default["default"].forwardRef((_ref, ref) => {
638
+ let {
639
+ theme,
640
+ isExpanded,
641
+ ...validProps
642
+ } = _ref;
964
643
  return React__default["default"].createElement(SvgChevronDownStroke, _extends$3({
965
644
  ref: ref
966
645
  }, validProps));
967
646
  });
968
647
  FilteredChevronDownStrokeIcon.displayName = 'FilteredChevronDownStrokeIcon';
969
- var StyledSubNavItemIcon = styled__default["default"](FilteredChevronDownStrokeIcon).withConfig({
648
+ const StyledSubNavItemIcon = styled__default["default"](FilteredChevronDownStrokeIcon).withConfig({
970
649
  displayName: "StyledSubNavItemIcon",
971
650
  componentId: "sc-1d02hho-0"
972
- })(["width:", ";height:", ";"], function (props) {
973
- return props.theme.iconSizes.sm;
974
- }, function (props) {
975
- return props.theme.iconSizes.sm;
976
- });
651
+ })(["width:", ";height:", ";"], props => props.theme.iconSizes.sm, props => props.theme.iconSizes.sm);
977
652
  StyledSubNavItemIcon.defaultProps = {
978
653
  theme: reactTheming.DEFAULT_THEME
979
654
  };
980
- var StyledSubNavItemIconWrapper = styled__default["default"].div.attrs({
655
+ const StyledSubNavItemIconWrapper = styled__default["default"].div.attrs({
981
656
  'data-garden-id': COMPONENT_ID$9,
982
- 'data-garden-version': '8.57.0'
657
+ 'data-garden-version': '8.58.0'
983
658
  }).withConfig({
984
659
  displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
985
660
  componentId: "sc-1d02hho-1"
986
- })(["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) {
987
- return props.theme.rtl ? 'auto' : 0;
988
- }, function (props) {
989
- return props.theme.rtl && 0;
990
- }, function (props) {
991
- return props.theme.space.base * 7;
992
- }, getSubNavItemHeight, StyledSubNavItemIcon, function (props) {
661
+ })(["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;}", ";"], props => props.theme.rtl ? 'auto' : 0, props => props.theme.rtl && 0, props => props.theme.space.base * 7, getSubNavItemHeight, StyledSubNavItemIcon, props => {
993
662
  if (props.isExpanded) {
994
663
  return styled.css(["rotate(", "180deg)"], props.theme.rtl && '-');
995
664
  }
996
665
  return undefined;
997
- }, function (props) {
998
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props);
999
- });
666
+ }, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
1000
667
  StyledSubNavItemIconWrapper.defaultProps = {
1001
668
  theme: reactTheming.DEFAULT_THEME
1002
669
  };
1003
670
 
1004
- var PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
1005
- var hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
1006
- var StyledSubNavPanel = styled__default["default"].div.attrs({
671
+ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
672
+ const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
673
+ const StyledSubNavPanel = styled__default["default"].div.attrs({
1007
674
  'data-garden-id': PANEL_COMPONENT_ID,
1008
- 'data-garden-version': '8.57.0'
675
+ 'data-garden-version': '8.58.0'
1009
676
  }).withConfig({
1010
677
  displayName: "StyledSubNavPanel",
1011
678
  componentId: "sc-1jv3rpv-0"
1012
- })(["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) {
1013
- return props.isHidden && hiddenStyling;
1014
- }, StyledSubNavItem, function (props) {
1015
- return props.theme.rtl ? 'right' : 'left';
1016
- }, function (props) {
1017
- return "".concat(props.theme.space.base * 5, "px");
1018
- }, function (props) {
1019
- return reactTheming.retrieveComponentStyles(PANEL_COMPONENT_ID, props);
1020
- });
679
+ })(["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-", ":", ";}", ";"], props => props.isHidden && hiddenStyling, StyledSubNavItem, props => props.theme.rtl ? 'right' : 'left', props => `${props.theme.space.base * 5}px`, props => reactTheming.retrieveComponentStyles(PANEL_COMPONENT_ID, props));
1021
680
  StyledSubNavPanel.defaultProps = {
1022
681
  theme: reactTheming.DEFAULT_THEME
1023
682
  };
1024
683
 
1025
- var COMPONENT_ID$8 = 'chrome.sheet';
1026
- var borderStyle = function borderStyle(_ref) {
1027
- var theme = _ref.theme,
1028
- placement = _ref.placement,
1029
- isOpen = _ref.isOpen;
1030
- var borderColor = isOpen ? reactTheming.getColor('neutralHue', 300, theme) : 'transparent';
1031
- var borderSides = ['-left', '-right'];
1032
- var borderSide = '';
684
+ const COMPONENT_ID$8 = 'chrome.sheet';
685
+ const borderStyle = _ref => {
686
+ let {
687
+ theme,
688
+ placement,
689
+ isOpen
690
+ } = _ref;
691
+ const borderColor = isOpen ? reactTheming.getColor('neutralHue', 300, theme) : 'transparent';
692
+ const borderSides = ['-left', '-right'];
693
+ let borderSide = '';
1033
694
  if (theme.rtl) {
1034
695
  borderSides.reverse();
1035
696
  }
@@ -1038,41 +699,29 @@ var borderStyle = function borderStyle(_ref) {
1038
699
  } else if (placement === 'start') {
1039
700
  borderSide = borderSides[1];
1040
701
  }
1041
- return "border".concat(borderSide, ": ").concat(theme.borders.sm, " ").concat(borderColor, ";");
702
+ return `border${borderSide}: ${theme.borders.sm} ${borderColor};`;
1042
703
  };
1043
- var StyledSheet = styled__default["default"].aside.attrs({
704
+ const StyledSheet = styled__default["default"].aside.attrs({
1044
705
  'data-garden-id': COMPONENT_ID$8,
1045
- 'data-garden-version': '8.57.0'
706
+ 'data-garden-version': '8.58.0'
1046
707
  }).withConfig({
1047
708
  displayName: "StyledSheet",
1048
709
  componentId: "sc-dx8ijk-0"
1049
- })(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], function (props) {
1050
- return props.isAnimated && 'width 250ms ease-in-out';
1051
- }, function (props) {
1052
- return props.theme.colors.background;
1053
- }, function (props) {
1054
- return props.isOpen ? props.size : '0px';
1055
- }, function (props) {
1056
- return props.theme.fontSizes.md;
1057
- }, function (props) {
1058
- return borderStyle(props);
1059
- }, function (props) {
1060
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props);
1061
- });
710
+ })(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => props.theme.colors.background, props => props.isOpen ? props.size : '0px', props => props.theme.fontSizes.md, props => borderStyle(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
1062
711
  StyledSheet.defaultProps = {
1063
712
  theme: reactTheming.DEFAULT_THEME
1064
713
  };
1065
714
 
1066
- var COMPONENT_ID$7 = 'chrome.sheet_wrapper';
1067
- var StyledSheetWrapper = styled__default["default"].div.attrs({
715
+ const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
716
+ const StyledSheetWrapper = styled__default["default"].div.attrs({
1068
717
  'data-garden-id': COMPONENT_ID$7,
1069
- 'data-garden-version': '8.57.0'
718
+ 'data-garden-version': '8.58.0'
1070
719
  }).withConfig({
1071
720
  displayName: "StyledSheetWrapper",
1072
721
  componentId: "sc-f6x9zb-0"
1073
- })(["display:flex;position:relative;flex-direction:column;transform:", ";transition:", ";min-width:", ";", ";"], function (props) {
1074
- var translateValues = [-100, 100];
1075
- var translation = 'translateX(0%)';
722
+ })(["display:flex;position:relative;flex-direction:column;transform:", ";transition:", ";min-width:", ";", ";"], props => {
723
+ const translateValues = [-100, 100];
724
+ let translation = 'translateX(0%)';
1076
725
  if (props.isOpen) {
1077
726
  return translation;
1078
727
  }
@@ -1080,200 +729,140 @@ var StyledSheetWrapper = styled__default["default"].div.attrs({
1080
729
  translateValues.reverse();
1081
730
  }
1082
731
  if (props.placement === 'end') {
1083
- translation = "translateX(".concat(translateValues[1], "%)");
732
+ translation = `translateX(${translateValues[1]}%)`;
1084
733
  } else if (props.placement === 'start') {
1085
- translation = "translateX(".concat(translateValues[0], "%)");
734
+ translation = `translateX(${translateValues[0]}%)`;
1086
735
  }
1087
736
  return translation;
1088
- }, function (props) {
1089
- return props.isAnimated && 'transform 250ms ease-in-out';
1090
- }, function (props) {
1091
- return props.size;
1092
- }, function (props) {
1093
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props);
1094
- });
737
+ }, props => props.isAnimated && 'transform 250ms ease-in-out', props => props.size, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
1095
738
  StyledSheetWrapper.defaultProps = {
1096
739
  theme: reactTheming.DEFAULT_THEME
1097
740
  };
1098
741
 
1099
- var COMPONENT_ID$6 = 'chrome.sheet_title';
1100
- var StyledSheetTitle = styled__default["default"].div.attrs({
742
+ const COMPONENT_ID$6 = 'chrome.sheet_title';
743
+ const StyledSheetTitle = styled__default["default"].div.attrs({
1101
744
  'data-garden-id': COMPONENT_ID$6,
1102
- 'data-garden-version': '8.57.0'
745
+ 'data-garden-version': '8.58.0'
1103
746
  }).withConfig({
1104
747
  displayName: "StyledSheetTitle",
1105
748
  componentId: "sc-1gogk75-0"
1106
- })(["line-height:", ";color:", ";font-weight:", ";", ";"], function (props) {
1107
- return reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
1108
- }, function (props) {
1109
- return props.theme.colors.foreground;
1110
- }, function (props) {
1111
- return props.theme.fontWeights.semibold;
1112
- }, function (props) {
1113
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props);
1114
- });
749
+ })(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.colors.foreground, props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
1115
750
  StyledSheetTitle.defaultProps = {
1116
751
  theme: reactTheming.DEFAULT_THEME
1117
752
  };
1118
753
 
1119
- var COMPONENT_ID$5 = 'chrome.sheet_description';
1120
- var StyledSheetDescription = styled__default["default"].div.attrs({
754
+ const COMPONENT_ID$5 = 'chrome.sheet_description';
755
+ const StyledSheetDescription = styled__default["default"].div.attrs({
1121
756
  'data-garden-id': COMPONENT_ID$5,
1122
- 'data-garden-version': '8.57.0'
757
+ 'data-garden-version': '8.58.0'
1123
758
  }).withConfig({
1124
759
  displayName: "StyledSheetDescription",
1125
760
  componentId: "sc-1puglb6-0"
1126
- })(["line-height:", ";color:", ";", ";"], function (props) {
1127
- return reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md);
1128
- }, function (props) {
1129
- return reactTheming.getColor('neutralHue', 600, props.theme);
1130
- }, function (props) {
1131
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props);
1132
- });
761
+ })(["line-height:", ";color:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => reactTheming.getColor('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
1133
762
  StyledSheetDescription.defaultProps = {
1134
763
  theme: reactTheming.DEFAULT_THEME
1135
764
  };
1136
765
 
1137
- var COMPONENT_ID$4 = 'chrome.sheet_body';
1138
- var StyledSheetBody = styled__default["default"].div.attrs({
766
+ const COMPONENT_ID$4 = 'chrome.sheet_body';
767
+ const StyledSheetBody = styled__default["default"].div.attrs({
1139
768
  'data-garden-id': COMPONENT_ID$4,
1140
- 'data-garden-version': '8.57.0'
769
+ 'data-garden-version': '8.58.0'
1141
770
  }).withConfig({
1142
771
  displayName: "StyledSheetBody",
1143
772
  componentId: "sc-bt4eoj-0"
1144
- })(["flex:1;overflow-y:auto;padding:", "px;", ";"], function (props) {
1145
- return props.theme.space.base * 5;
1146
- }, function (props) {
1147
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props);
1148
- });
773
+ })(["flex:1;overflow-y:auto;padding:", "px;", ";"], props => props.theme.space.base * 5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
1149
774
  StyledSheetBody.defaultProps = {
1150
775
  theme: reactTheming.DEFAULT_THEME
1151
776
  };
1152
777
 
1153
- var COMPONENT_ID$3 = 'chrome.sheet_close';
1154
- var BASE_MULTIPLIERS = {
778
+ const COMPONENT_ID$3 = 'chrome.sheet_close';
779
+ const BASE_MULTIPLIERS = {
1155
780
  top: 2.5,
1156
781
  side: 2,
1157
782
  size: 10
1158
783
  };
1159
- var colorStyles = function colorStyles(props) {
1160
- var backgroundColor = 'primaryHue';
1161
- var foregroundColor = 'neutralHue';
784
+ const colorStyles = props => {
785
+ const backgroundColor = 'primaryHue';
786
+ const foregroundColor = 'neutralHue';
1162
787
  return styled.css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}&[data-garden-focus-visible]{box-shadow:", ";}&:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], reactTheming.getColor(foregroundColor, 600, props.theme), reactTheming.getColor(backgroundColor, 600, props.theme, 0.08), reactTheming.getColor(foregroundColor, 700, props.theme), props.theme.shadows.md(reactTheming.getColor(backgroundColor, 600, props.theme, 0.35)), reactTheming.getColor(backgroundColor, 600, props.theme, 0.2), reactTheming.getColor(foregroundColor, 800, props.theme));
1163
788
  };
1164
- var StyledSheetClose = styled__default["default"].button.attrs({
789
+ const StyledSheetClose = styled__default["default"].button.attrs({
1165
790
  'data-garden-id': COMPONENT_ID$3,
1166
- 'data-garden-version': '8.57.0'
791
+ 'data-garden-version': '8.58.0'
1167
792
  }).withConfig({
1168
793
  displayName: "StyledSheetClose",
1169
794
  componentId: "sc-1ab02oq-0"
1170
- })(["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) {
1171
- return props.theme.space.base * BASE_MULTIPLIERS.top;
1172
- }, function (props) {
1173
- return props.theme.rtl ? 'left' : 'right';
1174
- }, function (props) {
1175
- return "".concat(props.theme.space.base * BASE_MULTIPLIERS.side, "px");
1176
- }, function (props) {
1177
- return props.theme.space.base * BASE_MULTIPLIERS.size;
1178
- }, function (props) {
1179
- return props.theme.space.base * BASE_MULTIPLIERS.size;
1180
- }, function (props) {
1181
- return colorStyles(props);
1182
- }, function (props) {
1183
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props);
1184
- });
795
+ })(["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;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => colorStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
1185
796
  StyledSheetClose.defaultProps = {
1186
797
  theme: reactTheming.DEFAULT_THEME
1187
798
  };
1188
799
 
1189
- var COMPONENT_ID$2 = 'chrome.sheet_footer';
1190
- var StyledSheetFooter = styled__default["default"].footer.attrs({
800
+ const COMPONENT_ID$2 = 'chrome.sheet_footer';
801
+ const StyledSheetFooter = styled__default["default"].footer.attrs({
1191
802
  'data-garden-id': COMPONENT_ID$2,
1192
- 'data-garden-version': '8.57.0'
803
+ 'data-garden-version': '8.58.0'
1193
804
  }).withConfig({
1194
805
  displayName: "StyledSheetFooter",
1195
806
  componentId: "sc-2cktos-0"
1196
- })(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], function (props) {
1197
- return props.isCompact ? 'center' : 'flex-end';
1198
- }, function (props) {
1199
- return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme), "}");
1200
- }, function (props) {
1201
- return props.theme.space.base * (props.isCompact ? 2.5 : 5);
1202
- }, function (props) {
1203
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props);
1204
- });
807
+ })(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * (props.isCompact ? 2.5 : 5), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
1205
808
  StyledSheetFooter.defaultProps = {
1206
809
  theme: reactTheming.DEFAULT_THEME
1207
810
  };
1208
811
 
1209
- var COMPONENT_ID$1 = 'chrome.sheet_footer_item';
1210
- var StyledSheetFooterItem = styled__default["default"].div.attrs({
812
+ const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
813
+ const StyledSheetFooterItem = styled__default["default"].div.attrs({
1211
814
  'data-garden-id': COMPONENT_ID$1,
1212
- 'data-garden-version': '8.57.0'
815
+ 'data-garden-version': '8.58.0'
1213
816
  }).withConfig({
1214
817
  displayName: "StyledSheetFooterItem",
1215
818
  componentId: "sc-r9ixh-0"
1216
- })(["", " ", ";"], function (props) {
1217
- return "margin-".concat(props.theme.rtl ? 'right' : 'left', ": ").concat(props.theme.space.base * 5, "px;");
1218
- }, function (props) {
1219
- return reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props);
1220
- });
819
+ })(["", " ", ";"], props => `margin-${props.theme.rtl ? 'right' : 'left'}: ${props.theme.space.base * 5}px;`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
1221
820
  StyledSheetFooterItem.defaultProps = {
1222
821
  theme: reactTheming.DEFAULT_THEME
1223
822
  };
1224
823
 
1225
- var COMPONENT_ID = 'chrome.sheet_header';
1226
- var StyledSheetHeader = styled__default["default"].header.attrs({
824
+ const COMPONENT_ID = 'chrome.sheet_header';
825
+ const StyledSheetHeader = styled__default["default"].header.attrs({
1227
826
  'data-garden-id': COMPONENT_ID,
1228
- 'data-garden-version': '8.57.0'
827
+ 'data-garden-version': '8.58.0'
1229
828
  }).withConfig({
1230
829
  displayName: "StyledSheetHeader",
1231
830
  componentId: "sc-o2ry8i-0"
1232
- })(["border-bottom:", ";padding:", "px;", " ", ";"], function (props) {
1233
- return "".concat(props.theme.borders.sm, " ").concat(reactTheming.getColor('neutralHue', 300, props.theme), "}");
1234
- }, function (props) {
1235
- return props.theme.space.base * 5;
1236
- }, function (props) {
1237
- return props.isCloseButtonPresent && "padding-".concat(props.theme.rtl ? 'left' : 'right', ": ").concat(props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2), "px;");
1238
- }, function (props) {
1239
- return reactTheming.retrieveComponentStyles(COMPONENT_ID, props);
1240
- });
831
+ })(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * 5, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
1241
832
  StyledSheetHeader.defaultProps = {
1242
833
  theme: reactTheming.DEFAULT_THEME
1243
834
  };
1244
835
 
1245
- var _excluded$a = ["hue", "isFluid"];
1246
- var Chrome = React__default["default"].forwardRef(function (_ref, ref) {
1247
- var hue = _ref.hue,
1248
- isFluid = _ref.isFluid,
1249
- props = _objectWithoutProperties(_ref, _excluded$a);
1250
- var theme = React.useContext(styled.ThemeContext);
1251
- var isLightMemoized = React.useMemo(function () {
836
+ const Chrome = React__default["default"].forwardRef((_ref, ref) => {
837
+ let {
838
+ hue,
839
+ isFluid,
840
+ ...props
841
+ } = _ref;
842
+ const theme = React.useContext(styled.ThemeContext);
843
+ const isLightMemoized = React.useMemo(() => {
1252
844
  if (hue) {
1253
- var backgroundColor = reactTheming.getColor(hue, 600, theme);
1254
- var LIGHT_COLOR = 'white';
1255
- return polished.readableColor(backgroundColor, LIGHT_COLOR, undefined, false
1256
- ) === LIGHT_COLOR;
845
+ const backgroundColor = reactTheming.getColor(hue, 600, theme);
846
+ const LIGHT_COLOR = 'white';
847
+ return polished.readableColor(backgroundColor, LIGHT_COLOR, undefined, false ) === LIGHT_COLOR;
1257
848
  }
1258
849
  return false;
1259
850
  }, [hue, theme]);
1260
- var isLight = hue ? isLightMemoized : false;
1261
- var isDark = hue ? !isLightMemoized : false;
1262
- var chromeContextValue = React.useMemo(function () {
1263
- return {
1264
- hue: hue || 'chromeHue',
1265
- isLight: isLight,
1266
- isDark: isDark
1267
- };
1268
- }, [hue, isLight, isDark]);
1269
- var environment = reactTheming.useDocument(theme);
1270
- React.useEffect(function () {
851
+ const isLight = hue ? isLightMemoized : false;
852
+ const isDark = hue ? !isLightMemoized : false;
853
+ const chromeContextValue = React.useMemo(() => ({
854
+ hue: hue || 'chromeHue',
855
+ isLight,
856
+ isDark
857
+ }), [hue, isLight, isDark]);
858
+ const environment = reactTheming.useDocument(theme);
859
+ React.useEffect(() => {
1271
860
  if (environment && !isFluid) {
1272
- var htmlElement = environment.querySelector('html');
861
+ const htmlElement = environment.querySelector('html');
1273
862
  if (htmlElement) {
1274
- var defaultHtmlPosition = htmlElement.style.position;
863
+ const defaultHtmlPosition = htmlElement.style.position;
1275
864
  htmlElement.style.position = 'fixed';
1276
- return function () {
865
+ return () => {
1277
866
  htmlElement.style.position = defaultHtmlPosition;
1278
867
  };
1279
868
  }
@@ -1291,14 +880,15 @@ Chrome.propTypes = {
1291
880
  hue: PropTypes__default["default"].string
1292
881
  };
1293
882
 
1294
- var _excluded$9 = ["targetId", "zIndex", "children"];
1295
- var SkipNav = React__default["default"].forwardRef(function (_ref, ref) {
1296
- var targetId = _ref.targetId,
1297
- zIndex = _ref.zIndex,
1298
- children = _ref.children,
1299
- props = _objectWithoutProperties(_ref, _excluded$9);
883
+ const SkipNav = React__default["default"].forwardRef((_ref, ref) => {
884
+ let {
885
+ targetId,
886
+ zIndex,
887
+ children,
888
+ ...props
889
+ } = _ref;
1300
890
  return React__default["default"].createElement(StyledSkipNav, _extends$3({
1301
- href: "#".concat(targetId),
891
+ href: `#${targetId}`,
1302
892
  zIndex: zIndex,
1303
893
  ref: ref
1304
894
  }, props), React__default["default"].createElement(StyledSkipNavIcon, null), children);
@@ -1312,22 +902,21 @@ SkipNav.defaultProps = {
1312
902
  zIndex: 1
1313
903
  };
1314
904
 
1315
- var BodyContext = React__default["default"].createContext({
905
+ const BodyContext = React__default["default"].createContext({
1316
906
  hasFooter: true
1317
907
  });
1318
- var useBodyContext = function useBodyContext() {
908
+ const useBodyContext = () => {
1319
909
  return React.useContext(BodyContext);
1320
910
  };
1321
911
 
1322
- var _excluded$8 = ["hasFooter"];
1323
- var Body$1 = React__default["default"].forwardRef(function (_ref, ref) {
1324
- var hasFooter = _ref.hasFooter,
1325
- props = _objectWithoutProperties(_ref, _excluded$8);
1326
- var bodyContextValue = React.useMemo(function () {
1327
- return {
1328
- hasFooter: !!hasFooter
1329
- };
1330
- }, [hasFooter]);
912
+ const Body$1 = React__default["default"].forwardRef((_ref, ref) => {
913
+ let {
914
+ hasFooter,
915
+ ...props
916
+ } = _ref;
917
+ const bodyContextValue = React.useMemo(() => ({
918
+ hasFooter: !!hasFooter
919
+ }), [hasFooter]);
1331
920
  return React__default["default"].createElement(BodyContext.Provider, {
1332
921
  value: bodyContextValue
1333
922
  }, React__default["default"].createElement(StyledBody, _extends$3({
@@ -1339,9 +928,10 @@ Body$1.propTypes = {
1339
928
  hasFooter: PropTypes__default["default"].bool
1340
929
  };
1341
930
 
1342
- var Content = React__default["default"].forwardRef(function (props, ref) {
1343
- var _useBodyContext = useBodyContext(),
1344
- hasFooter = _useBodyContext.hasFooter;
931
+ const Content = React__default["default"].forwardRef((props, ref) => {
932
+ const {
933
+ hasFooter
934
+ } = useBodyContext();
1345
935
  return React__default["default"].createElement(StyledContent, _extends$3({
1346
936
  ref: ref,
1347
937
  hasFooter: hasFooter
@@ -1349,38 +939,33 @@ var Content = React__default["default"].forwardRef(function (props, ref) {
1349
939
  });
1350
940
  Content.displayName = 'Content';
1351
941
 
1352
- var Main = React__default["default"].forwardRef(function (props, ref) {
1353
- return React__default["default"].createElement(StyledMain, _extends$3({
1354
- ref: ref
1355
- }, props));
1356
- });
942
+ const Main = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledMain, _extends$3({
943
+ ref: ref
944
+ }, props)));
1357
945
  Main.displayName = 'Main';
1358
946
 
1359
- var Sidebar = React__default["default"].forwardRef(function (props, ref) {
1360
- return React__default["default"].createElement(StyledSidebar, _extends$3({
1361
- ref: ref
1362
- }, props));
1363
- });
947
+ const Sidebar = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledSidebar, _extends$3({
948
+ ref: ref
949
+ }, props)));
1364
950
  Sidebar.displayName = 'Sidebar';
1365
951
 
1366
- var Header$1 = React__default["default"].forwardRef(function (props, ref) {
1367
- return React__default["default"].createElement(StyledHeader, _extends$3({
1368
- ref: ref
1369
- }, props));
1370
- });
952
+ const Header$1 = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledHeader, _extends$3({
953
+ ref: ref
954
+ }, props)));
1371
955
  Header$1.displayName = 'Header';
1372
956
  Header$1.propTypes = {
1373
957
  isStandalone: PropTypes__default["default"].bool
1374
958
  };
1375
959
 
1376
- var PLACEMENT = ['end', 'start'];
1377
- var PRODUCT = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
960
+ const PLACEMENT = ['end', 'start'];
961
+ const PRODUCT = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
1378
962
 
1379
- var _excluded$7 = ["hasLogo", "product"];
1380
- var HeaderItem = React__default["default"].forwardRef(function (_ref, ref) {
1381
- var hasLogo = _ref.hasLogo,
1382
- product = _ref.product,
1383
- other = _objectWithoutProperties(_ref, _excluded$7);
963
+ const HeaderItem = React__default["default"].forwardRef((_ref, ref) => {
964
+ let {
965
+ hasLogo,
966
+ product,
967
+ ...other
968
+ } = _ref;
1384
969
  if (hasLogo) {
1385
970
  return React__default["default"].createElement(StyledLogoHeaderItem, _extends$3({
1386
971
  ref: ref,
@@ -1400,17 +985,22 @@ HeaderItem.propTypes = {
1400
985
  hasLogo: PropTypes__default["default"].bool
1401
986
  };
1402
987
 
1403
- var _excluded$6 = ["children"],
1404
- _excluded2$1 = ["theme"];
1405
- var HeaderItemIcon = function HeaderItemIcon(_ref) {
1406
- var children = _ref.children,
1407
- props = _objectWithoutProperties(_ref, _excluded$6);
1408
- var element = React.Children.only(children);
988
+ const HeaderItemIcon = _ref => {
989
+ let {
990
+ children,
991
+ ...props
992
+ } = _ref;
993
+ const element = React.Children.only(children);
1409
994
  if ( React.isValidElement(element)) {
1410
- var Icon = function Icon(_ref2) {
1411
- _ref2.theme;
1412
- var iconProps = _objectWithoutProperties(_ref2, _excluded2$1);
1413
- return React.cloneElement(element, _objectSpread2(_objectSpread2({}, props), iconProps));
995
+ const Icon = _ref2 => {
996
+ let {
997
+ theme,
998
+ ...iconProps
999
+ } = _ref2;
1000
+ return React.cloneElement(element, {
1001
+ ...props,
1002
+ ...iconProps
1003
+ });
1414
1004
  };
1415
1005
  return React__default["default"].createElement(StyledHeaderItemIcon, _extends$3({
1416
1006
  as: Icon
@@ -1419,54 +1009,45 @@ var HeaderItemIcon = function HeaderItemIcon(_ref) {
1419
1009
  return null;
1420
1010
  };
1421
1011
 
1422
- var HeaderItemText = React__default["default"].forwardRef(function (props, ref) {
1423
- return React__default["default"].createElement(StyledHeaderItemText, _extends$3({
1424
- ref: ref
1425
- }, props));
1426
- });
1012
+ const HeaderItemText = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledHeaderItemText, _extends$3({
1013
+ ref: ref
1014
+ }, props)));
1427
1015
  HeaderItemText.displayName = 'HeaderItemText';
1428
1016
  HeaderItemText.propTypes = {
1429
1017
  isClipped: PropTypes__default["default"].bool
1430
1018
  };
1431
1019
 
1432
- var HeaderItemWrapper = React__default["default"].forwardRef(function (props, ref) {
1433
- return React__default["default"].createElement(StyledHeaderItemWrapper, _extends$3({
1434
- ref: ref
1435
- }, props));
1436
- });
1020
+ const HeaderItemWrapper = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledHeaderItemWrapper, _extends$3({
1021
+ ref: ref
1022
+ }, props)));
1437
1023
  HeaderItemWrapper.displayName = 'HeaderItemWrapper';
1438
1024
 
1439
- var Footer$1 = React__default["default"].forwardRef(function (props, ref) {
1440
- return React__default["default"].createElement(StyledFooter, _extends$3({
1441
- ref: ref
1442
- }, props));
1443
- });
1025
+ const Footer$1 = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledFooter, _extends$3({
1026
+ ref: ref
1027
+ }, props)));
1444
1028
  Footer$1.displayName = 'Footer';
1445
1029
 
1446
- var FooterItem$1 = React__default["default"].forwardRef(function (props, ref) {
1447
- return React__default["default"].createElement(StyledFooterItem, _extends$3({
1448
- ref: ref
1449
- }, props));
1450
- });
1030
+ const FooterItem$1 = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledFooterItem, _extends$3({
1031
+ ref: ref
1032
+ }, props)));
1451
1033
  FooterItem$1.displayName = 'FooterItem';
1452
1034
 
1453
- var NavContext = React__default["default"].createContext({
1035
+ const NavContext = React__default["default"].createContext({
1454
1036
  isExpanded: false
1455
1037
  });
1456
- var useNavContext = function useNavContext() {
1038
+ const useNavContext = () => {
1457
1039
  return React.useContext(NavContext);
1458
1040
  };
1459
1041
 
1460
- var Nav = React__default["default"].forwardRef(function (props, ref) {
1461
- var _useChromeContext = useChromeContext(),
1462
- hue = _useChromeContext.hue,
1463
- isLight = _useChromeContext.isLight,
1464
- isDark = _useChromeContext.isDark;
1465
- var navContextValue = React.useMemo(function () {
1466
- return {
1467
- isExpanded: !!props.isExpanded
1468
- };
1469
- }, [props.isExpanded]);
1042
+ const Nav = React__default["default"].forwardRef((props, ref) => {
1043
+ const {
1044
+ hue,
1045
+ isLight,
1046
+ isDark
1047
+ } = useChromeContext();
1048
+ const navContextValue = React.useMemo(() => ({
1049
+ isExpanded: !!props.isExpanded
1050
+ }), [props.isExpanded]);
1470
1051
  return React__default["default"].createElement(NavContext.Provider, {
1471
1052
  value: navContextValue
1472
1053
  }, React__default["default"].createElement(StyledNav, _extends$3({
@@ -1482,18 +1063,21 @@ Nav.propTypes = {
1482
1063
  isExpanded: PropTypes__default["default"].bool
1483
1064
  };
1484
1065
 
1485
- var _excluded$5 = ["hasLogo", "hasBrandmark", "product"];
1486
- var NavItem = React__default["default"].forwardRef(function (_ref, ref) {
1487
- var hasLogo = _ref.hasLogo,
1488
- hasBrandmark = _ref.hasBrandmark,
1489
- product = _ref.product,
1490
- other = _objectWithoutProperties(_ref, _excluded$5);
1491
- var _useChromeContext = useChromeContext(),
1492
- hue = _useChromeContext.hue,
1493
- isLight = _useChromeContext.isLight,
1494
- isDark = _useChromeContext.isDark;
1495
- var _useNavContext = useNavContext(),
1496
- isExpanded = _useNavContext.isExpanded;
1066
+ const NavItem = React__default["default"].forwardRef((_ref, ref) => {
1067
+ let {
1068
+ hasLogo,
1069
+ hasBrandmark,
1070
+ product,
1071
+ ...other
1072
+ } = _ref;
1073
+ const {
1074
+ hue,
1075
+ isLight,
1076
+ isDark
1077
+ } = useChromeContext();
1078
+ const {
1079
+ isExpanded
1080
+ } = useNavContext();
1497
1081
  if (hasLogo) {
1498
1082
  return React__default["default"].createElement(StyledLogoNavItem, _extends$3({
1499
1083
  ref: ref,
@@ -1524,17 +1108,22 @@ NavItem.propTypes = {
1524
1108
  isCurrent: PropTypes__default["default"].bool
1525
1109
  };
1526
1110
 
1527
- var _excluded$4 = ["children"],
1528
- _excluded2 = ["theme"];
1529
- var NavItemIcon = function NavItemIcon(_ref) {
1530
- var children = _ref.children,
1531
- props = _objectWithoutProperties(_ref, _excluded$4);
1532
- var element = React.Children.only(children);
1111
+ const NavItemIcon = _ref => {
1112
+ let {
1113
+ children,
1114
+ ...props
1115
+ } = _ref;
1116
+ const element = React.Children.only(children);
1533
1117
  if ( React.isValidElement(element)) {
1534
- var Icon = function Icon(_ref2) {
1535
- _ref2.theme;
1536
- var iconProps = _objectWithoutProperties(_ref2, _excluded2);
1537
- return React.cloneElement(element, _objectSpread2(_objectSpread2({}, props), iconProps));
1118
+ const Icon = _ref2 => {
1119
+ let {
1120
+ theme,
1121
+ ...iconProps
1122
+ } = _ref2;
1123
+ return React.cloneElement(element, {
1124
+ ...props,
1125
+ ...iconProps
1126
+ });
1538
1127
  };
1539
1128
  return React__default["default"].createElement(StyledNavItemIcon, _extends$3({
1540
1129
  as: Icon
@@ -1543,9 +1132,10 @@ var NavItemIcon = function NavItemIcon(_ref) {
1543
1132
  return null;
1544
1133
  };
1545
1134
 
1546
- var NavItemText = React__default["default"].forwardRef(function (props, ref) {
1547
- var _useNavContext = useNavContext(),
1548
- isExpanded = _useNavContext.isExpanded;
1135
+ const NavItemText = React__default["default"].forwardRef((props, ref) => {
1136
+ const {
1137
+ isExpanded
1138
+ } = useNavContext();
1549
1139
  return React__default["default"].createElement(StyledNavItemText, _extends$3({
1550
1140
  ref: ref,
1551
1141
  isExpanded: isExpanded
@@ -1556,11 +1146,12 @@ NavItemText.propTypes = {
1556
1146
  isWrapped: PropTypes__default["default"].bool
1557
1147
  };
1558
1148
 
1559
- var SubNav = React__default["default"].forwardRef(function (props, ref) {
1560
- var _useChromeContext = useChromeContext(),
1561
- hue = _useChromeContext.hue,
1562
- isLight = _useChromeContext.isLight,
1563
- isDark = _useChromeContext.isDark;
1149
+ const SubNav = React__default["default"].forwardRef((props, ref) => {
1150
+ const {
1151
+ hue,
1152
+ isLight,
1153
+ isDark
1154
+ } = useChromeContext();
1564
1155
  return React__default["default"].createElement(StyledSubNav, _extends$3({
1565
1156
  ref: ref,
1566
1157
  hue: hue,
@@ -1570,10 +1161,11 @@ var SubNav = React__default["default"].forwardRef(function (props, ref) {
1570
1161
  });
1571
1162
  SubNav.displayName = 'SubNav';
1572
1163
 
1573
- var SubNavItem = React__default["default"].forwardRef(function (props, ref) {
1574
- var _useChromeContext = useChromeContext(),
1575
- isDark = _useChromeContext.isDark,
1576
- isLight = _useChromeContext.isLight;
1164
+ const SubNavItem = React__default["default"].forwardRef((props, ref) => {
1165
+ const {
1166
+ isDark,
1167
+ isLight
1168
+ } = useChromeContext();
1577
1169
  return React__default["default"].createElement(StyledSubNavItem, _extends$3({
1578
1170
  ref: ref,
1579
1171
  isDark: isDark,
@@ -1585,59 +1177,57 @@ SubNavItem.propTypes = {
1585
1177
  isCurrent: PropTypes__default["default"].bool
1586
1178
  };
1587
1179
 
1588
- var SubNavItemText = React__default["default"].forwardRef(function (props, ref) {
1589
- return React__default["default"].createElement(StyledSubNavItemText, _extends$3({
1590
- ref: ref
1591
- }, props));
1592
- });
1180
+ const SubNavItemText = React__default["default"].forwardRef((props, ref) => React__default["default"].createElement(StyledSubNavItemText, _extends$3({
1181
+ ref: ref
1182
+ }, props)));
1593
1183
  SubNavItemText.displayName = 'SubNavItemText';
1594
1184
  SubNavItemText.propTypes = {
1595
1185
  isWrapped: PropTypes__default["default"].bool
1596
1186
  };
1597
1187
 
1598
- var _excluded$3 = ["header", "children", "isExpanded", "onChange"];
1599
- var CollapsibleSubNavItem = React__default["default"].forwardRef(function (_ref, ref) {
1600
- var header = _ref.header,
1601
- children = _ref.children,
1602
- controlledExpanded = _ref.isExpanded,
1603
- _onChange = _ref.onChange,
1604
- other = _objectWithoutProperties(_ref, _excluded$3);
1605
- var panelRef = React.useRef();
1606
- var _useState = React.useState(controlledExpanded),
1607
- _useState2 = _slicedToArray(_useState, 2),
1608
- internalExpanded = _useState2[0],
1609
- setInternalExpanded = _useState2[1];
1610
- var expanded = containerUtilities.getControlledValue(controlledExpanded, internalExpanded);
1611
- var expandedSections = expanded ? [0] : [];
1612
- var _useAccordion = containerAccordion.useAccordion({
1613
- expandedSections: expandedSections,
1614
- onChange: function onChange() {
1615
- var isExpanded = expandedSections.length === 0;
1616
- if (_onChange) {
1617
- _onChange(isExpanded);
1188
+ const CollapsibleSubNavItem = React__default["default"].forwardRef((_ref, ref) => {
1189
+ let {
1190
+ header,
1191
+ children,
1192
+ isExpanded: controlledExpanded,
1193
+ onChange,
1194
+ ...other
1195
+ } = _ref;
1196
+ const panelRef = React.useRef();
1197
+ const [internalExpanded, setInternalExpanded] = React.useState(controlledExpanded);
1198
+ const expanded = containerUtilities.getControlledValue(controlledExpanded, internalExpanded);
1199
+ const expandedSections = expanded ? [0] : [];
1200
+ const {
1201
+ getHeaderProps,
1202
+ getTriggerProps,
1203
+ getPanelProps
1204
+ } = containerAccordion.useAccordion({
1205
+ expandedSections,
1206
+ onChange: () => {
1207
+ const isExpanded = expandedSections.length === 0;
1208
+ if (onChange) {
1209
+ onChange(isExpanded);
1618
1210
  } else {
1619
1211
  setInternalExpanded(isExpanded);
1620
1212
  }
1621
1213
  }
1622
- }),
1623
- getHeaderProps = _useAccordion.getHeaderProps,
1624
- getTriggerProps = _useAccordion.getTriggerProps,
1625
- getPanelProps = _useAccordion.getPanelProps;
1626
- React.useEffect(function () {
1214
+ });
1215
+ React.useEffect(() => {
1627
1216
  if (expanded && panelRef.current) {
1628
- panelRef.current.style.maxHeight = "".concat(panelRef.current.scrollHeight, "px");
1217
+ panelRef.current.style.maxHeight = `${panelRef.current.scrollHeight}px`;
1629
1218
  }
1630
1219
  }, [expanded, children]);
1631
1220
  return React__default["default"].createElement("div", {
1632
1221
  ref: ref
1633
1222
  }, React__default["default"].createElement("div", getHeaderProps({
1634
1223
  ariaLevel: 2
1635
- }), React__default["default"].createElement(StyledSubNavItemHeader, getTriggerProps(_objectSpread2({
1224
+ }), React__default["default"].createElement(StyledSubNavItemHeader, getTriggerProps({
1636
1225
  isExpanded: expanded,
1637
1226
  index: 0,
1638
1227
  role: null,
1639
- tabIndex: null
1640
- }, other)), React__default["default"].createElement(React__default["default"].Fragment, null, header, React__default["default"].createElement(StyledSubNavItemIconWrapper, {
1228
+ tabIndex: null,
1229
+ ...other
1230
+ }), React__default["default"].createElement(React__default["default"].Fragment, null, header, React__default["default"].createElement(StyledSubNavItemIconWrapper, {
1641
1231
  isExpanded: expanded
1642
1232
  }, React__default["default"].createElement(StyledSubNavItemIcon, null))))), React__default["default"].createElement(StyledSubNavPanel, getPanelProps({
1643
1233
  index: 0,
@@ -1653,10 +1243,10 @@ CollapsibleSubNavItem.propTypes = {
1653
1243
  };
1654
1244
  CollapsibleSubNavItem.displayName = 'CollapsibleSubNavItem';
1655
1245
 
1656
- var SheetContext = React.createContext({
1657
- setIsCloseButtonPresent: function setIsCloseButtonPresent() {}
1246
+ const SheetContext = React.createContext({
1247
+ setIsCloseButtonPresent() {}
1658
1248
  });
1659
- var useSheetContext = function useSheetContext() {
1249
+ const useSheetContext = () => {
1660
1250
  return React.useContext(SheetContext);
1661
1251
  };
1662
1252
 
@@ -1678,86 +1268,93 @@ function activeElement(doc) {
1678
1268
  }
1679
1269
 
1680
1270
  function useFocusableMount(_ref) {
1681
- var isMounted = _ref.isMounted,
1682
- focusOnMount = _ref.focusOnMount,
1683
- restoreFocus = _ref.restoreFocus,
1684
- targetRef = _ref.targetRef;
1685
- var triggerRef = React.useRef();
1686
- React.useEffect(function () {
1271
+ let {
1272
+ isMounted,
1273
+ focusOnMount,
1274
+ restoreFocus,
1275
+ targetRef
1276
+ } = _ref;
1277
+ const triggerRef = React.useRef();
1278
+ React.useEffect(() => {
1687
1279
  if (isMounted && focusOnMount && targetRef.current) {
1688
1280
  triggerRef.current = activeElement();
1689
1281
  targetRef.current.focus();
1690
1282
  }
1691
1283
  }, [isMounted, focusOnMount, targetRef]);
1692
- React.useEffect(function () {
1284
+ React.useEffect(() => {
1693
1285
  if (!isMounted && restoreFocus && triggerRef.current) {
1694
1286
  triggerRef.current.focus();
1695
1287
  }
1696
1288
  }, [isMounted, restoreFocus, triggerRef]);
1697
1289
  }
1698
1290
 
1699
- var _excluded$2 = ["id"];
1700
- var SheetTitle = React.forwardRef(function (_ref, ref) {
1701
- var id = _ref.id,
1702
- props = _objectWithoutProperties(_ref, _excluded$2);
1703
- var _useSheetContext = useSheetContext(),
1704
- titleId = _useSheetContext.titleId;
1291
+ const SheetTitle = React.forwardRef((_ref, ref) => {
1292
+ let {
1293
+ id,
1294
+ ...props
1295
+ } = _ref;
1296
+ const {
1297
+ titleId
1298
+ } = useSheetContext();
1705
1299
  return React__default["default"].createElement(StyledSheetTitle, _extends$3({
1706
1300
  id: id || titleId,
1707
1301
  ref: ref
1708
1302
  }, props));
1709
1303
  });
1710
1304
  SheetTitle.displayName = 'Sheet.Title';
1711
- var Title = SheetTitle;
1712
-
1713
- var _excluded$1 = ["id"];
1714
- var SheetDescription = React.forwardRef(function (_ref, ref) {
1715
- var id = _ref.id,
1716
- props = _objectWithoutProperties(_ref, _excluded$1);
1717
- var _useSheetContext = useSheetContext(),
1718
- descriptionId = _useSheetContext.descriptionId;
1305
+ const Title = SheetTitle;
1306
+
1307
+ const SheetDescription = React.forwardRef((_ref, ref) => {
1308
+ let {
1309
+ id,
1310
+ ...props
1311
+ } = _ref;
1312
+ const {
1313
+ descriptionId
1314
+ } = useSheetContext();
1719
1315
  return React__default["default"].createElement(StyledSheetDescription, _extends$3({
1720
1316
  id: id || descriptionId,
1721
1317
  ref: ref
1722
1318
  }, props));
1723
1319
  });
1724
1320
  SheetDescription.displayName = 'Sheet.Description';
1725
- var Description = SheetDescription;
1321
+ const Description = SheetDescription;
1726
1322
 
1727
- var SheetHeader = React.forwardRef(function (props, ref) {
1728
- var _useSheetContext = useSheetContext(),
1729
- isCloseButtonPresent = _useSheetContext.isCloseButtonPresent;
1323
+ const SheetHeader = React.forwardRef((props, ref) => {
1324
+ const {
1325
+ isCloseButtonPresent
1326
+ } = useSheetContext();
1730
1327
  return React__default["default"].createElement(StyledSheetHeader, _extends$3({
1731
1328
  ref: ref,
1732
1329
  isCloseButtonPresent: isCloseButtonPresent
1733
1330
  }, props));
1734
1331
  });
1735
1332
  SheetHeader.displayName = 'Sheet.Header';
1736
- var Header = SheetHeader;
1333
+ const Header = SheetHeader;
1737
1334
 
1738
- var SheetBody = React.forwardRef(function (props, ref) {
1335
+ const SheetBody = React.forwardRef((props, ref) => {
1739
1336
  return React__default["default"].createElement(StyledSheetBody, _extends$3({
1740
1337
  ref: ref
1741
1338
  }, props));
1742
1339
  });
1743
1340
  SheetBody.displayName = 'Sheet.Body';
1744
- var Body = SheetBody;
1341
+ const Body = SheetBody;
1745
1342
 
1746
- var SheetFooter = React.forwardRef(function (props, ref) {
1343
+ const SheetFooter = React.forwardRef((props, ref) => {
1747
1344
  return React__default["default"].createElement(StyledSheetFooter, _extends$3({
1748
1345
  ref: ref
1749
1346
  }, props));
1750
1347
  });
1751
1348
  SheetFooter.displayName = 'Sheet.Footer';
1752
- var Footer = SheetFooter;
1349
+ const Footer = SheetFooter;
1753
1350
 
1754
- var SheetFooterItem = React.forwardRef(function (props, ref) {
1351
+ const SheetFooterItem = React.forwardRef((props, ref) => {
1755
1352
  return React__default["default"].createElement(StyledSheetFooterItem, _extends$3({
1756
1353
  ref: ref
1757
1354
  }, props));
1758
1355
  });
1759
1356
  SheetFooterItem.displayName = 'Sheet.FooterItem';
1760
- var FooterItem = SheetFooterItem;
1357
+ const FooterItem = SheetFooterItem;
1761
1358
 
1762
1359
  var _path;
1763
1360
 
@@ -1770,7 +1367,8 @@ var SvgXStroke = function SvgXStroke(props) {
1770
1367
  height: 16,
1771
1368
  focusable: "false",
1772
1369
  viewBox: "0 0 16 16",
1773
- "aria-hidden": "true"
1370
+ "aria-hidden": "true",
1371
+ role: "img"
1774
1372
  }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
1775
1373
  stroke: "currentColor",
1776
1374
  strokeLinecap: "round",
@@ -1778,14 +1376,13 @@ var SvgXStroke = function SvgXStroke(props) {
1778
1376
  })));
1779
1377
  };
1780
1378
 
1781
- var SheetClose = React.forwardRef(function (props, ref) {
1782
- var _useSheetContext = useSheetContext(),
1783
- setIsCloseButtonPresent = _useSheetContext.setIsCloseButtonPresent;
1784
- React.useEffect(function () {
1379
+ const SheetClose = React.forwardRef((props, ref) => {
1380
+ const {
1381
+ setIsCloseButtonPresent
1382
+ } = useSheetContext();
1383
+ React.useEffect(() => {
1785
1384
  setIsCloseButtonPresent(true);
1786
- return function () {
1787
- return setIsCloseButtonPresent(false);
1788
- };
1385
+ return () => setIsCloseButtonPresent(false);
1789
1386
  }, [setIsCloseButtonPresent]);
1790
1387
  return React__default["default"].createElement(StyledSheetClose, _extends$3({
1791
1388
  "aria-label": "Close Sheet",
@@ -1793,43 +1390,37 @@ var SheetClose = React.forwardRef(function (props, ref) {
1793
1390
  }, props), React__default["default"].createElement(SvgXStroke, null));
1794
1391
  });
1795
1392
  SheetClose.displayName = 'Sheet.Close';
1796
- var Close = SheetClose;
1797
-
1798
- var _excluded = ["id", "isOpen", "isAnimated", "focusOnMount", "restoreFocus", "placement", "size", "children"];
1799
- var SheetComponent = React__default["default"].forwardRef(function (_ref, ref) {
1800
- var id = _ref.id,
1801
- isOpen = _ref.isOpen,
1802
- isAnimated = _ref.isAnimated,
1803
- focusOnMount = _ref.focusOnMount,
1804
- restoreFocus = _ref.restoreFocus,
1805
- placement = _ref.placement,
1806
- size = _ref.size,
1807
- children = _ref.children,
1808
- props = _objectWithoutProperties(_ref, _excluded);
1809
- var sheetRef = React.useRef(null);
1810
- var seed = reactUid.useUIDSeed();
1811
- var _useState = React.useState(false),
1812
- _useState2 = _slicedToArray(_useState, 2),
1813
- isCloseButtonPresent = _useState2[0],
1814
- setIsCloseButtonPresent = _useState2[1];
1815
- var idPrefix = React.useMemo(function () {
1816
- return id || seed("sheet_".concat('8.57.0'));
1817
- }, [id, seed]);
1818
- var titleId = "".concat(idPrefix, "--title");
1819
- var descriptionId = "".concat(idPrefix, "--description");
1820
- var sheetContext = React.useMemo(function () {
1821
- return {
1822
- titleId: titleId,
1823
- descriptionId: descriptionId,
1824
- isCloseButtonPresent: isCloseButtonPresent,
1825
- setIsCloseButtonPresent: setIsCloseButtonPresent
1826
- };
1827
- }, [titleId, descriptionId, isCloseButtonPresent]);
1393
+ const Close = SheetClose;
1394
+
1395
+ const SheetComponent = React__default["default"].forwardRef((_ref, ref) => {
1396
+ let {
1397
+ id,
1398
+ isOpen,
1399
+ isAnimated,
1400
+ focusOnMount,
1401
+ restoreFocus,
1402
+ placement,
1403
+ size,
1404
+ children,
1405
+ ...props
1406
+ } = _ref;
1407
+ const sheetRef = React.useRef(null);
1408
+ const seed = reactUid.useUIDSeed();
1409
+ const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
1410
+ const idPrefix = React.useMemo(() => id || seed(`sheet_${'8.58.0'}`), [id, seed]);
1411
+ const titleId = `${idPrefix}--title`;
1412
+ const descriptionId = `${idPrefix}--description`;
1413
+ const sheetContext = React.useMemo(() => ({
1414
+ titleId,
1415
+ descriptionId,
1416
+ isCloseButtonPresent,
1417
+ setIsCloseButtonPresent
1418
+ }), [titleId, descriptionId, isCloseButtonPresent]);
1828
1419
  useFocusableMount({
1829
1420
  targetRef: sheetRef,
1830
1421
  isMounted: isOpen,
1831
- focusOnMount: focusOnMount,
1832
- restoreFocus: restoreFocus
1422
+ focusOnMount,
1423
+ restoreFocus
1833
1424
  });
1834
1425
  return React__default["default"].createElement(SheetContext.Provider, {
1835
1426
  value: sheetContext
@@ -1865,7 +1456,7 @@ SheetComponent.defaultProps = {
1865
1456
  placement: 'end',
1866
1457
  size: '380px'
1867
1458
  };
1868
- var Sheet = SheetComponent;
1459
+ const Sheet = SheetComponent;
1869
1460
  Sheet.Body = Body;
1870
1461
  Sheet.Close = Close;
1871
1462
  Sheet.Description = Description;