@databricks/design-system 1.12.8 → 1.12.10

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 (408) hide show
  1. package/dist/{Typography-e3d5ff23.js → DropdownMenu-e0c3fc1d.js} +860 -159
  2. package/dist/DropdownMenu-e0c3fc1d.js.map +1 -0
  3. package/dist/{common-1fb3eeb9.js → common-31040b66.js} +1 -1
  4. package/dist/{common-1fb3eeb9.js.map → common-31040b66.js.map} +1 -1
  5. package/dist/design-system/AccessibleContainer/index.d.ts +7 -0
  6. package/dist/design-system/AccessibleContainer/index.d.ts.map +1 -0
  7. package/dist/design-system/Alert/Alert.d.ts.map +1 -1
  8. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +4 -7
  9. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  10. package/dist/design-system/DialogCombobox/DialogCombobox.d.ts +3 -1
  11. package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +1 -1
  12. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +2 -0
  13. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -0
  14. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts +3 -1
  15. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
  16. package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts +2 -0
  17. package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts.map +1 -0
  18. package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts +7 -0
  19. package/dist/design-system/DialogCombobox/DialogComboboxHintRow.d.ts.map +1 -0
  20. package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +2 -1
  21. package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +1 -1
  22. package/dist/design-system/DialogCombobox/DialogComboboxOptionList.d.ts.map +1 -1
  23. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +1 -0
  24. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
  25. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
  26. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +1 -0
  27. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  28. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +4 -2
  29. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  30. package/dist/design-system/DialogCombobox/index.d.ts +2 -0
  31. package/dist/design-system/DialogCombobox/index.d.ts.map +1 -1
  32. package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts +7 -0
  33. package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts.map +1 -1
  34. package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts +2 -2
  35. package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts.map +1 -1
  36. package/dist/design-system/DialogCombobox/shared.d.ts +3 -0
  37. package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
  38. package/dist/design-system/Drawer/Drawer.d.ts +7 -2
  39. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  40. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +7 -0
  41. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  42. package/dist/design-system/FormV2/RHFAdapters.d.ts +38 -1
  43. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  44. package/dist/design-system/Header/Header.d.ts.map +1 -1
  45. package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts +4 -0
  46. package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts.map +1 -0
  47. package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts +4 -0
  48. package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts.map +1 -0
  49. package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts +4 -0
  50. package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts.map +1 -0
  51. package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +4 -0
  52. package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts.map +1 -0
  53. package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts +4 -0
  54. package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts.map +1 -0
  55. package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts +4 -0
  56. package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts.map +1 -0
  57. package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts.map +1 -1
  58. package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts +4 -0
  59. package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts.map +1 -0
  60. package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts +4 -0
  61. package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts.map +1 -0
  62. package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts +4 -0
  63. package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts.map +1 -0
  64. package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +4 -0
  65. package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts.map +1 -0
  66. package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts +4 -0
  67. package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts.map +1 -0
  68. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts +4 -0
  69. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts.map +1 -0
  70. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts +4 -0
  71. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts.map +1 -0
  72. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts +4 -0
  73. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts.map +1 -0
  74. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts +4 -0
  75. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts.map +1 -0
  76. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
  77. package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts +4 -0
  78. package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts.map +1 -0
  79. package/dist/design-system/Icon/__generated/icons/index.d.ts +16 -1
  80. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  81. package/dist/design-system/Input/Input.d.ts.map +1 -1
  82. package/dist/design-system/Layout/Layout.d.ts +3 -0
  83. package/dist/design-system/Layout/Layout.d.ts.map +1 -1
  84. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  85. package/dist/{development → design-system}/SelectV2/Select.d.ts +1 -1
  86. package/dist/design-system/SelectV2/Select.d.ts.map +1 -0
  87. package/dist/{development → design-system}/SelectV2/SelectContent.d.ts +1 -1
  88. package/dist/design-system/SelectV2/SelectContent.d.ts.map +1 -0
  89. package/dist/{development → design-system}/SelectV2/SelectOption.d.ts +1 -1
  90. package/dist/design-system/SelectV2/SelectOption.d.ts.map +1 -0
  91. package/dist/design-system/SelectV2/SelectOptionGroup.d.ts.map +1 -0
  92. package/dist/{development → design-system}/SelectV2/SelectTrigger.d.ts +1 -1
  93. package/dist/design-system/SelectV2/SelectTrigger.d.ts.map +1 -0
  94. package/dist/design-system/SelectV2/hooks/useSelectContext.d.ts.map +1 -0
  95. package/dist/design-system/SelectV2/index.d.ts.map +1 -0
  96. package/dist/design-system/SelectV2/providers/SelectContext.d.ts.map +1 -0
  97. package/dist/design-system/Sidebar/Sidebar.d.ts +2 -1
  98. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  99. package/dist/design-system/Skeleton/LegacySkeleton.d.ts +16 -0
  100. package/dist/design-system/Skeleton/LegacySkeleton.d.ts.map +1 -0
  101. package/dist/design-system/Skeleton/index.d.ts +1 -1
  102. package/dist/design-system/Skeleton/index.d.ts.map +1 -1
  103. package/dist/design-system/SkeletonV2/GenericSkeleton.d.ts +12 -0
  104. package/dist/design-system/SkeletonV2/GenericSkeleton.d.ts.map +1 -0
  105. package/dist/design-system/SkeletonV2/ParagraphSkeleton.d.ts +15 -0
  106. package/dist/design-system/SkeletonV2/ParagraphSkeleton.d.ts.map +1 -0
  107. package/dist/design-system/{TableUI → SkeletonV2}/TableSkeleton.d.ts +2 -0
  108. package/dist/design-system/SkeletonV2/TableSkeleton.d.ts.map +1 -0
  109. package/dist/design-system/SkeletonV2/TitleSkeleton.d.ts +12 -0
  110. package/dist/design-system/SkeletonV2/TitleSkeleton.d.ts.map +1 -0
  111. package/dist/design-system/SkeletonV2/index.d.ts +5 -0
  112. package/dist/design-system/SkeletonV2/index.d.ts.map +1 -0
  113. package/dist/design-system/SkeletonV2/utils.d.ts +7 -0
  114. package/dist/design-system/SkeletonV2/utils.d.ts.map +1 -0
  115. package/dist/design-system/Spinner/Spinner.d.ts +1 -0
  116. package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
  117. package/dist/design-system/TableUI/TableCell.d.ts +3 -1
  118. package/dist/design-system/TableUI/TableCell.d.ts.map +1 -1
  119. package/dist/design-system/TableUI/TableHeader.d.ts +3 -1
  120. package/dist/design-system/TableUI/TableHeader.d.ts.map +1 -1
  121. package/dist/design-system/TableUI/TableRowAction.d.ts.map +1 -1
  122. package/dist/design-system/TableUI/index.d.ts +0 -1
  123. package/dist/design-system/TableUI/index.d.ts.map +1 -1
  124. package/dist/design-system/Tag/index.d.ts.map +1 -1
  125. package/dist/design-system/Tooltip/InfoTooltip.d.ts +8 -0
  126. package/dist/design-system/Tooltip/InfoTooltip.d.ts.map +1 -0
  127. package/dist/design-system/Tooltip/index.d.ts +1 -0
  128. package/dist/design-system/Tooltip/index.d.ts.map +1 -1
  129. package/dist/design-system/Tree/Tree.d.ts +2 -2
  130. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  131. package/dist/design-system/Typography/Hint.d.ts +14 -0
  132. package/dist/design-system/Typography/Hint.d.ts.map +1 -0
  133. package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
  134. package/dist/design-system/Typography/Text.d.ts +3 -0
  135. package/dist/design-system/Typography/Text.d.ts.map +1 -1
  136. package/dist/design-system/Typography/Title.d.ts.map +1 -1
  137. package/dist/design-system/Typography/Typography.d.ts +2 -0
  138. package/dist/design-system/Typography/Typography.d.ts.map +1 -1
  139. package/dist/design-system/index.d.ts +3 -0
  140. package/dist/design-system/index.d.ts.map +1 -1
  141. package/dist/design-system/utils/index.d.ts +1 -0
  142. package/dist/design-system/utils/index.d.ts.map +1 -1
  143. package/dist/development/ChatUI/ChatInput.d.ts.map +1 -1
  144. package/dist/development/ChatUI/CodeSnippet.d.ts.map +1 -1
  145. package/dist/development/ChatUI/Feedback.d.ts.map +1 -1
  146. package/dist/development/ChatUI/MessageActionButton.d.ts +4 -0
  147. package/dist/development/ChatUI/MessageActionButton.d.ts.map +1 -0
  148. package/dist/development/ChatUI/MessageHeader.d.ts.map +1 -1
  149. package/dist/development/ChatUI/index.d.ts +1 -0
  150. package/dist/development/ChatUI/index.d.ts.map +1 -1
  151. package/dist/development/ContextMenu/ContextMenu.d.ts +58 -0
  152. package/dist/development/ContextMenu/ContextMenu.d.ts.map +1 -0
  153. package/dist/development/ContextMenu/index.d.ts +2 -0
  154. package/dist/development/ContextMenu/index.d.ts.map +1 -0
  155. package/dist/development/index.d.ts +2 -1
  156. package/dist/development/index.d.ts.map +1 -1
  157. package/dist/development.js +394 -135
  158. package/dist/development.js.map +1 -1
  159. package/dist/flags.d.ts +0 -1
  160. package/dist/flags.d.ts.map +1 -1
  161. package/dist/index-dark.css +230 -3520
  162. package/dist/index.css +230 -3520
  163. package/dist/index.js +3334 -2650
  164. package/dist/index.js.map +1 -1
  165. package/dist/rollup/less.d.ts +3 -0
  166. package/dist/rollup/less.d.ts.map +1 -0
  167. package/dist/styles.js +1 -0
  168. package/dist/styles.js.map +1 -0
  169. package/dist/test-utils/enzyme.js +6 -3
  170. package/dist/test-utils/enzyme.js.map +1 -1
  171. package/dist/test-utils/rtl/selectEvent.d.ts.map +1 -1
  172. package/dist/test-utils/rtl.js +55 -13
  173. package/dist/test-utils/rtl.js.map +1 -1
  174. package/dist/theme/colorList.d.ts +10 -0
  175. package/dist/theme/colorList.d.ts.map +1 -1
  176. package/dist/theme/colors.d.ts.map +1 -1
  177. package/package.json +28 -34
  178. package/dist/Spinner-140f57ac.js +0 -2525
  179. package/dist/Spinner-140f57ac.js.map +0 -1
  180. package/dist/Typography-1b037412.js +0 -2074
  181. package/dist/Typography-1b037412.js.map +0 -1
  182. package/dist/Typography-e3d5ff23.js.map +0 -1
  183. package/dist/common-3ab0e300.js +0 -15
  184. package/dist/common-3ab0e300.js.map +0 -1
  185. package/dist/common-819b45d4.js +0 -15
  186. package/dist/common-819b45d4.js.map +0 -1
  187. package/dist/design-system/Button/Button.test.d.ts +0 -2
  188. package/dist/design-system/Button/Button.test.d.ts.map +0 -1
  189. package/dist/design-system/Checkbox/Checkbox.test.d.ts +0 -2
  190. package/dist/design-system/Checkbox/Checkbox.test.d.ts.map +0 -1
  191. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts +0 -2
  192. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts.map +0 -1
  193. package/dist/design-system/DesignSystemProvider/DesignSystemThemeProvider.test.d.ts +0 -2
  194. package/dist/design-system/DesignSystemProvider/DesignSystemThemeProvider.test.d.ts.map +0 -1
  195. package/dist/design-system/DialogCombobox/tests/DialogCombobox.test.d.ts +0 -2
  196. package/dist/design-system/DialogCombobox/tests/DialogCombobox.test.d.ts.map +0 -1
  197. package/dist/design-system/DialogCombobox/tests/DialogComboboxButtonContainer.test.d.ts +0 -2
  198. package/dist/design-system/DialogCombobox/tests/DialogComboboxButtonContainer.test.d.ts.map +0 -1
  199. package/dist/design-system/DialogCombobox/tests/DialogComboboxContent.test.d.ts +0 -2
  200. package/dist/design-system/DialogCombobox/tests/DialogComboboxContent.test.d.ts.map +0 -1
  201. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionList.test.d.ts +0 -2
  202. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionList.test.d.ts.map +0 -1
  203. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListCheckboxItem.test.d.ts +0 -2
  204. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListCheckboxItem.test.d.ts.map +0 -1
  205. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListSelectItem.test.d.ts +0 -2
  206. package/dist/design-system/DialogCombobox/tests/DialogComboboxOptionListSelectItem.test.d.ts.map +0 -1
  207. package/dist/design-system/DialogCombobox/tests/DialogComboboxTrigger.test.d.ts +0 -2
  208. package/dist/design-system/DialogCombobox/tests/DialogComboboxTrigger.test.d.ts.map +0 -1
  209. package/dist/design-system/DropdownMenu/DropdownMenu.test.d.ts +0 -2
  210. package/dist/design-system/DropdownMenu/DropdownMenu.test.d.ts.map +0 -1
  211. package/dist/design-system/Icon/__generated/icons/AppIcon.v2.d.ts +0 -4
  212. package/dist/design-system/Icon/__generated/icons/AppIcon.v2.d.ts.map +0 -1
  213. package/dist/design-system/Icon/__generated/icons/BinaryIcon.v2.d.ts +0 -4
  214. package/dist/design-system/Icon/__generated/icons/BinaryIcon.v2.d.ts.map +0 -1
  215. package/dist/design-system/Icon/__generated/icons/BoldIcon.v2.d.ts +0 -4
  216. package/dist/design-system/Icon/__generated/icons/BoldIcon.v2.d.ts.map +0 -1
  217. package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.v2.d.ts +0 -4
  218. package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.v2.d.ts.map +0 -1
  219. package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.v2.d.ts +0 -4
  220. package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.v2.d.ts.map +0 -1
  221. package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts +0 -4
  222. package/dist/design-system/Icon/__generated/icons/BracketsXIcon.v2.d.ts.map +0 -1
  223. package/dist/design-system/Icon/__generated/icons/CatalogIcon.v2.d.ts +0 -4
  224. package/dist/design-system/Icon/__generated/icons/CatalogIcon.v2.d.ts.map +0 -1
  225. package/dist/design-system/Icon/__generated/icons/ChartLineIcon.v2.d.ts +0 -4
  226. package/dist/design-system/Icon/__generated/icons/ChartLineIcon.v2.d.ts.map +0 -1
  227. package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.v2.d.ts +0 -4
  228. package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.v2.d.ts.map +0 -1
  229. package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.v2.d.ts +0 -4
  230. package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.v2.d.ts.map +0 -1
  231. package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts +0 -4
  232. package/dist/design-system/Icon/__generated/icons/CloudModelIcon.v2.d.ts.map +0 -1
  233. package/dist/design-system/Icon/__generated/icons/ColorFillIcon.v2.d.ts +0 -4
  234. package/dist/design-system/Icon/__generated/icons/ColorFillIcon.v2.d.ts.map +0 -1
  235. package/dist/design-system/Icon/__generated/icons/ConnectIcon.v2.d.ts +0 -4
  236. package/dist/design-system/Icon/__generated/icons/ConnectIcon.v2.d.ts.map +0 -1
  237. package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts +0 -4
  238. package/dist/design-system/Icon/__generated/icons/CursorIcon.v2.d.ts.map +0 -1
  239. package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts +0 -4
  240. package/dist/design-system/Icon/__generated/icons/DagIcon.v2.d.ts.map +0 -1
  241. package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts +0 -4
  242. package/dist/design-system/Icon/__generated/icons/DecimalIcon.v2.d.ts.map +0 -1
  243. package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts +0 -4
  244. package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.v2.d.ts.map +0 -1
  245. package/dist/design-system/Icon/__generated/icons/FontIcon.v2.d.ts +0 -4
  246. package/dist/design-system/Icon/__generated/icons/FontIcon.v2.d.ts.map +0 -1
  247. package/dist/design-system/Icon/__generated/icons/FunctionIcon.v2.d.ts +0 -4
  248. package/dist/design-system/Icon/__generated/icons/FunctionIcon.v2.d.ts.map +0 -1
  249. package/dist/design-system/Icon/__generated/icons/GiftIcon.v2.d.ts +0 -4
  250. package/dist/design-system/Icon/__generated/icons/GiftIcon.v2.d.ts.map +0 -1
  251. package/dist/design-system/Icon/__generated/icons/ItalicIcon.v2.d.ts +0 -4
  252. package/dist/design-system/Icon/__generated/icons/ItalicIcon.v2.d.ts.map +0 -1
  253. package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts +0 -4
  254. package/dist/design-system/Icon/__generated/icons/LettersIcon.v2.d.ts.map +0 -1
  255. package/dist/design-system/Icon/__generated/icons/MenuIcon.v2.d.ts +0 -4
  256. package/dist/design-system/Icon/__generated/icons/MenuIcon.v2.d.ts.map +0 -1
  257. package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.v2.d.ts +0 -4
  258. package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.v2.d.ts.map +0 -1
  259. package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts +0 -4
  260. package/dist/design-system/Icon/__generated/icons/NumbersIcon.v2.d.ts.map +0 -1
  261. package/dist/design-system/Icon/__generated/icons/PipelineIcon.v2.d.ts +0 -4
  262. package/dist/design-system/Icon/__generated/icons/PipelineIcon.v2.d.ts.map +0 -1
  263. package/dist/design-system/Icon/__generated/icons/PlugIcon.v2.d.ts +0 -4
  264. package/dist/design-system/Icon/__generated/icons/PlugIcon.v2.d.ts.map +0 -1
  265. package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts +0 -4
  266. package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts.map +0 -1
  267. package/dist/design-system/Icon/__generated/icons/SaveIcon.v2.d.ts +0 -4
  268. package/dist/design-system/Icon/__generated/icons/SaveIcon.v2.d.ts.map +0 -1
  269. package/dist/design-system/Icon/__generated/icons/SlidersIcon.v2.d.ts +0 -4
  270. package/dist/design-system/Icon/__generated/icons/SlidersIcon.v2.d.ts.map +0 -1
  271. package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.v2.d.ts +0 -4
  272. package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.v2.d.ts.map +0 -1
  273. package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.v2.d.ts +0 -4
  274. package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.v2.d.ts.map +0 -1
  275. package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.v2.d.ts +0 -4
  276. package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.v2.d.ts.map +0 -1
  277. package/dist/design-system/Icon/__generated/icons/StorefrontIcon.v2.d.ts +0 -4
  278. package/dist/design-system/Icon/__generated/icons/StorefrontIcon.v2.d.ts.map +0 -1
  279. package/dist/design-system/Icon/__generated/icons/TextBoxIcon.v2.d.ts +0 -4
  280. package/dist/design-system/Icon/__generated/icons/TextBoxIcon.v2.d.ts.map +0 -1
  281. package/dist/design-system/Icon/__generated/icons/UnderlineIcon.v2.d.ts +0 -4
  282. package/dist/design-system/Icon/__generated/icons/UnderlineIcon.v2.d.ts.map +0 -1
  283. package/dist/design-system/Icon/__generated/icons/VariableIcon.d.ts +0 -4
  284. package/dist/design-system/Icon/__generated/icons/VariableIcon.d.ts.map +0 -1
  285. package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts +0 -4
  286. package/dist/design-system/Icon/__generated/icons/VariableIcon.v2.d.ts.map +0 -1
  287. package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.v2.d.ts +0 -4
  288. package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.v2.d.ts.map +0 -1
  289. package/dist/design-system/Input/Input.test.d.ts +0 -2
  290. package/dist/design-system/Input/Input.test.d.ts.map +0 -1
  291. package/dist/design-system/LegacyNotification/LegacyNotification.test.d.ts +0 -2
  292. package/dist/design-system/LegacyNotification/LegacyNotification.test.d.ts.map +0 -1
  293. package/dist/design-system/Modal/Modal.test.d.ts +0 -2
  294. package/dist/design-system/Modal/Modal.test.d.ts.map +0 -1
  295. package/dist/design-system/Notification/Notification.test.d.ts +0 -2
  296. package/dist/design-system/Notification/Notification.test.d.ts.map +0 -1
  297. package/dist/design-system/NotificationV2/NotificationV2.d.ts +0 -24
  298. package/dist/design-system/NotificationV2/NotificationV2.d.ts.map +0 -1
  299. package/dist/design-system/NotificationV2/index.d.ts +0 -2
  300. package/dist/design-system/NotificationV2/index.d.ts.map +0 -1
  301. package/dist/design-system/Popover/Popover.test.d.ts +0 -2
  302. package/dist/design-system/Popover/Popover.test.d.ts.map +0 -1
  303. package/dist/design-system/PopoverV2/PopoverV2.d.ts +0 -11
  304. package/dist/design-system/PopoverV2/PopoverV2.d.ts.map +0 -1
  305. package/dist/design-system/PopoverV2/PopoverV2.test.d.ts +0 -2
  306. package/dist/design-system/PopoverV2/PopoverV2.test.d.ts.map +0 -1
  307. package/dist/design-system/PopoverV2/index.d.ts +0 -2
  308. package/dist/design-system/PopoverV2/index.d.ts.map +0 -1
  309. package/dist/design-system/Sidebar/Sidebar.test.d.ts +0 -2
  310. package/dist/design-system/Sidebar/Sidebar.test.d.ts.map +0 -1
  311. package/dist/design-system/Skeleton/Skeleton.d.ts +0 -15
  312. package/dist/design-system/Skeleton/Skeleton.d.ts.map +0 -1
  313. package/dist/design-system/Table/Table.d.ts +0 -17
  314. package/dist/design-system/Table/Table.d.ts.map +0 -1
  315. package/dist/design-system/Table/index.d.ts +0 -2
  316. package/dist/design-system/Table/index.d.ts.map +0 -1
  317. package/dist/design-system/TableUI/TableSkeleton.d.ts.map +0 -1
  318. package/dist/design-system/TableUI/TableUI.test.d.ts +0 -2
  319. package/dist/design-system/TableUI/TableUI.test.d.ts.map +0 -1
  320. package/dist/design-system/utils/accessibility.test.d.ts +0 -2
  321. package/dist/design-system/utils/accessibility.test.d.ts.map +0 -1
  322. package/dist/design-system/utils/safex.test.d.ts +0 -2
  323. package/dist/design-system/utils/safex.test.d.ts.map +0 -1
  324. package/dist/development/Filter/Filter.d.ts +0 -10
  325. package/dist/development/Filter/Filter.d.ts.map +0 -1
  326. package/dist/development/Filter/Filter.test.d.ts +0 -2
  327. package/dist/development/Filter/Filter.test.d.ts.map +0 -1
  328. package/dist/development/Filter/FilterButtonContainer.d.ts +0 -2
  329. package/dist/development/Filter/FilterButtonContainer.d.ts.map +0 -1
  330. package/dist/development/Filter/FilterContent.d.ts +0 -14
  331. package/dist/development/Filter/FilterContent.d.ts.map +0 -1
  332. package/dist/development/Filter/FilterCountBadge.d.ts +0 -2
  333. package/dist/development/Filter/FilterCountBadge.d.ts.map +0 -1
  334. package/dist/development/Filter/FilterLoadingSpinner.d.ts +0 -2
  335. package/dist/development/Filter/FilterLoadingSpinner.d.ts.map +0 -1
  336. package/dist/development/Filter/FilterOptionControlledList.d.ts +0 -9
  337. package/dist/development/Filter/FilterOptionControlledList.d.ts.map +0 -1
  338. package/dist/development/Filter/FilterOptionList.d.ts +0 -10
  339. package/dist/development/Filter/FilterOptionList.d.ts.map +0 -1
  340. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts +0 -11
  341. package/dist/development/Filter/FilterOptionListCheckboxItem.d.ts.map +0 -1
  342. package/dist/development/Filter/FilterOptionListSearch.d.ts +0 -7
  343. package/dist/development/Filter/FilterOptionListSearch.d.ts.map +0 -1
  344. package/dist/development/Filter/FilterOptionListSelectItem.d.ts +0 -10
  345. package/dist/development/Filter/FilterOptionListSelectItem.d.ts.map +0 -1
  346. package/dist/development/Filter/FilterSectionHeader.d.ts +0 -2
  347. package/dist/development/Filter/FilterSectionHeader.d.ts.map +0 -1
  348. package/dist/development/Filter/FilterSeparator.d.ts +0 -2
  349. package/dist/development/Filter/FilterSeparator.d.ts.map +0 -1
  350. package/dist/development/Filter/FilterTrigger.d.ts +0 -15
  351. package/dist/development/Filter/FilterTrigger.d.ts.map +0 -1
  352. package/dist/development/Filter/hooks/useFilterContext.d.ts +0 -2
  353. package/dist/development/Filter/hooks/useFilterContext.d.ts.map +0 -1
  354. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts +0 -2
  355. package/dist/development/Filter/hooks/useFilterOptionListContext.d.ts.map +0 -1
  356. package/dist/development/Filter/index.d.ts +0 -14
  357. package/dist/development/Filter/index.d.ts.map +0 -1
  358. package/dist/development/Filter/providers/FilterContext.d.ts +0 -15
  359. package/dist/development/Filter/providers/FilterContext.d.ts.map +0 -1
  360. package/dist/development/Filter/providers/FilterOptionListContext.d.ts +0 -10
  361. package/dist/development/Filter/providers/FilterOptionListContext.d.ts.map +0 -1
  362. package/dist/development/Filter/shared.d.ts +0 -3
  363. package/dist/development/Filter/shared.d.ts.map +0 -1
  364. package/dist/development/ListPagePattern/index.d.ts +0 -1
  365. package/dist/development/ListPagePattern/index.d.ts.map +0 -1
  366. package/dist/development/SelectV2/Select.d.ts.map +0 -1
  367. package/dist/development/SelectV2/SelectContent.d.ts.map +0 -1
  368. package/dist/development/SelectV2/SelectOption.d.ts.map +0 -1
  369. package/dist/development/SelectV2/SelectOptionGroup.d.ts.map +0 -1
  370. package/dist/development/SelectV2/SelectTrigger.d.ts.map +0 -1
  371. package/dist/development/SelectV2/hooks/useSelectContext.d.ts.map +0 -1
  372. package/dist/development/SelectV2/index.d.ts.map +0 -1
  373. package/dist/development/SelectV2/providers/SelectContext.d.ts.map +0 -1
  374. package/dist/development/TableUI/TableUI.test.d.ts +0 -2
  375. package/dist/development/TableUI/TableUI.test.d.ts.map +0 -1
  376. package/dist/development/TableUI/index.d.ts +0 -75
  377. package/dist/development/TableUI/index.d.ts.map +0 -1
  378. package/dist/index-mfe-dark.css +0 -17525
  379. package/dist/index-mfe.css +0 -17184
  380. package/dist/rollup-less-tilde-importer.d.ts +0 -3
  381. package/dist/rollup-less-tilde-importer.d.ts.map +0 -1
  382. package/dist/test-utils/enzyme/selectEvent.test.d.ts +0 -2
  383. package/dist/test-utils/enzyme/selectEvent.test.d.ts.map +0 -1
  384. package/dist/test-utils/enzyme/table.test.d.ts +0 -2
  385. package/dist/test-utils/enzyme/table.test.d.ts.map +0 -1
  386. package/dist/test-utils/rtl/selectEvent.test.d.ts +0 -2
  387. package/dist/test-utils/rtl/selectEvent.test.d.ts.map +0 -1
  388. package/dist/test-utils/rtl/table.test.d.ts +0 -2
  389. package/dist/test-utils/rtl/table.test.d.ts.map +0 -1
  390. package/dist/tsconfig.build.tsbuildinfo +0 -1
  391. package/dist/useDesignSystemTheme-1e16bcf5.js +0 -441
  392. package/dist/useDesignSystemTheme-1e16bcf5.js.map +0 -1
  393. package/dist/useDesignSystemTheme-3d2c1acb.js +0 -440
  394. package/dist/useDesignSystemTheme-3d2c1acb.js.map +0 -1
  395. package/dist/useDesignSystemTheme-6e6f5867.js +0 -441
  396. package/dist/useDesignSystemTheme-6e6f5867.js.map +0 -1
  397. package/dist/useDesignSystemTheme-ac536b0f.js +0 -443
  398. package/dist/useDesignSystemTheme-ac536b0f.js.map +0 -1
  399. package/dist/useDesignSystemTheme-c859571c.js +0 -468
  400. package/dist/useDesignSystemTheme-c859571c.js.map +0 -1
  401. package/dist/useDesignSystemTheme-c867a35d.js +0 -470
  402. package/dist/useDesignSystemTheme-c867a35d.js.map +0 -1
  403. package/dist/useDesignSystemTheme-ef39204e.js +0 -468
  404. package/dist/useDesignSystemTheme-ef39204e.js.map +0 -1
  405. /package/dist/{development → design-system}/SelectV2/SelectOptionGroup.d.ts +0 -0
  406. /package/dist/{development → design-system}/SelectV2/hooks/useSelectContext.d.ts +0 -0
  407. /package/dist/{development → design-system}/SelectV2/index.d.ts +0 -0
  408. /package/dist/{development → design-system}/SelectV2/providers/SelectContext.d.ts +0 -0
@@ -1,2525 +0,0 @@
1
- import React__default, { createContext, useMemo, useEffect, useContext, forwardRef } from 'react';
2
- import { jsx, jsxs } from '@emotion/react/jsx-runtime';
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
- import classnames from 'classnames';
6
- import _isNil from 'lodash/isNil';
7
- import _endsWith from 'lodash/endsWith';
8
- import _isBoolean from 'lodash/isBoolean';
9
- import _isNumber from 'lodash/isNumber';
10
- import _isString from 'lodash/isString';
11
- import _mapValues from 'lodash/mapValues';
12
- import unitless from '@emotion/unitless';
13
- import chroma from 'chroma-js';
14
- import AntDIcon from '@ant-design/icons';
15
-
16
- // Border variables
17
- const borders = {
18
- borderRadiusMd: 4
19
- };
20
-
21
- // eslint-disable-next-line import/no-anonymous-default-export
22
- var borders$1 = {
23
- ...borders
24
- };
25
-
26
- // Exported from go/designsystem/colorsheet
27
- const colorPalettePrimary = {
28
- primary: '#2272B4',
29
- blue100: '#F0F8FF',
30
- blue200: '#D7EDFE',
31
- blue300: '#BAE1FC',
32
- blue400: '#8ACAFF',
33
- blue500: '#4299E0',
34
- blue600: '#2272B4',
35
- blue700: '#0E538B',
36
- blue800: '#04355D',
37
- green100: '#F3FCF6',
38
- green200: '#D4F7DF',
39
- green300: '#B1ECC5',
40
- green400: '#8DDDA8',
41
- green500: '#3CAA60',
42
- green600: '#277C43',
43
- green700: '#115026',
44
- green800: '#093919',
45
- white: '#FFFFFF',
46
- grey100: '#F2F5F7',
47
- grey200: '#E4ECF1',
48
- grey300: '#CDDAE5',
49
- grey400: '#BDCDDB',
50
- grey500: '#8196A7',
51
- grey600: '#5D7283',
52
- grey700: '#44535F',
53
- grey800: '#1F272D',
54
- red100: '#FFF5F7',
55
- red200: '#FDE2E8',
56
- red300: '#FBD0D8',
57
- red400: '#F792A6',
58
- red500: '#E65B77',
59
- red600: '#C82D4C',
60
- red700: '#9E102C',
61
- red800: '#630316',
62
- yellow100: '#FFF9EB',
63
- yellow200: '#FCEACA',
64
- yellow300: '#F8D4A5',
65
- yellow400: '#F2BE88',
66
- yellow500: '#DE7921',
67
- yellow600: '#BE501E',
68
- yellow700: '#93320B',
69
- yellow800: '#5F1B02'
70
- };
71
- const colorPaletteSecondary = {
72
- brown: '#A6630C',
73
- coral: '#C83243',
74
- charcoal: '#5D7283',
75
- indigo: '#434A93',
76
- lemon: '#FACB66',
77
- lime: '#308613',
78
- pink: '#B45091',
79
- purple: '#8A63BF',
80
- teal: '#04867D',
81
- turquoise: '#157CBC'
82
- };
83
- const lightColorList = {
84
- backgroundPrimary: colorPalettePrimary.white,
85
- actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
86
- actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
87
- actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
88
- actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),
89
- actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),
90
- actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),
91
- actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
92
- actionDangerDefaultBorderHover: colorPalettePrimary.red700,
93
- actionDangerDefaultBorderPress: colorPalettePrimary.red800,
94
- actionDangerDefaultTextDefault: colorPalettePrimary.red600,
95
- actionDangerDefaultTextHover: colorPalettePrimary.red700,
96
- actionDangerDefaultTextPress: colorPalettePrimary.red800,
97
- actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
98
- actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
99
- actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
100
- actionDefaultBorderDefault: colorPalettePrimary.grey300,
101
- actionDefaultBorderFocus: colorPalettePrimary.blue600,
102
- actionDefaultBorderHover: colorPalettePrimary.blue700,
103
- actionDefaultBorderPress: colorPalettePrimary.blue800,
104
- actionDefaultTextDefault: colorPalettePrimary.grey800,
105
- actionDefaultTextHover: colorPalettePrimary.blue700,
106
- actionDefaultTextPress: colorPalettePrimary.blue800,
107
- actionDisabledBackground: colorPalettePrimary.grey200,
108
- actionDisabledText: colorPalettePrimary.grey400,
109
- actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
110
- actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
111
- actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
112
- actionPrimaryTextDefault: colorPalettePrimary.white,
113
- actionPrimaryTextHover: colorPalettePrimary.white,
114
- actionPrimaryTextPress: colorPalettePrimary.white,
115
- actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
116
- actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
117
- actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
118
- actionTertiaryTextDefault: colorPalettePrimary.blue600,
119
- actionTertiaryTextHover: colorPalettePrimary.blue700,
120
- actionTertiaryTextPress: colorPalettePrimary.blue800,
121
- backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
122
- backgroundSecondary: colorPalettePrimary.grey100,
123
- backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
124
- backgroundValidationDanger: colorPalettePrimary.red100,
125
- backgroundValidationSuccess: colorPalettePrimary.blue100,
126
- backgroundValidationWarning: colorPalettePrimary.yellow100,
127
- border: colorPalettePrimary.grey300,
128
- borderDecorative: colorPalettePrimary.grey300,
129
- borderValidationDanger: colorPalettePrimary.red300,
130
- borderValidationWarning: colorPalettePrimary.yellow300,
131
- textPrimary: colorPalettePrimary.grey800,
132
- textSecondary: colorPalettePrimary.grey600,
133
- textPlaceholder: colorPalettePrimary.grey400,
134
- textValidationDanger: colorPalettePrimary.red600,
135
- textValidationSuccess: colorPalettePrimary.green600,
136
- textValidationWarning: colorPalettePrimary.yellow600,
137
- textValidationInfo: colorPalettePrimary.grey600,
138
- overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
139
- // Tags
140
- tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
141
- tagBrown: colorPaletteSecondary.brown,
142
- tagCoral: colorPaletteSecondary.coral,
143
- tagCharcoal: colorPalettePrimary.grey600,
144
- tagIndigo: colorPaletteSecondary.indigo,
145
- tagLemon: colorPaletteSecondary.lemon,
146
- tagLime: colorPaletteSecondary.lime,
147
- tagPink: colorPaletteSecondary.pink,
148
- tagPurple: colorPaletteSecondary.purple,
149
- tagTeal: colorPaletteSecondary.teal,
150
- tagTurquoise: colorPaletteSecondary.turquoise,
151
- tagText: colorPalettePrimary.white,
152
- tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
153
- tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
154
- tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
155
- tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
156
- // Typography
157
- typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
158
- // Table
159
- tableSeparatorColor: colorPalettePrimary.grey200,
160
- tableRowHover: chroma(colorPalettePrimary.grey600).alpha(0.04).hex(),
161
- tooltipBackgroundTooltip: colorPalettePrimary.grey800
162
- };
163
- const darkColorList = {
164
- actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
165
- actionDangerPrimaryBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
166
- actionDangerPrimaryBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
167
- actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0).hex(),
168
- actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.08).hex(),
169
- actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.16).hex(),
170
- actionDangerDefaultBorderDefault: colorPalettePrimary.red400,
171
- actionDangerDefaultBorderHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
172
- actionDangerDefaultBorderPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
173
- actionDangerDefaultTextDefault: colorPalettePrimary.red400,
174
- actionDangerDefaultTextHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
175
- actionDangerDefaultTextPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
176
- actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
177
- actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
178
- actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
179
- actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
180
- actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
181
- actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
182
- actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
183
- actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
184
- actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
185
- actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
186
- actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
187
- actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),
188
- actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
189
- actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
190
- actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
191
- actionPrimaryTextDefault: colorPalettePrimary.grey800,
192
- actionPrimaryTextHover: colorPalettePrimary.grey800,
193
- actionPrimaryTextPress: colorPalettePrimary.grey800,
194
- actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
195
- actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
196
- actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
197
- actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
198
- actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
199
- actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
200
- backgroundPrimary: colorPalettePrimary.grey800,
201
- backgroundSecondary: '#283035',
202
- backgroundValidationDanger: 'transparent',
203
- backgroundValidationSuccess: 'transparent',
204
- backgroundValidationWarning: 'transparent',
205
- border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
206
- borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
207
- borderValidationDanger: colorPalettePrimary.red300,
208
- borderValidationWarning: colorPalettePrimary.yellow300,
209
- textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
210
- textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
211
- textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
212
- textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
213
- textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
214
- textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
215
- textValidationInfo: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
216
- overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
217
- // Tags
218
- tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
219
- tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),
220
- tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),
221
- tagCharcoal: chroma(colorPalettePrimary.grey600).alpha(0.84).hex(),
222
- tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),
223
- tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),
224
- tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),
225
- tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),
226
- tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),
227
- tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),
228
- tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
229
- tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
230
- tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
231
- tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
232
- tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
233
- tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
234
- // Typography
235
- typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
236
- // Table
237
- tableSeparatorColor: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
238
- tableRowHover: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
239
- tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
240
- // Missing in list
241
- backgroundDanger: 'rgba(200,45,76,0.08)',
242
- backgroundWarning: 'rgba(222,121,33,0.08)'
243
- };
244
-
245
- const darkColors = {
246
- ...darkColorList,
247
- ...colorPalettePrimary,
248
- ...colorPaletteSecondary
249
- };
250
- const lightColors = {
251
- ...lightColorList,
252
- ...colorPalettePrimary,
253
- ...colorPaletteSecondary
254
- };
255
- function getSemanticColors(isDarkMode) {
256
- return isDarkMode ? darkColors : lightColors;
257
- }
258
-
259
- // TODO (FEINF-1674): Remove when removing USE_NEW_RADIO_STYLES
260
- /*
261
- Colors that need to be replaced by semantic colors.
262
- */
263
- const deprecatedColors = {
264
- // Radio Colors
265
- radioInteractiveAvailable: colorPalettePrimary.primary,
266
- radioInteractiveHover: '#186099',
267
- radioInteractivePress: '#0D4F85',
268
- radioDisabled: '#A2AEB8',
269
- radioDefaultBorder: '#64727D',
270
- radioDefaultBackground: '#FFFFFF',
271
- radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
272
- // Fade of Interactive Available
273
- radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
274
- };
275
-
276
- function getColors(isDarkMode) {
277
- return {
278
- ...deprecatedColors,
279
- ...getSemanticColors(isDarkMode)
280
- };
281
- }
282
-
283
- // eslint-disable-next-line import/no-anonymous-default-export
284
- var antdVars = {
285
- // IMPORTANT: Do not read this directly from components. Use `React.useContext`.
286
- 'ant-prefix': 'du-bois'
287
- };
288
-
289
- const DEFAULT_SPACING_UNIT = 8;
290
- const MODAL_PADDING = 40;
291
- const spacing = {
292
- xs: DEFAULT_SPACING_UNIT / 2,
293
- sm: DEFAULT_SPACING_UNIT,
294
- md: DEFAULT_SPACING_UNIT * 2,
295
- lg: DEFAULT_SPACING_UNIT * 3
296
- };
297
-
298
- // Less variables that are used by AntD
299
- ({
300
- defaultPaddingLg: spacing.lg,
301
- defaultPaddingMd: spacing.md,
302
- defaultPaddingSm: spacing.sm,
303
- defaultPaddingXs: spacing.sm,
304
- defaultPaddingXss: spacing.xs,
305
- paddingLg: spacing.md,
306
- // TODO: Check if there is a better alternative with team
307
- paddingMd: spacing.sm,
308
- paddingSm: spacing.sm,
309
- paddingXs: spacing.xs,
310
- paddingXss: 0,
311
- marginSm: 12,
312
- marginLg: spacing.lg,
313
- // Button
314
- btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
315
- btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
316
- btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
317
- // Input
318
- inputPaddingHorizontal: DEFAULT_SPACING_UNIT * 1.5,
319
- inputPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 1.5,
320
- inputPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 1.5,
321
- inputPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 1.5,
322
- inputPaddingVertical: spacing.xs + 1,
323
- inputPaddingVerticalBase: spacing.xs + 1,
324
- inputPaddingVerticalSm: spacing.xs + 1,
325
- inputPaddingVerticalLg: spacing.xs + 1,
326
- // Modal
327
- modalPadding: MODAL_PADDING,
328
- modalLessPadding: MODAL_PADDING - 20,
329
- modalHeaderPadding: "".concat(MODAL_PADDING, "px ").concat(MODAL_PADDING, "px ").concat(MODAL_PADDING - 20, "px"),
330
- modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
331
- modalHeaderBorderWidth: 0,
332
- modalBodyPadding: "0 ".concat(MODAL_PADDING, "px"),
333
- modalFooterPaddingVertical: 0,
334
- modalFooterPaddingHorizontal: 0,
335
- modalFooterBorderWidth: 0,
336
- // Switch
337
- switchPadding: 0,
338
- switchHeight: 16,
339
- switchMinWidth: 28,
340
- switchPinSize: 14
341
- });
342
- var spacing$1 = spacing;
343
-
344
- const heightBase = 40;
345
- const borderWidth = 1;
346
- const antdGeneralVariables = {
347
- classnamePrefix: antdVars['ant-prefix'],
348
- iconfontCssPrefix: 'anticon',
349
- borderRadiusBase: 4,
350
- borderWidth: borderWidth,
351
- heightSm: 32,
352
- heightBase: heightBase,
353
- iconSize: 24,
354
- // TODO (FEINF-1545): Update with icon overhaul to 16px
355
- iconFontSize: 13,
356
- iconFontSizeNew: 16,
357
- buttonHeight: heightBase,
358
- // Height available within button (for label and icon). Same for middle and small buttons.
359
- buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
360
- };
361
- const getShadowVariables = isDarkMode => {
362
- if (isDarkMode) {
363
- return {
364
- shadowLow: '0px 4px 16px rgba(0, 0, 0, 0.12)',
365
- shadowHigh: '0px 8px 24px rgba(0, 0, 0, 0.2);'
366
- };
367
- } else {
368
- return {
369
- shadowLow: '0px 4px 16px rgba(31, 39, 45, 0.12)',
370
- shadowHigh: '0px 8px 24px rgba(31, 39, 45, 0.2)'
371
- };
372
- }
373
- };
374
- var generalVariables = antdGeneralVariables;
375
-
376
- const FONT_SIZE_BASE = 13;
377
-
378
- // Less variables that are used by AntD
379
- const antdTypography = {
380
- fontSizeSm: 12,
381
- fontSizeBase: FONT_SIZE_BASE,
382
- fontSizeMd: FONT_SIZE_BASE,
383
- fontSizeLg: 18,
384
- fontSizeXl: 22,
385
- fontSizeXxl: 32,
386
- lineHeightSm: '16px',
387
- lineHeightBase: '20px',
388
- lineHeightMd: '20px',
389
- lineHeightLg: '24px',
390
- lineHeightXl: '28px',
391
- lineHeightXxl: '40px',
392
- typographyBoldFontWeight: 600
393
- };
394
-
395
- // eslint-disable-next-line import/no-anonymous-default-export
396
- var typography = {
397
- ...antdTypography
398
- };
399
-
400
- const defaultOptions = {
401
- enableAnimation: false,
402
- zIndexBase: 1000
403
- };
404
-
405
- // Function to get variables for a certain theme.
406
- // End users should use useDesignSystemTheme instead.
407
- function getTheme(isDarkMode) {
408
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
409
- return {
410
- colors: getColors(isDarkMode),
411
- spacing: spacing$1,
412
- general: {
413
- ...generalVariables,
414
- ...getShadowVariables(isDarkMode)
415
- },
416
- typography,
417
- borders: borders$1,
418
- isDarkMode,
419
- themeName: isDarkMode ? 'dark' : 'default',
420
- options
421
- };
422
- }
423
-
424
- function getClassNamePrefix(theme) {
425
- const antdThemeName = theme.isDarkMode ? 'dark' : 'light';
426
- return "".concat(theme.general.classnamePrefix, "-").concat(antdThemeName);
427
- }
428
- function getPrefixedClassNameFromTheme(theme, className) {
429
- return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
430
- }
431
- function useDesignSystemTheme() {
432
- const emotionTheme = useTheme();
433
- // Graceful fallback to default theme in case a test or developer forgot context.
434
- const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme(false);
435
- return {
436
- theme: theme,
437
- classNamePrefix: getClassNamePrefix(theme),
438
- getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
439
- };
440
- }
441
- // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
442
- function WithDesignSystemThemeHoc(Component) {
443
- return function WrappedWithDesignSystemTheme(props) {
444
- const themeValues = useDesignSystemTheme();
445
- return jsx(Component, {
446
- ...props,
447
- designSystemThemeApi: themeValues
448
- });
449
- };
450
- }
451
-
452
- const DuboisContextDefaults = {
453
- enableAnimation: false,
454
- isDarkMode: false,
455
- theme: 'default',
456
- // Prefer to use useDesignSystemTheme.getPrefixedClassName instead
457
- getPrefixCls: suffix => suffix ? "du-bois-".concat(suffix) : 'du-bois',
458
- flags: {}
459
- };
460
- const DesignSystemContext = /*#__PURE__*/createContext(DuboisContextDefaults);
461
- const DU_BOIS_ENABLE_ANIMATION_CLASSNAME = 'du-bois-enable-animation';
462
- function getAnimationCss(enableAnimation) {
463
- const disableAnimationCss = {
464
- animationDuration: '0s !important',
465
- transition: 'none !important'
466
- };
467
- return enableAnimation ? {} : {
468
- // Apply to the current element
469
- ...disableAnimationCss,
470
- '&::before': disableAnimationCss,
471
- '&::after': disableAnimationCss,
472
- // Also apply to all child elements with a class that starts with our prefix
473
- ["[class*=du-bois]:not(.".concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME, ", .").concat(DU_BOIS_ENABLE_ANIMATION_CLASSNAME, " *)")]: {
474
- ...disableAnimationCss,
475
- // Also target any pseudo-elements associated with those elements, since these can also be animated.
476
- '&::before': disableAnimationCss,
477
- '&::after': disableAnimationCss
478
- }
479
- };
480
- }
481
- const DesignSystemProviderPropsContext = /*#__PURE__*/React__default.createContext(null);
482
- const AntDConfigProviderPropsContext = /*#__PURE__*/React__default.createContext(null);
483
- const DesignSystemProvider = _ref => {
484
- let {
485
- children,
486
- isDarkMode = false,
487
- theme: themeName,
488
- enableAnimation = false,
489
- zIndexBase = 1000,
490
- getPopupContainer,
491
- flags = {}
492
- } = _ref;
493
- const theme = useMemo(() => getTheme(isDarkMode, {
494
- enableAnimation,
495
- zIndexBase
496
- }),
497
- // TODO: revisit this
498
- // eslint-disable-next-line react-hooks/exhaustive-deps
499
- [themeName, isDarkMode, zIndexBase]);
500
- const providerPropsContext = useMemo(() => ({
501
- isDarkMode,
502
- theme: themeName,
503
- enableAnimation,
504
- zIndexBase,
505
- getPopupContainer,
506
- flags
507
- }), [themeName, isDarkMode, enableAnimation, zIndexBase, getPopupContainer, flags]);
508
- const classNamePrefix = getClassNamePrefix(theme);
509
- const value = useMemo(() => {
510
- return {
511
- enableAnimation,
512
- isDarkMode,
513
- theme: theme.themeName,
514
- getPrefixCls: suffix => getPrefixedClassNameFromTheme(theme, suffix),
515
- getPopupContainer,
516
- flags
517
- };
518
- }, [enableAnimation, theme, isDarkMode, getPopupContainer, flags]);
519
- useEffect(() => {
520
- return () => {
521
- // when the design system context is unmounted, make sure the notification cache is also cleaned up
522
- notification.destroy();
523
- };
524
- }, []);
525
- return jsx(DesignSystemProviderPropsContext.Provider, {
526
- value: providerPropsContext,
527
- children: jsx(ThemeProvider, {
528
- theme: theme,
529
- children: jsx(AntDConfigProviderPropsContext.Provider, {
530
- value: {
531
- prefixCls: classNamePrefix,
532
- getPopupContainer
533
- },
534
- children: jsx(DesignSystemContext.Provider, {
535
- value: value,
536
- children: children
537
- })
538
- })
539
- })
540
- });
541
- };
542
- const ApplyDesignSystemContextOverrides = _ref2 => {
543
- let {
544
- isDarkMode,
545
- theme,
546
- enableAnimation,
547
- zIndexBase,
548
- getPopupContainer,
549
- flags,
550
- children
551
- } = _ref2;
552
- const parentDesignSystemProviderProps = useContext(DesignSystemProviderPropsContext);
553
- if (parentDesignSystemProviderProps === null) {
554
- throw new Error("ApplyDesignSystemContextOverrides cannot be used standalone - DesignSystemProvider must exist in the React context");
555
- }
556
- const newProps = useMemo(() => ({
557
- ...parentDesignSystemProviderProps,
558
- isDarkMode: isDarkMode !== null && isDarkMode !== void 0 ? isDarkMode : parentDesignSystemProviderProps.isDarkMode,
559
- theme: theme !== null && theme !== void 0 ? theme : parentDesignSystemProviderProps.theme,
560
- enableAnimation: enableAnimation !== null && enableAnimation !== void 0 ? enableAnimation : parentDesignSystemProviderProps.enableAnimation,
561
- zIndexBase: zIndexBase !== null && zIndexBase !== void 0 ? zIndexBase : parentDesignSystemProviderProps.zIndexBase,
562
- getPopupContainer: getPopupContainer !== null && getPopupContainer !== void 0 ? getPopupContainer : parentDesignSystemProviderProps.getPopupContainer,
563
- flags: {
564
- ...parentDesignSystemProviderProps.flags,
565
- ...flags
566
- }
567
- }), [parentDesignSystemProviderProps, isDarkMode, theme, enableAnimation, zIndexBase, getPopupContainer, flags]);
568
- return jsx(DesignSystemProvider, {
569
- ...newProps,
570
- children: children
571
- });
572
- };
573
-
574
- // This is a more-specific version of `ApplyDesignSystemContextOverrides` that only allows overriding the flags.
575
- const ApplyDesignSystemFlags = _ref3 => {
576
- let {
577
- flags,
578
- children
579
- } = _ref3;
580
- const parentDesignSystemProviderProps = useContext(DesignSystemProviderPropsContext);
581
- if (parentDesignSystemProviderProps === null) {
582
- throw new Error("ApplyDesignSystemFlags cannot be used standalone - DesignSystemProvider must exist in the React context");
583
- }
584
- const newProps = useMemo(() => ({
585
- ...parentDesignSystemProviderProps,
586
- flags: {
587
- ...parentDesignSystemProviderProps.flags,
588
- ...flags
589
- }
590
- }), [parentDesignSystemProviderProps, flags]);
591
- return jsx(DesignSystemProvider, {
592
- ...newProps,
593
- children: children
594
- });
595
- };
596
- const DesignSystemAntDConfigProvider = _ref4 => {
597
- let {
598
- children
599
- } = _ref4;
600
- const antdContext = useAntDConfigProviderContext();
601
- return jsx(ConfigProvider, {
602
- ...antdContext,
603
- children: children
604
- });
605
- };
606
- const useAntDConfigProviderContext = () => {
607
- var _useContext;
608
- return (_useContext = useContext(AntDConfigProviderPropsContext)) !== null && _useContext !== void 0 ? _useContext : {
609
- prefixCls: undefined
610
- };
611
- };
612
-
613
- /**
614
- * When using AntD components inside Design System wrapper components (e.g. Modal, Collapse etc),
615
- * we don't want Design System's prefix class to override them.
616
- *
617
- * Since all Design System's components have are wrapped with DesignSystemAntDConfigProvider,
618
- * this won't affect their own prefixCls, but just allow nested antd components to keep their ant prefix.
619
- */
620
- const RestoreAntDDefaultClsPrefix = _ref5 => {
621
- let {
622
- children
623
- } = _ref5;
624
- return jsx(ConfigProvider, {
625
- prefixCls: "ant",
626
- children: children
627
- });
628
- };
629
-
630
- function useDesignSystemContext() {
631
- return useContext(DesignSystemContext);
632
- }
633
-
634
- function useDesignSystemFlags() {
635
- const context = useDesignSystemContext();
636
- return context.flags;
637
- }
638
-
639
- const getIconEmotionStyles = (theme, useNewIcons) => {
640
- return /*#__PURE__*/css({
641
- ...(useNewIcons && {
642
- fontSize: theme.general.iconFontSizeNew
643
- })
644
- }, process.env.NODE_ENV === "production" ? "" : ";label:getIconEmotionStyles;");
645
- };
646
- const getIconValidationColor = (theme, color) => {
647
- switch (color) {
648
- case 'success':
649
- return theme.colors.textValidationSuccess;
650
- case 'warning':
651
- return theme.colors.textValidationWarning;
652
- case 'danger':
653
- return theme.colors.textValidationDanger;
654
- default:
655
- return color;
656
- }
657
- };
658
- const Icon = props => {
659
- const {
660
- component: Component,
661
- dangerouslySetAntdProps,
662
- color,
663
- style,
664
- ...otherProps
665
- } = props;
666
- const {
667
- theme
668
- } = useDesignSystemTheme();
669
- const {
670
- USE_NEW_ICONS
671
- } = useDesignSystemFlags();
672
- const MemoizedComponent = useMemo(() => Component ? _ref => {
673
- let {
674
- fill,
675
- ...iconProps
676
- } = _ref;
677
- return (
678
- // We don't rely on top-level fills for our colors. Fills are specified
679
- // with "currentColor" on children of the top-most svg.
680
- jsx(Component, {
681
- fill: "none",
682
- ...iconProps
683
- })
684
- );
685
- } : undefined, [Component]);
686
- return jsx(DesignSystemAntDConfigProvider, {
687
- children: jsx(AntDIcon, {
688
- css: getIconEmotionStyles(theme, USE_NEW_ICONS),
689
- component: MemoizedComponent,
690
- style: {
691
- color: getIconValidationColor(theme, color),
692
- ...style
693
- },
694
- ...otherProps,
695
- ...dangerouslySetAntdProps
696
- })
697
- });
698
- };
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
-
866
- function SvgNewWindowIconV1(props) {
867
- return jsx("svg", {
868
- width: "1em",
869
- height: "1em",
870
- viewBox: "0 0 24 24",
871
- fill: "none",
872
- xmlns: "http://www.w3.org/2000/svg",
873
- ...props,
874
- children: jsx("path", {
875
- fillRule: "evenodd",
876
- clipRule: "evenodd",
877
- d: "M5 18c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-5c0-.55.45-1 1-1s1 .45 1 1v6c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5a2 2 0 012-2h6c.55 0 1 .45 1 1s-.45 1-1 1H6c-.55 0-1 .45-1 1v12zM15 5c-.55 0-1-.45-1-1s.45-1 1-1h5c.55 0 1 .45 1 1v5c0 .55-.45 1-1 1s-1-.45-1-1V6.41l-9.13 9.13a.996.996 0 11-1.41-1.41L17.59 5H15z",
878
- fill: "currentColor"
879
- })
880
- });
881
- }
882
- function SvgNewWindowIconV2(props) {
883
- return jsxs("svg", {
884
- width: "1em",
885
- height: "1em",
886
- viewBox: "0 0 16 16",
887
- fill: "none",
888
- xmlns: "http://www.w3.org/2000/svg",
889
- ...props,
890
- children: [jsx("path", {
891
- d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10V1z",
892
- fill: "currentColor"
893
- }), jsx("path", {
894
- d: "M1 2.75A.75.75 0 011.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 01-.75.75H1.75a.75.75 0 01-.75-.75V2.75z",
895
- fill: "currentColor"
896
- })]
897
- });
898
- }
899
- function NewWindowIcon(props) {
900
- const {
901
- USE_NEW_ICONS
902
- } = useDesignSystemFlags();
903
- const component = USE_NEW_ICONS ? SvgNewWindowIconV2 : SvgNewWindowIconV1;
904
- return jsx(Icon, {
905
- ...props,
906
- component: component
907
- });
908
- }
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
-
1007
- function SvgSortAscendingIcon(props) {
1008
- return jsx("svg", {
1009
- width: "1em",
1010
- height: "1em",
1011
- viewBox: "0 0 16 16",
1012
- fill: "none",
1013
- xmlns: "http://www.w3.org/2000/svg",
1014
- ...props,
1015
- children: jsx("path", {
1016
- d: "M11.5.94l4.03 4.03-1.06 1.06-2.22-2.22V10h-1.5V3.81L8.53 6.03 7.47 4.97 11.5.94zM1 4.5h4V6H1V4.5zM1 12.5h10V14H1v-1.5zM8 8.5H1V10h7V8.5z",
1017
- fill: "currentColor"
1018
- })
1019
- });
1020
- }
1021
- function SortAscendingIcon(props) {
1022
- return jsx(Icon, {
1023
- ...props,
1024
- component: SvgSortAscendingIcon
1025
- });
1026
- }
1027
-
1028
- function SvgSortDescendingIcon(props) {
1029
- return jsx("svg", {
1030
- width: "1em",
1031
- height: "1em",
1032
- viewBox: "0 0 16 16",
1033
- fill: "none",
1034
- xmlns: "http://www.w3.org/2000/svg",
1035
- ...props,
1036
- children: jsx("path", {
1037
- fillRule: "evenodd",
1038
- clipRule: "evenodd",
1039
- d: "M1 3.5h10V2H1v1.5zm0 8h4V10H1v1.5zm7-4H1V6h7v1.5zm3.5 7.56l4.03-4.03-1.06-1.06-2.22 2.22V6h-1.5v6.19L8.53 9.97l-1.06 1.06 4.03 4.03z",
1040
- fill: "currentColor"
1041
- })
1042
- });
1043
- }
1044
- function SortDescendingIcon(props) {
1045
- return jsx(Icon, {
1046
- ...props,
1047
- component: SvgSortDescendingIcon
1048
- });
1049
- }
1050
-
1051
- function SvgSortUnsortedIcon(props) {
1052
- return jsx("svg", {
1053
- width: "1em",
1054
- height: "1em",
1055
- viewBox: "0 0 16 16",
1056
- fill: "none",
1057
- xmlns: "http://www.w3.org/2000/svg",
1058
- ...props,
1059
- children: jsx("path", {
1060
- d: "M11.5.94L7.47 4.97l1.06 1.06 2.22-2.22v8.38L8.53 9.97l-1.06 1.06 4.03 4.03 4.03-4.03-1.06-1.06-2.22 2.22V3.81l2.22 2.22 1.06-1.06L11.5.94zM6 3.5H1V5h5V3.5zM6 11.5H1V13h5v-1.5zM1 7.5h5V9H1V7.5z",
1061
- fill: "currentColor"
1062
- })
1063
- });
1064
- }
1065
- function SortUnsortedIcon(props) {
1066
- return jsx(Icon, {
1067
- ...props,
1068
- component: SvgSortUnsortedIcon
1069
- });
1070
- }
1071
-
1072
- const ColorVars = {
1073
- primary: 'textPrimary',
1074
- secondary: 'textSecondary',
1075
- info: 'textValidationInfo',
1076
- error: 'textValidationDanger',
1077
- success: 'textValidationSuccess',
1078
- warning: 'textValidationWarning'
1079
- };
1080
-
1081
- /**
1082
- * Recursively appends `!important` to all CSS properties in an Emotion `CSSObject`.
1083
- * Used to ensure that we always override Ant styles, without worrying about selector precedence.
1084
- */
1085
- function importantify(obj) {
1086
- return _mapValues(obj, (value, key) => {
1087
- if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
1088
- // Make sure we don't double-append important
1089
- if (_isString(value) && _endsWith(value, '!important')) {
1090
- return value;
1091
- }
1092
- if (_isNumber(value)) {
1093
- if (unitless[key]) {
1094
- return "".concat(value, "!important");
1095
- }
1096
- return "".concat(value, "px!important");
1097
- }
1098
- return "".concat(value, "!important");
1099
- }
1100
- if (_isNil(value)) {
1101
- return value;
1102
- }
1103
- return importantify(value);
1104
- });
1105
- }
1106
-
1107
- /**
1108
- * Returns a text color, in case of invalid/missing key and missing fallback color it will return textPrimary
1109
- * @param theme
1110
- * @param key - key of TypographyColor
1111
- * @param fallbackColor - color to return as fallback -- used to remove tertiary check inline
1112
- */
1113
- function getTypographyColor(theme, key, fallbackColor) {
1114
- if (theme && key && Object(theme.colors).hasOwnProperty(ColorVars[key])) {
1115
- return theme.colors[ColorVars[key]];
1116
- }
1117
- return fallbackColor !== null && fallbackColor !== void 0 ? fallbackColor : theme.colors.textPrimary;
1118
- }
1119
-
1120
- /**
1121
- * Returns validation color based on state, has default validation colors if params are not provided
1122
- * @param theme
1123
- * @param validationState
1124
- * @param errorColor
1125
- * @param warningColor
1126
- * @param successColor
1127
- */
1128
- function getValidationStateColor(theme, validationState) {
1129
- let {
1130
- errorColor,
1131
- warningColor,
1132
- successColor
1133
- } = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1134
- switch (validationState) {
1135
- case 'error':
1136
- return errorColor || theme.colors.actionDangerPrimaryBackgroundDefault;
1137
- case 'warning':
1138
- return warningColor || theme.colors.textValidationWarning;
1139
- case 'success':
1140
- return successColor || theme.colors.textValidationSuccess;
1141
- default:
1142
- return undefined;
1143
- }
1144
- }
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
-
1612
- function getCheckboxEmotionStyles(clsPrefix, theme) {
1613
- let isHorizontal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1614
- let useNewCheckboxStyles = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
1615
- const classInput = ".".concat(clsPrefix, "-input");
1616
- const classInner = ".".concat(clsPrefix, "-inner");
1617
- const classIndeterminate = ".".concat(clsPrefix, "-indeterminate");
1618
- const classChecked = ".".concat(clsPrefix, "-checked");
1619
- const classDisabled = ".".concat(clsPrefix, "-disabled");
1620
- const classDisabledWrapper = ".".concat(clsPrefix, "-wrapper-disabled");
1621
- const classContainer = ".".concat(clsPrefix, "-group");
1622
- const classWrapper = ".".concat(clsPrefix, "-wrapper");
1623
- const defaultSelector = "".concat(classInput, " + ").concat(classInner);
1624
- const hoverSelector = "".concat(classInput, ":hover + ").concat(classInner);
1625
- const pressSelector = "".concat(classInput, ":active + ").concat(classInner);
1626
- const styles = {
1627
- ...(useNewCheckboxStyles && {
1628
- [".".concat(clsPrefix)]: {
1629
- top: 'unset',
1630
- lineHeight: theme.typography.lineHeightBase
1631
- },
1632
- ["&".concat(classWrapper, ", ").concat(classWrapper)]: {
1633
- alignItems: 'center',
1634
- lineHeight: theme.typography.lineHeightBase
1635
- }
1636
- }),
1637
- // Top level styles are for the unchecked state
1638
- [classInner]: {
1639
- borderColor: theme.colors.actionDefaultBorderDefault
1640
- },
1641
- // Layout styling
1642
- ["&".concat(classContainer)]: {
1643
- display: 'flex',
1644
- flexDirection: 'column',
1645
- rowGap: theme.spacing.sm,
1646
- columnGap: 0
1647
- },
1648
- ...(isHorizontal && {
1649
- ["&".concat(classContainer)]: {
1650
- display: 'flex',
1651
- flexDirection: 'row',
1652
- columnGap: theme.spacing.sm,
1653
- rowGap: 0,
1654
- ["& > ".concat(classContainer, "-item")]: {
1655
- marginRight: 0
1656
- }
1657
- }
1658
- }),
1659
- // Keyboard focus
1660
- ["".concat(classInput, ":focus-visible + ").concat(classInner)]: {
1661
- outlineWidth: '2px',
1662
- outlineColor: theme.colors.primary,
1663
- outlineOffset: '4px',
1664
- outlineStyle: 'solid'
1665
- },
1666
- // Hover
1667
- [hoverSelector]: {
1668
- backgroundColor: theme.colors.actionDefaultBackgroundHover,
1669
- borderColor: theme.colors.actionPrimaryBackgroundHover
1670
- },
1671
- // Mouse pressed
1672
- [pressSelector]: {
1673
- backgroundColor: theme.colors.actionDefaultBackgroundPress,
1674
- borderColor: theme.colors.actionPrimaryBackgroundPress
1675
- },
1676
- // Checked state
1677
- [classChecked]: {
1678
- '&::after': {
1679
- border: 'none'
1680
- },
1681
- [defaultSelector]: {
1682
- backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
1683
- borderColor: 'transparent'
1684
- },
1685
- // Checked hover
1686
- [hoverSelector]: {
1687
- backgroundColor: theme.colors.actionPrimaryBackgroundHover,
1688
- borderColor: 'transparent'
1689
- },
1690
- // Checked and mouse pressed
1691
- [pressSelector]: {
1692
- backgroundColor: theme.colors.actionPrimaryBackgroundPress,
1693
- borderColor: 'transparent'
1694
- }
1695
- },
1696
- // Indeterminate
1697
- [classIndeterminate]: {
1698
- [classInner]: {
1699
- backgroundColor: theme.colors.actionPrimaryBackgroundDefault,
1700
- borderColor: theme.colors.actionPrimaryBackgroundDefault,
1701
- // The after pseudo-element is used for the check image itself
1702
- '&:after': {
1703
- backgroundColor: theme.colors.white,
1704
- height: '3px',
1705
- width: '8px',
1706
- borderRadius: '4px'
1707
- }
1708
- },
1709
- // Indeterminate hover
1710
- [hoverSelector]: {
1711
- backgroundColor: theme.colors.actionPrimaryBackgroundHover,
1712
- borderColor: 'transparent'
1713
- },
1714
- // Indeterminate and mouse pressed
1715
- [pressSelector]: {
1716
- backgroundColor: theme.colors.actionPrimaryBackgroundPress
1717
- }
1718
- },
1719
- // Disabled state
1720
- ["&".concat(classDisabledWrapper)]: {
1721
- [classDisabled]: {
1722
- // Disabled Checked
1723
- ["&".concat(classChecked)]: {
1724
- [classInner]: {
1725
- backgroundColor: theme.colors.actionDisabledBackground,
1726
- borderColor: theme.colors.actionDisabledBackground
1727
- },
1728
- // Disabled checked hover
1729
- [hoverSelector]: {
1730
- backgroundColor: theme.colors.actionDisabledBackground,
1731
- borderColor: theme.colors.actionDisabledBackground
1732
- }
1733
- },
1734
- // Disabled indeterminate
1735
- ["&".concat(classIndeterminate)]: {
1736
- [classInner]: {
1737
- backgroundColor: theme.colors.actionDisabledBackground,
1738
- borderColor: theme.colors.actionDisabledBackground
1739
- },
1740
- // Disabled indeterminate hover
1741
- [hoverSelector]: {
1742
- backgroundColor: theme.colors.actionDisabledBackground,
1743
- borderColor: theme.colors.actionDisabledBackground
1744
- }
1745
- },
1746
- // Disabled unchecked
1747
- [classInner]: {
1748
- backgroundColor: theme.colors.actionDisabledBackground,
1749
- borderColor: theme.colors.actionDisabledBackground,
1750
- // The after pseudo-element is used for the check image itself
1751
- '&:after': {
1752
- borderColor: theme.colors.white
1753
- }
1754
- },
1755
- // Disabled hover
1756
- [hoverSelector]: {
1757
- backgroundColor: theme.colors.actionDisabledBackground,
1758
- borderColor: theme.colors.actionDisabledBackground
1759
- },
1760
- '& + span': {
1761
- color: theme.colors.actionDisabledText
1762
- }
1763
- }
1764
- },
1765
- // Animation
1766
- ...getAnimationCss(theme.options.enableAnimation)
1767
- };
1768
- return styles;
1769
- }
1770
- const getWrapperStyle = _ref => {
1771
- let {
1772
- clsPrefix,
1773
- theme,
1774
- wrapperStyle = {},
1775
- useNewStyles
1776
- } = _ref;
1777
- const styles = {
1778
- ...(useNewStyles && {
1779
- ["&& + .".concat(clsPrefix, "-hint, && + .").concat(clsPrefix, "-form-message")]: {
1780
- paddingLeft: theme.spacing.lg,
1781
- marginTop: 0
1782
- }
1783
- }),
1784
- ...wrapperStyle
1785
- };
1786
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getWrapperStyle;");
1787
- };
1788
- const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref2, ref) {
1789
- let {
1790
- isChecked,
1791
- onChange,
1792
- children,
1793
- isDisabled = false,
1794
- style,
1795
- wrapperStyle,
1796
- dangerouslySetAntdProps,
1797
- className,
1798
- ...restProps
1799
- } = _ref2;
1800
- const {
1801
- theme,
1802
- classNamePrefix,
1803
- getPrefixedClassName
1804
- } = useDesignSystemTheme();
1805
- const {
1806
- USE_NEW_CHECKBOX_STYLES
1807
- } = useDesignSystemFlags();
1808
- const clsPrefix = getPrefixedClassName('checkbox');
1809
- return jsx(DesignSystemAntDConfigProvider, {
1810
- children: jsx("div", {
1811
- className: classnames(className, "".concat(clsPrefix, "-container")),
1812
- css: getWrapperStyle({
1813
- clsPrefix: classNamePrefix,
1814
- theme,
1815
- wrapperStyle,
1816
- useNewStyles: USE_NEW_CHECKBOX_STYLES
1817
- }),
1818
- children: jsx(Checkbox$1, {
1819
- checked: isChecked === null ? undefined : isChecked,
1820
- ref: ref,
1821
- onChange: onChange ? event => {
1822
- onChange(event.target.checked, event);
1823
- } : undefined,
1824
- disabled: isDisabled,
1825
- indeterminate: isChecked === null
1826
- // Individual checkboxes don't depend on isHorizontal flag, orientation and spacing is handled by end users
1827
- ,
1828
- css: /*#__PURE__*/css(importantify(getCheckboxEmotionStyles(clsPrefix, theme, false, USE_NEW_CHECKBOX_STYLES)), process.env.NODE_ENV === "production" ? "" : ";label:DuboisCheckbox;"),
1829
- style: style,
1830
- "aria-checked": isChecked === null ? 'mixed' : isChecked,
1831
- ...restProps,
1832
- ...dangerouslySetAntdProps,
1833
- children: jsx(RestoreAntDDefaultClsPrefix, {
1834
- children: children
1835
- })
1836
- })
1837
- })
1838
- });
1839
- });
1840
- const CheckboxGroup = /*#__PURE__*/forwardRef(function CheckboxGroup(_ref3, ref) {
1841
- let {
1842
- children,
1843
- layout = 'vertical',
1844
- ...props
1845
- } = _ref3;
1846
- const {
1847
- theme,
1848
- getPrefixedClassName
1849
- } = useDesignSystemTheme();
1850
- const clsPrefix = getPrefixedClassName('checkbox');
1851
- const {
1852
- USE_NEW_CHECKBOX_STYLES
1853
- } = useDesignSystemFlags();
1854
- return jsx(DesignSystemAntDConfigProvider, {
1855
- children: jsx(Checkbox$1.Group, {
1856
- ref: ref,
1857
- ...props,
1858
- css: getCheckboxEmotionStyles(clsPrefix, theme, layout === 'horizontal', USE_NEW_CHECKBOX_STYLES),
1859
- children: jsx(RestoreAntDDefaultClsPrefix, {
1860
- children: children
1861
- })
1862
- })
1863
- });
1864
- });
1865
- const CheckboxNamespace = /* #__PURE__ */Object.assign(DuboisCheckbox, {
1866
- Group: CheckboxGroup
1867
- });
1868
- const Checkbox = CheckboxNamespace;
1869
-
1870
- // TODO: I'm doing this to support storybook's docgen;
1871
- // We should remove this once we have a better storybook integration,
1872
- // since these will be exposed in the library's exports.
1873
- const __INTERNAL_DO_NOT_USE__Group = CheckboxGroup;
1874
-
1875
- const getLinkStyles = (theme, clsPrefix, useNewIcons) => {
1876
- const classTypography = ".".concat(clsPrefix, "-typography");
1877
- const styles = {
1878
- ["&".concat(classTypography, ", &").concat(classTypography, ":focus")]: {
1879
- color: theme.colors.actionTertiaryTextDefault
1880
- },
1881
- ["&".concat(classTypography, ":hover, &").concat(classTypography, ":hover .anticon")]: {
1882
- color: theme.colors.actionTertiaryTextHover,
1883
- textDecoration: 'underline'
1884
- },
1885
- ["&".concat(classTypography, ":active, &").concat(classTypography, ":active .anticon")]: {
1886
- color: theme.colors.actionTertiaryTextPress,
1887
- textDecoration: 'underline'
1888
- },
1889
- ["&".concat(classTypography, ":focus-visible")]: {
1890
- textDecoration: 'underline'
1891
- },
1892
- ...(useNewIcons && {
1893
- '.anticon': {
1894
- fontSize: 12
1895
- }
1896
- })
1897
- };
1898
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
1899
- };
1900
- const getEllipsisNewTabLinkStyles = () => {
1901
- const styles = {
1902
- paddingRight: 'calc(2px + 1em)',
1903
- // 1em for icon
1904
- position: 'relative'
1905
- };
1906
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
1907
- };
1908
- const getIconStyles = theme => {
1909
- const styles = {
1910
- marginLeft: 2,
1911
- color: theme.colors.actionTertiaryTextDefault
1912
- };
1913
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
1914
- };
1915
- const getEllipsisIconStyles = useNewIcons => {
1916
- const styles = {
1917
- position: 'absolute',
1918
- right: 0,
1919
- bottom: 0,
1920
- top: 0,
1921
- display: 'flex',
1922
- alignItems: 'center',
1923
- ...(useNewIcons && {
1924
- fontSize: 12
1925
- })
1926
- };
1927
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
1928
- };
1929
- function Link(_ref) {
1930
- let {
1931
- dangerouslySetAntdProps,
1932
- ...props
1933
- } = _ref;
1934
- const {
1935
- children,
1936
- openInNewTab,
1937
- ...restProps
1938
- } = props;
1939
- const {
1940
- theme,
1941
- classNamePrefix
1942
- } = useDesignSystemTheme();
1943
- const {
1944
- USE_NEW_ICONS: useNewIcons
1945
- } = useDesignSystemFlags();
1946
- const newTabProps = {
1947
- rel: 'noopener noreferrer',
1948
- target: '_blank'
1949
- };
1950
- const linkProps = openInNewTab ? {
1951
- ...restProps,
1952
- ...newTabProps
1953
- } : {
1954
- ...restProps
1955
- };
1956
- const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix, useNewIcons), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix, useNewIcons);
1957
- const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
1958
- return jsx(DesignSystemAntDConfigProvider, {
1959
- children: jsxs(Typography$1.Link, {
1960
- css: linkStyles,
1961
- ...linkProps,
1962
- ...dangerouslySetAntdProps,
1963
- children: [children, openInNewTab ? jsx(NewWindowIcon, {
1964
- css: iconStyles,
1965
- ...newTabProps
1966
- }) : null]
1967
- })
1968
- });
1969
- }
1970
-
1971
- const {
1972
- Paragraph: AntDParagraph
1973
- } = Typography$1;
1974
- function getParagraphEmotionStyles(theme, props) {
1975
- return /*#__PURE__*/css({
1976
- '&&': {
1977
- fontSize: theme.typography.fontSizeBase,
1978
- lineHeight: theme.typography.lineHeightBase,
1979
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
1980
- }
1981
- }, props.disabled && {
1982
- '&&': {
1983
- color: theme.colors.actionDisabledText
1984
- }
1985
- }, props.withoutMargins && {
1986
- '&&': {
1987
- marginTop: 0,
1988
- marginBottom: 0
1989
- }
1990
- }, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
1991
- }
1992
- function Paragraph(userProps) {
1993
- const {
1994
- dangerouslySetAntdProps,
1995
- withoutMargins,
1996
- color,
1997
- ...props
1998
- } = userProps;
1999
- const {
2000
- theme
2001
- } = useDesignSystemTheme();
2002
- return jsx(DesignSystemAntDConfigProvider, {
2003
- children: jsx(AntDParagraph, {
2004
- ...props,
2005
- className: props.className,
2006
- css: getParagraphEmotionStyles(theme, userProps),
2007
- ...dangerouslySetAntdProps
2008
- })
2009
- });
2010
- }
2011
-
2012
- const {
2013
- Text: AntDText
2014
- } = Typography$1;
2015
- function getTextEmotionStyles(theme, props) {
2016
- return /*#__PURE__*/css({
2017
- '&&': {
2018
- fontSize: theme.typography.fontSizeBase,
2019
- lineHeight: theme.typography.lineHeightBase,
2020
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
2021
- }
2022
- }, props.disabled && {
2023
- '&&': {
2024
- color: theme.colors.actionDisabledText
2025
- }
2026
- }, props.hint && {
2027
- '&&': {
2028
- fontSize: theme.typography.fontSizeSm,
2029
- lineHeight: theme.typography.lineHeightSm
2030
- }
2031
- }, props.bold && {
2032
- '&&': {
2033
- fontSize: theme.typography.fontSizeBase,
2034
- fontWeight: theme.typography.typographyBoldFontWeight,
2035
- lineHeight: theme.typography.lineHeightBase
2036
- }
2037
- }, props.code && {
2038
- '&& > code': {
2039
- fontSize: theme.typography.fontSizeBase,
2040
- lineHeight: theme.typography.lineHeightBase,
2041
- fontWeight: theme.typography.typographyBoldFontWeight,
2042
- background: theme.colors.typographyCodeBg,
2043
- fontFamily: 'monospace',
2044
- borderRadius: theme.borders.borderRadiusMd,
2045
- padding: '2px 4px',
2046
- border: 'unset',
2047
- margin: 0
2048
- }
2049
- }, props.size && {
2050
- '&&': (() => {
2051
- switch (props.size) {
2052
- case 'xxl':
2053
- return {
2054
- fontSize: theme.typography.fontSizeXxl,
2055
- lineHeight: theme.typography.lineHeightXxl
2056
- };
2057
- case 'xl':
2058
- return {
2059
- fontSize: theme.typography.fontSizeXl,
2060
- lineHeight: theme.typography.lineHeightXl
2061
- };
2062
- case 'lg':
2063
- return {
2064
- fontSize: theme.typography.fontSizeLg,
2065
- lineHeight: theme.typography.lineHeightLg
2066
- };
2067
- case 'sm':
2068
- return {
2069
- fontSize: theme.typography.fontSizeSm,
2070
- lineHeight: theme.typography.lineHeightSm
2071
- };
2072
- default:
2073
- return {
2074
- fontSize: theme.typography.fontSizeMd,
2075
- lineHeight: theme.typography.lineHeightMd
2076
- };
2077
- }
2078
- })()
2079
- }, props.withoutMargins && {
2080
- '&&': {
2081
- marginTop: 0,
2082
- marginBottom: 0
2083
- }
2084
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
2085
- }
2086
- function Text(userProps) {
2087
- // Omit props that are not supported by `antd`
2088
- const {
2089
- dangerouslySetAntdProps,
2090
- bold,
2091
- hint,
2092
- withoutMargins,
2093
- color,
2094
- ...props
2095
- } = userProps;
2096
- const {
2097
- theme
2098
- } = useDesignSystemTheme();
2099
- return jsx(DesignSystemAntDConfigProvider, {
2100
- children: jsx(AntDText, {
2101
- ...props,
2102
- className: props.className,
2103
- css: getTextEmotionStyles(theme, userProps),
2104
- ...dangerouslySetAntdProps
2105
- })
2106
- });
2107
- }
2108
-
2109
- const {
2110
- Title: AntDTitle
2111
- } = Typography$1;
2112
- function getLevelStyles(theme, props) {
2113
- switch (props.level) {
2114
- case 1:
2115
- return /*#__PURE__*/css({
2116
- '&&': {
2117
- fontSize: theme.typography.fontSizeXxl,
2118
- lineHeight: theme.typography.lineHeightXxl,
2119
- fontWeight: theme.typography.typographyBoldFontWeight
2120
- }
2121
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2122
- case 2:
2123
- return /*#__PURE__*/css({
2124
- '&&': {
2125
- fontSize: theme.typography.fontSizeXl,
2126
- lineHeight: theme.typography.lineHeightXl,
2127
- fontWeight: theme.typography.typographyBoldFontWeight
2128
- }
2129
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2130
- case 3:
2131
- return /*#__PURE__*/css({
2132
- '&&': {
2133
- fontSize: theme.typography.fontSizeLg,
2134
- lineHeight: theme.typography.lineHeightLg,
2135
- fontWeight: theme.typography.typographyBoldFontWeight
2136
- }
2137
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2138
- case 4:
2139
- default:
2140
- return /*#__PURE__*/css({
2141
- '&&': {
2142
- fontSize: theme.typography.fontSizeMd,
2143
- lineHeight: theme.typography.lineHeightMd,
2144
- fontWeight: theme.typography.typographyBoldFontWeight
2145
- }
2146
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2147
- }
2148
- }
2149
- function getTitleEmotionStyles(theme, props) {
2150
- return /*#__PURE__*/css(getLevelStyles(theme, props), {
2151
- '&&': {
2152
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
2153
- }
2154
- }, props.withoutMargins && {
2155
- '&&': {
2156
- marginTop: '0 !important',
2157
- // override general styling
2158
- marginBottom: '0 !important' // override general styling
2159
- }
2160
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
2161
- }
2162
- function Title(userProps) {
2163
- const {
2164
- dangerouslySetAntdProps,
2165
- withoutMargins,
2166
- color,
2167
- ...props
2168
- } = userProps;
2169
- const {
2170
- theme
2171
- } = useDesignSystemTheme();
2172
- return jsx(DesignSystemAntDConfigProvider, {
2173
- children: jsx(AntDTitle, {
2174
- ...props,
2175
- className: props.className,
2176
- css: getTitleEmotionStyles(theme, userProps),
2177
- ...dangerouslySetAntdProps
2178
- })
2179
- });
2180
- }
2181
-
2182
- const Typography = /* #__PURE__ */(() => {
2183
- function Typography(_ref) {
2184
- let {
2185
- dangerouslySetAntdProps,
2186
- ...props
2187
- } = _ref;
2188
- return jsx(DesignSystemAntDConfigProvider, {
2189
- children: jsx(Typography$1, {
2190
- ...props,
2191
- ...dangerouslySetAntdProps
2192
- })
2193
- });
2194
- }
2195
- Typography.Text = Text;
2196
- Typography.Title = Title;
2197
- Typography.Paragraph = Paragraph;
2198
- Typography.Link = Link;
2199
- return Typography;
2200
- })();
2201
-
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