@luscii-healthtech/web-ui 0.0.0-alpha.00bf0f6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +181 -0
- package/dist/.storybook/constants.d.ts +18 -0
- package/dist/.storybook/decorators.d.ts +31 -0
- package/dist/index.development.js +6041 -0
- package/dist/index.development.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/src/components/Accordion/Accordion.d.ts +15 -0
- package/dist/src/components/Accordion/AccordionItem.d.ts +17 -0
- package/dist/src/components/AccordionList/AccordionList.d.ts +51 -0
- package/dist/src/components/AccordionList/subcomponents/AccordionListActions.d.ts +18 -0
- 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/src/components/BaseList/BaseList.d.ts +7 -0
- package/dist/src/components/BaseList/BaseList.types.d.ts +84 -0
- package/dist/src/components/BaseList/BaseListEmptyState.d.ts +7 -0
- package/dist/src/components/BaseList/BaseListHeader.d.ts +4 -0
- package/dist/src/components/BaseList/BaseListIcon.d.ts +5 -0
- 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/src/components/BaseList/DraggableBaseList/index.d.ts +2 -0
- package/dist/src/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
- package/dist/src/components/BaseList/ListSkeleton/ListSkeleton.d.ts +7 -0
- package/dist/src/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -0
- package/dist/src/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -0
- package/dist/src/components/BaseList/SortableBaseList/index.d.ts +2 -0
- package/dist/src/components/BaseList/index.d.ts +6 -0
- package/dist/src/components/BaseList/utils.d.ts +10 -0
- 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/Breadcrumbs/index.d.ts +2 -0
- package/dist/src/components/ButtonV2/ButtonProps.type.d.ts +104 -0
- package/dist/src/components/ButtonV2/ButtonV2.d.ts +3 -0
- package/dist/src/components/ButtonV2/PrimaryButton.d.ts +3 -0
- package/dist/src/components/ButtonV2/PrimaryIconButton.d.ts +3 -0
- package/dist/src/components/ButtonV2/SecondaryButton.d.ts +3 -0
- 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 +67 -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 +54 -0
- package/dist/src/components/CheckBoxListModal/CheckboxListModal.d.ts +35 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +68 -0
- package/dist/src/components/CheckboxList/CheckboxGroup.d.ts +7 -0
- package/dist/src/components/CheckboxList/CheckboxList.d.ts +10 -0
- package/dist/src/components/CheckboxList/CheckboxList.types.d.ts +74 -0
- 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/src/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +52 -0
- package/dist/src/components/Container/FlexColumn.d.ts +7 -0
- package/dist/src/components/Container/FlexContainer.d.ts +9 -0
- package/dist/src/components/Container/FlexRow.d.ts +7 -0
- package/dist/src/components/Container/types/FlexContainerProps.type.d.ts +26 -0
- 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/src/components/DragHandle/DragHandle.types.d.ts +5 -0
- package/dist/src/components/DragHandle/index.d.ts +2 -0
- package/dist/src/components/Dropdown/Dropdown.d.ts +61 -0
- package/dist/src/components/Dropzone/Dropzone.d.ts +6 -0
- package/dist/src/components/Dropzone/Dropzone.types.d.ts +33 -0
- package/dist/src/components/Dropzone/index.d.ts +2 -0
- package/dist/src/components/EmptyListMessage/EmptyListMessage.d.ts +13 -0
- 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/src/components/FilterBar/FilterBar.d.ts +111 -0
- package/dist/src/components/FilterBar/FilterBar.utils.d.ts +32 -0
- package/dist/src/components/FilterBar/FilterBarProps.type.d.ts +135 -0
- 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/src/components/FilterBar/SortMenu.d.ts +9 -0
- package/dist/src/components/FilterBar/index.d.ts +2 -0
- package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +59 -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/src/components/Icon/Icon.d.ts +17 -0
- package/dist/src/components/Icon/index.d.ts +1 -0
- 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/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/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/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/iconWrapper/index.d.ts +1 -0
- package/dist/src/components/Icons/index.d.ts +288 -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/src/components/InfoField/InfoField.d.ts +28 -0
- package/dist/src/components/Input/Input.d.ts +53 -0
- package/dist/src/components/Input/LabeledInput.d.ts +23 -0
- package/dist/src/components/Input/SearchInput.d.ts +24 -0
- package/dist/src/components/Input/StyledInput.d.ts +12 -0
- package/dist/src/components/Line/Line.d.ts +14 -0
- package/dist/src/components/Link/Link.d.ts +19 -0
- package/dist/src/components/List/List.d.ts +6 -0
- package/dist/src/components/List/List.types.d.ts +30 -0
- package/dist/src/components/List/ListItem.d.ts +4 -0
- package/dist/src/components/List/index.d.ts +5 -0
- package/dist/src/components/LoadingIndicator/LoadingIndicator.d.ts +11 -0
- package/dist/src/components/MediaPicker/ImageCategory.d.ts +14 -0
- package/dist/src/components/MediaPicker/MediaPicker.d.ts +91 -0
- package/dist/src/components/Modal/FullPageModal.d.ts +41 -0
- package/dist/src/components/Modal/FullPageModalHeader.d.ts +13 -0
- package/dist/src/components/Modal/Modal.d.ts +11 -0
- 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/src/components/Modal/subcomponents/FullPageModalActions.d.ts +18 -0
- package/dist/src/components/ModalDialog/ModalDialog.d.ts +97 -0
- package/dist/src/components/NavMenu/NavLayout.d.ts +35 -0
- package/dist/src/components/NotificationBanner/NotificationBanner.d.ts +35 -0
- package/dist/src/components/Page/CRUDPage.d.ts +4 -0
- package/dist/src/components/Page/CRUDPage.types.d.ts +62 -0
- package/dist/src/components/Page/Page.d.ts +56 -0
- package/dist/src/components/Page/index.d.ts +3 -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/PageHeader/index.d.ts +2 -0
- package/dist/src/components/PaginationMenu/PaginationMenu.d.ts +2 -0
- package/dist/src/components/PaginationMenu/PaginationMenu.types.d.ts +62 -0
- package/dist/src/components/PaginationMenu/PaginationMenu.utils.d.ts +15 -0
- 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/src/components/Radio/RadioV2.d.ts +16 -0
- package/dist/src/components/Radio/StyledRadio.d.ts +5 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +33 -0
- package/dist/src/components/RadioGroup/RadioGroupV2.d.ts +10 -0
- package/dist/src/components/Section/Section.d.ts +29 -0
- package/dist/src/components/Section/SectionItem.d.ts +9 -0
- package/dist/src/components/Section/SectionItemWithContent.d.ts +8 -0
- package/dist/src/components/Section/subcomponents/SectionActions.d.ts +21 -0
- 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 +21 -0
- package/dist/src/components/Select/Select.d.ts +49 -0
- 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 +10 -0
- package/dist/src/components/SettingsMenuButton/SettingsMenuButton.d.ts +19 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +9 -0
- package/dist/src/components/Spinner/Spinner.d.ts +6 -0
- package/dist/src/components/Stack/Stack.d.ts +49 -0
- package/dist/src/components/StatusIndicator/StatusIndicator.d.ts +16 -0
- package/dist/src/components/Steps/Step.d.ts +9 -0
- package/dist/src/components/Steps/Steps.d.ts +9 -0
- 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/src/components/Tabbar/Tabbar.d.ts +20 -0
- package/dist/src/components/Tabbar/TabbarItem.d.ts +15 -0
- package/dist/src/components/Table/Table.d.ts +52 -0
- package/dist/src/components/Table/Table.types.d.ts +41 -0
- package/dist/src/components/Table/Table.utils.d.ts +58 -0
- package/dist/src/components/Table/TableBody.d.ts +32 -0
- package/dist/src/components/Table/TableBodyRowDataCell.d.ts +7 -0
- package/dist/src/components/Table/TableFooter.d.ts +7 -0
- package/dist/src/components/Table/TableHeader.d.ts +18 -0
- package/dist/src/components/Tag/Tag.d.ts +31 -0
- package/dist/src/components/Tag/TagGroup.d.ts +23 -0
- package/dist/src/components/Text/Text.d.ts +138 -0
- package/dist/src/components/TextEditor/TextEditor.d.ts +69 -0
- package/dist/src/components/TextLink/TextLink.d.ts +13 -0
- package/dist/src/components/Textarea/Textarea.d.ts +29 -0
- package/dist/src/components/Timeline/Timeline.d.ts +13 -0
- package/dist/src/components/Timeline/TimelineHeader.d.ts +10 -0
- package/dist/src/components/Timeline/TimelineStep.d.ts +10 -0
- 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/Toaster/toast.d.ts +12 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +40 -0
- package/dist/src/components/Tooltip/index.d.ts +1 -0
- package/dist/src/components/UnorderedList/UnorderedList.d.ts +63 -0
- package/dist/src/components/VerticalMenu/VerticalMenu.d.ts +128 -0
- package/dist/src/components/WeekdaysPicker/WeekdaysPicker.d.ts +42 -0
- 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 +126 -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 +43 -0
- package/dist/src/types/general.types.d.ts +11 -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/string.utils.d.ts +7 -0
- package/dist/src/utils/useOutsideClick.d.ts +2 -0
- package/dist/stories/Accordion.stories.d.ts +24 -0
- package/dist/stories/AccordionList.stories.d.ts +109 -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 +43 -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 +50 -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 +23 -0
- package/dist/stories/Chip.stories.d.ts +15 -0
- package/dist/stories/Collapse.stories.d.ts +25 -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 +9506 -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 +13 -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 +35 -0
- package/dist/stories/Input.stories.d.ts +26 -0
- package/dist/stories/LabeledDatePicker.stories.d.ts +56 -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 +20 -0
- package/dist/stories/LinkIcon.stories.d.ts +13 -0
- package/dist/stories/List.stories.d.ts +253 -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 +17572 -0
- package/dist/stories/NavLayout.stories.d.ts +25 -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/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 +14 -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 +17 -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/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/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 +13 -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 +19 -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 +40 -0
- package/dist/stories/VerticalMenu.stories.d.ts +105 -0
- package/dist/stories/WeekdaysPicker.stories.d.ts +40 -0
- package/dist/web-ui-tailwind.css +4611 -0
- package/dist/web-ui.esm.js +2 -0
- package/dist/web-ui.esm.js.map +1 -0
- package/package.json +178 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { ComponentProps, ElementType, ReactNode } from "react";
|
|
2
|
+
import type { ELEVATION } from "../../system/Elevation";
|
|
3
|
+
import { Box } from "../Box/Box";
|
|
4
|
+
import { type TitleProps } from "../Title/Title";
|
|
5
|
+
type TitleAndMaybeActions = {
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Spaces and positions the action components correctly in relation to
|
|
9
|
+
* the styling of the card.
|
|
10
|
+
*
|
|
11
|
+
* @usage
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Card
|
|
14
|
+
* actions={
|
|
15
|
+
* <Card.Actions>
|
|
16
|
+
* <PrimaryButton />
|
|
17
|
+
* <SecondaryButton />
|
|
18
|
+
* </Card.Actions>
|
|
19
|
+
* }
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
actions: ReactNode;
|
|
24
|
+
} | {
|
|
25
|
+
title: undefined;
|
|
26
|
+
actions: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
title?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The `actions` prop can only be used in conjunction with the `title` prop.
|
|
31
|
+
*/
|
|
32
|
+
actions?: never;
|
|
33
|
+
};
|
|
34
|
+
export type Props<C extends ElementType = "div"> = ComponentProps<typeof Box<C>> & {
|
|
35
|
+
border?: boolean;
|
|
36
|
+
children: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Adds a box-shadow to the element based on the design system when hovering
|
|
39
|
+
*/
|
|
40
|
+
elevationOnHover?: keyof typeof ELEVATION;
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not to add the default padding to the card. Set this
|
|
43
|
+
* to `false` if you want to render something full width inside of the
|
|
44
|
+
* card, like an image or a list. You have access to the `Card.Padding`
|
|
45
|
+
* subcomponent to then add back the default padding wherever needed.
|
|
46
|
+
*
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
padding?: boolean;
|
|
50
|
+
} & TitleAndMaybeActions;
|
|
51
|
+
export declare function Card<C extends ElementType = "div">(props: Props<C>): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare namespace Card {
|
|
53
|
+
var Title: (props: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
var TopBar: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
}> & {
|
|
57
|
+
Actions: typeof import("./Actions").Actions;
|
|
58
|
+
};
|
|
59
|
+
var Padding: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
}>;
|
|
62
|
+
var Section: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
63
|
+
children?: ReactNode;
|
|
64
|
+
}>;
|
|
65
|
+
var Actions: import("react").FC<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, FC, ReactNode } from "react";
|
|
2
|
+
import { Actions } from "./Actions";
|
|
3
|
+
type StaticComponents = {
|
|
4
|
+
Actions: typeof Actions;
|
|
5
|
+
};
|
|
6
|
+
type Props = ComponentPropsWithoutRef<"div"> & {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const TopBar: FC<Props> & StaticComponents;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
/**
|
|
4
|
+
* An array of react nodes to be presented in the Carousel.
|
|
5
|
+
*/
|
|
6
|
+
slides?: ReactNode[];
|
|
7
|
+
id?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* aria-label attributes for various controls
|
|
11
|
+
*/
|
|
12
|
+
labels?: {
|
|
13
|
+
/**
|
|
14
|
+
* aria-label attribute for next button
|
|
15
|
+
*/
|
|
16
|
+
nextButton?: string;
|
|
17
|
+
/**
|
|
18
|
+
* aria-label attribute for previous button
|
|
19
|
+
*/
|
|
20
|
+
previousButton?: string;
|
|
21
|
+
/**
|
|
22
|
+
* aria-label attribute for dot indicator button based on its index
|
|
23
|
+
*
|
|
24
|
+
* @example (index) => `Page ${index}`
|
|
25
|
+
*/
|
|
26
|
+
dotButton?: (index: number) => string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const Carousel: FC<Props>;
|
|
30
|
+
export default Carousel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
export type BackgroundColor = "white" | "slate-50";
|
|
3
|
+
export type ImageSize = "small" | "large";
|
|
4
|
+
export interface CenteredHeroProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
imageSize?: ImageSize;
|
|
9
|
+
slots?: {
|
|
10
|
+
bottom?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
background?: BackgroundColor;
|
|
13
|
+
dataTestId?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const CenteredHero: FC<CenteredHeroProps>;
|
|
16
|
+
export default CenteredHero;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ComponentProps, ComponentPropsWithoutRef, ElementType, ReactNode } from "react";
|
|
2
|
+
import { Text } from "../Text/Text";
|
|
3
|
+
type Props = {
|
|
4
|
+
/**
|
|
5
|
+
* Whatever the content of the message is.
|
|
6
|
+
*/
|
|
7
|
+
children: string | ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the person who sent this message.
|
|
11
|
+
*
|
|
12
|
+
* @example "Dr. Mike Brown"
|
|
13
|
+
*/
|
|
14
|
+
sender?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The moment this message was sent or delivered. This
|
|
17
|
+
* can be a full date, or the time, or a relative time,
|
|
18
|
+
* even including other additional information.
|
|
19
|
+
*
|
|
20
|
+
* @example "14:02"
|
|
21
|
+
* @example "Yesterday at 14:02"
|
|
22
|
+
* @example "Delivered"
|
|
23
|
+
*/
|
|
24
|
+
timestamp?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Text to indicate the message was read. Can be a full
|
|
27
|
+
* date, or the time, or a relative time, even including
|
|
28
|
+
* other additional information.
|
|
29
|
+
*
|
|
30
|
+
* @example "Read yesterday at 14:10"
|
|
31
|
+
*/
|
|
32
|
+
readReceipt?: string;
|
|
33
|
+
color?: "blue" | "grey";
|
|
34
|
+
/**
|
|
35
|
+
* Where to position the tip of the chat bubble.
|
|
36
|
+
*/
|
|
37
|
+
tipPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
38
|
+
};
|
|
39
|
+
type RootProps<C extends ElementType> = Props & ComponentPropsWithoutRef<C> & {
|
|
40
|
+
as?: C;
|
|
41
|
+
};
|
|
42
|
+
export declare function ChatBubble<C extends ElementType = "div">(props: RootProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare namespace ChatBubble {
|
|
44
|
+
var Text: typeof ChatBubbleText;
|
|
45
|
+
var DateIndicator: typeof ChatBubbleDateIndicator;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* SUBCOMPONENTS
|
|
49
|
+
*/
|
|
50
|
+
declare function ChatBubbleText(props: ComponentProps<typeof Text>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
declare function ChatBubbleDateIndicator(props: {
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CheckboxGroupItemProps } from "../CheckboxList/CheckboxList.types";
|
|
2
|
+
export type Item = {
|
|
3
|
+
group?: string;
|
|
4
|
+
isPinned?: boolean;
|
|
5
|
+
} & Pick<CheckboxGroupItemProps, "id" | "label" | "isChecked" | "isDisabled">;
|
|
6
|
+
export interface Group {
|
|
7
|
+
title?: string;
|
|
8
|
+
items: Item[];
|
|
9
|
+
}
|
|
10
|
+
interface CheckboxListModalTexts {
|
|
11
|
+
title: string;
|
|
12
|
+
searchInputLabel?: string;
|
|
13
|
+
confirmLabel: string;
|
|
14
|
+
cancelLabel: string;
|
|
15
|
+
searchPlaceHolder?: string;
|
|
16
|
+
emptyState: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CheckboxListModalProps {
|
|
19
|
+
texts: CheckboxListModalTexts;
|
|
20
|
+
/**
|
|
21
|
+
* Accessory component to be rendered above the search input.
|
|
22
|
+
* For example, a button or any control that fit the use case.
|
|
23
|
+
*/
|
|
24
|
+
accessory?: React.ReactNode;
|
|
25
|
+
initialItems: Array<Item>;
|
|
26
|
+
isLoadingInitialItems?: boolean;
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
onSave: (newItems: Item[]) => void;
|
|
29
|
+
onCloseClick: () => void;
|
|
30
|
+
filterItem: (item: Item, searchQuery: string) => boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
hasSearch?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const CheckboxListModal: ({ texts, accessory, initialItems, isLoadingInitialItems, isOpen, onSave, onCloseClick, filterItem, hasSearch, }: CheckboxListModalProps) => JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./Checkbox.scss";
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
/**
|
|
5
|
+
* ID used for semantic targeting, as can be used in attributes like `<label htmlFor="some-id">`.
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The visible text labeling the checkbox element.
|
|
10
|
+
*/
|
|
11
|
+
text?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Helper text that adds some more information on what the option means, or inform
|
|
14
|
+
* the user about the consequences of the checkbox.
|
|
15
|
+
*
|
|
16
|
+
* Only works if the `renderLabel` prop isn't set.
|
|
17
|
+
*/
|
|
18
|
+
explanation?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated - this works exclusively as a checkbox now, if you want a different component,
|
|
21
|
+
* use the `Switch` component.
|
|
22
|
+
*
|
|
23
|
+
* Shows a different checkbox variant. `type="switch"` shows a switch-like component
|
|
24
|
+
* without a visual label.
|
|
25
|
+
*/
|
|
26
|
+
type?: "regular" | "switch";
|
|
27
|
+
/**
|
|
28
|
+
* Set the value.
|
|
29
|
+
* Same as `checked` on `<input type="checkbox" />`.
|
|
30
|
+
*/
|
|
31
|
+
isChecked?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Value for when it is not clear if the state of this checkbox
|
|
34
|
+
* is "checked" or not (for hierarchical checkboxes).
|
|
35
|
+
*/
|
|
36
|
+
isIndeterminate?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Disallow the user to change the checkbox value.
|
|
39
|
+
* Same as `disabled` on `<input type="checkbox" />`.
|
|
40
|
+
*/
|
|
41
|
+
isDisabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The name that the value of the checkbox will be associated with.
|
|
44
|
+
* Same as `name` on `<input type="checkbox" />`.
|
|
45
|
+
*/
|
|
46
|
+
name?: string;
|
|
47
|
+
/**
|
|
48
|
+
* This can be used to retrieve the value it is referring to through onChange.
|
|
49
|
+
*/
|
|
50
|
+
value?: string;
|
|
51
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
52
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement, MouseEvent>) => void;
|
|
53
|
+
className?: string;
|
|
54
|
+
classNameCheckboxLabel?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Visually show that the currently selected value has an issue the user needs to attend to.
|
|
57
|
+
*/
|
|
58
|
+
error?: boolean;
|
|
59
|
+
innerRef?: React.Ref<HTMLInputElement>;
|
|
60
|
+
/**
|
|
61
|
+
* Renders a completely custom label. Can change its contents or
|
|
62
|
+
* appearance based on the props of the checkbox item.
|
|
63
|
+
*
|
|
64
|
+
* Overrides the `text` prop.
|
|
65
|
+
*/
|
|
66
|
+
renderLabel?: (props: CheckboxProps) => JSX.Element | null;
|
|
67
|
+
}
|
|
68
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type CheckboxGroupProps, type CheckboxListItem } from "./CheckboxList.types";
|
|
3
|
+
type Props = CheckboxGroupProps & {
|
|
4
|
+
onStateChange?: (state: CheckboxListItem[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const CheckboxGroup: FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type CheckboxListProps } from "./CheckboxList.types";
|
|
3
|
+
type Props = {
|
|
4
|
+
groups: CheckboxListProps["groups"];
|
|
5
|
+
onChange?: CheckboxListProps["onChange"];
|
|
6
|
+
onStateChange?: (state: CheckboxListProps["groups"]) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export { type Props as CheckboxListProps };
|
|
10
|
+
export declare const CheckboxList: FC<Props>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare enum CheckboxState {
|
|
2
|
+
CHECKED = "checked",
|
|
3
|
+
INDETERMINATE = "indeterminate",
|
|
4
|
+
UNCHECKED = "unchecked"
|
|
5
|
+
}
|
|
6
|
+
export type CheckboxListProps = {
|
|
7
|
+
/**
|
|
8
|
+
* An array of items to render as checkboxes. Each item can be a single item or a group. When the
|
|
9
|
+
* title isn't specified, the group will render as a non-collapsible list. This is the way to
|
|
10
|
+
* render a regular list of checkboxes.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* Single list of checkboxes without visual grouping.
|
|
14
|
+
*
|
|
15
|
+
* ```tsx
|
|
16
|
+
* const groups = [{
|
|
17
|
+
* items: [
|
|
18
|
+
* {
|
|
19
|
+
* id: "1",
|
|
20
|
+
* label: "Item 1",
|
|
21
|
+
* },
|
|
22
|
+
* {
|
|
23
|
+
* id: "2",
|
|
24
|
+
* label: "Item 2",
|
|
25
|
+
* },
|
|
26
|
+
* ],
|
|
27
|
+
* }]
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
groups: CheckboxGroup[];
|
|
31
|
+
onChange: (event: CheckboxChangeEvent) => void;
|
|
32
|
+
className?: string;
|
|
33
|
+
};
|
|
34
|
+
type WithCollapsible = {
|
|
35
|
+
/**
|
|
36
|
+
* When `false` will prevent the checkbox list from being collapsed (also disabling clicking to expand/collapse)
|
|
37
|
+
* in the component and it will be displayed expanded by default.
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
collapsible?: boolean;
|
|
41
|
+
};
|
|
42
|
+
export type CheckboxGroupProps = CheckboxGroup & {
|
|
43
|
+
onChange?: (event: CheckboxChangeEvent) => void;
|
|
44
|
+
className?: string;
|
|
45
|
+
} & WithCollapsible;
|
|
46
|
+
export interface CheckboxGroupItemProps extends CheckboxListItem {
|
|
47
|
+
onChange: (event: CheckboxChangeEvent) => void;
|
|
48
|
+
}
|
|
49
|
+
export interface CheckboxListItem {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
isChecked?: boolean;
|
|
53
|
+
isDisabled?: boolean;
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
export type CheckboxGroup = {
|
|
57
|
+
/**
|
|
58
|
+
* When the title isn't specified, the group will render as a non-collapsible list.
|
|
59
|
+
*/
|
|
60
|
+
title?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The checkbox items to be shown inside of this group.
|
|
63
|
+
*/
|
|
64
|
+
items: CheckboxListItem[];
|
|
65
|
+
/**
|
|
66
|
+
* Whether the group is initially collapsed or not.
|
|
67
|
+
*/
|
|
68
|
+
isCollapsed?: boolean;
|
|
69
|
+
} & WithCollapsible;
|
|
70
|
+
export interface CheckboxChangeEvent {
|
|
71
|
+
id: string;
|
|
72
|
+
newCheckedValue: boolean;
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
type ChipProps = {
|
|
3
|
+
accessory?: React.ReactNode;
|
|
4
|
+
leadingIcon?: React.ReactNode;
|
|
5
|
+
onClick: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
text: string | React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const Chip: ({ accessory, leadingIcon, onClick, text }: ChipProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Use this prop to apply a custom class name to the root element
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Use this prop to control the height of the collapsed content
|
|
10
|
+
* for example by using Tailwinds line-clamp utility classes.
|
|
11
|
+
* Hiding the overflow will be handled by the component.
|
|
12
|
+
*
|
|
13
|
+
* If this prop is not supplied, the component will not collapse and get the height of the content.
|
|
14
|
+
*
|
|
15
|
+
* @example "h-20"
|
|
16
|
+
* @example "ui:line-clamp-5"
|
|
17
|
+
*/
|
|
18
|
+
contentClassName?: string;
|
|
19
|
+
isCollapsed?: boolean;
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
moreIndicator?: ReactNode;
|
|
22
|
+
showMoreIndicator?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare const Collapse: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type ConfirmationDialogChoice, type ConfirmationDialogProps } from "./types/ConfirmationDialog.types";
|
|
3
|
+
export declare const ConfirmationDialogChoices: FC<{
|
|
4
|
+
choices: ConfirmationDialogProps["choices"];
|
|
5
|
+
onChoiceChangeCallback?: (choice: ConfirmationDialogChoice) => void;
|
|
6
|
+
selectedChoice?: ConfirmationDialogChoice;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { IconKey, IconProps } from "../../../components/Icons/types/IconProps.type";
|
|
2
|
+
import type { NotificationBannerColor } from "../../../components/NotificationBanner/NotificationBanner";
|
|
3
|
+
interface ConfirmationDialogTexts {
|
|
4
|
+
/**
|
|
5
|
+
* You can also use the `children` prop for this.
|
|
6
|
+
*/
|
|
7
|
+
message?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* If this is `undefined`, the confirm button will not be shown.
|
|
10
|
+
*/
|
|
11
|
+
confirmLabel?: string;
|
|
12
|
+
cancelLabel: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ConfirmationDialogChoice<T extends string = string> {
|
|
15
|
+
text: string;
|
|
16
|
+
value: T;
|
|
17
|
+
description?: string;
|
|
18
|
+
displaysInfo?: {
|
|
19
|
+
level: NotificationBannerColor;
|
|
20
|
+
text: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ConfirmationDialogProps {
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Defaults to "dialog-small". These are a subset
|
|
27
|
+
* of the sizes of the BaseModal component.
|
|
28
|
+
*/
|
|
29
|
+
size?: "dialog-small" | "dialog-medium";
|
|
30
|
+
texts: ConfirmationDialogTexts;
|
|
31
|
+
isOpen: boolean;
|
|
32
|
+
onCancel: () => void;
|
|
33
|
+
onConfirm?: (choice?: ConfirmationDialogChoice) => void;
|
|
34
|
+
isProcessing?: boolean;
|
|
35
|
+
withTitle?: {
|
|
36
|
+
title: string;
|
|
37
|
+
icon?: React.FC<IconProps> | IconKey;
|
|
38
|
+
};
|
|
39
|
+
choices?: {
|
|
40
|
+
defaultChoice?: ConfirmationDialogChoice["value"];
|
|
41
|
+
onChoiceChange: (choice: ConfirmationDialogChoice) => void;
|
|
42
|
+
options: {
|
|
43
|
+
0: ConfirmationDialogChoice;
|
|
44
|
+
1: ConfirmationDialogChoice;
|
|
45
|
+
} & ConfirmationDialogChoice[];
|
|
46
|
+
};
|
|
47
|
+
dataTestId?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface ConfirmationDialogTitleProps {
|
|
50
|
+
title: ConfirmationDialogProps["withTitle"];
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type FlexContainerProps } from "./types/FlexContainerProps.type";
|
|
3
|
+
/**
|
|
4
|
+
* Container to be used for layouting instead of divs around the project.
|
|
5
|
+
* The spacing here has been coded according to our guidelines.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FlexColumn: FC<FlexContainerProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type FlexContainerBaseProps } from "./types/FlexContainerProps.type";
|
|
3
|
+
/**
|
|
4
|
+
* Container to be used for layouting instead of divs around the project.
|
|
5
|
+
* The spacing here has been coded according to our guidelines.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FlexContainer: FC<FlexContainerBaseProps & {
|
|
8
|
+
type: "column" | "row";
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FC } from "react";
|
|
2
|
+
import { type FlexContainerProps } from "./types/FlexContainerProps.type";
|
|
3
|
+
/**
|
|
4
|
+
* Container to be used for layouting instead of divs around the project.
|
|
5
|
+
* The spacing here has been coded according to our guidelines.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FlexRow: FC<FlexContainerProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type Spacing = "tiny" | "none" | "small" | "medium" | "large";
|
|
3
|
+
type FlexContainerBase = {
|
|
4
|
+
alignItems?: "center" | "start" | "end";
|
|
5
|
+
justifyContent?: "center" | "start" | "end" | "between";
|
|
6
|
+
position?: "static" | "fixed" | "absolute" | "relative" | "sticky";
|
|
7
|
+
verticalSpacing?: Spacing;
|
|
8
|
+
horizontalSpacing?: Spacing;
|
|
9
|
+
/**
|
|
10
|
+
* Applies the default padding (`"ui:p-4"`) inside the container.
|
|
11
|
+
*/
|
|
12
|
+
hasPadding?: boolean;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* If `true`, will make the flexbox full width and not size itui:relative to its content.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
stretch?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type FlexContainerBaseProps = FlexContainerBase & {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
};
|
|
23
|
+
export type FlexContainerProps = Omit<FlexContainerBaseProps, "verticalSpacing" | "horizontalSpacing"> & {
|
|
24
|
+
spacing?: Spacing;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LOCALE_MAP } from "../../system/Locale";
|
|
2
|
+
import "react-datepicker/dist/react-datepicker.min.css";
|
|
3
|
+
import "./DatePicker.scss";
|
|
4
|
+
/**
|
|
5
|
+
* These are the props that are part of the `react-datepicker` library, rather than our own component.
|
|
6
|
+
* When we upgrade `react-datepicker` to v7, we should be able to remove these since that version
|
|
7
|
+
* introduces TypeScript support.
|
|
8
|
+
*/
|
|
9
|
+
type ReactDatePickerProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Limits the choices in the calendar to the dates supplied in this list
|
|
12
|
+
*/
|
|
13
|
+
includeDates?: Date[];
|
|
14
|
+
openToDate?: Date;
|
|
15
|
+
placeholderText?: string;
|
|
16
|
+
portalId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @default undefined
|
|
19
|
+
*/
|
|
20
|
+
zIndex?: 10 | 20 | 30 | 40 | 50;
|
|
21
|
+
/**
|
|
22
|
+
* @default 30
|
|
23
|
+
*/
|
|
24
|
+
popperZIndex?: 10 | 20 | 30 | 40 | 50;
|
|
25
|
+
};
|
|
26
|
+
export type DatePickerProps = {
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated please use the LocaleContext instead
|
|
29
|
+
*
|
|
30
|
+
* The locale determines the language and formatting of the dates
|
|
31
|
+
* shown in this component. E.g. for "nl-NL" the date will be
|
|
32
|
+
* shown as "dd-mm-yyyy", while for "en-GB" it shows as "dd/mm/yyyy".
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
locale?: keyof typeof LOCALE_MAP;
|
|
36
|
+
className?: string;
|
|
37
|
+
selected?: Date;
|
|
38
|
+
hasCloseButton?: boolean;
|
|
39
|
+
closeButtonText?: string;
|
|
40
|
+
onChange?: (date: Date | null) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @default true
|
|
43
|
+
*/
|
|
44
|
+
showMonthDropdown?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
showYearDropdown?: boolean;
|
|
49
|
+
minDate?: Date;
|
|
50
|
+
maxDate?: Date;
|
|
51
|
+
isDisabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* When set to `true`, if e.g. 10 January 2023 is selected and the user
|
|
54
|
+
* changes to a different month or year, the 10th will still be selected.
|
|
55
|
+
* When set to `false`, the date that the user has selected will not change
|
|
56
|
+
* until they select a new date.
|
|
57
|
+
*
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
adjustDateOnChange?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
formatDateWithTime?: boolean;
|
|
65
|
+
shouldCloseOnSelect?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
allowSameDay?: boolean;
|
|
70
|
+
} & ReactDatePickerProps;
|
|
71
|
+
export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type DatePickerProps } from "./DatePicker";
|
|
3
|
+
type Props = DatePickerProps & {
|
|
4
|
+
label?: string;
|
|
5
|
+
helperText?: React.ReactNode;
|
|
6
|
+
errorText?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const LabeledDatePicker: React.FC<Props>;
|
|
9
|
+
export {};
|