@mkbabb/glass-ui 3.12.0 → 4.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/dist/CardAction-XH4YBVEK.js +158 -0
- package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-DdtWXxOK.js} +58 -53
- package/dist/{ContextMenuSubContent-Bhg4f5jX.js → ContextMenuSubContent-B0Vs6atR.js} +4 -4
- package/dist/{DataTable-CUHMukiQ.js → DataTable-C464Zbqd.js} +99 -97
- package/dist/DialogContent-DDE6pQBU.js +103 -0
- package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-8eZbdmPc.js} +2 -2
- package/dist/FadingScroll-DwNnvKMs.js +76 -0
- package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-Dpzwvc4t.js} +1 -1
- package/dist/IconChip-BDw1j5mu.js +54 -0
- package/dist/{IconTooltip-Cus0fvK0.js → IconTooltip-DSjasZIt.js} +1 -1
- package/dist/MetricBadge-BpC0R_Ec.js +79 -0
- package/dist/{Notification-DLMhblXR.js → Notification-DKjKsQq8.js} +10 -10
- package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-1VtwDSgf.js} +3 -3
- package/dist/PopoverContent-BTorlp--.js +127 -0
- package/dist/{Progress-iEuD9pxG.js → Progress-hAT4gqGH.js} +97 -77
- package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-CUVFTWk2.js} +2 -2
- package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-C1jb3b3K.js} +24 -8
- package/dist/{Switch-Ch-k3Rv-.js → Switch-Dr--uLGH.js} +2 -2
- package/dist/{Toaster-1rYWrmAm.js → Toaster-Bm_HQSpc.js} +55 -52
- package/dist/{ToggleGroupItem-COu_4IW4.js → ToggleGroupItem-Dzk9hWsF.js} +18 -22
- package/dist/animated-digit.js +3 -3
- package/dist/api/index.d.ts +10 -4
- package/dist/api.js +1 -1
- package/dist/aurora.js +113 -98
- package/dist/{badge-CaoFJzRb.js → badge-UILT_3pZ.js} +1 -1
- package/dist/badge.js +1 -1
- package/dist/{button-DN39cGqL.js → button-BNDWhAZb.js} +12 -12
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +101 -145
- package/dist/{check-BBKKKSTf.js → check-njhk-vfu.js} +1 -1
- package/dist/{chevron-down-BSkTP2aL.js → chevron-down-DKkxb4VV.js} +1 -1
- package/dist/{chevron-right-sDM0Yvrf.js → chevron-right-CPXbqQQz.js} +1 -1
- package/dist/{chevron-up-CCOD_FTz.js → chevron-up-n_24SqI-.js} +1 -1
- package/dist/coalesceMetric-5qIeZnTx.js +13 -0
- package/dist/collapsible.js +1 -1
- package/dist/{color-C5ls_QF7.js → color-DweYl7pE.js} +9 -7
- package/dist/color-swatch.d.ts +1 -0
- package/dist/color-swatch.js +47 -0
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +16 -45
- package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -0
- package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
- package/dist/components/custom/color-swatch/index.d.ts +1 -0
- package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/configurator/ConfiguratorRow.vue.d.ts +16 -0
- package/dist/components/custom/constellation/Constellation.vue.d.ts +23 -143
- package/dist/components/custom/constellation/composables/createConstellationField.d.ts +41 -0
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
- package/dist/components/custom/constellation/constants.d.ts +61 -0
- package/dist/components/custom/constellation/constellationDraw.d.ts +30 -0
- package/dist/components/custom/constellation/constellationField.d.ts +3 -403
- package/dist/components/custom/constellation/constellationInteraction.d.ts +132 -0
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +5 -2
- package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
- package/dist/components/custom/dock/DockRail.vue.d.ts +89 -0
- package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -6
- package/dist/components/custom/dock/GlassDock.vue.d.ts +5 -118
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
- package/dist/components/custom/dock/composables/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useDockClickIntegrity.d.ts +23 -0
- package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
- package/dist/components/custom/dock/composables/useDockOrientationMorph.d.ts +44 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +165 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
- package/dist/components/custom/dock/constants.d.ts +83 -0
- package/dist/components/custom/dock/index.d.ts +5 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +15 -37
- package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
- package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
- package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
- package/dist/components/custom/fading-scroll/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +34 -0
- package/dist/components/custom/fourier-field/presets.d.ts +54 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
- package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
- package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +21 -8
- package/dist/components/custom/goo-blob/constants.d.ts +57 -0
- package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
- package/dist/components/custom/handmark/brush.d.ts +33 -6
- package/dist/components/custom/handmark/{useHandMark.d.ts → composables/useHandMark.d.ts} +6 -4
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/geometry.d.ts +14 -12
- package/dist/components/custom/handmark/index.d.ts +8 -2
- package/dist/components/custom/handmark/types.d.ts +9 -0
- package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
- package/dist/components/custom/icon-chip/index.d.ts +2 -0
- package/dist/components/custom/icon-chip/types.d.ts +72 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +37 -0
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +6 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +6 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +6 -0
- package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +11 -18
- package/dist/components/custom/metric-badge/index.d.ts +1 -0
- package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +15 -4
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +6 -4
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +20 -25
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +18 -0
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
- package/dist/components/ui/card/Card.vue.d.ts +16 -4
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/metric-pill/MetricPill.vue.d.ts +6 -3
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/components/ui/slider/index.d.ts +22 -19
- package/dist/components/ui/tabs/TabsIndicator.vue.d.ts +4 -1
- package/dist/components/ui/toast/use-toast.d.ts +2 -2
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -7
- package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +1 -3
- package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +0 -13
- package/dist/composables/color/index.d.ts +12 -0
- package/dist/composables/dark/useGlobalDark.d.ts +14 -12
- package/dist/composables/glass/index.d.ts +0 -1
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +59 -0
- package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
- package/dist/composables/motion/core/index.d.ts +1 -1
- package/dist/composables/motion/curves.d.ts +48 -0
- package/dist/composables/motion/index.d.ts +2 -0
- package/dist/composables/motion/springPresets.d.ts +33 -0
- package/dist/composables/motion/suite.d.ts +2 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +85 -0
- package/dist/composables/motion/useSpringMount.d.ts +1 -1
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/constellation.js +373 -261
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +48 -14
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +901 -372
- package/dist/dockContext-Bu1Avy-a.js +17 -0
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-BJ7E9js_.js} +11 -8
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +44 -81
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/forms.js +5 -5
- package/dist/fourier-field.js +140 -104
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +90 -21
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +230 -236
- package/dist/goo-blob.js +264 -228
- package/dist/handmark.js +203 -159
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.d.ts +1 -0
- package/dist/icon-chip.js +2 -0
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +28 -18
- package/dist/{math-DTpRVC0e.js → math-DeuJwLFx.js} +26 -2
- package/dist/{menuItemVariants-CCoBNkU5.js → menuItemVariants-DWRQXBxJ.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +29 -22
- package/dist/metric-stack.js +35 -34
- package/dist/{minimize-2-lcXOuc6V.js → minimize-2-BV31Ob_h.js} +1 -1
- package/dist/motion-core.js +32 -136
- package/dist/motion-curves.d.ts +1 -0
- package/dist/motion-curves.js +130 -0
- package/dist/motion.js +38 -37
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.d.ts +1 -0
- package/dist/pager-dots.js +91 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-nbkvr2dC.js → search-BSGrf2Sk.js} +1 -1
- package/dist/search.js +10 -10
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/sheet-CquRYOAw.js +218 -0
- package/dist/sheet.js +1 -1
- package/dist/{slider-ClgpP7EB.js → slider-DQ95MET2.js} +8 -8
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/springPresets-WXaLbu8u.js +40 -0
- package/dist/stacked-icons.js +6 -6
- package/dist/styles/animations.css +25 -125
- package/dist/styles/cards.css +55 -0
- package/dist/styles/components.css +4 -1
- package/dist/styles/configurator.css +77 -0
- package/dist/styles/dock/density.css +19 -0
- package/dist/styles/dock/layer-group.css +83 -25
- package/dist/styles/dock/layers.css +23 -1
- package/dist/styles/dock/morph-bridge.css +123 -0
- package/dist/styles/dock/morph.css +175 -45
- package/dist/styles/dock/overflow.css +66 -1
- package/dist/styles/dock/rail-extend.css +397 -0
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +97 -110
- package/dist/styles/dock-controls/dark-mode-toggle.css +109 -0
- package/dist/styles/dock-controls/icon-button.css +143 -0
- package/dist/styles/dock-controls/tab-button.css +143 -0
- package/dist/styles/dock-controls/touch-floor.css +94 -0
- package/dist/styles/dock-controls/triggers.css +135 -0
- package/dist/styles/dock-controls.css +30 -595
- package/dist/styles/dock.css +8 -3
- package/dist/styles/drawer.css +48 -0
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/floating-panel.css +17 -0
- package/dist/styles/glass/a11y-fallback.css +245 -0
- package/dist/styles/glass/ladder.css +383 -0
- package/dist/styles/glass/material.css +238 -0
- package/dist/styles/glass/progress-rail.css +78 -0
- package/dist/styles/glass/squircle.css +66 -0
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +382 -0
- package/dist/styles/glass-refract.css +2 -0
- package/dist/styles/glass.css +34 -1188
- package/dist/styles/hover-popover.css +2 -0
- package/dist/styles/icon-chip.css +149 -0
- package/dist/styles/index.css +94 -18
- package/dist/styles/instrument-chassis.css +46 -0
- package/dist/styles/menu.css +127 -0
- package/dist/styles/paper.css +2 -68
- package/dist/styles/segmented-tabs.css +346 -0
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +347 -0
- package/dist/styles/theme/dark.css +7 -0
- package/dist/styles/theme/literals.css +94 -0
- package/dist/styles/theme/radius.css +95 -0
- package/dist/styles/theme.css +26 -529
- package/dist/styles/tokens/color-radius.css +287 -0
- package/dist/styles/tokens/dark-arm.css +308 -0
- package/dist/styles/tokens/glass.css +500 -0
- package/dist/styles/tokens/light-dark.css +187 -0
- package/dist/styles/tokens/offsets-sizing.css +562 -0
- package/dist/styles/tokens/property-regs.css +162 -0
- package/dist/styles/tokens/scale-paper.css +409 -0
- package/dist/styles/tokens/scheme-motion.css +352 -0
- package/dist/styles/tokens/shadow.css +166 -0
- package/dist/styles/tokens.css +22 -2360
- package/dist/styles/transitions.css +7 -7
- package/dist/styles/typography/scale.css +153 -0
- package/dist/styles/typography/semantic.css +220 -0
- package/dist/styles/typography/utilities.css +159 -0
- package/dist/styles/typography.css +23 -453
- package/dist/styles/utilities/a11y-overrides.css +169 -0
- package/dist/styles/utilities/animate.css +26 -0
- package/dist/styles/utilities/base.css +541 -0
- package/dist/styles/utilities/btn.css +218 -0
- package/dist/styles/utilities/components.css +317 -0
- package/dist/styles/utilities.css +19 -1318
- package/dist/styles/view-transition.css +4 -52
- package/dist/switch.js +1 -1
- package/dist/tabs.js +161 -181
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +3 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-Bcpy5Etf.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/useConfiguratorState-kiIlun8I.js +303 -0
- package/dist/useLiquidFlex-C12hXwOZ.js +30 -0
- package/dist/useRAFLoop-CdwJ7284.js +109 -0
- package/dist/{useScrollProgress-CffFGLa5.js → useScrollProgress-D7bYU2RK.js} +1 -1
- package/dist/useSpecularTracking-Bo5su68i.js +32 -0
- package/dist/useSpringMount-CvopqiFr.js +108 -0
- package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
- package/dist/{useTouchGate-WFyJYsth.js → useTouchGate-28Tk2-t2.js} +1 -1
- package/dist/useViewTransition-COsPjQVZ.js +47 -0
- package/dist/utils/coalesceMetric.d.ts +29 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vReveal-D9k0jADx.js +10 -0
- package/dist/watercolor-dot.js +22 -13
- package/dist/{x-Dfsegz9Y.js → x-BUwTKe50.js} +1 -1
- package/package.json +134 -50
- package/src/styles/animations.css +25 -125
- package/src/styles/cards.css +53 -0
- package/src/styles/configurator.css +77 -0
- package/src/styles/dock/density.css +19 -0
- package/src/styles/dock/layer-group.css +83 -25
- package/src/styles/dock/layers.css +23 -1
- package/src/styles/dock/morph-bridge.css +123 -0
- package/src/styles/dock/morph.css +175 -45
- package/src/styles/dock/overflow.css +66 -1
- package/src/styles/dock/rail-extend.css +397 -0
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +97 -110
- package/src/styles/dock-controls/dark-mode-toggle.css +109 -0
- package/src/styles/dock-controls/icon-button.css +143 -0
- package/src/styles/dock-controls/tab-button.css +143 -0
- package/src/styles/dock-controls/touch-floor.css +94 -0
- package/src/styles/dock-controls/triggers.css +135 -0
- package/src/styles/dock-controls.css +30 -595
- package/src/styles/dock.css +8 -3
- package/src/styles/drawer.css +42 -0
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/floating-panel.css +15 -0
- package/src/styles/glass/a11y-fallback.css +245 -0
- package/src/styles/glass/ladder.css +383 -0
- package/src/styles/glass/material.css +238 -0
- package/src/styles/glass/progress-rail.css +78 -0
- package/src/styles/glass/squircle.css +66 -0
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +382 -0
- package/src/styles/glass.css +34 -1188
- package/src/styles/icon-chip.css +149 -0
- package/src/styles/index.css +93 -17
- package/src/styles/instrument-chassis.css +42 -0
- package/src/styles/menu.css +127 -0
- package/src/styles/paper.css +2 -68
- package/src/styles/segmented-tabs.css +340 -0
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +347 -0
- package/src/styles/theme/dark.css +7 -0
- package/src/styles/theme/literals.css +94 -0
- package/src/styles/theme/radius.css +95 -0
- package/src/styles/theme.css +26 -529
- package/src/styles/tokens/color-radius.css +287 -0
- package/src/styles/tokens/dark-arm.css +308 -0
- package/src/styles/tokens/glass.css +500 -0
- package/src/styles/tokens/light-dark.css +187 -0
- package/src/styles/tokens/offsets-sizing.css +562 -0
- package/src/styles/tokens/property-regs.css +162 -0
- package/src/styles/tokens/scale-paper.css +409 -0
- package/src/styles/tokens/scheme-motion.css +352 -0
- package/src/styles/tokens/shadow.css +166 -0
- package/src/styles/tokens.css +22 -2360
- package/src/styles/transitions.css +7 -7
- package/src/styles/typography/scale.css +153 -0
- package/src/styles/typography/semantic.css +220 -0
- package/src/styles/typography/utilities.css +159 -0
- package/src/styles/typography.css +23 -453
- package/src/styles/utilities/a11y-overrides.css +169 -0
- package/src/styles/utilities/animate.css +26 -0
- package/src/styles/utilities/base.css +541 -0
- package/src/styles/utilities/btn.css +218 -0
- package/src/styles/utilities/components.css +317 -0
- package/src/styles/utilities.css +19 -1318
- package/src/styles/view-transition.css +4 -52
- package/dist/CardAction-DuArVky-.js +0 -157
- package/dist/DeckProgress-Dmk4_AKN.js +0 -23
- package/dist/DialogContent-BRkT1cjP.js +0 -100
- package/dist/InstrumentRail-CUJ05YVG.js +0 -44
- package/dist/MetricBadge-BZVWIxNy.js +0 -80
- package/dist/PopoverContent-BId6ggf_.js +0 -121
- package/dist/TabsList-B8CVOQPC.js +0 -101
- package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
- package/dist/components/custom/deck-progress/index.d.ts +0 -2
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
- package/dist/components/custom/dialog-native/index.d.ts +0 -1
- package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
- package/dist/components/custom/instrument-rail/index.d.ts +0 -2
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/composables/motion/useRouteTransition.d.ts +0 -42
- package/dist/deck-progress.d.ts +0 -1
- package/dist/deck-progress.js +0 -2
- package/dist/dockContext-BKeIMmNk.js +0 -9
- package/dist/instrument-rail.d.ts +0 -1
- package/dist/instrument-rail.js +0 -2
- package/dist/sheet-VZEtNFvO.js +0 -214
- package/dist/styles/instrument-rail.css +0 -127
- package/dist/useConfiguratorState-DxAqksK6.js +0 -287
- package/dist/useGlassRenderer-D7YGOYiM.js +0 -69
- package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
- package/dist/useSpringMount-BJSHcLl3.js +0 -113
- package/dist/useViewTransition-DaN5Zrox.js +0 -21
- package/dist/vReveal-zUIQk-rJ.js +0 -53
- package/src/styles/instrument-rail.css +0 -127
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
- /package/dist/{ContextMenuContent-DDa0v27s.js → ContextMenuContent-ON3x7cuk.js} +0 -0
- /package/dist/{HoverCardContent-B6CcQ8He.js → HoverCardContent-DkMaQzH5.js} +0 -0
- /package/dist/{Input-xuDwALQR.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{InstrumentChassis-C2f6cBaQ.js → InstrumentChassis-UUJX0-mW.js} +0 -0
- /package/dist/{Label-zRfbQdCn.js → Label-Ck9SWEKM.js} +0 -0
- /package/dist/{ModalOverlay-B1GkAjNb.js → ModalOverlay-CkPRRgl_.js} +0 -0
- /package/dist/{PaperBackdrop-CqwjnfLv.js → PaperBackdrop-nBKe0vkB.js} +0 -0
- /package/dist/{SelectGroup-BFiod7X2.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-C4Ql0gzV.js → SelectSeparator-DK2y1Bun.js} +0 -0
- /package/dist/{Separator-D7sD7RKj.js → Separator-BArl4OaB.js} +0 -0
- /package/dist/{TooltipProvider-CmZzCuaG.js → TooltipProvider-B3MkB_8P.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
- /package/dist/{compile-BOXjLUxu.js → compile-EXXzEr1q.js} +0 -0
- /package/dist/{constants-yKeKnE84.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-B44Sah_H.js → createContext-B2RaZ-b8.js} +0 -0
- /package/dist/{createLucideIcon-B6uNAU9G.js → createLucideIcon-DydS2qgk.js} +0 -0
- /package/dist/{presets-BP_ALM0m.js → presets-BW2b-fr1.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
- /package/dist/{supportsCssTimeline-C5oe0lnD.js → supportsCssTimeline-BWenxvHU.js} +0 -0
- /package/dist/{useGlobalDark-CAhOXNLO.js → useGlobalDark-C28t0VWJ.js} +0 -0
- /package/dist/{useIntersectionPause-Cck5Uxk8.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-Dsmqwi03.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-CyIYrndH.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-CWCbk5Px.js → useResizeObserver-V6nq5gJb.js} +0 -0
- /package/dist/{useResolveTokenColor-r9pnNjqK.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
- /package/dist/{useSortable-C8ReQ50P.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{useTimer-3xqf_54b.js → useTimer-B_PAasDL.js} +0 -0
- /package/dist/{useUserInvalidAria-DoJKMZ3s.js → useUserInvalidAria-CDfJuakL.js} +0 -0
- /package/dist/{useViewportReady-RIr5Wgkh.js → useViewportReady-CvBcCYDf.js} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { n as e } from "./createContext-B2RaZ-b8.js";
|
|
2
|
+
//#region src/components/custom/dock/constants.ts
|
|
3
|
+
var t = {
|
|
4
|
+
response: .32,
|
|
5
|
+
dampingFraction: .7
|
|
6
|
+
}, n = new Set([
|
|
7
|
+
"width",
|
|
8
|
+
"height",
|
|
9
|
+
"padding",
|
|
10
|
+
"transform"
|
|
11
|
+
]), r = "glass-ui:dock-context", i = "glass-ui:dock-layer-group", a = "glass-ui:dock-morph-context", o = e(r, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: s } = o;
|
|
12
|
+
function c(e) {
|
|
13
|
+
o.provide(e);
|
|
14
|
+
}
|
|
15
|
+
var l = o.use, u = o.useOptional;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { i as a, n as c, u as i, c as n, a as o, l as r, t as s, s as t };
|
package/dist/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./useResizeObserver-
|
|
2
|
-
import { t } from "./useTouchGate-
|
|
3
|
-
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-
|
|
4
|
-
import { n as c, t as l } from "./useResolveTokenColor-
|
|
5
|
-
import { t as u } from "./useUserInvalidAria-
|
|
1
|
+
import { t as e } from "./useResizeObserver-V6nq5gJb.js";
|
|
2
|
+
import { t } from "./useTouchGate-28Tk2-t2.js";
|
|
3
|
+
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-CvBcCYDf.js";
|
|
4
|
+
import { n as c, t as l } from "./useResolveTokenColor-NUG2zYAW.js";
|
|
5
|
+
import { t as u } from "./useUserInvalidAria-CDfJuakL.js";
|
|
6
6
|
export { r as copyToClipboard, l as createTokenColorCache, c as resolveTokenColor, o as useBreakpoint, n as useClipboard, i as useIdleReady, e as useResizeObserver, a as useTokenColor, t as useTouchGate, u as useUserInvalidAria, s as useViewportReady };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./check-
|
|
3
|
-
import { t as n } from "./chevron-right-
|
|
4
|
-
import { t as r } from "./menuItemVariants-
|
|
5
|
-
import { i } from "./dockContext-
|
|
2
|
+
import { t } from "./check-njhk-vfu.js";
|
|
3
|
+
import { t as n } from "./chevron-right-CPXbqQQz.js";
|
|
4
|
+
import { t as r } from "./menuItemVariants-DWRQXBxJ.js";
|
|
5
|
+
import { i } from "./dockContext-Bu1Avy-a.js";
|
|
6
6
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, unref as _, withCtx as v } from "vue";
|
|
7
7
|
import { DropdownMenuCheckboxItem as y, DropdownMenuContent as b, DropdownMenuGroup as x, DropdownMenuItem as S, DropdownMenuItemIndicator as C, DropdownMenuLabel as w, DropdownMenuPortal as T, DropdownMenuPortal as E, DropdownMenuRadioGroup as D, DropdownMenuRadioItem as O, DropdownMenuRoot as k, DropdownMenuSeparator as A, DropdownMenuSub as j, DropdownMenuSubContent as M, DropdownMenuSubTrigger as N, DropdownMenuTrigger as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
|
|
8
8
|
//#endregion
|
|
@@ -86,7 +86,7 @@ var L = /* @__PURE__ */ u({
|
|
|
86
86
|
default: v(() => [l(_(b), f(_(c), {
|
|
87
87
|
"data-glass-dock-portal": _(u)?.id ? "" : void 0,
|
|
88
88
|
"data-glass-dock-owner": _(u)?.id,
|
|
89
|
-
class: _(e)("dropdown-menu-content z-popover min-w-32 max-h-[60vh] overflow-y-auto rounded-panel border glass-floating
|
|
89
|
+
class: _(e)("dropdown-menu-content z-popover min-w-32 max-h-[60vh] overflow-y-auto rounded-panel border glass-floating text-popover-foreground popover-animate slide-in-from-side", r.class)
|
|
90
90
|
}), {
|
|
91
91
|
default: v(() => [g(t.$slots, "default")]),
|
|
92
92
|
_: 3
|
|
@@ -353,10 +353,13 @@ var L = /* @__PURE__ */ u({
|
|
|
353
353
|
let { class: e, ...t } = r;
|
|
354
354
|
return t;
|
|
355
355
|
}), i);
|
|
356
|
-
return (t, n) => (h(), o(_(
|
|
357
|
-
default: v(() => [
|
|
356
|
+
return (t, n) => (h(), o(_(T), null, {
|
|
357
|
+
default: v(() => [l(_(M), f(_(s), { class: _(e)("dropdown-sub-content z-popover min-w-32 overflow-hidden rounded-panel border glass-floating text-popover-foreground popover-animate slide-in-from-side", r.class) }), {
|
|
358
|
+
default: v(() => [g(t.$slots, "default")]),
|
|
359
|
+
_: 3
|
|
360
|
+
}, 16, ["class"])]),
|
|
358
361
|
_: 3
|
|
359
|
-
}
|
|
362
|
+
}));
|
|
360
363
|
}
|
|
361
364
|
});
|
|
362
365
|
//#endregion
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-BJ7E9js_.js";
|
|
2
2
|
export { i as DropdownMenu, o as DropdownMenuCheckboxItem, u as DropdownMenuContent, r as DropdownMenuGroup, m as DropdownMenuItem, e as DropdownMenuLabel, p as DropdownMenuPortal, n as DropdownMenuRadioGroup, t as DropdownMenuRadioItem, l as DropdownMenuSeparator, f as DropdownMenuShortcut, a as DropdownMenuSub, c as DropdownMenuSubContent, d as DropdownMenuSubTrigger, s as DropdownMenuTrigger };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { n as t, t as n } from "./minimize-2-BV31Ob_h.js";
|
|
3
|
+
import { t as r } from "./useSurfaceAxis-CMnF2zHb.js";
|
|
4
|
+
import { i } from "./useKeyboardShortcuts-BXWXOZ-9.js";
|
|
5
|
+
import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeModels as m, mergeProps as h, normalizeClass as g, onMounted as _, onUnmounted as v, openBlock as y, renderSlot as b, unref as x, useModel as S, watch as C } from "vue";
|
|
5
6
|
//#region src/components/custom/expandable-container/ExpandableContainer.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
7
|
-
function k() {
|
|
8
|
-
return typeof document > "u" ? !1 : (D === 0 && (O = document.body.style.overflow, document.body.style.overflow = "hidden"), D += 1, !0);
|
|
9
|
-
}
|
|
7
|
+
var w = ["aria-label"], T = ["data-surface"], E = ["aria-label"], D = { class: "h-full w-full" }, O = 0, k = null;
|
|
10
8
|
function A() {
|
|
11
|
-
typeof document > "u"
|
|
9
|
+
return typeof document > "u" ? !1 : (O === 0 && (k = document.body.style.overflow, document.body.style.overflow = "hidden"), O += 1, !0);
|
|
10
|
+
}
|
|
11
|
+
function j() {
|
|
12
|
+
typeof document > "u" || O === 0 || (--O, O === 0 && (document.body.style.overflow = k ?? "", k = null));
|
|
12
13
|
}
|
|
13
14
|
//#endregion
|
|
14
15
|
//#region src/components/custom/expandable-container/ExpandableContainer.vue
|
|
15
|
-
var
|
|
16
|
+
var M = /* @__PURE__ */ p({
|
|
16
17
|
inheritAttrs: !1,
|
|
17
18
|
__name: "ExpandableContainer",
|
|
18
|
-
props: /* @__PURE__ */
|
|
19
|
+
props: /* @__PURE__ */ m({
|
|
19
20
|
buttonPosition: { default: "right" },
|
|
20
21
|
expandLabel: { default: "Fullscreen" },
|
|
21
22
|
collapseLabel: { default: "Exit fullscreen" },
|
|
22
|
-
|
|
23
|
+
surface: { default: "glass" }
|
|
23
24
|
}, {
|
|
24
25
|
open: {
|
|
25
26
|
type: Boolean,
|
|
@@ -27,85 +28,47 @@ var j = /* @__PURE__ */ u({
|
|
|
27
28
|
},
|
|
28
29
|
openModifiers: {}
|
|
29
30
|
}),
|
|
30
|
-
emits:
|
|
31
|
-
setup(
|
|
32
|
-
let
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
35
|
-
|
|
31
|
+
emits: ["update:open"],
|
|
32
|
+
setup(p) {
|
|
33
|
+
let m = p, O = s(() => r(m.surface).replace(/^glass-\w+\s*/, "")), k = S(p, "open"), M = !1;
|
|
34
|
+
function N(e) {
|
|
35
|
+
if (e && !M) {
|
|
36
|
+
M = A();
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
j.value = !0;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function z() {
|
|
43
|
-
if (I.value === void 0) {
|
|
44
|
-
j.value = !1;
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
n(() => {
|
|
48
|
-
j.value = !1;
|
|
49
|
-
});
|
|
39
|
+
!e && M && (j(), M = !1);
|
|
50
40
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
!e && B && (A(), B = !1);
|
|
58
|
-
}
|
|
59
|
-
w(j, V, { immediate: !0 }), w(j, (e) => {
|
|
60
|
-
p(() => M("settle", e));
|
|
61
|
-
});
|
|
62
|
-
let H = null;
|
|
63
|
-
return g(() => {
|
|
64
|
-
H = r("Escape", () => {
|
|
65
|
-
j.value && z();
|
|
41
|
+
C(k, N, { immediate: !0 });
|
|
42
|
+
let P = null;
|
|
43
|
+
return _(() => {
|
|
44
|
+
P = i("Escape", () => {
|
|
45
|
+
k.value &&= !1;
|
|
66
46
|
}, {
|
|
67
47
|
label: "Exit fullscreen",
|
|
68
48
|
group: "UI",
|
|
69
49
|
allowInInput: !0
|
|
70
50
|
});
|
|
71
|
-
}),
|
|
72
|
-
|
|
73
|
-
}),
|
|
74
|
-
anchorEl: N,
|
|
75
|
-
surfaceEl: P,
|
|
76
|
-
expand: R,
|
|
77
|
-
collapse: z
|
|
78
|
-
}), (n, r) => (v(), s("div", f({
|
|
79
|
-
ref_key: "anchorEl",
|
|
80
|
-
ref: N,
|
|
81
|
-
class: ["expandable-container__anchor relative", { "gl-expand": I.value !== void 0 && !j.value }],
|
|
82
|
-
style: j.value ? void 0 : L.value
|
|
83
|
-
}, n.$attrs), [(v(), o(i, {
|
|
84
|
-
to: "body",
|
|
85
|
-
disabled: !j.value
|
|
86
|
-
}, [c("div", {
|
|
87
|
-
ref_key: "surfaceEl",
|
|
88
|
-
ref: P,
|
|
89
|
-
class: m([
|
|
90
|
-
"expandable-container__surface",
|
|
91
|
-
j.value ? "fixed inset-0 z-modal flex flex-col bg-background" : "relative",
|
|
92
|
-
{ "gl-expand": I.value !== void 0 && j.value }
|
|
93
|
-
]),
|
|
94
|
-
style: h(j.value ? L.value : void 0)
|
|
95
|
-
}, [j.value ? (v(), s("button", {
|
|
96
|
-
key: 1,
|
|
97
|
-
class: m(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-2 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
|
|
98
|
-
title: "Exit fullscreen",
|
|
99
|
-
"aria-label": u.collapseLabel,
|
|
100
|
-
onClick: z
|
|
101
|
-
}, [l(b(t), { class: "h-4 w-4" })], 10, E)) : (v(), s("button", {
|
|
51
|
+
}), v(() => {
|
|
52
|
+
P?.(), N(!1);
|
|
53
|
+
}), (r, i) => (y(), u(a, null, [k.value ? l("", !0) : (y(), u("div", h({
|
|
102
54
|
key: 0,
|
|
103
|
-
class:
|
|
55
|
+
class: "relative"
|
|
56
|
+
}, r.$attrs), [d("button", {
|
|
57
|
+
class: g(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-1.5 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", p.buttonPosition === "left" ? "left-2 top-2" : "right-2 top-2"]),
|
|
104
58
|
title: "Fullscreen",
|
|
105
|
-
"aria-label":
|
|
106
|
-
onClick:
|
|
107
|
-
}, [
|
|
59
|
+
"aria-label": p.expandLabel,
|
|
60
|
+
onClick: i[0] ||= (e) => k.value = !0
|
|
61
|
+
}, [f(x(t), { class: "h-4 w-4" })], 10, w), b(r.$slots, "default", { fullscreen: !1 })], 16)), (y(), c(o, { to: "body" }, [k.value ? (y(), u("div", {
|
|
62
|
+
key: 0,
|
|
63
|
+
"data-surface": p.surface,
|
|
64
|
+
class: g(x(e)("fixed inset-0 z-modal flex flex-col glass-overlay", O.value))
|
|
65
|
+
}, [d("button", {
|
|
66
|
+
class: g(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-2 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", p.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
|
|
67
|
+
title: "Exit fullscreen",
|
|
68
|
+
"aria-label": p.collapseLabel,
|
|
69
|
+
onClick: i[1] ||= (e) => k.value = !1
|
|
70
|
+
}, [f(x(n), { class: "h-4 w-4" })], 10, E), d("div", D, [b(r.$slots, "default", { fullscreen: !0 })])], 10, T)) : l("", !0)]))], 64));
|
|
108
71
|
}
|
|
109
72
|
});
|
|
110
73
|
//#endregion
|
|
111
|
-
export {
|
|
74
|
+
export { M as ExpandableContainer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/fading-scroll";
|
package/dist/forms.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./search-
|
|
3
|
-
import { t as n } from "./menuItemVariants-
|
|
4
|
-
import { t as r } from "./useUserInvalidAria-
|
|
5
|
-
import { t as i } from "./Input-
|
|
2
|
+
import { t } from "./search-BSGrf2Sk.js";
|
|
3
|
+
import { t as n } from "./menuItemVariants-DWRQXBxJ.js";
|
|
4
|
+
import { t as r } from "./useUserInvalidAria-CDfJuakL.js";
|
|
5
|
+
import { t as i } from "./Input-DVG_J0ne.js";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, vModelText as v, withCtx as y, withDirectives as b } from "vue";
|
|
7
7
|
import { ComboboxAnchor as x, ComboboxCancel as S, ComboboxContent as C, ComboboxEmpty as w, ComboboxGroup as T, ComboboxInput as E, ComboboxItem as D, ComboboxItemIndicator as O, ComboboxLabel as k, ComboboxPortal as A, ComboboxRoot as j, ComboboxSeparator as M, ComboboxTrigger as N, ComboboxViewport as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
|
|
8
8
|
import { reactiveOmit as L, useVModel as R } from "@vueuse/core";
|
|
@@ -177,7 +177,7 @@ var z = ["data-autosize"], B = /* @__PURE__ */ d({
|
|
|
177
177
|
let i = n, a = r, o = I(L(i, "class"), a);
|
|
178
178
|
return (n, r) => (m(), c("div", G, [u(_(t), { class: "size-4 shrink-0 opacity-50" }), u(_(E), p({
|
|
179
179
|
"data-slot": "command-input",
|
|
180
|
-
class: _(e)("placeholder:text-muted-foreground flex h-
|
|
180
|
+
class: _(e)("placeholder:text-muted-foreground flex h-(--dropdown-input-height) w-full rounded-input bg-transparent py-3 text-dropdown outline-hidden disabled:cursor-not-allowed disabled:opacity-disabled aria-invalid:text-destructive aria-invalid:placeholder:text-[color-mix(in_srgb,var(--destructive)_60%,transparent)]", i.class)
|
|
181
181
|
}, {
|
|
182
182
|
..._(o),
|
|
183
183
|
...n.$attrs
|
package/dist/fourier-field.js
CHANGED
|
@@ -1,13 +1,65 @@
|
|
|
1
1
|
import { t as e } from "./useCanvas2D-ClrQuZtp.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import { i as n, s as r, t as i } from "./color-
|
|
4
|
-
import { t as a } from "./useGlobalDark-
|
|
5
|
-
import { n as o, t as s } from "./prng-
|
|
6
|
-
import {
|
|
7
|
-
import { createElementBlock as
|
|
8
|
-
//#
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-CBt_VvXa.js";
|
|
3
|
+
import { i as n, s as r, t as i } from "./color-DweYl7pE.js";
|
|
4
|
+
import { t as a } from "./useGlobalDark-C28t0VWJ.js";
|
|
5
|
+
import { n as o, t as s } from "./prng-Cg22zv8g.js";
|
|
6
|
+
import { a as c, i as l, n as u, r as d, t as f } from "./math-DeuJwLFx.js";
|
|
7
|
+
import { createElementBlock as p, createElementVNode as m, defineComponent as h, onMounted as g, openBlock as _, ref as v, useTemplateRef as y, watch as b } from "vue";
|
|
8
|
+
//#region src/components/custom/fourier-field/presets.ts
|
|
9
|
+
var x = {
|
|
10
|
+
hero: {
|
|
11
|
+
harmonics: 5,
|
|
12
|
+
harmonicScale: .24,
|
|
13
|
+
epicycles: !0,
|
|
14
|
+
trailLength: 260,
|
|
15
|
+
epicycleHueShift: 42,
|
|
16
|
+
durationMs: 16e3,
|
|
17
|
+
frozenSeed: "fourier-field/hero",
|
|
18
|
+
frozenT: .34,
|
|
19
|
+
peakAlpha: .92,
|
|
20
|
+
trailWidth: 3,
|
|
21
|
+
headGlowAlpha: .95,
|
|
22
|
+
headGlowBlur: 18,
|
|
23
|
+
headDotRadius: 5,
|
|
24
|
+
epicycleRatios: {
|
|
25
|
+
circle: .5,
|
|
26
|
+
arm: .72
|
|
27
|
+
},
|
|
28
|
+
epicycleWidths: {
|
|
29
|
+
circle: 2.4,
|
|
30
|
+
arm: 2
|
|
31
|
+
},
|
|
32
|
+
epicycleRainbow: !0,
|
|
33
|
+
trailFadeExp: 1.35,
|
|
34
|
+
trailFloor: .34
|
|
35
|
+
},
|
|
36
|
+
final: {
|
|
37
|
+
harmonics: 11,
|
|
38
|
+
harmonicScale: .17,
|
|
39
|
+
epicycles: !1,
|
|
40
|
+
trailLength: 360,
|
|
41
|
+
epicycleHueShift: 36,
|
|
42
|
+
durationMs: 21e3,
|
|
43
|
+
frozenSeed: "fourier-field/final",
|
|
44
|
+
frozenT: .42,
|
|
45
|
+
peakAlpha: .88,
|
|
46
|
+
trailWidth: 3.2,
|
|
47
|
+
headGlowAlpha: .92,
|
|
48
|
+
headGlowBlur: 16,
|
|
49
|
+
headDotRadius: 4.5,
|
|
50
|
+
epicycleRatios: {
|
|
51
|
+
circle: 0,
|
|
52
|
+
arm: 0
|
|
53
|
+
},
|
|
54
|
+
epicycleWidths: {
|
|
55
|
+
circle: 0,
|
|
56
|
+
arm: 0
|
|
57
|
+
},
|
|
58
|
+
epicycleRainbow: !1,
|
|
59
|
+
trailFadeExp: 1.45,
|
|
60
|
+
trailFloor: .36
|
|
61
|
+
}
|
|
62
|
+
}, S = /* @__PURE__ */ t(/* @__PURE__ */ h({
|
|
11
63
|
__name: "FourierField",
|
|
12
64
|
props: {
|
|
13
65
|
variant: { default: "hero" },
|
|
@@ -18,141 +70,125 @@ var y = /* @__PURE__ */ t(/* @__PURE__ */ p({
|
|
|
18
70
|
type: Boolean,
|
|
19
71
|
default: !1
|
|
20
72
|
},
|
|
21
|
-
intensity: { default: 1 }
|
|
73
|
+
intensity: { default: 1 },
|
|
74
|
+
clock: { type: Function }
|
|
22
75
|
},
|
|
23
76
|
setup(t) {
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
harmonics: 4,
|
|
27
|
-
harmonicScale: .22,
|
|
28
|
-
epicycles: !0,
|
|
29
|
-
trailLength: 170,
|
|
30
|
-
epicycleHueShift: 42,
|
|
31
|
-
durationMs: 16e3,
|
|
32
|
-
frozenSeed: "fourier-field/hero",
|
|
33
|
-
frozenT: .18,
|
|
34
|
-
peakAlpha: .55,
|
|
35
|
-
headGlowAlpha: .62,
|
|
36
|
-
headGlowBlur: 16,
|
|
37
|
-
epicycleRatios: {
|
|
38
|
-
circle: .18,
|
|
39
|
-
arm: .3
|
|
40
|
-
},
|
|
41
|
-
trailFadeExp: 1.4,
|
|
42
|
-
trailFloor: .1
|
|
43
|
-
},
|
|
44
|
-
final: {
|
|
45
|
-
harmonics: 9,
|
|
46
|
-
harmonicScale: .16,
|
|
47
|
-
epicycles: !1,
|
|
48
|
-
trailLength: 200,
|
|
49
|
-
epicycleHueShift: 36,
|
|
50
|
-
durationMs: 21e3,
|
|
51
|
-
frozenSeed: "fourier-field/final",
|
|
52
|
-
frozenT: .33,
|
|
53
|
-
peakAlpha: .45,
|
|
54
|
-
headGlowAlpha: .5,
|
|
55
|
-
headGlowBlur: 14,
|
|
56
|
-
epicycleRatios: {
|
|
57
|
-
circle: 0,
|
|
58
|
-
arm: 0
|
|
59
|
-
},
|
|
60
|
-
trailFadeExp: 1.5,
|
|
61
|
-
trailFloor: .08
|
|
62
|
-
}
|
|
63
|
-
}, y = _("hostRef"), b = _("canvasRef"), x = g(t.color), S = g("rgb(0, 0, 0)"), C = g("rgb(0, 0, 0)");
|
|
64
|
-
function w(e) {
|
|
77
|
+
let l = Math.max(0, Math.min(2, t.intensity)), u = y("hostRef"), f = y("canvasRef"), h = v(t.color), S = v("rgb(0, 0, 0)"), C = v("rgb(0, 0, 0)"), w = v([]);
|
|
78
|
+
function T(e) {
|
|
65
79
|
if (!e.includes("var(") && !e.includes("light-dark(")) return e;
|
|
66
|
-
let t =
|
|
80
|
+
let t = u.value;
|
|
67
81
|
if (typeof window > "u" || !t) return e;
|
|
68
82
|
let n = t.style.color;
|
|
69
83
|
t.style.color = e;
|
|
70
84
|
let r = getComputedStyle(t).color;
|
|
71
85
|
return t.style.color = n, r || e;
|
|
72
86
|
}
|
|
73
|
-
let
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
let [e, a, o] = t.colorResolver(
|
|
87
|
+
let E = x[t.variant], D = 0;
|
|
88
|
+
function O() {
|
|
89
|
+
h.value = T(t.color);
|
|
90
|
+
let [e, a, o] = t.colorResolver(h.value).map((e) => Math.round(e * 255));
|
|
77
91
|
S.value = `rgb(${e}, ${a}, ${o})`;
|
|
78
|
-
let s = i(
|
|
92
|
+
let s = i(h.value), [c, l, u] = r({
|
|
79
93
|
L: s.L,
|
|
80
94
|
C: s.C,
|
|
81
|
-
h: n(s.h, "analogous",
|
|
95
|
+
h: n(s.h, "analogous", E.epicycleHueShift, 1)
|
|
82
96
|
}).map((e) => Math.round(e * 255));
|
|
83
|
-
C.value = `rgb(${c}, ${l}, ${u})
|
|
97
|
+
if (C.value = `rgb(${c}, ${l}, ${u})`, E.epicycleRainbow && D > 0) {
|
|
98
|
+
let e = [];
|
|
99
|
+
for (let t = 0; t < D; t++) {
|
|
100
|
+
let n = D > 1 ? t / (D - 1) : 0, [i, a, o] = r({
|
|
101
|
+
L: .62,
|
|
102
|
+
C: .17,
|
|
103
|
+
h: s.h + -30 + n * 100
|
|
104
|
+
}).map((e) => Math.round(e * 255));
|
|
105
|
+
e.push(`rgb(${i}, ${a}, ${o})`);
|
|
106
|
+
}
|
|
107
|
+
w.value = e;
|
|
108
|
+
} else w.value = [];
|
|
84
109
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
110
|
+
function k(e) {
|
|
111
|
+
return d(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
|
|
87
112
|
harmonics: e.harmonics,
|
|
88
113
|
harmonicScale: e.harmonicScale
|
|
89
114
|
});
|
|
90
115
|
}
|
|
91
|
-
let { isDark:
|
|
92
|
-
return
|
|
93
|
-
let n =
|
|
116
|
+
let { isDark: A } = a();
|
|
117
|
+
return g(() => {
|
|
118
|
+
let n = f.value;
|
|
94
119
|
if (!n) return;
|
|
95
|
-
let r =
|
|
120
|
+
let r = x[t.variant], i = k(r), a = [...i].sort((e, t) => t.amplitude - e.amplitude);
|
|
121
|
+
D = a.length, O();
|
|
122
|
+
let o = Infinity, s = Infinity, d = -Infinity, p = -Infinity;
|
|
96
123
|
for (let e = 0; e < 720; e++) {
|
|
97
|
-
let t =
|
|
98
|
-
n < o && (o = n), r < s && (s = r), n >
|
|
124
|
+
let t = c(i, e / 720), [n, r] = t[t.length - 1];
|
|
125
|
+
n < o && (o = n), r < s && (s = r), n > d && (d = n), r > p && (p = r);
|
|
99
126
|
}
|
|
100
|
-
let
|
|
101
|
-
canvas:
|
|
127
|
+
let m = Math.max(.001, d - o), h = Math.max(.001, p - s), g = (o + d) / 2, _ = (s + p) / 2, v = [], y = e({
|
|
128
|
+
canvas: f,
|
|
102
129
|
setup: () => ({ render(e, o) {
|
|
103
|
-
let s = n.clientWidth || n.offsetWidth || 0,
|
|
104
|
-
if (!s || !
|
|
105
|
-
let d = .82,
|
|
106
|
-
if (e.clearRect(0, 0, s,
|
|
107
|
-
let t =
|
|
108
|
-
e.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
130
|
+
let s = n.clientWidth || n.offsetWidth || 0, u = n.clientHeight || n.offsetHeight || 0;
|
|
131
|
+
if (!s || !u) return;
|
|
132
|
+
let d = .82, f = Math.min(s / m * d, u / h * d), p = s / 2, b = u / 2, x = (e, t) => [p + (e - g) * f, b + (t - _) * f], T = t.freeze || y.reducedMotion ? r.frozenT : t.clock ? t.clock() : o / r.durationMs % 1, E = S.value, D = C.value, O = w.value, k = A.value, j = r.peakAlpha * l, M = r.headGlowAlpha * l;
|
|
133
|
+
if (e.clearRect(0, 0, s, u), r.epicycleRatios.arm > 0) {
|
|
134
|
+
let t = c(a, T);
|
|
135
|
+
e.lineCap = "round", e.lineJoin = "round";
|
|
136
|
+
let n = Math.min(1, j * r.epicycleRatios.circle), i = Math.min(1, j * r.epicycleRatios.arm);
|
|
137
|
+
for (let a = 1; a < t.length; a++) {
|
|
138
|
+
let [o, s] = x(t[a - 1][0], t[a - 1][1]), [c, l] = x(t[a][0], t[a][1]), u = Math.hypot(c - o, l - s), d = O.length > 0 ? O[Math.min(a - 1, O.length - 1)] : D;
|
|
139
|
+
e.strokeStyle = d, e.lineWidth = r.epicycleWidths.circle, e.globalAlpha = n, e.beginPath(), e.arc(o, s, u, 0, Math.PI * 2), e.stroke(), e.lineWidth = r.epicycleWidths.arm, e.globalAlpha = i, e.beginPath(), e.moveTo(o, s), e.lineTo(c, l), e.stroke(), e.fillStyle = d, e.globalAlpha = Math.min(1, i * .9), e.beginPath(), e.arc(o, s, Math.max(2, r.epicycleWidths.arm * .9), 0, Math.PI * 2), e.fill();
|
|
112
140
|
}
|
|
113
141
|
e.globalAlpha = 1;
|
|
114
142
|
}
|
|
115
|
-
let
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
143
|
+
let N = r.trailLength / 600, P = r.trailLength;
|
|
144
|
+
v.length = 0;
|
|
145
|
+
for (let e = P; e >= 0; e--) {
|
|
146
|
+
let t = c(i, (T - e / P * N + 1) % 1);
|
|
147
|
+
v.push(x(t[t.length - 1][0], t[t.length - 1][1]));
|
|
148
|
+
}
|
|
149
|
+
e.globalCompositeOperation = "source-over", e.strokeStyle = E, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = r.trailWidth;
|
|
150
|
+
for (let t = 1; t < v.length; t++) {
|
|
151
|
+
let n = j * (t / (v.length - 1)) ** r.trailFadeExp;
|
|
152
|
+
n = Math.max(n, j * r.trailFloor), e.globalAlpha = Math.min(1, n), e.beginPath(), e.moveTo(v[t - 1][0], v[t - 1][1]), e.lineTo(v[t][0], v[t][1]), e.stroke();
|
|
153
|
+
}
|
|
154
|
+
if (e.globalCompositeOperation = A.value ? "lighter" : "source-over", k && v.length >= 4) {
|
|
155
|
+
e.strokeStyle = E, e.lineWidth = r.trailWidth;
|
|
156
|
+
let t = Math.max(1, Math.floor(v.length * .66));
|
|
157
|
+
for (let n = t; n < v.length; n++) {
|
|
158
|
+
let r = (n - t) / Math.max(1, v.length - 1 - t);
|
|
159
|
+
e.globalAlpha = Math.min(1, .18 * r * l), e.beginPath(), e.moveTo(v[n - 1][0], v[n - 1][1]), e.lineTo(v[n][0], v[n][1]), e.stroke();
|
|
123
160
|
}
|
|
124
|
-
} else for (_.push(N); _.length > r.trailLength;) _.shift();
|
|
125
|
-
e.globalCompositeOperation = O.value ? "lighter" : "source-over", e.strokeStyle = T, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = 1.6;
|
|
126
|
-
for (let t = 1; t < _.length; t++) {
|
|
127
|
-
let n = D * (t / (_.length - 1)) ** r.trailFadeExp;
|
|
128
|
-
n = Math.max(n, D * r.trailFloor), e.globalAlpha = n, e.beginPath(), e.moveTo(_[t - 1][0], _[t - 1][1]), e.lineTo(_[t][0], _[t][1]), e.stroke();
|
|
129
161
|
}
|
|
130
|
-
if (
|
|
131
|
-
e.save(), e.shadowColor =
|
|
132
|
-
let t =
|
|
162
|
+
if (v.length >= 2) {
|
|
163
|
+
e.save(), e.globalCompositeOperation = "source-over", e.shadowColor = E, e.shadowBlur = r.headGlowBlur, e.globalAlpha = Math.min(1, M), e.strokeStyle = E, e.lineWidth = r.trailWidth + .6;
|
|
164
|
+
let t = v.slice(-6);
|
|
133
165
|
e.beginPath(), e.moveTo(t[0][0], t[0][1]);
|
|
134
166
|
for (let n = 1; n < t.length; n++) e.lineTo(t[n][0], t[n][1]);
|
|
135
167
|
e.stroke(), e.restore();
|
|
136
168
|
}
|
|
169
|
+
if (r.headDotRadius > 0 && v.length >= 1) {
|
|
170
|
+
let [t, n] = v[v.length - 1];
|
|
171
|
+
e.globalCompositeOperation = "source-over", e.globalAlpha = Math.min(1, M * .4), e.fillStyle = E, e.beginPath(), e.arc(t, n, r.headDotRadius * 2.6, 0, Math.PI * 2), e.fill(), e.globalAlpha = Math.min(1, M), e.beginPath(), e.arc(t, n, r.headDotRadius, 0, Math.PI * 2), e.fill(), e.globalAlpha = Math.min(1, M * .95), e.fillStyle = "rgb(255, 255, 255)", e.beginPath(), e.arc(t, n, Math.max(1.2, r.headDotRadius * .38), 0, Math.PI * 2), e.fill();
|
|
172
|
+
}
|
|
137
173
|
e.shadowBlur = 0, e.globalCompositeOperation = "source-over", e.globalAlpha = 1;
|
|
138
174
|
} })
|
|
139
175
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}),
|
|
143
|
-
|
|
176
|
+
b(u, O, { immediate: !0 }), b(() => t.color, () => {
|
|
177
|
+
O(), y.wake();
|
|
178
|
+
}), b(A, () => {
|
|
179
|
+
O(), y.wake();
|
|
144
180
|
});
|
|
145
|
-
}), (e, t) => (
|
|
181
|
+
}), (e, t) => (_(), p("div", {
|
|
146
182
|
ref_key: "hostRef",
|
|
147
|
-
ref:
|
|
183
|
+
ref: u,
|
|
148
184
|
class: "fourier-field"
|
|
149
|
-
}, [
|
|
185
|
+
}, [m("canvas", {
|
|
150
186
|
ref_key: "canvasRef",
|
|
151
|
-
ref:
|
|
187
|
+
ref: f,
|
|
152
188
|
class: "fourier-field-canvas",
|
|
153
189
|
"aria-hidden": "true"
|
|
154
190
|
}, null, 512)], 512));
|
|
155
191
|
}
|
|
156
|
-
}), [["__scopeId", "data-v-
|
|
192
|
+
}), [["__scopeId", "data-v-96459506"]]);
|
|
157
193
|
//#endregion
|
|
158
|
-
export {
|
|
194
|
+
export { S as FourierField, f as comp, u as dftFromPoints, d as makeEllipticSpectrum, l as partialSumAt, c as positionsAt };
|
package/dist/fourier-math.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./math-DeuJwLFx.js";
|
|
2
|
+
export { i as comp, n as dftFromPoints, r as makeEllipticSpectrum, t as partialSumAt, e as positionsAt };
|