@mkbabb/glass-ui 6.0.0 → 7.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 +36 -34
- package/dist/DropdownMenuTrigger-ClIq8RJE.js +93 -0
- package/dist/FeedbackMark-DZq5001h.js +23 -0
- package/dist/Input-9BlLluik.js +77 -0
- package/dist/{PagerDots-BoTQ7g5l.js → PagerDots-BEq0MgtH.js} +85 -81
- package/dist/Surface-kFQeYrYv.js +82 -0
- package/dist/accent-tone-solve-Cw7WkRD9.js +14 -0
- package/dist/animated-digit.js +5 -5
- package/dist/asElement-CRnm6A2v.js +9 -0
- package/dist/aurora.js +831 -776
- package/dist/axes.js +25 -14
- package/dist/badge-u65NClWn.js +62 -0
- package/dist/badge.js +1 -1
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +442 -395
- package/dist/button-Bu9F4uU6.js +98 -0
- package/dist/button.js +2 -2
- package/dist/canvas.js +1 -1
- package/dist/card-Bk96VI2R.js +234 -0
- package/dist/card.js +2 -2
- package/dist/carousel.js +109 -169
- package/dist/chip-DFZQr6rV.js +129 -0
- package/dist/chip.js +2 -81
- package/dist/{class-names-5jotTFzp.js → class-names-Cpy5eaBk.js} +11 -4
- package/dist/collapsible-BAP95XTt.js +154 -0
- package/dist/collapsible.js +1 -1
- package/dist/color.js +46 -50
- package/dist/{procedural-color.wgsl-B9mLK7v0.js → color.wgsl-Ct5o9dpf.js} +155 -121
- package/dist/command-SFqDQ65h.js +320 -0
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +54 -54
- package/dist/components/_shared/FeedbackMark.vue.d.ts +11 -0
- package/dist/components/_shared/axes.d.ts +9 -3
- package/dist/components/_shared/class-names.d.ts +9 -8
- package/dist/components/_shared/control-size.d.ts +2 -0
- package/dist/components/_shared/disclosure-context.d.ts +7 -0
- package/dist/components/_shared/disclosure.css +1 -0
- package/dist/components/_shared/feedback.d.ts +7 -0
- package/dist/components/_shared/field-control.css +1 -0
- package/dist/components/_shared/field-surfaces.css +1 -1
- package/dist/components/_shared/fieldControl.d.ts +13 -0
- package/dist/components/_shared/floating.d.ts +14 -0
- package/dist/components/_shared/index.d.ts +2 -6
- package/dist/components/_shared/interaction.d.ts +23 -0
- package/dist/components/_shared/menu.css +1 -1
- package/dist/components/_shared/menuRowClass.d.ts +2 -0
- package/dist/components/_shared/primitive.d.ts +19 -0
- package/dist/components/_shared/resolveSurfaceClass.d.ts +3 -0
- package/dist/components/_shared/selection.d.ts +7 -0
- package/dist/components/_shared/useMotionAxis.d.ts +3 -2
- package/dist/components/accordion/Accordion.vue.d.ts +41 -16
- package/dist/components/accordion/AccordionContent.vue.d.ts +11 -9
- package/dist/components/accordion/AccordionItem.vue.d.ts +12 -9
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +8 -11
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/alert/Alert.vue.d.ts +9 -5
- package/dist/components/alert/index.d.ts +17 -8
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +2 -3
- package/dist/components/aurora/Aurora.vue.d.ts +37 -42
- package/dist/components/aurora/composables/atoms-fields.d.ts +13 -2
- package/dist/components/aurora/composables/atoms.d.ts +52 -50
- package/dist/components/aurora/composables/auroraFallbackGround.d.ts +13 -13
- package/dist/components/aurora/composables/auroraImageSource.d.ts +4 -5
- package/dist/components/aurora/composables/color.d.ts +15 -20
- package/dist/components/aurora/composables/frameLoop.d.ts +14 -11
- package/dist/components/aurora/composables/glSetup.d.ts +19 -2
- package/dist/components/aurora/composables/runtime.d.ts +56 -60
- package/dist/components/aurora/composables/uniformBridge.d.ts +9 -14
- package/dist/components/aurora/composables/uniformBridgeWGPU.d.ts +21 -22
- package/dist/components/aurora/composables/uniformBridgeWGPUImage.d.ts +13 -13
- package/dist/components/aurora/composables/useAurora.d.ts +19 -30
- package/dist/components/aurora/composables/wgpuSetup.d.ts +10 -8
- package/dist/components/aurora/constants/budget.d.ts +12 -25
- package/dist/components/aurora/constants/presets.d.ts +47 -58
- package/dist/components/aurora/constants/renderMode.d.ts +21 -36
- package/dist/components/aurora/constants/shaders/aurora-image.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/flow.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/metal-medium.glsl.d.ts +2 -2
- package/dist/components/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -1
- package/dist/components/aurora/index.d.ts +2 -1
- package/dist/components/avatar/Avatar.vue.d.ts +72 -11
- package/dist/components/avatar/AvatarFallback.vue.d.ts +1 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +12 -8
- package/dist/components/avatar/index.d.ts +3 -9
- package/dist/components/avatar/styles.css +1 -0
- package/dist/components/badge/Badge.vue.d.ts +2 -9
- package/dist/components/badge/index.d.ts +32 -9
- package/dist/components/blob/Blob.vue.d.ts +5 -12
- package/dist/components/blob/composables/blobSimulation.d.ts +80 -0
- package/dist/components/blob/composables/buildMetaballProgram.d.ts +1 -1
- package/dist/components/blob/composables/resolveBlobSurface.d.ts +6 -0
- package/dist/components/blob/composables/satelliteKinematics.d.ts +3 -3
- package/dist/components/blob/composables/uniformBridgeWGPU.d.ts +1 -1
- package/dist/components/blob/composables/uploadBlobUniforms.d.ts +4 -31
- package/dist/components/blob/composables/useBlobMood.d.ts +5 -5
- package/dist/components/blob/composables/useBlobPointer.d.ts +11 -12
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +27 -24
- package/dist/components/blob/composables/wgpuSetup.d.ts +7 -5
- package/dist/components/blob/config.d.ts +1 -1
- package/dist/components/blob/index.d.ts +2 -2
- package/dist/components/blob/presets.d.ts +2 -2
- package/dist/components/blob/shaders/metaball-palette.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/watercolor-edges.glsl.d.ts +1 -1
- package/dist/components/blob/types.d.ts +28 -60
- package/dist/components/button/Button.vue.d.ts +26 -20
- package/dist/components/button/index.d.ts +1 -9
- package/dist/components/button/styles.css +1 -0
- package/dist/components/card/Card.vue.d.ts +20 -155
- package/dist/components/card/CardAction.vue.d.ts +0 -7
- package/dist/components/card/CardContent.vue.d.ts +2 -2
- package/dist/components/card/CardDescription.vue.d.ts +2 -2
- package/dist/components/card/CardFooter.vue.d.ts +2 -2
- package/dist/components/card/CardHeader.vue.d.ts +3 -42
- package/dist/components/card/CardTitle.vue.d.ts +6 -3
- package/dist/components/card/card-scroll.css +1 -1
- package/dist/components/card/index.d.ts +1 -3
- package/dist/components/card/styles.css +1 -1
- package/dist/components/carousel/index.d.ts +0 -2
- package/dist/components/carousel/interface.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts +17 -9
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/styles.css +1 -0
- package/dist/components/chip/Chip.vue.d.ts +12 -7
- package/dist/components/chip/chipVariants.d.ts +20 -43
- package/dist/components/chip/index.d.ts +1 -1
- package/dist/components/chip/types.d.ts +45 -30
- package/dist/components/collapsible/Collapsible.vue.d.ts +22 -9
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +11 -5
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +12 -9
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/combobox/Combobox.vue.d.ts +10 -20
- package/dist/components/combobox/ComboboxAnchor.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxEmpty.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxGroup.vue.d.ts +2 -7
- package/dist/components/combobox/ComboboxInput.vue.d.ts +7 -12
- package/dist/components/combobox/ComboboxItem.vue.d.ts +7 -11
- package/dist/components/combobox/ComboboxItemIndicator.vue.d.ts +2 -6
- package/dist/components/combobox/ComboboxList.vue.d.ts +14 -17
- package/dist/components/combobox/ComboboxTrigger.vue.d.ts +16 -0
- package/dist/components/combobox/index.d.ts +2 -1
- package/dist/components/combobox/types.d.ts +87 -0
- package/dist/components/command/Command.vue.d.ts +9 -23
- package/dist/components/command/CommandDialog.vue.d.ts +4 -9
- package/dist/components/command/CommandEmpty.vue.d.ts +2 -6
- package/dist/components/command/CommandGroup.vue.d.ts +2 -7
- package/dist/components/command/CommandInput.vue.d.ts +6 -7
- package/dist/components/command/CommandItem.vue.d.ts +7 -11
- package/dist/components/command/CommandList.vue.d.ts +12 -19
- package/dist/components/command/CommandSeparator.vue.d.ts +2 -6
- package/dist/components/command/CommandShortcut.vue.d.ts +2 -2
- package/dist/components/command/dialogContext.d.ts +6 -0
- package/dist/components/command/index.d.ts +10 -10
- package/dist/components/command/styles.css +1 -0
- package/dist/components/command/types.d.ts +27 -0
- package/dist/components/completion-seal/CompletionSeal.vue.d.ts +2 -2
- package/dist/components/completion-seal/constants.d.ts +2 -2
- package/dist/components/configurator/Configurator.vue.d.ts +6 -6
- package/dist/components/configurator/ConfiguratorLayer.vue.d.ts +14 -18
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +14 -17
- package/dist/components/configurator/size.d.ts +5 -7
- package/dist/components/configurator/styles.css +1 -1
- package/dist/components/constellation/Constellation.vue.d.ts +1 -1
- package/dist/components/constellation/composables/createConstellationField.d.ts +2 -2
- package/dist/components/constellation/constants.d.ts +8 -8
- package/dist/components/constellation/constellationField.d.ts +5 -6
- package/dist/components/constellation/constellationInteraction.d.ts +8 -8
- package/dist/components/constellation/constellationTypes.d.ts +53 -54
- package/dist/components/constellation/constellationWell.d.ts +2 -2
- package/dist/components/dark-mode-toggle/DarkModeToggle.vue.d.ts +12 -0
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -0
- package/dist/components/dark-mode-toggle/index.d.ts +2 -0
- package/dist/components/data-table/DataTable.vue.d.ts +11 -59
- package/dist/components/data-table/composables/useDataTableRowIdentity.d.ts +5 -23
- package/dist/components/data-table/index.d.ts +1 -1
- package/dist/components/data-table/styles.css +1 -0
- package/dist/components/data-table/types.d.ts +10 -12
- package/dist/components/deck/index.d.ts +0 -1
- package/dist/components/dialog/Dialog.vue.d.ts +8 -3
- package/dist/components/dialog/DialogClose.vue.d.ts +3 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +27 -90
- package/dist/components/dialog/DialogDescription.vue.d.ts +5 -6
- package/dist/components/dialog/DialogTitle.vue.d.ts +5 -6
- package/dist/components/dialog/DialogTrigger.vue.d.ts +3 -1
- package/dist/components/{_shared → dialog}/ModalOverlay.vue.d.ts +18 -16
- package/dist/components/dialog/dialogStageContext.d.ts +7 -0
- package/dist/components/dialog/index.d.ts +8 -8
- package/dist/components/dialog/placement.css +1 -1
- package/dist/components/dialog/sheet-motion.d.ts +17 -0
- package/dist/components/dock/DockControl.vue.d.ts +9 -12
- package/dist/components/dock/DockCrossfade.vue.d.ts +4 -8
- package/dist/components/dock/DockLayer.vue.d.ts +2 -3
- package/dist/components/dock/DockLayerGroup.vue.d.ts +6 -6
- package/dist/components/dock/DockSeparator.vue.d.ts +8 -8
- package/dist/components/dock/composables/dockContext.d.ts +4 -14
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +6 -7
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +7 -86
- package/dist/components/dock/composables/index.d.ts +1 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +1 -1
- package/dist/components/dock/composables/useDockHold.d.ts +4 -5
- package/dist/components/dock/composables/useDockMorph.d.ts +26 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +4 -6
- package/dist/components/dock/composables/useDockSearch.d.ts +8 -8
- package/dist/components/dock/composables/useDockShellProps.d.ts +46 -43
- package/dist/components/dock/composables/useDockSpring.d.ts +7 -11
- package/dist/components/dock/composables/useDockState.d.ts +12 -3
- package/dist/components/dock/composables/useDockTouchGate.d.ts +14 -23
- package/dist/components/dock/constants.d.ts +5 -78
- package/dist/components/dock/index.d.ts +2 -7
- package/dist/components/dock/styles/controls.css +1 -1
- package/dist/components/dock/styles/crossfade.css +1 -1
- package/dist/components/dock/styles/density.css +1 -1
- package/dist/components/dock/styles/index.css +1 -1
- package/dist/components/dock/styles/layer-group.css +1 -1
- package/dist/components/dock/styles/layers.css +1 -1
- package/dist/components/dock/styles/morph.css +1 -1
- package/dist/components/dock/styles/shape.css +1 -1
- package/dist/components/dock/styles/shell.css +1 -1
- package/dist/components/drawer/Drawer.vue.d.ts +17 -20
- package/dist/components/drawer/DrawerContent.vue.d.ts +15 -16
- package/dist/components/drawer/DrawerDescription.vue.d.ts +5 -6
- package/dist/components/drawer/DrawerOverlay.vue.d.ts +6 -6
- package/dist/components/drawer/DrawerTitle.vue.d.ts +5 -6
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +7 -1
- package/dist/components/drawer/composables/useDrawerSnap.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +7 -25
- package/dist/components/drawer/index.d.ts +10 -10
- package/dist/components/drawer/styles.css +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +43 -16
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +22 -13
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +28 -19
- package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +6 -4
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +21 -9
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts +9 -9
- package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +13 -6
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +18 -11
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +5 -6
- package/dist/components/dropdown-menu/DropdownMenuShortcut.vue.d.ts +7 -8
- package/dist/components/dropdown-menu/DropdownMenuSub.vue.d.ts +15 -7
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +24 -17
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +11 -9
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +15 -8
- package/dist/components/dropdown-menu/index.d.ts +15 -15
- package/dist/components/dropdown-menu/styles.css +1 -0
- package/dist/components/dropdown-menu/useMenuTrigger.d.ts +2 -9
- package/dist/components/easing/composables/useEasingPicker.d.ts +5 -8
- package/dist/components/easing/constants.d.ts +1 -1
- package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +1 -25
- package/dist/components/expandable-container/styles.css +1 -0
- package/dist/components/fading-scroll/FadingScroll.vue.d.ts +4 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +4 -0
- package/dist/components/fading-scroll/constants.d.ts +1 -2
- package/dist/components/fourier-field/FourierField.vue.d.ts +3 -5
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +1 -1
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +1 -1
- package/dist/components/fourier-field/composables/useFourierField.d.ts +4 -4
- package/dist/components/fourier-field/constants.d.ts +10 -10
- package/dist/components/fourier-field/index.d.ts +3 -3
- package/dist/components/fourier-field/presets.d.ts +3 -3
- package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +2 -2
- package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -1
- package/dist/components/handmark/HandMark.vue.d.ts +1 -1
- package/dist/components/handmark/brush.d.ts +1 -1
- package/dist/components/handmark/composables/useHandMark.d.ts +4 -4
- package/dist/components/handmark/constants.d.ts +10 -10
- package/dist/components/handmark/geometry.d.ts +8 -8
- package/dist/components/handmark/index.d.ts +7 -8
- package/dist/components/handmark/noise.d.ts +3 -3
- package/dist/components/handmark/types.d.ts +2 -2
- package/dist/components/header-ribbon/HeaderRibbon.vue.d.ts +3 -21
- package/dist/components/header-ribbon/styles.css +1 -0
- package/dist/components/header-ribbon/types.d.ts +5 -2
- package/dist/components/index.d.ts +0 -3
- package/dist/components/infinite-scroll/composables/types.d.ts +1 -1
- package/dist/components/input/Input.vue.d.ts +10 -35
- package/dist/components/input/index.d.ts +2 -1
- package/dist/components/input/types.d.ts +22 -0
- package/dist/components/instrument-chassis/InstrumentChassis.vue.d.ts +10 -84
- package/dist/components/instrument-chassis/index.d.ts +1 -2
- package/dist/components/instrument-chassis/styles.css +1 -1
- package/dist/components/instrument-chassis/types.d.ts +13 -0
- package/dist/components/label/Label.vue.d.ts +9 -14
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/labeled-field/LabeledField.vue.d.ts +10 -108
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +3 -23
- package/dist/components/labeled-field/LabeledSelect.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSlider.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +14 -17
- package/dist/components/labeled-field/index.d.ts +1 -0
- package/dist/components/labeled-field/types.d.ts +50 -0
- package/dist/components/liquid-grid/composables/liquidGrid.d.ts +5 -5
- package/dist/components/liquid-grid/constants.d.ts +6 -7
- package/dist/components/liquid-grid/shaders/liquid-grid.glsl.d.ts +1 -1
- package/dist/components/liquid-grid/shaders/liquid-grid.wgsl.d.ts +1 -1
- package/dist/components/metric/Metric.vue.d.ts +24 -0
- package/dist/components/metric/MetricCell.vue.d.ts +26 -0
- package/dist/components/metric/MetricRow.vue.d.ts +22 -0
- package/dist/components/metric/MetricStack.vue.d.ts +16 -0
- package/dist/components/metric/coalesce-metric.d.ts +7 -28
- package/dist/components/metric/index.d.ts +5 -0
- package/dist/components/metric/styles.css +1 -0
- package/dist/components/metric/types.d.ts +32 -0
- package/dist/components/number-field/NumberField.vue.d.ts +21 -9
- package/dist/components/number-field/NumberFieldContent.vue.d.ts +2 -2
- package/dist/components/number-field/NumberFieldDecrement.vue.d.ts +6 -6
- package/dist/components/number-field/NumberFieldIncrement.vue.d.ts +6 -6
- package/dist/components/number-field/NumberFieldInput.vue.d.ts +1 -6
- package/dist/components/number-field/context.d.ts +6 -0
- package/dist/components/number-field/index.d.ts +5 -5
- package/dist/components/number-field/styles.css +1 -0
- package/dist/components/pager-dots/constants.d.ts +1 -2
- package/dist/components/pager-dots/index.d.ts +0 -2
- package/dist/components/paper-backdrop/PaperBackdrop.vue.d.ts +1 -14
- package/dist/components/paper-backdrop/index.d.ts +1 -1
- package/dist/components/popover/Popover.vue.d.ts +24 -36
- package/dist/components/popover/PopoverContent.vue.d.ts +23 -29
- package/dist/components/popover/PopoverTrigger.vue.d.ts +12 -7
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/popoverContext.d.ts +3 -4
- package/dist/components/progress/Progress.vue.d.ts +5 -13
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/types.d.ts +19 -0
- package/dist/components/pulse/Pulse.vue.d.ts +8 -47
- package/dist/components/pulse/index.d.ts +1 -0
- package/dist/components/radio-group/RadioGroup.vue.d.ts +27 -15
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +9 -6
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/styles.css +1 -0
- package/dist/components/scroll-progress-rim/styles.css +1 -1
- package/dist/components/search/FuzzySearch.vue.d.ts +2 -2
- package/dist/components/search/SearchBar.vue.d.ts +2 -2
- package/dist/components/search/searchVariants.d.ts +15 -17
- package/dist/components/select/Select.vue.d.ts +25 -14
- package/dist/components/select/SelectContent.vue.d.ts +26 -29
- package/dist/components/select/SelectGroup.vue.d.ts +7 -11
- package/dist/components/select/SelectItem.vue.d.ts +24 -13
- package/dist/components/select/SelectLabel.vue.d.ts +7 -11
- package/dist/components/select/SelectScrollDownButton.vue.d.ts +3 -4
- package/dist/components/select/SelectScrollUpButton.vue.d.ts +3 -4
- package/dist/components/select/SelectSeparator.vue.d.ts +5 -6
- package/dist/components/select/SelectTrigger.vue.d.ts +15 -41
- package/dist/components/select/SelectValue.vue.d.ts +13 -7
- package/dist/components/select/index.d.ts +16 -8
- package/dist/components/separator/Separator.vue.d.ts +11 -6
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/skeleton/Skeleton.vue.d.ts +3 -31
- package/dist/components/slider/Slider.vue.d.ts +10 -37
- package/dist/components/slider/index.d.ts +1 -45
- package/dist/components/slider/types.d.ts +25 -0
- package/dist/components/sortable-list/SortableList.vue.d.ts +1 -1
- package/dist/components/sortable-list/composables/ghostRenderer.d.ts +1 -1
- package/dist/components/sortable-list/composables/touchGate.d.ts +1 -1
- package/dist/components/sortable-list/composables/transitionTiming.d.ts +1 -1
- package/dist/components/status-dot/StatusDot.vue.d.ts +7 -10
- package/dist/components/status-dot/index.d.ts +1 -0
- package/dist/components/surface/Surface.vue.d.ts +13 -21
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/switch/Switch.vue.d.ts +20 -11
- package/dist/components/switch/index.d.ts +2 -1
- package/dist/components/switch/styles.css +1 -0
- package/dist/components/table/Table.vue.d.ts +1 -1
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +21 -13
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +6 -6
- package/dist/components/tabs/composables/useTabResponsive.d.ts +5 -6
- package/dist/components/tabs/composables/useTabRovingFocus.d.ts +16 -16
- package/dist/components/tabs/constants.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -1
- package/dist/components/tabs/styles/segmented.css +1 -1
- package/dist/components/tags-input/TagsInput.vue.d.ts +28 -15
- package/dist/components/tags-input/TagsInputInput.vue.d.ts +8 -6
- package/dist/components/tags-input/TagsInputItem.vue.d.ts +9 -8
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts +5 -6
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts +5 -6
- package/dist/components/tags-input/context.d.ts +5 -0
- package/dist/components/tags-input/index.d.ts +5 -5
- package/dist/components/tags-input/styles.css +1 -0
- package/dist/components/textarea/Textarea.vue.d.ts +10 -55
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/types.d.ts +22 -0
- package/dist/components/timeline/ContinuousMarkers.vue.d.ts +2 -4
- package/dist/components/timeline/ContinuousRail.vue.d.ts +3 -6
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +12 -13
- package/dist/components/timeline/GlassTimeline.vue.d.ts +7 -8
- package/dist/components/timeline/ScrubberTimeline.vue.d.ts +4 -4
- package/dist/components/timeline/SegmentedTimeline.vue.d.ts +2 -3
- package/dist/components/timeline/geometry.d.ts +3 -4
- package/dist/components/timeline/types.d.ts +3 -3
- package/dist/components/toast/Toast.vue.d.ts +37 -79
- package/dist/components/toast/ToastAction.vue.d.ts +5 -5
- package/dist/components/toast/ToastClose.vue.d.ts +4 -5
- package/dist/components/toast/ToastDescription.vue.d.ts +4 -5
- package/dist/components/toast/ToastTitle.vue.d.ts +4 -5
- package/dist/components/toast/Toaster.vue.d.ts +1 -1
- package/dist/components/toast/index.d.ts +8 -9
- package/dist/components/toast/use-toast.d.ts +20 -163
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +44 -22
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +11 -9
- package/dist/components/toggle-group/index.d.ts +3 -2
- package/dist/components/toggle-group/styles.css +1 -0
- package/dist/components/toggle-group/toggleGroupContext.d.ts +4 -15
- package/dist/components/tooltip/Tooltip.vue.d.ts +20 -7
- package/dist/components/tooltip/TooltipContent.vue.d.ts +20 -12
- package/dist/components/tooltip/TooltipProvider.vue.d.ts +12 -5
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +12 -5
- package/dist/components/tooltip/index.d.ts +4 -4
- package/dist/components/typewriter/composables/useTypewriter.d.ts +1 -0
- package/dist/components/typewriter/utils/timing.d.ts +0 -2
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +5 -18
- package/dist/components/watercolor-dot/useWatercolorBlob.d.ts +1 -4
- package/dist/composables/color/accent-tone-solve.d.ts +2 -5
- package/dist/composables/color/index.d.ts +31 -38
- package/dist/composables/color/useAccentTone.d.ts +0 -3
- package/dist/composables/color/value.d.ts +21 -0
- package/dist/composables/context/createContext.d.ts +2 -2
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +7 -6
- package/dist/composables/dom/useBreakpoint.d.ts +2 -2
- package/dist/composables/dom/useClipboard.d.ts +28 -52
- package/dist/composables/dom/useDocumentVisibility.d.ts +3 -1
- package/dist/composables/dom/useIdleReady.d.ts +5 -6
- package/dist/composables/dom/useTokenColor.d.ts +2 -2
- package/dist/composables/dom/useUserInvalidAria.d.ts +2 -3
- package/dist/composables/dom/useViewportReady.d.ts +4 -4
- package/dist/composables/glass/backdropLuminanceSample.d.ts +7 -6
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +7 -1
- package/dist/composables/glass/textureUpload.d.ts +8 -10
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +11 -19
- package/dist/composables/glass/useSpecularPointer.d.ts +6 -6
- package/dist/composables/glass/useSpecularTracking.d.ts +12 -15
- package/dist/composables/glass/wave/waveField.d.ts +2 -2
- package/dist/composables/glass/wave/waveField.glsl.d.ts +1 -1
- package/dist/composables/glass/wave/waveField.wgsl.d.ts +1 -1
- package/dist/composables/glass/webgl/backingSize.d.ts +5 -8
- package/dist/composables/glass/webgl/compile.d.ts +1 -1
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +20 -20
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -28
- package/dist/composables/glass/webgl/visibility.d.ts +3 -4
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +10 -10
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +1 -1
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +12 -10
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +15 -16
- package/dist/composables/motion/core/asElement.d.ts +2 -0
- package/dist/composables/motion/{constants.d.ts → core/constants.d.ts} +2 -3
- package/dist/composables/motion/core/index.d.ts +20 -23
- package/dist/composables/motion/core/useReducedMotion.d.ts +5 -0
- package/dist/composables/motion/core/useViewTransition.d.ts +44 -0
- package/dist/composables/motion/index.d.ts +14 -16
- package/dist/composables/motion/{useDockCtaReceive.d.ts → morph/useDockCtaReceive.d.ts} +2 -3
- package/dist/composables/motion/{useDragMorph.d.ts → morph/useDragMorph.d.ts} +7 -7
- package/dist/composables/motion/morph/useElementMorph.d.ts +50 -0
- package/dist/composables/motion/{useLeadTrail.d.ts → morph/useLeadTrail.d.ts} +6 -6
- package/dist/composables/motion/{useSelectionGroup.d.ts → morph/useSelectionGroup.d.ts} +7 -5
- package/dist/composables/motion/{useSelectionIndicator.d.ts → morph/useSelectionIndicator.d.ts} +9 -16
- package/dist/composables/motion/{useNumericTransition.d.ts → number/useNumericTransition.d.ts} +2 -2
- package/dist/composables/motion/{pointerFieldMappings.d.ts → pointer/pointerFieldMappings.d.ts} +7 -10
- package/dist/composables/motion/{usePointerVelocityField.d.ts → pointer/usePointerVelocityField.d.ts} +1 -1
- package/dist/composables/motion/{bloomUpField.d.ts → reveal/bloomUpField.d.ts} +1 -1
- package/dist/composables/motion/reveal/useBloomUp.d.ts +33 -0
- package/dist/composables/motion/{useLiquidReveal.d.ts → reveal/useLiquidReveal.d.ts} +5 -5
- package/dist/composables/motion/{useStagger.d.ts → reveal/useStagger.d.ts} +3 -3
- package/dist/composables/motion/reveal/useStaggerReveal.d.ts +28 -0
- package/dist/composables/motion/{useScrollChrome.d.ts → scroll/useScrollChrome.d.ts} +2 -2
- package/dist/composables/motion/{useScrollProgress.d.ts → scroll/useScrollProgress.d.ts} +12 -2
- package/dist/composables/motion/{springPresets.d.ts → spring/springPresets.d.ts} +8 -7
- package/dist/composables/motion/{springProjection.d.ts → spring/springProjection.d.ts} +3 -0
- package/dist/composables/motion/{useLiquidFlex.d.ts → spring/useLiquidFlex.d.ts} +11 -12
- package/dist/composables/motion/{useLiquidPress.d.ts → spring/useLiquidPress.d.ts} +3 -3
- package/dist/composables/motion/{useSpring.d.ts → spring/useSpring.d.ts} +5 -2
- package/dist/composables/motion/{useSpringMount.d.ts → spring/useSpringMount.d.ts} +8 -1
- package/dist/composables/sidebar/types.d.ts +3 -3
- package/dist/{configurator-CSENXXSy.js → configurator-M5OaIlJd.js} +11 -11
- package/dist/configurator.js +1 -1
- package/dist/{constants-DRZmNIY-.js → constants-nBz23tJE.js} +1 -1
- package/dist/constellation.js +125 -124
- package/dist/{createCanvasLifecycle-hsFkQVdl.js → createCanvasLifecycle-DbXRwjU_.js} +87 -82
- package/dist/dark-mode-toggle.d.ts +1 -0
- package/dist/dark-mode-toggle.js +43 -0
- package/dist/dark.js +1 -1
- package/dist/data-table-BygKg6ZA.js +491 -0
- package/dist/data-table.js +1 -1
- package/dist/deck.js +3 -3
- package/dist/dialog-TNRDkcE4.js +385 -0
- package/dist/dialog.js +1 -1
- package/dist/dock.js +523 -940
- package/dist/dockContext-BUTlGRNJ.js +13 -0
- package/dist/dom.js +52 -114
- package/dist/drawer.js +262 -209
- package/dist/dropdown-menu-BlbnvMaZ.js +507 -0
- package/dist/dropdown-menu.js +2 -2
- package/dist/easing.js +294 -278
- package/dist/expandable-container.js +107 -93
- package/dist/fading-scroll-DhxXIhm2.js +96 -0
- package/dist/fading-scroll.js +1 -1
- package/dist/field-control.css_vue_type_style_index_0_src_true_lang-CeLay9Tk.js +21 -0
- package/dist/floating-dB5TD88k.js +7 -0
- package/dist/{flow.glsl-DEGFGE11.js → flow.wgsl-Cd2GUkPx.js} +2 -2
- package/dist/fonts/README.md +14 -18
- package/dist/forms.js +279 -174
- package/dist/fourier-field.js +148 -148
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +512 -373
- package/dist/handmark.js +4 -4
- package/dist/header-ribbon.js +37 -68
- package/dist/index.d.ts +9 -18
- package/dist/infinite-scroll.js +31 -28
- package/dist/instrument-chassis.js +54 -2
- package/dist/label-DnMqH7jr.js +55 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +291 -214
- package/dist/liquid-grid.js +141 -151
- package/dist/menuRowClass-Nh7CtMON.js +12 -0
- package/dist/metric.d.ts +1 -0
- package/dist/metric.js +192 -0
- package/dist/motion-core.js +73 -165
- package/dist/motion.js +104 -161
- package/dist/number-field-Boe09SvX.js +154 -0
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +2 -2
- package/dist/paper-backdrop.js +16 -24
- package/dist/{pointerFieldMappings-CZojkgKj.js → pointerFieldMappings-DP5tla5z.js} +4 -7
- package/dist/popover-BQGYXZyO.js +244 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-CxeNvxuO.js → presets-5myqNv59.js} +1 -1
- package/dist/primitive-B2t2jdqM.js +11 -0
- package/dist/progress-DClbhRAT.js +88 -0
- package/dist/progress.js +1 -1
- package/dist/pulse.js +29 -43
- package/dist/reactive.js +1 -1
- package/dist/resolveCanvasColor-DS_6DBxA.js +82 -0
- package/dist/resolveSurfaceClass-DCZ4PZcy.js +6 -0
- package/dist/{scrollReader-C2oK9Hb8.js → scrollReader-Brf5cQNo.js} +1 -1
- package/dist/search.js +241 -213
- package/dist/select-BcBAyLXA.js +336 -0
- package/dist/select.js +1 -1
- package/dist/selection-DqIULxRG.js +6 -0
- package/dist/separator-CgZInrX-.js +75 -0
- package/dist/separator.js +1 -1
- package/dist/sidebar.js +53 -42
- package/dist/slider-DzqeQmMu.js +162 -0
- package/dist/slider.js +2 -2
- package/dist/sortable-list.js +9 -8
- package/dist/springPresets-rCii5KqX.js +52 -0
- package/dist/status-dot.js +26 -43
- package/dist/styles/accessibility.css +1 -1
- package/dist/styles/animations.css +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/a11y-fallback.css +1 -1
- package/dist/styles/glass/accent-tone.css +1 -1
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/defined.css +1 -1
- package/dist/styles/glass/glass-atom.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/glass-chip.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 -1
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/reveal.css +1 -1
- package/dist/styles/glass/squircle.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-refract.css +1 -1
- package/dist/styles/glass.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/paper.css +1 -1
- package/dist/styles/scroll-driven.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/theme/radius.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm.css +1 -1
- package/dist/styles/tokens/glass-deep.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/manifest.d.ts +14 -0
- package/dist/styles/tokens/manifest.ts +56 -0
- package/dist/styles/tokens/motion-registers.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/property-regs-specular.css +1 -1
- package/dist/styles/tokens/property-regs.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-motion.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/scroll-tokens.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens/sizing-config.css +1 -1
- package/dist/styles/tokens/sizing.css +1 -1
- package/dist/styles/tokens.d.ts +4 -9
- package/dist/styles/tokens.ts +5 -9
- package/dist/styles/transitions.css +1 -1
- 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/a11y-overrides.css +1 -1
- package/dist/styles/utilities/base-misc.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/metal.css +1 -1
- package/dist/styles/utilities/responsive.css +1 -0
- package/dist/styles/view-transition.css +1 -1
- package/dist/{supportsCssTimeline-Dz-GVxXM.js → supportsCssTimeline-C2zyWpl8.js} +1 -1
- package/dist/surface.js +2 -3
- package/dist/switch-DZjQuFLa.js +54 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +141 -169
- package/dist/timeline.js +86 -87
- package/dist/toast-CH5mnsYT.js +267 -0
- package/dist/toast.js +1 -1
- package/dist/toggle-group-O6jBo7AE.js +150 -0
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.js +96 -5
- package/dist/tooltip-Drx5qnw_.js +148 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +222 -193
- package/dist/{useAccentTone-C-p6WdPe.js → useAccentTone-DyInfHXE.js} +2 -2
- package/dist/{useAnimatedNumber-BRVVaFFc.js → useAnimatedNumber-WPtMz0AN.js} +2 -2
- package/dist/useClipboard-D36OTaeT.js +53 -0
- package/dist/useDockCtaReceive-DkrOTM0q.js +146 -0
- package/dist/useDocumentVisibility-Dh_TGXsU.js +21 -0
- package/dist/useDragMorph-BogSV_nv.js +293 -0
- package/dist/{useIntersectionPause-B-dbxl9w.js → useIntersectionPause-B5mAU6XY.js} +15 -15
- package/dist/useLeadTrail-AW1-zZcd.js +74 -0
- package/dist/{useLiquidFlex-Ch4exNvN.js → useLiquidFlex-TJZmRqyY.js} +1 -1
- package/dist/useLiquidPress-BOxuDkKa.js +101 -0
- package/dist/useMotionAxis-D-rtIhca.js +19 -0
- package/dist/usePointerVelocityField-DsIf7yyq.js +121 -0
- package/dist/useRAFLoop-B3YlWK4M.js +98 -0
- package/dist/useReducedMotion-vCXA_vyM.js +27 -0
- package/dist/useRoutePointer-B8itM7Ka.js +53 -0
- package/dist/useScrollProgress-CSFYXIZT.js +43 -0
- package/dist/useScrollTrigger-BDdqptlc.js +87 -0
- package/dist/useSelectionGroup-B5XplBbo.js +132 -0
- package/dist/{useSpring-BBSKFx_0.js → useSpring-9u2_shxV.js} +2 -2
- package/dist/useSpringMount-uQ8QL9Ff.js +74 -0
- package/dist/useTabRovingFocus-YnWh-Ytr.js +169 -0
- package/dist/useTextHighlight-mfwNIC1f.js +112 -0
- package/dist/{useTouchGate-Cj5fOkTv.js → useTouchGate-B4mzQcHJ.js} +1 -1
- package/dist/vSpecular-DMJo8pfD.js +68 -0
- package/dist/value-DMhh2R94.js +33 -0
- package/dist/watercolor-dot.js +77 -103
- package/package.json +163 -232
- package/dist/DropdownMenuTrigger-BzQtd9lt.js +0 -65
- package/dist/FadingScroll-C1ZWEjmG.js +0 -83
- package/dist/Input-B4WQ_CMc.js +0 -57
- package/dist/Surface-BWRfwyn8.js +0 -59
- package/dist/accent-tone-solve-Dii9ePhK.js +0 -20
- package/dist/badge-C0C-rTBu.js +0 -80
- package/dist/button-32mg6xA8.js +0 -194
- package/dist/card-16xmzIr3.js +0 -303
- package/dist/coalesce-metric-znAcLzkB.js +0 -13
- package/dist/collapsible-bPzS1aQk.js +0 -63
- package/dist/color-swatch.d.ts +0 -1
- package/dist/color-swatch.js +0 -48
- package/dist/command-BjPjUU9z.js +0 -307
- package/dist/components/_shared/menuItemVariants.d.ts +0 -51
- package/dist/components/_shared/useControlSize.d.ts +0 -46
- package/dist/components/_shared/useStalePropWarning.d.ts +0 -27
- package/dist/components/_shared/useSurfaceAxis.d.ts +0 -64
- package/dist/components/card/ScrollCard.vue.d.ts +0 -33
- package/dist/components/card/ScrollCardHeader.vue.d.ts +0 -17
- package/dist/components/carousel/CarouselNext.vue.d.ts +0 -21
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +0 -21
- package/dist/components/color-swatch/ColorSwatch.vue.d.ts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -32
- package/dist/components/controls/dark-mode-toggle.css +0 -1
- package/dist/components/controls/index.d.ts +0 -1
- package/dist/components/data-table/DataTablePagination.vue.d.ts +0 -13
- package/dist/components/dock/DockSection.vue.d.ts +0 -69
- package/dist/components/dock/DockStack.vue.d.ts +0 -73
- package/dist/components/dock/composables/dockMorphContext.d.ts +0 -91
- package/dist/components/dock/composables/useDockFisheye.d.ts +0 -24
- package/dist/components/dock/composables/useDockPopover.d.ts +0 -70
- package/dist/components/dock/styles/fisheye.css +0 -1
- package/dist/components/dock/styles/popover.css +0 -1
- package/dist/components/dock/styles/section.css +0 -1
- package/dist/components/focus-scope/FocusScope.vue.d.ts +0 -20
- package/dist/components/focus-scope/index.d.ts +0 -2
- package/dist/components/goo-filter/GooFilter.vue.d.ts +0 -22
- package/dist/components/goo-filter/index.d.ts +0 -1
- package/dist/components/icon-chip/IconChip.vue.d.ts +0 -4
- package/dist/components/icon-chip/index.d.ts +0 -2
- package/dist/components/icon-chip/styles.css +0 -1
- package/dist/components/icon-chip/types.d.ts +0 -92
- package/dist/components/icon-tooltip/IconTooltip.vue.d.ts +0 -16
- package/dist/components/icon-tooltip/index.d.ts +0 -1
- package/dist/components/instrument-chassis/ChassisDivider.vue.d.ts +0 -30
- package/dist/components/metric-badge/MetricBadge.vue.d.ts +0 -40
- package/dist/components/metric-badge/index.d.ts +0 -2
- package/dist/components/metric-cell/MetricCell.vue.d.ts +0 -108
- package/dist/components/metric-cell/index.d.ts +0 -2
- package/dist/components/metric-stack/MetricRow.vue.d.ts +0 -120
- package/dist/components/metric-stack/MetricStack.vue.d.ts +0 -92
- package/dist/components/metric-stack/index.d.ts +0 -4
- package/dist/components/notification/Notification.vue.d.ts +0 -16
- package/dist/components/notification/index.d.ts +0 -1
- package/dist/components/progress/ProgressDefault.vue.d.ts +0 -9
- package/dist/components/progress/ProgressGradient.vue.d.ts +0 -26
- package/dist/components/progress/ProgressLiquid.vue.d.ts +0 -22
- package/dist/components/progress/valueMarks.css +0 -1
- package/dist/components/spa-view/SpaView.vue.d.ts +0 -50
- package/dist/components/spa-view/index.d.ts +0 -2
- package/dist/components/split-chars/SplitChars.vue.d.ts +0 -53
- package/dist/components/split-chars/index.d.ts +0 -1
- package/dist/components/tabs/composables/useEyeglassLive.d.ts +0 -17
- package/dist/components/toggle/Toggle.vue.d.ts +0 -29
- package/dist/components/toggle/index.d.ts +0 -26
- package/dist/composables/glass/webgl/shaders/glass-refract.glsl.d.ts +0 -36
- package/dist/composables/motion/curves.d.ts +0 -48
- package/dist/composables/motion/gooBarbellGeometry.d.ts +0 -79
- package/dist/composables/motion/morphSignatures.d.ts +0 -88
- package/dist/composables/motion/suite.d.ts +0 -2
- package/dist/composables/motion/useBloomUp.d.ts +0 -97
- package/dist/composables/motion/useCharStagger.d.ts +0 -44
- package/dist/composables/motion/useElementMorph.d.ts +0 -107
- package/dist/composables/motion/useGooMorph.d.ts +0 -72
- package/dist/composables/motion/usePrioritizedTask.d.ts +0 -41
- package/dist/composables/motion/useStaggerReveal.d.ts +0 -52
- package/dist/composables/motion/useViewTransition.d.ts +0 -81
- package/dist/composables/virtual/index.d.ts +0 -4
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +0 -72
- package/dist/composables/virtual/useWindowedStore.d.ts +0 -43
- package/dist/composables/virtual/virtualSectionLayout.d.ts +0 -103
- package/dist/controls.d.ts +0 -1
- package/dist/controls.js +0 -83
- package/dist/data-table-DveMdgBM.js +0 -629
- package/dist/dialog-BzQxKrUr.js +0 -281
- package/dist/dockContext-4S9qP0Z4.js +0 -13
- package/dist/dropdown-menu-DORIA52F.js +0 -378
- package/dist/focus-scope-DUTKveod.js +0 -23
- package/dist/focus-scope.d.ts +0 -1
- package/dist/focus-scope.js +0 -2
- package/dist/icon-chip-BWuxz1-u.js +0 -57
- package/dist/icon-chip.d.ts +0 -1
- package/dist/icon-chip.js +0 -2
- package/dist/icon-tooltip-CO6rw0dZ.js +0 -25
- package/dist/icon-tooltip.d.ts +0 -1
- package/dist/icon-tooltip.js +0 -2
- package/dist/instrument-chassis-Cvstg4_U.js +0 -65
- package/dist/label-Cj38tJKG.js +0 -36
- package/dist/menuItemVariants-D6AOzzND.js +0 -36
- package/dist/metric-badge.d.ts +0 -1
- package/dist/metric-badge.js +0 -79
- package/dist/metric-cell.d.ts +0 -1
- package/dist/metric-cell.js +0 -61
- package/dist/metric-stack.d.ts +0 -1
- package/dist/metric-stack.js +0 -113
- package/dist/motion-curves.d.ts +0 -1
- package/dist/motion-curves.js +0 -146
- package/dist/notification-DVs7ODMg.js +0 -52
- package/dist/notification.d.ts +0 -1
- package/dist/notification.js +0 -2
- package/dist/number-field-PvkGedHk.js +0 -140
- package/dist/popover-WMgyRSyN.js +0 -256
- package/dist/progress-C-HHuFZy.js +0 -192
- package/dist/resolveCanvasColor-yarP5bdk.js +0 -93
- package/dist/select-BIv4R3Ir.js +0 -326
- package/dist/separator-CBU94kTM.js +0 -62
- package/dist/slider-Cc_qw6GA.js +0 -166
- package/dist/spa-view.d.ts +0 -1
- package/dist/spa-view.js +0 -46
- package/dist/springPresets-h5VKJQqG.js +0 -58
- package/dist/styles/glass/progress-rail.css +0 -1
- package/dist/switch-Boj4Ucn5.js +0 -49
- package/dist/toast-kAbchIN2.js +0 -281
- package/dist/toggle-group-BPchFsns.js +0 -178
- package/dist/tooltip-BmOQJzh0.js +0 -111
- package/dist/useControlSize-CFfOk8I-.js +0 -9
- package/dist/useDockCtaReceive-CK-RLASa.js +0 -257
- package/dist/useDocumentVisibility-YeBDGqtI.js +0 -17
- package/dist/useDragMorph-7ygF9O0m.js +0 -93
- package/dist/useGooMorph-D1F6QJlH.js +0 -349
- package/dist/useLeadTrail-BYu8dq4G.js +0 -74
- package/dist/useLiquidPress-BYcwwGQV.js +0 -68
- package/dist/useMotionAxis-DCCXMC-i.js +0 -20
- package/dist/usePointerVelocityField-BdvnO0py.js +0 -122
- package/dist/useRAFLoop-BtwQ9DyY.js +0 -109
- package/dist/useRoutePointer-BDNMFN73.js +0 -52
- package/dist/useScrollProgress-DZI4nf4v.js +0 -35
- package/dist/useSelectionGroup-LDzBdR1Y.js +0 -215
- package/dist/useSpringMount-C6-DBx4e.js +0 -71
- package/dist/useSpringPress-BypV_KO-.js +0 -36
- package/dist/useSurfaceAxis-DudiZVOR.js +0 -10
- package/dist/useTabRovingFocus-DkLYwo4L.js +0 -143
- package/dist/vReveal-DZfWl9XI.js +0 -10
- package/dist/vSpecular-CQFmLNzA.js +0 -68
- package/src/fonts/README.md +0 -124
- package/src/fonts/fira-code/OFL.txt +0 -93
- package/src/fonts/fira-code/fira-code-latin-ext.woff2 +0 -0
- package/src/fonts/fira-code/fira-code-latin.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/OFL.txt +0 -93
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2 +0 -0
- package/src/styles/accessibility.css +0 -48
- package/src/styles/animations.css +0 -468
- package/src/styles/draw-in.css +0 -89
- package/src/styles/fonts.css +0 -143
- package/src/styles/glass/a11y-fallback.css +0 -188
- package/src/styles/glass/accent-tone.css +0 -66
- package/src/styles/glass/control-surfaces.css +0 -171
- package/src/styles/glass/deep.css +0 -114
- package/src/styles/glass/defined.css +0 -88
- package/src/styles/glass/glass-atom.css +0 -247
- package/src/styles/glass/glass-capsule.css +0 -175
- package/src/styles/glass/glass-chip.css +0 -211
- package/src/styles/glass/grain-overlay.css +0 -79
- package/src/styles/glass/ladder-undershadow.css +0 -61
- package/src/styles/glass/ladder.css +0 -452
- package/src/styles/glass/liquid-enter.css +0 -240
- package/src/styles/glass/liquid-fill.css +0 -65
- package/src/styles/glass/material-roles.css +0 -18
- package/src/styles/glass/material.css +0 -500
- package/src/styles/glass/progress-rail.css +0 -78
- package/src/styles/glass/reveal.css +0 -333
- package/src/styles/glass/rim.css +0 -122
- package/src/styles/glass/squircle.css +0 -58
- package/src/styles/glass/surface-axis.css +0 -136
- package/src/styles/glass/surfaces-pager.css +0 -79
- package/src/styles/glass/surfaces.css +0 -434
- package/src/styles/glass-refract.css +0 -112
- package/src/styles/glass-specular-track.css +0 -74
- package/src/styles/glass.css +0 -110
- package/src/styles/index.css +0 -288
- package/src/styles/paper.css +0 -187
- package/src/styles/scroll-choreography.css +0 -294
- package/src/styles/scroll-chrome.css +0 -123
- package/src/styles/scroll-driven.css +0 -123
- package/src/styles/theme/bridges.css +0 -380
- package/src/styles/theme/dark.css +0 -7
- package/src/styles/theme/literals.css +0 -104
- package/src/styles/theme/radius.css +0 -148
- package/src/styles/theme.css +0 -33
- package/src/styles/tokens/color-radius.css +0 -308
- package/src/styles/tokens/dark-arm-glass.css +0 -55
- package/src/styles/tokens/dark-arm.css +0 -455
- package/src/styles/tokens/glass-deep.css +0 -126
- package/src/styles/tokens/glass-fx.css +0 -480
- package/src/styles/tokens/glass.css +0 -477
- package/src/styles/tokens/light-dark.css +0 -216
- package/src/styles/tokens/motion-registers.css +0 -93
- package/src/styles/tokens/offsets.css +0 -142
- package/src/styles/tokens/on-glass-fg.css +0 -39
- package/src/styles/tokens/property-regs-specular.css +0 -160
- package/src/styles/tokens/property-regs.css +0 -448
- package/src/styles/tokens/scale-paper.css +0 -495
- package/src/styles/tokens/scheme-motion.css +0 -425
- package/src/styles/tokens/scheme-spring.css +0 -282
- package/src/styles/tokens/scroll-tokens.css +0 -137
- package/src/styles/tokens/shadow.css +0 -206
- package/src/styles/tokens/sizing-config.css +0 -110
- package/src/styles/tokens/sizing.css +0 -505
- package/src/styles/tokens.css +0 -68
- package/src/styles/tokens.ts +0 -58
- package/src/styles/transitions.css +0 -228
- package/src/styles/typography/scale.css +0 -166
- package/src/styles/typography/semantic.css +0 -233
- package/src/styles/typography/utilities.css +0 -197
- package/src/styles/typography.css +0 -46
- package/src/styles/utilities/a11y-overrides.css +0 -184
- package/src/styles/utilities/base-misc.css +0 -307
- package/src/styles/utilities/base.css +0 -337
- package/src/styles/utilities/btn.css +0 -306
- package/src/styles/utilities/components.css +0 -337
- package/src/styles/utilities/metal.css +0 -272
- package/src/styles/utilities.css +0 -24
- package/src/styles/view-transition.css +0 -67
- package/src/styles/viz-reveal.css +0 -63
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
- /package/dist/{compile-DK3Fri1B.js → compile-D7VYG3gi.js} +0 -0
- /package/dist/composables/glass/{webgl/shaders/procedural-color.glsl.d.ts → procedural/color.glsl.d.ts} +0 -0
- /package/dist/{components/aurora/constants/shaders/procedural-color.wgsl.d.ts → composables/glass/procedural/color.wgsl.d.ts} +0 -0
- /package/dist/composables/motion/{motionTempo.d.ts → core/motionTempo.d.ts} +0 -0
- /package/dist/composables/motion/{useIntersectionPause.d.ts → core/useIntersectionPause.d.ts} +0 -0
- /package/dist/composables/motion/{useRAFLoop.d.ts → core/useRAFLoop.d.ts} +0 -0
- /package/dist/composables/motion/{useYieldToMain.d.ts → core/useYieldToMain.d.ts} +0 -0
- /package/dist/composables/motion/{useAnimatedNumber.d.ts → number/useAnimatedNumber.d.ts} +0 -0
- /package/dist/composables/motion/{useAnimatedNumberMap.d.ts → number/useAnimatedNumberMap.d.ts} +0 -0
- /package/dist/composables/motion/{useCountup.d.ts → number/useCountup.d.ts} +0 -0
- /package/dist/composables/motion/{useRoutePointer.d.ts → pointer/useRoutePointer.d.ts} +0 -0
- /package/dist/composables/motion/{useTextHighlight.d.ts → reveal/useTextHighlight.d.ts} +0 -0
- /package/dist/composables/motion/{vReveal.d.ts → reveal/vReveal.d.ts} +0 -0
- /package/dist/composables/motion/{scrollReader.d.ts → scroll/scrollReader.d.ts} +0 -0
- /package/dist/composables/motion/{supportsCssTimeline.d.ts → scroll/supportsCssTimeline.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollPin.d.ts → scroll/useScrollPin.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollScene.d.ts → scroll/useScrollScene.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollTrigger.d.ts → scroll/useScrollTrigger.d.ts} +0 -0
- /package/dist/composables/motion/{useSpringPress.d.ts → spring/useSpringPress.d.ts} +0 -0
- /package/dist/{createContext-FU0n5MGK.js → createContext-BhkE9mLH.js} +0 -0
- /package/dist/{dark-DIH-blY1.js → dark-z_P5QwqI.js} +0 -0
- /package/dist/{motionTempo-CMS5b0Vu.js → motionTempo-tscp92Nm.js} +0 -0
- /package/dist/{prng-Dz2_9RJu.js → prng-2uS6J_A1.js} +0 -0
- /package/dist/{rendererStatus-C2-zC2Q-.js → rendererStatus-BxUlBLVy.js} +0 -0
- /package/dist/{useDragVelocity-CbMZEBaC.js → useDragVelocity-6ONX0sr0.js} +0 -0
- /package/dist/{useFuzzySearch-BOgep7RE.js → useFuzzySearch-CUnZknpm.js} +0 -0
- /package/dist/{useResizeObserver-BcUTquV7.js → useResizeObserver-CdUlm2QZ.js} +0 -0
- /package/dist/{useResolveTokenColor-C07e-qaT.js → useResolveTokenColor-B2FfJnd9.js} +0 -0
- /package/dist/{useTimer-D8koDvJS.js → useTimer-C3yfti4C.js} +0 -0
- /package/dist/{useUserInvalidAria-Cr4nR3tu.js → useUserInvalidAria-0GNrddMX.js} +0 -0
- /package/dist/{valueDomain-B8L04u3U.js → valueDomain-SbVzoHMH.js} +0 -0
- /package/dist/{writeVelocityWeight-D_AcvTsE.js → writeVelocityWeight-DoGOCW3e.js} +0 -0
package/dist/liquid-grid.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-
|
|
2
|
-
import { t } from "./usePointerVelocityField-
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
+
import { t } from "./usePointerVelocityField-DsIf7yyq.js";
|
|
3
3
|
import { cssToOklch as n, oklchToLinear as r } from "./color.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { computed as
|
|
4
|
+
import { m as i, n as a, o, u as s } from "./color.wgsl-Ct5o9dpf.js";
|
|
5
|
+
import { a as c } from "./rendererStatus-BxUlBLVy.js";
|
|
6
|
+
import { n as l, t as u } from "./flow.wgsl-Cd2GUkPx.js";
|
|
7
|
+
import { computed as d, createElementBlock as f, createElementVNode as p, defineComponent as m, normalizeStyle as h, onMounted as g, onScopeDispose as _, openBlock as v, reactive as y, readonly as b, shallowRef as x, useTemplateRef as S, watch as C } from "vue";
|
|
8
8
|
//#region src/composables/glass/wave/waveField.ts
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let o = ((e.x * n.x + e.y * n.y) * r - t * i) /
|
|
9
|
+
var w = Math.PI * 2;
|
|
10
|
+
function T(e, t, n, r, i, a) {
|
|
11
|
+
let o = ((e.x * n.x + e.y * n.y) * r - t * i) / w;
|
|
12
12
|
o -= Math.floor(o);
|
|
13
13
|
let s = (o - .5) * 2;
|
|
14
14
|
return Math.exp(-(s * s) / Math.max(a, .001));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function E(e, t, n, r, i, a, o) {
|
|
17
|
+
return T(e, t, n, r, i, a) * o;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
let c = Math.max(t, .001) * .5, l =
|
|
19
|
+
function D(e, t, n, r, i, a, o, s) {
|
|
20
|
+
let c = Math.max(t, .001) * .5, l = E({
|
|
21
21
|
x: e.x + c,
|
|
22
22
|
y: e.y
|
|
23
|
-
}, n, r, i, a, o, s), u =
|
|
23
|
+
}, n, r, i, a, o, s), u = E({
|
|
24
24
|
x: e.x - c,
|
|
25
25
|
y: e.y
|
|
26
|
-
}, n, r, i, a, o, s), d =
|
|
26
|
+
}, n, r, i, a, o, s), d = E({
|
|
27
27
|
x: e.x,
|
|
28
28
|
y: e.y + c
|
|
29
|
-
}, n, r, i, a, o, s), f =
|
|
29
|
+
}, n, r, i, a, o, s), f = E({
|
|
30
30
|
x: e.x,
|
|
31
31
|
y: e.y - c
|
|
32
32
|
}, n, r, i, a, o, s);
|
|
@@ -35,23 +35,23 @@ function E(e, t, n, r, i, a, o, s) {
|
|
|
35
35
|
y: (d - f) / (2 * c)
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function O(e, t, n) {
|
|
39
39
|
let r = 1 - Math.abs((e.x - Math.floor(e.x)) * 2 - 1), i = 1 - Math.abs((e.y - Math.floor(e.y)) * 2 - 1), a = Math.min(r, i), o = Math.max(n.x, n.y) * 1.5, s = t, c = t + 2 * o, l = Math.max(c - s, 1e-6), u = Math.min(Math.max((a - s) / l, 0), 1);
|
|
40
40
|
return u * u * (3 - 2 * u);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function k(e, t, n, r) {
|
|
43
43
|
let i = e.x - t.x, a = e.y - t.y, o = i * i + a * a, s = Math.max(r, 1e-4), c = n * Math.exp(-o / (2 * s * s)), l = Math.cos(c), u = Math.sin(c);
|
|
44
44
|
return {
|
|
45
45
|
x: t.x + (l * i - u * a),
|
|
46
46
|
y: t.y + (u * i + l * a)
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
let u =
|
|
49
|
+
var A = 1.833333;
|
|
50
|
+
function j(e, t, n, r, i, a, o, s, c, l = .6) {
|
|
51
|
+
let u = T(t, n, r, i, a, o) * c, d = e({
|
|
52
52
|
x: t.x * l + n * .05,
|
|
53
53
|
y: t.y * l - n * .04
|
|
54
|
-
}), f = l *
|
|
54
|
+
}), f = l * A, p = e({
|
|
55
55
|
x: t.x * f - n * .03,
|
|
56
56
|
y: t.y * f + n * .035
|
|
57
57
|
}), m = s * u;
|
|
@@ -63,8 +63,8 @@ function A(e, t, n, r, i, a, o, s, c, l = .6) {
|
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/components/liquid-grid/composables/liquidGrid.ts
|
|
65
65
|
Math.PI * 2;
|
|
66
|
-
var
|
|
67
|
-
function
|
|
66
|
+
var M = .012, N = .03;
|
|
67
|
+
function P(e, t) {
|
|
68
68
|
let n = e * .1031 % 1, r = t * .1031 % 1, i = e * .1031 % 1;
|
|
69
69
|
n < 0 && (n += 1), r < 0 && (r += 1), i < 0 && (i += 1);
|
|
70
70
|
let a = n * (r + 33.33) + r * (i + 33.33) + i * (n + 33.33);
|
|
@@ -72,71 +72,71 @@ function N(e, t) {
|
|
|
72
72
|
let o = (n + r) * i % 1;
|
|
73
73
|
return o < 0 && (o += 1), o;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function F(e, t, n) {
|
|
76
76
|
return e + (t - e) * n;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
let n = Math.floor(e), r = Math.floor(t), i = e - n, a = t - r, o = i * i * i * (i * (i * 6 - 15) + 10), s = a * a * a * (a * (a * 6 - 15) + 10), c =
|
|
80
|
-
return
|
|
78
|
+
function I(e, t) {
|
|
79
|
+
let n = Math.floor(e), r = Math.floor(t), i = e - n, a = t - r, o = i * i * i * (i * (i * 6 - 15) + 10), s = a * a * a * (a * (a * 6 - 15) + 10), c = P(n, r), l = P(n + 1, r), u = P(n, r + 1), d = P(n + 1, r + 1);
|
|
80
|
+
return F(F(c, l, o), F(u, d, o), s);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function L(e) {
|
|
83
83
|
let t = 0, n = .5, r = 1, i = e.x, a = e.y;
|
|
84
84
|
for (let e = 0; e < 3; e++) {
|
|
85
|
-
t += n *
|
|
85
|
+
t += n * I(i * r, a * r);
|
|
86
86
|
let e = .8 * i - .6 * a, o = .6 * i + .8 * a;
|
|
87
87
|
i = e, a = o, r *= 2, n *= .5;
|
|
88
88
|
}
|
|
89
89
|
return t;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
let t =
|
|
93
|
-
x: e.x +
|
|
91
|
+
function R(e) {
|
|
92
|
+
let t = L({
|
|
93
|
+
x: e.x + M,
|
|
94
94
|
y: e.y
|
|
95
|
-
}) -
|
|
96
|
-
x: e.x -
|
|
95
|
+
}) - L({
|
|
96
|
+
x: e.x - M,
|
|
97
97
|
y: e.y
|
|
98
|
-
}), n =
|
|
98
|
+
}), n = L({
|
|
99
99
|
x: e.x,
|
|
100
|
-
y: e.y +
|
|
101
|
-
}) -
|
|
100
|
+
y: e.y + M
|
|
101
|
+
}) - L({
|
|
102
102
|
x: e.x,
|
|
103
|
-
y: e.y -
|
|
104
|
-
}), r = t / (2 *
|
|
103
|
+
y: e.y - M
|
|
104
|
+
}), r = t / (2 * M);
|
|
105
105
|
return {
|
|
106
|
-
x: n / (2 *
|
|
106
|
+
x: n / (2 * M),
|
|
107
107
|
y: -r
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function z(e, t, n) {
|
|
111
111
|
let r = t - e, i = Math.abs(r) < 1e-9 ? r < 0 ? -1e-9 : 1e-9 : r, a = Math.min(Math.max((n - e) / i, 0), 1);
|
|
112
112
|
return a * a * (3 - 2 * a);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function B(e, t, n) {
|
|
115
115
|
return Math.min(Math.max(e, t), n);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
let r = 1 - Math.abs((e.x - Math.floor(e.x)) * 2 - 1), i = 1 - Math.abs((e.y - Math.floor(e.y)) * 2 - 1), a =
|
|
119
|
-
return l *=
|
|
117
|
+
function V(e, t, n) {
|
|
118
|
+
let r = 1 - Math.abs((e.x - Math.floor(e.x)) * 2 - 1), i = 1 - Math.abs((e.y - Math.floor(e.y)) * 2 - 1), a = B(t, n.x, .5), o = B(t, n.y, .5), s = n.x * 1.5, c = n.y * 1.5, l = z(a + s, a - s, r), u = z(o + c, o - c, i);
|
|
119
|
+
return l *= B(t / Math.max(a, 1e-6), 0, 1), u *= B(t / Math.max(o, 1e-6), 0, 1), l = F(l, t, B(n.x * 2 - 1, 0, 1)), u = F(u, t, B(n.y * 2 - 1, 0, 1)), Math.max(l, u);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
let r =
|
|
121
|
+
function H(e, t, n) {
|
|
122
|
+
let r = j(R, {
|
|
123
123
|
x: e.x * n.gridScale,
|
|
124
124
|
y: e.y * n.gridScale
|
|
125
|
-
}, t, n.waveDir, n.waveK, n.waveOmega, n.waveSigma, n.twistMax, n.amp,
|
|
126
|
-
n.interactive > .5 && (r =
|
|
127
|
-
let i =
|
|
125
|
+
}, t, n.waveDir, n.waveK, n.waveOmega, n.waveSigma, n.twistMax, n.amp, N);
|
|
126
|
+
n.interactive > .5 && (r = k(r, n.cursor, n.bulgeStrength * n.bulgeMode, n.bulgeRadius));
|
|
127
|
+
let i = V(r, n.targetWidth, n.uvDeriv), a = Math.max(n.majorEvery, 1), o = {
|
|
128
128
|
x: r.x / a,
|
|
129
129
|
y: r.y / a
|
|
130
130
|
}, s = {
|
|
131
131
|
x: n.uvDeriv.x / a,
|
|
132
132
|
y: n.uvDeriv.y / a
|
|
133
|
-
}, c =
|
|
133
|
+
}, c = V(o, n.targetWidthMajor, s), l = Math.max(i * n.minorAlpha, c * n.majorAlpha), u = n.faceAlpha ?? 0, d = n.faceReliefGain ?? 0, f = n.squashK ?? 0, p = n.baseInset ?? 0, m = n.lightDir ?? {
|
|
134
134
|
x: .6,
|
|
135
135
|
y: .8
|
|
136
136
|
}, h = {
|
|
137
137
|
x: Math.floor(r.x) + .5,
|
|
138
138
|
y: Math.floor(r.y) + .5
|
|
139
|
-
}, g =
|
|
139
|
+
}, g = E(h, t, n.waveDir, n.waveK, n.waveOmega, n.waveSigma, n.amp), _ = D(h, 1, t, n.waveDir, n.waveK, n.waveOmega, n.waveSigma, n.amp), v = -_.x * d, y = -_.y * d, b = Math.hypot(v, y, 1), x = Math.hypot(m.x, m.y) || 1, S = B(.5 + (v * m.x + y * m.y) / (b * x) * .5, 0, 1), C = p * (1 - f * g), w = O(r, C, n.uvDeriv), T = w * u * n.fieldAlpha, A = B(S * .5 + g * .5, 0, 1);
|
|
140
140
|
return {
|
|
141
141
|
line: l,
|
|
142
142
|
alpha: l * n.fieldAlpha,
|
|
@@ -145,17 +145,17 @@ function ee(e, t, n) {
|
|
|
145
145
|
h: g,
|
|
146
146
|
shade: S,
|
|
147
147
|
faceCov: w,
|
|
148
|
-
faceA:
|
|
149
|
-
rampT:
|
|
148
|
+
faceA: T,
|
|
149
|
+
rampT: A
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function U(e, t) {
|
|
154
154
|
return e / Math.max(t, 1);
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/components/liquid-grid/shaders/liquid-grid.wgsl.ts
|
|
158
|
-
var
|
|
158
|
+
var W = `
|
|
159
159
|
const TAU: f32 = 6.283185307179586;
|
|
160
160
|
|
|
161
161
|
// ── Paper-grid uniforms (the typed-struct source-of-truth — see uniformBridgeWGPU.ts) ──
|
|
@@ -182,17 +182,17 @@ struct LiquidGridUniforms {
|
|
|
182
182
|
wave: vec4<f32>,
|
|
183
183
|
// wave2: (waveSigma, twistMax, _pad, amp) — the affine sheet-warp envelope (amp: spring-eased)
|
|
184
184
|
wave2: vec4<f32>,
|
|
185
|
-
// faceLo: (rose-umber trough
|
|
185
|
+
// faceLo: (rose-umber trough.rgb (linear), _pad) — the warm-divergent ramp (FOLD B, 3-stop)
|
|
186
186
|
faceLo: vec4<f32>,
|
|
187
|
-
// faceMid: (ember-amber mid
|
|
187
|
+
// faceMid: (ember-amber mid.rgb (linear), _pad)
|
|
188
188
|
faceMid: vec4<f32>,
|
|
189
|
-
// faceHi: (warm-wheat crest
|
|
189
|
+
// faceHi: (warm-wheat crest.rgb (linear), _pad)
|
|
190
190
|
faceHi: vec4<f32>,
|
|
191
191
|
};
|
|
192
192
|
|
|
193
193
|
@group(0) @binding(0) var<uniform> u: LiquidGridUniforms;
|
|
194
194
|
|
|
195
|
-
${
|
|
195
|
+
${a}
|
|
196
196
|
|
|
197
197
|
// ── The host noise basis (transcribes liquidGrid.ts hash21/valueNoise/potentialFBM) ──
|
|
198
198
|
// A quintic-faded 2D value-noise fbm potential — the SAME basis the dot-flow-field carries
|
|
@@ -244,19 +244,7 @@ fn potentialFBM(p: vec2f) -> f32 {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
// The shared divergence-free 2D-curl operator (flow.wgsl.ts — the FIRST WGSL curl consumer).
|
|
247
|
-
|
|
248
|
-
const CURL_EPS: f32 = 0.012;
|
|
249
|
-
|
|
250
|
-
// ∇×ψ in 2D — the divergence-free flow direction. Central finite differences of the
|
|
251
|
-
// scalar potential give the partials; the cross-pairing (∂y, −∂x) is the 2D curl.
|
|
252
|
-
fn curlFBM(p: vec2f) -> vec2f {
|
|
253
|
-
let dx = potentialFBM(p + vec2f(CURL_EPS, 0.0)) - potentialFBM(p - vec2f(CURL_EPS, 0.0));
|
|
254
|
-
let dy = potentialFBM(p + vec2f(0.0, CURL_EPS)) - potentialFBM(p - vec2f(0.0, CURL_EPS));
|
|
255
|
-
// ψ-gradient is (dx, dy)/(2·eps); the curl rotates it 90°: (∂ψ/∂y, −∂ψ/∂x).
|
|
256
|
-
let g = vec2f(dx, dy) / (2.0 * CURL_EPS);
|
|
257
|
-
return vec2f(g.y, -g.x);
|
|
258
|
-
}
|
|
259
|
-
|
|
247
|
+
${u}
|
|
260
248
|
|
|
261
249
|
// The shared traveling-wave WARP chunk (waveField.wgsl.ts — waveFlow/cursorSwirl/
|
|
262
250
|
// travelingEnvelope + the FACE leaf; splices AFTER valueNoise + curlFBM are declared). liquid-grid
|
|
@@ -299,7 +287,7 @@ fn cellHeight(cc: vec2f, t: f32, waveDir: vec2f, waveK: f32, waveOmega: f32, wav
|
|
|
299
287
|
|
|
300
288
|
// The pre-twist driver (FOLD A): the cell pivot cc + the crest envelope env the twist AND the
|
|
301
289
|
// face both ride. The face samples height/relief at THIS pre-twist cc (the crest twist crosses
|
|
302
|
-
// the cell boundary → floor(twisted_g) would light a
|
|
290
|
+
// the cell boundary → floor(twisted_g) would light a neighbouring cell). cc is in .xy and env in .z.
|
|
303
291
|
fn cellDriver(g: vec2f, cellSize: f32, t: f32, waveDir: vec2f, waveK: f32, waveOmega: f32,
|
|
304
292
|
waveSigma: f32, amp: f32) -> vec3f {
|
|
305
293
|
let cs = max(cellSize, 1e-3);
|
|
@@ -352,9 +340,9 @@ fn cellTwist(g: vec2f, cellSize: f32, t: f32, waveDir: vec2f, waveK: f32, waveOm
|
|
|
352
340
|
|
|
353
341
|
// The CONTINUOUS traveling-wave FLOW warp — the SMOOTH twin of cellTwist (no per-cell seam;
|
|
354
342
|
// for the level-set contours that shatter into a mesh under the cell discontinuity).
|
|
355
|
-
//
|
|
343
|
+
// warpFreq is the host-supplied curl-sampling spatial frequency (the caller's
|
|
356
344
|
// own coordinate units): an order of magnitude BELOW its grid frequency so the warp is locally
|
|
357
|
-
// affine (major lines bow as
|
|
345
|
+
// affine (major lines bow as one smooth curve, no sub-cell crackle). LiquidGrid (cell-scale g0)
|
|
358
346
|
// passes ~0.03; concentric (unit-scale p) passes 0.6. The 1.833333 second-flow ratio transcribes
|
|
359
347
|
// WAVE_FLOW_SECOND_RATIO. Amplitude unchanged — curl magnitude is the intrinsic gradient at the
|
|
360
348
|
// fixed CURL_EPS, independent of warpFreq; the t-drift is host-agnostic.
|
|
@@ -407,7 +395,7 @@ fn waveSwell(t: f32, phase: f32) -> f32 {
|
|
|
407
395
|
|
|
408
396
|
|
|
409
397
|
// ── §1 The crisp line: Ben Golus derivative-AA grid coverage (transcribes gridCoverage) ──
|
|
410
|
-
// targetWidth is the line half-width in
|
|
398
|
+
// targetWidth is the line half-width in grid units (lineWidthPx / minorPitchPx); uvDeriv is
|
|
411
399
|
// the per-axis screen-space derivative of g (length(vec2(dpdx, dpdy)) per axis). Returns
|
|
412
400
|
// line coverage [0..1] — exactly N device-pixels wide at ANY DPR/zoom (the blur-kill).
|
|
413
401
|
fn gridCoverage(g: vec2f, targetWidth: f32, uvDeriv: vec2f) -> f32 {
|
|
@@ -470,12 +458,12 @@ fn fs_main(in: VSOut) -> @location(0) vec4f {
|
|
|
470
458
|
// no per-cell seam); cursorSwirl twists the cells about the finger. The Golus dv reads the FINAL
|
|
471
459
|
// warped coord (the crisp-line fence survives).
|
|
472
460
|
let g0 = uv * gridScale;
|
|
473
|
-
//
|
|
461
|
+
// g0 is CELL-scale, so pass the tiny 0.03 curl-sampling frequency (== the JS
|
|
474
462
|
// LIQUID_GRID_WARP_FREQ) so the warp is locally affine at the cell scale (major lines bow as ONE
|
|
475
463
|
// smooth curve, no sub-cell crackle). Concentric passes 0.6 (its p is unit-scale).
|
|
476
464
|
var g = waveFlow(g0, t, u.wave.xy, u.wave.z, u.wave.w, u.wave2.x, u.wave2.y, u.wave2.w, 0.03);
|
|
477
465
|
if (u.cursor2.y > 0.5) {
|
|
478
|
-
// bulgeMode (cursor2.x: +repel
|
|
466
|
+
// bulgeMode (cursor2.x: +repel, −attract) signs the swirl direction.
|
|
479
467
|
g = cursorSwirl(g, u.cursor.xy, u.cursor.z * u.cursor2.x, u.cursor.w);
|
|
480
468
|
}
|
|
481
469
|
|
|
@@ -487,12 +475,12 @@ fn fs_main(in: VSOut) -> @location(0) vec4f {
|
|
|
487
475
|
);
|
|
488
476
|
|
|
489
477
|
let minor = gridCoverage(g, u.grid.x, dv);
|
|
490
|
-
// The major tier
|
|
478
|
+
// The major tier evaluates at g / majorEvery with its own derivative scaling.
|
|
491
479
|
let me = max(u.u0.w, 1.0);
|
|
492
480
|
let major = gridCoverage(g / me, u.grid.y, dv / me);
|
|
493
481
|
let line = max(minor * u.grid.z, major * u.grid.w);
|
|
494
482
|
|
|
495
|
-
// ── The FACE
|
|
483
|
+
// ── The FACE — height-lit filled cell interior ──────────────────
|
|
496
484
|
// Sample height/relief at the WARPED-space cell center (floor(g)+0.5, the cell the fragment
|
|
497
485
|
// lands in under the affine warp); Lambert the ∇H slope against the fixed cel key-light; squash
|
|
498
486
|
// the inset so the crest face inflates; multi-stop warm-divergent ramp keyed on mix(shade, h)
|
|
@@ -520,7 +508,7 @@ fn fs_main(in: VSOut) -> @location(0) vec4f {
|
|
|
520
508
|
}
|
|
521
509
|
// transparent ground: the FACE composites UNDER the line, the SOURCE-OVER operator in
|
|
522
510
|
// PREMULTIPLIED space (the page reads through the gutters). faceAlpha:0 → faceA=0 → the face
|
|
523
|
-
// term vanishes → vec4f(col·line, line) =
|
|
511
|
+
// term vanishes → vec4f(col·line, line) = the line-only render.
|
|
524
512
|
let linePremult = (col * line) * u.field.x; // line layer (the FieldAlpha global subtlety)
|
|
525
513
|
let lineA = line * u.field.x;
|
|
526
514
|
let facePremult = faceInk * faceA; // face layer premultiplied (faceA folds field.x)
|
|
@@ -528,7 +516,7 @@ fn fs_main(in: VSOut) -> @location(0) vec4f {
|
|
|
528
516
|
let a = lineA + faceA * (1.0 - lineA);
|
|
529
517
|
return vec4f(outPremult, a); // premultiplied over transparent
|
|
530
518
|
}
|
|
531
|
-
`,
|
|
519
|
+
`, G = {
|
|
532
520
|
u0: 0,
|
|
533
521
|
face: 4,
|
|
534
522
|
warp2: 8,
|
|
@@ -544,48 +532,48 @@ fn fs_main(in: VSOut) -> @location(0) vec4f {
|
|
|
544
532
|
faceMid: 48,
|
|
545
533
|
faceHi: 52
|
|
546
534
|
};
|
|
547
|
-
function
|
|
535
|
+
function K() {
|
|
548
536
|
let e = /* @__PURE__ */ new ArrayBuffer(224);
|
|
549
537
|
return {
|
|
550
538
|
buffer: e,
|
|
551
539
|
f32: new Float32Array(e)
|
|
552
540
|
};
|
|
553
541
|
}
|
|
554
|
-
function
|
|
555
|
-
let { f32: c } = e, l =
|
|
556
|
-
c[
|
|
542
|
+
function ee(e, t, n, i, a, o, s) {
|
|
543
|
+
let { f32: c } = e, l = U(a, t.cellSize);
|
|
544
|
+
c[G.u0 + 0] = n, c[G.u0 + 1] = l, c[G.u0 + 2] = t.cellSize, c[G.u0 + 3] = t.majorEvery, c[G.face + 0] = t.faceAlpha, c[G.face + 1] = t.faceRelief, c[G.face + 2] = t.squashK, c[G.face + 3] = t.baseInset, c[G.warp2 + 0] = 0, c[G.warp2 + 1] = i, c[G.warp2 + 2] = t.lightDir[0], c[G.warp2 + 3] = t.lightDir[1];
|
|
557
545
|
let u = Math.max(t.cellSize, 1), d = t.lineWidth / u, f = t.lineWidth * 1.6 / u;
|
|
558
|
-
c[
|
|
546
|
+
c[G.grid + 0] = d, c[G.grid + 1] = f, c[G.grid + 2] = t.minorAlpha, c[G.grid + 3] = t.majorAlpha;
|
|
559
547
|
let p = t.background === "transparent" ? 0 : 1;
|
|
560
|
-
c[
|
|
548
|
+
c[G.field + 0] = t.fieldAlpha, c[G.field + 1] = p, c[G.field + 2] = 0, c[G.field + 3] = 0, c[G.cursor + 0] = o.x, c[G.cursor + 1] = o.y, c[G.cursor + 2] = t.bulgeStrength, c[G.cursor + 3] = t.bulgeRadius, c[G.cursor2 + 0] = t.bulgeMode === "attract" ? -1 : 1, c[G.cursor2 + 1] = +!!t.interactive, c[G.cursor2 + 2] = 0, c[G.cursor2 + 3] = 0;
|
|
561
549
|
let m = r(t.lineColor);
|
|
562
|
-
if (c[
|
|
550
|
+
if (c[G.line + 0] = m[0], c[G.line + 1] = m[1], c[G.line + 2] = m[2], c[G.line + 3] = 0, t.background === "transparent") c[G.bg + 0] = 0, c[G.bg + 1] = 0, c[G.bg + 2] = 0, c[G.bg + 3] = 0;
|
|
563
551
|
else {
|
|
564
552
|
let e = r(t.background);
|
|
565
|
-
c[
|
|
553
|
+
c[G.bg + 0] = e[0], c[G.bg + 1] = e[1], c[G.bg + 2] = e[2], c[G.bg + 3] = 0;
|
|
566
554
|
}
|
|
567
|
-
c[
|
|
555
|
+
c[G.wave + 0] = t.waveDir[0], c[G.wave + 1] = t.waveDir[1], c[G.wave + 2] = t.waveK, c[G.wave + 3] = t.waveOmega, c[G.wave2 + 0] = t.waveSigma, c[G.wave2 + 1] = t.twistMax, c[G.wave2 + 2] = 0, c[G.wave2 + 3] = s;
|
|
568
556
|
let h = r(t.faceWarmLo), g = r(t.faceWarmMid), _ = r(t.faceWarmHi);
|
|
569
|
-
return c[
|
|
557
|
+
return c[G.faceLo + 0] = h[0], c[G.faceLo + 1] = h[1], c[G.faceLo + 2] = h[2], c[G.faceLo + 3] = 0, c[G.faceMid + 0] = g[0], c[G.faceMid + 1] = g[1], c[G.faceMid + 2] = g[2], c[G.faceMid + 3] = 0, c[G.faceHi + 0] = _[0], c[G.faceHi + 1] = _[1], c[G.faceHi + 2] = _[2], c[G.faceHi + 3] = 0, e;
|
|
570
558
|
}
|
|
571
559
|
//#endregion
|
|
572
560
|
//#region src/components/liquid-grid/composables/liquidGridWGPUSetup.ts
|
|
573
|
-
var
|
|
574
|
-
function
|
|
561
|
+
var te = 2;
|
|
562
|
+
function ne(e) {
|
|
575
563
|
let { canvas: t, config: n, getCursor: r, getAmp: i, shouldContinue: a, onFrame: o } = e;
|
|
576
564
|
return function(e, s, c) {
|
|
577
565
|
let l = e.createShaderModule({
|
|
578
566
|
label: "[LiquidGrid] liquid-grid.wgsl",
|
|
579
|
-
code:
|
|
580
|
-
}), u =
|
|
567
|
+
code: W
|
|
568
|
+
}), u = K(), d = e.createBuffer({
|
|
581
569
|
label: "[LiquidGrid] uniforms",
|
|
582
570
|
size: u.buffer.byteLength,
|
|
583
|
-
usage:
|
|
571
|
+
usage: 72
|
|
584
572
|
}), f = e.createBindGroupLayout({
|
|
585
573
|
label: "[LiquidGrid] bgl",
|
|
586
574
|
entries: [{
|
|
587
575
|
binding: 0,
|
|
588
|
-
visibility:
|
|
576
|
+
visibility: te,
|
|
589
577
|
buffer: { type: "uniform" }
|
|
590
578
|
}]
|
|
591
579
|
}), p = e.createRenderPipeline({
|
|
@@ -625,9 +613,11 @@ function re(e) {
|
|
|
625
613
|
});
|
|
626
614
|
function h(e) {}
|
|
627
615
|
function g(a) {
|
|
628
|
-
o?.(a)
|
|
629
|
-
let c =
|
|
630
|
-
|
|
616
|
+
o?.(a);
|
|
617
|
+
let c = t.width / Math.max(t.height, 1), l = t.height || 1;
|
|
618
|
+
ee(u, n, a, c, l, r(), i()), e.queue.writeBuffer(d, 0, u.buffer);
|
|
619
|
+
let f = e.createCommandEncoder({ label: "[LiquidGrid] frame" }), h = s.getCurrentTexture().createView(), g = f.beginRenderPass({ colorAttachments: [{
|
|
620
|
+
view: h,
|
|
631
621
|
clearValue: {
|
|
632
622
|
r: 0,
|
|
633
623
|
g: 0,
|
|
@@ -637,7 +627,7 @@ function re(e) {
|
|
|
637
627
|
loadOp: "clear",
|
|
638
628
|
storeOp: "store"
|
|
639
629
|
}] });
|
|
640
|
-
|
|
630
|
+
g.setPipeline(p), g.setBindGroup(0, m), g.draw(3, 1, 0, 0), g.end(), e.queue.submit([f.finish()]);
|
|
641
631
|
}
|
|
642
632
|
return {
|
|
643
633
|
frame: g,
|
|
@@ -651,7 +641,7 @@ function re(e) {
|
|
|
651
641
|
}
|
|
652
642
|
//#endregion
|
|
653
643
|
//#region src/composables/glass/wave/waveField.glsl.ts
|
|
654
|
-
var
|
|
644
|
+
var re = "\n#ifndef WAVE_FIELD_TAU\n#define WAVE_FIELD_TAU 6.283185307179586\n#endif\n\n// The traveling-wave envelope — a moving Gaussian crest band sweeping along waveDir.\nfloat travelingEnvelope(vec2 pivot, float t, vec2 waveDir, float waveK, float waveOmega, float waveSigma) {\n float coord = dot(pivot, waveDir) * waveK - t * waveOmega;\n float crest = fract(coord / WAVE_FIELD_TAU);\n float z = (crest - 0.5) * 2.0;\n return exp(-(z * z) / max(waveSigma, 1e-3));\n}\n\n// The curl-direction scalar — the smooth low-freq director the per-cell twist follows.\nfloat curlScalar(vec2 cc, float t) {\n vec2 f = curlFBM(vec2(cc.x * 0.5 + t * 0.08, cc.y * 0.5 - t * 0.06));\n return clamp(f.x, -1.0, 1.0);\n}\n\n// The directed-twist FLOOR (the visibility cure): keep the curl SIGN (adjacent cells lean\n// together) but floor the magnitude so a crest-band cell ALWAYS rotates decisively.\n#ifndef WAVE_FIELD_TWIST_FLOOR\n#define WAVE_FIELD_TWIST_FLOOR 0.62\n#endif\nfloat directedTwist(float s, float floorMag) {\n float mag = max(floorMag, abs(s));\n float sgn = tanh(s * 6.0);\n return sgn * mag;\n}\n\n// ── The FACE leaf (the structurally-absent RE-INVENT — height-lit filled cell interior) ──\n// Defined ABOVE cellTwist: cellTwist rides cellHeight via the driver so twist + face read ONE\n// envelope.\n\n// The sheet displacement at a cell center = the EXACT traveling-wave scalar the twist rides.\nfloat cellHeight(vec2 cc, float t, vec2 waveDir, float waveK, float waveOmega, float waveSigma, float amp) {\n return travelingEnvelope(cc, t, waveDir, waveK, waveOmega, waveSigma) * amp;\n}\n\n// The pre-twist driver (FOLD A): the cell pivot cc + the crest envelope env the twist AND the\n// face both ride. The face samples height/relief at THIS pre-twist cc (floor(twisted_g) at the\n// crest lights a neighbouring cell). cc is in .xy and env in .z.\nvec3 cellDriver(vec2 g, float cellSize, float t, vec2 waveDir, float waveK, float waveOmega,\n float waveSigma, float amp) {\n float cs = max(cellSize, 1e-3);\n vec2 cc = (floor(g / cs) + 0.5) * cs;\n float env = cellHeight(cc, t, waveDir, waveK, waveOmega, waveSigma, amp);\n return vec3(cc, env);\n}\n\n// The central-difference slope of cellHeight across a cell (eps = 0.5·cellSize) — derivative-\n// FREE (NO dFdx on the height) → Safari WebGL2-safe. Returns ∇H.\nvec2 faceRelief(vec2 cc, float cellSize, float t, vec2 waveDir, float waveK, float waveOmega,\n float waveSigma, float amp) {\n float eps = max(cellSize, 1e-3) * 0.5;\n float hxp = cellHeight(cc + vec2(eps, 0.0), t, waveDir, waveK, waveOmega, waveSigma, amp);\n float hxm = cellHeight(cc - vec2(eps, 0.0), t, waveDir, waveK, waveOmega, waveSigma, amp);\n float hyp = cellHeight(cc + vec2(0.0, eps), t, waveDir, waveK, waveOmega, waveSigma, amp);\n float hym = cellHeight(cc - vec2(0.0, eps), t, waveDir, waveK, waveOmega, waveSigma, amp);\n return vec2((hxp - hxm) / (2.0 * eps), (hyp - hym) / (2.0 * eps));\n}\n\n// Soft inset-square coverage inside a (warped) cell — the filled FACE plateau. d is the distance\n// into the cell from the nearest gutter (the Golus triangle-wave); the inset retreats as it grows\n// (the squash). aa = the shader's fwidth(g) (JS passes a fixed uvDeriv).\nfloat facePlateau(vec2 g, float inset, vec2 uvDeriv) {\n vec2 tri = 1.0 - abs(fract(g) * 2.0 - 1.0);\n float d = min(tri.x, tri.y);\n float aa = max(uvDeriv.x, uvDeriv.y) * 1.5;\n return smoothstep(inset, inset + 2.0 * aa, d);\n}\n\n// The cell-local twist about each cell's own center, gated by the traveling wave + directed\n// by the curl flow. amp is the spring-eased envelope amplitude the JS host drives. FOLD C: the\n// TWIST_FLOOR is crest-gated by env so OFF-crest cells relax to flat calm paper (the traveling\n// read, not static foil).\nvec2 cellTwist(vec2 g, float cellSize, float t, vec2 waveDir, float waveK, float waveOmega,\n float waveSigma, float twistMax, float shearMax, float amp) {\n vec3 drv = cellDriver(g, cellSize, t, waveDir, waveK, waveOmega, waveSigma, amp);\n vec2 cc = drv.xy;\n float env = drv.z;\n float floorMag = WAVE_FIELD_TWIST_FLOOR * env; // FOLD C: crest-gated floor\n float theta = twistMax * env * directedTwist(curlScalar(cc, t), floorMag);\n float shear = shearMax * env * directedTwist(curlScalar(cc + vec2(17.3, 9.1), t), floorMag);\n vec2 local = g - cc;\n float ct = cos(theta);\n float st = sin(theta);\n vec2 rot = vec2(ct * local.x - st * local.y, st * local.x + ct * local.y);\n rot.x += shear * rot.y; // a small skew so the box MORPHS, not just rotates\n return cc + rot;\n}\n\n// The CONTINUOUS traveling-wave FLOW warp — the SMOOTH twin of cellTwist (no per-cell seam;\n// for the level-set contours that shatter into a mesh under the cell discontinuity).\n// warpFreq is the host-supplied curl-sampling spatial frequency (the caller's\n// own coordinate units): an order of magnitude BELOW its grid frequency so the warp is locally\n// affine (major lines bow as one smooth curve, no sub-cell crackle). LiquidGrid (cell-scale g0)\n// passes ~0.03; concentric (unit-scale p) passes 0.6. The 1.833333 second-flow ratio transcribes\n// WAVE_FLOW_SECOND_RATIO. Amplitude unchanged — curl magnitude is the intrinsic gradient at the\n// fixed CURL_EPS, independent of warpFreq; the t-drift is host-agnostic.\nvec2 waveFlow(vec2 g, float t, vec2 waveDir, float waveK, float waveOmega, float waveSigma,\n float twistMax, float amp, float warpFreq) {\n float env = travelingEnvelope(g, t, waveDir, waveK, waveOmega, waveSigma) * amp;\n vec2 f = curlFBM(vec2(g.x * warpFreq + t * 0.05, g.y * warpFreq - t * 0.04));\n float wf2 = warpFreq * 1.833333;\n vec2 f2 = curlFBM(vec2(g.x * wf2 - t * 0.03, g.y * wf2 + t * 0.035));\n float k = twistMax * env;\n return g + (f + f2 * 0.5) * k;\n}\n\n// The local cursor swirl — the finger twists the cells around it (re-aimed cursorBulge).\nvec2 cursorSwirl(vec2 g, vec2 cursor, float strength, float radius) {\n vec2 to = g - cursor;\n float d2 = dot(to, to);\n float r = max(radius, 1e-4);\n float theta = strength * exp(-d2 / (2.0 * r * r));\n float ct = cos(theta);\n float st = sin(theta);\n return cursor + vec2(ct * to.x - st * to.y, st * to.x + ct * to.y);\n}\n\n// The LOW-octave value-noise topography — the scalar field concentric extracts contours of.\nfloat heightField(vec2 p, float octavesF, float seed) {\n float v = 0.0;\n float amp = 0.5;\n float freq = 1.0;\n float px = p.x + seed;\n float py = p.y - seed;\n int n = int(clamp(octavesF, 1.0, 6.0));\n for (int i = 0; i < 6; i++) {\n if (i >= n) break;\n v += amp * valueNoise(px * freq, py * freq);\n float rx = 0.8 * px - 0.6 * py;\n float ry = 0.6 * px + 0.8 * py;\n px = rx;\n py = ry;\n freq *= 2.0;\n amp *= 0.5;\n }\n return v;\n}\n\n// The ω=√(g·k) breathing swell — basins inflate/deflate with weight.\nfloat waveSwell(float t, float phase) {\n return sin(t * 0.35 + phase) * 0.5 + sin(t * 0.21 + phase * 1.7) * 0.5;\n}\n", ie = "#version 300 es\nprecision highp float;\nin vec2 aPosition;\nout vec2 vUv;\nvoid main() {\n vUv = aPosition; // [-1,1]² domain\n gl_Position = vec4(aPosition, 0.0, 1.0);\n}", ae = `#version 300 es
|
|
655
645
|
precision highp float;
|
|
656
646
|
|
|
657
647
|
#define TAU 6.283185307179586
|
|
@@ -675,14 +665,14 @@ uniform vec4 uWave; // (waveDirX, waveDirY, waveK, waveOmega)
|
|
|
675
665
|
uniform vec4 uWave2; // (waveSigma, twistMax, _pad, amp) — affine sheet-warp envelope
|
|
676
666
|
uniform vec3 uLineColor; // linear-sRGB ink
|
|
677
667
|
uniform vec3 uBg; // linear-sRGB themed bg
|
|
678
|
-
// ── The FACE
|
|
668
|
+
// ── The FACE — the height-lit filled cell interior ──
|
|
679
669
|
uniform vec4 uFace; // (faceAlpha, faceRelief, squashK, baseInset)
|
|
680
670
|
uniform vec2 uLightDir; // the cel key-light direction
|
|
681
671
|
uniform vec3 uFaceLo; // linear-sRGB rose-umber trough (FOLD B, 3-stop)
|
|
682
672
|
uniform vec3 uFaceMid; // linear-sRGB ember-amber mid
|
|
683
673
|
uniform vec3 uFaceHi; // linear-sRGB warm-wheat crest
|
|
684
674
|
|
|
685
|
-
${
|
|
675
|
+
${o}
|
|
686
676
|
|
|
687
677
|
// The 3-stop warm-divergent FACE ramp (FOLD B — height-keyed, NOT a 2-point mid-park). All stops
|
|
688
678
|
// warm hue ∈ [20,90]; linear-space (the OETF runs in main, FOLD E).
|
|
@@ -696,7 +686,7 @@ vec3 faceRamp(float rampT) {
|
|
|
696
686
|
|
|
697
687
|
// The shared divergence-free 2D-curl operator (flow.glsl.ts) — the prototype declares
|
|
698
688
|
// potentialFBM; the host defines its BODY below the splice (GLSL forward-declaration).
|
|
699
|
-
${
|
|
689
|
+
${l}
|
|
700
690
|
|
|
701
691
|
// ── The host noise basis (transcribes liquidGrid.ts hash21/valueNoise/potentialFBM) ──
|
|
702
692
|
float hash21(float x, float y) {
|
|
@@ -747,8 +737,8 @@ float potentialFBM(vec2 p) {
|
|
|
747
737
|
// The shared traveling-wave WARP chunk (waveField.glsl.ts — waveFlow/cursorSwirl/
|
|
748
738
|
// travelingEnvelope + the FACE leaf; spliced AFTER valueNoise + potentialFBM bodies + the curlFBM
|
|
749
739
|
// chunk). liquid-grid + concentric read the SAME waveFlow continuous affine sheet-warp (the DRY
|
|
750
|
-
// coupling — a leaf tune moves both, never the retired per-cell twist
|
|
751
|
-
${
|
|
740
|
+
// coupling — a leaf tune moves both, never the retired per-cell twist or line warp).
|
|
741
|
+
${re}
|
|
752
742
|
|
|
753
743
|
// ── §1 The Ben Golus derivative-AA grid coverage (transcribes liquidGrid.ts gridCoverage) ──
|
|
754
744
|
float gridCoverage(vec2 g, float targetWidth, vec2 uvDeriv) {
|
|
@@ -772,7 +762,7 @@ void main() {
|
|
|
772
762
|
// no per-cell seam); cursorSwirl twists the cells about the finger. The Golus dv reads the FINAL
|
|
773
763
|
// warped coord (the crisp-line fence survives).
|
|
774
764
|
vec2 g0 = uv * uGridScale;
|
|
775
|
-
//
|
|
765
|
+
// g0 is cell-scale, so pass the tiny 0.03 curl-sampling frequency (== the JS
|
|
776
766
|
// LIQUID_GRID_WARP_FREQ) so the warp is locally affine at the cell scale (major lines bow as ONE
|
|
777
767
|
// smooth curve, no sub-cell crackle). Concentric passes 0.6 (its p is unit-scale).
|
|
778
768
|
vec2 g = waveFlow(g0, uTime, uWave.xy, uWave.z, uWave.w, uWave2.x, uWave2.y, uWave2.w, 0.03);
|
|
@@ -792,7 +782,7 @@ void main() {
|
|
|
792
782
|
float major = gridCoverage(g / me, uGrid.y, dv / me);
|
|
793
783
|
float line = max(minor * uGrid.z, major * uGrid.w);
|
|
794
784
|
|
|
795
|
-
// ── The FACE
|
|
785
|
+
// ── The FACE — height-lit filled cell interior ──────────────────
|
|
796
786
|
// Sample height/relief at the WARPED-space cell center (floor(g)+0.5, the cell the fragment
|
|
797
787
|
// lands in under the affine warp); Lambert the ∇H slope against the fixed cel key-light; squash
|
|
798
788
|
// the inset so the crest face inflates; multi-stop warm-divergent ramp keyed on mix(shade, h)
|
|
@@ -818,7 +808,7 @@ void main() {
|
|
|
818
808
|
}
|
|
819
809
|
// transparent ground: the FACE composites UNDER the line, the SOURCE-OVER operator in
|
|
820
810
|
// PREMULTIPLIED space. faceAlpha:0 → faceA=0 → the face term vanishes → vec4(col·line, line) =
|
|
821
|
-
//
|
|
811
|
+
// identical to the plain line-only render.
|
|
822
812
|
vec3 linePremult = (col * line) * uFieldAlpha; // line layer (the FieldAlpha subtlety)
|
|
823
813
|
float lineA = line * uFieldAlpha;
|
|
824
814
|
vec3 facePremult = faceInk * faceA; // face layer premultiplied (faceA folds field)
|
|
@@ -836,10 +826,10 @@ function q(e, t, n) {
|
|
|
836
826
|
}
|
|
837
827
|
return r;
|
|
838
828
|
}
|
|
839
|
-
function
|
|
829
|
+
function oe(e) {
|
|
840
830
|
let { canvas: t, config: n, getCursor: i, getAmp: a, shouldContinue: o, onFrame: s } = e;
|
|
841
831
|
return function(e) {
|
|
842
|
-
let c = q(e, e.VERTEX_SHADER,
|
|
832
|
+
let c = q(e, e.VERTEX_SHADER, ie), l = q(e, e.FRAGMENT_SHADER, ae), u = e.createProgram();
|
|
843
833
|
if (e.attachShader(u, c), e.attachShader(u, l), e.linkProgram(u), !e.getProgramParameter(u, e.LINK_STATUS)) throw Error(`[LiquidGrid] link failed: ${e.getProgramInfoLog(u)}`);
|
|
844
834
|
e.deleteShader(c), e.deleteShader(l);
|
|
845
835
|
let d = e.createVertexArray();
|
|
@@ -861,7 +851,7 @@ function se(e) {
|
|
|
861
851
|
}
|
|
862
852
|
function F(o) {
|
|
863
853
|
s?.(o);
|
|
864
|
-
let c = t.width / Math.max(t.height, 1), l =
|
|
854
|
+
let c = t.width / Math.max(t.height, 1), l = U(t.height || 1, n.cellSize);
|
|
865
855
|
e.useProgram(u), e.bindVertexArray(d), e.enable(e.BLEND), e.blendFunc(e.ONE, e.ONE_MINUS_SRC_ALPHA), e.clearColor(0, 0, 0, 0), e.clear(e.COLOR_BUFFER_BIT), e.uniform1f(h, o), e.uniform1f(g, l), e.uniform1f(_, n.majorEvery), e.uniform1f(v, c), e.uniform4f(T, n.waveDir[0], n.waveDir[1], n.waveK, n.waveOmega), e.uniform4f(E, n.waveSigma, n.twistMax, 0, a()), e.uniform1f(w, +!!n.interactive);
|
|
866
856
|
let f = Math.max(n.cellSize, 1), p = n.lineWidth / f, m = n.lineWidth * 1.6 / f;
|
|
867
857
|
e.uniform4f(y, p, m, n.minorAlpha, n.majorAlpha), e.uniform1f(b, n.fieldAlpha);
|
|
@@ -891,49 +881,49 @@ function se(e) {
|
|
|
891
881
|
//#endregion
|
|
892
882
|
//#region src/components/liquid-grid/composables/useLiquidGrid.ts
|
|
893
883
|
function J(e, n) {
|
|
894
|
-
let { config: r } = n, a = n.mode ?? "live",
|
|
884
|
+
let { config: r } = n, a = n.mode ?? "live", o = t({ respectReducedMotion: r.respectReducedMotion }), l = {
|
|
895
885
|
x: 1e6,
|
|
896
886
|
y: 1e6
|
|
897
|
-
}, u = () =>
|
|
887
|
+
}, u = () => l, d = 0, f = () => d, p = 0, m = null, h = x(c("webgpu")), g = !1;
|
|
898
888
|
function v(t) {
|
|
899
889
|
let n = p > 0 ? (t - p) * 1e3 : 16.7;
|
|
900
890
|
p = t;
|
|
901
891
|
let i = Math.min(Math.max(n, 0), 50);
|
|
902
|
-
if (
|
|
903
|
-
|
|
892
|
+
if (o.tick(i), m?.reducedMotion ? d = 0 : (d += (1.06 - d) * .04, d > 1 && (d = 1 + (d - 1) * .85)), !r.interactive || !o.active.value) {
|
|
893
|
+
l = {
|
|
904
894
|
x: 1e6,
|
|
905
895
|
y: 1e6
|
|
906
896
|
};
|
|
907
897
|
return;
|
|
908
898
|
}
|
|
909
|
-
let a = e.value,
|
|
910
|
-
|
|
911
|
-
x: (g + f.x * v) *
|
|
912
|
-
y: (_ - f.y * v) *
|
|
899
|
+
let a = e.value, s = (a?.width || 1) / Math.max(a?.height || 1, 1), c = U(a?.height || 320, r.cellSize), u = o.smoothedPosition.value, f = o.velocity.value, h = o.burst.value, g = (u.x * 2 - 1) * s, _ = -(u.y * 2 - 1), v = .12 + Math.min(.4, h);
|
|
900
|
+
l = {
|
|
901
|
+
x: (g + f.x * v) * c,
|
|
902
|
+
y: (_ - f.y * v) * c
|
|
913
903
|
};
|
|
914
904
|
}
|
|
915
|
-
let
|
|
916
|
-
|
|
905
|
+
let y = () => {
|
|
906
|
+
o.onPointerEnter(), r.interactive && m?.wake();
|
|
917
907
|
}, S = (e) => {
|
|
918
|
-
|
|
908
|
+
o.onPointerMove(e), r.interactive && m?.wake();
|
|
919
909
|
}, C = (e) => e.parentElement ?? e;
|
|
920
910
|
function w(e) {
|
|
921
911
|
let t = C(e);
|
|
922
|
-
t.addEventListener("pointermove", S), t.addEventListener("pointerenter",
|
|
912
|
+
t.addEventListener("pointermove", S), t.addEventListener("pointerenter", y), t.addEventListener("pointerleave", o.onPointerLeave);
|
|
923
913
|
}
|
|
924
914
|
function T(e) {
|
|
925
915
|
let t = C(e);
|
|
926
|
-
t.removeEventListener("pointermove", S), t.removeEventListener("pointerenter",
|
|
916
|
+
t.removeEventListener("pointermove", S), t.removeEventListener("pointerenter", y), t.removeEventListener("pointerleave", o.onPointerLeave);
|
|
927
917
|
}
|
|
928
918
|
let E = () => {
|
|
929
|
-
if (
|
|
919
|
+
if (g) return null;
|
|
930
920
|
let t = e.value;
|
|
931
|
-
return t ? (m || (w(t), m =
|
|
921
|
+
return t ? (m || (w(t), m = s(t, {
|
|
932
922
|
mode: a,
|
|
933
923
|
respectReducedMotion: r.respectReducedMotion,
|
|
934
|
-
dprPolicy:
|
|
924
|
+
dprPolicy: i,
|
|
935
925
|
revealBloom: !0,
|
|
936
|
-
setupWGPU:
|
|
926
|
+
setupWGPU: ne({
|
|
937
927
|
canvas: t,
|
|
938
928
|
config: r,
|
|
939
929
|
getCursor: u,
|
|
@@ -941,7 +931,7 @@ function J(e, n) {
|
|
|
941
931
|
shouldContinue: () => !0,
|
|
942
932
|
onFrame: v
|
|
943
933
|
}),
|
|
944
|
-
setupGL:
|
|
934
|
+
setupGL: oe({
|
|
945
935
|
canvas: t,
|
|
946
936
|
config: r,
|
|
947
937
|
getCursor: u,
|
|
@@ -964,19 +954,19 @@ function J(e, n) {
|
|
|
964
954
|
get reducedMotion() {
|
|
965
955
|
return m?.reducedMotion ?? !1;
|
|
966
956
|
},
|
|
967
|
-
rendererStatus:
|
|
957
|
+
rendererStatus: b(h),
|
|
968
958
|
dispose: () => {
|
|
969
|
-
if (
|
|
970
|
-
|
|
959
|
+
if (g) return;
|
|
960
|
+
g = !0;
|
|
971
961
|
let t = e.value;
|
|
972
|
-
t && T(t),
|
|
962
|
+
t && T(t), o.dispose(), m?.dispose();
|
|
973
963
|
}
|
|
974
964
|
};
|
|
975
|
-
return
|
|
965
|
+
return _(() => D.dispose()), D;
|
|
976
966
|
}
|
|
977
967
|
//#endregion
|
|
978
968
|
//#region src/components/liquid-grid/constants.ts
|
|
979
|
-
var
|
|
969
|
+
var se = 16, Y = {
|
|
980
970
|
L: .62,
|
|
981
971
|
C: .05,
|
|
982
972
|
h: 62
|
|
@@ -1019,7 +1009,7 @@ var ce = 16, Y = {
|
|
|
1019
1009
|
background: "transparent",
|
|
1020
1010
|
interactive: !0,
|
|
1021
1011
|
respectReducedMotion: !0
|
|
1022
|
-
},
|
|
1012
|
+
}, ce = /*#__PURE__*/ e(/* @__PURE__ */ m({
|
|
1023
1013
|
__name: "LiquidGrid",
|
|
1024
1014
|
props: {
|
|
1025
1015
|
config: { default: () => $ },
|
|
@@ -1030,8 +1020,8 @@ var ce = 16, Y = {
|
|
|
1030
1020
|
},
|
|
1031
1021
|
emits: ["update:paused", "rendererStatus"],
|
|
1032
1022
|
setup(e, { expose: t, emit: r }) {
|
|
1033
|
-
let i = r, a =
|
|
1034
|
-
|
|
1023
|
+
let i = r, a = S("wrapperRef"), o = S("canvasRef"), s = y({ ...e.config });
|
|
1024
|
+
C(() => e.config, (e) => Object.assign(s, e), { deep: !0 }), g(() => {
|
|
1035
1025
|
if (e.config.lineColor === $.lineColor) {
|
|
1036
1026
|
let e = a.value;
|
|
1037
1027
|
if (e) {
|
|
@@ -1043,11 +1033,11 @@ var ce = 16, Y = {
|
|
|
1043
1033
|
}
|
|
1044
1034
|
});
|
|
1045
1035
|
let c = J(o, { config: s });
|
|
1046
|
-
|
|
1036
|
+
C(c.rendererStatus, (e) => i("rendererStatus", e), {
|
|
1047
1037
|
immediate: !0,
|
|
1048
1038
|
flush: "sync"
|
|
1049
|
-
}),
|
|
1050
|
-
let l =
|
|
1039
|
+
}), C(() => e.paused, (e) => e ? c.pause() : c.resume(), { immediate: !0 });
|
|
1040
|
+
let l = d(() => {
|
|
1051
1041
|
let t = e.config.background;
|
|
1052
1042
|
if (t !== "transparent") return `oklch(${t.L} ${t.C} ${t.h})`;
|
|
1053
1043
|
});
|
|
@@ -1057,12 +1047,12 @@ var ce = 16, Y = {
|
|
|
1057
1047
|
wake: c.wake,
|
|
1058
1048
|
renderAt: c.renderAt,
|
|
1059
1049
|
rendererStatus: c.rendererStatus
|
|
1060
|
-
}), (e, t) => (
|
|
1050
|
+
}), (e, t) => (v(), f("div", {
|
|
1061
1051
|
ref_key: "wrapperRef",
|
|
1062
1052
|
ref: a,
|
|
1063
1053
|
class: "liquid-grid-wrapper",
|
|
1064
|
-
style:
|
|
1065
|
-
}, [
|
|
1054
|
+
style: h(l.value ? { background: l.value } : void 0)
|
|
1055
|
+
}, [p("canvas", {
|
|
1066
1056
|
ref_key: "canvasRef",
|
|
1067
1057
|
ref: o,
|
|
1068
1058
|
class: "liquid-grid-canvas",
|
|
@@ -1070,6 +1060,6 @@ var ce = 16, Y = {
|
|
|
1070
1060
|
"data-testid": "liquid-grid-canvas"
|
|
1071
1061
|
}, null, 512)], 4));
|
|
1072
1062
|
}
|
|
1073
|
-
}), [["__scopeId", "data-v-
|
|
1063
|
+
}), [["__scopeId", "data-v-4075ca62"]]);
|
|
1074
1064
|
//#endregion
|
|
1075
|
-
export {
|
|
1065
|
+
export { M as CURL_EPS, $ as DEFAULT_LIQUID_GRID_CONFIG, Q as FACE_WARM_HI, X as FACE_WARM_LO, Z as FACE_WARM_MID, se as LIQUID_GRID_MAX_MAJOR_EVERY, ce as LiquidGrid, Y as WARM_IDENTITY_INK, R as curlFBM, V as gridCoverage, U as gridScaleFor, L as potentialFBM, H as sampleLiquidGrid, J as useLiquidGrid };
|