@mkbabb/glass-ui 3.13.0 → 4.0.1
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/README.md +3 -1
- package/dist/CardAction-CW7a0m8M.js +253 -0
- package/dist/{CommandShortcut-RowNEO6i.js → CommandShortcut-DvZNQ_HF.js} +58 -53
- package/dist/ConfiguratorRow-BR4l-ixA.js +143 -0
- package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-uWnVxDab.js} +1 -1
- package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-xol4sD2q.js} +32 -37
- package/dist/{DataTable-BCddn3T3.js → DataTable-CuKwF7wr.js} +99 -97
- package/dist/DialogContent-DcKK8k9i.js +103 -0
- package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-BZNX5aVr.js} +3 -3
- package/dist/FadingScroll-DI6hQhT9.js +76 -0
- package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-b2uaAMRR.js} +1 -1
- package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-CbqbNwgU.js} +2 -2
- package/dist/IconChip-BTD-nay5.js +55 -0
- package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-Bl8gFZ8d.js} +1 -1
- package/dist/{Input-DWQQIOC4.js → Input-h9v5LeXf.js} +1 -1
- package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-RHdBP72w.js} +1 -1
- package/dist/Notification-VUwexFUf.js +43 -0
- package/dist/NumberFieldContent-Cq7EzX-U.js +138 -0
- package/dist/PopoverContent-DL7E6vJP.js +127 -0
- package/dist/{Progress-DwlUKGbr.js → Progress-DctG61iZ.js} +98 -78
- package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-yOpBzFYq.js} +2 -2
- package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-CrA8F0iV.js} +35 -20
- package/dist/{Switch-CsIuYP_e.js → Switch-CwYNf8bo.js} +1 -1
- package/dist/Toaster-Bw4xR8xV.js +274 -0
- package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-pEM9vIhs.js} +50 -37
- package/dist/{TooltipProvider-B3MkB_8P.js → TooltipProvider-rzvnXz60.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +16 -8
- package/dist/api/types-extra.d.ts +6 -0
- package/dist/api.js +2 -2
- package/dist/aurora.js +888 -230
- package/dist/badge.js +1 -1
- package/dist/border-progress.d.ts +1 -0
- package/dist/border-progress.js +106 -0
- package/dist/button-DYCUa-tH.js +126 -0
- package/dist/button.js +1 -1
- package/dist/canvas.js +2 -2
- package/dist/card.js +2 -2
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +90 -151
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.d.ts +1 -0
- package/dist/color-swatch.js +47 -0
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/compile-CQEFRTmx.js +19 -0
- package/dist/components/custom/aurora/composables/atoms-fields.d.ts +39 -0
- package/dist/components/custom/aurora/composables/auroraFallbackGround.d.ts +108 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +19 -0
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +5 -1
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +51 -0
- package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +29 -0
- package/dist/components/custom/aurora/constants/budget.d.ts +21 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +30 -2
- package/dist/components/custom/aurora/constants/renderMode.d.ts +63 -10
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/procedural-color.wgsl.d.ts +4 -0
- package/dist/components/custom/aurora/index.d.ts +3 -2
- package/dist/components/custom/border-progress/BorderProgress.vue.d.ts +46 -0
- package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +22 -0
- package/dist/components/custom/border-progress/constants.d.ts +59 -0
- package/dist/components/custom/border-progress/index.d.ts +4 -0
- package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
- package/dist/components/custom/color-swatch/index.d.ts +1 -0
- package/dist/components/custom/concentric/Concentric.vue.d.ts +39 -0
- package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +11 -0
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +13 -0
- package/dist/components/custom/concentric/composables/ringField.d.ts +44 -0
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +13 -0
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +35 -0
- package/dist/components/custom/concentric/constants.d.ts +43 -0
- package/dist/components/custom/concentric/index.d.ts +5 -0
- package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +4 -0
- package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -0
- package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/constellation/Constellation.vue.d.ts +18 -206
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/constellationField.d.ts +2 -369
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +1 -1
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +13 -4
- package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +10 -2
- package/dist/components/custom/dock/DockRail.vue.d.ts +17 -16
- package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -5
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +75 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -0
- package/dist/components/custom/dock/constants.d.ts +35 -0
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +38 -0
- package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +41 -0
- package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +24 -0
- package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +34 -0
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -0
- package/dist/components/custom/dot-flow-field/constants.d.ts +48 -0
- package/dist/components/custom/dot-flow-field/index.d.ts +5 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +20 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -0
- package/dist/components/custom/easing/EasingConfigurator.vue.d.ts +33 -0
- package/dist/components/custom/easing/EasingPicker.vue.d.ts +49 -0
- package/dist/components/custom/easing/composables/useEasingPicker.d.ts +75 -0
- package/dist/components/custom/easing/constants.d.ts +28 -0
- package/dist/components/custom/easing/index.d.ts +3 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
- package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
- package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
- package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
- package/dist/components/custom/fading-scroll/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +19 -2
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +39 -0
- package/dist/components/custom/fourier-field/constants.d.ts +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +17 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +9 -1
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +4 -2
- package/dist/components/custom/goo-blob/composables/uniformBridgeWGPU.d.ts +24 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +29 -12
- package/dist/components/custom/goo-blob/composables/wgpuSetup.d.ts +23 -0
- package/dist/components/custom/goo-blob/constants.d.ts +6 -1
- package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -0
- package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
- package/dist/components/custom/handmark/brush.d.ts +269 -0
- package/dist/components/custom/handmark/composables/useHandMark.d.ts +89 -0
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/freehand.d.ts +69 -0
- package/dist/components/custom/handmark/geometry.d.ts +52 -0
- package/dist/components/custom/handmark/index.d.ts +27 -0
- package/dist/components/custom/handmark/ink.d.ts +11 -0
- package/dist/components/custom/handmark/texture.d.ts +39 -0
- package/dist/components/custom/handmark/types.d.ts +62 -0
- package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
- package/dist/components/custom/icon-chip/index.d.ts +2 -0
- package/dist/components/custom/icon-chip/types.d.ts +82 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -2
- package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/spa-view/SpaView.vue.d.ts +50 -0
- package/dist/components/custom/spa-view/index.d.ts +2 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +29 -24
- package/dist/components/custom/tabs/composables/useTabDragMorph.d.ts +42 -0
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +9 -3
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +15 -1
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/button/Button.vue.d.ts +5 -2
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/card/Card.vue.d.ts +34 -4
- package/dist/components/ui/card/CardHeader.vue.d.ts +42 -16
- package/dist/components/ui/card/ScrollCard.vue.d.ts +33 -0
- package/dist/components/ui/card/ScrollCardHeader.vue.d.ts +17 -0
- package/dist/components/ui/card/index.d.ts +2 -0
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +2 -2
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +4 -1
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/Drawer.vue.d.ts +46 -33
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +12 -8
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +2 -2
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +1 -1
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +2 -2
- package/dist/components/ui/drawer/composables/drawerSnapContext.d.ts +26 -0
- package/dist/components/ui/drawer/composables/useDrawerSnap.d.ts +17 -0
- package/dist/components/ui/drawer/constants.d.ts +45 -0
- package/dist/components/ui/drawer/index.d.ts +23 -15
- package/dist/components/ui/focus-scope/FocusScope.vue.d.ts +20 -0
- package/dist/components/ui/focus-scope/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +3 -2
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/ui/toast/Toast.vue.d.ts +5 -2
- package/dist/components/ui/toast/use-toast.d.ts +14 -0
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +23 -1
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +13 -6
- package/dist/composables/glass/index.d.ts +5 -2
- package/dist/composables/glass/useSpecularPointer.d.ts +33 -0
- package/dist/composables/glass/useSpecularTracking.d.ts +20 -0
- package/dist/composables/glass/vSpecular.d.ts +2 -0
- package/dist/composables/glass/webgl/shaders/flow.glsl.d.ts +1 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -0
- package/dist/composables/glass/webgpu/index.d.ts +2 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +54 -0
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +84 -0
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/composables/motion/index.d.ts +4 -0
- package/dist/composables/motion/useDockCtaReceive.d.ts +59 -0
- package/dist/composables/motion/useDragMorph.d.ts +77 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +11 -0
- package/dist/composables/motion/useLiquidPress.d.ts +71 -0
- package/dist/composables/motion/useLiquidReveal.d.ts +51 -0
- package/dist/composables/motion/useNumericTransition.d.ts +3 -3
- package/dist/composables/motion/usePointerVelocityField.d.ts +98 -0
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/concentric.d.ts +1 -0
- package/dist/concentric.js +562 -0
- package/dist/configurator.js +3 -2
- package/dist/confirm-dialog.js +22 -24
- package/dist/constellation.js +93 -95
- package/dist/context-menu.js +3 -3
- package/dist/controls.js +10 -4
- package/dist/createCanvasLifecycle-CHD5XrDW.js +82 -0
- package/dist/dark.d.ts +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +738 -442
- package/dist/{dockContext-BegmJVmx.js → dockContext-BNfyPLe9.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/dot-flow-field.d.ts +1 -0
- package/dist/dot-flow-field.js +604 -0
- package/dist/drawer.d.ts +1 -0
- package/dist/drawer.js +380 -0
- package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-CofSZuk8.js} +14 -15
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.d.ts +1 -0
- package/dist/easing.js +463 -0
- package/dist/expandable-container.js +45 -38
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/focus-scope.d.ts +1 -0
- package/dist/focus-scope.js +23 -0
- package/dist/forms.js +7 -7
- package/dist/fourier-field.js +135 -122
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +39 -36
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +154 -362
- package/dist/goo-blob.js +838 -227
- package/dist/handmark.d.ts +1 -0
- package/dist/handmark.js +707 -0
- 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.d.ts +1 -0
- package/dist/icon-chip.js +2 -0
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/{math-U6-RrLmV.js → math-BINYmg5z.js} +11 -3
- package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-D8VNHq22.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +25 -22
- package/dist/metric-stack.js +4 -8
- package/dist/motion-core.js +36 -35
- package/dist/motion-curves.js +1 -1
- package/dist/motion.js +157 -55
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.d.ts +1 -0
- package/dist/pager-dots.js +91 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-BKVyQfbt.js → presets-BW2b-fr1.js} +14 -1
- package/dist/{compile-B7NGOBcP.js → procedural-color.glsl-CIFsJhwI.js} +1 -155
- package/dist/procedural-color.wgsl-CToRHugY.js +224 -0
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +10 -12
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/sheet-tZMg0E0w.js +218 -0
- package/dist/sheet.js +1 -1
- package/dist/{slider-B-JP2JlI.js → slider-DVb4HXU-.js} +7 -7
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/spa-view.d.ts +1 -0
- package/dist/spa-view.js +46 -0
- package/dist/styles/animations.css +40 -31
- package/dist/styles/border-progress.css +109 -0
- package/dist/styles/cards.css +76 -0
- package/dist/styles/components.css +1 -1
- package/dist/styles/configurator.css +35 -0
- package/dist/styles/critical-partition.mjs +140 -0
- package/dist/styles/critical.css +12 -0
- package/dist/styles/deferred.css +31 -0
- package/dist/styles/dock/density.css +64 -0
- package/dist/styles/dock/layers.css +54 -30
- package/dist/styles/dock/morph.css +124 -7
- package/dist/styles/dock/overflow.css +31 -2
- package/dist/styles/dock/rail-extend.css +168 -71
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +83 -16
- package/dist/styles/dock-controls/icon-button.css +11 -1
- package/dist/styles/dock-controls/tab-button.css +24 -83
- package/dist/styles/dock-controls/triggers.css +7 -0
- package/dist/styles/dock.css +38 -3
- package/dist/styles/drawer.css +127 -35
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/glass/deep.css +44 -0
- package/dist/styles/glass/ladder.css +154 -52
- package/dist/styles/glass/material.css +78 -15
- package/dist/styles/glass/reveal.css +136 -0
- package/dist/styles/glass/rim.css +100 -0
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +189 -15
- package/dist/styles/glass-refract.css +96 -44
- package/dist/styles/glass-specular-track.css +7 -0
- package/dist/styles/glass.css +8 -2
- package/dist/styles/hover-popover.css +7 -6
- package/dist/styles/icon-chip.css +211 -0
- package/dist/styles/index.css +78 -4
- package/dist/styles/instrument-chassis.css +107 -2
- package/dist/styles/menu.css +127 -0
- package/dist/styles/scroll-choreography.css +300 -0
- package/dist/styles/segmented-tabs.css +188 -86
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +22 -1
- package/dist/styles/theme/literals.css +11 -2
- package/dist/styles/theme/radius.css +6 -1
- package/dist/styles/tokens/color-radius.css +40 -13
- package/dist/styles/tokens/dark-arm.css +200 -20
- package/dist/styles/tokens/glass-deep.css +75 -0
- package/dist/styles/tokens/glass-fx.css +333 -0
- package/dist/styles/tokens/glass.css +95 -315
- package/dist/styles/tokens/light-dark.css +64 -22
- package/dist/styles/tokens/offsets.css +116 -0
- package/dist/styles/tokens/on-glass-fg.css +39 -0
- package/dist/styles/tokens/property-regs.css +130 -10
- package/dist/styles/tokens/scale-paper.css +155 -84
- package/dist/styles/tokens/scheme-motion.css +102 -46
- package/dist/styles/tokens/scroll-tokens.css +123 -0
- package/dist/styles/tokens/{offsets-sizing.css → sizing.css} +88 -89
- package/dist/styles/tokens.css +9 -3
- package/dist/styles/transitions.css +7 -7
- package/dist/styles/typography/scale.css +153 -0
- package/dist/styles/typography/semantic.css +220 -0
- package/dist/styles/typography/utilities.css +174 -0
- package/dist/styles/typography.css +23 -507
- package/dist/styles/utilities/a11y-overrides.css +33 -4
- package/dist/styles/utilities/animate.css +27 -24
- package/dist/styles/utilities/base-misc.css +255 -0
- package/dist/styles/utilities/base.css +100 -138
- package/dist/styles/utilities/btn.css +21 -202
- package/dist/styles/utilities/metal.css +189 -0
- package/dist/styles/utilities.css +14 -7
- package/dist/styles/view-transition.css +4 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +275 -191
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +3 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-BfUq2bUM.js} +1 -1
- package/dist/useCanvas2D-B8w_E3Rr.js +83 -0
- package/dist/useConfiguratorState-DNlOh6c8.js +161 -0
- package/dist/useDragMorph-DgxnsVJz.js +102 -0
- package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
- package/dist/useLiquidPress-kfb4KX79.js +39 -0
- package/dist/usePointerVelocityField-JbRd5CrM.js +137 -0
- package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-UYa4zoiN.js} +1 -1
- package/dist/useSpring-C0jyvEJB.js +40 -0
- package/dist/useSpringMount-q1amq1SJ.js +71 -0
- package/dist/useSpringPress-BsqPr7FJ.js +34 -0
- package/dist/useSurfaceAxis-g0NloYEF.js +7 -0
- package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-CBZTD4SD.js} +1 -1
- package/dist/vReveal-Czsb7zQC.js +10 -0
- package/dist/vSpecular-CQFmLNzA.js +68 -0
- package/dist/vendor-CKmzio-i.js +226 -0
- package/dist/watercolor-dot.js +12 -5
- package/package.json +193 -25
- package/src/styles/animations.css +40 -31
- package/src/styles/border-progress.css +109 -0
- package/src/styles/cards.css +76 -0
- package/src/styles/configurator.css +35 -0
- package/src/styles/critical-partition.mjs +140 -0
- package/src/styles/dock/density.css +64 -0
- package/src/styles/dock/layers.css +54 -30
- package/src/styles/dock/morph.css +124 -7
- package/src/styles/dock/overflow.css +31 -2
- package/src/styles/dock/rail-extend.css +168 -71
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +83 -16
- package/src/styles/dock-controls/icon-button.css +11 -1
- package/src/styles/dock-controls/tab-button.css +24 -83
- package/src/styles/dock-controls/triggers.css +7 -0
- package/src/styles/dock.css +38 -3
- package/src/styles/drawer.css +123 -35
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/glass/deep.css +44 -0
- package/src/styles/glass/ladder.css +154 -52
- package/src/styles/glass/material.css +78 -15
- package/src/styles/glass/reveal.css +136 -0
- package/src/styles/glass/rim.css +100 -0
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +189 -15
- package/src/styles/glass-refract.css +96 -44
- package/src/styles/glass-specular-track.css +7 -0
- package/src/styles/glass.css +8 -2
- package/src/styles/hover-popover.css +7 -6
- package/src/styles/icon-chip.css +211 -0
- package/src/styles/index.css +78 -4
- package/src/styles/instrument-chassis.css +107 -2
- package/src/styles/menu.css +127 -0
- package/src/styles/scroll-choreography.css +300 -0
- package/src/styles/segmented-tabs.css +184 -84
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +22 -1
- package/src/styles/theme/literals.css +11 -2
- package/src/styles/theme/radius.css +6 -1
- package/src/styles/tokens/color-radius.css +40 -13
- package/src/styles/tokens/dark-arm.css +200 -20
- package/src/styles/tokens/glass-deep.css +75 -0
- package/src/styles/tokens/glass-fx.css +333 -0
- package/src/styles/tokens/glass.css +95 -315
- package/src/styles/tokens/light-dark.css +64 -22
- package/src/styles/tokens/offsets.css +116 -0
- package/src/styles/tokens/on-glass-fg.css +39 -0
- package/src/styles/tokens/property-regs.css +130 -10
- package/src/styles/tokens/scale-paper.css +155 -84
- package/src/styles/tokens/scheme-motion.css +102 -46
- package/src/styles/tokens/scroll-tokens.css +123 -0
- package/src/styles/tokens/{offsets-sizing.css → sizing.css} +88 -89
- package/src/styles/tokens.css +9 -3
- package/src/styles/transitions.css +7 -7
- package/src/styles/typography/scale.css +153 -0
- package/src/styles/typography/semantic.css +220 -0
- package/src/styles/typography/utilities.css +174 -0
- package/src/styles/typography.css +23 -507
- package/src/styles/utilities/a11y-overrides.css +33 -4
- package/src/styles/utilities/animate.css +27 -24
- package/src/styles/utilities/base-misc.css +255 -0
- package/src/styles/utilities/base.css +100 -138
- package/src/styles/utilities/btn.css +21 -202
- package/src/styles/utilities/metal.css +189 -0
- package/src/styles/utilities.css +14 -7
- package/src/styles/view-transition.css +4 -1
- package/dist/CardAction-Cj2eycQ2.js +0 -157
- package/dist/DialogContent-Dl9WkAoS.js +0 -100
- package/dist/Notification-DdwNxIrI.js +0 -100
- package/dist/NumberFieldContent-CqaN-SvN.js +0 -145
- package/dist/PopoverContent-BYwt2-4x.js +0 -121
- package/dist/TabsList-Dttss653.js +0 -105
- package/dist/Toaster-D6q4HtXu.js +0 -263
- package/dist/button-ChXMfsud.js +0 -81
- package/dist/check-njhk-vfu.js +0 -7
- package/dist/chevron-down-DKkxb4VV.js +0 -7
- package/dist/chevron-right-CPXbqQQz.js +0 -7
- package/dist/chevron-up-n_24SqI-.js +0 -7
- package/dist/components/custom/underline/GlassUnderline.vue.d.ts +0 -84
- package/dist/components/custom/underline/index.d.ts +0 -2
- package/dist/components/custom/underline/types.d.ts +0 -56
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/createLucideIcon-DydS2qgk.js +0 -43
- package/dist/minimize-2-BV31Ob_h.js +0 -38
- package/dist/search-BSGrf2Sk.js +0 -12
- package/dist/sheet-1fChZjtw.js +0 -214
- package/dist/underline.d.ts +0 -1
- package/dist/underline.js +0 -85
- package/dist/useCanvas2D-ClrQuZtp.js +0 -96
- package/dist/useConfiguratorState-DAoeHVue.js +0 -287
- package/dist/useSpecularTracking-Bo5su68i.js +0 -32
- package/dist/useSpringMount-CI2jOstM.js +0 -108
- package/dist/vReveal-CqaCz_mC.js +0 -44
- package/dist/x-BUwTKe50.js +0 -10
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-68dEXIAl.js} +0 -0
- /package/dist/{InstrumentChassis-UUJX0-mW.js → InstrumentChassis-Bx0F_q5g.js} +0 -0
- /package/dist/{Label-r3WzWrsj.js → Label-C2ejNWeC.js} +0 -0
- /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-D1VrWyoi.js} +0 -0
- /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-Vf3tlpvd.js} +0 -0
- /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-DwwjicPY.js} +0 -0
- /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DXswVdRz.js} +0 -0
- /package/dist/{Separator-0JE6LtNu.js → Separator-pKF0oA4M.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
- /package/dist/{badge-UILT_3pZ.js → badge-D9XWW4GT.js} +0 -0
- /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-BM46COQ-.js → createContext-CpBNTRMI.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Za0Rmgag.js} +0 -0
- /package/dist/{resolveCanvasColor-BBiYfp8g.js → resolveCanvasColor-CUyHr5Uu.js} +0 -0
- /package/dist/{springPresets--YdWTHtm.js → springPresets-CFQGQfdl.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-iHludrxk.js → useInterval-CvK1mL92.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-mZPMiNXh.js} +0 -0
- /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-Bpoi7tRE.js} +0 -0
- /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-vAylyR0x.js} +0 -0
- /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-DHjtZSEd.js} +0 -0
- /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-CWEi25hf.js} +0 -0
- /package/dist/{useTimer-Dzarvzuk.js → useTimer-BHJOKr35.js} +0 -0
- /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-y5namzeE.js} +0 -0
- /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-anbac3m6.js} +0 -0
package/dist/drawer.js
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./useSurfaceAxis-g0NloYEF.js";
|
|
3
|
+
import { t as n } from "./createContext-CpBNTRMI.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, onUnmounted as f, openBlock as p, ref as m, renderSlot as h, toRef as g, unref as _, watch as v, withCtx as y } from "vue";
|
|
5
|
+
import { DialogClose as b, DialogContent as x, DialogDescription as S, DialogOverlay as C, DialogPortal as w, DialogPortal as T, DialogRoot as E, DialogTitle as D, DialogTrigger as O, useForwardPropsEmits as k } from "reka-ui";
|
|
6
|
+
import { SpringProgress as A } from "@mkbabb/keyframes.js";
|
|
7
|
+
//#region src/components/ui/drawer/constants.ts
|
|
8
|
+
var j = {
|
|
9
|
+
response: .4,
|
|
10
|
+
dampingFraction: .82
|
|
11
|
+
}, M = [
|
|
12
|
+
.12,
|
|
13
|
+
.5,
|
|
14
|
+
1
|
|
15
|
+
];
|
|
16
|
+
function N(e) {
|
|
17
|
+
return e === "left" || e === "right" ? [] : M;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/ui/drawer/composables/drawerSnapContext.ts
|
|
21
|
+
var P = n("glass-ui:drawer-snap-context"), { KEY: F } = P;
|
|
22
|
+
function I(e) {
|
|
23
|
+
P.provide(e);
|
|
24
|
+
}
|
|
25
|
+
var L = P.use, R = /* @__PURE__ */ l({
|
|
26
|
+
__name: "Drawer",
|
|
27
|
+
props: {
|
|
28
|
+
open: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: void 0
|
|
31
|
+
},
|
|
32
|
+
defaultOpen: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
modal: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: void 0
|
|
39
|
+
},
|
|
40
|
+
mode: { default: "modal" },
|
|
41
|
+
snapPoints: { default: void 0 },
|
|
42
|
+
activeSnapPoint: { default: void 0 },
|
|
43
|
+
direction: { default: "bottom" },
|
|
44
|
+
shouldScaleBackground: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: void 0
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:open", "update:activeSnapPoint"],
|
|
50
|
+
setup(e, { emit: t }) {
|
|
51
|
+
let n = e, a = t, o = r(() => n.open !== void 0), s = m(n.open ?? n.defaultOpen);
|
|
52
|
+
v(() => n.open, (e) => {
|
|
53
|
+
e !== void 0 && (s.value = e);
|
|
54
|
+
});
|
|
55
|
+
function c(e) {
|
|
56
|
+
s.value = e, a("update:open", e);
|
|
57
|
+
}
|
|
58
|
+
let l = r(() => o.value ? n.open : s.value), u = r(() => n.mode === "live-behind"), d = r(() => n.modal ?? !u.value), f = r(() => n.snapPoints && n.snapPoints.length > 0 ? n.snapPoints.map((e) => typeof e == "number" ? e : Number.parseFloat(e)) : N(n.direction)), b = m(n.activeSnapPoint ?? null);
|
|
59
|
+
v(() => n.activeSnapPoint, (e) => {
|
|
60
|
+
e !== void 0 && (b.value = e);
|
|
61
|
+
}), v(b, (e) => a("update:activeSnapPoint", e));
|
|
62
|
+
let x = m(l.value);
|
|
63
|
+
return v(l, (e) => x.value = e), v(x, (e) => {
|
|
64
|
+
e !== l.value && c(e);
|
|
65
|
+
}), I({
|
|
66
|
+
open: x,
|
|
67
|
+
snapPoints: f,
|
|
68
|
+
direction: g(n, "direction"),
|
|
69
|
+
activeSnapPoint: b
|
|
70
|
+
}), (e, t) => (p(), i(_(E), {
|
|
71
|
+
"data-slot": "drawer",
|
|
72
|
+
open: l.value,
|
|
73
|
+
modal: d.value,
|
|
74
|
+
"onUpdate:open": c
|
|
75
|
+
}, {
|
|
76
|
+
default: y(() => [h(e.$slots, "default")]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["open", "modal"]));
|
|
79
|
+
}
|
|
80
|
+
}), z = /* @__PURE__ */ l({
|
|
81
|
+
__name: "DrawerOverlay",
|
|
82
|
+
props: {
|
|
83
|
+
forceMount: { type: Boolean },
|
|
84
|
+
asChild: { type: Boolean },
|
|
85
|
+
as: {},
|
|
86
|
+
class: { type: [
|
|
87
|
+
Boolean,
|
|
88
|
+
null,
|
|
89
|
+
String,
|
|
90
|
+
Object,
|
|
91
|
+
Array
|
|
92
|
+
] }
|
|
93
|
+
},
|
|
94
|
+
setup(t) {
|
|
95
|
+
let n = t, a = r(() => {
|
|
96
|
+
let { class: e, ...t } = n;
|
|
97
|
+
return t;
|
|
98
|
+
});
|
|
99
|
+
return (t, r) => (p(), i(_(C), u(a.value, { class: _(e)("fixed inset-0 z-overlay bg-overlay-scrim-strong [backdrop-filter:var(--glass-blur-wash)]", n.class) }), null, 16, ["class"]));
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region src/components/ui/drawer/composables/useDrawerSnap.ts
|
|
104
|
+
function B(e) {
|
|
105
|
+
return e === "left" || e === "right";
|
|
106
|
+
}
|
|
107
|
+
function V(e, t) {
|
|
108
|
+
return e.length > 0 ? [...e].sort((e, t) => e - t) : B(t) ? [0, 1] : [1];
|
|
109
|
+
}
|
|
110
|
+
function H(e, t) {
|
|
111
|
+
let n = t[0], r = Math.abs(e - n);
|
|
112
|
+
for (let i of t) {
|
|
113
|
+
let t = Math.abs(e - i);
|
|
114
|
+
t < r && (n = i, r = t);
|
|
115
|
+
}
|
|
116
|
+
return n;
|
|
117
|
+
}
|
|
118
|
+
function U(e, t, n) {
|
|
119
|
+
let r = n.indexOf(e);
|
|
120
|
+
if (r === -1) return H(e, n);
|
|
121
|
+
let i = r + t;
|
|
122
|
+
return i < 0 || i >= n.length ? e : n[i];
|
|
123
|
+
}
|
|
124
|
+
function W(e) {
|
|
125
|
+
let { contentEl: t, handleEl: n, ctx: r } = e, i = m(!1), a = null;
|
|
126
|
+
function o(e) {
|
|
127
|
+
let n = t.value;
|
|
128
|
+
n && n.style.setProperty("--glass-drawer-t", `${e}`);
|
|
129
|
+
}
|
|
130
|
+
function s() {
|
|
131
|
+
a &&= (a.dispose(), null);
|
|
132
|
+
}
|
|
133
|
+
function c() {
|
|
134
|
+
return a || (a = new A({
|
|
135
|
+
response: j.response,
|
|
136
|
+
dampingFraction: j.dampingFraction,
|
|
137
|
+
initial: l(),
|
|
138
|
+
respectReducedMotion: !0
|
|
139
|
+
}), a.play((e) => o(e)), a);
|
|
140
|
+
}
|
|
141
|
+
function l() {
|
|
142
|
+
let e = r.activeSnapPoint.value;
|
|
143
|
+
if (typeof e == "number") return e;
|
|
144
|
+
if (typeof e == "string") {
|
|
145
|
+
let t = Number.parseFloat(e);
|
|
146
|
+
if (!Number.isNaN(t)) return t;
|
|
147
|
+
}
|
|
148
|
+
let t = V(r.snapPoints.value, r.direction.value);
|
|
149
|
+
return t[t.length - 1] ?? 1;
|
|
150
|
+
}
|
|
151
|
+
function u(e) {
|
|
152
|
+
let t = c();
|
|
153
|
+
t.target = e, r.activeSnapPoint.value = e;
|
|
154
|
+
}
|
|
155
|
+
function d(e) {
|
|
156
|
+
u(H(e, V(r.snapPoints.value, r.direction.value)));
|
|
157
|
+
}
|
|
158
|
+
let p = null, h = 0, g = 0, _ = 0, y = 0, b = 0;
|
|
159
|
+
function x(e) {
|
|
160
|
+
let t = r.direction.value;
|
|
161
|
+
return t === "bottom" ? -e.clientY : t === "top" ? e.clientY : t === "left" ? e.clientX : -e.clientX;
|
|
162
|
+
}
|
|
163
|
+
function S() {
|
|
164
|
+
let e = t.value;
|
|
165
|
+
if (!e) return 1;
|
|
166
|
+
let n = e.getBoundingClientRect();
|
|
167
|
+
return B(r.direction.value) ? n.width || 1 : n.height || 1;
|
|
168
|
+
}
|
|
169
|
+
function C(e) {
|
|
170
|
+
let t = n.value;
|
|
171
|
+
t && (a && a.stop(), i.value = !0, p = e.pointerId, h = x(e), _ = h, y = e.timeStamp, g = l(), b = 0, t.setPointerCapture?.(e.pointerId));
|
|
172
|
+
}
|
|
173
|
+
function w(e) {
|
|
174
|
+
if (p === null || e.pointerId !== p) return;
|
|
175
|
+
let t = x(e), n = (e.timeStamp - y) / 1e3;
|
|
176
|
+
n > 0 && (b = (t - _) / n), _ = t, y = e.timeStamp;
|
|
177
|
+
let i = (t - h) / S(), a = V(r.snapPoints.value, r.direction.value), s = a[0], c = a[a.length - 1];
|
|
178
|
+
o(Math.min(c, Math.max(s, g + i)));
|
|
179
|
+
}
|
|
180
|
+
function T(e) {
|
|
181
|
+
if (p === null || e.pointerId !== p) return;
|
|
182
|
+
n.value?.releasePointerCapture?.(e.pointerId), p = null, i.value = !1;
|
|
183
|
+
let t = V(r.snapPoints.value, r.direction.value), a = E(), o;
|
|
184
|
+
if (Math.abs(b) >= 450 && t.length > 1) {
|
|
185
|
+
let e = b > 0 ? 1 : -1;
|
|
186
|
+
o = U(H(a, t), e, t);
|
|
187
|
+
} else o = H(a, t);
|
|
188
|
+
if (o <= 0) {
|
|
189
|
+
r.open.value = !1;
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
u(o);
|
|
193
|
+
}
|
|
194
|
+
function E() {
|
|
195
|
+
let e = t.value;
|
|
196
|
+
if (!e) return l();
|
|
197
|
+
let n = e.style.getPropertyValue("--glass-drawer-t"), r = Number.parseFloat(n);
|
|
198
|
+
return Number.isNaN(r) ? l() : r;
|
|
199
|
+
}
|
|
200
|
+
let D = null;
|
|
201
|
+
function O(e) {
|
|
202
|
+
e.addEventListener("pointerdown", C), e.addEventListener("pointermove", w), e.addEventListener("pointerup", T), e.addEventListener("pointercancel", T), D = () => {
|
|
203
|
+
e.removeEventListener("pointerdown", C), e.removeEventListener("pointermove", w), e.removeEventListener("pointerup", T), e.removeEventListener("pointercancel", T), D = null;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
return v(n, (e) => {
|
|
207
|
+
D?.(), e && O(e);
|
|
208
|
+
}, { immediate: !0 }), v(r.open, (e) => {
|
|
209
|
+
e ? queueMicrotask(() => {
|
|
210
|
+
o(0), u(l());
|
|
211
|
+
}) : s();
|
|
212
|
+
}, { immediate: !0 }), v(r.activeSnapPoint, (e) => {
|
|
213
|
+
if (!r.open.value || i.value) return;
|
|
214
|
+
let t = typeof e == "number" ? e : typeof e == "string" ? Number.parseFloat(e) : NaN;
|
|
215
|
+
if (!Number.isNaN(t) && (!a || Math.abs(a.target - t) > .001)) {
|
|
216
|
+
let e = V(r.snapPoints.value, r.direction.value);
|
|
217
|
+
c().target = H(t, e);
|
|
218
|
+
}
|
|
219
|
+
}), f(() => {
|
|
220
|
+
D?.(), s();
|
|
221
|
+
}), {
|
|
222
|
+
dragging: i,
|
|
223
|
+
snapTo: d
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/components/ui/drawer/DrawerContent.vue?vue&type=script&setup=true&lang.ts
|
|
228
|
+
var G = ["data-dragging"], K = /* @__PURE__ */ l({
|
|
229
|
+
__name: "DrawerContent",
|
|
230
|
+
props: {
|
|
231
|
+
forceMount: { type: Boolean },
|
|
232
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
233
|
+
asChild: { type: Boolean },
|
|
234
|
+
as: {},
|
|
235
|
+
class: { type: [
|
|
236
|
+
Boolean,
|
|
237
|
+
null,
|
|
238
|
+
String,
|
|
239
|
+
Object,
|
|
240
|
+
Array
|
|
241
|
+
] },
|
|
242
|
+
showOverlay: {
|
|
243
|
+
type: Boolean,
|
|
244
|
+
default: !0
|
|
245
|
+
},
|
|
246
|
+
surface: { default: "glass" }
|
|
247
|
+
},
|
|
248
|
+
emits: [
|
|
249
|
+
"escapeKeyDown",
|
|
250
|
+
"pointerDownOutside",
|
|
251
|
+
"focusOutside",
|
|
252
|
+
"interactOutside",
|
|
253
|
+
"openAutoFocus",
|
|
254
|
+
"closeAutoFocus"
|
|
255
|
+
],
|
|
256
|
+
setup(n, { emit: o }) {
|
|
257
|
+
let l = n, d = o, f = k(r(() => {
|
|
258
|
+
let { class: e, showOverlay: t, surface: n, ...r } = l;
|
|
259
|
+
return r;
|
|
260
|
+
}), d), g = r(() => t(l.surface).replace(/^glass-\w+\s*/, "")), v = m(null), b = m(null);
|
|
261
|
+
function S(e) {
|
|
262
|
+
if (!e) {
|
|
263
|
+
v.value = null;
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
let t = e.$el ?? e;
|
|
267
|
+
v.value = t instanceof HTMLElement ? t : null;
|
|
268
|
+
}
|
|
269
|
+
let C = L(), T = C ? W({
|
|
270
|
+
contentEl: v,
|
|
271
|
+
handleEl: b,
|
|
272
|
+
ctx: C
|
|
273
|
+
}) : null, E = r(() => (C?.snapPoints.value.length ?? 0) > 1), D = r(() => C?.direction.value ?? "bottom"), O = r(() => {
|
|
274
|
+
if (!C) return;
|
|
275
|
+
let e = D.value;
|
|
276
|
+
return e === "bottom" ? { transform: "translateY(calc((1 - var(--glass-drawer-t, 1)) * 100%))" } : e === "top" ? { transform: "translateY(calc((var(--glass-drawer-t, 1) - 1) * 100%))" } : e === "left" ? { transform: "translateX(calc((var(--glass-drawer-t, 1) - 1) * 100%))" } : { transform: "translateX(calc((1 - var(--glass-drawer-t, 1)) * 100%))" };
|
|
277
|
+
});
|
|
278
|
+
return (t, n) => (p(), i(_(w), null, {
|
|
279
|
+
default: y(() => [l.showOverlay ? (p(), i(z, { key: 0 })) : a("", !0), c(_(x), u({ ref: S }, _(f), {
|
|
280
|
+
"data-glass-drawer": "",
|
|
281
|
+
"data-glass-drawer-snap-points": E.value ? "true" : void 0,
|
|
282
|
+
"data-glass-drawer-direction": D.value,
|
|
283
|
+
"data-surface": l.surface,
|
|
284
|
+
class: _(e)("glass-drawer", g.value, l.class),
|
|
285
|
+
style: O.value
|
|
286
|
+
}), {
|
|
287
|
+
default: y(() => [s("div", {
|
|
288
|
+
ref_key: "handleEl",
|
|
289
|
+
ref: b,
|
|
290
|
+
class: "glass-drawer-handle",
|
|
291
|
+
"data-glass-drawer-handle": "",
|
|
292
|
+
"data-dragging": _(T)?.dragging.value ? "" : void 0,
|
|
293
|
+
"aria-hidden": "true"
|
|
294
|
+
}, [...n[0] ||= [s("span", { class: "glass-drawer-grip" }, null, -1)]], 8, G), h(t.$slots, "default")]),
|
|
295
|
+
_: 3
|
|
296
|
+
}, 16, [
|
|
297
|
+
"data-glass-drawer-snap-points",
|
|
298
|
+
"data-glass-drawer-direction",
|
|
299
|
+
"data-surface",
|
|
300
|
+
"class",
|
|
301
|
+
"style"
|
|
302
|
+
])]),
|
|
303
|
+
_: 3
|
|
304
|
+
}));
|
|
305
|
+
}
|
|
306
|
+
}), q = /* @__PURE__ */ l({
|
|
307
|
+
__name: "DrawerHeader",
|
|
308
|
+
props: { class: { type: [
|
|
309
|
+
Boolean,
|
|
310
|
+
null,
|
|
311
|
+
String,
|
|
312
|
+
Object,
|
|
313
|
+
Array
|
|
314
|
+
] } },
|
|
315
|
+
setup(t) {
|
|
316
|
+
let n = t;
|
|
317
|
+
return (t, r) => (p(), o("div", { class: d(_(e)("[--overlay-pad-inline:1rem] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] [--card-pad-title-gap:calc(var(--overlay-pad-inline)/2.618)]", "grid gap-(--card-pad-title-gap) px-(--overlay-pad-inline) pt-(--overlay-pad-block) pb-0 text-center sm:text-left", n.class)) }, [h(t.$slots, "default")], 2));
|
|
318
|
+
}
|
|
319
|
+
}), J = /* @__PURE__ */ l({
|
|
320
|
+
__name: "DrawerFooter",
|
|
321
|
+
props: { class: { type: [
|
|
322
|
+
Boolean,
|
|
323
|
+
null,
|
|
324
|
+
String,
|
|
325
|
+
Object,
|
|
326
|
+
Array
|
|
327
|
+
] } },
|
|
328
|
+
setup(t) {
|
|
329
|
+
let n = t;
|
|
330
|
+
return (t, r) => (p(), o("div", { class: d(_(e)("[--overlay-pad-inline:1rem] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] [--card-pad-footer:calc(var(--overlay-pad-block)/1.618)]", "mt-auto flex flex-col gap-2 px-(--overlay-pad-inline) pt-(--card-pad-footer) pb-(--overlay-pad-block)", n.class)) }, [h(t.$slots, "default")], 2));
|
|
331
|
+
}
|
|
332
|
+
}), Y = /* @__PURE__ */ l({
|
|
333
|
+
__name: "DrawerTitle",
|
|
334
|
+
props: {
|
|
335
|
+
asChild: { type: Boolean },
|
|
336
|
+
as: {},
|
|
337
|
+
class: { type: [
|
|
338
|
+
Boolean,
|
|
339
|
+
null,
|
|
340
|
+
String,
|
|
341
|
+
Object,
|
|
342
|
+
Array
|
|
343
|
+
] }
|
|
344
|
+
},
|
|
345
|
+
setup(t) {
|
|
346
|
+
let n = t, a = r(() => {
|
|
347
|
+
let { class: e, ...t } = n;
|
|
348
|
+
return t;
|
|
349
|
+
});
|
|
350
|
+
return (t, r) => (p(), i(_(D), u(a.value, { class: _(e)("text-subheading leading-none tracking-tight", n.class) }), {
|
|
351
|
+
default: y(() => [h(t.$slots, "default")]),
|
|
352
|
+
_: 3
|
|
353
|
+
}, 16, ["class"]));
|
|
354
|
+
}
|
|
355
|
+
}), X = /* @__PURE__ */ l({
|
|
356
|
+
__name: "DrawerDescription",
|
|
357
|
+
props: {
|
|
358
|
+
asChild: { type: Boolean },
|
|
359
|
+
as: {},
|
|
360
|
+
class: { type: [
|
|
361
|
+
Boolean,
|
|
362
|
+
null,
|
|
363
|
+
String,
|
|
364
|
+
Object,
|
|
365
|
+
Array
|
|
366
|
+
] }
|
|
367
|
+
},
|
|
368
|
+
setup(t) {
|
|
369
|
+
let n = t, a = r(() => {
|
|
370
|
+
let { class: e, ...t } = n;
|
|
371
|
+
return t;
|
|
372
|
+
});
|
|
373
|
+
return (t, r) => (p(), i(_(S), u(a.value, { class: _(e)("text-sm text-muted-foreground", n.class) }), {
|
|
374
|
+
default: y(() => [h(t.$slots, "default")]),
|
|
375
|
+
_: 3
|
|
376
|
+
}, 16, ["class"]));
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
//#endregion
|
|
380
|
+
export { R as Drawer, b as DrawerClose, K as DrawerContent, X as DrawerDescription, J as DrawerFooter, q as DrawerHeader, z as DrawerOverlay, T as DrawerPortal, Y as DrawerTitle, O as DrawerTrigger };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { i } from "./dockContext-BegmJVmx.js";
|
|
2
|
+
import { v as t, x as n } from "./vendor-CKmzio-i.js";
|
|
3
|
+
import { t as r } from "./menuItemVariants-D8VNHq22.js";
|
|
4
|
+
import { i } from "./dockContext-BNfyPLe9.js";
|
|
6
5
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, unref as _, withCtx as v } from "vue";
|
|
7
6
|
import { DropdownMenuCheckboxItem as y, DropdownMenuContent as b, DropdownMenuGroup as x, DropdownMenuItem as S, DropdownMenuItemIndicator as C, DropdownMenuLabel as w, DropdownMenuPortal as T, DropdownMenuPortal as E, DropdownMenuRadioGroup as D, DropdownMenuRadioItem as O, DropdownMenuRoot as k, DropdownMenuSeparator as A, DropdownMenuSub as j, DropdownMenuSubContent as M, DropdownMenuSubTrigger as N, DropdownMenuTrigger as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
|
|
8
7
|
//#endregion
|
|
@@ -86,7 +85,7 @@ var L = /* @__PURE__ */ u({
|
|
|
86
85
|
default: v(() => [l(_(b), f(_(c), {
|
|
87
86
|
"data-glass-dock-portal": _(u)?.id ? "" : void 0,
|
|
88
87
|
"data-glass-dock-owner": _(u)?.id,
|
|
89
|
-
class: _(e)("dropdown-menu-content z-popover min-w-32 max-h-[60vh] overflow-y-auto rounded-panel border glass-floating text-popover-foreground
|
|
88
|
+
class: _(e)("dropdown-menu-content z-popover min-w-32 max-h-[60vh] overflow-y-auto rounded-panel border glass-floating text-popover-foreground glass-reveal", r.class)
|
|
90
89
|
}), {
|
|
91
90
|
default: v(() => [g(t.$slots, "default")]),
|
|
92
91
|
_: 3
|
|
@@ -169,16 +168,16 @@ var L = /* @__PURE__ */ u({
|
|
|
169
168
|
] }
|
|
170
169
|
},
|
|
171
170
|
emits: ["select", "update:modelValue"],
|
|
172
|
-
setup(
|
|
173
|
-
let s =
|
|
171
|
+
setup(t, { emit: i }) {
|
|
172
|
+
let s = t, u = i, d = I(a(() => {
|
|
174
173
|
let { class: e, ...t } = s;
|
|
175
174
|
return t;
|
|
176
175
|
}), u);
|
|
177
|
-
return (
|
|
176
|
+
return (t, i) => (h(), o(_(y), f(_(d), { class: _(e)(_(r)({ indicator: "start-wide" }), s.class) }), {
|
|
178
177
|
default: v(() => [c("span", U, [l(_(C), null, {
|
|
179
|
-
default: v(() => [l(_(
|
|
178
|
+
default: v(() => [l(_(n), { class: "w-4 h-4" })]),
|
|
180
179
|
_: 1
|
|
181
|
-
})]), g(
|
|
180
|
+
})]), g(t.$slots, "default")]),
|
|
182
181
|
_: 3
|
|
183
182
|
}, 16, ["class"]));
|
|
184
183
|
}
|
|
@@ -298,13 +297,13 @@ var L = /* @__PURE__ */ u({
|
|
|
298
297
|
Array
|
|
299
298
|
] }
|
|
300
299
|
},
|
|
301
|
-
setup(
|
|
302
|
-
let i =
|
|
300
|
+
setup(n) {
|
|
301
|
+
let i = n, s = F(a(() => {
|
|
303
302
|
let { class: e, ...t } = i;
|
|
304
303
|
return t;
|
|
305
304
|
}));
|
|
306
|
-
return (
|
|
307
|
-
default: v(() => [g(
|
|
305
|
+
return (n, a) => (h(), o(_(N), f(_(s), { class: _(e)(_(r)({ indicator: "none" }), i.class) }), {
|
|
306
|
+
default: v(() => [g(n.$slots, "default"), l(_(t), { class: "ml-auto h-4 w-4" })]),
|
|
308
307
|
_: 3
|
|
309
308
|
}, 16, ["class"]));
|
|
310
309
|
}
|
|
@@ -354,7 +353,7 @@ var L = /* @__PURE__ */ u({
|
|
|
354
353
|
return t;
|
|
355
354
|
}), i);
|
|
356
355
|
return (t, n) => (h(), o(_(T), null, {
|
|
357
|
-
default: v(() => [l(_(M), f(_(s), { class: _(e)("dropdown-sub-content z-popover min-w-32 overflow-hidden rounded-panel border glass-floating text-popover-foreground
|
|
356
|
+
default: v(() => [l(_(M), f(_(s), { class: _(e)("dropdown-sub-content z-popover min-w-32 overflow-hidden rounded-panel border glass-floating text-popover-foreground glass-reveal", r.class) }), {
|
|
358
357
|
default: v(() => [g(t.$slots, "default")]),
|
|
359
358
|
_: 3
|
|
360
359
|
}, 16, ["class"])]),
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-CofSZuk8.js";
|
|
2
2
|
export { i as DropdownMenu, o as DropdownMenuCheckboxItem, u as DropdownMenuContent, r as DropdownMenuGroup, m as DropdownMenuItem, e as DropdownMenuLabel, p as DropdownMenuPortal, n as DropdownMenuRadioGroup, t as DropdownMenuRadioItem, l as DropdownMenuSeparator, f as DropdownMenuShortcut, a as DropdownMenuSub, c as DropdownMenuSubContent, d as DropdownMenuSubTrigger, s as DropdownMenuTrigger };
|
package/dist/easing.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/easing";
|