@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,2159 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, createElementVNode, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, createVNode, unref, createCommentVNode, normalizeClass, inject, provide, createBlock, withCtx, shallowRef, watch, onScopeDispose, useSlots, toValue, normalizeProps, guardReactiveProps, normalizeStyle } from "vue";
|
|
2
|
+
import { ChevronRight, ChevronsLeft, ChevronLeft, ChevronsRight, ChevronDown, Search } from "lucide-vue-next";
|
|
3
|
+
import { _ as _sfc_main$x } from "./Icon.vue_vue_type_script_setup_true_lang-DgwdLCRR.js";
|
|
4
|
+
import { c as cn } from "./cn-CzDCF-Ah.js";
|
|
5
|
+
import { u as useId } from "./useId-CtgAhGrn.js";
|
|
6
|
+
import { d as dataAttr } from "./dataAttr-7BR67dTj.js";
|
|
7
|
+
import { u as useControlled } from "./useControlled-B6M4kTLn.js";
|
|
8
|
+
import { P as Primitive } from "./Primitive-Cm3ECaVw.js";
|
|
9
|
+
import { u as useReducedMotion } from "./useReducedMotion-B9LqQ3UT.js";
|
|
10
|
+
import { P as Presence } from "./Presence-C7IJvh_P.js";
|
|
11
|
+
import { _ as _sfc_main$C, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DCpYSP2V.js";
|
|
12
|
+
import { tv } from "tailwind-variants";
|
|
13
|
+
import { s as surfaceVariants } from "./SurfaceStyles-ChdpGRBO.js";
|
|
14
|
+
import { _ as _sfc_main$y } from "./Portal.vue_vue_type_script_setup_true_lang-CF3R0VCZ.js";
|
|
15
|
+
import { _ as _sfc_main$z } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
16
|
+
import { _ as _sfc_main$A, a as _sfc_main$B } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-6nRnzsJW.js";
|
|
17
|
+
import { a as useHotkeys } from "./UseHotkeys-CKIYK5Mq.js";
|
|
18
|
+
import { _ as _sfc_main$D, a as _sfc_main$E } from "./ModalContent.vue_vue_type_script_setup_true_lang-CLACSqKg.js";
|
|
19
|
+
import { l as listboxGroupLabelVariants, a as listboxItemVariants, b as listboxEmptyVariants, c as listboxSeparatorVariants } from "./Listbox.variants-CqAkYsmK.js";
|
|
20
|
+
const _hoisted_1$d = { class: "flex flex-wrap items-center gap-1.5" };
|
|
21
|
+
const _hoisted_2$5 = ["href"];
|
|
22
|
+
const _hoisted_3$1 = ["aria-current"];
|
|
23
|
+
const _hoisted_4$1 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
class: "text-subtle-foreground"
|
|
27
|
+
};
|
|
28
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
29
|
+
...{ name: "Breadcrumb", inheritAttrs: false },
|
|
30
|
+
__name: "Breadcrumb",
|
|
31
|
+
props: {
|
|
32
|
+
items: {}
|
|
33
|
+
},
|
|
34
|
+
setup(__props, { expose: __expose }) {
|
|
35
|
+
const props = __props;
|
|
36
|
+
const attrs = useAttrs();
|
|
37
|
+
const el = useTemplateRef("el");
|
|
38
|
+
const classes = computed(() => cn("text-sm", attrs.class));
|
|
39
|
+
const rest = computed(() => {
|
|
40
|
+
const { class: _class, ...others } = attrs;
|
|
41
|
+
return others;
|
|
42
|
+
});
|
|
43
|
+
const lastIndex = computed(() => props.items.length - 1);
|
|
44
|
+
__expose({ el });
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
return openBlock(), createElementBlock("nav", mergeProps({
|
|
47
|
+
ref_key: "el",
|
|
48
|
+
ref: el,
|
|
49
|
+
"aria-label": "Breadcrumb"
|
|
50
|
+
}, rest.value, { class: classes.value }), [
|
|
51
|
+
createElementVNode("ol", _hoisted_1$d, [
|
|
52
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item, i) => {
|
|
53
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
54
|
+
createElementVNode("li", null, [
|
|
55
|
+
item.href && i !== lastIndex.value ? (openBlock(), createElementBlock("a", {
|
|
56
|
+
key: 0,
|
|
57
|
+
href: item.href,
|
|
58
|
+
class: "text-muted-foreground hover:text-foreground hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm"
|
|
59
|
+
}, [
|
|
60
|
+
renderSlot(_ctx.$slots, "label", {
|
|
61
|
+
item,
|
|
62
|
+
index: i
|
|
63
|
+
}, () => [
|
|
64
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
65
|
+
])
|
|
66
|
+
], 8, _hoisted_2$5)) : (openBlock(), createElementBlock("span", {
|
|
67
|
+
key: 1,
|
|
68
|
+
"aria-current": i === lastIndex.value ? "page" : void 0,
|
|
69
|
+
class: "text-foreground"
|
|
70
|
+
}, [
|
|
71
|
+
renderSlot(_ctx.$slots, "label", {
|
|
72
|
+
item,
|
|
73
|
+
index: i
|
|
74
|
+
}, () => [
|
|
75
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
76
|
+
])
|
|
77
|
+
], 8, _hoisted_3$1))
|
|
78
|
+
]),
|
|
79
|
+
i !== lastIndex.value ? (openBlock(), createElementBlock("li", _hoisted_4$1, [
|
|
80
|
+
renderSlot(_ctx.$slots, "separator", {}, () => [
|
|
81
|
+
createVNode(unref(_sfc_main$x), {
|
|
82
|
+
icon: unref(ChevronRight),
|
|
83
|
+
size: 14
|
|
84
|
+
}, null, 8, ["icon"])
|
|
85
|
+
])
|
|
86
|
+
])) : createCommentVNode("", true)
|
|
87
|
+
], 64);
|
|
88
|
+
}), 128))
|
|
89
|
+
])
|
|
90
|
+
], 16);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
const _hoisted_1$c = ["disabled"];
|
|
95
|
+
const _hoisted_2$4 = ["disabled"];
|
|
96
|
+
const _hoisted_3 = ["aria-current", "onClick"];
|
|
97
|
+
const _hoisted_4 = ["disabled"];
|
|
98
|
+
const _hoisted_5 = ["disabled"];
|
|
99
|
+
function range(start, end) {
|
|
100
|
+
return Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
101
|
+
}
|
|
102
|
+
function buildPages(total, page, siblings) {
|
|
103
|
+
if (total <= 1) return [1];
|
|
104
|
+
const left = Math.max(2, page - siblings);
|
|
105
|
+
const right = Math.min(total - 1, page + siblings);
|
|
106
|
+
const pages = [1];
|
|
107
|
+
if (left > 2) pages.push("ellipsis");
|
|
108
|
+
pages.push(...range(left, right));
|
|
109
|
+
if (right < total - 1) pages.push("ellipsis");
|
|
110
|
+
if (total > 1) pages.push(total);
|
|
111
|
+
return pages;
|
|
112
|
+
}
|
|
113
|
+
const BASE_BTN = "inline-flex h-8 min-w-8 items-center justify-center rounded-md border border-transparent px-2 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50";
|
|
114
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
115
|
+
...{ name: "Pagination", inheritAttrs: false },
|
|
116
|
+
__name: "Pagination",
|
|
117
|
+
props: {
|
|
118
|
+
total: {},
|
|
119
|
+
page: {},
|
|
120
|
+
siblings: { default: 1 },
|
|
121
|
+
hideFirstLast: { type: Boolean, default: false }
|
|
122
|
+
},
|
|
123
|
+
emits: ["update:page", "page-change"],
|
|
124
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
125
|
+
const props = __props;
|
|
126
|
+
const emit = __emit;
|
|
127
|
+
const attrs = useAttrs();
|
|
128
|
+
const el = useTemplateRef("el");
|
|
129
|
+
const pages = computed(() => buildPages(props.total, props.page, props.siblings));
|
|
130
|
+
function go(page) {
|
|
131
|
+
const next = Math.min(props.total, Math.max(1, page));
|
|
132
|
+
emit("update:page", next);
|
|
133
|
+
emit("page-change", next);
|
|
134
|
+
}
|
|
135
|
+
const classes = computed(
|
|
136
|
+
() => cn("inline-flex items-center gap-1", attrs.class)
|
|
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("nav", mergeProps({
|
|
145
|
+
ref_key: "el",
|
|
146
|
+
ref: el,
|
|
147
|
+
"aria-label": "Pagination"
|
|
148
|
+
}, rest.value, { class: classes.value }), [
|
|
149
|
+
!props.hideFirstLast ? (openBlock(), createElementBlock("button", {
|
|
150
|
+
key: 0,
|
|
151
|
+
type: "button",
|
|
152
|
+
"aria-label": "First page",
|
|
153
|
+
disabled: props.page <= 1,
|
|
154
|
+
class: normalizeClass(unref(cn)(BASE_BTN, "hover:bg-muted")),
|
|
155
|
+
onClick: _cache[0] || (_cache[0] = ($event) => go(1))
|
|
156
|
+
}, [
|
|
157
|
+
createVNode(unref(_sfc_main$x), {
|
|
158
|
+
icon: unref(ChevronsLeft),
|
|
159
|
+
size: 16
|
|
160
|
+
}, null, 8, ["icon"])
|
|
161
|
+
], 10, _hoisted_1$c)) : createCommentVNode("", true),
|
|
162
|
+
createElementVNode("button", {
|
|
163
|
+
type: "button",
|
|
164
|
+
"aria-label": "Previous page",
|
|
165
|
+
disabled: props.page <= 1,
|
|
166
|
+
class: normalizeClass(unref(cn)(BASE_BTN, "hover:bg-muted")),
|
|
167
|
+
onClick: _cache[1] || (_cache[1] = ($event) => go(props.page - 1))
|
|
168
|
+
}, [
|
|
169
|
+
createVNode(unref(_sfc_main$x), {
|
|
170
|
+
icon: unref(ChevronLeft),
|
|
171
|
+
size: 16
|
|
172
|
+
}, null, 8, ["icon"])
|
|
173
|
+
], 10, _hoisted_2$4),
|
|
174
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (p, i) => {
|
|
175
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
176
|
+
p === "ellipsis" ? (openBlock(), createElementBlock("span", {
|
|
177
|
+
key: `e-${i}`,
|
|
178
|
+
class: "px-1 text-muted-foreground"
|
|
179
|
+
}, "…")) : (openBlock(), createElementBlock("button", {
|
|
180
|
+
key: p,
|
|
181
|
+
type: "button",
|
|
182
|
+
"aria-current": p === props.page ? "page" : void 0,
|
|
183
|
+
class: normalizeClass(
|
|
184
|
+
unref(cn)(
|
|
185
|
+
BASE_BTN,
|
|
186
|
+
p === props.page ? "border-primary bg-primary text-primary-foreground" : "hover:bg-muted"
|
|
187
|
+
)
|
|
188
|
+
),
|
|
189
|
+
onClick: ($event) => go(p)
|
|
190
|
+
}, toDisplayString(p), 11, _hoisted_3))
|
|
191
|
+
], 64);
|
|
192
|
+
}), 256)),
|
|
193
|
+
createElementVNode("button", {
|
|
194
|
+
type: "button",
|
|
195
|
+
"aria-label": "Next page",
|
|
196
|
+
disabled: props.page >= props.total,
|
|
197
|
+
class: normalizeClass(unref(cn)(BASE_BTN, "hover:bg-muted")),
|
|
198
|
+
onClick: _cache[2] || (_cache[2] = ($event) => go(props.page + 1))
|
|
199
|
+
}, [
|
|
200
|
+
createVNode(unref(_sfc_main$x), {
|
|
201
|
+
icon: unref(ChevronRight),
|
|
202
|
+
size: 16
|
|
203
|
+
}, null, 8, ["icon"])
|
|
204
|
+
], 10, _hoisted_4),
|
|
205
|
+
!props.hideFirstLast ? (openBlock(), createElementBlock("button", {
|
|
206
|
+
key: 1,
|
|
207
|
+
type: "button",
|
|
208
|
+
"aria-label": "Last page",
|
|
209
|
+
disabled: props.page >= props.total,
|
|
210
|
+
class: normalizeClass(unref(cn)(BASE_BTN, "hover:bg-muted")),
|
|
211
|
+
onClick: _cache[3] || (_cache[3] = ($event) => go(props.total))
|
|
212
|
+
}, [
|
|
213
|
+
createVNode(unref(_sfc_main$x), {
|
|
214
|
+
icon: unref(ChevronsRight),
|
|
215
|
+
size: 16
|
|
216
|
+
}, null, 8, ["icon"])
|
|
217
|
+
], 10, _hoisted_5)) : createCommentVNode("", true)
|
|
218
|
+
], 16);
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
const MenuKey = Symbol("wow-two.menu");
|
|
223
|
+
function useMenuContext() {
|
|
224
|
+
const context = inject(MenuKey, null);
|
|
225
|
+
if (!context) {
|
|
226
|
+
throw new Error("MenuItem / MenuGroup / MenuLabel / MenuSeparator must be used inside <Menu>");
|
|
227
|
+
}
|
|
228
|
+
return context;
|
|
229
|
+
}
|
|
230
|
+
const menuVariants = tv({
|
|
231
|
+
base: "flex min-w-[8rem] flex-col gap-0.5 rounded-md border border-border bg-popover p-1 text-sm text-popover-foreground shadow-md outline-none"
|
|
232
|
+
});
|
|
233
|
+
const menuItemVariants = tv({
|
|
234
|
+
base: "relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-left text-sm outline-none transition-colors focus:bg-muted focus:text-foreground hover:bg-muted hover:text-foreground",
|
|
235
|
+
variants: {
|
|
236
|
+
state: {
|
|
237
|
+
default: "text-popover-foreground",
|
|
238
|
+
destructive: "text-destructive focus:bg-destructive-soft hover:bg-destructive-soft",
|
|
239
|
+
disabled: "pointer-events-none opacity-50"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
defaultVariants: { state: "default" }
|
|
243
|
+
});
|
|
244
|
+
const menuLabelVariants = tv({
|
|
245
|
+
base: "px-2 py-1.5 text-xs font-semibold text-muted-foreground"
|
|
246
|
+
});
|
|
247
|
+
const menuSeparatorVariants = tv({
|
|
248
|
+
base: "-mx-1 my-1 h-px bg-border"
|
|
249
|
+
});
|
|
250
|
+
const MenuItemState = {
|
|
251
|
+
/** Refers to the default, neutral item. */
|
|
252
|
+
Default: "default",
|
|
253
|
+
/** Refers to a destructive item (e.g. delete). */
|
|
254
|
+
Destructive: "destructive",
|
|
255
|
+
/** Refers to a non-interactive, dimmed item. */
|
|
256
|
+
Disabled: "disabled"
|
|
257
|
+
};
|
|
258
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
259
|
+
...{ name: "Menu", inheritAttrs: false },
|
|
260
|
+
__name: "Menu",
|
|
261
|
+
props: {
|
|
262
|
+
open: { type: Boolean, default: void 0 },
|
|
263
|
+
isOpen: { type: Boolean, default: void 0 },
|
|
264
|
+
anchor: {},
|
|
265
|
+
placement: { default: "bottom-start" },
|
|
266
|
+
offset: { default: 6 },
|
|
267
|
+
variant: { default: void 0 },
|
|
268
|
+
tone: { default: void 0 },
|
|
269
|
+
radius: { default: void 0 },
|
|
270
|
+
padding: { default: void 0 },
|
|
271
|
+
elevation: { default: void 0 }
|
|
272
|
+
},
|
|
273
|
+
emits: ["close", "keydown"],
|
|
274
|
+
setup(__props, { emit: __emit }) {
|
|
275
|
+
const props = __props;
|
|
276
|
+
const emit = __emit;
|
|
277
|
+
const attrs = useAttrs();
|
|
278
|
+
const isMenuOpen = computed(
|
|
279
|
+
() => props.open !== void 0 ? props.open : props.isOpen ?? false
|
|
280
|
+
);
|
|
281
|
+
const items = [];
|
|
282
|
+
function registerItem(entry) {
|
|
283
|
+
const index = items.findIndex((i) => i.id === entry.id);
|
|
284
|
+
if (index >= 0) items[index] = entry;
|
|
285
|
+
else items.push(entry);
|
|
286
|
+
}
|
|
287
|
+
function unregisterItem(id) {
|
|
288
|
+
const index = items.findIndex((i) => i.id === id);
|
|
289
|
+
if (index >= 0) items.splice(index, 1);
|
|
290
|
+
}
|
|
291
|
+
provide(MenuKey, { registerItem, unregisterItem, items, close: () => emit("close") });
|
|
292
|
+
const classes = computed(
|
|
293
|
+
() => cn(
|
|
294
|
+
surfaceVariants({
|
|
295
|
+
variant: props.variant ?? "surface",
|
|
296
|
+
tone: props.tone,
|
|
297
|
+
radius: props.radius ?? "md",
|
|
298
|
+
padding: props.padding ?? "xs",
|
|
299
|
+
elevation: props.elevation
|
|
300
|
+
}),
|
|
301
|
+
menuVariants(),
|
|
302
|
+
"motion-safe:data-[state=open]:animate-(--animate-pop-in)",
|
|
303
|
+
"motion-safe:data-[state=closed]:animate-(--animate-pop-out)",
|
|
304
|
+
"motion-reduce:animate-none",
|
|
305
|
+
attrs.class
|
|
306
|
+
)
|
|
307
|
+
);
|
|
308
|
+
const rest = computed(() => {
|
|
309
|
+
const { class: _class, ...others } = attrs;
|
|
310
|
+
return others;
|
|
311
|
+
});
|
|
312
|
+
function handleEscape() {
|
|
313
|
+
emit("close");
|
|
314
|
+
}
|
|
315
|
+
function handleOutsidePointerDown(event) {
|
|
316
|
+
if (props.anchor?.contains(event.target)) return;
|
|
317
|
+
emit("close");
|
|
318
|
+
}
|
|
319
|
+
function handleKeydown(event) {
|
|
320
|
+
emit("keydown", event);
|
|
321
|
+
if (event.defaultPrevented) return;
|
|
322
|
+
if (event.key === "Tab") {
|
|
323
|
+
event.preventDefault();
|
|
324
|
+
emit("close");
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return (_ctx, _cache) => {
|
|
328
|
+
return openBlock(), createBlock(unref(_sfc_main$y), null, {
|
|
329
|
+
default: withCtx(() => [
|
|
330
|
+
createVNode(unref(_sfc_main$z), {
|
|
331
|
+
anchor: props.anchor,
|
|
332
|
+
placement: props.placement,
|
|
333
|
+
offset: props.offset,
|
|
334
|
+
class: "z-dropdown"
|
|
335
|
+
}, {
|
|
336
|
+
default: withCtx(() => [
|
|
337
|
+
createVNode(unref(Presence), { "is-present": isMenuOpen.value }, {
|
|
338
|
+
default: withCtx(() => [
|
|
339
|
+
createVNode(unref(_sfc_main$A), {
|
|
340
|
+
"as-child": "",
|
|
341
|
+
trapped: "",
|
|
342
|
+
loop: ""
|
|
343
|
+
}, {
|
|
344
|
+
default: withCtx(() => [
|
|
345
|
+
createVNode(unref(_sfc_main$B), mergeProps({
|
|
346
|
+
role: "menu",
|
|
347
|
+
"on-escape": handleEscape,
|
|
348
|
+
"on-outside-pointer-down": handleOutsidePointerDown
|
|
349
|
+
}, rest.value, {
|
|
350
|
+
class: classes.value,
|
|
351
|
+
onKeydown: handleKeydown
|
|
352
|
+
}), {
|
|
353
|
+
default: withCtx(() => [
|
|
354
|
+
renderSlot(_ctx.$slots, "default")
|
|
355
|
+
]),
|
|
356
|
+
_: 3
|
|
357
|
+
}, 16, ["class"])
|
|
358
|
+
]),
|
|
359
|
+
_: 3
|
|
360
|
+
})
|
|
361
|
+
]),
|
|
362
|
+
_: 3
|
|
363
|
+
}, 8, ["is-present"])
|
|
364
|
+
]),
|
|
365
|
+
_: 3
|
|
366
|
+
}, 8, ["anchor", "placement", "offset"])
|
|
367
|
+
]),
|
|
368
|
+
_: 3
|
|
369
|
+
});
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
const _hoisted_1$b = ["disabled", "aria-disabled", "data-disabled"];
|
|
374
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
375
|
+
...{ name: "MenuItem", inheritAttrs: false },
|
|
376
|
+
__name: "MenuItem",
|
|
377
|
+
props: {
|
|
378
|
+
state: { default: void 0 },
|
|
379
|
+
isDisabled: { type: Boolean, default: void 0 }
|
|
380
|
+
},
|
|
381
|
+
emits: ["select"],
|
|
382
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
383
|
+
const props = __props;
|
|
384
|
+
const emit = __emit;
|
|
385
|
+
const attrs = useAttrs();
|
|
386
|
+
const menu = useMenuContext();
|
|
387
|
+
const id = useId();
|
|
388
|
+
const el = shallowRef(null);
|
|
389
|
+
watch(
|
|
390
|
+
[el, () => props.isDisabled],
|
|
391
|
+
([node, isDisabled]) => {
|
|
392
|
+
menu.registerItem({ id, el: node, disabled: isDisabled === true });
|
|
393
|
+
},
|
|
394
|
+
{ immediate: true, flush: "post" }
|
|
395
|
+
);
|
|
396
|
+
onScopeDispose(() => menu.unregisterItem(id));
|
|
397
|
+
function moveFocus(target) {
|
|
398
|
+
const list = menu.items.filter((i) => !i.disabled);
|
|
399
|
+
if (list.length === 0) return;
|
|
400
|
+
if (target === "first" || target === "last") {
|
|
401
|
+
list[target === "first" ? 0 : list.length - 1]?.el?.focus();
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
const index = list.findIndex((i) => i.id === id);
|
|
405
|
+
let nextIndex = index + target;
|
|
406
|
+
if (index === -1) nextIndex = target === 1 ? 0 : list.length - 1;
|
|
407
|
+
if (nextIndex < 0) nextIndex = list.length - 1;
|
|
408
|
+
if (nextIndex >= list.length) nextIndex = 0;
|
|
409
|
+
list[nextIndex]?.el?.focus();
|
|
410
|
+
}
|
|
411
|
+
function handleKeydown(event) {
|
|
412
|
+
if (event.defaultPrevented || props.isDisabled) return;
|
|
413
|
+
switch (event.key) {
|
|
414
|
+
case "ArrowDown":
|
|
415
|
+
event.preventDefault();
|
|
416
|
+
moveFocus(1);
|
|
417
|
+
break;
|
|
418
|
+
case "ArrowUp":
|
|
419
|
+
event.preventDefault();
|
|
420
|
+
moveFocus(-1);
|
|
421
|
+
break;
|
|
422
|
+
case "Home":
|
|
423
|
+
event.preventDefault();
|
|
424
|
+
moveFocus("first");
|
|
425
|
+
break;
|
|
426
|
+
case "End":
|
|
427
|
+
event.preventDefault();
|
|
428
|
+
moveFocus("last");
|
|
429
|
+
break;
|
|
430
|
+
case "Enter":
|
|
431
|
+
case " ":
|
|
432
|
+
event.preventDefault();
|
|
433
|
+
emit("select");
|
|
434
|
+
menu.close();
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
function handleClick(event) {
|
|
439
|
+
if (event.defaultPrevented || props.isDisabled) return;
|
|
440
|
+
emit("select");
|
|
441
|
+
menu.close();
|
|
442
|
+
}
|
|
443
|
+
const itemState = computed(
|
|
444
|
+
() => props.state ?? (props.isDisabled ? MenuItemState.Disabled : MenuItemState.Default)
|
|
445
|
+
);
|
|
446
|
+
const classes = computed(
|
|
447
|
+
() => cn(menuItemVariants({ state: itemState.value }), attrs.class)
|
|
448
|
+
);
|
|
449
|
+
const rest = computed(() => {
|
|
450
|
+
const { class: _class, ...others } = attrs;
|
|
451
|
+
return others;
|
|
452
|
+
});
|
|
453
|
+
__expose({ el });
|
|
454
|
+
return (_ctx, _cache) => {
|
|
455
|
+
return openBlock(), createElementBlock("button", mergeProps({
|
|
456
|
+
ref_key: "el",
|
|
457
|
+
ref: el,
|
|
458
|
+
type: "button",
|
|
459
|
+
role: "menuitem",
|
|
460
|
+
disabled: props.isDisabled,
|
|
461
|
+
"aria-disabled": props.isDisabled || void 0,
|
|
462
|
+
"data-disabled": unref(dataAttr)(props.isDisabled)
|
|
463
|
+
}, rest.value, {
|
|
464
|
+
class: classes.value,
|
|
465
|
+
onClick: handleClick,
|
|
466
|
+
onKeydown: handleKeydown
|
|
467
|
+
}), [
|
|
468
|
+
renderSlot(_ctx.$slots, "default")
|
|
469
|
+
], 16, _hoisted_1$b);
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
const _hoisted_1$a = ["aria-labelledby"];
|
|
474
|
+
const _hoisted_2$3 = ["id"];
|
|
475
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
476
|
+
...{ name: "MenuGroup", inheritAttrs: false },
|
|
477
|
+
__name: "MenuGroup",
|
|
478
|
+
props: {
|
|
479
|
+
label: {}
|
|
480
|
+
},
|
|
481
|
+
setup(__props, { expose: __expose }) {
|
|
482
|
+
const props = __props;
|
|
483
|
+
const attrs = useAttrs();
|
|
484
|
+
const slots = useSlots();
|
|
485
|
+
const el = useTemplateRef("el");
|
|
486
|
+
const labelId = useId();
|
|
487
|
+
const hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));
|
|
488
|
+
__expose({ el });
|
|
489
|
+
return (_ctx, _cache) => {
|
|
490
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
491
|
+
ref_key: "el",
|
|
492
|
+
ref: el,
|
|
493
|
+
role: "group",
|
|
494
|
+
"aria-labelledby": hasLabel.value ? unref(labelId) : void 0
|
|
495
|
+
}, unref(attrs)), [
|
|
496
|
+
hasLabel.value ? (openBlock(), createElementBlock("div", {
|
|
497
|
+
key: 0,
|
|
498
|
+
id: unref(labelId),
|
|
499
|
+
class: normalizeClass(unref(menuLabelVariants)())
|
|
500
|
+
}, [
|
|
501
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
502
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
503
|
+
])
|
|
504
|
+
], 10, _hoisted_2$3)) : createCommentVNode("", true),
|
|
505
|
+
renderSlot(_ctx.$slots, "default")
|
|
506
|
+
], 16, _hoisted_1$a);
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
511
|
+
...{ name: "MenuLabel", inheritAttrs: false },
|
|
512
|
+
__name: "MenuLabel",
|
|
513
|
+
setup(__props, { expose: __expose }) {
|
|
514
|
+
const attrs = useAttrs();
|
|
515
|
+
const el = useTemplateRef("el");
|
|
516
|
+
const classes = computed(() => cn(menuLabelVariants(), attrs.class));
|
|
517
|
+
const rest = computed(() => {
|
|
518
|
+
const { class: _class, ...others } = attrs;
|
|
519
|
+
return others;
|
|
520
|
+
});
|
|
521
|
+
__expose({ el });
|
|
522
|
+
return (_ctx, _cache) => {
|
|
523
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
524
|
+
ref_key: "el",
|
|
525
|
+
ref: el
|
|
526
|
+
}, rest.value, { class: classes.value }), [
|
|
527
|
+
renderSlot(_ctx.$slots, "default")
|
|
528
|
+
], 16);
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
533
|
+
...{ name: "MenuSeparator", inheritAttrs: false },
|
|
534
|
+
__name: "MenuSeparator",
|
|
535
|
+
setup(__props, { expose: __expose }) {
|
|
536
|
+
const attrs = useAttrs();
|
|
537
|
+
const el = useTemplateRef("el");
|
|
538
|
+
const classes = computed(() => cn(menuSeparatorVariants(), attrs.class));
|
|
539
|
+
const rest = computed(() => {
|
|
540
|
+
const { class: _class, ...others } = attrs;
|
|
541
|
+
return others;
|
|
542
|
+
});
|
|
543
|
+
__expose({ el });
|
|
544
|
+
return (_ctx, _cache) => {
|
|
545
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
546
|
+
ref_key: "el",
|
|
547
|
+
ref: el,
|
|
548
|
+
role: "separator"
|
|
549
|
+
}, rest.value, { class: classes.value }), null, 16);
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
const dropdownMenuContextKey = Symbol("wow-two.dropdownMenu");
|
|
554
|
+
function useDropdownMenuContext() {
|
|
555
|
+
const context = inject(dropdownMenuContextKey, null);
|
|
556
|
+
if (!context) throw new Error("DropdownMenu.* must be used inside <DropdownMenu>");
|
|
557
|
+
return context;
|
|
558
|
+
}
|
|
559
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
560
|
+
...{ name: "DropdownMenu", inheritAttrs: false },
|
|
561
|
+
__name: "DropdownMenu",
|
|
562
|
+
props: {
|
|
563
|
+
open: { type: Boolean, default: void 0 },
|
|
564
|
+
isOpen: { type: Boolean, default: void 0 },
|
|
565
|
+
defaultOpen: { type: Boolean, default: false },
|
|
566
|
+
placement: { default: "bottom-start" },
|
|
567
|
+
offset: { default: 6 }
|
|
568
|
+
},
|
|
569
|
+
emits: ["update:open", "open-change"],
|
|
570
|
+
setup(__props, { emit: __emit }) {
|
|
571
|
+
const props = __props;
|
|
572
|
+
const emit = __emit;
|
|
573
|
+
const controlled = useControlled({
|
|
574
|
+
controlled: () => props.open !== void 0 ? props.open : props.isOpen,
|
|
575
|
+
default: () => props.defaultOpen,
|
|
576
|
+
onChange: (value) => {
|
|
577
|
+
emit("update:open", value);
|
|
578
|
+
emit("open-change", value);
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
provide(dropdownMenuContextKey, {
|
|
582
|
+
open: controlled.value,
|
|
583
|
+
setOpen: controlled.setValue,
|
|
584
|
+
triggerEl: shallowRef(null),
|
|
585
|
+
openFocus: { current: "first" },
|
|
586
|
+
placement: computed(() => props.placement),
|
|
587
|
+
offset: computed(() => props.offset)
|
|
588
|
+
});
|
|
589
|
+
return (_ctx, _cache) => {
|
|
590
|
+
return renderSlot(_ctx.$slots, "default");
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
function toHtmlElement(value) {
|
|
595
|
+
if (typeof HTMLElement === "undefined") return null;
|
|
596
|
+
return value instanceof HTMLElement ? value : null;
|
|
597
|
+
}
|
|
598
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
599
|
+
...{ name: "DropdownMenuTrigger", inheritAttrs: false },
|
|
600
|
+
__name: "DropdownMenuTrigger",
|
|
601
|
+
props: {
|
|
602
|
+
asChild: { type: Boolean, default: false }
|
|
603
|
+
},
|
|
604
|
+
setup(__props, { expose: __expose }) {
|
|
605
|
+
const props = __props;
|
|
606
|
+
const attrs = useAttrs();
|
|
607
|
+
const context = useDropdownMenuContext();
|
|
608
|
+
const inner = useTemplateRef("inner");
|
|
609
|
+
const isOpen = context.open;
|
|
610
|
+
watch(
|
|
611
|
+
inner,
|
|
612
|
+
(instance) => {
|
|
613
|
+
context.triggerEl.value = toHtmlElement(instance?.$el);
|
|
614
|
+
},
|
|
615
|
+
{ immediate: true, flush: "post" }
|
|
616
|
+
);
|
|
617
|
+
function handleClick(event) {
|
|
618
|
+
if (event.defaultPrevented) return;
|
|
619
|
+
context.openFocus.current = "first";
|
|
620
|
+
context.setOpen(!context.open.value);
|
|
621
|
+
}
|
|
622
|
+
function handleKeydown(event) {
|
|
623
|
+
if (event.defaultPrevented) return;
|
|
624
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp" || event.key === "Enter" || event.key === " ") {
|
|
625
|
+
event.preventDefault();
|
|
626
|
+
context.openFocus.current = event.key === "ArrowUp" ? "last" : "first";
|
|
627
|
+
context.setOpen(true);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
const el = computed(() => inner.value?.$el ?? null);
|
|
631
|
+
__expose({ el });
|
|
632
|
+
return (_ctx, _cache) => {
|
|
633
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
634
|
+
ref_key: "inner",
|
|
635
|
+
ref: inner,
|
|
636
|
+
as: "button",
|
|
637
|
+
"as-child": props.asChild,
|
|
638
|
+
type: "button",
|
|
639
|
+
"aria-haspopup": "menu",
|
|
640
|
+
"aria-expanded": unref(isOpen),
|
|
641
|
+
"data-state": unref(isOpen) ? "open" : "closed"
|
|
642
|
+
}, unref(attrs), {
|
|
643
|
+
onClick: handleClick,
|
|
644
|
+
onKeydown: handleKeydown
|
|
645
|
+
}), {
|
|
646
|
+
default: withCtx(() => [
|
|
647
|
+
renderSlot(_ctx.$slots, "default")
|
|
648
|
+
]),
|
|
649
|
+
_: 3
|
|
650
|
+
}, 16, ["as-child", "aria-expanded", "data-state"]);
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
655
|
+
...{ name: "DropdownMenuContent", inheritAttrs: false },
|
|
656
|
+
__name: "DropdownMenuContent",
|
|
657
|
+
setup(__props) {
|
|
658
|
+
const attrs = useAttrs();
|
|
659
|
+
const context = useDropdownMenuContext();
|
|
660
|
+
const reducedMotion = useReducedMotion();
|
|
661
|
+
const isOpen = context.open;
|
|
662
|
+
const anchor = computed(() => context.triggerEl.value);
|
|
663
|
+
const placement = context.placement;
|
|
664
|
+
const offset = context.offset;
|
|
665
|
+
const panelEl = shallowRef(null);
|
|
666
|
+
const mounted = shallowRef(context.open.value);
|
|
667
|
+
watch(
|
|
668
|
+
[() => context.open.value, reducedMotion],
|
|
669
|
+
([open, isReduced], _previous, onCleanup) => {
|
|
670
|
+
if (open) {
|
|
671
|
+
mounted.value = true;
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
if (!isReduced) return;
|
|
675
|
+
if (typeof requestAnimationFrame === "undefined") return;
|
|
676
|
+
const raf = requestAnimationFrame(() => {
|
|
677
|
+
mounted.value = false;
|
|
678
|
+
});
|
|
679
|
+
onCleanup(() => cancelAnimationFrame(raf));
|
|
680
|
+
},
|
|
681
|
+
{ immediate: true, flush: "post" }
|
|
682
|
+
);
|
|
683
|
+
function focusLastEnabledItem(panel) {
|
|
684
|
+
if (context.openFocus.current !== "last") return;
|
|
685
|
+
context.openFocus.current = "first";
|
|
686
|
+
const items = panel.querySelectorAll('[role="menuitem"]:not([disabled])');
|
|
687
|
+
items[items.length - 1]?.focus();
|
|
688
|
+
}
|
|
689
|
+
watch(
|
|
690
|
+
[panelEl, () => context.open.value],
|
|
691
|
+
([panel, open]) => {
|
|
692
|
+
if (!panel || !open) return;
|
|
693
|
+
focusLastEnabledItem(panel);
|
|
694
|
+
},
|
|
695
|
+
{ flush: "post" }
|
|
696
|
+
);
|
|
697
|
+
function setPanel(node) {
|
|
698
|
+
panelEl.value = node ?? null;
|
|
699
|
+
}
|
|
700
|
+
function handleClose() {
|
|
701
|
+
context.setOpen(false);
|
|
702
|
+
requestAnimationFrame(() => context.triggerEl.value?.focus());
|
|
703
|
+
}
|
|
704
|
+
function handleAnimationEnd() {
|
|
705
|
+
if (!context.open.value) mounted.value = false;
|
|
706
|
+
}
|
|
707
|
+
const panelClasses = computed(
|
|
708
|
+
() => cn(
|
|
709
|
+
/* pop (fade + slight scale) gated on data-state; motion-safe so
|
|
710
|
+
reduced-motion users get no movement. */
|
|
711
|
+
"motion-safe:data-[state=open]:animate-(--animate-pop-in)",
|
|
712
|
+
"motion-safe:data-[state=closed]:animate-(--animate-pop-out)",
|
|
713
|
+
"motion-reduce:animate-none",
|
|
714
|
+
attrs.class
|
|
715
|
+
)
|
|
716
|
+
);
|
|
717
|
+
const rest = computed(() => {
|
|
718
|
+
const { class: _class, ...others } = attrs;
|
|
719
|
+
return others;
|
|
720
|
+
});
|
|
721
|
+
return (_ctx, _cache) => {
|
|
722
|
+
return mounted.value ? (openBlock(), createBlock(_sfc_main$u, mergeProps({
|
|
723
|
+
key: 0,
|
|
724
|
+
open: mounted.value,
|
|
725
|
+
anchor: anchor.value,
|
|
726
|
+
placement: unref(placement),
|
|
727
|
+
offset: unref(offset)
|
|
728
|
+
}, rest.value, { onClose: handleClose }), {
|
|
729
|
+
default: withCtx(() => [
|
|
730
|
+
createVNode(unref(Presence), { "is-present": unref(isOpen) }, {
|
|
731
|
+
default: withCtx(() => [
|
|
732
|
+
createElementVNode("div", {
|
|
733
|
+
ref: setPanel,
|
|
734
|
+
class: normalizeClass(panelClasses.value),
|
|
735
|
+
onAnimationend: handleAnimationEnd
|
|
736
|
+
}, [
|
|
737
|
+
renderSlot(_ctx.$slots, "default")
|
|
738
|
+
], 34)
|
|
739
|
+
]),
|
|
740
|
+
_: 3
|
|
741
|
+
}, 8, ["is-present"])
|
|
742
|
+
]),
|
|
743
|
+
_: 3
|
|
744
|
+
}, 16, ["open", "anchor", "placement", "offset"])) : createCommentVNode("", true);
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
const contextMenuContextKey = Symbol("wow-two.contextMenu");
|
|
749
|
+
function useContextMenuContext() {
|
|
750
|
+
const context = inject(contextMenuContextKey, null);
|
|
751
|
+
if (!context) throw new Error("ContextMenu.* must be used inside <ContextMenu>");
|
|
752
|
+
return context;
|
|
753
|
+
}
|
|
754
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
755
|
+
...{ name: "ContextMenu", inheritAttrs: false },
|
|
756
|
+
__name: "ContextMenu",
|
|
757
|
+
setup(__props) {
|
|
758
|
+
const open = shallowRef(false);
|
|
759
|
+
const anchor = shallowRef(null);
|
|
760
|
+
const triggerEl = shallowRef(null);
|
|
761
|
+
const restoreFocus = { current: null };
|
|
762
|
+
let restoreRaf = 0;
|
|
763
|
+
function setAnchor(el) {
|
|
764
|
+
const previous = anchor.value;
|
|
765
|
+
if (previous && typeof document !== "undefined" && previous.parentNode === document.body) {
|
|
766
|
+
previous.remove();
|
|
767
|
+
}
|
|
768
|
+
anchor.value = el;
|
|
769
|
+
}
|
|
770
|
+
function setOpen(next) {
|
|
771
|
+
if (next && !open.value) {
|
|
772
|
+
cancelAnimationFrame(restoreRaf);
|
|
773
|
+
restoreFocus.current ??= document.activeElement instanceof HTMLElement && document.activeElement !== document.body ? document.activeElement : null;
|
|
774
|
+
}
|
|
775
|
+
open.value = next;
|
|
776
|
+
if (next) return;
|
|
777
|
+
setAnchor(null);
|
|
778
|
+
const restoreTarget = restoreFocus.current;
|
|
779
|
+
restoreFocus.current = null;
|
|
780
|
+
if (!restoreTarget) return;
|
|
781
|
+
let attempts = 0;
|
|
782
|
+
const tryRestore = () => {
|
|
783
|
+
restoreTarget.focus();
|
|
784
|
+
if (document.activeElement !== restoreTarget && attempts++ < 30) {
|
|
785
|
+
restoreRaf = requestAnimationFrame(tryRestore);
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
restoreRaf = requestAnimationFrame(tryRestore);
|
|
789
|
+
}
|
|
790
|
+
onScopeDispose(() => {
|
|
791
|
+
if (typeof cancelAnimationFrame !== "undefined") cancelAnimationFrame(restoreRaf);
|
|
792
|
+
const current = anchor.value;
|
|
793
|
+
if (current && typeof document !== "undefined" && current.parentNode === document.body) {
|
|
794
|
+
current.remove();
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
provide(contextMenuContextKey, { open, setOpen, anchor, setAnchor, triggerEl, restoreFocus });
|
|
798
|
+
return (_ctx, _cache) => {
|
|
799
|
+
return renderSlot(_ctx.$slots, "default");
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
});
|
|
803
|
+
const LONG_PRESS_MS = 600;
|
|
804
|
+
function makeVirtualAnchor(x, y) {
|
|
805
|
+
const el = document.createElement("div");
|
|
806
|
+
el.style.position = "fixed";
|
|
807
|
+
el.style.left = `${x}px`;
|
|
808
|
+
el.style.top = `${y}px`;
|
|
809
|
+
el.style.width = "0px";
|
|
810
|
+
el.style.height = "0px";
|
|
811
|
+
el.style.pointerEvents = "none";
|
|
812
|
+
document.body.appendChild(el);
|
|
813
|
+
return el;
|
|
814
|
+
}
|
|
815
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
816
|
+
...{ name: "ContextMenuTrigger", inheritAttrs: false },
|
|
817
|
+
__name: "ContextMenuTrigger",
|
|
818
|
+
props: {
|
|
819
|
+
asChild: { type: Boolean, default: false },
|
|
820
|
+
isDisabled: { type: Boolean, default: void 0 }
|
|
821
|
+
},
|
|
822
|
+
setup(__props, { expose: __expose }) {
|
|
823
|
+
const props = __props;
|
|
824
|
+
const attrs = useAttrs();
|
|
825
|
+
const context = useContextMenuContext();
|
|
826
|
+
const inner = useTemplateRef("inner");
|
|
827
|
+
let longPressTimer = null;
|
|
828
|
+
watch(
|
|
829
|
+
inner,
|
|
830
|
+
(instance) => {
|
|
831
|
+
context.triggerEl.value = toHtmlElement(instance?.$el);
|
|
832
|
+
},
|
|
833
|
+
{ immediate: true, flush: "post" }
|
|
834
|
+
);
|
|
835
|
+
function clearLongPress() {
|
|
836
|
+
if (longPressTimer) clearTimeout(longPressTimer);
|
|
837
|
+
longPressTimer = null;
|
|
838
|
+
}
|
|
839
|
+
onScopeDispose(clearLongPress);
|
|
840
|
+
function handleContextMenu(event) {
|
|
841
|
+
if (event.defaultPrevented || props.isDisabled) return;
|
|
842
|
+
event.preventDefault();
|
|
843
|
+
context.setAnchor(makeVirtualAnchor(event.clientX, event.clientY));
|
|
844
|
+
context.setOpen(true);
|
|
845
|
+
}
|
|
846
|
+
function handlePointerDown(event) {
|
|
847
|
+
if (!props.isDisabled && !context.open.value && (event.button === 2 || event.pointerType === "touch")) {
|
|
848
|
+
context.restoreFocus.current = document.activeElement instanceof HTMLElement && document.activeElement !== document.body ? document.activeElement : null;
|
|
849
|
+
}
|
|
850
|
+
if (event.defaultPrevented || props.isDisabled || event.pointerType !== "touch") return;
|
|
851
|
+
const x = event.clientX;
|
|
852
|
+
const y = event.clientY;
|
|
853
|
+
longPressTimer = setTimeout(() => {
|
|
854
|
+
context.setAnchor(makeVirtualAnchor(x, y));
|
|
855
|
+
context.setOpen(true);
|
|
856
|
+
}, LONG_PRESS_MS);
|
|
857
|
+
}
|
|
858
|
+
const el = computed(() => inner.value?.$el ?? null);
|
|
859
|
+
__expose({ el });
|
|
860
|
+
return (_ctx, _cache) => {
|
|
861
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
862
|
+
ref_key: "inner",
|
|
863
|
+
ref: inner,
|
|
864
|
+
as: "div",
|
|
865
|
+
"as-child": props.asChild
|
|
866
|
+
}, unref(attrs), {
|
|
867
|
+
onContextmenu: handleContextMenu,
|
|
868
|
+
onPointerdown: handlePointerDown,
|
|
869
|
+
onPointerup: clearLongPress,
|
|
870
|
+
onPointercancel: clearLongPress
|
|
871
|
+
}), {
|
|
872
|
+
default: withCtx(() => [
|
|
873
|
+
renderSlot(_ctx.$slots, "default")
|
|
874
|
+
]),
|
|
875
|
+
_: 3
|
|
876
|
+
}, 16, ["as-child"]);
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
881
|
+
...{ name: "ContextMenuContent", inheritAttrs: false },
|
|
882
|
+
__name: "ContextMenuContent",
|
|
883
|
+
props: {
|
|
884
|
+
placement: { default: "bottom-start" },
|
|
885
|
+
offset: { default: 2 }
|
|
886
|
+
},
|
|
887
|
+
setup(__props) {
|
|
888
|
+
const props = __props;
|
|
889
|
+
const attrs = useAttrs();
|
|
890
|
+
const context = useContextMenuContext();
|
|
891
|
+
const isOpen = context.open;
|
|
892
|
+
const anchor = context.anchor;
|
|
893
|
+
const classes = computed(
|
|
894
|
+
() => cn("motion-safe:animate-(--animate-pop-in)", attrs.class)
|
|
895
|
+
);
|
|
896
|
+
const rest = computed(() => {
|
|
897
|
+
const { class: _class, ...others } = attrs;
|
|
898
|
+
return others;
|
|
899
|
+
});
|
|
900
|
+
return (_ctx, _cache) => {
|
|
901
|
+
return openBlock(), createBlock(_sfc_main$u, mergeProps({
|
|
902
|
+
open: unref(isOpen),
|
|
903
|
+
anchor: unref(anchor),
|
|
904
|
+
placement: props.placement,
|
|
905
|
+
offset: props.offset
|
|
906
|
+
}, rest.value, {
|
|
907
|
+
class: classes.value,
|
|
908
|
+
onClose: _cache[0] || (_cache[0] = ($event) => unref(context).setOpen(false))
|
|
909
|
+
}), {
|
|
910
|
+
default: withCtx(() => [
|
|
911
|
+
renderSlot(_ctx.$slots, "default")
|
|
912
|
+
]),
|
|
913
|
+
_: 3
|
|
914
|
+
}, 16, ["open", "anchor", "placement", "offset", "class"]);
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
});
|
|
918
|
+
const menubarContextKey = Symbol("wow-two.menubar");
|
|
919
|
+
function useMenubarContext() {
|
|
920
|
+
const context = inject(menubarContextKey, null);
|
|
921
|
+
if (!context) throw new Error("Menubar.* must be used inside <Menubar>");
|
|
922
|
+
return context;
|
|
923
|
+
}
|
|
924
|
+
const menubarMenuContextKey = Symbol("wow-two.menubarMenu");
|
|
925
|
+
function useMenubarMenuContext() {
|
|
926
|
+
const context = inject(menubarMenuContextKey, null);
|
|
927
|
+
if (!context) throw new Error("MenubarTrigger / MenubarContent must be used inside <MenubarMenu>");
|
|
928
|
+
return context;
|
|
929
|
+
}
|
|
930
|
+
const menubarVariants = tv({
|
|
931
|
+
base: "flex items-center gap-1 rounded-md border border-border bg-background p-1"
|
|
932
|
+
});
|
|
933
|
+
const menubarTriggerVariants = tv({
|
|
934
|
+
base: "inline-flex select-none items-center rounded-sm px-3 py-1 text-sm font-medium text-foreground outline-none transition-colors hover:bg-muted focus-visible:bg-muted data-[state=open]:bg-muted"
|
|
935
|
+
});
|
|
936
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
937
|
+
...{ name: "Menubar", inheritAttrs: false },
|
|
938
|
+
__name: "Menubar",
|
|
939
|
+
props: {
|
|
940
|
+
value: { default: void 0 },
|
|
941
|
+
defaultValue: { default: null }
|
|
942
|
+
},
|
|
943
|
+
emits: ["value-change"],
|
|
944
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
945
|
+
const props = __props;
|
|
946
|
+
const emit = __emit;
|
|
947
|
+
const attrs = useAttrs();
|
|
948
|
+
const el = useTemplateRef("el");
|
|
949
|
+
const { value: activeId, setValue: setActiveId } = useControlled({
|
|
950
|
+
controlled: () => props.value,
|
|
951
|
+
default: () => props.defaultValue,
|
|
952
|
+
onChange: (next) => emit("value-change", next)
|
|
953
|
+
});
|
|
954
|
+
const triggers = [];
|
|
955
|
+
function registerTrigger(id, triggerEl) {
|
|
956
|
+
const index = triggers.findIndex((t) => t.id === id);
|
|
957
|
+
if (index >= 0) triggers[index] = { id, el: triggerEl };
|
|
958
|
+
else triggers.push({ id, el: triggerEl });
|
|
959
|
+
}
|
|
960
|
+
function unregisterTrigger(id) {
|
|
961
|
+
const index = triggers.findIndex((t) => t.id === id);
|
|
962
|
+
if (index >= 0) triggers.splice(index, 1);
|
|
963
|
+
}
|
|
964
|
+
function moveAcross(fromId, direction) {
|
|
965
|
+
const index = triggers.findIndex((t) => t.id === fromId);
|
|
966
|
+
if (index === -1) return;
|
|
967
|
+
let nextIndex = index + direction;
|
|
968
|
+
if (nextIndex < 0) nextIndex = triggers.length - 1;
|
|
969
|
+
if (nextIndex >= triggers.length) nextIndex = 0;
|
|
970
|
+
const next = triggers[nextIndex];
|
|
971
|
+
if (!next) return;
|
|
972
|
+
next.el?.focus();
|
|
973
|
+
if (activeId.value !== null) setActiveId(next.id);
|
|
974
|
+
}
|
|
975
|
+
provide(menubarContextKey, {
|
|
976
|
+
activeId,
|
|
977
|
+
setActiveId,
|
|
978
|
+
registerTrigger,
|
|
979
|
+
unregisterTrigger,
|
|
980
|
+
moveAcross
|
|
981
|
+
});
|
|
982
|
+
const classes = computed(() => cn(menubarVariants(), attrs.class));
|
|
983
|
+
const rest = computed(() => {
|
|
984
|
+
const { class: _class, ...others } = attrs;
|
|
985
|
+
return others;
|
|
986
|
+
});
|
|
987
|
+
__expose({ el });
|
|
988
|
+
return (_ctx, _cache) => {
|
|
989
|
+
return openBlock(), createBlock(unref(_sfc_main$C), mergeProps({
|
|
990
|
+
ref_key: "el",
|
|
991
|
+
ref: el,
|
|
992
|
+
orientation: "horizontal",
|
|
993
|
+
"can-loop": "",
|
|
994
|
+
role: "menubar"
|
|
995
|
+
}, rest.value, { class: classes.value }), {
|
|
996
|
+
default: withCtx(() => [
|
|
997
|
+
renderSlot(_ctx.$slots, "default")
|
|
998
|
+
]),
|
|
999
|
+
_: 3
|
|
1000
|
+
}, 16, ["class"]);
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1005
|
+
...{ name: "MenubarMenu", inheritAttrs: false },
|
|
1006
|
+
__name: "MenubarMenu",
|
|
1007
|
+
props: {
|
|
1008
|
+
value: {}
|
|
1009
|
+
},
|
|
1010
|
+
setup(__props) {
|
|
1011
|
+
const props = __props;
|
|
1012
|
+
const bar = useMenubarContext();
|
|
1013
|
+
provide(menubarMenuContextKey, {
|
|
1014
|
+
id: props.value,
|
|
1015
|
+
open: computed(() => bar.activeId.value === props.value),
|
|
1016
|
+
setOpen: (next) => bar.setActiveId(next ? props.value : null),
|
|
1017
|
+
triggerEl: shallowRef(null)
|
|
1018
|
+
});
|
|
1019
|
+
return (_ctx, _cache) => {
|
|
1020
|
+
return renderSlot(_ctx.$slots, "default");
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
const _hoisted_1$9 = ["aria-expanded", "data-state", "tabindex"];
|
|
1025
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1026
|
+
...{ name: "MenubarTrigger", inheritAttrs: false },
|
|
1027
|
+
__name: "MenubarTrigger",
|
|
1028
|
+
setup(__props, { expose: __expose }) {
|
|
1029
|
+
const attrs = useAttrs();
|
|
1030
|
+
const bar = useMenubarContext();
|
|
1031
|
+
const menu = useMenubarMenuContext();
|
|
1032
|
+
const item = useRovingFocusItem();
|
|
1033
|
+
const el = shallowRef(null);
|
|
1034
|
+
function setRef(node) {
|
|
1035
|
+
const button = node ?? null;
|
|
1036
|
+
el.value = button;
|
|
1037
|
+
menu.triggerEl.value = button;
|
|
1038
|
+
item.ref(node);
|
|
1039
|
+
}
|
|
1040
|
+
watch(el, (node) => bar.registerTrigger(menu.id, node), { immediate: true, flush: "post" });
|
|
1041
|
+
onScopeDispose(() => bar.unregisterTrigger(menu.id));
|
|
1042
|
+
const isOpen = menu.open;
|
|
1043
|
+
function handleClick(event) {
|
|
1044
|
+
if (event.defaultPrevented) return;
|
|
1045
|
+
menu.setOpen(!menu.open.value);
|
|
1046
|
+
}
|
|
1047
|
+
function handlePointerEnter() {
|
|
1048
|
+
if (bar.activeId.value !== null && bar.activeId.value !== menu.id) {
|
|
1049
|
+
bar.setActiveId(menu.id);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
function handleFocus() {
|
|
1053
|
+
item.onFocus();
|
|
1054
|
+
}
|
|
1055
|
+
function handleKeydown(event) {
|
|
1056
|
+
if (event.defaultPrevented) return;
|
|
1057
|
+
switch (event.key) {
|
|
1058
|
+
case "ArrowDown":
|
|
1059
|
+
case "Enter":
|
|
1060
|
+
case " ":
|
|
1061
|
+
event.preventDefault();
|
|
1062
|
+
menu.setOpen(true);
|
|
1063
|
+
return;
|
|
1064
|
+
case "ArrowRight":
|
|
1065
|
+
case "ArrowLeft":
|
|
1066
|
+
if (bar.activeId.value !== null) {
|
|
1067
|
+
event.preventDefault();
|
|
1068
|
+
bar.moveAcross(menu.id, event.key === "ArrowRight" ? 1 : -1);
|
|
1069
|
+
return;
|
|
1070
|
+
}
|
|
1071
|
+
break;
|
|
1072
|
+
}
|
|
1073
|
+
item.onKeydown(event);
|
|
1074
|
+
}
|
|
1075
|
+
const classes = computed(
|
|
1076
|
+
() => cn(menubarTriggerVariants(), attrs.class)
|
|
1077
|
+
);
|
|
1078
|
+
const rest = computed(() => {
|
|
1079
|
+
const { class: _class, ...others } = attrs;
|
|
1080
|
+
return others;
|
|
1081
|
+
});
|
|
1082
|
+
__expose({ el });
|
|
1083
|
+
return (_ctx, _cache) => {
|
|
1084
|
+
return openBlock(), createElementBlock("button", mergeProps({
|
|
1085
|
+
type: "button",
|
|
1086
|
+
role: "menuitem",
|
|
1087
|
+
"aria-haspopup": "menu",
|
|
1088
|
+
"aria-expanded": unref(isOpen),
|
|
1089
|
+
"data-state": unref(isOpen) ? "open" : "closed",
|
|
1090
|
+
tabindex: unref(item).tabindex,
|
|
1091
|
+
"data-roving-focus-item": true
|
|
1092
|
+
}, rest.value, {
|
|
1093
|
+
ref: setRef,
|
|
1094
|
+
class: classes.value,
|
|
1095
|
+
onClick: handleClick,
|
|
1096
|
+
onPointerenter: handlePointerEnter,
|
|
1097
|
+
onFocus: handleFocus,
|
|
1098
|
+
onKeydown: handleKeydown
|
|
1099
|
+
}), [
|
|
1100
|
+
renderSlot(_ctx.$slots, "default")
|
|
1101
|
+
], 16, _hoisted_1$9);
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1106
|
+
...{ name: "MenubarContent", inheritAttrs: false },
|
|
1107
|
+
__name: "MenubarContent",
|
|
1108
|
+
props: {
|
|
1109
|
+
placement: { default: "bottom-start" },
|
|
1110
|
+
offset: { default: 4 }
|
|
1111
|
+
},
|
|
1112
|
+
setup(__props) {
|
|
1113
|
+
const props = __props;
|
|
1114
|
+
const attrs = useAttrs();
|
|
1115
|
+
const bar = useMenubarContext();
|
|
1116
|
+
const menu = useMenubarMenuContext();
|
|
1117
|
+
const isOpen = menu.open;
|
|
1118
|
+
const anchor = computed(() => menu.triggerEl.value);
|
|
1119
|
+
function handleClose() {
|
|
1120
|
+
menu.setOpen(false);
|
|
1121
|
+
requestAnimationFrame(() => menu.triggerEl.value?.focus());
|
|
1122
|
+
}
|
|
1123
|
+
function handleKeydown(event) {
|
|
1124
|
+
switch (event.key) {
|
|
1125
|
+
case "ArrowRight":
|
|
1126
|
+
event.preventDefault();
|
|
1127
|
+
bar.moveAcross(menu.id, 1);
|
|
1128
|
+
break;
|
|
1129
|
+
case "ArrowLeft":
|
|
1130
|
+
event.preventDefault();
|
|
1131
|
+
bar.moveAcross(menu.id, -1);
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
return (_ctx, _cache) => {
|
|
1136
|
+
return openBlock(), createBlock(_sfc_main$u, mergeProps({
|
|
1137
|
+
open: unref(isOpen),
|
|
1138
|
+
anchor: anchor.value,
|
|
1139
|
+
placement: props.placement,
|
|
1140
|
+
offset: props.offset
|
|
1141
|
+
}, unref(attrs), {
|
|
1142
|
+
onClose: handleClose,
|
|
1143
|
+
onKeydown: handleKeydown
|
|
1144
|
+
}), {
|
|
1145
|
+
default: withCtx(() => [
|
|
1146
|
+
renderSlot(_ctx.$slots, "default")
|
|
1147
|
+
]),
|
|
1148
|
+
_: 3
|
|
1149
|
+
}, 16, ["open", "anchor", "placement", "offset"]);
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
});
|
|
1153
|
+
const navigationMenuContextKey = Symbol("wow-two.navigationMenu");
|
|
1154
|
+
function useNavigationMenuContext() {
|
|
1155
|
+
const context = inject(navigationMenuContextKey, null);
|
|
1156
|
+
if (!context) throw new Error("NavigationMenu.* must be used inside <NavigationMenu>");
|
|
1157
|
+
return context;
|
|
1158
|
+
}
|
|
1159
|
+
const navigationMenuItemContextKey = Symbol("wow-two.navigationMenuItem");
|
|
1160
|
+
function useNavigationMenuItemContext() {
|
|
1161
|
+
const context = inject(navigationMenuItemContextKey, null);
|
|
1162
|
+
if (!context) {
|
|
1163
|
+
throw new Error(
|
|
1164
|
+
"NavigationMenuTrigger / NavigationMenuContent must be used inside <NavigationMenuItem>"
|
|
1165
|
+
);
|
|
1166
|
+
}
|
|
1167
|
+
return context;
|
|
1168
|
+
}
|
|
1169
|
+
const _hoisted_1$8 = ["aria-label"];
|
|
1170
|
+
const DEFAULT_ARIA_LABEL = "Main navigation";
|
|
1171
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1172
|
+
...{ name: "NavigationMenu", inheritAttrs: false },
|
|
1173
|
+
__name: "NavigationMenu",
|
|
1174
|
+
props: {
|
|
1175
|
+
value: { default: void 0 },
|
|
1176
|
+
defaultValue: { default: null }
|
|
1177
|
+
},
|
|
1178
|
+
emits: ["value-change"],
|
|
1179
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1180
|
+
const props = __props;
|
|
1181
|
+
const emit = __emit;
|
|
1182
|
+
const attrs = useAttrs();
|
|
1183
|
+
const el = useTemplateRef("el");
|
|
1184
|
+
const { value: activeId, setValue: setActiveId } = useControlled({
|
|
1185
|
+
controlled: () => props.value,
|
|
1186
|
+
default: () => props.defaultValue,
|
|
1187
|
+
onChange: (next) => emit("value-change", next)
|
|
1188
|
+
});
|
|
1189
|
+
provide(navigationMenuContextKey, { activeId, setActiveId });
|
|
1190
|
+
const ariaLabel = computed(() => attrs["aria-label"] ?? DEFAULT_ARIA_LABEL);
|
|
1191
|
+
const classes = computed(() => cn("relative", attrs.class));
|
|
1192
|
+
const rest = computed(() => {
|
|
1193
|
+
const { class: _class, "aria-label": _ariaLabel, ...others } = attrs;
|
|
1194
|
+
return others;
|
|
1195
|
+
});
|
|
1196
|
+
__expose({ el });
|
|
1197
|
+
return (_ctx, _cache) => {
|
|
1198
|
+
return openBlock(), createElementBlock("nav", mergeProps({
|
|
1199
|
+
ref_key: "el",
|
|
1200
|
+
ref: el,
|
|
1201
|
+
"aria-label": ariaLabel.value
|
|
1202
|
+
}, rest.value, { class: classes.value }), [
|
|
1203
|
+
renderSlot(_ctx.$slots, "default")
|
|
1204
|
+
], 16, _hoisted_1$8);
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
});
|
|
1208
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1209
|
+
...{ name: "NavigationMenuList", inheritAttrs: false },
|
|
1210
|
+
__name: "NavigationMenuList",
|
|
1211
|
+
setup(__props, { expose: __expose }) {
|
|
1212
|
+
const attrs = useAttrs();
|
|
1213
|
+
const el = useTemplateRef("el");
|
|
1214
|
+
const classes = computed(
|
|
1215
|
+
() => cn("flex items-center gap-1", attrs.class)
|
|
1216
|
+
);
|
|
1217
|
+
const rest = computed(() => {
|
|
1218
|
+
const { class: _class, ...others } = attrs;
|
|
1219
|
+
return others;
|
|
1220
|
+
});
|
|
1221
|
+
__expose({ el });
|
|
1222
|
+
return (_ctx, _cache) => {
|
|
1223
|
+
return openBlock(), createBlock(unref(_sfc_main$C), mergeProps({
|
|
1224
|
+
ref_key: "el",
|
|
1225
|
+
ref: el,
|
|
1226
|
+
orientation: "horizontal",
|
|
1227
|
+
"can-loop": "",
|
|
1228
|
+
role: "list"
|
|
1229
|
+
}, rest.value, { class: classes.value }), {
|
|
1230
|
+
default: withCtx(() => [
|
|
1231
|
+
renderSlot(_ctx.$slots, "default")
|
|
1232
|
+
]),
|
|
1233
|
+
_: 3
|
|
1234
|
+
}, 16, ["class"]);
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1239
|
+
...{ name: "NavigationMenuItem", inheritAttrs: false },
|
|
1240
|
+
__name: "NavigationMenuItem",
|
|
1241
|
+
props: {
|
|
1242
|
+
value: {}
|
|
1243
|
+
},
|
|
1244
|
+
setup(__props, { expose: __expose }) {
|
|
1245
|
+
const props = __props;
|
|
1246
|
+
const attrs = useAttrs();
|
|
1247
|
+
const el = useTemplateRef("el");
|
|
1248
|
+
const nav = useNavigationMenuContext();
|
|
1249
|
+
provide(navigationMenuItemContextKey, {
|
|
1250
|
+
value: props.value,
|
|
1251
|
+
open: computed(() => nav.activeId.value === props.value),
|
|
1252
|
+
triggerEl: shallowRef(null),
|
|
1253
|
+
contentId: useId(),
|
|
1254
|
+
triggerId: useId()
|
|
1255
|
+
});
|
|
1256
|
+
const classes = computed(() => cn("relative", attrs.class));
|
|
1257
|
+
const rest = computed(() => {
|
|
1258
|
+
const { class: _class, ...others } = attrs;
|
|
1259
|
+
return others;
|
|
1260
|
+
});
|
|
1261
|
+
__expose({ el });
|
|
1262
|
+
return (_ctx, _cache) => {
|
|
1263
|
+
return openBlock(), createElementBlock("li", mergeProps({
|
|
1264
|
+
ref_key: "el",
|
|
1265
|
+
ref: el
|
|
1266
|
+
}, rest.value, { class: classes.value }), [
|
|
1267
|
+
renderSlot(_ctx.$slots, "default")
|
|
1268
|
+
], 16);
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
const _hoisted_1$7 = ["id", "aria-expanded", "aria-controls", "data-state", "tabindex"];
|
|
1273
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1274
|
+
...{ name: "NavigationMenuTrigger", inheritAttrs: false },
|
|
1275
|
+
__name: "NavigationMenuTrigger",
|
|
1276
|
+
setup(__props, { expose: __expose }) {
|
|
1277
|
+
const attrs = useAttrs();
|
|
1278
|
+
const nav = useNavigationMenuContext();
|
|
1279
|
+
const item = useNavigationMenuItemContext();
|
|
1280
|
+
const roving = useRovingFocusItem();
|
|
1281
|
+
const el = shallowRef(null);
|
|
1282
|
+
function setRef(node) {
|
|
1283
|
+
const button = node ?? null;
|
|
1284
|
+
el.value = button;
|
|
1285
|
+
item.triggerEl.value = button;
|
|
1286
|
+
roving.ref(node);
|
|
1287
|
+
}
|
|
1288
|
+
const isOpen = item.open;
|
|
1289
|
+
let wasOpenedByPointer = false;
|
|
1290
|
+
function handleClick(event) {
|
|
1291
|
+
if (event.defaultPrevented) return;
|
|
1292
|
+
if (wasOpenedByPointer) {
|
|
1293
|
+
wasOpenedByPointer = false;
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1296
|
+
nav.setActiveId(item.open.value ? null : item.value);
|
|
1297
|
+
}
|
|
1298
|
+
function handlePointerEnter() {
|
|
1299
|
+
if (nav.activeId.value !== null && nav.activeId.value !== item.value) {
|
|
1300
|
+
nav.setActiveId(item.value);
|
|
1301
|
+
wasOpenedByPointer = true;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
function handlePointerLeave() {
|
|
1305
|
+
wasOpenedByPointer = false;
|
|
1306
|
+
}
|
|
1307
|
+
function handleFocus() {
|
|
1308
|
+
roving.onFocus();
|
|
1309
|
+
}
|
|
1310
|
+
function handleKeydown(event) {
|
|
1311
|
+
if (event.defaultPrevented) return;
|
|
1312
|
+
roving.onKeydown(event);
|
|
1313
|
+
}
|
|
1314
|
+
const classes = computed(
|
|
1315
|
+
() => cn(
|
|
1316
|
+
"inline-flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-muted",
|
|
1317
|
+
attrs.class
|
|
1318
|
+
)
|
|
1319
|
+
);
|
|
1320
|
+
const rest = computed(() => {
|
|
1321
|
+
const { class: _class, ...others } = attrs;
|
|
1322
|
+
return others;
|
|
1323
|
+
});
|
|
1324
|
+
__expose({ el });
|
|
1325
|
+
return (_ctx, _cache) => {
|
|
1326
|
+
return openBlock(), createElementBlock("button", mergeProps({
|
|
1327
|
+
id: unref(item).triggerId,
|
|
1328
|
+
type: "button",
|
|
1329
|
+
"aria-haspopup": "true",
|
|
1330
|
+
"aria-expanded": unref(isOpen),
|
|
1331
|
+
"aria-controls": unref(item).contentId,
|
|
1332
|
+
"data-state": unref(isOpen) ? "open" : "closed",
|
|
1333
|
+
tabindex: unref(roving).tabindex,
|
|
1334
|
+
"data-roving-focus-item": true
|
|
1335
|
+
}, rest.value, {
|
|
1336
|
+
ref: setRef,
|
|
1337
|
+
class: classes.value,
|
|
1338
|
+
onClick: handleClick,
|
|
1339
|
+
onPointerenter: handlePointerEnter,
|
|
1340
|
+
onPointerleave: handlePointerLeave,
|
|
1341
|
+
onFocus: handleFocus,
|
|
1342
|
+
onKeydown: handleKeydown
|
|
1343
|
+
}), [
|
|
1344
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1345
|
+
createVNode(unref(ChevronDown), {
|
|
1346
|
+
class: normalizeClass(unref(cn)("h-4 w-4 transition-transform", unref(isOpen) && "rotate-180"))
|
|
1347
|
+
}, null, 8, ["class"])
|
|
1348
|
+
], 16, _hoisted_1$7);
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1352
|
+
const _hoisted_1$6 = ["id", "aria-labelledby"];
|
|
1353
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1354
|
+
...{ name: "NavigationMenuContent", inheritAttrs: false },
|
|
1355
|
+
__name: "NavigationMenuContent",
|
|
1356
|
+
setup(__props, { expose: __expose }) {
|
|
1357
|
+
const attrs = useAttrs();
|
|
1358
|
+
const nav = useNavigationMenuContext();
|
|
1359
|
+
const item = useNavigationMenuItemContext();
|
|
1360
|
+
const reducedMotion = useReducedMotion();
|
|
1361
|
+
const isOpen = item.open;
|
|
1362
|
+
const anchor = computed(() => item.triggerEl.value);
|
|
1363
|
+
const el = shallowRef(null);
|
|
1364
|
+
const mounted = shallowRef(item.open.value);
|
|
1365
|
+
watch(
|
|
1366
|
+
[() => item.open.value, reducedMotion],
|
|
1367
|
+
([open, isReduced], _previous, onCleanup) => {
|
|
1368
|
+
if (open) {
|
|
1369
|
+
mounted.value = true;
|
|
1370
|
+
return;
|
|
1371
|
+
}
|
|
1372
|
+
if (!isReduced) return;
|
|
1373
|
+
if (typeof requestAnimationFrame === "undefined") return;
|
|
1374
|
+
const raf = requestAnimationFrame(() => {
|
|
1375
|
+
mounted.value = false;
|
|
1376
|
+
});
|
|
1377
|
+
onCleanup(() => cancelAnimationFrame(raf));
|
|
1378
|
+
},
|
|
1379
|
+
{ immediate: true, flush: "post" }
|
|
1380
|
+
);
|
|
1381
|
+
function handleClose() {
|
|
1382
|
+
nav.setActiveId(null);
|
|
1383
|
+
requestAnimationFrame(() => item.triggerEl.value?.focus());
|
|
1384
|
+
}
|
|
1385
|
+
function handleOutsidePointerDown(event) {
|
|
1386
|
+
if (item.triggerEl.value?.contains(event.target)) return;
|
|
1387
|
+
nav.setActiveId(null);
|
|
1388
|
+
}
|
|
1389
|
+
function handleAnimationEnd() {
|
|
1390
|
+
if (!item.open.value) mounted.value = false;
|
|
1391
|
+
}
|
|
1392
|
+
function setPanel(node) {
|
|
1393
|
+
el.value = node ?? null;
|
|
1394
|
+
}
|
|
1395
|
+
const classes = computed(
|
|
1396
|
+
() => cn(
|
|
1397
|
+
/* pop (fade + slight scale) gated on data-state; motion-safe so
|
|
1398
|
+
reduced-motion users get no movement. */
|
|
1399
|
+
"min-w-[12rem] outline-none",
|
|
1400
|
+
"motion-safe:data-[state=open]:animate-(--animate-pop-in)",
|
|
1401
|
+
"motion-safe:data-[state=closed]:animate-(--animate-pop-out)",
|
|
1402
|
+
"motion-reduce:animate-none",
|
|
1403
|
+
surfaceVariants({ variant: "surface", radius: "md", padding: "md" }),
|
|
1404
|
+
attrs.class
|
|
1405
|
+
)
|
|
1406
|
+
);
|
|
1407
|
+
const rest = computed(() => {
|
|
1408
|
+
const { class: _class, ...others } = attrs;
|
|
1409
|
+
return others;
|
|
1410
|
+
});
|
|
1411
|
+
__expose({ el });
|
|
1412
|
+
return (_ctx, _cache) => {
|
|
1413
|
+
return mounted.value ? (openBlock(), createBlock(unref(_sfc_main$y), { key: 0 }, {
|
|
1414
|
+
default: withCtx(() => [
|
|
1415
|
+
createVNode(unref(_sfc_main$z), {
|
|
1416
|
+
anchor: anchor.value,
|
|
1417
|
+
placement: "bottom-start",
|
|
1418
|
+
offset: 6,
|
|
1419
|
+
class: "z-dropdown"
|
|
1420
|
+
}, {
|
|
1421
|
+
default: withCtx(() => [
|
|
1422
|
+
createVNode(unref(_sfc_main$B), {
|
|
1423
|
+
"on-escape": handleClose,
|
|
1424
|
+
"on-outside-pointer-down": handleOutsidePointerDown
|
|
1425
|
+
}, {
|
|
1426
|
+
default: withCtx(() => [
|
|
1427
|
+
createVNode(unref(Presence), { "is-present": unref(isOpen) }, {
|
|
1428
|
+
default: withCtx(() => [
|
|
1429
|
+
createElementVNode("div", mergeProps({
|
|
1430
|
+
id: unref(item).contentId,
|
|
1431
|
+
"aria-labelledby": unref(item).triggerId
|
|
1432
|
+
}, rest.value, {
|
|
1433
|
+
ref: setPanel,
|
|
1434
|
+
class: classes.value,
|
|
1435
|
+
onAnimationend: handleAnimationEnd
|
|
1436
|
+
}), [
|
|
1437
|
+
renderSlot(_ctx.$slots, "default")
|
|
1438
|
+
], 16, _hoisted_1$6)
|
|
1439
|
+
]),
|
|
1440
|
+
_: 3
|
|
1441
|
+
}, 8, ["is-present"])
|
|
1442
|
+
]),
|
|
1443
|
+
_: 3
|
|
1444
|
+
})
|
|
1445
|
+
]),
|
|
1446
|
+
_: 3
|
|
1447
|
+
}, 8, ["anchor"])
|
|
1448
|
+
]),
|
|
1449
|
+
_: 3
|
|
1450
|
+
})) : createCommentVNode("", true);
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
const _hoisted_1$5 = ["tabindex"];
|
|
1455
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1456
|
+
...{ name: "NavigationMenuLink", inheritAttrs: false },
|
|
1457
|
+
__name: "NavigationMenuLink",
|
|
1458
|
+
setup(__props, { expose: __expose }) {
|
|
1459
|
+
const attrs = useAttrs();
|
|
1460
|
+
const roving = useRovingFocusItem();
|
|
1461
|
+
const el = shallowRef(null);
|
|
1462
|
+
function setRef(node) {
|
|
1463
|
+
el.value = node ?? null;
|
|
1464
|
+
roving.ref(node);
|
|
1465
|
+
}
|
|
1466
|
+
function handleFocus() {
|
|
1467
|
+
roving.onFocus();
|
|
1468
|
+
}
|
|
1469
|
+
function handleKeydown(event) {
|
|
1470
|
+
if (event.defaultPrevented) return;
|
|
1471
|
+
roving.onKeydown(event);
|
|
1472
|
+
}
|
|
1473
|
+
const classes = computed(
|
|
1474
|
+
() => cn(
|
|
1475
|
+
"inline-flex items-center rounded-md px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-muted hover:underline-offset-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1476
|
+
attrs.class
|
|
1477
|
+
)
|
|
1478
|
+
);
|
|
1479
|
+
const rest = computed(() => {
|
|
1480
|
+
const { class: _class, ...others } = attrs;
|
|
1481
|
+
return others;
|
|
1482
|
+
});
|
|
1483
|
+
__expose({ el });
|
|
1484
|
+
return (_ctx, _cache) => {
|
|
1485
|
+
return openBlock(), createElementBlock("a", mergeProps({
|
|
1486
|
+
tabindex: unref(roving).tabindex,
|
|
1487
|
+
"data-roving-focus-item": true
|
|
1488
|
+
}, rest.value, {
|
|
1489
|
+
ref: setRef,
|
|
1490
|
+
class: classes.value,
|
|
1491
|
+
onFocus: handleFocus,
|
|
1492
|
+
onKeydown: handleKeydown
|
|
1493
|
+
}), [
|
|
1494
|
+
renderSlot(_ctx.$slots, "default")
|
|
1495
|
+
], 16, _hoisted_1$5);
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
const commandPaletteContextKey = Symbol("wow-two.commandPalette");
|
|
1500
|
+
function useCommandPaletteContext() {
|
|
1501
|
+
const context = inject(commandPaletteContextKey, null);
|
|
1502
|
+
if (!context) throw new Error("CommandPalette.* must be used inside <CommandPalette>");
|
|
1503
|
+
return context;
|
|
1504
|
+
}
|
|
1505
|
+
const defaultFilter = (searchText, search) => searchText.toLowerCase().includes(search.toLowerCase());
|
|
1506
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1507
|
+
...{ name: "CommandPalette", inheritAttrs: false },
|
|
1508
|
+
__name: "CommandPalette",
|
|
1509
|
+
props: {
|
|
1510
|
+
open: { type: Boolean, default: void 0 },
|
|
1511
|
+
isOpen: { type: Boolean, default: void 0 },
|
|
1512
|
+
defaultOpen: { type: Boolean, default: false },
|
|
1513
|
+
inputValue: { default: void 0 },
|
|
1514
|
+
defaultInputValue: { default: void 0 },
|
|
1515
|
+
triggerKey: { default: void 0 },
|
|
1516
|
+
filter: { type: Function, default: defaultFilter }
|
|
1517
|
+
},
|
|
1518
|
+
emits: ["update:open", "open-change", "update:inputValue", "input-change"],
|
|
1519
|
+
setup(__props, { emit: __emit }) {
|
|
1520
|
+
const props = __props;
|
|
1521
|
+
const emit = __emit;
|
|
1522
|
+
const openState = useControlled({
|
|
1523
|
+
controlled: () => props.open !== void 0 ? props.open : props.isOpen,
|
|
1524
|
+
default: () => props.defaultOpen,
|
|
1525
|
+
onChange: (value) => {
|
|
1526
|
+
emit("update:open", value);
|
|
1527
|
+
emit("open-change", value);
|
|
1528
|
+
}
|
|
1529
|
+
});
|
|
1530
|
+
const inputState = useControlled({
|
|
1531
|
+
controlled: () => props.inputValue,
|
|
1532
|
+
default: () => props.defaultInputValue ?? "",
|
|
1533
|
+
onChange: (value) => {
|
|
1534
|
+
emit("update:inputValue", value);
|
|
1535
|
+
emit("input-change", value);
|
|
1536
|
+
}
|
|
1537
|
+
});
|
|
1538
|
+
const items = shallowRef([]);
|
|
1539
|
+
const activeId = shallowRef(null);
|
|
1540
|
+
const inputEl = shallowRef(null);
|
|
1541
|
+
const inputId = useId();
|
|
1542
|
+
const listboxId = useId();
|
|
1543
|
+
function registerItem(entry) {
|
|
1544
|
+
const next = items.value.slice();
|
|
1545
|
+
const index = next.findIndex((i) => i.id === entry.id);
|
|
1546
|
+
if (index >= 0) next[index] = entry;
|
|
1547
|
+
else next.push(entry);
|
|
1548
|
+
items.value = next;
|
|
1549
|
+
}
|
|
1550
|
+
function unregisterItem(id) {
|
|
1551
|
+
items.value = items.value.filter((i) => i.id !== id);
|
|
1552
|
+
}
|
|
1553
|
+
const chordKey = computed(() => {
|
|
1554
|
+
const key = props.triggerKey;
|
|
1555
|
+
return !key ? "k" : key === "+" ? "plus" : key;
|
|
1556
|
+
});
|
|
1557
|
+
useHotkeys(
|
|
1558
|
+
() => [`mod+${chordKey.value}`, `ctrl+${chordKey.value}`, `meta+${chordKey.value}`],
|
|
1559
|
+
() => openState.setValue(true),
|
|
1560
|
+
{ enabled: () => Boolean(props.triggerKey) }
|
|
1561
|
+
);
|
|
1562
|
+
watch(
|
|
1563
|
+
() => openState.value.value,
|
|
1564
|
+
(isOpen) => {
|
|
1565
|
+
if (!isOpen) activeId.value = null;
|
|
1566
|
+
},
|
|
1567
|
+
{ flush: "post" }
|
|
1568
|
+
);
|
|
1569
|
+
provide(commandPaletteContextKey, {
|
|
1570
|
+
open: openState.value,
|
|
1571
|
+
setOpen: openState.setValue,
|
|
1572
|
+
inputValue: inputState.value,
|
|
1573
|
+
setInputValue: inputState.setValue,
|
|
1574
|
+
activeId,
|
|
1575
|
+
setActiveId: (id) => {
|
|
1576
|
+
activeId.value = id;
|
|
1577
|
+
},
|
|
1578
|
+
items,
|
|
1579
|
+
registerItem,
|
|
1580
|
+
unregisterItem,
|
|
1581
|
+
/* Wrapped rather than stored, so a `filter` prop change is picked up live —
|
|
1582
|
+
React re-created the whole context value for the same effect. */
|
|
1583
|
+
filter: (searchText, search) => props.filter(searchText, search),
|
|
1584
|
+
inputId,
|
|
1585
|
+
listboxId,
|
|
1586
|
+
inputEl
|
|
1587
|
+
});
|
|
1588
|
+
const resolvedOpen = openState.value;
|
|
1589
|
+
return (_ctx, _cache) => {
|
|
1590
|
+
return openBlock(), createBlock(unref(_sfc_main$D), {
|
|
1591
|
+
open: unref(resolvedOpen),
|
|
1592
|
+
onOpenChange: unref(openState).setValue
|
|
1593
|
+
}, {
|
|
1594
|
+
default: withCtx(() => [
|
|
1595
|
+
renderSlot(_ctx.$slots, "default")
|
|
1596
|
+
]),
|
|
1597
|
+
_: 3
|
|
1598
|
+
}, 8, ["open", "onOpenChange"]);
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
});
|
|
1602
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1603
|
+
...{ name: "CommandPaletteContent", inheritAttrs: false },
|
|
1604
|
+
__name: "CommandPaletteContent",
|
|
1605
|
+
setup(__props) {
|
|
1606
|
+
const attrs = useAttrs();
|
|
1607
|
+
const classes = computed(
|
|
1608
|
+
() => cn("w-full max-w-xl gap-0 overflow-hidden p-0", attrs.class)
|
|
1609
|
+
);
|
|
1610
|
+
const rest = computed(() => {
|
|
1611
|
+
const { class: _class, ...others } = attrs;
|
|
1612
|
+
return others;
|
|
1613
|
+
});
|
|
1614
|
+
return (_ctx, _cache) => {
|
|
1615
|
+
return openBlock(), createBlock(unref(_sfc_main$E), mergeProps(rest.value, { class: classes.value }), {
|
|
1616
|
+
default: withCtx(() => [
|
|
1617
|
+
renderSlot(_ctx.$slots, "default")
|
|
1618
|
+
]),
|
|
1619
|
+
_: 3
|
|
1620
|
+
}, 16, ["class"]);
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1624
|
+
const _hoisted_1$4 = { class: "flex items-center gap-2 border-b border-border px-3" };
|
|
1625
|
+
const _hoisted_2$2 = ["id", "aria-controls", "aria-activedescendant", "placeholder", "value"];
|
|
1626
|
+
const DEFAULT_PLACEHOLDER = "Type a command…";
|
|
1627
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1628
|
+
...{ name: "CommandPaletteInput", inheritAttrs: false },
|
|
1629
|
+
__name: "CommandPaletteInput",
|
|
1630
|
+
setup(__props, { expose: __expose }) {
|
|
1631
|
+
const attrs = useAttrs();
|
|
1632
|
+
const context = useCommandPaletteContext();
|
|
1633
|
+
const el = shallowRef(null);
|
|
1634
|
+
const inputValue = context.inputValue;
|
|
1635
|
+
const activeId = context.activeId;
|
|
1636
|
+
function setRef(node) {
|
|
1637
|
+
const input = node ?? null;
|
|
1638
|
+
el.value = input;
|
|
1639
|
+
context.inputEl.value = input;
|
|
1640
|
+
}
|
|
1641
|
+
watch(
|
|
1642
|
+
[() => context.open.value, el],
|
|
1643
|
+
([isOpen, input]) => {
|
|
1644
|
+
if (isOpen && input) input.focus();
|
|
1645
|
+
},
|
|
1646
|
+
{ flush: "post" }
|
|
1647
|
+
);
|
|
1648
|
+
function visibleItems() {
|
|
1649
|
+
const search = context.inputValue.value;
|
|
1650
|
+
return context.items.value.filter(
|
|
1651
|
+
(i) => !i.disabled && (search === "" || context.filter(i.searchText, search))
|
|
1652
|
+
);
|
|
1653
|
+
}
|
|
1654
|
+
watch(
|
|
1655
|
+
[() => context.inputValue.value, context.items],
|
|
1656
|
+
() => {
|
|
1657
|
+
const list = visibleItems();
|
|
1658
|
+
if (list.length > 0 && !list.some((i) => i.id === context.activeId.value)) {
|
|
1659
|
+
context.setActiveId(list[0].id);
|
|
1660
|
+
} else if (list.length === 0) {
|
|
1661
|
+
context.setActiveId(null);
|
|
1662
|
+
}
|
|
1663
|
+
},
|
|
1664
|
+
{ immediate: true, flush: "post" }
|
|
1665
|
+
);
|
|
1666
|
+
function moveActive(direction) {
|
|
1667
|
+
const list = visibleItems();
|
|
1668
|
+
if (list.length === 0) return;
|
|
1669
|
+
const index = list.findIndex((i) => i.id === context.activeId.value);
|
|
1670
|
+
let nextIndex = index + direction;
|
|
1671
|
+
if (index === -1) nextIndex = direction === 1 ? 0 : list.length - 1;
|
|
1672
|
+
if (nextIndex < 0) nextIndex = list.length - 1;
|
|
1673
|
+
if (nextIndex >= list.length) nextIndex = 0;
|
|
1674
|
+
context.setActiveId(list[nextIndex].id);
|
|
1675
|
+
}
|
|
1676
|
+
function handleKeydown(event) {
|
|
1677
|
+
if (event.defaultPrevented) return;
|
|
1678
|
+
switch (event.key) {
|
|
1679
|
+
case "ArrowDown":
|
|
1680
|
+
event.preventDefault();
|
|
1681
|
+
moveActive(1);
|
|
1682
|
+
break;
|
|
1683
|
+
case "ArrowUp":
|
|
1684
|
+
event.preventDefault();
|
|
1685
|
+
moveActive(-1);
|
|
1686
|
+
break;
|
|
1687
|
+
case "Home": {
|
|
1688
|
+
if (event.target !== context.inputEl.value) break;
|
|
1689
|
+
const first = visibleItems();
|
|
1690
|
+
if (first.length > 0) context.setActiveId(first[0].id);
|
|
1691
|
+
break;
|
|
1692
|
+
}
|
|
1693
|
+
case "End": {
|
|
1694
|
+
if (event.target !== context.inputEl.value) break;
|
|
1695
|
+
const last = visibleItems();
|
|
1696
|
+
if (last.length > 0) context.setActiveId(last[last.length - 1].id);
|
|
1697
|
+
break;
|
|
1698
|
+
}
|
|
1699
|
+
case "Enter": {
|
|
1700
|
+
const id = context.activeId.value;
|
|
1701
|
+
if (!id) return;
|
|
1702
|
+
const entry = context.items.value.find((i) => i.id === id);
|
|
1703
|
+
if (!entry || entry.disabled) return;
|
|
1704
|
+
event.preventDefault();
|
|
1705
|
+
entry.select();
|
|
1706
|
+
if (entry.closeOnSelect) context.setOpen(false);
|
|
1707
|
+
break;
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
function handleInput(event) {
|
|
1712
|
+
context.setInputValue(event.target.value);
|
|
1713
|
+
}
|
|
1714
|
+
const placeholder = computed(
|
|
1715
|
+
() => attrs.placeholder ?? DEFAULT_PLACEHOLDER
|
|
1716
|
+
);
|
|
1717
|
+
const classes = computed(
|
|
1718
|
+
() => cn(
|
|
1719
|
+
"flex h-12 w-full bg-transparent text-sm text-foreground placeholder:text-subtle-foreground outline-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
1720
|
+
attrs.class
|
|
1721
|
+
)
|
|
1722
|
+
);
|
|
1723
|
+
const rest = computed(() => {
|
|
1724
|
+
const { class: _class, placeholder: _placeholder, ...others } = attrs;
|
|
1725
|
+
return others;
|
|
1726
|
+
});
|
|
1727
|
+
__expose({ el });
|
|
1728
|
+
return (_ctx, _cache) => {
|
|
1729
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
1730
|
+
createVNode(unref(_sfc_main$x), {
|
|
1731
|
+
icon: unref(Search),
|
|
1732
|
+
size: 16,
|
|
1733
|
+
class: "text-muted-foreground"
|
|
1734
|
+
}, null, 8, ["icon"]),
|
|
1735
|
+
createElementVNode("input", mergeProps(rest.value, {
|
|
1736
|
+
id: unref(context).inputId,
|
|
1737
|
+
ref: setRef,
|
|
1738
|
+
type: "text",
|
|
1739
|
+
role: "combobox",
|
|
1740
|
+
"aria-expanded": "true",
|
|
1741
|
+
"aria-controls": unref(context).listboxId,
|
|
1742
|
+
"aria-activedescendant": unref(activeId) ?? void 0,
|
|
1743
|
+
"aria-autocomplete": "list",
|
|
1744
|
+
placeholder: placeholder.value,
|
|
1745
|
+
value: unref(inputValue),
|
|
1746
|
+
class: classes.value,
|
|
1747
|
+
onInput: handleInput,
|
|
1748
|
+
onKeydown: handleKeydown
|
|
1749
|
+
}), null, 16, _hoisted_2$2)
|
|
1750
|
+
]);
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
});
|
|
1754
|
+
const _hoisted_1$3 = ["id", "aria-labelledby"];
|
|
1755
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1756
|
+
...{ name: "CommandPaletteList", inheritAttrs: false },
|
|
1757
|
+
__name: "CommandPaletteList",
|
|
1758
|
+
setup(__props, { expose: __expose }) {
|
|
1759
|
+
const attrs = useAttrs();
|
|
1760
|
+
const el = useTemplateRef("el");
|
|
1761
|
+
const context = useCommandPaletteContext();
|
|
1762
|
+
const classes = computed(
|
|
1763
|
+
() => cn("max-h-80 overflow-y-auto p-1", attrs.class)
|
|
1764
|
+
);
|
|
1765
|
+
const rest = computed(() => {
|
|
1766
|
+
const { class: _class, ...others } = attrs;
|
|
1767
|
+
return others;
|
|
1768
|
+
});
|
|
1769
|
+
__expose({ el });
|
|
1770
|
+
return (_ctx, _cache) => {
|
|
1771
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
1772
|
+
id: unref(context).listboxId,
|
|
1773
|
+
ref_key: "el",
|
|
1774
|
+
ref: el,
|
|
1775
|
+
role: "listbox",
|
|
1776
|
+
"aria-labelledby": unref(context).inputId
|
|
1777
|
+
}, rest.value, { class: classes.value }), [
|
|
1778
|
+
renderSlot(_ctx.$slots, "default")
|
|
1779
|
+
], 16, _hoisted_1$3);
|
|
1780
|
+
};
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
const _hoisted_1$2 = ["aria-labelledby"];
|
|
1784
|
+
const _hoisted_2$1 = ["id"];
|
|
1785
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1786
|
+
...{ name: "CommandPaletteGroup", inheritAttrs: false },
|
|
1787
|
+
__name: "CommandPaletteGroup",
|
|
1788
|
+
props: {
|
|
1789
|
+
label: {}
|
|
1790
|
+
},
|
|
1791
|
+
setup(__props, { expose: __expose }) {
|
|
1792
|
+
const props = __props;
|
|
1793
|
+
const attrs = useAttrs();
|
|
1794
|
+
const slots = useSlots();
|
|
1795
|
+
const el = useTemplateRef("el");
|
|
1796
|
+
const labelId = useId();
|
|
1797
|
+
const hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));
|
|
1798
|
+
__expose({ el });
|
|
1799
|
+
return (_ctx, _cache) => {
|
|
1800
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
1801
|
+
ref_key: "el",
|
|
1802
|
+
ref: el,
|
|
1803
|
+
role: "group",
|
|
1804
|
+
"aria-labelledby": hasLabel.value ? unref(labelId) : void 0
|
|
1805
|
+
}, unref(attrs)), [
|
|
1806
|
+
hasLabel.value ? (openBlock(), createElementBlock("div", {
|
|
1807
|
+
key: 0,
|
|
1808
|
+
id: unref(labelId),
|
|
1809
|
+
class: normalizeClass(unref(listboxGroupLabelVariants)())
|
|
1810
|
+
}, [
|
|
1811
|
+
renderSlot(_ctx.$slots, "label", {}, () => [
|
|
1812
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
1813
|
+
])
|
|
1814
|
+
], 10, _hoisted_2$1)) : createCommentVNode("", true),
|
|
1815
|
+
renderSlot(_ctx.$slots, "default")
|
|
1816
|
+
], 16, _hoisted_1$2);
|
|
1817
|
+
};
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
const _hoisted_1$1 = ["id", "aria-selected", "aria-disabled", "data-active"];
|
|
1821
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1822
|
+
...{ name: "CommandPaletteItem", inheritAttrs: false },
|
|
1823
|
+
__name: "CommandPaletteItem",
|
|
1824
|
+
props: {
|
|
1825
|
+
value: {},
|
|
1826
|
+
searchText: { default: void 0 },
|
|
1827
|
+
isDisabled: { type: Boolean, default: void 0 },
|
|
1828
|
+
closeOnSelect: { type: Boolean, default: true }
|
|
1829
|
+
},
|
|
1830
|
+
emits: ["select"],
|
|
1831
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1832
|
+
const props = __props;
|
|
1833
|
+
const emit = __emit;
|
|
1834
|
+
const attrs = useAttrs();
|
|
1835
|
+
const context = useCommandPaletteContext();
|
|
1836
|
+
const el = useTemplateRef("el");
|
|
1837
|
+
const id = useId();
|
|
1838
|
+
const resolvedSearch = computed(() => props.searchText ?? props.value);
|
|
1839
|
+
watch(
|
|
1840
|
+
[() => props.value, resolvedSearch, () => props.isDisabled, () => props.closeOnSelect],
|
|
1841
|
+
([value, searchText, isDisabled, closeOnSelect]) => {
|
|
1842
|
+
context.registerItem({
|
|
1843
|
+
id,
|
|
1844
|
+
value,
|
|
1845
|
+
searchText,
|
|
1846
|
+
disabled: isDisabled === true,
|
|
1847
|
+
select: () => emit("select"),
|
|
1848
|
+
closeOnSelect
|
|
1849
|
+
});
|
|
1850
|
+
},
|
|
1851
|
+
{ immediate: true, flush: "post" }
|
|
1852
|
+
);
|
|
1853
|
+
onScopeDispose(() => context.unregisterItem(id));
|
|
1854
|
+
const matches = computed(
|
|
1855
|
+
() => context.inputValue.value === "" || context.filter(resolvedSearch.value, context.inputValue.value)
|
|
1856
|
+
);
|
|
1857
|
+
const isActive = computed(() => context.activeId.value === id);
|
|
1858
|
+
const state = computed(
|
|
1859
|
+
() => props.isDisabled ? "disabled" : isActive.value ? "active" : "default"
|
|
1860
|
+
);
|
|
1861
|
+
function handleClick(event) {
|
|
1862
|
+
if (event.defaultPrevented || props.isDisabled) return;
|
|
1863
|
+
emit("select");
|
|
1864
|
+
if (props.closeOnSelect) context.setOpen(false);
|
|
1865
|
+
}
|
|
1866
|
+
function handlePointerEnter() {
|
|
1867
|
+
if (!props.isDisabled) context.setActiveId(id);
|
|
1868
|
+
}
|
|
1869
|
+
const classes = computed(
|
|
1870
|
+
() => cn(listboxItemVariants({ state: state.value }), attrs.class)
|
|
1871
|
+
);
|
|
1872
|
+
const rest = computed(() => {
|
|
1873
|
+
const { class: _class, ...others } = attrs;
|
|
1874
|
+
return others;
|
|
1875
|
+
});
|
|
1876
|
+
__expose({ el });
|
|
1877
|
+
return (_ctx, _cache) => {
|
|
1878
|
+
return matches.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1879
|
+
key: 0,
|
|
1880
|
+
id: unref(id),
|
|
1881
|
+
ref_key: "el",
|
|
1882
|
+
ref: el,
|
|
1883
|
+
role: "option",
|
|
1884
|
+
"aria-selected": isActive.value,
|
|
1885
|
+
"aria-disabled": props.isDisabled || void 0,
|
|
1886
|
+
"data-active": isActive.value ? "" : void 0
|
|
1887
|
+
}, rest.value, {
|
|
1888
|
+
class: classes.value,
|
|
1889
|
+
onClick: handleClick,
|
|
1890
|
+
onPointerenter: handlePointerEnter
|
|
1891
|
+
}), [
|
|
1892
|
+
renderSlot(_ctx.$slots, "default")
|
|
1893
|
+
], 16, _hoisted_1$1)) : createCommentVNode("", true);
|
|
1894
|
+
};
|
|
1895
|
+
}
|
|
1896
|
+
});
|
|
1897
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1898
|
+
...{ name: "CommandPaletteEmpty", inheritAttrs: false },
|
|
1899
|
+
__name: "CommandPaletteEmpty",
|
|
1900
|
+
setup(__props, { expose: __expose }) {
|
|
1901
|
+
const attrs = useAttrs();
|
|
1902
|
+
const el = useTemplateRef("el");
|
|
1903
|
+
const context = useCommandPaletteContext();
|
|
1904
|
+
const matchCount = computed(() => {
|
|
1905
|
+
const search = context.inputValue.value;
|
|
1906
|
+
return context.items.value.filter((i) => search === "" || context.filter(i.searchText, search)).length;
|
|
1907
|
+
});
|
|
1908
|
+
const classes = computed(() => cn(listboxEmptyVariants(), attrs.class));
|
|
1909
|
+
const rest = computed(() => {
|
|
1910
|
+
const { class: _class, ...others } = attrs;
|
|
1911
|
+
return others;
|
|
1912
|
+
});
|
|
1913
|
+
__expose({ el });
|
|
1914
|
+
return (_ctx, _cache) => {
|
|
1915
|
+
return matchCount.value === 0 ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1916
|
+
key: 0,
|
|
1917
|
+
ref_key: "el",
|
|
1918
|
+
ref: el,
|
|
1919
|
+
role: "status"
|
|
1920
|
+
}, rest.value, { class: classes.value }), [
|
|
1921
|
+
renderSlot(_ctx.$slots, "default")
|
|
1922
|
+
], 16)) : createCommentVNode("", true);
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
});
|
|
1926
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1927
|
+
...{ name: "CommandPaletteSeparator", inheritAttrs: false },
|
|
1928
|
+
__name: "CommandPaletteSeparator",
|
|
1929
|
+
setup(__props, { expose: __expose }) {
|
|
1930
|
+
const attrs = useAttrs();
|
|
1931
|
+
const el = useTemplateRef("el");
|
|
1932
|
+
const classes = computed(() => cn(listboxSeparatorVariants(), attrs.class));
|
|
1933
|
+
const rest = computed(() => {
|
|
1934
|
+
const { class: _class, ...others } = attrs;
|
|
1935
|
+
return others;
|
|
1936
|
+
});
|
|
1937
|
+
__expose({ el });
|
|
1938
|
+
return (_ctx, _cache) => {
|
|
1939
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
1940
|
+
ref_key: "el",
|
|
1941
|
+
ref: el,
|
|
1942
|
+
role: "separator"
|
|
1943
|
+
}, rest.value, { class: classes.value }), null, 16);
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
});
|
|
1947
|
+
function useScrollSpy(ids, options = {}) {
|
|
1948
|
+
const activeId = shallowRef(null);
|
|
1949
|
+
watch(
|
|
1950
|
+
[
|
|
1951
|
+
() => toValue(ids),
|
|
1952
|
+
() => toValue(options.rootMargin) ?? "0px 0px -60% 0px",
|
|
1953
|
+
() => toValue(options.threshold) ?? 0,
|
|
1954
|
+
() => toValue(options.root) ?? null
|
|
1955
|
+
],
|
|
1956
|
+
([idList, rootMargin, threshold, root], _previous, onCleanup) => {
|
|
1957
|
+
if (typeof document === "undefined" || typeof IntersectionObserver === "undefined" || idList.length === 0) {
|
|
1958
|
+
return;
|
|
1959
|
+
}
|
|
1960
|
+
const seen = /* @__PURE__ */ new Map();
|
|
1961
|
+
const elements = idList.map((id) => document.getElementById(id)).filter((el) => el != null);
|
|
1962
|
+
const observer = new IntersectionObserver(
|
|
1963
|
+
(entries) => {
|
|
1964
|
+
for (const e of entries) {
|
|
1965
|
+
if (e.isIntersecting) {
|
|
1966
|
+
seen.set(e.target.id, e.boundingClientRect.top);
|
|
1967
|
+
} else {
|
|
1968
|
+
seen.delete(e.target.id);
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
if (seen.size === 0) return;
|
|
1972
|
+
let bestId = null;
|
|
1973
|
+
let bestTop = Number.POSITIVE_INFINITY;
|
|
1974
|
+
for (const [id, top] of seen) {
|
|
1975
|
+
if (top < bestTop) {
|
|
1976
|
+
bestTop = top;
|
|
1977
|
+
bestId = id;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
activeId.value = bestId;
|
|
1981
|
+
},
|
|
1982
|
+
{ rootMargin, threshold, root }
|
|
1983
|
+
);
|
|
1984
|
+
for (const el of elements) observer.observe(el);
|
|
1985
|
+
onCleanup(() => observer.disconnect());
|
|
1986
|
+
},
|
|
1987
|
+
{ immediate: true, flush: "post" }
|
|
1988
|
+
);
|
|
1989
|
+
return activeId;
|
|
1990
|
+
}
|
|
1991
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1992
|
+
...{ name: "ScrollSpy" },
|
|
1993
|
+
__name: "ScrollSpy",
|
|
1994
|
+
props: {
|
|
1995
|
+
ids: {},
|
|
1996
|
+
rootMargin: {},
|
|
1997
|
+
threshold: {},
|
|
1998
|
+
root: {}
|
|
1999
|
+
},
|
|
2000
|
+
emits: ["active-change"],
|
|
2001
|
+
setup(__props, { emit: __emit }) {
|
|
2002
|
+
const props = __props;
|
|
2003
|
+
const emit = __emit;
|
|
2004
|
+
const activeId = useScrollSpy(
|
|
2005
|
+
() => props.ids,
|
|
2006
|
+
{
|
|
2007
|
+
rootMargin: () => props.rootMargin,
|
|
2008
|
+
threshold: () => props.threshold,
|
|
2009
|
+
root: () => props.root
|
|
2010
|
+
}
|
|
2011
|
+
);
|
|
2012
|
+
watch(activeId, (id) => emit("active-change", id), { immediate: true, flush: "post" });
|
|
2013
|
+
return (_ctx, _cache) => {
|
|
2014
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps({ activeId: unref(activeId) })));
|
|
2015
|
+
};
|
|
2016
|
+
}
|
|
2017
|
+
});
|
|
2018
|
+
const _hoisted_1 = { class: "space-y-1 text-sm" };
|
|
2019
|
+
const _hoisted_2 = ["href", "aria-current"];
|
|
2020
|
+
function depthFromTagName(tag) {
|
|
2021
|
+
const match = /^H([1-6])$/i.exec(tag);
|
|
2022
|
+
return match ? Number(match[1]) - 2 : 0;
|
|
2023
|
+
}
|
|
2024
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2025
|
+
...{ name: "TableOfContents", inheritAttrs: false },
|
|
2026
|
+
__name: "TableOfContents",
|
|
2027
|
+
props: {
|
|
2028
|
+
items: {},
|
|
2029
|
+
source: {},
|
|
2030
|
+
headingSelector: { default: "h2, h3" },
|
|
2031
|
+
activeId: { default: void 0 },
|
|
2032
|
+
isSticky: { type: Boolean }
|
|
2033
|
+
},
|
|
2034
|
+
setup(__props, { expose: __expose }) {
|
|
2035
|
+
const props = __props;
|
|
2036
|
+
const attrs = useAttrs();
|
|
2037
|
+
const el = useTemplateRef("el");
|
|
2038
|
+
const extracted = shallowRef([]);
|
|
2039
|
+
watch(
|
|
2040
|
+
[() => props.items, () => props.source, () => props.headingSelector],
|
|
2041
|
+
([itemsProp, source, headingSelector]) => {
|
|
2042
|
+
if (itemsProp || !source) return;
|
|
2043
|
+
const headings = Array.from(source.querySelectorAll(headingSelector));
|
|
2044
|
+
extracted.value = headings.filter((h) => h.id).map((h) => ({
|
|
2045
|
+
id: h.id,
|
|
2046
|
+
label: h.textContent ?? "",
|
|
2047
|
+
depth: Math.max(0, depthFromTagName(h.tagName))
|
|
2048
|
+
}));
|
|
2049
|
+
},
|
|
2050
|
+
{ immediate: true, flush: "post" }
|
|
2051
|
+
);
|
|
2052
|
+
const items = computed(() => props.items ?? extracted.value);
|
|
2053
|
+
const ids = computed(() => items.value.map((i) => i.id));
|
|
2054
|
+
const spyId = useScrollSpy(() => ids.value);
|
|
2055
|
+
const activeId = computed(() => props.activeId !== void 0 ? props.activeId : spyId.value);
|
|
2056
|
+
const classes = computed(
|
|
2057
|
+
() => cn(props.isSticky && "sticky top-4 self-start", attrs.class)
|
|
2058
|
+
);
|
|
2059
|
+
const rest = computed(() => {
|
|
2060
|
+
const { class: _class, ...others } = attrs;
|
|
2061
|
+
return others;
|
|
2062
|
+
});
|
|
2063
|
+
__expose({ el });
|
|
2064
|
+
return (_ctx, _cache) => {
|
|
2065
|
+
return items.value.length > 0 ? (openBlock(), createElementBlock("nav", mergeProps({
|
|
2066
|
+
key: 0,
|
|
2067
|
+
ref_key: "el",
|
|
2068
|
+
ref: el,
|
|
2069
|
+
"aria-label": "Table of contents"
|
|
2070
|
+
}, rest.value, { class: classes.value }), [
|
|
2071
|
+
createElementVNode("ul", _hoisted_1, [
|
|
2072
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, i) => {
|
|
2073
|
+
return openBlock(), createElementBlock("li", {
|
|
2074
|
+
key: item.id,
|
|
2075
|
+
style: normalizeStyle({ paddingLeft: `${(item.depth ?? 0) * 12}px` })
|
|
2076
|
+
}, [
|
|
2077
|
+
createElementVNode("a", {
|
|
2078
|
+
href: `#${item.id}`,
|
|
2079
|
+
"aria-current": item.id === activeId.value ? "location" : void 0,
|
|
2080
|
+
class: normalizeClass(
|
|
2081
|
+
unref(cn)(
|
|
2082
|
+
"block rounded-sm px-2 py-1 transition-colors",
|
|
2083
|
+
item.id === activeId.value ? "bg-muted font-medium text-foreground" : "text-muted-foreground hover:bg-muted/40 hover:text-foreground"
|
|
2084
|
+
)
|
|
2085
|
+
)
|
|
2086
|
+
}, [
|
|
2087
|
+
renderSlot(_ctx.$slots, "label", {
|
|
2088
|
+
item,
|
|
2089
|
+
index: i
|
|
2090
|
+
}, () => [
|
|
2091
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
2092
|
+
])
|
|
2093
|
+
], 10, _hoisted_2)
|
|
2094
|
+
], 4);
|
|
2095
|
+
}), 128))
|
|
2096
|
+
])
|
|
2097
|
+
], 16)) : createCommentVNode("", true);
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
});
|
|
2101
|
+
export {
|
|
2102
|
+
useNavigationMenuContext as $,
|
|
2103
|
+
_sfc_main$d as A,
|
|
2104
|
+
_sfc_main$a as B,
|
|
2105
|
+
_sfc_main$e as C,
|
|
2106
|
+
_sfc_main$c as D,
|
|
2107
|
+
_sfc_main$v as E,
|
|
2108
|
+
_sfc_main$1 as F,
|
|
2109
|
+
_sfc_main as G,
|
|
2110
|
+
commandPaletteContextKey as H,
|
|
2111
|
+
contextMenuContextKey as I,
|
|
2112
|
+
defaultFilter as J,
|
|
2113
|
+
dropdownMenuContextKey as K,
|
|
2114
|
+
menuItemVariants as L,
|
|
2115
|
+
MenuItemState as M,
|
|
2116
|
+
menuLabelVariants as N,
|
|
2117
|
+
menuSeparatorVariants as O,
|
|
2118
|
+
menuVariants as P,
|
|
2119
|
+
menubarContextKey as Q,
|
|
2120
|
+
menubarMenuContextKey as R,
|
|
2121
|
+
navigationMenuContextKey as S,
|
|
2122
|
+
navigationMenuItemContextKey as T,
|
|
2123
|
+
useCommandPaletteContext as U,
|
|
2124
|
+
useContextMenuContext as V,
|
|
2125
|
+
useDropdownMenuContext as W,
|
|
2126
|
+
useMenuContext as X,
|
|
2127
|
+
useMenubarContext as Y,
|
|
2128
|
+
useMenubarMenuContext as Z,
|
|
2129
|
+
_sfc_main$w as _,
|
|
2130
|
+
_sfc_main$9 as a,
|
|
2131
|
+
useNavigationMenuItemContext as a0,
|
|
2132
|
+
useScrollSpy as a1,
|
|
2133
|
+
_sfc_main$8 as b,
|
|
2134
|
+
_sfc_main$3 as c,
|
|
2135
|
+
_sfc_main$5 as d,
|
|
2136
|
+
_sfc_main$7 as e,
|
|
2137
|
+
_sfc_main$4 as f,
|
|
2138
|
+
_sfc_main$6 as g,
|
|
2139
|
+
_sfc_main$2 as h,
|
|
2140
|
+
_sfc_main$m as i,
|
|
2141
|
+
_sfc_main$k as j,
|
|
2142
|
+
_sfc_main$l as k,
|
|
2143
|
+
_sfc_main$p as l,
|
|
2144
|
+
_sfc_main$n as m,
|
|
2145
|
+
_sfc_main$o as n,
|
|
2146
|
+
_sfc_main$u as o,
|
|
2147
|
+
_sfc_main$s as p,
|
|
2148
|
+
_sfc_main$t as q,
|
|
2149
|
+
MenuKey as r,
|
|
2150
|
+
_sfc_main$r as s,
|
|
2151
|
+
_sfc_main$q as t,
|
|
2152
|
+
_sfc_main$j as u,
|
|
2153
|
+
_sfc_main$g as v,
|
|
2154
|
+
_sfc_main$i as w,
|
|
2155
|
+
_sfc_main$h as x,
|
|
2156
|
+
_sfc_main$f as y,
|
|
2157
|
+
_sfc_main$b as z
|
|
2158
|
+
};
|
|
2159
|
+
//# sourceMappingURL=TableOfContents.vue_vue_type_script_setup_true_lang-HVL4lg_f.js.map
|