@mkbabb/glass-ui 8.0.0 → 10.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/MIGRATION.md +4768 -0
- package/README.md +57 -13
- package/dist/DialogContent-CwIBvou_.js +157 -0
- package/dist/{DropdownMenuTrigger-8UZsBtZ8.js → DropdownMenuTrigger-CKRnhDSQ.js} +1 -1
- package/dist/{Surface-i1tWC-Ga.js → Surface-1nPoabc3.js} +1 -1
- package/dist/{accent-tone-solve-Cw7WkRD9.js → accent-tone-solve-5H6FY2QO.js} +1 -1
- package/dist/aurora.js +386 -355
- package/dist/{badge-owUOaaba.js → badge-BO6BC4G5.js} +1 -1
- package/dist/badge.js +1 -1
- package/dist/blob.js +44 -44
- package/dist/{button-yvGPb0Bx.js → button-BOFTUPyU.js} +1 -1
- package/dist/button.js +1 -1
- package/dist/{card-3HFFpC7_.js → card-ByyqRBvK.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/carousel.js +3 -3
- package/dist/{checkbox-BnXuGgJ3.js → checkbox-B1qn65se.js} +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +8 -3
- package/dist/{class-names-q-UGOkHH.js → class-names-FlXcvRRT.js} +65 -18
- package/dist/{collapsible-B7O6m-Ch.js → collapsible-DFzK29Oh.js} +5 -2
- package/dist/collapsible.js +1 -1
- package/dist/color.glsl-DTJhdekG.js +34 -0
- package/dist/color.js +11 -11
- package/dist/color.wgsl-BTszLY39.js +398 -0
- package/dist/{command-BuBnYpxF.js → command-C-5xSEJ2.js} +8 -8
- package/dist/command.js +1 -1
- package/dist/component-styles.css +1 -0
- package/dist/components/_shared/class-names.d.ts +10 -1
- package/dist/components/_shared/control.d.ts +0 -1
- package/dist/components/_shared/index.d.ts +0 -1
- package/dist/components/_shared/menu/menu.css +1 -1
- package/dist/components/_shared/overlay/index.d.ts +1 -0
- package/dist/components/_shared/overlay/shortcuts.d.ts +12 -0
- package/dist/components/aurora/Aurora.vue.d.ts +1 -0
- package/dist/components/aurora/composables/atoms.d.ts +22 -6
- package/dist/components/aurora/composables/frameLoop.d.ts +6 -5
- package/dist/components/aurora/composables/runtime.d.ts +28 -1
- package/dist/components/aurora/composables/useAurora.d.ts +28 -0
- package/dist/components/aurora/composables/wgpuSetup.d.ts +1 -1
- package/dist/components/aurora/constants/presets.d.ts +62 -5
- package/dist/components/aurora/index.d.ts +1 -1
- package/dist/components/blob/Blob.vue.d.ts +3 -3
- package/dist/components/card/Card.vue.d.ts +8 -2
- package/dist/components/chip/Chip.vue.d.ts +1 -7
- package/dist/components/chip/chipVariants.d.ts +1 -0
- package/dist/components/collapsible/Collapsible.vue.d.ts +1 -0
- package/dist/components/command/CommandDialog.vue.d.ts +1 -1
- package/dist/components/configurator/Configurator.vue.d.ts +25 -2
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +4 -2
- package/dist/components/configurator/styles.css +1 -1
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -1
- package/dist/components/deck/styles/capture.css +1 -1
- package/dist/components/dialog/styles.css +1 -1
- package/dist/components/dock/DockSeparator.vue.d.ts +2 -3
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockContext.d.ts +1 -8
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +0 -2
- package/dist/components/dock/composables/index.d.ts +1 -1
- package/dist/components/dock/composables/useDockHold.d.ts +16 -12
- package/dist/components/dock/composables/useDockRun.d.ts +20 -0
- package/dist/components/dock/composables/useDockSearch.d.ts +1 -1
- package/dist/components/dock/composables/useDockShellProps.d.ts +18 -101
- package/dist/components/dock/composables/useDockState.d.ts +2 -9
- package/dist/components/dock/constants.d.ts +15 -0
- package/dist/components/dock/index.d.ts +2 -2
- package/dist/components/dock/styles/controls/icon-button.css +1 -1
- package/dist/components/dock/styles/controls/tab-button.css +1 -1
- package/dist/components/dock/styles/controls/triggers.css +1 -1
- package/dist/components/dock/styles/controls.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/run.css +1 -0
- package/dist/components/dock/styles/search.css +1 -1
- package/dist/components/dock/styles/shape.css +1 -1
- package/dist/components/dock/styles/shell-regions.css +1 -1
- package/dist/components/dock/styles/shell.css +1 -1
- package/dist/components/fourier-field/FourierField.vue.d.ts +29 -26
- package/dist/components/fourier-field/clock.d.ts +35 -0
- package/dist/components/fourier-field/constants.d.ts +80 -104
- package/dist/components/fourier-field/index.d.ts +3 -28
- package/dist/components/fourier-field/math.d.ts +69 -77
- package/dist/components/fourier-field/renderer/mint.d.ts +50 -0
- package/dist/components/fourier-field/renderer/uniforms.d.ts +84 -0
- package/dist/components/fourier-field/renderer/wgpu.d.ts +28 -0
- package/dist/components/fourier-field/shaders/compute.wgsl.d.ts +1 -0
- package/dist/components/fourier-field/shaders/render.wgsl.d.ts +1 -0
- package/dist/components/fourier-field/useFourierField.d.ts +49 -0
- package/dist/components/handmark/HandMark.vue.d.ts +18 -14
- package/dist/components/handmark/index.d.ts +4 -23
- package/dist/components/handmark/stroke.d.ts +92 -0
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +3 -1
- package/dist/components/labeled-field/types.d.ts +1 -1
- package/dist/components/menu/DropdownMenu.vue.d.ts +1 -1
- package/dist/components/metric/coalesce-metric.d.ts +6 -1
- package/dist/components/metric/styles.css +1 -1
- package/dist/components/popover/Popover.vue.d.ts +1 -1
- package/dist/components/scroll-progress-rim/styles.css +1 -1
- package/dist/components/sheet/styles.css +1 -1
- package/dist/components/slider/styles.css +1 -1
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +25 -112
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +1 -1
- package/dist/components/tabs/composables/useTabResponsive.d.ts +11 -11
- 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/tabs/types.d.ts +85 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/toast/Toast.vue.d.ts +2 -2
- package/dist/composables/color/index.d.ts +0 -15
- package/dist/composables/dark/darkModeSyncScript.d.ts +42 -0
- package/dist/composables/dom/useResolveTokenColor.d.ts +1 -1
- package/dist/composables/glass/index.d.ts +2 -0
- package/dist/composables/keyboard/useKeyboardShortcuts.d.ts +47 -1
- package/dist/composables/motion/pointer/pointerFieldMappings.d.ts +0 -41
- package/dist/{components/search/composables → composables/search}/index.d.ts +2 -2
- package/dist/{components/search/composables/fuzzySearchIndex.d.ts → composables/search/match.d.ts} +8 -3
- package/dist/composables/sidebar/types.d.ts +5 -1
- package/dist/configurator-DiwVN573.js +339 -0
- package/dist/configurator.js +1 -1
- package/dist/constellation.js +5 -5
- package/dist/{content-CWO-XL7o.js → content-So3j6SOe.js} +1 -1
- package/dist/control-DJp15L4U.js +7 -0
- package/dist/dark-mode-toggle.js +2 -2
- package/dist/{dark-z_P5QwqI.js → dark-pONY3x93.js} +2 -2
- package/dist/dark.js +1 -1
- package/dist/{data-table-_RrOEdiw.js → data-table-Ba_uTfPc.js} +3 -3
- package/dist/data-table.js +1 -1
- package/dist/{deck-Ci6YjB5e.js → deck-Cm_VmyNL.js} +1 -1
- package/dist/deck.js +1 -1
- package/dist/{dialog-CbRnTRtg.js → dialog-BZoFG0j8.js} +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +718 -496
- package/dist/dom.js +90 -8
- package/dist/easing.js +5 -5
- package/dist/expandable-container-CZUj9BzY.js +142 -0
- package/dist/expandable-container.js +2 -142
- package/dist/fourier-field.js +638 -855
- package/dist/fourier-math.js +6 -6
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +88 -75
- package/dist/handmark.js +330 -718
- package/dist/index.d.ts +2 -2
- package/dist/infinite-scroll.js +16 -17
- package/dist/{input-Bls2A4Tt.js → input-eLZ_AU7l.js} +1 -1
- package/dist/input.js +1 -1
- package/dist/keyboard.js +64 -21
- package/dist/{label-BQEZhnK_.js → label-CE03H1KL.js} +2 -2
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +9 -6
- package/dist/{menu-wLu1XGKn.js → menu-BnmCOa3y.js} +93 -90
- package/dist/menu.js +2 -2
- package/dist/metric.js +12 -7
- package/dist/{motion-D4uYE0UM.js → motion-BvV1_24p.js} +1 -1
- package/dist/motion-core.js +35 -35
- package/dist/{number-field-NFAwQ0HK.js → number-field-RP89046a.js} +2 -2
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +3 -3
- package/dist/{participation-B0hdsIRo.js → participation-Di4UHbzk.js} +8 -8
- package/dist/{pointerFieldMappings-DP5tla5z.js → pointerFieldMappings-DXwlU5uj.js} +7 -23
- package/dist/popover-DA87hFBx.js +184 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-DF8dWZIX.js → progress-eVa-mc7J.js} +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-Ci8o-pDx.js → radio-group-B58Bz16F.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{select-CDgwGH_P.js → select-fy3vtArm.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/{separator-CN11t406.js → separator-D4EZM10u.js} +2 -2
- package/dist/separator.js +1 -1
- package/dist/{sheet-BEFvnO_u.js → sheet-BQJyER59.js} +120 -115
- package/dist/sheet.js +2 -2
- package/dist/shortcuts-DGGWNRNe.js +13 -0
- package/dist/sidebar.js +4 -4
- package/dist/{slider-gsc8jDIo.js → slider-5ChjjWSR.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{status-dot-BpnqOP5N.js → status-dot-W4LFiJps.js} +2 -2
- package/dist/status-dot.js +1 -1
- 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/dissolve.css +1 -1
- package/dist/styles/glass/focus-veil.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/overlay-plate.css +1 -1
- package/dist/styles/glass/reveal.css +1 -1
- package/dist/styles/glass-specular-track.css +1 -1
- package/dist/styles/paper.css +1 -1
- package/dist/styles/scroll-choreography.css +1 -1
- package/dist/styles/scroll-chrome.css +1 -1
- package/dist/styles/scroll-driven.css +1 -1
- package/dist/styles/theme/literals.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm-glass.css +1 -1
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/scheme-motion.css +1 -1
- package/dist/styles/tokens/sizing.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/responsive.css +1 -1
- package/dist/styles/view-transition.css +1 -1
- package/dist/styles/viz-reveal.css +1 -1
- package/dist/surface.js +1 -1
- package/dist/{switch-DxZzDrmV.js → switch-BYUZ6g9G.js} +2 -2
- package/dist/switch.js +1 -1
- package/dist/{tabs-CYscnq5H.js → tabs-rdRXKXxd.js} +4 -3
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +44 -42
- package/dist/{toast-9c6Kp58L.js → toast-DVOwo6GB.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-11aPGMfE.js → toggle-group-CC5b3o1R.js} +2 -2
- package/dist/toggle-group.js +1 -1
- package/dist/{tooltip-DqKMZ4dn.js → tooltip-DhTHhtJN.js} +2 -2
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAccentTone-DFAh1osB.js → useAccentTone-DitmKfGL.js} +1 -1
- package/dist/{resolveCanvasColor-6MCrswTB.js → useCanvas2D-CQRElMyE.js} +1 -11
- package/dist/{usePointerVelocityField-DsIf7yyq.js → usePointerVelocityField-Lx26_Yap.js} +1 -1
- package/dist/useResolveTokenColor-B2FfJnd9.js +24 -0
- package/package.json +5 -21
- package/dist/DialogContent-4hzLiaCQ.js +0 -152
- package/dist/canvas.d.ts +0 -1
- package/dist/canvas.js +0 -2
- package/dist/color.wgsl-B0N3mKMb.js +0 -412
- package/dist/compile-D7VYG3gi.js +0 -19
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +0 -20
- package/dist/components/dock/composables/useDockTouchGate.d.ts +0 -42
- package/dist/components/dock/styles/overflow.css +0 -1
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +0 -24
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +0 -31
- package/dist/components/fourier-field/composables/uniformBridgeWGPU.d.ts +0 -39
- package/dist/components/fourier-field/composables/useFourierField.d.ts +0 -56
- package/dist/components/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +0 -1
- package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +0 -4
- package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +0 -1
- package/dist/components/fourier-field/shaders/fourier-field.ribbon.d.ts +0 -51
- package/dist/components/handmark/brush.d.ts +0 -269
- package/dist/components/handmark/composables/useHandMark.d.ts +0 -99
- package/dist/components/handmark/constants.d.ts +0 -69
- package/dist/components/handmark/freehand.d.ts +0 -69
- package/dist/components/handmark/geometry.d.ts +0 -62
- package/dist/components/handmark/ink.d.ts +0 -11
- package/dist/components/handmark/noise.d.ts +0 -30
- package/dist/components/handmark/texture.d.ts +0 -39
- package/dist/components/handmark/types.d.ts +0 -70
- package/dist/components/search/SearchBar.vue.d.ts +0 -38
- package/dist/components/search/index.d.ts +0 -8
- package/dist/components/search/searchVariants.d.ts +0 -16
- package/dist/configurator-BoeScnDL.js +0 -311
- package/dist/control-Da4XeT43.js +0 -11
- package/dist/popover-DBMKTPkL.js +0 -181
- package/dist/search.d.ts +0 -1
- package/dist/search.js +0 -61
- package/dist/useFuzzySearch-CUnZknpm.js +0 -177
- package/dist/useResolveTokenColor-CspQv_ik.js +0 -107
- /package/dist/{components/search/composables → composables/search}/types.d.ts +0 -0
- /package/dist/{components/search/composables → composables/search}/useFuzzySearch.d.ts +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./primitive-B2t2jdqM.js";
|
|
3
3
|
import { t as n } from "./selection-DqIULxRG.js";
|
|
4
|
-
import { t as r } from "./content-
|
|
5
|
-
import { t as i } from "./participation-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { t as r } from "./content-So3j6SOe.js";
|
|
5
|
+
import { t as i } from "./participation-Di4UHbzk.js";
|
|
6
|
+
import { t as a } from "./shortcuts-DGGWNRNe.js";
|
|
7
|
+
import { i as o, n as s, r as c } from "./DropdownMenuTrigger-CKRnhDSQ.js";
|
|
8
|
+
import { computed as l, createBlock as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, normalizeProps as _, openBlock as v, renderSlot as y, resolveDynamicComponent as b, unref as x, useAttrs as S, withCtx as C } from "vue";
|
|
9
|
+
import { ContextMenuRoot as w, DropdownMenuRoot as T, injectContextMenuRootContext as E, injectDropdownMenuRootContext as D, useForwardPropsEmits as O } from "reka-ui";
|
|
10
|
+
import { Check as k, ChevronRight as A } from "@lucide/vue";
|
|
10
11
|
//#endregion
|
|
11
12
|
//#region src/components/menu/DropdownMenu.vue
|
|
12
|
-
var
|
|
13
|
+
var j = /* @__PURE__ */ m({
|
|
13
14
|
name: "DropdownMenu",
|
|
14
15
|
inheritAttrs: !1,
|
|
15
16
|
__name: "DropdownMenu",
|
|
@@ -31,11 +32,11 @@ var O = /* @__PURE__ */ p({
|
|
|
31
32
|
},
|
|
32
33
|
emits: ["update:open"],
|
|
33
34
|
setup(e, { emit: t }) {
|
|
34
|
-
let n = e, r = t, i =
|
|
35
|
+
let n = e, r = t, i = l(() => {
|
|
35
36
|
if (n.trigger === "context" && (n.open !== void 0 || n.defaultOpen !== void 0)) throw TypeError("[glass-ui] Context menus open from an invocation anchor, not open/defaultOpen props.");
|
|
36
37
|
return n.trigger;
|
|
37
38
|
});
|
|
38
|
-
return
|
|
39
|
+
return s(i), (t, n) => i.value === "context" ? (v(), u(x(w), {
|
|
39
40
|
key: 0,
|
|
40
41
|
"data-slot": "menu",
|
|
41
42
|
"data-menu-trigger": "context",
|
|
@@ -43,9 +44,9 @@ var O = /* @__PURE__ */ p({
|
|
|
43
44
|
modal: e.modal,
|
|
44
45
|
"onUpdate:open": n[0] ||= (e) => r("update:open", e)
|
|
45
46
|
}, {
|
|
46
|
-
default:
|
|
47
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
47
48
|
_: 3
|
|
48
|
-
}, 8, ["dir", "modal"])) : (
|
|
49
|
+
}, 8, ["dir", "modal"])) : (v(), u(x(T), {
|
|
49
50
|
key: 1,
|
|
50
51
|
"data-slot": "menu",
|
|
51
52
|
"data-menu-trigger": "click",
|
|
@@ -55,7 +56,7 @@ var O = /* @__PURE__ */ p({
|
|
|
55
56
|
modal: e.modal,
|
|
56
57
|
"onUpdate:open": n[1] ||= (e) => r("update:open", e)
|
|
57
58
|
}, {
|
|
58
|
-
default:
|
|
59
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
59
60
|
_: 3
|
|
60
61
|
}, 8, [
|
|
61
62
|
"open",
|
|
@@ -64,7 +65,7 @@ var O = /* @__PURE__ */ p({
|
|
|
64
65
|
"modal"
|
|
65
66
|
]));
|
|
66
67
|
}
|
|
67
|
-
}),
|
|
68
|
+
}), M = /* @__PURE__ */ m({
|
|
68
69
|
name: "DropdownMenuContent",
|
|
69
70
|
inheritAttrs: !1,
|
|
70
71
|
__name: "DropdownMenuContent",
|
|
@@ -89,10 +90,10 @@ var O = /* @__PURE__ */ p({
|
|
|
89
90
|
"closeAutoFocus"
|
|
90
91
|
],
|
|
91
92
|
setup(e, { emit: t }) {
|
|
92
|
-
let n = e,
|
|
93
|
-
let { loop: e, ...t } =
|
|
93
|
+
let n = e, s = t, d = S(), f = l(() => {
|
|
94
|
+
let { loop: e, ...t } = d;
|
|
94
95
|
return t;
|
|
95
|
-
}),
|
|
96
|
+
}), p = o(), m = c("Content"), h = c("Portal"), _ = l(() => p.value === "context" ? {
|
|
96
97
|
alignOffset: n.alignOffset,
|
|
97
98
|
avoidCollisions: !0
|
|
98
99
|
} : {
|
|
@@ -101,31 +102,33 @@ var O = /* @__PURE__ */ p({
|
|
|
101
102
|
align: n.align,
|
|
102
103
|
alignOffset: n.alignOffset,
|
|
103
104
|
avoidCollisions: !0
|
|
104
|
-
}),
|
|
105
|
+
}), w = D(null), T = E(null), O = l(() => p.value === "context" ? T : w);
|
|
106
|
+
a(() => (O.value?.open.value ?? !1) && (O.value?.modal.value ?? !1));
|
|
107
|
+
let k = i(), A = l(() => r({
|
|
105
108
|
role: "menu",
|
|
106
109
|
slot: "menu-content",
|
|
107
|
-
dock:
|
|
110
|
+
dock: k.portalAttrs.value,
|
|
108
111
|
class: n.class
|
|
109
112
|
}));
|
|
110
|
-
return (e, t) => (
|
|
111
|
-
default:
|
|
112
|
-
...
|
|
113
|
-
...
|
|
114
|
-
...
|
|
113
|
+
return (e, t) => (v(), u(b(x(h)), null, {
|
|
114
|
+
default: C(() => [(v(), u(b(x(m)), g({
|
|
115
|
+
..._.value,
|
|
116
|
+
...f.value,
|
|
117
|
+
...A.value
|
|
115
118
|
}, {
|
|
116
|
-
onEscapeKeyDown: t[0] ||= (e) =>
|
|
117
|
-
onPointerDownOutside: t[1] ||= (e) =>
|
|
118
|
-
onFocusOutside: t[2] ||= (e) =>
|
|
119
|
-
onInteractOutside: t[3] ||= (e) =>
|
|
120
|
-
onCloseAutoFocus: t[4] ||= (e) =>
|
|
119
|
+
onEscapeKeyDown: t[0] ||= (e) => s("escapeKeyDown", e),
|
|
120
|
+
onPointerDownOutside: t[1] ||= (e) => s("pointerDownOutside", e),
|
|
121
|
+
onFocusOutside: t[2] ||= (e) => s("focusOutside", e),
|
|
122
|
+
onInteractOutside: t[3] ||= (e) => s("interactOutside", e),
|
|
123
|
+
onCloseAutoFocus: t[4] ||= (e) => s("closeAutoFocus", e)
|
|
121
124
|
}), {
|
|
122
|
-
default:
|
|
125
|
+
default: C(() => [y(e.$slots, "default")]),
|
|
123
126
|
_: 3
|
|
124
127
|
}, 16))]),
|
|
125
128
|
_: 3
|
|
126
129
|
}));
|
|
127
130
|
}
|
|
128
|
-
}),
|
|
131
|
+
}), N = /* @__PURE__ */ m({
|
|
129
132
|
name: "DropdownMenuGroup",
|
|
130
133
|
inheritAttrs: !1,
|
|
131
134
|
__name: "DropdownMenuGroup",
|
|
@@ -137,17 +140,17 @@ var O = /* @__PURE__ */ p({
|
|
|
137
140
|
Array
|
|
138
141
|
] } },
|
|
139
142
|
setup(n) {
|
|
140
|
-
let r = n, i =
|
|
141
|
-
return (t, n) => (
|
|
143
|
+
let r = n, i = S(), a = l(() => t(i)), o = c("Group");
|
|
144
|
+
return (t, n) => (v(), u(b(x(o)), g(a.value, {
|
|
142
145
|
as: "div",
|
|
143
146
|
"data-slot": "menu-group",
|
|
144
|
-
class:
|
|
147
|
+
class: x(e)(r.class)
|
|
145
148
|
}), {
|
|
146
|
-
default:
|
|
149
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
147
150
|
_: 3
|
|
148
151
|
}, 16, ["class"]));
|
|
149
152
|
}
|
|
150
|
-
}),
|
|
153
|
+
}), P = /* @__PURE__ */ m({
|
|
151
154
|
name: "DropdownMenuRadioGroup",
|
|
152
155
|
inheritAttrs: !1,
|
|
153
156
|
__name: "DropdownMenuRadioGroup",
|
|
@@ -163,23 +166,23 @@ var O = /* @__PURE__ */ p({
|
|
|
163
166
|
},
|
|
164
167
|
emits: ["update:modelValue"],
|
|
165
168
|
setup(r, { emit: i }) {
|
|
166
|
-
let a = r, o = i,
|
|
169
|
+
let a = r, o = i, s = S(), d = l(() => t(s)), f = c("RadioGroup");
|
|
167
170
|
function p(e) {
|
|
168
171
|
if (!n(e)) throw TypeError("[glass-ui] DropdownMenuRadioGroup received a non-scalar value.");
|
|
169
172
|
o("update:modelValue", e);
|
|
170
173
|
}
|
|
171
|
-
return (t, n) => (
|
|
174
|
+
return (t, n) => (v(), u(b(x(f)), g(d.value, {
|
|
172
175
|
as: "div",
|
|
173
176
|
"model-value": r.modelValue,
|
|
174
177
|
"data-slot": "menu-radio-group",
|
|
175
|
-
class:
|
|
178
|
+
class: x(e)(a.class),
|
|
176
179
|
"onUpdate:modelValue": p
|
|
177
180
|
}), {
|
|
178
|
-
default:
|
|
181
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
179
182
|
_: 3
|
|
180
183
|
}, 16, ["model-value", "class"]));
|
|
181
184
|
}
|
|
182
|
-
}),
|
|
185
|
+
}), F = /* @__PURE__ */ m({
|
|
183
186
|
name: "DropdownMenuItem",
|
|
184
187
|
inheritAttrs: !1,
|
|
185
188
|
__name: "DropdownMenuItem",
|
|
@@ -203,17 +206,17 @@ var O = /* @__PURE__ */ p({
|
|
|
203
206
|
},
|
|
204
207
|
emits: ["select"],
|
|
205
208
|
setup(n, { emit: r }) {
|
|
206
|
-
let i = n, a = r, o =
|
|
207
|
-
return (t, r) => (
|
|
209
|
+
let i = n, a = r, o = S(), s = l(() => t(o)), d = c("Item");
|
|
210
|
+
return (t, r) => (v(), u(b(x(d)), g(s.value, {
|
|
208
211
|
as: "div",
|
|
209
212
|
disabled: n.disabled,
|
|
210
213
|
"text-value": n.textValue,
|
|
211
214
|
"data-slot": "menu-item",
|
|
212
215
|
"data-inset": n.inset ? "" : void 0,
|
|
213
|
-
class:
|
|
216
|
+
class: x(e)("menu__item interactive-item glass-menu-row", i.class),
|
|
214
217
|
onSelect: r[0] ||= (e) => a("select", e)
|
|
215
218
|
}), {
|
|
216
|
-
default:
|
|
219
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
217
220
|
_: 3
|
|
218
221
|
}, 16, [
|
|
219
222
|
"disabled",
|
|
@@ -222,7 +225,7 @@ var O = /* @__PURE__ */ p({
|
|
|
222
225
|
"class"
|
|
223
226
|
]));
|
|
224
227
|
}
|
|
225
|
-
}),
|
|
228
|
+
}), I = { class: "menu__indicator" }, L = /* @__PURE__ */ m({
|
|
226
229
|
name: "DropdownMenuCheckboxItem",
|
|
227
230
|
inheritAttrs: !1,
|
|
228
231
|
__name: "DropdownMenuCheckboxItem",
|
|
@@ -246,22 +249,22 @@ var O = /* @__PURE__ */ p({
|
|
|
246
249
|
},
|
|
247
250
|
emits: ["select", "update:modelValue"],
|
|
248
251
|
setup(n, { emit: r }) {
|
|
249
|
-
let i = n, a = r, o =
|
|
250
|
-
return (t, r) => (
|
|
252
|
+
let i = n, a = r, o = S(), s = l(() => t(o)), d = c("CheckboxItem"), m = c("ItemIndicator");
|
|
253
|
+
return (t, r) => (v(), u(b(x(d)), g(s.value, {
|
|
251
254
|
as: "div",
|
|
252
255
|
"model-value": n.modelValue,
|
|
253
256
|
disabled: n.disabled,
|
|
254
257
|
"text-value": n.textValue,
|
|
255
258
|
"data-slot": "menu-checkbox-item",
|
|
256
259
|
"data-indicator": "wide",
|
|
257
|
-
class:
|
|
260
|
+
class: x(e)("menu__item interactive-item glass-menu-row", i.class),
|
|
258
261
|
onSelect: r[0] ||= (e) => a("select", e),
|
|
259
262
|
"onUpdate:modelValue": r[1] ||= (e) => a("update:modelValue", e)
|
|
260
263
|
}), {
|
|
261
|
-
default:
|
|
262
|
-
default:
|
|
264
|
+
default: C(() => [f("span", I, [(v(), u(b(x(m)), null, {
|
|
265
|
+
default: C(() => [p(x(k), { "aria-hidden": "true" })]),
|
|
263
266
|
_: 1
|
|
264
|
-
}))]),
|
|
267
|
+
}))]), y(t.$slots, "default")]),
|
|
265
268
|
_: 3
|
|
266
269
|
}, 16, [
|
|
267
270
|
"model-value",
|
|
@@ -270,7 +273,7 @@ var O = /* @__PURE__ */ p({
|
|
|
270
273
|
"class"
|
|
271
274
|
]));
|
|
272
275
|
}
|
|
273
|
-
}),
|
|
276
|
+
}), R = { class: "menu__indicator" }, z = /* @__PURE__ */ m({
|
|
274
277
|
name: "DropdownMenuRadioItem",
|
|
275
278
|
inheritAttrs: !1,
|
|
276
279
|
__name: "DropdownMenuRadioItem",
|
|
@@ -291,21 +294,21 @@ var O = /* @__PURE__ */ p({
|
|
|
291
294
|
},
|
|
292
295
|
emits: ["select"],
|
|
293
296
|
setup(n, { emit: r }) {
|
|
294
|
-
let i = n, a = r, o =
|
|
295
|
-
return (t, r) => (
|
|
297
|
+
let i = n, a = r, o = S(), s = l(() => t(o)), d = c("RadioItem"), p = c("ItemIndicator");
|
|
298
|
+
return (t, r) => (v(), u(b(x(d)), g(s.value, {
|
|
296
299
|
as: "div",
|
|
297
300
|
value: n.value,
|
|
298
301
|
disabled: n.disabled,
|
|
299
302
|
"text-value": n.textValue,
|
|
300
303
|
"data-slot": "menu-radio-item",
|
|
301
304
|
"data-indicator": "start",
|
|
302
|
-
class:
|
|
305
|
+
class: x(e)("menu__item interactive-item glass-menu-row", i.class),
|
|
303
306
|
onSelect: r[0] ||= (e) => a("select", e)
|
|
304
307
|
}), {
|
|
305
|
-
default:
|
|
306
|
-
default:
|
|
308
|
+
default: C(() => [f("span", R, [(v(), u(b(x(p)), null, {
|
|
309
|
+
default: C(() => [...r[1] ||= [f("span", { class: "menu__radio-dot" }, null, -1)]]),
|
|
307
310
|
_: 1
|
|
308
|
-
}))]),
|
|
311
|
+
}))]), y(t.$slots, "default")]),
|
|
309
312
|
_: 3
|
|
310
313
|
}, 16, [
|
|
311
314
|
"value",
|
|
@@ -314,7 +317,7 @@ var O = /* @__PURE__ */ p({
|
|
|
314
317
|
"class"
|
|
315
318
|
]));
|
|
316
319
|
}
|
|
317
|
-
}),
|
|
320
|
+
}), B = /* @__PURE__ */ m({
|
|
318
321
|
name: "DropdownMenuShortcut",
|
|
319
322
|
inheritAttrs: !1,
|
|
320
323
|
__name: "DropdownMenuShortcut",
|
|
@@ -326,13 +329,13 @@ var O = /* @__PURE__ */ p({
|
|
|
326
329
|
Array
|
|
327
330
|
] } },
|
|
328
331
|
setup(n) {
|
|
329
|
-
let r = n, i =
|
|
330
|
-
return (t, n) => (
|
|
332
|
+
let r = n, i = S(), a = l(() => t(i));
|
|
333
|
+
return (t, n) => (v(), d("span", g(a.value, {
|
|
331
334
|
"data-slot": "menu-shortcut",
|
|
332
|
-
class:
|
|
333
|
-
}), [
|
|
335
|
+
class: x(e)("menu__shortcut", r.class)
|
|
336
|
+
}), [y(t.$slots, "default")], 16));
|
|
334
337
|
}
|
|
335
|
-
}),
|
|
338
|
+
}), V = /* @__PURE__ */ m({
|
|
336
339
|
name: "DropdownMenuSeparator",
|
|
337
340
|
inheritAttrs: !1,
|
|
338
341
|
__name: "DropdownMenuSeparator",
|
|
@@ -344,14 +347,14 @@ var O = /* @__PURE__ */ p({
|
|
|
344
347
|
Array
|
|
345
348
|
] } },
|
|
346
349
|
setup(n) {
|
|
347
|
-
let r = n, i =
|
|
348
|
-
return (t, n) => (
|
|
350
|
+
let r = n, i = S(), a = l(() => t(i)), o = c("Separator");
|
|
351
|
+
return (t, n) => (v(), u(b(x(o)), g(a.value, {
|
|
349
352
|
as: "div",
|
|
350
353
|
"data-slot": "menu-separator",
|
|
351
|
-
class:
|
|
354
|
+
class: x(e)("glass-menu-divider -mx-1 my-1", r.class)
|
|
352
355
|
}), null, 16, ["class"]));
|
|
353
356
|
}
|
|
354
|
-
}),
|
|
357
|
+
}), H = /* @__PURE__ */ m({
|
|
355
358
|
name: "DropdownMenuLabel",
|
|
356
359
|
inheritAttrs: !1,
|
|
357
360
|
__name: "DropdownMenuLabel",
|
|
@@ -369,18 +372,18 @@ var O = /* @__PURE__ */ p({
|
|
|
369
372
|
] }
|
|
370
373
|
},
|
|
371
374
|
setup(n) {
|
|
372
|
-
let r = n, i =
|
|
373
|
-
return (t, i) => (
|
|
375
|
+
let r = n, i = S(), a = l(() => t(i)), o = c("Label");
|
|
376
|
+
return (t, i) => (v(), u(b(x(o)), g(a.value, {
|
|
374
377
|
as: "div",
|
|
375
378
|
"data-slot": "menu-label",
|
|
376
379
|
"data-inset": n.inset ? "" : void 0,
|
|
377
|
-
class:
|
|
380
|
+
class: x(e)("menu__label", r.class)
|
|
378
381
|
}), {
|
|
379
|
-
default:
|
|
382
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
380
383
|
_: 3
|
|
381
384
|
}, 16, ["data-inset", "class"]));
|
|
382
385
|
}
|
|
383
|
-
}),
|
|
386
|
+
}), U = /* @__PURE__ */ m({
|
|
384
387
|
name: "DropdownMenuSub",
|
|
385
388
|
inheritAttrs: !1,
|
|
386
389
|
__name: "DropdownMenuSub",
|
|
@@ -396,13 +399,13 @@ var O = /* @__PURE__ */ p({
|
|
|
396
399
|
},
|
|
397
400
|
emits: ["update:open"],
|
|
398
401
|
setup(e, { emit: t }) {
|
|
399
|
-
let n = e, r = t, i =
|
|
400
|
-
return (e, t) => (
|
|
401
|
-
default:
|
|
402
|
+
let n = e, r = t, i = c("Sub"), a = O(n, r);
|
|
403
|
+
return (e, t) => (v(), u(b(x(i)), _(h(x(a))), {
|
|
404
|
+
default: C(() => [y(e.$slots, "default")]),
|
|
402
405
|
_: 3
|
|
403
406
|
}, 16));
|
|
404
407
|
}
|
|
405
|
-
}),
|
|
408
|
+
}), W = /* @__PURE__ */ m({
|
|
406
409
|
name: "DropdownMenuSubTrigger",
|
|
407
410
|
inheritAttrs: !1,
|
|
408
411
|
__name: "DropdownMenuSubTrigger",
|
|
@@ -421,15 +424,15 @@ var O = /* @__PURE__ */ p({
|
|
|
421
424
|
] }
|
|
422
425
|
},
|
|
423
426
|
setup(n) {
|
|
424
|
-
let r = n, i =
|
|
425
|
-
return (t, i) => (
|
|
427
|
+
let r = n, i = S(), a = l(() => t(i)), o = c("SubTrigger");
|
|
428
|
+
return (t, i) => (v(), u(b(x(o)), g(a.value, {
|
|
426
429
|
as: "div",
|
|
427
430
|
disabled: n.disabled,
|
|
428
431
|
"text-value": n.textValue,
|
|
429
432
|
"data-slot": "menu-sub-trigger",
|
|
430
|
-
class:
|
|
433
|
+
class: x(e)("menu__sub-trigger interactive-item glass-menu-row", r.class)
|
|
431
434
|
}), {
|
|
432
|
-
default:
|
|
435
|
+
default: C(() => [y(t.$slots, "default"), p(x(A), {
|
|
433
436
|
class: "menu__sub-chevron",
|
|
434
437
|
"aria-hidden": "true"
|
|
435
438
|
})]),
|
|
@@ -440,7 +443,7 @@ var O = /* @__PURE__ */ p({
|
|
|
440
443
|
"class"
|
|
441
444
|
]));
|
|
442
445
|
}
|
|
443
|
-
}),
|
|
446
|
+
}), G = /* @__PURE__ */ m({
|
|
444
447
|
name: "DropdownMenuSubContent",
|
|
445
448
|
inheritAttrs: !1,
|
|
446
449
|
__name: "DropdownMenuSubContent",
|
|
@@ -465,18 +468,18 @@ var O = /* @__PURE__ */ p({
|
|
|
465
468
|
"closeAutoFocus"
|
|
466
469
|
],
|
|
467
470
|
setup(e, { emit: t }) {
|
|
468
|
-
let n = e, a = t, o =
|
|
471
|
+
let n = e, a = t, o = S(), s = l(() => {
|
|
469
472
|
let { side: e, align: t, loop: n, ...r } = o;
|
|
470
473
|
return r;
|
|
471
|
-
}), d =
|
|
474
|
+
}), d = c("SubContent"), f = c("Portal"), p = i(), m = l(() => r({
|
|
472
475
|
role: "menu",
|
|
473
476
|
slot: "menu-sub-content",
|
|
474
477
|
dock: p.portalAttrs.value,
|
|
475
478
|
class: n.class
|
|
476
479
|
}));
|
|
477
|
-
return (t, n) => (
|
|
478
|
-
default:
|
|
479
|
-
...
|
|
480
|
+
return (t, n) => (v(), u(b(x(f)), null, {
|
|
481
|
+
default: C(() => [(v(), u(b(x(d)), g({
|
|
482
|
+
...s.value,
|
|
480
483
|
...m.value
|
|
481
484
|
}, {
|
|
482
485
|
"side-offset": e.sideOffset,
|
|
@@ -490,7 +493,7 @@ var O = /* @__PURE__ */ p({
|
|
|
490
493
|
onCloseAutoFocus: n[5] ||= (e) => a("closeAutoFocus", e),
|
|
491
494
|
onEntryFocus: n[6] ||= (e) => a("entryFocus", e)
|
|
492
495
|
}), {
|
|
493
|
-
default:
|
|
496
|
+
default: C(() => [y(t.$slots, "default")]),
|
|
494
497
|
_: 3
|
|
495
498
|
}, 16, ["side-offset", "align-offset"]))]),
|
|
496
499
|
_: 3
|
|
@@ -498,4 +501,4 @@ var O = /* @__PURE__ */ p({
|
|
|
498
501
|
}
|
|
499
502
|
});
|
|
500
503
|
//#endregion
|
|
501
|
-
export {
|
|
504
|
+
export { V as a, L as c, N as d, M as f, H as i, F as l, W as n, B as o, j as p, U as r, z as s, G as t, P as u };
|
package/dist/menu.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./DropdownMenuTrigger-
|
|
2
|
-
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./menu-
|
|
1
|
+
import { t as e } from "./DropdownMenuTrigger-CKRnhDSQ.js";
|
|
2
|
+
import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./menu-BnmCOa3y.js";
|
|
3
3
|
export { l as DropdownMenu, n as DropdownMenuCheckboxItem, i as DropdownMenuContent, r as DropdownMenuGroup, o as DropdownMenuItem, a as DropdownMenuLabel, p as DropdownMenuRadioGroup, d as DropdownMenuRadioItem, t as DropdownMenuSeparator, c as DropdownMenuShortcut, u as DropdownMenuSub, f as DropdownMenuSubContent, s as DropdownMenuSubTrigger, e as DropdownMenuTrigger };
|
package/dist/metric.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, unref as f } from "vue";
|
|
3
3
|
//#region src/components/metric/coalesce-metric.ts
|
|
4
4
|
function p(e, t = "—", n = !1) {
|
|
@@ -6,19 +6,23 @@ function p(e, t = "—", n = !1) {
|
|
|
6
6
|
placeholder: t,
|
|
7
7
|
loading: n
|
|
8
8
|
} : t, i = r.placeholder ?? "—";
|
|
9
|
-
|
|
9
|
+
if (r.loading ?? n) return {
|
|
10
10
|
display: "…",
|
|
11
11
|
empty: !1,
|
|
12
12
|
loading: !0
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
|
+
if (e == null || typeof e == "string" && e.trim() === "" || typeof e == "number" && !Number.isFinite(e)) return {
|
|
14
15
|
display: i,
|
|
15
16
|
empty: !0,
|
|
16
17
|
loading: !1
|
|
17
|
-
}
|
|
18
|
+
};
|
|
19
|
+
let a = r.signed === !0 && typeof e == "number" && e > 0;
|
|
20
|
+
return {
|
|
18
21
|
display: r.compact && typeof e == "number" ? new Intl.NumberFormat(r.locale, {
|
|
19
22
|
notation: "compact",
|
|
20
|
-
maximumFractionDigits: 1
|
|
21
|
-
|
|
23
|
+
maximumFractionDigits: 1,
|
|
24
|
+
signDisplay: a ? "exceptZero" : "auto"
|
|
25
|
+
}).format(e) : a ? `+${String(e)}` : String(e),
|
|
22
26
|
empty: !1,
|
|
23
27
|
loading: !1
|
|
24
28
|
};
|
|
@@ -79,7 +83,8 @@ var h = [
|
|
|
79
83
|
})), w = n(() => S.delta == null || S.delta === "" ? void 0 : p(S.delta, {
|
|
80
84
|
placeholder: S.placeholder,
|
|
81
85
|
compact: S.compact,
|
|
82
|
-
locale: S.locale
|
|
86
|
+
locale: S.locale,
|
|
87
|
+
signed: !0
|
|
83
88
|
})), T = n(() => S.polarity ?? m(S.delta));
|
|
84
89
|
return (n, p) => (l(), i("span", {
|
|
85
90
|
class: c(f(e)("metric", n.$props.class)),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { createBlock as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, normalizeClass as a, normalizeStyle as o, openBlock as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
3
3
|
import { DialogOverlay as d } from "reka-ui";
|
|
4
4
|
//#region src/components/dialog/ModalOverlay.vue?vue&type=script&setup=true&lang.ts
|
package/dist/motion-core.js
CHANGED
|
@@ -4,17 +4,17 @@ import { n as r, r as i, t as a } from "./writeVelocityWeight-DoGOCW3e.js";
|
|
|
4
4
|
import { t as o } from "./useScrollTrigger-Abe5dEeO.js";
|
|
5
5
|
import { i as s, n as c, r as l, t as u } from "./useSelectionGroup-zsEwitF6.js";
|
|
6
6
|
import { n as d, r as f, t as p } from "./vReveal-B5WYGofz.js";
|
|
7
|
-
import { t as m } from "./usePointerVelocityField-
|
|
7
|
+
import { t as m } from "./usePointerVelocityField-Lx26_Yap.js";
|
|
8
8
|
import { t as h } from "./useRoutePointer-B8itM7Ka.js";
|
|
9
|
-
import { a as g, c as _,
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { i as
|
|
13
|
-
import { t as
|
|
14
|
-
import { onScopeDispose as
|
|
9
|
+
import { a as g, c as _, i as v, n as y, o as b, r as ee, s as x, t as S } from "./pointerFieldMappings-DXwlU5uj.js";
|
|
10
|
+
import { n as C, r as w, t as T } from "./constants-Dk96HZHu.js";
|
|
11
|
+
import { t as E } from "./useScrollProgress-Bq-KPaKM.js";
|
|
12
|
+
import { i as te, n as ne, r as D, t as O } from "./useScrollChrome-BJbWV32F.js";
|
|
13
|
+
import { t as k } from "./useIntersectionPause-CzKR3EyP.js";
|
|
14
|
+
import { onScopeDispose as A, ref as j, watch as M } from "vue";
|
|
15
15
|
//#region src/composables/motion/reveal/useStagger.ts
|
|
16
|
-
function
|
|
17
|
-
let n = Math.max(0, Math.floor(t.items)), r = t.delayMs ?? 80, i = t.initialDelayMs ?? 0, a = t.immediate !== !1, o = t.respectReducedMotion === !1 ?
|
|
16
|
+
function N(t) {
|
|
17
|
+
let n = Math.max(0, Math.floor(t.items)), r = t.delayMs ?? 80, i = t.initialDelayMs ?? 0, a = t.immediate !== !1, o = t.respectReducedMotion === !1 ? j(!1) : e(), s = j(Array(n).fill(!1)), c = j(n === 0), l = /* @__PURE__ */ new Set(), u = !1;
|
|
18
18
|
function d() {
|
|
19
19
|
for (let e of l) clearTimeout(e);
|
|
20
20
|
l.clear();
|
|
@@ -42,10 +42,10 @@ function P(t) {
|
|
|
42
42
|
l.add(a);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
let h =
|
|
45
|
+
let h = M(o, (e) => {
|
|
46
46
|
!e || !u || (d(), p());
|
|
47
47
|
}, { flush: "sync" });
|
|
48
|
-
return a && m(),
|
|
48
|
+
return a && m(), A(() => {
|
|
49
49
|
h(), d();
|
|
50
50
|
}), {
|
|
51
51
|
revealed: s,
|
|
@@ -56,7 +56,7 @@ function P(t) {
|
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/composables/motion/route/routeGrammar.ts
|
|
59
|
-
var
|
|
59
|
+
var P = [
|
|
60
60
|
{
|
|
61
61
|
nav: "route",
|
|
62
62
|
foreground: "present",
|
|
@@ -93,24 +93,24 @@ var F = [
|
|
|
93
93
|
worldWaitsForForeground: !0,
|
|
94
94
|
comment: "Back, out of the window — a violent ease-in with the opacity held then cut at the last tenth, and the world recovering only once the window is gone."
|
|
95
95
|
}
|
|
96
|
-
],
|
|
96
|
+
], F = {
|
|
97
97
|
inhaleScale: 1.57,
|
|
98
98
|
inhaleMs: 42,
|
|
99
99
|
parallax: 1 / 8,
|
|
100
100
|
opacityCutAt: .9
|
|
101
101
|
};
|
|
102
|
-
function
|
|
103
|
-
let t =
|
|
102
|
+
function I(e) {
|
|
103
|
+
let t = P.find((t) => t.nav === e);
|
|
104
104
|
if (!t) throw Error(`Unknown route nav class: ${e}`);
|
|
105
105
|
return t;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function L(e) {
|
|
108
108
|
return e.foreground ? `--spring-${e.foreground}` : e.ease;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return `--spring-${e.foreground ??
|
|
110
|
+
function R(e) {
|
|
111
|
+
return `--spring-${e.foreground ?? I("zoom").foreground}-${e.clock}`;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function z(e) {
|
|
114
114
|
return e.world ? `--spring-${e.world}-${e.clock}` : null;
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
@@ -129,7 +129,7 @@ function q(e) {
|
|
|
129
129
|
}
|
|
130
130
|
function J(e) {
|
|
131
131
|
let { nav: t, mutate: n, source: r, target: i, direction: a } = e, o = typeof document > "u" ? null : document.documentElement;
|
|
132
|
-
|
|
132
|
+
Y();
|
|
133
133
|
let s = [], c = !1;
|
|
134
134
|
if (t !== "route") {
|
|
135
135
|
let e = K(r, B);
|
|
@@ -144,7 +144,7 @@ function J(e) {
|
|
|
144
144
|
o?.style.removeProperty(W);
|
|
145
145
|
}) };
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Y() {
|
|
148
148
|
if (typeof document > "u") return;
|
|
149
149
|
let e = document.querySelectorAll(`[style*="${G}"]`);
|
|
150
150
|
for (let t of e) {
|
|
@@ -154,7 +154,7 @@ function oe() {
|
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
156
|
//#region src/composables/motion/dissolve/dissolveGrammar.ts
|
|
157
|
-
var
|
|
157
|
+
var X = [
|
|
158
158
|
{
|
|
159
159
|
dialect: "auto-expiry",
|
|
160
160
|
endedBy: "timer",
|
|
@@ -191,12 +191,12 @@ var Y = [
|
|
|
191
191
|
comment: "The backdrop filter releases in three channels on three clocks while the ink drops first — for a beat you see colour with no form. The owner's ask, and the only dialect that reaches every backdrop-bearing dismissal rather than one component's exit."
|
|
192
192
|
}
|
|
193
193
|
];
|
|
194
|
-
function
|
|
195
|
-
let t =
|
|
194
|
+
function re(e) {
|
|
195
|
+
let t = X.find((t) => t.dialect === e);
|
|
196
196
|
if (!t) throw Error(`Unknown dissolve dialect: ${e}`);
|
|
197
197
|
return t;
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var Z = {
|
|
200
200
|
channelRatio: {
|
|
201
201
|
saturate: 1,
|
|
202
202
|
dim: 1.36,
|
|
@@ -206,22 +206,22 @@ var X = {
|
|
|
206
206
|
inkOpacityFloor: .3,
|
|
207
207
|
inkBlurHeightRatio: .5
|
|
208
208
|
};
|
|
209
|
-
function
|
|
210
|
-
let { channelRatio: t } =
|
|
209
|
+
function Q(e) {
|
|
210
|
+
let { channelRatio: t } = Z;
|
|
211
211
|
return t[e] / t.blur;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
return
|
|
213
|
+
function ie() {
|
|
214
|
+
return Z.inkCollapseFraction / Z.channelRatio.blur;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
return e * (1 -
|
|
216
|
+
function ae(e) {
|
|
217
|
+
return e * (1 - Q("dim"));
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var $ = {
|
|
220
220
|
edgeRatio: .42,
|
|
221
221
|
inwardNudge: .065
|
|
222
222
|
};
|
|
223
|
-
function
|
|
224
|
-
return
|
|
223
|
+
function oe() {
|
|
224
|
+
return $.inwardNudge - .5;
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
|
-
export {
|
|
227
|
+
export { S as AURORA_CURSOR_RADIUS, y as BLOB_LEAD_K, ee as BLOB_STRETCH_GAIN, v as BLOB_STRETCH_MAX, $ as CORNER_AFFORDANCE, T as DAMPING, c as DEFAULT_INDICATOR_MAX_STRETCH, X as DISSOLVE_DIALECTS, C as FRAME_MS, l as INDICATOR_RELEASE_AT_ARRIVAL, a as MOTION_WEIGHT_REST, F as ROUTE_CONSTANTS, W as ROUTE_DIRECTION_PROP, P as ROUTE_GRAMMAR, U as ROUTE_LABEL_ATTR, V as ROUTE_LABEL_NAME, H as ROUTE_WINDOW_ATTR, B as ROUTE_WINDOW_NAME, w as SNAP_THRESHOLD, Z as VAPORIZE_CONSTANTS, g as auroraCursorMapping, ae as backdropOutlivesPanel, b as blobPullMapping, Q as channelFraction, x as constellationWellMapping, oe as cornerAffordanceOffset, re as dissolveDialect, r as effectiveCap, R as foregroundClockToken, L as foregroundCurveToken, ie as inkBlurFraction, t as readReducedMotion, I as routeNav, J as routeTransition, _ as snapshotField, d as startViewTransition, f as supportsViewTransitions, k as useIntersectionPause, n as useLiquidFlex, m as usePointerVelocityField, ne as useRAFLoop, e as useReducedMotion, h as useRoutePointer, O as useScrollChrome, E as useScrollProgress, o as useScrollTrigger, u as useSelectionGroup, s as useSelectionIndicator, N as useStagger, D as useYieldToMain, p as vReveal, z as worldClockToken, i as writeVelocityWeight, te as yieldToMain };
|