@codeandfunction/callaloo 3.23.0 → 4.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 (37) hide show
  1. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js → CLButton.vue_vue_type_style_index_0_lang-B-XC2_j4.js} +46 -44
  2. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-C8dDRXYZ.js → CLCard.vue_vue_type_style_index_0_lang-DZ-2FEcq.js} +1 -1
  3. package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js → CLIcon.vue_vue_type_style_index_0_lang-CMjcMLcy.js} +1 -1
  4. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BDgJvHNE.js → CLLink.vue_vue_type_style_index_0_lang-sXIdl0uH.js} +1 -1
  5. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-CMUfxGA3.js → CLNavLink.vue_vue_type_script_setup_true_lang-FMOMJjMR.js} +1 -1
  6. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-BPOoZ5_q.js → CLPill.vue_vue_type_style_index_0_lang-BbXWiTde.js} +27 -24
  7. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-BH6Tnr-h.js → CLToast.vue_vue_type_style_index_0_lang-BL61sRYd.js} +61 -59
  8. package/dist/chunks/helper-oZuRnF9g.js +81 -0
  9. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  10. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +4 -4
  11. package/dist/components/CLIcon/CLIcon.js +1 -1
  12. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  13. package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
  14. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +14 -15
  15. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +3 -5
  16. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  17. package/dist/components/Form/CLInput/CLInput.js +3 -3
  18. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  19. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  20. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  21. package/dist/components/Indicators/CLPill/CLPill.vue.d.ts +3 -0
  22. package/dist/components/Modals/CLModal/CLModal.js +2 -2
  23. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  24. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  25. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  26. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +149 -151
  27. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +5 -8
  28. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  29. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -0
  30. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
  31. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  32. package/dist/composables/useDropdown.js +1 -1
  33. package/dist/composables/useEsc.js +1 -1
  34. package/dist/types.d.ts +2 -0
  35. package/dist/utils/helper.d.ts +4 -1
  36. package/package.json +1 -1
  37. package/dist/chunks/helper-BYpahJAh.js +0 -63
@@ -1,12 +1,12 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDropdownMenu.css';
3
- import { computed as V, ref as E, shallowRef as te, watch as ut, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as q, unref as A, defineComponent as oe, onBeforeUnmount as ie, createElementBlock as Rt, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as re, withCtx as Et, createTextVNode as le, toDisplayString as se, normalizeStyle as ce, renderSlot as ae } from "vue";
4
- import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
5
- import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-C8dDRXYZ.js";
6
- import { c as de, i as mt } from "../../../chunks/helper-BYpahJAh.js";
7
- import { useDropdown as me } from "../../../composables/useDropdown.js";
8
- import { useEsc as he } from "../../../composables/useEsc.js";
9
- import { CLPlacement as ge, CLIconSizes as Lt, CLIconNames as pe, CLColorVariants as Dt, CLSizes as we, CLColors as Tt } from "../../../index.js";
3
+ import { computed as V, ref as E, shallowRef as Qt, watch as ut, getCurrentScope as te, onScopeDispose as ee, shallowReadonly as _, unref as A, defineComponent as ne, onBeforeUnmount as oe, createElementBlock as St, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as ie, withCtx as Et, createTextVNode as re, toDisplayString as le, normalizeStyle as se, renderSlot as ce } from "vue";
4
+ import { _ as ae } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B-XC2_j4.js";
5
+ import { _ as fe } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-DZ-2FEcq.js";
6
+ import { c as ue, i as mt } from "../../../chunks/helper-oZuRnF9g.js";
7
+ import { useDropdown as de } from "../../../composables/useDropdown.js";
8
+ import { useEsc as me } from "../../../composables/useEsc.js";
9
+ import { CLPlacement as he, CLIconSizes as ge, CLIconNames as pe, CLColorVariants as Lt, CLSizes as we, CLColors as Dt } from "../../../index.js";
10
10
  const tt = Math.min, W = Math.max, et = Math.round, Q = Math.floor, B = (t) => ({
11
11
  x: t,
12
12
  y: t
@@ -19,7 +19,7 @@ const tt = Math.min, W = Math.max, et = Math.round, Q = Math.floor, B = (t) => (
19
19
  start: "end",
20
20
  end: "start"
21
21
  };
22
- function Bt(t, e, n) {
22
+ function Tt(t, e, n) {
23
23
  return W(t, tt(e, n));
24
24
  }
25
25
  function it(t, e) {
@@ -31,22 +31,22 @@ function N(t) {
31
31
  function rt(t) {
32
32
  return t.split("-")[1];
33
33
  }
34
- function Wt(t) {
34
+ function It(t) {
35
35
  return t === "x" ? "y" : "x";
36
36
  }
37
- function Nt(t) {
37
+ function Wt(t) {
38
38
  return t === "y" ? "height" : "width";
39
39
  }
40
40
  const xe = /* @__PURE__ */ new Set(["top", "bottom"]);
41
- function z(t) {
41
+ function F(t) {
42
42
  return xe.has(N(t)) ? "y" : "x";
43
43
  }
44
- function Xt(t) {
45
- return Wt(z(t));
44
+ function Nt(t) {
45
+ return It(F(t));
46
46
  }
47
47
  function be(t, e, n) {
48
48
  n === void 0 && (n = !1);
49
- const o = rt(t), i = Xt(t), l = Nt(i);
49
+ const o = rt(t), i = Nt(t), l = Wt(i);
50
50
  let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
51
51
  return e.reference[l] > e.floating[l] && (r = nt(r)), [r, nt(r)];
52
52
  }
@@ -57,15 +57,15 @@ function Ce(t) {
57
57
  function gt(t) {
58
58
  return t.replace(/start|end/g, (e) => ve[e]);
59
59
  }
60
- const Pt = ["left", "right"], kt = ["right", "left"], Se = ["top", "bottom"], Re = ["bottom", "top"];
60
+ const Bt = ["left", "right"], Pt = ["right", "left"], Re = ["top", "bottom"], Se = ["bottom", "top"];
61
61
  function Ae(t, e, n) {
62
62
  switch (t) {
63
63
  case "top":
64
64
  case "bottom":
65
- return n ? e ? kt : Pt : e ? Pt : kt;
65
+ return n ? e ? Pt : Bt : e ? Bt : Pt;
66
66
  case "left":
67
67
  case "right":
68
- return e ? Se : Re;
68
+ return e ? Re : Se;
69
69
  default:
70
70
  return [];
71
71
  }
@@ -113,12 +113,12 @@ function ot(t) {
113
113
  y: n
114
114
  };
115
115
  }
116
- function Vt(t, e, n) {
116
+ function kt(t, e, n) {
117
117
  let {
118
118
  reference: o,
119
119
  floating: i
120
120
  } = t;
121
- const l = z(e), r = Xt(e), s = Nt(r), c = N(e), a = l === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[s] / 2 - i[s] / 2;
121
+ const l = F(e), r = Nt(e), s = Wt(r), c = N(e), a = l === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[s] / 2 - i[s] / 2;
122
122
  let d;
123
123
  switch (c) {
124
124
  case "top":
@@ -175,7 +175,7 @@ const De = async (t, e, n) => {
175
175
  }), {
176
176
  x: f,
177
177
  y: u
178
- } = Vt(a, o, c), m = o, d = {}, h = 0;
178
+ } = kt(a, o, c), m = o, d = {}, h = 0;
179
179
  for (let y = 0; y < s.length; y++) {
180
180
  const {
181
181
  name: v,
@@ -212,7 +212,7 @@ const De = async (t, e, n) => {
212
212
  }) : b.rects), {
213
213
  x: f,
214
214
  y: u
215
- } = Vt(a, m, c)), y = -1);
215
+ } = kt(a, m, c)), y = -1);
216
216
  }
217
217
  return {
218
218
  x: f,
@@ -222,7 +222,7 @@ const De = async (t, e, n) => {
222
222
  middlewareData: d
223
223
  };
224
224
  };
225
- async function jt(t, e) {
225
+ async function Xt(t, e) {
226
226
  var n;
227
227
  e === void 0 && (e = {});
228
228
  const {
@@ -291,23 +291,23 @@ const Te = function(t) {
291
291
  } = it(t, e);
292
292
  if ((n = l.arrow) != null && n.alignmentOffset)
293
293
  return {};
294
- const g = N(i), p = z(s), x = N(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = m || (x || !y ? [nt(s)] : Ce(s)), T = h !== "none";
294
+ const g = N(i), p = F(s), x = N(s) === s, C = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), b = m || (x || !y ? [nt(s)] : Ce(s)), T = h !== "none";
295
295
  !m && T && b.push(...Oe(s, y, h, C));
296
- const w = [s, ...b], S = await jt(e, v), M = [];
296
+ const w = [s, ...b], R = await Xt(e, v), z = [];
297
297
  let Y = ((o = l.flip) == null ? void 0 : o.overflows) || [];
298
- if (f && M.push(S[g]), u) {
298
+ if (f && z.push(R[g]), u) {
299
299
  const H = be(i, r, C);
300
- M.push(S[H[0]], S[H[1]]);
300
+ z.push(R[H[0]], R[H[1]]);
301
301
  }
302
302
  if (Y = [...Y, {
303
303
  placement: i,
304
- overflows: M
305
- }], !M.every((H) => H <= 0)) {
304
+ overflows: z
305
+ }], !z.every((H) => H <= 0)) {
306
306
  var bt, Ct;
307
307
  const H = (((bt = l.flip) == null ? void 0 : bt.index) || 0) + 1, ft = w[H];
308
- if (ft && (!(u === "alignment" ? p !== z(ft) : !1) || // We leave the current main axis only if every placement on that axis
308
+ if (ft && (!(u === "alignment" ? p !== F(ft) : !1) || // We leave the current main axis only if every placement on that axis
309
309
  // overflows the main axis.
310
- Y.every((O) => z(O.placement) === p ? O.overflows[0] > 0 : !0)))
310
+ Y.every((O) => F(O.placement) === p ? O.overflows[0] > 0 : !0)))
311
311
  return {
312
312
  data: {
313
313
  index: H,
@@ -321,16 +321,16 @@ const Te = function(t) {
321
321
  if (!G)
322
322
  switch (d) {
323
323
  case "bestFit": {
324
- var St;
325
- const I = (St = Y.filter((O) => {
324
+ var Rt;
325
+ const I = (Rt = Y.filter((O) => {
326
326
  if (T) {
327
- const $ = z(O.placement);
327
+ const $ = F(O.placement);
328
328
  return $ === p || // Create a bias to the `y` side axis due to horizontal
329
329
  // reading directions favoring greater width.
330
330
  $ === "y";
331
331
  }
332
332
  return !0;
333
- }).map((O) => [O.placement, O.overflows.filter(($) => $ > 0).reduce(($, Qt) => $ + Qt, 0)]).sort((O, $) => O[1] - $[1])[0]) == null ? void 0 : St[0];
333
+ }).map((O) => [O.placement, O.overflows.filter(($) => $ > 0).reduce(($, Jt) => $ + Jt, 0)]).sort((O, $) => O[1] - $[1])[0]) == null ? void 0 : Rt[0];
334
334
  I && (G = I);
335
335
  break;
336
336
  }
@@ -354,7 +354,7 @@ async function Pe(t, e) {
354
354
  placement: n,
355
355
  platform: o,
356
356
  elements: i
357
- } = t, l = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = N(n), s = rt(n), c = z(n) === "y", a = Be.has(r) ? -1 : 1, f = l && c ? -1 : 1, u = it(e, t);
357
+ } = t, l = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = N(n), s = rt(n), c = F(n) === "y", a = Be.has(r) ? -1 : 1, f = l && c ? -1 : 1, u = it(e, t);
358
358
  let {
359
359
  mainAxis: m,
360
360
  crossAxis: d,
@@ -426,15 +426,15 @@ const ke = function(t) {
426
426
  } = it(t, e), a = {
427
427
  x: n,
428
428
  y: o
429
- }, f = await jt(e, c), u = z(N(i)), m = Wt(u);
429
+ }, f = await Xt(e, c), u = F(N(i)), m = It(u);
430
430
  let d = a[m], h = a[u];
431
431
  if (l) {
432
432
  const v = m === "y" ? "top" : "left", g = m === "y" ? "bottom" : "right", p = d + f[v], x = d - f[g];
433
- d = Bt(p, d, x);
433
+ d = Tt(p, d, x);
434
434
  }
435
435
  if (r) {
436
436
  const v = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", p = h + f[v], x = h - f[g];
437
- h = Bt(p, h, x);
437
+ h = Tt(p, h, x);
438
438
  }
439
439
  const y = s.fn({
440
440
  ...e,
@@ -461,7 +461,7 @@ function lt() {
461
461
  function j(t) {
462
462
  return wt(t) ? (t.nodeName || "").toLowerCase() : "#document";
463
463
  }
464
- function R(t) {
464
+ function S(t) {
465
465
  var e;
466
466
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
467
467
  }
@@ -470,16 +470,16 @@ function k(t) {
470
470
  return (e = (wt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
471
471
  }
472
472
  function wt(t) {
473
- return lt() ? t instanceof Node || t instanceof R(t).Node : !1;
473
+ return lt() ? t instanceof Node || t instanceof S(t).Node : !1;
474
474
  }
475
475
  function L(t) {
476
- return lt() ? t instanceof Element || t instanceof R(t).Element : !1;
476
+ return lt() ? t instanceof Element || t instanceof S(t).Element : !1;
477
477
  }
478
478
  function P(t) {
479
- return lt() ? t instanceof HTMLElement || t instanceof R(t).HTMLElement : !1;
479
+ return lt() ? t instanceof HTMLElement || t instanceof S(t).HTMLElement : !1;
480
480
  }
481
- function $t(t) {
482
- return !lt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof R(t).ShadowRoot;
481
+ function Vt(t) {
482
+ return !lt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof S(t).ShadowRoot;
483
483
  }
484
484
  const $e = /* @__PURE__ */ new Set(["inline", "contents"]);
485
485
  function J(t) {
@@ -491,13 +491,13 @@ function J(t) {
491
491
  } = D(t);
492
492
  return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !$e.has(i);
493
493
  }
494
- const ze = /* @__PURE__ */ new Set(["table", "td", "th"]);
495
- function Fe(t) {
496
- return ze.has(j(t));
494
+ const Fe = /* @__PURE__ */ new Set(["table", "td", "th"]);
495
+ function Me(t) {
496
+ return Fe.has(j(t));
497
497
  }
498
- const Me = [":popover-open", ":modal"];
498
+ const ze = [":popover-open", ":modal"];
499
499
  function st(t) {
500
- return Me.some((e) => {
500
+ return ze.some((e) => {
501
501
  try {
502
502
  return t.matches(e);
503
503
  } catch {
@@ -511,13 +511,13 @@ function yt(t) {
511
511
  return He.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ie.some((o) => (n.willChange || "").includes(o)) || We.some((o) => (n.contain || "").includes(o));
512
512
  }
513
513
  function Ne(t) {
514
- let e = F(t);
515
- for (; P(e) && !_(e); ) {
514
+ let e = M(t);
515
+ for (; P(e) && !U(e); ) {
516
516
  if (yt(e))
517
517
  return e;
518
518
  if (st(e))
519
519
  return null;
520
- e = F(e);
520
+ e = M(e);
521
521
  }
522
522
  return null;
523
523
  }
@@ -525,11 +525,11 @@ function vt() {
525
525
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
526
526
  }
527
527
  const Xe = /* @__PURE__ */ new Set(["html", "body", "#document"]);
528
- function _(t) {
528
+ function U(t) {
529
529
  return Xe.has(j(t));
530
530
  }
531
531
  function D(t) {
532
- return R(t).getComputedStyle(t);
532
+ return S(t).getComputedStyle(t);
533
533
  }
534
534
  function ct(t) {
535
535
  return L(t) ? {
@@ -540,26 +540,26 @@ function ct(t) {
540
540
  scrollTop: t.scrollY
541
541
  };
542
542
  }
543
- function F(t) {
543
+ function M(t) {
544
544
  if (j(t) === "html")
545
545
  return t;
546
546
  const e = (
547
547
  // Step into the shadow DOM of the parent of a slotted node.
548
548
  t.assignedSlot || // DOM Element detected.
549
549
  t.parentNode || // ShadowRoot detected.
550
- $t(t) && t.host || // Fallback.
550
+ Vt(t) && t.host || // Fallback.
551
551
  k(t)
552
552
  );
553
- return $t(e) ? e.host : e;
553
+ return Vt(e) ? e.host : e;
554
554
  }
555
- function Yt(t) {
556
- const e = F(t);
557
- return _(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && J(e) ? e : Yt(e);
555
+ function jt(t) {
556
+ const e = M(t);
557
+ return U(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : P(e) && J(e) ? e : jt(e);
558
558
  }
559
559
  function Z(t, e, n) {
560
560
  var o;
561
561
  e === void 0 && (e = []), n === void 0 && (n = !0);
562
- const i = Yt(t), l = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = R(i);
562
+ const i = jt(t), l = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = S(i);
563
563
  if (l) {
564
564
  const s = pt(r);
565
565
  return e.concat(r, r.visualViewport || [], J(i) ? i : [], s && n ? Z(s) : []);
@@ -569,7 +569,7 @@ function Z(t, e, n) {
569
569
  function pt(t) {
570
570
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
571
571
  }
572
- function qt(t) {
572
+ function Yt(t) {
573
573
  const e = D(t);
574
574
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
575
575
  const i = P(t), l = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, s = et(n) !== l || et(o) !== r;
@@ -582,7 +582,7 @@ function qt(t) {
582
582
  function xt(t) {
583
583
  return L(t) ? t : t.contextElement;
584
584
  }
585
- function U(t) {
585
+ function q(t) {
586
586
  const e = xt(t);
587
587
  if (!P(e))
588
588
  return B(1);
@@ -590,7 +590,7 @@ function U(t) {
590
590
  width: o,
591
591
  height: i,
592
592
  $: l
593
- } = qt(e);
593
+ } = Yt(e);
594
594
  let r = (l ? et(n.width) : n.width) / o, s = (l ? et(n.height) : n.height) / i;
595
595
  return (!r || !Number.isFinite(r)) && (r = 1), (!s || !Number.isFinite(s)) && (s = 1), {
596
596
  x: r,
@@ -598,29 +598,29 @@ function U(t) {
598
598
  };
599
599
  }
600
600
  const je = /* @__PURE__ */ B(0);
601
- function Ut(t) {
602
- const e = R(t);
601
+ function _t(t) {
602
+ const e = S(t);
603
603
  return !vt() || !e.visualViewport ? je : {
604
604
  x: e.visualViewport.offsetLeft,
605
605
  y: e.visualViewport.offsetTop
606
606
  };
607
607
  }
608
608
  function Ye(t, e, n) {
609
- return e === void 0 && (e = !1), !n || e && n !== R(t) ? !1 : e;
609
+ return e === void 0 && (e = !1), !n || e && n !== S(t) ? !1 : e;
610
610
  }
611
611
  function X(t, e, n, o) {
612
612
  e === void 0 && (e = !1), n === void 0 && (n = !1);
613
613
  const i = t.getBoundingClientRect(), l = xt(t);
614
614
  let r = B(1);
615
- e && (o ? L(o) && (r = U(o)) : r = U(t));
616
- const s = Ye(l, n, o) ? Ut(l) : B(0);
615
+ e && (o ? L(o) && (r = q(o)) : r = q(t));
616
+ const s = Ye(l, n, o) ? _t(l) : B(0);
617
617
  let c = (i.left + s.x) / r.x, a = (i.top + s.y) / r.y, f = i.width / r.x, u = i.height / r.y;
618
618
  if (l) {
619
- const m = R(l), d = o && L(o) ? R(o) : o;
619
+ const m = S(l), d = o && L(o) ? S(o) : o;
620
620
  let h = m, y = pt(h);
621
621
  for (; y && o && d !== h; ) {
622
- const v = U(y), g = y.getBoundingClientRect(), p = D(y), x = g.left + (y.clientLeft + parseFloat(p.paddingLeft)) * v.x, C = g.top + (y.clientTop + parseFloat(p.paddingTop)) * v.y;
623
- c *= v.x, a *= v.y, f *= v.x, u *= v.y, c += x, a += C, h = R(y), y = pt(h);
622
+ const v = q(y), g = y.getBoundingClientRect(), p = D(y), x = g.left + (y.clientLeft + parseFloat(p.paddingLeft)) * v.x, C = g.top + (y.clientTop + parseFloat(p.paddingTop)) * v.y;
623
+ c *= v.x, a *= v.y, f *= v.x, u *= v.y, c += x, a += C, h = S(y), y = pt(h);
624
624
  }
625
625
  }
626
626
  return ot({
@@ -634,14 +634,14 @@ function at(t, e) {
634
634
  const n = ct(t).scrollLeft;
635
635
  return e ? e.left + n : X(k(t)).left + n;
636
636
  }
637
- function _t(t, e) {
637
+ function qt(t, e) {
638
638
  const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - at(t, n), i = n.top + e.scrollTop;
639
639
  return {
640
640
  x: o,
641
641
  y: i
642
642
  };
643
643
  }
644
- function qe(t) {
644
+ function _e(t) {
645
645
  let {
646
646
  elements: e,
647
647
  rect: n,
@@ -658,9 +658,9 @@ function qe(t) {
658
658
  const f = B(0), u = P(o);
659
659
  if ((u || !u && !l) && ((j(o) !== "body" || J(r)) && (c = ct(o)), P(o))) {
660
660
  const d = X(o);
661
- a = U(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
661
+ a = q(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
662
662
  }
663
- const m = r && !u && !l ? _t(r, c) : B(0);
663
+ const m = r && !u && !l ? qt(r, c) : B(0);
664
664
  return {
665
665
  width: n.width * a.x,
666
666
  height: n.height * a.y,
@@ -668,10 +668,10 @@ function qe(t) {
668
668
  y: n.y * a.y - c.scrollTop * a.y + f.y + m.y
669
669
  };
670
670
  }
671
- function Ue(t) {
671
+ function qe(t) {
672
672
  return Array.from(t.getClientRects());
673
673
  }
674
- function _e(t) {
674
+ function Ue(t) {
675
675
  const e = k(t), n = ct(t), o = t.ownerDocument.body, i = W(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), l = W(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
676
676
  let r = -n.scrollLeft + at(t);
677
677
  const s = -n.scrollTop;
@@ -682,9 +682,9 @@ function _e(t) {
682
682
  y: s
683
683
  };
684
684
  }
685
- const zt = 25;
685
+ const $t = 25;
686
686
  function Ge(t, e) {
687
- const n = R(t), o = k(t), i = n.visualViewport;
687
+ const n = S(t), o = k(t), i = n.visualViewport;
688
688
  let l = o.clientWidth, r = o.clientHeight, s = 0, c = 0;
689
689
  if (i) {
690
690
  l = i.width, r = i.height;
@@ -694,8 +694,8 @@ function Ge(t, e) {
694
694
  const a = at(o);
695
695
  if (a <= 0) {
696
696
  const f = o.ownerDocument, u = f.body, m = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - u.clientWidth - d);
697
- h <= zt && (l -= h);
698
- } else a <= zt && (l += a);
697
+ h <= $t && (l -= h);
698
+ } else a <= $t && (l += a);
699
699
  return {
700
700
  width: l,
701
701
  height: r,
@@ -705,7 +705,7 @@ function Ge(t, e) {
705
705
  }
706
706
  const Ke = /* @__PURE__ */ new Set(["absolute", "fixed"]);
707
707
  function Ze(t, e) {
708
- const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, l = P(t) ? U(t) : B(1), r = t.clientWidth * l.x, s = t.clientHeight * l.y, c = i * l.x, a = o * l.y;
708
+ const n = X(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, l = P(t) ? q(t) : B(1), r = t.clientWidth * l.x, s = t.clientHeight * l.y, c = i * l.x, a = o * l.y;
709
709
  return {
710
710
  width: r,
711
711
  height: s,
@@ -718,11 +718,11 @@ function Ft(t, e, n) {
718
718
  if (e === "viewport")
719
719
  o = Ge(t, n);
720
720
  else if (e === "document")
721
- o = _e(k(t));
721
+ o = Ue(k(t));
722
722
  else if (L(e))
723
723
  o = Ze(e, n);
724
724
  else {
725
- const i = Ut(t);
725
+ const i = _t(t);
726
726
  o = {
727
727
  x: e.x - i.x,
728
728
  y: e.y - i.y,
@@ -732,9 +732,9 @@ function Ft(t, e, n) {
732
732
  }
733
733
  return ot(o);
734
734
  }
735
- function Gt(t, e) {
736
- const n = F(t);
737
- return n === e || !L(n) || _(n) ? !1 : D(n).position === "fixed" || Gt(n, e);
735
+ function Ut(t, e) {
736
+ const n = M(t);
737
+ return n === e || !L(n) || U(n) ? !1 : D(n).position === "fixed" || Ut(n, e);
738
738
  }
739
739
  function Je(t, e) {
740
740
  const n = e.get(t);
@@ -742,10 +742,10 @@ function Je(t, e) {
742
742
  return n;
743
743
  let o = Z(t, [], !1).filter((s) => L(s) && j(s) !== "body"), i = null;
744
744
  const l = D(t).position === "fixed";
745
- let r = l ? F(t) : t;
746
- for (; L(r) && !_(r); ) {
745
+ let r = l ? M(t) : t;
746
+ for (; L(r) && !U(r); ) {
747
747
  const s = D(r), c = yt(r);
748
- !c && s.position === "fixed" && (i = null), (l ? !c && !i : !c && s.position === "static" && !!i && Ke.has(i.position) || J(r) && !c && Gt(t, r)) ? o = o.filter((f) => f !== r) : i = s, r = F(r);
748
+ !c && s.position === "fixed" && (i = null), (l ? !c && !i : !c && s.position === "static" && !!i && Ke.has(i.position) || J(r) && !c && Ut(t, r)) ? o = o.filter((f) => f !== r) : i = s, r = M(r);
749
749
  }
750
750
  return e.set(t, o), o;
751
751
  }
@@ -771,7 +771,7 @@ function tn(t) {
771
771
  const {
772
772
  width: e,
773
773
  height: n
774
- } = qt(t);
774
+ } = Yt(t);
775
775
  return {
776
776
  width: e,
777
777
  height: n
@@ -793,7 +793,7 @@ function en(t, e, n) {
793
793
  c.x = d.x + e.clientLeft, c.y = d.y + e.clientTop;
794
794
  } else i && a();
795
795
  l && !o && i && a();
796
- const f = i && !o && !l ? _t(i, s) : B(0), u = r.left + s.scrollLeft - c.x - f.x, m = r.top + s.scrollTop - c.y - f.y;
796
+ const f = i && !o && !l ? qt(i, s) : B(0), u = r.left + s.scrollLeft - c.x - f.x, m = r.top + s.scrollTop - c.y - f.y;
797
797
  return {
798
798
  x: u,
799
799
  y: m,
@@ -812,26 +812,26 @@ function Mt(t, e) {
812
812
  let n = t.offsetParent;
813
813
  return k(t) === n && (n = n.ownerDocument.body), n;
814
814
  }
815
- function Kt(t, e) {
816
- const n = R(t);
815
+ function Gt(t, e) {
816
+ const n = S(t);
817
817
  if (st(t))
818
818
  return n;
819
819
  if (!P(t)) {
820
- let i = F(t);
821
- for (; i && !_(i); ) {
820
+ let i = M(t);
821
+ for (; i && !U(i); ) {
822
822
  if (L(i) && !ht(i))
823
823
  return i;
824
- i = F(i);
824
+ i = M(i);
825
825
  }
826
826
  return n;
827
827
  }
828
828
  let o = Mt(t, e);
829
- for (; o && Fe(o) && ht(o); )
829
+ for (; o && Me(o) && ht(o); )
830
830
  o = Mt(o, e);
831
- return o && _(o) && ht(o) && !yt(o) ? n : o || Ne(t) || n;
831
+ return o && U(o) && ht(o) && !yt(o) ? n : o || Ne(t) || n;
832
832
  }
833
833
  const nn = async function(t) {
834
- const e = this.getOffsetParent || Kt, n = this.getDimensions, o = await n(t.floating);
834
+ const e = this.getOffsetParent || Gt, n = this.getDimensions, o = await n(t.floating);
835
835
  return {
836
836
  reference: en(t.reference, await e(t.floating), t.strategy),
837
837
  floating: {
@@ -846,18 +846,18 @@ function on(t) {
846
846
  return D(t).direction === "rtl";
847
847
  }
848
848
  const rn = {
849
- convertOffsetParentRelativeRectToViewportRelativeRect: qe,
849
+ convertOffsetParentRelativeRectToViewportRelativeRect: _e,
850
850
  getDocumentElement: k,
851
851
  getClippingRect: Qe,
852
- getOffsetParent: Kt,
852
+ getOffsetParent: Gt,
853
853
  getElementRects: nn,
854
- getClientRects: Ue,
854
+ getClientRects: qe,
855
855
  getDimensions: tn,
856
- getScale: U,
856
+ getScale: q,
857
857
  isElement: L,
858
858
  isRTL: on
859
859
  };
860
- function Zt(t, e) {
860
+ function Kt(t, e) {
861
861
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
862
862
  }
863
863
  function ln(t, e) {
@@ -891,7 +891,7 @@ function ln(t, e) {
891
891
  r(!1, 1e-7);
892
892
  }, 1e3);
893
893
  }
894
- w === 1 && !Zt(a, t.getBoundingClientRect()) && r(), C = !1;
894
+ w === 1 && !Kt(a, t.getBoundingClientRect()) && r(), C = !1;
895
895
  }
896
896
  try {
897
897
  n = new IntersectionObserver(b, {
@@ -933,7 +933,7 @@ function sn(t, e, n, o) {
933
933
  c && v();
934
934
  function v() {
935
935
  const g = X(t);
936
- y && !Zt(y, g) && n(), y = g, h = requestAnimationFrame(v);
936
+ y && !Kt(y, g) && n(), y = g, h = requestAnimationFrame(v);
937
937
  }
938
938
  return n(), () => {
939
939
  var g;
@@ -958,7 +958,7 @@ const cn = ke, an = Ve, fn = Te, un = (t, e, n) => {
958
958
  function dn(t) {
959
959
  return t != null && typeof t == "object" && "$el" in t;
960
960
  }
961
- function Ht(t) {
961
+ function zt(t) {
962
962
  if (dn(t)) {
963
963
  const e = t.$el;
964
964
  return wt(e) && j(e) === "#comment" ? null : e;
@@ -968,11 +968,11 @@ function Ht(t) {
968
968
  function K(t) {
969
969
  return typeof t == "function" ? t() : A(t);
970
970
  }
971
- function Jt(t) {
971
+ function Zt(t) {
972
972
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
973
973
  }
974
- function It(t, e) {
975
- const n = Jt(t);
974
+ function Ht(t, e) {
975
+ const n = Zt(t);
976
976
  return Math.round(e * n) / n;
977
977
  }
978
978
  function mn(t, e, n) {
@@ -989,7 +989,7 @@ function mn(t, e, n) {
989
989
  }), c = V(() => {
990
990
  var w;
991
991
  return (w = K(n.transform)) != null ? w : !0;
992
- }), a = V(() => Ht(t.value)), f = V(() => Ht(e.value)), u = E(0), m = E(0), d = E(s.value), h = E(r.value), y = te({}), v = E(!1), g = V(() => {
992
+ }), a = V(() => zt(t.value)), f = V(() => zt(e.value)), u = E(0), m = E(0), d = E(s.value), h = E(r.value), y = Qt({}), v = E(!1), g = V(() => {
993
993
  const w = {
994
994
  position: d.value,
995
995
  left: "0",
@@ -997,17 +997,17 @@ function mn(t, e, n) {
997
997
  };
998
998
  if (!f.value)
999
999
  return w;
1000
- const S = It(f.value, u.value), M = It(f.value, m.value);
1000
+ const R = Ht(f.value, u.value), z = Ht(f.value, m.value);
1001
1001
  return c.value ? {
1002
1002
  ...w,
1003
- transform: "translate(" + S + "px, " + M + "px)",
1004
- ...Jt(f.value) >= 1.5 && {
1003
+ transform: "translate(" + R + "px, " + z + "px)",
1004
+ ...Zt(f.value) >= 1.5 && {
1005
1005
  willChange: "transform"
1006
1006
  }
1007
1007
  } : {
1008
1008
  position: d.value,
1009
- left: S + "px",
1010
- top: M + "px"
1009
+ left: R + "px",
1010
+ top: z + "px"
1011
1011
  };
1012
1012
  });
1013
1013
  let p;
@@ -1019,8 +1019,8 @@ function mn(t, e, n) {
1019
1019
  middleware: l.value,
1020
1020
  placement: r.value,
1021
1021
  strategy: s.value
1022
- }).then((S) => {
1023
- u.value = S.x, m.value = S.y, d.value = S.strategy, h.value = S.placement, y.value = S.middlewareData, v.value = w !== !1;
1022
+ }).then((R) => {
1023
+ u.value = R.x, m.value = R.y, d.value = R.strategy, h.value = R.placement, y.value = R.middlewareData, v.value = w !== !1;
1024
1024
  });
1025
1025
  }
1026
1026
  function C() {
@@ -1045,27 +1045,27 @@ function mn(t, e, n) {
1045
1045
  flush: "sync"
1046
1046
  }), ut(i, T, {
1047
1047
  flush: "sync"
1048
- }), ee() && ne(C), {
1049
- x: q(u),
1050
- y: q(m),
1051
- strategy: q(d),
1052
- placement: q(h),
1053
- middlewareData: q(y),
1054
- isPositioned: q(v),
1048
+ }), te() && ee(C), {
1049
+ x: _(u),
1050
+ y: _(m),
1051
+ strategy: _(d),
1052
+ placement: _(h),
1053
+ middlewareData: _(y),
1054
+ isPositioned: _(v),
1055
1055
  floatingStyles: g,
1056
1056
  update: x
1057
1057
  };
1058
1058
  }
1059
- const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn = /* @__PURE__ */ oe({
1059
+ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Rn = /* @__PURE__ */ ne({
1060
1060
  name: "CLDropdownMenu",
1061
1061
  __name: "CLDropdownMenu",
1062
1062
  props: {
1063
1063
  buttonAriaLabel: {},
1064
1064
  buttonBorderRadius: {},
1065
- buttonColor: { default: Tt.Secondary },
1065
+ buttonColor: { default: Dt.Secondary },
1066
1066
  buttonHeight: { default: "auto" },
1067
1067
  buttonSize: { default: we.Small },
1068
- buttonVariant: { default: Dt.Soft },
1068
+ buttonVariant: { default: Lt.Soft },
1069
1069
  buttonWidth: { default: "auto" },
1070
1070
  buttonWrapped: { type: Boolean },
1071
1071
  containerBordered: { type: Boolean, default: !0 },
@@ -1074,21 +1074,20 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn =
1074
1074
  contentWidth: { default: "auto" },
1075
1075
  dropdownId: {},
1076
1076
  iconAfter: { default: pe.ChevronDown },
1077
- iconAfterSize: { default: Lt.Tiny },
1078
1077
  iconBefore: {},
1079
- iconSize: { default: Lt.Tiny },
1078
+ iconSize: { default: ge.Tiny },
1080
1079
  isOpen: { type: Boolean, default: !1 },
1081
1080
  label: {},
1082
1081
  onCloseHandler: {},
1083
1082
  onOpenHandler: {},
1084
- placement: { default: ge.BottomStart },
1083
+ placement: { default: he.BottomStart },
1085
1084
  testId: { default: "clll-dropdown-menu" },
1086
1085
  zIndex: { default: 30 }
1087
1086
  },
1088
1087
  setup(t) {
1089
1088
  const e = t;
1090
1089
  let n = E(), o = E();
1091
- const i = E(), l = E(), r = E(e.isOpen), s = E(e.placement), c = "clll-dropdown-menu", a = V(() => e.zIndex === "auto" || de(e.zIndex) ? e.zIndex : e.zIndex.toString()), f = () => {
1090
+ const i = E(), l = E(), r = E(e.isOpen), s = E(e.placement), c = "clll-dropdown-menu", a = V(() => e.zIndex === "auto" || ue(e.zIndex) ? e.zIndex : e.zIndex.toString()), f = () => {
1092
1091
  y.value ? u() : m();
1093
1092
  }, u = () => {
1094
1093
  r.value = !0, e?.onOpenHandler?.(), C(), mt && document.addEventListener("click", b);
@@ -1103,7 +1102,7 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn =
1103
1102
  toggleDropdown: v,
1104
1103
  closeDropdown: g,
1105
1104
  clearEventListeners: p
1106
- } = me({
1105
+ } = de({
1107
1106
  triggerElem: n,
1108
1107
  dropdownRef: l,
1109
1108
  openDropdownHandler: f,
@@ -1115,14 +1114,14 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn =
1115
1114
  whileElementsMounted: sn
1116
1115
  }), b = (w) => {
1117
1116
  r.value && l.value?.contains(w?.target) && g();
1118
- }, { clearEventListeners: T } = he({ escHandler: g, triggerElem: n });
1119
- return ie(() => {
1117
+ }, { clearEventListeners: T } = me({ escHandler: g, triggerElem: n });
1118
+ return oe(() => {
1120
1119
  mt && document.removeEventListener("click", b), T(), p();
1121
- }), (w, S) => (At(), Rt("div", {
1120
+ }), (w, R) => (At(), St("div", {
1122
1121
  class: dt([`${c}__menu`]),
1123
1122
  "data-testid": t.testId
1124
1123
  }, [
1125
- Ot(A(fe), {
1124
+ Ot(A(ae), {
1126
1125
  id: `${c}__toggle--${t.dropdownId}`,
1127
1126
  ref_key: "anchor",
1128
1127
  ref: i,
@@ -1137,7 +1136,6 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn =
1137
1136
  "icon-after": t.iconAfter,
1138
1137
  "icon-before": t.iconBefore,
1139
1138
  "icon-size": t.iconSize,
1140
- "icon-after-size": t.iconAfterSize,
1141
1139
  size: t.buttonSize,
1142
1140
  "test-id": `${c}__toggle`,
1143
1141
  variant: t.buttonVariant,
@@ -1146,11 +1144,11 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn =
1146
1144
  onClick: A(v)
1147
1145
  }, {
1148
1146
  default: Et(() => [
1149
- le(se(t.label), 1)
1147
+ re(le(t.label), 1)
1150
1148
  ]),
1151
1149
  _: 1
1152
- }, 8, ["id", "aria-controls", "aria-expanded", "aria-label", "class", "color", "border-radius", "height", "icon-after", "icon-before", "icon-size", "icon-after-size", "size", "test-id", "variant", "width", "wrap", "onClick"]),
1153
- A(r) || t.isOpen ? (At(), Rt("div", {
1150
+ }, 8, ["id", "aria-controls", "aria-expanded", "aria-label", "class", "color", "border-radius", "height", "icon-after", "icon-before", "icon-size", "size", "test-id", "variant", "width", "wrap", "onClick"]),
1151
+ A(r) || t.isOpen ? (At(), St("div", {
1154
1152
  key: 0,
1155
1153
  id: `${c}--${t.dropdownId}`,
1156
1154
  ref_key: "dropdownElem",
@@ -1161,29 +1159,29 @@ const hn = ["data-testid"], gn = ["id", "aria-labelledby", "aria-hidden"], Sn =
1161
1159
  `${c}__dropdown`,
1162
1160
  `${c}__dropdown--${A(s)}`
1163
1161
  ]),
1164
- style: ce({ ...A(x), zIndex: A(a) })
1162
+ style: se({ ...A(x), zIndex: A(a) })
1165
1163
  }, [
1166
- Ot(A(ue), {
1164
+ Ot(A(fe), {
1167
1165
  bordered: t.containerBordered,
1168
1166
  "border-radius": t.containerBorderRadius,
1169
- color: A(Tt).Neutral,
1167
+ color: A(Dt).Neutral,
1170
1168
  elevated: t.containerElevated,
1171
1169
  "forward-ref": h,
1172
1170
  padded: !1,
1173
1171
  "test-id": `${c}__content`,
1174
- variant: A(Dt).Ghost,
1172
+ variant: A(Lt).Ghost,
1175
1173
  width: t.contentWidth
1176
1174
  }, {
1177
1175
  default: Et(() => [
1178
- ae(w.$slots, "content")
1176
+ ce(w.$slots, "content")
1179
1177
  ]),
1180
1178
  _: 3
1181
1179
  }, 8, ["bordered", "border-radius", "color", "elevated", "test-id", "variant", "width"])
1182
- ], 14, gn)) : re("", !0)
1180
+ ], 14, gn)) : ie("", !0)
1183
1181
  ], 10, hn));
1184
1182
  }
1185
1183
  });
1186
1184
  export {
1187
- Sn as CLDropdownMenu,
1188
- Sn as default
1185
+ Rn as CLDropdownMenu,
1186
+ Rn as default
1189
1187
  };