@databricks/design-system 1.12.16 → 1.12.17

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 (706) hide show
  1. package/dist/Stepper-1ef5b499.js +395 -0
  2. package/dist/Stepper-1ef5b499.js.map +1 -0
  3. package/dist/{Stepper-ff25c5d1.js → Typography-ed0b1c4d.js} +852 -1393
  4. package/dist/Typography-ed0b1c4d.js.map +1 -0
  5. package/dist/common-5b60d682.js.map +1 -1
  6. package/dist/design-system/AccessibleContainer/index.d.ts +0 -1
  7. package/dist/design-system/AccessibleContainer/index.d.ts.map +1 -1
  8. package/dist/design-system/Accordion/Accordion.d.ts +0 -1
  9. package/dist/design-system/Accordion/Accordion.d.ts.map +1 -1
  10. package/dist/design-system/Alert/Alert.d.ts +3 -3
  11. package/dist/design-system/Alert/Alert.d.ts.map +1 -1
  12. package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts +0 -1
  13. package/dist/design-system/ApplyGlobalStyles/ApplyGlobalStyles.d.ts.map +1 -1
  14. package/dist/design-system/AutoComplete/AutoComplete.d.ts +0 -1
  15. package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
  16. package/dist/design-system/Avatar/Avatar.d.ts +22 -15
  17. package/dist/design-system/Avatar/Avatar.d.ts.map +1 -1
  18. package/dist/design-system/Breadcrumb/Breadcrumb.d.ts +0 -1
  19. package/dist/design-system/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  20. package/dist/design-system/Button/Button.d.ts +11 -13
  21. package/dist/design-system/Button/Button.d.ts.map +1 -1
  22. package/dist/design-system/Button/styles.d.ts +4 -1
  23. package/dist/design-system/Button/styles.d.ts.map +1 -1
  24. package/dist/design-system/Card/Card.d.ts +6 -3
  25. package/dist/design-system/Card/Card.d.ts.map +1 -1
  26. package/dist/design-system/Checkbox/Checkbox.d.ts +7 -5
  27. package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
  28. package/dist/design-system/ContextMenu/ContextMenu.d.ts +7 -5
  29. package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +1 -1
  30. package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
  31. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +38 -4
  32. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -1
  33. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventSuppressInteractionProvider.d.ts +14 -0
  34. package/dist/design-system/DesignSystemEventProvider/DesignSystemEventSuppressInteractionProvider.d.ts.map +1 -0
  35. package/dist/design-system/DesignSystemEventProvider/index.d.ts +1 -0
  36. package/dist/design-system/DesignSystemEventProvider/index.d.ts.map +1 -1
  37. package/dist/design-system/DesignSystemProvider/DesignSystemProvider.d.ts.map +1 -1
  38. package/dist/design-system/DialogCombobox/DialogCombobox.d.ts +12 -5
  39. package/dist/design-system/DialogCombobox/DialogCombobox.d.ts.map +1 -1
  40. package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -1
  41. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts +1 -1
  42. package/dist/design-system/DialogCombobox/DialogComboboxContent.d.ts.map +1 -1
  43. package/dist/design-system/DialogCombobox/DialogComboboxFooter.d.ts.map +1 -1
  44. package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts +0 -1
  45. package/dist/design-system/DialogCombobox/DialogComboboxOptionControlledList.d.ts.map +1 -1
  46. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts +0 -1
  47. package/dist/design-system/DialogCombobox/DialogComboboxOptionListCheckboxItem.d.ts.map +1 -1
  48. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +2 -2
  49. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
  50. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +0 -1
  51. package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
  52. package/dist/design-system/DialogCombobox/DialogComboboxSectionHeader.d.ts.map +1 -1
  53. package/dist/design-system/DialogCombobox/DialogComboboxSeparator.d.ts.map +1 -1
  54. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts +2 -0
  55. package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
  56. package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts +5 -3
  57. package/dist/design-system/DialogCombobox/providers/DialogComboboxContext.d.ts.map +1 -1
  58. package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts +0 -1
  59. package/dist/design-system/DialogCombobox/providers/DialogComboboxOptionListContext.d.ts.map +1 -1
  60. package/dist/design-system/DialogCombobox/shared.d.ts +3 -3
  61. package/dist/design-system/DialogCombobox/shared.d.ts.map +1 -1
  62. package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
  63. package/dist/design-system/Dropdown/Dropdown.d.ts +0 -1
  64. package/dist/design-system/Dropdown/Dropdown.d.ts.map +1 -1
  65. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +11 -6
  66. package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  67. package/dist/design-system/Empty/Empty.d.ts.map +1 -1
  68. package/dist/design-system/Form/Form.d.ts.map +1 -1
  69. package/dist/design-system/FormMessage/FormMessage.d.ts +2 -2
  70. package/dist/design-system/FormMessage/FormMessage.d.ts.map +1 -1
  71. package/dist/design-system/FormV2/RHFAdapters.d.ts +5 -5
  72. package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
  73. package/dist/design-system/FormV2/index.d.ts +1 -2
  74. package/dist/design-system/FormV2/index.d.ts.map +1 -1
  75. package/dist/design-system/Grid/Col.d.ts +0 -1
  76. package/dist/design-system/Grid/Col.d.ts.map +1 -1
  77. package/dist/design-system/Grid/Row.d.ts +0 -1
  78. package/dist/design-system/Grid/Row.d.ts.map +1 -1
  79. package/dist/design-system/Header/Header.d.ts.map +1 -1
  80. package/dist/design-system/Hint/Hint.d.ts.map +1 -1
  81. package/dist/design-system/Hooks/useThemedStyles.d.ts.map +1 -1
  82. package/dist/design-system/Icon/Icon.d.ts +1 -1
  83. package/dist/design-system/Icon/Icon.d.ts.map +1 -1
  84. package/dist/design-system/Icon/__generated/icons/AlignCenterIcon.d.ts +1 -1
  85. package/dist/design-system/Icon/__generated/icons/AlignLeftIcon.d.ts +1 -1
  86. package/dist/design-system/Icon/__generated/icons/AlignRightIcon.d.ts +1 -1
  87. package/dist/design-system/Icon/__generated/icons/AppIcon.d.ts +1 -1
  88. package/dist/design-system/Icon/__generated/icons/ArrowDownDotIcon.d.ts +5 -0
  89. package/dist/design-system/Icon/__generated/icons/ArrowDownDotIcon.d.ts.map +1 -0
  90. package/dist/design-system/Icon/__generated/icons/ArrowDownIcon.d.ts +1 -1
  91. package/dist/design-system/Icon/__generated/icons/ArrowInIcon.d.ts +1 -1
  92. package/dist/design-system/Icon/__generated/icons/ArrowLeftIcon.d.ts +1 -1
  93. package/dist/design-system/Icon/__generated/icons/ArrowOverIcon.d.ts +5 -0
  94. package/dist/design-system/Icon/__generated/icons/ArrowOverIcon.d.ts.map +1 -0
  95. package/dist/design-system/Icon/__generated/icons/ArrowRightIcon.d.ts +1 -1
  96. package/dist/design-system/Icon/__generated/icons/ArrowUpDotIcon.d.ts +5 -0
  97. package/dist/design-system/Icon/__generated/icons/ArrowUpDotIcon.d.ts.map +1 -0
  98. package/dist/design-system/Icon/__generated/icons/ArrowUpIcon.d.ts +1 -1
  99. package/dist/design-system/Icon/__generated/icons/ArrowsUpDownIcon.d.ts +1 -1
  100. package/dist/design-system/Icon/__generated/icons/AssistantIcon.d.ts +1 -1
  101. package/dist/design-system/Icon/__generated/icons/BadgeCodeIcon.d.ts +1 -1
  102. package/dist/design-system/Icon/__generated/icons/BadgeCodeOffIcon.d.ts +1 -1
  103. package/dist/design-system/Icon/__generated/icons/BarChartIcon.d.ts +1 -1
  104. package/dist/design-system/Icon/__generated/icons/BarGroupedIcon.d.ts +1 -1
  105. package/dist/design-system/Icon/__generated/icons/BarStackedIcon.d.ts +1 -1
  106. package/dist/design-system/Icon/__generated/icons/BarStackedPercentageIcon.d.ts +1 -1
  107. package/dist/design-system/Icon/__generated/icons/BeakerIcon.d.ts +1 -1
  108. package/dist/design-system/Icon/__generated/icons/BinaryIcon.d.ts +1 -1
  109. package/dist/design-system/Icon/__generated/icons/BlockQuoteIcon.d.ts +5 -0
  110. package/dist/design-system/Icon/__generated/icons/BlockQuoteIcon.d.ts.map +1 -0
  111. package/dist/design-system/Icon/__generated/icons/BoldIcon.d.ts +1 -1
  112. package/dist/design-system/Icon/__generated/icons/BookIcon.d.ts +1 -1
  113. package/dist/design-system/Icon/__generated/icons/BookmarkFillIcon.d.ts +1 -1
  114. package/dist/design-system/Icon/__generated/icons/BookmarkIcon.d.ts +1 -1
  115. package/dist/design-system/Icon/__generated/icons/BooksIcon.d.ts +1 -1
  116. package/dist/design-system/Icon/__generated/icons/BracketsCurlyIcon.d.ts +1 -1
  117. package/dist/design-system/Icon/__generated/icons/BracketsSquareIcon.d.ts +1 -1
  118. package/dist/design-system/Icon/__generated/icons/BracketsXIcon.d.ts +1 -1
  119. package/dist/design-system/Icon/__generated/icons/BranchIcon.d.ts +1 -1
  120. package/dist/design-system/Icon/__generated/icons/BriefcaseFillIcon.d.ts +1 -1
  121. package/dist/design-system/Icon/__generated/icons/BriefcaseIcon.d.ts +1 -1
  122. package/dist/design-system/Icon/__generated/icons/BugIcon.d.ts +5 -0
  123. package/dist/design-system/Icon/__generated/icons/BugIcon.d.ts.map +1 -0
  124. package/dist/design-system/Icon/__generated/icons/CalendarClockIcon.d.ts +1 -1
  125. package/dist/design-system/Icon/__generated/icons/CalendarEventIcon.d.ts +1 -1
  126. package/dist/design-system/Icon/__generated/icons/CalendarIcon.d.ts +1 -1
  127. package/dist/design-system/Icon/__generated/icons/CaretDownSquareIcon.d.ts +1 -1
  128. package/dist/design-system/Icon/__generated/icons/CaretUpSquareIcon.d.ts +1 -1
  129. package/dist/design-system/Icon/__generated/icons/CatalogCloudIcon.d.ts +1 -1
  130. package/dist/design-system/Icon/__generated/icons/{VectorTableIcon.d.ts → CatalogGearIcon.d.ts} +3 -3
  131. package/dist/design-system/Icon/__generated/icons/CatalogGearIcon.d.ts.map +1 -0
  132. package/dist/design-system/Icon/__generated/icons/{StepIntoIcon.d.ts → CatalogHIcon.d.ts} +3 -3
  133. package/dist/design-system/Icon/__generated/icons/CatalogHIcon.d.ts.map +1 -0
  134. package/dist/design-system/Icon/__generated/icons/CatalogIcon.d.ts +1 -1
  135. package/dist/design-system/Icon/__generated/icons/CatalogOffIcon.d.ts +1 -1
  136. package/dist/design-system/Icon/__generated/icons/CatalogSharedIcon.d.ts +5 -0
  137. package/dist/design-system/Icon/__generated/icons/CatalogSharedIcon.d.ts.map +1 -0
  138. package/dist/design-system/Icon/__generated/icons/ChainIcon.d.ts +5 -0
  139. package/dist/design-system/Icon/__generated/icons/ChainIcon.d.ts.map +1 -0
  140. package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts +1 -1
  141. package/dist/design-system/Icon/__generated/icons/ChartLineIcon.d.ts.map +1 -1
  142. package/dist/design-system/Icon/__generated/icons/CheckCircleBadgeIcon.d.ts +1 -1
  143. package/dist/design-system/Icon/__generated/icons/CheckCircleFillIcon.d.ts +1 -1
  144. package/dist/design-system/Icon/__generated/icons/CheckCircleIcon.d.ts +1 -1
  145. package/dist/design-system/Icon/__generated/icons/CheckIcon.d.ts +1 -1
  146. package/dist/design-system/Icon/__generated/icons/CheckLineIcon.d.ts +1 -1
  147. package/dist/design-system/Icon/__generated/icons/CheckSmallIcon.d.ts +5 -0
  148. package/dist/design-system/Icon/__generated/icons/CheckSmallIcon.d.ts.map +1 -0
  149. package/dist/design-system/Icon/__generated/icons/CheckboxIcon.d.ts +1 -1
  150. package/dist/design-system/Icon/__generated/icons/ChecklistIcon.d.ts +1 -1
  151. package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts +1 -1
  152. package/dist/design-system/Icon/__generated/icons/ChevronDoubleDownIcon.d.ts.map +1 -1
  153. package/dist/design-system/Icon/__generated/icons/ChevronDoubleLeftIcon.d.ts +1 -1
  154. package/dist/design-system/Icon/__generated/icons/ChevronDoubleRightIcon.d.ts +1 -1
  155. package/dist/design-system/Icon/__generated/icons/ChevronDoubleUpIcon.d.ts +1 -1
  156. package/dist/design-system/Icon/__generated/icons/ChevronDownIcon.d.ts +1 -1
  157. package/dist/design-system/Icon/__generated/icons/ChevronLeftIcon.d.ts +1 -1
  158. package/dist/design-system/Icon/__generated/icons/ChevronRightIcon.d.ts +1 -1
  159. package/dist/design-system/Icon/__generated/icons/ChevronUpIcon.d.ts +1 -1
  160. package/dist/design-system/Icon/__generated/icons/CircleIcon.d.ts +1 -1
  161. package/dist/design-system/Icon/__generated/icons/ClipboardIcon.d.ts +1 -1
  162. package/dist/design-system/Icon/__generated/icons/ClockIcon.d.ts +1 -1
  163. package/dist/design-system/Icon/__generated/icons/ClockKeyIcon.d.ts +1 -1
  164. package/dist/design-system/Icon/__generated/icons/CloseIcon.d.ts +1 -1
  165. package/dist/design-system/Icon/__generated/icons/CloseSmallIcon.d.ts +5 -0
  166. package/dist/design-system/Icon/__generated/icons/CloseSmallIcon.d.ts.map +1 -0
  167. package/dist/design-system/Icon/__generated/icons/CloudDatabaseIcon.d.ts +5 -0
  168. package/dist/design-system/Icon/__generated/icons/CloudDatabaseIcon.d.ts.map +1 -0
  169. package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts +1 -1
  170. package/dist/design-system/Icon/__generated/icons/CloudDownloadIcon.d.ts.map +1 -1
  171. package/dist/design-system/Icon/__generated/icons/CloudIcon.d.ts +1 -1
  172. package/dist/design-system/Icon/__generated/icons/CloudKeyIcon.d.ts +1 -1
  173. package/dist/design-system/Icon/__generated/icons/CloudModelIcon.d.ts +1 -1
  174. package/dist/design-system/Icon/__generated/icons/CloudOffIcon.d.ts +1 -1
  175. package/dist/design-system/Icon/__generated/icons/CloudUploadIcon.d.ts +1 -1
  176. package/dist/design-system/Icon/__generated/icons/CodeIcon.d.ts +1 -1
  177. package/dist/design-system/Icon/__generated/icons/ColorFillIcon.d.ts +1 -1
  178. package/dist/design-system/Icon/__generated/icons/ColumnIcon.d.ts +1 -1
  179. package/dist/design-system/Icon/__generated/icons/ColumnsIcon.d.ts +1 -1
  180. package/dist/design-system/Icon/__generated/icons/CommandPaletteIcon.d.ts +5 -0
  181. package/dist/design-system/Icon/__generated/icons/CommandPaletteIcon.d.ts.map +1 -0
  182. package/dist/design-system/Icon/__generated/icons/ConnectIcon.d.ts +1 -1
  183. package/dist/design-system/Icon/__generated/icons/CopyIcon.d.ts +1 -1
  184. package/dist/design-system/Icon/__generated/icons/CursorIcon.d.ts +1 -1
  185. package/dist/design-system/Icon/__generated/icons/CursorTypeIcon.d.ts +1 -1
  186. package/dist/design-system/Icon/__generated/icons/DIcon.d.ts +1 -1
  187. package/dist/design-system/Icon/__generated/icons/DagIcon.d.ts +1 -1
  188. package/dist/design-system/Icon/__generated/icons/DangerFillIcon.d.ts +1 -1
  189. package/dist/design-system/Icon/__generated/icons/DangerIcon.d.ts +1 -1
  190. package/dist/design-system/Icon/__generated/icons/DashIcon.d.ts +1 -1
  191. package/dist/design-system/Icon/__generated/icons/DashboardIcon.d.ts +1 -1
  192. package/dist/design-system/Icon/__generated/icons/DataIcon.d.ts +1 -1
  193. package/dist/design-system/Icon/__generated/icons/DatabaseIcon.d.ts +1 -1
  194. package/dist/design-system/Icon/__generated/icons/DecimalIcon.d.ts +1 -1
  195. package/dist/design-system/Icon/__generated/icons/DotsCircleIcon.d.ts +1 -1
  196. package/dist/design-system/Icon/__generated/icons/DownloadIcon.d.ts +1 -1
  197. package/dist/design-system/Icon/__generated/icons/DragIcon.d.ts +1 -1
  198. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts +1 -1
  199. package/dist/design-system/Icon/__generated/icons/ErdIcon.d.ts.map +1 -1
  200. package/dist/design-system/Icon/__generated/icons/ExpandLessIcon.d.ts +1 -1
  201. package/dist/design-system/Icon/__generated/icons/ExpandMoreIcon.d.ts +1 -1
  202. package/dist/design-system/Icon/__generated/icons/FaceFrownIcon.d.ts +1 -1
  203. package/dist/design-system/Icon/__generated/icons/FaceNeutralIcon.d.ts +1 -1
  204. package/dist/design-system/Icon/__generated/icons/FaceSmileIcon.d.ts +1 -1
  205. package/dist/design-system/Icon/__generated/icons/FileCodeIcon.d.ts +1 -1
  206. package/dist/design-system/Icon/__generated/icons/FileDocumentIcon.d.ts +1 -1
  207. package/dist/design-system/Icon/__generated/icons/FileIcon.d.ts +1 -1
  208. package/dist/design-system/Icon/__generated/icons/FileImageIcon.d.ts +1 -1
  209. package/dist/design-system/Icon/__generated/icons/FileModelIcon.d.ts +1 -1
  210. package/dist/design-system/Icon/__generated/icons/FilterIcon.d.ts +1 -1
  211. package/dist/design-system/Icon/__generated/icons/FlagPointerIcon.d.ts +5 -0
  212. package/dist/design-system/Icon/__generated/icons/FlagPointerIcon.d.ts.map +1 -0
  213. package/dist/design-system/Icon/__generated/icons/FloatIcon.d.ts +1 -1
  214. package/dist/design-system/Icon/__generated/icons/FolderBranchFillIcon.d.ts +5 -0
  215. package/dist/design-system/Icon/__generated/icons/FolderBranchFillIcon.d.ts.map +1 -0
  216. package/dist/design-system/Icon/__generated/icons/FolderBranchIcon.d.ts +1 -1
  217. package/dist/design-system/Icon/__generated/icons/FolderCloudFilledIcon.d.ts +1 -1
  218. package/dist/design-system/Icon/__generated/icons/FolderCloudIcon.d.ts +1 -1
  219. package/dist/design-system/Icon/__generated/icons/FolderFillIcon.d.ts +1 -1
  220. package/dist/design-system/Icon/__generated/icons/FolderIcon.d.ts +1 -1
  221. package/dist/design-system/Icon/__generated/icons/FontIcon.d.ts +1 -1
  222. package/dist/design-system/Icon/__generated/icons/ForkIcon.d.ts +1 -1
  223. package/dist/design-system/Icon/__generated/icons/FullscreenExitIcon.d.ts +1 -1
  224. package/dist/design-system/Icon/__generated/icons/FullscreenIcon.d.ts +1 -1
  225. package/dist/design-system/Icon/__generated/icons/FunctionIcon.d.ts +1 -1
  226. package/dist/design-system/Icon/__generated/icons/GearFillIcon.d.ts +1 -1
  227. package/dist/design-system/Icon/__generated/icons/GearIcon.d.ts +1 -1
  228. package/dist/design-system/Icon/__generated/icons/GiftIcon.d.ts +1 -1
  229. package/dist/design-system/Icon/__generated/icons/GitCommitIcon.d.ts +1 -1
  230. package/dist/design-system/Icon/__generated/icons/GlobeIcon.d.ts +1 -1
  231. package/dist/design-system/Icon/__generated/icons/GridDashIcon.d.ts +1 -1
  232. package/dist/design-system/Icon/__generated/icons/GridIcon.d.ts +1 -1
  233. package/dist/design-system/Icon/__generated/icons/H1Icon.d.ts +1 -1
  234. package/dist/design-system/Icon/__generated/icons/H2Icon.d.ts +1 -1
  235. package/dist/design-system/Icon/__generated/icons/H3Icon.d.ts +1 -1
  236. package/dist/design-system/Icon/__generated/icons/HistoryIcon.d.ts +1 -1
  237. package/dist/design-system/Icon/__generated/icons/HomeIcon.d.ts +1 -1
  238. package/dist/design-system/Icon/__generated/icons/ImageIcon.d.ts +1 -1
  239. package/dist/design-system/Icon/__generated/icons/IndentDecreaseIcon.d.ts +1 -1
  240. package/dist/design-system/Icon/__generated/icons/IndentIncreaseIcon.d.ts +1 -1
  241. package/dist/design-system/Icon/__generated/icons/InfinityIcon.d.ts +1 -1
  242. package/dist/design-system/Icon/__generated/icons/InfoBookIcon.d.ts +1 -1
  243. package/dist/design-system/Icon/__generated/icons/InfoFillIcon.d.ts +1 -1
  244. package/dist/design-system/Icon/__generated/icons/InfoIcon.d.ts +1 -1
  245. package/dist/design-system/Icon/__generated/icons/IngestionIcon.d.ts +1 -1
  246. package/dist/design-system/Icon/__generated/icons/ItalicIcon.d.ts +1 -1
  247. package/dist/design-system/Icon/__generated/icons/KeyIcon.d.ts +1 -1
  248. package/dist/design-system/Icon/__generated/icons/KeyboardIcon.d.ts +1 -1
  249. package/dist/design-system/Icon/__generated/icons/LayerGraphIcon.d.ts +1 -1
  250. package/dist/design-system/Icon/__generated/icons/LayerIcon.d.ts +1 -1
  251. package/dist/design-system/Icon/__generated/icons/LeafIcon.d.ts +5 -0
  252. package/dist/design-system/Icon/__generated/icons/LeafIcon.d.ts.map +1 -0
  253. package/dist/design-system/Icon/__generated/icons/LettersIcon.d.ts +1 -1
  254. package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts +1 -1
  255. package/dist/design-system/Icon/__generated/icons/LibrariesIcon.d.ts.map +1 -1
  256. package/dist/design-system/Icon/__generated/icons/LightningIcon.d.ts +1 -1
  257. package/dist/design-system/Icon/__generated/icons/LinkIcon.d.ts +1 -1
  258. package/dist/design-system/Icon/__generated/icons/LinkOffIcon.d.ts +1 -1
  259. package/dist/design-system/Icon/__generated/icons/ListBorderIcon.d.ts +1 -1
  260. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts +1 -1
  261. package/dist/design-system/Icon/__generated/icons/ListClearIcon.d.ts.map +1 -1
  262. package/dist/design-system/Icon/__generated/icons/ListIcon.d.ts +1 -1
  263. package/dist/design-system/Icon/__generated/icons/LoadingIcon.d.ts +1 -1
  264. package/dist/design-system/Icon/__generated/icons/LockFillIcon.d.ts +1 -1
  265. package/dist/design-system/Icon/__generated/icons/LockIcon.d.ts +1 -1
  266. package/dist/design-system/Icon/__generated/icons/LockUnlockedIcon.d.ts +1 -1
  267. package/dist/design-system/Icon/__generated/icons/MIcon.d.ts +1 -1
  268. package/dist/design-system/Icon/__generated/icons/MailIcon.d.ts +1 -1
  269. package/dist/design-system/Icon/__generated/icons/MegaphoneIcon.d.ts +1 -1
  270. package/dist/design-system/Icon/__generated/icons/MenuIcon.d.ts +1 -1
  271. package/dist/design-system/Icon/__generated/icons/MinusBoxIcon.d.ts +1 -1
  272. package/dist/design-system/Icon/__generated/icons/MinusCircleFillIcon.d.ts +1 -1
  273. package/dist/design-system/Icon/__generated/icons/MinusCircleIcon.d.ts +1 -1
  274. package/dist/design-system/Icon/__generated/icons/ModelsIcon.d.ts +1 -1
  275. package/dist/design-system/Icon/__generated/icons/NewWindowIcon.d.ts +1 -1
  276. package/dist/design-system/Icon/__generated/icons/NoIcon.d.ts +1 -1
  277. package/dist/design-system/Icon/__generated/icons/NotebookIcon.d.ts +1 -1
  278. package/dist/design-system/Icon/__generated/icons/NotificationIcon.d.ts +1 -1
  279. package/dist/design-system/Icon/__generated/icons/NotificationOffIcon.d.ts +1 -1
  280. package/dist/design-system/Icon/__generated/icons/NumbersIcon.d.ts +1 -1
  281. package/dist/design-system/Icon/__generated/icons/OfficeIcon.d.ts +1 -1
  282. package/dist/design-system/Icon/__generated/icons/OverflowIcon.d.ts +1 -1
  283. package/dist/design-system/Icon/__generated/icons/PageBottomIcon.d.ts +1 -1
  284. package/dist/design-system/Icon/__generated/icons/PageFirstIcon.d.ts +1 -1
  285. package/dist/design-system/Icon/__generated/icons/PageLastIcon.d.ts +1 -1
  286. package/dist/design-system/Icon/__generated/icons/PageTopIcon.d.ts +1 -1
  287. package/dist/design-system/Icon/__generated/icons/PauseIcon.d.ts +1 -1
  288. package/dist/design-system/Icon/__generated/icons/PencilIcon.d.ts +1 -1
  289. package/dist/design-system/Icon/__generated/icons/{StepOverIcon.d.ts → PieChartIcon.d.ts} +3 -3
  290. package/dist/design-system/Icon/__generated/icons/PieChartIcon.d.ts.map +1 -0
  291. package/dist/design-system/Icon/__generated/icons/PinCancelIcon.d.ts +1 -1
  292. package/dist/design-system/Icon/__generated/icons/PinFillIcon.d.ts +1 -1
  293. package/dist/design-system/Icon/__generated/icons/PinIcon.d.ts +1 -1
  294. package/dist/design-system/Icon/__generated/icons/PipelineIcon.d.ts +1 -1
  295. package/dist/design-system/Icon/__generated/icons/PlayCircleFillIcon.d.ts +1 -1
  296. package/dist/design-system/Icon/__generated/icons/PlayCircleIcon.d.ts +1 -1
  297. package/dist/design-system/Icon/__generated/icons/PlayIcon.d.ts +1 -1
  298. package/dist/design-system/Icon/__generated/icons/PlugIcon.d.ts +1 -1
  299. package/dist/design-system/Icon/__generated/icons/PlusCircleFillIcon.d.ts +1 -1
  300. package/dist/design-system/Icon/__generated/icons/PlusCircleIcon.d.ts +1 -1
  301. package/dist/design-system/Icon/__generated/icons/PlusIcon.d.ts +1 -1
  302. package/dist/design-system/Icon/__generated/icons/PlusSquareIcon.d.ts +1 -1
  303. package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts +1 -1
  304. package/dist/design-system/Icon/__generated/icons/QueryEditorIcon.d.ts.map +1 -1
  305. package/dist/design-system/Icon/__generated/icons/QueryIcon.d.ts +1 -1
  306. package/dist/design-system/Icon/__generated/icons/QuestionMarkFillIcon.d.ts +1 -1
  307. package/dist/design-system/Icon/__generated/icons/QuestionMarkIcon.d.ts +1 -1
  308. package/dist/design-system/Icon/__generated/icons/ReaderModeIcon.d.ts +1 -1
  309. package/dist/design-system/Icon/__generated/icons/RedoIcon.d.ts +1 -1
  310. package/dist/design-system/Icon/__generated/icons/RefreshIcon.d.ts +1 -1
  311. package/dist/design-system/Icon/__generated/icons/ReplyIcon.d.ts +5 -0
  312. package/dist/design-system/Icon/__generated/icons/ReplyIcon.d.ts.map +1 -0
  313. package/dist/design-system/Icon/__generated/icons/Robot2Icon.d.ts +5 -0
  314. package/dist/design-system/Icon/__generated/icons/Robot2Icon.d.ts.map +1 -0
  315. package/dist/design-system/Icon/__generated/icons/RobotIcon.d.ts +1 -1
  316. package/dist/design-system/Icon/__generated/icons/RunningIcon.d.ts +1 -1
  317. package/dist/design-system/Icon/__generated/icons/SaveIcon.d.ts +1 -1
  318. package/dist/design-system/Icon/__generated/icons/SchemaIcon.d.ts +1 -1
  319. package/dist/design-system/Icon/__generated/icons/SchoolIcon.d.ts +1 -1
  320. package/dist/design-system/Icon/__generated/icons/SearchDataIcon.d.ts +5 -0
  321. package/dist/design-system/Icon/__generated/icons/SearchDataIcon.d.ts.map +1 -0
  322. package/dist/design-system/Icon/__generated/icons/SearchIcon.d.ts +1 -1
  323. package/dist/design-system/Icon/__generated/icons/SecurityIcon.d.ts +1 -1
  324. package/dist/design-system/Icon/__generated/icons/SendIcon.d.ts +1 -1
  325. package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts +1 -1
  326. package/dist/design-system/Icon/__generated/icons/ShareIcon.d.ts.map +1 -1
  327. package/dist/design-system/Icon/__generated/icons/ShieldIcon.d.ts +5 -0
  328. package/dist/design-system/Icon/__generated/icons/ShieldIcon.d.ts.map +1 -0
  329. package/dist/design-system/Icon/__generated/icons/ShortcutIcon.d.ts +5 -0
  330. package/dist/design-system/Icon/__generated/icons/ShortcutIcon.d.ts.map +1 -0
  331. package/dist/design-system/Icon/__generated/icons/SidebarAutoIcon.d.ts +1 -1
  332. package/dist/design-system/Icon/__generated/icons/SidebarCollapseIcon.d.ts +1 -1
  333. package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts +1 -1
  334. package/dist/design-system/Icon/__generated/icons/SidebarExpandIcon.d.ts.map +1 -1
  335. package/dist/design-system/Icon/__generated/icons/SidebarIcon.d.ts +1 -1
  336. package/dist/design-system/Icon/__generated/icons/SlidersIcon.d.ts +1 -1
  337. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalAscendingIcon.d.ts +1 -1
  338. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalDescendingIcon.d.ts +1 -1
  339. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalLeftIcon.d.ts +1 -1
  340. package/dist/design-system/Icon/__generated/icons/SortAlphabeticalRightIcon.d.ts +1 -1
  341. package/dist/design-system/Icon/__generated/icons/SortAscendingIcon.d.ts +1 -1
  342. package/dist/design-system/Icon/__generated/icons/SortDescendingIcon.d.ts +1 -1
  343. package/dist/design-system/Icon/__generated/icons/SortUnsortedIcon.d.ts +1 -1
  344. package/dist/design-system/Icon/__generated/icons/SparkleDoubleFillIcon.d.ts +5 -0
  345. package/dist/design-system/Icon/__generated/icons/SparkleDoubleFillIcon.d.ts.map +1 -0
  346. package/dist/design-system/Icon/__generated/icons/SparkleDoubleIcon.d.ts +5 -0
  347. package/dist/design-system/Icon/__generated/icons/SparkleDoubleIcon.d.ts.map +1 -0
  348. package/dist/design-system/Icon/__generated/icons/SparkleFillIcon.d.ts +5 -0
  349. package/dist/design-system/Icon/__generated/icons/SparkleFillIcon.d.ts.map +1 -0
  350. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts +1 -1
  351. package/dist/design-system/Icon/__generated/icons/SparkleIcon.d.ts.map +1 -1
  352. package/dist/design-system/Icon/__generated/icons/SparkleRectangleIcon.d.ts +5 -0
  353. package/dist/design-system/Icon/__generated/icons/SparkleRectangleIcon.d.ts.map +1 -0
  354. package/dist/design-system/Icon/__generated/icons/SpeechBubbleIcon.d.ts +1 -1
  355. package/dist/design-system/Icon/__generated/icons/SpeechBubblePlusIcon.d.ts +1 -1
  356. package/dist/design-system/Icon/__generated/icons/SpeechBubbleQuestionMarkIcon.d.ts +1 -1
  357. package/dist/design-system/Icon/__generated/icons/SpeechBubbleStarIcon.d.ts +1 -1
  358. package/dist/design-system/Icon/__generated/icons/StarFillIcon.d.ts +1 -1
  359. package/dist/design-system/Icon/__generated/icons/StarIcon.d.ts +1 -1
  360. package/dist/design-system/Icon/__generated/icons/StopCircleFillIcon.d.ts +1 -1
  361. package/dist/design-system/Icon/__generated/icons/StopCircleIcon.d.ts +1 -1
  362. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts +1 -1
  363. package/dist/design-system/Icon/__generated/icons/StopIcon.d.ts.map +1 -1
  364. package/dist/design-system/Icon/__generated/icons/StorefrontIcon.d.ts +1 -1
  365. package/dist/design-system/Icon/__generated/icons/StreamIcon.d.ts +1 -1
  366. package/dist/design-system/Icon/__generated/icons/SyncIcon.d.ts +1 -1
  367. package/dist/design-system/Icon/__generated/icons/TableGlassesIcon.d.ts +1 -1
  368. package/dist/design-system/Icon/__generated/icons/TableGlobeIcon.d.ts +5 -0
  369. package/dist/design-system/Icon/__generated/icons/TableGlobeIcon.d.ts.map +1 -0
  370. package/dist/design-system/Icon/__generated/icons/TableIcon.d.ts +1 -1
  371. package/dist/design-system/Icon/__generated/icons/TableLightningIcon.d.ts +1 -1
  372. package/dist/design-system/Icon/__generated/icons/TableModelIcon.d.ts +5 -0
  373. package/dist/design-system/Icon/__generated/icons/TableModelIcon.d.ts.map +1 -0
  374. package/dist/design-system/Icon/__generated/icons/TableOnlineViewIcon.d.ts +1 -1
  375. package/dist/design-system/Icon/__generated/icons/TableStreamIcon.d.ts +1 -1
  376. package/dist/design-system/Icon/__generated/icons/TableVectorIcon.d.ts +1 -1
  377. package/dist/design-system/Icon/__generated/icons/TableViewIcon.d.ts +1 -1
  378. package/dist/design-system/Icon/__generated/icons/TagIcon.d.ts +1 -1
  379. package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts +1 -1
  380. package/dist/design-system/Icon/__generated/icons/TargetIcon.d.ts.map +1 -1
  381. package/dist/design-system/Icon/__generated/icons/TerminalIcon.d.ts +5 -0
  382. package/dist/design-system/Icon/__generated/icons/TerminalIcon.d.ts.map +1 -0
  383. package/dist/design-system/Icon/__generated/icons/TextBoxIcon.d.ts +1 -1
  384. package/dist/design-system/Icon/__generated/icons/TextUnderlineIcon.d.ts +5 -0
  385. package/dist/design-system/Icon/__generated/icons/TextUnderlineIcon.d.ts.map +1 -0
  386. package/dist/design-system/Icon/__generated/icons/ThumbsDownIcon.d.ts +1 -1
  387. package/dist/design-system/Icon/__generated/icons/ThumbsUpIcon.d.ts +1 -1
  388. package/dist/design-system/Icon/__generated/icons/TrashIcon.d.ts +1 -1
  389. package/dist/design-system/Icon/__generated/icons/TreeIcon.d.ts +1 -1
  390. package/dist/design-system/Icon/__generated/icons/UnderlineIcon.d.ts +1 -1
  391. package/dist/design-system/Icon/__generated/icons/UndoIcon.d.ts +1 -1
  392. package/dist/design-system/Icon/__generated/icons/UploadIcon.d.ts +1 -1
  393. package/dist/design-system/Icon/__generated/icons/UsbIcon.d.ts +1 -1
  394. package/dist/design-system/Icon/__generated/icons/UserBadgeIcon.d.ts +1 -1
  395. package/dist/design-system/Icon/__generated/icons/UserCircleIcon.d.ts +1 -1
  396. package/dist/design-system/Icon/__generated/icons/UserGroupIcon.d.ts +1 -1
  397. package/dist/design-system/Icon/__generated/icons/UserIcon.d.ts +1 -1
  398. package/dist/design-system/Icon/__generated/icons/VisibleIcon.d.ts +1 -1
  399. package/dist/design-system/Icon/__generated/icons/VisibleOffIcon.d.ts +1 -1
  400. package/dist/design-system/Icon/__generated/icons/WarningFillIcon.d.ts +1 -1
  401. package/dist/design-system/Icon/__generated/icons/WarningIcon.d.ts +1 -1
  402. package/dist/design-system/Icon/__generated/icons/WorkflowsIcon.d.ts +1 -1
  403. package/dist/design-system/Icon/__generated/icons/WorkspacesIcon.d.ts +1 -1
  404. package/dist/design-system/Icon/__generated/icons/WrenchIcon.d.ts +5 -0
  405. package/dist/design-system/Icon/__generated/icons/WrenchIcon.d.ts.map +1 -0
  406. package/dist/design-system/Icon/__generated/icons/XCircleFillIcon.d.ts +1 -1
  407. package/dist/design-system/Icon/__generated/icons/XCircleIcon.d.ts +1 -1
  408. package/dist/design-system/Icon/__generated/icons/ZoomInIcon.d.ts +1 -1
  409. package/dist/design-system/Icon/__generated/icons/ZoomMarqueeSelection.d.ts +1 -1
  410. package/dist/design-system/Icon/__generated/icons/ZoomOutIcon.d.ts +1 -1
  411. package/dist/design-system/Icon/__generated/icons/index.d.ts +31 -5
  412. package/dist/design-system/Icon/__generated/icons/index.d.ts.map +1 -1
  413. package/dist/design-system/Icon/iconMap.d.ts +2 -2
  414. package/dist/design-system/Icon/iconMap.d.ts.map +1 -1
  415. package/dist/design-system/Icon/index.d.ts +1 -1
  416. package/dist/design-system/Icon/index.d.ts.map +1 -1
  417. package/dist/design-system/Input/Group.d.ts.map +1 -1
  418. package/dist/design-system/Input/Input.d.ts +2 -2
  419. package/dist/design-system/Input/Input.d.ts.map +1 -1
  420. package/dist/design-system/Input/Password.d.ts.map +1 -1
  421. package/dist/design-system/Input/TextArea.d.ts +0 -1
  422. package/dist/design-system/Input/TextArea.d.ts.map +1 -1
  423. package/dist/design-system/Input/common.d.ts +1 -1
  424. package/dist/design-system/Input/common.d.ts.map +1 -1
  425. package/dist/design-system/Input/index.d.ts +1 -2
  426. package/dist/design-system/Input/index.d.ts.map +1 -1
  427. package/dist/design-system/Label/Label.d.ts +7 -1
  428. package/dist/design-system/Label/Label.d.ts.map +1 -1
  429. package/dist/design-system/Layout/Layout.d.ts.map +1 -1
  430. package/dist/design-system/LegacyNotification/LegacyNotification.d.ts +1 -2
  431. package/dist/design-system/LegacyNotification/LegacyNotification.d.ts.map +1 -1
  432. package/dist/design-system/LegacyPopover/LegacyPopover.d.ts +0 -1
  433. package/dist/design-system/LegacyPopover/LegacyPopover.d.ts.map +1 -1
  434. package/dist/design-system/LegacySelect/LegacySelect.d.ts +2 -2
  435. package/dist/design-system/LegacySelect/LegacySelect.d.ts.map +1 -1
  436. package/dist/design-system/LegacySkeleton/LegacySkeleton.d.ts +0 -1
  437. package/dist/design-system/LegacySkeleton/LegacySkeleton.d.ts.map +1 -1
  438. package/dist/design-system/LegacyTable/LegacyTable.d.ts +0 -1
  439. package/dist/design-system/LegacyTable/LegacyTable.d.ts.map +1 -1
  440. package/dist/design-system/LegacyTooltip/LegacyInfoTooltip.d.ts +17 -0
  441. package/dist/design-system/LegacyTooltip/LegacyInfoTooltip.d.ts.map +1 -0
  442. package/dist/design-system/LegacyTooltip/LegacyTooltip.d.ts +48 -0
  443. package/dist/design-system/LegacyTooltip/LegacyTooltip.d.ts.map +1 -0
  444. package/dist/design-system/LegacyTooltip/index.d.ts +3 -0
  445. package/dist/design-system/LegacyTooltip/index.d.ts.map +1 -0
  446. package/dist/design-system/List/List.d.ts.map +1 -1
  447. package/dist/design-system/LoadingState/LoadingState.d.ts +0 -1
  448. package/dist/design-system/LoadingState/LoadingState.d.ts.map +1 -1
  449. package/dist/design-system/Menu/Menu.d.ts +0 -1
  450. package/dist/design-system/Menu/Menu.d.ts.map +1 -1
  451. package/dist/design-system/Modal/Modal.d.ts +8 -5
  452. package/dist/design-system/Modal/Modal.d.ts.map +1 -1
  453. package/dist/design-system/Notification/Notification.d.ts +4 -2
  454. package/dist/design-system/Notification/Notification.d.ts.map +1 -1
  455. package/dist/design-system/Overflow/Overflow.d.ts +0 -1
  456. package/dist/design-system/Overflow/Overflow.d.ts.map +1 -1
  457. package/dist/design-system/Overflow/OverflowPopover.d.ts +9 -0
  458. package/dist/design-system/Overflow/OverflowPopover.d.ts.map +1 -0
  459. package/dist/design-system/PageWrapper/PageWrapper.d.ts +0 -1
  460. package/dist/design-system/PageWrapper/PageWrapper.d.ts.map +1 -1
  461. package/dist/design-system/Pagination/index.d.ts +4 -4
  462. package/dist/design-system/Pagination/index.d.ts.map +1 -1
  463. package/dist/design-system/Popover/InfoPopover.d.ts +0 -1
  464. package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -1
  465. package/dist/design-system/Popover/Popover.d.ts +1 -1
  466. package/dist/design-system/Popover/Popover.d.ts.map +1 -1
  467. package/dist/design-system/Radio/Radio.d.ts +4 -5
  468. package/dist/design-system/Radio/Radio.d.ts.map +1 -1
  469. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts +3 -3
  470. package/dist/design-system/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  471. package/dist/design-system/Select/Select.d.ts +3 -2
  472. package/dist/design-system/Select/Select.d.ts.map +1 -1
  473. package/dist/design-system/Select/SelectContent.d.ts +0 -1
  474. package/dist/design-system/Select/SelectContent.d.ts.map +1 -1
  475. package/dist/design-system/Select/SelectOption.d.ts +0 -1
  476. package/dist/design-system/Select/SelectOption.d.ts.map +1 -1
  477. package/dist/design-system/Select/SelectOptionGroup.d.ts +0 -1
  478. package/dist/design-system/Select/SelectOptionGroup.d.ts.map +1 -1
  479. package/dist/design-system/Select/SelectTrigger.d.ts +0 -1
  480. package/dist/design-system/Select/SelectTrigger.d.ts.map +1 -1
  481. package/dist/design-system/Select/SimpleSelect.d.ts +9 -6
  482. package/dist/design-system/Select/SimpleSelect.d.ts.map +1 -1
  483. package/dist/design-system/Select/providers/SelectContext.d.ts +0 -1
  484. package/dist/design-system/Select/providers/SelectContext.d.ts.map +1 -1
  485. package/dist/design-system/Sidebar/Sidebar.d.ts +2 -2
  486. package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
  487. package/dist/design-system/Skeleton/GenericSkeleton.d.ts.map +1 -1
  488. package/dist/design-system/Skeleton/ParagraphSkeleton.d.ts.map +1 -1
  489. package/dist/design-system/Skeleton/TableSkeleton.d.ts.map +1 -1
  490. package/dist/design-system/Skeleton/TitleSkeleton.d.ts.map +1 -1
  491. package/dist/design-system/Space/Space.d.ts +0 -1
  492. package/dist/design-system/Space/Space.d.ts.map +1 -1
  493. package/dist/design-system/Spacer/Spacer.d.ts +0 -1
  494. package/dist/design-system/Spacer/Spacer.d.ts.map +1 -1
  495. package/dist/design-system/Spinner/Spinner.d.ts +0 -1
  496. package/dist/design-system/Spinner/Spinner.d.ts.map +1 -1
  497. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts +3 -1
  498. package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
  499. package/dist/design-system/SplitButton/SplitButton.d.ts +0 -1
  500. package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
  501. package/dist/design-system/Steps/Steps.d.ts.map +1 -1
  502. package/dist/design-system/Switch/Switch.d.ts +3 -3
  503. package/dist/design-system/Switch/Switch.d.ts.map +1 -1
  504. package/dist/design-system/TableUI/Table.d.ts +3 -3
  505. package/dist/design-system/TableUI/Table.d.ts.map +1 -1
  506. package/dist/design-system/TableUI/TableFilterInput.d.ts +0 -1
  507. package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
  508. package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +1 -1
  509. package/dist/design-system/TableUI/TableRow.d.ts.map +1 -1
  510. package/dist/design-system/TableUI/TableRowActionHeader.d.ts.map +1 -1
  511. package/dist/design-system/TableUI/TableRowSelectCell.d.ts +0 -1
  512. package/dist/design-system/TableUI/TableRowSelectCell.d.ts.map +1 -1
  513. package/dist/design-system/Tabs/index.d.ts +0 -1
  514. package/dist/design-system/Tabs/index.d.ts.map +1 -1
  515. package/dist/design-system/Tag/index.d.ts +4 -3
  516. package/dist/design-system/Tag/index.d.ts.map +1 -1
  517. package/dist/design-system/ToggleButton/ToggleButton.d.ts +10 -1
  518. package/dist/design-system/ToggleButton/ToggleButton.d.ts.map +1 -1
  519. package/dist/design-system/Tooltip/InfoTooltip.d.ts +3 -7
  520. package/dist/design-system/Tooltip/InfoTooltip.d.ts.map +1 -1
  521. package/dist/design-system/Tooltip/Tooltip.d.ts +6 -30
  522. package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
  523. package/dist/design-system/Tree/Tree.d.ts +0 -1
  524. package/dist/design-system/Tree/Tree.d.ts.map +1 -1
  525. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts +0 -1
  526. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxCheckboxItem.d.ts.map +1 -1
  527. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts +0 -1
  528. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxControls.d.ts.map +1 -1
  529. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts +0 -1
  530. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxFooter.d.ts.map +1 -1
  531. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts +3 -3
  532. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxInput.d.ts.map +1 -1
  533. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenu.d.ts.map +1 -1
  534. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts +0 -1
  535. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMenuItem.d.ts.map +1 -1
  536. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts +1 -2
  537. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxMultiSelectInput.d.ts.map +1 -1
  538. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts +3 -1
  539. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxRoot.d.ts.map +1 -1
  540. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSectionHeader.d.ts.map +1 -1
  541. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts +0 -1
  542. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSelectedItem.d.ts.map +1 -1
  543. package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxSeparator.d.ts.map +1 -1
  544. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +0 -1
  545. package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
  546. package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts +3 -2
  547. package/dist/design-system/TypeaheadCombobox/providers/TypeaheadComboboxContext.d.ts.map +1 -1
  548. package/dist/design-system/Typography/Hint.d.ts.map +1 -1
  549. package/dist/design-system/Typography/Link.d.ts +4 -3
  550. package/dist/design-system/Typography/Link.d.ts.map +1 -1
  551. package/dist/design-system/Typography/Paragraph.d.ts.map +1 -1
  552. package/dist/design-system/Typography/Text.d.ts.map +1 -1
  553. package/dist/design-system/Typography/Title.d.ts.map +1 -1
  554. package/dist/design-system/Typography/Truncate.d.ts +7 -0
  555. package/dist/design-system/Typography/Truncate.d.ts.map +1 -0
  556. package/dist/design-system/Typography/Typography.d.ts +2 -1
  557. package/dist/design-system/Typography/Typography.d.ts.map +1 -1
  558. package/dist/design-system/Typography/index.d.ts +1 -0
  559. package/dist/design-system/Typography/index.d.ts.map +1 -1
  560. package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts +0 -1
  561. package/dist/design-system/_shared_/Combobox/EmptyResults.d.ts.map +1 -1
  562. package/dist/design-system/_shared_/Combobox/SectionHeader.d.ts.map +1 -1
  563. package/dist/design-system/_shared_/Combobox/Separator.d.ts.map +1 -1
  564. package/dist/design-system/_shared_/Combobox/styles.d.ts +7 -7
  565. package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
  566. package/dist/design-system/_shared_/Menu/index.d.ts +0 -1
  567. package/dist/design-system/_shared_/Menu/index.d.ts.map +1 -1
  568. package/dist/design-system/index.d.ts +1 -1
  569. package/dist/design-system/index.d.ts.map +1 -1
  570. package/dist/design-system/types.d.ts +34 -2
  571. package/dist/design-system/types.d.ts.map +1 -1
  572. package/dist/design-system/utils/css-utils.d.ts +0 -1
  573. package/dist/design-system/utils/css-utils.d.ts.map +1 -1
  574. package/dist/design-system/utils/debug.d.ts +1 -0
  575. package/dist/design-system/utils/debug.d.ts.map +1 -1
  576. package/dist/design-system/utils/useCallbackOnceUntilReset.d.ts.map +1 -1
  577. package/dist/design-system/utils/useNotifyOnFirstView.d.ts +0 -1
  578. package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +1 -1
  579. package/dist/development/Banner/Banner.d.ts.map +1 -1
  580. package/dist/development/DatePicker/DatePicker.d.ts +60 -0
  581. package/dist/development/DatePicker/DatePicker.d.ts.map +1 -0
  582. package/dist/development/DatePicker/index.d.ts +2 -0
  583. package/dist/development/DatePicker/index.d.ts.map +1 -0
  584. package/dist/development/DatePicker/styles.d.ts +3 -0
  585. package/dist/development/DatePicker/styles.d.ts.map +1 -0
  586. package/dist/development/DatePicker/utils.d.ts +44 -0
  587. package/dist/development/DatePicker/utils.d.ts.map +1 -0
  588. package/dist/development/PillControl/PillControl.d.ts +3 -1
  589. package/dist/development/PillControl/PillControl.d.ts.map +1 -1
  590. package/dist/development/PreviewCard/PreviewCard.d.ts +3 -1
  591. package/dist/development/PreviewCard/PreviewCard.d.ts.map +1 -1
  592. package/dist/development/Progress/providers/ProgressContex.d.ts +0 -1
  593. package/dist/development/Progress/providers/ProgressContex.d.ts.map +1 -1
  594. package/dist/development/Slider/Slider.d.ts +0 -1
  595. package/dist/development/Slider/Slider.d.ts.map +1 -1
  596. package/dist/development/Stepper/Stepper.d.ts +21 -3
  597. package/dist/development/Stepper/Stepper.d.ts.map +1 -1
  598. package/dist/development/TabsV2/TabsV2.d.ts +27 -0
  599. package/dist/development/TabsV2/TabsV2.d.ts.map +1 -0
  600. package/dist/development/TabsV2/index.d.ts +2 -0
  601. package/dist/development/TabsV2/index.d.ts.map +1 -0
  602. package/dist/development/Toolbar/Toolbar.d.ts +0 -1
  603. package/dist/development/Toolbar/Toolbar.d.ts.map +1 -1
  604. package/dist/development/index.d.ts +6 -4
  605. package/dist/development/index.d.ts.map +1 -1
  606. package/dist/development.js +1267 -800
  607. package/dist/development.js.map +1 -1
  608. package/dist/flags.d.ts +0 -1
  609. package/dist/flags.d.ts.map +1 -1
  610. package/dist/index-b1437d2d.js +507 -0
  611. package/dist/index-b1437d2d.js.map +1 -0
  612. package/dist/index-dark.css +23 -1
  613. package/dist/index.css +20 -1
  614. package/dist/index.js +3454 -2541
  615. package/dist/index.js.map +1 -1
  616. package/dist/patterns.js +508 -0
  617. package/dist/patterns.js.map +1 -0
  618. package/dist/test-utils/enzyme/index.d.ts.map +1 -1
  619. package/dist/test-utils/enzyme/utils.d.ts +0 -1
  620. package/dist/test-utils/enzyme/utils.d.ts.map +1 -1
  621. package/dist/test-utils/enzyme.js.map +1 -1
  622. package/dist/test-utils/rtl/index.d.ts +2 -0
  623. package/dist/test-utils/rtl/index.d.ts.map +1 -1
  624. package/dist/test-utils/rtl/select.d.ts +28 -0
  625. package/dist/test-utils/rtl/select.d.ts.map +1 -0
  626. package/dist/test-utils/rtl/simpleSelect.utils.d.ts +20 -0
  627. package/dist/test-utils/rtl/simpleSelect.utils.d.ts.map +1 -0
  628. package/dist/test-utils/rtl.js +152 -2
  629. package/dist/test-utils/rtl.js.map +1 -1
  630. package/dist/theme/borders.d.ts +2 -0
  631. package/dist/theme/borders.d.ts.map +1 -1
  632. package/dist/theme/colors.d.ts +8 -4
  633. package/dist/theme/colors.d.ts.map +1 -1
  634. package/dist/theme/gradients.d.ts +6 -0
  635. package/dist/theme/gradients.d.ts.map +1 -0
  636. package/dist/theme/index.d.ts +2 -0
  637. package/dist/theme/index.d.ts.map +1 -1
  638. package/dist/useMediaQuery-fddfe3fd.js +499 -0
  639. package/dist/useMediaQuery-fddfe3fd.js.map +1 -0
  640. package/dist/~patterns/Wizard/HorizontalWizardContent.d.ts +5 -0
  641. package/dist/~patterns/Wizard/HorizontalWizardContent.d.ts.map +1 -0
  642. package/dist/~patterns/Wizard/HorizontalWizardStepsContent.d.ts +11 -0
  643. package/dist/~patterns/Wizard/HorizontalWizardStepsContent.d.ts.map +1 -0
  644. package/dist/~patterns/Wizard/VerticalWizardContent.d.ts +5 -0
  645. package/dist/~patterns/Wizard/VerticalWizardContent.d.ts.map +1 -0
  646. package/dist/~patterns/Wizard/Wizard.d.ts +4 -0
  647. package/dist/~patterns/Wizard/Wizard.d.ts.map +1 -0
  648. package/dist/{design-system → ~patterns}/Wizard/WizardFooter.d.ts +4 -4
  649. package/dist/~patterns/Wizard/WizardFooter.d.ts.map +1 -0
  650. package/dist/~patterns/Wizard/WizardModal.d.ts +7 -0
  651. package/dist/~patterns/Wizard/WizardModal.d.ts.map +1 -0
  652. package/dist/{design-system/Wizard/Wizard.d.ts → ~patterns/Wizard/WizardProps.d.ts} +38 -12
  653. package/dist/~patterns/Wizard/WizardProps.d.ts.map +1 -0
  654. package/dist/{design-system → ~patterns}/Wizard/WizardStep.d.ts +25 -1
  655. package/dist/~patterns/Wizard/WizardStep.d.ts.map +1 -0
  656. package/dist/~patterns/Wizard/index.d.ts +6 -0
  657. package/dist/~patterns/Wizard/index.d.ts.map +1 -0
  658. package/dist/~patterns/Wizard/useStepperStepsFromWizardSteps.d.ts +9 -0
  659. package/dist/~patterns/Wizard/useStepperStepsFromWizardSteps.d.ts.map +1 -0
  660. package/dist/{design-system → ~patterns}/Wizard/useWizardCurrentStep.d.ts +3 -3
  661. package/dist/~patterns/Wizard/useWizardCurrentStep.d.ts.map +1 -0
  662. package/dist/~patterns/index.d.ts +4 -0
  663. package/dist/~patterns/index.d.ts.map +1 -0
  664. package/package.json +22 -11
  665. package/patterns.d.ts +1 -0
  666. package/patterns.mjs +1 -0
  667. package/dist/Stepper-ff25c5d1.js.map +0 -1
  668. package/dist/design-system/Avatar/SvgSparkleIcon.d.ts +0 -3
  669. package/dist/design-system/Avatar/SvgSparkleIcon.d.ts.map +0 -1
  670. package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts +0 -5
  671. package/dist/design-system/Icon/__generated/icons/QuestionMarkSpeechBubbleIcon.d.ts.map +0 -1
  672. package/dist/design-system/Icon/__generated/icons/StepIntoIcon.d.ts.map +0 -1
  673. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts +0 -5
  674. package/dist/design-system/Icon/__generated/icons/StepOutIcon.d.ts.map +0 -1
  675. package/dist/design-system/Icon/__generated/icons/StepOverIcon.d.ts.map +0 -1
  676. package/dist/design-system/Icon/__generated/icons/VectorTableIcon.d.ts.map +0 -1
  677. package/dist/design-system/Wizard/Wizard.d.ts.map +0 -1
  678. package/dist/design-system/Wizard/WizardFooter.d.ts.map +0 -1
  679. package/dist/design-system/Wizard/WizardModal.d.ts +0 -7
  680. package/dist/design-system/Wizard/WizardModal.d.ts.map +0 -1
  681. package/dist/design-system/Wizard/WizardStep.d.ts.map +0 -1
  682. package/dist/design-system/Wizard/WizardStepsContent.d.ts +0 -11
  683. package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +0 -1
  684. package/dist/design-system/Wizard/index.d.ts +0 -5
  685. package/dist/design-system/Wizard/index.d.ts.map +0 -1
  686. package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +0 -1
  687. package/dist/development/ChatUI/ChatInput.d.ts +0 -11
  688. package/dist/development/ChatUI/ChatInput.d.ts.map +0 -1
  689. package/dist/development/ChatUI/CodeSnippet.d.ts +0 -9
  690. package/dist/development/ChatUI/CodeSnippet.d.ts.map +0 -1
  691. package/dist/development/ChatUI/Feedback.d.ts +0 -6
  692. package/dist/development/ChatUI/Feedback.d.ts.map +0 -1
  693. package/dist/development/ChatUI/Message.d.ts +0 -8
  694. package/dist/development/ChatUI/Message.d.ts.map +0 -1
  695. package/dist/development/ChatUI/MessageActionButton.d.ts +0 -4
  696. package/dist/development/ChatUI/MessageActionButton.d.ts.map +0 -1
  697. package/dist/development/ChatUI/MessageBody.d.ts +0 -7
  698. package/dist/development/ChatUI/MessageBody.d.ts.map +0 -1
  699. package/dist/development/ChatUI/MessageHeader.d.ts +0 -11
  700. package/dist/development/ChatUI/MessageHeader.d.ts.map +0 -1
  701. package/dist/development/ChatUI/MessagePagination.d.ts +0 -9
  702. package/dist/development/ChatUI/MessagePagination.d.ts.map +0 -1
  703. package/dist/development/ChatUI/index.d.ts +0 -39
  704. package/dist/development/ChatUI/index.d.ts.map +0 -1
  705. package/dist/test-utils/types.d.ts +0 -2
  706. package/dist/test-utils/types.d.ts.map +0 -1
@@ -1,7 +1,9 @@
1
1
  import React__default, { useRef, useEffect, createContext, useContext, useMemo, useState, forwardRef, useLayoutEffect, useImperativeHandle, useCallback } from 'react';
2
2
  import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
3
3
  import { useTheme, ThemeProvider, css, keyframes } from '@emotion/react';
4
- import { notification, ConfigProvider, Typography as Typography$1, Button as Button$1, Input as Input$2 } from 'antd';
4
+ import { notification, ConfigProvider, Button as Button$1, Typography as Typography$1 } from 'antd';
5
+ import * as Popover$1 from '@radix-ui/react-popover';
6
+ import { TooltipProvider } from '@radix-ui/react-tooltip';
5
7
  import AntDIcon from '@ant-design/icons';
6
8
  import _isNil from 'lodash/isNil';
7
9
  import _endsWith from 'lodash/endsWith';
@@ -498,7 +500,8 @@ function AccessibleContainer(_ref) {
498
500
 
499
501
  // Border variables
500
502
  const borders = {
501
- borderRadiusMd: 4
503
+ borderRadiusMd: 4,
504
+ borderRadiusLg: 8
502
505
  };
503
506
 
504
507
  // eslint-disable-next-line import/no-anonymous-default-export
@@ -799,10 +802,14 @@ const lightColorList = {
799
802
 
800
803
  // Currently these are the same for both light and dark mode, but we may want to change this in the future.
801
804
  const branded = {
802
- /** For AI components, the top-oriented start color of gradient treatments. */
803
- aiGradientStart: '#677FFD',
804
- /** For AI components, the bottom-oriented end color of gradient treatments. */
805
- aiGradientEnd: '#79BFF1'
805
+ ai: {
806
+ /** For AI components, the top-left-oriented start color of gradient treatments. */
807
+ gradientStart: '#4299E0',
808
+ /** For AI components, the mid color of gradient treatments. */
809
+ gradientMid: '#CA42E0',
810
+ /** For AI components, the bottom-right-oriented end color of gradient treatments. */
811
+ gradientEnd: '#FF5F46'
812
+ }
806
813
  };
807
814
  const darkColors = {
808
815
  ...darkColorList,
@@ -878,6 +885,7 @@ const deprecatedSemanticColorsDark = {
878
885
 
879
886
  // A static list of secondary colors; these are used as a limited palette of color options in component props, i.e. `color="lime"`.
880
887
  // TODO: We should split primitive colors into primary and secondary colors, and automatically generate this list.
888
+
881
889
  function getColors(isDarkMode) {
882
890
  return {
883
891
  ...deprecatedPrimitiveColors,
@@ -886,6 +894,13 @@ function getColors(isDarkMode) {
886
894
  };
887
895
  }
888
896
 
897
+ function getGradients(isDarkMode) {
898
+ const colors = getColors(isDarkMode);
899
+ return {
900
+ aiBorderGradient: `linear-gradient(135deg, ${colors.branded.ai.gradientStart} 20.5%, ${colors.branded.ai.gradientMid} 46.91%, ${colors.branded.ai.gradientEnd} 79.5%)`
901
+ };
902
+ }
903
+
889
904
  const FONT_SIZE_BASE = 13;
890
905
 
891
906
  // Less variables that are used by AntD
@@ -922,6 +937,7 @@ function getTheme(isDarkMode) {
922
937
  let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
923
938
  return {
924
939
  colors: getColors(isDarkMode),
940
+ gradients: getGradients(isDarkMode),
925
941
  spacing: spacing$1,
926
942
  general: {
927
943
  ...antdGeneralVariables,
@@ -1062,9 +1078,11 @@ const DesignSystemProvider = _ref2 => {
1062
1078
  getPopupContainer,
1063
1079
  virtual: !disableLegacyAntVirtualization
1064
1080
  },
1065
- children: jsx(DesignSystemContext.Provider, {
1066
- value: value,
1067
- children: children
1081
+ children: jsx(TooltipProvider, {
1082
+ children: jsx(DesignSystemContext.Provider, {
1083
+ value: value,
1084
+ children: children
1085
+ })
1068
1086
  })
1069
1087
  })
1070
1088
  })
@@ -1158,9 +1176,35 @@ function useDesignSystemContext() {
1158
1176
  return useContext(DesignSystemContext);
1159
1177
  }
1160
1178
 
1161
- function useDesignSystemFlags() {
1162
- const context = useDesignSystemContext();
1163
- return context.flags;
1179
+ /**
1180
+ * Provides access to http://go/safex flags from the frontend. Note that this is a temporary
1181
+ * workaround until direct `safex` imports are available.
1182
+ * @param flag The name of the flag to check
1183
+ * @param defaultValue The default value to return if the flag is not set
1184
+ * @returns
1185
+ */
1186
+ const safex = (flag, defaultValue) => {
1187
+ // Catching errors here, because we don't have type-safety to ensure
1188
+ // that `__debug__safex`'s API hasn't changed.
1189
+ try {
1190
+ const globalSafex = window.__debug__safex;
1191
+ return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
1192
+ } catch (e) {
1193
+ return defaultValue;
1194
+ }
1195
+ };
1196
+
1197
+ const getDebugOutlineStyles = theme => /*#__PURE__*/css({
1198
+ outline: `1px dashed ${theme.isDarkMode ? theme.colors.lime : theme.colors.lime}`,
1199
+ outlineOffset: '2px'
1200
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getDebugOutlineStyles;");
1201
+ function addDebugOutlineIfEnabled() {
1202
+ return safex('databricks.fe.designsystem.showDebugOutline', false) ? {
1203
+ 'data-dubois-show-outline': true
1204
+ } : {};
1205
+ }
1206
+ function addDebugOutlineStylesIfEnabled(theme) {
1207
+ return safex('databricks.fe.designsystem.showDebugOutline', false) ? getDebugOutlineStyles(theme) : {};
1164
1208
  }
1165
1209
 
1166
1210
  const uniqueId = () => new Date().getTime() + Array(16).fill('').map(() => parseInt((Math.random() * 10).toString())).join('');
@@ -1227,14 +1271,19 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1227
1271
  children: jsx("defs", {
1228
1272
  children: jsxs("linearGradient", {
1229
1273
  id: linearGradientId,
1274
+ x1: "0%",
1275
+ y1: "0%",
1230
1276
  x2: "100%",
1231
1277
  y2: "100%",
1232
1278
  children: [jsx("stop", {
1233
- offset: "0%",
1234
- stopColor: theme.colors.branded.aiGradientStart
1279
+ offset: "20.5%",
1280
+ stopColor: theme.colors.branded.ai.gradientStart
1235
1281
  }), jsx("stop", {
1236
- offset: "100%",
1237
- stopColor: theme.colors.branded.aiGradientEnd
1282
+ offset: "46.91%",
1283
+ stopColor: theme.colors.branded.ai.gradientMid
1284
+ }), jsx("stop", {
1285
+ offset: "79.5%",
1286
+ stopColor: theme.colors.branded.ai.gradientEnd
1238
1287
  })]
1239
1288
  })
1240
1289
  })
@@ -1244,6 +1293,7 @@ const Icon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1244
1293
  } : undefined, [Component, color, linearGradientId, theme]);
1245
1294
  return jsx(DesignSystemAntDConfigProvider, {
1246
1295
  children: jsx(AntDIcon, {
1296
+ ...addDebugOutlineIfEnabled(),
1247
1297
  ref: forwardedRef,
1248
1298
  "aria-hidden": "true",
1249
1299
  css: /*#__PURE__*/css({
@@ -1271,7 +1321,7 @@ function SvgCheckIcon(props) {
1271
1321
  children: jsx("path", {
1272
1322
  fill: "currentColor",
1273
1323
  fillRule: "evenodd",
1274
- d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5l1.06 1.06Z",
1324
+ d: "m15.06 3.56-9.53 9.531L1 8.561 2.06 7.5l3.47 3.47L14 2.5z",
1275
1325
  clipRule: "evenodd"
1276
1326
  })
1277
1327
  });
@@ -1286,58 +1336,6 @@ const CheckIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1286
1336
  CheckIcon.displayName = 'CheckIcon';
1287
1337
  var CheckIcon$1 = CheckIcon;
1288
1338
 
1289
- function SvgChevronLeftIcon(props) {
1290
- return jsx("svg", {
1291
- xmlns: "http://www.w3.org/2000/svg",
1292
- width: "1em",
1293
- height: "1em",
1294
- fill: "none",
1295
- viewBox: "0 0 16 16",
1296
- ...props,
1297
- children: jsx("path", {
1298
- fill: "currentColor",
1299
- fillRule: "evenodd",
1300
- d: "M7.083 8 10 10.947 8.958 12 5 8l3.958-4L10 5.053 7.083 8Z",
1301
- clipRule: "evenodd"
1302
- })
1303
- });
1304
- }
1305
- const ChevronLeftIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1306
- return jsx(Icon, {
1307
- ref: forwardedRef,
1308
- ...props,
1309
- component: SvgChevronLeftIcon
1310
- });
1311
- });
1312
- ChevronLeftIcon.displayName = 'ChevronLeftIcon';
1313
- var ChevronLeftIcon$1 = ChevronLeftIcon;
1314
-
1315
- function SvgChevronRightIcon(props) {
1316
- return jsx("svg", {
1317
- xmlns: "http://www.w3.org/2000/svg",
1318
- width: "1em",
1319
- height: "1em",
1320
- fill: "none",
1321
- viewBox: "0 0 16 16",
1322
- ...props,
1323
- children: jsx("path", {
1324
- fill: "currentColor",
1325
- fillRule: "evenodd",
1326
- d: "M8.917 8 6 5.053 7.042 4 11 8l-3.958 4L6 10.947 8.917 8Z",
1327
- clipRule: "evenodd"
1328
- })
1329
- });
1330
- }
1331
- const ChevronRightIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1332
- return jsx(Icon, {
1333
- ref: forwardedRef,
1334
- ...props,
1335
- component: SvgChevronRightIcon
1336
- });
1337
- });
1338
- ChevronRightIcon.displayName = 'ChevronRightIcon';
1339
- var ChevronRightIcon$1 = ChevronRightIcon;
1340
-
1341
1339
  function SvgCloseIcon(props) {
1342
1340
  return jsx("svg", {
1343
1341
  xmlns: "http://www.w3.org/2000/svg",
@@ -1349,7 +1347,7 @@ function SvgCloseIcon(props) {
1349
1347
  children: jsx("path", {
1350
1348
  fill: "currentColor",
1351
1349
  fillRule: "evenodd",
1352
- d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13l4.97-4.97Z",
1350
+ d: "M6.97 8.03 2 3.06 3.06 2l4.97 4.97L13 2l1.06 1.06-4.969 4.97 4.97 4.97L13 14.06 8.03 9.092l-4.97 4.97L2 13z",
1353
1351
  clipRule: "evenodd"
1354
1352
  })
1355
1353
  });
@@ -1364,42 +1362,6 @@ const CloseIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1364
1362
  CloseIcon.displayName = 'CloseIcon';
1365
1363
  var CloseIcon$1 = CloseIcon;
1366
1364
 
1367
- function SvgCursorIcon(props) {
1368
- return jsxs("svg", {
1369
- xmlns: "http://www.w3.org/2000/svg",
1370
- width: "1em",
1371
- height: "1em",
1372
- fill: "none",
1373
- viewBox: "0 0 16 16",
1374
- ...props,
1375
- children: [jsx("g", {
1376
- clipPath: "url(#CursorIcon_svg__a)",
1377
- children: jsx("path", {
1378
- fill: "currentColor",
1379
- fillRule: "evenodd",
1380
- d: "M1.22 1.22a.75.75 0 0 1 .802-.169l13.5 5.25a.75.75 0 0 1-.043 1.413L9.597 9.597l-1.883 5.882a.75.75 0 0 1-1.413.043l-5.25-13.5a.75.75 0 0 1 .169-.802Zm1.847 1.847 3.864 9.937 1.355-4.233a.75.75 0 0 1 .485-.485l4.233-1.355-9.937-3.864Z",
1381
- clipRule: "evenodd"
1382
- })
1383
- }), jsx("defs", {
1384
- children: jsx("clipPath", {
1385
- children: jsx("path", {
1386
- fill: "#fff",
1387
- d: "M16 0H0v16h16z"
1388
- })
1389
- })
1390
- })]
1391
- });
1392
- }
1393
- const CursorIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1394
- return jsx(Icon, {
1395
- ref: forwardedRef,
1396
- ...props,
1397
- component: SvgCursorIcon
1398
- });
1399
- });
1400
- CursorIcon.displayName = 'CursorIcon';
1401
- var CursorIcon$1 = CursorIcon;
1402
-
1403
1365
  function SvgDangerIcon(props) {
1404
1366
  return jsxs("svg", {
1405
1367
  xmlns: "http://www.w3.org/2000/svg",
@@ -1410,11 +1372,11 @@ function SvgDangerIcon(props) {
1410
1372
  ...props,
1411
1373
  children: [jsx("path", {
1412
1374
  fill: "currentColor",
1413
- d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM8.748 4.998v4h-1.5v-4h1.5Z"
1375
+ d: "M7.248 10.748a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0M8.748 4.998v4h-1.5v-4z"
1414
1376
  }), jsx("path", {
1415
1377
  fill: "currentColor",
1416
1378
  fillRule: "evenodd",
1417
- d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.22Zm2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39l3.803 3.803Z",
1379
+ d: "m11.533 15.776 4.243-4.243a.75.75 0 0 0 .22-.53v-6.01a.75.75 0 0 0-.22-.53L11.533.22a.75.75 0 0 0-.53-.22h-6.01a.75.75 0 0 0-.53.22L.22 4.462a.75.75 0 0 0-.22.53v6.011c0 .199.079.39.22.53l4.242 4.243c.141.14.332.22.53.22h6.011a.75.75 0 0 0 .53-.22m2.963-10.473v5.39l-3.804 3.803H5.303L1.5 10.692V5.303L5.303 1.5h5.39z",
1418
1380
  clipRule: "evenodd"
1419
1381
  })]
1420
1382
  });
@@ -1429,124 +1391,6 @@ const DangerIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1429
1391
  DangerIcon.displayName = 'DangerIcon';
1430
1392
  var DangerIcon$1 = DangerIcon;
1431
1393
 
1432
- function SvgFaceFrownIcon(props) {
1433
- return jsxs("svg", {
1434
- xmlns: "http://www.w3.org/2000/svg",
1435
- width: "1em",
1436
- height: "1em",
1437
- fill: "none",
1438
- viewBox: "0 0 16 16",
1439
- ...props,
1440
- children: [jsxs("g", {
1441
- fill: "currentColor",
1442
- clipPath: "url(#FaceFrownIcon_svg__a)",
1443
- children: [jsx("path", {
1444
- d: "M6 5.25a.75.75 0 0 0 0 1.5h.007a.75.75 0 0 0 0-1.5H6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 0 1 0 1.5H10A.75.75 0 0 1 9.25 6ZM10.07 11.12a.75.75 0 0 0 1.197-.903l-.001-.001v-.001l-.003-.003-.005-.006-.015-.02a2.95 2.95 0 0 0-.217-.246 4.717 4.717 0 0 0-.627-.546C9.86 9 9.04 8.584 8 8.584s-1.858.416-2.4.81a4.716 4.716 0 0 0-.795.733 2.87 2.87 0 0 0-.048.06l-.015.019-.005.006-.002.003-.031.044.03-.042a.75.75 0 1 0 1.22.875 3.219 3.219 0 0 1 .529-.485c.375-.273.89-.523 1.517-.523.627 0 1.142.25 1.517.523a3.219 3.219 0 0 1 .529.485l.021.025.002.003Z"
1445
- }), jsx("path", {
1446
- fillRule: "evenodd",
1447
- d: "M8 .583a7.417 7.417 0 1 0 0 14.834A7.417 7.417 0 0 0 8 .583ZM2.083 8a5.917 5.917 0 1 1 11.834 0A5.917 5.917 0 0 1 2.083 8Z",
1448
- clipRule: "evenodd"
1449
- })]
1450
- }), jsx("defs", {
1451
- children: jsx("clipPath", {
1452
- children: jsx("path", {
1453
- fill: "#fff",
1454
- d: "M0 0h16v16H0z"
1455
- })
1456
- })
1457
- })]
1458
- });
1459
- }
1460
- const FaceFrownIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1461
- return jsx(Icon, {
1462
- ref: forwardedRef,
1463
- ...props,
1464
- component: SvgFaceFrownIcon
1465
- });
1466
- });
1467
- FaceFrownIcon.displayName = 'FaceFrownIcon';
1468
- var FaceFrownIcon$1 = FaceFrownIcon;
1469
-
1470
- function SvgFaceNeutralIcon(props) {
1471
- return jsxs("svg", {
1472
- xmlns: "http://www.w3.org/2000/svg",
1473
- width: "1em",
1474
- height: "1em",
1475
- fill: "none",
1476
- viewBox: "0 0 16 16",
1477
- ...props,
1478
- children: [jsxs("g", {
1479
- fill: "currentColor",
1480
- fillRule: "evenodd",
1481
- clipPath: "url(#FaceNeutralIcon_svg__a)",
1482
- clipRule: "evenodd",
1483
- children: [jsx("path", {
1484
- d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z"
1485
- }), jsx("path", {
1486
- d: "M4.583 10a.75.75 0 0 1 .75-.75h5.334a.75.75 0 1 1 0 1.5H5.333a.75.75 0 0 1-.75-.75ZM5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z"
1487
- })]
1488
- }), jsx("defs", {
1489
- children: jsx("clipPath", {
1490
- children: jsx("path", {
1491
- fill: "#fff",
1492
- d: "M0 0h16v16H0z"
1493
- })
1494
- })
1495
- })]
1496
- });
1497
- }
1498
- const FaceNeutralIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1499
- return jsx(Icon, {
1500
- ref: forwardedRef,
1501
- ...props,
1502
- component: SvgFaceNeutralIcon
1503
- });
1504
- });
1505
- FaceNeutralIcon.displayName = 'FaceNeutralIcon';
1506
- var FaceNeutralIcon$1 = FaceNeutralIcon;
1507
-
1508
- function SvgFaceSmileIcon(props) {
1509
- return jsxs("svg", {
1510
- xmlns: "http://www.w3.org/2000/svg",
1511
- width: "1em",
1512
- height: "1em",
1513
- fill: "none",
1514
- viewBox: "0 0 16 16",
1515
- ...props,
1516
- children: [jsxs("g", {
1517
- fill: "currentColor",
1518
- clipPath: "url(#FaceSmileIcon_svg__a)",
1519
- children: [jsx("path", {
1520
- fillRule: "evenodd",
1521
- d: "M8 2.083a5.917 5.917 0 1 0 0 11.834A5.917 5.917 0 0 0 8 2.084ZM.583 8a7.417 7.417 0 1 1 14.834 0A7.417 7.417 0 0 1 .583 8Z",
1522
- clipRule: "evenodd"
1523
- }), jsx("path", {
1524
- d: "M4.883 8.733a.75.75 0 0 1 1.048.147l.002.003.021.026a3.216 3.216 0 0 0 .529.485c.375.273.89.523 1.517.523.627 0 1.142-.25 1.517-.523a3.215 3.215 0 0 0 .55-.511.75.75 0 0 1 1.2.9l.029-.042-.03.043-.001.002-.002.002-.005.007-.015.019a3.878 3.878 0 0 1-.217.247c-.144.15-.354.348-.627.546-.54.393-1.359.81-2.399.81s-1.858-.417-2.4-.81a4.716 4.716 0 0 1-.795-.734 2.643 2.643 0 0 1-.048-.059l-.015-.02-.005-.006-.002-.002v-.002h-.002a.75.75 0 0 1 .15-1.05Z"
1525
- }), jsx("path", {
1526
- fillRule: "evenodd",
1527
- d: "M5.25 6A.75.75 0 0 1 6 5.25h.007a.75.75 0 0 1 0 1.5H6A.75.75 0 0 1 5.25 6ZM9.25 6a.75.75 0 0 1 .75-.75h.007a.75.75 0 1 1 0 1.5H10A.75.75 0 0 1 9.25 6Z",
1528
- clipRule: "evenodd"
1529
- })]
1530
- }), jsx("defs", {
1531
- children: jsx("clipPath", {
1532
- children: jsx("path", {
1533
- fill: "#fff",
1534
- d: "M0 0h16v16H0z"
1535
- })
1536
- })
1537
- })]
1538
- });
1539
- }
1540
- const FaceSmileIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1541
- return jsx(Icon, {
1542
- ref: forwardedRef,
1543
- ...props,
1544
- component: SvgFaceSmileIcon
1545
- });
1546
- });
1547
- FaceSmileIcon.displayName = 'FaceSmileIcon';
1548
- var FaceSmileIcon$1 = FaceSmileIcon;
1549
-
1550
1394
  function SvgLoadingIcon(props) {
1551
1395
  return jsx("svg", {
1552
1396
  xmlns: "http://www.w3.org/2000/svg",
@@ -1558,7 +1402,7 @@ function SvgLoadingIcon(props) {
1558
1402
  children: jsx("path", {
1559
1403
  fill: "currentColor",
1560
1404
  fillRule: "evenodd",
1561
- d: "M23.212 12a.788.788 0 0 1-.789-.788 9.57 9.57 0 0 0-.757-3.751 9.662 9.662 0 0 0-5.129-5.129 9.587 9.587 0 0 0-3.749-.755.788.788 0 0 1 0-1.577c1.513 0 2.983.296 4.365.882a11.128 11.128 0 0 1 3.562 2.403 11.157 11.157 0 0 1 3.283 7.927.785.785 0 0 1-.786.788Z",
1405
+ d: "M23.212 12a.79.79 0 0 1-.789-.788 9.6 9.6 0 0 0-.757-3.751 9.66 9.66 0 0 0-5.129-5.129 9.6 9.6 0 0 0-3.749-.755.788.788 0 0 1 0-1.577c1.513 0 2.983.296 4.365.882a11.1 11.1 0 0 1 3.562 2.403 11.157 11.157 0 0 1 3.283 7.927.785.785 0 0 1-.786.788",
1562
1406
  clipRule: "evenodd"
1563
1407
  })
1564
1408
  });
@@ -1573,32 +1417,6 @@ const LoadingIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1573
1417
  LoadingIcon.displayName = 'LoadingIcon';
1574
1418
  var LoadingIcon$1 = LoadingIcon;
1575
1419
 
1576
- function SvgMegaphoneIcon(props) {
1577
- return jsx("svg", {
1578
- xmlns: "http://www.w3.org/2000/svg",
1579
- width: "1em",
1580
- height: "1em",
1581
- fill: "none",
1582
- viewBox: "0 0 18 18",
1583
- ...props,
1584
- children: jsx("path", {
1585
- fill: "currentColor",
1586
- fillRule: "evenodd",
1587
- d: "M16.25 2a.75.75 0 0 0-1.248-.56l-4.287 3.81H4A2.75 2.75 0 0 0 1.25 8v2A2.75 2.75 0 0 0 4 12.75h1.75V16a.75.75 0 0 0 1.5 0v-3.25h3.465l4.287 3.81A.75.75 0 0 0 16.25 16V2Zm-4.752 4.56 3.252-2.89v10.66l-3.252-2.89a.75.75 0 0 0-.498-.19H4c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h7a.75.75 0 0 0 .498-.19Z",
1588
- clipRule: "evenodd"
1589
- })
1590
- });
1591
- }
1592
- const MegaphoneIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1593
- return jsx(Icon, {
1594
- ref: forwardedRef,
1595
- ...props,
1596
- component: SvgMegaphoneIcon
1597
- });
1598
- });
1599
- MegaphoneIcon.displayName = 'MegaphoneIcon';
1600
- var MegaphoneIcon$1 = MegaphoneIcon;
1601
-
1602
1420
  function SvgNewWindowIcon(props) {
1603
1421
  return jsxs("svg", {
1604
1422
  xmlns: "http://www.w3.org/2000/svg",
@@ -1609,10 +1427,10 @@ function SvgNewWindowIcon(props) {
1609
1427
  ...props,
1610
1428
  children: [jsx("path", {
1611
1429
  fill: "currentColor",
1612
- d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10V1Z"
1430
+ d: "M10 1h5v5h-1.5V3.56L8.53 8.53 7.47 7.47l4.97-4.97H10z"
1613
1431
  }), jsx("path", {
1614
1432
  fill: "currentColor",
1615
- d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75V2.75Z"
1433
+ d: "M1 2.75A.75.75 0 0 1 1.75 2H8v1.5H2.5v10h10V8H14v6.25a.75.75 0 0 1-.75.75H1.75a.75.75 0 0 1-.75-.75z"
1616
1434
  })]
1617
1435
  });
1618
1436
  }
@@ -1636,11 +1454,11 @@ function SvgWarningIcon(props) {
1636
1454
  ...props,
1637
1455
  children: [jsx("path", {
1638
1456
  fill: "currentColor",
1639
- d: "M7.25 10V6.5h1.5V10h-1.5ZM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5Z"
1457
+ d: "M7.25 10V6.5h1.5V10zM8 12.5A.75.75 0 1 0 8 11a.75.75 0 0 0 0 1.5"
1640
1458
  }), jsx("path", {
1641
1459
  fill: "currentColor",
1642
1460
  fillRule: "evenodd",
1643
- d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1Zm0 2.245L2.052 13.5h11.896L8 3.245Z",
1461
+ d: "M8 1a.75.75 0 0 1 .649.374l7.25 12.5A.75.75 0 0 1 15.25 15H.75a.75.75 0 0 1-.649-1.126l7.25-12.5A.75.75 0 0 1 8 1m0 2.245L2.052 13.5h11.896z",
1644
1462
  clipRule: "evenodd"
1645
1463
  })]
1646
1464
  });
@@ -1655,402 +1473,169 @@ const WarningIcon = /*#__PURE__*/forwardRef((props, forwardedRef) => {
1655
1473
  WarningIcon.displayName = 'WarningIcon';
1656
1474
  var WarningIcon$1 = WarningIcon;
1657
1475
 
1658
- const {
1659
- Text: AntDText$1
1660
- } = Typography$1;
1661
- function getTextEmotionStyles$1(theme, props) {
1662
- return /*#__PURE__*/css({
1663
- '&&': {
1664
- display: 'block',
1665
- fontSize: theme.typography.fontSizeSm,
1666
- lineHeight: theme.typography.lineHeightSm,
1667
- color: theme.colors.textSecondary,
1668
- ...(props.withoutMargins && {
1669
- '&&': {
1670
- marginTop: 0,
1671
- marginBottom: 0
1672
- }
1673
- })
1674
- }
1675
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
1676
- }
1677
- function Hint(userProps) {
1678
- const {
1679
- dangerouslySetAntdProps,
1680
- bold,
1681
- withoutMargins,
1682
- color,
1683
- ...props
1684
- } = userProps;
1685
- const {
1686
- theme
1687
- } = useDesignSystemTheme();
1688
- return jsx(DesignSystemAntDConfigProvider, {
1689
- children: jsx(AntDText$1, {
1690
- ...props,
1691
- css: getTextEmotionStyles$1(theme, userProps),
1692
- ...dangerouslySetAntdProps
1693
- })
1694
- });
1695
- }
1696
-
1697
- const getLinkStyles$1 = (theme, clsPrefix) => {
1698
- const classTypography = `.${clsPrefix}-typography`;
1699
- const styles = {
1700
- [`&${classTypography}, &${classTypography}:focus`]: {
1701
- color: theme.colors.actionTertiaryTextDefault
1702
- },
1703
- [`&${classTypography}:hover, &${classTypography}:hover .anticon`]: {
1704
- color: theme.colors.actionTertiaryTextHover,
1705
- textDecoration: 'underline'
1706
- },
1707
- [`&${classTypography}:active, &${classTypography}:active .anticon`]: {
1708
- color: theme.colors.actionTertiaryTextPress,
1709
- textDecoration: 'underline'
1710
- },
1711
- [`&${classTypography}:focus-visible`]: {
1712
- textDecoration: 'underline'
1713
- },
1714
- '.anticon': {
1715
- fontSize: 12,
1716
- verticalAlign: 'baseline'
1717
- }
1718
- };
1719
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
1476
+ const DefaultDesignSystemEventSuppressInteractionContextValue = {
1477
+ suppressAnalyticsStartInteraction: false
1720
1478
  };
1721
- const getEllipsisNewTabLinkStyles = () => {
1722
- const styles = {
1723
- paddingRight: 'calc(2px + 1em)',
1724
- // 1em for icon
1725
- position: 'relative'
1726
- };
1727
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
1479
+ const DesignSystemEventSuppressInteractionTrueContextValue = {
1480
+ suppressAnalyticsStartInteraction: true
1728
1481
  };
1729
- const getIconStyles = theme => {
1730
- const styles = {
1731
- marginLeft: 2,
1732
- color: theme.colors.actionTertiaryTextDefault
1733
- };
1734
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
1482
+ const DesignSystemEventSuppressInteractionProviderContext = /*#__PURE__*/React__default.createContext(DefaultDesignSystemEventSuppressInteractionContextValue);
1483
+
1484
+ /**
1485
+ * This gets the event suppress interaction provider, is used to suppress the start interaction for analytics events.
1486
+ *
1487
+ * @returns DesignSystemEventSuppressInteractionContextType
1488
+ */
1489
+ const useDesignSystemEventSuppressInteractionContext = () => {
1490
+ return useContext(DesignSystemEventSuppressInteractionProviderContext);
1735
1491
  };
1736
- const getEllipsisIconStyles = useNewIcons => {
1737
- const styles = {
1738
- position: 'absolute',
1739
- right: 0,
1740
- bottom: 0,
1741
- top: 0,
1742
- display: 'flex',
1743
- alignItems: 'center',
1744
- ...(useNewIcons && {
1745
- fontSize: 12
1746
- })
1747
- };
1748
- return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
1492
+
1493
+ let DesignSystemEventProviderComponentTypes = /*#__PURE__*/function (DesignSystemEventProviderComponentTypes) {
1494
+ DesignSystemEventProviderComponentTypes["Alert"] = "alert";
1495
+ DesignSystemEventProviderComponentTypes["Banner"] = "banner";
1496
+ DesignSystemEventProviderComponentTypes["Button"] = "button";
1497
+ DesignSystemEventProviderComponentTypes["Checkbox"] = "checkbox";
1498
+ DesignSystemEventProviderComponentTypes["DialogCombobox"] = "dialog_combobox";
1499
+ DesignSystemEventProviderComponentTypes["DropdownMenuCheckboxItem"] = "dropdown_menu_checkbox_item";
1500
+ DesignSystemEventProviderComponentTypes["DropdownMenuItem"] = "dropdown_menu_item";
1501
+ DesignSystemEventProviderComponentTypes["DropdownMenuRadioGroup"] = "dropdown_menu_radio_group";
1502
+ DesignSystemEventProviderComponentTypes["Input"] = "input";
1503
+ DesignSystemEventProviderComponentTypes["LegacySelect"] = "legacy_select";
1504
+ DesignSystemEventProviderComponentTypes["Modal"] = "modal";
1505
+ DesignSystemEventProviderComponentTypes["Notification"] = "notification";
1506
+ DesignSystemEventProviderComponentTypes["Pagination"] = "pagination";
1507
+ DesignSystemEventProviderComponentTypes["PillControl"] = "pill_control";
1508
+ DesignSystemEventProviderComponentTypes["RadioGroup"] = "radio_group";
1509
+ DesignSystemEventProviderComponentTypes["SegmentedControlGroup"] = "segmented_control_group";
1510
+ DesignSystemEventProviderComponentTypes["SimpleSelect"] = "simple_select";
1511
+ DesignSystemEventProviderComponentTypes["Switch"] = "switch";
1512
+ DesignSystemEventProviderComponentTypes["TabsV2"] = "tabs";
1513
+ DesignSystemEventProviderComponentTypes["Tag"] = "tag";
1514
+ DesignSystemEventProviderComponentTypes["TextArea"] = "text_area";
1515
+ DesignSystemEventProviderComponentTypes["ToggleButton"] = "toggle_button";
1516
+ DesignSystemEventProviderComponentTypes["TypographyLink"] = "typography_link";
1517
+ return DesignSystemEventProviderComponentTypes;
1518
+ }({});
1519
+ let DesignSystemEventProviderAnalyticsEventTypes = /*#__PURE__*/function (DesignSystemEventProviderAnalyticsEventTypes) {
1520
+ DesignSystemEventProviderAnalyticsEventTypes["OnClick"] = "onClick";
1521
+ DesignSystemEventProviderAnalyticsEventTypes["OnView"] = "onView";
1522
+ DesignSystemEventProviderAnalyticsEventTypes["OnValueChange"] = "onValueChange";
1523
+ return DesignSystemEventProviderAnalyticsEventTypes;
1524
+ }({});
1525
+ const shouldTriggerCallback = (eventType, analyticsEvents) => {
1526
+ return analyticsEvents.includes(eventType);
1749
1527
  };
1750
- const Link = /*#__PURE__*/forwardRef(function Link(_ref, ref) {
1751
- let {
1752
- dangerouslySetAntdProps,
1753
- ...props
1754
- } = _ref;
1755
- const {
1756
- children,
1757
- openInNewTab,
1758
- ...restProps
1759
- } = props;
1760
- const {
1761
- theme,
1762
- classNamePrefix
1763
- } = useDesignSystemTheme();
1764
- const newTabProps = {
1765
- rel: 'noopener noreferrer',
1766
- target: '_blank'
1767
- };
1768
- const linkProps = openInNewTab ? {
1769
- ...restProps,
1770
- ...newTabProps
1771
- } : {
1772
- ...restProps
1773
- };
1774
- const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles$1(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles$1(theme, classNamePrefix);
1775
- const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
1776
- return jsx(DesignSystemAntDConfigProvider, {
1777
- children: jsxs(Typography$1.Link, {
1778
- "aria-disabled": linkProps.disabled,
1779
- css: linkStyles,
1780
- ref: ref,
1781
- ...linkProps,
1782
- ...dangerouslySetAntdProps,
1783
- children: [children, openInNewTab ? jsx(NewWindowIcon$1, {
1784
- css: iconStyles,
1785
- ...newTabProps
1786
- }) : null]
1787
- })
1788
- });
1789
- });
1528
+ const DefaultEmptyCallbacks = {
1529
+ callback: () => {}
1530
+ };
1531
+ const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
1790
1532
 
1791
- const {
1792
- Paragraph: AntDParagraph
1793
- } = Typography$1;
1794
- function getParagraphEmotionStyles(theme, props) {
1795
- return /*#__PURE__*/css({
1796
- '&&': {
1797
- fontSize: theme.typography.fontSizeBase,
1798
- fontWeight: theme.typography.typographyRegularFontWeight,
1799
- lineHeight: theme.typography.lineHeightBase,
1800
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
1801
- },
1802
- '& .anticon': {
1803
- verticalAlign: 'text-bottom'
1804
- }
1805
- }, props.disabled && {
1806
- '&&': {
1807
- color: theme.colors.actionDisabledText
1808
- }
1809
- }, props.withoutMargins && {
1810
- '&&': {
1811
- marginTop: 0,
1812
- marginBottom: 0
1813
- }
1814
- }, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
1815
- }
1816
- function Paragraph(userProps) {
1817
- const {
1818
- dangerouslySetAntdProps,
1819
- withoutMargins,
1820
- color,
1821
- ...props
1822
- } = userProps;
1823
- const {
1824
- theme
1825
- } = useDesignSystemTheme();
1826
- return jsx(DesignSystemAntDConfigProvider, {
1827
- children: jsx(AntDParagraph, {
1828
- ...props,
1829
- className: props.className,
1830
- css: getParagraphEmotionStyles(theme, userProps),
1831
- ...dangerouslySetAntdProps
1832
- })
1833
- });
1834
- }
1533
+ /**
1534
+ * This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
1535
+ * If the value is undefined, then the expected behavior is to not emit any events.
1536
+ *
1537
+ * @returns DesignSystemEventProviderContextType
1538
+ */
1539
+ const useDesignSystemEventProviderContext = () => {
1540
+ return useContext(DesignSystemEventProviderContext);
1541
+ };
1835
1542
 
1836
- const {
1837
- Text: AntDText
1838
- } = Typography$1;
1839
- function getTextEmotionStyles(theme, props) {
1840
- return /*#__PURE__*/css({
1841
- '&&': {
1842
- fontSize: theme.typography.fontSizeBase,
1843
- fontWeight: theme.typography.typographyRegularFontWeight,
1844
- lineHeight: theme.typography.lineHeightBase,
1845
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
1846
- }
1847
- }, props.disabled && {
1848
- '&&': {
1849
- color: theme.colors.actionDisabledText
1850
- }
1851
- }, props.hint && {
1852
- '&&': {
1853
- fontSize: theme.typography.fontSizeSm,
1854
- lineHeight: theme.typography.lineHeightSm
1855
- }
1856
- }, props.bold && {
1857
- '&&': {
1858
- fontSize: theme.typography.fontSizeBase,
1859
- fontWeight: theme.typography.typographyBoldFontWeight,
1860
- lineHeight: theme.typography.lineHeightBase
1861
- }
1862
- }, props.code && {
1863
- '&& > code': {
1864
- color: theme.colors.textPrimary,
1865
- fontSize: theme.typography.fontSizeBase,
1866
- lineHeight: theme.typography.lineHeightBase,
1867
- background: theme.colors.typographyCodeBg,
1868
- fontFamily: 'monospace',
1869
- borderRadius: theme.borders.borderRadiusMd,
1870
- padding: '2px 4px',
1871
- border: 'unset',
1872
- margin: 0
1873
- }
1874
- }, props.size && {
1875
- '&&': (() => {
1876
- switch (props.size) {
1877
- case 'xxl':
1878
- return {
1879
- fontSize: theme.typography.fontSizeXxl,
1880
- lineHeight: theme.typography.lineHeightXxl,
1881
- '& .anticon': {
1882
- lineHeight: theme.typography.lineHeightXxl,
1883
- verticalAlign: 'middle'
1884
- }
1885
- };
1886
- case 'xl':
1887
- return {
1888
- fontSize: theme.typography.fontSizeXl,
1889
- lineHeight: theme.typography.lineHeightXl,
1890
- '& .anticon': {
1891
- lineHeight: theme.typography.lineHeightXl,
1892
- verticalAlign: 'middle'
1893
- }
1894
- };
1895
- case 'lg':
1896
- return {
1897
- fontSize: theme.typography.fontSizeLg,
1898
- lineHeight: theme.typography.lineHeightLg,
1899
- '& .anticon': {
1900
- lineHeight: theme.typography.lineHeightLg,
1901
- verticalAlign: 'middle'
1902
- }
1903
- };
1904
- case 'sm':
1905
- return {
1906
- fontSize: theme.typography.fontSizeSm,
1907
- lineHeight: theme.typography.lineHeightSm,
1908
- '& .anticon': {
1909
- verticalAlign: '-0.219em'
1910
- }
1911
- };
1912
- default:
1913
- return {};
1914
- }
1915
- })()
1916
- }, props.withoutMargins && {
1917
- '&&': {
1918
- marginTop: 0,
1919
- marginBottom: 0
1543
+ /**
1544
+ * NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
1545
+ * See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
1546
+ *
1547
+ * This gets the event provider component event type callbacks.
1548
+ * If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
1549
+ * If the context or componentId are undefined, then the expected behavior is to not emit any events.
1550
+ *
1551
+ * @returns Object of event callbacks
1552
+ */
1553
+ const useDesignSystemEventComponentCallbacks = _ref => {
1554
+ let {
1555
+ componentType,
1556
+ componentId,
1557
+ analyticsEvents,
1558
+ valueHasNoPii,
1559
+ shouldStartInteraction
1560
+ } = _ref;
1561
+ const context = useDesignSystemEventProviderContext();
1562
+ const suppressInteractionContext = useDesignSystemEventSuppressInteractionContext();
1563
+ // If shouldStartInteraction is explicitly true or has no suppression when shouldStartInteraction
1564
+ // is not defined for an onClick event, then it will start the interaction
1565
+ const shouldStartInteractionComplete = useMemo(() => shouldStartInteraction || shouldStartInteraction === undefined && !suppressInteractionContext.suppressAnalyticsStartInteraction && shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents), [suppressInteractionContext, shouldStartInteraction, analyticsEvents]);
1566
+ const callbacks = useMemo(() => {
1567
+ if (context === DefaultEmptyCallbacks || componentId === undefined) {
1568
+ return {
1569
+ onClick: () => {},
1570
+ onValueChange: () => {},
1571
+ onView: () => {}
1572
+ };
1920
1573
  }
1921
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
1922
- }
1923
- function Text(userProps) {
1924
- // Omit props that are not supported by `antd`
1925
- const {
1926
- dangerouslySetAntdProps,
1927
- bold,
1928
- hint,
1929
- withoutMargins,
1930
- color,
1931
- ...props
1932
- } = userProps;
1933
- const {
1934
- theme
1935
- } = useDesignSystemTheme();
1936
- return jsx(DesignSystemAntDConfigProvider, {
1937
- children: jsx(AntDText, {
1938
- ...props,
1939
- className: props.className,
1940
- css: getTextEmotionStyles(theme, userProps),
1941
- ...dangerouslySetAntdProps
1942
- })
1943
- });
1944
- }
1945
-
1946
- const {
1947
- Title: AntDTitle
1948
- } = Typography$1;
1949
- function getLevelStyles(theme, props) {
1950
- switch (props.level) {
1951
- case 1:
1952
- return /*#__PURE__*/css({
1953
- '&&': {
1954
- fontSize: theme.typography.fontSizeXxl,
1955
- lineHeight: theme.typography.lineHeightXxl,
1956
- fontWeight: theme.typography.typographyBoldFontWeight
1957
- },
1958
- '& > .anticon': {
1959
- lineHeight: theme.typography.lineHeightXxl
1960
- }
1961
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1962
- case 2:
1963
- return /*#__PURE__*/css({
1964
- '&&': {
1965
- fontSize: theme.typography.fontSizeXl,
1966
- lineHeight: theme.typography.lineHeightXl,
1967
- fontWeight: theme.typography.typographyBoldFontWeight
1968
- },
1969
- '& > .anticon': {
1970
- lineHeight: theme.typography.lineHeightXl
1574
+ return {
1575
+ onClick: event => {
1576
+ if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
1577
+ context.callback({
1578
+ eventType: DesignSystemEventProviderAnalyticsEventTypes.OnClick,
1579
+ componentType,
1580
+ componentId,
1581
+ value: undefined,
1582
+ shouldStartInteraction: shouldStartInteractionComplete,
1583
+ event
1584
+ });
1971
1585
  }
1972
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1973
- case 3:
1974
- return /*#__PURE__*/css({
1975
- '&&': {
1976
- fontSize: theme.typography.fontSizeLg,
1977
- lineHeight: theme.typography.lineHeightLg,
1978
- fontWeight: theme.typography.typographyBoldFontWeight
1979
- },
1980
- '& > .anticon': {
1981
- lineHeight: theme.typography.lineHeightLg
1586
+ },
1587
+ onValueChange: value => {
1588
+ if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
1589
+ context.callback({
1590
+ eventType: DesignSystemEventProviderAnalyticsEventTypes.OnValueChange,
1591
+ componentType,
1592
+ componentId,
1593
+ value: valueHasNoPii ? value : undefined,
1594
+ shouldStartInteraction: shouldStartInteractionComplete
1595
+ });
1982
1596
  }
1983
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1984
- case 4:
1985
- default:
1986
- return /*#__PURE__*/css({
1987
- '&&': {
1988
- fontSize: theme.typography.fontSizeMd,
1989
- lineHeight: theme.typography.lineHeightMd,
1990
- fontWeight: theme.typography.typographyBoldFontWeight
1991
- },
1992
- '& > .anticon': {
1993
- lineHeight: theme.typography.lineHeightMd
1597
+ },
1598
+ onView: () => {
1599
+ if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
1600
+ context.callback({
1601
+ eventType: DesignSystemEventProviderAnalyticsEventTypes.OnView,
1602
+ componentType,
1603
+ componentId,
1604
+ value: undefined,
1605
+ shouldStartInteraction: shouldStartInteractionComplete
1606
+ });
1994
1607
  }
1995
- }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
1996
- }
1997
- }
1998
- function getTitleEmotionStyles(theme, props) {
1999
- return /*#__PURE__*/css(getLevelStyles(theme, props), {
2000
- '&&': {
2001
- color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
2002
- },
2003
- '& > .anticon': {
2004
- verticalAlign: 'middle'
2005
- }
2006
- }, props.withoutMargins && {
2007
- '&&': {
2008
- marginTop: '0 !important',
2009
- // override general styling
2010
- marginBottom: '0 !important' // override general styling
2011
- }
2012
- }, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
2013
- }
2014
- function Title(userProps) {
2015
- const {
2016
- dangerouslySetAntdProps,
2017
- withoutMargins,
2018
- color,
2019
- ...props
2020
- } = userProps;
2021
- const {
2022
- theme
2023
- } = useDesignSystemTheme();
2024
- return jsx(DesignSystemAntDConfigProvider, {
2025
- children: jsx(AntDTitle, {
2026
- ...props,
2027
- className: props.className,
2028
- css: getTitleEmotionStyles(theme, userProps),
2029
- ...dangerouslySetAntdProps
2030
- })
2031
- });
2032
- }
1608
+ }
1609
+ };
1610
+ }, [context, componentId, analyticsEvents, componentType, valueHasNoPii, shouldStartInteractionComplete]);
1611
+ return callbacks;
1612
+ };
2033
1613
 
2034
- const Typography = /* #__PURE__ */(() => {
2035
- function Typography(_ref) {
2036
- let {
2037
- dangerouslySetAntdProps,
2038
- ...props
2039
- } = _ref;
2040
- return jsx(DesignSystemAntDConfigProvider, {
2041
- children: jsx(Typography$1, {
2042
- ...props,
2043
- ...dangerouslySetAntdProps
2044
- })
2045
- });
2046
- }
2047
- Typography.Text = Text;
2048
- Typography.Title = Title;
2049
- Typography.Paragraph = Paragraph;
2050
- Typography.Link = Link;
2051
- Typography.Hint = Hint;
2052
- return Typography;
2053
- })();
1614
+ /**
1615
+ * NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
1616
+ * See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
1617
+ *
1618
+ * This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
1619
+ *
1620
+ * @param children Children react elements
1621
+ * @param callback The event callback function
1622
+ * @returns Design System Event Context Provider with the children inside
1623
+ */
1624
+ function DesignSystemEventProvider(_ref2) {
1625
+ let {
1626
+ children,
1627
+ callback
1628
+ } = _ref2;
1629
+ const contextValue = useMemo(() => {
1630
+ return {
1631
+ callback
1632
+ };
1633
+ }, [callback]);
1634
+ return jsx(DesignSystemEventProviderContext.Provider, {
1635
+ value: contextValue,
1636
+ children: children
1637
+ });
1638
+ }
2054
1639
 
2055
1640
  function getDefaultStyles(theme) {
2056
1641
  let loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -2096,7 +1681,7 @@ function getPrimaryStyles(theme) {
2096
1681
  }
2097
1682
  };
2098
1683
  }
2099
- function getLinkStyles(theme) {
1684
+ function getLinkStyles$1(theme) {
2100
1685
  const defaultStyles = {
2101
1686
  backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
2102
1687
  borderColor: theme.colors.actionTertiaryBackgroundDefault,
@@ -2166,26 +1751,49 @@ function getSecondaryDangerStyles(theme) {
2166
1751
  }
2167
1752
  };
2168
1753
  }
2169
- function getDisabledStyles(theme) {
1754
+ function getDisabledDefaultStyles(theme) {
2170
1755
  const defaultStyles = {
2171
- backgroundColor: theme.colors.actionDisabledBackground,
2172
- borderColor: 'transparent',
1756
+ backgroundColor: 'transparent',
1757
+ borderColor: theme.colors.actionDisabledBorder,
2173
1758
  color: theme.colors.actionDisabledText
2174
1759
  };
2175
1760
  return {
2176
1761
  ...defaultStyles,
2177
1762
  '&:hover': {
2178
- backgroundColor: theme.colors.actionDisabledBackground,
2179
- borderColor: 'transparent',
1763
+ backgroundColor: 'transparent',
1764
+ borderColor: theme.colors.actionDisabledBorder,
2180
1765
  color: theme.colors.actionDisabledText
2181
1766
  },
2182
1767
  '&:active': {
2183
- backgroundColor: theme.colors.actionDisabledBackground,
2184
- borderColor: 'transparent',
1768
+ backgroundColor: 'transparent',
1769
+ borderColor: theme.colors.actionDisabledBorder,
2185
1770
  color: theme.colors.actionDisabledText
2186
1771
  }
2187
1772
  };
2188
1773
  }
1774
+ function getDisabledPrimaryStyles(theme) {
1775
+ const defaultStyles = {
1776
+ backgroundColor: theme.colors.actionDisabledBorder,
1777
+ borderColor: 'transparent',
1778
+ color: theme.colors.actionPrimaryTextDefault
1779
+ };
1780
+ return {
1781
+ ...defaultStyles,
1782
+ '&:hover': {
1783
+ backgroundColor: theme.colors.actionDisabledBorder,
1784
+ borderColor: 'transparent',
1785
+ color: theme.colors.actionPrimaryTextDefault
1786
+ },
1787
+ '&:active': {
1788
+ backgroundColor: theme.colors.actionDisabledBorder,
1789
+ borderColor: 'transparent',
1790
+ color: theme.colors.actionPrimaryTextDefault
1791
+ }
1792
+ };
1793
+ }
1794
+ function getDisabledErrorStyles(theme) {
1795
+ return getDisabledPrimaryStyles(theme);
1796
+ }
2189
1797
  function getDisabledTertiaryStyles(theme) {
2190
1798
  const defaultStyles = {
2191
1799
  backgroundColor: theme.colors.actionTertiaryBackgroundDefault,
@@ -2206,108 +1814,25 @@ function getDisabledTertiaryStyles(theme) {
2206
1814
  }
2207
1815
  };
2208
1816
  }
2209
-
2210
- let DesignSystemEventProviderComponentTypes = /*#__PURE__*/function (DesignSystemEventProviderComponentTypes) {
2211
- DesignSystemEventProviderComponentTypes["Banner"] = "banner";
2212
- DesignSystemEventProviderComponentTypes["Button"] = "button";
2213
- DesignSystemEventProviderComponentTypes["Input"] = "input";
2214
- DesignSystemEventProviderComponentTypes["Modal"] = "modal";
2215
- return DesignSystemEventProviderComponentTypes;
2216
- }({});
2217
- let DesignSystemEventProviderAnalyticsEventTypes = /*#__PURE__*/function (DesignSystemEventProviderAnalyticsEventTypes) {
2218
- DesignSystemEventProviderAnalyticsEventTypes["OnClick"] = "onClick";
2219
- DesignSystemEventProviderAnalyticsEventTypes["OnView"] = "onView";
2220
- DesignSystemEventProviderAnalyticsEventTypes["OnValueChange"] = "onValueChange";
2221
- return DesignSystemEventProviderAnalyticsEventTypes;
2222
- }({});
2223
- const shouldTriggerCallback = (eventType, analyticsEvents) => {
2224
- return analyticsEvents.includes(eventType);
2225
- };
2226
- const DefaultEmptyCallbacks = {
2227
- callback: () => {}
2228
- };
2229
- const DesignSystemEventProviderContext = /*#__PURE__*/React__default.createContext(DefaultEmptyCallbacks);
2230
-
2231
- /**
2232
- * This gets the event provider, which is used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
2233
- * If the value is undefined, then the expected behavior is to not emit any events.
2234
- *
2235
- * @returns DesignSystemEventProviderContextType
2236
- */
2237
- const useDesignSystemEventProviderContext = () => {
2238
- return useContext(DesignSystemEventProviderContext);
2239
- };
2240
-
2241
- /**
2242
- * NOTE: This is not suggested for direct usage from engineers, and should emit your own events.
2243
- * See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
2244
- *
2245
- * This gets the event provider component event type callbacks.
2246
- * If context & componentId are not undefined, then it will check if the event is in analyticsEvents or the default analyticsEvents for that component.
2247
- * If the context or componentId are undefined, then the expected behavior is to not emit any events.
2248
- *
2249
- * @returns Object of event callbacks
2250
- */
2251
- const useDesignSystemEventComponentCallbacks = _ref => {
2252
- let {
2253
- componentType,
2254
- componentId,
2255
- analyticsEvents
2256
- } = _ref;
2257
- const context = useDesignSystemEventProviderContext();
2258
- const callbacks = useMemo(() => {
2259
- if (context === DefaultEmptyCallbacks || componentId === undefined) {
2260
- return {
2261
- onClick: () => {},
2262
- onValueChange: () => {},
2263
- onView: () => {}
2264
- };
1817
+ function getDisabledSplitButtonStyles(theme) {
1818
+ const defaultStyles = {
1819
+ backgroundColor: theme.colors.actionDisabledBorder,
1820
+ borderColor: theme.colors.actionDisabledBorder,
1821
+ color: theme.colors.actionPrimaryTextDefault
1822
+ };
1823
+ return {
1824
+ ...defaultStyles,
1825
+ '&:hover': {
1826
+ backgroundColor: theme.colors.actionDisabledBorder,
1827
+ borderColor: theme.colors.actionDisabledBorder,
1828
+ color: theme.colors.actionPrimaryTextDefault
1829
+ },
1830
+ '&:active': {
1831
+ backgroundColor: theme.colors.actionDisabledBorder,
1832
+ borderColor: theme.colors.actionDisabledBorder,
1833
+ color: theme.colors.actionPrimaryTextDefault
2265
1834
  }
2266
- return {
2267
- onClick: () => {
2268
- if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, analyticsEvents)) {
2269
- context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnClick, componentType, componentId);
2270
- }
2271
- },
2272
- onValueChange: () => {
2273
- if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, analyticsEvents)) {
2274
- context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnValueChange, componentType, componentId);
2275
- }
2276
- },
2277
- onView: () => {
2278
- if (shouldTriggerCallback(DesignSystemEventProviderAnalyticsEventTypes.OnView, analyticsEvents)) {
2279
- context.callback(DesignSystemEventProviderAnalyticsEventTypes.OnView, componentType, componentId);
2280
- }
2281
- }
2282
- };
2283
- }, [context, componentType, componentId, analyticsEvents]);
2284
- return callbacks;
2285
- };
2286
-
2287
- /**
2288
- * NOTE: This is not suggested for direct usage from engineers, and should use RecordEventContext instead.
2289
- * See https://databricks.atlassian.net/wiki/spaces/UN/pages/2533556277/Usage+Logging+in+UI#Send-usage-logging-from-UI for more details.
2290
- *
2291
- * This is the Design System Event Context Provider, and is only used to pass callbacks to the design system for events such as onClick, onView, and onValueChange.
2292
- *
2293
- * @param children Children react elements
2294
- * @param callback The event callback function
2295
- * @returns Design System Event Context Provider with the children inside
2296
- */
2297
- function DesignSystemEventProvider(_ref2) {
2298
- let {
2299
- children,
2300
- callback
2301
- } = _ref2;
2302
- const contextValue = useMemo(() => {
2303
- return {
2304
- callback
2305
- };
2306
- }, [callback]);
2307
- return jsx(DesignSystemEventProviderContext.Provider, {
2308
- value: contextValue,
2309
- children: children
2310
- });
1835
+ };
2311
1836
  }
2312
1837
 
2313
1838
  // Use Symbol to correctly handled null/undefined as stable values
@@ -2443,30 +1968,6 @@ const Spinner = _ref => {
2443
1968
  );
2444
1969
  };
2445
1970
 
2446
- /**
2447
- * Provides access to http://go/safex flags from the frontend. Note that this is a temporary
2448
- * workaround until direct `safex` imports are available.
2449
- * @param flag The name of the flag to check
2450
- * @param defaultValue The default value to return if the flag is not set
2451
- * @returns
2452
- */
2453
- const safex = (flag, defaultValue) => {
2454
- // Catching errors here, because we don't have type-safety to ensure
2455
- // that `__debug__safex`'s API hasn't changed.
2456
- try {
2457
- const globalSafex = window.__debug__safex;
2458
- return globalSafex ? globalSafex(flag, defaultValue) : defaultValue;
2459
- } catch (e) {
2460
- return defaultValue;
2461
- }
2462
- };
2463
-
2464
- function addDebugOutlineIfEnabled() {
2465
- return safex('databricks.fe.designsystem.showDebugOutline', false) ? {
2466
- 'data-dubois-show-outline': true
2467
- } : {};
2468
- }
2469
-
2470
1971
  function getEndIconClsName(theme) {
2471
1972
  return `${theme.general.iconfontCssPrefix}-btn-end-icon`;
2472
1973
  }
@@ -2481,7 +1982,6 @@ const getButtonEmotionStyles = _ref => {
2481
1982
  enableAnimation,
2482
1983
  size,
2483
1984
  type,
2484
- isFlex,
2485
1985
  useFocusPseudoClass,
2486
1986
  forceIconStyles,
2487
1987
  danger
@@ -2508,30 +2008,12 @@ const getButtonEmotionStyles = _ref => {
2508
2008
  };
2509
2009
  const iconCss = {
2510
2010
  fontSize: theme.general.iconFontSize,
2511
- ...(!isFlex && {
2512
- // verticalAlign used by AntD to move icon and label to center
2513
- // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
2514
- // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
2515
- verticalAlign: -4,
2516
- ...(onlyIcon && {
2517
- verticalAlign: -3
2518
- }),
2519
- // verticalAlign used by AntD to move icon and label to center
2520
- // TODO(schs): Try to move buttons to flexbox to solve this. Main problem is that flex-inline and inline-block
2521
- // behave differently (vertically align of multiple buttons is off). See https://codepen.io/qfactor/pen/JXVzBe
2522
- // Need to make sure not to apply this to regular buttons as it will offset the icons
2523
- ...(!onlyIcon && {
2524
- verticalAlign: -3
2525
- })
2526
- }),
2527
2011
  lineHeight: 0,
2528
2012
  ...(size === 'small' && {
2529
2013
  lineHeight: theme.typography.lineHeightSm,
2014
+ height: 16,
2530
2015
  ...((onlyIcon || forceIconStyles) && {
2531
- fontSize: 16,
2532
- ...(isFlex && {
2533
- height: 16
2534
- })
2016
+ fontSize: 16
2535
2017
  })
2536
2018
  })
2537
2019
  };
@@ -2543,12 +2025,10 @@ const getButtonEmotionStyles = _ref => {
2543
2025
  lineHeight: theme.typography.lineHeightBase,
2544
2026
  boxShadow: 'none',
2545
2027
  height: theme.general.heightSm,
2546
- ...(isFlex && {
2547
- display: 'inline-flex',
2548
- alignItems: 'center',
2549
- justifyContent: 'center',
2550
- verticalAlign: 'middle'
2551
- }),
2028
+ display: 'inline-flex',
2029
+ alignItems: 'center',
2030
+ justifyContent: 'center',
2031
+ verticalAlign: 'middle',
2552
2032
  ...(!onlyIcon && !forceIconStyles && {
2553
2033
  '&&': {
2554
2034
  padding: '4px 12px',
@@ -2581,7 +2061,7 @@ const getButtonEmotionStyles = _ref => {
2581
2061
  ...getPrimaryStyles(theme)
2582
2062
  },
2583
2063
  [`&${classLink}`]: {
2584
- ...getLinkStyles(theme),
2064
+ ...getLinkStyles$1(theme),
2585
2065
  ...(type === 'link' && {
2586
2066
  padding: 'unset',
2587
2067
  height: 'auto',
@@ -2598,8 +2078,19 @@ const getButtonEmotionStyles = _ref => {
2598
2078
  [`&${classDangerous}`]: {
2599
2079
  ...getSecondaryDangerStyles(theme)
2600
2080
  },
2081
+ [`&[disabled]`]: {
2082
+ ...getDisabledDefaultStyles(theme)
2083
+ },
2084
+ [`&${classLink}:disabled`]: {
2085
+ ...getDisabledTertiaryStyles(theme)
2086
+ },
2087
+ [`&${classDangerous}:disabled`]: {
2088
+ ...getDisabledErrorStyles(theme)
2089
+ },
2090
+ [`&${classPrimary}:disabled`]: {
2091
+ ...getDisabledPrimaryStyles(theme)
2092
+ },
2601
2093
  [`&[disabled], &${classDangerous}:disabled`]: {
2602
- ...getDisabledStyles(theme),
2603
2094
  ...((onlyIcon || forceIconStyles) && {
2604
2095
  backgroundColor: 'transparent',
2605
2096
  '&:hover': {
@@ -2628,10 +2119,6 @@ const getButtonEmotionStyles = _ref => {
2628
2119
  // This would break vertical centering of loading circle when onlyIcon is true
2629
2120
  position: 'absolute'
2630
2121
  }),
2631
- ...(!isFlex && !forceIconStyles && {
2632
- // Normally we'd do `transform: translateX(-50%)` but `antd` crushes that with injected inline `style`.
2633
- left: 'calc(50% - 7px)'
2634
- }),
2635
2122
  // Re-enable animation for the loading spinner, since it can be disabled by the global animation CSS.
2636
2123
  svg: {
2637
2124
  animationDuration: '1s !important'
@@ -2640,7 +2127,6 @@ const getButtonEmotionStyles = _ref => {
2640
2127
  [`& > ${clsLoadingIcon} .anticon`]: {
2641
2128
  paddingRight: 0 // to horizontally center icon
2642
2129
  },
2643
-
2644
2130
  [`> :not(${clsLoadingIcon})`]: {
2645
2131
  // Hide all content except loading icon
2646
2132
  opacity: 0,
@@ -2702,7 +2188,7 @@ const getButtonEmotionStyles = _ref => {
2702
2188
  },
2703
2189
  ...(isAnchor && {
2704
2190
  lineHeight: `${theme.general.heightSm}px`,
2705
- ...getLinkStyles(theme),
2191
+ ...getLinkStyles$1(theme),
2706
2192
  '&:disabled': {
2707
2193
  color: theme.colors.actionDisabledText
2708
2194
  }
@@ -2788,26 +2274,28 @@ const Button = /* #__PURE__ */(() => {
2788
2274
  dangerouslyUseFocusPseudoClass,
2789
2275
  dangerouslyAppendWrapperCss,
2790
2276
  componentId,
2791
- analyticsEvents,
2277
+ analyticsEvents: analyticsEventsInput,
2278
+ shouldStartInteraction,
2792
2279
  ...props
2793
2280
  } = _ref2;
2794
2281
  const {
2795
2282
  theme,
2796
2283
  classNamePrefix
2797
2284
  } = useDesignSystemTheme();
2798
- const {
2799
- USE_FLEX_BUTTON: flexOverride
2800
- } = useDesignSystemFlags();
2285
+ const analyticsEvents = useMemo(() => analyticsEventsInput !== null && analyticsEventsInput !== void 0 ? analyticsEventsInput : [DesignSystemEventProviderAnalyticsEventTypes.OnClick], [analyticsEventsInput]);
2801
2286
  const eventContext = useDesignSystemEventComponentCallbacks({
2802
2287
  componentType: DesignSystemEventProviderComponentTypes.Button,
2803
2288
  componentId,
2804
- analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnClick]
2289
+ analyticsEvents,
2290
+ shouldStartInteraction
2805
2291
  });
2806
- const flexSafex = safex('databricks.fe.designsystem.useFlexButtonStyles', false);
2807
- const isFlex = flexOverride || flexSafex;
2808
2292
  const clsEndIcon = getEndIconClsName(theme);
2809
2293
  const loadingCls = `${classNamePrefix}-btn-loading-icon`;
2810
- const buttonRef = useRef(null);
2294
+ const {
2295
+ elementRef: buttonRef
2296
+ } = useNotifyOnFirstView({
2297
+ onView: eventContext.onView
2298
+ });
2811
2299
  useImperativeHandle(ref, () => buttonRef.current);
2812
2300
 
2813
2301
  // Needed to keep backwards compatibility and support existing unit tests
@@ -2821,13 +2309,13 @@ const Button = /* #__PURE__ */(() => {
2821
2309
  buttonRef.current.classList.remove(`${classNamePrefix}-btn-loading`);
2822
2310
  }
2823
2311
  }
2824
- }, [loading, classNamePrefix]);
2312
+ }, [loading, classNamePrefix, buttonRef]);
2825
2313
  const iconOnly = Boolean((props.icon || endIcon) && !children);
2826
2314
  const handleClick = event => {
2827
2315
  if (loading) {
2828
2316
  return;
2829
2317
  }
2830
- eventContext.onClick();
2318
+ eventContext.onClick(event);
2831
2319
  onClick === null || onClick === void 0 || onClick(event);
2832
2320
  };
2833
2321
  const loadingSpinner = jsx(Spinner, {
@@ -2865,7 +2353,6 @@ const Button = /* #__PURE__ */(() => {
2865
2353
  enableAnimation: theme.options.enableAnimation,
2866
2354
  size: size || 'middle',
2867
2355
  type,
2868
- isFlex,
2869
2356
  forceIconStyles: Boolean(dangerouslySetForceIconStyles),
2870
2357
  useFocusPseudoClass: Boolean(dangerouslyUseFocusPseudoClass)
2871
2358
  }),
@@ -2878,19 +2365,15 @@ const Button = /* #__PURE__ */(() => {
2878
2365
  children: children && jsxs("span", {
2879
2366
  style: {
2880
2367
  visibility: loading ? 'hidden' : 'visible',
2881
- ...(isFlex && {
2882
- display: 'inline-flex',
2883
- alignItems: 'center'
2884
- }),
2368
+ display: 'inline-flex',
2369
+ alignItems: 'center',
2885
2370
  ...dangerouslyAppendWrapperCss
2886
2371
  },
2887
2372
  children: [children, endIcon && jsx("span", {
2888
2373
  className: clsEndIcon,
2889
2374
  style: {
2890
- ...(isFlex && {
2891
- display: 'inline-flex',
2892
- alignItems: 'center'
2893
- })
2375
+ display: 'inline-flex',
2376
+ alignItems: 'center'
2894
2377
  },
2895
2378
  children: endIcon
2896
2379
  })]
@@ -2907,624 +2390,600 @@ const Button = /* #__PURE__ */(() => {
2907
2390
  return Button;
2908
2391
  })();
2909
2392
 
2910
- const getInputGroupStyling = (clsPrefix, theme) => {
2911
- const inputClass = `.${clsPrefix}-input`;
2912
- const buttonClass = `.${clsPrefix}-btn`;
2393
+ const Root = Popover$1.Root; // Behavioral component only
2394
+ const Anchor = Popover$1.Anchor; // Behavioral component only
2395
+
2396
+ const Content = /*#__PURE__*/forwardRef(function Content(_ref, ref) {
2397
+ let {
2398
+ children,
2399
+ minWidth = 220,
2400
+ maxWidth,
2401
+ ...props
2402
+ } = _ref;
2403
+ const {
2404
+ getPopupContainer
2405
+ } = useDesignSystemContext();
2406
+ return jsx(Popover$1.Portal, {
2407
+ container: getPopupContainer && getPopupContainer(),
2408
+ children: jsx(Popover$1.Content, {
2409
+ ...addDebugOutlineIfEnabled(),
2410
+ ref: ref,
2411
+ css: [contentStyles, {
2412
+ minWidth,
2413
+ maxWidth
2414
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Content;"],
2415
+ sideOffset: 4,
2416
+ ...props,
2417
+ children: children
2418
+ })
2419
+ });
2420
+ });
2421
+ const Trigger = /*#__PURE__*/forwardRef(function Trigger(_ref2, ref) {
2422
+ let {
2423
+ children,
2424
+ ...props
2425
+ } = _ref2;
2426
+ return jsx(Popover$1.Trigger, {
2427
+ ...addDebugOutlineIfEnabled(),
2428
+ ref: ref,
2429
+ ...props,
2430
+ children: children
2431
+ });
2432
+ });
2433
+ const Close = /*#__PURE__*/forwardRef(function Close(_ref3, ref) {
2434
+ let {
2435
+ children,
2436
+ ...props
2437
+ } = _ref3;
2438
+ return jsx(Popover$1.Close, {
2439
+ ref: ref,
2440
+ ...props,
2441
+ children: children
2442
+ });
2443
+ });
2444
+ const Arrow = /*#__PURE__*/forwardRef(function Arrow(_ref4, ref) {
2445
+ let {
2446
+ children,
2447
+ ...props
2448
+ } = _ref4;
2449
+ const {
2450
+ theme
2451
+ } = useDesignSystemTheme();
2452
+ return jsx(Popover$1.Arrow, {
2453
+ css: /*#__PURE__*/css({
2454
+ fill: theme.colors.backgroundPrimary,
2455
+ stroke: theme.colors.borderDecorative,
2456
+ strokeDashoffset: -CONSTANTS.arrowBottomLength(),
2457
+ strokeDasharray: CONSTANTS.arrowBottomLength() + 2 * CONSTANTS.arrowSide(),
2458
+ strokeWidth: CONSTANTS.arrowStrokeWidth(),
2459
+ // TODO: This is a temporary fix for the alignment of the Arrow;
2460
+ // Radix has changed the implementation for v1.0.0 (uses floating-ui)
2461
+ // which has new behaviors for alignment that we don't want. Generally
2462
+ // we need to fix the arrow to always be aligned to the left of the menu (with
2463
+ // offset equal to border radius)
2464
+ position: 'relative',
2465
+ top: -1
2466
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Arrow;"),
2467
+ ref: ref,
2468
+ width: 12,
2469
+ height: 6,
2470
+ ...props,
2471
+ children: children
2472
+ });
2473
+ });
2474
+
2475
+ // CONSTANTS
2476
+ const CONSTANTS = {
2477
+ arrowBottomLength() {
2478
+ // The built in arrow is a polygon: 0,0 30,0 15,10
2479
+ return 30;
2480
+ },
2481
+ arrowHeight() {
2482
+ return 10;
2483
+ },
2484
+ arrowSide() {
2485
+ return 2 * (this.arrowHeight() ** 2 * 2) ** 0.5;
2486
+ },
2487
+ arrowStrokeWidth() {
2488
+ // This is eyeballed b/c relative to the svg viewbox coordinate system
2489
+ return 2;
2490
+ }
2491
+ };
2492
+ const popoverContentStyles = theme => ({
2493
+ backgroundColor: theme.colors.backgroundPrimary,
2494
+ color: theme.colors.textPrimary,
2495
+ lineHeight: theme.typography.lineHeightBase,
2496
+ border: `1px solid ${theme.colors.borderDecorative}`,
2497
+ borderRadius: theme.borders.borderRadiusMd,
2498
+ padding: `${theme.spacing.sm}px`,
2499
+ boxShadow: theme.general.shadowLow,
2500
+ userSelect: 'none',
2501
+ zIndex: theme.options.zIndexBase + 30,
2502
+ ...getDarkModePortalStyles(theme),
2503
+ a: importantify({
2504
+ color: theme.colors.actionTertiaryTextDefault,
2505
+ cursor: 'default',
2506
+ '&:hover, &:focus': {
2507
+ color: theme.colors.actionTertiaryTextHover
2508
+ }
2509
+ }),
2510
+ '&:focus-visible': {
2511
+ outlineStyle: 'solid',
2512
+ outlineWidth: '2px',
2513
+ outlineOffset: '1px',
2514
+ outlineColor: theme.colors.primary
2515
+ }
2516
+ });
2517
+ const contentStyles = theme => ({
2518
+ ...popoverContentStyles(theme)
2519
+ });
2520
+
2521
+ var Popover = /*#__PURE__*/Object.freeze({
2522
+ __proto__: null,
2523
+ Anchor: Anchor,
2524
+ Arrow: Arrow,
2525
+ Close: Close,
2526
+ Content: Content,
2527
+ Root: Root,
2528
+ Trigger: Trigger
2529
+ });
2530
+
2531
+ const {
2532
+ Text: AntDText$1
2533
+ } = Typography$1;
2534
+ function getTextEmotionStyles$1(theme, props) {
2913
2535
  return /*#__PURE__*/css({
2914
- display: 'inline-flex !important',
2915
- width: 'auto',
2916
- [`& > ${inputClass}`]: {
2917
- flexGrow: 1,
2918
- '&:disabled': {
2919
- border: 'none',
2920
- '&:hover': {
2921
- borderRight: `1px solid ${theme.colors.actionDisabledText} !important`
2536
+ '&&': {
2537
+ display: 'block',
2538
+ fontSize: theme.typography.fontSizeSm,
2539
+ lineHeight: theme.typography.lineHeightSm,
2540
+ color: theme.colors.textSecondary,
2541
+ ...(props.withoutMargins && {
2542
+ '&&': {
2543
+ marginTop: 0,
2544
+ marginBottom: 0
2922
2545
  }
2923
- },
2924
- '&[data-validation]': {
2925
- marginRight: 0
2926
- }
2927
- },
2928
- [`& > ${buttonClass} > span`]: {
2929
- verticalAlign: 'middle'
2930
- },
2931
- [`& > ${buttonClass}:disabled, & > ${buttonClass}:disabled:hover`]: {
2932
- borderLeft: `1px solid ${theme.colors.actionDisabledText} !important`
2546
+ })
2933
2547
  }
2934
- }, process.env.NODE_ENV === "production" ? "" : ";label:getInputGroupStyling;");
2935
- };
2936
- const Group = _ref => {
2937
- let {
2548
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
2549
+ }
2550
+ function Hint(userProps) {
2551
+ const {
2938
2552
  dangerouslySetAntdProps,
2939
- dangerouslyAppendEmotionCSS,
2940
- compact = true,
2553
+ bold,
2554
+ withoutMargins,
2555
+ color,
2941
2556
  ...props
2942
- } = _ref;
2557
+ } = userProps;
2943
2558
  const {
2944
- classNamePrefix,
2945
2559
  theme
2946
2560
  } = useDesignSystemTheme();
2947
2561
  return jsx(DesignSystemAntDConfigProvider, {
2948
- children: jsx(Input$2.Group, {
2949
- css: [getInputGroupStyling(classNamePrefix, theme), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Group;"],
2950
- compact: compact,
2562
+ children: jsx(AntDText$1, {
2563
+ ...addDebugOutlineIfEnabled(),
2951
2564
  ...props,
2565
+ css: getTextEmotionStyles$1(theme, userProps),
2952
2566
  ...dangerouslySetAntdProps
2953
2567
  })
2954
2568
  });
2955
- };
2569
+ }
2956
2570
 
2957
- /**
2958
- * A React custom hook that allows a callback function to be executed exactly once until it is explicitly reset.
2959
- *
2960
- * Usage:
2961
- *
2962
- * const originalCallback = () => { console.log('originalCallback'); }
2963
- * const { callbackOnceUntilReset, reset } = useCallbackOnceUntilReset(originalCallback);
2964
- *
2965
- * // To execute the callback
2966
- * callbackOnceUntilReset(); // Prints 'originalCallback'
2967
- * callbackOnceUntilReset(); // No effect for further calls
2968
- * reset();
2969
- * callbackOnceUntilReset(); // Prints 'originalCallback' again
2970
- */
2971
- const useCallbackOnceUntilReset = callback => {
2972
- const canTriggerRef = useRef(true);
2973
- const reset = useCallback(() => {
2974
- canTriggerRef.current = true;
2975
- }, []);
2976
- const callbackOnceUntilReset = useCallback(() => {
2977
- if (canTriggerRef.current) {
2978
- callback();
2979
- canTriggerRef.current = false;
2571
+ const getLinkStyles = (theme, clsPrefix) => {
2572
+ const classTypography = `.${clsPrefix}-typography`;
2573
+ const styles = {
2574
+ [`&${classTypography}, &${classTypography}:focus`]: {
2575
+ color: theme.colors.actionTertiaryTextDefault
2576
+ },
2577
+ [`&${classTypography}:hover, &${classTypography}:hover .anticon`]: {
2578
+ color: theme.colors.actionTertiaryTextHover,
2579
+ textDecoration: 'underline'
2580
+ },
2581
+ [`&${classTypography}:active, &${classTypography}:active .anticon`]: {
2582
+ color: theme.colors.actionTertiaryTextPress,
2583
+ textDecoration: 'underline'
2584
+ },
2585
+ [`&${classTypography}:focus-visible`]: {
2586
+ textDecoration: 'underline'
2587
+ },
2588
+ '.anticon': {
2589
+ fontSize: 12,
2590
+ verticalAlign: 'baseline'
2980
2591
  }
2981
- }, [callback]);
2982
- return {
2983
- callbackOnceUntilReset,
2984
- reset
2985
2592
  };
2593
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getLinkStyles;");
2986
2594
  };
2987
-
2988
- const getInputStyles = (clsPrefix, theme, _ref, _ref2) => {
2595
+ const getEllipsisNewTabLinkStyles = () => {
2596
+ const styles = {
2597
+ paddingRight: 'calc(2px + 1em)',
2598
+ // 1em for icon
2599
+ position: 'relative'
2600
+ };
2601
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisNewTabLinkStyles;");
2602
+ };
2603
+ const getIconStyles = theme => {
2604
+ const styles = {
2605
+ marginLeft: 4,
2606
+ color: theme.colors.actionTertiaryTextDefault,
2607
+ position: 'relative',
2608
+ top: '1px'
2609
+ };
2610
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getIconStyles;");
2611
+ };
2612
+ const getEllipsisIconStyles = useNewIcons => {
2613
+ const styles = {
2614
+ position: 'absolute',
2615
+ right: 0,
2616
+ bottom: 0,
2617
+ top: 0,
2618
+ display: 'flex',
2619
+ alignItems: 'center',
2620
+ ...(useNewIcons && {
2621
+ fontSize: 12
2622
+ })
2623
+ };
2624
+ return /*#__PURE__*/css(styles, process.env.NODE_ENV === "production" ? "" : ";label:getEllipsisIconStyles;");
2625
+ };
2626
+ const Link = /*#__PURE__*/forwardRef(function Link(_ref, ref) {
2989
2627
  let {
2990
- validationState
2628
+ dangerouslySetAntdProps,
2629
+ componentId,
2630
+ analyticsEvents,
2631
+ onClick,
2632
+ ...props
2991
2633
  } = _ref;
2992
- let {
2993
- useTransparent = false,
2994
- useFocusWithin = false
2995
- } = _ref2;
2996
- const inputClass = `.${clsPrefix}-input`;
2997
- const affixClass = `.${clsPrefix}-input-affix-wrapper`;
2998
- const affixClassFocused = `.${clsPrefix}-input-affix-wrapper-focused`;
2999
- const clearIcon = `.${clsPrefix}-input-clear-icon`;
3000
- const prefixIcon = `.${clsPrefix}-input-prefix`;
3001
- const suffixIcon = `.${clsPrefix}-input-suffix`;
3002
- const validationColor = getValidationStateColor(theme, validationState);
3003
- const focusSpecifier = useFocusWithin ? 'focus-within' : 'focus';
3004
- const styles = {
2634
+ const {
2635
+ children,
2636
+ openInNewTab,
2637
+ ...restProps
2638
+ } = props;
2639
+ const {
2640
+ theme,
2641
+ classNamePrefix
2642
+ } = useDesignSystemTheme();
2643
+ const eventContext = useDesignSystemEventComponentCallbacks({
2644
+ componentType: DesignSystemEventProviderComponentTypes.TypographyLink,
2645
+ componentId,
2646
+ analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnClick],
2647
+ shouldStartInteraction: false
2648
+ });
2649
+ const onClickHandler = useCallback(e => {
2650
+ eventContext.onClick();
2651
+ onClick === null || onClick === void 0 || onClick(e);
2652
+ }, [eventContext, onClick]);
2653
+ const newTabProps = {
2654
+ rel: 'noopener noreferrer',
2655
+ target: '_blank'
2656
+ };
2657
+ const linkProps = openInNewTab ? {
2658
+ ...restProps,
2659
+ ...newTabProps
2660
+ } : {
2661
+ ...restProps
2662
+ };
2663
+ const linkStyles = props.ellipsis && openInNewTab ? [getLinkStyles(theme, classNamePrefix), getEllipsisNewTabLinkStyles()] : getLinkStyles(theme, classNamePrefix);
2664
+ const iconStyles = props.ellipsis ? [getIconStyles(theme), getEllipsisIconStyles()] : getIconStyles(theme);
2665
+ return jsx(DesignSystemAntDConfigProvider, {
2666
+ children: jsxs(Typography$1.Link, {
2667
+ ...addDebugOutlineIfEnabled(),
2668
+ "aria-disabled": linkProps.disabled,
2669
+ css: linkStyles,
2670
+ ref: ref,
2671
+ onClick: onClickHandler,
2672
+ ...linkProps,
2673
+ ...dangerouslySetAntdProps,
2674
+ children: [children, openInNewTab ? jsx(NewWindowIcon$1, {
2675
+ css: iconStyles,
2676
+ ...newTabProps
2677
+ }) : null]
2678
+ })
2679
+ });
2680
+ });
2681
+
2682
+ const {
2683
+ Paragraph: AntDParagraph
2684
+ } = Typography$1;
2685
+ function getParagraphEmotionStyles(theme, clsPrefix, props) {
2686
+ return /*#__PURE__*/css({
3005
2687
  '&&': {
2688
+ fontSize: theme.typography.fontSizeBase,
2689
+ fontWeight: theme.typography.typographyRegularFontWeight,
3006
2690
  lineHeight: theme.typography.lineHeightBase,
3007
- minHeight: theme.general.heightSm,
3008
- ...(validationState && {
3009
- borderColor: validationColor
3010
- }),
3011
- '&:hover': {
3012
- borderColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundHover
3013
- },
3014
- [`&:${focusSpecifier}`]: {
3015
- outlineColor: validationState ? validationColor : theme.colors.actionPrimaryBackgroundDefault,
3016
- outlineWidth: 2,
3017
- outlineOffset: -2,
3018
- outlineStyle: 'solid',
3019
- boxShadow: 'none',
3020
- borderColor: 'transparent'
3021
- },
3022
- '&:disabled': {
3023
- backgroundColor: theme.colors.actionDisabledBackground,
3024
- color: theme.colors.actionDisabledText
3025
- },
3026
- '&::placeholder': {
3027
- color: theme.colors.textPlaceholder
3028
- }
2691
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
3029
2692
  },
3030
- [`&${inputClass}, ${inputClass}`]: {
3031
- ...(useTransparent && {
3032
- backgroundColor: 'transparent'
3033
- })
2693
+ '& .anticon': {
2694
+ verticalAlign: 'text-bottom'
3034
2695
  },
3035
- [`&${affixClass}`]: {
3036
- ...(useTransparent && {
3037
- backgroundColor: 'transparent'
3038
- }),
2696
+ [`& .${clsPrefix}-btn-link`]: {
2697
+ verticalAlign: 'baseline !important'
2698
+ }
2699
+ }, props.disabled && {
2700
+ '&&': {
2701
+ color: theme.colors.actionDisabledText
2702
+ }
2703
+ }, props.withoutMargins && {
2704
+ '&&': {
2705
+ marginTop: 0,
2706
+ marginBottom: 0
2707
+ }
2708
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getParagraphEmotionStyles;");
2709
+ }
2710
+ function Paragraph(userProps) {
2711
+ const {
2712
+ dangerouslySetAntdProps,
2713
+ withoutMargins,
2714
+ color,
2715
+ ...props
2716
+ } = userProps;
2717
+ const {
2718
+ theme,
2719
+ classNamePrefix
2720
+ } = useDesignSystemTheme();
2721
+ return jsx(DesignSystemAntDConfigProvider, {
2722
+ children: jsx(AntDParagraph, {
2723
+ ...addDebugOutlineIfEnabled(),
2724
+ ...props,
2725
+ className: props.className,
2726
+ css: getParagraphEmotionStyles(theme, classNamePrefix, userProps),
2727
+ ...dangerouslySetAntdProps
2728
+ })
2729
+ });
2730
+ }
2731
+
2732
+ const {
2733
+ Text: AntDText
2734
+ } = Typography$1;
2735
+ function getTextEmotionStyles(theme, props) {
2736
+ return /*#__PURE__*/css({
2737
+ '&&': {
2738
+ fontSize: theme.typography.fontSizeBase,
2739
+ fontWeight: theme.typography.typographyRegularFontWeight,
3039
2740
  lineHeight: theme.typography.lineHeightBase,
3040
- paddingTop: 5,
3041
- paddingBottom: 5,
3042
- minHeight: theme.general.heightSm,
3043
- '::before': {
3044
- lineHeight: theme.typography.lineHeightBase
3045
- },
3046
- '&:hover': {
3047
- borderColor: theme.colors.actionPrimaryBackgroundHover
3048
- },
3049
- [`input.${clsPrefix}-input`]: {
3050
- borderRadius: 0
3051
- }
3052
- },
3053
- [`&${affixClassFocused}`]: {
3054
- boxShadow: 'none',
3055
- [`&&, &:${focusSpecifier}`]: {
3056
- outlineColor: theme.colors.actionPrimaryBackgroundDefault,
3057
- outlineWidth: 2,
3058
- outlineOffset: -2,
3059
- outlineStyle: 'solid',
3060
- boxShadow: 'none',
3061
- borderColor: 'transparent'
2741
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
2742
+ }
2743
+ }, props.disabled && {
2744
+ '&&': {
2745
+ color: theme.colors.actionDisabledText
2746
+ }
2747
+ }, props.hint && {
2748
+ '&&': {
2749
+ fontSize: theme.typography.fontSizeSm,
2750
+ lineHeight: theme.typography.lineHeightSm
2751
+ }
2752
+ }, props.bold && {
2753
+ '&&': {
2754
+ fontSize: theme.typography.fontSizeBase,
2755
+ fontWeight: theme.typography.typographyBoldFontWeight,
2756
+ lineHeight: theme.typography.lineHeightBase
2757
+ }
2758
+ }, props.code && {
2759
+ '&& > code': {
2760
+ color: theme.colors.textPrimary,
2761
+ fontSize: theme.typography.fontSizeBase,
2762
+ lineHeight: theme.typography.lineHeightBase,
2763
+ background: theme.colors.typographyCodeBg,
2764
+ fontFamily: 'monospace',
2765
+ borderRadius: theme.borders.borderRadiusMd,
2766
+ padding: '2px 4px',
2767
+ border: 'unset',
2768
+ margin: 0
2769
+ }
2770
+ }, props.size && {
2771
+ '&&': (() => {
2772
+ switch (props.size) {
2773
+ case 'xxl':
2774
+ return {
2775
+ fontSize: theme.typography.fontSizeXxl,
2776
+ lineHeight: theme.typography.lineHeightXxl,
2777
+ '& .anticon': {
2778
+ lineHeight: theme.typography.lineHeightXxl,
2779
+ verticalAlign: 'middle'
2780
+ }
2781
+ };
2782
+ case 'xl':
2783
+ return {
2784
+ fontSize: theme.typography.fontSizeXl,
2785
+ lineHeight: theme.typography.lineHeightXl,
2786
+ '& .anticon': {
2787
+ lineHeight: theme.typography.lineHeightXl,
2788
+ verticalAlign: 'middle'
2789
+ }
2790
+ };
2791
+ case 'lg':
2792
+ return {
2793
+ fontSize: theme.typography.fontSizeLg,
2794
+ lineHeight: theme.typography.lineHeightLg,
2795
+ '& .anticon': {
2796
+ lineHeight: theme.typography.lineHeightLg,
2797
+ verticalAlign: 'middle'
2798
+ }
2799
+ };
2800
+ case 'sm':
2801
+ return {
2802
+ fontSize: theme.typography.fontSizeSm,
2803
+ lineHeight: theme.typography.lineHeightSm,
2804
+ '& .anticon': {
2805
+ verticalAlign: '-0.219em'
2806
+ }
2807
+ };
2808
+ default:
2809
+ return {};
3062
2810
  }
3063
- },
3064
- [clearIcon]: {
3065
- fontSize: theme.typography.fontSizeSm
3066
- },
3067
- [prefixIcon]: {
3068
- marginRight: theme.spacing.sm,
3069
- color: theme.colors.textSecondary
3070
- },
3071
- [suffixIcon]: {
3072
- marginLeft: theme.spacing.sm,
3073
- color: theme.colors.textSecondary
3074
- },
3075
- ...getAnimationCss(theme.options.enableAnimation)
3076
- };
3077
- return styles;
3078
- };
3079
- const getInputEmotionStyles = (clsPrefix, theme, _ref3, useTransparent) => {
3080
- let {
3081
- validationState
3082
- } = _ref3;
3083
- const styles = getInputStyles(clsPrefix, theme, {
3084
- validationState
3085
- }, {
3086
- useTransparent
3087
- });
3088
- return /*#__PURE__*/css(importantify(styles), process.env.NODE_ENV === "production" ? "" : ";label:getInputEmotionStyles;");
3089
- };
3090
- const Input$1 = /*#__PURE__*/forwardRef(function Input(_ref4, ref) {
3091
- let {
3092
- validationState,
3093
- autoComplete = 'off',
2811
+ })()
2812
+ }, props.withoutMargins && {
2813
+ '&&': {
2814
+ marginTop: 0,
2815
+ marginBottom: 0
2816
+ }
2817
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTextEmotionStyles;");
2818
+ }
2819
+ function Text(userProps) {
2820
+ // Omit props that are not supported by `antd`
2821
+ const {
3094
2822
  dangerouslySetAntdProps,
3095
- dangerouslyAppendEmotionCSS,
3096
- onChange,
3097
- onClear,
3098
- onFocus,
3099
- componentId,
3100
- analyticsEvents,
2823
+ bold,
2824
+ hint,
2825
+ withoutMargins,
2826
+ color,
3101
2827
  ...props
3102
- } = _ref4;
2828
+ } = userProps;
3103
2829
  const {
3104
- classNamePrefix,
3105
2830
  theme
3106
2831
  } = useDesignSystemTheme();
3107
- const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
3108
- const eventContext = useDesignSystemEventComponentCallbacks({
3109
- componentType: DesignSystemEventProviderComponentTypes.Input,
3110
- componentId,
3111
- analyticsEvents: analyticsEvents !== null && analyticsEvents !== void 0 ? analyticsEvents : [DesignSystemEventProviderAnalyticsEventTypes.OnValueChange]
3112
- });
3113
-
3114
- // Prevents multiple onValueChange triggers until after a focus event resets it.
3115
- const {
3116
- callbackOnceUntilReset: sendAnalyticsEventOncePerFocus,
3117
- reset: resetSendAnalyticsEventOnFocus
3118
- } = useCallbackOnceUntilReset(eventContext.onValueChange);
3119
- const handleChange = e => {
3120
- sendAnalyticsEventOncePerFocus();
3121
- // If the input is cleared, call the onClear handler, but only
3122
- // if the event is not an input event -- which is the case when you click the
3123
- // ant-provided (X) button.
3124
- if (!e.target.value && e.nativeEvent instanceof InputEvent === false && onClear) {
3125
- onClear === null || onClear === void 0 || onClear();
3126
- } else {
3127
- onChange === null || onChange === void 0 || onChange(e);
3128
- }
3129
- };
3130
- const handleFocus = e => {
3131
- resetSendAnalyticsEventOnFocus();
3132
- onFocus === null || onFocus === void 0 || onFocus(e);
3133
- };
3134
2832
  return jsx(DesignSystemAntDConfigProvider, {
3135
- children: jsx(Input$2, {
3136
- autoComplete: autoComplete,
3137
- "data-validation": validationState,
3138
- ref: ref,
3139
- css: [getInputEmotionStyles(classNamePrefix, theme, {
3140
- validationState
3141
- }, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Input;"],
3142
- onChange: handleChange,
3143
- onFocus: handleFocus,
2833
+ children: jsx(AntDText, {
2834
+ ...addDebugOutlineIfEnabled(),
3144
2835
  ...props,
2836
+ className: props.className,
2837
+ css: getTextEmotionStyles(theme, userProps),
3145
2838
  ...dangerouslySetAntdProps
3146
2839
  })
3147
2840
  });
3148
- });
2841
+ }
3149
2842
 
3150
- const Password = /*#__PURE__*/forwardRef(function Password(_ref, ref) {
3151
- let {
3152
- validationState,
3153
- autoComplete = 'off',
2843
+ const {
2844
+ Title: AntDTitle
2845
+ } = Typography$1;
2846
+ function getLevelStyles(theme, props) {
2847
+ switch (props.level) {
2848
+ case 1:
2849
+ return /*#__PURE__*/css({
2850
+ '&&': {
2851
+ fontSize: theme.typography.fontSizeXxl,
2852
+ lineHeight: theme.typography.lineHeightXxl,
2853
+ fontWeight: theme.typography.typographyBoldFontWeight
2854
+ },
2855
+ '& > .anticon': {
2856
+ lineHeight: theme.typography.lineHeightXxl
2857
+ }
2858
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2859
+ case 2:
2860
+ return /*#__PURE__*/css({
2861
+ '&&': {
2862
+ fontSize: theme.typography.fontSizeXl,
2863
+ lineHeight: theme.typography.lineHeightXl,
2864
+ fontWeight: theme.typography.typographyBoldFontWeight
2865
+ },
2866
+ '& > .anticon': {
2867
+ lineHeight: theme.typography.lineHeightXl
2868
+ }
2869
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2870
+ case 3:
2871
+ return /*#__PURE__*/css({
2872
+ '&&': {
2873
+ fontSize: theme.typography.fontSizeLg,
2874
+ lineHeight: theme.typography.lineHeightLg,
2875
+ fontWeight: theme.typography.typographyBoldFontWeight
2876
+ },
2877
+ '& > .anticon': {
2878
+ lineHeight: theme.typography.lineHeightLg
2879
+ }
2880
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2881
+ case 4:
2882
+ default:
2883
+ return /*#__PURE__*/css({
2884
+ '&&': {
2885
+ fontSize: theme.typography.fontSizeMd,
2886
+ lineHeight: theme.typography.lineHeightMd,
2887
+ fontWeight: theme.typography.typographyBoldFontWeight
2888
+ },
2889
+ '& > .anticon': {
2890
+ lineHeight: theme.typography.lineHeightMd
2891
+ }
2892
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
2893
+ }
2894
+ }
2895
+ function getTitleEmotionStyles(theme, props) {
2896
+ return /*#__PURE__*/css(getLevelStyles(theme, props), {
2897
+ '&&': {
2898
+ color: getTypographyColor(theme, props.color, theme.colors.textPrimary)
2899
+ },
2900
+ '& > .anticon': {
2901
+ verticalAlign: 'middle'
2902
+ }
2903
+ }, props.withoutMargins && {
2904
+ '&&': {
2905
+ marginTop: '0 !important',
2906
+ // override general styling
2907
+ marginBottom: '0 !important' // override general styling
2908
+ }
2909
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getTitleEmotionStyles;");
2910
+ }
2911
+ function Title(userProps) {
2912
+ const {
3154
2913
  dangerouslySetAntdProps,
3155
- dangerouslyAppendEmotionCSS,
2914
+ withoutMargins,
2915
+ color,
3156
2916
  ...props
3157
- } = _ref;
2917
+ } = userProps;
3158
2918
  const {
3159
- classNamePrefix,
3160
2919
  theme
3161
2920
  } = useDesignSystemTheme();
3162
- const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
3163
2921
  return jsx(DesignSystemAntDConfigProvider, {
3164
- children: jsx(Input$2.Password, {
3165
- visibilityToggle: false,
3166
- ref: ref,
3167
- autoComplete: autoComplete,
3168
- css: [getInputEmotionStyles(classNamePrefix, theme, {
3169
- validationState
3170
- }, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:Password;"],
2922
+ children: jsx(AntDTitle, {
2923
+ ...addDebugOutlineIfEnabled(),
3171
2924
  ...props,
2925
+ className: props.className,
2926
+ css: getTitleEmotionStyles(theme, userProps),
3172
2927
  ...dangerouslySetAntdProps
3173
2928
  })
3174
2929
  });
3175
- });
2930
+ }
3176
2931
 
3177
- const TextArea = /*#__PURE__*/forwardRef(function TextArea(_ref, ref) {
2932
+ const Truncate = _ref => {
3178
2933
  let {
3179
- validationState,
3180
- autoComplete = 'off',
3181
- dangerouslySetAntdProps,
3182
- dangerouslyAppendEmotionCSS,
2934
+ children,
2935
+ lines = 1,
3183
2936
  ...props
3184
2937
  } = _ref;
3185
- const {
3186
- classNamePrefix,
3187
- theme
3188
- } = useDesignSystemTheme();
3189
- const useTransparent = safex('databricks.fe.designsystem.useTransparentInput', false);
3190
- return jsx(DesignSystemAntDConfigProvider, {
3191
- children: jsx(Input$2.TextArea, {
3192
- ref: ref,
3193
- autoComplete: autoComplete,
3194
- css: [getInputEmotionStyles(classNamePrefix, theme, {
3195
- validationState
3196
- }, useTransparent), dangerouslyAppendEmotionCSS, process.env.NODE_ENV === "production" ? "" : ";label:TextArea;"],
3197
- ...props,
3198
- ...dangerouslySetAntdProps
3199
- })
3200
- });
3201
- });
3202
-
3203
- // Properly creates the namespace and dot-notation components with correct types.
3204
- const InputNamespace = /* #__PURE__ */Object.assign(Input$1, {
3205
- TextArea,
3206
- Password,
3207
- Group
3208
- });
3209
- const Input = InputNamespace;
2938
+ const [textContent, setTextContent] = useState('');
2939
+ const spanRef = useRef(null);
3210
2940
 
3211
- function Stepper(_ref) {
3212
- let {
3213
- direction: requestedDirection,
3214
- currentStepIndex: currentStep,
3215
- steps,
3216
- localizeStepNumber,
3217
- responsive = true
3218
- } = _ref;
3219
- const {
3220
- theme
3221
- } = useDesignSystemTheme();
3222
- const ref = useRef(null);
3223
- const {
3224
- direction
3225
- } = useResponsiveDirection({
3226
- ref,
3227
- requestedDirection,
3228
- responsive,
3229
- enabled: steps.length > 0
3230
- });
3231
- if (steps.length === 0) {
3232
- return null;
3233
- }
3234
- const isHorizontal = direction === 'horizontal';
3235
- const currentStepIndex = currentStep ? Math.min(steps.length - 1, Math.max(0, currentStep)) : 0;
3236
- return jsx("ol", {
3237
- css: /*#__PURE__*/css(getStepsStyle(theme, isHorizontal), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3238
- ref: ref,
3239
- children: steps.map((step, index) => {
3240
- const isCurrentStep = index === currentStepIndex;
3241
- const isLastStep = index === steps.length - 1;
3242
- const displayEndingDivider = !isLastStep;
3243
- const contentTitleLevel = isCurrentStep ? 3 : 4;
3244
- const StepIcon = step.icon;
3245
- const {
3246
- icon,
3247
- iconBackgroundColor,
3248
- iconTextColor,
3249
- titleTextColor,
3250
- descriptionTextColor,
3251
- hasStepItemIconBorder
3252
- } = getStepContentStyleFields(theme, isCurrentStep, step.status, StepIcon);
3253
- return jsx("li", {
3254
- "aria-current": isCurrentStep,
3255
- css: /*#__PURE__*/css(getStepItemStyle(theme, isHorizontal, isLastStep), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3256
- children: jsxs(StepContentGrid, {
3257
- isHorizontal: isHorizontal,
3258
- isCurrentStep: isCurrentStep,
3259
- children: [jsx("div", {
3260
- css: /*#__PURE__*/css(getStepItemIconParentStyle(theme, isCurrentStep, iconBackgroundColor, hasStepItemIconBorder), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3261
- children: StepIcon ? jsx(StepIcon, {
3262
- statusColor: iconTextColor,
3263
- status: step.status
3264
- }) : icon ? jsx("span", {
3265
- css: /*#__PURE__*/css({
3266
- color: iconTextColor
3267
- }, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3268
- children: icon
3269
- }) : jsx(Typography.Title, {
3270
- level: contentTitleLevel,
3271
- css: /*#__PURE__*/css({
3272
- color: `${iconTextColor} !important`
3273
- }, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3274
- withoutMargins: true,
3275
- children: localizeStepNumber(index + 1)
3276
- })
3277
- }), jsx(Typography.Title, {
3278
- level: contentTitleLevel,
3279
- withoutMargins: true,
3280
- css: /*#__PURE__*/css({
3281
- flexShrink: 0,
3282
- color: `${titleTextColor} !important`
3283
- }, process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3284
- children: step.title
3285
- }), displayEndingDivider && jsx("div", {
3286
- css: /*#__PURE__*/css(getStepEndingDividerStyles(theme, isHorizontal, isCurrentStep), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;")
3287
- }), step.description && jsx(Typography.Text, {
3288
- css: /*#__PURE__*/css(getStepDescriptionStyles(theme, isHorizontal, isLastStep, descriptionTextColor), process.env.NODE_ENV === "production" ? "" : ";label:Stepper;"),
3289
- withoutMargins: true,
3290
- size: "sm",
3291
- children: step.description
3292
- })]
3293
- })
3294
- }, index);
3295
- })
3296
- });
3297
- }
3298
- function getStepsStyle(theme, isHorizontal) {
3299
- return /*#__PURE__*/css({
3300
- listStyle: 'none',
3301
- display: 'flex',
3302
- flexDirection: isHorizontal ? 'row' : 'column',
3303
- flexWrap: 'wrap',
3304
- alignItems: 'flex-start',
3305
- gap: isHorizontal ? theme.spacing.md : theme.spacing.sm,
3306
- width: '100%',
3307
- margin: '0',
3308
- padding: '0'
3309
- }, process.env.NODE_ENV === "production" ? "" : ";label:getStepsStyle;");
3310
- }
3311
- function getStepItemStyle(theme, isHorizontal, isLastStep) {
3312
- return /*#__PURE__*/css({
3313
- display: 'flex',
3314
- flexDirection: 'column',
3315
- alignItems: 'center',
3316
- justifyContent: 'flex-start',
3317
- flexGrow: isLastStep ? 0 : 1,
3318
- marginRight: isLastStep ? theme.spacing.lg + theme.spacing.md : 0,
3319
- width: isHorizontal ? undefined : '100%'
3320
- }, process.env.NODE_ENV === "production" ? "" : ";label:getStepItemStyle;");
3321
- }
3322
- function getStepContentStyleFields(theme, isCurrentStep, status, icon) {
3323
- const fields = getStepContentStyleFieldsFromStatus(theme, isCurrentStep, status);
3324
- if (icon) {
3325
- return {
3326
- ...fields,
3327
- icon: undefined,
3328
- iconBackgroundColor: undefined,
3329
- iconTextColor: getCustomIconColor(theme, isCurrentStep, status),
3330
- hasStepItemIconBorder: false
3331
- };
3332
- }
3333
- return fields;
3334
- }
3335
- function getCustomIconColor(theme, isCurrentStep, status) {
3336
- switch (status) {
3337
- case 'completed':
3338
- return theme.colors.actionDefaultBackgroundPress;
3339
- case 'loading':
3340
- return theme.colors.textPlaceholder;
3341
- case 'error':
3342
- return theme.colors.textValidationDanger;
3343
- default:
3344
- case 'upcoming':
3345
- return isCurrentStep ? theme.colors.actionLinkDefault : theme.colors.textPlaceholder;
3346
- }
3347
- }
3348
- function getStepContentStyleFieldsFromStatus(theme, isCurrentStep, status) {
3349
- switch (status) {
3350
- case 'completed':
3351
- return {
3352
- icon: jsx(CheckIcon$1, {}),
3353
- iconBackgroundColor: theme.colors.actionDefaultBackgroundPress,
3354
- iconTextColor: theme.colors.textPlaceholder,
3355
- titleTextColor: theme.colors.textPrimary,
3356
- descriptionTextColor: theme.colors.textSecondary,
3357
- hasStepItemIconBorder: true
3358
- };
3359
- case 'loading':
3360
- return {
3361
- icon: jsx(LoadingIcon$1, {
3362
- spin: true,
3363
- css: /*#__PURE__*/css({
3364
- fontSize: isCurrentStep ? theme.typography.fontSizeXl : theme.typography.fontSizeLg
3365
- }, process.env.NODE_ENV === "production" ? "" : ";label:icon;")
3366
- }),
3367
- iconBackgroundColor: undefined,
3368
- iconTextColor: theme.colors.textPlaceholder,
3369
- titleTextColor: isCurrentStep ? theme.colors.textPrimary : theme.colors.textSecondary,
3370
- descriptionTextColor: theme.colors.textSecondary,
3371
- hasStepItemIconBorder: false
3372
- };
3373
- case 'error':
3374
- return {
3375
- icon: jsx(CloseIcon$1, {}),
3376
- iconBackgroundColor: theme.colors.textValidationDanger,
3377
- iconTextColor: 'white',
3378
- titleTextColor: theme.colors.textValidationDanger,
3379
- descriptionTextColor: theme.colors.textValidationDanger,
3380
- hasStepItemIconBorder: false
3381
- };
3382
- default:
3383
- case 'upcoming':
3384
- if (isCurrentStep) {
3385
- return {
3386
- icon: undefined,
3387
- iconBackgroundColor: theme.colors.actionLinkDefault,
3388
- iconTextColor: 'white',
3389
- titleTextColor: theme.colors.textPrimary,
3390
- descriptionTextColor: theme.colors.textPrimary,
3391
- hasStepItemIconBorder: false
3392
- };
3393
- }
3394
- return {
3395
- icon: undefined,
3396
- iconBackgroundColor: undefined,
3397
- iconTextColor: theme.colors.textPlaceholder,
3398
- titleTextColor: theme.colors.textSecondary,
3399
- descriptionTextColor: theme.colors.textSecondary,
3400
- hasStepItemIconBorder: true
3401
- };
3402
- }
3403
- }
3404
- const MaxHorizontalStepDescriptionWidth = 140;
3405
- const CurrentStepIconSize = DEFAULT_SPACING_UNIT * 4;
3406
- const NonCurrentStepIconSize = DEFAULT_SPACING_UNIT * 3;
3407
- function getStepItemIconParentStyle(theme, isCurrentStep, iconBackgroundColor, hasStepItemIconBorder) {
3408
- return /*#__PURE__*/css({
3409
- width: isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize,
3410
- height: isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize,
3411
- backgroundColor: iconBackgroundColor,
3412
- borderRadius: '50%',
3413
- display: 'flex',
3414
- justifyContent: 'center',
3415
- alignItems: 'center',
3416
- fontSize: '20px',
3417
- flexShrink: 0,
3418
- border: hasStepItemIconBorder ? `1px solid ${theme.colors.textPlaceholder}` : undefined
3419
- }, process.env.NODE_ENV === "production" ? "" : ";label:getStepItemIconParentStyle;");
3420
- }
3421
- function getStepEndingDividerStyles(theme, isHorizontal, isCurrentStep) {
3422
- const backgroundColor = isCurrentStep ? theme.colors.actionLinkDefault : theme.colors.border;
3423
- if (isHorizontal) {
3424
- return /*#__PURE__*/css({
3425
- backgroundColor,
3426
- height: '1px',
3427
- width: '100%',
3428
- minWidth: theme.spacing.md
3429
- }, process.env.NODE_ENV === "production" ? "" : ";label:getStepEndingDividerStyles;");
3430
- }
3431
- return /*#__PURE__*/css({
3432
- backgroundColor,
3433
- height: '100%',
3434
- minHeight: theme.spacing.md,
3435
- width: '1px',
3436
- alignSelf: 'flex-start',
3437
- marginLeft: theme.spacing.md
3438
- }, process.env.NODE_ENV === "production" ? "" : ";label:getStepEndingDividerStyles;");
3439
- }
3440
- function getStepDescriptionStyles(theme, isHorizontal, isLastStep, textColor) {
3441
- return /*#__PURE__*/css({
3442
- alignSelf: 'flex-start',
3443
- width: '100%',
3444
- gridColumn: isHorizontal || isLastStep ? '2 / span 2' : undefined,
3445
- maxWidth: isHorizontal ? MaxHorizontalStepDescriptionWidth : undefined,
3446
- paddingBottom: isHorizontal ? undefined : theme.spacing.sm,
3447
- color: `${textColor} !important`
3448
- }, process.env.NODE_ENV === "production" ? "" : ";label:getStepDescriptionStyles;");
3449
- }
3450
- function StepContentGrid(_ref2) {
3451
- let {
3452
- children,
3453
- isHorizontal,
3454
- isCurrentStep
3455
- } = _ref2;
3456
- const {
3457
- theme
3458
- } = useDesignSystemTheme();
3459
- if (isHorizontal) {
3460
- return jsx("div", {
3461
- css: /*#__PURE__*/css({
3462
- display: 'grid',
3463
- gridTemplateColumns: `${isCurrentStep ? CurrentStepIconSize : NonCurrentStepIconSize}px fit-content(100%) 1fr`,
3464
- gridTemplateRows: `${CurrentStepIconSize}px auto`,
3465
- alignItems: 'center',
3466
- justifyItems: 'flex-start',
3467
- gridColumnGap: theme.spacing.sm,
3468
- width: '100%'
3469
- }, process.env.NODE_ENV === "production" ? "" : ";label:StepContentGrid;"),
3470
- children: children
3471
- });
3472
- }
3473
- return jsx("div", {
2941
+ // This ensures that truncated text is always available to the user via a native tooltip
2942
+ useEffect(() => {
2943
+ if (spanRef.current) {
2944
+ setTextContent(spanRef.current.textContent || '');
2945
+ }
2946
+ }, [spanRef, children]);
2947
+ return jsx("span", {
2948
+ ref: spanRef,
2949
+ title: textContent,
3474
2950
  css: /*#__PURE__*/css({
3475
- display: 'grid',
3476
- gridTemplateColumns: `${CurrentStepIconSize}px auto`,
3477
- alignItems: 'center',
3478
- justifyItems: 'flex-start',
3479
- gridColumnGap: theme.spacing.md,
3480
- gridRowGap: theme.spacing.sm,
3481
- width: '100%',
3482
- '& > :first-child': {
3483
- // horizontally center the first column (circle/icon)
3484
- justifySelf: 'center'
3485
- }
3486
- }, process.env.NODE_ENV === "production" ? "" : ";label:StepContentGrid;"),
2951
+ overflow: 'hidden',
2952
+ textOverflow: 'ellipsis',
2953
+ whiteSpace: 'normal',
2954
+ wordBreak: 'break-word',
2955
+ display: '-webkit-box',
2956
+ webkitLineClamp: lines,
2957
+ WebkitBoxOrient: 'vertical',
2958
+ WebkitLineClamp: lines
2959
+ }, process.env.NODE_ENV === "production" ? "" : ";label:Truncate;"),
2960
+ ...props,
3487
2961
  children: children
3488
2962
  });
3489
- }
3490
-
3491
- // Ant design uses the same value for their stepper and to works well for us as well.
3492
- const MinimumHorizonalDirectionWidth = 532;
2963
+ };
3493
2964
 
3494
- // exported for unit test
3495
- function useResponsiveDirection(_ref3) {
3496
- let {
3497
- requestedDirection = 'horizontal',
3498
- responsive,
3499
- enabled,
3500
- ref
3501
- } = _ref3;
3502
- const [direction, setDirection] = useState(requestedDirection);
3503
- useEffect(() => {
3504
- if (requestedDirection === 'vertical' || !enabled || !responsive || !ref.current) {
3505
- return;
3506
- }
3507
- let timeoutId;
3508
- const resizeObserver = new ResizeObserver(entries => {
3509
- timeoutId = requestAnimationFrame(() => {
3510
- if (entries.length === 1) {
3511
- const width = entries[0].target.clientWidth || 0;
3512
- setDirection(width < MinimumHorizonalDirectionWidth ? 'vertical' : 'horizontal');
3513
- }
3514
- });
2965
+ const Typography = /* #__PURE__ */(() => {
2966
+ function Typography(_ref) {
2967
+ let {
2968
+ dangerouslySetAntdProps,
2969
+ ...props
2970
+ } = _ref;
2971
+ return jsx(DesignSystemAntDConfigProvider, {
2972
+ children: jsx(Typography$1, {
2973
+ ...addDebugOutlineIfEnabled(),
2974
+ ...props,
2975
+ ...dangerouslySetAntdProps
2976
+ })
3515
2977
  });
3516
- if (ref.current) {
3517
- resizeObserver.observe(ref.current);
3518
- }
3519
- return () => {
3520
- resizeObserver.disconnect();
3521
- cancelAnimationFrame(timeoutId);
3522
- };
3523
- }, [requestedDirection, enabled, ref, responsive]);
3524
- return {
3525
- direction
3526
- };
3527
- }
2978
+ }
2979
+ Typography.Text = Text;
2980
+ Typography.Title = Title;
2981
+ Typography.Paragraph = Paragraph;
2982
+ Typography.Link = Link;
2983
+ Typography.Hint = Hint;
2984
+ Typography.Truncate = Truncate;
2985
+ return Typography;
2986
+ })();
3528
2987
 
3529
- export { NewWindowIcon$1 as $, ApplyDesignSystemContextOverrides as A, Button as B, CloseIcon$1 as C, DesignSystemAntDConfigProvider as D, getDisabledStyles as E, useDesignSystemFlags as F, Stepper as G, getButtonEmotionStyles as H, Icon as I, DesignSystemEventProvider as J, DesignSystemThemeContext as K, LoadingState as L, DesignSystemContext as M, DesignSystemThemeProvider as N, DesignSystemProvider as O, ApplyDesignSystemFlags as P, useAntDConfigProviderContext as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Typography as T, WithDesignSystemThemeHoc as U, CursorIcon$1 as V, WarningIcon$1 as W, FaceFrownIcon$1 as X, FaceNeutralIcon$1 as Y, FaceSmileIcon$1 as Z, MegaphoneIcon$1 as _, getDarkModePortalStyles as a, getInputStyles as a0, LoadingStateContext as a1, getTypographyColor as a2, getBottomOnlyShadowScrollStyles as a3, ColorVars as a4, primitiveColors as a5, ChevronRightIcon$1 as b, useUniqueId as c, useDesignSystemContext as d, CheckIcon$1 as e, Input as f, getAnimationCss as g, getValidationStateColor as h, importantify as i, getShadowScrollStyles as j, DangerIcon$1 as k, LoadingIcon$1 as l, Title as m, AccessibleContainer as n, ChevronLeftIcon$1 as o, useDesignSystemEventComponentCallbacks as p, DesignSystemEventProviderComponentTypes as q, DesignSystemEventProviderAnalyticsEventTypes as r, safex as s, useNotifyOnFirstView as t, useDesignSystemTheme as u, visuallyHidden as v, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as w, lightColorList as x, getDefaultStyles as y, getPrimaryStyles as z };
3530
- //# sourceMappingURL=Stepper-ff25c5d1.js.map
2988
+ export { LoadingStateContext as $, Arrow as A, Button as B, CloseIcon$1 as C, DesignSystemAntDConfigProvider as D, AccessibleContainer as E, DU_BOIS_ENABLE_ANIMATION_CLASSNAME as F, lightColorList as G, getDefaultStyles as H, Icon as I, getPrimaryStyles as J, getDisabledSplitButtonStyles as K, LoadingState as L, getButtonEmotionStyles as M, DesignSystemEventProvider as N, useDesignSystemEventSuppressInteractionContext as O, DesignSystemThemeContext as P, DesignSystemContext as Q, RestoreAntDDefaultClsPrefix as R, Spinner as S, Trigger as T, DesignSystemThemeProvider as U, DesignSystemProvider as V, WarningIcon$1 as W, ApplyDesignSystemFlags as X, useAntDConfigProviderContext as Y, WithDesignSystemThemeHoc as Z, NewWindowIcon$1 as _, useDesignSystemTheme as a, Popover as a0, getTypographyColor as a1, getBottomOnlyShadowScrollStyles as a2, ColorVars as a3, primitiveColors as a4, DEFAULT_SPACING_UNIT as a5, addDebugOutlineStylesIfEnabled as b, useDesignSystemEventComponentCallbacks as c, DesignSystemEventProviderComponentTypes as d, DesignSystemEventProviderAnalyticsEventTypes as e, useNotifyOnFirstView as f, getAnimationCss as g, addDebugOutlineIfEnabled as h, getDarkModePortalStyles as i, useUniqueId as j, Root as k, Content as l, DesignSystemEventSuppressInteractionProviderContext as m, DesignSystemEventSuppressInteractionTrueContextValue as n, Typography as o, importantify as p, CheckIcon$1 as q, getValidationStateColor as r, safex as s, ApplyDesignSystemContextOverrides as t, useDesignSystemContext as u, visuallyHidden as v, getShadowScrollStyles as w, DangerIcon$1 as x, LoadingIcon$1 as y, Title as z };
2989
+ //# sourceMappingURL=Typography-ed0b1c4d.js.map