@zendeskgarden/react-forms 9.0.0-next.12 → 9.0.0-next.14

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.
Files changed (89) hide show
  1. package/dist/esm/elements/Select.js +1 -0
  2. package/dist/esm/elements/common/Label.js +1 -1
  3. package/dist/esm/elements/faux-input/components/EndIcon.js +4 -0
  4. package/dist/esm/elements/faux-input/components/StartIcon.js +4 -0
  5. package/dist/esm/elements/file-list/components/File.js +2 -1
  6. package/dist/esm/elements/tiles/components/Tile.js +1 -3
  7. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +1 -1
  8. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +1 -1
  9. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +1 -1
  10. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +1 -1
  11. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +1 -1
  12. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +1 -1
  13. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +1 -1
  14. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +1 -1
  15. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +1 -1
  16. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +1 -1
  17. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +1 -1
  18. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +1 -1
  19. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +1 -1
  20. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +1 -1
  21. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +1 -1
  22. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +1 -1
  23. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +1 -1
  24. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
  25. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +1 -1
  26. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +1 -1
  27. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-error-stroke.svg.js +1 -1
  28. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +1 -1
  29. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +1 -1
  30. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +1 -1
  31. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +1 -1
  32. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +1 -1
  33. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +1 -1
  34. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +1 -1
  35. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +1 -1
  36. package/dist/esm/styled/checkbox/StyledCheckHint.js +1 -1
  37. package/dist/esm/styled/checkbox/StyledCheckInput.js +55 -11
  38. package/dist/esm/styled/checkbox/StyledCheckLabel.js +1 -1
  39. package/dist/esm/styled/checkbox/StyledCheckMessage.js +1 -1
  40. package/dist/esm/styled/checkbox/StyledCheckSvg.js +1 -1
  41. package/dist/esm/styled/checkbox/StyledDashSvg.js +1 -1
  42. package/dist/esm/styled/common/StyledField.js +1 -1
  43. package/dist/esm/styled/common/StyledFieldset.js +1 -1
  44. package/dist/esm/styled/common/StyledHint.js +6 -3
  45. package/dist/esm/styled/common/StyledLabel.js +6 -3
  46. package/dist/esm/styled/common/StyledLegend.js +1 -1
  47. package/dist/esm/styled/common/StyledMessage.js +33 -16
  48. package/dist/esm/styled/common/StyledMessageIcon.js +1 -1
  49. package/dist/esm/styled/file-list/StyledFile.js +49 -28
  50. package/dist/esm/styled/file-list/StyledFileClose.js +6 -3
  51. package/dist/esm/styled/file-list/StyledFileDelete.js +6 -3
  52. package/dist/esm/styled/file-list/StyledFileIcon.js +24 -4
  53. package/dist/esm/styled/file-list/StyledFileList.js +1 -1
  54. package/dist/esm/styled/file-list/StyledFileListItem.js +1 -1
  55. package/dist/esm/styled/file-upload/StyledFileUpload.js +89 -20
  56. package/dist/esm/styled/input-group/StyledInputGroup.js +1 -1
  57. package/dist/esm/styled/radio/StyledRadioHint.js +1 -1
  58. package/dist/esm/styled/radio/StyledRadioInput.js +85 -24
  59. package/dist/esm/styled/radio/StyledRadioLabel.js +1 -1
  60. package/dist/esm/styled/radio/StyledRadioMessage.js +1 -1
  61. package/dist/esm/styled/radio/StyledRadioSvg.js +1 -1
  62. package/dist/esm/styled/range/StyledRangeInput.js +83 -26
  63. package/dist/esm/styled/select/StyledSelect.js +35 -11
  64. package/dist/esm/styled/select/StyledSelectWrapper.js +11 -3
  65. package/dist/esm/styled/text/StyledTextFauxInput.js +31 -23
  66. package/dist/esm/styled/text/StyledTextInput.js +103 -58
  67. package/dist/esm/styled/text/StyledTextMediaFigure.js +35 -10
  68. package/dist/esm/styled/text/StyledTextMediaInput.js +1 -1
  69. package/dist/esm/styled/text/StyledTextarea.js +1 -1
  70. package/dist/esm/styled/tiles/StyledTile.js +93 -34
  71. package/dist/esm/styled/tiles/StyledTileDescription.js +13 -13
  72. package/dist/esm/styled/tiles/StyledTileIcon.js +52 -13
  73. package/dist/esm/styled/tiles/StyledTileInput.js +1 -1
  74. package/dist/esm/styled/tiles/StyledTileLabel.js +13 -15
  75. package/dist/esm/styled/toggle/StyledToggleHint.js +1 -1
  76. package/dist/esm/styled/toggle/StyledToggleInput.js +38 -13
  77. package/dist/esm/styled/toggle/StyledToggleLabel.js +1 -1
  78. package/dist/esm/styled/toggle/StyledToggleMessage.js +1 -1
  79. package/dist/esm/styled/toggle/StyledToggleSvg.js +1 -1
  80. package/dist/index.cjs.js +953 -415
  81. package/dist/typings/elements/faux-input/components/EndIcon.d.ts +1 -1
  82. package/dist/typings/elements/faux-input/components/StartIcon.d.ts +1 -1
  83. package/dist/typings/styled/file-list/StyledFileIcon.d.ts +7 -1
  84. package/dist/typings/styled/select/StyledSelect.d.ts +0 -3
  85. package/dist/typings/styled/select/StyledSelectWrapper.d.ts +3 -1
  86. package/dist/typings/styled/text/StyledTextFauxInput.d.ts +0 -4
  87. package/dist/typings/styled/tiles/StyledTile.d.ts +4 -7
  88. package/dist/typings/types/index.d.ts +3 -3
  89. package/package.json +5 -5
package/dist/index.cjs.js CHANGED
@@ -11,6 +11,7 @@ var containerField = require('@zendeskgarden/container-field');
11
11
  var styled = require('styled-components');
12
12
  var reactTheming = require('@zendeskgarden/react-theming');
13
13
  var polished = require('polished');
14
+ var server = require('react-dom/server');
14
15
  var PropTypes = require('prop-types');
15
16
  var containerUtilities = require('@zendeskgarden/container-utilities');
16
17
  var reactMergeRefs = require('react-merge-refs');
@@ -48,7 +49,7 @@ const useFieldContext = () => {
48
49
  const COMPONENT_ID$G = 'forms.field';
49
50
  const StyledField = styled__default.default.div.attrs({
50
51
  'data-garden-id': COMPONENT_ID$G,
51
- 'data-garden-version': '9.0.0-next.12'
52
+ 'data-garden-version': '9.0.0-next.14'
52
53
  }).withConfig({
53
54
  displayName: "StyledField",
54
55
  componentId: "sc-12gzfsu-0"
@@ -61,7 +62,7 @@ const COMPONENT_ID$F = 'forms.fieldset';
61
62
  const StyledFieldset = styled__default.default(StyledField).attrs({
62
63
  as: 'fieldset',
63
64
  'data-garden-id': COMPONENT_ID$F,
64
- 'data-garden-version': '9.0.0-next.12'
65
+ 'data-garden-version': '9.0.0-next.14'
65
66
  }).withConfig({
66
67
  displayName: "StyledFieldset",
67
68
  componentId: "sc-1vr4mxv-0"
@@ -73,11 +74,14 @@ StyledFieldset.defaultProps = {
73
74
  const COMPONENT_ID$E = 'forms.input_label';
74
75
  const StyledLabel = styled__default.default.label.attrs(props => ({
75
76
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
76
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.12'
77
+ 'data-garden-version': props['data-garden-version'] || '9.0.0-next.14'
77
78
  })).withConfig({
78
79
  displayName: "StyledLabel",
79
80
  componentId: "sc-2utmsz-0"
80
- })(["direction:", ";vertical-align:middle;line-height:", ";color:", ";font-size:", ";font-weight:", ";&[hidden]{display:", ";vertical-align:", ";text-indent:", ";font-size:", ";", ";}", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => props.isRegular ? props.theme.fontWeights.regular : props.theme.fontWeights.semibold, props => props.isRadio ? 'inline-block' : 'inline', props => props.isRadio && 'top', props => props.isRadio && '-100%', props => props.isRadio && '0', props => !props.isRadio && polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$E, props));
81
+ })(["direction:", ";vertical-align:middle;line-height:", ";color:", ";font-size:", ";font-weight:", ";&[hidden]{display:", ";vertical-align:", ";text-indent:", ";font-size:", ";", ";}", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColor({
82
+ theme: props.theme,
83
+ variable: 'foreground.default'
84
+ }), props => props.theme.fontSizes.md, props => props.isRegular ? props.theme.fontWeights.regular : props.theme.fontWeights.semibold, props => props.isRadio ? 'inline-block' : 'inline', props => props.isRadio && 'top', props => props.isRadio && '-100%', props => props.isRadio && '0', props => !props.isRadio && polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$E, props));
81
85
  StyledLabel.defaultProps = {
82
86
  theme: reactTheming.DEFAULT_THEME
83
87
  };
@@ -86,7 +90,7 @@ const COMPONENT_ID$D = 'forms.fieldset_legend';
86
90
  const StyledLegend = styled__default.default(StyledLabel).attrs({
87
91
  as: 'legend',
88
92
  'data-garden-id': COMPONENT_ID$D,
89
- 'data-garden-version': '9.0.0-next.12'
93
+ 'data-garden-version': '9.0.0-next.14'
90
94
  }).withConfig({
91
95
  displayName: "StyledLegend",
92
96
  componentId: "sc-6s0zwq-0"
@@ -98,17 +102,20 @@ StyledLegend.defaultProps = {
98
102
  const COMPONENT_ID$C = 'forms.input_hint';
99
103
  const StyledHint = styled__default.default.div.attrs(props => ({
100
104
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$C,
101
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.12'
105
+ 'data-garden-version': props['data-garden-version'] || '9.0.0-next.14'
102
106
  })).withConfig({
103
107
  displayName: "StyledHint",
104
108
  componentId: "sc-17c2wu8-0"
105
- })(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$C, props));
109
+ })(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColor({
110
+ theme: props.theme,
111
+ variable: 'foreground.subtle'
112
+ }), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$C, props));
106
113
  StyledHint.defaultProps = {
107
114
  theme: reactTheming.DEFAULT_THEME
108
115
  };
109
116
 
110
117
  var _g$2, _circle$5;
111
- function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : 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); }
118
+ function _extends$s() { return _extends$s = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$s.apply(null, arguments); }
112
119
  var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
113
120
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
114
121
  xmlns: "http://www.w3.org/2000/svg",
@@ -136,7 +143,7 @@ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
136
143
  };
137
144
 
138
145
  var _path$n, _circle$4;
139
- function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : 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); }
146
+ function _extends$r() { return _extends$r = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$r.apply(null, arguments); }
140
147
  var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
141
148
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
142
149
  xmlns: "http://www.w3.org/2000/svg",
@@ -159,7 +166,7 @@ var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
159
166
  };
160
167
 
161
168
  var _g$1;
162
- function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : 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); }
169
+ function _extends$q() { return _extends$q = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$q.apply(null, arguments); }
163
170
  var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
164
171
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
165
172
  xmlns: "http://www.w3.org/2000/svg",
@@ -203,7 +210,7 @@ const MessageIcon = _ref => {
203
210
  const COMPONENT_ID$B = 'forms.input_message_icon';
204
211
  const StyledMessageIcon = styled__default.default(MessageIcon).attrs({
205
212
  'data-garden-id': COMPONENT_ID$B,
206
- 'data-garden-version': '9.0.0-next.12',
213
+ 'data-garden-version': '9.0.0-next.14',
207
214
  'aria-hidden': null
208
215
  }).withConfig({
209
216
  displayName: "StyledMessageIcon",
@@ -213,122 +220,197 @@ StyledMessageIcon.defaultProps = {
213
220
  theme: reactTheming.DEFAULT_THEME
214
221
  };
215
222
 
216
- const validationStyles = props => {
217
- const rtl = props.theme.rtl;
218
- const padding = polished.math(`${props.theme.space.base} * 2px + ${props.theme.iconSizes.md}`);
219
- let color;
220
- if (props.validation === 'error') {
221
- color = reactTheming.getColorV8('dangerHue', 600, props.theme);
222
- } else if (props.validation === 'success') {
223
- color = reactTheming.getColorV8('successHue', 600, props.theme);
224
- } else if (props.validation === 'warning') {
225
- color = reactTheming.getColorV8('warningHue', 700, props.theme);
223
+ const COMPONENT_ID$A = 'forms.input_message';
224
+ const colorStyles$d = _ref => {
225
+ let {
226
+ theme,
227
+ validation
228
+ } = _ref;
229
+ let variable;
230
+ if (validation === 'error') {
231
+ variable = 'foreground.danger';
232
+ } else if (validation === 'success') {
233
+ variable = 'foreground.success';
234
+ } else if (validation === 'warning') {
235
+ variable = 'foreground.warning';
226
236
  } else {
227
- color = reactTheming.getColorV8('neutralHue', 700, props.theme);
237
+ variable = 'foreground.subtle';
228
238
  }
229
- return styled.css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
239
+ const foregroundColor = reactTheming.getColor({
240
+ theme,
241
+ variable
242
+ });
243
+ return styled.css(["color:", ";"], foregroundColor);
244
+ };
245
+ const sizeStyles$g = _ref2 => {
246
+ let {
247
+ theme,
248
+ validation
249
+ } = _ref2;
250
+ const fontSize = theme.fontSizes.sm;
251
+ const lineHeight = reactTheming.getLineHeight(theme.iconSizes.md, theme.fontSizes.sm);
252
+ const marginTop = `${theme.space.base}px`;
253
+ const paddingHorizontal = validation ? polished.math(`${theme.space.base * 2} + ${theme.iconSizes.md}`) : undefined;
254
+ return styled.css(["padding-", ":", ";line-height:", ";font-size:", ";", ":not([hidden]) + &{margin-top:", ";}"], theme.rtl ? 'right' : 'left', paddingHorizontal, lineHeight, fontSize, StyledLabel, marginTop);
230
255
  };
231
- const COMPONENT_ID$A = 'forms.input_message';
232
256
  const StyledMessage = styled__default.default.div.attrs(props => ({
233
257
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$A,
234
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.12'
258
+ 'data-garden-version': props['data-garden-version'] || '9.0.0-next.14'
235
259
  })).withConfig({
236
260
  displayName: "StyledMessage",
237
261
  componentId: "sc-30hgg7-0"
238
- })(["direction:", ";display:inline-block;position:relative;vertical-align:middle;line-height:", ";font-size:", ";", ";& ", "{position:absolute;top:-1px;", ":0;}", ":not([hidden]) + &{display:block;margin-top:", ";}", ";"], props => props.theme.rtl && 'rtl', props => reactTheming.getLineHeight(props.theme.iconSizes.md, props.theme.fontSizes.sm), props => props.theme.fontSizes.sm, props => validationStyles(props), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', StyledLabel, props => polished.math(`${props.theme.space.base} * 1px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$A, props));
262
+ })(["direction:", ";display:inline-block;position:relative;vertical-align:middle;", ";", ";& ", "{position:absolute;top:-1px;", ":0;}", ":not([hidden]) + &{display:block;}", ";"], props => props.theme.rtl && 'rtl', sizeStyles$g, colorStyles$d, StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', StyledLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$A, props));
239
263
  StyledMessage.defaultProps = {
240
264
  theme: reactTheming.DEFAULT_THEME
241
265
  };
242
266
 
267
+ var _path$m;
268
+ function _extends$p() { return _extends$p = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$p.apply(null, arguments); }
269
+ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
270
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
271
+ xmlns: "http://www.w3.org/2000/svg",
272
+ width: 16,
273
+ height: 16,
274
+ focusable: "false",
275
+ viewBox: "0 0 16 16",
276
+ "aria-hidden": "true"
277
+ }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
278
+ fill: "currentColor",
279
+ 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"
280
+ })));
281
+ };
282
+
243
283
  const COMPONENT_ID$z = 'forms.input';
244
284
  const isInvalid = validation => {
245
285
  return validation === 'warning' || validation === 'error';
246
286
  };
247
- const colorStyles$a = props => {
248
- const HUE = 'primaryHue';
249
- const SHADE = 600;
250
- const placeholderColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
287
+ const colorStyles$c = _ref => {
288
+ let {
289
+ theme,
290
+ isBare,
291
+ isHovered,
292
+ focusInset,
293
+ validation
294
+ } = _ref;
295
+ const foregroundColor = reactTheming.getColor({
296
+ theme,
297
+ variable: 'foreground.default'
298
+ });
299
+ const backgroundColor = isBare ? 'transparent' : reactTheming.getColor({
300
+ theme,
301
+ variable: 'background.default'
302
+ });
251
303
  let borderColor;
252
304
  let hoverBorderColor;
305
+ let borderVariable;
253
306
  let focusBorderColor;
254
- let focusRingHue = HUE;
255
- let focusRingShade = SHADE;
256
- if (props.validation) {
257
- let hue = HUE;
258
- if (props.validation === 'success') {
259
- hue = 'successHue';
260
- } else if (props.validation === 'warning') {
261
- hue = 'warningHue';
262
- focusRingShade = 700;
263
- } else if (props.validation === 'error') {
264
- hue = 'dangerHue';
307
+ if (validation) {
308
+ if (validation === 'success') {
309
+ borderVariable = 'border.successEmphasis';
310
+ } else if (validation === 'warning') {
311
+ borderVariable = 'border.warningEmphasis';
312
+ } else if (validation === 'error') {
313
+ borderVariable = 'border.dangerEmphasis';
265
314
  }
266
- borderColor = reactTheming.getColorV8(hue, SHADE, props.theme);
315
+ borderColor = reactTheming.getColor({
316
+ theme,
317
+ variable: borderVariable
318
+ });
267
319
  hoverBorderColor = borderColor;
268
320
  focusBorderColor = borderColor;
269
- focusRingHue = hue;
270
321
  } else {
271
- borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
272
- hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
322
+ borderColor = reactTheming.getColor({
323
+ theme,
324
+ variable: 'border.default',
325
+ dark: {
326
+ offset: -100
327
+ },
328
+ light: {
329
+ offset: 100
330
+ }
331
+ });
332
+ borderVariable = 'border.primaryEmphasis';
333
+ hoverBorderColor = reactTheming.getColor({
334
+ theme,
335
+ variable: borderVariable
336
+ });
273
337
  focusBorderColor = hoverBorderColor;
274
338
  }
275
- const readOnlyBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
276
- const readOnlyBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
277
- const disabledBackgroundColor = readOnlyBackgroundColor;
278
- const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
279
- const disabledForegroundColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
280
- let controlledBorderColor = borderColor;
281
- if (props.isFocused) {
282
- controlledBorderColor = focusBorderColor;
283
- }
284
- if (props.isHovered) {
285
- controlledBorderColor = hoverBorderColor;
286
- }
287
- return styled.css(["border-color:", ";background-color:", ";color:", ";&::placeholder{color:", ";}&[readonly],&[aria-readonly='true']{border-color:", ";background-color:", ";}&:hover{border-color:", ";}", " &:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], controlledBorderColor, props.isBare ? 'transparent' : reactTheming.getColorV8('background', 600 , props.theme), reactTheming.getColorV8('foreground', 600 , props.theme), placeholderColor, readOnlyBorderColor, !props.isBare && readOnlyBackgroundColor, hoverBorderColor, reactTheming.focusStyles({
288
- theme: props.theme,
289
- inset: props.focusInset,
290
- condition: !props.isBare,
339
+ const disabledBackgroundColor = isBare ? undefined : reactTheming.getColor({
340
+ theme,
341
+ variable: 'background.disabled'
342
+ });
343
+ const disabledBorderColor = reactTheming.getColor({
344
+ theme,
345
+ variable: 'border.disabled'
346
+ });
347
+ const disabledForegroundColor = reactTheming.getColor({
348
+ theme,
349
+ variable: 'foreground.disabled'
350
+ });
351
+ const placeholderColor = disabledForegroundColor;
352
+ const readOnlyBackgroundColor = disabledBackgroundColor;
353
+ const calendarPickerColor = reactTheming.getColor({
354
+ theme,
355
+ variable: 'foreground.subtle'
356
+ });
357
+ const calendarPickerIcon = server.renderToString( React__namespace.default.createElement(SvgChevronDownStroke, {
358
+ color: calendarPickerColor
359
+ }));
360
+ const calendarPickerBackgroundImage = `url("data:image/svg+xml,${encodeURIComponent(calendarPickerIcon)}")`;
361
+ return styled.css(["border-color:", ";background-color:", ";color:", ";&::placeholder{opacity:1;color:", ";}&::-webkit-datetime-edit{color:", ";}&::-webkit-calendar-picker-indicator{background-image:", ";}&[readonly],&[aria-readonly='true']{background-color:", ";}&:hover{border-color:", ";}", " &::-webkit-calendar-picker-indicator:focus-visible{", "}&:disabled,&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], isHovered ? hoverBorderColor : borderColor, backgroundColor, foregroundColor, placeholderColor, placeholderColor, calendarPickerBackgroundImage, readOnlyBackgroundColor, hoverBorderColor, reactTheming.focusStyles({
362
+ theme,
363
+ inset: focusInset,
291
364
  color: {
292
- hue: focusRingHue,
293
- shade: focusRingShade
365
+ variable: borderVariable
294
366
  },
295
367
  styles: {
296
368
  borderColor: focusBorderColor
297
- }
298
- }), disabledBorderColor, !props.isBare && disabledBackgroundColor, disabledForegroundColor);
369
+ },
370
+ condition: !isBare
371
+ }), reactTheming.focusStyles({
372
+ theme
373
+ }), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
299
374
  };
300
- const sizeStyles$c = props => {
301
- const fontSize = props.theme.fontSizes.md;
302
- const paddingHorizontal = `${props.theme.space.base * 3}px`;
375
+ const sizeStyles$f = _ref2 => {
376
+ let {
377
+ theme,
378
+ isBare,
379
+ isCompact
380
+ } = _ref2;
381
+ const fontSize = theme.fontSizes.md;
382
+ const paddingHorizontal = `${theme.space.base * 3}px`;
303
383
  let height;
304
384
  let paddingVertical;
305
385
  let browseFontSize;
306
386
  let swatchHeight;
307
- if (props.isCompact) {
308
- height = `${props.theme.space.base * 8}px`;
309
- paddingVertical = `${props.theme.space.base * 1.5}px`;
310
- browseFontSize = polished.math(`${props.theme.fontSizes.sm} - 1`);
311
- swatchHeight = `${props.theme.space.base * 6}px`;
387
+ if (isCompact) {
388
+ height = `${theme.space.base * 8}px`;
389
+ paddingVertical = `${theme.space.base * 1.5}px`;
390
+ browseFontSize = polished.math(`${theme.fontSizes.sm} - 1`);
391
+ swatchHeight = `${theme.space.base * 6}px`;
312
392
  } else {
313
- height = `${props.theme.space.base * 10}px`;
314
- paddingVertical = `${props.theme.space.base * 2.5}px`;
315
- browseFontSize = props.theme.fontSizes.sm;
316
- swatchHeight = `${props.theme.space.base * 7}px`;
393
+ height = `${theme.space.base * 10}px`;
394
+ paddingVertical = `${theme.space.base * 2.5}px`;
395
+ browseFontSize = theme.fontSizes.sm;
396
+ swatchHeight = `${theme.space.base * 7}px`;
317
397
  }
318
- const lineHeight = polished.math(`${height} - (${paddingVertical} * 2) - (${props.theme.borderWidths.sm} * 2)`);
319
- const padding = props.isBare ? '0' : `${polished.em(paddingVertical, fontSize)} ${polished.em(paddingHorizontal, fontSize)}`;
398
+ const lineHeight = polished.math(`${height} - (${paddingVertical} * 2) - (${theme.borderWidths.sm} * 2)`);
399
+ const padding = isBare ? '0' : `${polished.em(paddingVertical, fontSize)} ${polished.em(paddingHorizontal, fontSize)}`;
320
400
  const swatchMarginVertical = polished.math(`(${lineHeight} - ${swatchHeight}) / 2`);
321
401
  const swatchMarginHorizontal = polished.math(`${paddingVertical} + ${swatchMarginVertical} - ${paddingHorizontal}`);
322
- return styled.css(["padding:", ";min-height:", ";line-height:", ";font-size:", ";&::-ms-browse{font-size:", ";}&[type='date'],&[type='datetime-local'],&[type='file'],&[type='month'],&[type='time'],&[type='week']{max-height:", ";}&[type='file']{line-height:1;}@supports (-ms-ime-align:auto){&[type='color']{padding:", ";}}&::-moz-color-swatch{margin-top:", ";margin-left:", ";width:calc(100% + ", ");height:", ";}&::-webkit-color-swatch{margin:", " ", ";}", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& ~ ", "{margin-top:", "px;}"], padding, props.isBare ? '1em' : height, reactTheming.getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, props.isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, polished.math(`${swatchMarginHorizontal} * -2`), swatchHeight, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, props.theme.space.base * (props.isCompact ? 1 : 2));
402
+ const calendarPickerSize = `${theme.space.base * 5}px`;
403
+ const calendarPickerBackgroundSize = theme.iconSizes.md;
404
+ return styled.css(["padding:", ";min-height:", ";line-height:", ";font-size:", ";&::-ms-browse{font-size:", ";}&[type='date'],&[type='datetime-local'],&[type='file'],&[type='month'],&[type='time'],&[type='week']{max-height:", ";}&[type='file']{line-height:1;}@supports (-ms-ime-align:auto){&[type='color']{padding:", ";}}&::-moz-color-swatch{margin-top:", ";margin-left:", ";width:calc(100% + ", ");height:", ";}&::-webkit-calendar-picker-indicator{background-position:center;background-size:", ";padding:0;width:", ";height:", ";}&::-webkit-color-swatch{margin:", " ", ";}", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& ~ ", "{margin-top:", "px;}"], padding, isBare ? '1em' : height, reactTheming.getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, polished.math(`${swatchMarginHorizontal} * -2`), swatchHeight, calendarPickerBackgroundSize, calendarPickerSize, calendarPickerSize, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, theme.space.base * (isCompact ? 1 : 2));
323
405
  };
324
406
  const StyledTextInput = styled__default.default.input.attrs(props => ({
325
407
  'data-garden-id': COMPONENT_ID$z,
326
- 'data-garden-version': '9.0.0-next.12',
408
+ 'data-garden-version': '9.0.0-next.14',
327
409
  'aria-invalid': isInvalid(props.validation)
328
410
  })).withConfig({
329
411
  displayName: "StyledTextInput",
330
- componentId: "sc-k12n8x-0"
331
- })(["appearance:none;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,z-index 0.25s ease-in-out;direction:", ";border:", ";border-radius:", ";width:100%;box-sizing:border-box;vertical-align:middle;font-family:inherit;&::-ms-browse{border-radius:", ";}&::-ms-clear,&::-ms-reveal{display:none;}&::-moz-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-clear-button,&::-webkit-inner-spin-button,&::-webkit-search-cancel-button,&::-webkit-search-results-button{display:none;}&::-webkit-datetime-edit{direction:", ";line-height:1;}&::placeholder{opacity:1;}&:invalid{box-shadow:none;}&[type='file']::-ms-value{display:none;}@media screen and (min--moz-device-pixel-ratio:0){&[type='number']{appearance:textfield;}}", ";", ";&:disabled{cursor:default;}", ";"], props => props.theme.rtl && 'rtl', props => props.isBare ? 'none' : props.theme.borders.sm, props => props.isBare ? '0' : props.theme.borderRadii.md, props => props.theme.borderRadii.sm, props => props.theme.borderRadii.sm, props => props.theme.borderRadii.sm, props => props.theme.rtl && 'rtl', props => sizeStyles$c(props), props => colorStyles$a(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$z, props));
412
+ componentId: "sc-1r6733h-0"
413
+ })(["appearance:none;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,z-index 0.25s ease-in-out;direction:", ";border:", ";border-radius:", ";width:100%;box-sizing:border-box;vertical-align:middle;font-family:inherit;&::-ms-browse{border-radius:", ";}&::-ms-clear,&::-ms-reveal{display:none;}&::-moz-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch{border:none;border-radius:", ";}&::-webkit-color-swatch-wrapper{padding:0;}&::-webkit-clear-button,&::-webkit-inner-spin-button,&::-webkit-search-cancel-button,&::-webkit-search-results-button{display:none;}&::-webkit-datetime-edit{direction:", ";line-height:1;}&::-webkit-calendar-picker-indicator{border-radius:100%;}&:invalid{box-shadow:none;}&[type='file']::-ms-value{display:none;}@media screen and (min--moz-device-pixel-ratio:0){&[type='number']{appearance:textfield;}}", ";", ";&:disabled{cursor:default;}", ";"], props => props.theme.rtl && 'rtl', props => props.isBare ? 'none' : props.theme.borders.sm, props => props.isBare ? '0' : props.theme.borderRadii.md, props => props.theme.borderRadii.sm, props => props.theme.borderRadii.sm, props => props.theme.borderRadii.sm, props => props.theme.rtl && 'rtl', sizeStyles$f, colorStyles$c, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$z, props));
332
414
  StyledTextInput.defaultProps = {
333
415
  theme: reactTheming.DEFAULT_THEME
334
416
  };
@@ -346,7 +428,7 @@ const hiddenStyles = `
346
428
  const StyledTextarea = styled__default.default(StyledTextInput).attrs({
347
429
  as: 'textarea',
348
430
  'data-garden-id': COMPONENT_ID$y,
349
- 'data-garden-version': '9.0.0-next.12'
431
+ 'data-garden-version': '9.0.0-next.14'
350
432
  }).withConfig({
351
433
  displayName: "StyledTextarea",
352
434
  componentId: "sc-wxschl-0"
@@ -356,16 +438,41 @@ StyledTextarea.defaultProps = {
356
438
  };
357
439
 
358
440
  const COMPONENT_ID$x = 'forms.media_figure';
359
- const colorStyles$9 = props => {
360
- let shade = 600;
361
- if (props.$isDisabled) {
362
- shade = 400;
363
- } else if (props.$isHovered || props.$isFocused) {
364
- shade = 700;
441
+ const colorStyles$b = _ref => {
442
+ let {
443
+ theme,
444
+ $isDisabled,
445
+ $isHovered,
446
+ $isFocused
447
+ } = _ref;
448
+ let color;
449
+ if ($isDisabled) {
450
+ color = reactTheming.getColor({
451
+ theme,
452
+ variable: 'foreground.disabled'
453
+ });
454
+ } else {
455
+ const options = {
456
+ theme,
457
+ variable: 'foreground.subtle'
458
+ };
459
+ if ($isHovered || $isFocused) {
460
+ color = reactTheming.getColor({
461
+ ...options,
462
+ dark: {
463
+ offset: -100
464
+ },
465
+ light: {
466
+ offset: 100
467
+ }
468
+ });
469
+ } else {
470
+ color = reactTheming.getColor(options);
471
+ }
365
472
  }
366
- return styled.css(["color:", ";"], reactTheming.getColorV8('neutralHue', shade, props.theme));
473
+ return styled.css(["color:", ";"], color);
367
474
  };
368
- const sizeStyles$b = props => {
475
+ const sizeStyles$e = props => {
369
476
  const size = props.theme.iconSizes.md;
370
477
  const marginFirst = `1px ${props.theme.space.base * 2}px auto 0`;
371
478
  const marginLast = `1px 0 auto ${props.theme.space.base * 2}px`;
@@ -379,48 +486,56 @@ const sizeStyles$b = props => {
379
486
  };
380
487
  const StyledTextMediaFigure = styled__default.default(reactTheming.StyledBaseIcon).attrs({
381
488
  'data-garden-id': COMPONENT_ID$x,
382
- 'data-garden-version': '9.0.0-next.12'
489
+ 'data-garden-version': '9.0.0-next.14'
383
490
  }).withConfig({
384
491
  displayName: "StyledTextMediaFigure",
385
492
  componentId: "sc-1qepknj-0"
386
- })(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => colorStyles$9(props), props => sizeStyles$b(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props));
493
+ })(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles$e, colorStyles$b, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props));
387
494
  StyledTextMediaFigure.defaultProps = {
388
495
  theme: reactTheming.DEFAULT_THEME
389
496
  };
390
497
 
391
498
  const COMPONENT_ID$w = 'forms.faux_input';
392
- const VALIDATION_HUES = {
393
- success: 'successHue',
394
- warning: 'warningHue',
395
- error: 'dangerHue'
396
- };
397
- function getValidationHue(validation) {
398
- let defaultHue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'primaryHue';
399
- if (validation) {
400
- return VALIDATION_HUES[validation];
401
- }
402
- return defaultHue;
403
- }
404
- const colorStyles$8 = props => {
405
- const {
499
+ const colorStyles$a = _ref => {
500
+ let {
406
501
  theme,
407
502
  validation,
408
503
  focusInset,
409
504
  isBare,
410
505
  isFocused
411
- } = props;
506
+ } = _ref;
507
+ let borderVariable;
508
+ let focusBorderColor;
509
+ if (validation) {
510
+ if (validation === 'success') {
511
+ borderVariable = 'border.successEmphasis';
512
+ } else if (validation === 'warning') {
513
+ borderVariable = 'border.warningEmphasis';
514
+ } else if (validation === 'error') {
515
+ borderVariable = 'border.dangerEmphasis';
516
+ }
517
+ focusBorderColor = reactTheming.getColor({
518
+ theme,
519
+ variable: borderVariable
520
+ });
521
+ } else {
522
+ borderVariable = 'border.primaryEmphasis';
523
+ focusBorderColor = reactTheming.getColor({
524
+ theme,
525
+ variable: borderVariable
526
+ });
527
+ }
412
528
  return styled.css(["", ""], reactTheming.focusStyles({
413
529
  theme,
414
530
  inset: focusInset,
415
- condition: !isBare,
416
531
  color: {
417
- hue: getValidationHue(validation),
418
- shade: validation === 'warning' ? 700 : 600
532
+ variable: borderVariable
419
533
  },
420
534
  selector: isFocused ? '&' : '&:focus-within',
421
535
  styles: {
422
- borderColor: reactTheming.getColorV8(getValidationHue(validation), 600, theme)
423
- }
536
+ borderColor: focusBorderColor
537
+ },
538
+ condition: !isBare
424
539
  }));
425
540
  };
426
541
  const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props => ({
@@ -428,11 +543,11 @@ const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props
428
543
  'aria-readonly': props.isReadOnly,
429
544
  'aria-disabled': props.isDisabled,
430
545
  'data-garden-id': COMPONENT_ID$w,
431
- 'data-garden-version': '9.0.0-next.12'
546
+ 'data-garden-version': '9.0.0-next.14'
432
547
  })).withConfig({
433
548
  displayName: "StyledTextFauxInput",
434
549
  componentId: "sc-yqw7j9-0"
435
- })(["display:", ";align-items:", ";cursor:", ";overflow:hidden;", " & > ", "{vertical-align:", ";", "{box-shadow:unset;}}& > ", "{flex-shrink:", ";}", ";"], props => props.mediaLayout ? 'inline-flex' : 'inline-block', props => props.mediaLayout && 'baseline', props => props.mediaLayout && !props.isDisabled ? 'text' : 'default', colorStyles$8, StyledTextInput, props => !props.mediaLayout && 'baseline', reactTheming.SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.mediaLayout && '0', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
550
+ })(["display:", ";align-items:", ";cursor:", ";overflow:hidden;", " & > ", "{vertical-align:", ";", "{box-shadow:unset;}}& > ", "{flex-shrink:", ";}", ";"], props => props.mediaLayout ? 'inline-flex' : 'inline-block', props => props.mediaLayout && 'baseline', props => props.mediaLayout && !props.isDisabled ? 'text' : 'default', colorStyles$a, StyledTextInput, props => !props.mediaLayout && 'baseline', reactTheming.SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.mediaLayout && '0', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
436
551
  StyledTextFauxInput.defaultProps = {
437
552
  theme: reactTheming.DEFAULT_THEME
438
553
  };
@@ -440,7 +555,7 @@ StyledTextFauxInput.defaultProps = {
440
555
  const COMPONENT_ID$v = 'forms.media_input';
441
556
  const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
442
557
  'data-garden-id': COMPONENT_ID$v,
443
- 'data-garden-version': '9.0.0-next.12',
558
+ 'data-garden-version': '9.0.0-next.14',
444
559
  isBare: true
445
560
  }).withConfig({
446
561
  displayName: "StyledTextMediaInput",
@@ -462,7 +577,7 @@ const itemStyles = props => {
462
577
  };
463
578
  const StyledInputGroup = styled__default.default.div.attrs({
464
579
  'data-garden-id': COMPONENT_ID$u,
465
- 'data-garden-version': '9.0.0-next.12'
580
+ 'data-garden-version': '9.0.0-next.14'
466
581
  }).withConfig({
467
582
  displayName: "StyledInputGroup",
468
583
  componentId: "sc-kjh1f0-0"
@@ -472,7 +587,7 @@ StyledInputGroup.defaultProps = {
472
587
  };
473
588
 
474
589
  const COMPONENT_ID$t = 'forms.radio_label';
475
- const sizeStyles$a = props => {
590
+ const sizeStyles$d = props => {
476
591
  const size = props.theme.space.base * 4;
477
592
  const padding = size + props.theme.space.base * 2;
478
593
  const lineHeight = props.theme.space.base * 5;
@@ -480,12 +595,12 @@ const sizeStyles$a = props => {
480
595
  };
481
596
  const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
482
597
  'data-garden-id': COMPONENT_ID$t,
483
- 'data-garden-version': '9.0.0-next.12',
598
+ 'data-garden-version': '9.0.0-next.14',
484
599
  isRadio: true
485
600
  }).withConfig({
486
601
  displayName: "StyledRadioLabel",
487
602
  componentId: "sc-1aq2e5t-0"
488
- })(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$a(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
603
+ })(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$d(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
489
604
  StyledRadioLabel.defaultProps = {
490
605
  theme: reactTheming.DEFAULT_THEME
491
606
  };
@@ -493,7 +608,7 @@ StyledRadioLabel.defaultProps = {
493
608
  const COMPONENT_ID$s = 'forms.checkbox_label';
494
609
  const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
495
610
  'data-garden-id': COMPONENT_ID$s,
496
- 'data-garden-version': '9.0.0-next.12'
611
+ 'data-garden-version': '9.0.0-next.14'
497
612
  }).withConfig({
498
613
  displayName: "StyledCheckLabel",
499
614
  componentId: "sc-x7nr1-0"
@@ -505,7 +620,7 @@ StyledCheckLabel.defaultProps = {
505
620
  const COMPONENT_ID$r = 'forms.radio_hint';
506
621
  const StyledRadioHint = styled__default.default(StyledHint).attrs({
507
622
  'data-garden-id': COMPONENT_ID$r,
508
- 'data-garden-version': '9.0.0-next.12'
623
+ 'data-garden-version': '9.0.0-next.14'
509
624
  }).withConfig({
510
625
  displayName: "StyledRadioHint",
511
626
  componentId: "sc-eo8twg-0"
@@ -517,7 +632,7 @@ StyledRadioHint.defaultProps = {
517
632
  const COMPONENT_ID$q = 'forms.checkbox_hint';
518
633
  const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
519
634
  'data-garden-id': COMPONENT_ID$q,
520
- 'data-garden-version': '9.0.0-next.12'
635
+ 'data-garden-version': '9.0.0-next.14'
521
636
  }).withConfig({
522
637
  displayName: "StyledCheckHint",
523
638
  componentId: "sc-1kl8e8c-0"
@@ -527,71 +642,176 @@ StyledCheckHint.defaultProps = {
527
642
  };
528
643
 
529
644
  const COMPONENT_ID$p = 'forms.radio';
530
- const colorStyles$7 = props => {
531
- const SHADE = 600;
532
- const borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
533
- const backgroundColor = reactTheming.getColorV8('background', 600 , props.theme);
534
- const iconColor = backgroundColor;
535
- const hoverBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.08);
536
- const hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
645
+ const colorStyles$9 = _ref => {
646
+ let {
647
+ theme
648
+ } = _ref;
649
+ const borderColor = reactTheming.getColor({
650
+ theme,
651
+ variable: 'border.emphasis'
652
+ });
653
+ const backgroundColor = reactTheming.getColor({
654
+ theme,
655
+ variable: 'background.default'
656
+ });
657
+ const iconColor = reactTheming.getColor({
658
+ theme,
659
+ variable: 'foreground.onEmphasis'
660
+ });
661
+ const backgroundOptions = {
662
+ theme,
663
+ variable: 'background.primaryEmphasis'
664
+ };
665
+ const borderOptions = {
666
+ theme,
667
+ variable: 'border.primaryEmphasis'
668
+ };
669
+ const hoverBackgroundColor = reactTheming.getColor({
670
+ ...backgroundOptions,
671
+ transparency: theme.opacity[100]
672
+ });
673
+ const hoverBorderColor = reactTheming.getColor(borderOptions);
537
674
  const focusBorderColor = hoverBorderColor;
538
- const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
675
+ const activeBackgroundColor = reactTheming.getColor({
676
+ ...backgroundOptions,
677
+ transparency: theme.opacity[200]
678
+ });
539
679
  const activeBorderColor = focusBorderColor;
680
+ const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
540
681
  const checkedBorderColor = focusBorderColor;
541
- const checkedBackgroundColor = checkedBorderColor;
542
- const checkedHoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
543
- const checkedHoverBackgroundColor = checkedHoverBorderColor;
544
- const checkedActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 200, props.theme);
545
- const checkedActiveBackgroundColor = checkedActiveBorderColor;
546
- const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
682
+ const offset100 = {
683
+ dark: {
684
+ offset: -100
685
+ },
686
+ light: {
687
+ offset: 100
688
+ }
689
+ };
690
+ const offset200 = {
691
+ dark: {
692
+ offset: -200
693
+ },
694
+ light: {
695
+ offset: 200
696
+ }
697
+ };
698
+ const checkedHoverBackgroundColor = reactTheming.getColor({
699
+ ...backgroundOptions,
700
+ ...offset100
701
+ });
702
+ const checkedHoverBorderColor = reactTheming.getColor({
703
+ ...borderOptions,
704
+ ...offset100
705
+ });
706
+ const checkedActiveBackgroundColor = reactTheming.getColor({
707
+ ...backgroundOptions,
708
+ ...offset200
709
+ });
710
+ const checkedActiveBorderColor = reactTheming.getColor({
711
+ ...borderOptions,
712
+ ...offset200
713
+ });
714
+ const disabledBackgroundColor = reactTheming.getColor({
715
+ theme,
716
+ variable: 'background.disabled',
717
+ transparency: theme.opacity[300]
718
+ });
547
719
  return styled.css(["& ~ ", "::before{border-color:", ";background-color:", ";}& ~ ", " > svg{color:", ";}& ~ ", ":hover::before{border-color:", ";background-color:", ";}", " & ~ ", ":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, reactTheming.focusStyles({
548
- theme: props.theme,
720
+ theme,
549
721
  styles: {
550
722
  borderColor: focusBorderColor
551
723
  },
552
724
  selector: `&:focus-visible ~ ${StyledRadioLabel}::before`
553
725
  }), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
554
726
  };
555
- const sizeStyles$9 = props => {
556
- const lineHeight = `${props.theme.space.base * 5}px`;
557
- const size = `${props.theme.space.base * 4}px`;
727
+ const sizeStyles$c = _ref2 => {
728
+ let {
729
+ theme,
730
+ isCompact
731
+ } = _ref2;
732
+ const lineHeight = `${theme.space.base * 5}px`;
733
+ const size = `${theme.space.base * 4}px`;
558
734
  const top = polished.math(`(${lineHeight} - ${size}) / 2`);
559
- const iconSize = props.theme.iconSizes.sm;
735
+ const iconSize = theme.iconSizes.sm;
560
736
  const iconPosition = polished.math(`(${size} - ${iconSize}) / 2`);
561
737
  const iconTop = polished.math(`${iconPosition} + ${top}`);
562
- const marginTop = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
563
- return styled.css(["top:", ";width:", ";height:", ";& ~ ", "::before{top:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&& ~ ", " ~ ", "{margin-top:", ";}"], top, size, size, StyledRadioLabel, top, props.theme.iconSizes.sm, size, size, StyledRadioLabel, iconTop, props.theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledRadioLabel, StyledMessage, marginTop);
738
+ const marginTop = `${theme.space.base * (isCompact ? 1 : 2)}px`;
739
+ return styled.css(["top:", ";width:", ";height:", ";& ~ ", "::before{top:", ";border:", ";background-size:", ";width:", ";height:", ";box-sizing:border-box;}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&& ~ ", " ~ ", "{margin-top:", ";}"], top, size, size, StyledRadioLabel, top, theme.borders.sm, theme.iconSizes.sm, size, size, StyledRadioLabel, iconTop, theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledRadioLabel, StyledMessage, marginTop);
564
740
  };
565
741
  const StyledRadioInput = styled__default.default.input.attrs({
566
742
  'data-garden-id': COMPONENT_ID$p,
567
- 'data-garden-version': '9.0.0-next.12',
743
+ 'data-garden-version': '9.0.0-next.14',
568
744
  type: 'radio'
569
745
  }).withConfig({
570
746
  displayName: "StyledRadioInput",
571
747
  componentId: "sc-qsavpv-0"
572
- })(["position:absolute;opacity:0;margin:0;& ~ ", "::before{position:absolute;", ":0;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border:", ";border-radius:50%;background-repeat:no-repeat;background-position:center;content:'';}& ~ ", " > svg{position:absolute;}", ";&:focus ~ ", "::before{outline:none;}& ~ ", ":active::before{transition:border-color 0.1s ease-in-out,background-color 0.1s ease-in-out,color 0.1s ease-in-out;}", ";&:disabled ~ ", "{cursor:default;}", ";"], StyledRadioLabel, props => props.theme.rtl ? 'right' : 'left', props => props.theme.borders.sm, StyledRadioLabel, props => sizeStyles$9(props), StyledRadioLabel, StyledRadioLabel, props => colorStyles$7(props), StyledRadioLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
748
+ })(["position:absolute;opacity:0;margin:0;& ~ ", "::before{position:absolute;", ":0;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border-radius:50%;background-repeat:no-repeat;background-position:center;content:'';}& ~ ", " > svg{position:absolute;}", ";&:focus ~ ", "::before{outline:none;}& ~ ", ":active::before{transition:border-color 0.1s ease-in-out,background-color 0.1s ease-in-out,color 0.1s ease-in-out;}", ";&:disabled ~ ", "{cursor:default;}", ";"], StyledRadioLabel, props => props.theme.rtl ? 'right' : 'left', StyledRadioLabel, sizeStyles$c, StyledRadioLabel, StyledRadioLabel, colorStyles$9, StyledRadioLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
573
749
  StyledRadioInput.defaultProps = {
574
750
  theme: reactTheming.DEFAULT_THEME
575
751
  };
576
752
 
577
753
  const COMPONENT_ID$o = 'forms.checkbox';
578
- const colorStyles$6 = props => {
579
- const SHADE = 600;
580
- const indeterminateBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
581
- const indeterminateBackgroundColor = indeterminateBorderColor;
582
- const indeterminateActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
583
- const indeterminateActiveBackgroundColor = indeterminateActiveBorderColor;
584
- const indeterminateDisabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
585
- return styled.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);
754
+ const colorStyles$8 = _ref => {
755
+ let {
756
+ theme
757
+ } = _ref;
758
+ const backgroundOptions = {
759
+ theme,
760
+ variable: 'background.primaryEmphasis'
761
+ };
762
+ const borderOptions = {
763
+ theme,
764
+ variable: 'border.primaryEmphasis'
765
+ };
766
+ const indeterminateBackgroundColor = reactTheming.getColor(backgroundOptions);
767
+ const indeterminateBorderColor = reactTheming.getColor(borderOptions);
768
+ const offset100 = {
769
+ dark: {
770
+ offset: -100
771
+ },
772
+ light: {
773
+ offset: 100
774
+ }
775
+ };
776
+ const offset200 = {
777
+ dark: {
778
+ offset: -200
779
+ },
780
+ light: {
781
+ offset: 200
782
+ }
783
+ };
784
+ const indeterminateHoverBackgroundColor = reactTheming.getColor({
785
+ ...backgroundOptions,
786
+ ...offset100
787
+ });
788
+ const indeterminateHoverBorderColor = reactTheming.getColor({
789
+ ...borderOptions,
790
+ ...offset100
791
+ });
792
+ const indeterminateActiveBackgroundColor = reactTheming.getColor({
793
+ ...backgroundOptions,
794
+ ...offset200
795
+ });
796
+ const indeterminateActiveBorderColor = reactTheming.getColor({
797
+ ...borderOptions,
798
+ ...offset200
799
+ });
800
+ const indeterminateDisabledBackgroundColor = reactTheming.getColor({
801
+ theme,
802
+ variable: 'background.disabled',
803
+ transparency: theme.opacity[300]
804
+ });
805
+ return styled.css(["&:indeterminate ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:indeterminate ~ ", ":hover::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, indeterminateHoverBorderColor, indeterminateHoverBackgroundColor, StyledCheckLabel, indeterminateActiveBorderColor, indeterminateActiveBackgroundColor, StyledCheckLabel, indeterminateDisabledBackgroundColor);
586
806
  };
587
807
  const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
588
808
  'data-garden-id': COMPONENT_ID$o,
589
- 'data-garden-version': '9.0.0-next.12',
809
+ 'data-garden-version': '9.0.0-next.14',
590
810
  type: 'checkbox'
591
811
  }).withConfig({
592
812
  displayName: "StyledCheckInput",
593
813
  componentId: "sc-176jxxe-0"
594
- })(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, props => colorStyles$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
814
+ })(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, colorStyles$8, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
595
815
  StyledCheckInput.defaultProps = {
596
816
  theme: reactTheming.DEFAULT_THEME
597
817
  };
@@ -599,7 +819,7 @@ StyledCheckInput.defaultProps = {
599
819
  const COMPONENT_ID$n = 'forms.radio_message';
600
820
  const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
601
821
  'data-garden-id': COMPONENT_ID$n,
602
- 'data-garden-version': '9.0.0-next.12'
822
+ 'data-garden-version': '9.0.0-next.14'
603
823
  }).withConfig({
604
824
  displayName: "StyledRadioMessage",
605
825
  componentId: "sc-1pmi0q8-0"
@@ -611,7 +831,7 @@ StyledRadioMessage.defaultProps = {
611
831
  const COMPONENT_ID$m = 'forms.checkbox_message';
612
832
  const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
613
833
  'data-garden-id': COMPONENT_ID$m,
614
- 'data-garden-version': '9.0.0-next.12'
834
+ 'data-garden-version': '9.0.0-next.14'
615
835
  }).withConfig({
616
836
  displayName: "StyledCheckMessage",
617
837
  componentId: "sc-s4p6kd-0"
@@ -620,17 +840,17 @@ StyledCheckMessage.defaultProps = {
620
840
  theme: reactTheming.DEFAULT_THEME
621
841
  };
622
842
 
623
- var _path$m;
624
- function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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); }
843
+ var _path$l;
844
+ function _extends$o() { return _extends$o = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$o.apply(null, arguments); }
625
845
  var SvgCheckSmFill = function SvgCheckSmFill(props) {
626
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
846
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
627
847
  xmlns: "http://www.w3.org/2000/svg",
628
848
  width: 12,
629
849
  height: 12,
630
850
  focusable: "false",
631
851
  viewBox: "0 0 12 12",
632
852
  "aria-hidden": "true"
633
- }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
853
+ }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
634
854
  fill: "none",
635
855
  stroke: "currentColor",
636
856
  strokeLinecap: "round",
@@ -643,7 +863,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
643
863
  const COMPONENT_ID$l = 'forms.check_svg';
644
864
  const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
645
865
  'data-garden-id': COMPONENT_ID$l,
646
- 'data-garden-version': '9.0.0-next.12'
866
+ 'data-garden-version': '9.0.0-next.14'
647
867
  }).withConfig({
648
868
  displayName: "StyledCheckSvg",
649
869
  componentId: "sc-fvxetk-0"
@@ -652,17 +872,17 @@ StyledCheckSvg.defaultProps = {
652
872
  theme: reactTheming.DEFAULT_THEME
653
873
  };
654
874
 
655
- var _path$l;
656
- function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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); }
875
+ var _path$k;
876
+ function _extends$n() { return _extends$n = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$n.apply(null, arguments); }
657
877
  var SvgDashFill = function SvgDashFill(props) {
658
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
878
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
659
879
  xmlns: "http://www.w3.org/2000/svg",
660
880
  width: 12,
661
881
  height: 12,
662
882
  focusable: "false",
663
883
  viewBox: "0 0 12 12",
664
884
  "aria-hidden": "true"
665
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
885
+ }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
666
886
  stroke: "currentColor",
667
887
  strokeLinecap: "round",
668
888
  strokeWidth: 2,
@@ -673,7 +893,7 @@ var SvgDashFill = function SvgDashFill(props) {
673
893
  const COMPONENT_ID$k = 'forms.dash_svg';
674
894
  const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
675
895
  'data-garden-id': COMPONENT_ID$k,
676
- 'data-garden-version': '9.0.0-next.12'
896
+ 'data-garden-version': '9.0.0-next.14'
677
897
  }).withConfig({
678
898
  displayName: "StyledDashSvg",
679
899
  componentId: "sc-z3vq71-0"
@@ -683,34 +903,103 @@ StyledDashSvg.defaultProps = {
683
903
  };
684
904
 
685
905
  const COMPONENT_ID$j = 'forms.file_upload';
686
- const colorStyles$5 = props => {
687
- const baseColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
688
- const hoverColor = reactTheming.getColorV8('primaryHue', 700, props.theme);
689
- const activeColor = reactTheming.getColorV8('primaryHue', 800, props.theme);
690
- const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', 200, props.theme);
691
- const disabledForegroundColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
692
- return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";color:", ";}", " &:active{border-color:", ";background-color:", ";color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], props.isDragging ? activeColor : reactTheming.getColorV8('neutralHue', 600, props.theme), props.isDragging && polished.rgba(baseColor, 0.2), props.isDragging ? activeColor : baseColor, hoverColor, polished.rgba(baseColor, 0.08), hoverColor, reactTheming.focusStyles({
693
- theme: props.theme,
694
- color: {
695
- hue: baseColor
906
+ const colorStyles$7 = _ref => {
907
+ let {
908
+ theme,
909
+ isDragging
910
+ } = _ref;
911
+ const borderOptions = {
912
+ theme,
913
+ variable: 'border.primaryEmphasis'
914
+ };
915
+ const backgroundOptions = {
916
+ theme,
917
+ variable: 'background.primaryEmphasis'
918
+ };
919
+ const foregroundOptions = {
920
+ theme,
921
+ variable: 'foreground.primary'
922
+ };
923
+ const offset100 = {
924
+ dark: {
925
+ offset: -100
926
+ },
927
+ light: {
928
+ offset: 100
929
+ }
930
+ };
931
+ const offset200 = {
932
+ dark: {
933
+ offset: -200
934
+ },
935
+ light: {
936
+ offset: 200
696
937
  }
697
- }), activeColor, polished.rgba(baseColor, 0.2), activeColor, disabledForegroundColor, disabledBackgroundColor, disabledForegroundColor);
938
+ };
939
+ const borderColor = reactTheming.getColor({
940
+ theme,
941
+ variable: 'border.emphasis'
942
+ });
943
+ const foregroundColor = reactTheming.getColor(foregroundOptions);
944
+ const hoverBorderColor = reactTheming.getColor({
945
+ ...borderOptions,
946
+ ...offset100
947
+ });
948
+ const hoverBackgroundColor = reactTheming.getColor({
949
+ ...backgroundOptions,
950
+ transparency: theme.opacity[100]
951
+ });
952
+ const hoverForegroundColor = reactTheming.getColor({
953
+ ...foregroundOptions,
954
+ ...offset100
955
+ });
956
+ const activeBorderColor = reactTheming.getColor({
957
+ ...borderOptions,
958
+ ...offset200
959
+ });
960
+ const activeBackgroundColor = reactTheming.getColor({
961
+ ...backgroundOptions,
962
+ transparency: theme.opacity[200]
963
+ });
964
+ const activeForegroundColor = reactTheming.getColor({
965
+ ...foregroundOptions,
966
+ ...offset200
967
+ });
968
+ const disabledBorderColor = reactTheming.getColor({
969
+ theme,
970
+ variable: 'border.disabled'
971
+ });
972
+ const disabledBackgroundColor = reactTheming.getColor({
973
+ theme,
974
+ variable: 'background.disabled'
975
+ });
976
+ const disabledForegroundColor = reactTheming.getColor({
977
+ theme,
978
+ variable: 'foreground.disabled'
979
+ });
980
+ return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";color:", ";}", " &:active{border-color:", ";background-color:", ";color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], isDragging ? activeBorderColor : borderColor, isDragging ? activeBackgroundColor : undefined, isDragging ? activeForegroundColor : foregroundColor, hoverBorderColor, hoverBackgroundColor, hoverForegroundColor, reactTheming.focusStyles({
981
+ theme
982
+ }), activeBorderColor, activeBackgroundColor, activeForegroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
698
983
  };
699
- const sizeStyles$8 = props => {
700
- const marginTop = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
701
- const paddingHorizontal = `${props.isCompact ? 2 : 4}em`;
702
- const paddingVertical = polished.math(`${props.theme.space.base * (props.isCompact ? 2.5 : 5)} - ${props.theme.borderWidths.sm}`);
703
- const fontSize = props.theme.fontSizes.md;
704
- const lineHeight = reactTheming.getLineHeight(props.theme.space.base * 5, fontSize);
984
+ const sizeStyles$b = _ref2 => {
985
+ let {
986
+ theme,
987
+ isCompact
988
+ } = _ref2;
989
+ const marginTop = `${theme.space.base * (isCompact ? 1 : 2)}px`;
990
+ const paddingHorizontal = `${isCompact ? 2 : 4}em`;
991
+ const paddingVertical = polished.math(`${theme.space.base * (isCompact ? 2.5 : 5)} - ${theme.borderWidths.sm}`);
992
+ const fontSize = theme.fontSizes.md;
993
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
705
994
  return styled.css(["padding:", " ", ";min-width:4em;line-height:", ";font-size:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], paddingVertical, paddingHorizontal, lineHeight, fontSize, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
706
995
  };
707
996
  const StyledFileUpload = styled__default.default.div.attrs({
708
997
  'data-garden-id': COMPONENT_ID$j,
709
- 'data-garden-version': '9.0.0-next.12'
998
+ 'data-garden-version': '9.0.0-next.14'
710
999
  }).withConfig({
711
1000
  displayName: "StyledFileUpload",
712
1001
  componentId: "sc-1rodjgn-0"
713
- })(["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;", ";&[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => props.theme.borderWidths.sm, props => props.theme.borderRadii.md, sizeStyles$8, colorStyles$5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
1002
+ })(["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;", ";&[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => props.theme.borderWidths.sm, props => props.theme.borderRadii.md, sizeStyles$b, colorStyles$7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
714
1003
  StyledFileUpload.defaultProps = {
715
1004
  theme: reactTheming.DEFAULT_THEME
716
1005
  };
@@ -718,53 +1007,77 @@ StyledFileUpload.defaultProps = {
718
1007
  const COMPONENT_ID$i = 'forms.file.close';
719
1008
  const StyledFileClose = styled__default.default.button.attrs({
720
1009
  'data-garden-id': COMPONENT_ID$i,
721
- 'data-garden-version': '9.0.0-next.12'
1010
+ 'data-garden-version': '9.0.0-next.14'
722
1011
  }).withConfig({
723
1012
  displayName: "StyledFileClose",
724
1013
  componentId: "sc-1m31jbf-0"
725
- })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;border:none;background:transparent;cursor:pointer;color:", ";appearance:none;&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], props => reactTheming.getColorV8('foreground', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
1014
+ })(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:opacity 0.25s ease-in-out;opacity:0.8;border:none;background:transparent;cursor:pointer;color:", ";appearance:none;&:hover{opacity:0.9;}&:focus{outline:none;}", ";"], props => reactTheming.getColor({
1015
+ theme: props.theme,
1016
+ variable: 'foreground.subtle'
1017
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
726
1018
  StyledFileClose.defaultProps = {
727
1019
  theme: reactTheming.DEFAULT_THEME
728
1020
  };
729
1021
 
730
1022
  const COMPONENT_ID$h = 'forms.file';
731
- const colorStyles$4 = props => {
732
- let borderColor;
733
- let focusBorderColor;
734
- let foregroundColor;
735
- if (props.validation === 'success') {
736
- borderColor = reactTheming.getColorV8('successHue', 600, props.theme);
737
- focusBorderColor = borderColor;
738
- foregroundColor = borderColor;
739
- } else if (props.validation === 'error') {
740
- borderColor = reactTheming.getColorV8('dangerHue', 600, props.theme);
741
- focusBorderColor = borderColor;
742
- foregroundColor = borderColor;
1023
+ const colorStyles$6 = _ref => {
1024
+ let {
1025
+ theme,
1026
+ focusInset,
1027
+ validation
1028
+ } = _ref;
1029
+ let borderVariable;
1030
+ let focusBorderVariable;
1031
+ let foregroundVariable;
1032
+ if (validation === 'success') {
1033
+ borderVariable = 'border.successEmphasis';
1034
+ focusBorderVariable = borderVariable;
1035
+ foregroundVariable = 'foreground.success';
1036
+ } else if (validation === 'error') {
1037
+ borderVariable = 'border.dangerEmphasis';
1038
+ focusBorderVariable = borderVariable;
1039
+ foregroundVariable = 'foreground.danger';
743
1040
  } else {
744
- borderColor = reactTheming.getColorV8('neutralHue', 300, props.theme);
745
- focusBorderColor = reactTheming.getColorV8('primaryHue', 600, props.theme);
746
- foregroundColor = reactTheming.getColorV8('foreground', 600 , props.theme);
1041
+ borderVariable = 'border.default';
1042
+ focusBorderVariable = 'border.primaryEmphasis';
1043
+ foregroundVariable = 'foreground.default';
747
1044
  }
1045
+ const borderColor = reactTheming.getColor({
1046
+ theme,
1047
+ variable: borderVariable
1048
+ });
1049
+ const focusBorderColor = reactTheming.getColor({
1050
+ theme,
1051
+ variable: focusBorderVariable
1052
+ });
1053
+ const foregroundColor = reactTheming.getColor({
1054
+ theme,
1055
+ variable: foregroundVariable
1056
+ });
748
1057
  return styled.css(["border-color:", ";color:", ";", ""], borderColor, foregroundColor, reactTheming.focusStyles({
749
- theme: props.theme,
750
- inset: props.focusInset,
1058
+ theme,
1059
+ inset: focusInset,
751
1060
  color: {
752
- hue: focusBorderColor
1061
+ variable: focusBorderVariable
753
1062
  },
754
1063
  styles: {
755
1064
  borderColor: focusBorderColor
756
1065
  }
757
1066
  }));
758
1067
  };
759
- const sizeStyles$7 = props => {
760
- const size = `${props.theme.space.base * (props.isCompact ? 7 : 10)}px`;
761
- const spacing = `${props.theme.space.base * (props.isCompact ? 2 : 3)}px`;
762
- const fontSize = props.theme.fontSizes.md;
763
- const lineHeight = reactTheming.getLineHeight(props.theme.space.base * 5, fontSize);
1068
+ const sizeStyles$a = _ref2 => {
1069
+ let {
1070
+ theme,
1071
+ isCompact
1072
+ } = _ref2;
1073
+ const size = `${theme.space.base * (isCompact ? 7 : 10)}px`;
1074
+ const spacing = `${theme.space.base * (isCompact ? 2 : 3)}px`;
1075
+ const fontSize = theme.fontSizes.md;
1076
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
764
1077
  return `
765
1078
  box-sizing: border-box;
766
- border: ${props.theme.borders.sm};
767
- border-radius: ${props.theme.borderRadii.md};
1079
+ border: ${theme.borders.sm};
1080
+ border-radius: ${theme.borderRadii.md};
768
1081
  padding: 0 ${spacing};
769
1082
  height: ${size};
770
1083
  line-height: ${lineHeight};
@@ -777,17 +1090,17 @@ const sizeStyles$7 = props => {
777
1090
  & > ${StyledFileClose} {
778
1091
  width: ${size};
779
1092
  height: ${size};
780
- margin-${props.theme.rtl ? 'left' : 'right'}: -${spacing};
1093
+ margin-${theme.rtl ? 'left' : 'right'}: -${spacing};
781
1094
  }
782
1095
  `;
783
1096
  };
784
1097
  const StyledFile = styled__default.default.div.attrs({
785
1098
  'data-garden-id': COMPONENT_ID$h,
786
- 'data-garden-version': '9.0.0-next.12'
1099
+ 'data-garden-version': '9.0.0-next.14'
787
1100
  }).withConfig({
788
1101
  displayName: "StyledFile",
789
1102
  componentId: "sc-195lzp1-0"
790
- })(["display:flex;position:relative;flex-wrap:nowrap;align-items:center;transition:box-shadow 0.1s ease-in-out;", ";", ";& > 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$7, colorStyles$4, props => props.theme.rtl ? 'right' : 'left', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
1103
+ })(["display:flex;position:relative;flex-wrap:nowrap;align-items:center;transition:box-shadow 0.1s ease-in-out;", ";", ";& > 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, props => props.theme.rtl ? 'right' : 'left', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
791
1104
  StyledFile.defaultProps = {
792
1105
  theme: reactTheming.DEFAULT_THEME
793
1106
  };
@@ -795,23 +1108,46 @@ StyledFile.defaultProps = {
795
1108
  const COMPONENT_ID$g = 'forms.file.delete';
796
1109
  const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
797
1110
  'data-garden-id': COMPONENT_ID$g,
798
- 'data-garden-version': '9.0.0-next.12'
1111
+ 'data-garden-version': '9.0.0-next.14'
799
1112
  }).withConfig({
800
1113
  displayName: "StyledFileDelete",
801
1114
  componentId: "sc-a8nnhx-0"
802
- })(["color:", ";", ";"], props => reactTheming.getColorV8('dangerHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
1115
+ })(["color:", ";", ";"], props => reactTheming.getColor({
1116
+ theme: props.theme,
1117
+ variable: 'foreground.danger'
1118
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
803
1119
  StyledFileDelete.defaultProps = {
804
1120
  theme: reactTheming.DEFAULT_THEME
805
1121
  };
806
1122
 
807
1123
  const COMPONENT_ID$f = 'forms.file.icon';
1124
+ const colorStyles$5 = _ref => {
1125
+ let {
1126
+ theme,
1127
+ $validation
1128
+ } = _ref;
1129
+ const color = $validation ? undefined : reactTheming.getColor({
1130
+ theme,
1131
+ variable: 'foreground.subtle'
1132
+ });
1133
+ return styled.css(["color:", ";"], color);
1134
+ };
1135
+ const sizeStyles$9 = _ref2 => {
1136
+ let {
1137
+ $isCompact,
1138
+ theme
1139
+ } = _ref2;
1140
+ const width = $isCompact ? theme.iconSizes.sm : theme.iconSizes.md;
1141
+ const margin = `${theme.space.base * 2}px`;
1142
+ return styled.css(["width:", ";margin-", ":", ";"], width, theme.rtl ? 'left' : 'right', margin);
1143
+ };
808
1144
  const StyledFileIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
809
1145
  'data-garden-id': COMPONENT_ID$f,
810
- 'data-garden-version': '9.0.0-next.12'
1146
+ 'data-garden-version': '9.0.0-next.14'
811
1147
  }).withConfig({
812
1148
  displayName: "StyledFileIcon",
813
1149
  componentId: "sc-7b3q0c-0"
814
- })(["flex-shrink:0;width:", ";margin-", ":", "px;", ";"], props => props.$isCompact ? props.theme.iconSizes.sm : props.theme.iconSizes.md, props => props.theme.rtl ? 'left' : 'right', props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
1150
+ })(["flex-shrink:0;", ";", ";", ";"], sizeStyles$9, colorStyles$5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
815
1151
  StyledFileIcon.defaultProps = {
816
1152
  theme: reactTheming.DEFAULT_THEME
817
1153
  };
@@ -819,7 +1155,7 @@ StyledFileIcon.defaultProps = {
819
1155
  const COMPONENT_ID$e = 'forms.file_list';
820
1156
  const StyledFileList = styled__default.default.ul.attrs({
821
1157
  'data-garden-id': COMPONENT_ID$e,
822
- 'data-garden-version': '9.0.0-next.12'
1158
+ 'data-garden-version': '9.0.0-next.14'
823
1159
  }).withConfig({
824
1160
  displayName: "StyledFileList",
825
1161
  componentId: "sc-gbahjg-0"
@@ -831,7 +1167,7 @@ StyledFileList.defaultProps = {
831
1167
  const COMPONENT_ID$d = 'forms.file_list.item';
832
1168
  const StyledFileListItem = styled__default.default.li.attrs({
833
1169
  'data-garden-id': COMPONENT_ID$d,
834
- 'data-garden-version': '9.0.0-next.12'
1170
+ 'data-garden-version': '9.0.0-next.14'
835
1171
  }).withConfig({
836
1172
  displayName: "StyledFileListItem",
837
1173
  componentId: "sc-1ova3lo-0"
@@ -841,9 +1177,9 @@ StyledFileListItem.defaultProps = {
841
1177
  };
842
1178
 
843
1179
  var _circle$3;
844
- function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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); }
1180
+ function _extends$m() { return _extends$m = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$m.apply(null, arguments); }
845
1181
  var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
846
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
1182
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
847
1183
  xmlns: "http://www.w3.org/2000/svg",
848
1184
  width: 12,
849
1185
  height: 12,
@@ -861,7 +1197,7 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
861
1197
  const COMPONENT_ID$c = 'forms.radio_svg';
862
1198
  const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
863
1199
  'data-garden-id': COMPONENT_ID$c,
864
- 'data-garden-version': '9.0.0-next.12'
1200
+ 'data-garden-version': '9.0.0-next.14'
865
1201
  }).withConfig({
866
1202
  displayName: "StyledRadioSvg",
867
1203
  componentId: "sc-1r1qtr1-0"
@@ -871,18 +1207,18 @@ StyledRadioSvg.defaultProps = {
871
1207
  };
872
1208
 
873
1209
  const COMPONENT_ID$b = 'forms.toggle_label';
874
- const sizeStyles$6 = props => {
1210
+ const sizeStyles$8 = props => {
875
1211
  const size = props.theme.space.base * 10;
876
1212
  const padding = size + props.theme.space.base * 2;
877
1213
  return styled.css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size);
878
1214
  };
879
1215
  const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
880
1216
  'data-garden-id': COMPONENT_ID$b,
881
- 'data-garden-version': '9.0.0-next.12'
1217
+ 'data-garden-version': '9.0.0-next.14'
882
1218
  }).withConfig({
883
1219
  displayName: "StyledToggleLabel",
884
1220
  componentId: "sc-e0asdk-0"
885
- })(["", ";", ";"], props => sizeStyles$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
1221
+ })(["", ";", ";"], props => sizeStyles$8(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
886
1222
  StyledToggleLabel.defaultProps = {
887
1223
  theme: reactTheming.DEFAULT_THEME
888
1224
  };
@@ -890,7 +1226,7 @@ StyledToggleLabel.defaultProps = {
890
1226
  const COMPONENT_ID$a = 'forms.toggle_hint';
891
1227
  const StyledToggleHint = styled__default.default(StyledHint).attrs({
892
1228
  'data-garden-id': COMPONENT_ID$a,
893
- 'data-garden-version': '9.0.0-next.12'
1229
+ 'data-garden-version': '9.0.0-next.14'
894
1230
  }).withConfig({
895
1231
  displayName: "StyledToggleHint",
896
1232
  componentId: "sc-nziggu-0"
@@ -900,28 +1236,53 @@ StyledToggleHint.defaultProps = {
900
1236
  };
901
1237
 
902
1238
  const COMPONENT_ID$9 = 'forms.toggle';
903
- const colorStyles$3 = props => {
904
- const SHADE = 600;
905
- const backgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 100, props.theme);
906
- const hoverBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE, props.theme);
907
- const activeBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE + 100, props.theme);
1239
+ const colorStyles$4 = _ref => {
1240
+ let {
1241
+ theme
1242
+ } = _ref;
1243
+ const backgroundOptions = {
1244
+ theme,
1245
+ variable: 'background.emphasis'
1246
+ };
1247
+ const backgroundColor = reactTheming.getColor(backgroundOptions);
1248
+ const hoverBackgroundColor = reactTheming.getColor({
1249
+ ...backgroundOptions,
1250
+ dark: {
1251
+ offset: -100
1252
+ },
1253
+ light: {
1254
+ offset: 100
1255
+ }
1256
+ });
1257
+ const activeBackgroundColor = reactTheming.getColor({
1258
+ ...backgroundOptions,
1259
+ dark: {
1260
+ offset: -200
1261
+ },
1262
+ light: {
1263
+ offset: 200
1264
+ }
1265
+ });
908
1266
  return styled.css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
909
1267
  };
910
- const sizeStyles$5 = props => {
911
- const height = `${props.theme.space.base * 5}px`;
912
- const width = `${props.theme.space.base * 10}px`;
913
- const iconSize = props.theme.iconSizes.md;
1268
+ const sizeStyles$7 = _ref2 => {
1269
+ let {
1270
+ theme
1271
+ } = _ref2;
1272
+ const height = `${theme.space.base * 5}px`;
1273
+ const width = `${theme.space.base * 10}px`;
1274
+ const iconSize = theme.iconSizes.md;
914
1275
  const iconPosition = polished.math(`(${height} - ${iconSize}) / 2`);
915
1276
  const checkedIconPosition = polished.math(`${width} - ${iconSize} - ${iconPosition}`);
916
- return styled.css(["top:0;width:", ";height:", ";& ~ ", "::before{width:", ";height:", ";}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&:checked ~ ", " > svg{", ":", ";}"], width, height, StyledToggleLabel, width, height, StyledToggleLabel, iconPosition, props.theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledToggleLabel, props.theme.rtl ? 'right' : 'left', checkedIconPosition);
1277
+ return styled.css(["top:0;width:", ";height:", ";& ~ ", "::before{width:", ";height:", ";}& ~ ", " > svg{top:", ";", ":", ";width:", ";height:", ";}&:checked ~ ", " > svg{", ":", ";}"], width, height, StyledToggleLabel, width, height, StyledToggleLabel, iconPosition, theme.rtl ? 'right' : 'left', iconPosition, iconSize, iconSize, StyledToggleLabel, theme.rtl ? 'right' : 'left', checkedIconPosition);
917
1278
  };
918
1279
  const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
919
1280
  'data-garden-id': COMPONENT_ID$9,
920
- 'data-garden-version': '9.0.0-next.12'
1281
+ 'data-garden-version': '9.0.0-next.14'
921
1282
  }).withConfig({
922
1283
  displayName: "StyledToggleInput",
923
1284
  componentId: "sc-sgp47s-0"
924
- })(["& ~ ", "::before{top:0;transition:box-shadow .1s ease-in-out,background-color .15s ease-in-out,color .25s ease-in-out;border:none;border-radius:100px;}", ";", ";", ";"], StyledToggleLabel, props => sizeStyles$5(props), props => colorStyles$3(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
1285
+ })(["& ~ ", "::before{top:0;transition:box-shadow .1s ease-in-out,background-color .15s ease-in-out,color .25s ease-in-out;border:none;border-radius:100px;}", ";", ";", ";"], StyledToggleLabel, sizeStyles$7, colorStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
925
1286
  StyledToggleInput.defaultProps = {
926
1287
  theme: reactTheming.DEFAULT_THEME
927
1288
  };
@@ -929,7 +1290,7 @@ StyledToggleInput.defaultProps = {
929
1290
  const COMPONENT_ID$8 = 'forms.toggle_message';
930
1291
  const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
931
1292
  'data-garden-id': COMPONENT_ID$8,
932
- 'data-garden-version': '9.0.0-next.12'
1293
+ 'data-garden-version': '9.0.0-next.14'
933
1294
  }).withConfig({
934
1295
  displayName: "StyledToggleMessage",
935
1296
  componentId: "sc-13vuvl1-0"
@@ -939,9 +1300,9 @@ StyledToggleMessage.defaultProps = {
939
1300
  };
940
1301
 
941
1302
  var _circle$2;
942
- function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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); }
1303
+ function _extends$l() { return _extends$l = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$l.apply(null, arguments); }
943
1304
  var SvgCircleSmFill = function SvgCircleSmFill(props) {
944
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
1305
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
945
1306
  xmlns: "http://www.w3.org/2000/svg",
946
1307
  width: 16,
947
1308
  height: 16,
@@ -959,7 +1320,7 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
959
1320
  const COMPONENT_ID$7 = 'forms.toggle_svg';
960
1321
  const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
961
1322
  'data-garden-id': COMPONENT_ID$7,
962
- 'data-garden-version': '9.0.0-next.12'
1323
+ 'data-garden-version': '9.0.0-next.14'
963
1324
  }).withConfig({
964
1325
  displayName: "StyledToggleSvg",
965
1326
  componentId: "sc-162xbyx-0"
@@ -969,36 +1330,68 @@ StyledToggleSvg.defaultProps = {
969
1330
  };
970
1331
 
971
1332
  const COMPONENT_ID$6 = 'forms.select';
972
- const colorStyles$2 = props => {
973
- const color = reactTheming.getColorV8('neutralHue', 700, props.theme);
974
- return styled.css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color);
1333
+ const colorStyles$3 = _ref => {
1334
+ let {
1335
+ theme
1336
+ } = _ref;
1337
+ const color = reactTheming.getColor({
1338
+ theme,
1339
+ variable: 'foreground.subtle',
1340
+ dark: {
1341
+ offset: -100
1342
+ },
1343
+ light: {
1344
+ offset: 100
1345
+ }
1346
+ });
1347
+ const disabledColor = reactTheming.getColor({
1348
+ theme,
1349
+ variable: 'foreground.disabled'
1350
+ });
1351
+ return styled.css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", "{color:", ";}&:disabled + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color, StyledTextMediaFigure, disabledColor);
975
1352
  };
976
- const sizeStyles$4 = props => {
977
- const padding = polished.math(`${props.theme.iconSizes.md} + ${props.theme.space.base * 5}`);
978
- const iconVerticalPosition = `${props.theme.space.base * (props.isCompact ? 1.5 : 2.5) + 1}px`;
979
- const iconHorizontalPosition = `${props.theme.space.base * 3}px`;
980
- return styled.css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], props.theme.rtl ? 'left' : 'right', !props.isBare && padding, StyledTextMediaFigure, iconVerticalPosition, props.theme.rtl ? 'left' : 'right', iconHorizontalPosition);
1353
+ const sizeStyles$6 = _ref2 => {
1354
+ let {
1355
+ theme,
1356
+ isBare,
1357
+ isCompact
1358
+ } = _ref2;
1359
+ const padding = isBare ? undefined : polished.math(`${theme.iconSizes.md} + ${theme.space.base * 5}`);
1360
+ const iconVerticalPosition = `${theme.space.base * (isCompact ? 1.5 : 2.5) + 1}px`;
1361
+ const iconHorizontalPosition = `${theme.space.base * 3}px`;
1362
+ return styled.css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], theme.rtl ? 'left' : 'right', padding, StyledTextMediaFigure, iconVerticalPosition, theme.rtl ? 'left' : 'right', iconHorizontalPosition);
981
1363
  };
982
1364
  const StyledSelect = styled__default.default(StyledTextInput).attrs({
983
1365
  'data-garden-id': COMPONENT_ID$6,
984
- 'data-garden-version': '9.0.0-next.12',
1366
+ 'data-garden-version': '9.0.0-next.14',
985
1367
  as: 'select'
986
1368
  }).withConfig({
987
1369
  displayName: "StyledSelect",
988
1370
  componentId: "sc-8xdxpt-0"
989
- })(["cursor:pointer;text-overflow:ellipsis;", ";", ";&::-ms-expand{display:none;}&::-ms-value{background-color:transparent;color:inherit;}&:-moz-focusring{transition:none;text-shadow:0 0 0 ", ";color:transparent;}& + ", "{position:absolute;pointer-events:none;}"], props => sizeStyles$4(props), props => colorStyles$2(props), props => reactTheming.getColorV8('foreground', 600 , props.theme), StyledTextMediaFigure);
1371
+ })(["cursor:pointer;text-overflow:ellipsis;", ";", ";&::-ms-expand{display:none;}&::-ms-value{background-color:transparent;color:inherit;}&:-moz-focusring{transition:none;text-shadow:0 0 0 ", ";color:transparent;}& + ", "{position:absolute;pointer-events:none;}"], sizeStyles$6, colorStyles$3, props => reactTheming.getColor({
1372
+ theme: props.theme,
1373
+ variable: 'foreground.default'
1374
+ }), StyledTextMediaFigure);
990
1375
  StyledSelect.defaultProps = {
991
1376
  theme: reactTheming.DEFAULT_THEME
992
1377
  };
993
1378
 
994
1379
  const COMPONENT_ID$5 = 'forms.select_wrapper';
1380
+ const sizeStyles$5 = _ref => {
1381
+ let {
1382
+ theme,
1383
+ isCompact
1384
+ } = _ref;
1385
+ const height = `${theme.space.base * (isCompact ? 8 : 10)}px`;
1386
+ return styled.css(["max-height:", ";"], height);
1387
+ };
995
1388
  const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
996
1389
  'data-garden-id': COMPONENT_ID$5,
997
- 'data-garden-version': '9.0.0-next.12'
1390
+ 'data-garden-version': '9.0.0-next.14'
998
1391
  }).withConfig({
999
1392
  displayName: "StyledSelectWrapper",
1000
1393
  componentId: "sc-i7b6hw-0"
1001
- })(["position:relative;padding:0;overflow:visible;& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
1394
+ })(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles$5, StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
1002
1395
  StyledSelectWrapper.defaultProps = {
1003
1396
  theme: reactTheming.DEFAULT_THEME
1004
1397
  };
@@ -1048,28 +1441,81 @@ const trackLowerStyles = function (styles) {
1048
1441
  }
1049
1442
  `;
1050
1443
  };
1051
- const colorStyles$1 = props => {
1052
- const SHADE = 600;
1053
- const thumbBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
1444
+ const colorStyles$2 = _ref => {
1445
+ let {
1446
+ theme,
1447
+ hasLowerTrack
1448
+ } = _ref;
1449
+ const options = {
1450
+ theme,
1451
+ variable: 'background.primaryEmphasis'
1452
+ };
1453
+ const thumbBackgroundColor = reactTheming.getColor(options);
1054
1454
  const thumbBorderColor = thumbBackgroundColor;
1055
- const thumbBoxShadow = props.theme.shadows.lg(polished.math(`${props.theme.space.base} * 1px`), polished.math(`${props.theme.space.base} * 2px`), reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme, 0.24));
1455
+ const thumbBoxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColor({
1456
+ theme,
1457
+ hue: 'neutralHue',
1458
+ shade: 1200,
1459
+ dark: {
1460
+ transparency: theme.opacity[1100]
1461
+ },
1462
+ light: {
1463
+ transparency: theme.opacity[200]
1464
+ }
1465
+ }));
1056
1466
  const thumbFocusBoxShadow = reactTheming.getFocusBoxShadow({
1057
- theme: props.theme
1467
+ theme
1468
+ });
1469
+ const thumbActiveBackgroundColor = reactTheming.getColor({
1470
+ ...options,
1471
+ dark: {
1472
+ offset: -200
1473
+ },
1474
+ light: {
1475
+ offset: 200
1476
+ }
1058
1477
  });
1059
- const thumbActiveBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
1060
1478
  const thumbActiveBorderColor = thumbBorderColor;
1061
- const thumbDisabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
1479
+ const thumbDisabledBackgroundColor = reactTheming.getColor({
1480
+ theme,
1481
+ variable: 'border.emphasis'
1482
+ });
1062
1483
  const thumbDisabledBorderColor = thumbDisabledBackgroundColor;
1063
- const thumbHoverBackgroundColor = thumbActiveBackgroundColor;
1484
+ const thumbHoverBackgroundColor = reactTheming.getColor({
1485
+ ...options,
1486
+ dark: {
1487
+ offset: -100
1488
+ },
1489
+ light: {
1490
+ offset: 100
1491
+ }
1492
+ });
1064
1493
  const thumbHoverBorderColor = thumbHoverBackgroundColor;
1065
- const trackBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
1066
- const trackLowerBackgroundColor = props.hasLowerTrack ? thumbBackgroundColor : '';
1067
- const trackBackgroundImage = props.hasLowerTrack ? `linear-gradient(${trackLowerBackgroundColor}, ${trackLowerBackgroundColor})` : '';
1068
- const trackDisabledLowerBackgroundColor = props.hasLowerTrack ? thumbDisabledBackgroundColor : '';
1069
- const trackDisabledBackgroundImage = props.hasLowerTrack ? `linear-gradient(${trackDisabledLowerBackgroundColor}, ${trackDisabledLowerBackgroundColor})` : '';
1494
+ const trackBackgroundColor = reactTheming.getColor({
1495
+ theme,
1496
+ variable: 'border.emphasis',
1497
+ dark: {
1498
+ offset: 100
1499
+ },
1500
+ light: {
1501
+ offset: -200
1502
+ }
1503
+ });
1504
+ const trackLowerBackgroundColor = hasLowerTrack ? thumbBackgroundColor : '';
1505
+ const trackBackgroundImage = hasLowerTrack ? `linear-gradient(${trackLowerBackgroundColor}, ${trackLowerBackgroundColor})` : '';
1506
+ const trackDisabledBackgroundColor = reactTheming.getColor({
1507
+ theme,
1508
+ variable: 'background.disabled',
1509
+ transparency: theme.opacity[200]
1510
+ });
1511
+ const trackDisabledLowerBackgroundColor = hasLowerTrack ? reactTheming.getColor({
1512
+ theme,
1513
+ variable: 'border.emphasis'
1514
+ }) : '';
1515
+ const trackDisabledBackgroundImage = hasLowerTrack ? `linear-gradient(${trackDisabledLowerBackgroundColor}, ${trackDisabledLowerBackgroundColor})` : '';
1070
1516
  return styled.css(["", " ", " ", " ", " ", " ", " ", " ", " ", ""], trackStyles(`
1071
1517
  background-color: ${trackBackgroundColor};
1072
- background-image: ${trackBackgroundImage}; /* provide means for styling lower range on WebKit */
1518
+ background-image: ${trackBackgroundImage}; /* [1] */
1073
1519
  `), thumbStyles(`
1074
1520
  border-color: ${thumbBorderColor};
1075
1521
  box-shadow: ${thumbBoxShadow};
@@ -1088,6 +1534,7 @@ const colorStyles$1 = props => {
1088
1534
  border-color: ${thumbActiveBorderColor};
1089
1535
  background-color: ${thumbActiveBackgroundColor};
1090
1536
  `, ':active'), trackStyles(`
1537
+ background-color: ${trackDisabledBackgroundColor};
1091
1538
  background-image: ${trackDisabledBackgroundImage};
1092
1539
  `, ':disabled'), thumbStyles(`
1093
1540
  border-color: ${thumbDisabledBorderColor};
@@ -1097,29 +1544,32 @@ const colorStyles$1 = props => {
1097
1544
  background-color: ${trackDisabledLowerBackgroundColor};
1098
1545
  `, ':disabled'));
1099
1546
  };
1100
- const sizeStyles$3 = props => {
1101
- const thumbSize = polished.math(`${props.theme.space.base} * 5px`);
1102
- const trackHeight = polished.math(`${props.theme.space.base} * 1.5px`);
1547
+ const sizeStyles$4 = _ref2 => {
1548
+ let {
1549
+ theme
1550
+ } = _ref2;
1551
+ const thumbSize = `${theme.space.base * 5}px`;
1552
+ const trackHeight = `${theme.space.base * 1.5}px`;
1103
1553
  const trackBorderRadius = trackHeight;
1104
- const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${props.theme.shadowWidths.md}`);
1554
+ const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${theme.shadowWidths.md}`);
1105
1555
  const thumbMargin = polished.math(`(${trackHeight} - ${thumbSize}) / 2`);
1106
- return styled.css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";", " ", ""], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, polished.math(`${props.theme.space.base} * 2px`), trackStyles(`
1556
+ return styled.css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";", " ", ""], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, `${theme.space.base * 2}px`, trackStyles(`
1107
1557
  margin: ${trackMargin} 0;
1108
1558
  border-radius: ${trackBorderRadius};
1109
1559
  height: ${trackHeight};
1110
1560
  `), thumbStyles(`
1111
- margin: ${thumbMargin} 0; /* reset for IE */
1561
+ margin: ${thumbMargin} 0; /* [1] */
1112
1562
  width: ${thumbSize};
1113
1563
  height: ${thumbSize};
1114
1564
  `), trackLowerStyles(`
1115
- border-top-${props.theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1116
- border-bottom-${props.theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1565
+ border-top-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1566
+ border-bottom-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1117
1567
  height: ${trackHeight};
1118
1568
  `));
1119
1569
  };
1120
1570
  const StyledRangeInput = styled__default.default.input.attrs(props => ({
1121
1571
  'data-garden-id': COMPONENT_ID$4,
1122
- 'data-garden-version': '9.0.0-next.12',
1572
+ 'data-garden-version': '9.0.0-next.14',
1123
1573
  type: 'range',
1124
1574
  style: {
1125
1575
  backgroundSize: props.hasLowerTrack && props.backgroundSize
@@ -1136,142 +1586,238 @@ const StyledRangeInput = styled__default.default.input.attrs(props => ({
1136
1586
  width: 99.8%; /* fix for IE which cuts off the upper track's border radius */
1137
1587
  color: transparent; /* reset for IE */
1138
1588
  box-sizing: border-box; /* reset for IE */
1139
- `), props => sizeStyles$3(props), props => thumbStyles(`
1589
+ `), sizeStyles$4, props => thumbStyles(`
1140
1590
  appearance: none;
1141
1591
  transition: box-shadow .1s ease-in-out;
1142
1592
  border: ${props.theme.borders.md};
1143
1593
  border-radius: 100%;
1144
1594
  box-sizing: border-box;
1145
- `), props => colorStyles$1(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
1595
+ `), colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
1146
1596
  StyledRangeInput.defaultProps = {
1147
1597
  backgroundSize: '0%',
1148
1598
  hasLowerTrack: true,
1149
1599
  theme: reactTheming.DEFAULT_THEME
1150
1600
  };
1151
1601
 
1152
- const COMPONENT_ID$3 = 'forms.tile_icon';
1153
- const sizeStyles$2 = props => {
1154
- const iconSize = polished.math(`${props.theme.iconSizes.md} * 2`);
1155
- let position;
1156
- let top;
1157
- let horizontalValue;
1158
- if (!props.isCentered) {
1159
- position = 'absolute';
1160
- top = `${props.theme.space.base * 6}px`;
1161
- horizontalValue = `left: ${props.theme.space.base * 5}px`;
1162
- if (props.theme.rtl) {
1163
- horizontalValue = `right: ${props.theme.space.base * 5}px`;
1602
+ const COMPONENT_ID$3 = 'forms.tile';
1603
+ const colorStyles$1 = _ref => {
1604
+ let {
1605
+ theme
1606
+ } = _ref;
1607
+ const offset100 = {
1608
+ dark: {
1609
+ offset: -100
1610
+ },
1611
+ light: {
1612
+ offset: 100
1164
1613
  }
1165
- }
1166
- return styled.css(["position:", ";top:", ";", ";& > *{width:", ";height:", ";}"], position, top, horizontalValue, iconSize, iconSize);
1167
- };
1168
- const StyledTileIcon = styled__default.default.span.attrs({
1169
- 'data-garden-id': COMPONENT_ID$3,
1170
- 'data-garden-version': '9.0.0-next.12'
1171
- }).withConfig({
1172
- displayName: "StyledTileIcon",
1173
- componentId: "sc-1wazhg4-0"
1174
- })(["display:block;transition:color 0.25s ease-in-out;text-align:center;line-height:0;", ";", ";"], props => sizeStyles$2(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
1175
- StyledTileIcon.defaultProps = {
1176
- theme: reactTheming.DEFAULT_THEME
1177
- };
1178
-
1179
- const COMPONENT_ID$2 = 'forms.tile';
1180
- const colorStyles = props => {
1181
- const SHADE = 600;
1182
- const iconColor = reactTheming.getColorV8('neutralHue', SHADE, props.theme);
1183
- const color = reactTheming.getColorV8('neutralHue', SHADE + 200, props.theme);
1184
- const borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
1185
- const hoverBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.08);
1186
- const hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
1187
- const focusBorderColor = hoverBorderColor;
1188
- const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
1189
- const activeBorderColor = focusBorderColor;
1190
- const disabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 500, props.theme);
1191
- const disabledBorderColor = reactTheming.getColorV8('neutralHue', SHADE - 400, props.theme);
1192
- const disabledColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
1193
- const selectedBorderColor = focusBorderColor;
1194
- const selectedBackgroundColor = selectedBorderColor;
1195
- const selectedHoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
1196
- const selectedHoverBackgroundColor = selectedHoverBorderColor;
1197
- const selectedActiveBorderColor = reactTheming.getColorV8('primaryHue', SHADE + 200, props.theme);
1198
- const selectedActiveBackgroundColor = selectedActiveBorderColor;
1199
- const selectedDisabledBackgroundColor = disabledBorderColor;
1200
- return styled.css(["border:", " ", ";border-color:", ";background-color:", ";color:", ";", "{color:", ";}&:hover:not([aria-disabled='true']){border-color:", ";background-color:", ";", "{color:", ";}}", " &:active:not([aria-disabled='true']){border-color:", ";background-color:", ";", "{color:", ";}}&[data-garden-selected='true']{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[data-garden-selected='true']:not([aria-disabled='true']):hover{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[data-garden-selected='true']:not([aria-disabled='true']):active{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";", "{color:", ";}}&[data-garden-selected='true'][aria-disabled='true']{background-color:", ";color:", ";", "{color:", ";}}"], props.theme.borders.sm, reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme), borderColor, reactTheming.getColorV8('background', 600 , props.theme), color, StyledTileIcon, iconColor, hoverBorderColor, hoverBackgroundColor, StyledTileIcon, color, reactTheming.focusStyles({
1201
- theme: props.theme,
1202
- color: {
1203
- hue: focusBorderColor
1614
+ };
1615
+ const offset200 = {
1616
+ dark: {
1617
+ offset: -200
1204
1618
  },
1619
+ light: {
1620
+ offset: 200
1621
+ }
1622
+ };
1623
+ const backgroundColor = reactTheming.getColor({
1624
+ theme,
1625
+ variable: 'background.default'
1626
+ });
1627
+ const borderColor = reactTheming.getColor({
1628
+ theme,
1629
+ variable: 'border.default',
1630
+ ...offset100
1631
+ });
1632
+ const foregroundColor = reactTheming.getColor({
1633
+ theme,
1634
+ variable: 'foreground.default'
1635
+ });
1636
+ const backgroundOptions = {
1637
+ theme,
1638
+ variable: 'background.primaryEmphasis'
1639
+ };
1640
+ const hoverBackgroundColor = reactTheming.getColor({
1641
+ ...backgroundOptions,
1642
+ transparency: theme.opacity[100]
1643
+ });
1644
+ const hoverBorderColor = reactTheming.getColor({
1645
+ theme,
1646
+ variable: 'border.primaryEmphasis'
1647
+ });
1648
+ const activeBackgroundColor = reactTheming.getColor({
1649
+ ...backgroundOptions,
1650
+ transparency: theme.opacity[200]
1651
+ });
1652
+ const focusBorderColor = hoverBorderColor;
1653
+ const activeBorderColor = hoverBorderColor;
1654
+ const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
1655
+ const checkedForegroundColor = reactTheming.getColor({
1656
+ theme,
1657
+ variable: 'foreground.onEmphasis'
1658
+ });
1659
+ const checkedHoverBackgroundColor = reactTheming.getColor({
1660
+ ...backgroundOptions,
1661
+ ...offset100
1662
+ });
1663
+ const checkedActiveBackgroundColor = reactTheming.getColor({
1664
+ ...backgroundOptions,
1665
+ ...offset200
1666
+ });
1667
+ const disabledBackgroundColor = reactTheming.getColor({
1668
+ theme,
1669
+ variable: 'background.disabled'
1670
+ });
1671
+ const disabledBorderColor = reactTheming.getColor({
1672
+ theme,
1673
+ variable: 'border.disabled'
1674
+ });
1675
+ const disabledForegroundColor = reactTheming.getColor({
1676
+ theme,
1677
+ variable: 'foreground.disabled'
1678
+ });
1679
+ return styled.css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";background-color:", ";}", ";&:active{border-color:", ";background-color:", ";}&:has(:checked){border-color:transparent;background-color:", ";color:", ";}&:hover:has(:checked){background-color:", ";}&:active:has(:checked){background-color:", ";}&[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], borderColor, backgroundColor, foregroundColor, hoverBorderColor, hoverBackgroundColor, reactTheming.focusStyles({
1680
+ theme,
1681
+ selector: '&:has(:focus-visible)',
1205
1682
  styles: {
1206
1683
  borderColor: focusBorderColor
1207
- },
1208
- selector: `&:focus-within`
1209
- }), activeBorderColor, activeBackgroundColor, StyledTileIcon, color, selectedBorderColor, selectedBackgroundColor, reactTheming.getColorV8('background', 600 , props.theme), StyledTileIcon, reactTheming.getColorV8('background', 600 , props.theme), selectedHoverBorderColor, selectedHoverBackgroundColor, reactTheming.getColorV8('background', 600 , props.theme), StyledTileIcon, reactTheming.getColorV8('background', 600 , props.theme), selectedActiveBorderColor, selectedActiveBackgroundColor, reactTheming.getColorV8('background', 600 , props.theme), StyledTileIcon, reactTheming.getColorV8('background', 600 , props.theme), disabledBorderColor, disabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor, selectedDisabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor);
1684
+ }
1685
+ }), activeBorderColor, activeBackgroundColor, checkedBackgroundColor, checkedForegroundColor, checkedHoverBackgroundColor, checkedActiveBackgroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
1210
1686
  };
1211
- const StyledTile = styled__default.default.label.attrs(props => ({
1212
- 'data-garden-id': COMPONENT_ID$2,
1213
- 'data-garden-version': '9.0.0-next.12',
1214
- 'data-garden-selected': props.isSelected
1215
- })).withConfig({
1687
+ const sizeStyles$3 = _ref2 => {
1688
+ let {
1689
+ theme
1690
+ } = _ref2;
1691
+ const border = theme.borders.sm;
1692
+ const padding = `${theme.space.base * 5}px`;
1693
+ return styled.css(["border:", ";padding:", ";min-width:132px;"], border, padding);
1694
+ };
1695
+ const StyledTile = styled__default.default.label.attrs({
1696
+ 'data-garden-id': COMPONENT_ID$3,
1697
+ 'data-garden-version': '9.0.0-next.14'
1698
+ }).withConfig({
1216
1699
  displayName: "StyledTile",
1217
1700
  componentId: "sc-1jjvmxs-0"
1218
- })(["display:block;position:relative;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border-radius:", ";cursor:", ";padding:", "px;direction:", ";min-width:132px;word-break:break-word;", ";", ";"], props => props.theme.borderRadii.md, props => !props.isDisabled && 'pointer', props => props.theme.space.base * 5, props => props.theme.rtl && 'rtl', props => colorStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
1701
+ })(["display:block;position:relative;transition:border-color .25s ease-in-out,box-shadow .1s ease-in-out,background-color .25s ease-in-out,color .25s ease-in-out;border-radius:", ";direction:", ";word-break:break-word;", ";", ";", ";"], props => props.theme.borderRadii.md, props => props.theme.rtl && 'rtl', sizeStyles$3, colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
1219
1702
  StyledTile.defaultProps = {
1220
1703
  theme: reactTheming.DEFAULT_THEME
1221
1704
  };
1222
1705
 
1223
- const COMPONENT_ID$1 = 'forms.tile_description';
1224
- const sizeStyles$1 = props => {
1225
- let marginDirection = 'left';
1226
- let marginValue;
1227
- if (props.theme.rtl) {
1228
- marginDirection = 'right';
1229
- }
1230
- if (!props.isCentered) {
1231
- marginValue = polished.math(`(${props.theme.iconSizes.md} * 2) + ${props.theme.space.base * 5}px`);
1232
- }
1233
- return styled.css(["margin-top:", "px;margin-", ":", ";"], props.theme.space.base, marginDirection, marginValue);
1706
+ const COMPONENT_ID$2 = 'forms.tile_description';
1707
+ const sizeStyles$2 = _ref => {
1708
+ let {
1709
+ theme,
1710
+ isCentered
1711
+ } = _ref;
1712
+ const marginTop = `${theme.space.base}px`;
1713
+ const marginHorizontal = isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
1714
+ const fontSize = theme.fontSizes.sm;
1715
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 4, fontSize);
1716
+ return styled.css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
1234
1717
  };
1235
1718
  const StyledTileDescription = styled__default.default.span.attrs({
1236
- 'data-garden-id': COMPONENT_ID$1,
1237
- 'data-garden-version': '9.0.0-next.12'
1719
+ 'data-garden-id': COMPONENT_ID$2,
1720
+ 'data-garden-version': '9.0.0-next.14'
1238
1721
  }).withConfig({
1239
1722
  displayName: "StyledTileDescription",
1240
1723
  componentId: "sc-xfuu7u-0"
1241
- })(["display:block;text-align:", ";line-height:", ";font-size:", ";", ";", ";"], props => props.isCentered && 'center', props => reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.sm), props => props.theme.fontSizes.sm, props => sizeStyles$1(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
1724
+ })(["display:block;text-align:", ";", ";", ";"], props => props.isCentered && 'center', sizeStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
1242
1725
  StyledTileDescription.defaultProps = {
1243
1726
  theme: reactTheming.DEFAULT_THEME
1244
1727
  };
1245
1728
 
1729
+ const COMPONENT_ID$1 = 'forms.tile_icon';
1730
+ const colorStyles = _ref => {
1731
+ let {
1732
+ theme
1733
+ } = _ref;
1734
+ const options = {
1735
+ theme,
1736
+ variable: 'foreground.subtle'
1737
+ };
1738
+ const color = reactTheming.getColor(options);
1739
+ const hoverColor = reactTheming.getColor({
1740
+ ...options,
1741
+ dark: {
1742
+ offset: -100
1743
+ },
1744
+ light: {
1745
+ offset: 100
1746
+ }
1747
+ });
1748
+ const activeColor = reactTheming.getColor({
1749
+ ...options,
1750
+ dark: {
1751
+ offset: -200
1752
+ },
1753
+ light: {
1754
+ offset: 200
1755
+ }
1756
+ });
1757
+ const checkedColor = reactTheming.getColor({
1758
+ theme,
1759
+ variable: 'foreground.onEmphasis'
1760
+ });
1761
+ const disabledColor = reactTheming.getColor({
1762
+ theme,
1763
+ variable: 'foreground.disabled'
1764
+ });
1765
+ return styled.css(["color:", ";", ":hover &&{color:", ";}", ":active &&{color:", ";}", ":has(:checked) &&{color:", ";}", "[aria-disabled='true'] &&{color:", ";}"], color, StyledTile, hoverColor, StyledTile, activeColor, StyledTile, checkedColor, StyledTile, disabledColor);
1766
+ };
1767
+ const sizeStyles$1 = _ref2 => {
1768
+ let {
1769
+ theme,
1770
+ isCentered
1771
+ } = _ref2;
1772
+ const iconSize = polished.math(`${theme.iconSizes.md} * 2`);
1773
+ let position;
1774
+ let top;
1775
+ let horizontal;
1776
+ if (!isCentered) {
1777
+ position = 'absolute';
1778
+ top = `${theme.space.base * 6}px`;
1779
+ horizontal = `${theme.space.base * 5}px`;
1780
+ }
1781
+ return styled.css(["position:", ";top:", ";", ":", ";line-height:0;& > *{width:", ";height:", ";}"], position, top, theme.rtl ? 'right' : 'left', horizontal, iconSize, iconSize);
1782
+ };
1783
+ const StyledTileIcon = styled__default.default.span.attrs({
1784
+ 'data-garden-id': COMPONENT_ID$1,
1785
+ 'data-garden-version': '9.0.0-next.14'
1786
+ }).withConfig({
1787
+ displayName: "StyledTileIcon",
1788
+ componentId: "sc-1wazhg4-0"
1789
+ })(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles$1, colorStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
1790
+ StyledTileIcon.defaultProps = {
1791
+ theme: reactTheming.DEFAULT_THEME
1792
+ };
1793
+
1246
1794
  const StyledTileInput = styled__default.default.input.withConfig({
1247
1795
  displayName: "StyledTileInput",
1248
1796
  componentId: "sc-1nq2m6q-0"
1249
- })(["position:absolute;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
1797
+ })(["position:absolute;top:0;left:0;opacity:0;z-index:1;margin:0;cursor:", ";width:100%;height:100%;"], props => props.disabled ? 'default' : 'pointer');
1250
1798
  StyledTileInput.defaultProps = {
1251
1799
  theme: reactTheming.DEFAULT_THEME
1252
1800
  };
1253
1801
 
1254
1802
  const COMPONENT_ID = 'forms.tile_label';
1255
- const sizeStyles = props => {
1256
- let marginDirection = 'left';
1257
- let marginTop = `${props.theme.space.base * 2}px`;
1258
- let marginValue;
1259
- if (props.theme.rtl) {
1260
- marginDirection = 'right';
1261
- }
1262
- if (!props.isCentered) {
1263
- marginValue = polished.math(`(${props.theme.iconSizes.md} * 2) + ${props.theme.space.base * 5}px`);
1264
- marginTop = '0';
1265
- }
1266
- return styled.css(["margin-top:", ";margin-", ":", ";"], marginTop, marginDirection, marginValue);
1803
+ const sizeStyles = _ref => {
1804
+ let {
1805
+ theme,
1806
+ isCentered
1807
+ } = _ref;
1808
+ const marginTop = isCentered ? `${theme.space.base * 2}px` : 0;
1809
+ const marginHorizontal = isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
1810
+ const fontSize = theme.fontSizes.md;
1811
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
1812
+ return styled.css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
1267
1813
  };
1268
1814
  const StyledTileLabel = styled__default.default.span.attrs({
1269
1815
  'data-garden-id': COMPONENT_ID,
1270
- 'data-garden-version': '9.0.0-next.12'
1816
+ 'data-garden-version': '9.0.0-next.14'
1271
1817
  }).withConfig({
1272
1818
  displayName: "StyledTileLabel",
1273
1819
  componentId: "sc-1mypv27-0"
1274
- })(["display:block;text-align:", ";line-height:", ";font-size:", ";font-weight:", ";", ";", ";"], props => props.isCentered && 'center', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, props => sizeStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
1820
+ })(["display:block;text-align:", ";font-weight:", ";", ";", ";"], props => props.isCentered && 'center', props => props.theme.fontWeights.semibold, sizeStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
1275
1821
  StyledTileLabel.defaultProps = {
1276
1822
  theme: reactTheming.DEFAULT_THEME
1277
1823
  };
@@ -1424,7 +1970,7 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
1424
1970
  }, combinedProps), React__namespace.default.createElement(StyledRadioSvg, null), props.children);
1425
1971
  } else if (type === 'checkbox') {
1426
1972
  const onLabelSelect = e => {
1427
- const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1973
+ const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;
1428
1974
  if (fieldContext && isFirefox && e.target instanceof Element) {
1429
1975
  const inputId = e.target.getAttribute('for');
1430
1976
  if (!inputId) return;
@@ -1816,31 +2362,19 @@ Toggle.propTypes = {
1816
2362
  isCompact: PropTypes__default.default.bool
1817
2363
  };
1818
2364
 
1819
- var _path$k;
1820
- function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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); }
1821
- var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
1822
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
1823
- xmlns: "http://www.w3.org/2000/svg",
1824
- width: 16,
1825
- height: 16,
1826
- focusable: "false",
1827
- viewBox: "0 0 16 16",
1828
- "aria-hidden": "true"
1829
- }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
1830
- fill: "currentColor",
1831
- 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"
1832
- })));
1833
- };
1834
-
1835
2365
  const StartIconComponent = _ref => {
1836
2366
  let {
1837
2367
  isDisabled,
2368
+ isFocused,
2369
+ isHovered,
1838
2370
  isRotated,
1839
2371
  ...props
1840
2372
  } = _ref;
1841
2373
  return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
1842
2374
  $position: "start",
1843
2375
  $isDisabled: isDisabled,
2376
+ $isFocused: isFocused,
2377
+ $isHovered: isHovered,
1844
2378
  $isRotated: isRotated
1845
2379
  }, props));
1846
2380
  };
@@ -1850,12 +2384,16 @@ const StartIcon = StartIconComponent;
1850
2384
  const EndIconComponent = _ref => {
1851
2385
  let {
1852
2386
  isDisabled,
2387
+ isFocused,
2388
+ isHovered,
1853
2389
  isRotated,
1854
2390
  ...props
1855
2391
  } = _ref;
1856
2392
  return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
1857
2393
  $position: "end",
1858
2394
  $isDisabled: isDisabled,
2395
+ $isFocused: isFocused,
2396
+ $isHovered: isHovered,
1859
2397
  $isRotated: isRotated
1860
2398
  }, props));
1861
2399
  };
@@ -1929,6 +2467,7 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
1929
2467
  return React__namespace.default.createElement(StyledSelectWrapper, {
1930
2468
  isCompact: isCompact,
1931
2469
  isBare: isBare,
2470
+ isDisabled: disabled,
1932
2471
  validation: validation,
1933
2472
  focusInset: focusInset
1934
2473
  }, React__namespace.default.createElement(StyledSelect, combinedProps), !isBare && React__namespace.default.createElement(FauxInput.EndIcon, {
@@ -1967,9 +2506,7 @@ const TileComponent = React__namespace.default.forwardRef((_ref, ref) => {
1967
2506
  }
1968
2507
  return React__namespace.default.createElement(StyledTile, Object.assign({
1969
2508
  ref: ref,
1970
- "aria-disabled": disabled,
1971
- isDisabled: disabled,
1972
- isSelected: tilesContext && tilesContext.value === value
2509
+ "aria-disabled": disabled
1973
2510
  }, props), children, React__namespace.default.createElement(StyledTileInput, Object.assign({}, inputProps, {
1974
2511
  disabled: disabled,
1975
2512
  value: value,
@@ -2135,7 +2672,7 @@ const FileList = FileListComponent;
2135
2672
  FileList.Item = Item;
2136
2673
 
2137
2674
  var _path$j;
2138
- function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : 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); }
2675
+ function _extends$k() { return _extends$k = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$k.apply(null, arguments); }
2139
2676
  var SvgXStroke$1 = function SvgXStroke(props) {
2140
2677
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
2141
2678
  xmlns: "http://www.w3.org/2000/svg",
@@ -2152,7 +2689,7 @@ var SvgXStroke$1 = function SvgXStroke(props) {
2152
2689
  };
2153
2690
 
2154
2691
  var _path$i;
2155
- function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : 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); }
2692
+ function _extends$j() { return _extends$j = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$j.apply(null, arguments); }
2156
2693
  var SvgXStroke = function SvgXStroke(props) {
2157
2694
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
2158
2695
  xmlns: "http://www.w3.org/2000/svg",
@@ -2191,7 +2728,7 @@ CloseComponent.displayName = 'File.Close';
2191
2728
  const Close = CloseComponent;
2192
2729
 
2193
2730
  var _path$h;
2194
- function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : 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); }
2731
+ function _extends$i() { return _extends$i = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$i.apply(null, arguments); }
2195
2732
  var SvgTrashStroke$1 = function SvgTrashStroke(props) {
2196
2733
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
2197
2734
  xmlns: "http://www.w3.org/2000/svg",
@@ -2209,7 +2746,7 @@ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
2209
2746
  };
2210
2747
 
2211
2748
  var _path$g;
2212
- function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : 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); }
2749
+ function _extends$h() { return _extends$h = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$h.apply(null, arguments); }
2213
2750
  var SvgTrashStroke = function SvgTrashStroke(props) {
2214
2751
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
2215
2752
  xmlns: "http://www.w3.org/2000/svg",
@@ -2244,7 +2781,7 @@ DeleteComponent.displayName = 'File.Delete';
2244
2781
  const Delete = DeleteComponent;
2245
2782
 
2246
2783
  var _path$f, _rect$1;
2247
- function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : 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); }
2784
+ function _extends$g() { return _extends$g = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$g.apply(null, arguments); }
2248
2785
  var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
2249
2786
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
2250
2787
  xmlns: "http://www.w3.org/2000/svg",
@@ -2270,7 +2807,7 @@ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
2270
2807
  };
2271
2808
 
2272
2809
  var _path$e;
2273
- function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : 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); }
2810
+ function _extends$f() { return _extends$f = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$f.apply(null, arguments); }
2274
2811
  var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
2275
2812
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
2276
2813
  xmlns: "http://www.w3.org/2000/svg",
@@ -2288,7 +2825,7 @@ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
2288
2825
  };
2289
2826
 
2290
2827
  var _path$d, _circle$1;
2291
- function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : 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); }
2828
+ function _extends$e() { return _extends$e = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$e.apply(null, arguments); }
2292
2829
  var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
2293
2830
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
2294
2831
  xmlns: "http://www.w3.org/2000/svg",
@@ -2312,7 +2849,7 @@ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
2312
2849
  };
2313
2850
 
2314
2851
  var _path$c;
2315
- function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : 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); }
2852
+ function _extends$d() { return _extends$d = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$d.apply(null, arguments); }
2316
2853
  var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
2317
2854
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
2318
2855
  xmlns: "http://www.w3.org/2000/svg",
@@ -2330,7 +2867,7 @@ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
2330
2867
  };
2331
2868
 
2332
2869
  var _path$b;
2333
- function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : 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); }
2870
+ function _extends$c() { return _extends$c = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$c.apply(null, arguments); }
2334
2871
  var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
2335
2872
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
2336
2873
  xmlns: "http://www.w3.org/2000/svg",
@@ -2348,7 +2885,7 @@ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
2348
2885
  };
2349
2886
 
2350
2887
  var _path$a;
2351
- function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : 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); }
2888
+ function _extends$b() { return _extends$b = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$b.apply(null, arguments); }
2352
2889
  var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
2353
2890
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
2354
2891
  xmlns: "http://www.w3.org/2000/svg",
@@ -2365,7 +2902,7 @@ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
2365
2902
  };
2366
2903
 
2367
2904
  var _path$9;
2368
- function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : 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); }
2905
+ function _extends$a() { return _extends$a = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$a.apply(null, arguments); }
2369
2906
  var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
2370
2907
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
2371
2908
  xmlns: "http://www.w3.org/2000/svg",
@@ -2382,7 +2919,7 @@ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
2382
2919
  };
2383
2920
 
2384
2921
  var _g;
2385
- function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : 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); }
2922
+ function _extends$9() { return _extends$9 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$9.apply(null, arguments); }
2386
2923
  var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
2387
2924
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
2388
2925
  xmlns: "http://www.w3.org/2000/svg",
@@ -2406,7 +2943,7 @@ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
2406
2943
  };
2407
2944
 
2408
2945
  var _path$8;
2409
- function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : 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); }
2946
+ function _extends$8() { return _extends$8 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$8.apply(null, arguments); }
2410
2947
  var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
2411
2948
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
2412
2949
  xmlns: "http://www.w3.org/2000/svg",
@@ -2424,7 +2961,7 @@ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
2424
2961
  };
2425
2962
 
2426
2963
  var _path$7, _rect;
2427
- function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : 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); }
2964
+ function _extends$7() { return _extends$7 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$7.apply(null, arguments); }
2428
2965
  var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
2429
2966
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
2430
2967
  xmlns: "http://www.w3.org/2000/svg",
@@ -2450,7 +2987,7 @@ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
2450
2987
  };
2451
2988
 
2452
2989
  var _path$6;
2453
- function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : 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); }
2990
+ function _extends$6() { return _extends$6 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$6.apply(null, arguments); }
2454
2991
  var SvgFileZipStroke = function SvgFileZipStroke(props) {
2455
2992
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
2456
2993
  xmlns: "http://www.w3.org/2000/svg",
@@ -2468,7 +3005,7 @@ var SvgFileZipStroke = function SvgFileZipStroke(props) {
2468
3005
  };
2469
3006
 
2470
3007
  var _path$5, _circle;
2471
- function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : 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); }
3008
+ function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
2472
3009
  var SvgFileImageStroke = function SvgFileImageStroke(props) {
2473
3010
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
2474
3011
  xmlns: "http://www.w3.org/2000/svg",
@@ -2491,7 +3028,7 @@ var SvgFileImageStroke = function SvgFileImageStroke(props) {
2491
3028
  };
2492
3029
 
2493
3030
  var _path$4;
2494
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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); }
3031
+ function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
2495
3032
  var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
2496
3033
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
2497
3034
  xmlns: "http://www.w3.org/2000/svg",
@@ -2509,7 +3046,7 @@ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
2509
3046
  };
2510
3047
 
2511
3048
  var _path$3;
2512
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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); }
3049
+ function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
2513
3050
  var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
2514
3051
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
2515
3052
  xmlns: "http://www.w3.org/2000/svg",
@@ -2527,7 +3064,7 @@ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
2527
3064
  };
2528
3065
 
2529
3066
  var _path$2;
2530
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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); }
3067
+ function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
2531
3068
  var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
2532
3069
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
2533
3070
  xmlns: "http://www.w3.org/2000/svg",
@@ -2544,7 +3081,7 @@ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
2544
3081
  };
2545
3082
 
2546
3083
  var _path$1;
2547
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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); }
3084
+ function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
2548
3085
  var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
2549
3086
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
2550
3087
  xmlns: "http://www.w3.org/2000/svg",
@@ -2561,7 +3098,7 @@ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
2561
3098
  };
2562
3099
 
2563
3100
  var _path;
2564
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
3101
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2565
3102
  var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
2566
3103
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
2567
3104
  xmlns: "http://www.w3.org/2000/svg",
@@ -2622,7 +3159,8 @@ const FileComponent = React.forwardRef((_ref, ref) => {
2622
3159
  validation: validation,
2623
3160
  ref: ref
2624
3161
  }), validationType && React__namespace.default.createElement(StyledFileIcon, {
2625
- $isCompact: isCompact
3162
+ $isCompact: isCompact,
3163
+ $validation: validation
2626
3164
  }, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), React.Children.map(children, child => typeof child === 'string' ? React__namespace.default.createElement("span", null, child) : child)));
2627
3165
  });
2628
3166
  FileComponent.displayName = 'File';