@luscii-healthtech/web-ui 0.0.0-alpha.00bf0f6

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 (455) hide show
  1. package/README.md +181 -0
  2. package/dist/.storybook/constants.d.ts +18 -0
  3. package/dist/.storybook/decorators.d.ts +31 -0
  4. package/dist/index.development.js +6041 -0
  5. package/dist/index.development.js.map +1 -0
  6. package/dist/index.js +2 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/src/components/Accordion/Accordion.d.ts +15 -0
  9. package/dist/src/components/Accordion/AccordionItem.d.ts +17 -0
  10. package/dist/src/components/AccordionList/AccordionList.d.ts +51 -0
  11. package/dist/src/components/AccordionList/subcomponents/AccordionListActions.d.ts +18 -0
  12. package/dist/src/components/Alerts/AlertWidget.d.ts +20 -0
  13. package/dist/src/components/AsideLayout/AsideLayout.d.ts +7 -0
  14. package/dist/src/components/Avatar/Avatar.d.ts +53 -0
  15. package/dist/src/components/Avatar/AvatarGroup.d.ts +31 -0
  16. package/dist/src/components/Badge/Badge.d.ts +11 -0
  17. package/dist/src/components/BaseList/BaseList.d.ts +7 -0
  18. package/dist/src/components/BaseList/BaseList.types.d.ts +84 -0
  19. package/dist/src/components/BaseList/BaseListEmptyState.d.ts +7 -0
  20. package/dist/src/components/BaseList/BaseListHeader.d.ts +4 -0
  21. package/dist/src/components/BaseList/BaseListIcon.d.ts +5 -0
  22. package/dist/src/components/BaseList/BaseListItem.d.ts +4 -0
  23. package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -0
  24. package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -0
  25. package/dist/src/components/BaseList/DraggableBaseList/index.d.ts +2 -0
  26. package/dist/src/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
  27. package/dist/src/components/BaseList/ListSkeleton/ListSkeleton.d.ts +7 -0
  28. package/dist/src/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -0
  29. package/dist/src/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -0
  30. package/dist/src/components/BaseList/SortableBaseList/index.d.ts +2 -0
  31. package/dist/src/components/BaseList/index.d.ts +6 -0
  32. package/dist/src/components/BaseList/utils.d.ts +10 -0
  33. package/dist/src/components/Box/Box.d.ts +39 -0
  34. package/dist/src/components/Breadcrumbs/BreadcrumbItem.d.ts +4 -0
  35. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
  36. package/dist/src/components/Breadcrumbs/Breadcrumbs.types.d.ts +25 -0
  37. package/dist/src/components/Breadcrumbs/index.d.ts +2 -0
  38. package/dist/src/components/ButtonV2/ButtonProps.type.d.ts +104 -0
  39. package/dist/src/components/ButtonV2/ButtonV2.d.ts +3 -0
  40. package/dist/src/components/ButtonV2/PrimaryButton.d.ts +3 -0
  41. package/dist/src/components/ButtonV2/PrimaryIconButton.d.ts +3 -0
  42. package/dist/src/components/ButtonV2/SecondaryButton.d.ts +3 -0
  43. package/dist/src/components/ButtonV2/SecondaryIconButton.d.ts +3 -0
  44. package/dist/src/components/ButtonV2/TertiaryButton.d.ts +3 -0
  45. package/dist/src/components/ButtonV2/TertiaryIconButton.d.ts +15 -0
  46. package/dist/src/components/Card/Actions.d.ts +2 -0
  47. package/dist/src/components/Card/Card.d.ts +67 -0
  48. package/dist/src/components/Card/Padding.d.ts +6 -0
  49. package/dist/src/components/Card/Section.d.ts +6 -0
  50. package/dist/src/components/Card/TopBar.d.ts +10 -0
  51. package/dist/src/components/Carousel/Carousel.d.ts +30 -0
  52. package/dist/src/components/CenteredHero/CenteredHero.d.ts +16 -0
  53. package/dist/src/components/ChatBubble/ChatBubble.d.ts +54 -0
  54. package/dist/src/components/CheckBoxListModal/CheckboxListModal.d.ts +35 -0
  55. package/dist/src/components/Checkbox/Checkbox.d.ts +68 -0
  56. package/dist/src/components/CheckboxList/CheckboxGroup.d.ts +7 -0
  57. package/dist/src/components/CheckboxList/CheckboxList.d.ts +10 -0
  58. package/dist/src/components/CheckboxList/CheckboxList.types.d.ts +74 -0
  59. package/dist/src/components/Chip/Chip.d.ts +9 -0
  60. package/dist/src/components/Collapse/Collapse.d.ts +25 -0
  61. package/dist/src/components/ConfirmationDialog/ConfirmationDialog.d.ts +3 -0
  62. package/dist/src/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +7 -0
  63. package/dist/src/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -0
  64. package/dist/src/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -0
  65. package/dist/src/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +52 -0
  66. package/dist/src/components/Container/FlexColumn.d.ts +7 -0
  67. package/dist/src/components/Container/FlexContainer.d.ts +9 -0
  68. package/dist/src/components/Container/FlexRow.d.ts +7 -0
  69. package/dist/src/components/Container/types/FlexContainerProps.type.d.ts +26 -0
  70. package/dist/src/components/DatePicker/DatePicker.d.ts +72 -0
  71. package/dist/src/components/DatePicker/LabeledDatePicker.d.ts +9 -0
  72. package/dist/src/components/DetailsDisclosure/DetailsDisclosure.d.ts +81 -0
  73. package/dist/src/components/Divider/Divider.d.ts +36 -0
  74. package/dist/src/components/DragHandle/DragHandle.d.ts +6 -0
  75. package/dist/src/components/DragHandle/DragHandle.types.d.ts +5 -0
  76. package/dist/src/components/DragHandle/index.d.ts +2 -0
  77. package/dist/src/components/Dropdown/Dropdown.d.ts +61 -0
  78. package/dist/src/components/Dropzone/Dropzone.d.ts +6 -0
  79. package/dist/src/components/Dropzone/Dropzone.types.d.ts +33 -0
  80. package/dist/src/components/Dropzone/index.d.ts +2 -0
  81. package/dist/src/components/EmptyListMessage/EmptyListMessage.d.ts +13 -0
  82. package/dist/src/components/FilePreviewModal/FilePreview.d.ts +25 -0
  83. package/dist/src/components/FileUpload/FileUpload.d.ts +32 -0
  84. package/dist/src/components/FilterBar/ActiveFilters.d.ts +9 -0
  85. package/dist/src/components/FilterBar/FilterBar.d.ts +111 -0
  86. package/dist/src/components/FilterBar/FilterBar.utils.d.ts +32 -0
  87. package/dist/src/components/FilterBar/FilterBarProps.type.d.ts +135 -0
  88. package/dist/src/components/FilterBar/FilterMenu.d.ts +10 -0
  89. package/dist/src/components/FilterBar/FiltersMenus.d.ts +11 -0
  90. package/dist/src/components/FilterBar/PresetFiltersMenu.d.ts +9 -0
  91. package/dist/src/components/FilterBar/SortMenu.d.ts +9 -0
  92. package/dist/src/components/FilterBar/index.d.ts +2 -0
  93. package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +59 -0
  94. package/dist/src/components/HoverCard/HoverCard.d.ts +40 -0
  95. package/dist/src/components/HoverCard/index.d.ts +1 -0
  96. package/dist/src/components/HoverIndicatorControl/HoverIndicatorControl.d.ts +24 -0
  97. package/dist/src/components/Icon/Icon.d.ts +17 -0
  98. package/dist/src/components/Icon/index.d.ts +1 -0
  99. package/dist/src/components/Icons/AbsentIcon.d.ts +3 -0
  100. package/dist/src/components/Icons/AddNoteIcon.d.ts +3 -0
  101. package/dist/src/components/Icons/AlarmClockIcon.d.ts +3 -0
  102. package/dist/src/components/Icons/AmberAlertIcon.d.ts +3 -0
  103. package/dist/src/components/Icons/ArrowForward.d.ts +3 -0
  104. package/dist/src/components/Icons/AssignIcon.d.ts +3 -0
  105. package/dist/src/components/Icons/AssignedIcon.d.ts +3 -0
  106. package/dist/src/components/Icons/BellIcon.d.ts +3 -0
  107. package/dist/src/components/Icons/BellIconSlashed.d.ts +3 -0
  108. package/dist/src/components/Icons/BluetoothIcon.d.ts +3 -0
  109. package/dist/src/components/Icons/BrushIcon.d.ts +3 -0
  110. package/dist/src/components/Icons/CakeIcon.d.ts +3 -0
  111. package/dist/src/components/Icons/CalendarDayIcon.d.ts +3 -0
  112. package/dist/src/components/Icons/CalendarMonthIcon.d.ts +3 -0
  113. package/dist/src/components/Icons/CalendarRepeatIcon.d.ts +3 -0
  114. package/dist/src/components/Icons/ChartBarsIcon.d.ts +3 -0
  115. package/dist/src/components/Icons/ChartLineAndBarsIcon.d.ts +3 -0
  116. package/dist/src/components/Icons/ChartLineIcon.d.ts +3 -0
  117. package/dist/src/components/Icons/ChatBubbleIcon.d.ts +3 -0
  118. package/dist/src/components/Icons/ChatBubbleWithTextIcon.d.ts +3 -0
  119. package/dist/src/components/Icons/CheckIcon.d.ts +3 -0
  120. package/dist/src/components/Icons/ChevronDoubleIcon.d.ts +3 -0
  121. package/dist/src/components/Icons/ChevronDownIcon.d.ts +3 -0
  122. package/dist/src/components/Icons/ChevronLeftIcon.d.ts +3 -0
  123. package/dist/src/components/Icons/ChevronRightIcon.d.ts +3 -0
  124. package/dist/src/components/Icons/ClockIcon.d.ts +3 -0
  125. package/dist/src/components/Icons/CogwheelIcon.d.ts +3 -0
  126. package/dist/src/components/Icons/CompareIcon.d.ts +3 -0
  127. package/dist/src/components/Icons/CopyToClipboardIcon.d.ts +3 -0
  128. package/dist/src/components/Icons/CrossIcon.d.ts +3 -0
  129. package/dist/src/components/Icons/CrossInCircleIcon.d.ts +3 -0
  130. package/dist/src/components/Icons/CrossInFilledCircleIcon.d.ts +3 -0
  131. package/dist/src/components/Icons/DatabaseIcon.d.ts +3 -0
  132. package/dist/src/components/Icons/DownloadIcon.d.ts +3 -0
  133. package/dist/src/components/Icons/DragIndicatorIcon.d.ts +3 -0
  134. package/dist/src/components/Icons/EarthIcon.d.ts +3 -0
  135. package/dist/src/components/Icons/EmailIcon.d.ts +3 -0
  136. package/dist/src/components/Icons/EmptyIcon.d.ts +3 -0
  137. package/dist/src/components/Icons/ExclamationMarkIcon.d.ts +3 -0
  138. package/dist/src/components/Icons/ExportIcon.d.ts +3 -0
  139. package/dist/src/components/Icons/ExternalLinkIcon.d.ts +3 -0
  140. package/dist/src/components/Icons/EyeClosedIcon.d.ts +3 -0
  141. package/dist/src/components/Icons/EyeOpenIcon.d.ts +3 -0
  142. package/dist/src/components/Icons/FilterIcon.d.ts +3 -0
  143. package/dist/src/components/Icons/FireIcon.d.ts +3 -0
  144. package/dist/src/components/Icons/FirstAidKitIcon.d.ts +3 -0
  145. package/dist/src/components/Icons/FlagIcon.d.ts +3 -0
  146. package/dist/src/components/Icons/FolderIcon.d.ts +3 -0
  147. package/dist/src/components/Icons/ForwardIcon.d.ts +3 -0
  148. package/dist/src/components/Icons/GrayAlertIcon.d.ts +3 -0
  149. package/dist/src/components/Icons/GroupIcon.d.ts +3 -0
  150. package/dist/src/components/Icons/GroupOfThreeIcon.d.ts +3 -0
  151. package/dist/src/components/Icons/HamburgerIcon.d.ts +3 -0
  152. package/dist/src/components/Icons/HandUp.d.ts +3 -0
  153. package/dist/src/components/Icons/HandshakeIcon.d.ts +3 -0
  154. package/dist/src/components/Icons/HeartIcon.d.ts +3 -0
  155. package/dist/src/components/Icons/HeartMinusIcon.d.ts +3 -0
  156. package/dist/src/components/Icons/HomeIcon.d.ts +3 -0
  157. package/dist/src/components/Icons/IdBadgeIcon.d.ts +3 -0
  158. package/dist/src/components/Icons/ImageIcon.d.ts +3 -0
  159. package/dist/src/components/Icons/ImageLibraryIcon.d.ts +3 -0
  160. package/dist/src/components/Icons/InfoIcon.d.ts +3 -0
  161. package/dist/src/components/Icons/LifebuoyIcon.d.ts +3 -0
  162. package/dist/src/components/Icons/LightBulbIcon.d.ts +3 -0
  163. package/dist/src/components/Icons/LinkIcon.d.ts +3 -0
  164. package/dist/src/components/Icons/ListDescIcon.d.ts +3 -0
  165. package/dist/src/components/Icons/ListIcon.d.ts +3 -0
  166. package/dist/src/components/Icons/LockIcon.d.ts +3 -0
  167. package/dist/src/components/Icons/LogInIcon.d.ts +3 -0
  168. package/dist/src/components/Icons/LogOutIcon.d.ts +3 -0
  169. package/dist/src/components/Icons/MessageWithArrowIcon.d.ts +3 -0
  170. package/dist/src/components/Icons/MoreIcon.d.ts +3 -0
  171. package/dist/src/components/Icons/MouseIcon.d.ts +3 -0
  172. package/dist/src/components/Icons/NoteIcon.d.ts +3 -0
  173. package/dist/src/components/Icons/OpenFolderIcon.d.ts +3 -0
  174. package/dist/src/components/Icons/PageIcon.d.ts +3 -0
  175. package/dist/src/components/Icons/PageViewIcon.d.ts +3 -0
  176. package/dist/src/components/Icons/PaperclipIcon.d.ts +3 -0
  177. package/dist/src/components/Icons/PatientIcon.d.ts +3 -0
  178. package/dist/src/components/Icons/PencilIcon.d.ts +3 -0
  179. package/dist/src/components/Icons/PersonIcon.d.ts +3 -0
  180. package/dist/src/components/Icons/PhoneIcon.d.ts +3 -0
  181. package/dist/src/components/Icons/PieChartIcon.d.ts +3 -0
  182. package/dist/src/components/Icons/PinIcon.d.ts +3 -0
  183. package/dist/src/components/Icons/PlusIcon.d.ts +3 -0
  184. package/dist/src/components/Icons/PrinterIcon.d.ts +3 -0
  185. package/dist/src/components/Icons/RedAlertIcon.d.ts +3 -0
  186. package/dist/src/components/Icons/RobotIcon.d.ts +3 -0
  187. package/dist/src/components/Icons/RocketIcon.d.ts +3 -0
  188. package/dist/src/components/Icons/SearchIcon.d.ts +3 -0
  189. package/dist/src/components/Icons/SendIcon.d.ts +3 -0
  190. package/dist/src/components/Icons/ShareIcon.d.ts +3 -0
  191. package/dist/src/components/Icons/SidebarIcon.d.ts +3 -0
  192. package/dist/src/components/Icons/SmallArrowDownIcon.d.ts +3 -0
  193. package/dist/src/components/Icons/SmallArrowUpIcon.d.ts +3 -0
  194. package/dist/src/components/Icons/SmallCircleIcon.d.ts +3 -0
  195. package/dist/src/components/Icons/SmallDiamondIcon.d.ts +3 -0
  196. package/dist/src/components/Icons/SmallSquareIcon.d.ts +3 -0
  197. package/dist/src/components/Icons/SmallUpsideDownTriangleIcon.d.ts +3 -0
  198. package/dist/src/components/Icons/StarFilledIcon.d.ts +3 -0
  199. package/dist/src/components/Icons/StarIcon.d.ts +3 -0
  200. package/dist/src/components/Icons/StopwatchIcon.d.ts +3 -0
  201. package/dist/src/components/Icons/SummaryIcon.d.ts +3 -0
  202. package/dist/src/components/Icons/TadaIcon.d.ts +3 -0
  203. package/dist/src/components/Icons/ThresholdIcon.d.ts +3 -0
  204. package/dist/src/components/Icons/TrashBinIcon.d.ts +3 -0
  205. package/dist/src/components/Icons/TreeIcon.d.ts +3 -0
  206. package/dist/src/components/Icons/UnassignedIcon.d.ts +3 -0
  207. package/dist/src/components/Icons/UnpinIcon.d.ts +3 -0
  208. package/dist/src/components/Icons/UploadIcon.d.ts +3 -0
  209. package/dist/src/components/Icons/VideoIcon.d.ts +3 -0
  210. package/dist/src/components/Icons/iconWrapper/iconWrapper.d.ts +4 -0
  211. package/dist/src/components/Icons/iconWrapper/index.d.ts +1 -0
  212. package/dist/src/components/Icons/index.d.ts +288 -0
  213. package/dist/src/components/Icons/special-icons/AmberAlertColoredIcon.d.ts +3 -0
  214. package/dist/src/components/Icons/special-icons/ChartLineColoredIcon.d.ts +3 -0
  215. package/dist/src/components/Icons/special-icons/CheckFilledColoredIcon.d.ts +3 -0
  216. package/dist/src/components/Icons/special-icons/FlagDeColoredIcon.d.ts +3 -0
  217. package/dist/src/components/Icons/special-icons/FlagFrColoredIcon.d.ts +3 -0
  218. package/dist/src/components/Icons/special-icons/FlagNlColoredIcon.d.ts +3 -0
  219. package/dist/src/components/Icons/special-icons/FlagPtColoredIcon.d.ts +3 -0
  220. package/dist/src/components/Icons/special-icons/FlagUkColoredIcon.d.ts +3 -0
  221. package/dist/src/components/Icons/special-icons/GearColoredIcon.d.ts +3 -0
  222. package/dist/src/components/Icons/special-icons/GrayAlertColoredIcon.d.ts +3 -0
  223. package/dist/src/components/Icons/special-icons/GreenAlertColoredIcon.d.ts +3 -0
  224. package/dist/src/components/Icons/special-icons/GroupColoredIcon.d.ts +3 -0
  225. package/dist/src/components/Icons/special-icons/RedAlertColoredIcon.d.ts +3 -0
  226. package/dist/src/components/Icons/special-icons/StatusActiveColoredIcon.d.ts +3 -0
  227. package/dist/src/components/Icons/special-icons/StatusAddedColoredIcon.d.ts +3 -0
  228. package/dist/src/components/Icons/special-icons/StatusBlockedColoredIcon.d.ts +3 -0
  229. package/dist/src/components/Icons/special-icons/StatusCancelledColoredIcon.d.ts +3 -0
  230. package/dist/src/components/Icons/special-icons/StatusColoredIcon.d.ts +3 -0
  231. package/dist/src/components/Icons/special-icons/StatusStoppedColoredIcon.d.ts +3 -0
  232. package/dist/src/components/Icons/special-icons/index.d.ts +19 -0
  233. package/dist/src/components/Icons/types/IconProps.type.d.ts +18 -0
  234. package/dist/src/components/Image/Image.d.ts +17 -0
  235. package/dist/src/components/InfoField/InfoField.d.ts +28 -0
  236. package/dist/src/components/Input/Input.d.ts +53 -0
  237. package/dist/src/components/Input/LabeledInput.d.ts +23 -0
  238. package/dist/src/components/Input/SearchInput.d.ts +24 -0
  239. package/dist/src/components/Input/StyledInput.d.ts +12 -0
  240. package/dist/src/components/Line/Line.d.ts +14 -0
  241. package/dist/src/components/Link/Link.d.ts +19 -0
  242. package/dist/src/components/List/List.d.ts +6 -0
  243. package/dist/src/components/List/List.types.d.ts +30 -0
  244. package/dist/src/components/List/ListItem.d.ts +4 -0
  245. package/dist/src/components/List/index.d.ts +5 -0
  246. package/dist/src/components/LoadingIndicator/LoadingIndicator.d.ts +11 -0
  247. package/dist/src/components/MediaPicker/ImageCategory.d.ts +14 -0
  248. package/dist/src/components/MediaPicker/MediaPicker.d.ts +91 -0
  249. package/dist/src/components/Modal/FullPageModal.d.ts +41 -0
  250. package/dist/src/components/Modal/FullPageModalHeader.d.ts +13 -0
  251. package/dist/src/components/Modal/Modal.d.ts +11 -0
  252. package/dist/src/components/Modal/ModalBase.d.ts +16 -0
  253. package/dist/src/components/Modal/ModalFooter.d.ts +27 -0
  254. package/dist/src/components/Modal/ModalHeader.d.ts +6 -0
  255. package/dist/src/components/Modal/subcomponents/FullPageModalActions.d.ts +18 -0
  256. package/dist/src/components/ModalDialog/ModalDialog.d.ts +97 -0
  257. package/dist/src/components/NavMenu/NavLayout.d.ts +35 -0
  258. package/dist/src/components/NotificationBanner/NotificationBanner.d.ts +35 -0
  259. package/dist/src/components/Page/CRUDPage.d.ts +4 -0
  260. package/dist/src/components/Page/CRUDPage.types.d.ts +62 -0
  261. package/dist/src/components/Page/Page.d.ts +56 -0
  262. package/dist/src/components/Page/index.d.ts +3 -0
  263. package/dist/src/components/PageHeader/PageHeader.d.ts +4 -0
  264. package/dist/src/components/PageHeader/PageHeader.types.d.ts +46 -0
  265. package/dist/src/components/PageHeader/index.d.ts +2 -0
  266. package/dist/src/components/PaginationMenu/PaginationMenu.d.ts +2 -0
  267. package/dist/src/components/PaginationMenu/PaginationMenu.types.d.ts +62 -0
  268. package/dist/src/components/PaginationMenu/PaginationMenu.utils.d.ts +15 -0
  269. package/dist/src/components/PaginationMenu/PaginationMenuCursor.d.ts +3 -0
  270. package/dist/src/components/PaginationMenu/PaginationMenuLarge.d.ts +3 -0
  271. package/dist/src/components/PaginationMenu/PaginationMenuSmall.d.ts +2 -0
  272. package/dist/src/components/PreviewPhone/PreviewPhone.d.ts +7 -0
  273. package/dist/src/components/PreviewPhone/useWindowDimensions.d.ts +4 -0
  274. package/dist/src/components/Radio/LabeledRadio.d.ts +67 -0
  275. package/dist/src/components/Radio/LabeledRadioGroup.d.ts +23 -0
  276. package/dist/src/components/Radio/Radio.d.ts +25 -0
  277. package/dist/src/components/Radio/RadioV2.d.ts +16 -0
  278. package/dist/src/components/Radio/StyledRadio.d.ts +5 -0
  279. package/dist/src/components/RadioGroup/RadioGroup.d.ts +33 -0
  280. package/dist/src/components/RadioGroup/RadioGroupV2.d.ts +10 -0
  281. package/dist/src/components/Section/Section.d.ts +29 -0
  282. package/dist/src/components/Section/SectionItem.d.ts +9 -0
  283. package/dist/src/components/Section/SectionItemWithContent.d.ts +8 -0
  284. package/dist/src/components/Section/subcomponents/SectionActions.d.ts +21 -0
  285. package/dist/src/components/Section/subcomponents/SectionFooter.d.ts +6 -0
  286. package/dist/src/components/Section/subcomponents/SectionHeader.d.ts +8 -0
  287. package/dist/src/components/Select/LabeledSelect.d.ts +21 -0
  288. package/dist/src/components/Select/Select.d.ts +49 -0
  289. package/dist/src/components/Select/Select.types.d.ts +4 -0
  290. package/dist/src/components/Select/SelectDropdownIndicator.d.ts +3 -0
  291. package/dist/src/components/Select/SelectLoadingIndicator.d.ts +3 -0
  292. package/dist/src/components/Select/StyledSelect.d.ts +10 -0
  293. package/dist/src/components/SettingsMenuButton/SettingsMenuButton.d.ts +19 -0
  294. package/dist/src/components/Skeleton/Skeleton.d.ts +9 -0
  295. package/dist/src/components/Spinner/Spinner.d.ts +6 -0
  296. package/dist/src/components/Stack/Stack.d.ts +49 -0
  297. package/dist/src/components/StatusIndicator/StatusIndicator.d.ts +16 -0
  298. package/dist/src/components/Steps/Step.d.ts +9 -0
  299. package/dist/src/components/Steps/Steps.d.ts +9 -0
  300. package/dist/src/components/StyledLists/StyledBaseList.d.ts +33 -0
  301. package/dist/src/components/StyledLists/StyledOrderedList.d.ts +25 -0
  302. package/dist/src/components/StyledLists/StyledUnorderedList.d.ts +43 -0
  303. package/dist/src/components/Switch/Switch.d.ts +23 -0
  304. package/dist/src/components/Switcher/Switcher.d.ts +26 -0
  305. package/dist/src/components/Switcher/SwitcherItem.d.ts +24 -0
  306. package/dist/src/components/Tabbar/Tabbar.d.ts +20 -0
  307. package/dist/src/components/Tabbar/TabbarItem.d.ts +15 -0
  308. package/dist/src/components/Table/Table.d.ts +52 -0
  309. package/dist/src/components/Table/Table.types.d.ts +41 -0
  310. package/dist/src/components/Table/Table.utils.d.ts +58 -0
  311. package/dist/src/components/Table/TableBody.d.ts +32 -0
  312. package/dist/src/components/Table/TableBodyRowDataCell.d.ts +7 -0
  313. package/dist/src/components/Table/TableFooter.d.ts +7 -0
  314. package/dist/src/components/Table/TableHeader.d.ts +18 -0
  315. package/dist/src/components/Tag/Tag.d.ts +31 -0
  316. package/dist/src/components/Tag/TagGroup.d.ts +23 -0
  317. package/dist/src/components/Text/Text.d.ts +138 -0
  318. package/dist/src/components/TextEditor/TextEditor.d.ts +69 -0
  319. package/dist/src/components/TextLink/TextLink.d.ts +13 -0
  320. package/dist/src/components/Textarea/Textarea.d.ts +29 -0
  321. package/dist/src/components/Timeline/Timeline.d.ts +13 -0
  322. package/dist/src/components/Timeline/TimelineHeader.d.ts +10 -0
  323. package/dist/src/components/Timeline/TimelineStep.d.ts +10 -0
  324. package/dist/src/components/TimelineCard/LoadingState.d.ts +1 -0
  325. package/dist/src/components/TimelineCard/TimelineCard.d.ts +52 -0
  326. package/dist/src/components/TimelineCardLayout/TimelineCardLayout.d.ts +18 -0
  327. package/dist/src/components/Title/PageTitle.d.ts +6 -0
  328. package/dist/src/components/Title/Title.d.ts +41 -0
  329. package/dist/src/components/Toaster/Toaster.d.ts +3 -0
  330. package/dist/src/components/Toaster/ToasterPanel.d.ts +15 -0
  331. package/dist/src/components/Toaster/toast.d.ts +12 -0
  332. package/dist/src/components/Tooltip/Tooltip.d.ts +40 -0
  333. package/dist/src/components/Tooltip/index.d.ts +1 -0
  334. package/dist/src/components/UnorderedList/UnorderedList.d.ts +63 -0
  335. package/dist/src/components/VerticalMenu/VerticalMenu.d.ts +128 -0
  336. package/dist/src/components/WeekdaysPicker/WeekdaysPicker.d.ts +42 -0
  337. package/dist/src/components/forms/shared/HelperAndErrorText.d.ts +13 -0
  338. package/dist/src/components/forms/shared/LabelText.d.ts +5 -0
  339. package/dist/src/context/LocaleContext.d.ts +3 -0
  340. package/dist/src/index.d.ts +126 -0
  341. package/dist/src/system/Elevation.d.ts +9 -0
  342. package/dist/src/system/Locale.d.ts +3 -0
  343. package/dist/src/system/Sizes.d.ts +43 -0
  344. package/dist/src/types/general.types.d.ts +11 -0
  345. package/dist/src/utils/radius.utils.d.ts +37 -0
  346. package/dist/src/utils/responsiveness.utils.d.ts +30 -0
  347. package/dist/src/utils/shadow.utils.d.ts +21 -0
  348. package/dist/src/utils/string.utils.d.ts +7 -0
  349. package/dist/src/utils/useOutsideClick.d.ts +2 -0
  350. package/dist/stories/Accordion.stories.d.ts +24 -0
  351. package/dist/stories/AccordionList.stories.d.ts +109 -0
  352. package/dist/stories/AlertsWidget.stories.d.ts +14 -0
  353. package/dist/stories/AsideLayout.stories.d.ts +22 -0
  354. package/dist/stories/Avatar.stories.d.ts +46 -0
  355. package/dist/stories/Badge.stories.d.ts +21 -0
  356. package/dist/stories/BaseList.stories.d.ts +16 -0
  357. package/dist/stories/Box.stories.d.ts +15 -0
  358. package/dist/stories/Breadcrumbs.stories.d.ts +10 -0
  359. package/dist/stories/Button.stories.d.ts +11 -0
  360. package/dist/stories/CRUDPage.stories.d.ts +15 -0
  361. package/dist/stories/Card.stories.d.ts +43 -0
  362. package/dist/stories/Carousel.stories.d.ts +44 -0
  363. package/dist/stories/CenteredHero.stories.d.ts +14 -0
  364. package/dist/stories/ChatBubble.stories.d.ts +50 -0
  365. package/dist/stories/CheckBoxListModal.stories.d.ts +137 -0
  366. package/dist/stories/Checkbox.stories.d.ts +61 -0
  367. package/dist/stories/CheckboxList.stories.d.ts +23 -0
  368. package/dist/stories/Chip.stories.d.ts +15 -0
  369. package/dist/stories/Collapse.stories.d.ts +25 -0
  370. package/dist/stories/ConfirmationDialog.stories.d.ts +13 -0
  371. package/dist/stories/DatePicker.stories.d.ts +56 -0
  372. package/dist/stories/DetailsDisclosure.stories.d.ts +9506 -0
  373. package/dist/stories/Divider.stories.d.ts +67 -0
  374. package/dist/stories/DragHandle.stories.d.ts +23 -0
  375. package/dist/stories/DraggableAccordionList.stories.d.ts +11 -0
  376. package/dist/stories/DraggableList.stories.d.ts +10 -0
  377. package/dist/stories/Dropdown.stories.d.ts +13 -0
  378. package/dist/stories/Dropzone.stories.d.ts +14 -0
  379. package/dist/stories/EmptyListMessage.stories.d.ts +21 -0
  380. package/dist/stories/FilePreview.stories.d.ts +29 -0
  381. package/dist/stories/FileUpload.stories.d.ts +9 -0
  382. package/dist/stories/FilterBar.stories.d.ts +34 -0
  383. package/dist/stories/FlexContainer.stories.d.ts +13 -0
  384. package/dist/stories/FlyOutMenu.stories.d.ts +15 -0
  385. package/dist/stories/FullPageModal.stories.d.ts +42 -0
  386. package/dist/stories/HoverCard.stories.d.ts +8 -0
  387. package/dist/stories/HoverIndicatorControl.stories.d.ts +31 -0
  388. package/dist/stories/Icon.stories.d.ts +16 -0
  389. package/dist/stories/InfoField.stories.d.ts +35 -0
  390. package/dist/stories/Input.stories.d.ts +26 -0
  391. package/dist/stories/LabeledDatePicker.stories.d.ts +56 -0
  392. package/dist/stories/LabeledInput.stories.d.ts +44 -0
  393. package/dist/stories/LabeledRadio.stories.d.ts +33 -0
  394. package/dist/stories/Line.stories.d.ts +22 -0
  395. package/dist/stories/Link.stories.d.ts +20 -0
  396. package/dist/stories/LinkIcon.stories.d.ts +13 -0
  397. package/dist/stories/List.stories.d.ts +253 -0
  398. package/dist/stories/LoadingIndicator.stories.d.ts +26 -0
  399. package/dist/stories/MediaPicker.stories.d.ts +11 -0
  400. package/dist/stories/Modal.stories.d.ts +119 -0
  401. package/dist/stories/ModalDialog.stories.d.ts +17572 -0
  402. package/dist/stories/NavLayout.stories.d.ts +25 -0
  403. package/dist/stories/NotificationBanner.stories.d.ts +43 -0
  404. package/dist/stories/Page.stories.d.ts +36 -0
  405. package/dist/stories/PageHeader.stories.d.ts +23 -0
  406. package/dist/stories/Pagination.stories.d.ts +18 -0
  407. package/dist/stories/PreviewPhone.stories.d.ts +17 -0
  408. package/dist/stories/PrimaryButton.stories.d.ts +18 -0
  409. package/dist/stories/PrimaryIconButton.stories.d.ts +13 -0
  410. package/dist/stories/Radio.stories.d.ts +28 -0
  411. package/dist/stories/RadioGroup.stories.d.ts +30 -0
  412. package/dist/stories/RadioGroupV2.stories.d.ts +36 -0
  413. package/dist/stories/RadioV2.stories.d.ts +41 -0
  414. package/dist/stories/SearchInput.stories.d.ts +14 -0
  415. package/dist/stories/SecondaryButton.stories.d.ts +15 -0
  416. package/dist/stories/SecondaryIconButton.stories.d.ts +12 -0
  417. package/dist/stories/Section.stories.d.ts +68 -0
  418. package/dist/stories/SectionItem.stories.d.ts +16 -0
  419. package/dist/stories/SectionItemWithContent.stories.d.ts +16 -0
  420. package/dist/stories/Select.stories.d.ts +181 -0
  421. package/dist/stories/SettingsMenuButton.stories.d.ts +98 -0
  422. package/dist/stories/Skeleton.stories.d.ts +19 -0
  423. package/dist/stories/SortableList.stories.d.ts +9 -0
  424. package/dist/stories/Spinner.stories.d.ts +17 -0
  425. package/dist/stories/Stack.stories.d.ts +21 -0
  426. package/dist/stories/StatusIndicator.stories.d.ts +19 -0
  427. package/dist/stories/Step.stories.d.ts +25 -0
  428. package/dist/stories/Steps.stories.d.ts +14 -0
  429. package/dist/stories/StyledOrderedList.stories.d.ts +281 -0
  430. package/dist/stories/StyledUnorderedList.stories.d.ts +285 -0
  431. package/dist/stories/Switch.stories.d.ts +11 -0
  432. package/dist/stories/Switcher.stories.d.ts +40 -0
  433. package/dist/stories/Tabbar.stories.d.ts +8 -0
  434. package/dist/stories/Table.stories.d.ts +3263 -0
  435. package/dist/stories/Tag.stories.d.ts +18 -0
  436. package/dist/stories/TertiaryButton.stories.d.ts +14 -0
  437. package/dist/stories/TertiaryIconButton.stories.d.ts +20 -0
  438. package/dist/stories/Text.stories.d.ts +45 -0
  439. package/dist/stories/TextColors.stories.d.ts +30 -0
  440. package/dist/stories/TextEditor.stories.d.ts +29 -0
  441. package/dist/stories/TextLink.stories.d.ts +13 -0
  442. package/dist/stories/Textarea.stories.d.ts +65 -0
  443. package/dist/stories/Timeline.stories.d.ts +11 -0
  444. package/dist/stories/TimelineCard.stories.d.ts +39 -0
  445. package/dist/stories/TimelineCardLayout.stories.d.ts +40 -0
  446. package/dist/stories/Title.stories.d.ts +19 -0
  447. package/dist/stories/Toaster.stories.d.ts +12 -0
  448. package/dist/stories/Tooltip.stories.d.ts +8 -0
  449. package/dist/stories/UnorderedList.stories.d.ts +40 -0
  450. package/dist/stories/VerticalMenu.stories.d.ts +105 -0
  451. package/dist/stories/WeekdaysPicker.stories.d.ts +40 -0
  452. package/dist/web-ui-tailwind.css +4611 -0
  453. package/dist/web-ui.esm.js +2 -0
  454. package/dist/web-ui.esm.js.map +1 -0
  455. package/package.json +178 -0
@@ -0,0 +1,2 @@
1
+ import type { FC, ComponentPropsWithoutRef } from "react";
2
+ export declare const Actions: FC<ComponentPropsWithoutRef<"div">>;
@@ -0,0 +1,67 @@
1
+ import type { ComponentProps, ElementType, ReactNode } from "react";
2
+ import type { ELEVATION } from "../../system/Elevation";
3
+ import { Box } from "../Box/Box";
4
+ import { type TitleProps } from "../Title/Title";
5
+ type TitleAndMaybeActions = {
6
+ title: string;
7
+ /**
8
+ * Spaces and positions the action components correctly in relation to
9
+ * the styling of the card.
10
+ *
11
+ * @usage
12
+ * ```tsx
13
+ * <Card
14
+ * actions={
15
+ * <Card.Actions>
16
+ * <PrimaryButton />
17
+ * <SecondaryButton />
18
+ * </Card.Actions>
19
+ * }
20
+ * />
21
+ * ```
22
+ */
23
+ actions: ReactNode;
24
+ } | {
25
+ title: undefined;
26
+ actions: undefined;
27
+ } | {
28
+ title?: string;
29
+ /**
30
+ * The `actions` prop can only be used in conjunction with the `title` prop.
31
+ */
32
+ actions?: never;
33
+ };
34
+ export type Props<C extends ElementType = "div"> = ComponentProps<typeof Box<C>> & {
35
+ border?: boolean;
36
+ children: ReactNode;
37
+ /**
38
+ * Adds a box-shadow to the element based on the design system when hovering
39
+ */
40
+ elevationOnHover?: keyof typeof ELEVATION;
41
+ /**
42
+ * Whether or not to add the default padding to the card. Set this
43
+ * to `false` if you want to render something full width inside of the
44
+ * card, like an image or a list. You have access to the `Card.Padding`
45
+ * subcomponent to then add back the default padding wherever needed.
46
+ *
47
+ * @default true
48
+ */
49
+ padding?: boolean;
50
+ } & TitleAndMaybeActions;
51
+ export declare function Card<C extends ElementType = "div">(props: Props<C>): import("react/jsx-runtime").JSX.Element;
52
+ export declare namespace Card {
53
+ var Title: (props: TitleProps) => import("react/jsx-runtime").JSX.Element;
54
+ var TopBar: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
55
+ children?: ReactNode;
56
+ }> & {
57
+ Actions: typeof import("./Actions").Actions;
58
+ };
59
+ var Padding: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
60
+ children?: ReactNode;
61
+ }>;
62
+ var Section: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
63
+ children?: ReactNode;
64
+ }>;
65
+ var Actions: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">>;
66
+ }
67
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ComponentPropsWithoutRef, FC, ReactNode } from "react";
2
+ type Props = ComponentPropsWithoutRef<"div"> & {
3
+ children?: ReactNode;
4
+ };
5
+ export declare const Padding: FC<Props>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ComponentPropsWithoutRef, FC, ReactNode } from "react";
2
+ type Props = ComponentPropsWithoutRef<"div"> & {
3
+ children?: ReactNode;
4
+ };
5
+ export declare const Section: FC<Props>;
6
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ComponentPropsWithoutRef, FC, ReactNode } from "react";
2
+ import { Actions } from "./Actions";
3
+ type StaticComponents = {
4
+ Actions: typeof Actions;
5
+ };
6
+ type Props = ComponentPropsWithoutRef<"div"> & {
7
+ children?: ReactNode;
8
+ };
9
+ export declare const TopBar: FC<Props> & StaticComponents;
10
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { FC, ReactNode } from "react";
2
+ type Props = {
3
+ /**
4
+ * An array of react nodes to be presented in the Carousel.
5
+ */
6
+ slides?: ReactNode[];
7
+ id?: string;
8
+ className?: string;
9
+ /**
10
+ * aria-label attributes for various controls
11
+ */
12
+ labels?: {
13
+ /**
14
+ * aria-label attribute for next button
15
+ */
16
+ nextButton?: string;
17
+ /**
18
+ * aria-label attribute for previous button
19
+ */
20
+ previousButton?: string;
21
+ /**
22
+ * aria-label attribute for dot indicator button based on its index
23
+ *
24
+ * @example (index) => `Page ${index}`
25
+ */
26
+ dotButton?: (index: number) => string;
27
+ };
28
+ };
29
+ export declare const Carousel: FC<Props>;
30
+ export default Carousel;
@@ -0,0 +1,16 @@
1
+ import type { FC, ReactNode } from "react";
2
+ export type BackgroundColor = "white" | "slate-50";
3
+ export type ImageSize = "small" | "large";
4
+ export interface CenteredHeroProps {
5
+ title?: string;
6
+ text?: string;
7
+ image?: string;
8
+ imageSize?: ImageSize;
9
+ slots?: {
10
+ bottom?: ReactNode;
11
+ };
12
+ background?: BackgroundColor;
13
+ dataTestId?: string;
14
+ }
15
+ declare const CenteredHero: FC<CenteredHeroProps>;
16
+ export default CenteredHero;
@@ -0,0 +1,54 @@
1
+ import type { ComponentProps, ComponentPropsWithoutRef, ElementType, ReactNode } from "react";
2
+ import { Text } from "../Text/Text";
3
+ type Props = {
4
+ /**
5
+ * Whatever the content of the message is.
6
+ */
7
+ children: string | ReactNode;
8
+ className?: string;
9
+ /**
10
+ * The name of the person who sent this message.
11
+ *
12
+ * @example "Dr. Mike Brown"
13
+ */
14
+ sender?: string;
15
+ /**
16
+ * The moment this message was sent or delivered. This
17
+ * can be a full date, or the time, or a relative time,
18
+ * even including other additional information.
19
+ *
20
+ * @example "14:02"
21
+ * @example "Yesterday at 14:02"
22
+ * @example "Delivered"
23
+ */
24
+ timestamp?: string;
25
+ /**
26
+ * Text to indicate the message was read. Can be a full
27
+ * date, or the time, or a relative time, even including
28
+ * other additional information.
29
+ *
30
+ * @example "Read yesterday at 14:10"
31
+ */
32
+ readReceipt?: string;
33
+ color?: "blue" | "grey";
34
+ /**
35
+ * Where to position the tip of the chat bubble.
36
+ */
37
+ tipPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
38
+ };
39
+ type RootProps<C extends ElementType> = Props & ComponentPropsWithoutRef<C> & {
40
+ as?: C;
41
+ };
42
+ export declare function ChatBubble<C extends ElementType = "div">(props: RootProps<C>): import("react/jsx-runtime").JSX.Element;
43
+ export declare namespace ChatBubble {
44
+ var Text: typeof ChatBubbleText;
45
+ var DateIndicator: typeof ChatBubbleDateIndicator;
46
+ }
47
+ /**
48
+ * SUBCOMPONENTS
49
+ */
50
+ declare function ChatBubbleText(props: ComponentProps<typeof Text>): import("react/jsx-runtime").JSX.Element;
51
+ declare function ChatBubbleDateIndicator(props: {
52
+ children: ReactNode;
53
+ }): import("react/jsx-runtime").JSX.Element;
54
+ export {};
@@ -0,0 +1,35 @@
1
+ import { type CheckboxGroupItemProps } from "../CheckboxList/CheckboxList.types";
2
+ export type Item = {
3
+ group?: string;
4
+ isPinned?: boolean;
5
+ } & Pick<CheckboxGroupItemProps, "id" | "label" | "isChecked" | "isDisabled">;
6
+ export interface Group {
7
+ title?: string;
8
+ items: Item[];
9
+ }
10
+ interface CheckboxListModalTexts {
11
+ title: string;
12
+ searchInputLabel?: string;
13
+ confirmLabel: string;
14
+ cancelLabel: string;
15
+ searchPlaceHolder?: string;
16
+ emptyState: string;
17
+ }
18
+ export interface CheckboxListModalProps {
19
+ texts: CheckboxListModalTexts;
20
+ /**
21
+ * Accessory component to be rendered above the search input.
22
+ * For example, a button or any control that fit the use case.
23
+ */
24
+ accessory?: React.ReactNode;
25
+ initialItems: Array<Item>;
26
+ isLoadingInitialItems?: boolean;
27
+ isOpen?: boolean;
28
+ onSave: (newItems: Item[]) => void;
29
+ onCloseClick: () => void;
30
+ filterItem: (item: Item, searchQuery: string) => boolean;
31
+ className?: string;
32
+ hasSearch?: boolean;
33
+ }
34
+ export declare const CheckboxListModal: ({ texts, accessory, initialItems, isLoadingInitialItems, isOpen, onSave, onCloseClick, filterItem, hasSearch, }: CheckboxListModalProps) => JSX.Element;
35
+ export {};
@@ -0,0 +1,68 @@
1
+ import React from "react";
2
+ import "./Checkbox.scss";
3
+ export interface CheckboxProps {
4
+ /**
5
+ * ID used for semantic targeting, as can be used in attributes like `<label htmlFor="some-id">`.
6
+ */
7
+ id?: string;
8
+ /**
9
+ * The visible text labeling the checkbox element.
10
+ */
11
+ text?: string;
12
+ /**
13
+ * Helper text that adds some more information on what the option means, or inform
14
+ * the user about the consequences of the checkbox.
15
+ *
16
+ * Only works if the `renderLabel` prop isn't set.
17
+ */
18
+ explanation?: string;
19
+ /**
20
+ * @deprecated - this works exclusively as a checkbox now, if you want a different component,
21
+ * use the `Switch` component.
22
+ *
23
+ * Shows a different checkbox variant. `type="switch"` shows a switch-like component
24
+ * without a visual label.
25
+ */
26
+ type?: "regular" | "switch";
27
+ /**
28
+ * Set the value.
29
+ * Same as `checked` on `<input type="checkbox" />`.
30
+ */
31
+ isChecked?: boolean;
32
+ /**
33
+ * Value for when it is not clear if the state of this checkbox
34
+ * is "checked" or not (for hierarchical checkboxes).
35
+ */
36
+ isIndeterminate?: boolean;
37
+ /**
38
+ * Disallow the user to change the checkbox value.
39
+ * Same as `disabled` on `<input type="checkbox" />`.
40
+ */
41
+ isDisabled?: boolean;
42
+ /**
43
+ * The name that the value of the checkbox will be associated with.
44
+ * Same as `name` on `<input type="checkbox" />`.
45
+ */
46
+ name?: string;
47
+ /**
48
+ * This can be used to retrieve the value it is referring to through onChange.
49
+ */
50
+ value?: string;
51
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
52
+ onClick?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
53
+ className?: string;
54
+ classNameCheckboxLabel?: string;
55
+ /**
56
+ * Visually show that the currently selected value has an issue the user needs to attend to.
57
+ */
58
+ error?: boolean;
59
+ innerRef?: React.Ref<HTMLInputElement>;
60
+ /**
61
+ * Renders a completely custom label. Can change its contents or
62
+ * appearance based on the props of the checkbox item.
63
+ *
64
+ * Overrides the `text` prop.
65
+ */
66
+ renderLabel?: (props: CheckboxProps) => JSX.Element | null;
67
+ }
68
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,7 @@
1
+ import type { FC } from "react";
2
+ import { type CheckboxGroupProps, type CheckboxListItem } from "./CheckboxList.types";
3
+ type Props = CheckboxGroupProps & {
4
+ onStateChange?: (state: CheckboxListItem[]) => void;
5
+ };
6
+ export declare const CheckboxGroup: FC<Props>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { FC } from "react";
2
+ import { type CheckboxListProps } from "./CheckboxList.types";
3
+ type Props = {
4
+ groups: CheckboxListProps["groups"];
5
+ onChange?: CheckboxListProps["onChange"];
6
+ onStateChange?: (state: CheckboxListProps["groups"]) => void;
7
+ className?: string;
8
+ };
9
+ export { type Props as CheckboxListProps };
10
+ export declare const CheckboxList: FC<Props>;
@@ -0,0 +1,74 @@
1
+ export declare enum CheckboxState {
2
+ CHECKED = "checked",
3
+ INDETERMINATE = "indeterminate",
4
+ UNCHECKED = "unchecked"
5
+ }
6
+ export type CheckboxListProps = {
7
+ /**
8
+ * An array of items to render as checkboxes. Each item can be a single item or a group. When the
9
+ * title isn't specified, the group will render as a non-collapsible list. This is the way to
10
+ * render a regular list of checkboxes.
11
+ *
12
+ * @example
13
+ * Single list of checkboxes without visual grouping.
14
+ *
15
+ * ```tsx
16
+ * const groups = [{
17
+ * items: [
18
+ * {
19
+ * id: "1",
20
+ * label: "Item 1",
21
+ * },
22
+ * {
23
+ * id: "2",
24
+ * label: "Item 2",
25
+ * },
26
+ * ],
27
+ * }]
28
+ * ```
29
+ */
30
+ groups: CheckboxGroup[];
31
+ onChange: (event: CheckboxChangeEvent) => void;
32
+ className?: string;
33
+ };
34
+ type WithCollapsible = {
35
+ /**
36
+ * When `false` will prevent the checkbox list from being collapsed (also disabling clicking to expand/collapse)
37
+ * in the component and it will be displayed expanded by default.
38
+ * @default true
39
+ */
40
+ collapsible?: boolean;
41
+ };
42
+ export type CheckboxGroupProps = CheckboxGroup & {
43
+ onChange?: (event: CheckboxChangeEvent) => void;
44
+ className?: string;
45
+ } & WithCollapsible;
46
+ export interface CheckboxGroupItemProps extends CheckboxListItem {
47
+ onChange: (event: CheckboxChangeEvent) => void;
48
+ }
49
+ export interface CheckboxListItem {
50
+ id: string;
51
+ label: string;
52
+ isChecked?: boolean;
53
+ isDisabled?: boolean;
54
+ className?: string;
55
+ }
56
+ export type CheckboxGroup = {
57
+ /**
58
+ * When the title isn't specified, the group will render as a non-collapsible list.
59
+ */
60
+ title?: string;
61
+ /**
62
+ * The checkbox items to be shown inside of this group.
63
+ */
64
+ items: CheckboxListItem[];
65
+ /**
66
+ * Whether the group is initially collapsed or not.
67
+ */
68
+ isCollapsed?: boolean;
69
+ } & WithCollapsible;
70
+ export interface CheckboxChangeEvent {
71
+ id: string;
72
+ newCheckedValue: boolean;
73
+ }
74
+ export {};
@@ -0,0 +1,9 @@
1
+ import type React from "react";
2
+ type ChipProps = {
3
+ accessory?: React.ReactNode;
4
+ leadingIcon?: React.ReactNode;
5
+ onClick: (event?: React.MouseEvent<HTMLButtonElement>) => void;
6
+ text: string | React.ReactNode;
7
+ };
8
+ export declare const Chip: ({ accessory, leadingIcon, onClick, text }: ChipProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from "react";
2
+ type Props = {
3
+ children: ReactNode;
4
+ /**
5
+ * Use this prop to apply a custom class name to the root element
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Use this prop to control the height of the collapsed content
10
+ * for example by using Tailwinds line-clamp utility classes.
11
+ * Hiding the overflow will be handled by the component.
12
+ *
13
+ * If this prop is not supplied, the component will not collapse and get the height of the content.
14
+ *
15
+ * @example "h-20"
16
+ * @example "ui:line-clamp-5"
17
+ */
18
+ contentClassName?: string;
19
+ isCollapsed?: boolean;
20
+ onClick?: () => void;
21
+ moreIndicator?: ReactNode;
22
+ showMoreIndicator?: boolean;
23
+ };
24
+ export declare const Collapse: (props: Props) => import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { FC } from "react";
2
+ import type { ConfirmationDialogProps } from "./types/ConfirmationDialog.types";
3
+ export declare const ConfirmationDialog: FC<ConfirmationDialogProps>;
@@ -0,0 +1,7 @@
1
+ import type { FC } from "react";
2
+ import { type ConfirmationDialogChoice, type ConfirmationDialogProps } from "./types/ConfirmationDialog.types";
3
+ export declare const ConfirmationDialogChoices: FC<{
4
+ choices: ConfirmationDialogProps["choices"];
5
+ onChoiceChangeCallback?: (choice: ConfirmationDialogChoice) => void;
6
+ selectedChoice?: ConfirmationDialogChoice;
7
+ }>;
@@ -0,0 +1,4 @@
1
+ import type { FC } from "react";
2
+ export declare const ConfirmationDialogMessage: FC<{
3
+ message: string | string[];
4
+ }>;
@@ -0,0 +1,3 @@
1
+ import type { FC } from "react";
2
+ import type { ConfirmationDialogTitleProps } from "./types/ConfirmationDialog.types";
3
+ export declare const ConfirmationDialogTitle: FC<ConfirmationDialogTitleProps>;
@@ -0,0 +1,52 @@
1
+ import type { IconKey, IconProps } from "../../../components/Icons/types/IconProps.type";
2
+ import type { NotificationBannerColor } from "../../../components/NotificationBanner/NotificationBanner";
3
+ interface ConfirmationDialogTexts {
4
+ /**
5
+ * You can also use the `children` prop for this.
6
+ */
7
+ message?: string | string[];
8
+ /**
9
+ * If this is `undefined`, the confirm button will not be shown.
10
+ */
11
+ confirmLabel?: string;
12
+ cancelLabel: string;
13
+ }
14
+ export interface ConfirmationDialogChoice<T extends string = string> {
15
+ text: string;
16
+ value: T;
17
+ description?: string;
18
+ displaysInfo?: {
19
+ level: NotificationBannerColor;
20
+ text: string;
21
+ };
22
+ }
23
+ export interface ConfirmationDialogProps {
24
+ children?: React.ReactNode;
25
+ /**
26
+ * Defaults to "dialog-small". These are a subset
27
+ * of the sizes of the BaseModal component.
28
+ */
29
+ size?: "dialog-small" | "dialog-medium";
30
+ texts: ConfirmationDialogTexts;
31
+ isOpen: boolean;
32
+ onCancel: () => void;
33
+ onConfirm?: (choice?: ConfirmationDialogChoice) => void;
34
+ isProcessing?: boolean;
35
+ withTitle?: {
36
+ title: string;
37
+ icon?: React.FC<IconProps> | IconKey;
38
+ };
39
+ choices?: {
40
+ defaultChoice?: ConfirmationDialogChoice["value"];
41
+ onChoiceChange: (choice: ConfirmationDialogChoice) => void;
42
+ options: {
43
+ 0: ConfirmationDialogChoice;
44
+ 1: ConfirmationDialogChoice;
45
+ } & ConfirmationDialogChoice[];
46
+ };
47
+ dataTestId?: string;
48
+ }
49
+ export interface ConfirmationDialogTitleProps {
50
+ title: ConfirmationDialogProps["withTitle"];
51
+ }
52
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { FC } from "react";
2
+ import { type FlexContainerProps } from "./types/FlexContainerProps.type";
3
+ /**
4
+ * Container to be used for layouting instead of divs around the project.
5
+ * The spacing here has been coded according to our guidelines.
6
+ */
7
+ export declare const FlexColumn: FC<FlexContainerProps>;
@@ -0,0 +1,9 @@
1
+ import type { FC } from "react";
2
+ import { type FlexContainerBaseProps } from "./types/FlexContainerProps.type";
3
+ /**
4
+ * Container to be used for layouting instead of divs around the project.
5
+ * The spacing here has been coded according to our guidelines.
6
+ */
7
+ export declare const FlexContainer: FC<FlexContainerBaseProps & {
8
+ type: "column" | "row";
9
+ }>;
@@ -0,0 +1,7 @@
1
+ import type { FC } from "react";
2
+ import { type FlexContainerProps } from "./types/FlexContainerProps.type";
3
+ /**
4
+ * Container to be used for layouting instead of divs around the project.
5
+ * The spacing here has been coded according to our guidelines.
6
+ */
7
+ export declare const FlexRow: FC<FlexContainerProps>;
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from "react";
2
+ type Spacing = "tiny" | "none" | "small" | "medium" | "large";
3
+ type FlexContainerBase = {
4
+ alignItems?: "center" | "start" | "end";
5
+ justifyContent?: "center" | "start" | "end" | "between";
6
+ position?: "static" | "fixed" | "absolute" | "relative" | "sticky";
7
+ verticalSpacing?: Spacing;
8
+ horizontalSpacing?: Spacing;
9
+ /**
10
+ * Applies the default padding (`"ui:p-4"`) inside the container.
11
+ */
12
+ hasPadding?: boolean;
13
+ backgroundColor?: string;
14
+ /**
15
+ * If `true`, will make the flexbox full width and not size itui:relative to its content.
16
+ * @default true
17
+ */
18
+ stretch?: boolean;
19
+ };
20
+ export type FlexContainerBaseProps = FlexContainerBase & {
21
+ children: ReactNode;
22
+ };
23
+ export type FlexContainerProps = Omit<FlexContainerBaseProps, "verticalSpacing" | "horizontalSpacing"> & {
24
+ spacing?: Spacing;
25
+ };
26
+ export {};
@@ -0,0 +1,72 @@
1
+ import { LOCALE_MAP } from "../../system/Locale";
2
+ import "react-datepicker/dist/react-datepicker.min.css";
3
+ import "./DatePicker.scss";
4
+ /**
5
+ * These are the props that are part of the `react-datepicker` library, rather than our own component.
6
+ * When we upgrade `react-datepicker` to v7, we should be able to remove these since that version
7
+ * introduces TypeScript support.
8
+ */
9
+ type ReactDatePickerProps = {
10
+ /**
11
+ * Limits the choices in the calendar to the dates supplied in this list
12
+ */
13
+ includeDates?: Date[];
14
+ openToDate?: Date;
15
+ placeholderText?: string;
16
+ portalId?: string;
17
+ /**
18
+ * @default undefined
19
+ */
20
+ zIndex?: 10 | 20 | 30 | 40 | 50;
21
+ /**
22
+ * @default 30
23
+ */
24
+ popperZIndex?: 10 | 20 | 30 | 40 | 50;
25
+ };
26
+ export type DatePickerProps = {
27
+ /**
28
+ * @deprecated please use the LocaleContext instead
29
+ *
30
+ * The locale determines the language and formatting of the dates
31
+ * shown in this component. E.g. for "nl-NL" the date will be
32
+ * shown as "dd-mm-yyyy", while for "en-GB" it shows as "dd/mm/yyyy".
33
+ *
34
+ */
35
+ locale?: keyof typeof LOCALE_MAP;
36
+ className?: string;
37
+ selected?: Date;
38
+ hasCloseButton?: boolean;
39
+ closeButtonText?: string;
40
+ onChange?: (date: Date | null) => void;
41
+ /**
42
+ * @default true
43
+ */
44
+ showMonthDropdown?: boolean;
45
+ /**
46
+ * @default true
47
+ */
48
+ showYearDropdown?: boolean;
49
+ minDate?: Date;
50
+ maxDate?: Date;
51
+ isDisabled?: boolean;
52
+ /**
53
+ * When set to `true`, if e.g. 10 January 2023 is selected and the user
54
+ * changes to a different month or year, the 10th will still be selected.
55
+ * When set to `false`, the date that the user has selected will not change
56
+ * until they select a new date.
57
+ *
58
+ * @default true
59
+ */
60
+ adjustDateOnChange?: boolean;
61
+ /**
62
+ * @default false
63
+ */
64
+ formatDateWithTime?: boolean;
65
+ shouldCloseOnSelect?: boolean;
66
+ /**
67
+ * @default false
68
+ */
69
+ allowSameDay?: boolean;
70
+ } & ReactDatePickerProps;
71
+ export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
72
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { type DatePickerProps } from "./DatePicker";
3
+ type Props = DatePickerProps & {
4
+ label?: string;
5
+ helperText?: React.ReactNode;
6
+ errorText?: React.ReactNode;
7
+ };
8
+ export declare const LabeledDatePicker: React.FC<Props>;
9
+ export {};