@mkbabb/glass-ui 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CardFooter-CSGcJkqa.js → CardFooter-C390imy7.js} +3 -3
- package/dist/{CollapsibleContent-CVMOcYlV.js → CollapsibleContent-cauTbZEM.js} +1 -1
- package/dist/{CommandShortcut-DWT19a2Y.js → CommandShortcut-BiVyqipe.js} +7 -6
- package/dist/{ContextMenuSubContent-gAFxJ-qi.js → ContextMenuSubContent-DrWkXKQP.js} +4 -4
- package/dist/DataTable-FfkaAg2z.js +465 -0
- package/dist/DialogContent-IQ8_BRrC.js +100 -0
- package/dist/{DialogFooter-ClrNEOVU.js → DialogFooter-Er0wA3K6.js} +2 -2
- package/dist/{DiscoGlyph-C3JfMnRV.js → DiscoGlyph-BaZ8OawK.js} +1 -1
- package/dist/{GlyphFace-BRS8vUb7.js → GlyphFace-B_7vOmYn.js} +1 -1
- package/dist/HoverPopover-DTSYkJtw.js +96 -0
- package/dist/{IconTooltip-BkaA7tZ2.js → IconTooltip-BTyYn4mr.js} +1 -1
- package/dist/Input-CU9CNKmo.js +52 -0
- package/dist/{MetricBadge-DmAihkXd.js → MetricBadge-BlrdbOGN.js} +2 -2
- package/dist/{Notification-OqIpADml.js → Notification-DP_ApJLo.js} +3 -3
- package/dist/{NumberFieldContent-DTH9gb_N.js → NumberFieldContent-iOTQ5rGO.js} +9 -5
- package/dist/{PopoverContent-EiklFrna.js → PopoverContent-B8WtJECb.js} +1 -1
- package/dist/Progress-DjM86vfb.js +254 -0
- package/dist/{ScrollingText-BFd0i2zJ.js → ScrollingText-P9o_DuMn.js} +2 -2
- package/dist/{SelectScrollDownButton-Dth8-wXQ.js → SelectScrollDownButton-BGn3rjs9.js} +12 -11
- package/dist/TabsIndicator-DA0x9gPr.js +97 -0
- package/dist/{Toaster-Bjlunvq4.js → Toaster-DdhMKfus.js} +1 -1
- package/dist/{ToggleGroupItem-OesUouE7.js → ToggleGroupItem-gyXj998A.js} +37 -40
- package/dist/UnderlineTabs-Cq_AD03t.js +39 -0
- package/dist/animated-digit.js +3 -3
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +471 -320
- package/dist/badge.js +1 -1
- package/dist/{button-C0aHmBbt.js → button-Ckn3eDfB.js} +27 -22
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +6 -6
- package/dist/{check-dwgetki8.js → check-CdkxGxXJ.js} +1 -1
- package/dist/{chevron-down-DILQA1t6.js → chevron-down-pBY8sYfV.js} +1 -1
- package/dist/{chevron-right-fS7fal2t.js → chevron-right-BjeKC22V.js} +1 -1
- package/dist/{chevron-up-BtYjYQOS.js → chevron-up-DBeNHUm1.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-rkK4RMx2.js +33 -0
- package/dist/color.d.ts +1 -0
- package/dist/color.js +2 -0
- package/dist/command.js +1 -1
- package/dist/compile-DVgAxagk.js +106 -0
- package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +7 -7
- package/dist/components/custom/aurora/Aurora.vue.d.ts +3 -3
- package/dist/components/custom/aurora/composables/color.d.ts +42 -16
- package/dist/components/custom/aurora/composables/cursorModel.d.ts +45 -0
- package/dist/components/custom/aurora/composables/frameLoop.d.ts +30 -0
- package/dist/components/custom/aurora/composables/glSetup.d.ts +29 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +45 -35
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +67 -0
- package/dist/components/custom/aurora/composables/useAurora.d.ts +14 -1
- package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +1 -1
- package/dist/components/custom/aurora/constants/budget.d.ts +50 -0
- package/dist/components/custom/aurora/{presets.d.ts → constants/presets.d.ts} +3 -6
- package/dist/components/custom/aurora/constants/shaders/aurora.frag.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -0
- package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/index.d.ts +4 -3
- package/dist/components/custom/configurator/Configurator.vue.d.ts +26 -0
- package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +14 -7
- package/dist/components/custom/configurator/density.d.ts +3 -8
- package/dist/components/custom/configurator/index.d.ts +1 -1
- package/dist/components/custom/dock/DockBackgroundToggle.vue.d.ts +46 -0
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +15 -4
- package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +2 -2
- package/dist/components/custom/dock/GlassDock.vue.d.ts +34 -13
- package/dist/components/custom/dock/composables/dockContext.d.ts +4 -4
- package/dist/components/custom/dock/composables/dockLayerContext.d.ts +13 -6
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +32 -8
- package/dist/components/custom/dock/index.d.ts +1 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
- package/dist/components/custom/glyph-face/keys.d.ts +3 -29
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +48 -0
- package/dist/components/custom/goo-blob/composables/easing.d.ts +6 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +14 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +18 -0
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +13 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +42 -0
- package/dist/components/custom/goo-blob/index.d.ts +7 -0
- package/dist/components/custom/goo-blob/shaders/metaball.frag.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball.vert.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/oklch-perturb.glsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -0
- package/dist/components/custom/goo-blob/types.d.ts +77 -0
- package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +48 -9
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -2
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +2 -2
- package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +13 -7
- package/dist/components/custom/search/FuzzySearch.vue.d.ts +1 -1
- package/dist/components/custom/search/SearchBar.vue.d.ts +1 -1
- package/dist/components/custom/sortable-list/SortableHandle.vue.d.ts +7 -1
- package/dist/components/custom/sortable-list/context.d.ts +2 -3
- package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +6 -3
- package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +7 -3
- package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +6 -3
- package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +39 -0
- package/dist/components/custom/timeline/ContinuousMarkers.vue.d.ts +49 -0
- package/dist/components/custom/timeline/ContinuousRail.vue.d.ts +26 -0
- package/dist/components/custom/timeline/ContinuousTimeline.vue.d.ts +4 -4
- package/dist/components/custom/typewriter/TypewriterText.vue.d.ts +2 -2
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +45 -0
- package/dist/components/custom/watercolor-dot/index.d.ts +3 -0
- package/dist/components/custom/watercolor-dot/prng.d.ts +5 -0
- package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +24 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
- package/dist/components/ui/avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/ui/avatar/AvatarImage.vue.d.ts +5 -1
- package/dist/components/ui/avatar/index.d.ts +1 -1
- package/dist/components/ui/badge/index.d.ts +2 -2
- package/dist/components/ui/button/Button.vue.d.ts +3 -1
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/combobox/Combobox.vue.d.ts +2 -2
- package/dist/components/ui/combobox/ComboboxInput.vue.d.ts +2 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -3
- package/dist/components/ui/command/CommandInput.vue.d.ts +2 -1
- package/dist/components/ui/data-table/DataTable.vue.d.ts +5 -4
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +4 -4
- package/dist/components/ui/input/Input.vue.d.ts +19 -1
- package/dist/components/ui/multi-select/MultiSelect.vue.d.ts +8 -4
- package/dist/components/ui/progress/Progress.vue.d.ts +26 -88
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -0
- package/dist/components/ui/progress/ProgressGradient.vue.d.ts +25 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +36 -0
- package/dist/components/ui/progress/index.d.ts +5 -2
- package/dist/components/ui/progress/useProgressGeometry.d.ts +60 -0
- package/dist/components/ui/select/Select.vue.d.ts +2 -2
- package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +3 -0
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/slider/index.d.ts +12 -11
- package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/ui/textarea/Textarea.vue.d.ts +5 -1
- package/dist/components/ui/toast/Toast.vue.d.ts +4 -4
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +2 -3
- package/dist/composables/color/index.d.ts +49 -0
- package/dist/composables/context/createContext.d.ts +56 -0
- package/dist/composables/context/index.d.ts +1 -0
- package/dist/composables/dark/darkModeSyncScript.d.ts +23 -0
- package/dist/composables/dark/index.d.ts +3 -0
- package/dist/composables/dark/useGlobalDark.d.ts +19 -2
- package/dist/composables/dom/index.d.ts +1 -3
- package/dist/composables/dom/useClipboard.d.ts +35 -12
- package/dist/composables/dom/useDocumentVisibility.d.ts +20 -0
- package/dist/composables/dom/useTextHighlight.d.ts +40 -0
- package/dist/composables/glass/webgl/compile.d.ts +15 -0
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +3 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +55 -0
- package/dist/composables/motion/core/index.d.ts +2 -1
- package/dist/composables/motion/index.d.ts +1 -1
- package/dist/composables/motion/useCountup.d.ts +29 -0
- package/dist/composables/motion/usePrioritizedTask.d.ts +41 -0
- package/dist/composables/motion/vReveal.d.ts +2 -0
- package/dist/composables/sidebar/useSidebarState.d.ts +2 -2
- package/dist/composables/sortable/dragController.d.ts +44 -0
- package/dist/composables/sortable/dropResolver.d.ts +34 -0
- package/dist/composables/sortable/ghostRenderer.d.ts +44 -0
- package/dist/composables/sortable/index.d.ts +1 -1
- package/dist/composables/sortable/touchGate.d.ts +26 -0
- package/dist/composables/sortable/transitionTiming.d.ts +50 -0
- package/dist/composables/sortable/types.d.ts +133 -0
- package/dist/composables/sortable/useSortable.d.ts +25 -140
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +5 -5
- package/dist/createContext-DBMGRlx4.js +25 -0
- package/dist/dark.d.ts +2 -1
- package/dist/dark.js +9 -2
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +410 -254
- package/dist/dockContext-spUj_-E5.js +9 -0
- package/dist/dom.js +6 -5
- package/dist/{dropdown-menu-BvRUamNs.js → dropdown-menu-EFjl5iKo.js} +4 -4
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +28 -22
- package/dist/fonts/README.md +21 -0
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/forms.js +70 -61
- package/dist/glass-carousel.js +59 -52
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +159 -254
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.d.ts +1 -0
- package/dist/goo-blob.js +538 -0
- package/dist/header-ribbon.js +3 -3
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/keys-BFoma9vm.js +9 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +57 -39
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-LsCJ_eNt.js → minimize-2-BP27-qBY.js} +1 -1
- package/dist/motion-core.js +154 -135
- package/dist/motion.js +63 -15
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-a-D93K1S.js → presets-1OhFpaIC.js} +5 -5
- package/dist/prng-Bz_1Tydc.js +15 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +38 -32
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-DBAiUABx.js → search-DBG8qaRs.js} +1 -1
- package/dist/search.js +153 -149
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-CukNDezz.js → sheet-CQYYrkr9.js} +3 -3
- package/dist/sheet.js +1 -1
- package/dist/{slider-DJvHkTRe.js → slider-BOh8ycfZ.js} +8 -12
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +37 -39
- package/dist/stacked-icons.js +2 -2
- package/dist/styles/animations.css +1 -1
- package/dist/styles/cards.css +1 -1
- package/dist/styles/components.css +45 -0
- package/dist/styles/dock-controls.css +486 -0
- package/dist/styles/dock.css +325 -431
- package/dist/styles/fonts.css +25 -0
- package/dist/styles/glass-specular-track.css +154 -0
- package/dist/styles/glass.css +74 -2
- package/dist/styles/index.css +25 -2
- package/dist/styles/instrument-chassis.css +11 -4
- package/dist/styles/theme.css +73 -21
- package/dist/styles/tokens.css +282 -140
- package/dist/styles/typography.css +14 -8
- package/dist/styles/utilities.css +92 -8
- package/dist/styles/view-transition.css +10 -4
- package/dist/switch.js +1 -1
- package/dist/tabs.js +148 -106
- package/dist/timeline.js +220 -159
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-DKQYVB7s.js → useAnimatedNumber-BF6r64lA.js} +1 -1
- package/dist/useClipboard-D8vFyRCa.js +97 -0
- package/dist/useConfiguratorState-DUtC1jxr.js +276 -0
- package/dist/useGlobalDark-CWiaCoEw.js +34 -0
- package/dist/useIntersectionPause-DAdVPVp4.js +53 -0
- package/dist/useSortable-DnyGXKKY.js +246 -0
- package/dist/useTextHighlight-Dmtofpk2.js +72 -0
- package/dist/{useTouchGate-D9Zvrzyc.js → useTouchGate-CS5Csc2h.js} +1 -1
- package/dist/{useViewTransition-DYIK6Gzb.js → useViewTransition-D4ssvnXZ.js} +5 -3
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/platformSupport.d.ts +8 -0
- package/dist/utils/prng.d.ts +4 -0
- package/dist/vReveal-u2wSG2El.js +35 -0
- package/dist/watercolor-dot.d.ts +1 -0
- package/dist/watercolor-dot.js +129 -0
- package/dist/{x-q7pJa83X.js → x-C4pz9nbD.js} +1 -1
- package/package.json +110 -16
- package/src/fonts/README.md +21 -0
- package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/src/styles/animations.css +1 -1
- package/src/styles/cards.css +1 -1
- package/src/styles/dock-controls.css +486 -0
- package/src/styles/dock.css +325 -431
- package/src/styles/fonts.css +25 -0
- package/src/styles/glass-specular-track.css +154 -0
- package/src/styles/glass.css +74 -2
- package/src/styles/index.css +21 -2
- package/src/styles/instrument-chassis.css +11 -4
- package/src/styles/theme.css +73 -21
- package/src/styles/tokens.css +282 -140
- package/src/styles/typography.css +14 -8
- package/src/styles/utilities.css +92 -8
- package/src/styles/view-transition.css +10 -4
- package/dist/DataTable-R8-Zidms.js +0 -460
- package/dist/DialogContent-2fALDSvc.js +0 -93
- package/dist/HoverPopover-CWFCfLx3.js +0 -96
- package/dist/Input-DDpFn568.js +0 -30
- package/dist/Progress-FApA9fm_.js +0 -126
- package/dist/UnderlineTabs-DAWMLmJG.js +0 -37
- package/dist/components/custom/aurora/shaders/aurora.frag.d.ts +0 -1
- package/dist/composables/dom/useBreakpoint.d.ts +0 -38
- package/dist/composables/dom/useIdleReady.d.ts +0 -63
- package/dist/composables/dom/useViewportReady.d.ts +0 -87
- package/dist/composables/glass/webgl/frostShader.d.ts +0 -27
- package/dist/composables/motion/useAnimatedNumberMap.d.ts +0 -29
- package/dist/composables/motion/useStagger.d.ts +0 -50
- package/dist/dockContext-D5NZCWJs.js +0 -16
- package/dist/keys-CaTQS-vx.js +0 -11
- package/dist/useConfiguratorState-CtRBE0m_.js +0 -268
- package/dist/useGlobalDark-B0WvLJE3.js +0 -24
- package/dist/useIdleReady-Cmkhm03v.js +0 -162
- package/dist/useIntersectionPause-IY2CwPQb.js +0 -39
- package/dist/useSortable-Cq2Y1JLO.js +0 -175
- /package/dist/{ContextMenuContent-otjFIu8v.js → ContextMenuContent-De01_83g.js} +0 -0
- /package/dist/{HoverCardContent-DaGrgJBO.js → HoverCardContent-ICfIMZX1.js} +0 -0
- /package/dist/{InstrumentChassis-CnHTMxds.js → InstrumentChassis-DaHIZCqy.js} +0 -0
- /package/dist/{InstrumentRail-C6dEbi8E.js → InstrumentRail-B0qqLFN0.js} +0 -0
- /package/dist/{Label-DJty89bp.js → Label-CZk-3nTc.js} +0 -0
- /package/dist/{ModalOverlay-iWiAgbYH.js → ModalOverlay-B_CBtqcE.js} +0 -0
- /package/dist/{PaperBackdrop-CeZ-w0R0.js → PaperBackdrop-D_YZW47j.js} +0 -0
- /package/dist/{SelectGroup-DdR4tdDY.js → SelectGroup-CMdoCjRE.js} +0 -0
- /package/dist/{SelectSeparator-CXm_hlqA.js → SelectSeparator-CaJnPF3_.js} +0 -0
- /package/dist/{Separator-D8AUMhxY.js → Separator-C2XtAXRp.js} +0 -0
- /package/dist/{Switch-Cr1t_F_U.js → Switch-x8n6husW.js} +0 -0
- /package/dist/{TooltipProvider-DE78vbEP.js → TooltipProvider-D-JrSqDu.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
- /package/dist/{badge-x46my_Fo.js → badge-Cl6JZ1B7.js} +0 -0
- /package/dist/components/custom/aurora/{renderMode.d.ts → constants/renderMode.d.ts} +0 -0
- /package/dist/components/custom/aurora/{shaders → constants/shaders}/aurora.vert.d.ts +0 -0
- /package/dist/{constants-DwBwnG8N.js → constants-DsCdlK9I.js} +0 -0
- /package/dist/{createLucideIcon-Bn9a1b70.js → createLucideIcon-DuDoe_ra.js} +0 -0
- /package/dist/{menuItemVariants-BsbGNq9C.js → menuItemVariants-C2QlXqT3.js} +0 -0
- /package/dist/{useGlassRenderer-Ds-nmrGz.js → useGlassRenderer-Dn3WpfG-.js} +0 -0
- /package/dist/{useInterval-DVgGUf_y.js → useInterval-CHVYFpXV.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Dpw_RUcB.js → useKeyboardShortcuts-BQfnAHHW.js} +0 -0
- /package/dist/{useResizeObserver-Cg9npuM3.js → useResizeObserver-DX-STszm.js} +0 -0
- /package/dist/{useSpringMount-Cfk1XK1R.js → useSpringMount-CnizvZGm.js} +0 -0
- /package/dist/{useTimer-NAaj9zNq.js → useTimer-DGgoxTXL.js} +0 -0
- /package/dist/{useUserInvalidAria-DVu1eTXG.js → useUserInvalidAria-DmvZ_6Dx.js} +0 -0
package/dist/labeled-field.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-
|
|
3
|
-
import { t as o } from "./SelectGroup-
|
|
4
|
-
import { n as s } from "./slider-
|
|
5
|
-
import { t as c } from "./Switch-
|
|
6
|
-
import { t as l } from "./
|
|
7
|
-
import { t as u } from "./
|
|
2
|
+
import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-BGn3rjs9.js";
|
|
3
|
+
import { t as o } from "./SelectGroup-CMdoCjRE.js";
|
|
4
|
+
import { n as s } from "./slider-BOh8ycfZ.js";
|
|
5
|
+
import { t as c } from "./Switch-x8n6husW.js";
|
|
6
|
+
import { t as l } from "./Input-CU9CNKmo.js";
|
|
7
|
+
import { t as u } from "./IconTooltip-BTyYn4mr.js";
|
|
8
8
|
import { Fragment as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, normalizeClass as b, openBlock as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useId as E, withCtx as D } from "vue";
|
|
9
9
|
//#region src/components/custom/labeled-field/LabeledField.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var O = { class: "labeled-field" }, k = {
|
|
10
|
+
var O = { class: "labeled-field" }, k = ["id", "for"], A = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "text-destructive",
|
|
13
13
|
"aria-hidden": "true"
|
|
14
|
-
},
|
|
14
|
+
}, j = ["id", "for"], M = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "text-destructive",
|
|
17
17
|
"aria-hidden": "true"
|
|
18
|
-
},
|
|
18
|
+
}, N = ["id"], P = /* @__PURE__ */ y({
|
|
19
19
|
__name: "LabeledField",
|
|
20
20
|
props: {
|
|
21
21
|
label: {},
|
|
@@ -30,28 +30,38 @@ var O = { class: "labeled-field" }, k = {
|
|
|
30
30
|
required: { type: Boolean }
|
|
31
31
|
},
|
|
32
32
|
setup(t) {
|
|
33
|
-
let n = E();
|
|
34
|
-
return (
|
|
35
|
-
t.tooltip ? (x(), f(T(
|
|
33
|
+
let n = E(), r = E(), i = E();
|
|
34
|
+
return (a, o) => (x(), m("div", O, [
|
|
35
|
+
t.tooltip ? (x(), f(T(u), {
|
|
36
36
|
key: 0,
|
|
37
37
|
text: t.tooltip
|
|
38
38
|
}, {
|
|
39
|
-
default: D(() => [h("label", {
|
|
39
|
+
default: D(() => [h("label", {
|
|
40
|
+
id: T(i),
|
|
41
|
+
for: T(r),
|
|
42
|
+
class: b(T(e)("labeled-field-label", t.labelClass))
|
|
43
|
+
}, [_(w(t.label), 1), t.required ? (x(), m("span", A, " *")) : p("", !0)], 10, k)]),
|
|
40
44
|
_: 1
|
|
41
45
|
}, 8, ["text"])) : (x(), m("label", {
|
|
42
46
|
key: 1,
|
|
47
|
+
id: T(i),
|
|
48
|
+
for: T(r),
|
|
43
49
|
class: b(T(e)("labeled-field-label", t.labelClass))
|
|
44
|
-
}, [_(w(t.label), 1), t.required ? (x(), m("span",
|
|
45
|
-
C(
|
|
46
|
-
|
|
50
|
+
}, [_(w(t.label), 1), t.required ? (x(), m("span", M, " *")) : p("", !0)], 10, j)),
|
|
51
|
+
C(a.$slots, "default", {
|
|
52
|
+
errorId: T(n),
|
|
53
|
+
controlId: T(r),
|
|
54
|
+
labelledBy: T(i)
|
|
55
|
+
}),
|
|
56
|
+
a.$slots.error ? (x(), m("div", {
|
|
47
57
|
key: 2,
|
|
48
58
|
id: T(n),
|
|
49
59
|
class: "labeled-field-error",
|
|
50
60
|
"aria-live": "polite"
|
|
51
|
-
}, [C(
|
|
61
|
+
}, [C(a.$slots, "error")], 8, N)) : p("", !0)
|
|
52
62
|
]));
|
|
53
63
|
}
|
|
54
|
-
}),
|
|
64
|
+
}), F = /* @__PURE__ */ y({
|
|
55
65
|
__name: "LabeledInput",
|
|
56
66
|
props: {
|
|
57
67
|
modelValue: {},
|
|
@@ -65,13 +75,14 @@ var O = { class: "labeled-field" }, k = {
|
|
|
65
75
|
emits: ["update:modelValue"],
|
|
66
76
|
setup(e, { emit: t }) {
|
|
67
77
|
let n = t;
|
|
68
|
-
return (t, r) => (x(), f(
|
|
78
|
+
return (t, r) => (x(), f(P, {
|
|
69
79
|
label: e.label,
|
|
70
80
|
tooltip: e.tooltip,
|
|
71
81
|
"label-class": e.labelClass,
|
|
72
82
|
required: e.required
|
|
73
83
|
}, g({
|
|
74
|
-
default: D(({ errorId: i }) => [v(T(
|
|
84
|
+
default: D(({ errorId: i, controlId: a }) => [v(T(l), {
|
|
85
|
+
id: a,
|
|
75
86
|
type: e.type ?? "string",
|
|
76
87
|
class: b(e.inputClass ?? "fira-code"),
|
|
77
88
|
"model-value": e.modelValue,
|
|
@@ -79,6 +90,7 @@ var O = { class: "labeled-field" }, k = {
|
|
|
79
90
|
"aria-errormessage": t.$slots.error ? i : void 0,
|
|
80
91
|
onChange: r[0] ||= (e) => n("update:modelValue", e.target.value)
|
|
81
92
|
}, null, 8, [
|
|
93
|
+
"id",
|
|
82
94
|
"type",
|
|
83
95
|
"class",
|
|
84
96
|
"model-value",
|
|
@@ -97,10 +109,10 @@ var O = { class: "labeled-field" }, k = {
|
|
|
97
109
|
"required"
|
|
98
110
|
]));
|
|
99
111
|
}
|
|
100
|
-
}),
|
|
112
|
+
}), I = {
|
|
101
113
|
key: 0,
|
|
102
114
|
class: "ml-auto pl-2 text-micro text-muted-foreground whitespace-nowrap"
|
|
103
|
-
},
|
|
115
|
+
}, L = /* @__PURE__ */ y({
|
|
104
116
|
__name: "LabeledSelect",
|
|
105
117
|
props: {
|
|
106
118
|
modelValue: {},
|
|
@@ -115,28 +127,31 @@ var O = { class: "labeled-field" }, k = {
|
|
|
115
127
|
emits: ["update:modelValue", "update:open"],
|
|
116
128
|
setup(e, { emit: s }) {
|
|
117
129
|
let c = s;
|
|
118
|
-
return (s, l) => (x(), f(
|
|
130
|
+
return (s, l) => (x(), f(P, {
|
|
119
131
|
label: e.label,
|
|
120
132
|
tooltip: e.tooltip,
|
|
121
133
|
"label-class": e.labelClass,
|
|
122
134
|
required: e.required
|
|
123
135
|
}, {
|
|
124
|
-
default: D(() => [v(T(a), {
|
|
136
|
+
default: D(({ controlId: s }) => [v(T(a), {
|
|
125
137
|
"model-value": e.modelValue,
|
|
126
138
|
open: e.isOpen,
|
|
127
139
|
"onUpdate:open": l[0] ||= (e) => c("update:open", e),
|
|
128
140
|
"onUpdate:modelValue": l[1] ||= (e) => c("update:modelValue", e)
|
|
129
141
|
}, {
|
|
130
|
-
default: D(() => [v(T(t), {
|
|
142
|
+
default: D(() => [v(T(t), {
|
|
143
|
+
id: s,
|
|
144
|
+
class: "fira-code"
|
|
145
|
+
}, {
|
|
131
146
|
default: D(() => [v(T(r))]),
|
|
132
147
|
_: 1
|
|
133
|
-
}), v(T(n), null, {
|
|
148
|
+
}, 8, ["id"]), v(T(n), null, {
|
|
134
149
|
default: D(() => [v(T(o), { class: "fira-code" }, {
|
|
135
150
|
default: D(() => [(x(!0), m(d, null, S(e.items, (t) => (x(), f(T(i), {
|
|
136
151
|
key: t,
|
|
137
152
|
value: t
|
|
138
153
|
}, {
|
|
139
|
-
description: D(() => [e.descriptions?.[t] ? (x(), m("span",
|
|
154
|
+
description: D(() => [e.descriptions?.[t] ? (x(), m("span", I, w(e.descriptions[t]), 1)) : p("", !0)]),
|
|
140
155
|
default: D(() => [_(w(t) + " ", 1)]),
|
|
141
156
|
_: 2
|
|
142
157
|
}, 1032, ["value"]))), 128))]),
|
|
@@ -144,8 +159,8 @@ var O = { class: "labeled-field" }, k = {
|
|
|
144
159
|
})]),
|
|
145
160
|
_: 1
|
|
146
161
|
})]),
|
|
147
|
-
_:
|
|
148
|
-
},
|
|
162
|
+
_: 2
|
|
163
|
+
}, 1032, ["model-value", "open"])]),
|
|
149
164
|
_: 1
|
|
150
165
|
}, 8, [
|
|
151
166
|
"label",
|
|
@@ -154,7 +169,7 @@ var O = { class: "labeled-field" }, k = {
|
|
|
154
169
|
"required"
|
|
155
170
|
]));
|
|
156
171
|
}
|
|
157
|
-
}),
|
|
172
|
+
}), R = /* @__PURE__ */ y({
|
|
158
173
|
__name: "LabeledSlider",
|
|
159
174
|
props: {
|
|
160
175
|
modelValue: {},
|
|
@@ -169,13 +184,14 @@ var O = { class: "labeled-field" }, k = {
|
|
|
169
184
|
emits: ["update:modelValue"],
|
|
170
185
|
setup(e, { emit: t }) {
|
|
171
186
|
let n = t;
|
|
172
|
-
return (t, r) => (x(), f(
|
|
187
|
+
return (t, r) => (x(), f(P, {
|
|
173
188
|
label: e.label,
|
|
174
189
|
tooltip: e.tooltip,
|
|
175
190
|
"label-class": e.labelClass,
|
|
176
191
|
required: e.required
|
|
177
192
|
}, {
|
|
178
|
-
default: D(() => [v(T(s), {
|
|
193
|
+
default: D(({ labelledBy: t }) => [v(T(s), {
|
|
194
|
+
"aria-labelledby": t,
|
|
179
195
|
class: "py-2",
|
|
180
196
|
min: e.min,
|
|
181
197
|
max: e.max,
|
|
@@ -185,6 +201,7 @@ var O = { class: "labeled-field" }, k = {
|
|
|
185
201
|
e && n("update:modelValue", e[0]);
|
|
186
202
|
}
|
|
187
203
|
}, null, 8, [
|
|
204
|
+
"aria-labelledby",
|
|
188
205
|
"min",
|
|
189
206
|
"max",
|
|
190
207
|
"step",
|
|
@@ -198,7 +215,7 @@ var O = { class: "labeled-field" }, k = {
|
|
|
198
215
|
"required"
|
|
199
216
|
]));
|
|
200
217
|
}
|
|
201
|
-
}),
|
|
218
|
+
}), z = { class: "flex items-center" }, B = /* @__PURE__ */ y({
|
|
202
219
|
__name: "LabeledSwitch",
|
|
203
220
|
props: {
|
|
204
221
|
checked: { type: Boolean },
|
|
@@ -210,16 +227,17 @@ var O = { class: "labeled-field" }, k = {
|
|
|
210
227
|
emits: ["update:checked"],
|
|
211
228
|
setup(e, { emit: t }) {
|
|
212
229
|
let n = t;
|
|
213
|
-
return (t, r) => (x(), f(
|
|
230
|
+
return (t, r) => (x(), f(P, {
|
|
214
231
|
label: e.label,
|
|
215
232
|
tooltip: e.tooltip,
|
|
216
233
|
"label-class": e.labelClass,
|
|
217
234
|
required: e.required
|
|
218
235
|
}, {
|
|
219
|
-
default: D(() => [h("div",
|
|
220
|
-
|
|
221
|
-
"
|
|
222
|
-
|
|
236
|
+
default: D(({ controlId: t }) => [h("div", z, [v(T(c), {
|
|
237
|
+
id: t,
|
|
238
|
+
"model-value": e.checked,
|
|
239
|
+
"onUpdate:modelValue": r[0] ||= (e) => n("update:checked", e)
|
|
240
|
+
}, null, 8, ["id", "model-value"])])]),
|
|
223
241
|
_: 1
|
|
224
242
|
}, 8, [
|
|
225
243
|
"label",
|
|
@@ -230,4 +248,4 @@ var O = { class: "labeled-field" }, k = {
|
|
|
230
248
|
}
|
|
231
249
|
});
|
|
232
250
|
//#endregion
|
|
233
|
-
export {
|
|
251
|
+
export { P as LabeledField, F as LabeledInput, L as LabeledSelect, R as LabeledSlider, B as LabeledSwitch };
|
package/dist/metric-badge.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./MetricBadge-
|
|
1
|
+
import { t as e } from "./MetricBadge-BlrdbOGN.js";
|
|
2
2
|
export { e as MetricBadge };
|
package/dist/metric-stack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/custom/metric-stack/MetricStack.vue
|
package/dist/motion-core.js
CHANGED
|
@@ -1,57 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
function h(e, t) {
|
|
7
|
-
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", e) && !CSS.supports("animation-timeline", t);
|
|
8
|
-
}
|
|
9
|
-
function g() {
|
|
10
|
-
return h("scroll()", "gl-not-a-real-timeline");
|
|
11
|
-
}
|
|
12
|
-
function _() {
|
|
13
|
-
return h("view()", "gl-not-a-real-timeline");
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./vReveal-u2wSG2El.js";
|
|
2
|
+
import { n as i, t as a } from "./useViewTransition-D4ssvnXZ.js";
|
|
3
|
+
import { n as o, t as s } from "./useIntersectionPause-DAdVPVp4.js";
|
|
4
|
+
import { n as c, t as l } from "./constants-DsCdlK9I.js";
|
|
5
|
+
import { computed as u, getCurrentScope as d, onBeforeUnmount as f, onMounted as p, onScopeDispose as m, reactive as h, readonly as g, ref as _, unref as v, watch as y } from "vue";
|
|
16
6
|
//#region src/composables/motion/useStaggerReveal.ts
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a =
|
|
7
|
+
var b = e();
|
|
8
|
+
function x(e = {}) {
|
|
9
|
+
let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a = _([]), o = h({}), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new Set(), l = b || typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
|
|
20
10
|
for (let r of e) {
|
|
21
|
-
let e = r.target, i =
|
|
11
|
+
let e = r.target, i = s.get(e);
|
|
22
12
|
if (i !== void 0) if (r.isIntersecting) {
|
|
23
13
|
let r = setTimeout(() => {
|
|
24
|
-
o[i] = !0,
|
|
14
|
+
o[i] = !0, c.delete(r);
|
|
25
15
|
}, t * i);
|
|
26
|
-
|
|
16
|
+
c.add(r), n && l?.unobserve(e);
|
|
27
17
|
} else n || (o[i] = !1);
|
|
28
18
|
}
|
|
29
19
|
}, {
|
|
30
20
|
rootMargin: r,
|
|
31
21
|
threshold: i
|
|
32
22
|
});
|
|
33
|
-
function
|
|
23
|
+
function u(e, t) {
|
|
34
24
|
if (!e) return;
|
|
35
25
|
let n = t ?? a.value.length;
|
|
36
|
-
|
|
26
|
+
s.has(e) || (s.set(e, n), a.value.push(e), o[n] = b, l?.observe(e));
|
|
37
27
|
}
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
for (let e of
|
|
41
|
-
|
|
28
|
+
return f(() => {
|
|
29
|
+
l?.disconnect();
|
|
30
|
+
for (let e of c) clearTimeout(e);
|
|
31
|
+
c.clear();
|
|
42
32
|
}), {
|
|
43
33
|
targets: a,
|
|
44
|
-
register:
|
|
34
|
+
register: u,
|
|
45
35
|
revealed: o
|
|
46
36
|
};
|
|
47
37
|
}
|
|
48
38
|
//#endregion
|
|
49
39
|
//#region src/composables/motion/useScrollProgress.ts
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
-
let { offset: t = 0, trackExit: n = !1 } = e, r =
|
|
40
|
+
var S = n();
|
|
41
|
+
function C(e) {
|
|
42
|
+
let { offset: t = 0, trackExit: n = !1 } = e, r = _(0), i = 0, a = null;
|
|
53
43
|
function o() {
|
|
54
|
-
let i =
|
|
44
|
+
let i = v(e.target);
|
|
55
45
|
if (!i) return;
|
|
56
46
|
let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
|
|
57
47
|
if (s === 0) {
|
|
@@ -61,30 +51,30 @@ function x(e) {
|
|
|
61
51
|
let c = (o - a.top) / s;
|
|
62
52
|
r.value = Math.max(0, Math.min(1, c));
|
|
63
53
|
}
|
|
64
|
-
function
|
|
54
|
+
function s() {
|
|
65
55
|
i ||= requestAnimationFrame(() => {
|
|
66
56
|
i = 0, o();
|
|
67
57
|
});
|
|
68
58
|
}
|
|
69
|
-
return
|
|
70
|
-
if (o(),
|
|
71
|
-
window.addEventListener("scroll",
|
|
72
|
-
let t =
|
|
73
|
-
t && typeof ResizeObserver < "u" && (a = new ResizeObserver(
|
|
74
|
-
}),
|
|
75
|
-
t && a && a.unobserve(t), e && a && a.observe(e),
|
|
76
|
-
}),
|
|
77
|
-
window.removeEventListener("scroll",
|
|
59
|
+
return p(() => {
|
|
60
|
+
if (o(), S) return;
|
|
61
|
+
window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s, { passive: !0 });
|
|
62
|
+
let t = v(e.target);
|
|
63
|
+
t && typeof ResizeObserver < "u" && (a = new ResizeObserver(s), a.observe(t));
|
|
64
|
+
}), S || y(() => v(e.target), (e, t) => {
|
|
65
|
+
t && a && a.unobserve(t), e && a && a.observe(e), s();
|
|
66
|
+
}), f(() => {
|
|
67
|
+
window.removeEventListener("scroll", s), window.removeEventListener("resize", s), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
|
|
78
68
|
}), r;
|
|
79
69
|
}
|
|
80
70
|
//#endregion
|
|
81
71
|
//#region src/composables/motion/useYieldToMain.ts
|
|
82
|
-
function
|
|
72
|
+
function w() {
|
|
83
73
|
let e = globalThis.scheduler;
|
|
84
74
|
return typeof e?.yield == "function" ? e.yield.bind(e) : null;
|
|
85
75
|
}
|
|
86
|
-
function
|
|
87
|
-
let e =
|
|
76
|
+
function T() {
|
|
77
|
+
let e = w();
|
|
88
78
|
return e ? e() : typeof MessageChannel == "function" ? new Promise((e) => {
|
|
89
79
|
let t = new MessageChannel();
|
|
90
80
|
t.port1.onmessage = () => {
|
|
@@ -92,138 +82,167 @@ function C() {
|
|
|
92
82
|
}, t.port2.postMessage(void 0);
|
|
93
83
|
}) : new Promise((e) => setTimeout(e, 0));
|
|
94
84
|
}
|
|
95
|
-
function
|
|
85
|
+
function E() {
|
|
96
86
|
return {
|
|
97
|
-
hasNativeYield:
|
|
98
|
-
yield:
|
|
87
|
+
hasNativeYield: w() !== null,
|
|
88
|
+
yield: T
|
|
99
89
|
};
|
|
100
90
|
}
|
|
101
91
|
//#endregion
|
|
102
92
|
//#region src/composables/motion/useRAFLoop.ts
|
|
103
|
-
var
|
|
104
|
-
function
|
|
93
|
+
var D = "(prefers-reduced-motion: reduce)";
|
|
94
|
+
function O() {
|
|
105
95
|
return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
|
|
106
96
|
}
|
|
107
|
-
function
|
|
97
|
+
function k() {
|
|
108
98
|
return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
|
|
109
99
|
}
|
|
110
|
-
function
|
|
111
|
-
return typeof document > "u" ? null : document;
|
|
112
|
-
}
|
|
113
|
-
function k() {
|
|
100
|
+
function A() {
|
|
114
101
|
return typeof window > "u" ? null : window;
|
|
115
102
|
}
|
|
116
|
-
function
|
|
117
|
-
let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t,
|
|
118
|
-
function S() {
|
|
119
|
-
return !b && p.value && !m.value && !u.value && !(i && c.value) && !!E();
|
|
120
|
-
}
|
|
103
|
+
function j(e, t = {}) {
|
|
104
|
+
let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, a = _(!1), s = _(!1), c = _(!1), l = _(!1), f = _(!1), p = u(() => l.value && !a.value && (f.value || c.value || i && s.value || !O())), h = null, v = null, b = 0, x = 0, S = !1, C = null;
|
|
121
105
|
function w() {
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
106
|
+
return !S && l.value && !f.value && !c.value && !(i && s.value) && !!O();
|
|
107
|
+
}
|
|
108
|
+
function E() {
|
|
109
|
+
h !== null && (k()?.(h), h = null), a.value = !1, v = null;
|
|
110
|
+
}
|
|
111
|
+
function j() {
|
|
112
|
+
if (h !== null || !w()) return;
|
|
113
|
+
let t = O();
|
|
114
|
+
t && (a.value = !0, h = t((t) => {
|
|
115
|
+
if (h = null, !w()) {
|
|
116
|
+
E();
|
|
130
117
|
return;
|
|
131
118
|
}
|
|
132
|
-
let n =
|
|
133
|
-
|
|
119
|
+
let n = v === null ? 0 : Math.max(0, t - v);
|
|
120
|
+
v = t, b += n, e({
|
|
134
121
|
now: t,
|
|
135
122
|
delta: n,
|
|
136
|
-
elapsed:
|
|
137
|
-
frame:
|
|
138
|
-
}),
|
|
123
|
+
elapsed: b,
|
|
124
|
+
frame: x++
|
|
125
|
+
}), w() ? j() : E();
|
|
139
126
|
}));
|
|
140
127
|
}
|
|
141
|
-
function j() {
|
|
142
|
-
S() ? A() : w();
|
|
143
|
-
}
|
|
144
128
|
function M() {
|
|
145
|
-
|
|
129
|
+
w() ? j() : E();
|
|
146
130
|
}
|
|
147
131
|
function N() {
|
|
148
|
-
|
|
132
|
+
v = null, b = 0, x = 0;
|
|
149
133
|
}
|
|
150
134
|
function P() {
|
|
151
|
-
|
|
135
|
+
S || (N(), l.value = !0, f.value = !1, M());
|
|
152
136
|
}
|
|
153
137
|
function F() {
|
|
154
|
-
|
|
138
|
+
l.value = !1, f.value = !1, N(), E();
|
|
155
139
|
}
|
|
156
140
|
function I() {
|
|
157
|
-
|
|
141
|
+
l.value && (f.value = !0, M());
|
|
158
142
|
}
|
|
159
143
|
function L() {
|
|
160
|
-
|
|
144
|
+
S || (f.value = !1, M());
|
|
161
145
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
146
|
+
if (r) {
|
|
147
|
+
let { hidden: e } = o();
|
|
148
|
+
c.value = e.value, y(e, (e) => {
|
|
149
|
+
c.value = e, M();
|
|
150
|
+
}, { flush: "sync" });
|
|
151
|
+
}
|
|
152
|
+
if (i) {
|
|
153
|
+
let e = A(), t = typeof e?.matchMedia == "function" ? e.matchMedia(D) : null;
|
|
165
154
|
if (t) {
|
|
166
155
|
let e = (e) => {
|
|
167
|
-
|
|
156
|
+
s.value = e.matches, M();
|
|
168
157
|
};
|
|
169
|
-
|
|
158
|
+
s.value = t.matches, typeof t.addEventListener == "function" ? (t.addEventListener("change", e), C = () => t.removeEventListener("change", e)) : typeof t.addListener == "function" && (t.addListener(e), C = () => t.removeListener?.(e));
|
|
170
159
|
}
|
|
171
160
|
}
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
return
|
|
176
|
-
isActive:
|
|
177
|
-
isPaused:
|
|
178
|
-
isReducedMotion:
|
|
179
|
-
start:
|
|
180
|
-
stop:
|
|
181
|
-
pause:
|
|
182
|
-
resume:
|
|
183
|
-
dispose:
|
|
184
|
-
yieldToMain:
|
|
161
|
+
function R() {
|
|
162
|
+
S || (S = !0, F(), C?.(), C = null);
|
|
163
|
+
}
|
|
164
|
+
return d() && m(R), n && P(), {
|
|
165
|
+
isActive: g(a),
|
|
166
|
+
isPaused: g(p),
|
|
167
|
+
isReducedMotion: g(s),
|
|
168
|
+
start: P,
|
|
169
|
+
stop: F,
|
|
170
|
+
pause: I,
|
|
171
|
+
resume: L,
|
|
172
|
+
dispose: R,
|
|
173
|
+
yieldToMain: T
|
|
185
174
|
};
|
|
186
175
|
}
|
|
187
176
|
//#endregion
|
|
188
|
-
//#region src/composables/motion/
|
|
189
|
-
function
|
|
190
|
-
|
|
177
|
+
//#region src/composables/motion/usePrioritizedTask.ts
|
|
178
|
+
function M() {
|
|
179
|
+
if (!t()) return null;
|
|
180
|
+
let e = globalThis.scheduler;
|
|
181
|
+
return e?.postTask?.bind(e) ?? null;
|
|
191
182
|
}
|
|
192
|
-
function
|
|
193
|
-
let
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
s.value = !0;
|
|
207
|
-
return;
|
|
183
|
+
function N() {
|
|
184
|
+
let e = /* @__PURE__ */ Error("The task was aborted.");
|
|
185
|
+
return e.name = "AbortError", e;
|
|
186
|
+
}
|
|
187
|
+
function P(e) {
|
|
188
|
+
let t = e.filter((e) => e != null);
|
|
189
|
+
if (t.length === 0) return;
|
|
190
|
+
if (t.length === 1) return t[0];
|
|
191
|
+
if (typeof AbortSignal.any == "function") return AbortSignal.any(t);
|
|
192
|
+
let n = new AbortController(), r = (e) => n.abort(e.reason);
|
|
193
|
+
for (let e of t) {
|
|
194
|
+
if (e.aborted) {
|
|
195
|
+
n.abort(e.reason);
|
|
196
|
+
break;
|
|
208
197
|
}
|
|
209
|
-
|
|
210
|
-
|
|
198
|
+
e.addEventListener("abort", () => r(e), { once: !0 });
|
|
199
|
+
}
|
|
200
|
+
return n.signal;
|
|
201
|
+
}
|
|
202
|
+
function F(e, t = {}) {
|
|
203
|
+
let { priority: n, signal: r, delay: i } = t, a = M();
|
|
204
|
+
return a ? a(e, {
|
|
205
|
+
priority: n,
|
|
206
|
+
signal: r,
|
|
207
|
+
delay: i
|
|
208
|
+
}) : new Promise((t, n) => {
|
|
209
|
+
if (r?.aborted) {
|
|
210
|
+
n(N());
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
213
|
+
let a = () => {
|
|
214
|
+
if (r?.aborted) {
|
|
215
|
+
n(N());
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
try {
|
|
219
|
+
t(e());
|
|
220
|
+
} catch (e) {
|
|
221
|
+
n(e);
|
|
222
|
+
}
|
|
223
|
+
}, o = typeof MessageChannel == "function" ? () => {
|
|
224
|
+
let e = new MessageChannel();
|
|
225
|
+
e.port1.onmessage = () => {
|
|
226
|
+
e.port1.onmessage = null, a();
|
|
227
|
+
}, e.port2.postMessage(void 0);
|
|
228
|
+
} : () => setTimeout(a, 0);
|
|
229
|
+
i && i > 0 ? setTimeout(o, i) : o();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
function I(e) {
|
|
233
|
+
let t = globalThis.TaskController;
|
|
234
|
+
return typeof t == "function" ? new t(e ? { priority: e } : void 0) : null;
|
|
235
|
+
}
|
|
236
|
+
function L(e) {
|
|
237
|
+
let t = I(e);
|
|
238
|
+
return {
|
|
239
|
+
postTask: (n, r = {}) => F(n, {
|
|
240
|
+
priority: e,
|
|
241
|
+
...r,
|
|
242
|
+
signal: P([t?.signal, r.signal])
|
|
243
|
+
}),
|
|
244
|
+
abort: (e) => t?.abort(e)
|
|
226
245
|
};
|
|
227
246
|
}
|
|
228
247
|
//#endregion
|
|
229
|
-
export {
|
|
248
|
+
export { l as DAMPING, c as SNAP_THRESHOLD, F as postTaskSafe, a as startViewTransition, i as supportsViewTransitions, s as useIntersectionPause, L as usePrioritizedTask, j as useRAFLoop, C as useScrollProgress, x as useStaggerReveal, E as useYieldToMain, r as vReveal, T as yieldToMain };
|