@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,421 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { n as t } from "./useSurfaceAxis-DudiZVOR.js";
|
|
3
|
-
import { t as n } from "./menuItemVariants-DbO-Fr74.js";
|
|
4
|
-
import { i as r } from "./dockContext-d-WpJN2Z.js";
|
|
5
|
-
import { computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, inject as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, provide as g, renderSlot as _, resolveDynamicComponent as v, unref as y, withCtx as b } from "vue";
|
|
6
|
-
import { ContextMenuCheckboxItem as x, ContextMenuContent as ee, ContextMenuGroup as te, ContextMenuItem as ne, ContextMenuItemIndicator as re, ContextMenuLabel as S, ContextMenuPortal as C, ContextMenuRadioGroup as w, ContextMenuRadioItem as T, ContextMenuRoot as E, ContextMenuSeparator as D, ContextMenuSub as O, ContextMenuSubContent as k, ContextMenuSubTrigger as A, ContextMenuTrigger as j, DropdownMenuCheckboxItem as M, DropdownMenuContent as N, DropdownMenuGroup as P, DropdownMenuItem as F, DropdownMenuItemIndicator as I, DropdownMenuLabel as L, DropdownMenuPortal as R, DropdownMenuPortal as z, DropdownMenuRadioGroup as B, DropdownMenuRadioItem as V, DropdownMenuRoot as H, DropdownMenuSeparator as U, DropdownMenuSub as W, DropdownMenuSubContent as G, DropdownMenuSubTrigger as ie, DropdownMenuTrigger as K, useForwardProps as q, useForwardPropsEmits as J } from "reka-ui";
|
|
7
|
-
import { Check as Y, ChevronRight as ae } from "@lucide/vue";
|
|
8
|
-
//#region src/components/dropdown-menu/useMenuTrigger.ts
|
|
9
|
-
var X = Symbol("glass-menu-trigger");
|
|
10
|
-
function oe(e) {
|
|
11
|
-
g(X, e);
|
|
12
|
-
}
|
|
13
|
-
var se = i(() => "click");
|
|
14
|
-
function Z() {
|
|
15
|
-
return d(X, se);
|
|
16
|
-
}
|
|
17
|
-
var ce = {
|
|
18
|
-
Root: [H, E],
|
|
19
|
-
Trigger: [K, j],
|
|
20
|
-
Portal: [R, C],
|
|
21
|
-
Content: [N, ee],
|
|
22
|
-
Item: [F, ne],
|
|
23
|
-
CheckboxItem: [M, x],
|
|
24
|
-
RadioItem: [V, T],
|
|
25
|
-
RadioGroup: [B, w],
|
|
26
|
-
Group: [P, te],
|
|
27
|
-
Separator: [U, D],
|
|
28
|
-
Label: [L, S],
|
|
29
|
-
Sub: [W, O],
|
|
30
|
-
SubTrigger: [ie, A],
|
|
31
|
-
SubContent: [G, k],
|
|
32
|
-
ItemIndicator: [I, re]
|
|
33
|
-
};
|
|
34
|
-
function Q(e) {
|
|
35
|
-
let t = Z();
|
|
36
|
-
return i(() => ce[e][+(t.value === "context")]);
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/components/dropdown-menu/DropdownMenu.vue
|
|
40
|
-
var le = /* @__PURE__ */ l({
|
|
41
|
-
__name: "DropdownMenu",
|
|
42
|
-
props: {
|
|
43
|
-
defaultOpen: { type: Boolean },
|
|
44
|
-
open: { type: Boolean },
|
|
45
|
-
dir: {},
|
|
46
|
-
modal: { type: Boolean },
|
|
47
|
-
trigger: { default: "click" }
|
|
48
|
-
},
|
|
49
|
-
emits: ["update:open"],
|
|
50
|
-
setup(e, { emit: t }) {
|
|
51
|
-
let n = e, r = t;
|
|
52
|
-
oe(i(() => n.trigger));
|
|
53
|
-
let o = Q("Root"), s = i(() => n.trigger === "context" ? {
|
|
54
|
-
dir: n.dir,
|
|
55
|
-
modal: n.modal
|
|
56
|
-
} : {
|
|
57
|
-
open: n.open,
|
|
58
|
-
defaultOpen: n.defaultOpen,
|
|
59
|
-
dir: n.dir,
|
|
60
|
-
modal: n.modal
|
|
61
|
-
});
|
|
62
|
-
return (t, n) => (h(), a(v(y(o)), f({
|
|
63
|
-
"data-slot": "dropdown-menu",
|
|
64
|
-
"data-menu-trigger": e.trigger
|
|
65
|
-
}, s.value, { "onUpdate:open": n[0] ||= (e) => r("update:open", e) }), {
|
|
66
|
-
default: b(() => [_(t.$slots, "default")]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 16, ["data-menu-trigger"]));
|
|
69
|
-
}
|
|
70
|
-
}), ue = /* @__PURE__ */ l({
|
|
71
|
-
__name: "DropdownMenuTrigger",
|
|
72
|
-
props: {
|
|
73
|
-
disabled: { type: Boolean },
|
|
74
|
-
asChild: { type: Boolean },
|
|
75
|
-
as: {}
|
|
76
|
-
},
|
|
77
|
-
setup(e) {
|
|
78
|
-
let t = q(e), n = Q("Trigger");
|
|
79
|
-
return (e, r) => (h(), a(v(y(n)), f({ class: "outline-none" }, y(t)), {
|
|
80
|
-
default: b(() => [_(e.$slots, "default")]),
|
|
81
|
-
_: 3
|
|
82
|
-
}, 16));
|
|
83
|
-
}
|
|
84
|
-
}), de = /* @__PURE__ */ l({
|
|
85
|
-
__name: "DropdownMenuContent",
|
|
86
|
-
props: {
|
|
87
|
-
forceMount: { type: Boolean },
|
|
88
|
-
loop: { type: Boolean },
|
|
89
|
-
side: {},
|
|
90
|
-
sideOffset: { default: 4 },
|
|
91
|
-
sideFlip: { type: Boolean },
|
|
92
|
-
align: { default: "start" },
|
|
93
|
-
alignOffset: {},
|
|
94
|
-
alignFlip: { type: Boolean },
|
|
95
|
-
avoidCollisions: { type: Boolean },
|
|
96
|
-
collisionBoundary: {},
|
|
97
|
-
collisionPadding: {},
|
|
98
|
-
arrowPadding: {},
|
|
99
|
-
hideShiftedArrow: { type: Boolean },
|
|
100
|
-
sticky: {},
|
|
101
|
-
hideWhenDetached: { type: Boolean },
|
|
102
|
-
positionStrategy: {},
|
|
103
|
-
updatePositionStrategy: {},
|
|
104
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
105
|
-
prioritizePosition: { type: Boolean },
|
|
106
|
-
reference: {},
|
|
107
|
-
asChild: { type: Boolean },
|
|
108
|
-
as: {},
|
|
109
|
-
class: { type: [
|
|
110
|
-
Boolean,
|
|
111
|
-
null,
|
|
112
|
-
String,
|
|
113
|
-
Object,
|
|
114
|
-
Array
|
|
115
|
-
] },
|
|
116
|
-
surface: { default: "glass" }
|
|
117
|
-
},
|
|
118
|
-
emits: [
|
|
119
|
-
"escapeKeyDown",
|
|
120
|
-
"pointerDownOutside",
|
|
121
|
-
"focusOutside",
|
|
122
|
-
"interactOutside",
|
|
123
|
-
"closeAutoFocus"
|
|
124
|
-
],
|
|
125
|
-
setup(n, { emit: o }) {
|
|
126
|
-
let s = n, c = o, l = Z(), u = Q("Content"), d = Q("Portal"), p = J(i(() => {
|
|
127
|
-
let { class: e, surface: t, ...n } = s;
|
|
128
|
-
if (l.value === "context") {
|
|
129
|
-
let { side: e, sideOffset: t, align: r, arrowPadding: i, updatePositionStrategy: a, ...o } = n;
|
|
130
|
-
return o;
|
|
131
|
-
}
|
|
132
|
-
return n;
|
|
133
|
-
}), c), m = r();
|
|
134
|
-
return (n, r) => (h(), a(v(y(d)), null, {
|
|
135
|
-
default: b(() => [(h(), a(v(y(u)), f(y(p), {
|
|
136
|
-
"data-glass-dock-portal": y(m)?.id ? "" : void 0,
|
|
137
|
-
"data-glass-dock-owner": y(m)?.id,
|
|
138
|
-
"data-surface": s.surface,
|
|
139
|
-
"data-reveal": "menu",
|
|
140
|
-
class: y(e)("dropdown-menu-content z-popover min-w-(--overlay-min-width) max-h-(--overlay-max-block) overflow-y-auto rounded-panel border text-popover-foreground glass-reveal", y(t)(s.surface, "floating"), "[--overlay-pad-inline:--spacing(1)] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] px-(--overlay-pad-inline) py-(--overlay-pad-block)", s.class)
|
|
141
|
-
}), {
|
|
142
|
-
default: b(() => [_(n.$slots, "default")]),
|
|
143
|
-
_: 3
|
|
144
|
-
}, 16, [
|
|
145
|
-
"data-glass-dock-portal",
|
|
146
|
-
"data-glass-dock-owner",
|
|
147
|
-
"data-surface",
|
|
148
|
-
"class"
|
|
149
|
-
]))]),
|
|
150
|
-
_: 3
|
|
151
|
-
}));
|
|
152
|
-
}
|
|
153
|
-
}), fe = /* @__PURE__ */ l({
|
|
154
|
-
__name: "DropdownMenuGroup",
|
|
155
|
-
props: {
|
|
156
|
-
asChild: { type: Boolean },
|
|
157
|
-
as: {}
|
|
158
|
-
},
|
|
159
|
-
setup(e) {
|
|
160
|
-
let t = e, n = Q("Group");
|
|
161
|
-
return (e, r) => (h(), a(v(y(n)), m(u(t)), {
|
|
162
|
-
default: b(() => [_(e.$slots, "default")]),
|
|
163
|
-
_: 3
|
|
164
|
-
}, 16));
|
|
165
|
-
}
|
|
166
|
-
}), pe = /* @__PURE__ */ l({
|
|
167
|
-
__name: "DropdownMenuRadioGroup",
|
|
168
|
-
props: {
|
|
169
|
-
modelValue: {},
|
|
170
|
-
asChild: { type: Boolean },
|
|
171
|
-
as: {}
|
|
172
|
-
},
|
|
173
|
-
emits: ["update:modelValue"],
|
|
174
|
-
setup(e, { emit: t }) {
|
|
175
|
-
let n = J(e, t), r = Q("RadioGroup");
|
|
176
|
-
return (e, t) => (h(), a(v(y(r)), m(u(y(n))), {
|
|
177
|
-
default: b(() => [_(e.$slots, "default")]),
|
|
178
|
-
_: 3
|
|
179
|
-
}, 16));
|
|
180
|
-
}
|
|
181
|
-
}), $ = /* @__PURE__ */ l({
|
|
182
|
-
__name: "DropdownMenuItem",
|
|
183
|
-
props: {
|
|
184
|
-
disabled: { type: Boolean },
|
|
185
|
-
textValue: {},
|
|
186
|
-
asChild: { type: Boolean },
|
|
187
|
-
as: {},
|
|
188
|
-
class: { type: [
|
|
189
|
-
Boolean,
|
|
190
|
-
null,
|
|
191
|
-
String,
|
|
192
|
-
Object,
|
|
193
|
-
Array
|
|
194
|
-
] },
|
|
195
|
-
inset: { type: Boolean }
|
|
196
|
-
},
|
|
197
|
-
setup(t) {
|
|
198
|
-
let r = t, o = q(i(() => {
|
|
199
|
-
let { class: e, ...t } = r;
|
|
200
|
-
return t;
|
|
201
|
-
})), s = Q("Item");
|
|
202
|
-
return (i, c) => (h(), a(v(y(s)), f(y(o), { class: y(e)(y(n)({ indicator: t.inset ? "start-wide" : "none" }), r.class) }), {
|
|
203
|
-
default: b(() => [_(i.$slots, "default")]),
|
|
204
|
-
_: 3
|
|
205
|
-
}, 16, ["class"]));
|
|
206
|
-
}
|
|
207
|
-
}), me = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, he = /* @__PURE__ */ l({
|
|
208
|
-
__name: "DropdownMenuCheckboxItem",
|
|
209
|
-
props: {
|
|
210
|
-
modelValue: { type: [Boolean, String] },
|
|
211
|
-
disabled: { type: Boolean },
|
|
212
|
-
textValue: {},
|
|
213
|
-
asChild: { type: Boolean },
|
|
214
|
-
as: {},
|
|
215
|
-
class: { type: [
|
|
216
|
-
Boolean,
|
|
217
|
-
null,
|
|
218
|
-
String,
|
|
219
|
-
Object,
|
|
220
|
-
Array
|
|
221
|
-
] }
|
|
222
|
-
},
|
|
223
|
-
emits: ["select", "update:modelValue"],
|
|
224
|
-
setup(t, { emit: r }) {
|
|
225
|
-
let o = t, l = r, u = J(i(() => {
|
|
226
|
-
let { class: e, ...t } = o;
|
|
227
|
-
return t;
|
|
228
|
-
}), l), d = Q("CheckboxItem"), p = Q("ItemIndicator");
|
|
229
|
-
return (t, r) => (h(), a(v(y(d)), f(y(u), { class: y(e)(y(n)({ indicator: "start-wide" }), o.class) }), {
|
|
230
|
-
default: b(() => [s("span", me, [(h(), a(v(y(p)), null, {
|
|
231
|
-
default: b(() => [c(y(Y), { class: "w-4 h-4" })]),
|
|
232
|
-
_: 1
|
|
233
|
-
}))]), _(t.$slots, "default")]),
|
|
234
|
-
_: 3
|
|
235
|
-
}, 16, ["class"]));
|
|
236
|
-
}
|
|
237
|
-
}), ge = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, _e = /* @__PURE__ */ l({
|
|
238
|
-
__name: "DropdownMenuRadioItem",
|
|
239
|
-
props: {
|
|
240
|
-
value: {},
|
|
241
|
-
disabled: { type: Boolean },
|
|
242
|
-
textValue: {},
|
|
243
|
-
asChild: { type: Boolean },
|
|
244
|
-
as: {},
|
|
245
|
-
class: { type: [
|
|
246
|
-
Boolean,
|
|
247
|
-
null,
|
|
248
|
-
String,
|
|
249
|
-
Object,
|
|
250
|
-
Array
|
|
251
|
-
] }
|
|
252
|
-
},
|
|
253
|
-
emits: ["select"],
|
|
254
|
-
setup(t, { emit: r }) {
|
|
255
|
-
let o = t, c = r, l = J(i(() => {
|
|
256
|
-
let { class: e, ...t } = o;
|
|
257
|
-
return t;
|
|
258
|
-
}), c), u = Q("RadioItem"), d = Q("ItemIndicator");
|
|
259
|
-
return (t, r) => (h(), a(v(y(u)), f(y(l), { class: y(e)(y(n)({ indicator: "start" }), o.class) }), {
|
|
260
|
-
default: b(() => [s("span", ge, [(h(), a(v(y(d)), null, {
|
|
261
|
-
default: b(() => [...r[0] ||= [s("span", { class: "inline-block w-2 h-2 rounded-pill bg-current" }, null, -1)]]),
|
|
262
|
-
_: 1
|
|
263
|
-
}))]), _(t.$slots, "default")]),
|
|
264
|
-
_: 3
|
|
265
|
-
}, 16, ["class"]));
|
|
266
|
-
}
|
|
267
|
-
}), ve = /* @__PURE__ */ l({
|
|
268
|
-
__name: "DropdownMenuShortcut",
|
|
269
|
-
props: { class: { type: [
|
|
270
|
-
Boolean,
|
|
271
|
-
null,
|
|
272
|
-
String,
|
|
273
|
-
Object,
|
|
274
|
-
Array
|
|
275
|
-
] } },
|
|
276
|
-
setup(t) {
|
|
277
|
-
let n = t;
|
|
278
|
-
return (t, r) => (h(), o("span", { class: p(y(e)("ml-auto text-dropdown-secondary tracking-widest opacity-60", n.class)) }, [_(t.$slots, "default")], 2));
|
|
279
|
-
}
|
|
280
|
-
}), ye = /* @__PURE__ */ l({
|
|
281
|
-
__name: "DropdownMenuSeparator",
|
|
282
|
-
props: {
|
|
283
|
-
asChild: { type: Boolean },
|
|
284
|
-
as: {},
|
|
285
|
-
class: { type: [
|
|
286
|
-
Boolean,
|
|
287
|
-
null,
|
|
288
|
-
String,
|
|
289
|
-
Object,
|
|
290
|
-
Array
|
|
291
|
-
] }
|
|
292
|
-
},
|
|
293
|
-
setup(t) {
|
|
294
|
-
let n = t, r = i(() => {
|
|
295
|
-
let { class: e, ...t } = n;
|
|
296
|
-
return t;
|
|
297
|
-
}), o = Q("Separator");
|
|
298
|
-
return (t, i) => (h(), a(v(y(o)), f(r.value, { class: y(e)("-mx-1 my-1 h-px bg-border/70", n.class) }), null, 16, ["class"]));
|
|
299
|
-
}
|
|
300
|
-
}), be = /* @__PURE__ */ l({
|
|
301
|
-
__name: "DropdownMenuLabel",
|
|
302
|
-
props: {
|
|
303
|
-
asChild: { type: Boolean },
|
|
304
|
-
as: {},
|
|
305
|
-
class: { type: [
|
|
306
|
-
Boolean,
|
|
307
|
-
null,
|
|
308
|
-
String,
|
|
309
|
-
Object,
|
|
310
|
-
Array
|
|
311
|
-
] },
|
|
312
|
-
inset: { type: Boolean }
|
|
313
|
-
},
|
|
314
|
-
setup(t) {
|
|
315
|
-
let n = t, r = q(i(() => {
|
|
316
|
-
let { class: e, ...t } = n;
|
|
317
|
-
return t;
|
|
318
|
-
})), o = Q("Label");
|
|
319
|
-
return (i, s) => (h(), a(v(y(o)), f(y(r), { class: y(e)("px-2 py-1.5 text-dropdown-secondary font-semibold", t.inset && "pl-8", n.class) }), {
|
|
320
|
-
default: b(() => [_(i.$slots, "default")]),
|
|
321
|
-
_: 3
|
|
322
|
-
}, 16, ["class"]));
|
|
323
|
-
}
|
|
324
|
-
}), xe = /* @__PURE__ */ l({
|
|
325
|
-
__name: "DropdownMenuSub",
|
|
326
|
-
props: {
|
|
327
|
-
defaultOpen: { type: Boolean },
|
|
328
|
-
open: { type: Boolean }
|
|
329
|
-
},
|
|
330
|
-
emits: ["update:open"],
|
|
331
|
-
setup(e, { emit: t }) {
|
|
332
|
-
let n = J(e, t), r = Q("Sub");
|
|
333
|
-
return (e, t) => (h(), a(v(y(r)), m(u(y(n))), {
|
|
334
|
-
default: b(() => [_(e.$slots, "default")]),
|
|
335
|
-
_: 3
|
|
336
|
-
}, 16));
|
|
337
|
-
}
|
|
338
|
-
}), Se = /* @__PURE__ */ l({
|
|
339
|
-
__name: "DropdownMenuSubTrigger",
|
|
340
|
-
props: {
|
|
341
|
-
disabled: { type: Boolean },
|
|
342
|
-
textValue: {},
|
|
343
|
-
asChild: { type: Boolean },
|
|
344
|
-
as: {},
|
|
345
|
-
class: { type: [
|
|
346
|
-
Boolean,
|
|
347
|
-
null,
|
|
348
|
-
String,
|
|
349
|
-
Object,
|
|
350
|
-
Array
|
|
351
|
-
] }
|
|
352
|
-
},
|
|
353
|
-
setup(t) {
|
|
354
|
-
let r = t, o = q(i(() => {
|
|
355
|
-
let { class: e, ...t } = r;
|
|
356
|
-
return t;
|
|
357
|
-
})), s = Q("SubTrigger");
|
|
358
|
-
return (t, i) => (h(), a(v(y(s)), f(y(o), { class: y(e)(y(n)({ indicator: "none" }), r.class) }), {
|
|
359
|
-
default: b(() => [_(t.$slots, "default"), c(y(ae), { class: "ml-auto h-4 w-4" })]),
|
|
360
|
-
_: 3
|
|
361
|
-
}, 16, ["class"]));
|
|
362
|
-
}
|
|
363
|
-
}), Ce = /* @__PURE__ */ l({
|
|
364
|
-
__name: "DropdownMenuSubContent",
|
|
365
|
-
props: {
|
|
366
|
-
forceMount: { type: Boolean },
|
|
367
|
-
loop: { type: Boolean },
|
|
368
|
-
sideOffset: {},
|
|
369
|
-
sideFlip: { type: Boolean },
|
|
370
|
-
alignOffset: {},
|
|
371
|
-
alignFlip: { type: Boolean },
|
|
372
|
-
avoidCollisions: { type: Boolean },
|
|
373
|
-
collisionBoundary: {},
|
|
374
|
-
collisionPadding: {},
|
|
375
|
-
arrowPadding: {},
|
|
376
|
-
hideShiftedArrow: { type: Boolean },
|
|
377
|
-
sticky: {},
|
|
378
|
-
hideWhenDetached: { type: Boolean },
|
|
379
|
-
positionStrategy: {},
|
|
380
|
-
updatePositionStrategy: {},
|
|
381
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
382
|
-
prioritizePosition: { type: Boolean },
|
|
383
|
-
reference: {},
|
|
384
|
-
asChild: { type: Boolean },
|
|
385
|
-
as: {},
|
|
386
|
-
class: { type: [
|
|
387
|
-
Boolean,
|
|
388
|
-
null,
|
|
389
|
-
String,
|
|
390
|
-
Object,
|
|
391
|
-
Array
|
|
392
|
-
] }
|
|
393
|
-
},
|
|
394
|
-
emits: [
|
|
395
|
-
"escapeKeyDown",
|
|
396
|
-
"pointerDownOutside",
|
|
397
|
-
"focusOutside",
|
|
398
|
-
"interactOutside",
|
|
399
|
-
"entryFocus",
|
|
400
|
-
"openAutoFocus",
|
|
401
|
-
"closeAutoFocus"
|
|
402
|
-
],
|
|
403
|
-
setup(t, { emit: n }) {
|
|
404
|
-
let r = t, o = n, s = J(i(() => {
|
|
405
|
-
let { class: e, ...t } = r;
|
|
406
|
-
return t;
|
|
407
|
-
}), o), c = Q("SubContent"), l = Q("Portal");
|
|
408
|
-
return (t, n) => (h(), a(v(y(l)), null, {
|
|
409
|
-
default: b(() => [(h(), a(v(y(c)), f(y(s), {
|
|
410
|
-
"data-reveal": "menu",
|
|
411
|
-
class: y(e)("dropdown-sub-content z-popover min-w-32 overflow-hidden rounded-panel border glass-floating text-popover-foreground glass-reveal", r.class)
|
|
412
|
-
}), {
|
|
413
|
-
default: b(() => [_(t.$slots, "default")]),
|
|
414
|
-
_: 3
|
|
415
|
-
}, 16, ["class"]))]),
|
|
416
|
-
_: 3
|
|
417
|
-
}));
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
//#endregion
|
|
421
|
-
export { be as a, _e as c, pe as d, fe as f, le as h, xe as i, he as l, ue as m, Ce as n, ye as o, de as p, Se as r, ve as s, z as t, $ as u };
|
package/dist/math-CIEcwsYi.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
//#region src/components/fourier-field/math.ts
|
|
2
|
-
function e(e, t, n) {
|
|
3
|
-
return {
|
|
4
|
-
index: e,
|
|
5
|
-
coefficient: [t, n],
|
|
6
|
-
amplitude: Math.hypot(t, n),
|
|
7
|
-
phase: Math.atan2(n, t)
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
function t(e, t, n) {
|
|
11
|
-
let r = [[0, 0]], i = 0, a = 0, o = n ?? e.length;
|
|
12
|
-
for (let n = 0; n < o && n < e.length; n++) {
|
|
13
|
-
let o = e[n], s = 2 * Math.PI * o.index * t, c = Math.cos(s), l = Math.sin(s);
|
|
14
|
-
i += o.coefficient[0] * c - o.coefficient[1] * l, a += o.coefficient[0] * l + o.coefficient[1] * c, r.push([i, a]);
|
|
15
|
-
}
|
|
16
|
-
return r;
|
|
17
|
-
}
|
|
18
|
-
function n(e, t, n) {
|
|
19
|
-
let r = 0, i = 0, a = n ?? e.length;
|
|
20
|
-
for (let n = 0; n < a && n < e.length; n++) {
|
|
21
|
-
let a = e[n], o = 2 * Math.PI * a.index * t, s = Math.cos(o), c = Math.sin(o);
|
|
22
|
-
r += a.coefficient[0] * s - a.coefficient[1] * c, i += a.coefficient[0] * c + a.coefficient[1] * s;
|
|
23
|
-
}
|
|
24
|
-
return [r, i];
|
|
25
|
-
}
|
|
26
|
-
function r(t) {
|
|
27
|
-
let n = t.length;
|
|
28
|
-
if (n === 0) return [];
|
|
29
|
-
let r = [0], i = Math.floor(n / 2);
|
|
30
|
-
for (let e = 1; e <= i; e++) r.push(e), e !== n - e && r.push(-e);
|
|
31
|
-
let a = [];
|
|
32
|
-
for (let i of r) {
|
|
33
|
-
let r = 0, o = 0;
|
|
34
|
-
for (let e = 0; e < n; e++) {
|
|
35
|
-
let [a, s] = t[e], c = -2 * Math.PI * i * e / n, l = Math.cos(c), u = Math.sin(c);
|
|
36
|
-
r += a * l - s * u, o += a * u + s * l;
|
|
37
|
-
}
|
|
38
|
-
a.push(e(i, r / n, o / n));
|
|
39
|
-
}
|
|
40
|
-
return a;
|
|
41
|
-
}
|
|
42
|
-
function i(t, n = {}) {
|
|
43
|
-
let { harmonics: r = 4, harmonicScale: i = .22 } = n, a = .62 + t() * .18, o = a * (.34 + t() * .3), s = t() * Math.PI * 2, c = t() * Math.PI * 2, l = [e(1, a * Math.cos(s), a * Math.sin(s)), e(-1, o * Math.cos(c), o * Math.sin(c))];
|
|
44
|
-
for (let n = 0; n < r; n++) {
|
|
45
|
-
let r = 2 + Math.floor(n / 2), a = n % 2 == 0 ? r : -r, o = i / r * (.4 + t() * .6), s = t() * Math.PI * 2;
|
|
46
|
-
l.push(e(a, o * Math.cos(s), o * Math.sin(s)));
|
|
47
|
-
}
|
|
48
|
-
return l;
|
|
49
|
-
}
|
|
50
|
-
function a(t) {
|
|
51
|
-
return t.map((t) => {
|
|
52
|
-
let n = 2 * Math.PI * t.phase;
|
|
53
|
-
return e(t.index, t.mag * Math.cos(n), t.mag * Math.sin(n));
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
var o = {
|
|
57
|
-
trefoil: [{
|
|
58
|
-
index: 1,
|
|
59
|
-
mag: .72,
|
|
60
|
-
phase: 0
|
|
61
|
-
}, {
|
|
62
|
-
index: -2,
|
|
63
|
-
mag: .34,
|
|
64
|
-
phase: 0
|
|
65
|
-
}],
|
|
66
|
-
quatrefoil: [{
|
|
67
|
-
index: 1,
|
|
68
|
-
mag: .7,
|
|
69
|
-
phase: 0
|
|
70
|
-
}, {
|
|
71
|
-
index: -3,
|
|
72
|
-
mag: .3,
|
|
73
|
-
phase: 0
|
|
74
|
-
}],
|
|
75
|
-
pentafoil: [{
|
|
76
|
-
index: 1,
|
|
77
|
-
mag: .7,
|
|
78
|
-
phase: 0
|
|
79
|
-
}, {
|
|
80
|
-
index: -4,
|
|
81
|
-
mag: .26,
|
|
82
|
-
phase: 0
|
|
83
|
-
}],
|
|
84
|
-
hexafoil: [{
|
|
85
|
-
index: 1,
|
|
86
|
-
mag: .68,
|
|
87
|
-
phase: 0
|
|
88
|
-
}, {
|
|
89
|
-
index: -5,
|
|
90
|
-
mag: .24,
|
|
91
|
-
phase: 0
|
|
92
|
-
}],
|
|
93
|
-
spiro: [
|
|
94
|
-
{
|
|
95
|
-
index: 1,
|
|
96
|
-
mag: .64,
|
|
97
|
-
phase: 0
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
index: -4,
|
|
101
|
-
mag: .28,
|
|
102
|
-
phase: .12
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
index: 7,
|
|
106
|
-
mag: .1,
|
|
107
|
-
phase: .33
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
}, s = Object.keys(o);
|
|
111
|
-
//#endregion
|
|
112
|
-
export { i as a, t as c, r as i, s as n, a as o, e as r, n as s, o as t };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region src/composables/glass/webgl/shaders/procedural-color.glsl.ts
|
|
2
|
-
var e = "\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}", t = "const mat2 FBM_ROT = mat2(0.8, 0.6, -0.6, 0.8);", n = "\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}", r = "\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}", i = "\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}", a = "\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}", o = "const FBM_ROT: mat2x2<f32> = mat2x2<f32>(0.8, 0.6, -0.6, 0.8);", s = "\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}", c = "\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}";
|
|
3
|
-
//#endregion
|
|
4
|
-
export { t as a, r as c, c as i, i as l, a as n, e as o, s as r, n as s, o as t };
|