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,484 @@
|
|
|
1
|
+
import { jsx as a, jsxs as p, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
+
import { I as C } from "../IconButton-DwkpNgn3.js";
|
|
3
|
+
import { f as T, u as S } from "../useFileUpload-iDag0iqM.js";
|
|
4
|
+
import U, { useMemo as V, useCallback as W } from "react";
|
|
5
|
+
import { T as y } from "../index-BVqs-uqP.js";
|
|
6
|
+
import { F as q } from "../FeatureIcon-BGE0Orkc.js";
|
|
7
|
+
import { c as v } from "../createLucideIcon-DwBrHnj9.js";
|
|
8
|
+
import { I as Y } from "../image-BqL5JP90.js";
|
|
9
|
+
import { T as B } from "../TextOverflowTooltip-DlUgic5y.js";
|
|
10
|
+
import { D as Z } from "../download-BHsj218e.js";
|
|
11
|
+
import { X as L } from "../x-tDTt7hTQ.js";
|
|
12
|
+
import { A as ee, b as ae, a as te } from "../AlertIcon-5B6AgZpe.js";
|
|
13
|
+
import { C as re } from "../circle-alert-CVIokIC7.js";
|
|
14
|
+
import { B as oe } from "../Button-Dg89xRSi.js";
|
|
15
|
+
import { I as se } from "../Icon-DH3ev9GK.js";
|
|
16
|
+
/**
|
|
17
|
+
* @license lucide-react v0.460.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
const ie = v("FileArchive", [
|
|
23
|
+
["path", { d: "M10 12v-1", key: "v7bkov" }],
|
|
24
|
+
["path", { d: "M10 18v-2", key: "1cjy8d" }],
|
|
25
|
+
["path", { d: "M10 7V6", key: "dljcrl" }],
|
|
26
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
27
|
+
[
|
|
28
|
+
"path",
|
|
29
|
+
{ d: "M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01", key: "gkbcor" }
|
|
30
|
+
],
|
|
31
|
+
["circle", { cx: "10", cy: "20", r: "2", key: "1xzdoj" }]
|
|
32
|
+
]);
|
|
33
|
+
/**
|
|
34
|
+
* @license lucide-react v0.460.0 - ISC
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the ISC license.
|
|
37
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/
|
|
39
|
+
const le = v("FileSpreadsheet", [
|
|
40
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
41
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
42
|
+
["path", { d: "M8 13h2", key: "yr2amv" }],
|
|
43
|
+
["path", { d: "M14 13h2", key: "un5t4a" }],
|
|
44
|
+
["path", { d: "M8 17h2", key: "2yhykz" }],
|
|
45
|
+
["path", { d: "M14 17h2", key: "10kma7" }]
|
|
46
|
+
]);
|
|
47
|
+
/**
|
|
48
|
+
* @license lucide-react v0.460.0 - ISC
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the ISC license.
|
|
51
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/
|
|
53
|
+
const ne = v("FileText", [
|
|
54
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
55
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
56
|
+
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
57
|
+
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
58
|
+
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
59
|
+
]);
|
|
60
|
+
/**
|
|
61
|
+
* @license lucide-react v0.460.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/
|
|
66
|
+
const de = v("File", [
|
|
67
|
+
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
68
|
+
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }]
|
|
69
|
+
]);
|
|
70
|
+
/**
|
|
71
|
+
* @license lucide-react v0.460.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/
|
|
76
|
+
const ce = v("Headphones", [
|
|
77
|
+
[
|
|
78
|
+
"path",
|
|
79
|
+
{
|
|
80
|
+
d: "M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",
|
|
81
|
+
key: "1xhozi"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
]);
|
|
85
|
+
/**
|
|
86
|
+
* @license lucide-react v0.460.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/
|
|
91
|
+
const E = v("Upload", [
|
|
92
|
+
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
93
|
+
["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }],
|
|
94
|
+
["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }]
|
|
95
|
+
]);
|
|
96
|
+
/**
|
|
97
|
+
* @license lucide-react v0.460.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/
|
|
102
|
+
const pe = v("Video", [
|
|
103
|
+
[
|
|
104
|
+
"path",
|
|
105
|
+
{
|
|
106
|
+
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
107
|
+
key: "ftymec"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
|
|
111
|
+
]), O = (r) => {
|
|
112
|
+
const e = r.type, t = r.name;
|
|
113
|
+
return e.includes("pdf") || t.endsWith(".pdf") || e.includes("word") || t.endsWith(".doc") || t.endsWith(".docx") ? ne : e.includes("zip") || e.includes("archive") || t.endsWith(".zip") || t.endsWith(".rar") ? ie : e.includes("excel") || t.endsWith(".xls") || t.endsWith(".xlsx") ? le : e.includes("video/") ? pe : e.includes("audio/") ? ce : e.startsWith("image/") ? Y : de;
|
|
114
|
+
}, me = y({
|
|
115
|
+
base: "rounded-md text-muted ring-0"
|
|
116
|
+
}), he = ({ file: r }) => {
|
|
117
|
+
const e = O(r);
|
|
118
|
+
return /* @__PURE__ */ a(q, { icon: e, size: "lg", className: me() });
|
|
119
|
+
}, fe = y({
|
|
120
|
+
slots: {
|
|
121
|
+
wrapper: "box-border flex h-16 justify-between gap-2 rounded-xl border border-secondary-border bg-background p-3 pe-3",
|
|
122
|
+
infoWrapper: "flex min-w-0 flex-1 items-center gap-2.5",
|
|
123
|
+
textWrapper: "flex min-w-0 flex-col gap-0.5",
|
|
124
|
+
title: "truncate text-sm font-medium",
|
|
125
|
+
description: "text-xs text-muted",
|
|
126
|
+
actionWrapper: "-me-3 -mt-3 flex h-8 items-center -space-x-1.5"
|
|
127
|
+
}
|
|
128
|
+
}), _ = U.forwardRef(
|
|
129
|
+
({ onClear: r, onDownload: e, file: t, className: i, ...l }, c) => {
|
|
130
|
+
const s = fe();
|
|
131
|
+
return /* @__PURE__ */ p("div", { className: s.wrapper({ className: i }), ref: c, ...l, children: [
|
|
132
|
+
/* @__PURE__ */ p("div", { className: s.infoWrapper(), children: [
|
|
133
|
+
/* @__PURE__ */ a(he, { file: t }),
|
|
134
|
+
/* @__PURE__ */ p("div", { className: s.textWrapper(), children: [
|
|
135
|
+
/* @__PURE__ */ a(B, { className: s.title(), children: t.name }),
|
|
136
|
+
/* @__PURE__ */ a("p", { className: s.description(), children: T(t.size) })
|
|
137
|
+
] })
|
|
138
|
+
] }),
|
|
139
|
+
/* @__PURE__ */ p("div", { className: s.actionWrapper(), children: [
|
|
140
|
+
e && /* @__PURE__ */ a(
|
|
141
|
+
C,
|
|
142
|
+
{
|
|
143
|
+
variant: "text",
|
|
144
|
+
type: "button",
|
|
145
|
+
size: "sm",
|
|
146
|
+
icon: Z,
|
|
147
|
+
onClick: () => e(t),
|
|
148
|
+
"aria-label": "Download file",
|
|
149
|
+
iconClassName: "size-4"
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ a(
|
|
153
|
+
C,
|
|
154
|
+
{
|
|
155
|
+
variant: "text",
|
|
156
|
+
type: "button",
|
|
157
|
+
size: "sm",
|
|
158
|
+
icon: L,
|
|
159
|
+
onClick: r,
|
|
160
|
+
"aria-label": "Remove file",
|
|
161
|
+
iconClassName: "size-4"
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
] })
|
|
165
|
+
] });
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
_.displayName = "FileUploadItem";
|
|
169
|
+
const R = U.forwardRef(({ error: r, ...e }, t) => {
|
|
170
|
+
const i = Array.isArray(r) ? r.join(`
|
|
171
|
+
`) : r;
|
|
172
|
+
return /* @__PURE__ */ p(ee, { status: "error", focus: "medium", ...e, ref: t, children: [
|
|
173
|
+
/* @__PURE__ */ a(ae, { icon: re }),
|
|
174
|
+
/* @__PURE__ */ a(te, { className: "whitespace-pre-line", children: i })
|
|
175
|
+
] });
|
|
176
|
+
});
|
|
177
|
+
R.displayName = "FileUploadError";
|
|
178
|
+
const ue = y({
|
|
179
|
+
base: "shrink-0 bg-status-neutral-fg"
|
|
180
|
+
}), H = ({ icon: r, className: e, ...t }) => /* @__PURE__ */ a(q, { size: "xl", icon: r, className: ue({ className: e }), ...t });
|
|
181
|
+
H.displayName = "FileUploadDropAreaIcon";
|
|
182
|
+
const ye = y({
|
|
183
|
+
slots: {
|
|
184
|
+
wrapper: [
|
|
185
|
+
"has-[:disabled]:pointer-events-none has-[:disabled]:opacity-50",
|
|
186
|
+
"relative flex min-h-[9.125rem] flex-col items-center justify-center rounded-xl border border-dashed border-primary-border bg-secondary-bg p-6 transition-colors",
|
|
187
|
+
"hover:bg-secondary-bg-hover",
|
|
188
|
+
"has-[input:focus]:shadow-focus",
|
|
189
|
+
"data-[dragging=true]:bg-secondary-bg-hover"
|
|
190
|
+
],
|
|
191
|
+
title: "mb-1.5 text-sm font-medium text-primary-accent",
|
|
192
|
+
icon: "mb-3 size-11",
|
|
193
|
+
description: "flex flex-wrap justify-center gap-1 text-xs text-muted"
|
|
194
|
+
}
|
|
195
|
+
}), X = U.forwardRef(
|
|
196
|
+
({
|
|
197
|
+
className: r,
|
|
198
|
+
title: e = "Click to upload or drop your files here ",
|
|
199
|
+
description: t = `All files
|
|
200
|
+
∙
|
|
201
|
+
Infinity files
|
|
202
|
+
∙
|
|
203
|
+
Infinity size`,
|
|
204
|
+
icon: i,
|
|
205
|
+
children: l,
|
|
206
|
+
...c
|
|
207
|
+
}, s) => {
|
|
208
|
+
const o = ye();
|
|
209
|
+
return /* @__PURE__ */ p("div", { role: "button", className: o.wrapper({ className: r }), ref: s, ...c, children: [
|
|
210
|
+
/* @__PURE__ */ a(H, { icon: i || E, className: o.icon() }),
|
|
211
|
+
/* @__PURE__ */ a("p", { className: o.title(), children: e }),
|
|
212
|
+
t && /* @__PURE__ */ a("p", { className: o.description(), children: t }),
|
|
213
|
+
l
|
|
214
|
+
] });
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
X.displayName = "FileUploadDropArea";
|
|
218
|
+
const be = y({
|
|
219
|
+
slots: {
|
|
220
|
+
wrapper: [
|
|
221
|
+
"has-[:disabled]:pointer-events-none has-[:disabled]:opacity-50",
|
|
222
|
+
"relative flex h-11 items-center rounded-lg border border-dashed border-primary-border bg-secondary-bg p-1.5 transition-colors",
|
|
223
|
+
"hover:bg-secondary-bg-hover",
|
|
224
|
+
"has-[input:focus]:shadow-focus",
|
|
225
|
+
"data-[dragging=true]:bg-secondary-bg-hover"
|
|
226
|
+
],
|
|
227
|
+
icon: "mr-3",
|
|
228
|
+
title: "text-sm font-medium text-primary-accent",
|
|
229
|
+
description: "ml-1.5 flex flex-wrap justify-center gap-1.5 text-xs text-muted"
|
|
230
|
+
}
|
|
231
|
+
}), $ = U.forwardRef(
|
|
232
|
+
({ className: r, title: e = "Upload files", description: t = "Drag & drop or click to browse", icon: i, children: l, ...c }, s) => {
|
|
233
|
+
const o = be();
|
|
234
|
+
return /* @__PURE__ */ p("div", { role: "button", className: o.wrapper({ className: r }), ref: s, ...c, children: [
|
|
235
|
+
/* @__PURE__ */ a(H, { icon: i || E, className: o.icon(), size: "sm" }),
|
|
236
|
+
/* @__PURE__ */ p("div", { className: "flex items-baseline", children: [
|
|
237
|
+
/* @__PURE__ */ a("p", { className: o.title(), children: e }),
|
|
238
|
+
t && /* @__PURE__ */ p(Q, { children: [
|
|
239
|
+
/* @__PURE__ */ a("span", { className: "ml-1.5 text-muted", children: "∙" }),
|
|
240
|
+
/* @__PURE__ */ a("p", { className: o.description(), children: t })
|
|
241
|
+
] }),
|
|
242
|
+
l
|
|
243
|
+
] })
|
|
244
|
+
] });
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
$.displayName = "FileUploadInlineDropArea";
|
|
248
|
+
const G = ({ children: r = "Remove all files", ...e }) => /* @__PURE__ */ a(oe, { size: "sm", variant: "outline", type: "button", ...e, children: r });
|
|
249
|
+
G.displayName = "FileUploadClearButton";
|
|
250
|
+
const J = ({
|
|
251
|
+
isDragging: r,
|
|
252
|
+
getInputProps: e,
|
|
253
|
+
openFileDialog: t,
|
|
254
|
+
handleDragEnter: i,
|
|
255
|
+
handleDragLeave: l,
|
|
256
|
+
handleDragOver: c,
|
|
257
|
+
handleDrop: s,
|
|
258
|
+
...o
|
|
259
|
+
}) => /* @__PURE__ */ a(
|
|
260
|
+
X,
|
|
261
|
+
{
|
|
262
|
+
onClick: t,
|
|
263
|
+
onDragEnter: i,
|
|
264
|
+
onDragLeave: l,
|
|
265
|
+
onDragOver: c,
|
|
266
|
+
onDrop: s,
|
|
267
|
+
"data-dragging": r || void 0,
|
|
268
|
+
...o,
|
|
269
|
+
children: /* @__PURE__ */ a("input", { className: "sr-only", "aria-label": "Upload files", ...e() })
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
J.displayName = "FileUploadInputZone";
|
|
273
|
+
const K = ({
|
|
274
|
+
isDragging: r,
|
|
275
|
+
getInputProps: e,
|
|
276
|
+
openFileDialog: t,
|
|
277
|
+
handleDragEnter: i,
|
|
278
|
+
handleDragLeave: l,
|
|
279
|
+
handleDragOver: c,
|
|
280
|
+
handleDrop: s,
|
|
281
|
+
...o
|
|
282
|
+
}) => /* @__PURE__ */ a(
|
|
283
|
+
$,
|
|
284
|
+
{
|
|
285
|
+
onClick: t,
|
|
286
|
+
onDragEnter: i,
|
|
287
|
+
onDragLeave: l,
|
|
288
|
+
onDragOver: c,
|
|
289
|
+
onDrop: s,
|
|
290
|
+
"data-dragging": r || void 0,
|
|
291
|
+
...o,
|
|
292
|
+
children: /* @__PURE__ */ a("input", { className: "sr-only", "aria-label": "Upload files", ...e() })
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
K.displayName = "FileUploadCompactInputZone";
|
|
296
|
+
const xe = y({
|
|
297
|
+
slots: {
|
|
298
|
+
wrapper: "box-border flex h-10 items-center gap-2 rounded-lg border border-secondary-border bg-background p-2.5 pr-1",
|
|
299
|
+
icon: "text-muted",
|
|
300
|
+
infoWrapper: "flex w-full items-center overflow-hidden",
|
|
301
|
+
textWrapper: "flex w-full items-center justify-between",
|
|
302
|
+
title: "truncate text-sm font-medium",
|
|
303
|
+
description: "text-sm text-muted",
|
|
304
|
+
actionWrapper: "ml-auto flex items-center -space-x-1.5"
|
|
305
|
+
}
|
|
306
|
+
}), P = U.forwardRef(
|
|
307
|
+
({ onClear: r, file: e, className: t, renderIcon: i, onDownload: l, ...c }, s) => {
|
|
308
|
+
const o = xe(), N = O(e);
|
|
309
|
+
return /* @__PURE__ */ a("div", { className: "relative", children: /* @__PURE__ */ p("div", { className: o.wrapper({ className: t }), ref: s, ...c, children: [
|
|
310
|
+
i ?? /* @__PURE__ */ a("div", { className: "size-5", children: /* @__PURE__ */ a(se, { icon: N, size: "lg", className: o.icon() }) }),
|
|
311
|
+
/* @__PURE__ */ a("div", { className: o.infoWrapper(), children: /* @__PURE__ */ p("div", { className: o.textWrapper(), children: [
|
|
312
|
+
/* @__PURE__ */ a(B, { className: o.title(), children: e.name }),
|
|
313
|
+
/* @__PURE__ */ a("p", { className: o.description(), children: T(e.size) })
|
|
314
|
+
] }) }),
|
|
315
|
+
/* @__PURE__ */ p("div", { className: o.actionWrapper(), children: [
|
|
316
|
+
l && /* @__PURE__ */ a(
|
|
317
|
+
C,
|
|
318
|
+
{
|
|
319
|
+
variant: "text",
|
|
320
|
+
size: "sm",
|
|
321
|
+
type: "button",
|
|
322
|
+
icon: Z,
|
|
323
|
+
onClick: () => l(e),
|
|
324
|
+
"aria-label": "Download file",
|
|
325
|
+
iconClassName: "size-4"
|
|
326
|
+
}
|
|
327
|
+
),
|
|
328
|
+
/* @__PURE__ */ a(
|
|
329
|
+
C,
|
|
330
|
+
{
|
|
331
|
+
variant: "text",
|
|
332
|
+
size: "sm",
|
|
333
|
+
type: "button",
|
|
334
|
+
icon: L,
|
|
335
|
+
onClick: r,
|
|
336
|
+
"aria-label": "Remove file",
|
|
337
|
+
iconClassName: "size-4"
|
|
338
|
+
}
|
|
339
|
+
)
|
|
340
|
+
] })
|
|
341
|
+
] }) });
|
|
342
|
+
}
|
|
343
|
+
);
|
|
344
|
+
P.displayName = "FileUploadItemCompact";
|
|
345
|
+
const ge = y({
|
|
346
|
+
base: "flex flex-col gap-3"
|
|
347
|
+
}), ve = (r) => {
|
|
348
|
+
const {
|
|
349
|
+
files: e,
|
|
350
|
+
onRemove: t,
|
|
351
|
+
onAdd: i,
|
|
352
|
+
onClear: l,
|
|
353
|
+
onDownload: c,
|
|
354
|
+
initialFiles: s,
|
|
355
|
+
onChange: o,
|
|
356
|
+
className: N,
|
|
357
|
+
title: I,
|
|
358
|
+
description: w,
|
|
359
|
+
helpText: z,
|
|
360
|
+
removeBtnText: D,
|
|
361
|
+
errorMessages: A,
|
|
362
|
+
multiple: F = !0,
|
|
363
|
+
...M
|
|
364
|
+
} = r, [{ files: b, isDragging: k, errors: x }, g] = S({
|
|
365
|
+
...M,
|
|
366
|
+
initialFiles: s,
|
|
367
|
+
multiple: F,
|
|
368
|
+
errorMessages: A,
|
|
369
|
+
onFilesChange: (d) => {
|
|
370
|
+
const u = d.map((h) => h.file);
|
|
371
|
+
o?.(u);
|
|
372
|
+
},
|
|
373
|
+
onFilesAdded: (d) => {
|
|
374
|
+
const u = d.map((h) => h.file);
|
|
375
|
+
i?.(u);
|
|
376
|
+
}
|
|
377
|
+
}), n = V(() => e || b.map((d) => d.file), [e, b]), m = W(() => {
|
|
378
|
+
g.clearFiles(), l?.();
|
|
379
|
+
}, [g, l]), f = W(
|
|
380
|
+
(d, u) => {
|
|
381
|
+
const h = b.find((j) => j.file.name === d.name && j.file.size === d.size)?.id;
|
|
382
|
+
h && g.removeFile(h), t?.(d, u);
|
|
383
|
+
},
|
|
384
|
+
[b, g, t]
|
|
385
|
+
);
|
|
386
|
+
return /* @__PURE__ */ p("div", { className: ge({ className: N }), children: [
|
|
387
|
+
/* @__PURE__ */ a(
|
|
388
|
+
J,
|
|
389
|
+
{
|
|
390
|
+
...g,
|
|
391
|
+
isDragging: k,
|
|
392
|
+
title: I,
|
|
393
|
+
description: w,
|
|
394
|
+
helpText: z
|
|
395
|
+
}
|
|
396
|
+
),
|
|
397
|
+
x.length > 0 && /* @__PURE__ */ a(R, { error: x }),
|
|
398
|
+
n.length > 0 && /* @__PURE__ */ p("div", { className: "space-y-2", children: [
|
|
399
|
+
n.map((d, u) => /* @__PURE__ */ a(
|
|
400
|
+
_,
|
|
401
|
+
{
|
|
402
|
+
file: d,
|
|
403
|
+
onClear: () => f(d, u),
|
|
404
|
+
onDownload: c
|
|
405
|
+
},
|
|
406
|
+
u
|
|
407
|
+
)),
|
|
408
|
+
n.length > 1 && /* @__PURE__ */ a(G, { onClick: m, children: D })
|
|
409
|
+
] })
|
|
410
|
+
] });
|
|
411
|
+
};
|
|
412
|
+
ve.displayName = "FileUpload";
|
|
413
|
+
const Fe = y({
|
|
414
|
+
base: "box-border flex flex-col gap-2"
|
|
415
|
+
}), Ne = (r) => {
|
|
416
|
+
const {
|
|
417
|
+
files: e,
|
|
418
|
+
onRemove: t,
|
|
419
|
+
onDownload: i,
|
|
420
|
+
onAdd: l,
|
|
421
|
+
initialFiles: c,
|
|
422
|
+
onChange: s,
|
|
423
|
+
className: o,
|
|
424
|
+
title: N,
|
|
425
|
+
description: I,
|
|
426
|
+
multiple: w = !0,
|
|
427
|
+
errorMessages: z,
|
|
428
|
+
renderFileIcon: D,
|
|
429
|
+
...A
|
|
430
|
+
} = r, [{ files: F, isDragging: M, errors: b }, k] = S({
|
|
431
|
+
...A,
|
|
432
|
+
initialFiles: c,
|
|
433
|
+
multiple: w,
|
|
434
|
+
errorMessages: z,
|
|
435
|
+
onFilesChange: (n) => {
|
|
436
|
+
const m = n.map((f) => f.file);
|
|
437
|
+
s?.(m);
|
|
438
|
+
},
|
|
439
|
+
onFilesAdded: (n) => {
|
|
440
|
+
const m = n.map((f) => f.file);
|
|
441
|
+
l?.(m);
|
|
442
|
+
}
|
|
443
|
+
}), x = V(() => e || F.map((n) => n.file), [e, F]), g = W(
|
|
444
|
+
(n, m) => {
|
|
445
|
+
const f = F.find((d) => d.file.name === n.name && d.file.size === n.size)?.id;
|
|
446
|
+
f && k.removeFile(f), t?.(n, m);
|
|
447
|
+
},
|
|
448
|
+
[F, k, t]
|
|
449
|
+
);
|
|
450
|
+
return /* @__PURE__ */ p("div", { className: Fe({ className: o }), children: [
|
|
451
|
+
/* @__PURE__ */ a(K, { ...k, isDragging: M, title: N, description: I }),
|
|
452
|
+
b.length > 0 && /* @__PURE__ */ a(R, { error: b }),
|
|
453
|
+
x.length > 0 && /* @__PURE__ */ a("div", { children: x.map((n, m) => {
|
|
454
|
+
const f = m === 0, d = x.length === 1, u = m === x.length - 1;
|
|
455
|
+
let h = "";
|
|
456
|
+
return d ? h = "" : f ? h = "border-b-0 rounded-b-none" : u ? h = "rounded-t-none" : h = "border-b-0 rounded-none", /* @__PURE__ */ a(
|
|
457
|
+
P,
|
|
458
|
+
{
|
|
459
|
+
file: n,
|
|
460
|
+
onClear: () => g(n, m),
|
|
461
|
+
className: h,
|
|
462
|
+
renderIcon: D?.(n),
|
|
463
|
+
onDownload: i
|
|
464
|
+
},
|
|
465
|
+
m
|
|
466
|
+
);
|
|
467
|
+
}) })
|
|
468
|
+
] });
|
|
469
|
+
};
|
|
470
|
+
Ne.displayName = "FileUploadCompact";
|
|
471
|
+
export {
|
|
472
|
+
ve as FileUpload,
|
|
473
|
+
G as FileUploadClearButton,
|
|
474
|
+
Ne as FileUploadCompact,
|
|
475
|
+
K as FileUploadCompactInputZone,
|
|
476
|
+
X as FileUploadDropArea,
|
|
477
|
+
R as FileUploadError,
|
|
478
|
+
he as FileUploadIcon,
|
|
479
|
+
$ as FileUploadInlineDropArea,
|
|
480
|
+
J as FileUploadInputZone,
|
|
481
|
+
_ as FileUploadItem,
|
|
482
|
+
P as FileUploadItemCompact
|
|
483
|
+
};
|
|
484
|
+
//# sourceMappingURL=file-upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-upload.js","sources":["../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-archive.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-text.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/headphones.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/upload.js","../../node_modules/.pnpm/lucide-react@0.460.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/video.js","../../src/hooks/useFileType.ts","../../src/components/file-upload/components/file-upload-icon/FileUploadIcon.tsx","../../src/components/file-upload/components/file-upload-item/FileUploadItem.tsx","../../src/components/file-upload/components/file-upload-error/FileUploadError.tsx","../../src/components/file-upload/components/file-upload-drop-area-icon/FileUploadDropAreaIcon.tsx","../../src/components/file-upload/components/file-upload-drop-area/FileUploadDropArea.tsx","../../src/components/file-upload/components/file-upload-inline-drop-area/FileUploadInlineDropArea.tsx","../../src/components/file-upload/components/file-upload-clear-button/FileUploadClearButton.tsx","../../src/components/file-upload/components/file-upload-input-zone/FileUploadInputZone.tsx","../../src/components/file-upload/components/file-upload-compact-input-zone/FileUploadCompactInputZone.tsx","../../src/components/file-upload/components/file-upload-item-compact/FileUploadItemCompact.tsx","../../src/components/file-upload/FileUpload.tsx","../../src/components/file-upload/file-upload-compact/FileUploadCompact.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst FileArchive = createLucideIcon(\"FileArchive\", [\n [\"path\", { d: \"M10 12v-1\", key: \"v7bkov\" }],\n [\"path\", { d: \"M10 18v-2\", key: \"1cjy8d\" }],\n [\"path\", { d: \"M10 7V6\", key: \"dljcrl\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\n \"path\",\n { d: \"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01\", key: \"gkbcor\" }\n ],\n [\"circle\", { cx: \"10\", cy: \"20\", r: \"2\", key: \"1xzdoj\" }]\n]);\n\nexport { FileArchive as default };\n//# sourceMappingURL=file-archive.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst FileSpreadsheet = createLucideIcon(\"FileSpreadsheet\", [\n [\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\", key: \"1rqfz7\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\"path\", { d: \"M8 13h2\", key: \"yr2amv\" }],\n [\"path\", { d: \"M14 13h2\", key: \"un5t4a\" }],\n [\"path\", { d: \"M8 17h2\", key: \"2yhykz\" }],\n [\"path\", { d: \"M14 17h2\", key: \"10kma7\" }]\n]);\n\nexport { FileSpreadsheet as default };\n//# sourceMappingURL=file-spreadsheet.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst FileText = createLucideIcon(\"FileText\", [\n [\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\", key: \"1rqfz7\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }],\n [\"path\", { d: \"M10 9H8\", key: \"b1mrlr\" }],\n [\"path\", { d: \"M16 13H8\", key: \"t4e002\" }],\n [\"path\", { d: \"M16 17H8\", key: \"z1uh3a\" }]\n]);\n\nexport { FileText as default };\n//# sourceMappingURL=file-text.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst File = createLucideIcon(\"File\", [\n [\"path\", { d: \"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z\", key: \"1rqfz7\" }],\n [\"path\", { d: \"M14 2v4a2 2 0 0 0 2 2h4\", key: \"tnqrlb\" }]\n]);\n\nexport { File as default };\n//# sourceMappingURL=file.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Headphones = createLucideIcon(\"Headphones\", [\n [\n \"path\",\n {\n d: \"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3\",\n key: \"1xhozi\"\n }\n ]\n]);\n\nexport { Headphones as default };\n//# sourceMappingURL=headphones.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Upload = createLucideIcon(\"Upload\", [\n [\"path\", { d: \"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\", key: \"ih7n3h\" }],\n [\"polyline\", { points: \"17 8 12 3 7 8\", key: \"t8dd8p\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"3\", y2: \"15\", key: \"widbto\" }]\n]);\n\nexport { Upload as default };\n//# sourceMappingURL=upload.js.map\n","/**\n * @license lucide-react v0.460.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Video = createLucideIcon(\"Video\", [\n [\n \"path\",\n {\n d: \"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5\",\n key: \"ftymec\"\n }\n ],\n [\"rect\", { x: \"2\", y: \"6\", width: \"14\", height: \"12\", rx: \"2\", key: \"158x01\" }]\n]);\n\nexport { Video as default };\n//# sourceMappingURL=video.js.map\n","import {\n\tFileArchiveIcon,\n\tFileIcon,\n\tFileSpreadsheetIcon,\n\tFileTextIcon,\n\tHeadphonesIcon,\n\tImageIcon,\n\tVideoIcon\n} from \"lucide-react\";\nimport { FileData } from \"./use-file-upload/useFileUpload\";\n\nexport const useFileType = (file: FileData) => {\n\tconst fileType = file.type;\n\tconst fileName = file.name;\n\n\t// Определяем тип файла и возвращаем соответствующую иконку\n\tif (\n\t\tfileType.includes(\"pdf\") ||\n\t\tfileName.endsWith(\".pdf\") ||\n\t\tfileType.includes(\"word\") ||\n\t\tfileName.endsWith(\".doc\") ||\n\t\tfileName.endsWith(\".docx\")\n\t) {\n\t\treturn FileTextIcon;\n\t} else if (\n\t\tfileType.includes(\"zip\") ||\n\t\tfileType.includes(\"archive\") ||\n\t\tfileName.endsWith(\".zip\") ||\n\t\tfileName.endsWith(\".rar\")\n\t) {\n\t\treturn FileArchiveIcon;\n\t} else if (fileType.includes(\"excel\") || fileName.endsWith(\".xls\") || fileName.endsWith(\".xlsx\")) {\n\t\treturn FileSpreadsheetIcon;\n\t} else if (fileType.includes(\"video/\")) {\n\t\treturn VideoIcon;\n\t} else if (fileType.includes(\"audio/\")) {\n\t\treturn HeadphonesIcon;\n\t} else if (fileType.startsWith(\"image/\")) {\n\t\treturn ImageIcon;\n\t}\n\n\treturn FileIcon;\n};\n","import { FeatureIcon } from \"@/components/icon\";\nimport { tv } from \"tailwind-variants\";\nimport { FileData } from \"@/hooks/use-file-upload/useFileUpload\";\nimport { useFileType } from \"@/hooks/useFileType\";\n\nconst fileIconStyles = tv({\n\tbase: \"rounded-md text-muted ring-0\"\n});\n\nexport interface FileUploadIconProps {\n\tfile: FileData;\n}\n\nexport const FileUploadIcon = ({ file }: FileUploadIconProps) => {\n\tconst IconComponent = useFileType(file);\n\n\treturn <FeatureIcon icon={IconComponent} size=\"lg\" className={fileIconStyles()} />;\n};\n","import { IconButton } from \"@/components/button\";\nimport { FileData } from \"@/hooks/use-file-upload/useFileUpload\";\nimport { formatBytes } from \"@/lib/utils/file/formatBytes\";\nimport { Download, XIcon } from \"lucide-react\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { FileUploadIcon } from \"../file-upload-icon/FileUploadIcon\";\nimport { TextOverflowTooltip } from \"@/components/overflow-tooltip\";\n\nconst fileUploadItemStyles = tv({\n\tslots: {\n\t\twrapper:\n\t\t\t\"box-border flex h-16 justify-between gap-2 rounded-xl border border-secondary-border bg-background p-3 pe-3\",\n\t\tinfoWrapper: \"flex min-w-0 flex-1 items-center gap-2.5\",\n\t\ttextWrapper: \"flex min-w-0 flex-col gap-0.5\",\n\t\ttitle: \"truncate text-sm font-medium\",\n\t\tdescription: \"text-xs text-muted\",\n\t\tactionWrapper: \"-me-3 -mt-3 flex h-8 items-center -space-x-1.5\"\n\t}\n});\n\nexport type FileUploadItemProps = React.HTMLAttributes<HTMLDivElement> & {\n\tonClear: () => void;\n\tonDownload?: (file: FileData) => void;\n\tfile: FileData;\n};\n\nexport const FileUploadItem = React.forwardRef<HTMLDivElement, FileUploadItemProps>(\n\t({ onClear, onDownload, file, className, ...props }, ref) => {\n\t\tconst styles = fileUploadItemStyles();\n\n\t\treturn (\n\t\t\t<div className={styles.wrapper({ className })} ref={ref} {...props}>\n\t\t\t\t<div className={styles.infoWrapper()}>\n\t\t\t\t\t<FileUploadIcon file={file} />\n\n\t\t\t\t\t<div className={styles.textWrapper()}>\n\t\t\t\t\t\t<TextOverflowTooltip className={styles.title()}>{file.name}</TextOverflowTooltip>\n\t\t\t\t\t\t<p className={styles.description()}>{formatBytes(file.size)}</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div className={styles.actionWrapper()}>\n\t\t\t\t\t{onDownload && (\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\ticon={Download}\n\t\t\t\t\t\t\tonClick={() => onDownload(file)}\n\t\t\t\t\t\t\taria-label=\"Download file\"\n\t\t\t\t\t\t\ticonClassName=\"size-4\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<IconButton\n\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\ticon={XIcon}\n\t\t\t\t\t\tonClick={onClear}\n\t\t\t\t\t\taria-label=\"Remove file\"\n\t\t\t\t\t\ticonClassName=\"size-4\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nFileUploadItem.displayName = \"FileUploadItem\";\n","import { Alert, AlertDescription, AlertIcon } from \"@/components/alert\";\nimport { AlertCircleIcon } from \"lucide-react\";\nimport React from \"react\";\n\nexport type FileUploadErrorProps = React.HTMLAttributes<HTMLDivElement> & {\n\terror: string | string[];\n};\n\nexport const FileUploadError = React.forwardRef<HTMLDivElement, FileUploadErrorProps>(({ error, ...props }, ref) => {\n\tconst errorText = Array.isArray(error) ? error.join(\"\\n\") : error;\n\treturn (\n\t\t<Alert status=\"error\" focus=\"medium\" {...props} ref={ref}>\n\t\t\t<AlertIcon icon={AlertCircleIcon} />\n\t\t\t<AlertDescription className=\"whitespace-pre-line\">{errorText}</AlertDescription>\n\t\t</Alert>\n\t);\n});\n\nFileUploadError.displayName = \"FileUploadError\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { FeatureIcon } from \"@/components/icon\";\nimport { FeatureIconProps } from \"@/components/icon/feature-icon/FeatureIcon\";\n\nconst fileUploadDropAreaIconStyles = tv({\n\tbase: \"shrink-0 bg-status-neutral-fg\"\n});\n\nexport const FileUploadDropAreaIcon: React.FC<FeatureIconProps> = ({ icon, className, ...props }) => {\n\treturn <FeatureIcon size=\"xl\" icon={icon} className={fileUploadDropAreaIconStyles({ className })} {...props} />;\n};\n\nFileUploadDropAreaIcon.displayName = \"FileUploadDropAreaIcon\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { FileUploadDropAreaIcon } from \"../file-upload-drop-area-icon/FileUploadDropAreaIcon\";\nimport { LucideIcon, Upload } from \"lucide-react\";\n\nconst fileUploadDropAreaStyles = tv({\n\tslots: {\n\t\twrapper: [\n\t\t\t\"has-[:disabled]:pointer-events-none has-[:disabled]:opacity-50\",\n\t\t\t\"relative flex min-h-[9.125rem] flex-col items-center justify-center rounded-xl border border-dashed border-primary-border bg-secondary-bg p-6 transition-colors\",\n\t\t\t\"hover:bg-secondary-bg-hover\",\n\t\t\t\"has-[input:focus]:shadow-focus\",\n\t\t\t\"data-[dragging=true]:bg-secondary-bg-hover\"\n\t\t],\n\t\ttitle: \"mb-1.5 text-sm font-medium text-primary-accent\",\n\t\ticon: \"mb-3 size-11\",\n\t\tdescription: \"flex flex-wrap justify-center gap-1 text-xs text-muted\"\n\t}\n});\n\nexport type FileUploadDropAreaProps = React.HTMLAttributes<HTMLDivElement> & {\n\ttitle?: React.ReactNode;\n\tdescription?: React.ReactNode;\n\ticon?: LucideIcon;\n};\n\nexport const FileUploadDropArea = React.forwardRef<HTMLDivElement, FileUploadDropAreaProps>(\n\t(\n\t\t{\n\t\t\tclassName,\n\t\t\ttitle = \"Click to upload or drop your files here \",\n\t\t\tdescription = \"All files\\n∙\\nInfinity files\\n∙\\nInfinity size\",\n\t\t\ticon,\n\t\t\tchildren,\n\t\t\t...props\n\t\t},\n\t\tref\n\t) => {\n\t\tconst styles = fileUploadDropAreaStyles();\n\n\t\treturn (\n\t\t\t<div role=\"button\" className={styles.wrapper({ className })} ref={ref} {...props}>\n\t\t\t\t<FileUploadDropAreaIcon icon={icon || Upload} className={styles.icon()} />\n\t\t\t\t<p className={styles.title()}>{title}</p>\n\t\t\t\t{description && <p className={styles.description()}>{description}</p>}\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nFileUploadDropArea.displayName = \"FileUploadDropArea\";\n","import React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { FileUploadDropAreaIcon } from \"../file-upload-drop-area-icon/FileUploadDropAreaIcon\";\nimport { LucideIcon, Upload } from \"lucide-react\";\n\nconst fileUploadInlineDropAreaStyles = tv({\n\tslots: {\n\t\twrapper: [\n\t\t\t\"has-[:disabled]:pointer-events-none has-[:disabled]:opacity-50\",\n\t\t\t\"relative flex h-11 items-center rounded-lg border border-dashed border-primary-border bg-secondary-bg p-1.5 transition-colors\",\n\t\t\t\"hover:bg-secondary-bg-hover\",\n\t\t\t\"has-[input:focus]:shadow-focus\",\n\t\t\t\"data-[dragging=true]:bg-secondary-bg-hover\"\n\t\t],\n\t\ticon: \"mr-3\",\n\t\ttitle: \"text-sm font-medium text-primary-accent\",\n\t\tdescription: \"ml-1.5 flex flex-wrap justify-center gap-1.5 text-xs text-muted\"\n\t}\n});\n\nexport type FileUploadInlineDropAreaProps = React.HTMLAttributes<HTMLDivElement> & {\n\ttitle?: React.ReactNode;\n\tdescription?: React.ReactNode;\n\ticon?: LucideIcon;\n};\n\nexport const FileUploadInlineDropArea = React.forwardRef<HTMLDivElement, FileUploadInlineDropAreaProps>(\n\t(\n\t\t{ className, title = \"Upload files\", description = \"Drag & drop or click to browse\", icon, children, ...props },\n\t\tref\n\t) => {\n\t\tconst styles = fileUploadInlineDropAreaStyles();\n\n\t\treturn (\n\t\t\t<div role=\"button\" className={styles.wrapper({ className })} ref={ref} {...props}>\n\t\t\t\t<FileUploadDropAreaIcon icon={icon || Upload} className={styles.icon()} size=\"sm\" />\n\t\t\t\t<div className=\"flex items-baseline\">\n\t\t\t\t\t<p className={styles.title()}>{title}</p>\n\t\t\t\t\t{description && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t<span className=\"ml-1.5 text-muted\">∙</span>\n\t\t\t\t\t\t\t<p className={styles.description()}>{description}</p>\n\t\t\t\t\t\t</>\n\t\t\t\t\t)}\n\t\t\t\t\t{children}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nFileUploadInlineDropArea.displayName = \"FileUploadInlineDropArea\";\n","import { Button, ButtonProps } from \"../../../button\";\n\n/**\n * Кнопка для удаления всех файлов в компоненте загрузки файлов\n */\nexport type FileUploadClearButtonProps = ButtonProps;\n\nexport const FileUploadClearButton = ({ children = \"Remove all files\", ...props }: FileUploadClearButtonProps) => {\n\treturn (\n\t\t<Button size=\"sm\" variant=\"outline\" type=\"button\" {...props}>\n\t\t\t{children}\n\t\t</Button>\n\t);\n};\n\nFileUploadClearButton.displayName = \"FileUploadClearButton\";\n","import { FileUploadActions } from \"@/hooks/use-file-upload/useFileUpload\";\nimport { FileUploadTexts } from \"../../FileUpload\";\nimport { FileUploadDropArea } from \"../file-upload-drop-area/FileUploadDropArea\";\n\nexport type FileUploadInputZoneProps = Omit<FileUploadTexts, \"removeBtnText\"> &\n\tPick<\n\t\tFileUploadActions,\n\t\t\"openFileDialog\" | \"handleDragEnter\" | \"handleDragLeave\" | \"handleDragOver\" | \"handleDrop\" | \"getInputProps\"\n\t> & {\n\t\tisDragging?: boolean;\n\t};\n\nexport const FileUploadInputZone = ({\n\tisDragging,\n\tgetInputProps,\n\topenFileDialog,\n\thandleDragEnter,\n\thandleDragLeave,\n\thandleDragOver,\n\thandleDrop,\n\t...props\n}: FileUploadInputZoneProps) => {\n\treturn (\n\t\t<FileUploadDropArea\n\t\t\tonClick={openFileDialog}\n\t\t\tonDragEnter={handleDragEnter}\n\t\t\tonDragLeave={handleDragLeave}\n\t\t\tonDragOver={handleDragOver}\n\t\t\tonDrop={handleDrop}\n\t\t\tdata-dragging={isDragging || undefined}\n\t\t\t{...props}\n\t\t>\n\t\t\t<input className=\"sr-only\" aria-label=\"Upload files\" {...getInputProps()} />\n\t\t</FileUploadDropArea>\n\t);\n};\n\nFileUploadInputZone.displayName = \"FileUploadInputZone\";\n","import { FileUploadActions } from \"@/hooks/use-file-upload/useFileUpload\";\nimport { FileUploadTexts } from \"../../FileUpload\";\nimport { FileUploadInlineDropArea } from \"../file-upload-inline-drop-area/FileUploadInlineDropArea\";\n\nexport type FileUploadCompactInputZoneProps = Omit<FileUploadTexts, \"removeBtnText\" | \"helpText\"> &\n\tPick<\n\t\tFileUploadActions,\n\t\t\"openFileDialog\" | \"handleDragEnter\" | \"handleDragLeave\" | \"handleDragOver\" | \"handleDrop\" | \"getInputProps\"\n\t> & {\n\t\tisDragging?: boolean;\n\t};\n\nexport const FileUploadCompactInputZone = ({\n\tisDragging,\n\tgetInputProps,\n\topenFileDialog,\n\thandleDragEnter,\n\thandleDragLeave,\n\thandleDragOver,\n\thandleDrop,\n\t...props\n}: FileUploadCompactInputZoneProps) => {\n\treturn (\n\t\t<FileUploadInlineDropArea\n\t\t\tonClick={openFileDialog}\n\t\t\tonDragEnter={handleDragEnter}\n\t\t\tonDragLeave={handleDragLeave}\n\t\t\tonDragOver={handleDragOver}\n\t\t\tonDrop={handleDrop}\n\t\t\tdata-dragging={isDragging || undefined}\n\t\t\t{...props}\n\t\t>\n\t\t\t<input className=\"sr-only\" aria-label=\"Upload files\" {...getInputProps()} />\n\t\t</FileUploadInlineDropArea>\n\t);\n};\n\nFileUploadCompactInputZone.displayName = \"FileUploadCompactInputZone\";\n","import { IconButton } from \"@/components/button\";\nimport { FileData } from \"@/hooks/use-file-upload/useFileUpload\";\nimport { formatBytes } from \"@/lib/utils/file/formatBytes\";\nimport { Download, XIcon } from \"lucide-react\";\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { useFileType } from \"@/hooks/useFileType\";\nimport { Icon } from \"@/components/icon\";\nimport { TextOverflowTooltip } from \"@/components/overflow-tooltip\";\n\nconst fileUploadItemCompactStyles = tv({\n\tslots: {\n\t\twrapper:\n\t\t\t\"box-border flex h-10 items-center gap-2 rounded-lg border border-secondary-border bg-background p-2.5 pr-1\",\n\t\ticon: \"text-muted\",\n\t\tinfoWrapper: \"flex w-full items-center overflow-hidden\",\n\t\ttextWrapper: \"flex w-full items-center justify-between\",\n\t\ttitle: \"truncate text-sm font-medium\",\n\t\tdescription: \"text-sm text-muted\",\n\t\tactionWrapper: \"ml-auto flex items-center -space-x-1.5\"\n\t}\n});\n\nexport type FileUploadItemCompactProps = React.HTMLAttributes<HTMLDivElement> & {\n\tonClear: () => void;\n\tfile: FileData;\n\trenderIcon?: React.ReactNode;\n\tonDownload?: (file: FileData) => void;\n};\n\nexport const FileUploadItemCompact = React.forwardRef<HTMLDivElement, FileUploadItemCompactProps>(\n\t({ onClear, file, className, renderIcon, onDownload, ...props }, ref) => {\n\t\tconst styles = fileUploadItemCompactStyles();\n\t\tconst IconComponent = useFileType(file);\n\n\t\treturn (\n\t\t\t<div className=\"relative\">\n\t\t\t\t<div className={styles.wrapper({ className })} ref={ref} {...props}>\n\t\t\t\t\t{renderIcon ?? (\n\t\t\t\t\t\t<div className=\"size-5\">\n\t\t\t\t\t\t\t<Icon icon={IconComponent} size=\"lg\" className={styles.icon()} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div className={styles.infoWrapper()}>\n\t\t\t\t\t\t<div className={styles.textWrapper()}>\n\t\t\t\t\t\t\t<TextOverflowTooltip className={styles.title()}>{file.name}</TextOverflowTooltip>\n\t\t\t\t\t\t\t<p className={styles.description()}>{formatBytes(file.size)}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div className={styles.actionWrapper()}>\n\t\t\t\t\t\t{onDownload && (\n\t\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\ticon={Download}\n\t\t\t\t\t\t\t\tonClick={() => onDownload(file)}\n\t\t\t\t\t\t\t\taria-label=\"Download file\"\n\t\t\t\t\t\t\t\ticonClassName=\"size-4\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\ticon={XIcon}\n\t\t\t\t\t\t\tonClick={onClear}\n\t\t\t\t\t\t\taria-label=\"Remove file\"\n\t\t\t\t\t\t\ticonClassName=\"size-4\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n);\n\nFileUploadItemCompact.displayName = \"FileUploadItemCompact\";\n","import {\n\tFileData,\n\tFileMetadata,\n\tFileUploadConstraints,\n\tFileValue,\n\tuseFileUpload\n} from \"@/hooks/use-file-upload/useFileUpload\";\nimport { useCallback, useMemo } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { FileUploadClearButton } from \"./components/file-upload-clear-button/FileUploadClearButton\";\nimport { FileUploadError } from \"./components/file-upload-error/FileUploadError\";\nimport { FileUploadInputZone } from \"./components/file-upload-input-zone/FileUploadInputZone\";\nimport { FileUploadItem } from \"./components/file-upload-item/FileUploadItem\";\nimport { FileUploadErrorMessages } from \"@/hooks/use-file-upload\";\n\nconst fileUploadStyles = tv({\n\tbase: \"flex flex-col gap-3\"\n});\n\nexport type FileUploadTexts = {\n\ttitle?: string;\n\tdescription?: string;\n\thelpText?: string;\n\tremoveBtnText?: string;\n};\n\nexport type FileUploadBaseProps = FileUploadConstraints & FileUploadTexts;\n\nexport type FileUploadProps = FileUploadBaseProps & {\n\tfiles?: FileValue[];\n\tonChange?: (files: FileValue[]) => void;\n\tonRemove?: (file: FileValue, index: number) => void;\n\tonAdd?: (files: FileValue[]) => void;\n\tonClear?: () => void;\n\tonDownload?: (file: FileData) => void;\n\n\tinitialFiles?: FileMetadata[];\n\tclassName?: string;\n\terrorMessages?: Partial<FileUploadErrorMessages>;\n};\n\nexport const FileUpload = (props: FileUploadProps) => {\n\tconst {\n\t\tfiles,\n\t\tonRemove,\n\t\tonAdd,\n\t\tonClear,\n\t\tonDownload,\n\t\tinitialFiles,\n\t\tonChange,\n\t\tclassName,\n\t\ttitle,\n\t\tdescription,\n\t\thelpText,\n\t\tremoveBtnText,\n\t\terrorMessages,\n\t\tmultiple = true,\n\t\t...constraints\n\t} = props;\n\tconst [{ files: stateFiles, isDragging, errors }, actions] = useFileUpload({\n\t\t...constraints,\n\t\tinitialFiles,\n\t\tmultiple,\n\t\terrorMessages,\n\t\tonFilesChange: (filesWithPreview) => {\n\t\t\tconst files = filesWithPreview.map((file) => file.file);\n\t\t\tonChange?.(files);\n\t\t},\n\t\tonFilesAdded: (filesWithPreview) => {\n\t\t\tconst files = filesWithPreview.map((file) => file.file);\n\t\t\tonAdd?.(files);\n\t\t}\n\t});\n\n\tconst actualFiles = useMemo(() => {\n\t\treturn files || stateFiles.map((file) => file.file);\n\t}, [files, stateFiles]);\n\n\tconst handleClearAll = useCallback(() => {\n\t\tactions.clearFiles();\n\t\tonClear?.();\n\t}, [actions, onClear]);\n\n\tconst handleRemoveFile = useCallback(\n\t\t(file: FileValue, index: number) => {\n\t\t\tconst fileId = stateFiles.find((f) => f.file.name === file.name && f.file.size === file.size)?.id;\n\t\t\tif (fileId) actions.removeFile(fileId);\n\t\t\tonRemove?.(file, index);\n\t\t},\n\t\t[stateFiles, actions, onRemove]\n\t);\n\n\treturn (\n\t\t<div className={fileUploadStyles({ className })}>\n\t\t\t<FileUploadInputZone\n\t\t\t\t{...actions}\n\t\t\t\tisDragging={isDragging}\n\t\t\t\ttitle={title}\n\t\t\t\tdescription={description}\n\t\t\t\thelpText={helpText}\n\t\t\t/>\n\n\t\t\t{errors.length > 0 && <FileUploadError error={errors} />}\n\n\t\t\t{actualFiles.length > 0 && (\n\t\t\t\t<div className=\"space-y-2\">\n\t\t\t\t\t{actualFiles.map((file, index) => (\n\t\t\t\t\t\t<FileUploadItem\n\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\tfile={file}\n\t\t\t\t\t\t\tonClear={() => handleRemoveFile(file, index)}\n\t\t\t\t\t\t\tonDownload={onDownload}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t\t{actualFiles.length > 1 && (\n\t\t\t\t\t\t<FileUploadClearButton onClick={handleClearAll}>{removeBtnText}</FileUploadClearButton>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nFileUpload.displayName = \"FileUpload\";\n","import { FileMetadata, FileValue, useFileUpload, type FileUploadErrorMessages } from \"@/hooks/use-file-upload\";\nimport React, { useCallback, useMemo } from \"react\";\nimport { tv } from \"tailwind-variants\";\nimport { FileUploadBaseProps } from \"../FileUpload\";\nimport { FileUploadItemCompact } from \"../components/file-upload-item-compact/FileUploadItemCompact\";\nimport { FileUploadError } from \"../components/file-upload-error/FileUploadError\";\nimport { FileUploadCompactInputZone } from \"../components/file-upload-compact-input-zone/FileUploadCompactInputZone\";\nimport { FileData } from \"@/hooks/use-file-upload/useFileUpload\";\n\nconst fileUploadStyles = tv({\n\tbase: \"box-border flex flex-col gap-2\"\n});\n\nexport type FileUploadCompactProps = Omit<FileUploadBaseProps, \"removeBtnText\" | \"helpText\"> & {\n\tfiles?: FileValue[];\n\tonChange?: (files: FileValue[]) => void;\n\tonRemove?: (file: FileValue, index: number) => void;\n\tonAdd?: (files: FileValue[]) => void;\n\tonDownload?: (file: FileData) => void;\n\tinitialFiles?: FileMetadata[];\n\tclassName?: string;\n\terrorMessages?: Partial<FileUploadErrorMessages>;\n\trenderFileIcon?: (file: FileValue) => React.ReactNode;\n};\n\nexport const FileUploadCompact = (props: FileUploadCompactProps) => {\n\tconst {\n\t\tfiles,\n\t\tonRemove,\n\t\tonDownload,\n\t\tonAdd,\n\t\tinitialFiles,\n\t\tonChange,\n\t\tclassName,\n\t\ttitle,\n\t\tdescription,\n\t\tmultiple = true,\n\t\terrorMessages,\n\t\trenderFileIcon,\n\t\t...constraints\n\t} = props;\n\tconst [{ files: stateFiles, isDragging, errors }, actions] = useFileUpload({\n\t\t...constraints,\n\t\tinitialFiles,\n\t\tmultiple,\n\t\terrorMessages,\n\t\tonFilesChange: (filesWithPreview) => {\n\t\t\tconst files = filesWithPreview.map((file) => file.file);\n\t\t\tonChange?.(files);\n\t\t},\n\t\tonFilesAdded: (filesWithPreview) => {\n\t\t\tconst files = filesWithPreview.map((file) => file.file);\n\t\t\tonAdd?.(files);\n\t\t}\n\t});\n\n\tconst actualFiles = useMemo(() => {\n\t\treturn files || stateFiles.map((file) => file.file);\n\t}, [files, stateFiles]);\n\n\tconst handleRemoveFile = useCallback(\n\t\t(file: FileValue, index: number) => {\n\t\t\tconst fileId = stateFiles.find((f) => f.file.name === file.name && f.file.size === file.size)?.id;\n\t\t\tif (fileId) actions.removeFile(fileId);\n\t\t\tonRemove?.(file, index);\n\t\t},\n\t\t[stateFiles, actions, onRemove]\n\t);\n\n\treturn (\n\t\t<div className={fileUploadStyles({ className })}>\n\t\t\t<FileUploadCompactInputZone {...actions} isDragging={isDragging} title={title} description={description} />\n\n\t\t\t{errors.length > 0 && <FileUploadError error={errors} />}\n\n\t\t\t{actualFiles.length > 0 && (\n\t\t\t\t<div>\n\t\t\t\t\t{actualFiles.map((file, index) => {\n\t\t\t\t\t\tconst isFirst = index === 0;\n\t\t\t\t\t\tconst isOnly = actualFiles.length === 1;\n\t\t\t\t\t\tconst isLast = index === actualFiles.length - 1;\n\n\t\t\t\t\t\tlet itemClassName = \"\";\n\t\t\t\t\t\tif (isOnly) {\n\t\t\t\t\t\t\titemClassName = \"\";\n\t\t\t\t\t\t} else if (isFirst) {\n\t\t\t\t\t\t\titemClassName = \"border-b-0 rounded-b-none\";\n\t\t\t\t\t\t} else if (isLast) {\n\t\t\t\t\t\t\titemClassName = \"rounded-t-none\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemClassName = \"border-b-0 rounded-none\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<FileUploadItemCompact\n\t\t\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\t\t\tfile={file}\n\t\t\t\t\t\t\t\tonClear={() => handleRemoveFile(file, index)}\n\t\t\t\t\t\t\t\tclassName={itemClassName}\n\t\t\t\t\t\t\t\trenderIcon={renderFileIcon?.(file)}\n\t\t\t\t\t\t\t\tonDownload={onDownload}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nFileUploadCompact.displayName = \"FileUploadCompact\";\n"],"names":["FileArchive","createLucideIcon","FileSpreadsheet","FileText","File","Headphones","Upload","Video","useFileType","file","fileType","fileName","FileTextIcon","FileArchiveIcon","FileSpreadsheetIcon","VideoIcon","HeadphonesIcon","ImageIcon","FileIcon","fileIconStyles","tv","FileUploadIcon","IconComponent","jsx","FeatureIcon","fileUploadItemStyles","FileUploadItem","React","onClear","onDownload","className","props","ref","styles","jsxs","TextOverflowTooltip","formatBytes","IconButton","Download","XIcon","FileUploadError","error","errorText","Alert","AlertIcon","AlertCircleIcon","AlertDescription","fileUploadDropAreaIconStyles","FileUploadDropAreaIcon","icon","fileUploadDropAreaStyles","FileUploadDropArea","title","description","children","fileUploadInlineDropAreaStyles","FileUploadInlineDropArea","Fragment","FileUploadClearButton","Button","FileUploadInputZone","isDragging","getInputProps","openFileDialog","handleDragEnter","handleDragLeave","handleDragOver","handleDrop","FileUploadCompactInputZone","fileUploadItemCompactStyles","FileUploadItemCompact","renderIcon","Icon","fileUploadStyles","FileUpload","files","onRemove","onAdd","initialFiles","onChange","helpText","removeBtnText","errorMessages","multiple","constraints","stateFiles","errors","actions","useFileUpload","filesWithPreview","actualFiles","useMemo","handleClearAll","useCallback","handleRemoveFile","index","fileId","f","FileUploadCompact","renderFileIcon","isFirst","isOnly","isLast","itemClassName"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,KAAcC,EAAiB,eAAe;AAAA,EAClD,CAAC,QAAQ,EAAE,GAAG,aAAa,KAAK,SAAQ,CAAE;AAAA,EAC1C,CAAC,QAAQ,EAAE,GAAG,aAAa,KAAK,SAAQ,CAAE;AAAA,EAC1C,CAAC,QAAQ,EAAE,GAAG,WAAW,KAAK,SAAQ,CAAE;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,2BAA2B,KAAK,SAAQ,CAAE;AAAA,EACxD;AAAA,IACE;AAAA,IACA,EAAE,GAAG,2EAA2E,KAAK,SAAQ;AAAA,EAC9F;AAAA,EACD,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,SAAU,CAAA;AAC1D,CAAC;ACnBD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMC,KAAkBD,EAAiB,mBAAmB;AAAA,EAC1D,CAAC,QAAQ,EAAE,GAAG,8DAA8D,KAAK,SAAQ,CAAE;AAAA,EAC3F,CAAC,QAAQ,EAAE,GAAG,2BAA2B,KAAK,SAAQ,CAAE;AAAA,EACxD,CAAC,QAAQ,EAAE,GAAG,WAAW,KAAK,SAAQ,CAAE;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAQ,CAAE;AAAA,EACzC,CAAC,QAAQ,EAAE,GAAG,WAAW,KAAK,SAAQ,CAAE;AAAA,EACxC,CAAC,QAAQ,EAAE,GAAG,YAAY,KAAK,SAAU,CAAA;AAC3C,CAAC;AChBD;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAME,KAAWF,EAAiB,YAAY;AAAA,E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AAS,YAAA1B,GAAwB,OAAAT,GAAc,aAAAC,GAA0B;AAAA,IAExGiC,EAAO,SAAS,KAAM,gBAAA/D,EAAAiB,GAAA,EAAgB,OAAO8C,GAAQ;AAAA,IAErDI,EAAY,SAAS,KACrB,gBAAAnE,EAAC,SACC,UAAYmE,EAAA,IAAI,CAACjF,GAAMsF,MAAU;AACjC,YAAMK,IAAUL,MAAU,GACpBM,IAASX,EAAY,WAAW,GAChCY,IAASP,MAAUL,EAAY,SAAS;AAE9C,UAAIa,IAAgB;AACpB,aAAIF,IACaE,IAAA,KACNH,IACMG,IAAA,8BACND,IACMC,IAAA,mBAEAA,IAAA,2BAIhB,gBAAAhF;AAAA,QAAC+C;AAAA,QAAA;AAAA,UAEA,MAAA7D;AAAA,UACA,SAAS,MAAMqF,EAAiBrF,GAAMsF,CAAK;AAAA,UAC3C,WAAWQ;AAAA,UACX,YAAYJ,IAAiB1F,CAAI;AAAA,UACjC,YAAAoB;AAAA,QAAA;AAAA,QALKkE;AAAA,MAMN;AAAA,IAAA,CAED,EACF,CAAA;AAAA,EAAA,GAEF;AAEF;AAEAG,GAAkB,cAAc;","x_google_ignoreList":[0,1,2,3,4,5,6]}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { ControllerProps, FieldPath, FieldValues,
|
|
1
|
+
import { FormProvider, ControllerProps, FieldPath, FieldValues, FieldError } from 'react-hook-form';
|
|
2
2
|
import { SlotProps } from '@radix-ui/react-slot';
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Основной контейнер формы
|
|
7
|
+
*/
|
|
8
|
+
declare const Form: <T extends FieldValues>({ className, asChild, ...props }: React.ComponentProps<typeof FormProvider<T>> & {
|
|
9
|
+
/** Дополнительные классы */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Использовать ли дочерний элемент как корневой */
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Поле формы с валидацией
|
|
16
|
+
*/
|
|
6
17
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
7
18
|
declare const useFormField: () => {
|
|
8
19
|
invalid: boolean;
|
|
@@ -16,12 +27,24 @@ declare const useFormField: () => {
|
|
|
16
27
|
formDescriptionId: string;
|
|
17
28
|
formMessageId: string;
|
|
18
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Контейнер для элементов формы
|
|
32
|
+
*/
|
|
19
33
|
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
20
34
|
interface FormLabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
35
|
+
/** Обязательное ли поле */
|
|
21
36
|
required?: boolean;
|
|
22
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Лейбл для поля формы
|
|
40
|
+
*/
|
|
23
41
|
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Контрол для поля формы
|
|
44
|
+
*/
|
|
24
45
|
declare const FormControl: React.ForwardRefExoticComponent<Omit< SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
25
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Сообщение об ошибке
|
|
48
|
+
*/
|
|
26
49
|
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
27
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl,
|
|
50
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormMessage, FormField as FormFieldControl };
|