@luscii-healthtech/web-ui 0.0.0-alpha.d641b2f → 0.0.0-alpha.e2e35dd
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 +96 -153
- package/dist/.storybook/constants.d.ts +35 -0
- package/dist/.storybook/decorators.d.ts +31 -0
- package/dist/index.development.js +4410 -3729
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/Accordion/Accordion.d.ts +15 -0
- package/dist/src/components/Accordion/AccordionItem.d.ts +17 -0
- package/dist/{components → src/components}/AccordionList/AccordionList.d.ts +21 -12
- package/dist/{components → src/components}/AccordionList/subcomponents/AccordionListActions.d.ts +2 -2
- package/dist/src/components/Alerts/AlertWidget.d.ts +20 -0
- package/dist/src/components/AsideLayout/AsideLayout.d.ts +7 -0
- package/dist/src/components/Avatar/Avatar.d.ts +53 -0
- package/dist/src/components/Avatar/AvatarGroup.d.ts +31 -0
- package/dist/src/components/Badge/Badge.d.ts +11 -0
- package/dist/{components → src/components}/BaseList/BaseList.d.ts +2 -2
- package/dist/{components → src/components}/BaseList/BaseList.types.d.ts +43 -10
- package/dist/{components → src/components}/BaseList/BaseListEmptyState.d.ts +2 -2
- package/dist/{components → src/components}/BaseList/BaseListIcon.d.ts +1 -1
- package/dist/src/components/BaseList/BaseListItem.d.ts +4 -0
- package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -0
- package/dist/src/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -0
- package/dist/{components → src/components}/BaseList/ListSkeleton/ListItemSkeleton.d.ts +0 -1
- package/dist/{components → src/components}/BaseList/ListSkeleton/ListSkeleton.d.ts +0 -1
- package/dist/src/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -0
- package/dist/src/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -0
- package/dist/{components → src/components}/BaseList/utils.d.ts +2 -2
- package/dist/src/components/Box/Box.d.ts +39 -0
- package/dist/src/components/Breadcrumbs/BreadcrumbItem.d.ts +4 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.types.d.ts +25 -0
- package/dist/src/components/ButtonV2/ButtonProps.type.d.ts +104 -0
- package/dist/{components → src/components}/ButtonV2/ButtonV2.d.ts +1 -1
- package/dist/src/components/ButtonV2/PrimaryButton.d.ts +3 -0
- package/dist/src/components/ButtonV2/PrimaryIconButton.d.ts +3 -0
- package/dist/{components → src/components}/ButtonV2/SecondaryButton.d.ts +1 -1
- package/dist/src/components/ButtonV2/SecondaryIconButton.d.ts +3 -0
- package/dist/src/components/ButtonV2/TertiaryButton.d.ts +3 -0
- package/dist/src/components/ButtonV2/TertiaryIconButton.d.ts +15 -0
- package/dist/src/components/Card/Actions.d.ts +2 -0
- package/dist/src/components/Card/Card.d.ts +78 -0
- package/dist/src/components/Card/Padding.d.ts +6 -0
- package/dist/src/components/Card/Section.d.ts +6 -0
- package/dist/src/components/Card/TopBar.d.ts +10 -0
- package/dist/src/components/Carousel/Carousel.d.ts +30 -0
- package/dist/src/components/CenteredHero/CenteredHero.d.ts +16 -0
- package/dist/src/components/ChatBubble/ChatBubble.d.ts +58 -0
- package/dist/{components → src/components}/CheckBoxListModal/CheckboxListModal.d.ts +10 -5
- package/dist/{components → src/components}/Checkbox/Checkbox.d.ts +4 -0
- package/dist/src/components/CheckboxList/CheckboxGroup.d.ts +7 -0
- package/dist/src/components/CheckboxList/CheckboxList.d.ts +10 -0
- package/dist/{components → src/components}/CheckboxList/CheckboxList.types.d.ts +3 -3
- package/dist/src/components/Chip/Chip.d.ts +9 -0
- package/dist/src/components/Collapse/Collapse.d.ts +25 -0
- package/dist/src/components/ConfirmationDialog/ConfirmationDialog.d.ts +3 -0
- package/dist/src/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +7 -0
- package/dist/src/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -0
- package/dist/src/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -0
- package/dist/{components → src/components}/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +17 -6
- package/dist/src/components/Container/FlexColumn.d.ts +7 -0
- package/dist/{components → src/components}/Container/FlexContainer.d.ts +3 -3
- package/dist/src/components/Container/FlexRow.d.ts +7 -0
- package/dist/{components → src/components}/Container/types/FlexContainerProps.type.d.ts +4 -4
- package/dist/src/components/DatePicker/DatePicker.d.ts +72 -0
- package/dist/src/components/DatePicker/LabeledDatePicker.d.ts +9 -0
- package/dist/src/components/DetailsDisclosure/DetailsDisclosure.d.ts +81 -0
- package/dist/src/components/Divider/Divider.d.ts +36 -0
- package/dist/src/components/DragHandle/DragHandle.d.ts +6 -0
- package/dist/{components → src/components}/DragHandle/DragHandle.types.d.ts +0 -1
- package/dist/src/components/Dropdown/Dropdown.d.ts +61 -0
- package/dist/src/components/Dropzone/Dropzone.d.ts +6 -0
- package/dist/{components → src/components}/Dropzone/Dropzone.types.d.ts +1 -1
- package/dist/{components → src/components}/EmptyListMessage/EmptyListMessage.d.ts +2 -3
- package/dist/src/components/FilePreviewModal/FilePreview.d.ts +25 -0
- package/dist/src/components/FileUpload/FileUpload.d.ts +32 -0
- package/dist/src/components/FilterBar/ActiveFilters.d.ts +9 -0
- package/dist/{components → src/components}/FilterBar/FilterBar.d.ts +21 -6
- package/dist/{components → src/components}/FilterBar/FilterBar.utils.d.ts +2 -2
- package/dist/{components → src/components}/FilterBar/FilterBarProps.type.d.ts +50 -1
- package/dist/src/components/FilterBar/FilterMenu.d.ts +10 -0
- package/dist/src/components/FilterBar/FiltersMenus.d.ts +11 -0
- package/dist/src/components/FilterBar/PresetFiltersMenu.d.ts +9 -0
- package/dist/{components → src/components}/FilterBar/SortMenu.d.ts +2 -2
- package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +64 -0
- package/dist/src/components/HoverCard/HoverCard.d.ts +40 -0
- package/dist/src/components/HoverCard/index.d.ts +1 -0
- package/dist/src/components/HoverIndicatorControl/HoverIndicatorControl.d.ts +24 -0
- package/dist/{components → src/components}/Icon/Icon.d.ts +3 -3
- package/dist/src/components/Icons/AbsentIcon.d.ts +3 -0
- package/dist/src/components/Icons/AddNoteIcon.d.ts +3 -0
- package/dist/src/components/Icons/AlarmClockIcon.d.ts +3 -0
- package/dist/src/components/Icons/AmberAlertIcon.d.ts +3 -0
- package/dist/src/components/Icons/ArrowBackward.d.ts +3 -0
- package/dist/src/components/Icons/ArrowForward.d.ts +3 -0
- package/dist/src/components/Icons/AssignIcon.d.ts +3 -0
- package/dist/src/components/Icons/AssignedIcon.d.ts +3 -0
- package/dist/src/components/Icons/BellIcon.d.ts +3 -0
- package/dist/src/components/Icons/BellIconSlashed.d.ts +3 -0
- package/dist/src/components/Icons/BluetoothIcon.d.ts +3 -0
- package/dist/src/components/Icons/BrushIcon.d.ts +3 -0
- package/dist/src/components/Icons/CakeIcon.d.ts +3 -0
- package/dist/src/components/Icons/CalendarDayIcon.d.ts +3 -0
- package/dist/src/components/Icons/CalendarMonthIcon.d.ts +3 -0
- package/dist/src/components/Icons/CalendarRepeatIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChartBarsIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChartLineAndBarsIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChartLineIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChatBubbleIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChatBubbleWithTextIcon.d.ts +3 -0
- package/dist/src/components/Icons/CheckIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChevronDoubleIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChevronDownIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChevronLeftIcon.d.ts +3 -0
- package/dist/src/components/Icons/ChevronRightIcon.d.ts +3 -0
- package/dist/src/components/Icons/ClockIcon.d.ts +3 -0
- package/dist/src/components/Icons/CogwheelIcon.d.ts +3 -0
- package/dist/src/components/Icons/CompareIcon.d.ts +3 -0
- package/dist/src/components/Icons/CopyToClipboardIcon.d.ts +3 -0
- package/dist/src/components/Icons/CrossIcon.d.ts +3 -0
- package/dist/src/components/Icons/CrossInCircleIcon.d.ts +3 -0
- package/dist/src/components/Icons/CrossInFilledCircleIcon.d.ts +3 -0
- package/dist/src/components/Icons/DatabaseIcon.d.ts +3 -0
- package/dist/src/components/Icons/DownloadIcon.d.ts +3 -0
- package/dist/src/components/Icons/DragIndicatorIcon.d.ts +3 -0
- package/dist/src/components/Icons/EarthIcon.d.ts +3 -0
- package/dist/src/components/Icons/EmailIcon.d.ts +3 -0
- package/dist/src/components/Icons/EmptyIcon.d.ts +3 -0
- package/dist/src/components/Icons/ExclamationMarkIcon.d.ts +3 -0
- package/dist/src/components/Icons/ExportIcon.d.ts +3 -0
- package/dist/src/components/Icons/ExternalLinkIcon.d.ts +3 -0
- package/dist/src/components/Icons/EyeClosedIcon.d.ts +3 -0
- package/dist/src/components/Icons/EyeOpenIcon.d.ts +3 -0
- package/dist/src/components/Icons/FilterIcon.d.ts +3 -0
- package/dist/src/components/Icons/FireIcon.d.ts +3 -0
- package/dist/src/components/Icons/FirstAidKitIcon.d.ts +3 -0
- package/dist/src/components/Icons/FlagIcon.d.ts +3 -0
- package/dist/src/components/Icons/FolderIcon.d.ts +3 -0
- package/dist/src/components/Icons/ForwardIcon.d.ts +3 -0
- package/dist/src/components/Icons/GrayAlertIcon.d.ts +3 -0
- package/dist/src/components/Icons/GroupIcon.d.ts +3 -0
- package/dist/src/components/Icons/GroupOfThreeIcon.d.ts +3 -0
- package/dist/src/components/Icons/HamburgerIcon.d.ts +3 -0
- package/dist/src/components/Icons/HandUp.d.ts +3 -0
- package/dist/src/components/Icons/HandshakeIcon.d.ts +3 -0
- package/dist/src/components/Icons/HeartIcon.d.ts +3 -0
- package/dist/src/components/Icons/HeartMinusIcon.d.ts +3 -0
- package/dist/src/components/Icons/HomeIcon.d.ts +3 -0
- package/dist/src/components/Icons/IdBadgeIcon.d.ts +3 -0
- package/dist/src/components/Icons/ImageIcon.d.ts +3 -0
- package/dist/src/components/Icons/ImageLibraryIcon.d.ts +3 -0
- package/dist/src/components/Icons/InfoIcon.d.ts +3 -0
- package/dist/src/components/Icons/LifebuoyIcon.d.ts +3 -0
- package/dist/src/components/Icons/LightBulbIcon.d.ts +3 -0
- package/dist/src/components/Icons/LinkIcon.d.ts +3 -0
- package/dist/src/components/Icons/ListDescIcon.d.ts +3 -0
- package/dist/src/components/Icons/ListIcon.d.ts +3 -0
- package/dist/src/components/Icons/LockIcon.d.ts +3 -0
- package/dist/src/components/Icons/LogInIcon.d.ts +3 -0
- package/dist/src/components/Icons/LogOutIcon.d.ts +3 -0
- package/dist/src/components/Icons/MessageWithArrowIcon.d.ts +3 -0
- package/dist/src/components/Icons/MoreIcon.d.ts +3 -0
- package/dist/src/components/Icons/MouseIcon.d.ts +3 -0
- package/dist/src/components/Icons/NoteIcon.d.ts +3 -0
- package/dist/src/components/Icons/OpenAlertIcon.d.ts +3 -0
- package/dist/src/components/Icons/OpenFolderIcon.d.ts +3 -0
- package/dist/src/components/Icons/PageIcon.d.ts +3 -0
- package/dist/src/components/Icons/PageViewIcon.d.ts +3 -0
- package/dist/src/components/Icons/PaperclipIcon.d.ts +3 -0
- package/dist/src/components/Icons/PatientIcon.d.ts +3 -0
- package/dist/src/components/Icons/PencilIcon.d.ts +3 -0
- package/dist/src/components/Icons/PersonIcon.d.ts +3 -0
- package/dist/src/components/Icons/PhoneIcon.d.ts +3 -0
- package/dist/src/components/Icons/PieChartIcon.d.ts +3 -0
- package/dist/src/components/Icons/PinIcon.d.ts +3 -0
- package/dist/src/components/Icons/PlusIcon.d.ts +3 -0
- package/dist/src/components/Icons/PrinterIcon.d.ts +3 -0
- package/dist/src/components/Icons/RedAlertIcon.d.ts +3 -0
- package/dist/src/components/Icons/RobotIcon.d.ts +3 -0
- package/dist/src/components/Icons/RocketIcon.d.ts +3 -0
- package/dist/src/components/Icons/SearchIcon.d.ts +3 -0
- package/dist/src/components/Icons/SendIcon.d.ts +3 -0
- package/dist/src/components/Icons/ShareIcon.d.ts +3 -0
- package/dist/src/components/Icons/SidebarIcon.d.ts +3 -0
- package/dist/src/components/Icons/SmallArrowDownIcon.d.ts +3 -0
- package/dist/src/components/Icons/SmallArrowUpIcon.d.ts +3 -0
- package/dist/src/components/Icons/SmallCircleIcon.d.ts +3 -0
- package/dist/src/components/Icons/SmallDiamondIcon.d.ts +3 -0
- package/dist/src/components/Icons/SmallSquareIcon.d.ts +3 -0
- package/dist/src/components/Icons/SmallUpsideDownTriangleIcon.d.ts +3 -0
- package/dist/src/components/Icons/StarFilledIcon.d.ts +3 -0
- package/dist/src/components/Icons/StarIcon.d.ts +3 -0
- package/dist/src/components/Icons/StopwatchIcon.d.ts +3 -0
- package/dist/src/components/Icons/SummaryIcon.d.ts +3 -0
- package/dist/src/components/Icons/TadaIcon.d.ts +3 -0
- package/dist/src/components/Icons/ThresholdIcon.d.ts +3 -0
- package/dist/src/components/Icons/TrashBinIcon.d.ts +3 -0
- package/dist/src/components/Icons/TreeIcon.d.ts +3 -0
- package/dist/src/components/Icons/UnassignedIcon.d.ts +3 -0
- package/dist/src/components/Icons/UnlinkIcon.d.ts +3 -0
- package/dist/src/components/Icons/UnpinIcon.d.ts +3 -0
- package/dist/src/components/Icons/UploadIcon.d.ts +3 -0
- package/dist/src/components/Icons/VideoIcon.d.ts +3 -0
- package/dist/src/components/Icons/iconWrapper/iconWrapper.d.ts +4 -0
- package/dist/src/components/Icons/index.d.ts +291 -0
- package/dist/src/components/Icons/special-icons/AmberAlertColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/ChartLineColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/CheckFilledColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/FlagDeColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/FlagFrColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/FlagNlColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/FlagPtColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/FlagUkColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/GearColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/GrayAlertColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/GreenAlertColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/GroupColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/RedAlertColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/StatusActiveColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/StatusAddedColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/StatusBlockedColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/StatusCancelledColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/StatusColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/StatusStoppedColoredIcon.d.ts +3 -0
- package/dist/src/components/Icons/special-icons/index.d.ts +19 -0
- package/dist/src/components/Icons/types/IconProps.type.d.ts +18 -0
- package/dist/src/components/Image/Image.d.ts +17 -0
- package/dist/{components → src/components}/InfoField/InfoField.d.ts +4 -4
- package/dist/{components → src/components}/Input/Input.d.ts +3 -4
- package/dist/src/components/Input/LabeledInput.d.ts +24 -0
- package/dist/src/components/Input/StyledInput.d.ts +14 -0
- package/dist/src/components/InputSelect/InputSelect.d.ts +37 -0
- package/dist/src/components/InputSelect/InputSelect.utils.d.ts +9 -0
- package/dist/src/components/InputSelect/InputSelectInput.d.ts +11 -0
- package/dist/src/components/InputSelect/InputSelectSelect.d.ts +9 -0
- package/dist/src/components/Line/Line.d.ts +14 -0
- package/dist/{components → src/components}/Link/Link.d.ts +3 -3
- package/dist/{components → src/components}/List/List.d.ts +2 -2
- package/dist/{components → src/components}/List/List.types.d.ts +13 -2
- package/dist/src/components/List/ListItem.d.ts +4 -0
- package/dist/{components → src/components}/LoadingIndicator/LoadingIndicator.d.ts +1 -2
- package/dist/{components → src/components}/MediaPicker/ImageCategory.d.ts +2 -2
- package/dist/{components → src/components}/MediaPicker/MediaPicker.d.ts +1 -1
- package/dist/{components → src/components}/Modal/FullPageModal.d.ts +8 -8
- package/dist/{components → src/components}/Modal/FullPageModalHeader.d.ts +4 -4
- package/dist/{components → src/components}/Modal/Modal.d.ts +5 -5
- package/dist/src/components/Modal/ModalBase.d.ts +16 -0
- package/dist/src/components/Modal/ModalFooter.d.ts +27 -0
- package/dist/src/components/Modal/ModalHeader.d.ts +6 -0
- package/dist/{components → src/components}/Modal/subcomponents/FullPageModalActions.d.ts +2 -2
- package/dist/src/components/ModalDialog/ModalDialog.d.ts +105 -0
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +77 -0
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormContext.d.ts +8 -0
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +11 -0
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +21 -0
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +9 -0
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormText.d.ts +8 -0
- package/dist/{components → src/components}/NavMenu/NavLayout.d.ts +8 -4
- package/dist/{components → src/components}/NotificationBanner/NotificationBanner.d.ts +5 -11
- package/dist/{components → src/components}/Page/CRUDPage.d.ts +2 -2
- package/dist/src/components/Page/CRUDPage.types.d.ts +82 -0
- package/dist/src/components/Page/Page.d.ts +56 -0
- package/dist/src/components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/src/components/PageHeader/PageHeader.types.d.ts +46 -0
- package/dist/src/components/PageWithCenteredContentLayout/PageWithCenteredContentLayout.d.ts +23 -0
- package/dist/src/components/PaginationMenu/PaginationMenu.d.ts +2 -0
- package/dist/src/components/PaginationMenu/PaginationMenu.types.d.ts +62 -0
- package/dist/{components → src/components}/PaginationMenu/PaginationMenu.utils.d.ts +1 -1
- package/dist/src/components/PaginationMenu/PaginationMenuCursor.d.ts +3 -0
- package/dist/src/components/PaginationMenu/PaginationMenuLarge.d.ts +3 -0
- package/dist/src/components/PaginationMenu/PaginationMenuSmall.d.ts +2 -0
- package/dist/src/components/PreviewPhone/PreviewPhone.d.ts +7 -0
- package/dist/src/components/PreviewPhone/useWindowDimensions.d.ts +4 -0
- package/dist/src/components/Radio/LabeledRadio.d.ts +67 -0
- package/dist/src/components/Radio/LabeledRadioGroup.d.ts +23 -0
- package/dist/src/components/Radio/Radio.d.ts +25 -0
- package/dist/{components → src/components}/Radio/RadioV2.d.ts +0 -1
- package/dist/src/components/Radio/StyledRadio.d.ts +4 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +33 -0
- package/dist/{components → src/components}/RadioGroup/RadioGroupV2.d.ts +1 -1
- package/dist/src/components/Section/Section.d.ts +29 -0
- package/dist/{components → src/components}/Section/SectionItem.d.ts +3 -3
- package/dist/{components → src/components}/Section/SectionItemWithContent.d.ts +1 -2
- package/dist/{components → src/components}/Section/subcomponents/SectionActions.d.ts +2 -2
- package/dist/src/components/Section/subcomponents/SectionFooter.d.ts +6 -0
- package/dist/src/components/Section/subcomponents/SectionHeader.d.ts +8 -0
- package/dist/src/components/Select/LabeledSelect.d.ts +22 -0
- package/dist/{components → src/components}/Select/Select.d.ts +9 -6
- package/dist/src/components/Select/Select.types.d.ts +4 -0
- package/dist/src/components/Select/SelectDropdownIndicator.d.ts +3 -0
- package/dist/src/components/Select/SelectLoadingIndicator.d.ts +3 -0
- package/dist/src/components/Select/StyledSelect.d.ts +12 -0
- package/dist/{components → src/components}/SettingsMenuButton/SettingsMenuButton.d.ts +8 -8
- package/dist/src/components/Skeleton/Skeleton.d.ts +9 -0
- package/dist/src/components/Spinner/Spinner.d.ts +6 -0
- package/dist/src/components/SplitViewLayout/SplitViewLayout.d.ts +20 -0
- package/dist/src/components/Stack/Stack.d.ts +49 -0
- package/dist/src/components/StatusIndicator/StatusIndicator.d.ts +16 -0
- package/dist/{components → src/components}/Steps/Step.d.ts +0 -1
- package/dist/{components → src/components}/Steps/Steps.d.ts +0 -1
- package/dist/src/components/StyledLists/StyledBaseList.d.ts +33 -0
- package/dist/src/components/StyledLists/StyledOrderedList.d.ts +25 -0
- package/dist/src/components/StyledLists/StyledUnorderedList.d.ts +43 -0
- package/dist/src/components/Switch/Switch.d.ts +23 -0
- package/dist/src/components/Switcher/Switcher.d.ts +26 -0
- package/dist/src/components/Switcher/SwitcherItem.d.ts +24 -0
- package/dist/{components → src/components}/Tabbar/Tabbar.d.ts +6 -4
- package/dist/{components → src/components}/Tabbar/TabbarItem.d.ts +0 -1
- package/dist/src/components/Table/Table.d.ts +55 -0
- package/dist/{components → src/components}/Table/Table.types.d.ts +2 -3
- package/dist/src/components/Table/Table.utils.d.ts +58 -0
- package/dist/src/components/Table/TableBody.d.ts +32 -0
- package/dist/{components → src/components}/Table/TableBodyRowDataCell.d.ts +2 -3
- package/dist/{components → src/components}/Table/TableFooter.d.ts +1 -2
- package/dist/src/components/Table/TableHeader.d.ts +18 -0
- package/dist/src/components/TableNew/TableNew.d.ts +54 -0
- package/dist/src/components/TableNew/index.d.ts +1 -0
- package/dist/{components → src/components}/Tag/Tag.d.ts +10 -5
- package/dist/{components → src/components}/Tag/TagGroup.d.ts +3 -3
- package/dist/{components → src/components}/Text/Text.d.ts +52 -29
- package/dist/{components → src/components}/TextEditor/TextEditor.d.ts +24 -8
- package/dist/{components → src/components}/TextLink/TextLink.d.ts +0 -1
- package/dist/{components → src/components}/Textarea/Textarea.d.ts +3 -6
- package/dist/{components → src/components}/Timeline/Timeline.d.ts +4 -5
- package/dist/{components → src/components}/Timeline/TimelineHeader.d.ts +3 -3
- package/dist/{components → src/components}/Timeline/TimelineStep.d.ts +3 -3
- package/dist/src/components/TimelineCard/LoadingState.d.ts +1 -0
- package/dist/src/components/TimelineCard/TimelineCard.d.ts +52 -0
- package/dist/src/components/TimelineCardLayout/TimelineCardLayout.d.ts +18 -0
- package/dist/src/components/Title/PageTitle.d.ts +6 -0
- package/dist/src/components/Title/Title.d.ts +41 -0
- package/dist/src/components/Toaster/Toaster.d.ts +3 -0
- package/dist/src/components/Toaster/ToasterPanel.d.ts +15 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +40 -0
- package/dist/src/components/Tooltip/index.d.ts +3 -0
- package/dist/{components → src/components}/UnorderedList/UnorderedList.d.ts +2 -0
- package/dist/src/components/VerticalMenu/VerticalMenu.d.ts +125 -0
- package/dist/{components → src/components}/WeekdaysPicker/WeekdaysPicker.d.ts +3 -3
- package/dist/src/components/forms/shared/HelperAndErrorText.d.ts +13 -0
- package/dist/src/components/forms/shared/LabelText.d.ts +5 -0
- package/dist/src/context/LocaleContext.d.ts +3 -0
- package/dist/src/index.d.ts +131 -0
- package/dist/src/system/Elevation.d.ts +9 -0
- package/dist/src/system/Locale.d.ts +3 -0
- package/dist/src/system/Sizes.d.ts +51 -0
- package/dist/src/types/general.types.d.ts +11 -0
- package/dist/src/utils/prefixKeys.d.ts +13 -0
- package/dist/src/utils/radius.utils.d.ts +37 -0
- package/dist/src/utils/responsiveness.utils.d.ts +30 -0
- package/dist/src/utils/shadow.utils.d.ts +21 -0
- package/dist/src/utils/useOutsideClick.d.ts +2 -0
- package/dist/stories/Accordion.stories.d.ts +21 -0
- package/dist/stories/AccordionList.stories.d.ts +110 -0
- package/dist/stories/AlertsWidget.stories.d.ts +14 -0
- package/dist/stories/AsideLayout.stories.d.ts +22 -0
- package/dist/stories/Avatar.stories.d.ts +46 -0
- package/dist/stories/Badge.stories.d.ts +21 -0
- package/dist/stories/BaseList.stories.d.ts +16 -0
- package/dist/stories/Box.stories.d.ts +15 -0
- package/dist/stories/Breadcrumbs.stories.d.ts +10 -0
- package/dist/stories/Button.stories.d.ts +11 -0
- package/dist/stories/CRUDPage.stories.d.ts +15 -0
- package/dist/stories/Card.stories.d.ts +44 -0
- package/dist/stories/Carousel.stories.d.ts +44 -0
- package/dist/stories/CenteredHero.stories.d.ts +14 -0
- package/dist/stories/ChatBubble.stories.d.ts +49 -0
- package/dist/stories/CheckBoxListModal.stories.d.ts +137 -0
- package/dist/stories/Checkbox.stories.d.ts +61 -0
- package/dist/stories/CheckboxList.stories.d.ts +20 -0
- package/dist/stories/Chip.stories.d.ts +15 -0
- package/dist/stories/Collapse.stories.d.ts +22 -0
- package/dist/stories/ConfirmationDialog.stories.d.ts +13 -0
- package/dist/stories/DatePicker.stories.d.ts +56 -0
- package/dist/stories/DetailsDisclosure.stories.d.ts +9505 -0
- package/dist/stories/Divider.stories.d.ts +67 -0
- package/dist/stories/DragHandle.stories.d.ts +23 -0
- package/dist/stories/DraggableAccordionList.stories.d.ts +11 -0
- package/dist/stories/DraggableList.stories.d.ts +10 -0
- package/dist/stories/Dropdown.stories.d.ts +10 -0
- package/dist/stories/Dropzone.stories.d.ts +14 -0
- package/dist/stories/EmptyListMessage.stories.d.ts +21 -0
- package/dist/stories/FilePreview.stories.d.ts +29 -0
- package/dist/stories/FileUpload.stories.d.ts +9 -0
- package/dist/stories/FilterBar.stories.d.ts +34 -0
- package/dist/stories/FlexContainer.stories.d.ts +13 -0
- package/dist/stories/FlyOutMenu.stories.d.ts +15 -0
- package/dist/stories/FullPageModal.stories.d.ts +42 -0
- package/dist/stories/HoverCard.stories.d.ts +8 -0
- package/dist/stories/HoverIndicatorControl.stories.d.ts +31 -0
- package/dist/stories/Icon.stories.d.ts +16 -0
- package/dist/stories/InfoField.stories.d.ts +32 -0
- package/dist/stories/Input.stories.d.ts +27 -0
- package/dist/stories/InputSelect.stories.d.ts +34 -0
- package/dist/stories/LabeledDatePicker.stories.d.ts +55 -0
- package/dist/stories/LabeledInput.stories.d.ts +44 -0
- package/dist/stories/LabeledRadio.stories.d.ts +33 -0
- package/dist/stories/Line.stories.d.ts +22 -0
- package/dist/stories/Link.stories.d.ts +17 -0
- package/dist/stories/LinkIcon.stories.d.ts +13 -0
- package/dist/stories/List.stories.d.ts +255 -0
- package/dist/stories/LoadingIndicator.stories.d.ts +26 -0
- package/dist/stories/MediaPicker.stories.d.ts +11 -0
- package/dist/stories/Modal.stories.d.ts +119 -0
- package/dist/stories/ModalDialog.stories.d.ts +26438 -0
- package/dist/stories/NaturalLanguageForm.stories.d.ts +74 -0
- package/dist/stories/NavLayout.stories.d.ts +26 -0
- package/dist/stories/NotificationBanner.stories.d.ts +43 -0
- package/dist/stories/Page.stories.d.ts +36 -0
- package/dist/stories/PageHeader.stories.d.ts +23 -0
- package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +51 -0
- package/dist/stories/Pagination.stories.d.ts +18 -0
- package/dist/stories/PreviewPhone.stories.d.ts +17 -0
- package/dist/stories/PrimaryButton.stories.d.ts +18 -0
- package/dist/stories/PrimaryIconButton.stories.d.ts +13 -0
- package/dist/stories/Radio.stories.d.ts +28 -0
- package/dist/stories/RadioGroup.stories.d.ts +30 -0
- package/dist/stories/RadioGroupV2.stories.d.ts +36 -0
- package/dist/stories/RadioV2.stories.d.ts +41 -0
- package/dist/stories/SearchInput.stories.d.ts +11 -0
- package/dist/stories/SecondaryButton.stories.d.ts +15 -0
- package/dist/stories/SecondaryIconButton.stories.d.ts +12 -0
- package/dist/stories/Section.stories.d.ts +68 -0
- package/dist/stories/SectionItem.stories.d.ts +16 -0
- package/dist/stories/SectionItemWithContent.stories.d.ts +16 -0
- package/dist/stories/Select.stories.d.ts +181 -0
- package/dist/stories/SettingsMenuButton.stories.d.ts +98 -0
- package/dist/stories/Skeleton.stories.d.ts +19 -0
- package/dist/stories/SortableList.stories.d.ts +9 -0
- package/dist/stories/Spinner.stories.d.ts +14 -0
- package/dist/stories/SplitViewLayout.stories.d.ts +29 -0
- package/dist/stories/Stack.stories.d.ts +21 -0
- package/dist/stories/StatusIndicator.stories.d.ts +19 -0
- package/dist/stories/Step.stories.d.ts +25 -0
- package/dist/stories/Steps.stories.d.ts +14 -0
- package/dist/stories/StyledOrderedList.stories.d.ts +281 -0
- package/dist/stories/StyledSelect.stories.d.ts +18 -0
- package/dist/stories/StyledUnorderedList.stories.d.ts +285 -0
- package/dist/stories/Switch.stories.d.ts +11 -0
- package/dist/stories/Switcher.stories.d.ts +40 -0
- package/dist/stories/Tabbar.stories.d.ts +8 -0
- package/dist/stories/Table.stories.d.ts +3263 -0
- package/dist/stories/TableNew.stories.d.ts +32 -0
- package/dist/stories/Tag.stories.d.ts +18 -0
- package/dist/stories/TertiaryButton.stories.d.ts +14 -0
- package/dist/stories/TertiaryIconButton.stories.d.ts +20 -0
- package/dist/stories/Text.stories.d.ts +45 -0
- package/dist/stories/TextColors.stories.d.ts +30 -0
- package/dist/stories/TextEditor.stories.d.ts +29 -0
- package/dist/stories/TextLink.stories.d.ts +10 -0
- package/dist/stories/Textarea.stories.d.ts +65 -0
- package/dist/stories/Timeline.stories.d.ts +11 -0
- package/dist/stories/TimelineCard.stories.d.ts +39 -0
- package/dist/stories/TimelineCardLayout.stories.d.ts +40 -0
- package/dist/stories/Title.stories.d.ts +16 -0
- package/dist/stories/Toaster.stories.d.ts +12 -0
- package/dist/stories/Tooltip.stories.d.ts +8 -0
- package/dist/stories/UnorderedList.stories.d.ts +39 -0
- package/dist/stories/VerticalMenu.stories.d.ts +102 -0
- package/dist/stories/WeekdaysPicker.stories.d.ts +39 -0
- package/dist/web-ui-tailwind.css +4884 -2533
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +85 -76
- package/dist/components/Accordion/Accordion.d.ts +0 -10
- package/dist/components/Accordion/AccordionItem.d.ts +0 -9
- package/dist/components/Badge/Badge.d.ts +0 -7
- package/dist/components/BaseList/BaseListItem.d.ts +0 -4
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +0 -4
- package/dist/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +0 -3
- package/dist/components/BaseList/SortableBaseList/SortableBaseList.d.ts +0 -4
- package/dist/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +0 -3
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +0 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -14
- package/dist/components/Button/Button.d.ts +0 -9
- package/dist/components/Button/Button.types.d.ts +0 -32
- package/dist/components/Button/ButtonIcon.d.ts +0 -7
- package/dist/components/ButtonV2/ButtonProps.type.d.ts +0 -49
- package/dist/components/ButtonV2/PrimaryButton.d.ts +0 -3
- package/dist/components/ButtonV2/TertiaryButton.d.ts +0 -3
- package/dist/components/Card/Actions.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -57
- package/dist/components/Card/Padding.d.ts +0 -6
- package/dist/components/Card/Section.d.ts +0 -6
- package/dist/components/Card/TopBar.d.ts +0 -9
- package/dist/components/Carousel/Carousel.d.ts +0 -8
- package/dist/components/Carousel/GliderContainer.d.ts +0 -7
- package/dist/components/CenteredHero/CenteredHero.d.ts +0 -14
- package/dist/components/CheckboxList/CheckboxGroup.d.ts +0 -3
- package/dist/components/CheckboxList/CheckboxList.d.ts +0 -4
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -3
- package/dist/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +0 -7
- package/dist/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +0 -4
- package/dist/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +0 -3
- package/dist/components/Container/FlexColumn.d.ts +0 -7
- package/dist/components/Container/FlexRow.d.ts +0 -7
- package/dist/components/Divider/Divider.d.ts +0 -6
- package/dist/components/DragHandle/DragHandle.d.ts +0 -7
- package/dist/components/Dropzone/Dropzone.d.ts +0 -6
- package/dist/components/FilterBar/ActiveFilters.d.ts +0 -9
- package/dist/components/FilterBar/FiltersMenus.d.ts +0 -8
- package/dist/components/Form/Form.d.ts +0 -30
- package/dist/components/Form/FormFieldCheckbox.d.ts +0 -9
- package/dist/components/Form/FormFieldCheckboxList.d.ts +0 -9
- package/dist/components/Form/FormFieldErrorMessages.d.ts +0 -8
- package/dist/components/Form/FormFieldLabeler.d.ts +0 -8
- package/dist/components/Form/FormImagePicker.d.ts +0 -9
- package/dist/components/Form/FormInput.d.ts +0 -14
- package/dist/components/Form/FormRadioGroup.d.ts +0 -13
- package/dist/components/Form/FormSelect.d.ts +0 -10
- package/dist/components/Form/FormTextarea.d.ts +0 -14
- package/dist/components/Form/form.transformer.d.ts +0 -3
- package/dist/components/Form/form.types.d.ts +0 -92
- package/dist/components/Icons/AddIcon.d.ts +0 -4
- package/dist/components/Icons/AlertsIcon.d.ts +0 -4
- package/dist/components/Icons/BellIcon.d.ts +0 -4
- package/dist/components/Icons/BluetoothIcon.d.ts +0 -4
- package/dist/components/Icons/ChartIcon.d.ts +0 -4
- package/dist/components/Icons/ChartLineColoredIcon.d.ts +0 -4
- package/dist/components/Icons/ChatBoxIcon.d.ts +0 -4
- package/dist/components/Icons/CheckIcon.d.ts +0 -4
- package/dist/components/Icons/ChevronDoubleIcon.d.ts +0 -4
- package/dist/components/Icons/ChevronDownIcon.d.ts +0 -4
- package/dist/components/Icons/ChevronRightIcon.d.ts +0 -4
- package/dist/components/Icons/ClockIcon.d.ts +0 -4
- package/dist/components/Icons/CrossIcon.d.ts +0 -4
- package/dist/components/Icons/DeleteIcon.d.ts +0 -4
- package/dist/components/Icons/DownArrowIcon.d.ts +0 -4
- package/dist/components/Icons/DragIcon.d.ts +0 -4
- package/dist/components/Icons/EditIcon.d.ts +0 -4
- package/dist/components/Icons/EmptyIcon.d.ts +0 -4
- package/dist/components/Icons/EmptyStateDashboardIcon.d.ts +0 -4
- package/dist/components/Icons/ExclamationMarkIcon.d.ts +0 -4
- package/dist/components/Icons/ExportIcon.d.ts +0 -4
- package/dist/components/Icons/EyeIcon.d.ts +0 -4
- package/dist/components/Icons/EyeIconSlashed.d.ts +0 -4
- package/dist/components/Icons/GearColoredIcon.d.ts +0 -4
- package/dist/components/Icons/GearIcon.d.ts +0 -4
- package/dist/components/Icons/GroupColoredIcon.d.ts +0 -4
- package/dist/components/Icons/GroupIcon.d.ts +0 -4
- package/dist/components/Icons/HamburgerIcon.d.ts +0 -4
- package/dist/components/Icons/HeartIcon.d.ts +0 -4
- package/dist/components/Icons/ImageIcon.d.ts +0 -4
- package/dist/components/Icons/InfoIcon.d.ts +0 -4
- package/dist/components/Icons/LeftArrowIcon.d.ts +0 -4
- package/dist/components/Icons/LightBulbIcon.d.ts +0 -4
- package/dist/components/Icons/LinkIcon.d.ts +0 -4
- package/dist/components/Icons/LockIcon.d.ts +0 -4
- package/dist/components/Icons/MessagesIcon.d.ts +0 -4
- package/dist/components/Icons/MouseIcon.d.ts +0 -4
- package/dist/components/Icons/NotesIcon.d.ts +0 -4
- package/dist/components/Icons/PageViewIcon.d.ts +0 -4
- package/dist/components/Icons/PinIcon.d.ts +0 -4
- package/dist/components/Icons/PrintIcon.d.ts +0 -4
- package/dist/components/Icons/RightArrowIcon.d.ts +0 -4
- package/dist/components/Icons/RobotIcon.d.ts +0 -4
- package/dist/components/Icons/SearchCancelIcon.d.ts +0 -4
- package/dist/components/Icons/SearchIcon.d.ts +0 -4
- package/dist/components/Icons/SmallCircleIcon.d.ts +0 -4
- package/dist/components/Icons/SmallDiamondIcon.d.ts +0 -4
- package/dist/components/Icons/SmallSquareIcon.d.ts +0 -4
- package/dist/components/Icons/SpaceRocketIcon.d.ts +0 -4
- package/dist/components/Icons/StarIcon.d.ts +0 -4
- package/dist/components/Icons/StatusColoredIcon.d.ts +0 -4
- package/dist/components/Icons/WarningIcon.d.ts +0 -4
- package/dist/components/Icons/iconWrapper/iconWrapper.d.ts +0 -4
- package/dist/components/Icons/index.d.ts +0 -52
- package/dist/components/Icons/types/IconProps.type.d.ts +0 -8
- package/dist/components/Image/Image.d.ts +0 -10
- package/dist/components/List/ListItem.d.ts +0 -4
- package/dist/components/Modal/ModalBase.d.ts +0 -16
- package/dist/components/Modal/ModalFooter.d.ts +0 -12
- package/dist/components/Modal/ModalHeader.d.ts +0 -6
- package/dist/components/NavMenu/NavMenu.d.ts +0 -16
- package/dist/components/NavMenu/NavMenuContent.d.ts +0 -3
- package/dist/components/NavMenu/NavMenuFooter.d.ts +0 -3
- package/dist/components/NavMenu/NavMenuHeader.d.ts +0 -3
- package/dist/components/NavMenu/NavMenuItem.d.ts +0 -3
- package/dist/components/NavMenu/types/NavMenuFooterProps.type.d.ts +0 -5
- package/dist/components/NavMenu/types/NavMenuHeaderProps.type.d.ts +0 -11
- package/dist/components/NavMenu/types/NavMenuItemProps.type.d.ts +0 -11
- package/dist/components/Page/CRUDPage.types.d.ts +0 -32
- package/dist/components/PageHeader/PageHeader.d.ts +0 -4
- package/dist/components/PageHeader/PageHeader.types.d.ts +0 -28
- package/dist/components/PaginationMenu/PaginationMenu.d.ts +0 -3
- package/dist/components/PaginationMenu/PaginationMenu.types.d.ts +0 -37
- package/dist/components/PaginationMenu/PaginationMenuLarge.d.ts +0 -3
- package/dist/components/PaginationMenu/PaginationMenuSmall.d.ts +0 -3
- package/dist/components/PreviewPhone/PreviewPhone.d.ts +0 -7
- package/dist/components/Section/Section.d.ts +0 -25
- package/dist/components/Select/SelectDropdownIndicator.d.ts +0 -3
- package/dist/components/Select/SelectLoadingIndicator.d.ts +0 -3
- package/dist/components/Spinner/Spinner.d.ts +0 -6
- package/dist/components/Table/Table.d.ts +0 -16
- package/dist/components/Table/Table.utils.d.ts +0 -3
- package/dist/components/Table/TableBody.d.ts +0 -13
- package/dist/components/Table/TableBodyRow.d.ts +0 -10
- package/dist/components/Table/TableHeader.d.ts +0 -7
- package/dist/components/Title/Title.d.ts +0 -31
- package/dist/components/Toaster/Toaster.d.ts +0 -17
- package/dist/components/Toaster/toast-elements-getter.d.ts +0 -22
- package/dist/components/Toaster/toast-progress-animator.d.ts +0 -12
- package/dist/components/ViewItem/ViewItem.d.ts +0 -16
- package/dist/index.d.ts +0 -81
- package/dist/types/general.types.d.ts +0 -8
- /package/dist/{components → src/components}/BaseList/BaseListHeader.d.ts +0 -0
- /package/dist/{components → src/components}/BaseList/DraggableBaseList/index.d.ts +0 -0
- /package/dist/{components → src/components}/BaseList/SortableBaseList/index.d.ts +0 -0
- /package/dist/{components → src/components}/BaseList/index.d.ts +0 -0
- /package/dist/{components → src/components}/Breadcrumbs/index.d.ts +0 -0
- /package/dist/{components → src/components}/DragHandle/index.d.ts +0 -0
- /package/dist/{components → src/components}/Dropzone/index.d.ts +0 -0
- /package/dist/{components → src/components}/FilterBar/index.d.ts +0 -0
- /package/dist/{components → src/components}/Icon/index.d.ts +0 -0
- /package/dist/{components → src/components}/Icons/iconWrapper/index.d.ts +0 -0
- /package/dist/{components → src/components}/Input/SearchInput.d.ts +0 -0
- /package/dist/{components → src/components}/List/index.d.ts +0 -0
- /package/dist/{components → src/components}/Page/index.d.ts +0 -0
- /package/dist/{components → src/components}/PageHeader/index.d.ts +0 -0
- /package/dist/{components → src/components}/Toaster/toast.d.ts +0 -0
- /package/dist/{utils → src/utils}/string.utils.d.ts +0 -0
package/README.md
CHANGED
|
@@ -4,18 +4,12 @@ The `web-ui` repository contains the UI components for Luscii's frontend project
|
|
|
4
4
|
|
|
5
5
|
## Table of contents
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
7
|
+
- 🚀 [Getting started](#getting-started)
|
|
8
|
+
- 📖 [Fonts](#fonts)
|
|
9
|
+
- 📦 [How to use](#how-to-use)
|
|
10
10
|
- 🤝 [Contributing](#contributing)
|
|
11
|
-
- 📖 [Documentation](#documentation)
|
|
12
|
-
- 🌈 [Accessibility](#accessibility)
|
|
13
|
-
- 🧪 [Testing](#testing)
|
|
14
|
-
- 🔰 [Adding icons](#adding-icons)
|
|
15
|
-
- ♻️ [CI setup](#ci-setup)
|
|
16
|
-
- 📗 [Stories](#stories)
|
|
17
11
|
|
|
18
|
-
##
|
|
12
|
+
## Getting started
|
|
19
13
|
|
|
20
14
|
To use WebUI, you need to add it as a dependency to your project:
|
|
21
15
|
|
|
@@ -35,7 +29,18 @@ function MyComponent() {
|
|
|
35
29
|
|
|
36
30
|
### Fonts
|
|
37
31
|
|
|
38
|
-
WebUI uses the
|
|
32
|
+
WebUI uses the Inter font family for most of its text. This font should be provided by your application if you're using WebUI. The weights needed to show the full gamut of weights in the design system are 400, 500, 600 and 700. One way of doing this is using a Google Fonts link in your HTML file:
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
36
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
37
|
+
<link
|
|
38
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
39
|
+
rel="stylesheet"
|
|
40
|
+
/>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For some headings WebUI uses the Avenir Next LT Pro font family. 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:
|
|
39
44
|
|
|
40
45
|
```css
|
|
41
46
|
@font-face {
|
|
@@ -61,178 +66,116 @@ The `font-family` property value is important, as this is what WebUI is referenc
|
|
|
61
66
|
|
|
62
67
|
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.
|
|
63
68
|
|
|
64
|
-
|
|
69
|
+
### LocaleProvider
|
|
65
70
|
|
|
66
|
-
|
|
71
|
+
WebUI exposes a `LocaleProvider`, which is used to make components adjust their data formats to the locale of the application.
|
|
72
|
+
You should wrap your app with the `LocaleProvider`.
|
|
67
73
|
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
```tsx
|
|
75
|
+
import { LocaleProvider } from "@luscii-healthtech/web-ui";
|
|
76
|
+
import React from "react";
|
|
77
|
+
import { createRoot } from "react-dom/client";
|
|
78
|
+
import App from "./App";
|
|
79
|
+
|
|
80
|
+
function start() {
|
|
81
|
+
const root = createRoot(document.querySelector("#root"));
|
|
82
|
+
root.render(
|
|
83
|
+
<LocaleProvider value="nl-NL">
|
|
84
|
+
<App />
|
|
85
|
+
</LocaleProvider>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
71
88
|
```
|
|
72
89
|
|
|
73
|
-
|
|
90
|
+
The locale passed should adhere to the `{language}-{region}` format, for example:
|
|
74
91
|
|
|
75
|
-
|
|
92
|
+
- `nl-NL`
|
|
93
|
+
- `en-GB`
|
|
94
|
+
- `pt-PT`
|
|
95
|
+
- `de-DE`
|
|
96
|
+
- `fr-FR`
|
|
76
97
|
|
|
77
|
-
|
|
78
|
-
- You ran `yarn install` in `cVitals-Web`.
|
|
79
|
-
- You ran `yarn build` in `web-ui`.
|
|
98
|
+
### Tooltip Provider
|
|
80
99
|
|
|
81
|
-
|
|
100
|
+
Install the `@radix-ui/react-tooltip` peer dependency into your project:
|
|
82
101
|
|
|
83
|
-
```
|
|
84
|
-
|
|
102
|
+
```bash
|
|
103
|
+
yarn add @radix-ui/react-tooltip
|
|
85
104
|
```
|
|
86
105
|
|
|
87
|
-
|
|
106
|
+
Wrap your app with the `Tooltip.Provider` component:
|
|
88
107
|
|
|
108
|
+
```tsx
|
|
109
|
+
import * as Tooltip from "@radix-ui/react-tooltip";
|
|
110
|
+
import React from "react";
|
|
111
|
+
import { createRoot } from "react-dom/client";
|
|
112
|
+
import App from "./App";
|
|
113
|
+
|
|
114
|
+
function start() {
|
|
115
|
+
const root = createRoot(document.querySelector("#root"));
|
|
116
|
+
root.render(
|
|
117
|
+
<Tooltip.Provider delayDuration={800} skipDelayDuration={500}>
|
|
118
|
+
<App />
|
|
119
|
+
</Tooltip.Provider>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
89
122
|
```
|
|
90
|
-
yarn test-copy-build
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
When you run `cVitals-Web` again, it should contain your latest updates in the component library. Use this to make sure your changes are solid before opening a pull request.
|
|
94
123
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Thank you for your help in keeping our component library organized and easy to use!
|
|
98
|
-
|
|
99
|
-
When adding components, please make sure to implement them consistently in our projects and that it is clear where and when they should be used. We want to avoid having many similar components. If you want to add components, do so in the `/src/components` directory. When you create new components, add them to Storybook as well. Stories go in the `/stories` directory.
|
|
100
|
-
|
|
101
|
-
If you add new components, please make sure they fit in with our existing ones and that it's clear where and when they should be used. We want to avoid having too many similar components.
|
|
102
|
-
|
|
103
|
-
### Documentation
|
|
104
|
-
|
|
105
|
-
Every component should have proper documentation that explains when, where and how to use it. This sounds like a lot of work, but it doesn't have to be. And it's important, also for you, to quickly see how to best use a component.
|
|
124
|
+
More about this component can be found in its [documentation](https://www.radix-ui.com/primitives/docs/components/tooltip).
|
|
106
125
|
|
|
107
|
-
|
|
126
|
+
## How to use
|
|
108
127
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
128
|
+
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.
|
|
129
|
+
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
|
|
130
|
+
use them at [design.luscii.com](https://design.luscii.com/).
|
|
112
131
|
|
|
113
|
-
|
|
132
|
+
### Example scenario
|
|
114
133
|
|
|
115
|
-
|
|
134
|
+
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:
|
|
116
135
|
|
|
117
|
-
|
|
136
|
+
```tsx
|
|
137
|
+
import { Card, Text, Button } from "@luscii-healthtech/web-ui";
|
|
118
138
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
139
|
+
function MyComponent() {
|
|
140
|
+
return (
|
|
141
|
+
<div className="my-layout">
|
|
142
|
+
<Card>
|
|
143
|
+
<Card.Title>Heart program</Card.Title>
|
|
144
|
+
<Card.Subtitle>79 participants</Card.Subtitle>
|
|
145
|
+
<Card.Text>Some description of how great this program is.</Card.Text>
|
|
146
|
+
<Card.Button>View program</Card.Button>
|
|
147
|
+
</Card>
|
|
148
|
+
</div>
|
|
149
|
+
);
|
|
150
|
+
}
|
|
127
151
|
```
|
|
128
152
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
Stories files (`*stories.tsx`) will show up in Storybook as separate entries/pages for each component. Each component can have multiple stories defined for it, showing different use cases, variants and states of that component.
|
|
132
|
-
It is important to include stories for a lot of these different variants and states, because visual snapshots will be created of these stories by a tool called Chromatic. This allows us to visually track changes to the component over time, and ensure that it looks and behaves correctly across different use cases. By writing stories that showcase all the different ways your component can be used, you can catch issues early and ensure that your component is robust and reliable.
|
|
133
|
-
|
|
134
|
-
You can find the Chromatic project for WebUI [here](https://www.chromatic.com/library?appId=62b0c4d5afd432f7ee70a740).
|
|
135
|
-
|
|
136
|
-
#### Docs file
|
|
153
|
+
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.
|
|
137
154
|
|
|
138
|
-
|
|
155
|
+
## Frequently asked questions
|
|
139
156
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
- Usage guidelines of when and where to use the component.
|
|
143
|
-
- Best practices to show what to do and what not do when working with the component.
|
|
157
|
+
<details>
|
|
158
|
+
<summary>The feature I'm building needs a component from WebUI that doesn't exist.</summary>
|
|
144
159
|
|
|
145
|
-
|
|
146
|
-
> to create a snapshot for that component or show it in the sidebar of Storybook. To omit a story
|
|
147
|
-
> from snapshots, add the following to its parameters:
|
|
148
|
-
>
|
|
149
|
-
> ```ts
|
|
150
|
-
> chromatic: { disableSnapshot: true },
|
|
151
|
-
> ```
|
|
152
|
-
>
|
|
153
|
-
> To hide a story from the sidebar, prefix the story (variable) name
|
|
154
|
-
> with `HIDE_`.
|
|
160
|
+
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.
|
|
155
161
|
|
|
156
|
-
|
|
162
|
+
</details>
|
|
157
163
|
|
|
158
|
-
|
|
164
|
+
<details>
|
|
165
|
+
<summary>The component I'm using doesn't have the props/subcomponents to build my feature.</summary>
|
|
159
166
|
|
|
160
|
-
|
|
161
|
-
However, it is important for developers to write accessible frontend code. Even if our current application is not designed to support screen reader usage. This means following best practices for web accessibility, such as using semantic HTML, providing alternative text for images, and ensuring keyboard navigation is possible. While our primary users may not rely on screen readers, it is important to make our application as inclusive as possible to all users.
|
|
167
|
+
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.
|
|
162
168
|
|
|
163
|
-
|
|
169
|
+
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.
|
|
164
170
|
|
|
165
|
-
|
|
171
|
+
</details>
|
|
166
172
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Interaction testing via Storybook allows to programmatically interact with the component. This is very helpful in testing any logic that the component may use internally and any states of the component that might be hard/impossible to trigger from the outside.
|
|
170
|
-
More information on how to approach writing interaction tests can be found in [this page of the Storybook documentation](https://storybook.js.org/docs/react/writing-tests/interaction-testing#write-an-interaction-test).
|
|
171
|
-
|
|
172
|
-
### Adding icons
|
|
173
|
-
|
|
174
|
-
Add new icons by following these steps:
|
|
175
|
-
|
|
176
|
-
- Add the svg file(s) in `src/components/Icons/icons`.
|
|
177
|
-
- Run `yarn icons`.
|
|
178
|
-
|
|
179
|
-
The icons are optimized by SVGO and transformed into React components by [SVGR](https://react-svgr.com) which are placed in `src/components/Icons`.
|
|
180
|
-
|
|
181
|
-
## CI setup
|
|
182
|
-
|
|
183
|
-
### Branching
|
|
184
|
-
|
|
185
|
-
The `main` branch is our default branch. When you contribute, branch from there and use the following branch naming convention:
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
// Branch naming convention (enforced)
|
|
189
|
-
|
|
190
|
-
major/* // For a new design system or changes that effect our foundations (e.g. typography, color).
|
|
191
|
-
minor/* // For new components and stories.
|
|
192
|
-
patch/* // For small improvements to existing components or stories.
|
|
193
|
-
bug/* // For bugs or fixes.
|
|
194
|
-
chore/* // For things related to development that don't impact the output for consumers and/or users.
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
We have configured at lot of magic for your convenience.
|
|
198
|
-
|
|
199
|
-
### On every PR
|
|
200
|
-
|
|
201
|
-
1. The module build, lint and tests are checked.
|
|
202
|
-
2. The Storybook build is published to Chromatic.
|
|
203
|
-
3. Labels are added based on the branch name and PR size.
|
|
204
|
-
4. Branch names must follow the convention and are checked.
|
|
205
|
-
|
|
206
|
-
### On merge to main
|
|
207
|
-
|
|
208
|
-
1. Drafts a GitHub release.
|
|
209
|
-
2. Bumps the version of the package.
|
|
210
|
-
3. Publishes the new package version to NPM.
|
|
211
|
-
|
|
212
|
-
## Stories
|
|
213
|
-
|
|
214
|
-
### Stories using deprecated props
|
|
215
|
-
|
|
216
|
-
When creating new stories for components with deprecated functionality please prefix the story name with `Deprecated`. In addition, also mark it with a "DEPRECATED" badge via the story's parameters.
|
|
173
|
+
## Contributing
|
|
217
174
|
|
|
218
|
-
|
|
175
|
+
Great to have you help making WebUI better! We have a few guidelines and tips
|
|
176
|
+
to make sure we can keep the library consistent and easy to use. You can find
|
|
177
|
+
them in our [contributing guide](CONTRIBUTING.md).
|
|
219
178
|
|
|
220
|
-
|
|
221
|
-
import { BADGES } from "../.storybook/constants";
|
|
222
|
-
|
|
223
|
-
export const DeprecatedWithPrimaryButtonProps = {
|
|
224
|
-
render: OneColumTemplate,
|
|
225
|
-
args: {
|
|
226
|
-
isOpen: true,
|
|
227
|
-
primaryButtonProps: {
|
|
228
|
-
onClick: action("onClick Primary Button"),
|
|
229
|
-
text: "Primary",
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
parameters: {
|
|
233
|
-
badges: [BADGES.DEPRECATED],
|
|
234
|
-
},
|
|
235
|
-
};
|
|
236
|
-
```
|
|
179
|
+
### Reporting bugs
|
|
237
180
|
|
|
238
|
-
|
|
181
|
+
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.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type Meta } from "@storybook/react-webpack5";
|
|
2
|
+
export declare const BADGES: {
|
|
3
|
+
readonly NEEDS_REVISION: "needs-revision";
|
|
4
|
+
readonly DOCUMENTED: "documented";
|
|
5
|
+
readonly STABLE: "stable";
|
|
6
|
+
readonly NEW: "new";
|
|
7
|
+
readonly DEPRECATED: "deprecated";
|
|
8
|
+
};
|
|
9
|
+
type TAGS = (typeof BADGES)[keyof typeof BADGES][];
|
|
10
|
+
/**
|
|
11
|
+
* A drop-in replacements for `"@storybook/react-webpack5"`'s Meta type which extends the type with web-ui's tags.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* const meta = {
|
|
16
|
+
* title: "Layout/SplitViewLayout",
|
|
17
|
+
* component: Component,
|
|
18
|
+
* tags: ["new"], // `tags` is now type-checked and auto-completes
|
|
19
|
+
* } satisfies MMeta<typeof Component>;
|
|
20
|
+
*/
|
|
21
|
+
export type MMeta<T> = Meta<T> & {
|
|
22
|
+
tags: TAGS;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* For stories specifically used in the Docs page that are not intended
|
|
26
|
+
* to be used for snapshots. E.g. stories that are used to demonstrate
|
|
27
|
+
* what NOT to do, or stories that are used to demonstrate a component
|
|
28
|
+
* and that don't need to show up in snapshots.
|
|
29
|
+
*/
|
|
30
|
+
export declare const NO_SNAPSHOT_PARAMS: {
|
|
31
|
+
chromatic: {
|
|
32
|
+
disableSnapshot: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Decorator } from "@storybook/react-webpack5";
|
|
2
|
+
import { ModalDialog } from "../src";
|
|
3
|
+
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
4
|
+
export declare const LocaleDecorator: Decorator;
|
|
5
|
+
export declare const TooltipDecorator: Decorator;
|
|
6
|
+
export declare const createHoverCardDecorator: (trigger: ReactNode) => Decorator;
|
|
7
|
+
export declare const CenteredDecorator: Decorator;
|
|
8
|
+
/**
|
|
9
|
+
* Wraps the story in a div with the provided role.
|
|
10
|
+
*
|
|
11
|
+
* @example // Wrap the story within <div role="status"><Story /></div>
|
|
12
|
+
*
|
|
13
|
+
* const story = {
|
|
14
|
+
* // ...
|
|
15
|
+
* decorators: [createRoleDecorator("status")]
|
|
16
|
+
* }
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare const createRoleDecorator: (role: HTMLAttributes<HTMLDivElement>["role"]) => Decorator;
|
|
20
|
+
/**
|
|
21
|
+
* Wraps the story in a ModalDialog.
|
|
22
|
+
*
|
|
23
|
+
* @example // Wrap the story within <ModalDialog variant="side-modal" size="l"><ModalDialog.Body><Story /></ModalDialog.Body></ModalDialog>
|
|
24
|
+
*
|
|
25
|
+
* const story = {
|
|
26
|
+
* // ...
|
|
27
|
+
* decorators: [createModalDialogDecorator({ size: "l", variant: "side-modal" })]
|
|
28
|
+
* }
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare const createModalDialogDecorator: (options?: Pick<ComponentProps<typeof ModalDialog>, "variant" | "size">) => Decorator;
|