@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
@@ -4,21 +4,26 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import styled from 'styled-components';
8
- import { SELECTOR_FOCUS_VISIBLE, DEFAULT_THEME } from '@zendeskgarden/react-theming';
7
+ import styled, { css } from 'styled-components';
8
+ import { SELECTOR_FOCUS_VISIBLE } from '@zendeskgarden/react-theming';
9
9
  import { StyledTextFauxInput } from '../text/StyledTextFauxInput.js';
10
10
  import { StyledSelect } from './StyledSelect.js';
11
11
 
12
12
  const COMPONENT_ID = 'forms.select_wrapper';
13
+ const sizeStyles = _ref => {
14
+ let {
15
+ theme,
16
+ $isCompact
17
+ } = _ref;
18
+ const height = `${theme.space.base * ($isCompact ? 8 : 10)}px`;
19
+ return css(["max-height:", ";"], height);
20
+ };
13
21
  const StyledSelectWrapper = styled(StyledTextFauxInput).attrs({
14
22
  'data-garden-id': COMPONENT_ID,
15
- 'data-garden-version': '9.0.0-next.9'
23
+ 'data-garden-version': '9.1.0'
16
24
  }).withConfig({
17
25
  displayName: "StyledSelectWrapper",
18
26
  componentId: "sc-i7b6hw-0"
19
- })(["position:relative;padding:0;overflow:visible;& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], StyledSelect, SELECTOR_FOCUS_VISIBLE);
20
- StyledSelectWrapper.defaultProps = {
21
- theme: DEFAULT_THEME
22
- };
27
+ })(["position:relative;padding:0;overflow:visible;", ";& > ", "{border-color:transparent;background-color:transparent;", "{box-shadow:unset;}}"], sizeStyles, StyledSelect, SELECTOR_FOCUS_VISIBLE);
23
28
 
24
29
  export { StyledSelectWrapper };
@@ -5,57 +5,62 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { SELECTOR_FOCUS_VISIBLE, retrieveComponentStyles, DEFAULT_THEME, focusStyles, getColorV8 } from '@zendeskgarden/react-theming';
8
+ import { SELECTOR_FOCUS_VISIBLE, retrieveComponentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledTextInput } from './StyledTextInput.js';
10
10
  import { StyledTextMediaFigure } from './StyledTextMediaFigure.js';
11
11
 
12
12
  const COMPONENT_ID = 'forms.faux_input';
13
- const VALIDATION_HUES = {
14
- success: 'successHue',
15
- warning: 'warningHue',
16
- error: 'dangerHue'
17
- };
18
- function getValidationHue(validation) {
19
- let defaultHue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'primaryHue';
20
- if (validation) {
21
- return VALIDATION_HUES[validation];
22
- }
23
- return defaultHue;
24
- }
25
- const colorStyles = props => {
26
- const {
13
+ const colorStyles = _ref => {
14
+ let {
27
15
  theme,
28
- validation,
29
- focusInset,
30
- isBare,
31
- isFocused
32
- } = props;
16
+ $validation,
17
+ $focusInset,
18
+ $isBare,
19
+ $isFocused
20
+ } = _ref;
21
+ let borderVariable;
22
+ let focusBorderColor;
23
+ if ($validation) {
24
+ if ($validation === 'success') {
25
+ borderVariable = 'border.successEmphasis';
26
+ } else if ($validation === 'warning') {
27
+ borderVariable = 'border.warningEmphasis';
28
+ } else if ($validation === 'error') {
29
+ borderVariable = 'border.dangerEmphasis';
30
+ }
31
+ focusBorderColor = getColor({
32
+ theme,
33
+ variable: borderVariable
34
+ });
35
+ } else {
36
+ borderVariable = 'border.primaryEmphasis';
37
+ focusBorderColor = getColor({
38
+ theme,
39
+ variable: borderVariable
40
+ });
41
+ }
33
42
  return css(["", ""], focusStyles({
34
43
  theme,
35
- inset: focusInset,
36
- condition: !isBare,
44
+ inset: $focusInset,
37
45
  color: {
38
- hue: getValidationHue(validation),
39
- shade: validation === 'warning' ? 700 : 600
46
+ variable: borderVariable
40
47
  },
41
- selector: isFocused ? '&' : '&:focus-within',
48
+ selector: $isFocused ? '&' : '&:focus-within',
42
49
  styles: {
43
- borderColor: getColorV8(getValidationHue(validation), 600, theme)
44
- }
50
+ borderColor: focusBorderColor
51
+ },
52
+ condition: !$isBare
45
53
  }));
46
54
  };
47
55
  const StyledTextFauxInput = styled(StyledTextInput).attrs(props => ({
48
56
  as: 'div',
49
- 'aria-readonly': props.isReadOnly,
50
- 'aria-disabled': props.isDisabled,
57
+ 'aria-readonly': props.$isReadOnly,
58
+ 'aria-disabled': props.$isDisabled,
51
59
  'data-garden-id': COMPONENT_ID,
52
- 'data-garden-version': '9.0.0-next.9'
60
+ 'data-garden-version': '9.1.0'
53
61
  })).withConfig({
54
62
  displayName: "StyledTextFauxInput",
55
63
  componentId: "sc-yqw7j9-0"
56
- })(["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, StyledTextInput, props => !props.mediaLayout && 'baseline', SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.mediaLayout && '0', props => retrieveComponentStyles(COMPONENT_ID, props));
57
- StyledTextFauxInput.defaultProps = {
58
- theme: DEFAULT_THEME
59
- };
64
+ })(["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, StyledTextInput, props => !props.$mediaLayout && 'baseline', SELECTOR_FOCUS_VISIBLE, StyledTextMediaFigure, props => props.$mediaLayout && '0', props => retrieveComponentStyles(COMPONENT_ID, props));
60
65
 
61
- export { StyledTextFauxInput, getValidationHue };
66
+ export { StyledTextFauxInput };
@@ -4,9 +4,12 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
+ import React__default from 'react';
8
+ import { renderToString } from 'react-dom/server';
7
9
  import styled, { css } from 'styled-components';
8
10
  import { math, em } from 'polished';
9
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
11
+ import { retrieveComponentStyles, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
12
+ import SvgChevronDownStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js';
10
13
  import { StyledHint } from '../common/StyledHint.js';
11
14
  import { StyledLabel } from '../common/StyledLabel.js';
12
15
  import { StyledMessage } from '../common/StyledMessage.js';
@@ -15,93 +18,132 @@ const COMPONENT_ID = 'forms.input';
15
18
  const isInvalid = validation => {
16
19
  return validation === 'warning' || validation === 'error';
17
20
  };
18
- const colorStyles = props => {
19
- const HUE = 'primaryHue';
20
- const SHADE = 600;
21
- const placeholderColor = getColorV8('neutralHue', SHADE - 200, props.theme);
21
+ const colorStyles = _ref => {
22
+ let {
23
+ theme,
24
+ $isBare,
25
+ $isHovered,
26
+ $focusInset,
27
+ $validation
28
+ } = _ref;
29
+ const foregroundColor = getColor({
30
+ theme,
31
+ variable: 'foreground.default'
32
+ });
33
+ const backgroundColor = $isBare ? 'transparent' : getColor({
34
+ theme,
35
+ variable: 'background.default'
36
+ });
22
37
  let borderColor;
23
38
  let hoverBorderColor;
39
+ let borderVariable;
24
40
  let focusBorderColor;
25
- let focusRingHue = HUE;
26
- let focusRingShade = SHADE;
27
- if (props.validation) {
28
- let hue = HUE;
29
- if (props.validation === 'success') {
30
- hue = 'successHue';
31
- } else if (props.validation === 'warning') {
32
- hue = 'warningHue';
33
- focusRingShade = 700;
34
- } else if (props.validation === 'error') {
35
- hue = 'dangerHue';
41
+ if ($validation) {
42
+ if ($validation === 'success') {
43
+ borderVariable = 'border.successEmphasis';
44
+ } else if ($validation === 'warning') {
45
+ borderVariable = 'border.warningEmphasis';
46
+ } else if ($validation === 'error') {
47
+ borderVariable = 'border.dangerEmphasis';
36
48
  }
37
- borderColor = getColorV8(hue, SHADE, props.theme);
49
+ borderColor = getColor({
50
+ theme,
51
+ variable: borderVariable
52
+ });
38
53
  hoverBorderColor = borderColor;
39
54
  focusBorderColor = borderColor;
40
- focusRingHue = hue;
41
55
  } else {
42
- borderColor = getColorV8('neutralHue', SHADE - 300, props.theme);
43
- hoverBorderColor = getColorV8('primaryHue', SHADE, props.theme);
56
+ borderColor = getColor({
57
+ theme,
58
+ variable: 'border.default',
59
+ dark: {
60
+ offset: -100
61
+ },
62
+ light: {
63
+ offset: 100
64
+ }
65
+ });
66
+ borderVariable = 'border.primaryEmphasis';
67
+ hoverBorderColor = getColor({
68
+ theme,
69
+ variable: borderVariable
70
+ });
44
71
  focusBorderColor = hoverBorderColor;
45
72
  }
46
- const readOnlyBackgroundColor = getColorV8('neutralHue', SHADE - 500, props.theme);
47
- const readOnlyBorderColor = getColorV8('neutralHue', SHADE - 300, props.theme);
48
- const disabledBackgroundColor = readOnlyBackgroundColor;
49
- const disabledBorderColor = getColorV8('neutralHue', SHADE - 400, props.theme);
50
- const disabledForegroundColor = getColorV8('neutralHue', SHADE - 200, props.theme);
51
- let controlledBorderColor = borderColor;
52
- if (props.isFocused) {
53
- controlledBorderColor = focusBorderColor;
54
- }
55
- if (props.isHovered) {
56
- controlledBorderColor = hoverBorderColor;
57
- }
58
- return 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' : getColorV8('background', 600 , props.theme), getColorV8('foreground', 600 , props.theme), placeholderColor, readOnlyBorderColor, !props.isBare && readOnlyBackgroundColor, hoverBorderColor, focusStyles({
59
- theme: props.theme,
60
- inset: props.focusInset,
61
- condition: !props.isBare,
73
+ const disabledBackgroundColor = $isBare ? undefined : getColor({
74
+ theme,
75
+ variable: 'background.disabled'
76
+ });
77
+ const disabledBorderColor = getColor({
78
+ theme,
79
+ variable: 'border.disabled'
80
+ });
81
+ const disabledForegroundColor = getColor({
82
+ theme,
83
+ variable: 'foreground.disabled'
84
+ });
85
+ const placeholderColor = disabledForegroundColor;
86
+ const readOnlyBackgroundColor = disabledBackgroundColor;
87
+ const calendarPickerColor = getColor({
88
+ theme,
89
+ variable: 'foreground.subtle'
90
+ });
91
+ const calendarPickerIcon = renderToString(React__default.createElement(SvgChevronDownStroke, {
92
+ color: calendarPickerColor
93
+ }));
94
+ const calendarPickerBackgroundImage = `url("data:image/svg+xml,${encodeURIComponent(calendarPickerIcon)}")`;
95
+ return 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, focusStyles({
96
+ theme,
97
+ inset: $focusInset,
62
98
  color: {
63
- hue: focusRingHue,
64
- shade: focusRingShade
99
+ variable: borderVariable
65
100
  },
66
101
  styles: {
67
102
  borderColor: focusBorderColor
68
- }
69
- }), disabledBorderColor, !props.isBare && disabledBackgroundColor, disabledForegroundColor);
103
+ },
104
+ condition: !$isBare
105
+ }), focusStyles({
106
+ theme
107
+ }), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
70
108
  };
71
- const sizeStyles = props => {
72
- const fontSize = props.theme.fontSizes.md;
73
- const paddingHorizontal = `${props.theme.space.base * 3}px`;
109
+ const sizeStyles = _ref2 => {
110
+ let {
111
+ theme,
112
+ $isBare,
113
+ $isCompact
114
+ } = _ref2;
115
+ const fontSize = theme.fontSizes.md;
116
+ const paddingHorizontal = `${theme.space.base * 3}px`;
74
117
  let height;
75
118
  let paddingVertical;
76
119
  let browseFontSize;
77
120
  let swatchHeight;
78
- if (props.isCompact) {
79
- height = `${props.theme.space.base * 8}px`;
80
- paddingVertical = `${props.theme.space.base * 1.5}px`;
81
- browseFontSize = math(`${props.theme.fontSizes.sm} - 1`);
82
- swatchHeight = `${props.theme.space.base * 6}px`;
121
+ if ($isCompact) {
122
+ height = `${theme.space.base * 8}px`;
123
+ paddingVertical = `${theme.space.base * 1.5}px`;
124
+ browseFontSize = math(`${theme.fontSizes.sm} - 1`);
125
+ swatchHeight = `${theme.space.base * 6}px`;
83
126
  } else {
84
- height = `${props.theme.space.base * 10}px`;
85
- paddingVertical = `${props.theme.space.base * 2.5}px`;
86
- browseFontSize = props.theme.fontSizes.sm;
87
- swatchHeight = `${props.theme.space.base * 7}px`;
127
+ height = `${theme.space.base * 10}px`;
128
+ paddingVertical = `${theme.space.base * 2.5}px`;
129
+ browseFontSize = theme.fontSizes.sm;
130
+ swatchHeight = `${theme.space.base * 7}px`;
88
131
  }
89
- const lineHeight = math(`${height} - (${paddingVertical} * 2) - (${props.theme.borderWidths.sm} * 2)`);
90
- const padding = props.isBare ? '0' : `${em(paddingVertical, fontSize)} ${em(paddingHorizontal, fontSize)}`;
132
+ const lineHeight = math(`${height} - (${paddingVertical} * 2) - (${theme.borderWidths.sm} * 2)`);
133
+ const padding = $isBare ? '0' : `${em(paddingVertical, fontSize)} ${em(paddingHorizontal, fontSize)}`;
91
134
  const swatchMarginVertical = math(`(${lineHeight} - ${swatchHeight}) / 2`);
92
135
  const swatchMarginHorizontal = math(`${paddingVertical} + ${swatchMarginVertical} - ${paddingHorizontal}`);
93
- 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));
136
+ const calendarPickerSize = `${theme.space.base * 5}px`;
137
+ const calendarPickerBackgroundSize = theme.iconSizes.md;
138
+ 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-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, getLineHeight(lineHeight, fontSize), fontSize, browseFontSize, height, $isCompact ? '0 2px' : '1px 3px', swatchMarginVertical, swatchMarginHorizontal, math(`${swatchMarginHorizontal} * -2`), swatchHeight, calendarPickerBackgroundSize, calendarPickerSize, calendarPickerSize, swatchMarginVertical, swatchMarginHorizontal, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, theme.space.base * ($isCompact ? 1 : 2));
94
139
  };
95
140
  const StyledTextInput = styled.input.attrs(props => ({
96
141
  'data-garden-id': COMPONENT_ID,
97
- 'data-garden-version': '9.0.0-next.9',
98
- 'aria-invalid': isInvalid(props.validation)
142
+ 'data-garden-version': '9.1.0',
143
+ 'aria-invalid': isInvalid(props.$validation)
99
144
  })).withConfig({
100
145
  displayName: "StyledTextInput",
101
- componentId: "sc-k12n8x-0"
102
- })(["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(props), props => colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
103
- StyledTextInput.defaultProps = {
104
- theme: DEFAULT_THEME
105
- };
146
+ componentId: "sc-1r6733h-0"
147
+ })(["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, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
106
148
 
107
149
  export { StyledTextInput };
@@ -5,17 +5,42 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
8
+ import { StyledBaseIcon, retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'forms.media_figure';
11
- const colorStyles = props => {
12
- let shade = 600;
13
- if (props.$isDisabled) {
14
- shade = 400;
15
- } else if (props.$isHovered || props.$isFocused) {
16
- shade = 700;
11
+ const colorStyles = _ref => {
12
+ let {
13
+ theme,
14
+ $isDisabled,
15
+ $isHovered,
16
+ $isFocused
17
+ } = _ref;
18
+ let color;
19
+ if ($isDisabled) {
20
+ color = getColor({
21
+ theme,
22
+ variable: 'foreground.disabled'
23
+ });
24
+ } else {
25
+ const options = {
26
+ theme,
27
+ variable: 'foreground.subtle'
28
+ };
29
+ if ($isHovered || $isFocused) {
30
+ color = getColor({
31
+ ...options,
32
+ dark: {
33
+ offset: -100
34
+ },
35
+ light: {
36
+ offset: 100
37
+ }
38
+ });
39
+ } else {
40
+ color = getColor(options);
41
+ }
17
42
  }
18
- return css(["color:", ";"], getColorV8('neutralHue', shade, props.theme));
43
+ return css(["color:", ";"], color);
19
44
  };
20
45
  const sizeStyles = props => {
21
46
  const size = props.theme.iconSizes.md;
@@ -31,13 +56,10 @@ const sizeStyles = props => {
31
56
  };
32
57
  const StyledTextMediaFigure = styled(StyledBaseIcon).attrs({
33
58
  'data-garden-id': COMPONENT_ID,
34
- 'data-garden-version': '9.0.0-next.9'
59
+ 'data-garden-version': '9.1.0'
35
60
  }).withConfig({
36
61
  displayName: "StyledTextMediaFigure",
37
62
  componentId: "sc-1qepknj-0"
38
- })(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => colorStyles(props), props => sizeStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
39
- StyledTextMediaFigure.defaultProps = {
40
- theme: DEFAULT_THEME
41
- };
63
+ })(["transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
42
64
 
43
65
  export { StyledTextMediaFigure };
@@ -5,20 +5,17 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledTextInput } from './StyledTextInput.js';
10
10
 
11
11
  const COMPONENT_ID = 'forms.media_input';
12
12
  const StyledTextMediaInput = styled(StyledTextInput).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.9',
15
- isBare: true
14
+ 'data-garden-version': '9.1.0',
15
+ $isBare: true
16
16
  }).withConfig({
17
17
  displayName: "StyledTextMediaInput",
18
18
  componentId: "sc-12i9xfi-0"
19
19
  })(["flex-grow:1;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
20
- StyledTextMediaInput.defaultProps = {
21
- theme: DEFAULT_THEME
22
- };
23
20
 
24
21
  export { StyledTextMediaInput };
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledTextInput } from './StyledTextInput.js';
10
10
 
11
11
  const COMPONENT_ID = 'forms.textarea';
@@ -21,13 +21,10 @@ const hiddenStyles = `
21
21
  const StyledTextarea = styled(StyledTextInput).attrs({
22
22
  as: 'textarea',
23
23
  'data-garden-id': COMPONENT_ID,
24
- 'data-garden-version': '9.0.0-next.9'
24
+ 'data-garden-version': '9.1.0'
25
25
  }).withConfig({
26
26
  displayName: "StyledTextarea",
27
27
  componentId: "sc-wxschl-0"
28
- })(["resize:", ";overflow:auto;", ";", ";"], props => props.isResizable ? 'vertical' : 'none', props => props.isHidden && hiddenStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
29
- StyledTextarea.defaultProps = {
30
- theme: DEFAULT_THEME
31
- };
28
+ })(["resize:", ";overflow:auto;", ";", ";"], props => props.$isResizable ? 'vertical' : 'none', props => props.$isHidden && hiddenStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
32
29
 
33
30
  export { StyledTextarea };
@@ -5,51 +5,107 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, focusStyles } from '@zendeskgarden/react-theming';
9
- import { StyledTileIcon } from './StyledTileIcon.js';
8
+ import { retrieveComponentStyles, getColor, focusStyles } from '@zendeskgarden/react-theming';
10
9
 
11
10
  const COMPONENT_ID = 'forms.tile';
12
- const colorStyles = props => {
13
- const SHADE = 600;
14
- const iconColor = getColorV8('neutralHue', SHADE, props.theme);
15
- const color = getColorV8('neutralHue', SHADE + 200, props.theme);
16
- const borderColor = getColorV8('neutralHue', SHADE - 300, props.theme);
17
- const hoverBackgroundColor = getColorV8('primaryHue', SHADE, props.theme, 0.08);
18
- const hoverBorderColor = getColorV8('primaryHue', SHADE, props.theme);
19
- const focusBorderColor = hoverBorderColor;
20
- const activeBackgroundColor = getColorV8('primaryHue', SHADE, props.theme, 0.2);
21
- const activeBorderColor = focusBorderColor;
22
- const disabledBackgroundColor = getColorV8('neutralHue', SHADE - 500, props.theme);
23
- const disabledBorderColor = getColorV8('neutralHue', SHADE - 400, props.theme);
24
- const disabledColor = getColorV8('neutralHue', SHADE - 200, props.theme);
25
- const selectedBorderColor = focusBorderColor;
26
- const selectedBackgroundColor = selectedBorderColor;
27
- const selectedHoverBorderColor = getColorV8('primaryHue', SHADE + 100, props.theme);
28
- const selectedHoverBackgroundColor = selectedHoverBorderColor;
29
- const selectedActiveBorderColor = getColorV8('primaryHue', SHADE + 200, props.theme);
30
- const selectedActiveBackgroundColor = selectedActiveBorderColor;
31
- const selectedDisabledBackgroundColor = disabledBorderColor;
32
- return 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, getColorV8('neutralHue', SHADE - 300, props.theme), borderColor, getColorV8('background', 600 , props.theme), color, StyledTileIcon, iconColor, hoverBorderColor, hoverBackgroundColor, StyledTileIcon, color, focusStyles({
33
- theme: props.theme,
34
- color: {
35
- hue: focusBorderColor
11
+ const colorStyles = _ref => {
12
+ let {
13
+ theme
14
+ } = _ref;
15
+ const offset100 = {
16
+ dark: {
17
+ offset: -100
18
+ },
19
+ light: {
20
+ offset: 100
21
+ }
22
+ };
23
+ const offset200 = {
24
+ dark: {
25
+ offset: -200
36
26
  },
27
+ light: {
28
+ offset: 200
29
+ }
30
+ };
31
+ const backgroundColor = getColor({
32
+ theme,
33
+ variable: 'background.default'
34
+ });
35
+ const borderColor = getColor({
36
+ theme,
37
+ variable: 'border.default',
38
+ ...offset100
39
+ });
40
+ const foregroundColor = getColor({
41
+ theme,
42
+ variable: 'foreground.default'
43
+ });
44
+ const backgroundOptions = {
45
+ theme,
46
+ variable: 'background.primaryEmphasis'
47
+ };
48
+ const hoverBackgroundColor = getColor({
49
+ ...backgroundOptions,
50
+ transparency: theme.opacity[100]
51
+ });
52
+ const hoverBorderColor = getColor({
53
+ theme,
54
+ variable: 'border.primaryEmphasis'
55
+ });
56
+ const activeBackgroundColor = getColor({
57
+ ...backgroundOptions,
58
+ transparency: theme.opacity[200]
59
+ });
60
+ const focusBorderColor = hoverBorderColor;
61
+ const activeBorderColor = hoverBorderColor;
62
+ const checkedBackgroundColor = getColor(backgroundOptions);
63
+ const checkedForegroundColor = getColor({
64
+ theme,
65
+ variable: 'foreground.onEmphasis'
66
+ });
67
+ const checkedHoverBackgroundColor = getColor({
68
+ ...backgroundOptions,
69
+ ...offset100
70
+ });
71
+ const checkedActiveBackgroundColor = getColor({
72
+ ...backgroundOptions,
73
+ ...offset200
74
+ });
75
+ const disabledBackgroundColor = getColor({
76
+ theme,
77
+ variable: 'background.disabled'
78
+ });
79
+ const disabledBorderColor = getColor({
80
+ theme,
81
+ variable: 'border.disabled'
82
+ });
83
+ const disabledForegroundColor = getColor({
84
+ theme,
85
+ variable: 'foreground.disabled'
86
+ });
87
+ return 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, focusStyles({
88
+ theme,
89
+ selector: '&:has(:focus-visible)',
37
90
  styles: {
38
91
  borderColor: focusBorderColor
39
- },
40
- selector: `&:focus-within`
41
- }), activeBorderColor, activeBackgroundColor, StyledTileIcon, color, selectedBorderColor, selectedBackgroundColor, getColorV8('background', 600 , props.theme), StyledTileIcon, getColorV8('background', 600 , props.theme), selectedHoverBorderColor, selectedHoverBackgroundColor, getColorV8('background', 600 , props.theme), StyledTileIcon, getColorV8('background', 600 , props.theme), selectedActiveBorderColor, selectedActiveBackgroundColor, getColorV8('background', 600 , props.theme), StyledTileIcon, getColorV8('background', 600 , props.theme), disabledBorderColor, disabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor, selectedDisabledBackgroundColor, disabledColor, StyledTileIcon, disabledColor);
92
+ }
93
+ }), activeBorderColor, activeBackgroundColor, checkedBackgroundColor, checkedForegroundColor, checkedHoverBackgroundColor, checkedActiveBackgroundColor, disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
94
+ };
95
+ const sizeStyles = _ref2 => {
96
+ let {
97
+ theme
98
+ } = _ref2;
99
+ const border = theme.borders.sm;
100
+ const padding = `${theme.space.base * 5}px`;
101
+ return css(["border:", ";padding:", ";min-width:132px;"], border, padding);
42
102
  };
43
- const StyledTile = styled.label.attrs(props => ({
103
+ const StyledTile = styled.label.attrs({
44
104
  'data-garden-id': COMPONENT_ID,
45
- 'data-garden-version': '9.0.0-next.9',
46
- 'data-garden-selected': props.isSelected
47
- })).withConfig({
105
+ 'data-garden-version': '9.1.0'
106
+ }).withConfig({
48
107
  displayName: "StyledTile",
49
108
  componentId: "sc-1jjvmxs-0"
50
- })(["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 => retrieveComponentStyles(COMPONENT_ID, props));
51
- StyledTile.defaultProps = {
52
- theme: DEFAULT_THEME
53
- };
109
+ })(["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, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
54
110
 
55
111
  export { StyledTile };