@wow-two-beta/ui-vue 0.0.2
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/LICENSE +21 -0
- package/README.md +113 -0
- package/dist/analytics/Analytics.d.ts +50 -0
- package/dist/analytics/AnalyticsEvent.d.ts +49 -0
- package/dist/analytics/AnalyticsProvider.d.ts +37 -0
- package/dist/analytics/ConsoleAnalyticsProvider.d.ts +8 -0
- package/dist/analytics/MemoryAnalyticsProvider.d.ts +19 -0
- package/dist/analytics/index.d.ts +5 -0
- package/dist/analytics/index.js +196 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/auth/AuthBridge.d.ts +30 -0
- package/dist/auth/AuthContext.d.ts +41 -0
- package/dist/auth/AuthProvider.vue.d.ts +33 -0
- package/dist/auth/AuthSession.d.ts +41 -0
- package/dist/auth/BearerStrategy.d.ts +36 -0
- package/dist/auth/CookieStrategy.d.ts +29 -0
- package/dist/auth/RedirectStrategy.d.ts +24 -0
- package/dist/auth/TokenStorage.d.ts +9 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.js +275 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/chunks/Accept-BWpCXDmS.js +35 -0
- package/dist/chunks/Accept-BWpCXDmS.js.map +1 -0
- package/dist/chunks/Align-DqFtCY3a.js +12 -0
- package/dist/chunks/Align-DqFtCY3a.js.map +1 -0
- package/dist/chunks/AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js +53 -0
- package/dist/chunks/AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js.map +1 -0
- package/dist/chunks/Announce.vue_vue_type_script_setup_true_lang-CDTltiIl.js +46 -0
- package/dist/chunks/Announce.vue_vue_type_script_setup_true_lang-CDTltiIl.js.map +1 -0
- package/dist/chunks/ApiError-l0YdcqqV.js +15 -0
- package/dist/chunks/ApiError-l0YdcqqV.js.map +1 -0
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-CkxLllEO.js +996 -0
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-CkxLllEO.js.map +1 -0
- package/dist/chunks/Backdrop.vue_vue_type_script_setup_true_lang-DZUhGY9p.js +78 -0
- package/dist/chunks/Backdrop.vue_vue_type_script_setup_true_lang-DZUhGY9p.js.map +1 -0
- package/dist/chunks/BottomSheet.vue_vue_type_script_setup_true_lang-CmNoI4BE.js +1094 -0
- package/dist/chunks/BottomSheet.vue_vue_type_script_setup_true_lang-CmNoI4BE.js.map +1 -0
- package/dist/chunks/Bytes-7Jxs6Bq6.js +21 -0
- package/dist/chunks/Bytes-7Jxs6Bq6.js.map +1 -0
- package/dist/chunks/ChatComposer.vue_vue_type_script_setup_true_lang-lNcRhKIv.js +12748 -0
- package/dist/chunks/ChatComposer.vue_vue_type_script_setup_true_lang-lNcRhKIv.js.map +1 -0
- package/dist/chunks/Chord-D9Z-j3O0.js +139 -0
- package/dist/chunks/Chord-D9Z-j3O0.js.map +1 -0
- package/dist/chunks/ColorModeContext-Bz6CBL0V.js +21 -0
- package/dist/chunks/ColorModeContext-Bz6CBL0V.js.map +1 -0
- package/dist/chunks/Compare-Du6p-OX1.js +18 -0
- package/dist/chunks/Compare-Du6p-OX1.js.map +1 -0
- package/dist/chunks/ControlGroup.vue_vue_type_script_setup_true_lang-CV8Xstes.js +229 -0
- package/dist/chunks/ControlGroup.vue_vue_type_script_setup_true_lang-CV8Xstes.js.map +1 -0
- package/dist/chunks/CornerPosition-FneGck5D.js +14 -0
- package/dist/chunks/CornerPosition-FneGck5D.js.map +1 -0
- package/dist/chunks/CssExtensions-BzLJG57F.js +161 -0
- package/dist/chunks/CssExtensions-BzLJG57F.js.map +1 -0
- package/dist/chunks/DateExtensions-QahSUlRy.js +282 -0
- package/dist/chunks/DateExtensions-QahSUlRy.js.map +1 -0
- package/dist/chunks/DeepEqual-7lBKnkNS.js +29 -0
- package/dist/chunks/DeepEqual-7lBKnkNS.js.map +1 -0
- package/dist/chunks/DismissableLayer.vue_vue_type_script_setup_true_lang-6nRnzsJW.js +214 -0
- package/dist/chunks/DismissableLayer.vue_vue_type_script_setup_true_lang-6nRnzsJW.js.map +1 -0
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-DvvrJdF0.js +207 -0
- package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-DvvrJdF0.js.map +1 -0
- package/dist/chunks/EmojiCatalog-CR4Lcm43.js +1923 -0
- package/dist/chunks/EmojiCatalog-CR4Lcm43.js.map +1 -0
- package/dist/chunks/Environment-CuQav_mw.js +68 -0
- package/dist/chunks/Environment-CuQav_mw.js.map +1 -0
- package/dist/chunks/Equality-DIQYQysz.js +21 -0
- package/dist/chunks/Equality-DIQYQysz.js.map +1 -0
- package/dist/chunks/ErrorLike-Cfj0lZW3.js +27 -0
- package/dist/chunks/ErrorLike-Cfj0lZW3.js.map +1 -0
- package/dist/chunks/ErrorMessage-Cqt7WaFn.js +26 -0
- package/dist/chunks/ErrorMessage-Cqt7WaFn.js.map +1 -0
- package/dist/chunks/ErrorRecognizers-oTklha6D.js +17 -0
- package/dist/chunks/ErrorRecognizers-oTklha6D.js.map +1 -0
- package/dist/chunks/FeedbackBus-BRbyOMCn.js +39 -0
- package/dist/chunks/FeedbackBus-BRbyOMCn.js.map +1 -0
- package/dist/chunks/FieldErrors-2zjhia4U.js +56 -0
- package/dist/chunks/FieldErrors-2zjhia4U.js.map +1 -0
- package/dist/chunks/FileName-CmNjFV7t.js +30 -0
- package/dist/chunks/FileName-CmNjFV7t.js.map +1 -0
- package/dist/chunks/FormControlContext-B71MFW26.js +22 -0
- package/dist/chunks/FormControlContext-B71MFW26.js.map +1 -0
- package/dist/chunks/FormControlProvider.vue_vue_type_script_setup_true_lang-Fak7Jv46.js +73 -0
- package/dist/chunks/FormControlProvider.vue_vue_type_script_setup_true_lang-Fak7Jv46.js.map +1 -0
- package/dist/chunks/HtmlExtensions-jlKY5f9C.js +23 -0
- package/dist/chunks/HtmlExtensions-jlKY5f9C.js.map +1 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-DgwdLCRR.js +27 -0
- package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-DgwdLCRR.js.map +1 -0
- package/dist/chunks/Inline.vue_vue_type_script_setup_true_lang-BvWbQpJD.js +68 -0
- package/dist/chunks/Inline.vue_vue_type_script_setup_true_lang-BvWbQpJD.js.map +1 -0
- package/dist/chunks/KeyboardExtensions-CQlkK53D.js +34 -0
- package/dist/chunks/KeyboardExtensions-CQlkK53D.js.map +1 -0
- package/dist/chunks/Listbox.variants-CqAkYsmK.js +44 -0
- package/dist/chunks/Listbox.variants-CqAkYsmK.js.map +1 -0
- package/dist/chunks/LocaleContext-B3UXrI6p.js +39 -0
- package/dist/chunks/LocaleContext-B3UXrI6p.js.map +1 -0
- package/dist/chunks/Messages-BGfQHMmW.js +201 -0
- package/dist/chunks/Messages-BGfQHMmW.js.map +1 -0
- package/dist/chunks/ModalContent.vue_vue_type_script_setup_true_lang-CLACSqKg.js +191 -0
- package/dist/chunks/ModalContent.vue_vue_type_script_setup_true_lang-CLACSqKg.js.map +1 -0
- package/dist/chunks/NavItem.vue_vue_type_script_setup_true_lang-CGBo2TiV.js +86 -0
- package/dist/chunks/NavItem.vue_vue_type_script_setup_true_lang-CGBo2TiV.js.map +1 -0
- package/dist/chunks/Navbar.vue_vue_type_script_setup_true_lang-Cl2ejukE.js +2073 -0
- package/dist/chunks/Navbar.vue_vue_type_script_setup_true_lang-Cl2ejukE.js.map +1 -0
- package/dist/chunks/NotificationItem.vue_vue_type_script_setup_true_lang-gi0uHIuK.js +2727 -0
- package/dist/chunks/NotificationItem.vue_vue_type_script_setup_true_lang-gi0uHIuK.js.map +1 -0
- package/dist/chunks/OptionTileGroup.vue_vue_type_script_setup_true_lang-BGSmXM_u.js +943 -0
- package/dist/chunks/OptionTileGroup.vue_vue_type_script_setup_true_lang-BGSmXM_u.js.map +1 -0
- package/dist/chunks/Orientation-u-sYunuG.js +10 -0
- package/dist/chunks/Orientation-u-sYunuG.js.map +1 -0
- package/dist/chunks/OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js +33 -0
- package/dist/chunks/OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js.map +1 -0
- package/dist/chunks/OverlayChrome-e4MNr8Yl.js +17 -0
- package/dist/chunks/OverlayChrome-e4MNr8Yl.js.map +1 -0
- package/dist/chunks/OverlayPosition-BNybkMGG.js +18 -0
- package/dist/chunks/OverlayPosition-BNybkMGG.js.map +1 -0
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-D-OiGICS.js +212 -0
- package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-D-OiGICS.js.map +1 -0
- package/dist/chunks/Portal.vue_vue_type_script_setup_true_lang-CF3R0VCZ.js +34 -0
- package/dist/chunks/Portal.vue_vue_type_script_setup_true_lang-CF3R0VCZ.js.map +1 -0
- package/dist/chunks/Presence-C7IJvh_P.js +120 -0
- package/dist/chunks/Presence-C7IJvh_P.js.map +1 -0
- package/dist/chunks/PressExtensions-DXqhjlR2.js +16 -0
- package/dist/chunks/PressExtensions-DXqhjlR2.js.map +1 -0
- package/dist/chunks/Primitive-Cm3ECaVw.js +20 -0
- package/dist/chunks/Primitive-Cm3ECaVw.js.map +1 -0
- package/dist/chunks/ProgressTone-BpLPUptx.js +16 -0
- package/dist/chunks/ProgressTone-BpLPUptx.js.map +1 -0
- package/dist/chunks/QueryPermission--OKfvS9c.js +82 -0
- package/dist/chunks/QueryPermission--OKfvS9c.js.map +1 -0
- package/dist/chunks/QueryPlugin-CfotNm6j.js +12 -0
- package/dist/chunks/QueryPlugin-CfotNm6j.js.map +1 -0
- package/dist/chunks/RovingFocusGroup.vue_vue_type_script_setup_true_lang-DCpYSP2V.js +235 -0
- package/dist/chunks/RovingFocusGroup.vue_vue_type_script_setup_true_lang-DCpYSP2V.js.map +1 -0
- package/dist/chunks/ScrollLockProvider.vue_vue_type_script_setup_true_lang-_ihHJ7jI.js +20 -0
- package/dist/chunks/ScrollLockProvider.vue_vue_type_script_setup_true_lang-_ihHJ7jI.js.map +1 -0
- package/dist/chunks/SerializeError-CclP2jCW.js +61 -0
- package/dist/chunks/SerializeError-CclP2jCW.js.map +1 -0
- package/dist/chunks/Severity-D0C5oAt-.js +16 -0
- package/dist/chunks/Severity-D0C5oAt-.js.map +1 -0
- package/dist/chunks/Side-CSys3p-F.js +23 -0
- package/dist/chunks/Side-CSys3p-F.js.map +1 -0
- package/dist/chunks/Slot-D2lIitvV.js +103 -0
- package/dist/chunks/Slot-D2lIitvV.js.map +1 -0
- package/dist/chunks/SortableHandle.vue_vue_type_script_setup_true_lang-CWCXGjZG.js +10364 -0
- package/dist/chunks/SortableHandle.vue_vue_type_script_setup_true_lang-CWCXGjZG.js.map +1 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-BAepBy2n.js +23 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-BAepBy2n.js.map +1 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-C4lNiUOm.js +76 -0
- package/dist/chunks/Spinner.vue_vue_type_script_setup_true_lang-C4lNiUOm.js.map +1 -0
- package/dist/chunks/StatusTone-BoPK1s09.js +16 -0
- package/dist/chunks/StatusTone-BoPK1s09.js.map +1 -0
- package/dist/chunks/StorageBroker-COC81ZGB.js +64 -0
- package/dist/chunks/StorageBroker-COC81ZGB.js.map +1 -0
- package/dist/chunks/StyleTokens-Bkz7Dm5L.js +65 -0
- package/dist/chunks/StyleTokens-Bkz7Dm5L.js.map +1 -0
- package/dist/chunks/SubmitErrors-K8nmmj0P.js +374 -0
- package/dist/chunks/SubmitErrors-K8nmmj0P.js.map +1 -0
- package/dist/chunks/SurfaceStyles-ChdpGRBO.js +143 -0
- package/dist/chunks/SurfaceStyles-ChdpGRBO.js.map +1 -0
- package/dist/chunks/TableOfContents.vue_vue_type_script_setup_true_lang-HVL4lg_f.js +2159 -0
- package/dist/chunks/TableOfContents.vue_vue_type_script_setup_true_lang-HVL4lg_f.js.map +1 -0
- package/dist/chunks/ToError-CyTBsmLO.js +52 -0
- package/dist/chunks/ToError-CyTBsmLO.js.map +1 -0
- package/dist/chunks/Tones-CI65uuq9.js +90 -0
- package/dist/chunks/Tones-CI65uuq9.js.map +1 -0
- package/dist/chunks/TransitionExtensions-hFi80JX2.js +19 -0
- package/dist/chunks/TransitionExtensions-hFi80JX2.js.map +1 -0
- package/dist/chunks/UseHotkeys-CKIYK5Mq.js +82 -0
- package/dist/chunks/UseHotkeys-CKIYK5Mq.js.map +1 -0
- package/dist/chunks/UseNavigationProgress-TQIkkXyU.js +51 -0
- package/dist/chunks/UseNavigationProgress-TQIkkXyU.js.map +1 -0
- package/dist/chunks/cn-CzDCF-Ah.js +9 -0
- package/dist/chunks/cn-CzDCF-Ah.js.map +1 -0
- package/dist/chunks/dataAttr-7BR67dTj.js +7 -0
- package/dist/chunks/dataAttr-7BR67dTj.js.map +1 -0
- package/dist/chunks/index-BD7H9CkO.js +130 -0
- package/dist/chunks/index-BD7H9CkO.js.map +1 -0
- package/dist/chunks/index-BGzbbN9T.js +1707 -0
- package/dist/chunks/index-BGzbbN9T.js.map +1 -0
- package/dist/chunks/index-C034dEhy.js +205 -0
- package/dist/chunks/index-C034dEhy.js.map +1 -0
- package/dist/chunks/index-Cbydgcdk.js +234 -0
- package/dist/chunks/index-Cbydgcdk.js.map +1 -0
- package/dist/chunks/index-CzKEU1kI.js +11 -0
- package/dist/chunks/index-CzKEU1kI.js.map +1 -0
- package/dist/chunks/index-KL15HQew.js +61 -0
- package/dist/chunks/index-KL15HQew.js.map +1 -0
- package/dist/chunks/index-drjQ833B.js +10 -0
- package/dist/chunks/index-drjQ833B.js.map +1 -0
- package/dist/chunks/useClipboard-BVRwXC--.js +37 -0
- package/dist/chunks/useClipboard-BVRwXC--.js.map +1 -0
- package/dist/chunks/useControlled-B6M4kTLn.js +24 -0
- package/dist/chunks/useControlled-B6M4kTLn.js.map +1 -0
- package/dist/chunks/useDebounceHandler-BIZgvvGp.js +20 -0
- package/dist/chunks/useDebounceHandler-BIZgvvGp.js.map +1 -0
- package/dist/chunks/useEscape-CYPdpm_l.js +15 -0
- package/dist/chunks/useEscape-CYPdpm_l.js.map +1 -0
- package/dist/chunks/useEventListener-gohT6zGs.js +16 -0
- package/dist/chunks/useEventListener-gohT6zGs.js.map +1 -0
- package/dist/chunks/useId-CtgAhGrn.js +9 -0
- package/dist/chunks/useId-CtgAhGrn.js.map +1 -0
- package/dist/chunks/useMediaQuery-DwVcSgGk.js +27 -0
- package/dist/chunks/useMediaQuery-DwVcSgGk.js.map +1 -0
- package/dist/chunks/useOutsideClick-CW80BJfE.js +22 -0
- package/dist/chunks/useOutsideClick-CW80BJfE.js.map +1 -0
- package/dist/chunks/useRecentItems-DFnt5CBy.js +137 -0
- package/dist/chunks/useRecentItems-DFnt5CBy.js.map +1 -0
- package/dist/chunks/useReducedMotion-B9LqQ3UT.js +8 -0
- package/dist/chunks/useReducedMotion-B9LqQ3UT.js.map +1 -0
- package/dist/chunks/useResizeObserver-BUU7lC-n.js +17 -0
- package/dist/chunks/useResizeObserver-BUU7lC-n.js.map +1 -0
- package/dist/chunks/useScrollLock-d6YIGUcs.js +37 -0
- package/dist/chunks/useScrollLock-d6YIGUcs.js.map +1 -0
- package/dist/domain/color/Gradient.d.ts +60 -0
- package/dist/domain/color/GradientType.d.ts +8 -0
- package/dist/domain/color/index.d.ts +3 -0
- package/dist/domain/color/index.js +6 -0
- package/dist/domain/color/index.js.map +1 -0
- package/dist/domain/emoji/EmojiCatalog.d.ts +29 -0
- package/dist/domain/emoji/EmojiCatalogData.d.ts +3 -0
- package/dist/domain/emoji/EmojiCategory.d.ts +20 -0
- package/dist/domain/emoji/index.d.ts +3 -0
- package/dist/domain/emoji/index.js +6 -0
- package/dist/domain/emoji/index.js.map +1 -0
- package/dist/feedback/FeedbackBus.d.ts +71 -0
- package/dist/feedback/FeedbackQueryErrors.d.ts +21 -0
- package/dist/feedback/index.d.ts +2 -0
- package/dist/feedback/index.js +20 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/flags/FlagClient.d.ts +72 -0
- package/dist/flags/FlagProvider.d.ts +38 -0
- package/dist/flags/FlagTypes.d.ts +85 -0
- package/dist/flags/FlagsContext.d.ts +32 -0
- package/dist/flags/FlagsProvider.vue.d.ts +24 -0
- package/dist/flags/StaticFlagProvider.d.ts +51 -0
- package/dist/flags/index.d.ts +6 -0
- package/dist/flags/index.js +243 -0
- package/dist/flags/index.js.map +1 -0
- package/dist/forms-engine/AppForm.d.ts +258 -0
- package/dist/forms-engine/DeepEqual.d.ts +8 -0
- package/dist/forms-engine/FocusFirstInvalid.d.ts +15 -0
- package/dist/forms-engine/FormGlue.d.ts +55 -0
- package/dist/forms-engine/Paths.d.ts +47 -0
- package/dist/forms-engine/SchemaValidation.d.ts +29 -0
- package/dist/forms-engine/StandardSchema.d.ts +55 -0
- package/dist/forms-engine/SubmitErrors.d.ts +33 -0
- package/dist/forms-engine/UseFieldArray.d.ts +87 -0
- package/dist/forms-engine/house/HouseFormCore.d.ts +33 -0
- package/dist/forms-engine/house/UseAppForm.d.ts +16 -0
- package/dist/forms-engine/house/index.d.ts +7 -0
- package/dist/forms-engine/house/index.js +315 -0
- package/dist/forms-engine/house/index.js.map +1 -0
- package/dist/forms-engine/index.d.ts +10 -0
- package/dist/forms-engine/index.js +127 -0
- package/dist/forms-engine/index.js.map +1 -0
- package/dist/forms-engine/tanstack/TanstackFormOverlay.d.ts +49 -0
- package/dist/forms-engine/tanstack/UseAppForm.d.ts +26 -0
- package/dist/forms-engine/tanstack/index.d.ts +8 -0
- package/dist/forms-engine/tanstack/index.js +407 -0
- package/dist/forms-engine/tanstack/index.js.map +1 -0
- package/dist/foundation/animation/Animate.d.ts +73 -0
- package/dist/foundation/animation/AnimatedLayout.d.ts +72 -0
- package/dist/foundation/animation/Flip.d.ts +90 -0
- package/dist/foundation/animation/UseFlip.d.ts +22 -0
- package/dist/foundation/animation/index.d.ts +4 -0
- package/dist/foundation/animation/index.js +241 -0
- package/dist/foundation/animation/index.js.map +1 -0
- package/dist/foundation/async/Abort.d.ts +33 -0
- package/dist/foundation/async/Combinators.d.ts +17 -0
- package/dist/foundation/async/Deferred.d.ts +18 -0
- package/dist/foundation/async/Limit.d.ts +36 -0
- package/dist/foundation/async/Rate.d.ts +31 -0
- package/dist/foundation/async/Retry.d.ts +20 -0
- package/dist/foundation/async/Timeout.d.ts +32 -0
- package/dist/foundation/async/index.d.ts +7 -0
- package/dist/foundation/async/index.js +290 -0
- package/dist/foundation/async/index.js.map +1 -0
- package/dist/foundation/clipboard/ClipboardPermission.d.ts +17 -0
- package/dist/foundation/clipboard/ClipboardResult.d.ts +102 -0
- package/dist/foundation/clipboard/ClipboardSupport.d.ts +55 -0
- package/dist/foundation/clipboard/CopyItems.d.ts +44 -0
- package/dist/foundation/clipboard/CopyText.d.ts +16 -0
- package/dist/foundation/clipboard/LegacyCopy.d.ts +38 -0
- package/dist/foundation/clipboard/PasteItems.d.ts +25 -0
- package/dist/foundation/clipboard/ReadClipboard.d.ts +29 -0
- package/dist/foundation/clipboard/UseClipboardCopy.d.ts +40 -0
- package/dist/foundation/clipboard/UsePasteHandler.d.ts +35 -0
- package/dist/foundation/clipboard/index.d.ts +10 -0
- package/dist/foundation/clipboard/index.js +437 -0
- package/dist/foundation/clipboard/index.js.map +1 -0
- package/dist/foundation/collections/Arrays.d.ts +131 -0
- package/dist/foundation/collections/Comparison.d.ts +39 -0
- package/dist/foundation/collections/Records.d.ts +72 -0
- package/dist/foundation/collections/SetOps.d.ts +45 -0
- package/dist/foundation/collections/Tree.d.ts +63 -0
- package/dist/foundation/collections/index.d.ts +5 -0
- package/dist/foundation/collections/index.js +460 -0
- package/dist/foundation/collections/index.js.map +1 -0
- package/dist/foundation/commands/Command.d.ts +46 -0
- package/dist/foundation/commands/CommandRegistry.d.ts +36 -0
- package/dist/foundation/commands/CommandShortcut.d.ts +8 -0
- package/dist/foundation/commands/CommandsContext.d.ts +30 -0
- package/dist/foundation/commands/CommandsProvider.vue.d.ts +18 -0
- package/dist/foundation/commands/SearchCommands.d.ts +28 -0
- package/dist/foundation/commands/UseCommandRegistry.d.ts +19 -0
- package/dist/foundation/commands/UseCommandShortcuts.d.ts +18 -0
- package/dist/foundation/commands/index.d.ts +8 -0
- package/dist/foundation/commands/index.js +278 -0
- package/dist/foundation/commands/index.js.map +1 -0
- package/dist/foundation/config/ConfigField.d.ts +60 -0
- package/dist/foundation/config/ConfigSource.d.ts +24 -0
- package/dist/foundation/config/DefineConfig.d.ts +43 -0
- package/dist/foundation/config/index.d.ts +3 -0
- package/dist/foundation/config/index.js +186 -0
- package/dist/foundation/config/index.js.map +1 -0
- package/dist/foundation/crypto/Digest.d.ts +25 -0
- package/dist/foundation/crypto/Encoding.d.ts +43 -0
- package/dist/foundation/crypto/HashObject.d.ts +18 -0
- package/dist/foundation/crypto/Random.d.ts +32 -0
- package/dist/foundation/crypto/TimingSafeEqual.d.ts +12 -0
- package/dist/foundation/crypto/WebCrypto.d.ts +15 -0
- package/dist/foundation/crypto/index.d.ts +6 -0
- package/dist/foundation/crypto/index.js +226 -0
- package/dist/foundation/crypto/index.js.map +1 -0
- package/dist/foundation/datetime/Arithmetic.d.ts +31 -0
- package/dist/foundation/datetime/Boundaries.d.ts +24 -0
- package/dist/foundation/datetime/Comparison.d.ts +43 -0
- package/dist/foundation/datetime/Difference.d.ts +28 -0
- package/dist/foundation/datetime/Internals.d.ts +12 -0
- package/dist/foundation/datetime/Interval.d.ts +38 -0
- package/dist/foundation/datetime/IsoDate.d.ts +24 -0
- package/dist/foundation/datetime/index.d.ts +6 -0
- package/dist/foundation/datetime/index.js +302 -0
- package/dist/foundation/datetime/index.js.map +1 -0
- package/dist/foundation/device/Breakpoints.d.ts +54 -0
- package/dist/foundation/device/DisplayMode.d.ts +13 -0
- package/dist/foundation/device/Platform.d.ts +27 -0
- package/dist/foundation/device/PointerType.d.ts +11 -0
- package/dist/foundation/device/UseBreakpoint.d.ts +20 -0
- package/dist/foundation/device/UseDisplayMode.d.ts +23 -0
- package/dist/foundation/device/UseOnlineStatus.d.ts +12 -0
- package/dist/foundation/device/UsePointer.d.ts +25 -0
- package/dist/foundation/device/index.d.ts +8 -0
- package/dist/foundation/device/index.js +187 -0
- package/dist/foundation/device/index.js.map +1 -0
- package/dist/foundation/errors/ErrorChain.d.ts +23 -0
- package/dist/foundation/errors/ErrorLike.d.ts +35 -0
- package/dist/foundation/errors/ErrorMessage.d.ts +13 -0
- package/dist/foundation/errors/ErrorRecognizers.d.ts +18 -0
- package/dist/foundation/errors/SerializeError.d.ts +25 -0
- package/dist/foundation/errors/ToError.d.ts +15 -0
- package/dist/foundation/errors/index.d.ts +6 -0
- package/dist/foundation/errors/index.js +18 -0
- package/dist/foundation/errors/index.js.map +1 -0
- package/dist/foundation/files/Accept.d.ts +30 -0
- package/dist/foundation/files/DownloadFile.d.ts +10 -0
- package/dist/foundation/files/FileName.d.ts +21 -0
- package/dist/foundation/files/ReadFile.d.ts +6 -0
- package/dist/foundation/files/index.d.ts +4 -0
- package/dist/foundation/files/index.js +62 -0
- package/dist/foundation/files/index.js.map +1 -0
- package/dist/foundation/format/Bytes.d.ts +15 -0
- package/dist/foundation/format/Count.d.ts +10 -0
- package/dist/foundation/format/Duration.d.ts +13 -0
- package/dist/foundation/format/Text.d.ts +51 -0
- package/dist/foundation/format/index.d.ts +4 -0
- package/dist/foundation/format/index.js +100 -0
- package/dist/foundation/format/index.js.map +1 -0
- package/dist/foundation/geolocation/CanLocate.d.ts +18 -0
- package/dist/foundation/geolocation/Coordinates.d.ts +41 -0
- package/dist/foundation/geolocation/DistanceBetween.d.ts +21 -0
- package/dist/foundation/geolocation/GeolocationPermission.d.ts +13 -0
- package/dist/foundation/geolocation/GeolocationReading.d.ts +30 -0
- package/dist/foundation/geolocation/GetCurrentPosition.d.ts +14 -0
- package/dist/foundation/geolocation/PositionResult.d.ts +74 -0
- package/dist/foundation/geolocation/UseGeolocation.d.ts +38 -0
- package/dist/foundation/geolocation/UseWatchPosition.d.ts +16 -0
- package/dist/foundation/geolocation/WatchPosition.d.ts +19 -0
- package/dist/foundation/geolocation/index.d.ts +10 -0
- package/dist/foundation/geolocation/index.js +236 -0
- package/dist/foundation/geolocation/index.js.map +1 -0
- package/dist/foundation/gestures/GestureAxis.d.ts +11 -0
- package/dist/foundation/gestures/GestureMath.d.ts +182 -0
- package/dist/foundation/gestures/SwipeDirection.d.ts +13 -0
- package/dist/foundation/gestures/UseDrag.d.ts +75 -0
- package/dist/foundation/gestures/UseLongPress.d.ts +42 -0
- package/dist/foundation/gestures/UsePinch.d.ts +47 -0
- package/dist/foundation/gestures/UseSwipe.d.ts +46 -0
- package/dist/foundation/gestures/index.d.ts +7 -0
- package/dist/foundation/gestures/index.js +440 -0
- package/dist/foundation/gestures/index.js.map +1 -0
- package/dist/foundation/hooks/index.d.ts +17 -0
- package/dist/foundation/hooks/index.js +34 -0
- package/dist/foundation/hooks/index.js.map +1 -0
- package/dist/foundation/hooks/useAutosave/index.d.ts +1 -0
- package/dist/foundation/hooks/useAutosave/useAutosave.d.ts +46 -0
- package/dist/foundation/hooks/useClipboard/index.d.ts +1 -0
- package/dist/foundation/hooks/useClipboard/useClipboard.d.ts +24 -0
- package/dist/foundation/hooks/useControlled/index.d.ts +1 -0
- package/dist/foundation/hooks/useControlled/useControlled.d.ts +31 -0
- package/dist/foundation/hooks/useDebounceHandler/index.d.ts +1 -0
- package/dist/foundation/hooks/useDebounceHandler/useDebounceHandler.d.ts +16 -0
- package/dist/foundation/hooks/useDisclosure/index.d.ts +1 -0
- package/dist/foundation/hooks/useDisclosure/useDisclosure.d.ts +18 -0
- package/dist/foundation/hooks/useEscape/index.d.ts +1 -0
- package/dist/foundation/hooks/useEscape/useEscape.d.ts +10 -0
- package/dist/foundation/hooks/useEventListener/index.d.ts +1 -0
- package/dist/foundation/hooks/useEventListener/useEventListener.d.ts +17 -0
- package/dist/foundation/hooks/useFocusTrap/index.d.ts +1 -0
- package/dist/foundation/hooks/useFocusTrap/useFocusTrap.d.ts +15 -0
- package/dist/foundation/hooks/useId/index.d.ts +1 -0
- package/dist/foundation/hooks/useId/useId.d.ts +8 -0
- package/dist/foundation/hooks/useMediaQuery/index.d.ts +1 -0
- package/dist/foundation/hooks/useMediaQuery/useMediaQuery.d.ts +12 -0
- package/dist/foundation/hooks/useOutsideClick/index.d.ts +1 -0
- package/dist/foundation/hooks/useOutsideClick/useOutsideClick.d.ts +12 -0
- package/dist/foundation/hooks/usePersistentState/index.d.ts +1 -0
- package/dist/foundation/hooks/usePersistentState/usePersistentState.d.ts +31 -0
- package/dist/foundation/hooks/useRecentItems/index.d.ts +1 -0
- package/dist/foundation/hooks/useRecentItems/useRecentItems.d.ts +34 -0
- package/dist/foundation/hooks/useReducedMotion/index.d.ts +1 -0
- package/dist/foundation/hooks/useReducedMotion/useReducedMotion.d.ts +7 -0
- package/dist/foundation/hooks/useResizeObserver/index.d.ts +1 -0
- package/dist/foundation/hooks/useResizeObserver/useResizeObserver.d.ts +11 -0
- package/dist/foundation/hooks/useScrollLock/index.d.ts +1 -0
- package/dist/foundation/hooks/useScrollLock/useScrollLock.d.ts +11 -0
- package/dist/foundation/hooks/useTypeahead/index.d.ts +1 -0
- package/dist/foundation/hooks/useTypeahead/useTypeahead.d.ts +42 -0
- package/dist/foundation/http/ApiError.d.ts +7 -0
- package/dist/foundation/http/ApiResponse.d.ts +4 -0
- package/dist/foundation/http/CreateApiClient.d.ts +65 -0
- package/dist/foundation/http/DateBrands.d.ts +8 -0
- package/dist/foundation/http/Envelope.d.ts +33 -0
- package/dist/foundation/http/FieldErrors.d.ts +16 -0
- package/dist/foundation/http/Page.d.ts +47 -0
- package/dist/foundation/http/ProblemDetails.d.ts +9 -0
- package/dist/foundation/http/index.d.ts +9 -0
- package/dist/foundation/http/index.js +180 -0
- package/dist/foundation/http/index.js.map +1 -0
- package/dist/foundation/http/temporalReviver.d.ts +9 -0
- package/dist/foundation/i18n/FormattedRelative.vue.d.ts +10 -0
- package/dist/foundation/i18n/LocaleContext.d.ts +35 -0
- package/dist/foundation/i18n/LocaleFormatters.d.ts +24 -0
- package/dist/foundation/i18n/LocaleProvider.vue.d.ts +18 -0
- package/dist/foundation/i18n/index.d.ts +4 -0
- package/dist/foundation/i18n/index.js +79 -0
- package/dist/foundation/i18n/index.js.map +1 -0
- package/dist/foundation/icons/Icon.vue.d.ts +40 -0
- package/dist/foundation/icons/Spinner.vue.d.ts +7 -0
- package/dist/foundation/icons/index.d.ts +2 -0
- package/dist/foundation/icons/index.js +7 -0
- package/dist/foundation/icons/index.js.map +1 -0
- package/dist/foundation/idb/IdbPromises.d.ts +25 -0
- package/dist/foundation/idb/IndexedDbSupport.d.ts +32 -0
- package/dist/foundation/idb/KeyValueStore.d.ts +84 -0
- package/dist/foundation/idb/OpenDatabase.d.ts +62 -0
- package/dist/foundation/idb/Transactions.d.ts +44 -0
- package/dist/foundation/idb/index.d.ts +5 -0
- package/dist/foundation/idb/index.js +403 -0
- package/dist/foundation/idb/index.js.map +1 -0
- package/dist/foundation/identifiers/Guid.d.ts +41 -0
- package/dist/foundation/identifiers/index.d.ts +1 -0
- package/dist/foundation/identifiers/index.js +68 -0
- package/dist/foundation/identifiers/index.js.map +1 -0
- package/dist/foundation/logger/ConsoleLogSink.d.ts +8 -0
- package/dist/foundation/logger/LogLevel.d.ts +34 -0
- package/dist/foundation/logger/LogRecord.d.ts +17 -0
- package/dist/foundation/logger/LogSink.d.ts +17 -0
- package/dist/foundation/logger/Logger.d.ts +55 -0
- package/dist/foundation/logger/MemoryLogSink.d.ts +11 -0
- package/dist/foundation/logger/Redaction.d.ts +29 -0
- package/dist/foundation/logger/index.d.ts +7 -0
- package/dist/foundation/logger/index.js +232 -0
- package/dist/foundation/logger/index.js.map +1 -0
- package/dist/foundation/media/CanCaptureMedia.d.ts +36 -0
- package/dist/foundation/media/FacingMode.d.ts +45 -0
- package/dist/foundation/media/ListMediaDevices.d.ts +41 -0
- package/dist/foundation/media/MediaPermission.d.ts +23 -0
- package/dist/foundation/media/MediaStreamResult.d.ts +45 -0
- package/dist/foundation/media/RequestMediaStream.d.ts +37 -0
- package/dist/foundation/media/StopMediaStream.d.ts +10 -0
- package/dist/foundation/media/UseMediaStream.d.ts +41 -0
- package/dist/foundation/media/index.d.ts +8 -0
- package/dist/foundation/media/index.js +218 -0
- package/dist/foundation/media/index.js.map +1 -0
- package/dist/foundation/net/ConnectionState.d.ts +36 -0
- package/dist/foundation/net/CreateEventStream.d.ts +101 -0
- package/dist/foundation/net/CreatePoller.d.ts +59 -0
- package/dist/foundation/net/CreateSocketClient.d.ts +93 -0
- package/dist/foundation/net/Liveness.d.ts +41 -0
- package/dist/foundation/net/Reconnect.d.ts +49 -0
- package/dist/foundation/net/UseEventStream.d.ts +25 -0
- package/dist/foundation/net/UsePolling.d.ts +26 -0
- package/dist/foundation/net/UseSocket.d.ts +32 -0
- package/dist/foundation/net/index.d.ts +9 -0
- package/dist/foundation/net/index.js +840 -0
- package/dist/foundation/net/index.js.map +1 -0
- package/dist/foundation/notifications/CanNotify.d.ts +11 -0
- package/dist/foundation/notifications/NotificationPermission.d.ts +31 -0
- package/dist/foundation/notifications/Notify.d.ts +66 -0
- package/dist/foundation/notifications/QueryPermission.d.ts +55 -0
- package/dist/foundation/notifications/UseNotificationPermission.d.ts +27 -0
- package/dist/foundation/notifications/UsePermissionState.d.ts +14 -0
- package/dist/foundation/notifications/index.d.ts +6 -0
- package/dist/foundation/notifications/index.js +199 -0
- package/dist/foundation/notifications/index.js.map +1 -0
- package/dist/foundation/observers/ObserveIntersection.d.ts +57 -0
- package/dist/foundation/observers/ObserveMutation.d.ts +52 -0
- package/dist/foundation/observers/UseInView.d.ts +41 -0
- package/dist/foundation/observers/UseIntersectionObserver.d.ts +18 -0
- package/dist/foundation/observers/UseMutationObserver.d.ts +21 -0
- package/dist/foundation/observers/UseVisibility.d.ts +33 -0
- package/dist/foundation/observers/VisibilitySteps.d.ts +14 -0
- package/dist/foundation/observers/index.d.ts +7 -0
- package/dist/foundation/observers/index.js +199 -0
- package/dist/foundation/observers/index.js.map +1 -0
- package/dist/foundation/primitives/accessibleIcon/AccessibleIcon.d.ts +27 -0
- package/dist/foundation/primitives/accessibleIcon/index.d.ts +1 -0
- package/dist/foundation/primitives/anchoredPositioner/AnchoredPositioner.vue.d.ts +37 -0
- package/dist/foundation/primitives/anchoredPositioner/index.d.ts +1 -0
- package/dist/foundation/primitives/announce/Announce.vue.d.ts +28 -0
- package/dist/foundation/primitives/announce/index.d.ts +1 -0
- package/dist/foundation/primitives/collection/Collection.d.ts +24 -0
- package/dist/foundation/primitives/collection/index.d.ts +1 -0
- package/dist/foundation/primitives/colorModeProvider/ColorModeContext.d.ts +26 -0
- package/dist/foundation/primitives/colorModeProvider/ColorModeProvider.vue.d.ts +20 -0
- package/dist/foundation/primitives/colorModeProvider/index.d.ts +2 -0
- package/dist/foundation/primitives/directionProvider/DirectionContext.d.ts +23 -0
- package/dist/foundation/primitives/directionProvider/DirectionProvider.vue.d.ts +14 -0
- package/dist/foundation/primitives/directionProvider/index.d.ts +2 -0
- package/dist/foundation/primitives/dismissableLayer/DismissableLayer.vue.d.ts +22 -0
- package/dist/foundation/primitives/dismissableLayer/index.d.ts +1 -0
- package/dist/foundation/primitives/focusScope/FocusScope.vue.d.ts +26 -0
- package/dist/foundation/primitives/focusScope/index.d.ts +1 -0
- package/dist/foundation/primitives/formControlContext/FormControlContext.d.ts +57 -0
- package/dist/foundation/primitives/formControlContext/FormControlProvider.vue.d.ts +25 -0
- package/dist/foundation/primitives/formControlContext/index.d.ts +2 -0
- package/dist/foundation/primitives/index.d.ts +17 -0
- package/dist/foundation/primitives/index.js +52 -0
- package/dist/foundation/primitives/index.js.map +1 -0
- package/dist/foundation/primitives/overlayArrow/OverlayArrow.vue.d.ts +27 -0
- package/dist/foundation/primitives/overlayArrow/index.d.ts +1 -0
- package/dist/foundation/primitives/portal/Portal.vue.d.ts +16 -0
- package/dist/foundation/primitives/portal/index.d.ts +1 -0
- package/dist/foundation/primitives/presence/Presence.d.ts +32 -0
- package/dist/foundation/primitives/presence/index.d.ts +1 -0
- package/dist/foundation/primitives/rovingFocusGroup/RovingFocusContext.d.ts +74 -0
- package/dist/foundation/primitives/rovingFocusGroup/RovingFocusGroup.vue.d.ts +20 -0
- package/dist/foundation/primitives/rovingFocusGroup/index.d.ts +2 -0
- package/dist/foundation/primitives/scrollLockProvider/ScrollLockProvider.vue.d.ts +15 -0
- package/dist/foundation/primitives/scrollLockProvider/index.d.ts +1 -0
- package/dist/foundation/primitives/scrollViewport/ScrollViewport.vue.d.ts +41 -0
- package/dist/foundation/primitives/scrollViewport/index.d.ts +1 -0
- package/dist/foundation/primitives/slot/Primitive.d.ts +69 -0
- package/dist/foundation/primitives/slot/Slot.d.ts +38 -0
- package/dist/foundation/primitives/slot/index.d.ts +2 -0
- package/dist/foundation/primitives/visuallyHidden/VisuallyHidden.vue.d.ts +11 -0
- package/dist/foundation/primitives/visuallyHidden/index.d.ts +1 -0
- package/dist/foundation/resilience/BackoffStrategy.d.ts +10 -0
- package/dist/foundation/resilience/JitterStrategy.d.ts +12 -0
- package/dist/foundation/resilience/RetryDelay.d.ts +5 -0
- package/dist/foundation/resilience/RetryPolicy.d.ts +34 -0
- package/dist/foundation/resilience/index.d.ts +4 -0
- package/dist/foundation/resilience/index.js +63 -0
- package/dist/foundation/resilience/index.js.map +1 -0
- package/dist/foundation/screen/Fullscreen.d.ts +73 -0
- package/dist/foundation/screen/ScreenEnvironment.d.ts +42 -0
- package/dist/foundation/screen/ScreenOrientation.d.ts +110 -0
- package/dist/foundation/screen/ScreenResult.d.ts +38 -0
- package/dist/foundation/screen/UseFullscreen.d.ts +28 -0
- package/dist/foundation/screen/UseOrientation.d.ts +28 -0
- package/dist/foundation/screen/UseWakeLock.d.ts +18 -0
- package/dist/foundation/screen/WakeLock.d.ts +79 -0
- package/dist/foundation/screen/index.d.ts +7 -0
- package/dist/foundation/screen/index.js +402 -0
- package/dist/foundation/screen/index.js.map +1 -0
- package/dist/foundation/selection/Field.d.ts +31 -0
- package/dist/foundation/selection/Filter.d.ts +71 -0
- package/dist/foundation/selection/Selection.d.ts +116 -0
- package/dist/foundation/selection/Sort.d.ts +69 -0
- package/dist/foundation/selection/UseFilters.d.ts +34 -0
- package/dist/foundation/selection/UseSelection.d.ts +54 -0
- package/dist/foundation/selection/UseSort.d.ts +36 -0
- package/dist/foundation/selection/index.d.ts +7 -0
- package/dist/foundation/selection/index.js +407 -0
- package/dist/foundation/selection/index.js.map +1 -0
- package/dist/foundation/share/CanShare.d.ts +11 -0
- package/dist/foundation/share/Share.d.ts +45 -0
- package/dist/foundation/share/ShareData.d.ts +43 -0
- package/dist/foundation/share/ShareOrCopy.d.ts +27 -0
- package/dist/foundation/share/UseShare.d.ts +30 -0
- package/dist/foundation/share/index.d.ts +5 -0
- package/dist/foundation/share/index.js +111 -0
- package/dist/foundation/share/index.js.map +1 -0
- package/dist/foundation/shortcuts/Chord.d.ts +51 -0
- package/dist/foundation/shortcuts/UseHotkeys.d.ts +34 -0
- package/dist/foundation/shortcuts/index.d.ts +3 -0
- package/dist/foundation/shortcuts/index.js +15 -0
- package/dist/foundation/shortcuts/index.js.map +1 -0
- package/dist/foundation/speech/CreateSpeechRecognizer.d.ts +79 -0
- package/dist/foundation/speech/ListVoices.d.ts +78 -0
- package/dist/foundation/speech/Speak.d.ts +52 -0
- package/dist/foundation/speech/SpeechControls.d.ts +57 -0
- package/dist/foundation/speech/SpeechRecognitionResult.d.ts +45 -0
- package/dist/foundation/speech/SpeechRecognitionTypes.d.ts +67 -0
- package/dist/foundation/speech/SpeechResult.d.ts +32 -0
- package/dist/foundation/speech/SpeechSupport.d.ts +69 -0
- package/dist/foundation/speech/UseSpeechRecognition.d.ts +45 -0
- package/dist/foundation/speech/UseSpeechSynthesis.d.ts +37 -0
- package/dist/foundation/speech/index.d.ts +10 -0
- package/dist/foundation/speech/index.js +573 -0
- package/dist/foundation/speech/index.js.map +1 -0
- package/dist/foundation/storage/NamespacedBroker.d.ts +7 -0
- package/dist/foundation/storage/StorageBroker.d.ts +17 -0
- package/dist/foundation/storage/VersionedStore.d.ts +42 -0
- package/dist/foundation/storage/index.d.ts +3 -0
- package/dist/foundation/storage/index.js +65 -0
- package/dist/foundation/storage/index.js.map +1 -0
- package/dist/foundation/storage/zustand/ZustandPersist.d.ts +36 -0
- package/dist/foundation/storage/zustand/index.d.ts +1 -0
- package/dist/foundation/storage/zustand/index.js +11 -0
- package/dist/foundation/storage/zustand/index.js.map +1 -0
- package/dist/foundation/sync/CreateSyncChannel.d.ts +16 -0
- package/dist/foundation/sync/LeaderElection.d.ts +88 -0
- package/dist/foundation/sync/MemorySyncHub.d.ts +29 -0
- package/dist/foundation/sync/SyncChannel.d.ts +65 -0
- package/dist/foundation/sync/UseBroadcastState.d.ts +31 -0
- package/dist/foundation/sync/UseLeaderElection.d.ts +25 -0
- package/dist/foundation/sync/UseSyncChannel.d.ts +16 -0
- package/dist/foundation/sync/index.d.ts +7 -0
- package/dist/foundation/sync/index.js +484 -0
- package/dist/foundation/sync/index.js.map +1 -0
- package/dist/foundation/themes/Oklch.d.ts +42 -0
- package/dist/foundation/themes/Theme.d.ts +112 -0
- package/dist/foundation/themes/Tokens.d.ts +40 -0
- package/dist/foundation/themes/css.d.ts +20 -0
- package/dist/foundation/themes/generate.d.ts +6 -0
- package/dist/foundation/themes/index.d.ts +11 -0
- package/dist/foundation/themes/index.js +37 -0
- package/dist/foundation/themes/index.js.map +1 -0
- package/dist/foundation/themes/pool.d.ts +3 -0
- package/dist/foundation/themes/registry.d.ts +16 -0
- package/dist/foundation/themes/validate.d.ts +25 -0
- package/dist/foundation/themes/validated.d.ts +3 -0
- package/dist/foundation/undo/HistoryCore.d.ts +92 -0
- package/dist/foundation/undo/SnapshotHistory.d.ts +33 -0
- package/dist/foundation/undo/UndoHistory.d.ts +41 -0
- package/dist/foundation/undo/UseUndoHistory.d.ts +66 -0
- package/dist/foundation/undo/UseUndoShortcuts.d.ts +20 -0
- package/dist/foundation/undo/index.d.ts +5 -0
- package/dist/foundation/undo/index.js +361 -0
- package/dist/foundation/undo/index.js.map +1 -0
- package/dist/foundation/uploads/UploadItem.d.ts +47 -0
- package/dist/foundation/uploads/UploadQueue.d.ts +79 -0
- package/dist/foundation/uploads/UploadTransport.d.ts +41 -0
- package/dist/foundation/uploads/UseUploadQueue.d.ts +47 -0
- package/dist/foundation/uploads/XhrUploadTransport.d.ts +23 -0
- package/dist/foundation/uploads/index.d.ts +5 -0
- package/dist/foundation/uploads/index.js +449 -0
- package/dist/foundation/uploads/index.js.map +1 -0
- package/dist/foundation/utils/Align/Align.d.ts +10 -0
- package/dist/foundation/utils/Align/index.d.ts +1 -0
- package/dist/foundation/utils/ColorExtensions/ColorExtensions.d.ts +51 -0
- package/dist/foundation/utils/ColorExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/Compare/Compare.d.ts +7 -0
- package/dist/foundation/utils/Compare/index.d.ts +1 -0
- package/dist/foundation/utils/CornerPosition/CornerPosition.d.ts +12 -0
- package/dist/foundation/utils/CornerPosition/index.d.ts +1 -0
- package/dist/foundation/utils/CssExtensions/CssExtensions.d.ts +115 -0
- package/dist/foundation/utils/CssExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/ElementTag/ElementTag.d.ts +28 -0
- package/dist/foundation/utils/ElementTag/index.d.ts +1 -0
- package/dist/foundation/utils/Environment/Environment.d.ts +12 -0
- package/dist/foundation/utils/Environment/index.d.ts +1 -0
- package/dist/foundation/utils/Equality/Equality.d.ts +13 -0
- package/dist/foundation/utils/Equality/index.d.ts +1 -0
- package/dist/foundation/utils/HtmlExtensions/HtmlExtensions.d.ts +22 -0
- package/dist/foundation/utils/HtmlExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/KeyboardExtensions/KeyboardExtensions.d.ts +32 -0
- package/dist/foundation/utils/KeyboardExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/Layers/Layers.d.ts +35 -0
- package/dist/foundation/utils/Layers/index.d.ts +1 -0
- package/dist/foundation/utils/OptionalExtensions/OptionalExtensions.d.ts +12 -0
- package/dist/foundation/utils/OptionalExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/Orientation/Orientation.d.ts +8 -0
- package/dist/foundation/utils/Orientation/index.d.ts +1 -0
- package/dist/foundation/utils/OverlayPosition/OverlayPosition.d.ts +16 -0
- package/dist/foundation/utils/OverlayPosition/index.d.ts +1 -0
- package/dist/foundation/utils/PressExtensions/PressExtensions.d.ts +17 -0
- package/dist/foundation/utils/PressExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/ProgressTone/ProgressTone.d.ts +14 -0
- package/dist/foundation/utils/ProgressTone/index.d.ts +1 -0
- package/dist/foundation/utils/Severity/Severity.d.ts +14 -0
- package/dist/foundation/utils/Severity/index.d.ts +1 -0
- package/dist/foundation/utils/Side/Side.d.ts +12 -0
- package/dist/foundation/utils/Side/index.d.ts +1 -0
- package/dist/foundation/utils/StatusTone/StatusTone.d.ts +14 -0
- package/dist/foundation/utils/StatusTone/index.d.ts +1 -0
- package/dist/foundation/utils/StyleTokens/StyleTokens.d.ts +68 -0
- package/dist/foundation/utils/StyleTokens/index.d.ts +1 -0
- package/dist/foundation/utils/SurfaceStyles/SurfaceStyles.d.ts +397 -0
- package/dist/foundation/utils/SurfaceStyles/index.d.ts +1 -0
- package/dist/foundation/utils/Tones/Tones.d.ts +21 -0
- package/dist/foundation/utils/Tones/index.d.ts +1 -0
- package/dist/foundation/utils/TransitionExtensions/TransitionExtensions.d.ts +18 -0
- package/dist/foundation/utils/TransitionExtensions/index.d.ts +1 -0
- package/dist/foundation/utils/cn/cn.d.ts +6 -0
- package/dist/foundation/utils/cn/index.d.ts +1 -0
- package/dist/foundation/utils/composeEventHandlers/composeEventHandlers.d.ts +9 -0
- package/dist/foundation/utils/composeEventHandlers/index.d.ts +1 -0
- package/dist/foundation/utils/dataAttr/dataAttr.d.ts +6 -0
- package/dist/foundation/utils/dataAttr/index.d.ts +1 -0
- package/dist/foundation/utils/index.d.ts +33 -0
- package/dist/foundation/utils/index.js +67 -0
- package/dist/foundation/utils/index.js.map +1 -0
- package/dist/foundation/utils/polymorphic/index.d.ts +1 -0
- package/dist/foundation/utils/polymorphic/polymorphic.d.ts +29 -0
- package/dist/foundation/utils/tv/index.d.ts +1 -0
- package/dist/foundation/utils/tv/tv.d.ts +1 -0
- package/dist/foundation/validation/Composites.d.ts +62 -0
- package/dist/foundation/validation/Formats.d.ts +9 -0
- package/dist/foundation/validation/Messages.d.ts +69 -0
- package/dist/foundation/validation/Primitives.d.ts +49 -0
- package/dist/foundation/validation/StandardSchema.d.ts +55 -0
- package/dist/foundation/validation/ValidationError.d.ts +14 -0
- package/dist/foundation/validation/ValidationResult.d.ts +49 -0
- package/dist/foundation/validation/Validator.d.ts +69 -0
- package/dist/foundation/validation/index.d.ts +8 -0
- package/dist/foundation/validation/index.js +512 -0
- package/dist/foundation/validation/index.js.map +1 -0
- package/dist/foundation/virtualization/Measurements.d.ts +79 -0
- package/dist/foundation/virtualization/UseVirtualList.d.ts +79 -0
- package/dist/foundation/virtualization/Windowing.d.ts +78 -0
- package/dist/foundation/virtualization/index.d.ts +3 -0
- package/dist/foundation/virtualization/index.js +300 -0
- package/dist/foundation/virtualization/index.js.map +1 -0
- package/dist/foundation/workers/RunInWorker.d.ts +41 -0
- package/dist/foundation/workers/UseWorker.d.ts +28 -0
- package/dist/foundation/workers/WorkerClient.d.ts +85 -0
- package/dist/foundation/workers/WorkerHost.d.ts +80 -0
- package/dist/foundation/workers/WorkerProtocol.d.ts +78 -0
- package/dist/foundation/workers/WorkerSupport.d.ts +15 -0
- package/dist/foundation/workers/index.d.ts +6 -0
- package/dist/foundation/workers/index.js +292 -0
- package/dist/foundation/workers/index.js.map +1 -0
- package/dist/index.css +314 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +636 -0
- package/dist/index.js.map +1 -0
- package/dist/presentation/actions/backToTopButton/BackToTopButton.vue.d.ts +33 -0
- package/dist/presentation/actions/backToTopButton/index.d.ts +1 -0
- package/dist/presentation/actions/button/Button.variants.d.ts +311 -0
- package/dist/presentation/actions/button/Button.vue.d.ts +119 -0
- package/dist/presentation/actions/button/index.d.ts +2 -0
- package/dist/presentation/actions/buttonGroup/ButtonGroup.vue.d.ts +22 -0
- package/dist/presentation/actions/buttonGroup/index.d.ts +1 -0
- package/dist/presentation/actions/copyButton/CopyButton.vue.d.ts +35 -0
- package/dist/presentation/actions/copyButton/index.d.ts +1 -0
- package/dist/presentation/actions/disclosureButton/DisclosureButton.vue.d.ts +32 -0
- package/dist/presentation/actions/disclosureButton/index.d.ts +1 -0
- package/dist/presentation/actions/fab/FAB.variants.d.ts +158 -0
- package/dist/presentation/actions/fab/FAB.vue.d.ts +29 -0
- package/dist/presentation/actions/fab/index.d.ts +2 -0
- package/dist/presentation/actions/index.d.ts +14 -0
- package/dist/presentation/actions/index.js +47 -0
- package/dist/presentation/actions/index.js.map +1 -0
- package/dist/presentation/actions/link/Link.variants.d.ts +111 -0
- package/dist/presentation/actions/link/Link.vue.d.ts +24 -0
- package/dist/presentation/actions/link/index.d.ts +2 -0
- package/dist/presentation/actions/optionTile/OptionTile.variants.d.ts +10 -0
- package/dist/presentation/actions/optionTile/OptionTile.vue.d.ts +31 -0
- package/dist/presentation/actions/optionTile/index.d.ts +2 -0
- package/dist/presentation/actions/optionTileGroup/OptionTileGroup.variants.d.ts +76 -0
- package/dist/presentation/actions/optionTileGroup/OptionTileGroup.vue.d.ts +27 -0
- package/dist/presentation/actions/optionTileGroup/index.d.ts +2 -0
- package/dist/presentation/actions/segmentedControl/SegmentedControl.vue.d.ts +20 -0
- package/dist/presentation/actions/segmentedControl/index.d.ts +1 -0
- package/dist/presentation/actions/speedDial/SpeedDial.vue.d.ts +28 -0
- package/dist/presentation/actions/speedDial/SpeedDialAction.vue.d.ts +40 -0
- package/dist/presentation/actions/speedDial/SpeedDialContext.d.ts +36 -0
- package/dist/presentation/actions/speedDial/SpeedDialList.vue.d.ts +13 -0
- package/dist/presentation/actions/speedDial/SpeedDialTrigger.vue.d.ts +30 -0
- package/dist/presentation/actions/speedDial/index.d.ts +166 -0
- package/dist/presentation/actions/toggleButton/ToggleButton.variants.d.ts +141 -0
- package/dist/presentation/actions/toggleButton/ToggleButton.vue.d.ts +59 -0
- package/dist/presentation/actions/toggleButton/index.d.ts +2 -0
- package/dist/presentation/actions/toggleButtonGroup/ToggleButtonGroup.variants.d.ts +33 -0
- package/dist/presentation/actions/toggleButtonGroup/ToggleButtonGroup.vue.d.ts +72 -0
- package/dist/presentation/actions/toggleButtonGroup/ToggleButtonGroupContext.d.ts +24 -0
- package/dist/presentation/actions/toggleButtonGroup/index.d.ts +3 -0
- package/dist/presentation/actions/toolbar/Toolbar.vue.d.ts +19 -0
- package/dist/presentation/actions/toolbar/ToolbarButton.vue.d.ts +16 -0
- package/dist/presentation/actions/toolbar/ToolbarContext.d.ts +9 -0
- package/dist/presentation/actions/toolbar/ToolbarLink.vue.d.ts +11 -0
- package/dist/presentation/actions/toolbar/ToolbarSeparator.vue.d.ts +3 -0
- package/dist/presentation/actions/toolbar/index.d.ts +87 -0
- package/dist/presentation/display/accordion/Accordion.vue.d.ts +45 -0
- package/dist/presentation/display/accordion/AccordionContent.vue.d.ts +14 -0
- package/dist/presentation/display/accordion/AccordionContext.d.ts +29 -0
- package/dist/presentation/display/accordion/AccordionItem.vue.d.ts +20 -0
- package/dist/presentation/display/accordion/AccordionTrigger.vue.d.ts +14 -0
- package/dist/presentation/display/accordion/index.d.ts +5 -0
- package/dist/presentation/display/activityFeed/ActivityFeed.vue.d.ts +18 -0
- package/dist/presentation/display/activityFeed/ActivityItem.vue.d.ts +29 -0
- package/dist/presentation/display/activityFeed/index.d.ts +2 -0
- package/dist/presentation/display/animatedNumber/AnimatedNumber.vue.d.ts +34 -0
- package/dist/presentation/display/animatedNumber/index.d.ts +1 -0
- package/dist/presentation/display/annotationMarker/AnnotationMarker.vue.d.ts +43 -0
- package/dist/presentation/display/annotationMarker/index.d.ts +1 -0
- package/dist/presentation/display/audioPlayer/AudioPlayer.vue.d.ts +38 -0
- package/dist/presentation/display/audioPlayer/index.d.ts +1 -0
- package/dist/presentation/display/audioWaveform/AudioWaveform.vue.d.ts +57 -0
- package/dist/presentation/display/audioWaveform/index.d.ts +1 -0
- package/dist/presentation/display/avatar/Avatar.variants.d.ts +312 -0
- package/dist/presentation/display/avatar/Avatar.vue.d.ts +49 -0
- package/dist/presentation/display/avatar/index.d.ts +2 -0
- package/dist/presentation/display/avatarGroup/AvatarGroup.vue.d.ts +25 -0
- package/dist/presentation/display/avatarGroup/index.d.ts +1 -0
- package/dist/presentation/display/badge/Badge.variants.d.ts +128 -0
- package/dist/presentation/display/badge/Badge.vue.d.ts +20 -0
- package/dist/presentation/display/badge/index.d.ts +2 -0
- package/dist/presentation/display/badgeOverlay/BadgeOverlay.vue.d.ts +24 -0
- package/dist/presentation/display/badgeOverlay/index.d.ts +1 -0
- package/dist/presentation/display/card/Card.vue.d.ts +32 -0
- package/dist/presentation/display/card/CardBody.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardDescription.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardFooter.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardHeader.vue.d.ts +12 -0
- package/dist/presentation/display/card/CardTitle.vue.d.ts +12 -0
- package/dist/presentation/display/card/index.d.ts +6 -0
- package/dist/presentation/display/carousel/Carousel.vue.d.ts +34 -0
- package/dist/presentation/display/carousel/CarouselContext.d.ts +38 -0
- package/dist/presentation/display/carousel/CarouselDot.vue.d.ts +9 -0
- package/dist/presentation/display/carousel/CarouselDots.vue.d.ts +7 -0
- package/dist/presentation/display/carousel/CarouselNext.vue.d.ts +12 -0
- package/dist/presentation/display/carousel/CarouselPrev.vue.d.ts +12 -0
- package/dist/presentation/display/carousel/CarouselSlide.vue.d.ts +14 -0
- package/dist/presentation/display/carousel/CarouselSlides.vue.d.ts +14 -0
- package/dist/presentation/display/carousel/CarouselViewport.vue.d.ts +14 -0
- package/dist/presentation/display/carousel/index.d.ts +10 -0
- package/dist/presentation/display/chatBubble/ChatBubble.vue.d.ts +79 -0
- package/dist/presentation/display/chatBubble/index.d.ts +1 -0
- package/dist/presentation/display/code/Code.variants.d.ts +48 -0
- package/dist/presentation/display/code/Code.vue.d.ts +17 -0
- package/dist/presentation/display/code/index.d.ts +2 -0
- package/dist/presentation/display/collapsible/Collapsible.vue.d.ts +40 -0
- package/dist/presentation/display/collapsible/CollapsibleContent.vue.d.ts +18 -0
- package/dist/presentation/display/collapsible/CollapsibleContentInner.vue.d.ts +23 -0
- package/dist/presentation/display/collapsible/CollapsibleContext.d.ts +17 -0
- package/dist/presentation/display/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
- package/dist/presentation/display/collapsible/index.d.ts +4 -0
- package/dist/presentation/display/commentThread/Comment.vue.d.ts +39 -0
- package/dist/presentation/display/commentThread/CommentThread.vue.d.ts +14 -0
- package/dist/presentation/display/commentThread/index.d.ts +2 -0
- package/dist/presentation/display/confetti/Confetti.vue.d.ts +40 -0
- package/dist/presentation/display/confetti/index.d.ts +1 -0
- package/dist/presentation/display/countBadge/CountBadge.vue.d.ts +24 -0
- package/dist/presentation/display/countBadge/index.d.ts +1 -0
- package/dist/presentation/display/countUp/CountUp.vue.d.ts +40 -0
- package/dist/presentation/display/countUp/index.d.ts +1 -0
- package/dist/presentation/display/dataGrid/CellEditor.vue.d.ts +29 -0
- package/dist/presentation/display/dataGrid/DataGrid.vue.d.ts +47 -0
- package/dist/presentation/display/dataGrid/DataGridTypes.d.ts +65 -0
- package/dist/presentation/display/dataGrid/index.d.ts +2 -0
- package/dist/presentation/display/dataTable/DataTable.vue.d.ts +91 -0
- package/dist/presentation/display/dataTable/index.d.ts +1 -0
- package/dist/presentation/display/descriptionList/DescriptionList.vue.d.ts +54 -0
- package/dist/presentation/display/descriptionList/index.d.ts +1 -0
- package/dist/presentation/display/diffViewer/DiffViewer.vue.d.ts +38 -0
- package/dist/presentation/display/diffViewer/index.d.ts +1 -0
- package/dist/presentation/display/emptyState/EmptyState.vue.d.ts +43 -0
- package/dist/presentation/display/emptyState/index.d.ts +1 -0
- package/dist/presentation/display/eventCalendar/AgendaView.vue.d.ts +13 -0
- package/dist/presentation/display/eventCalendar/EventCalendar.vue.d.ts +41 -0
- package/dist/presentation/display/eventCalendar/EventCalendarTypes.d.ts +28 -0
- package/dist/presentation/display/eventCalendar/MonthView.vue.d.ts +17 -0
- package/dist/presentation/display/eventCalendar/TimeGridView.vue.d.ts +18 -0
- package/dist/presentation/display/eventCalendar/index.d.ts +2 -0
- package/dist/presentation/display/eyebrow/Eyebrow.vue.d.ts +32 -0
- package/dist/presentation/display/eyebrow/index.d.ts +1 -0
- package/dist/presentation/display/featureCard/FeatureCard.vue.d.ts +83 -0
- package/dist/presentation/display/featureCard/index.d.ts +1 -0
- package/dist/presentation/display/frameGlyph/FrameGlyph.vue.d.ts +19 -0
- package/dist/presentation/display/frameGlyph/index.d.ts +1 -0
- package/dist/presentation/display/gantt/Gantt.vue.d.ts +58 -0
- package/dist/presentation/display/gantt/index.d.ts +1 -0
- package/dist/presentation/display/gradientText/GradientText.vue.d.ts +54 -0
- package/dist/presentation/display/gradientText/index.d.ts +1 -0
- package/dist/presentation/display/heading/Heading.variants.d.ts +201 -0
- package/dist/presentation/display/heading/Heading.vue.d.ts +26 -0
- package/dist/presentation/display/heading/index.d.ts +2 -0
- package/dist/presentation/display/heatmapCalendar/HeatmapCalendar.vue.d.ts +61 -0
- package/dist/presentation/display/heatmapCalendar/index.d.ts +1 -0
- package/dist/presentation/display/highlight/Highlight.vue.d.ts +20 -0
- package/dist/presentation/display/highlight/index.d.ts +1 -0
- package/dist/presentation/display/image/Image.vue.d.ts +15 -0
- package/dist/presentation/display/image/index.d.ts +1 -0
- package/dist/presentation/display/index.d.ts +73 -0
- package/dist/presentation/display/index.js +192 -0
- package/dist/presentation/display/index.js.map +1 -0
- package/dist/presentation/display/infoRow/InfoRow.vue.d.ts +39 -0
- package/dist/presentation/display/infoRow/index.d.ts +1 -0
- package/dist/presentation/display/kbd/Kbd.vue.d.ts +13 -0
- package/dist/presentation/display/kbd/index.d.ts +1 -0
- package/dist/presentation/display/keyboardShortcut/KeyboardShortcut.vue.d.ts +13 -0
- package/dist/presentation/display/keyboardShortcut/index.d.ts +1 -0
- package/dist/presentation/display/list/List.variants.d.ts +112 -0
- package/dist/presentation/display/list/List.vue.d.ts +23 -0
- package/dist/presentation/display/list/ListItem.vue.d.ts +23 -0
- package/dist/presentation/display/list/index.d.ts +3 -0
- package/dist/presentation/display/mark/Mark.vue.d.ts +13 -0
- package/dist/presentation/display/mark/index.d.ts +1 -0
- package/dist/presentation/display/marquee/Marquee.vue.d.ts +39 -0
- package/dist/presentation/display/marquee/index.d.ts +1 -0
- package/dist/presentation/display/messageList/DaySeparator.vue.d.ts +17 -0
- package/dist/presentation/display/messageList/MessageList.vue.d.ts +39 -0
- package/dist/presentation/display/messageList/index.d.ts +2 -0
- package/dist/presentation/display/metaInline/MetaInline.vue.d.ts +21 -0
- package/dist/presentation/display/metaInline/index.d.ts +1 -0
- package/dist/presentation/display/metricChip/MetricChip.vue.d.ts +54 -0
- package/dist/presentation/display/metricChip/index.d.ts +1 -0
- package/dist/presentation/display/moduleGlyphs/CellsGlyph.vue.d.ts +13 -0
- package/dist/presentation/display/moduleGlyphs/DotsGlyph.vue.d.ts +9 -0
- package/dist/presentation/display/moduleGlyphs/HorizontalBarsGlyph.vue.d.ts +9 -0
- package/dist/presentation/display/moduleGlyphs/ModuleGlyphs.d.ts +15 -0
- package/dist/presentation/display/moduleGlyphs/VerticalBarsGlyph.vue.d.ts +9 -0
- package/dist/presentation/display/moduleGlyphs/index.d.ts +5 -0
- package/dist/presentation/display/nodeEditor/NodeEditor.vue.d.ts +58 -0
- package/dist/presentation/display/nodeEditor/index.d.ts +1 -0
- package/dist/presentation/display/notificationDot/NotificationDot.vue.d.ts +47 -0
- package/dist/presentation/display/notificationDot/index.d.ts +1 -0
- package/dist/presentation/display/pdfViewer/PDFViewer.vue.d.ts +40 -0
- package/dist/presentation/display/pdfViewer/index.d.ts +1 -0
- package/dist/presentation/display/pricingCard/PricingCard.vue.d.ts +107 -0
- package/dist/presentation/display/pricingCard/index.d.ts +1 -0
- package/dist/presentation/display/quote/Quote.vue.d.ts +13 -0
- package/dist/presentation/display/quote/index.d.ts +1 -0
- package/dist/presentation/display/radiusGlyph/RadiusGlyph.vue.d.ts +23 -0
- package/dist/presentation/display/radiusGlyph/index.d.ts +1 -0
- package/dist/presentation/display/reactionBar/ReactionBar.vue.d.ts +47 -0
- package/dist/presentation/display/reactionBar/index.d.ts +1 -0
- package/dist/presentation/display/scheduleView/ScheduleView.vue.d.ts +58 -0
- package/dist/presentation/display/scheduleView/index.d.ts +1 -0
- package/dist/presentation/display/scrollReveal/ScrollReveal.vue.d.ts +50 -0
- package/dist/presentation/display/scrollReveal/index.d.ts +1 -0
- package/dist/presentation/display/sectionHeader/SectionHeader.vue.d.ts +49 -0
- package/dist/presentation/display/sectionHeader/index.d.ts +1 -0
- package/dist/presentation/display/separator/Separator.vue.d.ts +14 -0
- package/dist/presentation/display/separator/index.d.ts +1 -0
- package/dist/presentation/display/snippet/Snippet.vue.d.ts +21 -0
- package/dist/presentation/display/snippet/index.d.ts +1 -0
- package/dist/presentation/display/sortable/Sortable.vue.d.ts +18 -0
- package/dist/presentation/display/sortable/SortableContext.d.ts +22 -0
- package/dist/presentation/display/sortable/SortableHandle.vue.d.ts +14 -0
- package/dist/presentation/display/sortable/SortableItem.vue.d.ts +16 -0
- package/dist/presentation/display/sortable/index.d.ts +4 -0
- package/dist/presentation/display/sparkline/Sparkline.vue.d.ts +62 -0
- package/dist/presentation/display/sparkline/index.d.ts +1 -0
- package/dist/presentation/display/stat/Stat.vue.d.ts +48 -0
- package/dist/presentation/display/stat/index.d.ts +1 -0
- package/dist/presentation/display/status/Status.vue.d.ts +35 -0
- package/dist/presentation/display/status/index.d.ts +1 -0
- package/dist/presentation/display/stepCard/StepCard.vue.d.ts +85 -0
- package/dist/presentation/display/stepCard/index.d.ts +1 -0
- package/dist/presentation/display/swipeActions/SwipeActions.vue.d.ts +28 -0
- package/dist/presentation/display/swipeActions/index.d.ts +1 -0
- package/dist/presentation/display/table/Table.vue.d.ts +30 -0
- package/dist/presentation/display/table/TableBody.vue.d.ts +12 -0
- package/dist/presentation/display/table/TableCaption.vue.d.ts +12 -0
- package/dist/presentation/display/table/TableCell.vue.d.ts +14 -0
- package/dist/presentation/display/table/TableContext.d.ts +46 -0
- package/dist/presentation/display/table/TableFooter.vue.d.ts +12 -0
- package/dist/presentation/display/table/TableHead.vue.d.ts +26 -0
- package/dist/presentation/display/table/TableHeaderCell.vue.d.ts +14 -0
- package/dist/presentation/display/table/TableRow.vue.d.ts +12 -0
- package/dist/presentation/display/table/index.d.ts +9 -0
- package/dist/presentation/display/tabs/Tabs.vue.d.ts +33 -0
- package/dist/presentation/display/tabs/TabsContext.d.ts +34 -0
- package/dist/presentation/display/tabs/TabsList.vue.d.ts +256 -0
- package/dist/presentation/display/tabs/TabsPanel.vue.d.ts +16 -0
- package/dist/presentation/display/tabs/TabsTab.vue.d.ts +20 -0
- package/dist/presentation/display/tabs/index.d.ts +5 -0
- package/dist/presentation/display/tag/Tag.variants.d.ts +84 -0
- package/dist/presentation/display/tag/Tag.vue.d.ts +25 -0
- package/dist/presentation/display/tag/index.d.ts +2 -0
- package/dist/presentation/display/text/Text.variants.d.ts +301 -0
- package/dist/presentation/display/text/Text.vue.d.ts +33 -0
- package/dist/presentation/display/text/index.d.ts +2 -0
- package/dist/presentation/display/threadView/ThreadView.vue.d.ts +46 -0
- package/dist/presentation/display/threadView/index.d.ts +1 -0
- package/dist/presentation/display/tilt/Tilt.vue.d.ts +31 -0
- package/dist/presentation/display/tilt/index.d.ts +1 -0
- package/dist/presentation/display/timeline/Timeline.vue.d.ts +19 -0
- package/dist/presentation/display/timeline/TimelineContext.d.ts +40 -0
- package/dist/presentation/display/timeline/TimelineDescription.vue.d.ts +14 -0
- package/dist/presentation/display/timeline/TimelineItem.vue.d.ts +22 -0
- package/dist/presentation/display/timeline/TimelineTitle.vue.d.ts +14 -0
- package/dist/presentation/display/timeline/index.d.ts +5 -0
- package/dist/presentation/display/tooltip/Tooltip.vue.d.ts +53 -0
- package/dist/presentation/display/tooltip/index.d.ts +1 -0
- package/dist/presentation/display/tree/Tree.vue.d.ts +275 -0
- package/dist/presentation/display/tree/TreeContext.d.ts +29 -0
- package/dist/presentation/display/tree/TreeGroup.vue.d.ts +28 -0
- package/dist/presentation/display/tree/TreeGroupContent.vue.d.ts +17 -0
- package/dist/presentation/display/tree/TreeItem.vue.d.ts +20 -0
- package/dist/presentation/display/tree/TreeNodeRow.vue.d.ts +27 -0
- package/dist/presentation/display/tree/index.d.ts +4 -0
- package/dist/presentation/display/typewriter/Typewriter.vue.d.ts +32 -0
- package/dist/presentation/display/typewriter/index.d.ts +1 -0
- package/dist/presentation/display/videoPlayer/VideoPlayer.vue.d.ts +55 -0
- package/dist/presentation/display/videoPlayer/index.d.ts +1 -0
- package/dist/presentation/feedback/alert/Alert.vue.d.ts +41 -0
- package/dist/presentation/feedback/alert/index.d.ts +1 -0
- package/dist/presentation/feedback/alertSimple/AlertSimple.variants.d.ts +61 -0
- package/dist/presentation/feedback/alertSimple/AlertSimple.vue.d.ts +17 -0
- package/dist/presentation/feedback/alertSimple/index.d.ts +2 -0
- package/dist/presentation/feedback/banner/Banner.vue.d.ts +41 -0
- package/dist/presentation/feedback/banner/index.d.ts +1 -0
- package/dist/presentation/feedback/bannerSimple/BannerSimple.variants.d.ts +61 -0
- package/dist/presentation/feedback/bannerSimple/BannerSimple.vue.d.ts +17 -0
- package/dist/presentation/feedback/bannerSimple/index.d.ts +2 -0
- package/dist/presentation/feedback/callout/Callout.vue.d.ts +27 -0
- package/dist/presentation/feedback/callout/index.d.ts +1 -0
- package/dist/presentation/feedback/feedbackToasts/FeedbackToasts.vue.d.ts +18 -0
- package/dist/presentation/feedback/feedbackToasts/index.d.ts +1 -0
- package/dist/presentation/feedback/index.d.ts +27 -0
- package/dist/presentation/feedback/index.js +49 -0
- package/dist/presentation/feedback/index.js.map +1 -0
- package/dist/presentation/feedback/inlineSpinner/InlineSpinner.vue.d.ts +22 -0
- package/dist/presentation/feedback/inlineSpinner/index.d.ts +1 -0
- package/dist/presentation/feedback/liveCursor/LiveCursor.vue.d.ts +33 -0
- package/dist/presentation/feedback/liveCursor/index.d.ts +1 -0
- package/dist/presentation/feedback/loadingOverlay/LoadingOverlay.vue.d.ts +36 -0
- package/dist/presentation/feedback/loadingOverlay/index.d.ts +1 -0
- package/dist/presentation/feedback/loadingState/LoadingState.vue.d.ts +26 -0
- package/dist/presentation/feedback/loadingState/index.d.ts +1 -0
- package/dist/presentation/feedback/meterBar/MeterBar.vue.d.ts +21 -0
- package/dist/presentation/feedback/meterBar/index.d.ts +1 -0
- package/dist/presentation/feedback/notificationCenter/NotificationCenter.vue.d.ts +30 -0
- package/dist/presentation/feedback/notificationCenter/NotificationItem.vue.d.ts +40 -0
- package/dist/presentation/feedback/notificationCenter/index.d.ts +2 -0
- package/dist/presentation/feedback/onboardingChecklist/OnboardingChecklist.vue.d.ts +56 -0
- package/dist/presentation/feedback/onboardingChecklist/OnboardingChecklistTask.vue.d.ts +27 -0
- package/dist/presentation/feedback/onboardingChecklist/index.d.ts +3 -0
- package/dist/presentation/feedback/presenceIndicator/PresenceIndicator.vue.d.ts +34 -0
- package/dist/presentation/feedback/presenceIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/progressBar/ProgressBar.variants.d.ts +104 -0
- package/dist/presentation/feedback/progressBar/ProgressBar.vue.d.ts +19 -0
- package/dist/presentation/feedback/progressBar/index.d.ts +2 -0
- package/dist/presentation/feedback/progressCircle/ProgressCircle.vue.d.ts +21 -0
- package/dist/presentation/feedback/progressCircle/index.d.ts +1 -0
- package/dist/presentation/feedback/progressSteps/ProgressSteps.vue.d.ts +16 -0
- package/dist/presentation/feedback/progressSteps/index.d.ts +1 -0
- package/dist/presentation/feedback/skeleton/Skeleton.variants.d.ts +57 -0
- package/dist/presentation/feedback/skeleton/Skeleton.vue.d.ts +17 -0
- package/dist/presentation/feedback/skeleton/index.d.ts +2 -0
- package/dist/presentation/feedback/spinner/Spinner.variants.d.ts +115 -0
- package/dist/presentation/feedback/spinner/Spinner.vue.d.ts +17 -0
- package/dist/presentation/feedback/spinner/index.d.ts +2 -0
- package/dist/presentation/feedback/statusIndicator/StatusIndicator.vue.d.ts +31 -0
- package/dist/presentation/feedback/statusIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/toast/Toast.vue.d.ts +41 -0
- package/dist/presentation/feedback/toast/index.d.ts +1 -0
- package/dist/presentation/feedback/toastSimple/ToastSimple.variants.d.ts +61 -0
- package/dist/presentation/feedback/toastSimple/ToastSimple.vue.d.ts +20 -0
- package/dist/presentation/feedback/toastSimple/index.d.ts +2 -0
- package/dist/presentation/feedback/toaster/Toaster.vue.d.ts +84 -0
- package/dist/presentation/feedback/toaster/index.d.ts +1 -0
- package/dist/presentation/feedback/tour/Tour.vue.d.ts +45 -0
- package/dist/presentation/feedback/tour/index.d.ts +1 -0
- package/dist/presentation/feedback/trendIndicator/TrendIndicator.vue.d.ts +32 -0
- package/dist/presentation/feedback/trendIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/typingIndicator/TypingIndicator.vue.d.ts +36 -0
- package/dist/presentation/feedback/typingIndicator/index.d.ts +1 -0
- package/dist/presentation/feedback/undoBar/UndoBar.vue.d.ts +34 -0
- package/dist/presentation/feedback/undoBar/index.d.ts +1 -0
- package/dist/presentation/forms/ColorExtensions.d.ts +37 -0
- package/dist/presentation/forms/DateExtensions.d.ts +70 -0
- package/dist/presentation/forms/InputStyles.d.ts +228 -0
- package/dist/presentation/forms/MonthGrid.vue.d.ts +40 -0
- package/dist/presentation/forms/addressForm/AddressForm.vue.d.ts +54 -0
- package/dist/presentation/forms/addressForm/index.d.ts +1 -0
- package/dist/presentation/forms/calendar/Calendar.vue.d.ts +33 -0
- package/dist/presentation/forms/calendar/index.d.ts +1 -0
- package/dist/presentation/forms/characterCount/CharacterCount.vue.d.ts +15 -0
- package/dist/presentation/forms/characterCount/index.d.ts +1 -0
- package/dist/presentation/forms/chatComposer/ChatComposer.vue.d.ts +74 -0
- package/dist/presentation/forms/chatComposer/index.d.ts +1 -0
- package/dist/presentation/forms/checkbox/Checkbox.variants.d.ts +133 -0
- package/dist/presentation/forms/checkbox/Checkbox.vue.d.ts +48 -0
- package/dist/presentation/forms/checkbox/index.d.ts +2 -0
- package/dist/presentation/forms/checkboxField/CheckboxField.vue.d.ts +35 -0
- package/dist/presentation/forms/checkboxField/index.d.ts +1 -0
- package/dist/presentation/forms/checkboxGroup/CheckboxGroup.vue.d.ts +39 -0
- package/dist/presentation/forms/checkboxGroup/CheckboxGroupContext.d.ts +14 -0
- package/dist/presentation/forms/checkboxGroup/index.d.ts +2 -0
- package/dist/presentation/forms/choiceCard/ChoiceCard.vue.d.ts +35 -0
- package/dist/presentation/forms/choiceCard/index.d.ts +1 -0
- package/dist/presentation/forms/codeEditor/CodeEditor.vue.d.ts +50 -0
- package/dist/presentation/forms/codeEditor/index.d.ts +1 -0
- package/dist/presentation/forms/colorArea/ColorArea.vue.d.ts +40 -0
- package/dist/presentation/forms/colorArea/index.d.ts +1 -0
- package/dist/presentation/forms/colorField/ColorField.vue.d.ts +44 -0
- package/dist/presentation/forms/colorField/index.d.ts +1 -0
- package/dist/presentation/forms/colorPicker/ColorPicker.vue.d.ts +62 -0
- package/dist/presentation/forms/colorPicker/index.d.ts +1 -0
- package/dist/presentation/forms/colorSlider/ColorSlider.vue.d.ts +47 -0
- package/dist/presentation/forms/colorSlider/index.d.ts +1 -0
- package/dist/presentation/forms/colorSwatch/ColorSwatch.variants.d.ts +186 -0
- package/dist/presentation/forms/colorSwatch/ColorSwatch.vue.d.ts +33 -0
- package/dist/presentation/forms/colorSwatch/index.d.ts +2 -0
- package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +27 -0
- package/dist/presentation/forms/colorSwatchPicker/ColorSwatchPicker.vue.d.ts +41 -0
- package/dist/presentation/forms/colorSwatchPicker/index.d.ts +1 -0
- package/dist/presentation/forms/colorWheel/ColorWheel.vue.d.ts +34 -0
- package/dist/presentation/forms/colorWheel/index.d.ts +1 -0
- package/dist/presentation/forms/combobox/Combobox.vue.d.ts +60 -0
- package/dist/presentation/forms/combobox/ComboboxContent.vue.d.ts +39 -0
- package/dist/presentation/forms/combobox/ComboboxContext.d.ts +53 -0
- package/dist/presentation/forms/combobox/ComboboxEmpty.vue.d.ts +10 -0
- package/dist/presentation/forms/combobox/ComboboxGroup.vue.d.ts +19 -0
- package/dist/presentation/forms/combobox/ComboboxInput.vue.d.ts +12 -0
- package/dist/presentation/forms/combobox/ComboboxItem.vue.d.ts +28 -0
- package/dist/presentation/forms/combobox/ComboboxSeparator.vue.d.ts +3 -0
- package/dist/presentation/forms/combobox/index.d.ts +8 -0
- package/dist/presentation/forms/cronInput/CronInput.vue.d.ts +68 -0
- package/dist/presentation/forms/cronInput/index.d.ts +1 -0
- package/dist/presentation/forms/currencyInput/CurrencyInput.vue.d.ts +12 -0
- package/dist/presentation/forms/currencyInput/index.d.ts +1 -0
- package/dist/presentation/forms/dateField/DateField.vue.d.ts +42 -0
- package/dist/presentation/forms/dateField/index.d.ts +1 -0
- package/dist/presentation/forms/datePicker/DatePicker.vue.d.ts +53 -0
- package/dist/presentation/forms/datePicker/index.d.ts +1 -0
- package/dist/presentation/forms/dateRangePicker/DateRangePicker.vue.d.ts +54 -0
- package/dist/presentation/forms/dateRangePicker/index.d.ts +1 -0
- package/dist/presentation/forms/dateTimeField/DateTimeField.vue.d.ts +42 -0
- package/dist/presentation/forms/dateTimeField/index.d.ts +1 -0
- package/dist/presentation/forms/editable/Editable.vue.d.ts +60 -0
- package/dist/presentation/forms/editable/EditableCancel.vue.d.ts +12 -0
- package/dist/presentation/forms/editable/EditableContext.d.ts +37 -0
- package/dist/presentation/forms/editable/EditableInput.vue.d.ts +12 -0
- package/dist/presentation/forms/editable/EditablePreview.vue.d.ts +7 -0
- package/dist/presentation/forms/editable/EditableSubmit.vue.d.ts +14 -0
- package/dist/presentation/forms/editable/index.d.ts +7 -0
- package/dist/presentation/forms/emailInput/EmailInput.vue.d.ts +43 -0
- package/dist/presentation/forms/emailInput/index.d.ts +1 -0
- package/dist/presentation/forms/emojiPicker/CategoryNav.vue.d.ts +19 -0
- package/dist/presentation/forms/emojiPicker/EmojiGrid.vue.d.ts +26 -0
- package/dist/presentation/forms/emojiPicker/EmojiPicker.variants.d.ts +77 -0
- package/dist/presentation/forms/emojiPicker/EmojiPicker.vue.d.ts +45 -0
- package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +68 -0
- package/dist/presentation/forms/emojiPicker/EmojiTile.vue.d.ts +22 -0
- package/dist/presentation/forms/emojiPicker/index.d.ts +4 -0
- package/dist/presentation/forms/emojiPicker/useEmojiPicker.d.ts +45 -0
- package/dist/presentation/forms/emojiSizeControl/EmojiSizeControl.variants.d.ts +23 -0
- package/dist/presentation/forms/emojiSizeControl/EmojiSizeControl.vue.d.ts +32 -0
- package/dist/presentation/forms/emojiSizeControl/index.d.ts +2 -0
- package/dist/presentation/forms/field/Field.vue.d.ts +37 -0
- package/dist/presentation/forms/field/index.d.ts +6 -0
- package/dist/presentation/forms/fieldset/Fieldset.vue.d.ts +22 -0
- package/dist/presentation/forms/fieldset/index.d.ts +1 -0
- package/dist/presentation/forms/filePicker/FilePicker.vue.d.ts +34 -0
- package/dist/presentation/forms/filePicker/index.d.ts +1 -0
- package/dist/presentation/forms/fileUpload/FileUpload.vue.d.ts +60 -0
- package/dist/presentation/forms/fileUpload/index.d.ts +1 -0
- package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +43 -0
- package/dist/presentation/forms/fontPicker/index.d.ts +1 -0
- package/dist/presentation/forms/formErrorMessage/FormErrorMessage.vue.d.ts +24 -0
- package/dist/presentation/forms/formErrorMessage/index.d.ts +1 -0
- package/dist/presentation/forms/formHelperText/FormHelperText.vue.d.ts +19 -0
- package/dist/presentation/forms/formHelperText/index.d.ts +1 -0
- package/dist/presentation/forms/gradientPicker/GradientPicker.vue.d.ts +50 -0
- package/dist/presentation/forms/gradientPicker/index.d.ts +1 -0
- package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +45 -0
- package/dist/presentation/forms/iconPicker/index.d.ts +1 -0
- package/dist/presentation/forms/index.d.ts +75 -0
- package/dist/presentation/forms/index.js +165 -0
- package/dist/presentation/forms/index.js.map +1 -0
- package/dist/presentation/forms/inputAddon/InputAddon.vue.d.ts +20 -0
- package/dist/presentation/forms/inputAddon/index.d.ts +1 -0
- package/dist/presentation/forms/inputGroup/InputGroup.vue.d.ts +19 -0
- package/dist/presentation/forms/inputGroup/index.d.ts +1 -0
- package/dist/presentation/forms/jsonEditor/JSONEditor.vue.d.ts +49 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorContext.d.ts +28 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorHelpers.d.ts +6 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorTextView.vue.d.ts +14 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorTreeNode.vue.d.ts +15 -0
- package/dist/presentation/forms/jsonEditor/JSONEditorTreeView.vue.d.ts +8 -0
- package/dist/presentation/forms/jsonEditor/index.d.ts +2 -0
- package/dist/presentation/forms/keyboardShortcutPicker/KeyboardShortcutPicker.vue.d.ts +43 -0
- package/dist/presentation/forms/keyboardShortcutPicker/index.d.ts +1 -0
- package/dist/presentation/forms/knob/Knob.vue.d.ts +75 -0
- package/dist/presentation/forms/knob/index.d.ts +1 -0
- package/dist/presentation/forms/label/Label.vue.d.ts +34 -0
- package/dist/presentation/forms/label/index.d.ts +1 -0
- package/dist/presentation/forms/labeledInput/LabeledInput.vue.d.ts +23 -0
- package/dist/presentation/forms/labeledInput/index.d.ts +2 -0
- package/dist/presentation/forms/legend/Legend.vue.d.ts +21 -0
- package/dist/presentation/forms/legend/index.d.ts +1 -0
- package/dist/presentation/forms/listbox/Listbox.variants.d.ts +71 -0
- package/dist/presentation/forms/listbox/Listbox.vue.d.ts +70 -0
- package/dist/presentation/forms/listbox/ListboxContext.d.ts +47 -0
- package/dist/presentation/forms/listbox/ListboxEmpty.vue.d.ts +10 -0
- package/dist/presentation/forms/listbox/ListboxGroup.vue.d.ts +20 -0
- package/dist/presentation/forms/listbox/ListboxItem.vue.d.ts +24 -0
- package/dist/presentation/forms/listbox/ListboxSeparator.vue.d.ts +3 -0
- package/dist/presentation/forms/listbox/index.d.ts +7 -0
- package/dist/presentation/forms/markdownEditor/MarkdownEditor.vue.d.ts +73 -0
- package/dist/presentation/forms/markdownEditor/index.d.ts +1 -0
- package/dist/presentation/forms/maskedInput/MaskedInput.vue.d.ts +42 -0
- package/dist/presentation/forms/maskedInput/index.d.ts +1 -0
- package/dist/presentation/forms/multiSelect/MultiSelect.vue.d.ts +52 -0
- package/dist/presentation/forms/multiSelect/MultiSelectContent.vue.d.ts +31 -0
- package/dist/presentation/forms/multiSelect/MultiSelectContext.d.ts +38 -0
- package/dist/presentation/forms/multiSelect/MultiSelectItem.vue.d.ts +25 -0
- package/dist/presentation/forms/multiSelect/MultiSelectTags.vue.d.ts +14 -0
- package/dist/presentation/forms/multiSelect/MultiSelectTrigger.vue.d.ts +20 -0
- package/dist/presentation/forms/multiSelect/index.d.ts +6 -0
- package/dist/presentation/forms/numberInput/NumberInput.vue.d.ts +51 -0
- package/dist/presentation/forms/numberInput/index.d.ts +1 -0
- package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +48 -0
- package/dist/presentation/forms/passwordInput/index.d.ts +1 -0
- package/dist/presentation/forms/passwordStrength/PasswordStrength.vue.d.ts +16 -0
- package/dist/presentation/forms/passwordStrength/index.d.ts +1 -0
- package/dist/presentation/forms/percentInput/PercentInput.vue.d.ts +8 -0
- package/dist/presentation/forms/percentInput/index.d.ts +1 -0
- package/dist/presentation/forms/phoneInput/PhoneInput.vue.d.ts +45 -0
- package/dist/presentation/forms/phoneInput/index.d.ts +1 -0
- package/dist/presentation/forms/pinInput/PinInput.vue.d.ts +46 -0
- package/dist/presentation/forms/pinInput/index.d.ts +1 -0
- package/dist/presentation/forms/radio/Radio.vue.d.ts +35 -0
- package/dist/presentation/forms/radio/index.d.ts +1 -0
- package/dist/presentation/forms/radioField/RadioField.vue.d.ts +35 -0
- package/dist/presentation/forms/radioField/index.d.ts +1 -0
- package/dist/presentation/forms/radioGroup/RadioGroup.vue.d.ts +41 -0
- package/dist/presentation/forms/radioGroup/RadioGroupContext.d.ts +16 -0
- package/dist/presentation/forms/radioGroup/index.d.ts +2 -0
- package/dist/presentation/forms/rangeCalendar/RangeCalendar.vue.d.ts +37 -0
- package/dist/presentation/forms/rangeCalendar/index.d.ts +1 -0
- package/dist/presentation/forms/reactionPicker/ReactionPicker.vue.d.ts +32 -0
- package/dist/presentation/forms/reactionPicker/index.d.ts +1 -0
- package/dist/presentation/forms/recurrenceEditor/RecurrenceEditor.vue.d.ts +88 -0
- package/dist/presentation/forms/recurrenceEditor/index.d.ts +1 -0
- package/dist/presentation/forms/searchInput/SearchInput.vue.d.ts +48 -0
- package/dist/presentation/forms/searchInput/index.d.ts +1 -0
- package/dist/presentation/forms/select/Select.variants.d.ts +263 -0
- package/dist/presentation/forms/select/Select.vue.d.ts +69 -0
- package/dist/presentation/forms/select/SelectContent.vue.d.ts +44 -0
- package/dist/presentation/forms/select/SelectContext.d.ts +76 -0
- package/dist/presentation/forms/select/SelectItem.vue.d.ts +33 -0
- package/dist/presentation/forms/select/SelectTrigger.vue.d.ts +21 -0
- package/dist/presentation/forms/select/SelectValue.vue.d.ts +22 -0
- package/dist/presentation/forms/select/index.d.ts +7 -0
- package/dist/presentation/forms/slider/Slider.vue.d.ts +38 -0
- package/dist/presentation/forms/slider/index.d.ts +1 -0
- package/dist/presentation/forms/stepper/Stepper.vue.d.ts +34 -0
- package/dist/presentation/forms/stepper/StepperContext.d.ts +44 -0
- package/dist/presentation/forms/stepper/StepperList.vue.d.ts +256 -0
- package/dist/presentation/forms/stepper/StepperPanel.vue.d.ts +16 -0
- package/dist/presentation/forms/stepper/StepperStep.vue.d.ts +23 -0
- package/dist/presentation/forms/stepper/index.d.ts +5 -0
- package/dist/presentation/forms/switch/Switch.vue.d.ts +35 -0
- package/dist/presentation/forms/switch/index.d.ts +1 -0
- package/dist/presentation/forms/switchField/SwitchField.vue.d.ts +33 -0
- package/dist/presentation/forms/switchField/index.d.ts +1 -0
- package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +75 -0
- package/dist/presentation/forms/tagsInput/index.d.ts +1 -0
- package/dist/presentation/forms/telInput/TelInput.vue.d.ts +43 -0
- package/dist/presentation/forms/telInput/index.d.ts +1 -0
- package/dist/presentation/forms/textAreaInput/TextAreaInput.vue.d.ts +46 -0
- package/dist/presentation/forms/textAreaInput/index.d.ts +1 -0
- package/dist/presentation/forms/textInput/TextInput.vue.d.ts +43 -0
- package/dist/presentation/forms/textInput/index.d.ts +1 -0
- package/dist/presentation/forms/timeField/TimeField.vue.d.ts +38 -0
- package/dist/presentation/forms/timeField/index.d.ts +1 -0
- package/dist/presentation/forms/timePicker/TimePicker.vue.d.ts +50 -0
- package/dist/presentation/forms/timePicker/index.d.ts +1 -0
- package/dist/presentation/forms/urlInput/UrlInput.vue.d.ts +43 -0
- package/dist/presentation/forms/urlInput/index.d.ts +1 -0
- package/dist/presentation/forms/wizard/Wizard.vue.d.ts +38 -0
- package/dist/presentation/forms/wizard/WizardContext.d.ts +38 -0
- package/dist/presentation/forms/wizard/WizardFooter.vue.d.ts +29 -0
- package/dist/presentation/forms/wizard/WizardStep.vue.d.ts +29 -0
- package/dist/presentation/forms/wizard/WizardSteps.vue.d.ts +7 -0
- package/dist/presentation/forms/wizard/index.d.ts +6 -0
- package/dist/presentation/layout/appShell/AppShell.vue.d.ts +90 -0
- package/dist/presentation/layout/appShell/AppShellAside.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellContent.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellFooter.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellHeader.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellMain.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +20 -0
- package/dist/presentation/layout/appShell/index.d.ts +7 -0
- package/dist/presentation/layout/aspectRatio/AspectRatio.vue.d.ts +18 -0
- package/dist/presentation/layout/aspectRatio/index.d.ts +1 -0
- package/dist/presentation/layout/box/Box.vue.d.ts +19 -0
- package/dist/presentation/layout/box/index.d.ts +1 -0
- package/dist/presentation/layout/center/Center.vue.d.ts +13 -0
- package/dist/presentation/layout/center/index.d.ts +1 -0
- package/dist/presentation/layout/cluster/Cluster.vue.d.ts +22 -0
- package/dist/presentation/layout/cluster/index.d.ts +1 -0
- package/dist/presentation/layout/container/Container.variants.d.ts +84 -0
- package/dist/presentation/layout/container/Container.vue.d.ts +21 -0
- package/dist/presentation/layout/container/index.d.ts +2 -0
- package/dist/presentation/layout/controlGroup/ControlGroup.variants.d.ts +136 -0
- package/dist/presentation/layout/controlGroup/ControlGroup.vue.d.ts +35 -0
- package/dist/presentation/layout/controlGroup/index.d.ts +2 -0
- package/dist/presentation/layout/divider/Divider.variants.d.ts +47 -0
- package/dist/presentation/layout/divider/Divider.vue.d.ts +38 -0
- package/dist/presentation/layout/divider/index.d.ts +2 -0
- package/dist/presentation/layout/flex/Flex.vue.d.ts +18 -0
- package/dist/presentation/layout/flex/index.d.ts +1 -0
- package/dist/presentation/layout/frame/Frame.vue.d.ts +38 -0
- package/dist/presentation/layout/frame/index.d.ts +1 -0
- package/dist/presentation/layout/grid/Grid.variants.d.ts +193 -0
- package/dist/presentation/layout/grid/Grid.vue.d.ts +32 -0
- package/dist/presentation/layout/grid/index.d.ts +2 -0
- package/dist/presentation/layout/hStack/HStack.vue.d.ts +14 -0
- package/dist/presentation/layout/hStack/index.d.ts +1 -0
- package/dist/presentation/layout/index.d.ts +24 -0
- package/dist/presentation/layout/index.js +64 -0
- package/dist/presentation/layout/index.js.map +1 -0
- package/dist/presentation/layout/inline/Inline.vue.d.ts +42 -0
- package/dist/presentation/layout/inline/index.d.ts +1 -0
- package/dist/presentation/layout/navbar/Navbar.variants.d.ts +86 -0
- package/dist/presentation/layout/navbar/Navbar.vue.d.ts +43 -0
- package/dist/presentation/layout/navbar/index.d.ts +2 -0
- package/dist/presentation/layout/overlay/Overlay.variants.d.ts +231 -0
- package/dist/presentation/layout/overlay/Overlay.vue.d.ts +64 -0
- package/dist/presentation/layout/overlay/index.d.ts +2 -0
- package/dist/presentation/layout/pullToRefresh/PullToRefresh.vue.d.ts +22 -0
- package/dist/presentation/layout/pullToRefresh/index.d.ts +1 -0
- package/dist/presentation/layout/resizablePanels/ResizablePanel.vue.d.ts +21 -0
- package/dist/presentation/layout/resizablePanels/ResizablePanels.vue.d.ts +59 -0
- package/dist/presentation/layout/resizablePanels/ResizableSeparator.vue.d.ts +10 -0
- package/dist/presentation/layout/resizablePanels/index.d.ts +4 -0
- package/dist/presentation/layout/scrollArea/ScrollArea.vue.d.ts +31 -0
- package/dist/presentation/layout/scrollArea/index.d.ts +1 -0
- package/dist/presentation/layout/section/Section.variants.d.ts +76 -0
- package/dist/presentation/layout/section/Section.vue.d.ts +33 -0
- package/dist/presentation/layout/section/index.d.ts +2 -0
- package/dist/presentation/layout/spacer/Spacer.vue.d.ts +15 -0
- package/dist/presentation/layout/spacer/index.d.ts +1 -0
- package/dist/presentation/layout/stack/Stack.variants.d.ts +330 -0
- package/dist/presentation/layout/stack/Stack.vue.d.ts +37 -0
- package/dist/presentation/layout/stack/index.d.ts +2 -0
- package/dist/presentation/layout/surface/Surface.vue.d.ts +39 -0
- package/dist/presentation/layout/surface/index.d.ts +1 -0
- package/dist/presentation/layout/twoColumn/TwoColumn.vue.d.ts +28 -0
- package/dist/presentation/layout/twoColumn/index.d.ts +1 -0
- package/dist/presentation/layout/vStack/VStack.vue.d.ts +14 -0
- package/dist/presentation/layout/vStack/index.d.ts +1 -0
- package/dist/presentation/nav/NavHelpers.d.ts +11 -0
- package/dist/presentation/nav/breadcrumb/Breadcrumb.vue.d.ts +27 -0
- package/dist/presentation/nav/breadcrumb/index.d.ts +1 -0
- package/dist/presentation/nav/commandPalette/CommandPalette.vue.d.ts +53 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteContent.vue.d.ts +17 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteContext.d.ts +42 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteEmpty.vue.d.ts +19 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteGroup.vue.d.ts +19 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteInput.vue.d.ts +14 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteItem.vue.d.ts +36 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteList.vue.d.ts +19 -0
- package/dist/presentation/nav/commandPalette/CommandPaletteSeparator.vue.d.ts +12 -0
- package/dist/presentation/nav/commandPalette/index.d.ts +9 -0
- package/dist/presentation/nav/contextMenu/ContextMenu.vue.d.ts +18 -0
- package/dist/presentation/nav/contextMenu/ContextMenuContent.vue.d.ts +29 -0
- package/dist/presentation/nav/contextMenu/ContextMenuContext.d.ts +20 -0
- package/dist/presentation/nav/contextMenu/ContextMenuTrigger.vue.d.ts +27 -0
- package/dist/presentation/nav/contextMenu/index.d.ts +4 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenu.vue.d.ts +44 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenuContent.vue.d.ts +20 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenuContext.d.ts +28 -0
- package/dist/presentation/nav/dropdownMenu/DropdownMenuTrigger.vue.d.ts +24 -0
- package/dist/presentation/nav/dropdownMenu/index.d.ts +4 -0
- package/dist/presentation/nav/index.d.ts +11 -0
- package/dist/presentation/nav/index.js +62 -0
- package/dist/presentation/nav/index.js.map +1 -0
- package/dist/presentation/nav/menu/Menu.variants.d.ts +61 -0
- package/dist/presentation/nav/menu/Menu.vue.d.ts +65 -0
- package/dist/presentation/nav/menu/MenuContext.d.ts +25 -0
- package/dist/presentation/nav/menu/MenuGroup.vue.d.ts +19 -0
- package/dist/presentation/nav/menu/MenuItem.vue.d.ts +33 -0
- package/dist/presentation/nav/menu/MenuLabel.vue.d.ts +20 -0
- package/dist/presentation/nav/menu/MenuSeparator.vue.d.ts +12 -0
- package/dist/presentation/nav/menu/index.d.ts +7 -0
- package/dist/presentation/nav/menubar/Menubar.variants.d.ts +6 -0
- package/dist/presentation/nav/menubar/Menubar.vue.d.ts +274 -0
- package/dist/presentation/nav/menubar/MenubarContent.vue.d.ts +30 -0
- package/dist/presentation/nav/menubar/MenubarContext.d.ts +34 -0
- package/dist/presentation/nav/menubar/MenubarMenu.vue.d.ts +14 -0
- package/dist/presentation/nav/menubar/MenubarTrigger.vue.d.ts +20 -0
- package/dist/presentation/nav/menubar/index.d.ts +5 -0
- package/dist/presentation/nav/navItem/NavItem.vue.d.ts +30 -0
- package/dist/presentation/nav/navItem/index.d.ts +1 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenu.vue.d.ts +33 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuContent.vue.d.ts +20 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuContext.d.ts +24 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuItem.vue.d.ts +16 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuLink.vue.d.ts +20 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuList.vue.d.ts +262 -0
- package/dist/presentation/nav/navigationMenu/NavigationMenuTrigger.vue.d.ts +20 -0
- package/dist/presentation/nav/navigationMenu/index.d.ts +7 -0
- package/dist/presentation/nav/pagination/Pagination.vue.d.ts +24 -0
- package/dist/presentation/nav/pagination/index.d.ts +1 -0
- package/dist/presentation/nav/scrollSpy/ScrollSpy.vue.d.ts +31 -0
- package/dist/presentation/nav/scrollSpy/UseScrollSpy.d.ts +20 -0
- package/dist/presentation/nav/scrollSpy/index.d.ts +2 -0
- package/dist/presentation/nav/tableOfContents/TableOfContents.vue.d.ts +41 -0
- package/dist/presentation/nav/tableOfContents/index.d.ts +1 -0
- package/dist/presentation/overlays/OverlayBody.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayChrome.d.ts +9 -0
- package/dist/presentation/overlays/OverlayCloseButton.vue.d.ts +24 -0
- package/dist/presentation/overlays/OverlayDescription.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayFooter.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayHeader.vue.d.ts +20 -0
- package/dist/presentation/overlays/OverlayHelpers.d.ts +11 -0
- package/dist/presentation/overlays/OverlayTitle.vue.d.ts +20 -0
- package/dist/presentation/overlays/actionSheet/ActionSheet.vue.d.ts +52 -0
- package/dist/presentation/overlays/actionSheet/ActionSheetAction.vue.d.ts +29 -0
- package/dist/presentation/overlays/actionSheet/ActionSheetCancel.vue.d.ts +19 -0
- package/dist/presentation/overlays/actionSheet/index.d.ts +4 -0
- package/dist/presentation/overlays/alertModal/AlertModal.vue.d.ts +28 -0
- package/dist/presentation/overlays/alertModal/AlertModalAction.vue.d.ts +24 -0
- package/dist/presentation/overlays/alertModal/AlertModalCancel.vue.d.ts +19 -0
- package/dist/presentation/overlays/alertModal/AlertModalContent.vue.d.ts +15 -0
- package/dist/presentation/overlays/alertModal/index.d.ts +12 -0
- package/dist/presentation/overlays/backdrop/Backdrop.vue.d.ts +40 -0
- package/dist/presentation/overlays/backdrop/index.d.ts +1 -0
- package/dist/presentation/overlays/bottomSheet/BottomSheet.vue.d.ts +79 -0
- package/dist/presentation/overlays/bottomSheet/index.d.ts +3 -0
- package/dist/presentation/overlays/drawer/Drawer.vue.d.ts +68 -0
- package/dist/presentation/overlays/drawer/DrawerContent.vue.d.ts +54 -0
- package/dist/presentation/overlays/drawer/DrawerTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/drawer/index.d.ts +9 -0
- package/dist/presentation/overlays/hoverCard/HoverCard.vue.d.ts +68 -0
- package/dist/presentation/overlays/hoverCard/HoverCardArrow.vue.d.ts +10 -0
- package/dist/presentation/overlays/hoverCard/HoverCardContent.vue.d.ts +20 -0
- package/dist/presentation/overlays/hoverCard/HoverCardTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/hoverCard/index.d.ts +4 -0
- package/dist/presentation/overlays/index.d.ts +8 -0
- package/dist/presentation/overlays/index.js +62 -0
- package/dist/presentation/overlays/index.js.map +1 -0
- package/dist/presentation/overlays/modal/Modal.vue.d.ts +75 -0
- package/dist/presentation/overlays/modal/ModalContent.vue.d.ts +38 -0
- package/dist/presentation/overlays/modal/ModalTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/modal/index.d.ts +22 -0
- package/dist/presentation/overlays/popover/Popover.vue.d.ts +70 -0
- package/dist/presentation/overlays/popover/PopoverArrow.vue.d.ts +10 -0
- package/dist/presentation/overlays/popover/PopoverContent.vue.d.ts +34 -0
- package/dist/presentation/overlays/popover/PopoverTrigger.vue.d.ts +24 -0
- package/dist/presentation/overlays/popover/index.d.ts +4 -0
- package/dist/query/CreateQueryClient.d.ts +19 -0
- package/dist/query/Devtools.vue.d.ts +10 -0
- package/dist/query/Endpoints.d.ts +14 -0
- package/dist/query/PageHelpers.d.ts +10 -0
- package/dist/query/Persistence.d.ts +40 -0
- package/dist/query/QueryPlugin.d.ts +14 -0
- package/dist/query/QueryProgressBridge.d.ts +16 -0
- package/dist/query/QueryProvider.vue.d.ts +17 -0
- package/dist/query/QueryTestUtils.d.ts +54 -0
- package/dist/query/ToApiError.d.ts +7 -0
- package/dist/query/UseAppInfiniteQuery.d.ts +45 -0
- package/dist/query/UseAppLazyQuery.d.ts +40 -0
- package/dist/query/UseAppMutation.d.ts +32 -0
- package/dist/query/UseAppPaginatedQuery.d.ts +39 -0
- package/dist/query/UseAppQueries.d.ts +43 -0
- package/dist/query/UseAppQuery.d.ts +38 -0
- package/dist/query/UseAppSuspenseQuery.d.ts +42 -0
- package/dist/query/UseOptimisticMutation.d.ts +25 -0
- package/dist/query/UsePrefetchQuery.d.ts +26 -0
- package/dist/query/UseQueryCache.d.ts +31 -0
- package/dist/query/index.d.ts +19 -0
- package/dist/query/index.js +461 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/testing.d.ts +1 -0
- package/dist/query/testing.js +48 -0
- package/dist/query/testing.js.map +1 -0
- package/dist/router/AppErrorBoundary.vue.d.ts +26 -0
- package/dist/router/AppNavLink.vue.d.ts +40 -0
- package/dist/router/CreateAppRouter.d.ts +65 -0
- package/dist/router/DocumentMeta.d.ts +9 -0
- package/dist/router/DocumentTitle.d.ts +18 -0
- package/dist/router/Guards.d.ts +29 -0
- package/dist/router/LazyRoute.d.ts +16 -0
- package/dist/router/NavigationProgress.vue.d.ts +19 -0
- package/dist/router/NavigationProgressModes.d.ts +18 -0
- package/dist/router/NotFound.vue.d.ts +10 -0
- package/dist/router/PageViewTracker.d.ts +23 -0
- package/dist/router/Paths.d.ts +18 -0
- package/dist/router/ProgressProvider.vue.d.ts +19 -0
- package/dist/router/RouteAnnouncer.vue.d.ts +10 -0
- package/dist/router/RouteConfig.d.ts +82 -0
- package/dist/router/RouteHandles.d.ts +24 -0
- package/dist/router/RoutePersistence.d.ts +21 -0
- package/dist/router/UseBreadcrumbs.d.ts +17 -0
- package/dist/router/UseNavigationBlocker.d.ts +41 -0
- package/dist/router/UseNavigationProgress.d.ts +32 -0
- package/dist/router/UsePrefetch.d.ts +19 -0
- package/dist/router/UseRouteNavigating.d.ts +15 -0
- package/dist/router/UseTypedSearchParams.d.ts +17 -0
- package/dist/router/index.d.ts +23 -0
- package/dist/router/index.js +711 -0
- package/dist/router/index.js.map +1 -0
- package/dist/themes.css +15374 -0
- package/dist/themes.json +2898 -0
- package/package.json +432 -0
|
@@ -0,0 +1,2727 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, renderSlot, createElementVNode, normalizeStyle, normalizeClass, useSlots, getCurrentInstance, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, createVNode, unref, Fragment, renderList, shallowRef, ref, onMounted, watch, onUnmounted, createSlots, normalizeProps, guardReactiveProps, provide, withDirectives, vShow, inject } from "vue";
|
|
2
|
+
import { tv } from "tailwind-variants";
|
|
3
|
+
import { c as cn } from "./cn-CzDCF-Ah.js";
|
|
4
|
+
import { P as ProgressTone } from "./ProgressTone-BpLPUptx.js";
|
|
5
|
+
import { X, Check, Minus, TrendingDown, TrendingUp, ChevronDown, Bell } from "lucide-vue-next";
|
|
6
|
+
import { _ as _sfc_main$s } from "./Icon.vue_vue_type_script_setup_true_lang-DgwdLCRR.js";
|
|
7
|
+
import { S as Severity } from "./Severity-D0C5oAt-.js";
|
|
8
|
+
import { _ as _sfc_main$t, S as SpinnerTone } from "./Spinner.vue_vue_type_script_setup_true_lang-C4lNiUOm.js";
|
|
9
|
+
import { S as Size } from "./StyleTokens-Bkz7Dm5L.js";
|
|
10
|
+
import { O as Orientation } from "./Orientation-u-sYunuG.js";
|
|
11
|
+
import { S as StatusTone } from "./StatusTone-BoPK1s09.js";
|
|
12
|
+
import { f as feedbackBus } from "./FeedbackBus-BRbyOMCn.js";
|
|
13
|
+
import { s as surfaceVariants } from "./SurfaceStyles-ChdpGRBO.js";
|
|
14
|
+
import { O as OverlayPosition } from "./OverlayPosition-BNybkMGG.js";
|
|
15
|
+
import { _ as _sfc_main$u } from "./Portal.vue_vue_type_script_setup_true_lang-CF3R0VCZ.js";
|
|
16
|
+
import { P as Presence } from "./Presence-C7IJvh_P.js";
|
|
17
|
+
import { _ as _sfc_main$v } from "./Announce.vue_vue_type_script_setup_true_lang-CDTltiIl.js";
|
|
18
|
+
import { _ as _sfc_main$w } from "./Backdrop.vue_vue_type_script_setup_true_lang-DZUhGY9p.js";
|
|
19
|
+
import { u as useControlled } from "./useControlled-B6M4kTLn.js";
|
|
20
|
+
import { u as useId } from "./useId-CtgAhGrn.js";
|
|
21
|
+
import { u as useReducedMotion } from "./useReducedMotion-B9LqQ3UT.js";
|
|
22
|
+
import { K as Key } from "./KeyboardExtensions-CQlkK53D.js";
|
|
23
|
+
import { r as renderableChildren } from "./Slot-D2lIitvV.js";
|
|
24
|
+
const SkeletonShape = {
|
|
25
|
+
/** Refers to a rounded rectangle block. */
|
|
26
|
+
Rect: "rect",
|
|
27
|
+
/** Refers to a text line (fixed height, small radius). */
|
|
28
|
+
Text: "text",
|
|
29
|
+
/** Refers to a circle (avatar / icon placeholder). */
|
|
30
|
+
Circle: "circle"
|
|
31
|
+
};
|
|
32
|
+
const skeletonVariants = tv({
|
|
33
|
+
base: "animate-pulse bg-muted",
|
|
34
|
+
variants: {
|
|
35
|
+
shape: {
|
|
36
|
+
rect: "rounded-md",
|
|
37
|
+
text: "h-4 rounded-sm",
|
|
38
|
+
circle: "rounded-full"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
shape: "rect"
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
46
|
+
...{ name: "Skeleton", inheritAttrs: false },
|
|
47
|
+
__name: "Skeleton",
|
|
48
|
+
props: {
|
|
49
|
+
shape: {}
|
|
50
|
+
},
|
|
51
|
+
setup(__props, { expose: __expose }) {
|
|
52
|
+
const props = __props;
|
|
53
|
+
const attrs = useAttrs();
|
|
54
|
+
const el = useTemplateRef("el");
|
|
55
|
+
const classes = computed(
|
|
56
|
+
() => cn(skeletonVariants({ shape: props.shape }), attrs.class)
|
|
57
|
+
);
|
|
58
|
+
const rest = computed(() => {
|
|
59
|
+
const { class: _class, ...others } = attrs;
|
|
60
|
+
return others;
|
|
61
|
+
});
|
|
62
|
+
__expose({ el });
|
|
63
|
+
return (_ctx, _cache) => {
|
|
64
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
65
|
+
ref_key: "el",
|
|
66
|
+
ref: el,
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
}, rest.value, { class: classes.value }), [
|
|
69
|
+
renderSlot(_ctx.$slots, "default")
|
|
70
|
+
], 16);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const progressTrackVariants = tv({
|
|
75
|
+
base: "h-2 w-full overflow-hidden rounded-full bg-muted",
|
|
76
|
+
variants: {
|
|
77
|
+
size: {
|
|
78
|
+
sm: "h-1",
|
|
79
|
+
md: "h-2",
|
|
80
|
+
lg: "h-3"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
size: "md"
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
const progressFillVariants = tv({
|
|
88
|
+
base: "h-full rounded-full transition-[width] duration-300",
|
|
89
|
+
variants: {
|
|
90
|
+
tone: {
|
|
91
|
+
brand: "bg-primary",
|
|
92
|
+
success: "bg-success",
|
|
93
|
+
warning: "bg-warning",
|
|
94
|
+
danger: "bg-destructive",
|
|
95
|
+
neutral: "bg-muted-foreground"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
defaultVariants: {
|
|
99
|
+
tone: "brand"
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const _hoisted_1$l = ["aria-label", "aria-valuemax", "aria-valuenow"];
|
|
103
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
104
|
+
...{ name: "ProgressBar", inheritAttrs: false },
|
|
105
|
+
__name: "ProgressBar",
|
|
106
|
+
props: {
|
|
107
|
+
size: {},
|
|
108
|
+
tone: {},
|
|
109
|
+
value: {},
|
|
110
|
+
max: { default: 100 },
|
|
111
|
+
label: {}
|
|
112
|
+
},
|
|
113
|
+
setup(__props, { expose: __expose }) {
|
|
114
|
+
const props = __props;
|
|
115
|
+
const attrs = useAttrs();
|
|
116
|
+
const el = useTemplateRef("el");
|
|
117
|
+
const determinate = computed(() => typeof props.value === "number");
|
|
118
|
+
const pct = computed(
|
|
119
|
+
() => determinate.value ? Math.min(100, Math.max(0, (props.value ?? 0) / props.max * 100)) : void 0
|
|
120
|
+
);
|
|
121
|
+
const classes = computed(
|
|
122
|
+
() => cn(
|
|
123
|
+
progressTrackVariants({
|
|
124
|
+
/* `size` is the 5-member `Size`; the track defines only sm/md/lg.
|
|
125
|
+
Cast to the tv key type — an out-of-range value falls through to
|
|
126
|
+
the tv default. */
|
|
127
|
+
size: props.size
|
|
128
|
+
}),
|
|
129
|
+
attrs.class
|
|
130
|
+
)
|
|
131
|
+
);
|
|
132
|
+
const fillClasses = computed(
|
|
133
|
+
() => cn(
|
|
134
|
+
progressFillVariants({ tone: props.tone }),
|
|
135
|
+
!determinate.value && "w-1/3 animate-[indeterminate_1.4s_ease-in-out_infinite]"
|
|
136
|
+
)
|
|
137
|
+
);
|
|
138
|
+
const rest = computed(() => {
|
|
139
|
+
const { class: _class, ...others } = attrs;
|
|
140
|
+
return others;
|
|
141
|
+
});
|
|
142
|
+
__expose({ el });
|
|
143
|
+
return (_ctx, _cache) => {
|
|
144
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
145
|
+
ref_key: "el",
|
|
146
|
+
ref: el,
|
|
147
|
+
role: "progressbar",
|
|
148
|
+
"aria-label": props.label,
|
|
149
|
+
"aria-valuemin": 0,
|
|
150
|
+
"aria-valuemax": props.max,
|
|
151
|
+
"aria-valuenow": determinate.value ? props.value : void 0
|
|
152
|
+
}, rest.value, { class: classes.value }), [
|
|
153
|
+
createElementVNode("div", {
|
|
154
|
+
class: normalizeClass(fillClasses.value),
|
|
155
|
+
style: normalizeStyle(determinate.value ? { width: `${pct.value}%` } : void 0)
|
|
156
|
+
}, null, 6)
|
|
157
|
+
], 16, _hoisted_1$l);
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
const _hoisted_1$k = ["aria-label", "aria-valuemax", "aria-valuenow"];
|
|
162
|
+
const _hoisted_2$e = ["width", "height", "viewBox"];
|
|
163
|
+
const _hoisted_3$b = ["cx", "cy", "r", "stroke-width"];
|
|
164
|
+
const _hoisted_4$9 = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "transform"];
|
|
165
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
166
|
+
...{ name: "ProgressCircle", inheritAttrs: false },
|
|
167
|
+
__name: "ProgressCircle",
|
|
168
|
+
props: {
|
|
169
|
+
value: {},
|
|
170
|
+
max: { default: 100 },
|
|
171
|
+
size: { default: 40 },
|
|
172
|
+
thickness: { default: 4 },
|
|
173
|
+
tone: { default: ProgressTone.Brand },
|
|
174
|
+
label: {}
|
|
175
|
+
},
|
|
176
|
+
setup(__props, { expose: __expose }) {
|
|
177
|
+
const TONE_CLASS = {
|
|
178
|
+
brand: "text-primary",
|
|
179
|
+
success: "text-success",
|
|
180
|
+
warning: "text-warning",
|
|
181
|
+
danger: "text-destructive",
|
|
182
|
+
neutral: "text-muted-foreground"
|
|
183
|
+
};
|
|
184
|
+
const props = __props;
|
|
185
|
+
const attrs = useAttrs();
|
|
186
|
+
const el = useTemplateRef("el");
|
|
187
|
+
const determinate = computed(() => typeof props.value === "number");
|
|
188
|
+
const radius = computed(() => (props.size - props.thickness) / 2);
|
|
189
|
+
const circumference = computed(() => 2 * Math.PI * radius.value);
|
|
190
|
+
const pct = computed(
|
|
191
|
+
() => determinate.value ? Math.min(100, Math.max(0, (props.value ?? 0) / props.max * 100)) : 25
|
|
192
|
+
);
|
|
193
|
+
const offset = computed(() => circumference.value - pct.value / 100 * circumference.value);
|
|
194
|
+
const classes = computed(
|
|
195
|
+
() => cn(
|
|
196
|
+
"inline-block",
|
|
197
|
+
!determinate.value && "animate-spin",
|
|
198
|
+
TONE_CLASS[props.tone],
|
|
199
|
+
attrs.class
|
|
200
|
+
)
|
|
201
|
+
);
|
|
202
|
+
const boxStyle = computed(() => ({ width: `${props.size}px`, height: `${props.size}px` }));
|
|
203
|
+
const rest = computed(() => {
|
|
204
|
+
const { class: _class, ...others } = attrs;
|
|
205
|
+
return others;
|
|
206
|
+
});
|
|
207
|
+
__expose({ el });
|
|
208
|
+
return (_ctx, _cache) => {
|
|
209
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
210
|
+
ref_key: "el",
|
|
211
|
+
ref: el,
|
|
212
|
+
role: "progressbar",
|
|
213
|
+
"aria-label": props.label,
|
|
214
|
+
"aria-valuemin": 0,
|
|
215
|
+
"aria-valuemax": props.max,
|
|
216
|
+
"aria-valuenow": determinate.value ? props.value : void 0,
|
|
217
|
+
style: boxStyle.value
|
|
218
|
+
}, rest.value, { class: classes.value }), [
|
|
219
|
+
(openBlock(), createElementBlock("svg", {
|
|
220
|
+
width: props.size,
|
|
221
|
+
height: props.size,
|
|
222
|
+
viewBox: `0 0 ${props.size} ${props.size}`
|
|
223
|
+
}, [
|
|
224
|
+
createElementVNode("circle", {
|
|
225
|
+
cx: props.size / 2,
|
|
226
|
+
cy: props.size / 2,
|
|
227
|
+
r: radius.value,
|
|
228
|
+
stroke: "currentColor",
|
|
229
|
+
"stroke-width": props.thickness,
|
|
230
|
+
fill: "none",
|
|
231
|
+
opacity: 0.2
|
|
232
|
+
}, null, 8, _hoisted_3$b),
|
|
233
|
+
createElementVNode("circle", {
|
|
234
|
+
cx: props.size / 2,
|
|
235
|
+
cy: props.size / 2,
|
|
236
|
+
r: radius.value,
|
|
237
|
+
stroke: "currentColor",
|
|
238
|
+
"stroke-width": props.thickness,
|
|
239
|
+
"stroke-linecap": "round",
|
|
240
|
+
fill: "none",
|
|
241
|
+
"stroke-dasharray": circumference.value,
|
|
242
|
+
"stroke-dashoffset": offset.value,
|
|
243
|
+
transform: `rotate(-90 ${props.size / 2} ${props.size / 2})`,
|
|
244
|
+
style: { transition: "stroke-dashoffset 300ms ease" }
|
|
245
|
+
}, null, 8, _hoisted_4$9)
|
|
246
|
+
], 8, _hoisted_2$e))
|
|
247
|
+
], 16, _hoisted_1$k);
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
const alertSimpleVariants = tv({
|
|
252
|
+
base: "rounded-md border px-4 py-3 text-sm",
|
|
253
|
+
variants: {
|
|
254
|
+
severity: {
|
|
255
|
+
info: "border-info-soft bg-info-soft text-info-soft-foreground",
|
|
256
|
+
success: "border-success-soft bg-success-soft text-success-soft-foreground",
|
|
257
|
+
warning: "border-warning-soft bg-warning-soft text-warning-soft-foreground",
|
|
258
|
+
danger: "border-destructive-soft bg-destructive-soft text-destructive-soft-foreground",
|
|
259
|
+
neutral: "border-border bg-muted text-foreground"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
defaultVariants: {
|
|
263
|
+
severity: "info"
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
267
|
+
...{ name: "AlertSimple", inheritAttrs: false },
|
|
268
|
+
__name: "AlertSimple",
|
|
269
|
+
props: {
|
|
270
|
+
severity: {}
|
|
271
|
+
},
|
|
272
|
+
setup(__props, { expose: __expose }) {
|
|
273
|
+
const props = __props;
|
|
274
|
+
const attrs = useAttrs();
|
|
275
|
+
const el = useTemplateRef("el");
|
|
276
|
+
const classes = computed(
|
|
277
|
+
() => cn(alertSimpleVariants({ severity: props.severity }), attrs.class)
|
|
278
|
+
);
|
|
279
|
+
const rest = computed(() => {
|
|
280
|
+
const { class: _class, ...others } = attrs;
|
|
281
|
+
return others;
|
|
282
|
+
});
|
|
283
|
+
__expose({ el });
|
|
284
|
+
return (_ctx, _cache) => {
|
|
285
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
286
|
+
ref_key: "el",
|
|
287
|
+
ref: el,
|
|
288
|
+
role: "status"
|
|
289
|
+
}, rest.value, { class: classes.value }), [
|
|
290
|
+
renderSlot(_ctx.$slots, "default")
|
|
291
|
+
], 16);
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
const bannerSimpleVariants = tv({
|
|
296
|
+
base: "w-full px-6 py-3 text-sm",
|
|
297
|
+
variants: {
|
|
298
|
+
severity: {
|
|
299
|
+
info: "bg-info text-info-foreground",
|
|
300
|
+
success: "bg-success text-success-foreground",
|
|
301
|
+
warning: "bg-warning text-warning-foreground",
|
|
302
|
+
danger: "bg-destructive text-destructive-foreground",
|
|
303
|
+
neutral: "bg-inverse text-inverse-foreground"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
defaultVariants: {
|
|
307
|
+
severity: "info"
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
311
|
+
...{ name: "BannerSimple", inheritAttrs: false },
|
|
312
|
+
__name: "BannerSimple",
|
|
313
|
+
props: {
|
|
314
|
+
severity: {}
|
|
315
|
+
},
|
|
316
|
+
setup(__props, { expose: __expose }) {
|
|
317
|
+
const props = __props;
|
|
318
|
+
const attrs = useAttrs();
|
|
319
|
+
const el = useTemplateRef("el");
|
|
320
|
+
const classes = computed(
|
|
321
|
+
() => cn(bannerSimpleVariants({ severity: props.severity }), attrs.class)
|
|
322
|
+
);
|
|
323
|
+
const rest = computed(() => {
|
|
324
|
+
const { class: _class, ...others } = attrs;
|
|
325
|
+
return others;
|
|
326
|
+
});
|
|
327
|
+
__expose({ el });
|
|
328
|
+
return (_ctx, _cache) => {
|
|
329
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
330
|
+
ref_key: "el",
|
|
331
|
+
ref: el,
|
|
332
|
+
role: "status"
|
|
333
|
+
}, rest.value, { class: classes.value }), [
|
|
334
|
+
renderSlot(_ctx.$slots, "default")
|
|
335
|
+
], 16);
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
340
|
+
...{ name: "ToastSimple", inheritAttrs: false },
|
|
341
|
+
__name: "ToastSimple",
|
|
342
|
+
props: {
|
|
343
|
+
severity: { default: "neutral" }
|
|
344
|
+
},
|
|
345
|
+
setup(__props, { expose: __expose }) {
|
|
346
|
+
const SEVERITY_TO_TONE = {
|
|
347
|
+
info: "info",
|
|
348
|
+
success: "success",
|
|
349
|
+
warning: "warning",
|
|
350
|
+
danger: "danger",
|
|
351
|
+
neutral: "neutral"
|
|
352
|
+
};
|
|
353
|
+
const props = __props;
|
|
354
|
+
const attrs = useAttrs();
|
|
355
|
+
const el = useTemplateRef("el");
|
|
356
|
+
const classes = computed(
|
|
357
|
+
() => cn(
|
|
358
|
+
"pointer-events-auto text-sm",
|
|
359
|
+
surfaceVariants({
|
|
360
|
+
variant: "surface",
|
|
361
|
+
tone: SEVERITY_TO_TONE[props.severity],
|
|
362
|
+
radius: "md",
|
|
363
|
+
padding: "md",
|
|
364
|
+
elevation: 3
|
|
365
|
+
}),
|
|
366
|
+
attrs.class
|
|
367
|
+
)
|
|
368
|
+
);
|
|
369
|
+
const rest = computed(() => {
|
|
370
|
+
const { class: _class, ...others } = attrs;
|
|
371
|
+
return others;
|
|
372
|
+
});
|
|
373
|
+
__expose({ el });
|
|
374
|
+
return (_ctx, _cache) => {
|
|
375
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
376
|
+
ref_key: "el",
|
|
377
|
+
ref: el,
|
|
378
|
+
role: "status",
|
|
379
|
+
"aria-live": "polite"
|
|
380
|
+
}, rest.value, { class: classes.value }), [
|
|
381
|
+
renderSlot(_ctx.$slots, "default")
|
|
382
|
+
], 16);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
const toastSimpleVariants = tv({
|
|
387
|
+
base: "pointer-events-auto rounded-md border bg-popover text-popover-foreground shadow-lg px-4 py-3 text-sm",
|
|
388
|
+
variants: {
|
|
389
|
+
severity: {
|
|
390
|
+
info: "border-info-soft",
|
|
391
|
+
success: "border-success-soft",
|
|
392
|
+
warning: "border-warning-soft",
|
|
393
|
+
danger: "border-destructive-soft",
|
|
394
|
+
neutral: "border-border"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
defaultVariants: {
|
|
398
|
+
severity: "neutral"
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
const _hoisted_1$j = {
|
|
402
|
+
key: 0,
|
|
403
|
+
class: "mt-0.5 shrink-0"
|
|
404
|
+
};
|
|
405
|
+
const _hoisted_2$d = { class: "min-w-0 flex-1" };
|
|
406
|
+
const _hoisted_3$a = {
|
|
407
|
+
key: 0,
|
|
408
|
+
class: "font-medium"
|
|
409
|
+
};
|
|
410
|
+
const _hoisted_4$8 = {
|
|
411
|
+
key: 2,
|
|
412
|
+
class: "mt-2 flex flex-wrap items-center gap-2"
|
|
413
|
+
};
|
|
414
|
+
const _hoisted_5$6 = ["aria-label"];
|
|
415
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
416
|
+
...{ name: "Alert", inheritAttrs: false },
|
|
417
|
+
__name: "Alert",
|
|
418
|
+
props: {
|
|
419
|
+
severity: {},
|
|
420
|
+
icon: {},
|
|
421
|
+
title: {},
|
|
422
|
+
description: {},
|
|
423
|
+
actions: {},
|
|
424
|
+
closeLabel: { default: "Dismiss" }
|
|
425
|
+
},
|
|
426
|
+
emits: ["close"],
|
|
427
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
428
|
+
const CloseIcon = X;
|
|
429
|
+
const props = __props;
|
|
430
|
+
const emit = __emit;
|
|
431
|
+
const attrs = useAttrs();
|
|
432
|
+
const slots = useSlots();
|
|
433
|
+
const instance = getCurrentInstance();
|
|
434
|
+
const inner = useTemplateRef("inner");
|
|
435
|
+
const hasClose = () => Boolean(instance?.vnode.props?.onClose);
|
|
436
|
+
const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
|
|
437
|
+
const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
|
|
438
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
439
|
+
const hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));
|
|
440
|
+
const classes = computed(() => cn("flex items-start gap-3", attrs.class));
|
|
441
|
+
const descriptionClasses = computed(
|
|
442
|
+
() => cn("text-sm", hasTitle.value && "mt-0.5 opacity-90")
|
|
443
|
+
);
|
|
444
|
+
const rest = computed(() => {
|
|
445
|
+
const { class: _class, ...others } = attrs;
|
|
446
|
+
return others;
|
|
447
|
+
});
|
|
448
|
+
const el = computed(() => inner.value?.el ?? null);
|
|
449
|
+
__expose({ el });
|
|
450
|
+
return (_ctx, _cache) => {
|
|
451
|
+
return openBlock(), createBlock(_sfc_main$o, mergeProps({
|
|
452
|
+
ref_key: "inner",
|
|
453
|
+
ref: inner,
|
|
454
|
+
severity: props.severity
|
|
455
|
+
}, rest.value, { class: classes.value }), {
|
|
456
|
+
default: withCtx(() => [
|
|
457
|
+
hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_1$j, [
|
|
458
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
459
|
+
createTextVNode(toDisplayString(props.icon), 1)
|
|
460
|
+
])
|
|
461
|
+
])) : createCommentVNode("", true),
|
|
462
|
+
createElementVNode("div", _hoisted_2$d, [
|
|
463
|
+
hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_3$a, [
|
|
464
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
465
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
466
|
+
])
|
|
467
|
+
])) : createCommentVNode("", true),
|
|
468
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", {
|
|
469
|
+
key: 1,
|
|
470
|
+
class: normalizeClass(descriptionClasses.value)
|
|
471
|
+
}, [
|
|
472
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
473
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
474
|
+
])
|
|
475
|
+
], 2)) : createCommentVNode("", true),
|
|
476
|
+
hasActions.value ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
|
|
477
|
+
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
478
|
+
createTextVNode(toDisplayString(props.actions), 1)
|
|
479
|
+
])
|
|
480
|
+
])) : createCommentVNode("", true),
|
|
481
|
+
renderSlot(_ctx.$slots, "default")
|
|
482
|
+
]),
|
|
483
|
+
hasClose() ? (openBlock(), createElementBlock("button", {
|
|
484
|
+
key: 1,
|
|
485
|
+
type: "button",
|
|
486
|
+
"aria-label": props.closeLabel,
|
|
487
|
+
class: "-mr-1 grid h-6 w-6 shrink-0 place-items-center rounded text-current opacity-60 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current",
|
|
488
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
489
|
+
}, [
|
|
490
|
+
createVNode(unref(_sfc_main$s), {
|
|
491
|
+
icon: unref(CloseIcon),
|
|
492
|
+
size: 14
|
|
493
|
+
}, null, 8, ["icon"])
|
|
494
|
+
], 8, _hoisted_5$6)) : createCommentVNode("", true)
|
|
495
|
+
]),
|
|
496
|
+
_: 3
|
|
497
|
+
}, 16, ["severity", "class"]);
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
const _hoisted_1$i = {
|
|
502
|
+
key: 0,
|
|
503
|
+
class: "shrink-0"
|
|
504
|
+
};
|
|
505
|
+
const _hoisted_2$c = { class: "flex min-w-0 flex-1 items-baseline gap-3" };
|
|
506
|
+
const _hoisted_3$9 = {
|
|
507
|
+
key: 0,
|
|
508
|
+
class: "font-medium"
|
|
509
|
+
};
|
|
510
|
+
const _hoisted_4$7 = {
|
|
511
|
+
key: 1,
|
|
512
|
+
class: "opacity-90"
|
|
513
|
+
};
|
|
514
|
+
const _hoisted_5$5 = {
|
|
515
|
+
key: 1,
|
|
516
|
+
class: "flex shrink-0 items-center gap-2"
|
|
517
|
+
};
|
|
518
|
+
const _hoisted_6$4 = ["aria-label"];
|
|
519
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
520
|
+
...{ name: "Banner", inheritAttrs: false },
|
|
521
|
+
__name: "Banner",
|
|
522
|
+
props: {
|
|
523
|
+
severity: {},
|
|
524
|
+
icon: {},
|
|
525
|
+
title: {},
|
|
526
|
+
description: {},
|
|
527
|
+
actions: {},
|
|
528
|
+
closeLabel: { default: "Dismiss" }
|
|
529
|
+
},
|
|
530
|
+
emits: ["close"],
|
|
531
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
532
|
+
const CloseIcon = X;
|
|
533
|
+
const props = __props;
|
|
534
|
+
const emit = __emit;
|
|
535
|
+
const attrs = useAttrs();
|
|
536
|
+
const slots = useSlots();
|
|
537
|
+
const instance = getCurrentInstance();
|
|
538
|
+
const inner = useTemplateRef("inner");
|
|
539
|
+
const hasClose = () => Boolean(instance?.vnode.props?.onClose);
|
|
540
|
+
const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
|
|
541
|
+
const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
|
|
542
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
543
|
+
const hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));
|
|
544
|
+
const classes = computed(() => cn("flex items-center gap-4", attrs.class));
|
|
545
|
+
const rest = computed(() => {
|
|
546
|
+
const { class: _class, ...others } = attrs;
|
|
547
|
+
return others;
|
|
548
|
+
});
|
|
549
|
+
const el = computed(() => inner.value?.el ?? null);
|
|
550
|
+
__expose({ el });
|
|
551
|
+
return (_ctx, _cache) => {
|
|
552
|
+
return openBlock(), createBlock(_sfc_main$n, mergeProps({
|
|
553
|
+
ref_key: "inner",
|
|
554
|
+
ref: inner,
|
|
555
|
+
severity: props.severity
|
|
556
|
+
}, rest.value, { class: classes.value }), {
|
|
557
|
+
default: withCtx(() => [
|
|
558
|
+
hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_1$i, [
|
|
559
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
560
|
+
createTextVNode(toDisplayString(props.icon), 1)
|
|
561
|
+
])
|
|
562
|
+
])) : createCommentVNode("", true),
|
|
563
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
564
|
+
hasTitle.value ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
|
|
565
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
566
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
567
|
+
])
|
|
568
|
+
])) : createCommentVNode("", true),
|
|
569
|
+
hasDescription.value ? (openBlock(), createElementBlock("span", _hoisted_4$7, [
|
|
570
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
571
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
572
|
+
])
|
|
573
|
+
])) : createCommentVNode("", true),
|
|
574
|
+
renderSlot(_ctx.$slots, "default")
|
|
575
|
+
]),
|
|
576
|
+
hasActions.value ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
577
|
+
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
578
|
+
createTextVNode(toDisplayString(props.actions), 1)
|
|
579
|
+
])
|
|
580
|
+
])) : createCommentVNode("", true),
|
|
581
|
+
hasClose() ? (openBlock(), createElementBlock("button", {
|
|
582
|
+
key: 2,
|
|
583
|
+
type: "button",
|
|
584
|
+
"aria-label": props.closeLabel,
|
|
585
|
+
class: "-mr-2 grid h-7 w-7 shrink-0 place-items-center rounded text-current opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current",
|
|
586
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
587
|
+
}, [
|
|
588
|
+
createVNode(unref(_sfc_main$s), {
|
|
589
|
+
icon: unref(CloseIcon),
|
|
590
|
+
size: 16
|
|
591
|
+
}, null, 8, ["icon"])
|
|
592
|
+
], 8, _hoisted_6$4)) : createCommentVNode("", true)
|
|
593
|
+
]),
|
|
594
|
+
_: 3
|
|
595
|
+
}, 16, ["severity", "class"]);
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
const _hoisted_1$h = {
|
|
600
|
+
key: 0,
|
|
601
|
+
class: "mt-0.5 shrink-0"
|
|
602
|
+
};
|
|
603
|
+
const _hoisted_2$b = { class: "min-w-0 flex-1" };
|
|
604
|
+
const _hoisted_3$8 = {
|
|
605
|
+
key: 0,
|
|
606
|
+
class: "font-medium"
|
|
607
|
+
};
|
|
608
|
+
const _hoisted_4$6 = {
|
|
609
|
+
key: 2,
|
|
610
|
+
class: "mt-2 flex flex-wrap items-center gap-2"
|
|
611
|
+
};
|
|
612
|
+
const _hoisted_5$4 = ["aria-label"];
|
|
613
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
614
|
+
...{ name: "Toast", inheritAttrs: false },
|
|
615
|
+
__name: "Toast",
|
|
616
|
+
props: {
|
|
617
|
+
severity: {},
|
|
618
|
+
icon: {},
|
|
619
|
+
title: {},
|
|
620
|
+
description: {},
|
|
621
|
+
actions: {},
|
|
622
|
+
closeLabel: { default: "Dismiss" }
|
|
623
|
+
},
|
|
624
|
+
emits: ["close"],
|
|
625
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
626
|
+
const CloseIcon = X;
|
|
627
|
+
const props = __props;
|
|
628
|
+
const emit = __emit;
|
|
629
|
+
const attrs = useAttrs();
|
|
630
|
+
const slots = useSlots();
|
|
631
|
+
const instance = getCurrentInstance();
|
|
632
|
+
const inner = useTemplateRef("inner");
|
|
633
|
+
const hasClose = () => Boolean(instance?.vnode.props?.onClose);
|
|
634
|
+
const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
|
|
635
|
+
const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
|
|
636
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
637
|
+
const hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));
|
|
638
|
+
const classes = computed(() => cn("flex items-start gap-3", attrs.class));
|
|
639
|
+
const descriptionClasses = computed(
|
|
640
|
+
() => cn("text-sm", hasTitle.value && "mt-0.5 text-muted-foreground")
|
|
641
|
+
);
|
|
642
|
+
const rest = computed(() => {
|
|
643
|
+
const { class: _class, ...others } = attrs;
|
|
644
|
+
return others;
|
|
645
|
+
});
|
|
646
|
+
const el = computed(() => inner.value?.el ?? null);
|
|
647
|
+
__expose({ el });
|
|
648
|
+
return (_ctx, _cache) => {
|
|
649
|
+
return openBlock(), createBlock(_sfc_main$m, mergeProps({
|
|
650
|
+
ref_key: "inner",
|
|
651
|
+
ref: inner,
|
|
652
|
+
severity: props.severity
|
|
653
|
+
}, rest.value, { class: classes.value }), {
|
|
654
|
+
default: withCtx(() => [
|
|
655
|
+
hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_1$h, [
|
|
656
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
657
|
+
createTextVNode(toDisplayString(props.icon), 1)
|
|
658
|
+
])
|
|
659
|
+
])) : createCommentVNode("", true),
|
|
660
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
661
|
+
hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
|
|
662
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
663
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
664
|
+
])
|
|
665
|
+
])) : createCommentVNode("", true),
|
|
666
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", {
|
|
667
|
+
key: 1,
|
|
668
|
+
class: normalizeClass(descriptionClasses.value)
|
|
669
|
+
}, [
|
|
670
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
671
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
672
|
+
])
|
|
673
|
+
], 2)) : createCommentVNode("", true),
|
|
674
|
+
hasActions.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
675
|
+
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
676
|
+
createTextVNode(toDisplayString(props.actions), 1)
|
|
677
|
+
])
|
|
678
|
+
])) : createCommentVNode("", true),
|
|
679
|
+
renderSlot(_ctx.$slots, "default")
|
|
680
|
+
]),
|
|
681
|
+
hasClose() ? (openBlock(), createElementBlock("button", {
|
|
682
|
+
key: 1,
|
|
683
|
+
type: "button",
|
|
684
|
+
"aria-label": props.closeLabel,
|
|
685
|
+
class: "-mr-1 grid h-6 w-6 shrink-0 place-items-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
686
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
687
|
+
}, [
|
|
688
|
+
createVNode(unref(_sfc_main$s), {
|
|
689
|
+
icon: unref(CloseIcon),
|
|
690
|
+
size: 14
|
|
691
|
+
}, null, 8, ["icon"])
|
|
692
|
+
], 8, _hoisted_5$4)) : createCommentVNode("", true)
|
|
693
|
+
]),
|
|
694
|
+
_: 3
|
|
695
|
+
}, 16, ["severity", "class"]);
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
const _hoisted_1$g = {
|
|
700
|
+
key: 0,
|
|
701
|
+
class: "mt-0.5 shrink-0"
|
|
702
|
+
};
|
|
703
|
+
const _hoisted_2$a = { class: "min-w-0 flex-1" };
|
|
704
|
+
const _hoisted_3$7 = {
|
|
705
|
+
key: 0,
|
|
706
|
+
class: "mb-0.5 font-medium"
|
|
707
|
+
};
|
|
708
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
709
|
+
...{ name: "Callout", inheritAttrs: false },
|
|
710
|
+
__name: "Callout",
|
|
711
|
+
props: {
|
|
712
|
+
severity: { default: Severity.Info },
|
|
713
|
+
icon: {},
|
|
714
|
+
title: {}
|
|
715
|
+
},
|
|
716
|
+
setup(__props, { expose: __expose }) {
|
|
717
|
+
const SEVERITY = {
|
|
718
|
+
info: "border-l-info text-foreground",
|
|
719
|
+
success: "border-l-success text-foreground",
|
|
720
|
+
warning: "border-l-warning text-foreground",
|
|
721
|
+
danger: "border-l-destructive text-foreground",
|
|
722
|
+
neutral: "border-l-border text-foreground"
|
|
723
|
+
};
|
|
724
|
+
const props = __props;
|
|
725
|
+
const attrs = useAttrs();
|
|
726
|
+
const slots = useSlots();
|
|
727
|
+
const el = useTemplateRef("el");
|
|
728
|
+
const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
|
|
729
|
+
const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
|
|
730
|
+
const classes = computed(
|
|
731
|
+
() => cn(
|
|
732
|
+
"flex items-start gap-3 rounded-md border-l-4 bg-card px-4 py-3 text-sm",
|
|
733
|
+
SEVERITY[props.severity],
|
|
734
|
+
attrs.class
|
|
735
|
+
)
|
|
736
|
+
);
|
|
737
|
+
const rest = computed(() => {
|
|
738
|
+
const { class: _class, ...others } = attrs;
|
|
739
|
+
return others;
|
|
740
|
+
});
|
|
741
|
+
__expose({ el });
|
|
742
|
+
return (_ctx, _cache) => {
|
|
743
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
744
|
+
ref_key: "el",
|
|
745
|
+
ref: el
|
|
746
|
+
}, rest.value, { class: classes.value }), [
|
|
747
|
+
hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_1$g, [
|
|
748
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
749
|
+
createTextVNode(toDisplayString(props.icon), 1)
|
|
750
|
+
])
|
|
751
|
+
])) : createCommentVNode("", true),
|
|
752
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
753
|
+
hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
754
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
755
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
756
|
+
])
|
|
757
|
+
])) : createCommentVNode("", true),
|
|
758
|
+
renderSlot(_ctx.$slots, "default")
|
|
759
|
+
])
|
|
760
|
+
], 16);
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
765
|
+
...{ name: "InlineSpinner", inheritAttrs: false },
|
|
766
|
+
__name: "InlineSpinner",
|
|
767
|
+
props: {
|
|
768
|
+
size: { default: "sm" },
|
|
769
|
+
tone: { default: "default" }
|
|
770
|
+
},
|
|
771
|
+
setup(__props, { expose: __expose }) {
|
|
772
|
+
const props = __props;
|
|
773
|
+
const attrs = useAttrs();
|
|
774
|
+
const el = useTemplateRef("el");
|
|
775
|
+
const classes = computed(
|
|
776
|
+
() => cn(
|
|
777
|
+
"inline-flex items-center gap-2 text-sm text-muted-foreground",
|
|
778
|
+
attrs.class
|
|
779
|
+
)
|
|
780
|
+
);
|
|
781
|
+
const rest = computed(() => {
|
|
782
|
+
const { class: _class, ...others } = attrs;
|
|
783
|
+
return others;
|
|
784
|
+
});
|
|
785
|
+
__expose({ el });
|
|
786
|
+
return (_ctx, _cache) => {
|
|
787
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
788
|
+
ref_key: "el",
|
|
789
|
+
ref: el
|
|
790
|
+
}, rest.value, { class: classes.value }), [
|
|
791
|
+
createVNode(_sfc_main$t, {
|
|
792
|
+
size: props.size,
|
|
793
|
+
tone: props.tone
|
|
794
|
+
}, null, 8, ["size", "tone"]),
|
|
795
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
796
|
+
_cache[0] || (_cache[0] = createTextVNode("Loading…", -1))
|
|
797
|
+
])
|
|
798
|
+
], 16);
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
const _hoisted_1$f = {
|
|
803
|
+
key: 0,
|
|
804
|
+
class: "text-sm font-medium text-foreground"
|
|
805
|
+
};
|
|
806
|
+
const _hoisted_2$9 = {
|
|
807
|
+
key: 1,
|
|
808
|
+
class: "text-sm text-muted-foreground"
|
|
809
|
+
};
|
|
810
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
811
|
+
...{ name: "LoadingState", inheritAttrs: false },
|
|
812
|
+
__name: "LoadingState",
|
|
813
|
+
props: {
|
|
814
|
+
title: { default: "Loading…" },
|
|
815
|
+
description: {},
|
|
816
|
+
size: { default: Size.Lg }
|
|
817
|
+
},
|
|
818
|
+
setup(__props, { expose: __expose }) {
|
|
819
|
+
const props = __props;
|
|
820
|
+
const attrs = useAttrs();
|
|
821
|
+
const slots = useSlots();
|
|
822
|
+
const el = useTemplateRef("el");
|
|
823
|
+
const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
|
|
824
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
825
|
+
const classes = computed(
|
|
826
|
+
() => cn(
|
|
827
|
+
"flex flex-col items-center justify-center gap-3 py-12 text-center",
|
|
828
|
+
attrs.class
|
|
829
|
+
)
|
|
830
|
+
);
|
|
831
|
+
const rest = computed(() => {
|
|
832
|
+
const { class: _class, ...others } = attrs;
|
|
833
|
+
return others;
|
|
834
|
+
});
|
|
835
|
+
__expose({ el });
|
|
836
|
+
return (_ctx, _cache) => {
|
|
837
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
838
|
+
ref_key: "el",
|
|
839
|
+
ref: el,
|
|
840
|
+
role: "status"
|
|
841
|
+
}, rest.value, { class: classes.value }), [
|
|
842
|
+
createVNode(_sfc_main$t, {
|
|
843
|
+
size: props.size,
|
|
844
|
+
tone: "brand"
|
|
845
|
+
}, null, 8, ["size"]),
|
|
846
|
+
hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
847
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
848
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
849
|
+
])
|
|
850
|
+
])) : createCommentVNode("", true),
|
|
851
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
852
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
853
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
854
|
+
])
|
|
855
|
+
])) : createCommentVNode("", true)
|
|
856
|
+
], 16);
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
const _hoisted_1$e = ["aria-current"];
|
|
861
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
862
|
+
...{ name: "ProgressSteps", inheritAttrs: false },
|
|
863
|
+
__name: "ProgressSteps",
|
|
864
|
+
props: {
|
|
865
|
+
steps: {},
|
|
866
|
+
current: {},
|
|
867
|
+
orientation: { default: Orientation.Horizontal }
|
|
868
|
+
},
|
|
869
|
+
setup(__props, { expose: __expose }) {
|
|
870
|
+
const CheckIcon = Check;
|
|
871
|
+
const props = __props;
|
|
872
|
+
const attrs = useAttrs();
|
|
873
|
+
const el = useTemplateRef("el");
|
|
874
|
+
const isHorizontal = computed(() => props.orientation === Orientation.Horizontal);
|
|
875
|
+
const classes = computed(
|
|
876
|
+
() => cn(
|
|
877
|
+
"flex",
|
|
878
|
+
isHorizontal.value ? "flex-row items-center gap-2" : "flex-col gap-3",
|
|
879
|
+
attrs.class
|
|
880
|
+
)
|
|
881
|
+
);
|
|
882
|
+
const statusAt = (i) => i < props.current ? "complete" : i === props.current ? "current" : "upcoming";
|
|
883
|
+
const itemClasses = (i) => cn("flex items-center gap-2", isHorizontal.value && i < props.steps.length - 1 && "flex-1");
|
|
884
|
+
const markerClasses = (i) => {
|
|
885
|
+
const status = statusAt(i);
|
|
886
|
+
return cn(
|
|
887
|
+
"grid h-7 w-7 place-items-center rounded-full text-xs font-medium",
|
|
888
|
+
status === "complete" && "bg-primary text-primary-foreground",
|
|
889
|
+
status === "current" && "border-2 border-primary text-primary",
|
|
890
|
+
status === "upcoming" && "border border-border text-muted-foreground"
|
|
891
|
+
);
|
|
892
|
+
};
|
|
893
|
+
const labelClasses = (i) => cn("text-sm", statusAt(i) === "upcoming" ? "text-muted-foreground" : "text-foreground");
|
|
894
|
+
const connectorClasses = (i) => cn("h-px flex-1", i < props.current ? "bg-primary" : "bg-border");
|
|
895
|
+
const rest = computed(() => {
|
|
896
|
+
const { class: _class, ...others } = attrs;
|
|
897
|
+
return others;
|
|
898
|
+
});
|
|
899
|
+
__expose({ el });
|
|
900
|
+
return (_ctx, _cache) => {
|
|
901
|
+
return openBlock(), createElementBlock("ol", mergeProps({
|
|
902
|
+
ref_key: "el",
|
|
903
|
+
ref: el
|
|
904
|
+
}, rest.value, { class: classes.value }), [
|
|
905
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.steps, (label, i) => {
|
|
906
|
+
return openBlock(), createElementBlock("li", {
|
|
907
|
+
key: i,
|
|
908
|
+
class: normalizeClass(itemClasses(i))
|
|
909
|
+
}, [
|
|
910
|
+
createElementVNode("span", {
|
|
911
|
+
class: normalizeClass(markerClasses(i)),
|
|
912
|
+
"aria-current": statusAt(i) === "current" ? "step" : void 0
|
|
913
|
+
}, [
|
|
914
|
+
statusAt(i) === "complete" ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
915
|
+
key: 0,
|
|
916
|
+
icon: unref(CheckIcon),
|
|
917
|
+
size: 14
|
|
918
|
+
}, null, 8, ["icon"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
919
|
+
createTextVNode(toDisplayString(i + 1), 1)
|
|
920
|
+
], 64))
|
|
921
|
+
], 10, _hoisted_1$e),
|
|
922
|
+
createElementVNode("span", {
|
|
923
|
+
class: normalizeClass(labelClasses(i))
|
|
924
|
+
}, toDisplayString(label), 3),
|
|
925
|
+
isHorizontal.value && i < props.steps.length - 1 ? (openBlock(), createElementBlock("span", {
|
|
926
|
+
key: 0,
|
|
927
|
+
class: normalizeClass(connectorClasses(i)),
|
|
928
|
+
"aria-hidden": "true"
|
|
929
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
930
|
+
], 2);
|
|
931
|
+
}), 128))
|
|
932
|
+
], 16);
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
const _hoisted_1$d = { class: "relative mt-1 inline-flex" };
|
|
937
|
+
const _hoisted_2$8 = { class: "min-w-0 flex-1" };
|
|
938
|
+
const _hoisted_3$6 = { class: "text-sm font-medium text-foreground" };
|
|
939
|
+
const _hoisted_4$5 = {
|
|
940
|
+
key: 0,
|
|
941
|
+
class: "text-xs text-muted-foreground"
|
|
942
|
+
};
|
|
943
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
944
|
+
...{ name: "StatusIndicator", inheritAttrs: false },
|
|
945
|
+
__name: "StatusIndicator",
|
|
946
|
+
props: {
|
|
947
|
+
tone: { default: StatusTone.Success },
|
|
948
|
+
label: {},
|
|
949
|
+
description: {},
|
|
950
|
+
hasPulse: { type: Boolean }
|
|
951
|
+
},
|
|
952
|
+
setup(__props, { expose: __expose }) {
|
|
953
|
+
const TONE = {
|
|
954
|
+
success: "bg-success",
|
|
955
|
+
warning: "bg-warning",
|
|
956
|
+
destructive: "bg-destructive",
|
|
957
|
+
info: "bg-info",
|
|
958
|
+
neutral: "bg-muted-foreground"
|
|
959
|
+
};
|
|
960
|
+
const props = __props;
|
|
961
|
+
const attrs = useAttrs();
|
|
962
|
+
const slots = useSlots();
|
|
963
|
+
const el = useTemplateRef("el");
|
|
964
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
965
|
+
const dotClasses = computed(() => cn("inline-block h-2.5 w-2.5 rounded-full", TONE[props.tone]));
|
|
966
|
+
const pulseClasses = computed(
|
|
967
|
+
() => cn("absolute inset-0 inline-block rounded-full opacity-75 animate-ping", TONE[props.tone])
|
|
968
|
+
);
|
|
969
|
+
const classes = computed(
|
|
970
|
+
() => cn("flex items-start gap-3", attrs.class)
|
|
971
|
+
);
|
|
972
|
+
const rest = computed(() => {
|
|
973
|
+
const { class: _class, ...others } = attrs;
|
|
974
|
+
return others;
|
|
975
|
+
});
|
|
976
|
+
__expose({ el });
|
|
977
|
+
return (_ctx, _cache) => {
|
|
978
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
979
|
+
ref_key: "el",
|
|
980
|
+
ref: el
|
|
981
|
+
}, rest.value, { class: classes.value }), [
|
|
982
|
+
createElementVNode("span", _hoisted_1$d, [
|
|
983
|
+
createElementVNode("span", {
|
|
984
|
+
class: normalizeClass(dotClasses.value)
|
|
985
|
+
}, null, 2),
|
|
986
|
+
props.hasPulse ? (openBlock(), createElementBlock("span", {
|
|
987
|
+
key: 0,
|
|
988
|
+
class: normalizeClass(pulseClasses.value)
|
|
989
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
990
|
+
]),
|
|
991
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
992
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
993
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
994
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
995
|
+
])
|
|
996
|
+
]),
|
|
997
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
998
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
999
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
1000
|
+
])
|
|
1001
|
+
])) : createCommentVNode("", true)
|
|
1002
|
+
])
|
|
1003
|
+
], 16);
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
const _hoisted_1$c = ["aria-label", "aria-valuemax", "aria-valuenow"];
|
|
1008
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1009
|
+
...{ name: "MeterBar", inheritAttrs: false },
|
|
1010
|
+
__name: "MeterBar",
|
|
1011
|
+
props: {
|
|
1012
|
+
value: {},
|
|
1013
|
+
max: { default: 100 },
|
|
1014
|
+
thresholds: {},
|
|
1015
|
+
size: { default: Size.Md },
|
|
1016
|
+
label: {}
|
|
1017
|
+
},
|
|
1018
|
+
setup(__props, { expose: __expose }) {
|
|
1019
|
+
const SIZE = {
|
|
1020
|
+
sm: "h-1",
|
|
1021
|
+
md: "h-2",
|
|
1022
|
+
lg: "h-3"
|
|
1023
|
+
};
|
|
1024
|
+
const props = __props;
|
|
1025
|
+
const attrs = useAttrs();
|
|
1026
|
+
const el = useTemplateRef("el");
|
|
1027
|
+
const tone = computed(() => {
|
|
1028
|
+
const [good, warn] = props.thresholds ?? [props.max * 0.7, props.max * 0.9];
|
|
1029
|
+
return props.value <= good ? "bg-success" : props.value <= warn ? "bg-warning" : "bg-destructive";
|
|
1030
|
+
});
|
|
1031
|
+
const pct = computed(() => Math.min(100, Math.max(0, props.value / props.max * 100)));
|
|
1032
|
+
const classes = computed(
|
|
1033
|
+
() => cn(
|
|
1034
|
+
"w-full overflow-hidden rounded-full bg-muted",
|
|
1035
|
+
SIZE[props.size] ?? SIZE.md,
|
|
1036
|
+
attrs.class
|
|
1037
|
+
)
|
|
1038
|
+
);
|
|
1039
|
+
const rest = computed(() => {
|
|
1040
|
+
const { class: _class, ...others } = attrs;
|
|
1041
|
+
return others;
|
|
1042
|
+
});
|
|
1043
|
+
__expose({ el });
|
|
1044
|
+
return (_ctx, _cache) => {
|
|
1045
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
1046
|
+
ref_key: "el",
|
|
1047
|
+
ref: el,
|
|
1048
|
+
role: "meter",
|
|
1049
|
+
"aria-label": props.label,
|
|
1050
|
+
"aria-valuemin": 0,
|
|
1051
|
+
"aria-valuemax": props.max,
|
|
1052
|
+
"aria-valuenow": props.value
|
|
1053
|
+
}, rest.value, { class: classes.value }), [
|
|
1054
|
+
createElementVNode("div", {
|
|
1055
|
+
class: normalizeClass(unref(cn)("h-full rounded-full transition-[width] duration-300", tone.value)),
|
|
1056
|
+
style: normalizeStyle({ width: `${pct.value}%` })
|
|
1057
|
+
}, null, 6)
|
|
1058
|
+
], 16, _hoisted_1$c);
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
const _hoisted_1$b = {
|
|
1063
|
+
key: 0,
|
|
1064
|
+
class: "text-muted-foreground"
|
|
1065
|
+
};
|
|
1066
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1067
|
+
...{ name: "TrendIndicator", inheritAttrs: false },
|
|
1068
|
+
__name: "TrendIndicator",
|
|
1069
|
+
props: {
|
|
1070
|
+
value: {},
|
|
1071
|
+
format: {},
|
|
1072
|
+
isInverse: { type: Boolean },
|
|
1073
|
+
label: {},
|
|
1074
|
+
size: { default: Size.Sm }
|
|
1075
|
+
},
|
|
1076
|
+
setup(__props, { expose: __expose }) {
|
|
1077
|
+
const SIZE_TEXT = {
|
|
1078
|
+
xs: "text-xs",
|
|
1079
|
+
sm: "text-sm",
|
|
1080
|
+
md: "text-base"
|
|
1081
|
+
};
|
|
1082
|
+
const SIZE_ICON = {
|
|
1083
|
+
xs: 12,
|
|
1084
|
+
sm: 14,
|
|
1085
|
+
md: 16
|
|
1086
|
+
};
|
|
1087
|
+
const ARROW = {
|
|
1088
|
+
up: TrendingUp,
|
|
1089
|
+
down: TrendingDown,
|
|
1090
|
+
flat: Minus
|
|
1091
|
+
};
|
|
1092
|
+
const props = __props;
|
|
1093
|
+
const attrs = useAttrs();
|
|
1094
|
+
const slots = useSlots();
|
|
1095
|
+
const el = useTemplateRef("el");
|
|
1096
|
+
const direction = computed(
|
|
1097
|
+
() => props.value > 0 ? "up" : props.value < 0 ? "down" : "flat"
|
|
1098
|
+
);
|
|
1099
|
+
const positive = computed(
|
|
1100
|
+
() => direction.value === "flat" ? false : direction.value === "up" !== Boolean(props.isInverse)
|
|
1101
|
+
);
|
|
1102
|
+
const tone = computed(
|
|
1103
|
+
() => direction.value === "flat" ? "text-muted-foreground" : positive.value ? "text-success" : "text-destructive"
|
|
1104
|
+
);
|
|
1105
|
+
const arrow = computed(() => ARROW[direction.value]);
|
|
1106
|
+
const display = computed(
|
|
1107
|
+
() => props.format ? props.format(props.value) : `${props.value > 0 ? "+" : ""}${props.value}%`
|
|
1108
|
+
);
|
|
1109
|
+
const iconSize = computed(() => SIZE_ICON[props.size] ?? SIZE_ICON.md);
|
|
1110
|
+
const hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));
|
|
1111
|
+
const classes = computed(
|
|
1112
|
+
() => cn(
|
|
1113
|
+
"inline-flex items-center gap-1 font-medium",
|
|
1114
|
+
SIZE_TEXT[props.size] ?? SIZE_TEXT.md,
|
|
1115
|
+
tone.value,
|
|
1116
|
+
attrs.class
|
|
1117
|
+
)
|
|
1118
|
+
);
|
|
1119
|
+
const rest = computed(() => {
|
|
1120
|
+
const { class: _class, ...others } = attrs;
|
|
1121
|
+
return others;
|
|
1122
|
+
});
|
|
1123
|
+
__expose({ el });
|
|
1124
|
+
return (_ctx, _cache) => {
|
|
1125
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
1126
|
+
ref_key: "el",
|
|
1127
|
+
ref: el
|
|
1128
|
+
}, rest.value, { class: classes.value }), [
|
|
1129
|
+
createVNode(unref(_sfc_main$s), {
|
|
1130
|
+
icon: arrow.value,
|
|
1131
|
+
size: iconSize.value
|
|
1132
|
+
}, null, 8, ["icon", "size"]),
|
|
1133
|
+
renderSlot(_ctx.$slots, "value", {
|
|
1134
|
+
value: props.value,
|
|
1135
|
+
display: display.value
|
|
1136
|
+
}, () => [
|
|
1137
|
+
createTextVNode(toDisplayString(display.value), 1)
|
|
1138
|
+
]),
|
|
1139
|
+
hasLabel.value ? (openBlock(), createElementBlock("span", _hoisted_1$b, [
|
|
1140
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1141
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
1142
|
+
])
|
|
1143
|
+
])) : createCommentVNode("", true)
|
|
1144
|
+
], 16);
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
const _hoisted_1$a = ["onVnodeUnmounted"];
|
|
1149
|
+
function normalizeContent(content) {
|
|
1150
|
+
return typeof content === "string" ? { title: content } : content;
|
|
1151
|
+
}
|
|
1152
|
+
class ToasterStore {
|
|
1153
|
+
items = [];
|
|
1154
|
+
listeners = /* @__PURE__ */ new Set();
|
|
1155
|
+
idSeq = 0;
|
|
1156
|
+
toast(opts) {
|
|
1157
|
+
if (opts.key !== void 0) {
|
|
1158
|
+
const existing = this.items.find((t) => t.key === opts.key);
|
|
1159
|
+
if (existing) {
|
|
1160
|
+
this.update(existing.id, opts);
|
|
1161
|
+
return existing.id;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
const id = `t_${++this.idSeq}`;
|
|
1165
|
+
this.items = [...this.items, { id, ...opts, nonce: 0 }];
|
|
1166
|
+
this.emit();
|
|
1167
|
+
return id;
|
|
1168
|
+
}
|
|
1169
|
+
/** Merges a patch into an existing toast (content + severity + duration), refreshing its timer. */
|
|
1170
|
+
update(id, patch) {
|
|
1171
|
+
this.items = this.items.map((t) => t.id === id ? { ...t, ...patch, nonce: t.nonce + 1 } : t);
|
|
1172
|
+
this.emit();
|
|
1173
|
+
}
|
|
1174
|
+
/** Shows a sticky loading toast, then updates it in place to success / error when `promise` settles. Returns `promise`. */
|
|
1175
|
+
promise(promise, opts) {
|
|
1176
|
+
const id = this.toast({ ...normalizeContent(opts.loading), severity: "info", duration: Infinity });
|
|
1177
|
+
const settle = (content, severity) => this.update(id, { ...normalizeContent(content), severity, duration: opts.duration });
|
|
1178
|
+
promise.then(
|
|
1179
|
+
(value) => settle(typeof opts.success === "function" ? opts.success(value) : opts.success, "success"),
|
|
1180
|
+
(err) => settle(typeof opts.error === "function" ? opts.error(err) : opts.error, "danger")
|
|
1181
|
+
);
|
|
1182
|
+
return promise;
|
|
1183
|
+
}
|
|
1184
|
+
dismiss(id) {
|
|
1185
|
+
const entry = this.items.find((t) => t.id === id);
|
|
1186
|
+
this.items = this.items.filter((t) => t.id !== id);
|
|
1187
|
+
entry?.onDismiss?.();
|
|
1188
|
+
this.emit();
|
|
1189
|
+
}
|
|
1190
|
+
dismissAll() {
|
|
1191
|
+
const gone = this.items;
|
|
1192
|
+
this.items = [];
|
|
1193
|
+
for (const t of gone) t.onDismiss?.();
|
|
1194
|
+
this.emit();
|
|
1195
|
+
}
|
|
1196
|
+
subscribe(fn) {
|
|
1197
|
+
this.listeners.add(fn);
|
|
1198
|
+
fn(this.items);
|
|
1199
|
+
return () => {
|
|
1200
|
+
this.listeners.delete(fn);
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
emit() {
|
|
1204
|
+
for (const fn of this.listeners) fn(this.items);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
const toaster = new ToasterStore();
|
|
1208
|
+
function useToaster() {
|
|
1209
|
+
return {
|
|
1210
|
+
toast: (opts) => toaster.toast(opts),
|
|
1211
|
+
update: (id, patch) => toaster.update(id, patch),
|
|
1212
|
+
promise: (promise, opts) => toaster.promise(promise, opts),
|
|
1213
|
+
dismiss: (id) => toaster.dismiss(id),
|
|
1214
|
+
dismissAll: () => toaster.dismissAll()
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
const POSITION_CLASSES = {
|
|
1218
|
+
"top-right": "top-4 right-4 items-end",
|
|
1219
|
+
"top-left": "top-4 left-4 items-start",
|
|
1220
|
+
"top-center": "top-4 left-1/2 -translate-x-1/2 items-center",
|
|
1221
|
+
"bottom-right": "bottom-4 right-4 items-end",
|
|
1222
|
+
"bottom-left": "bottom-4 left-4 items-start",
|
|
1223
|
+
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2 items-center"
|
|
1224
|
+
};
|
|
1225
|
+
const MOTION_CLASSES = {
|
|
1226
|
+
"top-right": "motion-safe:data-[state=open]:animate-(--animate-slide-in-right) motion-safe:data-[state=closed]:animate-(--animate-slide-out-right) motion-reduce:animate-none",
|
|
1227
|
+
"top-left": "motion-safe:data-[state=open]:animate-(--animate-slide-in-left) motion-safe:data-[state=closed]:animate-(--animate-slide-out-left) motion-reduce:animate-none",
|
|
1228
|
+
"top-center": "motion-safe:data-[state=open]:animate-(--animate-slide-in-top) motion-safe:data-[state=closed]:animate-(--animate-slide-out-top) motion-reduce:animate-none",
|
|
1229
|
+
"bottom-right": "motion-safe:data-[state=open]:animate-(--animate-slide-in-right) motion-safe:data-[state=closed]:animate-(--animate-slide-out-right) motion-reduce:animate-none",
|
|
1230
|
+
"bottom-left": "motion-safe:data-[state=open]:animate-(--animate-slide-in-left) motion-safe:data-[state=closed]:animate-(--animate-slide-out-left) motion-reduce:animate-none",
|
|
1231
|
+
"bottom-center": "motion-safe:data-[state=open]:animate-(--animate-slide-in-bottom) motion-safe:data-[state=closed]:animate-(--animate-slide-out-bottom) motion-reduce:animate-none"
|
|
1232
|
+
};
|
|
1233
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1234
|
+
...{ name: "Toaster", inheritAttrs: false },
|
|
1235
|
+
__name: "Toaster",
|
|
1236
|
+
props: {
|
|
1237
|
+
position: { default: OverlayPosition.BottomRight },
|
|
1238
|
+
max: { default: 5 },
|
|
1239
|
+
defaultDuration: { default: 5e3 },
|
|
1240
|
+
canPauseOnHover: { type: Boolean, default: true },
|
|
1241
|
+
gap: { default: 8 }
|
|
1242
|
+
},
|
|
1243
|
+
setup(__props) {
|
|
1244
|
+
const ToastNodeView = defineComponent({
|
|
1245
|
+
name: "ToastNodeView",
|
|
1246
|
+
props: { node: { type: [String, Object], required: true } },
|
|
1247
|
+
setup: (nodeProps) => () => nodeProps.node
|
|
1248
|
+
});
|
|
1249
|
+
const props = __props;
|
|
1250
|
+
const attrs = useAttrs();
|
|
1251
|
+
const items = shallowRef([]);
|
|
1252
|
+
const paused = ref(false);
|
|
1253
|
+
const timers = /* @__PURE__ */ new Map();
|
|
1254
|
+
const remaining = /* @__PURE__ */ new Map();
|
|
1255
|
+
const startedAt = /* @__PURE__ */ new Map();
|
|
1256
|
+
const nonces = /* @__PURE__ */ new Map();
|
|
1257
|
+
let unsubscribe;
|
|
1258
|
+
onMounted(() => {
|
|
1259
|
+
unsubscribe = toaster.subscribe((next) => {
|
|
1260
|
+
items.value = next;
|
|
1261
|
+
});
|
|
1262
|
+
});
|
|
1263
|
+
const visible = computed(
|
|
1264
|
+
() => items.value.slice(0, props.max).map((t) => ({
|
|
1265
|
+
...t,
|
|
1266
|
+
resolvedDuration: t.duration ?? props.defaultDuration
|
|
1267
|
+
}))
|
|
1268
|
+
);
|
|
1269
|
+
const visibleIds = computed(() => new Set(visible.value.map((v) => v.id)));
|
|
1270
|
+
const exiting = shallowRef([]);
|
|
1271
|
+
let prevVisible = [];
|
|
1272
|
+
watch(
|
|
1273
|
+
visibleIds,
|
|
1274
|
+
(ids) => {
|
|
1275
|
+
const gone = prevVisible.filter((p) => !ids.has(p.id));
|
|
1276
|
+
prevVisible = visible.value;
|
|
1277
|
+
const current = exiting.value;
|
|
1278
|
+
const known = new Set(current.map((e) => e.id));
|
|
1279
|
+
const merged = [...current, ...gone.filter((g) => !known.has(g.id))].filter(
|
|
1280
|
+
(e) => !ids.has(e.id)
|
|
1281
|
+
);
|
|
1282
|
+
if (merged.length !== current.length || !merged.every((e, i) => e.id === current[i]?.id)) {
|
|
1283
|
+
exiting.value = merged;
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
{ immediate: true, flush: "post" }
|
|
1287
|
+
);
|
|
1288
|
+
const removeExiting = (id) => {
|
|
1289
|
+
exiting.value = exiting.value.filter((e) => e.id !== id);
|
|
1290
|
+
};
|
|
1291
|
+
const rendered = computed(() => [
|
|
1292
|
+
...visible.value.map((v) => ({ ...v, present: true })),
|
|
1293
|
+
...exiting.value.map((e) => ({ ...e, present: false }))
|
|
1294
|
+
]);
|
|
1295
|
+
const latestTitle = computed(() => {
|
|
1296
|
+
const last = visible.value[visible.value.length - 1];
|
|
1297
|
+
if (typeof last?.title === "string") return last.title;
|
|
1298
|
+
if (typeof last?.description === "string") return last.description;
|
|
1299
|
+
return "";
|
|
1300
|
+
});
|
|
1301
|
+
watch(
|
|
1302
|
+
[items, () => props.max, () => props.defaultDuration, paused],
|
|
1303
|
+
() => {
|
|
1304
|
+
const ids = visibleIds.value;
|
|
1305
|
+
for (const [id, handle] of timers) {
|
|
1306
|
+
if (!ids.has(id)) {
|
|
1307
|
+
window.clearTimeout(handle);
|
|
1308
|
+
timers.delete(id);
|
|
1309
|
+
remaining.delete(id);
|
|
1310
|
+
startedAt.delete(id);
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
for (const id of nonces.keys()) {
|
|
1314
|
+
if (!ids.has(id)) nonces.delete(id);
|
|
1315
|
+
}
|
|
1316
|
+
if (paused.value) return;
|
|
1317
|
+
for (const v of visible.value) {
|
|
1318
|
+
const seen = nonces.get(v.id);
|
|
1319
|
+
if (seen !== void 0 && seen !== v.nonce) {
|
|
1320
|
+
const handle = timers.get(v.id);
|
|
1321
|
+
if (handle !== void 0) window.clearTimeout(handle);
|
|
1322
|
+
timers.delete(v.id);
|
|
1323
|
+
remaining.delete(v.id);
|
|
1324
|
+
startedAt.delete(v.id);
|
|
1325
|
+
}
|
|
1326
|
+
nonces.set(v.id, v.nonce);
|
|
1327
|
+
}
|
|
1328
|
+
for (const v of visible.value) {
|
|
1329
|
+
if (v.resolvedDuration === Infinity) continue;
|
|
1330
|
+
if (timers.has(v.id)) continue;
|
|
1331
|
+
const left = remaining.get(v.id) ?? v.resolvedDuration;
|
|
1332
|
+
const handle = window.setTimeout(() => {
|
|
1333
|
+
toaster.dismiss(v.id);
|
|
1334
|
+
}, left);
|
|
1335
|
+
timers.set(v.id, handle);
|
|
1336
|
+
startedAt.set(v.id, Date.now());
|
|
1337
|
+
remaining.set(v.id, left);
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
{ immediate: true, flush: "post" }
|
|
1341
|
+
);
|
|
1342
|
+
onUnmounted(() => {
|
|
1343
|
+
unsubscribe?.();
|
|
1344
|
+
for (const handle of timers.values()) window.clearTimeout(handle);
|
|
1345
|
+
timers.clear();
|
|
1346
|
+
});
|
|
1347
|
+
const handlePause = () => {
|
|
1348
|
+
if (!props.canPauseOnHover || paused.value) return;
|
|
1349
|
+
paused.value = true;
|
|
1350
|
+
for (const [id, handle] of timers) {
|
|
1351
|
+
window.clearTimeout(handle);
|
|
1352
|
+
const start = startedAt.get(id) ?? Date.now();
|
|
1353
|
+
const previous = remaining.get(id) ?? 0;
|
|
1354
|
+
const elapsed = Date.now() - start;
|
|
1355
|
+
remaining.set(id, Math.max(0, previous - elapsed));
|
|
1356
|
+
}
|
|
1357
|
+
timers.clear();
|
|
1358
|
+
};
|
|
1359
|
+
const handleResume = () => {
|
|
1360
|
+
if (!props.canPauseOnHover || !paused.value) return;
|
|
1361
|
+
paused.value = false;
|
|
1362
|
+
};
|
|
1363
|
+
const stackClasses = computed(
|
|
1364
|
+
() => cn(
|
|
1365
|
+
"pointer-events-none fixed z-toast flex flex-col",
|
|
1366
|
+
POSITION_CLASSES[props.position],
|
|
1367
|
+
attrs.class
|
|
1368
|
+
)
|
|
1369
|
+
);
|
|
1370
|
+
const itemClasses = computed(() => cn("pointer-events-auto w-80", MOTION_CLASSES[props.position]));
|
|
1371
|
+
const stackStyle = computed(() => ({ gap: `${props.gap}px` }));
|
|
1372
|
+
return (_ctx, _cache) => {
|
|
1373
|
+
return openBlock(), createBlock(unref(_sfc_main$u), null, {
|
|
1374
|
+
default: withCtx(() => [
|
|
1375
|
+
rendered.value.length > 0 ? (openBlock(), createElementBlock("div", {
|
|
1376
|
+
key: 0,
|
|
1377
|
+
"aria-label": "Notifications",
|
|
1378
|
+
style: normalizeStyle(stackStyle.value),
|
|
1379
|
+
class: normalizeClass(stackClasses.value),
|
|
1380
|
+
onMouseenter: handlePause,
|
|
1381
|
+
onMouseleave: handleResume,
|
|
1382
|
+
onFocus: handlePause,
|
|
1383
|
+
onBlur: handleResume
|
|
1384
|
+
}, [
|
|
1385
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(rendered.value, (t) => {
|
|
1386
|
+
return openBlock(), createBlock(unref(Presence), {
|
|
1387
|
+
key: t.id,
|
|
1388
|
+
"is-present": t.present
|
|
1389
|
+
}, {
|
|
1390
|
+
default: withCtx(() => [
|
|
1391
|
+
createElementVNode("div", {
|
|
1392
|
+
class: normalizeClass(itemClasses.value),
|
|
1393
|
+
onVnodeUnmounted: ($event) => t.present ? void 0 : removeExiting(t.id)
|
|
1394
|
+
}, [
|
|
1395
|
+
t.content ? (openBlock(), createBlock(unref(ToastNodeView), {
|
|
1396
|
+
key: 0,
|
|
1397
|
+
node: t.content
|
|
1398
|
+
}, null, 8, ["node"])) : (openBlock(), createBlock(_sfc_main$j, {
|
|
1399
|
+
key: 1,
|
|
1400
|
+
severity: t.severity,
|
|
1401
|
+
onClose: ($event) => unref(toaster).dismiss(t.id)
|
|
1402
|
+
}, createSlots({ _: 2 }, [
|
|
1403
|
+
t.icon ? {
|
|
1404
|
+
name: "icon",
|
|
1405
|
+
fn: withCtx(() => [
|
|
1406
|
+
createVNode(unref(ToastNodeView), {
|
|
1407
|
+
node: t.icon
|
|
1408
|
+
}, null, 8, ["node"])
|
|
1409
|
+
]),
|
|
1410
|
+
key: "0"
|
|
1411
|
+
} : void 0,
|
|
1412
|
+
t.title ? {
|
|
1413
|
+
name: "title",
|
|
1414
|
+
fn: withCtx(() => [
|
|
1415
|
+
createVNode(unref(ToastNodeView), {
|
|
1416
|
+
node: t.title
|
|
1417
|
+
}, null, 8, ["node"])
|
|
1418
|
+
]),
|
|
1419
|
+
key: "1"
|
|
1420
|
+
} : void 0,
|
|
1421
|
+
t.description ? {
|
|
1422
|
+
name: "description",
|
|
1423
|
+
fn: withCtx(() => [
|
|
1424
|
+
createVNode(unref(ToastNodeView), {
|
|
1425
|
+
node: t.description
|
|
1426
|
+
}, null, 8, ["node"])
|
|
1427
|
+
]),
|
|
1428
|
+
key: "2"
|
|
1429
|
+
} : void 0,
|
|
1430
|
+
t.action ? {
|
|
1431
|
+
name: "actions",
|
|
1432
|
+
fn: withCtx(() => [
|
|
1433
|
+
createVNode(unref(ToastNodeView), {
|
|
1434
|
+
node: t.action
|
|
1435
|
+
}, null, 8, ["node"])
|
|
1436
|
+
]),
|
|
1437
|
+
key: "3"
|
|
1438
|
+
} : void 0
|
|
1439
|
+
]), 1032, ["severity", "onClose"]))
|
|
1440
|
+
], 10, _hoisted_1$a)
|
|
1441
|
+
]),
|
|
1442
|
+
_: 2
|
|
1443
|
+
}, 1032, ["is-present"]);
|
|
1444
|
+
}), 128))
|
|
1445
|
+
], 38)) : createCommentVNode("", true),
|
|
1446
|
+
createVNode(unref(_sfc_main$v), { politeness: "polite" }, {
|
|
1447
|
+
default: withCtx(() => [
|
|
1448
|
+
createTextVNode(toDisplayString(latestTitle.value), 1)
|
|
1449
|
+
]),
|
|
1450
|
+
_: 1
|
|
1451
|
+
})
|
|
1452
|
+
]),
|
|
1453
|
+
_: 1
|
|
1454
|
+
});
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
function toToastOptions(notice) {
|
|
1459
|
+
return {
|
|
1460
|
+
title: notice.title,
|
|
1461
|
+
description: notice.description,
|
|
1462
|
+
severity: notice.tone,
|
|
1463
|
+
duration: notice.durationMs,
|
|
1464
|
+
action: notice.action
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1468
|
+
...{ name: "FeedbackToasts", inheritAttrs: false },
|
|
1469
|
+
__name: "FeedbackToasts",
|
|
1470
|
+
props: {
|
|
1471
|
+
bus: {}
|
|
1472
|
+
},
|
|
1473
|
+
setup(__props) {
|
|
1474
|
+
const props = __props;
|
|
1475
|
+
const attrs = useAttrs();
|
|
1476
|
+
const bus = computed(() => props.bus ?? feedbackBus);
|
|
1477
|
+
watch(
|
|
1478
|
+
bus,
|
|
1479
|
+
(current, _previous, onCleanup) => {
|
|
1480
|
+
if (typeof document === "undefined") return;
|
|
1481
|
+
onCleanup(
|
|
1482
|
+
current.subscribe((notice) => {
|
|
1483
|
+
toaster.toast(toToastOptions(notice));
|
|
1484
|
+
})
|
|
1485
|
+
);
|
|
1486
|
+
},
|
|
1487
|
+
{ immediate: true }
|
|
1488
|
+
);
|
|
1489
|
+
return (_ctx, _cache) => {
|
|
1490
|
+
return openBlock(), createBlock(_sfc_main$b, normalizeProps(guardReactiveProps(unref(attrs))), null, 16);
|
|
1491
|
+
};
|
|
1492
|
+
}
|
|
1493
|
+
});
|
|
1494
|
+
const _hoisted_1$9 = {
|
|
1495
|
+
key: 0,
|
|
1496
|
+
class: "text-sm text-foreground"
|
|
1497
|
+
};
|
|
1498
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1499
|
+
...{ name: "LoadingOverlay", inheritAttrs: false },
|
|
1500
|
+
__name: "LoadingOverlay",
|
|
1501
|
+
props: {
|
|
1502
|
+
isOpen: { type: Boolean, default: true },
|
|
1503
|
+
label: { default: "Loading…" },
|
|
1504
|
+
isInline: { type: Boolean, default: false },
|
|
1505
|
+
hasBlur: { type: Boolean, default: false },
|
|
1506
|
+
spinnerSize: { default: Size.Lg },
|
|
1507
|
+
spinnerTone: { default: SpinnerTone.Brand }
|
|
1508
|
+
},
|
|
1509
|
+
setup(__props, { expose: __expose }) {
|
|
1510
|
+
const props = __props;
|
|
1511
|
+
const attrs = useAttrs();
|
|
1512
|
+
const slots = useSlots();
|
|
1513
|
+
const el = useTemplateRef("el");
|
|
1514
|
+
const hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));
|
|
1515
|
+
const spinnerLabel = computed(() => props.label || "Loading");
|
|
1516
|
+
const classes = computed(
|
|
1517
|
+
() => cn(
|
|
1518
|
+
"flex flex-col items-center justify-center gap-3",
|
|
1519
|
+
"motion-safe:data-[state=open]:animate-(--animate-fade-in)",
|
|
1520
|
+
"motion-safe:data-[state=closed]:animate-(--animate-fade-out)",
|
|
1521
|
+
"motion-reduce:animate-none",
|
|
1522
|
+
props.isInline ? ["absolute inset-0 z-banner bg-background/70", props.hasBlur && "backdrop-blur-sm"] : "fixed inset-0 z-modal pointer-events-none",
|
|
1523
|
+
attrs.class
|
|
1524
|
+
)
|
|
1525
|
+
);
|
|
1526
|
+
const rest = computed(() => {
|
|
1527
|
+
const { class: _class, ...others } = attrs;
|
|
1528
|
+
return others;
|
|
1529
|
+
});
|
|
1530
|
+
__expose({ el });
|
|
1531
|
+
return (_ctx, _cache) => {
|
|
1532
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1533
|
+
!props.isInline ? (openBlock(), createBlock(_sfc_main$w, {
|
|
1534
|
+
key: 0,
|
|
1535
|
+
"is-open": props.isOpen,
|
|
1536
|
+
"is-blurred": props.hasBlur,
|
|
1537
|
+
class: "bg-background/70"
|
|
1538
|
+
}, null, 8, ["is-open", "is-blurred"])) : createCommentVNode("", true),
|
|
1539
|
+
createVNode(unref(Presence), {
|
|
1540
|
+
"is-present": props.isOpen
|
|
1541
|
+
}, {
|
|
1542
|
+
default: withCtx(() => [
|
|
1543
|
+
createElementVNode("div", mergeProps({
|
|
1544
|
+
ref_key: "el",
|
|
1545
|
+
ref: el,
|
|
1546
|
+
role: "status"
|
|
1547
|
+
}, rest.value, { class: classes.value }), [
|
|
1548
|
+
createVNode(_sfc_main$t, {
|
|
1549
|
+
size: props.spinnerSize,
|
|
1550
|
+
tone: props.spinnerTone,
|
|
1551
|
+
label: spinnerLabel.value
|
|
1552
|
+
}, null, 8, ["size", "tone", "label"]),
|
|
1553
|
+
hasLabel.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
1554
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1555
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
1556
|
+
])
|
|
1557
|
+
])) : createCommentVNode("", true),
|
|
1558
|
+
renderSlot(_ctx.$slots, "default")
|
|
1559
|
+
], 16)
|
|
1560
|
+
]),
|
|
1561
|
+
_: 3
|
|
1562
|
+
}, 8, ["is-present"])
|
|
1563
|
+
], 64);
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
const _hoisted_1$8 = { class: "flex-1" };
|
|
1568
|
+
const _hoisted_2$7 = {
|
|
1569
|
+
key: 1,
|
|
1570
|
+
class: "absolute bottom-0 left-0 h-0.5 w-full bg-border"
|
|
1571
|
+
};
|
|
1572
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1573
|
+
...{ name: "UndoBar", inheritAttrs: false },
|
|
1574
|
+
__name: "UndoBar",
|
|
1575
|
+
props: {
|
|
1576
|
+
isOpen: { type: Boolean },
|
|
1577
|
+
message: {},
|
|
1578
|
+
undoLabel: { default: "Undo" },
|
|
1579
|
+
duration: { default: 5e3 },
|
|
1580
|
+
canPauseOnHover: { type: Boolean, default: true },
|
|
1581
|
+
position: { default: OverlayPosition.BottomCenter },
|
|
1582
|
+
hasCountdown: { type: Boolean, default: false }
|
|
1583
|
+
},
|
|
1584
|
+
emits: ["open-change", "undo"],
|
|
1585
|
+
setup(__props, { emit: __emit }) {
|
|
1586
|
+
const POSITION = {
|
|
1587
|
+
"top-right": "top-4 right-4",
|
|
1588
|
+
"top-left": "top-4 left-4",
|
|
1589
|
+
"top-center": "top-4 left-1/2 -translate-x-1/2",
|
|
1590
|
+
"bottom-right": "bottom-4 right-4",
|
|
1591
|
+
"bottom-left": "bottom-4 left-4",
|
|
1592
|
+
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2"
|
|
1593
|
+
};
|
|
1594
|
+
const props = __props;
|
|
1595
|
+
const emit = __emit;
|
|
1596
|
+
const attrs = useAttrs();
|
|
1597
|
+
const instance = getCurrentInstance();
|
|
1598
|
+
const hasUndo = () => Boolean(instance?.vnode.props?.onUndo);
|
|
1599
|
+
const progress = ref(1);
|
|
1600
|
+
const paused = ref(false);
|
|
1601
|
+
let start = 0;
|
|
1602
|
+
let remaining = props.duration;
|
|
1603
|
+
let raf = null;
|
|
1604
|
+
watch(
|
|
1605
|
+
[() => props.isOpen, () => props.duration, paused, () => props.hasCountdown],
|
|
1606
|
+
([isOpen, duration, isPaused, hasCountdown], _previous, onCleanup) => {
|
|
1607
|
+
if (!isOpen) {
|
|
1608
|
+
remaining = duration;
|
|
1609
|
+
progress.value = 1;
|
|
1610
|
+
return;
|
|
1611
|
+
}
|
|
1612
|
+
if (duration === Infinity) {
|
|
1613
|
+
progress.value = 1;
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
if (isPaused) return;
|
|
1617
|
+
if (typeof window === "undefined" || typeof requestAnimationFrame === "undefined") return;
|
|
1618
|
+
start = performance.now();
|
|
1619
|
+
if (!hasCountdown) {
|
|
1620
|
+
const handle = window.setTimeout(() => {
|
|
1621
|
+
emit("open-change", false);
|
|
1622
|
+
}, remaining);
|
|
1623
|
+
onCleanup(() => {
|
|
1624
|
+
window.clearTimeout(handle);
|
|
1625
|
+
const elapsed = performance.now() - start;
|
|
1626
|
+
remaining = Math.max(0, remaining - elapsed);
|
|
1627
|
+
});
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
const tick = (now) => {
|
|
1631
|
+
const elapsed = now - start;
|
|
1632
|
+
const left = Math.max(0, remaining - elapsed);
|
|
1633
|
+
progress.value = left / duration;
|
|
1634
|
+
if (left <= 0) {
|
|
1635
|
+
emit("open-change", false);
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
raf = requestAnimationFrame(tick);
|
|
1639
|
+
};
|
|
1640
|
+
raf = requestAnimationFrame(tick);
|
|
1641
|
+
onCleanup(() => {
|
|
1642
|
+
if (raf != null) cancelAnimationFrame(raf);
|
|
1643
|
+
const elapsed = performance.now() - start;
|
|
1644
|
+
remaining = Math.max(0, remaining - elapsed);
|
|
1645
|
+
});
|
|
1646
|
+
},
|
|
1647
|
+
{ immediate: true, flush: "post" }
|
|
1648
|
+
);
|
|
1649
|
+
onUnmounted(() => {
|
|
1650
|
+
if (raf != null) cancelAnimationFrame(raf);
|
|
1651
|
+
});
|
|
1652
|
+
const setPaused = (value) => {
|
|
1653
|
+
if (props.canPauseOnHover) paused.value = value;
|
|
1654
|
+
};
|
|
1655
|
+
const onUndoClick = () => {
|
|
1656
|
+
emit("undo");
|
|
1657
|
+
emit("open-change", false);
|
|
1658
|
+
};
|
|
1659
|
+
const wrapperClasses = computed(() => cn("fixed z-toast", POSITION[props.position]));
|
|
1660
|
+
const panelClasses = computed(
|
|
1661
|
+
() => cn(
|
|
1662
|
+
"relative flex items-center gap-3 overflow-hidden text-sm",
|
|
1663
|
+
surfaceVariants({ variant: "surface", radius: "md", padding: "sm", elevation: 3 }),
|
|
1664
|
+
"px-4 py-2.5",
|
|
1665
|
+
"motion-safe:data-[state=open]:animate-(--animate-slide-in-bottom)",
|
|
1666
|
+
"motion-safe:data-[state=closed]:animate-(--animate-slide-out-bottom)",
|
|
1667
|
+
"motion-reduce:animate-none",
|
|
1668
|
+
attrs.class
|
|
1669
|
+
)
|
|
1670
|
+
);
|
|
1671
|
+
const showCountdown = computed(() => props.hasCountdown && props.duration !== Infinity);
|
|
1672
|
+
return (_ctx, _cache) => {
|
|
1673
|
+
return openBlock(), createBlock(unref(_sfc_main$u), null, {
|
|
1674
|
+
default: withCtx(() => [
|
|
1675
|
+
createElementVNode("div", {
|
|
1676
|
+
class: normalizeClass(wrapperClasses.value)
|
|
1677
|
+
}, [
|
|
1678
|
+
createVNode(unref(Presence), {
|
|
1679
|
+
"is-present": props.isOpen
|
|
1680
|
+
}, {
|
|
1681
|
+
default: withCtx(() => [
|
|
1682
|
+
createElementVNode("div", {
|
|
1683
|
+
role: "status",
|
|
1684
|
+
"aria-live": "polite",
|
|
1685
|
+
class: normalizeClass(panelClasses.value),
|
|
1686
|
+
onMouseenter: _cache[0] || (_cache[0] = ($event) => setPaused(true)),
|
|
1687
|
+
onMouseleave: _cache[1] || (_cache[1] = ($event) => setPaused(false)),
|
|
1688
|
+
onFocus: _cache[2] || (_cache[2] = ($event) => setPaused(true)),
|
|
1689
|
+
onBlur: _cache[3] || (_cache[3] = ($event) => setPaused(false))
|
|
1690
|
+
}, [
|
|
1691
|
+
createElementVNode("span", _hoisted_1$8, [
|
|
1692
|
+
renderSlot(_ctx.$slots, "message", {}, () => [
|
|
1693
|
+
createTextVNode(toDisplayString(props.message), 1)
|
|
1694
|
+
])
|
|
1695
|
+
]),
|
|
1696
|
+
hasUndo() ? (openBlock(), createElementBlock("button", {
|
|
1697
|
+
key: 0,
|
|
1698
|
+
type: "button",
|
|
1699
|
+
class: "font-medium text-primary transition-colors hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm px-1",
|
|
1700
|
+
onClick: onUndoClick
|
|
1701
|
+
}, toDisplayString(props.undoLabel), 1)) : createCommentVNode("", true),
|
|
1702
|
+
showCountdown.value ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
1703
|
+
createElementVNode("div", {
|
|
1704
|
+
class: "h-full bg-primary transition-[width] duration-100 ease-linear",
|
|
1705
|
+
style: normalizeStyle({ width: `${progress.value * 100}%` })
|
|
1706
|
+
}, null, 4)
|
|
1707
|
+
])) : createCommentVNode("", true)
|
|
1708
|
+
], 34)
|
|
1709
|
+
]),
|
|
1710
|
+
_: 3
|
|
1711
|
+
}, 8, ["is-present"])
|
|
1712
|
+
], 2)
|
|
1713
|
+
]),
|
|
1714
|
+
_: 3
|
|
1715
|
+
});
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
});
|
|
1719
|
+
const _hoisted_1$7 = ["aria-expanded"];
|
|
1720
|
+
const _hoisted_2$6 = { class: "flex-1" };
|
|
1721
|
+
const _hoisted_3$5 = { class: "text-sm font-medium text-foreground" };
|
|
1722
|
+
const _hoisted_4$4 = { class: "mt-1 text-xs text-muted-foreground" };
|
|
1723
|
+
const _hoisted_5$3 = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-border" };
|
|
1724
|
+
const _hoisted_6$3 = {
|
|
1725
|
+
role: "list",
|
|
1726
|
+
class: "border-t border-border"
|
|
1727
|
+
};
|
|
1728
|
+
const onboardingContextKey = Symbol("wow-two.onboardingChecklist");
|
|
1729
|
+
const onboardingRegistryKey = Symbol(
|
|
1730
|
+
"wow-two.onboardingChecklist.registry"
|
|
1731
|
+
);
|
|
1732
|
+
function useOnboardingChecklist() {
|
|
1733
|
+
const context = inject(onboardingContextKey, null);
|
|
1734
|
+
if (!context) throw new Error("useOnboardingChecklist must be used inside <OnboardingChecklist>");
|
|
1735
|
+
return context;
|
|
1736
|
+
}
|
|
1737
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1738
|
+
...{ name: "OnboardingChecklist", inheritAttrs: false },
|
|
1739
|
+
__name: "OnboardingChecklist",
|
|
1740
|
+
props: {
|
|
1741
|
+
title: { default: "Get started" },
|
|
1742
|
+
defaultOpen: { type: Boolean, default: true },
|
|
1743
|
+
canDismissOnComplete: { type: Boolean, default: false },
|
|
1744
|
+
dismissDelay: { default: 2e3 }
|
|
1745
|
+
},
|
|
1746
|
+
emits: ["dismiss"],
|
|
1747
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1748
|
+
const ChevronDownIcon = ChevronDown;
|
|
1749
|
+
const props = __props;
|
|
1750
|
+
const emit = __emit;
|
|
1751
|
+
const attrs = useAttrs();
|
|
1752
|
+
const el = useTemplateRef("el");
|
|
1753
|
+
const open = ref(props.defaultOpen);
|
|
1754
|
+
const dismissed = ref(false);
|
|
1755
|
+
const tasks = shallowRef([]);
|
|
1756
|
+
provide(onboardingRegistryKey, {
|
|
1757
|
+
register: (task) => {
|
|
1758
|
+
if (!tasks.value.includes(task)) tasks.value = [...tasks.value, task];
|
|
1759
|
+
},
|
|
1760
|
+
unregister: (task) => {
|
|
1761
|
+
tasks.value = tasks.value.filter((existing) => existing !== task);
|
|
1762
|
+
}
|
|
1763
|
+
});
|
|
1764
|
+
provide(onboardingContextKey, {
|
|
1765
|
+
get open() {
|
|
1766
|
+
return open.value;
|
|
1767
|
+
},
|
|
1768
|
+
setOpen: (value) => {
|
|
1769
|
+
open.value = value;
|
|
1770
|
+
}
|
|
1771
|
+
});
|
|
1772
|
+
const total = computed(() => tasks.value.length);
|
|
1773
|
+
const done = computed(() => tasks.value.filter((task) => task.isDone).length);
|
|
1774
|
+
const complete = computed(() => total.value > 0 && done.value === total.value);
|
|
1775
|
+
watch(
|
|
1776
|
+
[complete, () => props.canDismissOnComplete, () => props.dismissDelay, dismissed],
|
|
1777
|
+
([isComplete, canDismiss, delay, isDismissed], _previous, onCleanup) => {
|
|
1778
|
+
if (!canDismiss || !isComplete || isDismissed) return;
|
|
1779
|
+
const handle = window.setTimeout(() => {
|
|
1780
|
+
dismissed.value = true;
|
|
1781
|
+
emit("dismiss");
|
|
1782
|
+
}, delay);
|
|
1783
|
+
onCleanup(() => window.clearTimeout(handle));
|
|
1784
|
+
},
|
|
1785
|
+
{ immediate: true, flush: "post" }
|
|
1786
|
+
);
|
|
1787
|
+
const classes = computed(
|
|
1788
|
+
() => cn(
|
|
1789
|
+
"overflow-hidden rounded-lg border border-border bg-card shadow-sm",
|
|
1790
|
+
attrs.class
|
|
1791
|
+
)
|
|
1792
|
+
);
|
|
1793
|
+
const fillClasses = computed(
|
|
1794
|
+
() => cn("h-full bg-primary transition-[width] duration-300", complete.value && "bg-success")
|
|
1795
|
+
);
|
|
1796
|
+
const fillStyle = computed(() => ({
|
|
1797
|
+
width: total.value ? `${done.value / total.value * 100}%` : "0%"
|
|
1798
|
+
}));
|
|
1799
|
+
const chevronClasses = computed(
|
|
1800
|
+
() => cn("text-muted-foreground transition-transform", open.value && "rotate-180")
|
|
1801
|
+
);
|
|
1802
|
+
const rest = computed(() => {
|
|
1803
|
+
const { class: _class, ...others } = attrs;
|
|
1804
|
+
return others;
|
|
1805
|
+
});
|
|
1806
|
+
__expose({ el });
|
|
1807
|
+
return (_ctx, _cache) => {
|
|
1808
|
+
return !dismissed.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1809
|
+
key: 0,
|
|
1810
|
+
ref_key: "el",
|
|
1811
|
+
ref: el
|
|
1812
|
+
}, rest.value, { class: classes.value }), [
|
|
1813
|
+
createElementVNode("button", {
|
|
1814
|
+
type: "button",
|
|
1815
|
+
"aria-expanded": open.value,
|
|
1816
|
+
class: "flex w-full items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-muted/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
|
|
1817
|
+
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
1818
|
+
}, [
|
|
1819
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
1820
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
1821
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
1822
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
1823
|
+
])
|
|
1824
|
+
]),
|
|
1825
|
+
createElementVNode("div", _hoisted_4$4, toDisplayString(done.value) + " of " + toDisplayString(total.value) + " tasks complete", 1),
|
|
1826
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
1827
|
+
createElementVNode("div", {
|
|
1828
|
+
class: normalizeClass(fillClasses.value),
|
|
1829
|
+
style: normalizeStyle(fillStyle.value)
|
|
1830
|
+
}, null, 6)
|
|
1831
|
+
])
|
|
1832
|
+
]),
|
|
1833
|
+
createVNode(unref(_sfc_main$s), {
|
|
1834
|
+
icon: unref(ChevronDownIcon),
|
|
1835
|
+
size: 16,
|
|
1836
|
+
class: normalizeClass(chevronClasses.value)
|
|
1837
|
+
}, null, 8, ["icon", "class"])
|
|
1838
|
+
], 8, _hoisted_1$7),
|
|
1839
|
+
withDirectives(createElementVNode("ul", _hoisted_6$3, [
|
|
1840
|
+
renderSlot(_ctx.$slots, "default")
|
|
1841
|
+
], 512), [
|
|
1842
|
+
[vShow, open.value]
|
|
1843
|
+
])
|
|
1844
|
+
], 16)) : createCommentVNode("", true);
|
|
1845
|
+
};
|
|
1846
|
+
}
|
|
1847
|
+
});
|
|
1848
|
+
const _hoisted_1$6 = ["data-done"];
|
|
1849
|
+
const _hoisted_2$5 = { class: "min-w-0 flex-1" };
|
|
1850
|
+
const _hoisted_3$4 = {
|
|
1851
|
+
key: 0,
|
|
1852
|
+
class: "mt-0.5 text-xs text-muted-foreground"
|
|
1853
|
+
};
|
|
1854
|
+
const _hoisted_4$3 = {
|
|
1855
|
+
key: 0,
|
|
1856
|
+
class: "shrink-0"
|
|
1857
|
+
};
|
|
1858
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1859
|
+
...{ name: "OnboardingChecklistTask", inheritAttrs: false },
|
|
1860
|
+
__name: "OnboardingChecklistTask",
|
|
1861
|
+
props: {
|
|
1862
|
+
label: {},
|
|
1863
|
+
description: {},
|
|
1864
|
+
isDone: { type: Boolean, default: false },
|
|
1865
|
+
action: {}
|
|
1866
|
+
},
|
|
1867
|
+
setup(__props, { expose: __expose }) {
|
|
1868
|
+
const CheckIcon = Check;
|
|
1869
|
+
const props = __props;
|
|
1870
|
+
const attrs = useAttrs();
|
|
1871
|
+
const slots = useSlots();
|
|
1872
|
+
const el = useTemplateRef("el");
|
|
1873
|
+
const record = {
|
|
1874
|
+
get isDone() {
|
|
1875
|
+
return props.isDone;
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
const registry = inject(onboardingRegistryKey, null);
|
|
1879
|
+
onMounted(() => registry?.register(record));
|
|
1880
|
+
onUnmounted(() => registry?.unregister(record));
|
|
1881
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
1882
|
+
const hasAction = computed(() => Boolean(props.action) || Boolean(slots.action));
|
|
1883
|
+
const classes = computed(
|
|
1884
|
+
() => cn(
|
|
1885
|
+
"flex items-start gap-3 px-4 py-3 transition-colors",
|
|
1886
|
+
props.isDone && "opacity-60",
|
|
1887
|
+
attrs.class
|
|
1888
|
+
)
|
|
1889
|
+
);
|
|
1890
|
+
const markerClasses = computed(
|
|
1891
|
+
() => cn(
|
|
1892
|
+
"mt-0.5 grid h-5 w-5 shrink-0 place-items-center rounded-full border",
|
|
1893
|
+
props.isDone ? "border-success bg-success text-success-foreground" : "border-border"
|
|
1894
|
+
)
|
|
1895
|
+
);
|
|
1896
|
+
const labelClasses = computed(
|
|
1897
|
+
() => cn("text-sm font-medium text-foreground", props.isDone && "line-through")
|
|
1898
|
+
);
|
|
1899
|
+
const rest = computed(() => {
|
|
1900
|
+
const { class: _class, ...others } = attrs;
|
|
1901
|
+
return others;
|
|
1902
|
+
});
|
|
1903
|
+
__expose({ el });
|
|
1904
|
+
return (_ctx, _cache) => {
|
|
1905
|
+
return openBlock(), createElementBlock("li", mergeProps({
|
|
1906
|
+
ref_key: "el",
|
|
1907
|
+
ref: el,
|
|
1908
|
+
"data-done": props.isDone || void 0
|
|
1909
|
+
}, rest.value, { class: classes.value }), [
|
|
1910
|
+
createElementVNode("span", {
|
|
1911
|
+
"aria-hidden": "true",
|
|
1912
|
+
class: normalizeClass(markerClasses.value)
|
|
1913
|
+
}, [
|
|
1914
|
+
props.isDone ? (openBlock(), createBlock(unref(_sfc_main$s), {
|
|
1915
|
+
key: 0,
|
|
1916
|
+
icon: unref(CheckIcon),
|
|
1917
|
+
size: 12
|
|
1918
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
1919
|
+
], 2),
|
|
1920
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
1921
|
+
createElementVNode("div", {
|
|
1922
|
+
class: normalizeClass(labelClasses.value)
|
|
1923
|
+
}, [
|
|
1924
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1925
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
1926
|
+
])
|
|
1927
|
+
], 2),
|
|
1928
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
1929
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
1930
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
1931
|
+
])
|
|
1932
|
+
])) : createCommentVNode("", true)
|
|
1933
|
+
]),
|
|
1934
|
+
hasAction.value && !props.isDone ? (openBlock(), createElementBlock("div", _hoisted_4$3, [
|
|
1935
|
+
renderSlot(_ctx.$slots, "action", {}, () => [
|
|
1936
|
+
createTextVNode(toDisplayString(props.action), 1)
|
|
1937
|
+
])
|
|
1938
|
+
])) : createCommentVNode("", true)
|
|
1939
|
+
], 16, _hoisted_1$6);
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
});
|
|
1943
|
+
const _hoisted_1$5 = {
|
|
1944
|
+
key: 0,
|
|
1945
|
+
"aria-hidden": "true",
|
|
1946
|
+
class: "pointer-events-auto fixed inset-0 z-modal h-full w-full",
|
|
1947
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1948
|
+
};
|
|
1949
|
+
const _hoisted_2$4 = ["id"];
|
|
1950
|
+
const _hoisted_3$3 = ["x", "y", "width", "height"];
|
|
1951
|
+
const _hoisted_4$2 = ["mask"];
|
|
1952
|
+
const _hoisted_5$2 = ["aria-labelledby", "aria-describedby"];
|
|
1953
|
+
const _hoisted_6$2 = ["id"];
|
|
1954
|
+
const _hoisted_7$2 = ["id"];
|
|
1955
|
+
const _hoisted_8$1 = { class: "mt-3 flex items-center justify-between gap-3" };
|
|
1956
|
+
const _hoisted_9 = { class: "text-xs text-muted-foreground" };
|
|
1957
|
+
const _hoisted_10 = { class: "flex items-center gap-2" };
|
|
1958
|
+
const Placement = {
|
|
1959
|
+
/** Refers to placement above the target. */
|
|
1960
|
+
Top: "top",
|
|
1961
|
+
/** Refers to placement to the right of the target. */
|
|
1962
|
+
Right: "right",
|
|
1963
|
+
/** Refers to placement below the target. */
|
|
1964
|
+
Bottom: "bottom",
|
|
1965
|
+
/** Refers to placement to the left of the target. */
|
|
1966
|
+
Left: "left"
|
|
1967
|
+
};
|
|
1968
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1969
|
+
...{ name: "Tour", inheritAttrs: false },
|
|
1970
|
+
__name: "Tour",
|
|
1971
|
+
props: {
|
|
1972
|
+
isOpen: { type: Boolean, default: void 0 },
|
|
1973
|
+
defaultOpen: { type: Boolean, default: false },
|
|
1974
|
+
steps: {},
|
|
1975
|
+
currentStep: {},
|
|
1976
|
+
defaultCurrentStep: { default: 0 },
|
|
1977
|
+
padding: { default: 8 }
|
|
1978
|
+
},
|
|
1979
|
+
emits: ["open-change", "step-change", "complete", "skip"],
|
|
1980
|
+
setup(__props, { emit: __emit }) {
|
|
1981
|
+
function rectFromTarget(target) {
|
|
1982
|
+
const el = typeof target === "string" ? document.querySelector(target) : target.value;
|
|
1983
|
+
if (!el) return null;
|
|
1984
|
+
const r = el.getBoundingClientRect();
|
|
1985
|
+
return { top: r.top, left: r.left, width: r.width, height: r.height };
|
|
1986
|
+
}
|
|
1987
|
+
function placementCoords(rect2, placement2, gap = 12) {
|
|
1988
|
+
switch (placement2) {
|
|
1989
|
+
case Placement.Top:
|
|
1990
|
+
return { top: rect2.top - gap, left: rect2.left + rect2.width / 2, transform: "translate(-50%, -100%)" };
|
|
1991
|
+
case Placement.Right:
|
|
1992
|
+
return { top: rect2.top + rect2.height / 2, left: rect2.left + rect2.width + gap, transform: "translate(0, -50%)" };
|
|
1993
|
+
case Placement.Bottom:
|
|
1994
|
+
return { top: rect2.top + rect2.height + gap, left: rect2.left + rect2.width / 2, transform: "translate(-50%, 0)" };
|
|
1995
|
+
case Placement.Left:
|
|
1996
|
+
return { top: rect2.top + rect2.height / 2, left: rect2.left - gap, transform: "translate(-100%, -50%)" };
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
const props = __props;
|
|
2000
|
+
const emit = __emit;
|
|
2001
|
+
const openCtl = useControlled({
|
|
2002
|
+
controlled: () => props.isOpen,
|
|
2003
|
+
default: () => props.defaultOpen,
|
|
2004
|
+
onChange: (value) => emit("open-change", value)
|
|
2005
|
+
});
|
|
2006
|
+
const stepCtl = useControlled({
|
|
2007
|
+
controlled: () => props.currentStep,
|
|
2008
|
+
default: () => props.defaultCurrentStep,
|
|
2009
|
+
onChange: (value) => emit("step-change", value)
|
|
2010
|
+
});
|
|
2011
|
+
const open = computed(() => openCtl.value.value);
|
|
2012
|
+
const stepIndex = computed(() => stepCtl.value.value);
|
|
2013
|
+
const rect = shallowRef(null);
|
|
2014
|
+
const titleId = useId("tour-title");
|
|
2015
|
+
const descId = useId("tour-desc");
|
|
2016
|
+
const maskId = useId("tour-mask");
|
|
2017
|
+
const reducedMotion = useReducedMotion();
|
|
2018
|
+
const step = computed(() => props.steps[stepIndex.value]);
|
|
2019
|
+
const mounted = ref(open.value);
|
|
2020
|
+
watch(
|
|
2021
|
+
[open, reducedMotion],
|
|
2022
|
+
([isOpen, isReduced], _previous, onCleanup) => {
|
|
2023
|
+
if (isOpen) {
|
|
2024
|
+
mounted.value = true;
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
if (!isReduced) return;
|
|
2028
|
+
const raf = requestAnimationFrame(() => {
|
|
2029
|
+
mounted.value = false;
|
|
2030
|
+
});
|
|
2031
|
+
onCleanup(() => cancelAnimationFrame(raf));
|
|
2032
|
+
},
|
|
2033
|
+
{ immediate: true, flush: "post" }
|
|
2034
|
+
);
|
|
2035
|
+
watch(
|
|
2036
|
+
[open, step],
|
|
2037
|
+
([isOpen, currentStepValue], _previous, onCleanup) => {
|
|
2038
|
+
if (!isOpen || !currentStepValue) return;
|
|
2039
|
+
if (typeof requestAnimationFrame === "undefined" || typeof window === "undefined") return;
|
|
2040
|
+
const update = () => {
|
|
2041
|
+
rect.value = rectFromTarget(currentStepValue.target);
|
|
2042
|
+
};
|
|
2043
|
+
const handle = requestAnimationFrame(update);
|
|
2044
|
+
window.addEventListener("resize", update, { passive: true });
|
|
2045
|
+
window.addEventListener("scroll", update, { passive: true, capture: true });
|
|
2046
|
+
onCleanup(() => {
|
|
2047
|
+
cancelAnimationFrame(handle);
|
|
2048
|
+
window.removeEventListener("resize", update);
|
|
2049
|
+
window.removeEventListener("scroll", update, true);
|
|
2050
|
+
});
|
|
2051
|
+
},
|
|
2052
|
+
{ immediate: true, flush: "post" }
|
|
2053
|
+
);
|
|
2054
|
+
watch(
|
|
2055
|
+
open,
|
|
2056
|
+
(isOpen, _previous, onCleanup) => {
|
|
2057
|
+
if (!isOpen) return;
|
|
2058
|
+
if (typeof document === "undefined") return;
|
|
2059
|
+
const onKey = (event) => {
|
|
2060
|
+
if (event.key === Key.Escape) {
|
|
2061
|
+
event.preventDefault();
|
|
2062
|
+
openCtl.setValue(false);
|
|
2063
|
+
emit("skip");
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
document.addEventListener("keydown", onKey);
|
|
2067
|
+
onCleanup(() => document.removeEventListener("keydown", onKey));
|
|
2068
|
+
},
|
|
2069
|
+
{ immediate: true, flush: "post" }
|
|
2070
|
+
);
|
|
2071
|
+
const goNext = () => {
|
|
2072
|
+
if (stepIndex.value >= props.steps.length - 1) {
|
|
2073
|
+
openCtl.setValue(false);
|
|
2074
|
+
emit("complete");
|
|
2075
|
+
} else {
|
|
2076
|
+
stepCtl.setValue(stepIndex.value + 1);
|
|
2077
|
+
}
|
|
2078
|
+
};
|
|
2079
|
+
const goPrev = () => {
|
|
2080
|
+
if (stepIndex.value > 0) stepCtl.setValue(stepIndex.value - 1);
|
|
2081
|
+
};
|
|
2082
|
+
const skip = () => {
|
|
2083
|
+
openCtl.setValue(false);
|
|
2084
|
+
emit("skip");
|
|
2085
|
+
};
|
|
2086
|
+
const placement = computed(() => step.value?.placement ?? Placement.Bottom);
|
|
2087
|
+
const tooltipCoords = computed(
|
|
2088
|
+
() => rect.value ? placementCoords(rect.value, placement.value) : null
|
|
2089
|
+
);
|
|
2090
|
+
const tooltipStyle = computed(() => {
|
|
2091
|
+
const coords = tooltipCoords.value;
|
|
2092
|
+
if (!coords) return void 0;
|
|
2093
|
+
return {
|
|
2094
|
+
position: "fixed",
|
|
2095
|
+
top: `${coords.top}px`,
|
|
2096
|
+
left: `${coords.left}px`,
|
|
2097
|
+
transform: coords.transform
|
|
2098
|
+
};
|
|
2099
|
+
});
|
|
2100
|
+
const announcement = computed(
|
|
2101
|
+
() => step.value?.title ? `Step ${stepIndex.value + 1} of ${props.steps.length}: ${step.value.title}` : ""
|
|
2102
|
+
);
|
|
2103
|
+
const bodyClasses = computed(
|
|
2104
|
+
() => cn("text-sm text-muted-foreground", step.value?.title && "mt-1.5")
|
|
2105
|
+
);
|
|
2106
|
+
const tooltipClasses = cn(
|
|
2107
|
+
"z-popover w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-lg outline-none",
|
|
2108
|
+
"motion-safe:data-[state=open]:animate-(--animate-pop-in)",
|
|
2109
|
+
"motion-safe:data-[state=closed]:animate-(--animate-pop-out)",
|
|
2110
|
+
"motion-reduce:animate-none"
|
|
2111
|
+
);
|
|
2112
|
+
const onTooltipAnimationEnd = () => {
|
|
2113
|
+
if (!open.value) mounted.value = false;
|
|
2114
|
+
};
|
|
2115
|
+
return (_ctx, _cache) => {
|
|
2116
|
+
return mounted.value && step.value ? (openBlock(), createBlock(unref(_sfc_main$u), { key: 0 }, {
|
|
2117
|
+
default: withCtx(() => [
|
|
2118
|
+
open.value && rect.value ? (openBlock(), createElementBlock("svg", _hoisted_1$5, [
|
|
2119
|
+
createElementVNode("defs", null, [
|
|
2120
|
+
createElementVNode("mask", { id: unref(maskId) }, [
|
|
2121
|
+
_cache[0] || (_cache[0] = createElementVNode("rect", {
|
|
2122
|
+
width: "100%",
|
|
2123
|
+
height: "100%",
|
|
2124
|
+
fill: "white"
|
|
2125
|
+
}, null, -1)),
|
|
2126
|
+
createElementVNode("rect", {
|
|
2127
|
+
x: rect.value.left - props.padding,
|
|
2128
|
+
y: rect.value.top - props.padding,
|
|
2129
|
+
width: rect.value.width + props.padding * 2,
|
|
2130
|
+
height: rect.value.height + props.padding * 2,
|
|
2131
|
+
rx: 6,
|
|
2132
|
+
fill: "black"
|
|
2133
|
+
}, null, 8, _hoisted_3$3)
|
|
2134
|
+
], 8, _hoisted_2$4)
|
|
2135
|
+
]),
|
|
2136
|
+
createElementVNode("rect", {
|
|
2137
|
+
width: "100%",
|
|
2138
|
+
height: "100%",
|
|
2139
|
+
fill: "rgba(0,0,0,0.55)",
|
|
2140
|
+
mask: `url(#${unref(maskId)})`
|
|
2141
|
+
}, null, 8, _hoisted_4$2)
|
|
2142
|
+
])) : createCommentVNode("", true),
|
|
2143
|
+
tooltipCoords.value ? (openBlock(), createBlock(unref(Presence), {
|
|
2144
|
+
key: 1,
|
|
2145
|
+
"is-present": open.value
|
|
2146
|
+
}, {
|
|
2147
|
+
default: withCtx(() => [
|
|
2148
|
+
createElementVNode("div", {
|
|
2149
|
+
role: "dialog",
|
|
2150
|
+
"aria-modal": "false",
|
|
2151
|
+
"aria-labelledby": unref(titleId),
|
|
2152
|
+
"aria-describedby": unref(descId),
|
|
2153
|
+
style: normalizeStyle(tooltipStyle.value),
|
|
2154
|
+
class: normalizeClass(unref(tooltipClasses)),
|
|
2155
|
+
onAnimationend: onTooltipAnimationEnd
|
|
2156
|
+
}, [
|
|
2157
|
+
step.value.title ? (openBlock(), createElementBlock("div", {
|
|
2158
|
+
key: 0,
|
|
2159
|
+
id: unref(titleId),
|
|
2160
|
+
class: "text-sm font-semibold"
|
|
2161
|
+
}, toDisplayString(step.value.title), 9, _hoisted_6$2)) : createCommentVNode("", true),
|
|
2162
|
+
step.value.body ? (openBlock(), createElementBlock("div", {
|
|
2163
|
+
key: 1,
|
|
2164
|
+
id: unref(descId),
|
|
2165
|
+
class: normalizeClass(bodyClasses.value)
|
|
2166
|
+
}, toDisplayString(step.value.body), 11, _hoisted_7$2)) : createCommentVNode("", true),
|
|
2167
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
2168
|
+
createElementVNode("span", _hoisted_9, toDisplayString(stepIndex.value + 1) + " / " + toDisplayString(props.steps.length), 1),
|
|
2169
|
+
createElementVNode("div", _hoisted_10, [
|
|
2170
|
+
createElementVNode("button", {
|
|
2171
|
+
type: "button",
|
|
2172
|
+
class: "text-xs text-muted-foreground hover:text-foreground",
|
|
2173
|
+
onClick: skip
|
|
2174
|
+
}, " Skip "),
|
|
2175
|
+
stepIndex.value > 0 ? (openBlock(), createElementBlock("button", {
|
|
2176
|
+
key: 0,
|
|
2177
|
+
type: "button",
|
|
2178
|
+
class: "inline-flex h-7 items-center rounded-md border border-border bg-background px-2.5 text-xs font-medium hover:bg-muted",
|
|
2179
|
+
onClick: goPrev
|
|
2180
|
+
}, " Back ")) : createCommentVNode("", true),
|
|
2181
|
+
createElementVNode("button", {
|
|
2182
|
+
type: "button",
|
|
2183
|
+
class: "inline-flex h-7 items-center rounded-md bg-primary px-2.5 text-xs font-medium text-primary-foreground hover:bg-primary/90",
|
|
2184
|
+
onClick: goNext
|
|
2185
|
+
}, toDisplayString(stepIndex.value >= props.steps.length - 1 ? "Done" : "Next"), 1)
|
|
2186
|
+
])
|
|
2187
|
+
])
|
|
2188
|
+
], 46, _hoisted_5$2)
|
|
2189
|
+
]),
|
|
2190
|
+
_: 1
|
|
2191
|
+
}, 8, ["is-present"])) : createCommentVNode("", true),
|
|
2192
|
+
createVNode(unref(_sfc_main$v), { politeness: "polite" }, {
|
|
2193
|
+
default: withCtx(() => [
|
|
2194
|
+
createTextVNode(toDisplayString(announcement.value), 1)
|
|
2195
|
+
]),
|
|
2196
|
+
_: 1
|
|
2197
|
+
})
|
|
2198
|
+
]),
|
|
2199
|
+
_: 1
|
|
2200
|
+
})) : createCommentVNode("", true);
|
|
2201
|
+
};
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2204
|
+
const _hoisted_1$4 = ["aria-label"];
|
|
2205
|
+
const _hoisted_2$3 = {
|
|
2206
|
+
key: 0,
|
|
2207
|
+
class: "truncate"
|
|
2208
|
+
};
|
|
2209
|
+
const _hoisted_3$2 = {
|
|
2210
|
+
class: "inline-flex items-end gap-1",
|
|
2211
|
+
"aria-hidden": "true"
|
|
2212
|
+
};
|
|
2213
|
+
const TypingTone = {
|
|
2214
|
+
/** Refers to the muted-foreground tone. */
|
|
2215
|
+
Muted: "muted",
|
|
2216
|
+
/** Refers to the primary / brand tone. */
|
|
2217
|
+
Primary: "primary",
|
|
2218
|
+
/** Refers to the full-emphasis foreground tone. */
|
|
2219
|
+
Foreground: "foreground"
|
|
2220
|
+
};
|
|
2221
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2222
|
+
...{ name: "TypingIndicator", inheritAttrs: false },
|
|
2223
|
+
__name: "TypingIndicator",
|
|
2224
|
+
props: {
|
|
2225
|
+
who: {},
|
|
2226
|
+
size: { default: Size.Md },
|
|
2227
|
+
tone: { default: TypingTone.Muted },
|
|
2228
|
+
isSubtle: { type: Boolean }
|
|
2229
|
+
},
|
|
2230
|
+
setup(__props, { expose: __expose }) {
|
|
2231
|
+
const SIZE = {
|
|
2232
|
+
sm: "h-1 w-1",
|
|
2233
|
+
md: "h-1.5 w-1.5",
|
|
2234
|
+
lg: "h-2 w-2"
|
|
2235
|
+
};
|
|
2236
|
+
const TONE = {
|
|
2237
|
+
muted: "bg-muted-foreground",
|
|
2238
|
+
primary: "bg-primary",
|
|
2239
|
+
foreground: "bg-foreground"
|
|
2240
|
+
};
|
|
2241
|
+
const props = __props;
|
|
2242
|
+
const attrs = useAttrs();
|
|
2243
|
+
const slots = useSlots();
|
|
2244
|
+
const el = useTemplateRef("el");
|
|
2245
|
+
const hasWho = computed(() => Boolean(props.who) || Boolean(slots.who));
|
|
2246
|
+
const dot = computed(
|
|
2247
|
+
() => cn(
|
|
2248
|
+
"inline-block rounded-full motion-safe:animate-bounce",
|
|
2249
|
+
SIZE[props.size] ?? SIZE.md,
|
|
2250
|
+
TONE[props.tone],
|
|
2251
|
+
props.isSubtle && "motion-safe:opacity-60"
|
|
2252
|
+
)
|
|
2253
|
+
);
|
|
2254
|
+
const ariaLabel = computed(() => props.who ? `${props.who} is typing` : "Typing");
|
|
2255
|
+
const classes = computed(
|
|
2256
|
+
() => cn("inline-flex items-center gap-2 text-xs text-muted-foreground", attrs.class)
|
|
2257
|
+
);
|
|
2258
|
+
const rest = computed(() => {
|
|
2259
|
+
const { class: _class, ...others } = attrs;
|
|
2260
|
+
return others;
|
|
2261
|
+
});
|
|
2262
|
+
__expose({ el });
|
|
2263
|
+
return (_ctx, _cache) => {
|
|
2264
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
2265
|
+
ref_key: "el",
|
|
2266
|
+
ref: el,
|
|
2267
|
+
role: "status",
|
|
2268
|
+
"aria-live": "polite",
|
|
2269
|
+
"aria-label": ariaLabel.value
|
|
2270
|
+
}, rest.value, { class: classes.value }), [
|
|
2271
|
+
hasWho.value ? (openBlock(), createElementBlock("span", _hoisted_2$3, [
|
|
2272
|
+
renderSlot(_ctx.$slots, "who", {}, () => [
|
|
2273
|
+
createTextVNode(toDisplayString(props.who), 1)
|
|
2274
|
+
])
|
|
2275
|
+
])) : createCommentVNode("", true),
|
|
2276
|
+
createElementVNode("span", _hoisted_3$2, [
|
|
2277
|
+
createElementVNode("span", {
|
|
2278
|
+
class: normalizeClass(dot.value),
|
|
2279
|
+
style: { animationDelay: "0ms" }
|
|
2280
|
+
}, null, 2),
|
|
2281
|
+
createElementVNode("span", {
|
|
2282
|
+
class: normalizeClass(dot.value),
|
|
2283
|
+
style: { animationDelay: "150ms" }
|
|
2284
|
+
}, null, 2),
|
|
2285
|
+
createElementVNode("span", {
|
|
2286
|
+
class: normalizeClass(dot.value),
|
|
2287
|
+
style: { animationDelay: "300ms" }
|
|
2288
|
+
}, null, 2)
|
|
2289
|
+
])
|
|
2290
|
+
], 16, _hoisted_1$4);
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
});
|
|
2294
|
+
const _hoisted_1$3 = ["aria-label", "data-status"];
|
|
2295
|
+
const PresenceStatus = {
|
|
2296
|
+
/** Refers to actively available. */
|
|
2297
|
+
Online: "online",
|
|
2298
|
+
/** Refers to present but inactive. */
|
|
2299
|
+
Idle: "idle",
|
|
2300
|
+
/** Refers to present but do-not-disturb. */
|
|
2301
|
+
Busy: "busy",
|
|
2302
|
+
/** Refers to not connected. */
|
|
2303
|
+
Offline: "offline",
|
|
2304
|
+
/** Refers to connected but appearing offline. */
|
|
2305
|
+
Invisible: "invisible"
|
|
2306
|
+
};
|
|
2307
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2308
|
+
...{ name: "PresenceIndicator", inheritAttrs: false },
|
|
2309
|
+
__name: "PresenceIndicator",
|
|
2310
|
+
props: {
|
|
2311
|
+
status: { default: PresenceStatus.Online },
|
|
2312
|
+
size: { default: Size.Sm },
|
|
2313
|
+
hasPulse: { type: Boolean },
|
|
2314
|
+
position: {},
|
|
2315
|
+
label: {}
|
|
2316
|
+
},
|
|
2317
|
+
setup(__props, { expose: __expose }) {
|
|
2318
|
+
const STATUS_BG = {
|
|
2319
|
+
online: "bg-success",
|
|
2320
|
+
idle: "bg-warning",
|
|
2321
|
+
busy: "bg-destructive",
|
|
2322
|
+
offline: "bg-muted-foreground",
|
|
2323
|
+
invisible: "bg-transparent border border-muted-foreground"
|
|
2324
|
+
};
|
|
2325
|
+
const SIZE = {
|
|
2326
|
+
xs: "h-1.5 w-1.5",
|
|
2327
|
+
sm: "h-2 w-2",
|
|
2328
|
+
md: "h-2.5 w-2.5",
|
|
2329
|
+
lg: "h-3 w-3"
|
|
2330
|
+
};
|
|
2331
|
+
const POS = {
|
|
2332
|
+
"top-right": "absolute top-0 right-0",
|
|
2333
|
+
"top-left": "absolute top-0 left-0",
|
|
2334
|
+
"bottom-right": "absolute bottom-0 right-0",
|
|
2335
|
+
"bottom-left": "absolute bottom-0 left-0"
|
|
2336
|
+
};
|
|
2337
|
+
const STATUS_LABEL = {
|
|
2338
|
+
online: "Online",
|
|
2339
|
+
idle: "Idle",
|
|
2340
|
+
busy: "Busy",
|
|
2341
|
+
offline: "Offline",
|
|
2342
|
+
invisible: "Invisible"
|
|
2343
|
+
};
|
|
2344
|
+
const props = __props;
|
|
2345
|
+
const attrs = useAttrs();
|
|
2346
|
+
const el = useTemplateRef("el");
|
|
2347
|
+
const showPulse = computed(() => Boolean(props.hasPulse) && props.status === PresenceStatus.Online);
|
|
2348
|
+
const classes = computed(
|
|
2349
|
+
() => cn(
|
|
2350
|
+
"inline-flex rounded-full ring-2 ring-background",
|
|
2351
|
+
STATUS_BG[props.status],
|
|
2352
|
+
SIZE[props.size] ?? SIZE.sm,
|
|
2353
|
+
props.position && POS[props.position],
|
|
2354
|
+
"relative",
|
|
2355
|
+
attrs.class
|
|
2356
|
+
)
|
|
2357
|
+
);
|
|
2358
|
+
const rest = computed(() => {
|
|
2359
|
+
const { class: _class, ...others } = attrs;
|
|
2360
|
+
return others;
|
|
2361
|
+
});
|
|
2362
|
+
__expose({ el });
|
|
2363
|
+
return (_ctx, _cache) => {
|
|
2364
|
+
return openBlock(), createElementBlock("span", mergeProps({
|
|
2365
|
+
ref_key: "el",
|
|
2366
|
+
ref: el,
|
|
2367
|
+
role: "status",
|
|
2368
|
+
"aria-label": props.label ?? STATUS_LABEL[props.status],
|
|
2369
|
+
"data-status": props.status
|
|
2370
|
+
}, rest.value, { class: classes.value }), [
|
|
2371
|
+
showPulse.value ? (openBlock(), createElementBlock("span", {
|
|
2372
|
+
key: 0,
|
|
2373
|
+
"aria-hidden": "true",
|
|
2374
|
+
class: normalizeClass(unref(cn)("absolute inset-0 rounded-full opacity-75 motion-safe:animate-ping", STATUS_BG.online))
|
|
2375
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
2376
|
+
], 16, _hoisted_1$3);
|
|
2377
|
+
};
|
|
2378
|
+
}
|
|
2379
|
+
});
|
|
2380
|
+
const _hoisted_1$2 = {
|
|
2381
|
+
width: "20",
|
|
2382
|
+
height: "20",
|
|
2383
|
+
viewBox: "0 0 24 24",
|
|
2384
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2385
|
+
class: "drop-shadow-sm"
|
|
2386
|
+
};
|
|
2387
|
+
const _hoisted_2$2 = ["fill"];
|
|
2388
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2389
|
+
...{ name: "LiveCursor", inheritAttrs: false },
|
|
2390
|
+
__name: "LiveCursor",
|
|
2391
|
+
props: {
|
|
2392
|
+
x: {},
|
|
2393
|
+
y: {},
|
|
2394
|
+
name: {},
|
|
2395
|
+
color: { default: "var(--color-primary)" },
|
|
2396
|
+
isSmooth: { type: Boolean, default: true },
|
|
2397
|
+
labelOffset: {},
|
|
2398
|
+
isPointerOnly: { type: Boolean }
|
|
2399
|
+
},
|
|
2400
|
+
setup(__props, { expose: __expose }) {
|
|
2401
|
+
const props = __props;
|
|
2402
|
+
const attrs = useAttrs();
|
|
2403
|
+
const slots = useSlots();
|
|
2404
|
+
const el = useTemplateRef("el");
|
|
2405
|
+
const reducedMotion = useReducedMotion();
|
|
2406
|
+
const useTransition = computed(() => props.isSmooth && !reducedMotion.value);
|
|
2407
|
+
const lx = computed(() => props.labelOffset?.x ?? 12);
|
|
2408
|
+
const ly = computed(() => props.labelOffset?.y ?? 16);
|
|
2409
|
+
const hasName = computed(() => Boolean(props.name) || Boolean(slots.name));
|
|
2410
|
+
const wrapperStyle = computed(() => ({
|
|
2411
|
+
transform: `translate3d(${props.x}px, ${props.y}px, 0)`,
|
|
2412
|
+
transition: useTransition.value ? "transform 80ms linear" : void 0
|
|
2413
|
+
}));
|
|
2414
|
+
const labelStyle = computed(() => ({
|
|
2415
|
+
backgroundColor: props.color,
|
|
2416
|
+
transform: `translate(${lx.value}px, ${ly.value}px)`
|
|
2417
|
+
}));
|
|
2418
|
+
const classes = computed(
|
|
2419
|
+
() => cn(
|
|
2420
|
+
"pointer-events-none absolute left-0 top-0 z-tooltip select-none",
|
|
2421
|
+
attrs.class
|
|
2422
|
+
)
|
|
2423
|
+
);
|
|
2424
|
+
const rest = computed(() => {
|
|
2425
|
+
const { class: _class, style: _style, ...others } = attrs;
|
|
2426
|
+
return others;
|
|
2427
|
+
});
|
|
2428
|
+
const callerStyle = computed(() => attrs.style);
|
|
2429
|
+
__expose({ el });
|
|
2430
|
+
return (_ctx, _cache) => {
|
|
2431
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
2432
|
+
ref_key: "el",
|
|
2433
|
+
ref: el,
|
|
2434
|
+
"aria-hidden": "true"
|
|
2435
|
+
}, rest.value, {
|
|
2436
|
+
class: classes.value,
|
|
2437
|
+
style: [wrapperStyle.value, callerStyle.value ?? {}]
|
|
2438
|
+
}), [
|
|
2439
|
+
(openBlock(), createElementBlock("svg", _hoisted_1$2, [
|
|
2440
|
+
createElementVNode("path", {
|
|
2441
|
+
d: "M5 3 L5 19 L9.5 14.5 L12.5 21 L15.5 19.5 L12.5 13 L19 13 Z",
|
|
2442
|
+
fill: props.color,
|
|
2443
|
+
stroke: "white",
|
|
2444
|
+
"stroke-width": "1.25",
|
|
2445
|
+
"stroke-linejoin": "round"
|
|
2446
|
+
}, null, 8, _hoisted_2$2)
|
|
2447
|
+
])),
|
|
2448
|
+
hasName.value && !props.isPointerOnly ? (openBlock(), createElementBlock("span", {
|
|
2449
|
+
key: 0,
|
|
2450
|
+
class: "absolute whitespace-nowrap rounded-md px-1.5 py-0.5 text-[11px] font-medium leading-none text-white shadow-sm",
|
|
2451
|
+
style: normalizeStyle(labelStyle.value)
|
|
2452
|
+
}, [
|
|
2453
|
+
renderSlot(_ctx.$slots, "name", {}, () => [
|
|
2454
|
+
createTextVNode(toDisplayString(props.name), 1)
|
|
2455
|
+
])
|
|
2456
|
+
], 4)) : createCommentVNode("", true)
|
|
2457
|
+
], 16);
|
|
2458
|
+
};
|
|
2459
|
+
}
|
|
2460
|
+
});
|
|
2461
|
+
const _hoisted_1$1 = { class: "flex items-center justify-between gap-2 border-b border-border px-3 py-2.5" };
|
|
2462
|
+
const _hoisted_2$1 = { class: "flex items-center gap-2" };
|
|
2463
|
+
const _hoisted_3$1 = { class: "text-sm font-semibold" };
|
|
2464
|
+
const _hoisted_4$1 = {
|
|
2465
|
+
key: 0,
|
|
2466
|
+
class: "inline-flex items-center justify-center rounded-full bg-primary px-1.5 text-[10px] font-semibold leading-5 text-primary-foreground"
|
|
2467
|
+
};
|
|
2468
|
+
const _hoisted_5$1 = { class: "max-h-96 overflow-y-auto py-1" };
|
|
2469
|
+
const _hoisted_6$1 = { class: "flex flex-col items-center gap-2 px-4 py-10 text-center text-muted-foreground" };
|
|
2470
|
+
const _hoisted_7$1 = {
|
|
2471
|
+
key: 1,
|
|
2472
|
+
class: "flex flex-col"
|
|
2473
|
+
};
|
|
2474
|
+
const _hoisted_8 = {
|
|
2475
|
+
key: 0,
|
|
2476
|
+
class: "border-t border-border px-3 py-2 text-center text-xs"
|
|
2477
|
+
};
|
|
2478
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2479
|
+
...{ name: "NotificationCenter", inheritAttrs: false },
|
|
2480
|
+
__name: "NotificationCenter",
|
|
2481
|
+
props: {
|
|
2482
|
+
title: { default: "Notifications" },
|
|
2483
|
+
count: {}
|
|
2484
|
+
},
|
|
2485
|
+
setup(__props, { expose: __expose }) {
|
|
2486
|
+
const props = __props;
|
|
2487
|
+
const attrs = useAttrs();
|
|
2488
|
+
const slots = useSlots();
|
|
2489
|
+
const el = useTemplateRef("el");
|
|
2490
|
+
const isEmpty = () => renderableChildren(slots.default?.()).length === 0;
|
|
2491
|
+
const classes = computed(
|
|
2492
|
+
() => cn(
|
|
2493
|
+
"flex w-80 flex-col",
|
|
2494
|
+
surfaceVariants({ variant: "surface", radius: "md" }),
|
|
2495
|
+
attrs.class
|
|
2496
|
+
)
|
|
2497
|
+
);
|
|
2498
|
+
const rest = computed(() => {
|
|
2499
|
+
const { class: _class, ...others } = attrs;
|
|
2500
|
+
return others;
|
|
2501
|
+
});
|
|
2502
|
+
__expose({ el });
|
|
2503
|
+
return (_ctx, _cache) => {
|
|
2504
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
2505
|
+
ref_key: "el",
|
|
2506
|
+
ref: el,
|
|
2507
|
+
role: "region",
|
|
2508
|
+
"aria-label": "Notifications"
|
|
2509
|
+
}, rest.value, { class: classes.value }), [
|
|
2510
|
+
createElementVNode("header", _hoisted_1$1, [
|
|
2511
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
2512
|
+
createElementVNode("span", _hoisted_3$1, [
|
|
2513
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2514
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
2515
|
+
])
|
|
2516
|
+
]),
|
|
2517
|
+
props.count != null || _ctx.$slots.count ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
|
|
2518
|
+
renderSlot(_ctx.$slots, "count", {}, () => [
|
|
2519
|
+
createTextVNode(toDisplayString(props.count), 1)
|
|
2520
|
+
])
|
|
2521
|
+
])) : createCommentVNode("", true)
|
|
2522
|
+
]),
|
|
2523
|
+
renderSlot(_ctx.$slots, "headerActions")
|
|
2524
|
+
]),
|
|
2525
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
2526
|
+
isEmpty() ? renderSlot(_ctx.$slots, "emptyState", {}, () => [
|
|
2527
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
2528
|
+
createVNode(unref(Bell), { class: "h-6 w-6" }),
|
|
2529
|
+
_cache[0] || (_cache[0] = createElementVNode("p", { class: "text-sm" }, "You're all caught up.", -1))
|
|
2530
|
+
])
|
|
2531
|
+
], void 0, 0) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
2532
|
+
renderSlot(_ctx.$slots, "default")
|
|
2533
|
+
]))
|
|
2534
|
+
]),
|
|
2535
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
2536
|
+
renderSlot(_ctx.$slots, "footer")
|
|
2537
|
+
])) : createCommentVNode("", true)
|
|
2538
|
+
], 16);
|
|
2539
|
+
};
|
|
2540
|
+
}
|
|
2541
|
+
});
|
|
2542
|
+
const _hoisted_1 = ["role", "tabindex", "data-unread"];
|
|
2543
|
+
const _hoisted_2 = {
|
|
2544
|
+
key: 0,
|
|
2545
|
+
"aria-hidden": "true",
|
|
2546
|
+
class: "absolute left-1 top-3 inline-block h-2 w-2 rounded-full bg-primary"
|
|
2547
|
+
};
|
|
2548
|
+
const _hoisted_3 = {
|
|
2549
|
+
key: 1,
|
|
2550
|
+
class: "shrink-0 self-start pl-3"
|
|
2551
|
+
};
|
|
2552
|
+
const _hoisted_4 = { class: "flex items-baseline gap-2" };
|
|
2553
|
+
const _hoisted_5 = {
|
|
2554
|
+
key: 0,
|
|
2555
|
+
class: "ml-auto whitespace-nowrap text-xs text-muted-foreground"
|
|
2556
|
+
};
|
|
2557
|
+
const _hoisted_6 = {
|
|
2558
|
+
key: 0,
|
|
2559
|
+
class: "mt-0.5 line-clamp-2 text-xs text-muted-foreground"
|
|
2560
|
+
};
|
|
2561
|
+
const _hoisted_7 = {
|
|
2562
|
+
key: 1,
|
|
2563
|
+
class: "mt-1.5 flex items-center gap-2"
|
|
2564
|
+
};
|
|
2565
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2566
|
+
...{ name: "NotificationItem", inheritAttrs: false },
|
|
2567
|
+
__name: "NotificationItem",
|
|
2568
|
+
props: {
|
|
2569
|
+
icon: {},
|
|
2570
|
+
title: {},
|
|
2571
|
+
description: {},
|
|
2572
|
+
timestamp: {},
|
|
2573
|
+
isUnread: { type: Boolean },
|
|
2574
|
+
actions: {}
|
|
2575
|
+
},
|
|
2576
|
+
emits: ["select", "dismiss"],
|
|
2577
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2578
|
+
const props = __props;
|
|
2579
|
+
const emit = __emit;
|
|
2580
|
+
const attrs = useAttrs();
|
|
2581
|
+
const slots = useSlots();
|
|
2582
|
+
const instance = getCurrentInstance();
|
|
2583
|
+
const el = useTemplateRef("el");
|
|
2584
|
+
const interactive = () => Boolean(instance?.vnode.props?.onSelect);
|
|
2585
|
+
const hasDismiss = () => Boolean(instance?.vnode.props?.onDismiss);
|
|
2586
|
+
const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
|
|
2587
|
+
const hasTimestamp = computed(() => Boolean(props.timestamp) || Boolean(slots.timestamp));
|
|
2588
|
+
const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
|
|
2589
|
+
const hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));
|
|
2590
|
+
const classes = computed(
|
|
2591
|
+
() => cn(
|
|
2592
|
+
"group/notif relative flex gap-3 rounded-md px-3 py-2.5 text-sm",
|
|
2593
|
+
interactive() && "cursor-pointer hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2594
|
+
props.isUnread && "bg-primary-soft/30",
|
|
2595
|
+
attrs.class
|
|
2596
|
+
)
|
|
2597
|
+
);
|
|
2598
|
+
const titleClasses = computed(
|
|
2599
|
+
() => cn("truncate text-foreground", props.isUnread ? "font-semibold" : "font-medium")
|
|
2600
|
+
);
|
|
2601
|
+
const bodyClasses = computed(() => cn("min-w-0 flex-1", !hasIcon.value && "pl-3"));
|
|
2602
|
+
const onKeyDown = (event) => {
|
|
2603
|
+
if (!interactive()) return;
|
|
2604
|
+
if (event.target !== event.currentTarget) return;
|
|
2605
|
+
if (event.key === Key.Enter || event.key === Key.Space) {
|
|
2606
|
+
event.preventDefault();
|
|
2607
|
+
emit("select");
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2610
|
+
const onDismissClick = (event) => {
|
|
2611
|
+
event.stopPropagation();
|
|
2612
|
+
emit("dismiss");
|
|
2613
|
+
};
|
|
2614
|
+
const rest = computed(() => {
|
|
2615
|
+
const { class: _class, ...others } = attrs;
|
|
2616
|
+
return others;
|
|
2617
|
+
});
|
|
2618
|
+
__expose({ el });
|
|
2619
|
+
return (_ctx, _cache) => {
|
|
2620
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
2621
|
+
ref_key: "el",
|
|
2622
|
+
ref: el,
|
|
2623
|
+
role: interactive() ? "button" : void 0,
|
|
2624
|
+
tabindex: interactive() ? 0 : void 0,
|
|
2625
|
+
"data-unread": props.isUnread ? "" : void 0
|
|
2626
|
+
}, rest.value, {
|
|
2627
|
+
class: classes.value,
|
|
2628
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("select")),
|
|
2629
|
+
onKeydown: onKeyDown
|
|
2630
|
+
}), [
|
|
2631
|
+
props.isUnread ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("", true),
|
|
2632
|
+
hasIcon.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
2633
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
2634
|
+
createTextVNode(toDisplayString(props.icon), 1)
|
|
2635
|
+
])
|
|
2636
|
+
])) : createCommentVNode("", true),
|
|
2637
|
+
createElementVNode("div", {
|
|
2638
|
+
class: normalizeClass(bodyClasses.value)
|
|
2639
|
+
}, [
|
|
2640
|
+
createElementVNode("div", _hoisted_4, [
|
|
2641
|
+
createElementVNode("span", {
|
|
2642
|
+
class: normalizeClass(titleClasses.value)
|
|
2643
|
+
}, [
|
|
2644
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
2645
|
+
createTextVNode(toDisplayString(props.title), 1)
|
|
2646
|
+
])
|
|
2647
|
+
], 2),
|
|
2648
|
+
hasTimestamp.value ? (openBlock(), createElementBlock("span", _hoisted_5, [
|
|
2649
|
+
renderSlot(_ctx.$slots, "timestamp", {}, () => [
|
|
2650
|
+
createTextVNode(toDisplayString(props.timestamp), 1)
|
|
2651
|
+
])
|
|
2652
|
+
])) : createCommentVNode("", true)
|
|
2653
|
+
]),
|
|
2654
|
+
hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
2655
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
2656
|
+
createTextVNode(toDisplayString(props.description), 1)
|
|
2657
|
+
])
|
|
2658
|
+
])) : createCommentVNode("", true),
|
|
2659
|
+
hasActions.value ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
2660
|
+
renderSlot(_ctx.$slots, "actions", {}, () => [
|
|
2661
|
+
createTextVNode(toDisplayString(props.actions), 1)
|
|
2662
|
+
])
|
|
2663
|
+
])) : createCommentVNode("", true)
|
|
2664
|
+
], 2),
|
|
2665
|
+
hasDismiss() ? (openBlock(), createElementBlock("button", {
|
|
2666
|
+
key: 2,
|
|
2667
|
+
type: "button",
|
|
2668
|
+
"aria-label": "Dismiss notification",
|
|
2669
|
+
class: normalizeClass(
|
|
2670
|
+
unref(cn)(
|
|
2671
|
+
"absolute right-2 top-2 inline-flex h-6 w-6 items-center justify-center rounded-md text-muted-foreground opacity-0",
|
|
2672
|
+
"group-hover/notif:opacity-100 group-focus-within/notif:opacity-100",
|
|
2673
|
+
"hover:bg-background hover:text-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
2674
|
+
)
|
|
2675
|
+
),
|
|
2676
|
+
onClick: onDismissClick
|
|
2677
|
+
}, [
|
|
2678
|
+
createVNode(unref(X), { class: "h-3.5 w-3.5" })
|
|
2679
|
+
], 2)) : createCommentVNode("", true)
|
|
2680
|
+
], 16, _hoisted_1);
|
|
2681
|
+
};
|
|
2682
|
+
}
|
|
2683
|
+
});
|
|
2684
|
+
export {
|
|
2685
|
+
_sfc_main$4 as A,
|
|
2686
|
+
_sfc_main$8 as B,
|
|
2687
|
+
alertSimpleVariants as C,
|
|
2688
|
+
bannerSimpleVariants as D,
|
|
2689
|
+
progressFillVariants as E,
|
|
2690
|
+
progressTrackVariants as F,
|
|
2691
|
+
skeletonVariants as G,
|
|
2692
|
+
toastSimpleVariants as H,
|
|
2693
|
+
toaster as I,
|
|
2694
|
+
useOnboardingChecklist as J,
|
|
2695
|
+
useToaster as K,
|
|
2696
|
+
Placement as P,
|
|
2697
|
+
SkeletonShape as S,
|
|
2698
|
+
TypingTone as T,
|
|
2699
|
+
_sfc_main$l as _,
|
|
2700
|
+
_sfc_main$o as a,
|
|
2701
|
+
_sfc_main$k as b,
|
|
2702
|
+
_sfc_main$n as c,
|
|
2703
|
+
_sfc_main$i as d,
|
|
2704
|
+
_sfc_main$a as e,
|
|
2705
|
+
_sfc_main$h as f,
|
|
2706
|
+
_sfc_main$2 as g,
|
|
2707
|
+
_sfc_main$9 as h,
|
|
2708
|
+
_sfc_main$g as i,
|
|
2709
|
+
_sfc_main$d as j,
|
|
2710
|
+
_sfc_main$1 as k,
|
|
2711
|
+
_sfc_main as l,
|
|
2712
|
+
_sfc_main$7 as m,
|
|
2713
|
+
_sfc_main$6 as n,
|
|
2714
|
+
_sfc_main$3 as o,
|
|
2715
|
+
PresenceStatus as p,
|
|
2716
|
+
_sfc_main$q as q,
|
|
2717
|
+
_sfc_main$p as r,
|
|
2718
|
+
_sfc_main$f as s,
|
|
2719
|
+
_sfc_main$r as t,
|
|
2720
|
+
_sfc_main$e as u,
|
|
2721
|
+
_sfc_main$j as v,
|
|
2722
|
+
_sfc_main$m as w,
|
|
2723
|
+
_sfc_main$b as x,
|
|
2724
|
+
_sfc_main$5 as y,
|
|
2725
|
+
_sfc_main$c as z
|
|
2726
|
+
};
|
|
2727
|
+
//# sourceMappingURL=NotificationItem.vue_vue_type_script_setup_true_lang-gi0uHIuK.js.map
|