@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,3 @@
|
|
|
1
|
+
import type { GroupBase, LoadingIndicatorProps } from "react-select";
|
|
2
|
+
import type { OptionMinimal } from "./Select.types";
|
|
3
|
+
export declare const SelectLoadingIndicator: <Option extends OptionMinimal = OptionMinimal, IsMulti extends boolean = any, Group extends GroupBase<Option> = GroupBase<Option>>(props: LoadingIndicatorProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type FormFieldSize } from "../../types/general.types";
|
|
3
|
+
import "./StyledSelect.scss";
|
|
4
|
+
export declare const StyledSelect: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "width"> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
suffix?: string;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
width?: FormFieldSize | [FormFieldSize, FormFieldSize?, FormFieldSize?, FormFieldSize?, FormFieldSize?];
|
|
9
|
+
isError?: boolean;
|
|
10
|
+
} & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FC, ReactElement } from "react";
|
|
2
|
+
import { type IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
+
type ConfigurationItem<ExtraDataType extends object> = {
|
|
4
|
+
itemId: string;
|
|
5
|
+
itemName: string;
|
|
6
|
+
on: boolean;
|
|
7
|
+
/** Additional info that can be used by the parent component */
|
|
8
|
+
extra?: ExtraDataType;
|
|
9
|
+
};
|
|
10
|
+
export type SettingsMenuButtonProps<ExtraDataType extends object = Record<string, unknown>> = {
|
|
11
|
+
configuration: ConfigurationItem<ExtraDataType>[];
|
|
12
|
+
onConfigurationChange: (newConfig: ConfigurationItem<ExtraDataType>) => void;
|
|
13
|
+
shiftMenuTo?: "right" | "right-md" | "left" | "left-md";
|
|
14
|
+
buttonTitle?: string;
|
|
15
|
+
menuTitle?: string;
|
|
16
|
+
iconComponent: FC<IconProps>;
|
|
17
|
+
};
|
|
18
|
+
export declare const SettingsMenuButton: <ExtraDataType extends object = Record<string, unknown>>(props: SettingsMenuButtonProps<ExtraDataType>) => ReactElement;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { type ComponentProps, type ElementType } from "react";
|
|
2
|
+
import { type SIZES } from "../../system/Sizes";
|
|
3
|
+
import { Box } from "../Box/Box";
|
|
4
|
+
export { Props as StackProps };
|
|
5
|
+
type Size = keyof typeof SIZES;
|
|
6
|
+
type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
|
|
7
|
+
as?: C;
|
|
8
|
+
/**
|
|
9
|
+
* Size of the gutter between items.
|
|
10
|
+
*
|
|
11
|
+
* - `xxs`: Extra extra small size of 6px.
|
|
12
|
+
* - `xs`: Extra small size of 8px.
|
|
13
|
+
* - `s`: Extra small size of 10px.
|
|
14
|
+
* - `m`: Medium size of 12px.
|
|
15
|
+
* - `l`: Large size of 16px.
|
|
16
|
+
* - `xl`: Extra large size of 24px.
|
|
17
|
+
* - `xxl`: Extra extra large size of 32px.
|
|
18
|
+
*/
|
|
19
|
+
gap?: Size;
|
|
20
|
+
/**
|
|
21
|
+
* Positioning of items along the Stack’s cross axis.
|
|
22
|
+
* The values are based on Tailwind's classnames and are therefore limited to the following:
|
|
23
|
+
*/
|
|
24
|
+
align?: "start" | "end" | "center" | "baseline" | "stretch" | "normal";
|
|
25
|
+
/**
|
|
26
|
+
* Positioning of items along the Stack’s main axis.
|
|
27
|
+
* The values are based on Tailwind's classnames and are therefore limited to the following:
|
|
28
|
+
*/
|
|
29
|
+
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
30
|
+
/**
|
|
31
|
+
* Positioning of items along the Stack’s x (horizontal) or y (vertical) axis
|
|
32
|
+
*/
|
|
33
|
+
axis?: "x" | "y";
|
|
34
|
+
/**
|
|
35
|
+
* Reverse the order of the items
|
|
36
|
+
*/
|
|
37
|
+
reverse?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Wrap content over multiple lines
|
|
40
|
+
*/
|
|
41
|
+
wrap?: boolean;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
/**
|
|
45
|
+
* When provided, this divider is rendered between each item in the stack.
|
|
46
|
+
*/
|
|
47
|
+
divider?: React.ReactNode;
|
|
48
|
+
};
|
|
49
|
+
export declare const Stack: <C extends ElementType = "div">(props: Props<C> & ComponentProps<typeof Box>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
type StatusIndicatorProps = {
|
|
3
|
+
status: "fine" | "caution" | "danger";
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Component to display a status indicator along with a message.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* <StatusIndicator status="fine">
|
|
12
|
+
* <Text>Nothing to worry about.</Text>
|
|
13
|
+
* </StatusIndicator>
|
|
14
|
+
*/
|
|
15
|
+
export declare const StatusIndicator: FC<StatusIndicatorProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface StepsProps {
|
|
2
|
+
orderedStepTitles: Array<string>;
|
|
3
|
+
currentStep: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
localization: {
|
|
6
|
+
step: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const Steps: ({ orderedStepTitles, currentStep, className, localization, }: StepsProps) => JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, FC } from "react";
|
|
2
|
+
import { type TextColor, type TextStyle } from "../Text/Text";
|
|
3
|
+
type Props = ComponentPropsWithoutRef<"ul"> & {
|
|
4
|
+
/**
|
|
5
|
+
* The styling variant of the text.
|
|
6
|
+
*
|
|
7
|
+
* @default "base"
|
|
8
|
+
*/
|
|
9
|
+
variant?: TextStyle;
|
|
10
|
+
/**
|
|
11
|
+
* @default "base"
|
|
12
|
+
*/
|
|
13
|
+
color?: TextColor;
|
|
14
|
+
/**
|
|
15
|
+
* The position of the list marker.
|
|
16
|
+
*
|
|
17
|
+
* @default "inside"
|
|
18
|
+
*/
|
|
19
|
+
position?: "inside" | "outside";
|
|
20
|
+
listVariant?: "unordered" | "ordered"
|
|
21
|
+
/**
|
|
22
|
+
* If a styled list would be used inside another, this
|
|
23
|
+
* creates a specific padding (m - 16px) on the list and uses the
|
|
24
|
+
* `list-circle` style on it.
|
|
25
|
+
*/
|
|
26
|
+
| "unordered-nested";
|
|
27
|
+
};
|
|
28
|
+
type StaticComponents = {
|
|
29
|
+
Item: typeof Item;
|
|
30
|
+
};
|
|
31
|
+
export declare const StyledBaseList: FC<Props> & StaticComponents;
|
|
32
|
+
declare const Item: FC<ComponentPropsWithoutRef<"li">>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FC, ComponentProps } from "react";
|
|
2
|
+
import { StyledBaseList } from "./StyledBaseList";
|
|
3
|
+
type Props = Omit<ComponentProps<typeof StyledBaseList>, "listVariant">;
|
|
4
|
+
type StaticComponents = {
|
|
5
|
+
Item: typeof StyledBaseList.Item;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Abstraction of `ol` in accordance to our design system.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* ```
|
|
13
|
+
* <StyledOrderedList variant="sm" color="slate-500">
|
|
14
|
+
<StyledUnorderedList.Item>
|
|
15
|
+
Hello
|
|
16
|
+
</StyledOrderedList.Item>
|
|
17
|
+
<StyledOrderedList.Item>
|
|
18
|
+
There
|
|
19
|
+
</StyledOrderedList.Item>
|
|
20
|
+
</StyledOrderedList>
|
|
21
|
+
<StyledOrderedList/>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const StyledOrderedList: FC<Props> & StaticComponents;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { FC, ComponentProps } from "react";
|
|
2
|
+
import { StyledBaseList } from "./StyledBaseList";
|
|
3
|
+
type Props = Omit<ComponentProps<typeof StyledBaseList>, "listVariant">;
|
|
4
|
+
type StaticComponents = {
|
|
5
|
+
Item: typeof StyledBaseList.Item;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A styled unordered list component that wraps its children with a base styled list.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* This component is intended to be used for rendering unordered lists with consistent styling.
|
|
12
|
+
* It accepts all props supported by `StyledBaseList` and passes them through.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* Basic usage:
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <StyledUnorderedList>
|
|
18
|
+
* <li>Item 1</li>
|
|
19
|
+
* <li>Item 2</li>
|
|
20
|
+
* </StyledUnorderedList>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Nested lists:
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <StyledUnorderedList>
|
|
27
|
+
* <li>
|
|
28
|
+
* Parent Item
|
|
29
|
+
* <StyledUnorderedList>
|
|
30
|
+
* <li>Nested Item 1</li>
|
|
31
|
+
* <li>Nested Item 2</li>
|
|
32
|
+
* </StyledUnorderedList>
|
|
33
|
+
* </li>
|
|
34
|
+
* <li>Another Parent Item</li>
|
|
35
|
+
* </StyledUnorderedList>
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @param children - The list items or nested lists to render within the unordered list.
|
|
39
|
+
* @param listVariant - The variant of the list; defaults to "unordered".
|
|
40
|
+
* @param rest - Additional props passed to the underlying `StyledBaseList`.
|
|
41
|
+
*/
|
|
42
|
+
export declare const StyledUnorderedList: FC<Props> & StaticComponents;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface SwitchProps {
|
|
2
|
+
/**
|
|
3
|
+
* ID used for semantic targeting, as can be used in attributes like `<label htmlFor="some-id">`.
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Set the value.
|
|
8
|
+
* Same as `checked` on `<input type="checkbox" />`.
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Disallow the user to change the checkbox value.
|
|
13
|
+
* Same as `disabled` on `<input type="checkbox" />`.
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The name that the value of the checkbox will be associated with.
|
|
18
|
+
* Same as `name` on `<input type="checkbox" />`.
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
21
|
+
onChange?: (checked: boolean) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default Switcher;
|
|
2
|
+
declare function Switcher({ selectedIndex, onChange, className, itemClassName, items, }: {
|
|
3
|
+
selectedIndex?: number | undefined;
|
|
4
|
+
onChange: any;
|
|
5
|
+
className: any;
|
|
6
|
+
itemClassName: any;
|
|
7
|
+
items: any;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare namespace Switcher {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let items: PropTypes.Validator<(PropTypes.InferProps<{
|
|
12
|
+
name: PropTypes.Requireable<string>;
|
|
13
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
default: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
15
|
+
active: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
16
|
+
showBadge: PropTypes.Requireable<boolean>;
|
|
17
|
+
}>>;
|
|
18
|
+
key: PropTypes.Requireable<string>;
|
|
19
|
+
}> | null | undefined)[]>;
|
|
20
|
+
let onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
let selectedIndex: PropTypes.Requireable<number>;
|
|
22
|
+
let className: PropTypes.Requireable<string>;
|
|
23
|
+
let itemClassName: PropTypes.Requireable<string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default SwitcherItem;
|
|
2
|
+
declare function SwitcherItem({ className, icon, index, isSelected, name, onSelect, }: {
|
|
3
|
+
className: any;
|
|
4
|
+
icon: any;
|
|
5
|
+
index: any;
|
|
6
|
+
isSelected?: boolean | undefined;
|
|
7
|
+
name: any;
|
|
8
|
+
onSelect: any;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare namespace SwitcherItem {
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
let name: PropTypes.Requireable<string>;
|
|
13
|
+
let icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
default: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
15
|
+
active: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
|
|
16
|
+
showBadge: PropTypes.Requireable<boolean>;
|
|
17
|
+
}>>;
|
|
18
|
+
let index: PropTypes.Validator<number>;
|
|
19
|
+
let isSelected: PropTypes.Requireable<boolean>;
|
|
20
|
+
let onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
+
let className: PropTypes.Requireable<string>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type TabItemDetails } from "./TabbarItem";
|
|
2
|
+
export interface TabbarProps<T extends object = Record<string, unknown>> {
|
|
3
|
+
tabs?: TabItemDetails<T>[];
|
|
4
|
+
selectedIndex?: number;
|
|
5
|
+
onSelect?: (params: {
|
|
6
|
+
index: number;
|
|
7
|
+
selectedTab: TabItemDetails<T>;
|
|
8
|
+
}) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
* If this component needs padding, it should be added from the code consuming this component.
|
|
13
|
+
*
|
|
14
|
+
* If this component is being used on a container that will handle spacing, this option disables the padding, allowing the container to take over spacing.
|
|
15
|
+
*/
|
|
16
|
+
withoutPadding?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export { type TabItemDetails };
|
|
19
|
+
export declare const Tabbar: <T extends object = Record<string, unknown>>({ tabs, selectedIndex, onSelect, className, }: TabbarProps<T>) => JSX.Element;
|
|
20
|
+
export default Tabbar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface TabItemDetails<T extends object = Record<string, unknown>> {
|
|
2
|
+
title: string | JSX.Element;
|
|
3
|
+
badgeCount?: number;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
dataTestId?: string;
|
|
6
|
+
extra?: T;
|
|
7
|
+
}
|
|
8
|
+
export interface TabbarItemProps<T extends object = Record<string, unknown>> extends TabItemDetails<T> {
|
|
9
|
+
index: number;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
onSelect?: (index: number) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const TabbarItem: <T extends object = Record<string, unknown>>({ title, index, isSelected, onSelect, className, badgeCount, isLoading, dataTestId, }: TabbarItemProps<T>) => JSX.Element;
|
|
15
|
+
export default TabbarItem;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { type PaginationMenuProps } from "../PaginationMenu/PaginationMenu.types";
|
|
3
|
+
import { type TableFieldConfig } from "./Table.types";
|
|
4
|
+
type SelectableTableRow<Item> = {
|
|
5
|
+
index: number;
|
|
6
|
+
value: Item;
|
|
7
|
+
};
|
|
8
|
+
export interface TableProps<Item> extends HTMLAttributes<HTMLTableElement> {
|
|
9
|
+
items?: Item[];
|
|
10
|
+
fieldConfigurations: TableFieldConfig<Item>[];
|
|
11
|
+
emptyRowsText: string;
|
|
12
|
+
emptyFieldContentText?: string;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
showHeader?: boolean;
|
|
15
|
+
paginationMenuProps?: PaginationMenuProps;
|
|
16
|
+
onRowClick?: (item: Item) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* When `true`, will render checkboxes as the first column of each row,
|
|
21
|
+
* including the header. Allowing for multiple rows to be selected.
|
|
22
|
+
*
|
|
23
|
+
* Two callbacks can control this behavior:
|
|
24
|
+
* - The one for each row selected `onSelectedRow`,
|
|
25
|
+
* triggered by the checkbox in the table row.
|
|
26
|
+
* - The one for all rows selected `onSelectedAllRows`,
|
|
27
|
+
* triggered by the checkbox in the table header.
|
|
28
|
+
*
|
|
29
|
+
* Turning this configuration on also requires `selectedItems` to be passed as a prop,
|
|
30
|
+
* the shape of this prop is:
|
|
31
|
+
*
|
|
32
|
+
* `Array<{ index: number; value: Item }>` -> Where `Item` is the generic shape
|
|
33
|
+
* passed to the table, in the `props.items` list.
|
|
34
|
+
*
|
|
35
|
+
* Also gives access to the `onSelectedRowsChange` callback, if you need to use it.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
isSelectable?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Used to render components on the header for when one or all
|
|
41
|
+
* rows are selected.
|
|
42
|
+
*
|
|
43
|
+
* Ideally this will be one or more buttons for specific actions.
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
rowSelectionHeaderAccessories?: ReactNode;
|
|
48
|
+
selectedItems?: Array<SelectableTableRow<Item>>;
|
|
49
|
+
onSelectedRowsChange?: (params: Array<SelectableTableRow<Item>>) => void;
|
|
50
|
+
}
|
|
51
|
+
export declare function Table<Item>({ items, fieldConfigurations, emptyRowsText, emptyFieldContentText, isLoading, showHeader, paginationMenuProps, onRowClick, className, dataTestId, isSelectable, selectedItems, onSelectedRowsChange, rowSelectionHeaderAccessories, ...otherAttributes }: TableProps<Item>): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
2
|
+
type TableFieldConfigBase = {
|
|
3
|
+
key: string;
|
|
4
|
+
headerText?: string;
|
|
5
|
+
onlyShowContentOnHovering?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type TableFieldConfigWithContent<Item> = TableFieldConfigBase & {
|
|
8
|
+
content: (item: Item) => TableFieldContent<Item>;
|
|
9
|
+
render?: never;
|
|
10
|
+
};
|
|
11
|
+
type TableFieldConfigWithComponent<Item> = TableFieldConfigBase & {
|
|
12
|
+
render: (item: Item) => JSX.Element;
|
|
13
|
+
content?: never;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* By adding the `content` property, it will use an opinionated layout with the <Text /> and optionally the <Tag /> component.
|
|
17
|
+
* By adding the `render` property, it will render any component returned in the function, based on the item (with type) passed.
|
|
18
|
+
*/
|
|
19
|
+
export type TableFieldConfig<Item> = TableFieldConfigWithComponent<Item> | TableFieldConfigWithContent<Item>;
|
|
20
|
+
export type TableFieldContent<Item> = TableFieldText | [TableFieldAction<Item>?, TableFieldAction<Item>?];
|
|
21
|
+
export interface TableFieldText {
|
|
22
|
+
text?: string;
|
|
23
|
+
description?: {
|
|
24
|
+
content: string;
|
|
25
|
+
breakAllWord?: boolean;
|
|
26
|
+
};
|
|
27
|
+
breakAllWord?: boolean;
|
|
28
|
+
tag?: {
|
|
29
|
+
text: string;
|
|
30
|
+
color: "red" | "amber" | "green" | "gray" | "blue";
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export type TableFieldAction<Item> = Pick<BaseButtonProps, "isDisabled" | "title" | "icon"> & {
|
|
34
|
+
key: string;
|
|
35
|
+
/**
|
|
36
|
+
* @param item - the data in the row when this clicked
|
|
37
|
+
* @returns void
|
|
38
|
+
*/
|
|
39
|
+
handleClick: (item: Item) => void;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type PaginationMenuProps } from "../PaginationMenu/PaginationMenu.types";
|
|
2
|
+
import { type TableFieldText, type TableFieldAction, type TableFieldContent } from "./Table.types";
|
|
3
|
+
export declare function isTableFieldText<Item>(content: TableFieldContent<Item>): content is TableFieldText;
|
|
4
|
+
export declare function isTableFieldAction<Item>(content: TableFieldContent<Item>): content is [TableFieldAction<Item>?, TableFieldAction<Item>?];
|
|
5
|
+
export declare const shouldShowPagination: (paginationMenuProps: PaginationMenuProps | undefined) => paginationMenuProps is PaginationMenuProps;
|
|
6
|
+
/**
|
|
7
|
+
* This function is to be used when the data we need can be completely on the client side.
|
|
8
|
+
* By doing so we have a centralized way to deal with pagination.
|
|
9
|
+
*
|
|
10
|
+
* For server side data (e.g.: pagination on the API), do not use this and rely on the API instead.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* const chunkSize = 17;
|
|
14
|
+
* const totalItems = 200;
|
|
15
|
+
*
|
|
16
|
+
* // Create an array with 200 items [0, 1, 2, ..., 199]
|
|
17
|
+
* const array = Array.from(Array(totalItems).keys());
|
|
18
|
+
*
|
|
19
|
+
* // Split array into chunks of 17, where the least one will have only 13 items.
|
|
20
|
+
* const chunks = chunkArray(array, chunkSize);
|
|
21
|
+
*
|
|
22
|
+
* console.log(chunks);
|
|
23
|
+
* // Output:
|
|
24
|
+
* // [
|
|
25
|
+
* // [0, 1, 2, ..., 16],
|
|
26
|
+
* // [17, 18, 19, ..., 33],
|
|
27
|
+
* // ...
|
|
28
|
+
* // [187, 188, 189, ..., 199]
|
|
29
|
+
* // ]
|
|
30
|
+
*/
|
|
31
|
+
export declare function prepareClientSidePagination<Item>({
|
|
32
|
+
/**
|
|
33
|
+
* The array to be split into chunks.
|
|
34
|
+
*/
|
|
35
|
+
items,
|
|
36
|
+
/**
|
|
37
|
+
* The size of each page.
|
|
38
|
+
*/
|
|
39
|
+
pageSize, }: {
|
|
40
|
+
items: Array<Item>;
|
|
41
|
+
pageSize: number;
|
|
42
|
+
}): {
|
|
43
|
+
pageSlices: Array<Array<Item>>;
|
|
44
|
+
/**
|
|
45
|
+
* The size of the collection.
|
|
46
|
+
*/
|
|
47
|
+
totalItems: number;
|
|
48
|
+
/**
|
|
49
|
+
* The amount of pages based on the number of items.
|
|
50
|
+
*/
|
|
51
|
+
pages: number;
|
|
52
|
+
/**
|
|
53
|
+
* Utility function to help getting items from a specific page.
|
|
54
|
+
* @param pageNumber - the page being seeked
|
|
55
|
+
* @returns - the array containing the items of a specific page.
|
|
56
|
+
*/
|
|
57
|
+
getItemsFromPage: (pageNumber: number) => Array<Item>;
|
|
58
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type TableFieldConfig } from "./Table.types";
|
|
2
|
+
export interface TableBody<RowData> {
|
|
3
|
+
items?: RowData[];
|
|
4
|
+
selectedItems?: {
|
|
5
|
+
index: number;
|
|
6
|
+
}[];
|
|
7
|
+
fieldConfigurations: TableFieldConfig<RowData>[];
|
|
8
|
+
emptyItemsText: string;
|
|
9
|
+
emptyFieldContentText?: string;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
showEmptyView: boolean;
|
|
12
|
+
onRowClick?: (item: RowData) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Property to use when the table does not have a footer,
|
|
16
|
+
* and we want to preserve the rounded layout.
|
|
17
|
+
*/
|
|
18
|
+
lastRowRounded: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Property to use when the table does not have a header,
|
|
21
|
+
* and we want to preserve the rounded layout.
|
|
22
|
+
*/
|
|
23
|
+
topRowRounded: boolean;
|
|
24
|
+
isSelectable?: boolean;
|
|
25
|
+
onSelectRow?: (params: {
|
|
26
|
+
checked: boolean;
|
|
27
|
+
rowIndex: number;
|
|
28
|
+
value: RowData;
|
|
29
|
+
}) => void;
|
|
30
|
+
colSpan: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function TableBody<Item>(props: TableBody<Item>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TableFieldConfig } from "./Table.types";
|
|
2
|
+
export interface TableBodyRowDataCellProps<Item> {
|
|
3
|
+
item: Item;
|
|
4
|
+
fieldConfig: TableFieldConfig<Item>;
|
|
5
|
+
emptyFieldContentText?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function TableBodyRowDataCell<Item>(props: TableBodyRowDataCellProps<Item>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type PaginationMenuProps } from "../PaginationMenu/PaginationMenu.types";
|
|
2
|
+
interface TableFooterProps {
|
|
3
|
+
colSpan: number;
|
|
4
|
+
paginationMenuProps: PaginationMenuProps;
|
|
5
|
+
}
|
|
6
|
+
export declare const TableFooter: (props: TableFooterProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TableFieldConfig } from "./Table.types";
|
|
3
|
+
export type TableHeaderProps<Item> = {
|
|
4
|
+
fieldConfigurations: TableFieldConfig<Item>[];
|
|
5
|
+
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The combination of checkbox and action button above the table,
|
|
8
|
+
* replaces the default header when there are one or more items selected.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
selectAllComponent?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The checkbox next to the other headers, can be used to select all items.
|
|
14
|
+
*/
|
|
15
|
+
selectAllCheckbox?: ReactNode;
|
|
16
|
+
colSpan: number;
|
|
17
|
+
};
|
|
18
|
+
export declare function TableHeader<Item>(props: TableHeaderProps<Item>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, FC, ReactNode } from "react";
|
|
2
|
+
type Color = "red" | "amber" | "green" | "gray" | "blue";
|
|
3
|
+
type Size = "base" | "small";
|
|
4
|
+
interface TagPropsShared extends ComponentPropsWithoutRef<"span"> {
|
|
5
|
+
colorTheme?: Color;
|
|
6
|
+
size?: Size;
|
|
7
|
+
variant?: "flat" | "bordered";
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Truncate the text if it overflows the tag.
|
|
11
|
+
*/
|
|
12
|
+
truncate?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
interface PropsWithChildren extends TagPropsShared {
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `children` instead
|
|
19
|
+
*/
|
|
20
|
+
text?: never;
|
|
21
|
+
}
|
|
22
|
+
interface PropsWithText extends TagPropsShared {
|
|
23
|
+
children?: never;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `children` instead
|
|
26
|
+
*/
|
|
27
|
+
text: string;
|
|
28
|
+
}
|
|
29
|
+
export type Props = PropsWithChildren | PropsWithText;
|
|
30
|
+
export declare const Tag: FC<Props>;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
import { type Props as TagProps } from "./Tag";
|
|
3
|
+
interface PropsWithTags {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use `children` instead
|
|
6
|
+
*/
|
|
7
|
+
tags?: TagProps[];
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Size of each tag rendered as a child is dictated by this child itself.
|
|
10
|
+
*/
|
|
11
|
+
tagSize?: TagProps["size"];
|
|
12
|
+
children?: never;
|
|
13
|
+
}
|
|
14
|
+
interface PropsWithChildren {
|
|
15
|
+
tags?: never;
|
|
16
|
+
tagSize?: never;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
type Props = (PropsWithTags | PropsWithChildren) & {
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const TagGroup: FC<Props>;
|
|
23
|
+
export {};
|