@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/README.md
CHANGED
|
@@ -24,7 +24,7 @@ import { Input, Textarea, Combobox } from "@mkbabb/glass-ui/forms";
|
|
|
24
24
|
import { GlassDock, DockLayerGroup, DockLayer } from "@mkbabb/glass-ui/dock";
|
|
25
25
|
import { DarkModeToggle } from "@mkbabb/glass-ui/controls";
|
|
26
26
|
import { Configurator, useConfiguratorState } from "@mkbabb/glass-ui/configurator";
|
|
27
|
-
import {
|
|
27
|
+
import { Popover, PopoverTrigger, PopoverContent } from "@mkbabb/glass-ui/popover";
|
|
28
28
|
|
|
29
29
|
// public types + constants live on their OWNING subpath (the 5.0.0 export reshape
|
|
30
30
|
// dropped the `/api` discovery layer — every symbol re-homes to its family subpath)
|
|
@@ -35,11 +35,12 @@ import { DEFAULT_AURORA_CONFIG, MAX_NUCLEI } from "@mkbabb/glass-ui/aurora";
|
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
```vue
|
|
38
|
-
<
|
|
39
|
-
<
|
|
40
|
-
</
|
|
41
|
-
|
|
42
|
-
<
|
|
38
|
+
<Popover trigger="hover" :open-delay="120">
|
|
39
|
+
<PopoverTrigger as-child>
|
|
40
|
+
<Button variant="primary-audacious" size="lg">Run audit</Button>
|
|
41
|
+
</PopoverTrigger>
|
|
42
|
+
<PopoverContent role="card">Quicker reveal for chassis actions</PopoverContent>
|
|
43
|
+
</Popover>
|
|
43
44
|
```
|
|
44
45
|
|
|
45
46
|
```css
|
|
@@ -60,8 +61,8 @@ import { DEFAULT_AURORA_CONFIG, MAX_NUCLEI } from "@mkbabb/glass-ui/aurora";
|
|
|
60
61
|
|
|
61
62
|
## Documentation
|
|
62
63
|
|
|
63
|
-
The authoritative canon lives under [`docs/canon/`](./docs/canon/)
|
|
64
|
-
|
|
64
|
+
The authoritative canon lives under [`docs/canon/`](./docs/canon/), with the
|
|
65
|
+
consumer-facing migration path in [`MIGRATION.md`](./MIGRATION.md):
|
|
65
66
|
|
|
66
67
|
- [`docs/canon/structure.md`](./docs/canon/structure.md) — the generated `src/` tree (the machine-truth source; never hand-maintained)
|
|
67
68
|
- [`docs/canon/glass-system.md`](./docs/canon/glass-system.md) — the glass tier ladder + adaptive-legibility axes
|
|
@@ -77,7 +78,7 @@ gate-locked homes), with the consumer-facing migration path in [`MIGRATION.md`](
|
|
|
77
78
|
npm run dev # storybook demo (multi-page, dock + carousel navigation)
|
|
78
79
|
npm run build # library → dist/glass-ui.js + glass-ui.css + index.d.ts + per-subpath chunks
|
|
79
80
|
npm run typecheck # vue-tsc --noEmit
|
|
80
|
-
npm run profile:
|
|
81
|
+
npm run profile:bundle # inspect the built bundle
|
|
81
82
|
```
|
|
82
83
|
|
|
83
84
|
## Storybook
|
|
@@ -86,26 +87,25 @@ npm run profile:budget # bundle-budget gate (--enforce in CI)
|
|
|
86
87
|
|
|
87
88
|
## Structure
|
|
88
89
|
|
|
89
|
-
The `src/` tree is machine-generated into [`docs/canon/structure.md`](./docs/canon/structure.md)
|
|
90
|
+
The `src/` tree is machine-generated into [`docs/canon/structure.md`](./docs/canon/structure.md) by `npm run gen:structure`. At a glance:
|
|
90
91
|
|
|
91
92
|
```
|
|
92
93
|
src/
|
|
93
|
-
├── index.ts #
|
|
94
|
-
├──
|
|
95
|
-
├── components/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
├──
|
|
99
|
-
|
|
100
|
-
│ │ # reactive/ color/ virtual/ …)
|
|
101
|
-
├── subpaths/ # trivial one-line per-package subpath mirror barrels
|
|
102
|
-
├── styles/ # token cascade + glass ladder + component recipes
|
|
103
|
-
└── utils/ # cn() + shared prng leaf
|
|
94
|
+
├── index.ts # curated root barrel
|
|
95
|
+
├── forms.ts # input-family entry
|
|
96
|
+
├── components/ # flat, owner-colocated component families + _shared
|
|
97
|
+
├── composables/ # shared composable families
|
|
98
|
+
├── styles/ # global tokens, glass substrate, and utilities
|
|
99
|
+
├── fonts/ # packaged font assets
|
|
100
|
+
└── html-attributes.d.ts
|
|
104
101
|
```
|
|
105
102
|
|
|
106
103
|
## Subpath imports
|
|
107
104
|
|
|
108
|
-
Beyond the vueuse-
|
|
105
|
+
Beyond the vueuse-free root barrel, the library ships flat, independently
|
|
106
|
+
tree-shakable JS subpaths plus CSS and font entries. The semantic entry graph in
|
|
107
|
+
`scripts/lib/subpath-policy.mjs` feeds the build and generated `package.json`
|
|
108
|
+
exports; `scripts/verify-export-types.mjs` checks the emitted declaration paths.
|
|
109
109
|
|
|
110
110
|
```ts
|
|
111
111
|
// vueuse-bearing subpaths (the SCC-trap closure — the root barrel does not
|
|
@@ -120,13 +120,16 @@ import { GlassDock, DockLayerGroup, DockLayer } from "@mkbabb/glass-ui/dock";
|
|
|
120
120
|
import { DarkModeToggle } from "@mkbabb/glass-ui/controls";
|
|
121
121
|
import { Aurora, useAurora } from "@mkbabb/glass-ui/aurora";
|
|
122
122
|
import { Configurator, useConfiguratorState } from "@mkbabb/glass-ui/configurator";
|
|
123
|
-
import {
|
|
124
|
-
import { InstrumentChassis,
|
|
125
|
-
import {
|
|
126
|
-
import { ScrollingText } from "@mkbabb/glass-ui/scrolling-text";
|
|
123
|
+
import { Popover, PopoverTrigger, PopoverContent } from "@mkbabb/glass-ui/popover";
|
|
124
|
+
import { InstrumentChassis, ChassisDivider } from "@mkbabb/glass-ui/instrument-chassis";
|
|
125
|
+
import { useSidebarState } from "@mkbabb/glass-ui/sidebar";
|
|
127
126
|
```
|
|
128
127
|
|
|
129
|
-
The v0.9.x nested subpaths `@mkbabb/glass-ui/composables/dark`
|
|
128
|
+
The v0.9.x nested subpaths `@mkbabb/glass-ui/composables/dark` and
|
|
129
|
+
`.../composables/keyboard` were flattened to `/dark` and `/keyboard` at v1.0.
|
|
130
|
+
The demo-only `/pagination` and `/virtual` subpaths are retired. The 5.0.0 export
|
|
131
|
+
reshape also dropped the pure-types `/api` discovery layer; see `MIGRATION.md`
|
|
132
|
+
for the owning-family re-home table.
|
|
130
133
|
|
|
131
134
|
## Glass Token System
|
|
132
135
|
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, defineComponent as n, inject as r, isRef as i, mergeProps as a, openBlock as o, provide as s, renderSlot as c, resolveDynamicComponent as l, unref as u, withCtx as d } from "vue";
|
|
2
|
+
import { ContextMenuCheckboxItem as f, ContextMenuContent as p, ContextMenuGroup as m, ContextMenuItem as h, ContextMenuItemIndicator as g, ContextMenuLabel as _, ContextMenuPortal as v, ContextMenuRadioGroup as y, ContextMenuRadioItem as b, ContextMenuRoot as x, ContextMenuSeparator as S, ContextMenuSub as C, ContextMenuSubContent as w, ContextMenuSubTrigger as T, ContextMenuTrigger as E, DropdownMenuCheckboxItem as D, DropdownMenuContent as O, DropdownMenuGroup as k, DropdownMenuItem as A, DropdownMenuItemIndicator as j, DropdownMenuLabel as M, DropdownMenuPortal as N, DropdownMenuRadioGroup as P, DropdownMenuRadioItem as F, DropdownMenuRoot as I, DropdownMenuSeparator as L, DropdownMenuSub as R, DropdownMenuSubContent as z, DropdownMenuSubTrigger as B, DropdownMenuTrigger as V, injectDropdownMenuRootContext as H, useForwardProps as U } from "reka-ui";
|
|
3
|
+
//#region src/components/dropdown-menu/useMenuTrigger.ts
|
|
4
|
+
var W = Symbol("glass-menu-trigger");
|
|
5
|
+
function G(e) {
|
|
6
|
+
s(W, e);
|
|
7
|
+
}
|
|
8
|
+
var K = e(() => "click");
|
|
9
|
+
function q() {
|
|
10
|
+
return r(W, K);
|
|
11
|
+
}
|
|
12
|
+
var J = {
|
|
13
|
+
Root: [I, x],
|
|
14
|
+
Trigger: [V, E],
|
|
15
|
+
Portal: [N, v],
|
|
16
|
+
Content: [O, p],
|
|
17
|
+
Item: [A, h],
|
|
18
|
+
CheckboxItem: [D, f],
|
|
19
|
+
RadioItem: [F, b],
|
|
20
|
+
RadioGroup: [P, y],
|
|
21
|
+
Group: [k, m],
|
|
22
|
+
Separator: [L, S],
|
|
23
|
+
Label: [M, _],
|
|
24
|
+
Sub: [R, C],
|
|
25
|
+
SubTrigger: [B, T],
|
|
26
|
+
SubContent: [z, w],
|
|
27
|
+
ItemIndicator: [j, g]
|
|
28
|
+
};
|
|
29
|
+
function Y(t) {
|
|
30
|
+
let n = q();
|
|
31
|
+
return e(() => J[t][+(n.value === "context")]);
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/dropdown-menu/DropdownMenuTrigger.vue
|
|
35
|
+
var X = /* @__PURE__ */ n({
|
|
36
|
+
__name: "DropdownMenuTrigger",
|
|
37
|
+
props: {
|
|
38
|
+
disabled: { type: Boolean },
|
|
39
|
+
asChild: { type: Boolean },
|
|
40
|
+
as: {},
|
|
41
|
+
action: { default: "click" }
|
|
42
|
+
},
|
|
43
|
+
setup(n) {
|
|
44
|
+
let r = n, s = U(e(() => {
|
|
45
|
+
let { action: e, ...t } = r;
|
|
46
|
+
return t;
|
|
47
|
+
})), f = q(), p = Y("Trigger"), m = H(null), h = !1;
|
|
48
|
+
function g(e) {
|
|
49
|
+
r.action !== "pointerdown" || f.value !== "click" || !m || r.disabled || e.button !== 0 || e.ctrlKey || (h = !0, m.onOpenToggle(), m.open.value && e.preventDefault());
|
|
50
|
+
}
|
|
51
|
+
function _(e) {
|
|
52
|
+
h && (h = !1, e.detail !== 0 && (e.preventDefault(), e.stopImmediatePropagation()));
|
|
53
|
+
}
|
|
54
|
+
return (e, n) => (o(), t(l(u(p)), a({ class: "outline-none" }, u(s), {
|
|
55
|
+
onPointerdownCapture: g,
|
|
56
|
+
onPointercancelCapture: n[0] ||= (e) => i(h) ? h.value = !1 : h = !1,
|
|
57
|
+
onClickCapture: _
|
|
58
|
+
}), {
|
|
59
|
+
default: d(() => [c(e.$slots, "default")]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { q as i, G as n, Y as r, X as t };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { t as e } from "./useResizeObserver-
|
|
2
|
-
import { t } from "./supportsCssTimeline-
|
|
3
|
-
import { createElementBlock as n, defineComponent as r, normalizeClass as i, onBeforeUnmount as a, onMounted as o, openBlock as s, ref as c, renderSlot as l,
|
|
1
|
+
import { t as e } from "./useResizeObserver-BcUTquV7.js";
|
|
2
|
+
import { t } from "./supportsCssTimeline-Dz-GVxXM.js";
|
|
3
|
+
import { createElementBlock as n, defineComponent as r, normalizeClass as i, onBeforeUnmount as a, onMounted as o, openBlock as s, ref as c, renderSlot as l, toRef as u, unref as d, watch as f } from "vue";
|
|
4
4
|
//#region src/components/fading-scroll/constants.ts
|
|
5
|
-
var
|
|
5
|
+
var p = t();
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/components/fading-scroll/composables/useFadingScroll.ts
|
|
8
|
-
function
|
|
9
|
-
let { axis: r = "x", fadeStart: i = !0, fadeEnd: s = !0 } = n, l = c(!
|
|
8
|
+
function m(t, n = {}) {
|
|
9
|
+
let { axis: r = "x", fadeStart: i = !0, fadeEnd: s = !0 } = n, l = c(!p), u = 0, f = null;
|
|
10
10
|
function m(e, n) {
|
|
11
|
-
let r =
|
|
11
|
+
let r = d(t);
|
|
12
12
|
r && (r.style.setProperty("--fade-start", e ? "var(--fade-scroll-width)" : "0px"), r.style.setProperty("--fade-end", n ? "var(--fade-scroll-width)" : "0px"));
|
|
13
13
|
}
|
|
14
14
|
function h() {
|
|
15
|
-
let e =
|
|
15
|
+
let e = d(t);
|
|
16
16
|
if (!e) return;
|
|
17
|
-
let n = r === "x" ? e.scrollLeft : e.scrollTop,
|
|
18
|
-
m(i && !
|
|
17
|
+
let n = d(r) === "x", a = n ? e.scrollLeft : e.scrollTop, o = n ? e.scrollWidth - e.clientWidth : e.scrollHeight - e.clientHeight, c = a <= 12, l = a >= o - 12;
|
|
18
|
+
m(d(i) && !c, d(s) && !l);
|
|
19
19
|
}
|
|
20
20
|
function g() {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
u ||= requestAnimationFrame(() => {
|
|
22
|
+
u = 0, h();
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function _() {
|
|
26
|
-
let n =
|
|
27
|
-
n && (n.addEventListener("scroll", g, { passive: !0 }),
|
|
26
|
+
let n = d(t);
|
|
27
|
+
n && (n.addEventListener("scroll", g, { passive: !0 }), f = e(t, h).stop, h());
|
|
28
28
|
}
|
|
29
29
|
function v() {
|
|
30
|
-
|
|
30
|
+
d(t)?.removeEventListener("scroll", g), f?.(), f = null, u &&= (cancelAnimationFrame(u), 0);
|
|
31
31
|
}
|
|
32
32
|
return o(() => {
|
|
33
33
|
l.value && _();
|
|
@@ -39,11 +39,11 @@ function f(t, n = {}) {
|
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/components/fading-scroll/FadingScroll.vue?vue&type=script&setup=true&lang.ts
|
|
42
|
-
var
|
|
42
|
+
var h = [
|
|
43
43
|
"data-fade-axis",
|
|
44
44
|
"data-fade-start",
|
|
45
45
|
"data-fade-end"
|
|
46
|
-
],
|
|
46
|
+
], g = /* @__PURE__ */ r({
|
|
47
47
|
__name: "FadingScroll",
|
|
48
48
|
props: {
|
|
49
49
|
axis: { default: "x" },
|
|
@@ -58,19 +58,26 @@ var p = [
|
|
|
58
58
|
},
|
|
59
59
|
setup(e) {
|
|
60
60
|
let t = e, r = c(null);
|
|
61
|
-
return f(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
return f(() => [
|
|
62
|
+
t.axis,
|
|
63
|
+
t.fadeStart,
|
|
64
|
+
t.fadeEnd
|
|
65
|
+
], m(r, {
|
|
66
|
+
axis: u(t, "axis"),
|
|
67
|
+
fadeStart: u(t, "fadeStart"),
|
|
68
|
+
fadeEnd: u(t, "fadeEnd")
|
|
69
|
+
}).measure), (t, a) => (s(), n("div", {
|
|
66
70
|
ref_key: "rootRef",
|
|
67
71
|
ref: r,
|
|
68
72
|
class: i(["fading-scroll", e.axis === "y" ? "fading-scroll--y" : "fading-scroll--x"]),
|
|
69
73
|
"data-fade-axis": e.axis,
|
|
70
74
|
"data-fade-start": e.fadeStart ? "" : void 0,
|
|
71
|
-
"data-fade-end": e.fadeEnd ? "" : void 0
|
|
72
|
-
|
|
75
|
+
"data-fade-end": e.fadeEnd ? "" : void 0,
|
|
76
|
+
role: "region",
|
|
77
|
+
"aria-label": "Scrollable content",
|
|
78
|
+
tabindex: "0"
|
|
79
|
+
}, [l(t.$slots, "default")], 10, h));
|
|
73
80
|
}
|
|
74
81
|
});
|
|
75
82
|
//#endregion
|
|
76
|
-
export {
|
|
83
|
+
export { m as n, g as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { t } from "./useControlSize-
|
|
2
|
+
import { t } from "./useControlSize-CFfOk8I-.js";
|
|
3
3
|
import { computed as n, createElementBlock as r, defineComponent as i, isRef as a, mergeProps as o, openBlock as s, unref as c, vModelDynamic as l, withDirectives as u } from "vue";
|
|
4
4
|
import { useVModel as d } from "@vueuse/core";
|
|
5
5
|
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
2
|
import { t } from "./useLiquidFlex-Ch4exNvN.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
4
|
-
import { t as r } from "./useResizeObserver-
|
|
5
|
-
import { t as i } from "./useLeadTrail-
|
|
6
|
-
import { Fragment as a, computed as o, createElementBlock as s, createElementVNode as c, defineComponent as l, mergeModels as u, nextTick as d, normalizeClass as f,
|
|
4
|
+
import { t as r } from "./useResizeObserver-BcUTquV7.js";
|
|
5
|
+
import { t as i } from "./useLeadTrail-BYu8dq4G.js";
|
|
6
|
+
import { Fragment as a, computed as o, createElementBlock as s, createElementVNode as c, defineComponent as l, mergeModels as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onMounted as m, openBlock as h, ref as g, renderList as _, unref as v, useId as y, useModel as b, watch as x } from "vue";
|
|
7
7
|
//#region src/components/pager-dots/pagerWindow.ts
|
|
8
|
-
function
|
|
8
|
+
function S(e, t, n) {
|
|
9
9
|
let r = Math.max(1, Math.min(n, e)), i = e <= r ? 0 : Math.max(0, Math.min(t - Math.floor(r / 2), e - r)), a = Math.min(r, e), o = Array.from({ length: a }, (e, t) => i + t);
|
|
10
10
|
return {
|
|
11
11
|
shown: o,
|
|
@@ -13,10 +13,10 @@ function b(e, t, n) {
|
|
|
13
13
|
clippedEnd: o.length > 0 && o[o.length - 1] < e - 1
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
var
|
|
16
|
+
var C = .7;
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/pager-dots/composables/usePagerWorm.ts
|
|
19
|
-
function
|
|
19
|
+
function w(e, t, n) {
|
|
20
20
|
if (!e) return n;
|
|
21
21
|
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
22
22
|
if (!r) return n;
|
|
@@ -26,13 +26,13 @@ function S(e, t, n) {
|
|
|
26
26
|
}
|
|
27
27
|
return parseFloat(r) || n;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
let { rootEl: n, wormLayerEl: a, bodyAEl: o, bodyBEl: s, neckEl: c, bedDotEls: l, shown: u, vertical: f, active:
|
|
29
|
+
function T(e) {
|
|
30
|
+
let { rootEl: n, wormLayerEl: a, bodyAEl: o, bodyBEl: s, neckEl: c, bedDotEls: l, shown: u, vertical: f, active: p } = e, h = t({
|
|
31
31
|
from: 0,
|
|
32
32
|
to: 0,
|
|
33
33
|
axis: "width",
|
|
34
34
|
squishLaw: "linear",
|
|
35
|
-
maxStretch: () =>
|
|
35
|
+
maxStretch: () => w(n.value, "--pager-worm-max-stretch", 1.2) || 1.2
|
|
36
36
|
});
|
|
37
37
|
function g(e) {
|
|
38
38
|
let t = a.value;
|
|
@@ -50,46 +50,46 @@ function C(e) {
|
|
|
50
50
|
function _(e) {
|
|
51
51
|
let t = o.value, r = s.value, i = c.value, l = a.value;
|
|
52
52
|
if (!t || !r || !i || !l) return;
|
|
53
|
-
let u = f.value, d =
|
|
53
|
+
let u = f.value, d = w(n.value, "--pager-dot-size", 13), p = w(n.value, "--pager-dot-elongated", 36), m = e.hi - e.lo;
|
|
54
54
|
m > p && (m = p);
|
|
55
55
|
let g = (e.lo + e.hi) / 2, _ = g - m / 2, y = g + m / 2;
|
|
56
56
|
h.squish(p > 0 ? m / p : 0), l.style.setProperty("--stretch", h.stretch.value.toFixed(4)), t.style.translate = v(_, u), r.style.translate = v(y, u);
|
|
57
57
|
let b = d > 0 ? Math.max(m / d, 1e-4) : 1e-4;
|
|
58
|
-
i.style.translate = v(g, u), i.style.scale = u ? `${
|
|
58
|
+
i.style.translate = v(g, u), i.style.scale = u ? `${C.toFixed(4)} ${b.toFixed(4)}` : `${b.toFixed(4)} ${C.toFixed(4)}`, i.style.opacity = m > .5 ? "1" : "0";
|
|
59
59
|
}
|
|
60
60
|
function v(e, t) {
|
|
61
61
|
return t ? `0 ${e.toFixed(2)}px` : `${e.toFixed(2)}px 0`;
|
|
62
62
|
}
|
|
63
|
-
let
|
|
64
|
-
function
|
|
65
|
-
let e = g(
|
|
66
|
-
e != null &&
|
|
63
|
+
let y = i({ onFrame: _ });
|
|
64
|
+
function b() {
|
|
65
|
+
let e = g(p.value);
|
|
66
|
+
e != null && y.seat(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
let e = g(
|
|
70
|
-
e != null &&
|
|
68
|
+
function S() {
|
|
69
|
+
let e = g(p.value);
|
|
70
|
+
e != null && y.drive(e);
|
|
71
71
|
}
|
|
72
|
-
|
|
73
|
-
d(
|
|
74
|
-
}),
|
|
75
|
-
d(
|
|
72
|
+
x(p, () => {
|
|
73
|
+
d(S);
|
|
74
|
+
}), x(u, () => {
|
|
75
|
+
d(S);
|
|
76
76
|
}), r(n, () => {
|
|
77
|
-
d(
|
|
78
|
-
}),
|
|
79
|
-
d(
|
|
77
|
+
d(b);
|
|
78
|
+
}), m(() => {
|
|
79
|
+
d(b);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/components/pager-dots/PagerDots.vue?vue&type=script&setup=true&lang.ts
|
|
84
|
-
var
|
|
84
|
+
var E = [
|
|
85
85
|
"role",
|
|
86
86
|
"aria-label",
|
|
87
87
|
"aria-orientation",
|
|
88
88
|
"data-orientation"
|
|
89
|
-
],
|
|
89
|
+
], D = {
|
|
90
90
|
class: "pager-bed-layer",
|
|
91
91
|
"aria-hidden": "true"
|
|
92
|
-
},
|
|
92
|
+
}, O = ["data-active", "data-edge"], k = [
|
|
93
93
|
"role",
|
|
94
94
|
"aria-selected",
|
|
95
95
|
"aria-current",
|
|
@@ -98,7 +98,7 @@ var w = [
|
|
|
98
98
|
"data-active",
|
|
99
99
|
"data-edge",
|
|
100
100
|
"onClick"
|
|
101
|
-
],
|
|
101
|
+
], A = /* @__PURE__ */ n(/* @__PURE__ */ l({
|
|
102
102
|
__name: "PagerDots",
|
|
103
103
|
props: /* @__PURE__ */ u({
|
|
104
104
|
count: {},
|
|
@@ -123,81 +123,81 @@ var w = [
|
|
|
123
123
|
}),
|
|
124
124
|
emits: /* @__PURE__ */ u(["select"], ["update:active"]),
|
|
125
125
|
setup(t, { emit: n }) {
|
|
126
|
-
let r = t, i = n, l =
|
|
127
|
-
function
|
|
128
|
-
t ?
|
|
126
|
+
let r = t, i = n, l = b(t, "active"), u = y().replace(/[^a-zA-Z0-9_-]/g, ""), m = `pager-worm-filter-${u}`, C = `pager-neck-clip-${u}`, w = g(null), A = g(null), j = g(null), M = g(null), N = g(null), P = /* @__PURE__ */ new Map();
|
|
127
|
+
function F(e, t) {
|
|
128
|
+
t ? P.set(e, t) : P.delete(e);
|
|
129
129
|
}
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
t ?
|
|
130
|
+
let I = /* @__PURE__ */ new Map();
|
|
131
|
+
function L(e, t) {
|
|
132
|
+
t ? I.set(e, t) : I.delete(e);
|
|
133
133
|
}
|
|
134
|
-
let
|
|
134
|
+
let R = o(() => r.orientation === "vertical"), z = o(() => r.windowFit && r.windowFit > 0 ? S(r.count, l.value, r.windowFit) : {
|
|
135
135
|
shown: Array.from({ length: Math.max(0, r.count) }, (e, t) => t),
|
|
136
136
|
clippedStart: !1,
|
|
137
137
|
clippedEnd: !1
|
|
138
|
-
}),
|
|
139
|
-
|
|
140
|
-
rootEl:
|
|
141
|
-
wormLayerEl:
|
|
142
|
-
bodyAEl:
|
|
143
|
-
bodyBEl:
|
|
144
|
-
neckEl:
|
|
145
|
-
bedDotEls:
|
|
146
|
-
shown:
|
|
147
|
-
vertical:
|
|
138
|
+
}), B = o(() => z.value.shown);
|
|
139
|
+
T({
|
|
140
|
+
rootEl: w,
|
|
141
|
+
wormLayerEl: A,
|
|
142
|
+
bodyAEl: j,
|
|
143
|
+
bodyBEl: M,
|
|
144
|
+
neckEl: N,
|
|
145
|
+
bedDotEls: I,
|
|
146
|
+
shown: B,
|
|
147
|
+
vertical: R,
|
|
148
148
|
active: l
|
|
149
|
-
}),
|
|
150
|
-
let t =
|
|
149
|
+
}), x(B, (e) => {
|
|
150
|
+
let t = w.value;
|
|
151
151
|
if (!t || !t.contains(document.activeElement)) return;
|
|
152
152
|
let n = document.activeElement;
|
|
153
|
-
e.some((e) =>
|
|
153
|
+
e.some((e) => P.get(e) === n) || d(() => P.get(l.value)?.focus());
|
|
154
154
|
});
|
|
155
|
-
function
|
|
155
|
+
function V(e) {
|
|
156
156
|
l.value = e, i("select", e);
|
|
157
157
|
}
|
|
158
|
-
let
|
|
159
|
-
let e =
|
|
158
|
+
let H = o(() => {
|
|
159
|
+
let e = B.value;
|
|
160
160
|
return e.length === 0 ? -1 : e.includes(l.value) ? l.value : e[0];
|
|
161
161
|
});
|
|
162
|
-
function
|
|
163
|
-
return e ===
|
|
162
|
+
function U(e) {
|
|
163
|
+
return e === H.value ? 0 : -1;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
165
|
+
function W(e) {
|
|
166
|
+
V(e), d(() => P.get(e)?.focus());
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function G(e, t) {
|
|
169
169
|
let n = r.count;
|
|
170
170
|
if (n !== 0) for (let r = 1; r <= n; r++) {
|
|
171
171
|
let i = (e + t * r + n * r) % n;
|
|
172
|
-
if (!
|
|
173
|
-
|
|
172
|
+
if (!P.get(i)?.disabled) {
|
|
173
|
+
W(i);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function K(e) {
|
|
179
179
|
let t = r.count;
|
|
180
180
|
if (t === 0) return;
|
|
181
181
|
let n = e === "first" ? Array.from({ length: t }, (e, t) => t) : Array.from({ length: t }, (e, n) => t - 1 - n);
|
|
182
|
-
for (let e of n) if (!
|
|
183
|
-
|
|
182
|
+
for (let e of n) if (!P.get(e)?.disabled) {
|
|
183
|
+
W(e);
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
let t = l.value, n =
|
|
187
|
+
function q(e) {
|
|
188
|
+
let t = l.value, n = R.value ? "ArrowDown" : "ArrowRight", r = R.value ? "ArrowUp" : "ArrowLeft", i = !0;
|
|
189
189
|
switch (e.key) {
|
|
190
190
|
case n:
|
|
191
|
-
|
|
191
|
+
G(t, 1);
|
|
192
192
|
break;
|
|
193
193
|
case r:
|
|
194
|
-
|
|
194
|
+
G(t, -1);
|
|
195
195
|
break;
|
|
196
196
|
case "Home":
|
|
197
|
-
|
|
197
|
+
K("first");
|
|
198
198
|
break;
|
|
199
199
|
case "End":
|
|
200
|
-
|
|
200
|
+
K("last");
|
|
201
201
|
break;
|
|
202
202
|
default:
|
|
203
203
|
i = !1;
|
|
@@ -205,75 +205,103 @@ var w = [
|
|
|
205
205
|
}
|
|
206
206
|
i && (e.preventDefault(), e.stopPropagation());
|
|
207
207
|
}
|
|
208
|
-
return (n, i) => (
|
|
208
|
+
return (n, i) => (h(), s("div", {
|
|
209
209
|
ref_key: "rootEl",
|
|
210
|
-
ref:
|
|
210
|
+
ref: w,
|
|
211
211
|
"data-slot": "pager-dots",
|
|
212
212
|
role: t.pattern === "group" ? "group" : "tablist",
|
|
213
213
|
"aria-label": t.ariaLabel,
|
|
214
214
|
"aria-orientation": t.pattern === "group" ? void 0 : t.orientation,
|
|
215
215
|
"data-orientation": t.orientation,
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
style: p({
|
|
217
|
+
"--pager-goo-filter": `url(#${m})`,
|
|
218
|
+
"--pager-neck-clip": `url(#${C})`
|
|
219
|
+
}),
|
|
220
|
+
onKeydown: q,
|
|
221
|
+
class: f(v(e)("pager-dots inline-flex items-center justify-center gap-1.5", t.ring && "glass-pager-ring", t.orientation === "vertical" && "flex-col", r.class))
|
|
218
222
|
}, [
|
|
219
|
-
|
|
223
|
+
c("svg", {
|
|
220
224
|
class: "pager-worm-defs",
|
|
221
|
-
width: "
|
|
222
|
-
height: "
|
|
225
|
+
width: "1",
|
|
226
|
+
height: "1",
|
|
223
227
|
"aria-hidden": "true",
|
|
224
228
|
focusable: "false"
|
|
225
|
-
}, [c("defs", null, [c("
|
|
226
|
-
id:
|
|
229
|
+
}, [c("defs", null, [c("filter", {
|
|
230
|
+
id: m,
|
|
231
|
+
"color-interpolation-filters": "sRGB",
|
|
232
|
+
x: "-50%",
|
|
233
|
+
y: "-50%",
|
|
234
|
+
width: "200%",
|
|
235
|
+
height: "200%"
|
|
236
|
+
}, [...i[0] ||= [
|
|
237
|
+
c("feGaussianBlur", {
|
|
238
|
+
in: "SourceGraphic",
|
|
239
|
+
stdDeviation: "4",
|
|
240
|
+
result: "blur"
|
|
241
|
+
}, null, -1),
|
|
242
|
+
c("feColorMatrix", {
|
|
243
|
+
in: "blur",
|
|
244
|
+
mode: "matrix",
|
|
245
|
+
values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -6",
|
|
246
|
+
result: "goo"
|
|
247
|
+
}, null, -1),
|
|
248
|
+
c("feComposite", {
|
|
249
|
+
in: "SourceGraphic",
|
|
250
|
+
in2: "goo",
|
|
251
|
+
operator: "atop"
|
|
252
|
+
}, null, -1)
|
|
253
|
+
]]), c("clipPath", {
|
|
254
|
+
id: C,
|
|
227
255
|
clipPathUnits: "objectBoundingBox"
|
|
228
|
-
}, [c("path", { d: "M0,0 C0.25,0 0.36,0.34 0.5,0.34 C0.64,0.34 0.75,0 1,0 L1,1 C0.75,1 0.64,0.66 0.5,0.66 C0.36,0.66 0.25,1 0,1 Z" })])])]
|
|
229
|
-
c("div",
|
|
256
|
+
}, [...i[1] ||= [c("path", { d: "M0,0 C0.25,0 0.36,0.34 0.5,0.34 C0.64,0.34 0.75,0 1,0 L1,1 C0.75,1 0.64,0.66 0.5,0.66 C0.36,0.66 0.25,1 0,1 Z" }, null, -1)]])])]),
|
|
257
|
+
c("div", D, [(h(!0), s(a, null, _(B.value, (e) => (h(), s("span", {
|
|
230
258
|
key: e,
|
|
231
259
|
ref_for: !0,
|
|
232
|
-
ref: (t) =>
|
|
260
|
+
ref: (t) => L(e, t),
|
|
233
261
|
class: "goo-dot",
|
|
234
262
|
"data-active": e === l.value ? "" : void 0,
|
|
235
|
-
"data-edge": e ===
|
|
236
|
-
}, null, 8,
|
|
263
|
+
"data-edge": e === B.value[0] && z.value.clippedStart || e === B.value[B.value.length - 1] && z.value.clippedEnd ? "" : void 0
|
|
264
|
+
}, null, 8, O))), 128))]),
|
|
237
265
|
c("div", {
|
|
238
266
|
ref_key: "wormLayerEl",
|
|
239
|
-
ref:
|
|
267
|
+
ref: A,
|
|
240
268
|
class: "pager-worm-layer",
|
|
241
269
|
"aria-hidden": "true"
|
|
242
270
|
}, [
|
|
243
271
|
c("span", {
|
|
244
272
|
ref_key: "bodyAEl",
|
|
245
|
-
ref:
|
|
273
|
+
ref: j,
|
|
246
274
|
class: "goo-body"
|
|
247
275
|
}, null, 512),
|
|
248
276
|
c("span", {
|
|
249
277
|
ref_key: "neckEl",
|
|
250
|
-
ref:
|
|
278
|
+
ref: N,
|
|
251
279
|
class: "goo-neck"
|
|
252
280
|
}, null, 512),
|
|
253
281
|
c("span", {
|
|
254
282
|
ref_key: "bodyBEl",
|
|
255
|
-
ref:
|
|
283
|
+
ref: M,
|
|
256
284
|
class: "goo-body"
|
|
257
285
|
}, null, 512)
|
|
258
286
|
], 512),
|
|
259
|
-
(
|
|
287
|
+
(h(!0), s(a, null, _(B.value, (e, n) => (h(), s("button", {
|
|
260
288
|
key: e,
|
|
261
289
|
ref_for: !0,
|
|
262
|
-
ref: (t) =>
|
|
290
|
+
ref: (t) => F(e, t),
|
|
263
291
|
type: "button",
|
|
264
292
|
role: t.pattern === "group" ? void 0 : "tab",
|
|
265
293
|
"aria-selected": t.pattern === "group" ? void 0 : e === l.value,
|
|
266
294
|
"aria-current": t.pattern === "group" && e === l.value ? "true" : void 0,
|
|
267
295
|
"aria-label": `Go to slide ${e + 1}`,
|
|
268
|
-
tabindex:
|
|
296
|
+
tabindex: U(e),
|
|
269
297
|
"data-active": e === l.value ? "" : void 0,
|
|
270
|
-
"data-edge": n === 0 &&
|
|
298
|
+
"data-edge": n === 0 && z.value.clippedStart || n === B.value.length - 1 && z.value.clippedEnd ? "" : void 0,
|
|
271
299
|
"data-slot": "pager-dot",
|
|
272
300
|
class: "pager-dot focus-ring tap-squish",
|
|
273
|
-
onClick: (t) =>
|
|
274
|
-
}, null, 8,
|
|
275
|
-
],
|
|
301
|
+
onClick: (t) => V(e)
|
|
302
|
+
}, null, 8, k))), 128))
|
|
303
|
+
], 46, E));
|
|
276
304
|
}
|
|
277
|
-
}), [["__scopeId", "data-v-
|
|
305
|
+
}), [["__scopeId", "data-v-6b12735a"]]);
|
|
278
306
|
//#endregion
|
|
279
|
-
export {
|
|
307
|
+
export { S as n, A as t };
|