ics-ui-kit 0.1.0-alpha.9 → 0.1.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/README.md +36 -0
- package/dist/AlertContext-CxjW1LVL.js +13 -0
- package/dist/AlertContext-CxjW1LVL.js.map +1 -0
- package/dist/AlertIcon-5B6AgZpe.js +96 -0
- package/dist/AlertIcon-5B6AgZpe.js.map +1 -0
- package/dist/Button-Dg89xRSi.js +36 -0
- package/dist/Button-Dg89xRSi.js.map +1 -0
- package/dist/ButtonBase-e6qyv6mD.js +158 -0
- package/dist/ButtonBase-e6qyv6mD.js.map +1 -0
- package/dist/CheckboxField-cX09-eBX.js +347 -0
- package/dist/CheckboxField-cX09-eBX.js.map +1 -0
- package/dist/Command-BhbfL5wm.js +554 -0
- package/dist/Command-BhbfL5wm.js.map +1 -0
- package/dist/ComponentVariantProvider-B0SFUaXB.js +8 -0
- package/dist/ComponentVariantProvider-B0SFUaXB.js.map +1 -0
- package/dist/DayPicker-4hE1QEvO.js +2452 -0
- package/dist/DayPicker-4hE1QEvO.js.map +1 -0
- package/dist/Description-BTPMlTT-.js +19 -0
- package/dist/Description-BTPMlTT-.js.map +1 -0
- package/dist/Dialog-ByiJIDhl.js +99 -0
- package/dist/Dialog-ByiJIDhl.js.map +1 -0
- package/dist/Divider-DPW5ZhZ8.js +24 -0
- package/dist/Divider-DPW5ZhZ8.js.map +1 -0
- package/dist/EmptyState-DRKjscH-.js +12 -0
- package/dist/EmptyState-DRKjscH-.js.map +1 -0
- package/dist/ErrorState-B26k67-z.js +11 -0
- package/dist/ErrorState-B26k67-z.js.map +1 -0
- package/dist/FeatureIcon-BGE0Orkc.js +23 -0
- package/dist/FeatureIcon-BGE0Orkc.js.map +1 -0
- package/dist/Field-CKl59qUB.js +86 -0
- package/dist/Field-CKl59qUB.js.map +1 -0
- package/dist/FieldLabel-QJ4rJFOi.js +70 -0
- package/dist/FieldLabel-QJ4rJFOi.js.map +1 -0
- package/dist/FolderSvg-cw0DxNVy.js +742 -0
- package/dist/FolderSvg-cw0DxNVy.js.map +1 -0
- package/dist/FormFooterTemplate-DPB6Dkxn.js +88 -0
- package/dist/FormFooterTemplate-DPB6Dkxn.js.map +1 -0
- package/dist/FormHeader--F6b2aRk.js +49 -0
- package/dist/FormHeader--F6b2aRk.js.map +1 -0
- package/dist/FormStack-B4QOuYgO.js +127 -0
- package/dist/FormStack-B4QOuYgO.js.map +1 -0
- package/dist/HintState-BxrCAWqq.js +12 -0
- package/dist/HintState-BxrCAWqq.js.map +1 -0
- package/dist/Icon-DH3ev9GK.js +22 -0
- package/dist/Icon-DH3ev9GK.js.map +1 -0
- package/dist/IconButton-DwkpNgn3.js +33 -0
- package/dist/IconButton-DwkpNgn3.js.map +1 -0
- package/dist/IconTooltip-CKJKGHbk.js +11 -0
- package/dist/IconTooltip-CKJKGHbk.js.map +1 -0
- package/dist/Indicator-AqxHWPA9.js +29 -0
- package/dist/Indicator-AqxHWPA9.js.map +1 -0
- package/dist/InputGroup-BvD9Igmt.js +137 -0
- package/dist/InputGroup-BvD9Igmt.js.map +1 -0
- package/dist/InputOTP-B2e1nfSO.js +259 -0
- package/dist/InputOTP-B2e1nfSO.js.map +1 -0
- package/dist/Loader-BpHiL6W-.js +58 -0
- package/dist/Loader-BpHiL6W-.js.map +1 -0
- package/dist/MenuItem-pvsONHlh.js +32 -0
- package/dist/MenuItem-pvsONHlh.js.map +1 -0
- package/dist/MenuItemShortcut-DgPol9Nz.js +21 -0
- package/dist/MenuItemShortcut-DgPol9Nz.js.map +1 -0
- package/dist/MenuItemText-7uPl9P3z.js +20 -0
- package/dist/MenuItemText-7uPl9P3z.js.map +1 -0
- package/dist/Overlay-2XMlxApi.js +28 -0
- package/dist/Overlay-2XMlxApi.js.map +1 -0
- package/dist/Popover-Dvr7y0YY.js +258 -0
- package/dist/Popover-Dvr7y0YY.js.map +1 -0
- package/dist/RichButton-DuPTenmS.js +49 -0
- package/dist/RichButton-DuPTenmS.js.map +1 -0
- package/dist/ScrollArea-CuuTeDn3.js +576 -0
- package/dist/ScrollArea-CuuTeDn3.js.map +1 -0
- package/dist/ScrollShadowContainer-DdrnF8qU.js +36 -0
- package/dist/ScrollShadowContainer-DdrnF8qU.js.map +1 -0
- package/dist/SearchSelectTag-DFCX9zT1.js +56 -0
- package/dist/SearchSelectTag-DFCX9zT1.js.map +1 -0
- package/dist/Select-DRwv6-eZ.js +980 -0
- package/dist/Select-DRwv6-eZ.js.map +1 -0
- package/dist/Sheet-rtwmzm2-.js +83 -0
- package/dist/Sheet-rtwmzm2-.js.map +1 -0
- package/dist/Shortcut-D8L15_ed.js +22 -0
- package/dist/Shortcut-D8L15_ed.js.map +1 -0
- package/dist/Skeleton-y6I-i9q5.js +21 -0
- package/dist/Skeleton-y6I-i9q5.js.map +1 -0
- package/dist/Tag-DdHXTyKF.js +199 -0
- package/dist/Tag-DdHXTyKF.js.map +1 -0
- package/dist/Text-DeBE8AKl.js +22 -0
- package/dist/Text-DeBE8AKl.js.map +1 -0
- package/dist/TextInput-Cj50ImXi.js +205 -0
- package/dist/TextInput-Cj50ImXi.js.map +1 -0
- package/dist/TextOverflowTooltip-DlUgic5y.js +36 -0
- package/dist/TextOverflowTooltip-DlUgic5y.js.map +1 -0
- package/dist/Toggle-v_HT3Gm2.js +40 -0
- package/dist/Toggle-v_HT3Gm2.js.map +1 -0
- package/dist/Tooltip-C4rVuWr4.js +473 -0
- package/dist/Tooltip-C4rVuWr4.js.map +1 -0
- package/dist/TriggerButton-CfDObWP9.js +33 -0
- package/dist/TriggerButton-CfDObWP9.js.map +1 -0
- package/dist/blocks/auth/otp-form/OTPForm.d.ts +47 -0
- package/dist/blocks/auth/otp-form/OTPForm.stories.d.ts +40 -0
- package/dist/blocks/auth/otp-form/components/EmailForm.d.ts +25 -0
- package/dist/blocks/auth/otp-form/components/OTPInputForm.d.ts +27 -0
- package/dist/blocks/auth/otp-form/components/ResendButton.d.ts +14 -0
- package/dist/blocks/auth/otp-form/index.d.ts +3 -0
- package/dist/blocks/auth/otp-form/utils/OTPError.d.ts +8 -0
- package/dist/blocks/auth/otp-form.d.ts +2 -0
- package/dist/blocks/auth/otp-form.js +309 -0
- package/dist/blocks/auth/otp-form.js.map +1 -0
- package/dist/buildMatchPatternFn-d7GTeGl_.js +68 -0
- package/dist/buildMatchPatternFn-d7GTeGl_.js.map +1 -0
- package/dist/{bundle-mjs-D6wdQkGI.js → bundle-mjs-CQ0w4GOB.js} +347 -338
- package/dist/{bundle-mjs-D6wdQkGI.js.map → bundle-mjs-CQ0w4GOB.js.map} +1 -1
- package/dist/{check-C-TqZgvb.js → check-CeyaOoZv.js} +2 -2
- package/dist/{check-C-TqZgvb.js.map → check-CeyaOoZv.js.map} +1 -1
- package/dist/chevron-down-CAOItu8X.js +14 -0
- package/dist/chevron-down-CAOItu8X.js.map +1 -0
- package/dist/chevron-left-D6FtXcdU.js +14 -0
- package/dist/chevron-left-D6FtXcdU.js.map +1 -0
- package/dist/chevron-right-D3juAhA-.js +14 -0
- package/dist/chevron-right-D3juAhA-.js.map +1 -0
- package/dist/chevron-up-UDiVTHo0.js +12 -0
- package/dist/chevron-up-UDiVTHo0.js.map +1 -0
- package/dist/circle-alert-CVIokIC7.js +16 -0
- package/dist/circle-alert-CVIokIC7.js.map +1 -0
- package/dist/circle-x-u75Rx3Tj.js +16 -0
- package/dist/circle-x-u75Rx3Tj.js.map +1 -0
- package/dist/{utils-2yE78m5l.js → cn-dsXlqdJg.js} +2 -2
- package/dist/cn-dsXlqdJg.js.map +1 -0
- package/dist/components/alert/Alert.d.ts +12 -0
- package/dist/components/alert/Alert.stories.d.ts +38 -0
- package/dist/components/alert/AlertContext.d.ts +16 -0
- package/dist/components/alert/components/AlertButton.d.ts +8 -0
- package/dist/components/alert/components/AlertDescription.d.ts +7 -0
- package/dist/components/alert/components/AlertIcon.d.ts +14 -0
- package/dist/components/alert/components/AlertTitle.d.ts +11 -0
- package/dist/components/alert/index.d.ts +6 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +69 -0
- package/dist/components/alert-dialog/AlertDialog.stories.d.ts +32 -0
- package/dist/components/alert-dialog/index.d.ts +1 -0
- package/dist/components/alert-dialog.d.ts +2 -0
- package/dist/components/alert-dialog.js +313 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +50 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +7 -0
- package/dist/components/avatar/Avatar.stories.d.ts +10 -0
- package/dist/components/avatar/avatar-fallback/AvatarFallback.d.ts +6 -0
- package/dist/components/avatar/avatar-icon/AvatarIcon.d.ts +6 -0
- package/dist/components/avatar/avatar-image/AvatarImage.d.ts +3 -0
- package/dist/components/avatar/avatar-indicator/AvatarIndicator.d.ts +5 -0
- package/dist/components/avatar/avatar-label/AvatarLabel.d.ts +5 -0
- package/dist/components/avatar/avatar-label/AvatarLabel.stories.d.ts +10 -0
- package/dist/components/avatar/avatar-label/AvatarLabelContext.d.ts +9 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-avatar/AvatarLabelAvatar.d.ts +6 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-description/AvatarLabelDescription.d.ts +10 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-indicator/AvatarLabelIndicator.d.ts +6 -0
- package/dist/components/avatar/avatar-label/components/avatar-label-title/AvatarLabelTitle.d.ts +6 -0
- package/dist/components/avatar/index.d.ts +13 -0
- package/dist/components/avatar.d.ts +2 -0
- package/dist/components/avatar.js +432 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +7 -382
- package/dist/components/badge.js +24 -46
- package/dist/components/badge.js.map +1 -1
- package/dist/components/banner/Banner.d.ts +5 -0
- package/dist/components/banner/Banner.stories.d.ts +8 -0
- package/dist/components/banner/components/banner-description/BannerDescription.d.ts +5 -0
- package/dist/components/banner/components/banner-description/BannerDescription.stories.d.ts +14 -0
- package/dist/components/banner/components/banner-title/BannerTitle.d.ts +5 -0
- package/dist/components/banner/components/banner-title/BannerTitle.stories.d.ts +14 -0
- package/dist/components/banner/index.d.ts +3 -0
- package/dist/components/banner.d.ts +2 -0
- package/dist/components/banner.js +27 -0
- package/dist/components/banner.js.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +19 -0
- package/dist/components/breadcrumb/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumb.d.ts +2 -0
- package/dist/components/breadcrumb.js +78 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button/button/Button.d.ts +6 -167
- package/dist/components/button/button/Button.stories.d.ts +4 -164
- package/dist/components/button/button-base/ButtonBase.d.ts +7 -328
- package/dist/components/button/icon-button/IconButton.d.ts +5 -466
- package/dist/components/button/icon-button/IconButton.stories.d.ts +21 -2
- package/dist/components/button/index.d.ts +9 -0
- package/dist/components/button/rich-button/RichButton.d.ts +79 -0
- package/dist/components/button/rich-button/RichButton.stories.d.ts +46 -0
- package/dist/components/button/templates/loading-button/LoadingButtonTemplate.d.ts +12 -0
- package/dist/components/button/templates/loading-button/LoadingButtonTemplate.stories.d.ts +21 -0
- package/dist/components/button/trigger-button/TriggerButton.d.ts +13 -0
- package/dist/components/button/trigger-button/TriggerButton.stories.d.ts +7 -0
- package/dist/components/button.js +26 -6
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar/Calendar.d.ts +14 -0
- package/dist/components/calendar/Calendar.stories.d.ts +45 -0
- package/dist/components/calendar/components/calendar-chevron/CalendarChevron.d.ts +12 -0
- package/dist/components/calendar/components/calendar-day-button/CalendarDayButton.d.ts +26 -0
- package/dist/components/calendar/components/calendar-day-button/CalendarDayButton.stories.d.ts +18 -0
- package/dist/components/calendar/components/calendar-next-month-button/CalendarNextMonthButton.d.ts +11 -0
- package/dist/components/calendar/components/calendar-previous-month-button/CalendarPreviousMonthButton.d.ts +11 -0
- package/dist/components/calendar/components/calendar-root/CalendarRoot.d.ts +11 -0
- package/dist/components/calendar/components/calendar-week-day/CalendarWeekDay.d.ts +11 -0
- package/dist/components/calendar/components/calendar-week-day/CalendarWeekDay.stories.d.ts +7 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar.d.ts +2 -0
- package/dist/components/calendar.js +186 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card/Card.d.ts +7 -0
- package/dist/components/card/Card.stories.d.ts +17 -0
- package/dist/components/card/components/ActionCard.d.ts +7 -0
- package/dist/components/card/components/CardFeature.d.ts +7 -0
- package/dist/components/card/components/CardFolder.d.ts +9 -0
- package/dist/components/card/components/CardFooter.d.ts +7 -0
- package/dist/components/card/components/CardMenuTrigger.d.ts +8 -0
- package/dist/components/card/components/CardSubTitle.d.ts +7 -0
- package/dist/components/card/components/CardTitle.d.ts +7 -0
- package/dist/components/card/components/CardVisualBadge.d.ts +7 -0
- package/dist/components/card/components/FolderSvg.d.ts +3 -0
- package/dist/components/card/index.d.ts +19 -0
- package/dist/components/card/styles.d.ts +2 -0
- package/dist/components/card.d.ts +2 -0
- package/dist/components/card.js +159 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +17 -0
- package/dist/components/carousel/Carousel.stories.d.ts +8 -0
- package/dist/components/carousel/components/carousel-buttons/CarouselButtons.d.ts +27 -0
- package/dist/components/carousel/components/carousel-item/CarouselItem.d.ts +3 -0
- package/dist/components/carousel/index.d.ts +4 -0
- package/dist/components/carousel/utils/CarouselContext.d.ts +13 -0
- package/dist/components/carousel/utils/useCarousel.d.ts +10 -0
- package/dist/components/carousel.d.ts +2 -0
- package/dist/components/carousel.js +1700 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +49 -2
- package/dist/components/checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/checkbox/checkbox-field/CheckboxField.d.ts +10 -456
- package/dist/components/checkbox/checkbox-field/CheckboxField.stories.d.ts +3 -228
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox.js +4 -3
- package/dist/components/collapsible/Collapsible.d.ts +6 -0
- package/dist/components/collapsible/Collapsible.stories.d.ts +6 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible.d.ts +2 -0
- package/dist/components/collapsible.js +133 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/color-tile/ColorTile.d.ts +9 -0
- package/dist/components/color-tile/ColorTile.stories.d.ts +6 -0
- package/dist/components/color-tile/index.d.ts +1 -0
- package/dist/components/color-tile.d.ts +2 -0
- package/dist/components/color-tile.js +26 -0
- package/dist/components/color-tile.js.map +1 -0
- package/dist/components/command/Command.d.ts +108 -0
- package/dist/components/command/Command.stories.d.ts +34 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/command.d.ts +2 -0
- package/dist/components/command.js +15 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/container/Container.d.ts +29 -0
- package/dist/components/container/Container.stories.d.ts +6 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/container.d.ts +2 -0
- package/dist/components/container.js +23 -0
- package/dist/components/container.js.map +1 -0
- package/dist/components/counter/Counter.d.ts +14 -0
- package/dist/components/counter/Counter.stories.d.ts +9 -0
- package/dist/components/counter/index.d.ts +1 -0
- package/dist/components/counter.d.ts +2 -0
- package/dist/components/counter.js +142 -0
- package/dist/components/counter.js.map +1 -0
- package/dist/components/data-table/DataTable.stories.d.ts +8 -0
- package/dist/components/description/Description.d.ts +5 -1
- package/dist/components/description/Description.stories.d.ts +10 -0
- package/dist/components/description.js +1 -1
- package/dist/components/dialog/Dialog.d.ts +51 -12
- package/dist/components/dialog/Dialog.stories.d.ts +26 -0
- package/dist/components/dialog/DialogTemplates.d.ts +24 -0
- package/dist/components/dialog/index.d.ts +4 -0
- package/dist/components/dialog.d.ts +2 -0
- package/dist/components/dialog.js +47 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/divider/Divider.d.ts +6 -118
- package/dist/components/divider/content-divider/ContentDivider.d.ts +15 -0
- package/dist/components/divider/content-divider/ContentDivider.stories.d.ts +7 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/divider.js +32 -1
- package/dist/components/divider.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +13 -0
- package/dist/components/drawer/Drawer.stories.d.ts +25 -0
- package/dist/components/drawer/components/drawer-body/DrawerBody.d.ts +3 -0
- package/dist/components/drawer/components/drawer-content/DrawerContent.d.ts +19 -0
- package/dist/components/drawer/components/drawer-footer/DrawerFooter.d.ts +3 -0
- package/dist/components/drawer/components/drawer-handler/DrawerHandler.d.ts +2 -0
- package/dist/components/drawer/components/drawer-handler/DrawerHandlerSvg.d.ts +1 -0
- package/dist/components/drawer/components/drawer-header/DrawerHeader.d.ts +3 -0
- package/dist/components/drawer/components/drawer-overlay/DrawerOverlay.d.ts +7 -0
- package/dist/components/drawer/index.d.ts +9 -0
- package/dist/components/{modal/templates/footer-template/ModalFooterTemplate.d.ts → drawer/templates/drawer-footer-template/DrawerFooterTemplate.d.ts} +6 -6
- package/dist/components/drawer/templates/drawer-header-template/DrawerHeaderTemplate.d.ts +10 -0
- package/dist/components/drawer.d.ts +2 -0
- package/dist/components/drawer.js +1232 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +80 -0
- package/dist/components/dropdown/Dropdown.stories.d.ts +22 -0
- package/dist/components/dropdown/index.d.ts +3 -0
- package/dist/components/dropdown/useHoverDropdown.d.ts +68 -0
- package/dist/components/dropdown.d.ts +2 -0
- package/dist/components/dropdown.js +1152 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/empty-state/EmptyState.d.ts +5 -0
- package/dist/components/empty-state/EmptyState.stories.d.ts +6 -0
- package/dist/components/empty-state/index.d.ts +1 -0
- package/dist/components/empty-state.d.ts +2 -0
- package/dist/components/empty-state.js +5 -0
- package/dist/components/empty-state.js.map +1 -0
- package/dist/components/error-state/ErrorState.d.ts +3 -0
- package/dist/components/error-state/ErrorState.stories.d.ts +6 -0
- package/dist/components/error-state/Retry.d.ts +10 -0
- package/dist/components/error-state/Retry.stories.d.ts +7 -0
- package/dist/components/error-state/index.d.ts +2 -0
- package/dist/components/error-state.d.ts +2 -0
- package/dist/components/error-state.js +16 -0
- package/dist/components/error-state.js.map +1 -0
- package/dist/components/field/Field.d.ts +38 -106
- package/dist/components/field/Field.stories.d.ts +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/file-upload/FileUpload.d.ts +24 -0
- package/dist/components/file-upload/FileUpload.stories.d.ts +19 -0
- package/dist/components/file-upload/components/file-upload-clear-button/FileUploadClearButton.d.ts +9 -0
- package/dist/components/file-upload/components/file-upload-compact-input-zone/FileUploadCompactInputZone.d.ts +9 -0
- package/dist/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.d.ts +12 -0
- package/dist/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.stories.d.ts +18 -0
- package/dist/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.d.ts +3 -0
- package/dist/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.stories.d.ts +14 -0
- package/dist/components/file-upload/components/file-upload-error/FileUploadError.d.ts +7 -0
- package/dist/components/file-upload/components/file-upload-error/FileUploadError.stories.d.ts +15 -0
- package/dist/components/file-upload/components/file-upload-icon/FileUploadIcon.d.ts +5 -0
- package/dist/components/file-upload/components/file-upload-icon/FileUploadIcon.stories.d.ts +13 -0
- package/dist/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.d.ts +12 -0
- package/dist/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.stories.d.ts +18 -0
- package/dist/components/file-upload/components/file-upload-input-zone/FileUploadInputZone.d.ts +9 -0
- package/dist/components/file-upload/components/file-upload-item/FileUploadItem.d.ts +12 -0
- package/dist/components/file-upload/components/file-upload-item/FileUploadItem.stories.d.ts +19 -0
- package/dist/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.d.ts +14 -0
- package/dist/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.stories.d.ts +19 -0
- package/dist/components/file-upload/file-upload-compact/FileUploadCompact.d.ts +19 -0
- package/dist/components/file-upload/file-upload-compact/FileUploadCompact.stories.d.ts +20 -0
- package/dist/components/file-upload/index.d.ts +11 -0
- package/dist/components/file-upload.d.ts +2 -0
- package/dist/components/file-upload.js +484 -0
- package/dist/components/file-upload.js.map +1 -0
- package/dist/components/form/Form.d.ts +27 -4
- package/dist/components/form/Form.stories.d.ts +22 -7
- package/dist/components/form/components/form-body/FormBody.d.ts +5 -0
- package/dist/components/form/components/form-divider/FormDivider.d.ts +6 -0
- package/dist/components/form/components/form-field/FormField.d.ts +21 -62
- package/dist/components/form/components/form-field/FormField.stories.d.ts +10 -0
- package/dist/components/form/components/form-field-set/FormFieldSet.d.ts +3 -0
- package/dist/components/form/components/form-footer/FormFooter.d.ts +5 -0
- package/dist/components/form/components/form-header/FormHeader.d.ts +16 -0
- package/dist/components/form/components/form-section-header-button/FormSectionHeaderButton.d.ts +17 -0
- package/dist/components/form/components/form-section-title/FormSectionTitle.d.ts +3 -1
- package/dist/components/form/components/form-stack/FormStack.d.ts +3 -0
- package/dist/components/form/index.d.ts +10 -1
- package/dist/components/form/templates/footer-template/FormFooterTemplate.d.ts +24 -0
- package/dist/components/form/templates/header-template/FormHeaderTemplate.d.ts +43 -0
- package/dist/components/form.js +59 -335
- package/dist/components/form.js.map +1 -1
- package/dist/components/hint-state/HintState.d.ts +3 -0
- package/dist/components/hint-state/HintState.stories.d.ts +6 -0
- package/dist/components/hint-state/index.d.ts +1 -0
- package/dist/components/hint-state.d.ts +2 -0
- package/dist/components/hint-state.js +5 -0
- package/dist/components/hint-state.js.map +1 -0
- package/dist/components/icon/Icon.d.ts +9 -48
- package/dist/components/icon/Icon.stories.d.ts +7 -4
- package/dist/components/icon/feature-icon/FeatureIcon.d.ts +4 -75
- package/dist/components/icon/feature-icon/FeatureIcon.stories.d.ts +16 -6
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon-tooltip/IconTooltip.d.ts +5 -4
- package/dist/components/icon-tooltip/index.d.ts +2 -0
- package/dist/components/icon-tooltip.d.ts +2 -0
- package/dist/components/icon-tooltip.js +5 -0
- package/dist/components/icon-tooltip.js.map +1 -0
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/icon.js +7 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/image-placeholder/ImagePlaceholder.d.ts +6 -0
- package/dist/components/image-placeholder/ImagePlaceholder.stories.d.ts +6 -0
- package/dist/components/image-placeholder/index.d.ts +1 -0
- package/dist/components/image-placeholder.d.ts +2 -0
- package/dist/components/image-placeholder.js +22 -0
- package/dist/components/image-placeholder.js.map +1 -0
- package/dist/components/image-preview/ImagePreview.d.ts +23 -0
- package/dist/components/image-preview/ImagePreview.stories.d.ts +6 -0
- package/dist/components/image-preview/index.d.ts +1 -0
- package/dist/components/image-preview/utils.d.ts +1 -0
- package/dist/components/image-preview.d.ts +2 -0
- package/dist/components/image-preview.js +124 -0
- package/dist/components/image-preview.js.map +1 -0
- package/dist/components/image-uploader/ImageUploader.d.ts +27 -0
- package/dist/components/image-uploader/ImageUploader.stories.d.ts +6 -0
- package/dist/components/image-uploader/components/ImageCameraAddSvg.d.ts +5 -0
- package/dist/components/image-uploader/components/ImageUploaderButton.d.ts +8 -0
- package/dist/components/image-uploader/index.d.ts +1 -0
- package/dist/components/image-uploader.d.ts +2 -0
- package/dist/components/image-uploader.js +88 -0
- package/dist/components/image-uploader.js.map +1 -0
- package/dist/components/images/BoxSvg.d.ts +5 -0
- package/dist/components/images/BoxSvg.stories.d.ts +13 -0
- package/dist/components/images/FolderSvg.d.ts +5 -0
- package/dist/components/images/FolderSvg.stories.d.ts +13 -0
- package/dist/components/images/index.d.ts +2 -0
- package/dist/components/images.d.ts +2 -0
- package/dist/components/images.js +6 -0
- package/dist/components/images.js.map +1 -0
- package/dist/components/indicator/Indicator.d.ts +7 -0
- package/dist/components/indicator/Indicator.stories.d.ts +6 -0
- package/dist/components/indicator/index.d.ts +1 -0
- package/dist/components/indicator.d.ts +2 -0
- package/dist/components/indicator.js +5 -0
- package/dist/components/indicator.js.map +1 -0
- package/dist/components/input/components/clear-button/ClearButton.d.ts +3 -3
- package/dist/components/input/file-input/FileInput.d.ts +34 -0
- package/dist/components/input/file-input/FileInput.stories.d.ts +12 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/input/Input.d.ts +5 -2
- package/dist/components/input/input/Input.stories.d.ts +3 -0
- package/dist/components/input/input-group/InputGroup.d.ts +37 -0
- package/dist/components/input/input-group/InputGroup.stories.d.ts +7 -0
- package/dist/components/input/secret-input/SecretInput.d.ts +14 -5
- package/dist/components/input/secret-input/SecretInput.stories.d.ts +4 -0
- package/dist/components/input/styles/inputBaseStyles.d.ts +3 -0
- package/dist/components/input/text-input/TextInput.d.ts +2 -2
- package/dist/components/input/text-input/TextInput.stories.d.ts +2 -2
- package/dist/components/input/web-input/WebInput.d.ts +15 -0
- package/dist/components/input/web-input/WebInput.stories.d.ts +14 -0
- package/dist/components/input-otp/InputOTP.d.ts +29 -0
- package/dist/components/input-otp/InputOTP.stories.d.ts +9 -0
- package/dist/components/input-otp/components/input-otp-group/InputOTPGroup.d.ts +2 -0
- package/dist/components/input-otp/components/input-otp-separator/InputOTPSeparator.d.ts +2 -0
- package/dist/components/input-otp/components/input-otp-slot/InputOTPSlot.d.ts +4 -0
- package/dist/components/input-otp/index.d.ts +4 -0
- package/dist/components/input-otp.d.ts +2 -0
- package/dist/components/input-otp.js +8 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.js +223 -202
- package/dist/components/input.js.map +1 -1
- package/dist/components/label/Label.d.ts +1 -3
- package/dist/components/label/Label.stories.d.ts +1 -5
- package/dist/components/label/field-label/FieldLabel.d.ts +4 -47
- package/dist/components/label/field-label/FieldLabel.stories.d.ts +1 -0
- package/dist/components/label/field-label/components/RequiredIcon.d.ts +5 -0
- package/dist/components/label.js +1 -1
- package/dist/components/loader/Loader.d.ts +6 -0
- package/dist/components/loader/Loader.stories.d.ts +6 -0
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +5 -0
- package/dist/components/loader.js.map +1 -0
- package/dist/components/menu-item/MenuItem.d.ts +31 -0
- package/dist/components/menu-item/MenuItem.stories.d.ts +6 -0
- package/dist/components/menu-item/MenuItemAction.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-button/MenuItemButton.d.ts +37 -0
- package/dist/components/menu-item/components/menu-item-button/MenuItemButton.stories.d.ts +7 -0
- package/dist/components/menu-item/components/menu-item-icon/MenuItemIcon.d.ts +7 -0
- package/dist/components/menu-item/components/menu-item-icon/MenuItemIcon.stories.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-icon-button/MenuItemIconButton.d.ts +5 -0
- package/dist/components/menu-item/components/menu-item-icon-button/MenuItemIconButton.stories.d.ts +7 -0
- package/dist/components/menu-item/components/menu-item-secondary-text/MenuItemSecondaryText.d.ts +21 -0
- package/dist/components/menu-item/components/menu-item-secondary-text/MenuItemSecondaryText.stories.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-shortcut/MenuItemShortcut.d.ts +21 -0
- package/dist/components/menu-item/components/menu-item-shortcut/MenuItemShortcut.stories.d.ts +6 -0
- package/dist/components/menu-item/components/menu-item-text/MenuItemText.d.ts +21 -0
- package/dist/components/menu-item/components/menu-item-text/MenuItemText.stories.d.ts +6 -0
- package/dist/components/menu-item/index.d.ts +13 -0
- package/dist/components/menu-item/templates/menu-item-action-template/MenuItemActionTemplate.d.ts +12 -0
- package/dist/components/menu-item/templates/menu-item-action-template/MenuItemActionTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-common-template/MenuItemCommonTemplate.d.ts +16 -0
- package/dist/components/menu-item/templates/menu-item-common-template/MenuItemCommonTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-info-template/MenuItemInfoTemplate.d.ts +13 -0
- package/dist/components/menu-item/templates/menu-item-info-template/MenuItemInfoTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-interactive-template/MenuItemInteractiveTemplate.d.ts +16 -0
- package/dist/components/menu-item/templates/menu-item-interactive-template/MenuItemInteractiveTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item/templates/menu-item-rich-template/MenuItemRichTemplate.d.ts +11 -0
- package/dist/components/menu-item/templates/menu-item-rich-template/MenuItemRichTemplate.stories.d.ts +6 -0
- package/dist/components/menu-item.d.ts +2 -0
- package/dist/components/menu-item.js +243 -0
- package/dist/components/menu-item.js.map +1 -0
- package/dist/components/overflow-tooltip/OverflowTooltip.d.ts +29 -0
- package/dist/components/overflow-tooltip/OverflowTooltip.stories.d.ts +9 -0
- package/dist/components/overflow-tooltip/TextOverflowTooltip.d.ts +11 -0
- package/dist/components/overflow-tooltip/TextOverflowTooltip.stories.d.ts +6 -0
- package/dist/components/overflow-tooltip/index.d.ts +3 -0
- package/dist/components/overflow-tooltip/useOverflowTooltip.d.ts +6 -0
- package/dist/components/overflow-tooltip.d.ts +2 -0
- package/dist/components/overflow-tooltip.js +7 -0
- package/dist/components/overflow-tooltip.js.map +1 -0
- package/dist/components/overlay/Overlay.d.ts +45 -0
- package/dist/components/overlay/Overlay.stories.d.ts +6 -0
- package/dist/components/overlay/index.d.ts +1 -0
- package/dist/components/overlay.d.ts +2 -0
- package/dist/components/overlay.js +5 -0
- package/dist/components/overlay.js.map +1 -0
- package/dist/components/page-state/PageState.d.ts +8 -0
- package/dist/components/page-state/PageState.stories.d.ts +9 -0
- package/dist/components/page-state/components/PageStateAction.d.ts +14 -0
- package/dist/components/page-state/components/PageStateBoxSvg.d.ts +6 -0
- package/dist/components/page-state/components/PageStateButtonGroup.d.ts +3 -0
- package/dist/components/page-state/components/PageStateCancel.d.ts +14 -0
- package/dist/components/page-state/components/PageStateDescription.d.ts +8 -0
- package/dist/components/page-state/components/PageStateFeatureIcon.d.ts +7 -0
- package/dist/components/page-state/components/PageStateFolderSvg.d.ts +7 -0
- package/dist/components/page-state/components/PageStateTitle.d.ts +8 -0
- package/dist/components/page-state/context/PageStateContext.d.ts +12 -0
- package/dist/components/page-state/hooks/usePageStateButtonSize.d.ts +3 -0
- package/dist/components/page-state/index.d.ts +10 -0
- package/dist/components/page-state.d.ts +2 -0
- package/dist/components/page-state.js +173 -0
- package/dist/components/page-state.js.map +1 -0
- package/dist/components/popover/Popover.d.ts +31 -0
- package/dist/components/popover/Popover.stories.d.ts +24 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover.d.ts +2 -0
- package/dist/components/popover.js +9 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/portal-container/PortalContainer.d.ts +10 -0
- package/dist/components/portal-container/index.d.ts +2 -0
- package/dist/components/portal-container/portalContainerEvents.d.ts +12 -0
- package/dist/components/portal-container/usePortalContainer.d.ts +10 -0
- package/dist/components/portal-container.d.ts +2 -0
- package/dist/components/portal-container.js +14 -0
- package/dist/components/portal-container.js.map +1 -0
- package/dist/components/progress/Progress.d.ts +15 -0
- package/dist/components/progress/Progress.stories.d.ts +9 -0
- package/dist/components/progress/ProgressBarStyles.d.ts +70 -0
- package/dist/components/progress/components/progress-icon/ProgressIcon.d.ts +5 -0
- package/dist/components/progress/components/progress-icon/ProgressIcon.stories.d.ts +6 -0
- package/dist/components/progress/components/progress-icon-button/ProgressIconButton.d.ts +5 -0
- package/dist/components/progress/components/progress-icon-button/ProgressIconButton.stories.d.ts +6 -0
- package/dist/components/progress/components/progress-text/ProgressText.d.ts +6 -0
- package/dist/components/progress/components/progress-text/ProgressText.stories.d.ts +6 -0
- package/dist/components/progress/index.d.ts +10 -0
- package/dist/components/progress/templates/ProgressBlockTemplate.d.ts +16 -0
- package/dist/components/progress/templates/ProgressBlockTemplate.stories.d.ts +7 -0
- package/dist/components/progress-circle/ProgressCircle.d.ts +186 -0
- package/dist/components/progress-circle/ProgressCircle.stories.d.ts +9 -0
- package/dist/components/progress-circle/components/progress-circle-description/ProgressCircleDescription.d.ts +5 -0
- package/dist/components/progress-circle/components/progress-circle-description/ProgressCircleDescription.stories.d.ts +6 -0
- package/dist/components/progress-circle/components/progress-circle-icon-button/ProgressCircleIconButton.d.ts +70 -0
- package/dist/components/progress-circle/components/progress-circle-icon-button/ProgressCircleIconButton.stories.d.ts +6 -0
- package/dist/components/progress-circle/components/progress-circle-text/ProgressCircleTitle.d.ts +56 -0
- package/dist/components/progress-circle/components/progress-circle-text/ProgressCircleTitle.stories.d.ts +6 -0
- package/dist/components/progress-circle/index.d.ts +5 -0
- package/dist/components/progress-circle/templates/ProgressCircleTemplate.d.ts +13 -0
- package/dist/components/progress-circle/templates/ProgressCircleTemplate.stories.d.ts +8 -0
- package/dist/components/progress-circle.d.ts +2 -0
- package/dist/components/progress-circle.js +187 -0
- package/dist/components/progress-circle.js.map +1 -0
- package/dist/components/progress.d.ts +2 -0
- package/dist/components/progress.js +262 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/prose/Prose.d.ts +9 -0
- package/dist/components/prose/Prose.stories.d.ts +6 -0
- package/dist/components/prose/index.d.ts +1 -0
- package/dist/components/prose.d.ts +2 -0
- package/dist/components/prose.js +12 -0
- package/dist/components/prose.js.map +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/radio-group/RadioGroup.stories.d.ts +11 -0
- package/dist/components/radio-group/components/RadioGroupItem.d.ts +43 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group.d.ts +2 -0
- package/dist/components/radio-group.js +271 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/resizable/Resizable.d.ts +23 -0
- package/dist/components/resizable/Resizable.stories.d.ts +8 -0
- package/dist/components/resizable/index.d.ts +1 -0
- package/dist/components/resizable.d.ts +2 -0
- package/dist/components/resizable.js +1552 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scheduler/components/day/Day.d.ts +4 -61
- package/dist/components/scheduler.js +1249 -1244
- package/dist/components/scheduler.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea.d.ts +19 -2
- package/dist/components/scroll-area/ScrollArea.stories.d.ts +5 -2
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area.d.ts +2 -0
- package/dist/components/scroll-area.js +6 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/scroll-shadow-container/ScrollShadowContainer.d.ts +2 -49
- package/dist/components/scroll-shadow-container/ScrollShadowContainer.stories.d.ts +1 -0
- package/dist/components/scroll-shadow-container/index.d.ts +1 -0
- package/dist/components/scroll-shadow-container.js +1 -1
- package/dist/components/search-select/async-search-select/AsyncSearchSelect.d.ts +2 -0
- package/dist/components/search-select/async-search-select/AsyncSearchSelect.stories.d.ts +20 -0
- package/dist/components/search-select/async-search-select/components/AsyncSearchSelectContent.d.ts +42 -0
- package/dist/components/search-select/async-search-select/components/AsyncSearchSelectPopoverContent.d.ts +7 -0
- package/dist/components/search-select/async-search-select/hooks/useAsyncDataLoader.d.ts +48 -0
- package/dist/components/search-select/async-search-select/types.d.ts +99 -0
- package/dist/components/search-select/components/SearchSelectPlaceholder.d.ts +7 -0
- package/dist/components/search-select/components/SearchSelectTag.d.ts +13 -0
- package/dist/components/search-select/components/SearchSelectTextValue.d.ts +7 -0
- package/dist/components/search-select/components/SearchSelectTrigger.d.ts +23 -0
- package/dist/components/search-select/index.d.ts +22 -0
- package/dist/components/search-select/multi-select/MultiSelect.d.ts +87 -0
- package/dist/components/search-select/multi-select/MultiSelect.stories.d.ts +18 -0
- package/dist/components/search-select/search-select/LazySearchSelect.d.ts +16 -0
- package/dist/components/search-select/search-select/LazySearchSelect.stories.d.ts +21 -0
- package/dist/components/search-select/search-select/SearchSelect.d.ts +80 -0
- package/dist/components/search-select/search-select/SearchSelect.stories.d.ts +16 -0
- package/dist/components/search-select/search-select/components/LoadMoreTrigger.d.ts +17 -0
- package/dist/components/search-select/search-select/components/SearchSelectContent.d.ts +10 -0
- package/dist/components/search-select/search-select/components/SearchSelectGroup.d.ts +12 -0
- package/dist/components/search-select/search-select/components/SearchSelectInput.d.ts +9 -0
- package/dist/components/search-select/search-select/components/SearchSelectSeparator.d.ts +12 -0
- package/dist/components/search-select/search-select/utils/fuzzyFilter.d.ts +9 -0
- package/dist/components/search-select.d.ts +2 -0
- package/dist/components/search-select.js +596 -0
- package/dist/components/search-select.js.map +1 -0
- package/dist/components/select/Select.d.ts +39 -27
- package/dist/components/select/Select.stories.d.ts +2 -0
- package/dist/components/select/components/SelectTriggerClearButton.d.ts +6 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select.js +14 -1032
- package/dist/components/select.js.map +1 -1
- package/dist/components/sheet/Sheet.d.ts +35 -0
- package/dist/components/sheet/Sheet.stories.d.ts +20 -0
- package/dist/components/sheet/index.d.ts +1 -0
- package/dist/components/sheet.d.ts +2 -0
- package/dist/components/sheet.js +14 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/shortcut/Shortcut.d.ts +8 -0
- package/dist/components/shortcut/Shortcut.stories.d.ts +22 -0
- package/dist/components/shortcut/index.d.ts +1 -0
- package/dist/components/shortcut.d.ts +2 -0
- package/dist/components/shortcut.js +5 -0
- package/dist/components/shortcut.js.map +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +73 -0
- package/dist/components/sidebar/Sidebar.stories.d.ts +18 -0
- package/dist/components/sidebar/SidebarContext.d.ts +12 -0
- package/dist/components/sidebar/index.d.ts +3 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +505 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +6 -0
- package/dist/components/skeleton/Skeleton.stories.d.ts +9 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +5 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider/Slider.d.ts +4 -0
- package/dist/components/slider/Slider.stories.d.ts +12 -0
- package/dist/components/slider/components/SliderRange.d.ts +4 -0
- package/dist/components/slider/components/SliderThumb.d.ts +4 -0
- package/dist/components/slider/components/SliderTrack.d.ts +4 -0
- package/dist/components/slider/index.d.ts +4 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +458 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/stepper/Stepper.d.ts +8 -0
- package/dist/components/stepper/Stepper.stories.d.ts +8 -0
- package/dist/components/stepper/StepperContext.d.ts +9 -0
- package/dist/components/stepper/components/stepper-description/StepperDescription.d.ts +1 -0
- package/dist/components/stepper/components/stepper-indicator/StepperIndicator.d.ts +4 -0
- package/dist/components/stepper/components/stepper-item/StepperItem.d.ts +7 -0
- package/dist/components/stepper/components/stepper-item/StepperItemContext.d.ts +11 -0
- package/dist/components/stepper/components/stepper-title/StepperTitle.d.ts +1 -0
- package/dist/components/stepper/components/stepper-trigger/StepperTrigger.d.ts +4 -0
- package/dist/components/stepper/index.d.ts +9 -0
- package/dist/components/stepper/stepper-separator/StepperSeparator.d.ts +1 -0
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +145 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch/Switch.d.ts +6 -180
- package/dist/components/switch/Switch.stories.d.ts +2 -90
- package/dist/components/switch/switch-field/SwitchField.d.ts +9 -315
- package/dist/components/switch/switch-field/SwitchField.stories.d.ts +4 -315
- package/dist/components/switch.js +153 -151
- package/dist/components/switch.js.map +1 -1
- package/dist/components/system-state/SystemState.d.ts +3 -0
- package/dist/components/system-state/SystemState.stories.d.ts +19 -0
- package/dist/components/system-state/components/SystemStateActions.d.ts +10 -0
- package/dist/components/system-state/components/SystemStateCode.d.ts +3 -0
- package/dist/components/system-state/components/SystemStateDescription.d.ts +3 -0
- package/dist/components/system-state/components/SystemStateTitle.d.ts +3 -0
- package/dist/components/system-state/index.d.ts +10 -0
- package/dist/components/system-state.d.ts +2 -0
- package/dist/components/system-state.js +51 -0
- package/dist/components/system-state.js.map +1 -0
- package/dist/components/table/Table.d.ts +18 -0
- package/dist/components/table/Table.stories.d.ts +15 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table.d.ts +2 -0
- package/dist/components/table.js +83 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +7 -0
- package/dist/components/tabs/Tabs.stories.d.ts +8 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs.d.ts +2 -0
- package/dist/components/tabs.js +178 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag/Tag.d.ts +59 -1103
- package/dist/components/tag/Tag.stories.d.ts +1 -0
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag-input/TagInput.d.ts +42 -0
- package/dist/components/tag-input/TagInput.stories.d.ts +9 -0
- package/dist/components/tag-input/index.d.ts +2 -0
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +162 -0
- package/dist/components/tag-input.js.map +1 -0
- package/dist/components/tag.js +7 -189
- package/dist/components/tag.js.map +1 -1
- package/dist/components/text/Text.d.ts +9 -0
- package/dist/components/text/Text.stories.d.ts +24 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text.d.ts +2 -0
- package/dist/components/text.js +5 -0
- package/dist/components/text.js.map +1 -0
- package/dist/components/textarea/autogrow-textarea/AutogrowTextarea.d.ts +12 -0
- package/dist/components/textarea/autogrow-textarea/AutogrowTextarea.stories.d.ts +10 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea/Textarea.d.ts +14 -0
- package/dist/components/textarea/textarea/Textarea.stories.d.ts +7 -0
- package/dist/components/textarea.d.ts +2 -0
- package/dist/components/textarea.js +217 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/timer/Timer.d.ts +5 -0
- package/dist/components/timer/Timer.stories.d.ts +15 -0
- package/dist/components/timer/components/TimerUnit.d.ts +5 -0
- package/dist/components/timer/components/TimerValue.d.ts +5 -0
- package/dist/components/timer/index.d.ts +3 -0
- package/dist/components/timer.d.ts +2 -0
- package/dist/components/timer.js +23 -0
- package/dist/components/timer.js.map +1 -0
- package/dist/components/toast/Toast.d.ts +11 -3
- package/dist/components/toast/Toast.stories.d.ts +3 -0
- package/dist/components/toast/ToastView.d.ts +20 -401
- package/dist/components/toast/components/toast-action/ToastAction.d.ts +1 -0
- package/dist/components/toast/hooks/useToastContext.d.ts +1 -1
- package/dist/components/toast/index.d.ts +4 -1
- package/dist/components/toast.js +460 -471
- package/dist/components/toast.js.map +1 -1
- package/dist/components/toggle/Toggle.d.ts +52 -0
- package/dist/components/toggle/Toggle.stories.d.ts +8 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +6 -0
- package/dist/components/toggle-group/ToggleGroup.stories.d.ts +13 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group.d.ts +2 -0
- package/dist/components/toggle-group.js +37 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +2 -0
- package/dist/components/toggle.js +5 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +52 -0
- package/dist/components/toolbar/Toolbar.stories.d.ts +22 -0
- package/dist/components/toolbar/ToolbarContext.d.ts +11 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar.d.ts +2 -0
- package/dist/components/toolbar.js +304 -0
- package/dist/components/toolbar.js.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +34 -0
- package/dist/components/tooltip/Tooltip.stories.d.ts +20 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/useTooltipContext.d.ts +6 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +16 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/createLucideIcon-DwBrHnj9.js +80 -0
- package/dist/{createLucideIcon-DgrNxRV5.js.map → createLucideIcon-DwBrHnj9.js.map} +1 -1
- package/dist/download-BHsj218e.js +16 -0
- package/dist/download-BHsj218e.js.map +1 -0
- package/dist/examples/gramax/CloneRepository.stories.d.ts +5 -0
- package/dist/examples/gramax/NewStorage.stories.d.ts +5 -0
- package/dist/examples/quiz/QuizPage.stories.d.ts +6 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/use-file-upload/errorMessages.d.ts +39 -0
- package/dist/hooks/use-file-upload/index.d.ts +3 -0
- package/dist/hooks/use-file-upload/useFileUpload.d.ts +81 -0
- package/dist/hooks/use-file-upload.d.ts +2 -0
- package/dist/hooks/use-file-upload.js +7 -0
- package/dist/hooks/use-file-upload.js.map +1 -0
- package/dist/hooks/useAutofill.d.ts +8 -0
- package/dist/hooks/useBreakpoints.d.ts +23 -0
- package/dist/hooks/useControllableState.d.ts +13 -0
- package/dist/hooks/useControlledValue.d.ts +10 -0
- package/dist/hooks/useCopyAction.d.ts +7 -0
- package/dist/hooks/useCustomValidity.d.ts +9 -0
- package/dist/hooks/useDataCache.d.ts +77 -0
- package/dist/hooks/useDebounce.d.ts +7 -0
- package/dist/hooks/useFileType.d.ts +4 -0
- package/dist/hooks/useInputWithActions.d.ts +32 -0
- package/dist/hooks/useItemsKeyboardNavigation.d.ts +56 -0
- package/dist/hooks/useSearchCache.test.d.ts +1 -0
- package/dist/hooks/useSearchSelect.d.ts +31 -0
- package/dist/hooks.d.ts +2 -0
- package/dist/hooks.js +14 -0
- package/dist/hooks.js.map +1 -0
- package/dist/image-BqL5JP90.js +16 -0
- package/dist/image-BqL5JP90.js.map +1 -0
- package/dist/index-0ioNhtNM.js +11 -0
- package/dist/index-0ioNhtNM.js.map +1 -0
- package/dist/index-437EL2iq.js +53 -0
- package/dist/index-437EL2iq.js.map +1 -0
- package/dist/index-BGQepRFJ.js +28 -0
- package/dist/index-BGQepRFJ.js.map +1 -0
- package/dist/index-BVqs-uqP.js +234 -0
- package/dist/index-BVqs-uqP.js.map +1 -0
- package/dist/index-BZPx6jYI.js.map +1 -1
- package/dist/index-Bb23HztA.js +33 -0
- package/dist/index-Bb23HztA.js.map +1 -0
- package/dist/index-BpWB3aFK.js +71 -0
- package/dist/index-BpWB3aFK.js.map +1 -0
- package/dist/index-BtQfgaSF.js +61 -0
- package/dist/index-BtQfgaSF.js.map +1 -0
- package/dist/index-ByaXH_ih.js +11 -0
- package/dist/index-ByaXH_ih.js.map +1 -0
- package/dist/index-BzCriPiK.js +671 -0
- package/dist/index-BzCriPiK.js.map +1 -0
- package/dist/index-CCKe-Mpx.js +7 -0
- package/dist/index-CCKe-Mpx.js.map +1 -0
- package/dist/index-CFaU3UXv.js +94 -0
- package/dist/index-CFaU3UXv.js.map +1 -0
- package/dist/index-CLuiUUQ8.js +137 -0
- package/dist/index-CLuiUUQ8.js.map +1 -0
- package/dist/index-CQD-Njgt.js +245 -0
- package/dist/index-CQD-Njgt.js.map +1 -0
- package/dist/index-CmBeyp2d.js +56 -0
- package/dist/index-CmBeyp2d.js.map +1 -0
- package/dist/index-DFZozV_h.js +69 -0
- package/dist/index-DFZozV_h.js.map +1 -0
- package/dist/index-DHsfW5Rj.js +49 -0
- package/dist/index-DHsfW5Rj.js.map +1 -0
- package/dist/index-DHyZ_0Ut.js +181 -0
- package/dist/index-DHyZ_0Ut.js.map +1 -0
- package/dist/index-DLcqcWxM.js +30 -0
- package/dist/index-DLcqcWxM.js.map +1 -0
- package/dist/index-DRo26PBK.js +1525 -0
- package/dist/index-DRo26PBK.js.map +1 -0
- package/dist/index-DnnQs07z.js +33 -0
- package/dist/index-DnnQs07z.js.map +1 -0
- package/dist/index-Uiy0Xwy2.js +32 -0
- package/dist/index-Uiy0Xwy2.js.map +1 -0
- package/dist/index-_ITz1IyW.js +144 -0
- package/dist/index-_ITz1IyW.js.map +1 -0
- package/dist/index-rKs9bXHr.js +7 -0
- package/dist/index-rKs9bXHr.js.map +1 -0
- package/dist/index-xqkGMOJ8.js +14 -0
- package/dist/index-xqkGMOJ8.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.esm-CXA6i4d7.js +1282 -0
- package/dist/index.esm-CXA6i4d7.js.map +1 -0
- package/dist/index.js +53 -1
- package/dist/index.js.map +1 -1
- package/dist/inputBaseStyles-DbzD_jvq.js +34 -0
- package/dist/inputBaseStyles-DbzD_jvq.js.map +1 -0
- package/dist/lib/utils/cn.d.ts +2 -0
- package/dist/lib/utils/dom.d.ts +6 -0
- package/dist/lib/utils/file/downloadFile.d.ts +2 -0
- package/dist/lib/utils/file/formatBytes.d.ts +1 -0
- package/dist/lib/utils/formatCounterValue.d.ts +21 -0
- package/dist/lib/utils/image/imageConverter.d.ts +23 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/storybook.d.ts +13 -2
- package/dist/lib/utils/styles.d.ts +9 -0
- package/dist/lib/utils/variants.d.ts +35 -0
- package/dist/lib/utils.d.ts +2 -2
- package/dist/lib/utils.js +25 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/loader-circle-D1YXTEGq.js +14 -0
- package/dist/loader-circle-D1YXTEGq.js.map +1 -0
- package/dist/minus-BltQa7Q2.js +12 -0
- package/dist/minus-BltQa7Q2.js.map +1 -0
- package/dist/normalizeDates-9A3c9WYM.js +32 -0
- package/dist/normalizeDates-9A3c9WYM.js.map +1 -0
- package/dist/providers/component-variant-context/ComponentVariantProvider.d.ts +30 -0
- package/dist/providers/component-variant-context/index.d.ts +1 -0
- package/dist/providers/component-variant-context.d.ts +2 -0
- package/dist/providers/component-variant-context.js +6 -0
- package/dist/providers/component-variant-context.js.map +1 -0
- package/dist/rotate-cw-tYRlcg0g.js +15 -0
- package/dist/rotate-cw-tYRlcg0g.js.map +1 -0
- package/dist/search-CDdgqSGg.js +15 -0
- package/dist/search-CDdgqSGg.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.ts.js +7 -0
- package/dist/src/index.ts.js.map +1 -0
- package/dist/styles-scoped.css +6239 -2320
- package/dist/styles.css +5980 -2063
- package/dist/theme.css +329 -0
- package/dist/theme.d.ts +1 -0
- package/dist/types/css.d.ts +4 -4
- package/dist/useBreakpoints-D8wKOvil.js +103 -0
- package/dist/useBreakpoints-D8wKOvil.js.map +1 -0
- package/dist/useDebounce-BRah78CF.js +16 -0
- package/dist/useDebounce-BRah78CF.js.map +1 -0
- package/dist/useFileUpload-iDag0iqM.js +197 -0
- package/dist/useFileUpload-iDag0iqM.js.map +1 -0
- package/dist/useItemsKeyboardNavigation-CmeOR30y.js +62 -0
- package/dist/useItemsKeyboardNavigation-CmeOR30y.js.map +1 -0
- package/dist/useMergeRefs-qoKniYqT.js +19 -0
- package/dist/useMergeRefs-qoKniYqT.js.map +1 -0
- package/dist/usePortalContainer-ae6EzS08.js +39 -0
- package/dist/usePortalContainer-ae6EzS08.js.map +1 -0
- package/dist/vendors/date-fns/index.d.ts +19 -0
- package/dist/vendors/date-fns/locale/en-US/index.d.ts +1 -0
- package/dist/vendors/date-fns/locale/en-US.d.ts +2 -0
- package/dist/vendors/date-fns/locale/en-US.js +372 -0
- package/dist/vendors/date-fns/locale/en-US.js.map +1 -0
- package/dist/vendors/date-fns/locale/ru/index.d.ts +1 -0
- package/dist/vendors/date-fns/locale/ru.d.ts +2 -0
- package/dist/vendors/date-fns/locale/ru.js +569 -0
- package/dist/vendors/date-fns/locale/ru.js.map +1 -0
- package/dist/vendors/date-fns.d.ts +2 -0
- package/dist/vendors/date-fns.js +2 -0
- package/dist/vendors/date-fns.js.map +1 -0
- package/dist/vendors/react-day-picker/index.d.ts +22 -0
- package/dist/vendors/react-day-picker.d.ts +2 -0
- package/dist/vendors/react-day-picker.js +87 -0
- package/dist/vendors/react-day-picker.js.map +1 -0
- package/dist/vendors/react-hook-form/index.d.ts +21 -0
- package/dist/vendors/react-hook-form.d.ts +2 -0
- package/dist/vendors/react-hook-form.js +19 -0
- package/dist/vendors/react-hook-form.js.map +1 -0
- package/dist/vendors/tanstack/react-table/index.d.ts +1 -0
- package/dist/vendors/tanstack/react-table.d.ts +2 -0
- package/dist/vendors/tanstack/react-table.js +2090 -0
- package/dist/vendors/tanstack/react-table.js.map +1 -0
- package/dist/vendors/zod/index.d.ts +14 -0
- package/dist/vendors/zod.d.ts +2 -0
- package/dist/vendors/zod.js +3080 -0
- package/dist/vendors/zod.js.map +1 -0
- package/dist/{x-JgjNP5oH.js → x-tDTt7hTQ.js} +2 -2
- package/dist/{x-JgjNP5oH.js.map → x-tDTt7hTQ.js.map} +1 -1
- package/dist/zod-BMNoK3aM.js +75 -0
- package/dist/zod-BMNoK3aM.js.map +1 -0
- package/package.json +183 -117
- package/tailwind.preset.js +441 -0
- package/dist/Button-Cfe4WIYW.js +0 -57
- package/dist/Button-Cfe4WIYW.js.map +0 -1
- package/dist/ButtonBase-C8kakRHQ.js +0 -184
- package/dist/ButtonBase-C8kakRHQ.js.map +0 -1
- package/dist/CheckboxField-DaRmV9yw.js +0 -251
- package/dist/CheckboxField-DaRmV9yw.js.map +0 -1
- package/dist/Description-g2E6P7Qi.js +0 -37
- package/dist/Description-g2E6P7Qi.js.map +0 -1
- package/dist/Divider-D3NvaU8c.js +0 -46
- package/dist/Divider-D3NvaU8c.js.map +0 -1
- package/dist/Field-CjwIc66I.js +0 -83
- package/dist/Field-CjwIc66I.js.map +0 -1
- package/dist/FieldLabel--NVcQQhJ.js +0 -64
- package/dist/FieldLabel--NVcQQhJ.js.map +0 -1
- package/dist/Icon-CSPBHL_x.js +0 -19
- package/dist/Icon-CSPBHL_x.js.map +0 -1
- package/dist/IconButton-CTxOql_1.js +0 -55
- package/dist/IconButton-CTxOql_1.js.map +0 -1
- package/dist/ScrollShadowContainer-C4qXz8gc.js +0 -849
- package/dist/ScrollShadowContainer-C4qXz8gc.js.map +0 -1
- package/dist/components/background/Background.d.ts +0 -138
- package/dist/components/background/Background.stories.d.ts +0 -6
- package/dist/components/input/secret-input/components/ShowValueToggler.d.ts +0 -7
- package/dist/components/modal/Modal.d.ts +0 -14
- package/dist/components/modal/Modal.stories.d.ts +0 -25
- package/dist/components/modal/components/body/ModalBody.d.ts +0 -2
- package/dist/components/modal/components/footer/ModalFooter.d.ts +0 -2
- package/dist/components/modal/components/header/ModalHeader.d.ts +0 -6
- package/dist/components/modal/index.d.ts +0 -6
- package/dist/components/modal/templates/header-template/ModalHeaderTemplate.d.ts +0 -210
- package/dist/components/modal.d.ts +0 -2
- package/dist/components/modal.js +0 -507
- package/dist/components/modal.js.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/createLucideIcon-DgrNxRV5.js +0 -112
- package/dist/design-tokens.source.json +0 -1
- package/dist/fonts/inter/InterVariable-Italic.ttf +0 -0
- package/dist/fonts/inter/InterVariable.ttf +0 -0
- package/dist/index-BA36kN2b.js +0 -76
- package/dist/index-BA36kN2b.js.map +0 -1
- package/dist/index-CImD85pK.js +0 -179
- package/dist/index-CImD85pK.js.map +0 -1
- package/dist/index-CR-odn5-.js +0 -2446
- package/dist/index-CR-odn5-.js.map +0 -1
- package/dist/index-CaGtfIqw.js +0 -163
- package/dist/index-CaGtfIqw.js.map +0 -1
- package/dist/index-CfJKNBxG.js +0 -698
- package/dist/index-CfJKNBxG.js.map +0 -1
- package/dist/index-DPws5oAn.js +0 -90
- package/dist/index-DPws5oAn.js.map +0 -1
- package/dist/index-DsEh1WRc.js +0 -1586
- package/dist/index-DsEh1WRc.js.map +0 -1
- package/dist/index-pysSAa5G.js +0 -57
- package/dist/index-pysSAa5G.js.map +0 -1
- package/dist/tooltip-CYQMPCEj.js +0 -365
- package/dist/tooltip-CYQMPCEj.js.map +0 -1
- package/dist/utils-2yE78m5l.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.js","sources":["../../node_modules/.pnpm/@radix-ui+react-menu@2.1.16_@types+react-dom@18.3.6_@types+react@18.3.20__@types+react@_35fddcd3455c39e31efd7862f92ddf73/node_modules/@radix-ui/react-menu/dist/index.mjs","../../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.1.16_@types+react-dom@18.3.6_@types+react@18.3.20__@typ_fd493ded79af14f2afcca9496af471b5/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs","../../src/components/dropdown/Dropdown.tsx","../../src/components/dropdown/useHoverDropdown.ts"],"sourcesContent":["\"use client\";\n\n// src/menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs, composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport * as RovingFocusGroup from \"@radix-ui/react-roving-focus\";\nimport { createRovingFocusGroupScope } from \"@radix-ui/react-roving-focus\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SELECTION_KEYS = [\"Enter\", \" \"];\nvar FIRST_KEYS = [\"ArrowDown\", \"PageUp\", \"Home\"];\nvar LAST_KEYS = [\"ArrowUp\", \"PageDown\", \"End\"];\nvar FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nvar SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, \"ArrowRight\"],\n rtl: [...SELECTION_KEYS, \"ArrowLeft\"]\n};\nvar SUB_CLOSE_KEYS = {\n ltr: [\"ArrowLeft\"],\n rtl: [\"ArrowRight\"]\n};\nvar MENU_NAME = \"Menu\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(MENU_NAME);\nvar [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [\n createCollectionScope,\n createPopperScope,\n createRovingFocusGroupScope\n]);\nvar usePopperScope = createPopperScope();\nvar useRovingFocusGroupScope = createRovingFocusGroupScope();\nvar [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);\nvar [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);\nvar Menu = (props) => {\n const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;\n const popperScope = usePopperScope(__scopeMenu);\n const [content, setContent] = React.useState(null);\n const isUsingKeyboardRef = React.useRef(false);\n const handleOpenChange = useCallbackRef(onOpenChange);\n const direction = useDirection(dir);\n React.useEffect(() => {\n const handleKeyDown = () => {\n isUsingKeyboardRef.current = true;\n document.addEventListener(\"pointerdown\", handlePointer, { capture: true, once: true });\n document.addEventListener(\"pointermove\", handlePointer, { capture: true, once: true });\n };\n const handlePointer = () => isUsingKeyboardRef.current = false;\n document.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n document.removeEventListener(\"pointerdown\", handlePointer, { capture: true });\n document.removeEventListener(\"pointermove\", handlePointer, { capture: true });\n };\n }, []);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuRootProvider,\n {\n scope: __scopeMenu,\n onClose: React.useCallback(() => handleOpenChange(false), [handleOpenChange]),\n isUsingKeyboardRef,\n dir: direction,\n modal,\n children\n }\n )\n }\n ) });\n};\nMenu.displayName = MENU_NAME;\nvar ANCHOR_NAME = \"MenuAnchor\";\nvar MenuAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...anchorProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });\n }\n);\nMenuAnchor.displayName = ANCHOR_NAME;\nvar PORTAL_NAME = \"MenuPortal\";\nvar [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar MenuPortal = (props) => {\n const { __scopeMenu, forceMount, children, container } = props;\n const context = useMenuContext(PORTAL_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, container, children }) }) });\n};\nMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"MenuContent\";\nvar [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME);\nvar MenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });\n }\n);\nvar MenuRootContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const content = ref.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: context.open,\n disableOutsideScroll: true,\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault(),\n { checkForDefaultPrevented: false }\n ),\n onDismiss: () => context.onOpenChange(false)\n }\n );\n }\n);\nvar MenuRootContentNonModal = React.forwardRef((props, forwardedRef) => {\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n return /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n onDismiss: () => context.onOpenChange(false)\n }\n );\n});\nvar Slot = createSlot(\"MenuContent.ScrollLock\");\nvar MenuContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeMenu,\n loop = false,\n trapFocus,\n onOpenAutoFocus,\n onCloseAutoFocus,\n disableOutsidePointerEvents,\n onEntryFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n disableOutsideScroll,\n ...contentProps\n } = props;\n const context = useMenuContext(CONTENT_NAME, __scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const getItems = useCollection(__scopeMenu);\n const [currentItemId, setCurrentItemId] = React.useState(null);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);\n const timerRef = React.useRef(0);\n const searchRef = React.useRef(\"\");\n const pointerGraceTimerRef = React.useRef(0);\n const pointerGraceIntentRef = React.useRef(null);\n const pointerDirRef = React.useRef(\"right\");\n const lastPointerXRef = React.useRef(0);\n const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : React.Fragment;\n const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot, allowPinchZoom: true } : void 0;\n const handleTypeaheadSearch = (key) => {\n const search = searchRef.current + key;\n const items = getItems().filter((item) => !item.disabled);\n const currentItem = document.activeElement;\n const currentMatch = items.find((item) => item.ref.current === currentItem)?.textValue;\n const values = items.map((item) => item.textValue);\n const nextMatch = getNextMatch(values, search, currentMatch);\n const newItem = items.find((item) => item.textValue === nextMatch)?.ref.current;\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n if (newItem) {\n setTimeout(() => newItem.focus());\n }\n };\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n useFocusGuards();\n const isPointerMovingToSubmenu = React.useCallback((event) => {\n const isMovingTowards = pointerDirRef.current === pointerGraceIntentRef.current?.side;\n return isMovingTowards && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);\n }, []);\n return /* @__PURE__ */ jsx(\n MenuContentProvider,\n {\n scope: __scopeMenu,\n searchRef,\n onItemEnter: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n onItemLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) return;\n contentRef.current?.focus();\n setCurrentItemId(null);\n },\n [isPointerMovingToSubmenu]\n ),\n onTriggerLeave: React.useCallback(\n (event) => {\n if (isPointerMovingToSubmenu(event)) event.preventDefault();\n },\n [isPointerMovingToSubmenu]\n ),\n pointerGraceTimerRef,\n onPointerGraceIntentChange: React.useCallback((intent) => {\n pointerGraceIntentRef.current = intent;\n }, []),\n children: /* @__PURE__ */ jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: trapFocus,\n onMountAutoFocus: composeEventHandlers(onOpenAutoFocus, (event) => {\n event.preventDefault();\n contentRef.current?.focus({ preventScroll: true });\n }),\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n children: /* @__PURE__ */ jsx(\n RovingFocusGroup.Root,\n {\n asChild: true,\n ...rovingFocusGroupScope,\n dir: rootContext.dir,\n orientation: \"vertical\",\n loop,\n currentTabStopId: currentItemId,\n onCurrentTabStopIdChange: setCurrentItemId,\n onEntryFocus: composeEventHandlers(onEntryFocus, (event) => {\n if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();\n }),\n preventScrollOnEntryFocus: true,\n children: /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n \"data-state\": getOpenState(context.open),\n \"data-radix-menu-content\": \"\",\n dir: rootContext.dir,\n ...popperScope,\n ...contentProps,\n ref: composedRefs,\n style: { outline: \"none\", ...contentProps.style },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const target = event.target;\n const isKeyDownInside = target.closest(\"[data-radix-menu-content]\") === event.currentTarget;\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n const isCharacterKey = event.key.length === 1;\n if (isKeyDownInside) {\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && isCharacterKey) handleTypeaheadSearch(event.key);\n }\n const content = contentRef.current;\n if (event.target !== content) return;\n if (!FIRST_LAST_KEYS.includes(event.key)) return;\n event.preventDefault();\n const items = getItems().filter((item) => !item.disabled);\n const candidateNodes = items.map((item) => item.ref.current);\n if (LAST_KEYS.includes(event.key)) candidateNodes.reverse();\n focusFirst(candidateNodes);\n }),\n onBlur: composeEventHandlers(props.onBlur, (event) => {\n if (!event.currentTarget.contains(event.target)) {\n window.clearTimeout(timerRef.current);\n searchRef.current = \"\";\n }\n }),\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n const target = event.target;\n const pointerXHasChanged = lastPointerXRef.current !== event.clientX;\n if (event.currentTarget.contains(target) && pointerXHasChanged) {\n const newDir = event.clientX > lastPointerXRef.current ? \"right\" : \"left\";\n pointerDirRef.current = newDir;\n lastPointerXRef.current = event.clientX;\n }\n })\n )\n }\n )\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"MenuGroup\";\nvar MenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...groupProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", ...groupProps, ref: forwardedRef });\n }\n);\nMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"MenuLabel\";\nvar MenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...labelProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { ...labelProps, ref: forwardedRef });\n }\n);\nMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"MenuItem\";\nvar ITEM_SELECT = \"menu.itemSelect\";\nvar MenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { disabled = false, onSelect, ...itemProps } = props;\n const ref = React.useRef(null);\n const rootContext = useMenuRootContext(ITEM_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(ITEM_NAME, props.__scopeMenu);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const isPointerDownRef = React.useRef(false);\n const handleSelect = () => {\n const menuItem = ref.current;\n if (!disabled && menuItem) {\n const itemSelectEvent = new CustomEvent(ITEM_SELECT, { bubbles: true, cancelable: true });\n menuItem.addEventListener(ITEM_SELECT, (event) => onSelect?.(event), { once: true });\n dispatchDiscreteCustomEvent(menuItem, itemSelectEvent);\n if (itemSelectEvent.defaultPrevented) {\n isPointerDownRef.current = false;\n } else {\n rootContext.onClose();\n }\n }\n };\n return /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n ...itemProps,\n ref: composedRefs,\n disabled,\n onClick: composeEventHandlers(props.onClick, handleSelect),\n onPointerDown: (event) => {\n props.onPointerDown?.(event);\n isPointerDownRef.current = true;\n },\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n if (!isPointerDownRef.current) event.currentTarget?.click();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (disabled || isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) {\n event.currentTarget.click();\n event.preventDefault();\n }\n })\n }\n );\n }\n);\nMenuItem.displayName = ITEM_NAME;\nvar MenuItemImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;\n const contentContext = useMenuContentContext(ITEM_NAME, __scopeMenu);\n const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const [isFocused, setIsFocused] = React.useState(false);\n const [textContent, setTextContent] = React.useState(\"\");\n React.useEffect(() => {\n const menuItem = ref.current;\n if (menuItem) {\n setTextContent((menuItem.textContent ?? \"\").trim());\n }\n }, [itemProps.children]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeMenu,\n disabled,\n textValue: textValue ?? textContent,\n children: /* @__PURE__ */ jsx(RovingFocusGroup.Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"menuitem\",\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n ...itemProps,\n ref: composedRefs,\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n if (disabled) {\n contentContext.onItemLeave(event);\n } else {\n contentContext.onItemEnter(event);\n if (!event.defaultPrevented) {\n const item = event.currentTarget;\n item.focus({ preventScroll: true });\n }\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => contentContext.onItemLeave(event))\n ),\n onFocus: composeEventHandlers(props.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(props.onBlur, () => setIsFocused(false))\n }\n ) })\n }\n );\n }\n);\nvar CHECKBOX_ITEM_NAME = \"MenuCheckboxItem\";\nvar MenuCheckboxItem = React.forwardRef(\n (props, forwardedRef) => {\n const { checked = false, onCheckedChange, ...checkboxItemProps } = props;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemcheckbox\",\n \"aria-checked\": isIndeterminate(checked) ? \"mixed\" : checked,\n ...checkboxItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n checkboxItemProps.onSelect,\n () => onCheckedChange?.(isIndeterminate(checked) ? true : !checked),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"MenuRadioGroup\";\nvar [RadioGroupProvider, useRadioGroupContext] = createMenuContext(\n RADIO_GROUP_NAME,\n { value: void 0, onValueChange: () => {\n } }\n);\nvar MenuRadioGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { value, onValueChange, ...groupProps } = props;\n const handleValueChange = useCallbackRef(onValueChange);\n return /* @__PURE__ */ jsx(RadioGroupProvider, { scope: props.__scopeMenu, value, onValueChange: handleValueChange, children: /* @__PURE__ */ jsx(MenuGroup, { ...groupProps, ref: forwardedRef }) });\n }\n);\nMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"MenuRadioItem\";\nvar MenuRadioItem = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...radioItemProps } = props;\n const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);\n const checked = value === context.value;\n return /* @__PURE__ */ jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsx(\n MenuItem,\n {\n role: \"menuitemradio\",\n \"aria-checked\": checked,\n ...radioItemProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(checked),\n onSelect: composeEventHandlers(\n radioItemProps.onSelect,\n () => context.onValueChange?.(value),\n { checkForDefaultPrevented: false }\n )\n }\n ) });\n }\n);\nMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar ITEM_INDICATOR_NAME = \"MenuItemIndicator\";\nvar [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(\n ITEM_INDICATOR_NAME,\n { checked: false }\n);\nvar MenuItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;\n const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);\n return /* @__PURE__ */ jsx(\n Presence,\n {\n present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...itemIndicatorProps,\n ref: forwardedRef,\n \"data-state\": getCheckedState(indicatorContext.checked)\n }\n )\n }\n );\n }\n);\nMenuItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SEPARATOR_NAME = \"MenuSeparator\";\nvar MenuSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n ...separatorProps,\n ref: forwardedRef\n }\n );\n }\n);\nMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"MenuArrow\";\nvar MenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeMenu, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeMenu);\n return /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });\n }\n);\nMenuArrow.displayName = ARROW_NAME;\nvar SUB_NAME = \"MenuSub\";\nvar [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);\nvar MenuSub = (props) => {\n const { __scopeMenu, children, open = false, onOpenChange } = props;\n const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);\n const popperScope = usePopperScope(__scopeMenu);\n const [trigger, setTrigger] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const handleOpenChange = useCallbackRef(onOpenChange);\n React.useEffect(() => {\n if (parentMenuContext.open === false) handleOpenChange(false);\n return () => handleOpenChange(false);\n }, [parentMenuContext.open, handleOpenChange]);\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsx(\n MenuProvider,\n {\n scope: __scopeMenu,\n open,\n onOpenChange: handleOpenChange,\n content,\n onContentChange: setContent,\n children: /* @__PURE__ */ jsx(\n MenuSubProvider,\n {\n scope: __scopeMenu,\n contentId: useId(),\n triggerId: useId(),\n trigger,\n onTriggerChange: setTrigger,\n children\n }\n )\n }\n ) });\n};\nMenuSub.displayName = SUB_NAME;\nvar SUB_TRIGGER_NAME = \"MenuSubTrigger\";\nvar MenuSubTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);\n const openTimerRef = React.useRef(null);\n const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;\n const scope = { __scopeMenu: props.__scopeMenu };\n const clearOpenTimer = React.useCallback(() => {\n if (openTimerRef.current) window.clearTimeout(openTimerRef.current);\n openTimerRef.current = null;\n }, []);\n React.useEffect(() => clearOpenTimer, [clearOpenTimer]);\n React.useEffect(() => {\n const pointerGraceTimer = pointerGraceTimerRef.current;\n return () => {\n window.clearTimeout(pointerGraceTimer);\n onPointerGraceIntentChange(null);\n };\n }, [pointerGraceTimerRef, onPointerGraceIntentChange]);\n return /* @__PURE__ */ jsx(MenuAnchor, { asChild: true, ...scope, children: /* @__PURE__ */ jsx(\n MenuItemImpl,\n {\n id: subContext.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": subContext.contentId,\n \"data-state\": getOpenState(context.open),\n ...props,\n ref: composeRefs(forwardedRef, subContext.onTriggerChange),\n onClick: (event) => {\n props.onClick?.(event);\n if (props.disabled || event.defaultPrevented) return;\n event.currentTarget.focus();\n if (!context.open) context.onOpenChange(true);\n },\n onPointerMove: composeEventHandlers(\n props.onPointerMove,\n whenMouse((event) => {\n contentContext.onItemEnter(event);\n if (event.defaultPrevented) return;\n if (!props.disabled && !context.open && !openTimerRef.current) {\n contentContext.onPointerGraceIntentChange(null);\n openTimerRef.current = window.setTimeout(() => {\n context.onOpenChange(true);\n clearOpenTimer();\n }, 100);\n }\n })\n ),\n onPointerLeave: composeEventHandlers(\n props.onPointerLeave,\n whenMouse((event) => {\n clearOpenTimer();\n const contentRect = context.content?.getBoundingClientRect();\n if (contentRect) {\n const side = context.content?.dataset.side;\n const rightSide = side === \"right\";\n const bleed = rightSide ? -5 : 5;\n const contentNearEdge = contentRect[rightSide ? \"left\" : \"right\"];\n const contentFarEdge = contentRect[rightSide ? \"right\" : \"left\"];\n contentContext.onPointerGraceIntentChange({\n area: [\n // Apply a bleed on clientX to ensure that our exit point is\n // consistently within polygon bounds\n { x: event.clientX + bleed, y: event.clientY },\n { x: contentNearEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.top },\n { x: contentFarEdge, y: contentRect.bottom },\n { x: contentNearEdge, y: contentRect.bottom }\n ],\n side\n });\n window.clearTimeout(pointerGraceTimerRef.current);\n pointerGraceTimerRef.current = window.setTimeout(\n () => contentContext.onPointerGraceIntentChange(null),\n 300\n );\n } else {\n contentContext.onTriggerLeave(event);\n if (event.defaultPrevented) return;\n contentContext.onPointerGraceIntentChange(null);\n }\n })\n ),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef.current !== \"\";\n if (props.disabled || isTypingAhead && event.key === \" \") return;\n if (SUB_OPEN_KEYS[rootContext.dir].includes(event.key)) {\n context.onOpenChange(true);\n context.content?.focus();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"MenuSubContent\";\nvar MenuSubContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeMenu);\n const { forceMount = portalContext.forceMount, ...subContentProps } = props;\n const context = useMenuContext(CONTENT_NAME, props.__scopeMenu);\n const rootContext = useMenuRootContext(CONTENT_NAME, props.__scopeMenu);\n const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsx(\n MenuContentImpl,\n {\n id: subContext.contentId,\n \"aria-labelledby\": subContext.triggerId,\n ...subContentProps,\n ref: composedRefs,\n align: \"start\",\n side: rootContext.dir === \"rtl\" ? \"left\" : \"right\",\n disableOutsidePointerEvents: false,\n disableOutsideScroll: false,\n trapFocus: false,\n onOpenAutoFocus: (event) => {\n if (rootContext.isUsingKeyboardRef.current) ref.current?.focus();\n event.preventDefault();\n },\n onCloseAutoFocus: (event) => event.preventDefault(),\n onFocusOutside: composeEventHandlers(props.onFocusOutside, (event) => {\n if (event.target !== subContext.trigger) context.onOpenChange(false);\n }),\n onEscapeKeyDown: composeEventHandlers(props.onEscapeKeyDown, (event) => {\n rootContext.onClose();\n event.preventDefault();\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n const isKeyDownInside = event.currentTarget.contains(event.target);\n const isCloseKey = SUB_CLOSE_KEYS[rootContext.dir].includes(event.key);\n if (isKeyDownInside && isCloseKey) {\n context.onOpenChange(false);\n subContext.trigger?.focus();\n event.preventDefault();\n }\n })\n }\n ) }) }) });\n }\n);\nMenuSubContent.displayName = SUB_CONTENT_NAME;\nfunction getOpenState(open) {\n return open ? \"open\" : \"closed\";\n}\nfunction isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nfunction getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nfunction focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nfunction getNextMatch(values, search, currentMatch) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find(\n (value) => value.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextMatch !== currentMatch ? nextMatch : void 0;\n}\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const ii = polygon[i];\n const jj = polygon[j];\n const xi = ii.x;\n const yi = ii.y;\n const xj = jj.x;\n const yj = jj.y;\n const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi;\n if (intersect) inside = !inside;\n }\n return inside;\n}\nfunction isPointerInGraceArea(event, area) {\n if (!area) return false;\n const cursorPos = { x: event.clientX, y: event.clientY };\n return isPointInPolygon(cursorPos, area);\n}\nfunction whenMouse(handler) {\n return (event) => event.pointerType === \"mouse\" ? handler(event) : void 0;\n}\nvar Root3 = Menu;\nvar Anchor2 = MenuAnchor;\nvar Portal = MenuPortal;\nvar Content2 = MenuContent;\nvar Group = MenuGroup;\nvar Label = MenuLabel;\nvar Item2 = MenuItem;\nvar CheckboxItem = MenuCheckboxItem;\nvar RadioGroup = MenuRadioGroup;\nvar RadioItem = MenuRadioItem;\nvar ItemIndicator = MenuItemIndicator;\nvar Separator = MenuSeparator;\nvar Arrow2 = MenuArrow;\nvar Sub = MenuSub;\nvar SubTrigger = MenuSubTrigger;\nvar SubContent = MenuSubContent;\nexport {\n Anchor2 as Anchor,\n Arrow2 as Arrow,\n CheckboxItem,\n Content2 as Content,\n Group,\n Item2 as Item,\n ItemIndicator,\n Label,\n Menu,\n MenuAnchor,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuGroup,\n MenuItem,\n MenuItemIndicator,\n MenuLabel,\n MenuPortal,\n MenuRadioGroup,\n MenuRadioItem,\n MenuSeparator,\n MenuSub,\n MenuSubContent,\n MenuSubTrigger,\n Portal,\n RadioGroup,\n RadioItem,\n Root3 as Root,\n Separator,\n Sub,\n SubContent,\n SubTrigger,\n createMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/dropdown-menu.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as MenuPrimitive from \"@radix-ui/react-menu\";\nimport { createMenuScope } from \"@radix-ui/react-menu\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DROPDOWN_MENU_NAME = \"DropdownMenu\";\nvar [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(\n DROPDOWN_MENU_NAME,\n [createMenuScope]\n);\nvar useMenuScope = createMenuScope();\nvar [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);\nvar DropdownMenu = (props) => {\n const {\n __scopeDropdownMenu,\n children,\n dir,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const triggerRef = React.useRef(null);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: DROPDOWN_MENU_NAME\n });\n return /* @__PURE__ */ jsx(\n DropdownMenuProvider,\n {\n scope: __scopeDropdownMenu,\n triggerId: useId(),\n triggerRef,\n contentId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children: /* @__PURE__ */ jsx(MenuPrimitive.Root, { ...menuScope, open, onOpenChange: setOpen, dir, modal, children })\n }\n );\n};\nDropdownMenu.displayName = DROPDOWN_MENU_NAME;\nvar TRIGGER_NAME = \"DropdownMenuTrigger\";\nvar DropdownMenuTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;\n const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Anchor, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n id: context.triggerId,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.open ? context.contentId : void 0,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-disabled\": disabled ? \"\" : void 0,\n disabled,\n ...triggerProps,\n ref: composeRefs(forwardedRef, context.triggerRef),\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n if (!disabled && event.button === 0 && event.ctrlKey === false) {\n context.onOpenToggle();\n if (!context.open) event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (disabled) return;\n if ([\"Enter\", \" \"].includes(event.key)) context.onOpenToggle();\n if (event.key === \"ArrowDown\") context.onOpenChange(true);\n if ([\"Enter\", \" \", \"ArrowDown\"].includes(event.key)) event.preventDefault();\n })\n }\n ) });\n }\n);\nDropdownMenuTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DropdownMenuPortal\";\nvar DropdownMenuPortal = (props) => {\n const { __scopeDropdownMenu, ...portalProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Portal, { ...menuScope, ...portalProps });\n};\nDropdownMenuPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"DropdownMenuContent\";\nvar DropdownMenuContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...contentProps } = props;\n const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const hasInteractedOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.Content,\n {\n id: context.contentId,\n \"aria-labelledby\": context.triggerId,\n ...menuScope,\n ...contentProps,\n ref: forwardedRef,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n hasInteractedOutsideRef.current = false;\n event.preventDefault();\n }),\n onInteractOutside: composeEventHandlers(props.onInteractOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (!context.modal || isRightClick) hasInteractedOutsideRef.current = true;\n }),\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n }\n);\nDropdownMenuContent.displayName = CONTENT_NAME;\nvar GROUP_NAME = \"DropdownMenuGroup\";\nvar DropdownMenuGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...groupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Group, { ...menuScope, ...groupProps, ref: forwardedRef });\n }\n);\nDropdownMenuGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"DropdownMenuLabel\";\nvar DropdownMenuLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...labelProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Label, { ...menuScope, ...labelProps, ref: forwardedRef });\n }\n);\nDropdownMenuLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"DropdownMenuItem\";\nvar DropdownMenuItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Item, { ...menuScope, ...itemProps, ref: forwardedRef });\n }\n);\nDropdownMenuItem.displayName = ITEM_NAME;\nvar CHECKBOX_ITEM_NAME = \"DropdownMenuCheckboxItem\";\nvar DropdownMenuCheckboxItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...checkboxItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });\n});\nDropdownMenuCheckboxItem.displayName = CHECKBOX_ITEM_NAME;\nvar RADIO_GROUP_NAME = \"DropdownMenuRadioGroup\";\nvar DropdownMenuRadioGroup = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioGroupProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioGroup, { ...menuScope, ...radioGroupProps, ref: forwardedRef });\n});\nDropdownMenuRadioGroup.displayName = RADIO_GROUP_NAME;\nvar RADIO_ITEM_NAME = \"DropdownMenuRadioItem\";\nvar DropdownMenuRadioItem = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...radioItemProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });\n});\nDropdownMenuRadioItem.displayName = RADIO_ITEM_NAME;\nvar INDICATOR_NAME = \"DropdownMenuItemIndicator\";\nvar DropdownMenuItemIndicator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...itemIndicatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });\n});\nDropdownMenuItemIndicator.displayName = INDICATOR_NAME;\nvar SEPARATOR_NAME = \"DropdownMenuSeparator\";\nvar DropdownMenuSeparator = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...separatorProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });\n});\nDropdownMenuSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"DropdownMenuArrow\";\nvar DropdownMenuArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDropdownMenu, ...arrowProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.Arrow, { ...menuScope, ...arrowProps, ref: forwardedRef });\n }\n);\nDropdownMenuArrow.displayName = ARROW_NAME;\nvar DropdownMenuSub = (props) => {\n const { __scopeDropdownMenu, children, open: openProp, onOpenChange, defaultOpen } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n const [open, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen ?? false,\n onChange: onOpenChange,\n caller: \"DropdownMenuSub\"\n });\n return /* @__PURE__ */ jsx(MenuPrimitive.Sub, { ...menuScope, open, onOpenChange: setOpen, children });\n};\nvar SUB_TRIGGER_NAME = \"DropdownMenuSubTrigger\";\nvar DropdownMenuSubTrigger = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subTriggerProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(MenuPrimitive.SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });\n});\nDropdownMenuSubTrigger.displayName = SUB_TRIGGER_NAME;\nvar SUB_CONTENT_NAME = \"DropdownMenuSubContent\";\nvar DropdownMenuSubContent = React.forwardRef((props, forwardedRef) => {\n const { __scopeDropdownMenu, ...subContentProps } = props;\n const menuScope = useMenuScope(__scopeDropdownMenu);\n return /* @__PURE__ */ jsx(\n MenuPrimitive.SubContent,\n {\n ...menuScope,\n ...subContentProps,\n ref: forwardedRef,\n style: {\n ...props.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-dropdown-menu-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-dropdown-menu-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-dropdown-menu-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-dropdown-menu-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-dropdown-menu-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nDropdownMenuSubContent.displayName = SUB_CONTENT_NAME;\nvar Root2 = DropdownMenu;\nvar Trigger = DropdownMenuTrigger;\nvar Portal2 = DropdownMenuPortal;\nvar Content2 = DropdownMenuContent;\nvar Group2 = DropdownMenuGroup;\nvar Label2 = DropdownMenuLabel;\nvar Item2 = DropdownMenuItem;\nvar CheckboxItem2 = DropdownMenuCheckboxItem;\nvar RadioGroup2 = DropdownMenuRadioGroup;\nvar RadioItem2 = DropdownMenuRadioItem;\nvar ItemIndicator2 = DropdownMenuItemIndicator;\nvar Separator2 = DropdownMenuSeparator;\nvar Arrow2 = DropdownMenuArrow;\nvar Sub2 = DropdownMenuSub;\nvar SubTrigger2 = DropdownMenuSubTrigger;\nvar SubContent2 = DropdownMenuSubContent;\nexport {\n Arrow2 as Arrow,\n CheckboxItem2 as CheckboxItem,\n Content2 as Content,\n DropdownMenu,\n DropdownMenuArrow,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuItemIndicator,\n DropdownMenuLabel,\n DropdownMenuPortal,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n Group2 as Group,\n Item2 as Item,\n ItemIndicator2 as ItemIndicator,\n Label2 as Label,\n Portal2 as Portal,\n RadioGroup2 as RadioGroup,\n RadioItem2 as RadioItem,\n Root2 as Root,\n Separator2 as Separator,\n Sub2 as Sub,\n SubContent2 as SubContent,\n SubTrigger2 as SubTrigger,\n Trigger,\n createDropdownMenuScope\n};\n//# sourceMappingURL=index.mjs.map\n","import { cn } from \"@/lib/utils\";\nimport { useComponentVariant } from \"@/providers/component-variant-context\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { Check, CheckIcon, ChevronRight, Minus, Search } from \"lucide-react\";\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { TriggerButton } from \"../button\";\nimport { TriggerButtonProps } from \"../button/trigger-button/TriggerButton\";\nimport { Icon } from \"../icon\";\nimport { menuItemStyles } from \"../menu-item\";\nimport { menuItemShortcutStyles } from \"../menu-item/components/menu-item-shortcut/MenuItemShortcut\";\nimport { usePortalContainer } from \"../portal-container\";\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuPrimitiveRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\n// Контекст для передачи настроек от RadioGroup к RadioItem\ntype RadioGroupContextType = {\n\t/**\n\t * Иконка-индикатор для отображения в выбранном элементе\n\t * @default CheckIcon\n\t */\n\tindicatorIcon?: React.ComponentType<{ className?: string }>;\n\t/**\n\t * CSS классы для иконки-индикатора\n\t */\n\tindicatorIconClassName?: string;\n\t/**\n\t * Позиция иконки-индикатора относительно текста\n\t * @default \"start\"\n\t */\n\tindicatorIconPosition?: \"start\" | \"end\";\n};\n\nconst RadioGroupContext = React.createContext<RadioGroupContextType | null>(null);\n\ntype DropdownMenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup> &\n\tRadioGroupContextType;\n\nconst DropdownMenuRadioGroup = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.RadioGroup>,\n\tDropdownMenuRadioGroupProps\n>(({ indicatorIcon, indicatorIconClassName, indicatorIconPosition, children, ...props }, ref) => {\n\treturn (\n\t\t<RadioGroupContext.Provider value={{ indicatorIcon, indicatorIconClassName, indicatorIconPosition }}>\n\t\t\t<DropdownMenuPrimitive.RadioGroup ref={ref} {...props}>\n\t\t\t\t{children}\n\t\t\t</DropdownMenuPrimitive.RadioGroup>\n\t\t</RadioGroupContext.Provider>\n\t);\n});\nDropdownMenuRadioGroup.displayName = DropdownMenuPrimitive.RadioGroup.displayName;\n\nconst documentMenuSubTriggerStyles = tv({\n\textend: menuItemStyles,\n\tbase: \"data-[state=open]:bg-secondary-bg-hover\",\n\tslots: {\n\t\tchevron: \"ml-auto h-4 w-4\"\n\t},\n\tvariants: {\n\t\tinset: {\n\t\t\ttrue: \"pl-8\"\n\t\t},\n\t\ttheme: {\n\t\t\tinverse:\n\t\t\t\t\"bg-inverse-primary-bg text-inverse-primary-fg hover:!bg-inverse-hover focus:bg-inverse-hover data-[state=open]:bg-inverse-hover\"\n\t\t}\n\t},\n\tdefaultVariants: {\n\t\tinset: false\n\t}\n});\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, children, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\tconst styles = documentMenuSubTriggerStyles({ inset, theme });\n\n\treturn (\n\t\t<DropdownMenuPrimitive.SubTrigger ref={ref} className={styles.base({ className })} {...props}>\n\t\t\t{children}\n\t\t\t<ChevronRight className={styles.chevron()} />\n\t\t</DropdownMenuPrimitive.SubTrigger>\n\t);\n});\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst documentMenuSubContentStyles = tv({\n\tbase: [\n\t\t\"relative z-50 min-w-[8rem] overflow-hidden rounded-lg border border-secondary-border bg-secondary-bg p-1 shadow-soft-md\",\n\t\t\"origin-[--radix-dropdown-menu-content-transform-origin]\",\n\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n\t\t\"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n\t\t\"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n\t\t\"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\",\n\t\t\"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n\t\t\"data-[side=left]:-top-1 data-[side=right]:-top-1\"\n\t],\n\tvariants: {\n\t\ttheme: {\n\t\t\tinverse: \"border-inverse-border bg-inverse-primary-bg\"\n\t\t}\n\t}\n});\n\nconst DropdownMenuSubContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent> & {\n\t\t/**\n\t\t * Контейнер для портала. Если не указан, используется хук usePortalContainer\n\t\t * для поиска PortalContainer\n\t\t */\n\t\tportalContainer?: HTMLElement;\n\t}\n>(({ className, portalContainer, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\tconst container = usePortalContainer(portalContainer);\n\n\treturn (\n\t\t<DropdownMenuPrimitive.Portal container={container}>\n\t\t\t<DropdownMenuPrimitive.SubContent\n\t\t\t\tref={ref}\n\t\t\t\tclassName={documentMenuSubContentStyles({ className, theme })}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</DropdownMenuPrimitive.Portal>\n\t);\n});\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nexport const dropdownMenuContentStyles = tv({\n\tbase: [\n\t\t\"group/dropdown-menu-content z-50 min-w-32 rounded-lg border border-secondary-border bg-secondary-bg p-1 shadow-soft-md\",\n\t\t\"max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden\",\n\t\t\"origin-[--radix-dropdown-menu-content-transform-origin]\",\n\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n\t\t\"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n\t\t\"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n\t\t\"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2\",\n\t\t\"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\"\n\t],\n\tvariants: {\n\t\ttheme: {\n\t\t\tinverse: \"border-inverse-border bg-inverse-primary-bg\"\n\t\t}\n\t}\n});\n\nconst DropdownMenuContent = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Content>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & {\n\t\t/**\n\t\t * Контейнер для портала. Если не указан, используется хук usePortalContainer\n\t\t * для поиска PortalContainer\n\t\t */\n\t\tportalContainer?: HTMLElement;\n\t}\n>(({ className, sideOffset = 4, portalContainer, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\n\tconst container = usePortalContainer(portalContainer);\n\n\treturn (\n\t\t<DropdownMenuPrimitive.Portal container={container}>\n\t\t\t<DropdownMenuPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\tclassName={dropdownMenuContentStyles({ theme, className })}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</DropdownMenuPrimitive.Portal>\n\t);\n});\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst dropdownMenuItemStyles = tv({\n\textend: menuItemStyles,\n\tbase: \"\",\n\tvariants: {\n\t\tinset: {\n\t\t\ttrue: \"!pl-8\"\n\t\t}\n\t}\n});\n\nconst DropdownMenuItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Item>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, disabled, inset, children, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\n\treturn (\n\t\t<DropdownMenuPrimitive.Item\n\t\t\tref={ref}\n\t\t\tdisabled={disabled}\n\t\t\tclassName={dropdownMenuItemStyles({ className, disabled, inset, theme })}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.Item>\n\t);\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst dropdownMenuCheckboxItemStyles = tv({\n\textend: menuItemStyles,\n\tbase: \"\",\n\tslots: {\n\t\tcheckbox: \"flex h-4 w-4 items-center justify-center rounded-sm border transition-colors\",\n\t\ticon: \"h-3.5 w-3.5 text-primary-bg\"\n\t},\n\tvariants: {\n\t\tchecked: {\n\t\t\tindeterminate: {\n\t\t\t\tcheckbox: \"border-primary-accent bg-primary-accent data-[disabled]:opacity-50\"\n\t\t\t},\n\t\t\ttrue: {\n\t\t\t\tcheckbox: \"border-primary-accent bg-primary-accent data-[disabled]:opacity-50\"\n\t\t\t},\n\t\t\tfalse: {\n\t\t\t\tcheckbox: \"border-primary-border bg-secondary-bg\"\n\t\t\t}\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tchecked: [true, \"indeterminate\"],\n\t\t\ttheme: \"inverse\",\n\t\t\tclass: { checkbox: \"border-inverse-primary-fg bg-inverse-primary-fg\", icon: \"text-inverse-primary-bg\" }\n\t\t},\n\t\t{\n\t\t\tchecked: false,\n\t\t\ttheme: \"inverse\",\n\t\t\tclass: { checkbox: \"border-inverse-border bg-inverse-primary-bg\" }\n\t\t}\n\t],\n\tdefaultVariants: {\n\t\tchecked: false\n\t}\n});\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, disabled, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\tconst styles = dropdownMenuCheckboxItemStyles({ checked, theme, disabled });\n\n\treturn (\n\t\t<DropdownMenuPrimitive.CheckboxItem\n\t\t\tref={ref}\n\t\t\tclassName={styles.base({ className })}\n\t\t\tchecked={checked}\n\t\t\tdisabled={disabled}\n\t\t\t{...props}\n\t\t>\n\t\t\t<span className={styles.checkbox()}>\n\t\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t\t{checked === \"indeterminate\" ? (\n\t\t\t\t\t\t<Minus className={styles.icon()} />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Check className={styles.icon()} />\n\t\t\t\t\t)}\n\t\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.CheckboxItem>\n\t);\n});\n\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst dropdownMenuRadioItemStyles = tv({\n\textend: menuItemStyles\n});\n\nconst indicatorStyles = tv({\n\tbase: \"flex h-4 w-4 items-center justify-center\",\n\tvariants: {\n\t\tposition: {\n\t\t\tstart: \"\",\n\t\t\tend: \"order-last ml-auto\"\n\t\t}\n\t}\n});\n\nconst DropdownMenuRadioItem = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, disabled, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\tconst context = React.useContext(RadioGroupContext);\n\tconst IndicatorIcon = context?.indicatorIcon || CheckIcon;\n\tconst indicatorIconPosition = context?.indicatorIconPosition || \"start\";\n\tconst indicatorIconClassName = context?.indicatorIconClassName;\n\tconst styles = dropdownMenuRadioItemStyles({ theme, disabled, className });\n\n\tconst indicator = (\n\t\t<span className={indicatorStyles({ position: indicatorIconPosition })}>\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<IndicatorIcon className={cn(\"h-4 w-4\", indicatorIconClassName)} />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t);\n\n\treturn (\n\t\t<DropdownMenuPrimitive.RadioItem ref={ref} className={styles} disabled={disabled} {...props}>\n\t\t\t{indicator}\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.RadioItem>\n\t);\n});\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst dropdownMenuLabelStyles = tv({\n\tbase: \"flex items-center gap-2 px-2 py-1.5 text-sm font-semibold text-primary-fg\",\n\tvariants: {\n\t\tinset: {\n\t\t\ttrue: \"pl-8\"\n\t\t},\n\t\ttheme: {\n\t\t\tinverse: \"text-inverse-primary-fg\"\n\t\t}\n\t},\n\tdefaultVariants: {\n\t\tinset: false\n\t}\n});\n\nconst DropdownMenuLabel = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Label>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\n\treturn (\n\t\t<DropdownMenuPrimitive.Label\n\t\t\tref={ref}\n\t\t\tclassName={dropdownMenuLabelStyles({ inset, className, theme })}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst dropdownMenuSeparatorStyles = tv({\n\tbase: \"-mx-1 my-1 h-px bg-secondary-border\",\n\tvariants: {\n\t\ttheme: {\n\t\t\tinverse: \"bg-inverse-border\"\n\t\t}\n\t}\n});\n\nconst DropdownMenuSeparator = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => {\n\tconst { variant: theme } = useComponentVariant();\n\n\treturn (\n\t\t<DropdownMenuPrimitive.Separator\n\t\t\tref={ref}\n\t\t\tclassName={dropdownMenuSeparatorStyles({ className, theme })}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst dropdownMenuShortcutStyles = tv({\n\textend: menuItemShortcutStyles,\n\tbase: \"ml-auto text-xs tracking-widest opacity-60\"\n});\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n\tconst { variant: theme } = useComponentVariant();\n\n\treturn <span className={dropdownMenuShortcutStyles({ className, theme })} {...props} />;\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\n/**\n * Компонент-обертка для использования TriggerButton в качестве триггера дропдауна\n */\n\nconst DropdownMenuTriggerButton = React.forwardRef<\n\tReact.ElementRef<typeof DropdownMenuTrigger>,\n\tReact.ComponentPropsWithoutRef<typeof DropdownMenuTrigger> & Omit<TriggerButtonProps, \"dataState\">\n>(({ children, ...props }, ref) => {\n\treturn (\n\t\t<DropdownMenuTrigger asChild ref={ref}>\n\t\t\t<TriggerButton {...props}>{children}</TriggerButton>\n\t\t</DropdownMenuTrigger>\n\t);\n});\nDropdownMenuTriggerButton.displayName = \"DropdownMenuTriggerButton\";\n\nconst dropdownMenuSearchItemStyles = tv({\n\tslots: {\n\t\twrapper: \"flex items-center border-0 p-2 py-0\",\n\t\tsearch: \"mr-2 h-4 w-4 shrink-0 text-muted\",\n\t\tinput: \"flex w-full rounded-md bg-transparent py-1.5 text-sm outline-none placeholder:text-muted disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-search-cancel-button]:hidden\"\n\t},\n\tvariants: {\n\t\ttheme: {\n\t\t\tinverse: {\n\t\t\t\tinput: \"text-inverse-primary-fg placeholder:text-inverse-muted placeholder:opacity-50\"\n\t\t\t}\n\t\t}\n\t}\n});\n\ntype DropdownMenuSearchItemProps = React.ComponentPropsWithoutRef<\"input\"> & {\n\twrapperClassName?: string;\n};\n\nconst DropdownMenuSearchItem = React.forwardRef<React.ElementRef<\"input\">, DropdownMenuSearchItemProps>(\n\t({ className, ...props }, ref) => {\n\t\tconst { variant: theme } = useComponentVariant();\n\t\tconst styles = dropdownMenuSearchItemStyles({ theme });\n\n\t\treturn (\n\t\t\t<label className={styles.wrapper({ className })}>\n\t\t\t\t<Icon icon={Search} className={styles.search()} aria-hidden=\"true\" />\n\t\t\t\t<input\n\t\t\t\t\ttype=\"search\"\n\t\t\t\t\tref={ref}\n\t\t\t\t\tdata-slot=\"command-input\"\n\t\t\t\t\tclassName={styles.input({ className })}\n\t\t\t\t\t{...props}\n\t\t\t\t/>\n\t\t\t</label>\n\t\t);\n\t}\n);\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuContent,\n\tDropdownMenuGroup,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuPrimitiveRadioGroup,\n\tDropdownMenuRadioGroup,\n\tDropdownMenuRadioItem,\n\tDropdownMenuSearchItem,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n\tDropdownMenuTriggerButton\n};\n","import * as React from \"react\";\n\n/**\n * Опции для хука useHoverDropdown\n */\nexport interface UseHoverDropdownOptions {\n\t/**\n\t * Задержка перед открытием меню (мс)\n\t * @default 200\n\t */\n\topenDelay?: number;\n\t/**\n\t * Задержка перед закрытием меню (мс)\n\t * @default 300\n\t */\n\tcloseDelay?: number;\n}\n\n/**\n * Возвращаемое значение хука useHoverDropdown\n */\nexport interface UseHoverDropdownReturn {\n\t/**\n\t * Props для корневого компонента DropdownMenu\n\t */\n\trootProps: {\n\t\topen: boolean;\n\t\tonOpenChange: (open: boolean) => void;\n\t\tmodal: false;\n\t};\n\t/**\n\t * Props для триггера (DropdownMenuTrigger или DropdownMenuTriggerButton)\n\t */\n\ttriggerProps: {\n\t\tonMouseEnter: () => void;\n\t\tonMouseLeave: () => void;\n\t\tonPointerDown: (e: React.PointerEvent) => void;\n\t};\n\t/**\n\t * Props для контента (DropdownMenuContent)\n\t */\n\tcontentProps: {\n\t\tonMouseEnter: () => void;\n\t\tonMouseLeave: () => void;\n\t\tonCloseAutoFocus: (e: Event) => void;\n\t};\n}\n\n/**\n * Хук для управления открытием DropdownMenu по hover.\n *\n * @example\n * ```tsx\n * const { rootProps, triggerProps, contentProps } = useHoverDropdown({\n * openDelay: 200,\n * closeDelay: 300\n * });\n *\n * return (\n * <DropdownMenu {...rootProps}>\n * <DropdownMenuTriggerButton {...triggerProps}>\n * Trigger\n * </DropdownMenuTriggerButton>\n * <DropdownMenuContent {...contentProps}>\n * ...\n * </DropdownMenuContent>\n * </DropdownMenu>\n * );\n * ```\n */\nexport function useHoverDropdown(options: UseHoverDropdownOptions = {}): UseHoverDropdownReturn {\n\tconst { openDelay = 200, closeDelay = 300 } = options;\n\n\tconst [open, setOpen] = React.useState(false);\n\tconst openTimeoutRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\tconst closeTimeoutRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n\tconst clearTimeouts = React.useCallback(() => {\n\t\tif (openTimeoutRef.current) {\n\t\t\tclearTimeout(openTimeoutRef.current);\n\t\t\topenTimeoutRef.current = null;\n\t\t}\n\t\tif (closeTimeoutRef.current) {\n\t\t\tclearTimeout(closeTimeoutRef.current);\n\t\t\tcloseTimeoutRef.current = null;\n\t\t}\n\t}, []);\n\n\t// Очистка таймеров при размонтировании\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tclearTimeouts();\n\t\t};\n\t}, [clearTimeouts]);\n\n\tconst handleMouseEnter = React.useCallback(() => {\n\t\tclearTimeouts();\n\t\topenTimeoutRef.current = setTimeout(() => {\n\t\t\tsetOpen(true);\n\t\t}, openDelay);\n\t}, [openDelay, clearTimeouts]);\n\n\tconst handleMouseLeave = React.useCallback(() => {\n\t\tclearTimeouts();\n\t\tcloseTimeoutRef.current = setTimeout(() => {\n\t\t\tsetOpen(false);\n\t\t}, closeDelay);\n\t}, [closeDelay, clearTimeouts]);\n\n\tconst handlePointerDown = React.useCallback((e: React.PointerEvent) => {\n\t\t// Блокируем клик, чтобы меню управлялось только через hover\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t}, []);\n\n\tconst handleCloseAutoFocus = React.useCallback((e: Event) => {\n\t\t// Предотвращаем возврат фокуса на триггер при закрытии\n\t\te.preventDefault();\n\t}, []);\n\n\tconst handleOpenChange = React.useCallback((newOpen: boolean) => {\n\t\t// Позволяем программное управление состоянием\n\t\tsetOpen(newOpen);\n\t}, []);\n\n\treturn {\n\t\trootProps: {\n\t\t\topen,\n\t\t\tonOpenChange: handleOpenChange,\n\t\t\tmodal: false\n\t\t},\n\t\ttriggerProps: {\n\t\t\tonMouseEnter: handleMouseEnter,\n\t\t\tonMouseLeave: handleMouseLeave,\n\t\t\tonPointerDown: handlePointerDown\n\t\t},\n\t\tcontentProps: {\n\t\t\tonMouseEnter: handleMouseEnter,\n\t\t\tonMouseLeave: handleMouseLeave,\n\t\t\tonCloseAutoFocus: handleCloseAutoFocus\n\t\t}\n\t};\n}\n"],"names":["SELECTION_KEYS","FIRST_KEYS","LAST_KEYS","FIRST_LAST_KEYS","SUB_OPEN_KEYS","SUB_CLOSE_KEYS","MENU_NAME","Collection","useCollection","createCollectionScope","createCollection","createMenuContext","createMenuScope","createContextScope","createPopperScope","createRovingFocusGroupScope","usePopperScope","useRovingFocusGroupScope","MenuProvider","useMenuContext","MenuRootProvider","useMenuRootContext","Menu","props","__scopeMenu","open","children","dir","onOpenChange","modal","popperScope","content","setContent","React","isUsingKeyboardRef","handleOpenChange","useCallbackRef","direction","useDirection","handleKeyDown","handlePointer","jsx","PopperPrimitive.Root","ANCHOR_NAME","MenuAnchor","forwardedRef","anchorProps","PopperPrimitive.Anchor","PORTAL_NAME","PortalProvider","usePortalContext","MenuPortal","forceMount","container","context","Presence","PortalPrimitive","CONTENT_NAME","MenuContentProvider","useMenuContentContext","MenuContent","portalContext","contentProps","rootContext","MenuRootContentModal","MenuRootContentNonModal","ref","composedRefs","useComposedRefs","hideOthers","MenuContentImpl","composeEventHandlers","event","Slot","createSlot","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll","rovingFocusGroupScope","getItems","currentItemId","setCurrentItemId","contentRef","timerRef","searchRef","pointerGraceTimerRef","pointerGraceIntentRef","pointerDirRef","lastPointerXRef","ScrollLockWrapper","RemoveScroll","scrollLockWrapperProps","handleTypeaheadSearch","key","search","items","item","currentItem","currentMatch","values","nextMatch","getNextMatch","newItem","updateSearch","value","useFocusGuards","isPointerMovingToSubmenu","isPointerInGraceArea","intent","FocusScope","DismissableLayer","RovingFocusGroup.Root","PopperPrimitive.Content","getOpenState","isKeyDownInside","isModifierKey","isCharacterKey","candidateNodes","focusFirst","whenMouse","target","pointerXHasChanged","newDir","GROUP_NAME","MenuGroup","groupProps","Primitive","LABEL_NAME","MenuLabel","labelProps","ITEM_NAME","ITEM_SELECT","MenuItem","disabled","onSelect","itemProps","contentContext","isPointerDownRef","handleSelect","menuItem","itemSelectEvent","dispatchDiscreteCustomEvent","MenuItemImpl","isTypingAhead","textValue","isFocused","setIsFocused","textContent","setTextContent","RovingFocusGroup.Item","CHECKBOX_ITEM_NAME","MenuCheckboxItem","checked","onCheckedChange","checkboxItemProps","ItemIndicatorProvider","isIndeterminate","getCheckedState","RADIO_GROUP_NAME","RadioGroupProvider","useRadioGroupContext","MenuRadioGroup","onValueChange","handleValueChange","RADIO_ITEM_NAME","MenuRadioItem","radioItemProps","ITEM_INDICATOR_NAME","useItemIndicatorContext","MenuItemIndicator","itemIndicatorProps","indicatorContext","SEPARATOR_NAME","MenuSeparator","separatorProps","ARROW_NAME","MenuArrow","arrowProps","PopperPrimitive.Arrow","SUB_NAME","MenuSubProvider","useMenuSubContext","MenuSub","parentMenuContext","trigger","setTrigger","useId","SUB_TRIGGER_NAME","MenuSubTrigger","subContext","openTimerRef","onPointerGraceIntentChange","scope","clearOpenTimer","pointerGraceTimer","composeRefs","contentRect","side","rightSide","bleed","contentNearEdge","contentFarEdge","SUB_CONTENT_NAME","MenuSubContent","subContentProps","isCloseKey","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","wrapArray","array","startIndex","_","index","normalizedSearch","char","currentMatchIndex","wrappedValues","v","isPointInPolygon","point","polygon","x","y","inside","i","j","ii","jj","xi","yi","xj","yj","area","cursorPos","handler","Root3","Anchor2","Portal","Content2","Group","Label","Item2","CheckboxItem","RadioGroup","RadioItem","ItemIndicator","Separator","Arrow2","Sub","SubTrigger","SubContent","DROPDOWN_MENU_NAME","createDropdownMenuContext","createDropdownMenuScope","useMenuScope","DropdownMenuProvider","useDropdownMenuContext","DropdownMenu","__scopeDropdownMenu","openProp","defaultOpen","menuScope","triggerRef","setOpen","useControllableState","prevOpen","MenuPrimitive.Root","TRIGGER_NAME","DropdownMenuTrigger","triggerProps","MenuPrimitive.Anchor","DropdownMenuPortal","portalProps","MenuPrimitive.Portal","DropdownMenuContent","hasInteractedOutsideRef","MenuPrimitive.Content","originalEvent","ctrlLeftClick","isRightClick","DropdownMenuGroup","MenuPrimitive.Group","DropdownMenuLabel","MenuPrimitive.Label","DropdownMenuItem","MenuPrimitive.Item","DropdownMenuCheckboxItem","MenuPrimitive.CheckboxItem","DropdownMenuRadioGroup","radioGroupProps","MenuPrimitive.RadioGroup","DropdownMenuRadioItem","MenuPrimitive.RadioItem","INDICATOR_NAME","DropdownMenuItemIndicator","MenuPrimitive.ItemIndicator","DropdownMenuSeparator","MenuPrimitive.Separator","DropdownMenuArrow","MenuPrimitive.Arrow","DropdownMenuSub","MenuPrimitive.Sub","DropdownMenuSubTrigger","subTriggerProps","MenuPrimitive.SubTrigger","DropdownMenuSubContent","MenuPrimitive.SubContent","Root2","Trigger","Portal2","Group2","Label2","CheckboxItem2","RadioGroup2","RadioItem2","ItemIndicator2","Separator2","Sub2","SubTrigger2","SubContent2","DropdownMenuPrimitive.Root","DropdownMenuPrimitive.Trigger","DropdownMenuPrimitive.Group","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Sub","DropdownMenuPrimitiveRadioGroup","DropdownMenuPrimitive.RadioGroup","RadioGroupContext","indicatorIcon","indicatorIconClassName","indicatorIconPosition","documentMenuSubTriggerStyles","tv","menuItemStyles","className","inset","theme","useComponentVariant","styles","jsxs","DropdownMenuPrimitive.SubTrigger","ChevronRight","documentMenuSubContentStyles","portalContainer","usePortalContainer","DropdownMenuPrimitive.SubContent","dropdownMenuContentStyles","sideOffset","DropdownMenuPrimitive.Content","dropdownMenuItemStyles","DropdownMenuPrimitive.Item","dropdownMenuCheckboxItemStyles","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Minus","Check","dropdownMenuRadioItemStyles","indicatorStyles","IndicatorIcon","CheckIcon","indicator","cn","DropdownMenuPrimitive.RadioItem","dropdownMenuLabelStyles","DropdownMenuPrimitive.Label","dropdownMenuSeparatorStyles","DropdownMenuPrimitive.Separator","dropdownMenuShortcutStyles","menuItemShortcutStyles","DropdownMenuShortcut","DropdownMenuTriggerButton","TriggerButton","dropdownMenuSearchItemStyles","DropdownMenuSearchItem","Icon","Search","useHoverDropdown","options","openDelay","closeDelay","openTimeoutRef","closeTimeoutRef","clearTimeouts","handleMouseEnter","handleMouseLeave","handlePointerDown","e","handleCloseAutoFocus","newOpen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,IAAIA,KAAiB,CAAC,SAAS,GAAG,GAC9BC,KAAa,CAAC,aAAa,UAAU,MAAM,GAC3CC,KAAY,CAAC,WAAW,YAAY,KAAK,GACzCC,KAAkB,CAAC,GAAGF,IAAY,GAAGC,EAAS,GAC9CE,KAAgB;AAA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,IACA,cAAc;AAAA,MACb,cAAcF;AAAA,MACd,cAAcC;AAAA,MACd,kBAAkBG;AAAA,IAAA;AAAA,EAEpB;AACD;","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TVReturnType } from 'tailwind-variants';
|
|
3
|
+
export declare const emptyStateStyles: TVReturnType<{} | {} | {}, undefined, "flex h-full flex-col items-center justify-center overflow-hidden px-3 py-6", {} | {}, undefined, TVReturnType<unknown, undefined, "flex h-full flex-col items-center justify-center overflow-hidden px-3 py-6", unknown, unknown, undefined>>;
|
|
4
|
+
export type EmptyStateProps = React.HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState } from './EmptyState';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps } from '../button/button/Button';
|
|
3
|
+
export type RetryProps = Omit<ButtonProps, "size">;
|
|
4
|
+
/**
|
|
5
|
+
* Компонент Retry - кнопка для повторного выполнения действия
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <Retry onClick={handleRetry}>Повторить</Retry>
|
|
9
|
+
*/
|
|
10
|
+
export declare const Retry: React.ForwardRefExoticComponent<RetryProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Retry } from './Retry';
|
|
3
|
+
declare const meta: Meta<typeof Retry>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Retry>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithErrorState: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { E as d } from "../ErrorState-B26k67-z.js";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import m from "react";
|
|
4
|
+
import { T as s } from "../index-BVqs-uqP.js";
|
|
5
|
+
import { B as p } from "../Button-Dg89xRSi.js";
|
|
6
|
+
const f = s({
|
|
7
|
+
base: "h-5 px-3 py-0"
|
|
8
|
+
}), i = m.forwardRef(
|
|
9
|
+
({ className: r, children: t = "Повторить", ...o }, e) => /* @__PURE__ */ a(p, { ref: e, variant: "link", className: f({ className: r }), ...o, children: t })
|
|
10
|
+
);
|
|
11
|
+
i.displayName = "Retry";
|
|
12
|
+
export {
|
|
13
|
+
d as ErrorState,
|
|
14
|
+
i as Retry
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=error-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-state.js","sources":["../../src/components/error-state/Retry.tsx"],"sourcesContent":["import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { Button, ButtonProps } from \"../button/button/Button\";\n\nconst retryStyles = tv({\n\tbase: \"h-5 px-3 py-0\"\n});\n\nexport type RetryProps = Omit<ButtonProps, \"size\">;\n\n/**\n * Компонент Retry - кнопка для повторного выполнения действия\n *\n * @example\n * <Retry onClick={handleRetry}>Повторить</Retry>\n */\nexport const Retry = React.forwardRef<HTMLButtonElement, RetryProps>(\n\t({ className, children = \"Повторить\", ...props }, ref) => {\n\t\treturn (\n\t\t\t<Button ref={ref} variant=\"link\" className={retryStyles({ className })} {...props}>\n\t\t\t\t{children}\n\t\t\t</Button>\n\t\t);\n\t}\n);\n\nRetry.displayName = \"Retry\";\n"],"names":["retryStyles","tv","Retry","React","className","children","props","ref","jsx","Button"],"mappings":";;;;;AAIA,MAAMA,IAAcC,EAAG;AAAA,EACtB,MAAM;AACP,CAAC,GAUYC,IAAQC,EAAM;AAAA,EAC1B,CAAC,EAAE,WAAAC,GAAW,UAAAC,IAAW,aAAa,GAAGC,KAASC,MAE/C,gBAAAC,EAAAC,GAAA,EAAO,KAAAF,GAAU,SAAQ,QAAO,WAAWP,EAAY,EAAE,WAAAI,EAAW,CAAA,GAAI,GAAGE,GAC1E,UAAAD,EACF,CAAA;AAGH;AAEAH,EAAM,cAAc;"}
|
|
@@ -1,117 +1,30 @@
|
|
|
1
|
-
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
-
import { TVConfig } from 'tailwind-variants/dist/config.js';
|
|
3
1
|
import * as React from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
vertical: {
|
|
11
|
-
wrapper: string;
|
|
12
|
-
labelWrapper: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}, {
|
|
16
|
-
wrapper: string;
|
|
17
|
-
labelWrapper: string;
|
|
18
|
-
controlWrapper: string;
|
|
19
|
-
description: string;
|
|
20
|
-
error: string;
|
|
21
|
-
}, undefined, TVConfig<{
|
|
22
|
-
layout: {
|
|
23
|
-
horizontal: {
|
|
24
|
-
wrapper: string;
|
|
25
|
-
labelWrapper: string;
|
|
26
|
-
};
|
|
27
|
-
vertical: {
|
|
28
|
-
wrapper: string;
|
|
29
|
-
labelWrapper: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}, {
|
|
33
|
-
layout: {
|
|
34
|
-
horizontal: {
|
|
35
|
-
wrapper: string;
|
|
36
|
-
labelWrapper: string;
|
|
37
|
-
};
|
|
38
|
-
vertical: {
|
|
39
|
-
wrapper: string;
|
|
40
|
-
labelWrapper: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
}>, {
|
|
44
|
-
layout: {
|
|
45
|
-
horizontal: {
|
|
46
|
-
wrapper: string;
|
|
47
|
-
labelWrapper: string;
|
|
48
|
-
};
|
|
49
|
-
vertical: {
|
|
50
|
-
wrapper: string;
|
|
51
|
-
labelWrapper: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}, {
|
|
55
|
-
wrapper: string;
|
|
56
|
-
labelWrapper: string;
|
|
57
|
-
controlWrapper: string;
|
|
58
|
-
description: string;
|
|
59
|
-
error: string;
|
|
60
|
-
}, TVReturnType<{
|
|
61
|
-
layout: {
|
|
62
|
-
horizontal: {
|
|
63
|
-
wrapper: string;
|
|
64
|
-
labelWrapper: string;
|
|
65
|
-
};
|
|
66
|
-
vertical: {
|
|
67
|
-
wrapper: string;
|
|
68
|
-
labelWrapper: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}, {
|
|
72
|
-
wrapper: string;
|
|
73
|
-
labelWrapper: string;
|
|
74
|
-
controlWrapper: string;
|
|
75
|
-
description: string;
|
|
76
|
-
error: string;
|
|
77
|
-
}, undefined, TVConfig<{
|
|
78
|
-
layout: {
|
|
79
|
-
horizontal: {
|
|
80
|
-
wrapper: string;
|
|
81
|
-
labelWrapper: string;
|
|
82
|
-
};
|
|
83
|
-
vertical: {
|
|
84
|
-
wrapper: string;
|
|
85
|
-
labelWrapper: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
}, {
|
|
89
|
-
layout: {
|
|
90
|
-
horizontal: {
|
|
91
|
-
wrapper: string;
|
|
92
|
-
labelWrapper: string;
|
|
93
|
-
};
|
|
94
|
-
vertical: {
|
|
95
|
-
wrapper: string;
|
|
96
|
-
labelWrapper: string;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
}>, unknown, unknown, undefined>>;
|
|
2
|
+
export type FieldLayout = "horizontal" | "vertical" | "responsive";
|
|
3
|
+
export interface FieldVariants {
|
|
4
|
+
/** Вариант расположения элементов поля */
|
|
5
|
+
layout?: FieldLayout;
|
|
6
|
+
showGap?: boolean;
|
|
7
|
+
}
|
|
100
8
|
type DescriptionPlacement = "text" | "icon";
|
|
101
|
-
|
|
9
|
+
type ControlProps = {
|
|
10
|
+
/** Режим только для чтения */
|
|
11
|
+
readonly?: boolean;
|
|
12
|
+
/** Идентификатор элемента. Используется для связи лейбла с элементом управления */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Текст сообщения об ошибке. При наличии делает поле невалидным */
|
|
15
|
+
error?: string;
|
|
16
|
+
};
|
|
17
|
+
export type FieldProps = Omit<FieldVariants, "showGap"> & {
|
|
102
18
|
/** Заголовок поля */
|
|
103
19
|
title: string;
|
|
104
20
|
/** Описание поля */
|
|
105
|
-
description?:
|
|
21
|
+
description?: React.ReactNode;
|
|
106
22
|
/** Режим только для чтения */
|
|
107
23
|
readonly?: boolean;
|
|
108
24
|
/** Расположение описания */
|
|
109
25
|
descriptionPlacement?: DescriptionPlacement;
|
|
110
26
|
/** Функция рендеринга контрола */
|
|
111
|
-
control: (props:
|
|
112
|
-
readonly?: boolean;
|
|
113
|
-
id?: string;
|
|
114
|
-
}) => React.ReactNode;
|
|
27
|
+
control: (props: ControlProps) => React.ReactNode;
|
|
115
28
|
/** Обязательное поле */
|
|
116
29
|
required?: boolean;
|
|
117
30
|
/** Текст ошибки */
|
|
@@ -120,6 +33,25 @@ export interface FieldProps extends VariantProps<typeof fieldStyles> {
|
|
|
120
33
|
className?: string;
|
|
121
34
|
/** Дополнительные классы для лейбла */
|
|
122
35
|
labelClassName?: string;
|
|
123
|
-
}
|
|
124
|
-
export declare const Field: React.ForwardRefExoticComponent<
|
|
36
|
+
};
|
|
37
|
+
export declare const Field: React.ForwardRefExoticComponent<Omit<FieldVariants, "showGap"> & {
|
|
38
|
+
/** Заголовок поля */
|
|
39
|
+
title: string;
|
|
40
|
+
/** Описание поля */
|
|
41
|
+
description?: React.ReactNode;
|
|
42
|
+
/** Режим только для чтения */
|
|
43
|
+
readonly?: boolean;
|
|
44
|
+
/** Расположение описания */
|
|
45
|
+
descriptionPlacement?: DescriptionPlacement;
|
|
46
|
+
/** Функция рендеринга контрола */
|
|
47
|
+
control: (props: ControlProps) => React.ReactNode;
|
|
48
|
+
/** Обязательное поле */
|
|
49
|
+
required?: boolean;
|
|
50
|
+
/** Текст ошибки */
|
|
51
|
+
error?: string;
|
|
52
|
+
/** Дополнительные классы для контейнера */
|
|
53
|
+
className?: string;
|
|
54
|
+
/** Дополнительные классы для лейбла */
|
|
55
|
+
labelClassName?: string;
|
|
56
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
125
57
|
export {};
|
package/dist/components/field.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FileData, FileMetadata, FileUploadConstraints, FileValue } from '../../hooks/use-file-upload/useFileUpload';
|
|
2
|
+
import { FileUploadErrorMessages } from '../../hooks/use-file-upload';
|
|
3
|
+
export type FileUploadTexts = {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
helpText?: string;
|
|
7
|
+
removeBtnText?: string;
|
|
8
|
+
};
|
|
9
|
+
export type FileUploadBaseProps = FileUploadConstraints & FileUploadTexts;
|
|
10
|
+
export type FileUploadProps = FileUploadBaseProps & {
|
|
11
|
+
files?: FileValue[];
|
|
12
|
+
onChange?: (files: FileValue[]) => void;
|
|
13
|
+
onRemove?: (file: FileValue, index: number) => void;
|
|
14
|
+
onAdd?: (files: FileValue[]) => void;
|
|
15
|
+
onClear?: () => void;
|
|
16
|
+
onDownload?: (file: FileData) => void;
|
|
17
|
+
initialFiles?: FileMetadata[];
|
|
18
|
+
className?: string;
|
|
19
|
+
errorMessages?: Partial<FileUploadErrorMessages>;
|
|
20
|
+
};
|
|
21
|
+
export declare const FileUpload: {
|
|
22
|
+
(props: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj, StoryFn, StoryContext } from '@storybook/react';
|
|
2
|
+
import { FileUpload, FileUploadProps } from './FileUpload';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: {
|
|
5
|
+
(props: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
decorators: ((Story: StoryFn, context: StoryContext) => import("react/jsx-runtime").JSX.Element)[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof FileUpload>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const WithDefaultValues: Story;
|
|
15
|
+
export declare const WithConstraints: Story;
|
|
16
|
+
export declare const Controlled: Story;
|
|
17
|
+
export declare const WithDownload: Story;
|
|
18
|
+
export declare const WithRussianErrorMessages: Story;
|
|
19
|
+
export declare const WithCustomErrorMessages: Story;
|
package/dist/components/file-upload/components/file-upload-clear-button/FileUploadClearButton.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../button';
|
|
2
|
+
/**
|
|
3
|
+
* Кнопка для удаления всех файлов в компоненте загрузки файлов
|
|
4
|
+
*/
|
|
5
|
+
export type FileUploadClearButtonProps = ButtonProps;
|
|
6
|
+
export declare const FileUploadClearButton: {
|
|
7
|
+
({ children, ...props }: FileUploadClearButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FileUploadActions } from '../../../../hooks/use-file-upload/useFileUpload';
|
|
2
|
+
import { FileUploadTexts } from '../../FileUpload';
|
|
3
|
+
export type FileUploadCompactInputZoneProps = Omit<FileUploadTexts, "removeBtnText" | "helpText"> & Pick<FileUploadActions, "openFileDialog" | "handleDragEnter" | "handleDragLeave" | "handleDragOver" | "handleDrop" | "getInputProps"> & {
|
|
4
|
+
isDragging?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const FileUploadCompactInputZone: {
|
|
7
|
+
({ isDragging, getInputProps, openFileDialog, handleDragEnter, handleDragLeave, handleDragOver, handleDrop, ...props }: FileUploadCompactInputZoneProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|