@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
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { cva as _ } from "class-variance-authority";
|
|
2
|
+
import { t } from "./useLiquidPress-BYcwwGQV.js";
|
|
3
|
+
import { t as n } from "./vSpecular-CQFmLNzA.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, unref as d, withCtx as f, withDirectives as p } from "vue";
|
|
5
|
+
import { Primitive as m } from "reka-ui";
|
|
6
|
+
import { cva as h } from "class-variance-authority";
|
|
8
7
|
//#region src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
8
|
+
var g = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "cartoon-cast",
|
|
12
11
|
"aria-hidden": "true"
|
|
13
|
-
},
|
|
12
|
+
}, _ = /* @__PURE__ */ s({
|
|
14
13
|
__name: "Button",
|
|
15
14
|
props: {
|
|
16
15
|
variant: {},
|
|
@@ -29,31 +28,22 @@ var v = {
|
|
|
29
28
|
punch: { type: Boolean },
|
|
30
29
|
type: {},
|
|
31
30
|
disabled: { type: [Boolean, String] },
|
|
31
|
+
loading: { type: Boolean },
|
|
32
32
|
asChild: { type: Boolean },
|
|
33
33
|
as: { default: "button" }
|
|
34
34
|
},
|
|
35
|
-
setup(
|
|
36
|
-
let _ =
|
|
37
|
-
type:
|
|
38
|
-
disabled: _.
|
|
39
|
-
})),
|
|
40
|
-
if (
|
|
41
|
-
if (
|
|
42
|
-
}),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
squishLaw: "linear"
|
|
48
|
-
});
|
|
49
|
-
p(() => T.value.value, (e) => E.squish(e), {
|
|
50
|
-
immediate: !0,
|
|
51
|
-
flush: "sync"
|
|
52
|
-
});
|
|
53
|
-
let D = i(() => {
|
|
54
|
-
let e = T.value.value, t = E.stretch.value, n = 1 - e * .03, r = (n * t).toFixed(4), i = (n / t).toFixed(4), a = { "--glass-btn-press-t": e.toFixed(4) };
|
|
55
|
-
return C.value && (a["--cartoon-press-t"] = e.toFixed(4)), e > .001 && (a.scale = `${r} ${i}`), a;
|
|
56
|
-
}), O = new Set([
|
|
35
|
+
setup(s) {
|
|
36
|
+
let h = s, _ = r(() => h.loading === !0 || h.disabled === !0 || h.disabled === "true"), y = r(() => ({
|
|
37
|
+
type: h.type ?? (!h.asChild && h.as === "button" ? "button" : void 0),
|
|
38
|
+
disabled: _.value
|
|
39
|
+
})), b = r(() => {
|
|
40
|
+
if (h.surface === "veil") return "veil-surface";
|
|
41
|
+
if (h.surface === "opaque") return "glass-opaque";
|
|
42
|
+
}), x = new Set(["primary-audacious", "gold-audacious"]), S = r(() => h.punch === !0 || x.has(h.variant ?? "default")), C = r(() => S.value ? "btn-punch" : void 0), w = t({
|
|
43
|
+
disabled: () => _.value,
|
|
44
|
+
pressVar: "--glass-btn-press-t",
|
|
45
|
+
maxStretch: () => S.value ? 1.09 : 1.04
|
|
46
|
+
}), T = new Set([
|
|
57
47
|
"default",
|
|
58
48
|
"glass",
|
|
59
49
|
"glass-wash",
|
|
@@ -63,30 +53,40 @@ var v = {
|
|
|
63
53
|
"secondary",
|
|
64
54
|
"accent",
|
|
65
55
|
"ai"
|
|
66
|
-
]),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
]), E = r(() => T.has(h.variant ?? "default")), D = r(() => ({
|
|
57
|
+
...w.pressStyle.value,
|
|
58
|
+
...S.value ? { "--cartoon-press-t": w.value.value.toFixed(4) } : {}
|
|
59
|
+
})), O = r(() => h.liquid ? "glass-lens" : void 0);
|
|
60
|
+
return (t, r) => p((l(), i(d(m), c({
|
|
61
|
+
as: s.as,
|
|
62
|
+
"as-child": s.asChild,
|
|
70
63
|
"data-slot": "button",
|
|
71
|
-
"data-variant":
|
|
72
|
-
"data-size":
|
|
73
|
-
"data-tone":
|
|
74
|
-
"data-icon-only":
|
|
75
|
-
"data-surface":
|
|
64
|
+
"data-variant": s.variant,
|
|
65
|
+
"data-size": s.size,
|
|
66
|
+
"data-tone": s.tone,
|
|
67
|
+
"data-icon-only": s.iconOnly || void 0,
|
|
68
|
+
"data-surface": s.surface,
|
|
69
|
+
"data-loading": s.loading || void 0,
|
|
70
|
+
"data-press-armed": d(w).armed ? "" : void 0,
|
|
71
|
+
"aria-busy": s.loading || void 0
|
|
76
72
|
}, y.value, {
|
|
77
|
-
class:
|
|
78
|
-
variant:
|
|
79
|
-
size:
|
|
80
|
-
iconOnly:
|
|
81
|
-
tone:
|
|
82
|
-
}),
|
|
83
|
-
style:
|
|
84
|
-
onPointerdown:
|
|
85
|
-
onPointerup:
|
|
86
|
-
onPointercancel:
|
|
87
|
-
onPointerleave:
|
|
73
|
+
class: d(e)(d(v)({
|
|
74
|
+
variant: s.variant,
|
|
75
|
+
size: s.size,
|
|
76
|
+
iconOnly: s.iconOnly,
|
|
77
|
+
tone: s.tone
|
|
78
|
+
}), b.value, O.value, C.value, h.class),
|
|
79
|
+
style: D.value,
|
|
80
|
+
onPointerdown: d(w).handlers.onPointerdown,
|
|
81
|
+
onPointerup: d(w).handlers.onPointerup,
|
|
82
|
+
onPointercancel: d(w).handlers.onPointercancel,
|
|
83
|
+
onPointerleave: d(w).handlers.onPointerleave,
|
|
84
|
+
onPointerenter: d(w).handlers.onPointerenter,
|
|
85
|
+
onKeydown: d(w).handlers.onKeydown,
|
|
86
|
+
onKeyup: d(w).handlers.onKeyup,
|
|
87
|
+
onBlur: d(w).handlers.onBlur
|
|
88
88
|
}), {
|
|
89
|
-
default:
|
|
89
|
+
default: f(() => [S.value ? (l(), o("span", g)) : a("", !0), u(t.$slots, "default")]),
|
|
90
90
|
_: 3
|
|
91
91
|
}, 16, [
|
|
92
92
|
"as",
|
|
@@ -96,15 +96,22 @@ var v = {
|
|
|
96
96
|
"data-tone",
|
|
97
97
|
"data-icon-only",
|
|
98
98
|
"data-surface",
|
|
99
|
+
"data-loading",
|
|
100
|
+
"data-press-armed",
|
|
101
|
+
"aria-busy",
|
|
99
102
|
"class",
|
|
100
103
|
"style",
|
|
101
104
|
"onPointerdown",
|
|
102
105
|
"onPointerup",
|
|
103
106
|
"onPointercancel",
|
|
104
|
-
"onPointerleave"
|
|
105
|
-
|
|
107
|
+
"onPointerleave",
|
|
108
|
+
"onPointerenter",
|
|
109
|
+
"onKeydown",
|
|
110
|
+
"onKeyup",
|
|
111
|
+
"onBlur"
|
|
112
|
+
])), [[d(n), E.value]]);
|
|
106
113
|
}
|
|
107
|
-
}),
|
|
114
|
+
}), v = h("btn-pill tap-squish focus-ring whitespace-nowrap text-[length:var(--control-text)] font-medium cursor-pointer [--scale-press:var(--scale-press-btn)] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-disabled [&_svg:not([class*=size-])]:size-(--ui-glyph) [&_svg]:shrink-0 [&_svg]:pointer-events-none", {
|
|
108
115
|
variants: {
|
|
109
116
|
variant: {
|
|
110
117
|
default: "glass-wash btn-glass glass-capsule glass-capsule-hover text-foreground",
|
|
@@ -117,7 +124,7 @@ var v = {
|
|
|
117
124
|
glass: "glass-wash btn-glass glass-capsule glass-capsule-hover text-foreground",
|
|
118
125
|
"glass-wash": "glass-wash btn-glass text-foreground/70 hover:bg-foreground/[0.04] hover:border-(--surface-tint-22) hover:text-foreground active:bg-foreground/[0.08] aria-pressed:bg-foreground/[0.1] aria-pressed:text-foreground",
|
|
119
126
|
ai: "glass-wash btn-glass glass-capsule glass-capsule-hover text-(--accent-ai-ink) [--glass-accent:oklch(0.78_0.14_75)] [--glass-accent-strength:34%]",
|
|
120
|
-
link: "text-primary underline-offset-4 hover:underline active:opacity-80
|
|
127
|
+
link: "text-primary underline-offset-4 hover:underline active:opacity-80 [--scale-press:1]"
|
|
121
128
|
},
|
|
122
129
|
size: {
|
|
123
130
|
xs: "h-(--control-h-xs)",
|
|
@@ -184,4 +191,4 @@ var v = {
|
|
|
184
191
|
}
|
|
185
192
|
});
|
|
186
193
|
//#endregion
|
|
187
|
-
export {
|
|
194
|
+
export { _ as n, v as t };
|
package/dist/button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./button-
|
|
1
|
+
import { n as e, t } from "./button-32mg6xA8.js";
|
|
2
2
|
export { e as Button, t as buttonVariants };
|
package/dist/canvas.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./resolveCanvasColor-
|
|
1
|
+
import { n as e, r as t, t as n } from "./resolveCanvasColor-yarP5bdk.js";
|
|
2
2
|
export { n as resolveCanvasColor, e as useCanvas2D, t as useCanvasLifecycle };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as n } from "./
|
|
2
|
+
import { t } from "./useLiquidPress-BYcwwGQV.js";
|
|
3
|
+
import { t as n } from "./vSpecular-CQFmLNzA.js";
|
|
4
4
|
import { t as r } from "./Surface-BWRfwyn8.js";
|
|
5
5
|
import { t as i } from "./useMotionAxis-DCCXMC-i.js";
|
|
6
6
|
import { t as a } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
@@ -57,7 +57,8 @@ var y = {
|
|
|
57
57
|
"--glass-specular-intensity-rest": "0.04",
|
|
58
58
|
"--glass-specular-intensity-hover": "0.18",
|
|
59
59
|
"--glass-specular-intensity-active": "0.26"
|
|
60
|
-
} : {}), O =
|
|
60
|
+
} : {}), O = t({
|
|
61
|
+
disabled: () => !T.value,
|
|
61
62
|
pressVar: "--card-press-t",
|
|
62
63
|
shrinkDepth: .02,
|
|
63
64
|
maxStretch: 1.03
|
|
@@ -75,8 +76,9 @@ var y = {
|
|
|
75
76
|
...O.pressStyle.value
|
|
76
77
|
} : r;
|
|
77
78
|
});
|
|
78
|
-
return (
|
|
79
|
+
return (t, i) => v((p(), s(r, {
|
|
79
80
|
"data-slot": "card",
|
|
81
|
+
"data-material": "elevated-content",
|
|
80
82
|
tier: a.tier,
|
|
81
83
|
surface: b.value,
|
|
82
84
|
deep: a.deep,
|
|
@@ -85,19 +87,24 @@ var y = {
|
|
|
85
87
|
"data-surface": a.surface,
|
|
86
88
|
"data-grid": a.grid,
|
|
87
89
|
"data-pressable": T.value || void 0,
|
|
90
|
+
"data-press-armed": T.value && h(O).armed ? "" : void 0,
|
|
88
91
|
"data-motion": h(S).dataMotion.value,
|
|
89
92
|
"data-variant": a.variant || void 0,
|
|
90
93
|
"data-selected": a.variant === "selection" && a.selected ? "true" : void 0,
|
|
91
94
|
as: a.as,
|
|
92
95
|
"as-child": a.asChild,
|
|
93
96
|
style: f(j.value),
|
|
94
|
-
onPointerdown:
|
|
95
|
-
onPointerup:
|
|
96
|
-
onPointercancel:
|
|
97
|
-
onPointerleave:
|
|
97
|
+
onPointerdown: h(O).handlers.onPointerdown,
|
|
98
|
+
onPointerup: h(O).handlers.onPointerup,
|
|
99
|
+
onPointercancel: h(O).handlers.onPointercancel,
|
|
100
|
+
onPointerleave: h(O).handlers.onPointerleave,
|
|
101
|
+
onPointerenter: h(O).handlers.onPointerenter,
|
|
102
|
+
onKeydown: h(O).handlers.onKeydown,
|
|
103
|
+
onKeyup: h(O).handlers.onKeyup,
|
|
104
|
+
onBlur: h(O).handlers.onBlur,
|
|
98
105
|
class: d(h(e)("rounded-card text-card-foreground scrollbar-hidden", "[--card-pad-inline:--spacing(6)] [--card-pad-block:calc(var(--card-pad-inline)*1.272)] [--card-pad-section-gap:var(--card-pad-block)] [--card-pad-footer:calc(var(--card-pad-block)/1.618)] [--card-pad-title-gap:calc(var(--card-pad-inline)/2.618)] data-[size=sm]:[--card-pad-inline:--spacing(4)]", E.value && "glass-specular-track", a.surface === "cartoon" && "cartoon-surface", a.grid && "paper-grid", T.value && "glass-press tap-squish", A.value, u.class))
|
|
99
106
|
}, {
|
|
100
|
-
default: _(() => [a.surface === "cartoon" ? (p(), l("span", y)) : c("", !0), m(
|
|
107
|
+
default: _(() => [a.surface === "cartoon" ? (p(), l("span", y)) : c("", !0), m(t.$slots, "default")]),
|
|
101
108
|
_: 3
|
|
102
109
|
}, 8, [
|
|
103
110
|
"tier",
|
|
@@ -108,14 +115,23 @@ var y = {
|
|
|
108
115
|
"data-surface",
|
|
109
116
|
"data-grid",
|
|
110
117
|
"data-pressable",
|
|
118
|
+
"data-press-armed",
|
|
111
119
|
"data-motion",
|
|
112
120
|
"data-variant",
|
|
113
121
|
"data-selected",
|
|
114
122
|
"as",
|
|
115
123
|
"as-child",
|
|
116
124
|
"style",
|
|
125
|
+
"onPointerdown",
|
|
126
|
+
"onPointerup",
|
|
127
|
+
"onPointercancel",
|
|
128
|
+
"onPointerleave",
|
|
129
|
+
"onPointerenter",
|
|
130
|
+
"onKeydown",
|
|
131
|
+
"onKeyup",
|
|
132
|
+
"onBlur",
|
|
117
133
|
"class"
|
|
118
|
-
])), [[h(
|
|
134
|
+
])), [[h(n), E.value]]);
|
|
119
135
|
}
|
|
120
136
|
}), x = /* @__PURE__ */ u({
|
|
121
137
|
__name: "CardHeader",
|
|
@@ -164,6 +180,8 @@ var y = {
|
|
|
164
180
|
specular: e.specular,
|
|
165
181
|
grain: !1,
|
|
166
182
|
tabindex: "0",
|
|
183
|
+
role: "region",
|
|
184
|
+
"aria-label": "Scrollable content",
|
|
167
185
|
"data-slot": "scroll-card",
|
|
168
186
|
style: f(n.value),
|
|
169
187
|
class: d([
|
|
@@ -183,7 +201,7 @@ var y = {
|
|
|
183
201
|
"class"
|
|
184
202
|
]));
|
|
185
203
|
}
|
|
186
|
-
}), [["__scopeId", "data-v-
|
|
204
|
+
}), [["__scopeId", "data-v-5cdd2e43"]]), C = /* @__PURE__ */ a(/* @__PURE__ */ u({
|
|
187
205
|
__name: "ScrollCardHeader",
|
|
188
206
|
props: {
|
|
189
207
|
sticky: { type: Boolean },
|
package/dist/card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./card-16xmzIr3.js";
|
|
2
2
|
export { r as Card, c as CardAction, o as CardContent, n as CardDescription, i as CardFooter, t as CardHeader, e as CardTitle, s as ScrollCard, a as ScrollCardHeader };
|
package/dist/carousel.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type { CarouselApi } from "./components/carousel";
|
|
1
|
+
export * from "./components/carousel";
|
package/dist/carousel.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { n as t } from "./button-
|
|
2
|
+
import { n as t } from "./button-32mg6xA8.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
4
4
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, mergeModels as u, mergeProps as d, normalizeClass as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, renderSlot as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useModel as x, watch as S, withCtx as C } from "vue";
|
|
5
5
|
import { ArrowLeft as w, ArrowRight as T, ChevronDown as E, ChevronLeft as D, ChevronRight as O, ChevronUp as k } from "@lucide/vue";
|
|
6
|
-
import { createInjectionState as A } from "@vueuse/core";
|
|
7
|
-
import
|
|
8
|
-
var [
|
|
9
|
-
let [i, a] =
|
|
6
|
+
import { createInjectionState as A, useMediaQuery as j } from "@vueuse/core";
|
|
7
|
+
import M from "embla-carousel-vue";
|
|
8
|
+
var [N, P] = A(({ opts: e, orientation: t, plugins: n }, r) => {
|
|
9
|
+
let [i, a] = M({
|
|
10
10
|
duration: 30,
|
|
11
11
|
...e,
|
|
12
12
|
axis: t === "horizontal" ? "x" : "y"
|
|
@@ -33,14 +33,14 @@ var [M, N] = A(({ opts: e, orientation: t, plugins: n }, r) => {
|
|
|
33
33
|
orientation: t
|
|
34
34
|
};
|
|
35
35
|
});
|
|
36
|
-
function
|
|
37
|
-
let e =
|
|
36
|
+
function F() {
|
|
37
|
+
let e = P();
|
|
38
38
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
39
39
|
return e;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/components/carousel/Carousel.vue
|
|
43
|
-
var
|
|
43
|
+
var I = /* @__PURE__ */ l({
|
|
44
44
|
__name: "Carousel",
|
|
45
45
|
props: /* @__PURE__ */ u({
|
|
46
46
|
opts: {},
|
|
@@ -59,7 +59,7 @@ var F = /* @__PURE__ */ l({
|
|
|
59
59
|
}),
|
|
60
60
|
emits: /* @__PURE__ */ u(["init-api"], ["update:active"]),
|
|
61
61
|
setup(t, { expose: n, emit: r }) {
|
|
62
|
-
let i = t, a = r, s = x(t, "active"), { canScrollNext: c, canScrollPrev: l, carouselApi: u, carouselRef: d, orientation: p, scrollNext: m, scrollPrev: g } =
|
|
62
|
+
let i = t, a = r, s = x(t, "active"), { canScrollNext: c, canScrollPrev: l, carouselApi: u, carouselRef: d, orientation: p, scrollNext: m, scrollPrev: g } = N(i, a);
|
|
63
63
|
function v(e) {
|
|
64
64
|
let t = e.selectedScrollSnap();
|
|
65
65
|
e.previousScrollSnap() !== t && t !== s.value && (s.value = t);
|
|
@@ -91,6 +91,7 @@ var F = /* @__PURE__ */ l({
|
|
|
91
91
|
class: f(b(e)("relative", i.class)),
|
|
92
92
|
role: "region",
|
|
93
93
|
"aria-roledescription": "carousel",
|
|
94
|
+
"aria-label": "Carousel",
|
|
94
95
|
tabindex: "0",
|
|
95
96
|
onKeydown: y
|
|
96
97
|
}, [_(t.$slots, "default", {
|
|
@@ -103,7 +104,7 @@ var F = /* @__PURE__ */ l({
|
|
|
103
104
|
scrollPrev: b(g)
|
|
104
105
|
})], 34));
|
|
105
106
|
}
|
|
106
|
-
}),
|
|
107
|
+
}), L = .035, R = .3, z = /* @__PURE__ */ n(/* @__PURE__ */ l({
|
|
107
108
|
inheritAttrs: !1,
|
|
108
109
|
__name: "CarouselContent",
|
|
109
110
|
props: {
|
|
@@ -120,26 +121,26 @@ var F = /* @__PURE__ */ l({
|
|
|
120
121
|
] }
|
|
121
122
|
},
|
|
122
123
|
setup(t) {
|
|
123
|
-
let n = t, { carouselRef: r, carouselApi: i, orientation: a } =
|
|
124
|
+
let n = t, { carouselRef: r, carouselApi: i, orientation: a } = F(), c = g(null), l = j("(prefers-reduced-motion: reduce)");
|
|
124
125
|
function u() {
|
|
125
126
|
let e = i.value;
|
|
126
127
|
if (!e) return;
|
|
127
128
|
let t = e.slideNodes();
|
|
128
|
-
if (!n.arrival || l) {
|
|
129
|
+
if (!n.arrival || l.value) {
|
|
129
130
|
for (let e of t) e.style.transform = "", e.style.opacity = "";
|
|
130
131
|
return;
|
|
131
132
|
}
|
|
132
133
|
let r = e.scrollProgress(), a = e.scrollSnapList();
|
|
133
134
|
t.forEach((e, t) => {
|
|
134
135
|
let n = a[t] ?? r, i = Math.min(Math.abs(n - r) * (a.length - 1 || 1), 1);
|
|
135
|
-
e.style.transform = `scale(${(1 -
|
|
136
|
+
e.style.transform = `scale(${(1 - L * i).toFixed(4)})`, e.style.opacity = (1 - R * i).toFixed(4);
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
139
|
let f = null;
|
|
139
140
|
function m(e) {
|
|
140
141
|
!e || f === e || (f = e, e.on("scroll", u), e.on("reInit", u), e.on("init", u), u());
|
|
141
142
|
}
|
|
142
|
-
return S(i, (e) => m(e), { immediate: !0 }), S(() => n.arrival, () => u()), p(() => {
|
|
143
|
+
return S(i, (e) => m(e), { immediate: !0 }), S([() => n.arrival, l], () => u()), p(() => {
|
|
143
144
|
let e = f;
|
|
144
145
|
e && (e.off("scroll", u), e.off("reInit", u), e.off("init", u), f = null);
|
|
145
146
|
}), (t, i) => (h(), o("div", {
|
|
@@ -153,7 +154,7 @@ var F = /* @__PURE__ */ l({
|
|
|
153
154
|
class: b(e)("carousel-track flex", b(a) === "horizontal" ? "-ml-4" : "-mt-4 flex-col", n.class)
|
|
154
155
|
}, t.$attrs), [_(t.$slots, "default", {}, void 0, !0)], 16)], 512));
|
|
155
156
|
}
|
|
156
|
-
}), [["__scopeId", "data-v-
|
|
157
|
+
}), [["__scopeId", "data-v-6f191733"]]), B = /* @__PURE__ */ l({
|
|
157
158
|
__name: "CarouselItem",
|
|
158
159
|
props: { class: { type: [
|
|
159
160
|
Boolean,
|
|
@@ -163,7 +164,7 @@ var F = /* @__PURE__ */ l({
|
|
|
163
164
|
Array
|
|
164
165
|
] } },
|
|
165
166
|
setup(t) {
|
|
166
|
-
let n = t, { orientation: r } =
|
|
167
|
+
let n = t, { orientation: r } = F();
|
|
167
168
|
return (t, i) => (h(), o("div", {
|
|
168
169
|
"data-slot": "carousel-item",
|
|
169
170
|
role: "group",
|
|
@@ -171,7 +172,7 @@ var F = /* @__PURE__ */ l({
|
|
|
171
172
|
class: f(b(e)("min-w-0 shrink-0 grow-0 basis-full", b(r) === "horizontal" ? "pl-4" : "pt-4", n.class))
|
|
172
173
|
}, [_(t.$slots, "default")], 2));
|
|
173
174
|
}
|
|
174
|
-
}),
|
|
175
|
+
}), V = /* @__PURE__ */ l({
|
|
175
176
|
__name: "CarouselNext",
|
|
176
177
|
props: {
|
|
177
178
|
variant: { default: "outline" },
|
|
@@ -185,7 +186,7 @@ var F = /* @__PURE__ */ l({
|
|
|
185
186
|
] }
|
|
186
187
|
},
|
|
187
188
|
setup(n) {
|
|
188
|
-
let r = n, { orientation: a, canScrollNext: o, scrollNext: l } =
|
|
189
|
+
let r = n, { orientation: a, canScrollNext: o, scrollNext: l } = F();
|
|
189
190
|
return (u, d) => (h(), i(b(t), {
|
|
190
191
|
"data-slot": "carousel-next",
|
|
191
192
|
disabled: !b(o),
|
|
@@ -205,11 +206,11 @@ var F = /* @__PURE__ */ l({
|
|
|
205
206
|
"onClick"
|
|
206
207
|
]));
|
|
207
208
|
}
|
|
208
|
-
}),
|
|
209
|
+
}), H = {
|
|
209
210
|
key: 0,
|
|
210
211
|
"data-slot": "carousel-pager-counter",
|
|
211
212
|
class: "glass-pager-ring text-mono-caption tabular-nums"
|
|
212
|
-
},
|
|
213
|
+
}, U = /* @__PURE__ */ l({
|
|
213
214
|
__name: "CarouselPager",
|
|
214
215
|
props: {
|
|
215
216
|
showCounter: {
|
|
@@ -225,7 +226,7 @@ var F = /* @__PURE__ */ l({
|
|
|
225
226
|
] }
|
|
226
227
|
},
|
|
227
228
|
setup(n) {
|
|
228
|
-
let s = n, { carouselApi: l, canScrollNext: u, canScrollPrev: d, orientation: p, scrollNext: _, scrollPrev: x } =
|
|
229
|
+
let s = n, { carouselApi: l, canScrollNext: u, canScrollPrev: d, orientation: p, scrollNext: _, scrollPrev: x } = F(), w = g(0), T = g(0);
|
|
229
230
|
function A() {
|
|
230
231
|
let e = l.value;
|
|
231
232
|
e && (w.value = e.selectedScrollSnap(), T.value = e.scrollSnapList().length);
|
|
@@ -253,7 +254,7 @@ var F = /* @__PURE__ */ l({
|
|
|
253
254
|
"aria-label",
|
|
254
255
|
"onClick"
|
|
255
256
|
]),
|
|
256
|
-
n.showCounter && T.value > 0 ? (h(), o("span",
|
|
257
|
+
n.showCounter && T.value > 0 ? (h(), o("span", H, y(w.value + 1) + " / " + y(T.value), 1)) : a("", !0),
|
|
257
258
|
c(b(t), {
|
|
258
259
|
variant: "ghost",
|
|
259
260
|
iconOnly: "",
|
|
@@ -271,7 +272,7 @@ var F = /* @__PURE__ */ l({
|
|
|
271
272
|
])
|
|
272
273
|
], 2));
|
|
273
274
|
}
|
|
274
|
-
}),
|
|
275
|
+
}), W = /* @__PURE__ */ l({
|
|
275
276
|
__name: "CarouselPrevious",
|
|
276
277
|
props: {
|
|
277
278
|
variant: { default: "outline" },
|
|
@@ -285,7 +286,7 @@ var F = /* @__PURE__ */ l({
|
|
|
285
286
|
] }
|
|
286
287
|
},
|
|
287
288
|
setup(n) {
|
|
288
|
-
let r = n, { orientation: a, canScrollPrev: o, scrollPrev: l } =
|
|
289
|
+
let r = n, { orientation: a, canScrollPrev: o, scrollPrev: l } = F();
|
|
289
290
|
return (u, d) => (h(), i(b(t), {
|
|
290
291
|
"data-slot": "carousel-previous",
|
|
291
292
|
disabled: !b(o),
|
|
@@ -305,76 +306,6 @@ var F = /* @__PURE__ */ l({
|
|
|
305
306
|
"onClick"
|
|
306
307
|
]));
|
|
307
308
|
}
|
|
308
|
-
}), W = {
|
|
309
|
-
key: 0,
|
|
310
|
-
"data-slot": "glass-carousel-pager-counter",
|
|
311
|
-
class: "rounded-pill border border-border bg-card px-3 py-1 text-mono-caption tabular-nums shadow-cartoon-sm"
|
|
312
|
-
}, G = /* @__PURE__ */ l({
|
|
313
|
-
__name: "GlassCarouselPager",
|
|
314
|
-
props: {
|
|
315
|
-
index: {},
|
|
316
|
-
total: {},
|
|
317
|
-
orientation: { default: "horizontal" },
|
|
318
|
-
showCounter: {
|
|
319
|
-
type: Boolean,
|
|
320
|
-
default: !0
|
|
321
|
-
},
|
|
322
|
-
loop: {
|
|
323
|
-
type: Boolean,
|
|
324
|
-
default: !1
|
|
325
|
-
},
|
|
326
|
-
class: { type: [
|
|
327
|
-
Boolean,
|
|
328
|
-
null,
|
|
329
|
-
String,
|
|
330
|
-
Object,
|
|
331
|
-
Array
|
|
332
|
-
] }
|
|
333
|
-
},
|
|
334
|
-
emits: [
|
|
335
|
-
"prev",
|
|
336
|
-
"next",
|
|
337
|
-
"select"
|
|
338
|
-
],
|
|
339
|
-
setup(n, { emit: s }) {
|
|
340
|
-
let l = n, u = s, d = r(() => l.loop ? l.total > 1 : l.index > 0), p = r(() => l.loop ? l.total > 1 : l.index < l.total - 1);
|
|
341
|
-
function m() {
|
|
342
|
-
d.value && (l.loop ? u("select", (l.index - 1 + l.total) % l.total) : (u("prev"), u("select", Math.max(0, l.index - 1))));
|
|
343
|
-
}
|
|
344
|
-
function g() {
|
|
345
|
-
p.value && (l.loop ? u("select", (l.index + 1) % l.total) : (u("next"), u("select", Math.min(l.total - 1, l.index + 1))));
|
|
346
|
-
}
|
|
347
|
-
let x = r(() => l.orientation === "vertical" ? k : D), S = r(() => l.orientation === "vertical" ? E : O);
|
|
348
|
-
return (r, s) => (h(), o("div", {
|
|
349
|
-
"data-slot": "glass-carousel-pager",
|
|
350
|
-
class: f(b(e)("inline-flex items-center gap-2", n.orientation === "vertical" && "flex-col", "max-md:flex-wrap max-md:justify-center max-md:gap-2", l.class))
|
|
351
|
-
}, [
|
|
352
|
-
c(b(t), {
|
|
353
|
-
variant: "outline",
|
|
354
|
-
iconOnly: "",
|
|
355
|
-
disabled: !d.value,
|
|
356
|
-
"aria-label": n.orientation === "vertical" ? "Previous slide (up)" : "Previous slide",
|
|
357
|
-
"data-slot": "glass-carousel-pager-prev",
|
|
358
|
-
onClick: m
|
|
359
|
-
}, {
|
|
360
|
-
default: C(() => [(h(), i(v(x.value), { class: "size-4" }))]),
|
|
361
|
-
_: 1
|
|
362
|
-
}, 8, ["disabled", "aria-label"]),
|
|
363
|
-
n.showCounter && n.total > 0 ? (h(), o("span", W, y(n.index + 1) + " / " + y(n.total), 1)) : a("", !0),
|
|
364
|
-
c(b(t), {
|
|
365
|
-
variant: "outline",
|
|
366
|
-
iconOnly: "",
|
|
367
|
-
disabled: !p.value,
|
|
368
|
-
"aria-label": n.orientation === "vertical" ? "Next slide (down)" : "Next slide",
|
|
369
|
-
"data-slot": "glass-carousel-pager-next",
|
|
370
|
-
onClick: g
|
|
371
|
-
}, {
|
|
372
|
-
default: C(() => [(h(), i(v(S.value), { class: "size-4" }))]),
|
|
373
|
-
_: 1
|
|
374
|
-
}, 8, ["disabled", "aria-label"]),
|
|
375
|
-
_(r.$slots, "trailing")
|
|
376
|
-
], 2));
|
|
377
|
-
}
|
|
378
309
|
});
|
|
379
310
|
//#endregion
|
|
380
|
-
export {
|
|
311
|
+
export { I as Carousel, z as CarouselContent, B as CarouselItem, V as CarouselNext, U as CarouselPager, W as CarouselPrevious, F as useCarousel };
|
package/dist/chip.d.ts
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
// @mkbabb/glass-ui/chip — the ONE folded chip (BI.W-CHIP-FOLD).
|
|
2
|
-
//
|
|
3
|
-
// The value.js-QUARANTINED leaf of the chip family: <Chip>'s tonal ink solve rides a
|
|
4
|
-
// dynamic `import('./accent-tone-solve')` boundary INSIDE `useAccentTone` (the sync
|
|
5
|
-
// value.js-free shell), so a plain-boolean toggle (a `var()` / unset tone) stays
|
|
6
|
-
// value.js-free — but a concrete `#hex`/`oklch(…)` tone loads value.js. So <Chip>
|
|
7
|
-
// ships as its OWN subpath leaf and is NOT on the value.js-FREE root barrel (the
|
|
8
|
-
// SCC-trap discipline; the /border-progress + /easing precedent — a value.js-bearing
|
|
9
|
-
// component carves OFF the value.js-free root). A consumer imports here.
|
|
10
1
|
export * from "./components/chip";
|
package/dist/chip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { t } from "./useAccentTone-
|
|
2
|
+
import { t } from "./useAccentTone-C-p6WdPe.js";
|
|
3
3
|
import { computed as n, createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, withCtx as l } from "vue";
|
|
4
4
|
import { Toggle as u, useForwardPropsEmits as d } from "reka-ui";
|
|
5
5
|
import { cva as f } from "class-variance-authority";
|
package/dist/collapsible.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./
|
|
1
|
+
import { n as e, r as t, t as n } from "./collapsible-bPzS1aQk.js";
|
|
2
2
|
export { t as Collapsible, n as CollapsibleContent, e as CollapsibleTrigger };
|
package/dist/color-swatch.js
CHANGED
|
@@ -36,6 +36,7 @@ var m = ["value"], h = {
|
|
|
36
36
|
style: l({ backgroundColor: g.value })
|
|
37
37
|
}, [i("input", s({
|
|
38
38
|
type: "color",
|
|
39
|
+
"aria-label": "Choose color",
|
|
39
40
|
value: g.value
|
|
40
41
|
}, t.$attrs, {
|
|
41
42
|
class: "color-swatch__input absolute inset-0 h-full w-full cursor-pointer appearance-none border-0 bg-transparent p-0 opacity-0",
|