@zvoove/unity-ui 2.30.0 → 2.32.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/bin/cli.mjs +0 -0
- package/dist/bin/generate-skills.mjs +0 -0
- package/dist/llms.txt +19 -0
- package/dist/src/components/Accordion/Accordion.d.ts +6 -0
- package/dist/src/components/Accordion/Accordion.styled.d.ts +46 -0
- package/dist/src/components/Accordion/Accordion.types.d.ts +33 -0
- package/dist/src/components/Accordion/index.d.ts +2 -0
- package/dist/src/components/ActionCard/ActionCard.d.ts +6 -0
- package/dist/src/components/ActionCard/ActionCard.styled.d.ts +29 -0
- package/dist/src/components/ActionCard/ActionCard.types.d.ts +32 -0
- package/dist/src/components/ActionCard/index.d.ts +2 -0
- package/dist/src/components/Avatar/Avatar/Avatar.d.ts +3 -0
- package/dist/src/components/Avatar/Avatar/Avatar.styled.d.ts +53 -0
- package/dist/src/components/Avatar/Avatar/Avatar.types.d.ts +48 -0
- package/dist/src/components/Avatar/Avatar/index.d.ts +2 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.styled.d.ts +3 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.types.d.ts +15 -0
- package/dist/src/components/Avatar/AvatarGroup/index.d.ts +2 -0
- package/dist/src/components/Avatar/index.d.ts +2 -0
- package/dist/src/components/Badge/Badge.d.ts +3 -0
- package/dist/src/components/Badge/Badge.styled.d.ts +28 -0
- package/dist/src/components/Badge/Badge.types.d.ts +19 -0
- package/dist/src/components/Badge/index.d.ts +2 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.styled.d.ts +14 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.types.d.ts +22 -0
- package/dist/src/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/src/components/Button/Button.d.ts +9 -0
- package/dist/src/components/Button/Button.styled.d.ts +98 -0
- package/dist/src/components/Button/Button.types.d.ts +55 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/Card/Card.d.ts +10 -0
- package/dist/src/components/Card/Card.styled.d.ts +770 -0
- package/dist/src/components/Card/Card.types.d.ts +131 -0
- package/dist/src/components/Card/index.d.ts +2 -0
- package/dist/src/components/ChatBubble/ChatBubble.d.ts +3 -0
- package/dist/src/components/ChatBubble/ChatBubble.styled.d.ts +117 -0
- package/dist/src/components/ChatBubble/ChatBubble.types.d.ts +55 -0
- package/dist/src/components/ChatBubble/ChatBubbleMedia.d.ts +3 -0
- package/dist/src/components/ChatBubble/index.d.ts +3 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/src/components/Checkbox/Checkbox.styled.d.ts +59 -0
- package/dist/src/components/Checkbox/Checkbox.types.d.ts +40 -0
- package/dist/src/components/Checkbox/index.d.ts +2 -0
- package/dist/src/components/Chip/Chip.d.ts +4 -0
- package/dist/src/components/Chip/Chip.styled.d.ts +114 -0
- package/dist/src/components/Chip/Chip.types.d.ts +63 -0
- package/dist/src/components/Chip/index.d.ts +2 -0
- package/dist/src/components/CodeBlock/CodeBlock.d.ts +6 -0
- package/dist/src/components/CodeBlock/CodeBlock.highlighter.d.ts +7 -0
- package/dist/src/components/CodeBlock/CodeBlock.styled.d.ts +65 -0
- package/dist/src/components/CodeBlock/CodeBlock.types.d.ts +28 -0
- package/dist/src/components/CodeBlock/CodeBlock.utils.d.ts +11 -0
- package/dist/src/components/CodeBlock/index.d.ts +3 -0
- package/dist/src/components/ContentBlock/ContentBlock.d.ts +6 -0
- package/dist/src/components/ContentBlock/ContentBlock.styled.d.ts +2 -0
- package/dist/src/components/ContentBlock/ContentBlock.types.d.ts +7 -0
- package/dist/src/components/ContentBlock/index.d.ts +2 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/src/components/DatePicker/DatePicker.styled.d.ts +16 -0
- package/dist/src/components/DatePicker/DatePicker.types.d.ts +64 -0
- package/dist/src/components/DatePicker/components/DateDialog/DateDialog.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/DateDialog.types.d.ts +10 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/Calendar.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/Calendar.styled.d.ts +16 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/Calendar.types.d.ts +61 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/ActionButtons.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/ActionButtons.styled.d.ts +16 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/ActionButtons.types.d.ts +30 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/ActionButtons/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/CalendarHeader.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/CalendarHeader.styled.d.ts +70 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/CalendarHeader.types.d.ts +46 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/CalendarHeader/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/Carousel.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/Carousel.styled.d.ts +45 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/Carousel.types.d.ts +30 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Carousel/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Day/Day.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Day/Day.styled.d.ts +22 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Day/Day.types.d.ts +11 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/Day/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/WeekDays.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/WeekDays.styled.d.ts +17 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/WeekDays.types.d.ts +4 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/WeekDays/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/components/index.d.ts +5 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/Calendar/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/MonthSelector/MonthSelector.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/MonthSelector/MonthSelector.types.d.ts +23 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/MonthSelector/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/SelectorList/SelectorList.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/SelectorList/SelectorList.styled.d.ts +19 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/SelectorList/SelectorList.types.d.ts +9 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/SelectorList/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/YearSelector/YearSelector.d.ts +3 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/YearSelector/YearSelector.types.d.ts +36 -0
- package/dist/src/components/DatePicker/components/DateDialog/components/YearSelector/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/DateDialog/index.d.ts +2 -0
- package/dist/src/components/DatePicker/components/index.d.ts +1 -0
- package/dist/src/components/DatePicker/context/Context.types.d.ts +15 -0
- package/dist/src/components/DatePicker/context/DatePickerContext.d.ts +3 -0
- package/dist/src/components/DatePicker/context/DatePickerProvider.d.ts +3 -0
- package/dist/src/components/DatePicker/context/index.d.ts +3 -0
- package/dist/src/components/DatePicker/hooks/index.d.ts +5 -0
- package/dist/src/components/DatePicker/hooks/useDatePicker.d.ts +2 -0
- package/dist/src/components/DatePicker/hooks/useDateSelection.d.ts +21 -0
- package/dist/src/components/DatePicker/hooks/useDateUtils.d.ts +31 -0
- package/dist/src/components/DatePicker/hooks/useDialogFocus.d.ts +1 -0
- package/dist/src/components/DatePicker/hooks/useDialogPosition.d.ts +19 -0
- package/dist/src/components/DatePicker/index.d.ts +2 -0
- package/dist/src/components/DatePicker/utils/calendar.utils.d.ts +26 -0
- package/dist/src/components/DatePicker/utils/index.d.ts +3 -0
- package/dist/src/components/DatePicker/utils/locale.utils.d.ts +38 -0
- package/dist/src/components/DatePicker/utils/navigation.utils.d.ts +13 -0
- package/dist/src/components/Dialog/Dialog.d.ts +3 -0
- package/dist/src/components/Dialog/Dialog.styled.d.ts +38 -0
- package/dist/src/components/Dialog/Dialog.types.d.ts +46 -0
- package/dist/src/components/Dialog/DialogManager.d.ts +41 -0
- package/dist/src/components/Dialog/hooks/index.d.ts +3 -0
- package/dist/src/components/Dialog/hooks/useDialogAnimation.d.ts +6 -0
- package/dist/src/components/Dialog/hooks/useDialogEscape.d.ts +2 -0
- package/dist/src/components/Dialog/hooks/useDialogFocus.d.ts +2 -0
- package/dist/src/components/Dialog/index.d.ts +3 -0
- package/dist/src/components/Divider/Divider.d.ts +3 -0
- package/dist/src/components/Divider/Divider.styled.d.ts +19 -0
- package/dist/src/components/Divider/Divider.types.d.ts +13 -0
- package/dist/src/components/Divider/index.d.ts +2 -0
- package/dist/src/components/Expandable/Expandable.d.ts +6 -0
- package/dist/src/components/Expandable/Expandable.styled.d.ts +16 -0
- package/dist/src/components/Expandable/Expandable.types.d.ts +12 -0
- package/dist/src/components/Expandable/index.d.ts +2 -0
- package/dist/src/components/FloatSearch/FloatSearch.d.ts +6 -0
- package/dist/src/components/FloatSearch/FloatSearch.styled.d.ts +51 -0
- package/dist/src/components/FloatSearch/FloatSearch.types.d.ts +108 -0
- package/dist/src/components/FloatSearch/index.d.ts +2 -0
- package/dist/src/components/FormLabel/FormLabel.d.ts +3 -0
- package/dist/src/components/FormLabel/FormLabel.types.d.ts +15 -0
- package/dist/src/components/FormLabel/index.d.ts +2 -0
- package/dist/src/components/Grid/Grid.d.ts +3 -0
- package/dist/src/components/Grid/Grid.styled.d.ts +412 -0
- package/dist/src/components/Grid/Grid.types.d.ts +91 -0
- package/dist/src/components/Grid/index.d.ts +2 -0
- package/dist/src/components/Icon/CustomIcon.types.d.ts +13 -0
- package/dist/src/components/Icon/Icon.d.ts +3 -0
- package/dist/src/components/Icon/Icon.styled.d.ts +61 -0
- package/dist/src/components/Icon/Icon.types.d.ts +707 -0
- package/dist/src/components/Icon/custom/CockpitX.d.ts +5 -0
- package/dist/src/components/Icon/custom/FileArchiveRar.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileArchiveZip.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDesignAep.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDesignAi.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDesignFig.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDesignIndd.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDesignPsd.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentCss.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentDmg.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentExe.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentHtml.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentJava.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentJs.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentJson.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentRss.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentSql.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDevelopmentXml.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentCsv.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentDoc.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentDocx.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentPdf.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentPpt.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentPptx.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentTxt.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentXls.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileDocumentXlsx.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageEps.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageGif.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageImg.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageJpeg.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageJpg.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImagePng.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageSvg.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageTiff.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileImageWebp.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileMediaAvi.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileMediaMkv.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileMediaMp3.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileMediaMp4.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileMediaMpeg.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileMediaWav.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleAudio.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleCode.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleDocument.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleEmpty.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleFolder.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleImage.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimplePdf.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleSpreadSheet.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleVideo.d.ts +3 -0
- package/dist/src/components/Icon/custom/FileSimpleVideo2.d.ts +3 -0
- package/dist/src/components/Icon/custom/FlagDe.d.ts +4 -0
- package/dist/src/components/Icon/custom/FlagEs.d.ts +4 -0
- package/dist/src/components/Icon/custom/FlagFr.d.ts +4 -0
- package/dist/src/components/Icon/custom/FlagGb.d.ts +4 -0
- package/dist/src/components/Icon/custom/FlagNl.d.ts +4 -0
- package/dist/src/components/Icon/custom/ZvooveCashlink.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveDocsAi.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveElevate.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveFree.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveGo.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveIntelligence.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveInvoiceMonitor.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveLogo.d.ts +6 -0
- package/dist/src/components/Icon/custom/ZvooveOne.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveRecruit.d.ts +5 -0
- package/dist/src/components/Icon/custom/ZvooveWorkExpert.d.ts +5 -0
- package/dist/src/components/Icon/custom/index.d.ts +69 -0
- package/dist/src/components/Icon/index.d.ts +3 -0
- package/dist/src/components/ImageVisualizer/ImageVisualizer.d.ts +6 -0
- package/dist/src/components/ImageVisualizer/ImageVisualizer.styled.d.ts +142 -0
- package/dist/src/components/ImageVisualizer/ImageVisualizer.types.d.ts +46 -0
- package/dist/src/components/ImageVisualizer/index.d.ts +2 -0
- package/dist/src/components/InfoBox/InfoBox.constants.d.ts +5 -0
- package/dist/src/components/InfoBox/InfoBox.d.ts +6 -0
- package/dist/src/components/InfoBox/InfoBox.types.d.ts +22 -0
- package/dist/src/components/InfoBox/index.d.ts +2 -0
- package/dist/src/components/List/List.d.ts +7 -0
- package/dist/src/components/List/List.styled.d.ts +103 -0
- package/dist/src/components/List/List.types.d.ts +77 -0
- package/dist/src/components/List/index.d.ts +2 -0
- package/dist/src/components/ListMenu/ListMenu.d.ts +7 -0
- package/dist/src/components/ListMenu/ListMenu.styled.d.ts +150 -0
- package/dist/src/components/ListMenu/ListMenu.types.d.ts +74 -0
- package/dist/src/components/ListMenu/ListMenu.utils.d.ts +13 -0
- package/dist/src/components/ListMenu/index.d.ts +3 -0
- package/dist/src/components/MessageActions/MessageActions.d.ts +3 -0
- package/dist/src/components/MessageActions/MessageActions.styled.d.ts +56 -0
- package/dist/src/components/MessageActions/MessageActions.types.d.ts +81 -0
- package/dist/src/components/MessageActions/index.d.ts +2 -0
- package/dist/src/components/MidSectionMenus/MidSectionMenus.d.ts +7 -0
- package/dist/src/components/MidSectionMenus/MidSectionMenus.styled.d.ts +98 -0
- package/dist/src/components/MidSectionMenus/MidSectionMenus.types.d.ts +67 -0
- package/dist/src/components/MidSectionMenus/index.d.ts +2 -0
- package/dist/src/components/Pagination/Pagination.d.ts +3 -0
- package/dist/src/components/Pagination/Pagination.types.d.ts +37 -0
- package/dist/src/components/Pagination/index.d.ts +2 -0
- package/dist/src/components/PopUpMenu/PopUpMenu.constants.d.ts +2 -0
- package/dist/src/components/PopUpMenu/PopUpMenu.d.ts +3 -0
- package/dist/src/components/PopUpMenu/PopUpMenu.styled.d.ts +161 -0
- package/dist/src/components/PopUpMenu/PopUpMenu.types.d.ts +258 -0
- package/dist/src/components/PopUpMenu/PopUpMenu.utils.d.ts +18 -0
- package/dist/src/components/PopUpMenu/PopUpMenuContent.d.ts +45 -0
- package/dist/src/components/PopUpMenu/PopUpMenuManager.d.ts +37 -0
- package/dist/src/components/PopUpMenu/PopUpMenuPortal.d.ts +12 -0
- package/dist/src/components/PopUpMenu/index.d.ts +2 -0
- package/dist/src/components/PopUpMenu/usePopUpMenuHandlers.d.ts +44 -0
- package/dist/src/components/PopUpMenu/usePopUpMenuState.d.ts +48 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.styled.d.ts +103 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.types.d.ts +31 -0
- package/dist/src/components/ProgressIndicator/index.d.ts +2 -0
- package/dist/src/components/Radio/RadioButton/RadioButton.d.ts +3 -0
- package/dist/src/components/Radio/RadioButton/RadioButton.styled.d.ts +45 -0
- package/dist/src/components/Radio/RadioButton/RadioButton.types.d.ts +32 -0
- package/dist/src/components/Radio/RadioButton/index.d.ts +2 -0
- package/dist/src/components/Radio/RadioGroup/RadioGroup.d.ts +11 -0
- package/dist/src/components/Radio/RadioGroup/RadioGroup.styled.d.ts +13 -0
- package/dist/src/components/Radio/RadioGroup/RadioGroup.types.d.ts +26 -0
- package/dist/src/components/Radio/RadioGroup/index.d.ts +2 -0
- package/dist/src/components/Radio/index.d.ts +2 -0
- package/dist/src/components/ScoreCard/ScoreCard.d.ts +3 -0
- package/dist/src/components/ScoreCard/ScoreCard.styled.d.ts +1 -0
- package/dist/src/components/ScoreCard/ScoreCard.types.d.ts +42 -0
- package/dist/src/components/ScoreCard/index.d.ts +2 -0
- package/dist/src/components/Segment/SegmentButton/SegmentButton.d.ts +3 -0
- package/dist/src/components/Segment/SegmentButton/SegmentButton.styled.d.ts +31 -0
- package/dist/src/components/Segment/SegmentButton/SegmentButton.types.d.ts +39 -0
- package/dist/src/components/Segment/SegmentButton/index.d.ts +2 -0
- package/dist/src/components/Segment/SegmentGroup/SegmentGroup.d.ts +6 -0
- package/dist/src/components/Segment/SegmentGroup/SegmentGroup.styled.d.ts +13 -0
- package/dist/src/components/Segment/SegmentGroup/SegmentGroup.types.d.ts +36 -0
- package/dist/src/components/Segment/SegmentGroup/index.d.ts +2 -0
- package/dist/src/components/Segment/index.d.ts +2 -0
- package/dist/src/components/Select/Select.constants.d.ts +17 -0
- package/dist/src/components/Select/Select.d.ts +3 -0
- package/dist/src/components/Select/Select.styled.d.ts +250 -0
- package/dist/src/components/Select/Select.types.d.ts +70 -0
- package/dist/src/components/Select/Select.utils.d.ts +51 -0
- package/dist/src/components/Select/SelectDisplay.d.ts +3 -0
- package/dist/src/components/Select/SelectDisplay.types.d.ts +43 -0
- package/dist/src/components/Select/SelectManager.d.ts +37 -0
- package/dist/src/components/Select/index.d.ts +2 -0
- package/dist/src/components/Select/useSelectHandlers.d.ts +40 -0
- package/dist/src/components/Select/useSelectState.d.ts +19 -0
- package/dist/src/components/Shared/Backdrop/Backdrop.d.ts +6 -0
- package/dist/src/components/Shared/Backdrop/Backdrop.styled.d.ts +16 -0
- package/dist/src/components/Shared/Backdrop/Backdrop.types.d.ts +23 -0
- package/dist/src/components/Shared/Backdrop/index.d.ts +2 -0
- package/dist/src/components/Shared/ErrorMessage/ErrorMessage.d.ts +3 -0
- package/dist/src/components/Shared/ErrorMessage/ErrorMessage.styled.d.ts +25 -0
- package/dist/src/components/Shared/ErrorMessage/ErrorMessage.types.d.ts +16 -0
- package/dist/src/components/Shared/ErrorMessage/index.d.ts +2 -0
- package/dist/src/components/Shared/index.d.ts +2 -0
- package/dist/src/components/Sheet/Examples/SheetDefault.d.ts +3 -0
- package/dist/src/components/Sheet/Examples/SheetWithFooterAndHeader.d.ts +3 -0
- package/dist/src/components/Sheet/Sheet.d.ts +6 -0
- package/dist/src/components/Sheet/Sheet.styled.d.ts +175 -0
- package/dist/src/components/Sheet/Sheet.types.d.ts +172 -0
- package/dist/src/components/Sheet/SheetManager.d.ts +37 -0
- package/dist/src/components/Sheet/hooks/index.d.ts +9 -0
- package/dist/src/components/Sheet/hooks/useSheetAnimation.d.ts +6 -0
- package/dist/src/components/Sheet/hooks/useSheetClose.d.ts +20 -0
- package/dist/src/components/Sheet/hooks/useSheetEscape.d.ts +2 -0
- package/dist/src/components/Sheet/hooks/useSheetFocus.d.ts +2 -0
- package/dist/src/components/Sheet/hooks/useSheetRegistration.d.ts +14 -0
- package/dist/src/components/Sheet/hooks/useSheetResize.d.ts +10 -0
- package/dist/src/components/Sheet/hooks/useSheetScrollTracking.d.ts +21 -0
- package/dist/src/components/Sheet/hooks/useSheetSwipe.d.ts +8 -0
- package/dist/src/components/Sheet/hooks/useSheetWidth.d.ts +20 -0
- package/dist/src/components/Sheet/index.d.ts +4 -0
- package/dist/src/components/SideNavigation/SideNavigation.d.ts +4 -0
- package/dist/src/components/SideNavigation/SideNavigation.styled.d.ts +249 -0
- package/dist/src/components/SideNavigation/SideNavigation.types.d.ts +128 -0
- package/dist/src/components/SideNavigation/index.d.ts +2 -0
- package/dist/src/components/SideNavigation/usePinnedSections.d.ts +7 -0
- package/dist/src/components/Skeleton/Skeleton.d.ts +3 -0
- package/dist/src/components/Skeleton/Skeleton.styled.d.ts +43 -0
- package/dist/src/components/Skeleton/Skeleton.types.d.ts +20 -0
- package/dist/src/components/Skeleton/index.d.ts +2 -0
- package/dist/src/components/Snackbar/Snackbar.constants.d.ts +5 -0
- package/dist/src/components/Snackbar/Snackbar.context.d.ts +8 -0
- package/dist/src/components/Snackbar/Snackbar.context.definition.d.ts +2 -0
- package/dist/src/components/Snackbar/Snackbar.d.ts +32 -0
- package/dist/src/components/Snackbar/Snackbar.styled.d.ts +173 -0
- package/dist/src/components/Snackbar/Snackbar.types.d.ts +119 -0
- package/dist/src/components/Snackbar/index.d.ts +5 -0
- package/dist/src/components/Snackbar/useSnackbar.d.ts +20 -0
- package/dist/src/components/Stack/Stack.d.ts +4 -0
- package/dist/src/components/Stack/Stack.styled.d.ts +529 -0
- package/dist/src/components/Stack/Stack.types.d.ts +84 -0
- package/dist/src/components/Stack/index.d.ts +2 -0
- package/dist/src/components/Switch/Switch.d.ts +4 -0
- package/dist/src/components/Switch/Switch.styled.d.ts +68 -0
- package/dist/src/components/Switch/Switch.types.d.ts +54 -0
- package/dist/src/components/Switch/index.d.ts +2 -0
- package/dist/src/components/Table/ExpandDetailExample/ExpandDetailExample.d.ts +4 -0
- package/dist/src/components/Table/Table.d.ts +6 -0
- package/dist/src/components/Table/Table.styled.d.ts +77 -0
- package/dist/src/components/Table/Table.types.d.ts +114 -0
- package/dist/src/components/Table/TableDocExample/RowActionButton.d.ts +5 -0
- package/dist/src/components/Table/TableDocExample/TableDocExample.constants.d.ts +14 -0
- package/dist/src/components/Table/TableDocExample/TableDocExample.d.ts +4 -0
- package/dist/src/components/Table/TableDocExample/index.d.ts +1 -0
- package/dist/src/components/Table/index.d.ts +2 -0
- package/dist/src/components/Tabs/TabItem.d.ts +3 -0
- package/dist/src/components/Tabs/Tabs.d.ts +6 -0
- package/dist/src/components/Tabs/Tabs.styled.d.ts +176 -0
- package/dist/src/components/Tabs/Tabs.types.d.ts +60 -0
- package/dist/src/components/Tabs/index.d.ts +2 -0
- package/dist/src/components/Tag/Tag.d.ts +3 -0
- package/dist/src/components/Tag/Tag.styled.d.ts +73 -0
- package/dist/src/components/Tag/Tag.types.d.ts +45 -0
- package/dist/src/components/Tag/index.d.ts +2 -0
- package/dist/src/components/TextField/TextField.d.ts +3 -0
- package/dist/src/components/TextField/TextField.styled.d.ts +335 -0
- package/dist/src/components/TextField/TextField.types.d.ts +67 -0
- package/dist/src/components/TextField/index.d.ts +2 -0
- package/dist/src/components/Textarea/Textarea.d.ts +3 -0
- package/dist/src/components/Textarea/Textarea.styled.d.ts +67 -0
- package/dist/src/components/Textarea/Textarea.types.d.ts +32 -0
- package/dist/src/components/Textarea/index.d.ts +2 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/src/components/Tooltip/Tooltip.styled.d.ts +51 -0
- package/dist/src/components/Tooltip/Tooltip.types.d.ts +22 -0
- package/dist/src/components/Tooltip/TooltipPortal.d.ts +8 -0
- package/dist/src/components/Tooltip/index.d.ts +2 -0
- package/dist/src/components/TopBar/TopBar.d.ts +3 -0
- package/dist/src/components/TopBar/TopBar.styled.d.ts +19 -0
- package/dist/src/components/TopBar/TopBar.types.d.ts +27 -0
- package/dist/src/components/TopBar/index.d.ts +2 -0
- package/dist/src/components/Typography/Typography.d.ts +3 -0
- package/dist/src/components/Typography/Typography.styled.d.ts +94 -0
- package/dist/src/components/Typography/Typography.types.d.ts +63 -0
- package/dist/src/components/Typography/index.d.ts +2 -0
- package/dist/src/components/Uploader/Uploader.constants.d.ts +12 -0
- package/dist/src/components/Uploader/Uploader.context.d.ts +185 -0
- package/dist/src/components/Uploader/Uploader.d.ts +3 -0
- package/dist/src/components/Uploader/Uploader.types.d.ts +238 -0
- package/dist/src/components/Uploader/components/Announcer/Announcer.d.ts +2 -0
- package/dist/src/components/Uploader/components/Announcer/index.d.ts +1 -0
- package/dist/src/components/Uploader/components/DropZone/DropZone.d.ts +3 -0
- package/dist/src/components/Uploader/components/DropZone/DropZone.styled.d.ts +68 -0
- package/dist/src/components/Uploader/components/DropZone/index.d.ts +1 -0
- package/dist/src/components/Uploader/components/FileItem/FileItem.d.ts +18 -0
- package/dist/src/components/Uploader/components/FileItem/FileItem.styled.d.ts +67 -0
- package/dist/src/components/Uploader/components/FileItem/index.d.ts +2 -0
- package/dist/src/components/Uploader/components/FileItem/useFileItem.d.ts +33 -0
- package/dist/src/components/Uploader/components/FileList/FileList.d.ts +12 -0
- package/dist/src/components/Uploader/components/FileList/FileList.styled.d.ts +1 -0
- package/dist/src/components/Uploader/components/FileList/index.d.ts +2 -0
- package/dist/src/components/Uploader/components/RejectionList/RejectionList.d.ts +12 -0
- package/dist/src/components/Uploader/components/RejectionList/RejectionList.styled.d.ts +10 -0
- package/dist/src/components/Uploader/components/RejectionList/index.d.ts +2 -0
- package/dist/src/components/Uploader/components/index.d.ts +5 -0
- package/dist/src/components/Uploader/hooks/index.d.ts +11 -0
- package/dist/src/components/Uploader/hooks/useAnnouncements.d.ts +10 -0
- package/dist/src/components/Uploader/hooks/useDragAndDrop.d.ts +17 -0
- package/dist/src/components/Uploader/hooks/useFileInput.d.ts +19 -0
- package/dist/src/components/Uploader/hooks/useFileOperations.d.ts +18 -0
- package/dist/src/components/Uploader/hooks/useFileSelection.d.ts +36 -0
- package/dist/src/components/Uploader/hooks/useFileUpload.d.ts +66 -0
- package/dist/src/components/Uploader/hooks/useUploaderContext.d.ts +3 -0
- package/dist/src/components/Uploader/hooks/useUploaderRef.d.ts +13 -0
- package/dist/src/components/Uploader/hooks/useUploaderState.d.ts +30 -0
- package/dist/src/components/Uploader/hooks/useValidation.d.ts +30 -0
- package/dist/src/components/Uploader/index.d.ts +6 -0
- package/dist/src/components/Uploader/types/errors.d.ts +28 -0
- package/dist/src/components/Uploader/types/events.d.ts +65 -0
- package/dist/src/components/Uploader/types/file.d.ts +116 -0
- package/dist/src/components/Uploader/types/index.d.ts +3 -0
- package/dist/src/components/Uploader/utils/createFetchUpload.d.ts +32 -0
- package/dist/src/components/Uploader/utils/createXhrUpload.d.ts +45 -0
- package/dist/src/components/Uploader/utils/detectDuplicates.d.ts +5 -0
- package/dist/src/components/Uploader/utils/formatFileSize.d.ts +3 -0
- package/dist/src/components/Uploader/utils/generateId.d.ts +1 -0
- package/dist/src/components/Uploader/utils/getFileExtension.d.ts +1 -0
- package/dist/src/components/Uploader/utils/index.d.ts +8 -0
- package/dist/src/components/Uploader/utils/normalizeFile.d.ts +3 -0
- package/dist/src/components/Uploader/utils/validateFileType.d.ts +1 -0
- package/dist/src/components/UserArea/UserArea.d.ts +3 -0
- package/dist/src/components/UserArea/UserArea.styled.d.ts +65 -0
- package/dist/src/components/UserArea/UserArea.types.d.ts +49 -0
- package/dist/src/components/UserArea/index.d.ts +2 -0
- package/dist/src/components/ZvooveBrand/ZvooveBrand.constants.d.ts +26 -0
- package/dist/src/components/ZvooveBrand/ZvooveBrand.d.ts +6 -0
- package/dist/src/components/ZvooveBrand/ZvooveBrand.types.d.ts +77 -0
- package/dist/src/components/ZvooveBrand/index.d.ts +2 -0
- package/dist/src/config.d.ts +48 -0
- package/dist/src/constants/align.d.ts +3 -0
- package/dist/src/constants/breakpoints.d.ts +12 -0
- package/dist/src/constants/colors.d.ts +7 -0
- package/dist/src/constants/direction.d.ts +3 -0
- package/dist/src/constants/dom.d.ts +5 -0
- package/dist/src/constants/gap.d.ts +8 -0
- package/dist/src/constants/index.d.ts +11 -0
- package/dist/src/constants/justify.d.ts +3 -0
- package/dist/src/constants/margin.d.ts +16 -0
- package/dist/src/constants/overflow.d.ts +5 -0
- package/dist/src/constants/padding.d.ts +16 -0
- package/dist/src/constants/wrap.d.ts +3 -0
- package/dist/src/hooks/index.d.ts +2 -0
- package/dist/src/hooks/useBreakpoint.d.ts +51 -0
- package/dist/src/hooks/useClickOutside.d.ts +4 -0
- package/dist/src/index.d.ts +52 -0
- package/dist/src/libs/index.d.ts +1 -0
- package/dist/src/libs/tv.d.ts +23 -0
- package/dist/src/types/index.d.ts +83 -0
- package/dist/src/utils/checkIconSource.d.ts +1 -0
- package/dist/src/utils/containsOnlySizeProps.d.ts +1 -0
- package/dist/src/utils/formatFromStringToDate.d.ts +1 -0
- package/dist/src/utils/getComponentTagName.d.ts +1 -0
- package/dist/src/utils/getFlexProps.d.ts +4 -0
- package/dist/src/utils/getOverflowProps.d.ts +23 -0
- package/dist/src/utils/getResponsiveValue.d.ts +35 -0
- package/dist/src/utils/getSpacingProps.d.ts +4 -0
- package/dist/src/utils/index.d.ts +15 -0
- package/dist/src/utils/isDefined.d.ts +1 -0
- package/dist/src/utils/isValidSizeUnit.d.ts +1 -0
- package/dist/src/utils/linkify.d.ts +2 -0
- package/dist/src/utils/logs.d.ts +6 -0
- package/dist/src/utils/setupUserEvent.d.ts +6 -0
- package/dist/src/utils/typeGuards.d.ts +21 -0
- package/dist/src/utils/viewports.d.ts +13 -0
- package/dist/theme.css +1 -1
- package/dist/unity-ui.cjs.js +1 -1
- package/dist/unity-ui.css +1 -1
- package/dist/unity-ui.es.js +66 -66
- package/package.json +50 -35
- package/dist/unity-ui.d.ts +0 -4951
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FILE_ERROR } from './errors';
|
|
3
|
+
/**
|
|
4
|
+
* Source from which a file was added to the uploader.
|
|
5
|
+
*/
|
|
6
|
+
export type FileSource = 'picker' | 'drop';
|
|
7
|
+
/**
|
|
8
|
+
* Status of a file in the upload process.
|
|
9
|
+
*/
|
|
10
|
+
export declare enum FILE_STATUS {
|
|
11
|
+
/** File is added but upload has not started. */
|
|
12
|
+
IDLE = "idle",
|
|
13
|
+
/** File is queued and waiting for upload. */
|
|
14
|
+
PENDING = "pending",
|
|
15
|
+
/** File upload is in progress. */
|
|
16
|
+
UPLOADING = "uploading",
|
|
17
|
+
/** File upload was canceled by user. */
|
|
18
|
+
CANCELED = "canceled",
|
|
19
|
+
/** File upload failed. */
|
|
20
|
+
FAILED = "failed",
|
|
21
|
+
/** File upload completed successfully. */
|
|
22
|
+
SUCCESS = "success"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Additional information that can be attached to a file.
|
|
26
|
+
*/
|
|
27
|
+
export interface FileInfo {
|
|
28
|
+
/**
|
|
29
|
+
* Additional text to display below the file name.
|
|
30
|
+
* @example "PDF Document"
|
|
31
|
+
*/
|
|
32
|
+
additionalInfo?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Custom React node to render as the file label.
|
|
35
|
+
* When provided, replaces the default file name display.
|
|
36
|
+
*/
|
|
37
|
+
customLabel?: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Allow additional custom properties.
|
|
40
|
+
*/
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Current state of a file in the uploader.
|
|
45
|
+
*/
|
|
46
|
+
export interface FileState {
|
|
47
|
+
/**
|
|
48
|
+
* Current status of the file.
|
|
49
|
+
*/
|
|
50
|
+
status: FILE_STATUS;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the file has a validation or upload error.
|
|
53
|
+
*/
|
|
54
|
+
hasError: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The error type if the file has an error.
|
|
57
|
+
*/
|
|
58
|
+
error?: FILE_ERROR;
|
|
59
|
+
/**
|
|
60
|
+
* Human-readable error message.
|
|
61
|
+
*/
|
|
62
|
+
errorMessage?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Upload progress percentage (0-100).
|
|
65
|
+
* Only relevant when status is UPLOADING.
|
|
66
|
+
*/
|
|
67
|
+
progress?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Custom status message to display.
|
|
70
|
+
* Overrides the default status text when provided.
|
|
71
|
+
*/
|
|
72
|
+
statusMessage?: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Represents a file in the uploader with its metadata and state.
|
|
76
|
+
*/
|
|
77
|
+
export interface FileItem {
|
|
78
|
+
/**
|
|
79
|
+
* Unique identifier for this file item.
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
/**
|
|
83
|
+
* The actual File object.
|
|
84
|
+
*/
|
|
85
|
+
file: File;
|
|
86
|
+
/**
|
|
87
|
+
* Additional information about the file.
|
|
88
|
+
*/
|
|
89
|
+
info: FileInfo;
|
|
90
|
+
/**
|
|
91
|
+
* Current state of the file.
|
|
92
|
+
*/
|
|
93
|
+
state: FileState;
|
|
94
|
+
/**
|
|
95
|
+
* How the file was added to the uploader.
|
|
96
|
+
*/
|
|
97
|
+
source: FileSource;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Represents a file that was rejected during validation.
|
|
101
|
+
* These files are not added to the file list but shown in the rejection list.
|
|
102
|
+
*/
|
|
103
|
+
export interface RejectedFile {
|
|
104
|
+
/**
|
|
105
|
+
* The actual File object that was rejected.
|
|
106
|
+
*/
|
|
107
|
+
file: File;
|
|
108
|
+
/**
|
|
109
|
+
* The validation error that caused the rejection.
|
|
110
|
+
*/
|
|
111
|
+
error: FILE_ERROR;
|
|
112
|
+
/**
|
|
113
|
+
* Human-readable error message.
|
|
114
|
+
*/
|
|
115
|
+
errorMessage: string;
|
|
116
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UploadFunction } from '../hooks/useFileUpload';
|
|
2
|
+
interface FetchUploadOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The URL to upload the file to.
|
|
5
|
+
*/
|
|
6
|
+
url: string;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP method to use for the upload.
|
|
9
|
+
* @default 'POST'
|
|
10
|
+
*/
|
|
11
|
+
method?: string;
|
|
12
|
+
/**
|
|
13
|
+
* HTTP headers to include in the request.
|
|
14
|
+
*/
|
|
15
|
+
headers?: Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The key to use when appending the file to FormData.
|
|
18
|
+
* @default 'file'
|
|
19
|
+
*/
|
|
20
|
+
formDataKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Additional data to include in the FormData.
|
|
23
|
+
*/
|
|
24
|
+
additionalData?: Record<string, string | Blob>;
|
|
25
|
+
/**
|
|
26
|
+
* Request timeout in milliseconds.
|
|
27
|
+
* @default 0 (no timeout)
|
|
28
|
+
*/
|
|
29
|
+
timeout?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function createFetchUpload(options: FetchUploadOptions): UploadFunction;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UploadFunction } from '../hooks/useFileUpload';
|
|
2
|
+
interface XhrUploadOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The URL to upload the file to.
|
|
5
|
+
*/
|
|
6
|
+
url: string;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP method to use for the upload.
|
|
9
|
+
* @default 'POST'
|
|
10
|
+
*/
|
|
11
|
+
method?: string;
|
|
12
|
+
/**
|
|
13
|
+
* HTTP headers to include in the request.
|
|
14
|
+
*/
|
|
15
|
+
headers?: Record<string, string>;
|
|
16
|
+
/**
|
|
17
|
+
* The key to use when appending the file to FormData.
|
|
18
|
+
* @default 'file'
|
|
19
|
+
*/
|
|
20
|
+
formDataKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Additional data to include in the FormData.
|
|
23
|
+
*/
|
|
24
|
+
additionalData?: Record<string, string | Blob>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates an XHR-based upload function for use with useFileUpload.
|
|
28
|
+
* Provides progress tracking and cancellation support.
|
|
29
|
+
*
|
|
30
|
+
* @param options - Configuration options for the XHR upload
|
|
31
|
+
* @returns An upload function compatible with useFileUpload
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* const { uploadFile } = useFileUpload({
|
|
36
|
+
* uploaderRef,
|
|
37
|
+
* uploadFunction: createXhrUpload({
|
|
38
|
+
* url: 'https://api.example.com/upload',
|
|
39
|
+
* headers: { 'Authorization': 'Bearer token' }
|
|
40
|
+
* })
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function createXhrUpload(options: XhrUploadOptions): UploadFunction;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateId: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFileExtension: (file: File | string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { formatFileSize, DEFAULT_FILE_SIZE_UNITS } from './formatFileSize';
|
|
2
|
+
export { generateId } from './generateId';
|
|
3
|
+
export { detectDuplicates, getFileIdentityKey } from './detectDuplicates';
|
|
4
|
+
export { validateFileType } from './validateFileType';
|
|
5
|
+
export { getFileExtension } from './getFileExtension';
|
|
6
|
+
export { normalizeFile, normalizeFileWithError } from './normalizeFile';
|
|
7
|
+
export { createXhrUpload } from './createXhrUpload';
|
|
8
|
+
export { createFetchUpload } from './createFetchUpload';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FILE_ERROR, FileItem, FileSource } from '../types';
|
|
2
|
+
export declare const normalizeFile: (file: File, source: FileSource) => FileItem;
|
|
3
|
+
export declare const normalizeFileWithError: (file: File, source: FileSource, error: FILE_ERROR, errorMessage: string) => FileItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const validateFileType: (file: File, accept?: string) => boolean;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const userAreaStyles: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
clickable: {
|
|
3
|
+
true: string[];
|
|
4
|
+
};
|
|
5
|
+
compact: {
|
|
6
|
+
true: string[];
|
|
7
|
+
false: never[];
|
|
8
|
+
};
|
|
9
|
+
showInfo: {
|
|
10
|
+
true: string[];
|
|
11
|
+
false: string[];
|
|
12
|
+
};
|
|
13
|
+
infoPosition: {
|
|
14
|
+
left: string[];
|
|
15
|
+
right: never[];
|
|
16
|
+
};
|
|
17
|
+
}, undefined, string[], {
|
|
18
|
+
clickable: {
|
|
19
|
+
true: string[];
|
|
20
|
+
};
|
|
21
|
+
compact: {
|
|
22
|
+
true: string[];
|
|
23
|
+
false: never[];
|
|
24
|
+
};
|
|
25
|
+
showInfo: {
|
|
26
|
+
true: string[];
|
|
27
|
+
false: string[];
|
|
28
|
+
};
|
|
29
|
+
infoPosition: {
|
|
30
|
+
left: string[];
|
|
31
|
+
right: never[];
|
|
32
|
+
};
|
|
33
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
34
|
+
clickable: {
|
|
35
|
+
true: string[];
|
|
36
|
+
};
|
|
37
|
+
compact: {
|
|
38
|
+
true: string[];
|
|
39
|
+
false: never[];
|
|
40
|
+
};
|
|
41
|
+
showInfo: {
|
|
42
|
+
true: string[];
|
|
43
|
+
false: string[];
|
|
44
|
+
};
|
|
45
|
+
infoPosition: {
|
|
46
|
+
left: string[];
|
|
47
|
+
right: never[];
|
|
48
|
+
};
|
|
49
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
50
|
+
export declare const userInfoStyles: import('tailwind-variants').TVReturnType<{
|
|
51
|
+
visible: {
|
|
52
|
+
true: string[];
|
|
53
|
+
false: string[];
|
|
54
|
+
};
|
|
55
|
+
}, undefined, string[], {
|
|
56
|
+
visible: {
|
|
57
|
+
true: string[];
|
|
58
|
+
false: string[];
|
|
59
|
+
};
|
|
60
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
61
|
+
visible: {
|
|
62
|
+
true: string[];
|
|
63
|
+
false: string[];
|
|
64
|
+
};
|
|
65
|
+
}, undefined, string[], unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AvatarProps, PopUpMenuItem, PopUpMenuPlacement } from '../../index.ts';
|
|
2
|
+
import { ResponsiveType } from '../../types';
|
|
3
|
+
export interface UserAreaProps {
|
|
4
|
+
/**
|
|
5
|
+
* The user's display name
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Optional subtitle (e.g. role, company)
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The avatar of the user (see AvatarProps)
|
|
14
|
+
*/
|
|
15
|
+
avatar: AvatarProps;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to display in compact mode (small avatar)
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
compact?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to show the user info text (name and subtitle)
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
showInfo?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Position of the info text relative to the avatar
|
|
28
|
+
* @default 'right'
|
|
29
|
+
*/
|
|
30
|
+
infoPosition?: 'left' | 'right';
|
|
31
|
+
/**
|
|
32
|
+
* Menu items displayed in a PopUpMenu when the user area is clicked
|
|
33
|
+
*/
|
|
34
|
+
menuItems?: PopUpMenuItem[];
|
|
35
|
+
/**
|
|
36
|
+
* Callback when a menu item is clicked
|
|
37
|
+
*/
|
|
38
|
+
onItemClick?: (item: PopUpMenuItem) => void;
|
|
39
|
+
/**
|
|
40
|
+
* The max height of the popup menu
|
|
41
|
+
* @default '80dvh'
|
|
42
|
+
*/
|
|
43
|
+
menuMaxHeight?: ResponsiveType<number | string>;
|
|
44
|
+
/**
|
|
45
|
+
* The placement of the popup menu
|
|
46
|
+
* @default 'top-left'
|
|
47
|
+
*/
|
|
48
|
+
menuPlacement?: ResponsiveType<PopUpMenuPlacement>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ZvooveBrandSize, ZvooveProduct } from './ZvooveBrand.types';
|
|
2
|
+
type ProductIconComponent = (props: {
|
|
3
|
+
size?: number;
|
|
4
|
+
color?: string;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
interface ProductDescriptor {
|
|
7
|
+
Icon: ProductIconComponent;
|
|
8
|
+
/** Tagline shown next to the word mark. `null` means the product has no tagline. */
|
|
9
|
+
tagline: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const productMap: Record<ZvooveProduct, ProductDescriptor>;
|
|
12
|
+
interface BrandSize {
|
|
13
|
+
/** Logomark size in pixels (square). */
|
|
14
|
+
icon: number;
|
|
15
|
+
/** Visible "zvoove" wordmark glyph height in pixels. */
|
|
16
|
+
name: number;
|
|
17
|
+
/** Tagline font size in pixels. */
|
|
18
|
+
tagline: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Size scale for the brand lock-up. `md` matches the Figma baseline
|
|
22
|
+
* (icon 32px, wordmark 13px, tagline 24px). All other sizes scale
|
|
23
|
+
* proportionally so the design ratios stay intact.
|
|
24
|
+
*/
|
|
25
|
+
export declare const sizeMap: Record<ZvooveBrandSize, BrandSize>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ZvooveBrandProps } from './ZvooveBrand.types';
|
|
2
|
+
declare const ZvooveBrand: {
|
|
3
|
+
({ product, iconStyle, size, hideIcon, hideName, hideTagline, tagline: taglineProp, iconSize: iconSizeProp, nameHeight: nameHeightProp, taglineSize: taglineSizeProp, }: ZvooveBrandProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
export default ZvooveBrand;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zvoove product whose brand identity to display.
|
|
3
|
+
* Determines the logomark and the tagline text (e.g. "One", "Recruit").
|
|
4
|
+
*/
|
|
5
|
+
export type ZvooveProduct = 'default' | 'one' | 'recruit' | 'invoice-monitor' | 'go' | 'insights' | 'work-expert' | 'elevate' | 'cashlink' | 'docs-ai';
|
|
6
|
+
/**
|
|
7
|
+
* Visual style of the logomark.
|
|
8
|
+
* - `duotone`: brand colors in light mode, switches to the themed flat
|
|
9
|
+
* variant in dark mode so the logomark always follows the surface tone.
|
|
10
|
+
* - `flat`: a single-color version using the surface foreground token,
|
|
11
|
+
* themed in both light and dark mode.
|
|
12
|
+
*/
|
|
13
|
+
export type ZvooveBrandIconStyle = 'duotone' | 'flat';
|
|
14
|
+
/**
|
|
15
|
+
* Overall size of the brand lock-up. Each tier scales the logomark,
|
|
16
|
+
* wordmark and tagline together while keeping the design ratios.
|
|
17
|
+
* `md` matches the Figma baseline (icon 32px, wordmark 13px, tagline 24px).
|
|
18
|
+
*/
|
|
19
|
+
export type ZvooveBrandSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20
|
+
export interface ZvooveBrandProps {
|
|
21
|
+
/**
|
|
22
|
+
* The zvoove product to display. Drives both the logomark and the tagline.
|
|
23
|
+
* @default 'default'
|
|
24
|
+
*/
|
|
25
|
+
product?: ZvooveProduct;
|
|
26
|
+
/**
|
|
27
|
+
* Visual style of the logomark.
|
|
28
|
+
* @default 'duotone'
|
|
29
|
+
*/
|
|
30
|
+
iconStyle?: ZvooveBrandIconStyle;
|
|
31
|
+
/**
|
|
32
|
+
* Overall size of the brand lock-up. Sets sensible defaults for the
|
|
33
|
+
* logomark, wordmark and tagline while keeping the Figma design ratios.
|
|
34
|
+
* Individual `iconSize`, `nameHeight` and `taglineSize` props can
|
|
35
|
+
* override the values picked from the size.
|
|
36
|
+
* @default 'md'
|
|
37
|
+
*/
|
|
38
|
+
size?: ZvooveBrandSize;
|
|
39
|
+
/**
|
|
40
|
+
* Hide the logomark.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
hideIcon?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Hide the "zvoove" wordmark.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
hideName?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Hide the product tagline (e.g. "One", "Recruit").
|
|
51
|
+
* Has no effect when `product="default"` since the default brand has no tagline.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
hideTagline?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Override the product tagline with a custom string. Falls back to the
|
|
57
|
+
* tagline derived from `product` when omitted. Useful for sub-products,
|
|
58
|
+
* environment labels (e.g. "Beta", "Staging") or fully custom branding.
|
|
59
|
+
* Has no effect when `hideTagline` is `true`.
|
|
60
|
+
*/
|
|
61
|
+
tagline?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Override the logomark size in pixels. Falls back to the value derived
|
|
64
|
+
* from `size`.
|
|
65
|
+
*/
|
|
66
|
+
iconSize?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Override the "zvoove" wordmark height in pixels. Falls back to the
|
|
69
|
+
* value derived from `size`.
|
|
70
|
+
*/
|
|
71
|
+
nameHeight?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Override the product tagline font size in pixels. Falls back to the
|
|
74
|
+
* value derived from `size`.
|
|
75
|
+
*/
|
|
76
|
+
taglineSize?: number;
|
|
77
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unity UI CLI configuration type.
|
|
3
|
+
*/
|
|
4
|
+
export interface UnityUIConfig {
|
|
5
|
+
/** Component scaffolding settings */
|
|
6
|
+
components?: {
|
|
7
|
+
/** Directory where components are created (default: 'src/components') */
|
|
8
|
+
directory?: string;
|
|
9
|
+
/** Barrel file to update with exports (default: 'src/index.ts') */
|
|
10
|
+
indexFile?: string;
|
|
11
|
+
};
|
|
12
|
+
/** AI agent integration settings */
|
|
13
|
+
ai?: {
|
|
14
|
+
/** Agent Skills generation settings */
|
|
15
|
+
skills?: {
|
|
16
|
+
/** Base directory (or directories) for skills output (default: '.claude') */
|
|
17
|
+
output?: string | string[];
|
|
18
|
+
};
|
|
19
|
+
/** AI rules file generation settings */
|
|
20
|
+
rules?: {
|
|
21
|
+
/** Directory where rule files are written (default: '.') */
|
|
22
|
+
output?: string;
|
|
23
|
+
/** Output filename (default: 'UNITYUI.md') */
|
|
24
|
+
filename?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Identity function that provides type hints for unity-ui.config.mjs.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```js
|
|
33
|
+
* // unity-ui.config.mjs
|
|
34
|
+
* import { defineConfig } from '@zvoove/unity-ui/config';
|
|
35
|
+
*
|
|
36
|
+
* export default defineConfig({
|
|
37
|
+
* components: {
|
|
38
|
+
* directory: 'src/components',
|
|
39
|
+
* indexFile: 'src/index.ts',
|
|
40
|
+
* },
|
|
41
|
+
* ai: {
|
|
42
|
+
* skills: { output: '.claude' },
|
|
43
|
+
* rules: { output: '.' },
|
|
44
|
+
* },
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
export declare function defineConfig(config: UnityUIConfig): UnityUIConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Viewport } from '../types';
|
|
2
|
+
export declare const BREAKPOINTS: {
|
|
3
|
+
readonly minimum: 0;
|
|
4
|
+
readonly mobile: 768;
|
|
5
|
+
readonly tablet: 1024;
|
|
6
|
+
readonly laptop: 1280;
|
|
7
|
+
readonly desktop: 1536;
|
|
8
|
+
readonly wide: 1920;
|
|
9
|
+
readonly ultrawide: 2560;
|
|
10
|
+
};
|
|
11
|
+
/** Ordered array of breakpoints from smallest to largest */
|
|
12
|
+
export declare const BREAKPOINT_ORDER: Viewport[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BackgroundColors, ForegroundColors } from '../types';
|
|
2
|
+
export declare const backgroundColors: Record<BackgroundColors, string[]>;
|
|
3
|
+
export declare const backgroundHoverColors: Record<BackgroundColors, string[]>;
|
|
4
|
+
export declare const semanticForegroundColors: Record<BackgroundColors, string[]>;
|
|
5
|
+
export declare const semanticBackgroundColors: Record<ForegroundColors, string[]>;
|
|
6
|
+
export declare const strokeColors: Record<BackgroundColors, string[]>;
|
|
7
|
+
export declare const foregroundColors: Record<ForegroundColors, string[]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS selector for all focusable elements in the DOM.
|
|
3
|
+
* Includes buttons, links, inputs, selects, textareas, and elements with tabindex >= 0
|
|
4
|
+
*/
|
|
5
|
+
export declare const FOCUSABLE_ELEMENTS_SELECTOR = "button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GapResponsiveStyles, ResponsiveTypeFixed, SpacingKeys } from '../types';
|
|
2
|
+
export declare const gap: Record<SpacingKeys, string>;
|
|
3
|
+
export declare const responsiveGap: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
4
|
+
export declare const gapRow: Record<SpacingKeys, string>;
|
|
5
|
+
export declare const responsiveGapRow: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
6
|
+
export declare const gapColumn: Record<SpacingKeys, string>;
|
|
7
|
+
export declare const responsiveGapColumn: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
8
|
+
export declare const gapResponsiveStyles: GapResponsiveStyles<'gap'>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './breakpoints';
|
|
2
|
+
export * from './colors';
|
|
3
|
+
export * from './padding';
|
|
4
|
+
export * from './margin';
|
|
5
|
+
export * from './gap';
|
|
6
|
+
export * from './dom';
|
|
7
|
+
export * from './justify';
|
|
8
|
+
export * from './align';
|
|
9
|
+
export * from './wrap';
|
|
10
|
+
export * from './direction';
|
|
11
|
+
export * from './overflow';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ResponsiveStyles, ResponsiveTypeFixed, SpacingKeys } from '../types';
|
|
2
|
+
export declare const margin: Record<SpacingKeys, string>;
|
|
3
|
+
export declare const marginResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
4
|
+
export declare const marginX: Record<SpacingKeys, string>;
|
|
5
|
+
export declare const marginXResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
6
|
+
export declare const marginY: Record<SpacingKeys, string>;
|
|
7
|
+
export declare const marginYResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
8
|
+
export declare const marginTop: Record<SpacingKeys, string>;
|
|
9
|
+
export declare const marginTopResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
10
|
+
export declare const marginBottom: Record<SpacingKeys, string>;
|
|
11
|
+
export declare const marginBottomResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
12
|
+
export declare const marginLeft: Record<SpacingKeys, string>;
|
|
13
|
+
export declare const marginLeftResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
14
|
+
export declare const marginRight: Record<SpacingKeys, string>;
|
|
15
|
+
export declare const marginRightResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
16
|
+
export declare const marginResponsiveStyles: ResponsiveStyles<'margin'>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { OverflowBase, OverflowYOrX, ResponsiveGenericStyles } from '../types';
|
|
2
|
+
export declare const overflow: Record<OverflowBase, string>;
|
|
3
|
+
export declare const overflowY: Record<OverflowYOrX, string>;
|
|
4
|
+
export declare const overflowX: Record<OverflowYOrX, string>;
|
|
5
|
+
export declare const overflowResponsiveStyles: ResponsiveGenericStyles<'overflow', OverflowBase> & ResponsiveGenericStyles<'overflowY', OverflowYOrX> & ResponsiveGenericStyles<'overflowX', OverflowYOrX>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ResponsiveStyles, ResponsiveTypeFixed, SpacingKeys } from '../types';
|
|
2
|
+
export declare const padding: Record<SpacingKeys, string>;
|
|
3
|
+
export declare const paddingResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
4
|
+
export declare const paddingX: Record<SpacingKeys, string>;
|
|
5
|
+
export declare const paddingXResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
6
|
+
export declare const paddingY: Record<SpacingKeys, string>;
|
|
7
|
+
export declare const paddingYResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
8
|
+
export declare const paddingTop: Record<SpacingKeys, string>;
|
|
9
|
+
export declare const paddingTopResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
10
|
+
export declare const paddingBottom: Record<SpacingKeys, string>;
|
|
11
|
+
export declare const paddingBottomResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
12
|
+
export declare const paddingLeft: Record<SpacingKeys, string>;
|
|
13
|
+
export declare const paddingLeftResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
14
|
+
export declare const paddingRight: Record<SpacingKeys, string>;
|
|
15
|
+
export declare const paddingRightResponsive: ResponsiveTypeFixed<Record<SpacingKeys, string>>;
|
|
16
|
+
export declare const paddingResponsiveStyles: ResponsiveStyles<'padding'>;
|