@luscii-healthtech/web-ui 0.0.0-alpha.caf5372 → 0.0.0-alpha.ccdf511

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 (291) hide show
  1. package/README.md +78 -74
  2. package/dist/components/Accordion/Accordion.d.ts +15 -11
  3. package/dist/components/Accordion/AccordionItem.d.ts +17 -10
  4. package/dist/components/AccordionList/AccordionList.d.ts +45 -5
  5. package/dist/components/AccordionList/subcomponents/AccordionListActions.d.ts +18 -0
  6. package/dist/components/Avatar/Avatar.d.ts +23 -0
  7. package/dist/components/Badge/Badge.d.ts +7 -5
  8. package/dist/components/BaseList/BaseList.d.ts +7 -13
  9. package/dist/components/BaseList/BaseList.types.d.ts +55 -55
  10. package/dist/components/BaseList/BaseListEmptyState.d.ts +7 -9
  11. package/dist/components/BaseList/BaseListHeader.d.ts +4 -11
  12. package/dist/components/BaseList/BaseListIcon.d.ts +5 -7
  13. package/dist/components/BaseList/BaseListItem.d.ts +4 -3
  14. package/dist/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -14
  15. package/dist/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -2
  16. package/dist/components/BaseList/DraggableBaseList/index.d.ts +2 -2
  17. package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +2 -4
  18. package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +8 -9
  19. package/dist/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -3
  20. package/dist/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -7
  21. package/dist/components/BaseList/SortableBaseList/index.d.ts +2 -2
  22. package/dist/components/BaseList/index.d.ts +6 -5
  23. package/dist/components/BaseList/utils.d.ts +10 -18
  24. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +4 -12
  25. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -8
  26. package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +14 -1
  27. package/dist/components/Breadcrumbs/index.d.ts +2 -1
  28. package/dist/components/Button/Button.d.ts +9 -7
  29. package/dist/components/Button/Button.types.d.ts +32 -11
  30. package/dist/components/Button/ButtonIcon.d.ts +7 -5
  31. package/dist/components/ButtonV2/ButtonProps.type.d.ts +54 -0
  32. package/dist/components/ButtonV2/ButtonV2.d.ts +3 -2
  33. package/dist/components/ButtonV2/PrimaryButton.d.ts +3 -2
  34. package/dist/components/ButtonV2/SecondaryButton.d.ts +3 -2
  35. package/dist/components/ButtonV2/TertiaryButton.d.ts +3 -2
  36. package/dist/components/Card/Actions.d.ts +2 -0
  37. package/dist/components/Card/Card.d.ts +57 -9
  38. package/dist/components/Card/Padding.d.ts +6 -0
  39. package/dist/components/Card/Section.d.ts +6 -0
  40. package/dist/components/Card/TopBar.d.ts +9 -0
  41. package/dist/components/Carousel/Carousel.d.ts +9 -9
  42. package/dist/components/Carousel/GliderContainer.d.ts +7 -5
  43. package/dist/components/CenteredHero/CenteredHero.d.ts +14 -12
  44. package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +30 -11
  45. package/dist/components/Checkbox/Checkbox.d.ts +64 -4
  46. package/dist/components/CheckboxList/CheckboxGroup.d.ts +3 -12
  47. package/dist/components/CheckboxList/CheckboxList.d.ts +4 -12
  48. package/dist/components/CheckboxList/CheckboxList.types.d.ts +74 -1
  49. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +3 -2
  50. package/dist/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +7 -4
  51. package/dist/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -4
  52. package/dist/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -5
  53. package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +41 -41
  54. package/dist/components/Container/FlexColumn.d.ts +7 -15
  55. package/dist/components/Container/FlexContainer.d.ts +9 -4
  56. package/dist/components/Container/FlexRow.d.ts +7 -2
  57. package/dist/components/Container/types/FlexContainerProps.type.d.ts +26 -26
  58. package/dist/components/Divider/Divider.d.ts +17 -4
  59. package/dist/components/DragHandle/DragHandle.d.ts +7 -3
  60. package/dist/components/DragHandle/DragHandle.types.d.ts +6 -6
  61. package/dist/components/DragHandle/index.d.ts +2 -1
  62. package/dist/components/Dropzone/Dropzone.d.ts +6 -8
  63. package/dist/components/Dropzone/Dropzone.types.d.ts +33 -33
  64. package/dist/components/Dropzone/index.d.ts +2 -1
  65. package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +14 -10
  66. package/dist/components/FilterBar/ActiveFilters.d.ts +9 -0
  67. package/dist/components/FilterBar/FilterBar.d.ts +96 -0
  68. package/dist/components/FilterBar/FilterBar.utils.d.ts +32 -0
  69. package/dist/components/FilterBar/FilterBarProps.type.d.ts +86 -0
  70. package/dist/components/FilterBar/FiltersMenus.d.ts +8 -0
  71. package/dist/components/FilterBar/SortMenu.d.ts +9 -0
  72. package/dist/components/FilterBar/index.d.ts +2 -0
  73. package/dist/components/Form/Form.d.ts +30 -15
  74. package/dist/components/Form/FormFieldCheckbox.d.ts +9 -2
  75. package/dist/components/Form/FormFieldCheckboxList.d.ts +9 -15
  76. package/dist/components/Form/FormFieldErrorMessages.d.ts +8 -4
  77. package/dist/components/Form/FormFieldLabeler.d.ts +8 -12
  78. package/dist/components/Form/FormImagePicker.d.ts +9 -2
  79. package/dist/components/Form/FormInput.d.ts +14 -2
  80. package/dist/components/Form/FormRadioGroup.d.ts +13 -2
  81. package/dist/components/Form/FormSelect.d.ts +10 -2
  82. package/dist/components/Form/FormTextarea.d.ts +14 -2
  83. package/dist/components/Form/form.transformer.d.ts +3 -1
  84. package/dist/components/Form/form.types.d.ts +92 -91
  85. package/dist/components/Icon/Icon.d.ts +17 -3
  86. package/dist/components/Icon/index.d.ts +1 -1
  87. package/dist/components/Icons/BellIcon.d.ts +4 -3
  88. package/dist/components/Icons/BluetoothIcon.d.ts +4 -3
  89. package/dist/components/Icons/BrushIcon.d.ts +4 -0
  90. package/dist/components/Icons/CalendarDayIcon.d.ts +4 -0
  91. package/dist/components/Icons/CalendarMonthIcon.d.ts +4 -0
  92. package/dist/components/Icons/CalendarRepeatIcon.d.ts +4 -0
  93. package/dist/components/Icons/ChartBarsIcon.d.ts +4 -0
  94. package/dist/components/Icons/ChartLineAndBarsIcon.d.ts +4 -0
  95. package/dist/components/Icons/ChatBubbleIcon.d.ts +4 -0
  96. package/dist/components/Icons/ChatBubbleWithTextIcon.d.ts +4 -0
  97. package/dist/components/Icons/CheckIcon.d.ts +4 -3
  98. package/dist/components/Icons/ChevronDoubleIcon.d.ts +4 -3
  99. package/dist/components/Icons/ChevronDownIcon.d.ts +4 -3
  100. package/dist/components/Icons/ChevronLeftIcon.d.ts +4 -0
  101. package/dist/components/Icons/ChevronRightIcon.d.ts +4 -3
  102. package/dist/components/Icons/ClockIcon.d.ts +4 -0
  103. package/dist/components/Icons/CogwheelIcon.d.ts +4 -0
  104. package/dist/components/Icons/CopyToClipboardIcon.d.ts +4 -0
  105. package/dist/components/Icons/CrossIcon.d.ts +4 -3
  106. package/dist/components/Icons/CrossInCircleIcon.d.ts +4 -0
  107. package/dist/components/Icons/CrossInFilledCircleIcon.d.ts +4 -0
  108. package/dist/components/Icons/DatabaseIcon.d.ts +4 -0
  109. package/dist/components/Icons/DragIndicatorIcon.d.ts +4 -0
  110. package/dist/components/Icons/EarthIcon.d.ts +4 -0
  111. package/dist/components/Icons/EmailIcon.d.ts +4 -0
  112. package/dist/components/Icons/EmptyIcon.d.ts +4 -3
  113. package/dist/components/Icons/ExclamationMarkIcon.d.ts +4 -3
  114. package/dist/components/Icons/ExportIcon.d.ts +4 -0
  115. package/dist/components/Icons/EyeClosedIcon.d.ts +4 -0
  116. package/dist/components/Icons/EyeIconSlashed.d.ts +4 -0
  117. package/dist/components/Icons/EyeOpenIcon.d.ts +4 -0
  118. package/dist/components/Icons/FilterIcon.d.ts +4 -0
  119. package/dist/components/Icons/FireIcon.d.ts +4 -0
  120. package/dist/components/Icons/FirstAidKitIcon.d.ts +4 -0
  121. package/dist/components/Icons/FlagIcon.d.ts +4 -0
  122. package/dist/components/Icons/ForwardIcon.d.ts +4 -0
  123. package/dist/components/Icons/GroupIcon.d.ts +4 -3
  124. package/dist/components/Icons/GroupOfThreeIcon.d.ts +4 -0
  125. package/dist/components/Icons/HamburgerIcon.d.ts +4 -3
  126. package/dist/components/Icons/HandshakeIcon.d.ts +4 -0
  127. package/dist/components/Icons/HeartIcon.d.ts +4 -3
  128. package/dist/components/Icons/HomeIcon.d.ts +4 -0
  129. package/dist/components/Icons/ImageIcon.d.ts +4 -3
  130. package/dist/components/Icons/InfoIcon.d.ts +4 -3
  131. package/dist/components/Icons/LifebuoyIcon.d.ts +4 -0
  132. package/dist/components/Icons/LightBulbIcon.d.ts +4 -3
  133. package/dist/components/Icons/LinkIcon.d.ts +4 -3
  134. package/dist/components/Icons/LockIcon.d.ts +4 -3
  135. package/dist/components/Icons/LogInIcon.d.ts +4 -0
  136. package/dist/components/Icons/LogOutIcon.d.ts +4 -0
  137. package/dist/components/Icons/MessageWithArrowIcon.d.ts +4 -0
  138. package/dist/components/Icons/MoreIcon.d.ts +4 -0
  139. package/dist/components/Icons/MouseIcon.d.ts +4 -3
  140. package/dist/components/Icons/NoteIcon.d.ts +4 -0
  141. package/dist/components/Icons/PageViewIcon.d.ts +4 -0
  142. package/dist/components/Icons/PatientIcon.d.ts +4 -0
  143. package/dist/components/Icons/PencilIcon.d.ts +4 -0
  144. package/dist/components/Icons/PhoneIcon.d.ts +4 -0
  145. package/dist/components/Icons/PieChartIcon.d.ts +4 -0
  146. package/dist/components/Icons/PinIcon.d.ts +4 -3
  147. package/dist/components/Icons/PlusIcon.d.ts +4 -0
  148. package/dist/components/Icons/PrinterIcon.d.ts +4 -0
  149. package/dist/components/Icons/RobotIcon.d.ts +4 -0
  150. package/dist/components/Icons/RocketIcon.d.ts +4 -0
  151. package/dist/components/Icons/SearchIcon.d.ts +4 -3
  152. package/dist/components/Icons/ShareIcon.d.ts +4 -0
  153. package/dist/components/Icons/SmallCircleIcon.d.ts +4 -3
  154. package/dist/components/Icons/SmallDiamondIcon.d.ts +4 -3
  155. package/dist/components/Icons/SmallSquareIcon.d.ts +4 -3
  156. package/dist/components/Icons/StarIcon.d.ts +4 -3
  157. package/dist/components/Icons/TrashBinIcon.d.ts +4 -0
  158. package/dist/components/Icons/TreeIcon.d.ts +4 -0
  159. package/dist/components/Icons/iconWrapper/iconWrapper.d.ts +4 -3
  160. package/dist/components/Icons/iconWrapper/index.d.ts +1 -1
  161. package/dist/components/Icons/index.d.ts +248 -47
  162. package/dist/components/Icons/special-icons/ChartLineColoredIcon.d.ts +4 -0
  163. package/dist/components/Icons/special-icons/GearColoredIcon.d.ts +4 -0
  164. package/dist/components/Icons/special-icons/GroupColoredIcon.d.ts +4 -0
  165. package/dist/components/Icons/special-icons/StatusColoredIcon.d.ts +4 -0
  166. package/dist/components/Icons/special-icons/index.d.ts +4 -0
  167. package/dist/components/Icons/types/IconProps.type.d.ts +8 -8
  168. package/dist/components/Image/Image.d.ts +10 -5
  169. package/dist/components/InfoField/InfoField.d.ts +28 -9
  170. package/dist/components/Input/Input.d.ts +56 -10
  171. package/dist/components/Input/SearchInput.d.ts +24 -2
  172. package/dist/components/Link/Link.d.ts +19 -0
  173. package/dist/components/List/List.d.ts +6 -5
  174. package/dist/components/List/List.types.d.ts +19 -19
  175. package/dist/components/List/ListItem.d.ts +4 -3
  176. package/dist/components/List/index.d.ts +5 -3
  177. package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +12 -4
  178. package/dist/components/MediaPicker/ImageCategory.d.ts +14 -0
  179. package/dist/components/MediaPicker/MediaPicker.d.ts +91 -0
  180. package/dist/components/Modal/FullPageModal.d.ts +41 -29
  181. package/dist/components/Modal/FullPageModalHeader.d.ts +13 -7
  182. package/dist/components/Modal/Modal.d.ts +11 -2
  183. package/dist/components/Modal/ModalBase.d.ts +16 -5
  184. package/dist/components/Modal/ModalFooter.d.ts +12 -4
  185. package/dist/components/Modal/ModalHeader.d.ts +6 -4
  186. package/dist/components/Modal/subcomponents/FullPageModalActions.d.ts +18 -0
  187. package/dist/components/NavMenu/NavLayout.d.ts +35 -4
  188. package/dist/components/NavMenu/NavMenu.d.ts +16 -4
  189. package/dist/components/NavMenu/NavMenuContent.d.ts +3 -11
  190. package/dist/components/NavMenu/NavMenuFooter.d.ts +3 -8
  191. package/dist/components/NavMenu/NavMenuHeader.d.ts +3 -7
  192. package/dist/components/NavMenu/NavMenuItem.d.ts +3 -9
  193. package/dist/components/NavMenu/types/NavMenuFooterProps.type.d.ts +5 -5
  194. package/dist/components/NavMenu/types/NavMenuHeaderProps.type.d.ts +11 -5
  195. package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +11 -11
  196. package/dist/components/NotificationBanner/NotificationBanner.d.ts +41 -12
  197. package/dist/components/Page/CRUDPage.d.ts +4 -17
  198. package/dist/components/Page/CRUDPage.types.d.ts +36 -32
  199. package/dist/components/Page/index.d.ts +3 -2
  200. package/dist/components/PageHeader/PageHeader.d.ts +4 -17
  201. package/dist/components/PageHeader/PageHeader.types.d.ts +32 -28
  202. package/dist/components/PageHeader/index.d.ts +2 -1
  203. package/dist/components/PaginationMenu/PaginationMenu.d.ts +3 -4
  204. package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +37 -0
  205. package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +15 -4
  206. package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +3 -4
  207. package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +3 -4
  208. package/dist/components/PreviewPhone/PreviewPhone.d.ts +7 -11
  209. package/dist/components/Radio/RadioV2.d.ts +17 -3
  210. package/dist/components/RadioGroup/RadioGroupV2.d.ts +10 -2
  211. package/dist/components/Section/Section.d.ts +25 -4
  212. package/dist/components/Section/SectionItem.d.ts +9 -4
  213. package/dist/components/Section/SectionItemWithContent.d.ts +9 -3
  214. package/dist/components/Section/subcomponents/SectionActions.d.ts +21 -21
  215. package/dist/components/Select/Select.d.ts +46 -3
  216. package/dist/components/Select/SelectDropdownIndicator.d.ts +3 -2
  217. package/dist/components/Select/SelectLoadingIndicator.d.ts +3 -2
  218. package/dist/components/SettingsMenuButton/SettingsMenuButton.d.ts +19 -5
  219. package/dist/components/Spinner/Spinner.d.ts +6 -2
  220. package/dist/components/Steps/Step.d.ts +10 -9
  221. package/dist/components/Steps/Steps.d.ts +10 -9
  222. package/dist/components/Tabbar/Tabbar.d.ts +21 -13
  223. package/dist/components/Tabbar/TabbarItem.d.ts +16 -16
  224. package/dist/components/Table/Table.d.ts +16 -2
  225. package/dist/components/Table/Table.types.d.ts +42 -0
  226. package/dist/components/Table/Table.utils.d.ts +3 -2
  227. package/dist/components/Table/TableBody.d.ts +13 -4
  228. package/dist/components/Table/TableBodyRow.d.ts +10 -6
  229. package/dist/components/Table/TableBodyRowDataCell.d.ts +8 -4
  230. package/dist/components/Table/TableFooter.d.ts +8 -2
  231. package/dist/components/Table/TableHeader.d.ts +7 -4
  232. package/dist/components/Tag/Tag.d.ts +26 -12
  233. package/dist/components/Tag/TagGroup.d.ts +23 -9
  234. package/dist/components/Text/Text.d.ts +115 -24
  235. package/dist/components/TextEditor/TextEditor.d.ts +53 -0
  236. package/dist/components/TextLink/TextLink.d.ts +14 -8
  237. package/dist/components/Textarea/Textarea.d.ts +33 -3
  238. package/dist/components/Timeline/Timeline.d.ts +14 -12
  239. package/dist/components/Timeline/TimelineHeader.d.ts +10 -10
  240. package/dist/components/Timeline/TimelineStep.d.ts +10 -2
  241. package/dist/components/Title/PageTitle.d.ts +6 -0
  242. package/dist/components/Title/Title.d.ts +31 -8
  243. package/dist/components/Toaster/Toaster.d.ts +17 -19
  244. package/dist/components/Toaster/toast-elements-getter.d.ts +22 -9
  245. package/dist/components/Toaster/toast-progress-animator.d.ts +12 -1
  246. package/dist/components/Toaster/toast.d.ts +12 -5
  247. package/dist/components/UnorderedList/UnorderedList.d.ts +61 -0
  248. package/dist/components/VerticalMenu/VerticalMenu.d.ts +86 -0
  249. package/dist/components/ViewItem/ViewItem.d.ts +16 -3
  250. package/dist/components/WeekdaysPicker/WeekdaysPicker.d.ts +42 -0
  251. package/dist/index.d.ts +89 -78
  252. package/dist/index.development.js +6168 -0
  253. package/dist/index.development.js.map +1 -0
  254. package/dist/index.js +1 -1356
  255. package/dist/index.js.map +1 -1
  256. package/dist/types/general.types.d.ts +8 -8
  257. package/dist/utils/string.utils.d.ts +7 -1
  258. package/dist/web-ui-tailwind.css +1306 -525
  259. package/dist/web-ui.esm.js +1 -1356
  260. package/dist/web-ui.esm.js.map +1 -1
  261. package/package.json +60 -55
  262. package/dist/components/CheckboxList/CheckboxListItem.d.ts +0 -13
  263. package/dist/components/Icons/AddIcon.d.ts +0 -3
  264. package/dist/components/Icons/AlertsIcon.d.ts +0 -3
  265. package/dist/components/Icons/ChartIcon.d.ts +0 -3
  266. package/dist/components/Icons/ChartLineColoredIcon.d.ts +0 -3
  267. package/dist/components/Icons/ChatBoxIcon.d.ts +0 -3
  268. package/dist/components/Icons/DeleteIcon.d.ts +0 -3
  269. package/dist/components/Icons/DownArrowIcon.d.ts +0 -3
  270. package/dist/components/Icons/DragIcon.d.ts +0 -3
  271. package/dist/components/Icons/EditIcon.d.ts +0 -3
  272. package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +0 -3
  273. package/dist/components/Icons/EyeIcon.d.ts +0 -3
  274. package/dist/components/Icons/GearColoredIcon.d.ts +0 -3
  275. package/dist/components/Icons/GearIcon.d.ts +0 -3
  276. package/dist/components/Icons/GroupColoredIcon.d.ts +0 -3
  277. package/dist/components/Icons/LeftArrowIcon.d.ts +0 -3
  278. package/dist/components/Icons/MessagesIcon.d.ts +0 -3
  279. package/dist/components/Icons/NotesIcon.d.ts +0 -3
  280. package/dist/components/Icons/PrintIcon.d.ts +0 -3
  281. package/dist/components/Icons/RightArrowIcon.d.ts +0 -3
  282. package/dist/components/Icons/SearchCancelIcon.d.ts +0 -3
  283. package/dist/components/Icons/SpaceRocketIcon.d.ts +0 -3
  284. package/dist/components/Icons/StatusColoredIcon.d.ts +0 -3
  285. package/dist/components/Icons/WarningIcon.d.ts +0 -3
  286. package/dist/components/Icons/templates/component.d.ts +0 -3
  287. package/dist/components/Icons/templates/index.d.ts +0 -2
  288. package/dist/components/ImagePicker/ImageCategory.d.ts +0 -4
  289. package/dist/components/ImagePicker/ImagePicker.d.ts +0 -17
  290. package/dist/components/TabLinks/TabLinks.d.ts +0 -10
  291. package/dist/components/Tag/Tag.utils.d.ts +0 -1
package/README.md CHANGED
@@ -1,109 +1,113 @@
1
- # web-ui
1
+ # WebUI
2
2
 
3
- The web-ui repository contains the web UI components for Luscii's front end projects. It is published to NPM for inclusion into our projects. It also uses storybook and is published to chromatic for easy review of changes.
3
+ The `web-ui` repository contains the UI components for Luscii's frontend projects. It is published to NPM for usage into our projects. It uses Storybook and is published to Chromatic for easy review and tracking of visual changes.
4
4
 
5
- ## Running locally
5
+ ## Table of contents
6
6
 
7
- If you want to run storybook locally you can use
7
+ - 🚀 [Getting started](#getting-started)
8
+ - 📖 [Fonts](#fonts)
9
+ - 📦 [How to use](#how-to-use)
10
+ - 🤝 [Contributing](#contributing)
8
11
 
9
- ```bash
10
- yarn install
11
- yarn storybook
12
- ```
13
-
14
- ## Testing your production build
12
+ ## Getting started
15
13
 
16
- Assuming the following setup:
14
+ To use WebUI, you need to add it as a dependency to your project:
17
15
 
18
- - The `web-ui` and `cVitals-Web` repositories are siblings are in the same folder
19
- - You have ran `yarn install` on `cVitals-Web`
20
- - You have ran `yarn build` on `web-ui`
21
-
22
- Run the script below in your terminal, _in the parent folder of the repositories_.
23
-
24
- ```
25
- cp -a web-ui/dist/. cVitals-Web/node_modules/@luscii-healthtech/web-ui/dist
16
+ ```bash
17
+ yarn add @luscii-healthtech/web-ui
26
18
  ```
27
19
 
28
- Or use the shortcut:
20
+ Then you can use components like this:
29
21
 
30
- ```
31
- yarn test-copy-build
32
- ```
33
-
34
- When you run cVitals again, it should contain your latest updates in the component library. Use this to make sure your changes are solid before merging a pull request.
35
-
36
- ## Contributing
37
-
38
- Make sure you understand our design system and follow its guidelines. They are document in storybook. We value consistency, simplicity and usability highly. Don't mess it up.
39
-
40
- If you want to add components, do so in
22
+ ```tsx
23
+ import { Text } from "@luscii-healthtech/web-ui";
41
24
 
25
+ function MyComponent() {
26
+ return <Text>Some beautiful text from WebUI!</Text>;
27
+ }
42
28
  ```
43
- /src/components
44
- ```
45
-
46
- Please stay vigilant when adding components that we implement them consistently in our projects and that it is clear when and where they have to be used. We want to avoid a lot of components that are similar.
47
29
 
48
- When you create new components, you must add them to storybook as well. Stories go in
49
-
50
- ```
51
- /stories
30
+ ### Fonts
31
+
32
+ WebUI uses the Avenir Next LT Pro font family for some headings. If you want to use these, you need to make them available in your project. You can do this by declaring the following `@font-face` rules in your CSS:
33
+
34
+ ```css
35
+ @font-face {
36
+ font-family: "AvenirNextLTPro-Regular";
37
+ src:
38
+ url("./<regular-font-file>.eot") format("embedded-opentype"),
39
+ url("./<regular-font-file>.woff2") format("woff2"),
40
+ url("./<regular-font-file>.woff") format("woff"),
41
+ url("./<regular-font-file>.ttf") format("truetype");
42
+ }
43
+
44
+ @font-face {
45
+ font-family: "AvenirNextLTPro-Bold";
46
+ src:
47
+ url("./<bold-font-file>.eot") format("embedded-opentype"),
48
+ url("./<bold-font-file>.woff2") format("woff2"),
49
+ url("./<bold-font-file>.woff") format("woff"),
50
+ url("./<bold-font-file>.ttf") format("truetype");
51
+ }
52
52
  ```
53
53
 
54
- ### Adding icons
54
+ The `font-family` property value is important, as this is what WebUI is referencing to use the font. The `src` property values should point to the font files you want to use.
55
55
 
56
- Add new icons by:
56
+ If you don't declare these `@font-face` rules, the font will not be available and the headings will gracefully fall back to next available font in your application.
57
57
 
58
- - Add the svg file(s) in `src/components/Icons/icons`
59
- - Run `yarn icons`
58
+ ## How to use
60
59
 
61
- The icons are optimized by SVGO and transformed into React components by [SVGR](https://react-svgr.com) which are placed in `src/components/Icons`.
60
+ The primary goal of WebUI is to make frontend development faster. It does this by providing a set of commonly used components that can be composed together to build user interfaces.
61
+ WebUI aims to have every component well documented, both in the code and in Storybook. You can find all available components and documentation on how to
62
+ use them at [design.luscii.com](https://design.luscii.com/).
62
63
 
63
- ## CI setup
64
+ ### Example scenario
64
65
 
65
- #### Branching
66
+ Say you're tasked with building a UI that contains a card. This card has a title, a subtitle, some body text and a button. You could build this UI by writing the following code:
66
67
 
67
- The `main` branch is our default branch. When you contribute, branch from there and name your branch
68
+ ```tsx
69
+ import { Card, Text, Button } from "@luscii-healthtech/web-ui";
68
70
 
71
+ function MyComponent() {
72
+ return (
73
+ <div className="my-layout">
74
+ <Card>
75
+ <Card.Title>Heart program</Card.Title>
76
+ <Card.Subtitle>79 participants</Card.Subtitle>
77
+ <Card.Text>Some description of how great this program is.</Card.Text>
78
+ <Card.Button>View program</Card.Button>
79
+ </Card>
80
+ </div>
81
+ );
82
+ }
69
83
  ```
70
- //Branch names convention (enforced)
71
84
 
72
- major/* //for a new design system or changes that effect our foundations (typography, color)
73
- minor/* //for new components and stories
74
- patch/* //for small improvements to existing components, stories
75
- bug/* //for bugs, fixes
76
- ```
85
+ Often times WebUI will provide a component that is a composition of other components. In this case, the `Card` component is a composition of `Card.Title`, `Card.Subtitle`, `Card.Text` and `Card.Button`. This allows you to build UIs faster, as you don't have to think about where to get a certain component. You can just use `Card` and its subcomponents and everything will be styled correctly.
77
86
 
78
- We have configured at lot of magic for your convenience.
87
+ ## Frequently asked questions
79
88
 
80
- #### On every PR
89
+ <details>
90
+ <summary>The feature I'm building needs a component from WebUI that doesn't exist.</summary>
81
91
 
82
- 1. the module build, lint and tests are checked.
83
- 2. The storybook build is published to chromatic.
84
- 3. Labels are added based on the branch name and PR size.
85
- 4. Branch names must follow the convention and are checked
92
+ Please get in touch with the design system circle by sending us a message in the [#design-system-circle channel](https://luscii.slack.com/archives/C03507ZKRCY). We'll discuss your needs and see what would be the best way to move forward.
86
93
 
87
- #### On merge to main
94
+ </details>
88
95
 
89
- 1. Draft a github release
90
- 2. Version bump of the package
91
- 3. Publish new package to NPM
96
+ <details>
97
+ <summary>The component I'm using doesn't have the props/subcomponents to build my feature.</summary>
92
98
 
93
- ---
99
+ In most cases you can build the UI you need by composing the components that are available. If for instance `Card.Text` doesn't exist, go "one level up" and find the component that is closest to what you need. In this case, you can use the `Text` component and configure it with the correct props to match the design.
94
100
 
95
- ## IE11
101
+ In case the component is missing a prop that you need, please get in touch with the design system circle by sending us a message in the [#design-system-circle channel](https://luscii.slack.com/archives/C03507ZKRCY). We'll discuss your needs and see what would be the best way to move forward.
96
102
 
97
- This package includes [dnd-kit](https://dndkit.com) as a peer dependency. The bundle of dnd-kit contains syntax which isn't compatible with IE11, therefore any application needing to support IE11 has to transpile dnd-kit.
103
+ </details>
98
104
 
99
- It should also at least include the following polyfills to make it work:
100
-
101
- - [core-js](https://www.npmjs.com/package/core-js)
102
- - [regenerator-runtime](https://www.npmjs.com/package/regenerator-runtime)
103
- - [smoothscroll-polyfill](https://www.npmjs.com/package/smoothscroll-polyfill)
105
+ ## Contributing
104
106
 
105
- Optional:
107
+ Great to have you help making WebUI better! We have a few guidelines and tips
108
+ to make sure we can keep the library consistent and easy to use. You can find
109
+ them in our [contributing guide](CONTRIBUTING.md).
106
110
 
107
- - [web-animations-js](https://www.npmjs.com/package/web-animations-js)
111
+ ### Reporting bugs
108
112
 
109
- This isn't necessary if the [drop animation is disabled](https://github.com/clauderic/dnd-kit/issues/705#issuecomment-1103056336). Check out [this ticket](https://github.com/clauderic/dnd-kit/issues/271) for more information on IE11.
113
+ If you find a bug, please report it by sending us a message in the [#design-system-circle channel](https://luscii.slack.com/archives/C03507ZKRCY). It helps us a lot knowing of anything that is not working as expected.
@@ -1,11 +1,15 @@
1
- import p from "react";
2
- declare const I: ({ dataTestId: a, isCollapsedByDefault: o, items: r, className: i }: {
3
- dataTestId: any;
4
- isCollapsedByDefault?: boolean | undefined;
5
- items: any;
6
- className: any;
7
- }) => p.DetailedReactHTMLElement<{
8
- "data-test-id": any;
9
- className: any;
10
- }, HTMLElement>;
11
- export default I;
1
+ import React from "react";
2
+ import { AccordionItemProps } from "./AccordionItem";
3
+ export interface AccordionProps {
4
+ dataTestId?: string;
5
+ items: AccordionItemProps[];
6
+ className?: string;
7
+ isCollapsedByDefault?: boolean;
8
+ /**
9
+ * A section at the bottom of the accordion that is
10
+ * always visible, even when the accordion is closed.
11
+ */
12
+ footer?: React.ReactNode;
13
+ }
14
+ declare const Accordion: React.FC<AccordionProps>;
15
+ export default Accordion;
@@ -1,10 +1,17 @@
1
- import e from "react";
2
- export declare const AccordionItem: ({ id: t, title: s, content: i, isCollapsedByDefault: l }: {
3
- id: any;
4
- title: any;
5
- content: any;
6
- isCollapsedByDefault?: boolean | undefined;
7
- }) => e.DetailedReactHTMLElement<{
8
- className: string;
9
- "data-test-id": any;
10
- }, HTMLElement>;
1
+ import React from "react";
2
+ export interface AccordionItemProps {
3
+ id: string | number;
4
+ title: React.ReactNode;
5
+ content: React.ReactNode;
6
+ className?: string;
7
+ isCollapsedByDefault?: boolean;
8
+ /**
9
+ * Called when the accordion item opens.
10
+ */
11
+ onOpened?: () => void;
12
+ /**
13
+ * Called when the accordion item closes.
14
+ */
15
+ onClosed?: () => void;
16
+ }
17
+ export declare const AccordionItem: React.FC<AccordionItemProps>;
@@ -1,5 +1,45 @@
1
- import n from "react";
2
- export declare const AccordionList: (z: any) => n.DetailedReactHTMLElement<{
3
- className: string;
4
- }, HTMLElement>;
5
- export default AccordionList;
1
+ import React from "react";
2
+ import { AccordionProps } from "../Accordion/Accordion";
3
+ import { DraggableListProps, ListItemProps, SortableListProps } from "../List/List.types";
4
+ import { AccordionItemProps } from "../Accordion/AccordionItem";
5
+ import { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
6
+ import { AccordionListActions } from "./subcomponents/AccordionListActions";
7
+ export interface AccordionListProps extends Omit<AccordionProps, "items"> {
8
+ localisations: {
9
+ title: string;
10
+ searchPlaceholder?: string;
11
+ emptyListText?: string;
12
+ };
13
+ accordionItems: AccordionItem[];
14
+ /**
15
+ * @deprecated
16
+ * Use the `actions` prop to render any button(s)
17
+ * or other component(s) automatically in the correct area.
18
+ */
19
+ buttonProps?: BaseButtonProps;
20
+ isSearchEnabled?: boolean;
21
+ isLoading?: boolean;
22
+ actions?: React.ReactNode;
23
+ }
24
+ export type AccordionListItemProps<T = ListItemProps> = Omit<AccordionItemProps, "title" | "content"> & {
25
+ listItems: T[];
26
+ draggableListType?: "default";
27
+ title: string;
28
+ };
29
+ export type DraggableAccordionListItemProps = Omit<AccordionItemProps, "title" | "content"> & {
30
+ draggableListType: "draggable";
31
+ listItems: DraggableListProps["items"];
32
+ title: string;
33
+ };
34
+ export type SortableAccordionListItemProps = Omit<AccordionItemProps, "title" | "content"> & {
35
+ draggableListType: "sortable";
36
+ draggableIdentifier: string;
37
+ listItems: SortableListProps["items"];
38
+ title: string;
39
+ };
40
+ export type AccordionItem = AccordionListItemProps | DraggableAccordionListItemProps | SortableAccordionListItemProps;
41
+ interface StaticComponents {
42
+ Actions: typeof AccordionListActions;
43
+ }
44
+ export declare const AccordionList: React.FC<AccordionListProps> & StaticComponents;
45
+ export default AccordionList;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ /**
3
+ * Use in the actions of an AccordionList. Spaces out the action
4
+ * components correctly in relation to the styling of the AccordionList component.
5
+ *
6
+ * @usage
7
+ * ```tsx
8
+ * <AccordionList
9
+ * actions={
10
+ * <AccordionList.Actions>
11
+ * <PrimaryButton />
12
+ * <SecondaryButton />
13
+ * </AccordionList.Actions>
14
+ * }
15
+ * />
16
+ * ```
17
+ */
18
+ export declare const AccordionListActions: React.FC<React.PropsWithChildren>;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ type AvatarSize = "large" | "medium" | "small";
3
+ type Props = {
4
+ initials: string;
5
+ src?: string;
6
+ /**
7
+ * Put the name of the person here, so less sighted
8
+ * users can know who the avatar belongs to.
9
+ *
10
+ * In case of rendering the default image or the
11
+ * initials, this will also be used as the `alt` text.
12
+ */
13
+ alt?: string;
14
+ size?: AvatarSize;
15
+ /**
16
+ * URL to an image to be used as the default image.
17
+ * If this is set, the image provided via `src` will never render.
18
+ */
19
+ defaultImage?: string;
20
+ className?: string;
21
+ };
22
+ export declare const Avatar: ({ size, src, alt, defaultImage, initials, className, }: Props) => React.JSX.Element;
23
+ export {};
@@ -1,5 +1,7 @@
1
- import s from "react";
2
- declare const o: (e: any) => s.DetailedReactHTMLElement<{
3
- className: string;
4
- }, HTMLElement>;
5
- export default o;
1
+ /// <reference types="react" />
2
+ interface BadgeProps {
3
+ badgeCount: number;
4
+ className?: string;
5
+ }
6
+ declare const Badge: (props: BadgeProps) => JSX.Element;
7
+ export default Badge;
@@ -1,13 +1,7 @@
1
- import o from "react";
2
- export declare const BaseList: o.ForwardRefExoticComponent<{
3
- dataTestId: any;
4
- title: any;
5
- headerButton: any;
6
- emptyStateMessage: any;
7
- isLoading: any;
8
- items: any;
9
- headerTransparent: any;
10
- itemComponent: any;
11
- footer: any;
12
- withBorder?: boolean | undefined;
13
- } & o.RefAttributes<unknown>>;
1
+ import React from "react";
2
+ import type { BaseListItemProps, BaseListProps } from "./BaseList.types";
3
+ declare const BaseListInner: <T extends BaseListItemProps>({ dataTestId, title, headerButton, emptyStateMessage, isLoading, items, headerTransparent, itemComponent, footer, withBorder, }: BaseListProps<T>, ref: React.ForwardedRef<HTMLUListElement>) => JSX.Element;
4
+ export declare const BaseList: <T extends BaseListItemProps>(props: BaseListProps<T> & {
5
+ ref?: React.ForwardedRef<HTMLUListElement> | undefined;
6
+ }) => ReturnType<typeof BaseListInner>;
7
+ export {};
@@ -1,55 +1,55 @@
1
- import React, { Ref, ReactNode } from "react";
2
- import { PrimaryButtonProps } from "../..";
3
- import { ButtonDefinition } from "../ButtonV2/ButtonProps.type";
4
- import { IconProps } from "../Icons/types/IconProps.type";
5
- import { TitleProps } from "../Title/Title";
6
- export type BaseListItemProps = {
7
- itemId: string | number;
8
- title: string;
9
- subtitle?: string;
10
- icon?: React.FunctionComponent<IconProps> | string;
11
- accessories?: JSX.Element[];
12
- onClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
13
- /** Same as onClick to be compatible with listItem */
14
- handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
15
- onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
16
- tooltipId?: string;
17
- isSelected?: boolean;
18
- roundTop?: boolean;
19
- roundBottom?: boolean;
20
- withBorder?: boolean;
21
- isDraggable?: boolean;
22
- dataTestId?: string;
23
- ref?: Ref<HTMLLIElement>;
24
- renderDragHandle?: () => ReactNode;
25
- htmlProps?: React.HTMLProps<HTMLLIElement>;
26
- };
27
- export type OnAssetLoadErrorPayload = Pick<BaseListItemProps, "itemId" | "subtitle" | "title" | "icon">;
28
- export interface BaseListProps<T extends BaseListItemProps = BaseListItemProps> {
29
- items: T[];
30
- title?: string | TitleProps;
31
- headerButton?: ButtonDefinition<PrimaryButtonProps>;
32
- headerTransparent?: boolean;
33
- itemComponent?: React.FC<T>;
34
- emptyStateMessage?: string;
35
- isLoading?: boolean;
36
- dataTestId?: string;
37
- footer?: ReactNode;
38
- withBorder?: boolean;
39
- ref?: Ref<HTMLUListElement>;
40
- }
41
- export type BaseListHeaderProps = {
42
- title?: string | TitleProps;
43
- button?: ButtonDefinition<PrimaryButtonProps>;
44
- transparent?: boolean;
45
- withBorder?: boolean;
46
- };
47
- export type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
48
- export type DraggableBaseListItemProps = BaseListItemProps & {
49
- draggableIdentifier: string;
50
- draggableData?: Record<string, unknown>;
51
- };
52
- export type SortableBaseListProps = DraggableBaseListProps & {
53
- draggableIdentifier: string;
54
- };
55
- export type SortableBaseListItemProps = DraggableBaseListItemProps;
1
+ import React, { Ref, ReactNode } from "react";
2
+ import { PrimaryButtonProps } from "../..";
3
+ import { ButtonDefinition } from "../ButtonV2/ButtonProps.type";
4
+ import { IconProps } from "../Icons/types/IconProps.type";
5
+ import { TitleProps } from "../Title/Title";
6
+ export type BaseListItemProps = {
7
+ itemId: string | number;
8
+ title: string;
9
+ subtitle?: string;
10
+ icon?: React.FunctionComponent<IconProps> | string;
11
+ accessories?: JSX.Element[];
12
+ onClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
13
+ /** Same as onClick to be compatible with listItem */
14
+ handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
15
+ onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
16
+ tooltipId?: string;
17
+ isSelected?: boolean;
18
+ roundTop?: boolean;
19
+ roundBottom?: boolean;
20
+ withBorder?: boolean;
21
+ isDraggable?: boolean;
22
+ dataTestId?: string;
23
+ ref?: Ref<HTMLLIElement>;
24
+ renderDragHandle?: () => ReactNode;
25
+ htmlProps?: React.HTMLProps<HTMLLIElement>;
26
+ };
27
+ export type OnAssetLoadErrorPayload = Pick<BaseListItemProps, "itemId" | "subtitle" | "title" | "icon">;
28
+ export interface BaseListProps<T extends BaseListItemProps = BaseListItemProps> {
29
+ items: T[];
30
+ title?: string | TitleProps;
31
+ headerButton?: ButtonDefinition<PrimaryButtonProps>;
32
+ headerTransparent?: boolean;
33
+ itemComponent?: React.FC<T>;
34
+ emptyStateMessage?: string;
35
+ isLoading?: boolean;
36
+ dataTestId?: string;
37
+ footer?: ReactNode;
38
+ withBorder?: boolean;
39
+ ref?: Ref<HTMLUListElement>;
40
+ }
41
+ export type BaseListHeaderProps = {
42
+ title?: string | TitleProps;
43
+ button?: ButtonDefinition<PrimaryButtonProps>;
44
+ transparent?: boolean;
45
+ withBorder?: boolean;
46
+ };
47
+ export type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
48
+ export type DraggableBaseListItemProps = BaseListItemProps & {
49
+ draggableIdentifier: string;
50
+ draggableData?: Record<string, unknown>;
51
+ };
52
+ export type SortableBaseListProps = DraggableBaseListProps & {
53
+ draggableIdentifier: string;
54
+ };
55
+ export type SortableBaseListItemProps = DraggableBaseListItemProps;
@@ -1,9 +1,7 @@
1
- import e from "react";
2
- export declare const BaseListEmptyState: ({ message: t, roundTop: o, withBorder: r }: {
3
- message: any;
4
- roundTop: any;
5
- withBorder: any;
6
- }) => e.DetailedReactHTMLElement<{
7
- className: string;
8
- }, HTMLElement>;
9
- export default BaseListEmptyState;
1
+ import React from "react";
2
+ export declare const BaseListEmptyState: React.FC<{
3
+ message: string;
4
+ roundTop?: boolean;
5
+ withBorder?: boolean;
6
+ }>;
7
+ export default BaseListEmptyState;
@@ -1,11 +1,4 @@
1
- import p from "react";
2
- export declare const BaseListHeader: ({ title: s, button: e, transparent: r, withBorder: o }: {
3
- title: any;
4
- button: any;
5
- transparent: any;
6
- withBorder: any;
7
- }) => p.DetailedReactHTMLElement<{
8
- "data-test-id": string;
9
- className: string;
10
- }, HTMLElement>;
11
- export default BaseListHeader;
1
+ import React from "react";
2
+ import type { BaseListHeaderProps } from "./BaseList.types";
3
+ export declare const BaseListHeader: React.FC<BaseListHeaderProps>;
4
+ export default BaseListHeader;
@@ -1,7 +1,5 @@
1
- import o from "react";
2
- export declare const BaseListIcon: ({ icon: t, onAssetLoadError: e }: {
3
- icon: any;
4
- onAssetLoadError: any;
5
- }) => o.FunctionComponentElement<{
6
- children?: o.ReactNode;
7
- }>;
1
+ import React from "react";
2
+ import { BaseListItemProps } from "./BaseList.types";
3
+ export declare const BaseListIcon: React.FC<Pick<BaseListItemProps, "icon"> & {
4
+ onAssetLoadError?: () => void;
5
+ }>;
@@ -1,3 +1,4 @@
1
- import s from "react";
2
- export declare const BaseListItem: s.ForwardRefExoticComponent<s.RefAttributes<unknown>>;
3
- export default BaseListItem;
1
+ import React from "react";
2
+ import type { BaseListItemProps } from "./BaseList.types";
3
+ export declare const BaseListItem: React.FC<BaseListItemProps>;
4
+ export default BaseListItem;
@@ -1,14 +1,4 @@
1
- import b from "react";
2
- export declare const DraggableBaseList: (r: any) => b.FunctionComponentElement<{
3
- dataTestId: any;
4
- title: any;
5
- headerButton: any;
6
- emptyStateMessage: any;
7
- isLoading: any;
8
- items: any;
9
- headerTransparent: any;
10
- itemComponent: any;
11
- footer: any;
12
- withBorder?: boolean | undefined;
13
- } & b.RefAttributes<unknown>>;
14
- export default DraggableBaseList;
1
+ import React from "react";
2
+ import type { DraggableBaseListProps } from "../BaseList.types";
3
+ export declare const DraggableBaseList: React.FC<DraggableBaseListProps>;
4
+ export default DraggableBaseList;
@@ -1,2 +1,3 @@
1
- import d from "react";
2
- export declare const DraggableBaseListItem: (r: any) => d.FunctionComponentElement<d.RefAttributes<unknown>>;
1
+ import React from "react";
2
+ import { DraggableBaseListItemProps } from "../BaseList.types";
3
+ export declare const DraggableBaseListItem: React.FC<DraggableBaseListItemProps>;
@@ -1,2 +1,2 @@
1
- export { DraggableBaseList } from "./DraggableBaseList";
2
- export { DraggableBaseListItem } from "./DraggableBaseListItem";
1
+ export { DraggableBaseList } from "./DraggableBaseList";
2
+ export { DraggableBaseListItem } from "./DraggableBaseListItem";
@@ -1,4 +1,2 @@
1
- import e from "react";
2
- export declare const ListItemSkeleton: () => e.DetailedReactHTMLElement<{
3
- className: string;
4
- }, HTMLElement>;
1
+ /// <reference types="react" />
2
+ export declare const ListItemSkeleton: () => JSX.Element;
@@ -1,9 +1,8 @@
1
- import e from "react";
2
- import "./ListSkeleton.scss";
3
- export declare const ListSkeleton: ({ items: t, dataTestId: s }: {
4
- items: any;
5
- dataTestId?: string | undefined;
6
- }) => e.DetailedReactHTMLElement<{
7
- "data-test-id": string;
8
- className: string;
9
- }, HTMLElement>;
1
+ /// <reference types="react" />
2
+ import "./ListSkeleton.scss";
3
+ type ListSkeletonProps = {
4
+ items: number;
5
+ dataTestId?: string;
6
+ };
7
+ export declare const ListSkeleton: ({ items, dataTestId, }: ListSkeletonProps) => JSX.Element;
8
+ export {};
@@ -1,3 +1,4 @@
1
- import f from "react";
2
- export declare const SortableBaseList: (o: any) => f.DetailedReactHTMLElement<f.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
3
- export default SortableBaseList;
1
+ import React from "react";
2
+ import type { SortableBaseListProps } from "../BaseList.types";
3
+ export declare const SortableBaseList: React.FC<SortableBaseListProps>;
4
+ export default SortableBaseList;
@@ -1,7 +1,3 @@
1
- import i from "react";
2
- export declare const SortableBaseListItem: (a: any) => i.FunctionComponentElement<i.RefAttributes<unknown>> | i.DetailedReactHTMLElement<{
3
- style: {
4
- transform: string | undefined;
5
- position: "relative";
6
- };
7
- }, HTMLElement>;
1
+ import React from "react";
2
+ import { SortableBaseListItemProps } from "../BaseList.types";
3
+ export declare const SortableBaseListItem: React.FC<SortableBaseListItemProps>;
@@ -1,2 +1,2 @@
1
- export { SortableBaseList } from "./SortableBaseList";
2
- export { SortableBaseListItem } from "./SortableBaseListItem";
1
+ export { SortableBaseList } from "./SortableBaseList";
2
+ export { SortableBaseListItem } from "./SortableBaseListItem";