@databricks/design-system 1.9.2 → 1.9.3

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 (200) hide show
  1. package/dist/{Typography-74e19785.js → Spinner-140f57ac.js} +1080 -27
  2. package/dist/Spinner-140f57ac.js.map +1 -0
  3. package/dist/common-3ab0e300.js +15 -0
  4. package/dist/common-3ab0e300.js.map +1 -0
  5. package/dist/design-system/Button/Button.d.ts +5 -1
  6. package/dist/design-system/Button/Button.d.ts.map +1 -1
  7. package/dist/design-system/Button/styles.d.ts.map +1 -1
  8. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
  9. package/dist/design-system/DatePicker/DatePicker.d.ts +18 -14
  10. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  11. package/dist/design-system/Drawer/Drawer.d.ts +6 -1
  12. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  13. package/dist/design-system/FormV2/RHFAdapters.d.ts +7 -7
  14. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  15. package/dist/design-system/Icon/__generated/icons/index.d.ts +0 -35
  16. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  17. package/dist/design-system/LegacyTable/LegacyTable.d.ts +100 -0
  18. package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -0
  19. package/dist/design-system/LegacyTable/index.d.ts +2 -0
  20. package/dist/design-system/LegacyTable/index.d.ts.map +1 -0
  21. package/dist/design-system/Modal/Modal.d.ts +3 -1
  22. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  23. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  24. package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
  25. package/dist/design-system/PopoverV2/PopoverV2.d.ts +1 -0
  26. package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +1 -1
  27. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  28. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +0 -2
  29. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  30. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  31. package/dist/design-system/Table/index.d.ts +1 -1
  32. package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
  33. package/dist/design-system/ToggleButton/index.d.ts +2 -0
  34. package/dist/design-system/ToggleButton/index.d.ts.map +1 -0
  35. package/dist/design-system/index.d.ts +2 -1
  36. package/dist/design-system/index.d.ts.map +1 -1
  37. package/dist/development/Filter/Filter.d.ts +10 -0
  38. package/dist/development/Filter/Filter.d.ts.map +1 -0
  39. package/dist/development/Filter/Filter.test.d.ts +2 -0
  40. package/dist/development/Filter/Filter.test.d.ts.map +1 -0
  41. package/dist/development/Filter/FilterButtonContainer.d.ts +2 -0
  42. package/dist/development/Filter/FilterButtonContainer.d.ts.map +1 -0
  43. package/dist/development/Filter/FilterContent.d.ts +14 -0
  44. package/dist/development/Filter/FilterContent.d.ts.map +1 -0
  45. package/dist/development/Filter/FilterCountBadge.d.ts +2 -0
  46. package/dist/development/Filter/FilterCountBadge.d.ts.map +1 -0
  47. package/dist/development/Filter/FilterLoadingSpinner.d.ts +2 -0
  48. package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +1 -0
  49. package/dist/development/Filter/FilterOptionControlledList.d.ts +9 -0
  50. package/dist/development/Filter/FilterOptionControlledList.d.ts.map +1 -0
  51. package/dist/development/Filter/FilterOptionList.d.ts +10 -0
  52. package/dist/development/Filter/FilterOptionList.d.ts.map +1 -0
  53. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +11 -0
  54. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +1 -0
  55. package/dist/development/Filter/FilterOptionListSearch.d.ts +7 -0
  56. package/dist/development/Filter/FilterOptionListSearch.d.ts.map +1 -0
  57. package/dist/development/Filter/FilterOptionListSelectItem.d.ts +10 -0
  58. package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +1 -0
  59. package/dist/development/Filter/FilterSectionHeader.d.ts +2 -0
  60. package/dist/development/Filter/FilterSectionHeader.d.ts.map +1 -0
  61. package/dist/development/Filter/FilterSeparator.d.ts +2 -0
  62. package/dist/development/Filter/FilterSeparator.d.ts.map +1 -0
  63. package/dist/development/Filter/FilterTrigger.d.ts +15 -0
  64. package/dist/development/Filter/FilterTrigger.d.ts.map +1 -0
  65. package/dist/development/Filter/hooks/useFilterContext.d.ts +2 -0
  66. package/dist/development/Filter/hooks/useFilterContext.d.ts.map +1 -0
  67. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +2 -0
  68. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +1 -0
  69. package/dist/development/Filter/index.d.ts +14 -0
  70. package/dist/development/Filter/index.d.ts.map +1 -0
  71. package/dist/development/Filter/providers/FilterContext.d.ts +15 -0
  72. package/dist/development/Filter/providers/FilterContext.d.ts.map +1 -0
  73. package/dist/development/Filter/providers/FilterOptionListContext.d.ts +10 -0
  74. package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +1 -0
  75. package/dist/development/Filter/shared.d.ts +3 -0
  76. package/dist/development/Filter/shared.d.ts.map +1 -0
  77. package/dist/development/ListPagePattern/index.d.ts +1 -0
  78. package/dist/development/ListPagePattern/index.d.ts.map +1 -0
  79. package/dist/development/TableUI/index.d.ts +19 -0
  80. package/dist/development/TableUI/index.d.ts.map +1 -1
  81. package/dist/development/index.d.ts +1 -0
  82. package/dist/development/index.d.ts.map +1 -1
  83. package/dist/development.js +1056 -52
  84. package/dist/development.js.map +1 -1
  85. package/dist/index.js +623 -1508
  86. package/dist/index.js.map +1 -1
  87. package/dist/test-utils/common.d.ts +11 -0
  88. package/dist/test-utils/common.d.ts.map +1 -0
  89. package/dist/test-utils/enzyme/index.d.ts +1 -0
  90. package/dist/test-utils/enzyme/index.d.ts.map +1 -1
  91. package/dist/test-utils/enzyme/selectEvent.d.ts +42 -0
  92. package/dist/test-utils/enzyme/selectEvent.d.ts.map +1 -0
  93. package/dist/test-utils/enzyme/selectEvent.test.d.ts +2 -0
  94. package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +1 -0
  95. package/dist/test-utils/enzyme/utils.d.ts +33 -0
  96. package/dist/test-utils/enzyme/utils.d.ts.map +1 -0
  97. package/dist/test-utils/enzyme.js +258 -1
  98. package/dist/test-utils/enzyme.js.map +1 -1
  99. package/dist/test-utils/rtl/index.d.ts +1 -0
  100. package/dist/test-utils/rtl/index.d.ts.map +1 -1
  101. package/dist/test-utils/rtl/selectEvent.d.ts +41 -0
  102. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -0
  103. package/dist/test-utils/rtl/selectEvent.test.d.ts +2 -0
  104. package/dist/test-utils/rtl/selectEvent.test.d.ts.map +1 -0
  105. package/dist/test-utils/rtl.js +135 -1
  106. package/dist/test-utils/rtl.js.map +1 -1
  107. package/dist/test-utils/types.d.ts +1 -14
  108. package/dist/test-utils/types.d.ts.map +1 -1
  109. package/dist/theme/colorList.d.ts +6 -7
  110. package/dist/theme/colorList.d.ts.map +1 -1
  111. package/dist/theme/colors.d.ts +6 -7
  112. package/dist/theme/colors.d.ts.map +1 -1
  113. package/package.json +4 -3
  114. package/dist/Typography-04e40f87.js +0 -1465
  115. package/dist/Typography-04e40f87.js.map +0 -1
  116. package/dist/Typography-52abe0b7.js +0 -1142
  117. package/dist/Typography-52abe0b7.js.map +0 -1
  118. package/dist/Typography-74e19785.js.map +0 -1
  119. package/dist/Typography-84a00e02.js +0 -1465
  120. package/dist/Typography-84a00e02.js.map +0 -1
  121. package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts +0 -4
  122. package/dist/design-system/Icon/__generated/icons/ArrayIcon.v2.d.ts.map +0 -1
  123. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +0 -4
  124. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +0 -1
  125. package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts +0 -4
  126. package/dist/design-system/Icon/__generated/icons/BracketsIcon.v2.d.ts.map +0 -1
  127. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +0 -4
  128. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +0 -1
  129. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +0 -4
  130. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +0 -1
  131. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +0 -4
  132. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +0 -1
  133. package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts +0 -4
  134. package/dist/design-system/Icon/__generated/icons/DataMarketplace.v2.d.ts.map +0 -1
  135. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +0 -4
  136. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +0 -1
  137. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +0 -4
  138. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +0 -1
  139. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +0 -4
  140. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +0 -1
  141. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +0 -4
  142. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +0 -1
  143. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +0 -4
  144. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +0 -1
  145. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +0 -4
  146. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +0 -1
  147. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +0 -4
  148. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +0 -1
  149. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +0 -4
  150. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +0 -1
  151. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +0 -4
  152. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +0 -1
  153. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +0 -4
  154. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +0 -1
  155. package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts +0 -4
  156. package/dist/design-system/Icon/__generated/icons/NotificationsOffIcon.v2.d.ts.map +0 -1
  157. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +0 -4
  158. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +0 -1
  159. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +0 -4
  160. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +0 -1
  161. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +0 -4
  162. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +0 -1
  163. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +0 -4
  164. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +0 -1
  165. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +0 -4
  166. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +0 -1
  167. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +0 -4
  168. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +0 -1
  169. package/dist/design-system/Icon/__generated/icons/Redo.d.ts +0 -4
  170. package/dist/design-system/Icon/__generated/icons/Redo.d.ts.map +0 -1
  171. package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts +0 -4
  172. package/dist/design-system/Icon/__generated/icons/RedoIcon.v2.d.ts.map +0 -1
  173. package/dist/design-system/Icon/__generated/icons/Refresh.d.ts +0 -4
  174. package/dist/design-system/Icon/__generated/icons/Refresh.d.ts.map +0 -1
  175. package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts +0 -4
  176. package/dist/design-system/Icon/__generated/icons/Refresh.v2.d.ts.map +0 -1
  177. package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts +0 -4
  178. package/dist/design-system/Icon/__generated/icons/RefreshIcon.v2.d.ts.map +0 -1
  179. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +0 -4
  180. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +0 -1
  181. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +0 -4
  182. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +0 -1
  183. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +0 -4
  184. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +0 -1
  185. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +0 -4
  186. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +0 -1
  187. package/dist/design-system/Icon/__generated/icons/Undo.d.ts +0 -4
  188. package/dist/design-system/Icon/__generated/icons/Undo.d.ts.map +0 -1
  189. package/dist/design-system/Icon/__generated/icons/Visible.d.ts +0 -4
  190. package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +0 -1
  191. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +0 -4
  192. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +0 -1
  193. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +0 -4
  194. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +0 -1
  195. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +0 -4
  196. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +0 -1
  197. package/dist/test-utils/enzyme.d.ts +0 -8
  198. package/dist/test-utils/enzyme.d.ts.map +0 -1
  199. package/dist/test-utils/rtl.d.ts +0 -7
  200. package/dist/test-utils/rtl.d.ts.map +0 -1
@@ -1,10 +1,8 @@
1
1
  import React__default, { createContext, useMemo, useEffect, useContext, forwardRef } from 'react';
2
2
  import { jsx, jsxs } from '@emotion/react/jsx-runtime';
3
- import { useTheme, ThemeProvider, css } from '@emotion/react';
4
- import { notification, ConfigProvider, Checkbox as Checkbox$1, Typography as Typography$1 } from 'antd';
3
+ import { useTheme, ThemeProvider, css, keyframes } from '@emotion/react';
4
+ import { notification, ConfigProvider, Button as Button$1, Checkbox as Checkbox$1, Typography as Typography$1, Tooltip as Tooltip$1, Input as Input$1 } from 'antd';
5
5
  import classnames from 'classnames';
6
- import chroma from 'chroma-js';
7
- import AntDIcon from '@ant-design/icons';
8
6
  import _isNil from 'lodash/isNil';
9
7
  import _endsWith from 'lodash/endsWith';
10
8
  import _isBoolean from 'lodash/isBoolean';
@@ -12,6 +10,8 @@ import _isNumber from 'lodash/isNumber';
12
10
  import _isString from 'lodash/isString';
13
11
  import _mapValues from 'lodash/mapValues';
14
12
  import unitless from '@emotion/unitless';
13
+ import chroma from 'chroma-js';
14
+ import AntDIcon from '@ant-design/icons';
15
15
 
16
16
  // Border variables
17
17
  const borders = {
@@ -80,17 +80,6 @@ const colorPaletteSecondary = {
80
80
  teal: '#04867D',
81
81
  turquoise: '#157CBC'
82
82
  };
83
-
84
- // Colors taken from figma designs but not part of official list (yet)
85
- const unstableColors = {
86
- textValidationInfo: '#64727D',
87
- backgroundValidationDanger: colorPalettePrimary.red100,
88
- backgroundValidationSuccess: colorPalettePrimary.blue100,
89
- backgroundValidationWarning: colorPalettePrimary.yellow100,
90
- borderValidationDanger: colorPalettePrimary.red300,
91
- borderValidationSuccess: colorPalettePrimary.blue300,
92
- borderValidationWarning: colorPalettePrimary.yellow300
93
- };
94
83
  const lightColorList = {
95
84
  backgroundPrimary: colorPalettePrimary.white,
96
85
  actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
@@ -132,14 +121,20 @@ const lightColorList = {
132
121
  backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
133
122
  backgroundSecondary: colorPalettePrimary.grey100,
134
123
  backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
124
+ backgroundValidationDanger: colorPalettePrimary.red100,
125
+ backgroundValidationSuccess: colorPalettePrimary.blue100,
126
+ backgroundValidationWarning: colorPalettePrimary.yellow100,
135
127
  border: colorPalettePrimary.grey300,
136
128
  borderDecorative: colorPalettePrimary.grey300,
129
+ borderValidationDanger: colorPalettePrimary.red300,
130
+ borderValidationWarning: colorPalettePrimary.yellow300,
137
131
  textPrimary: colorPalettePrimary.grey800,
138
132
  textSecondary: colorPalettePrimary.grey600,
139
133
  textPlaceholder: colorPalettePrimary.grey400,
140
134
  textValidationDanger: colorPalettePrimary.red600,
141
135
  textValidationSuccess: colorPalettePrimary.green600,
142
136
  textValidationWarning: colorPalettePrimary.yellow600,
137
+ textValidationInfo: colorPalettePrimary.grey600,
143
138
  overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
144
139
  // Tags
145
140
  tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
@@ -163,8 +158,7 @@ const lightColorList = {
163
158
  // Table
164
159
  tableSeparatorColor: colorPalettePrimary.grey200,
165
160
  tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),
166
- tooltipBackgroundTooltip: colorPalettePrimary.grey800,
167
- ...unstableColors
161
+ tooltipBackgroundTooltip: colorPalettePrimary.grey800
168
162
  };
169
163
  const darkColorList = {
170
164
  actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
@@ -204,15 +198,21 @@ const darkColorList = {
204
198
  actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
205
199
  actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
206
200
  backgroundPrimary: colorPalettePrimary.grey800,
207
- backgroundSecondary: chroma(colorPalettePrimary.white).alpha(0.04).hex(),
201
+ backgroundSecondary: '#283035',
202
+ backgroundValidationDanger: 'transparent',
203
+ backgroundValidationSuccess: 'transparent',
204
+ backgroundValidationWarning: 'transparent',
208
205
  border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
209
206
  borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
207
+ borderValidationDanger: colorPalettePrimary.red300,
208
+ borderValidationWarning: colorPalettePrimary.yellow300,
210
209
  textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
211
210
  textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
212
211
  textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
213
212
  textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
214
213
  textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
215
214
  textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
215
+ textValidationInfo: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
216
216
  overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
217
217
  // Tags
218
218
  tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
@@ -239,11 +239,7 @@ const darkColorList = {
239
239
  tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
240
240
  // Missing in list
241
241
  backgroundDanger: 'rgba(200,45,76,0.08)',
242
- backgroundWarning: 'rgba(222,121,33,0.08)',
243
- // Missing in light list
244
- // "background-validation-danger": "rgba(229,110,134,0)",
245
- // "background-validation-warning": "rgba(252,234,202,0)",
246
- ...unstableColors
242
+ backgroundWarning: 'rgba(222,121,33,0.08)'
247
243
  };
248
244
 
249
245
  const darkColors = {
@@ -701,6 +697,172 @@ const Icon = props => {
701
697
  });
702
698
  };
703
699
 
700
+ function SvgCheckIconV1(props) {
701
+ return jsx("svg", {
702
+ width: "1em",
703
+ height: "1em",
704
+ viewBox: "0 0 24 24",
705
+ fill: "none",
706
+ xmlns: "http://www.w3.org/2000/svg",
707
+ ...props,
708
+ children: jsx("path", {
709
+ d: "M8.795 15.875l-3.47-3.47a.996.996 0 00-1.41 0 .996.996 0 000 1.41l4.18 4.18c.39.39 1.02.39 1.41 0l10.58-10.58a.996.996 0 10-1.41-1.41l-9.88 9.87z",
710
+ fill: "currentColor"
711
+ })
712
+ });
713
+ }
714
+ function SvgCheckIconV2(props) {
715
+ return jsx("svg", {
716
+ width: "1em",
717
+ height: "1em",
718
+ viewBox: "0 0 16 16",
719
+ fill: "none",
720
+ xmlns: "http://www.w3.org/2000/svg",
721
+ ...props,
722
+ children: jsx("path", {
723
+ fillRule: "evenodd",
724
+ clipRule: "evenodd",
725
+ d: "M15.06 3.56l-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5l1.06 1.06z",
726
+ fill: "currentColor"
727
+ })
728
+ });
729
+ }
730
+ function CheckIcon(props) {
731
+ const {
732
+ USE_NEW_ICONS
733
+ } = useDesignSystemFlags();
734
+ const component = USE_NEW_ICONS ? SvgCheckIconV2 : SvgCheckIconV1;
735
+ return jsx(Icon, {
736
+ ...props,
737
+ component: component
738
+ });
739
+ }
740
+
741
+ function SvgChevronDownIconV1(props) {
742
+ return jsx("svg", {
743
+ width: "1em",
744
+ height: "1em",
745
+ viewBox: "0 0 24 24",
746
+ fill: "none",
747
+ xmlns: "http://www.w3.org/2000/svg",
748
+ ...props,
749
+ children: jsx("path", {
750
+ d: "M15.875 9l-3.88 3.88L8.115 9a.996.996 0 10-1.41 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 000-1.41c-.39-.38-1.03-.39-1.42 0z",
751
+ fill: "currentColor"
752
+ })
753
+ });
754
+ }
755
+ function SvgChevronDownIconV2(props) {
756
+ return jsx("svg", {
757
+ width: "1em",
758
+ height: "1em",
759
+ viewBox: "0 0 16 16",
760
+ fill: "none",
761
+ xmlns: "http://www.w3.org/2000/svg",
762
+ ...props,
763
+ children: jsx("path", {
764
+ fillRule: "evenodd",
765
+ clipRule: "evenodd",
766
+ d: "M8 8.917L10.947 6 12 7.042 8 11 4 7.042 5.053 6 8 8.917z",
767
+ fill: "currentColor"
768
+ })
769
+ });
770
+ }
771
+ function ChevronDownIcon(props) {
772
+ const {
773
+ USE_NEW_ICONS
774
+ } = useDesignSystemFlags();
775
+ const component = USE_NEW_ICONS ? SvgChevronDownIconV2 : SvgChevronDownIconV1;
776
+ return jsx(Icon, {
777
+ ...props,
778
+ component: component
779
+ });
780
+ }
781
+
782
+ function SvgCloseIconV1(props) {
783
+ return jsx("svg", {
784
+ width: "1em",
785
+ height: "1em",
786
+ viewBox: "0 0 24 24",
787
+ fill: "none",
788
+ xmlns: "http://www.w3.org/2000/svg",
789
+ ...props,
790
+ children: jsx("path", {
791
+ d: "M7.707 6.293a1 1 0 00-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 101.414 1.414L12 13.414l4.293 4.293a1 1 0 001.414-1.414L13.414 12l4.293-4.293a1 1 0 00-1.414-1.414L12 10.586 7.707 6.293z",
792
+ fill: "currentColor"
793
+ })
794
+ });
795
+ }
796
+ function SvgCloseIconV2(props) {
797
+ return jsx("svg", {
798
+ width: "1em",
799
+ height: "1em",
800
+ viewBox: "0 0 16 16",
801
+ fill: "none",
802
+ xmlns: "http://www.w3.org/2000/svg",
803
+ ...props,
804
+ children: jsx("path", {
805
+ fillRule: "evenodd",
806
+ clipRule: "evenodd",
807
+ d: "M6.97 8.03L2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13l4.97-4.97z",
808
+ fill: "currentColor"
809
+ })
810
+ });
811
+ }
812
+ function CloseIcon(props) {
813
+ const {
814
+ USE_NEW_ICONS
815
+ } = useDesignSystemFlags();
816
+ const component = USE_NEW_ICONS ? SvgCloseIconV2 : SvgCloseIconV1;
817
+ return jsx(Icon, {
818
+ ...props,
819
+ component: component
820
+ });
821
+ }
822
+
823
+ function SvgLoadingIconV1(props) {
824
+ return jsx("svg", {
825
+ width: "1em",
826
+ height: "1em",
827
+ viewBox: "0 0 24 24",
828
+ fill: "none",
829
+ xmlns: "http://www.w3.org/2000/svg",
830
+ ...props,
831
+ children: jsx("path", {
832
+ fillRule: "evenodd",
833
+ clipRule: "evenodd",
834
+ d: "M23.212 12a.788.788 0 01-.789-.788 9.57 9.57 0 00-.757-3.751 9.662 9.662 0 00-5.129-5.129 9.587 9.587 0 00-3.749-.755.788.788 0 010-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 013.562 2.403 11.157 11.157 0 013.283 7.927.785.785 0 01-.786.788z",
835
+ fill: "currentColor"
836
+ })
837
+ });
838
+ }
839
+ function SvgLoadingIconV2(props) {
840
+ return jsx("svg", {
841
+ width: "1em",
842
+ height: "1em",
843
+ viewBox: "0 0 24 24",
844
+ fill: "none",
845
+ xmlns: "http://www.w3.org/2000/svg",
846
+ ...props,
847
+ children: jsx("path", {
848
+ fillRule: "evenodd",
849
+ clipRule: "evenodd",
850
+ d: "M23.212 12a.788.788 0 01-.789-.788 9.57 9.57 0 00-.757-3.751 9.662 9.662 0 00-5.129-5.129 9.587 9.587 0 00-3.749-.755.788.788 0 010-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 013.562 2.403 11.157 11.157 0 013.283 7.927.785.785 0 01-.786.788z",
851
+ fill: "currentColor"
852
+ })
853
+ });
854
+ }
855
+ function LoadingIcon(props) {
856
+ const {
857
+ USE_NEW_ICONS
858
+ } = useDesignSystemFlags();
859
+ const component = USE_NEW_ICONS ? SvgLoadingIconV2 : SvgLoadingIconV1;
860
+ return jsx(Icon, {
861
+ ...props,
862
+ component: component
863
+ });
864
+ }
865
+
704
866
  function SvgNewWindowIconV1(props) {
705
867
  return jsx("svg", {
706
868
  width: "1em",
@@ -745,6 +907,103 @@ function NewWindowIcon(props) {
745
907
  });
746
908
  }
747
909
 
910
+ function SvgSearchIconV1(props) {
911
+ return jsx("svg", {
912
+ width: "1em",
913
+ height: "1em",
914
+ viewBox: "0 0 24 24",
915
+ fill: "none",
916
+ xmlns: "http://www.w3.org/2000/svg",
917
+ ...props,
918
+ children: jsx("path", {
919
+ fillRule: "evenodd",
920
+ clipRule: "evenodd",
921
+ d: "M15.187 14.472h.79l4.24 4.26c.41.41.41 1.08 0 1.49-.41.41-1.08.41-1.49 0l-4.25-4.25v-.79l-.27-.28a6.5 6.5 0 01-5.34 1.48c-2.78-.47-5-2.79-5.34-5.59a6.505 6.505 0 017.27-7.27c2.8.34 5.12 2.56 5.59 5.34a6.5 6.5 0 01-1.48 5.34l.28.27zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5z",
922
+ fill: "currentColor"
923
+ })
924
+ });
925
+ }
926
+ function SvgSearchIconV2(props) {
927
+ return jsxs("svg", {
928
+ width: "1em",
929
+ height: "1em",
930
+ viewBox: "0 0 16 16",
931
+ fill: "none",
932
+ xmlns: "http://www.w3.org/2000/svg",
933
+ ...props,
934
+ children: [jsx("g", {
935
+ clipPath: "url(#SearchIcon_svg__clip0_13123_34883)",
936
+ children: jsx("path", {
937
+ fillRule: "evenodd",
938
+ clipRule: "evenodd",
939
+ d: "M8 1a7 7 0 104.39 12.453l2.55 2.55 1.06-1.06-2.55-2.55A7 7 0 008 1zM2.5 8a5.5 5.5 0 1111 0 5.5 5.5 0 01-11 0z",
940
+ fill: "currentColor"
941
+ })
942
+ }), jsx("defs", {
943
+ children: jsx("clipPath", {
944
+ id: "SearchIcon_svg__clip0_13123_34883",
945
+ children: jsx("path", {
946
+ fill: "#fff",
947
+ d: "M0 0h16v16H0z"
948
+ })
949
+ })
950
+ })]
951
+ });
952
+ }
953
+ function SearchIcon(props) {
954
+ const {
955
+ USE_NEW_ICONS
956
+ } = useDesignSystemFlags();
957
+ const component = USE_NEW_ICONS ? SvgSearchIconV2 : SvgSearchIconV1;
958
+ return jsx(Icon, {
959
+ ...props,
960
+ component: component
961
+ });
962
+ }
963
+
964
+ function SvgXCircleFillIconV1(props) {
965
+ return jsx("svg", {
966
+ width: "1em",
967
+ height: "1em",
968
+ viewBox: "0 0 24 24",
969
+ fill: "none",
970
+ xmlns: "http://www.w3.org/2000/svg",
971
+ ...props,
972
+ children: jsx("path", {
973
+ fillRule: "evenodd",
974
+ clipRule: "evenodd",
975
+ d: "M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm11.414 0l2.122-2.121a1.003 1.003 0 000-1.415 1.003 1.003 0 00-1.415 0L12 10.586 9.879 8.464a1.003 1.003 0 00-1.415 0 1.003 1.003 0 000 1.415L10.586 12l-2.122 2.121a1.003 1.003 0 000 1.415 1.003 1.003 0 001.415 0L12 13.414l2.121 2.122a1.003 1.003 0 001.415 0 1.003 1.003 0 000-1.415L13.414 12z",
976
+ fill: "currentColor"
977
+ })
978
+ });
979
+ }
980
+ function SvgXCircleFillIconV2(props) {
981
+ return jsx("svg", {
982
+ width: "1em",
983
+ height: "1em",
984
+ viewBox: "0 0 16 16",
985
+ fill: "none",
986
+ xmlns: "http://www.w3.org/2000/svg",
987
+ ...props,
988
+ children: jsx("path", {
989
+ fillRule: "evenodd",
990
+ clipRule: "evenodd",
991
+ d: "M8 16A8 8 0 108 0a8 8 0 000 16zm1.97-4.97L8 9.06l-1.97 1.97-1.06-1.06L6.94 8 4.97 6.03l1.06-1.06L8 6.94l1.97-1.97 1.06 1.06L9.06 8l1.97 1.97-1.06 1.06z",
992
+ fill: "currentColor"
993
+ })
994
+ });
995
+ }
996
+ function XCircleFillIcon(props) {
997
+ const {
998
+ USE_NEW_ICONS
999
+ } = useDesignSystemFlags();
1000
+ const component = USE_NEW_ICONS ? SvgXCircleFillIconV2 : SvgXCircleFillIconV1;
1001
+ return jsx(Icon, {
1002
+ ...props,
1003
+ component: component
1004
+ });
1005
+ }
1006
+
748
1007
  function SvgSortAscendingIcon(props) {
749
1008
  return jsx("svg", {
750
1009
  width: "1em",
@@ -884,6 +1143,472 @@ function getValidationStateColor(theme, validationState) {
884
1143
  }
885
1144
  }
886
1145
 
1146
+ function getDefaultStyles(theme) {
1147
+ return {
1148
+ backgroundColor: theme.colors.actionDefaultBackgroundDefault,
1149
+ borderColor: theme.colors.actionDefaultBorderDefault,
1150
+ color: theme.colors.actionDefaultTextDefault,
1151
+ lineHeight: theme.typography.lineHeightBase,
1152
+ '&:hover': {
1153
+ backgroundColor: theme.colors.actionDefaultBackgroundHover,
1154
+ borderColor: theme.colors.actionDefaultBorderHover,
1155
+ color: theme.colors.actionDefaultTextHover
1156
+ },
1157
+ '&:active': {
1158
+ backgroundColor: theme.colors.actionDefaultBackgroundPress,
1159
+ borderColor: theme.colors.actionDefaultBorderPress,
1160
+ color: theme.colors.actionDefaultTextPress
1161
+ }
1162
+ };
1163
+ }
1164
+ function getPrimaryStyles(theme) {
1165
+ return {
1166
+ backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
1167
+ borderColor: 'transparent',
1168
+ color: theme.colors.actionPrimaryTextDefault,
1169
+ textShadow: 'none',
1170
+ '&:hover': {
1171
+ backgroundColor: theme.colors.actionPrimaryBackgroundHover,
1172
+ borderColor: 'transparent',
1173
+ color: theme.colors.actionPrimaryTextHover
1174
+ },
1175
+ '&:active': {
1176
+ backgroundColor: theme.colors.actionPrimaryBackgroundPress,
1177
+ borderColor: 'transparent',
1178
+ color: theme.colors.actionPrimaryTextPress
1179
+ }
1180
+ };
1181
+ }
1182
+ function getLinkStyles$1(theme) {
1183
+ return {
1184
+ backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
1185
+ borderColor: theme.colors.actionTertiaryBackgroundDefault,
1186
+ color: theme.colors.actionTertiaryTextDefault,
1187
+ '&:hover': {
1188
+ backgroundColor: theme.colors.actionTertiaryBackgroundHover,
1189
+ borderColor: 'transparent',
1190
+ color: theme.colors.actionTertiaryTextHover
1191
+ },
1192
+ '&:active': {
1193
+ backgroundColor: theme.colors.actionTertiaryBackgroundPress,
1194
+ borderColor: 'transparent',
1195
+ color: theme.colors.actionTertiaryTextPress
1196
+ },
1197
+ '&[disabled]:hover': {
1198
+ background: 'none',
1199
+ color: theme.colors.actionDisabledText
1200
+ }
1201
+ };
1202
+ }
1203
+ function getPrimaryDangerStyles(theme) {
1204
+ return {
1205
+ backgroundColor: theme.colors.actionDangerPrimaryBackgroundDefault,
1206
+ borderColor: 'transparent',
1207
+ color: theme.colors.white,
1208
+ '&:hover': {
1209
+ backgroundColor: theme.colors.actionDangerPrimaryBackgroundHover,
1210
+ borderColor: 'transparent',
1211
+ color: theme.colors.white
1212
+ },
1213
+ '&:active': {
1214
+ backgroundColor: theme.colors.actionDangerPrimaryBackgroundPress,
1215
+ borderColor: 'transparent',
1216
+ color: theme.colors.white
1217
+ },
1218
+ '&:focus-visible': {
1219
+ outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
1220
+ }
1221
+ };
1222
+ }
1223
+ function getSecondaryDangerStyles(theme) {
1224
+ return {
1225
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundDefault,
1226
+ borderColor: theme.colors.actionDangerDefaultBorderDefault,
1227
+ color: theme.colors.actionDangerDefaultTextDefault,
1228
+ '&:hover': {
1229
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundHover,
1230
+ borderColor: theme.colors.actionDangerDefaultBorderHover,
1231
+ color: theme.colors.actionDangerDefaultTextHover
1232
+ },
1233
+ '&:active': {
1234
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundPress,
1235
+ borderColor: theme.colors.actionDangerDefaultBorderPress,
1236
+ color: theme.colors.actionDangerDefaultTextPress
1237
+ },
1238
+ '&:focus-visible': {
1239
+ outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
1240
+ }
1241
+ };
1242
+ }
1243
+ function getDisabledStyles(theme) {
1244
+ return {
1245
+ backgroundColor: theme.colors.actionDisabledBackground,
1246
+ borderColor: 'transparent',
1247
+ color: theme.colors.actionDisabledText,
1248
+ '&:hover': {
1249
+ backgroundColor: theme.colors.actionDisabledBackground,
1250
+ borderColor: 'transparent',
1251
+ color: theme.colors.actionDisabledText
1252
+ },
1253
+ '&:active': {
1254
+ backgroundColor: theme.colors.actionDisabledBackground,
1255
+ borderColor: 'transparent',
1256
+ color: theme.colors.actionDisabledText
1257
+ }
1258
+ };
1259
+ }
1260
+ function getDisabledTertiaryStyles(theme) {
1261
+ return {
1262
+ backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
1263
+ borderColor: 'transparent',
1264
+ color: theme.colors.actionDisabledText,
1265
+ '&:hover': {
1266
+ backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
1267
+ borderColor: 'transparent',
1268
+ color: theme.colors.actionDisabledText
1269
+ },
1270
+ '&:active': {
1271
+ backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
1272
+ borderColor: 'transparent',
1273
+ color: theme.colors.actionDisabledText
1274
+ }
1275
+ };
1276
+ }
1277
+
1278
+ function getEndIconClsName(theme) {
1279
+ return "".concat(theme.general.iconfontCssPrefix, "-btn-end-icon");
1280
+ }
1281
+ const getButtonEmotionStyles = _ref => {
1282
+ let {
1283
+ theme,
1284
+ classNamePrefix,
1285
+ loading,
1286
+ withIcon,
1287
+ onlyIcon,
1288
+ isAnchor,
1289
+ enableAnimation,
1290
+ size,
1291
+ type,
1292
+ isFlex,
1293
+ useNewIcons,
1294
+ useFocusPseudoClass,
1295
+ forceIconStyles
1296
+ } = _ref;
1297
+ const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
1298
+ const clsEndIcon = ".".concat(getEndIconClsName(theme));
1299
+ const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
1300
+ const clsIconOnly = ".".concat(classNamePrefix, "-btn-icon-only");
1301
+ const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
1302
+ const classLink = ".".concat(classNamePrefix, "-btn-link");
1303
+ const classDangerous = ".".concat(classNamePrefix, "-btn-dangerous");
1304
+ const SMALL_BUTTON_HEIGHT = 24;
1305
+ const tertiaryColors = {
1306
+ background: theme.colors.actionTertiaryBackgroundDefault,
1307
+ color: theme.colors.actionTertiaryTextDefault,
1308
+ '&:hover': {
1309
+ background: theme.colors.actionTertiaryBackgroundHover,
1310
+ color: theme.colors.actionTertiaryTextHover
1311
+ },
1312
+ '&:active': {
1313
+ background: theme.colors.actionTertiaryBackgroundPress,
1314
+ color: theme.colors.actionTertiaryTextPress
1315
+ }
1316
+ };
1317
+ const iconCss = {
1318
+ fontSize: useNewIcons ? theme.general.iconFontSizeNew : theme.general.buttonInnerHeight - 4,
1319
+ ...(!isFlex && {
1320
+ // verticalAlign used by AntD to move icon and label to center
1321
+ // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
1322
+ // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
1323
+ verticalAlign: useNewIcons ? -4 : -5,
1324
+ ...(onlyIcon && {
1325
+ verticalAlign: -3
1326
+ }),
1327
+ // verticalAlign used by AntD to move icon and label to center
1328
+ // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
1329
+ // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
1330
+ // Need to make sure not to apply this to regular buttons as it will offset the icons
1331
+ ...(!onlyIcon && {
1332
+ verticalAlign: useNewIcons ? -3 : -4
1333
+ })
1334
+ }),
1335
+ lineHeight: 0,
1336
+ ...(size === 'small' && {
1337
+ lineHeight: theme.typography.lineHeightSm,
1338
+ ...((onlyIcon || forceIconStyles) && {
1339
+ fontSize: 16,
1340
+ ...(isFlex && {
1341
+ height: 16
1342
+ })
1343
+ })
1344
+ })
1345
+ };
1346
+ const inactiveIconCss = {
1347
+ color: theme.colors.grey600
1348
+ };
1349
+ const endIconCssSelector = "span > ".concat(clsEndIcon, " > ").concat(clsIcon);
1350
+ const styles = {
1351
+ lineHeight: theme.typography.lineHeightBase,
1352
+ boxShadow: 'none',
1353
+ height: theme.general.heightSm,
1354
+ ...(isFlex && {
1355
+ display: 'inline-flex',
1356
+ alignItems: 'center',
1357
+ justifyContent: 'center',
1358
+ verticalAlign: 'middle'
1359
+ }),
1360
+ ...(!onlyIcon && !forceIconStyles && {
1361
+ '&&': {
1362
+ padding: '4px 12px',
1363
+ ...(size === 'small' && {
1364
+ padding: '0 8px'
1365
+ })
1366
+ }
1367
+ }),
1368
+ ...((onlyIcon || forceIconStyles) && {
1369
+ width: theme.general.heightSm
1370
+ }),
1371
+ ...(size === 'small' && {
1372
+ height: SMALL_BUTTON_HEIGHT,
1373
+ lineHeight: theme.typography.lineHeightBase,
1374
+ ...((onlyIcon || forceIconStyles) && {
1375
+ width: SMALL_BUTTON_HEIGHT,
1376
+ paddingTop: 0,
1377
+ paddingBottom: 0,
1378
+ verticalAlign: 'middle'
1379
+ })
1380
+ }),
1381
+ '&:focus-visible': {
1382
+ outlineStyle: 'solid',
1383
+ outlineWidth: '2px',
1384
+ outlineOffset: '1px',
1385
+ outlineColor: theme.themeName === 'dark' ? theme.colors.actionDefaultBorderFocus : theme.colors.primary
1386
+ },
1387
+ ...getDefaultStyles(theme),
1388
+ ["&".concat(classPrimary)]: {
1389
+ ...getPrimaryStyles(theme)
1390
+ },
1391
+ ["&".concat(classLink)]: {
1392
+ ...getLinkStyles$1(theme),
1393
+ ...(type === 'link' && {
1394
+ padding: 'unset',
1395
+ height: 'auto',
1396
+ border: 'none',
1397
+ boxShadow: 'none',
1398
+ '&[disabled],&:hover': {
1399
+ background: 'none'
1400
+ }
1401
+ })
1402
+ },
1403
+ ["&".concat(classDangerous).concat(classPrimary)]: {
1404
+ ...getPrimaryDangerStyles(theme)
1405
+ },
1406
+ ["&".concat(classDangerous)]: {
1407
+ ...getSecondaryDangerStyles(theme)
1408
+ },
1409
+ ["&[disabled], &".concat(classDangerous, ":disabled")]: {
1410
+ ...getDisabledStyles(theme),
1411
+ ...((onlyIcon || forceIconStyles) && {
1412
+ backgroundColor: 'transparent',
1413
+ '&:hover': {
1414
+ backgroundColor: 'transparent'
1415
+ },
1416
+ '&:active': {
1417
+ backgroundColor: 'transparent'
1418
+ }
1419
+ })
1420
+ },
1421
+ // Loading styles
1422
+ ...(loading && {
1423
+ '::before': {
1424
+ opacity: 0
1425
+ },
1426
+ ["".concat(clsLoadingIcon)]: {
1427
+ ...(onlyIcon ? {
1428
+ // In case of only icon, the icon is already centered but vertically not aligned, this fixes that
1429
+ verticalAlign: 'middle'
1430
+ } : {
1431
+ // Position loading indicator in center
1432
+ // This would break vertical centering of loading circle when onlyIcon is true
1433
+ position: 'absolute'
1434
+ }),
1435
+ ...(!isFlex && !forceIconStyles && {
1436
+ // Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
1437
+ left: 'calc(50% - 7px)'
1438
+ }),
1439
+ // Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
1440
+ svg: {
1441
+ animationDuration: '1s !important'
1442
+ }
1443
+ },
1444
+ ["> :not(".concat(clsLoadingIcon, ")")]: {
1445
+ // Hide all content except loading icon
1446
+ opacity: 0,
1447
+ visibility: 'hidden',
1448
+ // Add horizontal space for icon
1449
+ ...(withIcon && {
1450
+ paddingLeft: theme.spacing.sm * 2 + 14
1451
+ })
1452
+ }
1453
+ }),
1454
+ // Icon styles
1455
+ ["> ".concat(clsIcon, " + span, > span + ").concat(clsIcon)]: {
1456
+ marginRight: 0
1457
+ },
1458
+ ["> ".concat(clsIcon)]: iconCss,
1459
+ ["> ".concat(endIconCssSelector)]: {
1460
+ ...iconCss,
1461
+ marginLeft: size === 'small' ? 8 : 12
1462
+ },
1463
+ ...(!type && {
1464
+ ["&:enabled:not(:hover):not(:active) > ".concat(clsIcon)]: inactiveIconCss
1465
+ }),
1466
+ ...(!type && {
1467
+ ["&:enabled:not(:hover):not(:active) > ".concat(endIconCssSelector)]: inactiveIconCss
1468
+ }),
1469
+ // Disable animations
1470
+ ["&[".concat(classNamePrefix, "-click-animating-without-extra-node='true']::after")]: {
1471
+ display: 'none'
1472
+ },
1473
+ ["&".concat(clsIconOnly)]: {
1474
+ border: 'none',
1475
+ ["&:enabled:not(".concat(classLink, ")")]: {
1476
+ ...tertiaryColors,
1477
+ color: theme.colors.textSecondary
1478
+ },
1479
+ ...(isAnchor && {
1480
+ lineHeight: "".concat(theme.general.heightSm, "px"),
1481
+ ...getLinkStyles$1(theme),
1482
+ '&:disabled': {
1483
+ color: theme.colors.actionDisabledText
1484
+ }
1485
+ }),
1486
+ '&[disabled]:hover': {
1487
+ backgroundColor: 'transparent'
1488
+ }
1489
+ },
1490
+ ["&:focus"]: {
1491
+ ...(useFocusPseudoClass && {
1492
+ outlineStyle: 'solid',
1493
+ outlineWidth: '2px',
1494
+ outlineOffset: '1px',
1495
+ outlineColor: theme.themeName === 'dark' ? theme.colors.actionDefaultBorderFocus : theme.colors.primary
1496
+ }),
1497
+ ["".concat(clsLoadingIcon)]: {
1498
+ ...(onlyIcon && {
1499
+ // Mitigate wrong left offset for loading state with onlyIcon
1500
+ left: 0
1501
+ })
1502
+ }
1503
+ },
1504
+ ...(forceIconStyles && {
1505
+ padding: '0 6px',
1506
+ lineHeight: theme.typography.lineHeightSm,
1507
+ color: theme.colors.textSecondary,
1508
+ '& > span': {
1509
+ verticalAlign: -1,
1510
+ height: theme.general.heightSm / 2,
1511
+ width: theme.general.heightSm / 2
1512
+ },
1513
+ ["& > ".concat(clsLoadingIcon, " .anticon")]: {
1514
+ // left: `calc(50% - 6px)!important`,
1515
+ height: theme.general.heightSm / 2,
1516
+ width: theme.general.heightSm / 2,
1517
+ padding: 0
1518
+ }
1519
+ }),
1520
+ ...getAnimationCss(enableAnimation)
1521
+ };
1522
+
1523
+ // Moved outside main style object because state & selector matching in the already existing object keys can create bugs and unwanted overwrites
1524
+ const typeStyles = {
1525
+ ...(type === 'tertiary' && {
1526
+ ["&:enabled:not(".concat(clsIconOnly, ")")]: tertiaryColors,
1527
+ ["&".concat(classLink, "[disabled]")]: {
1528
+ ...getDisabledTertiaryStyles(theme)
1529
+ }
1530
+ })
1531
+ };
1532
+ const importantStyles = importantify(styles);
1533
+ const importantTypeStyles = importantify(typeStyles);
1534
+ return /*#__PURE__*/css(importantStyles, importantTypeStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;");
1535
+ };
1536
+ const Button = /* #__PURE__ */(() => {
1537
+ const Button = /*#__PURE__*/forwardRef(function Button( // Keep size out of props passed to AntD to make deprecation and eventual removal have 0 impact
1538
+ _ref2, ref) {
1539
+ let {
1540
+ dangerouslySetAntdProps,
1541
+ children,
1542
+ size,
1543
+ type,
1544
+ endIcon,
1545
+ dangerouslySetForceIconStyles,
1546
+ dangerouslyUseFocusPseudoClass,
1547
+ ...props
1548
+ } = _ref2;
1549
+ const {
1550
+ theme,
1551
+ classNamePrefix
1552
+ } = useDesignSystemTheme();
1553
+ const {
1554
+ USE_FLEX_BUTTON: isFlex,
1555
+ USE_NEW_ICONS: useNewIcons
1556
+ } = useDesignSystemFlags();
1557
+ const clsEndIcon = getEndIconClsName(theme);
1558
+ return jsx(DesignSystemAntDConfigProvider, {
1559
+ children: jsx(Button$1, {
1560
+ ...props,
1561
+ css: getButtonEmotionStyles({
1562
+ theme,
1563
+ classNamePrefix,
1564
+ loading: Boolean(props.loading),
1565
+ withIcon: Boolean(props.icon),
1566
+ onlyIcon: Boolean((props.icon || endIcon) && !children),
1567
+ isAnchor: Boolean(props.href && !type),
1568
+ danger: Boolean(props.danger),
1569
+ enableAnimation: theme.options.enableAnimation,
1570
+ size: size || 'middle',
1571
+ type,
1572
+ isFlex,
1573
+ useNewIcons,
1574
+ forceIconStyles: Boolean(dangerouslySetForceIconStyles),
1575
+ useFocusPseudoClass: Boolean(dangerouslyUseFocusPseudoClass)
1576
+ }),
1577
+ href: props.disabled ? undefined : props.href,
1578
+ ...dangerouslySetAntdProps,
1579
+ ref: ref,
1580
+ type: type === 'tertiary' ? 'link' : type,
1581
+ children: children && jsxs("span", {
1582
+ style: {
1583
+ visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible',
1584
+ ...(isFlex && {
1585
+ display: 'inline-flex',
1586
+ alignItems: 'center'
1587
+ })
1588
+ },
1589
+ children: [children, endIcon && jsx("span", {
1590
+ className: clsEndIcon,
1591
+ style: {
1592
+ ...(isFlex && {
1593
+ display: 'inline-flex',
1594
+ alignItems: 'center'
1595
+ })
1596
+ },
1597
+ children: endIcon
1598
+ })]
1599
+ })
1600
+ })
1601
+ });
1602
+ });
1603
+
1604
+ // This is needed for other Ant components that wrap Button, such as Tooltip, to correctly
1605
+ // identify it as an Ant button.
1606
+ // This should be removed if the component is rewritten to no longer be a wrapper around Ant.
1607
+ // See: https://github.com/ant-design/ant-design/blob/6dd39c1f89b4d6632e6ed022ff1bc275ca1e0f1f/components/button/button.tsx#L291
1608
+ Button.__ANT_BUTTON = true;
1609
+ return Button;
1610
+ })();
1611
+
887
1612
  function getCheckboxEmotionStyles(clsPrefix, theme) {
888
1613
  let isHorizontal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
889
1614
  let useNewCheckboxStyles = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
@@ -1105,13 +1830,16 @@ const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref2, ref) {
1105
1830
  "aria-checked": isChecked === null ? 'mixed' : isChecked,
1106
1831
  ...restProps,
1107
1832
  ...dangerouslySetAntdProps,
1108
- children: children
1833
+ children: jsx(RestoreAntDDefaultClsPrefix, {
1834
+ children: children
1835
+ })
1109
1836
  })
1110
1837
  })
1111
1838
  });
1112
1839
  });
1113
1840
  const CheckboxGroup = /*#__PURE__*/forwardRef(function CheckboxGroup(_ref3, ref) {
1114
1841
  let {
1842
+ children,
1115
1843
  layout = 'vertical',
1116
1844
  ...props
1117
1845
  } = _ref3;
@@ -1127,7 +1855,10 @@ const CheckboxGroup = /*#__PURE__*/forwardRef(function CheckboxGroup(_ref3, ref)
1127
1855
  children: jsx(Checkbox$1.Group, {
1128
1856
  ref: ref,
1129
1857
  ...props,
1130
- css: getCheckboxEmotionStyles(clsPrefix, theme, layout === 'horizontal', USE_NEW_CHECKBOX_STYLES)
1858
+ css: getCheckboxEmotionStyles(clsPrefix, theme, layout === 'horizontal', USE_NEW_CHECKBOX_STYLES),
1859
+ children: jsx(RestoreAntDDefaultClsPrefix, {
1860
+ children: children
1861
+ })
1131
1862
  })
1132
1863
  });
1133
1864
  });
@@ -1468,5 +2199,327 @@ const Typography = /* #__PURE__ */(() => {
1468
2199
  return Typography;
1469
2200
  })();
1470
2201
 
1471
- export { ApplyDesignSystemContextOverrides as A, Checkbox as C, DesignSystemAntDConfigProvider as D, Icon as I, NewWindowIcon as N, RestoreAntDDefaultClsPrefix as R, SortAscendingIcon as S, Typography as T, WithDesignSystemThemeHoc as W, __INTERNAL_DO_NOT_USE__Group as _, useDesignSystemFlags as a, useDesignSystemContext as b, getValidationStateColor as c, Title as d, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as e, getWrapperStyle as f, getAnimationCss as g, DesignSystemContext as h, importantify as i, DesignSystemProvider as j, ApplyDesignSystemFlags as k, lightColorList as l, useAntDConfigProviderContext as m, SortDescendingIcon as n, SortUnsortedIcon as o, useDesignSystemTheme as u };
1472
- //# sourceMappingURL=Typography-74e19785.js.map
2202
+ const Tooltip = _ref => {
2203
+ let {
2204
+ children,
2205
+ title,
2206
+ placement = 'top',
2207
+ dataTestId,
2208
+ dangerouslySetAntdProps,
2209
+ ...props
2210
+ } = _ref;
2211
+ const {
2212
+ theme
2213
+ } = useDesignSystemTheme();
2214
+ if (!title) {
2215
+ return jsx(React__default.Fragment, {
2216
+ children: children
2217
+ });
2218
+ }
2219
+ const {
2220
+ overlayInnerStyle,
2221
+ overlayStyle,
2222
+ ...delegatedDangerouslySetAntdProps
2223
+ } = dangerouslySetAntdProps || {};
2224
+ return jsx(DesignSystemAntDConfigProvider, {
2225
+ children: jsx(Tooltip$1
2226
+ // eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
2227
+ , {
2228
+ title: jsx("span", {
2229
+ "data-test-id": dataTestId,
2230
+ children: title
2231
+ }),
2232
+ placement: placement
2233
+ // Always trigger on hover and focus
2234
+ ,
2235
+ trigger: ['hover', 'focus'],
2236
+ overlayInnerStyle: {
2237
+ backgroundColor: '#2F3941',
2238
+ lineHeight: '22px',
2239
+ padding: '4px 8px',
2240
+ boxShadow: theme.general.shadowLow,
2241
+ ...overlayInnerStyle
2242
+ },
2243
+ overlayStyle: {
2244
+ zIndex: theme.options.zIndexBase + 70,
2245
+ ...overlayStyle
2246
+ },
2247
+ css: /*#__PURE__*/css({
2248
+ ...getAnimationCss(theme.options.enableAnimation)
2249
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Tooltip;"),
2250
+ ...delegatedDangerouslySetAntdProps,
2251
+ ...props,
2252
+ children: children
2253
+ })
2254
+ });
2255
+ };
2256
+
2257
+ const getInputEmotionStyles = (clsPrefix, theme, _ref, useNewIcons, useTransparent) => {
2258
+ let {
2259
+ validationState
2260
+ } = _ref;
2261
+ const inputClass = ".".concat(clsPrefix, "-input");
2262
+ const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
2263
+ const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
2264
+ const clearIcon = ".".concat(clsPrefix, "-input-clear-icon");
2265
+ const prefixIcon = ".".concat(clsPrefix, "-input-prefix");
2266
+ const suffixIcon = ".".concat(clsPrefix, "-input-suffix");
2267
+ const validationColor = getValidationStateColor(theme, validationState);
2268
+ const styles = {
2269
+ '&&': {
2270
+ lineHeight: theme.typography.lineHeightBase,
2271
+ minHeight: theme.general.heightSm,
2272
+ ...(validationState && {
2273
+ borderColor: validationColor
2274
+ }),
2275
+ '&:hover': {
2276
+ borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
2277
+ },
2278
+ '&:focus': {
2279
+ outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
2280
+ outlineWidth: 2,
2281
+ outlineOffset: -2,
2282
+ outlineStyle: 'solid',
2283
+ boxShadow: 'none',
2284
+ borderColor: 'transparent'
2285
+ },
2286
+ '&:disabled': {
2287
+ backgroundColor: theme.colors.actionDisabledBackground,
2288
+ color: theme.colors.actionDisabledText
2289
+ }
2290
+ },
2291
+ ["&".concat(inputClass, ", ").concat(inputClass)]: {
2292
+ ...(useTransparent && {
2293
+ backgroundColor: 'transparent'
2294
+ })
2295
+ },
2296
+ ["&".concat(affixClass)]: {
2297
+ ...(useTransparent && {
2298
+ backgroundColor: 'transparent'
2299
+ }),
2300
+ lineHeight: theme.typography.lineHeightBase,
2301
+ paddingTop: 5,
2302
+ paddingBottom: 5,
2303
+ minHeight: theme.general.heightSm,
2304
+ '::before': {
2305
+ lineHeight: theme.typography.lineHeightBase
2306
+ },
2307
+ '&:hover': {
2308
+ borderColor: theme.colors.actionPrimaryBackgroundHover
2309
+ },
2310
+ ["input.".concat(clsPrefix, "-input")]: {
2311
+ borderRadius: 0
2312
+ }
2313
+ },
2314
+ ["&".concat(affixClassFocused)]: {
2315
+ boxShadow: 'none',
2316
+ '&&, &:focus': {
2317
+ outlineColor: theme.colors.actionPrimaryBackgroundDefault,
2318
+ outlineWidth: 2,
2319
+ outlineOffset: -2,
2320
+ outlineStyle: 'solid',
2321
+ boxShadow: 'none',
2322
+ borderColor: 'transparent'
2323
+ }
2324
+ },
2325
+ ...(useNewIcons && {
2326
+ [clearIcon]: {
2327
+ fontSize: theme.general.iconFontSizeNew
2328
+ },
2329
+ [prefixIcon]: {
2330
+ marginRight: theme.spacing.sm
2331
+ },
2332
+ [suffixIcon]: {
2333
+ marginLeft: theme.spacing.sm
2334
+ }
2335
+ }),
2336
+ ...getAnimationCss(theme.options.enableAnimation)
2337
+ };
2338
+ return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
2339
+ };
2340
+ const getInputGroupStyling = clsPrefix => {
2341
+ const inputClass = ".".concat(clsPrefix, "-input");
2342
+ const buttonClass = ".".concat(clsPrefix, "-btn");
2343
+ return /*#__PURE__*/css({
2344
+ ["& > ".concat(inputClass)]: {
2345
+ '&:disabled': {
2346
+ border: 'none'
2347
+ }
2348
+ },
2349
+ ["& > ".concat(buttonClass, " > span")]: {
2350
+ verticalAlign: 'middle'
2351
+ }
2352
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
2353
+ };
2354
+ const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref2, ref) {
2355
+ let {
2356
+ validationState,
2357
+ autoComplete = 'off',
2358
+ dangerouslySetAntdProps,
2359
+ dangerouslyAppendEmotionCSS,
2360
+ ...props
2361
+ } = _ref2;
2362
+ const {
2363
+ classNamePrefix,
2364
+ theme
2365
+ } = useDesignSystemTheme();
2366
+ const {
2367
+ USE_NEW_ICONS: useNewIcons,
2368
+ USE_TRANSPARENT_INPUT: useTransparent
2369
+ } = useDesignSystemFlags();
2370
+ return jsx(DesignSystemAntDConfigProvider, {
2371
+ children: jsx(Input$1.TextArea, {
2372
+ ref: ref,
2373
+ autoComplete: autoComplete,
2374
+ css: [getInputEmotionStyles(classNamePrefix, theme, {
2375
+ validationState
2376
+ }, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
2377
+ ...props,
2378
+ ...dangerouslySetAntdProps
2379
+ })
2380
+ });
2381
+ });
2382
+ const Password = /*#__PURE__*/forwardRef(function Password(_ref3, ref) {
2383
+ let {
2384
+ validationState,
2385
+ autoComplete = 'off',
2386
+ dangerouslySetAntdProps,
2387
+ dangerouslyAppendEmotionCSS,
2388
+ ...props
2389
+ } = _ref3;
2390
+ const {
2391
+ classNamePrefix,
2392
+ theme
2393
+ } = useDesignSystemTheme();
2394
+ const {
2395
+ USE_NEW_ICONS: useNewIcons,
2396
+ USE_TRANSPARENT_INPUT: useTransparent
2397
+ } = useDesignSystemFlags();
2398
+ return jsx(DesignSystemAntDConfigProvider, {
2399
+ children: jsx(Input$1.Password, {
2400
+ visibilityToggle: false,
2401
+ ref: ref,
2402
+ autoComplete: autoComplete,
2403
+ css: [getInputEmotionStyles(classNamePrefix, theme, {
2404
+ validationState
2405
+ }, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
2406
+ ...props,
2407
+ ...dangerouslySetAntdProps
2408
+ })
2409
+ });
2410
+ });
2411
+ const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
2412
+ let {
2413
+ validationState,
2414
+ autoComplete = 'off',
2415
+ dangerouslySetAntdProps,
2416
+ dangerouslyAppendEmotionCSS,
2417
+ ...props
2418
+ } = _ref4;
2419
+ const {
2420
+ classNamePrefix,
2421
+ theme
2422
+ } = useDesignSystemTheme();
2423
+ const {
2424
+ USE_NEW_ICONS: useNewIcons,
2425
+ USE_TRANSPARENT_INPUT: useTransparent
2426
+ } = useDesignSystemFlags();
2427
+ return jsx(DesignSystemAntDConfigProvider, {
2428
+ children: jsx(Input$1, {
2429
+ autoComplete: autoComplete,
2430
+ ref: ref,
2431
+ css: [getInputEmotionStyles(classNamePrefix, theme, {
2432
+ validationState
2433
+ }, useNewIcons, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
2434
+ ...props,
2435
+ ...dangerouslySetAntdProps
2436
+ })
2437
+ });
2438
+ });
2439
+ const Group = _ref5 => {
2440
+ let {
2441
+ dangerouslySetAntdProps,
2442
+ dangerouslyAppendEmotionCSS,
2443
+ compact = true,
2444
+ ...props
2445
+ } = _ref5;
2446
+ const {
2447
+ classNamePrefix
2448
+ } = useDesignSystemTheme();
2449
+ return jsx(DesignSystemAntDConfigProvider, {
2450
+ children: jsx(Input$1.Group, {
2451
+ css: [getInputGroupStyling(classNamePrefix), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
2452
+ compact: compact,
2453
+ ...props,
2454
+ ...dangerouslySetAntdProps
2455
+ })
2456
+ });
2457
+ };
2458
+
2459
+ // Properly creates the namespace and dot-notation components with correct types.
2460
+ const InputNamespace = /* #__PURE__ */Object.assign(DuboisInput, {
2461
+ TextArea,
2462
+ Password,
2463
+ Group
2464
+ });
2465
+ const Input = InputNamespace;
2466
+
2467
+ // TODO: I'm doing this to support storybook's docgen;
2468
+ // We should remove this once we have a better storybook integration,
2469
+ // since these will be exposed in the library's exports.
2470
+ const __INTERNAL_DO_NOT_USE__TextArea = TextArea;
2471
+ const __INTERNAL_DO_NOT_USE__Password = Password;
2472
+ const __INTERNAL_DO_NOT_USE_DEDUPE__Group = Group;
2473
+
2474
+ const rotate = keyframes({
2475
+ '0%': {
2476
+ transform: 'rotate(0deg) translate3d(0, 0, 0)'
2477
+ },
2478
+ '100%': {
2479
+ transform: 'rotate(360deg) translate3d(0, 0, 0)'
2480
+ }
2481
+ });
2482
+ const cssSpinner = function (theme) {
2483
+ let frameRate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
2484
+ let delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2485
+ const styles = {
2486
+ animation: "".concat(rotate, " 1s steps(").concat(frameRate, ", end) infinite"),
2487
+ color: theme.colors.textSecondary,
2488
+ animationDelay: "".concat(delay, "s")
2489
+ };
2490
+ return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:cssSpinner;");
2491
+ };
2492
+ const Spinner = _ref => {
2493
+ let {
2494
+ frameRate,
2495
+ size = 'default',
2496
+ delay,
2497
+ className: propClass,
2498
+ ...props
2499
+ } = _ref;
2500
+ const {
2501
+ classNamePrefix,
2502
+ theme
2503
+ } = useDesignSystemTheme();
2504
+
2505
+ // We use Antd classes to keep styling unchanged
2506
+ // TODO(FEINF-1407): We want to move away from Antd classes and use Emotion for styling in the future
2507
+ const sizeSuffix = size === 'small' ? '-sm' : size === 'large' ? '-lg' : '';
2508
+ const sizeClass = sizeSuffix ? "".concat(classNamePrefix, "-spin").concat(sizeSuffix) : '';
2509
+ const wrapperClass = "".concat(propClass || '', " ").concat(classNamePrefix, "-spin ").concat(sizeClass, " ").concat(classNamePrefix, "-spin-spinning ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
2510
+ const className = "".concat(classNamePrefix, "-spin-dot ").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME).trim();
2511
+ return (
2512
+ // className has to follow {...props}, otherwise is `css` prop is passed down it will overwrite our className
2513
+ jsx("div", {
2514
+ ...props,
2515
+ className: wrapperClass,
2516
+ children: jsx(LoadingIcon, {
2517
+ css: cssSpinner(theme, frameRate, delay),
2518
+ className: className
2519
+ })
2520
+ })
2521
+ );
2522
+ };
2523
+
2524
+ export { ApplyDesignSystemContextOverrides as A, Button as B, ChevronDownIcon as C, DesignSystemAntDConfigProvider as D, SortUnsortedIcon as E, __INTERNAL_DO_NOT_USE__TextArea as F, __INTERNAL_DO_NOT_USE__Password as G, __INTERNAL_DO_NOT_USE_DEDUPE__Group as H, Icon as I, LoadingIcon as L, NewWindowIcon as N, RestoreAntDDefaultClsPrefix as R, Spinner as S, Typography as T, WithDesignSystemThemeHoc as W, XCircleFillIcon as X, __INTERNAL_DO_NOT_USE__Group as _, useDesignSystemFlags as a, CloseIcon as b, useDesignSystemContext as c, CheckIcon as d, Tooltip as e, getValidationStateColor as f, getAnimationCss as g, Input as h, importantify as i, Checkbox as j, Title as k, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as l, getDefaultStyles as m, getPrimaryStyles as n, getDisabledStyles as o, lightColorList as p, getButtonEmotionStyles as q, getWrapperStyle as r, DesignSystemContext as s, DesignSystemProvider as t, useDesignSystemTheme as u, ApplyDesignSystemFlags as v, useAntDConfigProviderContext as w, SearchIcon as x, SortAscendingIcon as y, SortDescendingIcon as z };
2525
+ //# sourceMappingURL=Spinner-140f57ac.js.map