@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,6 +1,6 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./search-ocd8tmL9.js";
3
- import { n, t as r } from "./DialogContent-CmCijgX9.js";
2
+ import { t } from "./search-7XEx_6hq.js";
3
+ import { n, t as r } from "./DialogContent-DSo7PKlU.js";
4
4
  import { t as i } from "./menuItemVariants-B2nDL7zH.js";
5
5
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
6
6
  import { ComboboxContent as S, ComboboxEmpty as C, ComboboxGroup as w, ComboboxInput as T, ComboboxItem as E, ComboboxLabel as D, ComboboxRoot as O, ComboboxSeparator as k, useForwardProps as A, useForwardPropsEmits as j } from "reka-ui";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./createLucideIcon-Bn9a1b70.js";
3
- import { t as n } from "./check-dwgetki8.js";
4
- import { t as r } from "./chevron-right-fS7fal2t.js";
2
+ import { t } from "./createLucideIcon-rHu18UQW.js";
3
+ import { t as n } from "./check-Nuw7H9Yh.js";
4
+ import { t as r } from "./chevron-right-CtDxpE3w.js";
5
5
  import { t as i } from "./menuItemVariants-B2nDL7zH.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 { ContextMenuCheckboxItem as y, ContextMenuItem as b, ContextMenuItemIndicator as x, ContextMenuLabel as S, ContextMenuRadioGroup as C, ContextMenuRadioItem as w, ContextMenuSeparator as T, ContextMenuSubContent as E, ContextMenuSubTrigger as D, useForwardProps as O, useForwardPropsEmits as k } from "reka-ui";
@@ -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, createElementVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderSlot as p, unref as m, withCtx as h } from "vue";
@@ -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 "./ModalOverlay-DKLVY-cj.js";
4
4
  import { computed as r, createBlock as i, createElementBlock as a, createElementVNode 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, unref as h, withCtx as g } from "vue";
5
5
  import { DialogClose as _, DialogContent as v, DialogDescription as y, DialogPortal as b, DialogTitle as x, DialogTrigger as S, useForwardProps as C, useForwardPropsEmits as w } from "reka-ui";
@@ -1,5 +1,5 @@
1
- import { t as e } from "./createLucideIcon-Bn9a1b70.js";
2
- import { t } from "./x-cdWAmO-q.js";
1
+ import { t as e } from "./createLucideIcon-rHu18UQW.js";
2
+ import { t } from "./x-Cb3NE2Ne.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-n-_DRHWS.js";
4
4
  import { Fragment as r, TransitionGroup as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
5
5
  var _ = e("circle-alert", [
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./chevron-down-DILQA1t6.js";
3
- import { t as n } from "./chevron-up-BtYjYQOS.js";
2
+ import { t } from "./chevron-down-Du2b9vY_.js";
3
+ import { t as n } from "./chevron-up-CenYokvI.js";
4
4
  import { t as r } from "./menuItemVariants-B2nDL7zH.js";
5
5
  import { i } from "./dockContext-BDGSrwsV.js";
6
6
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, mergeProps as p, normalizeClass as m, normalizeProps as h, openBlock as g, renderSlot as _, unref as v, withCtx as y } from "vue";
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./x-cdWAmO-q.js";
3
- import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, openBlock as f, ref as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
4
- import { ToastAction as y, ToastClose as b, ToastDescription as x, ToastProvider as S, ToastRoot as C, ToastTitle as w, ToastViewport as T } from "reka-ui";
2
+ import { t } from "./x-Cb3NE2Ne.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
4
+ import { ToastAction as b, ToastClose as x, ToastDescription as S, ToastProvider as C, ToastRoot as w, ToastTitle as T, ToastViewport as E } from "reka-ui";
5
5
  //#endregion
6
6
  //#region src/components/ui/toast/Toast.vue
7
- var E = /* @__PURE__ */ u({
7
+ var D = /* @__PURE__ */ u({
8
8
  __name: "Toast",
9
9
  props: {
10
10
  class: { type: [
@@ -39,9 +39,9 @@ var E = /* @__PURE__ */ u({
39
39
  let { class: e, variant: t, ...n } = a;
40
40
  return n;
41
41
  });
42
- return (n, r) => (f(), i(_(S), null, {
43
- default: v(() => [l(_(C), d(s.value, {
44
- class: _(e)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel border p-6 pr-8 shadow-modal transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
42
+ return (n, r) => (p(), i(v(C), null, {
43
+ default: y(() => [l(v(w), d(s.value, {
44
+ class: v(e)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-panel border p-6 pr-8 shadow-modal transition-[opacity,transform] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
45
45
  "bg-background text-foreground border": t.variant === "default",
46
46
  "bg-destructive text-destructive-foreground border-destructive": t.variant === "destructive"
47
47
  }, a.class),
@@ -52,13 +52,13 @@ var E = /* @__PURE__ */ u({
52
52
  onSwipeEnd: r[4] ||= (e) => o("swipeEnd", e),
53
53
  onSwipeCancel: r[5] ||= (e) => o("swipeCancel", e)
54
54
  }), {
55
- default: v(() => [h(n.$slots, "default")]),
55
+ default: y(() => [g(n.$slots, "default")]),
56
56
  _: 3
57
- }, 16, ["class"]), l(_(T))]),
57
+ }, 16, ["class"]), l(v(E))]),
58
58
  _: 3
59
59
  }));
60
60
  }
61
- }), D = /* @__PURE__ */ u({
61
+ }), O = /* @__PURE__ */ u({
62
62
  __name: "ToastAction",
63
63
  props: {
64
64
  class: { type: [
@@ -77,12 +77,12 @@ var E = /* @__PURE__ */ u({
77
77
  let { class: e, ...t } = n;
78
78
  return t;
79
79
  });
80
- return (t, r) => (f(), i(_(y), d(a.value, { class: _(e)("focus-ring inline-flex h-8 shrink-0 items-center justify-center rounded-button border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary disabled:pointer-events-none disabled:opacity-disabled group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground", n.class) }), {
81
- default: v(() => [h(t.$slots, "default")]),
80
+ return (t, r) => (p(), i(v(b), d(a.value, { class: v(e)("focus-ring inline-flex h-8 shrink-0 items-center justify-center rounded-button border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary disabled:pointer-events-none disabled:opacity-disabled group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground", n.class) }), {
81
+ default: y(() => [g(t.$slots, "default")]),
82
82
  _: 3
83
83
  }, 16, ["class"]));
84
84
  }
85
- }), O = /* @__PURE__ */ u({
85
+ }), k = /* @__PURE__ */ u({
86
86
  __name: "ToastClose",
87
87
  props: {
88
88
  class: { type: [
@@ -100,12 +100,12 @@ var E = /* @__PURE__ */ u({
100
100
  let { class: e, ...t } = a;
101
101
  return t;
102
102
  });
103
- return (n, r) => (f(), i(_(b), d(o.value, { class: _(e)("focus-ring absolute right-2 top-2 rounded-button p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50", a.class) }), {
104
- default: v(() => [l(_(t), { class: "h-4 w-4" })]),
103
+ return (n, r) => (p(), i(v(x), d(o.value, { class: v(e)("focus-ring absolute right-2 top-2 rounded-button p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50", a.class) }), {
104
+ default: y(() => [l(v(t), { class: "h-4 w-4" })]),
105
105
  _: 1
106
106
  }, 16, ["class"]));
107
107
  }
108
- }), k = /* @__PURE__ */ u({
108
+ }), A = /* @__PURE__ */ u({
109
109
  __name: "ToastDescription",
110
110
  props: {
111
111
  class: { type: [
@@ -123,12 +123,12 @@ var E = /* @__PURE__ */ u({
123
123
  let { class: e, ...t } = n;
124
124
  return t;
125
125
  });
126
- return (t, r) => (f(), i(_(x), d(a.value, { class: _(e)("text-sm opacity-90", n.class) }), {
127
- default: v(() => [h(t.$slots, "default")]),
126
+ return (t, r) => (p(), i(v(S), d(a.value, { class: v(e)("text-sm opacity-90", n.class) }), {
127
+ default: y(() => [g(t.$slots, "default")]),
128
128
  _: 3
129
129
  }, 16, ["class"]));
130
130
  }
131
- }), A = /* @__PURE__ */ u({
131
+ }), j = /* @__PURE__ */ u({
132
132
  __name: "ToastTitle",
133
133
  props: {
134
134
  class: { type: [
@@ -146,65 +146,65 @@ var E = /* @__PURE__ */ u({
146
146
  let { class: e, ...t } = n;
147
147
  return t;
148
148
  });
149
- return (t, r) => (f(), i(_(w), d(a.value, { class: _(e)("text-sm font-semibold", n.class) }), {
150
- default: v(() => [h(t.$slots, "default")]),
149
+ return (t, r) => (p(), i(v(T), d(a.value, { class: v(e)("text-sm font-semibold", n.class) }), {
150
+ default: y(() => [g(t.$slots, "default")]),
151
151
  _: 3
152
152
  }, 16, ["class"]));
153
153
  }
154
- }), j = 5, M = 1e6, N = /* @__PURE__ */ new Map();
155
- function P(e) {
156
- if (N.has(e)) return;
154
+ }), M = 5, N = 1e6, P = /* @__PURE__ */ new Map();
155
+ function F(e) {
156
+ if (P.has(e)) return;
157
157
  let t = setTimeout(() => {
158
- N.delete(e), I({
158
+ P.delete(e), L({
159
159
  type: "REMOVE_TOAST",
160
160
  toastId: e
161
161
  });
162
- }, M);
163
- N.set(e, t);
162
+ }, N);
163
+ P.set(e, t);
164
164
  }
165
- var F = p([]);
166
- function I(e) {
165
+ var I = m([]);
166
+ function L(e) {
167
167
  switch (e.type) {
168
168
  case "ADD_TOAST":
169
- F.value = [e.toast, ...F.value].slice(0, j);
169
+ I.value = [e.toast, ...I.value].slice(0, M);
170
170
  break;
171
171
  case "UPDATE_TOAST":
172
- F.value = F.value.map((t) => t.id === e.toast.id ? {
172
+ I.value = I.value.map((t) => t.id === e.toast.id ? {
173
173
  ...t,
174
174
  ...e.toast
175
175
  } : t);
176
176
  break;
177
177
  case "DISMISS_TOAST": {
178
178
  let { toastId: t } = e;
179
- t ? P(t) : F.value.forEach((e) => {
180
- P(e.id);
181
- }), F.value = F.value.map((e) => e.id === t || t === void 0 ? {
179
+ t ? F(t) : I.value.forEach((e) => {
180
+ F(e.id);
181
+ }), I.value = I.value.map((e) => e.id === t || t === void 0 ? {
182
182
  ...e,
183
183
  open: !1
184
184
  } : e);
185
185
  break;
186
186
  }
187
187
  case "REMOVE_TOAST":
188
- e.toastId === void 0 ? F.value = [] : F.value = F.value.filter((t) => t.id !== e.toastId);
188
+ e.toastId === void 0 ? I.value = [] : I.value = I.value.filter((t) => t.id !== e.toastId);
189
189
  break;
190
190
  }
191
191
  }
192
- var L = 0;
193
- function R() {
194
- return L = (L + 1) % Number.MAX_VALUE, L.toString();
192
+ var R = 0;
193
+ function z() {
194
+ return R = (R + 1) % Number.MAX_VALUE, R.toString();
195
195
  }
196
- function z(e) {
197
- let t = R(), n = (e) => I({
196
+ function B(e) {
197
+ let t = z(), n = (e) => L({
198
198
  type: "UPDATE_TOAST",
199
199
  toast: {
200
200
  ...e,
201
201
  id: t
202
202
  }
203
- }), r = () => I({
203
+ }), r = () => L({
204
204
  type: "DISMISS_TOAST",
205
205
  toastId: t
206
206
  });
207
- return I({
207
+ return L({
208
208
  type: "ADD_TOAST",
209
209
  toast: {
210
210
  ...e,
@@ -220,11 +220,11 @@ function z(e) {
220
220
  update: n
221
221
  };
222
222
  }
223
- function B() {
223
+ function V() {
224
224
  return {
225
- toasts: r(() => F.value),
226
- toast: z,
227
- dismiss: (e) => I({
225
+ toasts: r(() => I.value),
226
+ toast: B,
227
+ dismiss: (e) => L({
228
228
  type: "DISMISS_TOAST",
229
229
  toastId: e
230
230
  })
@@ -232,24 +232,35 @@ function B() {
232
232
  }
233
233
  //#endregion
234
234
  //#region src/components/ui/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
235
- var V = { class: "grid gap-1" }, H = /* @__PURE__ */ u({
235
+ var H = { class: "grid gap-1" }, U = "fixed top-0 z-toast flex max-h-screen w-full", W = "p-4", G = "md:max-w-[420px]", K = /* @__PURE__ */ u({
236
236
  __name: "Toaster",
237
- setup(e) {
238
- let { toasts: t } = B();
239
- return (e, r) => (f(), i(_(S), null, {
240
- default: v(() => [(f(!0), o(n, null, m(_(t), (e) => (f(), i(E, d({ key: e.id }, { ref_for: !0 }, e), {
241
- default: v(() => [s("div", V, [e.title ? (f(), i(A, { key: 0 }, {
242
- default: v(() => [c(g(e.title), 1)]),
237
+ props: { position: { default: "bottom-right" } },
238
+ setup(t) {
239
+ let u = t, { toasts: m } = V(), g = {
240
+ "bottom-right": ["flex-col-reverse", "sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col"],
241
+ "bottom-left": ["flex-col-reverse", "sm:bottom-0 sm:left-0 sm:top-auto sm:flex-col"],
242
+ "bottom-center": ["flex-col-reverse", "sm:bottom-0 sm:left-1/2 sm:top-auto sm:-translate-x-1/2 sm:flex-col"],
243
+ "top-right": ["right-0 flex-col", ""],
244
+ "top-left": ["left-0 flex-col", ""],
245
+ "top-center": ["left-1/2 -translate-x-1/2 flex-col", ""]
246
+ }, b = r(() => {
247
+ let [t, n] = g[u.position];
248
+ return e(U, t, W, n, G);
249
+ });
250
+ return (e, t) => (p(), i(v(C), null, {
251
+ default: y(() => [(p(!0), o(n, null, h(v(m), (e) => (p(), i(D, d({ key: e.id }, { ref_for: !0 }, e), {
252
+ default: y(() => [s("div", H, [e.title ? (p(), i(j, { key: 0 }, {
253
+ default: y(() => [c(_(e.title), 1)]),
243
254
  _: 2
244
- }, 1024)) : a("", !0), e.description ? (f(), i(k, { key: 1 }, {
245
- default: v(() => [c(g(e.description), 1)]),
255
+ }, 1024)) : a("", !0), e.description ? (p(), i(A, { key: 1 }, {
256
+ default: y(() => [c(_(e.description), 1)]),
246
257
  _: 2
247
- }, 1024)) : a("", !0)]), l(O)]),
258
+ }, 1024)) : a("", !0)]), l(k)]),
248
259
  _: 2
249
- }, 1040))), 128)), l(_(T), { class: "fixed top-0 z-toast flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]" })]),
260
+ }, 1040))), 128)), l(v(E), { class: f(b.value) }, null, 8, ["class"])]),
250
261
  _: 1
251
262
  }));
252
263
  }
253
264
  });
254
265
  //#endregion
255
- export { k as a, E as c, A as i, z as n, O as o, B as r, D as s, H as t };
266
+ export { A as a, D as c, j as i, B as n, k as o, V as r, O as s, K as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
2
  import { t } from "./_plugin-vue_export-helper-n-_DRHWS.js";
3
- import { t as n } from "./useAnimatedNumber-DcvTR9B4.js";
3
+ import { t as n } from "./useAnimatedNumber-2l13GibX.js";
4
4
  import { computed as r, createElementBlock as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, toDisplayString as l, unref as u } from "vue";
5
5
  //#region src/components/custom/animated-digit/AnimatedDigit.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = ["data-is-animating"], f = /* @__PURE__ */ t(/* @__PURE__ */ a({
package/dist/aurora.js CHANGED
@@ -144,14 +144,14 @@ var R = {
144
144
  knife: 1,
145
145
  crayon: 2,
146
146
  chunky: 3
147
- }, H = .22, U = .18, W = .992;
148
- function G(e) {
147
+ }, H = .22, U = .18, W = .992, G = .001;
148
+ function K(e) {
149
149
  return e.mode === "capture" ? !0 : e.initStrategy === "eager";
150
150
  }
151
- function K(e) {
151
+ function q(e) {
152
152
  return typeof e.preserveDrawingBuffer == "boolean" ? e.preserveDrawingBuffer : e.mode === "capture";
153
153
  }
154
- function q(e, t, n) {
154
+ function J(e, t, n) {
155
155
  let r = e.createShader(t);
156
156
  if (e.shaderSource(r, n), e.compileShader(r), !e.getShaderParameter(r, e.COMPILE_STATUS)) {
157
157
  let t = e.getShaderInfoLog(r) ?? "unknown";
@@ -159,7 +159,7 @@ function q(e, t, n) {
159
159
  }
160
160
  return r;
161
161
  }
162
- function J(e, t, n) {
162
+ function Y(e, t, n) {
163
163
  let r = e.createProgram();
164
164
  if (e.attachShader(r, t), e.attachShader(r, n), e.linkProgram(r), !e.getProgramParameter(r, e.LINK_STATUS)) {
165
165
  let t = e.getProgramInfoLog(r) ?? "unknown";
@@ -167,9 +167,25 @@ function J(e, t, n) {
167
167
  }
168
168
  return r;
169
169
  }
170
- var Y = /* @__PURE__ */ "uTime.uPalette.uStopCount.uNucleiCount.uNucleiPos.uNucleiRadius.uNucleiPaletteBias.uNucleiValueBias.uNucleiDriftRadius.uNucleiDriftPhase.uNucleiElong.uNucleiAngle.uSoftmaxBeta.uValueVariance.uWarpAmount.uWarpScale.uWarpDrift.uWarpMode.uNoiseOctaves.uMedium.uFlowPattern.uFlowFocal.uFlowAngle.uFlowCurl.uCursor.uCursorStrength.uCursorRadius.uStrokeAmount.uStrokeScale.uStrokeAnisotropy.uStrokeLayers.uStrokeMode.uWetEdge.uGranulation.uImpasto.uBrokenColor.uCanvasGrain.uNucleiDrift.uPaletteDrift.uBreathDepth.uBreathPeriod.uSaturation.uPaperGrain.uAlpha".split(".");
170
+ var ee = /* @__PURE__ */ "uTime.uPalette.uStopCount.uNucleiCount.uNucleiPos.uNucleiRadius.uNucleiPaletteBias.uNucleiValueBias.uNucleiDriftRadius.uNucleiDriftPhase.uNucleiElong.uNucleiAngle.uSoftmaxBeta.uValueVariance.uWarpAmount.uWarpScale.uWarpDrift.uWarpMode.uNoiseOctaves.uMedium.uFlowPattern.uFlowFocal.uFlowAngle.uFlowCurl.uCursor.uCursorStrength.uCursorRadius.uStrokeAmount.uStrokeScale.uStrokeAnisotropy.uStrokeLayers.uStrokeMode.uWetEdge.uGranulation.uImpasto.uBrokenColor.uCanvasGrain.uNucleiDrift.uPaletteDrift.uBreathDepth.uBreathPeriod.uSaturation.uPaperGrain.uAlpha".split(".");
171
171
  function X(e, t, n = {}) {
172
- let r = K(n), i = t, a = n.mode !== "capture", o = typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1, s = performance.now(), c = {
172
+ let r = q(n), i = t, a = /* @__PURE__ */ new Set();
173
+ n.mode === "capture" && a.add("manual");
174
+ let o = () => a.size === 0, s = typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1, c = performance.now(), l = 0, u = null;
175
+ function d(e) {
176
+ let t = o();
177
+ a.add(e), t && !o() && (cancelAnimationFrame(l), l = 0);
178
+ }
179
+ function f(e) {
180
+ let t = !o();
181
+ a.delete(e), t && o() && u && (c = performance.now() - 1e3, u());
182
+ }
183
+ let p = typeof document < "u";
184
+ function m() {
185
+ document.hidden ? d("tab-hidden") : f("tab-hidden");
186
+ }
187
+ p && document.addEventListener("visibilitychange", m);
188
+ let h = {
173
189
  x: .5,
174
190
  y: .5,
175
191
  targetX: .5,
@@ -177,21 +193,21 @@ function X(e, t, n = {}) {
177
193
  strength: 0,
178
194
  targetStrength: 0,
179
195
  radius: .25
180
- }, l = null, u = !1;
181
- function d(e, t, n = .8) {
182
- c.targetX = e, c.targetY = t, c.targetStrength = n;
196
+ }, g = null, _ = !1;
197
+ function b(e, t, n = .8) {
198
+ h.targetX = e, h.targetY = t, h.targetStrength = n, g?.wake();
183
199
  }
184
- function f() {
185
- c.targetStrength = 0;
200
+ function x() {
201
+ h.targetStrength = 0, g?.wake();
186
202
  }
187
- function p(e) {
188
- c.radius = e;
203
+ function S(e) {
204
+ h.radius = e, g?.wake();
189
205
  }
190
- function m(e) {
191
- o = e;
206
+ function C(e) {
207
+ s = e, g?.wake();
192
208
  }
193
- function h() {
194
- if (l || u) return;
209
+ function w() {
210
+ if (g || _) return;
195
211
  let t = e.getContext("webgl2", {
196
212
  antialias: !1,
197
213
  alpha: !0,
@@ -199,12 +215,12 @@ function X(e, t, n = {}) {
199
215
  preserveDrawingBuffer: r
200
216
  });
201
217
  if (!t) throw Error("[Aurora] WebGL2 unavailable");
202
- let n = q(t, t.VERTEX_SHADER, v), d = q(t, t.FRAGMENT_SHADER, y), f = J(t, n, d);
203
- t.useProgram(f);
204
- let p = t.createVertexArray();
205
- t.bindVertexArray(p);
206
- let m = t.createBuffer();
207
- t.bindBuffer(t.ARRAY_BUFFER, m), t.bufferData(t.ARRAY_BUFFER, new Float32Array([
218
+ let n = J(t, t.VERTEX_SHADER, v), a = J(t, t.FRAGMENT_SHADER, y), d = Y(t, n, a);
219
+ t.useProgram(d);
220
+ let f = t.createVertexArray();
221
+ t.bindVertexArray(f);
222
+ let p = t.createBuffer();
223
+ t.bindBuffer(t.ARRAY_BUFFER, p), t.bufferData(t.ARRAY_BUFFER, new Float32Array([
208
224
  -1,
209
225
  -1,
210
226
  3,
@@ -212,19 +228,19 @@ function X(e, t, n = {}) {
212
228
  -1,
213
229
  3
214
230
  ]), t.STATIC_DRAW);
215
- let h = t.getAttribLocation(f, "aPos");
216
- t.enableVertexAttribArray(h), t.vertexAttribPointer(h, 2, t.FLOAT, !1, 0, 0);
217
- let g = {};
218
- for (let e of Y) g[e] = t.getUniformLocation(f, e);
219
- function _() {
231
+ let m = t.getAttribLocation(d, "aPos");
232
+ t.enableVertexAttribArray(m), t.vertexAttribPointer(m, 2, t.FLOAT, !1, 0, 0);
233
+ let b = {};
234
+ for (let e of ee) b[e] = t.getUniformLocation(d, e);
235
+ function x() {
220
236
  let n = Math.min(window.devicePixelRatio || 1, 2), r = e.clientWidth || e.parentElement?.clientWidth || 1, i = e.clientHeight || e.parentElement?.clientHeight || 1, a = Math.max(1, Math.floor(r * n)), o = Math.max(1, Math.floor(i * n));
221
- e.width = a, e.height = o, t.viewport(0, 0, a, o), t.useProgram(f);
237
+ e.width = a, e.height = o, t.viewport(0, 0, a, o), t.useProgram(d);
222
238
  }
223
- let b = new ResizeObserver(() => _());
224
- b.observe(e), requestAnimationFrame(() => {
225
- _(), requestAnimationFrame(_);
239
+ let S = new ResizeObserver(() => x());
240
+ S.observe(e), requestAnimationFrame(() => {
241
+ x(), requestAnimationFrame(x);
226
242
  });
227
- let x = {
243
+ let C = {
228
244
  palette: new Float32Array(24),
229
245
  pos: new Float32Array(12),
230
246
  rad: new Float32Array(6),
@@ -235,71 +251,68 @@ function X(e, t, n = {}) {
235
251
  elong: new Float32Array(6),
236
252
  angle: new Float32Array(6)
237
253
  };
238
- function S(e) {
239
- i = e, t.useProgram(f), j(e.palette, 8, x.palette), t.uniform3fv(g.uPalette, x.palette), t.uniform1i(g.uStopCount, Math.min(e.palette.length, 8));
254
+ function w(e) {
255
+ i = e, t.useProgram(d), j(e.palette, 8, C.palette), t.uniform3fv(b.uPalette, C.palette), t.uniform1i(b.uStopCount, Math.min(e.palette.length, 8));
240
256
  let n = Math.min(e.nuclei.length, 6);
241
- t.uniform1i(g.uNucleiCount, n);
257
+ t.uniform1i(b.uNucleiCount, n);
242
258
  for (let t = 0; t < n; t++) {
243
259
  let n = e.nuclei[t];
244
- x.pos[t * 2 + 0] = n.x, x.pos[t * 2 + 1] = 1 - n.y, x.rad[t] = n.radius, x.pb[t] = n.paletteBias, x.vb[t] = n.valueBias, x.dr[t] = n.driftRadius, x.dp[t] = n.driftPhase, x.elong[t] = n.elongation ?? 1, x.angle[t] = -(n.angle ?? 0) * Math.PI / 180;
260
+ C.pos[t * 2 + 0] = n.x, C.pos[t * 2 + 1] = 1 - n.y, C.rad[t] = n.radius, C.pb[t] = n.paletteBias, C.vb[t] = n.valueBias, C.dr[t] = n.driftRadius, C.dp[t] = n.driftPhase, C.elong[t] = n.elongation ?? 1, C.angle[t] = -(n.angle ?? 0) * Math.PI / 180;
245
261
  }
246
- for (let e = n; e < 6; e++) x.pos[e * 2 + 0] = 0, x.pos[e * 2 + 1] = 0, x.rad[e] = 0, x.pb[e] = 0, x.vb[e] = 0, x.dr[e] = 0, x.dp[e] = 0, x.elong[e] = 1, x.angle[e] = 0;
247
- t.uniform2fv(g.uNucleiPos, x.pos), t.uniform1fv(g.uNucleiRadius, x.rad), t.uniform1fv(g.uNucleiPaletteBias, x.pb), t.uniform1fv(g.uNucleiValueBias, x.vb), t.uniform1fv(g.uNucleiDriftRadius, x.dr), t.uniform1fv(g.uNucleiDriftPhase, x.dp), t.uniform1fv(g.uNucleiElong, x.elong), t.uniform1fv(g.uNucleiAngle, x.angle), t.uniform1f(g.uSoftmaxBeta, e.softmaxBeta), t.uniform1f(g.uValueVariance, e.valueVariance), t.uniform1f(g.uWarpAmount, e.warpAmount), t.uniform1f(g.uWarpScale, e.warpScale), t.uniform1f(g.uWarpDrift, e.warpDrift), t.uniform1i(g.uWarpMode, B[e.warpMode]), t.uniform1i(g.uNoiseOctaves, e.noiseOctaves), t.uniform1i(g.uMedium, R[e.medium]), t.uniform1i(g.uFlowPattern, z[e.flow.pattern]), t.uniform2f(g.uFlowFocal, e.flow.focalX, 1 - e.flow.focalY), t.uniform1f(g.uFlowAngle, e.flow.angle), t.uniform1f(g.uFlowCurl, e.flow.curl), t.uniform2f(g.uCursor, c.x, 1 - c.y), t.uniform1f(g.uCursorStrength, c.strength), t.uniform1f(g.uCursorRadius, c.radius), t.uniform1f(g.uStrokeAmount, e.strokeAmount), t.uniform1f(g.uStrokeScale, e.strokeScale), t.uniform1f(g.uStrokeAnisotropy, e.strokeAnisotropy), t.uniform1i(g.uStrokeLayers, e.strokeLayers), t.uniform1i(g.uStrokeMode, V[e.strokeMode]), t.uniform1f(g.uWetEdge, e.wetEdge), t.uniform1f(g.uGranulation, e.granulation), t.uniform1f(g.uImpasto, e.impasto), t.uniform1f(g.uBrokenColor, e.brokenColor), t.uniform1f(g.uCanvasGrain, e.canvasGrain), t.uniform1f(g.uNucleiDrift, e.nucleiDrift), t.uniform1f(g.uPaletteDrift, e.paletteDrift), t.uniform1f(g.uBreathDepth, e.breathDepth), t.uniform1f(g.uBreathPeriod, e.breathPeriod), t.uniform1f(g.uSaturation, e.saturation), t.uniform1f(g.uPaperGrain, e.paperGrain), t.uniform1f(g.uAlpha, e.alpha);
248
- }
249
- S(i), _(), t.clearColor(0, 0, 0, 0), t.disable(t.DEPTH_TEST), t.enable(t.BLEND), t.blendFunc(t.ONE, t.ONE_MINUS_SRC_ALPHA);
250
- let C = 0;
251
- function w() {
252
- c.x += (c.targetX - c.x) * H, c.y += (c.targetY - c.y) * H, c.strength += (c.targetStrength - c.strength) * U, c.targetStrength *= W;
262
+ for (let e = n; e < 6; e++) C.pos[e * 2 + 0] = 0, C.pos[e * 2 + 1] = 0, C.rad[e] = 0, C.pb[e] = 0, C.vb[e] = 0, C.dr[e] = 0, C.dp[e] = 0, C.elong[e] = 1, C.angle[e] = 0;
263
+ t.uniform2fv(b.uNucleiPos, C.pos), t.uniform1fv(b.uNucleiRadius, C.rad), t.uniform1fv(b.uNucleiPaletteBias, C.pb), t.uniform1fv(b.uNucleiValueBias, C.vb), t.uniform1fv(b.uNucleiDriftRadius, C.dr), t.uniform1fv(b.uNucleiDriftPhase, C.dp), t.uniform1fv(b.uNucleiElong, C.elong), t.uniform1fv(b.uNucleiAngle, C.angle), t.uniform1f(b.uSoftmaxBeta, e.softmaxBeta), t.uniform1f(b.uValueVariance, e.valueVariance), t.uniform1f(b.uWarpAmount, e.warpAmount), t.uniform1f(b.uWarpScale, e.warpScale), t.uniform1f(b.uWarpDrift, e.warpDrift), t.uniform1i(b.uWarpMode, B[e.warpMode]), t.uniform1i(b.uNoiseOctaves, e.noiseOctaves), t.uniform1i(b.uMedium, R[e.medium]), t.uniform1i(b.uFlowPattern, z[e.flow.pattern]), t.uniform2f(b.uFlowFocal, e.flow.focalX, 1 - e.flow.focalY), t.uniform1f(b.uFlowAngle, e.flow.angle), t.uniform1f(b.uFlowCurl, e.flow.curl), t.uniform2f(b.uCursor, h.x, 1 - h.y), t.uniform1f(b.uCursorStrength, h.strength), t.uniform1f(b.uCursorRadius, h.radius), t.uniform1f(b.uStrokeAmount, e.strokeAmount), t.uniform1f(b.uStrokeScale, e.strokeScale), t.uniform1f(b.uStrokeAnisotropy, e.strokeAnisotropy), t.uniform1i(b.uStrokeLayers, e.strokeLayers), t.uniform1i(b.uStrokeMode, V[e.strokeMode]), t.uniform1f(b.uWetEdge, e.wetEdge), t.uniform1f(b.uGranulation, e.granulation), t.uniform1f(b.uImpasto, e.impasto), t.uniform1f(b.uBrokenColor, e.brokenColor), t.uniform1f(b.uCanvasGrain, e.canvasGrain), t.uniform1f(b.uNucleiDrift, e.nucleiDrift), t.uniform1f(b.uPaletteDrift, e.paletteDrift), t.uniform1f(b.uBreathDepth, e.breathDepth), t.uniform1f(b.uBreathPeriod, e.breathPeriod), t.uniform1f(b.uSaturation, e.saturation), t.uniform1f(b.uPaperGrain, e.paperGrain), t.uniform1f(b.uAlpha, e.alpha);
253
264
  }
254
- function T(e) {
255
- t.useProgram(f), t.uniform2f(g.uCursor, c.x, 1 - c.y), t.uniform1f(g.uCursorStrength, c.strength), t.uniform1f(g.uCursorRadius, c.radius), t.uniform1f(g.uTime, e), t.clear(t.COLOR_BUFFER_BIT), t.drawArrays(t.TRIANGLES, 0, 3);
265
+ w(i), x(), t.clearColor(0, 0, 0, 0), t.disable(t.DEPTH_TEST), t.enable(t.BLEND), t.blendFunc(t.ONE, t.ONE_MINUS_SRC_ALPHA);
266
+ function T() {
267
+ h.x += (h.targetX - h.x) * H, h.y += (h.targetY - h.y) * H, h.strength += (h.targetStrength - h.strength) * U, h.targetStrength *= W;
256
268
  }
257
- function E() {
258
- if (!a) return;
259
- let e = o ? 3.7 : (performance.now() - s) / 1e3;
260
- w(), T(e), C = requestAnimationFrame(E);
269
+ function E(e) {
270
+ t.useProgram(d), t.uniform2f(b.uCursor, h.x, 1 - h.y), t.uniform1f(b.uCursorStrength, h.strength), t.uniform1f(b.uCursorRadius, h.radius), t.uniform1f(b.uTime, e), t.clear(t.COLOR_BUFFER_BIT), t.drawArrays(t.TRIANGLES, 0, 3);
261
271
  }
262
- a && (C = requestAnimationFrame(E));
263
- function D(e) {
264
- T(e);
272
+ function D() {
273
+ return s ? !1 : i.nucleiDrift !== 0 || i.paletteDrift !== 0 || i.breathDepth !== 0 || i.warpDrift !== 0 ? !0 : h.targetStrength > G || h.strength > G || Math.abs(h.x - h.targetX) > G || Math.abs(h.y - h.targetY) > G;
265
274
  }
266
275
  function O() {
267
- a = !1, cancelAnimationFrame(C);
276
+ if (!o()) return;
277
+ let e = s ? 3.7 : (performance.now() - c) / 1e3;
278
+ T(), E(e), l = D() ? requestAnimationFrame(O) : 0;
268
279
  }
280
+ u = O, o() && (l = requestAnimationFrame(O));
269
281
  function k() {
270
- a || (a = !0, s = performance.now() - 1e3, E());
282
+ o() && !l && (l = requestAnimationFrame(O));
271
283
  }
272
- function A() {
273
- a = !1, cancelAnimationFrame(C), b.disconnect(), t.deleteProgram(f), t.deleteShader(n), t.deleteShader(d), t.deleteBuffer(m), t.deleteVertexArray(p);
284
+ function A(e) {
285
+ E(e);
286
+ }
287
+ function M() {
288
+ cancelAnimationFrame(l), l = 0, u = null, S.disconnect(), t.deleteProgram(d), t.deleteShader(n), t.deleteShader(a), t.deleteBuffer(p), t.deleteVertexArray(f);
274
289
  let e = t.getExtension("WEBGL_lose_context");
275
290
  e && e.loseContext();
276
291
  }
277
- l = {
278
- setConfig: S,
279
- renderAt: D,
280
- pause: O,
281
- resume: k,
282
- dispose: A
292
+ g = {
293
+ setConfig: w,
294
+ renderAt: A,
295
+ wake: k,
296
+ dispose: M
283
297
  };
284
298
  }
285
- return G(n) && h(), {
286
- arm: h,
299
+ function T() {
300
+ p && document.removeEventListener("visibilitychange", m), a.clear();
301
+ }
302
+ return K(n) && w(), {
303
+ arm: w,
287
304
  update: (e) => {
288
- i = e, l?.setConfig(e);
305
+ i = e, g?.setConfig(e), g?.wake();
289
306
  },
290
- setCursor: d,
291
- clearCursor: f,
292
- setCursorRadius: p,
293
- setReducedMotion: m,
294
- pause: () => {
295
- a = !1, l?.pause();
296
- },
297
- resume: () => {
298
- a = !0, l?.resume();
299
- },
300
- renderAt: (e) => l?.renderAt(e),
307
+ setCursor: b,
308
+ clearCursor: x,
309
+ setCursorRadius: S,
310
+ setReducedMotion: C,
311
+ pause: (e = "manual") => d(e),
312
+ resume: (e = "manual") => f(e),
313
+ renderAt: (e) => g?.renderAt(e),
301
314
  dispose: () => {
302
- l ? l.dispose() : u = !0;
315
+ g ? g.dispose() : _ = !0, T();
303
316
  }
304
317
  };
305
318
  }
@@ -310,7 +323,7 @@ function Z(e) {
310
323
  }
311
324
  //#endregion
312
325
  //#region src/components/custom/aurora/composables/useAurora.ts
313
- function ee(e) {
326
+ function te(e) {
314
327
  if (typeof window > "u") return () => {};
315
328
  if (typeof window.requestIdleCallback == "function") {
316
329
  let t = window.requestIdleCallback(() => e(), { timeout: 2e3 });
@@ -369,12 +382,12 @@ function Q(e, t, n = {}, r = {}) {
369
382
  return;
370
383
  }
371
384
  p = i(e, {
372
- pause: () => s?.pause(),
373
- resume: () => s?.resume()
374
- });
385
+ pause: () => s?.pause("off-screen"),
386
+ resume: () => s?.resume("off-screen")
387
+ }, { pauseWhenHidden: !1 });
375
388
  let r = p.isIntersecting;
376
389
  l = _(r, (e) => {
377
- !e || v || u || (u = ee(() => {
390
+ !e || v || u || (u = te(() => {
378
391
  u = null, r.value && C();
379
392
  }));
380
393
  }, { immediate: !0 });
@@ -400,7 +413,7 @@ function $(e) {
400
413
  }
401
414
  //#endregion
402
415
  //#region src/components/custom/aurora/Aurora.vue
403
- var te = /* @__PURE__ */ e(/* @__PURE__ */ c({
416
+ var ne = /* @__PURE__ */ e(/* @__PURE__ */ c({
404
417
  __name: "Aurora",
405
418
  props: {
406
419
  config: { default: () => r },
@@ -441,7 +454,7 @@ var te = /* @__PURE__ */ e(/* @__PURE__ */ c({
441
454
  }), [["__scopeId", "data-v-80ea8f7d"]]);
442
455
  //#endregion
443
456
  //#region src/components/custom/aurora/composables/useCursorInteraction.ts
444
- function ne(e, t, n) {
457
+ function re(e, t, n) {
445
458
  let r = Z(t), i = n.hitFraction ?? .35, a = null, o = null;
446
459
  function s(e, t) {
447
460
  let n = t.getBoundingClientRect();
@@ -538,4 +551,4 @@ function ne(e, t, n) {
538
551
  }), { isDragging: () => a };
539
552
  }
540
553
  //#endregion
541
- export { te as Aurora, r as DEFAULT_AURORA_CONFIG, t as MAX_NUCLEI, n as MAX_STOPS, X as createAurora, L as cssToOklch, j as flattenPalette, P as hexToOklchStop, N as oklchStopToHex, A as oklchToLinear, M as paletteToCssGradient, $ as resolveRenderMode, Q as useAurora, ne as useCursorInteraction };
554
+ export { ne as Aurora, r as DEFAULT_AURORA_CONFIG, t as MAX_NUCLEI, n as MAX_STOPS, X as createAurora, L as cssToOklch, j as flattenPalette, P as hexToOklchStop, N as oklchStopToHex, A as oklchToLinear, M as paletteToCssGradient, $ as resolveRenderMode, Q as useAurora, re as useCursorInteraction };
package/dist/carousel.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./createLucideIcon-Bn9a1b70.js";
3
- import { t as n } from "./chevron-down-DILQA1t6.js";
4
- import { t as r } from "./chevron-right-fS7fal2t.js";
5
- import { t as i } from "./chevron-up-BtYjYQOS.js";
2
+ import { t } from "./createLucideIcon-rHu18UQW.js";
3
+ import { t as n } from "./chevron-down-Du2b9vY_.js";
4
+ import { t as r } from "./chevron-right-CtDxpE3w.js";
5
+ import { t as i } from "./chevron-up-CenYokvI.js";
6
6
  import { n as a } from "./button-BlOW34DT.js";
7
7
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, normalizeClass as h, onMounted as g, openBlock as _, ref as v, renderList as y, renderSlot as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, watch as w, withCtx as T } from "vue";
8
8
  import { createInjectionState as E } from "@vueuse/core";