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