@mkbabb/glass-ui 4.0.1 → 4.2.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/{CardAction-CW7a0m8M.js → CardAction-DlVP2evz.js} +72 -53
- package/dist/{CommandShortcut-DvZNQ_HF.js → CommandShortcut-By-VQcLO.js} +25 -14
- package/dist/{ConfiguratorRow-BR4l-ixA.js → ConfiguratorRow-YMXdINHx.js} +14 -14
- package/dist/ContextMenuContent-CMWn6huB.js +90 -0
- package/dist/{ContextMenuSubContent-xol4sD2q.js → ContextMenuSubContent-DvwWCUc0.js} +16 -16
- package/dist/{DataTable-CuKwF7wr.js → DataTable-C4tG3eIJ.js} +4 -4
- package/dist/DialogContent-D8U9ZfWS.js +121 -0
- package/dist/DialogFooter-DoLy0ewI.js +80 -0
- package/dist/DialogScrollContent-BMekN7gq.js +93 -0
- package/dist/{FadingScroll-DI6hQhT9.js → FadingScroll-P8B30rAD.js} +1 -1
- package/dist/HoverCardContent-DAmGYglo.js +88 -0
- package/dist/{HoverPopover-CbqbNwgU.js → HoverPopover-DYpBOzzF.js} +1 -1
- package/dist/{IconChip-BTD-nay5.js → IconChip-CQa7XZYc.js} +7 -5
- package/dist/{IconTooltip-Bl8gFZ8d.js → IconTooltip-_df8M3xm.js} +1 -1
- package/dist/Input-CyU4_hIC.js +57 -0
- package/dist/{MetricBadge-RHdBP72w.js → MetricBadge-DQt_dGah.js} +1 -1
- package/dist/{Notification-VUwexFUf.js → Notification-BlSPJhtZ.js} +4 -4
- package/dist/NumberFieldContent-Z3VxGu_6.js +140 -0
- package/dist/PagerDots-CYlqVFd4.js +196 -0
- package/dist/PaperBackdrop-DYWgrnh8.js +42 -0
- package/dist/{PopoverContent-DL7E6vJP.js → PopoverContent-BuKyHZSz.js} +2 -2
- package/dist/{Progress-DctG61iZ.js → Progress-C9SsdwIZ.js} +1 -1
- package/dist/{ScrollingText-yOpBzFYq.js → ScrollingText-DY3W1Jfh.js} +2 -2
- package/dist/SelectScrollDownButton-3mFHX_R-.js +260 -0
- package/dist/{SelectSeparator-DXswVdRz.js → SelectSeparator-CNRGG7Ew.js} +1 -1
- package/dist/Separator-Cf9-JFgi.js +44 -0
- package/dist/Switch-uf-UKPA2.js +49 -0
- package/dist/{Toaster-Bw4xR8xV.js → Toaster-ozrsR4mP.js} +2 -2
- package/dist/{ToggleGroupItem-pEM9vIhs.js → ToggleGroupItem-BpzaVzNm.js} +6 -6
- package/dist/TooltipProvider-QQVM_80r.js +109 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +16 -32
- package/dist/api/types-extra.d.ts +33 -0
- package/dist/api.js +2 -2
- package/dist/aurora.js +629 -269
- package/dist/badge-Bt14yURi.js +72 -0
- package/dist/badge.js +1 -1
- package/dist/border-progress.js +49 -57
- package/dist/button-D1W9PrzI.js +130 -0
- package/dist/button.js +1 -1
- package/dist/canvas.js +2 -3
- package/dist/card.js +1 -1
- package/dist/carousel.js +235 -106
- package/dist/chipVariants-BJQ0I2kB.js +18 -0
- package/dist/collapsible.js +1 -1
- package/dist/color-B9jZdhJX.js +116 -0
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/completion-seal.d.ts +1 -0
- package/dist/completion-seal.js +89 -0
- package/dist/components/custom/aurora/Aurora.vue.d.ts +10 -5
- package/dist/components/custom/aurora/composables/color.d.ts +13 -0
- package/dist/components/custom/aurora/composables/frameLoop.d.ts +9 -0
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/runtime.d.ts +12 -0
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +12 -3
- package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +47 -0
- package/dist/components/custom/aurora/constants/renderMode.d.ts +16 -8
- package/dist/components/custom/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +1 -1
- package/dist/components/custom/border-progress/composables/spectrum-walk.d.ts +25 -0
- package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +14 -18
- package/dist/components/custom/border-progress/index.d.ts +1 -1
- package/dist/components/custom/completion-seal/CompletionSeal.vue.d.ts +21 -0
- package/dist/components/custom/completion-seal/composables/useCompletionSeal.d.ts +37 -0
- package/dist/components/custom/completion-seal/constants.d.ts +46 -0
- package/dist/components/custom/completion-seal/index.d.ts +4 -0
- package/dist/components/custom/concentric/Concentric.vue.d.ts +15 -12
- package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +12 -0
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +13 -0
- package/dist/components/custom/concentric/composables/levelField.d.ts +50 -0
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +7 -3
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +3 -3
- package/dist/components/custom/concentric/constants.d.ts +69 -24
- package/dist/components/custom/concentric/index.d.ts +2 -2
- package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +2 -2
- package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -1
- package/dist/components/custom/configurator/Configurator.vue.d.ts +23 -2
- package/dist/components/custom/configurator/index.d.ts +1 -1
- package/dist/components/custom/confirm-dialog/ConfirmDialog.vue.d.ts +3 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +5 -4
- package/dist/components/custom/constellation/composables/constellationGLSetup.d.ts +10 -0
- package/dist/components/custom/constellation/composables/constellationWGPUSetup.d.ts +19 -0
- package/dist/components/custom/constellation/composables/uniformBridgeWGPU.d.ts +66 -0
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +3 -10
- package/dist/components/custom/constellation/constants.d.ts +33 -0
- package/dist/components/custom/constellation/constellationField.d.ts +31 -1
- package/dist/components/custom/constellation/constellationInteraction.d.ts +23 -14
- package/dist/components/custom/constellation/constellationRender.d.ts +25 -0
- package/dist/components/custom/constellation/constellationTypes.d.ts +38 -0
- package/dist/components/custom/constellation/constellationWell.d.ts +15 -0
- package/dist/components/custom/constellation/index.d.ts +5 -5
- package/dist/components/custom/constellation/shaders/constellation-lines.glsl.d.ts +2 -0
- package/dist/components/custom/constellation/shaders/constellation-lines.wgsl.d.ts +1 -0
- package/dist/components/custom/constellation/shaders/constellation-points.glsl.d.ts +2 -0
- package/dist/components/custom/constellation/shaders/constellation-points.wgsl.d.ts +1 -0
- package/dist/components/custom/deck/DeckPager.vue.d.ts +29 -0
- package/dist/components/custom/deck/composables/useDeck.d.ts +27 -0
- package/dist/components/custom/deck/composables/useDeckKeyboard.d.ts +25 -0
- package/dist/components/custom/deck/composables/useDeckSpring.d.ts +22 -0
- package/dist/components/custom/deck/constants.d.ts +14 -0
- package/dist/components/custom/deck/index.d.ts +8 -0
- package/dist/components/custom/dock/DockDropdownTrigger.vue.d.ts +4 -3
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +22 -0
- package/dist/components/custom/dock/DockPopoverTrigger.vue.d.ts +19 -0
- package/dist/components/custom/dock/DockStack.vue.d.ts +78 -0
- package/dist/components/custom/dock/GlassDock.vue.d.ts +21 -3
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +18 -32
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +78 -67
- package/dist/components/custom/dock/composables/index.d.ts +3 -0
- package/dist/components/custom/dock/composables/railProjection.d.ts +45 -0
- package/dist/components/custom/dock/composables/useDockContextSilhouette.d.ts +192 -0
- package/dist/components/custom/dock/composables/useDockFission.d.ts +158 -0
- package/dist/components/custom/dock/composables/useDockItemDrag.d.ts +18 -0
- package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +49 -0
- package/dist/components/custom/dock/constants.d.ts +32 -17
- package/dist/components/custom/dock/index.d.ts +8 -2
- package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +15 -11
- package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +69 -6
- package/dist/components/custom/dot-flow-field/composables/flowGLProgram.d.ts +8 -0
- package/dist/components/custom/dot-flow-field/composables/flowSetupGL.d.ts +9 -0
- package/dist/components/custom/dot-flow-field/composables/flowSetupGLFlow.d.ts +12 -0
- package/dist/components/custom/dot-flow-field/composables/flowSetupWGPU.d.ts +7 -0
- package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +50 -9
- package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +6 -5
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +23 -9
- package/dist/components/custom/dot-flow-field/constants.d.ts +92 -20
- package/dist/components/custom/dot-flow-field/index.d.ts +2 -2
- package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -1
- package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +31 -18
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +2 -1
- package/dist/components/custom/dot-matrix/DotMatrix.vue.d.ts +43 -0
- package/dist/components/custom/dot-matrix/composables/dotMatrixField.d.ts +89 -0
- package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +61 -0
- package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
- package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +34 -0
- package/dist/components/custom/dot-matrix/constants.d.ts +72 -0
- package/dist/components/custom/dot-matrix/index.d.ts +5 -0
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +4 -0
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -0
- package/dist/components/custom/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/custom/easing/composables/useEasingPicker.d.ts +5 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +11 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +44 -47
- package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +24 -0
- package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +31 -0
- package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +56 -0
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +61 -37
- package/dist/components/custom/fourier-field/constants.d.ts +114 -4
- package/dist/components/custom/fourier-field/index.d.ts +23 -18
- package/dist/components/custom/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +1 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +4 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +9 -1
- package/dist/components/custom/goo-blob/composables/easing.d.ts +1 -0
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +1 -0
- package/dist/components/custom/goo-blob/constants.d.ts +26 -1
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/metaball-noise.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball-palette.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/types.d.ts +86 -1
- package/dist/components/custom/goo-dot-matrix/GooDotMatrix.vue.d.ts +49 -0
- package/dist/components/custom/goo-dot-matrix/composables/gooDotLattice.d.ts +24 -0
- package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +79 -0
- package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +45 -0
- package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
- package/dist/components/custom/goo-dot-matrix/constants.d.ts +115 -0
- package/dist/components/custom/goo-dot-matrix/index.d.ts +5 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +13 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +4 -0
- package/dist/components/custom/goo-filter/GooFilter.vue.d.ts +22 -0
- package/dist/components/custom/goo-filter/index.d.ts +1 -0
- package/dist/components/custom/handmark/brush.d.ts +17 -17
- package/dist/components/custom/handmark/constants.d.ts +28 -8
- package/dist/components/custom/handmark/geometry.d.ts +34 -1
- package/dist/components/custom/handmark/index.d.ts +1 -1
- package/dist/components/custom/icon-chip/types.d.ts +10 -0
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +21 -2
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +15 -0
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +9 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/pager-dots/pagerWindow.d.ts +9 -0
- package/dist/components/custom/paper-backdrop/PaperBackdrop.vue.d.ts +18 -0
- package/dist/components/custom/paper-grid/PaperGrid.vue.d.ts +42 -0
- package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +105 -0
- package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +18 -0
- package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +21 -0
- package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +16 -0
- package/dist/components/custom/paper-grid/composables/usePaperGrid.d.ts +31 -0
- package/dist/components/custom/paper-grid/constants.d.ts +95 -0
- package/dist/components/custom/paper-grid/index.d.ts +5 -0
- package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +4 -0
- package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -0
- package/dist/components/custom/search/FuzzySearch.vue.d.ts +8 -2
- package/dist/components/custom/search/SearchBar.vue.d.ts +8 -0
- package/dist/components/custom/search/index.d.ts +2 -0
- package/dist/components/custom/search/searchVariants.d.ts +19 -0
- package/dist/components/custom/selectable-chip/SelectableChip.vue.d.ts +50 -0
- package/dist/components/custom/selectable-chip/chipVariants.d.ts +39 -0
- package/dist/components/custom/selectable-chip/index.d.ts +2 -0
- package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +15 -0
- package/dist/components/custom/split-chars/SplitChars.vue.d.ts +39 -0
- package/dist/components/custom/split-chars/index.d.ts +1 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +8 -6
- package/dist/components/custom/tabs/constants.d.ts +28 -2
- package/dist/components/custom/timeline/ScrubberTimeline.vue.d.ts +16 -0
- package/dist/components/custom/timeline/geometry.d.ts +0 -8
- package/dist/components/custom/toggle-chip/index.d.ts +15 -4
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +32 -17
- package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +10 -5
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/useControlSize.d.ts +46 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +17 -3
- package/dist/components/ui/badge/Badge.vue.d.ts +14 -0
- package/dist/components/ui/badge/index.d.ts +1 -0
- package/dist/components/ui/button/Button.vue.d.ts +1 -0
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +46 -1
- package/dist/components/ui/card/ScrollCard.vue.d.ts +1 -1
- package/dist/components/ui/card/index.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts +2 -4
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/ui/command/CommandDialog.vue.d.ts +9 -3
- package/dist/components/ui/command/CommandList.vue.d.ts +3 -0
- package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +5 -1
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +9 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +33 -14
- package/dist/components/ui/drawer/constants.d.ts +8 -6
- package/dist/components/ui/drawer/index.d.ts +12 -2
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +4 -0
- package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -0
- package/dist/components/ui/input/Input.vue.d.ts +3 -0
- package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -1
- package/dist/components/ui/select/SelectContent.vue.d.ts +12 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +9 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +2 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +3 -0
- package/dist/composables/color/index.d.ts +2 -0
- package/dist/composables/color/useAccentTone.d.ts +34 -0
- package/dist/composables/dom/index.d.ts +1 -0
- package/dist/composables/dom/useDragVelocity.d.ts +46 -0
- package/dist/composables/glass/useVizChoreography.d.ts +123 -0
- package/dist/composables/glass/wave/index.d.ts +4 -0
- package/dist/composables/glass/wave/waveField.d.ts +115 -0
- package/dist/composables/glass/wave/waveField.glsl.d.ts +1 -0
- package/dist/composables/glass/wave/waveField.wgsl.d.ts +1 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +105 -2
- package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +40 -2
- package/dist/composables/glass/webgpu/index.d.ts +2 -1
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +65 -7
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +50 -2
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
- package/dist/composables/motion/core/index.d.ts +7 -0
- package/dist/composables/motion/core/useHaptic.d.ts +48 -0
- package/dist/composables/motion/core/writeVelocityWeight.d.ts +31 -0
- package/dist/composables/motion/index.d.ts +2 -0
- package/dist/composables/motion/scrollReader.d.ts +25 -0
- package/dist/composables/motion/springPresets.d.ts +19 -1
- package/dist/composables/motion/suite.d.ts +2 -2
- package/dist/composables/motion/useBloomUp.d.ts +97 -0
- package/dist/composables/motion/useCelebrationBurst.d.ts +50 -0
- package/dist/composables/motion/useCharStagger.d.ts +44 -0
- package/dist/composables/motion/useDockCtaReceive.d.ts +29 -22
- package/dist/composables/motion/useGooMorph.d.ts +72 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +18 -0
- package/dist/composables/motion/useLiquidMorph.d.ts +108 -0
- package/dist/composables/motion/useLiquidPress.d.ts +12 -0
- package/dist/composables/motion/useLiquidReveal.d.ts +7 -4
- package/dist/composables/motion/useMorphField.d.ts +157 -0
- package/dist/composables/motion/useScrollChrome.d.ts +58 -0
- package/dist/composables/motion/useScrollPin.d.ts +49 -0
- package/dist/composables/motion/useScrollScene.d.ts +67 -0
- package/dist/composables/motion/useScrollTrigger.d.ts +67 -0
- package/dist/composables/motion/useSpringPress.d.ts +5 -5
- package/dist/composables/motion/useStaggerReveal.d.ts +24 -0
- package/dist/composables/sidebar/index.d.ts +4 -1
- package/dist/composables/sidebar/types.d.ts +68 -3
- package/dist/composables/sidebar/useClickDelegate.d.ts +4 -0
- package/dist/composables/sidebar/useLazyLoader.d.ts +5 -0
- package/dist/composables/sidebar/useScrollTo.d.ts +5 -0
- package/dist/composables/virtual/index.d.ts +4 -0
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +72 -0
- package/dist/composables/virtual/useWindowedStore.d.ts +43 -0
- package/dist/composables/virtual/virtualSectionLayout.d.ts +103 -0
- package/dist/concentric.js +552 -309
- package/dist/configurator.js +2 -2
- package/dist/confirm-dialog.js +62 -47
- package/dist/constellation.js +635 -235
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/createCanvasLifecycle-CuCrGRfq.js +173 -0
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck.d.ts +1 -0
- package/dist/deck.js +105 -0
- package/dist/dialog.js +4 -3
- package/dist/dock.js +1320 -631
- package/dist/dockContext-gFVS2gMg.js +18 -0
- package/dist/dom.js +7 -6
- package/dist/dot-flow-field.js +1268 -387
- package/dist/dot-matrix.d.ts +1 -0
- package/dist/dot-matrix.js +774 -0
- package/dist/dotMatrixField-CRO0ZFk4.js +48 -0
- package/dist/drawer.js +106 -96
- package/dist/{dropdown-menu-CofSZuk8.js → dropdown-menu-CCfcCQ68.js} +83 -79
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.js +188 -176
- package/dist/expandable-container.js +43 -21
- package/dist/fading-scroll.js +1 -1
- package/dist/flow.glsl-DqEGRpl4.js +4 -0
- package/dist/forms.js +64 -62
- package/dist/fourier-field.js +1069 -178
- package/dist/fourier-math.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +164 -119
- package/dist/goo-blob.js +175 -1230
- package/dist/goo-dot-matrix.d.ts +1 -0
- package/dist/goo-dot-matrix.js +811 -0
- package/dist/handmark.js +137 -94
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +70 -60
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +1 -1
- package/dist/metric-stack.js +12 -3
- package/dist/motion-core.js +59 -34
- package/dist/motion-curves.js +30 -14
- package/dist/motion.js +231 -96
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +2 -91
- package/dist/paper-backdrop.js +1 -1
- package/dist/paper-grid.d.ts +1 -0
- package/dist/paper-grid.js +761 -0
- package/dist/paperGrid-CXCSMbZ1.js +191 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-BW2b-fr1.js → presets-QvYgnFIZ.js} +14 -13
- package/dist/{procedural-color.glsl-CIFsJhwI.js → procedural-color.wgsl-C1Y5PkM6.js} +2 -2
- package/dist/progress.js +1 -1
- package/dist/pulse.js +2 -2
- package/dist/reactive.js +2 -2
- package/dist/{useCanvas2D-B8w_E3Rr.js → resolveCanvasColor-DsSJk06I.js} +16 -6
- package/dist/scrollReader-rc3Ns_NM.js +42 -0
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +162 -306
- package/dist/select.js +3 -3
- package/dist/selectable-chip.d.ts +1 -0
- package/dist/selectable-chip.js +48 -0
- package/dist/separator.js +1 -1
- package/dist/{sheet-tZMg0E0w.js → sheet-DUCIoOe0.js} +4 -4
- package/dist/sheet.js +1 -1
- package/dist/sidebar.js +216 -114
- package/dist/slider-CcICPe3u.js +149 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/spectrum-walk-cBNSx_zm.js +33 -0
- package/dist/springPresets-DfoQ6XRY.js +64 -0
- package/dist/stacked-icons.js +54 -39
- package/dist/styles/animations.css +13 -3
- package/dist/styles/cards.css +271 -2
- package/dist/styles/completion-seal.css +131 -0
- package/dist/styles/components.css +1 -4
- package/dist/styles/configurator.css +221 -1
- package/dist/styles/critical-partition.mjs +66 -11
- package/dist/styles/deferred.css +4 -0
- package/dist/styles/dock/adaptive-legibility.css +119 -0
- package/dist/styles/dock/cta-seat.css +87 -0
- package/dist/styles/dock/density.css +167 -6
- package/dist/styles/dock/fission-bridge.css +552 -0
- package/dist/styles/dock/layers.css +90 -78
- package/dist/styles/dock/morph-bridge.css +67 -18
- package/dist/styles/dock/morph.css +57 -118
- package/dist/styles/dock/overflow.css +12 -0
- package/dist/styles/dock/search.css +68 -0
- package/dist/styles/dock/shape.css +250 -0
- package/dist/styles/dock/shell.css +24 -8
- package/dist/styles/dock/stack-rail.css +352 -0
- package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/dist/styles/dock-controls/icon-button.css +46 -0
- package/dist/styles/dock-controls/triggers.css +23 -1
- package/dist/styles/dock-controls.css +18 -0
- package/dist/styles/dock.css +27 -2
- package/dist/styles/drawer.css +166 -0
- package/dist/styles/glass/accent-tone.css +66 -0
- package/dist/styles/glass/control-surfaces.css +167 -0
- package/dist/styles/glass/glass-atom.css +244 -0
- package/dist/styles/glass/glass-capsule.css +143 -0
- package/dist/styles/glass/glass-chip.css +215 -0
- package/dist/styles/glass/ladder.css +67 -17
- package/dist/styles/glass/liquid-enter.css +252 -0
- package/dist/styles/glass/liquid-morph.css +850 -0
- package/dist/styles/glass/material.css +70 -1
- package/dist/styles/glass/reveal.css +22 -2
- package/dist/styles/glass/rim.css +31 -9
- package/dist/styles/glass/surfaces.css +81 -150
- package/dist/styles/glass.css +21 -0
- package/dist/styles/icon-chip.css +45 -0
- package/dist/styles/index.css +26 -0
- package/dist/styles/jubilance.css +65 -0
- package/dist/styles/motion/morph-field.css +229 -0
- package/dist/styles/paper.css +230 -14
- package/dist/styles/scroll-choreography.css +135 -78
- package/dist/styles/scroll-chrome.css +123 -0
- package/dist/styles/scroll-driven.css +38 -0
- package/dist/styles/segmented-tabs.css +110 -40
- package/dist/styles/select.css +151 -0
- package/dist/styles/theme/bridges.css +22 -0
- package/dist/styles/theme/radius.css +18 -1
- package/dist/styles/tokens/color-radius.css +14 -4
- package/dist/styles/tokens/dark-arm.css +94 -12
- package/dist/styles/tokens/glass-deep.css +33 -4
- package/dist/styles/tokens/glass-fx.css +122 -1
- package/dist/styles/tokens/glass.css +226 -34
- package/dist/styles/tokens/light-dark.css +3 -3
- package/dist/styles/tokens/offsets.css +27 -0
- package/dist/styles/tokens/property-regs.css +277 -0
- package/dist/styles/tokens/scale-paper.css +86 -30
- package/dist/styles/tokens/scheme-motion.css +106 -133
- package/dist/styles/tokens/scheme-spring.css +239 -0
- package/dist/styles/tokens/scroll-tokens.css +15 -15
- package/dist/styles/tokens/shadow.css +73 -13
- package/dist/styles/tokens/sizing-config.css +110 -0
- package/dist/styles/tokens/sizing.css +55 -104
- package/dist/styles/tokens.css +14 -2
- package/dist/styles/typography/semantic.css +18 -5
- package/dist/styles/utilities/a11y-overrides.css +20 -5
- package/dist/styles/utilities/base-misc.css +52 -0
- package/dist/styles/utilities/btn.css +84 -3
- package/dist/styles/utilities/components.css +31 -6
- package/dist/styles/utilities/metal.css +26 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +199 -182
- package/dist/timeline.js +241 -206
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +14 -41
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +2 -2
- package/dist/uniformBridgeWGPU-BCse1SHU.js +1268 -0
- package/dist/{useAnimatedNumber-BfUq2bUM.js → useAnimatedNumber-BntskVdQ.js} +1 -1
- package/dist/{useConfiguratorState-DNlOh6c8.js → useConfiguratorState-22BcULzF.js} +41 -38
- package/dist/useControlSize-DAZ062x7.js +9 -0
- package/dist/useDockCtaReceive-DX7RDb6_.js +88 -0
- package/dist/{useDragMorph-DgxnsVJz.js → useDragMorph-DGLSewwB.js} +4 -4
- package/dist/useDragVelocity-CjcfX3dA.js +57 -0
- package/dist/useFuzzySearch-0fTYOhS4.js +177 -0
- package/dist/useGooMorph-Cs13NgYL.js +104 -0
- package/dist/useGpuSubstrate-Ceet70xq.js +347 -0
- package/dist/useHaptic-CPz5BT9I.js +134 -0
- package/dist/{useLiquidFlex-mZPMiNXh.js → useLiquidFlex-Cc6PjVJD.js} +8 -3
- package/dist/useLiquidPress-CtOQ8Z0_.js +43 -0
- package/dist/useMorphField-ogBM7ubT.js +141 -0
- package/dist/usePointerVelocityField-BrkqZFhj.js +91 -0
- package/dist/useScrollChrome-JuImi1DM.js +258 -0
- package/dist/{useSpringMount-q1amq1SJ.js → useSpringMount-DFxtzmkR.js} +1 -1
- package/dist/useSpringPress-VM9RgVq3.js +36 -0
- package/dist/{useSurfaceAxis-g0NloYEF.js → useSurfaceAxis-Ci7Dnaw2.js} +1 -1
- package/dist/{useTouchGate-CBZTD4SD.js → useTouchGate-B1Lf9XqN.js} +1 -1
- package/dist/{vendor-CKmzio-i.js → vendor-B2qOlYY3.js} +24 -11
- package/dist/virtual.d.ts +1 -0
- package/dist/virtual.js +225 -0
- package/dist/watercolor-dot.js +107 -74
- package/dist/writeVelocityWeight-Bh83xZfs.js +19 -0
- package/package.json +140 -9
- package/src/styles/animations.css +13 -3
- package/src/styles/cards.css +271 -2
- package/src/styles/completion-seal.css +131 -0
- package/src/styles/configurator.css +221 -1
- package/src/styles/critical-partition.mjs +66 -11
- package/src/styles/dock/adaptive-legibility.css +119 -0
- package/src/styles/dock/cta-seat.css +87 -0
- package/src/styles/dock/density.css +167 -6
- package/src/styles/dock/fission-bridge.css +552 -0
- package/src/styles/dock/layers.css +90 -78
- package/src/styles/dock/morph-bridge.css +67 -18
- package/src/styles/dock/morph.css +57 -118
- package/src/styles/dock/overflow.css +12 -0
- package/src/styles/dock/search.css +68 -0
- package/src/styles/dock/shape.css +250 -0
- package/src/styles/dock/shell.css +24 -8
- package/src/styles/dock/stack-rail.css +352 -0
- package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/src/styles/dock-controls/icon-button.css +46 -0
- package/src/styles/dock-controls/triggers.css +23 -1
- package/src/styles/dock-controls.css +18 -0
- package/src/styles/dock.css +27 -2
- package/src/styles/drawer.css +164 -0
- package/src/styles/glass/accent-tone.css +66 -0
- package/src/styles/glass/control-surfaces.css +167 -0
- package/src/styles/glass/glass-atom.css +244 -0
- package/src/styles/glass/glass-capsule.css +143 -0
- package/src/styles/glass/glass-chip.css +215 -0
- package/src/styles/glass/ladder.css +67 -17
- package/src/styles/glass/liquid-enter.css +252 -0
- package/src/styles/glass/liquid-morph.css +850 -0
- package/src/styles/glass/material.css +70 -1
- package/src/styles/glass/reveal.css +22 -2
- package/src/styles/glass/rim.css +31 -9
- package/src/styles/glass/surfaces.css +81 -150
- package/src/styles/glass.css +21 -0
- package/src/styles/icon-chip.css +45 -0
- package/src/styles/index.css +26 -0
- package/src/styles/jubilance.css +65 -0
- package/src/styles/motion/morph-field.css +229 -0
- package/src/styles/paper.css +230 -14
- package/src/styles/scroll-choreography.css +135 -78
- package/src/styles/scroll-chrome.css +123 -0
- package/src/styles/scroll-driven.css +38 -0
- package/src/styles/segmented-tabs.css +110 -36
- package/src/styles/select.css +151 -0
- package/src/styles/theme/bridges.css +22 -0
- package/src/styles/theme/radius.css +18 -1
- package/src/styles/tokens/color-radius.css +14 -4
- package/src/styles/tokens/dark-arm.css +94 -12
- package/src/styles/tokens/glass-deep.css +33 -4
- package/src/styles/tokens/glass-fx.css +122 -1
- package/src/styles/tokens/glass.css +226 -34
- package/src/styles/tokens/light-dark.css +3 -3
- package/src/styles/tokens/offsets.css +27 -0
- package/src/styles/tokens/property-regs.css +277 -0
- package/src/styles/tokens/scale-paper.css +86 -30
- package/src/styles/tokens/scheme-motion.css +106 -133
- package/src/styles/tokens/scheme-spring.css +239 -0
- package/src/styles/tokens/scroll-tokens.css +15 -15
- package/src/styles/tokens/shadow.css +73 -13
- package/src/styles/tokens/sizing-config.css +110 -0
- package/src/styles/tokens/sizing.css +55 -104
- package/src/styles/tokens.css +14 -2
- package/src/styles/typography/semantic.css +18 -5
- package/src/styles/utilities/a11y-overrides.css +20 -5
- package/src/styles/utilities/base-misc.css +52 -0
- package/src/styles/utilities/btn.css +84 -3
- package/src/styles/utilities/components.css +31 -6
- package/src/styles/utilities/metal.css +26 -0
- package/dist/ContextMenuContent-uWnVxDab.js +0 -85
- package/dist/DialogContent-DcKK8k9i.js +0 -103
- package/dist/DialogFooter-BZNX5aVr.js +0 -165
- package/dist/HoverCardContent-b2uaAMRR.js +0 -83
- package/dist/Input-h9v5LeXf.js +0 -55
- package/dist/NumberFieldContent-Cq7EzX-U.js +0 -138
- package/dist/PaperBackdrop-Vf3tlpvd.js +0 -31
- package/dist/SelectScrollDownButton-CrA8F0iV.js +0 -252
- package/dist/Separator-pKF0oA4M.js +0 -37
- package/dist/Switch-CwYNf8bo.js +0 -47
- package/dist/TooltipProvider-rzvnXz60.js +0 -104
- package/dist/badge-D9XWW4GT.js +0 -53
- package/dist/button-DYCUa-tH.js +0 -126
- package/dist/color-DweYl7pE.js +0 -86
- package/dist/components/custom/concentric/composables/ringField.d.ts +0 -44
- package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +0 -35
- package/dist/components/custom/constellation/constellationDraw.d.ts +0 -30
- package/dist/components/custom/dock/DockRail.vue.d.ts +0 -89
- package/dist/createCanvasLifecycle-CHD5XrDW.js +0 -82
- package/dist/dockContext-BNfyPLe9.js +0 -17
- package/dist/procedural-color.wgsl-CToRHugY.js +0 -224
- package/dist/resolveCanvasColor-CUyHr5Uu.js +0 -11
- package/dist/slider-DVb4HXU-.js +0 -142
- package/dist/springPresets-CFQGQfdl.js +0 -40
- package/dist/styles/dock/rail-extend.css +0 -397
- package/dist/useLiquidPress-kfb4KX79.js +0 -39
- package/dist/usePointerVelocityField-JbRd5CrM.js +0 -137
- package/dist/useRAFLoop-UYa4zoiN.js +0 -109
- package/dist/useSpringPress-BsqPr7FJ.js +0 -34
- package/src/styles/dock/rail-extend.css +0 -397
- /package/dist/{CollapsibleContent-68dEXIAl.js → CollapsibleContent-D7UNsXQr.js} +0 -0
- /package/dist/{InstrumentChassis-Bx0F_q5g.js → InstrumentChassis-UUJX0-mW.js} +0 -0
- /package/dist/{Label-C2ejNWeC.js → Label-B_HPqi_q.js} +0 -0
- /package/dist/{ModalOverlay-D1VrWyoi.js → ModalOverlay-DfAf7o15.js} +0 -0
- /package/dist/{SelectGroup-DwwjicPY.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-gLzyemvl.js} +0 -0
- /package/dist/{compile-CQEFRTmx.js → compile-INR_tPk_.js} +0 -0
- /package/dist/{constants-BPOqYJAm.js → constants-BWj7DkMn.js} +0 -0
- /package/dist/{createContext-CpBNTRMI.js → createContext-Cd23P9j0.js} +0 -0
- /package/dist/{math-BINYmg5z.js → math-5RcIgCB4.js} +0 -0
- /package/dist/{menuItemVariants-D8VNHq22.js → menuItemVariants-DAXquKja.js} +0 -0
- /package/dist/{prng-Za0Rmgag.js → prng-B5tIXTtj.js} +0 -0
- /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-B4HO9LXG.js} +0 -0
- /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-DO8Vl4gs.js} +0 -0
- /package/dist/{useInterval-CvK1mL92.js → useInterval-BVUI-sez.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BEut54Tk.js} +0 -0
- /package/dist/{useResizeObserver-Bpoi7tRE.js → useResizeObserver-DdEn3v2f.js} +0 -0
- /package/dist/{useResolveTokenColor-vAylyR0x.js → useResolveTokenColor-ChOnCckA.js} +0 -0
- /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-A0M6qRl7.js} +0 -0
- /package/dist/{useSortable-DHjtZSEd.js → useSortable-DQV_UNDw.js} +0 -0
- /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-Bma3UlKA.js} +0 -0
- /package/dist/{useTimer-BHJOKr35.js → useTimer-BBLGPXR8.js} +0 -0
- /package/dist/{useUserInvalidAria-y5namzeE.js → useUserInvalidAria-EmmwWPOl.js} +0 -0
- /package/dist/{useViewportReady-anbac3m6.js → useViewportReady-C9pYnn7K.js} +0 -0
- /package/dist/{vReveal-Czsb7zQC.js → vReveal-CT1KtwZA.js} +0 -0
- /package/dist/{vSpecular-CQFmLNzA.js → vSpecular-EX7loENl.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./constants-
|
|
1
|
+
import { n as e, t } from "./constants-BWj7DkMn.js";
|
|
2
2
|
import { getCurrentScope as n, onScopeDispose as r, readonly as i, ref as a, shallowRef as o, toValue as s, watch as c } from "vue";
|
|
3
3
|
import { SmoothProgress as l } from "@mkbabb/keyframes.js";
|
|
4
4
|
//#region src/composables/motion/useAnimatedNumber.ts
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./FadingScroll-
|
|
3
|
-
import { i as n } from "./ConfiguratorRow-
|
|
4
|
-
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, reactive as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, toRaw as y, unref as b, withCtx as x } from "vue";
|
|
2
|
+
import { t } from "./FadingScroll-P8B30rAD.js";
|
|
3
|
+
import { i as n } from "./ConfiguratorRow-YMXdINHx.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, reactive as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, toRaw as y, unref as b, withCtx as x, withModifiers as S } from "vue";
|
|
5
5
|
//#region src/components/custom/configurator/Configurator.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var C = ["data-aside-side", "data-gallery"], w = {
|
|
7
7
|
key: 0,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
"data-gallery-dock": "",
|
|
9
|
+
class: "configurator-presets shrink-0 px-3 py-2"
|
|
10
|
+
}, T = [
|
|
11
11
|
"data-active",
|
|
12
|
+
"aria-pressed",
|
|
12
13
|
"onClick"
|
|
13
|
-
], w = { class: "flex flex-col" },
|
|
14
|
-
key:
|
|
14
|
+
], E = { class: "configurator-stage relative min-h-0 min-w-0 overflow-hidden" }, D = { class: "flex flex-col" }, O = {
|
|
15
|
+
key: 1,
|
|
15
16
|
class: "configurator-controls flex-1 min-h-0 overflow-visible"
|
|
16
|
-
},
|
|
17
|
-
key:
|
|
17
|
+
}, k = { class: "flex flex-col" }, A = {
|
|
18
|
+
key: 2,
|
|
18
19
|
class: "configurator-footer shrink-0 border-t px-3 py-2"
|
|
19
|
-
},
|
|
20
|
+
}, j = /* @__PURE__ */ u({
|
|
20
21
|
__name: "Configurator",
|
|
21
22
|
props: {
|
|
22
23
|
presets: {},
|
|
@@ -26,6 +27,7 @@ var S = {
|
|
|
26
27
|
scrollMode: { default: "auto" },
|
|
27
28
|
density: { default: "comfortable" },
|
|
28
29
|
asideSide: { default: "right" },
|
|
30
|
+
galleryPlacement: { default: "aside" },
|
|
29
31
|
asideWidth: {},
|
|
30
32
|
class: { type: [
|
|
31
33
|
Boolean,
|
|
@@ -43,42 +45,44 @@ var S = {
|
|
|
43
45
|
setup(u, { emit: m }) {
|
|
44
46
|
let h = u;
|
|
45
47
|
n(i(() => h.density));
|
|
46
|
-
let y = m,
|
|
48
|
+
let y = m, j = i(() => e("configurator glass-floating rounded-panel border border-border/60 overflow-hidden", "grid grid-cols-1", "grid-rows-[auto_minmax(var(--configurator-stage-min,18rem),auto)_minmax(0,1fr)]", "min-h-0", h.class)), M = i(() => {
|
|
47
49
|
if (h.asideWidth == null) return;
|
|
48
50
|
let [e, t] = Array.isArray(h.asideWidth) ? h.asideWidth : [h.asideWidth, h.asideWidth];
|
|
49
51
|
return {
|
|
50
52
|
"--configurator-aside-min": e,
|
|
51
53
|
"--configurator-aside-max": t
|
|
52
54
|
};
|
|
53
|
-
}),
|
|
55
|
+
}), N = i(() => h.asideSide === "left" ? "lg:border-r lg:border-l-0" : "lg:border-l"), P = i(() => h.scrollMode !== "never");
|
|
54
56
|
return (n, i) => (p(), s("section", {
|
|
55
57
|
"data-slot": "configurator",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
"data-aside-side": u.asideSide,
|
|
59
|
+
"data-gallery": u.galleryPlacement,
|
|
60
|
+
class: d(j.value),
|
|
61
|
+
style: f(M.value)
|
|
62
|
+
}, [
|
|
63
|
+
n.$slots.presets || u.presets && u.presets.length > 0 ? (p(), s("div", w, [_(n.$slots, "presets", {
|
|
60
64
|
presets: u.presets,
|
|
61
65
|
activePreset: u.activePreset
|
|
62
66
|
}, () => [l(b(t), {
|
|
63
67
|
axis: "x",
|
|
64
|
-
class: "flex gap-2 scrollbar-hidden",
|
|
65
|
-
role: "
|
|
68
|
+
class: "configurator-gallery-track flex gap-2 scrollbar-hidden",
|
|
69
|
+
role: "group",
|
|
66
70
|
"aria-label": "Presets"
|
|
67
71
|
}, {
|
|
68
72
|
default: x(() => [(p(!0), s(r, null, g(u.presets, (t) => (p(), s("button", {
|
|
69
73
|
key: t.key,
|
|
70
74
|
type: "button",
|
|
71
|
-
|
|
72
|
-
"data-slot": "configurator-preset",
|
|
73
|
-
"aria-selected": t.key === u.activePreset,
|
|
75
|
+
"data-preset-tile": "",
|
|
74
76
|
"data-active": t.key === u.activePreset || void 0,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
"aria-pressed": t.key === u.activePreset,
|
|
78
|
+
class: d(b(e)("configurator-preset-chip glass-capsule glass-capsule-hover shadow-cartoon focus-ring shrink-0 px-3 py-1 text-xs font-medium text-foreground", t.key === u.activePreset && "is-active")),
|
|
79
|
+
onClick: S((e) => y("select-preset", t.key), ["stop"])
|
|
80
|
+
}, v(t.label), 11, T))), 128))]),
|
|
78
81
|
_: 1
|
|
79
82
|
})])])) : o("", !0),
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
c("div", E, [_(n.$slots, "stage")]),
|
|
84
|
+
c("aside", { class: d(b(e)("configurator-aside flex min-h-0 min-w-0 flex-col border-t lg:border-t-0", N.value)) }, [P.value ? (p(), a(b(t), {
|
|
85
|
+
key: 0,
|
|
82
86
|
axis: "y",
|
|
83
87
|
class: "configurator-controls flex-1 min-h-0 scrollbar-thin"
|
|
84
88
|
}, {
|
|
@@ -86,20 +90,19 @@ var S = {
|
|
|
86
90
|
layers: u.layers,
|
|
87
91
|
activeLayer: u.activeLayer,
|
|
88
92
|
selectLayer: (e) => y("select-layer", e)
|
|
89
|
-
}, () => [c("div",
|
|
93
|
+
}, () => [c("div", D, [_(n.$slots, "default")])])]),
|
|
90
94
|
_: 3
|
|
91
|
-
})) : (p(), s("div",
|
|
95
|
+
})) : (p(), s("div", O, [_(n.$slots, "controls", {
|
|
92
96
|
layers: u.layers,
|
|
93
97
|
activeLayer: u.activeLayer,
|
|
94
98
|
selectLayer: (e) => y("select-layer", e)
|
|
95
|
-
}, () => [c("div",
|
|
96
|
-
|
|
97
|
-
], 2)], 6));
|
|
99
|
+
}, () => [c("div", k, [_(n.$slots, "default")])])])), n.$slots.footer ? (p(), s("div", A, [_(n.$slots, "footer", { reset: () => y("reset") })])) : o("", !0)], 2)
|
|
100
|
+
], 14, C));
|
|
98
101
|
}
|
|
99
102
|
});
|
|
100
103
|
//#endregion
|
|
101
104
|
//#region src/components/custom/configurator/useConfiguratorState.ts
|
|
102
|
-
function
|
|
105
|
+
function M(e) {
|
|
103
106
|
let t = y(e);
|
|
104
107
|
if (typeof structuredClone != "function") throw Error("[glass-ui:configurator] structuredClone is unavailable in this runtime. Pass a custom clone via ConfiguratorStateOptions.clone for environments without structured-clone support.");
|
|
105
108
|
try {
|
|
@@ -108,11 +111,11 @@ function k(e) {
|
|
|
108
111
|
throw Error("[glass-ui:configurator] structuredClone failed: " + (e instanceof Error ? e.message : String(e)) + ". Preset values must be structured-cloneable (no functions, symbols, DOM nodes, or class instances). Pass a custom clone via ConfiguratorStateOptions.clone if the data shape requires it.");
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
|
-
function
|
|
114
|
+
function N(e, t) {
|
|
112
115
|
return JSON.stringify(e) === JSON.stringify(t);
|
|
113
116
|
}
|
|
114
|
-
function
|
|
115
|
-
let t = e.clone ??
|
|
117
|
+
function P(e) {
|
|
118
|
+
let t = e.clone ?? M, n = e.equals ?? N, r = e.presets, a = e.cloneMode ?? "commit-on-write", o = e.initialPreset ?? (r.length > 0 ? r[0].key : void 0), s = o ? r.find((e) => e.key === o) : void 0, c = m(s ? t(s.config) : {}), l = h(o), u = a === "per-preset" ? Object.fromEntries(r.map((e) => [e.key, t(e.config)])) : null, d = i(() => l.value), f = i(() => {
|
|
116
119
|
let e = l.value;
|
|
117
120
|
if (!e) return !1;
|
|
118
121
|
let t = r.find((t) => t.key === e);
|
|
@@ -158,4 +161,4 @@ function j(e) {
|
|
|
158
161
|
};
|
|
159
162
|
}
|
|
160
163
|
//#endregion
|
|
161
|
-
export {
|
|
164
|
+
export { j as n, P as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/components/ui/_shared/useControlSize.ts
|
|
2
|
+
function e(e = "default") {
|
|
3
|
+
return e === "sm" ? "[--control-pill-h:var(--control-h-sm)] [--control-pill-text:var(--control-text-sm)]" : e === "lg" ? "[--control-pill-h:var(--control-h-lg)]" : "";
|
|
4
|
+
}
|
|
5
|
+
function t(e = "default") {
|
|
6
|
+
return e === "sm" ? "[--switch-track-h:calc(var(--control-h-sm)*0.6)]" : e === "lg" ? "[--switch-track-h:calc(var(--control-h-lg)*0.6)]" : "";
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as n, e as t };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { n as e } from "./springPresets-DfoQ6XRY.js";
|
|
2
|
+
import { onScopeDispose as t, readonly as n, ref as r } from "vue";
|
|
3
|
+
import { ElementMorph as i, springTimingFunction as a } from "@mkbabb/keyframes.js";
|
|
4
|
+
//#region src/composables/motion/useDockCtaReceive.ts
|
|
5
|
+
function o() {
|
|
6
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
7
|
+
}
|
|
8
|
+
function s(e) {
|
|
9
|
+
if (!e) return null;
|
|
10
|
+
if (e instanceof HTMLElement) return e;
|
|
11
|
+
let t = e.$el;
|
|
12
|
+
return t instanceof HTMLElement ? t : null;
|
|
13
|
+
}
|
|
14
|
+
function c(c, l) {
|
|
15
|
+
let u = l.respectReducedMotion !== !1, d = l.blur ?? 4, { response: f, dampingFraction: p } = e(l.preset ?? "snappy"), m = a({
|
|
16
|
+
response: f,
|
|
17
|
+
dampingFraction: p
|
|
18
|
+
}), h = f * 4 * 1e3, g = null, _ = 0, v = 0, y = r(!1);
|
|
19
|
+
function b() {
|
|
20
|
+
let e = s(l.dockControl.value);
|
|
21
|
+
e && (e.setAttribute("data-cta-pending", ""), y.value = !0);
|
|
22
|
+
}
|
|
23
|
+
function x() {
|
|
24
|
+
y.value = !1;
|
|
25
|
+
let e = s(l.dockControl.value);
|
|
26
|
+
e && e.removeAttribute("data-cta-pending");
|
|
27
|
+
}
|
|
28
|
+
function S(e) {
|
|
29
|
+
e.style.transform = "", e.style.transformOrigin = "", e.style.opacity = "", e.style.filter = "";
|
|
30
|
+
}
|
|
31
|
+
function C() {
|
|
32
|
+
_ && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(_), _ = 0;
|
|
33
|
+
}
|
|
34
|
+
function w() {
|
|
35
|
+
x(), l.onReceived?.();
|
|
36
|
+
}
|
|
37
|
+
function T() {
|
|
38
|
+
let e = s(c.value);
|
|
39
|
+
if (!e) return;
|
|
40
|
+
C();
|
|
41
|
+
let t = e.getBoundingClientRect(), n = s(l.dockControl.value);
|
|
42
|
+
if (!n) {
|
|
43
|
+
e.style.opacity = "0", w();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
let r = n.getBoundingClientRect();
|
|
47
|
+
if (u && o()) {
|
|
48
|
+
S(e), e.style.opacity = "0", w();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
g = new i({
|
|
52
|
+
x: t.x,
|
|
53
|
+
y: t.y,
|
|
54
|
+
width: t.width,
|
|
55
|
+
height: t.height
|
|
56
|
+
}, {
|
|
57
|
+
x: r.x,
|
|
58
|
+
y: r.y,
|
|
59
|
+
width: r.width,
|
|
60
|
+
height: r.height
|
|
61
|
+
}, { transformOrigin: "center center" }), v = 0;
|
|
62
|
+
let a = (t) => {
|
|
63
|
+
if (!g || !c.value) return;
|
|
64
|
+
v === 0 && (v = t);
|
|
65
|
+
let n = Math.min(1, (t - v) / h), r = m.fn(n);
|
|
66
|
+
g.apply(e, r), e.style.opacity = String(Math.min(1, Math.max(0, 1 - r)));
|
|
67
|
+
let i = d * Math.min(1, Math.max(0, r));
|
|
68
|
+
e.style.filter = `blur(${i.toFixed(2)}px)`, n < 1 && typeof requestAnimationFrame == "function" ? _ = requestAnimationFrame(a) : (e.style.opacity = "0", g = null, _ = 0, w());
|
|
69
|
+
};
|
|
70
|
+
typeof requestAnimationFrame == "function" ? _ = requestAnimationFrame(a) : (S(e), e.style.opacity = "0", w());
|
|
71
|
+
}
|
|
72
|
+
function E() {
|
|
73
|
+
C(), g = null;
|
|
74
|
+
let e = s(c.value);
|
|
75
|
+
e && S(e);
|
|
76
|
+
}
|
|
77
|
+
return t(() => {
|
|
78
|
+
C(), g = null;
|
|
79
|
+
}), {
|
|
80
|
+
receive: T,
|
|
81
|
+
reset: E,
|
|
82
|
+
setPending: b,
|
|
83
|
+
clearPending: x,
|
|
84
|
+
pending: n(y)
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { c as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as e } from "./springPresets-DfoQ6XRY.js";
|
|
2
|
+
import { t } from "./useLiquidFlex-Cc6PjVJD.js";
|
|
3
3
|
import { computed as n, onScopeDispose as r, readonly as i, ref as a } from "vue";
|
|
4
4
|
import { Draggable as o, SpringProgress as s, decayRest as c } from "@mkbabb/keyframes.js";
|
|
5
5
|
//#region src/composables/motion/useDragMorph.ts
|
|
@@ -7,7 +7,7 @@ function l() {
|
|
|
7
7
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
8
8
|
}
|
|
9
9
|
function u(u) {
|
|
10
|
-
let d = () => typeof u.axis == "function" ? u.axis() : u.axis, f = () => typeof u.snapTargets == "function" ? u.snapTargets() : u.snapTargets, p = u.respectReducedMotion !== !1, m = a(!1), h = a(0), { response: g, dampingFraction: _ } =
|
|
10
|
+
let d = () => typeof u.axis == "function" ? u.axis() : u.axis, f = () => typeof u.snapTargets == "function" ? u.snapTargets() : u.snapTargets, p = u.respectReducedMotion !== !1, m = a(!1), h = a(0), { response: g, dampingFraction: _ } = e("snappy"), v = null, y = null;
|
|
11
11
|
function b() {
|
|
12
12
|
if (v) return v;
|
|
13
13
|
let e = new s({
|
|
@@ -22,7 +22,7 @@ function u(u) {
|
|
|
22
22
|
}
|
|
23
23
|
}), e.play(() => {}), e;
|
|
24
24
|
}
|
|
25
|
-
let x =
|
|
25
|
+
let x = t({
|
|
26
26
|
from: 0,
|
|
27
27
|
to: 1,
|
|
28
28
|
axis: "width",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { onMounted as e, onScopeDispose as t, readonly as n, ref as r } from "vue";
|
|
2
|
+
//#region src/composables/dom/useDragVelocity.ts
|
|
3
|
+
function i() {
|
|
4
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
5
|
+
}
|
|
6
|
+
function a(a) {
|
|
7
|
+
let o = () => typeof a.axis == "function" ? a.axis() : a.axis ?? "x", s = a.gain ?? .06, c = a.clamp ?? .7, l = a.respectReducedMotion !== !1, u = r(!1), d = 0, f = 0, p = 0, m = 0, h = !1, g = 0;
|
|
8
|
+
function _(e) {
|
|
9
|
+
let t = a.host();
|
|
10
|
+
t && t.style.setProperty("--atom-drag-v", `${e}`);
|
|
11
|
+
}
|
|
12
|
+
function v(e) {
|
|
13
|
+
let t = Math.tanh(s * Math.abs(e));
|
|
14
|
+
return t > c ? c : t;
|
|
15
|
+
}
|
|
16
|
+
function y(e) {
|
|
17
|
+
if (!h) {
|
|
18
|
+
d = 0;
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let t = p ? e - p : 16.7;
|
|
22
|
+
p = e;
|
|
23
|
+
let n = v(g / t * 16.7);
|
|
24
|
+
m = m * .65 + n * .35, g *= .6, _(Number(m.toFixed(4))), d = requestAnimationFrame(y);
|
|
25
|
+
}
|
|
26
|
+
function b(e) {
|
|
27
|
+
if (!h) return;
|
|
28
|
+
let t = o() === "y" ? e.clientY : e.clientX;
|
|
29
|
+
g += t - f, f = t;
|
|
30
|
+
}
|
|
31
|
+
function x(e) {
|
|
32
|
+
if (h = !0, u.value = !0, f = o() === "y" ? e.clientY : e.clientX, p = 0, g = 0, m = 0, l && i()) {
|
|
33
|
+
_(0);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
typeof window < "u" && window.addEventListener("pointermove", b, { passive: !0 }), d ||= requestAnimationFrame(y);
|
|
37
|
+
}
|
|
38
|
+
function S() {
|
|
39
|
+
h = !1, u.value = !1, d &&= (cancelAnimationFrame(d), 0), typeof window < "u" && window.removeEventListener("pointermove", b), m = 0, g = 0, _(0);
|
|
40
|
+
}
|
|
41
|
+
function C() {
|
|
42
|
+
h && S();
|
|
43
|
+
}
|
|
44
|
+
let w = null;
|
|
45
|
+
e(() => {
|
|
46
|
+
w = a.host(), w && w.addEventListener("pointerdown", x);
|
|
47
|
+
}), typeof window < "u" && (window.addEventListener("pointerup", C), window.addEventListener("pointercancel", C));
|
|
48
|
+
function T() {
|
|
49
|
+
S(), w?.removeEventListener("pointerdown", x), w = null, typeof window < "u" && (window.removeEventListener("pointerup", C), window.removeEventListener("pointercancel", C));
|
|
50
|
+
}
|
|
51
|
+
return t(T), {
|
|
52
|
+
dragging: n(u),
|
|
53
|
+
detach: T
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { a as t };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { computed as e, onScopeDispose as t, ref as n, watch as r } from "vue";
|
|
2
|
+
//#region src/components/custom/search/composables/fuzzySearchIndex.ts
|
|
3
|
+
function i(e, t) {
|
|
4
|
+
let n = e.length, r = t.length;
|
|
5
|
+
if (n === 0) return {
|
|
6
|
+
score: 0,
|
|
7
|
+
matches: []
|
|
8
|
+
};
|
|
9
|
+
if (n > r) return null;
|
|
10
|
+
let i = [], a = 0, o = 0, s = -2;
|
|
11
|
+
for (let c = 0; c < r && a < n; c++) {
|
|
12
|
+
if (e[a] !== t[c]) continue;
|
|
13
|
+
i.push(c);
|
|
14
|
+
let n = 1;
|
|
15
|
+
if (s === c - 1 && (n += 5), c === 0) n += 8;
|
|
16
|
+
else {
|
|
17
|
+
let e = t[c - 1];
|
|
18
|
+
" -_./\\:()".includes(e) ? n += 7 : t[c] >= "A" && t[c] <= "Z" && e >= "a" && e <= "z" && (n += 6);
|
|
19
|
+
}
|
|
20
|
+
a === c && (n += 3), o += n, s = c, a++;
|
|
21
|
+
}
|
|
22
|
+
return a < n ? null : (o -= Math.max(0, (r - n) * .1), {
|
|
23
|
+
score: o,
|
|
24
|
+
matches: i
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function a(e, t) {
|
|
28
|
+
if (!t) return null;
|
|
29
|
+
let n = 0, r = [];
|
|
30
|
+
for (let a of e) {
|
|
31
|
+
let e = i(a, t);
|
|
32
|
+
if (!e) return null;
|
|
33
|
+
n += e.score;
|
|
34
|
+
for (let t of e.matches) r.push(t);
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
score: n,
|
|
38
|
+
matches: r
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function o(e, t) {
|
|
42
|
+
let n = 0, r = [], i = [
|
|
43
|
+
[t._lc.label, 12],
|
|
44
|
+
[t._lc.type, 10],
|
|
45
|
+
[t._lc.text, 3]
|
|
46
|
+
];
|
|
47
|
+
for (let [o, s] of i) {
|
|
48
|
+
if (!o) continue;
|
|
49
|
+
let i = a(e, o);
|
|
50
|
+
i && i.score * s > n && (n = i.score * s, r = o === t._lc.label ? i.matches : []);
|
|
51
|
+
}
|
|
52
|
+
return n <= 0 ? null : {
|
|
53
|
+
score: n,
|
|
54
|
+
matches: r
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function s(e) {
|
|
58
|
+
return e.map((e) => ({
|
|
59
|
+
item: e,
|
|
60
|
+
_lc: {
|
|
61
|
+
label: e.label.toLowerCase(),
|
|
62
|
+
text: e.text.toLowerCase(),
|
|
63
|
+
type: e.type?.toLowerCase() ?? ""
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
var c = /* @__PURE__ */ new WeakMap();
|
|
68
|
+
function l(e) {
|
|
69
|
+
let t = c.get(e);
|
|
70
|
+
return t || (t = /* @__PURE__ */ new Map(), c.set(e, t)), t;
|
|
71
|
+
}
|
|
72
|
+
function u(e, t, n = 30) {
|
|
73
|
+
let r = t.toLowerCase().trim();
|
|
74
|
+
if (!r) return [];
|
|
75
|
+
let i = l(e), a = i.get(r);
|
|
76
|
+
if (a) return a.slice(0, n);
|
|
77
|
+
i.size > 200 && i.clear();
|
|
78
|
+
let s = r.split(/\s+/).filter(Boolean);
|
|
79
|
+
if (s.length === 0) return [];
|
|
80
|
+
let c = e;
|
|
81
|
+
if (r.length > 1) {
|
|
82
|
+
let e = r.slice(0, -1), t = i.get(e);
|
|
83
|
+
t && (c = t.map((e) => ({
|
|
84
|
+
item: e.item,
|
|
85
|
+
_lc: {
|
|
86
|
+
label: e.item.label.toLowerCase(),
|
|
87
|
+
text: e.item.text.toLowerCase(),
|
|
88
|
+
type: e.item.type?.toLowerCase() ?? ""
|
|
89
|
+
}
|
|
90
|
+
})));
|
|
91
|
+
}
|
|
92
|
+
let u = [];
|
|
93
|
+
for (let e of c) {
|
|
94
|
+
let t = o(s, e);
|
|
95
|
+
t && u.push({
|
|
96
|
+
item: e.item,
|
|
97
|
+
score: t.score,
|
|
98
|
+
matchIndices: t.matches
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return u.sort((e, t) => t.score - e.score), i.set(r, u), u.slice(0, n);
|
|
102
|
+
}
|
|
103
|
+
function d(e) {
|
|
104
|
+
if (e) {
|
|
105
|
+
c.delete(e);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
c = /* @__PURE__ */ new WeakMap();
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/custom/search/composables/useFuzzySearch.ts
|
|
112
|
+
function f(i) {
|
|
113
|
+
let a = typeof i.items == "function" ? i.items : () => i.items, o = i.debounceMs ?? 120, c = i.maxResults ?? 30, l = n(""), f = n(!1), p = n(!1), m = n(0), h = n(""), g = e(() => a()), _ = e(() => s(g.value)), v;
|
|
114
|
+
function y(e = v) {
|
|
115
|
+
e !== void 0 && (clearTimeout(e), v === e && (v = void 0));
|
|
116
|
+
}
|
|
117
|
+
r(l, (e, t, n) => {
|
|
118
|
+
if (y(), !e || o <= 0) {
|
|
119
|
+
h.value = e;
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
let r = setTimeout(() => {
|
|
123
|
+
v === r && (h.value = e, v = void 0);
|
|
124
|
+
}, o);
|
|
125
|
+
v = r, n(() => y(r));
|
|
126
|
+
}), r(g, () => {
|
|
127
|
+
y(), h.value = l.value, m.value = 0;
|
|
128
|
+
}, { deep: !0 });
|
|
129
|
+
let b = e(() => u(_.value, h.value, c));
|
|
130
|
+
r(b, () => {
|
|
131
|
+
m.value = 0;
|
|
132
|
+
});
|
|
133
|
+
function x(e) {
|
|
134
|
+
i.onSelect?.(e), S();
|
|
135
|
+
}
|
|
136
|
+
function S() {
|
|
137
|
+
f.value = !1, p.value = !1, y(), l.value = "", h.value = "", m.value = 0, d(_.value);
|
|
138
|
+
}
|
|
139
|
+
function C() {
|
|
140
|
+
f.value = !0;
|
|
141
|
+
}
|
|
142
|
+
function w() {
|
|
143
|
+
p.value = !p.value;
|
|
144
|
+
}
|
|
145
|
+
function T(e) {
|
|
146
|
+
switch (e.key) {
|
|
147
|
+
case "ArrowDown":
|
|
148
|
+
e.preventDefault(), m.value < b.value.length - 1 && m.value++;
|
|
149
|
+
break;
|
|
150
|
+
case "ArrowUp":
|
|
151
|
+
e.preventDefault(), m.value > 0 && m.value--;
|
|
152
|
+
break;
|
|
153
|
+
case "Enter":
|
|
154
|
+
e.preventDefault(), b.value[m.value] && x(b.value[m.value]);
|
|
155
|
+
break;
|
|
156
|
+
case "Escape":
|
|
157
|
+
e.preventDefault(), p.value ? p.value = !1 : S();
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return t(() => {
|
|
162
|
+
y(), d(_.value);
|
|
163
|
+
}, !0), {
|
|
164
|
+
query: l,
|
|
165
|
+
results: b,
|
|
166
|
+
isOpen: f,
|
|
167
|
+
isExpanded: p,
|
|
168
|
+
selectedIndex: m,
|
|
169
|
+
selectResult: x,
|
|
170
|
+
close: S,
|
|
171
|
+
open: C,
|
|
172
|
+
toggleExpanded: w,
|
|
173
|
+
onKeydown: T
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
export { u as a, i, s as n, d as r, f as t };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { t as e } from "./useLiquidFlex-Cc6PjVJD.js";
|
|
2
|
+
import { t } from "./useMorphField-ogBM7ubT.js";
|
|
3
|
+
import { onScopeDispose as n } from "vue";
|
|
4
|
+
//#region src/composables/motion/useGooMorph.ts
|
|
5
|
+
var r = t.lateralNeck, i = 1.618033988749895, a = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
6
|
+
function o(e, t, n) {
|
|
7
|
+
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
8
|
+
return r ? r.endsWith("ms") ? Number.parseFloat(r) || n : r.endsWith("s") ? (Number.parseFloat(r) || n / 1e3) * 1e3 : Number.parseFloat(r) || n : n;
|
|
9
|
+
}
|
|
10
|
+
function s(e, t) {
|
|
11
|
+
return Math.sin(Math.PI * Math.min(1, Math.max(0, e))) ** +t;
|
|
12
|
+
}
|
|
13
|
+
function c(t) {
|
|
14
|
+
let { barbellRefs: c, hostRef: l, vertical: u, centerOf: d, restSize: f, tokenPrefix: p = "pager-worm", neckGap: m = r.kPeak } = t, { bodyARef: h, bodyBRef: g, neckRef: _ } = c, v = `--${p}-flow`, y = `--${p}-duration`, b = `--${p}-max-stretch`, x = e({
|
|
15
|
+
from: 0,
|
|
16
|
+
to: 0,
|
|
17
|
+
axis: "width",
|
|
18
|
+
squishLaw: "linear",
|
|
19
|
+
maxStretch: () => {
|
|
20
|
+
let e = l.value;
|
|
21
|
+
if (!e) return 1.4;
|
|
22
|
+
let t = getComputedStyle(e).getPropertyValue(b).trim();
|
|
23
|
+
return Number(t) || 1.4;
|
|
24
|
+
}
|
|
25
|
+
}), S = 0, C = null;
|
|
26
|
+
function w() {
|
|
27
|
+
S &&= (cancelAnimationFrame(S), 0), C &&= (clearTimeout(C), null);
|
|
28
|
+
}
|
|
29
|
+
function T(e) {
|
|
30
|
+
let t = getComputedStyle(e).getPropertyValue("--goo-t").trim();
|
|
31
|
+
return Number.parseFloat(t) || 0;
|
|
32
|
+
}
|
|
33
|
+
function E(e) {
|
|
34
|
+
let t = getComputedStyle(e).getPropertyValue(`--${p}-neck-gap`).trim(), n = Number.parseFloat(t);
|
|
35
|
+
return Number.isFinite(n) && n > 0 ? n : m;
|
|
36
|
+
}
|
|
37
|
+
function D(e, t, n, r, i) {
|
|
38
|
+
u.value ? e.style.transform = `translateY(${t.toFixed(2)}px) translateX(${n.toFixed(2)}px) translateY(-50%) translateX(-50%) scaleY(${r.toFixed(4)}) scaleX(${i.toFixed(4)})` : e.style.transform = `translateX(${t.toFixed(2)}px) translateY(${n.toFixed(2)}px) translateX(-50%) translateY(-50%) scaleX(${r.toFixed(4)}) scaleY(${i.toFixed(4)})`;
|
|
39
|
+
}
|
|
40
|
+
function O(e, t, n, r, a) {
|
|
41
|
+
let o = h.value, c = g.value, d = _.value, p = l.value;
|
|
42
|
+
if (!o || !c || !d || !p) return;
|
|
43
|
+
let m = Math.max(1, f()) / i, v = t - e, y = r - n, b = y === 0 ? 1 : Math.min(1, Math.max(0, (a - n) / y)), x = E(p), S = 1 - s(b, 1) * (1 - x), C = (e + t) / 2, w = v / 2 * S, T = C - w, O = C + w, k = s(b, 1.5), A = Math.abs(O - T), j = getComputedStyle(p).getPropertyValue("--goo-weight").trim(), M = Math.min(1, Math.max(0, Number.parseFloat(j) || 0)), N = 1 + s(b, 1) * .12 * M, P = 1 / N, F = -m * .06 * s(b, 1) * M;
|
|
44
|
+
D(o, T, F, N, P), D(c, O, F, N, P);
|
|
45
|
+
let I = m > 0 ? A / m : 1;
|
|
46
|
+
u.value ? d.style.transform = `translateY(${C.toFixed(2)}px) translateY(-50%) scaleY(${I.toFixed(4)}) scaleX(${k.toFixed(4)})` : d.style.transform = `translateX(${C.toFixed(2)}px) translateX(-50%) scaleX(${I.toFixed(4)}) scaleY(${k.toFixed(4)})`, d.style.opacity = k.toFixed(4), p.style.setProperty("--goo-neck-girth", k.toFixed(4));
|
|
47
|
+
}
|
|
48
|
+
function k(e) {
|
|
49
|
+
let t = h.value, n = g.value, r = _.value, i = l.value, a = d(e);
|
|
50
|
+
!t || !n || !r || a == null || (D(t, a, 0, 1, 1), D(n, a, 0, 1, 1), r.style.opacity = "0", u.value ? r.style.transform = `translateY(${a.toFixed(2)}px) translateY(-50%) scaleY(0.0001) scaleX(0)` : r.style.transform = `translateX(${a.toFixed(2)}px) translateX(-50%) scaleX(0.0001) scaleY(0)`, i && (i.style.setProperty("--goo-neck-girth", "0"), i.style.setProperty("--stretch", "1")));
|
|
51
|
+
}
|
|
52
|
+
function A(e) {
|
|
53
|
+
w();
|
|
54
|
+
let t = l.value;
|
|
55
|
+
if (t) {
|
|
56
|
+
let n = t.style.transition;
|
|
57
|
+
t.style.transition = "none", t.style.setProperty("--goo-t", String(e)), t.offsetWidth, t.style.transition = n;
|
|
58
|
+
}
|
|
59
|
+
k(e);
|
|
60
|
+
}
|
|
61
|
+
function j(e) {
|
|
62
|
+
let t = l.value;
|
|
63
|
+
if (!t || !h.value || a()) return;
|
|
64
|
+
w();
|
|
65
|
+
let n = t.style.transition;
|
|
66
|
+
t.style.transition = "none", t.style.setProperty("--goo-t", String(e)), t.offsetWidth, t.style.transition = n;
|
|
67
|
+
let r = Math.floor(e), i = Math.ceil(e), o = d(r), s = d(i);
|
|
68
|
+
o == null || s == null || O(o, s, r, i, e);
|
|
69
|
+
}
|
|
70
|
+
function M(e, t) {
|
|
71
|
+
let n = l.value;
|
|
72
|
+
if (!h.value || !n || e === t) {
|
|
73
|
+
n && A(t);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (a()) {
|
|
77
|
+
A(t);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let r = d(e), i = d(t);
|
|
81
|
+
if (r == null || i == null) {
|
|
82
|
+
A(t);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
w();
|
|
86
|
+
let s = u.value ? n.offsetHeight || 1 : n.offsetWidth || 1, c = Math.min(Math.abs(i - r) / Math.max(1, s), 1), f = Math.max(.5, c);
|
|
87
|
+
x.squish(f), n.style.setProperty("--stretch", String(x.stretch.value));
|
|
88
|
+
let p = o(n, y, 1800), m = getComputedStyle(n).getPropertyValue(v).trim() || "ease-in-out";
|
|
89
|
+
n.style.transition = "none", n.style.setProperty("--goo-t", String(e)), n.offsetWidth, n.style.transition = `--goo-t ${p}ms ${m}`, n.style.setProperty("--goo-t", String(t)), C = setTimeout(() => {
|
|
90
|
+
x.squish(0), n.style.setProperty("--stretch", String(x.stretch.value)), C = null;
|
|
91
|
+
}, p * .82);
|
|
92
|
+
let g = performance.now(), _ = () => {
|
|
93
|
+
O(r, i, e, t, T(n)), performance.now() - g < p + 80 ? S = requestAnimationFrame(_) : (S = 0, k(t));
|
|
94
|
+
};
|
|
95
|
+
S = requestAnimationFrame(_);
|
|
96
|
+
}
|
|
97
|
+
return n(w), {
|
|
98
|
+
travel: M,
|
|
99
|
+
snap: A,
|
|
100
|
+
drive: j
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
export { c as t };
|