@ultraviolet/ui 1.51.0 → 1.51.2

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 (440) hide show
  1. package/dist/components/ActionBar/index.d.ts +20 -0
  2. package/dist/components/ActionBar/index.js +40 -0
  3. package/dist/components/Alert/index.d.ts +27 -0
  4. package/dist/components/Alert/index.js +126 -0
  5. package/dist/components/Avatar/index.d.ts +43 -0
  6. package/dist/components/Avatar/index.js +54 -0
  7. package/dist/components/Badge/index.d.ts +31 -0
  8. package/dist/components/Badge/index.js +115 -0
  9. package/dist/components/Banner/assets/default-image-small.svg.js +4 -0
  10. package/dist/components/Banner/assets/default-image.svg.js +4 -0
  11. package/dist/components/Banner/index.d.ts +24 -0
  12. package/dist/components/Banner/index.js +191 -0
  13. package/dist/components/BarChart/Tooltip.d.ts +9 -0
  14. package/dist/components/BarChart/Tooltip.js +36 -0
  15. package/dist/components/BarChart/index.d.ts +27 -0
  16. package/dist/components/BarChart/index.js +82 -0
  17. package/dist/components/BarStack/index.d.ts +36 -0
  18. package/dist/components/BarStack/index.js +188 -0
  19. package/dist/components/Breadcrumbs/index.d.ts +30 -0
  20. package/dist/components/Breadcrumbs/index.js +76 -0
  21. package/dist/components/Bullet/index.d.ts +39 -0
  22. package/dist/components/Bullet/index.js +88 -0
  23. package/dist/components/Button/index.d.ts +120 -0
  24. package/dist/components/Button/index.js +291 -0
  25. package/dist/components/Card/index.d.ts +20 -0
  26. package/dist/components/Card/index.js +59 -0
  27. package/dist/components/Carousel/index.d.ts +19 -0
  28. package/dist/components/Carousel/index.js +147 -0
  29. package/dist/components/Checkbox/index.d.ts +36 -0
  30. package/dist/components/Checkbox/index.js +359 -0
  31. package/dist/components/CheckboxGroup/index.d.ts +24 -0
  32. package/dist/components/CheckboxGroup/index.js +112 -0
  33. package/dist/components/CopyButton/index.d.ts +19 -0
  34. package/dist/components/CopyButton/index.js +37 -0
  35. package/dist/components/DateInput/datepicker.css.js +4 -0
  36. package/dist/components/DateInput/index.d.ts +38 -0
  37. package/dist/components/DateInput/index.js +301 -0
  38. package/dist/components/Dialog/Context.d.ts +7 -0
  39. package/dist/components/Dialog/Context.js +15 -0
  40. package/dist/components/Dialog/constants.d.ts +2 -0
  41. package/dist/components/Dialog/index.d.ts +87 -0
  42. package/dist/components/Dialog/index.js +87 -0
  43. package/dist/components/Dialog/subComponents/Button.d.ts +7 -0
  44. package/dist/components/Dialog/subComponents/Button.js +24 -0
  45. package/dist/components/Dialog/subComponents/Buttons.d.ts +7 -0
  46. package/dist/components/Dialog/subComponents/Buttons.js +12 -0
  47. package/dist/components/Dialog/subComponents/CancelButton.d.ts +8 -0
  48. package/dist/components/Dialog/subComponents/CancelButton.js +9 -0
  49. package/dist/components/Dialog/subComponents/Stack.d.ts +6 -0
  50. package/dist/components/Dialog/subComponents/Stack.js +6 -0
  51. package/dist/components/Dialog/subComponents/Text.d.ts +6 -0
  52. package/dist/components/Dialog/subComponents/Text.js +6 -0
  53. package/dist/components/EmptyState/index.d.ts +38 -0
  54. package/dist/components/EmptyState/index.js +82 -0
  55. package/dist/components/Expandable/index.d.ts +33 -0
  56. package/dist/components/Expandable/index.js +79 -0
  57. package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +3 -0
  58. package/dist/components/GlobalAlert/GlobalAlertLink.js +39 -0
  59. package/dist/components/GlobalAlert/index.d.ts +40 -0
  60. package/dist/components/GlobalAlert/index.js +112 -0
  61. package/dist/components/LineChart/CustomLegend.d.ts +13 -0
  62. package/dist/components/LineChart/CustomLegend.js +109 -0
  63. package/dist/components/LineChart/Tooltip.d.ts +6 -0
  64. package/dist/components/LineChart/Tooltip.js +46 -0
  65. package/dist/components/LineChart/helpers.d.ts +8 -0
  66. package/dist/components/LineChart/helpers.js +50 -0
  67. package/dist/components/LineChart/index.d.ts +25 -0
  68. package/dist/components/LineChart/index.js +118 -0
  69. package/dist/components/Link/index.d.ts +33 -0
  70. package/dist/components/Link/index.js +167 -0
  71. package/dist/components/List/Body.d.ts +6 -0
  72. package/dist/components/List/Body.js +11 -0
  73. package/dist/components/List/Cell.d.ts +12 -0
  74. package/dist/components/List/Cell.js +38 -0
  75. package/dist/components/List/HeaderCell.d.ts +11 -0
  76. package/dist/components/List/HeaderCell.js +96 -0
  77. package/dist/components/List/HeaderRow.d.ts +7 -0
  78. package/dist/components/List/HeaderRow.js +38 -0
  79. package/dist/components/List/ListContext.d.ts +34 -0
  80. package/dist/components/List/ListContext.js +155 -0
  81. package/dist/components/List/Row.d.ts +23 -0
  82. package/dist/components/List/Row.js +194 -0
  83. package/dist/components/List/SelectBar.d.ts +15 -0
  84. package/dist/components/List/SelectBar.js +35 -0
  85. package/dist/components/List/SkeletonRows.d.ts +7 -0
  86. package/dist/components/List/SkeletonRows.js +36 -0
  87. package/dist/components/List/constants.d.ts +2 -0
  88. package/dist/{src/components → components}/List/constants.js +4 -2
  89. package/dist/components/List/index.d.ts +68 -0
  90. package/dist/components/List/index.js +80 -0
  91. package/dist/components/Loader/index.d.ts +22 -0
  92. package/dist/components/Loader/index.js +98 -0
  93. package/dist/components/Menu/Item.d.ts +15 -0
  94. package/dist/components/Menu/Item.js +101 -0
  95. package/dist/components/Menu/index.d.ts +49 -0
  96. package/dist/components/Menu/index.js +182 -0
  97. package/dist/components/MenuV2/Group.d.ts +7 -0
  98. package/dist/components/MenuV2/Group.js +23 -0
  99. package/dist/components/MenuV2/Item.d.ts +16 -0
  100. package/dist/components/MenuV2/Item.js +120 -0
  101. package/dist/components/MenuV2/index.d.ts +90 -0
  102. package/dist/components/MenuV2/index.js +124 -0
  103. package/dist/components/Meter/index.d.ts +26 -0
  104. package/dist/components/Meter/index.js +76 -0
  105. package/dist/components/Modal/Dialog.d.ts +3 -0
  106. package/dist/components/Modal/Dialog.js +197 -0
  107. package/dist/components/Modal/Disclosure.d.ts +3 -0
  108. package/dist/{src/components → components}/Modal/Disclosure.js +12 -12
  109. package/dist/components/Modal/constants.d.ts +3 -0
  110. package/dist/{src/components → components}/Modal/constants.js +8 -6
  111. package/dist/components/Modal/index.d.ts +42 -0
  112. package/dist/components/Modal/index.js +114 -0
  113. package/dist/components/Modal/types.d.ts +48 -0
  114. package/dist/components/Notice/index.d.ts +11 -0
  115. package/dist/components/Notice/index.js +39 -0
  116. package/dist/components/Notification/index.d.ts +36 -0
  117. package/dist/components/Notification/index.js +88 -0
  118. package/dist/components/Notification/react-toastify.css.js +4 -0
  119. package/dist/components/NumberInput/helpers.d.ts +4 -0
  120. package/dist/{src/components → components}/NumberInput/helpers.js +6 -2
  121. package/dist/components/NumberInput/index.d.ts +41 -0
  122. package/dist/components/NumberInput/index.js +349 -0
  123. package/dist/components/NumberInputV2/index.d.ts +27 -0
  124. package/dist/components/NumberInputV2/index.js +370 -0
  125. package/dist/components/Pagination/getPageNumbers.d.ts +8 -0
  126. package/dist/{src/components → components}/Pagination/getPageNumbers.js +4 -12
  127. package/dist/components/Pagination/index.d.ts +30 -0
  128. package/dist/components/Pagination/index.js +124 -0
  129. package/dist/components/PasswordCheck/index.d.ts +20 -0
  130. package/dist/components/PasswordCheck/index.js +29 -0
  131. package/dist/components/PasswordStrengthMeter/index.d.ts +39 -0
  132. package/dist/components/PasswordStrengthMeter/index.js +98 -0
  133. package/dist/components/PieChart/Legends.d.ts +9 -0
  134. package/dist/components/PieChart/Legends.js +120 -0
  135. package/dist/components/PieChart/Tooltip.d.ts +12 -0
  136. package/dist/components/PieChart/Tooltip.js +29 -0
  137. package/dist/components/PieChart/index.d.ts +20 -0
  138. package/dist/components/PieChart/index.js +120 -0
  139. package/dist/components/PieChart/types.d.ts +7 -0
  140. package/dist/components/Popover/index.d.ts +55 -0
  141. package/dist/components/Popover/index.js +149 -0
  142. package/dist/components/Popup/animations.d.ts +11 -0
  143. package/dist/{src/components → components}/Popup/animations.js +7 -6
  144. package/dist/components/Popup/helpers.d.ts +31 -0
  145. package/dist/components/Popup/helpers.js +204 -0
  146. package/dist/components/Popup/index.d.ts +72 -0
  147. package/dist/components/Popup/index.js +385 -0
  148. package/dist/components/ProgressBar/index.d.ts +14 -0
  149. package/dist/components/ProgressBar/index.js +71 -0
  150. package/dist/components/Radio/index.d.ts +21 -0
  151. package/dist/components/Radio/index.js +202 -0
  152. package/dist/components/RadioGroup/index.d.ts +25 -0
  153. package/dist/components/RadioGroup/index.js +104 -0
  154. package/dist/components/Row/index.d.ts +22 -0
  155. package/dist/components/Row/index.js +43 -0
  156. package/dist/components/SelectInput/index.d.ts +75 -0
  157. package/dist/components/SelectInput/index.js +563 -0
  158. package/dist/components/SelectInputV2/Dropdown.d.ts +23 -0
  159. package/dist/components/SelectInputV2/Dropdown.js +669 -0
  160. package/dist/components/SelectInputV2/DropdownOption.d.ts +8 -0
  161. package/dist/components/SelectInputV2/DropdownOption.js +133 -0
  162. package/dist/components/SelectInputV2/SearchBarDropdown.d.ts +9 -0
  163. package/dist/components/SelectInputV2/SearchBarDropdown.js +123 -0
  164. package/dist/components/SelectInputV2/SelectBar.d.ts +14 -0
  165. package/dist/components/SelectInputV2/SelectBar.js +327 -0
  166. package/dist/components/SelectInputV2/SelectInputProvider.d.ts +41 -0
  167. package/dist/components/SelectInputV2/SelectInputProvider.js +203 -0
  168. package/dist/components/SelectInputV2/findOptionInOptions.d.ts +2 -0
  169. package/dist/components/SelectInputV2/findOptionInOptions.js +12 -0
  170. package/dist/components/SelectInputV2/index.d.ts +115 -0
  171. package/dist/components/SelectInputV2/index.js +146 -0
  172. package/dist/components/SelectInputV2/types.d.ts +38 -0
  173. package/dist/{src/components → components}/SelectInputV2/types.js +4 -2
  174. package/dist/components/SelectableCard/index.d.ts +25 -0
  175. package/dist/components/SelectableCard/index.js +193 -0
  176. package/dist/components/SelectableCardGroup/index.d.ts +23 -0
  177. package/dist/components/SelectableCardGroup/index.js +112 -0
  178. package/dist/components/Separator/index.d.ts +17 -0
  179. package/dist/components/Separator/index.js +76 -0
  180. package/dist/components/Skeleton/Block.d.ts +3 -0
  181. package/dist/components/Skeleton/Block.js +30 -0
  182. package/dist/components/Skeleton/Blocks.d.ts +4 -0
  183. package/dist/components/Skeleton/Blocks.js +28 -0
  184. package/dist/components/Skeleton/BoxWithIcon.d.ts +4 -0
  185. package/dist/components/Skeleton/BoxWithIcon.js +29 -0
  186. package/dist/components/Skeleton/Donut.d.ts +1 -0
  187. package/dist/components/Skeleton/Donut.js +36 -0
  188. package/dist/components/Skeleton/IconSkeleton.d.ts +5 -0
  189. package/dist/components/Skeleton/IconSkeleton.js +12 -0
  190. package/dist/components/Skeleton/Line.d.ts +5 -0
  191. package/dist/components/Skeleton/Line.js +13 -0
  192. package/dist/components/Skeleton/List.d.ts +4 -0
  193. package/dist/components/Skeleton/List.js +29 -0
  194. package/dist/components/Skeleton/Slider.d.ts +3 -0
  195. package/dist/components/Skeleton/Slider.js +26 -0
  196. package/dist/components/Skeleton/Square.d.ts +5 -0
  197. package/dist/components/Skeleton/Square.js +10 -0
  198. package/dist/components/Skeleton/index.d.ts +47 -0
  199. package/dist/components/Skeleton/index.js +86 -0
  200. package/dist/components/Snippet/index.d.ts +23 -0
  201. package/dist/components/Snippet/index.js +171 -0
  202. package/dist/components/Stack/index.d.ts +23 -0
  203. package/dist/components/Stack/index.js +36 -0
  204. package/dist/components/Status/index.d.ts +32 -0
  205. package/dist/components/Status/index.js +57 -0
  206. package/dist/components/StepList/index.d.ts +33 -0
  207. package/dist/components/StepList/index.js +69 -0
  208. package/dist/components/Stepper/index.d.ts +15 -0
  209. package/dist/components/Stepper/index.js +153 -0
  210. package/dist/components/SwitchButton/FocusOverlay.d.ts +8 -0
  211. package/dist/components/SwitchButton/FocusOverlay.js +47 -0
  212. package/dist/components/SwitchButton/index.d.ts +26 -0
  213. package/dist/components/SwitchButton/index.js +140 -0
  214. package/dist/components/Table/Body.d.ts +6 -0
  215. package/dist/components/Table/Body.js +5 -0
  216. package/dist/components/Table/Cell.d.ts +9 -0
  217. package/dist/components/Table/Cell.js +10 -0
  218. package/dist/components/Table/Header.d.ts +6 -0
  219. package/dist/components/Table/Header.js +9 -0
  220. package/dist/components/Table/HeaderCell.d.ts +14 -0
  221. package/dist/components/Table/HeaderCell.js +123 -0
  222. package/dist/components/Table/HeaderRow.d.ts +7 -0
  223. package/dist/components/Table/HeaderRow.js +25 -0
  224. package/dist/components/Table/Row.d.ts +14 -0
  225. package/dist/components/Table/Row.js +85 -0
  226. package/dist/components/Table/SelectBar.d.ts +15 -0
  227. package/dist/components/Table/SelectBar.js +35 -0
  228. package/dist/components/Table/SkeletonRows.d.ts +7 -0
  229. package/dist/components/Table/SkeletonRows.js +22 -0
  230. package/dist/components/Table/TableContext.d.ts +27 -0
  231. package/dist/components/Table/TableContext.js +103 -0
  232. package/dist/components/Table/index.d.ts +60 -0
  233. package/dist/components/Table/index.js +81 -0
  234. package/dist/components/Tabs/Tab.d.ts +20 -0
  235. package/dist/components/Tabs/Tab.js +170 -0
  236. package/dist/components/Tabs/TabMenu.d.ts +8 -0
  237. package/dist/components/Tabs/TabMenu.js +63 -0
  238. package/dist/components/Tabs/TabMenuItem.d.ts +20 -0
  239. package/dist/components/Tabs/TabMenuItem.js +39 -0
  240. package/dist/components/Tabs/TabsContext.d.ts +8 -0
  241. package/dist/components/Tabs/TabsContext.js +9 -0
  242. package/dist/components/Tabs/index.d.ts +50 -0
  243. package/dist/components/Tabs/index.js +137 -0
  244. package/dist/components/Tag/index.d.ts +26 -0
  245. package/dist/components/Tag/index.js +153 -0
  246. package/dist/components/TagInput/index.d.ts +55 -0
  247. package/dist/components/TagInput/index.js +316 -0
  248. package/dist/components/TagList/index.d.ts +37 -0
  249. package/dist/components/TagList/index.js +103 -0
  250. package/dist/components/Text/index.d.ts +40 -0
  251. package/dist/components/Text/index.js +107 -0
  252. package/dist/components/TextArea/index.d.ts +50 -0
  253. package/dist/components/TextArea/index.js +226 -0
  254. package/dist/components/TextInput/index.d.ts +75 -0
  255. package/dist/components/TextInput/index.js +472 -0
  256. package/dist/components/TextInputV2/index.d.ts +30 -0
  257. package/dist/components/TextInputV2/index.js +314 -0
  258. package/dist/components/TimeInput/index.d.ts +25 -0
  259. package/dist/components/TimeInput/index.js +199 -0
  260. package/dist/components/Toaster/index.d.ts +46 -0
  261. package/dist/components/Toaster/index.js +131 -0
  262. package/dist/components/Toaster/react-toastify.css.js +4 -0
  263. package/dist/components/Toggle/index.d.ts +34 -0
  264. package/dist/components/Toggle/index.js +196 -0
  265. package/dist/components/ToggleGroup/index.d.ts +24 -0
  266. package/dist/components/ToggleGroup/index.js +87 -0
  267. package/dist/components/Tooltip/index.d.ts +9 -0
  268. package/dist/components/Tooltip/index.js +47 -0
  269. package/dist/components/VerificationCode/index.d.ts +36 -0
  270. package/dist/components/VerificationCode/index.js +222 -0
  271. package/dist/components/index.d.ts +75 -0
  272. package/dist/helpers/isJSON.d.ts +2 -0
  273. package/dist/{src/helpers → helpers}/isJSON.js +4 -3
  274. package/dist/helpers/jestMockMatchMedia.d.ts +6 -0
  275. package/dist/helpers/keycode.d.ts +3 -0
  276. package/dist/helpers/legend.d.ts +2 -0
  277. package/dist/helpers/legend.js +14 -0
  278. package/dist/helpers/numbers.d.ts +2 -0
  279. package/dist/helpers/recursivelyGetChildrenString.d.ts +3 -0
  280. package/dist/helpers/recursivelyGetChildrenString.js +15 -0
  281. package/dist/hooks/useIsOverflowing.d.ts +5 -0
  282. package/dist/hooks/useIsOverflowing.js +23 -0
  283. package/dist/index.d.ts +4 -3693
  284. package/dist/index.js +187 -0
  285. package/dist/mocks/list.d.ts +12 -0
  286. package/dist/theme/index.d.ts +1573 -0
  287. package/dist/theme/index.js +30 -0
  288. package/dist/types.d.ts +6 -0
  289. package/dist/utils/animations.d.ts +27 -0
  290. package/dist/{src/utils → utils}/animations.js +30 -4
  291. package/dist/utils/capitalize.d.ts +2 -0
  292. package/dist/utils/capitalize.js +4 -0
  293. package/dist/utils/ids.d.ts +1 -0
  294. package/dist/utils/ids.js +6 -0
  295. package/dist/utils/index.d.ts +6 -0
  296. package/dist/utils/normalize.d.ts +2 -0
  297. package/dist/{src/utils → utils}/normalize.js +4 -3
  298. package/dist/utils/orderBy.d.ts +2 -0
  299. package/dist/utils/responsive/Breakpoint.d.ts +9 -0
  300. package/dist/utils/responsive/Breakpoint.js +13 -0
  301. package/dist/utils/responsive/index.d.ts +2 -0
  302. package/dist/utils/responsive/utilities.d.ts +3 -0
  303. package/dist/{src/utils → utils}/responsive/utilities.js +9 -6
  304. package/package.json +23 -13
  305. package/dist/react-datepicker/dist/react-datepicker.min.css.js +0 -3
  306. package/dist/react-toastify/dist/ReactToastify.min.css.js +0 -3
  307. package/dist/src/components/ActionBar/index.js +0 -40
  308. package/dist/src/components/Alert/index.js +0 -133
  309. package/dist/src/components/Avatar/index.js +0 -74
  310. package/dist/src/components/Badge/index.js +0 -116
  311. package/dist/src/components/Banner/assets/default-image-small.svg.js +0 -5
  312. package/dist/src/components/Banner/assets/default-image.svg.js +0 -5
  313. package/dist/src/components/Banner/index.js +0 -159
  314. package/dist/src/components/BarChart/Tooltip.js +0 -48
  315. package/dist/src/components/BarChart/index.js +0 -95
  316. package/dist/src/components/BarStack/index.js +0 -136
  317. package/dist/src/components/Breadcrumbs/index.js +0 -82
  318. package/dist/src/components/Bullet/index.js +0 -98
  319. package/dist/src/components/Button/index.js +0 -311
  320. package/dist/src/components/Card/index.js +0 -67
  321. package/dist/src/components/Carousel/index.js +0 -128
  322. package/dist/src/components/Checkbox/index.js +0 -316
  323. package/dist/src/components/CheckboxGroup/index.js +0 -143
  324. package/dist/src/components/CopyButton/index.js +0 -37
  325. package/dist/src/components/DateInput/index.js +0 -242
  326. package/dist/src/components/Dialog/Context.js +0 -12
  327. package/dist/src/components/Dialog/index.js +0 -88
  328. package/dist/src/components/Dialog/subComponents/Button.js +0 -21
  329. package/dist/src/components/Dialog/subComponents/Buttons.js +0 -14
  330. package/dist/src/components/Dialog/subComponents/CancelButton.js +0 -14
  331. package/dist/src/components/Dialog/subComponents/Stack.js +0 -11
  332. package/dist/src/components/Dialog/subComponents/Text.js +0 -12
  333. package/dist/src/components/EmptyState/index.js +0 -112
  334. package/dist/src/components/Expandable/index.js +0 -96
  335. package/dist/src/components/GlobalAlert/GlobalAlertLink.js +0 -38
  336. package/dist/src/components/GlobalAlert/index.js +0 -82
  337. package/dist/src/components/LineChart/CustomLegend.js +0 -138
  338. package/dist/src/components/LineChart/Tooltip.js +0 -43
  339. package/dist/src/components/LineChart/helpers.js +0 -40
  340. package/dist/src/components/LineChart/index.js +0 -131
  341. package/dist/src/components/Link/index.js +0 -147
  342. package/dist/src/components/List/Body.js +0 -16
  343. package/dist/src/components/List/Cell.js +0 -43
  344. package/dist/src/components/List/HeaderCell.js +0 -90
  345. package/dist/src/components/List/HeaderRow.js +0 -43
  346. package/dist/src/components/List/ListContext.js +0 -138
  347. package/dist/src/components/List/Row.js +0 -185
  348. package/dist/src/components/List/SelectBar.js +0 -48
  349. package/dist/src/components/List/SkeletonRows.js +0 -53
  350. package/dist/src/components/List/index.js +0 -75
  351. package/dist/src/components/Loader/index.js +0 -100
  352. package/dist/src/components/Menu/Item.js +0 -112
  353. package/dist/src/components/Menu/index.js +0 -129
  354. package/dist/src/components/MenuV2/Group.js +0 -25
  355. package/dist/src/components/MenuV2/Item.js +0 -139
  356. package/dist/src/components/MenuV2/index.js +0 -116
  357. package/dist/src/components/Meter/index.js +0 -76
  358. package/dist/src/components/Modal/Dialog.js +0 -182
  359. package/dist/src/components/Modal/index.js +0 -113
  360. package/dist/src/components/Notice/index.js +0 -34
  361. package/dist/src/components/Notification/index.js +0 -77
  362. package/dist/src/components/NumberInput/index.js +0 -299
  363. package/dist/src/components/NumberInputV2/index.js +0 -284
  364. package/dist/src/components/Pagination/index.js +0 -117
  365. package/dist/src/components/PasswordCheck/index.js +0 -41
  366. package/dist/src/components/PasswordStrengthMeter/index.js +0 -102
  367. package/dist/src/components/PieChart/Legends.js +0 -138
  368. package/dist/src/components/PieChart/Tooltip.js +0 -61
  369. package/dist/src/components/PieChart/index.js +0 -125
  370. package/dist/src/components/Popover/index.js +0 -144
  371. package/dist/src/components/Popup/helpers.js +0 -252
  372. package/dist/src/components/Popup/index.js +0 -363
  373. package/dist/src/components/ProgressBar/index.js +0 -57
  374. package/dist/src/components/Radio/index.js +0 -157
  375. package/dist/src/components/RadioGroup/index.js +0 -131
  376. package/dist/src/components/Row/index.js +0 -41
  377. package/dist/src/components/SelectInput/index.js +0 -610
  378. package/dist/src/components/SelectInputV2/Dropdown.js +0 -594
  379. package/dist/src/components/SelectInputV2/DropdownOption.js +0 -130
  380. package/dist/src/components/SelectInputV2/SearchBarDropdown.js +0 -128
  381. package/dist/src/components/SelectInputV2/SelectBar.js +0 -282
  382. package/dist/src/components/SelectInputV2/SelectInputProvider.js +0 -169
  383. package/dist/src/components/SelectInputV2/findOptionInOptions.js +0 -11
  384. package/dist/src/components/SelectInputV2/index.js +0 -137
  385. package/dist/src/components/SelectableCard/index.js +0 -175
  386. package/dist/src/components/SelectableCardGroup/index.js +0 -141
  387. package/dist/src/components/Separator/index.js +0 -73
  388. package/dist/src/components/Skeleton/Block.js +0 -35
  389. package/dist/src/components/Skeleton/Blocks.js +0 -34
  390. package/dist/src/components/Skeleton/BoxWithIcon.js +0 -32
  391. package/dist/src/components/Skeleton/Donut.js +0 -55
  392. package/dist/src/components/Skeleton/IconSkeleton.js +0 -19
  393. package/dist/src/components/Skeleton/Line.js +0 -13
  394. package/dist/src/components/Skeleton/List.js +0 -51
  395. package/dist/src/components/Skeleton/Slider.js +0 -36
  396. package/dist/src/components/Skeleton/Square.js +0 -9
  397. package/dist/src/components/Skeleton/index.js +0 -82
  398. package/dist/src/components/Snippet/index.js +0 -200
  399. package/dist/src/components/Stack/index.js +0 -29
  400. package/dist/src/components/Status/index.js +0 -74
  401. package/dist/src/components/StepList/index.js +0 -69
  402. package/dist/src/components/Stepper/index.js +0 -150
  403. package/dist/src/components/SwitchButton/FocusOverlay.js +0 -37
  404. package/dist/src/components/SwitchButton/index.js +0 -108
  405. package/dist/src/components/Table/Body.js +0 -9
  406. package/dist/src/components/Table/Cell.js +0 -21
  407. package/dist/src/components/Table/Header.js +0 -15
  408. package/dist/src/components/Table/HeaderCell.js +0 -103
  409. package/dist/src/components/Table/HeaderRow.js +0 -32
  410. package/dist/src/components/Table/Row.js +0 -89
  411. package/dist/src/components/Table/SelectBar.js +0 -48
  412. package/dist/src/components/Table/SkeletonRows.js +0 -51
  413. package/dist/src/components/Table/TableContext.js +0 -90
  414. package/dist/src/components/Table/index.js +0 -82
  415. package/dist/src/components/Tabs/Tab.js +0 -138
  416. package/dist/src/components/Tabs/TabMenu.js +0 -59
  417. package/dist/src/components/Tabs/TabMenuItem.js +0 -36
  418. package/dist/src/components/Tabs/TabsContext.js +0 -6
  419. package/dist/src/components/Tabs/index.js +0 -117
  420. package/dist/src/components/Tag/index.js +0 -169
  421. package/dist/src/components/TagInput/index.js +0 -309
  422. package/dist/src/components/TagList/index.js +0 -106
  423. package/dist/src/components/Text/index.js +0 -107
  424. package/dist/src/components/TextArea/index.js +0 -210
  425. package/dist/src/components/TextInput/index.js +0 -451
  426. package/dist/src/components/TextInputV2/index.js +0 -289
  427. package/dist/src/components/TimeInput/index.js +0 -37
  428. package/dist/src/components/Toaster/index.js +0 -131
  429. package/dist/src/components/Toggle/index.js +0 -160
  430. package/dist/src/components/ToggleGroup/index.js +0 -122
  431. package/dist/src/components/Tooltip/index.js +0 -55
  432. package/dist/src/components/VerificationCode/index.js +0 -222
  433. package/dist/src/helpers/legend.js +0 -13
  434. package/dist/src/helpers/recursivelyGetChildrenString.js +0 -11
  435. package/dist/src/hooks/useIsOverflowing.js +0 -34
  436. package/dist/src/index.js +0 -77
  437. package/dist/src/theme/index.js +0 -29
  438. package/dist/src/utils/capitalize.js +0 -3
  439. package/dist/src/utils/ids.js +0 -7
  440. package/dist/src/utils/responsive/Breakpoint.js +0 -12
package/dist/index.d.ts CHANGED
@@ -1,3693 +1,4 @@
1
- import * as react from 'react';
2
- import react__default, { ReactNode, ComponentProps, ButtonHTMLAttributes, AriaRole, MouseEventHandler, JSX, MouseEvent, InputHTMLAttributes, FocusEvent, ReactElement, HTMLAttributeAnchorTarget, AnchorHTMLAttributes, Dispatch, SetStateAction, Ref, RefObject, KeyboardEventHandler, HTMLAttributes, CSSProperties, ChangeEventHandler, FocusEventHandler, ForwardRefExoticComponent, ForwardedRef, ElementType, DOMAttributes, TextareaHTMLAttributes } from 'react';
3
- import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
4
- import * as _emotion_styled from '@emotion/styled';
5
- import * as _emotion_react from '@emotion/react';
6
- import { Theme, CSSObject, css } from '@emotion/react';
7
- import { Icon } from '@ultraviolet/icons';
8
- export { Icon } from '@ultraviolet/icons';
9
- import { consoleLightTheme } from '@ultraviolet/themes';
10
- export { consoleDarkTheme as darkTheme, consoleLightTheme as theme } from '@ultraviolet/themes';
11
- import { BarDatum, BarTooltipProps, BarSvgProps, ResponsiveBar } from '@nivo/bar';
12
- import { Box, ValueFormat, DatumValue } from '@nivo/core';
13
- import { ReactDatePickerProps } from 'react-datepicker';
14
- import { Serie, LineSvgProps } from '@nivo/line';
15
- import { ScaleSpec } from '@nivo/scales';
16
- import { PopoverStateReturn } from 'reakit/Popover';
17
- import Select, { OptionProps, Props, CommonProps as CommonProps$1, GroupBase } from 'react-select';
18
- import * as react_toastify from 'react-toastify';
19
- import { ToastOptions, TypeOptions, Theme as Theme$1 } from 'react-toastify';
20
-
21
- type ActionBarProps = {
22
- children: ReactNode;
23
- /**
24
- * The position of the bar (start at 0)
25
- */
26
- rank?: number;
27
- role?: string;
28
- className?: string;
29
- 'data-testid'?: string;
30
- };
31
- /**
32
- * The ActionBar is a floating bar that appears at the bottom of a page.
33
- * It can be used to display important actions or information to the user, and can be configured to display a variety of different content types.
34
- *
35
- * **Note:** ActionBar is added into a portal at the end of the body element. This means that it will always be on top of other elements without `z-index`,
36
- * and will not be affected by the layout of the page it is on.
37
- */
38
- declare const ActionBar: ({ children, role, rank, className, "data-testid": dataTestId, }: ActionBarProps) => react.ReactPortal;
39
-
40
- type ScreenSize = keyof typeof consoleLightTheme.screens;
41
- /**
42
- * @deprecated use UltravioletUITheme instead
43
- */
44
- type SCWUITheme = typeof consoleLightTheme;
45
- type UltravioletUITheme = typeof consoleLightTheme;
46
- declare const typography: {
47
- body: {
48
- fontFamily: string;
49
- fontSize: string;
50
- fontWeight: string;
51
- letterSpacing: string;
52
- lineHeight: string;
53
- paragraphSpacing: string;
54
- textCase: string;
55
- textDecoration: string;
56
- weight: string;
57
- };
58
- bodySmall: {
59
- fontFamily: string;
60
- fontSize: string;
61
- fontWeight: string;
62
- letterSpacing: string;
63
- lineHeight: string;
64
- paragraphSpacing: string;
65
- textCase: string;
66
- textDecoration: string;
67
- weight: string;
68
- };
69
- bodySmallStrong: {
70
- fontFamily: string;
71
- fontSize: string;
72
- fontWeight: string;
73
- letterSpacing: string;
74
- lineHeight: string;
75
- paragraphSpacing: string;
76
- textCase: string;
77
- textDecoration: string;
78
- weight: string;
79
- };
80
- bodySmallStronger: {
81
- fontFamily: string;
82
- fontSize: string;
83
- fontWeight: string;
84
- letterSpacing: string;
85
- lineHeight: string;
86
- paragraphSpacing: string;
87
- textCase: string;
88
- textDecoration: string;
89
- weight: string;
90
- };
91
- bodyStrong: {
92
- fontFamily: string;
93
- fontSize: string;
94
- fontWeight: string;
95
- letterSpacing: string;
96
- lineHeight: string;
97
- paragraphSpacing: string;
98
- textCase: string;
99
- textDecoration: string;
100
- weight: string;
101
- };
102
- bodyStronger: {
103
- fontFamily: string;
104
- fontSize: string;
105
- fontWeight: string;
106
- letterSpacing: string;
107
- lineHeight: string;
108
- paragraphSpacing: string;
109
- textCase: string;
110
- textDecoration: string;
111
- weight: string;
112
- };
113
- caption: {
114
- fontFamily: string;
115
- fontSize: string;
116
- fontWeight: string;
117
- letterSpacing: string;
118
- lineHeight: string;
119
- paragraphSpacing: string;
120
- textCase: string;
121
- textDecoration: string;
122
- weight: string;
123
- };
124
- captionSmall: {
125
- fontFamily: string;
126
- fontSize: string;
127
- fontWeight: string;
128
- letterSpacing: string;
129
- lineHeight: string;
130
- paragraphSpacing: string;
131
- textCase: string;
132
- textDecoration: string;
133
- weight: string;
134
- };
135
- captionSmallStrong: {
136
- fontFamily: string;
137
- fontSize: string;
138
- fontWeight: string;
139
- letterSpacing: string;
140
- lineHeight: string;
141
- paragraphSpacing: string;
142
- textCase: string;
143
- textDecoration: string;
144
- weight: string;
145
- };
146
- captionSmallStronger: {
147
- fontFamily: string;
148
- fontSize: string;
149
- fontWeight: string;
150
- letterSpacing: string;
151
- lineHeight: string;
152
- paragraphSpacing: string;
153
- textCase: string;
154
- textDecoration: string;
155
- weight: string;
156
- };
157
- captionStrong: {
158
- fontFamily: string;
159
- fontSize: string;
160
- fontWeight: string;
161
- letterSpacing: string;
162
- lineHeight: string;
163
- paragraphSpacing: string;
164
- textCase: string;
165
- textDecoration: string;
166
- weight: string;
167
- };
168
- captionStronger: {
169
- fontFamily: string;
170
- fontSize: string;
171
- fontWeight: string;
172
- letterSpacing: string;
173
- lineHeight: string;
174
- paragraphSpacing: string;
175
- textCase: string;
176
- textDecoration: string;
177
- weight: string;
178
- };
179
- code: {
180
- fontFamily: string;
181
- fontSize: string;
182
- fontWeight: string;
183
- letterSpacing: string;
184
- lineHeight: string;
185
- paragraphSpacing: string;
186
- textCase: string;
187
- textDecoration: string;
188
- weight: string;
189
- };
190
- codeStrong: {
191
- fontFamily: string;
192
- fontSize: string;
193
- fontWeight: string;
194
- letterSpacing: string;
195
- lineHeight: string;
196
- paragraphSpacing: string;
197
- textCase: string;
198
- textDecoration: string;
199
- weight: string;
200
- };
201
- codeStronger: {
202
- fontFamily: string;
203
- fontSize: string;
204
- fontWeight: string;
205
- letterSpacing: string;
206
- lineHeight: string;
207
- paragraphSpacing: string;
208
- textCase: string;
209
- textDecoration: string;
210
- weight: string;
211
- };
212
- heading: {
213
- fontFamily: string;
214
- fontSize: string;
215
- fontWeight: string;
216
- letterSpacing: string;
217
- lineHeight: string;
218
- paragraphSpacing: string;
219
- textCase: string;
220
- textDecoration: string;
221
- weight: string;
222
- };
223
- headingLarge: {
224
- fontFamily: string;
225
- fontSize: string;
226
- fontWeight: string;
227
- letterSpacing: string;
228
- lineHeight: string;
229
- paragraphSpacing: string;
230
- textCase: string;
231
- textDecoration: string;
232
- weight: string;
233
- };
234
- headingLargeStrong: {
235
- fontFamily: string;
236
- fontSize: string;
237
- fontWeight: string;
238
- letterSpacing: string;
239
- lineHeight: string;
240
- paragraphSpacing: string;
241
- textCase: string;
242
- textDecoration: string;
243
- weight: string;
244
- };
245
- headingLargeStronger: {
246
- fontFamily: string;
247
- fontSize: string;
248
- fontWeight: string;
249
- letterSpacing: string;
250
- lineHeight: string;
251
- paragraphSpacing: string;
252
- textCase: string;
253
- textDecoration: string;
254
- weight: string;
255
- };
256
- headingSmall: {
257
- fontFamily: string;
258
- fontSize: string;
259
- fontWeight: string;
260
- letterSpacing: string;
261
- lineHeight: string;
262
- paragraphSpacing: string;
263
- textCase: string;
264
- textDecoration: string;
265
- weight: string;
266
- };
267
- headingSmallStrong: {
268
- fontFamily: string;
269
- fontSize: string;
270
- fontWeight: string;
271
- letterSpacing: string;
272
- lineHeight: string;
273
- paragraphSpacing: string;
274
- textCase: string;
275
- textDecoration: string;
276
- weight: string;
277
- };
278
- headingSmallStronger: {
279
- fontFamily: string;
280
- fontSize: string;
281
- fontWeight: string;
282
- letterSpacing: string;
283
- lineHeight: string;
284
- paragraphSpacing: string;
285
- textCase: string;
286
- textDecoration: string;
287
- weight: string;
288
- };
289
- headingStrong: {
290
- fontFamily: string;
291
- fontSize: string;
292
- fontWeight: string;
293
- letterSpacing: string;
294
- lineHeight: string;
295
- paragraphSpacing: string;
296
- textCase: string;
297
- textDecoration: string;
298
- weight: string;
299
- };
300
- headingStronger: {
301
- fontFamily: string;
302
- fontSize: string;
303
- fontWeight: string;
304
- letterSpacing: string;
305
- lineHeight: string;
306
- paragraphSpacing: string;
307
- textCase: string;
308
- textDecoration: string;
309
- weight: string;
310
- };
311
- } & {
312
- body: {
313
- fontFamily: string;
314
- };
315
- bodySmall: {
316
- fontFamily: string;
317
- };
318
- bodySmallStrong: {
319
- fontFamily: string;
320
- };
321
- bodySmallStronger: {
322
- fontFamily: string;
323
- };
324
- bodyStrong: {
325
- fontFamily: string;
326
- };
327
- bodyStronger: {
328
- fontFamily: string;
329
- };
330
- caption: {
331
- fontFamily: string;
332
- };
333
- captionSmall: {
334
- fontFamily: string;
335
- };
336
- captionSmallStrong: {
337
- fontFamily: string;
338
- };
339
- captionSmallStronger: {
340
- fontFamily: string;
341
- };
342
- captionStrong: {
343
- fontFamily: string;
344
- };
345
- captionStronger: {
346
- fontFamily: string;
347
- };
348
- heading: {
349
- fontFamily: string;
350
- };
351
- headingLarge: {
352
- fontFamily: string;
353
- };
354
- headingSmall: {
355
- fontFamily: string;
356
- };
357
- };
358
- type RecursivePartial<T> = {
359
- [P in keyof T]?: RecursivePartial<T[P]>;
360
- };
361
- /**
362
- * Will extend theme with new theme properties
363
- * @param {UltravioletUITheme} baseTheme the theme you want to extend from, by default it is set to light theme
364
- * @param {RecursivePartial<UltravioletUITheme>} extendedTheme the properties of a new theme you want to apply from baseTheme
365
- */
366
- declare const extendTheme: (extendedTheme: RecursivePartial<UltravioletUITheme>) => {
367
- colors: {
368
- danger: {
369
- background: string;
370
- backgroundDisabled: string;
371
- backgroundHover: string;
372
- backgroundStrong: string;
373
- backgroundStrongDisabled: string;
374
- backgroundStrongHover: string;
375
- border: string;
376
- borderDisabled: string;
377
- borderHover: string;
378
- borderStrong: string;
379
- borderStrongDisabled: string;
380
- borderStrongHover: string;
381
- icon: string;
382
- iconDisabled: string;
383
- iconHover: string;
384
- iconStrong: string;
385
- iconStrongDisabled: string;
386
- iconStrongHover: string;
387
- text: string;
388
- textDisabled: string;
389
- textHover: string;
390
- textStrong: string;
391
- textStrongDisabled: string;
392
- textStrongHover: string;
393
- };
394
- info: {
395
- background: string;
396
- backgroundDisabled: string;
397
- backgroundHover: string;
398
- backgroundStrong: string;
399
- backgroundStrongDisabled: string;
400
- backgroundStrongHover: string;
401
- border: string;
402
- borderDisabled: string;
403
- borderHover: string;
404
- borderStrong: string;
405
- borderStrongDisabled: string;
406
- borderStrongHover: string;
407
- icon: string;
408
- iconDisabled: string;
409
- iconHover: string;
410
- iconStrong: string;
411
- iconStrongDisabled: string;
412
- iconStrongHover: string;
413
- text: string;
414
- textDisabled: string;
415
- textHover: string;
416
- textStrong: string;
417
- textStrongDisabled: string;
418
- textStrongHover: string;
419
- };
420
- neutral: {
421
- background: string;
422
- backgroundDisabled: string;
423
- backgroundHover: string;
424
- backgroundStrong: string;
425
- backgroundStrongDisabled: string;
426
- backgroundStrongHover: string;
427
- backgroundStronger: string;
428
- backgroundStrongerDisabled: string;
429
- backgroundStrongerHover: string;
430
- backgroundWeak: string;
431
- backgroundWeakDisabled: string;
432
- backgroundWeakElevated: string;
433
- backgroundWeakHover: string;
434
- border: string;
435
- borderDisabled: string;
436
- borderHover: string;
437
- borderStrong: string;
438
- borderStrongDisabled: string;
439
- borderStrongHover: string;
440
- borderStronger: string;
441
- borderStrongerDisabled: string;
442
- borderStrongerHover: string;
443
- borderWeak: string;
444
- borderWeakDisabled: string;
445
- borderWeakHover: string;
446
- icon: string;
447
- iconDisabled: string;
448
- iconHover: string;
449
- iconStrong: string;
450
- iconStrongDisabled: string;
451
- iconStrongHover: string;
452
- iconStronger: string;
453
- iconStrongerDisabled: string;
454
- iconStrongerHover: string;
455
- iconWeak: string;
456
- iconWeakDisabled: string;
457
- iconWeakHover: string;
458
- text: string;
459
- textDisabled: string;
460
- textHover: string;
461
- textStrong: string;
462
- textStrongDisabled: string;
463
- textStrongHover: string;
464
- textStronger: string;
465
- textStrongerDisabled: string;
466
- textStrongerHover: string;
467
- textWeak: string;
468
- textWeakDisabled: string;
469
- textWeakHover: string;
470
- };
471
- other: {
472
- data: {
473
- charts: {
474
- danger: string;
475
- data1: string;
476
- data10: string;
477
- data11: string;
478
- data12: string;
479
- data13: string;
480
- data14: string;
481
- data2: string;
482
- data3: string;
483
- data4: string;
484
- data5: string;
485
- data6: string;
486
- data7: string;
487
- data8: string;
488
- data9: string;
489
- success: string;
490
- };
491
- };
492
- gradients: {
493
- background: {
494
- linear: {
495
- accent: string;
496
- aqua: string;
497
- blue: string;
498
- emerald: string;
499
- fuschia: string;
500
- magenta: string;
501
- primary: string;
502
- };
503
- radial: {
504
- aquaFuschia: string;
505
- aquaPurple: string;
506
- fuschiaPurple: string;
507
- lime: string;
508
- magenta: string;
509
- purple: string;
510
- };
511
- };
512
- text: {
513
- dark: string;
514
- light: string;
515
- };
516
- };
517
- icon: {
518
- category: {
519
- neutral: {
520
- fill: string;
521
- fillDisabled: string;
522
- fillStrong: string;
523
- fillStrongDisabled: string;
524
- };
525
- primary: {
526
- fill: string;
527
- fillDisabled: string;
528
- fillStrong: string;
529
- fillStrongDisabled: string;
530
- };
531
- };
532
- product: {
533
- danger: {
534
- fill: string;
535
- fillDisabled: string;
536
- fillStrong: string;
537
- fillStrongDisabled: string;
538
- fillWeak: string;
539
- fillWeakDisabled: string;
540
- };
541
- original: {
542
- fill: string;
543
- fillDisabled: string;
544
- fillStrong: string;
545
- fillStrongDisabled: string;
546
- fillWeak: string;
547
- fillWeakDisabled: string;
548
- };
549
- primary: {
550
- fill: string;
551
- fillDisabled: string;
552
- fillStrong: string;
553
- fillStrongDisabled: string;
554
- fillWeak: string;
555
- fillWeakDisabled: string;
556
- };
557
- warning: {
558
- fill: string;
559
- fillDisabled: string;
560
- fillStrong: string;
561
- fillStrongDisabled: string;
562
- fillWeak: string;
563
- fillWeakDisabled: string;
564
- };
565
- };
566
- };
567
- };
568
- overlay: string;
569
- primary: {
570
- background: string;
571
- backgroundDisabled: string;
572
- backgroundHover: string;
573
- backgroundStrong: string;
574
- backgroundStrongDisabled: string;
575
- backgroundStrongHover: string;
576
- border: string;
577
- borderDisabled: string;
578
- borderHover: string;
579
- borderStrong: string;
580
- borderStrongDisabled: string;
581
- borderStrongHover: string;
582
- icon: string;
583
- iconDisabled: string;
584
- iconHover: string;
585
- iconStrong: string;
586
- iconStrongDisabled: string;
587
- iconStrongHover: string;
588
- text: string;
589
- textDisabled: string;
590
- textHover: string;
591
- textStrong: string;
592
- textStrongDisabled: string;
593
- textStrongHover: string;
594
- };
595
- secondary: {
596
- background: string;
597
- backgroundDisabled: string;
598
- backgroundHover: string;
599
- backgroundStrong: string;
600
- backgroundStrongDisabled: string;
601
- backgroundStrongHover: string;
602
- border: string;
603
- borderDisabled: string;
604
- borderHover: string;
605
- borderStrong: string;
606
- borderStrongDisabled: string;
607
- borderStrongHover: string;
608
- icon: string;
609
- iconDisabled: string;
610
- iconHover: string;
611
- iconStrong: string;
612
- iconStrongDisabled: string;
613
- iconStrongHover: string;
614
- text: string;
615
- textDisabled: string;
616
- textHover: string;
617
- textStrong: string;
618
- textStrongDisabled: string;
619
- textStrongHover: string;
620
- };
621
- success: {
622
- background: string;
623
- backgroundDisabled: string;
624
- backgroundHover: string;
625
- backgroundStrong: string;
626
- backgroundStrongDisabled: string;
627
- backgroundStrongHover: string;
628
- border: string;
629
- borderDisabled: string;
630
- borderHover: string;
631
- borderStrong: string;
632
- borderStrongDisabled: string;
633
- borderStrongHover: string;
634
- icon: string;
635
- iconDisabled: string;
636
- iconHover: string;
637
- iconStrong: string;
638
- iconStrongDisabled: string;
639
- iconStrongHover: string;
640
- text: string;
641
- textDisabled: string;
642
- textHover: string;
643
- textStrong: string;
644
- textStrongDisabled: string;
645
- textStrongHover: string;
646
- };
647
- warning: {
648
- background: string;
649
- backgroundDisabled: string;
650
- backgroundHover: string;
651
- backgroundStrong: string;
652
- backgroundStrongDisabled: string;
653
- backgroundStrongHover: string;
654
- border: string;
655
- borderDisabled: string;
656
- borderHover: string;
657
- borderStrong: string;
658
- borderStrongDisabled: string;
659
- borderStrongHover: string;
660
- icon: string;
661
- iconDisabled: string;
662
- iconHover: string;
663
- iconStrong: string;
664
- iconStrongDisabled: string;
665
- iconStrongHover: string;
666
- text: string;
667
- textDisabled: string;
668
- textHover: string;
669
- textStrong: string;
670
- textStrongDisabled: string;
671
- textStrongHover: string;
672
- };
673
- } & {
674
- danger: {
675
- backgroundWeak: string;
676
- backgroundWeakDisabled: string;
677
- backgroundWeakHover: string;
678
- borderWeak: string;
679
- borderWeakDisabled: string;
680
- borderWeakHover: string;
681
- iconWeak: string;
682
- iconWeakDisabled: string;
683
- iconWeakHover: string;
684
- textWeak: string;
685
- textWeakDisabled: string;
686
- textWeakHover: string;
687
- };
688
- info: {
689
- backgroundWeak: string;
690
- backgroundWeakDisabled: string;
691
- backgroundWeakHover: string;
692
- borderWeak: string;
693
- borderWeakDisabled: string;
694
- borderWeakHover: string;
695
- iconWeak: string;
696
- iconWeakDisabled: string;
697
- iconWeakHover: string;
698
- textWeak: string;
699
- textWeakDisabled: string;
700
- textWeakHover: string;
701
- };
702
- primary: {
703
- backgroundWeak: string;
704
- backgroundWeakDisabled: string;
705
- backgroundWeakHover: string;
706
- borderWeak: string;
707
- borderWeakDisabled: string;
708
- borderWeakHover: string;
709
- iconWeak: string;
710
- iconWeakDisabled: string;
711
- iconWeakHover: string;
712
- textWeak: string;
713
- textWeakDisabled: string;
714
- textWeakHover: string;
715
- };
716
- secondary: {
717
- backgroundWeak: string;
718
- backgroundWeakDisabled: string;
719
- backgroundWeakHover: string;
720
- borderWeak: string;
721
- borderWeakDisabled: string;
722
- borderWeakHover: string;
723
- iconWeak: string;
724
- iconWeakDisabled: string;
725
- iconWeakHover: string;
726
- textWeak: string;
727
- textWeakDisabled: string;
728
- textWeakHover: string;
729
- };
730
- success: {
731
- backgroundWeak: string;
732
- backgroundWeakDisabled: string;
733
- backgroundWeakHover: string;
734
- borderWeak: string;
735
- borderWeakDisabled: string;
736
- borderWeakHover: string;
737
- iconWeak: string;
738
- iconWeakDisabled: string;
739
- iconWeakHover: string;
740
- textWeak: string;
741
- textWeakDisabled: string;
742
- textWeakHover: string;
743
- };
744
- warning: {
745
- backgroundWeak: string;
746
- backgroundWeakDisabled: string;
747
- backgroundWeakHover: string;
748
- borderWeak: string;
749
- borderWeakDisabled: string;
750
- borderWeakHover: string;
751
- iconWeak: string;
752
- iconWeakDisabled: string;
753
- iconWeakHover: string;
754
- textWeak: string;
755
- textWeakDisabled: string;
756
- textWeakHover: string;
757
- };
758
- other: {
759
- gradients: {
760
- background: {
761
- gold: string;
762
- purple: string;
763
- strong: string;
764
- accent: string;
765
- aqua: string;
766
- blue: string;
767
- emerald: string;
768
- fuschia: string;
769
- magenta: string;
770
- primary: string;
771
- };
772
- };
773
- };
774
- };
775
- radii: {
776
- circle: string;
777
- default: string;
778
- large: string;
779
- none: string;
780
- small: string;
781
- xlarge: string;
782
- };
783
- shadows: {
784
- bulk: string;
785
- defaultShadow: string;
786
- drawer: string;
787
- dropdown: string;
788
- focusDanger: string;
789
- focusInfo: string;
790
- focusNeutral: string;
791
- focusPrimary: string;
792
- focusSuccess: string;
793
- focusWarning: string;
794
- hoverDanger: string;
795
- hoverInfo: string;
796
- hoverNeutral: string;
797
- hoverPrimary: string;
798
- hoverSuccess: string;
799
- hoverWarning: string;
800
- menu: string;
801
- modal: string;
802
- popover: string;
803
- tabBar: {
804
- active: string;
805
- off: string;
806
- };
807
- tooltip: string;
808
- };
809
- space: {
810
- '0': string;
811
- '1': string;
812
- '2': string;
813
- '3': string;
814
- '4': string;
815
- '5': string;
816
- '6': string;
817
- '7': string;
818
- '8': string;
819
- '9': string;
820
- '10': string;
821
- '0.25': string;
822
- '0.5': string;
823
- '1.5': string;
824
- };
825
- theme: string;
826
- typography: {
827
- body: {
828
- fontFamily: string;
829
- fontSize: string;
830
- fontWeight: string;
831
- letterSpacing: string;
832
- lineHeight: string;
833
- paragraphSpacing: string;
834
- textCase: string;
835
- textDecoration: string;
836
- weight: string;
837
- };
838
- bodySmall: {
839
- fontFamily: string;
840
- fontSize: string;
841
- fontWeight: string;
842
- letterSpacing: string;
843
- lineHeight: string;
844
- paragraphSpacing: string;
845
- textCase: string;
846
- textDecoration: string;
847
- weight: string;
848
- };
849
- bodySmallStrong: {
850
- fontFamily: string;
851
- fontSize: string;
852
- fontWeight: string;
853
- letterSpacing: string;
854
- lineHeight: string;
855
- paragraphSpacing: string;
856
- textCase: string;
857
- textDecoration: string;
858
- weight: string;
859
- };
860
- bodySmallStronger: {
861
- fontFamily: string;
862
- fontSize: string;
863
- fontWeight: string;
864
- letterSpacing: string;
865
- lineHeight: string;
866
- paragraphSpacing: string;
867
- textCase: string;
868
- textDecoration: string;
869
- weight: string;
870
- };
871
- bodyStrong: {
872
- fontFamily: string;
873
- fontSize: string;
874
- fontWeight: string;
875
- letterSpacing: string;
876
- lineHeight: string;
877
- paragraphSpacing: string;
878
- textCase: string;
879
- textDecoration: string;
880
- weight: string;
881
- };
882
- bodyStronger: {
883
- fontFamily: string;
884
- fontSize: string;
885
- fontWeight: string;
886
- letterSpacing: string;
887
- lineHeight: string;
888
- paragraphSpacing: string;
889
- textCase: string;
890
- textDecoration: string;
891
- weight: string;
892
- };
893
- caption: {
894
- fontFamily: string;
895
- fontSize: string;
896
- fontWeight: string;
897
- letterSpacing: string;
898
- lineHeight: string;
899
- paragraphSpacing: string;
900
- textCase: string;
901
- textDecoration: string;
902
- weight: string;
903
- };
904
- captionSmall: {
905
- fontFamily: string;
906
- fontSize: string;
907
- fontWeight: string;
908
- letterSpacing: string;
909
- lineHeight: string;
910
- paragraphSpacing: string;
911
- textCase: string;
912
- textDecoration: string;
913
- weight: string;
914
- };
915
- captionSmallStrong: {
916
- fontFamily: string;
917
- fontSize: string;
918
- fontWeight: string;
919
- letterSpacing: string;
920
- lineHeight: string;
921
- paragraphSpacing: string;
922
- textCase: string;
923
- textDecoration: string;
924
- weight: string;
925
- };
926
- captionSmallStronger: {
927
- fontFamily: string;
928
- fontSize: string;
929
- fontWeight: string;
930
- letterSpacing: string;
931
- lineHeight: string;
932
- paragraphSpacing: string;
933
- textCase: string;
934
- textDecoration: string;
935
- weight: string;
936
- };
937
- captionStrong: {
938
- fontFamily: string;
939
- fontSize: string;
940
- fontWeight: string;
941
- letterSpacing: string;
942
- lineHeight: string;
943
- paragraphSpacing: string;
944
- textCase: string;
945
- textDecoration: string;
946
- weight: string;
947
- };
948
- captionStronger: {
949
- fontFamily: string;
950
- fontSize: string;
951
- fontWeight: string;
952
- letterSpacing: string;
953
- lineHeight: string;
954
- paragraphSpacing: string;
955
- textCase: string;
956
- textDecoration: string;
957
- weight: string;
958
- };
959
- code: {
960
- fontFamily: string;
961
- fontSize: string;
962
- fontWeight: string;
963
- letterSpacing: string;
964
- lineHeight: string;
965
- paragraphSpacing: string;
966
- textCase: string;
967
- textDecoration: string;
968
- weight: string;
969
- };
970
- codeStrong: {
971
- fontFamily: string;
972
- fontSize: string;
973
- fontWeight: string;
974
- letterSpacing: string;
975
- lineHeight: string;
976
- paragraphSpacing: string;
977
- textCase: string;
978
- textDecoration: string;
979
- weight: string;
980
- };
981
- codeStronger: {
982
- fontFamily: string;
983
- fontSize: string;
984
- fontWeight: string;
985
- letterSpacing: string;
986
- lineHeight: string;
987
- paragraphSpacing: string;
988
- textCase: string;
989
- textDecoration: string;
990
- weight: string;
991
- };
992
- heading: {
993
- fontFamily: string;
994
- fontSize: string;
995
- fontWeight: string;
996
- letterSpacing: string;
997
- lineHeight: string;
998
- paragraphSpacing: string;
999
- textCase: string;
1000
- textDecoration: string;
1001
- weight: string;
1002
- };
1003
- headingLarge: {
1004
- fontFamily: string;
1005
- fontSize: string;
1006
- fontWeight: string;
1007
- letterSpacing: string;
1008
- lineHeight: string;
1009
- paragraphSpacing: string;
1010
- textCase: string;
1011
- textDecoration: string;
1012
- weight: string;
1013
- };
1014
- headingLargeStrong: {
1015
- fontFamily: string;
1016
- fontSize: string;
1017
- fontWeight: string;
1018
- letterSpacing: string;
1019
- lineHeight: string;
1020
- paragraphSpacing: string;
1021
- textCase: string;
1022
- textDecoration: string;
1023
- weight: string;
1024
- };
1025
- headingLargeStronger: {
1026
- fontFamily: string;
1027
- fontSize: string;
1028
- fontWeight: string;
1029
- letterSpacing: string;
1030
- lineHeight: string;
1031
- paragraphSpacing: string;
1032
- textCase: string;
1033
- textDecoration: string;
1034
- weight: string;
1035
- };
1036
- headingSmall: {
1037
- fontFamily: string;
1038
- fontSize: string;
1039
- fontWeight: string;
1040
- letterSpacing: string;
1041
- lineHeight: string;
1042
- paragraphSpacing: string;
1043
- textCase: string;
1044
- textDecoration: string;
1045
- weight: string;
1046
- };
1047
- headingSmallStrong: {
1048
- fontFamily: string;
1049
- fontSize: string;
1050
- fontWeight: string;
1051
- letterSpacing: string;
1052
- lineHeight: string;
1053
- paragraphSpacing: string;
1054
- textCase: string;
1055
- textDecoration: string;
1056
- weight: string;
1057
- };
1058
- headingSmallStronger: {
1059
- fontFamily: string;
1060
- fontSize: string;
1061
- fontWeight: string;
1062
- letterSpacing: string;
1063
- lineHeight: string;
1064
- paragraphSpacing: string;
1065
- textCase: string;
1066
- textDecoration: string;
1067
- weight: string;
1068
- };
1069
- headingStrong: {
1070
- fontFamily: string;
1071
- fontSize: string;
1072
- fontWeight: string;
1073
- letterSpacing: string;
1074
- lineHeight: string;
1075
- paragraphSpacing: string;
1076
- textCase: string;
1077
- textDecoration: string;
1078
- weight: string;
1079
- };
1080
- headingStronger: {
1081
- fontFamily: string;
1082
- fontSize: string;
1083
- fontWeight: string;
1084
- letterSpacing: string;
1085
- lineHeight: string;
1086
- paragraphSpacing: string;
1087
- textCase: string;
1088
- textDecoration: string;
1089
- weight: string;
1090
- };
1091
- } & {
1092
- body: {
1093
- fontFamily: string;
1094
- };
1095
- bodySmall: {
1096
- fontFamily: string;
1097
- };
1098
- bodySmallStrong: {
1099
- fontFamily: string;
1100
- };
1101
- bodySmallStronger: {
1102
- fontFamily: string;
1103
- };
1104
- bodyStrong: {
1105
- fontFamily: string;
1106
- };
1107
- bodyStronger: {
1108
- fontFamily: string;
1109
- };
1110
- caption: {
1111
- fontFamily: string;
1112
- };
1113
- captionSmall: {
1114
- fontFamily: string;
1115
- };
1116
- captionSmallStrong: {
1117
- fontFamily: string;
1118
- };
1119
- captionSmallStronger: {
1120
- fontFamily: string;
1121
- };
1122
- captionStrong: {
1123
- fontFamily: string;
1124
- };
1125
- captionStronger: {
1126
- fontFamily: string;
1127
- };
1128
- heading: {
1129
- fontFamily: string;
1130
- };
1131
- headingLarge: {
1132
- fontFamily: string;
1133
- };
1134
- headingSmall: {
1135
- fontFamily: string;
1136
- };
1137
- };
1138
- screens: {
1139
- xsmall: number;
1140
- small: number;
1141
- medium: number;
1142
- large: number;
1143
- xlarge: number;
1144
- };
1145
- };
1146
- type Color = Extract<keyof typeof consoleLightTheme.colors, 'primary' | 'secondary' | 'neutral' | 'success' | 'danger' | 'warning' | 'info'>;
1147
- declare const SENTIMENTS: readonly ["primary", "secondary", "neutral", "success", "danger", "warning", "info"];
1148
-
1149
- type SENTIMENT = (typeof SENTIMENTS)[number];
1150
- declare const SIZE_HEIGHT: {
1151
- readonly large: 48;
1152
- readonly medium: 40;
1153
- readonly small: 32;
1154
- readonly xsmall: 24;
1155
- };
1156
- type ButtonSize = keyof typeof SIZE_HEIGHT;
1157
- declare const VARIANTS_COMPONENTS: {
1158
- filled: {
1159
- button: _emotion_styled.StyledComponent<{
1160
- theme?: Theme | undefined;
1161
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1162
- } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
1163
- iconOnly: boolean;
1164
- }, react.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
1165
- link: _emotion_styled.StyledComponent<{
1166
- theme?: Theme | undefined;
1167
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1168
- } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
1169
- iconOnly: boolean;
1170
- }, react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
1171
- };
1172
- outlined: {
1173
- button: _emotion_styled.StyledComponent<{
1174
- theme?: Theme | undefined;
1175
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1176
- } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
1177
- iconOnly: boolean;
1178
- }, react.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
1179
- link: _emotion_styled.StyledComponent<{
1180
- theme?: Theme | undefined;
1181
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1182
- } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
1183
- iconOnly: boolean;
1184
- }, react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
1185
- };
1186
- ghost: {
1187
- button: _emotion_styled.StyledComponent<{
1188
- theme?: Theme | undefined;
1189
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1190
- } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
1191
- iconOnly: boolean;
1192
- }, react.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
1193
- link: _emotion_styled.StyledComponent<{
1194
- theme?: Theme | undefined;
1195
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
1196
- } & Required<Pick<FinalProps, "size" | "sentiment" | "disabled" | "iconPosition" | "fullWidth">> & {
1197
- iconOnly: boolean;
1198
- }, react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
1199
- };
1200
- };
1201
- type ButtonVariant = keyof typeof VARIANTS_COMPONENTS;
1202
- type CommonProps = {
1203
- type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
1204
- autoFocus?: ButtonHTMLAttributes<HTMLButtonElement>['autoFocus'];
1205
- variant?: ButtonVariant;
1206
- role?: AriaRole;
1207
- size?: ButtonSize;
1208
- className?: string;
1209
- 'data-testid'?: string;
1210
- sentiment?: SENTIMENT;
1211
- disabled?: boolean;
1212
- iconPosition?: 'left' | 'right';
1213
- iconVariant?: ComponentProps<typeof Icon>['variant'];
1214
- fullWidth?: boolean;
1215
- isLoading?: boolean;
1216
- 'aria-label'?: string;
1217
- 'aria-current'?: boolean;
1218
- 'aria-controls'?: string;
1219
- 'aria-expanded'?: boolean;
1220
- 'aria-haspopup'?: boolean;
1221
- onClick?: MouseEventHandler<HTMLElement>;
1222
- tooltip?: string;
1223
- tabIndex?: ButtonHTMLAttributes<HTMLButtonElement>['tabIndex'];
1224
- onMouseDown?: MouseEventHandler<HTMLElement>;
1225
- onMouseUp?: MouseEventHandler<HTMLElement>;
1226
- onMouseOut?: MouseEventHandler<HTMLElement>;
1227
- };
1228
- type FinalProps = CommonProps & ({
1229
- children: ReactNode;
1230
- icon?: ComponentProps<typeof Icon>['name'];
1231
- name?: string;
1232
- href?: never;
1233
- target?: never;
1234
- download?: never;
1235
- } | {
1236
- children?: never;
1237
- icon: ComponentProps<typeof Icon>['name'];
1238
- name?: string;
1239
- href?: never;
1240
- target?: never;
1241
- download?: never;
1242
- } | {
1243
- children: ReactNode;
1244
- icon?: ComponentProps<typeof Icon>['name'];
1245
- name?: never;
1246
- href: string;
1247
- target?: string;
1248
- download?: string;
1249
- } | {
1250
- children?: never;
1251
- icon: ComponentProps<typeof Icon>['name'];
1252
- name?: never;
1253
- href: string;
1254
- target?: string;
1255
- download?: string;
1256
- });
1257
- /**
1258
- * Button component is used to trigger an action or event, such as submitting a form, opening a dialog,
1259
- * canceling an action, or performing a delete operation.
1260
- */
1261
- declare const Button: react.ForwardRefExoticComponent<FinalProps & react.RefAttributes<Element>>;
1262
-
1263
- declare const ALERT_SENTIMENTS: readonly ["danger", "info", "success", "warning"];
1264
- type AlertSentiment = (typeof ALERT_SENTIMENTS)[number];
1265
- type AlertProps = {
1266
- children: ReactNode;
1267
- /**
1268
- * Add a title at the top of your alert.
1269
- */
1270
- title?: string;
1271
- sentiment?: AlertSentiment;
1272
- buttonText?: ComponentProps<typeof Button>['children'];
1273
- onClickButton?: () => void;
1274
- onClose?: () => void;
1275
- closable?: boolean;
1276
- className?: string;
1277
- 'data-testid'?: string;
1278
- /**
1279
- * Disabled the alert button.
1280
- */
1281
- disabled?: boolean;
1282
- };
1283
- /**
1284
- * Alert component is used to display a short, important message in a way that attracts the user's attention without interrupting the user's task.
1285
- */
1286
- declare const Alert: ({ children, title, sentiment, buttonText, onClickButton, closable, onClose, className, disabled, "data-testid": dataTestId, }: AlertProps) => _emotion_react_jsx_runtime.JSX.Element | null;
1287
-
1288
- type Without<T, U> = {
1289
- [P in Exclude<keyof T, keyof U>]?: never;
1290
- };
1291
- type SingleXOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
1292
- type XOR<T extends unknown[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? XOR<[SingleXOR<A, B>, ...Rest]> : never;
1293
-
1294
- type AvatarProps = {
1295
- /**
1296
- * Size of the component
1297
- */
1298
- size?: number;
1299
- /**
1300
- * Background color when `text` prop is specified
1301
- */
1302
- textBgColor?: string;
1303
- /**
1304
- * Text color when `text` prop is specified
1305
- */
1306
- textColor?: string;
1307
- /**
1308
- * Text size when `text` prop is specified or size of the lock when `lock` is true
1309
- */
1310
- textSize?: number;
1311
- /**
1312
- * Used only when `text` prop is specified
1313
- */
1314
- lock?: boolean;
1315
- className?: string;
1316
- 'data-testid'?: string;
1317
- } & XOR<[
1318
- {
1319
- /**
1320
- * **`image` or `text` property is required**
1321
- */
1322
- image: string;
1323
- },
1324
- {
1325
- /**
1326
- * **`image` or `text` property is required**
1327
- */
1328
- text: string;
1329
- }
1330
- ]>;
1331
- /**
1332
- * Avatar component is used to display a user's profile picture or initials.
1333
- */
1334
- declare const Avatar: ({ image, size, text, textBgColor, textColor, textSize, lock, className, "data-testid": dataTestId, }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
1335
-
1336
- type IconName$1 = ComponentProps<typeof Icon>['name'];
1337
- declare const SIZES$1: {
1338
- large: number;
1339
- medium: number;
1340
- small: number;
1341
- };
1342
- declare const PROMINENCES$3: {
1343
- default: string;
1344
- strong: string;
1345
- };
1346
- type BadgeProps = {
1347
- sentiment?: Color;
1348
- size?: keyof typeof SIZES$1;
1349
- prominence?: keyof typeof PROMINENCES$3;
1350
- /**
1351
- * Defines icon to display on left side of badge. **Only available on medium and large sizes**.
1352
- */
1353
- icon?: IconName$1;
1354
- disabled?: boolean;
1355
- className?: string;
1356
- children: ReactNode;
1357
- 'data-testid'?: string;
1358
- };
1359
- /**
1360
- * Badge component is used to display a status or a label in a small container.
1361
- */
1362
- declare const Badge: ({ sentiment, size, prominence, icon, disabled, className, children, "data-testid": dataTestId, }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
1363
-
1364
- type Variant = 'intro' | 'promotional';
1365
- type BannerProps = {
1366
- variant?: Variant;
1367
- size?: 'small' | 'medium';
1368
- title: string;
1369
- children: ReactNode;
1370
- direction?: 'row' | 'column';
1371
- onClose?: () => void;
1372
- buttonText?: string;
1373
- onClickButton?: ComponentProps<typeof Button>['onClick'];
1374
- linkText?: string;
1375
- linkHref?: string;
1376
- image?: ReactNode;
1377
- closable?: boolean;
1378
- className?: string;
1379
- ['data-testid']?: string;
1380
- };
1381
- /**
1382
- * Banner component is used to display an informative message to the user with style.
1383
- */
1384
- declare const Banner: ({ variant, size, title, children, direction, onClose, buttonText, onClickButton, linkText, linkHref, image, className, closable, "data-testid": dataTestId, }: BannerProps) => _emotion_react_jsx_runtime.JSX.Element | null;
1385
-
1386
- type BarChartToolTipProps = {
1387
- color: string;
1388
- indexValue: string;
1389
- formattedValue: string;
1390
- className?: string;
1391
- 'data-testid'?: string;
1392
- };
1393
- declare const BarChartToolTip: ({ formattedValue, indexValue, color, className, "data-testid": dataTestId, }: BarChartToolTipProps) => _emotion_react_jsx_runtime.JSX.Element;
1394
-
1395
- type Formatter = ValueFormat<DatumValue>;
1396
- type TickSpec = NonNullable<ComponentProps<typeof ResponsiveBar>['axisBottom']>['tickValues'];
1397
- type BarChartProps = {
1398
- height?: string | number;
1399
- margin?: Box;
1400
- data?: BarDatum[];
1401
- axisFormatters?: Partial<Record<'bottom' | 'left' | 'right' | 'top', Formatter>>;
1402
- pointFormatters?: Partial<Record<'x' | 'y', Formatter>>;
1403
- tickValues?: Partial<Record<'bottom' | 'left' | 'right' | 'top', TickSpec>>;
1404
- keys?: string[];
1405
- className?: string;
1406
- tooltipFunction?: (props: BarTooltipProps<BarDatum>) => ComponentProps<typeof BarChartToolTip>;
1407
- chartProps?: Partial<BarSvgProps<BarDatum>>;
1408
- 'data-testid'?: string;
1409
- };
1410
- /**
1411
- * BarChart component is used to display data in a bar chart format. It uses the Nivo library under the hood.
1412
- * See https://nivo.rocks/bar/ for more information.
1413
- * @experimental This component is experimental and may be subject to breaking changes in the future.
1414
- */
1415
- declare const BarChart: ({ height, margin, data, axisFormatters, tickValues, keys, tooltipFunction, chartProps, className, "data-testid": dataTestId, }: BarChartProps) => _emotion_react_jsx_runtime.JSX.Element;
1416
-
1417
- type BarProps = {
1418
- /**
1419
- * Unique id of the bar
1420
- */
1421
- id: string;
1422
- /**
1423
- * The value of the bar
1424
- */
1425
- value: number;
1426
- /**
1427
- * Text to display inside the bar
1428
- */
1429
- text?: string;
1430
- onClick?: MouseEventHandler<HTMLDivElement>;
1431
- onDoubleClick?: MouseEventHandler<HTMLDivElement>;
1432
- onMouseDown?: MouseEventHandler<HTMLDivElement>;
1433
- onMouseUp?: MouseEventHandler<HTMLDivElement>;
1434
- onMouseEnter?: MouseEventHandler<HTMLDivElement>;
1435
- onMouseLeave?: MouseEventHandler<HTMLDivElement>;
1436
- /**
1437
- * A tooltip to display when hovering the bar
1438
- */
1439
- tooltip?: ReactNode;
1440
- };
1441
- type BarStackProps = {
1442
- data: BarProps[];
1443
- total?: number;
1444
- className?: string;
1445
- 'data-testid'?: string;
1446
- };
1447
- /**
1448
- * BarStack is a graphic component that is used to show data in one dimension.
1449
- */
1450
- declare const BarStack: ({ data, total, className, "data-testid": dataTestId, }: BarStackProps) => _emotion_react_jsx_runtime.JSX.Element;
1451
-
1452
- type ItemProps$1 = {
1453
- children: ReactNode;
1454
- 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time';
1455
- /**
1456
- * Make the component act a `Link` tag
1457
- */
1458
- to?: string;
1459
- disabled?: boolean;
1460
- /**
1461
- * ID of the step, automatically injected by Breadcrumbs parent tag
1462
- */
1463
- step?: number;
1464
- onClick?: (event: MouseEvent<HTMLLIElement>, step: number) => void;
1465
- };
1466
- declare const Item: ({ to, children, disabled, "aria-current": ariaCurrent, onClick, step, }: ItemProps$1) => _emotion_react_jsx_runtime.JSX.Element;
1467
- type BreadcrumbsProps = {
1468
- selected?: number;
1469
- children: ReactNode;
1470
- className?: string;
1471
- 'data-testid'?: string;
1472
- };
1473
- type BreadcrumbsType = ((props: BreadcrumbsProps) => JSX.Element) & {
1474
- Item: typeof Item;
1475
- };
1476
- /**
1477
- * Breadcrumbs component is used to display a navigation path with links to the parent pages.
1478
- */
1479
- declare const Breadcrumbs: BreadcrumbsType;
1480
-
1481
- declare const PROMINENCES$2: {
1482
- default: string;
1483
- strong: string;
1484
- };
1485
- type ProminenceType = keyof typeof PROMINENCES$2;
1486
- declare const BULLET_SENTIMENTS: string[];
1487
- type BulletSentiment = (typeof BULLET_SENTIMENTS)[number];
1488
- declare const sizes: {
1489
- readonly medium: "\n width: 32px;\n height: 32px;\n font-size: 16px;\n ";
1490
- readonly small: "\n width: 24px;\n height: 24px;\n font-size: 14px;\n ";
1491
- };
1492
- type BulletSize = keyof typeof sizes;
1493
- type ContentProps$1 = XOR<[
1494
- {
1495
- icon: ComponentProps<typeof Icon>['name'];
1496
- iconVariant?: ComponentProps<typeof Icon>['variant'];
1497
- },
1498
- {
1499
- text: string;
1500
- }
1501
- ]>;
1502
- type BulletProps = {
1503
- className?: string;
1504
- size?: BulletSize;
1505
- tooltip?: string;
1506
- tooltipBaseId?: string;
1507
- sentiment?: BulletSentiment;
1508
- 'data-testid'?: string;
1509
- prominence?: ProminenceType;
1510
- } & ContentProps$1;
1511
- /**
1512
- * Bullet component is used to display a small icon or text with a colored background in a circle.
1513
- */
1514
- declare const Bullet: ({ className, sentiment, size, icon, iconVariant, text, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, }: BulletProps) => _emotion_react_jsx_runtime.JSX.Element;
1515
-
1516
- type CardProps = {
1517
- children: ReactNode;
1518
- /**
1519
- * Header can be a string but also a component if you need more complex header.
1520
- */
1521
- header?: ReactNode;
1522
- /**
1523
- * isActive enable a primary style on Card component for when you need to highlight it.
1524
- */
1525
- isActive?: boolean;
1526
- disabled?: boolean;
1527
- className?: string;
1528
- 'data-testid'?: string;
1529
- };
1530
- /**
1531
- * Card component is a simple component to display content in a box with a border.
1532
- */
1533
- declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLDivElement>>;
1534
-
1535
- type CarouselItemProps = {
1536
- children: ReactNode;
1537
- width?: string;
1538
- };
1539
- type CarouselProps = {
1540
- className?: string;
1541
- children?: ReactNode;
1542
- 'data-testid'?: string;
1543
- };
1544
- /**
1545
- * Carousel component allows you to scroll horizontally through a list of items.
1546
- */
1547
- declare const Carousel: {
1548
- ({ children, className, "data-testid": dataTestId, }: CarouselProps): _emotion_react_jsx_runtime.JSX.Element;
1549
- Item: ({ children, width, }: CarouselItemProps) => _emotion_react_jsx_runtime.JSX.Element;
1550
- };
1551
-
1552
- type CheckboxProps = {
1553
- error?: string | ReactNode;
1554
- /**
1555
- * @deprecated Size prop is deprecated and will be removed in next major update.
1556
- */
1557
- size?: number;
1558
- /**
1559
- * @deprecated Progress prop is deprecated and will be removed in next major update.
1560
- */
1561
- progress?: boolean;
1562
- helper?: ReactNode;
1563
- disabled?: boolean;
1564
- checked?: boolean | 'indeterminate';
1565
- className?: string;
1566
- ['data-visibility']?: string;
1567
- required?: boolean;
1568
- 'data-testid'?: string;
1569
- tooltip?: string;
1570
- } & Pick<InputHTMLAttributes<HTMLInputElement>, 'onFocus' | 'onBlur' | 'name' | 'value' | 'autoFocus' | 'id' | 'onChange' | 'tabIndex'> & XOR<[
1571
- {
1572
- /**
1573
- * **`children` or `aria-label` property is required**
1574
- */
1575
- 'aria-label': string;
1576
- },
1577
- {
1578
- children: ReactNode;
1579
- }
1580
- ]>;
1581
- /**
1582
- * Checkbox is an input component used to select or deselect an option.
1583
- */
1584
- declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
1585
-
1586
- type CopyButtonProps = {
1587
- size?: 'xsmall' | 'small' | 'medium' | 'large';
1588
- value: string;
1589
- copyText?: string;
1590
- copiedText?: string;
1591
- sentiment?: 'primary' | 'neutral';
1592
- /**
1593
- * @deprecated Use `bordered` instead
1594
- */
1595
- noBorder?: boolean;
1596
- bordered?: boolean;
1597
- className?: string;
1598
- 'data-testid'?: string;
1599
- };
1600
- /**
1601
- * CopyButton is a button that copies a given value to the clipboard.
1602
- */
1603
- declare const CopyButton: ({ size, value, copyText, copiedText, sentiment, noBorder, bordered, className, "data-testid": dataTestId, }: CopyButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
1604
-
1605
- type DateInputProps = Pick<ReactDatePickerProps<string, boolean>, 'locale' | 'onChange'> & {
1606
- autoFocus?: boolean;
1607
- disabled?: boolean;
1608
- maxDate?: Date | null;
1609
- minDate?: Date | null;
1610
- name?: string;
1611
- onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1612
- onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
1613
- error?: string;
1614
- required?: boolean;
1615
- format?: (value?: Date | string) => string | undefined;
1616
- /**
1617
- * Label of the field
1618
- */
1619
- label?: string;
1620
- value?: Date | string | [Date | null, Date | null];
1621
- className?: string;
1622
- 'data-testid'?: string;
1623
- selectsRange?: boolean;
1624
- startDate?: Date | null;
1625
- endDate?: Date | null;
1626
- excludeDates?: Date[];
1627
- id?: string;
1628
- labelDescription?: ReactNode;
1629
- success?: string | boolean;
1630
- helper?: string;
1631
- size?: 'small' | 'medium' | 'large';
1632
- readOnly?: boolean;
1633
- tooltip?: string;
1634
- };
1635
- /**
1636
- * DateInput is a wrapper around react-datepicker that provides a consistent look and feel with the rest of the Ultraviolet UI.
1637
- * See https://reactdatepicker.com/ for more information.
1638
- */
1639
- declare const DateInput: ({ autoFocus, disabled, error, format, label, labelDescription, locale, maxDate, minDate, startDate, endDate, name, onBlur, onChange, onFocus, required, excludeDates, value, selectsRange, className, id, success, helper, size, readOnly, tooltip, "data-testid": dataTestId, }: DateInputProps) => _emotion_react_jsx_runtime.JSX.Element;
1640
-
1641
- type ModalSize = 'large' | 'medium' | 'small' | 'xsmall' | 'xxsmall';
1642
- type ModalPlacement = 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'top-left' | 'top-right' | 'right' | 'left';
1643
- type ModalState = {
1644
- /**
1645
- * @deprecated use show
1646
- */
1647
- onOpen: () => void;
1648
- /**
1649
- * @deprecated use close
1650
- */
1651
- onClose: () => void;
1652
- toggle: () => void;
1653
- visible: boolean;
1654
- modalId: string;
1655
- /**
1656
- * @deprecated use close
1657
- */
1658
- hide: () => void;
1659
- close: () => void;
1660
- show: () => void;
1661
- };
1662
-
1663
- type ModalProps = {
1664
- id?: string;
1665
- hideOnEsc?: boolean;
1666
- hideOnClickOutside?: boolean;
1667
- preventBodyScroll?: boolean;
1668
- ariaLabel?: string;
1669
- disclosure?: ReactElement | ((state: ModalState) => ReactElement);
1670
- isClosable?: boolean;
1671
- onClose?: () => void;
1672
- onBeforeClose?: () => Promise<void> | void;
1673
- open?: boolean;
1674
- /**
1675
- * @deprecated You should use open prop instead
1676
- */
1677
- opened?: boolean;
1678
- placement?: ModalPlacement;
1679
- size?: ModalSize;
1680
- /**
1681
- * @deprecated You should use size prop instead
1682
- */
1683
- width?: ModalSize;
1684
- children: ReactNode | ((args: ModalState) => ReactNode);
1685
- className?: string;
1686
- 'data-testid'?: string;
1687
- backdropClassName?: string;
1688
- /**
1689
- * @deprecated You should use backdropClassName instead
1690
- */
1691
- customDialogBackdropStyles?: react__default.JSX.IntrinsicAttributes['css'];
1692
- /**
1693
- * @deprecated You should use className instead
1694
- */
1695
- customDialogStyles?: react__default.JSX.IntrinsicAttributes['css'];
1696
- };
1697
- /**
1698
- * Modal is a component that allows you to display content on top of other content.
1699
- * It is often used to display a dialog with additional information or to ask for a confirmation.
1700
- */
1701
- declare const Modal: ({ ariaLabel, id, children, disclosure, hideOnClickOutside, hideOnEsc, isClosable, onClose, onBeforeClose, open, opened, placement, preventBodyScroll, size, className, "data-testid": dataTestId, backdropClassName, width, customDialogStyles, customDialogBackdropStyles, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element;
1702
-
1703
- declare const DIALOG_SENTIMENTS: ("primary" | "success" | "danger" | "warning")[];
1704
- type DialogSentiment = (typeof DIALOG_SENTIMENTS)[number];
1705
-
1706
- type DialogContextType = {
1707
- sentiment: DialogSentiment;
1708
- };
1709
-
1710
- type DialogProps = Pick<ComponentProps<typeof Modal>, 'ariaLabel' | 'children' | 'className' | 'data-testid' | 'disclosure' | 'hideOnClickOutside' | 'hideOnEsc' | 'id' | 'isClosable' | 'onBeforeClose' | 'onClose' | 'open' | 'placement'> & {
1711
- title: string;
1712
- sentiment: DialogSentiment;
1713
- };
1714
- /**
1715
- * The Dialog component is used to show content on top of an overlay that requires user interaction.
1716
- * @experimental This component is experimental and may be subject to breaking changes in the future.
1717
- */
1718
- declare const Dialog: (({ ariaLabel, className, children, "data-testid": dataTestId, disclosure, hideOnClickOutside, hideOnEsc, id, isClosable, onBeforeClose, onClose, open, placement, sentiment, title, }: DialogProps) => _emotion_react_jsx_runtime.JSX.Element) & {
1719
- Buttons: ({ secondaryButton, primaryButton, }: {
1720
- secondaryButton: react.ReactNode;
1721
- primaryButton: react.ReactNode;
1722
- }) => _emotion_react_jsx_runtime.JSX.Element;
1723
- Button: ({ children, onClick, disabled, tooltip, }: {
1724
- children: react.ReactNode;
1725
- } & Pick<({
1726
- type?: "button" | "reset" | "submit" | undefined;
1727
- autoFocus?: boolean | undefined;
1728
- variant?: "filled" | "outlined" | "ghost" | undefined;
1729
- role?: react.AriaRole | undefined;
1730
- size?: "large" | "small" | "xsmall" | "medium" | undefined;
1731
- className?: string | undefined;
1732
- 'data-testid'?: string | undefined;
1733
- sentiment?: "primary" | "secondary" | "neutral" | "success" | "danger" | "warning" | "info" | undefined;
1734
- disabled?: boolean | undefined;
1735
- iconPosition?: "left" | "right" | undefined;
1736
- iconVariant?: "filled" | "outlined" | undefined;
1737
- fullWidth?: boolean | undefined;
1738
- isLoading?: boolean | undefined;
1739
- 'aria-label'?: string | undefined;
1740
- 'aria-current'?: boolean | undefined;
1741
- 'aria-controls'?: string | undefined;
1742
- 'aria-expanded'?: boolean | undefined;
1743
- 'aria-haspopup'?: boolean | undefined;
1744
- onClick?: react.MouseEventHandler<HTMLElement> | undefined;
1745
- tooltip?: string | undefined;
1746
- tabIndex?: number | undefined;
1747
- onMouseDown?: react.MouseEventHandler<HTMLElement> | undefined;
1748
- onMouseUp?: react.MouseEventHandler<HTMLElement> | undefined;
1749
- onMouseOut?: react.MouseEventHandler<HTMLElement> | undefined;
1750
- } & ({
1751
- children: react.ReactNode;
1752
- icon?: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
1753
- name?: string | undefined;
1754
- href?: undefined;
1755
- target?: undefined;
1756
- download?: undefined;
1757
- } | {
1758
- children?: undefined;
1759
- icon: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
1760
- name?: string | undefined;
1761
- href?: undefined;
1762
- target?: undefined;
1763
- download?: undefined;
1764
- } | {
1765
- children: react.ReactNode;
1766
- icon?: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
1767
- name?: undefined;
1768
- href: string;
1769
- target?: string | undefined;
1770
- download?: string | undefined;
1771
- } | {
1772
- children?: undefined;
1773
- icon: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
1774
- name?: undefined;
1775
- href: string;
1776
- target?: string | undefined;
1777
- download?: string | undefined;
1778
- })) & react.RefAttributes<Element>, "tooltip" | "onClick" | "disabled">) => _emotion_react_jsx_runtime.JSX.Element;
1779
- CancelButton: ({ children, onClick, }: {
1780
- children: react.ReactNode;
1781
- onClick: react.MouseEventHandler<HTMLElement> | undefined;
1782
- }) => _emotion_react_jsx_runtime.JSX.Element;
1783
- Stack: ({ children }: {
1784
- children: react.ReactNode;
1785
- }) => _emotion_react_jsx_runtime.JSX.Element;
1786
- Text: ({ children }: {
1787
- children: react.ReactNode;
1788
- }) => _emotion_react_jsx_runtime.JSX.Element;
1789
- useDialogContext: () => DialogContextType;
1790
- };
1791
-
1792
- declare const CONTAINER_SIZES: {
1793
- readonly small: 720;
1794
- readonly medium: 720;
1795
- readonly large: 1140;
1796
- };
1797
- type SizesTypes = keyof typeof CONTAINER_SIZES;
1798
- type EmptyStateProps = {
1799
- title?: string;
1800
- description: ReactNode;
1801
- /**
1802
- * Container size will be same on `small` and `medium`
1803
- * only the image size will change on those properties.
1804
- * `small` and `medium` container is 720px wide
1805
- * `large` container is 1080px wide
1806
- */
1807
- size?: SizesTypes;
1808
- /**
1809
- * You can give the path of an image or a component that will render an image.
1810
- */
1811
- image?: ReactNode;
1812
- primaryButton?: ReactNode;
1813
- secondaryButton?: ReactNode;
1814
- learnMore?: {
1815
- link: string;
1816
- text: string;
1817
- target?: string;
1818
- };
1819
- bordered?: boolean;
1820
- className?: string;
1821
- children?: ReactNode;
1822
- 'data-testid'?: string;
1823
- };
1824
- /**
1825
- * EmptyState component is used to display a message when there is no data to show.
1826
- */
1827
- declare const EmptyState: ({ image, title, size, description, primaryButton, secondaryButton, learnMore, className, bordered, children, "data-testid": dataTestId, }: EmptyStateProps) => _emotion_react_jsx_runtime.JSX.Element;
1828
-
1829
- type ExpandableProps = {
1830
- /**
1831
- * The content to display
1832
- */
1833
- children: ReactNode;
1834
- /**
1835
- * To display or not the content
1836
- */
1837
- opened?: boolean;
1838
- /**
1839
- * The minimum height of the content
1840
- */
1841
- minHeight?: number;
1842
- className?: string;
1843
- 'data-testid'?: string;
1844
- animationDuration?: number;
1845
- };
1846
- /**
1847
- * The Expandable component is a dynamic React component that allows for the expansion of its children content
1848
- * based on its height. The component comes with a sleek and smooth animation, providing a visually pleasing
1849
- * user experience.
1850
- */
1851
- declare const Expandable: ({ children, opened, minHeight, className, "data-testid": dataTestId, animationDuration, }: ExpandableProps) => _emotion_react_jsx_runtime.JSX.Element;
1852
-
1853
- type Transformer = (value: DatumValue) => string;
1854
- type CustomLegendProps = {
1855
- axisTransformer?: Transformer;
1856
- data?: Serie[];
1857
- selected: string[];
1858
- setSelected: (selected: string[]) => void;
1859
- className?: string;
1860
- 'data-testid'?: string;
1861
- };
1862
- declare const CustomLegend: ({ axisTransformer, data, selected, setSelected, className, "data-testid": dataTestId, }: CustomLegendProps) => _emotion_react_jsx_runtime.JSX.Element;
1863
-
1864
- type LineChartProps = {
1865
- height?: string | number;
1866
- margin?: Box;
1867
- xScale?: ScaleSpec;
1868
- yScale?: ScaleSpec;
1869
- data?: Serie[];
1870
- withLegend?: boolean;
1871
- axisFormatters?: Partial<Record<'bottom' | 'left' | 'right' | 'top', ComponentProps<typeof CustomLegend>['axisTransformer']>>;
1872
- pointFormatters?: Partial<Record<'x' | 'y', ValueFormat<DatumValue>>>;
1873
- tickValues?: Partial<Record<'bottom' | 'left' | 'right' | 'top', number | string>>;
1874
- chartProps?: Partial<LineSvgProps>;
1875
- 'data-testid'?: string;
1876
- };
1877
- /**
1878
- * LineChart component is a wrapper around Nivo's ResponsiveLine component used to display data in a line chart.
1879
- * See https://nivo.rocks/line/ for more information.
1880
- * @experimental This component is experimental and may be subject to breaking changes in the future.
1881
- */
1882
- declare const LineChart: ({ height, margin, xScale, yScale, data, withLegend, axisFormatters, pointFormatters, tickValues, chartProps, "data-testid": dataTestId, }: LineChartProps) => _emotion_react_jsx_runtime.JSX.Element;
1883
-
1884
- declare const PROMINENCES$1: {
1885
- default: string;
1886
- weak: string;
1887
- strong: string;
1888
- stronger: string;
1889
- };
1890
- type ProminenceProps$1 = keyof typeof PROMINENCES$1;
1891
- type LinkSizes = 'large' | 'small';
1892
- type LinkIconPosition = 'left' | 'right';
1893
- type LinkProps = {
1894
- children: ReactNode;
1895
- target?: HTMLAttributeAnchorTarget;
1896
- download?: string | boolean;
1897
- sentiment?: Color;
1898
- prominence?: ProminenceProps$1;
1899
- size?: LinkSizes;
1900
- iconPosition?: LinkIconPosition;
1901
- rel?: AnchorHTMLAttributes<HTMLAnchorElement>['rel'];
1902
- className?: string;
1903
- href: string;
1904
- onClick?: MouseEventHandler<HTMLAnchorElement>;
1905
- 'aria-label'?: string;
1906
- oneLine?: boolean;
1907
- 'data-testid'?: string;
1908
- variant?: 'inline' | 'standalone';
1909
- };
1910
- /**
1911
- * Link is a component used to navigate between pages or to external websites.
1912
- */
1913
- declare const Link: react.ForwardRefExoticComponent<LinkProps & react.RefAttributes<HTMLAnchorElement>>;
1914
-
1915
- type HeaderCellProps$1 = {
1916
- children: ReactNode;
1917
- className?: string;
1918
- isOrdered?: boolean;
1919
- orderDirection?: 'asc' | 'desc' | 'none';
1920
- onOrder?: (newOrder: 'asc' | 'desc') => void;
1921
- info?: string;
1922
- };
1923
- declare const HeaderCell$1: ({ children, isOrdered, orderDirection, onOrder, className, info, }: HeaderCellProps$1) => _emotion_react_jsx_runtime.JSX.Element;
1924
-
1925
- type SelectBarProps$1<T> = {
1926
- className?: string;
1927
- children: (p: {
1928
- selectedItems: T[];
1929
- unselectAll: () => void;
1930
- }) => ReactNode;
1931
- data: T[];
1932
- /**
1933
- * The idKey of each data entry
1934
- * */
1935
- idKey: keyof T;
1936
- };
1937
- declare function SelectBar$1<T>({ children, data, idKey, className, }: SelectBarProps$1<T>): _emotion_react_jsx_runtime.JSX.Element | null;
1938
-
1939
- type ColumnProps$1 = Pick<ComponentProps<typeof HeaderCell$1>, 'isOrdered' | 'onOrder' | 'orderDirection'> & {
1940
- label?: string;
1941
- width?: string;
1942
- info?: string;
1943
- };
1944
- type ListProps = {
1945
- expandable?: boolean;
1946
- selectable?: boolean;
1947
- columns: ColumnProps$1[];
1948
- children: ReactNode;
1949
- /**
1950
- * Set it to true if you want to display a placeholder during loading
1951
- * */
1952
- loading?: boolean;
1953
- /**
1954
- * Auto collapse is collapsing expandable row when another is expanding
1955
- * */
1956
- autoCollapse?: boolean;
1957
- /**
1958
- * Action when selection changes (get the list of selected rows)
1959
- */
1960
- onSelectedChange?: Dispatch<SetStateAction<string[]>>;
1961
- };
1962
- /**
1963
- * List is a component that displays a list of items based on the columns you provide and the data you pass.
1964
- */
1965
- declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>> & {
1966
- Row: react.ForwardRefExoticComponent<{
1967
- children: ReactNode;
1968
- id: string;
1969
- expandable?: ReactNode;
1970
- selectDisabled?: string | boolean | undefined;
1971
- disabled?: boolean | undefined;
1972
- sentiment?: "primary" | "secondary" | "neutral" | "success" | "danger" | "warning" | "info" | undefined;
1973
- className?: string | undefined;
1974
- 'data-testid'?: string | undefined;
1975
- } & react.RefAttributes<HTMLDivElement>>;
1976
- Cell: react.ForwardRefExoticComponent<{
1977
- children?: ReactNode;
1978
- className?: string | undefined;
1979
- preventClick?: boolean | undefined;
1980
- 'data-testid'?: string | undefined;
1981
- } & react.RefAttributes<HTMLDivElement>>;
1982
- SelectBar: typeof SelectBar$1;
1983
- useListContext: () => {
1984
- registerExpandableRow: (rowId: string) => () => void;
1985
- expandedRowIds: {
1986
- [x: string]: boolean;
1987
- };
1988
- expandRow: (rowId: string) => void;
1989
- collapseRow: (rowId: string) => void;
1990
- expandButton: boolean;
1991
- registerSelectableRow: (rowId: string) => () => void;
1992
- selectedRowIds: {
1993
- [x: string]: boolean;
1994
- };
1995
- selectRow: (rowId: string) => void;
1996
- unselectRow: (rowId: string) => void;
1997
- selectable: boolean;
1998
- allRowSelectValue: boolean | "indeterminate" | undefined;
1999
- selectAll: () => void;
2000
- unselectAll: () => void;
2001
- };
2002
- };
2003
-
2004
- type LoaderProps = {
2005
- active?: boolean;
2006
- color?: Color | string;
2007
- percentage?: number;
2008
- size?: number | string;
2009
- strokeWidth?: number;
2010
- /**
2011
- * Text is placed in center of ProgressCircle.
2012
- */
2013
- text?: string;
2014
- trailColor?: Color | string;
2015
- /**
2016
- * Label should be defined for accessibility, to indicate what is loading
2017
- */
2018
- label?: string;
2019
- };
2020
- /**
2021
- * Loader is a circular progress indicator that can be used to indicate that an action is being performed.
2022
- */
2023
- declare const Loader: ({ percentage, text, size, strokeWidth, color, trailColor, active, label, }: LoaderProps) => _emotion_react_jsx_runtime.JSX.Element;
2024
-
2025
- type DisclosureElement$1 = ((popover: Partial<PopoverStateReturn>) => ReactElement<ButtonHTMLAttributes<HTMLButtonElement>>) | (ReactElement<ButtonHTMLAttributes<HTMLButtonElement>> & {
2026
- ref?: Ref<HTMLButtonElement>;
2027
- });
2028
- declare const arrowPlacementStyles: {
2029
- readonly bottom: (theme: Theme) => _emotion_react.SerializedStyles;
2030
- readonly 'bottom-end': (theme: Theme) => _emotion_react.SerializedStyles;
2031
- readonly 'bottom-start': (theme: Theme) => _emotion_react.SerializedStyles;
2032
- readonly top: (theme: Theme) => _emotion_react.SerializedStyles;
2033
- readonly 'top-end': (theme: Theme) => _emotion_react.SerializedStyles;
2034
- readonly 'top-start': (theme: Theme) => _emotion_react.SerializedStyles;
2035
- };
2036
- type ArrowPlacement = keyof typeof arrowPlacementStyles;
2037
- type MenuProps$1 = {
2038
- ariaLabel?: string;
2039
- id?: string;
2040
- placement?: ArrowPlacement;
2041
- children?: ((props: PopoverStateReturn) => ReactNode) | ReactNode;
2042
- className?: string;
2043
- disclosure: DisclosureElement$1;
2044
- hasArrow?: boolean;
2045
- visible?: boolean;
2046
- 'data-testid'?: string;
2047
- };
2048
- /**
2049
- * A menu is a widget that offers a list of choices to the user, such as a set of actions or functions.
2050
- * A menu is usually opened, or made visible, by activating a menu button, choosing an item in a menu that opens a
2051
- * sub menu, or by invoking a command, such as `Shift + F10` on Windows, that opens a context specific menu.
2052
- * When a user activates a choice in a menu, the menu usually closes unless the choice opened a submenu.
2053
- * @deprecated use MenuV2 component instead
2054
- */
2055
- declare const Menu: react.ForwardRefExoticComponent<MenuProps$1 & react.RefAttributes<HTMLButtonElement>> & {
2056
- Item: react.ForwardRefExoticComponent<{
2057
- href?: string | undefined;
2058
- disabled?: boolean | undefined;
2059
- tooltip?: string | undefined;
2060
- className?: string | undefined;
2061
- children: ReactNode;
2062
- onClick?: react.MouseEventHandler<HTMLElement> | undefined;
2063
- borderless?: boolean | undefined;
2064
- sentiment?: ("neutral" | "danger") | undefined;
2065
- 'data-testid'?: string | undefined;
2066
- } & react.RefAttributes<HTMLElement>>;
2067
- };
2068
-
2069
- type Strength$1 = {
2070
- /**
2071
- * Color to display
2072
- */
2073
- color: string;
2074
- /**
2075
- * Text to display
2076
- */
2077
- text: string;
2078
- };
2079
- type PasswordStrengthMeterProps$1 = {
2080
- /**
2081
- * Strength is used for defining different color and text associated with it.
2082
- */
2083
- strength: Strength$1[];
2084
- title: string;
2085
- value: number;
2086
- className?: string;
2087
- 'data-testid'?: string;
2088
- id?: string;
2089
- };
2090
- /**
2091
- * Show strength of a password based on different criteria.
2092
- */
2093
- declare const Meter: ({ strength, title, value, className, "data-testid": dataTestId, id, }: PasswordStrengthMeterProps$1) => _emotion_react_jsx_runtime.JSX.Element;
2094
-
2095
- type NoticeProps = {
2096
- children: ReactNode;
2097
- className?: string;
2098
- 'data-testid'?: string;
2099
- };
2100
- /**
2101
- * A Notice is used to display a short message to the user.
2102
- */
2103
- declare const Notice: ({ children, className, "data-testid": dataTestId, }: NoticeProps) => _emotion_react_jsx_runtime.JSX.Element;
2104
-
2105
- type CheckboxGroupCheckboxProps = Omit<ComponentProps<typeof Checkbox>, 'onChange' | 'checked'> & {
2106
- value: string;
2107
- };
2108
- declare const CheckboxGroupCheckbox: ({ onFocus, onBlur, disabled, error, name, value, children, helper, className, autoFocus, "data-testid": dataTestId, required, }: CheckboxGroupCheckboxProps) => _emotion_react_jsx_runtime.JSX.Element;
2109
- type CheckboxGroupProps = {
2110
- legend: string;
2111
- value?: string[];
2112
- className?: string;
2113
- helper?: ReactNode;
2114
- error?: ReactNode;
2115
- direction?: 'row' | 'column';
2116
- children: ReactNode;
2117
- required?: boolean;
2118
- } & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'required'>;
2119
- /**
2120
- * CheckboxGroup is a component that groups a set of checkboxes together with a legend and helper/error text.
2121
- */
2122
- declare const CheckboxGroup: {
2123
- ({ legend, value, className, helper, error, direction, children, onChange, name, required, }: CheckboxGroupProps): _emotion_react_jsx_runtime.JSX.Element;
2124
- Checkbox: ({ onFocus, onBlur, disabled, error, name, value, children, helper, className, autoFocus, "data-testid": dataTestId, required, }: CheckboxGroupCheckboxProps) => _emotion_react_jsx_runtime.JSX.Element;
2125
- };
2126
-
2127
- declare const containerSizes: {
2128
- large: number;
2129
- medium: number;
2130
- small: number;
2131
- };
2132
- type ContainerSizesType = keyof typeof containerSizes;
2133
- type NumberInputProps = {
2134
- disabled?: boolean;
2135
- maxValue?: number;
2136
- minValue?: number;
2137
- name?: string;
2138
- onChange?: (input: number | undefined) => void;
2139
- onMaxCrossed?(): void;
2140
- onMinCrossed?(): void;
2141
- size?: ContainerSizesType;
2142
- /**
2143
- * Define how much will stepper increase / decrease each time you click on + / - button.
2144
- */
2145
- step?: number;
2146
- /**
2147
- * Text displayed into component at the right of number value.
2148
- */
2149
- text?: string;
2150
- defaultValue?: number;
2151
- value?: number | null;
2152
- disabledTooltip?: string;
2153
- className?: string;
2154
- 'data-testid'?: string;
2155
- label?: string;
2156
- 'aria-label'?: string;
2157
- 'aria-describedby'?: string;
2158
- id?: string;
2159
- placeholder?: string;
2160
- error?: string | boolean;
2161
- } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value' | 'defaultValue'>;
2162
- /**
2163
- * @deprecated This component is deprecated. Please use `NumberInputV2` instead.
2164
- */
2165
- declare const NumberInput: ({ disabled, maxValue, minValue, name, onChange, onFocus, onBlur, onMaxCrossed, onMinCrossed, size, step, text, defaultValue, value, disabledTooltip, className, label, id, placeholder, error, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "data-testid": dataTestId, }: NumberInputProps) => _emotion_react_jsx_runtime.JSX.Element;
2166
-
2167
- /**
2168
- * NumberInputV2 component is used to increment / decrement a number value by clicking on + / - buttons or
2169
- * by typing into input. If the value is out of the min / max range, the input will automatically be the min / max value on blur.
2170
- */
2171
- declare const NumberInputV2: react.ForwardRefExoticComponent<{
2172
- size?: "large" | "small" | "medium" | undefined;
2173
- /**
2174
- * Text displayed into component at the right of number value.
2175
- */
2176
- unit?: string | undefined;
2177
- tooltip?: string | undefined;
2178
- className?: string | undefined;
2179
- 'data-testid'?: string | undefined;
2180
- label?: string | undefined;
2181
- /**
2182
- * Label description displayed right next to the label. It allows you to customize the label content.
2183
- */
2184
- labelDescription?: ReactNode;
2185
- error?: string | undefined;
2186
- success?: string | boolean | undefined;
2187
- helper?: ReactNode;
2188
- value?: number | null | undefined;
2189
- onChange?: ((newValue: number | null) => void) | undefined;
2190
- min?: number | undefined;
2191
- max?: number | undefined;
2192
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "autoFocus" | "id" | "aria-label" | "onFocus" | "onBlur" | "name" | "disabled" | "step" | "placeholder" | "readOnly" | "required"> & react.RefAttributes<HTMLInputElement>>;
2193
-
2194
- type PaginationProps = {
2195
- /**
2196
- Event function called when changing the page
2197
- */
2198
- onChange: (newPage: number) => void;
2199
- /**
2200
- The current page (must be between 1 and pageCount included, otherwhile onChange will be called with a correct value)
2201
- */
2202
- page: number;
2203
- /**
2204
- Number of page you have
2205
- */
2206
- pageCount: number;
2207
- /**
2208
- How many page button you want to have
2209
- */
2210
- pageTabCount?: number;
2211
- /**
2212
- Disable all buttons
2213
- */
2214
- disabled?: boolean;
2215
- className?: string;
2216
- 'data-testid'?: string;
2217
- };
2218
- /**
2219
- * Pagination is a component to navigate between pages, it is composed of 2 buttons to go to the previous and next page,
2220
- * and a list of buttons to go to a specific page.
2221
- */
2222
- declare const Pagination: ({ disabled, page, pageCount, onChange, pageTabCount, className, "data-testid": dataTestId, }: PaginationProps) => _emotion_react_jsx_runtime.JSX.Element;
2223
-
2224
- type Rule = {
2225
- name: string;
2226
- text: string;
2227
- valid: boolean;
2228
- };
2229
- type PasswordCheckProps = {
2230
- /**
2231
- * Is an array of object that contains password rules. `name` is the name of the rule, `text` the text associated
2232
- * with the rule and `valid` is a boolean that determine if the rule is respected or not.
2233
- */
2234
- rules: Rule[];
2235
- className?: string;
2236
- 'data-testid'?: string;
2237
- };
2238
- /**
2239
- * PasswordCheck is a component that display a list of password rules with a check or a cross depending on the validity
2240
- * of the rule.
2241
- */
2242
- declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, }: PasswordCheckProps) => _emotion_react_jsx_runtime.JSX.Element;
2243
-
2244
- type Strength = {
2245
- /**
2246
- * Color to display
2247
- */
2248
- color: string;
2249
- /**
2250
- * Text to display
2251
- */
2252
- t: string;
2253
- };
2254
- type Score = 0 | 1 | 2 | 3 | 4;
2255
- type ResponseEstimate = {
2256
- score: Score;
2257
- };
2258
- type PasswordStrengthMeterProps = {
2259
- /**
2260
- * A function that should return a score based on password (index of strength array). The higher score is the stronger password is.
2261
- */
2262
- estimate?: ((passwordToTest: string, userInputs: string[]) => Promise<ResponseEstimate>) | ((passwordToTest: string, userInputs: string[]) => ResponseEstimate);
2263
- onChange?: (score: number) => unknown;
2264
- password?: string;
2265
- /**
2266
- * Strength is used for defining different color and text associated with it.
2267
- */
2268
- strength: Strength[];
2269
- title: string;
2270
- /**
2271
- * An array of string that defines what word shouldn't be used in the password.
2272
- */
2273
- forbiddenInputs?: string[];
2274
- className?: string;
2275
- 'data-testid'?: string;
2276
- };
2277
- /**
2278
- * PasswordStrengthMeter is a component that displays a password strength meter.
2279
- * @deprecated use Meter component instead
2280
- */
2281
- declare const PasswordStrengthMeter: ({ password, onChange, strength, title, estimate, forbiddenInputs, className, "data-testid": dataTestId, }: PasswordStrengthMeterProps) => _emotion_react_jsx_runtime.JSX.Element;
2282
-
2283
- type Data = {
2284
- name?: string | null;
2285
- needPattern?: boolean | null;
2286
- percent: number;
2287
- id: string;
2288
- value?: string | null;
2289
- };
2290
-
2291
- type PieChartProps = {
2292
- chartProps?: Record<string, unknown>;
2293
- data?: Data[];
2294
- height?: number;
2295
- width?: number;
2296
- emptyLegend?: string;
2297
- content?: ReactNode;
2298
- withLegend?: boolean;
2299
- margin?: Box;
2300
- };
2301
- /**
2302
- * PieChart component is a wrapper around the Nivo Pie component to display a pie chart.
2303
- * See https://nivo.rocks/pie/ for more information.
2304
- * @experimental This component is experimental and may be subject to breaking changes in the future.
2305
- */
2306
- declare const PieChart: ({ height, width, data, emptyLegend, content, withLegend, margin, chartProps, }: PieChartProps) => _emotion_react_jsx_runtime.JSX.Element;
2307
-
2308
- type PopupPlacement = 'top' | 'right' | 'bottom' | 'left' | 'auto';
2309
-
2310
- type SentimentType = 'neutral' | 'primary';
2311
- /**
2312
- * Popover component is used to display additional information or actions on top of the main content of the page.
2313
- * It is usually triggered by clicking on a button. It includes a title, a close button and a content area.
2314
- */
2315
- declare const Popover: react.ForwardRefExoticComponent<{
2316
- children: ReactNode;
2317
- content: ReactNode;
2318
- title: string;
2319
- sentiment?: SentimentType | undefined;
2320
- visible?: boolean | undefined;
2321
- size?: "large" | "small" | "medium" | undefined;
2322
- onClose?: (() => void) | undefined;
2323
- className?: string | undefined;
2324
- 'data-testid'?: string | undefined;
2325
- maxWidth?: string | undefined;
2326
- maxHeight?: string | undefined;
2327
- /**
2328
- * By default, the portal target is children container or document.body if children is a function. You can override this
2329
- * behavior by setting a portalTarget prop.
2330
- */
2331
- portalTarget?: HTMLElement | undefined;
2332
- } & Pick<{
2333
- id?: string | undefined;
2334
- children: ReactNode | ((renderProps: {
2335
- className?: string | undefined;
2336
- onBlur: () => void;
2337
- onFocus: () => void;
2338
- onPointerEnter: () => void;
2339
- onPointerLeave: () => void;
2340
- ref: react.RefObject<HTMLDivElement>;
2341
- }) => ReactNode);
2342
- maxWidth?: string | number | undefined;
2343
- placement?: PopupPlacement | undefined;
2344
- text?: ReactNode;
2345
- className?: string | undefined;
2346
- containerFullWidth?: boolean | undefined;
2347
- visible?: boolean | undefined;
2348
- innerRef?: Ref<HTMLDivElement | null> | undefined;
2349
- role?: string | undefined;
2350
- 'data-testid'?: string | undefined;
2351
- hasArrow?: boolean | undefined;
2352
- onClose?: (() => void) | undefined;
2353
- tabIndex?: number | undefined;
2354
- onKeyDown?: react.KeyboardEventHandler | undefined;
2355
- 'aria-haspopup'?: boolean | "menu" | "dialog" | "grid" | "listbox" | "tree" | "false" | "true" | undefined;
2356
- hideOnClickOutside?: boolean | undefined;
2357
- debounceDelay?: number | undefined;
2358
- maxHeight?: string | number | undefined;
2359
- disableAnimation?: boolean | undefined;
2360
- portalTarget?: HTMLElement | undefined;
2361
- } & react.RefAttributes<HTMLDivElement>, "placement"> & react.RefAttributes<HTMLDivElement>>;
2362
-
2363
- type PopupProps = {
2364
- /**
2365
- * Id is automatically generated if not set. It is used for associating popup wrapper with popup portal.
2366
- */
2367
- id?: string;
2368
- children: ReactNode | ((renderProps: {
2369
- className?: string;
2370
- onBlur: () => void;
2371
- onFocus: () => void;
2372
- onPointerEnter: () => void;
2373
- onPointerLeave: () => void;
2374
- ref: RefObject<HTMLDivElement>;
2375
- }) => ReactNode);
2376
- maxWidth?: number | string;
2377
- /**
2378
- * `auto` placement will change the position of the popup if it doesn't fit in the viewport.
2379
- */
2380
- placement?: PopupPlacement;
2381
- /**
2382
- * Content of the popup, preferably text inside.
2383
- */
2384
- text?: ReactNode;
2385
- className?: string;
2386
- /**
2387
- * It will add `width: 100%` to the popup container.
2388
- */
2389
- containerFullWidth?: boolean;
2390
- /**
2391
- * It will force display popup. This can be useful if you need to always display the popup without hover needed.
2392
- */
2393
- visible?: boolean;
2394
- innerRef?: Ref<HTMLDivElement | null>;
2395
- role?: string;
2396
- 'data-testid'?: string;
2397
- hasArrow?: boolean;
2398
- onClose?: () => void;
2399
- tabIndex?: number;
2400
- onKeyDown?: KeyboardEventHandler;
2401
- 'aria-haspopup'?: HTMLAttributes<HTMLDivElement>['aria-haspopup'];
2402
- hideOnClickOutside?: boolean;
2403
- /**
2404
- * If you set debounceTime to false, the popup will not debounce the hover event and will be displayed instantly.
2405
- * If set to 0 it will disable debounce.
2406
- */
2407
- debounceDelay?: number;
2408
- /**
2409
- * If you set a max height keep in mind that the animation is disabled, or it will not work properly on some browsers.
2410
- */
2411
- maxHeight?: string | number;
2412
- /**
2413
- * Will remove the animation on the popup if set to false.
2414
- */
2415
- disableAnimation?: boolean;
2416
- /**
2417
- * By default, the portal target is children container or document.body if children is a function. You can override this
2418
- * behavior by setting a portalTarget prop.
2419
- */
2420
- portalTarget?: HTMLElement;
2421
- };
2422
- /**
2423
- * @experimental This component is experimental and may be subject to breaking changes in the future.
2424
- */
2425
- declare const Popup: react.ForwardRefExoticComponent<PopupProps & react.RefAttributes<HTMLDivElement>>;
2426
-
2427
- declare const progressBarSentiments: readonly ["primary", "success", "warning", "info", "danger"];
2428
- type ProgressBarProps = {
2429
- sentiment?: (typeof progressBarSentiments)[number];
2430
- value?: number;
2431
- /** Put ProgressBar in a loading state */
2432
- progress?: boolean;
2433
- className?: string;
2434
- 'data-testid'?: string;
2435
- };
2436
- /**
2437
- * Progress bar component to display progress of a task. Can be used to display progress of a form or a loading state.
2438
- */
2439
- declare const ProgressBar: ({ progress, value, sentiment, className, "data-testid": dataTestId, }: ProgressBarProps) => _emotion_react_jsx_runtime.JSX.Element;
2440
-
2441
- type RadioProps = {
2442
- error?: ReactNode;
2443
- checked?: boolean;
2444
- value: string | number;
2445
- helper?: ReactNode;
2446
- className?: string;
2447
- 'data-testid'?: string;
2448
- tooltip?: string;
2449
- } & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'onFocus' | 'onBlur' | 'disabled' | 'autoFocus' | 'onKeyDown' | 'id' | 'name' | 'required'> & ({
2450
- 'aria-label': string;
2451
- label?: never;
2452
- } | {
2453
- 'aria-label'?: never;
2454
- label: ReactNode;
2455
- });
2456
- /**
2457
- * Radio component is used to select a single option from a list of options. It is a type of input component.
2458
- */
2459
- declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
2460
-
2461
- type RowProps = {
2462
- className?: string;
2463
- 'data-testid'?: string;
2464
- children: ReactNode;
2465
- templateColumns: string;
2466
- gap?: keyof UltravioletUITheme['space'] | number;
2467
- alignItems?: CSSProperties['alignItems'];
2468
- justifyContent?: CSSProperties['justifyContent'];
2469
- };
2470
- /**
2471
- * Row component is a wrapper for grid layout.
2472
- * @experimental This component is experimental and may be subject to breaking changes in the future.
2473
- */
2474
- declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, }: RowProps) => _emotion_react_jsx_runtime.JSX.Element;
2475
-
2476
- type SelectableCardProps = {
2477
- name?: string;
2478
- children?: (({ disabled, checked, }: Pick<SelectableCardProps, 'checked' | 'disabled'>) => ReactNode) | ReactNode;
2479
- value: string | number;
2480
- onChange: ChangeEventHandler<HTMLInputElement>;
2481
- showTick?: boolean;
2482
- type?: 'radio' | 'checkbox';
2483
- disabled?: boolean;
2484
- checked?: boolean;
2485
- className?: string;
2486
- isError?: boolean;
2487
- onFocus?: FocusEventHandler<HTMLInputElement>;
2488
- onBlur?: FocusEventHandler<HTMLInputElement>;
2489
- id?: string;
2490
- tooltip?: string;
2491
- label?: ReactNode;
2492
- 'data-testid'?: string;
2493
- };
2494
- /**
2495
- * SelectableCard is a component that can be used to create a radio or checkbox card.
2496
- * It can be used to create a list of selectable items or a single selectable item.
2497
- */
2498
- declare const SelectableCard: react.ForwardRefExoticComponent<SelectableCardProps & react.RefAttributes<HTMLDivElement>>;
2499
-
2500
- type SelectOption = {
2501
- value: string;
2502
- label: ReactNode;
2503
- disabled?: boolean;
2504
- description?: string;
2505
- inlineDescription?: string;
2506
- };
2507
- type SelectStyleProps = {
2508
- error?: string;
2509
- /**
2510
- * Custom styles of the SelectInput. See [React select documentation](https://react-select.com/styles)
2511
- */
2512
- customStyle: (state: SelectProps & WithSelectProps) => Record<string, CSSObject>;
2513
- animation?: string;
2514
- /**
2515
- * Time of the animation
2516
- */
2517
- animationDuration: number;
2518
- /**
2519
- * Show/hide the label inside the component
2520
- */
2521
- noTopLabel?: boolean;
2522
- theme: Theme;
2523
- };
2524
- type WithSelectProps = {
2525
- selectProps: SelectProps;
2526
- };
2527
- type SelectProps = StyledContainerProps & Omit<Props<SelectOption>, 'value'> & CommonProps$1<SelectOption, boolean, GroupBase<SelectOption>> & {
2528
- value?: string | SelectOption;
2529
- checked?: boolean;
2530
- error?: string;
2531
- labelId?: string;
2532
- required?: boolean;
2533
- time?: boolean;
2534
- };
2535
- type StyledContainerProps = {
2536
- isDisabled?: boolean;
2537
- additionalStyles?: Parameters<typeof css>[0];
2538
- };
2539
- type StateManagedSelect = typeof Select;
2540
- type SelectInputProps = SelectProps & SelectStyleProps & {
2541
- /**
2542
- * Name of the animation
2543
- */
2544
- animation?: string;
2545
- /**
2546
- * Play the animation when the value change
2547
- */
2548
- animationOnChange?: boolean;
2549
- disabled?: boolean;
2550
- readOnly?: boolean;
2551
- innerRef?: ForwardedRef<StateManagedSelect>;
2552
- /**
2553
- * Custom components of the SelectInput. See [React select documentation](https://react-select.com/components)
2554
- */
2555
- customComponents?: SelectProps['components'];
2556
- children: ReactNode;
2557
- emptyState?: ComponentProps<Select>['noOptionsMessage'];
2558
- 'data-testid'?: string;
2559
- };
2560
- type OptionComponent = (props: Partial<OptionProps<SelectOption> & SelectOption>) => JSX.Element;
2561
- /**
2562
- * SelectInput component is a wrapper around [react-select](https://react-select.com) component.
2563
- * It provides a styled select input with a label and an error message.
2564
- * @deprecated use SelectInputV2 component instead
2565
- */
2566
- declare const SelectInput: ForwardRefExoticComponent<Partial<SelectInputProps>> & {
2567
- Option: OptionComponent;
2568
- };
2569
-
2570
- type Direction = 'horizontal' | 'vertical';
2571
- type SeparatorProps = {
2572
- icon?: ComponentProps<typeof Icon>['name'];
2573
- direction?: Direction;
2574
- thickness?: number;
2575
- color?: Color;
2576
- className?: string;
2577
- 'data-testid'?: string;
2578
- };
2579
- /**
2580
- * Separator component used to separate content with a horizontal or vertical line.
2581
- */
2582
- declare const Separator: ({ direction, thickness, color, icon, className, "data-testid": dataTestId, }: SeparatorProps) => _emotion_react_jsx_runtime.JSX.Element;
2583
-
2584
- declare const variants: {
2585
- readonly block: ({ length }: {
2586
- length?: number | undefined;
2587
- }) => _emotion_react_jsx_runtime.JSX.Element;
2588
- readonly blocks: ({ col, length, }: {
2589
- col?: number | undefined;
2590
- length?: number | undefined;
2591
- }) => _emotion_react_jsx_runtime.JSX.Element;
2592
- readonly box: ({ col, length, }: {
2593
- col?: number | undefined;
2594
- length?: number | undefined;
2595
- }) => _emotion_react_jsx_runtime.JSX.Element;
2596
- readonly donut: () => _emotion_react_jsx_runtime.JSX.Element;
2597
- readonly line: _emotion_styled.StyledComponent<{
2598
- theme?: _emotion_react.Theme | undefined;
2599
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
2600
- }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2601
- readonly list: ({ length, col, }: {
2602
- length?: number | undefined;
2603
- col?: number | undefined;
2604
- }) => _emotion_react_jsx_runtime.JSX.Element;
2605
- readonly slider: ({ length }: {
2606
- length?: number | undefined;
2607
- }) => _emotion_react_jsx_runtime.JSX.Element;
2608
- readonly square: _emotion_styled.StyledComponent<{
2609
- theme?: _emotion_react.Theme | undefined;
2610
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
2611
- }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2612
- };
2613
- type SkeletonVariant = keyof typeof variants;
2614
- type SkeletonProps = {
2615
- variant?: SkeletonVariant;
2616
- length?: number;
2617
- col?: number;
2618
- className?: string;
2619
- 'aria-label'?: string;
2620
- 'data-testid'?: string;
2621
- };
2622
- /**
2623
- * Skeleton component is used to indicate that the data is loading.
2624
- * It is used to provide a better user experience by showing a temporary placeholder reflecting the dimensions of the
2625
- * content that will eventually be loaded on the screen.
2626
- */
2627
- declare const Skeleton: ({ variant, length, col, className, "aria-label": ariaLabel, "data-testid": dataTestId, }: SkeletonProps) => _emotion_react_jsx_runtime.JSX.Element;
2628
-
2629
- type Prefixes = 'lines' | 'command';
2630
- type SnippetProps = {
2631
- className?: string;
2632
- children: string;
2633
- /**
2634
- * prefix display an element at the beginning of the snippet that is not copiable or selectable.
2635
- * For `lines` prefix it will display the line number.
2636
- * For `command` prefix it will display a `$` sign.
2637
- */
2638
- prefix?: Prefixes;
2639
- showText?: string;
2640
- hideText?: string;
2641
- 'data-testid'?: string;
2642
- initiallyExpanded?: boolean;
2643
- } & Pick<ComponentProps<typeof CopyButton>, 'copyText' | 'copiedText'>;
2644
- /**
2645
- * Snippet component is used to display code snippets with the ability to copy the code.
2646
- * It also has the ability to show/hide the code snippet if it has more than 4 lines.
2647
- */
2648
- declare const Snippet: ({ children, copyText, copiedText, showText, hideText, prefix, className, "data-testid": dataTestId, initiallyExpanded, }: SnippetProps) => _emotion_react_jsx_runtime.JSX.Element;
2649
-
2650
- type StackProps = {
2651
- gap?: keyof UltravioletUITheme['space'] | number;
2652
- direction?: 'row' | 'column';
2653
- alignItems?: CSSProperties['alignItems'];
2654
- justifyContent?: CSSProperties['justifyContent'];
2655
- wrap?: boolean | CSSProperties['flexWrap'];
2656
- width?: CSSProperties['width'];
2657
- flex?: CSSProperties['flex'];
2658
- className?: string;
2659
- children: ReactNode;
2660
- 'data-testid'?: string;
2661
- };
2662
- /**
2663
- * A Stack is a widget that organize children in a vertical or horizontal layout based on css Flex,
2664
- * it accepts few props to deal with spacing and align.
2665
- */
2666
- declare const Stack: _emotion_styled.StyledComponent<{
2667
- theme?: _emotion_react.Theme | undefined;
2668
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
2669
- } & StackProps, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2670
-
2671
- declare const sentiments: {
2672
- readonly danger: ({ theme }: {
2673
- theme: Theme;
2674
- }) => string;
2675
- readonly info: ({ theme }: {
2676
- theme: Theme;
2677
- }) => string;
2678
- readonly neutral: ({ theme }: {
2679
- theme: Theme;
2680
- }) => string;
2681
- readonly success: ({ theme }: {
2682
- theme: Theme;
2683
- }) => string;
2684
- readonly warning: ({ theme }: {
2685
- theme: Theme;
2686
- }) => string;
2687
- };
2688
- type StatusSentiment = keyof typeof sentiments;
2689
- type StatusProps = {
2690
- animated?: boolean;
2691
- className?: string;
2692
- sentiment: StatusSentiment;
2693
- tooltip?: string;
2694
- 'data-testid'?: string;
2695
- };
2696
- /**
2697
- * Status component used to display a colored circle with a tooltip for additional information.
2698
- */
2699
- declare const Status: ({ animated, className, tooltip, sentiment, "data-testid": dataTestId, }: StatusProps) => _emotion_react_jsx_runtime.JSX.Element;
2700
-
2701
- type Sizes = 'small' | 'medium';
2702
- type ContentProps = {
2703
- bulletIcon: ComponentProps<typeof Bullet>['icon'];
2704
- bulletText?: never;
2705
- } | {
2706
- bulletIcon?: never;
2707
- bulletText: string;
2708
- };
2709
- type ItemProps = {
2710
- sentiment?: ComponentProps<typeof Bullet>['sentiment'];
2711
- prominence?: ComponentProps<typeof Bullet>['prominence'];
2712
- size?: Sizes;
2713
- disabled?: boolean;
2714
- children: ReactNode;
2715
- onClick?: () => void;
2716
- className?: string;
2717
- } & ContentProps;
2718
- type StepListProps = {
2719
- children: ReactNode;
2720
- className?: string;
2721
- 'data-testid'?: string;
2722
- };
2723
- /**
2724
- * StepList component is used to display a list of steps.
2725
- * @experimental This component is experimental and may be subject to breaking changes in the future.
2726
- */
2727
- declare const StepList: {
2728
- ({ children, className, "data-testid": dataTestId, }: StepListProps): _emotion_react_jsx_runtime.JSX.Element;
2729
- Item: ({ bulletText, bulletIcon, sentiment, prominence, children, onClick, size, disabled, className, }: ItemProps) => _emotion_react_jsx_runtime.JSX.Element;
2730
- };
2731
-
2732
- type StepperProps = {
2733
- animated?: boolean;
2734
- selected?: number;
2735
- children: ReactNode[];
2736
- className?: string;
2737
- labelPosition?: 'bottom' | 'right';
2738
- size?: 'small' | 'medium';
2739
- 'data-testid'?: string;
2740
- };
2741
- /**
2742
- * Stepper component to show the progress of a process in a linear way.
2743
- */
2744
- declare const Stepper: ({ children, selected, animated, className, labelPosition, size, "data-testid": dataTestId, }: StepperProps) => _emotion_react_jsx_runtime.JSX.Element;
2745
-
2746
- type SwitchButtonProps = {
2747
- name: string;
2748
- onBlur?: FocusEventHandler;
2749
- onChange: ChangeEventHandler;
2750
- onFocus?: FocusEventHandler;
2751
- tooltip?: string;
2752
- value?: string | number;
2753
- leftButton: {
2754
- label: string;
2755
- value: string;
2756
- disabled?: boolean;
2757
- };
2758
- rightButton: {
2759
- label: string;
2760
- value: string;
2761
- disabled?: boolean;
2762
- };
2763
- className?: string;
2764
- 'data-testid'?: string;
2765
- };
2766
- /**
2767
- * SwitchButton is a component that allows the user to select between two options.
2768
- */
2769
- declare const SwitchButton: ({ value, onChange, onFocus, onBlur, name, leftButton, rightButton, tooltip, className, "data-testid": dataTestId, }: SwitchButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
2770
-
2771
- type HeaderCellProps = {
2772
- children: ReactNode;
2773
- className?: string;
2774
- isOrdered?: boolean;
2775
- orderDirection?: 'asc' | 'desc' | 'none';
2776
- onOrder?: (newOrder: 'asc' | 'desc') => void;
2777
- width?: string;
2778
- minWidth?: string;
2779
- maxWidth?: string;
2780
- info?: string;
2781
- };
2782
- declare const HeaderCell: ({ children, className, isOrdered, onOrder, orderDirection, width, maxWidth, minWidth, info, }: HeaderCellProps) => _emotion_react_jsx_runtime.JSX.Element;
2783
-
2784
- type SelectBarProps<T> = {
2785
- className?: string;
2786
- children: (p: {
2787
- selectedItems: T[];
2788
- unselectAll: () => void;
2789
- }) => ReactNode;
2790
- data: T[];
2791
- /**
2792
- * The idKey of each data entry
2793
- * */
2794
- idKey: keyof T;
2795
- };
2796
- declare function SelectBar<T>({ children, data, idKey, className, }: SelectBarProps<T>): _emotion_react_jsx_runtime.JSX.Element | null;
2797
-
2798
- type ColumnProps = Pick<ComponentProps<typeof HeaderCell>, 'isOrdered' | 'onOrder' | 'orderDirection'> & {
2799
- label?: string;
2800
- width?: string;
2801
- minWidth?: string;
2802
- maxWidth?: string;
2803
- info?: string;
2804
- };
2805
- type TableProps = {
2806
- selectable?: boolean;
2807
- columns: ColumnProps[];
2808
- children: ReactNode;
2809
- /**
2810
- * Set it to true if you want to display a placeholder during loading
2811
- * */
2812
- loading?: boolean;
2813
- bordered?: boolean;
2814
- stripped?: boolean;
2815
- };
2816
- /**
2817
- * Table is a component that displays data in a tabular format.
2818
- */
2819
- declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>> & {
2820
- Body: ({ children }: {
2821
- children: ReactNode;
2822
- }) => _emotion_react_jsx_runtime.JSX.Element;
2823
- Row: ({ children, className, id, selectDisabled, highlightAnimation, "data-testid": dataTestid, }: {
2824
- children: ReactNode;
2825
- className?: string | undefined;
2826
- id: string;
2827
- 'data-testid'?: string | undefined;
2828
- selectDisabled?: string | boolean | undefined;
2829
- highlightAnimation?: boolean | undefined;
2830
- }) => _emotion_react_jsx_runtime.JSX.Element;
2831
- Cell: ({ children, className, colSpan, rowSpan }: {
2832
- children?: ReactNode;
2833
- className?: string | undefined;
2834
- colSpan?: number | undefined;
2835
- rowSpan?: number | undefined;
2836
- }) => _emotion_react_jsx_runtime.JSX.Element;
2837
- useTableContext: () => {
2838
- bordered: boolean;
2839
- stripped: boolean;
2840
- selectedRowIds: {
2841
- [x: string]: boolean;
2842
- };
2843
- selectRow: (rowId: string) => void;
2844
- unselectRow: (rowId: string) => void;
2845
- selectable: boolean;
2846
- allRowSelectValue: boolean | "indeterminate" | undefined;
2847
- selectAll: () => void;
2848
- unselectAll: () => void;
2849
- registerSelectableRow: (rowId: string) => () => void;
2850
- };
2851
- SelectBar: typeof SelectBar;
2852
- };
2853
-
2854
- type TabsProps = {
2855
- selected?: string | number;
2856
- onChange: (data: string | number) => void;
2857
- moreDisclosure?: ReactNode;
2858
- className?: string;
2859
- 'data-testid'?: string;
2860
- } & Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'role'>;
2861
- /**
2862
- * Tabs component is used to display a set of tabs with a single tab selected at a time.
2863
- */
2864
- declare const Tabs: {
2865
- ({ children, onChange, moreDisclosure, selected, className, "data-testid": dataTestId, ...props }: TabsProps): _emotion_react_jsx_runtime.JSX.Element;
2866
- Tab: react.ForwardRefExoticComponent<Omit<{
2867
- as?: react.ElementType | undefined;
2868
- badge?: ReactNode;
2869
- children?: ReactNode;
2870
- className?: string | undefined;
2871
- counter?: string | number | undefined;
2872
- disabled?: boolean | undefined;
2873
- onClick?: react.MouseEventHandler<HTMLElement> | undefined;
2874
- onKeyDown?: react.KeyboardEventHandler<HTMLElement> | undefined;
2875
- subtitle?: string | undefined;
2876
- tooltip?: string | undefined;
2877
- value?: string | number | undefined;
2878
- } & Omit<any, "tooltip" | "children" | "role" | "className" | "as" | "disabled" | "value" | "badge" | "counter">, "ref"> & react.RefAttributes<HTMLElement>>;
2879
- Menu: react.ForwardRefExoticComponent<{
2880
- children: ReactNode;
2881
- disclosure: ReactNode;
2882
- visible?: boolean | undefined;
2883
- id?: string | undefined;
2884
- } & Omit<react.ButtonHTMLAttributes<HTMLButtonElement>, "aria-disabled"> & react.RefAttributes<HTMLButtonElement>>;
2885
- MenuItem: ({ value, children, onClick, ...props }: {
2886
- value?: string | number | undefined;
2887
- } & {
2888
- href?: string | undefined;
2889
- disabled?: boolean | undefined;
2890
- tooltip?: string | undefined;
2891
- className?: string | undefined;
2892
- children: ReactNode;
2893
- onClick?: react.MouseEventHandler<HTMLElement> | undefined;
2894
- borderless?: boolean | undefined;
2895
- sentiment?: ("primary" | "neutral" | "danger") | undefined;
2896
- active?: boolean | undefined;
2897
- 'data-testid'?: string | undefined;
2898
- } & react.RefAttributes<HTMLElement> & {
2899
- theme?: _emotion_react.Theme | undefined;
2900
- }) => _emotion_react_jsx_runtime.JSX.Element;
2901
- };
2902
-
2903
- type IconName = ComponentProps<typeof Icon>['name'];
2904
- type TagProps = {
2905
- isLoading?: boolean;
2906
- onClose?: MouseEventHandler<HTMLButtonElement>;
2907
- sentiment?: Color;
2908
- disabled?: boolean;
2909
- /**
2910
- * Defines icon to display on left side of badge. **Only available on medium and large sizes**.
2911
- */
2912
- icon?: IconName;
2913
- copiable?: boolean;
2914
- copyText?: string;
2915
- copiedText?: string;
2916
- className?: string;
2917
- children: ReactNode;
2918
- 'data-testid'?: string;
2919
- };
2920
- /**
2921
- * Tag component is used to display a short text description of an item. It can be used to display a category
2922
- * or any other metadata.
2923
- */
2924
- declare const Tag: ({ children, isLoading, onClose, icon, copiable, copyText, copiedText, disabled, sentiment, className, "data-testid": dataTestId, }: TagProps) => _emotion_react_jsx_runtime.JSX.Element;
2925
-
2926
- declare const TAGINPUT_SIZE_PADDING: {
2927
- readonly large: "1.5";
2928
- readonly medium: "1";
2929
- readonly small: "0.5";
2930
- };
2931
- type TagInputSize = keyof typeof TAGINPUT_SIZE_PADDING;
2932
- type TagInputProp = (string | {
2933
- label: string;
2934
- index: string;
2935
- })[];
2936
- type TagInputProps = {
2937
- disabled?: boolean;
2938
- id?: string;
2939
- /**
2940
- * @deprecated this prop has no more effect
2941
- */
2942
- manualInput?: boolean;
2943
- name?: string;
2944
- onChange?: (tags: string[]) => void;
2945
- /**
2946
- * @deprecated this prop has no more effect
2947
- */
2948
- onChangeError?: (error: Error | string) => void;
2949
- placeholder?: string;
2950
- /**
2951
- * @deprecated use `value` property instead, both properties work the same way
2952
- */
2953
- tags?: TagInputProp;
2954
- value?: TagInputProp;
2955
- /**
2956
- * @deprecated there is only one variant now, this prop has no more effect
2957
- */
2958
- variant?: string;
2959
- className?: string;
2960
- 'data-testid'?: string;
2961
- label?: string;
2962
- /**
2963
- * Label description displayed right next to the label. It allows you to customize the label content.
2964
- */
2965
- labelDescription?: ReactNode;
2966
- required?: boolean;
2967
- size?: TagInputSize;
2968
- error?: string;
2969
- success?: string | boolean;
2970
- helper?: ReactNode;
2971
- readOnly?: boolean;
2972
- tooltip?: string;
2973
- clearable?: boolean;
2974
- };
2975
- /**
2976
- * TagInput is a component that allows users to input tags.
2977
- */
2978
- declare const TagInput: ({ disabled, id, name, onChange, placeholder, tags, value, className, "data-testid": dataTestId, label, labelDescription, required, size, error, success, helper, readOnly, tooltip, clearable, }: TagInputProps) => _emotion_react_jsx_runtime.JSX.Element;
2979
-
2980
- type TagListProps = {
2981
- /**
2982
- * This property define maximum characters length of all tags until it hide tags into tooltip.
2983
- */
2984
- maxLength?: number;
2985
- tags?: (string | {
2986
- label: string;
2987
- icon: NonNullable<ComponentProps<typeof Tag>['icon']>;
2988
- })[];
2989
- /**
2990
- * This property define maximum characters length of all tags until it hide tags into tooltip.
2991
- */
2992
- threshold?: number;
2993
- /**
2994
- * This property define maximum width of each tag. This doesn't apply for tags in tooltip.
2995
- */
2996
- multiline?: boolean;
2997
- /**
2998
- * This property define the title of the Popover, when some tags are hidden because of the threshold.
2999
- */
3000
- popoverTitle: string;
3001
- /**
3002
- * The popover will be placed automatically by default. You can also specify the placement of the popover through
3003
- * this property.
3004
- */
3005
- popoverPlacement?: ComponentProps<typeof Popover>['placement'];
3006
- className?: string;
3007
- 'data-testid'?: string;
3008
- } & Pick<ComponentProps<typeof Tag>, 'copiable' | 'copyText' | 'copiedText'>;
3009
- /**
3010
- * This component is used to display a list of tags with a threshold and a popover when there are too many tags.
3011
- */
3012
- declare const TagList: ({ maxLength, tags, threshold, multiline, popoverTitle, popoverPlacement, copiable, copyText, copiedText, className, "data-testid": dataTestId, }: TagListProps) => _emotion_react_jsx_runtime.JSX.Element | null;
3013
-
3014
- declare const PROMINENCES: {
3015
- default: string;
3016
- strong: string;
3017
- stronger: string;
3018
- weak: string;
3019
- };
3020
- type ProminenceProps = keyof typeof PROMINENCES;
3021
- type PlacementProps = react__default.CSSProperties['textAlign'];
3022
- type TextVariant = keyof typeof typography;
3023
- type TextProps = {
3024
- className?: string;
3025
- children: ReactNode;
3026
- placement?: PlacementProps;
3027
- variant: TextVariant;
3028
- /**
3029
- * @deprecated use `sentiment` property instead
3030
- */
3031
- color?: Color;
3032
- sentiment?: Color;
3033
- prominence?: ProminenceProps;
3034
- as: ElementType;
3035
- oneLine?: boolean;
3036
- disabled?: boolean;
3037
- italic?: boolean;
3038
- underline?: boolean;
3039
- id?: string;
3040
- dir?: 'ltr' | 'rtl' | 'auto';
3041
- htmlFor?: string;
3042
- 'data-testid'?: string;
3043
- };
3044
- /**
3045
- * Text component is used to display text with different variants and sentiments.
3046
- */
3047
- declare const Text: ({ variant, children, as, color, sentiment, oneLine, placement, prominence, className, disabled, italic, underline, id, dir, htmlFor, "data-testid": dataTestId, }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
3048
-
3049
- type TextAreaProps = {
3050
- id?: string;
3051
- className?: string;
3052
- tabIndex?: number;
3053
- autoFocus?: boolean;
3054
- label: string;
3055
- value?: string;
3056
- onChange: (newValue: string) => void;
3057
- placeholder?: string;
3058
- /**
3059
- * Override others properties : readyOnly, success, error.
3060
- */
3061
- disabled?: boolean;
3062
- /**
3063
- * Override others properties : success, error.
3064
- * Ignored if following props are provided : disabled.
3065
- */
3066
- readOnly?: boolean;
3067
- /**
3068
- * Override others properties : error, helper.
3069
- * Ignored if following props are provided : disabled, readyOnly.
3070
- */
3071
- success?: string;
3072
- /**
3073
- * Override others properties : helper.
3074
- * Ignored if following props are provided : disabled, readyOnly, success.
3075
- */
3076
- error?: string;
3077
- /**
3078
- * Ignored if following props are provided : readyOnly, success.
3079
- */
3080
- helper?: ReactNode;
3081
- rows?: number;
3082
- minLength?: number;
3083
- maxLength?: number;
3084
- tooltip?: string;
3085
- required?: boolean;
3086
- 'data-testid'?: string;
3087
- name?: string;
3088
- onFocus?: DOMAttributes<HTMLTextAreaElement>['onFocus'];
3089
- onBlur?: DOMAttributes<HTMLTextAreaElement>['onBlur'];
3090
- clearable?: boolean;
3091
- labelDescription?: ReactNode;
3092
- };
3093
- /**
3094
- * This component offers an extended textarea HTML
3095
- */
3096
- declare const TextArea: react.ForwardRefExoticComponent<TextAreaProps & react.RefAttributes<HTMLTextAreaElement>>;
3097
-
3098
- declare const inputSizes: {
3099
- medium: {
3100
- default: string;
3101
- full: string;
3102
- };
3103
- small: {
3104
- default: string;
3105
- full: string;
3106
- };
3107
- };
3108
- type TextInputSizes = keyof typeof inputSizes;
3109
- type StyledInputProps = {
3110
- disabled?: boolean;
3111
- error?: boolean;
3112
- fillAvailable?: boolean;
3113
- hasLabel?: boolean;
3114
- paddingRightFactor: number;
3115
- isPlaceholderVisible?: boolean;
3116
- multiline?: boolean;
3117
- resizable?: boolean;
3118
- inputSize: TextInputSizes;
3119
- unit?: string;
3120
- rightComponentLength: number;
3121
- } & (InputHTMLAttributes<HTMLInputElement> | TextareaHTMLAttributes<HTMLTextAreaElement>);
3122
- type InputProps = Omit<Exclude<StyledInputProps, TextareaHTMLAttributes<HTMLTextAreaElement>>, 'inputSize'>;
3123
- type TextInputProps = {
3124
- 'data-testid'?: string;
3125
- ariaControls?: string;
3126
- autoComplete?: string;
3127
- autoFocus?: boolean;
3128
- className?: string;
3129
- cols?: number;
3130
- defaultValue?: string;
3131
- disabled?: boolean;
3132
- edit?: boolean;
3133
- error?: string;
3134
- fillAvailable?: boolean;
3135
- generated?: boolean;
3136
- height?: string | number;
3137
- id?: string;
3138
- label?: string;
3139
- multiline?: boolean;
3140
- name?: string;
3141
- notice?: string;
3142
- noTopLabel?: boolean;
3143
- onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
3144
- onChange?: (value: string) => void;
3145
- onFocus?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
3146
- onKeyUp?: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
3147
- onKeyDown?: KeyboardEventHandler<HTMLInputElement | HTMLTextAreaElement>;
3148
- placeholder?: string;
3149
- random?: string;
3150
- readOnly?: boolean;
3151
- required?: boolean;
3152
- resizable?: boolean;
3153
- rows?: number;
3154
- size?: TextInputSizes;
3155
- tabIndex?: number;
3156
- type?: string;
3157
- unit?: string;
3158
- valid?: boolean;
3159
- value?: string | number;
3160
- wrap?: string;
3161
- inputProps?: InputProps;
3162
- max?: InputHTMLAttributes<HTMLInputElement>['max'];
3163
- min?: InputHTMLAttributes<HTMLInputElement>['min'];
3164
- } & (Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> | Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>);
3165
- /**
3166
- * TextInput component allows users to input text, with options for customization and validation.
3167
- * It supports various input types and should be appropriately sized with clear labeling.
3168
- */
3169
- declare const TextInput: react.ForwardRefExoticComponent<TextInputProps & react.RefAttributes<HTMLInputElement | HTMLTextAreaElement | null>>;
3170
-
3171
- /**
3172
- * This component offers an extended input HTML
3173
- */
3174
- declare const TextInputV2: react.ForwardRefExoticComponent<{
3175
- className?: string | undefined;
3176
- clearable?: boolean | undefined;
3177
- 'data-testid'?: string | undefined;
3178
- error?: string | undefined;
3179
- helper?: ReactNode;
3180
- label?: string | undefined;
3181
- labelDescription?: ReactNode;
3182
- loading?: boolean | undefined;
3183
- minLength?: number | undefined;
3184
- maxLength?: number | undefined;
3185
- onRandomize?: (() => void) | undefined;
3186
- onChange?: ((newValue: string) => void) | undefined;
3187
- prefix?: ReactNode;
3188
- size?: "large" | "small" | "medium" | undefined;
3189
- success?: string | boolean | undefined;
3190
- suffix?: ReactNode;
3191
- tooltip?: string | undefined;
3192
- type?: "text" | "email" | "password" | "url" | undefined;
3193
- value?: string | undefined;
3194
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "autoFocus" | "id" | "tabIndex" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onKeyDown" | "name" | "disabled" | "autoComplete" | "placeholder" | "readOnly" | "required"> & react.RefAttributes<HTMLInputElement>>;
3195
-
3196
- declare const schedules: {
3197
- half: readonly ["00:00", "00:30", "01:00", "01:30", "02:00", "02:30", "03:00", "03:30", "04:00", "04:30", "05:00", "05:30", "06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30", "18:00", "18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30", "22:00", "22:30", "23:00", "23:30"];
3198
- hours: readonly ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00", "06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00", "21:00", "22:00", "23:00"];
3199
- quarter: readonly ["00:00", "00:15", "00:30", "00:45", "01:00", "01:15", "01:30", "01:45", "02:00", "02:15", "02:30", "02:45", "03:00", "03:15", "03:30", "03:45", "04:00", "04:15", "04:30", "04:45", "05:00", "05:15", "05:30", "05:45", "06:00", "06:15", "06:30", "06:45", "07:00", "07:15", "07:30", "07:45", "08:00", "08:15", "08:30", "08:45", "09:00", "09:15", "09:30", "09:45", "10:00", "10:15", "10:30", "10:45", "11:00", "11:15", "11:30", "11:45", "12:00", "12:15", "12:30", "12:45", "13:00", "13:15", "13:30", "13:45", "14:00", "14:15", "14:30", "14:45", "15:00", "15:15", "15:30", "15:45", "16:00", "16:15", "16:30", "16:45", "17:00", "17:15", "17:30", "17:45", "18:00", "18:15", "18:30", "18:45", "19:00", "19:15", "19:30", "19:45", "20:00", "20:15", "20:30", "20:45", "21:00", "21:15", "21:30", "21:45", "22:00", "22:15", "22:30", "22:45", "23:00", "23:15", "23:30", "23:45"];
3200
- };
3201
- type ScheduleType = keyof typeof schedules;
3202
- declare const options: (schedule: ScheduleType) => {
3203
- label: "00:00" | "01:00" | "02:00" | "03:00" | "04:00" | "05:00" | "06:00" | "07:00" | "08:00" | "09:00" | "10:00" | "11:00" | "12:00" | "13:00" | "14:00" | "15:00" | "16:00" | "17:00" | "18:00" | "19:00" | "20:00" | "21:00" | "22:00" | "23:00" | "00:30" | "01:30" | "02:30" | "03:30" | "04:30" | "05:30" | "06:30" | "07:30" | "08:30" | "09:30" | "10:30" | "11:30" | "12:30" | "13:30" | "14:30" | "15:30" | "16:30" | "17:30" | "18:30" | "19:30" | "20:30" | "21:30" | "22:30" | "23:30" | "00:15" | "00:45" | "01:15" | "01:45" | "02:15" | "02:45" | "03:15" | "03:45" | "04:15" | "04:45" | "05:15" | "05:45" | "06:15" | "06:45" | "07:15" | "07:45" | "08:15" | "08:45" | "09:15" | "09:45" | "10:15" | "10:45" | "11:15" | "11:45" | "12:15" | "12:45" | "13:15" | "13:45" | "14:15" | "14:45" | "15:15" | "15:45" | "16:15" | "16:45" | "17:15" | "17:45" | "18:15" | "18:45" | "19:15" | "19:45" | "20:15" | "20:45" | "21:15" | "21:45" | "22:15" | "22:45" | "23:15" | "23:45";
3204
- value: "00:00" | "01:00" | "02:00" | "03:00" | "04:00" | "05:00" | "06:00" | "07:00" | "08:00" | "09:00" | "10:00" | "11:00" | "12:00" | "13:00" | "14:00" | "15:00" | "16:00" | "17:00" | "18:00" | "19:00" | "20:00" | "21:00" | "22:00" | "23:00" | "00:30" | "01:30" | "02:30" | "03:30" | "04:30" | "05:30" | "06:30" | "07:30" | "08:30" | "09:30" | "10:30" | "11:30" | "12:30" | "13:30" | "14:30" | "15:30" | "16:30" | "17:30" | "18:30" | "19:30" | "20:30" | "21:30" | "22:30" | "23:30" | "00:15" | "00:45" | "01:15" | "01:45" | "02:15" | "02:45" | "03:15" | "03:45" | "04:15" | "04:45" | "05:15" | "05:45" | "06:15" | "06:45" | "07:15" | "07:45" | "08:15" | "08:45" | "09:15" | "09:45" | "10:15" | "10:45" | "11:15" | "11:45" | "12:15" | "12:45" | "13:15" | "13:45" | "14:15" | "14:45" | "15:15" | "15:45" | "16:15" | "16:45" | "17:15" | "17:45" | "18:15" | "18:45" | "19:15" | "19:45" | "20:15" | "20:45" | "21:15" | "21:45" | "22:15" | "22:45" | "23:15" | "23:45";
3205
- }[];
3206
- type TimeInputProps = Partial<ComponentProps<typeof SelectInput>> & {
3207
- schedule?: ScheduleType;
3208
- };
3209
- type TimeInputType = ((props: TimeInputProps) => JSX.Element) & {
3210
- options: typeof options;
3211
- };
3212
- /**
3213
- * A time input component that allows users to select a time from a dropdown. The component is built on top of the
3214
- * `SelectInput` component.
3215
- * @experimental This component is experimental and may be subject to breaking changes in the future.
3216
- */
3217
- declare const TimeInput: TimeInputType;
3218
-
3219
- declare const toast: {
3220
- error: (children: ReactNode, options?: ToastOptions, containerId?: string) => number | string;
3221
- /**
3222
- * @deprecated "Deprecated, please use another variant instead"
3223
- */
3224
- info: (children: ReactNode, options?: ToastOptions, containerId?: string) => number | string;
3225
- success: (children: ReactNode, options?: ToastOptions, containerId?: string) => number | string;
3226
- warning: (children: ReactNode, options?: ToastOptions, containerId?: string) => number | string;
3227
- };
3228
- type ToastContainerProps = {
3229
- /**
3230
- * Whether to display the newest toast on top.
3231
- * `Default: false`
3232
- */
3233
- newestOnTop?: boolean;
3234
- /**
3235
- * Limit the number of toast displayed at the same time
3236
- */
3237
- limit?: number;
3238
- /**
3239
- * Position of the toast container
3240
- */
3241
- position?: ToastOptions['position'];
3242
- 'data-testid'?: string;
3243
- className?: string;
3244
- /**
3245
- * Delay before the toast is automatically closed, if not set the default value is 6000ms
3246
- */
3247
- autoClose?: number;
3248
- /**
3249
- * Set a custom containerId to be able to define multiple ToastContainers
3250
- */
3251
- containerId?: string;
3252
- };
3253
- /**
3254
- * Display short information about an event that happen in the interface in a floating alert.
3255
- * Toaster is based on **react-tostify**, you can find a complete documentation
3256
- * [here](https://fkhadra.github.io/react-toastify/introduction/).
3257
- *
3258
- * Toaster is separated in two parts, first the `ToastContainer` which is where the div of the toast will be rendered,
3259
- * and second the `toast()` function which is used to display the toast.
3260
- */
3261
- declare const ToastContainer: ({ newestOnTop, limit, position, "data-testid": dataTestId, className, autoClose, containerId, }: ToastContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
3262
-
3263
- /**
3264
- * Toggle component is used to toggle between two states (on/off, true/false, etc.).
3265
- */
3266
- declare const Toggle: react.ForwardRefExoticComponent<{
3267
- id?: string | undefined;
3268
- checked?: boolean | undefined;
3269
- name: string;
3270
- tooltip?: string | undefined;
3271
- /**
3272
- * If `onChange` is given component will work as a controlled component if not it will work as an uncontrolled component.
3273
- */
3274
- onChange?: ChangeEventHandler<HTMLInputElement> | undefined;
3275
- size?: "large" | "small" | undefined;
3276
- labelPosition?: "left" | "right" | undefined;
3277
- label?: ReactNode;
3278
- helper?: ReactNode;
3279
- disabled?: boolean | undefined;
3280
- className?: string | undefined;
3281
- required?: boolean | undefined;
3282
- 'data-testid'?: string | undefined;
3283
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "value"> & react.RefAttributes<HTMLInputElement>>;
3284
-
3285
- type ToggleGroupToggleProps = Omit<ComponentProps<typeof Toggle>, 'onChange' | 'checked' | 'required'> & {
3286
- value: string;
3287
- };
3288
- type ToggleGroupProps = {
3289
- legend: string;
3290
- value?: string[];
3291
- className?: string;
3292
- helper?: ReactNode;
3293
- error?: ReactNode;
3294
- direction?: 'row' | 'column';
3295
- children: ReactNode;
3296
- required?: boolean;
3297
- } & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'required'>;
3298
- declare const ToggleGroup: {
3299
- ({ legend, value, className, helper, error, direction, children, onChange, name, required, }: ToggleGroupProps): _emotion_react_jsx_runtime.JSX.Element;
3300
- Toggle: ({ disabled, name, value, label, helper, className, "data-testid": dataTestId, }: ToggleGroupToggleProps) => _emotion_react_jsx_runtime.JSX.Element;
3301
- };
3302
-
3303
- type TooltipProps = Pick<ComponentProps<typeof Popup>, 'id' | 'children' | 'maxWidth' | 'placement' | 'text' | 'className' | 'visible' | 'innerRef' | 'role' | 'data-testid' | 'containerFullWidth' | 'portalTarget' | 'tabIndex' | 'debounceDelay'>;
3304
- /**
3305
- * Tooltip component is used to display additional information on hover or focus.
3306
- * It is used to explain the purpose of the element it is attached to.
3307
- */
3308
- declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
3309
-
3310
- type VerificationCodeProps = {
3311
- disabled?: boolean;
3312
- error?: boolean;
3313
- className?: string;
3314
- /**
3315
- * Amount of field you want
3316
- */
3317
- fields?: number;
3318
- initialValue?: string;
3319
- inputId?: string;
3320
- inputStyle?: string;
3321
- size?: 'small' | 'medium' | 'large' | 'xlarge';
3322
- /**
3323
- * Triggered when a field change
3324
- */
3325
- onChange?: (data: unknown) => void;
3326
- /**
3327
- * Triggered when all fields are completed
3328
- */
3329
- onComplete?: (data: unknown) => void;
3330
- placeholder?: string;
3331
- required?: boolean;
3332
- /**
3333
- * Type of the fields
3334
- */
3335
- type?: 'text' | 'number';
3336
- 'data-testid'?: string;
3337
- 'aria-label'?: string;
3338
- };
3339
- /**
3340
- * Verification code allows you to enter a code in multiple fields (4 by default).
3341
- */
3342
- declare const VerificationCode: ({ disabled, className, error, fields, initialValue, inputId, inputStyle, size, onChange, onComplete, placeholder, required, type, "data-testid": dataTestId, "aria-label": ariaLabel, }: VerificationCodeProps) => _emotion_react_jsx_runtime.JSX.Element;
3343
-
3344
- type RadioGroupRadioProps = Omit<ComponentProps<typeof Radio>, 'onChange' | 'checked' | 'required'> & {
3345
- /**
3346
- * @deprecated you don't need to use `name` anymore, the name will be passed from the parent `RadioGroup`.
3347
- */
3348
- name?: string;
3349
- };
3350
- type RadioGroupProps = {
3351
- legend: string;
3352
- value: string | number;
3353
- className?: string;
3354
- helper?: ReactNode;
3355
- error?: ReactNode;
3356
- direction?: 'row' | 'column';
3357
- children: ReactNode;
3358
- } & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name'>> & Pick<InputHTMLAttributes<HTMLInputElement>, 'required'>;
3359
- /**
3360
- * RadioGroup is a component that allows users to select one option from a list of options using radio.
3361
- */
3362
- declare const RadioGroup: {
3363
- ({ legend, value, className, helper, error, direction, children, onChange, name, required, }: RadioGroupProps): _emotion_react_jsx_runtime.JSX.Element;
3364
- Radio: ({ onFocus, onBlur, disabled, error, name, value, label, helper, className, autoFocus, onKeyDown, "data-testid": dataTestId, }: RadioGroupRadioProps) => _emotion_react_jsx_runtime.JSX.Element;
3365
- };
3366
-
3367
- declare const SIZES: {
3368
- small: string;
3369
- medium: string;
3370
- large: string;
3371
- };
3372
- type DisclosureProps = {
3373
- visible: boolean;
3374
- };
3375
- type DisclosureElement = ((disclosure: DisclosureProps) => ReactElement<ButtonHTMLAttributes<HTMLButtonElement>>) | (ReactElement<ButtonHTMLAttributes<HTMLButtonElement>> & {
3376
- ref?: Ref<HTMLButtonElement>;
3377
- });
3378
- type ChildMenuProps = {
3379
- toggle: () => void;
3380
- };
3381
- type MenuProps = {
3382
- id?: string;
3383
- ariaLabel?: string;
3384
- placement?: ComponentProps<typeof Popup>['placement'];
3385
- children?: ReactNode | (({ toggle }: ChildMenuProps) => ReactNode);
3386
- className?: string;
3387
- disclosure: DisclosureElement;
3388
- hasArrow?: boolean;
3389
- visible?: boolean;
3390
- 'data-testid'?: string;
3391
- maxHeight?: string;
3392
- /**
3393
- * @deprecated: use `size` instead
3394
- */
3395
- maxWidth?: string;
3396
- /**
3397
- * By default, the portal target is children container or document.body if children is a function. You can override this
3398
- * behavior by setting a portalTarget prop.
3399
- */
3400
- portalTarget?: HTMLElement;
3401
- size?: keyof typeof SIZES;
3402
- /**
3403
- * The behavior of the menu when it is opened. If set to `click`, the menu will open when the user clicks on the disclosure.
3404
- * If set to `hover`, the menu will open when the user hovers over the disclosure.
3405
- */
3406
- triggerMethod?: 'click' | 'hover';
3407
- };
3408
- /**
3409
- * A menu is a widget that offers a list of choices to the user, such as a set of actions or functions.
3410
- * A menu is usually opened, or made visible, by activating a menu button, choosing an item in a menu that opens a
3411
- * sub menu, or by invoking a command, such as `Shift + F10` on Windows, that opens a context specific menu.
3412
- * When a user activates a choice in a menu, the menu usually closes unless the choice opened a submenu.
3413
- */
3414
- declare const MenuV2: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<HTMLButtonElement>> & {
3415
- Item: react.ForwardRefExoticComponent<{
3416
- href?: string | undefined;
3417
- disabled?: boolean | undefined;
3418
- tooltip?: string | undefined;
3419
- className?: string | undefined;
3420
- children: ReactNode;
3421
- onClick?: react.MouseEventHandler<HTMLElement> | undefined;
3422
- borderless?: boolean | undefined;
3423
- sentiment?: ("primary" | "neutral" | "danger") | undefined;
3424
- active?: boolean | undefined;
3425
- 'data-testid'?: string | undefined;
3426
- } & react.RefAttributes<HTMLElement>>;
3427
- Group: ({ label, children }: {
3428
- label: string;
3429
- children: ReactNode;
3430
- }) => _emotion_react_jsx_runtime.JSX.Element;
3431
- };
3432
-
3433
- type GlobalAlertProps = {
3434
- children: ReactNode;
3435
- variant?: 'info' | 'danger' | 'promotional';
3436
- onClose?: () => void;
3437
- closable?: boolean;
3438
- className?: string;
3439
- 'data-testid'?: string;
3440
- buttonText?: string;
3441
- onClickButton?: () => void;
3442
- };
3443
- /**
3444
- * GlobalAlert is a component that is used to display a global alert message.
3445
- * It has its own internal state and can be closed by clicking on the close button.
3446
- */
3447
- declare const GlobalAlert: {
3448
- ({ children, variant, onClose, closable, buttonText, onClickButton, className, "data-testid": dataTestId, }: GlobalAlertProps): _emotion_react_jsx_runtime.JSX.Element | null;
3449
- Link: ({ children, href, target, download, rel, className, onClick, "aria-label": ariaLabel, oneLine, "data-testid": dataTestId, }: Omit<{
3450
- children: ReactNode;
3451
- target?: react.HTMLAttributeAnchorTarget | undefined;
3452
- download?: string | boolean | undefined;
3453
- sentiment?: Color | undefined;
3454
- prominence?: "strong" | "default" | "stronger" | "weak" | undefined;
3455
- size?: ("large" | "small") | undefined;
3456
- iconPosition?: ("left" | "right") | undefined;
3457
- rel?: string | undefined;
3458
- className?: string | undefined;
3459
- href: string;
3460
- onClick?: react.MouseEventHandler<HTMLAnchorElement> | undefined;
3461
- 'aria-label'?: string | undefined;
3462
- /**
3463
- * GlobalAlert is a component that is used to display a global alert message.
3464
- * It has its own internal state and can be closed by clicking on the close button.
3465
- */
3466
- oneLine?: boolean | undefined;
3467
- 'data-testid'?: string | undefined;
3468
- variant?: "inline" | "standalone" | undefined;
3469
- } & react.RefAttributes<HTMLAnchorElement>, "size" | "sentiment" | "prominence">) => _emotion_react_jsx_runtime.JSX.Element;
3470
- };
3471
-
3472
- type CloseButtonProps = {
3473
- closeToast: (event: React.MouseEvent<HTMLElement>) => void;
3474
- type: TypeOptions;
3475
- ariaLabel?: string;
3476
- theme: Theme$1;
3477
- };
3478
- declare const notification: (children: ((props: CloseButtonProps) => ReactNode) | ReactNode, title: string, icon?: ReactNode, isClosable?: boolean, containerId?: string, options?: ToastOptions) => react_toastify.Id;
3479
- type NotificationContainerProps = {
3480
- /**
3481
- * Delay (in ms) before the notification autocloses. To disable autoclose, set to false
3482
- */
3483
- autoClose?: false | number;
3484
- /**
3485
- * Whether to display the newest toast on top.
3486
- * `Default: false`
3487
- */
3488
- newestOnTop?: boolean;
3489
- /**
3490
- * Limit the number of toast displayed at the same time
3491
- */
3492
- limit?: number;
3493
- /**
3494
- * Position on the notification container
3495
- */
3496
- position?: ToastOptions['position'];
3497
- 'data-testid'?: string;
3498
- className?: string;
3499
- /**
3500
- * Give a personalized containerId in case there are multiple notifications with different styled to display
3501
- */
3502
- containerId?: string;
3503
- };
3504
- declare const NotificationContainer: ({ newestOnTop, limit, autoClose, position, "data-testid": dataTestId, className, containerId, }: NotificationContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
3505
-
3506
- type CardSelectableCardProps = Omit<ComponentProps<typeof SelectableCard>, 'onChange' | 'checked' | 'type' | 'showTick'>;
3507
- type SelectableCardGroupProps = {
3508
- legend?: string;
3509
- value: string | number | (string | number)[];
3510
- className?: string;
3511
- helper?: ReactNode;
3512
- error?: ReactNode;
3513
- columns?: number;
3514
- children: ReactNode;
3515
- type: 'radio' | 'checkbox';
3516
- required?: boolean;
3517
- showTick?: boolean;
3518
- } & Required<Pick<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'name'>>;
3519
- /**
3520
- * SelectableCardGroup is a component that allows users to select cards from a list of cards using SelectableCard.
3521
- */
3522
- declare const SelectableCardGroup: {
3523
- ({ legend, value, className, helper, error, columns, children, onChange, name, required, type, showTick, }: SelectableCardGroupProps): _emotion_react_jsx_runtime.JSX.Element;
3524
- Card: ({ value, disabled, children, className, isError, onFocus, onBlur, tooltip, id, label, "data-testid": dataTestId, }: CardSelectableCardProps) => _emotion_react_jsx_runtime.JSX.Element;
3525
- };
3526
-
3527
- type OptionType = {
3528
- value: string;
3529
- label: ReactNode;
3530
- disabled: boolean;
3531
- description?: string;
3532
- optionalInfo?: ReactNode;
3533
- searchText?: string;
3534
- };
3535
- type DataType = Record<string, OptionType[]> | OptionType[];
3536
-
3537
- type SelectInputV2Props<IsMulti extends undefined | boolean = false> = {
3538
- /**
3539
- * Input name
3540
- */
3541
- name: string;
3542
- /**
3543
- * Place holder when no value defined
3544
- */
3545
- placeholder?: string;
3546
- /**
3547
- * When searchable, placeholder when no value is searched
3548
- */
3549
- placeholderSearch?: string;
3550
- /**
3551
- * Label of the component
3552
- */
3553
- label?: string;
3554
- /**
3555
- * Helper text to give more information to the user
3556
- */
3557
- helper?: string;
3558
- /**
3559
- * Selectable options
3560
- */
3561
- options: DataType;
3562
- /**
3563
- * Message to show when no option available
3564
- */
3565
- emptyState?: ReactNode;
3566
- /**
3567
- * Whether it is possible to search through the input
3568
- */
3569
- searchable?: boolean;
3570
- /**
3571
- * Whether the component in disabled
3572
- */
3573
- disabled?: boolean;
3574
- /**
3575
- * Whether the component in readOnly
3576
- */
3577
- readOnly?: boolean;
3578
- /**
3579
- * Whether it is possible to clear the search input
3580
- */
3581
- clearable?: boolean;
3582
- /**
3583
- * Size of the input
3584
- */
3585
- size?: 'small' | 'medium' | 'large';
3586
- /**
3587
- * Whether field is required
3588
- */
3589
- required?: boolean;
3590
- /**
3591
- * More information regarding/description ofs the selectInput
3592
- */
3593
- labelDescription?: ReactNode;
3594
- /**
3595
- * Whether option description is on the right of the option or under it
3596
- */
3597
- descriptionDirection?: 'row' | 'column';
3598
- /**
3599
- * Where to place the additional info prop
3600
- */
3601
- optionalInfoPlacement?: 'left' | 'right';
3602
- /**
3603
- * To add custom fixed elements at the bottom of the dropdown
3604
- */
3605
- footer?: ReactNode;
3606
- /**
3607
- * Display an error message under the select bar
3608
- */
3609
- error?: string;
3610
- /**
3611
- * Display a success message under the select bar
3612
- */
3613
- success?: string;
3614
- /**
3615
- * Load more button to implement lazy loading
3616
- */
3617
- loadMore?: ReactNode;
3618
- /**
3619
- * When the options are loading, display a skeleton
3620
- */
3621
- isLoading?: boolean;
3622
- /**
3623
- * Adds an option to select every selectable options
3624
- */
3625
- selectAll?: {
3626
- label: ReactNode;
3627
- description?: string;
3628
- };
3629
- /**
3630
- * When options are group, define a option to select every selectable options of a group
3631
- */
3632
- selectAllGroup?: boolean;
3633
- autofocus?: boolean;
3634
- /**
3635
- * Whether it is possible to select multiple options
3636
- */
3637
- multiselect?: IsMulti;
3638
- /**
3639
- * Default value, must be one of the options
3640
- */
3641
- value?: IsMulti extends true ? string[] : string;
3642
- onChange?: IsMulti extends true ? (value: string[]) => void : (value: string) => void;
3643
- 'data-testid'?: string;
3644
- } & Pick<HTMLAttributes<HTMLDivElement>, 'id' | 'onBlur' | 'onFocus' | 'aria-label' | 'className'>;
3645
- /**
3646
- * SelectInputV2 component is used to select one or many elements from a selection.
3647
- */
3648
- declare const SelectInputV2: <IsMulti extends boolean | undefined>({ name, id, onBlur, onFocus, onChange, "aria-label": ariaLabel, value, label, helper, options, size, emptyState, descriptionDirection, success, error, "data-testid": dataTestId, className, footer, placeholderSearch, placeholder, searchable, disabled, readOnly, clearable, multiselect, required, labelDescription, autofocus, loadMore, optionalInfoPlacement, isLoading, selectAll, selectAllGroup, }: SelectInputV2Props<IsMulti>) => _emotion_react_jsx_runtime.JSX.Element;
3649
-
3650
- declare const getUUID: (prefix?: string) => string;
3651
-
3652
- declare const bounce: _emotion_react.Keyframes;
3653
- declare const ping: _emotion_react.Keyframes;
3654
- declare const flash: _emotion_react.Keyframes;
3655
- declare const zoomIn: _emotion_react.Keyframes;
3656
- declare const zoomOut: _emotion_react.Keyframes;
3657
- declare const unfoldIn: _emotion_react.Keyframes;
3658
- declare const unfoldOut: _emotion_react.Keyframes;
3659
- declare const fadeIn: _emotion_react.Keyframes;
3660
- declare const fadeOut: _emotion_react.Keyframes;
3661
- declare const scaleUp: _emotion_react.Keyframes;
3662
- declare const scaleDown: _emotion_react.Keyframes;
3663
- declare const quickScaleDown: _emotion_react.Keyframes;
3664
- declare const scaleBack: _emotion_react.Keyframes;
3665
- declare const scaleForward: _emotion_react.Keyframes;
3666
- declare const sketchIn: _emotion_react.Keyframes;
3667
- declare const sketchOut: _emotion_react.Keyframes;
3668
- declare const slideDownLarge: _emotion_react.Keyframes;
3669
- declare const slideUpLarge: _emotion_react.Keyframes;
3670
- declare const slideFromBottom: _emotion_react.Keyframes;
3671
- declare const slideFromTop: _emotion_react.Keyframes;
3672
- declare const slideFromRight: _emotion_react.Keyframes;
3673
- declare const slideFromLeft: _emotion_react.Keyframes;
3674
- declare const slideToBottom: _emotion_react.Keyframes;
3675
- declare const slideToTop: _emotion_react.Keyframes;
3676
- declare const slideToRight: _emotion_react.Keyframes;
3677
- declare const slideToLeft: _emotion_react.Keyframes;
3678
- declare const pulse: _emotion_react.Keyframes;
3679
-
3680
- declare const Breakpoint: _emotion_styled.StyledComponent<{
3681
- theme?: _emotion_react.Theme | undefined;
3682
- as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
3683
- } & {
3684
- down?: "large" | "small" | "xlarge" | "xsmall" | "medium" | undefined;
3685
- up?: "large" | "small" | "xlarge" | "xsmall" | "medium" | undefined;
3686
- }, react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3687
-
3688
- declare const up: (size: ScreenSize, rules: string) => string;
3689
- declare const down: (size: ScreenSize, rules: string) => string;
3690
-
3691
- declare const normalize: () => string;
3692
-
3693
- export { ActionBar, Alert, Avatar, Badge, Banner, BarChart, BarStack, Breadcrumbs, Breakpoint, Bullet, Button, Card, Carousel, Checkbox, CheckboxGroup, CheckboxGroupCheckbox, CopyButton, DateInput, Dialog, EmptyState, Expandable, GlobalAlert, LineChart, Link, List, Loader, Menu, MenuV2, Meter, Modal, Notice, NotificationContainer, NumberInput, NumberInputV2, Pagination, PasswordCheck, PasswordStrengthMeter, PieChart, Popover, Popup, ProgressBar, Radio, RadioGroup, Row, type SCWUITheme, SelectInput, SelectInputV2, SelectableCard, SelectableCardGroup, Separator, Skeleton, Snippet, Stack, Status, StepList, Stepper, SwitchButton, Table, Tabs, Tag, TagInput, TagList, Text, TextArea, TextInput, TextInputV2, TimeInput, ToastContainer, Toggle, ToggleGroup, Tooltip, type UltravioletUITheme, VerificationCode, bounce, down, extendTheme, fadeIn, fadeOut, flash, getUUID, normalize, notification, ping, pulse, quickScaleDown, scaleBack, scaleDown, scaleForward, scaleUp, sketchIn, sketchOut, slideDownLarge, slideFromBottom, slideFromLeft, slideFromRight, slideFromTop, slideToBottom, slideToLeft, slideToRight, slideToTop, slideUpLarge, toast, unfoldIn, unfoldOut, up, zoomIn, zoomOut };
1
+ export * from './components';
2
+ export { darkTheme, default as theme, extendTheme } from './theme';
3
+ export type { SCWUITheme, UltravioletUITheme } from './theme';
4
+ export { bounce, Breakpoint, down, fadeIn, fadeOut, flash, getUUID, normalize, ping, pulse, quickScaleDown, scaleBack, scaleDown, scaleForward, scaleUp, sketchIn, sketchOut, slideDownLarge, slideFromBottom, slideFromLeft, slideFromRight, slideFromTop, slideToBottom, slideToLeft, slideToRight, slideToTop, slideUpLarge, unfoldIn, unfoldOut, up, zoomIn, zoomOut, } from './utils';