@mkbabb/glass-ui 5.0.0 → 6.0.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/README.md +30 -27
- package/dist/DropdownMenuTrigger-BzQtd9lt.js +65 -0
- package/dist/{FadingScroll-BSRLqQCx.js → FadingScroll-C1ZWEjmG.js} +32 -25
- package/dist/{Input-DKf-XwUM.js → Input-B4WQ_CMc.js} +1 -1
- package/dist/{PagerDots-BP6jh7z4.js → PagerDots-BoTQ7g5l.js} +123 -95
- package/dist/{accent-tone-solve-CBw3L0cy.js → accent-tone-solve-Dii9ePhK.js} +1 -1
- package/dist/animated-digit.js +1 -1
- package/dist/aurora.js +324 -314
- package/dist/blob-config.d.ts +0 -4
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +280 -261
- package/dist/{button-BXzhydVB.js → button-32mg6xA8.js} +63 -56
- package/dist/button.js +1 -1
- package/dist/canvas.js +1 -1
- package/dist/{CardAction-2uUvjMQK.js → card-16xmzIr3.js} +29 -11
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -2
- package/dist/carousel.js +26 -95
- package/dist/chip.d.ts +0 -9
- package/dist/chip.js +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.js +1 -0
- package/dist/color.js +87 -3
- package/dist/{CommandShortcut-fmdbsEJL.js → command-BjPjUU9z.js} +56 -51
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +64 -55
- package/dist/components/_shared/ModalOverlay.vue.d.ts +5 -52
- package/dist/components/_shared/field-surfaces.css +1 -0
- package/dist/components/_shared/menuItemVariants.d.ts +2 -2
- package/dist/components/_shared/useMotionAxis.d.ts +2 -2
- package/dist/components/_shared/valueDomain.d.ts +6 -0
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +1 -1
- package/dist/components/aurora/Aurora.vue.d.ts +7 -1
- package/dist/components/aurora/composables/runtime.d.ts +5 -3
- package/dist/components/aurora/composables/useAurora.d.ts +4 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +3 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/blob/Blob.vue.d.ts +11 -0
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +2 -0
- package/dist/components/button/Button.vue.d.ts +4 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/card/Card.vue.d.ts +4 -4
- package/dist/components/card/ScrollCard.vue.d.ts +1 -1
- package/dist/components/card/styles.css +1 -0
- package/dist/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/carousel/index.d.ts +0 -1
- package/dist/components/carousel/useCarousel.d.ts +2 -2
- package/dist/components/combobox/ComboboxList.vue.d.ts +1 -1
- package/dist/components/combobox/index.d.ts +1 -3
- package/dist/components/command/Command.vue.d.ts +1 -1
- package/dist/components/command/CommandDialog.vue.d.ts +9 -6
- package/dist/components/completion-seal/styles.css +1 -0
- package/dist/components/constellation/Constellation.vue.d.ts +6 -1
- package/dist/components/constellation/composables/useConstellation.d.ts +3 -16
- package/dist/components/constellation/constants.d.ts +6 -16
- package/dist/components/constellation/constellationField.d.ts +3 -5
- package/dist/components/constellation/constellationInteraction.d.ts +1 -1
- package/dist/components/constellation/constellationRender.d.ts +11 -21
- package/dist/components/constellation/constellationTypes.d.ts +12 -9
- package/dist/components/constellation/index.d.ts +1 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -2
- package/dist/components/data-table/DataTable.vue.d.ts +14 -2
- package/dist/components/data-table/index.d.ts +1 -2
- package/dist/components/data-table/types.d.ts +26 -1
- package/dist/components/deck/constants.d.ts +0 -10
- package/dist/components/deck/index.d.ts +0 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +7 -1
- package/dist/components/dialog/index.d.ts +0 -1
- package/dist/components/dock/DockControl.vue.d.ts +4 -4
- package/dist/components/dock/DockStack.vue.d.ts +2 -2
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockMorphContext.d.ts +2 -0
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +11 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +4 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +3 -3
- package/dist/components/dock/composables/useDockPopover.d.ts +2 -0
- package/dist/components/dock/composables/useDockShellProps.d.ts +7 -0
- package/dist/components/dock/composables/useDockState.d.ts +2 -2
- package/dist/components/dock/constants.d.ts +0 -12
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/dock/styles/adaptive-legibility.css +1 -0
- package/dist/components/dock/styles/controls/icon-button.css +1 -0
- package/dist/{styles/dock-controls → components/dock/styles/controls}/touch-floor.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -0
- package/dist/{styles/dock → components/dock/styles}/density.css +1 -1
- package/dist/components/dock/styles/dock.css +1 -0
- package/dist/components/dock/styles/index.css +1 -0
- package/dist/components/dock/styles/layer-group.css +1 -0
- package/dist/components/dock/styles/layers.css +1 -0
- package/dist/components/dock/styles/overflow.css +1 -0
- package/dist/components/dock/styles/popover.css +1 -0
- package/dist/components/dock/styles/shape.css +1 -0
- package/dist/components/dock/styles/shell.css +1 -0
- package/dist/components/drawer/Drawer.vue.d.ts +3 -3
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +6 -6
- package/dist/components/drawer/index.d.ts +4 -6
- package/dist/components/drawer/styles.css +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -3
- package/dist/components/dropdown-menu/index.d.ts +0 -1
- package/dist/components/easing/EasingConfigurator.vue.d.ts +1 -1
- package/dist/components/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/easing/composables/useEasingPicker.d.ts +4 -0
- package/dist/components/easing/constants.d.ts +2 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +3 -3
- package/dist/components/fourier-field/FourierField.vue.d.ts +7 -1
- package/dist/components/fourier-field/composables/useFourierField.d.ts +2 -1
- package/dist/components/handmark/HandMark.vue.d.ts +1 -1
- package/dist/components/handmark/geometry.d.ts +1 -1
- package/dist/components/handmark/index.d.ts +4 -6
- package/dist/components/icon-chip/styles.css +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/infinite-scroll/index.d.ts +1 -0
- package/dist/components/instrument-chassis/styles.css +1 -0
- package/dist/components/labeled-field/LabeledField.vue.d.ts +12 -2
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +10 -3
- package/dist/components/liquid-grid/LiquidGrid.vue.d.ts +4 -0
- package/dist/components/liquid-grid/composables/useLiquidGrid.d.ts +2 -1
- package/dist/components/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/pager-dots/PagerDots.vue.d.ts +1 -1
- package/dist/components/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +5 -40
- package/dist/components/progress/ProgressDefault.vue.d.ts +1 -17
- package/dist/components/progress/ProgressGradient.vue.d.ts +1 -0
- package/dist/components/progress/ProgressLiquid.vue.d.ts +1 -0
- package/dist/components/progress/index.d.ts +0 -5
- package/dist/components/progress/valueMarks.css +1 -0
- package/dist/components/pulse/Pulse.vue.d.ts +2 -2
- package/dist/components/scroll-progress-rim/styles.css +1 -0
- package/dist/components/search/FuzzySearch.vue.d.ts +4 -2
- package/dist/components/search/SearchBar.vue.d.ts +2 -2
- package/dist/components/search/searchVariants.d.ts +1 -1
- package/dist/components/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/slider/Slider.vue.d.ts +2 -0
- package/dist/components/split-chars/SplitChars.vue.d.ts +1 -1
- package/dist/components/surface/Surface.vue.d.ts +1 -1
- package/dist/components/table/Table.vue.d.ts +4 -0
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +10 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -0
- package/dist/components/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +1 -1
- package/dist/components/timeline/GlassTimeline.vue.d.ts +4 -4
- package/dist/components/toast/Toast.vue.d.ts +3 -3
- package/dist/components/toast/use-toast.d.ts +4 -4
- package/dist/components/typewriter/TypewriterText.vue.d.ts +1 -4
- package/dist/components/typewriter/composables/useTypewriter.d.ts +0 -1
- package/dist/components/typewriter/utils/graphemes.d.ts +1 -0
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +2 -2
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +31 -0
- package/dist/composables/glass/webgpu/rendererStatus.d.ts +13 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +3 -0
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +2 -0
- package/dist/composables/motion/springProjection.d.ts +16 -0
- package/dist/composables/motion/useAnimatedNumber.d.ts +1 -6
- package/dist/composables/motion/useCountup.d.ts +1 -6
- package/dist/composables/motion/useDockCtaReceive.d.ts +55 -0
- package/dist/composables/motion/useElementMorph.d.ts +8 -0
- package/dist/composables/motion/useLiquidPress.d.ts +12 -4
- package/dist/composables/motion/useNumericTransition.d.ts +2 -0
- package/dist/composables/motion/useTextHighlight.d.ts +2 -1
- package/dist/configurator-CSENXXSy.js +311 -0
- package/dist/configurator.js +2 -3
- package/dist/constellation.js +235 -571
- package/dist/controls.js +55 -63
- package/dist/{createCanvasLifecycle-DlrcvWbb.js → createCanvasLifecycle-hsFkQVdl.js} +32 -32
- package/dist/dark-DIH-blY1.js +70 -0
- package/dist/dark.d.ts +1 -2
- package/dist/dark.js +2 -20
- package/dist/{DataTable-Bxya8nBn.js → data-table-DveMdgBM.js} +231 -120
- package/dist/data-table.js +2 -2
- package/dist/deck.js +10 -21
- package/dist/dialog-BzQxKrUr.js +281 -0
- package/dist/dialog.js +2 -3
- package/dist/dock.js +561 -428
- package/dist/{dockContext-d-WpJN2Z.js → dockContext-4S9qP0Z4.js} +1 -1
- package/dist/dom.js +196 -7
- package/dist/drawer.js +111 -66
- package/dist/dropdown-menu-DORIA52F.js +378 -0
- package/dist/dropdown-menu.js +3 -2
- package/dist/easing.d.ts +0 -9
- package/dist/easing.js +334 -187
- package/dist/expandable-container.js +12 -4
- package/dist/fading-scroll.js +1 -1
- package/dist/focus-scope.js +1 -1
- package/dist/forms.js +37 -78
- package/dist/fourier-field.js +273 -263
- package/dist/fourier-math.d.ts +0 -6
- package/dist/fourier-math.js +112 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +131 -195
- package/dist/handmark.d.ts +0 -2
- package/dist/handmark.js +82 -82
- package/dist/header-ribbon.js +41 -30
- package/dist/{IconChip-CwLmBJ_K.js → icon-chip-BWuxz1-u.js} +1 -1
- package/dist/icon-chip.js +1 -1
- package/dist/{IconTooltip-D9sbK-Mk.js → icon-tooltip-CO6rw0dZ.js} +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/infinite-scroll.d.ts +0 -1
- package/dist/infinite-scroll.js +17 -15
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +104 -2
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +95 -69
- package/dist/liquid-grid.js +173 -162
- package/dist/metric-badge.js +3 -3
- package/dist/metric-cell.js +2 -2
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +15 -16
- package/dist/motion-curves.d.ts +0 -20
- package/dist/motion.js +59 -58
- package/dist/{Notification-DQv2cOh9.js → notification-DVs7ODMg.js} +17 -8
- package/dist/notification.js +1 -1
- package/dist/{NumberFieldContent-BkE7xPS9.js → number-field-PvkGedHk.js} +2 -2
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +1 -1
- package/dist/paper-backdrop.js +31 -2
- package/dist/{PopoverContent-DOtszFWK.js → popover-WMgyRSyN.js} +7 -2
- package/dist/popover.js +1 -1
- package/dist/procedural-color.wgsl-B9mLK7v0.js +377 -0
- package/dist/progress-C-HHuFZy.js +192 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +3 -1
- package/dist/reactive.js +19 -3
- package/dist/rendererStatus-C2-zC2Q-.js +40 -0
- package/dist/{resolveCanvasColor-B3L-akX0.js → resolveCanvasColor-yarP5bdk.js} +1 -1
- package/dist/scroll-progress-rim.js +1 -1
- package/dist/search.js +187 -146
- package/dist/{SelectScrollDownButton-CDtwaWkZ.js → select-BIv4R3Ir.js} +109 -44
- package/dist/select.js +2 -4
- package/dist/separator-CBU94kTM.js +62 -0
- package/dist/separator.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/slider-Cc_qw6GA.js +166 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +43 -43
- package/dist/styles/accessibility.css +1 -0
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/liquid-fill.css +1 -1
- package/dist/styles/glass/material-roles.css +1 -0
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/surface-axis.css +1 -1
- package/dist/styles/glass/surfaces-pager.css +1 -1
- package/dist/styles/glass/surfaces.css +1 -1
- package/dist/styles/glass.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens.d.ts +53 -0
- package/dist/styles/tokens.ts +58 -0
- package/dist/styles/typography/scale.css +1 -1
- package/dist/styles/typography/semantic.css +1 -1
- package/dist/styles/typography/utilities.css +1 -1
- package/dist/styles/utilities/base.css +1 -1
- package/dist/styles/utilities/btn.css +1 -1
- package/dist/styles/utilities/components.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/{Switch-BPBfhMU3.js → switch-Boj4Ucn5.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +51 -45
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/{ToggleGroupItem-DNWx2aSW.js → toggle-group-BPchFsns.js} +10 -7
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -53
- package/dist/tokens.js +1 -1
- package/dist/{TooltipProvider-GtfYdSVf.js → tooltip-BmOQJzh0.js} +1 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +151 -166
- package/dist/{useAccentTone-D25DxviG.js → useAccentTone-C-p6WdPe.js} +1 -1
- package/dist/{useAnimatedNumber-2XC4aRB6.js → useAnimatedNumber-BRVVaFFc.js} +1 -1
- package/dist/useDockCtaReceive-CK-RLASa.js +257 -0
- package/dist/{useGooMorph-CU1pwuC6.js → useGooMorph-D1F6QJlH.js} +140 -59
- package/dist/{useIntersectionPause-Cmt5Tnv9.js → useIntersectionPause-B-dbxl9w.js} +1 -1
- package/dist/useLiquidPress-BYcwwGQV.js +68 -0
- package/dist/{useRAFLoop-CvOo_kgb.js → useRAFLoop-BtwQ9DyY.js} +1 -1
- package/dist/{useScrollProgress-C-yImzhU.js → useScrollProgress-DZI4nf4v.js} +1 -1
- package/dist/{useSelectionGroup-Btpf24aY.js → useSelectionGroup-LDzBdR1Y.js} +3 -3
- package/dist/{useTabRovingFocus-CG1H1k1J.js → useTabRovingFocus-DkLYwo4L.js} +1 -1
- package/dist/{useTouchGate-BlegwvwL.js → useTouchGate-Cj5fOkTv.js} +1 -1
- package/dist/valueDomain-B8L04u3U.js +13 -0
- package/dist/watercolor-dot.js +5 -3
- package/package.json +5 -12
- package/src/styles/accessibility.css +48 -0
- package/src/styles/glass/glass-capsule.css +2 -2
- package/src/styles/glass/ladder.css +1 -1
- package/src/styles/glass/material-roles.css +18 -0
- package/src/styles/glass/material.css +18 -12
- package/src/styles/glass.css +5 -5
- package/src/styles/index.css +38 -30
- package/src/styles/theme/bridges.css +0 -6
- package/src/styles/tokens/glass-fx.css +1 -5
- package/src/styles/tokens/glass.css +1 -2
- package/src/styles/tokens/offsets.css +0 -1
- package/src/styles/tokens/property-regs.css +11 -10
- package/src/styles/tokens/scale-paper.css +0 -1
- package/src/styles/tokens/scheme-motion.css +3 -0
- package/src/styles/tokens/scheme-spring.css +0 -10
- package/src/styles/tokens/shadow.css +3 -29
- package/src/styles/tokens.ts +58 -0
- package/src/styles/typography/scale.css +5 -2
- package/src/styles/typography/semantic.css +5 -5
- package/src/styles/typography/utilities.css +5 -5
- package/src/styles/utilities/base.css +5 -5
- package/src/styles/utilities/btn.css +6 -27
- package/src/styles/utilities.css +4 -6
- package/dist/ConfiguratorRow-BV6zPjTM.js +0 -151
- package/dist/DialogContent-Bl4v10AC.js +0 -192
- package/dist/DialogFooter-C0v4Hz2F.js +0 -168
- package/dist/PaperBackdrop-BYwE8_kg.js +0 -31
- package/dist/Progress-uWLyXE7J.js +0 -308
- package/dist/SelectGroup-BuEptUsa.js +0 -31
- package/dist/SelectSeparator-4QGephvr.js +0 -49
- package/dist/Separator-DqJ6PfOd.js +0 -44
- package/dist/color-Bp5jmv4Z.js +0 -86
- package/dist/components/carousel/GlassCarouselPager.vue.d.ts +0 -50
- package/dist/components/combobox/ComboboxSeparator.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxViewport.vue.d.ts +0 -18
- package/dist/components/constellation/composables/constellationGLSetup.d.ts +0 -10
- package/dist/components/constellation/composables/constellationWGPUSetup.d.ts +0 -19
- package/dist/components/constellation/composables/uniformBridgeWGPU.d.ts +0 -66
- package/dist/components/constellation/shaders/constellation-lines.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-lines.wgsl.d.ts +0 -1
- package/dist/components/constellation/shaders/constellation-points.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-points.wgsl.d.ts +0 -1
- package/dist/components/deck/composables/useDeckSpring.d.ts +0 -22
- package/dist/components/dialog/DialogScrollContent.vue.d.ts +0 -33
- package/dist/components/progress/ProgressSectioned.vue.d.ts +0 -47
- package/dist/components/progress/useProgressGeometry.d.ts +0 -60
- package/dist/components/section/Section.vue.d.ts +0 -73
- package/dist/components/section/index.d.ts +0 -1
- package/dist/components/stacked-icons/StackedIconGroup.vue.d.ts +0 -30
- package/dist/components/stacked-icons/index.d.ts +0 -2
- package/dist/components/stacked-icons/types.d.ts +0 -19
- package/dist/dropdown-menu-DaGlVdp9.js +0 -421
- package/dist/math-CIEcwsYi.js +0 -112
- package/dist/procedural-color.wgsl-ByduxnzV.js +0 -4
- package/dist/slider-Cxuj_W_H.js +0 -151
- package/dist/stacked-icons.d.ts +0 -1
- package/dist/stacked-icons.js +0 -98
- package/dist/styles/cards.css +0 -1
- package/dist/styles/completion-seal.css +0 -1
- package/dist/styles/dock/adaptive-legibility.css +0 -1
- package/dist/styles/dock/dock.css +0 -1
- package/dist/styles/dock/layer-group.css +0 -1
- package/dist/styles/dock/layers.css +0 -1
- package/dist/styles/dock/overflow.css +0 -1
- package/dist/styles/dock/popover.css +0 -1
- package/dist/styles/dock/shape.css +0 -1
- package/dist/styles/dock/shell.css +0 -1
- package/dist/styles/dock-controls/icon-button.css +0 -1
- package/dist/styles/dock-controls.css +0 -1
- package/dist/styles/dock.css +0 -1
- package/dist/styles/drawer.css +0 -1
- package/dist/styles/icon-chip.css +0 -1
- package/dist/styles/instrument-chassis.css +0 -1
- package/dist/styles/scroll-progress-rim.css +0 -1
- package/dist/styles/select.css +0 -1
- package/dist/styles/tabs/segmented-tabs-drag.css +0 -1
- package/dist/styles/utilities/animate.css +0 -0
- package/dist/useConfiguratorState-Dq35N_7t.js +0 -167
- package/dist/useDockCtaReceive-BgMmeINo.js +0 -161
- package/dist/useGlobalDark-DjKMEQE2.js +0 -53
- package/dist/useGpuSubstrate-DcY584kE.js +0 -347
- package/dist/useInterval-ZATRi-1T.js +0 -18
- package/dist/useKeyboardShortcuts-ynVmNFo3.js +0 -104
- package/dist/useLiquidPress-BXNHydZh.js +0 -40
- package/dist/useTextHighlight-C46Le9u_.js +0 -72
- package/dist/useViewportReady-c0isoKL8.js +0 -191
- package/src/styles/card-scroll.css +0 -189
- package/src/styles/cards.css +0 -485
- package/src/styles/completion-seal.css +0 -205
- package/src/styles/configurator.css +0 -359
- package/src/styles/dialog-placement.css +0 -68
- package/src/styles/dock/adaptive-legibility.css +0 -119
- package/src/styles/dock/crossfade.css +0 -139
- package/src/styles/dock/cta-seat.css +0 -87
- package/src/styles/dock/density.css +0 -458
- package/src/styles/dock/dock.css +0 -199
- package/src/styles/dock/fisheye.css +0 -81
- package/src/styles/dock/layer-group.css +0 -329
- package/src/styles/dock/layers.css +0 -438
- package/src/styles/dock/morph.css +0 -455
- package/src/styles/dock/overflow.css +0 -332
- package/src/styles/dock/popover.css +0 -249
- package/src/styles/dock/search.css +0 -68
- package/src/styles/dock/section.css +0 -59
- package/src/styles/dock/shape.css +0 -188
- package/src/styles/dock/shell-regions.css +0 -73
- package/src/styles/dock/shell.css +0 -500
- package/src/styles/dock-controls/dark-mode-toggle.css +0 -123
- package/src/styles/dock-controls/icon-button.css +0 -221
- package/src/styles/dock-controls/tab-button.css +0 -143
- package/src/styles/dock-controls/touch-floor.css +0 -119
- package/src/styles/dock-controls/triggers.css +0 -157
- package/src/styles/dock-controls.css +0 -92
- package/src/styles/dock.css +0 -219
- package/src/styles/drawer.css +0 -434
- package/src/styles/feedback-tone.css +0 -104
- package/src/styles/icon-chip.css +0 -256
- package/src/styles/instrument-chassis.css +0 -449
- package/src/styles/menu.css +0 -187
- package/src/styles/scroll-progress-rim.css +0 -87
- package/src/styles/segmented-tabs.css +0 -424
- package/src/styles/select.css +0 -201
- package/src/styles/tabs/segmented-tabs-drag.css +0 -200
- package/src/styles/utilities/animate.css +0 -29
- /package/dist/{coalesce-metric-B8o7zT9u.js → coalesce-metric-znAcLzkB.js} +0 -0
- /package/dist/{CollapsibleContent-DiHcB_HH.js → collapsible-bPzS1aQk.js} +0 -0
- /package/dist/{compile-C55K3P9g.js → compile-DK3Fri1B.js} +0 -0
- /package/dist/{styles → components/_shared}/feedback-tone.css +0 -0
- /package/dist/{styles → components/_shared}/menu.css +0 -0
- /package/dist/{styles → components/card}/card-scroll.css +0 -0
- /package/dist/{styles/configurator.css → components/configurator/styles.css} +0 -0
- /package/dist/{styles/dock-controls → components/controls}/dark-mode-toggle.css +0 -0
- /package/dist/{styles/dialog-placement.css → components/dialog/placement.css} +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/tab-button.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/triggers.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/crossfade.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/cta-seat.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/fisheye.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/morph.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/search.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/section.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/shell-regions.css +0 -0
- /package/dist/{styles/segmented-tabs.css → components/tabs/styles/segmented.css} +0 -0
- /package/dist/{constants-D8lSMkOz.js → constants-DRZmNIY-.js} +0 -0
- /package/dist/{createContext-BQ1Gy_LB.js → createContext-FU0n5MGK.js} +0 -0
- /package/dist/{flow.glsl-CVqPSj8_.js → flow.glsl-DEGFGE11.js} +0 -0
- /package/dist/{FocusScope-BzKwhsBn.js → focus-scope-DUTKveod.js} +0 -0
- /package/dist/{InstrumentChassis-Dss5Tjcm.js → instrument-chassis-Cvstg4_U.js} +0 -0
- /package/dist/{Label-C84TaQiw.js → label-Cj38tJKG.js} +0 -0
- /package/dist/{menuItemVariants-DbO-Fr74.js → menuItemVariants-D6AOzzND.js} +0 -0
- /package/dist/{pointerFieldMappings-4VtmkOWv.js → pointerFieldMappings-CZojkgKj.js} +0 -0
- /package/dist/{presets-B07HzyKd.js → presets-CxeNvxuO.js} +0 -0
- /package/dist/{prng-B0PLRmR6.js → prng-Dz2_9RJu.js} +0 -0
- /package/dist/{scrollReader-DzYqPQ6V.js → scrollReader-C2oK9Hb8.js} +0 -0
- /package/dist/{supportsCssTimeline-Ie4xJFbD.js → supportsCssTimeline-Dz-GVxXM.js} +0 -0
- /package/dist/{Toaster-C_-WeU9W.js → toast-kAbchIN2.js} +0 -0
- /package/dist/{useControlSize-DJwe-7ZQ.js → useControlSize-CFfOk8I-.js} +0 -0
- /package/dist/{useDocumentVisibility-CpJGUgcJ.js → useDocumentVisibility-YeBDGqtI.js} +0 -0
- /package/dist/{useDragMorph-65ihHePq.js → useDragMorph-7ygF9O0m.js} +0 -0
- /package/dist/{useDragVelocity-BWcNMCux.js → useDragVelocity-CbMZEBaC.js} +0 -0
- /package/dist/{useFuzzySearch-KslRxiJY.js → useFuzzySearch-BOgep7RE.js} +0 -0
- /package/dist/{useLeadTrail-DOH4XkL1.js → useLeadTrail-BYu8dq4G.js} +0 -0
- /package/dist/{usePointerVelocityField-CwXyeW0Z.js → usePointerVelocityField-BdvnO0py.js} +0 -0
- /package/dist/{useResizeObserver-DDuoBeBo.js → useResizeObserver-BcUTquV7.js} +0 -0
- /package/dist/{useResolveTokenColor-DVT5kwv6.js → useResolveTokenColor-C07e-qaT.js} +0 -0
- /package/dist/{useRoutePointer-DL7I0gY4.js → useRoutePointer-BDNMFN73.js} +0 -0
- /package/dist/{useSpringMount-CNvvgGiC.js → useSpringMount-C6-DBx4e.js} +0 -0
- /package/dist/{useTimer-CkDV8SC2.js → useTimer-D8koDvJS.js} +0 -0
- /package/dist/{useUserInvalidAria-Bkruei7M.js → useUserInvalidAria-Cr4nR3tu.js} +0 -0
- /package/dist/{vReveal-DUmiEkX_.js → vReveal-DZfWl9XI.js} +0 -0
- /package/dist/{vSpecular-DlYN0UZy.js → vSpecular-CQFmLNzA.js} +0 -0
- /package/dist/{writeVelocityWeight-D1rvdxJu.js → writeVelocityWeight-D_AcvTsE.js} +0 -0
package/dist/dom.js
CHANGED
|
@@ -1,7 +1,196 @@
|
|
|
1
|
-
import { t as e } from "./useResizeObserver-
|
|
2
|
-
import { t } from "./useTouchGate-
|
|
3
|
-
import { t as n } from "./useDragVelocity-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { t as e } from "./useResizeObserver-BcUTquV7.js";
|
|
2
|
+
import { t } from "./useTouchGate-Cj5fOkTv.js";
|
|
3
|
+
import { t as n } from "./useDragVelocity-CbMZEBaC.js";
|
|
4
|
+
import { n as r, t as i } from "./useResolveTokenColor-C07e-qaT.js";
|
|
5
|
+
import { t as a } from "./useUserInvalidAria-Cr4nR3tu.js";
|
|
6
|
+
import { getCurrentScope as o, onMounted as s, onScopeDispose as c, readonly as l, ref as u, toValue as d, watch as f } from "vue";
|
|
7
|
+
//#region src/composables/dom/useTokenColor.ts
|
|
8
|
+
function p(e, t = {}) {
|
|
9
|
+
let n = t.fallback ?? "", r = u(n), i = t.resolver ?? ((e, t) => getComputedStyle(t ?? document.documentElement).getPropertyValue(e));
|
|
10
|
+
function a() {
|
|
11
|
+
let r = d(e);
|
|
12
|
+
return !r || !t.resolver && typeof document > "u" ? n : i(r, (t.element ? d(t.element) : null) ?? (typeof document < "u" ? document.documentElement : void 0) ?? void 0 ?? void 0).trim() || n;
|
|
13
|
+
}
|
|
14
|
+
function l() {
|
|
15
|
+
r.value = a();
|
|
16
|
+
}
|
|
17
|
+
if (l(), s(l), typeof document < "u") {
|
|
18
|
+
let e = new MutationObserver(l);
|
|
19
|
+
e.observe(document.documentElement, {
|
|
20
|
+
attributes: !0,
|
|
21
|
+
attributeFilter: ["class"]
|
|
22
|
+
});
|
|
23
|
+
let t = typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)") : null;
|
|
24
|
+
t?.addEventListener?.("change", l), o() && c(() => {
|
|
25
|
+
e.disconnect(), t?.removeEventListener?.("change", l);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return f(() => d(e), l), t.element !== void 0 && f(() => d(t.element), l), {
|
|
29
|
+
value: r,
|
|
30
|
+
refresh: l
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/composables/dom/useClipboard.ts
|
|
35
|
+
async function m(e) {
|
|
36
|
+
if (typeof navigator > "u" || !navigator.clipboard?.writeText) return {
|
|
37
|
+
ok: !1,
|
|
38
|
+
reason: "no-api"
|
|
39
|
+
};
|
|
40
|
+
try {
|
|
41
|
+
return await navigator.clipboard.writeText(e), { ok: !0 };
|
|
42
|
+
} catch {
|
|
43
|
+
return {
|
|
44
|
+
ok: !1,
|
|
45
|
+
reason: "clipboard-api"
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function h(e) {
|
|
50
|
+
if (typeof document > "u") return {
|
|
51
|
+
ok: !1,
|
|
52
|
+
reason: "no-api"
|
|
53
|
+
};
|
|
54
|
+
let t = document.createElement("textarea");
|
|
55
|
+
t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.top = "-9999px", document.body.appendChild(t), t.select();
|
|
56
|
+
let n = !1;
|
|
57
|
+
try {
|
|
58
|
+
n = document.execCommand("copy");
|
|
59
|
+
} catch {
|
|
60
|
+
n = !1;
|
|
61
|
+
}
|
|
62
|
+
return document.body.removeChild(t), n ? { ok: !0 } : {
|
|
63
|
+
ok: !1,
|
|
64
|
+
reason: "exec-command"
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
async function g(e, t) {
|
|
68
|
+
let n = await m(e);
|
|
69
|
+
if (n.ok) return n;
|
|
70
|
+
let r = h(e);
|
|
71
|
+
if (r.ok) return r;
|
|
72
|
+
let i = r.reason ?? n.reason ?? "no-api";
|
|
73
|
+
return t?.(i), {
|
|
74
|
+
ok: !1,
|
|
75
|
+
reason: i
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
async function _(e, t = {}) {
|
|
79
|
+
let { ok: n } = await g(e, t.onCopyError);
|
|
80
|
+
return n;
|
|
81
|
+
}
|
|
82
|
+
function v(e = {}) {
|
|
83
|
+
let t = e.resetMs ?? 1500, n = u(!1), r = null;
|
|
84
|
+
function i() {
|
|
85
|
+
r != null && (clearTimeout(r), r = null);
|
|
86
|
+
}
|
|
87
|
+
async function a(a) {
|
|
88
|
+
let o = await g(a, e.onCopyError);
|
|
89
|
+
return o.ok && (n.value = !0, i(), r = setTimeout(() => {
|
|
90
|
+
n.value = !1, r = null;
|
|
91
|
+
}, t)), o;
|
|
92
|
+
}
|
|
93
|
+
return c(i), {
|
|
94
|
+
copied: n,
|
|
95
|
+
copy: a
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/composables/dom/useBreakpoint.ts
|
|
100
|
+
function y(e) {
|
|
101
|
+
let t = u(!1), n = null;
|
|
102
|
+
function r(e) {
|
|
103
|
+
t.value = e.matches;
|
|
104
|
+
}
|
|
105
|
+
function i() {
|
|
106
|
+
typeof window > "u" || !window.matchMedia || (n = window.matchMedia(e), t.value = n.matches, n.addEventListener("change", r));
|
|
107
|
+
}
|
|
108
|
+
function a() {
|
|
109
|
+
n?.removeEventListener("change", r), n = null;
|
|
110
|
+
}
|
|
111
|
+
return o() && c(a), i(), {
|
|
112
|
+
matches: l(t),
|
|
113
|
+
stop: a
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/composables/dom/useIdleReady.ts
|
|
118
|
+
function b(e = {}) {
|
|
119
|
+
let t = e.timeout ?? 2e3, n = u(!1), r = null, i = null, a = !1;
|
|
120
|
+
function s() {
|
|
121
|
+
a || n.value || (n.value = !0, e.onReady?.(), l());
|
|
122
|
+
}
|
|
123
|
+
function l() {
|
|
124
|
+
r !== null && typeof window < "u" && "cancelIdleCallback" in window && (window.cancelIdleCallback(r), r = null), i !== null && (clearTimeout(i), i = null);
|
|
125
|
+
}
|
|
126
|
+
function d() {
|
|
127
|
+
if (!a) {
|
|
128
|
+
if (typeof window > "u") {
|
|
129
|
+
s();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
"requestIdleCallback" in window ? r = window.requestIdleCallback(s, { timeout: t }) : i = setTimeout(s, 0);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
d();
|
|
136
|
+
function f() {
|
|
137
|
+
a || (a = !0, l());
|
|
138
|
+
}
|
|
139
|
+
return o() && c(f), {
|
|
140
|
+
ready: n,
|
|
141
|
+
stop: f
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/composables/dom/useViewportReady.ts
|
|
146
|
+
function x(e, t = {}) {
|
|
147
|
+
let n = t.rootMargin ?? "200px", r = t.idleTimeout ?? 1e4, i = t.threshold ?? .01, a = u(!1), s = null, l, d = null, p = null, m = !1;
|
|
148
|
+
function h() {
|
|
149
|
+
m || a.value || (a.value = !0, _());
|
|
150
|
+
}
|
|
151
|
+
function g() {
|
|
152
|
+
if (!m) {
|
|
153
|
+
if (typeof window > "u") {
|
|
154
|
+
h();
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
"requestIdleCallback" in window ? d = window.requestIdleCallback(h, { timeout: r }) : p = setTimeout(h, 16);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function _() {
|
|
161
|
+
s &&= (s.disconnect(), null), d !== null && typeof window < "u" && "cancelIdleCallback" in window && (window.cancelIdleCallback(d), d = null), p !== null && (clearTimeout(p), p = null);
|
|
162
|
+
}
|
|
163
|
+
function v(e) {
|
|
164
|
+
if (typeof window > "u" || !("IntersectionObserver" in window)) {
|
|
165
|
+
g();
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
s = new IntersectionObserver((e) => {
|
|
169
|
+
if (!m) {
|
|
170
|
+
for (let t of e) if (t.isIntersecting) {
|
|
171
|
+
g(), s?.disconnect(), s = null;
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}, {
|
|
176
|
+
rootMargin: n,
|
|
177
|
+
threshold: i
|
|
178
|
+
}), s.observe(e);
|
|
179
|
+
}
|
|
180
|
+
function y(e) {
|
|
181
|
+
m || a.value || l !== void 0 && l === e || (_(), l = e, e ? v(e) : g());
|
|
182
|
+
}
|
|
183
|
+
y(e.value);
|
|
184
|
+
let b = f(e, (e) => {
|
|
185
|
+
y(e);
|
|
186
|
+
}, { flush: "post" });
|
|
187
|
+
function x() {
|
|
188
|
+
m || (m = !0, b(), _());
|
|
189
|
+
}
|
|
190
|
+
return o() && c(x), {
|
|
191
|
+
ready: a,
|
|
192
|
+
stop: x
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
196
|
+
export { _ as copyToClipboard, i as createTokenColorCache, r as resolveTokenColor, y as useBreakpoint, v as useClipboard, n as useDragVelocity, b as useIdleReady, e as useResizeObserver, p as useTokenColor, t as useTouchGate, a as useUserInvalidAria, x as useViewportReady };
|
package/dist/drawer.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
2
|
import { t } from "./motionTempo-CMS5b0Vu.js";
|
|
3
3
|
import { t as n } from "./useSurfaceAxis-DudiZVOR.js";
|
|
4
|
-
import { t as r } from "./createContext-
|
|
4
|
+
import { t as r } from "./createContext-FU0n5MGK.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, onScopeDispose as p, onUnmounted as m, openBlock as h, ref as g, renderSlot as _, toRef as v, unref as y, watch as b, withCtx as x } from "vue";
|
|
6
|
-
import { DialogClose as S, DialogContent as C, DialogDescription as w, DialogOverlay as T, DialogPortal as E,
|
|
7
|
-
import { SpringProgress as
|
|
6
|
+
import { DialogClose as S, DialogContent as C, DialogDescription as w, DialogOverlay as T, DialogPortal as E, DialogRoot as D, DialogTitle as O, DialogTrigger as k, useForwardPropsEmits as A } from "reka-ui";
|
|
7
|
+
import { SpringProgress as j } from "@mkbabb/keyframes.js";
|
|
8
8
|
//#region src/components/drawer/constants.ts
|
|
9
|
-
var
|
|
9
|
+
var M = {
|
|
10
10
|
response: .32,
|
|
11
11
|
dampingFraction: .8
|
|
12
|
-
},
|
|
12
|
+
}, N = [
|
|
13
13
|
.12,
|
|
14
14
|
.5,
|
|
15
15
|
1
|
|
16
16
|
];
|
|
17
|
-
function
|
|
18
|
-
return e === "left" || e === "right" ? [] :
|
|
17
|
+
function P(e) {
|
|
18
|
+
return e === "left" || e === "right" ? [] : N;
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/components/drawer/composables/drawerSnapContext.ts
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
|
|
22
|
+
var F = r("glass-ui:drawer-snap-context"), { KEY: I } = F;
|
|
23
|
+
function L(e) {
|
|
24
|
+
F.provide(e);
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var R = F.use, z = /* @__PURE__ */ u({
|
|
27
27
|
__name: "Drawer",
|
|
28
28
|
props: {
|
|
29
29
|
open: {
|
|
@@ -63,19 +63,20 @@ var z = I.use, B = /* @__PURE__ */ u({
|
|
|
63
63
|
t && t.toggleAttribute("data-stage-scale", r), n && n.toggleAttribute("data-stage-immersive", i);
|
|
64
64
|
}
|
|
65
65
|
b(() => l.value, (e) => S(e), { immediate: !0 }), b(m, () => S(l.value)), p(() => S(!1));
|
|
66
|
-
let C = i(() => n.snapPoints
|
|
66
|
+
let C = i(() => n.snapPoints === void 0 ? u.value ? P(n.direction) : [] : n.snapPoints.map((e) => typeof e == "number" ? e : Number.parseFloat(e))), w = g(n.activeSnapPoint ?? null);
|
|
67
67
|
b(() => n.activeSnapPoint, (e) => {
|
|
68
68
|
e !== void 0 && (w.value = e);
|
|
69
69
|
}), b(w, (e) => r("update:activeSnapPoint", e));
|
|
70
70
|
let T = g(l.value);
|
|
71
71
|
return b(l, (e) => T.value = e), b(T, (e) => {
|
|
72
72
|
e !== l.value && c(e);
|
|
73
|
-
}),
|
|
73
|
+
}), L({
|
|
74
74
|
open: T,
|
|
75
75
|
snapPoints: C,
|
|
76
76
|
direction: v(n, "direction"),
|
|
77
|
+
mode: v(n, "mode"),
|
|
77
78
|
activeSnapPoint: w
|
|
78
|
-
}), (e, t) => (h(), a(y(
|
|
79
|
+
}), (e, t) => (h(), a(y(D), {
|
|
79
80
|
"data-slot": "drawer",
|
|
80
81
|
open: l.value,
|
|
81
82
|
modal: d.value,
|
|
@@ -85,7 +86,7 @@ var z = I.use, B = /* @__PURE__ */ u({
|
|
|
85
86
|
_: 3
|
|
86
87
|
}, 8, ["open", "modal"]));
|
|
87
88
|
}
|
|
88
|
-
}),
|
|
89
|
+
}), B = /* @__PURE__ */ u({
|
|
89
90
|
__name: "DrawerOverlay",
|
|
90
91
|
props: {
|
|
91
92
|
forceMount: { type: Boolean },
|
|
@@ -112,13 +113,13 @@ var z = I.use, B = /* @__PURE__ */ u({
|
|
|
112
113
|
});
|
|
113
114
|
//#endregion
|
|
114
115
|
//#region src/components/drawer/composables/useDrawerSnap.ts
|
|
115
|
-
function
|
|
116
|
+
function V(e) {
|
|
116
117
|
return e === "left" || e === "right";
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
return e.length > 0 ? [...e].sort((e, t) => e - t) :
|
|
119
|
+
function H(e, t) {
|
|
120
|
+
return e.length > 0 ? [...e].sort((e, t) => e - t) : V(t) ? [0, 1] : [1];
|
|
120
121
|
}
|
|
121
|
-
function
|
|
122
|
+
function U(e, t) {
|
|
122
123
|
let n = t[0], r = Math.abs(e - n);
|
|
123
124
|
for (let i of t) {
|
|
124
125
|
let t = Math.abs(e - i);
|
|
@@ -126,13 +127,13 @@ function W(e, t) {
|
|
|
126
127
|
}
|
|
127
128
|
return n;
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function W(e, t, n) {
|
|
130
131
|
let r = n.indexOf(e);
|
|
131
|
-
if (r === -1) return
|
|
132
|
+
if (r === -1) return U(e, n);
|
|
132
133
|
let i = r + t;
|
|
133
134
|
return i < 0 || i >= n.length ? e : n[i];
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function G(e) {
|
|
136
137
|
let { contentEl: n, handleEl: r, ctx: i } = e, a = g(!1), o = null, s = null, c = null;
|
|
137
138
|
function l() {
|
|
138
139
|
if (typeof document > "u") return [];
|
|
@@ -151,9 +152,9 @@ function K(e) {
|
|
|
151
152
|
e && e.style.removeProperty("--stage-t"), s && s.style.removeProperty("--stage-t"), c && c.style.removeProperty("--stage-t"), s = null, c = null;
|
|
152
153
|
}
|
|
153
154
|
function f(e) {
|
|
154
|
-
return o || (o = new
|
|
155
|
-
response:
|
|
156
|
-
dampingFraction:
|
|
155
|
+
return o || (o = new j({
|
|
156
|
+
response: M.response * t(n()),
|
|
157
|
+
dampingFraction: M.dampingFraction,
|
|
157
158
|
initial: e ?? p(),
|
|
158
159
|
respectReducedMotion: !0
|
|
159
160
|
}), o.play((e) => u(e)), o);
|
|
@@ -165,7 +166,7 @@ function K(e) {
|
|
|
165
166
|
let t = Number.parseFloat(e);
|
|
166
167
|
if (!Number.isNaN(t)) return t;
|
|
167
168
|
}
|
|
168
|
-
let t =
|
|
169
|
+
let t = H(i.snapPoints.value, i.direction.value);
|
|
169
170
|
return t[t.length - 1] ?? 1;
|
|
170
171
|
}
|
|
171
172
|
function h(e) {
|
|
@@ -173,7 +174,7 @@ function K(e) {
|
|
|
173
174
|
t.play((e) => u(e)), t.target = e, i.activeSnapPoint.value = e;
|
|
174
175
|
}
|
|
175
176
|
function _(e) {
|
|
176
|
-
h(
|
|
177
|
+
h(U(e, H(i.snapPoints.value, i.direction.value)));
|
|
177
178
|
}
|
|
178
179
|
let v = null, y = 0, x = 0, S = 0, C = 0, w = 0;
|
|
179
180
|
function T(e) {
|
|
@@ -185,7 +186,7 @@ function K(e) {
|
|
|
185
186
|
let e = n();
|
|
186
187
|
if (!e) return 1;
|
|
187
188
|
let t = e.getBoundingClientRect();
|
|
188
|
-
return
|
|
189
|
+
return V(i.direction.value) ? t.width || 1 : t.height || 1;
|
|
189
190
|
}
|
|
190
191
|
function O(e) {
|
|
191
192
|
let t = r.value;
|
|
@@ -195,26 +196,26 @@ function K(e) {
|
|
|
195
196
|
if (v === null || e.pointerId !== v) return;
|
|
196
197
|
let t = T(e), n = (e.timeStamp - C) / 1e3;
|
|
197
198
|
n > 0 && (w = (t - S) / n), S = t, C = e.timeStamp;
|
|
198
|
-
let r = (t - y) / E, a =
|
|
199
|
+
let r = (t - y) / E, a = H(i.snapPoints.value, i.direction.value), o = a[0], s = a[a.length - 1];
|
|
199
200
|
u(Math.min(s, Math.max(o, x + r)));
|
|
200
201
|
}
|
|
201
202
|
function A(e) {
|
|
202
203
|
if (v === null || e.pointerId !== v) return;
|
|
203
204
|
r.value?.releasePointerCapture?.(e.pointerId), v = null, a.value = !1;
|
|
204
|
-
let t =
|
|
205
|
+
let t = H(i.snapPoints.value, i.direction.value), n = N();
|
|
205
206
|
f().reset(n, 0);
|
|
206
207
|
let o;
|
|
207
208
|
if (Math.abs(w) >= 450 && t.length > 1) {
|
|
208
209
|
let e = w > 0 ? 1 : -1;
|
|
209
|
-
o =
|
|
210
|
-
} else o =
|
|
210
|
+
o = W(U(n, t), e, t);
|
|
211
|
+
} else o = U(n, t);
|
|
211
212
|
if (o <= 0) {
|
|
212
213
|
i.open.value = !1;
|
|
213
214
|
return;
|
|
214
215
|
}
|
|
215
216
|
h(o);
|
|
216
217
|
}
|
|
217
|
-
function
|
|
218
|
+
function N() {
|
|
218
219
|
let e = n();
|
|
219
220
|
if (!e) return p();
|
|
220
221
|
let t = e.style.getPropertyValue("--glass-drawer-t"), r = Number.parseFloat(t);
|
|
@@ -236,8 +237,8 @@ function K(e) {
|
|
|
236
237
|
if (!i.open.value || a.value) return;
|
|
237
238
|
let t = typeof e == "number" ? e : typeof e == "string" ? Number.parseFloat(e) : NaN;
|
|
238
239
|
if (!Number.isNaN(t) && (!o || Math.abs(o.target - t) > .001)) {
|
|
239
|
-
let e =
|
|
240
|
-
f().target =
|
|
240
|
+
let e = H(i.snapPoints.value, i.direction.value);
|
|
241
|
+
f().target = U(t, e);
|
|
241
242
|
}
|
|
242
243
|
}), m(() => {
|
|
243
244
|
P?.(), d();
|
|
@@ -248,7 +249,14 @@ function K(e) {
|
|
|
248
249
|
}
|
|
249
250
|
//#endregion
|
|
250
251
|
//#region src/components/drawer/DrawerContent.vue?vue&type=script&setup=true&lang.ts
|
|
251
|
-
var
|
|
252
|
+
var K = [
|
|
253
|
+
"data-dragging",
|
|
254
|
+
"aria-orientation",
|
|
255
|
+
"aria-valuemin",
|
|
256
|
+
"aria-valuemax",
|
|
257
|
+
"aria-valuenow",
|
|
258
|
+
"aria-valuetext"
|
|
259
|
+
], q = /* @__PURE__ */ u({
|
|
252
260
|
inheritAttrs: !1,
|
|
253
261
|
__name: "DrawerContent",
|
|
254
262
|
props: {
|
|
@@ -278,40 +286,77 @@ var q = ["data-dragging"], J = /* @__PURE__ */ u({
|
|
|
278
286
|
"closeAutoFocus"
|
|
279
287
|
],
|
|
280
288
|
setup(t, { emit: r }) {
|
|
281
|
-
let
|
|
282
|
-
let { class: e, showOverlay: t, surface: n, ...r } =
|
|
289
|
+
let u = t, f = r, p = A(i(() => {
|
|
290
|
+
let { class: e, showOverlay: t, surface: n, ...r } = u;
|
|
283
291
|
return r;
|
|
284
|
-
}),
|
|
285
|
-
contentEl:
|
|
286
|
-
handleEl:
|
|
287
|
-
ctx:
|
|
288
|
-
}) : null,
|
|
289
|
-
|
|
290
|
-
|
|
292
|
+
}), f), m = i(() => n(u.surface)), v = g(null), b = g(null), S = () => (v.value ?? b.value)?.closest("[data-glass-drawer]") ?? null, w = R(), T = w ? G({
|
|
293
|
+
contentEl: S,
|
|
294
|
+
handleEl: v,
|
|
295
|
+
ctx: w
|
|
296
|
+
}) : null, D = i(() => (w?.snapPoints.value.length ?? 0) > 1), O = i(() => [...w?.snapPoints.value ?? []].sort((e, t) => e - t)), k = i(() => {
|
|
297
|
+
let e = w?.activeSnapPoint.value, t = typeof e == "number" ? e : Number.parseFloat(String(e));
|
|
298
|
+
return Number.isNaN(t) ? Math.max(0, O.value.length - 1) : O.value.reduce((e, n, r) => Math.abs(n - t) < Math.abs(O.value[e] - t) ? r : e, 0);
|
|
299
|
+
}), j = i(() => O.value[k.value] ?? 1), M = i(() => `${Math.round(j.value * 100)}%, position ${k.value + 1} of ${O.value.length}`), N = i(() => w?.direction.value ?? "bottom"), P = i(() => w?.mode.value ?? "modal");
|
|
300
|
+
function F(e) {
|
|
301
|
+
if (!T || !D.value) return;
|
|
302
|
+
let t = O.value.length - 1, n = k.value;
|
|
303
|
+
if (e.key === "Home") n = 0;
|
|
304
|
+
else if (e.key === "End") n = t;
|
|
305
|
+
else if (e.key === "ArrowUp" || e.key === "ArrowRight") n = Math.min(t, n + 1);
|
|
306
|
+
else if (e.key === "ArrowDown" || e.key === "ArrowLeft") n = Math.max(0, n - 1);
|
|
307
|
+
else return;
|
|
308
|
+
e.preventDefault(), T.snapTo(O.value[n]);
|
|
309
|
+
}
|
|
310
|
+
let I = i(() => {
|
|
311
|
+
if (!w) return;
|
|
312
|
+
let e = N.value;
|
|
291
313
|
return e === "bottom" ? { transform: "translateY(calc((1 - var(--glass-drawer-t, 0)) * 100%))" } : e === "top" ? { transform: "translateY(calc((var(--glass-drawer-t, 0) - 1) * 100%))" } : e === "left" ? { transform: "translateX(calc((var(--glass-drawer-t, 0) - 1) * 100%))" } : { transform: "translateX(calc((1 - var(--glass-drawer-t, 0)) * 100%))" };
|
|
292
314
|
});
|
|
293
315
|
return (t, n) => (h(), a(y(E), null, {
|
|
294
|
-
default: x(() => [
|
|
295
|
-
...y(
|
|
316
|
+
default: x(() => [u.showOverlay ? (h(), a(B, { key: 0 })) : o("", !0), l(y(C), d({
|
|
317
|
+
...y(p),
|
|
296
318
|
...t.$attrs
|
|
297
319
|
}, {
|
|
298
320
|
"data-glass-drawer": "",
|
|
299
|
-
"data-
|
|
300
|
-
"data-glass-drawer-
|
|
301
|
-
"data-
|
|
302
|
-
|
|
303
|
-
|
|
321
|
+
"data-mode": P.value,
|
|
322
|
+
"data-glass-drawer-snap-points": D.value ? "true" : void 0,
|
|
323
|
+
"data-glass-drawer-direction": N.value,
|
|
324
|
+
"data-surface": u.surface,
|
|
325
|
+
class: y(e)("glass-drawer glass-overlay", m.value, u.class),
|
|
326
|
+
"data-material": "transient-overlay",
|
|
327
|
+
style: I.value
|
|
304
328
|
}), {
|
|
305
|
-
default: x(() => [
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
"
|
|
312
|
-
|
|
329
|
+
default: x(() => [
|
|
330
|
+
c("span", {
|
|
331
|
+
ref_key: "contentAnchorEl",
|
|
332
|
+
ref: b,
|
|
333
|
+
hidden: ""
|
|
334
|
+
}, null, 512),
|
|
335
|
+
D.value ? (h(), s("div", {
|
|
336
|
+
key: 0,
|
|
337
|
+
ref_key: "handleEl",
|
|
338
|
+
ref: v,
|
|
339
|
+
class: "glass-drawer-handle",
|
|
340
|
+
"data-glass-drawer-handle": "",
|
|
341
|
+
"data-dragging": y(T)?.dragging.value ? "" : void 0,
|
|
342
|
+
role: "slider",
|
|
343
|
+
tabindex: "0",
|
|
344
|
+
"aria-label": "Drawer position",
|
|
345
|
+
"aria-orientation": N.value === "left" || N.value === "right" ? "horizontal" : "vertical",
|
|
346
|
+
"aria-valuemin": O.value[0],
|
|
347
|
+
"aria-valuemax": O.value[O.value.length - 1],
|
|
348
|
+
"aria-valuenow": j.value,
|
|
349
|
+
"aria-valuetext": M.value,
|
|
350
|
+
onKeydown: F
|
|
351
|
+
}, [...n[0] ||= [c("span", {
|
|
352
|
+
class: "glass-drawer-grip",
|
|
353
|
+
"aria-hidden": "true"
|
|
354
|
+
}, null, -1)]], 40, K)) : o("", !0),
|
|
355
|
+
_(t.$slots, "default")
|
|
356
|
+
]),
|
|
313
357
|
_: 3
|
|
314
358
|
}, 16, [
|
|
359
|
+
"data-mode",
|
|
315
360
|
"data-glass-drawer-snap-points",
|
|
316
361
|
"data-glass-drawer-direction",
|
|
317
362
|
"data-surface",
|
|
@@ -321,7 +366,7 @@ var q = ["data-dragging"], J = /* @__PURE__ */ u({
|
|
|
321
366
|
_: 3
|
|
322
367
|
}));
|
|
323
368
|
}
|
|
324
|
-
}),
|
|
369
|
+
}), J = /* @__PURE__ */ u({
|
|
325
370
|
__name: "DrawerHeader",
|
|
326
371
|
props: { class: { type: [
|
|
327
372
|
Boolean,
|
|
@@ -334,7 +379,7 @@ var q = ["data-dragging"], J = /* @__PURE__ */ u({
|
|
|
334
379
|
let n = t;
|
|
335
380
|
return (t, r) => (h(), s("div", { class: f(y(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)) }, [_(t.$slots, "default")], 2));
|
|
336
381
|
}
|
|
337
|
-
}),
|
|
382
|
+
}), Y = /* @__PURE__ */ u({
|
|
338
383
|
__name: "DrawerFooter",
|
|
339
384
|
props: { class: { type: [
|
|
340
385
|
Boolean,
|
|
@@ -347,7 +392,7 @@ var q = ["data-dragging"], J = /* @__PURE__ */ u({
|
|
|
347
392
|
let n = t;
|
|
348
393
|
return (t, r) => (h(), s("div", { class: f(y(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)) }, [_(t.$slots, "default")], 2));
|
|
349
394
|
}
|
|
350
|
-
}),
|
|
395
|
+
}), X = /* @__PURE__ */ u({
|
|
351
396
|
__name: "DrawerTitle",
|
|
352
397
|
props: {
|
|
353
398
|
asChild: { type: Boolean },
|
|
@@ -365,12 +410,12 @@ var q = ["data-dragging"], J = /* @__PURE__ */ u({
|
|
|
365
410
|
let { class: e, ...t } = n;
|
|
366
411
|
return t;
|
|
367
412
|
});
|
|
368
|
-
return (t, i) => (h(), a(y(
|
|
413
|
+
return (t, i) => (h(), a(y(O), d(r.value, { class: y(e)("text-subheading leading-none tracking-tight", n.class) }), {
|
|
369
414
|
default: x(() => [_(t.$slots, "default")]),
|
|
370
415
|
_: 3
|
|
371
416
|
}, 16, ["class"]));
|
|
372
417
|
}
|
|
373
|
-
}),
|
|
418
|
+
}), Z = /* @__PURE__ */ u({
|
|
374
419
|
__name: "DrawerDescription",
|
|
375
420
|
props: {
|
|
376
421
|
asChild: { type: Boolean },
|
|
@@ -395,4 +440,4 @@ var q = ["data-dragging"], J = /* @__PURE__ */ u({
|
|
|
395
440
|
}
|
|
396
441
|
});
|
|
397
442
|
//#endregion
|
|
398
|
-
export {
|
|
443
|
+
export { z as Drawer, S as DrawerClose, q as DrawerContent, Z as DrawerDescription, Y as DrawerFooter, J as DrawerHeader, X as DrawerTitle, k as DrawerTrigger };
|