@zendeskgarden/react-forms 8.45.0 → 8.47.2

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
@@ -9,8 +9,8 @@ import * as React from 'react';
9
9
  import React__default, { createContext, useContext, Children, useState, useRef, useMemo, forwardRef, useCallback, useEffect, useLayoutEffect } from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import { useField } from '@zendeskgarden/container-field';
12
- import styled, { css } from 'styled-components';
13
- import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, withTheme, useDocument } from '@zendeskgarden/react-theming';
12
+ import styled, { css, ThemeContext } from 'styled-components';
13
+ import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, useDocument } from '@zendeskgarden/react-theming';
14
14
  import { hideVisually, math, rgba, em } from 'polished';
15
15
  import { composeEventHandlers, KEY_CODES, getControlledValue } from '@zendeskgarden/container-utilities';
16
16
  import mergeRefs from 'react-merge-refs';
@@ -21,14 +21,9 @@ function ownKeys(object, enumerableOnly) {
21
21
 
22
22
  if (Object.getOwnPropertySymbols) {
23
23
  var symbols = Object.getOwnPropertySymbols(object);
24
-
25
- if (enumerableOnly) {
26
- symbols = symbols.filter(function (sym) {
27
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
28
- });
29
- }
30
-
31
- keys.push.apply(keys, symbols);
24
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
25
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
26
+ })), keys.push.apply(keys, symbols);
32
27
  }
33
28
 
34
29
  return keys;
@@ -36,19 +31,12 @@ function ownKeys(object, enumerableOnly) {
36
31
 
37
32
  function _objectSpread2(target) {
38
33
  for (var i = 1; i < arguments.length; i++) {
39
- var source = arguments[i] != null ? arguments[i] : {};
40
-
41
- if (i % 2) {
42
- ownKeys(Object(source), true).forEach(function (key) {
43
- _defineProperty(target, key, source[key]);
44
- });
45
- } else if (Object.getOwnPropertyDescriptors) {
46
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
- } else {
48
- ownKeys(Object(source)).forEach(function (key) {
49
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
- });
51
- }
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
+ });
52
40
  }
53
41
 
54
42
  return target;
@@ -69,8 +57,8 @@ function _defineProperty(obj, key, value) {
69
57
  return obj;
70
58
  }
71
59
 
72
- function _extends$f() {
73
- _extends$f = Object.assign || function (target) {
60
+ function _extends$t() {
61
+ _extends$t = Object.assign || function (target) {
74
62
  for (var i = 1; i < arguments.length; i++) {
75
63
  var source = arguments[i];
76
64
 
@@ -84,7 +72,7 @@ function _extends$f() {
84
72
  return target;
85
73
  };
86
74
 
87
- return _extends$f.apply(this, arguments);
75
+ return _extends$t.apply(this, arguments);
88
76
  }
89
77
 
90
78
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -204,43 +192,43 @@ var useFieldContext = function useFieldContext() {
204
192
  return fieldContext;
205
193
  };
206
194
 
207
- var COMPONENT_ID$J = 'forms.field';
195
+ var COMPONENT_ID$K = 'forms.field';
208
196
  var StyledField = styled.div.attrs({
209
- 'data-garden-id': COMPONENT_ID$J,
210
- 'data-garden-version': '8.45.0'
197
+ 'data-garden-id': COMPONENT_ID$K,
198
+ 'data-garden-version': '8.47.2'
211
199
  }).withConfig({
212
200
  displayName: "StyledField",
213
201
  componentId: "sc-12gzfsu-0"
214
202
  })(["position:relative;direction:", ";margin:0;border:0;padding:0;font-size:0;", ";"], function (props) {
215
203
  return props.theme.rtl && 'rtl';
216
204
  }, function (props) {
217
- return retrieveComponentStyles(COMPONENT_ID$J, props);
205
+ return retrieveComponentStyles(COMPONENT_ID$K, props);
218
206
  });
219
207
  StyledField.defaultProps = {
220
208
  theme: DEFAULT_THEME
221
209
  };
222
210
 
223
- var COMPONENT_ID$I = 'forms.fieldset';
211
+ var COMPONENT_ID$J = 'forms.fieldset';
224
212
  var StyledFieldset = styled(StyledField).attrs({
225
213
  as: 'fieldset',
226
- 'data-garden-id': COMPONENT_ID$I,
227
- 'data-garden-version': '8.45.0'
214
+ 'data-garden-id': COMPONENT_ID$J,
215
+ 'data-garden-version': '8.47.2'
228
216
  }).withConfig({
229
217
  displayName: "StyledFieldset",
230
218
  componentId: "sc-1vr4mxv-0"
231
219
  })(["", "{margin-top:", "px;}", ";"], StyledField, function (props) {
232
220
  return props.theme.space.base * (props.isCompact ? 1 : 2);
233
221
  }, function (props) {
234
- return retrieveComponentStyles(COMPONENT_ID$I, props);
222
+ return retrieveComponentStyles(COMPONENT_ID$J, props);
235
223
  });
236
224
  StyledFieldset.defaultProps = {
237
225
  theme: DEFAULT_THEME
238
226
  };
239
227
 
240
- var COMPONENT_ID$H = 'forms.input_label';
228
+ var COMPONENT_ID$I = 'forms.input_label';
241
229
  var StyledLabel = styled.label.attrs({
242
- 'data-garden-id': COMPONENT_ID$H,
243
- 'data-garden-version': '8.45.0'
230
+ 'data-garden-id': COMPONENT_ID$I,
231
+ 'data-garden-version': '8.47.2'
244
232
  }).withConfig({
245
233
  displayName: "StyledLabel",
246
234
  componentId: "sc-2utmsz-0"
@@ -265,31 +253,31 @@ var StyledLabel = styled.label.attrs({
265
253
  }, function (props) {
266
254
  return !props.isRadio && hideVisually();
267
255
  }, function (props) {
268
- return retrieveComponentStyles(COMPONENT_ID$H, props);
256
+ return retrieveComponentStyles(COMPONENT_ID$I, props);
269
257
  });
270
258
  StyledLabel.defaultProps = {
271
259
  theme: DEFAULT_THEME
272
260
  };
273
261
 
274
- var COMPONENT_ID$G = 'forms.fieldset_legend';
262
+ var COMPONENT_ID$H = 'forms.fieldset_legend';
275
263
  var StyledLegend = styled(StyledLabel).attrs({
276
264
  as: 'legend',
277
- 'data-garden-id': COMPONENT_ID$G,
278
- 'data-garden-version': '8.45.0'
265
+ 'data-garden-id': COMPONENT_ID$H,
266
+ 'data-garden-version': '8.47.2'
279
267
  }).withConfig({
280
268
  displayName: "StyledLegend",
281
269
  componentId: "sc-6s0zwq-0"
282
270
  })(["padding:0;", ";"], function (props) {
283
- return retrieveComponentStyles(COMPONENT_ID$G, props);
271
+ return retrieveComponentStyles(COMPONENT_ID$H, props);
284
272
  });
285
273
  StyledLegend.defaultProps = {
286
274
  theme: DEFAULT_THEME
287
275
  };
288
276
 
289
- var COMPONENT_ID$F = 'forms.input_hint';
277
+ var COMPONENT_ID$G = 'forms.input_hint';
290
278
  var StyledHint = styled.div.attrs({
291
- 'data-garden-id': COMPONENT_ID$F,
292
- 'data-garden-version': '8.45.0'
279
+ 'data-garden-id': COMPONENT_ID$G,
280
+ 'data-garden-version': '8.47.2'
293
281
  }).withConfig({
294
282
  displayName: "StyledHint",
295
283
  componentId: "sc-17c2wu8-0"
@@ -302,96 +290,92 @@ var StyledHint = styled.div.attrs({
302
290
  }, function (props) {
303
291
  return props.theme.fontSizes.md;
304
292
  }, function (props) {
305
- return retrieveComponentStyles(COMPONENT_ID$F, props);
293
+ return retrieveComponentStyles(COMPONENT_ID$G, props);
306
294
  });
307
295
  StyledHint.defaultProps = {
308
296
  theme: DEFAULT_THEME
309
297
  };
310
298
 
311
- function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
299
+ var _g$2, _circle$5;
312
300
 
313
- var _ref$e = /*#__PURE__*/React.createElement("g", {
314
- fill: "none",
315
- stroke: "currentColor"
316
- }, /*#__PURE__*/React.createElement("circle", {
317
- cx: 7.5,
318
- cy: 8.5,
319
- r: 7
320
- }), /*#__PURE__*/React.createElement("path", {
321
- strokeLinecap: "round",
322
- d: "M7.5 4.5V9"
323
- }));
324
-
325
- var _ref2$3 = /*#__PURE__*/React.createElement("circle", {
326
- cx: 7.5,
327
- cy: 12,
328
- r: 1,
329
- fill: "currentColor"
330
- });
331
-
332
- function SvgAlertErrorStroke(props) {
333
- return /*#__PURE__*/React.createElement("svg", _extends$e({
301
+ function _extends$s() { _extends$s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
302
+
303
+ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
304
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
334
305
  xmlns: "http://www.w3.org/2000/svg",
335
306
  width: 16,
336
307
  height: 16,
337
- viewBox: "0 0 16 16",
338
308
  focusable: "false",
339
- role: "presentation"
340
- }, props), _ref$e, _ref2$3);
341
- }
342
-
343
- function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
309
+ viewBox: "0 0 16 16",
310
+ "aria-hidden": "true"
311
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
312
+ fill: "none",
313
+ stroke: "currentColor"
314
+ }, /*#__PURE__*/React.createElement("circle", {
315
+ cx: 7.5,
316
+ cy: 8.5,
317
+ r: 7
318
+ }), /*#__PURE__*/React.createElement("path", {
319
+ strokeLinecap: "round",
320
+ d: "M7.5 4.5V9"
321
+ }))), _circle$5 || (_circle$5 = /*#__PURE__*/React.createElement("circle", {
322
+ cx: 7.5,
323
+ cy: 12,
324
+ r: 1,
325
+ fill: "currentColor"
326
+ })));
327
+ };
344
328
 
345
- var _ref$d = /*#__PURE__*/React.createElement("path", {
346
- fill: "none",
347
- stroke: "currentColor",
348
- strokeLinecap: "round",
349
- d: "M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5"
350
- });
329
+ var _path$n, _circle$4;
351
330
 
352
- var _ref2$2 = /*#__PURE__*/React.createElement("circle", {
353
- cx: 7.5,
354
- cy: 12,
355
- r: 1,
356
- fill: "currentColor"
357
- });
331
+ function _extends$r() { _extends$r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
358
332
 
359
- function SvgAlertWarningStroke(props) {
360
- return /*#__PURE__*/React.createElement("svg", _extends$d({
333
+ var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
334
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
361
335
  xmlns: "http://www.w3.org/2000/svg",
362
336
  width: 16,
363
337
  height: 16,
364
- viewBox: "0 0 16 16",
365
338
  focusable: "false",
366
- role: "presentation"
367
- }, props), _ref$d, _ref2$2);
368
- }
339
+ viewBox: "0 0 16 16",
340
+ "aria-hidden": "true"
341
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
342
+ fill: "none",
343
+ stroke: "currentColor",
344
+ strokeLinecap: "round",
345
+ d: "M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5"
346
+ })), _circle$4 || (_circle$4 = /*#__PURE__*/React.createElement("circle", {
347
+ cx: 7.5,
348
+ cy: 12,
349
+ r: 1,
350
+ fill: "currentColor"
351
+ })));
352
+ };
369
353
 
370
- function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
354
+ var _g$1;
371
355
 
372
- var _ref$c = /*#__PURE__*/React.createElement("g", {
373
- fill: "none",
374
- stroke: "currentColor"
375
- }, /*#__PURE__*/React.createElement("path", {
376
- strokeLinecap: "round",
377
- strokeLinejoin: "round",
378
- d: "M4 9l2.5 2.5 5-5"
379
- }), /*#__PURE__*/React.createElement("circle", {
380
- cx: 7.5,
381
- cy: 8.5,
382
- r: 7
383
- }));
384
-
385
- function SvgCheckCircleStroke(props) {
386
- return /*#__PURE__*/React.createElement("svg", _extends$c({
356
+ function _extends$q() { _extends$q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
357
+
358
+ var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
359
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
387
360
  xmlns: "http://www.w3.org/2000/svg",
388
361
  width: 16,
389
362
  height: 16,
390
- viewBox: "0 0 16 16",
391
363
  focusable: "false",
392
- role: "presentation"
393
- }, props), _ref$c);
394
- }
364
+ viewBox: "0 0 16 16",
365
+ "aria-hidden": "true"
366
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
367
+ fill: "none",
368
+ stroke: "currentColor"
369
+ }, /*#__PURE__*/React.createElement("path", {
370
+ strokeLinecap: "round",
371
+ strokeLinejoin: "round",
372
+ d: "M4 9l2.5 2.5 5-5"
373
+ }), /*#__PURE__*/React.createElement("circle", {
374
+ cx: 7.5,
375
+ cy: 8.5,
376
+ r: 7
377
+ }))));
378
+ };
395
379
 
396
380
  var _excluded$i = ["children", "validation"];
397
381
  var MessageIcon = function MessageIcon(_ref) {
@@ -402,7 +386,7 @@ var MessageIcon = function MessageIcon(_ref) {
402
386
  if (validation === 'error') {
403
387
  retVal = React__default.createElement(SvgAlertErrorStroke, props);
404
388
  } else if (validation === 'success') {
405
- retVal = React__default.createElement(SvgCheckCircleStroke, props);
389
+ retVal = React__default.createElement(SvgCheckCircleStroke$1, props);
406
390
  } else if (validation === 'warning') {
407
391
  retVal = React__default.createElement(SvgAlertWarningStroke, props);
408
392
  } else {
@@ -410,10 +394,10 @@ var MessageIcon = function MessageIcon(_ref) {
410
394
  }
411
395
  return retVal;
412
396
  };
413
- var COMPONENT_ID$E = 'forms.input_message_icon';
397
+ var COMPONENT_ID$F = 'forms.input_message_icon';
414
398
  var StyledMessageIcon = styled(MessageIcon).attrs({
415
- 'data-garden-id': COMPONENT_ID$E,
416
- 'data-garden-version': '8.45.0'
399
+ 'data-garden-id': COMPONENT_ID$F,
400
+ 'data-garden-version': '8.47.2'
417
401
  }).withConfig({
418
402
  displayName: "StyledMessageIcon",
419
403
  componentId: "sc-1ph2gba-0"
@@ -422,7 +406,7 @@ var StyledMessageIcon = styled(MessageIcon).attrs({
422
406
  }, function (props) {
423
407
  return props.theme.iconSizes.md;
424
408
  }, function (props) {
425
- return retrieveComponentStyles(COMPONENT_ID$E, props);
409
+ return retrieveComponentStyles(COMPONENT_ID$F, props);
426
410
  });
427
411
  StyledMessageIcon.defaultProps = {
428
412
  theme: DEFAULT_THEME
@@ -443,10 +427,10 @@ var validationStyles = function validationStyles(props) {
443
427
  }
444
428
  return css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
445
429
  };
446
- var COMPONENT_ID$D = 'forms.input_message';
430
+ var COMPONENT_ID$E = 'forms.input_message';
447
431
  var StyledMessage = styled.div.attrs({
448
- 'data-garden-id': COMPONENT_ID$D,
449
- 'data-garden-version': '8.45.0'
432
+ 'data-garden-id': COMPONENT_ID$E,
433
+ 'data-garden-version': '8.47.2'
450
434
  }).withConfig({
451
435
  displayName: "StyledMessage",
452
436
  componentId: "sc-30hgg7-0"
@@ -463,13 +447,13 @@ var StyledMessage = styled.div.attrs({
463
447
  }, StyledLabel, function (props) {
464
448
  return math("".concat(props.theme.space.base, " * 1px"));
465
449
  }, function (props) {
466
- return retrieveComponentStyles(COMPONENT_ID$D, props);
450
+ return retrieveComponentStyles(COMPONENT_ID$E, props);
467
451
  });
468
452
  StyledMessage.defaultProps = {
469
453
  theme: DEFAULT_THEME
470
454
  };
471
455
 
472
- var COMPONENT_ID$C = 'forms.input';
456
+ var COMPONENT_ID$D = 'forms.input';
473
457
  var isInvalid = function isInvalid(validation) {
474
458
  return validation === 'warning' || validation === 'error';
475
459
  };
@@ -511,7 +495,7 @@ var colorStyles$b = function colorStyles(props) {
511
495
  }
512
496
  return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&::placeholder{color:", ";}&[readonly],&[aria-readonly='true']{border-color:", ";background-color:", ";}&:hover{border-color:", ";}&:focus,&[data-garden-focus-visible='true']{border-color:", ";box-shadow:", ";}&:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], controlledBorderColor, !props.isBare && props.isFocused && boxShadow, props.isBare ? 'transparent' : props.theme.colors.background, props.theme.colors.foreground, placeholderColor, readOnlyBorderColor, !props.isBare && readOnlyBackgroundColor, hoverBorderColor, focusBorderColor, !props.isBare && boxShadow, disabledBorderColor, !props.isBare && disabledBackgroundColor, disabledForegroundColor);
513
497
  };
514
- var sizeStyles$e = function sizeStyles(props) {
498
+ var sizeStyles$f = function sizeStyles(props) {
515
499
  var fontSize = props.theme.fontSizes.md;
516
500
  var paddingHorizontal = "".concat(props.theme.space.base * 3, "px");
517
501
  var height;
@@ -537,8 +521,8 @@ var sizeStyles$e = function sizeStyles(props) {
537
521
  };
538
522
  var StyledTextInput = styled.input.attrs(function (props) {
539
523
  return {
540
- 'data-garden-id': COMPONENT_ID$C,
541
- 'data-garden-version': '8.45.0',
524
+ 'data-garden-id': COMPONENT_ID$D,
525
+ 'data-garden-version': '8.47.2',
542
526
  'aria-invalid': isInvalid(props.validation)
543
527
  };
544
528
  }).withConfig({
@@ -559,22 +543,22 @@ var StyledTextInput = styled.input.attrs(function (props) {
559
543
  }, function (props) {
560
544
  return props.theme.rtl && 'rtl';
561
545
  }, function (props) {
562
- return sizeStyles$e(props);
546
+ return sizeStyles$f(props);
563
547
  }, function (props) {
564
548
  return colorStyles$b(props);
565
549
  }, function (props) {
566
- return retrieveComponentStyles(COMPONENT_ID$C, props);
550
+ return retrieveComponentStyles(COMPONENT_ID$D, props);
567
551
  });
568
552
  StyledTextInput.defaultProps = {
569
553
  theme: DEFAULT_THEME
570
554
  };
571
555
 
572
- var COMPONENT_ID$B = 'forms.textarea';
556
+ var COMPONENT_ID$C = 'forms.textarea';
573
557
  var hiddenStyles = "\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n height: 0;\n top: 0;\n left: 0;\n transform: translateZ(0);\n";
574
558
  var StyledTextarea = styled(StyledTextInput).attrs({
575
559
  as: 'textarea',
576
- 'data-garden-id': COMPONENT_ID$B,
577
- 'data-garden-version': '8.45.0'
560
+ 'data-garden-id': COMPONENT_ID$C,
561
+ 'data-garden-version': '8.47.2'
578
562
  }).withConfig({
579
563
  displayName: "StyledTextarea",
580
564
  componentId: "sc-wxschl-0"
@@ -583,14 +567,14 @@ var StyledTextarea = styled(StyledTextInput).attrs({
583
567
  }, function (props) {
584
568
  return props.isHidden && hiddenStyles;
585
569
  }, function (props) {
586
- return retrieveComponentStyles(COMPONENT_ID$B, props);
570
+ return retrieveComponentStyles(COMPONENT_ID$C, props);
587
571
  });
588
572
  StyledTextarea.defaultProps = {
589
573
  theme: DEFAULT_THEME
590
574
  };
591
575
 
592
576
  var _excluded$h = ["children", "position", "isHovered", "isFocused", "isDisabled", "isRotated", "theme"];
593
- var COMPONENT_ID$A = 'forms.media_figure';
577
+ var COMPONENT_ID$B = 'forms.media_figure';
594
578
  var colorStyles$a = function colorStyles(props) {
595
579
  var shade = 600;
596
580
  if (props.isDisabled) {
@@ -600,7 +584,7 @@ var colorStyles$a = function colorStyles(props) {
600
584
  }
601
585
  return css(["color:", ";"], getColor('neutralHue', shade, props.theme));
602
586
  };
603
- var sizeStyles$d = function sizeStyles(props) {
587
+ var sizeStyles$e = function sizeStyles(props) {
604
588
  var size = props.theme.iconSizes.md;
605
589
  var marginFirst = "1px ".concat(props.theme.space.base * 2, "px auto 0");
606
590
  var marginLast = "1px 0 auto ".concat(props.theme.space.base * 2, "px");
@@ -624,8 +608,8 @@ function (_ref) {
624
608
  var props = _objectWithoutProperties(_ref, _excluded$h);
625
609
  return React__default.cloneElement(Children.only(children), props);
626
610
  }).attrs({
627
- 'data-garden-id': COMPONENT_ID$A,
628
- 'data-garden-version': '8.45.0'
611
+ 'data-garden-id': COMPONENT_ID$B,
612
+ 'data-garden-version': '8.47.2'
629
613
  }).withConfig({
630
614
  displayName: "StyledTextMediaFigure",
631
615
  componentId: "sc-1qepknj-0"
@@ -634,22 +618,22 @@ function (_ref) {
634
618
  }, function (props) {
635
619
  return colorStyles$a(props);
636
620
  }, function (props) {
637
- return sizeStyles$d(props);
621
+ return sizeStyles$e(props);
638
622
  }, function (props) {
639
- return retrieveComponentStyles(COMPONENT_ID$A, props);
623
+ return retrieveComponentStyles(COMPONENT_ID$B, props);
640
624
  });
641
625
  StyledTextMediaFigure.defaultProps = {
642
626
  theme: DEFAULT_THEME
643
627
  };
644
628
 
645
- var COMPONENT_ID$z = 'forms.faux_input';
629
+ var COMPONENT_ID$A = 'forms.faux_input';
646
630
  var StyledTextFauxInput = styled(StyledTextInput).attrs(function (props) {
647
631
  return {
648
632
  as: 'div',
649
633
  'aria-readonly': props.isReadOnly,
650
634
  'aria-disabled': props.isDisabled,
651
- 'data-garden-id': COMPONENT_ID$z,
652
- 'data-garden-version': '8.45.0'
635
+ 'data-garden-id': COMPONENT_ID$A,
636
+ 'data-garden-version': '8.47.2'
653
637
  };
654
638
  }).withConfig({
655
639
  displayName: "StyledTextFauxInput",
@@ -665,29 +649,29 @@ var StyledTextFauxInput = styled(StyledTextInput).attrs(function (props) {
665
649
  }, StyledTextMediaFigure, function (props) {
666
650
  return props.mediaLayout && '0';
667
651
  }, function (props) {
668
- return retrieveComponentStyles(COMPONENT_ID$z, props);
652
+ return retrieveComponentStyles(COMPONENT_ID$A, props);
669
653
  });
670
654
  StyledTextFauxInput.defaultProps = {
671
655
  theme: DEFAULT_THEME
672
656
  };
673
657
 
674
- var COMPONENT_ID$y = 'forms.media_input';
658
+ var COMPONENT_ID$z = 'forms.media_input';
675
659
  var StyledTextMediaInput = styled(StyledTextInput).attrs({
676
- 'data-garden-id': COMPONENT_ID$y,
677
- 'data-garden-version': '8.45.0',
660
+ 'data-garden-id': COMPONENT_ID$z,
661
+ 'data-garden-version': '8.47.2',
678
662
  isBare: true
679
663
  }).withConfig({
680
664
  displayName: "StyledTextMediaInput",
681
665
  componentId: "sc-12i9xfi-0"
682
666
  })(["flex-grow:1;", ";"], function (props) {
683
- return retrieveComponentStyles(COMPONENT_ID$y, props);
667
+ return retrieveComponentStyles(COMPONENT_ID$z, props);
684
668
  });
685
669
  StyledTextMediaInput.defaultProps = {
686
670
  theme: DEFAULT_THEME
687
671
  };
688
672
 
689
- var COMPONENT_ID$x = 'forms.input_group';
690
- var positionStyles$1 = function positionStyles(props) {
673
+ var COMPONENT_ID$y = 'forms.input_group';
674
+ var positionStyles = function positionStyles(props) {
691
675
  var topMargin = "".concat(props.theme.space.base * (props.isCompact ? 1 : 2), "px");
692
676
  var startDirection = props.theme.rtl ? 'right' : 'left';
693
677
  var endDirection = props.theme.rtl ? 'left' : 'right';
@@ -698,63 +682,63 @@ var itemStyles = function itemStyles(props) {
698
682
  return css(["& > *{margin-", ":-", " !important;z-index:-1;}& > ", ":hover,& > button:hover,& > ", "[data-garden-focus-visible],& > button[data-garden-focus-visible],& > ", ":active,& > button:active{z-index:1;}& > button:disabled{border-top-width:0;border-bottom-width:0;}& > ", ":disabled{z-index:-2;}& > *:first-child:not(:last-child){margin-", ":0;border-top-", "-radius:0;border-bottom-", "-radius:0;}& > *:last-child:not(:first-child){border-top-", "-radius:0;border-bottom-", "-radius:0;}& > *:not(:first-child):not(:last-child){border-radius:0;}"], horizontal, props.theme.borderWidths.sm, StyledTextInput, StyledTextInput, StyledTextInput, StyledTextInput, props.theme.rtl ? 'right' : 'left', props.theme.rtl ? 'left' : 'right', props.theme.rtl ? 'left' : 'right', props.theme.rtl ? 'right' : 'left', props.theme.rtl ? 'right' : 'left');
699
683
  };
700
684
  var StyledInputGroup = styled.div.attrs({
701
- 'data-garden-id': COMPONENT_ID$x,
702
- 'data-garden-version': '8.45.0'
685
+ 'data-garden-id': COMPONENT_ID$y,
686
+ 'data-garden-version': '8.47.2'
703
687
  }).withConfig({
704
688
  displayName: "StyledInputGroup",
705
689
  componentId: "sc-kjh1f0-0"
706
690
  })(["display:inline-flex;position:relative;flex-wrap:nowrap;align-items:stretch;z-index:0;width:100%;", ";", ";", ";"], function (props) {
707
- return positionStyles$1(props);
691
+ return positionStyles(props);
708
692
  }, function (props) {
709
693
  return itemStyles(props);
710
694
  }, function (props) {
711
- return retrieveComponentStyles(COMPONENT_ID$x, props);
695
+ return retrieveComponentStyles(COMPONENT_ID$y, props);
712
696
  });
713
697
  StyledInputGroup.defaultProps = {
714
698
  theme: DEFAULT_THEME
715
699
  };
716
700
 
717
- var COMPONENT_ID$w = 'forms.radio_label';
718
- var sizeStyles$c = function sizeStyles(props) {
701
+ var COMPONENT_ID$x = 'forms.radio_label';
702
+ var sizeStyles$d = function sizeStyles(props) {
719
703
  var size = props.theme.space.base * 4;
720
704
  var padding = size + props.theme.space.base * 2;
721
705
  var lineHeight = props.theme.space.base * 5;
722
706
  return css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;line-height:", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size, lineHeight);
723
707
  };
724
708
  var StyledRadioLabel = styled(StyledLabel).attrs({
725
- 'data-garden-id': COMPONENT_ID$w,
726
- 'data-garden-version': '8.45.0',
709
+ 'data-garden-id': COMPONENT_ID$x,
710
+ 'data-garden-version': '8.47.2',
727
711
  isRadio: true
728
712
  }).withConfig({
729
713
  displayName: "StyledRadioLabel",
730
714
  componentId: "sc-1aq2e5t-0"
731
715
  })(["display:inline-block;position:relative;cursor:pointer;user-select:none;", ";", ";"], function (props) {
732
- return sizeStyles$c(props);
716
+ return sizeStyles$d(props);
733
717
  }, function (props) {
734
- return retrieveComponentStyles(COMPONENT_ID$w, props);
718
+ return retrieveComponentStyles(COMPONENT_ID$x, props);
735
719
  });
736
720
  StyledRadioLabel.defaultProps = {
737
721
  theme: DEFAULT_THEME
738
722
  };
739
723
 
740
- var COMPONENT_ID$v = 'forms.checkbox_label';
724
+ var COMPONENT_ID$w = 'forms.checkbox_label';
741
725
  var StyledCheckLabel = styled(StyledRadioLabel).attrs({
742
- 'data-garden-id': COMPONENT_ID$v,
743
- 'data-garden-version': '8.45.0'
726
+ 'data-garden-id': COMPONENT_ID$w,
727
+ 'data-garden-version': '8.47.2'
744
728
  }).withConfig({
745
729
  displayName: "StyledCheckLabel",
746
730
  componentId: "sc-x7nr1-0"
747
731
  })(["", ";"], function (props) {
748
- return retrieveComponentStyles(COMPONENT_ID$v, props);
732
+ return retrieveComponentStyles(COMPONENT_ID$w, props);
749
733
  });
750
734
  StyledCheckLabel.defaultProps = {
751
735
  theme: DEFAULT_THEME
752
736
  };
753
737
 
754
- var COMPONENT_ID$u = 'forms.radio_hint';
738
+ var COMPONENT_ID$v = 'forms.radio_hint';
755
739
  var StyledRadioHint = styled(StyledHint).attrs({
756
- 'data-garden-id': COMPONENT_ID$u,
757
- 'data-garden-version': '8.45.0'
740
+ 'data-garden-id': COMPONENT_ID$v,
741
+ 'data-garden-version': '8.47.2'
758
742
  }).withConfig({
759
743
  displayName: "StyledRadioHint",
760
744
  componentId: "sc-eo8twg-0"
@@ -763,27 +747,27 @@ var StyledRadioHint = styled(StyledHint).attrs({
763
747
  }, function (props) {
764
748
  return math("".concat(props.theme.space.base, " * 6px"));
765
749
  }, function (props) {
766
- return retrieveComponentStyles(COMPONENT_ID$u, props);
750
+ return retrieveComponentStyles(COMPONENT_ID$v, props);
767
751
  });
768
752
  StyledRadioHint.defaultProps = {
769
753
  theme: DEFAULT_THEME
770
754
  };
771
755
 
772
- var COMPONENT_ID$t = 'forms.checkbox_hint';
756
+ var COMPONENT_ID$u = 'forms.checkbox_hint';
773
757
  var StyledCheckHint = styled(StyledRadioHint).attrs({
774
- 'data-garden-id': COMPONENT_ID$t,
775
- 'data-garden-version': '8.45.0'
758
+ 'data-garden-id': COMPONENT_ID$u,
759
+ 'data-garden-version': '8.47.2'
776
760
  }).withConfig({
777
761
  displayName: "StyledCheckHint",
778
762
  componentId: "sc-1kl8e8c-0"
779
763
  })(["", ";"], function (props) {
780
- return retrieveComponentStyles(COMPONENT_ID$t, props);
764
+ return retrieveComponentStyles(COMPONENT_ID$u, props);
781
765
  });
782
766
  StyledCheckHint.defaultProps = {
783
767
  theme: DEFAULT_THEME
784
768
  };
785
769
 
786
- var COMPONENT_ID$s = 'forms.radio';
770
+ var COMPONENT_ID$t = 'forms.radio';
787
771
  var colorStyles$9 = function colorStyles(props) {
788
772
  var SHADE = 600;
789
773
  var borderColor = getColor('neutralHue', SHADE - 300, props.theme);
@@ -804,7 +788,7 @@ var colorStyles$9 = function colorStyles(props) {
804
788
  var disabledBackgroundColor = getColor('neutralHue', SHADE - 400, props.theme);
805
789
  return css(["& ~ ", "::before{border-color:", ";background-color:", ";}& ~ ", " > svg{color:", ";}& ~ ", ":hover::before{border-color:", ";background-color:", ";}&[data-garden-focus-visible='true'] ~ ", "::before{border-color:", ";box-shadow:", ";}& ~ ", ":active::before{border-color:", ";background-color:", ";}&:checked ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:checked ~ ", ":hover::before{border-color:", ";background-color:", ";}&:enabled:checked ~ ", ":active::before{border-color:", ";background-color:", ";}&:disabled ~ ", "::before{border-color:transparent;background-color:", ";}"], StyledRadioLabel, borderColor, backgroundColor, StyledRadioLabel, iconColor, StyledRadioLabel, hoverBorderColor, hoverBackgroundColor, StyledRadioLabel, focusBorderColor, boxShadow, StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
806
790
  };
807
- var sizeStyles$b = function sizeStyles(props) {
791
+ var sizeStyles$c = function sizeStyles(props) {
808
792
  var lineHeight = "".concat(props.theme.space.base * 5, "px");
809
793
  var size = "".concat(props.theme.space.base * 4, "px");
810
794
  var top = math("(".concat(lineHeight, " - ").concat(size, ") / 2"));
@@ -815,8 +799,8 @@ var sizeStyles$b = function sizeStyles(props) {
815
799
  return css(["& ~ ", "::before{top:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&& ~ ", " ~ ", "{margin-top:", ";}"], StyledRadioLabel, top, props.theme.iconSizes.sm, size, size, StyledRadioLabel, iconTop, props.theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledRadioLabel, StyledMessage, marginTop);
816
800
  };
817
801
  var StyledRadioInput = styled.input.attrs({
818
- 'data-garden-id': COMPONENT_ID$s,
819
- 'data-garden-version': '8.45.0',
802
+ 'data-garden-id': COMPONENT_ID$t,
803
+ 'data-garden-version': '8.47.2',
820
804
  type: 'radio'
821
805
  }).withConfig({
822
806
  displayName: "StyledRadioInput",
@@ -826,17 +810,17 @@ var StyledRadioInput = styled.input.attrs({
826
810
  }, function (props) {
827
811
  return props.theme.borders.sm;
828
812
  }, StyledRadioLabel, function (props) {
829
- return sizeStyles$b(props);
813
+ return sizeStyles$c(props);
830
814
  }, StyledRadioLabel, StyledRadioLabel, function (props) {
831
815
  return colorStyles$9(props);
832
816
  }, StyledRadioLabel, function (props) {
833
- return retrieveComponentStyles(COMPONENT_ID$s, props);
817
+ return retrieveComponentStyles(COMPONENT_ID$t, props);
834
818
  });
835
819
  StyledRadioInput.defaultProps = {
836
820
  theme: DEFAULT_THEME
837
821
  };
838
822
 
839
- var COMPONENT_ID$r = 'forms.checkbox';
823
+ var COMPONENT_ID$s = 'forms.checkbox';
840
824
  var colorStyles$8 = function colorStyles(props) {
841
825
  var SHADE = 600;
842
826
  var indeterminateBorderColor = getColor('primaryHue', SHADE, props.theme);
@@ -847,8 +831,8 @@ var colorStyles$8 = function colorStyles(props) {
847
831
  return css(["&:indeterminate ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:indeterminate ~ ", ":active::before{border-color:", ";background-color:", ";}&:disabled:indeterminate ~ ", "::before{border-color:transparent;background-color:", ";}"], StyledCheckLabel, indeterminateBorderColor, indeterminateBackgroundColor, StyledCheckLabel, indeterminateActiveBorderColor, indeterminateActiveBackgroundColor, StyledCheckLabel, indeterminateDisabledBackgroundColor);
848
832
  };
849
833
  var StyledCheckInput = styled(StyledRadioInput).attrs({
850
- 'data-garden-id': COMPONENT_ID$r,
851
- 'data-garden-version': '8.45.0',
834
+ 'data-garden-id': COMPONENT_ID$s,
835
+ 'data-garden-version': '8.47.2',
852
836
  type: 'checkbox'
853
837
  }).withConfig({
854
838
  displayName: "StyledCheckInput",
@@ -858,16 +842,16 @@ var StyledCheckInput = styled(StyledRadioInput).attrs({
858
842
  }, function (props) {
859
843
  return colorStyles$8(props);
860
844
  }, function (props) {
861
- return retrieveComponentStyles(COMPONENT_ID$r, props);
845
+ return retrieveComponentStyles(COMPONENT_ID$s, props);
862
846
  });
863
847
  StyledCheckInput.defaultProps = {
864
848
  theme: DEFAULT_THEME
865
849
  };
866
850
 
867
- var COMPONENT_ID$q = 'forms.radio_message';
851
+ var COMPONENT_ID$r = 'forms.radio_message';
868
852
  var StyledRadioMessage = styled(StyledMessage).attrs({
869
- 'data-garden-id': COMPONENT_ID$q,
870
- 'data-garden-version': '8.45.0'
853
+ 'data-garden-id': COMPONENT_ID$r,
854
+ 'data-garden-version': '8.47.2'
871
855
  }).withConfig({
872
856
  displayName: "StyledRadioMessage",
873
857
  componentId: "sc-1pmi0q8-0"
@@ -876,101 +860,97 @@ var StyledRadioMessage = styled(StyledMessage).attrs({
876
860
  }, function (props) {
877
861
  return math("".concat(props.theme.space.base, " * 6px"));
878
862
  }, function (props) {
879
- return retrieveComponentStyles(COMPONENT_ID$q, props);
863
+ return retrieveComponentStyles(COMPONENT_ID$r, props);
880
864
  });
881
865
  StyledRadioMessage.defaultProps = {
882
866
  theme: DEFAULT_THEME
883
867
  };
884
868
 
885
- var COMPONENT_ID$p = 'forms.checkbox_message';
869
+ var COMPONENT_ID$q = 'forms.checkbox_message';
886
870
  var StyledCheckMessage = styled(StyledRadioMessage).attrs({
887
- 'data-garden-id': COMPONENT_ID$p,
888
- 'data-garden-version': '8.45.0'
871
+ 'data-garden-id': COMPONENT_ID$q,
872
+ 'data-garden-version': '8.47.2'
889
873
  }).withConfig({
890
874
  displayName: "StyledCheckMessage",
891
875
  componentId: "sc-s4p6kd-0"
892
876
  })(["", ";"], function (props) {
893
- return retrieveComponentStyles(COMPONENT_ID$p, props);
877
+ return retrieveComponentStyles(COMPONENT_ID$q, props);
894
878
  });
895
879
  StyledCheckMessage.defaultProps = {
896
880
  theme: DEFAULT_THEME
897
881
  };
898
882
 
899
- function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
883
+ var _path$m;
900
884
 
901
- var _ref$b = /*#__PURE__*/React.createElement("path", {
902
- fill: "none",
903
- stroke: "currentColor",
904
- strokeLinecap: "round",
905
- strokeLinejoin: "round",
906
- strokeWidth: 2,
907
- d: "M3 6l2 2 4-4"
908
- });
885
+ function _extends$p() { _extends$p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
909
886
 
910
- function SvgCheckSmFill(props) {
911
- return /*#__PURE__*/React.createElement("svg", _extends$b({
887
+ var SvgCheckSmFill = function SvgCheckSmFill(props) {
888
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
912
889
  xmlns: "http://www.w3.org/2000/svg",
913
890
  width: 12,
914
891
  height: 12,
915
- viewBox: "0 0 12 12",
916
892
  focusable: "false",
917
- role: "presentation"
918
- }, props), _ref$b);
919
- }
893
+ viewBox: "0 0 12 12",
894
+ "aria-hidden": "true"
895
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
896
+ fill: "none",
897
+ stroke: "currentColor",
898
+ strokeLinecap: "round",
899
+ strokeLinejoin: "round",
900
+ strokeWidth: 2,
901
+ d: "M3 6l2 2 4-4"
902
+ })));
903
+ };
920
904
 
921
- var COMPONENT_ID$o = 'forms.check_svg';
905
+ var COMPONENT_ID$p = 'forms.check_svg';
922
906
  var StyledCheckSvg = styled(SvgCheckSmFill).attrs({
923
- 'data-garden-id': COMPONENT_ID$o,
924
- 'data-garden-version': '8.45.0'
907
+ 'data-garden-id': COMPONENT_ID$p,
908
+ 'data-garden-version': '8.47.2'
925
909
  }).withConfig({
926
910
  displayName: "StyledCheckSvg",
927
911
  componentId: "sc-fvxetk-0"
928
912
  })(["transition:opacity 0.25 ease-in-out;opacity:0;pointer-events:none;", ":checked ~ ", " > &{opacity:1;}", ":indeterminate ~ ", " > &{opacity:0;}", ";"], StyledCheckInput, StyledCheckLabel, StyledCheckInput, StyledCheckLabel, function (props) {
929
- return retrieveComponentStyles(COMPONENT_ID$o, props);
913
+ return retrieveComponentStyles(COMPONENT_ID$p, props);
930
914
  });
931
915
  StyledCheckSvg.defaultProps = {
932
916
  theme: DEFAULT_THEME
933
917
  };
934
918
 
935
- function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
919
+ var _path$l;
936
920
 
937
- var _ref$a = /*#__PURE__*/React.createElement("path", {
938
- stroke: "currentColor",
939
- strokeLinecap: "round",
940
- strokeWidth: 2,
941
- d: "M3 6h6"
942
- });
921
+ function _extends$o() { _extends$o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
943
922
 
944
- function SvgDashFill(props) {
945
- return /*#__PURE__*/React.createElement("svg", _extends$a({
923
+ var SvgDashFill = function SvgDashFill(props) {
924
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
946
925
  xmlns: "http://www.w3.org/2000/svg",
947
926
  width: 12,
948
927
  height: 12,
949
- viewBox: "0 0 12 12",
950
928
  focusable: "false",
951
- role: "presentation"
952
- }, props), _ref$a);
953
- }
929
+ viewBox: "0 0 12 12",
930
+ "aria-hidden": "true"
931
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
932
+ stroke: "currentColor",
933
+ strokeLinecap: "round",
934
+ strokeWidth: 2,
935
+ d: "M3 6h6"
936
+ })));
937
+ };
954
938
 
955
- var COMPONENT_ID$n = 'forms.dash_svg';
939
+ var COMPONENT_ID$o = 'forms.dash_svg';
956
940
  var StyledDashSvg = styled(SvgDashFill).attrs({
957
- 'data-garden-id': COMPONENT_ID$n,
958
- 'data-garden-version': '8.45.0'
941
+ 'data-garden-id': COMPONENT_ID$o,
942
+ 'data-garden-version': '8.47.2'
959
943
  }).withConfig({
960
944
  displayName: "StyledDashSvg",
961
945
  componentId: "sc-z3vq71-0"
962
946
  })(["transition:opacity 0.25 ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, function (props) {
963
- return retrieveComponentStyles(COMPONENT_ID$n, props);
947
+ return retrieveComponentStyles(COMPONENT_ID$o, props);
964
948
  });
965
949
  StyledDashSvg.defaultProps = {
966
950
  theme: DEFAULT_THEME
967
951
  };
968
952
 
969
- var COMPONENT_ID$m = 'forms.file_upload';
970
- var positionStyles = function positionStyles(props) {
971
- var topMargin = "".concat(props.theme.space.base * (props.isCompact ? 1 : 2), "px");
972
- return css(["", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, topMargin);
973
- };
953
+ var COMPONENT_ID$n = 'forms.file_upload';
974
954
  var colorStyles$7 = function colorStyles(props) {
975
955
  var baseColor = getColor('primaryHue', 600, props.theme);
976
956
  var hoverColor = getColor('primaryHue', 700, props.theme);
@@ -980,93 +960,124 @@ var colorStyles$7 = function colorStyles(props) {
980
960
  var boxShadow = "inset ".concat(props.theme.shadows.md(rgba(baseColor, 0.35)));
981
961
  return css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";color:", ";}&[data-garden-focus-visible]{box-shadow:", ";}&:active{border-color:", ";background-color:", ";color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isDragging ? activeColor : getColor('neutralHue', 600, props.theme), props.isDragging && rgba(baseColor, 0.2), props.isDragging ? activeColor : baseColor, hoverColor, rgba(baseColor, 0.08), hoverColor, boxShadow, activeColor, rgba(baseColor, 0.2), activeColor, disabledForegroundColor, disabledBackgroundColor, disabledForegroundColor);
982
962
  };
963
+ var sizeStyles$b = function sizeStyles(props) {
964
+ var marginTop = "".concat(props.theme.space.base * (props.isCompact ? 1 : 2), "px");
965
+ var paddingHorizontal = "".concat(props.isCompact ? 2 : 4, "em");
966
+ var paddingVertical = math("".concat(props.theme.space.base * (props.isCompact ? 2.5 : 5), " - ").concat(props.theme.borderWidths.sm));
967
+ var fontSize = props.theme.fontSizes.md;
968
+ var lineHeight = getLineHeight(props.theme.space.base * 5, fontSize);
969
+ return css(["padding:", " ", ";min-width:4em;line-height:", ";font-size:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], paddingVertical, paddingHorizontal, lineHeight, fontSize, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
970
+ };
983
971
  var StyledFileUpload = styled.div.attrs({
984
- 'data-garden-id': COMPONENT_ID$m,
985
- 'data-garden-version': '8.45.0'
972
+ 'data-garden-id': COMPONENT_ID$n,
973
+ 'data-garden-version': '8.47.2'
986
974
  }).withConfig({
987
975
  displayName: "StyledFileUpload",
988
976
  componentId: "sc-1rodjgn-0"
989
- })(["box-sizing:content-box;direction:", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:dashed ", ";border-radius:", ";cursor:pointer;padding:", ";min-width:4em;text-align:center;line-height:", ";font-size:", ";user-select:none;&:focus{outline:none;}&[aria-disabled='true']{cursor:default;}", ";", ";", ";"], function (props) {
977
+ })(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;direction:", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:dashed ", ";border-radius:", ";cursor:pointer;text-align:center;user-select:none;", ";&:focus{outline:none;}&[aria-disabled='true']{cursor:default;}", ";", ";"], function (props) {
990
978
  return props.theme.rtl ? 'rtl' : 'ltr';
991
979
  }, function (props) {
992
980
  return props.theme.borderWidths.sm;
993
981
  }, function (props) {
994
982
  return props.theme.borderRadii.md;
995
- }, function (props) {
996
- return "".concat(props.theme.space.base * 5, "px ").concat(props.theme.space.base * 15, "px");
997
- }, function (props) {
998
- return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
999
- }, function (props) {
1000
- return props.theme.fontSizes.md;
1001
- }, function (props) {
1002
- return colorStyles$7(props);
1003
- }, function (props) {
1004
- return positionStyles(props);
1005
- }, function (props) {
1006
- return retrieveComponentStyles(COMPONENT_ID$m, props);
983
+ }, sizeStyles$b, colorStyles$7, function (props) {
984
+ return retrieveComponentStyles(COMPONENT_ID$n, props);
1007
985
  });
1008
986
  StyledFileUpload.defaultProps = {
1009
987
  theme: DEFAULT_THEME
1010
988
  };
1011
989
 
1012
- var COMPONENT_ID$l = 'forms.file.close';
990
+ var COMPONENT_ID$m = 'forms.file.close';
1013
991
  var StyledFileClose = styled.div.attrs({
1014
- 'data-garden-id': COMPONENT_ID$l,
1015
- 'data-garden-version': '8.45.0'
992
+ 'data-garden-id': COMPONENT_ID$m,
993
+ 'data-garden-version': '8.47.2'
1016
994
  }).withConfig({
1017
995
  displayName: "StyledFileClose",
1018
996
  componentId: "sc-1m31jbf-0"
1019
- })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;cursor:pointer;&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], function (props) {
1020
- return retrieveComponentStyles(COMPONENT_ID$l, props);
997
+ })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;cursor:pointer;color:", ";&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], function (props) {
998
+ return props.theme.colors.foreground;
999
+ }, function (props) {
1000
+ return retrieveComponentStyles(COMPONENT_ID$m, props);
1021
1001
  });
1022
1002
  StyledFileClose.defaultProps = {
1023
1003
  theme: DEFAULT_THEME
1024
1004
  };
1025
1005
 
1026
- var COMPONENT_ID$k = 'forms.file';
1006
+ var COMPONENT_ID$l = 'forms.file';
1027
1007
  var colorStyles$6 = function colorStyles(props) {
1028
- var borderColor = getColor('neutralHue', 300, props.theme);
1029
- var focusBorderColor = getColor('primaryHue', 600, props.theme);
1030
- var foregroundColor = getColor('neutralHue', 800, props.theme);
1008
+ var borderColor;
1009
+ var focusBorderColor;
1010
+ var foregroundColor;
1011
+ if (props.validation === 'success') {
1012
+ borderColor = getColor('successHue', 600, props.theme);
1013
+ focusBorderColor = borderColor;
1014
+ foregroundColor = borderColor;
1015
+ } else if (props.validation === 'error') {
1016
+ borderColor = getColor('dangerHue', 600, props.theme);
1017
+ focusBorderColor = borderColor;
1018
+ foregroundColor = borderColor;
1019
+ } else {
1020
+ borderColor = getColor('neutralHue', 300, props.theme);
1021
+ focusBorderColor = getColor('primaryHue', 600, props.theme);
1022
+ foregroundColor = props.theme.colors.foreground;
1023
+ }
1031
1024
  var boxShadow = "\n ".concat(props.focusInset ? 'inset' : '', "\n ").concat(props.theme.shadows.md(rgba(focusBorderColor, 0.35)));
1032
1025
  return "\n border-color: ".concat(borderColor, ";\n color: ").concat(foregroundColor, ";\n\n &:focus {\n box-shadow: ").concat(boxShadow, ";\n border-color: ").concat(focusBorderColor, ";\n }\n ");
1033
1026
  };
1034
1027
  var sizeStyles$a = function sizeStyles(props) {
1035
1028
  var size = "".concat(props.theme.space.base * (props.isCompact ? 7 : 10), "px");
1036
- var spacing = "".concat(props.theme.space.base * 3, "px");
1029
+ var spacing = "".concat(props.theme.space.base * (props.isCompact ? 2 : 3), "px");
1037
1030
  var fontSize = props.theme.fontSizes.md;
1038
1031
  var lineHeight = getLineHeight(props.theme.space.base * 5, fontSize);
1039
1032
  return "\n box-sizing: border-box;\n border: ".concat(props.theme.borders.sm, ";\n border-radius: ").concat(props.theme.borderRadii.md, ";\n padding: 0 ").concat(spacing, ";\n height: ").concat(size, ";\n line-height: ").concat(lineHeight, ";\n font-size: ").concat(fontSize, ";\n\n & > span {\n width: 100%;\n }\n\n & > ").concat(StyledFileClose, " {\n width: ").concat(size, ";\n height: ").concat(size, ";\n margin-").concat(props.theme.rtl ? 'left' : 'right', ": -").concat(spacing, ";\n }\n ");
1040
1033
  };
1041
1034
  var StyledFile = styled.div.attrs({
1042
- 'data-garden-id': COMPONENT_ID$k,
1043
- 'data-garden-version': '8.45.0'
1035
+ 'data-garden-id': COMPONENT_ID$l,
1036
+ 'data-garden-version': '8.47.2'
1044
1037
  }).withConfig({
1045
1038
  displayName: "StyledFile",
1046
1039
  componentId: "sc-195lzp1-0"
1047
1040
  })(["display:flex;position:relative;flex-wrap:nowrap;align-items:center;", ";&:focus{outline:none;}", ";& > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& > [role='progressbar']{position:absolute;bottom:0;left:0;transition:opacity 0.2s ease-in-out;margin:0;border-top-left-radius:0;border-top-right-radius:0;width:100%;& > div{border-top-", "-radius:0;}}& > [role='progressbar'][aria-valuenow='0'],& > [role='progressbar'][aria-valuenow='100']{opacity:0;}", ";"], sizeStyles$a, colorStyles$6, function (props) {
1048
1041
  return props.theme.rtl ? 'right' : 'left';
1049
1042
  }, function (props) {
1050
- return retrieveComponentStyles(COMPONENT_ID$k, props);
1043
+ return retrieveComponentStyles(COMPONENT_ID$l, props);
1051
1044
  });
1052
1045
  StyledFile.defaultProps = {
1053
1046
  theme: DEFAULT_THEME
1054
1047
  };
1055
1048
 
1056
- var _excluded$g = ["children"];
1049
+ var COMPONENT_ID$k = 'forms.file.delete';
1050
+ var StyledFileDelete = styled(StyledFileClose).attrs({
1051
+ 'data-garden-id': COMPONENT_ID$k,
1052
+ 'data-garden-version': '8.47.2'
1053
+ }).withConfig({
1054
+ displayName: "StyledFileDelete",
1055
+ componentId: "sc-a8nnhx-0"
1056
+ })(["color:", ";", ";"], function (props) {
1057
+ return getColor('dangerHue', 600, props.theme);
1058
+ }, function (props) {
1059
+ return retrieveComponentStyles(COMPONENT_ID$k, props);
1060
+ });
1061
+ StyledFileDelete.defaultProps = {
1062
+ theme: DEFAULT_THEME
1063
+ };
1064
+
1065
+ var _excluded$g = ["children", "isCompact", "theme"];
1057
1066
  var COMPONENT_ID$j = 'forms.file.icon';
1058
1067
  var StyledFileIcon = styled(function (_ref) {
1059
- var children = _ref.children,
1060
- props = _objectWithoutProperties(_ref, _excluded$g);
1068
+ var children = _ref.children;
1069
+ _ref.isCompact;
1070
+ _ref.theme;
1071
+ var props = _objectWithoutProperties(_ref, _excluded$g);
1061
1072
  return React__default.cloneElement(Children.only(children), props);
1062
1073
  }).attrs({
1063
1074
  'data-garden-id': COMPONENT_ID$j,
1064
- 'data-garden-version': '8.45.0'
1075
+ 'data-garden-version': '8.47.2'
1065
1076
  }).withConfig({
1066
1077
  displayName: "StyledFileIcon",
1067
1078
  componentId: "sc-7b3q0c-0"
1068
1079
  })(["flex-shrink:0;width:", ";margin-", ":", "px;", ";"], function (props) {
1069
- return props.theme.iconSizes.md;
1080
+ return props.isCompact ? props.theme.iconSizes.sm : props.theme.iconSizes.md;
1070
1081
  }, function (props) {
1071
1082
  return props.theme.rtl ? 'left' : 'right';
1072
1083
  }, function (props) {
@@ -1081,7 +1092,7 @@ StyledFileIcon.defaultProps = {
1081
1092
  var COMPONENT_ID$i = 'forms.file_list';
1082
1093
  var StyledFileList = styled.ul.attrs({
1083
1094
  'data-garden-id': COMPONENT_ID$i,
1084
- 'data-garden-version': '8.45.0'
1095
+ 'data-garden-version': '8.47.2'
1085
1096
  }).withConfig({
1086
1097
  displayName: "StyledFileList",
1087
1098
  componentId: "sc-gbahjg-0"
@@ -1095,11 +1106,11 @@ StyledFileList.defaultProps = {
1095
1106
  var COMPONENT_ID$h = 'forms.file_list.item';
1096
1107
  var StyledFileListItem = styled.li.attrs({
1097
1108
  'data-garden-id': COMPONENT_ID$h,
1098
- 'data-garden-version': '8.45.0'
1109
+ 'data-garden-version': '8.47.2'
1099
1110
  }).withConfig({
1100
1111
  displayName: "StyledFileListItem",
1101
1112
  componentId: "sc-1ova3lo-0"
1102
- })(["&:not(:first-child){margin-top:", "px;}", ";"], function (props) {
1113
+ })(["&:not(:first-child),", " ~ ", " > &:first-child{margin-top:", "px;}", ";"], StyledFileUpload, StyledFileList, function (props) {
1103
1114
  return props.theme.space.base * 2;
1104
1115
  }, function (props) {
1105
1116
  return retrieveComponentStyles(COMPONENT_ID$h, props);
@@ -1108,30 +1119,30 @@ StyledFileListItem.defaultProps = {
1108
1119
  theme: DEFAULT_THEME
1109
1120
  };
1110
1121
 
1111
- function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
1122
+ var _circle$3;
1112
1123
 
1113
- var _ref$9 = /*#__PURE__*/React.createElement("circle", {
1114
- cx: 6,
1115
- cy: 6,
1116
- r: 2,
1117
- fill: "currentColor"
1118
- });
1124
+ function _extends$n() { _extends$n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
1119
1125
 
1120
- function SvgCircleSmFill$1(props) {
1121
- return /*#__PURE__*/React.createElement("svg", _extends$9({
1126
+ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
1127
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
1122
1128
  xmlns: "http://www.w3.org/2000/svg",
1123
1129
  width: 12,
1124
1130
  height: 12,
1125
- viewBox: "0 0 12 12",
1126
1131
  focusable: "false",
1127
- role: "presentation"
1128
- }, props), _ref$9);
1129
- }
1132
+ viewBox: "0 0 12 12",
1133
+ "aria-hidden": "true"
1134
+ }, props), _circle$3 || (_circle$3 = /*#__PURE__*/React.createElement("circle", {
1135
+ cx: 6,
1136
+ cy: 6,
1137
+ r: 2,
1138
+ fill: "currentColor"
1139
+ })));
1140
+ };
1130
1141
 
1131
1142
  var COMPONENT_ID$g = 'forms.radio_svg';
1132
1143
  var StyledRadioSvg = styled(SvgCircleSmFill$1).attrs({
1133
1144
  'data-garden-id': COMPONENT_ID$g,
1134
- 'data-garden-version': '8.45.0'
1145
+ 'data-garden-version': '8.47.2'
1135
1146
  }).withConfig({
1136
1147
  displayName: "StyledRadioSvg",
1137
1148
  componentId: "sc-1r1qtr1-0"
@@ -1150,7 +1161,7 @@ var sizeStyles$9 = function sizeStyles(props) {
1150
1161
  };
1151
1162
  var StyledToggleLabel = styled(StyledCheckLabel).attrs({
1152
1163
  'data-garden-id': COMPONENT_ID$f,
1153
- 'data-garden-version': '8.45.0'
1164
+ 'data-garden-version': '8.47.2'
1154
1165
  }).withConfig({
1155
1166
  displayName: "StyledToggleLabel",
1156
1167
  componentId: "sc-e0asdk-0"
@@ -1166,7 +1177,7 @@ StyledToggleLabel.defaultProps = {
1166
1177
  var COMPONENT_ID$e = 'forms.toggle_hint';
1167
1178
  var StyledToggleHint = styled(StyledHint).attrs({
1168
1179
  'data-garden-id': COMPONENT_ID$e,
1169
- 'data-garden-version': '8.45.0'
1180
+ 'data-garden-version': '8.47.2'
1170
1181
  }).withConfig({
1171
1182
  displayName: "StyledToggleHint",
1172
1183
  componentId: "sc-nziggu-0"
@@ -1199,7 +1210,7 @@ var sizeStyles$8 = function sizeStyles(props) {
1199
1210
  };
1200
1211
  var StyledToggleInput = styled(StyledCheckInput).attrs({
1201
1212
  'data-garden-id': COMPONENT_ID$d,
1202
- 'data-garden-version': '8.45.0'
1213
+ 'data-garden-version': '8.47.2'
1203
1214
  }).withConfig({
1204
1215
  displayName: "StyledToggleInput",
1205
1216
  componentId: "sc-sgp47s-0"
@@ -1217,7 +1228,7 @@ StyledToggleInput.defaultProps = {
1217
1228
  var COMPONENT_ID$c = 'forms.toggle_message';
1218
1229
  var StyledToggleMessage = styled(StyledMessage).attrs({
1219
1230
  'data-garden-id': COMPONENT_ID$c,
1220
- 'data-garden-version': '8.45.0'
1231
+ 'data-garden-version': '8.47.2'
1221
1232
  }).withConfig({
1222
1233
  displayName: "StyledToggleMessage",
1223
1234
  componentId: "sc-13vuvl1-0"
@@ -1236,30 +1247,30 @@ StyledToggleMessage.defaultProps = {
1236
1247
  theme: DEFAULT_THEME
1237
1248
  };
1238
1249
 
1239
- function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
1250
+ var _circle$2;
1240
1251
 
1241
- var _ref$8 = /*#__PURE__*/React.createElement("circle", {
1242
- cx: 8,
1243
- cy: 8,
1244
- r: 6,
1245
- fill: "currentColor"
1246
- });
1252
+ function _extends$m() { _extends$m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
1247
1253
 
1248
- function SvgCircleSmFill(props) {
1249
- return /*#__PURE__*/React.createElement("svg", _extends$8({
1254
+ var SvgCircleSmFill = function SvgCircleSmFill(props) {
1255
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
1250
1256
  xmlns: "http://www.w3.org/2000/svg",
1251
1257
  width: 16,
1252
1258
  height: 16,
1253
- viewBox: "0 0 16 16",
1254
1259
  focusable: "false",
1255
- role: "presentation"
1256
- }, props), _ref$8);
1257
- }
1260
+ viewBox: "0 0 16 16",
1261
+ "aria-hidden": "true"
1262
+ }, props), _circle$2 || (_circle$2 = /*#__PURE__*/React.createElement("circle", {
1263
+ cx: 8,
1264
+ cy: 8,
1265
+ r: 6,
1266
+ fill: "currentColor"
1267
+ })));
1268
+ };
1258
1269
 
1259
1270
  var COMPONENT_ID$b = 'forms.toggle_svg';
1260
1271
  var StyledToggleSvg = styled(SvgCircleSmFill).attrs({
1261
1272
  'data-garden-id': COMPONENT_ID$b,
1262
- 'data-garden-version': '8.45.0'
1273
+ 'data-garden-version': '8.47.2'
1263
1274
  }).withConfig({
1264
1275
  displayName: "StyledToggleSvg",
1265
1276
  componentId: "sc-162xbyx-0"
@@ -1283,7 +1294,7 @@ var sizeStyles$7 = function sizeStyles(props) {
1283
1294
  };
1284
1295
  var StyledSelect = styled(StyledTextInput).attrs({
1285
1296
  'data-garden-id': COMPONENT_ID$a,
1286
- 'data-garden-version': '8.45.0',
1297
+ 'data-garden-version': '8.47.2',
1287
1298
  as: 'select'
1288
1299
  }).withConfig({
1289
1300
  displayName: "StyledSelect",
@@ -1302,7 +1313,7 @@ StyledSelect.defaultProps = {
1302
1313
  var COMPONENT_ID$9 = 'forms.select_wrapper';
1303
1314
  var StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
1304
1315
  'data-garden-id': COMPONENT_ID$9,
1305
- 'data-garden-version': '8.45.0',
1316
+ 'data-garden-version': '8.47.2',
1306
1317
  isBare: true
1307
1318
  }).withConfig({
1308
1319
  displayName: "StyledSelectWrapper",
@@ -1355,7 +1366,7 @@ var sizeStyles$6 = function sizeStyles(props) {
1355
1366
  var StyledRangeInput = styled.input.attrs(function (props) {
1356
1367
  return {
1357
1368
  'data-garden-id': COMPONENT_ID$8,
1358
- 'data-garden-version': '8.45.0',
1369
+ 'data-garden-version': '8.47.2',
1359
1370
  type: 'range',
1360
1371
  style: {
1361
1372
  backgroundSize: props.hasLowerTrack && props.backgroundSize
@@ -1387,7 +1398,7 @@ var COMPONENT_ID$7 = 'forms.slider';
1387
1398
  var StyledSlider = styled.div.attrs(function (props) {
1388
1399
  return {
1389
1400
  'data-garden-id': COMPONENT_ID$7,
1390
- 'data-garden-version': '8.45.0',
1401
+ 'data-garden-version': '8.47.2',
1391
1402
  'aria-disabled': props.isDisabled
1392
1403
  };
1393
1404
  }).withConfig({
@@ -1427,7 +1438,7 @@ var sizeStyles$5 = function sizeStyles(props) {
1427
1438
  var StyledSliderThumb = styled.div.attrs(function (props) {
1428
1439
  return {
1429
1440
  'data-garden-id': COMPONENT_ID$6,
1430
- 'data-garden-version': '8.45.0',
1441
+ 'data-garden-version': '8.47.2',
1431
1442
  'aria-disabled': props.isDisabled
1432
1443
  };
1433
1444
  }).withConfig({
@@ -1471,7 +1482,7 @@ var sizeStyles$4 = function sizeStyles(props) {
1471
1482
  var StyledSliderTrack = styled.div.attrs(function (props) {
1472
1483
  return {
1473
1484
  'data-garden-id': COMPONENT_ID$5,
1474
- 'data-garden-version': '8.45.0',
1485
+ 'data-garden-version': '8.47.2',
1475
1486
  'aria-disabled': props.isDisabled
1476
1487
  };
1477
1488
  }).withConfig({
@@ -1498,7 +1509,7 @@ var sizeStyles$3 = function sizeStyles(props) {
1498
1509
  };
1499
1510
  var StyledSliderTrackRail = styled.div.attrs({
1500
1511
  'data-garden-id': COMPONENT_ID$4,
1501
- 'data-garden-version': '8.45.0'
1512
+ 'data-garden-version': '8.47.2'
1502
1513
  }).withConfig({
1503
1514
  displayName: "StyledSliderTrackRail",
1504
1515
  componentId: "sc-1o5owbd-0"
@@ -1529,7 +1540,7 @@ var sizeStyles$2 = function sizeStyles(props) {
1529
1540
  };
1530
1541
  var StyledTileIcon = styled.span.attrs({
1531
1542
  'data-garden-id': COMPONENT_ID$3,
1532
- 'data-garden-version': '8.45.0'
1543
+ 'data-garden-version': '8.47.2'
1533
1544
  }).withConfig({
1534
1545
  displayName: "StyledTileIcon",
1535
1546
  componentId: "sc-1wazhg4-0"
@@ -1569,7 +1580,7 @@ var colorStyles = function colorStyles(props) {
1569
1580
  var StyledTile = styled.label.attrs(function (props) {
1570
1581
  return {
1571
1582
  'data-garden-id': COMPONENT_ID$2,
1572
- 'data-garden-version': '8.45.0',
1583
+ 'data-garden-version': '8.47.2',
1573
1584
  'data-garden-focus-visible': props.isFocused,
1574
1585
  'data-garden-selected': props.isSelected
1575
1586
  };
@@ -1607,7 +1618,7 @@ var sizeStyles$1 = function sizeStyles(props) {
1607
1618
  };
1608
1619
  var StyledTileDescription = styled.span.attrs({
1609
1620
  'data-garden-id': COMPONENT_ID$1,
1610
- 'data-garden-version': '8.45.0'
1621
+ 'data-garden-version': '8.47.2'
1611
1622
  }).withConfig({
1612
1623
  displayName: "StyledTileDescription",
1613
1624
  componentId: "sc-xfuu7u-0"
@@ -1650,7 +1661,7 @@ var sizeStyles = function sizeStyles(props) {
1650
1661
  };
1651
1662
  var StyledTileLabel = styled.span.attrs({
1652
1663
  'data-garden-id': COMPONENT_ID,
1653
- 'data-garden-version': '8.45.0'
1664
+ 'data-garden-version': '8.47.2'
1654
1665
  }).withConfig({
1655
1666
  displayName: "StyledTileLabel",
1656
1667
  componentId: "sc-1mypv27-0"
@@ -1699,13 +1710,14 @@ var Field = React__default.forwardRef(function (props, ref) {
1699
1710
  }, [propGetters, isLabelActive, isLabelHovered]);
1700
1711
  return React__default.createElement(FieldContext.Provider, {
1701
1712
  value: fieldProps
1702
- }, React__default.createElement(StyledField, _extends$f({}, props, {
1713
+ }, React__default.createElement(StyledField, _extends$t({}, props, {
1703
1714
  ref: ref
1704
1715
  })));
1705
1716
  });
1706
1717
  Field.propTypes = {
1707
1718
  id: PropTypes.string
1708
1719
  };
1720
+ Field.displayName = 'Field';
1709
1721
 
1710
1722
  var FieldsetContext = createContext(undefined);
1711
1723
  var useFieldsetContext = function useFieldsetContext() {
@@ -1715,7 +1727,7 @@ var useFieldsetContext = function useFieldsetContext() {
1715
1727
 
1716
1728
  var Legend = forwardRef(function (props, ref) {
1717
1729
  var fieldsetContext = useFieldsetContext();
1718
- return React__default.createElement(StyledLegend, _extends$f({}, props, fieldsetContext, {
1730
+ return React__default.createElement(StyledLegend, _extends$t({}, props, fieldsetContext, {
1719
1731
  ref: ref
1720
1732
  }));
1721
1733
  });
@@ -1729,7 +1741,7 @@ var Fieldset = forwardRef(function (props, ref) {
1729
1741
  }, [props.isCompact]);
1730
1742
  return React__default.createElement(FieldsetContext.Provider, {
1731
1743
  value: fieldsetContext
1732
- }, React__default.createElement(StyledFieldset, _extends$f({}, props, {
1744
+ }, React__default.createElement(StyledFieldset, _extends$t({}, props, {
1733
1745
  ref: ref
1734
1746
  })));
1735
1747
  });
@@ -1758,7 +1770,7 @@ var Hint = React__default.forwardRef(function (props, ref) {
1758
1770
  if (fieldContext) {
1759
1771
  combinedProps = fieldContext.getHintProps(combinedProps);
1760
1772
  }
1761
- return React__default.createElement(HintComponent, _extends$f({
1773
+ return React__default.createElement(HintComponent, _extends$t({
1762
1774
  ref: ref
1763
1775
  }, combinedProps));
1764
1776
  });
@@ -1800,7 +1812,7 @@ var Label$1 = React__default.forwardRef(function (props, ref) {
1800
1812
  });
1801
1813
  }
1802
1814
  if (type === 'radio') {
1803
- return React__default.createElement(StyledRadioLabel, _extends$f({
1815
+ return React__default.createElement(StyledRadioLabel, _extends$t({
1804
1816
  ref: ref
1805
1817
  }, combinedProps), React__default.createElement(StyledRadioSvg, null), props.children);
1806
1818
  } else if (type === 'checkbox') {
@@ -1822,15 +1834,15 @@ var Label$1 = React__default.forwardRef(function (props, ref) {
1822
1834
  combinedProps = _objectSpread2(_objectSpread2({}, combinedProps), {}, {
1823
1835
  onClick: composeEventHandlers(combinedProps.onClick, onLabelSelect)
1824
1836
  });
1825
- return React__default.createElement(StyledCheckLabel, _extends$f({
1837
+ return React__default.createElement(StyledCheckLabel, _extends$t({
1826
1838
  ref: ref
1827
1839
  }, combinedProps), React__default.createElement(StyledCheckSvg, null), React__default.createElement(StyledDashSvg, null), props.children);
1828
1840
  } else if (type === 'toggle') {
1829
- return React__default.createElement(StyledToggleLabel, _extends$f({
1841
+ return React__default.createElement(StyledToggleLabel, _extends$t({
1830
1842
  ref: ref
1831
1843
  }, combinedProps), React__default.createElement(StyledToggleSvg, null), props.children);
1832
1844
  }
1833
- return React__default.createElement(StyledLabel, _extends$f({
1845
+ return React__default.createElement(StyledLabel, _extends$t({
1834
1846
  ref: ref
1835
1847
  }, combinedProps));
1836
1848
  });
@@ -1862,7 +1874,7 @@ var Message = React__default.forwardRef(function (_ref, ref) {
1862
1874
  if (fieldContext) {
1863
1875
  combinedProps = fieldContext.getMessageProps(combinedProps);
1864
1876
  }
1865
- return React__default.createElement(MessageComponent, _extends$f({
1877
+ return React__default.createElement(MessageComponent, _extends$t({
1866
1878
  ref: ref
1867
1879
  }, combinedProps), validation && React__default.createElement(StyledMessageIcon, {
1868
1880
  validation: validation
@@ -1943,6 +1955,7 @@ Input.propTypes = {
1943
1955
  focusInset: PropTypes.bool,
1944
1956
  validation: PropTypes.oneOf(['success', 'warning', 'error'])
1945
1957
  };
1958
+ Input.displayName = 'Input';
1946
1959
 
1947
1960
  var _excluded$c = ["children"];
1948
1961
  var Radio = React__default.forwardRef(function (_ref, ref) {
@@ -2014,6 +2027,7 @@ Range.defaultProps = {
2014
2027
  max: 100,
2015
2028
  step: 1
2016
2029
  };
2030
+ Range.displayName = 'Range';
2017
2031
 
2018
2032
  var _excluded$a = ["minRows", "maxRows", "style", "onChange", "onSelect"];
2019
2033
  var parseStyleValue = function parseStyleValue(value) {
@@ -2138,6 +2152,7 @@ Textarea.propTypes = {
2138
2152
  maxRows: PropTypes.number,
2139
2153
  validation: PropTypes.oneOf(['success', 'warning', 'error'])
2140
2154
  };
2155
+ Textarea.displayName = 'Textarea';
2141
2156
 
2142
2157
  var _excluded$9 = ["children"];
2143
2158
  var Toggle = React__default.forwardRef(function (_ref, ref) {
@@ -2157,32 +2172,32 @@ var Toggle = React__default.forwardRef(function (_ref, ref) {
2157
2172
  });
2158
2173
  Toggle.displayName = 'Toggle';
2159
2174
 
2160
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
2175
+ var _path$k;
2161
2176
 
2162
- var _ref$7 = /*#__PURE__*/React.createElement("path", {
2163
- fill: "currentColor",
2164
- d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
2165
- });
2177
+ function _extends$l() { _extends$l = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
2166
2178
 
2167
- function SvgChevronDownStroke(props) {
2168
- return /*#__PURE__*/React.createElement("svg", _extends$7({
2179
+ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
2180
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
2169
2181
  xmlns: "http://www.w3.org/2000/svg",
2170
2182
  width: 16,
2171
2183
  height: 16,
2172
- viewBox: "0 0 16 16",
2173
2184
  focusable: "false",
2174
- role: "presentation"
2175
- }, props), _ref$7);
2176
- }
2185
+ viewBox: "0 0 16 16",
2186
+ "aria-hidden": "true"
2187
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
2188
+ fill: "currentColor",
2189
+ d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
2190
+ })));
2191
+ };
2177
2192
 
2178
2193
  var _excluded$8 = ["onFocus", "onBlur", "disabled", "readOnly", "isFocused"];
2179
2194
  var StartIcon = function StartIcon(props) {
2180
- return React__default.createElement(StyledTextMediaFigure, _extends$f({
2195
+ return React__default.createElement(StyledTextMediaFigure, _extends$t({
2181
2196
  position: "start"
2182
2197
  }, props));
2183
2198
  };
2184
2199
  var EndIcon = function EndIcon(props) {
2185
- return React__default.createElement(StyledTextMediaFigure, _extends$f({
2200
+ return React__default.createElement(StyledTextMediaFigure, _extends$t({
2186
2201
  position: "end"
2187
2202
  }, props));
2188
2203
  };
@@ -2203,7 +2218,7 @@ var FauxInput = forwardRef(function (_ref, ref) {
2203
2218
  var onBlurHandler = composeEventHandlers(onBlur, function () {
2204
2219
  setIsFocused(false);
2205
2220
  });
2206
- return React__default.createElement(StyledTextFauxInput, _extends$f({
2221
+ return React__default.createElement(StyledTextFauxInput, _extends$t({
2207
2222
  onFocus: onFocusHandler,
2208
2223
  onBlur: onBlurHandler,
2209
2224
  isFocused: controlledIsFocused === undefined ? isFocused : controlledIsFocused,
@@ -2254,8 +2269,9 @@ Select.propTypes = {
2254
2269
  focusInset: PropTypes.bool,
2255
2270
  validation: PropTypes.oneOf(['success', 'warning', 'error'])
2256
2271
  };
2272
+ Select.displayName = 'Select';
2257
2273
 
2258
- var _excluded$6 = ["min", "max", "minValue", "maxValue", "disabled", "step", "onChange", "theme", "onMouseDown"];
2274
+ var _excluded$6 = ["min", "max", "minValue", "maxValue", "disabled", "step", "onChange", "onMouseDown"];
2259
2275
  var MultiThumbRange = function MultiThumbRange(_ref) {
2260
2276
  var min = _ref.min,
2261
2277
  max = _ref.max,
@@ -2264,9 +2280,9 @@ var MultiThumbRange = function MultiThumbRange(_ref) {
2264
2280
  disabled = _ref.disabled,
2265
2281
  step = _ref.step,
2266
2282
  onChange = _ref.onChange,
2267
- theme = _ref.theme,
2268
2283
  onMouseDown = _ref.onMouseDown,
2269
2284
  props = _objectWithoutProperties(_ref, _excluded$6);
2285
+ var theme = useContext(ThemeContext);
2270
2286
  var themedDocument = useDocument(theme);
2271
2287
  var _useState = useState(false),
2272
2288
  _useState2 = _slicedToArray(_useState, 2),
@@ -2496,7 +2512,7 @@ var MultiThumbRange = function MultiThumbRange(_ref) {
2496
2512
  var maxPosition = calculateMaxPosition(MIN_DISTANCE);
2497
2513
  var sliderBackgroundSize = Math.abs(maxPosition) - Math.abs(minPosition);
2498
2514
  var onSliderMouseDown = composeEventHandlers(onMouseDown, onTrackMouseDown);
2499
- return React__default.createElement(StyledSlider, _extends$f({
2515
+ return React__default.createElement(StyledSlider, _extends$t({
2500
2516
  isDisabled: disabled,
2501
2517
  onMouseDown: onSliderMouseDown
2502
2518
  }, props), React__default.createElement(StyledSliderTrack, {
@@ -2567,10 +2583,8 @@ MultiThumbRange.defaultProps = {
2567
2583
  max: 100,
2568
2584
  minValue: 0,
2569
2585
  maxValue: 100,
2570
- step: 1,
2571
- theme: DEFAULT_THEME
2586
+ step: 1
2572
2587
  };
2573
- var MultiThumbRange$1 = withTheme(MultiThumbRange);
2574
2588
 
2575
2589
  var TilesContext = createContext(undefined);
2576
2590
  var useTilesContext = function useTilesContext() {
@@ -2597,13 +2611,13 @@ var Tile = React__default.forwardRef(function (_ref, ref) {
2597
2611
  onChange: tilesContext.onChange
2598
2612
  };
2599
2613
  }
2600
- return React__default.createElement(StyledTile, _extends$f({
2614
+ return React__default.createElement(StyledTile, _extends$t({
2601
2615
  ref: ref,
2602
2616
  "aria-disabled": disabled,
2603
2617
  isDisabled: disabled,
2604
2618
  isFocused: isFocused,
2605
2619
  isSelected: tilesContext && tilesContext.value === value
2606
- }, props), children, React__default.createElement(StyledTileInput, _extends$f({}, inputProps, {
2620
+ }, props), children, React__default.createElement(StyledTileInput, _extends$t({}, inputProps, {
2607
2621
  disabled: disabled,
2608
2622
  value: value,
2609
2623
  onBlur: function onBlur() {
@@ -2629,7 +2643,7 @@ Tile.propTypes = {
2629
2643
 
2630
2644
  var Description = React__default.forwardRef(function (props, ref) {
2631
2645
  var tilesContext = useTilesContext();
2632
- return React__default.createElement(StyledTileDescription, _extends$f({
2646
+ return React__default.createElement(StyledTileDescription, _extends$t({
2633
2647
  ref: ref,
2634
2648
  isCentered: tilesContext && tilesContext.isCentered
2635
2649
  }, props));
@@ -2638,7 +2652,7 @@ Description.displayName = 'TileDescription';
2638
2652
 
2639
2653
  var Icon = React__default.forwardRef(function (props, ref) {
2640
2654
  var tileContext = useTilesContext();
2641
- return React__default.createElement(StyledTileIcon, _extends$f({
2655
+ return React__default.createElement(StyledTileIcon, _extends$t({
2642
2656
  ref: ref,
2643
2657
  isCentered: tileContext && tileContext.isCentered
2644
2658
  }, props));
@@ -2657,7 +2671,7 @@ var Label = React__default.forwardRef(function (props, forwardedRef) {
2657
2671
  setTitle(ref.current.textContent || undefined);
2658
2672
  }
2659
2673
  }, [ref]);
2660
- return React__default.createElement(StyledTileLabel, _extends$f({
2674
+ return React__default.createElement(StyledTileLabel, _extends$t({
2661
2675
  ref: mergeRefs([ref, forwardedRef]),
2662
2676
  title: title,
2663
2677
  isCentered: tilesContext && tilesContext.isCentered
@@ -2696,7 +2710,7 @@ var Tiles = React__default.forwardRef(function (_ref, ref) {
2696
2710
  }, [handleOnChange, selectedValue, name, isCentered]);
2697
2711
  return React__default.createElement(TilesContext.Provider, {
2698
2712
  value: tileContext
2699
- }, React__default.createElement("div", _extends$f({
2713
+ }, React__default.createElement("div", _extends$t({
2700
2714
  ref: ref,
2701
2715
  role: "radiogroup"
2702
2716
  }, props)));
@@ -2727,7 +2741,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
2727
2741
  }, [isCompact]);
2728
2742
  return React__default.createElement(InputGroupContext.Provider, {
2729
2743
  value: contextValue
2730
- }, React__default.createElement(StyledInputGroup, _extends$f({
2744
+ }, React__default.createElement(StyledInputGroup, _extends$t({
2731
2745
  ref: ref,
2732
2746
  isCompact: isCompact
2733
2747
  }, props)));
@@ -2741,7 +2755,7 @@ var _excluded$2 = ["disabled"];
2741
2755
  var FileUpload = React__default.forwardRef(function (_ref, ref) {
2742
2756
  var disabled = _ref.disabled,
2743
2757
  props = _objectWithoutProperties(_ref, _excluded$2);
2744
- return React__default.createElement(StyledFileUpload, _extends$f({
2758
+ return React__default.createElement(StyledFileUpload, _extends$t({
2745
2759
  ref: ref,
2746
2760
  "aria-disabled": disabled
2747
2761
  }, props));
@@ -2754,183 +2768,501 @@ FileUpload.propTypes = {
2754
2768
  FileUpload.displayName = 'FileUpload';
2755
2769
 
2756
2770
  var Item = forwardRef(function (_ref, ref) {
2757
- var props = _extends$f({}, _ref);
2758
- return React__default.createElement(StyledFileListItem, _extends$f({}, props, {
2771
+ var props = _extends$t({}, _ref);
2772
+ return React__default.createElement(StyledFileListItem, _extends$t({}, props, {
2759
2773
  ref: ref
2760
2774
  }));
2761
2775
  });
2762
- Item.displayName = 'Item';
2776
+ Item.displayName = 'FileList.Item';
2763
2777
 
2764
2778
  var FileList = forwardRef(function (_ref, ref) {
2765
- var props = _extends$f({}, _ref);
2766
- return React__default.createElement(StyledFileList, _extends$f({}, props, {
2779
+ var props = _extends$t({}, _ref);
2780
+ return React__default.createElement(StyledFileList, _extends$t({}, props, {
2767
2781
  ref: ref
2768
2782
  }));
2769
2783
  });
2770
2784
  FileList.displayName = 'FileList';
2771
2785
  FileList.Item = Item;
2772
2786
 
2773
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
2787
+ var _path$j;
2774
2788
 
2775
- var _ref$6 = /*#__PURE__*/React.createElement("path", {
2776
- stroke: "currentColor",
2777
- strokeLinecap: "round",
2778
- d: "M3 13L13 3m0 10L3 3"
2779
- });
2789
+ function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
2780
2790
 
2781
- function SvgXStroke(props) {
2782
- return /*#__PURE__*/React.createElement("svg", _extends$6({
2791
+ var SvgXStroke$1 = function SvgXStroke(props) {
2792
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
2793
+ xmlns: "http://www.w3.org/2000/svg",
2794
+ width: 12,
2795
+ height: 12,
2796
+ focusable: "false",
2797
+ viewBox: "0 0 12 12",
2798
+ "aria-hidden": "true"
2799
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
2800
+ stroke: "currentColor",
2801
+ strokeLinecap: "round",
2802
+ d: "M3 9l6-6m0 6L3 3"
2803
+ })));
2804
+ };
2805
+
2806
+ var _path$i;
2807
+
2808
+ function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
2809
+
2810
+ var SvgXStroke = function SvgXStroke(props) {
2811
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
2783
2812
  xmlns: "http://www.w3.org/2000/svg",
2784
2813
  width: 16,
2785
2814
  height: 16,
2786
- viewBox: "0 0 16 16",
2787
2815
  focusable: "false",
2788
- role: "presentation"
2789
- }, props), _ref$6);
2790
- }
2816
+ viewBox: "0 0 16 16",
2817
+ "aria-hidden": "true"
2818
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
2819
+ stroke: "currentColor",
2820
+ strokeLinecap: "round",
2821
+ d: "M3 13L13 3m0 10L3 3"
2822
+ })));
2823
+ };
2824
+
2825
+ var FileContext = createContext(undefined);
2826
+ var useFileContext = function useFileContext() {
2827
+ return useContext(FileContext);
2828
+ };
2791
2829
 
2792
2830
  var Close = React__default.forwardRef(function (props, ref) {
2793
- return React__default.createElement(StyledFileClose, _extends$f({
2831
+ var fileContext = useFileContext();
2832
+ var onMouseDown = composeEventHandlers(props.onMouseDown, function (event) {
2833
+ return event.preventDefault();
2834
+ }
2835
+ );
2836
+ return React__default.createElement(StyledFileClose, _extends$t({
2794
2837
  ref: ref
2795
- }, props), React__default.createElement(SvgXStroke, null));
2838
+ }, props, {
2839
+ onMouseDown: onMouseDown
2840
+ }), fileContext && fileContext.isCompact ? React__default.createElement(SvgXStroke$1, null) : React__default.createElement(SvgXStroke, null));
2796
2841
  });
2797
- Close.displayName = 'Close';
2842
+ Close.displayName = 'File.Close';
2798
2843
 
2799
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
2844
+ var _path$h;
2800
2845
 
2801
- var _ref$5 = /*#__PURE__*/React.createElement("path", {
2802
- fill: "none",
2803
- stroke: "currentColor",
2804
- strokeLinecap: "round",
2805
- d: "M14.5 4.2V15a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h8.85a.5.5 0 01.36.15l3.15 3.2a.5.5 0 01.14.35zm-10 8.3h7m-7-2h7m-1-10V4a.5.5 0 00.5.5h3.5"
2806
- });
2846
+ function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
2807
2847
 
2808
- var _ref2$1 = /*#__PURE__*/React.createElement("rect", {
2809
- width: 8,
2810
- height: 2,
2811
- x: 4,
2812
- y: 7,
2813
- fill: "currentColor",
2814
- rx: 0.5,
2815
- ry: 0.5
2816
- });
2848
+ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
2849
+ return /*#__PURE__*/React.createElement("svg", _extends$i({
2850
+ xmlns: "http://www.w3.org/2000/svg",
2851
+ width: 12,
2852
+ height: 12,
2853
+ focusable: "false",
2854
+ viewBox: "0 0 12 12",
2855
+ "aria-hidden": "true"
2856
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
2857
+ fill: "none",
2858
+ stroke: "currentColor",
2859
+ strokeLinecap: "round",
2860
+ d: "M4.5 2.5V1c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5v1.5M2 2.5h8m-5.5 7V5m3 4.5V5m-5-.5V11c0 .3.2.5.5.5h6c.3 0 .5-.2.5-.5V4.5"
2861
+ })));
2862
+ };
2817
2863
 
2818
- function SvgFilePdfStroke(props) {
2819
- return /*#__PURE__*/React.createElement("svg", _extends$5({
2864
+ var _path$g;
2865
+
2866
+ function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
2867
+
2868
+ var SvgTrashStroke = function SvgTrashStroke(props) {
2869
+ return /*#__PURE__*/React.createElement("svg", _extends$h({
2820
2870
  xmlns: "http://www.w3.org/2000/svg",
2821
2871
  width: 16,
2822
2872
  height: 16,
2873
+ focusable: "false",
2823
2874
  viewBox: "0 0 16 16",
2875
+ "aria-hidden": "true"
2876
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
2877
+ fill: "none",
2878
+ stroke: "currentColor",
2879
+ strokeLinecap: "round",
2880
+ d: "M6.5 2.5V1c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5v1.5M3 2.5h10m-6.5 11v-8m3 8v-8m-6-1V15c0 .3.2.5.5.5h8c.3 0 .5-.2.5-.5V4.5"
2881
+ })));
2882
+ };
2883
+
2884
+ var Delete = React__default.forwardRef(function (props, ref) {
2885
+ var fileContext = useFileContext();
2886
+ var onMouseDown = composeEventHandlers(props.onMouseDown, function (event) {
2887
+ return event.preventDefault();
2888
+ }
2889
+ );
2890
+ return React__default.createElement(StyledFileDelete, _extends$t({
2891
+ ref: ref
2892
+ }, props, {
2893
+ onMouseDown: onMouseDown
2894
+ }), fileContext && fileContext.isCompact ? React__default.createElement(SvgTrashStroke$1, null) : React__default.createElement(SvgTrashStroke, null));
2895
+ });
2896
+ Delete.displayName = 'File.Delete';
2897
+
2898
+ var _path$f, _rect$1;
2899
+
2900
+ function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
2901
+
2902
+ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
2903
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
2904
+ xmlns: "http://www.w3.org/2000/svg",
2905
+ width: 12,
2906
+ height: 12,
2824
2907
  focusable: "false",
2825
- role: "presentation"
2826
- }, props), _ref$5, _ref2$1);
2827
- }
2908
+ viewBox: "0 0 12 12",
2909
+ "aria-hidden": "true"
2910
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
2911
+ fill: "none",
2912
+ stroke: "currentColor",
2913
+ strokeLinecap: "round",
2914
+ d: "M10.5 3.21V11a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h5.79a.5.5 0 01.35.15l2.21 2.21a.5.5 0 01.15.35zM7.5.5V3a.5.5 0 00.5.5h2.5m-7 6h5"
2915
+ })), _rect$1 || (_rect$1 = /*#__PURE__*/React.createElement("rect", {
2916
+ width: 6,
2917
+ height: 3,
2918
+ x: 3,
2919
+ y: 5,
2920
+ fill: "currentColor",
2921
+ rx: 0.5,
2922
+ ry: 0.5
2923
+ })));
2924
+ };
2828
2925
 
2829
- function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
2926
+ var _path$e;
2830
2927
 
2831
- var _ref$4 = /*#__PURE__*/React.createElement("path", {
2832
- fill: "none",
2833
- stroke: "currentColor",
2834
- strokeLinecap: "round",
2835
- d: "M6.5.5v11M5 2.5h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m8-6.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
2836
- });
2928
+ function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
2837
2929
 
2838
- function SvgFileZipStroke(props) {
2839
- return /*#__PURE__*/React.createElement("svg", _extends$4({
2930
+ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
2931
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
2932
+ xmlns: "http://www.w3.org/2000/svg",
2933
+ width: 12,
2934
+ height: 12,
2935
+ focusable: "false",
2936
+ viewBox: "0 0 12 12",
2937
+ "aria-hidden": "true"
2938
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
2939
+ fill: "none",
2940
+ stroke: "currentColor",
2941
+ strokeLinecap: "round",
2942
+ d: "M4.5.5v8m0-6h1m-2 1h1m0 1h1m-2 1h1m0 1h1m-2 1h1m6-4.29V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5"
2943
+ })));
2944
+ };
2945
+
2946
+ var _path$d, _circle$1;
2947
+
2948
+ function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
2949
+
2950
+ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
2951
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
2952
+ xmlns: "http://www.w3.org/2000/svg",
2953
+ width: 12,
2954
+ height: 12,
2955
+ focusable: "false",
2956
+ viewBox: "0 0 12 12",
2957
+ "aria-hidden": "true"
2958
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
2959
+ fill: "none",
2960
+ stroke: "currentColor",
2961
+ strokeLinecap: "round",
2962
+ strokeLinejoin: "round",
2963
+ d: "M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5m-7 6L5 8l1.5 1.5 1-1 1 1"
2964
+ })), _circle$1 || (_circle$1 = /*#__PURE__*/React.createElement("circle", {
2965
+ cx: 8,
2966
+ cy: 6,
2967
+ r: 1,
2968
+ fill: "currentColor"
2969
+ })));
2970
+ };
2971
+
2972
+ var _path$c;
2973
+
2974
+ function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
2975
+
2976
+ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
2977
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
2978
+ xmlns: "http://www.w3.org/2000/svg",
2979
+ width: 12,
2980
+ height: 12,
2981
+ focusable: "false",
2982
+ viewBox: "0 0 12 12",
2983
+ "aria-hidden": "true"
2984
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
2985
+ fill: "none",
2986
+ stroke: "currentColor",
2987
+ strokeLinecap: "round",
2988
+ d: "M3.5 5.5h5m-5 2h5m-5 2h5m2-6.29V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5"
2989
+ })));
2990
+ };
2991
+
2992
+ var _path$b;
2993
+
2994
+ function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
2995
+
2996
+ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
2997
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
2998
+ xmlns: "http://www.w3.org/2000/svg",
2999
+ width: 12,
3000
+ height: 12,
3001
+ focusable: "false",
3002
+ viewBox: "0 0 12 12",
3003
+ "aria-hidden": "true"
3004
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
3005
+ fill: "none",
3006
+ stroke: "currentColor",
3007
+ strokeLinecap: "round",
3008
+ d: "M3.5 5.5h1m-1 2h1m-1 2h1m2-4h2m-2 2h2m-2 2h2m2-6.29V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5"
3009
+ })));
3010
+ };
3011
+
3012
+ var _path$a;
3013
+
3014
+ function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
3015
+
3016
+ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
3017
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
3018
+ xmlns: "http://www.w3.org/2000/svg",
3019
+ width: 12,
3020
+ height: 12,
3021
+ focusable: "false",
3022
+ viewBox: "0 0 12 12",
3023
+ "aria-hidden": "true"
3024
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
3025
+ fill: "none",
3026
+ stroke: "currentColor",
3027
+ d: "M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM6 9.5h2c.28 0 .5-.22.5-.5V8c0-.28-.22-.5-.5-.5H6c-.28 0-.5.22-.5.5v1c0 .28.22.5.5.5zm-2-2h2c.28 0 .5-.22.5-.5V6c0-.28-.22-.5-.5-.5H4c-.28 0-.5.22-.5.5v1c0 .28.22.5.5.5zm3.5-7V3c0 .28.22.5.5.5h2.5"
3028
+ })));
3029
+ };
3030
+
3031
+ var _path$9;
3032
+
3033
+ function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
3034
+
3035
+ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
3036
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
3037
+ xmlns: "http://www.w3.org/2000/svg",
3038
+ width: 12,
3039
+ height: 12,
3040
+ focusable: "false",
3041
+ viewBox: "0 0 12 12",
3042
+ "aria-hidden": "true"
3043
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
3044
+ fill: "none",
3045
+ stroke: "currentColor",
3046
+ d: "M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5"
3047
+ })));
3048
+ };
3049
+
3050
+ var _g;
3051
+
3052
+ function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
3053
+
3054
+ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
3055
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
3056
+ xmlns: "http://www.w3.org/2000/svg",
3057
+ width: 12,
3058
+ height: 12,
3059
+ focusable: "false",
3060
+ viewBox: "0 0 12 12",
3061
+ "aria-hidden": "true"
3062
+ }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
3063
+ fill: "none",
3064
+ stroke: "currentColor"
3065
+ }, /*#__PURE__*/React.createElement("path", {
3066
+ strokeLinecap: "round",
3067
+ strokeLinejoin: "round",
3068
+ d: "M3.5 6l2 2L9 4.5"
3069
+ }), /*#__PURE__*/React.createElement("circle", {
3070
+ cx: 6,
3071
+ cy: 6,
3072
+ r: 5.5
3073
+ }))));
3074
+ };
3075
+
3076
+ var _path$8;
3077
+
3078
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
3079
+
3080
+ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
3081
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
3082
+ xmlns: "http://www.w3.org/2000/svg",
3083
+ width: 12,
3084
+ height: 12,
3085
+ focusable: "false",
3086
+ viewBox: "0 0 12 12",
3087
+ "aria-hidden": "true"
3088
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
3089
+ fill: "none",
3090
+ stroke: "currentColor",
3091
+ strokeLinecap: "round",
3092
+ d: "M10.5 3.21V11c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h5.79c.13 0 .26.05.35.15l2.21 2.21c.1.09.15.21.15.35zM7.5.5V3c0 .28.22.5.5.5h2.5M4 9.5l4-4m0 4l-4-4"
3093
+ })));
3094
+ };
3095
+
3096
+ var _path$7, _rect;
3097
+
3098
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
3099
+
3100
+ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
3101
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
2840
3102
  xmlns: "http://www.w3.org/2000/svg",
2841
3103
  width: 16,
2842
3104
  height: 16,
3105
+ focusable: "false",
2843
3106
  viewBox: "0 0 16 16",
3107
+ "aria-hidden": "true"
3108
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
3109
+ fill: "none",
3110
+ stroke: "currentColor",
3111
+ strokeLinecap: "round",
3112
+ d: "M14.5 4.2V15a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h8.85a.5.5 0 01.36.15l3.15 3.2a.5.5 0 01.14.35zm-10 8.3h7m-7-2h7m-1-10V4a.5.5 0 00.5.5h3.5"
3113
+ })), _rect || (_rect = /*#__PURE__*/React.createElement("rect", {
3114
+ width: 8,
3115
+ height: 2,
3116
+ x: 4,
3117
+ y: 7,
3118
+ fill: "currentColor",
3119
+ rx: 0.5,
3120
+ ry: 0.5
3121
+ })));
3122
+ };
3123
+
3124
+ var _path$6;
3125
+
3126
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
3127
+
3128
+ var SvgFileZipStroke = function SvgFileZipStroke(props) {
3129
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
3130
+ xmlns: "http://www.w3.org/2000/svg",
3131
+ width: 16,
3132
+ height: 16,
2844
3133
  focusable: "false",
2845
- role: "presentation"
2846
- }, props), _ref$4);
2847
- }
3134
+ viewBox: "0 0 16 16",
3135
+ "aria-hidden": "true"
3136
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
3137
+ fill: "none",
3138
+ stroke: "currentColor",
3139
+ strokeLinecap: "round",
3140
+ d: "M6.5.5v11M5 2.5h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m0 1H8m-3 1h1.5m8-6.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
3141
+ })));
3142
+ };
2848
3143
 
2849
- function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
3144
+ var _path$5, _circle;
2850
3145
 
2851
- var _ref$3 = /*#__PURE__*/React.createElement("path", {
2852
- fill: "none",
2853
- stroke: "currentColor",
2854
- strokeLinecap: "round",
2855
- d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5m-11 9l2.65-2.65c.2-.2.51-.2.71 0l1.79 1.79c.2.2.51.2.71 0l.79-.79c.2-.2.51-.2.71 0l1.65 1.65"
2856
- });
3146
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
2857
3147
 
2858
- var _ref2 = /*#__PURE__*/React.createElement("circle", {
2859
- cx: 10.5,
2860
- cy: 8.5,
2861
- r: 1.5,
2862
- fill: "currentColor"
2863
- });
3148
+ var SvgFileImageStroke = function SvgFileImageStroke(props) {
3149
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
3150
+ xmlns: "http://www.w3.org/2000/svg",
3151
+ width: 16,
3152
+ height: 16,
3153
+ focusable: "false",
3154
+ viewBox: "0 0 16 16",
3155
+ "aria-hidden": "true"
3156
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
3157
+ fill: "none",
3158
+ stroke: "currentColor",
3159
+ strokeLinecap: "round",
3160
+ d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5m-11 9l2.65-2.65c.2-.2.51-.2.71 0l1.79 1.79c.2.2.51.2.71 0l.79-.79c.2-.2.51-.2.71 0l1.65 1.65"
3161
+ })), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
3162
+ cx: 10.5,
3163
+ cy: 8.5,
3164
+ r: 1.5,
3165
+ fill: "currentColor"
3166
+ })));
3167
+ };
2864
3168
 
2865
- function SvgFileImageStroke(props) {
2866
- return /*#__PURE__*/React.createElement("svg", _extends$3({
3169
+ var _path$4;
3170
+
3171
+ function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
3172
+
3173
+ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
3174
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
2867
3175
  xmlns: "http://www.w3.org/2000/svg",
2868
3176
  width: 16,
2869
3177
  height: 16,
3178
+ focusable: "false",
2870
3179
  viewBox: "0 0 16 16",
3180
+ "aria-hidden": "true"
3181
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
3182
+ fill: "none",
3183
+ stroke: "currentColor",
3184
+ strokeLinecap: "round",
3185
+ d: "M4.5 7.5h7m-7 1.97h7m-7 2h7m3-7.27V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
3186
+ })));
3187
+ };
3188
+
3189
+ var _path$3;
3190
+
3191
+ function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
3192
+
3193
+ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
3194
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
3195
+ xmlns: "http://www.w3.org/2000/svg",
3196
+ width: 16,
3197
+ height: 16,
2871
3198
  focusable: "false",
2872
- role: "presentation"
2873
- }, props), _ref$3, _ref2);
2874
- }
3199
+ viewBox: "0 0 16 16",
3200
+ "aria-hidden": "true"
3201
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
3202
+ fill: "none",
3203
+ stroke: "currentColor",
3204
+ strokeLinecap: "round",
3205
+ d: "M4.5 7.5h2m-2 2h2m-2 2h2m2-4h3m-3 2h3m-3 2h3m3-7.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
3206
+ })));
3207
+ };
2875
3208
 
2876
- function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
3209
+ var _path$2;
2877
3210
 
2878
- var _ref$2 = /*#__PURE__*/React.createElement("path", {
2879
- fill: "none",
2880
- stroke: "currentColor",
2881
- strokeLinecap: "round",
2882
- d: "M4.5 7.5h7m-7 1.97h7m-7 2h7m3-7.27V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
2883
- });
3211
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
2884
3212
 
2885
- function SvgFileDocumentStroke(props) {
3213
+ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
2886
3214
  return /*#__PURE__*/React.createElement("svg", _extends$2({
2887
3215
  xmlns: "http://www.w3.org/2000/svg",
2888
3216
  width: 16,
2889
3217
  height: 16,
2890
- viewBox: "0 0 16 16",
2891
3218
  focusable: "false",
2892
- role: "presentation"
2893
- }, props), _ref$2);
2894
- }
3219
+ viewBox: "0 0 16 16",
3220
+ "aria-hidden": "true"
3221
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
3222
+ fill: "none",
3223
+ stroke: "currentColor",
3224
+ d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5M7 9.5h4c.28 0 .5.22.5.5v3c0 .28-.22.5-.5.5H7c-.28 0-.5-.22-.5-.5v-3c0-.28.22-.5.5-.5zm-.5 2H5c-.28 0-.5-.22-.5-.5V8c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5v1.5"
3225
+ })));
3226
+ };
2895
3227
 
2896
- function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
3228
+ var _path$1;
2897
3229
 
2898
- var _ref$1 = /*#__PURE__*/React.createElement("path", {
2899
- fill: "none",
2900
- stroke: "currentColor",
2901
- strokeLinecap: "round",
2902
- d: "M4.5 7.5h2m-2 2h2m-2 2h2m2-4h3m-3 2h3m-3 2h3m3-7.3V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
2903
- });
3230
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
2904
3231
 
2905
- function SvgFileSpreadsheetStroke(props) {
3232
+ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
2906
3233
  return /*#__PURE__*/React.createElement("svg", _extends$1({
2907
3234
  xmlns: "http://www.w3.org/2000/svg",
2908
3235
  width: 16,
2909
3236
  height: 16,
2910
- viewBox: "0 0 16 16",
2911
3237
  focusable: "false",
2912
- role: "presentation"
2913
- }, props), _ref$1);
2914
- }
3238
+ viewBox: "0 0 16 16",
3239
+ "aria-hidden": "true"
3240
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
3241
+ fill: "none",
3242
+ stroke: "currentColor",
3243
+ d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5"
3244
+ })));
3245
+ };
2915
3246
 
2916
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3247
+ var _path;
2917
3248
 
2918
- var _ref = /*#__PURE__*/React.createElement("path", {
2919
- fill: "none",
2920
- stroke: "currentColor",
2921
- d: "M14.5 4.2V15c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V1c0-.28.22-.5.5-.5h8.85c.13 0 .26.05.36.15l3.15 3.2c.09.1.14.22.14.35zm-4-3.7V4c0 .28.22.5.5.5h3.5M7 9.5h4c.28 0 .5.22.5.5v3c0 .28-.22.5-.5.5H7c-.28 0-.5-.22-.5-.5v-3c0-.28.22-.5.5-.5zm-.5 2H5c-.28 0-.5-.22-.5-.5V8c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5v1.5"
2922
- });
3249
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2923
3250
 
2924
- function SvgFilePresentationStroke(props) {
3251
+ var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
2925
3252
  return /*#__PURE__*/React.createElement("svg", _extends({
2926
3253
  xmlns: "http://www.w3.org/2000/svg",
2927
3254
  width: 16,
2928
3255
  height: 16,
2929
- viewBox: "0 0 16 16",
2930
3256
  focusable: "false",
2931
- role: "presentation"
2932
- }, props), _ref);
2933
- }
3257
+ viewBox: "0 0 16 16",
3258
+ "aria-hidden": "true"
3259
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
3260
+ fill: "none",
3261
+ stroke: "currentColor",
3262
+ strokeLinecap: "round",
3263
+ d: "M14.5 4.205V15a.5.5 0 01-.5.5H2a.5.5 0 01-.5-.5V1A.5.5 0 012 .5h8.853a.5.5 0 01.356.15l3.148 3.204a.5.5 0 01.143.35zM10.5.5V4a.5.5 0 00.5.5h3.5m-9 8l5-5m0 5l-5-5"
3264
+ })));
3265
+ };
2934
3266
 
2935
3267
  var FileType;
2936
3268
  (function (FileType) {
@@ -2940,36 +3272,72 @@ var FileType;
2940
3272
  FileType["document"] = "document";
2941
3273
  FileType["spreadsheet"] = "spreadsheet";
2942
3274
  FileType["presentation"] = "presentation";
3275
+ FileType["generic"] = "generic";
2943
3276
  })(FileType || (FileType = {}));
3277
+ var ValidationType;
3278
+ (function (ValidationType) {
3279
+ ValidationType["success"] = "success";
3280
+ ValidationType["error"] = "error";
3281
+ })(ValidationType || (ValidationType = {}));
2944
3282
  var ARRAY_FILE_TYPE = _toConsumableArray(Object.values(FileType));
2945
- var fileIcons = {
3283
+ var fileIconsDefault = {
2946
3284
  pdf: React__default.createElement(SvgFilePdfStroke, null),
2947
3285
  zip: React__default.createElement(SvgFileZipStroke, null),
2948
3286
  image: React__default.createElement(SvgFileImageStroke, null),
2949
3287
  document: React__default.createElement(SvgFileDocumentStroke, null),
2950
3288
  spreadsheet: React__default.createElement(SvgFileSpreadsheetStroke, null),
2951
- presentation: React__default.createElement(SvgFilePresentationStroke, null)
2952
- };
2953
-
2954
- var _excluded$1 = ["children", "type", "focusInset"];
3289
+ presentation: React__default.createElement(SvgFilePresentationStroke, null),
3290
+ generic: React__default.createElement(SvgFileGenericStroke, null),
3291
+ success: React__default.createElement(SvgCheckCircleStroke$1, null),
3292
+ error: React__default.createElement(SvgFileErrorStroke, null)
3293
+ };
3294
+ var fileIconsCompact = {
3295
+ pdf: React__default.createElement(SvgFilePdfStroke$1, null),
3296
+ zip: React__default.createElement(SvgFileZipStroke$1, null),
3297
+ image: React__default.createElement(SvgFileImageStroke$1, null),
3298
+ document: React__default.createElement(SvgFileDocumentStroke$1, null),
3299
+ spreadsheet: React__default.createElement(SvgFileSpreadsheetStroke$1, null),
3300
+ presentation: React__default.createElement(SvgFilePresentationStroke$1, null),
3301
+ generic: React__default.createElement(SvgFileGenericStroke$1, null),
3302
+ success: React__default.createElement(SvgCheckCircleStroke, null),
3303
+ error: React__default.createElement(SvgFileErrorStroke$1, null)
3304
+ };
3305
+
3306
+ var _excluded$1 = ["children", "type", "isCompact", "focusInset", "validation"];
2955
3307
  var File = forwardRef(function (_ref, ref) {
2956
3308
  var children = _ref.children,
2957
3309
  type = _ref.type,
3310
+ isCompact = _ref.isCompact,
2958
3311
  focusInset = _ref.focusInset,
3312
+ validation = _ref.validation,
2959
3313
  props = _objectWithoutProperties(_ref, _excluded$1);
2960
- return React__default.createElement(StyledFile, _extends$f({}, props, {
3314
+ var fileContextValue = useMemo(function () {
3315
+ return {
3316
+ isCompact: isCompact
3317
+ };
3318
+ }, [isCompact]);
3319
+ var validationType = validation || type;
3320
+ return React__default.createElement(FileContext.Provider, {
3321
+ value: fileContextValue
3322
+ }, React__default.createElement(StyledFile, _extends$t({}, props, {
3323
+ isCompact: isCompact,
2961
3324
  focusInset: focusInset,
3325
+ validation: validation,
2962
3326
  ref: ref
2963
- }), type && React__default.createElement(StyledFileIcon, null, fileIcons[type]), Children.map(children, function (child) {
3327
+ }), validationType && React__default.createElement(StyledFileIcon, {
3328
+ isCompact: isCompact
3329
+ }, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), Children.map(children, function (child) {
2964
3330
  return typeof child === 'string' ? React__default.createElement("span", null, child) : child;
2965
- }));
3331
+ })));
2966
3332
  });
2967
3333
  File.displayName = 'File';
2968
3334
  File.Close = Close;
3335
+ File.Delete = Delete;
2969
3336
  File.propTypes = {
2970
3337
  focusInset: PropTypes.bool,
2971
3338
  isCompact: PropTypes.bool,
2972
- type: PropTypes.oneOf(ARRAY_FILE_TYPE)
3339
+ type: PropTypes.oneOf(ARRAY_FILE_TYPE),
3340
+ validation: PropTypes.oneOf(['success', 'error'])
2973
3341
  };
2974
3342
 
2975
3343
  var _excluded = ["start", "end", "disabled", "isCompact", "isBare", "focusInset", "readOnly", "validation", "wrapperProps", "wrapperRef", "onSelect"],
@@ -3035,7 +3403,7 @@ var MediaInput = React__default.forwardRef(function (_ref, ref) {
3035
3403
  });
3036
3404
  isLabelHovered = fieldContext.isLabelHovered;
3037
3405
  }
3038
- return React__default.createElement(FauxInput, _extends$f({
3406
+ return React__default.createElement(FauxInput, _extends$t({
3039
3407
  tabIndex: null,
3040
3408
  onClick: onFauxInputClickHandler,
3041
3409
  onFocus: onFauxInputFocusHandler,
@@ -3072,5 +3440,6 @@ MediaInput.propTypes = {
3072
3440
  validation: PropTypes.oneOf(['success', 'warning', 'error']),
3073
3441
  wrapperProps: PropTypes.object
3074
3442
  };
3443
+ MediaInput.displayName = 'MediaInput';
3075
3444
 
3076
- export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange$1 as MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle };
3445
+ export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle };