@ntbjs/react-components 2.0.0-rc.11 → 2.0.0-rc.13

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 (183) hide show
  1. package/cjs/components/data/Alert/Alert.js +8 -10
  2. package/cjs/components/data/Alert/Alert.styled.js +17 -10
  3. package/cjs/components/data/Badge/Badge.js +13 -13
  4. package/cjs/components/data/Badge/Badge.styled.js +37 -26
  5. package/cjs/components/data/Popover/Popover.js +4 -2
  6. package/cjs/components/data/Tab/Tab.styled.js +6 -1
  7. package/cjs/components/data/Tabs/Tabs.js +22 -12
  8. package/cjs/components/data/Tabs/Tabs.styled.js +29 -16
  9. package/cjs/components/data/Tooltip/Tooltip.js +3 -1
  10. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
  11. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
  12. package/cjs/components/inputs/ActionButton/ActionButton.js +5 -3
  13. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +17 -8
  14. package/cjs/components/inputs/Button/Button.js +45 -38
  15. package/cjs/components/inputs/Button/Button.styled.js +84 -38
  16. package/cjs/components/inputs/Checkbox/Checkbox.js +1 -1
  17. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +23 -8
  18. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +2 -2
  19. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
  20. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
  21. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
  22. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
  23. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
  24. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
  25. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
  26. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
  27. package/cjs/components/inputs/MultiSelect/MultiSelect.js +5 -48
  28. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +27 -31
  29. package/cjs/components/inputs/Radio/Radio.styled.js +9 -2
  30. package/cjs/components/inputs/Switch/Switch.js +1 -1
  31. package/cjs/components/inputs/Switch/Switch.styled.js +22 -7
  32. package/cjs/components/inputs/TextArea/TextArea.js +10 -20
  33. package/cjs/components/inputs/TextArea/TextArea.styled.js +208 -133
  34. package/cjs/components/inputs/TextInput/TextInput.js +21 -22
  35. package/cjs/components/inputs/TextInput/TextInput.styled.js +58 -45
  36. package/cjs/components/layout/InputGroup/InputGroup.styled.js +6 -1
  37. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +7 -7
  38. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
  39. package/cjs/components/widgets/AssetAction/AssetAction.js +1 -1
  40. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +16 -5
  41. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
  42. package/cjs/components/widgets/AssetGallery/AssetGallery.js +5 -1
  43. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
  44. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
  45. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
  46. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
  47. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
  48. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
  49. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
  50. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
  51. package/cjs/components/widgets/ContextMenu/ContextMenu.js +2 -1
  52. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
  53. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
  54. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
  55. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
  56. package/cjs/components/widgets/InfoCard/InfoCard.js +17 -9
  57. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +40 -13
  58. package/cjs/components/widgets/ProgressBar/ProgressBar.js +43 -22
  59. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +78 -22
  60. package/cjs/components/widgets/SummaryCard/SummaryCard.js +9 -8
  61. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
  62. package/cjs/components/widgets/widgets/index.js +0 -2
  63. package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
  64. package/cjs/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +54 -12
  65. package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +10 -7
  66. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
  67. package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
  68. package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
  69. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
  70. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +1 -1
  71. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
  72. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
  73. package/cjs/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
  74. package/cjs/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
  75. package/cjs/node_modules/react/cjs/react.development.js +125 -82
  76. package/cjs/node_modules/react/cjs/react.production.js +88 -92
  77. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +1 -1
  78. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +1 -1
  79. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +5 -5
  80. package/cjs/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +23 -17
  81. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +47 -47
  82. package/cjs/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +3 -3
  83. package/cjs/node_modules/use-isomorphic-layout-effect/dist/{use-isomorphic-layout-effect.browser.esm.js → use-isomorphic-layout-effect.esm.js} +4 -1
  84. package/cjs/styles/utils/colors-export.js +41 -0
  85. package/cjs/utils/defaultTheme.js +28 -5
  86. package/esm/components/data/Alert/Alert.js +8 -10
  87. package/esm/components/data/Alert/Alert.styled.js +17 -10
  88. package/esm/components/data/Badge/Badge.js +13 -13
  89. package/esm/components/data/Badge/Badge.styled.js +37 -26
  90. package/esm/components/data/Popover/Popover.js +4 -2
  91. package/esm/components/data/Tab/Tab.styled.js +6 -1
  92. package/esm/components/data/Tabs/Tabs.js +23 -13
  93. package/esm/components/data/Tabs/Tabs.styled.js +29 -16
  94. package/esm/components/data/Tooltip/Tooltip.js +3 -1
  95. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
  96. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
  97. package/esm/components/inputs/ActionButton/ActionButton.js +5 -3
  98. package/esm/components/inputs/ActionButton/ActionButton.styled.js +17 -8
  99. package/esm/components/inputs/Button/Button.js +45 -38
  100. package/esm/components/inputs/Button/Button.styled.js +84 -38
  101. package/esm/components/inputs/Checkbox/Checkbox.js +1 -1
  102. package/esm/components/inputs/Checkbox/Checkbox.styled.js +23 -8
  103. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +4 -4
  104. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
  105. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
  106. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
  107. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
  108. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
  109. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
  110. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
  111. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
  112. package/esm/components/inputs/MultiSelect/MultiSelect.js +6 -49
  113. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +28 -28
  114. package/esm/components/inputs/Radio/Radio.styled.js +9 -2
  115. package/esm/components/inputs/Switch/Switch.js +1 -1
  116. package/esm/components/inputs/Switch/Switch.styled.js +22 -7
  117. package/esm/components/inputs/TextArea/TextArea.js +10 -20
  118. package/esm/components/inputs/TextArea/TextArea.styled.js +208 -133
  119. package/esm/components/inputs/TextInput/TextInput.js +21 -22
  120. package/esm/components/inputs/TextInput/TextInput.styled.js +58 -45
  121. package/esm/components/layout/InputGroup/InputGroup.styled.js +6 -1
  122. package/esm/components/layout/SectionSeparator/SectionSeparator.js +7 -7
  123. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
  124. package/esm/components/widgets/AssetAction/AssetAction.js +1 -1
  125. package/esm/components/widgets/AssetAction/AssetAction.styled.js +16 -5
  126. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
  127. package/esm/components/widgets/AssetGallery/AssetGallery.js +5 -1
  128. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
  129. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
  130. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
  131. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
  132. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
  133. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
  134. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
  135. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
  136. package/esm/components/widgets/ContextMenu/ContextMenu.js +2 -1
  137. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
  138. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
  139. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
  140. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
  141. package/esm/components/widgets/InfoCard/InfoCard.js +10 -2
  142. package/esm/components/widgets/InfoCard/InfoCard.styled.js +40 -13
  143. package/esm/components/widgets/ProgressBar/ProgressBar.js +31 -10
  144. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +77 -23
  145. package/esm/components/widgets/SummaryCard/SummaryCard.js +9 -8
  146. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
  147. package/esm/components/widgets/widgets/index.js +0 -1
  148. package/esm/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
  149. package/esm/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +47 -5
  150. package/esm/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +3 -3
  151. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
  152. package/esm/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
  153. package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
  154. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
  155. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +4 -4
  156. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
  157. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
  158. package/esm/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
  159. package/esm/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
  160. package/esm/node_modules/react/cjs/react.development.js +125 -82
  161. package/esm/node_modules/react/cjs/react.production.js +88 -92
  162. package/esm/node_modules/react-dom/cjs/react-dom.development.js +1 -1
  163. package/esm/node_modules/react-dom/cjs/react-dom.production.js +1 -1
  164. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +3 -3
  165. package/esm/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +12 -6
  166. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +2 -2
  167. package/esm/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +1 -1
  168. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +9 -0
  169. package/esm/styles/utils/colors-export.js +37 -0
  170. package/esm/utils/defaultTheme.js +28 -5
  171. package/package.json +16 -22
  172. package/styles/utils/colors-export.js +35 -0
  173. package/cjs/components/widgets/Instructions/Instructions.js +0 -217
  174. package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
  175. package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
  176. package/cjs/styles/utils/colors.scss.js +0 -11
  177. package/esm/components/widgets/Instructions/Instructions.js +0 -213
  178. package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
  179. package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
  180. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
  181. package/esm/styles/utils/colors.scss.js +0 -7
  182. package/styles/config.scss +0 -37
  183. /package/styles/utils/{colors.scss → .colors.scss} +0 -0
@@ -11,6 +11,8 @@ let _ = t => t,
11
11
  _t7,
12
12
  _t8,
13
13
  _t9,
14
+ _t0,
15
+ _t1,
14
16
  _t10,
15
17
  _t11,
16
18
  _t12,
@@ -41,11 +43,7 @@ let _ = t => t,
41
43
  _t37,
42
44
  _t38,
43
45
  _t39,
44
- _t40,
45
- _t41,
46
- _t42,
47
- _t43,
48
- _t44;
46
+ _t40;
49
47
  const fadeInCheck = keyframes(_t || (_t = _`
50
48
  from {
51
49
  opacity: 0
@@ -70,23 +68,17 @@ const activeLabel = css(_t3 || (_t3 = _`
70
68
  left: 8px !important;
71
69
  opacity: 1 !important;
72
70
  `));
73
- const placeholderBaseStyle = css(_t4 || (_t4 = _`
74
- ${0}
75
-
76
- ${0}
77
-
78
- ${0}
79
-
80
- ${0}
81
- `), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-600')), props => props.type === 'error-border' && css(_t5 || (_t5 = _`
82
- ${0}
83
- `), props.theme.themeProp('color', props.theme.getColor('red-500'), props.theme.getColor('red-500'))), props => props.type === 'warning-border' && css(_t6 || (_t6 = _`
84
- ${0}
85
- `), props.theme.themeProp('color', props.theme.getColor('orange-500'), props.theme.getColor('orange-500'))), props => props.theme.themeProp('opacity', 0.6, 0.5));
86
- const TextAreaContainter = styled.div.attrs(applyDefaultTheme)(_t7 || (_t7 = _`
71
+ const shouldForwardProp = prop => {
72
+ return prop !== 'theme' && !prop.startsWith('$');
73
+ };
74
+ const TextAreaContainter = styled.div.withConfig({
75
+ shouldForwardProp
76
+ }).attrs(applyDefaultTheme)(_t4 || (_t4 = _`
87
77
  display: flex;
88
78
  `));
89
- const Label = styled.label.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
79
+ const Label = styled.label.withConfig({
80
+ shouldForwardProp
81
+ }).attrs(applyDefaultTheme)(_t5 || (_t5 = _`
90
82
  ${0};
91
83
  flex-basis: 33.33%;
92
84
  font-size: 0.875rem;
@@ -97,10 +89,12 @@ const Label = styled.label.attrs(applyDefaultTheme)(_t8 || (_t8 = _`
97
89
  align-items: center;
98
90
  padding-top: 13px;
99
91
  ${0}
100
- `), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.disabled && css(_t9 || (_t9 = _`
92
+ `), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.disabled && css(_t6 || (_t6 = _`
101
93
  cursor: not-allowed;
102
94
  `)));
103
- const InputIconContainer = styled.div.attrs(applyDefaultTheme)(_t10 || (_t10 = _`
95
+ const InputIconContainer = styled.div.withConfig({
96
+ shouldForwardProp
97
+ }).attrs(applyDefaultTheme)(_t7 || (_t7 = _`
104
98
  opacity: 0;
105
99
  pointer-events: none;
106
100
  border-top-right-radius: 3px;
@@ -128,27 +122,26 @@ const InputIconContainer = styled.div.attrs(applyDefaultTheme)(_t10 || (_t10 = _
128
122
 
129
123
  ${0}
130
124
  }
131
- `), props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important'), props => props.disabled && css(_t11 || (_t11 = _`
125
+ `), props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important'), props => props.disabled && css(_t8 || (_t8 = _`
132
126
  display: none;
133
127
  `)));
134
- const TextInputField = styled.textarea.attrs(applyDefaultTheme)(_t12 || (_t12 = _`
128
+ const TextInputField = styled.textarea.withConfig({
129
+ shouldForwardProp
130
+ }).attrs(applyDefaultTheme)(_t9 || (_t9 = _`
135
131
  width: 100%;
136
132
  font-family: inherit;
137
133
  font-size: 0.875rem;
138
- border-radius: 2px;
134
+ border-radius: 3px;
139
135
  padding: 5px 10px;
140
136
  resize: vertical;
141
137
  z-index: 0;
142
- border-radius: 3px;
143
138
  box-sizing: border-box;
144
139
  appearance: none;
145
140
  border: 1px solid;
146
- transition: height 550ms ease-in-out; border-color 350ms;
147
-
148
-
149
- ${0}
150
-
151
-
141
+ transition:
142
+ height 550ms ease-in-out,
143
+ border-color 350ms,
144
+ background 350ms;
152
145
 
153
146
  ${0}
154
147
 
@@ -156,32 +149,17 @@ const TextInputField = styled.textarea.attrs(applyDefaultTheme)(_t12 || (_t12 =
156
149
 
157
150
  ${0}
158
151
 
159
-
160
- ${0}
161
152
 
162
-
163
153
  ${0}
164
154
 
165
155
  ${0}
166
156
 
167
- ${0}
168
-
169
- ${0}
170
-
171
157
 
172
- ${0}
158
+ ${0}
173
159
 
174
-
175
-
176
160
  ${0}
177
161
 
178
- ${0}
179
-
180
162
  ${0}
181
-
182
-
183
- ${0}
184
-
185
163
 
186
164
 
187
165
  ${0}
@@ -190,108 +168,199 @@ const TextInputField = styled.textarea.attrs(applyDefaultTheme)(_t12 || (_t12 =
190
168
 
191
169
  ${0}
192
170
 
193
- ${0}
194
-
171
+ ${0}
195
172
 
196
173
 
197
174
  &&:hover:not(:focus) {
198
- ${0};
199
-
200
- ${0};
201
-
202
- ${0};
175
+ ${0}
203
176
 
204
-
205
- ${0};
177
+ ${0}
206
178
 
179
+ ${0}
207
180
 
208
- ${0};
209
- transition: background 350ms;
210
181
  & + ${0} {
211
182
  opacity: 1;
212
- ${0};
213
- transition: opacity 350ms;
183
+ ${0}
214
184
  }
215
185
  }
216
186
 
217
187
  &::placeholder {
218
-
219
- ${0}
220
-
221
- }
188
+ ${0}
222
189
 
190
+ ${0}
223
191
 
192
+ ${0}
193
+ }
224
194
 
225
- &&:focus {
226
- outline: none;
195
+ &:hover::placeholder {
227
196
  ${0}
228
197
 
229
- ${0};
198
+ ${0}
199
+ }
230
200
 
231
-
232
- ${0}
233
-
201
+ &:focus::placeholder {
234
202
  ${0}
235
203
 
204
+ ${0}
205
+ }
206
+
207
+ &&:focus {
208
+ outline: none;
209
+
210
+ ${0}
236
211
  }
237
212
 
238
213
  &&:not(:hover):not(:focus) {
239
- ${0};
240
- ${0};
214
+ ${0}
241
215
 
242
- ${0}
243
-
216
+ ${0}
217
+
218
+ ${0}
219
+ }
220
+ `), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props => props.$borderRadius && css(_t0 || (_t0 = _`
221
+ border-radius: ${0}px;
222
+ `), props.$borderRadius), props => {
223
+ if (props.type === 'error') {
224
+ return css(_t1 || (_t1 = _`
225
+ ${0}
226
+ ${0}
227
+ ${0}
228
+ `), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#7f1b1b', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6'));
229
+ } else if (props.type === 'warning') {
230
+ return css(_t10 || (_t10 = _`
231
+ ${0}
232
+ ${0}
233
+ ${0}
234
+ `), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#634E01', '#FFFDE8'), props.theme.themeProp('border-color', '#634E01', '#FFFDE8'));
235
+ } else if (props.type === 'error-border') {
236
+ return css(_t11 || (_t11 = _`
237
+ ${0}
238
+ ${0}
239
+ ${0}
240
+ `), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
241
+ } else if (props.type === 'warning-border') {
242
+ return css(_t12 || (_t12 = _`
243
+ ${0}
244
+ ${0}
245
+ ${0}
246
+ `), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('orange-500')));
247
+ } else {
248
+ return css(_t13 || (_t13 = _`
249
+ ${0}
250
+ ${0}
251
+ ${0}
252
+ `), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')));
244
253
  }
245
- `), props => props.borderRadius && css(_t13 || (_t13 = _`
246
- border-radius: ${0}px;
247
- `), props.borderRadius), props => props.theme.themeProp('color', 'white', 'black'), props => props.readOnly && css(_t14 || (_t14 = _`
254
+ }, props => props.readOnly && css(_t14 || (_t14 = _`
248
255
  cursor: default;
249
256
  border-color: transparent !important;
250
- padding: 12px 10px; ;
257
+ padding: 12px 10px;
251
258
  `)), props => props.disabled && css(_t15 || (_t15 = _`
252
259
  cursor: not-allowed;
253
- `)), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props => props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props => props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')), props => props.noBorder && css(_t16 || (_t16 = _`
254
- ${0}
255
- `), props => props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))), props => props.type === 'warning' && css(_t17 || (_t17 = _`
256
- ${0}
260
+ `)), props => props.$noBorder && !props.type && css(_t16 || (_t16 = _`
257
261
  ${0}
262
+ `), props => props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))), props => props.$noBorder && props.type === 'warning' && css(_t17 || (_t17 = _`
258
263
  ${0}
259
- `), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#634E01', '#FFFDE8'), props.theme.themeProp('border-color', '#634E01 ', '#FFFDE8')), props => props.type === 'error' && css(_t18 || (_t18 = _`
264
+ `), props => props.theme.themeProp('border-color', '#634E01', '#FFFDE8')), props => props.$noBorder && props.type === 'error' && css(_t18 || (_t18 = _`
260
265
  ${0}
261
- ${0}
262
- ${0}
263
- `), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#7f1b1b', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.noBorder && props.type === 'warning' && css(_t19 || (_t19 = _`
264
- ${0}
265
- `), props => props.theme.themeProp('border-color', '#634E01', '#FFFDE8')), props => props.noBorder && props.type === 'error' && css(_t20 || (_t20 = _`
266
- ${0}
267
- `), props => props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.type === 'warning-border' && css(_t21 || (_t21 = _`
268
- ${0}
269
- `), props.theme.themeProp('border-color', props.theme.getColor('orange-500'), props.theme.getColor('orange-500'))), props => props.type === 'error-border' && css(_t22 || (_t22 = _`
270
- ${0}
271
- `), props.theme.themeProp('border-color', props.theme.getColor('red-500'), props.theme.getColor('red-500'))), props => props.padding === 'small' && css(_t23 || (_t23 = _`
266
+ `), props => props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.padding === 'small' && css(_t19 || (_t19 = _`
272
267
  padding: 5px 10px;
273
- `)), props => props.padding === 'medium' && css(_t24 || (_t24 = _`
268
+ `)), props => props.padding === 'medium' && css(_t20 || (_t20 = _`
274
269
  padding: 13px 15px;
275
- `)), props => props.padding === 'large' && css(_t25 || (_t25 = _`
270
+ `)), props => props.padding === 'large' && css(_t21 || (_t21 = _`
276
271
  padding: 15px 55px;
277
- `)), props => props.hasIcon && css(_t26 || (_t26 = _`
278
- padding-left: 55px;
279
- padding-right: 35px;
280
- padding-top: 13.5px;
281
- `)), props => !props.readOnly && !props.disabled && props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')), props => props.edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')), props => props.type === 'warning' && props.theme.themeProp('background', '#806403', '#FFFEBF'), props => props.type === 'error' && props.theme.themeProp('background', '#901d1d', '#F7D5D0'), props => props.noBorder && !props.readOnly && props.type != 'warning' && props.type != 'error' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')) : 'background: transparent', InputIconContainer, props => props.type === 'success' && css(_t27 || (_t27 = _`
272
+ `)), props => props.$hasIcon && css(_t22 || (_t22 = _`
273
+ padding-left: 55px;
274
+ padding-right: 35px;
275
+ padding-top: 13.5px;
276
+ `)), props => {
277
+ if (props.disabled) {
278
+ return '';
279
+ }
280
+ if (props.readOnly) {
281
+ if (props.type === 'error') {
282
+ return props.theme.themeProp('background', '#7f1b1b', '#FBEAE6');
283
+ } else if (props.type === 'warning') {
284
+ return props.theme.themeProp('background', '#634E01', '#FFFDE8');
285
+ }
286
+ return '';
287
+ }
288
+ if (props.type === 'error') {
289
+ return props.theme.themeProp('background', '#901d1d', '#F7D5D0');
290
+ } else if (props.type === 'warning') {
291
+ return props.theme.themeProp('background', '#806403', '#FFFEBF');
292
+ } else if (!props.disabled) {
293
+ return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
294
+ }
295
+ return '';
296
+ }, props => props.$edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')), props => props.$noBorder && !props.readOnly && props.type !== 'warning' && props.type !== 'error' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')) : '', InputIconContainer, props => props.type === 'success' && css(_t23 || (_t23 = _`
282
297
  opacity: 0;
283
- `)), placeholderBaseStyle, props => props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-600')), props => props.theme.themeProp('background', 'transparent', props.theme.getColor('white')), props => props.type === 'warning' && css(_t28 || (_t28 = _`
284
- ${0}
285
- ${0}
286
- ${0}
287
- `), props => props.theme.themeProp('border-color', '#F4E21E', '#F4E21E'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black')), props => props.type === 'error' && css(_t29 || (_t29 = _`
298
+ `)), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600')), props => props.theme.themeProp('opacity', 0.6, 0.5), props => {
299
+ if (props.type === 'warning') {
300
+ return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
301
+ } else if (props.type === 'error') {
302
+ return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
303
+ }
304
+ return '';
305
+ }, props => props.theme.themeProp('opacity', 0.6, 0.5), props => {
306
+ if (props.type === 'warning') {
307
+ return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900'));
308
+ } else if (props.type === 'error') {
309
+ return props.theme.themeProp('color', props.theme.getColor('red-600'), props.theme.getColor('red-600'));
310
+ } else {
311
+ return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
312
+ }
313
+ }, props => props.theme.themeProp('opacity', 0.6, 0.5), props => {
314
+ if (props.type === 'warning') {
315
+ return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900'));
316
+ } else if (props.type === 'error') {
317
+ return props.theme.themeProp('color', props.theme.getColor('red-600'), props.theme.getColor('red-600'));
318
+ } else {
319
+ return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
320
+ }
321
+ }, props => {
322
+ if (props.readOnly) {
323
+ if (props.type === 'error') {
324
+ return props.theme.themeProp('background', '#7f1b1b', '#FBEAE6');
325
+ } else if (props.type === 'warning') {
326
+ return props.theme.themeProp('background', '#634E01', '#FFFDE8');
327
+ }
328
+ return '';
329
+ }
330
+ if (props.type === 'error') {
331
+ return css(_t24 || (_t24 = _`
332
+ ${0}
333
+ ${0}
288
334
  ${0}
335
+ `), props.theme.themeProp('border-color', '#D83018', '#D83018'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
336
+ } else if (props.type === 'warning') {
337
+ return css(_t25 || (_t25 = _`
338
+ ${0}
339
+ ${0}
289
340
  ${0}
341
+ `), props.theme.themeProp('border-color', '#F4E21E', '#F4E21E'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
342
+ } else {
343
+ return css(_t26 || (_t26 = _`
344
+ ${0}
345
+ ${0}
346
+ `), props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-600')), props.theme.themeProp('background', 'transparent', props.theme.getColor('white')));
347
+ }
348
+ }, props => {
349
+ if (props.$edit) {
350
+ if (props.type === 'error') {
351
+ return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');
352
+ } else if (props.type === 'warning') {
353
+ return props.theme.themeProp('background', '#634E01', '#FFFDE8');
354
+ } else {
355
+ return props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
356
+ }
357
+ }
358
+ }, props => props.$edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)'), props => props.$noBorder && props.$edit && css(_t27 || (_t27 = _`
290
359
  ${0}
291
- `), props => props.theme.themeProp('border-color', '#D83018', '#D83018'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black')), props => props.edit && props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)'), props => props.edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)'), props => props.noBorder && props.edit && css(_t30 || (_t30 = _`
292
- ${0}
293
- `), props => props.theme.themeProp('border-color', '#27272A', 'rgba(244,244,245, 0.3)')));
294
- const TextInputLabel = styled.label.attrs(applyDefaultTheme)(_t31 || (_t31 = _`
360
+ `), props => props.theme.themeProp('border-color', '#27272A', 'rgba(244,244,245, 0.3)')));
361
+ const TextInputLabel = styled.label.withConfig({
362
+ shouldForwardProp
363
+ }).attrs(applyDefaultTheme)(_t28 || (_t28 = _`
295
364
  position: absolute;
296
365
  top: 13px;
297
366
  left: 11px;
@@ -302,7 +371,8 @@ const TextInputLabel = styled.label.attrs(applyDefaultTheme)(_t31 || (_t31 = _`
302
371
 
303
372
  ${0};
304
373
 
305
- ${0};
374
+ ${0}
375
+
306
376
 
307
377
  ${0}
308
378
 
@@ -312,14 +382,16 @@ const TextInputLabel = styled.label.attrs(applyDefaultTheme)(_t31 || (_t31 = _`
312
382
  content: "";
313
383
 
314
384
  ${0}
315
- `), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), placeholderBaseStyle, props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`), props => !props.inputIsEmpty && css(_t32 || (_t32 = _`
385
+ `), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.theme.themeProp('opacity', 0.6, 0.5), props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`), props => !props.$inputIsEmpty && css(_t29 || (_t29 = _`
316
386
  ${0}
317
- `), activeLabel), props => props.hasPlaceholder && css(_t33 || (_t33 = _`
387
+ `), activeLabel), props => props.$hasPlaceholder && css(_t30 || (_t30 = _`
318
388
  ${0};
319
- `), activeLabel), props => props.hasIcon && css(_t34 || (_t34 = _`
389
+ `), activeLabel), props => props.$hasIcon && css(_t31 || (_t31 = _`
320
390
  left: 55px;
321
391
  `)));
322
- const TextInputFieldIcon = styled.div.attrs(applyDefaultTheme)(_t35 || (_t35 = _`
392
+ const TextInputFieldIcon = styled.div.withConfig({
393
+ shouldForwardProp
394
+ }).attrs(applyDefaultTheme)(_t32 || (_t32 = _`
323
395
  position: absolute;
324
396
  top: 0;
325
397
  left: 0;
@@ -333,7 +405,9 @@ const TextInputFieldIcon = styled.div.attrs(applyDefaultTheme)(_t35 || (_t35 = _
333
405
  transition: opacity 250ms;
334
406
  }
335
407
  `));
336
- const TextInputFieldIconAlert = styled.div.attrs(applyDefaultTheme)(_t36 || (_t36 = _`
408
+ const TextInputFieldIconAlert = styled.div.withConfig({
409
+ shouldForwardProp
410
+ }).attrs(applyDefaultTheme)(_t33 || (_t33 = _`
337
411
  position: absolute;
338
412
  top: 2.8px;
339
413
  display: flex;
@@ -346,16 +420,14 @@ const TextInputFieldIconAlert = styled.div.attrs(applyDefaultTheme)(_t36 || (_t3
346
420
  width: 15px;
347
421
  }
348
422
  `), props => props.type === 'warning' && props.theme.themeProp('color', '#EAB308', '#2F2402'));
349
- const TextInput = styled.div.attrs(applyDefaultTheme)(_t37 || (_t37 = _`
423
+ const TextInput = styled.div.withConfig({
424
+ shouldForwardProp
425
+ }).attrs(applyDefaultTheme)(_t34 || (_t34 = _`
350
426
  position: relative;
351
427
  flex-basis: ${0};
352
428
 
353
429
  ${0}
354
430
 
355
- ${0}
356
-
357
-
358
-
359
431
  &:focus-within {
360
432
  ${0} {
361
433
  ${0};
@@ -372,17 +444,16 @@ const TextInput = styled.div.attrs(applyDefaultTheme)(_t37 || (_t37 = _`
372
444
  ${0};
373
445
  ${0}
374
446
  }
375
- }
376
- `), props => props.$fieldLabel ? '66.66%' : '100%', props => props.readOnly && css(_t38 || (_t38 = _`
377
- overflow: auto;
378
- `)), props => props.disabled && css(_t39 || (_t39 = _`
447
+ `), props => props.$fieldLabel ? '66.66%' : '100%', props => props.disabled && css(_t35 || (_t35 = _`
379
448
  opacity: 0.5;
380
449
 
381
450
  > * {
382
451
  cursor: not-allowed;
383
452
  }
384
453
  `)), TextInputLabel, activeLabel, TextInputFieldIcon, TextInputField, TextInputLabel, activeLabel, props => props.type === 'error' && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
385
- const Description = styled.div.attrs(applyDefaultTheme)(_t40 || (_t40 = _`
454
+ const Description = styled.div.withConfig({
455
+ shouldForwardProp
456
+ }).attrs(applyDefaultTheme)(_t36 || (_t36 = _`
386
457
  margin: 8px 0 0 0;
387
458
  padding: 0 0.6875rem;
388
459
  font-size: 0.75rem;
@@ -393,12 +464,14 @@ const Description = styled.div.attrs(applyDefaultTheme)(_t40 || (_t40 = _`
393
464
  ${0}
394
465
 
395
466
  ${0}
396
- `), props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => (props.type === 'warning-border' || props.type === 'warning') && css(_t41 || (_t41 = _`
467
+ `), props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => (props.type === 'warning-border' || props.type === 'warning') && css(_t37 || (_t37 = _`
397
468
  ${0}
398
- `), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))), props => (props.type === 'error-border' || props.type === 'error') && css(_t42 || (_t42 = _`
469
+ `), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))), props => (props.type === 'error-border' || props.type === 'error') && css(_t38 || (_t38 = _`
399
470
  ${0}
400
471
  `), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))));
401
- const SuccessContainer = styled.div.attrs(applyDefaultTheme)(_t43 || (_t43 = _`
472
+ const SuccessContainer = styled.div.withConfig({
473
+ shouldForwardProp
474
+ }).attrs(applyDefaultTheme)(_t39 || (_t39 = _`
402
475
  opacity: 1;
403
476
  pointer-events: none;
404
477
  opacity: ${0};
@@ -415,8 +488,10 @@ const SuccessContainer = styled.div.attrs(applyDefaultTheme)(_t43 || (_t43 = _`
415
488
  > svg {
416
489
  width: 15px;
417
490
  }
418
- `), props => props.fadeIn ? 0 : 1, props => props.fadeIn ? fadeOutCheck : fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
419
- const SuccessContainerLabel = styled.div.attrs(applyDefaultTheme)(_t44 || (_t44 = _`
491
+ `), props => props.$fadeIn ? 0 : 1, props => props.$fadeIn ? fadeOutCheck : fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
492
+ const SuccessContainerLabel = styled.div.withConfig({
493
+ shouldForwardProp
494
+ }).attrs(applyDefaultTheme)(_t40 || (_t40 = _`
420
495
  opacity: 1;
421
496
  pointer-events: none;
422
497
  opacity: ${0};
@@ -432,6 +507,6 @@ const SuccessContainerLabel = styled.div.attrs(applyDefaultTheme)(_t44 || (_t44
432
507
  > svg {
433
508
  width: 13px;
434
509
  }
435
- `), props => props.fadeIn ? 0 : 1, props => props.fadeIn ? fadeOutCheck : fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
510
+ `), props => props.$fadeIn ? 0 : 1, props => props.$fadeIn ? fadeOutCheck : fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
436
511
 
437
512
  export { Description, InputIconContainer, Label, SuccessContainer, SuccessContainerLabel, TextAreaContainter, TextInput, TextInputField, TextInputFieldIcon, TextInputFieldIconAlert, TextInputLabel };
@@ -2,7 +2,7 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
2
2
  import React from '../../../node_modules/react/index.js';
3
3
  import { nanoid } from 'nanoid';
4
4
  import PropTypes from '../../../node_modules/prop-types/index.js';
5
- import useMergedRefs from '../../../node_modules/@restart/hooks/esm/useMergedRefs.js';
5
+ import useMergedRefs from '../../../node_modules/@restart/hooks/lib/useMergedRefs.js';
6
6
  import { isBoolean, isEmpty } from 'lodash';
7
7
  import { ReactComponent as SvgEditNote } from '../../../icons/edit-note.svg.js';
8
8
  import { TextInput as TextInput$2, TextInputFieldIcon, TextInputWrapper, Adornment, TextInputField, InputIconContainer, TextInputLabel, Description } from './TextInput.styled.js';
@@ -61,16 +61,16 @@ const TextInput = React.forwardRef(function TextInput(_ref, forwardedRef) {
61
61
  return null;
62
62
  }, [description, error, warning]);
63
63
  return React.createElement(TextInput$2, {
64
- error: hasError,
64
+ $error: hasError,
65
65
  disabled: disabled,
66
- warning: hasWarning,
66
+ $warning: hasWarning,
67
67
  className: className,
68
68
  style: style
69
69
  }, typeof icon !== 'undefined' && React.createElement(TextInputFieldIcon, null, icon), React.createElement(TextInputWrapper, null, typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 && React.createElement(Adornment, {
70
70
  htmlFor: `text-input-${uniqueId}`,
71
- error: hasError,
72
- warning: hasWarning,
73
- isPrefix: true,
71
+ $error: hasError,
72
+ $warning: hasWarning,
73
+ $isPrefix: true,
74
74
  onClick: () => textInputDomNode.current.focus()
75
75
  }, adornments.prefix), React.createElement(TextInputField, _extends({
76
76
  ref: textInputRef,
@@ -81,32 +81,31 @@ const TextInput = React.forwardRef(function TextInput(_ref, forwardedRef) {
81
81
  type: type,
82
82
  required: required,
83
83
  autoComplete: autoComplete,
84
- hasIcon: Boolean(icon),
85
- error: hasError,
86
- warning: hasWarning,
84
+ $hasIcon: Boolean(icon),
85
+ $error: hasError,
86
+ $warning: hasWarning,
87
87
  id: `text-input-${uniqueId}`,
88
88
  onChange: onChange,
89
89
  onBlur: onBlur,
90
90
  readOnly: readOnly,
91
- noBorder: noBorder
91
+ $noBorder: noBorder
92
92
  }, rest)), !readOnly && noBorder && React.createElement(InputIconContainer, {
93
- error: error,
94
- warning: warning
93
+ $error: hasError,
94
+ $warning: hasWarning
95
95
  }, React.createElement(SvgEditNote, null)), label && React.createElement(TextInputLabel, {
96
96
  htmlFor: `text-input-${uniqueId}`,
97
- hasPlaceholder: Boolean(placeholder),
98
- hasAdornments: Boolean(typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 || typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0),
99
- hasIcon: Boolean(icon),
100
- error: hasError,
101
- warning: hasWarning
97
+ $hasPlaceholder: Boolean(placeholder),
98
+ $hasAdornments: Boolean(typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 || typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0),
99
+ $hasIcon: Boolean(icon),
100
+ $error: hasError
102
101
  }, label, required && ' *'), typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0 && React.createElement(Adornment, {
103
- error: hasError,
104
- warning: hasWarning,
105
- isPrefix: false,
102
+ $error: hasError,
103
+ $warning: hasWarning,
104
+ $isPrefix: false,
106
105
  onClick: () => textInputDomNode.current.focus()
107
106
  }, adornments.suffix)), typeof descriptionText === 'string' && descriptionText.length > 0 && React.createElement(Description, {
108
- error: hasError,
109
- warning: hasWarning
107
+ $error: hasError,
108
+ $warning: hasWarning
110
109
  }, descriptionText));
111
110
  });
112
111
  TextInput.defaultProps = {