@codeandfunction/callaloo 3.16.1 → 3.16.2

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 (62) hide show
  1. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js → CLA11yButton.vue_vue_type_style_index_0_lang-BPM559Fj.js} +1 -1
  2. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js → CLButton.vue_vue_type_style_index_0_lang-DiT4TwiW.js} +4 -4
  3. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-DVuAcV5A.js → CLCard.vue_vue_type_style_index_0_lang-vXK1HBND.js} +6 -6
  4. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js → CLFormLabel.vue_vue_type_script_setup_true_lang-B9PYNMYy.js} +1 -1
  5. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js → CLHeading.vue_vue_type_style_index_0_lang-HzXfA-v_.js} +1 -1
  6. package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js → CLIcon.vue_vue_type_style_index_0_lang-YdXhAQ8-.js} +23 -22
  7. package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js → CLInputMessages.vue_vue_type_style_index_0_lang-BNAW5shz.js} +12 -11
  8. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js → CLLink.vue_vue_type_style_index_0_lang-iHWgurk-.js} +12 -11
  9. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Ckz9MEj5.js → CLNavLink.vue_vue_type_script_setup_true_lang-DBu0BjSA.js} +1 -1
  10. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-mkIKVHjg.js → CLPill.vue_vue_type_style_index_0_lang-DZl8_301.js} +3 -3
  11. package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-CSf7WiNb.js → CLProgress.vue_vue_type_style_index_0_lang-B2TZA2aN.js} +2 -2
  12. package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js → CLSkeleton.vue_vue_type_style_index_0_lang-BDGFXnrV.js} +1 -1
  13. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-C8s8K4zb.js → CLSpinner.vue_vue_type_style_index_0_lang-BsI680jS.js} +1 -1
  14. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js → CLText.vue_vue_type_style_index_0_lang-CPdNgG4V.js} +1 -1
  15. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js → CLToast.vue_vue_type_style_index_0_lang-C119uLhY.js} +24 -23
  16. package/dist/chunks/base-theme-CYXVp7iK.js +774 -0
  17. package/dist/chunks/helper--hRjZVm6.js +62 -0
  18. package/dist/chunks/{utils-DFnkOeYP.js → utils-B7dbJd6n.js} +26 -25
  19. package/dist/chunks/{utils-C7Yjsqk-.js → utils-CXZw87Wc.js} +10 -9
  20. package/dist/chunks/utils-Dgc7kbbm.js +15 -0
  21. package/dist/chunks/utils-UApzileu.js +387 -0
  22. package/dist/chunks/utils-aUf_lkSP.js +29 -0
  23. package/dist/chunks/{utils-D_WP3vZz.js → utils-m8fomrFl.js} +13 -12
  24. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  25. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  26. package/dist/components/CLIcon/CLIcon.js +1 -1
  27. package/dist/components/CLTable/CLTable.js +30 -29
  28. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  29. package/dist/components/Containers/CLCarousel/CLCarousel.js +16 -16
  30. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +6 -6
  31. package/dist/components/Form/CLCheckbox/CLCheckbox.js +3 -3
  32. package/dist/components/Form/CLInput/CLInput.js +5 -5
  33. package/dist/components/Form/CLRadioButton/CLRadioButton.js +2 -2
  34. package/dist/components/Form/CLSelect/CLSelect.js +3 -3
  35. package/dist/components/Form/CLTextArea/CLTextArea.js +2 -2
  36. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  37. package/dist/components/Indicators/CLBanner/CLBanner.js +6 -6
  38. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  39. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  40. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  41. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  42. package/dist/components/Modals/CLModal/CLModal.js +16 -15
  43. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  44. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  45. package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
  46. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +509 -551
  47. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  48. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +2 -2
  49. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  50. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  51. package/dist/components/Typography/CLText/CLText.js +1 -1
  52. package/dist/composables/index.d.ts +2 -0
  53. package/dist/composables/useDropdown.js +49 -0
  54. package/dist/{chunks/useEsc-C9QIDZ_8.js → composables/useEsc.js} +2 -2
  55. package/dist/{chunks/useHasSlotContent-DDqs5uK9.js → composables/useHasSlotContent.js} +2 -2
  56. package/dist/composables/useTheme.js +33 -0
  57. package/dist/composables/useToast.js +14 -0
  58. package/package.json +5 -3
  59. package/dist/chunks/base-theme-C9_Hz5HW.js +0 -832
  60. package/dist/chunks/useTheme-yoEfuNvB.js +0 -417
  61. package/dist/chunks/utils-DTWXs4YX.js +0 -14
  62. package/dist/chunks/utils-Da9LXXQ0.js +0 -28
@@ -0,0 +1,62 @@
1
+ const b = () => {
2
+ let t, i, o, e = !1, r, s;
3
+ const d = (n) => {
4
+ if (e) return;
5
+ i === void 0 && (i = n);
6
+ const a = n - i;
7
+ o !== n && s?.(a), r && a < r && (o = n, e || (t = window.requestAnimationFrame(d)));
8
+ }, l = () => {
9
+ t = void 0, i = void 0, o = void 0, e = !1, r = void 0;
10
+ };
11
+ return {
12
+ start: (n, a) => {
13
+ s = a, r = n, t = window.requestAnimationFrame(d);
14
+ },
15
+ stop: () => {
16
+ e = !0, t && window.cancelAnimationFrame(t), l();
17
+ }
18
+ };
19
+ }, A = ({
20
+ parent: t,
21
+ child: i,
22
+ threshold: o = 0.1,
23
+ leftOffset: e = 0,
24
+ rightOffset: r = 0
25
+ }) => {
26
+ const {
27
+ top: s,
28
+ left: d,
29
+ bottom: l,
30
+ right: n,
31
+ width: a,
32
+ height: u
33
+ } = t?.getBoundingClientRect() || {}, {
34
+ top: g,
35
+ left: p,
36
+ bottom: m,
37
+ right: h
38
+ } = i.getBoundingClientRect() || {};
39
+ let w = d + e, y = n - r, v = a - (e + r), f = 0, c = 0;
40
+ return p <= y && (f = (h - w) / v * 100 / 100), g <= l && (c = (m - s) / u * 100 / 100), f > o && c > o;
41
+ }, B = () => N ? Math.max(
42
+ ...Array.from(
43
+ document?.querySelectorAll("body *"),
44
+ (t) => parseFloat(window?.getComputedStyle(t).zIndex)
45
+ ).filter((t) => !Number.isNaN(t)),
46
+ 0
47
+ ) : 0, N = typeof document < "u", C = (t) => t != null && typeof t.valueOf() == "string", D = (t) => {
48
+ if (!t) return !0;
49
+ let i = 0;
50
+ const o = ["#comment"];
51
+ return t.childNodes.forEach((e) => {
52
+ !o.includes(e.nodeName) && e.childNodes.length && i++;
53
+ }), i === 0;
54
+ };
55
+ export {
56
+ b as a,
57
+ C as b,
58
+ D as c,
59
+ A as d,
60
+ B as g,
61
+ N as i
62
+ };
@@ -1,10 +1,11 @@
1
- import { CLMode as s, CLColorVariants as u, CLColors as i } from "../index.js";
2
- import { u as g, g as p, c as b, a as $ } from "./useTheme-yoEfuNvB.js";
3
- const k = ({
4
- color: c = i.Primary,
1
+ import { CLMode as s, CLColorVariants as i, CLColors as u } from "../index.js";
2
+ import { g as p, c as b, a as g } from "./utils-UApzileu.js";
3
+ import { useTheme as $ } from "../composables/useTheme.js";
4
+ const _ = ({
5
+ color: c = u.Primary,
5
6
  variant: l
6
7
  }) => {
7
- const { borderRadius: e, colors: a, darkMode: n } = g(), d = n.value ? s.Dark : s.Light, r = l === u.Outline, t = p({
8
+ const { borderRadius: e, colors: a, darkMode: n } = $(), d = n.value ? s.Dark : s.Light, r = l === i.Outline, t = p({
8
9
  color: c,
9
10
  colors: a.value,
10
11
  mode: d,
@@ -17,12 +18,12 @@ const k = ({
17
18
  border-radius: var(--clll-${e.value});
18
19
  }
19
20
  }
20
- `), $(b`border-color:${r ? t?.border : "transparent"};border-style:${r ? "solid" : "none"};border-width:${r ? "1px" : "0"};background-color:${t?.bg};.clll-badge__count{color:${t?.text};}`, o);
21
- }, _ = ({
22
- color: c = i.Primary,
21
+ `), g(b`border-color:${r ? t?.border : "transparent"};border-style:${r ? "solid" : "none"};border-width:${r ? "1px" : "0"};background-color:${t?.bg};.clll-badge__count{color:${t?.text};}`, o);
22
+ }, C = ({
23
+ color: c = u.Primary,
23
24
  variant: l
24
25
  }) => {
25
- const { borderRadius: e, colors: a, darkMode: n } = g(), d = n.value ? s.Dark : s.Light, r = p({
26
+ const { borderRadius: e, colors: a, darkMode: n } = $(), d = n.value ? s.Dark : s.Light, r = p({
26
27
  color: c,
27
28
  colors: a.value,
28
29
  mode: d,
@@ -31,12 +32,12 @@ const k = ({
31
32
  let t;
32
33
  e.value && (t = b`&:not([class*='clll-banner--rounded-']){&.clll-banner.clll-banner--rounded{border-radius:var(--clll-${e.value});}}`);
33
34
  const o = b`background-color:${r?.bg ?? "transparent"};border-color:${r?.focus ?? "transparent"};&.clll-banner--bordered{border-bottom-width:.25rem}.clll-banner__content{.clll-heading,.clll-text{color:${r?.text}}}`;
34
- return $(o, t);
35
- }, C = ({
36
- color: c = i.Primary,
35
+ return g(o, t);
36
+ }, x = ({
37
+ color: c = u.Primary,
37
38
  variant: l
38
39
  }) => {
39
- const { borderRadius: e, colors: a, darkMode: n } = g(), d = n.value ? s.Dark : s.Light, r = l === u.Outline, t = l === u.Ghost, o = p({
40
+ const { borderRadius: e, colors: a, darkMode: n } = $(), d = n.value ? s.Dark : s.Light, r = l === i.Outline, t = l === i.Ghost, o = p({
40
41
  color: c,
41
42
  colors: a.value,
42
43
  mode: d,
@@ -47,26 +48,26 @@ const k = ({
47
48
  &.clll-pill.clll-pill--rounded {
48
49
  border-radius: var(--clll-${e.value});
49
50
  }
50
- `), $(m, b`border-color:${r ? o?.border : "transparent"};border-width:${r ? "1px" : "0"};border-style:${r ? "solid" : "none"};background-color:${o?.bg ?? "transparent"};.clll-pill__label{background-color:${o?.bg ?? "transparent"};}&.clll-pill--clickable{&:hover{background-color:${o?.bg ?? "transparent"};}}.clll-pill__label{color:${o?.text};}.clll-icon{color:${o?.text};background-color:${o?.bg ?? "transparent"};}.clll-pill__count{color:${o?.text};background-color:${!r && !t ? o?.hover : "transparent"};${r ? `border-left-style:solid;border-left-color:${r ? o?.border : "transparent"};border-left-width:1px;` : ""}`);
51
- }, x = ({
52
- color: c = i.Primary
51
+ `), g(m, b`border-color:${r ? o?.border : "transparent"};border-width:${r ? "1px" : "0"};border-style:${r ? "solid" : "none"};background-color:${o?.bg ?? "transparent"};.clll-pill__label{background-color:${o?.bg ?? "transparent"};}&.clll-pill--clickable{&:hover{background-color:${o?.bg ?? "transparent"};}}.clll-pill__label{color:${o?.text};}.clll-icon{color:${o?.text};background-color:${o?.bg ?? "transparent"};}.clll-pill__count{color:${o?.text};background-color:${!r && !t ? o?.hover : "transparent"};${r ? `border-left-style:solid;border-left-color:${r ? o?.border : "transparent"};border-left-width:1px;` : ""}`);
52
+ }, f = ({
53
+ color: c = u.Primary
53
54
  }) => {
54
- const { colors: l, darkMode: e } = g(), a = e.value ? s.Dark : s.Light, n = p({
55
+ const { colors: l, darkMode: e } = $(), a = e.value ? s.Dark : s.Light, n = p({
55
56
  color: c,
56
57
  colors: l.value,
57
58
  mode: a,
58
- variant: u.Solid
59
+ variant: i.Solid
59
60
  }), d = p({
60
- color: i.Neutral,
61
+ color: u.Neutral,
61
62
  colors: l.value,
62
63
  mode: a,
63
- variant: u.Solid
64
+ variant: i.Solid
64
65
  }), r = b`.clll-progress__bar-container{background-color:${d?.disabled ?? "transparent"};.clll-progress__bar{background-color:${n?.bg ?? "transparent"};}}`;
65
- return $(r);
66
+ return g(r);
66
67
  };
67
68
  export {
68
- x as a,
69
- k as b,
70
- _ as c,
71
- C as p
69
+ f as a,
70
+ _ as b,
71
+ C as c,
72
+ x as p
72
73
  };
@@ -1,7 +1,8 @@
1
1
  import { CLMode as a, CLColors as d, CLColorVariants as u } from "../index.js";
2
- import { u as t, g as i, a as c, c as s } from "./useTheme-yoEfuNvB.js";
3
- const b = () => {
4
- const { borderRadius: o, darkMode: e } = t(), l = e.value ? "rgba(0 0 0 / 0.005)" : "rgba(0 0 0 / 0.075)";
2
+ import { g as i, a as t, c as s } from "./utils-UApzileu.js";
3
+ import { useTheme as c } from "../composables/useTheme.js";
4
+ const g = () => {
5
+ const { borderRadius: o, darkMode: e } = c(), l = e.value ? "rgba(0 0 0 / 0.005)" : "rgba(0 0 0 / 0.075)";
5
6
  let r;
6
7
  return o.value && (r = s`
7
8
  &:not([class*='clll-skeleton--rounded-']) {
@@ -9,17 +10,17 @@ const b = () => {
9
10
  border-radius: var(--clll-${o.value});
10
11
  }
11
12
  }
12
- `), c(s`background-color:${l};`, r);
13
- }, g = ({ color: o = d.Primary }) => {
14
- const { colors: e, darkMode: l } = t(), r = l.value ? a.Dark : a.Light, n = i({
13
+ `), t(s`background-color:${l};`, r);
14
+ }, C = ({ color: o = d.Primary }) => {
15
+ const { colors: e, darkMode: l } = c(), r = l.value ? a.Dark : a.Light, n = i({
15
16
  color: o,
16
17
  colors: e.value,
17
18
  mode: r,
18
19
  variant: u.Solid
19
20
  });
20
- return c(s`color:${n?.bg};`);
21
+ return t(s`color:${n?.bg};`);
21
22
  };
22
23
  export {
23
- g as a,
24
- b as s
24
+ C as a,
25
+ g as s
25
26
  };
@@ -0,0 +1,15 @@
1
+ import { CLMode as o, CLColors as c, CLColorVariants as l } from "../index.js";
2
+ import { g as m, a as p, c as i } from "./utils-UApzileu.js";
3
+ import { useTheme as n } from "../composables/useTheme.js";
4
+ const x = ({ color: e = c.Neutral }) => {
5
+ const { colors: r, darkMode: t } = n(), a = t.value ? o.Light : o.Dark, s = m({
6
+ color: e,
7
+ colors: r.value,
8
+ mode: a,
9
+ variant: l.Text
10
+ });
11
+ return p(i`color: ${s?.textBody};white-space: pre-wrap;`);
12
+ };
13
+ export {
14
+ x as t
15
+ };
@@ -0,0 +1,387 @@
1
+ import { C as fe } from "./base-theme-CYXVp7iK.js";
2
+ var q = { exports: {} }, U;
3
+ function ne() {
4
+ return U || (U = 1, (function(e) {
5
+ (function() {
6
+ const f = (r) => new TextEncoder().encode(r);
7
+ function a(r, v) {
8
+ typeof r == "string" && (r = f(r));
9
+ let u = r.length, i = v ^ u, t = 0, d;
10
+ for (; u >= 4; )
11
+ d = r[t] & 255 | (r[++t] & 255) << 8 | (r[++t] & 255) << 16 | (r[++t] & 255) << 24, d = (d & 65535) * 1540483477 + (((d >>> 16) * 1540483477 & 65535) << 16), d ^= d >>> 24, d = (d & 65535) * 1540483477 + (((d >>> 16) * 1540483477 & 65535) << 16), i = (i & 65535) * 1540483477 + (((i >>> 16) * 1540483477 & 65535) << 16) ^ d, u -= 4, ++t;
12
+ switch (u) {
13
+ case 3:
14
+ i ^= (r[t + 2] & 255) << 16;
15
+ case 2:
16
+ i ^= (r[t + 1] & 255) << 8;
17
+ case 1:
18
+ i ^= r[t] & 255, i = (i & 65535) * 1540483477 + (((i >>> 16) * 1540483477 & 65535) << 16);
19
+ }
20
+ return i ^= i >>> 13, i = (i & 65535) * 1540483477 + (((i >>> 16) * 1540483477 & 65535) << 16), i ^= i >>> 15, i >>> 0;
21
+ }
22
+ function o(r, v) {
23
+ typeof r == "string" && (r = f(r));
24
+ let u, i, t, d, b, w, c, l;
25
+ for (u = r.length & 3, i = r.length - u, t = v, b = 3432918353, w = 461845907, l = 0; l < i; )
26
+ c = r[l] & 255 | (r[++l] & 255) << 8 | (r[++l] & 255) << 16 | (r[++l] & 255) << 24, ++l, c = (c & 65535) * b + (((c >>> 16) * b & 65535) << 16) & 4294967295, c = c << 15 | c >>> 17, c = (c & 65535) * w + (((c >>> 16) * w & 65535) << 16) & 4294967295, t ^= c, t = t << 13 | t >>> 19, d = (t & 65535) * 5 + (((t >>> 16) * 5 & 65535) << 16) & 4294967295, t = (d & 65535) + 27492 + (((d >>> 16) + 58964 & 65535) << 16);
27
+ switch (c = 0, u) {
28
+ case 3:
29
+ c ^= (r[l + 2] & 255) << 16;
30
+ case 2:
31
+ c ^= (r[l + 1] & 255) << 8;
32
+ case 1:
33
+ c ^= r[l] & 255, c = (c & 65535) * b + (((c >>> 16) * b & 65535) << 16) & 4294967295, c = c << 15 | c >>> 17, c = (c & 65535) * w + (((c >>> 16) * w & 65535) << 16) & 4294967295, t ^= c;
34
+ }
35
+ return t ^= r.length, t ^= t >>> 16, t = (t & 65535) * 2246822507 + (((t >>> 16) * 2246822507 & 65535) << 16) & 4294967295, t ^= t >>> 13, t = (t & 65535) * 3266489909 + (((t >>> 16) * 3266489909 & 65535) << 16) & 4294967295, t ^= t >>> 16, t >>> 0;
36
+ }
37
+ const n = o;
38
+ n.v2 = a, n.v3 = o, e.exports = n;
39
+ })();
40
+ })(q)), q.exports;
41
+ }
42
+ var te = ne(), Q = "comm", X = "rule", Z = "decl", ae = "@import", ce = "@namespace", oe = "@keyframes", ie = "@layer", W = Math.abs, F = String.fromCharCode;
43
+ function ee(e) {
44
+ return e.trim();
45
+ }
46
+ function H(e, f, a) {
47
+ return e.replace(f, a);
48
+ }
49
+ function se(e, f, a) {
50
+ return e.indexOf(f, a);
51
+ }
52
+ function C(e, f) {
53
+ return e.charCodeAt(f) | 0;
54
+ }
55
+ function M(e, f, a) {
56
+ return e.slice(f, a);
57
+ }
58
+ function k(e) {
59
+ return e.length;
60
+ }
61
+ function ue(e) {
62
+ return e.length;
63
+ }
64
+ function O(e, f) {
65
+ return f.push(e), e;
66
+ }
67
+ var I = 1, z = 1, re = 0, m = 0, x = 0, N = "";
68
+ function Y(e, f, a, o, n, r, v, u) {
69
+ return { value: e, root: f, parent: a, type: o, props: n, children: r, line: I, column: z, length: v, return: "", siblings: u };
70
+ }
71
+ function de() {
72
+ return x;
73
+ }
74
+ function le() {
75
+ return x = m > 0 ? C(N, --m) : 0, z--, x === 10 && (z = 1, I--), x;
76
+ }
77
+ function g() {
78
+ return x = m < re ? C(N, m++) : 0, z++, x === 10 && (z = 1, I++), x;
79
+ }
80
+ function R() {
81
+ return C(N, m);
82
+ }
83
+ function V() {
84
+ return m;
85
+ }
86
+ function L(e, f) {
87
+ return M(N, e, f);
88
+ }
89
+ function B(e) {
90
+ switch (e) {
91
+ // \0 \t \n \r \s whitespace token
92
+ case 0:
93
+ case 9:
94
+ case 10:
95
+ case 13:
96
+ case 32:
97
+ return 5;
98
+ // ! + , / > @ ~ isolate token
99
+ case 33:
100
+ case 43:
101
+ case 44:
102
+ case 47:
103
+ case 62:
104
+ case 64:
105
+ case 126:
106
+ // ; { } breakpoint token
107
+ case 59:
108
+ case 123:
109
+ case 125:
110
+ return 4;
111
+ // : accompanied token
112
+ case 58:
113
+ return 3;
114
+ // " ' ( [ opening delimit token
115
+ case 34:
116
+ case 39:
117
+ case 40:
118
+ case 91:
119
+ return 2;
120
+ // ) ] closing delimit token
121
+ case 41:
122
+ case 93:
123
+ return 1;
124
+ }
125
+ return 0;
126
+ }
127
+ function xe(e) {
128
+ return I = z = 1, re = k(N = e), m = 0, [];
129
+ }
130
+ function be(e) {
131
+ return N = "", e;
132
+ }
133
+ function P(e) {
134
+ return ee(L(m - 1, _(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
135
+ }
136
+ function he(e) {
137
+ for (; (x = R()) && x < 33; )
138
+ g();
139
+ return B(e) > 2 || B(x) > 3 ? "" : " ";
140
+ }
141
+ function ve(e, f) {
142
+ for (; --f && g() && !(x < 48 || x > 102 || x > 57 && x < 65 || x > 70 && x < 97); )
143
+ ;
144
+ return L(e, V() + (f < 6 && R() == 32 && g() == 32));
145
+ }
146
+ function _(e) {
147
+ for (; g(); )
148
+ switch (x) {
149
+ // ] ) " '
150
+ case e:
151
+ return m;
152
+ // " '
153
+ case 34:
154
+ case 39:
155
+ e !== 34 && e !== 39 && _(x);
156
+ break;
157
+ // (
158
+ case 40:
159
+ e === 41 && _(e);
160
+ break;
161
+ // \
162
+ case 92:
163
+ g();
164
+ break;
165
+ }
166
+ return m;
167
+ }
168
+ function pe(e, f) {
169
+ for (; g() && e + x !== 57; )
170
+ if (e + x === 84 && R() === 47)
171
+ break;
172
+ return "/*" + L(f, m - 1) + "*" + F(e === 47 ? e : g());
173
+ }
174
+ function me(e) {
175
+ for (; !B(R()); )
176
+ g();
177
+ return L(e, m);
178
+ }
179
+ function we(e) {
180
+ return be(D("", null, null, null, [""], e = xe(e), 0, [0], e));
181
+ }
182
+ function D(e, f, a, o, n, r, v, u, i) {
183
+ for (var t = 0, d = 0, b = v, w = 0, c = 0, l = 0, p = 1, y = 1, E = 1, h = 0, T = "", A = n, S = r, $ = o, s = T; y; )
184
+ switch (l = h, h = g()) {
185
+ // (
186
+ case 40:
187
+ if (l != 108 && C(s, b - 1) == 58) {
188
+ se(s += H(P(h), "&", "&\f"), "&\f", W(t ? u[t - 1] : 0)) != -1 && (E = -1);
189
+ break;
190
+ }
191
+ // " ' [
192
+ case 34:
193
+ case 39:
194
+ case 91:
195
+ s += P(h);
196
+ break;
197
+ // \t \n \r \s
198
+ case 9:
199
+ case 10:
200
+ case 13:
201
+ case 32:
202
+ s += he(l);
203
+ break;
204
+ // \
205
+ case 92:
206
+ s += ve(V() - 1, 7);
207
+ continue;
208
+ // /
209
+ case 47:
210
+ switch (R()) {
211
+ case 42:
212
+ case 47:
213
+ O(ge(pe(g(), V()), f, a, i), i), (B(l || 1) == 5 || B(R() || 1) == 5) && k(s) && M(s, -1, void 0) !== " " && (s += " ");
214
+ break;
215
+ default:
216
+ s += "/";
217
+ }
218
+ break;
219
+ // {
220
+ case 123 * p:
221
+ u[t++] = k(s) * E;
222
+ // } ; \0
223
+ case 125 * p:
224
+ case 59:
225
+ case 0:
226
+ switch (h) {
227
+ // \0 }
228
+ case 0:
229
+ case 125:
230
+ y = 0;
231
+ // ;
232
+ case 59 + d:
233
+ E == -1 && (s = H(s, /\f/g, "")), c > 0 && (k(s) - b || p === 0 && l === 47) && O(c > 32 ? J(s + ";", o, a, b - 1, i) : J(H(s, " ", "") + ";", o, a, b - 2, i), i);
234
+ break;
235
+ // @ ;
236
+ case 59:
237
+ s += ";";
238
+ // { rule/at-rule
239
+ default:
240
+ if (O($ = G(s, f, a, t, d, n, u, T, A = [], S = [], b, r), r), h === 123)
241
+ if (d === 0)
242
+ D(s, f, $, $, A, r, b, u, S);
243
+ else {
244
+ switch (w) {
245
+ // c(ontainer)
246
+ case 99:
247
+ if (C(s, 3) === 110) break;
248
+ // l(ayer)
249
+ case 108:
250
+ if (C(s, 2) === 97) break;
251
+ default:
252
+ d = 0;
253
+ // d(ocument) m(edia) s(upports)
254
+ case 100:
255
+ case 109:
256
+ case 115:
257
+ }
258
+ d ? D(e, $, $, o && O(G(e, $, $, 0, 0, n, u, T, n, A = [], b, S), S), n, S, b, u, o ? A : S) : D(s, $, $, $, [""], S, 0, u, S);
259
+ }
260
+ }
261
+ t = d = c = 0, p = E = 1, T = s = "", b = v;
262
+ break;
263
+ // :
264
+ case 58:
265
+ b = 1 + k(s), c = l;
266
+ default:
267
+ if (p < 1) {
268
+ if (h == 123)
269
+ --p;
270
+ else if (h == 125 && p++ == 0 && le() == 125)
271
+ continue;
272
+ }
273
+ switch (s += F(h), h * p) {
274
+ // &
275
+ case 38:
276
+ E = d > 0 ? 1 : (s += "\f", -1);
277
+ break;
278
+ // ,
279
+ case 44:
280
+ u[t++] = (k(s) - 1) * E, E = 1;
281
+ break;
282
+ // @
283
+ case 64:
284
+ R() === 45 && (s += P(g())), w = R(), d = b = k(T = s += me(V())), h++;
285
+ break;
286
+ // -
287
+ case 45:
288
+ l === 45 && k(s) == 2 && (p = 0);
289
+ }
290
+ }
291
+ return r;
292
+ }
293
+ function G(e, f, a, o, n, r, v, u, i, t, d, b) {
294
+ for (var w = n - 1, c = n === 0 ? r : [""], l = ue(c), p = 0, y = 0, E = 0; p < o; ++p)
295
+ for (var h = 0, T = M(e, w + 1, w = W(y = v[p])), A = e; h < l; ++h)
296
+ (A = ee(y > 0 ? c[h] + " " + T : H(T, /&\f/g, c[h]))) && (i[E++] = A);
297
+ return Y(e, f, a, n === 0 ? X : u, i, t, d, b);
298
+ }
299
+ function ge(e, f, a, o) {
300
+ return Y(e, f, a, Q, F(de()), M(e, 2, -2), 0, o);
301
+ }
302
+ function J(e, f, a, o, n) {
303
+ return Y(e, f, a, Z, M(e, 0, o), M(e, o + 1, -1), o, n);
304
+ }
305
+ function j(e, f) {
306
+ for (var a = "", o = 0; o < e.length; o++)
307
+ a += f(e[o], o, e, f) || "";
308
+ return a;
309
+ }
310
+ function $e(e, f, a, o) {
311
+ switch (e.type) {
312
+ case ie:
313
+ if (e.children.length) break;
314
+ case ae:
315
+ case ce:
316
+ case Z:
317
+ return e.return = e.return || e.value;
318
+ case Q:
319
+ return "";
320
+ case oe:
321
+ return e.return = e.value + "{" + j(e.children, o) + "}";
322
+ case X:
323
+ if (!k(e.value = e.props.join(","))) return "";
324
+ }
325
+ return k(a = j(e.children, o)) ? e.return = e.value + "{" + a + "}" : "";
326
+ }
327
+ const ke = () => K`-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;`, Se = ({
328
+ backgroundColor: e = "white",
329
+ borderColor: f,
330
+ placeholderColor: a
331
+ }) => K`border-color:${f};border-style:solid;border-width:1px;margin:0;padding:0;display:inline-block;vertical-align:middle;white-space:normal;background-color:${e};line-height:1;appearance:none;-moz-appearance:none;-webkit-appearance:none;&::placeholder{color:${a};}${ke()}`, Ee = ({
332
+ key: e
333
+ }) => {
334
+ if (window?.document?.querySelector(`style[data-clll-theme="${e}"]`))
335
+ return;
336
+ const f = window?.document?.createElement("style");
337
+ if (f)
338
+ return f.setAttribute("data-clll-theme", e), f.appendChild(window?.document.createTextNode("")), window?.document.head.appendChild(f), f;
339
+ }, K = (e, ...f) => {
340
+ const a = [e[0]];
341
+ return (() => {
342
+ f.forEach((r, v) => {
343
+ a.push(r, e[v + 1]);
344
+ });
345
+ })(), a.join("").replace(/[\r\n]+/gm, "");
346
+ }, Re = (...e) => {
347
+ if (import.meta?.env?.VITEST) return "";
348
+ const a = e.filter(Boolean).join(""), o = j(we(a), $e), n = te.v2(o).toString(36), r = `clll-theme--${n}`, v = `.${r}{${a}}`, u = Ee({ key: n });
349
+ return u && (u?.sheet?.parentStyleSheet ? u?.sheet?.insertRule(
350
+ v,
351
+ u.sheet?.cssRules.length
352
+ ) : u.appendChild(window?.document.createTextNode(v))), r;
353
+ }, Ae = ({
354
+ borderColor: e,
355
+ outlineWidth: f = "2px",
356
+ outlineOffset: a = "0px",
357
+ outlineColor: o = "transparent",
358
+ shadowWidth: n = "--clll-unit-1_5",
359
+ shadowColor: r
360
+ }) => K`outline-color:rgba(0,0,0,0);outline-offset:${a};outline-style:solid;outline-width:${f};&:focus{outline:none;}&:focus{&[type='checkbox'],&[type='radio']{border-color:transparent!important;outline-color:${e};outline-style:solid;outline-width:${f};box-shadow:0 0 0 var(${n})${r};}}&:focus-visible{border-color:transparent!important;outline-color:${e};outline-style:solid;outline-width:${f};box-shadow:0 0 0 var(${n})${r};}&[type='checkbox'],&[type='radio']{border-color:${e};&:focus{outline-color:${o};border-color:transparent;}}`, Ce = ({
361
+ color: e,
362
+ colors: f,
363
+ mode: a,
364
+ variant: o
365
+ }) => {
366
+ const n = fe[o][a], r = f[e];
367
+ if (r)
368
+ return {
369
+ bg: n.bg !== void 0 ? r[n.bg] : void 0,
370
+ border: n.border !== void 0 ? r[n.border] : void 0,
371
+ borderHover: n.borderHover !== void 0 ? r[n.borderHover] : void 0,
372
+ disabled: n.disabled !== void 0 ? r[n.disabled] : void 0,
373
+ focus: n.focus !== void 0 ? r[n.focus] : void 0,
374
+ hover: n.hover !== void 0 ? r[n.hover] : void 0,
375
+ shadow: n.shadow !== void 0 ? r[n.shadow] : void 0,
376
+ text: n.text !== void 0 ? r[n.text] : void 0,
377
+ textBody: n.textBody !== void 0 ? r[n.textBody] : void 0,
378
+ textDisabled: n.textDisabled !== void 0 ? r[n.textDisabled] : void 0
379
+ };
380
+ };
381
+ export {
382
+ Re as a,
383
+ Se as b,
384
+ K as c,
385
+ Ae as f,
386
+ Ce as g
387
+ };
@@ -0,0 +1,29 @@
1
+ import { CLMode as a, CLColorVariants as u } from "../index.js";
2
+ import { g as b, c as s, a as h, f as v } from "./utils-UApzileu.js";
3
+ import { useTheme as m } from "../composables/useTheme.js";
4
+ const $ = ({ color: d }) => {
5
+ const { borderRadius: r, colors: e, darkMode: c } = m(), n = c.value ? a.Dark : a.Light, t = b({
6
+ color: d,
7
+ colors: e.value,
8
+ mode: n,
9
+ variant: u.Solid
10
+ });
11
+ let l;
12
+ return r.value && (l = s`&.clll-a11y__button.--rounded{border-radius:var(--clll-${r.value});}`), h(s`${v({ borderColor: t?.focus, shadowColor: t?.shadow, shadowWidth: "--clll-unit-0" })}`, l);
13
+ }, g = ({
14
+ color: d,
15
+ variant: r = u.Soft
16
+ }) => {
17
+ const { borderRadius: e, colors: c, darkMode: n } = m(), t = n.value ? a.Dark : a.Light, l = r === u.Outline, o = b({
18
+ color: d,
19
+ colors: c.value,
20
+ mode: t,
21
+ variant: r
22
+ });
23
+ let i;
24
+ return e.value && (i = s`&:not([class*='clll-button--rounded-']){&.clll-button.clll-button--rounded{border-radius:var(--clll-${e.value})}}`), h(s`.clll-button__content,.clll-icon{color:${o?.text};}border-color:${l ? o?.border : "transparent"};background-color:${o?.bg ?? "transparent"};&:hover:not([disabled]){background-color:${o?.hover ?? "transparent"};border-color:${l ? o?.borderHover : "transparent"};}${v({ borderColor: o?.focus, shadowColor: o?.shadow, shadowWidth: "--clll-unit-0" })}`, i);
25
+ };
26
+ export {
27
+ $ as a,
28
+ g as b
29
+ };
@@ -1,29 +1,30 @@
1
- import { CLMode as c, CLColorVariants as i } from "../index.js";
2
- import { u as b, g as h, c as d, a as g, f as p } from "./useTheme-yoEfuNvB.js";
3
- const m = ({ color: t, variant: r }) => {
4
- const { borderRadius: o, colors: a, darkMode: u } = b(), n = u.value ? c.Dark : c.Light, s = r === i.Ghost, l = h({
1
+ import { CLMode as c, CLColorVariants as n } from "../index.js";
2
+ import { g as b, c as d, a as h, f as p } from "./utils-UApzileu.js";
3
+ import { useTheme as g } from "../composables/useTheme.js";
4
+ const $ = ({ color: t, variant: r }) => {
5
+ const { borderRadius: o, colors: a, darkMode: u } = g(), i = u.value ? c.Dark : c.Light, s = r === n.Ghost, l = b({
5
6
  color: t,
6
7
  colors: a.value,
7
- mode: n,
8
+ mode: i,
8
9
  variant: r
9
10
  });
10
11
  let e;
11
- return o.value && (e = d`&:not([class*='clll-card--rounded-']){&.clll-card.clll-card--rounded{border-radius:var(--clll-${o.value})}}`), g(
12
+ return o.value && (e = d`&:not([class*='clll-card--rounded-']){&.clll-card.clll-card--rounded{border-radius:var(--clll-${o.value})}}`), h(
12
13
  d`border-color:${s ? "transparent" : l?.border};background-color:${l?.bg};&.clll-card--has-link{${p({ borderColor: l?.focus, shadowColor: l?.shadow, outlineOffset: "2px", shadowWidth: "--clll-unit-0" })}}.clll-card__image{background-color:${l?.bg}}.clll-card__heading,.clll-card__byline{color:${l?.text}}`,
13
14
  e
14
15
  );
15
- }, $ = ({ color: t, variant: r }) => {
16
- const { borderRadius: o, colors: a, darkMode: u } = b(), n = u.value ? c.Dark : c.Light, s = r === i.Ghost, l = h({
16
+ }, v = ({ color: t, variant: r }) => {
17
+ const { borderRadius: o, colors: a, darkMode: u } = g(), i = u.value ? c.Dark : c.Light, s = r === n.Ghost, l = b({
17
18
  color: t,
18
19
  colors: a.value,
19
- mode: n,
20
+ mode: i,
20
21
  variant: r
21
22
  });
22
23
  let e;
23
24
  return o.value && (e = d`&:not([class*='clll-disclosure--rounded-']){&.clll-disclosure.clll-disclosure--rounded{border-radius:var(--clll-${o.value});.clll-disclosure__trigger{.clll-button.clll-button--rounded{border-radius:var(--clll-${o.value})}}}}
24
- `), g(d`border-color:${s ? "transparent" : l?.focus};border-style:solid;border-width:1px;.clll-disclosure__heading{.clll-heading,.clll-text{color:${l?.text};}}.clll-disclosure__content{border-top-width:1px;border-top-style:solid;border-top-color:${s ? "transparent" : l?.focus};}.clll-disclosure__trigger{.clll-button{border:0;}}`, e);
25
+ `), h(d`border-color:${s ? "transparent" : l?.focus};border-style:solid;border-width:1px;.clll-disclosure__heading{.clll-heading,.clll-text{color:${l?.text};}}.clll-disclosure__content{border-top-width:1px;border-top-style:solid;border-top-color:${s ? "transparent" : l?.focus};}.clll-disclosure__trigger{.clll-button{border:0;}}`, e);
25
26
  };
26
27
  export {
27
- m as c,
28
- $ as d
28
+ $ as c,
29
+ v as d
29
30
  };
@@ -1,5 +1,5 @@
1
1
  import './CLA11yButton.css';
2
- import { _ as t } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js";
2
+ import { _ as t } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BPM559Fj.js";
3
3
  export {
4
4
  t as CLA11yButton,
5
5
  t as default
@@ -1,5 +1,5 @@
1
1
  import './CLButton.css';
2
- import { _ as t } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js";
2
+ import { _ as t } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-DiT4TwiW.js";
3
3
  export {
4
4
  t as CLButton,
5
5
  t as default