@zendeskgarden/react-forms 9.0.0-next.2 → 9.0.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -6,15 +6,14 @@
6
6
  */
7
7
 
8
8
  import * as React from 'react';
9
- import React__default, { createContext, useContext, Children, useState, useRef, useMemo, forwardRef, useEffect, useCallback, useLayoutEffect } from 'react';
9
+ import React__default, { createContext, useContext, Children, useState, useMemo, forwardRef, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
10
10
  import { useField } from '@zendeskgarden/container-field';
11
- import styled, { css, ThemeContext } from 'styled-components';
12
- import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, focusStyles, SELECTOR_FOCUS_VISIBLE, getFocusBoxShadow, useText, useDocument } from '@zendeskgarden/react-theming';
11
+ import styled, { css } from 'styled-components';
12
+ import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor, focusStyles, SELECTOR_FOCUS_VISIBLE, getFocusBoxShadow, useText } from '@zendeskgarden/react-theming';
13
13
  import { hideVisually, math, em, rgba } from 'polished';
14
14
  import PropTypes from 'prop-types';
15
15
  import { composeEventHandlers, getControlledValue } from '@zendeskgarden/container-utilities';
16
16
  import { mergeRefs } from 'react-merge-refs';
17
- import { useSlider } from '@zendeskgarden/container-slider';
18
17
 
19
18
  function _extends$t() {
20
19
  _extends$t = Object.assign ? Object.assign.bind() : function (target) {
@@ -37,64 +36,64 @@ const useFieldContext = () => {
37
36
  return fieldContext;
38
37
  };
39
38
 
40
- const COMPONENT_ID$K = 'forms.field';
39
+ const COMPONENT_ID$G = 'forms.field';
41
40
  const StyledField = styled.div.attrs({
42
- 'data-garden-id': COMPONENT_ID$K,
43
- 'data-garden-version': '9.0.0-next.2'
41
+ 'data-garden-id': COMPONENT_ID$G,
42
+ 'data-garden-version': '9.0.0-next.4'
44
43
  }).withConfig({
45
44
  displayName: "StyledField",
46
45
  componentId: "sc-12gzfsu-0"
47
- })(["position:relative;direction:", ";margin:0;border:0;padding:0;font-size:0;", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => retrieveComponentStyles(COMPONENT_ID$K, props));
46
+ })(["position:relative;direction:", ";margin:0;border:0;padding:0;font-size:0;", ";"], props => props.theme.rtl ? 'rtl' : 'ltr', props => retrieveComponentStyles(COMPONENT_ID$G, props));
48
47
  StyledField.defaultProps = {
49
48
  theme: DEFAULT_THEME
50
49
  };
51
50
 
52
- const COMPONENT_ID$J = 'forms.fieldset';
51
+ const COMPONENT_ID$F = 'forms.fieldset';
53
52
  const StyledFieldset = styled(StyledField).attrs({
54
53
  as: 'fieldset',
55
- 'data-garden-id': COMPONENT_ID$J,
56
- 'data-garden-version': '9.0.0-next.2'
54
+ 'data-garden-id': COMPONENT_ID$F,
55
+ 'data-garden-version': '9.0.0-next.4'
57
56
  }).withConfig({
58
57
  displayName: "StyledFieldset",
59
58
  componentId: "sc-1vr4mxv-0"
60
- })(["", "{margin-top:", "px;}", ";"], StyledField, props => props.theme.space.base * (props.isCompact ? 1 : 2), props => retrieveComponentStyles(COMPONENT_ID$J, props));
59
+ })(["", "{margin-top:", "px;}", ";"], StyledField, props => props.theme.space.base * (props.isCompact ? 1 : 2), props => retrieveComponentStyles(COMPONENT_ID$F, props));
61
60
  StyledFieldset.defaultProps = {
62
61
  theme: DEFAULT_THEME
63
62
  };
64
63
 
65
- const COMPONENT_ID$I = 'forms.input_label';
64
+ const COMPONENT_ID$E = 'forms.input_label';
66
65
  const StyledLabel = styled.label.attrs(props => ({
67
- 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$I,
68
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.2'
66
+ 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
67
+ 'data-garden-version': props['data-garden-version'] || '9.0.0-next.4'
69
68
  })).withConfig({
70
69
  displayName: "StyledLabel",
71
70
  componentId: "sc-2utmsz-0"
72
- })(["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 => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.colors.foreground, 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 && hideVisually(), props => retrieveComponentStyles(COMPONENT_ID$I, props));
71
+ })(["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 => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.colors.foreground, 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 && hideVisually(), props => retrieveComponentStyles(COMPONENT_ID$E, props));
73
72
  StyledLabel.defaultProps = {
74
73
  theme: DEFAULT_THEME
75
74
  };
76
75
 
77
- const COMPONENT_ID$H = 'forms.fieldset_legend';
76
+ const COMPONENT_ID$D = 'forms.fieldset_legend';
78
77
  const StyledLegend = styled(StyledLabel).attrs({
79
78
  as: 'legend',
80
- 'data-garden-id': COMPONENT_ID$H,
81
- 'data-garden-version': '9.0.0-next.2'
79
+ 'data-garden-id': COMPONENT_ID$D,
80
+ 'data-garden-version': '9.0.0-next.4'
82
81
  }).withConfig({
83
82
  displayName: "StyledLegend",
84
83
  componentId: "sc-6s0zwq-0"
85
- })(["padding:0;", ";"], props => retrieveComponentStyles(COMPONENT_ID$H, props));
84
+ })(["padding:0;", ";"], props => retrieveComponentStyles(COMPONENT_ID$D, props));
86
85
  StyledLegend.defaultProps = {
87
86
  theme: DEFAULT_THEME
88
87
  };
89
88
 
90
- const COMPONENT_ID$G = 'forms.input_hint';
89
+ const COMPONENT_ID$C = 'forms.input_hint';
91
90
  const StyledHint = styled.div.attrs(props => ({
92
- 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$G,
93
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.2'
91
+ 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$C,
92
+ 'data-garden-version': props['data-garden-version'] || '9.0.0-next.4'
94
93
  })).withConfig({
95
94
  displayName: "StyledHint",
96
95
  componentId: "sc-17c2wu8-0"
97
- })(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], props => props.theme.rtl && 'rtl', props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => getColor('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID$G, props));
96
+ })(["direction:", ";display:block;vertical-align:middle;line-height:", ";color:", ";font-size:", ";", ";"], props => props.theme.rtl && 'rtl', props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => getColor('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID$C, props));
98
97
  StyledHint.defaultProps = {
99
98
  theme: DEFAULT_THEME
100
99
  };
@@ -192,15 +191,15 @@ const MessageIcon = _ref => {
192
191
  }
193
192
  return retVal;
194
193
  };
195
- const COMPONENT_ID$F = 'forms.input_message_icon';
194
+ const COMPONENT_ID$B = 'forms.input_message_icon';
196
195
  const StyledMessageIcon = styled(MessageIcon).attrs({
197
- 'data-garden-id': COMPONENT_ID$F,
198
- 'data-garden-version': '9.0.0-next.2',
196
+ 'data-garden-id': COMPONENT_ID$B,
197
+ 'data-garden-version': '9.0.0-next.4',
199
198
  'aria-hidden': null
200
199
  }).withConfig({
201
200
  displayName: "StyledMessageIcon",
202
201
  componentId: "sc-1ph2gba-0"
203
- })(["width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID$F, props));
202
+ })(["width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID$B, props));
204
203
  StyledMessageIcon.defaultProps = {
205
204
  theme: DEFAULT_THEME
206
205
  };
@@ -220,23 +219,23 @@ const validationStyles = props => {
220
219
  }
221
220
  return css(["padding-", ":", ";color:", ";"], rtl ? 'right' : 'left', props.validation && padding, color);
222
221
  };
223
- const COMPONENT_ID$E = 'forms.input_message';
222
+ const COMPONENT_ID$A = 'forms.input_message';
224
223
  const StyledMessage = styled.div.attrs(props => ({
225
- 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$E,
226
- 'data-garden-version': props['data-garden-version'] || '9.0.0-next.2'
224
+ 'data-garden-id': props['data-garden-id'] || COMPONENT_ID$A,
225
+ 'data-garden-version': props['data-garden-version'] || '9.0.0-next.4'
227
226
  })).withConfig({
228
227
  displayName: "StyledMessage",
229
228
  componentId: "sc-30hgg7-0"
230
- })(["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 => 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 => math(`${props.theme.space.base} * 1px`), props => retrieveComponentStyles(COMPONENT_ID$E, props));
229
+ })(["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 => 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 => math(`${props.theme.space.base} * 1px`), props => retrieveComponentStyles(COMPONENT_ID$A, props));
231
230
  StyledMessage.defaultProps = {
232
231
  theme: DEFAULT_THEME
233
232
  };
234
233
 
235
- const COMPONENT_ID$D = 'forms.input';
234
+ const COMPONENT_ID$z = 'forms.input';
236
235
  const isInvalid = validation => {
237
236
  return validation === 'warning' || validation === 'error';
238
237
  };
239
- const colorStyles$c = props => {
238
+ const colorStyles$a = props => {
240
239
  const HUE = 'primaryHue';
241
240
  const SHADE = 600;
242
241
  const placeholderColor = getColor('neutralHue', SHADE - 200, props.theme);
@@ -287,7 +286,7 @@ const colorStyles$c = props => {
287
286
  }
288
287
  }), disabledBorderColor, !props.isBare && disabledBackgroundColor, disabledForegroundColor);
289
288
  };
290
- const sizeStyles$f = props => {
289
+ const sizeStyles$c = props => {
291
290
  const fontSize = props.theme.fontSizes.md;
292
291
  const paddingHorizontal = `${props.theme.space.base * 3}px`;
293
292
  let height;
@@ -312,18 +311,18 @@ const sizeStyles$f = props => {
312
311
  return 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, getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, props.isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, math(`${swatchMarginHorizontal} * -2`), swatchHeight, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, props.theme.space.base * (props.isCompact ? 1 : 2));
313
312
  };
314
313
  const StyledTextInput = styled.input.attrs(props => ({
315
- 'data-garden-id': COMPONENT_ID$D,
316
- 'data-garden-version': '9.0.0-next.2',
314
+ 'data-garden-id': COMPONENT_ID$z,
315
+ 'data-garden-version': '9.0.0-next.4',
317
316
  'aria-invalid': isInvalid(props.validation)
318
317
  })).withConfig({
319
318
  displayName: "StyledTextInput",
320
319
  componentId: "sc-k12n8x-0"
321
- })(["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$f(props), props => colorStyles$c(props), props => retrieveComponentStyles(COMPONENT_ID$D, props));
320
+ })(["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 => retrieveComponentStyles(COMPONENT_ID$z, props));
322
321
  StyledTextInput.defaultProps = {
323
322
  theme: DEFAULT_THEME
324
323
  };
325
324
 
326
- const COMPONENT_ID$C = 'forms.textarea';
325
+ const COMPONENT_ID$y = 'forms.textarea';
327
326
  const hiddenStyles = `
328
327
  visibility: hidden;
329
328
  position: absolute;
@@ -335,18 +334,18 @@ const hiddenStyles = `
335
334
  `;
336
335
  const StyledTextarea = styled(StyledTextInput).attrs({
337
336
  as: 'textarea',
338
- 'data-garden-id': COMPONENT_ID$C,
339
- 'data-garden-version': '9.0.0-next.2'
337
+ 'data-garden-id': COMPONENT_ID$y,
338
+ 'data-garden-version': '9.0.0-next.4'
340
339
  }).withConfig({
341
340
  displayName: "StyledTextarea",
342
341
  componentId: "sc-wxschl-0"
343
- })(["resize:", ";overflow:auto;", ";", ";"], props => props.isResizable ? 'vertical' : 'none', props => props.isHidden && hiddenStyles, props => retrieveComponentStyles(COMPONENT_ID$C, props));
342
+ })(["resize:", ";overflow:auto;", ";", ";"], props => props.isResizable ? 'vertical' : 'none', props => props.isHidden && hiddenStyles, props => retrieveComponentStyles(COMPONENT_ID$y, props));
344
343
  StyledTextarea.defaultProps = {
345
344
  theme: DEFAULT_THEME
346
345
  };
347
346
 
348
- const COMPONENT_ID$B = 'forms.media_figure';
349
- const colorStyles$b = props => {
347
+ const COMPONENT_ID$x = 'forms.media_figure';
348
+ const colorStyles$9 = props => {
350
349
  let shade = 600;
351
350
  if (props.isDisabled) {
352
351
  shade = 400;
@@ -355,7 +354,7 @@ const colorStyles$b = props => {
355
354
  }
356
355
  return css(["color:", ";"], getColor('neutralHue', shade, props.theme));
357
356
  };
358
- const sizeStyles$e = props => {
357
+ const sizeStyles$b = props => {
359
358
  const size = props.theme.iconSizes.md;
360
359
  const marginFirst = `1px ${props.theme.space.base * 2}px auto 0`;
361
360
  const marginLast = `1px 0 auto ${props.theme.space.base * 2}px`;
@@ -381,17 +380,17 @@ _ref => {
381
380
  } = _ref;
382
381
  return React__default.cloneElement(Children.only(children), props);
383
382
  }).attrs({
384
- 'data-garden-id': COMPONENT_ID$B,
385
- 'data-garden-version': '9.0.0-next.2'
383
+ 'data-garden-id': COMPONENT_ID$x,
384
+ 'data-garden-version': '9.0.0-next.4'
386
385
  }).withConfig({
387
386
  displayName: "StyledTextMediaFigure",
388
387
  componentId: "sc-1qepknj-0"
389
- })(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => colorStyles$b(props), props => sizeStyles$e(props), props => retrieveComponentStyles(COMPONENT_ID$B, props));
388
+ })(["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 => retrieveComponentStyles(COMPONENT_ID$x, props));
390
389
  StyledTextMediaFigure.defaultProps = {
391
390
  theme: DEFAULT_THEME
392
391
  };
393
392
 
394
- const COMPONENT_ID$A = 'forms.faux_input';
393
+ const COMPONENT_ID$w = 'forms.faux_input';
395
394
  const VALIDATION_HUES = {
396
395
  success: 'successHue',
397
396
  warning: 'warningHue',
@@ -404,7 +403,7 @@ function getValidationHue(validation) {
404
403
  }
405
404
  return defaultHue;
406
405
  }
407
- const colorStyles$a = props => {
406
+ const colorStyles$8 = props => {
408
407
  const {
409
408
  theme,
410
409
  validation,
@@ -428,30 +427,30 @@ const StyledTextFauxInput = styled(StyledTextInput).attrs(props => ({
428
427
  as: 'div',
429
428
  'aria-readonly': props.isReadOnly,
430
429
  'aria-disabled': props.isDisabled,
431
- 'data-garden-id': COMPONENT_ID$A,
432
- 'data-garden-version': '9.0.0-next.2'
430
+ 'data-garden-id': COMPONENT_ID$w,
431
+ 'data-garden-version': '9.0.0-next.4'
433
432
  })).withConfig({
434
433
  displayName: "StyledTextFauxInput",
435
434
  componentId: "sc-yqw7j9-0"
436
- })(["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', SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.mediaLayout && '0', props => retrieveComponentStyles(COMPONENT_ID$A, props));
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', SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.mediaLayout && '0', props => retrieveComponentStyles(COMPONENT_ID$w, props));
437
436
  StyledTextFauxInput.defaultProps = {
438
437
  theme: DEFAULT_THEME
439
438
  };
440
439
 
441
- const COMPONENT_ID$z = 'forms.media_input';
440
+ const COMPONENT_ID$v = 'forms.media_input';
442
441
  const StyledTextMediaInput = styled(StyledTextInput).attrs({
443
- 'data-garden-id': COMPONENT_ID$z,
444
- 'data-garden-version': '9.0.0-next.2',
442
+ 'data-garden-id': COMPONENT_ID$v,
443
+ 'data-garden-version': '9.0.0-next.4',
445
444
  isBare: true
446
445
  }).withConfig({
447
446
  displayName: "StyledTextMediaInput",
448
447
  componentId: "sc-12i9xfi-0"
449
- })(["flex-grow:1;", ";"], props => retrieveComponentStyles(COMPONENT_ID$z, props));
448
+ })(["flex-grow:1;", ";"], props => retrieveComponentStyles(COMPONENT_ID$v, props));
450
449
  StyledTextMediaInput.defaultProps = {
451
450
  theme: DEFAULT_THEME
452
451
  };
453
452
 
454
- const COMPONENT_ID$y = 'forms.input_group';
453
+ const COMPONENT_ID$u = 'forms.input_group';
455
454
  const positionStyles = props => {
456
455
  const topMargin = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
457
456
  return 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);
@@ -462,73 +461,73 @@ const itemStyles = props => {
462
461
  return css(["& > *{z-index:-1;}& > ", "{z-index:0;}& > ", ":disabled{z-index:-2;}& > ", ":hover,& > button:hover,& > ", ":focus-visible,& > button:focus-visible,& > ", "[data-garden-focus-visible],& > button[data-garden-focus-visible],& > ", ":active,& > button:active{z-index:1;}& > button:disabled{border-top-width:0;border-bottom-width:0;}& > *:not(:first-child){margin-", ":-", ";}& > *:first-child:not(:last-child){border-top-", "-radius:0;border-bottom-", "-radius:0;}& > *:last-child:not(:first-child){border-top-", "-radius:0;border-bottom-", "-radius:0;}& > *:not(:first-child):not(:last-child){border-radius:0;}"], StyledTextInput, StyledTextInput, StyledTextInput, StyledTextInput, StyledTextInput, StyledTextInput, startDirection, props.theme.borderWidths.sm, endDirection, endDirection, startDirection, startDirection);
463
462
  };
464
463
  const StyledInputGroup = styled.div.attrs({
465
- 'data-garden-id': COMPONENT_ID$y,
466
- 'data-garden-version': '9.0.0-next.2'
464
+ 'data-garden-id': COMPONENT_ID$u,
465
+ 'data-garden-version': '9.0.0-next.4'
467
466
  }).withConfig({
468
467
  displayName: "StyledInputGroup",
469
468
  componentId: "sc-kjh1f0-0"
470
- })(["display:inline-flex;position:relative;flex-wrap:nowrap;align-items:stretch;z-index:0;width:100%;", ";", ";", ";"], props => positionStyles(props), props => itemStyles(props), props => retrieveComponentStyles(COMPONENT_ID$y, props));
469
+ })(["display:inline-flex;position:relative;flex-wrap:nowrap;align-items:stretch;z-index:0;width:100%;", ";", ";", ";"], props => positionStyles(props), props => itemStyles(props), props => retrieveComponentStyles(COMPONENT_ID$u, props));
471
470
  StyledInputGroup.defaultProps = {
472
471
  theme: DEFAULT_THEME
473
472
  };
474
473
 
475
- const COMPONENT_ID$x = 'forms.radio_label';
476
- const sizeStyles$d = props => {
474
+ const COMPONENT_ID$t = 'forms.radio_label';
475
+ const sizeStyles$a = props => {
477
476
  const size = props.theme.space.base * 4;
478
477
  const padding = size + props.theme.space.base * 2;
479
478
  const lineHeight = props.theme.space.base * 5;
480
479
  return css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;line-height:", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size, lineHeight);
481
480
  };
482
481
  const StyledRadioLabel = styled(StyledLabel).attrs({
483
- 'data-garden-id': COMPONENT_ID$x,
484
- 'data-garden-version': '9.0.0-next.2',
482
+ 'data-garden-id': COMPONENT_ID$t,
483
+ 'data-garden-version': '9.0.0-next.4',
485
484
  isRadio: true
486
485
  }).withConfig({
487
486
  displayName: "StyledRadioLabel",
488
487
  componentId: "sc-1aq2e5t-0"
489
- })(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$d(props), props => retrieveComponentStyles(COMPONENT_ID$x, props));
488
+ })(["display:inline-block;position:relative;cursor:pointer;", ";", ";"], props => sizeStyles$a(props), props => retrieveComponentStyles(COMPONENT_ID$t, props));
490
489
  StyledRadioLabel.defaultProps = {
491
490
  theme: DEFAULT_THEME
492
491
  };
493
492
 
494
- const COMPONENT_ID$w = 'forms.checkbox_label';
493
+ const COMPONENT_ID$s = 'forms.checkbox_label';
495
494
  const StyledCheckLabel = styled(StyledRadioLabel).attrs({
496
- 'data-garden-id': COMPONENT_ID$w,
497
- 'data-garden-version': '9.0.0-next.2'
495
+ 'data-garden-id': COMPONENT_ID$s,
496
+ 'data-garden-version': '9.0.0-next.4'
498
497
  }).withConfig({
499
498
  displayName: "StyledCheckLabel",
500
499
  componentId: "sc-x7nr1-0"
501
- })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID$w, props));
500
+ })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID$s, props));
502
501
  StyledCheckLabel.defaultProps = {
503
502
  theme: DEFAULT_THEME
504
503
  };
505
504
 
506
- const COMPONENT_ID$v = 'forms.radio_hint';
505
+ const COMPONENT_ID$r = 'forms.radio_hint';
507
506
  const StyledRadioHint = styled(StyledHint).attrs({
508
- 'data-garden-id': COMPONENT_ID$v,
509
- 'data-garden-version': '9.0.0-next.2'
507
+ 'data-garden-id': COMPONENT_ID$r,
508
+ 'data-garden-version': '9.0.0-next.4'
510
509
  }).withConfig({
511
510
  displayName: "StyledRadioHint",
512
511
  componentId: "sc-eo8twg-0"
513
- })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 6px`), props => retrieveComponentStyles(COMPONENT_ID$v, props));
512
+ })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 6px`), props => retrieveComponentStyles(COMPONENT_ID$r, props));
514
513
  StyledRadioHint.defaultProps = {
515
514
  theme: DEFAULT_THEME
516
515
  };
517
516
 
518
- const COMPONENT_ID$u = 'forms.checkbox_hint';
517
+ const COMPONENT_ID$q = 'forms.checkbox_hint';
519
518
  const StyledCheckHint = styled(StyledRadioHint).attrs({
520
- 'data-garden-id': COMPONENT_ID$u,
521
- 'data-garden-version': '9.0.0-next.2'
519
+ 'data-garden-id': COMPONENT_ID$q,
520
+ 'data-garden-version': '9.0.0-next.4'
522
521
  }).withConfig({
523
522
  displayName: "StyledCheckHint",
524
523
  componentId: "sc-1kl8e8c-0"
525
- })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID$u, props));
524
+ })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID$q, props));
526
525
  StyledCheckHint.defaultProps = {
527
526
  theme: DEFAULT_THEME
528
527
  };
529
528
 
530
- const COMPONENT_ID$t = 'forms.radio';
531
- const colorStyles$9 = props => {
529
+ const COMPONENT_ID$p = 'forms.radio';
530
+ const colorStyles$7 = props => {
532
531
  const SHADE = 600;
533
532
  const borderColor = getColor('neutralHue', SHADE - 300, props.theme);
534
533
  const backgroundColor = props.theme.colors.background;
@@ -553,7 +552,7 @@ const colorStyles$9 = props => {
553
552
  selector: `&:focus-visible ~ ${StyledRadioLabel}::before, &[data-garden-focus-visible='true'] ~ ${StyledRadioLabel}::before`
554
553
  }), StyledRadioLabel, activeBorderColor, activeBackgroundColor, StyledRadioLabel, checkedBorderColor, checkedBackgroundColor, StyledRadioLabel, checkedHoverBorderColor, checkedHoverBackgroundColor, StyledRadioLabel, checkedActiveBorderColor, checkedActiveBackgroundColor, StyledRadioLabel, disabledBackgroundColor);
555
554
  };
556
- const sizeStyles$c = props => {
555
+ const sizeStyles$9 = props => {
557
556
  const lineHeight = `${props.theme.space.base * 5}px`;
558
557
  const size = `${props.theme.space.base * 4}px`;
559
558
  const top = math(`(${lineHeight} - ${size}) / 2`);
@@ -564,19 +563,19 @@ const sizeStyles$c = props => {
564
563
  return 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);
565
564
  };
566
565
  const StyledRadioInput = styled.input.attrs({
567
- 'data-garden-id': COMPONENT_ID$t,
568
- 'data-garden-version': '9.0.0-next.2',
566
+ 'data-garden-id': COMPONENT_ID$p,
567
+ 'data-garden-version': '9.0.0-next.4',
569
568
  type: 'radio'
570
569
  }).withConfig({
571
570
  displayName: "StyledRadioInput",
572
571
  componentId: "sc-qsavpv-0"
573
- })(["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$c(props), StyledRadioLabel, StyledRadioLabel, props => colorStyles$9(props), StyledRadioLabel, props => retrieveComponentStyles(COMPONENT_ID$t, props));
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 => retrieveComponentStyles(COMPONENT_ID$p, props));
574
573
  StyledRadioInput.defaultProps = {
575
574
  theme: DEFAULT_THEME
576
575
  };
577
576
 
578
- const COMPONENT_ID$s = 'forms.checkbox';
579
- const colorStyles$8 = props => {
577
+ const COMPONENT_ID$o = 'forms.checkbox';
578
+ const colorStyles$6 = props => {
580
579
  const SHADE = 600;
581
580
  const indeterminateBorderColor = getColor('primaryHue', SHADE, props.theme);
582
581
  const indeterminateBackgroundColor = indeterminateBorderColor;
@@ -586,37 +585,37 @@ const colorStyles$8 = props => {
586
585
  return css(["&:indeterminate ~ ", "::before{border-color:", ";background-color:", ";}&:enabled:indeterminate ~ ", ":active::before{border-color:", ";background-color:", ";}&:disabled:indeterminate ~ ", "::before{border-color:transparent;background-color:", ";}"], StyledCheckLabel, indeterminateBorderColor, indeterminateBackgroundColor, StyledCheckLabel, indeterminateActiveBorderColor, indeterminateActiveBackgroundColor, StyledCheckLabel, indeterminateDisabledBackgroundColor);
587
586
  };
588
587
  const StyledCheckInput = styled(StyledRadioInput).attrs({
589
- 'data-garden-id': COMPONENT_ID$s,
590
- 'data-garden-version': '9.0.0-next.2',
588
+ 'data-garden-id': COMPONENT_ID$o,
589
+ 'data-garden-version': '9.0.0-next.4',
591
590
  type: 'checkbox'
592
591
  }).withConfig({
593
592
  displayName: "StyledCheckInput",
594
593
  componentId: "sc-176jxxe-0"
595
- })(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, props => colorStyles$8(props), props => retrieveComponentStyles(COMPONENT_ID$s, props));
594
+ })(["& ~ ", "::before{border-radius:", ";}", ";", ";"], StyledCheckLabel, props => props.theme.borderRadii.md, props => colorStyles$6(props), props => retrieveComponentStyles(COMPONENT_ID$o, props));
596
595
  StyledCheckInput.defaultProps = {
597
596
  theme: DEFAULT_THEME
598
597
  };
599
598
 
600
- const COMPONENT_ID$r = 'forms.radio_message';
599
+ const COMPONENT_ID$n = 'forms.radio_message';
601
600
  const StyledRadioMessage = styled(StyledMessage).attrs({
602
- 'data-garden-id': COMPONENT_ID$r,
603
- 'data-garden-version': '9.0.0-next.2'
601
+ 'data-garden-id': COMPONENT_ID$n,
602
+ 'data-garden-version': '9.0.0-next.4'
604
603
  }).withConfig({
605
604
  displayName: "StyledRadioMessage",
606
605
  componentId: "sc-1pmi0q8-0"
607
- })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 6px`), props => retrieveComponentStyles(COMPONENT_ID$r, props));
606
+ })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 6px`), props => retrieveComponentStyles(COMPONENT_ID$n, props));
608
607
  StyledRadioMessage.defaultProps = {
609
608
  theme: DEFAULT_THEME
610
609
  };
611
610
 
612
- const COMPONENT_ID$q = 'forms.checkbox_message';
611
+ const COMPONENT_ID$m = 'forms.checkbox_message';
613
612
  const StyledCheckMessage = styled(StyledRadioMessage).attrs({
614
- 'data-garden-id': COMPONENT_ID$q,
615
- 'data-garden-version': '9.0.0-next.2'
613
+ 'data-garden-id': COMPONENT_ID$m,
614
+ 'data-garden-version': '9.0.0-next.4'
616
615
  }).withConfig({
617
616
  displayName: "StyledCheckMessage",
618
617
  componentId: "sc-s4p6kd-0"
619
- })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID$q, props));
618
+ })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID$m, props));
620
619
  StyledCheckMessage.defaultProps = {
621
620
  theme: DEFAULT_THEME
622
621
  };
@@ -641,14 +640,14 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
641
640
  })));
642
641
  };
643
642
 
644
- const COMPONENT_ID$p = 'forms.check_svg';
643
+ const COMPONENT_ID$l = 'forms.check_svg';
645
644
  const StyledCheckSvg = styled(SvgCheckSmFill).attrs({
646
- 'data-garden-id': COMPONENT_ID$p,
647
- 'data-garden-version': '9.0.0-next.2'
645
+ 'data-garden-id': COMPONENT_ID$l,
646
+ 'data-garden-version': '9.0.0-next.4'
648
647
  }).withConfig({
649
648
  displayName: "StyledCheckSvg",
650
649
  componentId: "sc-fvxetk-0"
651
- })(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":checked ~ ", " > &{opacity:1;}", ":indeterminate ~ ", " > &{opacity:0;}", ";"], StyledCheckInput, StyledCheckLabel, StyledCheckInput, StyledCheckLabel, props => retrieveComponentStyles(COMPONENT_ID$p, props));
650
+ })(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":checked ~ ", " > &{opacity:1;}", ":indeterminate ~ ", " > &{opacity:0;}", ";"], StyledCheckInput, StyledCheckLabel, StyledCheckInput, StyledCheckLabel, props => retrieveComponentStyles(COMPONENT_ID$l, props));
652
651
  StyledCheckSvg.defaultProps = {
653
652
  theme: DEFAULT_THEME
654
653
  };
@@ -671,20 +670,20 @@ var SvgDashFill = function SvgDashFill(props) {
671
670
  })));
672
671
  };
673
672
 
674
- const COMPONENT_ID$o = 'forms.dash_svg';
673
+ const COMPONENT_ID$k = 'forms.dash_svg';
675
674
  const StyledDashSvg = styled(SvgDashFill).attrs({
676
- 'data-garden-id': COMPONENT_ID$o,
677
- 'data-garden-version': '9.0.0-next.2'
675
+ 'data-garden-id': COMPONENT_ID$k,
676
+ 'data-garden-version': '9.0.0-next.4'
678
677
  }).withConfig({
679
678
  displayName: "StyledDashSvg",
680
679
  componentId: "sc-z3vq71-0"
681
- })(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, props => retrieveComponentStyles(COMPONENT_ID$o, props));
680
+ })(["transition:opacity 0.25s ease-in-out;opacity:0;pointer-events:none;", ":indeterminate ~ ", " > &{opacity:1;}", ";"], StyledCheckInput, StyledCheckLabel, props => retrieveComponentStyles(COMPONENT_ID$k, props));
682
681
  StyledDashSvg.defaultProps = {
683
682
  theme: DEFAULT_THEME
684
683
  };
685
684
 
686
- const COMPONENT_ID$n = 'forms.file_upload';
687
- const colorStyles$7 = props => {
685
+ const COMPONENT_ID$j = 'forms.file_upload';
686
+ const colorStyles$5 = props => {
688
687
  const baseColor = getColor('primaryHue', 600, props.theme);
689
688
  const hoverColor = getColor('primaryHue', 700, props.theme);
690
689
  const activeColor = getColor('primaryHue', 800, props.theme);
@@ -695,7 +694,7 @@ const colorStyles$7 = props => {
695
694
  hue: baseColor
696
695
  }), activeColor, rgba(baseColor, 0.2), activeColor, disabledForegroundColor, disabledBackgroundColor, disabledForegroundColor);
697
696
  };
698
- const sizeStyles$b = props => {
697
+ const sizeStyles$8 = props => {
699
698
  const marginTop = `${props.theme.space.base * (props.isCompact ? 1 : 2)}px`;
700
699
  const paddingHorizontal = `${props.isCompact ? 2 : 4}em`;
701
700
  const paddingVertical = math(`${props.theme.space.base * (props.isCompact ? 2.5 : 5)} - ${props.theme.borderWidths.sm}`);
@@ -704,30 +703,30 @@ const sizeStyles$b = props => {
704
703
  return css(["padding:", " ", ";min-width:4em;line-height:", ";font-size:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], paddingVertical, paddingHorizontal, lineHeight, fontSize, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
705
704
  };
706
705
  const StyledFileUpload = styled.div.attrs({
707
- 'data-garden-id': COMPONENT_ID$n,
708
- 'data-garden-version': '9.0.0-next.2'
706
+ 'data-garden-id': COMPONENT_ID$j,
707
+ 'data-garden-version': '9.0.0-next.4'
709
708
  }).withConfig({
710
709
  displayName: "StyledFileUpload",
711
710
  componentId: "sc-1rodjgn-0"
712
- })(["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 => retrieveComponentStyles(COMPONENT_ID$n, props));
711
+ })(["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 => retrieveComponentStyles(COMPONENT_ID$j, props));
713
712
  StyledFileUpload.defaultProps = {
714
713
  theme: DEFAULT_THEME
715
714
  };
716
715
 
717
- const COMPONENT_ID$m = 'forms.file.close';
716
+ const COMPONENT_ID$i = 'forms.file.close';
718
717
  const StyledFileClose = styled.button.attrs({
719
- 'data-garden-id': COMPONENT_ID$m,
720
- 'data-garden-version': '9.0.0-next.2'
718
+ 'data-garden-id': COMPONENT_ID$i,
719
+ 'data-garden-version': '9.0.0-next.4'
721
720
  }).withConfig({
722
721
  displayName: "StyledFileClose",
723
722
  componentId: "sc-1m31jbf-0"
724
- })(["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 => props.theme.colors.foreground, props => retrieveComponentStyles(COMPONENT_ID$m, props));
723
+ })(["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 => props.theme.colors.foreground, props => retrieveComponentStyles(COMPONENT_ID$i, props));
725
724
  StyledFileClose.defaultProps = {
726
725
  theme: DEFAULT_THEME
727
726
  };
728
727
 
729
- const COMPONENT_ID$l = 'forms.file';
730
- const colorStyles$6 = props => {
728
+ const COMPONENT_ID$h = 'forms.file';
729
+ const colorStyles$4 = props => {
731
730
  let borderColor;
732
731
  let focusBorderColor;
733
732
  let foregroundColor;
@@ -753,7 +752,7 @@ const colorStyles$6 = props => {
753
752
  }
754
753
  }));
755
754
  };
756
- const sizeStyles$a = props => {
755
+ const sizeStyles$7 = props => {
757
756
  const size = `${props.theme.space.base * (props.isCompact ? 7 : 10)}px`;
758
757
  const spacing = `${props.theme.space.base * (props.isCompact ? 2 : 3)}px`;
759
758
  const fontSize = props.theme.fontSizes.md;
@@ -779,29 +778,29 @@ const sizeStyles$a = props => {
779
778
  `;
780
779
  };
781
780
  const StyledFile = styled.div.attrs({
782
- 'data-garden-id': COMPONENT_ID$l,
783
- 'data-garden-version': '9.0.0-next.2'
781
+ 'data-garden-id': COMPONENT_ID$h,
782
+ 'data-garden-version': '9.0.0-next.4'
784
783
  }).withConfig({
785
784
  displayName: "StyledFile",
786
785
  componentId: "sc-195lzp1-0"
787
- })(["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 => retrieveComponentStyles(COMPONENT_ID$l, props));
786
+ })(["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 => retrieveComponentStyles(COMPONENT_ID$h, props));
788
787
  StyledFile.defaultProps = {
789
788
  theme: DEFAULT_THEME
790
789
  };
791
790
 
792
- const COMPONENT_ID$k = 'forms.file.delete';
791
+ const COMPONENT_ID$g = 'forms.file.delete';
793
792
  const StyledFileDelete = styled(StyledFileClose).attrs({
794
- 'data-garden-id': COMPONENT_ID$k,
795
- 'data-garden-version': '9.0.0-next.2'
793
+ 'data-garden-id': COMPONENT_ID$g,
794
+ 'data-garden-version': '9.0.0-next.4'
796
795
  }).withConfig({
797
796
  displayName: "StyledFileDelete",
798
797
  componentId: "sc-a8nnhx-0"
799
- })(["color:", ";", ";"], props => getColor('dangerHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$k, props));
798
+ })(["color:", ";", ";"], props => getColor('dangerHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$g, props));
800
799
  StyledFileDelete.defaultProps = {
801
800
  theme: DEFAULT_THEME
802
801
  };
803
802
 
804
- const COMPONENT_ID$j = 'forms.file.icon';
803
+ const COMPONENT_ID$f = 'forms.file.icon';
805
804
  const StyledFileIcon = styled(_ref => {
806
805
  let {
807
806
  children,
@@ -811,36 +810,36 @@ const StyledFileIcon = styled(_ref => {
811
810
  } = _ref;
812
811
  return React__default.cloneElement(Children.only(children), props);
813
812
  }).attrs({
814
- 'data-garden-id': COMPONENT_ID$j,
815
- 'data-garden-version': '9.0.0-next.2'
813
+ 'data-garden-id': COMPONENT_ID$f,
814
+ 'data-garden-version': '9.0.0-next.4'
816
815
  }).withConfig({
817
816
  displayName: "StyledFileIcon",
818
817
  componentId: "sc-7b3q0c-0"
819
- })(["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 => retrieveComponentStyles(COMPONENT_ID$j, props));
818
+ })(["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 => retrieveComponentStyles(COMPONENT_ID$f, props));
820
819
  StyledFileIcon.defaultProps = {
821
820
  theme: DEFAULT_THEME
822
821
  };
823
822
 
824
- const COMPONENT_ID$i = 'forms.file_list';
823
+ const COMPONENT_ID$e = 'forms.file_list';
825
824
  const StyledFileList = styled.ul.attrs({
826
- 'data-garden-id': COMPONENT_ID$i,
827
- 'data-garden-version': '9.0.0-next.2'
825
+ 'data-garden-id': COMPONENT_ID$e,
826
+ 'data-garden-version': '9.0.0-next.4'
828
827
  }).withConfig({
829
828
  displayName: "StyledFileList",
830
829
  componentId: "sc-gbahjg-0"
831
- })(["margin:0;padding:0;list-style:none;", ";"], props => retrieveComponentStyles(COMPONENT_ID$i, props));
830
+ })(["margin:0;padding:0;list-style:none;", ";"], props => retrieveComponentStyles(COMPONENT_ID$e, props));
832
831
  StyledFileList.defaultProps = {
833
832
  theme: DEFAULT_THEME
834
833
  };
835
834
 
836
- const COMPONENT_ID$h = 'forms.file_list.item';
835
+ const COMPONENT_ID$d = 'forms.file_list.item';
837
836
  const StyledFileListItem = styled.li.attrs({
838
- 'data-garden-id': COMPONENT_ID$h,
839
- 'data-garden-version': '9.0.0-next.2'
837
+ 'data-garden-id': COMPONENT_ID$d,
838
+ 'data-garden-version': '9.0.0-next.4'
840
839
  }).withConfig({
841
840
  displayName: "StyledFileListItem",
842
841
  componentId: "sc-1ova3lo-0"
843
- })(["&:not(:first-child),", " ~ ", " > &:first-child{margin-top:", "px;}", ";"], StyledFileUpload, StyledFileList, props => props.theme.space.base * 2, props => retrieveComponentStyles(COMPONENT_ID$h, props));
842
+ })(["&:not(:first-child),", " ~ ", " > &:first-child{margin-top:", "px;}", ";"], StyledFileUpload, StyledFileList, props => props.theme.space.base * 2, props => retrieveComponentStyles(COMPONENT_ID$d, props));
844
843
  StyledFileListItem.defaultProps = {
845
844
  theme: DEFAULT_THEME
846
845
  };
@@ -863,56 +862,56 @@ var SvgCircleSmFill$1 = function SvgCircleSmFill(props) {
863
862
  })));
864
863
  };
865
864
 
866
- const COMPONENT_ID$g = 'forms.radio_svg';
865
+ const COMPONENT_ID$c = 'forms.radio_svg';
867
866
  const StyledRadioSvg = styled(SvgCircleSmFill$1).attrs({
868
- 'data-garden-id': COMPONENT_ID$g,
869
- 'data-garden-version': '9.0.0-next.2'
867
+ 'data-garden-id': COMPONENT_ID$c,
868
+ 'data-garden-version': '9.0.0-next.4'
870
869
  }).withConfig({
871
870
  displayName: "StyledRadioSvg",
872
871
  componentId: "sc-1r1qtr1-0"
873
- })(["transition:opacity 0.25s ease-in-out;opacity:0;", ":checked ~ ", " > &{opacity:1;}", ";"], StyledRadioInput, StyledRadioLabel, props => retrieveComponentStyles(COMPONENT_ID$g, props));
872
+ })(["transition:opacity 0.25s ease-in-out;opacity:0;", ":checked ~ ", " > &{opacity:1;}", ";"], StyledRadioInput, StyledRadioLabel, props => retrieveComponentStyles(COMPONENT_ID$c, props));
874
873
  StyledRadioSvg.defaultProps = {
875
874
  theme: DEFAULT_THEME
876
875
  };
877
876
 
878
- const COMPONENT_ID$f = 'forms.toggle_label';
879
- const sizeStyles$9 = props => {
877
+ const COMPONENT_ID$b = 'forms.toggle_label';
878
+ const sizeStyles$6 = props => {
880
879
  const size = props.theme.space.base * 10;
881
880
  const padding = size + props.theme.space.base * 2;
882
881
  return css(["padding-", ":", "px;&[hidden]{padding-", ":", "px;}"], props.theme.rtl ? 'right' : 'left', padding, props.theme.rtl ? 'right' : 'left', size);
883
882
  };
884
883
  const StyledToggleLabel = styled(StyledCheckLabel).attrs({
885
- 'data-garden-id': COMPONENT_ID$f,
886
- 'data-garden-version': '9.0.0-next.2'
884
+ 'data-garden-id': COMPONENT_ID$b,
885
+ 'data-garden-version': '9.0.0-next.4'
887
886
  }).withConfig({
888
887
  displayName: "StyledToggleLabel",
889
888
  componentId: "sc-e0asdk-0"
890
- })(["", ";", ";"], props => sizeStyles$9(props), props => retrieveComponentStyles(COMPONENT_ID$f, props));
889
+ })(["", ";", ";"], props => sizeStyles$6(props), props => retrieveComponentStyles(COMPONENT_ID$b, props));
891
890
  StyledToggleLabel.defaultProps = {
892
891
  theme: DEFAULT_THEME
893
892
  };
894
893
 
895
- const COMPONENT_ID$e = 'forms.toggle_hint';
894
+ const COMPONENT_ID$a = 'forms.toggle_hint';
896
895
  const StyledToggleHint = styled(StyledHint).attrs({
897
- 'data-garden-id': COMPONENT_ID$e,
898
- 'data-garden-version': '9.0.0-next.2'
896
+ 'data-garden-id': COMPONENT_ID$a,
897
+ 'data-garden-version': '9.0.0-next.4'
899
898
  }).withConfig({
900
899
  displayName: "StyledToggleHint",
901
900
  componentId: "sc-nziggu-0"
902
- })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), props => retrieveComponentStyles(COMPONENT_ID$e, props));
901
+ })(["padding-", ":", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), props => retrieveComponentStyles(COMPONENT_ID$a, props));
903
902
  StyledToggleHint.defaultProps = {
904
903
  theme: DEFAULT_THEME
905
904
  };
906
905
 
907
- const COMPONENT_ID$d = 'forms.toggle';
908
- const colorStyles$5 = props => {
906
+ const COMPONENT_ID$9 = 'forms.toggle';
907
+ const colorStyles$3 = props => {
909
908
  const SHADE = 600;
910
909
  const backgroundColor = getColor('neutralHue', SHADE - 100, props.theme);
911
910
  const hoverBackgroundColor = getColor('neutralHue', SHADE, props.theme);
912
911
  const activeBackgroundColor = getColor('neutralHue', SHADE + 100, props.theme);
913
912
  return css(["& ~ ", "::before{background-color:", ";}&:enabled ~ ", ":hover::before{background-color:", ";}&:enabled ~ ", ":active::before{background-color:", ";}"], StyledToggleLabel, backgroundColor, StyledToggleLabel, hoverBackgroundColor, StyledToggleLabel, activeBackgroundColor);
914
913
  };
915
- const sizeStyles$8 = props => {
914
+ const sizeStyles$5 = props => {
916
915
  const height = `${props.theme.space.base * 5}px`;
917
916
  const width = `${props.theme.space.base * 10}px`;
918
917
  const iconSize = props.theme.iconSizes.md;
@@ -921,24 +920,24 @@ const sizeStyles$8 = props => {
921
920
  return 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);
922
921
  };
923
922
  const StyledToggleInput = styled(StyledCheckInput).attrs({
924
- 'data-garden-id': COMPONENT_ID$d,
925
- 'data-garden-version': '9.0.0-next.2'
923
+ 'data-garden-id': COMPONENT_ID$9,
924
+ 'data-garden-version': '9.0.0-next.4'
926
925
  }).withConfig({
927
926
  displayName: "StyledToggleInput",
928
927
  componentId: "sc-sgp47s-0"
929
- })(["& ~ ", "::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$8(props), props => colorStyles$5(props), props => retrieveComponentStyles(COMPONENT_ID$d, props));
928
+ })(["& ~ ", "::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 => retrieveComponentStyles(COMPONENT_ID$9, props));
930
929
  StyledToggleInput.defaultProps = {
931
930
  theme: DEFAULT_THEME
932
931
  };
933
932
 
934
- const COMPONENT_ID$c = 'forms.toggle_message';
933
+ const COMPONENT_ID$8 = 'forms.toggle_message';
935
934
  const StyledToggleMessage = styled(StyledMessage).attrs({
936
- 'data-garden-id': COMPONENT_ID$c,
937
- 'data-garden-version': '9.0.0-next.2'
935
+ 'data-garden-id': COMPONENT_ID$8,
936
+ 'data-garden-version': '9.0.0-next.4'
938
937
  }).withConfig({
939
938
  displayName: "StyledToggleMessage",
940
939
  componentId: "sc-13vuvl1-0"
941
- })(["padding-", ":", ";& ", "{", ":", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 10px - ${props.theme.iconSizes.md}`), props => retrieveComponentStyles(COMPONENT_ID$c, props));
940
+ })(["padding-", ":", ";& ", "{", ":", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 12px`), StyledMessageIcon, props => props.theme.rtl ? 'right' : 'left', props => math(`${props.theme.space.base} * 10px - ${props.theme.iconSizes.md}`), props => retrieveComponentStyles(COMPONENT_ID$8, props));
942
941
  StyledToggleMessage.defaultProps = {
943
942
  theme: DEFAULT_THEME
944
943
  };
@@ -961,45 +960,45 @@ var SvgCircleSmFill = function SvgCircleSmFill(props) {
961
960
  })));
962
961
  };
963
962
 
964
- const COMPONENT_ID$b = 'forms.toggle_svg';
963
+ const COMPONENT_ID$7 = 'forms.toggle_svg';
965
964
  const StyledToggleSvg = styled(SvgCircleSmFill).attrs({
966
- 'data-garden-id': COMPONENT_ID$b,
967
- 'data-garden-version': '9.0.0-next.2'
965
+ 'data-garden-id': COMPONENT_ID$7,
966
+ 'data-garden-version': '9.0.0-next.4'
968
967
  }).withConfig({
969
968
  displayName: "StyledToggleSvg",
970
969
  componentId: "sc-162xbyx-0"
971
- })(["transition:all 0.15s ease-in-out;", ";"], props => retrieveComponentStyles(COMPONENT_ID$b, props));
970
+ })(["transition:all 0.15s ease-in-out;", ";"], props => retrieveComponentStyles(COMPONENT_ID$7, props));
972
971
  StyledToggleSvg.defaultProps = {
973
972
  theme: DEFAULT_THEME
974
973
  };
975
974
 
976
- const COMPONENT_ID$a = 'forms.select';
977
- const colorStyles$4 = props => {
975
+ const COMPONENT_ID$6 = 'forms.select';
976
+ const colorStyles$2 = props => {
978
977
  const color = getColor('neutralHue', 700, props.theme);
979
978
  return css(["&:hover + ", ",&:focus + ", ",&:focus-visible + ", ",&[data-garden-focus-visible='true'] + ", "{color:", ";}"], StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, StyledTextMediaFigure, color);
980
979
  };
981
- const sizeStyles$7 = props => {
980
+ const sizeStyles$4 = props => {
982
981
  const padding = math(`${props.theme.iconSizes.md} + ${props.theme.space.base * 5}`);
983
982
  const iconVerticalPosition = `${props.theme.space.base * (props.isCompact ? 1.5 : 2.5) + 1}px`;
984
983
  const iconHorizontalPosition = `${props.theme.space.base * 3}px`;
985
984
  return css(["padding-", ":", ";& + ", "{top:", ";", ":", ";}"], props.theme.rtl ? 'left' : 'right', !props.isBare && padding, StyledTextMediaFigure, iconVerticalPosition, props.theme.rtl ? 'left' : 'right', iconHorizontalPosition);
986
985
  };
987
986
  const StyledSelect = styled(StyledTextInput).attrs({
988
- 'data-garden-id': COMPONENT_ID$a,
989
- 'data-garden-version': '9.0.0-next.2',
987
+ 'data-garden-id': COMPONENT_ID$6,
988
+ 'data-garden-version': '9.0.0-next.4',
990
989
  as: 'select'
991
990
  }).withConfig({
992
991
  displayName: "StyledSelect",
993
992
  componentId: "sc-8xdxpt-0"
994
- })(["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$7(props), props => colorStyles$4(props), props => props.theme.colors.foreground, StyledTextMediaFigure);
993
+ })(["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 => props.theme.colors.foreground, StyledTextMediaFigure);
995
994
  StyledSelect.defaultProps = {
996
995
  theme: DEFAULT_THEME
997
996
  };
998
997
 
999
- const COMPONENT_ID$9 = 'forms.select_wrapper';
998
+ const COMPONENT_ID$5 = 'forms.select_wrapper';
1000
999
  const StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
1001
- 'data-garden-id': COMPONENT_ID$9,
1002
- 'data-garden-version': '9.0.0-next.2'
1000
+ 'data-garden-id': COMPONENT_ID$5,
1001
+ 'data-garden-version': '9.0.0-next.4'
1003
1002
  }).withConfig({
1004
1003
  displayName: "StyledSelectWrapper",
1005
1004
  componentId: "sc-i7b6hw-0"
@@ -1008,7 +1007,7 @@ StyledSelectWrapper.defaultProps = {
1008
1007
  theme: DEFAULT_THEME
1009
1008
  };
1010
1009
 
1011
- const COMPONENT_ID$8 = 'forms.range';
1010
+ const COMPONENT_ID$4 = 'forms.range';
1012
1011
  const thumbStyles = function (styles) {
1013
1012
  let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1014
1013
  return `
@@ -1053,7 +1052,7 @@ const trackLowerStyles = function (styles) {
1053
1052
  }
1054
1053
  `;
1055
1054
  };
1056
- const colorStyles$3 = props => {
1055
+ const colorStyles$1 = props => {
1057
1056
  const SHADE = 600;
1058
1057
  const thumbBackgroundColor = getColor('primaryHue', SHADE, props.theme);
1059
1058
  const thumbBorderColor = thumbBackgroundColor;
@@ -1102,7 +1101,7 @@ const colorStyles$3 = props => {
1102
1101
  background-color: ${trackDisabledLowerBackgroundColor};
1103
1102
  `, ':disabled'));
1104
1103
  };
1105
- const sizeStyles$6 = props => {
1104
+ const sizeStyles$3 = props => {
1106
1105
  const thumbSize = math(`${props.theme.space.base} * 5px`);
1107
1106
  const trackHeight = math(`${props.theme.space.base} * 1.5px`);
1108
1107
  const trackBorderRadius = trackHeight;
@@ -1123,8 +1122,8 @@ const sizeStyles$6 = props => {
1123
1122
  `));
1124
1123
  };
1125
1124
  const StyledRangeInput = styled.input.attrs(props => ({
1126
- 'data-garden-id': COMPONENT_ID$8,
1127
- 'data-garden-version': '9.0.0-next.2',
1125
+ 'data-garden-id': COMPONENT_ID$4,
1126
+ 'data-garden-version': '9.0.0-next.4',
1128
1127
  type: 'range',
1129
1128
  style: {
1130
1129
  backgroundSize: props.hasLowerTrack && props.backgroundSize
@@ -1141,113 +1140,19 @@ const StyledRangeInput = styled.input.attrs(props => ({
1141
1140
  width: 99.8%; /* fix for IE which cuts off the upper track's border radius */
1142
1141
  color: transparent; /* reset for IE */
1143
1142
  box-sizing: border-box; /* reset for IE */
1144
- `), props => sizeStyles$6(props), props => thumbStyles(`
1143
+ `), props => sizeStyles$3(props), props => thumbStyles(`
1145
1144
  appearance: none;
1146
1145
  transition: box-shadow .1s ease-in-out;
1147
1146
  border: ${props.theme.borders.md};
1148
1147
  border-radius: 100%;
1149
1148
  box-sizing: border-box;
1150
- `), props => colorStyles$3(props), props => retrieveComponentStyles(COMPONENT_ID$8, props));
1149
+ `), props => colorStyles$1(props), props => retrieveComponentStyles(COMPONENT_ID$4, props));
1151
1150
  StyledRangeInput.defaultProps = {
1152
1151
  backgroundSize: '0%',
1153
1152
  hasLowerTrack: true,
1154
1153
  theme: DEFAULT_THEME
1155
1154
  };
1156
1155
 
1157
- const COMPONENT_ID$7 = 'forms.slider';
1158
- const StyledSlider = styled.div.attrs({
1159
- 'data-garden-id': COMPONENT_ID$7,
1160
- 'data-garden-version': '9.0.0-next.2'
1161
- }).withConfig({
1162
- displayName: "StyledSlider",
1163
- componentId: "sc-1di437a-0"
1164
- })(["display:block;position:relative;z-index:0;cursor:pointer;height:", ";&[aria-disabled='true']{cursor:default;}", ":not([hidden]) + &,", " + &,", " + &,& + ", ",& + ", "{margin-top:", ";}", ";"], props => math(`(${props.theme.space.base} * 5px) + (${props.theme.shadowWidths.md} * 2)`), StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, props => math(`${props.theme.space.base} * 2px`), props => retrieveComponentStyles(COMPONENT_ID$7, props));
1165
- StyledSlider.defaultProps = {
1166
- theme: DEFAULT_THEME
1167
- };
1168
-
1169
- const COMPONENT_ID$6 = 'forms.slider_thumb';
1170
- const colorStyles$2 = props => {
1171
- const SHADE = 600;
1172
- const backgroundColor = getColor('primaryHue', SHADE, props.theme);
1173
- const borderColor = backgroundColor;
1174
- const boxShadow = props.theme.shadows.lg(math(`${props.theme.space.base} * 1px`), math(`${props.theme.space.base} * 2px`), getColor('neutralHue', SHADE + 200, props.theme, 0.24));
1175
- const activeBackgroundColor = getColor('primaryHue', SHADE + 100, props.theme);
1176
- const activeBorderColor = borderColor;
1177
- const hoverBackgroundColor = activeBackgroundColor;
1178
- const hoverBorderColor = hoverBackgroundColor;
1179
- const disabledBackgroundColor = getColor('neutralHue', SHADE - 300, props.theme);
1180
- const disabledBorderColor = disabledBackgroundColor;
1181
- return css(["border-color:", ";box-shadow:", ";background-color:", ";&:hover,&[data-garden-hover='true']{border-color:", ";background-color:", ";}", " &:active,&[data-garden-active='true']{border-color:", ";background-color:", ";}&[aria-disabled='true']{border-color:", ";box-shadow:none;background-color:", ";}"], borderColor, boxShadow, backgroundColor, hoverBorderColor, hoverBackgroundColor, focusStyles({
1182
- theme: props.theme
1183
- }), activeBorderColor, activeBackgroundColor, disabledBorderColor, disabledBackgroundColor);
1184
- };
1185
- const sizeStyles$5 = props => {
1186
- const size = math(`${props.theme.space.base} * 5px`);
1187
- const marginTop = math(`${size} / -2`);
1188
- return css(["margin-top:", ";width:", ";height:", ";"], marginTop, size, size);
1189
- };
1190
- const StyledSliderThumb = styled.div.attrs(props => ({
1191
- 'data-garden-id': COMPONENT_ID$6,
1192
- 'data-garden-version': '9.0.0-next.2',
1193
- 'aria-disabled': props.isDisabled
1194
- })).withConfig({
1195
- displayName: "StyledSliderThumb",
1196
- componentId: "sc-yspbwa-0"
1197
- })(["appearance:none;position:absolute;top:50%;", ":", ";transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out;z-index:1;border:", ";border-radius:100%;cursor:inherit;box-sizing:border-box;font-size:0;", ";", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => math(`${props.position} * 1px`), props => props.theme.borders.md, props => sizeStyles$5(props), props => colorStyles$2(props), props => retrieveComponentStyles(COMPONENT_ID$6, props));
1198
- StyledSliderThumb.defaultProps = {
1199
- position: 0,
1200
- theme: DEFAULT_THEME
1201
- };
1202
-
1203
- const COMPONENT_ID$5 = 'forms.slider_track';
1204
- const colorStyles$1 = props => {
1205
- const SHADE = 600;
1206
- const backgroundColor = getColor('neutralHue', SHADE - 400, props.theme);
1207
- const backgroundImageColor = getColor('primaryHue', SHADE, props.theme);
1208
- const disabledBackgroundColor = getColor('neutralHue', SHADE - 300, props.theme);
1209
- return css(["background-color:", ";background-image:linear-gradient(", ",", ");&[aria-disabled='true']{background-image:linear-gradient(", ",", ");}"], backgroundColor, backgroundImageColor, backgroundImageColor, disabledBackgroundColor, disabledBackgroundColor);
1210
- };
1211
- const sizeStyles$4 = props => {
1212
- const height = math(`${props.theme.space.base} * 1.5px`);
1213
- const backgroundPosition = math(`${props.backgroundPosition} * 1px`);
1214
- const backgroundSize = math(`${props.backgroundSize} * 1px`);
1215
- const borderRadius = height;
1216
- const marginTop = math(`${height} / -2`);
1217
- const padding = math(`${props.theme.space.base} * 2.5px`);
1218
- return css(["margin-top:", ";border-radius:", ";background-position:", ";background-size:", ";padding:0 ", ";"], marginTop, borderRadius, backgroundPosition, backgroundSize, padding);
1219
- };
1220
- const StyledSliderTrack = styled.div.attrs(props => ({
1221
- 'data-garden-id': COMPONENT_ID$5,
1222
- 'data-garden-version': '9.0.0-next.2',
1223
- 'aria-disabled': props.isDisabled
1224
- })).withConfig({
1225
- displayName: "StyledSliderTrack",
1226
- componentId: "sc-aw5m6g-0"
1227
- })(["position:absolute;top:50%;box-sizing:border-box;background-origin:content-box;background-repeat:repeat-y;width:100%;", ";", ";", ";"], props => sizeStyles$4(props), props => colorStyles$1(props), props => retrieveComponentStyles(COMPONENT_ID$5, props));
1228
- StyledSliderTrack.defaultProps = {
1229
- backgroundSize: 0,
1230
- backgroundPosition: 0,
1231
- theme: DEFAULT_THEME
1232
- };
1233
-
1234
- const COMPONENT_ID$4 = 'forms.slider_track_rail';
1235
- const sizeStyles$3 = props => {
1236
- const height = math(`${props.theme.space.base} * 1.5px`);
1237
- const margin = math(`${props.theme.space.base} * 2.5px`);
1238
- return css(["margin:0 ", " 0 ", ";height:", ";"], props.theme.rtl ? `-${margin}` : margin, props.theme.rtl ? margin : `-${margin}`, height);
1239
- };
1240
- const StyledSliderTrackRail = styled.div.attrs({
1241
- 'data-garden-id': COMPONENT_ID$4,
1242
- 'data-garden-version': '9.0.0-next.2'
1243
- }).withConfig({
1244
- displayName: "StyledSliderTrackRail",
1245
- componentId: "sc-1o5owbd-0"
1246
- })(["position:relative;", ";", ";"], props => sizeStyles$3(props), props => retrieveComponentStyles(COMPONENT_ID$4, props));
1247
- StyledSliderTrackRail.defaultProps = {
1248
- theme: DEFAULT_THEME
1249
- };
1250
-
1251
1156
  const COMPONENT_ID$3 = 'forms.tile_icon';
1252
1157
  const sizeStyles$2 = props => {
1253
1158
  const iconSize = math(`${props.theme.iconSizes.md} * 2`);
@@ -1266,7 +1171,7 @@ const sizeStyles$2 = props => {
1266
1171
  };
1267
1172
  const StyledTileIcon = styled.span.attrs({
1268
1173
  'data-garden-id': COMPONENT_ID$3,
1269
- 'data-garden-version': '9.0.0-next.2'
1174
+ 'data-garden-version': '9.0.0-next.4'
1270
1175
  }).withConfig({
1271
1176
  displayName: "StyledTileIcon",
1272
1177
  componentId: "sc-1wazhg4-0"
@@ -1307,7 +1212,7 @@ const colorStyles = props => {
1307
1212
  };
1308
1213
  const StyledTile = styled.label.attrs(props => ({
1309
1214
  'data-garden-id': COMPONENT_ID$2,
1310
- 'data-garden-version': '9.0.0-next.2',
1215
+ 'data-garden-version': '9.0.0-next.4',
1311
1216
  'data-garden-selected': props.isSelected
1312
1217
  })).withConfig({
1313
1218
  displayName: "StyledTile",
@@ -1331,7 +1236,7 @@ const sizeStyles$1 = props => {
1331
1236
  };
1332
1237
  const StyledTileDescription = styled.span.attrs({
1333
1238
  'data-garden-id': COMPONENT_ID$1,
1334
- 'data-garden-version': '9.0.0-next.2'
1239
+ 'data-garden-version': '9.0.0-next.4'
1335
1240
  }).withConfig({
1336
1241
  displayName: "StyledTileDescription",
1337
1242
  componentId: "sc-xfuu7u-0"
@@ -1364,7 +1269,7 @@ const sizeStyles = props => {
1364
1269
  };
1365
1270
  const StyledTileLabel = styled.span.attrs({
1366
1271
  'data-garden-id': COMPONENT_ID,
1367
- 'data-garden-version': '9.0.0-next.2'
1272
+ 'data-garden-version': '9.0.0-next.4'
1368
1273
  }).withConfig({
1369
1274
  displayName: "StyledTileLabel",
1370
1275
  componentId: "sc-1mypv27-0"
@@ -1378,7 +1283,6 @@ const Field = React__default.forwardRef((props, ref) => {
1378
1283
  const [hasMessage, setHasMessage] = useState(false);
1379
1284
  const [isLabelActive, setIsLabelActive] = useState(false);
1380
1285
  const [isLabelHovered, setIsLabelHovered] = useState(false);
1381
- const multiThumbRangeRef = useRef(null);
1382
1286
  const {
1383
1287
  getInputProps,
1384
1288
  getMessageProps,
@@ -1399,8 +1303,7 @@ const Field = React__default.forwardRef((props, ref) => {
1399
1303
  hasHint,
1400
1304
  setHasHint,
1401
1305
  hasMessage,
1402
- setHasMessage,
1403
- multiThumbRangeRef
1306
+ setHasMessage
1404
1307
  }), [propGetters, getInputProps, getMessageProps, isLabelActive, isLabelHovered, hasHint, hasMessage]);
1405
1308
  return React__default.createElement(FieldContext.Provider, {
1406
1309
  value: fieldProps
@@ -1494,8 +1397,7 @@ const Label$1 = React__default.forwardRef((props, ref) => {
1494
1397
  if (type === undefined) {
1495
1398
  const {
1496
1399
  setIsLabelActive,
1497
- setIsLabelHovered,
1498
- multiThumbRangeRef
1400
+ setIsLabelHovered
1499
1401
  } = fieldContext;
1500
1402
  combinedProps = {
1501
1403
  ...combinedProps,
@@ -1510,9 +1412,6 @@ const Label$1 = React__default.forwardRef((props, ref) => {
1510
1412
  }),
1511
1413
  onMouseLeave: composeEventHandlers(props.onMouseLeave, () => {
1512
1414
  setIsLabelHovered(false);
1513
- }),
1514
- onClick: composeEventHandlers(props.onClick, () => {
1515
- multiThumbRangeRef.current && multiThumbRangeRef.current.focus();
1516
1415
  })
1517
1416
  };
1518
1417
  }
@@ -2024,110 +1923,6 @@ Select.propTypes = {
2024
1923
  };
2025
1924
  Select.displayName = 'Select';
2026
1925
 
2027
- const MIN = 0;
2028
- const MAX = 100;
2029
- const MultiThumbRange = forwardRef((_ref, ref) => {
2030
- let {
2031
- min = MIN,
2032
- max = MAX,
2033
- minValue,
2034
- maxValue,
2035
- disabled,
2036
- step,
2037
- jump,
2038
- onChange,
2039
- onMouseDown,
2040
- ...props
2041
- } = _ref;
2042
- const theme = useContext(ThemeContext);
2043
- const environment = useDocument(theme);
2044
- const trackRailRef = useRef(null);
2045
- const minThumbRef = useRef(null);
2046
- const maxThumbRef = useRef(null);
2047
- const {
2048
- getTrackProps,
2049
- getMinThumbProps,
2050
- getMaxThumbProps,
2051
- trackRect,
2052
- minValue: updatedMinValue,
2053
- maxValue: updatedMaxValue
2054
- } = useSlider({
2055
- trackRef: trackRailRef,
2056
- minThumbRef,
2057
- maxThumbRef,
2058
- min,
2059
- max,
2060
- minValue,
2061
- maxValue,
2062
- onChange,
2063
- step,
2064
- jump,
2065
- disabled,
2066
- rtl: theme.rtl,
2067
- environment
2068
- });
2069
- const {
2070
- onMouseDown: onSliderMouseDown,
2071
- ...trackProps
2072
- } = getTrackProps({
2073
- onMouseDown
2074
- });
2075
- const fieldContext = useFieldContext();
2076
- const {
2077
- isLabelHovered,
2078
- isLabelActive,
2079
- multiThumbRangeRef
2080
- } = fieldContext || {};
2081
- useEffect(() => {
2082
- if (multiThumbRangeRef) {
2083
- multiThumbRangeRef.current = minThumbRef.current;
2084
- }
2085
- }, [multiThumbRangeRef]);
2086
- const minPosition = (updatedMinValue - min) / (max - min) * trackRect.width;
2087
- const maxPosition = (updatedMaxValue - min) / (max - min) * trackRect.width;
2088
- const sliderBackgroundSize = Math.abs(maxPosition) - Math.abs(minPosition);
2089
- return React__default.createElement(StyledSlider, _extends$t({
2090
- ref: ref,
2091
- onMouseDown: onSliderMouseDown
2092
- }, props), React__default.createElement(StyledSliderTrack, {
2093
- backgroundSize: sliderBackgroundSize,
2094
- backgroundPosition: theme.rtl ? trackRect.width - maxPosition : minPosition,
2095
- isDisabled: disabled
2096
- }, React__default.createElement(StyledSliderTrackRail, _extends$t({}, trackProps, {
2097
- ref: trackRailRef
2098
- }), React__default.createElement(StyledSliderThumb, _extends$t({}, getMinThumbProps({
2099
- 'aria-label': updatedMinValue
2100
- }), {
2101
- isDisabled: disabled,
2102
- position: minPosition,
2103
- ref: minThumbRef,
2104
- "data-garden-active": isLabelActive,
2105
- "data-garden-hover": isLabelHovered
2106
- })), React__default.createElement(StyledSliderThumb, _extends$t({}, getMaxThumbProps({
2107
- 'aria-label': updatedMaxValue
2108
- }), {
2109
- isDisabled: disabled,
2110
- position: maxPosition,
2111
- ref: maxThumbRef
2112
- })))));
2113
- });
2114
- MultiThumbRange.displayName = 'MultiThumbRange';
2115
- MultiThumbRange.propTypes = {
2116
- min: PropTypes.number,
2117
- max: PropTypes.number,
2118
- minValue: PropTypes.number,
2119
- maxValue: PropTypes.number,
2120
- step: PropTypes.number,
2121
- jump: PropTypes.number,
2122
- disabled: PropTypes.bool,
2123
- onChange: PropTypes.func
2124
- };
2125
- MultiThumbRange.defaultProps = {
2126
- min: MIN,
2127
- max: MAX,
2128
- step: 1
2129
- };
2130
-
2131
1926
  const TilesContext = createContext(undefined);
2132
1927
  const useTilesContext = () => {
2133
1928
  return useContext(TilesContext);
@@ -2918,4 +2713,4 @@ MediaInput.propTypes = {
2918
2713
  };
2919
2714
  MediaInput.displayName = 'MediaInput';
2920
2715
 
2921
- export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, MultiThumbRange, Radio, Range, Select, Textarea, Tiles, Toggle, VALIDATION };
2716
+ export { Checkbox, FauxInput, Field, Fieldset, File, FileList, FileUpload, Hint, Input, InputGroup, Label$1 as Label, MediaInput, Message, Radio, Range, Select, Textarea, Tiles, Toggle, VALIDATION };