@mkbabb/glass-ui 2.1.0 → 3.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.
Files changed (79) hide show
  1. package/dist/{CommandShortcut-_INFUMu6.js → CommandShortcut-BNDzfFnB.js} +2 -2
  2. package/dist/{ContextMenuSubContent-DCkweFW9.js → ContextMenuSubContent-DLEyeqbh.js} +3 -3
  3. package/dist/{DialogContent-CmCijgX9.js → DialogContent-DSo7PKlU.js} +1 -1
  4. package/dist/{DialogFooter-DRdaCok0.js → DialogFooter-D5KY6sCX.js} +1 -1
  5. package/dist/{Notification-DrI1DT2v.js → Notification-D97JO0fK.js} +2 -2
  6. package/dist/{SelectScrollDownButton-yu8EYUnu.js → SelectScrollDownButton-BwTexKeY.js} +2 -2
  7. package/dist/{Toaster-DY8_jtHv.js → Toaster-CY8gJu9E.js} +69 -58
  8. package/dist/animated-digit.js +1 -1
  9. package/dist/aurora.js +100 -87
  10. package/dist/carousel.js +4 -4
  11. package/dist/{check-dwgetki8.js → check-Nuw7H9Yh.js} +1 -1
  12. package/dist/{chevron-down-DILQA1t6.js → chevron-down-Du2b9vY_.js} +1 -1
  13. package/dist/{chevron-right-fS7fal2t.js → chevron-right-CtDxpE3w.js} +1 -1
  14. package/dist/{chevron-up-BtYjYQOS.js → chevron-up-CenYokvI.js} +1 -1
  15. package/dist/command.js +1 -1
  16. package/dist/components/custom/aurora/composables/runtime.d.ts +24 -1
  17. package/dist/components/custom/toggle-chip/ToggleChip.vue.d.ts +6 -4
  18. package/dist/components/ui/toast/Toaster.vue.d.ts +7 -1
  19. package/dist/components/ui/toast/index.d.ts +1 -0
  20. package/dist/composables/dark/index.d.ts +1 -0
  21. package/dist/composables/dom/index.d.ts +1 -0
  22. package/dist/composables/dom/useIdleReady.d.ts +63 -0
  23. package/dist/composables/index.d.ts +1 -0
  24. package/dist/composables/motion/core/index.d.ts +6 -0
  25. package/dist/composables/motion/index.d.ts +0 -7
  26. package/dist/configurator.js +1 -1
  27. package/dist/confirm-dialog.js +1 -1
  28. package/dist/constants-D-8FN28s.js +13 -0
  29. package/dist/context-menu.js +1 -1
  30. package/dist/{createLucideIcon-Bn9a1b70.js → createLucideIcon-rHu18UQW.js} +2 -2
  31. package/dist/dark.d.ts +1 -1
  32. package/dist/dark.js +12 -1
  33. package/dist/dialog.js +2 -2
  34. package/dist/dock.js +1 -1
  35. package/dist/dom.js +2 -2
  36. package/dist/{dropdown-menu-2K-SGkZU.js → dropdown-menu-gHSkffW7.js} +2 -2
  37. package/dist/dropdown-menu.js +1 -1
  38. package/dist/expandable-container.js +2 -2
  39. package/dist/forms.js +2 -2
  40. package/dist/glass-ui.js +109 -109
  41. package/dist/icon-tooltip.js +1 -1
  42. package/dist/keyboard.js +1 -1
  43. package/dist/labeled-field.js +3 -3
  44. package/dist/{minimize-2-LsCJ_eNt.js → minimize-2-C_oyKVwZ.js} +1 -1
  45. package/dist/motion-core.d.ts +1 -0
  46. package/dist/motion-core.js +192 -0
  47. package/dist/motion.js +25 -227
  48. package/dist/notification.js +1 -1
  49. package/dist/responsive-tabs.js +1 -1
  50. package/dist/{search-ocd8tmL9.js → search-7XEx_6hq.js} +1 -1
  51. package/dist/search.js +4 -4
  52. package/dist/select.js +1 -1
  53. package/dist/{sheet-CLVkb3AO.js → sheet-BsBdO5jq.js} +1 -1
  54. package/dist/sheet.js +1 -1
  55. package/dist/styles/dock.css +72 -95
  56. package/dist/styles/drawer.css +2 -2
  57. package/dist/styles/instrument-chassis.css +28 -1
  58. package/dist/styles/theme.css +3 -0
  59. package/dist/styles/tokens.css +109 -266
  60. package/dist/styles/typography.css +44 -131
  61. package/dist/styles/utilities.css +23 -58
  62. package/dist/toast.js +1 -1
  63. package/dist/{useAnimatedNumber-DcvTR9B4.js → useAnimatedNumber-2l13GibX.js} +9 -20
  64. package/dist/{useConfiguratorState-BlaevW0S.js → useConfiguratorState-BpZi8QJu.js} +5 -5
  65. package/dist/{useBreakpoint-BHlX-MhR.js → useIdleReady-DlzJicQH.js} +29 -1
  66. package/dist/{x-cdWAmO-q.js → x-Cb3NE2Ne.js} +1 -1
  67. package/package.json +12 -5
  68. package/src/styles/dock.css +72 -95
  69. package/src/styles/drawer.css +2 -2
  70. package/src/styles/instrument-chassis.css +28 -1
  71. package/src/styles/theme.css +3 -0
  72. package/src/styles/tokens.css +109 -266
  73. package/src/styles/typography.css +44 -131
  74. package/src/styles/utilities.css +23 -58
  75. package/dist/composables/motion/useSpringOrchestrator.d.ts +0 -15
  76. /package/dist/{IconTooltip-ge_mBSWR.js → IconTooltip-GIeWdo64.js} +0 -0
  77. /package/dist/{Input-CbakTe3B.js → Input-CBvqW8kZ.js} +0 -0
  78. /package/dist/composables/{motion → dark}/installDarkModeSync.d.ts +0 -0
  79. /package/dist/{useKeyboardShortcuts-B1ev1YEC.js → useKeyboardShortcuts-CPO4AhLx.js} +0 -0
@@ -1,2 +1,2 @@
1
- import { t as e } from "./IconTooltip-ge_mBSWR.js";
1
+ import { t as e } from "./IconTooltip-GIeWdo64.js";
2
2
  export { e as IconTooltip };
package/dist/keyboard.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./useKeyboardShortcuts-B1ev1YEC.js";
1
+ import { a as e, i as t, n, r, t as i } from "./useKeyboardShortcuts-CPO4AhLx.js";
2
2
  export { i as formatCombo, n as formatComboParts, r as isMac, t as registerShortcut, e as useRegisteredShortcuts };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-yu8EYUnu.js";
2
+ import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-BwTexKeY.js";
3
3
  import { t as o } from "./SelectGroup-O69GTQ77.js";
4
4
  import { n as s } from "./slider-BQaLYFLh.js";
5
5
  import { t as c } from "./Switch-CL0uxu8F.js";
6
- import { t as l } from "./IconTooltip-ge_mBSWR.js";
7
- import { t as u } from "./Input-CbakTe3B.js";
6
+ import { t as l } from "./IconTooltip-GIeWdo64.js";
7
+ import { t as u } from "./Input-CBvqW8kZ.js";
8
8
  import { Fragment as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, normalizeClass as y, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
9
9
  //#region src/components/custom/labeled-field/LabeledField.vue?vue&type=script&setup=true&lang.ts
10
10
  var E = { class: "labeled-field" }, D = /* @__PURE__ */ v({
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-Bn9a1b70.js";
1
+ import { t as e } from "./createLucideIcon-rHu18UQW.js";
2
2
  var t = e("maximize-2", [
3
3
  ["path", {
4
4
  d: "M15 3h6v6",
@@ -0,0 +1 @@
1
+ export * from "./composables/motion/core";
@@ -0,0 +1,192 @@
1
+ import { t as e } from "./useIntersectionPause-CXYfYg_C.js";
2
+ import { n as t, t as n } from "./constants-D-8FN28s.js";
3
+ import { computed as r, getCurrentScope as i, onBeforeUnmount as a, onMounted as o, onScopeDispose as s, reactive as c, readonly as l, ref as u, unref as d, watch as f } from "vue";
4
+ //#region src/composables/motion/useStaggerReveal.ts
5
+ function p(e = {}) {
6
+ let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, o = u([]), s = c({}), l = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new Set(), f = typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
7
+ for (let r of e) {
8
+ let e = r.target, i = l.get(e);
9
+ if (i !== void 0) if (r.isIntersecting) {
10
+ let r = setTimeout(() => {
11
+ s[i] = !0, d.delete(r);
12
+ }, t * i);
13
+ d.add(r), n && f?.unobserve(e);
14
+ } else n || (s[i] = !1);
15
+ }
16
+ }, {
17
+ rootMargin: r,
18
+ threshold: i
19
+ });
20
+ function p(e, t) {
21
+ if (!e) return;
22
+ let n = t ?? o.value.length;
23
+ l.has(e) || (l.set(e, n), o.value.push(e), s[n] = !1, f?.observe(e));
24
+ }
25
+ return a(() => {
26
+ f?.disconnect();
27
+ for (let e of d) clearTimeout(e);
28
+ d.clear();
29
+ }), {
30
+ targets: o,
31
+ register: p,
32
+ revealed: s
33
+ };
34
+ }
35
+ //#endregion
36
+ //#region src/composables/motion/useScrollProgress.ts
37
+ function m(e) {
38
+ let { offset: t = 0, trackExit: n = !1 } = e, r = u(0), i = 0, s = null;
39
+ function c() {
40
+ let i = d(e.target);
41
+ if (!i) return;
42
+ let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
43
+ if (s === 0) {
44
+ r.value = 0;
45
+ return;
46
+ }
47
+ let c = (o - a.top) / s;
48
+ r.value = Math.max(0, Math.min(1, c));
49
+ }
50
+ function l() {
51
+ i ||= requestAnimationFrame(() => {
52
+ i = 0, c();
53
+ });
54
+ }
55
+ return o(() => {
56
+ c(), window.addEventListener("scroll", l, { passive: !0 }), window.addEventListener("resize", l, { passive: !0 });
57
+ let t = d(e.target);
58
+ t && typeof ResizeObserver < "u" && (s = new ResizeObserver(l), s.observe(t));
59
+ }), f(() => d(e.target), (e, t) => {
60
+ t && s && s.unobserve(t), e && s && s.observe(e), l();
61
+ }), a(() => {
62
+ window.removeEventListener("scroll", l), window.removeEventListener("resize", l), i && cancelAnimationFrame(i), s?.disconnect(), s = null;
63
+ }), r;
64
+ }
65
+ //#endregion
66
+ //#region src/composables/motion/useRAFLoop.ts
67
+ var h = "(prefers-reduced-motion: reduce)";
68
+ function g() {
69
+ return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
70
+ }
71
+ function _() {
72
+ return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
73
+ }
74
+ function v() {
75
+ return typeof document > "u" ? null : document;
76
+ }
77
+ function y() {
78
+ return typeof window > "u" ? null : window;
79
+ }
80
+ function b(e, t = {}) {
81
+ let { immediate: n = !0, pauseWhenHidden: a = !0, respectReducedMotion: o = !0 } = t, c = u(!1), d = u(!1), f = u(a ? !!v()?.hidden : !1), p = u(!1), m = u(!1), b = r(() => p.value && !c.value && (m.value || f.value || o && d.value || !g())), x = null, S = null, C = 0, w = 0, T = !1, E = null;
82
+ function D() {
83
+ return !T && p.value && !m.value && !f.value && !(o && d.value) && !!g();
84
+ }
85
+ function O() {
86
+ x !== null && (_()?.(x), x = null), c.value = !1, S = null;
87
+ }
88
+ function k() {
89
+ if (x !== null || !D()) return;
90
+ let t = g();
91
+ t && (c.value = !0, x = t((t) => {
92
+ if (x = null, !D()) {
93
+ O();
94
+ return;
95
+ }
96
+ let n = S === null ? 0 : Math.max(0, t - S);
97
+ S = t, C += n, e({
98
+ now: t,
99
+ delta: n,
100
+ elapsed: C,
101
+ frame: w++
102
+ }), D() ? k() : O();
103
+ }));
104
+ }
105
+ function A() {
106
+ D() ? k() : O();
107
+ }
108
+ function j() {
109
+ S = null, C = 0, w = 0;
110
+ }
111
+ function M() {
112
+ T || (j(), p.value = !0, m.value = !1, A());
113
+ }
114
+ function N() {
115
+ p.value = !1, m.value = !1, j(), O();
116
+ }
117
+ function P() {
118
+ p.value && (m.value = !0, A());
119
+ }
120
+ function F() {
121
+ T || (m.value = !1, A());
122
+ }
123
+ function I() {
124
+ f.value = a ? !!v()?.hidden : !1, A();
125
+ }
126
+ let L = v();
127
+ if (L && a && L.addEventListener("visibilitychange", I), o) {
128
+ let e = y(), t = typeof e?.matchMedia == "function" ? e.matchMedia(h) : null;
129
+ if (t) {
130
+ let e = (e) => {
131
+ d.value = e.matches, A();
132
+ };
133
+ d.value = t.matches, typeof t.addEventListener == "function" ? (t.addEventListener("change", e), E = () => t.removeEventListener("change", e)) : typeof t.addListener == "function" && (t.addListener(e), E = () => t.removeListener?.(e));
134
+ }
135
+ }
136
+ function R() {
137
+ T || (T = !0, N(), L?.removeEventListener("visibilitychange", I), E?.(), E = null);
138
+ }
139
+ return i() && s(R), n && M(), {
140
+ isActive: l(c),
141
+ isPaused: l(b),
142
+ isReducedMotion: l(d),
143
+ start: M,
144
+ stop: N,
145
+ pause: P,
146
+ resume: F,
147
+ dispose: R
148
+ };
149
+ }
150
+ //#endregion
151
+ //#region src/composables/motion/useStagger.ts
152
+ function x() {
153
+ return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
154
+ }
155
+ function S(e) {
156
+ let t = Math.max(0, Math.floor(e.items)), n = e.delayMs ?? 80, r = e.initialDelayMs ?? 0, i = e.immediate !== !1, a = e.respectReducedMotion !== !1, o = u(Array(t).fill(!1)), c = u(t === 0), l = /* @__PURE__ */ new Set();
157
+ function d() {
158
+ for (let e of l) clearTimeout(e);
159
+ l.clear();
160
+ }
161
+ function f() {
162
+ d(), o.value = Array(t).fill(!1), c.value = t === 0;
163
+ }
164
+ function p() {
165
+ o.value = Array(t).fill(!0), c.value = !0;
166
+ }
167
+ function m() {
168
+ if (f(), t === 0) {
169
+ c.value = !0;
170
+ return;
171
+ }
172
+ if (a && x()) {
173
+ p();
174
+ return;
175
+ }
176
+ for (let e = 0; e < t; e++) {
177
+ let i = e, a = setTimeout(() => {
178
+ let e = o.value.slice();
179
+ e[i] = !0, o.value = e, l.delete(a), i === t - 1 && (c.value = !0);
180
+ }, r + i * n);
181
+ l.add(a);
182
+ }
183
+ }
184
+ return i && m(), s(d), {
185
+ revealed: o,
186
+ start: m,
187
+ reset: f,
188
+ isComplete: c
189
+ };
190
+ }
191
+ //#endregion
192
+ export { n as DAMPING, t as SNAP_THRESHOLD, e as useIntersectionPause, b as useRAFLoop, m as useScrollProgress, S as useStagger, p as useStaggerReveal };
package/dist/motion.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { n as e, t } from "./useSpringMount-BTRBNzXP.js";
2
- import { t as n } from "./useGlobalDark-PMiP5Jku.js";
3
- import { t as r } from "./useIntersectionPause-CXYfYg_C.js";
4
- import { n as i, r as a, t as o } from "./useAnimatedNumber-DcvTR9B4.js";
5
- import { computed as s, getCurrentScope as c, nextTick as l, onBeforeUnmount as u, onMounted as d, onScopeDispose as f, reactive as p, readonly as m, ref as h, shallowRef as g, unref as _, watch as v } from "vue";
6
- import { NumericAnimation as y } from "@mkbabb/keyframes.js";
2
+ import { n, t as r } from "./constants-D-8FN28s.js";
3
+ import { t as i } from "./useAnimatedNumber-2l13GibX.js";
4
+ import { computed as a, onBeforeUnmount as o, ref as s, shallowRef as c } from "vue";
5
+ import { NumericAnimation as l } from "@mkbabb/keyframes.js";
7
6
  //#region src/composables/motion/useSpringPress.ts
8
- function b(t = {}) {
9
- let n = h(0), r = e(n, {
7
+ function u(t = {}) {
8
+ let n = s(0), r = e(n, {
10
9
  response: t.response ?? .25,
11
10
  dampingFraction: t.dampingFraction ?? .7,
12
11
  initial: t.initial ?? 0,
@@ -36,16 +35,16 @@ function b(t = {}) {
36
35
  }
37
36
  //#endregion
38
37
  //#region src/composables/motion/useNumericTransition.ts
39
- function x(e) {
40
- let t = h(0), n = h(!1), { from: r, to: i, duration: a, timingFunction: o, onFrame: s } = e, c = g(new y([r, i], {
38
+ function d(e) {
39
+ let t = s(0), n = s(!1), { from: r, to: i, duration: a, timingFunction: u, onFrame: d } = e, f = c(new l([r, i], {
41
40
  duration: a,
42
- timingFunction: o
41
+ timingFunction: u
43
42
  }));
44
- async function l() {
45
- n.value && c.value.stop(), n.value = !0, t.value = 0;
43
+ async function p() {
44
+ n.value && f.value.stop(), n.value = !0, t.value = 0;
46
45
  try {
47
- await c.value.play((e) => {
48
- s?.(e);
46
+ await f.value.play((e) => {
47
+ d?.(e);
49
48
  let n = Object.keys(r);
50
49
  if (n.length > 0) {
51
50
  let a = n[0], o = i[a] - r[a];
@@ -59,228 +58,27 @@ function x(e) {
59
58
  n.value = !1;
60
59
  }
61
60
  }
62
- function d() {
63
- c.value.stop(), n.value = !1;
61
+ function m() {
62
+ f.value.stop(), n.value = !1;
64
63
  }
65
- return u(() => {
66
- d();
64
+ return o(() => {
65
+ m();
67
66
  }), {
68
- start: l,
69
- stop: d,
67
+ start: p,
68
+ stop: m,
70
69
  progress: t,
71
70
  playing: n
72
71
  };
73
72
  }
74
73
  //#endregion
75
- //#region src/composables/motion/useSpringOrchestrator.ts
76
- var S = x;
77
- //#endregion
78
- //#region src/composables/motion/useStaggerReveal.ts
79
- function C(e = {}) {
80
- let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a = h([]), o = p({}), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new Set(), l = typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
81
- for (let r of e) {
82
- let e = r.target, i = s.get(e);
83
- if (i !== void 0) if (r.isIntersecting) {
84
- let r = setTimeout(() => {
85
- o[i] = !0, c.delete(r);
86
- }, t * i);
87
- c.add(r), n && l?.unobserve(e);
88
- } else n || (o[i] = !1);
89
- }
90
- }, {
91
- rootMargin: r,
92
- threshold: i
93
- });
94
- function d(e, t) {
95
- if (!e) return;
96
- let n = t ?? a.value.length;
97
- s.has(e) || (s.set(e, n), a.value.push(e), o[n] = !1, l?.observe(e));
98
- }
99
- return u(() => {
100
- l?.disconnect();
101
- for (let e of c) clearTimeout(e);
102
- c.clear();
103
- }), {
104
- targets: a,
105
- register: d,
106
- revealed: o
107
- };
108
- }
109
- //#endregion
110
- //#region src/composables/motion/useScrollProgress.ts
111
- function w(e) {
112
- let { offset: t = 0, trackExit: n = !1 } = e, r = h(0), i = 0, a = null;
113
- function o() {
114
- let i = _(e.target);
115
- if (!i) return;
116
- let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
117
- if (s === 0) {
118
- r.value = 0;
119
- return;
120
- }
121
- let c = (o - a.top) / s;
122
- r.value = Math.max(0, Math.min(1, c));
123
- }
124
- function s() {
125
- i ||= requestAnimationFrame(() => {
126
- i = 0, o();
127
- });
128
- }
129
- return d(() => {
130
- o(), window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s, { passive: !0 });
131
- let t = _(e.target);
132
- t && typeof ResizeObserver < "u" && (a = new ResizeObserver(s), a.observe(t));
133
- }), v(() => _(e.target), (e, t) => {
134
- t && a && a.unobserve(t), e && a && a.observe(e), s();
135
- }), u(() => {
136
- window.removeEventListener("scroll", s), window.removeEventListener("resize", s), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
137
- }), r;
138
- }
139
- //#endregion
140
74
  //#region src/composables/motion/useAnimatedNumberMap.ts
141
- function T(e) {
142
- let { keys: t, source: n, ...r } = e, i = {};
75
+ function f(e) {
76
+ let { keys: t, source: n, ...r } = e, o = {};
143
77
  for (let e of t) {
144
- let t = n(e), { current: a } = o(() => t.value, r);
145
- i[e] = s(() => t.value === null ? null : a.value);
146
- }
147
- return i;
148
- }
149
- //#endregion
150
- //#region src/composables/motion/installDarkModeSync.ts
151
- function E(e) {
152
- let { isDark: t } = n();
153
- v(t, () => {
154
- l(() => {
155
- requestAnimationFrame(e);
156
- });
157
- });
158
- }
159
- //#endregion
160
- //#region src/composables/motion/useRAFLoop.ts
161
- var D = "(prefers-reduced-motion: reduce)";
162
- function O() {
163
- return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
164
- }
165
- function k() {
166
- return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
167
- }
168
- function A() {
169
- return typeof document > "u" ? null : document;
170
- }
171
- function j() {
172
- return typeof window > "u" ? null : window;
173
- }
174
- function M(e, t = {}) {
175
- let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, a = h(!1), o = h(!1), l = h(r ? !!A()?.hidden : !1), u = h(!1), d = h(!1), p = s(() => u.value && !a.value && (d.value || l.value || i && o.value || !O())), g = null, _ = null, v = 0, y = 0, b = !1, x = null;
176
- function S() {
177
- return !b && u.value && !d.value && !l.value && !(i && o.value) && !!O();
178
- }
179
- function C() {
180
- g !== null && (k()?.(g), g = null), a.value = !1, _ = null;
78
+ let t = n(e), { current: s } = i(() => t.value, r);
79
+ o[e] = a(() => t.value === null ? null : s.value);
181
80
  }
182
- function w() {
183
- if (g !== null || !S()) return;
184
- let t = O();
185
- t && (a.value = !0, g = t((t) => {
186
- if (g = null, !S()) {
187
- C();
188
- return;
189
- }
190
- let n = _ === null ? 0 : Math.max(0, t - _);
191
- _ = t, v += n, e({
192
- now: t,
193
- delta: n,
194
- elapsed: v,
195
- frame: y++
196
- }), S() ? w() : C();
197
- }));
198
- }
199
- function T() {
200
- S() ? w() : C();
201
- }
202
- function E() {
203
- _ = null, v = 0, y = 0;
204
- }
205
- function M() {
206
- b || (E(), u.value = !0, d.value = !1, T());
207
- }
208
- function N() {
209
- u.value = !1, d.value = !1, E(), C();
210
- }
211
- function P() {
212
- u.value && (d.value = !0, T());
213
- }
214
- function F() {
215
- b || (d.value = !1, T());
216
- }
217
- function I() {
218
- l.value = r ? !!A()?.hidden : !1, T();
219
- }
220
- let L = A();
221
- if (L && r && L.addEventListener("visibilitychange", I), i) {
222
- let e = j(), t = typeof e?.matchMedia == "function" ? e.matchMedia(D) : null;
223
- if (t) {
224
- let e = (e) => {
225
- o.value = e.matches, T();
226
- };
227
- o.value = t.matches, typeof t.addEventListener == "function" ? (t.addEventListener("change", e), x = () => t.removeEventListener("change", e)) : typeof t.addListener == "function" && (t.addListener(e), x = () => t.removeListener?.(e));
228
- }
229
- }
230
- function R() {
231
- b || (b = !0, N(), L?.removeEventListener("visibilitychange", I), x?.(), x = null);
232
- }
233
- return c() && f(R), n && M(), {
234
- isActive: m(a),
235
- isPaused: m(p),
236
- isReducedMotion: m(o),
237
- start: M,
238
- stop: N,
239
- pause: P,
240
- resume: F,
241
- dispose: R
242
- };
243
- }
244
- //#endregion
245
- //#region src/composables/motion/useStagger.ts
246
- function N() {
247
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
248
- }
249
- function P(e) {
250
- let t = Math.max(0, Math.floor(e.items)), n = e.delayMs ?? 80, r = e.initialDelayMs ?? 0, i = e.immediate !== !1, a = e.respectReducedMotion !== !1, o = h(Array(t).fill(!1)), s = h(t === 0), c = /* @__PURE__ */ new Set();
251
- function l() {
252
- for (let e of c) clearTimeout(e);
253
- c.clear();
254
- }
255
- function u() {
256
- l(), o.value = Array(t).fill(!1), s.value = t === 0;
257
- }
258
- function d() {
259
- o.value = Array(t).fill(!0), s.value = !0;
260
- }
261
- function p() {
262
- if (u(), t === 0) {
263
- s.value = !0;
264
- return;
265
- }
266
- if (a && N()) {
267
- d();
268
- return;
269
- }
270
- for (let e = 0; e < t; e++) {
271
- let i = e, a = setTimeout(() => {
272
- let e = o.value.slice();
273
- e[i] = !0, o.value = e, c.delete(a), i === t - 1 && (s.value = !0);
274
- }, r + i * n);
275
- c.add(a);
276
- }
277
- }
278
- return i && p(), f(l), {
279
- revealed: o,
280
- start: p,
281
- reset: u,
282
- isComplete: s
283
- };
81
+ return o;
284
82
  }
285
83
  //#endregion
286
- export { i as DAMPING, a as SNAP_THRESHOLD, E as installDarkModeSync, o as useAnimatedNumber, T as useAnimatedNumberMap, r as useIntersectionPause, x as useNumericTransition, M as useRAFLoop, w as useScrollProgress, e as useSpring, t as useSpringMount, S as useSpringOrchestrator, b as useSpringPress, P as useStagger, C as useStaggerReveal };
84
+ export { r as DAMPING, n as SNAP_THRESHOLD, i as useAnimatedNumber, f as useAnimatedNumberMap, d as useNumericTransition, e as useSpring, t as useSpringMount, u as useSpringPress };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Notification-DrI1DT2v.js";
1
+ import { t as e } from "./Notification-D97JO0fK.js";
2
2
  export { e as Notification };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-yu8EYUnu.js";
2
+ import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-BwTexKeY.js";
3
3
  import { t as o } from "./UnderlineTabs-BtrUcXn-.js";
4
4
  import { Fragment as s, computed as c, createBlock as l, createElementBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
5
5
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-Bn9a1b70.js";
1
+ import { t as e } from "./createLucideIcon-rHu18UQW.js";
2
2
  var t = e("search", [["path", {
3
3
  d: "m21 21-4.34-4.34",
4
4
  key: "14j7rj"
package/dist/search.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { n as t, t as n } from "./minimize-2-LsCJ_eNt.js";
3
- import { t as r } from "./search-ocd8tmL9.js";
4
- import { t as i } from "./x-cdWAmO-q.js";
2
+ import { n as t, t as n } from "./minimize-2-C_oyKVwZ.js";
3
+ import { t as r } from "./search-7XEx_6hq.js";
4
+ import { t as i } from "./x-Cb3NE2Ne.js";
5
5
  import { n as a } from "./badge-BbxVKZfw.js";
6
6
  import { n as o } from "./button-BlOW34DT.js";
7
- import { n as s, t as c } from "./DialogContent-CmCijgX9.js";
7
+ import { n as s, t as c } from "./DialogContent-DSo7PKlU.js";
8
8
  import { n as l, r as u, t as d } from "./PopoverContent-BCH4eYs8.js";
9
9
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, onScopeDispose as C, openBlock as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, toDisplayString as k, unref as A, watch as j, withCtx as M } from "vue";
10
10
  //#region src/components/custom/search/composables/fuzzySearchIndex.ts
package/dist/select.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-yu8EYUnu.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-BwTexKeY.js";
2
2
  import { t as s } from "./SelectGroup-O69GTQ77.js";
3
3
  import { n as c, t as l } from "./SelectSeparator-GTHxKO0a.js";
4
4
  export { a as Select, t as SelectContent, s as SelectGroup, i as SelectItem, c as SelectLabel, o as SelectScrollDownButton, n as SelectScrollUpButton, l as SelectSeparator, e as SelectTrigger, r as SelectValue };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./x-cdWAmO-q.js";
2
+ import { t } from "./x-Cb3NE2Ne.js";
3
3
  import { t as n } from "./useSpringMount-BTRBNzXP.js";
4
4
  import { t as r } from "./ModalOverlay-DKLVY-cj.js";
5
5
  import { computed as i, createBlock as a, createElementBlock as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeClass as d, normalizeProps as f, openBlock as p, renderSlot as m, toHandlers as h, unref as g, withCtx as _ } from "vue";
package/dist/sheet.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./sheet-CLVkb3AO.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./sheet-BsBdO5jq.js";
2
2
  export { r as Sheet, s as SheetClose, a as SheetContent, o as SheetDescription, i as SheetFooter, e as SheetHeader, n as SheetTitle, t as SheetTrigger, c as sheetVariants };