@databricks/design-system 1.3.0 → 1.4.1

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 (467) hide show
  1. package/dist/cjs/index.js +1223 -839
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/design-system/Alert/Alert.d.ts +3 -3
  4. package/dist/design-system/Alert/Alert.d.ts.map +1 -1
  5. package/dist/design-system/AutoComplete/AutoComplete.d.ts +4 -1
  6. package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
  7. package/dist/design-system/Breadcrumb/Breadcrumb.d.ts +6 -3
  8. package/dist/design-system/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  9. package/dist/design-system/Button/Button.d.ts +9 -11
  10. package/dist/design-system/Button/Button.d.ts.map +1 -1
  11. package/dist/design-system/Button/styles.d.ts +2 -2
  12. package/dist/design-system/Button/styles.d.ts.map +1 -1
  13. package/dist/design-system/Checkbox/Checkbox.d.ts +11 -2
  14. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
  15. package/dist/design-system/Collapse/Collapse.d.ts +5 -4
  16. package/dist/design-system/Collapse/Collapse.d.ts.map +1 -1
  17. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  18. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts +9 -2
  19. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  20. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts +2 -0
  21. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.test.d.ts.map +1 -0
  22. package/dist/design-system/Dropdown/Dropdown.d.ts +3 -2
  23. package/dist/design-system/Dropdown/Dropdown.d.ts.map +1 -1
  24. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +9 -6
  25. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  26. package/dist/design-system/Form/Form.d.ts +6 -5
  27. package/dist/design-system/Form/Form.d.ts.map +1 -1
  28. package/dist/design-system/FormMessage/FormMessage.d.ts +11 -0
  29. package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -0
  30. package/dist/design-system/FormV2/FormV2.d.ts +9 -0
  31. package/dist/design-system/FormV2/FormV2.d.ts.map +1 -0
  32. package/dist/design-system/Grid/Col.d.ts +3 -2
  33. package/dist/design-system/Grid/Col.d.ts.map +1 -1
  34. package/dist/design-system/Grid/Row.d.ts +3 -2
  35. package/dist/design-system/Grid/Row.d.ts.map +1 -1
  36. package/dist/design-system/Header/Header.d.ts +2 -2
  37. package/dist/design-system/Header/Header.d.ts.map +1 -1
  38. package/dist/design-system/Hooks/index.d.ts +1 -0
  39. package/dist/design-system/Hooks/index.d.ts.map +1 -1
  40. package/dist/design-system/Hooks/useDesignSystemContext.d.ts +1 -1
  41. package/dist/design-system/Hooks/useDesignSystemContext.d.ts.map +1 -1
  42. package/dist/design-system/Hooks/useDesignSystemFlags.d.ts +3 -0
  43. package/dist/design-system/Hooks/useDesignSystemFlags.d.ts.map +1 -0
  44. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts +3 -2
  45. package/dist/design-system/Hooks/useDesignSystemTheme.d.ts.map +1 -1
  46. package/dist/design-system/Hooks/useThemedStyles.d.ts +1 -1
  47. package/dist/design-system/Hooks/useThemedStyles.d.ts.map +1 -1
  48. package/dist/design-system/Icon/Icon.d.ts +4 -2
  49. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  50. package/dist/design-system/Icon/__generated/icons/AIcon.d.ts +1 -1
  51. package/dist/design-system/Icon/__generated/icons/AIcon.d.ts.map +1 -1
  52. package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +1 -1
  53. package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts.map +1 -1
  54. package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +1 -1
  55. package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts.map +1 -1
  56. package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +1 -1
  57. package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts.map +1 -1
  58. package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +1 -1
  59. package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts.map +1 -1
  60. package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +1 -1
  61. package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts.map +1 -1
  62. package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +1 -1
  63. package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts.map +1 -1
  64. package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +1 -1
  65. package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts.map +1 -1
  66. package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +1 -1
  67. package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts.map +1 -1
  68. package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +1 -1
  69. package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts.map +1 -1
  70. package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +1 -1
  71. package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts.map +1 -1
  72. package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +1 -1
  73. package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts.map +1 -1
  74. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts +1 -1
  75. package/dist/design-system/Icon/__generated/icons/BookmarkBorderIcon.d.ts.map +1 -1
  76. package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +1 -1
  77. package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts.map +1 -1
  78. package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +1 -1
  79. package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts.map +1 -1
  80. package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +1 -1
  81. package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts.map +1 -1
  82. package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +1 -1
  83. package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts.map +1 -1
  84. package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +1 -1
  85. package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts.map +1 -1
  86. package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +1 -1
  87. package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts.map +1 -1
  88. package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +1 -1
  89. package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts.map +1 -1
  90. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts +1 -1
  91. package/dist/design-system/Icon/__generated/icons/CheckCircleBorderIcon.d.ts.map +1 -1
  92. package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +1 -1
  93. package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts.map +1 -1
  94. package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +1 -1
  95. package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts.map +1 -1
  96. package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +1 -1
  97. package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts.map +1 -1
  98. package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +1 -1
  99. package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts.map +1 -1
  100. package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +1 -1
  101. package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +1 -1
  102. package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +1 -1
  103. package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts.map +1 -1
  104. package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +1 -1
  105. package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts.map +1 -1
  106. package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +1 -1
  107. package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts.map +1 -1
  108. package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +1 -1
  109. package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts.map +1 -1
  110. package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +1 -1
  111. package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts.map +1 -1
  112. package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +1 -1
  113. package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts.map +1 -1
  114. package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +1 -1
  115. package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts.map +1 -1
  116. package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +1 -1
  117. package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts.map +1 -1
  118. package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +1 -1
  119. package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts.map +1 -1
  120. package/dist/design-system/Icon/__generated/icons/Clock1Icon.d.ts +1 -1
  121. package/dist/design-system/Icon/__generated/icons/Clock1Icon.d.ts.map +1 -1
  122. package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +1 -1
  123. package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts.map +1 -1
  124. package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +1 -1
  125. package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts.map +1 -1
  126. package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +1 -1
  127. package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +1 -1
  128. package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +1 -1
  129. package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts.map +1 -1
  130. package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +1 -1
  131. package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts.map +1 -1
  132. package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +1 -1
  133. package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts.map +1 -1
  134. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts +1 -1
  135. package/dist/design-system/Icon/__generated/icons/ClusterIcon.d.ts.map +1 -1
  136. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts +1 -1
  137. package/dist/design-system/Icon/__generated/icons/ClustersIcon.d.ts.map +1 -1
  138. package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +1 -1
  139. package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts.map +1 -1
  140. package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +1 -1
  141. package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts.map +1 -1
  142. package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +1 -1
  143. package/dist/design-system/Icon/__generated/icons/DIcon.d.ts.map +1 -1
  144. package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +1 -1
  145. package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts.map +1 -1
  146. package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +1 -1
  147. package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts.map +1 -1
  148. package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +1 -1
  149. package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts.map +1 -1
  150. package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +1 -1
  151. package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts.map +1 -1
  152. package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +1 -1
  153. package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts.map +1 -1
  154. package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +1 -1
  155. package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts.map +1 -1
  156. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts +1 -1
  157. package/dist/design-system/Icon/__generated/icons/ErrorBorderIcon.d.ts.map +1 -1
  158. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts +1 -1
  159. package/dist/design-system/Icon/__generated/icons/ErrorFillIcon.d.ts.map +1 -1
  160. package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +1 -1
  161. package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts.map +1 -1
  162. package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +1 -1
  163. package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts.map +1 -1
  164. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts +1 -1
  165. package/dist/design-system/Icon/__generated/icons/ExperimentIcon.d.ts.map +1 -1
  166. package/dist/design-system/Icon/__generated/icons/FeatureStoreIcon.d.ts +1 -1
  167. package/dist/design-system/Icon/__generated/icons/FeatureStoreIcon.d.ts.map +1 -1
  168. package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +1 -1
  169. package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts.map +1 -1
  170. package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +1 -1
  171. package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts.map +1 -1
  172. package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +1 -1
  173. package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts.map +1 -1
  174. package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +1 -1
  175. package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts.map +1 -1
  176. package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +1 -1
  177. package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts.map +1 -1
  178. package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +1 -1
  179. package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts.map +1 -1
  180. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts +1 -1
  181. package/dist/design-system/Icon/__generated/icons/Folder1Icon.d.ts.map +1 -1
  182. package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +1 -1
  183. package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts.map +1 -1
  184. package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +1 -1
  185. package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts.map +1 -1
  186. package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +1 -1
  187. package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts.map +1 -1
  188. package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +1 -1
  189. package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts.map +1 -1
  190. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts +1 -1
  191. package/dist/design-system/Icon/__generated/icons/Gear1Icon.d.ts.map +1 -1
  192. package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +1 -1
  193. package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts.map +1 -1
  194. package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +1 -1
  195. package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts.map +1 -1
  196. package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +1 -1
  197. package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts.map +1 -1
  198. package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +1 -1
  199. package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts.map +1 -1
  200. package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +1 -1
  201. package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts.map +1 -1
  202. package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +1 -1
  203. package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts.map +1 -1
  204. package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +1 -1
  205. package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts.map +1 -1
  206. package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +1 -1
  207. package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts.map +1 -1
  208. package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +1 -1
  209. package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts.map +1 -1
  210. package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +1 -1
  211. package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts.map +1 -1
  212. package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +1 -1
  213. package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts.map +1 -1
  214. package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts +4 -0
  215. package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts.map +1 -0
  216. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts +1 -1
  217. package/dist/design-system/Icon/__generated/icons/InfoBorderIcon.d.ts.map +1 -1
  218. package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +1 -1
  219. package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts.map +1 -1
  220. package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +1 -1
  221. package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts.map +1 -1
  222. package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +1 -1
  223. package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts.map +1 -1
  224. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts +1 -1
  225. package/dist/design-system/Icon/__generated/icons/LifesaverIcon.d.ts.map +1 -1
  226. package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +1 -1
  227. package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts.map +1 -1
  228. package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +1 -1
  229. package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts.map +1 -1
  230. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts +1 -1
  231. package/dist/design-system/Icon/__generated/icons/LinkRemoveIcon.d.ts.map +1 -1
  232. package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +1 -1
  233. package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts.map +1 -1
  234. package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +1 -1
  235. package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts.map +1 -1
  236. package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +1 -1
  237. package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts.map +1 -1
  238. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts +1 -1
  239. package/dist/design-system/Icon/__generated/icons/LockBorderIcon.d.ts.map +1 -1
  240. package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +1 -1
  241. package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts.map +1 -1
  242. package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +1 -1
  243. package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts.map +1 -1
  244. package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +1 -1
  245. package/dist/design-system/Icon/__generated/icons/MIcon.d.ts.map +1 -1
  246. package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +1 -1
  247. package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts.map +1 -1
  248. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts +1 -1
  249. package/dist/design-system/Icon/__generated/icons/MinusCircleBorderIcon.d.ts.map +1 -1
  250. package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +1 -1
  251. package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts.map +1 -1
  252. package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +1 -1
  253. package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts.map +1 -1
  254. package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +1 -1
  255. package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts.map +1 -1
  256. package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +1 -1
  257. package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts.map +1 -1
  258. package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +1 -1
  259. package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts.map +1 -1
  260. package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +1 -1
  261. package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts.map +1 -1
  262. package/dist/design-system/Icon/__generated/icons/NotificationsIcon.d.ts +1 -1
  263. package/dist/design-system/Icon/__generated/icons/NotificationsIcon.d.ts.map +1 -1
  264. package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +1 -1
  265. package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts.map +1 -1
  266. package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +1 -1
  267. package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts.map +1 -1
  268. package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +1 -1
  269. package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts.map +1 -1
  270. package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +1 -1
  271. package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts.map +1 -1
  272. package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +1 -1
  273. package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts.map +1 -1
  274. package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +1 -1
  275. package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts.map +1 -1
  276. package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +1 -1
  277. package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts.map +1 -1
  278. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts +1 -1
  279. package/dist/design-system/Icon/__generated/icons/PinBorderIcon.d.ts.map +1 -1
  280. package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +1 -1
  281. package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts.map +1 -1
  282. package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +1 -1
  283. package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts.map +1 -1
  284. package/dist/design-system/Icon/__generated/icons/PinXIcon.d.ts +1 -1
  285. package/dist/design-system/Icon/__generated/icons/PinXIcon.d.ts.map +1 -1
  286. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts +1 -1
  287. package/dist/design-system/Icon/__generated/icons/PlayCircleBorderIcon.d.ts.map +1 -1
  288. package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +1 -1
  289. package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts.map +1 -1
  290. package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +1 -1
  291. package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts.map +1 -1
  292. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts +1 -1
  293. package/dist/design-system/Icon/__generated/icons/PlusCircleBorderIcon.d.ts.map +1 -1
  294. package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +1 -1
  295. package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts.map +1 -1
  296. package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +1 -1
  297. package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts.map +1 -1
  298. package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +1 -1
  299. package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts.map +1 -1
  300. package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +1 -1
  301. package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +1 -1
  302. package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +1 -1
  303. package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts.map +1 -1
  304. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts +1 -1
  305. package/dist/design-system/Icon/__generated/icons/QueryListViewIcon.d.ts.map +1 -1
  306. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts +1 -1
  307. package/dist/design-system/Icon/__generated/icons/QueryNavIcon.d.ts.map +1 -1
  308. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts +1 -1
  309. package/dist/design-system/Icon/__generated/icons/QuestionMarkBorderIcon.d.ts.map +1 -1
  310. package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +1 -1
  311. package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts.map +1 -1
  312. package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +1 -1
  313. package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts.map +1 -1
  314. package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts +1 -1
  315. package/dist/design-system/Icon/__generated/icons/ReposIcon.d.ts.map +1 -1
  316. package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +1 -1
  317. package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts.map +1 -1
  318. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts +1 -1
  319. package/dist/design-system/Icon/__generated/icons/Search1Icon.d.ts.map +1 -1
  320. package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +1 -1
  321. package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts.map +1 -1
  322. package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +1 -1
  323. package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts.map +1 -1
  324. package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +1 -1
  325. package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +1 -1
  326. package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +1 -1
  327. package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts.map +1 -1
  328. package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +1 -1
  329. package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts.map +1 -1
  330. package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +1 -1
  331. package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +1 -1
  332. package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +1 -1
  333. package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts.map +1 -1
  334. package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +1 -1
  335. package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts.map +1 -1
  336. package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +1 -1
  337. package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts.map +1 -1
  338. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts +1 -1
  339. package/dist/design-system/Icon/__generated/icons/StarBorderIcon.d.ts.map +1 -1
  340. package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +1 -1
  341. package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts.map +1 -1
  342. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts +1 -1
  343. package/dist/design-system/Icon/__generated/icons/StopCircleBorderIcon.d.ts.map +1 -1
  344. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts +1 -1
  345. package/dist/design-system/Icon/__generated/icons/StopCricleFillIcon.d.ts.map +1 -1
  346. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +1 -1
  347. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
  348. package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +1 -1
  349. package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts.map +1 -1
  350. package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +1 -1
  351. package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts.map +1 -1
  352. package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +1 -1
  353. package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts.map +1 -1
  354. package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +1 -1
  355. package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts.map +1 -1
  356. package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +1 -1
  357. package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts.map +1 -1
  358. package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +1 -1
  359. package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts.map +1 -1
  360. package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +1 -1
  361. package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts.map +1 -1
  362. package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +1 -1
  363. package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts.map +1 -1
  364. package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +1 -1
  365. package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts.map +1 -1
  366. package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +1 -1
  367. package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts.map +1 -1
  368. package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +1 -1
  369. package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts.map +1 -1
  370. package/dist/design-system/Icon/__generated/icons/VideosIcon.d.ts +1 -1
  371. package/dist/design-system/Icon/__generated/icons/VideosIcon.d.ts.map +1 -1
  372. package/dist/design-system/Icon/__generated/icons/Visible.d.ts +4 -0
  373. package/dist/design-system/Icon/__generated/icons/Visible.d.ts.map +1 -0
  374. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts +4 -0
  375. package/dist/design-system/Icon/__generated/icons/VisibleOff.d.ts.map +1 -0
  376. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts +1 -1
  377. package/dist/design-system/Icon/__generated/icons/WarningBorderIcon.d.ts.map +1 -1
  378. package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +1 -1
  379. package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts.map +1 -1
  380. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts +1 -1
  381. package/dist/design-system/Icon/__generated/icons/XCircleBorderIcon.d.ts.map +1 -1
  382. package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +1 -1
  383. package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts.map +1 -1
  384. package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +1 -1
  385. package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts.map +1 -1
  386. package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +1 -1
  387. package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts.map +1 -1
  388. package/dist/design-system/Icon/__generated/icons/index.d.ts +3 -0
  389. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  390. package/dist/design-system/Icon/iconMap.d.ts.map +1 -1
  391. package/dist/design-system/Input/Input.d.ts +6 -5
  392. package/dist/design-system/Input/Input.d.ts.map +1 -1
  393. package/dist/design-system/Layout/Layout.d.ts +4 -2
  394. package/dist/design-system/Layout/Layout.d.ts.map +1 -1
  395. package/dist/design-system/Menu/Menu.d.ts +4 -2
  396. package/dist/design-system/Menu/Menu.d.ts.map +1 -1
  397. package/dist/design-system/Modal/Modal.d.ts +4 -4
  398. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  399. package/dist/design-system/Notification/Notification.d.ts +4 -2
  400. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  401. package/dist/design-system/PageWrapper/PageWrapper.d.ts +2 -1
  402. package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
  403. package/dist/design-system/Pagination/index.d.ts +5 -5
  404. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  405. package/dist/design-system/Popover/Popover.d.ts +3 -2
  406. package/dist/design-system/Popover/Popover.d.ts.map +1 -1
  407. package/dist/design-system/Radio/Radio.d.ts +4 -4
  408. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  409. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +7 -6
  410. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  411. package/dist/design-system/Select/Select.d.ts +10 -6
  412. package/dist/design-system/Select/Select.d.ts.map +1 -1
  413. package/dist/design-system/Skeleton/Skeleton.d.ts +6 -4
  414. package/dist/design-system/Skeleton/Skeleton.d.ts.map +1 -1
  415. package/dist/design-system/Space/Space.d.ts +3 -2
  416. package/dist/design-system/Space/Space.d.ts.map +1 -1
  417. package/dist/design-system/Spacer/Spacer.d.ts +2 -1
  418. package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
  419. package/dist/design-system/Spinner/Spinner.d.ts +3 -3
  420. package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
  421. package/dist/design-system/SplitButton/SplitButton.d.ts +3 -2
  422. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  423. package/dist/design-system/Switch/Switch.d.ts +5 -3
  424. package/dist/design-system/Switch/Switch.d.ts.map +1 -1
  425. package/dist/design-system/Table/Table.d.ts +1 -1
  426. package/dist/design-system/Table/Table.d.ts.map +1 -1
  427. package/dist/design-system/Tabs/index.d.ts +5 -5
  428. package/dist/design-system/Tabs/index.d.ts.map +1 -1
  429. package/dist/design-system/Tag/index.d.ts +6 -3
  430. package/dist/design-system/Tag/index.d.ts.map +1 -1
  431. package/dist/design-system/Tooltip/Tooltip.d.ts +7 -2
  432. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
  433. package/dist/design-system/Tree/Tree.d.ts +4 -4
  434. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  435. package/dist/design-system/Typography/Link.d.ts +4 -3
  436. package/dist/design-system/Typography/Link.d.ts.map +1 -1
  437. package/dist/design-system/Typography/Paragraph.d.ts +3 -3
  438. package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
  439. package/dist/design-system/Typography/Text.d.ts +3 -3
  440. package/dist/design-system/Typography/Text.d.ts.map +1 -1
  441. package/dist/design-system/Typography/Title.d.ts +3 -4
  442. package/dist/design-system/Typography/Title.d.ts.map +1 -1
  443. package/dist/design-system/Typography/Typography.d.ts +5 -4
  444. package/dist/design-system/Typography/Typography.d.ts.map +1 -1
  445. package/dist/design-system/constants.d.ts +1 -1
  446. package/dist/design-system/constants.d.ts.map +1 -1
  447. package/dist/design-system/types.d.ts +10 -2
  448. package/dist/design-system/types.d.ts.map +1 -1
  449. package/dist/design-system/utils/css-utils.d.ts +3 -3
  450. package/dist/design-system/utils/css-utils.d.ts.map +1 -1
  451. package/dist/flags.d.ts +11 -0
  452. package/dist/flags.d.ts.map +1 -0
  453. package/dist/index-dark.css +91 -91
  454. package/dist/index.css +59 -59
  455. package/dist/index.js +1204 -824
  456. package/dist/index.js.map +1 -1
  457. package/dist/theme/colorList.d.ts +12 -3
  458. package/dist/theme/colorList.d.ts.map +1 -1
  459. package/dist/theme/colors.d.ts +13 -4
  460. package/dist/theme/colors.d.ts.map +1 -1
  461. package/dist/theme/convertToLessVars.d.ts +1 -1
  462. package/dist/theme/convertToLessVars.d.ts.map +1 -1
  463. package/dist/theme/generalVariables.d.ts +1 -0
  464. package/dist/theme/generalVariables.d.ts.map +1 -1
  465. package/dist/theme/index.d.ts +1 -2
  466. package/dist/theme/index.d.ts.map +1 -1
  467. package/package.json +11 -10
package/dist/index.js CHANGED
@@ -16703,7 +16703,7 @@ function generateSelector(config) {
16703
16703
 
16704
16704
  cancelSetMockFocused();
16705
16705
 
16706
- if (!mobile && !popupElement.contains(document.activeElement)) {
16706
+ if (!mobile && !popupElement.contains(target.getRootNode().activeElement)) {
16707
16707
  var _selectorRef$current3;
16708
16708
 
16709
16709
  (_selectorRef$current3 = selectorRef.current) === null || _selectorRef$current3 === void 0 ? void 0 : _selectorRef$current3.focus();
@@ -49394,9 +49394,565 @@ Typography$1.Title = Title$2;
49394
49394
  Typography$1.Paragraph = Paragraph$2;
49395
49395
  var AntDTypography = Typography$1;
49396
49396
 
49397
+ // Border variables
49398
+ const borders = {
49399
+ borderRadiusMd: 4
49400
+ }; // eslint-disable-next-line import/no-anonymous-default-export
49401
+
49402
+ var borders$1 = { ...borders
49403
+ };
49404
+
49405
+ // Exported from go/designsystem/colorsheet
49406
+ const colorPalettePrimary = {
49407
+ primary: '#2272B4',
49408
+ blue100: '#F0F8FF',
49409
+ blue200: '#D7EDFE',
49410
+ blue300: '#BAE1FC',
49411
+ blue400: '#8ACAFF',
49412
+ blue500: '#4299E0',
49413
+ blue600: '#2272B4',
49414
+ blue700: '#0E538B',
49415
+ blue800: '#04355D',
49416
+ green100: '#F3FCF6',
49417
+ green200: '#D4F7DF',
49418
+ green300: '#B1ECC5',
49419
+ green400: '#8DDDA8',
49420
+ green500: '#3CAA60',
49421
+ green600: '#277C43',
49422
+ green700: '#115026',
49423
+ green800: '#093919',
49424
+ white: '#FFFFFF',
49425
+ grey100: '#F2F5F7',
49426
+ grey200: '#E4ECF1',
49427
+ grey300: '#CDDAE5',
49428
+ grey400: '#BDCDDB',
49429
+ grey500: '#8196A7',
49430
+ grey600: '#5D7283',
49431
+ grey700: '#44535F',
49432
+ grey800: '#1F272D',
49433
+ red100: '#FFF5F7',
49434
+ red200: '#FDE2E8',
49435
+ red300: '#FBD0D8',
49436
+ red400: '#F792A6',
49437
+ red500: '#E65B77',
49438
+ red600: '#C82D4C',
49439
+ red700: '#9E102C',
49440
+ red800: '#630316',
49441
+ yellow100: '#FFF9EB',
49442
+ yellow200: '#FCEACA',
49443
+ yellow300: '#F8D4A5',
49444
+ yellow400: '#F2BE88',
49445
+ yellow500: '#DE7921',
49446
+ yellow600: '#BE501E',
49447
+ yellow700: '#93320B',
49448
+ yellow800: '#5F1B02'
49449
+ };
49450
+ const colorPaletteSecondary = {
49451
+ brown: '#A6630C',
49452
+ coral: '#C83243',
49453
+ charcoal: '#5D7283',
49454
+ indigo: '#434A93',
49455
+ lemon: '#FACB66',
49456
+ lime: '#308613',
49457
+ pink: '#B45091',
49458
+ purple: '#8A63BF',
49459
+ teal: '#04867D',
49460
+ turquoise: '#157CBC'
49461
+ }; // Colors taken from figma designs but not part of official list (yet)
49462
+
49463
+ const unstableColors = {
49464
+ textValidationInfo: '#64727D',
49465
+ backgroundValidationDanger: colorPalettePrimary.red100,
49466
+ backgroundValidationSuccess: colorPalettePrimary.blue100,
49467
+ backgroundValidationWarning: colorPalettePrimary.yellow100,
49468
+ borderValidationDanger: colorPalettePrimary.red300,
49469
+ borderValidationSuccess: colorPalettePrimary.blue300,
49470
+ borderValidationWarning: colorPalettePrimary.yellow300
49471
+ };
49472
+ const lightColorList = {
49473
+ backgroundPrimary: colorPalettePrimary.white,
49474
+ actionDangerPrimaryBackgroundDefault: colorPalettePrimary.red600,
49475
+ actionDangerPrimaryBackgroundHover: colorPalettePrimary.red700,
49476
+ actionDangerPrimaryBackgroundPress: colorPalettePrimary.red800,
49477
+ actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red600).alpha(0).hex(),
49478
+ actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red600).alpha(0.08).hex(),
49479
+ actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red600).alpha(0.16).hex(),
49480
+ actionDangerDefaultBorderDefault: colorPalettePrimary.red600,
49481
+ actionDangerDefaultBorderHover: colorPalettePrimary.red700,
49482
+ actionDangerDefaultBorderPress: colorPalettePrimary.red800,
49483
+ actionDangerDefaultTextDefault: colorPalettePrimary.red600,
49484
+ actionDangerDefaultTextHover: colorPalettePrimary.red700,
49485
+ actionDangerDefaultTextPress: colorPalettePrimary.red800,
49486
+ actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
49487
+ actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
49488
+ actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
49489
+ actionDefaultBorderDefault: colorPalettePrimary.grey300,
49490
+ actionDefaultBorderFocus: colorPalettePrimary.blue600,
49491
+ actionDefaultBorderHover: colorPalettePrimary.blue700,
49492
+ actionDefaultBorderPress: colorPalettePrimary.blue800,
49493
+ actionDefaultTextDefault: colorPalettePrimary.grey800,
49494
+ actionDefaultTextHover: colorPalettePrimary.blue700,
49495
+ actionDefaultTextPress: colorPalettePrimary.blue800,
49496
+ actionDisabledBackground: colorPalettePrimary.grey200,
49497
+ actionDisabledText: colorPalettePrimary.grey400,
49498
+ actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
49499
+ actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
49500
+ actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
49501
+ actionPrimaryTextDefault: colorPalettePrimary.white,
49502
+ actionPrimaryTextHover: colorPalettePrimary.white,
49503
+ actionPrimaryTextPress: colorPalettePrimary.white,
49504
+ actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
49505
+ actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
49506
+ actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
49507
+ actionTertiaryTextDefault: colorPalettePrimary.blue600,
49508
+ actionTertiaryTextHover: colorPalettePrimary.blue700,
49509
+ actionTertiaryTextPress: colorPalettePrimary.blue800,
49510
+ backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
49511
+ backgroundSecondary: colorPalettePrimary.grey100,
49512
+ backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
49513
+ border: colorPalettePrimary.grey300,
49514
+ borderDecorative: colorPalettePrimary.grey300,
49515
+ textPrimary: colorPalettePrimary.grey800,
49516
+ textSecondary: colorPalettePrimary.grey600,
49517
+ textPlaceholder: colorPalettePrimary.grey400,
49518
+ textValidationDanger: colorPalettePrimary.red600,
49519
+ textValidationSuccess: colorPalettePrimary.green600,
49520
+ textValidationWarning: colorPalettePrimary.yellow600,
49521
+ overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
49522
+ // Tags
49523
+ tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
49524
+ tagBrown: colorPaletteSecondary.brown,
49525
+ tagCoral: colorPaletteSecondary.coral,
49526
+ tagCharcoal: colorPalettePrimary.grey600,
49527
+ tagIndigo: colorPaletteSecondary.indigo,
49528
+ tagLemon: colorPaletteSecondary.lemon,
49529
+ tagLime: colorPaletteSecondary.lime,
49530
+ tagPink: colorPaletteSecondary.pink,
49531
+ tagPurple: colorPaletteSecondary.purple,
49532
+ tagTeal: colorPaletteSecondary.teal,
49533
+ tagTurquoise: colorPaletteSecondary.turquoise,
49534
+ tagText: colorPalettePrimary.white,
49535
+ tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
49536
+ tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
49537
+ tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
49538
+ tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
49539
+ // Typography
49540
+ typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
49541
+ tooltipBackgroundTooltip: colorPalettePrimary.grey800,
49542
+ ...unstableColors
49543
+ };
49544
+ const darkColorList = {
49545
+ actionDangerPrimaryBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
49546
+ actionDangerPrimaryBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
49547
+ actionDangerPrimaryBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
49548
+ actionDangerDefaultBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0).hex(),
49549
+ actionDangerDefaultBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.08).hex(),
49550
+ actionDangerDefaultBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.16).hex(),
49551
+ actionDangerDefaultBorderDefault: colorPalettePrimary.red400,
49552
+ actionDangerDefaultBorderHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
49553
+ actionDangerDefaultBorderPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
49554
+ actionDangerDefaultTextDefault: colorPalettePrimary.red400,
49555
+ actionDangerDefaultTextHover: chroma(colorPalettePrimary.red400).alpha(0.72).hex(),
49556
+ actionDangerDefaultTextPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
49557
+ actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
49558
+ actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
49559
+ actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
49560
+ actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
49561
+ actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
49562
+ actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
49563
+ actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
49564
+ actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
49565
+ actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
49566
+ actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
49567
+ actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
49568
+ actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),
49569
+ actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
49570
+ actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
49571
+ actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
49572
+ actionPrimaryTextDefault: colorPalettePrimary.grey800,
49573
+ actionPrimaryTextHover: colorPalettePrimary.grey800,
49574
+ actionPrimaryTextPress: colorPalettePrimary.grey800,
49575
+ actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
49576
+ actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
49577
+ actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
49578
+ actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
49579
+ actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
49580
+ actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
49581
+ backgroundPrimary: colorPalettePrimary.grey800,
49582
+ backgroundSecondary: chroma(colorPalettePrimary.white).alpha(0.04).hex(),
49583
+ border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
49584
+ borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
49585
+ textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
49586
+ textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
49587
+ textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
49588
+ textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
49589
+ textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
49590
+ textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
49591
+ overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
49592
+ // Tags
49593
+ tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
49594
+ tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),
49595
+ tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),
49596
+ tagCharcoal: chroma(colorPalettePrimary.grey600).alpha(0.84).hex(),
49597
+ tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),
49598
+ tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),
49599
+ tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),
49600
+ tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),
49601
+ tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),
49602
+ tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),
49603
+ tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
49604
+ tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
49605
+ tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
49606
+ tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
49607
+ tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
49608
+ tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
49609
+ // Typography
49610
+ typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
49611
+ tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
49612
+ // Missing in list
49613
+ backgroundDanger: 'rgba(200,45,76,0.08)',
49614
+ backgroundWarning: 'rgba(222,121,33,0.08)',
49615
+ // Missing in light list
49616
+ // "background-validation-danger": "rgba(229,110,134,0)",
49617
+ // "background-validation-warning": "rgba(252,234,202,0)",
49618
+ ...unstableColors
49619
+ };
49620
+
49621
+ const darkColors = { ...darkColorList,
49622
+ ...colorPalettePrimary,
49623
+ ...colorPaletteSecondary
49624
+ };
49625
+ const lightColors = { ...lightColorList,
49626
+ ...colorPalettePrimary,
49627
+ ...colorPaletteSecondary
49628
+ };
49629
+
49630
+ function getSemanticColors(theme) {
49631
+ switch (theme) {
49632
+ case 'dark':
49633
+ return { ...darkColors
49634
+ };
49635
+
49636
+ default:
49637
+ return { ...lightColors
49638
+ };
49639
+ }
49640
+ }
49641
+ /*
49642
+ Colors that need to be replaced by semantic colors.
49643
+ */
49644
+
49645
+ const deprecatedColors = {
49646
+ // Radio Colors
49647
+ radioInteractiveAvailable: colorPalettePrimary.primary,
49648
+ radioInteractiveHover: '#186099',
49649
+ radioInteractivePress: '#0D4F85',
49650
+ radioDisabled: '#A2AEB8',
49651
+ radioDefaultBorder: '#64727D',
49652
+ radioDefaultBackground: '#FFFFFF',
49653
+ radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
49654
+ // Fade of Interactive Available
49655
+ radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
49656
+
49657
+ };
49658
+ function getColors(theme) {
49659
+ return { ...deprecatedColors,
49660
+ ...getSemanticColors(theme)
49661
+ };
49662
+ }
49663
+
49664
+ // eslint-disable-next-line import/no-anonymous-default-export
49665
+ var antdVars = {
49666
+ // IMPORTANT: Do not read this directly from components. Use `React.useContext`.
49667
+ 'ant-prefix': 'du-bois'
49668
+ };
49669
+
49670
+ const DEFAULT_SPACING_UNIT = 8;
49671
+ const MODAL_PADDING = 40;
49672
+ const spacing = {
49673
+ xs: DEFAULT_SPACING_UNIT / 2,
49674
+ sm: DEFAULT_SPACING_UNIT,
49675
+ md: DEFAULT_SPACING_UNIT * 2,
49676
+ lg: DEFAULT_SPACING_UNIT * 3
49677
+ }; // Less variables that are used by AntD
49678
+
49679
+ ({
49680
+ defaultPaddingLg: spacing.lg,
49681
+ defaultPaddingMd: spacing.md,
49682
+ defaultPaddingSm: spacing.sm,
49683
+ defaultPaddingXs: spacing.sm,
49684
+ defaultPaddingXss: spacing.xs,
49685
+ paddingLg: spacing.md,
49686
+ // TODO: Check if there is a better alternative with team
49687
+ paddingMd: spacing.sm,
49688
+ paddingSm: spacing.sm,
49689
+ paddingXs: spacing.xs,
49690
+ paddingXss: 0,
49691
+ marginSm: 12,
49692
+ marginLg: spacing.lg,
49693
+ // Button
49694
+ btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
49695
+ btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
49696
+ btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
49697
+ // Modal
49698
+ modalPadding: MODAL_PADDING,
49699
+ modalLessPadding: MODAL_PADDING - 20,
49700
+ modalHeaderPadding: "".concat(MODAL_PADDING, "px ").concat(MODAL_PADDING, "px ").concat(MODAL_PADDING - 20, "px"),
49701
+ modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
49702
+ modalHeaderBorderWidth: 0,
49703
+ modalBodyPadding: "0 ".concat(MODAL_PADDING, "px"),
49704
+ modalFooterPaddingVertical: 0,
49705
+ modalFooterPaddingHorizontal: 0,
49706
+ modalFooterBorderWidth: 0,
49707
+ // Switch
49708
+ switchPadding: 0,
49709
+ switchHeight: 16,
49710
+ switchMinWidth: 28,
49711
+ switchPinSize: 14
49712
+ });
49713
+ var spacing$1 = spacing;
49714
+
49715
+ const heightBase = 40;
49716
+ const borderWidth = 1;
49717
+ const antdGeneralVariables = {
49718
+ classnamePrefix: antdVars['ant-prefix'],
49719
+ iconfontCssPrefix: 'anticon',
49720
+ borderRadiusBase: 4,
49721
+ borderWidth: borderWidth,
49722
+ heightSm: 32,
49723
+ heightBase: heightBase,
49724
+ iconSize: 24,
49725
+ // TODO: Update with icon overhaul to 16px
49726
+ iconFontSize: 13,
49727
+ buttonHeight: heightBase,
49728
+ // Height available within button (for label and icon). Same for middle and small buttons.
49729
+ buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
49730
+ };
49731
+ var generalVariables = antdGeneralVariables;
49732
+
49733
+ const FONT_SIZE_BASE = 13; // Less variables that are used by AntD
49734
+
49735
+ const antdTypography = {
49736
+ fontSizeSm: 12,
49737
+ fontSizeBase: FONT_SIZE_BASE,
49738
+ fontSizeMd: FONT_SIZE_BASE,
49739
+ fontSizeLg: 18,
49740
+ fontSizeXl: 22,
49741
+ fontSizeXxl: 32,
49742
+ lineHeightSm: '16px',
49743
+ lineHeightBase: '20px',
49744
+ lineHeightMd: '20px',
49745
+ lineHeightLg: '24px',
49746
+ lineHeightXl: '28px',
49747
+ lineHeightXxl: '40px',
49748
+ typographyBoldFontWeight: 600
49749
+ }; // eslint-disable-next-line import/no-anonymous-default-export
49750
+
49751
+ var typography = { ...antdTypography
49752
+ };
49753
+
49754
+ // eslint-disable-next-line import/no-named-as-default
49755
+
49756
+ const defaultOptions = {
49757
+ enableAnimation: false,
49758
+ zIndexBase: 1000
49759
+ }; // Function to get variables for a certain theme.
49760
+ // End users should use useDesignSystemTheme instead.
49761
+
49762
+ function getTheme(themeName) {
49763
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
49764
+ return {
49765
+ colors: getColors(themeName),
49766
+ spacing: spacing$1,
49767
+ general: generalVariables,
49768
+ typography,
49769
+ borders: borders$1,
49770
+ themeName,
49771
+ options
49772
+ };
49773
+ }
49774
+
49775
+ const themeNameToAntdName = {
49776
+ dark: 'dark',
49777
+ default: 'light'
49778
+ };
49779
+ function getClassNamePrefix(theme) {
49780
+ const antdThemeName = themeNameToAntdName[theme.themeName];
49781
+ return "".concat(theme.general.classnamePrefix, "-").concat(antdThemeName);
49782
+ }
49783
+ function getPrefixedClassNameFromTheme(theme, className) {
49784
+ return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
49785
+ }
49786
+ function useDesignSystemTheme() {
49787
+ const emotionTheme = useTheme(); // Graceful fallback to default theme in case a test or developer forgot context.
49788
+
49789
+ const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme('default');
49790
+ return {
49791
+ theme: theme,
49792
+ classNamePrefix: getClassNamePrefix(theme),
49793
+ getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
49794
+ };
49795
+ }
49796
+ // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
49797
+ function WithDesignSystemThemeHoc(Component) {
49798
+ return function WrappedWithDesignSystemTheme(props) {
49799
+ const themeValues = useDesignSystemTheme();
49800
+ return jsx(Component, { ...props,
49801
+ designSystemThemeApi: themeValues
49802
+ });
49803
+ };
49804
+ }
49805
+
49806
+ const DuboisContextDefaults = {
49807
+ enableAnimation: false,
49808
+ theme: 'default',
49809
+ // Prefer to use useDesignSystemTheme.getPrefixedClassName instead
49810
+ getPrefixCls: suffix => suffix ? "du-bois-".concat(suffix) : 'du-bois',
49811
+ flags: {}
49812
+ };
49813
+ const DesignSystemContext = /*#__PURE__*/createContext(DuboisContextDefaults);
49814
+ function getAnimationCss(enableAnimation) {
49815
+ const disableAnimationCss = {
49816
+ animationDuration: '0s !important',
49817
+ transition: 'none !important'
49818
+ };
49819
+ return enableAnimation ? {} : { // Apply to the current element
49820
+ ...disableAnimationCss,
49821
+ '&::before': disableAnimationCss,
49822
+ '&::after': disableAnimationCss,
49823
+ // Also apply to all child elements with a class that starts with our prefix
49824
+ '[class*=du-bois]': { ...disableAnimationCss,
49825
+ // Also target any pseudo-elements associated with those elements, since these can also be animated.
49826
+ '&::before': disableAnimationCss,
49827
+ '&::after': disableAnimationCss
49828
+ }
49829
+ };
49830
+ }
49831
+ const DesignSystemProviderPropsContext = /*#__PURE__*/React__default.createContext(null);
49832
+ const DesignSystemProvider = _ref => {
49833
+ let {
49834
+ children,
49835
+ theme: themeName,
49836
+ enableAnimation = false,
49837
+ zIndexBase = 1000,
49838
+ getPopupContainer,
49839
+ flags = {}
49840
+ } = _ref;
49841
+ const theme = useMemo$1(() => getTheme(themeName || 'default', {
49842
+ enableAnimation,
49843
+ zIndexBase
49844
+ }), // TODO: revisit this
49845
+ // eslint-disable-next-line react-hooks/exhaustive-deps
49846
+ [themeName, zIndexBase]);
49847
+ const providerPropsContext = useMemo$1(() => ({
49848
+ theme: themeName,
49849
+ enableAnimation,
49850
+ zIndexBase,
49851
+ getPopupContainer,
49852
+ flags
49853
+ }), [themeName, enableAnimation, zIndexBase, getPopupContainer, flags]);
49854
+ const classNamePrefix = getClassNamePrefix(theme);
49855
+ const value = useMemo$1(() => {
49856
+ return {
49857
+ enableAnimation,
49858
+ theme: theme.themeName,
49859
+ getPrefixCls: suffix => getPrefixedClassNameFromTheme(theme, suffix),
49860
+ getPopupContainer,
49861
+ flags
49862
+ };
49863
+ }, [enableAnimation, theme, getPopupContainer, flags]);
49864
+ useEffect(() => {
49865
+ return () => {
49866
+ // when the design system context is unmounted, make sure the notification cache is also cleaned up
49867
+ antDNotification.destroy();
49868
+ };
49869
+ }, []);
49870
+ return jsx(DesignSystemProviderPropsContext.Provider, {
49871
+ value: providerPropsContext,
49872
+ children: jsx(ThemeProvider, {
49873
+ theme: theme,
49874
+ children: jsx(ConfigProvider$1, {
49875
+ prefixCls: classNamePrefix,
49876
+ getPopupContainer: getPopupContainer,
49877
+ children: jsx(DesignSystemContext.Provider, {
49878
+ value: value,
49879
+ children: children
49880
+ })
49881
+ })
49882
+ })
49883
+ });
49884
+ };
49885
+ const ApplyDesignSystemFlags = _ref2 => {
49886
+ let {
49887
+ flags,
49888
+ children
49889
+ } = _ref2;
49890
+ const parentDesignSystemProviderProps = useContext(DesignSystemProviderPropsContext);
49891
+
49892
+ if (parentDesignSystemProviderProps === null) {
49893
+ throw new Error("ApplyDesignSystemFlags cannot be used standalone - DesignSystemProvider must exist in the React context");
49894
+ }
49895
+
49896
+ const newProps = useMemo$1(() => ({ ...parentDesignSystemProviderProps,
49897
+ flags: { ...parentDesignSystemProviderProps.flags,
49898
+ ...flags
49899
+ }
49900
+ }), [parentDesignSystemProviderProps, flags]);
49901
+ return jsx(DesignSystemProvider, { ...newProps,
49902
+ children: children
49903
+ });
49904
+ };
49905
+
49906
+ function useDesignSystemContext() {
49907
+ return useContext(DesignSystemContext);
49908
+ }
49909
+
49910
+ function useDesignSystemFlags() {
49911
+ const context = useDesignSystemContext();
49912
+ return context.flags;
49913
+ }
49914
+
49915
+ /**
49916
+ * A helper hook that allows quick creation of theme-dependent styles.
49917
+ * Results in more compact code than using useMemo and
49918
+ * useDesignSystemTheme separately.
49919
+ *
49920
+ * @example
49921
+ * const styles = useThemedStyles((theme) => ({
49922
+ * overlay: {
49923
+ * backgroundColor: theme.colors.backgroundPrimary,
49924
+ * borderRadius: theme.borders.borderRadiusMd,
49925
+ * },
49926
+ * wrapper: {
49927
+ * display: 'flex',
49928
+ * gap: theme.spacing.md,
49929
+ * },
49930
+ * }));
49931
+
49932
+ * <div css={styles.overlay}>...</div>
49933
+ *
49934
+ * @param styleFactory Factory function that accepts theme object as a parameter and returns
49935
+ * the style object. **Note**: factory function body is being memoized internally and is intended
49936
+ * to be used only for simple style objects that depend solely on the theme. If you want to use
49937
+ * styles that change depending on external values (state, props etc.) you should use
49938
+ * `useDesignSystemTheme` directly with your own reaction mechanism.
49939
+ * @returns The constructed style object
49940
+ */
49941
+
49942
+ const useThemedStyles = styleFactory => {
49943
+ const {
49944
+ theme
49945
+ } = useDesignSystemTheme(); // We can assume that the factory function won't change and we're
49946
+ // observing theme changes only.
49947
+
49948
+ const styleFactoryRef = useRef(styleFactory);
49949
+ return useMemo$1(() => styleFactoryRef.current(theme), [theme]);
49950
+ };
49951
+
49397
49952
  const Icon = props => {
49398
49953
  const {
49399
49954
  component: Component,
49955
+ dangerouslySetAntdProps,
49400
49956
  ...otherProps
49401
49957
  } = props;
49402
49958
  const MemoizedComponent = useMemo$1(() => Component ? _ref => {
@@ -49415,7 +49971,8 @@ const Icon = props => {
49415
49971
  return jsx(AntDIcon, {
49416
49972
  style: {},
49417
49973
  component: MemoizedComponent,
49418
- ...otherProps
49974
+ ...otherProps,
49975
+ ...dangerouslySetAntdProps
49419
49976
  });
49420
49977
  };
49421
49978
 
@@ -51341,6 +51898,29 @@ function IndentIncreaseIcon(props) {
51341
51898
  });
51342
51899
  }
51343
51900
 
51901
+ function SvgInfinityIcon(props) {
51902
+ return jsx("svg", {
51903
+ width: "1em",
51904
+ height: "1em",
51905
+ viewBox: "0 0 16 16",
51906
+ fill: "none",
51907
+ xmlns: "http://www.w3.org/2000/svg",
51908
+ ...props,
51909
+ children: jsx("path", {
51910
+ fillRule: "evenodd",
51911
+ clipRule: "evenodd",
51912
+ d: "M8 6.94l1.591-1.592a3.75 3.75 0 110 5.304L8 9.06l-1.591 1.59a3.75 3.75 0 110-5.303L8 6.94zm2.652-.531a2.25 2.25 0 110 3.182L9.06 8l1.59-1.591zM6.939 8L5.35 6.409a2.25 2.25 0 100 3.182l1.588-1.589L6.939 8z",
51913
+ fill: "currentColor"
51914
+ })
51915
+ });
51916
+ }
51917
+
51918
+ function InfinityIcon(props) {
51919
+ return jsx(Icon, { ...props,
51920
+ component: SvgInfinityIcon
51921
+ });
51922
+ }
51923
+
51344
51924
  function SvgInfoBorderIcon(props) {
51345
51925
  return jsx("svg", {
51346
51926
  width: "1em",
@@ -53180,6 +53760,80 @@ function VideosIcon(props) {
53180
53760
  });
53181
53761
  }
53182
53762
 
53763
+ function SvgVisible(props) {
53764
+ return jsxs("svg", {
53765
+ width: "1em",
53766
+ height: "1em",
53767
+ viewBox: "0 0 16 16",
53768
+ fill: "none",
53769
+ xmlns: "http://www.w3.org/2000/svg",
53770
+ ...props,
53771
+ children: [jsxs("g", {
53772
+ clipPath: "url(#Visible_svg__clip0_12466_34543)",
53773
+ fillRule: "evenodd",
53774
+ clipRule: "evenodd",
53775
+ fill: "currentColor",
53776
+ children: [jsx("path", {
53777
+ d: "M8 5a3 3 0 100 6 3 3 0 000-6zM6.5 8a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"
53778
+ }), jsx("path", {
53779
+ d: "M8 2A8.389 8.389 0 00.028 7.777a.75.75 0 000 .466 8.389 8.389 0 0015.944 0 .749.749 0 000-.466A8.389 8.389 0 008 2zm0 10.52a6.888 6.888 0 01-6.465-4.51 6.888 6.888 0 0112.93 0A6.888 6.888 0 018 12.52z"
53780
+ })]
53781
+ }), jsx("defs", {
53782
+ children: jsx("clipPath", {
53783
+ id: "Visible_svg__clip0_12466_34543",
53784
+ children: jsx("path", {
53785
+ fill: "#fff",
53786
+ d: "M0 0h16v16H0z"
53787
+ })
53788
+ })
53789
+ })]
53790
+ });
53791
+ }
53792
+
53793
+ function Visible(props) {
53794
+ return jsx(Icon, { ...props,
53795
+ component: SvgVisible
53796
+ });
53797
+ }
53798
+
53799
+ function SvgVisibleOff(props) {
53800
+ return jsxs("svg", {
53801
+ width: "1em",
53802
+ height: "1em",
53803
+ viewBox: "0 0 16 16",
53804
+ fill: "none",
53805
+ xmlns: "http://www.w3.org/2000/svg",
53806
+ ...props,
53807
+ children: [jsxs("g", {
53808
+ clipPath: "url(#VisibleOff_svg__clip0_12466_34549)",
53809
+ fill: "currentColor",
53810
+ children: [jsx("path", {
53811
+ fillRule: "evenodd",
53812
+ clipRule: "evenodd",
53813
+ d: "M11.634 13.195l1.336 1.335 1.06-1.06-11.5-11.5-1.06 1.06 1.027 1.028a8.395 8.395 0 00-2.469 3.72.75.75 0 000 .465 8.389 8.389 0 0011.606 4.952zm-1.14-1.14l-1.301-1.301a3 3 0 01-3.946-3.946L3.56 5.121A6.898 6.898 0 001.535 8.01a6.888 6.888 0 008.96 4.045z"
53814
+ }), jsx("path", {
53815
+ d: "M15.972 8.244a8.384 8.384 0 01-1.945 3.222l-1.061-1.06a6.886 6.886 0 001.499-2.396 6.888 6.888 0 00-8.187-4.293L5.082 2.522a8.389 8.389 0 0110.89 5.256c.05.15.05.314 0 .466z"
53816
+ }), jsx("path", {
53817
+ d: "M11 8c0 .14-.01.277-.028.411L7.59 5.028A3 3 0 0111 8z"
53818
+ })]
53819
+ }), jsx("defs", {
53820
+ children: jsx("clipPath", {
53821
+ id: "VisibleOff_svg__clip0_12466_34549",
53822
+ children: jsx("path", {
53823
+ fill: "#fff",
53824
+ d: "M0 0h16v16H0z"
53825
+ })
53826
+ })
53827
+ })]
53828
+ });
53829
+ }
53830
+
53831
+ function VisibleOff(props) {
53832
+ return jsx(Icon, { ...props,
53833
+ component: SvgVisibleOff
53834
+ });
53835
+ }
53836
+
53183
53837
  function SvgWarningBorderIcon(props) {
53184
53838
  return jsx("svg", {
53185
53839
  width: "1em",
@@ -53332,509 +53986,6 @@ function SeverityIcon(props) {
53332
53986
  });
53333
53987
  }
53334
53988
 
53335
- // Exported from go/designsystem/colorsheet
53336
- const colorPalettePrimary = {
53337
- primary: '#2272B4',
53338
- blue100: '#F0F8FF',
53339
- blue200: '#D7EDFE',
53340
- blue300: '#BADFFC',
53341
- blue400: '#8CCBFF',
53342
- blue500: '#439AE0',
53343
- blue600: '#2272B4',
53344
- blue700: '#0E538B',
53345
- blue800: '#04355D',
53346
- green100: '#F2FCF6',
53347
- green200: '#D4F7DF',
53348
- green300: '#B1ECC5',
53349
- green400: '#8DDDA8',
53350
- green500: '#3BA85F',
53351
- green600: '#277C43',
53352
- green700: '#115026',
53353
- green800: '#093A19',
53354
- white: '#FFFFFF',
53355
- grey100: '#F2F5F7',
53356
- grey200: '#E4EBF0',
53357
- grey300: '#CDDAE5',
53358
- grey400: '#BDCDDB',
53359
- grey500: '#8297A8',
53360
- grey600: '#5D7283',
53361
- grey700: '#44535F',
53362
- grey800: '#1F272D',
53363
- red100: '#FFF5F7',
53364
- red200: '#FDE2E8',
53365
- red300: '#FBD0D8',
53366
- red400: '#F7A6B6',
53367
- red500: '#E56E86',
53368
- red600: '#C72D4C',
53369
- red700: '#9E102C',
53370
- red800: '#630316',
53371
- yellow100: '#FFF9EB',
53372
- yellow200: '#FCEACA',
53373
- yellow300: '#F8D4A5',
53374
- yellow400: '#F2BE88',
53375
- yellow500: '#DE7A23',
53376
- yellow600: '#BF511E',
53377
- yellow700: '#93320B',
53378
- yellow800: '#611B02'
53379
- };
53380
- const colorPaletteSecondary = {
53381
- brown: '#A6630C',
53382
- coral: '#C83243',
53383
- charcoal: '#5D7283',
53384
- indigo: '#434A93',
53385
- lemon: '#FACB66',
53386
- lime: '#308813',
53387
- pink: '#B45091',
53388
- purple: '#8A63BF',
53389
- teal: '#035E58',
53390
- turquoise: '#147EB0'
53391
- }; // Colors taken from figma designs but not part of official list (yet)
53392
-
53393
- const unstableColors = {
53394
- textValidationInfo: '#64727D',
53395
- backgroundValidationDanger: colorPalettePrimary.red100,
53396
- backgroundValidationSuccess: colorPalettePrimary.blue100,
53397
- backgroundValidationWarning: colorPalettePrimary.yellow100,
53398
- borderValidationDanger: colorPalettePrimary.red300,
53399
- borderValidationSuccess: colorPalettePrimary.blue300,
53400
- borderValidationWarning: colorPalettePrimary.yellow300
53401
- };
53402
- const lightColorList = {
53403
- backgroundPrimary: colorPalettePrimary.white,
53404
- actionDangerBackgroundDefault: colorPalettePrimary.red600,
53405
- actionDangerBackgroundHover: colorPalettePrimary.red700,
53406
- actionDangerBackgroundPress: colorPalettePrimary.red800,
53407
- actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue800).alpha(0).hex(),
53408
- actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue800).alpha(0.08).hex(),
53409
- actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue800).alpha(0.16).hex(),
53410
- actionDefaultBorderDefault: colorPalettePrimary.grey300,
53411
- actionDefaultBorderFocus: colorPalettePrimary.blue600,
53412
- actionDefaultBorderHover: colorPalettePrimary.blue700,
53413
- actionDefaultBorderPress: colorPalettePrimary.blue800,
53414
- actionDefaultTextDefault: colorPalettePrimary.grey800,
53415
- actionDefaultTextHover: colorPalettePrimary.blue700,
53416
- actionDefaultTextPress: colorPalettePrimary.blue800,
53417
- actionDisabledBackground: colorPalettePrimary.grey200,
53418
- actionDisabledText: colorPalettePrimary.grey400,
53419
- actionPrimaryBackgroundDefault: colorPalettePrimary.blue600,
53420
- actionPrimaryBackgroundHover: colorPalettePrimary.blue700,
53421
- actionPrimaryBackgroundPress: colorPalettePrimary.blue800,
53422
- actionPrimaryTextDefault: colorPalettePrimary.white,
53423
- actionPrimaryTextHover: colorPalettePrimary.white,
53424
- actionPrimaryTextPress: colorPalettePrimary.white,
53425
- actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue600).alpha(0).hex(),
53426
- actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue600).alpha(0.08).hex(),
53427
- actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue600).alpha(0.16).hex(),
53428
- actionTertiaryTextDefault: colorPalettePrimary.blue600,
53429
- actionTertiaryTextHover: colorPalettePrimary.blue700,
53430
- actionTertiaryTextPress: colorPalettePrimary.blue800,
53431
- backgroundDanger: chroma(colorPalettePrimary.red100).alpha(0.08).hex(),
53432
- backgroundSecondary: colorPalettePrimary.grey100,
53433
- backgroundWarning: chroma(colorPalettePrimary.yellow100).alpha(0.08).hex(),
53434
- border: colorPalettePrimary.grey300,
53435
- borderDecorative: colorPalettePrimary.grey300,
53436
- textPrimary: colorPalettePrimary.grey800,
53437
- textSecondary: colorPalettePrimary.grey600,
53438
- textPlaceholder: colorPalettePrimary.grey400,
53439
- textValidationDanger: colorPalettePrimary.red600,
53440
- textValidationSuccess: colorPalettePrimary.green600,
53441
- textValidationWarning: colorPalettePrimary.yellow600,
53442
- overlayOverlay: chroma(colorPalettePrimary.grey100).alpha(0.72).hex(),
53443
- // Tags
53444
- tagDefault: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
53445
- tagBrown: colorPaletteSecondary.brown,
53446
- tagCoral: colorPaletteSecondary.coral,
53447
- tagCharcoal: colorPalettePrimary.grey600,
53448
- tagIndigo: colorPaletteSecondary.indigo,
53449
- tagLemon: colorPaletteSecondary.lemon,
53450
- tagLime: colorPaletteSecondary.lime,
53451
- tagPink: colorPaletteSecondary.pink,
53452
- tagPurple: colorPaletteSecondary.purple,
53453
- tagTeal: colorPaletteSecondary.teal,
53454
- tagTurquoise: colorPaletteSecondary.turquoise,
53455
- tagText: colorPalettePrimary.white,
53456
- tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
53457
- tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
53458
- tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
53459
- tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
53460
- // Typography
53461
- typographyCodeBg: chroma(colorPalettePrimary.grey600).alpha(0.08).hex(),
53462
- tooltipBackgroundTooltip: colorPalettePrimary.grey800,
53463
- ...unstableColors
53464
- };
53465
- const darkColorList = {
53466
- actionDangerBackgroundDefault: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
53467
- actionDangerBackgroundHover: chroma(colorPalettePrimary.red400).alpha(0.7).hex(),
53468
- actionDangerBackgroundPress: chroma(colorPalettePrimary.red400).alpha(0.6).hex(),
53469
- actionDefaultBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
53470
- actionDefaultBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
53471
- actionDefaultBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
53472
- actionDefaultBorderDefault: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
53473
- actionDefaultBorderFocus: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
53474
- actionDefaultBorderHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
53475
- actionDefaultBorderPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
53476
- actionDefaultTextDefault: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
53477
- actionDefaultTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
53478
- actionDefaultTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
53479
- actionDisabledBackground: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
53480
- actionDisabledText: chroma(colorPalettePrimary.white).alpha(0.4).hex(),
53481
- actionPrimaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
53482
- actionPrimaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
53483
- actionPrimaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
53484
- actionPrimaryTextDefault: colorPalettePrimary.grey800,
53485
- actionPrimaryTextHover: colorPalettePrimary.grey800,
53486
- actionPrimaryTextPress: colorPalettePrimary.grey800,
53487
- actionTertiaryBackgroundDefault: chroma(colorPalettePrimary.blue400).alpha(0).hex(),
53488
- actionTertiaryBackgroundHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
53489
- actionTertiaryBackgroundPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
53490
- actionTertiaryTextDefault: chroma(colorPalettePrimary.blue400).alpha(0.84).hex(),
53491
- actionTertiaryTextHover: chroma(colorPalettePrimary.blue400).alpha(0.8).hex(),
53492
- actionTertiaryTextPress: chroma(colorPalettePrimary.blue400).alpha(0.76).hex(),
53493
- backgroundPrimary: colorPalettePrimary.grey800,
53494
- backgroundSecondary: chroma(colorPalettePrimary.white).alpha(0.04).hex(),
53495
- border: chroma(colorPalettePrimary.white).alpha(0.48).hex(),
53496
- borderDecorative: chroma(colorPalettePrimary.white).alpha(0.24).hex(),
53497
- textPrimary: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
53498
- textSecondary: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
53499
- textPlaceholder: chroma(colorPalettePrimary.grey400).alpha(0.84).hex(),
53500
- textValidationDanger: chroma(colorPalettePrimary.red400).alpha(0.84).hex(),
53501
- textValidationSuccess: chroma(colorPalettePrimary.green400).alpha(0.84).hex(),
53502
- textValidationWarning: chroma(colorPalettePrimary.yellow400).alpha(0.84).hex(),
53503
- overlayOverlay: chroma(colorPalettePrimary.grey800).alpha(0.72).hex(),
53504
- // Tags
53505
- tagDefault: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
53506
- tagBrown: chroma(colorPaletteSecondary.brown).alpha(0.84).hex(),
53507
- tagCoral: chroma(colorPaletteSecondary.coral).alpha(0.84).hex(),
53508
- tagCharcoal: chroma(colorPalettePrimary.grey600).alpha(0.84).hex(),
53509
- tagIndigo: chroma(colorPaletteSecondary.indigo).alpha(0.84).hex(),
53510
- tagLemon: chroma(colorPaletteSecondary.lemon).alpha(0.84).hex(),
53511
- tagLime: chroma(colorPaletteSecondary.lime).alpha(0.84).hex(),
53512
- tagPink: chroma(colorPaletteSecondary.pink).alpha(0.84).hex(),
53513
- tagPurple: chroma(colorPaletteSecondary.purple).alpha(0.84).hex(),
53514
- tagTeal: chroma(colorPaletteSecondary.teal).alpha(0.84).hex(),
53515
- tagTurquoise: chroma(colorPaletteSecondary.turquoise).alpha(0.84).hex(),
53516
- tagText: chroma(colorPalettePrimary.white).alpha(0.84).hex(),
53517
- tagHover: chroma(colorPalettePrimary.blue400).alpha(0.08).hex(),
53518
- tagPress: chroma(colorPalettePrimary.blue400).alpha(0.16).hex(),
53519
- tagIconHover: chroma(colorPalettePrimary.white).alpha(0.8).hex(),
53520
- tagIconPress: chroma(colorPalettePrimary.white).alpha(0.76).hex(),
53521
- // Typography
53522
- typographyCodeBg: chroma(colorPalettePrimary.white).alpha(0.16).hex(),
53523
- tooltipBackgroundTooltip: chroma(colorPalettePrimary.white).alpha(0.6).hex(),
53524
- // Missing in list
53525
- backgroundDanger: 'rgba(200,45,76,0.08)',
53526
- backgroundWarning: 'rgba(222,121,33,0.08)',
53527
- // Missing in light list
53528
- // "background-validation-danger": "rgba(229,110,134,0)",
53529
- // "background-validation-warning": "rgba(252,234,202,0)",
53530
- ...unstableColors
53531
- };
53532
-
53533
- const darkColors = { ...darkColorList,
53534
- ...colorPalettePrimary,
53535
- ...colorPaletteSecondary
53536
- };
53537
- const lightColors = { ...lightColorList,
53538
- ...colorPalettePrimary,
53539
- ...colorPaletteSecondary
53540
- };
53541
-
53542
- function getSemanticColors(theme) {
53543
- switch (theme) {
53544
- case 'dark':
53545
- return { ...darkColors
53546
- };
53547
-
53548
- default:
53549
- return { ...lightColors
53550
- };
53551
- }
53552
- }
53553
- /*
53554
- Colors that need to be replaced by semantic colors.
53555
- */
53556
-
53557
- const deprecatedColors = {
53558
- // Radio Colors
53559
- radioInteractiveAvailable: colorPalettePrimary.primary,
53560
- radioInteractiveHover: '#186099',
53561
- radioInteractivePress: '#0D4F85',
53562
- radioDisabled: '#A2AEB8',
53563
- radioDefaultBorder: '#64727D',
53564
- radioDefaultBackground: '#FFFFFF',
53565
- radioInteractiveHoverSecondary: 'rgba(34, 115, 181, 0.08)',
53566
- // Fade of Interactive Available
53567
- radioInteractivePressSecondary: 'rgba(34, 115, 181, 0.16)' // Fade of Interactive Available
53568
-
53569
- };
53570
- function getColors(theme) {
53571
- return { ...deprecatedColors,
53572
- ...getSemanticColors(theme)
53573
- };
53574
- }
53575
-
53576
- // eslint-disable-next-line import/no-anonymous-default-export
53577
- var antdVars = {
53578
- // IMPORTANT: Do not read this directly from components. Use `React.useContext`.
53579
- 'ant-prefix': 'du-bois'
53580
- };
53581
-
53582
- const DEFAULT_SPACING_UNIT = 8;
53583
- const MODAL_PADDING = 40;
53584
- const spacing = {
53585
- xs: DEFAULT_SPACING_UNIT / 2,
53586
- sm: DEFAULT_SPACING_UNIT,
53587
- md: DEFAULT_SPACING_UNIT * 2,
53588
- lg: DEFAULT_SPACING_UNIT * 3
53589
- }; // Less variables that are used by AntD
53590
-
53591
- ({
53592
- defaultPaddingLg: spacing.lg,
53593
- defaultPaddingMd: spacing.md,
53594
- defaultPaddingSm: spacing.sm,
53595
- defaultPaddingXs: spacing.sm,
53596
- defaultPaddingXss: spacing.xs,
53597
- paddingLg: spacing.md,
53598
- // TODO: Check if there is a better alternative with team
53599
- paddingMd: spacing.sm,
53600
- paddingSm: spacing.sm,
53601
- paddingXs: spacing.xs,
53602
- paddingXss: 0,
53603
- marginSm: 12,
53604
- marginLg: spacing.lg,
53605
- // Button
53606
- btnPaddingHorizontalBase: DEFAULT_SPACING_UNIT * 2,
53607
- btnPaddingHorizontalLg: DEFAULT_SPACING_UNIT * 2,
53608
- btnPaddingHorizontalSm: DEFAULT_SPACING_UNIT * 2,
53609
- // Modal
53610
- modalPadding: MODAL_PADDING,
53611
- modalLessPadding: MODAL_PADDING - 20,
53612
- modalHeaderPadding: "".concat(MODAL_PADDING, "px ").concat(MODAL_PADDING, "px ").concat(MODAL_PADDING - 20, "px"),
53613
- modalHeaderCloseSize: MODAL_PADDING * 2 + 22,
53614
- modalHeaderBorderWidth: 0,
53615
- modalBodyPadding: "0 ".concat(MODAL_PADDING, "px"),
53616
- modalFooterPaddingVertical: 0,
53617
- modalFooterPaddingHorizontal: 0,
53618
- modalFooterBorderWidth: 0,
53619
- // Switch
53620
- switchPadding: 0,
53621
- switchHeight: 16,
53622
- switchMinWidth: 28,
53623
- switchPinSize: 14
53624
- });
53625
- var spacing$1 = spacing;
53626
-
53627
- const heightBase = 40;
53628
- const borderWidth = 1;
53629
- const antdGeneralVariables = {
53630
- classnamePrefix: antdVars['ant-prefix'],
53631
- iconfontCssPrefix: 'anticon',
53632
- borderRadiusBase: 4,
53633
- borderWidth: borderWidth,
53634
- heightSm: 32,
53635
- heightBase: heightBase,
53636
- iconSize: 24,
53637
- buttonHeight: heightBase,
53638
- // Height available within button (for label and icon). Same for middle and small buttons.
53639
- buttonInnerHeight: heightBase - spacing$1.sm * 2 - borderWidth * 2
53640
- };
53641
- var generalVariables = antdGeneralVariables;
53642
-
53643
- const FONT_SIZE_BASE = 13; // Less variables that are used by AntD
53644
-
53645
- const antdTypography = {
53646
- fontSizeSm: 12,
53647
- fontSizeBase: FONT_SIZE_BASE,
53648
- fontSizeMd: FONT_SIZE_BASE,
53649
- fontSizeLg: 18,
53650
- fontSizeXl: 22,
53651
- fontSizeXxl: 32,
53652
- lineHeightSm: '16px',
53653
- lineHeightBase: '20px',
53654
- lineHeightMd: '20px',
53655
- lineHeightLg: '24px',
53656
- lineHeightXl: '28px',
53657
- lineHeightXxl: '40px',
53658
- typographyBoldFontWeight: 600
53659
- }; // eslint-disable-next-line import/no-anonymous-default-export
53660
-
53661
- var typography = { ...antdTypography
53662
- };
53663
-
53664
- // Border variables
53665
- const borders = {
53666
- borderRadiusMd: 4
53667
- }; // eslint-disable-next-line import/no-anonymous-default-export
53668
-
53669
- var borders$1 = { ...borders
53670
- };
53671
-
53672
- const defaultOptions = {
53673
- enableAnimation: false,
53674
- isCompact: false,
53675
- zIndexBase: 1000
53676
- }; // Function to get variables for a certain theme.
53677
- // End users should use useDesignSystemTheme instead.
53678
-
53679
- function getTheme(themeName) {
53680
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
53681
- return {
53682
- colors: getColors(themeName),
53683
- spacing: spacing$1,
53684
- general: generalVariables,
53685
- typography,
53686
- borders: borders$1,
53687
- themeName,
53688
- options
53689
- };
53690
- }
53691
-
53692
- const themeNameToAntdName = {
53693
- dark: 'dark',
53694
- default: 'light'
53695
- };
53696
- function getClassNamePrefix(theme) {
53697
- const antdThemeName = themeNameToAntdName[theme.themeName];
53698
- return "".concat(theme.general.classnamePrefix, "-").concat(antdThemeName);
53699
- }
53700
- function getPrefixedClassNameFromTheme(theme, className) {
53701
- return [getClassNamePrefix(theme), className].filter(Boolean).join('-');
53702
- }
53703
- function useDesignSystemTheme() {
53704
- const emotionTheme = useTheme(); // Graceful fallback to default theme in case a test or developer forgot context.
53705
-
53706
- const theme = emotionTheme && emotionTheme.general ? emotionTheme : getTheme('default');
53707
- return {
53708
- theme: theme,
53709
- classNamePrefix: getClassNamePrefix(theme),
53710
- getPrefixedClassName: className => getPrefixedClassNameFromTheme(theme, className)
53711
- };
53712
- }
53713
- // This is a simple typed HOC wrapper around the useDesignSystemTheme hook, for use in older react components.
53714
- function WithDesignSystemThemeHoc(Component) {
53715
- return function WrappedWithDesignSystemTheme(props) {
53716
- const themeValues = useDesignSystemTheme();
53717
- return jsx(Component, { ...props,
53718
- designSystemThemeApi: themeValues
53719
- });
53720
- };
53721
- }
53722
-
53723
- /**
53724
- * A helper hook that allows quick creation of theme-dependent styles.
53725
- * Results in more compact code than using useMemo and
53726
- * useDesignSystemTheme separately.
53727
- *
53728
- * @example
53729
- * const styles = useThemedStyles((theme) => ({
53730
- * overlay: {
53731
- * backgroundColor: theme.colors.backgroundPrimary,
53732
- * borderRadius: theme.borders.borderRadiusMd,
53733
- * },
53734
- * wrapper: {
53735
- * display: 'flex',
53736
- * gap: theme.spacing.md,
53737
- * },
53738
- * }));
53739
-
53740
- * <div css={styles.overlay}>...</div>
53741
- *
53742
- * @param styleFactory Factory function that accepts theme object as a parameter and returns
53743
- * the style object. **Note**: factory function body is being memoized internally and is intended
53744
- * to be used only for simple style objects that depend solely on the theme. If you want to use
53745
- * styles that change depending on external values (state, props etc.) you should use
53746
- * `useDesignSystemTheme` directly with your own reaction mechanism.
53747
- * @returns The constructed style object
53748
- */
53749
-
53750
- const useThemedStyles = styleFactory => {
53751
- const {
53752
- theme
53753
- } = useDesignSystemTheme(); // We can assume that the factory function won't change and we're
53754
- // observing theme changes only.
53755
-
53756
- const styleFactoryRef = useRef(styleFactory);
53757
- return useMemo$1(() => styleFactoryRef.current(theme), [theme]);
53758
- };
53759
-
53760
- const DuboisContextDefaults = {
53761
- enableAnimation: false,
53762
- theme: 'default',
53763
- // Prefer to use useDesignSystemTheme.getPrefixedClassName instead
53764
- getPrefixCls: suffix => suffix ? "du-bois-".concat(suffix) : 'du-bois'
53765
- };
53766
- const DesignSystemContext = /*#__PURE__*/createContext(DuboisContextDefaults);
53767
- function getAnimationCss(enableAnimation) {
53768
- const disableAnimationCss = {
53769
- animationDuration: '0s !important',
53770
- transition: 'none !important'
53771
- };
53772
- return enableAnimation ? {} : { // Apply to the current element
53773
- ...disableAnimationCss,
53774
- '&::before': disableAnimationCss,
53775
- '&::after': disableAnimationCss,
53776
- // Also apply to all child elements with a class that starts with our prefix
53777
- '[class*=du-bois]': { ...disableAnimationCss,
53778
- // Also target any pseudo-elements associated with those elements, since these can also be animated.
53779
- '&::before': disableAnimationCss,
53780
- '&::after': disableAnimationCss
53781
- }
53782
- };
53783
- }
53784
- const DesignSystemProviderPropsContext = /*#__PURE__*/React__default.createContext(null);
53785
- const DesignSystemProvider = _ref => {
53786
- let {
53787
- children,
53788
- theme: themeName,
53789
- enableAnimation = false,
53790
- zIndexBase = 1000,
53791
- getPopupContainer
53792
- } = _ref;
53793
- const theme = useMemo$1(() => getTheme(themeName || 'default', {
53794
- enableAnimation,
53795
- zIndexBase,
53796
- isCompact: true
53797
- }), // TODO: revisit this
53798
- // eslint-disable-next-line react-hooks/exhaustive-deps
53799
- [themeName, zIndexBase]);
53800
- const providerPropsContext = useMemo$1(() => ({
53801
- theme: themeName,
53802
- enableAnimation,
53803
- zIndexBase,
53804
- isCompact: true,
53805
- getPopupContainer
53806
- }), [themeName, enableAnimation, zIndexBase, getPopupContainer]);
53807
- const classNamePrefix = getClassNamePrefix(theme);
53808
- const value = useMemo$1(() => {
53809
- return {
53810
- enableAnimation,
53811
- theme: theme.themeName,
53812
- getPrefixCls: suffix => getPrefixedClassNameFromTheme(theme, suffix),
53813
- getPopupContainer
53814
- };
53815
- }, [enableAnimation, theme, getPopupContainer]);
53816
- useEffect(() => {
53817
- return () => {
53818
- // when the design system context is unmounted, make sure the notification cache is also cleaned up
53819
- antDNotification.destroy();
53820
- };
53821
- }, []);
53822
- return jsx(DesignSystemProviderPropsContext.Provider, {
53823
- value: providerPropsContext,
53824
- children: jsx(ThemeProvider, {
53825
- theme: theme,
53826
- children: jsx(ConfigProvider$1, {
53827
- prefixCls: classNamePrefix,
53828
- getPopupContainer: getPopupContainer,
53829
- children: jsx(DesignSystemContext.Provider, {
53830
- value: value,
53831
- children: children
53832
- })
53833
- })
53834
- })
53835
- });
53836
- };
53837
-
53838
53989
  const Alert = _ref => {
53839
53990
  let {
53840
53991
  dangerouslySetAntdProps,
@@ -53877,16 +54028,19 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
53877
54028
  const classMessage = ".".concat(clsPrefix, "-message");
53878
54029
  const classWithDescription = ".".concat(clsPrefix, "-with-description");
53879
54030
  const classWithIcon = ".".concat(clsPrefix, "-icon");
53880
- const ALERT_ICON_HEIGHT = 25;
53881
- const ALERT_ICON_FONT_SIZE = 20;
54031
+ const ALERT_ICON_HEIGHT = 16;
54032
+ const ALERT_ICON_FONT_SIZE = 16;
53882
54033
  const styles = {
53883
54034
  // General
53884
- padding: theme.options.isCompact ? theme.spacing.sm : theme.spacing.md,
54035
+ padding: theme.spacing.sm,
53885
54036
  ["".concat(classMessage, ", &").concat(classWithDescription, " ").concat(classMessage)]: {
53886
54037
  // TODO(giles): These three rules are all the same as the H3 styles. We can refactor them out into a shared object.
53887
54038
  fontSize: theme.typography.fontSizeBase,
53888
54039
  fontWeight: theme.typography.typographyBoldFontWeight,
53889
- lineHeight: "".concat(ALERT_ICON_HEIGHT, "px")
54040
+ lineHeight: theme.typography.lineHeightBase
54041
+ },
54042
+ ["".concat(classDescription)]: {
54043
+ lineHeight: theme.typography.lineHeightBase
53890
54044
  },
53891
54045
  // Icons
53892
54046
  [classCloseButton]: {
@@ -53900,24 +54054,27 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
53900
54054
  }
53901
54055
  },
53902
54056
  ["".concat(classCloseIcon, ", ").concat(classCloseButton)]: {
54057
+ lineHeight: theme.typography.lineHeightBase,
53903
54058
  height: ALERT_ICON_HEIGHT,
53904
54059
  width: ALERT_ICON_HEIGHT,
53905
54060
  display: 'flex',
53906
54061
  alignItems: 'center',
53907
54062
  justifyContent: 'center'
53908
54063
  },
53909
- ...(theme.options.isCompact && {
53910
- [classWithIcon]: {
53911
- fontSize: 20,
53912
- paddingTop: 2
53913
- },
53914
- ["".concat(classCloseIcon, ", ").concat(classCloseButton, ", ").concat(classCloseText, " > span")]: {
53915
- height: 20,
53916
- width: 20,
53917
- fontSize: 20,
53918
- paddingTop: 2
54064
+ [classWithIcon]: {
54065
+ fontSize: ALERT_ICON_FONT_SIZE,
54066
+ marginTop: 2
54067
+ },
54068
+ ["".concat(classCloseIcon, ", ").concat(classCloseButton, ", ").concat(classCloseText, " > span")]: {
54069
+ lineHeight: theme.typography.lineHeightBase,
54070
+ height: ALERT_ICON_HEIGHT,
54071
+ width: ALERT_ICON_HEIGHT,
54072
+ fontSize: ALERT_ICON_FONT_SIZE,
54073
+ marginTop: 2,
54074
+ '& > span': {
54075
+ lineHeight: theme.typography.lineHeightBase
53919
54076
  }
53920
- }),
54077
+ },
53921
54078
  // No description
53922
54079
  ...(!props.description && {
53923
54080
  [classMessage]: {
@@ -53942,16 +54099,28 @@ const getAlertEmotionStyles = (clsPrefix, theme, props) => {
53942
54099
  borderStyle: 'solid',
53943
54100
  borderWidth: "".concat(theme.general.borderWidth, "px 0")
53944
54101
  }),
54102
+ // After closed
54103
+ '&[data-show="false"]': {
54104
+ borderWidth: 0,
54105
+ padding: 0,
54106
+ width: 0,
54107
+ height: 0
54108
+ },
53945
54109
  ...getAnimationCss(theme.options.enableAnimation)
53946
54110
  };
53947
54111
  return /*#__PURE__*/css$1(styles, process.env.NODE_ENV === "production" ? "" : ";label:getAlertEmotionStyles;");
53948
54112
  };
53949
54113
 
53950
- const AutoComplete = props => {
54114
+ const AutoComplete = _ref => {
54115
+ let {
54116
+ dangerouslySetAntdProps,
54117
+ ...props
54118
+ } = _ref;
53951
54119
  const {
53952
54120
  theme
53953
54121
  } = useDesignSystemTheme();
53954
54122
  return jsx(AntDAutoComplete, { ...props,
54123
+ ...dangerouslySetAntdProps,
53955
54124
  css: /*#__PURE__*/css$1(getAnimationCss(theme.options.enableAnimation), process.env.NODE_ENV === "production" ? "" : ";label:AutoComplete;")
53956
54125
  });
53957
54126
  };
@@ -53960,6 +54129,7 @@ AutoComplete.Option = AntDAutoComplete.Option;
53960
54129
  const Breadcrumb = _ref => {
53961
54130
  let {
53962
54131
  dangerouslySetAntdProps,
54132
+ includeTrailingCaret = true,
53963
54133
  ...props
53964
54134
  } = _ref;
53965
54135
  const {
@@ -53984,11 +54154,14 @@ const Breadcrumb = _ref => {
53984
54154
  }
53985
54155
  }
53986
54156
  }, process.env.NODE_ENV === "production" ? "" : ";label:styles;");
53987
- return jsx(Breadcrumb$2, {
54157
+ return jsxs(Breadcrumb$2, {
53988
54158
  separator: jsx(ChevronRightIcon, {}),
53989
54159
  ...props,
53990
54160
  ...dangerouslySetAntdProps,
53991
- css: /*#__PURE__*/css$1(getAnimationCss(theme.options.enableAnimation), styles, process.env.NODE_ENV === "production" ? "" : ";label:Breadcrumb;")
54161
+ css: /*#__PURE__*/css$1(getAnimationCss(theme.options.enableAnimation), styles, process.env.NODE_ENV === "production" ? "" : ";label:Breadcrumb;"),
54162
+ children: [props.children, includeTrailingCaret && props.children && jsx(Breadcrumb.Item, {
54163
+ children: " "
54164
+ })]
53992
54165
  });
53993
54166
  };
53994
54167
  Breadcrumb.Item = Breadcrumb$2.Item;
@@ -54007,7 +54180,6 @@ const ColorVars = {
54007
54180
  * Recursively appends `!important` to all CSS properties in an Emotion `CSSObject`.
54008
54181
  * Used to ensure that we always override Ant styles, without worrying about selector precedence.
54009
54182
  */
54010
-
54011
54183
  function importantify(obj) {
54012
54184
  return _mapValues(obj, (value, key) => {
54013
54185
  if (_isString(value) || _isNumber(value) || _isBoolean(value)) {
@@ -54107,41 +54279,41 @@ function getLinkStyles(theme) {
54107
54279
  }
54108
54280
  function getPrimaryDangerStyles(theme) {
54109
54281
  return {
54110
- backgroundColor: theme.colors.actionDangerBackgroundDefault,
54282
+ backgroundColor: theme.colors.actionDangerPrimaryBackgroundDefault,
54111
54283
  borderColor: 'transparent',
54112
54284
  color: theme.colors.white,
54113
54285
  '&:hover': {
54114
- backgroundColor: theme.colors.actionDangerBackgroundHover,
54286
+ backgroundColor: theme.colors.actionDangerPrimaryBackgroundHover,
54115
54287
  borderColor: 'transparent',
54116
54288
  color: theme.colors.white
54117
54289
  },
54118
54290
  '&:active': {
54119
- backgroundColor: theme.colors.actionDangerBackgroundPress,
54291
+ backgroundColor: theme.colors.actionDangerPrimaryBackgroundPress,
54120
54292
  borderColor: 'transparent',
54121
54293
  color: theme.colors.white
54122
54294
  },
54123
54295
  '&:focus-visible': {
54124
- outlineColor: theme.colors.actionDangerBackgroundDefault
54296
+ outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
54125
54297
  }
54126
54298
  };
54127
54299
  }
54128
54300
  function getSecondaryDangerStyles(theme) {
54129
54301
  return {
54130
- backgroundColor: theme.colors.white,
54131
- borderColor: theme.colors.actionDangerBackgroundDefault,
54132
- color: theme.colors.textValidationDanger,
54302
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundDefault,
54303
+ borderColor: theme.colors.actionDangerDefaultBorderDefault,
54304
+ color: theme.colors.actionDangerDefaultTextDefault,
54133
54305
  '&:hover': {
54134
- backgroundColor: theme.colors.white,
54135
- borderColor: theme.colors.actionDangerBackgroundHover,
54136
- color: theme.colors.actionDangerBackgroundHover
54306
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundHover,
54307
+ borderColor: theme.colors.actionDangerDefaultBorderHover,
54308
+ color: theme.colors.actionDangerDefaultTextHover
54137
54309
  },
54138
54310
  '&:active': {
54139
- backgroundColor: theme.colors.white,
54140
- borderColor: theme.colors.actionDangerBackgroundPress,
54141
- color: theme.colors.actionDangerBackgroundPress
54311
+ backgroundColor: theme.colors.actionDangerDefaultBackgroundPress,
54312
+ borderColor: theme.colors.actionDangerDefaultBorderPress,
54313
+ color: theme.colors.actionDangerDefaultTextPress
54142
54314
  },
54143
54315
  '&:focus-visible': {
54144
- outlineColor: theme.colors.actionDangerBackgroundDefault
54316
+ outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault
54145
54317
  }
54146
54318
  };
54147
54319
  }
@@ -54163,6 +54335,10 @@ function getDisabledStyles(theme) {
54163
54335
  };
54164
54336
  }
54165
54337
 
54338
+ function getEndIconClsName(theme) {
54339
+ return "".concat(theme.general.iconfontCssPrefix, "-btn-end-icon");
54340
+ }
54341
+
54166
54342
  const getButtonEmotionStyles = _ref => {
54167
54343
  let {
54168
54344
  theme,
@@ -54175,30 +54351,69 @@ const getButtonEmotionStyles = _ref => {
54175
54351
  type
54176
54352
  } = _ref;
54177
54353
  const clsIcon = ".".concat(theme.general.iconfontCssPrefix);
54354
+ const clsEndIcon = ".".concat(getEndIconClsName(theme));
54178
54355
  const clsLoadingIcon = ".".concat(classNamePrefix, "-btn-loading-icon");
54179
54356
  const clsIconOnly = ".".concat(classNamePrefix, "-btn-icon-only");
54180
54357
  const classPrimary = ".".concat(classNamePrefix, "-btn-primary");
54181
54358
  const classLink = ".".concat(classNamePrefix, "-btn-link");
54182
54359
  const classDangerous = ".".concat(classNamePrefix, "-btn-dangerous");
54183
54360
  const SMALL_BUTTON_HEIGHT = 24;
54361
+ const tertiaryColors = {
54362
+ background: theme.colors.actionTertiaryBackgroundDefault,
54363
+ color: theme.colors.actionTertiaryTextDefault,
54364
+ '&:hover': {
54365
+ background: theme.colors.actionTertiaryBackgroundHover,
54366
+ color: theme.colors.actionTertiaryTextHover
54367
+ },
54368
+ '&:active': {
54369
+ background: theme.colors.actionTertiaryBackgroundPress,
54370
+ color: theme.colors.actionTertiaryTextPress
54371
+ }
54372
+ };
54373
+ const iconCss = {
54374
+ fontSize: theme.general.buttonInnerHeight - 4,
54375
+ // verticalAlign used by AntD to move icon and label to center
54376
+ // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
54377
+ // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
54378
+ verticalAlign: -5,
54379
+ lineHeight: 0,
54380
+ ...(onlyIcon && {
54381
+ verticalAlign: -3
54382
+ }),
54383
+ // verticalAlign used by AntD to move icon and label to center
54384
+ // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
54385
+ // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
54386
+ // Need to make sure not to apply this to regular buttons as it will offset the icons
54387
+ ...(!onlyIcon && {
54388
+ verticalAlign: -4
54389
+ }),
54390
+ ...(size === 'small' && {
54391
+ lineHeight: theme.typography.lineHeightSm,
54392
+ ...(onlyIcon && {
54393
+ fontSize: 16
54394
+ })
54395
+ })
54396
+ };
54397
+ const inactiveIconCss = {
54398
+ color: theme.colors.grey600
54399
+ };
54400
+ const endIconCssSelector = "span > ".concat(clsEndIcon, " > ").concat(clsIcon);
54184
54401
  const styles = {
54185
54402
  lineHeight: theme.typography.lineHeightBase,
54186
54403
  boxShadow: 'none',
54404
+ height: theme.general.heightSm,
54187
54405
  ...(!onlyIcon && {
54188
54406
  '&&': {
54189
- padding: theme.options.isCompact || size === 'small' ? '4px 12px' : '8px 16px',
54190
- ...(size === 'ultrasmall' && {
54407
+ padding: '4px 12px',
54408
+ ...(size === 'small' && {
54191
54409
  padding: '0 8px'
54192
54410
  })
54193
54411
  }
54194
54412
  }),
54195
- ...((theme.options.isCompact || size === 'small') && {
54196
- height: theme.general.heightSm,
54197
- ...(onlyIcon && {
54198
- width: theme.general.heightSm
54199
- })
54413
+ ...(onlyIcon && {
54414
+ width: theme.general.heightSm
54200
54415
  }),
54201
- ...(size === 'ultrasmall' && {
54416
+ ...(size === 'small' && {
54202
54417
  height: SMALL_BUTTON_HEIGHT,
54203
54418
  lineHeight: theme.typography.lineHeightBase,
54204
54419
  ...(onlyIcon && {
@@ -54273,39 +54488,26 @@ const getButtonEmotionStyles = _ref => {
54273
54488
  ["> ".concat(clsIcon, " + span, > span + ").concat(clsIcon)]: {
54274
54489
  marginRight: 0
54275
54490
  },
54276
- ["> ".concat(clsIcon)]: {
54277
- fontSize: theme.general.buttonInnerHeight,
54278
- // verticalAlign used by AntD to move icon and label to center
54279
- // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
54280
- // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
54281
- verticalAlign: -5,
54282
- lineHeight: 0,
54283
- ...(onlyIcon && {
54284
- verticalAlign: theme.options.isCompact || size === 'small' ? -3 : -5
54285
- }),
54286
- ...((theme.options.isCompact || size === 'small') && {
54287
- fontSize: theme.general.buttonInnerHeight - 4,
54288
- // verticalAlign used by AntD to move icon and label to center
54289
- // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
54290
- // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
54291
- // Need to make sure not to apply this to regular buttons as it will offset the icons
54292
- ...(!onlyIcon && {
54293
- verticalAlign: -4
54294
- })
54295
- }),
54296
- ...(size === 'ultrasmall' && {
54297
- lineHeight: theme.typography.lineHeightBase,
54298
- ...(onlyIcon && {
54299
- fontSize: 16
54300
- })
54301
- })
54491
+ ["> ".concat(clsIcon)]: iconCss,
54492
+ ["> ".concat(endIconCssSelector)]: { ...iconCss,
54493
+ marginLeft: size === 'small' ? 8 : 12
54302
54494
  },
54495
+ ...(!type && {
54496
+ ["&:enabled:not(:hover):not(:active) > ".concat(clsIcon)]: inactiveIconCss
54497
+ }),
54498
+ ...(!type && {
54499
+ ["&:enabled:not(:hover):not(:active) > ".concat(endIconCssSelector)]: inactiveIconCss
54500
+ }),
54303
54501
  // Disable animations
54304
54502
  ["&[".concat(classNamePrefix, "-click-animating-without-extra-node='true']::after")]: {
54305
54503
  display: 'none'
54306
54504
  },
54307
54505
  ["&".concat(clsIconOnly)]: {
54308
54506
  border: 'none',
54507
+ //
54508
+ ["&:enabled:not(".concat(classLink, ")")]: { ...tertiaryColors,
54509
+ color: theme.colors.textSecondary
54510
+ },
54309
54511
  '&[disabled]:hover': {
54310
54512
  backgroundColor: 'transparent'
54311
54513
  }
@@ -54318,9 +54520,15 @@ const getButtonEmotionStyles = _ref => {
54318
54520
  }
54319
54521
  },
54320
54522
  ...getAnimationCss(enableAnimation)
54523
+ }; // Moved outside main style object because state & selector matching in the already existing object keys can create bugs and unwanted overwrites
54524
+
54525
+ const typeStyles = {
54526
+ ["&:enabled:not(".concat(clsIconOnly, ")")]: { ...(type === 'tertiary' && tertiaryColors)
54527
+ }
54321
54528
  };
54322
54529
  const importantStyles = importantify(styles);
54323
- return /*#__PURE__*/css$1(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;");
54530
+ const importantTypeStyles = importantify(typeStyles);
54531
+ return /*#__PURE__*/css$1(importantStyles, importantTypeStyles, process.env.NODE_ENV === "production" ? "" : ";label:getButtonEmotionStyles;");
54324
54532
  };
54325
54533
  const Button = /*#__PURE__*/forwardRef(function Button( // Keep size out of props passed to AntD to make deprecation and eventual removal have 0 impact
54326
54534
  _ref2, ref) {
@@ -54329,19 +54537,21 @@ _ref2, ref) {
54329
54537
  children,
54330
54538
  size,
54331
54539
  type,
54540
+ endIcon,
54332
54541
  ...props
54333
54542
  } = _ref2;
54334
54543
  const {
54335
54544
  theme,
54336
54545
  classNamePrefix
54337
54546
  } = useDesignSystemTheme();
54547
+ const clsEndIcon = getEndIconClsName(theme);
54338
54548
  return jsx(Button$3, { ...props,
54339
54549
  css: getButtonEmotionStyles({
54340
54550
  theme,
54341
54551
  classNamePrefix,
54342
54552
  loading: Boolean(props.loading),
54343
54553
  withIcon: Boolean(props.icon),
54344
- onlyIcon: Boolean(props.icon && !children),
54554
+ onlyIcon: Boolean((props.icon || endIcon) && !children),
54345
54555
  danger: Boolean(props.danger),
54346
54556
  enableAnimation: theme.options.enableAnimation,
54347
54557
  size: size || 'middle',
@@ -54351,8 +54561,14 @@ _ref2, ref) {
54351
54561
  ...dangerouslySetAntdProps,
54352
54562
  ref: ref,
54353
54563
  type: type === 'tertiary' ? 'link' : type,
54354
- children: children && jsx("span", {
54355
- children: children
54564
+ children: children && jsxs("span", {
54565
+ style: {
54566
+ visibility: props !== null && props !== void 0 && props.loading ? 'hidden' : 'visible'
54567
+ },
54568
+ children: [children, endIcon && jsx("span", {
54569
+ className: clsEndIcon,
54570
+ children: endIcon
54571
+ })]
54356
54572
  })
54357
54573
  });
54358
54574
  }); // This is needed for other Ant components that wrap Button, such as Tooltip, to correctly
@@ -54368,6 +54584,7 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
54368
54584
  const classIndeterminate = ".".concat(clsPrefix, "-indeterminate");
54369
54585
  const classChecked = ".".concat(clsPrefix, "-checked");
54370
54586
  const classDisabled = ".".concat(clsPrefix, "-disabled");
54587
+ const classDisabledWrapper = ".".concat(clsPrefix, "-wrapper-disabled");
54371
54588
  const defaultSelector = "".concat(classInput, " + ").concat(classInner);
54372
54589
  const hoverSelector = "".concat(classInput, ":hover + ").concat(classInner);
54373
54590
  const pressSelector = "".concat(classInput, ":active + ").concat(classInner);
@@ -54434,59 +54651,64 @@ function getCheckboxEmotionStyles(clsPrefix, theme) {
54434
54651
  }
54435
54652
  },
54436
54653
  // Disabled state
54437
- [classDisabled]: {
54438
- // Disabled Checked
54439
- ["&".concat(classChecked)]: {
54440
- [classInner]: {
54441
- backgroundColor: theme.colors.actionDisabledBackground,
54442
- borderColor: theme.colors.actionDisabledBackground
54654
+ ["&".concat(classDisabledWrapper)]: {
54655
+ [classDisabled]: {
54656
+ // Disabled Checked
54657
+ ["&".concat(classChecked)]: {
54658
+ [classInner]: {
54659
+ backgroundColor: theme.colors.actionDisabledBackground,
54660
+ borderColor: theme.colors.actionDisabledBackground
54661
+ },
54662
+ // Disabled checked hover
54663
+ [hoverSelector]: {
54664
+ backgroundColor: theme.colors.actionDisabledBackground,
54665
+ borderColor: theme.colors.actionDisabledBackground
54666
+ }
54443
54667
  },
54444
- // Disabled checked hover
54445
- [hoverSelector]: {
54446
- backgroundColor: theme.colors.actionDisabledBackground,
54447
- borderColor: theme.colors.actionDisabledBackground
54448
- }
54449
- },
54450
- // Disabled indeterminate
54451
- ["&".concat(classIndeterminate)]: {
54668
+ // Disabled indeterminate
54669
+ ["&".concat(classIndeterminate)]: {
54670
+ [classInner]: {
54671
+ backgroundColor: theme.colors.actionDisabledBackground,
54672
+ borderColor: theme.colors.actionDisabledBackground
54673
+ },
54674
+ // Disabled indeterminate hover
54675
+ [hoverSelector]: {
54676
+ backgroundColor: theme.colors.actionDisabledBackground,
54677
+ borderColor: theme.colors.actionDisabledBackground
54678
+ }
54679
+ },
54680
+ // Disabled unchecked
54452
54681
  [classInner]: {
54453
- backgroundColor: theme.colors.actionDisabledBackground,
54454
- borderColor: theme.colors.actionDisabledBackground
54682
+ backgroundColor: theme.colors.white,
54683
+ borderColor: theme.colors.actionDisabledBackground,
54684
+ // The after pseudo-element is used for the check image itself
54685
+ '&:after': {
54686
+ borderColor: theme.colors.white
54687
+ }
54455
54688
  },
54456
- // Disabled indeterminate hover
54689
+ // Disabled hover
54457
54690
  [hoverSelector]: {
54458
- backgroundColor: theme.colors.actionDisabledBackground,
54691
+ backgroundColor: theme.colors.white,
54459
54692
  borderColor: theme.colors.actionDisabledBackground
54460
54693
  }
54461
- },
54462
- // Disabled unchecked
54463
- [classInner]: {
54464
- backgroundColor: theme.colors.white,
54465
- borderColor: theme.colors.actionDisabledBackground,
54466
- // The after pseudo-element is used for the check image itself
54467
- '&:after': {
54468
- borderColor: theme.colors.white
54469
- }
54470
- },
54471
- // Disabled hover
54472
- [hoverSelector]: {
54473
- backgroundColor: theme.colors.white,
54474
- borderColor: theme.colors.actionDisabledBackground
54475
54694
  }
54476
54695
  },
54477
54696
  // Animation
54478
54697
  ...getAnimationCss(theme.options.enableAnimation)
54479
54698
  };
54480
54699
  return styles;
54481
- } // We should probably extend AntdCheckboxProps with Omit going forward and support dangerouslySetAntdProps
54482
-
54700
+ }
54483
54701
 
54484
54702
  const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref, ref) {
54485
54703
  let {
54486
54704
  isChecked,
54487
54705
  onChange,
54488
54706
  children,
54489
- isDisabled = false
54707
+ isDisabled = false,
54708
+ style,
54709
+ wrapperStyle,
54710
+ dangerouslySetAntdProps,
54711
+ ...restProps
54490
54712
  } = _ref;
54491
54713
  const {
54492
54714
  theme,
@@ -54495,6 +54717,7 @@ const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref, ref) {
54495
54717
  const clsPrefix = getPrefixedClassName('checkbox');
54496
54718
  return (// Antd checkboxes are inline, so we add this div to make ours block-level
54497
54719
  jsx("div", {
54720
+ style: wrapperStyle,
54498
54721
  children: jsx(AntDCheckbox, {
54499
54722
  checked: isChecked === null ? undefined : isChecked,
54500
54723
  ref: ref,
@@ -54504,6 +54727,10 @@ const DuboisCheckbox = /*#__PURE__*/forwardRef(function Checkbox(_ref, ref) {
54504
54727
  disabled: isDisabled,
54505
54728
  indeterminate: isChecked === null,
54506
54729
  css: /*#__PURE__*/css$1(importantify(getCheckboxEmotionStyles(clsPrefix, theme)), process.env.NODE_ENV === "production" ? "" : ";label:DuboisCheckbox;"),
54730
+ style: style,
54731
+ "aria-checked": isChecked === null ? 'mixed' : isChecked,
54732
+ ...restProps,
54733
+ ...dangerouslySetAntdProps,
54507
54734
  children: children
54508
54735
  })
54509
54736
  })
@@ -54563,10 +54790,6 @@ function getCollapseEmotionStyles(clsPrefix, theme) {
54563
54790
  }
54564
54791
  }
54565
54792
  },
54566
- ["& > ".concat(classItem, " > ").concat(classHeader)]: {
54567
- padding: '10px 44px 10px 0',
54568
- lineHeight: theme.typography.lineHeightBase
54569
- },
54570
54793
  [classHeader]: {
54571
54794
  color: theme.colors.textPrimary,
54572
54795
  fontWeight: 600,
@@ -54591,12 +54814,10 @@ function getCollapseEmotionStyles(clsPrefix, theme) {
54591
54814
  [classContentBox]: {
54592
54815
  padding: '8px 16px 16px'
54593
54816
  },
54594
- ...(theme.options.isCompact && {
54595
- ["& > ".concat(classItem, " > ").concat(classHeader)]: {
54596
- padding: '6px 44px 6px 0',
54597
- lineHeight: theme.typography.lineHeightBase
54598
- }
54599
- }),
54817
+ ["& > ".concat(classItem, " > ").concat(classHeader)]: {
54818
+ padding: '6px 44px 6px 0',
54819
+ lineHeight: theme.typography.lineHeightBase
54820
+ },
54600
54821
  ...getAnimationCss(theme.options.enableAnimation)
54601
54822
  };
54602
54823
  return /*#__PURE__*/css$1(styles, process.env.NODE_ENV === "production" ? "" : ";label:getCollapseEmotionStyles;");
@@ -54614,7 +54835,7 @@ const Collapse = _ref => {
54614
54835
  } = useDesignSystemTheme();
54615
54836
  const clsPrefix = getPrefixedClassName('collapse');
54616
54837
  return jsx(Collapse$2, {
54617
- expandIcon: ChevronDownIcon,
54838
+ expandIcon: () => jsx(ChevronDownIcon, {}),
54618
54839
  expandIconPosition: "right",
54619
54840
  ...props,
54620
54841
  ...dangerouslySetAntdProps,
@@ -54640,7 +54861,7 @@ function getEmotionStyles(clsPrefix, theme) {
54640
54861
  const classSeparator = ".".concat(clsPrefix, "-separator");
54641
54862
  const classSuffix = ".".concat(clsPrefix, "-suffix");
54642
54863
  const styles = {
54643
- height: theme.options.isCompact ? 32 : 40,
54864
+ height: 32,
54644
54865
  borderRadius: theme.borders.borderRadiusMd,
54645
54866
  borderColor: theme.colors.border,
54646
54867
  color: theme.colors.textPrimary,
@@ -54823,7 +55044,11 @@ const LegacyDatePicker = Object.assign(DuboisDatePicker, {
54823
55044
  YearPicker
54824
55045
  });
54825
55046
 
54826
- const Dropdown = props => {
55047
+ const Dropdown = _ref => {
55048
+ let {
55049
+ dangerouslySetAntdProps,
55050
+ ...props
55051
+ } = _ref;
54827
55052
  const {
54828
55053
  theme
54829
55054
  } = useDesignSystemTheme();
@@ -54833,7 +55058,8 @@ const Dropdown = props => {
54833
55058
  overlayStyle: {
54834
55059
  zIndex: theme.options.zIndexBase + 50,
54835
55060
  ...props.overlayStyle
54836
- }
55061
+ },
55062
+ ...dangerouslySetAntdProps
54837
55063
  });
54838
55064
  };
54839
55065
 
@@ -54842,13 +55068,14 @@ const Root = DropdownMenu$1.Root; // Behavioral component only
54842
55068
  const Content$1 = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
54843
55069
  let {
54844
55070
  children,
55071
+ minWidth = 220,
54845
55072
  ...props
54846
55073
  } = _ref;
54847
55074
  return jsx(DropdownMenu$1.Content, {
54848
55075
  ref: ref,
54849
55076
  css: theme => ({
54850
55077
  backgroundColor: theme.colors.backgroundPrimary,
54851
- minWidth: 220,
55078
+ minWidth: minWidth,
54852
55079
  color: theme.colors.textPrimary,
54853
55080
  lineHeight: theme.typography.lineHeightBase,
54854
55081
  border: "1px solid ".concat(theme.colors.borderDecorative),
@@ -55236,7 +55463,7 @@ const getFormItemEmotionStyles = _ref => {
55236
55463
  margin: 0
55237
55464
  },
55238
55465
  [clsFormItemInputControl]: {
55239
- minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
55466
+ minHeight: theme.general.heightSm
55240
55467
  },
55241
55468
  ["".concat(clsFormItemInputControl, " input[disabled]")]: {
55242
55469
  border: 'none'
@@ -55255,12 +55482,17 @@ const FormDubois = /*#__PURE__*/forwardRef(function Form(_ref2, ref) {
55255
55482
  requiredMark: props.requiredMark || false
55256
55483
  };
55257
55484
  return jsx(AntDForm, { ...mergedProps,
55485
+ colon: false,
55258
55486
  ref: ref,
55259
55487
  ...dangerouslySetAntdProps
55260
55488
  });
55261
55489
  });
55262
55490
 
55263
- const FormItem = props => {
55491
+ const FormItem = _ref3 => {
55492
+ let {
55493
+ dangerouslySetAntdProps,
55494
+ ...props
55495
+ } = _ref3;
55264
55496
  const {
55265
55497
  theme,
55266
55498
  classNamePrefix
@@ -55269,7 +55501,8 @@ const FormItem = props => {
55269
55501
  css: getFormItemEmotionStyles({
55270
55502
  theme,
55271
55503
  clsPrefix: classNamePrefix
55272
- })
55504
+ }),
55505
+ ...dangerouslySetAntdProps
55273
55506
  });
55274
55507
  };
55275
55508
 
@@ -55284,8 +55517,13 @@ const Form = FormNamespace; // TODO: I'm doing this to support storybook's docge
55284
55517
 
55285
55518
  const __INTERNAL_DO_NOT_USE__FormItem = FormItem;
55286
55519
 
55287
- const Col = props => {
55288
- return jsx(Col$2, { ...props
55520
+ const Col = _ref => {
55521
+ let {
55522
+ dangerouslySetAntdProps,
55523
+ ...props
55524
+ } = _ref;
55525
+ return jsx(Col$2, { ...props,
55526
+ ...dangerouslySetAntdProps
55289
55527
  });
55290
55528
  };
55291
55529
 
@@ -55298,8 +55536,13 @@ Row.defaultProps = {
55298
55536
  gutter: ROW_GUTTER_SIZE
55299
55537
  };
55300
55538
 
55301
- const Space = props => {
55302
- return jsx(AntDSpace, { ...props
55539
+ const Space = _ref => {
55540
+ let {
55541
+ dangerouslySetAntdProps,
55542
+ ...props
55543
+ } = _ref;
55544
+ return jsx(AntDSpace, { ...props,
55545
+ ...dangerouslySetAntdProps
55303
55546
  });
55304
55547
  };
55305
55548
 
@@ -55312,7 +55555,6 @@ function getLevelStyles(theme, props) {
55312
55555
  case 1:
55313
55556
  return /*#__PURE__*/css$1({
55314
55557
  '&&': {
55315
- // TODO:FEINF-697 Move from XXL to XL
55316
55558
  fontSize: theme.typography.fontSizeXxl,
55317
55559
  lineHeight: theme.typography.lineHeightXxl,
55318
55560
  fontWeight: theme.typography.typographyBoldFontWeight
@@ -55322,7 +55564,6 @@ function getLevelStyles(theme, props) {
55322
55564
  case 2:
55323
55565
  return /*#__PURE__*/css$1({
55324
55566
  '&&': {
55325
- // TODO:FEINF-697 Move from XL to LG, consider moving some usages of level 2 up to level 1
55326
55567
  fontSize: theme.typography.fontSizeXl,
55327
55568
  lineHeight: theme.typography.lineHeightXl,
55328
55569
  fontWeight: theme.typography.typographyBoldFontWeight
@@ -55330,6 +55571,15 @@ function getLevelStyles(theme, props) {
55330
55571
  }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
55331
55572
 
55332
55573
  case 3:
55574
+ return /*#__PURE__*/css$1({
55575
+ '&&': {
55576
+ fontSize: theme.typography.fontSizeLg,
55577
+ lineHeight: theme.typography.lineHeightLg,
55578
+ fontWeight: theme.typography.typographyBoldFontWeight
55579
+ }
55580
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
55581
+
55582
+ case 4:
55333
55583
  default:
55334
55584
  return /*#__PURE__*/css$1({
55335
55585
  '&&': {
@@ -55377,16 +55627,15 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__$7() { return "You have tried to string
55377
55627
 
55378
55628
  const getHeaderStyles = (clsPrefix, theme) => {
55379
55629
  const breadcrumbClass = ".".concat(clsPrefix, "-breadcrumb");
55380
- const styles = { ...(theme.options.isCompact && {
55381
- [breadcrumbClass]: {
55382
- lineHeight: theme.typography.lineHeightBase
55383
- }
55384
- })
55630
+ const styles = {
55631
+ [breadcrumbClass]: {
55632
+ lineHeight: theme.typography.lineHeightBase
55633
+ }
55385
55634
  };
55386
55635
  return /*#__PURE__*/css$1(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getHeaderStyles;");
55387
55636
  };
55388
55637
 
55389
- var _ref$3 = process.env.NODE_ENV === "production" ? {
55638
+ var _ref$2 = process.env.NODE_ENV === "production" ? {
55390
55639
  name: "5s4ezj",
55391
55640
  styles: "display:inline-flex;vertical-align:middle;align-items:center;margin-left:8px"
55392
55641
  } : {
@@ -55395,7 +55644,7 @@ var _ref$3 = process.env.NODE_ENV === "production" ? {
55395
55644
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
55396
55645
  };
55397
55646
 
55398
- var _ref2$2 = process.env.NODE_ENV === "production" ? {
55647
+ var _ref2$3 = process.env.NODE_ENV === "production" ? {
55399
55648
  name: "1q4vxyr",
55400
55649
  styles: "margin-left:8px"
55401
55650
  } : {
@@ -55405,6 +55654,15 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
55405
55654
  };
55406
55655
 
55407
55656
  var _ref3$1 = process.env.NODE_ENV === "production" ? {
55657
+ name: "s079uh",
55658
+ styles: "margin-top:2px"
55659
+ } : {
55660
+ name: "1ky5whb-titleIfOtherElementsPresent",
55661
+ styles: "margin-top:2px;label:titleIfOtherElementsPresent;",
55662
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
55663
+ };
55664
+
55665
+ var _ref4$1 = process.env.NODE_ENV === "production" ? {
55408
55666
  name: "18hxk3h",
55409
55667
  styles: "margin-top:0;margin-bottom:0 !important"
55410
55668
  } : {
@@ -55413,7 +55671,7 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
55413
55671
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$7
55414
55672
  };
55415
55673
 
55416
- var _ref4$2 = process.env.NODE_ENV === "production" ? {
55674
+ var _ref5 = process.env.NODE_ENV === "production" ? {
55417
55675
  name: "1cl2a0e",
55418
55676
  styles: "display:flex;align-items:flex-start;justify-content:space-between"
55419
55677
  } : {
@@ -55429,23 +55687,16 @@ const Header$1 = props => {
55429
55687
  } = useDesignSystemTheme(); // TODO: Move to getHeaderStyles for consistency, followup ticket: https://databricks.atlassian.net/browse/FEINF-1222
55430
55688
 
55431
55689
  const styles = {
55432
- titleWrapper: _ref4$2,
55690
+ titleWrapper: _ref5,
55433
55691
  breadcrumbWrapper: /*#__PURE__*/css$1({
55434
55692
  marginBottom: 2,
55435
- ...(theme.options.isCompact && {
55436
- lineHeight: theme.typography.lineHeightBase
55437
- })
55693
+ lineHeight: theme.typography.lineHeightBase
55438
55694
  }, process.env.NODE_ENV === "production" ? "" : ";label:breadcrumbWrapper;"),
55439
- title: _ref3$1,
55695
+ title: _ref4$1,
55440
55696
  // TODO: Look into a more emotion-idomatic way of doing this.
55441
- titleIfOtherElementsPresent: /*#__PURE__*/css$1({
55442
- marginTop: 6,
55443
- ...(theme.options.isCompact && {
55444
- marginTop: 2
55445
- })
55446
- }, process.env.NODE_ENV === "production" ? "" : ";label:titleIfOtherElementsPresent;"),
55447
- buttonContainer: _ref2$2,
55448
- titleAddOnsWrapper: _ref$3
55697
+ titleIfOtherElementsPresent: _ref3$1,
55698
+ buttonContainer: _ref2$3,
55699
+ titleAddOnsWrapper: _ref$2
55449
55700
  };
55450
55701
  return jsxs("div", {
55451
55702
  css: [getHeaderStyles(clsPrefix, theme), props.dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Header;"],
@@ -55472,21 +55723,36 @@ const Header$1 = props => {
55472
55723
  });
55473
55724
  };
55474
55725
 
55726
+ const getStateClass = function (classNamePrefix, validationState) {
55727
+ let className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
55728
+ let stateClass = '';
55729
+
55730
+ if (validationState) {
55731
+ stateClass = "".concat(classNamePrefix, "-input-").concat(validationState);
55732
+ }
55733
+
55734
+ return "".concat(stateClass, " ").concat(className).trim();
55735
+ };
55736
+
55475
55737
  const getInputEmotionStyles = (clsPrefix, theme) => {
55476
55738
  const affixClass = ".".concat(clsPrefix, "-input-affix-wrapper");
55477
55739
  const affixClassFocused = ".".concat(clsPrefix, "-input-affix-wrapper-focused");
55740
+ const errorClass = ".".concat(clsPrefix, "-input-error");
55741
+ const successClass = ".".concat(clsPrefix, "-input-success");
55742
+ const warningClass = ".".concat(clsPrefix, "-input-warning");
55478
55743
  const styles = {
55479
55744
  '&&': {
55480
55745
  lineHeight: theme.typography.lineHeightBase,
55481
- paddingTop: theme.options.isCompact ? 5 : 9,
55482
- paddingBottom: theme.options.isCompact ? 5 : 9,
55483
- minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
55746
+ paddingTop: 5,
55747
+ paddingBottom: 5,
55748
+ minHeight: theme.general.heightSm,
55484
55749
  '&:hover': {
55485
55750
  borderColor: theme.colors.actionPrimaryBackgroundHover
55486
55751
  },
55487
55752
  '&:focus': {
55488
55753
  outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55489
55754
  outlineWidth: 2,
55755
+ outlineOffset: -2,
55490
55756
  outlineStyle: 'solid',
55491
55757
  boxShadow: 'none',
55492
55758
  borderColor: 'transparent'
@@ -55498,9 +55764,9 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
55498
55764
  },
55499
55765
  ["&".concat(affixClass)]: {
55500
55766
  lineHeight: theme.typography.lineHeightBase,
55501
- paddingTop: theme.options.isCompact ? 5 : 9,
55502
- paddingBottom: theme.options.isCompact ? 5 : 9,
55503
- minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
55767
+ paddingTop: 5,
55768
+ paddingBottom: 5,
55769
+ minHeight: theme.general.heightSm,
55504
55770
  '::before': {
55505
55771
  lineHeight: theme.typography.lineHeightBase
55506
55772
  },
@@ -55513,11 +55779,42 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
55513
55779
  '&&, &:focus': {
55514
55780
  outlineColor: theme.colors.actionPrimaryBackgroundDefault,
55515
55781
  outlineWidth: 2,
55782
+ outlineOffset: -2,
55516
55783
  outlineStyle: 'solid',
55517
55784
  boxShadow: 'none',
55518
55785
  borderColor: 'transparent'
55519
55786
  }
55520
55787
  },
55788
+ ["&".concat(warningClass)]: {
55789
+ borderColor: theme.colors.textValidationWarning,
55790
+ '&:hover': {
55791
+ borderColor: theme.colors.textValidationWarning
55792
+ },
55793
+ '&:focus': {
55794
+ outlineColor: theme.colors.textValidationWarning,
55795
+ outlineOffset: -2
55796
+ }
55797
+ },
55798
+ ["&".concat(successClass)]: {
55799
+ borderColor: theme.colors.textValidationSuccess,
55800
+ '&:hover': {
55801
+ borderColor: theme.colors.textValidationSuccess
55802
+ },
55803
+ '&:focus': {
55804
+ outlineColor: theme.colors.textValidationSuccess,
55805
+ outlineOffset: -2
55806
+ }
55807
+ },
55808
+ ["&".concat(errorClass)]: {
55809
+ borderColor: theme.colors.actionDangerPrimaryBackgroundDefault,
55810
+ '&:hover': {
55811
+ borderColor: theme.colors.actionDangerPrimaryBackgroundDefault
55812
+ },
55813
+ '&:focus': {
55814
+ outlineColor: theme.colors.actionDangerPrimaryBackgroundDefault,
55815
+ outlineOffset: -2
55816
+ }
55817
+ },
55521
55818
  ...getAnimationCss(theme.options.enableAnimation)
55522
55819
  };
55523
55820
  return /*#__PURE__*/css$1(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
@@ -55525,6 +55822,9 @@ const getInputEmotionStyles = (clsPrefix, theme) => {
55525
55822
 
55526
55823
  const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref, ref) {
55527
55824
  let {
55825
+ className,
55826
+ validationState,
55827
+ autoComplete = 'off',
55528
55828
  dangerouslySetAntdProps,
55529
55829
  dangerouslyAppendEmotionCSS,
55530
55830
  ...props
@@ -55533,14 +55833,21 @@ const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref, ref) {
55533
55833
  classNamePrefix,
55534
55834
  theme
55535
55835
  } = useDesignSystemTheme();
55536
- return jsx(Input$2.TextArea, { ...props,
55537
- ...dangerouslySetAntdProps,
55836
+ const wrapperClass = getStateClass(classNamePrefix, validationState, className);
55837
+ return jsx(Input$2.TextArea, {
55838
+ className: wrapperClass,
55538
55839
  ref: ref,
55539
- css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"]
55840
+ autoComplete: autoComplete,
55841
+ css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
55842
+ ...props,
55843
+ ...dangerouslySetAntdProps
55540
55844
  });
55541
55845
  });
55542
55846
  const Password = /*#__PURE__*/forwardRef(function Password(_ref2, ref) {
55543
55847
  let {
55848
+ className,
55849
+ validationState,
55850
+ autoComplete = 'off',
55544
55851
  dangerouslySetAntdProps,
55545
55852
  dangerouslyAppendEmotionCSS,
55546
55853
  ...props
@@ -55549,16 +55856,22 @@ const Password = /*#__PURE__*/forwardRef(function Password(_ref2, ref) {
55549
55856
  classNamePrefix,
55550
55857
  theme
55551
55858
  } = useDesignSystemTheme();
55859
+ const wrapperClass = getStateClass(classNamePrefix, validationState, className);
55552
55860
  return jsx(Input$2.Password, {
55861
+ className: wrapperClass,
55553
55862
  visibilityToggle: false,
55554
- ...props,
55555
55863
  ref: ref,
55556
- ...dangerouslySetAntdProps,
55557
- css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"]
55864
+ autoComplete: autoComplete,
55865
+ css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
55866
+ ...props,
55867
+ ...dangerouslySetAntdProps
55558
55868
  });
55559
55869
  });
55560
55870
  const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref3, ref) {
55561
55871
  let {
55872
+ className,
55873
+ validationState,
55874
+ autoComplete = 'off',
55562
55875
  dangerouslySetAntdProps,
55563
55876
  dangerouslyAppendEmotionCSS,
55564
55877
  ...props
@@ -55567,10 +55880,14 @@ const DuboisInput = /*#__PURE__*/forwardRef(function Input(_ref3, ref) {
55567
55880
  classNamePrefix,
55568
55881
  theme
55569
55882
  } = useDesignSystemTheme();
55570
- return jsx(Input$2, { ...props,
55571
- ...dangerouslySetAntdProps,
55883
+ const wrapperClass = getStateClass(classNamePrefix, validationState, className);
55884
+ return jsx(Input$2, {
55885
+ className: wrapperClass,
55886
+ autoComplete: autoComplete,
55572
55887
  ref: ref,
55573
- css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"]
55888
+ css: [getInputEmotionStyles(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:DuboisInput;"],
55889
+ ...props,
55890
+ ...dangerouslySetAntdProps
55574
55891
  });
55575
55892
  }); // Properly creates the namespace and dot-notation components with correct types.
55576
55893
 
@@ -55591,8 +55908,13 @@ const {
55591
55908
  Sider,
55592
55909
  Content
55593
55910
  } = AntDLayout;
55594
- const Layout = props => {
55595
- return jsx(AntDLayout, { ...props
55911
+ const Layout = _ref => {
55912
+ let {
55913
+ dangerouslySetAntdProps,
55914
+ ...props
55915
+ } = _ref;
55916
+ return jsx(AntDLayout, { ...props,
55917
+ ...dangerouslySetAntdProps
55596
55918
  });
55597
55919
  };
55598
55920
  Layout.Header = Header;
@@ -55600,27 +55922,37 @@ Layout.Footer = Footer;
55600
55922
  Layout.Sider = Sider;
55601
55923
  Layout.Content = Content;
55602
55924
 
55603
- const Menu = props => {
55604
- return jsx(AntDMenu, { ...props
55925
+ const Menu = _ref => {
55926
+ let {
55927
+ dangerouslySetAntdProps,
55928
+ ...props
55929
+ } = _ref;
55930
+ return jsx(AntDMenu, { ...props,
55931
+ ...dangerouslySetAntdProps
55605
55932
  });
55606
55933
  };
55607
55934
  Menu.Item = AntDMenu.Item;
55608
55935
  Menu.ItemGroup = AntDMenu.ItemGroup;
55609
55936
 
55610
- Menu.SubMenu = function SubMenu(props) {
55937
+ Menu.SubMenu = function SubMenu(_ref2) {
55938
+ let {
55939
+ dangerouslySetAntdProps,
55940
+ ...props
55941
+ } = _ref2;
55611
55942
  const {
55612
55943
  theme
55613
55944
  } = useDesignSystemTheme();
55614
55945
  return jsx(ClassNames, {
55615
- children: _ref => {
55946
+ children: _ref3 => {
55616
55947
  let {
55617
55948
  css
55618
- } = _ref;
55949
+ } = _ref3;
55619
55950
  return jsx(AntDMenu.SubMenu, {
55620
55951
  popupClassName: css({
55621
55952
  zIndex: theme.options.zIndexBase + 50
55622
55953
  }),
55623
- ...props
55954
+ ...props,
55955
+ ...dangerouslySetAntdProps
55624
55956
  });
55625
55957
  }
55626
55958
  });
@@ -55648,25 +55980,29 @@ const getModalEmotionStyles = args => {
55648
55980
  const classNameFooter = ".".concat(clsPrefix, "-modal-footer");
55649
55981
  const classNameButton = ".".concat(clsPrefix, "-btn");
55650
55982
  const classNameDropdownTrigger = ".".concat(clsPrefix, "-dropdown-trigger");
55651
- const MODAL_PADDING$1 = theme.options.isCompact ? theme.spacing.lg : MODAL_PADDING;
55652
- const BUTTON_SIZE = theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase;
55983
+ const MODAL_PADDING = theme.spacing.lg;
55984
+ const BUTTON_SIZE = theme.general.heightSm; // Needed for moving some of the padding from the header and footer to the content to avoid a scrollbar from appearing
55985
+ // when the content has some interior components that reach the limits of the content div
55986
+ // 8px is an arbitrary value, it still leaves enough padding for the header and footer too to avoid the same problem
55987
+ // from occurring there too
55988
+
55989
+ const CONTENT_BUFFER = 8;
55653
55990
  const modalMaxHeight = '90vh';
55654
- const headerHeight = theme.options.isCompact ? 64 : 88;
55655
- const footerHeight = hasFooter ? theme.options.isCompact ? 52 : 60 : 0;
55656
- const contentBottomPadding = MODAL_PADDING$1;
55657
- const bodyMaxHeight = "calc(".concat(modalMaxHeight, " - ").concat(headerHeight, "px - ").concat(footerHeight, "px - ").concat(contentBottomPadding, "px)");
55991
+ const headerHeight = 64;
55992
+ const footerHeight = hasFooter ? 52 : 0;
55993
+ const bodyMaxHeight = "calc(".concat(modalMaxHeight, " - ").concat(headerHeight, "px - ").concat(footerHeight, "px - ").concat(MODAL_PADDING, "px)");
55658
55994
  return /*#__PURE__*/css$1({
55659
55995
  [classNameHeader]: {
55660
- paddingTop: theme.options.isCompact ? theme.spacing.md : MODAL_PADDING$1,
55661
- paddingLeft: theme.options.isCompact ? theme.spacing.lg : MODAL_PADDING$1,
55662
- paddingRight: theme.options.isCompact ? theme.spacing.md : MODAL_PADDING$1,
55663
- paddingBottom: theme.options.isCompact ? theme.spacing.md : MODAL_PADDING$1 / 2
55996
+ paddingTop: theme.spacing.md,
55997
+ paddingLeft: theme.spacing.lg,
55998
+ paddingRight: theme.spacing.md,
55999
+ paddingBottom: theme.spacing.md
55664
56000
  },
55665
56001
  [classNameFooter]: {
55666
56002
  height: footerHeight,
55667
- paddingTop: theme.options.isCompact ? theme.spacing.lg : MODAL_PADDING$1 / 2,
55668
- paddingLeft: MODAL_PADDING$1,
55669
- paddingRight: MODAL_PADDING$1,
56003
+ paddingTop: theme.spacing.lg - CONTENT_BUFFER,
56004
+ paddingLeft: MODAL_PADDING,
56005
+ paddingRight: MODAL_PADDING,
55670
56006
  marginTop: 'auto',
55671
56007
  ["".concat(classNameButton, " + ").concat(classNameButton, ":not(").concat(classNameDropdownTrigger, ")")]: {
55672
56008
  marginLeft: theme.spacing.sm
@@ -55686,7 +56022,7 @@ const getModalEmotionStyles = args => {
55686
56022
  width: BUTTON_SIZE,
55687
56023
  // Note: Ant has the close button absolutely positioned, rather than in a flex container with the title.
55688
56024
  // This magic number is eyeballed to get the close X to align with the title text.
55689
- margin: theme.options.isCompact ? '16px 16px 0 0' : '34px 26px 0 0',
56025
+ margin: '16px 16px 0 0',
55690
56026
  borderRadius: theme.borders.borderRadiusMd,
55691
56027
  backgroundColor: theme.colors.actionDefaultBackgroundDefault,
55692
56028
  borderColor: theme.colors.actionDefaultBackgroundDefault,
@@ -55712,29 +56048,26 @@ const getModalEmotionStyles = args => {
55712
56048
  fontSize: theme.typography.fontSizeXl,
55713
56049
  lineHeight: theme.typography.lineHeightXl,
55714
56050
  fontWeight: theme.typography.typographyBoldFontWeight,
55715
- paddingRight: MODAL_PADDING$1,
55716
- // Don't impact regular size
55717
- ...(theme.options.isCompact && {
55718
- minHeight: headerHeight / 2,
55719
- display: 'flex',
55720
- alignItems: 'center'
55721
- })
56051
+ paddingRight: MODAL_PADDING,
56052
+ minHeight: headerHeight / 2,
56053
+ display: 'flex',
56054
+ alignItems: 'center'
55722
56055
  },
55723
56056
  [classNameContent]: {
55724
56057
  maxHeight: modalMaxHeight,
55725
56058
  height: maxedOutHeight ? modalMaxHeight : '',
55726
56059
  overflow: 'hidden',
55727
- paddingBottom: contentBottomPadding,
56060
+ paddingBottom: MODAL_PADDING,
55728
56061
  display: 'flex',
55729
56062
  flexDirection: 'column'
55730
56063
  },
55731
56064
  [classNameBody]: {
55732
56065
  overflowY: 'auto',
55733
56066
  maxHeight: bodyMaxHeight,
55734
- paddingLeft: MODAL_PADDING$1,
55735
- paddingRight: MODAL_PADDING$1,
55736
- paddingTop: theme.options.isCompact ? 0 : theme.spacing.xs,
55737
- paddingBottom: theme.options.isCompact ? 0 : theme.spacing.xs,
56067
+ paddingLeft: MODAL_PADDING,
56068
+ paddingRight: MODAL_PADDING,
56069
+ paddingTop: CONTENT_BUFFER,
56070
+ paddingBottom: CONTENT_BUFFER,
55738
56071
  ...(theme.themeName === 'default' ? {
55739
56072
  // Achieves an inner shadow on the content, but only when there is more left to scroll. When the content fits
55740
56073
  // in the container without scrolling, no shadow will be shown.
@@ -55744,7 +56077,8 @@ const getModalEmotionStyles = args => {
55744
56077
  backgroundSize: '100% 40px, 100% 40px, 100% 14px, 100% 14px',
55745
56078
  backgroundAttachment: 'local, local, scroll, scroll'
55746
56079
  } : {})
55747
- }
56080
+ },
56081
+ ...getAnimationCss(theme.options.enableAnimation)
55748
56082
  }, process.env.NODE_ENV === "production" ? "" : ";label:getModalEmotionStyles;");
55749
56083
  };
55750
56084
 
@@ -55818,7 +56152,7 @@ Modal.defaultProps = {
55818
56152
  verticalSizing: 'dynamic'
55819
56153
  };
55820
56154
 
55821
- var _ref2$1 = process.env.NODE_ENV === "production" ? {
56155
+ var _ref2$2 = process.env.NODE_ENV === "production" ? {
55822
56156
  name: "b9hrb",
55823
56157
  styles: "position:relative;display:inline-flex;align-items:center"
55824
56158
  } : {
@@ -55836,15 +56170,6 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
55836
56170
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
55837
56171
  };
55838
56172
 
55839
- var _ref4$1 = process.env.NODE_ENV === "production" ? {
55840
- name: "bjn8wh",
55841
- styles: "position:relative"
55842
- } : {
55843
- name: "boqyz4-titleComp",
55844
- styles: "position:relative;label:titleComp;",
55845
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
55846
- };
55847
-
55848
56173
  function DangerModal(props) {
55849
56174
  const {
55850
56175
  theme
@@ -55855,13 +56180,14 @@ function DangerModal(props) {
55855
56180
  onOk,
55856
56181
  cancelText,
55857
56182
  okText,
56183
+ okButtonProps,
56184
+ cancelButtonProps,
55858
56185
  ...restProps
55859
56186
  } = props;
55860
- const iconSize = theme.options.isCompact ? 20 : 24;
55861
- const iconMargin = 5; // Differentiate easily between non-compact and compact styling and not impact non-compact at all
56187
+ const iconSize = 20;
55862
56188
 
55863
- const titleComp = theme.options.isCompact ? jsxs("div", {
55864
- css: _ref2$1,
56189
+ const titleComp = jsxs("div", {
56190
+ css: _ref2$2,
55865
56191
  children: [jsx(ErrorBorderIcon, {
55866
56192
  css: /*#__PURE__*/css$1({
55867
56193
  color: theme.colors.textValidationDanger,
@@ -55873,31 +56199,19 @@ function DangerModal(props) {
55873
56199
  css: _ref3,
55874
56200
  children: title
55875
56201
  })]
55876
- }) : jsxs("div", {
55877
- css: _ref4$1,
55878
- children: [jsx(ErrorBorderIcon, {
55879
- css: /*#__PURE__*/css$1({
55880
- color: theme.colors.textValidationDanger,
55881
- position: 'absolute',
55882
- top: 3,
55883
- // eyeballed value for alignment with text
55884
- left: -(iconSize + iconMargin),
55885
- height: iconSize,
55886
- width: iconSize
55887
- }, process.env.NODE_ENV === "production" ? "" : ";label:titleComp;")
55888
- }), jsx("div", {
55889
- children: title
55890
- })]
55891
56202
  });
56203
+
55892
56204
  return jsx(Modal, {
55893
56205
  title: titleComp,
55894
56206
  footer: [jsx(Button, {
55895
56207
  onClick: onCancel,
56208
+ ...cancelButtonProps,
55896
56209
  children: cancelText || 'Cancel'
55897
56210
  }, "cancel"), jsx(Button, {
55898
56211
  type: "primary",
55899
56212
  danger: true,
55900
56213
  onClick: onOk,
56214
+ ...okButtonProps,
55901
56215
  children: okText || 'Delete'
55902
56216
  }, "discard")],
55903
56217
  onOk: onOk,
@@ -55906,14 +56220,10 @@ function DangerModal(props) {
55906
56220
  });
55907
56221
  }
55908
56222
 
55909
- function useDesignSystemContext() {
55910
- return useContext(DesignSystemContext);
55911
- }
55912
-
55913
56223
  // Note: AntD only exposes context to notifications via the `useNotification` hook, and we need context to apply themes
55914
56224
  // to AntD. As such you can currently only use notifications from within functional components.
55915
56225
  function useNotification() {
55916
- const [notificationApi, contextHolder] = antDNotification.useNotification();
56226
+ const [notificationInstance, contextHolder] = antDNotification.useNotification();
55917
56227
  const {
55918
56228
  getPrefixedClassName,
55919
56229
  theme
@@ -55929,10 +56239,7 @@ function useNotification() {
55929
56239
  ...args,
55930
56240
  style: {
55931
56241
  zIndex: theme.options.zIndexBase + 30
55932
- },
55933
- ...(theme.options.isCompact && {
55934
- className: "".concat(clsPrefix, "-compact")
55935
- })
56242
+ }
55936
56243
  };
55937
56244
  const iconClassName = "".concat(clsPrefix, "-notice-icon-").concat(mergedArgs.type);
55938
56245
  mergedArgs.icon = jsx(SeverityIcon, {
@@ -55945,8 +56252,8 @@ function useNotification() {
55945
56252
  fontSize: theme.general.iconSize
55946
56253
  }, process.env.NODE_ENV === "production" ? "" : ";label:mergedArgs-closeIcon;")
55947
56254
  });
55948
- notificationApi.open(mergedArgs);
55949
- }, [notificationApi, getContainer, theme, clsPrefix]);
56255
+ notificationInstance.open(mergedArgs);
56256
+ }, [notificationInstance, getContainer, theme, clsPrefix]);
55950
56257
  const wrappedNotificationAPI = useMemo$1(() => {
55951
56258
  const error = args => open({ ...args,
55952
56259
  type: 'error'
@@ -55964,8 +56271,11 @@ function useNotification() {
55964
56271
  type: 'success'
55965
56272
  });
55966
56273
 
56274
+ const close = key => antDNotification.close(key);
56275
+
55967
56276
  return {
55968
56277
  open,
56278
+ close,
55969
56279
  error,
55970
56280
  warning,
55971
56281
  info,
@@ -55981,7 +56291,7 @@ const defaultProps = {
55981
56291
 
55982
56292
  function _EMOTION_STRINGIFIED_CSS_ERROR__$5() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
55983
56293
 
55984
- var _ref$2 = process.env.NODE_ENV === "production" ? {
56294
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
55985
56295
  name: "1dw6hj0",
55986
56296
  styles: "padding-left:16px;padding-right:16px"
55987
56297
  } : {
@@ -55992,10 +56302,12 @@ var _ref$2 = process.env.NODE_ENV === "production" ? {
55992
56302
 
55993
56303
  const PageWrapper = _ref2 => {
55994
56304
  let {
55995
- children
56305
+ children,
56306
+ ...props
55996
56307
  } = _ref2;
55997
56308
  return jsx("div", {
55998
- css: _ref$2,
56309
+ css: _ref$1,
56310
+ ...props,
55999
56311
  children: children
56000
56312
  });
56001
56313
  };
@@ -56126,12 +56438,16 @@ const Pagination = function Pagination(_ref) {
56126
56438
  onChange: onChange,
56127
56439
  showSizeChanger: false,
56128
56440
  showQuickJumper: true,
56129
- size: theme.options.isCompact ? 'small' : 'default',
56441
+ size: 'small',
56130
56442
  ...dangerouslySetAntdProps
56131
56443
  });
56132
56444
  };
56133
56445
 
56134
- const Popover = props => {
56446
+ const Popover = _ref => {
56447
+ let {
56448
+ dangerouslySetAntdProps,
56449
+ ...props
56450
+ } = _ref;
56135
56451
  const {
56136
56452
  theme
56137
56453
  } = useDesignSystemTheme();
@@ -56240,12 +56556,21 @@ const radioOverrideEmotionStyles = _ref => {
56240
56556
  }, process.env.NODE_ENV === "production" ? "" : ";label:radioOverrideEmotionStyles;");
56241
56557
  };
56242
56558
 
56243
- const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(props, ref) {
56559
+ const DuboisRadio = /*#__PURE__*/forwardRef(function Radio(_ref2, ref) {
56560
+ let {
56561
+ dangerouslySetAntdProps,
56562
+ ...props
56563
+ } = _ref2;
56244
56564
  return jsx(Radio$2, { ...props,
56565
+ ...dangerouslySetAntdProps,
56245
56566
  ref: ref
56246
56567
  });
56247
56568
  });
56248
- const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(props, ref) {
56569
+ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(_ref3, ref) {
56570
+ let {
56571
+ dangerouslySetAntdProps,
56572
+ ...props
56573
+ } = _ref3;
56249
56574
  const {
56250
56575
  theme,
56251
56576
  getPrefixedClassName
@@ -56256,14 +56581,15 @@ const StyledRadioGroup = /*#__PURE__*/forwardRef(function StyledRadioGroup(props
56256
56581
  theme,
56257
56582
  clsPrefix
56258
56583
  }),
56584
+ ...dangerouslySetAntdProps,
56259
56585
  ref: ref
56260
56586
  });
56261
56587
  });
56262
- const VerticalGroup = /*#__PURE__*/forwardRef(function VerticalGroup(_ref2, ref) {
56588
+ const VerticalGroup = /*#__PURE__*/forwardRef(function VerticalGroup(_ref4, ref) {
56263
56589
  let {
56264
56590
  dangerouslySetAntdProps,
56265
56591
  ...props
56266
- } = _ref2;
56592
+ } = _ref4;
56267
56593
  return jsx(StyledRadioGroup, {
56268
56594
  css: verticalGroupEmotionStyles,
56269
56595
  ...props,
@@ -56271,11 +56597,11 @@ const VerticalGroup = /*#__PURE__*/forwardRef(function VerticalGroup(_ref2, ref)
56271
56597
  ...dangerouslySetAntdProps
56272
56598
  });
56273
56599
  });
56274
- const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref3, ref) {
56600
+ const HorizontalGroup = /*#__PURE__*/forwardRef(function HorizontalGroup(_ref5, ref) {
56275
56601
  let {
56276
56602
  dangerouslySetAntdProps,
56277
56603
  ...props
56278
- } = _ref3;
56604
+ } = _ref5;
56279
56605
  return jsx(StyledRadioGroup, { ...props,
56280
56606
  ref: ref,
56281
56607
  ...dangerouslySetAntdProps
@@ -56349,6 +56675,11 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme) {
56349
56675
  backgroundColor: theme.colors.actionDefaultBorderPress
56350
56676
  }
56351
56677
  },
56678
+ ["&".concat(classWrapperChecked, ":focus-within")]: {
56679
+ '::before': {
56680
+ width: 0
56681
+ }
56682
+ },
56352
56683
  ["&".concat(classWrapperDisabled)]: {
56353
56684
  color: theme.colors.actionDisabledText,
56354
56685
  backgroundColor: theme.colors.actionDisabledBackground,
@@ -56372,20 +56703,22 @@ function getSegmentedControlButtonEmotionStyles(clsPrefix, theme) {
56372
56703
  outlineColor: theme.colors.primary
56373
56704
  }
56374
56705
  },
56375
- ...(theme.options.isCompact && {
56376
- ["&".concat(classWrapper, ", ").concat(classButton)]: {
56377
- height: theme.general.heightSm,
56378
- lineHeight: theme.typography.lineHeightBase,
56379
- alignItems: 'center'
56380
- }
56381
- }),
56706
+ ["&".concat(classWrapper, ", ").concat(classButton)]: {
56707
+ height: theme.general.heightSm,
56708
+ lineHeight: theme.typography.lineHeightBase,
56709
+ alignItems: 'center'
56710
+ },
56382
56711
  ...getAnimationCss(theme.options.enableAnimation)
56383
56712
  };
56384
56713
  const importantStyles = importantify(styles);
56385
56714
  return /*#__PURE__*/css$1(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSegmentedControlButtonEmotionStyles;");
56386
56715
  }
56387
56716
 
56388
- const SegmentedControlButton = /*#__PURE__*/forwardRef(function SegmentedControlButton(props, ref) {
56717
+ const SegmentedControlButton = /*#__PURE__*/forwardRef(function SegmentedControlButton(_ref, ref) {
56718
+ let {
56719
+ dangerouslySetAntdProps,
56720
+ ...props
56721
+ } = _ref;
56389
56722
  const {
56390
56723
  classNamePrefix,
56391
56724
  theme
@@ -56393,15 +56726,21 @@ const SegmentedControlButton = /*#__PURE__*/forwardRef(function SegmentedControl
56393
56726
  return jsx(Radio$2.Button, {
56394
56727
  css: getSegmentedControlButtonEmotionStyles(classNamePrefix, theme),
56395
56728
  ...props,
56729
+ ...dangerouslySetAntdProps,
56396
56730
  ref: ref
56397
56731
  });
56398
56732
  });
56399
- const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlGroup(props, ref) {
56733
+ const SegmentedControlGroup = /*#__PURE__*/forwardRef(function SegmentedControlGroup(_ref2, ref) {
56734
+ let {
56735
+ dangerouslySetAntdProps,
56736
+ ...props
56737
+ } = _ref2;
56400
56738
  const {
56401
56739
  classNamePrefix
56402
56740
  } = useDesignSystemTheme();
56403
56741
  return jsx(Radio$2.Group, { ...props,
56404
56742
  css: getSegmentedControlGroupEmotionStyles(classNamePrefix),
56743
+ ...dangerouslySetAntdProps,
56405
56744
  ref: ref
56406
56745
  });
56407
56746
  });
@@ -56420,7 +56759,8 @@ function getSelectEmotionStyles(_ref) {
56420
56759
  const classDisabled = ".".concat(clsPrefix, "-disabled");
56421
56760
  const classMultiple = ".".concat(clsPrefix, "-multiple");
56422
56761
  const classItem = ".".concat(clsPrefix, "-selection-item");
56423
- const classItemOverflow = ".".concat(clsPrefix, "-selection-overflow-item");
56762
+ const classItemOverflowContainer = ".".concat(clsPrefix, "-selection-overflow");
56763
+ const classItemOverflowItem = ".".concat(clsPrefix, "-selection-overflow-item");
56424
56764
  const classItemOverflowSuffix = ".".concat(clsPrefix, "-selection-overflow-item-suffix");
56425
56765
  const classArrow = ".".concat(clsPrefix, "-arrow");
56426
56766
  const classArrowLoading = ".".concat(clsPrefix, "-arrow-loading");
@@ -56444,7 +56784,7 @@ function getSelectEmotionStyles(_ref) {
56444
56784
  paddingRight: 0,
56445
56785
  color: theme.colors.textPrimary,
56446
56786
  backgroundColor: 'transparent',
56447
- height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
56787
+ height: theme.general.heightSm,
56448
56788
  '::after': {
56449
56789
  lineHeight: theme.typography.lineHeightBase
56450
56790
  },
@@ -56454,15 +56794,15 @@ function getSelectEmotionStyles(_ref) {
56454
56794
  },
56455
56795
  [classSingle]: {
56456
56796
  ["&".concat(classSelector)]: {
56457
- height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
56797
+ height: theme.general.heightSm
56458
56798
  }
56459
56799
  },
56460
56800
  [classItem]: {
56461
56801
  color: theme.colors.textPrimary,
56462
56802
  paddingRight: 32,
56463
56803
  lineHeight: theme.typography.lineHeightBase,
56464
- paddingTop: theme.options.isCompact ? 5 : 10,
56465
- paddingBottom: theme.options.isCompact ? 5 : 10
56804
+ paddingTop: 5,
56805
+ paddingBottom: 5
56466
56806
  },
56467
56807
  // Note: This supports search, which we don't support. The styles here support legacy usages.
56468
56808
  [classSearch]: {
@@ -56475,7 +56815,7 @@ function getSelectEmotionStyles(_ref) {
56475
56815
  },
56476
56816
  ["&".concat(classSingle)]: {
56477
56817
  [classSearchInput]: {
56478
- height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
56818
+ height: theme.general.heightSm
56479
56819
  }
56480
56820
  },
56481
56821
  // Note: This supports search, which we don't support. The styles here support legacy usages.
@@ -56513,7 +56853,7 @@ function getSelectEmotionStyles(_ref) {
56513
56853
  [classArrow]: {
56514
56854
  height: theme.general.iconSize,
56515
56855
  width: theme.general.iconSize,
56516
- top: theme.options.isCompact ? 4 : 8,
56856
+ top: 4,
56517
56857
  marginTop: 0,
56518
56858
  color: theme.colors.textSecondary,
56519
56859
  '.anticon': {
@@ -56522,7 +56862,7 @@ function getSelectEmotionStyles(_ref) {
56522
56862
  pointerEvents: 'none'
56523
56863
  },
56524
56864
  ["&".concat(classArrowLoading)]: {
56525
- top: theme.options.isCompact ? 4 : 8,
56865
+ top: 4,
56526
56866
  display: 'flex',
56527
56867
  alignItems: 'center',
56528
56868
  justifyContent: 'center',
@@ -56543,7 +56883,7 @@ function getSelectEmotionStyles(_ref) {
56543
56883
  paddingBottom: 3,
56544
56884
  paddingLeft: 8,
56545
56885
  paddingRight: 30,
56546
- minHeight: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
56886
+ minHeight: theme.general.heightSm,
56547
56887
  height: 'auto',
56548
56888
  '&::after': {
56549
56889
  margin: 0
@@ -56564,7 +56904,10 @@ function getSelectEmotionStyles(_ref) {
56564
56904
  paddingTop: 0,
56565
56905
  paddingBottom: 0
56566
56906
  },
56567
- [classItemOverflow]: {
56907
+ [classItemOverflowContainer]: {
56908
+ minHeight: 24
56909
+ },
56910
+ [classItemOverflowItem]: {
56568
56911
  alignSelf: 'auto',
56569
56912
  height: 24,
56570
56913
  lineHeight: theme.typography.lineHeightBase
@@ -56580,11 +56923,11 @@ function getSelectEmotionStyles(_ref) {
56580
56923
  }
56581
56924
  },
56582
56925
  [classArrow]: {
56583
- top: theme.options.isCompact ? 5 : 8
56926
+ top: 5
56584
56927
  },
56585
56928
  ["&".concat(classAllowClear)]: {
56586
56929
  [classSearchClear]: {
56587
- top: theme.options.isCompact ? 16 : 20
56930
+ top: 16
56588
56931
  }
56589
56932
  },
56590
56933
  [classPlaceholder]: {
@@ -56613,7 +56956,7 @@ function getSelectEmotionStyles(_ref) {
56613
56956
  paddingRight: 52
56614
56957
  },
56615
56958
  [classSearchClear]: {
56616
- top: theme.options.isCompact ? 16 : 20,
56959
+ top: 16,
56617
56960
  opacity: 100
56618
56961
  }
56619
56962
  },
@@ -56781,19 +57124,30 @@ function DuboisSelect(_ref2, ref) {
56781
57124
  });
56782
57125
  }
56783
57126
 
56784
- const Option = /*#__PURE__*/forwardRef(function Option(props, ref) {
57127
+ const Option = /*#__PURE__*/forwardRef(function Option(_ref5, ref) {
57128
+ let {
57129
+ dangerouslySetAntdProps,
57130
+ ...props
57131
+ } = _ref5;
56785
57132
  return jsx(AntDSelect.Option, { ...props,
56786
- ref: ref
57133
+ ref: ref,
57134
+ ...dangerouslySetAntdProps
56787
57135
  });
56788
57136
  });
56789
57137
  const SelectNamespace = Object.assign(DuboisRefForwardedSelect, {
56790
- Option
57138
+ Option,
57139
+ OptGroup: AntDSelect.OptGroup
56791
57140
  });
56792
57141
  const Select = SelectNamespace;
56793
57142
  const __INTERNAL_DO_NOT_USE__Option = Option;
56794
57143
 
56795
- const Skeleton = props => {
56796
- return jsx(Skeleton$2, { ...props
57144
+ const Skeleton = _ref => {
57145
+ let {
57146
+ dangerouslySetAntdProps,
57147
+ ...props
57148
+ } = _ref;
57149
+ return jsx(Skeleton$2, { ...props,
57150
+ ...dangerouslySetAntdProps
56797
57151
  });
56798
57152
  };
56799
57153
  Skeleton.Button = Skeleton$2.Button;
@@ -56802,7 +57156,8 @@ Skeleton.Input = Skeleton$2.Input;
56802
57156
 
56803
57157
  const Spacer = _ref => {
56804
57158
  let {
56805
- size = 'medium'
57159
+ size = 'medium',
57160
+ ...props
56806
57161
  } = _ref;
56807
57162
  const {
56808
57163
  theme
@@ -56816,7 +57171,8 @@ const Spacer = _ref => {
56816
57171
  return jsx("div", {
56817
57172
  css: /*#__PURE__*/css$1({
56818
57173
  height: spacingValues[size]
56819
- }, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;")
57174
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Spacer;"),
57175
+ ...props
56820
57176
  });
56821
57177
  };
56822
57178
 
@@ -56842,6 +57198,7 @@ const Spinner = _ref => {
56842
57198
  };
56843
57199
 
56844
57200
  function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
57201
+ const BUTTON_HORIZONTAL_PADDING = 12;
56845
57202
 
56846
57203
  function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56847
57204
  const classDefault = ".".concat(classNamePrefix, "-btn");
@@ -56851,8 +57208,8 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56851
57208
  const styles = {
56852
57209
  [classDefault]: { ...getDefaultStyles(theme),
56853
57210
  boxShadow: 'none',
56854
- height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
56855
- padding: theme.options.isCompact ? '4px 12px' : '8px 16px',
57211
+ height: theme.general.heightSm,
57212
+ padding: "4px ".concat(BUTTON_HORIZONTAL_PADDING, "px"),
56856
57213
  '&:focus-visible': {
56857
57214
  outlineStyle: 'solid',
56858
57215
  outlineWidth: '2px',
@@ -56877,9 +57234,9 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56877
57234
  },
56878
57235
  [classDropdownTrigger]: {
56879
57236
  // Needs to be 1px less than our standard 8px to allow for the off-by-one border handling in this component.
56880
- padding: theme.options.isCompact ? 3 : 7,
57237
+ padding: 3,
56881
57238
  borderLeftColor: 'transparent',
56882
- width: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
57239
+ width: theme.general.heightSm
56883
57240
  },
56884
57241
  ["&".concat(classSmall)]: {
56885
57242
  [classDropdownTrigger]: {
@@ -56901,7 +57258,7 @@ function getSplitButtonEmotionStyles(classNamePrefix, theme) {
56901
57258
  return /*#__PURE__*/css$1(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getSplitButtonEmotionStyles;");
56902
57259
  }
56903
57260
 
56904
- var _ref$1 = process.env.NODE_ENV === "production" ? {
57261
+ var _ref = process.env.NODE_ENV === "production" ? {
56905
57262
  name: "jjj6u2",
56906
57263
  styles: "display:inline-flex;position:relative"
56907
57264
  } : {
@@ -56921,10 +57278,14 @@ const SplitButton = props => {
56921
57278
  menu,
56922
57279
  type,
56923
57280
  loading,
57281
+ loadingButtonStyles,
57282
+ placement,
56924
57283
  dangerouslySetAntdProps,
56925
57284
  ...dropdownButtonProps
56926
- } = props;
56927
- const [width, setWidth] = useState(0); // Set the width to the button's width in regular state to later use when in loading state
57285
+ } = props; // Size of button when loading only icon is shown
57286
+
57287
+ const LOADING_BUTTON_SIZE = theme.general.iconFontSize + 2 * BUTTON_HORIZONTAL_PADDING + 2 * theme.general.borderWidth;
57288
+ const [width, setWidth] = useState(LOADING_BUTTON_SIZE); // Set the width to the button's width in regular state to later use when in loading state
56928
57289
  // We do this to have just a loading icon in loading state at the normal width to avoid flicker and width changes in page
56929
57290
 
56930
57291
  const ref = useCallback(node => {
@@ -56934,11 +57295,12 @@ const SplitButton = props => {
56934
57295
  }, [loading]);
56935
57296
  return jsx("div", {
56936
57297
  ref: ref,
56937
- css: _ref$1,
57298
+ css: _ref,
56938
57299
  children: loading ? jsx(Button, {
56939
57300
  type: type === 'default' ? undefined : type,
56940
57301
  style: {
56941
- width: width
57302
+ width: width,
57303
+ ...loadingButtonStyles
56942
57304
  },
56943
57305
  children: jsx(LoadingIcon, {
56944
57306
  spin: true
@@ -56952,7 +57314,7 @@ const SplitButton = props => {
56952
57314
  fontSize: theme.general.iconSize
56953
57315
  }, process.env.NODE_ENV === "production" ? "" : ";label:SplitButton;")
56954
57316
  }),
56955
- placement: "bottomCenter",
57317
+ placement: placement || 'bottomRight',
56956
57318
  type: type === 'default' ? undefined : type,
56957
57319
  ...dangerouslySetAntdProps,
56958
57320
  children: [icon, children]
@@ -57054,18 +57416,20 @@ const getTabEmotionStyles = (clsPrefix, theme) => {
57054
57416
  const classUnderline = ".".concat(clsPrefix, "-tabs-ink-bar");
57055
57417
  const classClosable = ".".concat(clsPrefix, "-tabs-tab-with-remove");
57056
57418
  const classNav = ".".concat(clsPrefix, "-tabs-nav");
57057
- const classNavWrap = ".".concat(clsPrefix, "-tabs-nav-wrap");
57058
57419
  const classCloseButton = ".".concat(clsPrefix, "-tabs-tab-remove");
57059
57420
  const classAddButton = ".".concat(clsPrefix, "-tabs-nav-add");
57060
57421
  const styles = {
57422
+ '&&': {
57423
+ overflow: 'unset'
57424
+ },
57061
57425
  [classTab]: {
57062
57426
  borderBottom: 'none',
57063
57427
  backgroundColor: 'transparent',
57064
57428
  border: 'none',
57065
57429
  paddingLeft: 0,
57066
57430
  paddingRight: 0,
57067
- paddingTop: theme.options.isCompact ? 6 : 10,
57068
- paddingBottom: theme.options.isCompact ? 6 : 10,
57431
+ paddingTop: 6,
57432
+ paddingBottom: 6,
57069
57433
  marginRight: 24
57070
57434
  },
57071
57435
  [classButton]: {
@@ -57117,21 +57481,18 @@ const getTabEmotionStyles = (clsPrefix, theme) => {
57117
57481
  background: 'none',
57118
57482
  paddingTop: 0,
57119
57483
  paddingBottom: 0,
57120
- height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase
57121
- },
57122
- [classNavWrap]: {
57123
- overflow: 'visible'
57484
+ height: theme.general.heightSm
57124
57485
  },
57125
57486
  [classNav]: {
57126
- height: theme.options.isCompact ? theme.general.heightSm : theme.general.heightBase,
57487
+ height: theme.general.heightSm,
57127
57488
  '&::before': {
57128
57489
  borderColor: theme.colors.borderDecorative
57129
57490
  }
57130
57491
  },
57131
57492
  [classCloseButton]: {
57132
- height: theme.options.isCompact ? 24 : 32,
57133
- width: theme.options.isCompact ? 24 : 32,
57134
- padding: theme.options.isCompact ? 6 : theme.spacing.sm,
57493
+ height: 24,
57494
+ width: 24,
57495
+ padding: 6,
57135
57496
  borderRadius: theme.borders.borderRadiusMd,
57136
57497
  marginTop: 0,
57137
57498
  marginRight: 0,
@@ -57157,9 +57518,9 @@ const getTabEmotionStyles = (clsPrefix, theme) => {
57157
57518
  border: 'none',
57158
57519
  borderRadius: theme.borders.borderRadiusMd,
57159
57520
  margin: 4,
57160
- height: theme.options.isCompact ? 24 : 32,
57161
- width: theme.options.isCompact ? 24 : 32,
57162
- padding: theme.options.isCompact ? 0 : '0 4px',
57521
+ height: 24,
57522
+ width: 24,
57523
+ padding: 0,
57163
57524
  minWidth: 'auto',
57164
57525
  '&:hover': {
57165
57526
  backgroundColor: theme.colors.actionDefaultBackgroundHover,
@@ -57190,7 +57551,8 @@ const Tabs = _ref => {
57190
57551
  children,
57191
57552
  destroyInactiveTabPane = false,
57192
57553
  dangerouslySetAntdProps = {},
57193
- dangerouslyAppendEmotionCSS = {}
57554
+ dangerouslyAppendEmotionCSS = {},
57555
+ ...props
57194
57556
  } = _ref;
57195
57557
  const {
57196
57558
  theme,
@@ -57210,6 +57572,7 @@ const Tabs = _ref => {
57210
57572
  }),
57211
57573
  css: [getTabEmotionStyles(classNamePrefix, theme), importantify(dangerouslyAppendEmotionCSS), process.env.NODE_ENV === "production" ? "" : ";label:Tabs;"],
57212
57574
  ...dangerouslySetAntdProps,
57575
+ ...props,
57213
57576
  children: children
57214
57577
  });
57215
57578
  };
@@ -57373,7 +57736,8 @@ const Tooltip = _ref => {
57373
57736
  title,
57374
57737
  placement = 'top',
57375
57738
  dataTestId,
57376
- dangerouslySetAntdProps
57739
+ dangerouslySetAntdProps,
57740
+ ...props
57377
57741
  } = _ref;
57378
57742
  const {
57379
57743
  theme
@@ -57385,7 +57749,8 @@ const Tooltip = _ref => {
57385
57749
  });
57386
57750
  }
57387
57751
 
57388
- return jsx(AntDTooltip, {
57752
+ return jsx(AntDTooltip // eslint-disable-next-line react/forbid-dom-props -- FEINF-1337 - this should turn into data-testid
57753
+ , {
57389
57754
  title: jsx("span", {
57390
57755
  "data-test-id": dataTestId,
57391
57756
  children: title
@@ -57401,7 +57766,9 @@ const Tooltip = _ref => {
57401
57766
  overlayStyle: {
57402
57767
  zIndex: theme.options.zIndexBase + 70
57403
57768
  },
57769
+ css: getAnimationCss(theme.options.enableAnimation),
57404
57770
  ...dangerouslySetAntdProps,
57771
+ ...props,
57405
57772
  children: children
57406
57773
  });
57407
57774
  };
@@ -57473,7 +57840,8 @@ function getTreeCheckboxEmotionStyles(clsPrefix, theme) {
57473
57840
  // Indeterminate and mouse pressed
57474
57841
  ["".concat(classIndeterminate, ":active > ").concat(classInner)]: {
57475
57842
  backgroundColor: theme.colors.actionPrimaryBackgroundPress
57476
- }
57843
+ },
57844
+ ...getAnimationCss(theme.options.enableAnimation)
57477
57845
  };
57478
57846
  return styles;
57479
57847
  }
@@ -57609,7 +57977,7 @@ function getTreeEmotionStyles(clsPrefix, theme) {
57609
57977
  return /*#__PURE__*/css$1(importantStyles, process.env.NODE_ENV === "production" ? "" : ";label:getTreeEmotionStyles;");
57610
57978
  }
57611
57979
 
57612
- var _ref2 = process.env.NODE_ENV === "production" ? {
57980
+ var _ref2$1 = process.env.NODE_ENV === "production" ? {
57613
57981
  name: "1o12nta",
57614
57982
  styles: "font-size:24px!important"
57615
57983
  } : {
@@ -57626,7 +57994,8 @@ function Tree(_ref) {
57626
57994
  defaultCheckedKeys,
57627
57995
  disabled = false,
57628
57996
  mode = 'default',
57629
- dangerouslySetAntdProps
57997
+ dangerouslySetAntdProps,
57998
+ ...props
57630
57999
  } = _ref;
57631
58000
  const {
57632
58001
  theme,
@@ -57640,19 +58009,20 @@ function Tree(_ref) {
57640
58009
  disabled: disabled,
57641
58010
  css: getTreeEmotionStyles(classNamePrefix, theme),
57642
58011
  switcherIcon: jsx(ChevronDownIcon, {
57643
- css: _ref2
58012
+ css: _ref2$1
57644
58013
  }),
57645
58014
  tabIndex: 0,
57646
58015
  selectable: mode === 'selectable' || mode === 'multiselectable',
57647
58016
  checkable: mode === 'checkable',
57648
58017
  multiple: mode === 'multiselectable',
57649
- ...dangerouslySetAntdProps
58018
+ ...dangerouslySetAntdProps,
58019
+ ...props
57650
58020
  });
57651
58021
  }
57652
58022
 
57653
58023
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
57654
58024
 
57655
- var _ref = process.env.NODE_ENV === "production" ? {
58025
+ var _ref2 = process.env.NODE_ENV === "production" ? {
57656
58026
  name: "mgrjgu",
57657
58027
  styles: "margin-left:2px"
57658
58028
  } : {
@@ -57661,7 +58031,11 @@ var _ref = process.env.NODE_ENV === "production" ? {
57661
58031
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
57662
58032
  };
57663
58033
 
57664
- function Link(props) {
58034
+ function Link(_ref) {
58035
+ let {
58036
+ dangerouslySetAntdProps,
58037
+ ...props
58038
+ } = _ref;
57665
58039
  const {
57666
58040
  children,
57667
58041
  openInNewTab,
@@ -57670,8 +58044,9 @@ function Link(props) {
57670
58044
  const openInNewTabProps = getOpenInNewTabProps(openInNewTab);
57671
58045
  return jsxs(AntDTypography.Link, { ...restProps,
57672
58046
  ...openInNewTabProps,
58047
+ ...dangerouslySetAntdProps,
57673
58048
  children: [children, openInNewTab ? jsx(NewWindowIcon, {
57674
- css: _ref
58049
+ css: _ref2
57675
58050
  }) : null]
57676
58051
  });
57677
58052
  }
@@ -57823,8 +58198,13 @@ function Text(userProps) {
57823
58198
  });
57824
58199
  }
57825
58200
 
57826
- function Typography(props) {
57827
- return jsx(AntDTypography, { ...props
58201
+ function Typography(_ref) {
58202
+ let {
58203
+ dangerouslySetAntdProps,
58204
+ ...props
58205
+ } = _ref;
58206
+ return jsx(AntDTypography, { ...props,
58207
+ ...dangerouslySetAntdProps
57828
58208
  });
57829
58209
  }
57830
58210
  Typography.Text = Text;
@@ -57832,5 +58212,5 @@ Typography.Title = Title;
57832
58212
  Typography.Paragraph = Paragraph;
57833
58213
  Typography.Link = Link;
57834
58214
 
57835
- export { AIcon, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BookIcon, BookmarkBorderIcon, BookmarkFillIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CheckCircleBorderIcon, CheckCircleFillIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, Clock1Icon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudOffIcon, CloudUploadIcon, ClusterIcon, ClustersIcon, CodeIcon, Col, Collapse, CollapsePanel, CopyIcon, DIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DesignSystemContext, DesignSystemProvider, DownloadIcon, DragIcon, Dropdown, DropdownMenu, DuboisDatePicker, ErrorBorderIcon, ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, ExperimentIcon, FeatureStoreIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, Folder1Icon, FolderIcon, ForkIcon, Form, FormDubois, FullscreenExitIcon, FullscreenIcon, Gear1Icon, GearIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfoBorderIcon, InfoFillIcon, Input, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LifesaverIcon, LightningIcon, LinkIcon, LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockBorderIcon, LockFillIcon, LockUnlockedIcon, MIcon, Menu, MinusBoxIcon, MinusCircleBorderIcon, MinusCircleFillIcon, Modal, ModelsIcon, NewWindowIcon, NoIcon, NotebookIcon, NotificationIcon, NotificationsIcon, OfficeIcon, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, PencilIcon, PinBorderIcon, PinCancelIcon, PinFillIcon, PinXIcon, PlayCircleBorderIcon, PlayCircleFillIcon, PlayIcon, PlusCircleBorderIcon, PlusCircleFillIcon, PlusIcon, PlusSquareIcon, Popover, QueryEditorIcon, QueryIcon, QueryListViewIcon, QueryNavIcon, QuestionMarkBorderIcon, QuestionMarkFillIcon, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, ReposIcon, Row, SchoolIcon, Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarBorderIcon, StarFillIcon, StopCircleBorderIcon, StopCricleFillIcon, StopIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VideosIcon, WarningBorderIcon, WarningFillIcon, WithDesignSystemThemeHoc, XCircleBorderIcon, XCircleFillIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__Option, __INTERNAL_DO_NOT_USE__Password, __INTERNAL_DO_NOT_USE__TextArea, __INTERNAL_DO_NOT_USE__VerticalGroup, getAnimationCss, getButtonEmotionStyles, getPaginationEmotionStyles, getTabEmotionStyles, useDesignSystemTheme, useNotification, useThemedStyles };
58215
+ export { AIcon, Alert, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ApplyDesignSystemFlags, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowsUpDownIcon, AutoComplete, BarChartIcon, BeakerIcon, BookIcon, BookmarkBorderIcon, BookmarkFillIcon, Breadcrumb, BriefcaseFillIcon, BriefcaseIcon, Button, CalendarEventIcon, CalendarIcon, CaretDownSquareIcon, CaretUpSquareIcon, CheckCircleBorderIcon, CheckCircleFillIcon, CheckIcon, CheckLineIcon, Checkbox, ChecklistIcon, ChevronDoubleDownIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronDoubleUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleIcon, ClipboardIcon, Clock1Icon, ClockIcon, CloseIcon, CloudDownloadIcon, CloudIcon, CloudOffIcon, CloudUploadIcon, ClusterIcon, ClustersIcon, CodeIcon, Col, Collapse, CollapsePanel, CopyIcon, DIcon, DangerModal, DashIcon, DashboardIcon, DataIcon, DatabaseIcon, DesignSystemContext, DesignSystemProvider, DownloadIcon, DragIcon, Dropdown, DropdownMenu, DuboisDatePicker, ErrorBorderIcon, ErrorFillIcon, ExpandLessIcon, ExpandMoreIcon, ExperimentIcon, FeatureStoreIcon, FileCodeIcon, FileDocumentIcon, FileIcon, FileImageIcon, FileModelIcon, FilterIcon, Folder1Icon, FolderIcon, ForkIcon, Form, FormDubois, FullscreenExitIcon, FullscreenIcon, Gear1Icon, GearIcon, GridDashIcon, GridIcon, H1Icon, H2Icon, H3Icon, Header$1 as Header, HistoryIcon, HomeIcon, Icon, ImageIcon, IndentDecreaseIcon, IndentIncreaseIcon, InfinityIcon, InfoBorderIcon, InfoFillIcon, Input, KeyboardIcon, LayerIcon, Layout, LegacyDatePicker, LifesaverIcon, LightningIcon, LinkIcon, LinkRemoveIcon, ListBorderIcon, ListIcon, LoadingIcon, LockBorderIcon, LockFillIcon, LockUnlockedIcon, MIcon, Menu, MinusBoxIcon, MinusCircleBorderIcon, MinusCircleFillIcon, Modal, ModelsIcon, NewWindowIcon, NoIcon, NotebookIcon, NotificationIcon, NotificationsIcon, OfficeIcon, Option, OverflowIcon, PageBottomIcon, PageFirstIcon, PageLastIcon, PageTopIcon, PageWrapper, Pagination, PencilIcon, PinBorderIcon, PinCancelIcon, PinFillIcon, PinXIcon, PlayCircleBorderIcon, PlayCircleFillIcon, PlayIcon, PlusCircleBorderIcon, PlusCircleFillIcon, PlusIcon, PlusSquareIcon, Popover, QueryEditorIcon, QueryIcon, QueryListViewIcon, QueryNavIcon, QuestionMarkBorderIcon, QuestionMarkFillIcon, ROW_GUTTER_SIZE, Radio, ReaderModeIcon, ReposIcon, Row, SchoolIcon, Search1Icon, SearchIcon, SecurityIcon, SegmentedControlButton, SegmentedControlGroup, Select, ShareIcon, SidebarAutoIcon, SidebarCollapseIcon, SidebarExpandIcon, SidebarIcon, Skeleton, Space, Spacer, SpeechBubbleIcon, SpeechBubblePlusIcon, Spinner, SplitButton, StarBorderIcon, StarFillIcon, StopCircleBorderIcon, StopCricleFillIcon, StopIcon, StreamIcon, Switch, SyncIcon, TabPane, Table, TableIcon, Tabs, Tag, Tooltip, TrashIcon, Tree, TreeIcon, Typography, UploadIcon, UsbIcon, UserBadgeIcon, UserCircleIcon, UserGroupIcon, UserIcon, VideosIcon, Visible, VisibleOff, WarningBorderIcon, WarningFillIcon, WithDesignSystemThemeHoc, XCircleBorderIcon, XCircleFillIcon, ZoomInIcon, ZoomOutIcon, __INTERNAL_DO_NOT_USE__FormItem, __INTERNAL_DO_NOT_USE__Group, __INTERNAL_DO_NOT_USE__HorizontalGroup, __INTERNAL_DO_NOT_USE__Option, __INTERNAL_DO_NOT_USE__Password, __INTERNAL_DO_NOT_USE__TextArea, __INTERNAL_DO_NOT_USE__VerticalGroup, getAnimationCss, getButtonEmotionStyles, getPaginationEmotionStyles, getTabEmotionStyles, useDesignSystemFlags, useDesignSystemTheme, useNotification, useThemedStyles };
57836
58216
  //# sourceMappingURL=index.js.map