@zvoove/unity-ui 2.29.0 → 2.29.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/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.d.ts +4723 -0
- package/dist/unity-ui.es.js +2 -2
- package/package.json +2 -2
- package/dist/components/Accordion/Accordion.d.ts +0 -6
- package/dist/components/Accordion/Accordion.styled.d.ts +0 -46
- package/dist/components/Accordion/Accordion.types.d.ts +0 -33
- package/dist/components/Accordion/index.d.ts +0 -2
- package/dist/components/ActionCard/ActionCard.d.ts +0 -6
- package/dist/components/ActionCard/ActionCard.styled.d.ts +0 -29
- package/dist/components/ActionCard/ActionCard.types.d.ts +0 -32
- package/dist/components/ActionCard/index.d.ts +0 -2
- package/dist/components/Avatar/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar/Avatar.styled.d.ts +0 -53
- package/dist/components/Avatar/Avatar/Avatar.types.d.ts +0 -34
- package/dist/components/Avatar/Avatar/index.d.ts +0 -2
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.d.ts +0 -3
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.styled.d.ts +0 -3
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.types.d.ts +0 -15
- package/dist/components/Avatar/AvatarGroup/index.d.ts +0 -2
- package/dist/components/Avatar/index.d.ts +0 -2
- package/dist/components/Badge/Badge.d.ts +0 -3
- package/dist/components/Badge/Badge.styled.d.ts +0 -28
- package/dist/components/Badge/Badge.types.d.ts +0 -19
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.styled.d.ts +0 -14
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -22
- package/dist/components/Breadcrumbs/index.d.ts +0 -2
- package/dist/components/Button/Button.d.ts +0 -9
- package/dist/components/Button/Button.styled.d.ts +0 -98
- package/dist/components/Button/Button.types.d.ts +0 -55
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Card/Card.d.ts +0 -10
- package/dist/components/Card/Card.styled.d.ts +0 -608
- package/dist/components/Card/Card.types.d.ts +0 -125
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/ChatBubble/ChatBubble.d.ts +0 -3
- package/dist/components/ChatBubble/ChatBubble.styled.d.ts +0 -117
- package/dist/components/ChatBubble/ChatBubble.types.d.ts +0 -55
- package/dist/components/ChatBubble/ChatBubbleMedia.d.ts +0 -3
- package/dist/components/ChatBubble/index.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/components/Checkbox/Checkbox.styled.d.ts +0 -59
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -40
- package/dist/components/Checkbox/index.d.ts +0 -2
- package/dist/components/Chip/Chip.d.ts +0 -4
- package/dist/components/Chip/Chip.styled.d.ts +0 -114
- package/dist/components/Chip/Chip.types.d.ts +0 -63
- package/dist/components/Chip/index.d.ts +0 -2
- package/dist/components/CodeBlock/CodeBlock.d.ts +0 -6
- package/dist/components/CodeBlock/CodeBlock.highlighter.d.ts +0 -7
- package/dist/components/CodeBlock/CodeBlock.styled.d.ts +0 -65
- package/dist/components/CodeBlock/CodeBlock.types.d.ts +0 -28
- package/dist/components/CodeBlock/CodeBlock.utils.d.ts +0 -11
- package/dist/components/CodeBlock/index.d.ts +0 -3
- package/dist/components/ContentBlock/ContentBlock.d.ts +0 -6
- package/dist/components/ContentBlock/ContentBlock.styled.d.ts +0 -2
- package/dist/components/ContentBlock/ContentBlock.types.d.ts +0 -7
- package/dist/components/ContentBlock/index.d.ts +0 -2
- package/dist/components/DatePicker/DatePicker.d.ts +0 -3
- package/dist/components/DatePicker/DatePicker.styled.d.ts +0 -16
- package/dist/components/DatePicker/DatePicker.types.d.ts +0 -64
- package/dist/components/DatePicker/components/DateDialog/DateDialog.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/DateDialog.types.d.ts +0 -10
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/Calendar.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/Calendar.styled.d.ts +0 -16
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/Calendar.types.d.ts +0 -61
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/ActionButtons.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/ActionButtons.styled.d.ts +0 -16
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/ActionButtons.types.d.ts +0 -30
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/CalendarHeader.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/CalendarHeader.styled.d.ts +0 -70
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/CalendarHeader.types.d.ts +0 -46
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/Carousel.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/Carousel.styled.d.ts +0 -45
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/Carousel.types.d.ts +0 -30
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Day/Day.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Day/Day.styled.d.ts +0 -22
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Day/Day.types.d.ts +0 -11
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/Day/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/WeekDays.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/WeekDays.styled.d.ts +0 -17
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/WeekDays.types.d.ts +0 -4
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/components/index.d.ts +0 -5
- package/dist/components/DatePicker/components/DateDialog/components/Calendar/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/MonthSelector/MonthSelector.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/MonthSelector/MonthSelector.types.d.ts +0 -23
- package/dist/components/DatePicker/components/DateDialog/components/MonthSelector/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/SelectorList/SelectorList.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/SelectorList/SelectorList.styled.d.ts +0 -19
- package/dist/components/DatePicker/components/DateDialog/components/SelectorList/SelectorList.types.d.ts +0 -9
- package/dist/components/DatePicker/components/DateDialog/components/SelectorList/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/components/YearSelector/YearSelector.d.ts +0 -3
- package/dist/components/DatePicker/components/DateDialog/components/YearSelector/YearSelector.types.d.ts +0 -36
- package/dist/components/DatePicker/components/DateDialog/components/YearSelector/index.d.ts +0 -2
- package/dist/components/DatePicker/components/DateDialog/index.d.ts +0 -2
- package/dist/components/DatePicker/components/index.d.ts +0 -1
- package/dist/components/DatePicker/context/Context.types.d.ts +0 -15
- package/dist/components/DatePicker/context/DatePickerContext.d.ts +0 -3
- package/dist/components/DatePicker/context/DatePickerProvider.d.ts +0 -3
- package/dist/components/DatePicker/context/index.d.ts +0 -3
- package/dist/components/DatePicker/hooks/index.d.ts +0 -5
- package/dist/components/DatePicker/hooks/useDatePicker.d.ts +0 -2
- package/dist/components/DatePicker/hooks/useDateSelection.d.ts +0 -21
- package/dist/components/DatePicker/hooks/useDateUtils.d.ts +0 -31
- package/dist/components/DatePicker/hooks/useDialogFocus.d.ts +0 -1
- package/dist/components/DatePicker/hooks/useDialogPosition.d.ts +0 -19
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/utils/calendar.utils.d.ts +0 -26
- package/dist/components/DatePicker/utils/index.d.ts +0 -3
- package/dist/components/DatePicker/utils/locale.utils.d.ts +0 -38
- package/dist/components/DatePicker/utils/navigation.utils.d.ts +0 -13
- package/dist/components/Dialog/Dialog.d.ts +0 -3
- package/dist/components/Dialog/Dialog.styled.d.ts +0 -38
- package/dist/components/Dialog/Dialog.types.d.ts +0 -46
- package/dist/components/Dialog/DialogManager.d.ts +0 -41
- package/dist/components/Dialog/hooks/index.d.ts +0 -3
- package/dist/components/Dialog/hooks/useDialogAnimation.d.ts +0 -6
- package/dist/components/Dialog/hooks/useDialogEscape.d.ts +0 -2
- package/dist/components/Dialog/hooks/useDialogFocus.d.ts +0 -2
- package/dist/components/Dialog/index.d.ts +0 -3
- package/dist/components/Divider/Divider.d.ts +0 -3
- package/dist/components/Divider/Divider.styled.d.ts +0 -19
- package/dist/components/Divider/Divider.types.d.ts +0 -13
- package/dist/components/Divider/index.d.ts +0 -2
- package/dist/components/Expandable/Expandable.d.ts +0 -6
- package/dist/components/Expandable/Expandable.styled.d.ts +0 -16
- package/dist/components/Expandable/Expandable.types.d.ts +0 -12
- package/dist/components/Expandable/index.d.ts +0 -2
- package/dist/components/FloatSearch/FloatSearch.d.ts +0 -6
- package/dist/components/FloatSearch/FloatSearch.styled.d.ts +0 -51
- package/dist/components/FloatSearch/FloatSearch.types.d.ts +0 -108
- package/dist/components/FloatSearch/index.d.ts +0 -2
- package/dist/components/FormLabel/FormLabel.d.ts +0 -3
- package/dist/components/FormLabel/FormLabel.types.d.ts +0 -15
- package/dist/components/FormLabel/index.d.ts +0 -2
- package/dist/components/Grid/Grid.d.ts +0 -3
- package/dist/components/Grid/Grid.styled.d.ts +0 -274
- package/dist/components/Grid/Grid.types.d.ts +0 -80
- package/dist/components/Grid/index.d.ts +0 -2
- package/dist/components/Icon/CustomIcon.types.d.ts +0 -13
- package/dist/components/Icon/Icon.d.ts +0 -3
- package/dist/components/Icon/Icon.styled.d.ts +0 -61
- package/dist/components/Icon/Icon.types.d.ts +0 -619
- package/dist/components/Icon/custom/FileArchiveRar.d.ts +0 -3
- package/dist/components/Icon/custom/FileArchiveZip.d.ts +0 -3
- package/dist/components/Icon/custom/FileDesignAep.d.ts +0 -3
- package/dist/components/Icon/custom/FileDesignAi.d.ts +0 -3
- package/dist/components/Icon/custom/FileDesignFig.d.ts +0 -3
- package/dist/components/Icon/custom/FileDesignIndd.d.ts +0 -3
- package/dist/components/Icon/custom/FileDesignPsd.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentCss.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentDmg.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentExe.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentHtml.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentJava.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentJs.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentJson.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentRss.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentSql.d.ts +0 -3
- package/dist/components/Icon/custom/FileDevelopmentXml.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentCsv.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentDoc.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentDocx.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentPdf.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentPpt.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentPptx.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentTxt.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentXls.d.ts +0 -3
- package/dist/components/Icon/custom/FileDocumentXlsx.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageEps.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageGif.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageImg.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageJpeg.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageJpg.d.ts +0 -3
- package/dist/components/Icon/custom/FileImagePng.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageSvg.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageTiff.d.ts +0 -3
- package/dist/components/Icon/custom/FileImageWebp.d.ts +0 -3
- package/dist/components/Icon/custom/FileMediaAvi.d.ts +0 -3
- package/dist/components/Icon/custom/FileMediaMkv.d.ts +0 -3
- package/dist/components/Icon/custom/FileMediaMp3.d.ts +0 -3
- package/dist/components/Icon/custom/FileMediaMp4.d.ts +0 -3
- package/dist/components/Icon/custom/FileMediaMpeg.d.ts +0 -3
- package/dist/components/Icon/custom/FileMediaWav.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleAudio.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleCode.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleDocument.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleEmpty.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleFolder.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleImage.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimplePdf.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleSpreadSheet.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleVideo.d.ts +0 -3
- package/dist/components/Icon/custom/FileSimpleVideo2.d.ts +0 -3
- package/dist/components/Icon/custom/FlagDe.d.ts +0 -4
- package/dist/components/Icon/custom/FlagEs.d.ts +0 -4
- package/dist/components/Icon/custom/FlagFr.d.ts +0 -4
- package/dist/components/Icon/custom/FlagGb.d.ts +0 -4
- package/dist/components/Icon/custom/FlagNl.d.ts +0 -4
- package/dist/components/Icon/custom/ZvooveLogo.d.ts +0 -6
- package/dist/components/Icon/custom/index.d.ts +0 -58
- package/dist/components/Icon/docs/components/IconCell.d.ts +0 -9
- package/dist/components/Icon/docs/components/IconDisplay.d.ts +0 -5
- package/dist/components/Icon/docs/components/IconSearch.d.ts +0 -1
- package/dist/components/Icon/index.d.ts +0 -3
- package/dist/components/ImageVisualizer/ImageVisualizer.d.ts +0 -6
- package/dist/components/ImageVisualizer/ImageVisualizer.styled.d.ts +0 -142
- package/dist/components/ImageVisualizer/ImageVisualizer.types.d.ts +0 -46
- package/dist/components/ImageVisualizer/index.d.ts +0 -2
- package/dist/components/InfoBox/InfoBox.constants.d.ts +0 -5
- package/dist/components/InfoBox/InfoBox.d.ts +0 -6
- package/dist/components/InfoBox/InfoBox.types.d.ts +0 -22
- package/dist/components/InfoBox/index.d.ts +0 -2
- package/dist/components/List/List.d.ts +0 -7
- package/dist/components/List/List.styled.d.ts +0 -40
- package/dist/components/List/List.types.d.ts +0 -32
- package/dist/components/List/index.d.ts +0 -2
- package/dist/components/ListMenu/ListMenu.d.ts +0 -7
- package/dist/components/ListMenu/ListMenu.styled.d.ts +0 -150
- package/dist/components/ListMenu/ListMenu.types.d.ts +0 -74
- package/dist/components/ListMenu/ListMenu.utils.d.ts +0 -13
- package/dist/components/ListMenu/index.d.ts +0 -3
- package/dist/components/MessageActions/MessageActions.d.ts +0 -3
- package/dist/components/MessageActions/MessageActions.styled.d.ts +0 -56
- package/dist/components/MessageActions/MessageActions.types.d.ts +0 -81
- package/dist/components/MessageActions/index.d.ts +0 -2
- package/dist/components/MidSectionMenus/MidSectionMenus.d.ts +0 -7
- package/dist/components/MidSectionMenus/MidSectionMenus.styled.d.ts +0 -98
- package/dist/components/MidSectionMenus/MidSectionMenus.types.d.ts +0 -67
- package/dist/components/MidSectionMenus/index.d.ts +0 -2
- package/dist/components/Pagination/Pagination.d.ts +0 -3
- package/dist/components/Pagination/Pagination.types.d.ts +0 -37
- package/dist/components/Pagination/index.d.ts +0 -2
- package/dist/components/PopUpMenu/PopUpMenu.constants.d.ts +0 -2
- package/dist/components/PopUpMenu/PopUpMenu.d.ts +0 -3
- package/dist/components/PopUpMenu/PopUpMenu.styled.d.ts +0 -161
- package/dist/components/PopUpMenu/PopUpMenu.types.d.ts +0 -258
- package/dist/components/PopUpMenu/PopUpMenu.utils.d.ts +0 -18
- package/dist/components/PopUpMenu/PopUpMenuContent.d.ts +0 -45
- package/dist/components/PopUpMenu/PopUpMenuManager.d.ts +0 -37
- package/dist/components/PopUpMenu/PopUpMenuPortal.d.ts +0 -12
- package/dist/components/PopUpMenu/index.d.ts +0 -2
- package/dist/components/PopUpMenu/usePopUpMenuHandlers.d.ts +0 -44
- package/dist/components/PopUpMenu/usePopUpMenuState.d.ts +0 -48
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +0 -3
- package/dist/components/ProgressIndicator/ProgressIndicator.styled.d.ts +0 -103
- package/dist/components/ProgressIndicator/ProgressIndicator.types.d.ts +0 -31
- package/dist/components/ProgressIndicator/index.d.ts +0 -2
- package/dist/components/Radio/RadioButton/RadioButton.d.ts +0 -3
- package/dist/components/Radio/RadioButton/RadioButton.styled.d.ts +0 -45
- package/dist/components/Radio/RadioButton/RadioButton.types.d.ts +0 -32
- package/dist/components/Radio/RadioButton/index.d.ts +0 -2
- package/dist/components/Radio/RadioGroup/RadioGroup.d.ts +0 -11
- package/dist/components/Radio/RadioGroup/RadioGroup.styled.d.ts +0 -13
- package/dist/components/Radio/RadioGroup/RadioGroup.types.d.ts +0 -26
- package/dist/components/Radio/RadioGroup/index.d.ts +0 -2
- package/dist/components/Radio/index.d.ts +0 -2
- package/dist/components/ScoreCard/ScoreCard.d.ts +0 -3
- package/dist/components/ScoreCard/ScoreCard.styled.d.ts +0 -1
- package/dist/components/ScoreCard/ScoreCard.types.d.ts +0 -42
- package/dist/components/ScoreCard/index.d.ts +0 -2
- package/dist/components/Segment/SegmentButton/SegmentButton.d.ts +0 -3
- package/dist/components/Segment/SegmentButton/SegmentButton.styled.d.ts +0 -31
- package/dist/components/Segment/SegmentButton/SegmentButton.types.d.ts +0 -39
- package/dist/components/Segment/SegmentButton/index.d.ts +0 -2
- package/dist/components/Segment/SegmentGroup/SegmentGroup.d.ts +0 -6
- package/dist/components/Segment/SegmentGroup/SegmentGroup.styled.d.ts +0 -13
- package/dist/components/Segment/SegmentGroup/SegmentGroup.types.d.ts +0 -36
- package/dist/components/Segment/SegmentGroup/index.d.ts +0 -2
- package/dist/components/Segment/index.d.ts +0 -2
- package/dist/components/Select/Select.constants.d.ts +0 -17
- package/dist/components/Select/Select.d.ts +0 -3
- package/dist/components/Select/Select.styled.d.ts +0 -250
- package/dist/components/Select/Select.types.d.ts +0 -70
- package/dist/components/Select/Select.utils.d.ts +0 -51
- package/dist/components/Select/SelectDisplay.d.ts +0 -3
- package/dist/components/Select/SelectDisplay.types.d.ts +0 -43
- package/dist/components/Select/SelectManager.d.ts +0 -37
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/Select/useSelectHandlers.d.ts +0 -40
- package/dist/components/Select/useSelectState.d.ts +0 -19
- package/dist/components/Shared/Backdrop/Backdrop.d.ts +0 -6
- package/dist/components/Shared/Backdrop/Backdrop.styled.d.ts +0 -16
- package/dist/components/Shared/Backdrop/Backdrop.types.d.ts +0 -23
- package/dist/components/Shared/Backdrop/index.d.ts +0 -2
- package/dist/components/Shared/ErrorMessage/ErrorMessage.d.ts +0 -3
- package/dist/components/Shared/ErrorMessage/ErrorMessage.styled.d.ts +0 -25
- package/dist/components/Shared/ErrorMessage/ErrorMessage.types.d.ts +0 -16
- package/dist/components/Shared/ErrorMessage/index.d.ts +0 -2
- package/dist/components/Shared/index.d.ts +0 -2
- package/dist/components/Sheet/Examples/SheetDefault.d.ts +0 -3
- package/dist/components/Sheet/Examples/SheetWithFooterAndHeader.d.ts +0 -3
- package/dist/components/Sheet/Sheet.d.ts +0 -6
- package/dist/components/Sheet/Sheet.styled.d.ts +0 -175
- package/dist/components/Sheet/Sheet.types.d.ts +0 -172
- package/dist/components/Sheet/SheetManager.d.ts +0 -37
- package/dist/components/Sheet/hooks/index.d.ts +0 -9
- package/dist/components/Sheet/hooks/useSheetAnimation.d.ts +0 -6
- package/dist/components/Sheet/hooks/useSheetClose.d.ts +0 -20
- package/dist/components/Sheet/hooks/useSheetEscape.d.ts +0 -2
- package/dist/components/Sheet/hooks/useSheetFocus.d.ts +0 -2
- package/dist/components/Sheet/hooks/useSheetRegistration.d.ts +0 -14
- package/dist/components/Sheet/hooks/useSheetResize.d.ts +0 -10
- package/dist/components/Sheet/hooks/useSheetScrollTracking.d.ts +0 -21
- package/dist/components/Sheet/hooks/useSheetSwipe.d.ts +0 -8
- package/dist/components/Sheet/hooks/useSheetWidth.d.ts +0 -20
- package/dist/components/Sheet/index.d.ts +0 -4
- package/dist/components/SideNavigation/SideNavigation.d.ts +0 -4
- package/dist/components/SideNavigation/SideNavigation.styled.d.ts +0 -249
- package/dist/components/SideNavigation/SideNavigation.types.d.ts +0 -128
- package/dist/components/SideNavigation/docs/MicroFrontendExample.d.ts +0 -37
- package/dist/components/SideNavigation/docs/ShellExample.d.ts +0 -9
- package/dist/components/SideNavigation/docs/ShellHomeContent.d.ts +0 -5
- package/dist/components/SideNavigation/docs/index.d.ts +0 -1
- package/dist/components/SideNavigation/docs/mfe/HubDashboardContent.d.ts +0 -5
- package/dist/components/SideNavigation/docs/mfe/ZainNewChatContent.d.ts +0 -8
- package/dist/components/SideNavigation/docs/mfe/apps/analytics.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/api.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/campaigns.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/cashlink.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/cockpit-x.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/cockpit.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/connect.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/dms-plus.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/index.d.ts +0 -59
- package/dist/components/SideNavigation/docs/mfe/apps/insights.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/one.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/payroll.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/recruit.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/safety-manager.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/work-app.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/apps/zain.d.ts +0 -4
- package/dist/components/SideNavigation/docs/mfe/hubMenu.d.ts +0 -9
- package/dist/components/SideNavigation/docs/mfe/internalHomeNav.d.ts +0 -7
- package/dist/components/SideNavigation/docs/mfe/zainMenu.d.ts +0 -7
- package/dist/components/SideNavigation/index.d.ts +0 -2
- package/dist/components/SideNavigation/usePinnedSections.d.ts +0 -7
- package/dist/components/Skeleton/Skeleton.d.ts +0 -3
- package/dist/components/Skeleton/Skeleton.styled.d.ts +0 -43
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -20
- package/dist/components/Skeleton/index.d.ts +0 -2
- package/dist/components/Snackbar/Snackbar.constants.d.ts +0 -5
- package/dist/components/Snackbar/Snackbar.context.d.ts +0 -8
- package/dist/components/Snackbar/Snackbar.context.definition.d.ts +0 -2
- package/dist/components/Snackbar/Snackbar.d.ts +0 -32
- package/dist/components/Snackbar/Snackbar.styled.d.ts +0 -173
- package/dist/components/Snackbar/Snackbar.types.d.ts +0 -119
- package/dist/components/Snackbar/index.d.ts +0 -5
- package/dist/components/Snackbar/useSnackbar.d.ts +0 -20
- package/dist/components/Stack/Stack.d.ts +0 -4
- package/dist/components/Stack/Stack.styled.d.ts +0 -367
- package/dist/components/Stack/Stack.types.d.ts +0 -74
- package/dist/components/Stack/index.d.ts +0 -2
- package/dist/components/Switch/Switch.d.ts +0 -4
- package/dist/components/Switch/Switch.styled.d.ts +0 -68
- package/dist/components/Switch/Switch.types.d.ts +0 -54
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Table/ExpandDetailExample/ExpandDetailExample.d.ts +0 -4
- package/dist/components/Table/Table.d.ts +0 -6
- package/dist/components/Table/Table.styled.d.ts +0 -77
- package/dist/components/Table/Table.types.d.ts +0 -114
- package/dist/components/Table/TableDocExample/RowActionButton.d.ts +0 -5
- package/dist/components/Table/TableDocExample/TableDocExample.constants.d.ts +0 -14
- package/dist/components/Table/TableDocExample/TableDocExample.d.ts +0 -4
- package/dist/components/Table/TableDocExample/index.d.ts +0 -1
- package/dist/components/Table/index.d.ts +0 -2
- package/dist/components/Tabs/TabItem.d.ts +0 -3
- package/dist/components/Tabs/Tabs.d.ts +0 -6
- package/dist/components/Tabs/Tabs.styled.d.ts +0 -161
- package/dist/components/Tabs/Tabs.types.d.ts +0 -60
- package/dist/components/Tabs/index.d.ts +0 -2
- package/dist/components/Tag/Tag.d.ts +0 -3
- package/dist/components/Tag/Tag.styled.d.ts +0 -73
- package/dist/components/Tag/Tag.types.d.ts +0 -28
- package/dist/components/Tag/index.d.ts +0 -2
- package/dist/components/TextField/TextField.d.ts +0 -3
- package/dist/components/TextField/TextField.styled.d.ts +0 -335
- package/dist/components/TextField/TextField.types.d.ts +0 -67
- package/dist/components/TextField/index.d.ts +0 -2
- package/dist/components/Textarea/Textarea.d.ts +0 -3
- package/dist/components/Textarea/Textarea.styled.d.ts +0 -67
- package/dist/components/Textarea/Textarea.types.d.ts +0 -32
- package/dist/components/Textarea/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.styled.d.ts +0 -51
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -22
- package/dist/components/Tooltip/TooltipPortal.d.ts +0 -8
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/components/TopBar/TopBar.d.ts +0 -3
- package/dist/components/TopBar/TopBar.styled.d.ts +0 -19
- package/dist/components/TopBar/TopBar.types.d.ts +0 -27
- package/dist/components/TopBar/index.d.ts +0 -2
- package/dist/components/Typography/Typography.d.ts +0 -3
- package/dist/components/Typography/Typography.styled.d.ts +0 -94
- package/dist/components/Typography/Typography.types.d.ts +0 -47
- package/dist/components/Typography/index.d.ts +0 -2
- package/dist/components/Uploader/Uploader.constants.d.ts +0 -12
- package/dist/components/Uploader/Uploader.context.d.ts +0 -185
- package/dist/components/Uploader/Uploader.d.ts +0 -3
- package/dist/components/Uploader/Uploader.types.d.ts +0 -238
- package/dist/components/Uploader/components/Announcer/Announcer.d.ts +0 -2
- package/dist/components/Uploader/components/Announcer/index.d.ts +0 -1
- package/dist/components/Uploader/components/DropZone/DropZone.d.ts +0 -3
- package/dist/components/Uploader/components/DropZone/DropZone.styled.d.ts +0 -68
- package/dist/components/Uploader/components/DropZone/index.d.ts +0 -1
- package/dist/components/Uploader/components/FileItem/FileItem.d.ts +0 -18
- package/dist/components/Uploader/components/FileItem/FileItem.styled.d.ts +0 -67
- package/dist/components/Uploader/components/FileItem/index.d.ts +0 -2
- package/dist/components/Uploader/components/FileItem/useFileItem.d.ts +0 -33
- package/dist/components/Uploader/components/FileList/FileList.d.ts +0 -12
- package/dist/components/Uploader/components/FileList/FileList.styled.d.ts +0 -1
- package/dist/components/Uploader/components/FileList/index.d.ts +0 -2
- package/dist/components/Uploader/components/RejectionList/RejectionList.d.ts +0 -12
- package/dist/components/Uploader/components/RejectionList/RejectionList.styled.d.ts +0 -10
- package/dist/components/Uploader/components/RejectionList/index.d.ts +0 -2
- package/dist/components/Uploader/components/index.d.ts +0 -5
- package/dist/components/Uploader/hooks/index.d.ts +0 -11
- package/dist/components/Uploader/hooks/useAnnouncements.d.ts +0 -10
- package/dist/components/Uploader/hooks/useDragAndDrop.d.ts +0 -17
- package/dist/components/Uploader/hooks/useFileInput.d.ts +0 -19
- package/dist/components/Uploader/hooks/useFileOperations.d.ts +0 -18
- package/dist/components/Uploader/hooks/useFileSelection.d.ts +0 -36
- package/dist/components/Uploader/hooks/useFileUpload.d.ts +0 -66
- package/dist/components/Uploader/hooks/useUploaderContext.d.ts +0 -3
- package/dist/components/Uploader/hooks/useUploaderRef.d.ts +0 -13
- package/dist/components/Uploader/hooks/useUploaderState.d.ts +0 -30
- package/dist/components/Uploader/hooks/useValidation.d.ts +0 -30
- package/dist/components/Uploader/index.d.ts +0 -6
- package/dist/components/Uploader/types/errors.d.ts +0 -28
- package/dist/components/Uploader/types/events.d.ts +0 -65
- package/dist/components/Uploader/types/file.d.ts +0 -116
- package/dist/components/Uploader/types/index.d.ts +0 -3
- package/dist/components/Uploader/utils/createFetchUpload.d.ts +0 -32
- package/dist/components/Uploader/utils/createXhrUpload.d.ts +0 -45
- package/dist/components/Uploader/utils/detectDuplicates.d.ts +0 -5
- package/dist/components/Uploader/utils/formatFileSize.d.ts +0 -3
- package/dist/components/Uploader/utils/generateId.d.ts +0 -1
- package/dist/components/Uploader/utils/getFileExtension.d.ts +0 -1
- package/dist/components/Uploader/utils/index.d.ts +0 -8
- package/dist/components/Uploader/utils/normalizeFile.d.ts +0 -3
- package/dist/components/Uploader/utils/validateFileType.d.ts +0 -1
- package/dist/components/UserArea/UserArea.d.ts +0 -3
- package/dist/components/UserArea/UserArea.styled.d.ts +0 -65
- package/dist/components/UserArea/UserArea.types.d.ts +0 -49
- package/dist/components/UserArea/index.d.ts +0 -2
- package/dist/components/ZvooveBrand/ZvooveBrand.d.ts +0 -6
- package/dist/components/ZvooveBrand/ZvooveBrand.types.d.ts +0 -22
- package/dist/components/ZvooveBrand/index.d.ts +0 -2
- package/dist/config.d.ts +0 -48
- package/dist/constants/align.d.ts +0 -3
- package/dist/constants/breakpoints.d.ts +0 -10
- package/dist/constants/colors.d.ts +0 -7
- package/dist/constants/direction.d.ts +0 -3
- package/dist/constants/dom.d.ts +0 -5
- package/dist/constants/gap.d.ts +0 -4
- package/dist/constants/index.d.ts +0 -11
- package/dist/constants/justify.d.ts +0 -3
- package/dist/constants/margin.d.ts +0 -16
- package/dist/constants/overflow.d.ts +0 -5
- package/dist/constants/padding.d.ts +0 -16
- package/dist/constants/wrap.d.ts +0 -3
- package/dist/docs/components/TokensTable.d.ts +0 -6
- package/dist/docs/components/WelcomeTile.d.ts +0 -8
- package/dist/docs/components/tokens.d.ts +0 -10
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useBreakpoint.d.ts +0 -51
- package/dist/hooks/useClickOutside.d.ts +0 -4
- package/dist/index.d.ts +0 -52
- package/dist/libs/index.d.ts +0 -1
- package/dist/libs/tv.d.ts +0 -23
- package/dist/types/index.d.ts +0 -71
- package/dist/utils/checkIconSource.d.ts +0 -1
- package/dist/utils/containsOnlySizeProps.d.ts +0 -1
- package/dist/utils/formatFromStringToDate.d.ts +0 -1
- package/dist/utils/getComponentTagName.d.ts +0 -1
- package/dist/utils/getFlexProps.d.ts +0 -4
- package/dist/utils/getOverflowProps.d.ts +0 -23
- package/dist/utils/getResponsiveValue.d.ts +0 -35
- package/dist/utils/getSpacingProps.d.ts +0 -4
- package/dist/utils/index.d.ts +0 -15
- package/dist/utils/isDefined.d.ts +0 -1
- package/dist/utils/isValidSizeUnit.d.ts +0 -1
- package/dist/utils/linkify.d.ts +0 -2
- package/dist/utils/logs.d.ts +0 -6
- package/dist/utils/setupUserEvent.d.ts +0 -6
- package/dist/utils/typeGuards.d.ts +0 -21
- package/dist/utils/viewports.d.ts +0 -13
|
@@ -0,0 +1,4723 @@
|
|
|
1
|
+
import { ChangeEventHandler } from 'react';
|
|
2
|
+
import { ComponentRef } from 'react';
|
|
3
|
+
import { CSSProperties } from 'react';
|
|
4
|
+
import { default as default_2 } from 'react';
|
|
5
|
+
import { Dispatch } from 'react';
|
|
6
|
+
import { ElementType } from 'react';
|
|
7
|
+
import { ForwardedRef } from 'react';
|
|
8
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
9
|
+
import { Icon as Icon_2 } from '@phosphor-icons/react';
|
|
10
|
+
import { IconWeight } from '@phosphor-icons/react';
|
|
11
|
+
import { JSX } from 'react/jsx-runtime';
|
|
12
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
13
|
+
import { PropsWithChildren } from 'react';
|
|
14
|
+
import { ReactNode } from 'react';
|
|
15
|
+
import { ReactPortal } from 'react';
|
|
16
|
+
import { RefAttributes } from 'react';
|
|
17
|
+
import { RefObject } from 'react';
|
|
18
|
+
import { SetStateAction } from 'react';
|
|
19
|
+
|
|
20
|
+
export declare const Accordion: {
|
|
21
|
+
<T extends readonly AccordionItem[]>({ items, onToggle, openItems, allowMultipleOpenItems, }: AccordionProps<T>): JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export declare interface AccordionItem {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
supportingText?: string;
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
isOpen?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare type AccordionItemId<T extends readonly AccordionItem[]> = T[number]['id'];
|
|
35
|
+
|
|
36
|
+
export declare interface AccordionProps<T extends readonly AccordionItem[] = readonly AccordionItem[]> {
|
|
37
|
+
/**
|
|
38
|
+
* The children of the Accordion.
|
|
39
|
+
*/
|
|
40
|
+
items: AccordionItem[];
|
|
41
|
+
/**
|
|
42
|
+
* The open items of the Accordion. By default, all items are closed. <br />
|
|
43
|
+
* The ids must match the `id` of the item. <br />
|
|
44
|
+
* When allowMultipleOpenItems is false, this should be a single id or undefined. <br />
|
|
45
|
+
* When allowMultipleOpenItems is true, this can be an array of ids or undefined.
|
|
46
|
+
*/
|
|
47
|
+
openItems?: AccordionItemId<T> | AccordionItemId<T>[];
|
|
48
|
+
/**
|
|
49
|
+
* Callback when the accordion header is clicked <br />
|
|
50
|
+
* If provided, this will override the default behavior and you need to manage the open items yourself.
|
|
51
|
+
*/
|
|
52
|
+
onToggle?: (item: AccordionItem) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Whether to allow multiple open items or not.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
allowMultipleOpenItems?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare const ActionCard: {
|
|
61
|
+
({ header, children, footer, isOpen, expandable, onExpandToggle, }: ActionCardProps): JSX.Element;
|
|
62
|
+
displayName: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare interface ActionCardProps {
|
|
66
|
+
/**
|
|
67
|
+
* Content rendered inside the card header area with a
|
|
68
|
+
* `surface-container-lowest` background. Wrapped in a horizontal Stack
|
|
69
|
+
* with standardised padding so the consumer only provides the inner nodes.
|
|
70
|
+
*/
|
|
71
|
+
header?: ReactNode;
|
|
72
|
+
/** Card body content. */
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Content rendered inside the card footer area. Wrapped in a horizontal
|
|
76
|
+
* Stack with standardised padding so the consumer only provides the inner
|
|
77
|
+
* nodes (typically action buttons).
|
|
78
|
+
*/
|
|
79
|
+
footer?: ReactNode;
|
|
80
|
+
/**
|
|
81
|
+
* Whether the ActionCard is expandable.
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
expandable?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the ActionCard is open or closed.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
isOpen?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Called when the header is clicked in expandable mode.
|
|
92
|
+
* Required when using `isOpen` (controlled) so the parent can update its state.
|
|
93
|
+
*/
|
|
94
|
+
onExpandToggle?: () => void;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare interface ActionConfirmation {
|
|
98
|
+
/**
|
|
99
|
+
* Icon to swap to when confirmed (e.g. `'check'` for a copy action).
|
|
100
|
+
* When omitted, the original icon is kept and shown as filled instead.
|
|
101
|
+
*/
|
|
102
|
+
icon?: CommonIconNames;
|
|
103
|
+
/**
|
|
104
|
+
* Confirmation text shown next to the action group (e.g. "Copied").
|
|
105
|
+
*/
|
|
106
|
+
text?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Duration in ms before the confirmation auto-reverts.
|
|
109
|
+
* Defaults to `3000`. Set to `0` for toggle actions that stay until toggled off.
|
|
110
|
+
* @default 3000
|
|
111
|
+
*/
|
|
112
|
+
duration?: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare const align: {
|
|
116
|
+
readonly LEFT: "left";
|
|
117
|
+
readonly CENTER: "center";
|
|
118
|
+
readonly RIGHT: "right";
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export declare type AlignItems = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Types of announcements that can be made to screen readers.
|
|
125
|
+
*/
|
|
126
|
+
export declare type AnnouncementType = 'added' | 'removed' | 'cleared' | 'component-error' | 'count-changed';
|
|
127
|
+
|
|
128
|
+
export declare const Avatar: ({ size, type: typeProp, name, image, initialsAmount, variant, }: AvatarProps) => JSX.Element;
|
|
129
|
+
|
|
130
|
+
declare const AVATAR_SIZES: {
|
|
131
|
+
readonly SMALL: "small";
|
|
132
|
+
readonly MEDIUM: "medium";
|
|
133
|
+
readonly LARGE: "large";
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export declare const AvatarGroup: ({ children, maxLength, total }: AvatarGroupProps) => JSX.Element;
|
|
137
|
+
|
|
138
|
+
export declare interface AvatarGroupProps {
|
|
139
|
+
/**
|
|
140
|
+
* The children of the button.
|
|
141
|
+
*/
|
|
142
|
+
children: ReactNode;
|
|
143
|
+
/**
|
|
144
|
+
* Maximum number of avatars to display before showing a count
|
|
145
|
+
*/
|
|
146
|
+
maxLength?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Total number of avatars in the group
|
|
149
|
+
*/
|
|
150
|
+
total?: number;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
154
|
+
/**
|
|
155
|
+
* The size of the avatar
|
|
156
|
+
* @default 'large'
|
|
157
|
+
*/
|
|
158
|
+
size?: ResponsiveType<AvatarSize>;
|
|
159
|
+
/**
|
|
160
|
+
* The type of the avatar
|
|
161
|
+
*/
|
|
162
|
+
type?: 'initials' | 'check' | 'avatar' | 'image' | 'zvoove';
|
|
163
|
+
/**
|
|
164
|
+
* The image of the avatar
|
|
165
|
+
*/
|
|
166
|
+
image?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The name of the avatar
|
|
169
|
+
*/
|
|
170
|
+
name?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The amount of initials of the avatar
|
|
173
|
+
*/
|
|
174
|
+
initialsAmount?: 1 | 2;
|
|
175
|
+
/**
|
|
176
|
+
* The variant of the avatar
|
|
177
|
+
*/
|
|
178
|
+
variant?: 'round' | 'square';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
declare type AvatarSize = (typeof AVATAR_SIZES)[keyof typeof AVATAR_SIZES];
|
|
182
|
+
|
|
183
|
+
declare type AxisVariant = 'X' | 'Y';
|
|
184
|
+
|
|
185
|
+
export declare type BackgroundColors = 'background' | 'outline' | 'outline-variant' | 'outline-low' | 'primary' | 'primary-hover' | 'primary-active' | 'secondary' | 'tertiary' | 'primary-container' | 'secondary-container' | 'tertiary-container' | 'tertiary-container-hover' | 'tertiary-container-active' | 'primary-fixed' | 'primary-fixed-dim' | 'secondary-fixed' | 'secondary-fixed-dim' | 'tertiary-fixed' | 'tertiary-fixed-dim' | 'surface' | 'surface-bright' | 'surface-dim' | 'surface-variant' | 'surface-container-lowest' | 'surface-container-low' | 'surface-container' | 'surface-container-high' | 'surface-container-highest' | 'error' | 'error-container' | 'inverse-surface' | 'inverse-on-surface' | 'inverse-primary' | 'scrim' | 'yellow' | 'dark-yellow' | 'yellow-container' | 'green' | 'dark-green' | 'green-container' | 'pink' | 'dark-pink' | 'pink-container' | 'steel-blue' | 'dark-steel-blue' | 'steel-blue-container' | 'container-neutral' | 'container-neutral-hover' | 'code-surface' | 'code-surface-variant';
|
|
186
|
+
|
|
187
|
+
export declare const Badge: ({ children, variant, content, dot, }: BadgeProps) => JSX.Element;
|
|
188
|
+
|
|
189
|
+
export declare interface BadgeProps {
|
|
190
|
+
/**
|
|
191
|
+
* The children of the button.
|
|
192
|
+
*/
|
|
193
|
+
children: ReactNode;
|
|
194
|
+
/**
|
|
195
|
+
* The variant of the component
|
|
196
|
+
*/
|
|
197
|
+
variant?: 'primary' | 'secondary';
|
|
198
|
+
/**
|
|
199
|
+
* The content of the badge. If undefined, the badge will be hidden.
|
|
200
|
+
*/
|
|
201
|
+
content?: ReactNode;
|
|
202
|
+
/**
|
|
203
|
+
* The dot prop changes a badge into a small dot
|
|
204
|
+
*/
|
|
205
|
+
dot?: boolean;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export declare const Breadcrumbs: <T extends default_2.ElementType = "a">({ items, linkComponent: LinkComponent, homeIcon, }: BreadcrumbsProps<T>) => JSX.Element;
|
|
209
|
+
|
|
210
|
+
export declare type BreadcrumbsItem<T extends React.ElementType = 'a'> = {
|
|
211
|
+
label: string;
|
|
212
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
213
|
+
|
|
214
|
+
export declare type BreadcrumbsProps<T extends React.ElementType = 'a'> = {
|
|
215
|
+
/**
|
|
216
|
+
* The items of the component. <br />
|
|
217
|
+
* The items are displayed in the order they are passed. <br />
|
|
218
|
+
* `type BreadcrumbsItem = { label: string; href: string; onItemClick?: () => void; }`
|
|
219
|
+
*/
|
|
220
|
+
items: BreadcrumbsItem<T>[];
|
|
221
|
+
/**
|
|
222
|
+
* The component to render for the link
|
|
223
|
+
* @default 'a'
|
|
224
|
+
*/
|
|
225
|
+
linkComponent?: T | 'a';
|
|
226
|
+
/**
|
|
227
|
+
* The icon name for the home (first) breadcrumb item
|
|
228
|
+
* @default 'home'
|
|
229
|
+
*/
|
|
230
|
+
homeIcon?: CommonIconNames;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
declare const BREAKPOINTS: {
|
|
234
|
+
readonly minimum: 0;
|
|
235
|
+
readonly mobile: 768;
|
|
236
|
+
readonly tablet: 1024;
|
|
237
|
+
readonly laptop: 1280;
|
|
238
|
+
readonly desktop: 1536;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export declare const Button: {
|
|
242
|
+
<T extends React.ElementType = "button">({ children, variant, hideLabel, as, icon, linkComponent, size, isLoading, ...props }: ButtonProps<T> & {
|
|
243
|
+
ref?: ForwardedRef<T>;
|
|
244
|
+
}): JSX.Element;
|
|
245
|
+
displayName: string;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export declare type ButtonProps<T extends React.ElementType = 'button'> = UnionAs & {
|
|
249
|
+
/**
|
|
250
|
+
* The children of the button.
|
|
251
|
+
*/
|
|
252
|
+
children?: ReactNode;
|
|
253
|
+
/**
|
|
254
|
+
* The size of the button.
|
|
255
|
+
*/
|
|
256
|
+
size?: ResponsiveType<'sm' | 'md' | 'lg'>;
|
|
257
|
+
/**
|
|
258
|
+
* The icon of the button.
|
|
259
|
+
*/
|
|
260
|
+
icon?: CommonIconNames | Omit<IconProps, 'size' | 'color'>;
|
|
261
|
+
/**
|
|
262
|
+
* Hide the label of the button. <br />
|
|
263
|
+
* Only works if `icon` is provided.
|
|
264
|
+
*/
|
|
265
|
+
hideLabel?: ResponsiveType<boolean>;
|
|
266
|
+
/**
|
|
267
|
+
* Handle click events.
|
|
268
|
+
*/
|
|
269
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
270
|
+
/**
|
|
271
|
+
* The variant is used
|
|
272
|
+
* to change the visual communication.
|
|
273
|
+
*/
|
|
274
|
+
variant?: ResponsiveType<'text' | 'textSecondary' | 'filled' | 'outlined' | 'elevated' | 'tonal' | 'linkPrimary' | 'linkSecondary' | 'positive' | 'negative'>;
|
|
275
|
+
/**
|
|
276
|
+
* The component to render the button as. <br />
|
|
277
|
+
* This is useful if you want to use a different component for the button like a `Link` component from **Next.js** or **React Router**.
|
|
278
|
+
*/
|
|
279
|
+
linkComponent?: T;
|
|
280
|
+
/**
|
|
281
|
+
* The ref of the button.
|
|
282
|
+
*/
|
|
283
|
+
ref?: ForwardedRef<T>;
|
|
284
|
+
/**
|
|
285
|
+
* Whether the button is loading.
|
|
286
|
+
*/
|
|
287
|
+
isLoading?: boolean;
|
|
288
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
289
|
+
|
|
290
|
+
export declare type ButtonsTranslations = {
|
|
291
|
+
cancel?: string;
|
|
292
|
+
clear?: string;
|
|
293
|
+
ok?: string;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export declare const Card: {
|
|
297
|
+
<T extends React.ElementType = "div">({ children, header, headerBgColor, footer, footerBgColor, hideHeaderBorder, borderRadius, elevation, variant, padding, margin, className, overflow, bgColor, height, width, minHeight, maxHeight, minWidth, maxWidth, interactive, as, linkComponent, ...restProps }: CardProps<T> & {
|
|
298
|
+
ref?: ForwardedRef<ComponentRef<T>>;
|
|
299
|
+
}): JSX.Element;
|
|
300
|
+
displayName: string;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
export declare type CardProps<T extends React.ElementType = 'div'> = UnionAs_2 & {
|
|
304
|
+
/**
|
|
305
|
+
* The content of the card.
|
|
306
|
+
*/
|
|
307
|
+
children?: ReactNode;
|
|
308
|
+
/**
|
|
309
|
+
* Content rendered in the header area.
|
|
310
|
+
* When provided, a border-bottom separator is added automatically.
|
|
311
|
+
*/
|
|
312
|
+
header?: ReactNode;
|
|
313
|
+
/**
|
|
314
|
+
* Background color applied to the header area.
|
|
315
|
+
* Only used when `header` is provided.
|
|
316
|
+
*/
|
|
317
|
+
headerBgColor?: BackgroundColors;
|
|
318
|
+
/**
|
|
319
|
+
* Whether to hide the border-bottom separator in the header area.
|
|
320
|
+
* @default false
|
|
321
|
+
*/
|
|
322
|
+
hideHeaderBorder?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Content rendered below the body.
|
|
325
|
+
* Receives no extra styling — the consumer controls its appearance.
|
|
326
|
+
*/
|
|
327
|
+
footer?: ReactNode;
|
|
328
|
+
/**
|
|
329
|
+
* Background color applied to the footer area.
|
|
330
|
+
* Only used when `footer` is provided.
|
|
331
|
+
*/
|
|
332
|
+
footerBgColor?: BackgroundColors;
|
|
333
|
+
/**
|
|
334
|
+
* @deprecated Use the `height`, `width`, `minHeight`, `maxHeight`, `minWidth`, `maxWidth` props instead.
|
|
335
|
+
*/
|
|
336
|
+
className?: string;
|
|
337
|
+
/**
|
|
338
|
+
* The height of the card.
|
|
339
|
+
* @default 'auto'
|
|
340
|
+
*/
|
|
341
|
+
height?: ResponsiveType<number | string>;
|
|
342
|
+
/**
|
|
343
|
+
* The width of the card.
|
|
344
|
+
* @default '100%'
|
|
345
|
+
*/
|
|
346
|
+
width?: ResponsiveType<number | string>;
|
|
347
|
+
/**
|
|
348
|
+
* The min height of the card.
|
|
349
|
+
* @default 'auto'
|
|
350
|
+
*/
|
|
351
|
+
minHeight?: ResponsiveType<number | string>;
|
|
352
|
+
/**
|
|
353
|
+
* The max height of the card.
|
|
354
|
+
* @default 'auto'
|
|
355
|
+
*/
|
|
356
|
+
maxHeight?: ResponsiveType<number | string>;
|
|
357
|
+
/**
|
|
358
|
+
* The min width of the card.
|
|
359
|
+
* @default 'auto'
|
|
360
|
+
*/
|
|
361
|
+
minWidth?: ResponsiveType<number | string>;
|
|
362
|
+
/**
|
|
363
|
+
* The max width of the card.
|
|
364
|
+
* @default 'auto'
|
|
365
|
+
*/
|
|
366
|
+
maxWidth?: ResponsiveType<number | string>;
|
|
367
|
+
/**
|
|
368
|
+
* The border radius of the card.
|
|
369
|
+
*/
|
|
370
|
+
borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
371
|
+
/**
|
|
372
|
+
* The padding of the card.
|
|
373
|
+
*/
|
|
374
|
+
padding?: ResponsiveType<Padding>;
|
|
375
|
+
/**
|
|
376
|
+
* The margin of the card.
|
|
377
|
+
*/
|
|
378
|
+
margin?: ResponsiveType<Margin>;
|
|
379
|
+
/**
|
|
380
|
+
* The elevation/shadow of the card.
|
|
381
|
+
*/
|
|
382
|
+
elevation?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
383
|
+
/**
|
|
384
|
+
* The variant of the card.
|
|
385
|
+
*/
|
|
386
|
+
variant?: 'outlined' | 'filled';
|
|
387
|
+
/**
|
|
388
|
+
* The overflow of the card.
|
|
389
|
+
*/
|
|
390
|
+
overflow?: ResponsiveType<Overflow>;
|
|
391
|
+
/**
|
|
392
|
+
* The background color of the card.
|
|
393
|
+
*/
|
|
394
|
+
bgColor?: BackgroundColors;
|
|
395
|
+
/**
|
|
396
|
+
* When `true`, the card shows a hover background color at 80% opacity and
|
|
397
|
+
* a pointer cursor. Automatically enabled when `onClick`, `linkComponent`,
|
|
398
|
+
* or `as="a"` is set. Pass `false` to opt out.
|
|
399
|
+
*/
|
|
400
|
+
interactive?: boolean;
|
|
401
|
+
/**
|
|
402
|
+
* Handle click events on the card.
|
|
403
|
+
*/
|
|
404
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
405
|
+
/**
|
|
406
|
+
* A custom component to render the card root as. Useful for router link
|
|
407
|
+
* components (e.g. Next.js `Link` or React Router `Link`).
|
|
408
|
+
* When provided, the `as` prop is ignored.
|
|
409
|
+
*/
|
|
410
|
+
linkComponent?: T;
|
|
411
|
+
/**
|
|
412
|
+
* Ref forwarded to the root element.
|
|
413
|
+
*/
|
|
414
|
+
ref?: ForwardedRef<ComponentRef<T>>;
|
|
415
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children' | 'className'>;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Event emitted when files are changed (added, removed, replaced, or cleared).
|
|
419
|
+
*/
|
|
420
|
+
export declare interface ChangeEvent {
|
|
421
|
+
/**
|
|
422
|
+
* The type of change that occurred.
|
|
423
|
+
*/
|
|
424
|
+
action: 'add' | 'remove' | 'replace' | 'clear';
|
|
425
|
+
/**
|
|
426
|
+
* Files that were added in this action.
|
|
427
|
+
* Present when action is 'add' or 'replace'.
|
|
428
|
+
*/
|
|
429
|
+
addedFiles?: FileItem[];
|
|
430
|
+
/**
|
|
431
|
+
* Files that were removed in this action.
|
|
432
|
+
* Present when action is 'remove'.
|
|
433
|
+
*/
|
|
434
|
+
removedFiles?: FileItem[];
|
|
435
|
+
/**
|
|
436
|
+
* The complete list of files after the change.
|
|
437
|
+
*/
|
|
438
|
+
allFiles: FileItem[];
|
|
439
|
+
/**
|
|
440
|
+
* Component-level error if one occurred during the action.
|
|
441
|
+
*/
|
|
442
|
+
componentError?: {
|
|
443
|
+
code: COMPONENT_ERROR;
|
|
444
|
+
message: string;
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export declare const ChatBubble: ForwardRefExoticComponent<ChatBubbleProps & RefAttributes<HTMLDivElement>>;
|
|
449
|
+
|
|
450
|
+
export declare const ChatBubbleMedia: ForwardRefExoticComponent<ChatBubbleMediaProps & RefAttributes<HTMLElement>>;
|
|
451
|
+
|
|
452
|
+
export declare interface ChatBubbleMediaProps extends React.HTMLAttributes<HTMLElement> {
|
|
453
|
+
/** The media element (img, video, or iframe) to render. */
|
|
454
|
+
children: React.ReactNode;
|
|
455
|
+
/** Optional caption displayed below the media. */
|
|
456
|
+
caption?: string;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export declare interface ChatBubbleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
460
|
+
/**
|
|
461
|
+
* The variant determines alignment and styling of the bubble.
|
|
462
|
+
* - sender: right-aligned, primary blue background
|
|
463
|
+
* - receiver: left-aligned, light surface background
|
|
464
|
+
*/
|
|
465
|
+
variant?: ChatBubbleVariant;
|
|
466
|
+
/**
|
|
467
|
+
* Visual state of the bubble.
|
|
468
|
+
* - default: renders children inside a styled bubble
|
|
469
|
+
* - thinking: receiver-only, shows italic label with animated dots
|
|
470
|
+
* - error: reserved for error state styling
|
|
471
|
+
* @default 'default'
|
|
472
|
+
*/
|
|
473
|
+
state?: ChatBubbleState;
|
|
474
|
+
/**
|
|
475
|
+
* The message content to display in the bubble. Accepts any ReactNode —
|
|
476
|
+
* plain text, HTML via ContentBlock, custom components, media, tables, etc.
|
|
477
|
+
*/
|
|
478
|
+
children?: React.ReactNode;
|
|
479
|
+
/**
|
|
480
|
+
* Phrases to cycle through while in the "thinking" state.
|
|
481
|
+
* Each phrase is shown with animated dots appended.
|
|
482
|
+
* @default ['Einen Moment bitte', 'Ich denke nach', 'Wird verarbeitet']
|
|
483
|
+
*/
|
|
484
|
+
thinkingPhrases?: string[];
|
|
485
|
+
/**
|
|
486
|
+
* Props forwarded to the Avatar component.
|
|
487
|
+
* When not provided, defaults to `{ type: 'zvoove' }` for receiver
|
|
488
|
+
* and auto-detects type based on `image`/`name` for sender.
|
|
489
|
+
*/
|
|
490
|
+
avatar?: AvatarProps;
|
|
491
|
+
/**
|
|
492
|
+
* Rich content rendered below the bubble without bubble styling — cards,
|
|
493
|
+
* tables, or structured data. When both `children` and `attachment` are set,
|
|
494
|
+
* the text appears inside a styled bubble and the attachment renders directly
|
|
495
|
+
* below, aligned with the bubble. When only `attachment` is set, it renders
|
|
496
|
+
* next to the avatar without a surrounding bubble.
|
|
497
|
+
*/
|
|
498
|
+
attachment?: React.ReactNode;
|
|
499
|
+
/**
|
|
500
|
+
* Footer content rendered at the bottom of the ContentSlot, below the bubble
|
|
501
|
+
* and attachment. Typically used for `MessageActions`.
|
|
502
|
+
*/
|
|
503
|
+
footer?: React.ReactNode;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export declare type ChatBubbleState = 'default' | 'thinking' | 'error';
|
|
507
|
+
|
|
508
|
+
export declare type ChatBubbleVariant = 'sender' | 'receiver';
|
|
509
|
+
|
|
510
|
+
export declare const Checkbox: ({ checked, name, id, disabled, error, indeterminate, value, label, onChange, }: CheckboxProps) => JSX.Element;
|
|
511
|
+
|
|
512
|
+
export declare interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
513
|
+
/**
|
|
514
|
+
* Handle change events.
|
|
515
|
+
*/
|
|
516
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
517
|
+
/**
|
|
518
|
+
* Handle the label of the checkbox.
|
|
519
|
+
*/
|
|
520
|
+
label: ReactNode;
|
|
521
|
+
/**
|
|
522
|
+
* Handle the name of the checkbox.
|
|
523
|
+
*/
|
|
524
|
+
name?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Handle the id of the checkbox.
|
|
527
|
+
* @default auto-generated
|
|
528
|
+
*/
|
|
529
|
+
id?: string;
|
|
530
|
+
/**
|
|
531
|
+
* Handle the value of the checkbox.
|
|
532
|
+
*/
|
|
533
|
+
value?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Handle if the checkbox is checked.
|
|
536
|
+
*/
|
|
537
|
+
checked?: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Handle if the checkbox is disabled.
|
|
540
|
+
*/
|
|
541
|
+
disabled?: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* Handle if the checkbox has an error.
|
|
544
|
+
*/
|
|
545
|
+
error?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* Handle if the checkbox has an indeterminate state.
|
|
548
|
+
*/
|
|
549
|
+
indeterminate?: boolean;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
export declare const Chip: default_2.ForwardRefExoticComponent<ChipProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
553
|
+
|
|
554
|
+
export declare type ChipProps = ChipPropsTypeIcon & {
|
|
555
|
+
/**
|
|
556
|
+
* The children of the button.
|
|
557
|
+
*/
|
|
558
|
+
label: string;
|
|
559
|
+
/**
|
|
560
|
+
* The variant of the component
|
|
561
|
+
*/
|
|
562
|
+
variant?: 'primary' | 'secondary' | 'pending' | 'confirmed' | 'rejected' | 'skipped';
|
|
563
|
+
/**
|
|
564
|
+
* The drop shadow of the component
|
|
565
|
+
*/
|
|
566
|
+
elevated?: boolean;
|
|
567
|
+
/**
|
|
568
|
+
* Whether the component is readonly or not. <br />
|
|
569
|
+
* This is used for `choice` chips.
|
|
570
|
+
*/
|
|
571
|
+
readonly?: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Whether the component is disabled or not.
|
|
574
|
+
*/
|
|
575
|
+
disabled?: boolean;
|
|
576
|
+
/**
|
|
577
|
+
* The size of the component
|
|
578
|
+
*/
|
|
579
|
+
size?: 'medium' | 'large';
|
|
580
|
+
/**
|
|
581
|
+
* The action to perform when the delete button is clicked.
|
|
582
|
+
* This is used only for `input` type chips.
|
|
583
|
+
*/
|
|
584
|
+
onDelete?: () => void;
|
|
585
|
+
/**
|
|
586
|
+
* The action to perform when the chip is clicked.
|
|
587
|
+
* This is used only for `filter` and 'choice' type chips.
|
|
588
|
+
*/
|
|
589
|
+
onToggleOpen?: () => void;
|
|
590
|
+
/**
|
|
591
|
+
* Whether to show the dropdown icon or not.
|
|
592
|
+
* This is used only for `filter` and 'choice' type chips.
|
|
593
|
+
* @default true
|
|
594
|
+
*/
|
|
595
|
+
showDropdownIcon?: boolean;
|
|
596
|
+
/**
|
|
597
|
+
* The number of lines to truncate the text.
|
|
598
|
+
* @default undefined
|
|
599
|
+
*/
|
|
600
|
+
truncate?: TypographyProps['truncate'];
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
declare type ChipPropsTypeIcon = {
|
|
604
|
+
/**
|
|
605
|
+
* The type of the component
|
|
606
|
+
*/
|
|
607
|
+
type?: 'input' | 'filter' | 'assistive' | 'suggestion';
|
|
608
|
+
/**
|
|
609
|
+
* The icon to show on the left side of the button.
|
|
610
|
+
*/
|
|
611
|
+
icon?: CommonIconNames;
|
|
612
|
+
} | {
|
|
613
|
+
type?: 'choice';
|
|
614
|
+
icon?: never;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
export declare const CodeBlock: {
|
|
618
|
+
({ code, filename, language, variant, ...props }: CodeBlockProps): JSX.Element;
|
|
619
|
+
displayName: string;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
export declare interface CodeBlockProps extends React.HTMLAttributes<HTMLPreElement> {
|
|
623
|
+
/**
|
|
624
|
+
* The source code to display.
|
|
625
|
+
*/
|
|
626
|
+
code: string;
|
|
627
|
+
/**
|
|
628
|
+
* Optional filename shown in the header bar (block variant only).
|
|
629
|
+
*/
|
|
630
|
+
filename?: string;
|
|
631
|
+
/**
|
|
632
|
+
* Programming language for syntax highlighting (e.g. `"typescript"`,
|
|
633
|
+
* `"python"`, `"bash"`). When provided the code is tokenized and
|
|
634
|
+
* coloured via react-syntax-highlighter / Prism.
|
|
635
|
+
* @default 'text'
|
|
636
|
+
*/
|
|
637
|
+
language?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Display variant. In `auto` mode the component renders inline for
|
|
640
|
+
* single-line code without a filename, and as a full block otherwise.
|
|
641
|
+
* Use `inline` or `block` to force a specific rendering.
|
|
642
|
+
* @default 'auto'
|
|
643
|
+
*/
|
|
644
|
+
variant?: 'auto' | 'block' | 'inline';
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export declare type ColumnAlign = (typeof align)[keyof typeof align];
|
|
648
|
+
|
|
649
|
+
export declare type ColumnId<T extends readonly TableColumnProps[]> = T[number]['id'];
|
|
650
|
+
|
|
651
|
+
export declare type CommonIconNames = keyof typeof commonIconsMap;
|
|
652
|
+
|
|
653
|
+
export declare const commonIconsMap: {
|
|
654
|
+
readonly add: Icon_2;
|
|
655
|
+
readonly 'add-circle': Icon_2;
|
|
656
|
+
readonly 'add-file': Icon_2;
|
|
657
|
+
readonly agent: Icon_2;
|
|
658
|
+
readonly airplane: Icon_2;
|
|
659
|
+
readonly archive: Icon_2;
|
|
660
|
+
readonly 'arrow-back': Icon_2;
|
|
661
|
+
readonly 'arrow-bend': Icon_2;
|
|
662
|
+
readonly 'arrow-elbow-down-left': Icon_2;
|
|
663
|
+
readonly 'arrow-down': Icon_2;
|
|
664
|
+
readonly 'arrow-forward': Icon_2;
|
|
665
|
+
readonly 'arrow-left-right': Icon_2;
|
|
666
|
+
readonly 'arrow-up': Icon_2;
|
|
667
|
+
readonly article: Icon_2;
|
|
668
|
+
readonly automate: Icon_2;
|
|
669
|
+
readonly backspace: Icon_2;
|
|
670
|
+
readonly bank: Icon_2;
|
|
671
|
+
readonly bicycle: Icon_2;
|
|
672
|
+
readonly billing: Icon_2;
|
|
673
|
+
readonly binoculars: Icon_2;
|
|
674
|
+
readonly break: Icon_2;
|
|
675
|
+
readonly bus: Icon_2;
|
|
676
|
+
readonly calendar: Icon_2;
|
|
677
|
+
readonly 'calendar-blank': Icon_2;
|
|
678
|
+
readonly 'calendar-check': Icon_2;
|
|
679
|
+
readonly 'calendar-dot': Icon_2;
|
|
680
|
+
readonly 'calendar-x': Icon_2;
|
|
681
|
+
readonly camera: Icon_2;
|
|
682
|
+
readonly car: Icon_2;
|
|
683
|
+
readonly cart: Icon_2;
|
|
684
|
+
readonly 'cash-money': Icon_2;
|
|
685
|
+
readonly certificate: Icon_2;
|
|
686
|
+
readonly 'chat-bubble': Icon_2;
|
|
687
|
+
readonly 'chat-dots': Icon_2;
|
|
688
|
+
readonly 'chat-slash': Icon_2;
|
|
689
|
+
readonly chats: Icon_2;
|
|
690
|
+
readonly check: Icon_2;
|
|
691
|
+
readonly circle: Icon_2;
|
|
692
|
+
readonly 'check-circle': Icon_2;
|
|
693
|
+
readonly checkbox: Icon_2;
|
|
694
|
+
readonly 'checkbox-empty': Icon_2;
|
|
695
|
+
readonly 'checkbox-indefinitely': Icon_2;
|
|
696
|
+
readonly checks: Icon_2;
|
|
697
|
+
readonly 'chevron-down': Icon_2;
|
|
698
|
+
readonly 'chevron-left': Icon_2;
|
|
699
|
+
readonly 'chevron-right': Icon_2;
|
|
700
|
+
readonly 'chevron-up': Icon_2;
|
|
701
|
+
readonly 'circle-notch': Icon_2;
|
|
702
|
+
readonly close: Icon_2;
|
|
703
|
+
readonly 'close-circle': Icon_2;
|
|
704
|
+
readonly 'cloud-download': Icon_2;
|
|
705
|
+
readonly 'cloud-upload': Icon_2;
|
|
706
|
+
readonly 'clock-countdown': Icon_2;
|
|
707
|
+
readonly 'clock-person': Icon_2;
|
|
708
|
+
readonly command: Icon_2;
|
|
709
|
+
readonly columns: Icon_2;
|
|
710
|
+
readonly control: Icon_2;
|
|
711
|
+
readonly copy: Icon_2;
|
|
712
|
+
readonly 'currency-dollar': Icon_2;
|
|
713
|
+
readonly 'currency-dollar-circle': Icon_2;
|
|
714
|
+
readonly 'currency-gbp': Icon_2;
|
|
715
|
+
readonly 'dark-mode': Icon_2;
|
|
716
|
+
readonly deactivate: Icon_2;
|
|
717
|
+
readonly delete: Icon_2;
|
|
718
|
+
readonly 'diagram-view': Icon_2;
|
|
719
|
+
readonly download: Icon_2;
|
|
720
|
+
readonly drag: Icon_2;
|
|
721
|
+
readonly edit: Icon_2;
|
|
722
|
+
readonly error: Icon_2;
|
|
723
|
+
readonly 'exclamation-mark': Icon_2;
|
|
724
|
+
readonly expand: Icon_2;
|
|
725
|
+
readonly expenses: Icon_2;
|
|
726
|
+
readonly 'face-id': Icon_2;
|
|
727
|
+
readonly file: Icon_2;
|
|
728
|
+
readonly 'simple-file-archive': Icon_2;
|
|
729
|
+
readonly 'simple-file-audio': Icon_2;
|
|
730
|
+
readonly 'simple-file-c': Icon_2;
|
|
731
|
+
readonly 'simple-file-c-sharp': Icon_2;
|
|
732
|
+
readonly 'simple-file-code': Icon_2;
|
|
733
|
+
readonly 'simple-file-cpp': Icon_2;
|
|
734
|
+
readonly 'simple-file-css': Icon_2;
|
|
735
|
+
readonly 'simple-file-csv': Icon_2;
|
|
736
|
+
readonly 'simple-file-doc': Icon_2;
|
|
737
|
+
readonly 'simple-file-html': Icon_2;
|
|
738
|
+
readonly 'simple-file-image': Icon_2;
|
|
739
|
+
readonly 'simple-file-ini': Icon_2;
|
|
740
|
+
readonly 'simple-file-jpg': Icon_2;
|
|
741
|
+
readonly 'simple-file-js': Icon_2;
|
|
742
|
+
readonly 'simple-file-jsx': Icon_2;
|
|
743
|
+
readonly 'simple-file-md': Icon_2;
|
|
744
|
+
readonly 'simple-file-pdf': Icon_2;
|
|
745
|
+
readonly 'simple-file-png': Icon_2;
|
|
746
|
+
readonly 'simple-file-ppt': Icon_2;
|
|
747
|
+
readonly 'simple-file-py': Icon_2;
|
|
748
|
+
readonly 'simple-file-rs': Icon_2;
|
|
749
|
+
readonly 'simple-file-sql': Icon_2;
|
|
750
|
+
readonly 'simple-file-svg': Icon_2;
|
|
751
|
+
readonly 'simple-file-ts': Icon_2;
|
|
752
|
+
readonly 'simple-file-tsx': Icon_2;
|
|
753
|
+
readonly 'simple-file-text': Icon_2;
|
|
754
|
+
readonly 'simple-file-txt': Icon_2;
|
|
755
|
+
readonly 'simple-file-video': Icon_2;
|
|
756
|
+
readonly 'simple-file-vue': Icon_2;
|
|
757
|
+
readonly 'simple-file-xls': Icon_2;
|
|
758
|
+
readonly 'simple-file-zip': Icon_2;
|
|
759
|
+
readonly filter: Icon_2;
|
|
760
|
+
readonly filters: Icon_2;
|
|
761
|
+
readonly 'first-page': Icon_2;
|
|
762
|
+
readonly 'flag-de': ({ size }: {
|
|
763
|
+
size?: number;
|
|
764
|
+
}) => JSX.Element;
|
|
765
|
+
readonly 'flag-es': ({ size }: {
|
|
766
|
+
size?: number;
|
|
767
|
+
}) => JSX.Element;
|
|
768
|
+
readonly 'flag-fr': ({ size }: {
|
|
769
|
+
size?: number;
|
|
770
|
+
}) => JSX.Element;
|
|
771
|
+
readonly 'flag-gb': ({ size }: {
|
|
772
|
+
size?: number;
|
|
773
|
+
}) => JSX.Element;
|
|
774
|
+
readonly 'flag-nl': ({ size }: {
|
|
775
|
+
size?: number;
|
|
776
|
+
}) => JSX.Element;
|
|
777
|
+
readonly folder: Icon_2;
|
|
778
|
+
readonly 'folder-open': Icon_2;
|
|
779
|
+
readonly 'grid-view': Icon_2;
|
|
780
|
+
readonly 'hard-hat': Icon_2;
|
|
781
|
+
readonly 'head-circuit': Icon_2;
|
|
782
|
+
readonly help: Icon_2;
|
|
783
|
+
readonly hide: Icon_2;
|
|
784
|
+
readonly home: Icon_2;
|
|
785
|
+
readonly images: Icon_2;
|
|
786
|
+
readonly info: Icon_2;
|
|
787
|
+
readonly invoice: Icon_2;
|
|
788
|
+
readonly job: Icon_2;
|
|
789
|
+
readonly 'key-return': Icon_2;
|
|
790
|
+
readonly keyboard: Icon_2;
|
|
791
|
+
readonly knowledge: Icon_2;
|
|
792
|
+
readonly language: Icon_2;
|
|
793
|
+
readonly 'last-page': Icon_2;
|
|
794
|
+
readonly 'light-mode': Icon_2;
|
|
795
|
+
readonly 'list-view': Icon_2;
|
|
796
|
+
readonly location: Icon_2;
|
|
797
|
+
readonly 'location-pin': Icon_2;
|
|
798
|
+
readonly lock: Icon_2;
|
|
799
|
+
readonly 'lock-key': Icon_2;
|
|
800
|
+
readonly 'lock-key-open': Icon_2;
|
|
801
|
+
readonly menu: Icon_2;
|
|
802
|
+
readonly metadata: Icon_2;
|
|
803
|
+
readonly code: Icon_2;
|
|
804
|
+
readonly microphone: Icon_2;
|
|
805
|
+
readonly minus: Icon_2;
|
|
806
|
+
readonly 'more-horizontal': Icon_2;
|
|
807
|
+
readonly 'more-vertical': Icon_2;
|
|
808
|
+
readonly moped: Icon_2;
|
|
809
|
+
readonly 'navigation-arrow': Icon_2;
|
|
810
|
+
readonly notifications: Icon_2;
|
|
811
|
+
readonly note: Icon_2;
|
|
812
|
+
readonly numpad: Icon_2;
|
|
813
|
+
readonly option: Icon_2;
|
|
814
|
+
readonly 'open-in-new-tab': Icon_2;
|
|
815
|
+
readonly order: Icon_2;
|
|
816
|
+
readonly organization: Icon_2;
|
|
817
|
+
readonly pause: Icon_2;
|
|
818
|
+
readonly attachment: Icon_2;
|
|
819
|
+
readonly phone: Icon_2;
|
|
820
|
+
readonly pin: Icon_2;
|
|
821
|
+
readonly 'pin-simple': Icon_2;
|
|
822
|
+
readonly 'pin-simple-slash': Icon_2;
|
|
823
|
+
readonly 'pin-slash': Icon_2;
|
|
824
|
+
readonly 'piggy-bank': Icon_2;
|
|
825
|
+
readonly plant: Icon_2;
|
|
826
|
+
readonly printer: Icon_2;
|
|
827
|
+
readonly privacy: Icon_2;
|
|
828
|
+
readonly 'qr-code': Icon_2;
|
|
829
|
+
readonly refresh: Icon_2;
|
|
830
|
+
readonly remark: Icon_2;
|
|
831
|
+
readonly robot: Icon_2;
|
|
832
|
+
readonly save: Icon_2;
|
|
833
|
+
readonly search: Icon_2;
|
|
834
|
+
readonly 'search-plus': Icon_2;
|
|
835
|
+
readonly 'send-message': Icon_2;
|
|
836
|
+
readonly settings: Icon_2;
|
|
837
|
+
readonly 'setup-time': Icon_2;
|
|
838
|
+
readonly shapes: Icon_2;
|
|
839
|
+
readonly show: Icon_2;
|
|
840
|
+
readonly sidebar: Icon_2;
|
|
841
|
+
readonly signature: Icon_2;
|
|
842
|
+
readonly 'sign-out': Icon_2;
|
|
843
|
+
readonly 'skip-forward': Icon_2;
|
|
844
|
+
readonly smartphone: Icon_2;
|
|
845
|
+
readonly sparkle: Icon_2;
|
|
846
|
+
readonly star: Icon_2;
|
|
847
|
+
readonly start: Icon_2;
|
|
848
|
+
readonly stop: Icon_2;
|
|
849
|
+
readonly sick: Icon_2;
|
|
850
|
+
readonly table: Icon_2;
|
|
851
|
+
readonly 'thumb-up': Icon_2;
|
|
852
|
+
readonly 'thumb-down': Icon_2;
|
|
853
|
+
readonly taxi: Icon_2;
|
|
854
|
+
readonly 'text-align-center': Icon_2;
|
|
855
|
+
readonly 'text-align-justify': Icon_2;
|
|
856
|
+
readonly 'text-align-left': Icon_2;
|
|
857
|
+
readonly 'text-align-right': Icon_2;
|
|
858
|
+
readonly 'text-t': Icon_2;
|
|
859
|
+
readonly ticket: Icon_2;
|
|
860
|
+
readonly notches: Icon_2;
|
|
861
|
+
readonly time: Icon_2;
|
|
862
|
+
readonly timer: Icon_2;
|
|
863
|
+
readonly 'time-sheet-download': Icon_2;
|
|
864
|
+
readonly 'time-sheet-upload': Icon_2;
|
|
865
|
+
readonly train: Icon_2;
|
|
866
|
+
readonly translate: Icon_2;
|
|
867
|
+
readonly travel: Icon_2;
|
|
868
|
+
readonly unfold: Icon_2;
|
|
869
|
+
readonly user: Icon_2;
|
|
870
|
+
readonly upload: Icon_2;
|
|
871
|
+
readonly 'user-account': Icon_2;
|
|
872
|
+
readonly users: Icon_2;
|
|
873
|
+
readonly vacation: Icon_2;
|
|
874
|
+
readonly wallet: Icon_2;
|
|
875
|
+
readonly warning: Icon_2;
|
|
876
|
+
readonly wrench: Icon_2;
|
|
877
|
+
};
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Error types that affect the component as a whole.
|
|
881
|
+
*/
|
|
882
|
+
export declare enum COMPONENT_ERROR {
|
|
883
|
+
/** Total size of all files exceeds maxTotalSize. */
|
|
884
|
+
TOTAL_SIZE_EXCEEDED = "total-size-exceeded",
|
|
885
|
+
/** Number of files exceeds maxCount. */
|
|
886
|
+
MAX_COUNT_EXCEEDED = "max-count-exceeded",
|
|
887
|
+
/** Number of files is below minCount. */
|
|
888
|
+
MIN_COUNT_NOT_MET = "min-count-not-met",
|
|
889
|
+
/** A duplicate file was detected. */
|
|
890
|
+
DUPLICATE_FILE = "duplicate-file"
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export declare const ContentBlock: {
|
|
894
|
+
({ children }: ContentBlockProps): JSX.Element;
|
|
895
|
+
displayName: string;
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
export declare interface ContentBlockProps {
|
|
899
|
+
/**
|
|
900
|
+
* The children of the ContentBlock.
|
|
901
|
+
*/
|
|
902
|
+
children: ReactNode;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
export declare type CustomCommonIconNames = keyof typeof customCommonIconsMap;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Custom common icons — brand/product icons not from Phosphor.
|
|
909
|
+
* Unlike Phosphor icons, these accept a `color` prop to switch between
|
|
910
|
+
* their default duotone brand colors and a single inherited color.
|
|
911
|
+
*/
|
|
912
|
+
export declare const customCommonIconsMap: {
|
|
913
|
+
readonly zvoove: ({ size, color }: ZvoooveLogoProps) => JSX.Element;
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
declare interface CustomIconProps {
|
|
917
|
+
/**
|
|
918
|
+
* The type of the icon. <br />
|
|
919
|
+
* Only available for File Type Icons
|
|
920
|
+
*/
|
|
921
|
+
type?: IconTypes;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
925
|
+
|
|
926
|
+
export declare interface DatePickerProps extends Omit<TextFieldProps, 'onChange' | 'value' | 'clearable' | 'icon' | 'isFocused' | 'onIconClick' | 'iconPosition'> {
|
|
927
|
+
/**
|
|
928
|
+
* The label that will be displayed above the input. <br />
|
|
929
|
+
* It is required for accessibility purposes.
|
|
930
|
+
*/
|
|
931
|
+
label: string;
|
|
932
|
+
/**
|
|
933
|
+
* The value of the date picker.
|
|
934
|
+
*/
|
|
935
|
+
value?: string;
|
|
936
|
+
/**
|
|
937
|
+
* The function that will be called when the date picker value changes.
|
|
938
|
+
*/
|
|
939
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>, date?: Date) => void;
|
|
940
|
+
/**
|
|
941
|
+
* If true, the date picker will be open when the input is focused.
|
|
942
|
+
*/
|
|
943
|
+
openOnFocus?: boolean;
|
|
944
|
+
/**
|
|
945
|
+
* The name of the date picker.
|
|
946
|
+
*/
|
|
947
|
+
name: string;
|
|
948
|
+
/**
|
|
949
|
+
* The locale of the date picker.
|
|
950
|
+
* @default de-DE
|
|
951
|
+
*/
|
|
952
|
+
locale?: string;
|
|
953
|
+
/**
|
|
954
|
+
* The maximum date that can be selected. <br/>
|
|
955
|
+
* format: YYYY-MM-DD <br/>
|
|
956
|
+
* This will determine the end year range for the date picker.
|
|
957
|
+
* @default 50 years from now
|
|
958
|
+
*/
|
|
959
|
+
maxDate?: string;
|
|
960
|
+
/**
|
|
961
|
+
* The minimum date that can be selected. <br/>
|
|
962
|
+
* format: YYYY-MM-DD <br/>
|
|
963
|
+
* This will determine the start year range for the date picker.
|
|
964
|
+
* @default 90 years ago
|
|
965
|
+
*/
|
|
966
|
+
minDate?: string;
|
|
967
|
+
/**
|
|
968
|
+
* The translations of the buttons. <br/>
|
|
969
|
+
* In case the locale is not supported you can set custom translations.
|
|
970
|
+
* @default { cancel: 'Abbrechen ', clear: 'Löschen', ok: 'OK' }
|
|
971
|
+
*/
|
|
972
|
+
buttonsTranslations?: ButtonsTranslations;
|
|
973
|
+
/**
|
|
974
|
+
* If true, the date picker will close automatically when a date is selected.
|
|
975
|
+
* @default false
|
|
976
|
+
*/
|
|
977
|
+
closeOnSelect?: boolean;
|
|
978
|
+
/**
|
|
979
|
+
* The placeholder of the date picker. <br/>
|
|
980
|
+
* If not provided, the placeholder will be based on the locale (e.g. 'TT.MM.JJJJ' for 'de-DE').
|
|
981
|
+
*/
|
|
982
|
+
placeholder?: string;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export declare const DEFAULT_ANNOUNCEMENTS: {
|
|
986
|
+
added: (count: number, total: number) => string;
|
|
987
|
+
removed: (total: number) => string;
|
|
988
|
+
cleared: () => string;
|
|
989
|
+
'component-error': (message: string) => string;
|
|
990
|
+
'count-changed': (total: number) => string;
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Default icon for unknown file types
|
|
995
|
+
*/
|
|
996
|
+
export declare const DEFAULT_FILE_ICON: FileIconNames;
|
|
997
|
+
|
|
998
|
+
export declare const DEFAULT_LABELS: UploaderLabels;
|
|
999
|
+
|
|
1000
|
+
export declare type Density = 'default' | '-2' | '-4';
|
|
1001
|
+
|
|
1002
|
+
export declare const Dialog: ({ open, onClose, children, closeOnBackdropClick, closeOnEsc, padding, size, zIndex, }: DialogProps) => ReactPortal | null;
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Global manager for Dialog components to track open dialogs.
|
|
1006
|
+
* Maintains a stack order so nested/stacked dialogs can determine
|
|
1007
|
+
* which dialog is topmost (for focus trapping).
|
|
1008
|
+
*/
|
|
1009
|
+
declare class DialogManager {
|
|
1010
|
+
private readonly dialogStack;
|
|
1011
|
+
private readonly closeCallbacks;
|
|
1012
|
+
/**
|
|
1013
|
+
* Register a Dialog as open with its close callback.
|
|
1014
|
+
* The dialog is pushed to the top of the stack.
|
|
1015
|
+
*/
|
|
1016
|
+
registerOpenDialog(dialogId: string, closeCallback: () => void): void;
|
|
1017
|
+
/**
|
|
1018
|
+
* Unregister a Dialog as closed.
|
|
1019
|
+
* The dialog is removed from the stack.
|
|
1020
|
+
*/
|
|
1021
|
+
unregisterOpenDialog(dialogId: string): void;
|
|
1022
|
+
/**
|
|
1023
|
+
* Close all other Dialogs except the specified one
|
|
1024
|
+
*/
|
|
1025
|
+
closeOtherDialogs(excludeDialogId: string): void;
|
|
1026
|
+
/**
|
|
1027
|
+
* Check if the given dialog is the topmost (last opened) dialog
|
|
1028
|
+
*/
|
|
1029
|
+
isTopDialog(dialogId: string): boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* Check if any Dialogs are currently open
|
|
1032
|
+
*/
|
|
1033
|
+
hasOpenDialogs(): boolean;
|
|
1034
|
+
/**
|
|
1035
|
+
* Get all currently open Dialog IDs
|
|
1036
|
+
*/
|
|
1037
|
+
getOpenDialogs(): string[];
|
|
1038
|
+
/**
|
|
1039
|
+
* Clear all registered Dialogs (useful for cleanup)
|
|
1040
|
+
*/
|
|
1041
|
+
clear(): void;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
export declare const dialogManager: DialogManager;
|
|
1045
|
+
|
|
1046
|
+
export declare interface DialogProps {
|
|
1047
|
+
/**
|
|
1048
|
+
* Controls whether the dialog is open or closed.
|
|
1049
|
+
*/
|
|
1050
|
+
open: boolean;
|
|
1051
|
+
/**
|
|
1052
|
+
* Callback function called when the dialog is closed.
|
|
1053
|
+
*/
|
|
1054
|
+
onClose: () => void;
|
|
1055
|
+
/**
|
|
1056
|
+
* The main content of the dialog.
|
|
1057
|
+
*/
|
|
1058
|
+
children: ReactNode;
|
|
1059
|
+
/**
|
|
1060
|
+
* Whether clicking the backdrop should close the dialog.
|
|
1061
|
+
*/
|
|
1062
|
+
closeOnBackdropClick?: boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* Whether pressing the Escape key should close the dialog.
|
|
1065
|
+
*/
|
|
1066
|
+
closeOnEsc?: boolean;
|
|
1067
|
+
/**
|
|
1068
|
+
* Whether to remove the default padding from the dialog content.
|
|
1069
|
+
* Useful for when the dialog has full width content/dividers.
|
|
1070
|
+
* @deprecated Use `padding` prop instead.
|
|
1071
|
+
*/
|
|
1072
|
+
removePadding?: boolean;
|
|
1073
|
+
/**
|
|
1074
|
+
* The padding of the dialog content.
|
|
1075
|
+
*/
|
|
1076
|
+
padding?: CardProps['padding'];
|
|
1077
|
+
/**
|
|
1078
|
+
* The size of the dialog.
|
|
1079
|
+
* @default none
|
|
1080
|
+
*/
|
|
1081
|
+
size?: ResponsiveType<DialogSize>;
|
|
1082
|
+
/**
|
|
1083
|
+
* The z-index of the dialog.
|
|
1084
|
+
* @default 20
|
|
1085
|
+
*/
|
|
1086
|
+
zIndex?: number;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
declare type DialogSize = 'sm' | 'md' | 'lg' | 'none' | 'fullscreen';
|
|
1090
|
+
|
|
1091
|
+
declare const direction: {
|
|
1092
|
+
readonly ASC: "asc";
|
|
1093
|
+
readonly DESC: "desc";
|
|
1094
|
+
readonly NONE: "none";
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
export declare const Divider: ({ variant, color, }: DividerProps) => JSX.Element;
|
|
1098
|
+
|
|
1099
|
+
export declare interface DividerProps {
|
|
1100
|
+
/**
|
|
1101
|
+
* The variant to use.
|
|
1102
|
+
*/
|
|
1103
|
+
variant?: 'fullWidth' | 'inset' | 'middle';
|
|
1104
|
+
/**
|
|
1105
|
+
* The color of the divider.
|
|
1106
|
+
* Accepts any background color token name.
|
|
1107
|
+
* @default 'outline-variant'
|
|
1108
|
+
*/
|
|
1109
|
+
color?: BackgroundColors;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
export declare const Expandable: {
|
|
1113
|
+
<T extends React.ElementType = "div">({ children, isOpen, as: Component, ...props }: ExpandableProps<T>): JSX.Element;
|
|
1114
|
+
displayName: string;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
export declare type ExpandableProps<T extends React.ElementType = 'div'> = Omit<React.ComponentPropsWithoutRef<T>, 'as' | 'children'> & {
|
|
1118
|
+
/**
|
|
1119
|
+
* The children of the Expandable.
|
|
1120
|
+
*/
|
|
1121
|
+
children: ReactNode;
|
|
1122
|
+
/**
|
|
1123
|
+
* Whether the Expandable is open or closed.
|
|
1124
|
+
*/
|
|
1125
|
+
isOpen?: boolean;
|
|
1126
|
+
as?: 'div' | 'td' | 'tr' | 'th' | 'tbody' | 'thead' | 'tfoot' | 'section' | 'article' | 'main' | 'footer' | 'header' | 'aside' | 'nav' | 'form' | 'iframe' | 'picture' | 'video' | 'audio' | 'canvas' | 'embed' | 'object' | T;
|
|
1127
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
1128
|
+
|
|
1129
|
+
declare interface ExpandableRowConfig {
|
|
1130
|
+
id: string;
|
|
1131
|
+
render: React.ReactNode;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Recursively extracts the raw text content from a React node tree.
|
|
1136
|
+
* Useful for pulling the string out of `<pre><code>…</code></pre>` children.
|
|
1137
|
+
*/
|
|
1138
|
+
export declare function extractText(node: ReactNode): string;
|
|
1139
|
+
|
|
1140
|
+
export declare type FeedbackType = 'positive' | 'negative' | null;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Error types that can occur for individual files during validation.
|
|
1144
|
+
*/
|
|
1145
|
+
export declare enum FILE_ERROR {
|
|
1146
|
+
/** File size exceeds the maxFileSize limit. */
|
|
1147
|
+
FILE_TOO_LARGE = "file-too-large",
|
|
1148
|
+
/** File type does not match the accepted types. */
|
|
1149
|
+
INVALID_TYPE = "invalid-type",
|
|
1150
|
+
/** File has zero bytes. */
|
|
1151
|
+
EMPTY_FILE = "empty-file",
|
|
1152
|
+
/** Adding this file would exceed the maxCount limit. */
|
|
1153
|
+
MAX_COUNT_EXCEEDED = "max-count-exceeded",
|
|
1154
|
+
/** File is a duplicate of an existing file. */
|
|
1155
|
+
DUPLICATE_FILE = "duplicate-file"
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Status of a file in the upload process.
|
|
1160
|
+
*/
|
|
1161
|
+
export declare enum FILE_STATUS {
|
|
1162
|
+
/** File is added but upload has not started. */
|
|
1163
|
+
IDLE = "idle",
|
|
1164
|
+
/** File is queued and waiting for upload. */
|
|
1165
|
+
PENDING = "pending",
|
|
1166
|
+
/** File upload is in progress. */
|
|
1167
|
+
UPLOADING = "uploading",
|
|
1168
|
+
/** File upload was canceled by user. */
|
|
1169
|
+
CANCELED = "canceled",
|
|
1170
|
+
/** File upload failed. */
|
|
1171
|
+
FAILED = "failed",
|
|
1172
|
+
/** File upload completed successfully. */
|
|
1173
|
+
SUCCESS = "success"
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Maps file extensions to their corresponding icon names.
|
|
1178
|
+
* Use `getIconForFileExtension` to get an icon name from a file extension.
|
|
1179
|
+
*/
|
|
1180
|
+
export declare const fileExtensionToIconMap: Record<string, FileIconNames>;
|
|
1181
|
+
|
|
1182
|
+
export declare type FileIconNames = keyof typeof fileIconsMap;
|
|
1183
|
+
|
|
1184
|
+
export declare const fileIconsMap: {
|
|
1185
|
+
readonly 'file-empty': ({ type }: CustomIconProps) => JSX.Element;
|
|
1186
|
+
readonly 'file-pdf': ({ type }: CustomIconProps) => JSX.Element;
|
|
1187
|
+
readonly 'file-folder': ({ type }: CustomIconProps) => JSX.Element;
|
|
1188
|
+
readonly 'file-image': ({ type }: CustomIconProps) => JSX.Element;
|
|
1189
|
+
readonly 'file-video': ({ type }: CustomIconProps) => JSX.Element;
|
|
1190
|
+
readonly 'file-video-2': ({ type }: CustomIconProps) => JSX.Element;
|
|
1191
|
+
readonly 'file-audio': ({ type }: CustomIconProps) => JSX.Element;
|
|
1192
|
+
readonly 'file-code': ({ type }: CustomIconProps) => JSX.Element;
|
|
1193
|
+
readonly 'file-document': ({ type }: CustomIconProps) => JSX.Element;
|
|
1194
|
+
readonly 'file-spreadsheet': ({ type }: CustomIconProps) => JSX.Element;
|
|
1195
|
+
readonly 'file-image-img': ({ type }: CustomIconProps) => JSX.Element;
|
|
1196
|
+
readonly 'file-image-jpg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1197
|
+
readonly 'file-image-jpeg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1198
|
+
readonly 'file-image-png': ({ type }: CustomIconProps) => JSX.Element;
|
|
1199
|
+
readonly 'file-image-webp': ({ type }: CustomIconProps) => JSX.Element;
|
|
1200
|
+
readonly 'file-image-tiff': ({ type }: CustomIconProps) => JSX.Element;
|
|
1201
|
+
readonly 'file-image-gif': ({ type }: CustomIconProps) => JSX.Element;
|
|
1202
|
+
readonly 'file-image-svg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1203
|
+
readonly 'file-image-eps': ({ type }: CustomIconProps) => JSX.Element;
|
|
1204
|
+
readonly 'file-document-pdf': ({ type }: CustomIconProps) => JSX.Element;
|
|
1205
|
+
readonly 'file-document-doc': ({ type }: CustomIconProps) => JSX.Element;
|
|
1206
|
+
readonly 'file-document-docx': ({ type }: CustomIconProps) => JSX.Element;
|
|
1207
|
+
readonly 'file-document-txt': ({ type }: CustomIconProps) => JSX.Element;
|
|
1208
|
+
readonly 'file-document-csv': ({ type }: CustomIconProps) => JSX.Element;
|
|
1209
|
+
readonly 'file-document-xls': ({ type }: CustomIconProps) => JSX.Element;
|
|
1210
|
+
readonly 'file-document-xlsx': ({ type }: CustomIconProps) => JSX.Element;
|
|
1211
|
+
readonly 'file-document-ppt': ({ type }: CustomIconProps) => JSX.Element;
|
|
1212
|
+
readonly 'file-document-pptx': ({ type }: CustomIconProps) => JSX.Element;
|
|
1213
|
+
readonly 'file-design-fig': ({ type }: CustomIconProps) => JSX.Element;
|
|
1214
|
+
readonly 'file-design-ai': ({ type }: CustomIconProps) => JSX.Element;
|
|
1215
|
+
readonly 'file-design-psd': ({ type }: CustomIconProps) => JSX.Element;
|
|
1216
|
+
readonly 'file-design-indd': ({ type }: CustomIconProps) => JSX.Element;
|
|
1217
|
+
readonly 'file-design-aep': ({ type }: CustomIconProps) => JSX.Element;
|
|
1218
|
+
readonly 'file-media-mp3': ({ type }: CustomIconProps) => JSX.Element;
|
|
1219
|
+
readonly 'file-media-wav': ({ type }: CustomIconProps) => JSX.Element;
|
|
1220
|
+
readonly 'file-media-mp4': ({ type }: CustomIconProps) => JSX.Element;
|
|
1221
|
+
readonly 'file-media-mpeg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1222
|
+
readonly 'file-media-avi': ({ type }: CustomIconProps) => JSX.Element;
|
|
1223
|
+
readonly 'file-media-mkv': ({ type }: CustomIconProps) => JSX.Element;
|
|
1224
|
+
readonly 'file-development-html': ({ type }: CustomIconProps) => JSX.Element;
|
|
1225
|
+
readonly 'file-development-css': ({ type }: CustomIconProps) => JSX.Element;
|
|
1226
|
+
readonly 'file-development-rss': ({ type }: CustomIconProps) => JSX.Element;
|
|
1227
|
+
readonly 'file-development-sql': ({ type }: CustomIconProps) => JSX.Element;
|
|
1228
|
+
readonly 'file-development-js': ({ type }: CustomIconProps) => JSX.Element;
|
|
1229
|
+
readonly 'file-development-json': ({ type }: CustomIconProps) => JSX.Element;
|
|
1230
|
+
readonly 'file-development-java': ({ type }: CustomIconProps) => JSX.Element;
|
|
1231
|
+
readonly 'file-development-xml': ({ type }: CustomIconProps) => JSX.Element;
|
|
1232
|
+
readonly 'file-development-exe': ({ type }: CustomIconProps) => JSX.Element;
|
|
1233
|
+
readonly 'file-development-dmg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1234
|
+
readonly 'file-archive-zip': ({ type }: CustomIconProps) => JSX.Element;
|
|
1235
|
+
readonly 'file-archive-rar': ({ type }: CustomIconProps) => JSX.Element;
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Additional information that can be attached to a file.
|
|
1240
|
+
*/
|
|
1241
|
+
export declare interface FileInfo {
|
|
1242
|
+
/**
|
|
1243
|
+
* Additional text to display below the file name.
|
|
1244
|
+
* @example "PDF Document"
|
|
1245
|
+
*/
|
|
1246
|
+
additionalInfo?: string;
|
|
1247
|
+
/**
|
|
1248
|
+
* Custom React node to render as the file label.
|
|
1249
|
+
* When provided, replaces the default file name display.
|
|
1250
|
+
*/
|
|
1251
|
+
customLabel?: default_2.ReactNode;
|
|
1252
|
+
/**
|
|
1253
|
+
* Allow additional custom properties.
|
|
1254
|
+
*/
|
|
1255
|
+
[key: string]: unknown;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Represents a file in the uploader with its metadata and state.
|
|
1260
|
+
*/
|
|
1261
|
+
export declare interface FileItem {
|
|
1262
|
+
/**
|
|
1263
|
+
* Unique identifier for this file item.
|
|
1264
|
+
*/
|
|
1265
|
+
id: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* The actual File object.
|
|
1268
|
+
*/
|
|
1269
|
+
file: File;
|
|
1270
|
+
/**
|
|
1271
|
+
* Additional information about the file.
|
|
1272
|
+
*/
|
|
1273
|
+
info: FileInfo;
|
|
1274
|
+
/**
|
|
1275
|
+
* Current state of the file.
|
|
1276
|
+
*/
|
|
1277
|
+
state: FileState;
|
|
1278
|
+
/**
|
|
1279
|
+
* How the file was added to the uploader.
|
|
1280
|
+
*/
|
|
1281
|
+
source: FileSource;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* Source from which a file was added to the uploader.
|
|
1286
|
+
*/
|
|
1287
|
+
export declare type FileSource = 'picker' | 'drop';
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Current state of a file in the uploader.
|
|
1291
|
+
*/
|
|
1292
|
+
export declare interface FileState {
|
|
1293
|
+
/**
|
|
1294
|
+
* Current status of the file.
|
|
1295
|
+
*/
|
|
1296
|
+
status: FILE_STATUS;
|
|
1297
|
+
/**
|
|
1298
|
+
* Whether the file has a validation or upload error.
|
|
1299
|
+
*/
|
|
1300
|
+
hasError: boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* The error type if the file has an error.
|
|
1303
|
+
*/
|
|
1304
|
+
error?: FILE_ERROR;
|
|
1305
|
+
/**
|
|
1306
|
+
* Human-readable error message.
|
|
1307
|
+
*/
|
|
1308
|
+
errorMessage?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Upload progress percentage (0-100).
|
|
1311
|
+
* Only relevant when status is UPLOADING.
|
|
1312
|
+
*/
|
|
1313
|
+
progress?: number;
|
|
1314
|
+
/**
|
|
1315
|
+
* Custom status message to display.
|
|
1316
|
+
* Overrides the default status text when provided.
|
|
1317
|
+
*/
|
|
1318
|
+
statusMessage?: string;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
1322
|
+
|
|
1323
|
+
export declare type FlexResponsiveStyles<Attr extends string, T extends string> = {
|
|
1324
|
+
[K in FlexResponsiveStylesKeys<Attr>]: Record<T, string>;
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
export declare type FlexResponsiveStylesKeys<Attr extends string> = GenerateSimpleResponsiveStyleKeys<Attr>;
|
|
1328
|
+
|
|
1329
|
+
export declare type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
1330
|
+
|
|
1331
|
+
export declare const FloatSearch: {
|
|
1332
|
+
<T extends React.ElementType = "button">({ open, onClose, items, onSearch, onSelect, value, placeholder, translations: translationsProp, zIndex, loading, linkComponent: ItemComponent, }: FloatSearchProps<T>): ReactPortal | null;
|
|
1333
|
+
displayName: string;
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1336
|
+
export declare type FloatSearchItem<T extends React.ElementType = 'button'> = {
|
|
1337
|
+
/**
|
|
1338
|
+
* Unique identifier for the item.
|
|
1339
|
+
*/
|
|
1340
|
+
id: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Display label shown in the result row.
|
|
1343
|
+
*/
|
|
1344
|
+
label: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Type of the item — determines the icon rendered on the left.
|
|
1347
|
+
*/
|
|
1348
|
+
type: 'chat' | 'project';
|
|
1349
|
+
/**
|
|
1350
|
+
* Secondary metadata shown right-aligned (e.g. "Heute", "24 Chats").
|
|
1351
|
+
*/
|
|
1352
|
+
meta?: string;
|
|
1353
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children' | 'id' | 'type'>;
|
|
1354
|
+
|
|
1355
|
+
export declare type FloatSearchProps<T extends React.ElementType = 'button'> = {
|
|
1356
|
+
/**
|
|
1357
|
+
* Controls whether the search overlay is visible.
|
|
1358
|
+
*/
|
|
1359
|
+
open: boolean;
|
|
1360
|
+
/**
|
|
1361
|
+
* Called when the overlay should close (backdrop click, Esc, or clear button).
|
|
1362
|
+
*/
|
|
1363
|
+
onClose: () => void;
|
|
1364
|
+
/**
|
|
1365
|
+
* Items to display in the result list.
|
|
1366
|
+
*/
|
|
1367
|
+
items?: FloatSearchItem<T>[];
|
|
1368
|
+
/**
|
|
1369
|
+
* Called whenever the search query changes.
|
|
1370
|
+
*/
|
|
1371
|
+
onSearch?: (query: string) => void;
|
|
1372
|
+
/**
|
|
1373
|
+
* Called when the user confirms a result (Enter key or click).
|
|
1374
|
+
*/
|
|
1375
|
+
onSelect?: (item: FloatSearchItem<T>) => void;
|
|
1376
|
+
/**
|
|
1377
|
+
* Controlled search query value. When provided, the input becomes controlled.
|
|
1378
|
+
*/
|
|
1379
|
+
value?: string;
|
|
1380
|
+
/**
|
|
1381
|
+
* Placeholder text for the search input.
|
|
1382
|
+
* @default 'Chats und Projekte durchsuchen'
|
|
1383
|
+
* @deprecated Use `translations.placeholder` instead.
|
|
1384
|
+
*/
|
|
1385
|
+
placeholder?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* Override translatable UI strings. All keys are optional — missing keys fall back to German defaults.
|
|
1388
|
+
*/
|
|
1389
|
+
translations?: FloatSearchTranslations;
|
|
1390
|
+
/**
|
|
1391
|
+
* z-index of the overlay.
|
|
1392
|
+
* @default 20
|
|
1393
|
+
*/
|
|
1394
|
+
zIndex?: number;
|
|
1395
|
+
/**
|
|
1396
|
+
* When `true`, displays skeleton placeholders instead of the result list.
|
|
1397
|
+
* Use this while fetching search results asynchronously.
|
|
1398
|
+
* @default false
|
|
1399
|
+
*/
|
|
1400
|
+
loading?: boolean;
|
|
1401
|
+
/**
|
|
1402
|
+
* The component to render each result item as. <br />
|
|
1403
|
+
* This is useful if you want to use a different component like a `Link` component from **Next.js** or **React Router**.
|
|
1404
|
+
* @default 'button'
|
|
1405
|
+
*/
|
|
1406
|
+
linkComponent?: T | 'button';
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
export declare interface FloatSearchTranslations {
|
|
1410
|
+
/**
|
|
1411
|
+
* Placeholder text for the search input.
|
|
1412
|
+
* @default 'Chats und Projekte durchsuchen'
|
|
1413
|
+
*/
|
|
1414
|
+
placeholder?: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* Aria-label for the clear-query button.
|
|
1417
|
+
* @default 'Suche zurücksetzen'
|
|
1418
|
+
*/
|
|
1419
|
+
clearAriaLabel?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* Aria-label for the close button.
|
|
1422
|
+
* @default 'Suche schließen'
|
|
1423
|
+
*/
|
|
1424
|
+
closeAriaLabel?: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* Text shown when no results match the query.
|
|
1427
|
+
* @default 'Keine Ergebnisse gefunden'
|
|
1428
|
+
*/
|
|
1429
|
+
noResults?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* Footer hint label for arrow-key navigation.
|
|
1432
|
+
* @default 'navigieren'
|
|
1433
|
+
*/
|
|
1434
|
+
navigate?: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* Footer hint label for the Enter key action.
|
|
1437
|
+
* @default 'öffnen'
|
|
1438
|
+
*/
|
|
1439
|
+
open?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Footer hint label for the Escape key action.
|
|
1442
|
+
* @default 'schließen'
|
|
1443
|
+
*/
|
|
1444
|
+
close?: string;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export declare type ForegroundColors = 'primary' | 'secondary' | 'tertiary' | 'yellow' | 'green' | 'pink' | 'steel-blue' | 'dark-yellow' | 'dark-green' | 'dark-pink' | 'dark-steel-blue' | 'inverse-on-surface' | 'on-primary' | 'on-secondary' | 'on-tertiary' | 'on-primary-container' | 'on-secondary-container' | 'on-tertiary-container' | 'on-primary-fixed' | 'on-primary-fixed-variant' | 'on-secondary-fixed' | 'on-secondary-fixed-variant' | 'on-tertiary-fixed' | 'on-tertiary-fixed-variant' | 'on-surface' | 'on-surface-variant' | 'on-surface-variant-lowest' | 'on-error' | 'on-error-container' | 'on-yellow' | 'on-dark-yellow' | 'on-yellow-container' | 'on-green' | 'on-dark-green' | 'on-green-container' | 'on-pink' | 'on-dark-pink' | 'on-pink-container' | 'on-steel-blue' | 'on-dark-steel-blue' | 'on-steel-blue-container' | 'error' | 'on-scrim' | 'on-container-neutral' | 'code-on-surface';
|
|
1448
|
+
|
|
1449
|
+
export declare const FormLabel: ({ value, required, htmlFor, ...props }: FormLabelProps) => JSX.Element;
|
|
1450
|
+
|
|
1451
|
+
export declare interface FormLabelProps {
|
|
1452
|
+
/**
|
|
1453
|
+
* The content of the label.
|
|
1454
|
+
*/
|
|
1455
|
+
value: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* The ID of the input element that the label should be associated with.
|
|
1458
|
+
* If not provided, the label will not be associated with any input.
|
|
1459
|
+
*/
|
|
1460
|
+
htmlFor?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* Whether the field is required
|
|
1463
|
+
*/
|
|
1464
|
+
required?: boolean;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
export declare type GenerateResponsiveGenericStyleKeys<Attr extends string> = Attr | `${Attr}${ResponsiveBreakpoint}`;
|
|
1468
|
+
|
|
1469
|
+
declare type GenerateResponsiveStyleKeys<Attr extends string> = Attr | `${Attr}${ResponsiveBreakpoint}` | `${Attr}${AxisVariant}` | `${Attr}${SideVariant}` | `${Attr}${AxisVariant}${ResponsiveBreakpoint}` | `${Attr}${SideVariant}${ResponsiveBreakpoint}`;
|
|
1470
|
+
|
|
1471
|
+
declare type GenerateSimpleResponsiveStyleKeys<Attr extends string> = Attr | `${Attr}${ResponsiveBreakpoint}`;
|
|
1472
|
+
|
|
1473
|
+
export declare type GenericResponsiveKeys<T extends string> = {
|
|
1474
|
+
[key in Viewport]: Record<T, string>;
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Determines the breakpoint based on window width.
|
|
1479
|
+
* Checks breakpoints in descending order (desktop to minimum).
|
|
1480
|
+
*
|
|
1481
|
+
* @param width - The window width in pixels
|
|
1482
|
+
* @returns The corresponding viewport breakpoint
|
|
1483
|
+
*/
|
|
1484
|
+
export declare const getBreakpoint: (width: number) => Viewport;
|
|
1485
|
+
|
|
1486
|
+
export declare type GetGenericPropsReturnType<Attr extends string, T extends string> = {
|
|
1487
|
+
[K in GenerateSimpleResponsiveStyleKeys<Attr>]: T | undefined;
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Gets the appropriate icon name for a file extension.
|
|
1492
|
+
* @param extension - The file extension (e.g., "pdf", "jpg", ".pdf")
|
|
1493
|
+
* @returns The corresponding icon name, or 'file-empty' if not found
|
|
1494
|
+
*/
|
|
1495
|
+
export declare const getIconForFileExtension: (extension?: string) => FileIconNames;
|
|
1496
|
+
|
|
1497
|
+
export declare type GetSimpleSpacingPropsReturnType<Attr extends string> = {
|
|
1498
|
+
[K in GenerateSimpleResponsiveStyleKeys<Attr>]: SpacingKeys | undefined;
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
export declare type GetSpacingPropsReturnType<Attr extends string> = {
|
|
1502
|
+
[K in GenerateResponsiveStyleKeys<Attr>]: SpacingKeys | undefined;
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
export declare const Grid: GridComponent;
|
|
1506
|
+
|
|
1507
|
+
declare type GridComponent = React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>> & {
|
|
1508
|
+
Item: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1511
|
+
declare interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1512
|
+
/**
|
|
1513
|
+
* The children of the component.
|
|
1514
|
+
*/
|
|
1515
|
+
children: ReactNode;
|
|
1516
|
+
/**
|
|
1517
|
+
* The number of columns to span in the `Grid.Item`.
|
|
1518
|
+
*/
|
|
1519
|
+
colSpan?: ResponsiveType<number>;
|
|
1520
|
+
/**
|
|
1521
|
+
* The number of rows to span in the `Grid.Item`.
|
|
1522
|
+
*/
|
|
1523
|
+
rowSpan?: ResponsiveType<number>;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
export declare interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1527
|
+
/**
|
|
1528
|
+
* The children of the component.
|
|
1529
|
+
*/
|
|
1530
|
+
children: ReactNode;
|
|
1531
|
+
/**
|
|
1532
|
+
* The height of the grid.
|
|
1533
|
+
* @default 'auto'
|
|
1534
|
+
*/
|
|
1535
|
+
height?: ResponsiveType<number | string>;
|
|
1536
|
+
/**
|
|
1537
|
+
* The minimum height of the grid.
|
|
1538
|
+
* @default 'auto'
|
|
1539
|
+
*/
|
|
1540
|
+
minHeight?: ResponsiveType<number | string>;
|
|
1541
|
+
/**
|
|
1542
|
+
* The maximum height of the grid.
|
|
1543
|
+
* @default 'auto'
|
|
1544
|
+
*/
|
|
1545
|
+
maxHeight?: ResponsiveType<number | string>;
|
|
1546
|
+
/**
|
|
1547
|
+
* The width of the grid.
|
|
1548
|
+
* @default '100%'
|
|
1549
|
+
*/
|
|
1550
|
+
width?: ResponsiveType<number | string>;
|
|
1551
|
+
/**
|
|
1552
|
+
* The minimum width of the grid.
|
|
1553
|
+
* @default 'auto'
|
|
1554
|
+
*/
|
|
1555
|
+
minWidth?: ResponsiveType<number | string>;
|
|
1556
|
+
/**
|
|
1557
|
+
* The maximum width of the grid.
|
|
1558
|
+
* @default 'auto'
|
|
1559
|
+
*/
|
|
1560
|
+
maxWidth?: ResponsiveType<number | string>;
|
|
1561
|
+
/**
|
|
1562
|
+
* The number of columns to display or the grid-template-columns property.
|
|
1563
|
+
* @default 1
|
|
1564
|
+
*/
|
|
1565
|
+
columns?: ResponsiveType<number | string>;
|
|
1566
|
+
/**
|
|
1567
|
+
* The number of rows to display or the grid-template-rows property.
|
|
1568
|
+
* @default 1
|
|
1569
|
+
*/
|
|
1570
|
+
rows?: ResponsiveType<number | string>;
|
|
1571
|
+
/**
|
|
1572
|
+
* The gap between the columns.
|
|
1573
|
+
* @default 'none'
|
|
1574
|
+
*/
|
|
1575
|
+
gap?: ResponsiveType<SpacingKeys>;
|
|
1576
|
+
/**
|
|
1577
|
+
* Define padding to the grid wrapper.
|
|
1578
|
+
* @default 'none'
|
|
1579
|
+
*/
|
|
1580
|
+
padding?: ResponsiveType<Padding>;
|
|
1581
|
+
/**
|
|
1582
|
+
* Define margin to the grid wrapper.
|
|
1583
|
+
* @default 'none'
|
|
1584
|
+
*/
|
|
1585
|
+
margin?: ResponsiveType<Margin>;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
export declare type HighlightStyle = {
|
|
1589
|
+
[key: string]: CSSProperties;
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
export declare const Icon: ({ name, size, weight, color, type, featured, ...props }: IconProps) => JSX.Element;
|
|
1593
|
+
|
|
1594
|
+
declare const iconMap: {
|
|
1595
|
+
readonly zvoove: ({ size, color }: ZvoooveLogoProps) => JSX.Element;
|
|
1596
|
+
readonly add: Icon_2;
|
|
1597
|
+
readonly 'add-circle': Icon_2;
|
|
1598
|
+
readonly 'add-file': Icon_2;
|
|
1599
|
+
readonly agent: Icon_2;
|
|
1600
|
+
readonly airplane: Icon_2;
|
|
1601
|
+
readonly archive: Icon_2;
|
|
1602
|
+
readonly 'arrow-back': Icon_2;
|
|
1603
|
+
readonly 'arrow-bend': Icon_2;
|
|
1604
|
+
readonly 'arrow-elbow-down-left': Icon_2;
|
|
1605
|
+
readonly 'arrow-down': Icon_2;
|
|
1606
|
+
readonly 'arrow-forward': Icon_2;
|
|
1607
|
+
readonly 'arrow-left-right': Icon_2;
|
|
1608
|
+
readonly 'arrow-up': Icon_2;
|
|
1609
|
+
readonly article: Icon_2;
|
|
1610
|
+
readonly automate: Icon_2;
|
|
1611
|
+
readonly backspace: Icon_2;
|
|
1612
|
+
readonly bank: Icon_2;
|
|
1613
|
+
readonly bicycle: Icon_2;
|
|
1614
|
+
readonly billing: Icon_2;
|
|
1615
|
+
readonly binoculars: Icon_2;
|
|
1616
|
+
readonly break: Icon_2;
|
|
1617
|
+
readonly bus: Icon_2;
|
|
1618
|
+
readonly calendar: Icon_2;
|
|
1619
|
+
readonly 'calendar-blank': Icon_2;
|
|
1620
|
+
readonly 'calendar-check': Icon_2;
|
|
1621
|
+
readonly 'calendar-dot': Icon_2;
|
|
1622
|
+
readonly 'calendar-x': Icon_2;
|
|
1623
|
+
readonly camera: Icon_2;
|
|
1624
|
+
readonly car: Icon_2;
|
|
1625
|
+
readonly cart: Icon_2;
|
|
1626
|
+
readonly 'cash-money': Icon_2;
|
|
1627
|
+
readonly certificate: Icon_2;
|
|
1628
|
+
readonly 'chat-bubble': Icon_2;
|
|
1629
|
+
readonly 'chat-dots': Icon_2;
|
|
1630
|
+
readonly 'chat-slash': Icon_2;
|
|
1631
|
+
readonly chats: Icon_2;
|
|
1632
|
+
readonly check: Icon_2;
|
|
1633
|
+
readonly circle: Icon_2;
|
|
1634
|
+
readonly 'check-circle': Icon_2;
|
|
1635
|
+
readonly checkbox: Icon_2;
|
|
1636
|
+
readonly 'checkbox-empty': Icon_2;
|
|
1637
|
+
readonly 'checkbox-indefinitely': Icon_2;
|
|
1638
|
+
readonly checks: Icon_2;
|
|
1639
|
+
readonly 'chevron-down': Icon_2;
|
|
1640
|
+
readonly 'chevron-left': Icon_2;
|
|
1641
|
+
readonly 'chevron-right': Icon_2;
|
|
1642
|
+
readonly 'chevron-up': Icon_2;
|
|
1643
|
+
readonly 'circle-notch': Icon_2;
|
|
1644
|
+
readonly close: Icon_2;
|
|
1645
|
+
readonly 'close-circle': Icon_2;
|
|
1646
|
+
readonly 'cloud-download': Icon_2;
|
|
1647
|
+
readonly 'cloud-upload': Icon_2;
|
|
1648
|
+
readonly 'clock-countdown': Icon_2;
|
|
1649
|
+
readonly 'clock-person': Icon_2;
|
|
1650
|
+
readonly command: Icon_2;
|
|
1651
|
+
readonly columns: Icon_2;
|
|
1652
|
+
readonly control: Icon_2;
|
|
1653
|
+
readonly copy: Icon_2;
|
|
1654
|
+
readonly 'currency-dollar': Icon_2;
|
|
1655
|
+
readonly 'currency-dollar-circle': Icon_2;
|
|
1656
|
+
readonly 'currency-gbp': Icon_2;
|
|
1657
|
+
readonly 'dark-mode': Icon_2;
|
|
1658
|
+
readonly deactivate: Icon_2;
|
|
1659
|
+
readonly delete: Icon_2;
|
|
1660
|
+
readonly 'diagram-view': Icon_2;
|
|
1661
|
+
readonly download: Icon_2;
|
|
1662
|
+
readonly drag: Icon_2;
|
|
1663
|
+
readonly edit: Icon_2;
|
|
1664
|
+
readonly error: Icon_2;
|
|
1665
|
+
readonly 'exclamation-mark': Icon_2;
|
|
1666
|
+
readonly expand: Icon_2;
|
|
1667
|
+
readonly expenses: Icon_2;
|
|
1668
|
+
readonly 'face-id': Icon_2;
|
|
1669
|
+
readonly file: Icon_2;
|
|
1670
|
+
readonly 'simple-file-archive': Icon_2;
|
|
1671
|
+
readonly 'simple-file-audio': Icon_2;
|
|
1672
|
+
readonly 'simple-file-c': Icon_2;
|
|
1673
|
+
readonly 'simple-file-c-sharp': Icon_2;
|
|
1674
|
+
readonly 'simple-file-code': Icon_2;
|
|
1675
|
+
readonly 'simple-file-cpp': Icon_2;
|
|
1676
|
+
readonly 'simple-file-css': Icon_2;
|
|
1677
|
+
readonly 'simple-file-csv': Icon_2;
|
|
1678
|
+
readonly 'simple-file-doc': Icon_2;
|
|
1679
|
+
readonly 'simple-file-html': Icon_2;
|
|
1680
|
+
readonly 'simple-file-image': Icon_2;
|
|
1681
|
+
readonly 'simple-file-ini': Icon_2;
|
|
1682
|
+
readonly 'simple-file-jpg': Icon_2;
|
|
1683
|
+
readonly 'simple-file-js': Icon_2;
|
|
1684
|
+
readonly 'simple-file-jsx': Icon_2;
|
|
1685
|
+
readonly 'simple-file-md': Icon_2;
|
|
1686
|
+
readonly 'simple-file-pdf': Icon_2;
|
|
1687
|
+
readonly 'simple-file-png': Icon_2;
|
|
1688
|
+
readonly 'simple-file-ppt': Icon_2;
|
|
1689
|
+
readonly 'simple-file-py': Icon_2;
|
|
1690
|
+
readonly 'simple-file-rs': Icon_2;
|
|
1691
|
+
readonly 'simple-file-sql': Icon_2;
|
|
1692
|
+
readonly 'simple-file-svg': Icon_2;
|
|
1693
|
+
readonly 'simple-file-ts': Icon_2;
|
|
1694
|
+
readonly 'simple-file-tsx': Icon_2;
|
|
1695
|
+
readonly 'simple-file-text': Icon_2;
|
|
1696
|
+
readonly 'simple-file-txt': Icon_2;
|
|
1697
|
+
readonly 'simple-file-video': Icon_2;
|
|
1698
|
+
readonly 'simple-file-vue': Icon_2;
|
|
1699
|
+
readonly 'simple-file-xls': Icon_2;
|
|
1700
|
+
readonly 'simple-file-zip': Icon_2;
|
|
1701
|
+
readonly filter: Icon_2;
|
|
1702
|
+
readonly filters: Icon_2;
|
|
1703
|
+
readonly 'first-page': Icon_2;
|
|
1704
|
+
readonly 'flag-de': ({ size }: {
|
|
1705
|
+
size?: number;
|
|
1706
|
+
}) => JSX.Element;
|
|
1707
|
+
readonly 'flag-es': ({ size }: {
|
|
1708
|
+
size?: number;
|
|
1709
|
+
}) => JSX.Element;
|
|
1710
|
+
readonly 'flag-fr': ({ size }: {
|
|
1711
|
+
size?: number;
|
|
1712
|
+
}) => JSX.Element;
|
|
1713
|
+
readonly 'flag-gb': ({ size }: {
|
|
1714
|
+
size?: number;
|
|
1715
|
+
}) => JSX.Element;
|
|
1716
|
+
readonly 'flag-nl': ({ size }: {
|
|
1717
|
+
size?: number;
|
|
1718
|
+
}) => JSX.Element;
|
|
1719
|
+
readonly folder: Icon_2;
|
|
1720
|
+
readonly 'folder-open': Icon_2;
|
|
1721
|
+
readonly 'grid-view': Icon_2;
|
|
1722
|
+
readonly 'hard-hat': Icon_2;
|
|
1723
|
+
readonly 'head-circuit': Icon_2;
|
|
1724
|
+
readonly help: Icon_2;
|
|
1725
|
+
readonly hide: Icon_2;
|
|
1726
|
+
readonly home: Icon_2;
|
|
1727
|
+
readonly images: Icon_2;
|
|
1728
|
+
readonly info: Icon_2;
|
|
1729
|
+
readonly invoice: Icon_2;
|
|
1730
|
+
readonly job: Icon_2;
|
|
1731
|
+
readonly 'key-return': Icon_2;
|
|
1732
|
+
readonly keyboard: Icon_2;
|
|
1733
|
+
readonly knowledge: Icon_2;
|
|
1734
|
+
readonly language: Icon_2;
|
|
1735
|
+
readonly 'last-page': Icon_2;
|
|
1736
|
+
readonly 'light-mode': Icon_2;
|
|
1737
|
+
readonly 'list-view': Icon_2;
|
|
1738
|
+
readonly location: Icon_2;
|
|
1739
|
+
readonly 'location-pin': Icon_2;
|
|
1740
|
+
readonly lock: Icon_2;
|
|
1741
|
+
readonly 'lock-key': Icon_2;
|
|
1742
|
+
readonly 'lock-key-open': Icon_2;
|
|
1743
|
+
readonly menu: Icon_2;
|
|
1744
|
+
readonly metadata: Icon_2;
|
|
1745
|
+
readonly code: Icon_2;
|
|
1746
|
+
readonly microphone: Icon_2;
|
|
1747
|
+
readonly minus: Icon_2;
|
|
1748
|
+
readonly 'more-horizontal': Icon_2;
|
|
1749
|
+
readonly 'more-vertical': Icon_2;
|
|
1750
|
+
readonly moped: Icon_2;
|
|
1751
|
+
readonly 'navigation-arrow': Icon_2;
|
|
1752
|
+
readonly notifications: Icon_2;
|
|
1753
|
+
readonly note: Icon_2;
|
|
1754
|
+
readonly numpad: Icon_2;
|
|
1755
|
+
readonly option: Icon_2;
|
|
1756
|
+
readonly 'open-in-new-tab': Icon_2;
|
|
1757
|
+
readonly order: Icon_2;
|
|
1758
|
+
readonly organization: Icon_2;
|
|
1759
|
+
readonly pause: Icon_2;
|
|
1760
|
+
readonly attachment: Icon_2;
|
|
1761
|
+
readonly phone: Icon_2;
|
|
1762
|
+
readonly pin: Icon_2;
|
|
1763
|
+
readonly 'pin-simple': Icon_2;
|
|
1764
|
+
readonly 'pin-simple-slash': Icon_2;
|
|
1765
|
+
readonly 'pin-slash': Icon_2;
|
|
1766
|
+
readonly 'piggy-bank': Icon_2;
|
|
1767
|
+
readonly plant: Icon_2;
|
|
1768
|
+
readonly printer: Icon_2;
|
|
1769
|
+
readonly privacy: Icon_2;
|
|
1770
|
+
readonly 'qr-code': Icon_2;
|
|
1771
|
+
readonly refresh: Icon_2;
|
|
1772
|
+
readonly remark: Icon_2;
|
|
1773
|
+
readonly robot: Icon_2;
|
|
1774
|
+
readonly save: Icon_2;
|
|
1775
|
+
readonly search: Icon_2;
|
|
1776
|
+
readonly 'search-plus': Icon_2;
|
|
1777
|
+
readonly 'send-message': Icon_2;
|
|
1778
|
+
readonly settings: Icon_2;
|
|
1779
|
+
readonly 'setup-time': Icon_2;
|
|
1780
|
+
readonly shapes: Icon_2;
|
|
1781
|
+
readonly show: Icon_2;
|
|
1782
|
+
readonly sidebar: Icon_2;
|
|
1783
|
+
readonly signature: Icon_2;
|
|
1784
|
+
readonly 'sign-out': Icon_2;
|
|
1785
|
+
readonly 'skip-forward': Icon_2;
|
|
1786
|
+
readonly smartphone: Icon_2;
|
|
1787
|
+
readonly sparkle: Icon_2;
|
|
1788
|
+
readonly star: Icon_2;
|
|
1789
|
+
readonly start: Icon_2;
|
|
1790
|
+
readonly stop: Icon_2;
|
|
1791
|
+
readonly sick: Icon_2;
|
|
1792
|
+
readonly table: Icon_2;
|
|
1793
|
+
readonly 'thumb-up': Icon_2;
|
|
1794
|
+
readonly 'thumb-down': Icon_2;
|
|
1795
|
+
readonly taxi: Icon_2;
|
|
1796
|
+
readonly 'text-align-center': Icon_2;
|
|
1797
|
+
readonly 'text-align-justify': Icon_2;
|
|
1798
|
+
readonly 'text-align-left': Icon_2;
|
|
1799
|
+
readonly 'text-align-right': Icon_2;
|
|
1800
|
+
readonly 'text-t': Icon_2;
|
|
1801
|
+
readonly ticket: Icon_2;
|
|
1802
|
+
readonly notches: Icon_2;
|
|
1803
|
+
readonly time: Icon_2;
|
|
1804
|
+
readonly timer: Icon_2;
|
|
1805
|
+
readonly 'time-sheet-download': Icon_2;
|
|
1806
|
+
readonly 'time-sheet-upload': Icon_2;
|
|
1807
|
+
readonly train: Icon_2;
|
|
1808
|
+
readonly translate: Icon_2;
|
|
1809
|
+
readonly travel: Icon_2;
|
|
1810
|
+
readonly unfold: Icon_2;
|
|
1811
|
+
readonly user: Icon_2;
|
|
1812
|
+
readonly upload: Icon_2;
|
|
1813
|
+
readonly 'user-account': Icon_2;
|
|
1814
|
+
readonly users: Icon_2;
|
|
1815
|
+
readonly vacation: Icon_2;
|
|
1816
|
+
readonly wallet: Icon_2;
|
|
1817
|
+
readonly warning: Icon_2;
|
|
1818
|
+
readonly wrench: Icon_2;
|
|
1819
|
+
readonly 'file-empty': ({ type }: CustomIconProps) => JSX.Element;
|
|
1820
|
+
readonly 'file-pdf': ({ type }: CustomIconProps) => JSX.Element;
|
|
1821
|
+
readonly 'file-folder': ({ type }: CustomIconProps) => JSX.Element;
|
|
1822
|
+
readonly 'file-image': ({ type }: CustomIconProps) => JSX.Element;
|
|
1823
|
+
readonly 'file-video': ({ type }: CustomIconProps) => JSX.Element;
|
|
1824
|
+
readonly 'file-video-2': ({ type }: CustomIconProps) => JSX.Element;
|
|
1825
|
+
readonly 'file-audio': ({ type }: CustomIconProps) => JSX.Element;
|
|
1826
|
+
readonly 'file-code': ({ type }: CustomIconProps) => JSX.Element;
|
|
1827
|
+
readonly 'file-document': ({ type }: CustomIconProps) => JSX.Element;
|
|
1828
|
+
readonly 'file-spreadsheet': ({ type }: CustomIconProps) => JSX.Element;
|
|
1829
|
+
readonly 'file-image-img': ({ type }: CustomIconProps) => JSX.Element;
|
|
1830
|
+
readonly 'file-image-jpg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1831
|
+
readonly 'file-image-jpeg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1832
|
+
readonly 'file-image-png': ({ type }: CustomIconProps) => JSX.Element;
|
|
1833
|
+
readonly 'file-image-webp': ({ type }: CustomIconProps) => JSX.Element;
|
|
1834
|
+
readonly 'file-image-tiff': ({ type }: CustomIconProps) => JSX.Element;
|
|
1835
|
+
readonly 'file-image-gif': ({ type }: CustomIconProps) => JSX.Element;
|
|
1836
|
+
readonly 'file-image-svg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1837
|
+
readonly 'file-image-eps': ({ type }: CustomIconProps) => JSX.Element;
|
|
1838
|
+
readonly 'file-document-pdf': ({ type }: CustomIconProps) => JSX.Element;
|
|
1839
|
+
readonly 'file-document-doc': ({ type }: CustomIconProps) => JSX.Element;
|
|
1840
|
+
readonly 'file-document-docx': ({ type }: CustomIconProps) => JSX.Element;
|
|
1841
|
+
readonly 'file-document-txt': ({ type }: CustomIconProps) => JSX.Element;
|
|
1842
|
+
readonly 'file-document-csv': ({ type }: CustomIconProps) => JSX.Element;
|
|
1843
|
+
readonly 'file-document-xls': ({ type }: CustomIconProps) => JSX.Element;
|
|
1844
|
+
readonly 'file-document-xlsx': ({ type }: CustomIconProps) => JSX.Element;
|
|
1845
|
+
readonly 'file-document-ppt': ({ type }: CustomIconProps) => JSX.Element;
|
|
1846
|
+
readonly 'file-document-pptx': ({ type }: CustomIconProps) => JSX.Element;
|
|
1847
|
+
readonly 'file-design-fig': ({ type }: CustomIconProps) => JSX.Element;
|
|
1848
|
+
readonly 'file-design-ai': ({ type }: CustomIconProps) => JSX.Element;
|
|
1849
|
+
readonly 'file-design-psd': ({ type }: CustomIconProps) => JSX.Element;
|
|
1850
|
+
readonly 'file-design-indd': ({ type }: CustomIconProps) => JSX.Element;
|
|
1851
|
+
readonly 'file-design-aep': ({ type }: CustomIconProps) => JSX.Element;
|
|
1852
|
+
readonly 'file-media-mp3': ({ type }: CustomIconProps) => JSX.Element;
|
|
1853
|
+
readonly 'file-media-wav': ({ type }: CustomIconProps) => JSX.Element;
|
|
1854
|
+
readonly 'file-media-mp4': ({ type }: CustomIconProps) => JSX.Element;
|
|
1855
|
+
readonly 'file-media-mpeg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1856
|
+
readonly 'file-media-avi': ({ type }: CustomIconProps) => JSX.Element;
|
|
1857
|
+
readonly 'file-media-mkv': ({ type }: CustomIconProps) => JSX.Element;
|
|
1858
|
+
readonly 'file-development-html': ({ type }: CustomIconProps) => JSX.Element;
|
|
1859
|
+
readonly 'file-development-css': ({ type }: CustomIconProps) => JSX.Element;
|
|
1860
|
+
readonly 'file-development-rss': ({ type }: CustomIconProps) => JSX.Element;
|
|
1861
|
+
readonly 'file-development-sql': ({ type }: CustomIconProps) => JSX.Element;
|
|
1862
|
+
readonly 'file-development-js': ({ type }: CustomIconProps) => JSX.Element;
|
|
1863
|
+
readonly 'file-development-json': ({ type }: CustomIconProps) => JSX.Element;
|
|
1864
|
+
readonly 'file-development-java': ({ type }: CustomIconProps) => JSX.Element;
|
|
1865
|
+
readonly 'file-development-xml': ({ type }: CustomIconProps) => JSX.Element;
|
|
1866
|
+
readonly 'file-development-exe': ({ type }: CustomIconProps) => JSX.Element;
|
|
1867
|
+
readonly 'file-development-dmg': ({ type }: CustomIconProps) => JSX.Element;
|
|
1868
|
+
readonly 'file-archive-zip': ({ type }: CustomIconProps) => JSX.Element;
|
|
1869
|
+
readonly 'file-archive-rar': ({ type }: CustomIconProps) => JSX.Element;
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
export declare type IconNames = keyof typeof iconMap;
|
|
1873
|
+
|
|
1874
|
+
export declare interface IconProps extends CustomIconProps, React.HTMLAttributes<SVGElement> {
|
|
1875
|
+
/**
|
|
1876
|
+
* The name of the icon to display.
|
|
1877
|
+
*/
|
|
1878
|
+
name: IconNames;
|
|
1879
|
+
/**
|
|
1880
|
+
* The size of the icon.
|
|
1881
|
+
* @default 'lg'
|
|
1882
|
+
*/
|
|
1883
|
+
size?: IconSizes;
|
|
1884
|
+
/**
|
|
1885
|
+
* The weight of the icon.
|
|
1886
|
+
*/
|
|
1887
|
+
weight?: IconWeight;
|
|
1888
|
+
/**
|
|
1889
|
+
* The color of the icon.
|
|
1890
|
+
*/
|
|
1891
|
+
color?: ForegroundColors;
|
|
1892
|
+
/**
|
|
1893
|
+
* If true, the icon will be displayed in a featured style.
|
|
1894
|
+
*/
|
|
1895
|
+
featured?: boolean;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
declare const iconSizeMap: {
|
|
1899
|
+
readonly '2xs': 12;
|
|
1900
|
+
readonly xs: 16;
|
|
1901
|
+
readonly sm: 18;
|
|
1902
|
+
readonly md: 20;
|
|
1903
|
+
readonly lg: 24;
|
|
1904
|
+
readonly xl: 32;
|
|
1905
|
+
readonly '2xl': 40;
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
export declare type IconSizes = keyof typeof iconSizeMap;
|
|
1909
|
+
|
|
1910
|
+
declare type IconStates = {
|
|
1911
|
+
on: CommonIconNames;
|
|
1912
|
+
off: CommonIconNames;
|
|
1913
|
+
};
|
|
1914
|
+
|
|
1915
|
+
declare type IconTypes = keyof typeof iconTypes;
|
|
1916
|
+
|
|
1917
|
+
declare const iconTypes: {
|
|
1918
|
+
readonly default: "default";
|
|
1919
|
+
readonly solid: "solid";
|
|
1920
|
+
readonly gray: "gray";
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
export declare const ImageVisualizer: {
|
|
1924
|
+
({ src, alt, width, height, maxWidth, maxHeight, minWidth, minHeight, borderRadius, objectFit, }: ImageVisualizerProps): JSX.Element;
|
|
1925
|
+
displayName: string;
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
export declare interface ImageVisualizerProps {
|
|
1929
|
+
/**
|
|
1930
|
+
* The source URL of the image.
|
|
1931
|
+
*/
|
|
1932
|
+
src: string;
|
|
1933
|
+
/**
|
|
1934
|
+
* The alt text of the image.
|
|
1935
|
+
* @default ''
|
|
1936
|
+
*/
|
|
1937
|
+
alt?: string;
|
|
1938
|
+
/**
|
|
1939
|
+
* The width of the image container.
|
|
1940
|
+
*/
|
|
1941
|
+
width?: ResponsiveType<number | string>;
|
|
1942
|
+
/**
|
|
1943
|
+
* The height of the image container.
|
|
1944
|
+
*/
|
|
1945
|
+
height?: ResponsiveType<number | string>;
|
|
1946
|
+
/**
|
|
1947
|
+
* The minimum width of the image container.
|
|
1948
|
+
*/
|
|
1949
|
+
minWidth?: ResponsiveType<number | string>;
|
|
1950
|
+
/**
|
|
1951
|
+
* The minimum height of the image container.
|
|
1952
|
+
*/
|
|
1953
|
+
minHeight?: ResponsiveType<number | string>;
|
|
1954
|
+
/**
|
|
1955
|
+
* The maximum width of the image container.
|
|
1956
|
+
*/
|
|
1957
|
+
maxWidth?: ResponsiveType<number | string>;
|
|
1958
|
+
/**
|
|
1959
|
+
* The maximum height of the image container.
|
|
1960
|
+
*/
|
|
1961
|
+
maxHeight?: ResponsiveType<number | string>;
|
|
1962
|
+
/**
|
|
1963
|
+
* The border radius of the image container.
|
|
1964
|
+
* @default 'sm'
|
|
1965
|
+
*/
|
|
1966
|
+
borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1967
|
+
/**
|
|
1968
|
+
* The CSS object-fit of the image inside the container.
|
|
1969
|
+
* @default 'cover'
|
|
1970
|
+
*/
|
|
1971
|
+
objectFit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
export declare const InfoBox: {
|
|
1975
|
+
({ message, variant, icon, elevated, }: InfoBoxProps): JSX.Element;
|
|
1976
|
+
displayName: string;
|
|
1977
|
+
};
|
|
1978
|
+
|
|
1979
|
+
export declare interface InfoBoxProps {
|
|
1980
|
+
/**
|
|
1981
|
+
* The message to display in the InfoBox.
|
|
1982
|
+
*/
|
|
1983
|
+
message: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* The semantic variant of the InfoBox
|
|
1986
|
+
* @default 'default'
|
|
1987
|
+
*/
|
|
1988
|
+
variant?: InfoBoxVariant;
|
|
1989
|
+
/**
|
|
1990
|
+
* Icon to display in the InfoBox. If not provided, uses the default icon for the variant.
|
|
1991
|
+
*/
|
|
1992
|
+
icon?: CommonIconNames | Omit<IconProps, 'size' | 'color'>;
|
|
1993
|
+
/**
|
|
1994
|
+
* Whether to elevate the InfoBox.
|
|
1995
|
+
* @default true
|
|
1996
|
+
*/
|
|
1997
|
+
elevated?: boolean;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
export declare type InfoBoxVariant = 'default' | 'positive' | 'warning' | 'error' | 'subtle' | 'neutral' | 'outlined';
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Detects **sectioned** `items` passed to `ListMenu`.
|
|
2004
|
+
*
|
|
2005
|
+
* **Sectioned** when the array is non-empty and the first entry looks like
|
|
2006
|
+
* `{ title?, items: ListMenuItem[] }`: it has an `items` array and does **not**
|
|
2007
|
+
* have a top-level `label` (every `ListMenuItem` has `label`). Any section may omit
|
|
2008
|
+
* `title` (e.g. the first group) — no header row is rendered.
|
|
2009
|
+
*
|
|
2010
|
+
* **Flat** when empty `[]` or when entries are normal rows. Do not mix shapes in one array.
|
|
2011
|
+
*/
|
|
2012
|
+
export declare function isListMenuSections<T extends ElementType = 'a'>(items: ListMenuItem<T>[] | ListMenuSection<T>[]): items is ListMenuSection<T>[];
|
|
2013
|
+
|
|
2014
|
+
export declare type JustifyContent = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
2015
|
+
|
|
2016
|
+
declare type LabelStates = {
|
|
2017
|
+
on: string;
|
|
2018
|
+
off: string;
|
|
2019
|
+
};
|
|
2020
|
+
|
|
2021
|
+
export declare const List: {
|
|
2022
|
+
<T extends default_2.ElementType = "div">({ items, activeItemId, showDividers, linkComponent: LinkComponent, }: ListProps<T>): JSX.Element;
|
|
2023
|
+
displayName: string;
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
export declare type ListItem<T extends default_2.ElementType = 'div'> = {
|
|
2027
|
+
/**
|
|
2028
|
+
* The content of the list item.
|
|
2029
|
+
*/
|
|
2030
|
+
content: ReactNode;
|
|
2031
|
+
/**
|
|
2032
|
+
* The id of the list item. This will be use as the key for the list item.
|
|
2033
|
+
*/
|
|
2034
|
+
id: string;
|
|
2035
|
+
} & Omit<default_2.ComponentPropsWithoutRef<T>, 'children' | 'className' | 'content' | 'id'>;
|
|
2036
|
+
|
|
2037
|
+
export declare const ListMenu: {
|
|
2038
|
+
<T extends default_2.ElementType = "a">({ items, activeItem, open, variant, linkComponent: LinkComponent, onItemClick, }: ListMenuProps<T>): JSX.Element;
|
|
2039
|
+
displayName: string;
|
|
2040
|
+
};
|
|
2041
|
+
|
|
2042
|
+
export declare type ListMenuItem<T extends React.ElementType = 'a'> = {
|
|
2043
|
+
/**
|
|
2044
|
+
* The label of the menu item
|
|
2045
|
+
*/
|
|
2046
|
+
label: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* The id of the menu item
|
|
2049
|
+
*/
|
|
2050
|
+
id: string;
|
|
2051
|
+
/**
|
|
2052
|
+
* The icon of the menu item
|
|
2053
|
+
*/
|
|
2054
|
+
icon?: CommonIconNames | CustomCommonIconNames | React.ReactElement;
|
|
2055
|
+
/**
|
|
2056
|
+
* Extra content rendered at the end of the label area (e.g. a tag, badge, or action button)
|
|
2057
|
+
*/
|
|
2058
|
+
endContent?: React.ReactNode;
|
|
2059
|
+
/**
|
|
2060
|
+
* When to show the end content
|
|
2061
|
+
* @default 'always'
|
|
2062
|
+
*/
|
|
2063
|
+
endContentVisibility?: 'always' | 'hover';
|
|
2064
|
+
/**
|
|
2065
|
+
* Renders a spacer instead of a menu item.
|
|
2066
|
+
* @default false
|
|
2067
|
+
*/
|
|
2068
|
+
isSpacer?: boolean;
|
|
2069
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
2070
|
+
|
|
2071
|
+
export declare type ListMenuProps<T extends React.ElementType = 'a'> = {
|
|
2072
|
+
/**
|
|
2073
|
+
* Either a flat list of menu items (default) **or** an array of sections
|
|
2074
|
+
* `{ title?, items }[]`. The two shapes are mutually exclusive — use one or the other.
|
|
2075
|
+
*/
|
|
2076
|
+
items: ListMenuItem<T>[] | ListMenuSection<T>[];
|
|
2077
|
+
/**
|
|
2078
|
+
* The active item must match the id of the menu item
|
|
2079
|
+
*/
|
|
2080
|
+
activeItem?: string;
|
|
2081
|
+
/**
|
|
2082
|
+
* Whether the menu is expanded (showing labels)
|
|
2083
|
+
* @default true
|
|
2084
|
+
*/
|
|
2085
|
+
open?: boolean;
|
|
2086
|
+
/**
|
|
2087
|
+
* The visual variant of the menu
|
|
2088
|
+
* @default 'default'
|
|
2089
|
+
*/
|
|
2090
|
+
variant?: ListMenuVariant;
|
|
2091
|
+
/**
|
|
2092
|
+
* The component to render for the link
|
|
2093
|
+
* @default 'a'
|
|
2094
|
+
*/
|
|
2095
|
+
linkComponent?: T | 'a';
|
|
2096
|
+
/**
|
|
2097
|
+
* The callback to handle the item click
|
|
2098
|
+
*/
|
|
2099
|
+
onItemClick?: (item: ListMenuItem<T>) => void;
|
|
2100
|
+
};
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* One titled group of rows inside a sectioned `ListMenu`. Do not mix with flat
|
|
2104
|
+
* `ListMenuItem[]` in the same `items` array.
|
|
2105
|
+
*/
|
|
2106
|
+
export declare type ListMenuSection<T extends React.ElementType = 'a'> = {
|
|
2107
|
+
/**
|
|
2108
|
+
* Optional section header (uppercase label styling; omitted when missing, empty, or whitespace-only).
|
|
2109
|
+
*/
|
|
2110
|
+
title?: string;
|
|
2111
|
+
/**
|
|
2112
|
+
* Rows in this section; same shape as flat `ListMenu` items.
|
|
2113
|
+
*/
|
|
2114
|
+
items: ListMenuItem<T>[];
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
export declare type ListMenuVariant = 'default' | 'compact';
|
|
2118
|
+
|
|
2119
|
+
export declare interface ListProps<T extends default_2.ElementType = 'div'> {
|
|
2120
|
+
/**
|
|
2121
|
+
* The items of the List.
|
|
2122
|
+
*/
|
|
2123
|
+
items: ListItem<T>[];
|
|
2124
|
+
/**
|
|
2125
|
+
* The active item id of the List.
|
|
2126
|
+
* If provided, the item will be highlighted.
|
|
2127
|
+
*/
|
|
2128
|
+
activeItemId?: string;
|
|
2129
|
+
/**
|
|
2130
|
+
* Whether to show dividers between items.
|
|
2131
|
+
* @default true
|
|
2132
|
+
*/
|
|
2133
|
+
showDividers?: boolean;
|
|
2134
|
+
/**
|
|
2135
|
+
* The component to render for each list item.
|
|
2136
|
+
* @default 'div'
|
|
2137
|
+
*/
|
|
2138
|
+
linkComponent?: T | 'div';
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
export declare type Margin = SpacingKeys | {
|
|
2142
|
+
top?: SpacingKeys;
|
|
2143
|
+
right?: SpacingKeys;
|
|
2144
|
+
bottom?: SpacingKeys;
|
|
2145
|
+
left?: SpacingKeys;
|
|
2146
|
+
x?: SpacingKeys;
|
|
2147
|
+
y?: SpacingKeys;
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* @deprecated Use `ListMenuItem` instead
|
|
2152
|
+
*/
|
|
2153
|
+
export declare type MenuItem<T extends React.ElementType = 'a'> = ListMenuItem<T>;
|
|
2154
|
+
|
|
2155
|
+
export declare interface MessageAction {
|
|
2156
|
+
/**
|
|
2157
|
+
* The icon to display for this action.
|
|
2158
|
+
*/
|
|
2159
|
+
icon: CommonIconNames;
|
|
2160
|
+
/**
|
|
2161
|
+
* Accessible label for the action (used as tooltip and aria-label).
|
|
2162
|
+
*/
|
|
2163
|
+
label: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* Callback fired when the action button is clicked.
|
|
2166
|
+
*/
|
|
2167
|
+
onClick?: (event: MouseEvent_2<HTMLButtonElement>) => void;
|
|
2168
|
+
/**
|
|
2169
|
+
* Whether this action is currently in an active/toggled state.
|
|
2170
|
+
* @default false
|
|
2171
|
+
*/
|
|
2172
|
+
active?: boolean;
|
|
2173
|
+
/**
|
|
2174
|
+
* Feedback group for mutual exclusion (e.g. thumbs up/down).
|
|
2175
|
+
* Actions sharing the same group are mutually exclusive — activating one deactivates the other.
|
|
2176
|
+
*/
|
|
2177
|
+
feedbackType?: 'positive' | 'negative';
|
|
2178
|
+
/**
|
|
2179
|
+
* Confirmation behavior on click — animation, icon swap, and text.
|
|
2180
|
+
* Provides a consistent pattern for copy ("Copied"), feedback ("Thanks for your feedback"), etc.
|
|
2181
|
+
*/
|
|
2182
|
+
confirmation?: ActionConfirmation;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
export declare const MessageActions: ForwardRefExoticComponent<MessageActionsProps & RefAttributes<HTMLDivElement>>;
|
|
2186
|
+
|
|
2187
|
+
export declare interface MessageActionsProps {
|
|
2188
|
+
/**
|
|
2189
|
+
* The layout variant matching the parent ChatBubble alignment.
|
|
2190
|
+
* - `receiver`: actions on the left, timestamp on the right
|
|
2191
|
+
* - `sender`: timestamp on the left, actions on the right
|
|
2192
|
+
* @default 'receiver'
|
|
2193
|
+
*/
|
|
2194
|
+
variant?: MessageActionsVariant;
|
|
2195
|
+
/**
|
|
2196
|
+
* The timestamp text to display (e.g. "10:01").
|
|
2197
|
+
*/
|
|
2198
|
+
timestamp?: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* The action buttons to display.
|
|
2201
|
+
* Defaults to copy, thumb-up, thumb-down, and more-horizontal.
|
|
2202
|
+
*/
|
|
2203
|
+
actions?: MessageAction[];
|
|
2204
|
+
/**
|
|
2205
|
+
* Menu items shown in the "More" action popup menu.
|
|
2206
|
+
* When provided, the last default action (more-horizontal) opens a PopUpMenu.
|
|
2207
|
+
*/
|
|
2208
|
+
menuItems?: PopUpMenuItem[];
|
|
2209
|
+
/**
|
|
2210
|
+
* Callback fired when a feedback action (thumbs up/down) is selected.
|
|
2211
|
+
*/
|
|
2212
|
+
onFeedback?: (feedback: FeedbackType) => void;
|
|
2213
|
+
/**
|
|
2214
|
+
* Additional CSS class name.
|
|
2215
|
+
*/
|
|
2216
|
+
className?: string;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
export declare type MessageActionsVariant = 'sender' | 'receiver';
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* One titled block of mid-section rows. Items are always rendered with **compact** `ListMenu` density;
|
|
2223
|
+
* this type only describes the data shape (same as root `midSections` on `SideNavigation`).
|
|
2224
|
+
*/
|
|
2225
|
+
export declare type MidSection<T extends ElementType = 'a'> = {
|
|
2226
|
+
/**
|
|
2227
|
+
* The title of the section
|
|
2228
|
+
*/
|
|
2229
|
+
title?: string;
|
|
2230
|
+
/**
|
|
2231
|
+
* Whether to show a divider above the section
|
|
2232
|
+
* @default true
|
|
2233
|
+
*/
|
|
2234
|
+
showDivider?: boolean;
|
|
2235
|
+
/**
|
|
2236
|
+
* The list of items in the section
|
|
2237
|
+
*/
|
|
2238
|
+
items: ListMenuItem<T>[];
|
|
2239
|
+
/**
|
|
2240
|
+
* Whether to hide the entire section when the menu is closed
|
|
2241
|
+
* @default false
|
|
2242
|
+
*/
|
|
2243
|
+
hideOnMenuClosed?: boolean;
|
|
2244
|
+
/**
|
|
2245
|
+
* Highlights the section with a background color and rounded corners.
|
|
2246
|
+
* @default false
|
|
2247
|
+
*/
|
|
2248
|
+
highlight?: boolean;
|
|
2249
|
+
/**
|
|
2250
|
+
* When set, the section collapses into this icon when the menu is closed (desktop only).
|
|
2251
|
+
* On hover, a PopUpMenu opens revealing the section items.
|
|
2252
|
+
*/
|
|
2253
|
+
replaceWithIconOnClose?: CommonIconNames;
|
|
2254
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
2255
|
+
|
|
2256
|
+
export declare const MidSectionMenus: {
|
|
2257
|
+
<T extends ElementType = "a">({ sections, open, variant, activeItem, linkComponent: LinkComponent, onItemClick, }: MidSectionMenusProps<T>): JSX.Element | null;
|
|
2258
|
+
displayName: string;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
export declare type MidSectionMenusProps<T extends ElementType = 'a'> = {
|
|
2262
|
+
/**
|
|
2263
|
+
* Section definitions (same shape as `SideNavigation` `midSections`).
|
|
2264
|
+
*/
|
|
2265
|
+
sections: MidSection<T>[];
|
|
2266
|
+
/**
|
|
2267
|
+
* Whether the parent navigation is expanded (labels visible).
|
|
2268
|
+
* @default true
|
|
2269
|
+
*/
|
|
2270
|
+
open?: boolean;
|
|
2271
|
+
/**
|
|
2272
|
+
* Sidebar shell width mode: must match the parent `SideNavigation` `variant` so open/closed width
|
|
2273
|
+
* transitions on the section wrappers stay aligned (`default` vs `compact` rail widths).
|
|
2274
|
+
* Does **not** change list row density — inner `ListMenu` instances are always `compact`.
|
|
2275
|
+
* @default 'default'
|
|
2276
|
+
*/
|
|
2277
|
+
variant?: ListMenuVariant;
|
|
2278
|
+
/**
|
|
2279
|
+
* Active item id for `ListMenu` highlighting.
|
|
2280
|
+
*/
|
|
2281
|
+
activeItem?: string;
|
|
2282
|
+
/**
|
|
2283
|
+
* Link element for menu rows.
|
|
2284
|
+
*/
|
|
2285
|
+
linkComponent?: T | 'a';
|
|
2286
|
+
/**
|
|
2287
|
+
* Called when a row is activated (same contract as `ListMenu` / `SideNavigation` root lists).
|
|
2288
|
+
*/
|
|
2289
|
+
onItemClick?: (item: ListMenuItem<T>) => void;
|
|
2290
|
+
};
|
|
2291
|
+
|
|
2292
|
+
declare type NonNullable_2<T> = Exclude<T, null | undefined>;
|
|
2293
|
+
export { NonNullable_2 as NonNullable }
|
|
2294
|
+
|
|
2295
|
+
export declare type Overflow = OverflowBase | {
|
|
2296
|
+
y?: OverflowYOrX;
|
|
2297
|
+
x?: OverflowYOrX;
|
|
2298
|
+
};
|
|
2299
|
+
|
|
2300
|
+
export declare type OverflowBase = 'visible' | 'hidden' | 'scroll' | 'auto' | 'y-auto' | 'y-scroll' | 'x-auto' | 'x-scroll';
|
|
2301
|
+
|
|
2302
|
+
export declare type OverflowYOrX = 'auto' | 'scroll' | 'hidden' | 'visible';
|
|
2303
|
+
|
|
2304
|
+
export declare type Padding = SpacingKeys | {
|
|
2305
|
+
top?: SpacingKeys;
|
|
2306
|
+
right?: SpacingKeys;
|
|
2307
|
+
bottom?: SpacingKeys;
|
|
2308
|
+
left?: SpacingKeys;
|
|
2309
|
+
x?: SpacingKeys;
|
|
2310
|
+
y?: SpacingKeys;
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
export declare const Pagination: ({ currentPage, totalPages, rowsPerPage, onPageChange, onRowsPerPageChange, disabled, rowsPerPageLabel, pageOfPagesLabel, }: PaginationProps) => JSX.Element;
|
|
2314
|
+
|
|
2315
|
+
export declare interface PaginationProps {
|
|
2316
|
+
/**
|
|
2317
|
+
* The text for the rows per page.
|
|
2318
|
+
* @default "Zeilen pro Seite"
|
|
2319
|
+
*/
|
|
2320
|
+
rowsPerPageLabel?: string;
|
|
2321
|
+
/**
|
|
2322
|
+
* The text for the "of" in "1 of 10".
|
|
2323
|
+
* @default "von"
|
|
2324
|
+
*/
|
|
2325
|
+
pageOfPagesLabel?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* The current page of the Pagination.
|
|
2328
|
+
*/
|
|
2329
|
+
currentPage: number;
|
|
2330
|
+
/**
|
|
2331
|
+
* The total pages of the Pagination.
|
|
2332
|
+
*/
|
|
2333
|
+
totalPages: number;
|
|
2334
|
+
/**
|
|
2335
|
+
* The rows per page of the Pagination.
|
|
2336
|
+
*/
|
|
2337
|
+
rowsPerPage?: RowsPerPage;
|
|
2338
|
+
/**
|
|
2339
|
+
* The callback function to handle page change.
|
|
2340
|
+
*/
|
|
2341
|
+
onPageChange: (page: number) => void;
|
|
2342
|
+
/**
|
|
2343
|
+
* The callback function to handle rows per page change.
|
|
2344
|
+
*/
|
|
2345
|
+
onRowsPerPageChange?: (rowsPerPage: RowsPerPage) => void;
|
|
2346
|
+
/**
|
|
2347
|
+
* The disabled state of the Pagination.
|
|
2348
|
+
*/
|
|
2349
|
+
disabled?: boolean;
|
|
2350
|
+
}
|
|
2351
|
+
|
|
2352
|
+
declare type Panel = {
|
|
2353
|
+
id: string;
|
|
2354
|
+
children: React.ReactNode;
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2357
|
+
export declare const PopUpMenu: ({ children, placement, disabled, trigger, density, closeOnItemClick, items, onItemClick, selectedItem, selectable, open, onClose, closeOnClickOutside, closeOnEscape, toggleOnClick, queryHighlight, showSearch, searchPlaceholder, allowClearAll, allowSelectAll, selectAllLabel, clearAllLabel, noResultsFoundMessage, onClearAllOrSelectAllClick, searchMode, onSearchChange, isLoading, wrapperWidth, onScrollEnd, isLoadingMore, height, minHeight, maxHeight, ...props }: PopUpMenuProps) => JSX.Element;
|
|
2358
|
+
|
|
2359
|
+
export declare type PopUpMenuItem<T extends React.ElementType = 'button'> = UnionAs_3 & {
|
|
2360
|
+
/**
|
|
2361
|
+
* The id of the item
|
|
2362
|
+
* @required
|
|
2363
|
+
*/
|
|
2364
|
+
id: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* The label of the item
|
|
2367
|
+
* @required (ignored when isDivider is true)
|
|
2368
|
+
*/
|
|
2369
|
+
label: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* Whether the item is a visual divider
|
|
2372
|
+
* @default false
|
|
2373
|
+
*/
|
|
2374
|
+
isDivider?: boolean;
|
|
2375
|
+
/**
|
|
2376
|
+
* Props passed to the Divider component
|
|
2377
|
+
* Only used when `isDivider` is true
|
|
2378
|
+
*/
|
|
2379
|
+
dividerProps?: DividerProps;
|
|
2380
|
+
/**
|
|
2381
|
+
* Custom ReactNode to render instead of the label.
|
|
2382
|
+
* When set, the item becomes non-interactive (not clickable, not focusable).
|
|
2383
|
+
*/
|
|
2384
|
+
customContent?: React.ReactNode;
|
|
2385
|
+
/**
|
|
2386
|
+
* Whether the menu should stay open when this item is clicked
|
|
2387
|
+
* @default false
|
|
2388
|
+
*/
|
|
2389
|
+
keepOpen?: boolean;
|
|
2390
|
+
/**
|
|
2391
|
+
* The callback function that is called when the item is clicked
|
|
2392
|
+
*/
|
|
2393
|
+
onClick?: () => void;
|
|
2394
|
+
/**
|
|
2395
|
+
* The icon of the item
|
|
2396
|
+
* @see {@link CommonIconNames} for available icons
|
|
2397
|
+
*/
|
|
2398
|
+
icon?: CommonIconNames;
|
|
2399
|
+
/**
|
|
2400
|
+
* Whether the item is disabled
|
|
2401
|
+
* @default false
|
|
2402
|
+
*/
|
|
2403
|
+
disabled?: boolean;
|
|
2404
|
+
/**
|
|
2405
|
+
* Sub-menu items displayed in a nested PopUpMenu when the item is hovered.
|
|
2406
|
+
* Opens to the right of the item (or left if no space).
|
|
2407
|
+
*/
|
|
2408
|
+
subMenuItems?: PopUpMenuItem[];
|
|
2409
|
+
/**
|
|
2410
|
+
* The custom component to be used for the item <br />
|
|
2411
|
+
* `as` is ignored when `linkComponent` is set
|
|
2412
|
+
* @see {@link UnionAs}
|
|
2413
|
+
*/
|
|
2414
|
+
linkComponent?: T;
|
|
2415
|
+
} & Omit<React.ComponentProps<T>, 'className' | 'ref' | 'role' | 'tabIndex' | 'onClick' | 'disabled'>;
|
|
2416
|
+
|
|
2417
|
+
export declare type PopUpMenuPlacement = 'top' | 'bottom' | 'left' | 'right' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-top' | 'left-bottom' | 'right-top' | 'right-bottom';
|
|
2418
|
+
|
|
2419
|
+
export declare interface PopUpMenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'className'> {
|
|
2420
|
+
/**
|
|
2421
|
+
* The trigger element that the context menu is attached to
|
|
2422
|
+
*/
|
|
2423
|
+
children: React.ReactNode;
|
|
2424
|
+
/**
|
|
2425
|
+
* The items to be displayed in the context menu <br />
|
|
2426
|
+
* The Generic type `T` is type of the `linkComponent` prop. Default `T` is `button`. <br />
|
|
2427
|
+
* If you use the prop `as` the types of the the selected option are automatically inferred to that particular item
|
|
2428
|
+
* @see {@link PopUpMenuItem}
|
|
2429
|
+
* @example
|
|
2430
|
+
* ```ts
|
|
2431
|
+
* const items: PopUpMenuItem[] = [
|
|
2432
|
+
* {
|
|
2433
|
+
* id: 'delete',
|
|
2434
|
+
* label: 'Delete',
|
|
2435
|
+
* onClick: () => {
|
|
2436
|
+
* console.log('Deleted');
|
|
2437
|
+
* },
|
|
2438
|
+
* icon: 'delete',
|
|
2439
|
+
* },
|
|
2440
|
+
* ];
|
|
2441
|
+
* ```
|
|
2442
|
+
*/
|
|
2443
|
+
items: PopUpMenuItem[];
|
|
2444
|
+
/**
|
|
2445
|
+
* The selected items in the context menu
|
|
2446
|
+
* @see {@link PopUpMenuSelectionType}
|
|
2447
|
+
*/
|
|
2448
|
+
selectedItem?: PopUpMenuSelectionType;
|
|
2449
|
+
/**
|
|
2450
|
+
* The callback function that is called when the items are clicked
|
|
2451
|
+
* @see {@link PopUpMenuSelectionType}
|
|
2452
|
+
* @see {@link PopUpMenuItem}
|
|
2453
|
+
*/
|
|
2454
|
+
onItemClick?: (item: PopUpMenuItem, selectedItem?: PopUpMenuSelectionType) => void;
|
|
2455
|
+
/**
|
|
2456
|
+
* The callback function that is called when the clear all or select all buttons are clicked
|
|
2457
|
+
* @see {@link PopUpMenuSelectionType}
|
|
2458
|
+
* @see {@link PopUpMenuItem}
|
|
2459
|
+
*/
|
|
2460
|
+
onClearAllOrSelectAllClick?: (items: PopUpMenuItem[], selectedItems: PopUpMenuSelectionType) => void;
|
|
2461
|
+
/**
|
|
2462
|
+
* The position of the context menu relative to its trigger
|
|
2463
|
+
* @default 'bottom-left'
|
|
2464
|
+
*/
|
|
2465
|
+
placement?: ResponsiveType<PopUpMenuPlacement>;
|
|
2466
|
+
/**
|
|
2467
|
+
* The trigger event that opens the context menu
|
|
2468
|
+
* @default click
|
|
2469
|
+
*/
|
|
2470
|
+
trigger?: 'hover' | 'click' | 'right-click';
|
|
2471
|
+
/**
|
|
2472
|
+
* The density of the context menu
|
|
2473
|
+
* @default default
|
|
2474
|
+
*/
|
|
2475
|
+
density?: 'default' | '-2' | '-4';
|
|
2476
|
+
/**
|
|
2477
|
+
* Whether the context menu should be selectable
|
|
2478
|
+
* @default none
|
|
2479
|
+
*/
|
|
2480
|
+
selectable?: 'single' | 'multiple' | 'none';
|
|
2481
|
+
/**
|
|
2482
|
+
* Whether the context menu should be disabled
|
|
2483
|
+
* @default false
|
|
2484
|
+
*/
|
|
2485
|
+
disabled?: boolean;
|
|
2486
|
+
/**
|
|
2487
|
+
* Whether the context menu should be closed when the user clicks outside of it
|
|
2488
|
+
* @default true
|
|
2489
|
+
*/
|
|
2490
|
+
closeOnClickOutside?: boolean;
|
|
2491
|
+
/**
|
|
2492
|
+
* Whether the context menu should be closed when the user presses the escape key
|
|
2493
|
+
* @default true
|
|
2494
|
+
*/
|
|
2495
|
+
closeOnEscape?: boolean;
|
|
2496
|
+
/**
|
|
2497
|
+
* Whether the context menu should be toggled when the user clicks on the trigger
|
|
2498
|
+
* @default true
|
|
2499
|
+
*/
|
|
2500
|
+
toggleOnClick?: boolean;
|
|
2501
|
+
/**
|
|
2502
|
+
* Whether the context menu should be open
|
|
2503
|
+
* @default false
|
|
2504
|
+
*/
|
|
2505
|
+
open?: boolean;
|
|
2506
|
+
/**
|
|
2507
|
+
* The callback function that is called when the context menu is opened
|
|
2508
|
+
*/
|
|
2509
|
+
onOpen?: () => void;
|
|
2510
|
+
/**
|
|
2511
|
+
* The callback function that is called when the context menu is closed
|
|
2512
|
+
*/
|
|
2513
|
+
onClose?: () => void;
|
|
2514
|
+
/**
|
|
2515
|
+
* The query to be used to filter the items by label or id
|
|
2516
|
+
*/
|
|
2517
|
+
queryHighlight?: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* Whether the context menu should be closed when the item is clicked
|
|
2520
|
+
* Default is `true` when the `selectable` prop is `none` or `single`
|
|
2521
|
+
* @default true
|
|
2522
|
+
*/
|
|
2523
|
+
closeOnItemClick?: boolean;
|
|
2524
|
+
/**
|
|
2525
|
+
* Whether the context menu should show a search input
|
|
2526
|
+
* @default false
|
|
2527
|
+
*/
|
|
2528
|
+
showSearch?: boolean;
|
|
2529
|
+
/**
|
|
2530
|
+
* The placeholder of the search input
|
|
2531
|
+
* @default 'Suchen'
|
|
2532
|
+
*/
|
|
2533
|
+
searchPlaceholder?: string;
|
|
2534
|
+
/**
|
|
2535
|
+
* Whether the context menu should allow clearing all selected items
|
|
2536
|
+
* @default false
|
|
2537
|
+
*/
|
|
2538
|
+
allowClearAll?: boolean;
|
|
2539
|
+
/**
|
|
2540
|
+
* The label of the clear all button
|
|
2541
|
+
* @default 'Alle löschen'
|
|
2542
|
+
*/
|
|
2543
|
+
clearAllLabel?: string;
|
|
2544
|
+
/**
|
|
2545
|
+
* Whether the context menu should allow selecting all items
|
|
2546
|
+
* @default false
|
|
2547
|
+
*/
|
|
2548
|
+
allowSelectAll?: boolean;
|
|
2549
|
+
/**
|
|
2550
|
+
* The label of the select all button
|
|
2551
|
+
* @default 'Alle auswählen'
|
|
2552
|
+
*/
|
|
2553
|
+
selectAllLabel?: string;
|
|
2554
|
+
/**
|
|
2555
|
+
* The message of the no results found message
|
|
2556
|
+
* @default 'Keine Ergebnisse gefunden'
|
|
2557
|
+
*/
|
|
2558
|
+
noResultsFoundMessage?: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* The mode of the search
|
|
2561
|
+
* @default 'built-in'
|
|
2562
|
+
*/
|
|
2563
|
+
searchMode?: 'built-in' | 'async';
|
|
2564
|
+
/**
|
|
2565
|
+
* The callback function that is called when the search query is changed <br />
|
|
2566
|
+
* This is only used when the `searchMode` prop is set to `async`
|
|
2567
|
+
*/
|
|
2568
|
+
onSearchChange?: (searchQuery: string) => void;
|
|
2569
|
+
/**
|
|
2570
|
+
* Whether the context menu is loading
|
|
2571
|
+
* @default false
|
|
2572
|
+
*/
|
|
2573
|
+
isLoading?: boolean;
|
|
2574
|
+
/**
|
|
2575
|
+
* The width of the wrapper div that contains the context menu,
|
|
2576
|
+
* this is useful if you need the wrapped element to be full width (like in a InputField for example)
|
|
2577
|
+
* @default 'fit'
|
|
2578
|
+
*/
|
|
2579
|
+
wrapperWidth?: 'fit' | 'full';
|
|
2580
|
+
/**
|
|
2581
|
+
* The callback function that is called when the scroll end is reached
|
|
2582
|
+
*/
|
|
2583
|
+
onScrollEnd?: () => void;
|
|
2584
|
+
/**
|
|
2585
|
+
* Whether the context menu is loading more items when the user scrolls to the bottom
|
|
2586
|
+
* @default false
|
|
2587
|
+
*/
|
|
2588
|
+
isLoadingMore?: boolean;
|
|
2589
|
+
/**
|
|
2590
|
+
* The height of the popup menu content
|
|
2591
|
+
*/
|
|
2592
|
+
height?: ResponsiveType<number | string>;
|
|
2593
|
+
/**
|
|
2594
|
+
* The min height of the popup menu content
|
|
2595
|
+
*/
|
|
2596
|
+
minHeight?: ResponsiveType<number | string>;
|
|
2597
|
+
/**
|
|
2598
|
+
* The max height of the popup menu content
|
|
2599
|
+
*/
|
|
2600
|
+
maxHeight?: ResponsiveType<number | string>;
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
export declare type PopUpMenuSelectionType = string | string[] | undefined;
|
|
2604
|
+
|
|
2605
|
+
export declare const ProgressIndicator: ({ value, indeterminate, variant, size, foregroundColor, backgroundColor, }: ProgressIndicatorProps) => JSX.Element;
|
|
2606
|
+
|
|
2607
|
+
export declare interface ProgressIndicatorProps {
|
|
2608
|
+
/**
|
|
2609
|
+
* The percentage of the progress indicator
|
|
2610
|
+
* @default 0
|
|
2611
|
+
*/
|
|
2612
|
+
value?: number;
|
|
2613
|
+
/**
|
|
2614
|
+
* Whether the progress indicator is indeterminate
|
|
2615
|
+
* @default false
|
|
2616
|
+
*/
|
|
2617
|
+
indeterminate?: boolean;
|
|
2618
|
+
/**
|
|
2619
|
+
* The variant of the progress indicator
|
|
2620
|
+
* @default 'linear'
|
|
2621
|
+
*/
|
|
2622
|
+
variant?: 'linear' | 'circular';
|
|
2623
|
+
/**
|
|
2624
|
+
* The size of the circular progress indicator. Only applies to the circular variant.
|
|
2625
|
+
* @default 'md'
|
|
2626
|
+
*/
|
|
2627
|
+
size?: 'sm' | 'md';
|
|
2628
|
+
/**
|
|
2629
|
+
* Custom color for the progress fill (foreground). Accepts any valid CSS color value.
|
|
2630
|
+
*/
|
|
2631
|
+
foregroundColor?: BackgroundColors;
|
|
2632
|
+
/**
|
|
2633
|
+
* Custom color for the progress track (background).
|
|
2634
|
+
*/
|
|
2635
|
+
backgroundColor?: BackgroundColors;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
export declare const RadioButton: React.FC<RadioButtonProps>;
|
|
2639
|
+
|
|
2640
|
+
export declare interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
2641
|
+
/**
|
|
2642
|
+
* Handle change events.
|
|
2643
|
+
*/
|
|
2644
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
2645
|
+
/**
|
|
2646
|
+
* Handle the label of the radio button.
|
|
2647
|
+
*/
|
|
2648
|
+
label: ReactNode;
|
|
2649
|
+
/**
|
|
2650
|
+
* Handle the name of the radio button.
|
|
2651
|
+
*/
|
|
2652
|
+
name?: string;
|
|
2653
|
+
/**
|
|
2654
|
+
* Handle the id of the radio button.
|
|
2655
|
+
* @default auto-generated
|
|
2656
|
+
*/
|
|
2657
|
+
id?: string;
|
|
2658
|
+
/**
|
|
2659
|
+
* Handle the value of the radio button.
|
|
2660
|
+
*/
|
|
2661
|
+
value?: string;
|
|
2662
|
+
/**
|
|
2663
|
+
* Handle if the radio button is checked.
|
|
2664
|
+
*/
|
|
2665
|
+
checked?: boolean;
|
|
2666
|
+
/**
|
|
2667
|
+
* Handle if the radio button is disabled.
|
|
2668
|
+
*/
|
|
2669
|
+
disabled?: boolean;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
export declare const RadioGroup: {
|
|
2673
|
+
({ children, name, value, onChange, row, disabled, }: RadioGroupProps): default_2.DetailedReactHTMLElement<{
|
|
2674
|
+
className: string;
|
|
2675
|
+
role: "radiogroup";
|
|
2676
|
+
'aria-labelledby': string;
|
|
2677
|
+
}, HTMLElement>;
|
|
2678
|
+
displayName: string;
|
|
2679
|
+
};
|
|
2680
|
+
|
|
2681
|
+
export declare interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2682
|
+
/**
|
|
2683
|
+
* The children of the radio group.
|
|
2684
|
+
*/
|
|
2685
|
+
children: React.ReactNode;
|
|
2686
|
+
/**
|
|
2687
|
+
* The name of the radio group. This will be passed to the radio buttons.
|
|
2688
|
+
*/
|
|
2689
|
+
name: string;
|
|
2690
|
+
/**
|
|
2691
|
+
* The value of the selected radio button.
|
|
2692
|
+
*/
|
|
2693
|
+
value?: string;
|
|
2694
|
+
/**
|
|
2695
|
+
* Handle change events.
|
|
2696
|
+
*/
|
|
2697
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
2698
|
+
/**
|
|
2699
|
+
* Set the group to be displayed in a row
|
|
2700
|
+
*/
|
|
2701
|
+
row?: boolean;
|
|
2702
|
+
/**
|
|
2703
|
+
* Set the group to be disabled
|
|
2704
|
+
*/
|
|
2705
|
+
disabled?: boolean;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
declare type RefType<T extends Node = HTMLElement> = RefObject<T | null> | null | undefined;
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* Represents a file that was rejected during validation.
|
|
2712
|
+
* These files are not added to the file list but shown in the rejection list.
|
|
2713
|
+
*/
|
|
2714
|
+
export declare interface RejectedFile {
|
|
2715
|
+
/**
|
|
2716
|
+
* The actual File object that was rejected.
|
|
2717
|
+
*/
|
|
2718
|
+
file: File;
|
|
2719
|
+
/**
|
|
2720
|
+
* The validation error that caused the rejection.
|
|
2721
|
+
*/
|
|
2722
|
+
error: FILE_ERROR;
|
|
2723
|
+
/**
|
|
2724
|
+
* Human-readable error message.
|
|
2725
|
+
*/
|
|
2726
|
+
errorMessage: string;
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
declare type ResponsiveBreakpoint = 'SM' | 'MD' | 'LG' | 'XL' | '2XL';
|
|
2730
|
+
|
|
2731
|
+
export declare type ResponsiveGenericStyles<Attr extends string, T extends string = string> = {
|
|
2732
|
+
[K in GenerateResponsiveGenericStyleKeys<Attr>]: Record<T, string>;
|
|
2733
|
+
};
|
|
2734
|
+
|
|
2735
|
+
export declare type ResponsiveStyles<Attr extends string> = {
|
|
2736
|
+
[K in GenerateResponsiveStyleKeys<Attr>]: Record<SpacingKeys, string>;
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
export declare type ResponsiveType<T> = T | {
|
|
2740
|
+
[key in Viewport]?: T;
|
|
2741
|
+
};
|
|
2742
|
+
|
|
2743
|
+
export declare type ResponsiveTypeFixed<T> = {
|
|
2744
|
+
[key in Viewport]: T;
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
export declare type RowsPerPage = 10 | 20 | 50 | 100 | 200;
|
|
2748
|
+
|
|
2749
|
+
export declare const ScoreCard: ForwardRefExoticComponent<ScoreCardProps & RefAttributes<HTMLDivElement>>;
|
|
2750
|
+
|
|
2751
|
+
export declare interface ScoreCardProps {
|
|
2752
|
+
/**
|
|
2753
|
+
* Main KPI value displayed prominently (e.g. "0,00", "156", "92,3%").
|
|
2754
|
+
*/
|
|
2755
|
+
value: string | number;
|
|
2756
|
+
/**
|
|
2757
|
+
* Secondary label below the value (e.g. "Parameter", "davon 12 in kritischem Status").
|
|
2758
|
+
*/
|
|
2759
|
+
parameter?: string;
|
|
2760
|
+
/**
|
|
2761
|
+
* Icon shown to the left of the parameter text.
|
|
2762
|
+
*/
|
|
2763
|
+
parameterIcon?: CommonIconNames;
|
|
2764
|
+
/**
|
|
2765
|
+
* Whether to show the parameter icon.
|
|
2766
|
+
* @default true
|
|
2767
|
+
*/
|
|
2768
|
+
showIcon?: boolean;
|
|
2769
|
+
/**
|
|
2770
|
+
* Color variant controlling background and text colors.
|
|
2771
|
+
* @default 'neutral'
|
|
2772
|
+
*/
|
|
2773
|
+
variant?: ScoreCardVariant;
|
|
2774
|
+
/**
|
|
2775
|
+
* Size variant controlling padding and typography scale.
|
|
2776
|
+
* @default 'large'
|
|
2777
|
+
*/
|
|
2778
|
+
size?: ScoreCardSize;
|
|
2779
|
+
/**
|
|
2780
|
+
* Locale for number formatting (e.g. 'de-DE', 'en-US').
|
|
2781
|
+
* When omitted, uses the browser's default locale.
|
|
2782
|
+
*/
|
|
2783
|
+
locale?: string;
|
|
2784
|
+
/**
|
|
2785
|
+
* Fully custom content — replaces the default value/parameter layout.
|
|
2786
|
+
*/
|
|
2787
|
+
children?: ReactNode;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
export declare type ScoreCardSize = 'large' | 'medium' | 'small';
|
|
2791
|
+
|
|
2792
|
+
export declare type ScoreCardVariant = 'negative' | 'active' | 'positive' | 'neutral' | 'ghost';
|
|
2793
|
+
|
|
2794
|
+
export declare const SegmentButton: <T extends React.ElementType = "button", V = string>({ label, active, matchSiblings, icon, value, as, linkComponent, ...props }: SegmentButtonProps<T, V>) => JSX.Element;
|
|
2795
|
+
|
|
2796
|
+
export declare type SegmentButtonProps<T extends React.ElementType, V = string> = React.ComponentPropsWithoutRef<T> & {
|
|
2797
|
+
/**
|
|
2798
|
+
* The label of the button.
|
|
2799
|
+
*/
|
|
2800
|
+
label?: string;
|
|
2801
|
+
/**
|
|
2802
|
+
* The icon of the button.
|
|
2803
|
+
*/
|
|
2804
|
+
icon?: CommonIconNames;
|
|
2805
|
+
/**
|
|
2806
|
+
* Whether the button is active.
|
|
2807
|
+
*/
|
|
2808
|
+
active?: boolean;
|
|
2809
|
+
/**
|
|
2810
|
+
* Whether the button should match width with sibling buttons. <br />
|
|
2811
|
+
* Only used in `SegmentGroup`.
|
|
2812
|
+
* @default false
|
|
2813
|
+
*/
|
|
2814
|
+
matchSiblings?: boolean;
|
|
2815
|
+
/**
|
|
2816
|
+
* The onClick event handler.
|
|
2817
|
+
*/
|
|
2818
|
+
onClick?: (value: V) => void;
|
|
2819
|
+
/**
|
|
2820
|
+
* The link component of the button.
|
|
2821
|
+
* @default 'button'
|
|
2822
|
+
*/
|
|
2823
|
+
as?: 'a' | 'button';
|
|
2824
|
+
/**
|
|
2825
|
+
* The link component of the button.
|
|
2826
|
+
* @default 'button'
|
|
2827
|
+
*/
|
|
2828
|
+
linkComponent?: T;
|
|
2829
|
+
/**
|
|
2830
|
+
* The value of the button.
|
|
2831
|
+
*/
|
|
2832
|
+
value: V;
|
|
2833
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
2834
|
+
|
|
2835
|
+
export declare const SegmentGroup: <T extends default_2.ElementType = "button", V = string>({ children, stretch, onChange, multiSelect, activeButton, disabled, linkComponent, }: SegmentGroupProps<T, V>) => default_2.DetailedReactHTMLElement<{
|
|
2836
|
+
className: string;
|
|
2837
|
+
}, HTMLElement>;
|
|
2838
|
+
|
|
2839
|
+
export declare interface SegmentGroupProps<T extends React.ElementType = 'button', V = string> {
|
|
2840
|
+
/**
|
|
2841
|
+
* The children of the button.
|
|
2842
|
+
*/
|
|
2843
|
+
children: React.ReactElement<SegmentButtonProps<T, V>> | React.ReactElement<SegmentButtonProps<T, V>>[];
|
|
2844
|
+
/**
|
|
2845
|
+
* Make the segment group stretch to fill the container.
|
|
2846
|
+
*/
|
|
2847
|
+
stretch?: boolean;
|
|
2848
|
+
/**
|
|
2849
|
+
* The active button value. <br />
|
|
2850
|
+
* If `multiSelect` is `true`, this should be an array of values. <br />
|
|
2851
|
+
* `V | V[]`
|
|
2852
|
+
*/
|
|
2853
|
+
activeButton?: SegmentValue<V>;
|
|
2854
|
+
/**
|
|
2855
|
+
* Whether to allow multiple selections.
|
|
2856
|
+
*/
|
|
2857
|
+
multiSelect?: boolean;
|
|
2858
|
+
/**
|
|
2859
|
+
* Handle change events.
|
|
2860
|
+
*/
|
|
2861
|
+
onChange?: (value: SegmentValue<V>) => void;
|
|
2862
|
+
/**
|
|
2863
|
+
* The custom link component. <br />
|
|
2864
|
+
* It will be passed to the all `SegmentButton` components.
|
|
2865
|
+
* @default 'button'
|
|
2866
|
+
*/
|
|
2867
|
+
linkComponent?: T;
|
|
2868
|
+
/**
|
|
2869
|
+
* Whether the segment group is disabled.
|
|
2870
|
+
*/
|
|
2871
|
+
disabled?: boolean;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
export declare type SegmentValue<T = string> = T | T[];
|
|
2875
|
+
|
|
2876
|
+
export declare const Select: ({ value, multiple, options, onChange, error, errorMessage, disabled, label, hideLabel, name, id, searchable, allowClearAll, allowSelectAll, selectAllLabel, clearAllLabel, noResultsFoundMessage, onScrollEnd, isLoadingMore, ...props }: SelectProps) => JSX.Element;
|
|
2877
|
+
|
|
2878
|
+
export declare type SelectOption = Omit<PopUpMenuItem, 'id' | 'onClick' | 'disabled' | 'linkComponent' | 'as'> & {
|
|
2879
|
+
/**
|
|
2880
|
+
* The value of the option
|
|
2881
|
+
* @required
|
|
2882
|
+
*/
|
|
2883
|
+
value: string;
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
export declare type SelectProps = Union & {
|
|
2887
|
+
/**
|
|
2888
|
+
* The options of the select.
|
|
2889
|
+
*/
|
|
2890
|
+
options: SelectOption[];
|
|
2891
|
+
/**
|
|
2892
|
+
* The onChange event handler.
|
|
2893
|
+
*/
|
|
2894
|
+
onChange?: React.ChangeEventHandler<HTMLSelectElement>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Whether the select has a search input.
|
|
2897
|
+
*/
|
|
2898
|
+
searchable?: boolean;
|
|
2899
|
+
/**
|
|
2900
|
+
* Whether the select has an error.
|
|
2901
|
+
*/
|
|
2902
|
+
error?: boolean;
|
|
2903
|
+
/**
|
|
2904
|
+
* The error message of the select.
|
|
2905
|
+
*/
|
|
2906
|
+
errorMessage?: string;
|
|
2907
|
+
/**
|
|
2908
|
+
* Whether the select is disabled.
|
|
2909
|
+
*/
|
|
2910
|
+
disabled?: boolean;
|
|
2911
|
+
/**
|
|
2912
|
+
* The label of the select.
|
|
2913
|
+
*/
|
|
2914
|
+
label?: string;
|
|
2915
|
+
/**
|
|
2916
|
+
* Whether to hide the label.
|
|
2917
|
+
*/
|
|
2918
|
+
hideLabel?: boolean;
|
|
2919
|
+
/**
|
|
2920
|
+
* The name of the select.
|
|
2921
|
+
*/
|
|
2922
|
+
name: string;
|
|
2923
|
+
/**
|
|
2924
|
+
* The id of the select.
|
|
2925
|
+
*/
|
|
2926
|
+
id?: string;
|
|
2927
|
+
} & Pick<PopUpMenuProps, 'allowClearAll' | 'allowSelectAll' | 'selectAllLabel' | 'clearAllLabel' | 'noResultsFoundMessage' | 'onScrollEnd' | 'isLoadingMore'> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>;
|
|
2928
|
+
|
|
2929
|
+
export declare const Sheet: {
|
|
2930
|
+
({ open, onClose, children, title, subTitle, closeOnBackdropClick, closeOnEsc, padding, showHandle, size, placement, headerActions, footerActions, stickyFooter, stickyHeader, showCloseButton, showBackArrow, resizable, width, minWidth, maxWidth, onResizeEnd, }: SheetProps): ReactPortal | null;
|
|
2931
|
+
displayName: string;
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
/**
|
|
2935
|
+
* Global manager for Sheet components to track open sheets
|
|
2936
|
+
*/
|
|
2937
|
+
declare class SheetManager {
|
|
2938
|
+
private readonly openSheets;
|
|
2939
|
+
private readonly closeCallbacks;
|
|
2940
|
+
/**
|
|
2941
|
+
* Register a Sheet as open with its close callback
|
|
2942
|
+
* @param sheetId - Unique identifier for the Sheet
|
|
2943
|
+
* @param closeCallback - Function to close this specific Sheet
|
|
2944
|
+
*/
|
|
2945
|
+
registerOpenSheet(sheetId: string, closeCallback: () => void): void;
|
|
2946
|
+
/**
|
|
2947
|
+
* Unregister a Sheet as closed
|
|
2948
|
+
* @param sheetId - Unique identifier for the Sheet
|
|
2949
|
+
*/
|
|
2950
|
+
unregisterOpenSheet(sheetId: string): void;
|
|
2951
|
+
/**
|
|
2952
|
+
* Close all other Sheets except the specified one
|
|
2953
|
+
* @param excludeSheetId - Sheet ID to exclude from closing
|
|
2954
|
+
*/
|
|
2955
|
+
closeOtherSheets(excludeSheetId: string): void;
|
|
2956
|
+
/**
|
|
2957
|
+
* Check if any Sheets are currently open
|
|
2958
|
+
*/
|
|
2959
|
+
hasOpenSheets(): boolean;
|
|
2960
|
+
/**
|
|
2961
|
+
* Get all currently open Sheet IDs
|
|
2962
|
+
*/
|
|
2963
|
+
getOpenSheets(): string[];
|
|
2964
|
+
/**
|
|
2965
|
+
* Clear all registered Sheets (useful for cleanup)
|
|
2966
|
+
*/
|
|
2967
|
+
clear(): void;
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
export declare const sheetManager: SheetManager;
|
|
2971
|
+
|
|
2972
|
+
export declare type SheetProps = UnionPlacement & {
|
|
2973
|
+
/**
|
|
2974
|
+
* Controls whether the sheet is open or closed.
|
|
2975
|
+
*/
|
|
2976
|
+
open: boolean;
|
|
2977
|
+
/**
|
|
2978
|
+
* Callback function called when the sheet is closed.
|
|
2979
|
+
* @default undefined
|
|
2980
|
+
*/
|
|
2981
|
+
onClose: () => void;
|
|
2982
|
+
/**
|
|
2983
|
+
* The main content of the sheet.
|
|
2984
|
+
*/
|
|
2985
|
+
children: ReactNode;
|
|
2986
|
+
/**
|
|
2987
|
+
* The title of the sheet.
|
|
2988
|
+
* @default undefined
|
|
2989
|
+
*/
|
|
2990
|
+
title?: string;
|
|
2991
|
+
/**
|
|
2992
|
+
* The subtitle of the sheet.
|
|
2993
|
+
* @default undefined
|
|
2994
|
+
*/
|
|
2995
|
+
subTitle?: string;
|
|
2996
|
+
/**
|
|
2997
|
+
* Whether clicking the backdrop should close the sheet.
|
|
2998
|
+
* @default true
|
|
2999
|
+
*/
|
|
3000
|
+
closeOnBackdropClick?: boolean;
|
|
3001
|
+
/**
|
|
3002
|
+
* Whether pressing the Escape key should close the sheet.
|
|
3003
|
+
* @default false
|
|
3004
|
+
*/
|
|
3005
|
+
closeOnEsc?: boolean;
|
|
3006
|
+
/**
|
|
3007
|
+
* The padding of the sheet content.
|
|
3008
|
+
* @default 'lg'
|
|
3009
|
+
*/
|
|
3010
|
+
padding?: SpacingKeys;
|
|
3011
|
+
/**
|
|
3012
|
+
* Whether to show the drag handle (typically shown on mobile).
|
|
3013
|
+
* @default true
|
|
3014
|
+
*/
|
|
3015
|
+
showHandle?: boolean;
|
|
3016
|
+
/**
|
|
3017
|
+
* The size of the sheet (affects width on desktop).
|
|
3018
|
+
* On mobile, the sheet always takes full width - 40px.
|
|
3019
|
+
* @default none
|
|
3020
|
+
*/
|
|
3021
|
+
size?: 'sm' | 'md' | 'lg';
|
|
3022
|
+
/**
|
|
3023
|
+
* The footer actions of the sheet.
|
|
3024
|
+
* @default undefined
|
|
3025
|
+
*/
|
|
3026
|
+
footerActions?: ReactNode;
|
|
3027
|
+
/**
|
|
3028
|
+
* The header actions of the sheet.
|
|
3029
|
+
* @default undefined
|
|
3030
|
+
*/
|
|
3031
|
+
headerActions?: ReactNode;
|
|
3032
|
+
/**
|
|
3033
|
+
* Whether to make the footer sticky of the sheet.
|
|
3034
|
+
* @default true
|
|
3035
|
+
*/
|
|
3036
|
+
stickyFooter?: boolean;
|
|
3037
|
+
/**
|
|
3038
|
+
* Whether to make the header sticky of the sheet.
|
|
3039
|
+
* @default true
|
|
3040
|
+
*/
|
|
3041
|
+
stickyHeader?: boolean;
|
|
3042
|
+
/**
|
|
3043
|
+
* Whether to show the close button in the header. <br />
|
|
3044
|
+
* onClose() will be called when the close button is clicked.
|
|
3045
|
+
* @default false
|
|
3046
|
+
*/
|
|
3047
|
+
showCloseButton?: boolean;
|
|
3048
|
+
/**
|
|
3049
|
+
* Whether to show the back button in the header. <br />
|
|
3050
|
+
* onClose() will be called when the back button is clicked.
|
|
3051
|
+
* @default false
|
|
3052
|
+
*/
|
|
3053
|
+
showBackArrow?: boolean;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
export declare const SideNavigation: <T extends ElementType = "a">({ menuItems, utilityItems, midSections, subMenus, userArea, hideUserAreaInMobile, hideToggleButton, addBorderToToggleButton, logo, open, variant, activeItem, onToggleOpen, onActiveItemChange, onItemClick, linkComponent: LinkComponent, }: SideNavigationProps<T>) => JSX.Element;
|
|
3057
|
+
|
|
3058
|
+
export declare type SideNavigationProps<T extends React.ElementType = 'a'> = {
|
|
3059
|
+
/**
|
|
3060
|
+
* Whether the navigation is expanded
|
|
3061
|
+
*/
|
|
3062
|
+
open?: boolean;
|
|
3063
|
+
/**
|
|
3064
|
+
* The visual variant of the navigation
|
|
3065
|
+
* @default 'default'
|
|
3066
|
+
*/
|
|
3067
|
+
variant?: ListMenuVariant;
|
|
3068
|
+
/**
|
|
3069
|
+
* Logo displayed in the top area (compact variant only).
|
|
3070
|
+
* Shows `icon` when collapsed, `icon + name` when expanded.
|
|
3071
|
+
* Both have zvoove defaults if omitted.
|
|
3072
|
+
*/
|
|
3073
|
+
logo?: {
|
|
3074
|
+
/**
|
|
3075
|
+
* Small logo icon shown when the sidebar is collapsed.
|
|
3076
|
+
*/
|
|
3077
|
+
icon?: ReactNode;
|
|
3078
|
+
/**
|
|
3079
|
+
* Full logo name shown next to the icon when expanded.
|
|
3080
|
+
*/
|
|
3081
|
+
name?: ReactNode;
|
|
3082
|
+
/**
|
|
3083
|
+
* When `true`, the icon is hidden while the sidebar is expanded so that only the name is visible.
|
|
3084
|
+
* When the sidebar collapses the icon reappears as the sole identifier.
|
|
3085
|
+
* @default false
|
|
3086
|
+
*/
|
|
3087
|
+
hideIconWhenOpen?: boolean;
|
|
3088
|
+
};
|
|
3089
|
+
/**
|
|
3090
|
+
* The list of menu items
|
|
3091
|
+
*/
|
|
3092
|
+
menuItems: ListMenuItem<T>[];
|
|
3093
|
+
/**
|
|
3094
|
+
* The list of utility items to stay at the bottom of the menu
|
|
3095
|
+
*/
|
|
3096
|
+
utilityItems?: ListMenuItem<T>[];
|
|
3097
|
+
/**
|
|
3098
|
+
* Sections between the root main list and utility items, with collapse/expand behavior when the sidebar
|
|
3099
|
+
* closes (see `replaceWithIconOnClose`). Only the **root** column uses this prop; any lists inside a
|
|
3100
|
+
* slide-in panel belong in that layer’s `content`.
|
|
3101
|
+
*/
|
|
3102
|
+
midSections?: MidSection<T>[];
|
|
3103
|
+
/**
|
|
3104
|
+
* Slide-in panels: `parentId` matches a root `menuItems` id; `content` is the custom body (back row is built-in).
|
|
3105
|
+
*/
|
|
3106
|
+
subMenus?: SubMenuLayer[];
|
|
3107
|
+
/**
|
|
3108
|
+
* User area rendered at the bottom of the navigation
|
|
3109
|
+
*/
|
|
3110
|
+
userArea?: UserAreaProps;
|
|
3111
|
+
/**
|
|
3112
|
+
* Hide the user area on mobile (useful when it's shown elsewhere, e.g. in a top bar).
|
|
3113
|
+
* @default true
|
|
3114
|
+
*/
|
|
3115
|
+
hideUserAreaInMobile?: boolean;
|
|
3116
|
+
/**
|
|
3117
|
+
* When `true`, the built-in expand/collapse control in the header row is not rendered.
|
|
3118
|
+
* Use a `utilityItems` entry with `onClick` (and controlled `open` / `onToggleOpen`) instead.
|
|
3119
|
+
* @default false
|
|
3120
|
+
*/
|
|
3121
|
+
hideToggleButton?: boolean;
|
|
3122
|
+
/**
|
|
3123
|
+
* When `true`, a border top, right and bottom are added to the toggle button. <br />
|
|
3124
|
+
* This is useful when the SideNavigation is used next to a Card with outlined variant as a content container.
|
|
3125
|
+
* @default false
|
|
3126
|
+
*/
|
|
3127
|
+
addBorderToToggleButton?: boolean;
|
|
3128
|
+
/**
|
|
3129
|
+
* Active id for **root** `menuItems` / `utilityItems`. To open a sub panel from the shell, pass either the
|
|
3130
|
+
* layer’s `parentId` (e.g. `'zain'`) or an opaque dotted string `'<parentId>.<segment>'` where only the
|
|
3131
|
+
* part before the first `.` is read to choose the panel; the rest is for your app / `content` only.
|
|
3132
|
+
*/
|
|
3133
|
+
activeItem?: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* The component to render for the link
|
|
3136
|
+
*/
|
|
3137
|
+
linkComponent?: T | 'a';
|
|
3138
|
+
/**
|
|
3139
|
+
* The callback to handle the open/close state
|
|
3140
|
+
*/
|
|
3141
|
+
onToggleOpen?: (open: boolean) => void;
|
|
3142
|
+
/**
|
|
3143
|
+
* Fired after a root `menuItems` / `utilityItems` click with the suggested `activeItem` id, or with the
|
|
3144
|
+
* sub-panel `parentId` when opening a layer. Not called for `__back__` or `target="_blank"`. Clicks inside
|
|
3145
|
+
* `subMenus[].content` are not observed here.
|
|
3146
|
+
*/
|
|
3147
|
+
onActiveItemChange?: (activeItem: string) => void;
|
|
3148
|
+
/**
|
|
3149
|
+
* The callback to handle the item click
|
|
3150
|
+
*/
|
|
3151
|
+
onItemClick?: (item: ListMenuItem) => void;
|
|
3152
|
+
};
|
|
3153
|
+
|
|
3154
|
+
/**
|
|
3155
|
+
* @deprecated Use `ListMenuVariant` instead
|
|
3156
|
+
*/
|
|
3157
|
+
export declare type SideNavigationVariant = ListMenuVariant;
|
|
3158
|
+
|
|
3159
|
+
declare type SideVariant = 'Top' | 'Bottom' | 'Left' | 'Right';
|
|
3160
|
+
|
|
3161
|
+
export declare type SimpleResponsiveStyles<Attr extends string> = {
|
|
3162
|
+
[K in GenerateSimpleResponsiveStyleKeys<Attr>]: Record<SpacingKeys, string>;
|
|
3163
|
+
};
|
|
3164
|
+
|
|
3165
|
+
export declare const Skeleton: ForwardRefExoticComponent<SkeletonProps & RefAttributes<HTMLDivElement>>;
|
|
3166
|
+
|
|
3167
|
+
export declare interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3168
|
+
/**
|
|
3169
|
+
* The animation type of the skeleton.
|
|
3170
|
+
* @default 'pulse'
|
|
3171
|
+
*/
|
|
3172
|
+
animation?: 'pulse' | 'wave' | false;
|
|
3173
|
+
/**
|
|
3174
|
+
* The width of the skeleton.
|
|
3175
|
+
*/
|
|
3176
|
+
width?: number | string;
|
|
3177
|
+
/**
|
|
3178
|
+
* The height of the skeleton.
|
|
3179
|
+
*/
|
|
3180
|
+
height?: number | string;
|
|
3181
|
+
/**
|
|
3182
|
+
* The border radius of the skeleton.
|
|
3183
|
+
* @default 'xs'
|
|
3184
|
+
*/
|
|
3185
|
+
borderRadius?: 'xs' | 'sm' | 'md' | 'lg' | 'full';
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* Snackbar component for displaying snackbar notifications
|
|
3190
|
+
* Must be used within a SnackbarProvider
|
|
3191
|
+
*
|
|
3192
|
+
* @example
|
|
3193
|
+
* ```tsx
|
|
3194
|
+
* import { SnackbarProvider, Snackbar, useSnackbar } from '@components';
|
|
3195
|
+
*
|
|
3196
|
+
* function App() {
|
|
3197
|
+
* return (
|
|
3198
|
+
* <SnackbarProvider>
|
|
3199
|
+
* <Snackbar />
|
|
3200
|
+
* <YourApp />
|
|
3201
|
+
* </SnackbarProvider>
|
|
3202
|
+
* );
|
|
3203
|
+
* }
|
|
3204
|
+
*
|
|
3205
|
+
* function YourComponent() {
|
|
3206
|
+
* const { snackbar, success, error } = useSnackbar();
|
|
3207
|
+
*
|
|
3208
|
+
* return (
|
|
3209
|
+
* <button onClick={() => success('Operation completed!')}>
|
|
3210
|
+
* Click me
|
|
3211
|
+
* </button>
|
|
3212
|
+
* );
|
|
3213
|
+
* }
|
|
3214
|
+
* ```
|
|
3215
|
+
*/
|
|
3216
|
+
export declare const Snackbar: default_2.FC<SnackbarProps>;
|
|
3217
|
+
|
|
3218
|
+
export declare interface SnackbarItem {
|
|
3219
|
+
/**
|
|
3220
|
+
* Unique identifier for the snackbar
|
|
3221
|
+
*/
|
|
3222
|
+
id: string;
|
|
3223
|
+
/**
|
|
3224
|
+
* Content of the snackbar
|
|
3225
|
+
*/
|
|
3226
|
+
children: string;
|
|
3227
|
+
/**
|
|
3228
|
+
* Timestamp when the snackbar was created
|
|
3229
|
+
*/
|
|
3230
|
+
createdAt: number;
|
|
3231
|
+
/**
|
|
3232
|
+
* Semantic variant of the snackbar
|
|
3233
|
+
*/
|
|
3234
|
+
variant: SnackbarVariant;
|
|
3235
|
+
/**
|
|
3236
|
+
* Placement of the snackbar on screen
|
|
3237
|
+
*/
|
|
3238
|
+
placement: SnackbarPlacement;
|
|
3239
|
+
/**
|
|
3240
|
+
* Whether to show the close button
|
|
3241
|
+
*/
|
|
3242
|
+
showCloseButton: boolean;
|
|
3243
|
+
/**
|
|
3244
|
+
* Icon to display in the snackbar
|
|
3245
|
+
*/
|
|
3246
|
+
icon?: CommonIconNames | Omit<IconProps, 'size' | 'color'>;
|
|
3247
|
+
/**
|
|
3248
|
+
* Label for the action button
|
|
3249
|
+
*/
|
|
3250
|
+
actionLabel?: string;
|
|
3251
|
+
/**
|
|
3252
|
+
* Action to perform when the action button is clicked
|
|
3253
|
+
*/
|
|
3254
|
+
onAction?: (id: string) => void;
|
|
3255
|
+
/**
|
|
3256
|
+
* Callback when close button is clicked
|
|
3257
|
+
*/
|
|
3258
|
+
onClose?: (id: string) => void;
|
|
3259
|
+
/**
|
|
3260
|
+
* Duration in milliseconds before auto-dismissing (0 = no auto-dismiss)
|
|
3261
|
+
*/
|
|
3262
|
+
duration: number;
|
|
3263
|
+
/**
|
|
3264
|
+
* Whether the snackbar is currently being removed
|
|
3265
|
+
*/
|
|
3266
|
+
isRemoving?: boolean;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
export declare interface SnackbarOptions {
|
|
3270
|
+
/**
|
|
3271
|
+
* The semantic variant of the Snackbar
|
|
3272
|
+
*/
|
|
3273
|
+
variant?: SnackbarVariant;
|
|
3274
|
+
/**
|
|
3275
|
+
* Placement of the snackbar on screen
|
|
3276
|
+
* @default 'top-right'
|
|
3277
|
+
*/
|
|
3278
|
+
placement?: SnackbarPlacement;
|
|
3279
|
+
/**
|
|
3280
|
+
* Whether to show the close button
|
|
3281
|
+
*/
|
|
3282
|
+
showCloseButton?: boolean;
|
|
3283
|
+
/**
|
|
3284
|
+
* Icon to display in the Snackbar
|
|
3285
|
+
*/
|
|
3286
|
+
icon?: CommonIconNames | Omit<IconProps, 'size' | 'color'>;
|
|
3287
|
+
/**
|
|
3288
|
+
* Label for the action button
|
|
3289
|
+
*/
|
|
3290
|
+
actionLabel?: string;
|
|
3291
|
+
/**
|
|
3292
|
+
* Action to perform when the action button is clicked
|
|
3293
|
+
*/
|
|
3294
|
+
onAction?: (id: string) => void;
|
|
3295
|
+
/**
|
|
3296
|
+
* Callback when close button is clicked
|
|
3297
|
+
*/
|
|
3298
|
+
onClose?: (id: string) => void;
|
|
3299
|
+
/**
|
|
3300
|
+
* Duration in milliseconds before auto-dismissing (0 = no auto-dismiss)
|
|
3301
|
+
*/
|
|
3302
|
+
duration?: number;
|
|
3303
|
+
/**
|
|
3304
|
+
* Custom ID for the snackbar
|
|
3305
|
+
*/
|
|
3306
|
+
id?: string;
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
export declare type SnackbarPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3310
|
+
|
|
3311
|
+
export declare type SnackbarProps = Record<string, never>;
|
|
3312
|
+
|
|
3313
|
+
export declare const SnackbarProvider: default_2.FC<SnackbarProviderProps>;
|
|
3314
|
+
|
|
3315
|
+
declare interface SnackbarProviderProps {
|
|
3316
|
+
children: default_2.ReactNode;
|
|
3317
|
+
maxSnackbars?: number;
|
|
3318
|
+
defaultDuration?: number;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
export declare type SnackbarVariant = 'default' | 'positive' | 'warning' | 'error' | 'subtle';
|
|
3322
|
+
|
|
3323
|
+
export declare type SpacingKeys = 'none' | 'xs2' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xl2' | 'xl3' | 'xl4' | 'xl5' | 'xl6' | 'xl7';
|
|
3324
|
+
|
|
3325
|
+
export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLSpanElement>>;
|
|
3326
|
+
|
|
3327
|
+
export declare interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3328
|
+
/**
|
|
3329
|
+
* The children of the button.
|
|
3330
|
+
*/
|
|
3331
|
+
children: ReactNode;
|
|
3332
|
+
/**
|
|
3333
|
+
* Define gap between elements
|
|
3334
|
+
*/
|
|
3335
|
+
gap?: ResponsiveType<SpacingKeys>;
|
|
3336
|
+
/**
|
|
3337
|
+
* Define the direction of the stack
|
|
3338
|
+
*/
|
|
3339
|
+
direction?: ResponsiveType<FlexDirection>;
|
|
3340
|
+
/**
|
|
3341
|
+
* Define how to justify the content
|
|
3342
|
+
* All CSS properties from `justify-content` are accepted
|
|
3343
|
+
*/
|
|
3344
|
+
justify?: ResponsiveType<JustifyContent>;
|
|
3345
|
+
/**
|
|
3346
|
+
* Define how to align the items
|
|
3347
|
+
* All CSS properties from `align-items` are accepted
|
|
3348
|
+
* @default 'baseline'
|
|
3349
|
+
*/
|
|
3350
|
+
align?: ResponsiveType<AlignItems>;
|
|
3351
|
+
/**
|
|
3352
|
+
* Define how to align the items
|
|
3353
|
+
* All CSS properties from `flex-wrap` are accepted
|
|
3354
|
+
*/
|
|
3355
|
+
wrap?: ResponsiveType<FlexWrap>;
|
|
3356
|
+
/**
|
|
3357
|
+
* Define padding to the stack wrapper.
|
|
3358
|
+
*/
|
|
3359
|
+
padding?: ResponsiveType<Padding>;
|
|
3360
|
+
/**
|
|
3361
|
+
* Define margin to the stack wrapper.
|
|
3362
|
+
*/
|
|
3363
|
+
margin?: ResponsiveType<Margin>;
|
|
3364
|
+
/**
|
|
3365
|
+
* @deprecated Use the `height`, `width`, `minHeight`, `maxHeight`, `minWidth`, `maxWidth` props instead.
|
|
3366
|
+
*/
|
|
3367
|
+
className?: string;
|
|
3368
|
+
/**
|
|
3369
|
+
* The height of the stack.
|
|
3370
|
+
* @default 'auto'
|
|
3371
|
+
*/
|
|
3372
|
+
height?: ResponsiveType<number | string>;
|
|
3373
|
+
/**
|
|
3374
|
+
* The width of the stack.
|
|
3375
|
+
* @default '100%'
|
|
3376
|
+
*/
|
|
3377
|
+
width?: ResponsiveType<number | string>;
|
|
3378
|
+
/**
|
|
3379
|
+
* The min height of the stack.
|
|
3380
|
+
* @default 'auto'
|
|
3381
|
+
*/
|
|
3382
|
+
minHeight?: ResponsiveType<number | string>;
|
|
3383
|
+
/**
|
|
3384
|
+
* The max height of the stack.
|
|
3385
|
+
* @default 'auto'
|
|
3386
|
+
*/
|
|
3387
|
+
maxHeight?: ResponsiveType<number | string>;
|
|
3388
|
+
/**
|
|
3389
|
+
* The min width of the stack.
|
|
3390
|
+
* @default 'auto'
|
|
3391
|
+
*/
|
|
3392
|
+
minWidth?: ResponsiveType<number | string>;
|
|
3393
|
+
/**
|
|
3394
|
+
* The max width of the stack.
|
|
3395
|
+
* @default 'auto'
|
|
3396
|
+
*/
|
|
3397
|
+
maxWidth?: ResponsiveType<number | string>;
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
/**
|
|
3401
|
+
* Slide-in panel for a root `menuItems` entry. The shell renders only the back row and spacer; pass any
|
|
3402
|
+
* content (e.g. one or more `ListMenu`s from a micro-frontend) as `content`. Selection and `activeItem`
|
|
3403
|
+
* for that UI live outside `SideNavigation`.
|
|
3404
|
+
*/
|
|
3405
|
+
export declare type SubMenuLayer = {
|
|
3406
|
+
/**
|
|
3407
|
+
* Must match the `id` of the root `menuItems` entry that opens this panel.
|
|
3408
|
+
*/
|
|
3409
|
+
parentId: string;
|
|
3410
|
+
/**
|
|
3411
|
+
* Custom body below the back row (often `ListMenu` or composed layout from a remote module).
|
|
3412
|
+
*/
|
|
3413
|
+
content: ReactNode;
|
|
3414
|
+
/**
|
|
3415
|
+
* Label for the control that returns to the main menu.
|
|
3416
|
+
* @default 'Hauptmenü'
|
|
3417
|
+
*/
|
|
3418
|
+
backLabel?: string;
|
|
3419
|
+
};
|
|
3420
|
+
|
|
3421
|
+
export declare const Switch: default_2.ForwardRefExoticComponent<SwitchProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
3422
|
+
|
|
3423
|
+
export declare interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3424
|
+
/**
|
|
3425
|
+
* Whether the switch is checked.
|
|
3426
|
+
*/
|
|
3427
|
+
checked?: boolean;
|
|
3428
|
+
/**
|
|
3429
|
+
* Whether the switch is disabled.
|
|
3430
|
+
*/
|
|
3431
|
+
disabled?: boolean;
|
|
3432
|
+
/**
|
|
3433
|
+
* Handle change events.
|
|
3434
|
+
*/
|
|
3435
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
3436
|
+
/**
|
|
3437
|
+
* Whether to show icons on the switch.
|
|
3438
|
+
*/
|
|
3439
|
+
withIcons?: boolean | IconStates;
|
|
3440
|
+
/**
|
|
3441
|
+
* The labels for the switch.
|
|
3442
|
+
*/
|
|
3443
|
+
label?: string | LabelStates;
|
|
3444
|
+
/**
|
|
3445
|
+
* The placement of the label.
|
|
3446
|
+
* @default 'left'
|
|
3447
|
+
*/
|
|
3448
|
+
labelPlacement?: 'left' | 'right';
|
|
3449
|
+
/**
|
|
3450
|
+
* How the switch and label are aligned horizontally.
|
|
3451
|
+
*/
|
|
3452
|
+
justify?: JustifyContent;
|
|
3453
|
+
/**
|
|
3454
|
+
* The value of the switch.
|
|
3455
|
+
*/
|
|
3456
|
+
value?: string;
|
|
3457
|
+
/**
|
|
3458
|
+
* The name of the switch.
|
|
3459
|
+
*/
|
|
3460
|
+
name?: string;
|
|
3461
|
+
/**
|
|
3462
|
+
* The id of the switch.
|
|
3463
|
+
* @default auto-generated
|
|
3464
|
+
*/
|
|
3465
|
+
id?: string;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
declare type TabItem<T extends React.ElementType = 'button'> = {
|
|
3469
|
+
label: string;
|
|
3470
|
+
icon?: CommonIconNames;
|
|
3471
|
+
iconPosition?: 'left' | 'top';
|
|
3472
|
+
hideLabel?: boolean;
|
|
3473
|
+
hasActivity?: boolean;
|
|
3474
|
+
id: string;
|
|
3475
|
+
} & Omit<React.ComponentPropsWithoutRef<T>, 'children'>;
|
|
3476
|
+
|
|
3477
|
+
export declare const Table: {
|
|
3478
|
+
<T extends readonly TableColumnProps[]>({ data, columns, title, subtitle, actions, filters, footer, orderBy, onOrderByChange, emptyState, hiddenColumns, loading, expandedRows, headerBackgroundColor, }: TableProps<T>): JSX.Element;
|
|
3479
|
+
displayName: string;
|
|
3480
|
+
};
|
|
3481
|
+
|
|
3482
|
+
export declare type TableColumnDirection = (typeof direction)[keyof typeof direction];
|
|
3483
|
+
|
|
3484
|
+
export declare interface TableColumnProps extends React.HTMLAttributes<HTMLTableColElement> {
|
|
3485
|
+
/**
|
|
3486
|
+
* The children of the Table.
|
|
3487
|
+
*/
|
|
3488
|
+
label: React.ReactNode;
|
|
3489
|
+
/**
|
|
3490
|
+
* The id of the Table column.
|
|
3491
|
+
*/
|
|
3492
|
+
id: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* The alignment of the Table column.
|
|
3495
|
+
*/
|
|
3496
|
+
align?: ColumnAlign;
|
|
3497
|
+
/**
|
|
3498
|
+
* The width of the Table column.
|
|
3499
|
+
*/
|
|
3500
|
+
width?: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* The minimum width of the Table column.
|
|
3503
|
+
*/
|
|
3504
|
+
minWidth?: string;
|
|
3505
|
+
/**
|
|
3506
|
+
* If true, the column is orderable.
|
|
3507
|
+
*/
|
|
3508
|
+
orderable?: boolean;
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
export declare interface TableProps<T extends readonly TableColumnProps[] = readonly TableColumnProps[]> extends React.HTMLAttributes<HTMLTableElement> {
|
|
3512
|
+
/**
|
|
3513
|
+
* The title of the Table.
|
|
3514
|
+
*/
|
|
3515
|
+
title?: string;
|
|
3516
|
+
/**
|
|
3517
|
+
* The subtitle of the Table.
|
|
3518
|
+
*/
|
|
3519
|
+
subtitle?: string;
|
|
3520
|
+
/**
|
|
3521
|
+
* The action of the Table.
|
|
3522
|
+
*/
|
|
3523
|
+
actions?: React.ReactNode;
|
|
3524
|
+
/**
|
|
3525
|
+
* The filters of the Table.
|
|
3526
|
+
*/
|
|
3527
|
+
filters?: React.ReactNode;
|
|
3528
|
+
/**
|
|
3529
|
+
* The data rows of the Table.
|
|
3530
|
+
*/
|
|
3531
|
+
data: TableRowData<T>[];
|
|
3532
|
+
/**
|
|
3533
|
+
* The loading state of the Table.
|
|
3534
|
+
*/
|
|
3535
|
+
loading?: boolean;
|
|
3536
|
+
/**
|
|
3537
|
+
* The columns of the Table.
|
|
3538
|
+
*/
|
|
3539
|
+
columns: T;
|
|
3540
|
+
/**
|
|
3541
|
+
* The hidden columns of the Table.
|
|
3542
|
+
*/
|
|
3543
|
+
hiddenColumns?: ColumnId<T>[];
|
|
3544
|
+
/**
|
|
3545
|
+
* The expanded rows of the Table.
|
|
3546
|
+
*/
|
|
3547
|
+
expandedRows?: string[];
|
|
3548
|
+
/**
|
|
3549
|
+
* The order by of the Table.
|
|
3550
|
+
*/
|
|
3551
|
+
orderBy?: {
|
|
3552
|
+
column: ColumnId<T>;
|
|
3553
|
+
direction: TableColumnDirection;
|
|
3554
|
+
};
|
|
3555
|
+
/**
|
|
3556
|
+
* Callback function to handle order by change.
|
|
3557
|
+
*/
|
|
3558
|
+
onOrderByChange?: ({ columnId, direction, }: {
|
|
3559
|
+
columnId: ColumnId<T>;
|
|
3560
|
+
direction: TableColumnDirection;
|
|
3561
|
+
}) => void;
|
|
3562
|
+
/**
|
|
3563
|
+
* The empty state of the Table.
|
|
3564
|
+
* @default 'Keine Daten gefunden'
|
|
3565
|
+
*/
|
|
3566
|
+
emptyState?: React.ReactNode;
|
|
3567
|
+
/**
|
|
3568
|
+
* The footer of the Table.
|
|
3569
|
+
*/
|
|
3570
|
+
footer?: React.ReactNode;
|
|
3571
|
+
/**
|
|
3572
|
+
* The background color of the table header.
|
|
3573
|
+
* @default false
|
|
3574
|
+
*/
|
|
3575
|
+
headerBackgroundColor?: boolean;
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
export declare type TableRowData<T extends readonly TableColumnProps[]> = {
|
|
3579
|
+
[K in ColumnId<T>]: React.ReactNode;
|
|
3580
|
+
} & {
|
|
3581
|
+
expandableRow?: ExpandableRowConfig;
|
|
3582
|
+
};
|
|
3583
|
+
|
|
3584
|
+
export declare const Tabs: {
|
|
3585
|
+
<T extends React.ElementType = "button">({ items, activeItem, onChange, hideBorder, itemsAlignment, isSticky, panels, linkComponent: LinkComponent, }: TabsProps<T>): JSX.Element;
|
|
3586
|
+
displayName: string;
|
|
3587
|
+
};
|
|
3588
|
+
|
|
3589
|
+
export declare interface TabsProps<T extends React.ElementType = 'button'> {
|
|
3590
|
+
/**
|
|
3591
|
+
* The items to display in the tabs.
|
|
3592
|
+
*/
|
|
3593
|
+
items: TabItem<T>[];
|
|
3594
|
+
/**
|
|
3595
|
+
* Whether the tabs are sticky.
|
|
3596
|
+
*/
|
|
3597
|
+
isSticky?: boolean;
|
|
3598
|
+
/**
|
|
3599
|
+
* The panels to display in the tabs.
|
|
3600
|
+
*/
|
|
3601
|
+
panels?: Panel[];
|
|
3602
|
+
/**
|
|
3603
|
+
* The active item in the tabs.
|
|
3604
|
+
*/
|
|
3605
|
+
activeItem: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* The callback function to handle the change of the active item.
|
|
3608
|
+
*/
|
|
3609
|
+
onChange?: (item: TabItem<T>) => void;
|
|
3610
|
+
/**
|
|
3611
|
+
* Whether to hide the border of the tabs.
|
|
3612
|
+
*/
|
|
3613
|
+
hideBorder?: boolean;
|
|
3614
|
+
/**
|
|
3615
|
+
* The link component to use for the tabs.
|
|
3616
|
+
*/
|
|
3617
|
+
linkComponent?: T | 'button' | 'a';
|
|
3618
|
+
/**
|
|
3619
|
+
* The alignment of the tabs.
|
|
3620
|
+
*/
|
|
3621
|
+
itemsAlignment?: 'left' | 'center' | 'right' | 'between' | 'around' | 'evenly';
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>>;
|
|
3625
|
+
|
|
3626
|
+
export declare interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3627
|
+
/**
|
|
3628
|
+
* The label of the tag.
|
|
3629
|
+
*/
|
|
3630
|
+
label: string;
|
|
3631
|
+
/**
|
|
3632
|
+
* The variant of the tag
|
|
3633
|
+
*/
|
|
3634
|
+
variant?: 'solid' | 'outlined' | 'ghost';
|
|
3635
|
+
/**
|
|
3636
|
+
* The color of the tag
|
|
3637
|
+
*/
|
|
3638
|
+
color?: 'green' | 'yellow' | 'pink' | 'steel-blue' | 'error' | 'primary' | 'neutral';
|
|
3639
|
+
/**
|
|
3640
|
+
* The tone of the tag `color` <br />
|
|
3641
|
+
* Only works with `variant` set to `solid`
|
|
3642
|
+
*/
|
|
3643
|
+
tone?: 'dark' | 'light';
|
|
3644
|
+
/**
|
|
3645
|
+
* The size of the tag
|
|
3646
|
+
*/
|
|
3647
|
+
size?: 'large' | 'medium' | 'small';
|
|
3648
|
+
/**
|
|
3649
|
+
* The icon of the tag
|
|
3650
|
+
*/
|
|
3651
|
+
icon?: CommonIconNames;
|
|
3652
|
+
}
|
|
3653
|
+
|
|
3654
|
+
export declare const Textarea: ForwardRefExoticComponent<TextareaProps & RefAttributes<HTMLTextAreaElement>>;
|
|
3655
|
+
|
|
3656
|
+
export declare interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'className' | 'style'> {
|
|
3657
|
+
/**
|
|
3658
|
+
* If true, the textarea will display an error state.
|
|
3659
|
+
*/
|
|
3660
|
+
error?: boolean;
|
|
3661
|
+
/**
|
|
3662
|
+
* The value of the textarea.
|
|
3663
|
+
*/
|
|
3664
|
+
value?: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* The error message to display below the textarea.
|
|
3667
|
+
*/
|
|
3668
|
+
errorMessage?: string;
|
|
3669
|
+
/**
|
|
3670
|
+
* The maximum length of the textarea.
|
|
3671
|
+
*/
|
|
3672
|
+
maxLength?: number;
|
|
3673
|
+
/**
|
|
3674
|
+
* The border radius of the textarea.
|
|
3675
|
+
* @default 'sm'
|
|
3676
|
+
*/
|
|
3677
|
+
borderRadius?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3678
|
+
/**
|
|
3679
|
+
* Content rendered above the textarea input, separated by a subtle border.
|
|
3680
|
+
* Use to display contextual items such as attached files (e.g. `<Chip type="input" />`).
|
|
3681
|
+
*/
|
|
3682
|
+
header?: React.ReactNode;
|
|
3683
|
+
/**
|
|
3684
|
+
* The actions to display below the textarea.
|
|
3685
|
+
*/
|
|
3686
|
+
actions?: React.ReactNode;
|
|
3687
|
+
}
|
|
3688
|
+
|
|
3689
|
+
export declare const TextField: ForwardRefExoticComponent<TextFieldProps & RefAttributes<HTMLInputElement>>;
|
|
3690
|
+
|
|
3691
|
+
export declare interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3692
|
+
/**
|
|
3693
|
+
* The label that will be displayed above the input. <br />
|
|
3694
|
+
* It is required for accessibility purposes.
|
|
3695
|
+
*/
|
|
3696
|
+
label: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* When true, the input applies the error style. <br />
|
|
3699
|
+
* Will also display the error message is any is provided.
|
|
3700
|
+
*/
|
|
3701
|
+
error?: boolean;
|
|
3702
|
+
/**
|
|
3703
|
+
* The error message that will be displayed below the input. <br />
|
|
3704
|
+
* It is only displayed when the error prop is true.
|
|
3705
|
+
*/
|
|
3706
|
+
errorMessage?: string;
|
|
3707
|
+
/**
|
|
3708
|
+
* The value of the input. <br />
|
|
3709
|
+
*/
|
|
3710
|
+
value?: string;
|
|
3711
|
+
/**
|
|
3712
|
+
* The placeholder that will be displayed inside the input. <br />
|
|
3713
|
+
* If the label is visible, it will be shown in its active state.
|
|
3714
|
+
*/
|
|
3715
|
+
placeholder?: string;
|
|
3716
|
+
/**
|
|
3717
|
+
* The density of the input will control the size of the input.
|
|
3718
|
+
*/
|
|
3719
|
+
density?: ResponsiveType<Density>;
|
|
3720
|
+
/**
|
|
3721
|
+
* If true the label will be hidden. <br />
|
|
3722
|
+
* This will apply only visually, the label will still be present in the DOM for accessibility purposes.
|
|
3723
|
+
*/
|
|
3724
|
+
hideLabel?: boolean;
|
|
3725
|
+
/**
|
|
3726
|
+
* Make the input disabled.
|
|
3727
|
+
*/
|
|
3728
|
+
disabled?: boolean;
|
|
3729
|
+
/**
|
|
3730
|
+
* Make the input focused in a controlled way.
|
|
3731
|
+
*/
|
|
3732
|
+
isFocused?: boolean;
|
|
3733
|
+
/**
|
|
3734
|
+
* Make the input clearable. <br />
|
|
3735
|
+
* When true, a clear button will be displayed on the right side of the input. <br />
|
|
3736
|
+
* When there's a icon placed on the right side of the input, the clear button will be hidden. <br />
|
|
3737
|
+
* Important: only works with controlled inputs.
|
|
3738
|
+
*/
|
|
3739
|
+
clearable?: boolean;
|
|
3740
|
+
/**
|
|
3741
|
+
* The icon that will be displayed on the left side of the input.
|
|
3742
|
+
*/
|
|
3743
|
+
icon?: CommonIconNames;
|
|
3744
|
+
/**
|
|
3745
|
+
* The action that will be triggered when the icon is clicked.
|
|
3746
|
+
*/
|
|
3747
|
+
onIconClick?: () => void;
|
|
3748
|
+
/**
|
|
3749
|
+
* This prop controls the position of the icon.
|
|
3750
|
+
*/
|
|
3751
|
+
iconPosition?: 'left' | 'right';
|
|
3752
|
+
/**
|
|
3753
|
+
* Callback function that will be called when the input changes.
|
|
3754
|
+
*/
|
|
3755
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
3756
|
+
}
|
|
3757
|
+
|
|
3758
|
+
export declare const Tooltip: ({ children, content, placement, disabled, }: TooltipProps) => JSX.Element;
|
|
3759
|
+
|
|
3760
|
+
export declare interface TooltipProps {
|
|
3761
|
+
/**
|
|
3762
|
+
* The trigger element that the tooltip is attached to
|
|
3763
|
+
*/
|
|
3764
|
+
children: React.ReactNode;
|
|
3765
|
+
/**
|
|
3766
|
+
* The content to be displayed in the tooltip
|
|
3767
|
+
*/
|
|
3768
|
+
content: React.ReactNode;
|
|
3769
|
+
/**
|
|
3770
|
+
* The position of the tooltip relative to its trigger
|
|
3771
|
+
*/
|
|
3772
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
3773
|
+
/**
|
|
3774
|
+
* Whether the tooltip should be disabled
|
|
3775
|
+
*/
|
|
3776
|
+
disabled?: boolean;
|
|
3777
|
+
/**
|
|
3778
|
+
* Whether the tooltip should be open
|
|
3779
|
+
*/
|
|
3780
|
+
isOpen?: boolean;
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
export declare const TopBar: ({ leftBottomContent, subtitle, leftTopContent, rightTopContent, rightBottomContent, density, }: TopBarProps) => JSX.Element;
|
|
3784
|
+
|
|
3785
|
+
export declare interface TopBarProps {
|
|
3786
|
+
/**
|
|
3787
|
+
* The content to be displayed in the left top section.
|
|
3788
|
+
*/
|
|
3789
|
+
leftTopContent?: ReactNode;
|
|
3790
|
+
/**
|
|
3791
|
+
* The content to be displayed in the right top section.
|
|
3792
|
+
*/
|
|
3793
|
+
rightTopContent?: ReactNode;
|
|
3794
|
+
/**
|
|
3795
|
+
* The content to be displayed in the left bottom section.
|
|
3796
|
+
*/
|
|
3797
|
+
leftBottomContent?: string | ReactNode;
|
|
3798
|
+
/**
|
|
3799
|
+
* The content to be displayed in the right bottom section.
|
|
3800
|
+
*/
|
|
3801
|
+
rightBottomContent?: ReactNode;
|
|
3802
|
+
/**
|
|
3803
|
+
* The subtitle to be displayed bellow the bottom section.
|
|
3804
|
+
*/
|
|
3805
|
+
subtitle?: string;
|
|
3806
|
+
/**
|
|
3807
|
+
* The density of the top bar. It can be used to adjust the spacing and font sizes.
|
|
3808
|
+
*/
|
|
3809
|
+
density?: 'default' | '-2' | '-4';
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3812
|
+
export declare const Typography: ({ children, variant, size, as: AsComponent, color, textAlign, truncate, textTransform, hyphenate, wrap, ...props }: TypographyProps) => JSX.Element;
|
|
3813
|
+
|
|
3814
|
+
declare type TypographyElements = 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3815
|
+
|
|
3816
|
+
export declare type TypographyProps<T extends TypographyElements = 'p'> = Omit<React.ComponentPropsWithoutRef<T>, 'as' | 'children'> & {
|
|
3817
|
+
/**
|
|
3818
|
+
* The children of the typography.
|
|
3819
|
+
*/
|
|
3820
|
+
children: React.ReactNode;
|
|
3821
|
+
/**
|
|
3822
|
+
* The variant is used
|
|
3823
|
+
*/
|
|
3824
|
+
variant?: 'display' | 'body' | 'title' | 'headline' | 'label';
|
|
3825
|
+
/**
|
|
3826
|
+
* The size of the typography.
|
|
3827
|
+
*/
|
|
3828
|
+
size?: 'small' | 'medium' | 'large';
|
|
3829
|
+
/**
|
|
3830
|
+
* The html element of the typography. The TS type of the chosen element will be extended so you the component will accept all the props of the chosen element.
|
|
3831
|
+
*/
|
|
3832
|
+
as?: 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3833
|
+
/**
|
|
3834
|
+
* The text alignment of the typography.
|
|
3835
|
+
*/
|
|
3836
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
3837
|
+
/**
|
|
3838
|
+
* CSS text-transform property
|
|
3839
|
+
*/
|
|
3840
|
+
textTransform?: 'uppercase' | 'lowercase' | 'capitalize';
|
|
3841
|
+
/**
|
|
3842
|
+
* The color of the typography.
|
|
3843
|
+
*/
|
|
3844
|
+
color?: ForegroundColors;
|
|
3845
|
+
/**
|
|
3846
|
+
* If true, the text will be hyphenated based on the `lang` attribute of the parent element.
|
|
3847
|
+
* @default true
|
|
3848
|
+
*/
|
|
3849
|
+
hyphenate?: boolean;
|
|
3850
|
+
/**
|
|
3851
|
+
* Sets a specific amount of lines to show based on it's container.
|
|
3852
|
+
* The text that doesn't fit the container will be hidden and replaced by ellipsis
|
|
3853
|
+
*/
|
|
3854
|
+
truncate?: number;
|
|
3855
|
+
/**
|
|
3856
|
+
* If true, the text will be wrapped.
|
|
3857
|
+
*/
|
|
3858
|
+
wrap?: boolean;
|
|
3859
|
+
};
|
|
3860
|
+
|
|
3861
|
+
declare type Union = {
|
|
3862
|
+
/**
|
|
3863
|
+
* Whether the select is multiple.
|
|
3864
|
+
*/
|
|
3865
|
+
multiple?: true;
|
|
3866
|
+
/**
|
|
3867
|
+
* The value of the select.
|
|
3868
|
+
*/
|
|
3869
|
+
value?: string[];
|
|
3870
|
+
} | {
|
|
3871
|
+
/**
|
|
3872
|
+
* Whether the select is multiple.
|
|
3873
|
+
*/
|
|
3874
|
+
multiple?: false;
|
|
3875
|
+
/**
|
|
3876
|
+
* The value of the select.
|
|
3877
|
+
*/
|
|
3878
|
+
value?: string;
|
|
3879
|
+
};
|
|
3880
|
+
|
|
3881
|
+
declare type UnionAs = ({
|
|
3882
|
+
/**
|
|
3883
|
+
* The component to render the button as.
|
|
3884
|
+
* @default button
|
|
3885
|
+
*/
|
|
3886
|
+
as?: 'a';
|
|
3887
|
+
} & Omit<React.ComponentProps<'a'>, 'className'>) | ({
|
|
3888
|
+
as?: 'button';
|
|
3889
|
+
} & Omit<React.ComponentProps<'button'>, 'className'>) | ({
|
|
3890
|
+
as?: 'span';
|
|
3891
|
+
} & Omit<React.ComponentProps<'span'>, 'className'>);
|
|
3892
|
+
|
|
3893
|
+
declare type UnionAs_2 = ({
|
|
3894
|
+
/**
|
|
3895
|
+
* Render the card root as a specific HTML element.
|
|
3896
|
+
* @default 'div'
|
|
3897
|
+
*/
|
|
3898
|
+
as?: 'a';
|
|
3899
|
+
} & Omit<React.ComponentProps<'a'>, 'className'>) | ({
|
|
3900
|
+
as?: 'div';
|
|
3901
|
+
} & Omit<React.ComponentProps<'div'>, 'className'>);
|
|
3902
|
+
|
|
3903
|
+
declare type UnionAs_3 = ({
|
|
3904
|
+
/**
|
|
3905
|
+
* The component to render the button as.
|
|
3906
|
+
* @default button
|
|
3907
|
+
*/
|
|
3908
|
+
as?: 'a';
|
|
3909
|
+
} & Omit<React.ComponentProps<'a'>, 'className' | 'ref' | 'role' | 'tabIndex' | 'onClick' | 'disabled'>) | ({
|
|
3910
|
+
/**
|
|
3911
|
+
* The component to render the button as.
|
|
3912
|
+
* @default button
|
|
3913
|
+
*/
|
|
3914
|
+
as?: 'button';
|
|
3915
|
+
} & Omit<React.ComponentProps<'button'>, 'className' | 'type' | 'onClick' | 'disabled' | 'ref' | 'role' | 'tabIndex'>);
|
|
3916
|
+
|
|
3917
|
+
declare type UnionPlacement = {
|
|
3918
|
+
/**
|
|
3919
|
+
* The placement of the sheet.
|
|
3920
|
+
* - 'bottom': Slides up from bottom, centered horizontally
|
|
3921
|
+
* - 'right': Slides in from right, full screen on mobile, max-width 570px on desktop
|
|
3922
|
+
* @default 'bottom'
|
|
3923
|
+
*/
|
|
3924
|
+
placement?: 'bottom';
|
|
3925
|
+
/**
|
|
3926
|
+
* Whether to make the sheet resizable. <br />
|
|
3927
|
+
* only available for right placement.
|
|
3928
|
+
* @default never
|
|
3929
|
+
*/
|
|
3930
|
+
resizable?: never;
|
|
3931
|
+
/**
|
|
3932
|
+
* Custom width for the sheet in pixels. <br />
|
|
3933
|
+
* only available for right placement.
|
|
3934
|
+
* @default never
|
|
3935
|
+
*/
|
|
3936
|
+
width?: never;
|
|
3937
|
+
/**
|
|
3938
|
+
* Minimum width for the sheet in pixels. <br />
|
|
3939
|
+
* only available for right placement.
|
|
3940
|
+
* @default never
|
|
3941
|
+
*/
|
|
3942
|
+
minWidth?: never;
|
|
3943
|
+
/**
|
|
3944
|
+
* Maximum width for the sheet in pixels. <br />
|
|
3945
|
+
* only available for right placement.
|
|
3946
|
+
* @default never
|
|
3947
|
+
*/
|
|
3948
|
+
maxWidth?: never;
|
|
3949
|
+
/**
|
|
3950
|
+
* Callback function called when the sheet resize finishes. <br />
|
|
3951
|
+
* only available for right placement.
|
|
3952
|
+
* @default never
|
|
3953
|
+
*/
|
|
3954
|
+
onResizeEnd?: never;
|
|
3955
|
+
} | {
|
|
3956
|
+
/**
|
|
3957
|
+
* The placement of the sheet.
|
|
3958
|
+
* - 'bottom': Slides up from bottom, centered horizontally
|
|
3959
|
+
* - 'right': Slides in from right, full screen on mobile, max-width 570px on desktop
|
|
3960
|
+
* @default 'bottom'
|
|
3961
|
+
*/
|
|
3962
|
+
placement?: 'right';
|
|
3963
|
+
/**
|
|
3964
|
+
* Whether to make the sheet resizable. <br />
|
|
3965
|
+
* Only available for right placement on desktop (768px/mobile breakpoint and above). <br />
|
|
3966
|
+
* On mobile, the sheet always takes 100% width and is not resizable.
|
|
3967
|
+
* @default false
|
|
3968
|
+
*/
|
|
3969
|
+
resizable?: boolean;
|
|
3970
|
+
/**
|
|
3971
|
+
* Custom width for the sheet. <br />
|
|
3972
|
+
* Accepts a number (pixels) or string (e.g., "50%", "30rem"). <br />
|
|
3973
|
+
* Will not go below the minimum width (default 570px or custom minWidth). <br />
|
|
3974
|
+
* Only available for right placement on desktop (768px/mobile breakpoint and above). <br />
|
|
3975
|
+
* On mobile, the sheet always takes 100% width.
|
|
3976
|
+
* @default undefined
|
|
3977
|
+
*/
|
|
3978
|
+
width?: number | string;
|
|
3979
|
+
/**
|
|
3980
|
+
* Minimum width for the sheet. <br />
|
|
3981
|
+
* Accepts a number (pixels) or string (e.g., "50%", "30rem"). <br />
|
|
3982
|
+
* Note: The absolute minimum of 570px is always enforced, regardless of this setting. <br />
|
|
3983
|
+
* Only available for right placement on desktop (768px/mobile breakpoint and above).
|
|
3984
|
+
* @default 570
|
|
3985
|
+
*/
|
|
3986
|
+
minWidth?: number | string;
|
|
3987
|
+
/**
|
|
3988
|
+
* Maximum width for the sheet. <br />
|
|
3989
|
+
* Accepts a number (pixels) or string (e.g., "80%", "50rem"). <br />
|
|
3990
|
+
* Only available for right placement on desktop (768px/mobile breakpoint and above).
|
|
3991
|
+
* @default undefined
|
|
3992
|
+
*/
|
|
3993
|
+
maxWidth?: number | string;
|
|
3994
|
+
/**
|
|
3995
|
+
* Callback function called when the sheet resize finishes. <br />
|
|
3996
|
+
* Provides the new width in pixels. <br />
|
|
3997
|
+
* Only available for right placement on desktop (768px/mobile breakpoint and above).
|
|
3998
|
+
* @param width - The new width of the sheet in pixels
|
|
3999
|
+
* @default undefined
|
|
4000
|
+
*/
|
|
4001
|
+
onResizeEnd?: (width: number) => void;
|
|
4002
|
+
};
|
|
4003
|
+
|
|
4004
|
+
export declare const Uploader: ForwardRefExoticComponent<UploaderProps & RefAttributes<UploaderRef>>;
|
|
4005
|
+
|
|
4006
|
+
/**
|
|
4007
|
+
* Context value provided by the Uploader component.
|
|
4008
|
+
* Contains all state and methods needed by child components.
|
|
4009
|
+
*/
|
|
4010
|
+
export declare interface UploaderContextValue {
|
|
4011
|
+
/**
|
|
4012
|
+
* Current list of files in the uploader.
|
|
4013
|
+
*/
|
|
4014
|
+
files: FileItem[];
|
|
4015
|
+
/**
|
|
4016
|
+
* Whether files are currently being processed.
|
|
4017
|
+
*/
|
|
4018
|
+
isProcessing: boolean;
|
|
4019
|
+
/**
|
|
4020
|
+
* Current component-level error, if any.
|
|
4021
|
+
*/
|
|
4022
|
+
componentError: {
|
|
4023
|
+
code: COMPONENT_ERROR;
|
|
4024
|
+
message: string;
|
|
4025
|
+
} | null;
|
|
4026
|
+
/**
|
|
4027
|
+
* List of files that were rejected during validation.
|
|
4028
|
+
*/
|
|
4029
|
+
rejectedFiles: RejectedFile[];
|
|
4030
|
+
/**
|
|
4031
|
+
* Whether files are being dragged over the drop zone.
|
|
4032
|
+
*/
|
|
4033
|
+
isDragging: boolean;
|
|
4034
|
+
/**
|
|
4035
|
+
* Current screen reader announcement text.
|
|
4036
|
+
*/
|
|
4037
|
+
announcement: string;
|
|
4038
|
+
/**
|
|
4039
|
+
* Whether the uploader is disabled.
|
|
4040
|
+
*/
|
|
4041
|
+
disabled?: boolean;
|
|
4042
|
+
/**
|
|
4043
|
+
* Whether files can be deleted from the list.
|
|
4044
|
+
*/
|
|
4045
|
+
canDeleteFile?: boolean;
|
|
4046
|
+
/**
|
|
4047
|
+
* Accepted file types string.
|
|
4048
|
+
*/
|
|
4049
|
+
accept?: string;
|
|
4050
|
+
/**
|
|
4051
|
+
* Whether multiple files can be selected.
|
|
4052
|
+
*/
|
|
4053
|
+
multiple?: boolean;
|
|
4054
|
+
/**
|
|
4055
|
+
* Localized label strings.
|
|
4056
|
+
*/
|
|
4057
|
+
labels: typeof DEFAULT_LABELS;
|
|
4058
|
+
/**
|
|
4059
|
+
* HTML name attribute for the input.
|
|
4060
|
+
*/
|
|
4061
|
+
name?: string;
|
|
4062
|
+
/**
|
|
4063
|
+
* Whether the input is required.
|
|
4064
|
+
*/
|
|
4065
|
+
required?: boolean;
|
|
4066
|
+
/**
|
|
4067
|
+
* HTML id attribute for the input.
|
|
4068
|
+
*/
|
|
4069
|
+
id?: string;
|
|
4070
|
+
/**
|
|
4071
|
+
* Form ID the input belongs to.
|
|
4072
|
+
*/
|
|
4073
|
+
form?: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* ID of element labelling the uploader.
|
|
4076
|
+
*/
|
|
4077
|
+
ariaLabelledby?: string;
|
|
4078
|
+
/**
|
|
4079
|
+
* ID of element describing the uploader.
|
|
4080
|
+
*/
|
|
4081
|
+
ariaDescribedby?: string;
|
|
4082
|
+
/**
|
|
4083
|
+
* ID of the error message element.
|
|
4084
|
+
*/
|
|
4085
|
+
errorMessageId?: string;
|
|
4086
|
+
/**
|
|
4087
|
+
* Adds files to the uploader.
|
|
4088
|
+
*/
|
|
4089
|
+
addFiles: (files: FileItem[]) => void;
|
|
4090
|
+
/**
|
|
4091
|
+
* Removes a file by ID.
|
|
4092
|
+
*/
|
|
4093
|
+
removeFile: (id: string) => void;
|
|
4094
|
+
/**
|
|
4095
|
+
* Replaces all files with new files.
|
|
4096
|
+
*/
|
|
4097
|
+
replaceFiles: (files: FileItem[]) => void;
|
|
4098
|
+
/**
|
|
4099
|
+
* Removes all files.
|
|
4100
|
+
*/
|
|
4101
|
+
clearAll: () => void;
|
|
4102
|
+
/**
|
|
4103
|
+
* Updates the state of a specific file.
|
|
4104
|
+
*/
|
|
4105
|
+
updateFileState: (id: string, state: Partial<FileState>) => void;
|
|
4106
|
+
/**
|
|
4107
|
+
* Sets the processing state.
|
|
4108
|
+
*/
|
|
4109
|
+
setProcessing: (isProcessing: boolean, processingId?: string | null) => void;
|
|
4110
|
+
/**
|
|
4111
|
+
* Sets a component-level error.
|
|
4112
|
+
*/
|
|
4113
|
+
setComponentError: (error: {
|
|
4114
|
+
code: COMPONENT_ERROR;
|
|
4115
|
+
message: string;
|
|
4116
|
+
} | null) => void;
|
|
4117
|
+
/**
|
|
4118
|
+
* Clears all rejected files from the rejection list.
|
|
4119
|
+
*/
|
|
4120
|
+
clearRejectedFiles: () => void;
|
|
4121
|
+
/**
|
|
4122
|
+
* Makes a screen reader announcement.
|
|
4123
|
+
*/
|
|
4124
|
+
announce: (type: AnnouncementType, data: Record<string, unknown>) => void;
|
|
4125
|
+
/**
|
|
4126
|
+
* Ref to the hidden file input element.
|
|
4127
|
+
*/
|
|
4128
|
+
inputRef: default_2.RefObject<HTMLInputElement | null>;
|
|
4129
|
+
/**
|
|
4130
|
+
* Opens the native file picker.
|
|
4131
|
+
*/
|
|
4132
|
+
openPicker: () => void;
|
|
4133
|
+
/**
|
|
4134
|
+
* Handles file input change events.
|
|
4135
|
+
*/
|
|
4136
|
+
handleInputChange: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
4137
|
+
/**
|
|
4138
|
+
* Handles file input invalid events.
|
|
4139
|
+
*/
|
|
4140
|
+
handleInputInvalid: (event: default_2.FormEvent<HTMLInputElement>) => void;
|
|
4141
|
+
/**
|
|
4142
|
+
* Event handlers for drag and drop functionality.
|
|
4143
|
+
*/
|
|
4144
|
+
dragHandlers: {
|
|
4145
|
+
onDragEnter: (event: default_2.DragEvent) => void;
|
|
4146
|
+
onDragOver: (event: default_2.DragEvent) => void;
|
|
4147
|
+
onDragLeave: (event: default_2.DragEvent) => void;
|
|
4148
|
+
onDrop: (event: default_2.DragEvent) => void;
|
|
4149
|
+
};
|
|
4150
|
+
/**
|
|
4151
|
+
* Custom function to generate file error messages.
|
|
4152
|
+
*/
|
|
4153
|
+
getFileErrorMessage?: (error: FILE_ERROR, file: File) => string;
|
|
4154
|
+
/**
|
|
4155
|
+
* Custom function to generate component error messages.
|
|
4156
|
+
*/
|
|
4157
|
+
getComponentErrorMessage?: (error: COMPONENT_ERROR, data: Record<string, unknown>) => string;
|
|
4158
|
+
/**
|
|
4159
|
+
* Custom function to generate announcements.
|
|
4160
|
+
*/
|
|
4161
|
+
getAnnouncement?: (type: AnnouncementType, data: Record<string, unknown>) => string;
|
|
4162
|
+
/**
|
|
4163
|
+
* Callback when upload is cancelled.
|
|
4164
|
+
*/
|
|
4165
|
+
onCancel?: (id: string) => void;
|
|
4166
|
+
/**
|
|
4167
|
+
* Callback when failed upload should be retried.
|
|
4168
|
+
*/
|
|
4169
|
+
onRetry?: (id: string) => void;
|
|
4170
|
+
/**
|
|
4171
|
+
* Additional input props to spread on the native input element.
|
|
4172
|
+
*/
|
|
4173
|
+
inputProps?: Omit<default_2.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInvalid' | 'className' | 'value' | 'type' | 'accept' | 'multiple' | 'name' | 'required' | 'id' | 'form' | 'disabled'>;
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
/**
|
|
4177
|
+
* Labels configuration for the Uploader component.
|
|
4178
|
+
* All fields are required when defining the full labels object.
|
|
4179
|
+
* Use Partial<UploaderLabels> for optional overrides.
|
|
4180
|
+
*/
|
|
4181
|
+
export declare type UploaderLabels = {
|
|
4182
|
+
/** Text displayed in the drop zone. */
|
|
4183
|
+
dropZoneText: string;
|
|
4184
|
+
/** Text for the browse link. */
|
|
4185
|
+
browseText: string;
|
|
4186
|
+
/** Text shown when dragging files over the drop zone. */
|
|
4187
|
+
dragOverText: string;
|
|
4188
|
+
/** Text shown while processing files. */
|
|
4189
|
+
processingText: string;
|
|
4190
|
+
/** Accessible label for the drop zone. */
|
|
4191
|
+
ariaLabel: string;
|
|
4192
|
+
/** Accessible label for the file list. */
|
|
4193
|
+
fileListLabel: string;
|
|
4194
|
+
/** Text shown when upload is canceled. */
|
|
4195
|
+
canceledText: string;
|
|
4196
|
+
/** Text shown when upload fails. */
|
|
4197
|
+
failedText: string;
|
|
4198
|
+
/** Text for cancel button. */
|
|
4199
|
+
cancelButtonText: string;
|
|
4200
|
+
/** Accessible label function for cancel button. */
|
|
4201
|
+
cancelButtonLabel: (fileName: string) => string;
|
|
4202
|
+
/** Text for retry button. */
|
|
4203
|
+
retryButtonText: string;
|
|
4204
|
+
/** Accessible label function for retry button. */
|
|
4205
|
+
retryButtonLabel: (fileName: string) => string;
|
|
4206
|
+
/** Accessible label function for remove button. */
|
|
4207
|
+
removeButtonLabel: (fileName: string) => string;
|
|
4208
|
+
/** Function returning upload progress text. */
|
|
4209
|
+
uploadingText: (progress: number) => string;
|
|
4210
|
+
/** Text shown while finalizing upload. */
|
|
4211
|
+
finalizingUploadText: string;
|
|
4212
|
+
/** Function to pluralize "file(s)" text. */
|
|
4213
|
+
pluralizeFiles: (count: number) => string;
|
|
4214
|
+
/** Text for dismiss all rejections button. */
|
|
4215
|
+
dismissAllRejectionsText: string;
|
|
4216
|
+
/** Header text for the rejection list. */
|
|
4217
|
+
rejectionListHeaderText: string;
|
|
4218
|
+
/** Function returning show more files text. */
|
|
4219
|
+
showMoreFilesText: (count: number) => string;
|
|
4220
|
+
/** Text to show less files. */
|
|
4221
|
+
showLessFilesText: string;
|
|
4222
|
+
/** Function returning max count exceeded error message with limit. */
|
|
4223
|
+
maxCountExceededWithLimitText: (maxCount: number) => string;
|
|
4224
|
+
/** Text for "added" in announcements. */
|
|
4225
|
+
addedText: string;
|
|
4226
|
+
/** Text for "total" in announcements. */
|
|
4227
|
+
totalText: string;
|
|
4228
|
+
/** Text for "selected" in announcements. */
|
|
4229
|
+
selectedText: string;
|
|
4230
|
+
/** Text for file removed announcement. */
|
|
4231
|
+
fileRemovedText: string;
|
|
4232
|
+
/** Text for all files removed announcement. */
|
|
4233
|
+
allFilesRemovedText: string;
|
|
4234
|
+
/** Error message for required field. */
|
|
4235
|
+
requiredErrorMessage: string;
|
|
4236
|
+
/** Error messages for file-level validation errors. Allows overriding individual messages. */
|
|
4237
|
+
fileErrorMessages: Partial<Record<FILE_ERROR, string>>;
|
|
4238
|
+
/** Error messages for component-level validation errors. Allows overriding individual messages. */
|
|
4239
|
+
componentErrorMessages: Partial<Record<COMPONENT_ERROR, string>>;
|
|
4240
|
+
};
|
|
4241
|
+
|
|
4242
|
+
export declare interface UploaderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'onInvalid' | 'className' | 'value' | 'type' | 'accept' | 'multiple' | 'name' | 'required' | 'id' | 'form' | 'disabled'> {
|
|
4243
|
+
/**
|
|
4244
|
+
* Accepted file types (MIME types or file extensions).
|
|
4245
|
+
* Uses the same format as the HTML input accept attribute.
|
|
4246
|
+
* @example "image/*,.pdf,.doc,.docx"
|
|
4247
|
+
*/
|
|
4248
|
+
accept?: string;
|
|
4249
|
+
/**
|
|
4250
|
+
* Whether multiple files can be selected at once.
|
|
4251
|
+
* @default true
|
|
4252
|
+
*/
|
|
4253
|
+
multiple?: boolean;
|
|
4254
|
+
/**
|
|
4255
|
+
* Whether the uploader is disabled.
|
|
4256
|
+
* When disabled, files cannot be added or removed.
|
|
4257
|
+
* @default false
|
|
4258
|
+
*/
|
|
4259
|
+
disabled?: boolean;
|
|
4260
|
+
/**
|
|
4261
|
+
* Whether individual files can be deleted from the list.
|
|
4262
|
+
* When false, the delete button is hidden on file items.
|
|
4263
|
+
*/
|
|
4264
|
+
canDeleteFile?: boolean;
|
|
4265
|
+
/**
|
|
4266
|
+
* Determines how new files are handled when selected.
|
|
4267
|
+
* - 'append': New files are added to the existing list
|
|
4268
|
+
* - 'replace': New files replace the existing list
|
|
4269
|
+
* @default 'append'
|
|
4270
|
+
*/
|
|
4271
|
+
selectionMode?: 'append' | 'replace';
|
|
4272
|
+
/**
|
|
4273
|
+
* Maximum allowed size for a single file in bytes.
|
|
4274
|
+
* Files exceeding this limit will be marked as invalid.
|
|
4275
|
+
*/
|
|
4276
|
+
maxFileSize?: number;
|
|
4277
|
+
/**
|
|
4278
|
+
* Maximum allowed total size of all files combined in bytes.
|
|
4279
|
+
* Exceeding this limit triggers a component-level error.
|
|
4280
|
+
*/
|
|
4281
|
+
maxTotalSize?: number;
|
|
4282
|
+
/**
|
|
4283
|
+
* Maximum number of files allowed.
|
|
4284
|
+
* Exceeding this limit triggers a component-level error.
|
|
4285
|
+
*/
|
|
4286
|
+
maxCount?: number;
|
|
4287
|
+
/**
|
|
4288
|
+
* Minimum number of files required.
|
|
4289
|
+
* Having fewer files triggers a component-level error.
|
|
4290
|
+
*/
|
|
4291
|
+
minCount?: number;
|
|
4292
|
+
/**
|
|
4293
|
+
* Controlled value - the list of files.
|
|
4294
|
+
* When provided, the component operates in controlled mode.
|
|
4295
|
+
*/
|
|
4296
|
+
value?: FileItem[];
|
|
4297
|
+
/**
|
|
4298
|
+
* Callback fired when files are added, removed, replaced, or cleared.
|
|
4299
|
+
* Required when using controlled mode (value prop).
|
|
4300
|
+
*/
|
|
4301
|
+
onChange?: (event: ChangeEvent) => void;
|
|
4302
|
+
/**
|
|
4303
|
+
* Callback fired after file validation is complete.
|
|
4304
|
+
* Provides validation results for each file and any component-level errors.
|
|
4305
|
+
*/
|
|
4306
|
+
onValidation?: (event: ValidationEvent) => void;
|
|
4307
|
+
/**
|
|
4308
|
+
* Callback fired when a file upload is cancelled.
|
|
4309
|
+
* Receives the file ID that was cancelled.
|
|
4310
|
+
*/
|
|
4311
|
+
onCancel?: (id: string) => void;
|
|
4312
|
+
/**
|
|
4313
|
+
* Callback fired when a failed upload should be retried.
|
|
4314
|
+
* Receives the file ID that should be retried.
|
|
4315
|
+
*/
|
|
4316
|
+
onRetry?: (id: string) => void;
|
|
4317
|
+
/**
|
|
4318
|
+
* Custom labels for various UI elements.
|
|
4319
|
+
* Allows localization and customization of text content.
|
|
4320
|
+
*/
|
|
4321
|
+
labels?: Partial<UploaderLabels>;
|
|
4322
|
+
/**
|
|
4323
|
+
* Custom function to generate error messages for file-level errors.
|
|
4324
|
+
* @param error - The error type
|
|
4325
|
+
* @param file - The file that caused the error
|
|
4326
|
+
* @returns Custom error message
|
|
4327
|
+
*/
|
|
4328
|
+
getFileErrorMessage?: (error: FILE_ERROR, file: File) => string;
|
|
4329
|
+
/**
|
|
4330
|
+
* Custom function to generate error messages for component-level errors.
|
|
4331
|
+
* @param error - The error type
|
|
4332
|
+
* @param data - Additional data about the error (e.g., maxCount, totalSize)
|
|
4333
|
+
* @returns Custom error message
|
|
4334
|
+
*/
|
|
4335
|
+
getComponentErrorMessage?: (error: COMPONENT_ERROR, data: Record<string, unknown>) => string;
|
|
4336
|
+
/**
|
|
4337
|
+
* Custom function to generate announcement messages for screen readers.
|
|
4338
|
+
* @param type - The type of announcement
|
|
4339
|
+
* @param data - Additional data about the action
|
|
4340
|
+
* @returns Custom announcement message
|
|
4341
|
+
*/
|
|
4342
|
+
getAnnouncement?: (type: AnnouncementType, data: Record<string, unknown>) => string;
|
|
4343
|
+
/**
|
|
4344
|
+
* HTML name attribute for the file input.
|
|
4345
|
+
* Used for form submission.
|
|
4346
|
+
*/
|
|
4347
|
+
name?: string;
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether the file input is required.
|
|
4350
|
+
* Used for form validation.
|
|
4351
|
+
*/
|
|
4352
|
+
required?: boolean;
|
|
4353
|
+
/**
|
|
4354
|
+
* HTML id attribute for the file input.
|
|
4355
|
+
*/
|
|
4356
|
+
id?: string;
|
|
4357
|
+
/**
|
|
4358
|
+
* Associates the input with a specific form element.
|
|
4359
|
+
*/
|
|
4360
|
+
form?: string;
|
|
4361
|
+
/**
|
|
4362
|
+
* ID of an element that labels the uploader.
|
|
4363
|
+
* Used for accessibility.
|
|
4364
|
+
*/
|
|
4365
|
+
ariaLabelledby?: string;
|
|
4366
|
+
/**
|
|
4367
|
+
* ID of an element that describes the uploader.
|
|
4368
|
+
* Used for accessibility.
|
|
4369
|
+
*/
|
|
4370
|
+
ariaDescribedby?: string;
|
|
4371
|
+
/**
|
|
4372
|
+
* Custom content to render instead of the default FileList.
|
|
4373
|
+
* When provided, showFileList is ignored.
|
|
4374
|
+
*/
|
|
4375
|
+
children?: React.ReactNode;
|
|
4376
|
+
/**
|
|
4377
|
+
* Whether to show the default file list below the drop zone.
|
|
4378
|
+
* @default true
|
|
4379
|
+
*/
|
|
4380
|
+
showFileList?: boolean;
|
|
4381
|
+
}
|
|
4382
|
+
|
|
4383
|
+
/**
|
|
4384
|
+
* Provider component that supplies the Uploader context to child components.
|
|
4385
|
+
*/
|
|
4386
|
+
export declare const UploaderProvider: ({ value, children, }: UploaderProviderProps) => default_2.JSX.Element;
|
|
4387
|
+
|
|
4388
|
+
/**
|
|
4389
|
+
* Props for the UploaderProvider component.
|
|
4390
|
+
*/
|
|
4391
|
+
export declare interface UploaderProviderProps extends PropsWithChildren {
|
|
4392
|
+
/**
|
|
4393
|
+
* The context value to provide.
|
|
4394
|
+
*/
|
|
4395
|
+
value: UploaderContextValue;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
/**
|
|
4399
|
+
* Ref handle for the Uploader component.
|
|
4400
|
+
* Provides imperative methods to control the uploader.
|
|
4401
|
+
*/
|
|
4402
|
+
export declare interface UploaderRef {
|
|
4403
|
+
/**
|
|
4404
|
+
* Focuses the file input element.
|
|
4405
|
+
*/
|
|
4406
|
+
focus: () => void;
|
|
4407
|
+
/**
|
|
4408
|
+
* Opens the file picker dialog.
|
|
4409
|
+
*/
|
|
4410
|
+
click: () => void;
|
|
4411
|
+
/**
|
|
4412
|
+
* Removes all files from the uploader.
|
|
4413
|
+
* Only works in uncontrolled mode.
|
|
4414
|
+
*/
|
|
4415
|
+
clearAll: () => void;
|
|
4416
|
+
/**
|
|
4417
|
+
* Updates the state of a specific file.
|
|
4418
|
+
* Only works in uncontrolled mode.
|
|
4419
|
+
* @param id - The ID of the file to update
|
|
4420
|
+
* @param state - Partial state to merge with existing state
|
|
4421
|
+
*/
|
|
4422
|
+
updateFileState: (id: string, state: Partial<FileState>) => void;
|
|
4423
|
+
/**
|
|
4424
|
+
* Removes a specific file from the uploader.
|
|
4425
|
+
* Only works in uncontrolled mode.
|
|
4426
|
+
* @param id - The ID of the file to remove
|
|
4427
|
+
*/
|
|
4428
|
+
removeFile: (id: string) => void;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
/**
|
|
4432
|
+
* Custom hook that tracks the current breakpoint based on window width.
|
|
4433
|
+
* Returns an object with the current breakpoint and utility functions for comparison.
|
|
4434
|
+
*
|
|
4435
|
+
* @param enabled - Whether to set up resize event listeners. Defaults to true.
|
|
4436
|
+
* Set to false to prevent unnecessary listeners when breakpoint tracking is not needed.
|
|
4437
|
+
* @returns An object containing the current breakpoint and comparison utilities
|
|
4438
|
+
*
|
|
4439
|
+
* @example
|
|
4440
|
+
* ```tsx
|
|
4441
|
+
* const { currentBreakpoint, isBiggerThan, isSmallerThan, isBetween } = useBreakpoint();
|
|
4442
|
+
*
|
|
4443
|
+
* // Check current breakpoint
|
|
4444
|
+
* console.log(currentBreakpoint); // 'tablet'
|
|
4445
|
+
*
|
|
4446
|
+
* // Check if viewport is bigger than mobile
|
|
4447
|
+
* if (isBiggerThan('mobile')) {
|
|
4448
|
+
* // Render desktop layout
|
|
4449
|
+
* }
|
|
4450
|
+
*
|
|
4451
|
+
* // Check if viewport is smaller than laptop
|
|
4452
|
+
* if (isSmallerThan('laptop')) {
|
|
4453
|
+
* // Render mobile layout
|
|
4454
|
+
* }
|
|
4455
|
+
*
|
|
4456
|
+
* // Check if viewport is between tablet and laptop (inclusive)
|
|
4457
|
+
* if (isBetween('tablet', 'laptop')) {
|
|
4458
|
+
* // Render medium layout
|
|
4459
|
+
* }
|
|
4460
|
+
* ```
|
|
4461
|
+
*/
|
|
4462
|
+
export declare const useBreakpoint: (enabled?: boolean) => UseBreakpointReturn;
|
|
4463
|
+
|
|
4464
|
+
export declare interface UseBreakpointReturn {
|
|
4465
|
+
/** The current viewport breakpoint */
|
|
4466
|
+
currentBreakpoint: Viewport;
|
|
4467
|
+
/** Returns true if the current breakpoint is larger than the specified breakpoint */
|
|
4468
|
+
isBiggerThan: (breakpoint: Viewport) => boolean;
|
|
4469
|
+
/** Returns true if the current breakpoint is smaller than the specified breakpoint */
|
|
4470
|
+
isSmallerThan: (breakpoint: Viewport) => boolean;
|
|
4471
|
+
/** Returns true if the current breakpoint is between the two specified breakpoints (inclusive) */
|
|
4472
|
+
isBetween: (minBreakpoint: Viewport, maxBreakpoint: Viewport) => boolean;
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
export declare const useClickOutside: <T extends Node = HTMLElement>(refs: RefType<T> | RefType<T>[] | RefType<Node>[], callback: () => void, isOpen?: boolean) => void;
|
|
4476
|
+
|
|
4477
|
+
export declare const UserArea: ForwardRefExoticComponent<UserAreaProps & RefAttributes<HTMLDivElement>>;
|
|
4478
|
+
|
|
4479
|
+
export declare interface UserAreaProps {
|
|
4480
|
+
/**
|
|
4481
|
+
* The user's display name
|
|
4482
|
+
*/
|
|
4483
|
+
name: string;
|
|
4484
|
+
/**
|
|
4485
|
+
* Optional subtitle (e.g. role, company)
|
|
4486
|
+
*/
|
|
4487
|
+
subtitle?: string;
|
|
4488
|
+
/**
|
|
4489
|
+
* The avatar of the user (see AvatarProps)
|
|
4490
|
+
*/
|
|
4491
|
+
avatar: AvatarProps;
|
|
4492
|
+
/**
|
|
4493
|
+
* Whether to display in compact mode (small avatar)
|
|
4494
|
+
* @default false
|
|
4495
|
+
*/
|
|
4496
|
+
compact?: boolean;
|
|
4497
|
+
/**
|
|
4498
|
+
* Whether to show the user info text (name and subtitle)
|
|
4499
|
+
* @default true
|
|
4500
|
+
*/
|
|
4501
|
+
showInfo?: boolean;
|
|
4502
|
+
/**
|
|
4503
|
+
* Position of the info text relative to the avatar
|
|
4504
|
+
* @default 'right'
|
|
4505
|
+
*/
|
|
4506
|
+
infoPosition?: 'left' | 'right';
|
|
4507
|
+
/**
|
|
4508
|
+
* Menu items displayed in a PopUpMenu when the user area is clicked
|
|
4509
|
+
*/
|
|
4510
|
+
menuItems?: PopUpMenuItem[];
|
|
4511
|
+
/**
|
|
4512
|
+
* Callback when a menu item is clicked
|
|
4513
|
+
*/
|
|
4514
|
+
onItemClick?: (item: PopUpMenuItem) => void;
|
|
4515
|
+
/**
|
|
4516
|
+
* The max height of the popup menu
|
|
4517
|
+
* @default '80dvh'
|
|
4518
|
+
*/
|
|
4519
|
+
menuMaxHeight?: ResponsiveType<number | string>;
|
|
4520
|
+
/**
|
|
4521
|
+
* The placement of the popup menu
|
|
4522
|
+
* @default 'top-left'
|
|
4523
|
+
*/
|
|
4524
|
+
menuPlacement?: ResponsiveType<PopUpMenuPlacement>;
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4527
|
+
export declare const useSheetAnimation: (open: boolean) => {
|
|
4528
|
+
mounted: boolean;
|
|
4529
|
+
show: boolean;
|
|
4530
|
+
setShow: Dispatch<SetStateAction<boolean>>;
|
|
4531
|
+
};
|
|
4532
|
+
|
|
4533
|
+
/**
|
|
4534
|
+
* Custom hook to handle Sheet closing logic
|
|
4535
|
+
*
|
|
4536
|
+
* Centralizes the close animation pattern:
|
|
4537
|
+
* 1. Hide the sheet (trigger exit animation)
|
|
4538
|
+
* 2. Wait for animation to complete (500ms)
|
|
4539
|
+
* 3. Call onClose callback (unmount)
|
|
4540
|
+
*/
|
|
4541
|
+
export declare const useSheetClose: ({ setShow, onClose, closeOnBackdropClick, }: UseSheetCloseProps) => UseSheetCloseReturn;
|
|
4542
|
+
|
|
4543
|
+
declare interface UseSheetCloseProps {
|
|
4544
|
+
setShow: Dispatch<SetStateAction<boolean>>;
|
|
4545
|
+
onClose: () => void;
|
|
4546
|
+
closeOnBackdropClick: boolean;
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4549
|
+
declare interface UseSheetCloseReturn {
|
|
4550
|
+
handleSwipeDismiss: () => void;
|
|
4551
|
+
handleBackdropClick: () => void;
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
export declare const useSheetEscape: (onClose: () => void, closeOnEsc: boolean) => void;
|
|
4555
|
+
|
|
4556
|
+
export declare const useSheetFocus: (sheetRef: React.RefObject<HTMLDivElement | null>, mounted: boolean) => void;
|
|
4557
|
+
|
|
4558
|
+
/**
|
|
4559
|
+
* Custom hook to register/unregister sheet with the global SheetManager
|
|
4560
|
+
*
|
|
4561
|
+
* Ensures proper lifecycle management of sheets in the manager,
|
|
4562
|
+
* allowing for global sheet coordination (e.g., closing all sheets)
|
|
4563
|
+
*/
|
|
4564
|
+
export declare const useSheetRegistration: ({ sheetId, mounted, open, onClose, }: UseSheetRegistrationProps) => void;
|
|
4565
|
+
|
|
4566
|
+
declare interface UseSheetRegistrationProps {
|
|
4567
|
+
sheetId: string;
|
|
4568
|
+
mounted: boolean;
|
|
4569
|
+
open: boolean;
|
|
4570
|
+
onClose: () => void;
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
export declare const useSheetResize: ({ sheetRef, handleRef, enabled, minWidth: customMinWidth, maxWidth: customMaxWidth, onResizeEnd, }: UseSheetResizeProps) => void;
|
|
4574
|
+
|
|
4575
|
+
declare interface UseSheetResizeProps {
|
|
4576
|
+
sheetRef: React.RefObject<HTMLDivElement | null>;
|
|
4577
|
+
handleRef: React.RefObject<HTMLDivElement | null>;
|
|
4578
|
+
enabled: boolean;
|
|
4579
|
+
minWidth?: number | string;
|
|
4580
|
+
maxWidth?: number | string;
|
|
4581
|
+
onResizeEnd?: (width: number) => void;
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Custom hook to track scroll position and overflow state for Sheet component
|
|
4586
|
+
*
|
|
4587
|
+
* Monitors:
|
|
4588
|
+
* - Whether content is scrolled from top (for header border)
|
|
4589
|
+
* - Whether scrolled to bottom (for footer border)
|
|
4590
|
+
* - Whether content overflows container (for conditional styling)
|
|
4591
|
+
*/
|
|
4592
|
+
export declare const useSheetScrollTracking: ({ scrollableContentRef, sheetRef, contentRef, mounted, }: UseSheetScrollTrackingProps) => UseSheetScrollTrackingReturn;
|
|
4593
|
+
|
|
4594
|
+
declare interface UseSheetScrollTrackingProps {
|
|
4595
|
+
scrollableContentRef: React.RefObject<HTMLDivElement | null>;
|
|
4596
|
+
sheetRef: React.RefObject<HTMLDivElement | null>;
|
|
4597
|
+
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
4598
|
+
mounted: boolean;
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
declare interface UseSheetScrollTrackingReturn {
|
|
4602
|
+
isScrolled: boolean;
|
|
4603
|
+
isAtBottom: boolean;
|
|
4604
|
+
hasOverflow: boolean;
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4607
|
+
export declare const useSheetSwipe: ({ sheetRef, onDismiss, enabled, placement, }: UseSheetSwipeProps) => void;
|
|
4608
|
+
|
|
4609
|
+
declare interface UseSheetSwipeProps {
|
|
4610
|
+
sheetRef: React.RefObject<HTMLDivElement | null>;
|
|
4611
|
+
onDismiss: () => void;
|
|
4612
|
+
enabled: boolean;
|
|
4613
|
+
placement?: 'bottom' | 'right';
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
/**
|
|
4617
|
+
* Custom hook to manage Sheet width constraints and validation
|
|
4618
|
+
*
|
|
4619
|
+
* Features:
|
|
4620
|
+
* - Applies custom width for right-placed sheets on desktop
|
|
4621
|
+
* - Enforces absolute minimum width (570px)
|
|
4622
|
+
* - Validates against min/max width constraints
|
|
4623
|
+
* - Ensures width doesn't exceed screen width
|
|
4624
|
+
* - Provides helpful console warnings for constraint violations
|
|
4625
|
+
*/
|
|
4626
|
+
export declare const useSheetWidth: ({ sheetRef, placement, width, minWidth, maxWidth, mounted, }: UseSheetWidthProps) => void;
|
|
4627
|
+
|
|
4628
|
+
declare interface UseSheetWidthProps {
|
|
4629
|
+
sheetRef: React.RefObject<HTMLDivElement | null>;
|
|
4630
|
+
placement: 'bottom' | 'right';
|
|
4631
|
+
width?: number | string;
|
|
4632
|
+
minWidth?: number | string;
|
|
4633
|
+
maxWidth?: number | string;
|
|
4634
|
+
mounted: boolean;
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* Hook to interact with the Snackbar system
|
|
4639
|
+
* Must be used within a SnackbarProvider
|
|
4640
|
+
*/
|
|
4641
|
+
export declare const useSnackbar: () => UseSnackbarReturn;
|
|
4642
|
+
|
|
4643
|
+
export declare interface UseSnackbarReturn {
|
|
4644
|
+
/**
|
|
4645
|
+
* Show a snackbar message
|
|
4646
|
+
*/
|
|
4647
|
+
snackbar: (message: SnackbarItem['children'], options?: SnackbarOptions) => SnackbarItem['id'];
|
|
4648
|
+
/**
|
|
4649
|
+
* Dismiss a specific snackbar by ID
|
|
4650
|
+
*/
|
|
4651
|
+
dismiss: (id: string) => void;
|
|
4652
|
+
/**
|
|
4653
|
+
* Dismiss all snackbars
|
|
4654
|
+
*/
|
|
4655
|
+
dismissAll: () => void;
|
|
4656
|
+
}
|
|
4657
|
+
|
|
4658
|
+
/**
|
|
4659
|
+
* Event emitted after file validation is complete.
|
|
4660
|
+
*/
|
|
4661
|
+
export declare interface ValidationEvent {
|
|
4662
|
+
/**
|
|
4663
|
+
* Whether all files passed validation with no component errors.
|
|
4664
|
+
*/
|
|
4665
|
+
isValid: boolean;
|
|
4666
|
+
/**
|
|
4667
|
+
* Validation results for each file.
|
|
4668
|
+
*/
|
|
4669
|
+
fileResults: Array<{
|
|
4670
|
+
/** ID of the file. Optional for rejected files that are not added to the file list. */
|
|
4671
|
+
id?: string;
|
|
4672
|
+
/** Whether the file has a validation error. */
|
|
4673
|
+
hasError: boolean;
|
|
4674
|
+
/** The error type if validation failed. */
|
|
4675
|
+
error?: FILE_ERROR;
|
|
4676
|
+
/** Human-readable error message. */
|
|
4677
|
+
errorMessage?: string;
|
|
4678
|
+
}>;
|
|
4679
|
+
/**
|
|
4680
|
+
* Component-level errors that occurred during validation.
|
|
4681
|
+
*/
|
|
4682
|
+
componentErrors?: Array<{
|
|
4683
|
+
code: COMPONENT_ERROR;
|
|
4684
|
+
message: string;
|
|
4685
|
+
}>;
|
|
4686
|
+
}
|
|
4687
|
+
|
|
4688
|
+
export declare type Viewport = keyof typeof BREAKPOINTS;
|
|
4689
|
+
|
|
4690
|
+
declare interface ZvoooveLogoProps {
|
|
4691
|
+
size?: number;
|
|
4692
|
+
color?: string;
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4695
|
+
export declare const ZvooveBrand: {
|
|
4696
|
+
({ hideIcon, hideName, iconSize, nameHeight, }: ZvooveBrandProps): JSX.Element;
|
|
4697
|
+
displayName: string;
|
|
4698
|
+
};
|
|
4699
|
+
|
|
4700
|
+
export declare interface ZvooveBrandProps {
|
|
4701
|
+
/**
|
|
4702
|
+
* Hide the icon (logomark).
|
|
4703
|
+
* @default false
|
|
4704
|
+
*/
|
|
4705
|
+
hideIcon?: boolean;
|
|
4706
|
+
/**
|
|
4707
|
+
* Hide the name (wordmark).
|
|
4708
|
+
* @default false
|
|
4709
|
+
*/
|
|
4710
|
+
hideName?: boolean;
|
|
4711
|
+
/**
|
|
4712
|
+
* Size of the icon in pixels.
|
|
4713
|
+
* @default 22
|
|
4714
|
+
*/
|
|
4715
|
+
iconSize?: number;
|
|
4716
|
+
/**
|
|
4717
|
+
* Height of the name in pixels.
|
|
4718
|
+
* @default 12
|
|
4719
|
+
*/
|
|
4720
|
+
nameHeight?: number;
|
|
4721
|
+
}
|
|
4722
|
+
|
|
4723
|
+
export { }
|