@mkbabb/glass-ui 4.1.0 → 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-8whJrLWt.js → CardAction-DlVP2evz.js} +58 -54
- package/dist/{CommandShortcut-D3yxgHNn.js → CommandShortcut-By-VQcLO.js} +3 -3
- package/dist/{ConfiguratorRow-CaP7U3ZA.js → ConfiguratorRow-YMXdINHx.js} +3 -3
- package/dist/{ContextMenuContent-B3ZsheLV.js → ContextMenuContent-CMWn6huB.js} +1 -1
- package/dist/{ContextMenuSubContent-DDRID3qC.js → ContextMenuSubContent-DvwWCUc0.js} +1 -1
- package/dist/{DataTable-Bc9kUtu_.js → DataTable-C4tG3eIJ.js} +4 -4
- package/dist/DialogContent-D8U9ZfWS.js +121 -0
- package/dist/{DialogScrollContent-TTuovQst.js → DialogScrollContent-BMekN7gq.js} +1 -1
- package/dist/{FadingScroll-DLRbH5Xr.js → FadingScroll-P8B30rAD.js} +1 -1
- package/dist/{HoverCardContent-Bel1gdLZ.js → HoverCardContent-DAmGYglo.js} +1 -1
- package/dist/{HoverPopover-BcIxvyqZ.js → HoverPopover-DYpBOzzF.js} +1 -1
- package/dist/{IconChip-DhbdGdFQ.js → IconChip-CQa7XZYc.js} +7 -5
- package/dist/{IconTooltip-B0zimd2H.js → IconTooltip-_df8M3xm.js} +1 -1
- package/dist/{Input-Cg9DF62r.js → Input-CyU4_hIC.js} +2 -2
- package/dist/{MetricBadge-RHdBP72w.js → MetricBadge-DQt_dGah.js} +1 -1
- package/dist/{Notification-CphK7AAm.js → Notification-BlSPJhtZ.js} +1 -1
- package/dist/{NumberFieldContent-D8cXeyO4.js → NumberFieldContent-Z3VxGu_6.js} +3 -3
- 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-CnqB7gLm.js → Progress-C9SsdwIZ.js} +1 -1
- package/dist/{ScrollingText-CTZbA_cG.js → ScrollingText-DY3W1Jfh.js} +2 -2
- package/dist/{SelectScrollDownButton-DAKCBEdW.js → SelectScrollDownButton-3mFHX_R-.js} +15 -12
- package/dist/{Switch-B8RscmRu.js → Switch-uf-UKPA2.js} +1 -1
- package/dist/{Toaster-D9qIHjBI.js → Toaster-ozrsR4mP.js} +1 -1
- package/dist/{ToggleGroupItem-BLtr3TJq.js → ToggleGroupItem-BpzaVzNm.js} +4 -4
- package/dist/{TooltipProvider-BJ_Y5EGX.js → TooltipProvider-QQVM_80r.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +1 -0
- package/dist/api/types-extra.d.ts +3 -1
- package/dist/api.js +2 -2
- package/dist/aurora.js +163 -131
- package/dist/badge-Bt14yURi.js +72 -0
- package/dist/badge.js +1 -1
- package/dist/border-progress.js +1 -1
- package/dist/button-D1W9PrzI.js +130 -0
- package/dist/button.js +1 -1
- package/dist/canvas.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +227 -98
- package/dist/chipVariants-BJQ0I2kB.js +18 -0
- package/dist/collapsible.js +1 -1
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +1 -1
- package/dist/components/custom/aurora/constants/presets.d.ts +29 -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/concentric/Concentric.vue.d.ts +15 -12
- package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +8 -3
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +8 -4
- package/dist/components/custom/concentric/composables/levelField.d.ts +50 -0
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +7 -4
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +3 -3
- package/dist/components/custom/concentric/constants.d.ts +62 -41
- 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/dock/DockDropdownTrigger.vue.d.ts +4 -3
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +10 -0
- package/dist/components/custom/dock/DockPopoverTrigger.vue.d.ts +19 -0
- package/dist/components/custom/dock/DockStack.vue.d.ts +35 -22
- package/dist/components/custom/dock/GlassDock.vue.d.ts +19 -3
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +18 -32
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +76 -145
- package/dist/components/custom/dock/composables/index.d.ts +1 -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/useDockShellProps.d.ts +38 -0
- package/dist/components/custom/dock/constants.d.ts +14 -3
- package/dist/components/custom/dock/index.d.ts +3 -0
- package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +21 -0
- 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 +28 -2
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -17
- package/dist/components/custom/dot-flow-field/constants.d.ts +51 -0
- package/dist/components/custom/dot-flow-field/index.d.ts +1 -1
- 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 +29 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +2 -1
- package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +10 -1
- package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +7 -0
- package/dist/components/custom/dot-matrix/constants.d.ts +14 -0
- package/dist/components/custom/dot-matrix/index.d.ts +1 -1
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +2 -2
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -1
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +4 -0
- package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +9 -0
- package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +11 -0
- package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +16 -1
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +22 -1
- package/dist/components/custom/fourier-field/constants.d.ts +53 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +1 -1
- package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -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/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 +50 -1
- package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +32 -3
- package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +14 -4
- package/dist/components/custom/goo-dot-matrix/constants.d.ts +55 -16
- package/dist/components/custom/goo-dot-matrix/index.d.ts +1 -1
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +2 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +1 -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/paper-backdrop/PaperBackdrop.vue.d.ts +18 -0
- package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +44 -29
- package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +2 -0
- package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +3 -1
- package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +2 -2
- package/dist/components/custom/paper-grid/constants.d.ts +44 -6
- package/dist/components/custom/paper-grid/index.d.ts +2 -2
- package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +1 -1
- package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -1
- package/dist/components/custom/selectable-chip/chipVariants.d.ts +39 -0
- package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +12 -20
- package/dist/components/custom/tabs/constants.d.ts +16 -8
- 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 +12 -10
- 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/card/Card.vue.d.ts +1 -1
- package/dist/components/ui/card/ScrollCard.vue.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts +2 -4
- 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/select/SelectContent.vue.d.ts +9 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +9 -0
- package/dist/composables/dom/index.d.ts +1 -0
- package/dist/composables/dom/useDragVelocity.d.ts +46 -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 +95 -2
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +40 -2
- package/dist/composables/glass/webgpu/index.d.ts +1 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +37 -0
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +49 -2
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +1 -1
- package/dist/composables/motion/core/index.d.ts +4 -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/springPresets.d.ts +16 -17
- 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/useDockCtaReceive.d.ts +10 -28
- 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/useScrollPin.d.ts +49 -0
- package/dist/composables/motion/useScrollScene.d.ts +67 -0
- package/dist/concentric.js +532 -563
- package/dist/configurator.js +2 -2
- package/dist/confirm-dialog.js +3 -3
- package/dist/constellation.js +4 -4
- 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.js +1 -1
- package/dist/dialog.js +3 -3
- package/dist/dock.js +1163 -618
- package/dist/dockContext-gFVS2gMg.js +18 -0
- package/dist/dom.js +7 -6
- package/dist/dot-flow-field.js +1114 -523
- package/dist/dot-matrix.js +348 -204
- package/dist/drawer.js +106 -96
- package/dist/{dropdown-menu-aJmV5SqE.js → dropdown-menu-CCfcCQ68.js} +3 -3
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.js +3 -3
- package/dist/expandable-container.js +2 -2
- package/dist/fading-scroll.js +1 -1
- package/dist/forms.js +6 -6
- package/dist/fourier-field.js +441 -197
- 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 +139 -135
- package/dist/goo-blob.js +11 -9
- package/dist/goo-dot-matrix.js +418 -198
- 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 +3 -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 +7 -7
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +42 -39
- package/dist/motion-curves.js +20 -14
- package/dist/motion.js +226 -26
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +1 -1
- package/dist/paper-backdrop.js +1 -1
- package/dist/paper-grid.js +315 -342
- package/dist/paperGrid-CXCSMbZ1.js +191 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-CvOUqtdY.js → presets-QvYgnFIZ.js} +13 -12
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/{resolveCanvasColor-yPyIpJt9.js → resolveCanvasColor-DsSJk06I.js} +5 -5
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +7 -7
- package/dist/select.js +3 -3
- package/dist/selectable-chip.js +18 -35
- package/dist/separator.js +1 -1
- package/dist/{sheet-B2flBfLH.js → sheet-DUCIoOe0.js} +3 -3
- package/dist/sheet.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/slider-CcICPe3u.js +149 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/{spectrum-walk-BVzA7Biz.js → spectrum-walk-cBNSx_zm.js} +1 -1
- package/dist/springPresets-DfoQ6XRY.js +64 -0
- package/dist/stacked-icons.js +54 -39
- package/dist/styles/cards.css +202 -2
- package/dist/styles/components.css +1 -3
- package/dist/styles/configurator.css +172 -7
- package/dist/styles/critical-partition.mjs +35 -2
- package/dist/styles/deferred.css +2 -0
- package/dist/styles/dock/adaptive-legibility.css +119 -0
- package/dist/styles/dock/density.css +18 -10
- package/dist/styles/dock/fission-bridge.css +552 -0
- package/dist/styles/dock/layers.css +88 -124
- package/dist/styles/dock/morph-bridge.css +15 -2
- package/dist/styles/dock/morph.css +45 -114
- package/dist/styles/dock/shape.css +137 -11
- package/dist/styles/dock/shell.css +1 -3
- package/dist/styles/dock/stack-rail.css +95 -7
- package/dist/styles/dock-controls/icon-button.css +34 -2
- package/dist/styles/dock-controls/triggers.css +23 -1
- package/dist/styles/dock-controls.css +18 -0
- package/dist/styles/dock.css +16 -1
- package/dist/styles/drawer.css +166 -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/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 +13 -1
- package/dist/styles/glass/surfaces.css +18 -8
- package/dist/styles/glass.css +11 -0
- package/dist/styles/icon-chip.css +45 -0
- package/dist/styles/index.css +11 -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/segmented-tabs.css +85 -51
- package/dist/styles/select.css +151 -0
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm.css +57 -8
- package/dist/styles/tokens/glass-deep.css +8 -4
- package/dist/styles/tokens/glass-fx.css +80 -2
- package/dist/styles/tokens/glass.css +140 -8
- package/dist/styles/tokens/light-dark.css +2 -2
- package/dist/styles/tokens/property-regs.css +144 -0
- package/dist/styles/tokens/scale-paper.css +20 -8
- package/dist/styles/tokens/scheme-motion.css +92 -157
- 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.css +9 -2
- package/dist/styles/utilities/btn.css +70 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +198 -181
- 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 +1 -1
- package/dist/{uniformBridgeWGPU-CtAKl45L.js → uniformBridgeWGPU-BCse1SHU.js} +191 -127
- package/dist/{useAnimatedNumber-CLrxicG9.js → useAnimatedNumber-BntskVdQ.js} +1 -1
- package/dist/{useConfiguratorState-4xblKfwd.js → useConfiguratorState-22BcULzF.js} +37 -35
- package/dist/useDockCtaReceive-DX7RDb6_.js +88 -0
- package/dist/{useDragMorph-BUgAC-zK.js → useDragMorph-DGLSewwB.js} +2 -2
- package/dist/useDragVelocity-CjcfX3dA.js +57 -0
- package/dist/useGooMorph-Cs13NgYL.js +104 -0
- package/dist/useGpuSubstrate-Ceet70xq.js +347 -0
- package/dist/{useViewTransition-CUI1nAgn.js → useHaptic-CPz5BT9I.js} +40 -1
- package/dist/{useLiquidFlex-UmA6LMZu.js → useLiquidFlex-Cc6PjVJD.js} +8 -3
- package/dist/useLiquidPress-CtOQ8Z0_.js +43 -0
- package/dist/useMorphField-ogBM7ubT.js +141 -0
- package/dist/{useScrollChrome-D66AVP7C.js → useScrollChrome-JuImi1DM.js} +2 -2
- package/dist/{useSpringMount-BWDnKIwh.js → useSpringMount-DFxtzmkR.js} +1 -1
- package/dist/{useSpringPress-B1-Czp-V.js → useSpringPress-VM9RgVq3.js} +1 -1
- package/dist/{useSurfaceAxis-g0NloYEF.js → useSurfaceAxis-Ci7Dnaw2.js} +1 -1
- package/dist/{useTouchGate-CBZTD4SD.js → useTouchGate-B1Lf9XqN.js} +1 -1
- package/dist/virtual.js +1 -1
- package/dist/watercolor-dot.js +16 -26
- package/dist/writeVelocityWeight-Bh83xZfs.js +19 -0
- package/package.json +14 -3
- package/src/styles/cards.css +202 -2
- package/src/styles/configurator.css +172 -7
- package/src/styles/critical-partition.mjs +35 -2
- package/src/styles/dock/adaptive-legibility.css +119 -0
- package/src/styles/dock/density.css +18 -10
- package/src/styles/dock/fission-bridge.css +552 -0
- package/src/styles/dock/layers.css +88 -124
- package/src/styles/dock/morph-bridge.css +15 -2
- package/src/styles/dock/morph.css +45 -114
- package/src/styles/dock/shape.css +137 -11
- package/src/styles/dock/shell.css +1 -3
- package/src/styles/dock/stack-rail.css +95 -7
- package/src/styles/dock-controls/icon-button.css +34 -2
- package/src/styles/dock-controls/triggers.css +23 -1
- package/src/styles/dock-controls.css +18 -0
- package/src/styles/dock.css +16 -1
- package/src/styles/drawer.css +164 -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/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 +13 -1
- package/src/styles/glass/surfaces.css +18 -8
- package/src/styles/glass.css +11 -0
- package/src/styles/icon-chip.css +45 -0
- package/src/styles/index.css +11 -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/segmented-tabs.css +85 -47
- package/src/styles/select.css +151 -0
- package/src/styles/tokens/color-radius.css +1 -1
- package/src/styles/tokens/dark-arm.css +57 -8
- package/src/styles/tokens/glass-deep.css +8 -4
- package/src/styles/tokens/glass-fx.css +80 -2
- package/src/styles/tokens/glass.css +140 -8
- package/src/styles/tokens/light-dark.css +2 -2
- package/src/styles/tokens/property-regs.css +144 -0
- package/src/styles/tokens/scale-paper.css +20 -8
- package/src/styles/tokens/scheme-motion.css +92 -157
- 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.css +9 -2
- package/src/styles/utilities/btn.css +70 -0
- package/dist/DialogContent-6JtTB5x2.js +0 -106
- package/dist/PagerDots-Cjx96la-.js +0 -98
- package/dist/PaperBackdrop-CqwjnfLv.js +0 -31
- package/dist/badge-D9XWW4GT.js +0 -53
- package/dist/button-5dY1Dvhd.js +0 -125
- package/dist/components/custom/concentric/composables/ringField.d.ts +0 -85
- package/dist/createCanvasLifecycle-Gh45Ce-p.js +0 -93
- package/dist/dockContext-BNfyPLe9.js +0 -17
- package/dist/slider-2A0rPn79.js +0 -142
- package/dist/springPresets-Ce7OYCm9.js +0 -46
- package/dist/useDockCtaReceive-DfFkmgL1.js +0 -82
- package/dist/useGpuSubstrate-4pTcp6mX.js +0 -294
- package/dist/useLiquidPress-BooG97RY.js +0 -39
- /package/dist/{CollapsibleContent-68dEXIAl.js → CollapsibleContent-D7UNsXQr.js} +0 -0
- /package/dist/{DialogFooter-9phqcRIS.js → DialogFooter-DoLy0ewI.js} +0 -0
- /package/dist/{InstrumentChassis-CxsHSyMj.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-BFiod7X2.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-C2UGOkXF.js → SelectSeparator-CNRGG7Ew.js} +0 -0
- /package/dist/{Separator-DQcwC2TR.js → Separator-Cf9-JFgi.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-gLzyemvl.js} +0 -0
- /package/dist/{color-Cs0-oxYL.js → color-B9jZdhJX.js} +0 -0
- /package/dist/{compile-nZ1xVYTp.js → compile-INR_tPk_.js} +0 -0
- /package/dist/{constants--C2DkLW8.js → constants-BWj7DkMn.js} +0 -0
- /package/dist/{createContext-CpBNTRMI.js → createContext-Cd23P9j0.js} +0 -0
- /package/dist/{dotMatrixField-D_x9_1qq.js → dotMatrixField-CRO0ZFk4.js} +0 -0
- /package/dist/{flow.glsl-B2P7e0MT.js → flow.glsl-DqEGRpl4.js} +0 -0
- /package/dist/{math-Eb0w3LqU.js → math-5RcIgCB4.js} +0 -0
- /package/dist/{menuItemVariants-D8VNHq22.js → menuItemVariants-DAXquKja.js} +0 -0
- /package/dist/{prng-B-d9eYX8.js → prng-B5tIXTtj.js} +0 -0
- /package/dist/{procedural-color.wgsl-m7Zgv35j.js → procedural-color.wgsl-C1Y5PkM6.js} +0 -0
- /package/dist/{scrollReader-DI1NWxUw.js → scrollReader-rc3Ns_NM.js} +0 -0
- /package/dist/{useControlSize-SH1UmJCi.js → useControlSize-DAZ062x7.js} +0 -0
- /package/dist/{useFuzzySearch-DIhcYtcw.js → useFuzzySearch-0fTYOhS4.js} +0 -0
- /package/dist/{useGlobalDark-CmjB9E32.js → useGlobalDark-B4HO9LXG.js} +0 -0
- /package/dist/{useIntersectionPause-Dbozzjgm.js → useIntersectionPause-DO8Vl4gs.js} +0 -0
- /package/dist/{useInterval-CNdua40W.js → useInterval-BVUI-sez.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BPRp33Im.js → useKeyboardShortcuts-BEut54Tk.js} +0 -0
- /package/dist/{usePointerVelocityField-QLsy3_kv.js → usePointerVelocityField-BrkqZFhj.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-c3yxmH6a.js → useScrollProgress-A0M6qRl7.js} +0 -0
- /package/dist/{useSortable-BVqlJRBR.js → useSortable-DQV_UNDw.js} +0 -0
- /package/dist/{useTextHighlight-NmBM5V_4.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-D9k0jADx.js → vReveal-CT1KtwZA.js} +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/** A 2-vector. */
|
|
2
|
-
export interface Vec2 {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* One CLEAN radial ring component. `amplitude` A_i, `wavelength` λ_i (so k_i = 2π/λ_i),
|
|
8
|
-
* `phase` φ_i. `ω_i = √(g·k_i)` is derived from the dispersion relation, not stored (the
|
|
9
|
-
* SAME dispersion the flow field's Gerstner sum uses — the ONE suite dispersion law). A
|
|
10
|
-
* family carries 1–2 clean low frequencies, NEVER a turbulence octave ladder (the noise
|
|
11
|
-
* amplifier that read as a blur).
|
|
12
|
-
*/
|
|
13
|
-
export interface RingComponent {
|
|
14
|
-
amplitude: number;
|
|
15
|
-
wavelength: number;
|
|
16
|
-
phase: number;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A ring origin in domain space [-1,1]² (multi-center → interference). `rotAlpha` is the
|
|
20
|
-
* per-family tilt of the ellipsoidal frame (radians) — two families at different tilts cross
|
|
21
|
-
* into rich moiré. It reuses the spare `centers[j].w` uniform lane (no byte-layout change).
|
|
22
|
-
*/
|
|
23
|
-
export interface RingCenter {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
/** Per-center weight (a far center contributes a fainter ring family). */
|
|
27
|
-
weight: number;
|
|
28
|
-
/** The per-family ellipsoid tilt (radians); 0 = the un-rotated frame. */
|
|
29
|
-
rotAlpha: number;
|
|
30
|
-
}
|
|
31
|
-
/** Deep-water gravity constant (normalized; scales the dispersion ω — shared with the flow field). */
|
|
32
|
-
export declare const RING_GRAVITY = 9.81;
|
|
33
|
-
/**
|
|
34
|
-
* The ellipsoidal radial distance ‖p − c‖_e = sqrt((dx/a)² + (dy/b)²) in the family's
|
|
35
|
-
* ROTATED frame R(−α): rotate (p − c) by −α, then scale each axis by (a,b). The axis ratio
|
|
36
|
-
* tilts the rings into ellipses; the rotation tilts the ellipse so crossing families read as
|
|
37
|
-
* distinct waves. The single radial metric the WGSL shader transcribes.
|
|
38
|
-
*/
|
|
39
|
-
export declare function ellipsoidalRadiusRot(p: Vec2, center: RingCenter, axisA: number, axisB: number): number;
|
|
40
|
-
/** The un-rotated ellipsoidal radius (rotAlpha = 0). Kept for the gate's axis-ratio assert. */
|
|
41
|
-
export declare function ellipsoidalRadius(p: Vec2, center: RingCenter, axisA: number, axisB: number): number;
|
|
42
|
-
/**
|
|
43
|
-
* |∇r| of the rotated ellipsoidal radius r = ‖R(−α)(p − c)‖_e. By the chain rule, with
|
|
44
|
-
* u = R(−α)(p − c) and the scaled coordinates (ux/a, uy/b):
|
|
45
|
-
*
|
|
46
|
-
* ∂r/∂p = Rᵀ · ( ux/a² , uy/b² ) / r → |∇r| = sqrt((ux/a²)² + (uy/b²)²) / r
|
|
47
|
-
*
|
|
48
|
-
* (the rotation Rᵀ is orthonormal so it does not change the magnitude). At r→0 the gradient
|
|
49
|
-
* is ill-defined; ε-clamp the denominator. This is the closed-form magnitude the IQ
|
|
50
|
-
* distance-estimation de = |sin(phase)| / (|cos(phase)|·k·|∇r|) divides by.
|
|
51
|
-
*/
|
|
52
|
-
export declare function ellipsoidalGradMag(p: Vec2, center: RingCenter, axisA: number, axisB: number): number;
|
|
53
|
-
/**
|
|
54
|
-
* The radial-Fourier ring-interference value f(p,t) ∈ ℝ — the multi-center weighted sum of
|
|
55
|
-
* CLEAN radial sinusoids. The SINGLE math source the WGSL `fs_main` + the GLSL fallback
|
|
56
|
-
* transcribe. `speed` scales the dispersion ω (the ring-travel speed). Returns the
|
|
57
|
-
* un-normalized field value (the BEAT ENVELOPE the shader tints through the palette).
|
|
58
|
-
*/
|
|
59
|
-
export declare function sampleRingField(p: Vec2, timeSec: number, centers: readonly RingCenter[], rings: readonly RingComponent[], axisA: number, axisB: number, speed: number): number;
|
|
60
|
-
/**
|
|
61
|
-
* The IQ gradient-normalized distance-to-isoline INK at p — the per-pixel line strength,
|
|
62
|
-
* the union (brightest-wins `max`) over every (family × ring) crest. For a sinusoid
|
|
63
|
-
* s = sin(phase), de ≈ |s| / |∇s| = |sin| / (|cos|·k·|∇r|) is the analytic (domain-units)
|
|
64
|
-
* distance to the nearest crest everywhere; the SHADER converts it to a constant PIXEL
|
|
65
|
-
* width via fwidth(phase): dePx = de·gradPhase / fwidth(phase) = |sin|/(|cos|·fwidth(phase)),
|
|
66
|
-
* then line = 1 − smoothstep(lineHalfW, lineHalfW+aa, dePx) with lineHalfW/aa in pixels. The
|
|
67
|
-
* JS takes `phaseDeriv` as the per-pixel phase derivative (the fwidth(phase) analogue) so a
|
|
68
|
-
* node round-trip matches the shader exactly; a bare call uses a representative default.
|
|
69
|
-
*
|
|
70
|
-
* Returns { ink, env } — ink ∈ [0,1] the line strength (the alpha/brightness), env the raw
|
|
71
|
-
* beat-envelope value (the hue driver, identical to sampleRingField).
|
|
72
|
-
*/
|
|
73
|
-
export declare function ringIsolineInk(p: Vec2, timeSec: number, centers: readonly RingCenter[], rings: readonly RingComponent[], axisA: number, axisB: number, speed: number, lineHalfW: number, aa: number, phaseDeriv?: number): {
|
|
74
|
-
ink: number;
|
|
75
|
-
env: number;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* Build a CLEAN beating ring FAMILY — 1–2 low-frequency radial sinusoids, NOT a turbulence
|
|
79
|
-
* octave ladder. `baseWavelength` ≈ 0.18 sets the ring spacing; a second harmonic at
|
|
80
|
-
* 0.5×base (optional) adds a subtle inner-ring texture without busying the field. The
|
|
81
|
-
* amplitudes are FLAT (energy is not the point — clean lines are), so each crest paints a
|
|
82
|
-
* crisp isoline. Distinct families get slightly different base wavelengths (a small Δλ) so
|
|
83
|
-
* they BEAT into the moiré envelope — the "distinct waves."
|
|
84
|
-
*/
|
|
85
|
-
export declare function buildRingFamily(baseWavelength: number, harmonics?: number, phaseSeed?: number): RingComponent[];
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var e = 2e3;
|
|
2
|
-
function t(t) {
|
|
3
|
-
let { canvas: n, buildContext: r, resize: i } = t, a = t.respectReducedMotion ?? t.mode !== "capture", o = /* @__PURE__ */ new Set();
|
|
4
|
-
t.mode === "capture" && o.add("manual");
|
|
5
|
-
let s = () => o.size === 0, c = 0, l = typeof performance < "u" ? performance.now() : 0, u = null, d = !1, f = !1, p = a && typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, m = p?.matches ?? !1;
|
|
6
|
-
function h() {
|
|
7
|
-
if (!s() || !u) return;
|
|
8
|
-
let e = (performance.now() - l) / 1e3, t = u.time ? u.time(e) : e;
|
|
9
|
-
u.frame(t), c = !m && u.shouldContinue() ? requestAnimationFrame(h) : 0;
|
|
10
|
-
}
|
|
11
|
-
function g() {
|
|
12
|
-
d && s() && !c && u && (c = requestAnimationFrame(h));
|
|
13
|
-
}
|
|
14
|
-
function _() {
|
|
15
|
-
let e = p?.matches ?? !1;
|
|
16
|
-
e !== m && (m = e, e || (l = performance.now()), g());
|
|
17
|
-
}
|
|
18
|
-
p?.addEventListener("change", _);
|
|
19
|
-
function v(e = "manual") {
|
|
20
|
-
let t = s();
|
|
21
|
-
o.add(e), t && !s() && (cancelAnimationFrame(c), c = 0);
|
|
22
|
-
}
|
|
23
|
-
function y(e = "manual") {
|
|
24
|
-
let t = !s();
|
|
25
|
-
o.delete(e), t && s() && d && u && (l = performance.now() - 1e3, i(), h());
|
|
26
|
-
}
|
|
27
|
-
let b = typeof document < "u";
|
|
28
|
-
function x() {
|
|
29
|
-
document.hidden ? v("tab-hidden") : y("tab-hidden");
|
|
30
|
-
}
|
|
31
|
-
b && document.addEventListener("visibilitychange", x), b && document.hidden && o.add("tab-hidden");
|
|
32
|
-
let S = null;
|
|
33
|
-
function C(e) {
|
|
34
|
-
e.skipped ? v("off-screen") : y("off-screen");
|
|
35
|
-
}
|
|
36
|
-
function w() {
|
|
37
|
-
if (S) return;
|
|
38
|
-
let e = n.parentElement;
|
|
39
|
-
e && (S = e, e.addEventListener("contentvisibilityautostatechange", C));
|
|
40
|
-
}
|
|
41
|
-
function T() {
|
|
42
|
-
S?.removeEventListener("contentvisibilityautostatechange", C), S = null;
|
|
43
|
-
}
|
|
44
|
-
function E() {
|
|
45
|
-
u = r(), i();
|
|
46
|
-
}
|
|
47
|
-
let D = [], O = 0, k = !1, A = () => typeof performance < "u" ? performance.now() : Date.now();
|
|
48
|
-
function j() {
|
|
49
|
-
O &&= (clearTimeout(O), 0);
|
|
50
|
-
}
|
|
51
|
-
function M() {
|
|
52
|
-
d || f || (t.bindContextEvents?.(() => {
|
|
53
|
-
f || k || (j(), O = setTimeout(() => {
|
|
54
|
-
O = 0, !(f || k) && (E(), s() && g());
|
|
55
|
-
}, 100));
|
|
56
|
-
}, () => {
|
|
57
|
-
u = null, cancelAnimationFrame(c), c = 0, j();
|
|
58
|
-
let t = A();
|
|
59
|
-
D.push(t), D = D.filter((n) => t - n <= e), D.length <= 1 && (k = !1), D.length > 3 && (k = !0);
|
|
60
|
-
}), E(), w(), d = !0, l = performance.now(), s() && (m ? h() : c = requestAnimationFrame(h)));
|
|
61
|
-
}
|
|
62
|
-
function N(e) {
|
|
63
|
-
d || M(), u?.frame(e);
|
|
64
|
-
}
|
|
65
|
-
function P() {
|
|
66
|
-
f = !0, cancelAnimationFrame(c), c = 0, j(), b && document.removeEventListener("visibilitychange", x), p?.removeEventListener("change", _), T(), t.unbindContextEvents?.(), u?.teardown?.(), u = null, o.clear();
|
|
67
|
-
}
|
|
68
|
-
return t.mode === "capture" && M(), {
|
|
69
|
-
arm: M,
|
|
70
|
-
suspend: v,
|
|
71
|
-
resume: y,
|
|
72
|
-
wake: g,
|
|
73
|
-
renderAt: N,
|
|
74
|
-
dispose: P,
|
|
75
|
-
get armed() {
|
|
76
|
-
return d;
|
|
77
|
-
},
|
|
78
|
-
get disposed() {
|
|
79
|
-
return f;
|
|
80
|
-
},
|
|
81
|
-
get running() {
|
|
82
|
-
return s();
|
|
83
|
-
},
|
|
84
|
-
get reducedMotion() {
|
|
85
|
-
return m;
|
|
86
|
-
},
|
|
87
|
-
get contextHeld() {
|
|
88
|
-
return k;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
export { t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./createContext-CpBNTRMI.js";
|
|
2
|
-
//#region src/components/custom/dock/constants.ts
|
|
3
|
-
var t = {
|
|
4
|
-
response: .32,
|
|
5
|
-
dampingFraction: .7
|
|
6
|
-
}, n = new Set([
|
|
7
|
-
"width",
|
|
8
|
-
"height",
|
|
9
|
-
"padding",
|
|
10
|
-
"transform"
|
|
11
|
-
]), r = "glass-ui:dock-context", i = "glass-ui:dock-layer-group", a = "glass-ui:dock-morph-context", o = e(r, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: s } = o;
|
|
12
|
-
function c(e) {
|
|
13
|
-
o.provide(e);
|
|
14
|
-
}
|
|
15
|
-
var l = o.use, u = o.useOptional;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { i as a, n as c, u as i, c as n, a as o, l as r, t as s, s as t };
|
package/dist/slider-2A0rPn79.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
3
|
-
import { t as n } from "./useTouchGate-CBZTD4SD.js";
|
|
4
|
-
import { i as r } from "./dockContext-BNfyPLe9.js";
|
|
5
|
-
import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeProps as u, onBeforeUnmount as d, onMounted as f, openBlock as p, renderList as m, unref as h, useTemplateRef as g, withCtx as _ } from "vue";
|
|
6
|
-
import { SliderRange as v, SliderRoot as y, SliderThumb as b, SliderTrack as x, useForwardPropsEmits as S } from "reka-ui";
|
|
7
|
-
import { cva as C } from "class-variance-authority";
|
|
8
|
-
//#region src/components/custom/dock/composables/useDockHold.ts
|
|
9
|
-
function w(e, t = {}) {
|
|
10
|
-
let n = r(), i = t.enabled ?? (() => !0), a = !1;
|
|
11
|
-
function o() {
|
|
12
|
-
!i() || a || !n || (n.keepOpen(), a = !0);
|
|
13
|
-
}
|
|
14
|
-
function s() {
|
|
15
|
-
!a || !n || (n.release(), a = !1);
|
|
16
|
-
}
|
|
17
|
-
function c() {
|
|
18
|
-
s(), !(typeof window > "u") && (window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", c));
|
|
19
|
-
}
|
|
20
|
-
function l() {
|
|
21
|
-
o(), !(typeof window > "u") && (window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", c), window.addEventListener("pointerup", c), window.addEventListener("pointercancel", c));
|
|
22
|
-
}
|
|
23
|
-
let u = null;
|
|
24
|
-
return f(() => {
|
|
25
|
-
u = e(), u && (u.addEventListener("pointerdown", l), u.addEventListener("touchstart", l, { passive: !0 }));
|
|
26
|
-
}), d(() => {
|
|
27
|
-
u && (u.removeEventListener("pointerdown", l), u.removeEventListener("touchstart", l)), typeof window < "u" && (window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", c)), s();
|
|
28
|
-
}), { isHeld: n?.held };
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/components/ui/slider/Slider.vue
|
|
32
|
-
var T = /* @__PURE__ */ t(/* @__PURE__ */ l({
|
|
33
|
-
__name: "Slider",
|
|
34
|
-
props: {
|
|
35
|
-
defaultValue: {},
|
|
36
|
-
modelValue: {},
|
|
37
|
-
disabled: { type: Boolean },
|
|
38
|
-
orientation: {},
|
|
39
|
-
dir: {},
|
|
40
|
-
inverted: { type: Boolean },
|
|
41
|
-
min: {},
|
|
42
|
-
max: {},
|
|
43
|
-
step: {},
|
|
44
|
-
minStepsBetweenThumbs: {},
|
|
45
|
-
thumbAlignment: {},
|
|
46
|
-
asChild: { type: Boolean },
|
|
47
|
-
as: {},
|
|
48
|
-
name: {},
|
|
49
|
-
required: { type: Boolean },
|
|
50
|
-
class: { type: [
|
|
51
|
-
Boolean,
|
|
52
|
-
null,
|
|
53
|
-
String,
|
|
54
|
-
Object,
|
|
55
|
-
Array
|
|
56
|
-
] },
|
|
57
|
-
variant: {},
|
|
58
|
-
size: {},
|
|
59
|
-
keepDockOpen: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !0
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
emits: ["update:modelValue", "valueCommit"],
|
|
65
|
-
setup(t, { emit: l }) {
|
|
66
|
-
let C = t, T = l, D = a(() => C.variant ?? "standard"), O = a(() => C.size ?? "md"), k = a(() => C.keepDockOpen), A = S(a(() => {
|
|
67
|
-
let { class: e, variant: t, size: n, keepDockOpen: r, ...i } = C;
|
|
68
|
-
return i.thumbAlignment ||= "contain", i;
|
|
69
|
-
}), T), j = r(), M = g("sliderRootRef");
|
|
70
|
-
function N() {
|
|
71
|
-
let e = M.value;
|
|
72
|
-
return e ? e instanceof HTMLElement ? e : e.$el ?? null : null;
|
|
73
|
-
}
|
|
74
|
-
w(N, { enabled: () => k.value });
|
|
75
|
-
let P = n();
|
|
76
|
-
function F(e) {
|
|
77
|
-
let t = N(), n = e.touches[0];
|
|
78
|
-
!t || !n || P.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
|
|
79
|
-
}
|
|
80
|
-
function I(e) {
|
|
81
|
-
P.handleScrollCheck(e);
|
|
82
|
-
}
|
|
83
|
-
function L() {
|
|
84
|
-
P.handleTouchEnd();
|
|
85
|
-
}
|
|
86
|
-
f(() => {
|
|
87
|
-
let e = N();
|
|
88
|
-
e && (e.addEventListener("touchstart", F, { passive: !1 }), e.addEventListener("touchmove", I, { passive: !0 }), e.addEventListener("touchend", L, { passive: !0 }));
|
|
89
|
-
}), d(() => {
|
|
90
|
-
let e = N();
|
|
91
|
-
e && (e.removeEventListener("touchstart", F), e.removeEventListener("touchmove", I), e.removeEventListener("touchend", L));
|
|
92
|
-
});
|
|
93
|
-
let R = a(() => j?.held.value === !0), z = a(() => P.isActive.value);
|
|
94
|
-
return (n, r) => (p(), o(h(y), u({
|
|
95
|
-
"data-slot": "slider",
|
|
96
|
-
ref_key: "sliderRootRef",
|
|
97
|
-
ref: M,
|
|
98
|
-
class: h(e)(h(E)({
|
|
99
|
-
variant: D.value,
|
|
100
|
-
size: O.value
|
|
101
|
-
}), C.class),
|
|
102
|
-
"data-variant": D.value,
|
|
103
|
-
"data-size": O.value,
|
|
104
|
-
"data-held": R.value || void 0,
|
|
105
|
-
"data-touch-active": z.value || void 0
|
|
106
|
-
}, h(A)), {
|
|
107
|
-
default: _(() => [c(h(x), { class: "slider-track" }, {
|
|
108
|
-
default: _(() => [c(h(v), { class: "slider-range" })]),
|
|
109
|
-
_: 1
|
|
110
|
-
}), (p(!0), s(i, null, m(t.modelValue, (e, t) => (p(), o(h(b), {
|
|
111
|
-
key: t,
|
|
112
|
-
"aria-label": n.$attrs["aria-label"] ?? void 0,
|
|
113
|
-
class: "slider-thumb glass-specular-track touch-hit-area"
|
|
114
|
-
}, null, 8, ["aria-label"]))), 128))]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 16, [
|
|
117
|
-
"class",
|
|
118
|
-
"data-variant",
|
|
119
|
-
"data-size",
|
|
120
|
-
"data-held",
|
|
121
|
-
"data-touch-active"
|
|
122
|
-
]));
|
|
123
|
-
}
|
|
124
|
-
}), [["__scopeId", "data-v-534634a7"]]), E = C("glass-slider focus-ring relative flex w-full touch-none select-none items-center transition-colors", {
|
|
125
|
-
variants: {
|
|
126
|
-
variant: {
|
|
127
|
-
standard: "",
|
|
128
|
-
spectrum: ""
|
|
129
|
-
},
|
|
130
|
-
size: {
|
|
131
|
-
sm: "",
|
|
132
|
-
md: "",
|
|
133
|
-
lg: ""
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
defaultVariants: {
|
|
137
|
-
variant: "standard",
|
|
138
|
-
size: "md"
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
//#endregion
|
|
142
|
-
export { T as n, E as t };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
//#region src/composables/motion/springPresets.ts
|
|
2
|
-
var e = [
|
|
3
|
-
{
|
|
4
|
-
name: "smooth",
|
|
5
|
-
response: .5,
|
|
6
|
-
dampingFraction: .86,
|
|
7
|
-
comment: "SETTLE register — entrances/fades/scale-ins, no overshoot read"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
name: "snappy",
|
|
11
|
-
response: .42,
|
|
12
|
-
dampingFraction: .78,
|
|
13
|
-
comment: "CONTROL register — crisp position morphs (tab underline, progress fill, marker pop); eased to fill its clock (90%-travel ~0.57 of clock), overshoot ~+2.0%"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: "bouncy",
|
|
17
|
-
response: .5,
|
|
18
|
-
dampingFraction: .55,
|
|
19
|
-
comment: "PLAYFUL register — emphatic one-shots only (bouncy toggle, dialog/success entrance, VT default), overshoot ~+12.6% (the Apple 12-18% band)"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: "gentle",
|
|
23
|
-
response: .7,
|
|
24
|
-
dampingFraction: 1,
|
|
25
|
-
comment: "GENTLE register — patient critically-damped settle, reached via the --ease-spring-gentle @theme alias. BC.W-MOTION-PRESETS reuses this row as the brand convergence-reveal (--ease-convergence): the partial-sum settle is critically-damped with NO overshoot (ζ=1.0, overshoot 0) — measured-not-distinct, so the ALIAS, not a new row"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: "dock",
|
|
29
|
-
response: .32,
|
|
30
|
-
dampingFraction: .7,
|
|
31
|
-
comment: "DOCK register — dock expand/collapse morph + the in-dock Slider thumb, iOS-control settled, overshoot ~+4.6%"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "press",
|
|
35
|
-
response: .15,
|
|
36
|
-
dampingFraction: .86,
|
|
37
|
-
comment: "PRESS register — the iOS interactive tap-press (Apple interactiveSpring 0.15/0.86); sub-100ms answer, tiny alive rebound ~+0.5%. Read by useSpringPress + the --glass-btn-press-t drive"
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
function t(t) {
|
|
41
|
-
let n = e.find((e) => e.name === t);
|
|
42
|
-
if (!n) throw Error(`Unknown spring preset: ${t}`);
|
|
43
|
-
return n;
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { t as n, e as t };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./springPresets-Ce7OYCm9.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(s, c) {
|
|
9
|
-
let l = c.respectReducedMotion !== !1, u = c.blur ?? 4, { response: d, dampingFraction: f } = e(c.preset ?? "snappy"), p = a({
|
|
10
|
-
response: d,
|
|
11
|
-
dampingFraction: f
|
|
12
|
-
}), m = d * 4 * 1e3, h = null, g = 0, _ = 0, v = r(!1);
|
|
13
|
-
function y() {
|
|
14
|
-
let e = c.dockControl.value;
|
|
15
|
-
e && (e.setAttribute("data-cta-pending", ""), v.value = !0);
|
|
16
|
-
}
|
|
17
|
-
function b() {
|
|
18
|
-
v.value = !1;
|
|
19
|
-
let e = c.dockControl.value;
|
|
20
|
-
e && e.removeAttribute("data-cta-pending");
|
|
21
|
-
}
|
|
22
|
-
function x(e) {
|
|
23
|
-
e.style.transform = "", e.style.transformOrigin = "", e.style.opacity = "", e.style.filter = "";
|
|
24
|
-
}
|
|
25
|
-
function S() {
|
|
26
|
-
g && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(g), g = 0;
|
|
27
|
-
}
|
|
28
|
-
function C() {
|
|
29
|
-
b(), c.onReceived?.();
|
|
30
|
-
}
|
|
31
|
-
function w() {
|
|
32
|
-
let e = s.value;
|
|
33
|
-
if (!e) return;
|
|
34
|
-
S();
|
|
35
|
-
let t = e.getBoundingClientRect(), n = c.dockControl.value;
|
|
36
|
-
if (!n) {
|
|
37
|
-
e.style.opacity = "0", C();
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
let r = n.getBoundingClientRect();
|
|
41
|
-
if (l && o()) {
|
|
42
|
-
x(e), e.style.opacity = "0", C();
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
h = new i({
|
|
46
|
-
x: t.x,
|
|
47
|
-
y: t.y,
|
|
48
|
-
width: t.width,
|
|
49
|
-
height: t.height
|
|
50
|
-
}, {
|
|
51
|
-
x: r.x,
|
|
52
|
-
y: r.y,
|
|
53
|
-
width: r.width,
|
|
54
|
-
height: r.height
|
|
55
|
-
}, { transformOrigin: "center center" }), _ = 0;
|
|
56
|
-
let a = (t) => {
|
|
57
|
-
if (!h || !s.value) return;
|
|
58
|
-
_ === 0 && (_ = t);
|
|
59
|
-
let n = Math.min(1, (t - _) / m), r = p.fn(n);
|
|
60
|
-
h.apply(e, r), e.style.opacity = String(Math.min(1, Math.max(0, 1 - r)));
|
|
61
|
-
let i = u * Math.min(1, Math.max(0, r));
|
|
62
|
-
e.style.filter = `blur(${i.toFixed(2)}px)`, n < 1 && typeof requestAnimationFrame == "function" ? g = requestAnimationFrame(a) : (e.style.opacity = "0", h = null, g = 0, C());
|
|
63
|
-
};
|
|
64
|
-
typeof requestAnimationFrame == "function" ? g = requestAnimationFrame(a) : (x(e), e.style.opacity = "0", C());
|
|
65
|
-
}
|
|
66
|
-
function T() {
|
|
67
|
-
S(), h = null;
|
|
68
|
-
let e = s.value;
|
|
69
|
-
e && x(e);
|
|
70
|
-
}
|
|
71
|
-
return t(() => {
|
|
72
|
-
S(), h = null;
|
|
73
|
-
}), {
|
|
74
|
-
receive: w,
|
|
75
|
-
reset: T,
|
|
76
|
-
setPending: y,
|
|
77
|
-
clearPending: b,
|
|
78
|
-
pending: n(v)
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { s as t };
|