@zendeskgarden/react-forms 9.0.0-next.9 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/esm/elements/Checkbox.js +4 -3
  2. package/dist/esm/elements/FileUpload.js +7 -3
  3. package/dist/esm/elements/Input.js +18 -17
  4. package/dist/esm/elements/MediaInput.js +2 -2
  5. package/dist/esm/elements/Radio.js +4 -3
  6. package/dist/esm/elements/Range.js +9 -9
  7. package/dist/esm/elements/Select.js +9 -8
  8. package/dist/esm/elements/Textarea.js +24 -14
  9. package/dist/esm/elements/Toggle.js +4 -3
  10. package/dist/esm/elements/common/Fieldset.js +10 -5
  11. package/dist/esm/elements/common/Hint.js +1 -1
  12. package/dist/esm/elements/common/Label.js +35 -33
  13. package/dist/esm/elements/common/Legend.js +1 -3
  14. package/dist/esm/elements/common/Message.js +7 -6
  15. package/dist/esm/elements/common/MessageIcon.js +78 -0
  16. package/dist/esm/elements/faux-input/FauxInput.js +20 -8
  17. package/dist/esm/elements/faux-input/components/EndIcon.js +4 -0
  18. package/dist/esm/elements/faux-input/components/StartIcon.js +4 -0
  19. package/dist/esm/elements/file-list/components/File.js +6 -5
  20. package/dist/esm/elements/input-group/InputGroup.js +3 -3
  21. package/dist/esm/elements/tiles/components/Description.js +1 -1
  22. package/dist/esm/elements/tiles/components/Icon.js +1 -1
  23. package/dist/esm/elements/tiles/components/Label.js +1 -1
  24. package/dist/esm/elements/tiles/components/Tile.js +1 -3
  25. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-circle-stroke.svg.js +1 -1
  26. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +1 -1
  27. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-sm-fill.svg.js +1 -1
  28. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/dash-fill.svg.js +1 -1
  29. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-document-stroke.svg.js +1 -1
  30. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-error-stroke.svg.js +1 -1
  31. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-generic-stroke.svg.js +1 -1
  32. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-image-stroke.svg.js +1 -1
  33. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-pdf-stroke.svg.js +1 -1
  34. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-presentation-stroke.svg.js +1 -1
  35. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-spreadsheet-stroke.svg.js +1 -1
  36. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/file-zip-stroke.svg.js +1 -1
  37. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/trash-stroke.svg.js +1 -1
  38. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/x-stroke.svg.js +1 -1
  39. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-error-stroke.svg.js +1 -1
  40. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/alert-warning-stroke.svg.js +1 -1
  41. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-circle-stroke.svg.js +1 -1
  42. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
  43. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/circle-sm-fill.svg.js +1 -1
  44. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-document-stroke.svg.js +1 -1
  45. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-error-stroke.svg.js +1 -1
  46. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-generic-stroke.svg.js +1 -1
  47. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-image-stroke.svg.js +1 -1
  48. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-pdf-stroke.svg.js +1 -1
  49. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-presentation-stroke.svg.js +1 -1
  50. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-spreadsheet-stroke.svg.js +1 -1
  51. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/file-zip-stroke.svg.js +1 -1
  52. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/trash-stroke.svg.js +1 -1
  53. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +1 -1
  54. package/dist/esm/styled/checkbox/StyledCheckHint.js +2 -5
  55. package/dist/esm/styled/checkbox/StyledCheckInput.js +55 -14
  56. package/dist/esm/styled/checkbox/StyledCheckLabel.js +2 -5
  57. package/dist/esm/styled/checkbox/StyledCheckMessage.js +2 -5
  58. package/dist/esm/styled/checkbox/StyledCheckSvg.js +2 -5
  59. package/dist/esm/styled/checkbox/StyledDashSvg.js +2 -5
  60. package/dist/esm/styled/common/StyledField.js +2 -5
  61. package/dist/esm/styled/common/StyledFieldset.js +3 -6
  62. package/dist/esm/styled/common/StyledHint.js +6 -6
  63. package/dist/esm/styled/common/StyledLabel.js +6 -6
  64. package/dist/esm/styled/common/StyledLegend.js +2 -5
  65. package/dist/esm/styled/common/StyledMessage.js +33 -19
  66. package/dist/esm/styled/common/StyledMessageIcon.js +3 -29
  67. package/dist/esm/styled/file-list/StyledFile.js +49 -31
  68. package/dist/esm/styled/file-list/StyledFileClose.js +6 -6
  69. package/dist/esm/styled/file-list/StyledFileDelete.js +6 -6
  70. package/dist/esm/styled/file-list/StyledFileIcon.js +24 -7
  71. package/dist/esm/styled/file-list/StyledFileList.js +2 -5
  72. package/dist/esm/styled/file-list/StyledFileListItem.js +2 -5
  73. package/dist/esm/styled/file-upload/StyledFileUpload.js +89 -23
  74. package/dist/esm/styled/input-group/StyledInputGroup.js +3 -6
  75. package/dist/esm/styled/radio/StyledRadioHint.js +2 -5
  76. package/dist/esm/styled/radio/StyledRadioInput.js +85 -27
  77. package/dist/esm/styled/radio/StyledRadioLabel.js +3 -6
  78. package/dist/esm/styled/radio/StyledRadioMessage.js +2 -5
  79. package/dist/esm/styled/radio/StyledRadioSvg.js +2 -5
  80. package/dist/esm/styled/range/StyledRangeInput.js +79 -29
  81. package/dist/esm/styled/select/StyledSelect.js +35 -14
  82. package/dist/esm/styled/select/StyledSelectWrapper.js +12 -7
  83. package/dist/esm/styled/text/StyledTextFauxInput.js +40 -35
  84. package/dist/esm/styled/text/StyledTextInput.js +104 -62
  85. package/dist/esm/styled/text/StyledTextMediaFigure.js +35 -13
  86. package/dist/esm/styled/text/StyledTextMediaInput.js +3 -6
  87. package/dist/esm/styled/text/StyledTextarea.js +3 -6
  88. package/dist/esm/styled/tiles/StyledTile.js +93 -37
  89. package/dist/esm/styled/tiles/StyledTileDescription.js +13 -16
  90. package/dist/esm/styled/tiles/StyledTileIcon.js +52 -16
  91. package/dist/esm/styled/tiles/StyledTileInput.js +1 -5
  92. package/dist/esm/styled/tiles/StyledTileLabel.js +13 -18
  93. package/dist/esm/styled/toggle/StyledToggleHint.js +2 -5
  94. package/dist/esm/styled/toggle/StyledToggleInput.js +38 -16
  95. package/dist/esm/styled/toggle/StyledToggleLabel.js +2 -5
  96. package/dist/esm/styled/toggle/StyledToggleMessage.js +2 -5
  97. package/dist/esm/styled/toggle/StyledToggleSvg.js +2 -5
  98. package/dist/index.cjs.js +1212 -773
  99. package/dist/typings/elements/common/Field.d.ts +1 -1
  100. package/dist/typings/elements/common/Fieldset.d.ts +3 -1
  101. package/dist/typings/elements/common/MessageIcon.d.ts +9 -0
  102. package/dist/typings/elements/faux-input/FauxInput.d.ts +3 -1
  103. package/dist/typings/elements/faux-input/components/EndIcon.d.ts +1 -1
  104. package/dist/typings/elements/faux-input/components/StartIcon.d.ts +1 -1
  105. package/dist/typings/elements/file-list/FileList.d.ts +3 -1
  106. package/dist/typings/elements/file-list/components/File.d.ts +3 -1
  107. package/dist/typings/elements/tiles/Tiles.d.ts +3 -1
  108. package/dist/typings/styled/checkbox/StyledCheckLabel.d.ts +2 -2
  109. package/dist/typings/styled/common/StyledFieldset.d.ts +1 -1
  110. package/dist/typings/styled/common/StyledLabel.d.ts +2 -2
  111. package/dist/typings/styled/common/StyledLegend.d.ts +1 -5
  112. package/dist/typings/styled/common/StyledMessage.d.ts +1 -1
  113. package/dist/typings/styled/common/StyledMessageIcon.d.ts +2 -9
  114. package/dist/typings/styled/file-list/StyledFile.d.ts +3 -3
  115. package/dist/typings/styled/file-list/StyledFileIcon.d.ts +7 -2
  116. package/dist/typings/styled/file-upload/StyledFileUpload.d.ts +2 -2
  117. package/dist/typings/styled/input-group/StyledInputGroup.d.ts +1 -1
  118. package/dist/typings/styled/radio/StyledRadioInput.d.ts +1 -1
  119. package/dist/typings/styled/radio/StyledRadioLabel.d.ts +2 -2
  120. package/dist/typings/styled/range/StyledRangeInput.d.ts +2 -2
  121. package/dist/typings/styled/select/StyledSelect.d.ts +0 -3
  122. package/dist/typings/styled/select/StyledSelectWrapper.d.ts +3 -1
  123. package/dist/typings/styled/text/StyledTextFauxInput.d.ts +3 -7
  124. package/dist/typings/styled/text/StyledTextInput.d.ts +6 -6
  125. package/dist/typings/styled/text/StyledTextMediaFigure.d.ts +1 -2
  126. package/dist/typings/styled/text/StyledTextMediaInput.d.ts +2 -2
  127. package/dist/typings/styled/text/StyledTextarea.d.ts +2 -2
  128. package/dist/typings/styled/tiles/StyledTile.d.ts +4 -7
  129. package/dist/typings/styled/tiles/StyledTileDescription.d.ts +1 -1
  130. package/dist/typings/styled/tiles/StyledTileIcon.d.ts +1 -1
  131. package/dist/typings/styled/tiles/StyledTileLabel.d.ts +1 -1
  132. package/dist/typings/styled/toggle/StyledToggleLabel.d.ts +2 -2
  133. package/dist/typings/types/index.d.ts +9 -3
  134. package/dist/typings/utils/useFieldContext.d.ts +0 -1
  135. package/dist/typings/utils/useFieldsetContext.d.ts +0 -1
  136. package/dist/typings/utils/useFileContext.d.ts +0 -1
  137. package/dist/typings/utils/useInputContext.d.ts +0 -1
  138. package/dist/typings/utils/useInputGroupContext.d.ts +0 -1
  139. package/dist/typings/utils/useTilesContext.d.ts +0 -1
  140. package/package.json +8 -8
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,290 +49,253 @@ 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.9'
52
+ 'data-garden-version': '9.1.0'
52
53
  }).withConfig({
53
54
  displayName: "StyledField",
54
55
  componentId: "sc-12gzfsu-0"
55
56
  })(["position:relative;direction:", ";margin:0;border:0;padding:0;font-size:0;", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$G, props));
56
- StyledField.defaultProps = {
57
- theme: reactTheming.DEFAULT_THEME
58
- };
59
57
 
60
58
  const COMPONENT_ID$F = 'forms.fieldset';
61
59
  const StyledFieldset = styled__default.default(StyledField).attrs({
62
60
  as: 'fieldset',
63
61
  'data-garden-id': COMPONENT_ID$F,
64
- 'data-garden-version': '9.0.0-next.9'
62
+ 'data-garden-version': '9.1.0'
65
63
  }).withConfig({
66
64
  displayName: "StyledFieldset",
67
65
  componentId: "sc-1vr4mxv-0"
68
- })(["", "{margin-top:", "px;}", ";"], StyledField, props => props.theme.space.base * (props.isCompact ? 1 : 2), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$F, props));
69
- StyledFieldset.defaultProps = {
70
- theme: reactTheming.DEFAULT_THEME
71
- };
66
+ })(["", "{margin-top:", "px;}", ";"], StyledField, props => props.theme.space.base * (props.$isCompact ? 1 : 2), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$F, props));
72
67
 
73
68
  const COMPONENT_ID$E = 'forms.input_label';
74
69
  const StyledLabel = styled__default.default.label.attrs(props => ({
75
70
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
76
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.9'
71
+ 'data-garden-version': props['data-garden-version'] || '9.1.0'
77
72
  })).withConfig({
78
73
  displayName: "StyledLabel",
79
74
  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
- StyledLabel.defaultProps = {
82
- theme: reactTheming.DEFAULT_THEME
83
- };
75
+ })(["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({
76
+ theme: props.theme,
77
+ variable: 'foreground.default'
78
+ }), 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));
84
79
 
85
80
  const COMPONENT_ID$D = 'forms.fieldset_legend';
86
81
  const StyledLegend = styled__default.default(StyledLabel).attrs({
87
82
  as: 'legend',
88
83
  'data-garden-id': COMPONENT_ID$D,
89
- 'data-garden-version': '9.0.0-next.9'
84
+ 'data-garden-version': '9.1.0'
90
85
  }).withConfig({
91
86
  displayName: "StyledLegend",
92
87
  componentId: "sc-6s0zwq-0"
93
88
  })(["padding:0;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$D, props));
94
- StyledLegend.defaultProps = {
95
- theme: reactTheming.DEFAULT_THEME
96
- };
97
89
 
98
90
  const COMPONENT_ID$C = 'forms.input_hint';
99
91
  const StyledHint = styled__default.default.div.attrs(props => ({
100
92
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$C,
101
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.9'
93
+ 'data-garden-version': props['data-garden-version'] || '9.1.0'
102
94
  })).withConfig({
103
95
  displayName: "StyledHint",
104
96
  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));
106
- StyledHint.defaultProps = {
107
- theme: reactTheming.DEFAULT_THEME
108
- };
109
-
110
- 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); }
112
- var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
113
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
114
- xmlns: "http://www.w3.org/2000/svg",
115
- width: 16,
116
- height: 16,
117
- focusable: "false",
118
- viewBox: "0 0 16 16",
119
- "aria-hidden": "true"
120
- }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
121
- fill: "none",
122
- stroke: "currentColor"
123
- }, /*#__PURE__*/React__namespace.createElement("circle", {
124
- cx: 7.5,
125
- cy: 8.5,
126
- r: 7
127
- }), /*#__PURE__*/React__namespace.createElement("path", {
128
- strokeLinecap: "round",
129
- d: "M7.5 4.5V9"
130
- }))), _circle$5 || (_circle$5 = /*#__PURE__*/React__namespace.createElement("circle", {
131
- cx: 7.5,
132
- cy: 12,
133
- r: 1,
134
- fill: "currentColor"
135
- })));
136
- };
137
-
138
- 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); }
140
- var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
141
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
142
- xmlns: "http://www.w3.org/2000/svg",
143
- width: 16,
144
- height: 16,
145
- focusable: "false",
146
- viewBox: "0 0 16 16",
147
- "aria-hidden": "true"
148
- }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
149
- fill: "none",
150
- stroke: "currentColor",
151
- strokeLinecap: "round",
152
- d: "M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5"
153
- })), _circle$4 || (_circle$4 = /*#__PURE__*/React__namespace.createElement("circle", {
154
- cx: 7.5,
155
- cy: 12,
156
- r: 1,
157
- fill: "currentColor"
158
- })));
159
- };
160
-
161
- 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); }
163
- var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
164
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
165
- xmlns: "http://www.w3.org/2000/svg",
166
- width: 16,
167
- height: 16,
168
- focusable: "false",
169
- viewBox: "0 0 16 16",
170
- "aria-hidden": "true"
171
- }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
172
- fill: "none",
173
- stroke: "currentColor"
174
- }, /*#__PURE__*/React__namespace.createElement("path", {
175
- strokeLinecap: "round",
176
- strokeLinejoin: "round",
177
- d: "M4 9l2.5 2.5 5-5"
178
- }), /*#__PURE__*/React__namespace.createElement("circle", {
179
- cx: 7.5,
180
- cy: 8.5,
181
- r: 7
182
- }))));
183
- };
97
+ })(["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({
98
+ theme: props.theme,
99
+ variable: 'foreground.subtle'
100
+ }), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$C, props));
184
101
 
185
- const MessageIcon = _ref => {
186
- let {
187
- children,
188
- validation,
189
- ...props
190
- } = _ref;
191
- let retVal;
192
- if (validation === 'error') {
193
- retVal = React__namespace.default.createElement(SvgAlertErrorStroke, props);
194
- } else if (validation === 'success') {
195
- retVal = React__namespace.default.createElement(SvgCheckCircleStroke$1, props);
196
- } else if (validation === 'warning') {
197
- retVal = React__namespace.default.createElement(SvgAlertWarningStroke, props);
198
- } else {
199
- retVal = React__namespace.default.cloneElement(React.Children.only(children));
200
- }
201
- return retVal;
202
- };
203
102
  const COMPONENT_ID$B = 'forms.input_message_icon';
204
- const StyledMessageIcon = styled__default.default(MessageIcon).attrs({
103
+ const StyledMessageIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
205
104
  'data-garden-id': COMPONENT_ID$B,
206
- 'data-garden-version': '9.0.0-next.9',
207
- 'aria-hidden': null
105
+ 'data-garden-version': '9.1.0'
208
106
  }).withConfig({
209
107
  displayName: "StyledMessageIcon",
210
108
  componentId: "sc-1ph2gba-0"
211
109
  })(["width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$B, props));
212
- StyledMessageIcon.defaultProps = {
213
- theme: reactTheming.DEFAULT_THEME
214
- };
215
110
 
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);
111
+ const COMPONENT_ID$A = 'forms.input_message';
112
+ const colorStyles$d = _ref => {
113
+ let {
114
+ theme,
115
+ $validation
116
+ } = _ref;
117
+ let variable;
118
+ if ($validation === 'error') {
119
+ variable = 'foreground.danger';
120
+ } else if ($validation === 'success') {
121
+ variable = 'foreground.success';
122
+ } else if ($validation === 'warning') {
123
+ variable = 'foreground.warning';
226
124
  } else {
227
- color = reactTheming.getColorV8('neutralHue', 700, props.theme);
125
+ variable = 'foreground.subtle';
228
126
  }
229
- return styled.css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
127
+ const foregroundColor = reactTheming.getColor({
128
+ theme,
129
+ variable
130
+ });
131
+ return styled.css(["color:", ";"], foregroundColor);
132
+ };
133
+ const sizeStyles$g = _ref2 => {
134
+ let {
135
+ theme,
136
+ $validation
137
+ } = _ref2;
138
+ const fontSize = theme.fontSizes.sm;
139
+ const lineHeight = reactTheming.getLineHeight(theme.iconSizes.md, theme.fontSizes.sm);
140
+ const marginTop = `${theme.space.base}px`;
141
+ const paddingHorizontal = $validation ? polished.math(`${theme.space.base * 2} + ${theme.iconSizes.md}`) : undefined;
142
+ return styled.css(["padding-", ":", ";line-height:", ";font-size:", ";", ":not([hidden]) + &{margin-top:", ";}"], theme.rtl ? 'right' : 'left', paddingHorizontal, lineHeight, fontSize, StyledLabel, marginTop);
230
143
  };
231
- const COMPONENT_ID$A = 'forms.input_message';
232
144
  const StyledMessage = styled__default.default.div.attrs(props => ({
233
145
  'data-garden-id': props['data-garden-id'] || COMPONENT_ID$A,
234
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.9'
146
+ 'data-garden-version': props['data-garden-version'] || '9.1.0'
235
147
  })).withConfig({
236
148
  displayName: "StyledMessage",
237
149
  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));
239
- StyledMessage.defaultProps = {
240
- theme: reactTheming.DEFAULT_THEME
150
+ })(["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));
151
+
152
+ var _path$n;
153
+ 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); }
154
+ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
155
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
156
+ xmlns: "http://www.w3.org/2000/svg",
157
+ width: 16,
158
+ height: 16,
159
+ focusable: "false",
160
+ viewBox: "0 0 16 16",
161
+ "aria-hidden": "true"
162
+ }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
163
+ fill: "currentColor",
164
+ 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"
165
+ })));
241
166
  };
242
167
 
243
168
  const COMPONENT_ID$z = 'forms.input';
244
169
  const isInvalid = validation => {
245
170
  return validation === 'warning' || validation === 'error';
246
171
  };
247
- const colorStyles$a = props => {
248
- const HUE = 'primaryHue';
249
- const SHADE = 600;
250
- const placeholderColor = reactTheming.getColorV8('neutralHue', SHADE - 200, props.theme);
172
+ const colorStyles$c = _ref => {
173
+ let {
174
+ theme,
175
+ $isBare,
176
+ $isHovered,
177
+ $focusInset,
178
+ $validation
179
+ } = _ref;
180
+ const foregroundColor = reactTheming.getColor({
181
+ theme,
182
+ variable: 'foreground.default'
183
+ });
184
+ const backgroundColor = $isBare ? 'transparent' : reactTheming.getColor({
185
+ theme,
186
+ variable: 'background.default'
187
+ });
251
188
  let borderColor;
252
189
  let hoverBorderColor;
190
+ let borderVariable;
253
191
  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';
192
+ if ($validation) {
193
+ if ($validation === 'success') {
194
+ borderVariable = 'border.successEmphasis';
195
+ } else if ($validation === 'warning') {
196
+ borderVariable = 'border.warningEmphasis';
197
+ } else if ($validation === 'error') {
198
+ borderVariable = 'border.dangerEmphasis';
265
199
  }
266
- borderColor = reactTheming.getColorV8(hue, SHADE, props.theme);
200
+ borderColor = reactTheming.getColor({
201
+ theme,
202
+ variable: borderVariable
203
+ });
267
204
  hoverBorderColor = borderColor;
268
205
  focusBorderColor = borderColor;
269
- focusRingHue = hue;
270
206
  } else {
271
- borderColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
272
- hoverBorderColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
207
+ borderColor = reactTheming.getColor({
208
+ theme,
209
+ variable: 'border.default',
210
+ dark: {
211
+ offset: -100
212
+ },
213
+ light: {
214
+ offset: 100
215
+ }
216
+ });
217
+ borderVariable = 'border.primaryEmphasis';
218
+ hoverBorderColor = reactTheming.getColor({
219
+ theme,
220
+ variable: borderVariable
221
+ });
273
222
  focusBorderColor = hoverBorderColor;
274
223
  }
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,
224
+ const disabledBackgroundColor = $isBare ? undefined : reactTheming.getColor({
225
+ theme,
226
+ variable: 'background.disabled'
227
+ });
228
+ const disabledBorderColor = reactTheming.getColor({
229
+ theme,
230
+ variable: 'border.disabled'
231
+ });
232
+ const disabledForegroundColor = reactTheming.getColor({
233
+ theme,
234
+ variable: 'foreground.disabled'
235
+ });
236
+ const placeholderColor = disabledForegroundColor;
237
+ const readOnlyBackgroundColor = disabledBackgroundColor;
238
+ const calendarPickerColor = reactTheming.getColor({
239
+ theme,
240
+ variable: 'foreground.subtle'
241
+ });
242
+ const calendarPickerIcon = server.renderToString(React__namespace.default.createElement(SvgChevronDownStroke, {
243
+ color: calendarPickerColor
244
+ }));
245
+ const calendarPickerBackgroundImage = `url("data:image/svg+xml,${encodeURIComponent(calendarPickerIcon)}")`;
246
+ 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({
247
+ theme,
248
+ inset: $focusInset,
291
249
  color: {
292
- hue: focusRingHue,
293
- shade: focusRingShade
250
+ variable: borderVariable
294
251
  },
295
252
  styles: {
296
253
  borderColor: focusBorderColor
297
- }
298
- }), disabledBorderColor, !props.isBare && disabledBackgroundColor, disabledForegroundColor);
254
+ },
255
+ condition: !$isBare
256
+ }), reactTheming.focusStyles({
257
+ theme
258
+ }), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
299
259
  };
300
- const sizeStyles$c = props => {
301
- const fontSize = props.theme.fontSizes.md;
302
- const paddingHorizontal = `${props.theme.space.base * 3}px`;
260
+ const sizeStyles$f = _ref2 => {
261
+ let {
262
+ theme,
263
+ $isBare,
264
+ $isCompact
265
+ } = _ref2;
266
+ const fontSize = theme.fontSizes.md;
267
+ const paddingHorizontal = `${theme.space.base * 3}px`;
303
268
  let height;
304
269
  let paddingVertical;
305
270
  let browseFontSize;
306
271
  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`;
272
+ if ($isCompact) {
273
+ height = `${theme.space.base * 8}px`;
274
+ paddingVertical = `${theme.space.base * 1.5}px`;
275
+ browseFontSize = polished.math(`${theme.fontSizes.sm} - 1`);
276
+ swatchHeight = `${theme.space.base * 6}px`;
312
277
  } 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`;
278
+ height = `${theme.space.base * 10}px`;
279
+ paddingVertical = `${theme.space.base * 2.5}px`;
280
+ browseFontSize = theme.fontSizes.sm;
281
+ swatchHeight = `${theme.space.base * 7}px`;
317
282
  }
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)}`;
283
+ const lineHeight = polished.math(`${height} - (${paddingVertical} * 2) - (${theme.borderWidths.sm} * 2)`);
284
+ const padding = $isBare ? '0' : `${polished.em(paddingVertical, fontSize)} ${polished.em(paddingHorizontal, fontSize)}`;
320
285
  const swatchMarginVertical = polished.math(`(${lineHeight} - ${swatchHeight}) / 2`);
321
286
  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));
287
+ const calendarPickerSize = `${theme.space.base * 5}px`;
288
+ const calendarPickerBackgroundSize = theme.iconSizes.md;
289
+ 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
290
  };
324
291
  const StyledTextInput = styled__default.default.input.attrs(props => ({
325
292
  'data-garden-id': COMPONENT_ID$z,
326
- 'data-garden-version': '9.0.0-next.9',
327
- 'aria-invalid': isInvalid(props.validation)
293
+ 'data-garden-version': '9.1.0',
294
+ 'aria-invalid': isInvalid(props.$validation)
328
295
  })).withConfig({
329
296
  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));
332
- StyledTextInput.defaultProps = {
333
- theme: reactTheming.DEFAULT_THEME
334
- };
297
+ componentId: "sc-1r6733h-0"
298
+ })(["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));
335
299
 
336
300
  const COMPONENT_ID$y = 'forms.textarea';
337
301
  const hiddenStyles = `
@@ -346,26 +310,48 @@ const hiddenStyles = `
346
310
  const StyledTextarea = styled__default.default(StyledTextInput).attrs({
347
311
  as: 'textarea',
348
312
  'data-garden-id': COMPONENT_ID$y,
349
- 'data-garden-version': '9.0.0-next.9'
313
+ 'data-garden-version': '9.1.0'
350
314
  }).withConfig({
351
315
  displayName: "StyledTextarea",
352
316
  componentId: "sc-wxschl-0"
353
- })(["resize:", ";overflow:auto;", ";", ";"], props => props.isResizable ? 'vertical' : 'none', props => props.isHidden && hiddenStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$y, props));
354
- StyledTextarea.defaultProps = {
355
- theme: reactTheming.DEFAULT_THEME
356
- };
317
+ })(["resize:", ";overflow:auto;", ";", ";"], props => props.$isResizable ? 'vertical' : 'none', props => props.$isHidden && hiddenStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$y, props));
357
318
 
358
319
  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;
320
+ const colorStyles$b = _ref => {
321
+ let {
322
+ theme,
323
+ $isDisabled,
324
+ $isHovered,
325
+ $isFocused
326
+ } = _ref;
327
+ let color;
328
+ if ($isDisabled) {
329
+ color = reactTheming.getColor({
330
+ theme,
331
+ variable: 'foreground.disabled'
332
+ });
333
+ } else {
334
+ const options = {
335
+ theme,
336
+ variable: 'foreground.subtle'
337
+ };
338
+ if ($isHovered || $isFocused) {
339
+ color = reactTheming.getColor({
340
+ ...options,
341
+ dark: {
342
+ offset: -100
343
+ },
344
+ light: {
345
+ offset: 100
346
+ }
347
+ });
348
+ } else {
349
+ color = reactTheming.getColor(options);
350
+ }
365
351
  }
366
- return styled.css(["color:", ";"], reactTheming.getColorV8('neutralHue', shade, props.theme));
352
+ return styled.css(["color:", ";"], color);
367
353
  };
368
- const sizeStyles$b = props => {
354
+ const sizeStyles$e = props => {
369
355
  const size = props.theme.iconSizes.md;
370
356
  const marginFirst = `1px ${props.theme.space.base * 2}px auto 0`;
371
357
  const marginLast = `1px 0 auto ${props.theme.space.base * 2}px`;
@@ -379,80 +365,79 @@ const sizeStyles$b = props => {
379
365
  };
380
366
  const StyledTextMediaFigure = styled__default.default(reactTheming.StyledBaseIcon).attrs({
381
367
  'data-garden-id': COMPONENT_ID$x,
382
- 'data-garden-version': '9.0.0-next.9'
368
+ 'data-garden-version': '9.1.0'
383
369
  }).withConfig({
384
370
  displayName: "StyledTextMediaFigure",
385
371
  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));
387
- StyledTextMediaFigure.defaultProps = {
388
- theme: reactTheming.DEFAULT_THEME
389
- };
372
+ })(["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));
390
373
 
391
374
  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 {
375
+ const colorStyles$a = _ref => {
376
+ let {
406
377
  theme,
407
- validation,
408
- focusInset,
409
- isBare,
410
- isFocused
411
- } = props;
378
+ $validation,
379
+ $focusInset,
380
+ $isBare,
381
+ $isFocused
382
+ } = _ref;
383
+ let borderVariable;
384
+ let focusBorderColor;
385
+ if ($validation) {
386
+ if ($validation === 'success') {
387
+ borderVariable = 'border.successEmphasis';
388
+ } else if ($validation === 'warning') {
389
+ borderVariable = 'border.warningEmphasis';
390
+ } else if ($validation === 'error') {
391
+ borderVariable = 'border.dangerEmphasis';
392
+ }
393
+ focusBorderColor = reactTheming.getColor({
394
+ theme,
395
+ variable: borderVariable
396
+ });
397
+ } else {
398
+ borderVariable = 'border.primaryEmphasis';
399
+ focusBorderColor = reactTheming.getColor({
400
+ theme,
401
+ variable: borderVariable
402
+ });
403
+ }
412
404
  return styled.css(["", ""], reactTheming.focusStyles({
413
405
  theme,
414
- inset: focusInset,
415
- condition: !isBare,
406
+ inset: $focusInset,
416
407
  color: {
417
- hue: getValidationHue(validation),
418
- shade: validation === 'warning' ? 700 : 600
408
+ variable: borderVariable
419
409
  },
420
- selector: isFocused ? '&' : '&:focus-within',
410
+ selector: $isFocused ? '&' : '&:focus-within',
421
411
  styles: {
422
- borderColor: reactTheming.getColorV8(getValidationHue(validation), 600, theme)
423
- }
412
+ borderColor: focusBorderColor
413
+ },
414
+ condition: !$isBare
424
415
  }));
425
416
  };
426
417
  const StyledTextFauxInput = styled__default.default(StyledTextInput).attrs(props => ({
427
418
  as: 'div',
428
- 'aria-readonly': props.isReadOnly,
429
- 'aria-disabled': props.isDisabled,
419
+ 'aria-readonly': props.$isReadOnly,
420
+ 'aria-disabled': props.$isDisabled,
430
421
  'data-garden-id': COMPONENT_ID$w,
431
- 'data-garden-version': '9.0.0-next.9'
422
+ 'data-garden-version': '9.1.0'
432
423
  })).withConfig({
433
424
  displayName: "StyledTextFauxInput",
434
425
  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));
436
- StyledTextFauxInput.defaultProps = {
437
- theme: reactTheming.DEFAULT_THEME
438
- };
426
+ })(["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));
439
427
 
440
428
  const COMPONENT_ID$v = 'forms.media_input';
441
429
  const StyledTextMediaInput = styled__default.default(StyledTextInput).attrs({
442
430
  'data-garden-id': COMPONENT_ID$v,
443
- 'data-garden-version': '9.0.0-next.9',
444
- isBare: true
431
+ 'data-garden-version': '9.1.0',
432
+ $isBare: true
445
433
  }).withConfig({
446
434
  displayName: "StyledTextMediaInput",
447
435
  componentId: "sc-12i9xfi-0"
448
436
  })(["flex-grow:1;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
449
- StyledTextMediaInput.defaultProps = {
450
- theme: reactTheming.DEFAULT_THEME
451
- };
452
437
 
453
438
  const COMPONENT_ID$u = 'forms.input_group';
454
439
  const positionStyles = props => {
455
- const topMargin = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
440
+ const topMargin = `${props.theme.space.base * (props.$isCompact ? 1 : 2)}px`;
456
441
  return styled.css(["", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}& > ", "{position:relative;flex:1 1 auto;margin-top:0;margin-bottom:0;width:auto;min-width:0;}"], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, topMargin, StyledTextInput);
457
442
  };
458
443
  const itemStyles = props => {
@@ -462,17 +447,14 @@ const itemStyles = props => {
462
447
  };
463
448
  const StyledInputGroup = styled__default.default.div.attrs({
464
449
  'data-garden-id': COMPONENT_ID$u,
465
- 'data-garden-version': '9.0.0-next.9'
450
+ 'data-garden-version': '9.1.0'
466
451
  }).withConfig({
467
452
  displayName: "StyledInputGroup",
468
453
  componentId: "sc-kjh1f0-0"
469
454
  })(["display:inline-flex;position:relative;flex-wrap:nowrap;align-items:stretch;z-index:0;width:100%;", ";", ";", ";"], props => positionStyles(props), props => itemStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$u, props));
470
- StyledInputGroup.defaultProps = {
471
- theme: reactTheming.DEFAULT_THEME
472
- };
473
455
 
474
456
  const COMPONENT_ID$t = 'forms.radio_label';
475
- const sizeStyles$a = props => {
457
+ const sizeStyles$d = props => {
476
458
  const size = props.theme.space.base * 4;
477
459
  const padding = size + props.theme.space.base * 2;
478
460
  const lineHeight = props.theme.space.base * 5;
@@ -480,150 +462,231 @@ const sizeStyles$a = props => {
480
462
  };
481
463
  const StyledRadioLabel = styled__default.default(StyledLabel).attrs({
482
464
  'data-garden-id': COMPONENT_ID$t,
483
- 'data-garden-version': '9.0.0-next.9',
484
- isRadio: true
465
+ 'data-garden-version': '9.1.0',
466
+ $isRadio: true
485
467
  }).withConfig({
486
468
  displayName: "StyledRadioLabel",
487
469
  componentId: "sc-1aq2e5t-0"
488
- })(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$a(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
489
- StyledRadioLabel.defaultProps = {
490
- theme: reactTheming.DEFAULT_THEME
491
- };
470
+ })(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$d(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
492
471
 
493
472
  const COMPONENT_ID$s = 'forms.checkbox_label';
494
473
  const StyledCheckLabel = styled__default.default(StyledRadioLabel).attrs({
495
474
  'data-garden-id': COMPONENT_ID$s,
496
- 'data-garden-version': '9.0.0-next.9'
475
+ 'data-garden-version': '9.1.0'
497
476
  }).withConfig({
498
477
  displayName: "StyledCheckLabel",
499
478
  componentId: "sc-x7nr1-0"
500
479
  })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
501
- StyledCheckLabel.defaultProps = {
502
- theme: reactTheming.DEFAULT_THEME
503
- };
504
480
 
505
481
  const COMPONENT_ID$r = 'forms.radio_hint';
506
482
  const StyledRadioHint = styled__default.default(StyledHint).attrs({
507
483
  'data-garden-id': COMPONENT_ID$r,
508
- 'data-garden-version': '9.0.0-next.9'
484
+ 'data-garden-version': '9.1.0'
509
485
  }).withConfig({
510
486
  displayName: "StyledRadioHint",
511
487
  componentId: "sc-eo8twg-0"
512
488
  })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 6px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
513
- StyledRadioHint.defaultProps = {
514
- theme: reactTheming.DEFAULT_THEME
515
- };
516
489
 
517
490
  const COMPONENT_ID$q = 'forms.checkbox_hint';
518
491
  const StyledCheckHint = styled__default.default(StyledRadioHint).attrs({
519
492
  'data-garden-id': COMPONENT_ID$q,
520
- 'data-garden-version': '9.0.0-next.9'
493
+ 'data-garden-version': '9.1.0'
521
494
  }).withConfig({
522
495
  displayName: "StyledCheckHint",
523
496
  componentId: "sc-1kl8e8c-0"
524
497
  })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
525
- StyledCheckHint.defaultProps = {
526
- theme: reactTheming.DEFAULT_THEME
527
- };
528
498
 
529
499
  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);
500
+ const colorStyles$9 = _ref => {
501
+ let {
502
+ theme
503
+ } = _ref;
504
+ const borderColor = reactTheming.getColor({
505
+ theme,
506
+ variable: 'border.emphasis'
507
+ });
508
+ const backgroundColor = reactTheming.getColor({
509
+ theme,
510
+ variable: 'background.default'
511
+ });
512
+ const iconColor = reactTheming.getColor({
513
+ theme,
514
+ variable: 'foreground.onEmphasis'
515
+ });
516
+ const backgroundOptions = {
517
+ theme,
518
+ variable: 'background.primaryEmphasis'
519
+ };
520
+ const borderOptions = {
521
+ theme,
522
+ variable: 'border.primaryEmphasis'
523
+ };
524
+ const hoverBackgroundColor = reactTheming.getColor({
525
+ ...backgroundOptions,
526
+ transparency: theme.opacity[100]
527
+ });
528
+ const hoverBorderColor = reactTheming.getColor(borderOptions);
537
529
  const focusBorderColor = hoverBorderColor;
538
- const activeBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme, 0.2);
530
+ const activeBackgroundColor = reactTheming.getColor({
531
+ ...backgroundOptions,
532
+ transparency: theme.opacity[200]
533
+ });
539
534
  const activeBorderColor = focusBorderColor;
535
+ const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
540
536
  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);
537
+ const offset100 = {
538
+ dark: {
539
+ offset: -100
540
+ },
541
+ light: {
542
+ offset: 100
543
+ }
544
+ };
545
+ const offset200 = {
546
+ dark: {
547
+ offset: -200
548
+ },
549
+ light: {
550
+ offset: 200
551
+ }
552
+ };
553
+ const checkedHoverBackgroundColor = reactTheming.getColor({
554
+ ...backgroundOptions,
555
+ ...offset100
556
+ });
557
+ const checkedHoverBorderColor = reactTheming.getColor({
558
+ ...borderOptions,
559
+ ...offset100
560
+ });
561
+ const checkedActiveBackgroundColor = reactTheming.getColor({
562
+ ...backgroundOptions,
563
+ ...offset200
564
+ });
565
+ const checkedActiveBorderColor = reactTheming.getColor({
566
+ ...borderOptions,
567
+ ...offset200
568
+ });
569
+ const disabledBackgroundColor = reactTheming.getColor({
570
+ theme,
571
+ variable: 'background.disabled',
572
+ transparency: theme.opacity[300]
573
+ });
547
574
  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,
575
+ theme,
549
576
  styles: {
550
577
  borderColor: focusBorderColor
551
578
  },
552
579
  selector: `&:focus-visible ~ ${StyledRadioLabel}::before`
553
580
  }), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
554
581
  };
555
- const sizeStyles$9 = props => {
556
- const lineHeight = `${props.theme.space.base * 5}px`;
557
- const size = `${props.theme.space.base * 4}px`;
582
+ const sizeStyles$c = _ref2 => {
583
+ let {
584
+ theme,
585
+ $isCompact
586
+ } = _ref2;
587
+ const lineHeight = `${theme.space.base * 5}px`;
588
+ const size = `${theme.space.base * 4}px`;
558
589
  const top = polished.math(`(${lineHeight} - ${size}) / 2`);
559
- const iconSize = props.theme.iconSizes.sm;
590
+ const iconSize = theme.iconSizes.sm;
560
591
  const iconPosition = polished.math(`(${size} - ${iconSize}) / 2`);
561
592
  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);
593
+ const marginTop = `${theme.space.base * ($isCompact ? 1 : 2)}px`;
594
+ 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
595
  };
565
596
  const StyledRadioInput = styled__default.default.input.attrs({
566
597
  'data-garden-id': COMPONENT_ID$p,
567
- 'data-garden-version': '9.0.0-next.9',
598
+ 'data-garden-version': '9.1.0',
568
599
  type: 'radio'
569
600
  }).withConfig({
570
601
  displayName: "StyledRadioInput",
571
602
  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));
573
- StyledRadioInput.defaultProps = {
574
- theme: reactTheming.DEFAULT_THEME
575
- };
603
+ })(["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));
576
604
 
577
605
  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);
606
+ const colorStyles$8 = _ref => {
607
+ let {
608
+ theme
609
+ } = _ref;
610
+ const backgroundOptions = {
611
+ theme,
612
+ variable: 'background.primaryEmphasis'
613
+ };
614
+ const borderOptions = {
615
+ theme,
616
+ variable: 'border.primaryEmphasis'
617
+ };
618
+ const indeterminateBackgroundColor = reactTheming.getColor(backgroundOptions);
619
+ const indeterminateBorderColor = reactTheming.getColor(borderOptions);
620
+ const offset100 = {
621
+ dark: {
622
+ offset: -100
623
+ },
624
+ light: {
625
+ offset: 100
626
+ }
627
+ };
628
+ const offset200 = {
629
+ dark: {
630
+ offset: -200
631
+ },
632
+ light: {
633
+ offset: 200
634
+ }
635
+ };
636
+ const indeterminateHoverBackgroundColor = reactTheming.getColor({
637
+ ...backgroundOptions,
638
+ ...offset100
639
+ });
640
+ const indeterminateHoverBorderColor = reactTheming.getColor({
641
+ ...borderOptions,
642
+ ...offset100
643
+ });
644
+ const indeterminateActiveBackgroundColor = reactTheming.getColor({
645
+ ...backgroundOptions,
646
+ ...offset200
647
+ });
648
+ const indeterminateActiveBorderColor = reactTheming.getColor({
649
+ ...borderOptions,
650
+ ...offset200
651
+ });
652
+ const indeterminateDisabledBackgroundColor = reactTheming.getColor({
653
+ theme,
654
+ variable: 'background.disabled',
655
+ transparency: theme.opacity[300]
656
+ });
657
+ 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
658
  };
587
659
  const StyledCheckInput = styled__default.default(StyledRadioInput).attrs({
588
660
  'data-garden-id': COMPONENT_ID$o,
589
- 'data-garden-version': '9.0.0-next.9',
661
+ 'data-garden-version': '9.1.0',
590
662
  type: 'checkbox'
591
663
  }).withConfig({
592
664
  displayName: "StyledCheckInput",
593
665
  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));
595
- StyledCheckInput.defaultProps = {
596
- theme: reactTheming.DEFAULT_THEME
597
- };
666
+ })(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, colorStyles$8, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
598
667
 
599
668
  const COMPONENT_ID$n = 'forms.radio_message';
600
669
  const StyledRadioMessage = styled__default.default(StyledMessage).attrs({
601
670
  'data-garden-id': COMPONENT_ID$n,
602
- 'data-garden-version': '9.0.0-next.9'
671
+ 'data-garden-version': '9.1.0'
603
672
  }).withConfig({
604
673
  displayName: "StyledRadioMessage",
605
674
  componentId: "sc-1pmi0q8-0"
606
675
  })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 6px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
607
- StyledRadioMessage.defaultProps = {
608
- theme: reactTheming.DEFAULT_THEME
609
- };
610
676
 
611
677
  const COMPONENT_ID$m = 'forms.checkbox_message';
612
678
  const StyledCheckMessage = styled__default.default(StyledRadioMessage).attrs({
613
679
  'data-garden-id': COMPONENT_ID$m,
614
- 'data-garden-version': '9.0.0-next.9'
680
+ 'data-garden-version': '9.1.0'
615
681
  }).withConfig({
616
682
  displayName: "StyledCheckMessage",
617
683
  componentId: "sc-s4p6kd-0"
618
684
  })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
619
- StyledCheckMessage.defaultProps = {
620
- theme: reactTheming.DEFAULT_THEME
621
- };
622
685
 
623
686
  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); }
687
+ 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); }
625
688
  var SvgCheckSmFill = function SvgCheckSmFill(props) {
626
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
689
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
627
690
  xmlns: "http://www.w3.org/2000/svg",
628
691
  width: 12,
629
692
  height: 12,
@@ -643,19 +706,16 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
643
706
  const COMPONENT_ID$l = 'forms.check_svg';
644
707
  const StyledCheckSvg = styled__default.default(SvgCheckSmFill).attrs({
645
708
  'data-garden-id': COMPONENT_ID$l,
646
- 'data-garden-version': '9.0.0-next.9'
709
+ 'data-garden-version': '9.1.0'
647
710
  }).withConfig({
648
711
  displayName: "StyledCheckSvg",
649
712
  componentId: "sc-fvxetk-0"
650
713
  })(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":checked ~ ", " > &{opacity:1;}", ":indeterminate ~ ", " > &{opacity:0;}", ";"], StyledCheckInput, StyledCheckLabel, StyledCheckInput, StyledCheckLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
651
- StyledCheckSvg.defaultProps = {
652
- theme: reactTheming.DEFAULT_THEME
653
- };
654
714
 
655
715
  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); }
716
+ 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); }
657
717
  var SvgDashFill = function SvgDashFill(props) {
658
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
718
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
659
719
  xmlns: "http://www.w3.org/2000/svg",
660
720
  width: 12,
661
721
  height: 12,
@@ -673,98 +733,182 @@ var SvgDashFill = function SvgDashFill(props) {
673
733
  const COMPONENT_ID$k = 'forms.dash_svg';
674
734
  const StyledDashSvg = styled__default.default(SvgDashFill).attrs({
675
735
  'data-garden-id': COMPONENT_ID$k,
676
- 'data-garden-version': '9.0.0-next.9'
736
+ 'data-garden-version': '9.1.0'
677
737
  }).withConfig({
678
738
  displayName: "StyledDashSvg",
679
739
  componentId: "sc-z3vq71-0"
680
740
  })(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
681
- StyledDashSvg.defaultProps = {
682
- theme: reactTheming.DEFAULT_THEME
683
- };
684
741
 
685
742
  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
743
+ const colorStyles$7 = _ref => {
744
+ let {
745
+ theme,
746
+ $isDragging
747
+ } = _ref;
748
+ const borderOptions = {
749
+ theme,
750
+ variable: 'border.primaryEmphasis'
751
+ };
752
+ const backgroundOptions = {
753
+ theme,
754
+ variable: 'background.primaryEmphasis'
755
+ };
756
+ const foregroundOptions = {
757
+ theme,
758
+ variable: 'foreground.primary'
759
+ };
760
+ const offset100 = {
761
+ dark: {
762
+ offset: -100
763
+ },
764
+ light: {
765
+ offset: 100
766
+ }
767
+ };
768
+ const offset200 = {
769
+ dark: {
770
+ offset: -200
771
+ },
772
+ light: {
773
+ offset: 200
696
774
  }
697
- }), activeColor, polished.rgba(baseColor, 0.2), activeColor, disabledForegroundColor, disabledBackgroundColor, disabledForegroundColor);
775
+ };
776
+ const borderColor = reactTheming.getColor({
777
+ theme,
778
+ variable: 'border.emphasis'
779
+ });
780
+ const foregroundColor = reactTheming.getColor(foregroundOptions);
781
+ const hoverBorderColor = reactTheming.getColor({
782
+ ...borderOptions,
783
+ ...offset100
784
+ });
785
+ const hoverBackgroundColor = reactTheming.getColor({
786
+ ...backgroundOptions,
787
+ transparency: theme.opacity[100]
788
+ });
789
+ const hoverForegroundColor = reactTheming.getColor({
790
+ ...foregroundOptions,
791
+ ...offset100
792
+ });
793
+ const activeBorderColor = reactTheming.getColor({
794
+ ...borderOptions,
795
+ ...offset200
796
+ });
797
+ const activeBackgroundColor = reactTheming.getColor({
798
+ ...backgroundOptions,
799
+ transparency: theme.opacity[200]
800
+ });
801
+ const activeForegroundColor = reactTheming.getColor({
802
+ ...foregroundOptions,
803
+ ...offset200
804
+ });
805
+ const disabledBorderColor = reactTheming.getColor({
806
+ theme,
807
+ variable: 'border.disabled'
808
+ });
809
+ const disabledBackgroundColor = reactTheming.getColor({
810
+ theme,
811
+ variable: 'background.disabled'
812
+ });
813
+ const disabledForegroundColor = reactTheming.getColor({
814
+ theme,
815
+ variable: 'foreground.disabled'
816
+ });
817
+ 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({
818
+ theme
819
+ }), activeBorderColor, activeBackgroundColor, activeForegroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
698
820
  };
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);
821
+ const sizeStyles$b = _ref2 => {
822
+ let {
823
+ theme,
824
+ $isCompact
825
+ } = _ref2;
826
+ const marginTop = `${theme.space.base * ($isCompact ? 1 : 2)}px`;
827
+ const paddingHorizontal = `${$isCompact ? 2 : 4}em`;
828
+ const paddingVertical = polished.math(`${theme.space.base * ($isCompact ? 2.5 : 5)} - ${theme.borderWidths.sm}`);
829
+ const fontSize = theme.fontSizes.md;
830
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
705
831
  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
832
  };
707
833
  const StyledFileUpload = styled__default.default.div.attrs({
708
834
  'data-garden-id': COMPONENT_ID$j,
709
- 'data-garden-version': '9.0.0-next.9'
835
+ 'data-garden-version': '9.1.0'
710
836
  }).withConfig({
711
837
  displayName: "StyledFileUpload",
712
838
  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));
714
- StyledFileUpload.defaultProps = {
715
- theme: reactTheming.DEFAULT_THEME
716
- };
839
+ })(["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));
717
840
 
718
841
  const COMPONENT_ID$i = 'forms.file.close';
719
842
  const StyledFileClose = styled__default.default.button.attrs({
720
843
  'data-garden-id': COMPONENT_ID$i,
721
- 'data-garden-version': '9.0.0-next.9'
844
+ 'data-garden-version': '9.1.0'
722
845
  }).withConfig({
723
846
  displayName: "StyledFileClose",
724
847
  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));
726
- StyledFileClose.defaultProps = {
727
- theme: reactTheming.DEFAULT_THEME
728
- };
848
+ })(["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({
849
+ theme: props.theme,
850
+ variable: 'foreground.subtle'
851
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
729
852
 
730
853
  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;
854
+ const colorStyles$6 = _ref => {
855
+ let {
856
+ theme,
857
+ $focusInset,
858
+ $validation
859
+ } = _ref;
860
+ let borderVariable;
861
+ let focusBorderVariable;
862
+ let foregroundVariable;
863
+ if ($validation === 'success') {
864
+ borderVariable = 'border.successEmphasis';
865
+ focusBorderVariable = borderVariable;
866
+ foregroundVariable = 'foreground.success';
867
+ } else if ($validation === 'error') {
868
+ borderVariable = 'border.dangerEmphasis';
869
+ focusBorderVariable = borderVariable;
870
+ foregroundVariable = 'foreground.danger';
743
871
  } 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);
872
+ borderVariable = 'border.default';
873
+ focusBorderVariable = 'border.primaryEmphasis';
874
+ foregroundVariable = 'foreground.default';
747
875
  }
876
+ const borderColor = reactTheming.getColor({
877
+ theme,
878
+ variable: borderVariable
879
+ });
880
+ const focusBorderColor = reactTheming.getColor({
881
+ theme,
882
+ variable: focusBorderVariable
883
+ });
884
+ const foregroundColor = reactTheming.getColor({
885
+ theme,
886
+ variable: foregroundVariable
887
+ });
748
888
  return styled.css(["border-color:", ";color:", ";", ""], borderColor, foregroundColor, reactTheming.focusStyles({
749
- theme: props.theme,
750
- inset: props.focusInset,
889
+ theme,
890
+ inset: $focusInset,
751
891
  color: {
752
- hue: focusBorderColor
892
+ variable: focusBorderVariable
753
893
  },
754
894
  styles: {
755
895
  borderColor: focusBorderColor
756
896
  }
757
897
  }));
758
898
  };
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);
899
+ const sizeStyles$a = _ref2 => {
900
+ let {
901
+ theme,
902
+ $isCompact
903
+ } = _ref2;
904
+ const size = `${theme.space.base * ($isCompact ? 7 : 10)}px`;
905
+ const spacing = `${theme.space.base * ($isCompact ? 2 : 3)}px`;
906
+ const fontSize = theme.fontSizes.md;
907
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
764
908
  return `
765
909
  box-sizing: border-box;
766
- border: ${props.theme.borders.sm};
767
- border-radius: ${props.theme.borderRadii.md};
910
+ border: ${theme.borders.sm};
911
+ border-radius: ${theme.borderRadii.md};
768
912
  padding: 0 ${spacing};
769
913
  height: ${size};
770
914
  line-height: ${lineHeight};
@@ -777,80 +921,88 @@ const sizeStyles$7 = props => {
777
921
  & > ${StyledFileClose} {
778
922
  width: ${size};
779
923
  height: ${size};
780
- margin-${props.theme.rtl ? 'left' : 'right'}: -${spacing};
924
+ margin-${theme.rtl ? 'left' : 'right'}: -${spacing};
781
925
  }
782
926
  `;
783
927
  };
784
928
  const StyledFile = styled__default.default.div.attrs({
785
929
  'data-garden-id': COMPONENT_ID$h,
786
- 'data-garden-version': '9.0.0-next.9'
930
+ 'data-garden-version': '9.1.0'
787
931
  }).withConfig({
788
932
  displayName: "StyledFile",
789
933
  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));
791
- StyledFile.defaultProps = {
792
- theme: reactTheming.DEFAULT_THEME
793
- };
934
+ })(["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));
794
935
 
795
936
  const COMPONENT_ID$g = 'forms.file.delete';
796
937
  const StyledFileDelete = styled__default.default(StyledFileClose).attrs({
797
938
  'data-garden-id': COMPONENT_ID$g,
798
- 'data-garden-version': '9.0.0-next.9'
939
+ 'data-garden-version': '9.1.0'
799
940
  }).withConfig({
800
941
  displayName: "StyledFileDelete",
801
942
  componentId: "sc-a8nnhx-0"
802
- })(["color:", ";", ";"], props => reactTheming.getColorV8('dangerHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
803
- StyledFileDelete.defaultProps = {
804
- theme: reactTheming.DEFAULT_THEME
805
- };
943
+ })(["color:", ";", ";"], props => reactTheming.getColor({
944
+ theme: props.theme,
945
+ variable: 'foreground.danger'
946
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
806
947
 
807
948
  const COMPONENT_ID$f = 'forms.file.icon';
949
+ const colorStyles$5 = _ref => {
950
+ let {
951
+ theme,
952
+ $validation
953
+ } = _ref;
954
+ const color = $validation ? undefined : reactTheming.getColor({
955
+ theme,
956
+ variable: 'foreground.subtle'
957
+ });
958
+ return styled.css(["color:", ";"], color);
959
+ };
960
+ const sizeStyles$9 = _ref2 => {
961
+ let {
962
+ $isCompact,
963
+ theme
964
+ } = _ref2;
965
+ const width = $isCompact ? theme.iconSizes.sm : theme.iconSizes.md;
966
+ const margin = `${theme.space.base * 2}px`;
967
+ return styled.css(["width:", ";margin-", ":", ";"], width, theme.rtl ? 'left' : 'right', margin);
968
+ };
808
969
  const StyledFileIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
809
970
  'data-garden-id': COMPONENT_ID$f,
810
- 'data-garden-version': '9.0.0-next.9'
971
+ 'data-garden-version': '9.1.0'
811
972
  }).withConfig({
812
973
  displayName: "StyledFileIcon",
813
974
  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));
815
- StyledFileIcon.defaultProps = {
816
- theme: reactTheming.DEFAULT_THEME
817
- };
975
+ })(["flex-shrink:0;", ";", ";", ";"], sizeStyles$9, colorStyles$5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
818
976
 
819
977
  const COMPONENT_ID$e = 'forms.file_list';
820
978
  const StyledFileList = styled__default.default.ul.attrs({
821
979
  'data-garden-id': COMPONENT_ID$e,
822
- 'data-garden-version': '9.0.0-next.9'
980
+ 'data-garden-version': '9.1.0'
823
981
  }).withConfig({
824
982
  displayName: "StyledFileList",
825
983
  componentId: "sc-gbahjg-0"
826
984
  })(["margin:0;padding:0;list-style:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
827
- StyledFileList.defaultProps = {
828
- theme: reactTheming.DEFAULT_THEME
829
- };
830
985
 
831
986
  const COMPONENT_ID$d = 'forms.file_list.item';
832
987
  const StyledFileListItem = styled__default.default.li.attrs({
833
988
  'data-garden-id': COMPONENT_ID$d,
834
- 'data-garden-version': '9.0.0-next.9'
989
+ 'data-garden-version': '9.1.0'
835
990
  }).withConfig({
836
991
  displayName: "StyledFileListItem",
837
992
  componentId: "sc-1ova3lo-0"
838
993
  })(["&:not(:first-child),", " ~ ", " > &:first-child{margin-top:", "px;}", ";"], StyledFileUpload, StyledFileList, props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
839
- StyledFileListItem.defaultProps = {
840
- theme: reactTheming.DEFAULT_THEME
841
- };
842
994
 
843
- 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); }
995
+ var _circle$5;
996
+ 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); }
845
997
  var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
846
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
998
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
847
999
  xmlns: "http://www.w3.org/2000/svg",
848
1000
  width: 12,
849
1001
  height: 12,
850
1002
  focusable: "false",
851
1003
  viewBox: "0 0 12 12",
852
1004
  "aria-hidden": "true"
853
- }, props), _circle$3 || (_circle$3 = /*#__PURE__*/React__namespace.createElement("circle", {
1005
+ }, props), _circle$5 || (_circle$5 = /*#__PURE__*/React__namespace.createElement("circle", {
854
1006
  cx: 6,
855
1007
  cy: 6,
856
1008
  r: 2,
@@ -861,94 +1013,104 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
861
1013
  const COMPONENT_ID$c = 'forms.radio_svg';
862
1014
  const StyledRadioSvg = styled__default.default(SvgCircleSmFill$1).attrs({
863
1015
  'data-garden-id': COMPONENT_ID$c,
864
- 'data-garden-version': '9.0.0-next.9'
1016
+ 'data-garden-version': '9.1.0'
865
1017
  }).withConfig({
866
1018
  displayName: "StyledRadioSvg",
867
1019
  componentId: "sc-1r1qtr1-0"
868
1020
  })(["transition:opacity 0.25s ease-in-out;opacity:0;", ":checked ~ ", " > &{opacity:1;}", ";"], StyledRadioInput, StyledRadioLabel, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
869
- StyledRadioSvg.defaultProps = {
870
- theme: reactTheming.DEFAULT_THEME
871
- };
872
1021
 
873
1022
  const COMPONENT_ID$b = 'forms.toggle_label';
874
- const sizeStyles$6 = props => {
1023
+ const sizeStyles$8 = props => {
875
1024
  const size = props.theme.space.base * 10;
876
1025
  const padding = size + props.theme.space.base * 2;
877
1026
  return styled.css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size);
878
1027
  };
879
1028
  const StyledToggleLabel = styled__default.default(StyledCheckLabel).attrs({
880
1029
  'data-garden-id': COMPONENT_ID$b,
881
- 'data-garden-version': '9.0.0-next.9'
1030
+ 'data-garden-version': '9.1.0'
882
1031
  }).withConfig({
883
1032
  displayName: "StyledToggleLabel",
884
1033
  componentId: "sc-e0asdk-0"
885
- })(["", ";", ";"], props => sizeStyles$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
886
- StyledToggleLabel.defaultProps = {
887
- theme: reactTheming.DEFAULT_THEME
888
- };
1034
+ })(["", ";", ";"], props => sizeStyles$8(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
889
1035
 
890
1036
  const COMPONENT_ID$a = 'forms.toggle_hint';
891
1037
  const StyledToggleHint = styled__default.default(StyledHint).attrs({
892
1038
  'data-garden-id': COMPONENT_ID$a,
893
- 'data-garden-version': '9.0.0-next.9'
1039
+ 'data-garden-version': '9.1.0'
894
1040
  }).withConfig({
895
1041
  displayName: "StyledToggleHint",
896
1042
  componentId: "sc-nziggu-0"
897
1043
  })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 12px`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
898
- StyledToggleHint.defaultProps = {
899
- theme: reactTheming.DEFAULT_THEME
900
- };
901
1044
 
902
1045
  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);
1046
+ const colorStyles$4 = _ref => {
1047
+ let {
1048
+ theme
1049
+ } = _ref;
1050
+ const backgroundOptions = {
1051
+ theme,
1052
+ variable: 'background.emphasis'
1053
+ };
1054
+ const backgroundColor = reactTheming.getColor(backgroundOptions);
1055
+ const hoverBackgroundColor = reactTheming.getColor({
1056
+ ...backgroundOptions,
1057
+ dark: {
1058
+ offset: -100
1059
+ },
1060
+ light: {
1061
+ offset: 100
1062
+ }
1063
+ });
1064
+ const activeBackgroundColor = reactTheming.getColor({
1065
+ ...backgroundOptions,
1066
+ dark: {
1067
+ offset: -200
1068
+ },
1069
+ light: {
1070
+ offset: 200
1071
+ }
1072
+ });
908
1073
  return styled.css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
909
1074
  };
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;
1075
+ const sizeStyles$7 = _ref2 => {
1076
+ let {
1077
+ theme
1078
+ } = _ref2;
1079
+ const height = `${theme.space.base * 5}px`;
1080
+ const width = `${theme.space.base * 10}px`;
1081
+ const iconSize = theme.iconSizes.md;
914
1082
  const iconPosition = polished.math(`(${height} - ${iconSize}) / 2`);
915
1083
  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);
1084
+ 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
1085
  };
918
1086
  const StyledToggleInput = styled__default.default(StyledCheckInput).attrs({
919
1087
  'data-garden-id': COMPONENT_ID$9,
920
- 'data-garden-version': '9.0.0-next.9'
1088
+ 'data-garden-version': '9.1.0'
921
1089
  }).withConfig({
922
1090
  displayName: "StyledToggleInput",
923
1091
  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));
925
- StyledToggleInput.defaultProps = {
926
- theme: reactTheming.DEFAULT_THEME
927
- };
1092
+ })(["& ~ ", "::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));
928
1093
 
929
1094
  const COMPONENT_ID$8 = 'forms.toggle_message';
930
1095
  const StyledToggleMessage = styled__default.default(StyledMessage).attrs({
931
1096
  'data-garden-id': COMPONENT_ID$8,
932
- 'data-garden-version': '9.0.0-next.9'
1097
+ 'data-garden-version': '9.1.0'
933
1098
  }).withConfig({
934
1099
  displayName: "StyledToggleMessage",
935
1100
  componentId: "sc-13vuvl1-0"
936
1101
  })(["padding-", ":", ";& ", "{", ":", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 12px`), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', props => polished.math(`${props.theme.space.base} * 10px - ${props.theme.iconSizes.md}`), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
937
- StyledToggleMessage.defaultProps = {
938
- theme: reactTheming.DEFAULT_THEME
939
- };
940
1102
 
941
- 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); }
1103
+ var _circle$4;
1104
+ 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); }
943
1105
  var SvgCircleSmFill = function SvgCircleSmFill(props) {
944
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
1106
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
945
1107
  xmlns: "http://www.w3.org/2000/svg",
946
1108
  width: 16,
947
1109
  height: 16,
948
1110
  focusable: "false",
949
1111
  viewBox: "0 0 16 16",
950
1112
  "aria-hidden": "true"
951
- }, props), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
1113
+ }, props), _circle$4 || (_circle$4 = /*#__PURE__*/React__namespace.createElement("circle", {
952
1114
  cx: 8,
953
1115
  cy: 8,
954
1116
  r: 6,
@@ -959,49 +1121,72 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
959
1121
  const COMPONENT_ID$7 = 'forms.toggle_svg';
960
1122
  const StyledToggleSvg = styled__default.default(SvgCircleSmFill).attrs({
961
1123
  'data-garden-id': COMPONENT_ID$7,
962
- 'data-garden-version': '9.0.0-next.9'
1124
+ 'data-garden-version': '9.1.0'
963
1125
  }).withConfig({
964
1126
  displayName: "StyledToggleSvg",
965
1127
  componentId: "sc-162xbyx-0"
966
1128
  })(["transition:all 0.15s ease-in-out;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
967
- StyledToggleSvg.defaultProps = {
968
- theme: reactTheming.DEFAULT_THEME
969
- };
970
1129
 
971
1130
  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);
1131
+ const colorStyles$3 = _ref => {
1132
+ let {
1133
+ theme
1134
+ } = _ref;
1135
+ const color = reactTheming.getColor({
1136
+ theme,
1137
+ variable: 'foreground.subtle',
1138
+ dark: {
1139
+ offset: -100
1140
+ },
1141
+ light: {
1142
+ offset: 100
1143
+ }
1144
+ });
1145
+ const disabledColor = reactTheming.getColor({
1146
+ theme,
1147
+ variable: 'foreground.disabled'
1148
+ });
1149
+ return styled.css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", "{color:", ";}&:disabled + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color, StyledTextMediaFigure, disabledColor);
975
1150
  };
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);
1151
+ const sizeStyles$6 = _ref2 => {
1152
+ let {
1153
+ theme,
1154
+ $isBare,
1155
+ $isCompact
1156
+ } = _ref2;
1157
+ const padding = $isBare ? undefined : polished.math(`${theme.iconSizes.md} + ${theme.space.base * 5}`);
1158
+ const iconVerticalPosition = `${theme.space.base * ($isCompact ? 1.5 : 2.5) + 1}px`;
1159
+ const iconHorizontalPosition = `${theme.space.base * 3}px`;
1160
+ return styled.css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], theme.rtl ? 'left' : 'right', padding, StyledTextMediaFigure, iconVerticalPosition, theme.rtl ? 'left' : 'right', iconHorizontalPosition);
981
1161
  };
982
1162
  const StyledSelect = styled__default.default(StyledTextInput).attrs({
983
1163
  'data-garden-id': COMPONENT_ID$6,
984
- 'data-garden-version': '9.0.0-next.9',
1164
+ 'data-garden-version': '9.1.0',
985
1165
  as: 'select'
986
1166
  }).withConfig({
987
1167
  displayName: "StyledSelect",
988
1168
  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);
990
- StyledSelect.defaultProps = {
991
- theme: reactTheming.DEFAULT_THEME
992
- };
1169
+ })(["opacity:1;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({
1170
+ theme: props.theme,
1171
+ variable: 'foreground.default'
1172
+ }), StyledTextMediaFigure);
993
1173
 
994
1174
  const COMPONENT_ID$5 = 'forms.select_wrapper';
1175
+ const sizeStyles$5 = _ref => {
1176
+ let {
1177
+ theme,
1178
+ $isCompact
1179
+ } = _ref;
1180
+ const height = `${theme.space.base * ($isCompact ? 8 : 10)}px`;
1181
+ return styled.css(["max-height:", ";"], height);
1182
+ };
995
1183
  const StyledSelectWrapper = styled__default.default(StyledTextFauxInput).attrs({
996
1184
  'data-garden-id': COMPONENT_ID$5,
997
- 'data-garden-version': '9.0.0-next.9'
1185
+ 'data-garden-version': '9.1.0'
998
1186
  }).withConfig({
999
1187
  displayName: "StyledSelectWrapper",
1000
1188
  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);
1002
- StyledSelectWrapper.defaultProps = {
1003
- theme: reactTheming.DEFAULT_THEME
1004
- };
1189
+ })(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles$5, StyledSelect, reactTheming.SELECTOR_FOCUS_VISIBLE);
1005
1190
 
1006
1191
  const COMPONENT_ID$4 = 'forms.range';
1007
1192
  const thumbStyles = function (styles) {
@@ -1048,28 +1233,74 @@ const trackLowerStyles = function (styles) {
1048
1233
  }
1049
1234
  `;
1050
1235
  };
1051
- const colorStyles$1 = props => {
1052
- const SHADE = 600;
1053
- const thumbBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE, props.theme);
1236
+ const colorStyles$2 = _ref => {
1237
+ let {
1238
+ theme,
1239
+ $hasLowerTrack
1240
+ } = _ref;
1241
+ const options = {
1242
+ theme,
1243
+ variable: 'background.primaryEmphasis'
1244
+ };
1245
+ const thumbBackgroundColor = reactTheming.getColor(options);
1054
1246
  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));
1247
+ const thumbBoxShadow = theme.shadows.lg(`${theme.space.base}px`, `${theme.space.base * 2}px`, reactTheming.getColor({
1248
+ variable: 'shadow.small',
1249
+ theme
1250
+ }));
1056
1251
  const thumbFocusBoxShadow = reactTheming.getFocusBoxShadow({
1057
- theme: props.theme
1252
+ theme
1253
+ });
1254
+ const thumbActiveBackgroundColor = reactTheming.getColor({
1255
+ ...options,
1256
+ dark: {
1257
+ offset: -200
1258
+ },
1259
+ light: {
1260
+ offset: 200
1261
+ }
1058
1262
  });
1059
- const thumbActiveBackgroundColor = reactTheming.getColorV8('primaryHue', SHADE + 100, props.theme);
1060
1263
  const thumbActiveBorderColor = thumbBorderColor;
1061
- const thumbDisabledBackgroundColor = reactTheming.getColorV8('neutralHue', SHADE - 300, props.theme);
1264
+ const thumbDisabledBackgroundColor = reactTheming.getColor({
1265
+ theme,
1266
+ variable: 'border.emphasis'
1267
+ });
1062
1268
  const thumbDisabledBorderColor = thumbDisabledBackgroundColor;
1063
- const thumbHoverBackgroundColor = thumbActiveBackgroundColor;
1269
+ const thumbHoverBackgroundColor = reactTheming.getColor({
1270
+ ...options,
1271
+ dark: {
1272
+ offset: -100
1273
+ },
1274
+ light: {
1275
+ offset: 100
1276
+ }
1277
+ });
1064
1278
  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})` : '';
1279
+ const trackBackgroundColor = reactTheming.getColor({
1280
+ theme,
1281
+ variable: 'border.emphasis',
1282
+ dark: {
1283
+ offset: 100
1284
+ },
1285
+ light: {
1286
+ offset: -200
1287
+ }
1288
+ });
1289
+ const trackLowerBackgroundColor = $hasLowerTrack ? thumbBackgroundColor : '';
1290
+ const trackBackgroundImage = $hasLowerTrack ? `linear-gradient(${trackLowerBackgroundColor}, ${trackLowerBackgroundColor})` : '';
1291
+ const trackDisabledBackgroundColor = reactTheming.getColor({
1292
+ theme,
1293
+ variable: 'background.disabled',
1294
+ transparency: theme.opacity[200]
1295
+ });
1296
+ const trackDisabledLowerBackgroundColor = $hasLowerTrack ? reactTheming.getColor({
1297
+ theme,
1298
+ variable: 'border.emphasis'
1299
+ }) : '';
1300
+ const trackDisabledBackgroundImage = $hasLowerTrack ? `linear-gradient(${trackDisabledLowerBackgroundColor}, ${trackDisabledLowerBackgroundColor})` : '';
1070
1301
  return styled.css(["", " ", " ", " ", " ", " ", " ", " ", " ", ""], trackStyles(`
1071
1302
  background-color: ${trackBackgroundColor};
1072
- background-image: ${trackBackgroundImage}; /* provide means for styling lower range on WebKit */
1303
+ background-image: ${trackBackgroundImage}; /* [1] */
1073
1304
  `), thumbStyles(`
1074
1305
  border-color: ${thumbBorderColor};
1075
1306
  box-shadow: ${thumbBoxShadow};
@@ -1088,6 +1319,7 @@ const colorStyles$1 = props => {
1088
1319
  border-color: ${thumbActiveBorderColor};
1089
1320
  background-color: ${thumbActiveBackgroundColor};
1090
1321
  `, ':active'), trackStyles(`
1322
+ background-color: ${trackDisabledBackgroundColor};
1091
1323
  background-image: ${trackDisabledBackgroundImage};
1092
1324
  `, ':disabled'), thumbStyles(`
1093
1325
  border-color: ${thumbDisabledBorderColor};
@@ -1097,32 +1329,35 @@ const colorStyles$1 = props => {
1097
1329
  background-color: ${trackDisabledLowerBackgroundColor};
1098
1330
  `, ':disabled'));
1099
1331
  };
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`);
1332
+ const sizeStyles$4 = _ref2 => {
1333
+ let {
1334
+ theme
1335
+ } = _ref2;
1336
+ const thumbSize = `${theme.space.base * 5}px`;
1337
+ const trackHeight = `${theme.space.base * 1.5}px`;
1103
1338
  const trackBorderRadius = trackHeight;
1104
- const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${props.theme.shadowWidths.md}`);
1339
+ const trackMargin = polished.math(`(${thumbSize} - ${trackHeight}) / 2 + ${theme.shadowWidths.md}`);
1105
1340
  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(`
1341
+ return styled.css(["", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";", " ", ""], StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, `${theme.space.base * 2}px`, trackStyles(`
1107
1342
  margin: ${trackMargin} 0;
1108
1343
  border-radius: ${trackBorderRadius};
1109
1344
  height: ${trackHeight};
1110
1345
  `), thumbStyles(`
1111
- margin: ${thumbMargin} 0; /* reset for IE */
1346
+ margin: ${thumbMargin} 0; /* [1] */
1112
1347
  width: ${thumbSize};
1113
1348
  height: ${thumbSize};
1114
1349
  `), trackLowerStyles(`
1115
- border-top-${props.theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1116
- border-bottom-${props.theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1350
+ border-top-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1351
+ border-bottom-${theme.rtl ? 'right' : 'left'}-radius: ${trackBorderRadius};
1117
1352
  height: ${trackHeight};
1118
1353
  `));
1119
1354
  };
1120
1355
  const StyledRangeInput = styled__default.default.input.attrs(props => ({
1121
1356
  'data-garden-id': COMPONENT_ID$4,
1122
- 'data-garden-version': '9.0.0-next.9',
1357
+ 'data-garden-version': '9.1.0',
1123
1358
  type: 'range',
1124
1359
  style: {
1125
- backgroundSize: props.hasLowerTrack && props.backgroundSize
1360
+ backgroundSize: props.$hasLowerTrack && props.$backgroundSize
1126
1361
  }
1127
1362
  })).withConfig({
1128
1363
  displayName: "StyledRangeInput",
@@ -1136,145 +1371,226 @@ const StyledRangeInput = styled__default.default.input.attrs(props => ({
1136
1371
  width: 99.8%; /* fix for IE which cuts off the upper track's border radius */
1137
1372
  color: transparent; /* reset for IE */
1138
1373
  box-sizing: border-box; /* reset for IE */
1139
- `), props => sizeStyles$3(props), props => thumbStyles(`
1374
+ `), sizeStyles$4, props => thumbStyles(`
1140
1375
  appearance: none;
1141
1376
  transition: box-shadow .1s ease-in-out;
1142
1377
  border: ${props.theme.borders.md};
1143
1378
  border-radius: 100%;
1144
1379
  box-sizing: border-box;
1145
- `), props => colorStyles$1(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
1380
+ `), colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
1146
1381
  StyledRangeInput.defaultProps = {
1147
- backgroundSize: '0%',
1148
- hasLowerTrack: true,
1382
+ $backgroundSize: '0%',
1383
+ $hasLowerTrack: true,
1149
1384
  theme: reactTheming.DEFAULT_THEME
1150
1385
  };
1151
1386
 
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`;
1387
+ const COMPONENT_ID$3 = 'forms.tile';
1388
+ const colorStyles$1 = _ref => {
1389
+ let {
1390
+ theme
1391
+ } = _ref;
1392
+ const offset100 = {
1393
+ dark: {
1394
+ offset: -100
1395
+ },
1396
+ light: {
1397
+ offset: 100
1164
1398
  }
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.9'
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);
1399
+ };
1400
+ const offset200 = {
1401
+ dark: {
1402
+ offset: -200
1403
+ },
1404
+ light: {
1405
+ offset: 200
1406
+ }
1407
+ };
1408
+ const backgroundColor = reactTheming.getColor({
1409
+ theme,
1410
+ variable: 'background.default'
1411
+ });
1412
+ const borderColor = reactTheming.getColor({
1413
+ theme,
1414
+ variable: 'border.default',
1415
+ ...offset100
1416
+ });
1417
+ const foregroundColor = reactTheming.getColor({
1418
+ theme,
1419
+ variable: 'foreground.default'
1420
+ });
1421
+ const backgroundOptions = {
1422
+ theme,
1423
+ variable: 'background.primaryEmphasis'
1424
+ };
1425
+ const hoverBackgroundColor = reactTheming.getColor({
1426
+ ...backgroundOptions,
1427
+ transparency: theme.opacity[100]
1428
+ });
1429
+ const hoverBorderColor = reactTheming.getColor({
1430
+ theme,
1431
+ variable: 'border.primaryEmphasis'
1432
+ });
1433
+ const activeBackgroundColor = reactTheming.getColor({
1434
+ ...backgroundOptions,
1435
+ transparency: theme.opacity[200]
1436
+ });
1187
1437
  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
1204
- },
1438
+ const activeBorderColor = hoverBorderColor;
1439
+ const checkedBackgroundColor = reactTheming.getColor(backgroundOptions);
1440
+ const checkedForegroundColor = reactTheming.getColor({
1441
+ theme,
1442
+ variable: 'foreground.onEmphasis'
1443
+ });
1444
+ const checkedHoverBackgroundColor = reactTheming.getColor({
1445
+ ...backgroundOptions,
1446
+ ...offset100
1447
+ });
1448
+ const checkedActiveBackgroundColor = reactTheming.getColor({
1449
+ ...backgroundOptions,
1450
+ ...offset200
1451
+ });
1452
+ const disabledBackgroundColor = reactTheming.getColor({
1453
+ theme,
1454
+ variable: 'background.disabled'
1455
+ });
1456
+ const disabledBorderColor = reactTheming.getColor({
1457
+ theme,
1458
+ variable: 'border.disabled'
1459
+ });
1460
+ const disabledForegroundColor = reactTheming.getColor({
1461
+ theme,
1462
+ variable: 'foreground.disabled'
1463
+ });
1464
+ 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({
1465
+ theme,
1466
+ selector: '&:has(:focus-visible)',
1205
1467
  styles: {
1206
1468
  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);
1469
+ }
1470
+ }), activeBorderColor, activeBackgroundColor, checkedBackgroundColor, checkedForegroundColor, checkedHoverBackgroundColor, checkedActiveBackgroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
1210
1471
  };
1211
- const StyledTile = styled__default.default.label.attrs(props => ({
1212
- 'data-garden-id': COMPONENT_ID$2,
1213
- 'data-garden-version': '9.0.0-next.9',
1214
- 'data-garden-selected': props.isSelected
1215
- })).withConfig({
1472
+ const sizeStyles$3 = _ref2 => {
1473
+ let {
1474
+ theme
1475
+ } = _ref2;
1476
+ const border = theme.borders.sm;
1477
+ const padding = `${theme.space.base * 5}px`;
1478
+ return styled.css(["border:", ";padding:", ";min-width:132px;"], border, padding);
1479
+ };
1480
+ const StyledTile = styled__default.default.label.attrs({
1481
+ 'data-garden-id': COMPONENT_ID$3,
1482
+ 'data-garden-version': '9.1.0'
1483
+ }).withConfig({
1216
1484
  displayName: "StyledTile",
1217
1485
  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));
1219
- StyledTile.defaultProps = {
1220
- theme: reactTheming.DEFAULT_THEME
1221
- };
1486
+ })(["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));
1222
1487
 
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);
1488
+ const COMPONENT_ID$2 = 'forms.tile_description';
1489
+ const sizeStyles$2 = _ref => {
1490
+ let {
1491
+ theme,
1492
+ $isCentered
1493
+ } = _ref;
1494
+ const marginTop = `${theme.space.base}px`;
1495
+ const marginHorizontal = $isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
1496
+ const fontSize = theme.fontSizes.sm;
1497
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 4, fontSize);
1498
+ return styled.css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
1234
1499
  };
1235
1500
  const StyledTileDescription = styled__default.default.span.attrs({
1236
- 'data-garden-id': COMPONENT_ID$1,
1237
- 'data-garden-version': '9.0.0-next.9'
1501
+ 'data-garden-id': COMPONENT_ID$2,
1502
+ 'data-garden-version': '9.1.0'
1238
1503
  }).withConfig({
1239
1504
  displayName: "StyledTileDescription",
1240
1505
  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));
1242
- StyledTileDescription.defaultProps = {
1243
- theme: reactTheming.DEFAULT_THEME
1506
+ })(["display:block;text-align:", ";", ";", ";"], props => props.$isCentered && 'center', sizeStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
1507
+
1508
+ const COMPONENT_ID$1 = 'forms.tile_icon';
1509
+ const colorStyles = _ref => {
1510
+ let {
1511
+ theme
1512
+ } = _ref;
1513
+ const options = {
1514
+ theme,
1515
+ variable: 'foreground.subtle'
1516
+ };
1517
+ const color = reactTheming.getColor(options);
1518
+ const hoverColor = reactTheming.getColor({
1519
+ ...options,
1520
+ dark: {
1521
+ offset: -100
1522
+ },
1523
+ light: {
1524
+ offset: 100
1525
+ }
1526
+ });
1527
+ const activeColor = reactTheming.getColor({
1528
+ ...options,
1529
+ dark: {
1530
+ offset: -200
1531
+ },
1532
+ light: {
1533
+ offset: 200
1534
+ }
1535
+ });
1536
+ const checkedColor = reactTheming.getColor({
1537
+ theme,
1538
+ variable: 'foreground.onEmphasis'
1539
+ });
1540
+ const disabledColor = reactTheming.getColor({
1541
+ theme,
1542
+ variable: 'foreground.disabled'
1543
+ });
1544
+ return styled.css(["color:", ";", ":hover &&{color:", ";}", ":active &&{color:", ";}", ":has(:checked) &&{color:", ";}", "[aria-disabled='true'] &&{color:", ";}"], color, StyledTile, hoverColor, StyledTile, activeColor, StyledTile, checkedColor, StyledTile, disabledColor);
1545
+ };
1546
+ const sizeStyles$1 = _ref2 => {
1547
+ let {
1548
+ theme,
1549
+ $isCentered
1550
+ } = _ref2;
1551
+ const iconSize = polished.math(`${theme.iconSizes.md} * 2`);
1552
+ let position;
1553
+ let top;
1554
+ let horizontal;
1555
+ if (!$isCentered) {
1556
+ position = 'absolute';
1557
+ top = `${theme.space.base * 6}px`;
1558
+ horizontal = `${theme.space.base * 5}px`;
1559
+ }
1560
+ return styled.css(["position:", ";top:", ";", ":", ";line-height:0;& > *{width:", ";height:", ";}"], position, top, theme.rtl ? 'right' : 'left', horizontal, iconSize, iconSize);
1244
1561
  };
1562
+ const StyledTileIcon = styled__default.default.span.attrs({
1563
+ 'data-garden-id': COMPONENT_ID$1,
1564
+ 'data-garden-version': '9.1.0'
1565
+ }).withConfig({
1566
+ displayName: "StyledTileIcon",
1567
+ componentId: "sc-1wazhg4-0"
1568
+ })(["display:block;transition:color 0.25s ease-in-out;text-align:center;", ";", ";", ";"], sizeStyles$1, colorStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
1245
1569
 
1246
1570
  const StyledTileInput = styled__default.default.input.withConfig({
1247
1571
  displayName: "StyledTileInput",
1248
1572
  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;"]);
1250
- StyledTileInput.defaultProps = {
1251
- theme: reactTheming.DEFAULT_THEME
1252
- };
1573
+ })(["position:absolute;top:0;left:0;opacity:0;z-index:1;margin:0;cursor:", ";width:100%;height:100%;"], props => props.disabled ? 'default' : 'pointer');
1253
1574
 
1254
1575
  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);
1576
+ const sizeStyles = _ref => {
1577
+ let {
1578
+ theme,
1579
+ $isCentered
1580
+ } = _ref;
1581
+ const marginTop = $isCentered ? `${theme.space.base * 2}px` : 0;
1582
+ const marginHorizontal = $isCentered ? undefined : polished.math(`(${theme.iconSizes.md} * 2) + ${theme.space.base * 5}px`);
1583
+ const fontSize = theme.fontSizes.md;
1584
+ const lineHeight = reactTheming.getLineHeight(theme.space.base * 5, fontSize);
1585
+ return styled.css(["margin-top:", ";margin-", ":", ";line-height:", ";font-size:", ";"], marginTop, theme.rtl ? 'right' : 'left', marginHorizontal, lineHeight, fontSize);
1267
1586
  };
1268
1587
  const StyledTileLabel = styled__default.default.span.attrs({
1269
1588
  'data-garden-id': COMPONENT_ID,
1270
- 'data-garden-version': '9.0.0-next.9'
1589
+ 'data-garden-version': '9.1.0'
1271
1590
  }).withConfig({
1272
1591
  displayName: "StyledTileLabel",
1273
1592
  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));
1275
- StyledTileLabel.defaultProps = {
1276
- theme: reactTheming.DEFAULT_THEME
1277
- };
1593
+ })(["display:block;text-align:", ";font-weight:", ";", ";", ";"], props => props.$isCentered && 'center', props => props.theme.fontWeights.semibold, sizeStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
1278
1594
 
1279
1595
  const InputContext = React.createContext(undefined);
1280
1596
  const useInputContext = () => {
@@ -1316,18 +1632,113 @@ const Hint = React__namespace.default.forwardRef((props, ref) => {
1316
1632
  ref: ref
1317
1633
  }, combinedProps));
1318
1634
  });
1319
- Hint.displayName = 'Hint';
1635
+ Hint.displayName = 'Field.Hint';
1320
1636
 
1321
1637
  const VALIDATION = ['success', 'warning', 'error'];
1322
1638
  const FILE_VALIDATION = ['success', 'error'];
1323
1639
  const FILE_TYPE = ['pdf', 'zip', 'image', 'document', 'spreadsheet', 'presentation', 'generic'];
1324
1640
 
1641
+ var _g$2, _circle$3;
1642
+ 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); }
1643
+ var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
1644
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
1645
+ xmlns: "http://www.w3.org/2000/svg",
1646
+ width: 16,
1647
+ height: 16,
1648
+ focusable: "false",
1649
+ viewBox: "0 0 16 16",
1650
+ "aria-hidden": "true"
1651
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
1652
+ fill: "none",
1653
+ stroke: "currentColor"
1654
+ }, /*#__PURE__*/React__namespace.createElement("circle", {
1655
+ cx: 7.5,
1656
+ cy: 8.5,
1657
+ r: 7
1658
+ }), /*#__PURE__*/React__namespace.createElement("path", {
1659
+ strokeLinecap: "round",
1660
+ d: "M7.5 4.5V9"
1661
+ }))), _circle$3 || (_circle$3 = /*#__PURE__*/React__namespace.createElement("circle", {
1662
+ cx: 7.5,
1663
+ cy: 12,
1664
+ r: 1,
1665
+ fill: "currentColor"
1666
+ })));
1667
+ };
1668
+
1669
+ var _path$k, _circle$2;
1670
+ 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); }
1671
+ var SvgAlertWarningStroke = function SvgAlertWarningStroke(props) {
1672
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
1673
+ xmlns: "http://www.w3.org/2000/svg",
1674
+ width: 16,
1675
+ height: 16,
1676
+ focusable: "false",
1677
+ viewBox: "0 0 16 16",
1678
+ "aria-hidden": "true"
1679
+ }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
1680
+ fill: "none",
1681
+ stroke: "currentColor",
1682
+ strokeLinecap: "round",
1683
+ d: "M.88 13.77L7.06 1.86c.19-.36.7-.36.89 0l6.18 11.91c.17.33-.07.73-.44.73H1.32c-.37 0-.61-.4-.44-.73zM7.5 6v3.5"
1684
+ })), _circle$2 || (_circle$2 = /*#__PURE__*/React__namespace.createElement("circle", {
1685
+ cx: 7.5,
1686
+ cy: 12,
1687
+ r: 1,
1688
+ fill: "currentColor"
1689
+ })));
1690
+ };
1691
+
1692
+ var _g$1;
1693
+ 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); }
1694
+ var SvgCheckCircleStroke$1 = function SvgCheckCircleStroke(props) {
1695
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
1696
+ xmlns: "http://www.w3.org/2000/svg",
1697
+ width: 16,
1698
+ height: 16,
1699
+ focusable: "false",
1700
+ viewBox: "0 0 16 16",
1701
+ "aria-hidden": "true"
1702
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
1703
+ fill: "none",
1704
+ stroke: "currentColor"
1705
+ }, /*#__PURE__*/React__namespace.createElement("path", {
1706
+ strokeLinecap: "round",
1707
+ strokeLinejoin: "round",
1708
+ d: "M4 9l2.5 2.5 5-5"
1709
+ }), /*#__PURE__*/React__namespace.createElement("circle", {
1710
+ cx: 7.5,
1711
+ cy: 8.5,
1712
+ r: 7
1713
+ }))));
1714
+ };
1715
+
1716
+ const MessageIcon = _ref => {
1717
+ let {
1718
+ validation,
1719
+ children,
1720
+ ...props
1721
+ } = _ref;
1722
+ return React__namespace.default.createElement(StyledMessageIcon, Object.assign({
1723
+ "aria-hidden": null,
1724
+ role: "img"
1725
+ }, props), validation ? {
1726
+ error: React__namespace.default.createElement(SvgAlertErrorStroke, null),
1727
+ success: React__namespace.default.createElement(SvgCheckCircleStroke$1, null),
1728
+ warning: React__namespace.default.createElement(SvgAlertWarningStroke, null)
1729
+ }[validation] : children);
1730
+ };
1731
+ MessageIcon.displayName = 'Field.MessageIcon';
1732
+ MessageIcon.propTypes = {
1733
+ validation: PropTypes__default.default.oneOf(VALIDATION)
1734
+ };
1735
+
1325
1736
  const Message = React__namespace.default.forwardRef((_ref, ref) => {
1326
1737
  let {
1327
1738
  validation,
1328
1739
  validationLabel,
1329
1740
  children,
1330
- ...props
1741
+ ...other
1331
1742
  } = _ref;
1332
1743
  const {
1333
1744
  hasMessage,
@@ -1356,9 +1767,9 @@ const Message = React__namespace.default.forwardRef((_ref, ref) => {
1356
1767
  MessageComponent = StyledMessage;
1357
1768
  }
1358
1769
  let combinedProps = {
1359
- validation,
1770
+ $validation: validation,
1360
1771
  validationLabel,
1361
- ...props
1772
+ ...other
1362
1773
  };
1363
1774
  if (getMessageProps) {
1364
1775
  combinedProps = getMessageProps(combinedProps);
@@ -1366,12 +1777,12 @@ const Message = React__namespace.default.forwardRef((_ref, ref) => {
1366
1777
  const ariaLabel = reactTheming.useText(Message, combinedProps, 'validationLabel', validation, validation !== undefined);
1367
1778
  return React__namespace.default.createElement(MessageComponent, Object.assign({
1368
1779
  ref: ref
1369
- }, combinedProps), validation && React__namespace.default.createElement(StyledMessageIcon, {
1780
+ }, combinedProps), !!validation && React__namespace.default.createElement(MessageIcon, {
1370
1781
  validation: validation,
1371
1782
  "aria-label": ariaLabel
1372
1783
  }), children);
1373
1784
  });
1374
- Message.displayName = 'Message';
1785
+ Message.displayName = 'Field.Message';
1375
1786
  Message.propTypes = {
1376
1787
  validation: PropTypes__default.default.oneOf(VALIDATION),
1377
1788
  validationLabel: PropTypes__default.default.string
@@ -1383,11 +1794,17 @@ const useFieldsetContext = () => {
1383
1794
  return fieldsetContext;
1384
1795
  };
1385
1796
 
1386
- const Label$1 = React__namespace.default.forwardRef((props, ref) => {
1797
+ const Label$1 = React__namespace.default.forwardRef((_ref, ref) => {
1798
+ let {
1799
+ children,
1800
+ isRegular,
1801
+ ...other
1802
+ } = _ref;
1387
1803
  const fieldContext = useFieldContext();
1388
1804
  const fieldsetContext = useFieldsetContext();
1389
1805
  const type = useInputContext();
1390
- let combinedProps = props;
1806
+ const $isRegular = fieldsetContext && isRegular === undefined ? true : isRegular;
1807
+ let combinedProps = other;
1391
1808
  if (fieldContext) {
1392
1809
  combinedProps = fieldContext.getLabelProps(combinedProps);
1393
1810
  if (type === undefined) {
@@ -1395,36 +1812,29 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
1395
1812
  setIsLabelActive,
1396
1813
  setIsLabelHovered
1397
1814
  } = fieldContext;
1398
- combinedProps = {
1399
- ...combinedProps,
1400
- onMouseUp: containerUtilities.composeEventHandlers(props.onMouseUp, () => {
1401
- setIsLabelActive(false);
1402
- }),
1403
- onMouseDown: containerUtilities.composeEventHandlers(props.onMouseDown, () => {
1404
- setIsLabelActive(true);
1405
- }),
1406
- onMouseEnter: containerUtilities.composeEventHandlers(props.onMouseEnter, () => {
1407
- setIsLabelHovered(true);
1408
- }),
1409
- onMouseLeave: containerUtilities.composeEventHandlers(props.onMouseLeave, () => {
1410
- setIsLabelHovered(false);
1411
- })
1412
- };
1815
+ combinedProps.onMouseUp = containerUtilities.composeEventHandlers(other.onMouseUp, () => {
1816
+ setIsLabelActive(false);
1817
+ });
1818
+ combinedProps.onMouseDown = containerUtilities.composeEventHandlers(other.onMouseDown, () => {
1819
+ setIsLabelActive(true);
1820
+ });
1821
+ combinedProps.onMouseEnter = containerUtilities.composeEventHandlers(other.onMouseEnter, () => {
1822
+ setIsLabelHovered(true);
1823
+ });
1824
+ combinedProps.onMouseLeave = containerUtilities.composeEventHandlers(other.onMouseLeave, () => {
1825
+ setIsLabelHovered(false);
1826
+ });
1413
1827
  }
1414
1828
  }
1415
- if (fieldsetContext) {
1416
- combinedProps = {
1417
- ...combinedProps,
1418
- isRegular: combinedProps.isRegular === undefined ? true : combinedProps.isRegular
1419
- };
1420
- }
1421
1829
  if (type === 'radio') {
1422
1830
  return React__namespace.default.createElement(StyledRadioLabel, Object.assign({
1423
1831
  ref: ref
1424
- }, combinedProps), React__namespace.default.createElement(StyledRadioSvg, null), props.children);
1832
+ }, combinedProps, {
1833
+ $isRegular: $isRegular
1834
+ }), React__namespace.default.createElement(StyledRadioSvg, null), children);
1425
1835
  } else if (type === 'checkbox') {
1426
1836
  const onLabelSelect = e => {
1427
- const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
1837
+ const isFirefox = navigator?.userAgent.toLowerCase().indexOf('firefox') > -1;
1428
1838
  if (fieldContext && isFirefox && e.target instanceof Element) {
1429
1839
  const inputId = e.target.getAttribute('for');
1430
1840
  if (!inputId) return;
@@ -1438,23 +1848,26 @@ const Label$1 = React__namespace.default.forwardRef((props, ref) => {
1438
1848
  }
1439
1849
  }
1440
1850
  };
1441
- combinedProps = {
1442
- ...combinedProps,
1443
- onClick: containerUtilities.composeEventHandlers(combinedProps.onClick, onLabelSelect)
1444
- };
1851
+ combinedProps.onClick = containerUtilities.composeEventHandlers(combinedProps.onClick, onLabelSelect);
1445
1852
  return React__namespace.default.createElement(StyledCheckLabel, Object.assign({
1446
1853
  ref: ref
1447
- }, combinedProps), React__namespace.default.createElement(StyledCheckSvg, null), React__namespace.default.createElement(StyledDashSvg, null), props.children);
1854
+ }, combinedProps, {
1855
+ $isRegular: $isRegular
1856
+ }), React__namespace.default.createElement(StyledCheckSvg, null), React__namespace.default.createElement(StyledDashSvg, null), children);
1448
1857
  } else if (type === 'toggle') {
1449
1858
  return React__namespace.default.createElement(StyledToggleLabel, Object.assign({
1450
1859
  ref: ref
1451
- }, combinedProps), React__namespace.default.createElement(StyledToggleSvg, null), props.children);
1860
+ }, combinedProps, {
1861
+ $isRegular: $isRegular
1862
+ }), React__namespace.default.createElement(StyledToggleSvg, null), children);
1452
1863
  }
1453
1864
  return React__namespace.default.createElement(StyledLabel, Object.assign({
1454
1865
  ref: ref
1455
- }, combinedProps));
1866
+ }, combinedProps, {
1867
+ $isRegular: $isRegular
1868
+ }), children);
1456
1869
  });
1457
- Label$1.displayName = 'Label';
1870
+ Label$1.displayName = 'Field.Label';
1458
1871
  Label$1.propTypes = {
1459
1872
  isRegular: PropTypes__default.default.bool
1460
1873
  };
@@ -1499,22 +1912,26 @@ Field.Label = Label$1;
1499
1912
  Field.Message = Message;
1500
1913
 
1501
1914
  const LegendComponent = React.forwardRef((props, ref) => {
1502
- const fieldsetContext = useFieldsetContext();
1503
- return React__namespace.default.createElement(StyledLegend, Object.assign({}, props, fieldsetContext, {
1915
+ return React__namespace.default.createElement(StyledLegend, Object.assign({}, props, {
1504
1916
  ref: ref
1505
1917
  }));
1506
1918
  });
1507
1919
  LegendComponent.displayName = 'Fieldset.Legend';
1508
1920
  const Legend = LegendComponent;
1509
1921
 
1510
- const FieldsetComponent = React.forwardRef((props, ref) => {
1922
+ const FieldsetComponent = React.forwardRef((_ref, ref) => {
1923
+ let {
1924
+ isCompact,
1925
+ ...other
1926
+ } = _ref;
1511
1927
  const fieldsetContext = React.useMemo(() => ({
1512
- isCompact: props.isCompact
1513
- }), [props.isCompact]);
1928
+ isCompact
1929
+ }), [isCompact]);
1514
1930
  return React__namespace.default.createElement(FieldsetContext.Provider, {
1515
1931
  value: fieldsetContext
1516
- }, React__namespace.default.createElement(StyledFieldset, Object.assign({}, props, {
1517
- ref: ref
1932
+ }, React__namespace.default.createElement(StyledFieldset, Object.assign({}, other, {
1933
+ ref: ref,
1934
+ $isCompact: isCompact
1518
1935
  })));
1519
1936
  });
1520
1937
  FieldsetComponent.displayName = 'Fieldset';
@@ -1528,7 +1945,8 @@ const Checkbox = React__namespace.default.forwardRef((_ref, ref) => {
1528
1945
  let {
1529
1946
  indeterminate,
1530
1947
  children,
1531
- ...props
1948
+ isCompact,
1949
+ ...other
1532
1950
  } = _ref;
1533
1951
  const fieldsetContext = useFieldsetContext();
1534
1952
  const fieldContext = useFieldContext();
@@ -1547,9 +1965,9 @@ const Checkbox = React__namespace.default.forwardRef((_ref, ref) => {
1547
1965
  });
1548
1966
  };
1549
1967
  let combinedProps = {
1968
+ $isCompact: fieldsetContext ? fieldsetContext.isCompact : isCompact,
1550
1969
  ref: combinedRef,
1551
- ...props,
1552
- ...fieldsetContext
1970
+ ...other
1553
1971
  };
1554
1972
  if (fieldContext) {
1555
1973
  combinedProps = fieldContext.getInputProps(combinedProps);
@@ -1572,29 +1990,30 @@ const useInputGroupContext = () => {
1572
1990
  const Input = React__namespace.default.forwardRef((_ref, ref) => {
1573
1991
  let {
1574
1992
  onSelect,
1575
- ...props
1993
+ isBare,
1994
+ isCompact,
1995
+ focusInset,
1996
+ validation,
1997
+ ...other
1576
1998
  } = _ref;
1577
1999
  const fieldContext = useFieldContext();
1578
2000
  const inputGroupContext = useInputGroupContext();
1579
- const onSelectHandler = props.readOnly ? containerUtilities.composeEventHandlers(onSelect, event => {
1580
- event.currentTarget.select();
1581
- }) : onSelect;
1582
- let combinedProps = {
1583
- ref,
1584
- onSelect: onSelectHandler,
1585
- ...props
1586
- };
1587
- if (inputGroupContext) {
1588
- combinedProps = {
1589
- ...combinedProps,
1590
- isCompact: inputGroupContext.isCompact || combinedProps.isCompact,
1591
- focusInset: props.focusInset === undefined ? true : props.focusInset
1592
- };
1593
- }
2001
+ let combinedProps = other;
1594
2002
  if (fieldContext) {
1595
2003
  combinedProps = fieldContext.getInputProps(combinedProps);
1596
2004
  }
1597
- return React__namespace.default.createElement(StyledTextInput, combinedProps);
2005
+ const onSelectHandler = other.readOnly ? containerUtilities.composeEventHandlers(onSelect, event => {
2006
+ event.currentTarget.select();
2007
+ }) : onSelect;
2008
+ return React__namespace.default.createElement(StyledTextInput, Object.assign({
2009
+ ref: ref,
2010
+ onSelect: onSelectHandler
2011
+ }, combinedProps, {
2012
+ $isBare: isBare,
2013
+ $isCompact: inputGroupContext ? inputGroupContext.isCompact : isCompact,
2014
+ $focusInset: inputGroupContext && focusInset === undefined ? true : focusInset,
2015
+ $validation: validation
2016
+ }));
1598
2017
  });
1599
2018
  Input.propTypes = {
1600
2019
  isCompact: PropTypes__default.default.bool,
@@ -1607,14 +2026,15 @@ Input.displayName = 'Input';
1607
2026
  const Radio = React__namespace.default.forwardRef((_ref, ref) => {
1608
2027
  let {
1609
2028
  children,
1610
- ...props
2029
+ isCompact,
2030
+ ...other
1611
2031
  } = _ref;
1612
2032
  const fieldsetContext = useFieldsetContext();
1613
2033
  const fieldContext = useFieldContext();
1614
2034
  let combinedProps = {
2035
+ $isCompact: fieldsetContext ? fieldsetContext.isCompact : isCompact,
1615
2036
  ref,
1616
- ...props,
1617
- ...fieldsetContext
2037
+ ...other
1618
2038
  };
1619
2039
  if (fieldContext) {
1620
2040
  combinedProps = fieldContext.getInputProps(combinedProps);
@@ -1634,7 +2054,7 @@ const Range = React__namespace.default.forwardRef((_ref, ref) => {
1634
2054
  min,
1635
2055
  max,
1636
2056
  step,
1637
- ...props
2057
+ ...other
1638
2058
  } = _ref;
1639
2059
  const [backgroundSize, setBackgroundSize] = React.useState('0');
1640
2060
  const rangeRef = React.useRef();
@@ -1653,18 +2073,18 @@ const Range = React__namespace.default.forwardRef((_ref, ref) => {
1653
2073
  [max, min, step]);
1654
2074
  React.useEffect(() => {
1655
2075
  updateBackgroundWidthFromInput(rangeRef.current);
1656
- }, [rangeRef, updateBackgroundWidthFromInput, props.value]);
1657
- const onChange = hasLowerTrack ? containerUtilities.composeEventHandlers(props.onChange, event => {
2076
+ }, [rangeRef, updateBackgroundWidthFromInput, other.value]);
2077
+ const onChange = hasLowerTrack ? containerUtilities.composeEventHandlers(other.onChange, event => {
1658
2078
  updateBackgroundWidthFromInput(event.target);
1659
- }) : props.onChange;
2079
+ }) : other.onChange;
1660
2080
  let combinedProps = {
1661
- ref: reactMergeRefs.mergeRefs([rangeRef, ref]),
1662
- hasLowerTrack,
1663
- min,
2081
+ $backgroundSize: backgroundSize,
2082
+ $hasLowerTrack: hasLowerTrack,
1664
2083
  max,
2084
+ min,
2085
+ ref: reactMergeRefs.mergeRefs([rangeRef, ref]),
1665
2086
  step,
1666
- backgroundSize,
1667
- ...props,
2087
+ ...other,
1668
2088
  onChange
1669
2089
  };
1670
2090
  if (fieldContext) {
@@ -1685,12 +2105,17 @@ const parseStyleValue = value => {
1685
2105
  };
1686
2106
  const Textarea = React__namespace.default.forwardRef((_ref, ref) => {
1687
2107
  let {
2108
+ isCompact,
2109
+ isBare,
2110
+ focusInset,
2111
+ isResizable,
1688
2112
  minRows,
1689
2113
  maxRows,
1690
2114
  style,
2115
+ validation,
1691
2116
  onChange,
1692
2117
  onSelect,
1693
- ...props
2118
+ ...other
1694
2119
  } = _ref;
1695
2120
  const fieldContext = useFieldContext();
1696
2121
  const textAreaRef = React.useRef();
@@ -1699,8 +2124,8 @@ const Textarea = React__namespace.default.forwardRef((_ref, ref) => {
1699
2124
  overflow: false,
1700
2125
  height: 0
1701
2126
  });
1702
- const isControlled = props.value !== null && props.value !== undefined;
1703
- const isAutoResizable = (minRows !== undefined || maxRows !== undefined) && !props.isResizable;
2127
+ const isControlled = other.value !== null && other.value !== undefined;
2128
+ const isAutoResizable = (minRows !== undefined || maxRows !== undefined) && !isResizable;
1704
2129
  const calculateHeight = React.useCallback(() => {
1705
2130
  if (!isAutoResizable) {
1706
2131
  return;
@@ -1752,33 +2177,38 @@ const Textarea = React__namespace.default.forwardRef((_ref, ref) => {
1752
2177
  computedStyle.height = state.height;
1753
2178
  computedStyle.overflow = state.overflow ? 'hidden' : undefined;
1754
2179
  }
1755
- const onSelectHandler = props.readOnly ? containerUtilities.composeEventHandlers(onSelect, event => {
2180
+ const onSelectHandler = other.readOnly ? containerUtilities.composeEventHandlers(onSelect, event => {
1756
2181
  event.currentTarget.select();
1757
2182
  }) : onSelect;
1758
2183
  let combinedProps = {
1759
- ref: reactMergeRefs.mergeRefs([textAreaRef, ref]),
1760
- rows: minRows,
2184
+ $focusInset: focusInset,
2185
+ $isBare: isBare,
2186
+ $isCompact: isCompact,
2187
+ $isResizable: isResizable,
2188
+ $validation: validation,
1761
2189
  onChange: onChangeHandler,
1762
2190
  onSelect: onSelectHandler,
2191
+ ref: reactMergeRefs.mergeRefs([textAreaRef, ref]),
2192
+ rows: minRows,
1763
2193
  style: {
1764
2194
  ...computedStyle,
1765
2195
  ...style
1766
2196
  },
1767
- ...props
2197
+ ...other
1768
2198
  };
1769
2199
  if (fieldContext) {
1770
2200
  combinedProps = fieldContext.getInputProps(combinedProps);
1771
2201
  }
1772
- return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledTextarea, combinedProps), isAutoResizable && React__namespace.default.createElement(StyledTextarea, {
2202
+ return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledTextarea, combinedProps), !!isAutoResizable && React__namespace.default.createElement(StyledTextarea, {
2203
+ $isBare: isBare,
2204
+ $isCompact: isCompact,
2205
+ $isHidden: true,
1773
2206
  "aria-hidden": true,
2207
+ className: other.className,
1774
2208
  readOnly: true,
1775
- isHidden: true,
1776
- className: props.className,
1777
2209
  ref: shadowTextAreaRef,
1778
- tabIndex: -1,
1779
- isBare: props.isBare,
1780
- isCompact: props.isCompact,
1781
- style: style
2210
+ style: style,
2211
+ tabIndex: -1
1782
2212
  }));
1783
2213
  });
1784
2214
  Textarea.propTypes = {
@@ -1795,14 +2225,15 @@ Textarea.displayName = 'Textarea';
1795
2225
  const Toggle = React__namespace.default.forwardRef((_ref, ref) => {
1796
2226
  let {
1797
2227
  children,
1798
- ...props
2228
+ isCompact,
2229
+ ...other
1799
2230
  } = _ref;
1800
2231
  const fieldsetContext = useFieldsetContext();
1801
2232
  const fieldContext = useFieldContext();
1802
2233
  let combinedProps = {
2234
+ $isCompact: fieldsetContext ? fieldsetContext.isCompact : isCompact,
1803
2235
  ref,
1804
- ...props,
1805
- ...fieldsetContext
2236
+ ...other
1806
2237
  };
1807
2238
  if (fieldContext) {
1808
2239
  combinedProps = fieldContext.getInputProps(combinedProps);
@@ -1816,31 +2247,19 @@ Toggle.propTypes = {
1816
2247
  isCompact: PropTypes__default.default.bool
1817
2248
  };
1818
2249
 
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
2250
  const StartIconComponent = _ref => {
1836
2251
  let {
1837
2252
  isDisabled,
2253
+ isFocused,
2254
+ isHovered,
1838
2255
  isRotated,
1839
2256
  ...props
1840
2257
  } = _ref;
1841
2258
  return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
1842
2259
  $position: "start",
1843
2260
  $isDisabled: isDisabled,
2261
+ $isFocused: isFocused,
2262
+ $isHovered: isHovered,
1844
2263
  $isRotated: isRotated
1845
2264
  }, props));
1846
2265
  };
@@ -1850,12 +2269,16 @@ const StartIcon = StartIconComponent;
1850
2269
  const EndIconComponent = _ref => {
1851
2270
  let {
1852
2271
  isDisabled,
2272
+ isFocused,
2273
+ isHovered,
1853
2274
  isRotated,
1854
2275
  ...props
1855
2276
  } = _ref;
1856
2277
  return React__namespace.default.createElement(StyledTextMediaFigure, Object.assign({
1857
2278
  $position: "end",
1858
2279
  $isDisabled: isDisabled,
2280
+ $isFocused: isFocused,
2281
+ $isHovered: isHovered,
1859
2282
  $isRotated: isRotated
1860
2283
  }, props));
1861
2284
  };
@@ -1864,12 +2287,18 @@ const EndIcon = EndIconComponent;
1864
2287
 
1865
2288
  const FauxInputComponent = React.forwardRef((_ref, ref) => {
1866
2289
  let {
1867
- onFocus,
1868
- onBlur,
1869
2290
  disabled,
1870
- readOnly,
2291
+ focusInset,
2292
+ isBare,
2293
+ isCompact,
1871
2294
  isFocused: controlledIsFocused,
1872
- ...props
2295
+ isHovered,
2296
+ onBlur,
2297
+ onFocus,
2298
+ readOnly,
2299
+ validation,
2300
+ mediaLayout,
2301
+ ...other
1873
2302
  } = _ref;
1874
2303
  const [isFocused, setIsFocused] = React.useState(false);
1875
2304
  const onFocusHandler = containerUtilities.composeEventHandlers(onFocus, () => {
@@ -1881,11 +2310,17 @@ const FauxInputComponent = React.forwardRef((_ref, ref) => {
1881
2310
  return React__namespace.default.createElement(StyledTextFauxInput, Object.assign({
1882
2311
  onFocus: onFocusHandler,
1883
2312
  onBlur: onBlurHandler,
1884
- isFocused: controlledIsFocused === undefined ? isFocused : controlledIsFocused,
1885
- isReadOnly: readOnly,
1886
- isDisabled: disabled,
2313
+ $focusInset: focusInset,
2314
+ $isBare: isBare,
2315
+ $isCompact: isCompact,
2316
+ $isDisabled: disabled,
2317
+ $isFocused: controlledIsFocused === undefined ? isFocused : controlledIsFocused,
2318
+ $isHovered: isHovered,
2319
+ $isReadOnly: readOnly,
2320
+ $mediaLayout: mediaLayout,
2321
+ $validation: validation,
1887
2322
  tabIndex: disabled ? undefined : 0
1888
- }, props, {
2323
+ }, other, {
1889
2324
  ref: ref
1890
2325
  }));
1891
2326
  });
@@ -1915,11 +2350,11 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
1915
2350
  } = _ref;
1916
2351
  const fieldContext = useFieldContext();
1917
2352
  let combinedProps = {
2353
+ $focusInset: focusInset,
2354
+ $isBare: isBare,
2355
+ $isCompact: isCompact,
2356
+ $validation: validation,
1918
2357
  disabled,
1919
- isBare,
1920
- isCompact,
1921
- validation,
1922
- focusInset,
1923
2358
  ref,
1924
2359
  ...props
1925
2360
  };
@@ -1927,10 +2362,11 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
1927
2362
  combinedProps = fieldContext.getInputProps(combinedProps);
1928
2363
  }
1929
2364
  return React__namespace.default.createElement(StyledSelectWrapper, {
1930
- isCompact: isCompact,
1931
- isBare: isBare,
1932
- validation: validation,
1933
- focusInset: focusInset
2365
+ $isCompact: isCompact,
2366
+ $isBare: isBare,
2367
+ $isDisabled: disabled,
2368
+ $validation: validation,
2369
+ $focusInset: focusInset
1934
2370
  }, React__namespace.default.createElement(StyledSelect, combinedProps), !isBare && React__namespace.default.createElement(FauxInput.EndIcon, {
1935
2371
  isDisabled: disabled
1936
2372
  }, React__namespace.default.createElement(SvgChevronDownStroke, null)));
@@ -1967,9 +2403,7 @@ const TileComponent = React__namespace.default.forwardRef((_ref, ref) => {
1967
2403
  }
1968
2404
  return React__namespace.default.createElement(StyledTile, Object.assign({
1969
2405
  ref: ref,
1970
- "aria-disabled": disabled,
1971
- isDisabled: disabled,
1972
- isSelected: tilesContext && tilesContext.value === value
2406
+ "aria-disabled": disabled
1973
2407
  }, props), children, React__namespace.default.createElement(StyledTileInput, Object.assign({}, inputProps, {
1974
2408
  disabled: disabled,
1975
2409
  value: value,
@@ -1988,7 +2422,7 @@ const DescriptionComponent = React.forwardRef((props, ref) => {
1988
2422
  const tilesContext = useTilesContext();
1989
2423
  return React__namespace.default.createElement(StyledTileDescription, Object.assign({
1990
2424
  ref: ref,
1991
- isCentered: tilesContext && tilesContext.isCentered
2425
+ $isCentered: tilesContext?.isCentered
1992
2426
  }, props));
1993
2427
  });
1994
2428
  DescriptionComponent.displayName = 'Tiles.Description';
@@ -1998,7 +2432,7 @@ const IconComponent = React.forwardRef((props, ref) => {
1998
2432
  const tileContext = useTilesContext();
1999
2433
  return React__namespace.default.createElement(StyledTileIcon, Object.assign({
2000
2434
  ref: ref,
2001
- isCentered: tileContext && tileContext.isCentered
2435
+ $isCentered: tileContext?.isCentered
2002
2436
  }, props));
2003
2437
  });
2004
2438
  IconComponent.displayName = 'Tiles.Icon';
@@ -2016,7 +2450,7 @@ const LabelComponent = React.forwardRef((props, forwardedRef) => {
2016
2450
  return React__namespace.default.createElement(StyledTileLabel, Object.assign({
2017
2451
  ref: reactMergeRefs.mergeRefs([ref, forwardedRef]),
2018
2452
  title: title,
2019
- isCentered: tilesContext && tilesContext.isCentered
2453
+ $isCentered: tilesContext?.isCentered
2020
2454
  }, props));
2021
2455
  });
2022
2456
  LabelComponent.displayName = 'Tiles.Label';
@@ -2073,7 +2507,7 @@ Tiles.Tile = Tile;
2073
2507
  const InputGroup = React__namespace.default.forwardRef((_ref, ref) => {
2074
2508
  let {
2075
2509
  isCompact,
2076
- ...props
2510
+ ...other
2077
2511
  } = _ref;
2078
2512
  const contextValue = React.useMemo(() => ({
2079
2513
  isCompact
@@ -2082,8 +2516,8 @@ const InputGroup = React__namespace.default.forwardRef((_ref, ref) => {
2082
2516
  value: contextValue
2083
2517
  }, React__namespace.default.createElement(StyledInputGroup, Object.assign({
2084
2518
  ref: ref,
2085
- isCompact: isCompact
2086
- }, props)));
2519
+ $isCompact: isCompact
2520
+ }, other)));
2087
2521
  });
2088
2522
  InputGroup.displayName = 'InputGroup';
2089
2523
  InputGroup.propTypes = {
@@ -2093,13 +2527,17 @@ InputGroup.propTypes = {
2093
2527
  const FileUpload = React__namespace.default.forwardRef((_ref, ref) => {
2094
2528
  let {
2095
2529
  disabled,
2096
- ...props
2530
+ isCompact,
2531
+ isDragging,
2532
+ ...other
2097
2533
  } = _ref;
2098
2534
  return (
2099
2535
  React__namespace.default.createElement(StyledFileUpload, Object.assign({
2100
2536
  ref: ref,
2101
- "aria-disabled": disabled
2102
- }, props, {
2537
+ "aria-disabled": disabled,
2538
+ $isCompact: isCompact,
2539
+ $isDragging: isDragging
2540
+ }, other, {
2103
2541
  role: "button"
2104
2542
  }))
2105
2543
  );
@@ -2135,7 +2573,7 @@ const FileList = FileListComponent;
2135
2573
  FileList.Item = Item;
2136
2574
 
2137
2575
  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); }
2576
+ 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
2577
  var SvgXStroke$1 = function SvgXStroke(props) {
2140
2578
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
2141
2579
  xmlns: "http://www.w3.org/2000/svg",
@@ -2152,7 +2590,7 @@ var SvgXStroke$1 = function SvgXStroke(props) {
2152
2590
  };
2153
2591
 
2154
2592
  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); }
2593
+ 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
2594
  var SvgXStroke = function SvgXStroke(props) {
2157
2595
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
2158
2596
  xmlns: "http://www.w3.org/2000/svg",
@@ -2191,7 +2629,7 @@ CloseComponent.displayName = 'File.Close';
2191
2629
  const Close = CloseComponent;
2192
2630
 
2193
2631
  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); }
2632
+ 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
2633
  var SvgTrashStroke$1 = function SvgTrashStroke(props) {
2196
2634
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
2197
2635
  xmlns: "http://www.w3.org/2000/svg",
@@ -2209,7 +2647,7 @@ var SvgTrashStroke$1 = function SvgTrashStroke(props) {
2209
2647
  };
2210
2648
 
2211
2649
  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); }
2650
+ 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
2651
  var SvgTrashStroke = function SvgTrashStroke(props) {
2214
2652
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
2215
2653
  xmlns: "http://www.w3.org/2000/svg",
@@ -2244,7 +2682,7 @@ DeleteComponent.displayName = 'File.Delete';
2244
2682
  const Delete = DeleteComponent;
2245
2683
 
2246
2684
  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); }
2685
+ 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
2686
  var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
2249
2687
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
2250
2688
  xmlns: "http://www.w3.org/2000/svg",
@@ -2270,7 +2708,7 @@ var SvgFilePdfStroke$1 = function SvgFilePdfStroke(props) {
2270
2708
  };
2271
2709
 
2272
2710
  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); }
2711
+ 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
2712
  var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
2275
2713
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
2276
2714
  xmlns: "http://www.w3.org/2000/svg",
@@ -2288,7 +2726,7 @@ var SvgFileZipStroke$1 = function SvgFileZipStroke(props) {
2288
2726
  };
2289
2727
 
2290
2728
  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); }
2729
+ 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
2730
  var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
2293
2731
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
2294
2732
  xmlns: "http://www.w3.org/2000/svg",
@@ -2312,7 +2750,7 @@ var SvgFileImageStroke$1 = function SvgFileImageStroke(props) {
2312
2750
  };
2313
2751
 
2314
2752
  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); }
2753
+ 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
2754
  var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
2317
2755
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
2318
2756
  xmlns: "http://www.w3.org/2000/svg",
@@ -2330,7 +2768,7 @@ var SvgFileDocumentStroke$1 = function SvgFileDocumentStroke(props) {
2330
2768
  };
2331
2769
 
2332
2770
  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); }
2771
+ 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
2772
  var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
2335
2773
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
2336
2774
  xmlns: "http://www.w3.org/2000/svg",
@@ -2348,7 +2786,7 @@ var SvgFileSpreadsheetStroke$1 = function SvgFileSpreadsheetStroke(props) {
2348
2786
  };
2349
2787
 
2350
2788
  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); }
2789
+ 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
2790
  var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
2353
2791
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
2354
2792
  xmlns: "http://www.w3.org/2000/svg",
@@ -2365,7 +2803,7 @@ var SvgFilePresentationStroke$1 = function SvgFilePresentationStroke(props) {
2365
2803
  };
2366
2804
 
2367
2805
  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); }
2806
+ 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
2807
  var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
2370
2808
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
2371
2809
  xmlns: "http://www.w3.org/2000/svg",
@@ -2382,7 +2820,7 @@ var SvgFileGenericStroke$1 = function SvgFileGenericStroke(props) {
2382
2820
  };
2383
2821
 
2384
2822
  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); }
2823
+ 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
2824
  var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
2387
2825
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
2388
2826
  xmlns: "http://www.w3.org/2000/svg",
@@ -2406,7 +2844,7 @@ var SvgCheckCircleStroke = function SvgCheckCircleStroke(props) {
2406
2844
  };
2407
2845
 
2408
2846
  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); }
2847
+ 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
2848
  var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
2411
2849
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
2412
2850
  xmlns: "http://www.w3.org/2000/svg",
@@ -2424,7 +2862,7 @@ var SvgFileErrorStroke$1 = function SvgFileErrorStroke(props) {
2424
2862
  };
2425
2863
 
2426
2864
  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); }
2865
+ 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
2866
  var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
2429
2867
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
2430
2868
  xmlns: "http://www.w3.org/2000/svg",
@@ -2450,7 +2888,7 @@ var SvgFilePdfStroke = function SvgFilePdfStroke(props) {
2450
2888
  };
2451
2889
 
2452
2890
  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); }
2891
+ 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
2892
  var SvgFileZipStroke = function SvgFileZipStroke(props) {
2455
2893
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
2456
2894
  xmlns: "http://www.w3.org/2000/svg",
@@ -2468,7 +2906,7 @@ var SvgFileZipStroke = function SvgFileZipStroke(props) {
2468
2906
  };
2469
2907
 
2470
2908
  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); }
2909
+ 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
2910
  var SvgFileImageStroke = function SvgFileImageStroke(props) {
2473
2911
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
2474
2912
  xmlns: "http://www.w3.org/2000/svg",
@@ -2491,7 +2929,7 @@ var SvgFileImageStroke = function SvgFileImageStroke(props) {
2491
2929
  };
2492
2930
 
2493
2931
  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); }
2932
+ 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
2933
  var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
2496
2934
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
2497
2935
  xmlns: "http://www.w3.org/2000/svg",
@@ -2509,7 +2947,7 @@ var SvgFileDocumentStroke = function SvgFileDocumentStroke(props) {
2509
2947
  };
2510
2948
 
2511
2949
  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); }
2950
+ 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
2951
  var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
2514
2952
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
2515
2953
  xmlns: "http://www.w3.org/2000/svg",
@@ -2527,7 +2965,7 @@ var SvgFileSpreadsheetStroke = function SvgFileSpreadsheetStroke(props) {
2527
2965
  };
2528
2966
 
2529
2967
  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); }
2968
+ 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
2969
  var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
2532
2970
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
2533
2971
  xmlns: "http://www.w3.org/2000/svg",
@@ -2544,7 +2982,7 @@ var SvgFilePresentationStroke = function SvgFilePresentationStroke(props) {
2544
2982
  };
2545
2983
 
2546
2984
  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); }
2985
+ 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
2986
  var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
2549
2987
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
2550
2988
  xmlns: "http://www.w3.org/2000/svg",
@@ -2561,7 +2999,7 @@ var SvgFileGenericStroke = function SvgFileGenericStroke(props) {
2561
2999
  };
2562
3000
 
2563
3001
  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); }
3002
+ 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
3003
  var SvgFileErrorStroke = function SvgFileErrorStroke(props) {
2566
3004
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
2567
3005
  xmlns: "http://www.w3.org/2000/svg",
@@ -2617,12 +3055,13 @@ const FileComponent = React.forwardRef((_ref, ref) => {
2617
3055
  return React__namespace.default.createElement(FileContext.Provider, {
2618
3056
  value: fileContextValue
2619
3057
  }, React__namespace.default.createElement(StyledFile, Object.assign({}, props, {
2620
- isCompact: isCompact,
2621
- focusInset: focusInset,
2622
- validation: validation,
3058
+ $isCompact: isCompact,
3059
+ $focusInset: focusInset,
3060
+ $validation: validation,
2623
3061
  ref: ref
2624
- }), validationType && React__namespace.default.createElement(StyledFileIcon, {
2625
- $isCompact: isCompact
3062
+ }), !!validationType && React__namespace.default.createElement(StyledFileIcon, {
3063
+ $isCompact: isCompact,
3064
+ $validation: validation
2626
3065
  }, isCompact ? fileIconsCompact[validationType] : fileIconsDefault[validationType]), React.Children.map(children, child => typeof child === 'string' ? React__namespace.default.createElement("span", null, child) : child)));
2627
3066
  });
2628
3067
  FileComponent.displayName = 'File';
@@ -2711,11 +3150,11 @@ const MediaInput = React__namespace.default.forwardRef((_ref, ref) => {
2711
3150
  mediaLayout: true
2712
3151
  }, otherWrapperProps, {
2713
3152
  ref: wrapperRef
2714
- }), start && React__namespace.default.createElement(FauxInput.StartIcon, {
3153
+ }), !!start && React__namespace.default.createElement(FauxInput.StartIcon, {
2715
3154
  isDisabled: disabled,
2716
3155
  isFocused: isFocused,
2717
3156
  isHovered: isHovered || isLabelHovered
2718
- }, start), React__namespace.default.createElement(StyledTextMediaInput, combinedProps), end && React__namespace.default.createElement(FauxInput.EndIcon, {
3157
+ }, start), React__namespace.default.createElement(StyledTextMediaInput, combinedProps), !!end && React__namespace.default.createElement(FauxInput.EndIcon, {
2719
3158
  isDisabled: disabled,
2720
3159
  isFocused: isFocused,
2721
3160
  isHovered: isHovered || isLabelHovered