@mkbabb/glass-ui 4.0.1 → 4.1.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-8whJrLWt.js} +23 -8
- package/dist/{CommandShortcut-DvZNQ_HF.js → CommandShortcut-D3yxgHNn.js} +23 -12
- package/dist/{ConfiguratorRow-BR4l-ixA.js → ConfiguratorRow-CaP7U3ZA.js} +11 -11
- package/dist/ContextMenuContent-B3ZsheLV.js +90 -0
- package/dist/{ContextMenuSubContent-xol4sD2q.js → ContextMenuSubContent-DDRID3qC.js} +15 -15
- package/dist/{DataTable-CuKwF7wr.js → DataTable-Bc9kUtu_.js} +2 -2
- package/dist/{DialogContent-DcKK8k9i.js → DialogContent-6JtTB5x2.js} +8 -5
- package/dist/DialogFooter-9phqcRIS.js +80 -0
- package/dist/DialogScrollContent-TTuovQst.js +93 -0
- package/dist/HoverCardContent-Bel1gdLZ.js +88 -0
- package/dist/{IconChip-BTD-nay5.js → IconChip-DhbdGdFQ.js} +1 -1
- package/dist/{IconTooltip-Bl8gFZ8d.js → IconTooltip-B0zimd2H.js} +1 -1
- package/dist/Input-Cg9DF62r.js +57 -0
- package/dist/{Notification-VUwexFUf.js → Notification-CphK7AAm.js} +3 -3
- package/dist/NumberFieldContent-D8cXeyO4.js +140 -0
- package/dist/PagerDots-Cjx96la-.js +98 -0
- package/dist/{SelectScrollDownButton-CrA8F0iV.js → SelectScrollDownButton-DAKCBEdW.js} +62 -57
- package/dist/{SelectSeparator-DXswVdRz.js → SelectSeparator-C2UGOkXF.js} +1 -1
- package/dist/Separator-DQcwC2TR.js +44 -0
- package/dist/Switch-B8RscmRu.js +49 -0
- package/dist/{Toaster-Bw4xR8xV.js → Toaster-D9qIHjBI.js} +1 -1
- package/dist/{ToggleGroupItem-pEM9vIhs.js → ToggleGroupItem-BLtr3TJq.js} +2 -2
- package/dist/TooltipProvider-BJ_Y5EGX.js +109 -0
- package/dist/animated-digit.js +1 -1
- package/dist/api/index.d.ts +15 -32
- package/dist/api/types-extra.d.ts +31 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +579 -251
- package/dist/border-progress.js +49 -57
- package/dist/{button-DYCUa-tH.js → button-5dY1Dvhd.js} +13 -14
- package/dist/button.js +1 -1
- package/dist/canvas.js +2 -3
- package/dist/card.js +1 -1
- package/dist/carousel.js +20 -20
- package/dist/color-Cs0-oxYL.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/runtime.d.ts +12 -0
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +11 -2
- package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +18 -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/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/composables/concentricGLSetup.d.ts +7 -0
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +9 -0
- package/dist/components/custom/concentric/composables/ringField.d.ts +57 -16
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +2 -1
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +4 -4
- package/dist/components/custom/concentric/constants.d.ts +30 -6
- 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/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/DockIconButton.vue.d.ts +12 -0
- package/dist/components/custom/dock/DockStack.vue.d.ts +65 -0
- package/dist/components/custom/dock/GlassDock.vue.d.ts +4 -2
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +80 -0
- package/dist/components/custom/dock/composables/index.d.ts +2 -0
- package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +11 -0
- package/dist/components/custom/dock/constants.d.ts +18 -14
- package/dist/components/custom/dock/index.d.ts +5 -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 +48 -6
- package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +23 -8
- package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +6 -5
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -5
- package/dist/components/custom/dot-flow-field/constants.d.ts +42 -21
- 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 +4 -20
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -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 +52 -0
- package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
- package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +27 -0
- package/dist/components/custom/dot-matrix/constants.d.ts +58 -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 +40 -47
- package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +15 -0
- package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +20 -0
- package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +41 -0
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +40 -37
- package/dist/components/custom/fourier-field/constants.d.ts +61 -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/constants.d.ts +1 -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 +36 -0
- 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 +50 -0
- package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +35 -0
- package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
- package/dist/components/custom/goo-dot-matrix/constants.d.ts +76 -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 +11 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +3 -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-grid/PaperGrid.vue.d.ts +42 -0
- package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +90 -0
- package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +16 -0
- package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +19 -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 +57 -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/index.d.ts +2 -0
- package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +23 -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 +20 -2
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +29 -16
- 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/button/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +45 -0
- package/dist/components/ui/card/index.d.ts +1 -1
- 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/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 +3 -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/glass/useVizChoreography.d.ts +123 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +10 -0
- package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
- package/dist/composables/glass/webgpu/index.d.ts +1 -1
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +28 -7
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -0
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
- package/dist/composables/motion/core/index.d.ts +3 -0
- package/dist/composables/motion/scrollReader.d.ts +25 -0
- package/dist/composables/motion/springPresets.d.ts +20 -1
- package/dist/composables/motion/useCharStagger.d.ts +44 -0
- package/dist/composables/motion/useDockCtaReceive.d.ts +31 -6
- package/dist/composables/motion/useScrollChrome.d.ts +58 -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 +495 -221
- 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 +1 -1
- package/dist/createCanvasLifecycle-Gh45Ce-p.js +93 -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 +602 -458
- package/dist/dot-flow-field.js +580 -290
- package/dist/dot-matrix.d.ts +1 -0
- package/dist/dot-matrix.js +630 -0
- package/dist/dotMatrixField-D_x9_1qq.js +48 -0
- package/dist/{dropdown-menu-CofSZuk8.js → dropdown-menu-aJmV5SqE.js} +83 -79
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.js +188 -176
- package/dist/expandable-container.js +42 -20
- package/dist/fading-scroll.js +1 -1
- package/dist/flow.glsl-B2P7e0MT.js +4 -0
- package/dist/forms.js +62 -60
- package/dist/fourier-field.js +825 -178
- package/dist/fourier-math.js +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +145 -104
- package/dist/goo-blob.js +171 -1228
- package/dist/goo-dot-matrix.d.ts +1 -0
- package/dist/goo-dot-matrix.js +591 -0
- package/dist/handmark.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 +2 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/labeled-field.js +70 -60
- package/dist/metric-cell.js +1 -1
- package/dist/metric-stack.js +11 -2
- package/dist/motion-core.js +54 -32
- package/dist/motion-curves.js +11 -1
- package/dist/motion.js +46 -111
- 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 +788 -0
- package/dist/{presets-BW2b-fr1.js → presets-CvOUqtdY.js} +3 -3
- package/dist/{procedural-color.glsl-CIFsJhwI.js → procedural-color.wgsl-m7Zgv35j.js} +2 -2
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/{useCanvas2D-B8w_E3Rr.js → resolveCanvasColor-yPyIpJt9.js} +12 -2
- package/dist/scrollReader-DI1NWxUw.js +42 -0
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +160 -304
- package/dist/select.js +3 -3
- package/dist/selectable-chip.d.ts +1 -0
- package/dist/selectable-chip.js +65 -0
- package/dist/separator.js +1 -1
- package/dist/{sheet-tZMg0E0w.js → sheet-B2flBfLH.js} +2 -2
- package/dist/sheet.js +1 -1
- package/dist/sidebar.js +216 -114
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +1 -1
- package/dist/spectrum-walk-BVzA7Biz.js +33 -0
- package/dist/{springPresets-CFQGQfdl.js → springPresets-Ce7OYCm9.js} +12 -6
- package/dist/styles/animations.css +13 -3
- package/dist/styles/cards.css +69 -0
- package/dist/styles/completion-seal.css +131 -0
- package/dist/styles/components.css +2 -3
- package/dist/styles/configurator.css +55 -0
- package/dist/styles/critical-partition.mjs +33 -11
- package/dist/styles/deferred.css +2 -0
- package/dist/styles/dock/cta-seat.css +87 -0
- package/dist/styles/dock/density.css +153 -0
- package/dist/styles/dock/layers.css +55 -7
- package/dist/styles/dock/morph-bridge.css +54 -18
- package/dist/styles/dock/morph.css +41 -33
- package/dist/styles/dock/overflow.css +12 -0
- package/dist/styles/dock/search.css +68 -0
- package/dist/styles/dock/shape.css +124 -0
- package/dist/styles/dock/shell.css +23 -5
- package/dist/styles/dock/stack-rail.css +264 -0
- package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/dist/styles/dock-controls/icon-button.css +14 -0
- package/dist/styles/dock.css +11 -1
- package/dist/styles/glass/accent-tone.css +66 -0
- package/dist/styles/glass/control-surfaces.css +167 -0
- package/dist/styles/glass/ladder.css +67 -17
- package/dist/styles/glass/rim.css +19 -9
- package/dist/styles/glass/surfaces.css +69 -148
- package/dist/styles/glass.css +10 -0
- package/dist/styles/index.css +15 -0
- package/dist/styles/scroll-chrome.css +123 -0
- package/dist/styles/scroll-driven.css +38 -0
- package/dist/styles/segmented-tabs.css +50 -14
- package/dist/styles/theme/bridges.css +22 -0
- package/dist/styles/theme/radius.css +18 -1
- package/dist/styles/tokens/color-radius.css +13 -3
- package/dist/styles/tokens/dark-arm.css +39 -6
- package/dist/styles/tokens/glass-deep.css +28 -3
- package/dist/styles/tokens/glass-fx.css +44 -1
- package/dist/styles/tokens/glass.css +91 -31
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/offsets.css +27 -0
- package/dist/styles/tokens/property-regs.css +133 -0
- package/dist/styles/tokens/scale-paper.css +73 -29
- package/dist/styles/tokens/scheme-motion.css +44 -6
- package/dist/styles/tokens/sizing-config.css +110 -0
- package/dist/styles/tokens/sizing.css +55 -104
- package/dist/styles/tokens.css +5 -0
- 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 +14 -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 +8 -8
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +10 -10
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/uniformBridgeWGPU-CtAKl45L.js +1204 -0
- package/dist/{useAnimatedNumber-BfUq2bUM.js → useAnimatedNumber-CLrxicG9.js} +1 -1
- package/dist/{useConfiguratorState-DNlOh6c8.js → useConfiguratorState-4xblKfwd.js} +25 -24
- package/dist/useControlSize-SH1UmJCi.js +9 -0
- package/dist/useDockCtaReceive-DfFkmgL1.js +82 -0
- package/dist/{useDragMorph-DgxnsVJz.js → useDragMorph-BUgAC-zK.js} +4 -4
- package/dist/useFuzzySearch-DIhcYtcw.js +177 -0
- package/dist/useGpuSubstrate-4pTcp6mX.js +294 -0
- package/dist/{useLiquidPress-kfb4KX79.js → useLiquidPress-BooG97RY.js} +2 -2
- package/dist/usePointerVelocityField-QLsy3_kv.js +91 -0
- package/dist/useScrollChrome-D66AVP7C.js +258 -0
- package/dist/{useSpringMount-q1amq1SJ.js → useSpringMount-BWDnKIwh.js} +1 -1
- package/dist/useSpringPress-B1-Czp-V.js +36 -0
- package/dist/useViewTransition-CUI1nAgn.js +95 -0
- 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 +116 -73
- package/package.json +127 -7
- package/src/styles/animations.css +13 -3
- package/src/styles/cards.css +69 -0
- package/src/styles/completion-seal.css +131 -0
- package/src/styles/configurator.css +55 -0
- package/src/styles/critical-partition.mjs +33 -11
- package/src/styles/dock/cta-seat.css +87 -0
- package/src/styles/dock/density.css +153 -0
- package/src/styles/dock/layers.css +55 -7
- package/src/styles/dock/morph-bridge.css +54 -18
- package/src/styles/dock/morph.css +41 -33
- package/src/styles/dock/overflow.css +12 -0
- package/src/styles/dock/search.css +68 -0
- package/src/styles/dock/shape.css +124 -0
- package/src/styles/dock/shell.css +23 -5
- package/src/styles/dock/stack-rail.css +264 -0
- package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/src/styles/dock-controls/icon-button.css +14 -0
- package/src/styles/dock.css +11 -1
- package/src/styles/glass/accent-tone.css +66 -0
- package/src/styles/glass/control-surfaces.css +167 -0
- package/src/styles/glass/ladder.css +67 -17
- package/src/styles/glass/rim.css +19 -9
- package/src/styles/glass/surfaces.css +69 -148
- package/src/styles/glass.css +10 -0
- package/src/styles/index.css +15 -0
- package/src/styles/scroll-chrome.css +123 -0
- package/src/styles/scroll-driven.css +38 -0
- package/src/styles/segmented-tabs.css +50 -14
- package/src/styles/theme/bridges.css +22 -0
- package/src/styles/theme/radius.css +18 -1
- package/src/styles/tokens/color-radius.css +13 -3
- package/src/styles/tokens/dark-arm.css +39 -6
- package/src/styles/tokens/glass-deep.css +28 -3
- package/src/styles/tokens/glass-fx.css +44 -1
- package/src/styles/tokens/glass.css +91 -31
- package/src/styles/tokens/light-dark.css +1 -1
- package/src/styles/tokens/offsets.css +27 -0
- package/src/styles/tokens/property-regs.css +133 -0
- package/src/styles/tokens/scale-paper.css +73 -29
- package/src/styles/tokens/scheme-motion.css +44 -6
- package/src/styles/tokens/sizing-config.css +110 -0
- package/src/styles/tokens/sizing.css +55 -104
- package/src/styles/tokens.css +5 -0
- 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 +14 -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/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/Separator-pKF0oA4M.js +0 -37
- package/dist/Switch-CwYNf8bo.js +0 -47
- package/dist/TooltipProvider-rzvnXz60.js +0 -104
- package/dist/color-DweYl7pE.js +0 -86
- 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/procedural-color.wgsl-CToRHugY.js +0 -224
- package/dist/resolveCanvasColor-CUyHr5Uu.js +0 -11
- package/dist/styles/dock/rail-extend.css +0 -397
- 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/{FadingScroll-DI6hQhT9.js → FadingScroll-DLRbH5Xr.js} +0 -0
- /package/dist/{HoverPopover-CbqbNwgU.js → HoverPopover-BcIxvyqZ.js} +0 -0
- /package/dist/{InstrumentChassis-Bx0F_q5g.js → InstrumentChassis-CxsHSyMj.js} +0 -0
- /package/dist/{PaperBackdrop-Vf3tlpvd.js → PaperBackdrop-CqwjnfLv.js} +0 -0
- /package/dist/{Progress-DctG61iZ.js → Progress-CnqB7gLm.js} +0 -0
- /package/dist/{ScrollingText-yOpBzFYq.js → ScrollingText-CTZbA_cG.js} +0 -0
- /package/dist/{SelectGroup-DwwjicPY.js → SelectGroup-BFiod7X2.js} +0 -0
- /package/dist/{compile-CQEFRTmx.js → compile-nZ1xVYTp.js} +0 -0
- /package/dist/{constants-BPOqYJAm.js → constants--C2DkLW8.js} +0 -0
- /package/dist/{math-BINYmg5z.js → math-Eb0w3LqU.js} +0 -0
- /package/dist/{prng-Za0Rmgag.js → prng-B-d9eYX8.js} +0 -0
- /package/dist/{slider-DVb4HXU-.js → slider-2A0rPn79.js} +0 -0
- /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-CmjB9E32.js} +0 -0
- /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Dbozzjgm.js} +0 -0
- /package/dist/{useInterval-CvK1mL92.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BPRp33Im.js} +0 -0
- /package/dist/{useLiquidFlex-mZPMiNXh.js → useLiquidFlex-UmA6LMZu.js} +0 -0
- /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-c3yxmH6a.js} +0 -0
- /package/dist/{useSortable-DHjtZSEd.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{vReveal-Czsb7zQC.js → vReveal-D9k0jADx.js} +0 -0
- /package/dist/{vSpecular-CQFmLNzA.js → vSpecular-EX7loENl.js} +0 -0
package/dist/motion.js
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
1
|
import { t as e } from "./useSpring-C0jyvEJB.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { t as a } from "./useSpringMount-
|
|
6
|
-
import { n as o, t as s } from "./constants
|
|
7
|
-
import { t as c } from "./useDragMorph-
|
|
8
|
-
import { t as l } from "./
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
2
|
+
import { n as t, t as n } from "./springPresets-Ce7OYCm9.js";
|
|
3
|
+
import { t as r } from "./useSpringPress-B1-Czp-V.js";
|
|
4
|
+
import { t as i } from "./useLiquidPress-BooG97RY.js";
|
|
5
|
+
import { t as a } from "./useSpringMount-BWDnKIwh.js";
|
|
6
|
+
import { n as o, t as s } from "./constants--C2DkLW8.js";
|
|
7
|
+
import { t as c } from "./useDragMorph-BUgAC-zK.js";
|
|
8
|
+
import { t as l } from "./useDockCtaReceive-DfFkmgL1.js";
|
|
9
|
+
import { t as u } from "./useAnimatedNumber-CLrxicG9.js";
|
|
10
|
+
import { computed as d, onBeforeUnmount as f, onScopeDispose as p, ref as m, shallowRef as h } from "vue";
|
|
11
|
+
import { AnimationOptionError as g, Draggable as _, ElementMorph as v, ElementMorph as y, ManualTimeline as b, NumericAnimation as x, NumericAnimation as S, RAFPlayback as C, ScrollTimeline as w, Sequence as T, SmoothProgress as E, SpringProgress as D, Timeline as O, UnknownEasingError as k, createNativeTimeline as A, decay as j, decayRest as M, drag as N, flip as P, flipShared as F, loadAnimationEngine as I, resolveEasing as L, springLinearStops as R, springTimingFunction as z, springTimingFunction as B, stagger as V, toEasing as H } from "@mkbabb/keyframes.js";
|
|
11
12
|
//#region src/composables/motion/useLiquidReveal.ts
|
|
12
|
-
function
|
|
13
|
+
function U() {
|
|
13
14
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
let
|
|
16
|
+
function W(e, n = {}) {
|
|
17
|
+
let r = n.respectReducedMotion !== !1, i = n.blur ?? 4, { response: a, dampingFraction: o } = t(n.preset ?? "snappy"), s = B({
|
|
17
18
|
response: a,
|
|
18
19
|
dampingFraction: o
|
|
19
20
|
}), c = a * 4 * 1e3, l = null, u = 0, d = 0;
|
|
20
|
-
function
|
|
21
|
+
function f(e) {
|
|
21
22
|
e.style.transform = "", e.style.transformOrigin = "", e.style.opacity = "", e.style.filter = "";
|
|
22
23
|
}
|
|
23
24
|
function m() {
|
|
24
25
|
u && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(u), u = 0;
|
|
25
26
|
}
|
|
26
27
|
function h() {
|
|
27
|
-
let
|
|
28
|
-
if (!
|
|
28
|
+
let t = e.value;
|
|
29
|
+
if (!t) return;
|
|
29
30
|
m();
|
|
30
|
-
let a =
|
|
31
|
+
let a = t.getBoundingClientRect(), o = n.trigger?.value ?? null, p = o ? o.getBoundingClientRect() : {
|
|
31
32
|
x: a.x + a.width * .04,
|
|
32
33
|
y: a.y + a.height * .04,
|
|
33
34
|
width: a.width * .92,
|
|
34
35
|
height: a.height * .92
|
|
35
|
-
}, h = `${
|
|
36
|
-
if (
|
|
37
|
-
|
|
36
|
+
}, h = `${p.x - a.x}px ${p.y - a.y}px`;
|
|
37
|
+
if (r && U()) {
|
|
38
|
+
f(t), t.style.opacity = "1";
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
|
-
l = new
|
|
41
|
+
l = new y({
|
|
41
42
|
x: a.x,
|
|
42
43
|
y: a.y,
|
|
43
44
|
width: a.width,
|
|
44
45
|
height: a.height
|
|
45
46
|
}, {
|
|
46
|
-
x:
|
|
47
|
-
y:
|
|
48
|
-
width:
|
|
49
|
-
height:
|
|
47
|
+
x: p.x,
|
|
48
|
+
y: p.y,
|
|
49
|
+
width: p.width,
|
|
50
|
+
height: p.height
|
|
50
51
|
}, { transformOrigin: h }), d = 0;
|
|
51
|
-
let g = (
|
|
52
|
+
let g = (n) => {
|
|
52
53
|
if (!l || !e.value) return;
|
|
53
|
-
d === 0 && (d =
|
|
54
|
-
let
|
|
55
|
-
l.apply(
|
|
56
|
-
let
|
|
57
|
-
|
|
54
|
+
d === 0 && (d = n);
|
|
55
|
+
let r = Math.min(1, (n - d) / c), a = s.fn(r), o = 1 - a;
|
|
56
|
+
l.apply(t, o), t.style.opacity = String(Math.min(1, Math.max(0, a)));
|
|
57
|
+
let p = i * o;
|
|
58
|
+
t.style.filter = `blur(${p.toFixed(2)}px)`, r < 1 && typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (f(t), t.style.opacity = "1", l = null, u = 0);
|
|
58
59
|
};
|
|
59
|
-
typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (
|
|
60
|
+
typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (f(t), t.style.opacity = "1");
|
|
60
61
|
}
|
|
61
62
|
function g() {
|
|
62
63
|
m(), l = null;
|
|
63
64
|
let t = e.value;
|
|
64
|
-
t &&
|
|
65
|
+
t && f(t);
|
|
65
66
|
}
|
|
66
|
-
return
|
|
67
|
+
return p(() => {
|
|
67
68
|
m(), l = null;
|
|
68
69
|
}), {
|
|
69
70
|
reveal: h,
|
|
@@ -71,75 +72,9 @@ function U(e, t = {}) {
|
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
//#endregion
|
|
74
|
-
//#region src/composables/motion/useDockCtaReceive.ts
|
|
75
|
-
function W() {
|
|
76
|
-
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
77
|
-
}
|
|
78
|
-
function G(e, t) {
|
|
79
|
-
let n = t.respectReducedMotion !== !1, i = t.blur ?? 4, { response: a, dampingFraction: o } = r(t.preset ?? "snappy"), s = z({
|
|
80
|
-
response: a,
|
|
81
|
-
dampingFraction: o
|
|
82
|
-
}), c = a * 4 * 1e3, l = null, u = 0, d = 0;
|
|
83
|
-
function p(e) {
|
|
84
|
-
e.style.transform = "", e.style.transformOrigin = "", e.style.opacity = "", e.style.filter = "";
|
|
85
|
-
}
|
|
86
|
-
function m() {
|
|
87
|
-
u && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(u), u = 0;
|
|
88
|
-
}
|
|
89
|
-
function h() {
|
|
90
|
-
t.onReceived?.();
|
|
91
|
-
}
|
|
92
|
-
function g() {
|
|
93
|
-
let r = e.value;
|
|
94
|
-
if (!r) return;
|
|
95
|
-
m();
|
|
96
|
-
let a = r.getBoundingClientRect(), o = t.dockControl.value;
|
|
97
|
-
if (!o) {
|
|
98
|
-
r.style.opacity = "0", h();
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
let f = o.getBoundingClientRect();
|
|
102
|
-
if (n && W()) {
|
|
103
|
-
p(r), r.style.opacity = "0", h();
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
l = new v({
|
|
107
|
-
x: a.x,
|
|
108
|
-
y: a.y,
|
|
109
|
-
width: a.width,
|
|
110
|
-
height: a.height
|
|
111
|
-
}, {
|
|
112
|
-
x: f.x,
|
|
113
|
-
y: f.y,
|
|
114
|
-
width: f.width,
|
|
115
|
-
height: f.height
|
|
116
|
-
}, { transformOrigin: "center center" }), d = 0;
|
|
117
|
-
let g = (t) => {
|
|
118
|
-
if (!l || !e.value) return;
|
|
119
|
-
d === 0 && (d = t);
|
|
120
|
-
let n = Math.min(1, (t - d) / c), a = s.fn(n);
|
|
121
|
-
l.apply(r, a), r.style.opacity = String(Math.min(1, Math.max(0, 1 - a)));
|
|
122
|
-
let o = i * Math.min(1, Math.max(0, a));
|
|
123
|
-
r.style.filter = `blur(${o.toFixed(2)}px)`, n < 1 && typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (r.style.opacity = "0", l = null, u = 0, h());
|
|
124
|
-
};
|
|
125
|
-
typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (p(r), r.style.opacity = "0", h());
|
|
126
|
-
}
|
|
127
|
-
function _() {
|
|
128
|
-
m(), l = null;
|
|
129
|
-
let t = e.value;
|
|
130
|
-
t && p(t);
|
|
131
|
-
}
|
|
132
|
-
return f(() => {
|
|
133
|
-
m(), l = null;
|
|
134
|
-
}), {
|
|
135
|
-
receive: g,
|
|
136
|
-
reset: _
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
75
|
//#region src/composables/motion/useNumericTransition.ts
|
|
141
|
-
function
|
|
142
|
-
let t =
|
|
76
|
+
function G(e) {
|
|
77
|
+
let t = m(0), n = m(!1), { from: r, to: i, duration: a, timingFunction: o, onFrame: s } = e, c = h(new S([r, i], {
|
|
143
78
|
duration: a,
|
|
144
79
|
timingFunction: o
|
|
145
80
|
}));
|
|
@@ -164,7 +99,7 @@ function K(e) {
|
|
|
164
99
|
function u() {
|
|
165
100
|
c.value.stop(), n.value = !1;
|
|
166
101
|
}
|
|
167
|
-
return
|
|
102
|
+
return f(() => {
|
|
168
103
|
u();
|
|
169
104
|
}), {
|
|
170
105
|
start: l,
|
|
@@ -175,20 +110,20 @@ function K(e) {
|
|
|
175
110
|
}
|
|
176
111
|
//#endregion
|
|
177
112
|
//#region src/composables/motion/useAnimatedNumberMap.ts
|
|
178
|
-
function
|
|
113
|
+
function K(e) {
|
|
179
114
|
let { keys: t, source: n, ...r } = e, i = {};
|
|
180
115
|
for (let e of t) {
|
|
181
|
-
let t = n(e), { current: a } =
|
|
182
|
-
i[e] =
|
|
116
|
+
let t = n(e), { current: a } = u(() => t.value, r);
|
|
117
|
+
i[e] = d(() => t.value === null ? null : a.value);
|
|
183
118
|
}
|
|
184
119
|
return i;
|
|
185
120
|
}
|
|
186
121
|
//#endregion
|
|
187
122
|
//#region src/composables/motion/useCountup.ts
|
|
188
|
-
function
|
|
123
|
+
function q() {
|
|
189
124
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
190
125
|
}
|
|
191
|
-
function
|
|
126
|
+
function J(e, t) {
|
|
192
127
|
let { easeFn: n, skip: r } = t, i = /* @__PURE__ */ new Map();
|
|
193
128
|
function a(e) {
|
|
194
129
|
let t = i.get(e);
|
|
@@ -197,12 +132,12 @@ function Y(e, t) {
|
|
|
197
132
|
function o(e) {
|
|
198
133
|
e.querySelectorAll("[data-countup]").forEach((e) => {
|
|
199
134
|
let t = parseFloat(e.getAttribute("data-countup") ?? "0") || 0, r = parseFloat(e.getAttribute("data-countup-dur") ?? "1200"), o = parseFloat(e.getAttribute("data-countup-delay") ?? "0");
|
|
200
|
-
if (a(e),
|
|
135
|
+
if (a(e), q()) {
|
|
201
136
|
e.textContent = String(t);
|
|
202
137
|
return;
|
|
203
138
|
}
|
|
204
139
|
e.textContent = "0";
|
|
205
|
-
let s = new
|
|
140
|
+
let s = new S([{ v: 0 }, { v: t }], {
|
|
206
141
|
duration: r,
|
|
207
142
|
timingFunction: n
|
|
208
143
|
});
|
|
@@ -235,11 +170,11 @@ function Y(e, t) {
|
|
|
235
170
|
function l() {
|
|
236
171
|
for (let e of [...i.keys()]) a(e);
|
|
237
172
|
}
|
|
238
|
-
return
|
|
173
|
+
return p(l), {
|
|
239
174
|
runActive: s,
|
|
240
175
|
settle: c,
|
|
241
176
|
cancel: l
|
|
242
177
|
};
|
|
243
178
|
}
|
|
244
179
|
//#endregion
|
|
245
|
-
export {
|
|
180
|
+
export { g as AnimationOptionError, s as DAMPING, _ as Draggable, v as ElementMorph, b as ManualTimeline, x as NumericAnimation, C as RAFPlayback, o as SNAP_THRESHOLD, n as SPRING_PRESETS, w as ScrollTimeline, T as Sequence, E as SmoothProgress, D as SpringProgress, O as Timeline, k as UnknownEasingError, A as createNativeTimeline, j as decay, M as decayRest, N as drag, P as flip, F as flipShared, I as loadAnimationEngine, L as resolveEasing, R as springLinearStops, t as springPreset, z as springTimingFunction, V as stagger, H as toEasing, u as useAnimatedNumber, K as useAnimatedNumberMap, J as useCountup, l as useDockCtaReceive, c as useDragMorph, i as useLiquidPress, W as useLiquidReveal, G as useNumericTransition, e as useSpring, a as useSpringMount, r as useSpringPress };
|
package/dist/notification.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Notification-
|
|
1
|
+
import { t as e } from "./Notification-CphK7AAm.js";
|
|
2
2
|
export { e as Notification };
|
package/dist/number-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-D8cXeyO4.js";
|
|
2
2
|
export { e as NumberField, i as NumberFieldContent, n as NumberFieldDecrement, r as NumberFieldIncrement, t as NumberFieldInput };
|
package/dist/pager-dots.js
CHANGED
|
@@ -1,91 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { Fragment as n, computed as r, createElementBlock as i, defineComponent as a, mergeModels as o, nextTick as s, normalizeClass as c, openBlock as l, ref as u, renderList as d, unref as f, useModel as p, watch as m } from "vue";
|
|
4
|
-
//#region src/components/custom/pager-dots/PagerDots.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var h = [
|
|
6
|
-
"aria-label",
|
|
7
|
-
"aria-orientation",
|
|
8
|
-
"data-orientation"
|
|
9
|
-
], g = [
|
|
10
|
-
"aria-selected",
|
|
11
|
-
"aria-label",
|
|
12
|
-
"data-active",
|
|
13
|
-
"data-edge",
|
|
14
|
-
"onClick"
|
|
15
|
-
], _ = /* @__PURE__ */ t(/* @__PURE__ */ a({
|
|
16
|
-
__name: "PagerDots",
|
|
17
|
-
props: /* @__PURE__ */ o({
|
|
18
|
-
count: {},
|
|
19
|
-
orientation: { default: "horizontal" },
|
|
20
|
-
windowFit: {},
|
|
21
|
-
ring: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !0
|
|
24
|
-
},
|
|
25
|
-
ariaLabel: { default: "Pager" },
|
|
26
|
-
class: { type: [
|
|
27
|
-
Boolean,
|
|
28
|
-
null,
|
|
29
|
-
String,
|
|
30
|
-
Object,
|
|
31
|
-
Array
|
|
32
|
-
] }
|
|
33
|
-
}, {
|
|
34
|
-
active: { default: 0 },
|
|
35
|
-
activeModifiers: {}
|
|
36
|
-
}),
|
|
37
|
-
emits: /* @__PURE__ */ o(["select"], ["update:active"]),
|
|
38
|
-
setup(t, { emit: a }) {
|
|
39
|
-
let o = t, _ = a, v = p(t, "active"), y = u(null), b = /* @__PURE__ */ new Map();
|
|
40
|
-
function x(e, t) {
|
|
41
|
-
t ? b.set(e, t) : b.delete(e);
|
|
42
|
-
}
|
|
43
|
-
function S(e, t, n) {
|
|
44
|
-
let r = Math.max(1, Math.min(n, e)), i = e <= r ? 0 : Math.max(0, Math.min(t - Math.floor(r / 2), e - r)), a = Math.min(r, e), o = Array.from({ length: a }, (e, t) => i + t);
|
|
45
|
-
return {
|
|
46
|
-
shown: o,
|
|
47
|
-
clippedStart: o.length > 0 && o[0] > 0,
|
|
48
|
-
clippedEnd: o.length > 0 && o[o.length - 1] < e - 1
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
let C = r(() => o.windowFit && o.windowFit > 0 ? S(o.count, v.value, o.windowFit) : {
|
|
52
|
-
shown: Array.from({ length: Math.max(0, o.count) }, (e, t) => t),
|
|
53
|
-
clippedStart: !1,
|
|
54
|
-
clippedEnd: !1
|
|
55
|
-
}), w = r(() => C.value.shown);
|
|
56
|
-
m(w, (e) => {
|
|
57
|
-
let t = y.value;
|
|
58
|
-
if (!t || !t.contains(document.activeElement)) return;
|
|
59
|
-
let n = document.activeElement;
|
|
60
|
-
e.some((e) => b.get(e) === n) || s(() => b.get(v.value)?.focus());
|
|
61
|
-
});
|
|
62
|
-
function T(e) {
|
|
63
|
-
v.value = e, _("select", e);
|
|
64
|
-
}
|
|
65
|
-
return (r, a) => (l(), i("div", {
|
|
66
|
-
ref_key: "rootEl",
|
|
67
|
-
ref: y,
|
|
68
|
-
"data-slot": "pager-dots",
|
|
69
|
-
role: "tablist",
|
|
70
|
-
"aria-label": t.ariaLabel,
|
|
71
|
-
"aria-orientation": t.orientation,
|
|
72
|
-
"data-orientation": t.orientation,
|
|
73
|
-
class: c(f(e)("pager-dots inline-flex items-center justify-center gap-1.5", t.ring && "glass-pager-ring", t.orientation === "vertical" && "flex-col", o.class))
|
|
74
|
-
}, [(l(!0), i(n, null, d(w.value, (e, t) => (l(), i("button", {
|
|
75
|
-
key: e,
|
|
76
|
-
ref_for: !0,
|
|
77
|
-
ref: (t) => x(e, t),
|
|
78
|
-
type: "button",
|
|
79
|
-
role: "tab",
|
|
80
|
-
"aria-selected": e === v.value,
|
|
81
|
-
"aria-label": `Go to slide ${e + 1}`,
|
|
82
|
-
"data-active": e === v.value ? "" : void 0,
|
|
83
|
-
"data-edge": t === 0 && C.value.clippedStart || t === w.value.length - 1 && C.value.clippedEnd ? "" : void 0,
|
|
84
|
-
"data-slot": "pager-dot",
|
|
85
|
-
class: "pager-dot focus-ring tap-squish",
|
|
86
|
-
onClick: (t) => T(e)
|
|
87
|
-
}, null, 8, g))), 128))], 10, h));
|
|
88
|
-
}
|
|
89
|
-
}), [["__scopeId", "data-v-fab90e4f"]]);
|
|
90
|
-
//#endregion
|
|
91
|
-
export { _ as PagerDots };
|
|
1
|
+
import { n as e, t } from "./PagerDots-Cjx96la-.js";
|
|
2
|
+
export { t as PagerDots, e as pagerWindow };
|
package/dist/paper-backdrop.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./PaperBackdrop-
|
|
1
|
+
import { t as e } from "./PaperBackdrop-CqwjnfLv.js";
|
|
2
2
|
export { e as PaperBackdrop };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/paper-grid";
|