@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
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { t as e } from "./createCanvasLifecycle-hsFkQVdl.js";
|
|
2
|
+
import { a as t, i as n, o as r, r as i } from "./rendererStatus-C2-zC2Q-.js";
|
|
3
|
+
//#region src/composables/glass/webgl/shaders/procedural-color.glsl.ts
|
|
4
|
+
var a = "\nfloat srgbToLinearCh(float c) {\n return c <= 0.04045 ? c / 12.92 : pow((c + 0.055) / 1.055, 2.4);\n}\nvec3 srgbToLinear(vec3 c) {\n return vec3(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\n\nfloat linearToSrgbCh(float c) {\n return c <= 0.0031308 ? c * 12.92 : 1.055 * pow(c, 1.0 / 2.4) - 0.055;\n}\nvec3 linearToSrgb(vec3 c) {\n return vec3(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}", o = "const mat2 FBM_ROT = mat2(0.8, 0.6, -0.6, 0.8);", s = "\n// value.js LINEAR_SRGB_TO_LMS (constants.ts), row-major; written here as GLSL\n// columns (= the transpose) so mat3 * vec3 evaluates the row-major M·v.\nconst mat3 LINEAR_SRGB_TO_LMS = mat3(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\n\n// value.js srgbToOKLab's INLINE LMS→OKLab coefficients (gamut.ts lines 295-297 —\n// these differ at the ~1e-9 digit from LMS_TO_OKLAB_MATRIX; use the inline ones to\n// mirror the exact value.js path), row-major → GLSL columns.\nconst mat3 LMS_TO_OKLAB = mat3(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\n\n// value.js OKLAB_TO_LMS_COEFF (constants.ts), row-major → GLSL columns. Rows:\n// l = [1, 0.3963377774, 0.2158037573], m = [1, -0.1055613458, -0.0638541728],\n// s = [1, -0.0894841775, -1.2914855480].\nconst mat3 OKLAB_TO_LMS = mat3(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\n\n// value.js LMS_TO_LINEAR_SRGB (constants.ts), row-major → GLSL columns.\nconst mat3 LMS_TO_LINEAR_SRGB = mat3(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\n// Gamma sRGB → raw OKLab (L, a, b). Mirrors value.js srgbToOKLab.\nvec3 srgbToOklab(vec3 c) {\n vec3 lin = srgbToLinear(c);\n vec3 lms = LINEAR_SRGB_TO_LMS * lin;\n vec3 lmsCbrt = sign(lms) * pow(abs(lms), vec3(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\n\n// Raw OKLab (L, a, b) → linear sRGB. Mirrors value.js oklabToLinearSRGB.\nvec3 oklabToLinearSrgb(vec3 lab) {\n vec3 lms_ = OKLAB_TO_LMS * lab;\n vec3 lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\n\n// OKLab → OKLCh: H in RADIANS. Mirrors value.js rawOklabToOklch (which returns\n// degrees; we stay in radians and only fold to [0, 2pi)).\nvec3 oklabToOklch(vec3 lab) {\n float C = length(lab.yz);\n float H = atan(lab.z, lab.y);\n if (H < 0.0) H += 2.0 * PI;\n return vec3(lab.x, C, H);\n}\n\n// OKLCh (H radians) → OKLab. Mirrors value.js rawOklchToOklab.\nvec3 oklchToOklab(vec3 lch) {\n return vec3(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}", c = "\n// value.js interpolateHue in the NORMALIZED-TURNS domain (h_rad/TAU → turns, the\n// exact .5/+1.0 branch per method, fract() wrap, *TAU back). A radians-native port\n// (PI thresholds / +TAU wrap) diverges 180° at the antipode. methods: 0 shorter,\n// 1 longer, 2 increasing, 3 decreasing.\nfloat interpolateHueTurns(float h0, float h1, float t, int method) {\n float TAU = 2.0 * PI;\n float a = h0 / TAU;\n float b = h1 / TAU;\n float i = b - a;\n if (method == 0) { // shorter\n if (i > 0.5) a += 1.0; else if (i < -0.5) b += 1.0;\n } else if (method == 1) { // longer\n if (i > 0.0 && i < 0.5) a += 1.0; else if (i > -0.5 && i <= 0.0) b += 1.0;\n } else if (method == 2) { // increasing\n if (i < 0.0) b += 1.0;\n } else { // decreasing\n if (i > 0.0) a += 1.0;\n }\n float r = a + t * (b - a);\n r = fract(r); // (r % 1 + 1) % 1 — fract is non-negative in GLSL\n return r * TAU; // back to radians\n}\n\n// Linear-sRGB endpoint pair → OKLab-rectangular interpolation → linear sRGB. Holds\n// chroma across the ramp (no grey midpoint). The default/shorter ramp path.\nvec3 mixPaletteOklab(vec3 linA, vec3 linB, float t) {\n vec3 labA = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linA) * pow(abs(LINEAR_SRGB_TO_LMS * linA), vec3(1.0 / 3.0)));\n vec3 labB = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linB) * pow(abs(LINEAR_SRGB_TO_LMS * linB), vec3(1.0 / 3.0)));\n vec3 lab = mix(labA, labB, t);\n return oklabToLinearSrgb(lab);\n}\n\n// Linear-sRGB endpoint pair → OKLCh interpolation along the huePath arc → linear\n// sRGB. L and C lerp; H walks the chosen arc. The deliberate-rainbow path.\nvec3 mixPaletteOklchArc(vec3 linA, vec3 linB, float t, int method) {\n vec3 labA = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linA) * pow(abs(LINEAR_SRGB_TO_LMS * linA), vec3(1.0 / 3.0)));\n vec3 labB = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linB) * pow(abs(LINEAR_SRGB_TO_LMS * linB), vec3(1.0 / 3.0)));\n vec3 lchA = oklabToOklch(labA);\n vec3 lchB = oklabToOklch(labB);\n float L = mix(lchA.x, lchB.x, t);\n float C = mix(lchA.y, lchB.y, t);\n float H = interpolateHueTurns(lchA.z, lchB.z, t, method);\n return oklabToLinearSrgb(oklchToOklab(vec3(L, C, H)));\n}\n\n// The ramp dispatcher aurora's samplePalette splices. tRaw is the raw inter-stop\n// parameter [0,1]; the smoothstep ease + the huePath branch live HERE so the ramp is\n// one source. increasing(2)/decreasing(3) take the OKLCh hue-arc (rainbow sweep);\n// every other method takes the OKLab-rectangular straight line (no hue detour).\nvec3 samplePaletteRamp(vec3 a, vec3 b, float tRaw, int huePath) {\n float t = smoothstep(0.0, 1.0, tRaw);\n if (huePath == 2 || huePath == 3) {\n return mixPaletteOklchArc(a, b, t, huePath);\n }\n return mixPaletteOklab(a, b, t);\n}", l = "\n// Jarzynski PCG2D — uvec2 → uvec2 permuted-congruential hash (JCGT 2020).\nuvec2 pcg2d(uvec2 v) {\n v = v * 1664525u + 1013904223u;\n v.x += v.y * 1664525u;\n v.y += v.x * 1664525u;\n v = v ^ (v >> 16u);\n v.x += v.y * 1664525u;\n v.y += v.x * 1664525u;\n v = v ^ (v >> 16u);\n return v;\n}\n\n// Float→[0,1) scalar hash: bit-reinterpret the lattice coordinate, pcg2d it, take the\n// high word back to [0,1). Integer-bit — no sin() periodicity, no float-fract lattice.\nfloat pcgHash2(vec2 p) {\n uvec2 u = floatBitsToUint(p);\n return float(pcg2d(u).x) * (1.0 / 4294967296.0);\n}\n\n// Integer-lattice gradient: pcg2d the integer cell, fold the hash to an angle, return\n// the unit gradient vector. The gradient basis (not a scalar value) is what makes the\n// noise zero at the nodes (no value-noise plateaus).\nvec2 pcgGrad2(ivec2 cell) {\n uvec2 h = pcg2d(uvec2(cell));\n float ang = float(h.x) * (1.0 / 4294967296.0) * 6.28318530717958647692;\n return vec2(cos(ang), sin(ang));\n}\n\n// 2D SIMPLEX gradient noise (Gustavson skew). The skew transform F2/G2 maps the square\n// lattice onto a simplex (triangular) grid — no axis-aligned directional bias. Each of\n// the three simplex corners contributes grad·offset shaped by a radial (0.5 - r²)⁴\n// falloff. Output is ~[-1, 1]; callers remap to [0,1] via 0.5 + 0.5*gnoise.\nfloat gnoise(vec2 p) {\n const float F2 = 0.36602540378443864676; // (sqrt(3) - 1) / 2\n const float G2 = 0.21132486540518711775; // (3 - sqrt(3)) / 6\n float s = (p.x + p.y) * F2;\n vec2 i = floor(p + s);\n float tt = (i.x + i.y) * G2;\n vec2 x0 = p - (i - tt); // offset from the simplex origin corner\n ivec2 i1 = (x0.x > x0.y) ? ivec2(1, 0) : ivec2(0, 1);\n vec2 x1 = x0 - vec2(i1) + G2;\n vec2 x2 = x0 - 1.0 + 2.0 * G2;\n ivec2 ii = ivec2(i);\n float n = 0.0;\n float t0 = 0.5 - dot(x0, x0);\n if (t0 > 0.0) { t0 *= t0; n += t0 * t0 * dot(pcgGrad2(ii), x0); }\n float t1 = 0.5 - dot(x1, x1);\n if (t1 > 0.0) { t1 *= t1; n += t1 * t1 * dot(pcgGrad2(ii + i1), x1); }\n float t2 = 0.5 - dot(x2, x2);\n if (t2 > 0.0) { t2 *= t2; n += t2 * t2 * dot(pcgGrad2(ii + ivec2(1, 1)), x2); }\n return 70.0 * n; // normalize to ~[-1, 1]\n}", u = 1.5;
|
|
5
|
+
function d(e, t, n) {
|
|
6
|
+
return Math.max(t, Math.min(n, e));
|
|
7
|
+
}
|
|
8
|
+
function f() {
|
|
9
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1;
|
|
10
|
+
return Math.min(e, 2);
|
|
11
|
+
}
|
|
12
|
+
function p() {
|
|
13
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1;
|
|
14
|
+
return Math.min(e, u);
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/composables/glass/webgl/useWebGLCanvas.ts
|
|
18
|
+
function m() {
|
|
19
|
+
if (typeof document > "u") return null;
|
|
20
|
+
let e = null;
|
|
21
|
+
try {
|
|
22
|
+
if (e = document.createElement("canvas").getContext("webgl2"), !e) return null;
|
|
23
|
+
let t = e.getExtension("WEBGL_debug_renderer_info");
|
|
24
|
+
return t ? String(e.getParameter(t.UNMASKED_RENDERER_WEBGL) ?? "").toLowerCase() : null;
|
|
25
|
+
} catch {
|
|
26
|
+
return null;
|
|
27
|
+
} finally {
|
|
28
|
+
e?.getExtension("WEBGL_lose_context")?.loseContext();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function h(e) {
|
|
32
|
+
try {
|
|
33
|
+
return e.getContext("webgl2") != null;
|
|
34
|
+
} catch {
|
|
35
|
+
return !1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function g(t, n) {
|
|
39
|
+
let { setup: r, contextAttrs: i } = n, a = null, o = null;
|
|
40
|
+
function s() {
|
|
41
|
+
let e = t.getContext("webgl2", i ?? void 0);
|
|
42
|
+
if (!e) throw Error("[useWebGLCanvas] WebGL2 unavailable");
|
|
43
|
+
return a = e, o = r(a), {
|
|
44
|
+
frame: o.frame,
|
|
45
|
+
shouldContinue: o.shouldContinue,
|
|
46
|
+
time: o.time,
|
|
47
|
+
teardown: () => {
|
|
48
|
+
o?.teardown?.(), a?.getExtension("WEBGL_lose_context")?.loseContext(), a = null, o = null;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
let c = null, l = null;
|
|
53
|
+
function u(e) {
|
|
54
|
+
e.preventDefault(), a = null, o = null, l?.();
|
|
55
|
+
}
|
|
56
|
+
let d = e({
|
|
57
|
+
canvas: t,
|
|
58
|
+
mode: n.mode,
|
|
59
|
+
respectReducedMotion: n.respectReducedMotion,
|
|
60
|
+
dprPolicy: n.dprPolicy,
|
|
61
|
+
composeIntersectionPark: n.composeIntersectionPark,
|
|
62
|
+
intersectionRootMargin: n.intersectionRootMargin,
|
|
63
|
+
revealBloom: n.revealBloom,
|
|
64
|
+
buildContext: s,
|
|
65
|
+
resize: (e) => o?.resize(e),
|
|
66
|
+
bindContextEvents: (e, n) => {
|
|
67
|
+
c = e, l = n, t.addEventListener("webglcontextlost", u, !1), t.addEventListener("webglcontextrestored", c, !1);
|
|
68
|
+
},
|
|
69
|
+
unbindContextEvents: () => {
|
|
70
|
+
t.removeEventListener("webglcontextlost", u, !1), c && t.removeEventListener("webglcontextrestored", c, !1);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
return {
|
|
74
|
+
arm: d.arm,
|
|
75
|
+
presize: d.presize,
|
|
76
|
+
suspend: d.suspend,
|
|
77
|
+
resume: d.resume,
|
|
78
|
+
wake: d.wake,
|
|
79
|
+
renderAt: d.renderAt,
|
|
80
|
+
dispose: d.dispose,
|
|
81
|
+
get gl() {
|
|
82
|
+
return a;
|
|
83
|
+
},
|
|
84
|
+
get reducedMotion() {
|
|
85
|
+
return d.reducedMotion;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/composables/glass/webgpu/webgpuDevice.ts
|
|
91
|
+
var _ = class extends Error {
|
|
92
|
+
kind;
|
|
93
|
+
constructor(e, t, n) {
|
|
94
|
+
super(t), this.name = "WebGPUInitError", this.kind = e, n !== void 0 && (this.cause = n);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
function v(e) {
|
|
98
|
+
try {
|
|
99
|
+
let t = e.info;
|
|
100
|
+
if (t?.isFallbackAdapter || e.isFallbackAdapter) return !0;
|
|
101
|
+
if (!t) return !1;
|
|
102
|
+
let n = [
|
|
103
|
+
t.vendor,
|
|
104
|
+
t.architecture,
|
|
105
|
+
t.description
|
|
106
|
+
].filter((e) => typeof e == "string").join(" ").toLowerCase();
|
|
107
|
+
return n.includes("swiftshader") || n.includes("llvmpipe") || n.includes("software") || n.includes("basic render") || n.includes("microsoft basic");
|
|
108
|
+
} catch {
|
|
109
|
+
return !1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
var y = 6e3;
|
|
113
|
+
function b(e, t) {
|
|
114
|
+
if (typeof setTimeout > "u") return e;
|
|
115
|
+
let n, r = new Promise((e, r) => {
|
|
116
|
+
n = setTimeout(() => {
|
|
117
|
+
r(new _("acquire-timeout", `[useWebGPUCanvas] ${t}() did not settle within ${y}ms — falling to the WebGL2 net`));
|
|
118
|
+
}, y);
|
|
119
|
+
});
|
|
120
|
+
return Promise.race([e, r]).finally(() => clearTimeout(n));
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/composables/glass/webgpu/useWebGPUCanvas.ts
|
|
124
|
+
function x() {
|
|
125
|
+
return typeof navigator < "u" && "gpu" in navigator && navigator.gpu != null;
|
|
126
|
+
}
|
|
127
|
+
var S = null;
|
|
128
|
+
function C(e, t) {
|
|
129
|
+
if (S) return S;
|
|
130
|
+
if (!x()) return Promise.reject(new _("no-navigator-gpu", "[useWebGPUCanvas] navigator.gpu unavailable"));
|
|
131
|
+
let r = (async () => {
|
|
132
|
+
let i = await b(navigator.gpu.requestAdapter(e), "requestAdapter");
|
|
133
|
+
if (!i) throw new _("no-adapter", "[useWebGPUCanvas] no GPU adapter");
|
|
134
|
+
if (v(i)) throw new _("software-adapter", "[useWebGPUCanvas] software WebGPU adapter (SwiftShader/llvmpipe/fallback) — falling to the WebGL2 net");
|
|
135
|
+
let a;
|
|
136
|
+
try {
|
|
137
|
+
a = await b(i.requestDevice(t), "requestDevice");
|
|
138
|
+
} catch (e) {
|
|
139
|
+
throw e instanceof _ ? e : new _("device-request", "[useWebGPUCanvas] requestDevice rejected", e);
|
|
140
|
+
}
|
|
141
|
+
return a.lost.then(() => {
|
|
142
|
+
S === r && (S = null);
|
|
143
|
+
}), {
|
|
144
|
+
device: a,
|
|
145
|
+
adapterClass: n(i.info)
|
|
146
|
+
};
|
|
147
|
+
})();
|
|
148
|
+
return r.catch(() => {
|
|
149
|
+
S === r && (S = null);
|
|
150
|
+
}), S = r, r;
|
|
151
|
+
}
|
|
152
|
+
function w(t, n) {
|
|
153
|
+
let { setup: r } = n, i = n.alphaMode ?? "premultiplied", a = null, o = null, s = "bgra8unorm", c = null, l = !1, u = null, d = "Acquiring adapter", f = null, p = null, m = null;
|
|
154
|
+
function h() {
|
|
155
|
+
if (!a) throw Error("[useWebGPUCanvas] device not acquired");
|
|
156
|
+
let e = t.getContext("webgpu");
|
|
157
|
+
if (!e) throw Error("[useWebGPUCanvas] WebGPU context unavailable");
|
|
158
|
+
return o = e, s = navigator.gpu.getPreferredCanvasFormat(), e.configure({
|
|
159
|
+
device: a,
|
|
160
|
+
format: s,
|
|
161
|
+
alphaMode: i
|
|
162
|
+
}), a.pushErrorScope("validation"), a.addEventListener("uncapturederror", g), c = r(a, o, s), v(), m = a.popErrorScope(), m.then((e) => {
|
|
163
|
+
e && n.onInitError?.(e);
|
|
164
|
+
}), {
|
|
165
|
+
frame: (e) => c?.frame(e),
|
|
166
|
+
shouldContinue: () => c?.shouldContinue() ?? !1,
|
|
167
|
+
time: (e) => c?.time?.(e) ?? e,
|
|
168
|
+
teardown: () => {
|
|
169
|
+
c?.teardown?.(), a?.removeEventListener("uncapturederror", g), o = null, c = null, m = null;
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function g(e) {
|
|
174
|
+
let t = e.error;
|
|
175
|
+
n.onInitError?.(t);
|
|
176
|
+
}
|
|
177
|
+
function v() {
|
|
178
|
+
try {
|
|
179
|
+
c?.resize(), c?.frame(0);
|
|
180
|
+
} catch {}
|
|
181
|
+
}
|
|
182
|
+
let y = e({
|
|
183
|
+
canvas: t,
|
|
184
|
+
mode: n.mode,
|
|
185
|
+
respectReducedMotion: n.respectReducedMotion,
|
|
186
|
+
dprPolicy: n.dprPolicy,
|
|
187
|
+
composeIntersectionPark: n.composeIntersectionPark,
|
|
188
|
+
intersectionRootMargin: n.intersectionRootMargin,
|
|
189
|
+
revealBloom: n.revealBloom,
|
|
190
|
+
buildContext: h,
|
|
191
|
+
resize: (e) => c?.resize(e),
|
|
192
|
+
bindContextEvents: (e, t) => {
|
|
193
|
+
f = e, p = t;
|
|
194
|
+
},
|
|
195
|
+
unbindContextEvents: () => {
|
|
196
|
+
f = null, p = null;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
async function b() {
|
|
200
|
+
if (!x()) throw new _("no-navigator-gpu", "[useWebGPUCanvas] navigator.gpu unavailable");
|
|
201
|
+
let e = await C(n.adapterOptions, n.deviceDescriptor);
|
|
202
|
+
a = e.device, d = e.adapterClass, S(e.device);
|
|
203
|
+
}
|
|
204
|
+
function S(e) {
|
|
205
|
+
e.lost.then((e) => {
|
|
206
|
+
l || (p?.(), a = null, e.reason !== "destroyed" && b().then(() => {
|
|
207
|
+
l || f?.();
|
|
208
|
+
}).catch((e) => n.onInitError?.(e)));
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
async function w() {
|
|
212
|
+
if (!l) {
|
|
213
|
+
if (u) return u;
|
|
214
|
+
if (a) {
|
|
215
|
+
y.arm();
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
return y.presize(), u = (async () => {
|
|
219
|
+
try {
|
|
220
|
+
if (await b(), l) return;
|
|
221
|
+
if (y.arm(), m) {
|
|
222
|
+
let e = n.mode !== "capture";
|
|
223
|
+
e && y.suspend("manual");
|
|
224
|
+
let t = await m;
|
|
225
|
+
if (l) return;
|
|
226
|
+
if (t) throw new _("pipeline-validation", `[useWebGPUCanvas] pipeline failed validation (${t.message}) — falling to the WebGL2 net`);
|
|
227
|
+
e && y.resume("manual");
|
|
228
|
+
}
|
|
229
|
+
} catch (e) {
|
|
230
|
+
throw e instanceof _ || n.onInitError?.(e), e;
|
|
231
|
+
} finally {
|
|
232
|
+
u = null;
|
|
233
|
+
}
|
|
234
|
+
})(), u;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
armAsync: w,
|
|
239
|
+
arm: () => {
|
|
240
|
+
a && y.arm();
|
|
241
|
+
},
|
|
242
|
+
presize: y.presize,
|
|
243
|
+
suspend: y.suspend,
|
|
244
|
+
resume: y.resume,
|
|
245
|
+
wake: y.wake,
|
|
246
|
+
renderAt: y.renderAt,
|
|
247
|
+
dispose: () => {
|
|
248
|
+
l = !0, y.dispose(), a = null;
|
|
249
|
+
},
|
|
250
|
+
get device() {
|
|
251
|
+
return a;
|
|
252
|
+
},
|
|
253
|
+
get adapterClass() {
|
|
254
|
+
return d;
|
|
255
|
+
},
|
|
256
|
+
get reducedMotion() {
|
|
257
|
+
return y.reducedMotion;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/composables/glass/webgpu/useGpuSubstrate.ts
|
|
263
|
+
function T(e, t) {
|
|
264
|
+
return g(e, {
|
|
265
|
+
mode: t.mode,
|
|
266
|
+
respectReducedMotion: t.respectReducedMotion,
|
|
267
|
+
contextAttrs: t.contextAttrs,
|
|
268
|
+
dprPolicy: t.dprPolicy,
|
|
269
|
+
composeIntersectionPark: t.composeIntersectionPark,
|
|
270
|
+
intersectionRootMargin: t.intersectionRootMargin,
|
|
271
|
+
revealBloom: t.revealBloom,
|
|
272
|
+
setup: t.setupGL
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
function E(e) {
|
|
276
|
+
let t = e.parentNode;
|
|
277
|
+
if (!t || typeof document > "u" || h(e)) return e;
|
|
278
|
+
let n = e.cloneNode(!1);
|
|
279
|
+
return t.replaceChild(n, e), n;
|
|
280
|
+
}
|
|
281
|
+
function D(e, n) {
|
|
282
|
+
let a = x() && n.setupWGPU != null, o = null, s = null, c = a ? "webgpu" : "webgl2", l = !1, u = e, d = (e) => n.onStatus?.(e);
|
|
283
|
+
d(t(c)), a ? o = w(e, {
|
|
284
|
+
mode: n.mode,
|
|
285
|
+
respectReducedMotion: n.respectReducedMotion,
|
|
286
|
+
dprPolicy: n.dprPolicy,
|
|
287
|
+
composeIntersectionPark: n.composeIntersectionPark,
|
|
288
|
+
intersectionRootMargin: n.intersectionRootMargin,
|
|
289
|
+
revealBloom: n.revealBloom,
|
|
290
|
+
setup: n.setupWGPU,
|
|
291
|
+
alphaMode: n.alphaMode,
|
|
292
|
+
adapterOptions: n.adapterOptions,
|
|
293
|
+
deviceDescriptor: n.deviceDescriptor,
|
|
294
|
+
onInitError: n.onInitError
|
|
295
|
+
}) : s = T(e, n);
|
|
296
|
+
function f(e) {
|
|
297
|
+
o?.dispose(), o = null, c = "webgl2", d(t("webgl2")), u = E(u), n.onBackendFallback?.({
|
|
298
|
+
from: "webgpu",
|
|
299
|
+
to: "webgl2",
|
|
300
|
+
error: e
|
|
301
|
+
});
|
|
302
|
+
try {
|
|
303
|
+
s = T(u, n), s.arm(), d({
|
|
304
|
+
phase: "ready",
|
|
305
|
+
engine: "webgl2",
|
|
306
|
+
adapter: i(s.gl)
|
|
307
|
+
});
|
|
308
|
+
} catch (e) {
|
|
309
|
+
throw s = null, d(r("webgl2", "WebGL 2 context", e)), n.onInitError?.(e), e;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
async function p() {
|
|
313
|
+
if (!l) {
|
|
314
|
+
if (m(), o) try {
|
|
315
|
+
await o.armAsync(), d({
|
|
316
|
+
phase: "ready",
|
|
317
|
+
engine: "webgpu",
|
|
318
|
+
adapter: o.adapterClass
|
|
319
|
+
});
|
|
320
|
+
return;
|
|
321
|
+
} catch (e) {
|
|
322
|
+
if (l) return;
|
|
323
|
+
if (e instanceof _ && e.kind !== "pipeline-validation") {
|
|
324
|
+
f(e);
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
throw d(r("webgpu", o.adapterClass, e)), e;
|
|
328
|
+
}
|
|
329
|
+
try {
|
|
330
|
+
s?.arm(), d({
|
|
331
|
+
phase: "ready",
|
|
332
|
+
engine: "webgl2",
|
|
333
|
+
adapter: i(s?.gl ?? null)
|
|
334
|
+
});
|
|
335
|
+
} catch (e) {
|
|
336
|
+
throw d(r("webgl2", "WebGL 2 context", e)), n.onInitError?.(e), e;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
function m() {
|
|
341
|
+
l || (o?.presize(), s?.presize());
|
|
342
|
+
}
|
|
343
|
+
function h() {
|
|
344
|
+
l || (m(), o?.arm(), s?.arm());
|
|
345
|
+
}
|
|
346
|
+
return {
|
|
347
|
+
get backend() {
|
|
348
|
+
return c;
|
|
349
|
+
},
|
|
350
|
+
armAsync: p,
|
|
351
|
+
arm: h,
|
|
352
|
+
presize: m,
|
|
353
|
+
suspend: (e) => {
|
|
354
|
+
o?.suspend(e), s?.suspend(e);
|
|
355
|
+
},
|
|
356
|
+
resume: (e) => {
|
|
357
|
+
o?.resume(e), s?.resume(e);
|
|
358
|
+
},
|
|
359
|
+
wake: () => {
|
|
360
|
+
o?.wake(), s?.wake();
|
|
361
|
+
},
|
|
362
|
+
renderAt: (e) => {
|
|
363
|
+
o?.renderAt(e), s?.renderAt(e);
|
|
364
|
+
},
|
|
365
|
+
dispose: () => {
|
|
366
|
+
l = !0, o?.dispose(), s?.dispose(), o = null, s = null;
|
|
367
|
+
},
|
|
368
|
+
get reducedMotion() {
|
|
369
|
+
return (o ?? s)?.reducedMotion ?? !1;
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region src/components/aurora/constants/shaders/procedural-color.wgsl.ts
|
|
375
|
+
var O = "\nfn srgbToLinearCh(c: f32) -> f32 {\n if (c <= 0.04045) { return c / 12.92; }\n return pow((c + 0.055) / 1.055, 2.4);\n}\nfn srgbToLinear(c: vec3<f32>) -> vec3<f32> {\n return vec3<f32>(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\n\nfn linearToSrgbCh(c: f32) -> f32 {\n if (c <= 0.0031308) { return c * 12.92; }\n return 1.055 * pow(c, 1.0 / 2.4) - 0.055;\n}\nfn linearToSrgb(c: vec3<f32>) -> vec3<f32> {\n return vec3<f32>(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}", k = "const FBM_ROT: mat2x2<f32> = mat2x2<f32>(0.8, 0.6, -0.6, 0.8);", A = "\n// value.js LINEAR_SRGB_TO_LMS, row-major → WGSL columns (= the transpose).\nconst LINEAR_SRGB_TO_LMS: mat3x3<f32> = mat3x3<f32>(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\n\n// value.js srgbToOKLab's INLINE LMS→OKLab coefficients, row-major → WGSL columns.\nconst LMS_TO_OKLAB: mat3x3<f32> = mat3x3<f32>(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\n\n// value.js OKLAB_TO_LMS_COEFF, row-major → WGSL columns.\nconst OKLAB_TO_LMS: mat3x3<f32> = mat3x3<f32>(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\n\n// value.js LMS_TO_LINEAR_SRGB, row-major → WGSL columns.\nconst LMS_TO_LINEAR_SRGB: mat3x3<f32> = mat3x3<f32>(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\nfn cbrt3(v: vec3<f32>) -> vec3<f32> {\n return sign(v) * pow(abs(v), vec3<f32>(1.0 / 3.0));\n}\n\n// Gamma sRGB → raw OKLab (L, a, b). Mirrors value.js srgbToOKLab.\nfn srgbToOklab(c: vec3<f32>) -> vec3<f32> {\n let lin = srgbToLinear(c);\n let lms = LINEAR_SRGB_TO_LMS * lin;\n return LMS_TO_OKLAB * cbrt3(lms);\n}\n\n// Raw OKLab (L, a, b) → linear sRGB. Mirrors value.js oklabToLinearSRGB.\nfn oklabToLinearSrgb(lab: vec3<f32>) -> vec3<f32> {\n let lms_ = OKLAB_TO_LMS * lab;\n let lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\n\n// OKLab → OKLCh: H in RADIANS, folded to [0, 2pi). Mirrors value.js rawOklabToOklch.\nfn oklabToOklch(lab: vec3<f32>) -> vec3<f32> {\n let C = length(lab.yz);\n var H = atan2(lab.z, lab.y);\n if (H < 0.0) { H = H + 2.0 * PI; }\n return vec3<f32>(lab.x, C, H);\n}\n\n// OKLCh (H radians) → OKLab. Mirrors value.js rawOklchToOklab.\nfn oklchToOklab(lch: vec3<f32>) -> vec3<f32> {\n return vec3<f32>(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}", j = "\n// value.js interpolateHue in the NORMALIZED-TURNS domain. methods: 0 shorter,\n// 1 longer, 2 increasing, 3 decreasing.\nfn interpolateHueTurns(h0: f32, h1: f32, t: f32, method: i32) -> f32 {\n let TAU = 2.0 * PI;\n var a = h0 / TAU;\n var b = h1 / TAU;\n let i = b - a;\n if (method == 0) { // shorter\n if (i > 0.5) { a = a + 1.0; } else if (i < -0.5) { b = b + 1.0; }\n } else if (method == 1) { // longer\n if (i > 0.0 && i < 0.5) { a = a + 1.0; } else if (i > -0.5 && i <= 0.0) { b = b + 1.0; }\n } else if (method == 2) { // increasing\n if (i < 0.0) { b = b + 1.0; }\n } else { // decreasing\n if (i > 0.0) { a = a + 1.0; }\n }\n var r = a + t * (b - a);\n r = fract(r); // fract is non-negative in WGSL\n return r * TAU; // back to radians\n}\n\n// Linear-sRGB endpoint pair → OKLab-rectangular interpolation → linear sRGB.\nfn mixPaletteOklab(linA: vec3<f32>, linB: vec3<f32>, t: f32) -> vec3<f32> {\n let labA = LMS_TO_OKLAB * cbrt3(LINEAR_SRGB_TO_LMS * linA);\n let labB = LMS_TO_OKLAB * cbrt3(LINEAR_SRGB_TO_LMS * linB);\n let lab = mix(labA, labB, t);\n return oklabToLinearSrgb(lab);\n}\n\n// Linear-sRGB endpoint pair → OKLCh hue-arc interpolation → linear sRGB.\nfn mixPaletteOklchArc(linA: vec3<f32>, linB: vec3<f32>, t: f32, method: i32) -> vec3<f32> {\n let labA = LMS_TO_OKLAB * cbrt3(LINEAR_SRGB_TO_LMS * linA);\n let labB = LMS_TO_OKLAB * cbrt3(LINEAR_SRGB_TO_LMS * linB);\n let lchA = oklabToOklch(labA);\n let lchB = oklabToOklch(labB);\n let L = mix(lchA.x, lchB.x, t);\n let C = mix(lchA.y, lchB.y, t);\n let H = interpolateHueTurns(lchA.z, lchB.z, t, method);\n return oklabToLinearSrgb(oklchToOklab(vec3<f32>(L, C, H)));\n}\n\n// The ramp dispatcher (the samplePalette splices it). tRaw is the raw inter-stop\n// parameter [0,1]; the smoothstep ease + the huePath branch live here so the ramp is\n// one source. increasing(2)/decreasing(3) take the OKLCh hue-arc; every other method\n// takes the OKLab-rectangular straight line.\nfn samplePaletteRamp(a: vec3<f32>, b: vec3<f32>, tRaw: f32, huePath: i32) -> vec3<f32> {\n let t = smoothstep(0.0, 1.0, tRaw);\n if (huePath == 2 || huePath == 3) {\n return mixPaletteOklchArc(a, b, t, huePath);\n }\n return mixPaletteOklab(a, b, t);\n}";
|
|
376
|
+
//#endregion
|
|
377
|
+
export { D as a, p as c, a as d, s as f, j as i, f as l, l as m, O as n, m as o, c as p, A as r, d as s, k as t, o as u };
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
3
|
+
import { n, t as r } from "./valueDomain-B8L04u3U.js";
|
|
4
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeStyle as f, openBlock as p, renderList as m, unref as h, watchEffect as g, withCtx as _ } from "vue";
|
|
5
|
+
import { ProgressIndicator as v, ProgressRoot as y } from "reka-ui";
|
|
6
|
+
//#region src/components/progress/ProgressDefault.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var b = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "progress-value-marks",
|
|
10
|
+
"aria-hidden": "true"
|
|
11
|
+
}, x = /* @__PURE__ */ u({
|
|
12
|
+
__name: "ProgressDefault",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
max: {},
|
|
16
|
+
getValueLabel: { type: Function },
|
|
17
|
+
getValueText: { type: Function },
|
|
18
|
+
asChild: { type: Boolean },
|
|
19
|
+
as: {},
|
|
20
|
+
class: { type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
] },
|
|
27
|
+
marks: {}
|
|
28
|
+
},
|
|
29
|
+
setup(t) {
|
|
30
|
+
let u = t, g = a(() => u.max ?? 100), x = a(() => r(u.modelValue, 0, g.value)), S = a(() => n(u.marks, 0, g.value)), C = a(() => ({ "--progress-value-percent": `${x.value * 100}%` })), w = a(() => {
|
|
31
|
+
let { class: e, marks: t, ...n } = u;
|
|
32
|
+
return n;
|
|
33
|
+
});
|
|
34
|
+
return (t, n) => (p(), o(h(y), d({ "data-slot": "progress" }, w.value, {
|
|
35
|
+
class: h(e)("relative h-4 w-full overflow-hidden rounded-pill bg-[var(--progress-track,var(--progress-track-on-glass))]", u.class),
|
|
36
|
+
style: C.value
|
|
37
|
+
}), {
|
|
38
|
+
default: _(() => [S.value.length ? (p(), c("span", b, [(p(!0), c(i, null, m(S.value, (e) => (p(), c("span", {
|
|
39
|
+
key: e.value,
|
|
40
|
+
class: "progress-value-mark",
|
|
41
|
+
style: f({ "--value-mark-position": `${e.position * 100}%` })
|
|
42
|
+
}, null, 4))), 128))])) : s("", !0), l(h(v), { class: "progress-value-fill h-full w-full flex-1 rounded-pill [background:var(--progress-fill,var(--primary))] transition-transform" })]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 16, ["class", "style"]));
|
|
45
|
+
}
|
|
46
|
+
}), S = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "progress-value-marks",
|
|
49
|
+
"aria-hidden": "true"
|
|
50
|
+
}, C = /* @__PURE__ */ t(/* @__PURE__ */ u({
|
|
51
|
+
__name: "ProgressGradient",
|
|
52
|
+
props: {
|
|
53
|
+
modelValue: {},
|
|
54
|
+
max: {},
|
|
55
|
+
getValueLabel: { type: Function },
|
|
56
|
+
getValueText: { type: Function },
|
|
57
|
+
asChild: { type: Boolean },
|
|
58
|
+
as: {},
|
|
59
|
+
class: { type: [
|
|
60
|
+
Boolean,
|
|
61
|
+
null,
|
|
62
|
+
String,
|
|
63
|
+
Object,
|
|
64
|
+
Array
|
|
65
|
+
] },
|
|
66
|
+
marks: {},
|
|
67
|
+
indeterminate: { type: Boolean }
|
|
68
|
+
},
|
|
69
|
+
setup(t) {
|
|
70
|
+
let u = t, g = a(() => {
|
|
71
|
+
let { class: e, marks: t, indeterminate: n, ...r } = u;
|
|
72
|
+
return r;
|
|
73
|
+
}), b = a(() => u.max ?? 100), x = a(() => r(u.modelValue, 0, b.value)), C = a(() => n(u.marks, 0, b.value)), w = a(() => {
|
|
74
|
+
if (u.indeterminate) return "idle";
|
|
75
|
+
let e = x.value;
|
|
76
|
+
return e <= 0 ? "idle" : e >= 1 ? "complete" : e < .05 ? "loading" : "progressing";
|
|
77
|
+
}), T = a(() => {
|
|
78
|
+
let e = Math.min(1, Math.max(0, (x.value - .85) / .15));
|
|
79
|
+
return {
|
|
80
|
+
"--progress-value-percent": `${x.value * 100}%`,
|
|
81
|
+
"--progress-crescendo": `${u.indeterminate ? 0 : e * 100}%`
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
return (n, r) => (p(), o(h(y), d({ "data-slot": "progress" }, g.value, {
|
|
85
|
+
"model-value": u.indeterminate ? null : u.modelValue,
|
|
86
|
+
class: h(e)("relative h-4 w-full overflow-hidden rounded-pill bg-[var(--progress-track,var(--progress-track-on-glass))] progress-gradient-rail", u.class),
|
|
87
|
+
"data-lifecycle": w.value,
|
|
88
|
+
"data-indeterminate": t.indeterminate || void 0,
|
|
89
|
+
style: T.value
|
|
90
|
+
}), {
|
|
91
|
+
default: _(() => [C.value.length ? (p(), c("span", S, [(p(!0), c(i, null, m(C.value, (e) => (p(), c("span", {
|
|
92
|
+
key: e.value,
|
|
93
|
+
class: "progress-value-mark",
|
|
94
|
+
style: f({ "--value-mark-position": `${e.position * 100}%` })
|
|
95
|
+
}, null, 4))), 128))])) : s("", !0), l(h(v), { class: "progress-value-fill h-full w-full flex-1 rounded-pill [background:var(--progress-fill,var(--primary))] transition-transform" })]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 16, [
|
|
98
|
+
"model-value",
|
|
99
|
+
"class",
|
|
100
|
+
"data-lifecycle",
|
|
101
|
+
"data-indeterminate",
|
|
102
|
+
"style"
|
|
103
|
+
]));
|
|
104
|
+
}
|
|
105
|
+
}), [["__scopeId", "data-v-c8e02283"]]), w = {
|
|
106
|
+
key: 0,
|
|
107
|
+
class: "progress-value-marks",
|
|
108
|
+
"aria-hidden": "true"
|
|
109
|
+
}, T = /* @__PURE__ */ t(/* @__PURE__ */ u({
|
|
110
|
+
__name: "ProgressLiquid",
|
|
111
|
+
props: {
|
|
112
|
+
modelValue: {},
|
|
113
|
+
max: {},
|
|
114
|
+
getValueLabel: { type: Function },
|
|
115
|
+
getValueText: { type: Function },
|
|
116
|
+
asChild: { type: Boolean },
|
|
117
|
+
as: {},
|
|
118
|
+
class: { type: [
|
|
119
|
+
Boolean,
|
|
120
|
+
null,
|
|
121
|
+
String,
|
|
122
|
+
Object,
|
|
123
|
+
Array
|
|
124
|
+
] },
|
|
125
|
+
marks: {}
|
|
126
|
+
},
|
|
127
|
+
setup(t) {
|
|
128
|
+
let u = t, g = a(() => u.max ?? 100), b = a(() => r(u.modelValue, 0, g.value)), x = a(() => n(u.marks, 0, g.value)), S = a(() => ({ "--progress-value-percent": `${b.value * 100}%` })), C = a(() => {
|
|
129
|
+
let { class: e, marks: t, ...n } = u;
|
|
130
|
+
return n;
|
|
131
|
+
});
|
|
132
|
+
return (t, n) => (p(), o(h(y), d({ "data-slot": "progress" }, C.value, {
|
|
133
|
+
class: h(e)("relative h-4 w-full overflow-hidden rounded-pill bg-[var(--progress-track,var(--progress-track-on-glass))]", u.class),
|
|
134
|
+
style: S.value
|
|
135
|
+
}), {
|
|
136
|
+
default: _(() => [x.value.length ? (p(), c("span", w, [(p(!0), c(i, null, m(x.value, (e) => (p(), c("span", {
|
|
137
|
+
key: e.value,
|
|
138
|
+
class: "progress-value-mark",
|
|
139
|
+
style: f({ "--value-mark-position": `${e.position * 100}%` })
|
|
140
|
+
}, null, 4))), 128))])) : s("", !0), l(h(v), { class: "glass-liquid-fill progress-liquid-fill progress-value-fill h-full w-full flex-1 transition-transform" })]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 16, ["class", "style"]));
|
|
143
|
+
}
|
|
144
|
+
}), [["__scopeId", "data-v-9fc9bcde"]]), E = /* @__PURE__ */ u({
|
|
145
|
+
__name: "Progress",
|
|
146
|
+
props: {
|
|
147
|
+
modelValue: { default: 0 },
|
|
148
|
+
max: {},
|
|
149
|
+
getValueLabel: {},
|
|
150
|
+
getValueText: {},
|
|
151
|
+
asChild: { type: Boolean },
|
|
152
|
+
as: {},
|
|
153
|
+
class: { type: [
|
|
154
|
+
Boolean,
|
|
155
|
+
null,
|
|
156
|
+
String,
|
|
157
|
+
Object,
|
|
158
|
+
Array
|
|
159
|
+
] },
|
|
160
|
+
variant: { default: "default" },
|
|
161
|
+
marks: { default: () => [] },
|
|
162
|
+
indeterminate: {
|
|
163
|
+
type: Boolean,
|
|
164
|
+
default: !1
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
setup(e) {
|
|
168
|
+
let t = e, n = a(() => {
|
|
169
|
+
let { class: e, variant: n, marks: r, indeterminate: i, ...a } = t;
|
|
170
|
+
return a;
|
|
171
|
+
});
|
|
172
|
+
return g(() => {
|
|
173
|
+
t.indeterminate && t.marks.length && console.error("[glass-ui] Progress: `marks` require determinate progress.");
|
|
174
|
+
}), (e, r) => t.variant === "gradient" ? (p(), o(C, d({ key: 0 }, n.value, {
|
|
175
|
+
indeterminate: t.indeterminate,
|
|
176
|
+
marks: t.marks,
|
|
177
|
+
class: t.class
|
|
178
|
+
}), null, 16, [
|
|
179
|
+
"indeterminate",
|
|
180
|
+
"marks",
|
|
181
|
+
"class"
|
|
182
|
+
])) : t.variant === "liquid" ? (p(), o(T, d({ key: 1 }, n.value, {
|
|
183
|
+
marks: t.marks,
|
|
184
|
+
class: t.class
|
|
185
|
+
}), null, 16, ["marks", "class"])) : (p(), o(x, d({ key: 2 }, n.value, {
|
|
186
|
+
marks: t.marks,
|
|
187
|
+
class: t.class
|
|
188
|
+
}), null, 16, ["marks", "class"]));
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
export { E as t };
|
package/dist/progress.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { t as e } from "./progress-C-HHuFZy.js";
|
|
2
|
+
export { e as Progress };
|
package/dist/pulse.js
CHANGED
|
@@ -41,6 +41,8 @@ var f = {
|
|
|
41
41
|
"aria-hidden": "true"
|
|
42
42
|
}, null, 6)) : (l(), a("div", {
|
|
43
43
|
key: 1,
|
|
44
|
+
role: "status",
|
|
45
|
+
"aria-label": "Loading",
|
|
44
46
|
class: s(d(e)("inline-flex items-center", t.variant === "dots" && "gap-1", o.class)),
|
|
45
47
|
style: c({ "--pulse-duration": m.value })
|
|
46
48
|
}, [t.variant === "dots" ? (l(!0), a(n, { key: 0 }, u(p.value, (e) => (l(), a("span", {
|
|
@@ -49,6 +51,6 @@ var f = {
|
|
|
49
51
|
style: c({ "--pulse-index": e })
|
|
50
52
|
}, null, 4))), 128)) : t.variant === "ring" ? (l(), a("span", f)) : i("", !0)], 6));
|
|
51
53
|
}
|
|
52
|
-
}), [["__scopeId", "data-v-
|
|
54
|
+
}), [["__scopeId", "data-v-50dacf34"]]);
|
|
53
55
|
//#endregion
|
|
54
56
|
export { p as Pulse };
|
package/dist/reactive.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import { t as e } from "./useTimer-
|
|
2
|
-
import { t } from "
|
|
3
|
-
|
|
1
|
+
import { t as e } from "./useTimer-D8koDvJS.js";
|
|
2
|
+
import { getCurrentScope as t, onScopeDispose as n, readonly as r, ref as i } from "vue";
|
|
3
|
+
//#region src/composables/reactive/useInterval.ts
|
|
4
|
+
function a(e, a = 0, o = {}) {
|
|
5
|
+
let s = i(!1), c = a, l = null, u = () => {
|
|
6
|
+
l !== null && (clearInterval(l), l = null, s.value = !1);
|
|
7
|
+
}, d = (t = c) => {
|
|
8
|
+
c = t, u(), s.value = !0, l = setInterval(e, c);
|
|
9
|
+
};
|
|
10
|
+
return t() && n(u), o.immediate !== !1 && d(a), {
|
|
11
|
+
isActive: r(s),
|
|
12
|
+
start: d,
|
|
13
|
+
restart: d,
|
|
14
|
+
stop: u,
|
|
15
|
+
clear: u
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { a as useInterval, e as useTimer };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region src/composables/glass/webgpu/rendererStatus.ts
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
phase: "initializing",
|
|
4
|
+
engine: e,
|
|
5
|
+
adapter: e === "webgpu" ? "Acquiring adapter" : "Acquiring context"
|
|
6
|
+
}), t = () => ({
|
|
7
|
+
phase: "ready",
|
|
8
|
+
engine: "canvas2d",
|
|
9
|
+
adapter: "CPU raster"
|
|
10
|
+
}), n = () => ({
|
|
11
|
+
phase: "ready",
|
|
12
|
+
engine: "css",
|
|
13
|
+
adapter: "Static paint"
|
|
14
|
+
});
|
|
15
|
+
function r(e) {
|
|
16
|
+
return e && [
|
|
17
|
+
e.vendor,
|
|
18
|
+
e.architecture,
|
|
19
|
+
e.description
|
|
20
|
+
].filter((e) => !!e?.trim()).filter((e, t, n) => n.indexOf(e) === t).join(" · ") || "Hardware adapter";
|
|
21
|
+
}
|
|
22
|
+
function i(e) {
|
|
23
|
+
if (!e) return "WebGL 2 context";
|
|
24
|
+
try {
|
|
25
|
+
let t = e.getExtension("WEBGL_debug_renderer_info"), n = t ? e.getParameter(t.UNMASKED_RENDERER_WEBGL) : e.getParameter(e.RENDERER);
|
|
26
|
+
return String(n || "WebGL 2 context");
|
|
27
|
+
} catch {
|
|
28
|
+
return "WebGL 2 context";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function a(e, t, n) {
|
|
32
|
+
return {
|
|
33
|
+
phase: "error",
|
|
34
|
+
engine: e,
|
|
35
|
+
adapter: t,
|
|
36
|
+
error: n instanceof Error ? n.message : String(n)
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { e as a, r as i, n, a as o, i as r, t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./createCanvasLifecycle-
|
|
1
|
+
import { t as e } from "./createCanvasLifecycle-hsFkQVdl.js";
|
|
2
2
|
import { getCurrentScope as t, onScopeDispose as n, toValue as r } from "vue";
|
|
3
3
|
//#region src/composables/glass/canvas2d/useCanvas2D.ts
|
|
4
4
|
var i = "200px";
|