@mkbabb/glass-ui 3.8.0 → 3.10.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 +1 -6
- package/dist/{CardAction-q2qHCJFG.js → CardAction-DuArVky-.js} +4 -4
- package/dist/{CommandShortcut-SzWRhROC.js → CommandShortcut-CefCj5mt.js} +7 -7
- package/dist/{ContextMenuSubContent-Do977Cbf.js → ContextMenuSubContent-Bhg4f5jX.js} +3 -3
- package/dist/{DataTable-CvlWXz65.js → DataTable-CUHMukiQ.js} +1 -1
- package/dist/{DialogContent-DjZWT3lK.js → DialogContent-BRkT1cjP.js} +1 -1
- package/dist/{MetricBadge-lTc002u2.js → MetricBadge-BZVWIxNy.js} +6 -4
- package/dist/{Notification-BxK8LZMw.js → Notification-DLMhblXR.js} +2 -2
- package/dist/{NumberFieldContent-CLNVR1iY.js → NumberFieldContent-BbLOh8RU.js} +2 -2
- package/dist/{SelectScrollDownButton-C7TRe-ep.js → SelectScrollDownButton-T32cVFeM.js} +3 -3
- package/dist/{SelectSeparator-L8pPEn4L.js → SelectSeparator-C4Ql0gzV.js} +1 -1
- package/dist/{Switch-LDKLmmgx.js → Switch-Ch-k3Rv-.js} +1 -1
- package/dist/{TabsList-qyHZ2lKY.js → TabsList-B8CVOQPC.js} +2 -2
- package/dist/{Toaster-CabYEEF_.js → Toaster-1rYWrmAm.js} +1 -1
- package/dist/{ToggleGroupItem-CkXUcBlt.js → ToggleGroupItem-Cev4pOVK.js} +4 -4
- package/dist/animated-digit.js +1 -1
- package/dist/api/index.d.ts +2 -1
- package/dist/api.js +1 -1
- package/dist/aurora.js +236 -545
- package/dist/{badge-DHQrc_GQ.js → badge-CaoFJzRb.js} +5 -5
- package/dist/badge.js +1 -1
- package/dist/{button-CAywcrhO.js → button-DN39cGqL.js} +13 -12
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +1 -1
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/{compile-BBTRjvQS.js → compile-BOXjLUxu.js} +24 -24
- package/dist/components/custom/aurora/composables/atoms.d.ts +21 -4
- package/dist/components/custom/aurora/composables/runtime.d.ts +0 -9
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +0 -11
- package/dist/components/custom/aurora/constants/renderMode.d.ts +0 -32
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
- package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +1 -1
- package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +1 -1
- package/dist/components/custom/constellation/Constellation.vue.d.ts +73 -1
- package/dist/components/custom/constellation/constellationField.d.ts +255 -3
- package/dist/components/custom/constellation/index.d.ts +2 -2
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +3 -0
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +4 -3
- package/dist/components/custom/dock/GlassDock.vue.d.ts +45 -63
- package/dist/components/custom/dock/composables/dockContext.d.ts +7 -0
- package/dist/components/custom/dock/index.d.ts +2 -1
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +29 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +6 -0
- package/dist/components/custom/fourier-field/index.d.ts +25 -1
- package/dist/components/custom/fourier-field/math.d.ts +3 -8
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +8 -10
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +19 -5
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +6 -14
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/types.d.ts +59 -25
- package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
- package/dist/components/custom/handmark/brush.d.ts +219 -0
- package/dist/components/custom/handmark/freehand.d.ts +69 -0
- package/dist/components/custom/handmark/geometry.d.ts +32 -0
- package/dist/components/custom/handmark/index.d.ts +21 -0
- package/dist/components/custom/handmark/ink.d.ts +11 -0
- package/dist/components/custom/handmark/texture.d.ts +39 -0
- package/dist/components/custom/handmark/types.d.ts +53 -0
- package/dist/components/custom/handmark/useHandMark.d.ts +66 -0
- package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +8 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +92 -0
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +49 -0
- package/dist/components/custom/tabs/index.d.ts +2 -5
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +5 -3
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +3 -4
- package/dist/components/ui/slider/index.d.ts +22 -11
- package/dist/components/ui/tabs/TabsList.vue.d.ts +1 -1
- package/dist/composables/color/index.d.ts +12 -7
- package/dist/composables/context/createContext.d.ts +1 -1
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +1 -6
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/composables/motion/useRouteTransition.d.ts +42 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +1 -1
- package/dist/constellation.js +212 -72
- package/dist/context-menu.js +1 -1
- package/dist/controls.js +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck-progress.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dock.js +257 -243
- package/dist/{dropdown-menu-B_4bWyyG.js → dropdown-menu-D77jX6Df.js} +3 -3
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +61 -38
- package/dist/forms.js +5 -5
- package/dist/fourier-field.js +89 -97
- package/dist/fourier-math.d.ts +1 -0
- package/dist/fourier-math.js +2 -0
- package/dist/glass-panel.js +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +107 -109
- package/dist/goo-blob.js +316 -297
- package/dist/handmark.d.ts +1 -0
- package/dist/handmark.js +609 -0
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/keyboard.js +1 -1
- package/dist/labeled-field.js +5 -5
- package/dist/math-DTpRVC0e.js +27 -0
- package/dist/{menuItemVariants-DKM85SNE.js → menuItemVariants-CCoBNkU5.js} +1 -1
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +70 -69
- package/dist/motion.js +2 -2
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +4 -4
- package/dist/select.js +2 -2
- package/dist/{slider-D9puf-Ko.js → slider-CyzcxBoh.js} +6 -6
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +1 -1
- package/dist/status-dot.js +17 -16
- package/dist/styles/animations.css +80 -20
- package/dist/styles/cards.css +2 -2
- package/dist/styles/components.css +1 -1
- package/dist/styles/dock/density.css +230 -0
- package/dist/styles/dock/layer-group.css +275 -0
- package/dist/styles/dock/layers.css +355 -0
- package/dist/styles/dock/morph.css +244 -0
- package/dist/styles/dock/overflow.css +201 -0
- package/dist/styles/dock/shell.css +457 -0
- package/dist/styles/dock-controls.css +205 -55
- package/dist/styles/dock.css +42 -1349
- package/dist/styles/drawer.css +12 -4
- package/dist/styles/glass.css +535 -78
- package/dist/styles/index.css +12 -11
- package/dist/styles/paper.css +68 -2
- package/dist/styles/theme.css +58 -0
- package/dist/styles/tokens.css +601 -69
- package/dist/styles/transitions.css +20 -2
- package/dist/styles/utilities.css +218 -78
- package/dist/styles/view-transition.css +51 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +182 -151
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{useAnimatedNumber-C_3wZLx4.js → useAnimatedNumber-Bcpy5Etf.js} +1 -1
- package/dist/{useConfiguratorState-CMff4GzH.js → useConfiguratorState-DxAqksK6.js} +21 -10
- package/dist/{useGlassRenderer-5I0YkI4t.js → useGlassRenderer-D7YGOYiM.js} +1 -1
- package/dist/useViewTransition-DaN5Zrox.js +21 -0
- package/dist/vReveal-zUIQk-rJ.js +53 -0
- package/dist/watercolor-dot.js +1 -1
- package/package.json +80 -39
- package/src/styles/animations.css +80 -20
- package/src/styles/cards.css +2 -2
- package/src/styles/dock/density.css +230 -0
- package/src/styles/dock/layer-group.css +275 -0
- package/src/styles/dock/layers.css +355 -0
- package/src/styles/dock/morph.css +244 -0
- package/src/styles/dock/overflow.css +201 -0
- package/src/styles/dock/shell.css +457 -0
- package/src/styles/dock-controls.css +205 -55
- package/src/styles/dock.css +42 -1349
- package/src/styles/drawer.css +12 -4
- package/src/styles/glass.css +535 -78
- package/src/styles/index.css +12 -11
- package/src/styles/paper.css +68 -2
- package/src/styles/theme.css +58 -0
- package/src/styles/tokens.css +601 -69
- package/src/styles/transitions.css +20 -2
- package/src/styles/utilities.css +218 -78
- package/src/styles/view-transition.css +51 -0
- package/dist/DiscoGlyph-CG0F410s.js +0 -132
- package/dist/GlyphFace-DRjDkB0s.js +0 -51
- package/dist/UnderlineTabs-Uxn-R3MT.js +0 -39
- package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +0 -16
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +0 -7
- package/dist/components/custom/aurora/constants/shaders/painterly.wgsl.d.ts +0 -7
- package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +0 -4
- package/dist/components/custom/disco-glyph/DiscoGlyph.vue.d.ts +0 -58
- package/dist/components/custom/disco-glyph/index.d.ts +0 -1
- package/dist/components/custom/glass-carousel/GlassCarousel.vue.d.ts +0 -36
- package/dist/components/custom/glass-carousel/GlassCarouselItem.vue.d.ts +0 -28
- package/dist/components/custom/glass-carousel/index.d.ts +0 -4
- package/dist/components/custom/glass-carousel/useGlassCarousel.d.ts +0 -30
- package/dist/components/custom/glyph-face/GlyphFace.vue.d.ts +0 -64
- package/dist/components/custom/glyph-face/index.d.ts +0 -2
- package/dist/components/custom/glyph-face/keys.d.ts +0 -9
- package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +0 -73
- package/dist/components/custom/responsive-tabs/index.d.ts +0 -2
- package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +0 -27
- package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +0 -60
- package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +0 -20
- package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +0 -39
- package/dist/composables/glass/createGPUCanvas.d.ts +0 -40
- package/dist/disco-glyph.d.ts +0 -1
- package/dist/disco-glyph.js +0 -2
- package/dist/glass-carousel.d.ts +0 -1
- package/dist/glass-carousel.js +0 -219
- package/dist/glyph-face.d.ts +0 -1
- package/dist/glyph-face.js +0 -3
- package/dist/keys-BsYjEFOW.js +0 -9
- package/dist/responsive-tabs.d.ts +0 -1
- package/dist/responsive-tabs.js +0 -95
- package/dist/styles/disco-glyph.css +0 -26
- package/dist/styles/glyph-face.css +0 -92
- package/dist/vReveal-CqaCz_mC.js +0 -44
- package/src/styles/disco-glyph.css +0 -26
- package/src/styles/glyph-face.css +0 -92
- /package/dist/{DeckProgress-AVgbIULY.js → DeckProgress-Dmk4_AKN.js} +0 -0
- /package/dist/{HoverPopover-D56O6Ylp.js → HoverPopover-2LOIW34a.js} +0 -0
- /package/dist/{IconTooltip-D2T5nYOM.js → IconTooltip-Cus0fvK0.js} +0 -0
- /package/dist/{Input-DVG_J0ne.js → Input-xuDwALQR.js} +0 -0
- /package/dist/{ScrollingText-CVyqxvfv.js → ScrollingText-BPP84wKo.js} +0 -0
- /package/dist/{color-DMLTunJK.js → color-C5ls_QF7.js} +0 -0
- /package/dist/{constants-BPOqYJAm.js → constants-yKeKnE84.js} +0 -0
- /package/dist/{presets-D1XPuTj-.js → presets-Dkdv55Gt.js} +0 -0
- /package/dist/{prng-COGhh02-.js → prng-D27-B3tK.js} +0 -0
- /package/dist/{useGlobalDark-D3EBWzXK.js → useGlobalDark-d6waty-X.js} +0 -0
- /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Cck5Uxk8.js} +0 -0
- /package/dist/{useInterval-CcLfq2WU.js → useInterval-Dsmqwi03.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-CyIYrndH.js} +0 -0
- /package/dist/{useScrollProgress-C9ysDic5.js → useScrollProgress-CffFGLa5.js} +0 -0
- /package/dist/{useSortable-MGAbCGVJ.js → useSortable-C8ReQ50P.js} +0 -0
- /package/dist/{useTextHighlight-9nMW23Qb.js → useTextHighlight-CWEi25hf.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./check-BBKKKSTf.js";
|
|
3
3
|
import { t as n } from "./chevron-right-sDM0Yvrf.js";
|
|
4
|
-
import { t as r } from "./menuItemVariants-
|
|
4
|
+
import { t as r } from "./menuItemVariants-CCoBNkU5.js";
|
|
5
5
|
import { i } from "./dockContext-BKeIMmNk.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";
|
|
@@ -223,7 +223,7 @@ var L = /* @__PURE__ */ u({
|
|
|
223
223
|
] } },
|
|
224
224
|
setup(t) {
|
|
225
225
|
let n = t;
|
|
226
|
-
return (t, r) => (h(), s("span", { class: p(_(e)("ml-auto text-
|
|
226
|
+
return (t, r) => (h(), s("span", { class: p(_(e)("ml-auto text-dropdown-secondary tracking-widest opacity-60", n.class)) }, [g(t.$slots, "default")], 2));
|
|
227
227
|
}
|
|
228
228
|
}), J = /* @__PURE__ */ u({
|
|
229
229
|
__name: "DropdownMenuSeparator",
|
|
@@ -264,7 +264,7 @@ var L = /* @__PURE__ */ u({
|
|
|
264
264
|
let { class: e, ...t } = n;
|
|
265
265
|
return t;
|
|
266
266
|
}));
|
|
267
|
-
return (i, a) => (h(), o(_(w), f(_(r), { class: _(e)("px-2 py-1.5 text-
|
|
267
|
+
return (i, a) => (h(), o(_(w), f(_(r), { class: _(e)("px-2 py-1.5 text-dropdown-secondary font-semibold", t.inset && "pl-8", n.class) }), {
|
|
268
268
|
default: v(() => [g(i.$slots, "default")]),
|
|
269
269
|
_: 3
|
|
270
270
|
}, 16, ["class"]));
|
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-D77jX6Df.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,26 +1,25 @@
|
|
|
1
1
|
import { n as e, t } from "./minimize-2-lcXOuc6V.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t as n } from "./useViewTransition-DaN5Zrox.js";
|
|
3
|
+
import { i as r } from "./useKeyboardShortcuts-CyIYrndH.js";
|
|
4
|
+
import { Fragment as i, Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onUnmounted as v, openBlock as y, renderSlot as b, unref as x, useId as S, useModel as C, watch as w } from "vue";
|
|
4
5
|
//#region src/components/custom/expandable-container/ExpandableContainer.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, C = ["aria-label"], w = { class: "h-full w-full" }, T = 0, E = null;
|
|
9
|
-
function D() {
|
|
10
|
-
return typeof document > "u" ? !1 : (T === 0 && (E = document.body.style.overflow, document.body.style.overflow = "hidden"), T += 1, !0);
|
|
6
|
+
var T = ["aria-label"], E = ["aria-label"], D = { class: "h-full w-full" }, O = 0, k = null;
|
|
7
|
+
function A() {
|
|
8
|
+
return typeof document > "u" ? !1 : (O === 0 && (k = document.body.style.overflow, document.body.style.overflow = "hidden"), O += 1, !0);
|
|
11
9
|
}
|
|
12
|
-
function
|
|
13
|
-
typeof document > "u" ||
|
|
10
|
+
function j() {
|
|
11
|
+
typeof document > "u" || O === 0 || (--O, O === 0 && (document.body.style.overflow = k ?? "", k = null));
|
|
14
12
|
}
|
|
15
13
|
//#endregion
|
|
16
14
|
//#region src/components/custom/expandable-container/ExpandableContainer.vue
|
|
17
|
-
var
|
|
15
|
+
var M = /* @__PURE__ */ f({
|
|
18
16
|
inheritAttrs: !1,
|
|
19
17
|
__name: "ExpandableContainer",
|
|
20
|
-
props: /* @__PURE__ */
|
|
18
|
+
props: /* @__PURE__ */ p({
|
|
21
19
|
buttonPosition: { default: "right" },
|
|
22
20
|
expandLabel: { default: "Fullscreen" },
|
|
23
|
-
collapseLabel: { default: "Exit fullscreen" }
|
|
21
|
+
collapseLabel: { default: "Exit fullscreen" },
|
|
22
|
+
viewTransitionName: { default: void 0 }
|
|
24
23
|
}, {
|
|
25
24
|
open: {
|
|
26
25
|
type: Boolean,
|
|
@@ -29,42 +28,66 @@ var k = /* @__PURE__ */ u({
|
|
|
29
28
|
openModifiers: {}
|
|
30
29
|
}),
|
|
31
30
|
emits: ["update:open"],
|
|
32
|
-
setup(
|
|
33
|
-
let
|
|
34
|
-
function
|
|
35
|
-
if (
|
|
36
|
-
|
|
31
|
+
setup(f) {
|
|
32
|
+
let p = f, O = C(f, "open"), k = S(), M = o(() => p.viewTransitionName === void 0 ? void 0 : `gl-expand-${p.viewTransitionName}-${k}`), N = o(() => M.value === void 0 ? void 0 : { "view-transition-name": M.value });
|
|
33
|
+
function P() {
|
|
34
|
+
if (M.value === void 0) {
|
|
35
|
+
O.value = !0;
|
|
37
36
|
return;
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
n(() => {
|
|
39
|
+
O.value = !0;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function F() {
|
|
43
|
+
if (M.value === void 0) {
|
|
44
|
+
O.value = !1;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
n(() => {
|
|
48
|
+
O.value = !1;
|
|
49
|
+
});
|
|
40
50
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
let I = !1;
|
|
52
|
+
function L(e) {
|
|
53
|
+
if (e && !I) {
|
|
54
|
+
I = A();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
!e && I && (j(), I = !1);
|
|
58
|
+
}
|
|
59
|
+
w(O, L, { immediate: !0 });
|
|
60
|
+
let R = null;
|
|
61
|
+
return _(() => {
|
|
62
|
+
R = r("Escape", () => {
|
|
63
|
+
O.value && F();
|
|
46
64
|
}, {
|
|
47
65
|
label: "Exit fullscreen",
|
|
48
66
|
group: "UI",
|
|
49
67
|
allowInInput: !0
|
|
50
68
|
});
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
}), (n,
|
|
69
|
+
}), v(() => {
|
|
70
|
+
R?.(), L(!1);
|
|
71
|
+
}), (n, r) => (y(), l(i, null, [O.value ? c("", !0) : (y(), l("div", m({
|
|
54
72
|
key: 0,
|
|
55
|
-
class: "relative"
|
|
56
|
-
|
|
57
|
-
|
|
73
|
+
class: ["relative", { "gl-expand": M.value !== void 0 }],
|
|
74
|
+
style: N.value
|
|
75
|
+
}, n.$attrs), [u("button", {
|
|
76
|
+
class: h(["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", f.buttonPosition === "left" ? "left-2 top-2" : "right-2 top-2"]),
|
|
58
77
|
title: "Fullscreen",
|
|
59
|
-
"aria-label":
|
|
60
|
-
onClick:
|
|
61
|
-
}, [
|
|
62
|
-
|
|
78
|
+
"aria-label": f.expandLabel,
|
|
79
|
+
onClick: P
|
|
80
|
+
}, [d(x(e), { class: "h-4 w-4" })], 10, T), b(n.$slots, "default", { fullscreen: !1 })], 16)), (y(), s(a, { to: "body" }, [O.value ? (y(), l("div", {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: h(["fixed inset-0 z-modal flex flex-col bg-background", { "gl-expand": M.value !== void 0 }]),
|
|
83
|
+
style: g(N.value)
|
|
84
|
+
}, [u("button", {
|
|
85
|
+
class: h(["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", f.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
|
|
63
86
|
title: "Exit fullscreen",
|
|
64
|
-
"aria-label":
|
|
65
|
-
onClick:
|
|
66
|
-
}, [
|
|
87
|
+
"aria-label": f.collapseLabel,
|
|
88
|
+
onClick: F
|
|
89
|
+
}, [d(x(t), { class: "h-4 w-4" })], 10, E), u("div", D, [b(n.$slots, "default", { fullscreen: !0 })])], 6)) : c("", !0)]))], 64));
|
|
67
90
|
}
|
|
68
91
|
});
|
|
69
92
|
//#endregion
|
|
70
|
-
export {
|
|
93
|
+
export { M as ExpandableContainer };
|
package/dist/forms.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./search-nbkvr2dC.js";
|
|
3
|
-
import { t as n } from "./menuItemVariants-
|
|
3
|
+
import { t as n } from "./menuItemVariants-CCoBNkU5.js";
|
|
4
4
|
import { t as r } from "./useUserInvalidAria-DoJKMZ3s.js";
|
|
5
|
-
import { t as i } from "./Input-
|
|
5
|
+
import { t as i } from "./Input-xuDwALQR.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";
|
|
@@ -118,7 +118,7 @@ var z = ["data-autosize"], B = /* @__PURE__ */ d({
|
|
|
118
118
|
},
|
|
119
119
|
setup(t) {
|
|
120
120
|
let n = t, r = L(n, "class");
|
|
121
|
-
return (t, i) => (m(), o(_(w), p({ "data-slot": "combobox-empty" }, _(r), { class: _(e)("py-6 text-center text-
|
|
121
|
+
return (t, i) => (m(), o(_(w), p({ "data-slot": "combobox-empty" }, _(r), { class: _(e)("py-6 text-center text-dropdown", n.class) }), {
|
|
122
122
|
default: y(() => [h(t.$slots, "default")]),
|
|
123
123
|
_: 3
|
|
124
124
|
}, 16, ["class"]));
|
|
@@ -142,7 +142,7 @@ var z = ["data-autosize"], B = /* @__PURE__ */ d({
|
|
|
142
142
|
return (i, a) => (m(), o(_(T), p({ "data-slot": "combobox-group" }, _(r), { class: _(e)("overflow-hidden p-1 text-foreground", n.class) }), {
|
|
143
143
|
default: y(() => [t.heading ? (m(), o(_(k), {
|
|
144
144
|
key: 0,
|
|
145
|
-
class: "px-2 py-1.5 text-
|
|
145
|
+
class: "px-2 py-1.5 text-dropdown-secondary font-medium text-muted-foreground"
|
|
146
146
|
}, {
|
|
147
147
|
default: y(() => [l(g(t.heading), 1)]),
|
|
148
148
|
_: 1
|
|
@@ -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-[var(--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,45 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./useCanvas2D-ClrQuZtp.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
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
|
-
|
|
8
|
-
function g(e, t, n) {
|
|
9
|
-
return {
|
|
10
|
-
index: e,
|
|
11
|
-
coefficient: [t, n],
|
|
12
|
-
amplitude: Math.hypot(t, n),
|
|
13
|
-
phase: Math.atan2(n, t)
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function _(e, t, n) {
|
|
17
|
-
let r = 0, i = 0, a = n ?? e.length;
|
|
18
|
-
for (let n = 0; n < a && n < e.length; n++) {
|
|
19
|
-
let a = e[n], o = 2 * Math.PI * a.index * t, s = Math.cos(o), c = Math.sin(o);
|
|
20
|
-
r += a.coefficient[0] * s - a.coefficient[1] * c, i += a.coefficient[0] * c + a.coefficient[1] * s;
|
|
21
|
-
}
|
|
22
|
-
return [r, i];
|
|
23
|
-
}
|
|
24
|
-
function v(e, t, n) {
|
|
25
|
-
let r = [[0, 0]], i = 0, a = 0, o = n ?? e.length;
|
|
26
|
-
for (let n = 0; n < o && n < e.length; n++) {
|
|
27
|
-
let o = e[n], s = 2 * Math.PI * o.index * t, c = Math.cos(s), l = Math.sin(s);
|
|
28
|
-
i += o.coefficient[0] * c - o.coefficient[1] * l, a += o.coefficient[0] * l + o.coefficient[1] * c, r.push([i, a]);
|
|
29
|
-
}
|
|
30
|
-
return r;
|
|
31
|
-
}
|
|
32
|
-
function y(e, t = {}) {
|
|
33
|
-
let { harmonics: n = 4, harmonicScale: r = .22 } = t, i = .62 + e() * .18, a = i * (.34 + e() * .3), o = e() * Math.PI * 2, s = e() * Math.PI * 2, c = [g(1, i * Math.cos(o), i * Math.sin(o)), g(-1, a * Math.cos(s), a * Math.sin(s))];
|
|
34
|
-
for (let t = 0; t < n; t++) {
|
|
35
|
-
let n = 2 + Math.floor(t / 2), i = t % 2 == 0 ? n : -n, a = r / n * (.4 + e() * .6), o = e() * Math.PI * 2;
|
|
36
|
-
c.push(g(i, a * Math.cos(o), a * Math.sin(o)));
|
|
37
|
-
}
|
|
38
|
-
return c;
|
|
39
|
-
}
|
|
3
|
+
import { i as n, s as r, t as i } from "./color-C5ls_QF7.js";
|
|
4
|
+
import { t as a } from "./useGlobalDark-d6waty-X.js";
|
|
5
|
+
import { n as o, t as s } from "./prng-D27-B3tK.js";
|
|
6
|
+
import { n as c, r as l, t as u } from "./math-DTpRVC0e.js";
|
|
7
|
+
import { createElementBlock as d, createElementVNode as f, defineComponent as p, onMounted as m, openBlock as h, ref as g, useTemplateRef as _, watch as v } from "vue";
|
|
40
8
|
//#endregion
|
|
41
|
-
//#region src/components/custom/fourier-field/FourierField.vue
|
|
42
|
-
var
|
|
9
|
+
//#region src/components/custom/fourier-field/FourierField.vue
|
|
10
|
+
var y = /* @__PURE__ */ t(/* @__PURE__ */ p({
|
|
43
11
|
__name: "FourierField",
|
|
44
12
|
props: {
|
|
45
13
|
variant: { default: "hero" },
|
|
@@ -49,10 +17,11 @@ var b = .24, x = /* @__PURE__ */ t(/* @__PURE__ */ u({
|
|
|
49
17
|
freeze: {
|
|
50
18
|
type: Boolean,
|
|
51
19
|
default: !1
|
|
52
|
-
}
|
|
20
|
+
},
|
|
21
|
+
intensity: { default: 1 }
|
|
53
22
|
},
|
|
54
23
|
setup(t) {
|
|
55
|
-
let u = {
|
|
24
|
+
let u = Math.max(0, Math.min(2, t.intensity)), p = {
|
|
56
25
|
hero: {
|
|
57
26
|
harmonics: 4,
|
|
58
27
|
harmonicScale: .22,
|
|
@@ -61,7 +30,16 @@ var b = .24, x = /* @__PURE__ */ t(/* @__PURE__ */ u({
|
|
|
61
30
|
epicycleHueShift: 42,
|
|
62
31
|
durationMs: 16e3,
|
|
63
32
|
frozenSeed: "fourier-field/hero",
|
|
64
|
-
frozenT: .18
|
|
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
|
|
65
43
|
},
|
|
66
44
|
final: {
|
|
67
45
|
harmonics: 9,
|
|
@@ -71,96 +49,110 @@ var b = .24, x = /* @__PURE__ */ t(/* @__PURE__ */ u({
|
|
|
71
49
|
epicycleHueShift: 36,
|
|
72
50
|
durationMs: 21e3,
|
|
73
51
|
frozenSeed: "fourier-field/final",
|
|
74
|
-
frozenT: .33
|
|
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
|
|
75
62
|
}
|
|
76
|
-
},
|
|
77
|
-
function
|
|
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) {
|
|
78
65
|
if (!e.includes("var(") && !e.includes("light-dark(")) return e;
|
|
79
|
-
let t =
|
|
66
|
+
let t = y.value;
|
|
80
67
|
if (typeof window > "u" || !t) return e;
|
|
81
68
|
let n = t.style.color;
|
|
82
69
|
t.style.color = e;
|
|
83
70
|
let r = getComputedStyle(t).color;
|
|
84
71
|
return t.style.color = n, r || e;
|
|
85
72
|
}
|
|
86
|
-
|
|
87
|
-
|
|
73
|
+
let T = p[t.variant];
|
|
74
|
+
function E() {
|
|
75
|
+
x.value = w(t.color);
|
|
76
|
+
let [e, a, o] = t.colorResolver(x.value).map((e) => Math.round(e * 255));
|
|
77
|
+
S.value = `rgb(${e}, ${a}, ${o})`;
|
|
78
|
+
let s = i(x.value), [c, l, u] = r({
|
|
79
|
+
L: s.L,
|
|
80
|
+
C: s.C,
|
|
81
|
+
h: n(s.h, "analogous", T.epicycleHueShift, 1)
|
|
82
|
+
}).map((e) => Math.round(e * 255));
|
|
83
|
+
C.value = `rgb(${c}, ${l}, ${u})`;
|
|
88
84
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
85
|
+
function D(e) {
|
|
86
|
+
return c(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
|
|
91
87
|
harmonics: e.harmonics,
|
|
92
88
|
harmonicScale: e.harmonicScale
|
|
93
89
|
});
|
|
94
90
|
}
|
|
95
|
-
let { isDark:
|
|
96
|
-
return
|
|
97
|
-
let
|
|
98
|
-
if (!
|
|
99
|
-
let
|
|
91
|
+
let { isDark: O } = a();
|
|
92
|
+
return m(() => {
|
|
93
|
+
let n = b.value;
|
|
94
|
+
if (!n) return;
|
|
95
|
+
let r = p[t.variant], i = D(r), a = [...i].sort((e, t) => t.amplitude - e.amplitude), o = Infinity, s = Infinity, c = -Infinity, d = -Infinity;
|
|
100
96
|
for (let e = 0; e < 720; e++) {
|
|
101
|
-
let t =
|
|
102
|
-
n <
|
|
97
|
+
let t = l(i, e / 720), [n, r] = t[t.length - 1];
|
|
98
|
+
n < o && (o = n), r < s && (s = r), n > c && (c = n), r > d && (d = r);
|
|
103
99
|
}
|
|
104
|
-
let
|
|
105
|
-
canvas:
|
|
106
|
-
setup: () => ({ render(e,
|
|
107
|
-
let
|
|
108
|
-
if (!
|
|
109
|
-
let d = .82,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}).map((e) => Math.round(e * 255)), P = `rgb(${j}, ${M}, ${N})`;
|
|
114
|
-
if (e.clearRect(0, 0, l, u), o.epicycles) {
|
|
115
|
-
let t = v(s, C);
|
|
116
|
-
e.lineWidth = 1;
|
|
100
|
+
let f = Math.max(.001, c - o), m = Math.max(.001, d - s), h = (o + c) / 2, g = (s + d) / 2, _ = [], x = e({
|
|
101
|
+
canvas: b,
|
|
102
|
+
setup: () => ({ render(e, o) {
|
|
103
|
+
let s = n.clientWidth || n.offsetWidth || 0, c = n.clientHeight || n.offsetHeight || 0;
|
|
104
|
+
if (!s || !c) return;
|
|
105
|
+
let d = .82, p = Math.min(s / f * d, c / m * d), v = s / 2, y = c / 2, b = (e, t) => [v + (e - h) * p, y + (t - g) * p], w = t.freeze || x.reducedMotion ? r.frozenT : o / r.durationMs % 1, T = S.value, E = C.value, D = r.peakAlpha * u, k = r.headGlowAlpha * u;
|
|
106
|
+
if (e.clearRect(0, 0, s, c), r.epicycleRatios.arm > 0) {
|
|
107
|
+
let t = l(a, w);
|
|
108
|
+
e.lineWidth = 1, e.strokeStyle = E;
|
|
117
109
|
for (let n = 1; n < t.length; n++) {
|
|
118
|
-
let [
|
|
119
|
-
e.
|
|
110
|
+
let [i, a] = b(t[n - 1][0], t[n - 1][1]), [o, s] = b(t[n][0], t[n][1]), c = Math.hypot(o - i, s - a);
|
|
111
|
+
e.globalAlpha = D * r.epicycleRatios.circle, e.beginPath(), e.arc(i, a, c, 0, Math.PI * 2), e.stroke(), e.globalAlpha = D * r.epicycleRatios.arm, e.beginPath(), e.moveTo(i, a), e.lineTo(o, s), e.stroke();
|
|
120
112
|
}
|
|
121
113
|
e.globalAlpha = 1;
|
|
122
114
|
}
|
|
123
|
-
let
|
|
124
|
-
if (t.freeze ||
|
|
125
|
-
if (
|
|
126
|
-
let e = Math.min(
|
|
115
|
+
let A = l(i, w), [j, M] = A[A.length - 1], N = b(j, M);
|
|
116
|
+
if (t.freeze || x.reducedMotion) {
|
|
117
|
+
if (_.length === 0) {
|
|
118
|
+
let e = Math.min(r.trailLength, 48);
|
|
127
119
|
for (let t = e; t >= 0; t--) {
|
|
128
|
-
let n =
|
|
129
|
-
|
|
120
|
+
let n = l(i, (w - t / e * .06 + 1) % 1);
|
|
121
|
+
_.push(b(n[n.length - 1][0], n[n.length - 1][1]));
|
|
130
122
|
}
|
|
131
123
|
}
|
|
132
|
-
} else for (
|
|
133
|
-
e.strokeStyle =
|
|
134
|
-
for (let t = 1; t <
|
|
135
|
-
let n = t / (
|
|
136
|
-
|
|
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();
|
|
137
129
|
}
|
|
138
|
-
if (
|
|
139
|
-
e.save(), e.shadowColor =
|
|
140
|
-
let t =
|
|
130
|
+
if (_.length >= 2) {
|
|
131
|
+
e.save(), e.shadowColor = T, e.shadowBlur = r.headGlowBlur, e.globalAlpha = k, e.lineWidth = 2;
|
|
132
|
+
let t = _.slice(-4);
|
|
141
133
|
e.beginPath(), e.moveTo(t[0][0], t[0][1]);
|
|
142
134
|
for (let n = 1; n < t.length; n++) e.lineTo(t[n][0], t[n][1]);
|
|
143
135
|
e.stroke(), e.restore();
|
|
144
136
|
}
|
|
145
|
-
e.globalAlpha = 1;
|
|
137
|
+
e.shadowBlur = 0, e.globalCompositeOperation = "source-over", e.globalAlpha = 1;
|
|
146
138
|
} })
|
|
147
139
|
});
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}),
|
|
151
|
-
|
|
140
|
+
v(y, E, { immediate: !0 }), v(() => t.color, () => {
|
|
141
|
+
E(), x.wake();
|
|
142
|
+
}), v(O, () => {
|
|
143
|
+
E(), x.wake();
|
|
152
144
|
});
|
|
153
|
-
}), (e, t) => (
|
|
145
|
+
}), (e, t) => (h(), d("div", {
|
|
154
146
|
ref_key: "hostRef",
|
|
155
|
-
ref:
|
|
147
|
+
ref: y,
|
|
156
148
|
class: "fourier-field"
|
|
157
|
-
}, [
|
|
149
|
+
}, [f("canvas", {
|
|
158
150
|
ref_key: "canvasRef",
|
|
159
|
-
ref:
|
|
151
|
+
ref: b,
|
|
160
152
|
class: "fourier-field-canvas",
|
|
161
153
|
"aria-hidden": "true"
|
|
162
154
|
}, null, 512)], 512));
|
|
163
155
|
}
|
|
164
|
-
}), [["__scopeId", "data-v-
|
|
156
|
+
}), [["__scopeId", "data-v-d56269df"]]);
|
|
165
157
|
//#endregion
|
|
166
|
-
export {
|
|
158
|
+
export { y as FourierField, u as comp, c as makeEllipticSpectrum, l as positionsAt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/fourier-field/math";
|
package/dist/glass-panel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "./useGlassRenderer-
|
|
2
|
+
import { n as t, r as n, t as r } from "./useGlassRenderer-D7YGOYiM.js";
|
|
3
3
|
import { t as i } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
4
4
|
import { computed as a, createElementBlock as o, defineComponent as s, normalizeClass as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, renderSlot as p } from "vue";
|
|
5
5
|
//#region src/components/custom/glass-panel/GlassPanel.vue?vue&type=script&setup=true&lang.ts
|