@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.
- package/README.md +78 -74
- package/dist/components/Accordion/Accordion.d.ts +15 -11
- package/dist/components/Accordion/AccordionItem.d.ts +17 -10
- package/dist/components/AccordionList/AccordionList.d.ts +45 -5
- package/dist/components/AccordionList/subcomponents/AccordionListActions.d.ts +18 -0
- package/dist/components/Avatar/Avatar.d.ts +23 -0
- package/dist/components/Badge/Badge.d.ts +7 -5
- package/dist/components/BaseList/BaseList.d.ts +7 -13
- package/dist/components/BaseList/BaseList.types.d.ts +55 -55
- package/dist/components/BaseList/BaseListEmptyState.d.ts +7 -9
- package/dist/components/BaseList/BaseListHeader.d.ts +4 -11
- package/dist/components/BaseList/BaseListIcon.d.ts +5 -7
- package/dist/components/BaseList/BaseListItem.d.ts +4 -3
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -14
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -2
- package/dist/components/BaseList/DraggableBaseList/index.d.ts +2 -2
- package/dist/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +2 -4
- package/dist/components/BaseList/ListSkeleton/ListSkeleton.d.ts +8 -9
- package/dist/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -3
- package/dist/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -7
- package/dist/components/BaseList/SortableBaseList/index.d.ts +2 -2
- package/dist/components/BaseList/index.d.ts +6 -5
- package/dist/components/BaseList/utils.d.ts +10 -18
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +4 -12
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +14 -1
- package/dist/components/Breadcrumbs/index.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +9 -7
- package/dist/components/Button/Button.types.d.ts +32 -11
- package/dist/components/Button/ButtonIcon.d.ts +7 -5
- package/dist/components/ButtonV2/ButtonProps.type.d.ts +54 -0
- package/dist/components/ButtonV2/ButtonV2.d.ts +3 -2
- package/dist/components/ButtonV2/PrimaryButton.d.ts +3 -2
- package/dist/components/ButtonV2/SecondaryButton.d.ts +3 -2
- package/dist/components/ButtonV2/TertiaryButton.d.ts +3 -2
- package/dist/components/Card/Actions.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +57 -9
- package/dist/components/Card/Padding.d.ts +6 -0
- package/dist/components/Card/Section.d.ts +6 -0
- package/dist/components/Card/TopBar.d.ts +9 -0
- package/dist/components/Carousel/Carousel.d.ts +9 -9
- package/dist/components/Carousel/GliderContainer.d.ts +7 -5
- package/dist/components/CenteredHero/CenteredHero.d.ts +14 -12
- package/dist/components/CheckBoxListModal/CheckboxListModal.d.ts +30 -11
- package/dist/components/Checkbox/Checkbox.d.ts +64 -4
- package/dist/components/CheckboxList/CheckboxGroup.d.ts +3 -12
- package/dist/components/CheckboxList/CheckboxList.d.ts +4 -12
- package/dist/components/CheckboxList/CheckboxList.types.d.ts +74 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +3 -2
- package/dist/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +7 -4
- package/dist/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -4
- package/dist/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -5
- package/dist/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +41 -41
- package/dist/components/Container/FlexColumn.d.ts +7 -15
- package/dist/components/Container/FlexContainer.d.ts +9 -4
- package/dist/components/Container/FlexRow.d.ts +7 -2
- package/dist/components/Container/types/FlexContainerProps.type.d.ts +26 -26
- package/dist/components/Divider/Divider.d.ts +17 -4
- package/dist/components/DragHandle/DragHandle.d.ts +7 -3
- package/dist/components/DragHandle/DragHandle.types.d.ts +6 -6
- package/dist/components/DragHandle/index.d.ts +2 -1
- package/dist/components/Dropzone/Dropzone.d.ts +6 -8
- package/dist/components/Dropzone/Dropzone.types.d.ts +33 -33
- package/dist/components/Dropzone/index.d.ts +2 -1
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +14 -10
- package/dist/components/FilterBar/ActiveFilters.d.ts +9 -0
- package/dist/components/FilterBar/FilterBar.d.ts +96 -0
- package/dist/components/FilterBar/FilterBar.utils.d.ts +32 -0
- package/dist/components/FilterBar/FilterBarProps.type.d.ts +86 -0
- package/dist/components/FilterBar/FiltersMenus.d.ts +8 -0
- package/dist/components/FilterBar/SortMenu.d.ts +9 -0
- package/dist/components/FilterBar/index.d.ts +2 -0
- package/dist/components/Form/Form.d.ts +30 -15
- package/dist/components/Form/FormFieldCheckbox.d.ts +9 -2
- package/dist/components/Form/FormFieldCheckboxList.d.ts +9 -15
- package/dist/components/Form/FormFieldErrorMessages.d.ts +8 -4
- package/dist/components/Form/FormFieldLabeler.d.ts +8 -12
- package/dist/components/Form/FormImagePicker.d.ts +9 -2
- package/dist/components/Form/FormInput.d.ts +14 -2
- package/dist/components/Form/FormRadioGroup.d.ts +13 -2
- package/dist/components/Form/FormSelect.d.ts +10 -2
- package/dist/components/Form/FormTextarea.d.ts +14 -2
- package/dist/components/Form/form.transformer.d.ts +3 -1
- package/dist/components/Form/form.types.d.ts +92 -91
- package/dist/components/Icon/Icon.d.ts +17 -3
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icons/BellIcon.d.ts +4 -3
- package/dist/components/Icons/BluetoothIcon.d.ts +4 -3
- package/dist/components/Icons/BrushIcon.d.ts +4 -0
- package/dist/components/Icons/CalendarDayIcon.d.ts +4 -0
- package/dist/components/Icons/CalendarMonthIcon.d.ts +4 -0
- package/dist/components/Icons/CalendarRepeatIcon.d.ts +4 -0
- package/dist/components/Icons/ChartBarsIcon.d.ts +4 -0
- package/dist/components/Icons/ChartLineAndBarsIcon.d.ts +4 -0
- package/dist/components/Icons/ChatBubbleIcon.d.ts +4 -0
- package/dist/components/Icons/ChatBubbleWithTextIcon.d.ts +4 -0
- package/dist/components/Icons/CheckIcon.d.ts +4 -3
- package/dist/components/Icons/ChevronDoubleIcon.d.ts +4 -3
- package/dist/components/Icons/ChevronDownIcon.d.ts +4 -3
- package/dist/components/Icons/ChevronLeftIcon.d.ts +4 -0
- package/dist/components/Icons/ChevronRightIcon.d.ts +4 -3
- package/dist/components/Icons/ClockIcon.d.ts +4 -0
- package/dist/components/Icons/CogwheelIcon.d.ts +4 -0
- package/dist/components/Icons/CopyToClipboardIcon.d.ts +4 -0
- package/dist/components/Icons/CrossIcon.d.ts +4 -3
- package/dist/components/Icons/CrossInCircleIcon.d.ts +4 -0
- package/dist/components/Icons/CrossInFilledCircleIcon.d.ts +4 -0
- package/dist/components/Icons/DatabaseIcon.d.ts +4 -0
- package/dist/components/Icons/DragIndicatorIcon.d.ts +4 -0
- package/dist/components/Icons/EarthIcon.d.ts +4 -0
- package/dist/components/Icons/EmailIcon.d.ts +4 -0
- package/dist/components/Icons/EmptyIcon.d.ts +4 -3
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +4 -3
- package/dist/components/Icons/ExportIcon.d.ts +4 -0
- package/dist/components/Icons/EyeClosedIcon.d.ts +4 -0
- package/dist/components/Icons/EyeIconSlashed.d.ts +4 -0
- package/dist/components/Icons/EyeOpenIcon.d.ts +4 -0
- package/dist/components/Icons/FilterIcon.d.ts +4 -0
- package/dist/components/Icons/FireIcon.d.ts +4 -0
- package/dist/components/Icons/FirstAidKitIcon.d.ts +4 -0
- package/dist/components/Icons/FlagIcon.d.ts +4 -0
- package/dist/components/Icons/ForwardIcon.d.ts +4 -0
- package/dist/components/Icons/GroupIcon.d.ts +4 -3
- package/dist/components/Icons/GroupOfThreeIcon.d.ts +4 -0
- package/dist/components/Icons/HamburgerIcon.d.ts +4 -3
- package/dist/components/Icons/HandshakeIcon.d.ts +4 -0
- package/dist/components/Icons/HeartIcon.d.ts +4 -3
- package/dist/components/Icons/HomeIcon.d.ts +4 -0
- package/dist/components/Icons/ImageIcon.d.ts +4 -3
- package/dist/components/Icons/InfoIcon.d.ts +4 -3
- package/dist/components/Icons/LifebuoyIcon.d.ts +4 -0
- package/dist/components/Icons/LightBulbIcon.d.ts +4 -3
- package/dist/components/Icons/LinkIcon.d.ts +4 -3
- package/dist/components/Icons/LockIcon.d.ts +4 -3
- package/dist/components/Icons/LogInIcon.d.ts +4 -0
- package/dist/components/Icons/LogOutIcon.d.ts +4 -0
- package/dist/components/Icons/MessageWithArrowIcon.d.ts +4 -0
- package/dist/components/Icons/MoreIcon.d.ts +4 -0
- package/dist/components/Icons/MouseIcon.d.ts +4 -3
- package/dist/components/Icons/NoteIcon.d.ts +4 -0
- package/dist/components/Icons/PageViewIcon.d.ts +4 -0
- package/dist/components/Icons/PatientIcon.d.ts +4 -0
- package/dist/components/Icons/PencilIcon.d.ts +4 -0
- package/dist/components/Icons/PhoneIcon.d.ts +4 -0
- package/dist/components/Icons/PieChartIcon.d.ts +4 -0
- package/dist/components/Icons/PinIcon.d.ts +4 -3
- package/dist/components/Icons/PlusIcon.d.ts +4 -0
- package/dist/components/Icons/PrinterIcon.d.ts +4 -0
- package/dist/components/Icons/RobotIcon.d.ts +4 -0
- package/dist/components/Icons/RocketIcon.d.ts +4 -0
- package/dist/components/Icons/SearchIcon.d.ts +4 -3
- package/dist/components/Icons/ShareIcon.d.ts +4 -0
- package/dist/components/Icons/SmallCircleIcon.d.ts +4 -3
- package/dist/components/Icons/SmallDiamondIcon.d.ts +4 -3
- package/dist/components/Icons/SmallSquareIcon.d.ts +4 -3
- package/dist/components/Icons/StarIcon.d.ts +4 -3
- package/dist/components/Icons/TrashBinIcon.d.ts +4 -0
- package/dist/components/Icons/TreeIcon.d.ts +4 -0
- package/dist/components/Icons/iconWrapper/iconWrapper.d.ts +4 -3
- package/dist/components/Icons/iconWrapper/index.d.ts +1 -1
- package/dist/components/Icons/index.d.ts +248 -47
- package/dist/components/Icons/special-icons/ChartLineColoredIcon.d.ts +4 -0
- package/dist/components/Icons/special-icons/GearColoredIcon.d.ts +4 -0
- package/dist/components/Icons/special-icons/GroupColoredIcon.d.ts +4 -0
- package/dist/components/Icons/special-icons/StatusColoredIcon.d.ts +4 -0
- package/dist/components/Icons/special-icons/index.d.ts +4 -0
- package/dist/components/Icons/types/IconProps.type.d.ts +8 -8
- package/dist/components/Image/Image.d.ts +10 -5
- package/dist/components/InfoField/InfoField.d.ts +28 -9
- package/dist/components/Input/Input.d.ts +56 -10
- package/dist/components/Input/SearchInput.d.ts +24 -2
- package/dist/components/Link/Link.d.ts +19 -0
- package/dist/components/List/List.d.ts +6 -5
- package/dist/components/List/List.types.d.ts +19 -19
- package/dist/components/List/ListItem.d.ts +4 -3
- package/dist/components/List/index.d.ts +5 -3
- package/dist/components/LoadingIndicator/LoadingIndicator.d.ts +12 -4
- package/dist/components/MediaPicker/ImageCategory.d.ts +14 -0
- package/dist/components/MediaPicker/MediaPicker.d.ts +91 -0
- package/dist/components/Modal/FullPageModal.d.ts +41 -29
- package/dist/components/Modal/FullPageModalHeader.d.ts +13 -7
- package/dist/components/Modal/Modal.d.ts +11 -2
- package/dist/components/Modal/ModalBase.d.ts +16 -5
- package/dist/components/Modal/ModalFooter.d.ts +12 -4
- package/dist/components/Modal/ModalHeader.d.ts +6 -4
- package/dist/components/Modal/subcomponents/FullPageModalActions.d.ts +18 -0
- package/dist/components/NavMenu/NavLayout.d.ts +35 -4
- package/dist/components/NavMenu/NavMenu.d.ts +16 -4
- package/dist/components/NavMenu/NavMenuContent.d.ts +3 -11
- package/dist/components/NavMenu/NavMenuFooter.d.ts +3 -8
- package/dist/components/NavMenu/NavMenuHeader.d.ts +3 -7
- package/dist/components/NavMenu/NavMenuItem.d.ts +3 -9
- package/dist/components/NavMenu/types/NavMenuFooterProps.type.d.ts +5 -5
- package/dist/components/NavMenu/types/NavMenuHeaderProps.type.d.ts +11 -5
- package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +11 -11
- package/dist/components/NotificationBanner/NotificationBanner.d.ts +41 -12
- package/dist/components/Page/CRUDPage.d.ts +4 -17
- package/dist/components/Page/CRUDPage.types.d.ts +36 -32
- package/dist/components/Page/index.d.ts +3 -2
- package/dist/components/PageHeader/PageHeader.d.ts +4 -17
- package/dist/components/PageHeader/PageHeader.types.d.ts +32 -28
- package/dist/components/PageHeader/index.d.ts +2 -1
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +3 -4
- package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +37 -0
- package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +15 -4
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +3 -4
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +3 -4
- package/dist/components/PreviewPhone/PreviewPhone.d.ts +7 -11
- package/dist/components/Radio/RadioV2.d.ts +17 -3
- package/dist/components/RadioGroup/RadioGroupV2.d.ts +10 -2
- package/dist/components/Section/Section.d.ts +25 -4
- package/dist/components/Section/SectionItem.d.ts +9 -4
- package/dist/components/Section/SectionItemWithContent.d.ts +9 -3
- package/dist/components/Section/subcomponents/SectionActions.d.ts +21 -21
- package/dist/components/Select/Select.d.ts +46 -3
- package/dist/components/Select/SelectDropdownIndicator.d.ts +3 -2
- package/dist/components/Select/SelectLoadingIndicator.d.ts +3 -2
- package/dist/components/SettingsMenuButton/SettingsMenuButton.d.ts +19 -5
- package/dist/components/Spinner/Spinner.d.ts +6 -2
- package/dist/components/Steps/Step.d.ts +10 -9
- package/dist/components/Steps/Steps.d.ts +10 -9
- package/dist/components/Tabbar/Tabbar.d.ts +21 -13
- package/dist/components/Tabbar/TabbarItem.d.ts +16 -16
- package/dist/components/Table/Table.d.ts +16 -2
- package/dist/components/Table/Table.types.d.ts +42 -0
- package/dist/components/Table/Table.utils.d.ts +3 -2
- package/dist/components/Table/TableBody.d.ts +13 -4
- package/dist/components/Table/TableBodyRow.d.ts +10 -6
- package/dist/components/Table/TableBodyRowDataCell.d.ts +8 -4
- package/dist/components/Table/TableFooter.d.ts +8 -2
- package/dist/components/Table/TableHeader.d.ts +7 -4
- package/dist/components/Tag/Tag.d.ts +26 -12
- package/dist/components/Tag/TagGroup.d.ts +23 -9
- package/dist/components/Text/Text.d.ts +115 -24
- package/dist/components/TextEditor/TextEditor.d.ts +53 -0
- package/dist/components/TextLink/TextLink.d.ts +14 -8
- package/dist/components/Textarea/Textarea.d.ts +33 -3
- package/dist/components/Timeline/Timeline.d.ts +14 -12
- package/dist/components/Timeline/TimelineHeader.d.ts +10 -10
- package/dist/components/Timeline/TimelineStep.d.ts +10 -2
- package/dist/components/Title/PageTitle.d.ts +6 -0
- package/dist/components/Title/Title.d.ts +31 -8
- package/dist/components/Toaster/Toaster.d.ts +17 -19
- package/dist/components/Toaster/toast-elements-getter.d.ts +22 -9
- package/dist/components/Toaster/toast-progress-animator.d.ts +12 -1
- package/dist/components/Toaster/toast.d.ts +12 -5
- package/dist/components/UnorderedList/UnorderedList.d.ts +61 -0
- package/dist/components/VerticalMenu/VerticalMenu.d.ts +86 -0
- package/dist/components/ViewItem/ViewItem.d.ts +16 -3
- package/dist/components/WeekdaysPicker/WeekdaysPicker.d.ts +42 -0
- package/dist/index.d.ts +89 -78
- package/dist/index.development.js +6168 -0
- package/dist/index.development.js.map +1 -0
- package/dist/index.js +1 -1356
- package/dist/index.js.map +1 -1
- package/dist/types/general.types.d.ts +8 -8
- package/dist/utils/string.utils.d.ts +7 -1
- package/dist/web-ui-tailwind.css +1306 -525
- package/dist/web-ui.esm.js +1 -1356
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +60 -55
- package/dist/components/CheckboxList/CheckboxListItem.d.ts +0 -13
- package/dist/components/Icons/AddIcon.d.ts +0 -3
- package/dist/components/Icons/AlertsIcon.d.ts +0 -3
- package/dist/components/Icons/ChartIcon.d.ts +0 -3
- package/dist/components/Icons/ChartLineColoredIcon.d.ts +0 -3
- package/dist/components/Icons/ChatBoxIcon.d.ts +0 -3
- package/dist/components/Icons/DeleteIcon.d.ts +0 -3
- package/dist/components/Icons/DownArrowIcon.d.ts +0 -3
- package/dist/components/Icons/DragIcon.d.ts +0 -3
- package/dist/components/Icons/EditIcon.d.ts +0 -3
- package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +0 -3
- package/dist/components/Icons/EyeIcon.d.ts +0 -3
- package/dist/components/Icons/GearColoredIcon.d.ts +0 -3
- package/dist/components/Icons/GearIcon.d.ts +0 -3
- package/dist/components/Icons/GroupColoredIcon.d.ts +0 -3
- package/dist/components/Icons/LeftArrowIcon.d.ts +0 -3
- package/dist/components/Icons/MessagesIcon.d.ts +0 -3
- package/dist/components/Icons/NotesIcon.d.ts +0 -3
- package/dist/components/Icons/PrintIcon.d.ts +0 -3
- package/dist/components/Icons/RightArrowIcon.d.ts +0 -3
- package/dist/components/Icons/SearchCancelIcon.d.ts +0 -3
- package/dist/components/Icons/SpaceRocketIcon.d.ts +0 -3
- package/dist/components/Icons/StatusColoredIcon.d.ts +0 -3
- package/dist/components/Icons/WarningIcon.d.ts +0 -3
- package/dist/components/Icons/templates/component.d.ts +0 -3
- package/dist/components/Icons/templates/index.d.ts +0 -2
- package/dist/components/ImagePicker/ImageCategory.d.ts +0 -4
- package/dist/components/ImagePicker/ImagePicker.d.ts +0 -17
- package/dist/components/TabLinks/TabLinks.d.ts +0 -10
- package/dist/components/Tag/Tag.utils.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,109 +1,113 @@
|
|
|
1
|
-
#
|
|
1
|
+
# WebUI
|
|
2
2
|
|
|
3
|
-
The web-ui repository contains the
|
|
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
|
-
##
|
|
5
|
+
## Table of contents
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- 🚀 [Getting started](#getting-started)
|
|
8
|
+
- 📖 [Fonts](#fonts)
|
|
9
|
+
- 📦 [How to use](#how-to-use)
|
|
10
|
+
- 🤝 [Contributing](#contributing)
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
yarn install
|
|
11
|
-
yarn storybook
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Testing your production build
|
|
12
|
+
## Getting started
|
|
15
13
|
|
|
16
|
-
|
|
14
|
+
To use WebUI, you need to add it as a dependency to your project:
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
20
|
+
Then you can use components like this:
|
|
29
21
|
|
|
30
|
-
```
|
|
31
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
59
|
-
- Run `yarn icons`
|
|
58
|
+
## How to use
|
|
60
59
|
|
|
61
|
-
The
|
|
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
|
-
|
|
64
|
+
### Example scenario
|
|
64
65
|
|
|
65
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
87
|
+
## Frequently asked questions
|
|
79
88
|
|
|
80
|
-
|
|
89
|
+
<details>
|
|
90
|
+
<summary>The feature I'm building needs a component from WebUI that doesn't exist.</summary>
|
|
81
91
|
|
|
82
|
-
|
|
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
|
-
|
|
94
|
+
</details>
|
|
88
95
|
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
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
|
-
|
|
103
|
+
</details>
|
|
98
104
|
|
|
99
|
-
|
|
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
|
-
|
|
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
|
-
|
|
111
|
+
### Reporting bugs
|
|
108
112
|
|
|
109
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
items:
|
|
6
|
-
className
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
2
|
-
export
|
|
3
|
-
id:
|
|
4
|
-
title:
|
|
5
|
-
content:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
2
|
-
export declare const BaseListEmptyState:
|
|
3
|
-
message:
|
|
4
|
-
roundTop
|
|
5
|
-
withBorder
|
|
6
|
-
}
|
|
7
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
onAssetLoadError
|
|
5
|
-
}
|
|
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
|
|
2
|
-
|
|
3
|
-
export
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
2
|
-
|
|
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,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import "./ListSkeleton.scss";
|
|
3
|
-
|
|
4
|
-
items:
|
|
5
|
-
dataTestId?: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
2
|
-
|
|
3
|
-
export
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
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";
|