@mkbabb/glass-ui 3.2.0 → 3.4.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-3-VGho1J.js → CardFooter-C390imy7.js} +2 -2
- package/dist/{CollapsibleContent-wlmlDujU.js → CollapsibleContent-cauTbZEM.js} +1 -1
- package/dist/{CommandShortcut-C6lsz3pG.js → CommandShortcut-BiVyqipe.js} +5 -4
- package/dist/DataTable-FfkaAg2z.js +465 -0
- package/dist/DialogContent-IQ8_BRrC.js +100 -0
- package/dist/{DiscoGlyph-B7YooI2-.js → DiscoGlyph-BaZ8OawK.js} +1 -1
- package/dist/{GlyphFace-Bvk6OIas.js → GlyphFace-B_7vOmYn.js} +1 -1
- package/dist/HoverPopover-DTSYkJtw.js +96 -0
- package/dist/{IconTooltip-DXveGjx7.js → IconTooltip-BTyYn4mr.js} +1 -1
- package/dist/Input-CU9CNKmo.js +52 -0
- package/dist/{MetricBadge-J_GBCb8e.js → MetricBadge-BlrdbOGN.js} +1 -1
- package/dist/{NumberFieldContent-B6L6YrQz.js → NumberFieldContent-iOTQ5rGO.js} +8 -4
- package/dist/{PopoverContent-CxEEUL7Y.js → PopoverContent-B8WtJECb.js} +1 -1
- package/dist/Progress-DjM86vfb.js +254 -0
- package/dist/{ScrollingText-1Qjnwz6H.js → ScrollingText-P9o_DuMn.js} +1 -1
- package/dist/{SelectScrollDownButton-BvvvAbuh.js → SelectScrollDownButton-BGn3rjs9.js} +9 -8
- package/dist/TabsIndicator-DA0x9gPr.js +97 -0
- package/dist/{ToggleGroupItem-Cy7xHFEo.js → ToggleGroupItem-gyXj998A.js} +37 -40
- package/dist/UnderlineTabs-Cq_AD03t.js +39 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +454 -271
- package/dist/{button-DS3ULf5i.js → button-Ckn3eDfB.js} +27 -22
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +2 -2
- 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 +3 -25
- 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} +2 -5
- 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 +2 -2
- 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/dock/DockBackgroundToggle.vue.d.ts +46 -0
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +3 -3
- package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +2 -2
- package/dist/components/custom/dock/GlassDock.vue.d.ts +22 -18
- 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 +0 -3
- package/dist/composables/dom/useClipboard.d.ts +35 -12
- package/dist/composables/dom/useDocumentVisibility.d.ts +20 -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 +1 -1
- package/dist/composables/motion/index.d.ts +1 -1
- package/dist/composables/motion/useCountup.d.ts +29 -0
- package/dist/composables/motion/useNumericTransition.d.ts +14 -3
- 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 -153
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +1 -1
- package/dist/controls.js +4 -4
- 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 +1 -1
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +400 -261
- package/dist/dockContext-spUj_-E5.js +9 -0
- package/dist/dom.js +6 -6
- package/dist/{dropdown-menu-naE0skDg.js → dropdown-menu-EFjl5iKo.js} +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +26 -20
- package/dist/fonts/README.md +21 -0
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/forms.js +68 -59
- package/dist/glass-panel.js +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +226 -328
- 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 +2 -2
- 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/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/motion-core.js +82 -123
- package/dist/motion.js +62 -14
- package/dist/number-field.js +1 -1
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-BpTf63Hp.js → presets-1OhFpaIC.js} +1 -1
- package/dist/prng-Bz_1Tydc.js +15 -0
- package/dist/progress.js +2 -2
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +38 -32
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +8 -8
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-wx8ifVFB.js → slider-BOh8ycfZ.js} +7 -11
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +36 -38
- 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 +1 -1
- package/dist/styles/dock-controls.css +486 -0
- package/dist/styles/dock.css +284 -450
- 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 +21 -2
- package/dist/styles/instrument-chassis.css +11 -4
- package/dist/styles/theme.css +73 -21
- package/dist/styles/tokens.css +271 -140
- package/dist/styles/typography.css +14 -8
- package/dist/styles/utilities.css +36 -8
- package/dist/styles/view-transition.css +10 -4
- package/dist/switch.js +1 -1
- package/dist/tabs.js +139 -112
- package/dist/timeline.js +219 -158
- 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/{useAnimatedNumber-BOxrS3a6.js → useAnimatedNumber-BF6r64lA.js} +1 -1
- package/dist/useClipboard-D8vFyRCa.js +97 -0
- package/dist/{useConfiguratorState-Dq2gNv4A.js → useConfiguratorState-DUtC1jxr.js} +82 -86
- package/dist/useGlobalDark-CWiaCoEw.js +34 -0
- package/dist/useIntersectionPause-DAdVPVp4.js +53 -0
- package/dist/useSortable-DnyGXKKY.js +246 -0
- package/dist/{useTouchGate-XX8gHfay.js → useTouchGate-CS5Csc2h.js} +1 -1
- 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/package.json +101 -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 +284 -450
- 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 +271 -140
- package/src/styles/typography.css +14 -8
- package/src/styles/utilities.css +36 -8
- package/src/styles/view-transition.css +10 -4
- package/dist/DataTable-BsrDYdoE.js +0 -460
- package/dist/DialogContent-B61rP8lj.js +0 -93
- package/dist/HoverPopover-BlEwqG7S.js +0 -96
- package/dist/Input-IFsIzId2.js +0 -30
- package/dist/Progress-Bs44qWEM.js +0 -126
- package/dist/UnderlineTabs-B4FV2zi_.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-DM58L1Jt.js +0 -16
- package/dist/keys-SIKQYNx1.js +0 -11
- package/dist/supportsCssTimeline-IQY3gfKD.js +0 -12
- package/dist/useGlobalDark-BUUTZvkU.js +0 -24
- package/dist/useIdleReady-sLhGo6CL.js +0 -162
- package/dist/useIntersectionPause-CUmANkoc.js +0 -39
- package/dist/useSortable-DLK9kwZp.js +0 -189
- /package/dist/{HoverCardContent-DGUhpRVt.js → HoverCardContent-ICfIMZX1.js} +0 -0
- /package/dist/{InstrumentChassis-CqKPBNqp.js → InstrumentChassis-DaHIZCqy.js} +0 -0
- /package/dist/{InstrumentRail-CCjvKkpB.js → InstrumentRail-B0qqLFN0.js} +0 -0
- /package/dist/{Label-D53EOwLE.js → Label-CZk-3nTc.js} +0 -0
- /package/dist/{PaperBackdrop-Ds-wDsKf.js → PaperBackdrop-D_YZW47j.js} +0 -0
- /package/dist/{SelectGroup-DAgcsfFw.js → SelectGroup-CMdoCjRE.js} +0 -0
- /package/dist/{SelectSeparator-DN1jzLaI.js → SelectSeparator-CaJnPF3_.js} +0 -0
- /package/dist/{Separator-DXxac0j8.js → Separator-C2XtAXRp.js} +0 -0
- /package/dist/{Switch-imA0Hdjs.js → Switch-x8n6husW.js} +0 -0
- /package/dist/{Toaster-Brs6QjBU.js → Toaster-DdhMKfus.js} +0 -0
- /package/dist/{TooltipProvider-MZFRxOvT.js → TooltipProvider-D-JrSqDu.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-DfWPi8kh.js → constants-DsCdlK9I.js} +0 -0
- /package/dist/{sheet-BnvZRXPq.js → sheet-CQYYrkr9.js} +0 -0
- /package/dist/{useGlassRenderer-C98tZnJ7.js → useGlassRenderer-Dn3WpfG-.js} +0 -0
- /package/dist/{useInterval-B58LmYth.js → useInterval-CHVYFpXV.js} +0 -0
- /package/dist/{useResizeObserver-C_7GjpRn.js → useResizeObserver-DX-STszm.js} +0 -0
- /package/dist/{useTextHighlight-CLST6an0.js → useTextHighlight-Dmtofpk2.js} +0 -0
- /package/dist/{useTimer-6FoosoDY.js → useTimer-DGgoxTXL.js} +0 -0
- /package/dist/{useUserInvalidAria-BW5iyqWR.js → useUserInvalidAria-DmvZ_6Dx.js} +0 -0
- /package/dist/{useViewTransition-CUJM7fXT.js → useViewTransition-D4ssvnXZ.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/motion-core.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n, t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { computed as
|
|
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";
|
|
6
6
|
//#region src/composables/motion/useStaggerReveal.ts
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
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) => {
|
|
10
10
|
for (let r of e) {
|
|
11
11
|
let e = r.target, i = s.get(e);
|
|
12
12
|
if (i !== void 0) if (r.isIntersecting) {
|
|
13
13
|
let r = setTimeout(() => {
|
|
14
14
|
o[i] = !0, c.delete(r);
|
|
15
15
|
}, t * i);
|
|
16
|
-
c.add(r), n &&
|
|
16
|
+
c.add(r), n && l?.unobserve(e);
|
|
17
17
|
} else n || (o[i] = !1);
|
|
18
18
|
}
|
|
19
19
|
}, {
|
|
20
20
|
rootMargin: r,
|
|
21
21
|
threshold: i
|
|
22
22
|
});
|
|
23
|
-
function
|
|
23
|
+
function u(e, t) {
|
|
24
24
|
if (!e) return;
|
|
25
25
|
let n = t ?? a.value.length;
|
|
26
|
-
s.has(e) || (s.set(e, n), a.value.push(e), o[n] =
|
|
26
|
+
s.has(e) || (s.set(e, n), a.value.push(e), o[n] = b, l?.observe(e));
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
28
|
+
return f(() => {
|
|
29
|
+
l?.disconnect();
|
|
30
30
|
for (let e of c) clearTimeout(e);
|
|
31
31
|
c.clear();
|
|
32
32
|
}), {
|
|
33
33
|
targets: a,
|
|
34
|
-
register:
|
|
34
|
+
register: u,
|
|
35
35
|
revealed: o
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/composables/motion/useScrollProgress.ts
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
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;
|
|
43
43
|
function o() {
|
|
44
|
-
let i =
|
|
44
|
+
let i = v(e.target);
|
|
45
45
|
if (!i) return;
|
|
46
46
|
let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
|
|
47
47
|
if (s === 0) {
|
|
@@ -56,25 +56,25 @@ function b(e) {
|
|
|
56
56
|
i = 0, o();
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
return
|
|
60
|
-
if (o(),
|
|
59
|
+
return p(() => {
|
|
60
|
+
if (o(), S) return;
|
|
61
61
|
window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s, { passive: !0 });
|
|
62
|
-
let t =
|
|
62
|
+
let t = v(e.target);
|
|
63
63
|
t && typeof ResizeObserver < "u" && (a = new ResizeObserver(s), a.observe(t));
|
|
64
|
-
}),
|
|
64
|
+
}), S || y(() => v(e.target), (e, t) => {
|
|
65
65
|
t && a && a.unobserve(t), e && a && a.observe(e), s();
|
|
66
|
-
}),
|
|
66
|
+
}), f(() => {
|
|
67
67
|
window.removeEventListener("scroll", s), window.removeEventListener("resize", s), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
|
|
68
68
|
}), r;
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region src/composables/motion/useYieldToMain.ts
|
|
72
|
-
function
|
|
72
|
+
function w() {
|
|
73
73
|
let e = globalThis.scheduler;
|
|
74
74
|
return typeof e?.yield == "function" ? e.yield.bind(e) : null;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
let e =
|
|
76
|
+
function T() {
|
|
77
|
+
let e = w();
|
|
78
78
|
return e ? e() : typeof MessageChannel == "function" ? new Promise((e) => {
|
|
79
79
|
let t = new MessageChannel();
|
|
80
80
|
t.port1.onmessage = () => {
|
|
@@ -82,144 +82,103 @@ function S() {
|
|
|
82
82
|
}, t.port2.postMessage(void 0);
|
|
83
83
|
}) : new Promise((e) => setTimeout(e, 0));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function E() {
|
|
86
86
|
return {
|
|
87
|
-
hasNativeYield:
|
|
88
|
-
yield:
|
|
87
|
+
hasNativeYield: w() !== null,
|
|
88
|
+
yield: T
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/composables/motion/useRAFLoop.ts
|
|
93
|
-
var
|
|
94
|
-
function
|
|
93
|
+
var D = "(prefers-reduced-motion: reduce)";
|
|
94
|
+
function O() {
|
|
95
95
|
return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function k() {
|
|
98
98
|
return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return typeof document > "u" ? null : document;
|
|
102
|
-
}
|
|
103
|
-
function O() {
|
|
100
|
+
function A() {
|
|
104
101
|
return typeof window > "u" ? null : window;
|
|
105
102
|
}
|
|
106
|
-
function
|
|
107
|
-
let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, a =
|
|
108
|
-
function
|
|
109
|
-
return !
|
|
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;
|
|
105
|
+
function w() {
|
|
106
|
+
return !S && l.value && !f.value && !c.value && !(i && s.value) && !!O();
|
|
110
107
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
108
|
+
function E() {
|
|
109
|
+
h !== null && (k()?.(h), h = null), a.value = !1, v = null;
|
|
113
110
|
}
|
|
114
|
-
function
|
|
115
|
-
if (
|
|
116
|
-
let t =
|
|
117
|
-
t && (a.value = !0,
|
|
118
|
-
if (
|
|
119
|
-
|
|
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();
|
|
120
117
|
return;
|
|
121
118
|
}
|
|
122
|
-
let n =
|
|
123
|
-
|
|
119
|
+
let n = v === null ? 0 : Math.max(0, t - v);
|
|
120
|
+
v = t, b += n, e({
|
|
124
121
|
now: t,
|
|
125
122
|
delta: n,
|
|
126
|
-
elapsed:
|
|
127
|
-
frame:
|
|
128
|
-
}),
|
|
123
|
+
elapsed: b,
|
|
124
|
+
frame: x++
|
|
125
|
+
}), w() ? j() : E();
|
|
129
126
|
}));
|
|
130
127
|
}
|
|
131
|
-
function j() {
|
|
132
|
-
C() ? A() : k();
|
|
133
|
-
}
|
|
134
128
|
function M() {
|
|
135
|
-
|
|
129
|
+
w() ? j() : E();
|
|
136
130
|
}
|
|
137
131
|
function N() {
|
|
138
|
-
|
|
132
|
+
v = null, b = 0, x = 0;
|
|
139
133
|
}
|
|
140
134
|
function P() {
|
|
141
|
-
|
|
135
|
+
S || (N(), l.value = !0, f.value = !1, M());
|
|
142
136
|
}
|
|
143
137
|
function F() {
|
|
144
|
-
|
|
138
|
+
l.value = !1, f.value = !1, N(), E();
|
|
145
139
|
}
|
|
146
140
|
function I() {
|
|
147
|
-
|
|
141
|
+
l.value && (f.value = !0, M());
|
|
148
142
|
}
|
|
149
143
|
function L() {
|
|
150
|
-
|
|
144
|
+
S || (f.value = !1, M());
|
|
145
|
+
}
|
|
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
151
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
let e = O(), t = typeof e?.matchMedia == "function" ? e.matchMedia(w) : null;
|
|
152
|
+
if (i) {
|
|
153
|
+
let e = A(), t = typeof e?.matchMedia == "function" ? e.matchMedia(D) : null;
|
|
155
154
|
if (t) {
|
|
156
155
|
let e = (e) => {
|
|
157
|
-
|
|
156
|
+
s.value = e.matches, M();
|
|
158
157
|
};
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
function z() {
|
|
163
|
-
b || (b = !0, P(), R?.removeEventListener("visibilitychange", L), x?.(), x = null);
|
|
164
|
-
}
|
|
165
|
-
return c() && d(z), n && N(), {
|
|
166
|
-
isActive: p(a),
|
|
167
|
-
isPaused: p(h),
|
|
168
|
-
isReducedMotion: p(o),
|
|
169
|
-
start: N,
|
|
170
|
-
stop: P,
|
|
171
|
-
pause: F,
|
|
172
|
-
resume: I,
|
|
173
|
-
dispose: z,
|
|
174
|
-
yieldToMain: S
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/composables/motion/useStagger.ts
|
|
179
|
-
function A() {
|
|
180
|
-
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
181
|
-
}
|
|
182
|
-
function j(e) {
|
|
183
|
-
let t = Math.max(0, Math.floor(e.items)), n = e.delayMs ?? 80, r = e.initialDelayMs ?? 0, i = e.immediate !== !1, a = e.respectReducedMotion !== !1, o = m(Array(t).fill(!1)), s = m(t === 0), c = /* @__PURE__ */ new Set();
|
|
184
|
-
function l() {
|
|
185
|
-
for (let e of c) clearTimeout(e);
|
|
186
|
-
c.clear();
|
|
187
|
-
}
|
|
188
|
-
function u() {
|
|
189
|
-
l(), o.value = Array(t).fill(!1), s.value = t === 0;
|
|
190
|
-
}
|
|
191
|
-
function f() {
|
|
192
|
-
o.value = Array(t).fill(!0), s.value = !0;
|
|
193
|
-
}
|
|
194
|
-
function p() {
|
|
195
|
-
if (u(), t === 0) {
|
|
196
|
-
s.value = !0;
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
if (a && A()) {
|
|
200
|
-
f();
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
for (let e = 0; e < t; e++) {
|
|
204
|
-
let i = e, a = setTimeout(() => {
|
|
205
|
-
let e = o.value.slice();
|
|
206
|
-
e[i] = !0, o.value = e, c.delete(a), i === t - 1 && (s.value = !0);
|
|
207
|
-
}, r + i * n);
|
|
208
|
-
c.add(a);
|
|
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));
|
|
209
159
|
}
|
|
210
160
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
|
216
174
|
};
|
|
217
175
|
}
|
|
218
176
|
//#endregion
|
|
219
177
|
//#region src/composables/motion/usePrioritizedTask.ts
|
|
220
178
|
function M() {
|
|
179
|
+
if (!t()) return null;
|
|
221
180
|
let e = globalThis.scheduler;
|
|
222
|
-
return
|
|
181
|
+
return e?.postTask?.bind(e) ?? null;
|
|
223
182
|
}
|
|
224
183
|
function N() {
|
|
225
184
|
let e = /* @__PURE__ */ Error("The task was aborted.");
|
|
@@ -286,4 +245,4 @@ function L(e) {
|
|
|
286
245
|
};
|
|
287
246
|
}
|
|
288
247
|
//#endregion
|
|
289
|
-
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 };
|
package/dist/motion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, t } from "./useSpringMount-CnizvZGm.js";
|
|
2
|
-
import { n, t as r } from "./constants-
|
|
3
|
-
import { t as i } from "./useAnimatedNumber-
|
|
4
|
-
import {
|
|
2
|
+
import { n, t as r } from "./constants-DsCdlK9I.js";
|
|
3
|
+
import { t as i } from "./useAnimatedNumber-BF6r64lA.js";
|
|
4
|
+
import { onBeforeUnmount as a, onScopeDispose as o, ref as s, shallowRef as c } from "vue";
|
|
5
5
|
import { NumericAnimation as l } from "@mkbabb/keyframes.js";
|
|
6
6
|
//#region src/composables/motion/useSpringPress.ts
|
|
7
7
|
function u(t = {}) {
|
|
@@ -36,8 +36,8 @@ function u(t = {}) {
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/composables/motion/useNumericTransition.ts
|
|
38
38
|
function d(e) {
|
|
39
|
-
let t = s(0), n = s(!1), { from: r, to: i, duration:
|
|
40
|
-
duration:
|
|
39
|
+
let t = s(0), n = s(!1), { from: r, to: i, duration: o, timingFunction: u, onFrame: d } = e, f = c(new l([r, i], {
|
|
40
|
+
duration: o,
|
|
41
41
|
timingFunction: u
|
|
42
42
|
}));
|
|
43
43
|
async function p() {
|
|
@@ -61,7 +61,7 @@ function d(e) {
|
|
|
61
61
|
function m() {
|
|
62
62
|
f.value.stop(), n.value = !1;
|
|
63
63
|
}
|
|
64
|
-
return
|
|
64
|
+
return a(() => {
|
|
65
65
|
m();
|
|
66
66
|
}), {
|
|
67
67
|
start: p,
|
|
@@ -71,14 +71,62 @@ function d(e) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
|
-
//#region src/composables/motion/
|
|
75
|
-
function f(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
//#region src/composables/motion/useCountup.ts
|
|
75
|
+
function f() {
|
|
76
|
+
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
77
|
+
}
|
|
78
|
+
function p(e, t) {
|
|
79
|
+
let { easeFn: n, skip: r } = t, i = /* @__PURE__ */ new Map();
|
|
80
|
+
function a(e) {
|
|
81
|
+
let t = i.get(e);
|
|
82
|
+
t && (t.stop(), i.delete(e));
|
|
83
|
+
}
|
|
84
|
+
function s(e) {
|
|
85
|
+
e.querySelectorAll("[data-countup]").forEach((e) => {
|
|
86
|
+
let t = parseFloat(e.getAttribute("data-countup") ?? "0") || 0, r = parseFloat(e.getAttribute("data-countup-dur") ?? "1200"), o = parseFloat(e.getAttribute("data-countup-delay") ?? "0");
|
|
87
|
+
if (a(e), f()) {
|
|
88
|
+
e.textContent = String(t);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
e.textContent = "0";
|
|
92
|
+
let s = new l([{ v: 0 }, { v: t }], {
|
|
93
|
+
duration: r,
|
|
94
|
+
timingFunction: n
|
|
95
|
+
});
|
|
96
|
+
i.set(e, s);
|
|
97
|
+
let c = () => {
|
|
98
|
+
i.get(e) === s && s.play((t) => {
|
|
99
|
+
e.textContent = String(Math.round(t.v));
|
|
100
|
+
}).then(() => {
|
|
101
|
+
i.get(e) === s && (e.textContent = String(t), i.delete(e));
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
if (o > 0) {
|
|
105
|
+
let e = setTimeout(c, o), t = s.stop.bind(s);
|
|
106
|
+
s.stop = () => {
|
|
107
|
+
clearTimeout(e), t();
|
|
108
|
+
};
|
|
109
|
+
} else c();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function c() {
|
|
113
|
+
if (r?.()) return;
|
|
114
|
+
let t = e.value?.querySelector("[data-state=\"active\"]");
|
|
115
|
+
t && s(t);
|
|
80
116
|
}
|
|
81
|
-
|
|
117
|
+
function u() {
|
|
118
|
+
document.querySelectorAll("[data-countup]").forEach((e) => {
|
|
119
|
+
a(e), e.textContent = e.getAttribute("data-countup") ?? e.textContent;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function d() {
|
|
123
|
+
for (let e of [...i.keys()]) a(e);
|
|
124
|
+
}
|
|
125
|
+
return o(d), {
|
|
126
|
+
runActive: c,
|
|
127
|
+
settle: u,
|
|
128
|
+
cancel: d
|
|
129
|
+
};
|
|
82
130
|
}
|
|
83
131
|
//#endregion
|
|
84
|
-
export { r as DAMPING, n as SNAP_THRESHOLD, i as useAnimatedNumber,
|
|
132
|
+
export { r as DAMPING, n as SNAP_THRESHOLD, i as useAnimatedNumber, p as useCountup, d as useNumericTransition, e as useSpring, t as useSpringMount, u as useSpringPress };
|
package/dist/number-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-iOTQ5rGO.js";
|
|
2
2
|
export { e as NumberField, i as NumberFieldContent, n as NumberFieldDecrement, r as NumberFieldIncrement, t as NumberFieldInput };
|
package/dist/paper-backdrop.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./PaperBackdrop-
|
|
1
|
+
import { t as e } from "./PaperBackdrop-D_YZW47j.js";
|
|
2
2
|
export { e as PaperBackdrop };
|
package/dist/popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./PopoverContent-
|
|
1
|
+
import { n as e, r as t, t as n } from "./PopoverContent-B8WtJECb.js";
|
|
2
2
|
export { t as Popover, n as PopoverContent, e as PopoverTrigger };
|