@luscii-healthtech/web-ui 46.0.0 → 46.0.1
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/dist/src/generated/components/Accordion/Accordion.d.ts +15 -0
- package/dist/src/generated/components/Accordion/AccordionItem.d.ts +17 -0
- package/dist/src/generated/components/AccordionList/AccordionList.d.ts +51 -0
- package/dist/src/generated/components/AccordionList/subcomponents/AccordionListActions.d.ts +18 -0
- package/dist/src/generated/components/Alerts/AlertWidget.d.ts +20 -0
- package/dist/src/generated/components/AsideLayout/AsideLayout.d.ts +7 -0
- package/dist/src/generated/components/Avatar/Avatar.d.ts +53 -0
- package/dist/src/generated/components/Avatar/AvatarGroup.d.ts +31 -0
- package/dist/src/generated/components/Badge/Badge.d.ts +11 -0
- package/dist/src/generated/components/BaseList/BaseList.d.ts +7 -0
- package/dist/src/generated/components/BaseList/BaseList.types.d.ts +88 -0
- package/dist/src/generated/components/BaseList/BaseListEmptyState.d.ts +7 -0
- package/dist/src/generated/components/BaseList/BaseListHeader.d.ts +4 -0
- package/dist/src/generated/components/BaseList/BaseListIcon.d.ts +5 -0
- package/dist/src/generated/components/BaseList/BaseListItem.d.ts +4 -0
- package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseList.d.ts +4 -0
- package/dist/src/generated/components/BaseList/DraggableBaseList/DraggableBaseListItem.d.ts +3 -0
- package/dist/src/generated/components/BaseList/DraggableBaseList/index.d.ts +2 -0
- package/dist/src/generated/components/BaseList/ListSkeleton/ListItemSkeleton.d.ts +1 -0
- package/dist/src/generated/components/BaseList/ListSkeleton/ListSkeleton.d.ts +7 -0
- package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseList.d.ts +4 -0
- package/dist/src/generated/components/BaseList/SortableBaseList/SortableBaseListItem.d.ts +3 -0
- package/dist/src/generated/components/BaseList/SortableBaseList/index.d.ts +2 -0
- package/dist/src/generated/components/BaseList/index.d.ts +6 -0
- package/dist/src/generated/components/BaseList/utils.d.ts +10 -0
- package/dist/src/generated/components/Box/Box.d.ts +39 -0
- package/dist/src/generated/components/Breadcrumbs/BreadcrumbItem.d.ts +4 -0
- package/dist/src/generated/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/src/generated/components/Breadcrumbs/Breadcrumbs.types.d.ts +25 -0
- package/dist/src/generated/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/src/generated/components/ButtonV2/ButtonProps.type.d.ts +104 -0
- package/dist/src/generated/components/ButtonV2/ButtonV2.d.ts +3 -0
- package/dist/src/generated/components/ButtonV2/PrimaryButton.d.ts +3 -0
- package/dist/src/generated/components/ButtonV2/PrimaryIconButton.d.ts +3 -0
- package/dist/src/generated/components/ButtonV2/SecondaryButton.d.ts +3 -0
- package/dist/src/generated/components/ButtonV2/SecondaryIconButton.d.ts +3 -0
- package/dist/src/generated/components/ButtonV2/TertiaryButton.d.ts +3 -0
- package/dist/src/generated/components/ButtonV2/TertiaryIconButton.d.ts +15 -0
- package/dist/src/generated/components/Card/Actions.d.ts +2 -0
- package/dist/src/generated/components/Card/Card.d.ts +78 -0
- package/dist/src/generated/components/Card/Padding.d.ts +6 -0
- package/dist/src/generated/components/Card/Section.d.ts +6 -0
- package/dist/src/generated/components/Card/TopBar.d.ts +10 -0
- package/dist/src/generated/components/Carousel/Carousel.d.ts +30 -0
- package/dist/src/generated/components/CenteredHero/CenteredHero.d.ts +16 -0
- package/dist/src/generated/components/ChatBubble/ChatBubble.d.ts +58 -0
- package/dist/src/generated/components/CheckBoxListModal/CheckboxListModal.d.ts +35 -0
- package/dist/src/generated/components/Checkbox/Checkbox.d.ts +81 -0
- package/dist/src/generated/components/Checkbox/LabeledCheckbox.d.ts +75 -0
- package/dist/src/generated/components/Checkbox/LabeledCheckboxCardGroup.d.ts +26 -0
- package/dist/src/generated/components/Checkbox/LabeledCheckboxGroup.d.ts +23 -0
- package/dist/src/generated/components/Checkbox/StyledCheckbox.d.ts +4 -0
- package/dist/src/generated/components/CheckboxList/CheckboxGroup.d.ts +7 -0
- package/dist/src/generated/components/CheckboxList/CheckboxList.d.ts +10 -0
- package/dist/src/generated/components/CheckboxList/CheckboxList.types.d.ts +74 -0
- package/dist/src/generated/components/Chip/Chip.d.ts +9 -0
- package/dist/src/generated/components/Collapse/Collapse.d.ts +25 -0
- package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialog.d.ts +3 -0
- package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogChoices.d.ts +7 -0
- package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogMessage.d.ts +4 -0
- package/dist/src/generated/components/ConfirmationDialog/ConfirmationDialogTitle.d.ts +3 -0
- package/dist/src/generated/components/ConfirmationDialog/types/ConfirmationDialog.types.d.ts +52 -0
- package/dist/src/generated/components/Container/FlexColumn.d.ts +7 -0
- package/dist/src/generated/components/Container/FlexContainer.d.ts +9 -0
- package/dist/src/generated/components/Container/FlexRow.d.ts +7 -0
- package/dist/src/generated/components/Container/types/FlexContainerProps.type.d.ts +26 -0
- package/dist/src/generated/components/DatePicker/DatePicker.d.ts +72 -0
- package/dist/src/generated/components/DatePicker/LabeledDatePicker.d.ts +9 -0
- package/dist/src/generated/components/DetailsDisclosure/DetailsDisclosure.d.ts +87 -0
- package/dist/src/generated/components/Divider/Divider.d.ts +36 -0
- package/dist/src/generated/components/DragHandle/DragHandle.d.ts +6 -0
- package/dist/src/generated/components/DragHandle/DragHandle.types.d.ts +5 -0
- package/dist/src/generated/components/DragHandle/index.d.ts +2 -0
- package/dist/src/generated/components/Dropdown/Dropdown.d.ts +61 -0
- package/dist/src/generated/components/Dropzone/Dropzone.d.ts +6 -0
- package/dist/src/generated/components/Dropzone/Dropzone.types.d.ts +33 -0
- package/dist/src/generated/components/Dropzone/index.d.ts +2 -0
- package/dist/src/generated/components/EmptyListMessage/EmptyListMessage.d.ts +13 -0
- package/dist/src/generated/components/FilePreviewModal/FilePreview.d.ts +25 -0
- package/dist/src/generated/components/FileUpload/FileUpload.d.ts +36 -0
- package/dist/src/generated/components/FilterBar/ActiveFilters.d.ts +9 -0
- package/dist/src/generated/components/FilterBar/FilterBar.d.ts +111 -0
- package/dist/src/generated/components/FilterBar/FilterBar.utils.d.ts +32 -0
- package/dist/src/generated/components/FilterBar/FilterBarProps.type.d.ts +135 -0
- package/dist/src/generated/components/FilterBar/FilterMenu.d.ts +10 -0
- package/dist/src/generated/components/FilterBar/FiltersMenus.d.ts +11 -0
- package/dist/src/generated/components/FilterBar/PresetFiltersMenu.d.ts +9 -0
- package/dist/src/generated/components/FilterBar/SortMenu.d.ts +9 -0
- package/dist/src/generated/components/FilterBar/index.d.ts +2 -0
- package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +64 -0
- package/dist/src/generated/components/HoverCard/HoverCard.d.ts +40 -0
- package/dist/src/generated/components/HoverCard/index.d.ts +1 -0
- package/dist/src/generated/components/HoverIndicatorControl/HoverIndicatorControl.d.ts +24 -0
- package/dist/src/generated/components/Icon/Icon.d.ts +17 -0
- package/dist/src/generated/components/Icon/index.d.ts +1 -0
- package/dist/src/generated/components/Icons/AbsentIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/AddNoteIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/AlarmClockIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/AmberAlertIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ArrowBackward.d.ts +4 -0
- package/dist/src/generated/components/Icons/ArrowForward.d.ts +4 -0
- package/dist/src/generated/components/Icons/AssignIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/AssignedIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/BellIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/BellIconSlashed.d.ts +4 -0
- package/dist/src/generated/components/Icons/BluetoothIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/BrushIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CakeIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CalendarDayIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CalendarMonthIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CalendarRepeatIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChartBarsIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChartLineAndBarsIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChartLineIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChatBubbleIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChatBubbleWithTextIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CheckIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChevronDoubleIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChevronDownIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChevronLeftIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ChevronRightIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ClockIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CogwheelIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CompareIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CopyToClipboardIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CrossIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CrossInCircleIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/CrossInFilledCircleIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/DatabaseIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/DownloadIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/DragIndicatorIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/EarthIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/EmailIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/EmojiIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/EmptyIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ExclamationMarkIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ExportIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ExternalLinkIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/EyeClosedIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/EyeOpenIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/FilterIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/FireIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/FirstAidKitIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/FlagIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/FolderIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ForwardIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/GifIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/GrayAlertIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/GroupIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/GroupOfThreeIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/HamburgerIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/HandUp.d.ts +4 -0
- package/dist/src/generated/components/Icons/HandshakeIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/HeartIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/HeartMinusIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/HomeIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/IdBadgeIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ImageIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ImageLibraryIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/InfoIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/LifebuoyIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/LightBulbIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/LinkIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ListDescIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ListIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/LockIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/LogInIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/LogOutIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/MessageWithArrowIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/MoreIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/MouseIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/NoteIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/OpenAlertIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/OpenFolderIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PageIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PageViewIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PaperclipIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PatientIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PencilIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PersonIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PhoneIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PieChartIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PinIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PlusIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/PrinterIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/RedAlertIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/RobotIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/RocketIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SearchIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SendIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ShareIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SidebarIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SmallArrowDownIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SmallArrowUpIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SmallCircleIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SmallDiamondIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SmallSquareIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SmallUpsideDownTriangleIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/StarFilledIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/StarIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/StopwatchIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/SummaryIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/TadaIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/ThresholdIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/TrashBinIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/TreeIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/UnassignedIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/UnlinkIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/UnpinIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/UploadIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/VideoIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/WorkflowIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/iconWrapper/iconWrapper.d.ts +4 -0
- package/dist/src/generated/components/Icons/iconWrapper/index.d.ts +1 -0
- package/dist/src/generated/components/Icons/index.d.ts +294 -0
- package/dist/src/generated/components/Icons/special-icons/AmberAlertColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/BeterDichtbijColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/ChartLineColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/CheckFilledColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/FlagDeColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/FlagFrColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/FlagNlColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/FlagPtColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/FlagUkColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/GearColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/GrayAlertColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/GreenAlertColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/GroupColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/RedAlertColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/StatusActiveColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/StatusAddedColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/StatusBlockedColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/StatusCancelledColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/StatusColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/StatusStoppedColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/VaultColoredIcon.d.ts +4 -0
- package/dist/src/generated/components/Icons/special-icons/index.d.ts +21 -0
- package/dist/src/generated/components/Icons/types/IconProps.type.d.ts +18 -0
- package/dist/src/generated/components/Image/Image.d.ts +17 -0
- package/dist/src/generated/components/InfoField/InfoField.d.ts +28 -0
- package/dist/src/generated/components/Input/Input.d.ts +55 -0
- package/dist/src/generated/components/Input/LabeledInput.d.ts +24 -0
- package/dist/src/generated/components/Input/SearchInput.d.ts +24 -0
- package/dist/src/generated/components/Input/StyledInput.d.ts +14 -0
- package/dist/src/generated/components/InputSelect/InputSelect.d.ts +37 -0
- package/dist/src/generated/components/InputSelect/InputSelect.utils.d.ts +9 -0
- package/dist/src/generated/components/InputSelect/InputSelectInput.d.ts +11 -0
- package/dist/src/generated/components/InputSelect/InputSelectSelect.d.ts +9 -0
- package/dist/src/generated/components/Line/Line.d.ts +14 -0
- package/dist/src/generated/components/Link/Link.d.ts +19 -0
- package/dist/src/generated/components/List/List.d.ts +6 -0
- package/dist/src/generated/components/List/List.types.d.ts +30 -0
- package/dist/src/generated/components/List/ListItem.d.ts +4 -0
- package/dist/src/generated/components/List/index.d.ts +5 -0
- package/dist/src/generated/components/LoadingIndicator/LoadingIndicator.d.ts +11 -0
- package/dist/src/generated/components/MediaPicker/ImageCategory.d.ts +14 -0
- package/dist/src/generated/components/MediaPicker/MediaPicker.d.ts +91 -0
- package/dist/src/generated/components/Modal/FullPageModal.d.ts +41 -0
- package/dist/src/generated/components/Modal/FullPageModalHeader.d.ts +13 -0
- package/dist/src/generated/components/Modal/Modal.d.ts +11 -0
- package/dist/src/generated/components/Modal/ModalBase.d.ts +21 -0
- package/dist/src/generated/components/Modal/ModalFooter.d.ts +27 -0
- package/dist/src/generated/components/Modal/ModalHeader.d.ts +6 -0
- package/dist/src/generated/components/Modal/subcomponents/FullPageModalActions.d.ts +18 -0
- package/dist/src/generated/components/ModalDialog/ModalDialog.d.ts +111 -0
- package/dist/src/generated/components/ModalDialog/use-on-close-animation-finished.d.ts +8 -0
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +77 -0
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormContext.d.ts +8 -0
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +11 -0
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +21 -0
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +9 -0
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormText.d.ts +8 -0
- package/dist/src/generated/components/NavMenu/NavLayout.d.ts +39 -0
- package/dist/src/generated/components/NotificationBanner/NotificationBanner.d.ts +35 -0
- package/dist/src/generated/components/Page/CRUDPage.d.ts +4 -0
- package/dist/src/generated/components/Page/CRUDPage.types.d.ts +83 -0
- package/dist/src/generated/components/Page/Page.d.ts +56 -0
- package/dist/src/generated/components/Page/index.d.ts +3 -0
- package/dist/src/generated/components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/src/generated/components/PageHeader/PageHeader.types.d.ts +46 -0
- package/dist/src/generated/components/PageHeader/index.d.ts +2 -0
- package/dist/src/generated/components/PageWithCenteredContentLayout/PageWithCenteredContentLayout.d.ts +28 -0
- package/dist/src/generated/components/PaginationMenu/PaginationMenu.d.ts +2 -0
- package/dist/src/generated/components/PaginationMenu/PaginationMenu.types.d.ts +62 -0
- package/dist/src/generated/components/PaginationMenu/PaginationMenu.utils.d.ts +15 -0
- package/dist/src/generated/components/PaginationMenu/PaginationMenuCursor.d.ts +3 -0
- package/dist/src/generated/components/PaginationMenu/PaginationMenuLarge.d.ts +3 -0
- package/dist/src/generated/components/PaginationMenu/PaginationMenuSmall.d.ts +2 -0
- package/dist/src/generated/components/PreviewPhone/PreviewPhone.d.ts +7 -0
- package/dist/src/generated/components/PreviewPhone/useWindowDimensions.d.ts +4 -0
- package/dist/src/generated/components/Radio/LabeledRadio.d.ts +67 -0
- package/dist/src/generated/components/Radio/LabeledRadioGroup.d.ts +23 -0
- package/dist/src/generated/components/Radio/RadioV2.d.ts +23 -0
- package/dist/src/generated/components/Radio/StyledRadio.d.ts +4 -0
- package/dist/src/generated/components/RadioGroup/RadioGroupV2.d.ts +23 -0
- package/dist/src/generated/components/RangeCoverage/RangeCoverage.d.ts +72 -0
- package/dist/src/generated/components/Section/Section.d.ts +29 -0
- package/dist/src/generated/components/Section/SectionItem.d.ts +9 -0
- package/dist/src/generated/components/Section/SectionItemWithContent.d.ts +8 -0
- package/dist/src/generated/components/Section/subcomponents/SectionActions.d.ts +21 -0
- package/dist/src/generated/components/Section/subcomponents/SectionFooter.d.ts +6 -0
- package/dist/src/generated/components/Section/subcomponents/SectionHeader.d.ts +8 -0
- package/dist/src/generated/components/Select/LabeledSelect.d.ts +22 -0
- package/dist/src/generated/components/Select/Select.d.ts +49 -0
- package/dist/src/generated/components/Select/Select.types.d.ts +4 -0
- package/dist/src/generated/components/Select/SelectDropdownIndicator.d.ts +3 -0
- package/dist/src/generated/components/Select/SelectLoadingIndicator.d.ts +3 -0
- package/dist/src/generated/components/Select/StyledSelect.d.ts +12 -0
- package/dist/src/generated/components/SettingsMenuButton/SettingsMenuButton.d.ts +19 -0
- package/dist/src/generated/components/Skeleton/Skeleton.d.ts +9 -0
- package/dist/src/generated/components/Spinner/Spinner.d.ts +6 -0
- package/dist/src/generated/components/SplitViewLayout/SplitViewLayout.d.ts +20 -0
- package/dist/src/generated/components/Stack/Stack.d.ts +49 -0
- package/dist/src/generated/components/StatusIndicator/StatusIndicator.d.ts +16 -0
- package/dist/src/generated/components/Steps/Steps.d.ts +11 -0
- package/dist/src/generated/components/Steps/subcomponents/Step.d.ts +7 -0
- package/dist/src/generated/components/StyledLists/StyledBaseList.d.ts +33 -0
- package/dist/src/generated/components/StyledLists/StyledOrderedList.d.ts +25 -0
- package/dist/src/generated/components/StyledLists/StyledUnorderedList.d.ts +43 -0
- package/dist/src/generated/components/Switch/Switch.d.ts +23 -0
- package/dist/src/generated/components/Switcher/Switcher.d.ts +26 -0
- package/dist/src/generated/components/Switcher/SwitcherItem.d.ts +24 -0
- package/dist/src/generated/components/Tabbar/Tabbar.d.ts +20 -0
- package/dist/src/generated/components/Tabbar/TabbarItem.d.ts +15 -0
- package/dist/src/generated/components/Table/Table.d.ts +55 -0
- package/dist/src/generated/components/Table/Table.types.d.ts +41 -0
- package/dist/src/generated/components/Table/Table.utils.d.ts +58 -0
- package/dist/src/generated/components/Table/TableBody.d.ts +32 -0
- package/dist/src/generated/components/Table/TableBodyRowDataCell.d.ts +7 -0
- package/dist/src/generated/components/Table/TableFooter.d.ts +7 -0
- package/dist/src/generated/components/Table/TableHeader.d.ts +18 -0
- package/dist/src/generated/components/TableNew/TableNew.d.ts +70 -0
- package/dist/src/generated/components/TableNew/index.d.ts +1 -0
- package/dist/src/generated/components/Tabs/Tabs.d.ts +50 -0
- package/dist/src/generated/components/Tabs/index.d.ts +1 -0
- package/dist/src/generated/components/Tag/Tag.d.ts +31 -0
- package/dist/src/generated/components/Tag/TagGroup.d.ts +23 -0
- package/dist/src/generated/components/Text/Text.d.ts +141 -0
- package/dist/src/generated/components/TextEditor/TextEditor.d.ts +69 -0
- package/dist/src/generated/components/TextLink/TextLink.d.ts +13 -0
- package/dist/src/generated/components/Textarea/Textarea.d.ts +30 -0
- package/dist/src/generated/components/Timeline/Timeline.d.ts +13 -0
- package/dist/src/generated/components/Timeline/TimelineHeader.d.ts +10 -0
- package/dist/src/generated/components/Timeline/TimelineStep.d.ts +10 -0
- package/dist/src/generated/components/TimelineCard/LoadingState.d.ts +1 -0
- package/dist/src/generated/components/TimelineCard/TimelineCard.d.ts +52 -0
- package/dist/src/generated/components/TimelineCardLayout/TimelineCardLayout.d.ts +18 -0
- package/dist/src/generated/components/Title/PageTitle.d.ts +6 -0
- package/dist/src/generated/components/Title/Title.d.ts +41 -0
- package/dist/src/generated/components/Toaster/Toaster.d.ts +3 -0
- package/dist/src/generated/components/Toaster/ToasterPanel.d.ts +15 -0
- package/dist/src/generated/components/Toaster/toast.d.ts +12 -0
- package/dist/src/generated/components/Tooltip/Tooltip.d.ts +40 -0
- package/dist/src/generated/components/Tooltip/index.d.ts +3 -0
- package/dist/src/generated/components/UnorderedList/UnorderedList.d.ts +63 -0
- package/dist/src/generated/components/VerticalMenu/VerticalMenu.d.ts +125 -0
- package/dist/src/generated/components/WeekdaysPicker/WeekdaysPicker.d.ts +42 -0
- package/dist/src/generated/components/forms/shared/HelperAndErrorText.d.ts +13 -0
- package/dist/src/generated/components/forms/shared/LabelText.d.ts +5 -0
- package/dist/src/generated/context/LocaleContext.d.ts +3 -0
- package/dist/src/generated/generated/iconNames.d.ts +6 -0
- package/dist/src/generated/iconNames.d.ts +6 -0
- package/dist/src/generated/iconNames.js +118 -0
- package/dist/src/generated/iconNames.js.map +1 -0
- package/dist/src/generated/index.d.ts +135 -0
- package/dist/src/generated/system/Elevation.d.ts +9 -0
- package/dist/src/generated/system/Locale.d.ts +3 -0
- package/dist/src/generated/system/Sizes.d.ts +51 -0
- package/dist/src/generated/tokens/generated/tokens.d.ts +1522 -0
- package/dist/src/generated/types/general.types.d.ts +11 -0
- package/dist/src/generated/utils/prefixKeys.d.ts +13 -0
- package/dist/src/generated/utils/radius.utils.d.ts +37 -0
- package/dist/src/generated/utils/responsiveness.utils.d.ts +30 -0
- package/dist/src/generated/utils/shadow.utils.d.ts +21 -0
- package/dist/src/generated/utils/string.utils.d.ts +7 -0
- package/dist/src/generated/utils/useOutsideClick.d.ts +2 -0
- package/package.json +20 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
import { type AccordionItemProps } from "./AccordionItem";
|
|
3
|
+
export interface AccordionProps {
|
|
4
|
+
dataTestId?: string;
|
|
5
|
+
items: AccordionItemProps[];
|
|
6
|
+
className?: string;
|
|
7
|
+
isCollapsedByDefault?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* A section at the bottom of the accordion that is
|
|
10
|
+
* always visible, even when the accordion is closed.
|
|
11
|
+
*/
|
|
12
|
+
footer?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const Accordion: FC<AccordionProps>;
|
|
15
|
+
export default Accordion;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
export interface AccordionItemProps {
|
|
3
|
+
id: string | number;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
isCollapsedByDefault?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Called when the accordion item opens.
|
|
10
|
+
*/
|
|
11
|
+
onOpened?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Called when the accordion item closes.
|
|
14
|
+
*/
|
|
15
|
+
onClosed?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const AccordionItem: FC<AccordionItemProps>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { FC, ReactNode } from "react";
|
|
2
|
+
import { type AccordionProps } from "../Accordion/Accordion";
|
|
3
|
+
import { type DraggableListProps, type ListItemProps, type SortableListProps } from "../List";
|
|
4
|
+
import { type AccordionItemProps } from "../Accordion/AccordionItem";
|
|
5
|
+
import { type BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
6
|
+
import { AccordionListActions } from "./subcomponents/AccordionListActions";
|
|
7
|
+
export interface AccordionListProps extends Omit<AccordionProps, "items"> {
|
|
8
|
+
localisations: {
|
|
9
|
+
title: string;
|
|
10
|
+
searchPlaceholder?: string;
|
|
11
|
+
emptyListText?: string;
|
|
12
|
+
};
|
|
13
|
+
accordionItems: AccordionItem[];
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
* Use the `actions` prop to render any button(s)
|
|
17
|
+
* or other component(s) automatically in the correct area.
|
|
18
|
+
*/
|
|
19
|
+
buttonProps?: BaseButtonProps;
|
|
20
|
+
isSearchEnabled?: boolean;
|
|
21
|
+
isLoading?: boolean;
|
|
22
|
+
isError?: boolean;
|
|
23
|
+
errorState?: {
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
actions?: ReactNode;
|
|
28
|
+
headerActions?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export type AccordionListItemProps<T = ListItemProps> = Omit<AccordionItemProps, "title" | "content"> & {
|
|
31
|
+
listItems: T[];
|
|
32
|
+
draggableListType?: "default";
|
|
33
|
+
title: ReactNode;
|
|
34
|
+
};
|
|
35
|
+
export type DraggableAccordionListItemProps = Omit<AccordionItemProps, "title" | "content"> & {
|
|
36
|
+
draggableListType: "draggable";
|
|
37
|
+
listItems: DraggableListProps["items"];
|
|
38
|
+
title: ReactNode;
|
|
39
|
+
};
|
|
40
|
+
export type SortableAccordionListItemProps = Omit<AccordionItemProps, "title" | "content"> & {
|
|
41
|
+
draggableListType: "sortable";
|
|
42
|
+
draggableIdentifier: string;
|
|
43
|
+
listItems: SortableListProps["items"];
|
|
44
|
+
title: ReactNode;
|
|
45
|
+
};
|
|
46
|
+
export type AccordionItem = AccordionListItemProps | DraggableAccordionListItemProps | SortableAccordionListItemProps;
|
|
47
|
+
type StaticComponents = {
|
|
48
|
+
Actions: typeof AccordionListActions;
|
|
49
|
+
};
|
|
50
|
+
export declare const AccordionList: FC<AccordionListProps> & StaticComponents;
|
|
51
|
+
export default AccordionList;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PropsWithChildren, FC } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Use in the actions of an AccordionList. Spaces out the action
|
|
4
|
+
* components correctly in relation to the styling of the AccordionList component.
|
|
5
|
+
*
|
|
6
|
+
* @usage
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <AccordionList
|
|
9
|
+
* actions={
|
|
10
|
+
* <AccordionList.Actions>
|
|
11
|
+
* <PrimaryButton />
|
|
12
|
+
* <SecondaryButton />
|
|
13
|
+
* </AccordionList.Actions>
|
|
14
|
+
* }
|
|
15
|
+
* />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const AccordionListActions: FC<PropsWithChildren>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const AlertWidget: React.FC<{
|
|
2
|
+
variant: "red" | "amber" | "gray";
|
|
3
|
+
/**
|
|
4
|
+
* This accepts two types, `string` and `React.ReactNode`,
|
|
5
|
+
* when a string, it will be rendered as
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Text color={"on-warning" | "on-negative" | "on-surface"} variant="strong">
|
|
10
|
+
* {props.content}
|
|
11
|
+
* </Text>
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* Depending on the variant picked.
|
|
15
|
+
*
|
|
16
|
+
* In case you decide to pass a `React.ReactNode`, make sure to
|
|
17
|
+
* comply with the correct text color to match. See example for reference.
|
|
18
|
+
*/
|
|
19
|
+
content: string | React.ReactNode;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode, FC } from "react";
|
|
2
|
+
type AvatarColor = "primary" | "slate";
|
|
3
|
+
type AvatarSize = "large" | "medium" | "small" | "xsmall";
|
|
4
|
+
/**
|
|
5
|
+
* Union to prevent both "initials" and "children" to be used at the same time.
|
|
6
|
+
*/
|
|
7
|
+
type BaseProps = {
|
|
8
|
+
initials: string;
|
|
9
|
+
children?: never;
|
|
10
|
+
} | {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
initials?: never;
|
|
13
|
+
};
|
|
14
|
+
type Props = {
|
|
15
|
+
color?: AvatarColor;
|
|
16
|
+
src?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Put the name of the person here, so less sighted
|
|
19
|
+
* users can know who the avatar belongs to.
|
|
20
|
+
*
|
|
21
|
+
* In case of rendering the default image or the
|
|
22
|
+
* initials, this will also be used as the `alt` text.
|
|
23
|
+
*/
|
|
24
|
+
alt?: string;
|
|
25
|
+
size?: AvatarSize;
|
|
26
|
+
/**
|
|
27
|
+
* URL to an image to be used as the default image.
|
|
28
|
+
* If this is set, the image provided via `src` will never render.
|
|
29
|
+
*/
|
|
30
|
+
defaultImage?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Sometimes avatars are rendered in a group. Setting this to `true`
|
|
34
|
+
* makes it so that the avatars overlap each other a bit, as designed.
|
|
35
|
+
*/
|
|
36
|
+
applyGroupOffset?: boolean;
|
|
37
|
+
} & BaseProps;
|
|
38
|
+
/**
|
|
39
|
+
* Displays a badge-style avatar. Keep in mind that
|
|
40
|
+
* you can only use `initials` or `children`, not both.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Using initials
|
|
44
|
+
* <Avatar initials="JS" alt="John Smith" size="medium" color="primary" />
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Using children
|
|
48
|
+
* <Avatar alt="Jane Doe" size="large" color="slate">
|
|
49
|
+
* <img src="https://example.com/jane-doe.jpg" alt="Jane Doe" />
|
|
50
|
+
* </Avatar>
|
|
51
|
+
*/
|
|
52
|
+
export declare const Avatar: FC<Props>;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StackProps } from "../Stack/Stack";
|
|
3
|
+
export type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & StackProps<C> & {
|
|
4
|
+
as?: C;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* In a group each avatar receives a border that
|
|
8
|
+
* matches the background the group is on. This to
|
|
9
|
+
* create some separation between the avatars.
|
|
10
|
+
* In case your background is not white, you might
|
|
11
|
+
* want to specify a different color.
|
|
12
|
+
*
|
|
13
|
+
* This color will be added to a Tailwind class in
|
|
14
|
+
* the form of `ui:outline-{outlineColor}`.
|
|
15
|
+
*/
|
|
16
|
+
outlineColor?: "surface" | "slate-50" | "slate-100" | "white";
|
|
17
|
+
/**
|
|
18
|
+
* The maximum number of avatars to show in the group, before
|
|
19
|
+
* we render an extra element that shows there are more avatars.
|
|
20
|
+
*
|
|
21
|
+
* @default 3
|
|
22
|
+
*/
|
|
23
|
+
maxAvatars?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The label to show when there are more avatars than the
|
|
26
|
+
* `maxAvatars` prop.
|
|
27
|
+
* This function receives the amount of avatars that are not shown.
|
|
28
|
+
*/
|
|
29
|
+
moreAvatarsLabel?: (avatarsNotShownCount: number) => React.ReactNode;
|
|
30
|
+
};
|
|
31
|
+
export declare const AvatarGroup: <C extends React.ElementType>(props: Props<C>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { BaseListItemProps, BaseListProps } from "./BaseList.types";
|
|
3
|
+
declare const BaseListInner: <T extends BaseListItemProps>({ dataTestId, title, subtitle, headerButton, headerAccessory, emptyStateMessage, isLoading, items, headerTransparent, itemComponent, footer, withBorder, }: BaseListProps<T>, ref: React.ForwardedRef<HTMLUListElement>) => JSX.Element;
|
|
4
|
+
export declare const BaseList: <T extends BaseListItemProps>(props: BaseListProps<T> & {
|
|
5
|
+
ref?: React.ForwardedRef<HTMLUListElement>;
|
|
6
|
+
}) => ReturnType<typeof BaseListInner>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { Ref, ReactNode, HTMLProps, FC } from "react";
|
|
2
|
+
import { type PrimaryButtonProps, type ButtonDefinition } from "../ButtonV2/ButtonProps.type";
|
|
3
|
+
import { type IconProps } from "../Icons/types/IconProps.type";
|
|
4
|
+
import { type TitleProps } from "../Title/Title";
|
|
5
|
+
export type BaseListItemProps = {
|
|
6
|
+
itemId: string | number;
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
subtitle?: React.ReactNode;
|
|
9
|
+
icon?: ReactNode | React.FunctionComponent<IconProps>;
|
|
10
|
+
accessories?: JSX.Element[];
|
|
11
|
+
onlyShowAccessoriesOnHover?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Provide a term to match against when filtering the list.
|
|
14
|
+
*/
|
|
15
|
+
matchTerm?: string;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
17
|
+
/** Same as onClick to be compatible with listItem */
|
|
18
|
+
handleItemClick?: (e: React.MouseEvent<HTMLLIElement>) => void;
|
|
19
|
+
onAssetLoadError?: (payload: OnAssetLoadErrorPayload) => void;
|
|
20
|
+
tooltipId?: string;
|
|
21
|
+
isSelected?: boolean;
|
|
22
|
+
roundTop?: boolean;
|
|
23
|
+
roundBottom?: boolean;
|
|
24
|
+
withBorder?: boolean;
|
|
25
|
+
isDraggable?: boolean;
|
|
26
|
+
dataTestId?: string;
|
|
27
|
+
ref?: Ref<HTMLLIElement>;
|
|
28
|
+
renderDragHandle?: () => ReactNode;
|
|
29
|
+
htmlProps?: HTMLProps<HTMLLIElement>;
|
|
30
|
+
className?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @private
|
|
33
|
+
* For internal use only: indicates this is a nested child row.
|
|
34
|
+
*/
|
|
35
|
+
__isNested?: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type OnAssetLoadErrorPayload = Pick<BaseListItemProps, "itemId" | "subtitle" | "title" | "icon">;
|
|
38
|
+
export interface BaseListProps<T extends BaseListItemProps = BaseListItemProps> {
|
|
39
|
+
items: T[];
|
|
40
|
+
title?: string | TitleProps;
|
|
41
|
+
/**
|
|
42
|
+
* Optional subtitle to display under the main title in the header.
|
|
43
|
+
*/
|
|
44
|
+
subtitle?: React.ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated props accepting props from other components should accept components instead.
|
|
47
|
+
*
|
|
48
|
+
* Use `headerAccessory` instead.
|
|
49
|
+
*/
|
|
50
|
+
headerButton?: ButtonDefinition<PrimaryButtonProps>;
|
|
51
|
+
headerAccessory?: ReactNode;
|
|
52
|
+
headerTransparent?: boolean;
|
|
53
|
+
itemComponent?: FC<T>;
|
|
54
|
+
emptyStateMessage?: string;
|
|
55
|
+
isLoading?: boolean;
|
|
56
|
+
dataTestId?: string;
|
|
57
|
+
footer?: ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* This prop will surround the component with a 1px slate-300 border.
|
|
60
|
+
*/
|
|
61
|
+
withBorder?: boolean;
|
|
62
|
+
ref?: Ref<HTMLUListElement>;
|
|
63
|
+
}
|
|
64
|
+
export type BaseListHeaderProps = {
|
|
65
|
+
title?: string | TitleProps;
|
|
66
|
+
/**
|
|
67
|
+
* Optional subtitle to display under the main title in the header.
|
|
68
|
+
*/
|
|
69
|
+
subtitle?: React.ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated props are accepting props from other components should accept components instead.
|
|
72
|
+
*
|
|
73
|
+
* Use `headerAccessory` instead.
|
|
74
|
+
*/
|
|
75
|
+
button?: ButtonDefinition<PrimaryButtonProps>;
|
|
76
|
+
headerAccessory?: ReactNode;
|
|
77
|
+
transparent?: boolean;
|
|
78
|
+
withBorder?: boolean;
|
|
79
|
+
};
|
|
80
|
+
export type DraggableBaseListProps = Omit<BaseListProps<DraggableBaseListItemProps>, "itemComponent">;
|
|
81
|
+
export type DraggableBaseListItemProps = BaseListItemProps & {
|
|
82
|
+
draggableIdentifier: string;
|
|
83
|
+
draggableData?: Record<string, unknown>;
|
|
84
|
+
};
|
|
85
|
+
export type SortableBaseListProps = DraggableBaseListProps & {
|
|
86
|
+
draggableIdentifier: string;
|
|
87
|
+
};
|
|
88
|
+
export type SortableBaseListItemProps = DraggableBaseListItemProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ListItemSkeleton: () => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BaseList } from "./BaseList";
|
|
2
|
+
export { BaseListItem } from "./BaseListItem";
|
|
3
|
+
export type { BaseListProps, BaseListItemProps, OnAssetLoadErrorPayload, DraggableBaseListProps, DraggableBaseListItemProps, } from "./BaseList.types";
|
|
4
|
+
export { DraggableBaseList, DraggableBaseListItem } from "./DraggableBaseList";
|
|
5
|
+
export { SortableBaseList, SortableBaseListItem } from "./SortableBaseList";
|
|
6
|
+
export { getDndListItemProps } from "./utils";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Active, type Over } from "@dnd-kit/core";
|
|
2
|
+
import { type ListItemProps } from "../List/List";
|
|
3
|
+
declare const draggableListItemPropsPointer: {
|
|
4
|
+
readonly symbol: symbol;
|
|
5
|
+
};
|
|
6
|
+
type DraggableListItemProps = WeakMap<typeof draggableListItemPropsPointer, Pick<ListItemProps, "itemId" | "title" | "subtitle" | "icon" | "isDraggable" | "isSelected">>;
|
|
7
|
+
export declare const createDraggableListProps: ({ itemId, title, subtitle, icon, isDraggable, isSelected, }: ListItemProps) => DraggableListItemProps;
|
|
8
|
+
export declare const draggableListPropsKey: "listItem";
|
|
9
|
+
export declare const getDndListItemProps: (subject: Active | Over) => ListItemProps | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ElementType } from "react";
|
|
2
|
+
import { type SIZES } from "../../../system/Sizes";
|
|
3
|
+
import { type ELEVATION } from "../../../system/Elevation";
|
|
4
|
+
import { type BackgroundColor, type CursorOption } from "../../../types/general.types";
|
|
5
|
+
type Size = keyof typeof SIZES;
|
|
6
|
+
declare const spacingKeys: readonly ["p", "pt", "pr", "pb", "pl", "px", "py", "m", "mt", "mr", "mb", "ml", "mx", "my"];
|
|
7
|
+
type SpacingProps = Partial<Record<(typeof spacingKeys)[number], Size>>;
|
|
8
|
+
type ElevationProp = keyof typeof ELEVATION;
|
|
9
|
+
export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> & SpacingProps & {
|
|
10
|
+
as?: C;
|
|
11
|
+
/**
|
|
12
|
+
* Adds a box-shadow to the element based on the design system
|
|
13
|
+
*/
|
|
14
|
+
elevation?: ElevationProp;
|
|
15
|
+
/**
|
|
16
|
+
* Make the item fill up horizontal space
|
|
17
|
+
*/
|
|
18
|
+
width?: "full" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | keyof typeof SIZES;
|
|
19
|
+
backgroundColor?: BackgroundColor;
|
|
20
|
+
/**
|
|
21
|
+
* Will set a border radius based on the standard sizes scale.
|
|
22
|
+
* Check {@link SIZES} for reference.
|
|
23
|
+
*/
|
|
24
|
+
borderRadius?: keyof typeof SIZES;
|
|
25
|
+
/**
|
|
26
|
+
* Will set a left border radius based on the standard sizes scale.
|
|
27
|
+
* Check {@link SIZES} for reference.
|
|
28
|
+
*/
|
|
29
|
+
borderRadiusLeft?: keyof typeof SIZES;
|
|
30
|
+
/**
|
|
31
|
+
* Will set a right border radius based on the standard sizes scale.
|
|
32
|
+
* Check {@link SIZES} for reference.
|
|
33
|
+
*/
|
|
34
|
+
borderRadiusRight?: keyof typeof SIZES;
|
|
35
|
+
hoverBackgroundColor?: BackgroundColor;
|
|
36
|
+
cursor?: CursorOption;
|
|
37
|
+
};
|
|
38
|
+
export declare const Box: <C extends ElementType = "div">(props: Props<C>) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type Text from "../Text/Text";
|
|
2
|
+
export type RenderBreadcrumbProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
link?: string;
|
|
5
|
+
textProps: React.ComponentProps<typeof Text>;
|
|
6
|
+
};
|
|
7
|
+
export type RenderBreadcrumb = (props: RenderBreadcrumbProps) => React.ReactNode;
|
|
8
|
+
export type CrumbRenderProp = {
|
|
9
|
+
render: RenderBreadcrumb;
|
|
10
|
+
};
|
|
11
|
+
export type Crumb = {
|
|
12
|
+
name: string;
|
|
13
|
+
key?: string;
|
|
14
|
+
link?: string;
|
|
15
|
+
};
|
|
16
|
+
export interface BreadcrumbProps {
|
|
17
|
+
crumbs: Crumb[];
|
|
18
|
+
truncateAfter?: number;
|
|
19
|
+
renderItem: RenderBreadcrumb;
|
|
20
|
+
}
|
|
21
|
+
export type BreadcrumbDividerProps = {
|
|
22
|
+
onClick: () => void;
|
|
23
|
+
truncatedCrumbs: Crumb[];
|
|
24
|
+
};
|
|
25
|
+
export declare const isBreadcrumbDividerProps: (subject: unknown) => subject is BreadcrumbDividerProps;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { Attributes, ComponentPropsWithRef, FC, ReactNode } from "react";
|
|
2
|
+
import type { IconKey, IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
+
import { type TextColor, type TextHoverColor } from "../Text/Text";
|
|
4
|
+
/**
|
|
5
|
+
* Properties that are present in all variants of the button
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseButtonProps extends ComponentPropsWithRef<"button"> {
|
|
9
|
+
size?: "medium" | "large";
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `children` instead.
|
|
13
|
+
*/
|
|
14
|
+
text?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use `leadingIcon` instead.
|
|
17
|
+
*/
|
|
18
|
+
icon?: FC<IconProps> | IconKey;
|
|
19
|
+
/**
|
|
20
|
+
* Icon that will be rendered before the text. You need to
|
|
21
|
+
* pass in the rendered icon component, not the key.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* <PrimaryButton leadingIcon={<AddIcon />} />
|
|
26
|
+
* ````
|
|
27
|
+
*/
|
|
28
|
+
leadingIcon?: ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Icon that will be rendered before the text. You need to
|
|
31
|
+
* pass in the rendered icon component, not the key.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* <PrimaryButton trailingIcon={<AddIcon />} />
|
|
36
|
+
* ````
|
|
37
|
+
*/
|
|
38
|
+
trailingIcon?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use `disabled` instead.
|
|
41
|
+
*/
|
|
42
|
+
isDisabled?: boolean;
|
|
43
|
+
className?: string;
|
|
44
|
+
dataTestId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* An optional element to which to render the tooltip in through a portal.
|
|
47
|
+
*
|
|
48
|
+
* When omitted the Tooltip will be rendered into the document.body.
|
|
49
|
+
*/
|
|
50
|
+
titleTooltipContainer?: Element | DocumentFragment | null | undefined;
|
|
51
|
+
}
|
|
52
|
+
export type NonPrimaryButtonProps = BaseButtonProps;
|
|
53
|
+
/**
|
|
54
|
+
* Extra properties that can be set when the variant of the button
|
|
55
|
+
* supports the pending state
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
export interface ButtonWithPendingStateProps extends BaseButtonProps {
|
|
59
|
+
isPending?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export type PrimaryButtonProps = ButtonWithPendingStateProps;
|
|
62
|
+
/**
|
|
63
|
+
* Properties specific to the IconButtons
|
|
64
|
+
*/
|
|
65
|
+
export type IconButtonProps = ButtonWithPendingStateProps & {
|
|
66
|
+
/**
|
|
67
|
+
* The icon that will be rendered in the button.
|
|
68
|
+
*/
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
/**
|
|
71
|
+
* Accessible label for the button. This will only be visible to screen readers, and will also be used to target buttons in tests.
|
|
72
|
+
*/
|
|
73
|
+
label: string;
|
|
74
|
+
/**
|
|
75
|
+
* Since this button only renders one icon, we don't need leading or trailing icons.
|
|
76
|
+
*/
|
|
77
|
+
leadingIcon?: never;
|
|
78
|
+
trailingIcon?: never;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* All properties of BaseButtonProps and ButtonWithPendingStateProps,
|
|
82
|
+
* plus other properties that are assigned internally by the button variants.
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export interface ButtonProps extends BaseButtonProps, ButtonWithPendingStateProps {
|
|
86
|
+
textColor?: TextColor;
|
|
87
|
+
textHoverColor?: TextHoverColor;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Interface for defining a button
|
|
91
|
+
*/
|
|
92
|
+
export interface ButtonDefinition<Props extends BaseButtonProps = BaseButtonProps> {
|
|
93
|
+
buttonType: FC<Props>;
|
|
94
|
+
buttonProps: Attributes & Props;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Interface for defining a button with mandatory key
|
|
98
|
+
*/
|
|
99
|
+
export interface ButtonDefinitionWithKey<Props extends BaseButtonProps = BaseButtonProps> {
|
|
100
|
+
buttonType: FC<Props>;
|
|
101
|
+
buttonProps: {
|
|
102
|
+
key: string | number;
|
|
103
|
+
} & Props;
|
|
104
|
+
}
|