ics-ui-kit 0.1.0-alpha.9 → 0.1.0
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-B6ojieD7.js +347 -0
- package/dist/CheckboxField-B6ojieD7.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-CSvS9f_a.js +86 -0
- package/dist/Field-CSvS9f_a.js.map +1 -0
- package/dist/FieldLabel-BA0y5lhr.js +70 -0
- package/dist/FieldLabel-BA0y5lhr.js.map +1 -0
- package/dist/FolderSvg-cw0DxNVy.js +742 -0
- package/dist/FolderSvg-cw0DxNVy.js.map +1 -0
- package/dist/FormFooterTemplate-BPspyDbr.js +88 -0
- package/dist/FormFooterTemplate-BPspyDbr.js.map +1 -0
- package/dist/FormHeader--F6b2aRk.js +49 -0
- package/dist/FormHeader--F6b2aRk.js.map +1 -0
- package/dist/FormStack-DvlFQQiP.js +127 -0
- package/dist/FormStack-DvlFQQiP.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-DhkXc8Uy.js +11 -0
- package/dist/IconTooltip-DhkXc8Uy.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 +5 -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 +139 -152
- 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/design-tokens.source.json +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 +4318 -420
- package/dist/styles.css +4313 -417
- package/dist/theme.css +329 -0
- package/dist/theme.d.ts +1 -0
- 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 +89 -23
- package/tailwind.preset.js +440 -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/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
package/dist/components/toast.js
CHANGED
|
@@ -1,69 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var s = {};
|
|
15
|
-
for (var r in e)
|
|
16
|
-
Ot.call(e, r) && t.indexOf(r) < 0 && (s[r] = e[r]);
|
|
17
|
-
if (e != null && vt)
|
|
18
|
-
for (var r of vt(e))
|
|
19
|
-
t.indexOf(r) < 0 && Ft.call(e, r) && (s[r] = e[r]);
|
|
20
|
-
return s;
|
|
21
|
-
};
|
|
22
|
-
var Bt = (e, t, s) => new Promise((r, l) => {
|
|
23
|
-
var u = (n) => {
|
|
24
|
-
try {
|
|
25
|
-
f(s.next(n));
|
|
26
|
-
} catch (d) {
|
|
27
|
-
l(d);
|
|
28
|
-
}
|
|
29
|
-
}, m = (n) => {
|
|
30
|
-
try {
|
|
31
|
-
f(s.throw(n));
|
|
32
|
-
} catch (d) {
|
|
33
|
-
l(d);
|
|
34
|
-
}
|
|
35
|
-
}, f = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(u, m);
|
|
36
|
-
f((s = s.apply(e, t)).next());
|
|
37
|
-
});
|
|
38
|
-
import { jsx as y, jsxs as D, Fragment as lt } from "react/jsx-runtime";
|
|
39
|
-
import o, { forwardRef as ge, isValidElement as Mt, createContext as ye, useContext as ve } from "react";
|
|
40
|
-
import we from "react-dom";
|
|
41
|
-
import { c as K } from "../index-CR-odn5-.js";
|
|
42
|
-
import { t as Gt } from "../bundle-mjs-D6wdQkGI.js";
|
|
43
|
-
import { I as be } from "../IconButton-CTxOql_1.js";
|
|
44
|
-
import { X as xe } from "../x-JgjNP5oH.js";
|
|
45
|
-
import { D as Ut } from "../Divider-D3NvaU8c.js";
|
|
46
|
-
import { I as Te } from "../Icon-CSPBHL_x.js";
|
|
47
|
-
import { c as xt } from "../createLucideIcon-DgrNxRV5.js";
|
|
48
|
-
import { B as Ne } from "../Button-Cfe4WIYW.js";
|
|
1
|
+
import { jsx as y, Fragment as nt, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import s, { forwardRef as re, isValidElement as Et, createContext as oe, useContext as ne } from "react";
|
|
3
|
+
import ie from "react-dom";
|
|
4
|
+
import { T as U } from "../index-BVqs-uqP.js";
|
|
5
|
+
import { I as le } from "../IconButton-DwkpNgn3.js";
|
|
6
|
+
import { X as de } from "../x-tDTt7hTQ.js";
|
|
7
|
+
import { T as ce } from "../Text-DeBE8AKl.js";
|
|
8
|
+
import { c as ue } from "../cn-dsXlqdJg.js";
|
|
9
|
+
import { t as me } from "../bundle-mjs-CQ0w4GOB.js";
|
|
10
|
+
import { I as pe } from "../Icon-DH3ev9GK.js";
|
|
11
|
+
import { C as Yt } from "../circle-alert-CVIokIC7.js";
|
|
12
|
+
import { c as Ct } from "../createLucideIcon-DwBrHnj9.js";
|
|
13
|
+
import { B as fe } from "../Button-Dg89xRSi.js";
|
|
49
14
|
/**
|
|
50
15
|
* @license lucide-react v0.460.0 - ISC
|
|
51
16
|
*
|
|
52
17
|
* This source code is licensed under the ISC license.
|
|
53
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
19
|
*/
|
|
55
|
-
const
|
|
56
|
-
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
57
|
-
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
58
|
-
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
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 ke = xt("CircleCheckBig", [
|
|
20
|
+
const he = Ct("CircleCheckBig", [
|
|
67
21
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
68
22
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
69
23
|
]);
|
|
@@ -73,7 +27,7 @@ const ke = xt("CircleCheckBig", [
|
|
|
73
27
|
* This source code is licensed under the ISC license.
|
|
74
28
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
29
|
*/
|
|
76
|
-
const
|
|
30
|
+
const ge = Ct("Info", [
|
|
77
31
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
78
32
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
79
33
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
@@ -84,7 +38,7 @@ const Ee = xt("Info", [
|
|
|
84
38
|
* This source code is licensed under the ISC license.
|
|
85
39
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
40
|
*/
|
|
87
|
-
const
|
|
41
|
+
const ye = Ct("TriangleAlert", [
|
|
88
42
|
[
|
|
89
43
|
"path",
|
|
90
44
|
{
|
|
@@ -95,294 +49,296 @@ const ze = xt("TriangleAlert", [
|
|
|
95
49
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
96
50
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
97
51
|
]);
|
|
98
|
-
var
|
|
99
|
-
switch (
|
|
52
|
+
var be = (a) => {
|
|
53
|
+
switch (a) {
|
|
100
54
|
case "success":
|
|
101
|
-
return
|
|
55
|
+
return xe;
|
|
102
56
|
case "info":
|
|
103
|
-
return
|
|
57
|
+
return Ne;
|
|
104
58
|
case "warning":
|
|
105
|
-
return
|
|
59
|
+
return Te;
|
|
106
60
|
case "error":
|
|
107
|
-
return
|
|
61
|
+
return ke;
|
|
108
62
|
default:
|
|
109
63
|
return null;
|
|
110
64
|
}
|
|
111
|
-
},
|
|
112
|
-
let [
|
|
113
|
-
return
|
|
114
|
-
let
|
|
65
|
+
}, ve = Array(12).fill(0), we = ({ visible: a, className: t }) => s.createElement("div", { className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "), "data-visible": a }, s.createElement("div", { className: "sonner-spinner" }, ve.map((o, r) => s.createElement("div", { className: "sonner-loading-bar", key: `spinner-bar-${r}` })))), xe = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, s.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" })), Te = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, s.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" })), Ne = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, s.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" })), ke = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, s.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" })), Ee = s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, s.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), s.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" })), ze = () => {
|
|
66
|
+
let [a, t] = s.useState(document.hidden);
|
|
67
|
+
return s.useEffect(() => {
|
|
68
|
+
let o = () => {
|
|
115
69
|
t(document.hidden);
|
|
116
70
|
};
|
|
117
|
-
return document.addEventListener("visibilitychange",
|
|
118
|
-
}, []),
|
|
119
|
-
},
|
|
71
|
+
return document.addEventListener("visibilitychange", o), () => window.removeEventListener("visibilitychange", o);
|
|
72
|
+
}, []), a;
|
|
73
|
+
}, zt = 1, Ce = class {
|
|
120
74
|
constructor() {
|
|
121
|
-
this.subscribe = (
|
|
122
|
-
let t = this.subscribers.indexOf(
|
|
75
|
+
this.subscribe = (a) => (this.subscribers.push(a), () => {
|
|
76
|
+
let t = this.subscribers.indexOf(a);
|
|
123
77
|
this.subscribers.splice(t, 1);
|
|
124
|
-
}), this.publish = (
|
|
125
|
-
this.subscribers.forEach((t) => t(
|
|
126
|
-
}, this.addToast = (
|
|
127
|
-
this.publish(
|
|
128
|
-
}, this.create = (
|
|
78
|
+
}), this.publish = (a) => {
|
|
79
|
+
this.subscribers.forEach((t) => t(a));
|
|
80
|
+
}, this.addToast = (a) => {
|
|
81
|
+
this.publish(a), this.toasts = [...this.toasts, a];
|
|
82
|
+
}, this.create = (a) => {
|
|
129
83
|
var t;
|
|
130
|
-
let
|
|
131
|
-
return this.dismissedToasts.has(
|
|
132
|
-
}, this.dismiss = (
|
|
133
|
-
this.subscribers.forEach((
|
|
134
|
-
}), this.subscribers.forEach((t) => t({ id:
|
|
84
|
+
let { message: o, ...r } = a, i = typeof a?.id == "number" || ((t = a.id) == null ? void 0 : t.length) > 0 ? a.id : zt++, d = this.toasts.find((m) => m.id === i), w = a.dismissible === void 0 ? !0 : a.dismissible;
|
|
85
|
+
return this.dismissedToasts.has(i) && this.dismissedToasts.delete(i), d ? this.toasts = this.toasts.map((m) => m.id === i ? (this.publish({ ...m, ...a, id: i, title: o }), { ...m, ...a, id: i, dismissible: w, title: o }) : m) : this.addToast({ title: o, ...r, dismissible: w, id: i }), i;
|
|
86
|
+
}, this.dismiss = (a) => (this.dismissedToasts.add(a), a || this.toasts.forEach((t) => {
|
|
87
|
+
this.subscribers.forEach((o) => o({ id: t.id, dismiss: !0 }));
|
|
88
|
+
}), this.subscribers.forEach((t) => t({ id: a, dismiss: !0 })), a), this.message = (a, t) => this.create({ ...t, message: a }), this.error = (a, t) => this.create({ ...t, message: a, type: "error" }), this.success = (a, t) => this.create({ ...t, type: "success", message: a }), this.info = (a, t) => this.create({ ...t, type: "info", message: a }), this.warning = (a, t) => this.create({ ...t, type: "warning", message: a }), this.loading = (a, t) => this.create({ ...t, type: "loading", message: a }), this.promise = (a, t) => {
|
|
135
89
|
if (!t) return;
|
|
136
|
-
let
|
|
137
|
-
t.loading !== void 0 && (
|
|
138
|
-
let r =
|
|
139
|
-
if (
|
|
140
|
-
else if (
|
|
141
|
-
|
|
142
|
-
let
|
|
143
|
-
this.create({ id:
|
|
90
|
+
let o;
|
|
91
|
+
t.loading !== void 0 && (o = this.create({ ...t, promise: a, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
|
|
92
|
+
let r = a instanceof Promise ? a : a(), i = o !== void 0, d, w = r.then(async (u) => {
|
|
93
|
+
if (d = ["resolve", u], s.isValidElement(u)) i = !1, this.create({ id: o, type: "default", message: u });
|
|
94
|
+
else if (Ae(u) && !u.ok) {
|
|
95
|
+
i = !1;
|
|
96
|
+
let l = typeof t.error == "function" ? await t.error(`HTTP error! status: ${u.status}`) : t.error, T = typeof t.description == "function" ? await t.description(`HTTP error! status: ${u.status}`) : t.description;
|
|
97
|
+
this.create({ id: o, type: "error", message: l, description: T });
|
|
144
98
|
} else if (t.success !== void 0) {
|
|
145
|
-
|
|
146
|
-
let
|
|
147
|
-
this.create({ id:
|
|
99
|
+
i = !1;
|
|
100
|
+
let l = typeof t.success == "function" ? await t.success(u) : t.success, T = typeof t.description == "function" ? await t.description(u) : t.description;
|
|
101
|
+
this.create({ id: o, type: "success", message: l, description: T });
|
|
148
102
|
}
|
|
149
|
-
})
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
let
|
|
153
|
-
this.create({ id:
|
|
103
|
+
}).catch(async (u) => {
|
|
104
|
+
if (d = ["reject", u], t.error !== void 0) {
|
|
105
|
+
i = !1;
|
|
106
|
+
let l = typeof t.error == "function" ? await t.error(u) : t.error, T = typeof t.description == "function" ? await t.description(u) : t.description;
|
|
107
|
+
this.create({ id: o, type: "error", message: l, description: T });
|
|
154
108
|
}
|
|
155
|
-
})
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
}),
|
|
159
|
-
return typeof
|
|
160
|
-
}, this.custom = (
|
|
161
|
-
let
|
|
162
|
-
return this.create(
|
|
163
|
-
}, this.getActiveToasts = () => this.toasts.filter((
|
|
109
|
+
}).finally(() => {
|
|
110
|
+
var u;
|
|
111
|
+
i && (this.dismiss(o), o = void 0), (u = t.finally) == null || u.call(t);
|
|
112
|
+
}), m = () => new Promise((u, l) => w.then(() => d[0] === "reject" ? l(d[1]) : u(d[1])).catch(l));
|
|
113
|
+
return typeof o != "string" && typeof o != "number" ? { unwrap: m } : Object.assign(o, { unwrap: m });
|
|
114
|
+
}, this.custom = (a, t) => {
|
|
115
|
+
let o = t?.id || zt++;
|
|
116
|
+
return this.create({ jsx: a(o), id: o, ...t }), o;
|
|
117
|
+
}, this.getActiveToasts = () => this.toasts.filter((a) => !this.dismissedToasts.has(a.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
164
118
|
}
|
|
165
|
-
},
|
|
166
|
-
let
|
|
167
|
-
return
|
|
168
|
-
},
|
|
169
|
-
function
|
|
170
|
-
if (typeof document
|
|
171
|
-
let
|
|
172
|
-
r.type = "text/css", t === "top" &&
|
|
119
|
+
}, k = new Ce(), Se = (a, t) => {
|
|
120
|
+
let o = t?.id || zt++;
|
|
121
|
+
return k.addToast({ title: a, ...t, id: o }), o;
|
|
122
|
+
}, Ae = (a) => a && typeof a == "object" && "ok" in a && typeof a.ok == "boolean" && "status" in a && typeof a.status == "number", Be = Se, Me = () => k.toasts, Ie = () => k.getActiveToasts(), O = Object.assign(Be, { success: k.success, info: k.info, warning: k.warning, error: k.error, custom: k.custom, message: k.message, promise: k.promise, dismiss: k.dismiss, loading: k.loading }, { getHistory: Me, getToasts: Ie });
|
|
123
|
+
function je(a, { insertAt: t } = {}) {
|
|
124
|
+
if (typeof document > "u") return;
|
|
125
|
+
let o = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
|
|
126
|
+
r.type = "text/css", t === "top" && o.firstChild ? o.insertBefore(r, o.firstChild) : o.appendChild(r), r.styleSheet ? r.styleSheet.cssText = a : r.appendChild(document.createTextNode(a));
|
|
173
127
|
}
|
|
174
|
-
Ve(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
128
|
+
je(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
175
129
|
`);
|
|
176
|
-
function
|
|
177
|
-
return
|
|
130
|
+
function gt(a) {
|
|
131
|
+
return a.label !== void 0;
|
|
178
132
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return
|
|
133
|
+
var Pe = 3, Re = "32px", De = "16px", $t = 4e3, Ye = 356, $e = 14, We = 20, Le = 200;
|
|
134
|
+
function I(...a) {
|
|
135
|
+
return a.filter(Boolean).join(" ");
|
|
182
136
|
}
|
|
183
|
-
function
|
|
184
|
-
let [t,
|
|
185
|
-
return t && r.push(t),
|
|
137
|
+
function He(a) {
|
|
138
|
+
let [t, o] = a.split("-"), r = [];
|
|
139
|
+
return t && r.push(t), o && r.push(o), r;
|
|
186
140
|
}
|
|
187
|
-
var
|
|
188
|
-
var t,
|
|
189
|
-
let { invert:
|
|
190
|
-
var
|
|
191
|
-
return (
|
|
192
|
-
}, [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}, [
|
|
196
|
-
|
|
197
|
-
}, []),
|
|
198
|
-
let
|
|
199
|
-
if (
|
|
200
|
-
let
|
|
201
|
-
return
|
|
141
|
+
var Ve = (a) => {
|
|
142
|
+
var t, o, r, i, d, w, m, u, l, T, _;
|
|
143
|
+
let { invert: tt, toast: e, unstyled: D, interacting: h, setHeights: j, visibleToasts: it, heights: K, index: Y, toasts: yt, expanded: et, removeToast: S, defaultRichColors: at, closeButton: lt, style: dt, cancelButtonStyle: bt, actionButtonStyle: ct, className: P = "", descriptionClassName: ut = "", duration: X, position: mt, gap: H, loadingIcon: R, expandByDefault: pt, classNames: c, icons: E, closeButtonAriaLabel: vt = "Close toast", pauseWhenPageIsHidden: f } = a, [g, v] = s.useState(null), [N, Z] = s.useState(null), [x, wt] = s.useState(!1), [st, ft] = s.useState(!1), [rt, xt] = s.useState(!1), [At, Ut] = s.useState(!1), [_t, Bt] = s.useState(!1), [Kt, Tt] = s.useState(0), [Xt, Mt] = s.useState(0), ot = s.useRef(e.duration || X || $t), It = s.useRef(null), V = s.useRef(null), Zt = Y === 0, qt = Y + 1 <= it, z = e.type, q = e.dismissible !== !1, Gt = e.className || "", Jt = e.descriptionClassName || "", ht = s.useMemo(() => K.findIndex((n) => n.toastId === e.id) || 0, [K, e.id]), Qt = s.useMemo(() => {
|
|
144
|
+
var n;
|
|
145
|
+
return (n = e.closeButton) != null ? n : lt;
|
|
146
|
+
}, [e.closeButton, lt]), jt = s.useMemo(() => e.duration || X || $t, [e.duration, X]), Nt = s.useRef(0), G = s.useRef(0), Pt = s.useRef(0), J = s.useRef(null), [te, ee] = mt.split("-"), Rt = s.useMemo(() => K.reduce((n, p, b) => b >= ht ? n : n + p.height, 0), [K, ht]), Dt = ze(), ae = e.invert || tt, kt = z === "loading";
|
|
147
|
+
G.current = s.useMemo(() => ht * H + Rt, [ht, Rt]), s.useEffect(() => {
|
|
148
|
+
ot.current = jt;
|
|
149
|
+
}, [jt]), s.useEffect(() => {
|
|
150
|
+
wt(!0);
|
|
151
|
+
}, []), s.useEffect(() => {
|
|
152
|
+
let n = V.current;
|
|
153
|
+
if (n) {
|
|
154
|
+
let p = n.getBoundingClientRect().height;
|
|
155
|
+
return Mt(p), j((b) => [{ toastId: e.id, height: p, position: e.position }, ...b]), () => j((b) => b.filter((A) => A.toastId !== e.id));
|
|
202
156
|
}
|
|
203
|
-
}, [
|
|
204
|
-
if (!
|
|
205
|
-
let
|
|
206
|
-
|
|
207
|
-
let b =
|
|
208
|
-
|
|
209
|
-
}, [
|
|
210
|
-
let
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
}, [
|
|
215
|
-
|
|
216
|
-
if (
|
|
217
|
-
let
|
|
218
|
-
return
|
|
219
|
-
if (
|
|
220
|
-
let
|
|
221
|
-
|
|
157
|
+
}, [j, e.id]), s.useLayoutEffect(() => {
|
|
158
|
+
if (!x) return;
|
|
159
|
+
let n = V.current, p = n.style.height;
|
|
160
|
+
n.style.height = "auto";
|
|
161
|
+
let b = n.getBoundingClientRect().height;
|
|
162
|
+
n.style.height = p, Mt(b), j((A) => A.find((B) => B.toastId === e.id) ? A.map((B) => B.toastId === e.id ? { ...B, height: b } : B) : [{ toastId: e.id, height: b, position: e.position }, ...A]);
|
|
163
|
+
}, [x, e.title, e.description, j, e.id]);
|
|
164
|
+
let $ = s.useCallback(() => {
|
|
165
|
+
ft(!0), Tt(G.current), j((n) => n.filter((p) => p.toastId !== e.id)), setTimeout(() => {
|
|
166
|
+
S(e);
|
|
167
|
+
}, Le);
|
|
168
|
+
}, [e, S, j, G]);
|
|
169
|
+
s.useEffect(() => {
|
|
170
|
+
if (e.promise && z === "loading" || e.duration === 1 / 0 || e.type === "loading") return;
|
|
171
|
+
let n;
|
|
172
|
+
return et || h || f && Dt ? (() => {
|
|
173
|
+
if (Pt.current < Nt.current) {
|
|
174
|
+
let p = (/* @__PURE__ */ new Date()).getTime() - Nt.current;
|
|
175
|
+
ot.current = ot.current - p;
|
|
222
176
|
}
|
|
223
|
-
|
|
224
|
-
})() :
|
|
225
|
-
var
|
|
226
|
-
(
|
|
227
|
-
},
|
|
228
|
-
}, [
|
|
229
|
-
|
|
230
|
-
}, [
|
|
231
|
-
function
|
|
232
|
-
var
|
|
233
|
-
return
|
|
177
|
+
Pt.current = (/* @__PURE__ */ new Date()).getTime();
|
|
178
|
+
})() : ot.current !== 1 / 0 && (Nt.current = (/* @__PURE__ */ new Date()).getTime(), n = setTimeout(() => {
|
|
179
|
+
var p;
|
|
180
|
+
(p = e.onAutoClose) == null || p.call(e, e), $();
|
|
181
|
+
}, ot.current)), () => clearTimeout(n);
|
|
182
|
+
}, [et, h, e, z, f, Dt, $]), s.useEffect(() => {
|
|
183
|
+
e.delete && $();
|
|
184
|
+
}, [$, e.delete]);
|
|
185
|
+
function se() {
|
|
186
|
+
var n, p, b;
|
|
187
|
+
return E != null && E.loading ? s.createElement("div", { className: I(c?.loader, (n = e?.classNames) == null ? void 0 : n.loader, "sonner-loader"), "data-visible": z === "loading" }, E.loading) : R ? s.createElement("div", { className: I(c?.loader, (p = e?.classNames) == null ? void 0 : p.loader, "sonner-loader"), "data-visible": z === "loading" }, R) : s.createElement(we, { className: I(c?.loader, (b = e?.classNames) == null ? void 0 : b.loader), visible: z === "loading" });
|
|
234
188
|
}
|
|
235
|
-
return
|
|
236
|
-
|
|
237
|
-
}, onPointerDown: (
|
|
238
|
-
|
|
189
|
+
return s.createElement("li", { tabIndex: 0, ref: V, className: I(P, Gt, c?.toast, (t = e?.classNames) == null ? void 0 : t.toast, c?.default, c?.[z], (o = e?.classNames) == null ? void 0 : o[z]), "data-sonner-toast": "", "data-rich-colors": (r = e.richColors) != null ? r : at, "data-styled": !(e.jsx || e.unstyled || D), "data-mounted": x, "data-promise": !!e.promise, "data-swiped": _t, "data-removed": st, "data-visible": qt, "data-y-position": te, "data-x-position": ee, "data-index": Y, "data-front": Zt, "data-swiping": rt, "data-dismissible": q, "data-type": z, "data-invert": ae, "data-swipe-out": At, "data-swipe-direction": N, "data-expanded": !!(et || pt && x), style: { "--index": Y, "--toasts-before": Y, "--z-index": yt.length - Y, "--offset": `${st ? Kt : G.current}px`, "--initial-height": pt ? "auto" : `${Xt}px`, ...dt, ...e.style }, onDragEnd: () => {
|
|
190
|
+
xt(!1), v(null), J.current = null;
|
|
191
|
+
}, onPointerDown: (n) => {
|
|
192
|
+
kt || !q || (It.current = /* @__PURE__ */ new Date(), Tt(G.current), n.target.setPointerCapture(n.pointerId), n.target.tagName !== "BUTTON" && (xt(!0), J.current = { x: n.clientX, y: n.clientY }));
|
|
239
193
|
}, onPointerUp: () => {
|
|
240
|
-
var
|
|
241
|
-
if (
|
|
242
|
-
|
|
243
|
-
let
|
|
244
|
-
if (Math.abs(
|
|
245
|
-
|
|
194
|
+
var n, p, b, A;
|
|
195
|
+
if (At || !q) return;
|
|
196
|
+
J.current = null;
|
|
197
|
+
let B = Number(((n = V.current) == null ? void 0 : n.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), W = Number(((p = V.current) == null ? void 0 : p.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), F = (/* @__PURE__ */ new Date()).getTime() - ((b = It.current) == null ? void 0 : b.getTime()), M = g === "x" ? B : W, L = Math.abs(M) / F;
|
|
198
|
+
if (Math.abs(M) >= We || L > 0.11) {
|
|
199
|
+
Tt(G.current), (A = e.onDismiss) == null || A.call(e, e), Z(g === "x" ? B > 0 ? "right" : "left" : W > 0 ? "down" : "up"), $(), Ut(!0), Bt(!1);
|
|
246
200
|
return;
|
|
247
201
|
}
|
|
248
|
-
|
|
249
|
-
}, onPointerMove: (
|
|
250
|
-
var
|
|
251
|
-
if (!
|
|
252
|
-
let
|
|
253
|
-
!
|
|
254
|
-
let
|
|
255
|
-
|
|
256
|
-
} },
|
|
202
|
+
xt(!1), v(null);
|
|
203
|
+
}, onPointerMove: (n) => {
|
|
204
|
+
var p, b, A, B;
|
|
205
|
+
if (!J.current || !q || ((p = window.getSelection()) == null ? void 0 : p.toString().length) > 0) return;
|
|
206
|
+
let W = n.clientY - J.current.y, F = n.clientX - J.current.x, M = (b = a.swipeDirections) != null ? b : He(mt);
|
|
207
|
+
!g && (Math.abs(F) > 1 || Math.abs(W) > 1) && v(Math.abs(F) > Math.abs(W) ? "x" : "y");
|
|
208
|
+
let L = { x: 0, y: 0 };
|
|
209
|
+
g === "y" ? (M.includes("top") || M.includes("bottom")) && (M.includes("top") && W < 0 || M.includes("bottom") && W > 0) && (L.y = W) : g === "x" && (M.includes("left") || M.includes("right")) && (M.includes("left") && F < 0 || M.includes("right") && F > 0) && (L.x = F), (Math.abs(L.x) > 0 || Math.abs(L.y) > 0) && Bt(!0), (A = V.current) == null || A.style.setProperty("--swipe-amount-x", `${L.x}px`), (B = V.current) == null || B.style.setProperty("--swipe-amount-y", `${L.y}px`);
|
|
210
|
+
} }, Qt && !e.jsx ? s.createElement("button", { "aria-label": vt, "data-disabled": kt, "data-close-button": !0, onClick: kt || !q ? () => {
|
|
257
211
|
} : () => {
|
|
258
|
-
var
|
|
259
|
-
|
|
260
|
-
}, className:
|
|
261
|
-
var
|
|
262
|
-
|
|
263
|
-
}, className:
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
}, className:
|
|
212
|
+
var n;
|
|
213
|
+
$(), (n = e.onDismiss) == null || n.call(e, e);
|
|
214
|
+
}, className: I(c?.closeButton, (i = e?.classNames) == null ? void 0 : i.closeButton) }, (d = E?.close) != null ? d : Ee) : null, e.jsx || Et(e.title) ? e.jsx ? e.jsx : typeof e.title == "function" ? e.title() : e.title : s.createElement(s.Fragment, null, z || e.icon || e.promise ? s.createElement("div", { "data-icon": "", className: I(c?.icon, (w = e?.classNames) == null ? void 0 : w.icon) }, e.promise || e.type === "loading" && !e.icon ? e.icon || se() : null, e.type !== "loading" ? e.icon || E?.[z] || be(z) : null) : null, s.createElement("div", { "data-content": "", className: I(c?.content, (m = e?.classNames) == null ? void 0 : m.content) }, s.createElement("div", { "data-title": "", className: I(c?.title, (u = e?.classNames) == null ? void 0 : u.title) }, typeof e.title == "function" ? e.title() : e.title), e.description ? s.createElement("div", { "data-description": "", className: I(ut, Jt, c?.description, (l = e?.classNames) == null ? void 0 : l.description) }, typeof e.description == "function" ? e.description() : e.description) : null), Et(e.cancel) ? e.cancel : e.cancel && gt(e.cancel) ? s.createElement("button", { "data-button": !0, "data-cancel": !0, style: e.cancelButtonStyle || bt, onClick: (n) => {
|
|
215
|
+
var p, b;
|
|
216
|
+
gt(e.cancel) && q && ((b = (p = e.cancel).onClick) == null || b.call(p, n), $());
|
|
217
|
+
}, className: I(c?.cancelButton, (T = e?.classNames) == null ? void 0 : T.cancelButton) }, e.cancel.label) : null, Et(e.action) ? e.action : e.action && gt(e.action) ? s.createElement("button", { "data-button": !0, "data-action": !0, style: e.actionButtonStyle || ct, onClick: (n) => {
|
|
218
|
+
var p, b;
|
|
219
|
+
gt(e.action) && ((b = (p = e.action).onClick) == null || b.call(p, n), !n.defaultPrevented && $());
|
|
220
|
+
}, className: I(c?.actionButton, (_ = e?.classNames) == null ? void 0 : _.actionButton) }, e.action.label) : null));
|
|
267
221
|
};
|
|
268
|
-
function
|
|
269
|
-
if (typeof window
|
|
270
|
-
let
|
|
271
|
-
return
|
|
222
|
+
function Wt() {
|
|
223
|
+
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
224
|
+
let a = document.documentElement.getAttribute("dir");
|
|
225
|
+
return a === "auto" || !a ? window.getComputedStyle(document.documentElement).direction : a;
|
|
272
226
|
}
|
|
273
|
-
function
|
|
274
|
-
let
|
|
275
|
-
return [
|
|
276
|
-
let
|
|
277
|
-
function
|
|
278
|
-
["top", "right", "bottom", "left"].forEach((
|
|
279
|
-
|
|
227
|
+
function Fe(a, t) {
|
|
228
|
+
let o = {};
|
|
229
|
+
return [a, t].forEach((r, i) => {
|
|
230
|
+
let d = i === 1, w = d ? "--mobile-offset" : "--offset", m = d ? De : Re;
|
|
231
|
+
function u(l) {
|
|
232
|
+
["top", "right", "bottom", "left"].forEach((T) => {
|
|
233
|
+
o[`${w}-${T}`] = typeof l == "number" ? `${l}px` : l;
|
|
280
234
|
});
|
|
281
235
|
}
|
|
282
|
-
typeof r == "number" || typeof r == "string" ?
|
|
283
|
-
r[
|
|
284
|
-
}) :
|
|
285
|
-
}),
|
|
236
|
+
typeof r == "number" || typeof r == "string" ? u(r) : typeof r == "object" ? ["top", "right", "bottom", "left"].forEach((l) => {
|
|
237
|
+
r[l] === void 0 ? o[`${w}-${l}`] = m : o[`${w}-${l}`] = typeof r[l] == "number" ? `${r[l]}px` : r[l];
|
|
238
|
+
}) : u(m);
|
|
239
|
+
}), o;
|
|
286
240
|
}
|
|
287
|
-
var
|
|
288
|
-
let { invert:
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
return (
|
|
241
|
+
var Oe = re(function(a, t) {
|
|
242
|
+
let { invert: o, position: r = "bottom-right", hotkey: i = ["altKey", "KeyT"], expand: d, closeButton: w, className: m, offset: u, mobileOffset: l, theme: T = "light", richColors: _, duration: tt, style: e, visibleToasts: D = Pe, toastOptions: h, dir: j = Wt(), gap: it = $e, loadingIcon: K, icons: Y, containerAriaLabel: yt = "Notifications", pauseWhenPageIsHidden: et } = a, [S, at] = s.useState([]), lt = s.useMemo(() => Array.from(new Set([r].concat(S.filter((f) => f.position).map((f) => f.position)))), [S, r]), [dt, bt] = s.useState([]), [ct, P] = s.useState(!1), [ut, X] = s.useState(!1), [mt, H] = s.useState(T !== "system" ? T : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), R = s.useRef(null), pt = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), c = s.useRef(null), E = s.useRef(!1), vt = s.useCallback((f) => {
|
|
243
|
+
at((g) => {
|
|
244
|
+
var v;
|
|
245
|
+
return (v = g.find((N) => N.id === f.id)) != null && v.delete || k.dismiss(f.id), g.filter(({ id: N }) => N !== f.id);
|
|
292
246
|
});
|
|
293
247
|
}, []);
|
|
294
|
-
return
|
|
295
|
-
if (
|
|
296
|
-
|
|
248
|
+
return s.useEffect(() => k.subscribe((f) => {
|
|
249
|
+
if (f.dismiss) {
|
|
250
|
+
at((g) => g.map((v) => v.id === f.id ? { ...v, delete: !0 } : v));
|
|
297
251
|
return;
|
|
298
252
|
}
|
|
299
253
|
setTimeout(() => {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
let
|
|
303
|
-
return
|
|
254
|
+
ie.flushSync(() => {
|
|
255
|
+
at((g) => {
|
|
256
|
+
let v = g.findIndex((N) => N.id === f.id);
|
|
257
|
+
return v !== -1 ? [...g.slice(0, v), { ...g[v], ...f }, ...g.slice(v + 1)] : [f, ...g];
|
|
304
258
|
});
|
|
305
259
|
});
|
|
306
260
|
});
|
|
307
|
-
}), []),
|
|
308
|
-
if (
|
|
309
|
-
|
|
261
|
+
}), []), s.useEffect(() => {
|
|
262
|
+
if (T !== "system") {
|
|
263
|
+
H(T);
|
|
310
264
|
return;
|
|
311
265
|
}
|
|
312
|
-
if (
|
|
313
|
-
let
|
|
266
|
+
if (T === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? H("dark") : H("light")), typeof window > "u") return;
|
|
267
|
+
let f = window.matchMedia("(prefers-color-scheme: dark)");
|
|
314
268
|
try {
|
|
315
|
-
|
|
316
|
-
|
|
269
|
+
f.addEventListener("change", ({ matches: g }) => {
|
|
270
|
+
H(g ? "dark" : "light");
|
|
317
271
|
});
|
|
318
|
-
} catch
|
|
319
|
-
|
|
272
|
+
} catch {
|
|
273
|
+
f.addListener(({ matches: v }) => {
|
|
320
274
|
try {
|
|
321
|
-
|
|
322
|
-
} catch (
|
|
323
|
-
console.error(
|
|
275
|
+
H(v ? "dark" : "light");
|
|
276
|
+
} catch (N) {
|
|
277
|
+
console.error(N);
|
|
324
278
|
}
|
|
325
279
|
});
|
|
326
280
|
}
|
|
327
|
-
}, [
|
|
328
|
-
|
|
329
|
-
}, [
|
|
330
|
-
let
|
|
331
|
-
var
|
|
332
|
-
|
|
281
|
+
}, [T]), s.useEffect(() => {
|
|
282
|
+
S.length <= 1 && P(!1);
|
|
283
|
+
}, [S]), s.useEffect(() => {
|
|
284
|
+
let f = (g) => {
|
|
285
|
+
var v, N;
|
|
286
|
+
i.every((Z) => g[Z] || g.code === Z) && (P(!0), (v = R.current) == null || v.focus()), g.code === "Escape" && (document.activeElement === R.current || (N = R.current) != null && N.contains(document.activeElement)) && P(!1);
|
|
333
287
|
};
|
|
334
|
-
return document.addEventListener("keydown",
|
|
335
|
-
}, [
|
|
336
|
-
if (
|
|
337
|
-
c.current && (c.current.focus({ preventScroll: !0 }), c.current = null,
|
|
288
|
+
return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
|
|
289
|
+
}, [i]), s.useEffect(() => {
|
|
290
|
+
if (R.current) return () => {
|
|
291
|
+
c.current && (c.current.focus({ preventScroll: !0 }), c.current = null, E.current = !1);
|
|
338
292
|
};
|
|
339
|
-
}, [
|
|
340
|
-
var
|
|
341
|
-
let [
|
|
342
|
-
return
|
|
343
|
-
|
|
344
|
-
}, onFocus: (
|
|
345
|
-
|
|
346
|
-
}, onMouseEnter: () =>
|
|
347
|
-
|
|
348
|
-
}, onDragEnd: () =>
|
|
349
|
-
|
|
350
|
-
}, onPointerUp: () =>
|
|
351
|
-
var
|
|
352
|
-
return
|
|
293
|
+
}, [R.current]), s.createElement("section", { ref: t, "aria-label": `${yt} ${pt}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, lt.map((f, g) => {
|
|
294
|
+
var v;
|
|
295
|
+
let [N, Z] = f.split("-");
|
|
296
|
+
return S.length ? s.createElement("ol", { key: f, dir: j === "auto" ? Wt() : j, tabIndex: -1, ref: R, className: m, "data-sonner-toaster": !0, "data-theme": mt, "data-y-position": N, "data-lifted": ct && S.length > 1 && !d, "data-x-position": Z, style: { "--front-toast-height": `${((v = dt[0]) == null ? void 0 : v.height) || 0}px`, "--width": `${Ye}px`, "--gap": `${it}px`, ...e, ...Fe(u, l) }, onBlur: (x) => {
|
|
297
|
+
E.current && !x.currentTarget.contains(x.relatedTarget) && (E.current = !1, c.current && (c.current.focus({ preventScroll: !0 }), c.current = null));
|
|
298
|
+
}, onFocus: (x) => {
|
|
299
|
+
x.target instanceof HTMLElement && x.target.dataset.dismissible === "false" || E.current || (E.current = !0, c.current = x.relatedTarget);
|
|
300
|
+
}, onMouseEnter: () => P(!0), onMouseMove: () => P(!0), onMouseLeave: () => {
|
|
301
|
+
ut || P(!1);
|
|
302
|
+
}, onDragEnd: () => P(!1), onPointerDown: (x) => {
|
|
303
|
+
x.target instanceof HTMLElement && x.target.dataset.dismissible === "false" || X(!0);
|
|
304
|
+
}, onPointerUp: () => X(!1) }, S.filter((x) => !x.position && g === 0 || x.position === f).map((x, wt) => {
|
|
305
|
+
var st, ft;
|
|
306
|
+
return s.createElement(Ve, { key: x.id, icons: Y, index: wt, toast: x, defaultRichColors: _, duration: (st = h?.duration) != null ? st : tt, className: h?.className, descriptionClassName: h?.descriptionClassName, invert: o, visibleToasts: D, closeButton: (ft = h?.closeButton) != null ? ft : w, interacting: ut, position: f, style: h?.style, unstyled: h?.unstyled, classNames: h?.classNames, cancelButtonStyle: h?.cancelButtonStyle, actionButtonStyle: h?.actionButtonStyle, removeToast: vt, toasts: S.filter((rt) => rt.position == x.position), heights: dt.filter((rt) => rt.position == x.position), setHeights: bt, expandByDefault: d, gap: it, loadingIcon: K, expanded: ct, pauseWhenPageIsHidden: et, swipeDirections: a.swipeDirections });
|
|
353
307
|
})) : null;
|
|
354
308
|
}));
|
|
355
309
|
});
|
|
356
|
-
const
|
|
357
|
-
const
|
|
358
|
-
if (!
|
|
310
|
+
const Vt = oe(null), Ue = ({ children: a, value: t }) => /* @__PURE__ */ y(Vt.Provider, { value: t, children: a }), Q = () => {
|
|
311
|
+
const a = ne(Vt);
|
|
312
|
+
if (!a)
|
|
359
313
|
throw new Error("useToastContext must be used within a ToastProvider");
|
|
360
|
-
return
|
|
361
|
-
},
|
|
314
|
+
return a;
|
|
315
|
+
}, Lt = (a) => ({
|
|
362
316
|
low: "ghost",
|
|
363
317
|
medium: "secondary",
|
|
364
318
|
high: "primary"
|
|
365
|
-
})[
|
|
366
|
-
function
|
|
367
|
-
const { size:
|
|
368
|
-
status: ["medium", "high"].includes(r
|
|
319
|
+
})[a ?? "low"];
|
|
320
|
+
function Ft(a, t) {
|
|
321
|
+
const { size: o, focus: r, status: i } = a, w = {
|
|
322
|
+
status: ["medium", "high"].includes(r ?? "") && o === "sm" ? i : "default"
|
|
369
323
|
};
|
|
370
324
|
if (t === "close")
|
|
371
|
-
return
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
325
|
+
return {
|
|
326
|
+
...w,
|
|
327
|
+
size: o === "lg" ? "xl" : "lg",
|
|
328
|
+
variant: o === "sm" ? Lt(r) : "text"
|
|
329
|
+
};
|
|
330
|
+
const m = {
|
|
331
|
+
sm: Lt(r),
|
|
377
332
|
md: "link",
|
|
378
333
|
lg: t === "primary" ? r === "high" ? "secondary" : "outline" : "text"
|
|
379
334
|
};
|
|
380
|
-
return
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
335
|
+
return {
|
|
336
|
+
...w,
|
|
337
|
+
size: o === "lg" ? "md" : "lg",
|
|
338
|
+
variant: m[o ?? "sm"]
|
|
339
|
+
};
|
|
384
340
|
}
|
|
385
|
-
const
|
|
341
|
+
const _e = U({
|
|
386
342
|
variants: {
|
|
387
343
|
status: {
|
|
388
344
|
default: "",
|
|
@@ -397,9 +353,9 @@ const ea = K({
|
|
|
397
353
|
high: ""
|
|
398
354
|
},
|
|
399
355
|
size: {
|
|
400
|
-
sm: "h-
|
|
356
|
+
sm: "h-[2.375rem] w-[2.375rem] rounded-l-none p-2.5",
|
|
401
357
|
md: "",
|
|
402
|
-
lg: ""
|
|
358
|
+
lg: "p-3.5"
|
|
403
359
|
}
|
|
404
360
|
},
|
|
405
361
|
compoundVariants: [
|
|
@@ -408,6 +364,12 @@ const ea = K({
|
|
|
408
364
|
focus: "medium",
|
|
409
365
|
className: "text-primary-fg"
|
|
410
366
|
},
|
|
367
|
+
{
|
|
368
|
+
size: "sm",
|
|
369
|
+
focus: "high",
|
|
370
|
+
status: "default",
|
|
371
|
+
className: "bg-status-neutral hover:bg-status-neutral-hover"
|
|
372
|
+
},
|
|
411
373
|
{
|
|
412
374
|
size: ["md", "lg"],
|
|
413
375
|
focus: "high",
|
|
@@ -421,56 +383,91 @@ const ea = K({
|
|
|
421
383
|
className: "text-white/70 hover:text-white"
|
|
422
384
|
}
|
|
423
385
|
]
|
|
424
|
-
}),
|
|
425
|
-
const t =
|
|
386
|
+
}), St = ({ className: a }) => {
|
|
387
|
+
const t = Q();
|
|
426
388
|
if (!t)
|
|
427
389
|
throw new Error("ToastCloseButton must be used within Toast");
|
|
428
|
-
const
|
|
390
|
+
const o = Ft(t, "close");
|
|
429
391
|
return /* @__PURE__ */ y(
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
392
|
+
le,
|
|
393
|
+
{
|
|
394
|
+
...o,
|
|
395
|
+
icon: de,
|
|
433
396
|
onClick: t.onClose,
|
|
434
|
-
className:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
)
|
|
442
|
-
})
|
|
397
|
+
className: _e({
|
|
398
|
+
size: t.size,
|
|
399
|
+
focus: t.focus,
|
|
400
|
+
status: t.status,
|
|
401
|
+
className: a
|
|
402
|
+
})
|
|
403
|
+
}
|
|
443
404
|
);
|
|
444
|
-
},
|
|
405
|
+
}, Ke = U({
|
|
406
|
+
slots: {
|
|
407
|
+
contentWrapper: "flex w-full flex-col gap-4",
|
|
408
|
+
topZone: "flex gap-3",
|
|
409
|
+
textWrapper: "flex flex-grow flex-col gap-1",
|
|
410
|
+
actionsWrapper: "flex w-full justify-end gap-2"
|
|
411
|
+
}
|
|
412
|
+
}), Xe = ({ titleIcon: a, ...t }) => {
|
|
413
|
+
const { titleText: o, close: r, descriptionText: i } = t, { contentWrapper: d, topZone: w, textWrapper: m, actionsWrapper: u } = Ke(), l = Q();
|
|
414
|
+
return /* @__PURE__ */ y(nt, { children: /* @__PURE__ */ C("div", { className: d(), children: [
|
|
415
|
+
/* @__PURE__ */ C("div", { className: w(), children: [
|
|
416
|
+
a,
|
|
417
|
+
/* @__PURE__ */ C("div", { className: m(), children: [
|
|
418
|
+
/* @__PURE__ */ y("span", { className: o(), children: l.title }),
|
|
419
|
+
l.description && /* @__PURE__ */ y(ce, { className: i(), children: l.description })
|
|
420
|
+
] }),
|
|
421
|
+
l.closeAction && /* @__PURE__ */ y(St, { className: ue("shrink-0", r()) })
|
|
422
|
+
] }),
|
|
423
|
+
l.secondaryAction || l.primaryAction ? /* @__PURE__ */ C("div", { className: u(), children: [
|
|
424
|
+
l.secondaryAction,
|
|
425
|
+
l.primaryAction
|
|
426
|
+
] }) : null
|
|
427
|
+
] }) });
|
|
428
|
+
}, Ze = U({
|
|
429
|
+
slots: {
|
|
430
|
+
contentWrapper: "flex flex-grow gap-3 py-2.5 pr-2.5"
|
|
431
|
+
}
|
|
432
|
+
}), qe = ({ titleIcon: a, ...t }) => {
|
|
433
|
+
const { titleText: o, close: r } = t, { contentWrapper: i } = Ze(), d = Q();
|
|
434
|
+
return /* @__PURE__ */ C(nt, { children: [
|
|
435
|
+
/* @__PURE__ */ C("div", { className: i(), children: [
|
|
436
|
+
a,
|
|
437
|
+
/* @__PURE__ */ y("span", { className: o(), children: d.title })
|
|
438
|
+
] }),
|
|
439
|
+
d.primaryAction && d.primaryAction,
|
|
440
|
+
d.closeAction && /* @__PURE__ */ y(St, { className: r() })
|
|
441
|
+
] });
|
|
442
|
+
}, Ge = U({
|
|
445
443
|
slots: {
|
|
446
444
|
contentWrapper: "flex min-w-0 flex-grow items-center gap-2 pr-3",
|
|
447
445
|
titleWrapper: "min-w-0 truncate"
|
|
448
446
|
}
|
|
449
|
-
}),
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
/* @__PURE__ */ y("div", { className: Gt(n(), l()), children: /* @__PURE__ */ y("span", { children: d.title }) })
|
|
447
|
+
}), Je = ({ titleIcon: a, ...t }) => {
|
|
448
|
+
const { titleText: o, close: r, divider: i } = t, { contentWrapper: d, titleWrapper: w } = Ge(), m = Q();
|
|
449
|
+
return /* @__PURE__ */ C(nt, { children: [
|
|
450
|
+
/* @__PURE__ */ C("div", { className: d(), children: [
|
|
451
|
+
a,
|
|
452
|
+
/* @__PURE__ */ y("div", { className: me(w(), o()), children: /* @__PURE__ */ y("span", { children: m.title }) })
|
|
456
453
|
] }),
|
|
457
|
-
|
|
458
|
-
/* @__PURE__ */ y(
|
|
459
|
-
|
|
454
|
+
m.primaryAction && /* @__PURE__ */ C(nt, { children: [
|
|
455
|
+
/* @__PURE__ */ y("div", { className: i() }),
|
|
456
|
+
m.primaryAction
|
|
460
457
|
] }),
|
|
461
|
-
|
|
462
|
-
/* @__PURE__ */ y(
|
|
463
|
-
/* @__PURE__ */ y(
|
|
458
|
+
m.closeAction && /* @__PURE__ */ C(nt, { children: [
|
|
459
|
+
/* @__PURE__ */ y("div", { className: i() }),
|
|
460
|
+
/* @__PURE__ */ y(St, { className: r() })
|
|
464
461
|
] })
|
|
465
462
|
] });
|
|
466
|
-
},
|
|
463
|
+
}, Qe = U({
|
|
467
464
|
slots: {
|
|
468
465
|
wrapper: "flex h-5 w-5 items-center justify-center",
|
|
469
466
|
icon: "h-4 w-4 [&>svg]:h-4 [&>svg]:w-4"
|
|
470
467
|
},
|
|
471
468
|
variants: {
|
|
472
469
|
status: {
|
|
473
|
-
default: { wrapper: "text-status-
|
|
470
|
+
default: { wrapper: "text-status-neutral" },
|
|
474
471
|
info: { wrapper: "text-status-info" },
|
|
475
472
|
success: { wrapper: "text-status-success" },
|
|
476
473
|
warning: { wrapper: "text-status-warning" },
|
|
@@ -489,73 +486,33 @@ const ea = K({
|
|
|
489
486
|
class: { wrapper: "text-white" }
|
|
490
487
|
}
|
|
491
488
|
]
|
|
492
|
-
}),
|
|
493
|
-
|
|
494
|
-
const t = et();
|
|
489
|
+
}), ta = ({ icon: a }) => {
|
|
490
|
+
const t = Q();
|
|
495
491
|
if (!t)
|
|
496
492
|
throw new Error("ToastIcon must be used within Toast");
|
|
497
|
-
const { wrapper:
|
|
498
|
-
return /* @__PURE__ */ y("div", { className:
|
|
499
|
-
},
|
|
500
|
-
default:
|
|
501
|
-
info:
|
|
502
|
-
success:
|
|
503
|
-
warning:
|
|
504
|
-
error:
|
|
505
|
-
},
|
|
506
|
-
slots: {
|
|
507
|
-
contentWrapper: "flex flex-grow gap-3 py-2.5 pr-2.5"
|
|
508
|
-
}
|
|
509
|
-
}), la = (s) => {
|
|
510
|
-
var r = s, { titleIcon: e } = r, t = tt(r, ["titleIcon"]);
|
|
511
|
-
const { titleText: l, close: u } = t, { contentWrapper: m } = ia(), f = et();
|
|
512
|
-
return /* @__PURE__ */ D(lt, { children: [
|
|
513
|
-
/* @__PURE__ */ D("div", { className: m(), children: [
|
|
514
|
-
e,
|
|
515
|
-
/* @__PURE__ */ y("span", { className: l(), children: f.title })
|
|
516
|
-
] }),
|
|
517
|
-
f.primaryAction && f.primaryAction,
|
|
518
|
-
f.closeAction && /* @__PURE__ */ y(jt, { className: u() })
|
|
519
|
-
] });
|
|
520
|
-
}, da = K({
|
|
521
|
-
slots: {
|
|
522
|
-
contentWrapper: "flex w-full flex-col gap-4",
|
|
523
|
-
topZone: "flex gap-3",
|
|
524
|
-
textWrapper: "flex flex-grow flex-col gap-1",
|
|
525
|
-
actionsWrapper: "flex w-full justify-end gap-2"
|
|
526
|
-
}
|
|
527
|
-
}), ca = (s) => {
|
|
528
|
-
var r = s, { titleIcon: e } = r, t = tt(r, ["titleIcon"]);
|
|
529
|
-
const { titleText: l, close: u, descriptionText: m } = t, { contentWrapper: f, topZone: n, textWrapper: d, actionsWrapper: N } = da(), E = et();
|
|
530
|
-
return /* @__PURE__ */ y(lt, { children: /* @__PURE__ */ D("div", { className: f(), children: [
|
|
531
|
-
/* @__PURE__ */ D("div", { className: n(), children: [
|
|
532
|
-
e,
|
|
533
|
-
/* @__PURE__ */ D("div", { className: d(), children: [
|
|
534
|
-
/* @__PURE__ */ y("span", { className: l(), children: E.title }),
|
|
535
|
-
E.description && /* @__PURE__ */ y("span", { className: m(), children: E.description })
|
|
536
|
-
] }),
|
|
537
|
-
E.closeAction && /* @__PURE__ */ y(jt, { className: u() })
|
|
538
|
-
] }),
|
|
539
|
-
E.secondaryAction || E.primaryAction ? /* @__PURE__ */ D("div", { className: N(), children: [
|
|
540
|
-
E.secondaryAction,
|
|
541
|
-
E.primaryAction
|
|
542
|
-
] }) : null
|
|
543
|
-
] }) });
|
|
544
|
-
}, ua = K({
|
|
493
|
+
const { wrapper: o, icon: r } = Qe({ focus: t.focus, status: t.status }), i = ea[t.status ?? "default"], d = () => a ? /* @__PURE__ */ y("div", { className: r(), children: a }) : /* @__PURE__ */ y(pe, { icon: i, className: r() });
|
|
494
|
+
return /* @__PURE__ */ y("div", { className: o(), children: d() });
|
|
495
|
+
}, ea = {
|
|
496
|
+
default: Yt,
|
|
497
|
+
info: ge,
|
|
498
|
+
success: he,
|
|
499
|
+
warning: ye,
|
|
500
|
+
error: Yt
|
|
501
|
+
}, aa = U({
|
|
545
502
|
slots: {
|
|
546
503
|
/**
|
|
547
504
|
* Ширина уведомления задается в переменной --width.
|
|
548
505
|
* Библиотека sonner не поддерживает динамические ширины и использует эту переменную для вычисления позиции уведомления.
|
|
549
506
|
*/
|
|
550
|
-
wrapper: "inline-flex w-[--width] items-start
|
|
507
|
+
wrapper: "inline-flex w-[--width] items-start rounded-lg border border-solid border-primary-border",
|
|
551
508
|
text: "flex min-w-0 flex-auto flex-col justify-center gap-1 truncate pr-3",
|
|
552
509
|
titleText: "min-w-0 text-sm font-semibold text-primary-fg",
|
|
553
|
-
descriptionText: "inline-block
|
|
510
|
+
descriptionText: "inline-block font-medium",
|
|
554
511
|
contentWrapper: "flex items-center",
|
|
555
512
|
content: "flex",
|
|
556
513
|
actions: "flex items-center justify-center gap-2",
|
|
557
514
|
close: "",
|
|
558
|
-
divider: ""
|
|
515
|
+
divider: "shrink-0 self-stretch border-l border-primary-border"
|
|
559
516
|
},
|
|
560
517
|
variants: {
|
|
561
518
|
status: {
|
|
@@ -580,31 +537,34 @@ const ea = K({
|
|
|
580
537
|
wrapper: "bg-secondary-bg"
|
|
581
538
|
},
|
|
582
539
|
medium: {
|
|
583
|
-
wrapper: "bg-
|
|
540
|
+
wrapper: "bg-status-neutral-bg"
|
|
584
541
|
},
|
|
585
542
|
high: {
|
|
586
543
|
titleText: "text-white",
|
|
587
544
|
descriptionText: "text-white/70",
|
|
588
|
-
divider: "
|
|
545
|
+
divider: "border-white",
|
|
546
|
+
wrapper: "border-none"
|
|
589
547
|
}
|
|
590
548
|
},
|
|
591
549
|
size: {
|
|
592
550
|
sm: {
|
|
593
|
-
wrapper: "h-10 items-center pl-3 shadow-sm",
|
|
551
|
+
wrapper: "h-10 items-center pl-3 shadow-soft-sm",
|
|
594
552
|
titleText: "text-xs font-medium leading-5",
|
|
595
553
|
contentWrapper: "gap-2"
|
|
596
554
|
},
|
|
597
555
|
md: {
|
|
598
|
-
wrapper: "py-1.5 pl-4 pr-1.5 shadow-md",
|
|
556
|
+
wrapper: "h-[3.25rem] items-center py-1.5 pl-4 pr-1.5 shadow-soft-md",
|
|
557
|
+
titleText: "font-medium",
|
|
599
558
|
contentWrapper: "gap-3"
|
|
600
559
|
},
|
|
601
560
|
lg: {
|
|
602
|
-
wrapper: "relative items-start p-4 shadow-lg",
|
|
561
|
+
wrapper: "relative items-start p-4 shadow-soft-lg",
|
|
603
562
|
contentWrapper: "items-start gap-3",
|
|
604
563
|
content: "flex flex-1 flex-col gap-4",
|
|
605
564
|
actions: "justify-end self-stretch",
|
|
606
565
|
close: "mr-[-16px] mt-[-16px]",
|
|
607
|
-
titleText: "text-wrap"
|
|
566
|
+
titleText: "text-wrap",
|
|
567
|
+
descriptionText: "font-normal"
|
|
608
568
|
}
|
|
609
569
|
}
|
|
610
570
|
},
|
|
@@ -619,8 +579,8 @@ const ea = K({
|
|
|
619
579
|
status: "info",
|
|
620
580
|
focus: "medium",
|
|
621
581
|
class: {
|
|
622
|
-
divider: "
|
|
623
|
-
wrapper: "border-status-info
|
|
582
|
+
divider: "border-status-info-secondary-border",
|
|
583
|
+
wrapper: "border-status-info-secondary-border bg-status-info-bg",
|
|
624
584
|
titleText: "text-status-info"
|
|
625
585
|
}
|
|
626
586
|
},
|
|
@@ -628,8 +588,8 @@ const ea = K({
|
|
|
628
588
|
status: "success",
|
|
629
589
|
focus: "medium",
|
|
630
590
|
class: {
|
|
631
|
-
divider: "
|
|
632
|
-
wrapper: "border-status-success
|
|
591
|
+
divider: "border-status-success-secondary-border",
|
|
592
|
+
wrapper: "border-status-success-secondary-border bg-status-success-bg",
|
|
633
593
|
titleText: "text-status-success"
|
|
634
594
|
}
|
|
635
595
|
},
|
|
@@ -637,8 +597,8 @@ const ea = K({
|
|
|
637
597
|
status: "warning",
|
|
638
598
|
focus: "medium",
|
|
639
599
|
class: {
|
|
640
|
-
divider: "
|
|
641
|
-
wrapper: "border-status-warning
|
|
600
|
+
divider: "border-status-warning-secondary-border",
|
|
601
|
+
wrapper: "border-status-warning-secondary-border bg-status-warning-bg",
|
|
642
602
|
titleText: "text-status-warning"
|
|
643
603
|
}
|
|
644
604
|
},
|
|
@@ -646,8 +606,8 @@ const ea = K({
|
|
|
646
606
|
status: "error",
|
|
647
607
|
focus: "medium",
|
|
648
608
|
class: {
|
|
649
|
-
divider: "
|
|
650
|
-
wrapper: "border-status-error
|
|
609
|
+
divider: "border-status-error-secondary-border",
|
|
610
|
+
wrapper: "border-status-error-secondary-border bg-status-error-bg",
|
|
651
611
|
titleText: "text-status-error"
|
|
652
612
|
}
|
|
653
613
|
},
|
|
@@ -659,68 +619,75 @@ const ea = K({
|
|
|
659
619
|
wrapper: "bg-primary",
|
|
660
620
|
titleText: "text-primary-bg",
|
|
661
621
|
descriptionText: "text-primary-bg/70",
|
|
662
|
-
divider: "
|
|
622
|
+
divider: "border-primary-border"
|
|
663
623
|
}
|
|
664
624
|
},
|
|
665
625
|
{
|
|
666
626
|
status: "info",
|
|
667
627
|
focus: "high",
|
|
668
628
|
class: {
|
|
669
|
-
wrapper: "bg-status-info"
|
|
629
|
+
wrapper: "bg-status-info",
|
|
630
|
+
divider: "border-status-info-secondary-border"
|
|
670
631
|
}
|
|
671
632
|
},
|
|
672
633
|
{
|
|
673
634
|
status: "success",
|
|
674
635
|
focus: "high",
|
|
675
636
|
class: {
|
|
676
|
-
wrapper: "bg-status-success"
|
|
637
|
+
wrapper: "bg-status-success",
|
|
638
|
+
divider: "border-status-success-secondary-border"
|
|
677
639
|
}
|
|
678
640
|
},
|
|
679
641
|
{
|
|
680
642
|
status: "warning",
|
|
681
643
|
focus: "high",
|
|
682
644
|
class: {
|
|
683
|
-
wrapper: "bg-status-warning"
|
|
645
|
+
wrapper: "bg-status-warning",
|
|
646
|
+
divider: "border-status-warning-secondary-border"
|
|
684
647
|
}
|
|
685
648
|
},
|
|
686
649
|
{
|
|
687
650
|
status: "error",
|
|
688
651
|
focus: "high",
|
|
689
652
|
class: {
|
|
690
|
-
wrapper: "bg-status-error"
|
|
653
|
+
wrapper: "bg-status-error",
|
|
654
|
+
divider: "border-status-error-secondary-border"
|
|
691
655
|
}
|
|
692
656
|
}
|
|
693
657
|
]
|
|
694
|
-
}),
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}
|
|
658
|
+
}), Ot = s.forwardRef(
|
|
659
|
+
({ closeAction: a = !0, id: t, onClose: o, ...r }, i) => {
|
|
660
|
+
const { wrapper: d, titleText: w, descriptionText: m, actions: u, close: l, divider: T } = aa({
|
|
661
|
+
status: r.status,
|
|
662
|
+
focus: r.focus,
|
|
663
|
+
size: r.size
|
|
664
|
+
}), _ = r.icon ? /* @__PURE__ */ y(ta, { icon: r.icon }) : null, tt = {
|
|
665
|
+
id: t,
|
|
666
|
+
status: r.status,
|
|
667
|
+
focus: r.focus,
|
|
668
|
+
size: r.size,
|
|
669
|
+
title: r.title,
|
|
670
|
+
description: r.description,
|
|
671
|
+
icon: r.icon,
|
|
672
|
+
primaryAction: r.primaryAction,
|
|
673
|
+
secondaryAction: r.secondaryAction,
|
|
674
|
+
closeAction: a,
|
|
675
|
+
onClose: o
|
|
676
|
+
}, e = {
|
|
677
|
+
titleText: w,
|
|
678
|
+
descriptionText: m,
|
|
679
|
+
actions: u,
|
|
680
|
+
close: l,
|
|
681
|
+
divider: T,
|
|
682
|
+
titleIcon: _
|
|
683
|
+
};
|
|
684
|
+
let D = null;
|
|
685
|
+
const h = r.size || "md";
|
|
686
|
+
return h === "sm" ? D = /* @__PURE__ */ y(Je, { ...e }) : h === "md" ? D = /* @__PURE__ */ y(qe, { ...e }) : h === "lg" && (D = /* @__PURE__ */ y(Xe, { ...e })), /* @__PURE__ */ y(Ue, { value: tt, children: /* @__PURE__ */ y("div", { ref: i, className: d(), children: D }) });
|
|
687
|
+
}
|
|
688
|
+
);
|
|
689
|
+
Ot.displayName = "Toast";
|
|
690
|
+
const sa = U({
|
|
724
691
|
variants: {
|
|
725
692
|
actionType: {
|
|
726
693
|
primary: "",
|
|
@@ -742,8 +709,8 @@ const ea = K({
|
|
|
742
709
|
high: ""
|
|
743
710
|
},
|
|
744
711
|
size: {
|
|
745
|
-
sm: "h-full rounded-none px-3 py-3 text-xs font-semibold leading-none",
|
|
746
|
-
md: "
|
|
712
|
+
sm: "h-full rounded-none px-3 py-3 text-xs font-semibold leading-none focus-visible:z-10",
|
|
713
|
+
md: "px-3 py-2 text-sm",
|
|
747
714
|
lg: ""
|
|
748
715
|
}
|
|
749
716
|
},
|
|
@@ -758,6 +725,13 @@ const ea = K({
|
|
|
758
725
|
focus: "medium",
|
|
759
726
|
className: "text-primary-fg"
|
|
760
727
|
},
|
|
728
|
+
{
|
|
729
|
+
actionType: "primary",
|
|
730
|
+
status: "default",
|
|
731
|
+
size: "sm",
|
|
732
|
+
focus: "high",
|
|
733
|
+
className: "bg-status-neutral hover:bg-status-neutral-hover"
|
|
734
|
+
},
|
|
761
735
|
// Medium size
|
|
762
736
|
{
|
|
763
737
|
actionType: "primary",
|
|
@@ -789,10 +763,17 @@ const ea = K({
|
|
|
789
763
|
{
|
|
790
764
|
actionType: "primary",
|
|
791
765
|
size: "lg",
|
|
792
|
-
focus:
|
|
766
|
+
focus: "high",
|
|
793
767
|
status: "default",
|
|
794
768
|
className: "bg-primary-bg"
|
|
795
769
|
},
|
|
770
|
+
{
|
|
771
|
+
actionType: "primary",
|
|
772
|
+
size: "lg",
|
|
773
|
+
focus: "medium",
|
|
774
|
+
status: "default",
|
|
775
|
+
className: "bg-status-neutral"
|
|
776
|
+
},
|
|
796
777
|
{
|
|
797
778
|
actionType: "secondary",
|
|
798
779
|
size: "lg",
|
|
@@ -820,69 +801,77 @@ const ea = K({
|
|
|
820
801
|
className: "text-white/70 hover:text-white"
|
|
821
802
|
}
|
|
822
803
|
]
|
|
823
|
-
}),
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
if (!s)
|
|
804
|
+
}), Ht = ({ children: a, onClick: t, className: o }) => {
|
|
805
|
+
const r = Q();
|
|
806
|
+
if (!r)
|
|
827
807
|
throw new Error("ToastAction must be used within Toast");
|
|
828
|
-
const
|
|
829
|
-
if (
|
|
830
|
-
const
|
|
831
|
-
return /* @__PURE__ */ y(
|
|
832
|
-
|
|
833
|
-
|
|
808
|
+
const i = r.primaryAction?.props.children === a ? "primary" : "secondary";
|
|
809
|
+
if (i === "secondary" && ["sm", "md"].includes(r.size ?? "")) return null;
|
|
810
|
+
const d = Ft(r, i);
|
|
811
|
+
return i === "primary" && r.size === "lg" && r.focus === "medium" && (d.status = r.status, d.variant = "primary"), /* @__PURE__ */ y(
|
|
812
|
+
fe,
|
|
813
|
+
{
|
|
834
814
|
onClick: t,
|
|
835
|
-
className:
|
|
836
|
-
actionType:
|
|
837
|
-
size:
|
|
838
|
-
focus:
|
|
839
|
-
status:
|
|
815
|
+
className: sa({
|
|
816
|
+
actionType: i,
|
|
817
|
+
size: r.size,
|
|
818
|
+
focus: r.focus,
|
|
819
|
+
status: r.status,
|
|
820
|
+
className: o
|
|
840
821
|
}),
|
|
841
|
-
|
|
842
|
-
|
|
822
|
+
...d,
|
|
823
|
+
children: a
|
|
824
|
+
}
|
|
843
825
|
);
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
826
|
+
}, ra = "ui-kit", ba = Oe, va = (a, t = {}) => {
|
|
827
|
+
const o = {
|
|
828
|
+
onDismiss: t.onDismiss,
|
|
829
|
+
onAutoClose: t.onAutoClose,
|
|
830
|
+
duration: t.duration,
|
|
831
|
+
dismissible: t.dismissible,
|
|
832
|
+
position: t.position
|
|
833
|
+
};
|
|
834
|
+
return t.id != null && (o.id = t.id), O.custom((r) => /* @__PURE__ */ y("div", { className: ra, children: /* @__PURE__ */ y(
|
|
835
|
+
Ot,
|
|
836
|
+
{
|
|
837
|
+
title: a,
|
|
838
|
+
...t,
|
|
839
|
+
primaryAction: t.primaryAction ? /* @__PURE__ */ C(
|
|
840
|
+
Ht,
|
|
852
841
|
{
|
|
853
842
|
onClick: () => {
|
|
854
|
-
|
|
855
|
-
(r = t.primaryAction) == null || r.onClick(), wt.dismiss(s);
|
|
843
|
+
t.primaryAction?.onClick(), O.dismiss(r);
|
|
856
844
|
},
|
|
857
|
-
children:
|
|
845
|
+
children: [
|
|
846
|
+
t.primaryAction.title,
|
|
847
|
+
t.primaryAction.icon
|
|
848
|
+
]
|
|
858
849
|
}
|
|
859
850
|
) : void 0,
|
|
860
|
-
secondaryAction: t.secondaryAction ? /* @__PURE__ */
|
|
861
|
-
|
|
851
|
+
secondaryAction: t.secondaryAction ? /* @__PURE__ */ C(
|
|
852
|
+
Ht,
|
|
862
853
|
{
|
|
863
854
|
onClick: () => {
|
|
864
|
-
|
|
865
|
-
(r = t.secondaryAction) == null || r.onClick(), wt.dismiss(s);
|
|
855
|
+
t.secondaryAction?.onClick(), O.dismiss(r);
|
|
866
856
|
},
|
|
867
|
-
children:
|
|
857
|
+
children: [
|
|
858
|
+
t.secondaryAction.title,
|
|
859
|
+
t.secondaryAction.icon
|
|
860
|
+
]
|
|
868
861
|
}
|
|
869
862
|
) : void 0,
|
|
870
863
|
onClose: () => {
|
|
871
|
-
|
|
872
|
-
t.dismissible !== !1 && (wt.dismiss(s), (r = t.onDismiss) == null || r.call(t));
|
|
864
|
+
t.dismissible !== !1 && (O.dismiss(r), t.onDismiss?.());
|
|
873
865
|
}
|
|
874
|
-
}
|
|
875
|
-
) }),
|
|
876
|
-
|
|
877
|
-
onDismiss: t.onDismiss,
|
|
878
|
-
onAutoClose: t.onAutoClose,
|
|
879
|
-
duration: t.duration,
|
|
880
|
-
dismissible: t.dismissible,
|
|
881
|
-
position: t.position
|
|
882
|
-
}
|
|
883
|
-
);
|
|
866
|
+
}
|
|
867
|
+
) }), o);
|
|
868
|
+
}, wa = O.dismiss, xa = (a, t = {}) => O.custom((o) => a({ id: o, toast: O }), t);
|
|
884
869
|
export {
|
|
885
|
-
|
|
886
|
-
|
|
870
|
+
Ot as Toast,
|
|
871
|
+
Ht as ToastAction,
|
|
872
|
+
ba as Toaster,
|
|
873
|
+
xa as customToast,
|
|
874
|
+
wa as dismiss,
|
|
875
|
+
va as toast
|
|
887
876
|
};
|
|
888
877
|
//# sourceMappingURL=toast.js.map
|