@speckle/ui-components 2.14.8-alpha1 → 2.14.8-alpha3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.js CHANGED
@@ -141,123 +141,123 @@ const Pt = {
141
141
  },
142
142
  emits: ["click"],
143
143
  setup(e, { emit: s }) {
144
- const n = e, o = W("NuxtLink"), a = W("RouterLink"), r = c(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), i = c(() => {
144
+ const n = e, o = W("NuxtLink"), a = W("RouterLink"), r = c(() => n.linkComponent ? n.linkComponent : n.external ? "a" : Ce(o) ? o : Ce(a) ? a : "a"), d = c(() => {
145
145
  if (!n.to)
146
146
  return n.submit ? "submit" : "button";
147
- }), d = c(() => n.disabled || n.loading), y = c(() => n.loading ? Ue : n.iconLeft), p = c(() => {
148
- const f = [];
149
- if (f.push("border-2"), d.value)
150
- f.push(
147
+ }), i = c(() => n.disabled || n.loading), y = c(() => n.loading ? Ue : n.iconLeft), f = c(() => {
148
+ const p = [];
149
+ if (p.push("border-2"), i.value)
150
+ p.push(
151
151
  n.outlined ? "border-foreground-disabled" : "bg-foundation-disabled border-transparent"
152
152
  );
153
153
  else
154
154
  switch (n.color) {
155
155
  case "invert":
156
- f.push(
156
+ p.push(
157
157
  n.outlined ? "border-foundation dark:border-foreground" : "bg-foundation dark:bg-foreground border-transparent"
158
158
  );
159
159
  break;
160
160
  case "card":
161
- f.push(
161
+ p.push(
162
162
  n.outlined ? "border-foundation-2 shadow" : "bg-foundation-2 dark:bg-foundation-2 border-foundation shadow"
163
163
  );
164
164
  break;
165
165
  case "danger":
166
- f.push(n.outlined ? "border-danger" : "bg-danger border-danger");
166
+ p.push(n.outlined ? "border-danger" : "bg-danger border-danger");
167
167
  break;
168
168
  case "secondary":
169
- f.push(
169
+ p.push(
170
170
  n.outlined ? "border-foundation" : "bg-foundation border-foundation-2"
171
171
  );
172
172
  break;
173
173
  case "warning":
174
- f.push(n.outlined ? "border-warning" : "bg-warning border-warning");
174
+ p.push(n.outlined ? "border-warning" : "bg-warning border-warning");
175
175
  break;
176
176
  case "success":
177
- f.push(n.outlined ? "border-success" : "bg-success border-success");
177
+ p.push(n.outlined ? "border-success" : "bg-success border-success");
178
178
  break;
179
179
  case "default":
180
180
  default:
181
- f.push(
181
+ p.push(
182
182
  n.outlined ? "border-primary hover:border-primary-focus" : "bg-primary hover:bg-primary-focus border-transparent"
183
183
  );
184
184
  break;
185
185
  }
186
- return f.join(" ");
186
+ return p.join(" ");
187
187
  }), w = c(() => {
188
- const f = [];
188
+ const p = [];
189
189
  if (!n.text && !n.link)
190
- if (d.value)
191
- f.push(
190
+ if (i.value)
191
+ p.push(
192
192
  (n.outlined, "text-foreground-disabled")
193
193
  );
194
194
  else
195
195
  switch (n.color) {
196
196
  case "invert":
197
- f.push(
197
+ p.push(
198
198
  n.outlined ? "text-foundation dark:text-foreground" : "text-primary"
199
199
  );
200
200
  break;
201
201
  case "card":
202
- f.push((n.outlined, "text-foreground"));
202
+ p.push((n.outlined, "text-foreground"));
203
203
  break;
204
204
  case "danger":
205
- f.push(
205
+ p.push(
206
206
  n.outlined ? "text-danger" : "text-foundation dark:text-foreground"
207
207
  );
208
208
  break;
209
209
  case "warning":
210
- f.push(
210
+ p.push(
211
211
  n.outlined ? "text-warning" : "text-foundation dark:text-foreground"
212
212
  );
213
213
  break;
214
214
  case "success":
215
- f.push(
215
+ p.push(
216
216
  n.outlined ? "text-success" : "text-foundation dark:text-foreground"
217
217
  );
218
218
  break;
219
219
  case "secondary":
220
- f.push(
220
+ p.push(
221
221
  (n.outlined, "text-foreground hover:text-primary")
222
222
  );
223
223
  break;
224
224
  case "default":
225
225
  default:
226
- f.push(
226
+ p.push(
227
227
  n.outlined ? "text-primary hover:text-primary-focus" : "text-foundation dark:text-foreground"
228
228
  );
229
229
  break;
230
230
  }
231
231
  else
232
- d.value ? f.push("text-foreground-disabled") : n.color === "invert" ? f.push(
232
+ i.value ? p.push("text-foreground-disabled") : n.color === "invert" ? p.push(
233
233
  "text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
234
- ) : n.color === "secondary" ? f.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? f.push("text-success") : n.color === "warning" ? f.push("text-warning") : n.color === "danger" ? f.push("text-danger") : f.push("text-primary hover:text-primary-focus");
235
- return f.join(" ");
234
+ ) : n.color === "secondary" ? p.push("text-foreground-2 hover:text-primary-focus") : n.color === "success" ? p.push("text-success") : n.color === "warning" ? p.push("text-warning") : n.color === "danger" ? p.push("text-danger") : p.push("text-primary hover:text-primary-focus");
235
+ return p.join(" ");
236
236
  }), g = c(() => {
237
- const f = [];
238
- return f.push(n.rounded ? "rounded-full" : "rounded-md"), f.join(" ");
237
+ const p = [];
238
+ return p.push(n.rounded ? "rounded-full" : "rounded-md"), p.join(" ");
239
239
  }), m = c(() => {
240
- const f = [];
241
- if (!d.value)
240
+ const p = [];
241
+ if (!i.value)
242
242
  switch (n.color) {
243
243
  case "invert":
244
- f.push("hover:ring-4 ring-white/50");
244
+ p.push("hover:ring-4 ring-white/50");
245
245
  break;
246
246
  case "danger":
247
- f.push("hover:ring-4 ring-danger-lighter dark:ring-danger-darker");
247
+ p.push("hover:ring-4 ring-danger-lighter dark:ring-danger-darker");
248
248
  break;
249
249
  case "warning":
250
- f.push("hover:ring-4 ring-warning-lighter dark:ring-warning-darker");
250
+ p.push("hover:ring-4 ring-warning-lighter dark:ring-warning-darker");
251
251
  break;
252
252
  case "success":
253
- f.push("hover:ring-4 ring-success-lighter dark:ring-success-darker");
253
+ p.push("hover:ring-4 ring-success-lighter dark:ring-success-darker");
254
254
  break;
255
255
  case "default":
256
256
  default:
257
- f.push("hover:ring-2");
257
+ p.push("hover:ring-2");
258
258
  break;
259
259
  }
260
- return f.join(" ");
260
+ return p.join(" ");
261
261
  }), b = c(() => {
262
262
  switch (n.size) {
263
263
  case "xs":
@@ -287,61 +287,61 @@ const Pt = {
287
287
  return "px-3";
288
288
  }
289
289
  }), x = c(() => {
290
- const f = [];
291
- return n.fullWidth && f.push("w-full"), d.value && f.push("cursor-not-allowed"), f.join(" ");
290
+ const p = [];
291
+ return n.fullWidth && p.push("w-full"), i.value && p.push("cursor-not-allowed"), p.join(" ");
292
292
  }), L = c(() => {
293
- const f = [];
294
- return !d.value && !n.link && !n.text && f.push("active:scale-[0.97]"), !d.value && n.link && f.push(
293
+ const p = [];
294
+ return !i.value && !n.link && !n.text && p.push("active:scale-[0.97]"), !i.value && n.link && p.push(
295
295
  "underline decoration-transparent decoration-2 underline-offset-4 hover:decoration-inherit"
296
- ), f.join(" ");
296
+ ), p.join(" ");
297
297
  }), S = c(() => {
298
- const f = n.link || n.text;
298
+ const p = n.link || n.text;
299
299
  return [
300
300
  "transition inline-flex justify-center items-center space-x-2 outline-none select-none",
301
301
  x.value,
302
302
  b.value,
303
303
  w.value,
304
- f ? "" : p.value,
305
- f ? "" : g.value,
306
- f ? "" : m.value,
304
+ p ? "" : f.value,
305
+ p ? "" : g.value,
306
+ p ? "" : m.value,
307
307
  n.link ? "" : j.value,
308
308
  L.value
309
309
  ].join(" ");
310
310
  }), C = c(() => {
311
- const f = [""];
312
- switch (n.loading && f.push("animate-spin"), n.size) {
311
+ const p = [""];
312
+ switch (n.loading && p.push("animate-spin"), n.size) {
313
313
  case "xs":
314
- f.push("h-3 w-3");
314
+ p.push("h-3 w-3");
315
315
  break;
316
316
  case "sm":
317
- f.push("h-4 w-4");
317
+ p.push("h-4 w-4");
318
318
  break;
319
319
  case "lg":
320
- f.push("h-6 w-6");
320
+ p.push("h-6 w-6");
321
321
  break;
322
322
  case "xl":
323
- f.push("h-8 w-8");
323
+ p.push("h-8 w-8");
324
324
  break;
325
325
  case "base":
326
326
  default:
327
- f.push("h-5 w-5");
327
+ p.push("h-5 w-5");
328
328
  break;
329
329
  }
330
- return f.join(" ");
331
- }), q = (f) => {
332
- if (d.value) {
333
- f.preventDefault(), f.stopPropagation(), f.stopImmediatePropagation();
330
+ return p.join(" ");
331
+ }), q = (p) => {
332
+ if (i.value) {
333
+ p.preventDefault(), p.stopPropagation(), p.stopImmediatePropagation();
334
334
  return;
335
335
  }
336
- s("click", f);
336
+ s("click", p);
337
337
  };
338
- return (f, V) => (l(), P(W(e.to ? t(r) : "button"), {
338
+ return (p, V) => (l(), P(W(e.to ? t(r) : "button"), {
339
339
  href: e.to,
340
340
  to: e.to,
341
- type: t(i),
341
+ type: t(d),
342
342
  external: e.external,
343
343
  class: v(t(S)),
344
- disabled: t(d),
344
+ disabled: t(i),
345
345
  role: "button",
346
346
  onClick: q
347
347
  }, {
@@ -350,7 +350,7 @@ const Pt = {
350
350
  key: 0,
351
351
  class: v(`${t(C)} ${e.hideText ? "" : "mr-2"}`)
352
352
  }, null, 8, ["class"])) : $("", !0),
353
- e.hideText ? (l(), h("div", Pt, "   ")) : R(f.$slots, "default", { key: 1 }, () => [
353
+ e.hideText ? (l(), h("div", Pt, "   ")) : R(p.$slots, "default", { key: 1 }, () => [
354
354
  T("Button")
355
355
  ], !0),
356
356
  e.iconRight || !e.loading ? (l(), P(W(e.iconRight), {
@@ -471,16 +471,16 @@ const Ot = {
471
471
  setup(e, { emit: s }) {
472
472
  const n = e, o = c(
473
473
  () => {
474
- var i, d;
475
- return !((i = n.notification) != null && i.description) && !((d = n.notification) != null && d.cta);
474
+ var d, i;
475
+ return !((d = n.notification) != null && d.description) && !((i = n.notification) != null && i.cta);
476
476
  }
477
477
  ), a = () => {
478
478
  s("update:notification", null);
479
- }, r = (i) => {
480
- var d, y, p;
481
- (p = (y = (d = n.notification) == null ? void 0 : d.cta) == null ? void 0 : y.onClick) == null || p.call(y, i), a();
479
+ }, r = (d) => {
480
+ var i, y, f;
481
+ (f = (y = (i = n.notification) == null ? void 0 : i.cta) == null ? void 0 : y.onClick) == null || f.call(y, d), a();
482
482
  };
483
- return (i, d) => (l(), h("div", Ot, [
483
+ return (d, i) => (l(), h("div", Ot, [
484
484
  u("div", Mt, [
485
485
  I(ce, {
486
486
  "enter-active-class": "transform ease-out duration-300 transition",
@@ -578,46 +578,46 @@ const Ot = {
578
578
  ), a = c(
579
579
  () => n.dotIconColorClasses || "text-blue-400"
580
580
  ), r = c(() => {
581
- const p = [
581
+ const f = [
582
582
  "inline-flex items-center",
583
583
  o.value,
584
584
  n.size === "lg" ? "px-3 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
585
585
  ];
586
- return n.rounded ? (p.push("rounded"), p.push(
586
+ return n.rounded ? (f.push("rounded"), f.push(
587
587
  n.size === "lg" ? "px-2 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
588
- )) : (p.push("rounded-full"), p.push(
588
+ )) : (f.push("rounded-full"), f.push(
589
589
  n.size === "lg" ? "px-2.5 py-0.5 label" : "px-2.5 py-0.5 caption font-medium"
590
- )), p.join(" ");
591
- }), i = c(() => {
592
- const p = [
590
+ )), f.join(" ");
591
+ }), d = c(() => {
592
+ const f = [
593
593
  "mt-0.5 ml-0.5 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-full focus:outline-none"
594
594
  ];
595
- return n.clickableIcon ? p.push("cursor-pointer") : p.push("cursor-default"), p.join(" ");
596
- }), d = c(() => [
595
+ return n.clickableIcon ? f.push("cursor-pointer") : f.push("cursor-default"), f.join(" ");
596
+ }), i = c(() => [
597
597
  "-ml-0.5 mr-1.5 h-2 w-2",
598
598
  a.value
599
- ].join(" ")), y = (p) => {
599
+ ].join(" ")), y = (f) => {
600
600
  if (!n.clickableIcon) {
601
- p.stopPropagation(), p.stopImmediatePropagation(), p.preventDefault();
601
+ f.stopPropagation(), f.stopImmediatePropagation(), f.preventDefault();
602
602
  return;
603
603
  }
604
- s("click-icon", p);
604
+ s("click-icon", f);
605
605
  };
606
- return (p, w) => (l(), h("span", {
606
+ return (f, w) => (l(), h("span", {
607
607
  class: v(t(r))
608
608
  }, [
609
609
  e.dot ? (l(), h("svg", {
610
610
  key: 0,
611
- class: v(t(d)),
611
+ class: v(t(i)),
612
612
  fill: "currentColor",
613
613
  viewBox: "0 0 8 8"
614
614
  }, Ht, 2)) : $("", !0),
615
- R(p.$slots, "default", {}, () => [
615
+ R(f.$slots, "default", {}, () => [
616
616
  T("Badge")
617
617
  ]),
618
618
  e.iconLeft ? (l(), h("button", {
619
619
  key: 1,
620
- class: v(t(i)),
620
+ class: v(t(d)),
621
621
  onClick: w[0] || (w[0] = (g) => y(g))
622
622
  }, [
623
623
  (l(), P(W(e.iconLeft), {
@@ -631,13 +631,13 @@ var J = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e
631
631
  function Oe(e) {
632
632
  const {
633
633
  props: { modelValue: s, steps: n, orientation: o, goVerticalBelow: a, nonInteractive: r },
634
- emit: i
635
- } = e, d = c(
634
+ emit: d
635
+ } = e, i = c(
636
636
  () => (o == null ? void 0 : o.value) === "vertical" ? "vertical" : "horizontal"
637
637
  ), y = c({
638
638
  get: () => we((s == null ? void 0 : s.value) || 0, -1, n.value.length),
639
- set: (x) => i("update:modelValue", we(x, 0, n.value.length))
640
- }), p = (x) => `${x + 1}`, w = (x) => x === y.value, g = (x) => x < y.value, m = (x, L) => {
639
+ set: (x) => d("update:modelValue", we(x, 0, n.value.length))
640
+ }), f = (x) => `${x + 1}`, w = (x) => x === y.value, g = (x) => x < y.value, m = (x, L) => {
641
641
  var C;
642
642
  if (r != null && r.value) {
643
643
  L == null || L.preventDefault(), L == null || L.stopPropagation(), L == null || L.stopImmediatePropagation();
@@ -648,7 +648,7 @@ function Oe(e) {
648
648
  (C = S == null ? void 0 : S.onClick) == null || C.call(S);
649
649
  }, b = c(() => {
650
650
  const x = ["flex"];
651
- return x.push("flex"), d.value === "vertical" || a != null && a.value ? (x.push("flex-col space-y-4 justify-center"), (a == null ? void 0 : a.value) === J.sm ? x.push(
651
+ return x.push("flex"), i.value === "vertical" || a != null && a.value ? (x.push("flex-col space-y-4 justify-center"), (a == null ? void 0 : a.value) === J.sm ? x.push(
652
652
  "sm:flex-row sm:space-y-0 sm:justify-start sm:space-x-8 sm:items-center"
653
653
  ) : (a == null ? void 0 : a.value) === J.md ? x.push(
654
654
  "md:flex-row md:space-y-0 md:justify-start md:space-x-8 md:items-center"
@@ -666,10 +666,10 @@ function Oe(e) {
666
666
  isCurrentStep: w,
667
667
  isFinishedStep: g,
668
668
  switchStep: m,
669
- getStepDisplayValue: p,
669
+ getStepDisplayValue: f,
670
670
  listClasses: b,
671
671
  linkClasses: j,
672
- orientation: d
672
+ orientation: i
673
673
  };
674
674
  }
675
675
  const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Jt = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center" }, Qt = { class: "flex flex-col" }, Yt = {
@@ -697,19 +697,19 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
697
697
  isCurrentStep: o,
698
698
  isFinishedStep: a,
699
699
  switchStep: r,
700
- getStepDisplayValue: i,
701
- listClasses: d,
700
+ getStepDisplayValue: d,
701
+ listClasses: i,
702
702
  linkClasses: y
703
703
  } = Oe({
704
704
  props: Z(n),
705
705
  emit: s
706
706
  });
707
- return (p, w) => (l(), h("nav", {
707
+ return (f, w) => (l(), h("nav", {
708
708
  class: "flex justify-center",
709
709
  "aria-label": e.ariaLabel || "Progress steps"
710
710
  }, [
711
711
  u("ol", {
712
- class: v(t(d))
712
+ class: v(t(i))
713
713
  }, [
714
714
  (l(!0), h(U, null, H(e.steps, (g, m) => (l(), h("li", {
715
715
  key: g.name
@@ -737,7 +737,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
737
737
  onClick: (b) => t(r)(m, b)
738
738
  }, [
739
739
  u("div", es, [
740
- u("div", ts, _(t(i)(m)), 1),
740
+ u("div", ts, _(t(d)(m)), 1),
741
741
  u("div", ss, [
742
742
  u("div", null, _(g.name), 1),
743
743
  g.description ? (l(), h("div", ns, _(g.description), 1)) : $("", !0)
@@ -750,7 +750,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
750
750
  onClick: (b) => t(r)(m, b)
751
751
  }, [
752
752
  u("div", as, [
753
- u("div", os, _(t(i)(m)), 1),
753
+ u("div", os, _(t(d)(m)), 1),
754
754
  u("div", rs, [
755
755
  u("div", null, _(g.name), 1),
756
756
  g.description ? (l(), h("div", is, _(g.description), 1)) : $("", !0)
@@ -792,19 +792,19 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
792
792
  },
793
793
  emits: ["update:modelValue"],
794
794
  setup(e, { emit: s }) {
795
- const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: i, linkClasses: d } = Oe({
795
+ const n = e, { isCurrentStep: o, isFinishedStep: a, switchStep: r, listClasses: d, linkClasses: i } = Oe({
796
796
  props: Z(n),
797
797
  emit: s
798
798
  }), y = c(() => {
799
- const p = ["ml-3 h6 font-medium leading-7"];
800
- return n.basic && p.push("sr-only"), p.join(" ");
799
+ const f = ["ml-3 h6 font-medium leading-7"];
800
+ return n.basic && f.push("sr-only"), f.join(" ");
801
801
  });
802
- return (p, w) => (l(), h("nav", {
802
+ return (f, w) => (l(), h("nav", {
803
803
  class: "flex justify-center",
804
804
  "aria-label": e.ariaLabel || "Progress steps"
805
805
  }, [
806
806
  u("ol", {
807
- class: v([t(i), e.basic ? "basic" : ""])
807
+ class: v([t(d), e.basic ? "basic" : ""])
808
808
  }, [
809
809
  (l(!0), h(U, null, H(e.steps, (g, m) => (l(), h("li", {
810
810
  key: g.name
@@ -812,7 +812,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
812
812
  t(a)(m) ? (l(), h("a", {
813
813
  key: 0,
814
814
  href: g.href,
815
- class: v(t(d)),
815
+ class: v(t(i)),
816
816
  onClick: (b) => t(r)(m, b)
817
817
  }, [
818
818
  u("span", ds, [
@@ -828,7 +828,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
828
828
  ], 10, cs)) : t(o)(m) ? (l(), h("a", {
829
829
  key: 1,
830
830
  href: g.href,
831
- class: v(t(d)),
831
+ class: v(t(i)),
832
832
  "aria-current": "step",
833
833
  onClick: (b) => t(r)(m, b)
834
834
  }, [
@@ -844,7 +844,7 @@ const Kt = ["aria-label"], Xt = ["href", "onClick"], Nt = { class: "flex space-x
844
844
  ], 10, ps)) : (l(), h("a", {
845
845
  key: 2,
846
846
  href: g.href,
847
- class: v(t(d)),
847
+ class: v(t(i)),
848
848
  onClick: (b) => t(r)(m, b)
849
849
  }, [
850
850
  u("div", bs, [
@@ -882,7 +882,7 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
882
882
  }
883
883
  s("update:modelValue", !n.modelValue), s("click", r);
884
884
  };
885
- return (r, i) => (l(), h("button", {
885
+ return (r, d) => (l(), h("button", {
886
886
  class: v(t(o)),
887
887
  disabled: e.disabled,
888
888
  onClick: a
@@ -992,15 +992,15 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
992
992
  const s = e, n = (x) => `${x}-${pe()}`, o = c(() => s.value || s.name), {
993
993
  checked: a,
994
994
  errorMessage: r,
995
- handleChange: i
995
+ handleChange: d
996
996
  } = fe(s.name, s.rules, {
997
997
  validateOnMount: s.validateOnMount,
998
998
  type: "checkbox",
999
999
  checkedValue: o,
1000
1000
  initialValue: s.modelValue || void 0
1001
- }), d = (x) => {
1002
- s.disabled || i(x);
1003
- }, y = c(() => s.label || s.name), p = c(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = c(() => s.description || r.value), g = c(() => `${s.name}-description`), m = c(() => {
1001
+ }), i = (x) => {
1002
+ s.disabled || d(x);
1003
+ }, y = c(() => s.label || s.name), f = c(() => r.value ? "border-danger-lighter" : "border-foreground-4 "), w = c(() => s.description || r.value), g = c(() => `${s.name}-description`), m = c(() => {
1004
1004
  const x = [];
1005
1005
  return s.inlineDescription ? x.push("inline ml-2") : x.push("block"), r.value ? x.push("text-danger") : x.push("text-foreground-2"), x.join(" ");
1006
1006
  }), b = A(n("checkbox")), j = c(() => s.id || b.value);
@@ -1014,8 +1014,8 @@ const il = /* @__PURE__ */ me(Cs, [["__scopeId", "data-v-56fc6520"]]), ws = ["di
1014
1014
  value: t(o),
1015
1015
  disabled: e.disabled,
1016
1016
  type: "checkbox",
1017
- class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", t(p)]
1018
- }, x.$attrs, { onChange: d }), null, 16, Ss)
1017
+ class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", t(f)]
1018
+ }, x.$attrs, { onChange: i }), null, 16, Ss)
1019
1019
  ]),
1020
1020
  u("div", Is, [
1021
1021
  u("label", {
@@ -1039,10 +1039,10 @@ function Ae(e) {
1039
1039
  validateOnMount: t(s.validateOnMount),
1040
1040
  validateOnValueUpdate: t(s.validateOnValueUpdate),
1041
1041
  initialValue: t(s.modelValue) || void 0
1042
- }), i = c(() => {
1042
+ }), d = c(() => {
1043
1043
  const C = ["block label text-foreground-2 mb-2"];
1044
1044
  return t(s.showLabel) || C.push("sr-only"), C.join(" ");
1045
- }), d = c(() => {
1045
+ }), i = c(() => {
1046
1046
  const C = [
1047
1047
  "block w-full rounded focus:outline-none text-foreground transition-all",
1048
1048
  "disabled:cursor-not-allowed disabled:bg-foundation-disabled disabled:text-disabled-muted",
@@ -1051,9 +1051,9 @@ function Ae(e) {
1051
1051
  return r.value ? C.push(
1052
1052
  "border-2 border-danger text-danger-darker focus:border-danger focus:ring-danger"
1053
1053
  ) : C.push("border-0 focus:ring-2 focus:ring-outline-2"), t(s.color) === "foundation" ? C.push("bg-foundation shadow-sm hover:shadow") : C.push("bg-foundation-page"), C.join(" ");
1054
- }), y = A(pe()), p = c(() => t(s.label) || t(s.name)), w = c(() => {
1054
+ }), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1055
1055
  const C = r.value;
1056
- return !C || !t(s.useLabelInErrors) ? C : C.replace("Value", p.value);
1056
+ return !C || !t(s.useLabelInErrors) ? C : C.replace("Value", f.value);
1057
1057
  }), g = c(
1058
1058
  () => w.value && t(s.hideErrorMessage)
1059
1059
  ), m = c(() => w.value || t(s.help)), b = c(() => !!m.value), j = c(
@@ -1070,8 +1070,8 @@ function Ae(e) {
1070
1070
  return ee(() => {
1071
1071
  t(s.autoFocus) && L();
1072
1072
  }), {
1073
- coreClasses: d,
1074
- title: p,
1073
+ coreClasses: i,
1074
+ title: f,
1075
1075
  value: a,
1076
1076
  helpTipId: j,
1077
1077
  helpTipClasses: x,
@@ -1080,7 +1080,7 @@ function Ae(e) {
1080
1080
  errorMessage: w,
1081
1081
  clear: S,
1082
1082
  focus: L,
1083
- labelClasses: i
1083
+ labelClasses: d
1084
1084
  };
1085
1085
  }
1086
1086
  const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], As = /* @__PURE__ */ u("span", { class: "text-xs sr-only" }, "Clear input", -1), Ds = {
@@ -1110,10 +1110,10 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1110
1110
  setup(e, { expose: s, emit: n }) {
1111
1111
  const o = e, a = A(null), {
1112
1112
  coreClasses: r,
1113
- title: i,
1114
- value: d,
1113
+ title: d,
1114
+ value: i,
1115
1115
  helpTipId: y,
1116
- helpTipClasses: p,
1116
+ helpTipClasses: f,
1117
1117
  helpTip: w,
1118
1118
  errorMessage: g,
1119
1119
  labelClasses: m,
@@ -1134,14 +1134,14 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1134
1134
  for: e.name,
1135
1135
  class: v(t(m))
1136
1136
  }, [
1137
- u("span", null, _(t(i)), 1)
1137
+ u("span", null, _(t(d)), 1)
1138
1138
  ], 10, Vs),
1139
1139
  u("div", Os, [
1140
1140
  te(u("textarea", ne({
1141
1141
  id: e.name,
1142
1142
  ref_key: "inputElement",
1143
1143
  ref: a,
1144
- "onUpdate:modelValue": S[0] || (S[0] = (C) => le(d) ? d.value = C : null),
1144
+ "onUpdate:modelValue": S[0] || (S[0] = (C) => le(i) ? i.value = C : null),
1145
1145
  name: e.name,
1146
1146
  class: [t(r), t(x), "min-h-[4rem]"],
1147
1147
  placeholder: e.placeholder,
@@ -1149,10 +1149,10 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1149
1149
  "aria-invalid": t(g) ? "true" : "false",
1150
1150
  "aria-describedby": t(y)
1151
1151
  }, L.$attrs, {
1152
- onChange: S[1] || (S[1] = (C) => L.$emit("change", { event: C, value: t(d) })),
1153
- onInput: S[2] || (S[2] = (C) => L.$emit("input", { event: C, value: t(d) }))
1152
+ onChange: S[1] || (S[1] = (C) => L.$emit("change", { event: C, value: t(i) })),
1153
+ onInput: S[2] || (S[2] = (C) => L.$emit("input", { event: C, value: t(i) }))
1154
1154
  }), null, 16, Ms), [
1155
- [Ie, t(d)]
1155
+ [Ie, t(i)]
1156
1156
  ]),
1157
1157
  e.showClear ? (l(), h("a", {
1158
1158
  key: 0,
@@ -1186,7 +1186,7 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1186
1186
  t(y) ? (l(), h("p", {
1187
1187
  key: 0,
1188
1188
  id: t(y),
1189
- class: v(t(p))
1189
+ class: v(t(f))
1190
1190
  }, _(t(w)), 11, Rs)) : $("", !0)
1191
1191
  ], 2));
1192
1192
  }
@@ -1336,10 +1336,10 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1336
1336
  emits: ["update:modelValue", "change", "input", "clear", "focusin", "focusout"],
1337
1337
  setup(e, { expose: s, emit: n }) {
1338
1338
  const o = e, a = ze(), r = A(null), {
1339
- coreClasses: i,
1340
- title: d,
1339
+ coreClasses: d,
1340
+ title: i,
1341
1341
  value: y,
1342
- helpTipId: p,
1342
+ helpTipId: f,
1343
1343
  helpTipClasses: w,
1344
1344
  helpTip: g,
1345
1345
  hideHelpTip: m,
@@ -1359,7 +1359,7 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1359
1359
  ), q = c(() => {
1360
1360
  const V = [];
1361
1361
  return C.value ? V.push("pl-8") : V.push("pl-2"), a["input-right"] || (b.value || o.showClear) && (b.value && o.showClear ? V.push("pr-12") : V.push("pr-8")), V.join(" ");
1362
- }), f = c(() => {
1362
+ }), p = c(() => {
1363
1363
  switch (o.size) {
1364
1364
  case "sm":
1365
1365
  return "h-6";
@@ -1379,7 +1379,7 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1379
1379
  for: e.name,
1380
1380
  class: v(t(L))
1381
1381
  }, [
1382
- u("span", null, _(t(d)), 1)
1382
+ u("span", null, _(t(i)), 1)
1383
1383
  ], 10, Ts),
1384
1384
  u("div", Fs, [
1385
1385
  t(C) ? (l(), h("div", zs, [
@@ -1404,11 +1404,11 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1404
1404
  "onUpdate:modelValue": F[0] || (F[0] = (M) => le(y) ? y.value = M : null),
1405
1405
  type: e.type,
1406
1406
  name: e.name,
1407
- class: [t(i), t(q), t(f), e.inputClasses || ""],
1407
+ class: [t(d), t(q), t(p), e.inputClasses || ""],
1408
1408
  placeholder: e.placeholder,
1409
1409
  disabled: e.disabled,
1410
1410
  "aria-invalid": t(b) ? "true" : "false",
1411
- "aria-describedby": t(p),
1411
+ "aria-describedby": t(f),
1412
1412
  role: "textbox"
1413
1413
  }, V.$attrs, {
1414
1414
  onChange: F[1] || (F[1] = (M) => V.$emit("change", { event: M, value: t(y) })),
@@ -1447,9 +1447,9 @@ const Vs = ["for"], Os = { class: "relative" }, Ms = ["id", "name", "placeholder
1447
1447
  e.showRequired && !t(b) ? (l(), h("div", Us, " * ")) : $("", !0)
1448
1448
  ])
1449
1449
  ]),
1450
- t(p) && !t(m) ? (l(), h("p", {
1450
+ t(f) && !t(m) ? (l(), h("p", {
1451
1451
  key: 0,
1452
- id: t(p),
1452
+ id: t(f),
1453
1453
  class: v(t(w))
1454
1454
  }, _(t(g)), 11, qs)) : $("", !0)
1455
1455
  ], 2));
@@ -1478,36 +1478,36 @@ function Zs(e) {
1478
1478
  itemContainer: o,
1479
1479
  trackResize: a = !1,
1480
1480
  trackMutations: r = !0
1481
- } = e || {}, i = A(0), d = () => {
1481
+ } = e || {}, d = A(0), i = () => {
1482
1482
  const y = o.value;
1483
1483
  if (s != null && s.value || !y)
1484
1484
  return;
1485
- const p = y.children;
1485
+ const f = y.children;
1486
1486
  let w = 0, g = 0, m;
1487
- for (const b of p) {
1487
+ for (const b of f) {
1488
1488
  const j = b.offsetTop;
1489
1489
  X(m) ? (m = j, w += 1) : j === m && (w += 1), g += 1;
1490
1490
  }
1491
- i.value = g - w;
1491
+ d.value = g - w;
1492
1492
  };
1493
- return a && ct(n, d), r && dt(n, d, {
1493
+ return a && ct(n, i), r && dt(n, i, {
1494
1494
  childList: !0,
1495
1495
  subtree: !0
1496
1496
  }), {
1497
- hiddenItemCount: i
1497
+ hiddenItemCount: d
1498
1498
  };
1499
1499
  }
1500
1500
  function en(e) {
1501
1501
  const { props: s, emit: n, dynamicVisibility: o } = e;
1502
1502
  let a;
1503
1503
  if (o) {
1504
- const { elementToWatchForChanges: p, itemContainer: w } = o;
1504
+ const { elementToWatchForChanges: f, itemContainer: w } = o;
1505
1505
  a = Zs({
1506
1506
  skipCalculation: c(() => {
1507
1507
  var m;
1508
1508
  return !((m = s.multiple) != null && m.value);
1509
1509
  }),
1510
- elementToWatchForChanges: p,
1510
+ elementToWatchForChanges: f,
1511
1511
  itemContainer: w
1512
1512
  }).hiddenItemCount;
1513
1513
  } else
@@ -1515,27 +1515,27 @@ function en(e) {
1515
1515
  const r = c({
1516
1516
  get: () => {
1517
1517
  var w, g;
1518
- const p = (w = s.modelValue) == null ? void 0 : w.value;
1519
- return (g = s.multiple) != null && g.value ? E(p) ? p : [] : E(p) ? void 0 : p;
1518
+ const f = (w = s.modelValue) == null ? void 0 : w.value;
1519
+ return (g = s.multiple) != null && g.value ? E(f) ? f : [] : E(f) ? void 0 : f;
1520
1520
  },
1521
- set: (p) => {
1521
+ set: (f) => {
1522
1522
  var w, g, m;
1523
- if ((w = s.multiple) != null && w.value && !E(p)) {
1523
+ if ((w = s.multiple) != null && w.value && !E(f)) {
1524
1524
  console.warn("Attempting to set non-array value in selector w/ multiple=true");
1525
1525
  return;
1526
- } else if (!((g = s.multiple) != null && g.value) && E(p)) {
1526
+ } else if (!((g = s.multiple) != null && g.value) && E(f)) {
1527
1527
  console.warn("Attempting to set array value in selector w/ multiple=false");
1528
1528
  return;
1529
1529
  }
1530
- n("update:modelValue", (m = s.multiple) != null && m.value ? p || [] : p);
1530
+ n("update:modelValue", (m = s.multiple) != null && m.value ? f || [] : f);
1531
1531
  }
1532
- }), i = (p) => E(p);
1532
+ }), d = (f) => E(f);
1533
1533
  return {
1534
1534
  selectedValue: r,
1535
1535
  hiddenSelectedItemCount: a,
1536
- isArrayValue: i,
1537
- isMultiItemArrayValue: (p) => E(p) && p.length > 1,
1538
- firstItem: (p) => i(p) ? p[0] : p
1536
+ isArrayValue: d,
1537
+ isMultiItemArrayValue: (f) => E(f) && f.length > 1,
1538
+ firstItem: (f) => d(f) ? f[0] : f
1539
1539
  };
1540
1540
  }
1541
1541
  const tn = (e) => (_e("data-v-60cf597b"), e = e(), Se(), e), sn = /* @__PURE__ */ tn(() => /* @__PURE__ */ u("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), nn = [
@@ -1698,9 +1698,9 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1698
1698
  validateOnMount: s.validateOnMount,
1699
1699
  validateOnValueUpdate: s.validateOnValueUpdate,
1700
1700
  initialValue: s.modelValue
1701
- }), a = A(null), r = A(""), i = A([]), d = A(!1), y = A(pe()), p = c(() => t(s.label) || t(s.name)), w = c(() => {
1701
+ }), a = A(null), r = A(""), d = A([]), i = A(!1), y = A(pe()), f = c(() => t(s.label) || t(s.name)), w = c(() => {
1702
1702
  const k = o.value;
1703
- return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", p.value);
1703
+ return !k || !t(s.useLabelInErrors) ? k : k.replace("Value", f.value);
1704
1704
  }), g = c(() => w.value || t(s.help)), m = c(() => !!g.value), b = c(
1705
1705
  () => m.value ? `${t(s.name)}-${y.value}` : void 0
1706
1706
  ), j = c(
@@ -1733,9 +1733,9 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1733
1733
  S.value
1734
1734
  ];
1735
1735
  return s.buttonStyle !== "simple" && (k.push("py-2 px-3"), F.value || k.push("bg-foundation text-foreground")), x.value && ve.value && k.push("rounded-r-none"), k.join(" ");
1736
- }), f = c(
1736
+ }), p = c(
1737
1737
  () => !!(s.search && (s.filterPredicate || s.getSearchResults))
1738
- ), V = c(() => f.value && s.getSearchResults), F = c(
1738
+ ), V = c(() => p.value && s.getSearchResults), F = c(
1739
1739
  () => s.disabled || !s.items.length && !V.value
1740
1740
  ), M = c({
1741
1741
  get: () => {
@@ -1761,26 +1761,26 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1761
1761
  s.multiple ? M.value = [] : M.value = void 0;
1762
1762
  }, Te = c(() => {
1763
1763
  const k = r.value;
1764
- return !f.value || !(k != null && k.length) ? i.value : s.filterPredicate ? i.value.filter(
1764
+ return !p.value || !(k != null && k.length) ? d.value : s.filterPredicate ? d.value.filter(
1765
1765
  (z) => {
1766
1766
  var D;
1767
1767
  return ((D = s.filterPredicate) == null ? void 0 : D.call(s, z, k)) || !1;
1768
1768
  }
1769
- ) : i.value;
1769
+ ) : d.value;
1770
1770
  }), be = (k) => JSON.stringify(k), ae = (k) => s.by ? k[s.by] : k, xe = async () => {
1771
1771
  if (console.log("triggerSearch"), !(!V.value || !s.getSearchResults)) {
1772
- d.value = !0;
1772
+ i.value = !0;
1773
1773
  try {
1774
- i.value = await s.getSearchResults(r.value);
1774
+ d.value = await s.getSearchResults(r.value);
1775
1775
  } finally {
1776
- d.value = !1;
1776
+ i.value = !1;
1777
1777
  }
1778
1778
  }
1779
1779
  }, Fe = Pe(xe, 1e3);
1780
1780
  return Y(
1781
1781
  () => s.items,
1782
1782
  (k) => {
1783
- i.value = k.slice();
1783
+ d.value = k.slice();
1784
1784
  },
1785
1785
  { immediate: !0 }
1786
1786
  ), Y(r, () => {
@@ -1863,7 +1863,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1863
1863
  })
1864
1864
  }, {
1865
1865
  default: B(() => [
1866
- t(f) ? (l(), h("label", cn, [
1866
+ t(p) ? (l(), h("label", cn, [
1867
1867
  dn,
1868
1868
  u("div", fn, [
1869
1869
  u("div", pn, [
@@ -1884,16 +1884,16 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
1884
1884
  ])
1885
1885
  ])) : $("", !0),
1886
1886
  u("div", {
1887
- class: v(["overflow-auto simple-scrollbar", [t(f) ? "max-h-52" : "max-h-60"]])
1887
+ class: v(["overflow-auto simple-scrollbar", [t(p) ? "max-h-52" : "max-h-60"]])
1888
1888
  }, [
1889
- t(V) && d.value ? (l(), h("div", mn, [
1889
+ t(V) && i.value ? (l(), h("div", mn, [
1890
1890
  I(De, { loading: !0 })
1891
- ])) : t(V) && !i.value.length ? (l(), h("div", gn, [
1891
+ ])) : t(V) && !d.value.length ? (l(), h("div", gn, [
1892
1892
  R(k.$slots, "nothing-found", {}, () => [
1893
1893
  yn
1894
1894
  ])
1895
1895
  ])) : $("", !0),
1896
- !t(V) || !d.value ? (l(!0), h(U, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
1896
+ !t(V) || !i.value ? (l(!0), h(U, { key: 2 }, H(t(Te), (D) => (l(), P(t(yt), {
1897
1897
  key: ae(D),
1898
1898
  value: D
1899
1899
  }, {
@@ -2031,11 +2031,11 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2031
2031
  },
2032
2032
  emits: ["update:modelValue"],
2033
2033
  setup(e, { emit: s }) {
2034
- const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: i, isMultiItemArrayValue: d, firstItem: y } = en({
2034
+ const n = e, o = A(null), a = A(null), { selectedValue: r, hiddenSelectedItemCount: d, isMultiItemArrayValue: i, firstItem: y } = en({
2035
2035
  props: Z(n),
2036
2036
  emit: s,
2037
2037
  dynamicVisibility: { elementToWatchForChanges: o, itemContainer: a }
2038
- }), p = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
2038
+ }), f = (w, g) => w.name.toLocaleLowerCase().includes(g.toLocaleLowerCase());
2039
2039
  return (w, g) => (l(), P(xn, {
2040
2040
  modelValue: t(r),
2041
2041
  "onUpdate:modelValue": g[0] || (g[0] = (m) => le(r) ? r.value = m : null),
@@ -2046,7 +2046,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2046
2046
  label: e.label,
2047
2047
  "show-label": e.showLabel,
2048
2048
  name: e.name || "sourceApps",
2049
- "filter-predicate": p,
2049
+ "filter-predicate": f,
2050
2050
  by: "name"
2051
2051
  }, {
2052
2052
  "nothing-selected": B(() => [
@@ -2057,7 +2057,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2057
2057
  ], 64))
2058
2058
  ]),
2059
2059
  "something-selected": B(({ value: m }) => [
2060
- t(d)(m) ? (l(), h("div", {
2060
+ t(i)(m) ? (l(), h("div", {
2061
2061
  key: 0,
2062
2062
  ref_key: "elementToWatchForChanges",
2063
2063
  ref: o,
@@ -2073,7 +2073,7 @@ const De = /* @__PURE__ */ me(ln, [["__scopeId", "data-v-60cf597b"]]), an = { cl
2073
2073
  "source-app": b
2074
2074
  }, null, 8, ["source-app"]))), 128))
2075
2075
  ], 512),
2076
- t(i) > 0 ? (l(), h("div", Cn, " +" + _(t(i)), 1)) : $("", !0)
2076
+ t(d) > 0 ? (l(), h("div", Cn, " +" + _(t(d)), 1)) : $("", !0)
2077
2077
  ], 512)) : (l(), h("div", wn, [
2078
2078
  u("div", {
2079
2079
  class: "h-2 w-2 rounded-full mr-2",
@@ -2116,8 +2116,8 @@ function gl(e, ...s) {
2116
2116
  s[0],
2117
2117
  (n) => {
2118
2118
  const o = n.getModifierState("Alt"), a = ie === re.Mac ? n.getModifierState("Meta") : n.getModifierState("Control"), r = n.getModifierState("Shift");
2119
- for (const i of e)
2120
- switch (i) {
2119
+ for (const d of e)
2120
+ switch (d) {
2121
2121
  case Q.CtrlOrCmd:
2122
2122
  if (!a)
2123
2123
  return;
@@ -2141,7 +2141,8 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2141
2141
  props: {
2142
2142
  open: { type: Boolean },
2143
2143
  maxWidth: null,
2144
- hideCloser: { type: Boolean }
2144
+ hideCloser: { type: Boolean },
2145
+ preventCloseOnClickOutside: { type: Boolean }
2145
2146
  },
2146
2147
  emits: ["update:open", "fully-closed"],
2147
2148
  setup(e, { emit: s }) {
@@ -2167,8 +2168,10 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2167
2168
  "sm:my-8 sm:w-full sm:max-w-xl sm:p-6"
2168
2169
  ];
2169
2170
  return a.value >= 1 && i.push("md:max-w-2xl"), a.value >= 2 && i.push("lg:max-w-4xl"), a.value >= 3 && i.push("xl:max-w-6xl"), a.value >= 4 && i.push("2xl:max-w-7xl"), i.join(" ");
2170
- });
2171
- return (i, d) => (l(), P(t(vt), {
2171
+ }), d = () => {
2172
+ n.preventCloseOnClickOutside || (o.value = !1);
2173
+ };
2174
+ return (i, y) => (l(), P(t(vt), {
2172
2175
  as: "template",
2173
2176
  show: t(o)
2174
2177
  }, {
@@ -2176,7 +2179,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2176
2179
  I(t(bt), {
2177
2180
  as: "div",
2178
2181
  class: "relative z-40",
2179
- onClose: d[2] || (d[2] = (y) => o.value = !1)
2182
+ onClose: d
2180
2183
  }, {
2181
2184
  default: B(() => [
2182
2185
  I(t($e), {
@@ -2203,7 +2206,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2203
2206
  leave: "ease-in duration-200",
2204
2207
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
2205
2208
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
2206
- onAfterLeave: d[1] || (d[1] = (y) => i.$emit("fully-closed"))
2209
+ onAfterLeave: y[1] || (y[1] = (f) => i.$emit("fully-closed"))
2207
2210
  }, {
2208
2211
  default: B(() => [
2209
2212
  I(t(xt), {
@@ -2220,7 +2223,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2220
2223
  e.hideCloser ? $("", !0) : (l(), h("button", {
2221
2224
  key: 0,
2222
2225
  class: "absolute top-0 right-0 text-foreground",
2223
- onClick: d[0] || (d[0] = (y) => o.value = !1)
2226
+ onClick: y[0] || (y[0] = (f) => o.value = !1)
2224
2227
  }, [
2225
2228
  I(t(et), { class: "h-6 w-6" })
2226
2229
  ]))
@@ -2280,7 +2283,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2280
2283
  });
2281
2284
  return (a, r) => (l(), h("div", null, [
2282
2285
  I(t(kt), null, {
2283
- default: B(({ open: i }) => [
2286
+ default: B(({ open: d }) => [
2284
2287
  I(t(Ct), {
2285
2288
  class: v(t(n))
2286
2289
  }, {
@@ -2293,7 +2296,7 @@ const Bn = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-neutral-100/70 da
2293
2296
  u("span", null, _(e.title), 1)
2294
2297
  ]),
2295
2298
  I(t(je), {
2296
- class: v([i ? "" : "rotate-180 transform", "h-5 w-5"])
2299
+ class: v([d ? "" : "rotate-180 transform", "h-5 w-5"])
2297
2300
  }, null, 8, ["class"])
2298
2301
  ]),
2299
2302
  _: 2
@@ -2326,15 +2329,15 @@ const bl = /* @__PURE__ */ O({
2326
2329
  setup(e, { emit: s }) {
2327
2330
  const n = e, o = c({
2328
2331
  get: () => n.modelValue || K.Grid,
2329
- set: (i) => s("update:modelValue", i)
2332
+ set: (d) => s("update:modelValue", d)
2330
2333
  }), a = c(
2331
2334
  () => o.value === K.Grid ? Xe : Ne
2332
- ), r = (i) => {
2333
- s("click", i);
2334
- const d = o.value === K.Grid ? K.List : K.Grid;
2335
- o.value = d;
2335
+ ), r = (d) => {
2336
+ s("click", d);
2337
+ const i = o.value === K.Grid ? K.List : K.Grid;
2338
+ o.value = i;
2336
2339
  };
2337
- return (i, d) => (l(), h("button", {
2340
+ return (d, i) => (l(), h("button", {
2338
2341
  class: "flex items-center justify-center rounded bg-foundation h-8 w-8 shadow cursor-pointer text-foreground",
2339
2342
  onClick: r
2340
2343
  }, [
@@ -2365,24 +2368,24 @@ function Dn(e) {
2365
2368
  X(n) ? 1 : n
2366
2369
  /* Right */
2367
2370
  ), a = c(() => {
2368
- const i = t(e.stopUpdatesBelowWidth);
2369
- if (!X(i))
2370
- return i;
2371
- const d = t(s);
2372
- return d != null && d.offsetWidth ? d.offsetWidth * 2 : void 0;
2371
+ const d = t(e.stopUpdatesBelowWidth);
2372
+ if (!X(d))
2373
+ return d;
2374
+ const i = t(s);
2375
+ return i != null && i.offsetWidth ? i.offsetWidth * 2 : void 0;
2373
2376
  }), r = () => {
2374
2377
  if (!he)
2375
2378
  return;
2376
- const i = t(s);
2377
- if (!i)
2379
+ const d = t(s);
2380
+ if (!d)
2378
2381
  return;
2379
- const d = i.getBoundingClientRect(), y = d.x + d.width > window.innerWidth, p = d.x < 0;
2380
- y && p || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : p && (o.value = 1));
2382
+ const i = d.getBoundingClientRect(), y = i.x + i.width > window.innerWidth, f = i.x < 0;
2383
+ y && f || !X(a.value) && window.innerWidth < a.value || (y ? o.value = 0 : f && (o.value = 1));
2381
2384
  };
2382
2385
  return An(() => r()), Y(
2383
2386
  () => t(s),
2384
- (i) => {
2385
- i && r();
2387
+ (d) => {
2388
+ d && r();
2386
2389
  }
2387
2390
  ), {
2388
2391
  direction: c(() => o.value),
@@ -2404,25 +2407,25 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2404
2407
  }),
2405
2408
  defaultDirection: ue.Left,
2406
2409
  stopUpdatesBelowWidth: 300
2407
- }), r = A(null), i = A(!1), d = c({
2410
+ }), r = A(null), d = A(!1), i = c({
2408
2411
  get: () => n.open || !1,
2409
2412
  set: (m) => s("update:open", m)
2410
2413
  }), y = (m) => {
2411
2414
  const { active: b, disabled: j } = m, x = ["group flex w-full items-center rounded-md px-2 py-2 text-sm"];
2412
2415
  return b ? x.push("bg-primary text-foreground-on-primary") : j ? x.push("text-foreground-disabled") : x.push("text-foreground"), x.join(" ");
2413
- }, p = (m, b) => {
2416
+ }, f = (m, b) => {
2414
2417
  s("chosen", { item: m, event: b });
2415
2418
  }, w = () => {
2416
2419
  var m;
2417
2420
  return (m = r.value) == null ? void 0 : m.el.click();
2418
2421
  }, g = (m) => {
2419
2422
  const b = !!m;
2420
- return i.value = b, b;
2423
+ return d.value = b, b;
2421
2424
  };
2422
- return Y(i, (m, b) => {
2423
- m !== b && (d.value = m);
2424
- }), Y(d, (m) => {
2425
- (m && !i.value || !m && i.value) && w();
2425
+ return Y(d, (m, b) => {
2426
+ m !== b && (i.value = m);
2427
+ }), Y(i, (m) => {
2428
+ (m && !d.value || !m && d.value) && w();
2426
2429
  }), (m, b) => (l(), P(t($t), {
2427
2430
  as: "div",
2428
2431
  class: "relative inline-block"
@@ -2474,7 +2477,7 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2474
2477
  default: B(({ active: C, disabled: q }) => [
2475
2478
  u("button", {
2476
2479
  class: v(y({ active: C, disabled: q })),
2477
- onClick: (f) => p(S, f)
2480
+ onClick: (p) => f(S, p)
2478
2481
  }, [
2479
2482
  R(m.$slots, "item", { item: S }, () => [
2480
2483
  T(_(S.title), 1)
@@ -2503,16 +2506,16 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2503
2506
  const s = e, n = A(null), o = c(() => n.value && s.items.find((r) => r.id === n.value) || s.items[0]), a = (r) => {
2504
2507
  n.value = r.id;
2505
2508
  };
2506
- return (r, i) => (l(), h("div", Tn, [
2509
+ return (r, d) => (l(), h("div", Tn, [
2507
2510
  u("div", Fn, [
2508
- (l(!0), h(U, null, H(e.items, (d) => (l(), P(ge, {
2509
- key: d.id,
2511
+ (l(!0), h(U, null, H(e.items, (i) => (l(), P(ge, {
2512
+ key: i.id,
2510
2513
  link: "",
2511
- color: t(o).id === d.id ? "default" : "secondary",
2512
- onClick: (y) => a(d)
2514
+ color: t(o).id === i.id ? "default" : "secondary",
2515
+ onClick: (y) => a(i)
2513
2516
  }, {
2514
2517
  default: B(() => [
2515
- T(_(d.title), 1)
2518
+ T(_(i.title), 1)
2516
2519
  ]),
2517
2520
  _: 2
2518
2521
  }, 1032, ["color", "onClick"]))), 128))
@@ -2619,35 +2622,35 @@ const Rn = ["onClick"], kl = /* @__PURE__ */ O({
2619
2622
  ), a = c(
2620
2623
  () => n.customPadding ? "" : "px-4 py-4 sm:p-6"
2621
2624
  ), r = c(() => {
2622
- const i = ["rounded-lg"];
2623
- return n.noShadow || i.push("shadow"), n.ring && i.push("ring-outline-2 hover:ring-2"), i.join(" ");
2625
+ const d = ["rounded-lg"];
2626
+ return n.noShadow || d.push("shadow"), n.ring && d.push("ring-outline-2 hover:ring-2"), d.join(" ");
2624
2627
  });
2625
- return (i, d) => (l(), h("div", Gn, [
2628
+ return (d, i) => (l(), h("div", Gn, [
2626
2629
  e.fancyGlow ? (l(), h("div", Kn)) : $("", !0),
2627
2630
  (l(), P(W(e.form ? "form" : "div"), {
2628
2631
  class: v([
2629
2632
  "relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
2630
2633
  t(r)
2631
2634
  ]),
2632
- onSubmit: d[0] || (d[0] = (y) => s("submit", y))
2635
+ onSubmit: i[0] || (i[0] = (y) => s("submit", y))
2633
2636
  }, {
2634
2637
  default: B(() => [
2635
- i.$slots.header ? (l(), h("div", {
2638
+ d.$slots.header ? (l(), h("div", {
2636
2639
  key: 0,
2637
2640
  class: v(t(o))
2638
2641
  }, [
2639
- R(i.$slots, "header")
2642
+ R(d.$slots, "header")
2640
2643
  ], 2)) : $("", !0),
2641
2644
  u("div", {
2642
2645
  class: v(["grow", t(a)])
2643
2646
  }, [
2644
- R(i.$slots, "default")
2647
+ R(d.$slots, "default")
2645
2648
  ], 2),
2646
- i.$slots.footer ? (l(), h("div", {
2649
+ d.$slots.footer ? (l(), h("div", {
2647
2650
  key: 1,
2648
2651
  class: v(t(o))
2649
2652
  }, [
2650
- R(i.$slots, "footer")
2653
+ R(d.$slots, "footer")
2651
2654
  ], 2)) : $("", !0)
2652
2655
  ]),
2653
2656
  _: 3