@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
package/dist/tabs.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./useLiquidFlex-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { t } from "./useLiquidFlex-Cc6PjVJD.js";
|
|
3
|
+
import { n, r } from "./writeVelocityWeight-Bh83xZfs.js";
|
|
4
|
+
import { a as i, i as a, o, r as s, s as c } from "./SelectScrollDownButton-3mFHX_R-.js";
|
|
5
|
+
import { i as l, n as u, r as d, t as f } from "./TooltipProvider-QQVM_80r.js";
|
|
6
|
+
import { t as p } from "./useDragMorph-DGLSewwB.js";
|
|
7
|
+
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, mergeModels as C, mergeProps as w, nextTick as T, normalizeClass as E, normalizeStyle as D, onBeforeUnmount as ee, onMounted as O, onUnmounted as k, openBlock as A, ref as j, renderList as M, renderSlot as N, toDisplayString as P, unref as F, useModel as te, watch as I, withCtx as L } from "vue";
|
|
7
8
|
//#region src/components/custom/tabs/constants.ts
|
|
8
|
-
var
|
|
9
|
+
var R = 1.11, z = 1.045, B = .82;
|
|
9
10
|
//#endregion
|
|
10
11
|
//#region src/components/custom/tabs/composables/useTabIndicator.ts
|
|
11
|
-
function
|
|
12
|
-
let { containerRef:
|
|
12
|
+
function ne(e) {
|
|
13
|
+
let { containerRef: i, indicatorRef: a, buttonRefs: o, options: s, model: c, anchorSupported: l, jsSliderActive: u, activeValues: d, vertical: f } = e, p = j({
|
|
13
14
|
width: "0px",
|
|
14
15
|
transform: "translateX(0px)",
|
|
15
16
|
opacity: "0"
|
|
16
17
|
});
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
let e =
|
|
20
|
-
if (e < 0 || !
|
|
21
|
-
let t =
|
|
22
|
-
if (
|
|
18
|
+
function m() {
|
|
19
|
+
if (l) return;
|
|
20
|
+
let e = s.value.findIndex((e) => e.value === c.value);
|
|
21
|
+
if (e < 0 || !o.value[e]) return;
|
|
22
|
+
let t = o.value[e];
|
|
23
|
+
if (f.value) {
|
|
23
24
|
let e = t.offsetHeight, n = t.offsetTop + e / 2;
|
|
24
|
-
|
|
25
|
+
p.value = {
|
|
25
26
|
height: `${e}px`,
|
|
26
27
|
width: "",
|
|
27
28
|
transform: `translateY(${n - e / 2}px)`,
|
|
@@ -29,7 +30,7 @@ function re(e) {
|
|
|
29
30
|
};
|
|
30
31
|
} else {
|
|
31
32
|
let e = t.offsetWidth, n = t.offsetLeft + e / 2;
|
|
32
|
-
|
|
33
|
+
p.value = {
|
|
33
34
|
width: `${e}px`,
|
|
34
35
|
height: "",
|
|
35
36
|
transform: `translateX(${n - e / 2}px)`,
|
|
@@ -37,116 +38,127 @@ function re(e) {
|
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
41
|
+
function h() {
|
|
42
|
+
m();
|
|
42
43
|
}
|
|
43
|
-
let
|
|
44
|
+
let g = -1, _ = null, v = R, y = t({
|
|
44
45
|
from: 0,
|
|
45
46
|
to: 0,
|
|
46
47
|
axis: "width",
|
|
47
48
|
squishLaw: "linear",
|
|
48
|
-
maxStretch: () =>
|
|
49
|
+
maxStretch: () => v
|
|
50
|
+
}), b = z, x = t({
|
|
51
|
+
from: 1,
|
|
52
|
+
to: () => b,
|
|
53
|
+
axis: "width",
|
|
54
|
+
squishLaw: "linear"
|
|
49
55
|
});
|
|
50
|
-
function
|
|
56
|
+
function S() {
|
|
51
57
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
52
58
|
}
|
|
53
|
-
function
|
|
59
|
+
function C(e) {
|
|
54
60
|
let t = getComputedStyle(e).getPropertyValue("--tab-indicator-duration").trim();
|
|
55
61
|
return t ? t.endsWith("ms") ? Number.parseFloat(t) || 340 : t.endsWith("s") ? (Number.parseFloat(t) || .34) * 1e3 : Number.parseFloat(t) || 340 : 340;
|
|
56
62
|
}
|
|
57
|
-
function
|
|
58
|
-
let t =
|
|
63
|
+
function w(e) {
|
|
64
|
+
let t = a.value;
|
|
59
65
|
if (!t) {
|
|
60
|
-
|
|
66
|
+
g = e;
|
|
61
67
|
return;
|
|
62
68
|
}
|
|
63
|
-
if (
|
|
64
|
-
|
|
69
|
+
if (S()) {
|
|
70
|
+
g = e;
|
|
65
71
|
return;
|
|
66
72
|
}
|
|
67
|
-
let
|
|
68
|
-
if (
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
let
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
let s = o.value[g], c = o.value[e];
|
|
74
|
+
if (g = e, !s || !c) return;
|
|
75
|
+
let l = f.value ? i.value?.offsetHeight || c.offsetParent?.offsetHeight || 1 : i.value?.offsetWidth || c.offsetParent?.offsetWidth || 1, u = f.value ? Math.abs(c.offsetTop - s.offsetTop) : Math.abs(c.offsetLeft - s.offsetLeft), d = l > 0 ? Math.min(u / l, 1) : 0, p = getComputedStyle(t), m = p.getPropertyValue("--tab-indicator-max-stretch").trim();
|
|
76
|
+
v = n(t, Number(m) || 1.11), y.squish(d);
|
|
77
|
+
let h = p.getPropertyValue("--tab-indicator-blob-max").trim(), w = Number(h) || 1.045, T = Math.sqrt(1.14), E = n(t, w);
|
|
78
|
+
b = E > T ? T : E, r(t, y.flexVel.value), _ && clearTimeout(_), t.style.setProperty("--stretch", String(y.stretch.value)), x.drive(1), t.style.setProperty("--tab-blob", String(x.size.value));
|
|
79
|
+
let D = C(t) * B;
|
|
80
|
+
_ = setTimeout(() => {
|
|
81
|
+
y.squish(0), t.style.setProperty("--stretch", String(y.stretch.value)), x.drive(0), t.style.setProperty("--tab-blob", String(x.size.value)), r(t, 0), _ = null;
|
|
82
|
+
}, D);
|
|
75
83
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}),
|
|
79
|
-
|
|
80
|
-
}, { deep: !0 }),
|
|
81
|
-
|
|
84
|
+
I(() => c.value, () => {
|
|
85
|
+
u.value && T(h);
|
|
86
|
+
}), I(() => s.value, () => {
|
|
87
|
+
u.value && T(h);
|
|
88
|
+
}, { deep: !0 }), I(() => f.value, () => {
|
|
89
|
+
u.value && T(h);
|
|
82
90
|
});
|
|
83
|
-
let
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
}),
|
|
87
|
-
|
|
91
|
+
let E = null;
|
|
92
|
+
return O(() => {
|
|
93
|
+
g = s.value.findIndex((e) => d.value.includes(e.value)), u.value && (T(h), i.value && (E = new ResizeObserver(() => h()), E.observe(i.value)));
|
|
94
|
+
}), k(() => {
|
|
95
|
+
E?.disconnect(), _ && clearTimeout(_);
|
|
88
96
|
}), {
|
|
89
|
-
singleSliderStyle:
|
|
90
|
-
squishOnTravel:
|
|
97
|
+
singleSliderStyle: p,
|
|
98
|
+
squishOnTravel: w
|
|
91
99
|
};
|
|
92
100
|
}
|
|
93
101
|
//#endregion
|
|
94
102
|
//#region src/components/custom/tabs/composables/useTabDragMorph.ts
|
|
95
|
-
function
|
|
96
|
-
let { indicatorRef: t, isVertical:
|
|
97
|
-
function
|
|
103
|
+
function re(e) {
|
|
104
|
+
let { indicatorRef: t, isVertical: i, isUnderline: a, draggable: o, stripOptions: s, buttonRefs: c, model: l } = e, u = h(() => o() && !a.value);
|
|
105
|
+
function d() {
|
|
98
106
|
let e = t.value;
|
|
99
|
-
if (!e) return
|
|
100
|
-
let
|
|
101
|
-
return Number(
|
|
107
|
+
if (!e) return R;
|
|
108
|
+
let r = getComputedStyle(e).getPropertyValue("--tab-indicator-max-stretch").trim();
|
|
109
|
+
return n(e, Number(r) || 1.11);
|
|
102
110
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
105
|
-
let
|
|
111
|
+
function f() {
|
|
112
|
+
return s.value.map((e, t) => {
|
|
113
|
+
let n = c.value[t]?.getBoundingClientRect(), r = n ? i.value ? n.top + n.height / 2 : n.left + n.width / 2 : 0;
|
|
106
114
|
return {
|
|
107
115
|
value: e.value,
|
|
108
|
-
center:
|
|
116
|
+
center: r
|
|
109
117
|
};
|
|
110
118
|
});
|
|
111
119
|
}
|
|
112
|
-
let
|
|
120
|
+
let m = p({
|
|
113
121
|
el: t,
|
|
114
|
-
axis: () =>
|
|
115
|
-
snapTargets:
|
|
116
|
-
maxStretch:
|
|
122
|
+
axis: () => i.value ? "y" : "x",
|
|
123
|
+
snapTargets: f,
|
|
124
|
+
maxStretch: d,
|
|
117
125
|
onSnap: (e) => {
|
|
118
|
-
|
|
126
|
+
l.value !== e && (l.value = e);
|
|
119
127
|
}
|
|
120
128
|
});
|
|
121
|
-
return
|
|
122
|
-
let
|
|
123
|
-
!
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
return I(() => [m.dragging.value, m.stretch.value], ([e, n]) => {
|
|
130
|
+
let i = t.value;
|
|
131
|
+
if (!(!i || !u.value)) if (e) {
|
|
132
|
+
i.style.setProperty("--stretch", String(n));
|
|
133
|
+
let e = d();
|
|
134
|
+
r(i, e > 1 ? (n - 1) / (e - 1) : 0);
|
|
135
|
+
} else i.style.removeProperty("--stretch"), r(i, 0);
|
|
136
|
+
}), I(() => [
|
|
137
|
+
s.value.length,
|
|
138
|
+
i.value,
|
|
139
|
+
u.value
|
|
128
140
|
], () => {
|
|
129
|
-
|
|
141
|
+
u.value && T(() => m.refresh());
|
|
130
142
|
}), {
|
|
131
|
-
dragEnabled:
|
|
132
|
-
drag:
|
|
143
|
+
dragEnabled: u,
|
|
144
|
+
drag: m
|
|
133
145
|
};
|
|
134
146
|
}
|
|
135
147
|
//#endregion
|
|
136
148
|
//#region src/components/custom/tabs/SegmentedTabs.vue?vue&type=script&setup=true&lang.ts
|
|
137
|
-
var
|
|
149
|
+
var ie = ["role", "aria-orientation"], ae = [
|
|
138
150
|
"role",
|
|
139
151
|
"tabindex",
|
|
140
152
|
"disabled",
|
|
141
153
|
"onClick"
|
|
142
|
-
],
|
|
154
|
+
], oe = [
|
|
143
155
|
"role",
|
|
144
156
|
"tabindex",
|
|
145
157
|
"disabled",
|
|
146
158
|
"onClick"
|
|
147
|
-
],
|
|
159
|
+
], V = /* @__PURE__ */ S({
|
|
148
160
|
__name: "SegmentedTabs",
|
|
149
|
-
props: /* @__PURE__ */
|
|
161
|
+
props: /* @__PURE__ */ C({
|
|
150
162
|
options: {},
|
|
151
163
|
variant: { default: "pill" },
|
|
152
164
|
orientation: { default: "horizontal" },
|
|
@@ -156,7 +168,7 @@ var ae = ["role", "aria-orientation"], oe = [
|
|
|
156
168
|
},
|
|
157
169
|
draggable: {
|
|
158
170
|
type: Boolean,
|
|
159
|
-
default: !
|
|
171
|
+
default: !0
|
|
160
172
|
},
|
|
161
173
|
class: { type: [
|
|
162
174
|
Boolean,
|
|
@@ -171,44 +183,48 @@ var ae = ["role", "aria-orientation"], oe = [
|
|
|
171
183
|
}),
|
|
172
184
|
emits: ["update:modelValue"],
|
|
173
185
|
setup(t) {
|
|
174
|
-
function
|
|
186
|
+
function n(e, t) {
|
|
175
187
|
return typeof document > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
176
188
|
}
|
|
177
|
-
let
|
|
178
|
-
function
|
|
179
|
-
|
|
189
|
+
let r = t, p = te(t, "modelValue"), S = j(null), C = j(null), T = j([]), k = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("position-anchor", "--x"), I = h(() => r.variant === "underline"), R = h(() => r.orientation === "vertical"), z = h(() => p.value == null ? [] : [p.value]), B = (e) => z.value.includes(e);
|
|
190
|
+
function V(e) {
|
|
191
|
+
return !I.value && !B(e.value) && !e.disabled && "glass-capsule-hover";
|
|
180
192
|
}
|
|
181
|
-
let
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
let H = h(() => !k && !I.value), U = H, W = h(() => r.responsive === !1 ? null : r.responsive === !0 ? {} : r.responsive), se = h(() => W.value?.breakpoint ?? "640px"), G = h(() => W.value?.desktopOptions ?? r.options), K = j(!0), q = null;
|
|
194
|
+
function J(e) {
|
|
195
|
+
K.value = e.matches;
|
|
196
|
+
}
|
|
197
|
+
let Y = h(() => {
|
|
198
|
+
if (!W.value) return p.value;
|
|
199
|
+
let e = G.value;
|
|
200
|
+
return e.some((e) => e.value === p.value) ? p.value : e[0]?.value ?? p.value;
|
|
201
|
+
}), X = h(() => W.value ? G.value : r.options), ce = h(() => W.value?.ariaLabel ?? r.options.find((e) => e.value === p.value)?.label ?? "Select"), le = h(() => !!W.value && !K.value), { singleSliderStyle: Z, squishOnTravel: ue } = ne({
|
|
202
|
+
containerRef: S,
|
|
203
|
+
indicatorRef: C,
|
|
204
|
+
buttonRefs: T,
|
|
205
|
+
options: X,
|
|
206
|
+
model: h(() => Y.value),
|
|
207
|
+
anchorSupported: k,
|
|
208
|
+
jsSliderActive: H,
|
|
209
|
+
activeValues: z,
|
|
210
|
+
vertical: R
|
|
211
|
+
}), { dragEnabled: Q, drag: de } = re({
|
|
212
|
+
indicatorRef: C,
|
|
213
|
+
isVertical: R,
|
|
198
214
|
isUnderline: I,
|
|
199
|
-
draggable: () =>
|
|
200
|
-
stripOptions:
|
|
201
|
-
buttonRefs:
|
|
202
|
-
model:
|
|
215
|
+
draggable: () => r.draggable,
|
|
216
|
+
stripOptions: X,
|
|
217
|
+
buttonRefs: T,
|
|
218
|
+
model: p
|
|
203
219
|
});
|
|
204
220
|
function fe(e) {
|
|
205
221
|
if (typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
206
222
|
e.getAnimations().forEach((e) => e.cancel());
|
|
207
|
-
let t =
|
|
223
|
+
let t = n("--spring-snappy", "ease"), r = n("--scale-press-btn", "0.97");
|
|
208
224
|
e.animate([
|
|
209
225
|
{ transform: "scale(1)" },
|
|
210
226
|
{
|
|
211
|
-
transform: `scale(${
|
|
227
|
+
transform: `scale(${r})`,
|
|
212
228
|
offset: .4
|
|
213
229
|
},
|
|
214
230
|
{ transform: "scale(1)" }
|
|
@@ -217,160 +233,161 @@ var ae = ["role", "aria-orientation"], oe = [
|
|
|
217
233
|
easing: t
|
|
218
234
|
});
|
|
219
235
|
}
|
|
220
|
-
function
|
|
221
|
-
if (
|
|
222
|
-
let n =
|
|
223
|
-
n && fe(n),
|
|
236
|
+
function $(e, t) {
|
|
237
|
+
if (X.value[t]?.disabled) return;
|
|
238
|
+
let n = T.value[t];
|
|
239
|
+
n && fe(n), ue(t), p.value = e;
|
|
224
240
|
}
|
|
225
241
|
function pe(e) {
|
|
226
|
-
typeof e == "string" && (
|
|
242
|
+
typeof e == "string" && (p.value = e);
|
|
227
243
|
}
|
|
228
|
-
let
|
|
229
|
-
let e =
|
|
244
|
+
let me = h(() => {
|
|
245
|
+
let e = X.value.findIndex((e) => e.value === Y.value);
|
|
230
246
|
return e >= 0 ? e : 0;
|
|
231
247
|
});
|
|
232
|
-
function
|
|
233
|
-
return e ===
|
|
248
|
+
function he(e) {
|
|
249
|
+
return e === me.value ? 0 : -1;
|
|
234
250
|
}
|
|
235
|
-
function
|
|
236
|
-
let n =
|
|
251
|
+
function ge(e, t) {
|
|
252
|
+
let n = X.value.length;
|
|
237
253
|
if (n !== 0) for (let r = 1; r <= n; r++) {
|
|
238
|
-
let i = (e + t * r + n * r) % n, a =
|
|
254
|
+
let i = (e + t * r + n * r) % n, a = X.value[i];
|
|
239
255
|
if (a && !a.disabled) {
|
|
240
|
-
|
|
256
|
+
T.value[i]?.focus(), $(a.value, i);
|
|
241
257
|
return;
|
|
242
258
|
}
|
|
243
259
|
}
|
|
244
260
|
}
|
|
245
|
-
function
|
|
246
|
-
let t =
|
|
261
|
+
function _e(e) {
|
|
262
|
+
let t = X.value.length, n = e === "first" ? Array.from({ length: t }, (e, t) => t) : Array.from({ length: t }, (e, n) => t - 1 - n);
|
|
247
263
|
for (let e of n) {
|
|
248
|
-
let t =
|
|
264
|
+
let t = X.value[e];
|
|
249
265
|
if (t && !t.disabled) {
|
|
250
|
-
|
|
266
|
+
T.value[e]?.focus(), $(t.value, e);
|
|
251
267
|
return;
|
|
252
268
|
}
|
|
253
269
|
}
|
|
254
270
|
}
|
|
255
|
-
function
|
|
256
|
-
let t =
|
|
271
|
+
function ve(e) {
|
|
272
|
+
let t = me.value, n = R.value ? "ArrowDown" : "ArrowRight", r = R.value ? "ArrowUp" : "ArrowLeft";
|
|
257
273
|
switch (e.key) {
|
|
258
274
|
case n:
|
|
259
|
-
e.preventDefault(),
|
|
275
|
+
e.preventDefault(), ge(t, 1);
|
|
260
276
|
break;
|
|
261
277
|
case r:
|
|
262
|
-
e.preventDefault(),
|
|
278
|
+
e.preventDefault(), ge(t, -1);
|
|
263
279
|
break;
|
|
264
280
|
case "Home":
|
|
265
|
-
e.preventDefault(),
|
|
281
|
+
e.preventDefault(), _e("first");
|
|
266
282
|
break;
|
|
267
283
|
case "End":
|
|
268
|
-
e.preventDefault(),
|
|
284
|
+
e.preventDefault(), _e("last");
|
|
269
285
|
break;
|
|
270
286
|
default: break;
|
|
271
287
|
}
|
|
272
288
|
}
|
|
273
|
-
return
|
|
274
|
-
|
|
275
|
-
}),
|
|
276
|
-
|
|
277
|
-
}), (
|
|
289
|
+
return O(() => {
|
|
290
|
+
W.value && typeof window < "u" && window.matchMedia && (q = window.matchMedia(`(min-width: ${se.value})`), K.value = q.matches, q.addEventListener("change", J));
|
|
291
|
+
}), ee(() => {
|
|
292
|
+
q?.removeEventListener("change", J), q = null;
|
|
293
|
+
}), (n, h) => le.value ? (A(), v("div", {
|
|
278
294
|
key: 0,
|
|
279
|
-
class:
|
|
280
|
-
}, [
|
|
281
|
-
"model-value":
|
|
295
|
+
class: E(F(e)("segmented-tabs__mobile w-fit", r.class))
|
|
296
|
+
}, [x(F(c), {
|
|
297
|
+
"model-value": p.value,
|
|
282
298
|
"onUpdate:modelValue": pe
|
|
283
299
|
}, {
|
|
284
|
-
default:
|
|
285
|
-
"aria-label":
|
|
286
|
-
class:
|
|
300
|
+
default: L(() => [x(F(i), {
|
|
301
|
+
"aria-label": ce.value,
|
|
302
|
+
class: E(F(e)("segmented-tabs__trigger text-small w-auto min-w-input-sm", W.value?.triggerClass))
|
|
287
303
|
}, {
|
|
288
|
-
default:
|
|
304
|
+
default: L(() => [x(F(o))]),
|
|
289
305
|
_: 1
|
|
290
|
-
}, 8, ["aria-label", "class"]),
|
|
291
|
-
default:
|
|
306
|
+
}, 8, ["aria-label", "class"]), x(F(a), null, {
|
|
307
|
+
default: L(() => [(A(!0), v(m, null, M(t.options, (e) => (A(), g(F(s), {
|
|
292
308
|
key: e.value,
|
|
293
309
|
value: e.value
|
|
294
310
|
}, {
|
|
295
|
-
default:
|
|
311
|
+
default: L(() => [b(P(e.label), 1)]),
|
|
296
312
|
_: 2
|
|
297
313
|
}, 1032, ["value"]))), 128))]),
|
|
298
314
|
_: 1
|
|
299
315
|
})]),
|
|
300
316
|
_: 1
|
|
301
|
-
}, 8, ["model-value"])], 2)) : (
|
|
317
|
+
}, 8, ["model-value"])], 2)) : (A(), v("div", {
|
|
302
318
|
key: 1,
|
|
303
319
|
ref_key: "containerRef",
|
|
304
|
-
ref:
|
|
320
|
+
ref: S,
|
|
305
321
|
role: I.value ? "tablist" : "group",
|
|
306
|
-
"aria-orientation":
|
|
307
|
-
class:
|
|
308
|
-
onKeydown:
|
|
309
|
-
}, [I.value ?
|
|
322
|
+
"aria-orientation": I.value ? R.value ? "vertical" : "horizontal" : void 0,
|
|
323
|
+
class: E(F(e)("segmented-tabs", `segmented-tabs--${t.variant}`, R.value && "segmented-tabs--vertical", !I.value && "glass-capsule-track", r.class)),
|
|
324
|
+
onKeydown: ve
|
|
325
|
+
}, [I.value ? _("", !0) : (A(), v("div", {
|
|
310
326
|
key: 0,
|
|
311
327
|
ref_key: "indicatorRef",
|
|
312
|
-
ref:
|
|
313
|
-
class:
|
|
328
|
+
ref: C,
|
|
329
|
+
class: E([
|
|
314
330
|
"segmented-indicator",
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
331
|
+
"glass-capsule",
|
|
332
|
+
F(U) ? "segmented-indicator--js" : "segmented-indicator--anchor",
|
|
333
|
+
F(Q) && "glass-drag-grabbable",
|
|
334
|
+
F(Q) && F(de).dragging.value && "glass-drag-lift"
|
|
318
335
|
]),
|
|
319
|
-
style:
|
|
320
|
-
...
|
|
321
|
-
...
|
|
322
|
-
} :
|
|
323
|
-
}, null, 6)), (
|
|
336
|
+
style: D(F(Q) ? {
|
|
337
|
+
...F(U) ? F(Z) : {},
|
|
338
|
+
...F(de).dragStyle.value
|
|
339
|
+
} : F(U) ? F(Z) : void 0)
|
|
340
|
+
}, null, 6)), (A(!0), v(m, null, M(X.value, (e, t) => (A(), v(m, { key: e.value }, [e.tooltip ? (A(), g(F(f), {
|
|
324
341
|
key: 0,
|
|
325
342
|
"delay-duration": 200
|
|
326
343
|
}, {
|
|
327
|
-
default:
|
|
328
|
-
default:
|
|
329
|
-
default:
|
|
344
|
+
default: L(() => [x(F(l), null, {
|
|
345
|
+
default: L(() => [x(F(u), { "as-child": "" }, {
|
|
346
|
+
default: L(() => [y("button", w({
|
|
330
347
|
ref_for: !0,
|
|
331
348
|
ref: (e) => {
|
|
332
|
-
e && (
|
|
349
|
+
e && (T.value[t] = e);
|
|
333
350
|
},
|
|
334
351
|
class: "segmented-tab",
|
|
335
352
|
role: I.value ? "tab" : void 0,
|
|
336
|
-
tabindex:
|
|
337
|
-
}, { ref_for: !0 }, I.value ? { "aria-selected":
|
|
353
|
+
tabindex: he(t)
|
|
354
|
+
}, { ref_for: !0 }, I.value ? { "aria-selected": B(e.value) ? "true" : "false" } : { "aria-pressed": B(e.value) ? "true" : "false" }, {
|
|
338
355
|
disabled: e.disabled,
|
|
339
|
-
class: e.disabled && "is-disabled",
|
|
340
|
-
onClick: (n) =>
|
|
341
|
-
}), [
|
|
356
|
+
class: [e.disabled && "is-disabled", V(e)],
|
|
357
|
+
onClick: (n) => $(e.value, t)
|
|
358
|
+
}), [N(n.$slots, "option", {
|
|
342
359
|
option: e,
|
|
343
|
-
active:
|
|
344
|
-
}, () => [
|
|
360
|
+
active: B(e.value)
|
|
361
|
+
}, () => [b(P(e.label), 1)])], 16, ae)]),
|
|
345
362
|
_: 2
|
|
346
|
-
}, 1024),
|
|
363
|
+
}, 1024), x(F(d), {
|
|
347
364
|
side: "bottom",
|
|
348
365
|
"side-offset": 8
|
|
349
366
|
}, {
|
|
350
|
-
default:
|
|
367
|
+
default: L(() => [b(P(e.tooltip), 1)]),
|
|
351
368
|
_: 2
|
|
352
369
|
}, 1024)]),
|
|
353
370
|
_: 2
|
|
354
371
|
}, 1024)]),
|
|
355
372
|
_: 2
|
|
356
|
-
}, 1024)) : (
|
|
373
|
+
}, 1024)) : (A(), v("button", w({
|
|
357
374
|
key: 1,
|
|
358
375
|
ref_for: !0,
|
|
359
376
|
ref: (e) => {
|
|
360
|
-
e && (
|
|
377
|
+
e && (T.value[t] = e);
|
|
361
378
|
},
|
|
362
379
|
class: "segmented-tab",
|
|
363
380
|
role: I.value ? "tab" : void 0,
|
|
364
|
-
tabindex:
|
|
365
|
-
}, { ref_for: !0 }, I.value ? { "aria-selected":
|
|
381
|
+
tabindex: he(t)
|
|
382
|
+
}, { ref_for: !0 }, I.value ? { "aria-selected": B(e.value) ? "true" : "false" } : { "aria-pressed": B(e.value) ? "true" : "false" }, {
|
|
366
383
|
disabled: e.disabled,
|
|
367
|
-
class: e.disabled && "is-disabled",
|
|
368
|
-
onClick: (n) =>
|
|
369
|
-
}), [
|
|
384
|
+
class: [e.disabled && "is-disabled", V(e)],
|
|
385
|
+
onClick: (n) => $(e.value, t)
|
|
386
|
+
}), [N(n.$slots, "option", {
|
|
370
387
|
option: e,
|
|
371
|
-
active:
|
|
372
|
-
}, () => [
|
|
388
|
+
active: B(e.value)
|
|
389
|
+
}, () => [b(P(e.label), 1)])], 16, oe))], 64))), 128))], 42, ie));
|
|
373
390
|
}
|
|
374
391
|
});
|
|
375
392
|
//#endregion
|
|
376
|
-
export {
|
|
393
|
+
export { V as SegmentedTabs };
|