@codeandfunction/callaloo 3.16.4 → 3.16.6

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 (104) hide show
  1. package/dist/assets/CLInputMessages.css +1 -1
  2. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-C9OzrJ6Y.js → CLA11yButton.vue_vue_type_style_index_0_lang-Drw6jsX_.js} +13 -12
  3. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang--MP4S4D4.js → CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js} +5 -5
  4. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
  5. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-DNZdlItJ.js → CLFormLabel.vue_vue_type_script_setup_true_lang-CaHCD2xF.js} +1 -1
  6. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-BO5OiCE-.js → CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js} +11 -10
  7. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
  8. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-Bt5xgOT4.js +153 -0
  9. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js +68 -0
  10. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-DtzSW2Tr.js → CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js} +1 -1
  11. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js +90 -0
  12. package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js +63 -0
  13. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
  14. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-DyT8L74M.js → CLSpinner.vue_vue_type_style_index_0_lang-BQ1w9Ik9.js} +17 -16
  15. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-CG6043pv.js → CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js} +14 -13
  16. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js +182 -0
  17. package/dist/chunks/utils-CAV1sBee.js +24 -0
  18. package/dist/chunks/utils-CS9Gz4oX.js +25 -0
  19. package/dist/chunks/utils-C_e2F4X7.js +17 -0
  20. package/dist/chunks/utils-Sqgt8Fa4.js +85 -0
  21. package/dist/chunks/utils-cOhtsyeB.js +41 -0
  22. package/dist/chunks/utils-zJwcNHl4.js +37 -0
  23. package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -1
  24. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  25. package/dist/components/Buttons/CLButton/CLButton.css +1 -1
  26. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  27. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +1 -1
  28. package/dist/components/Buttons/utils.d.ts +16 -2
  29. package/dist/components/CLIcon/CLIcon.css +1 -1
  30. package/dist/components/CLIcon/CLIcon.js +1 -1
  31. package/dist/components/CLIcon/utils.d.ts +3 -1
  32. package/dist/components/CLTable/CLTable.css +1 -1
  33. package/dist/components/CLTable/CLTable.js +113 -117
  34. package/dist/components/CLTable/utils.d.ts +5 -1
  35. package/dist/components/Containers/CLCard/CLCard.css +1 -1
  36. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  37. package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
  38. package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
  39. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +32 -31
  40. package/dist/components/Containers/utils.d.ts +15 -2
  41. package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -1
  42. package/dist/components/Form/CLCheckbox/CLCheckbox.js +33 -35
  43. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +2 -2
  44. package/dist/components/Form/CLInput/CLInput.css +1 -1
  45. package/dist/components/Form/CLInput/CLInput.js +31 -33
  46. package/dist/components/Form/CLInput/CLInput.vue.d.ts +3 -3
  47. package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -1
  48. package/dist/components/Form/CLRadioButton/CLRadioButton.js +35 -34
  49. package/dist/components/Form/CLSelect/CLSelect.css +1 -1
  50. package/dist/components/Form/CLSelect/CLSelect.js +32 -31
  51. package/dist/components/Form/CLTextArea/CLTextArea.css +1 -1
  52. package/dist/components/Form/CLTextArea/CLTextArea.js +21 -20
  53. package/dist/components/Form/utils.d.ts +51 -4
  54. package/dist/components/Indicators/CLBadge/CLBadge.css +1 -1
  55. package/dist/components/Indicators/CLBadge/CLBadge.js +12 -11
  56. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
  57. package/dist/components/Indicators/CLBanner/CLBanner.js +49 -52
  58. package/dist/components/Indicators/CLPill/CLPill.css +1 -1
  59. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  60. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
  61. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  62. package/dist/components/Indicators/utils.d.ts +31 -4
  63. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
  64. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  65. package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -1
  66. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  67. package/dist/components/Loading/utils.d.ts +7 -2
  68. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  69. package/dist/components/Modals/CLModal/CLModal.js +92 -91
  70. package/dist/components/Modals/utils.d.ts +5 -1
  71. package/dist/components/Navigation/CLLink/CLLink.css +1 -1
  72. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  73. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  74. package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
  75. package/dist/components/Navigation/utils.d.ts +8 -1
  76. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
  77. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +200 -203
  78. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +3 -3
  79. package/dist/components/Popups/CLToast/CLToast.css +1 -1
  80. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  81. package/dist/components/Popups/utils.d.ts +8 -1
  82. package/dist/components/Providers/CLThemeProvider/utils.d.ts +0 -1
  83. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  84. package/dist/components/Typography/CLHeading/CLHeading.css +1 -1
  85. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  86. package/dist/components/Typography/CLText/CLText.css +1 -1
  87. package/dist/components/Typography/CLText/CLText.js +1 -1
  88. package/dist/components/Typography/utils.d.ts +3 -1
  89. package/dist/composables/useTheme.js +17 -16
  90. package/package.json +1 -4
  91. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Ba1c7ZNn.js +0 -252
  92. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-B_341q_b.js +0 -84
  93. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DZEfoinY.js +0 -121
  94. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-RAFpWIR2.js +0 -60
  95. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-UKMQXfI-.js +0 -88
  96. package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-BMozy0NJ.js +0 -65
  97. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-C82FyxKt.js +0 -33
  98. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-LiL8p_1M.js +0 -179
  99. package/dist/chunks/utils-B_htczw5.js +0 -30
  100. package/dist/chunks/utils-Bf54TEIp.js +0 -387
  101. package/dist/chunks/utils-CPp2QUlb.js +0 -15
  102. package/dist/chunks/utils-Cm9XP0Vu.js +0 -29
  103. package/dist/chunks/utils-DPwEOLZc.js +0 -26
  104. package/dist/chunks/utils-_aITYXfA.js +0 -73
@@ -1 +1 @@
1
- .clll-form-field{position:relative;flex:none;display:inline-flex;flex-direction:column;flex-wrap:wrap;box-sizing:border-box}.clll-form-field.clll-form-field--fluid{width:100%}.clll-form-field.clll-form-field--haspill>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-1_5)}.clll-form-field.clll-form-field--horizontal{display:flex;flex-direction:row}.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__pill,.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__spacer{width:50%}.clll-input__message{margin-top:var(--clll-unit-1);width:100%}.clll-input__message .clll-input__message__text{font-size:var(--clll-unit-3);font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0}
1
+ .clll-form-field{position:relative;flex:none;display:inline-flex;flex-direction:column;flex-wrap:wrap;box-sizing:border-box}.clll-form-field.clll-form-field--fluid{width:100%}.clll-form-field.clll-form-field--haspill>:not([hidden])~:not([hidden]){margin-top:var(--clll-unit-1_5)}.clll-form-field.clll-form-field--horizontal{display:flex;flex-direction:row}.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__pill,.clll-form-field.clll-form-field--horizontal.clll-form-field--haspill .clll-input__spacer{width:50%}.clll-input__message{margin-top:var(--clll-unit-1);width:100%;color:var(--clll-input-message-color, inherit)}.clll-input__message .clll-input__message__text{font-size:var(--clll-unit-3);font-family:var(--clll-font-family);-webkit-font-smoothing:antialiased;margin:0}
@@ -1,19 +1,19 @@
1
- import { defineComponent as b, ref as p, computed as y, createElementBlock as k, openBlock as C, withKeys as B, normalizeClass as E, unref as s, renderSlot as x } from "vue";
2
- import { CLColors as A } from "../index.js";
3
- import { a as _ } from "./utils-Cm9XP0Vu.js";
4
- const g = ["data-testid", "tabindex"], w = /* @__PURE__ */ b({
1
+ import { defineComponent as y, ref as b, computed as p, createElementBlock as k, openBlock as C, withKeys as B, normalizeStyle as E, normalizeClass as x, unref as d, renderSlot as A } from "vue";
2
+ import { CLColors as _ } from "../index.js";
3
+ import { a as g } from "./utils-cOhtsyeB.js";
4
+ const h = ["data-testid", "tabindex"], w = /* @__PURE__ */ y({
5
5
  name: "CLA11yButton",
6
6
  __name: "CLA11yButton",
7
7
  props: {
8
- color: { default: A.Neutral },
8
+ color: { default: _.Neutral },
9
9
  enabled: { type: Boolean, default: !1 },
10
10
  fluid: { type: Boolean, default: !0 },
11
11
  rounded: { type: Boolean, default: !0 },
12
12
  testId: { default: "clll-a11y__button" }
13
13
  },
14
14
  setup(e) {
15
- const t = e, u = ["a", "button"], n = p(), i = "clll-a11y__button", f = y(() => [
16
- i,
15
+ const t = e, i = ["a", "button"], n = b(), u = "clll-a11y__button", f = p(() => [
16
+ u,
17
17
  t.enabled ? "--enabled" : "",
18
18
  t.rounded ? "--rounded" : "",
19
19
  t.fluid ? "--fluid" : ""
@@ -23,21 +23,22 @@ const g = ["data-testid", "tabindex"], w = /* @__PURE__ */ b({
23
23
  ...n.value?.querySelectorAll("[data-expand-click-area]") ?? []
24
24
  ];
25
25
  if (r.length) {
26
- const d = r[0], m = o ? u.includes(o.tagName.toLowerCase()) : null;
27
- !o && d !== l.target && !m && d.click();
26
+ const s = r[0], m = o ? i.includes(o.tagName.toLowerCase()) : null;
27
+ !o && s !== l.target && !m && s.click();
28
28
  }
29
29
  };
30
30
  return (l, a) => (C(), k("div", {
31
31
  ref_key: "refExpandedArea",
32
32
  ref: n,
33
- class: E([s(f), s(_)({ color: e.color })]),
33
+ class: x(d(f)),
34
34
  "data-testid": e.testId,
35
35
  tabindex: e.enabled ? 0 : void 0,
36
+ style: E(d(g)({ color: e.color })),
36
37
  onClick: c,
37
38
  onKeyup: B(c, ["enter"])
38
39
  }, [
39
- x(l.$slots, "default")
40
- ], 42, g));
40
+ A(l.$slots, "default")
41
+ ], 46, h));
41
42
  }
42
43
  });
43
44
  export {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as C, useSlots as h, ref as S, computed as z, onMounted as B, nextTick as g, createBlock as n, openBlock as i, resolveDynamicComponent as L, normalizeStyle as k, normalizeClass as s, unref as l, withCtx as w, createCommentVNode as d, createElementBlock as A, renderSlot as R } from "vue";
2
- import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-B_341q_b.js";
3
- import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-DyT8L74M.js";
2
+ import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
3
+ import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-BQ1w9Ik9.js";
4
4
  import { CLColorVariants as I, CLButtonTypes as x, CLLinkTarget as M, CLSizes as o, CLIconSizes as m, CLColors as F, CLAlign as b, CLPosition as N } from "../index.js";
5
- import { b as V } from "./utils-Cm9XP0Vu.js";
5
+ import { b as V } from "./utils-cOhtsyeB.js";
6
6
  import { useHasSlotContent as D } from "../composables/useHasSlotContent.js";
7
7
  const J = /* @__PURE__ */ C({
8
8
  name: "CLButton",
@@ -81,7 +81,7 @@ const J = /* @__PURE__ */ C({
81
81
  ref_key: "buttonRef",
82
82
  ref: u,
83
83
  "aria-label": e.ariaLabel,
84
- class: s([l(y), l(V)({ color: e.color, variant: e.variant })]),
84
+ class: s(l(y)),
85
85
  "data-testid": e.testId,
86
86
  disabled: e.as === "button" ? e.busy || e.disabled : void 0,
87
87
  form: e.as === "button" ? e.form : void 0,
@@ -89,7 +89,7 @@ const J = /* @__PURE__ */ C({
89
89
  target: e.as === "a" ? e.target : void 0,
90
90
  title: e.title,
91
91
  type: e.as === "button" ? e.type : void 0,
92
- style: k({ width: e.width, height: e.height }),
92
+ style: k({ width: e.width, height: e.height, ...l(V)({ color: e.color, variant: e.variant }) }),
93
93
  onClick: $
94
94
  }, {
95
95
  default: w(() => [
@@ -0,0 +1,248 @@
1
+ import { defineComponent as I, useSlots as z, ref as v, computed as D, onMounted as F, nextTick as K, createElementBlock as r, openBlock as i, withKeys as M, normalizeStyle as k, normalizeClass as n, unref as l, createCommentVNode as d, createElementVNode as u, withDirectives as B, createVNode as q, vShow as A, createBlock as c, renderSlot as g, Fragment as G, withCtx as y, createTextVNode as b, toDisplayString as C } from "vue";
2
+ import { _ as E } from "./CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
3
+ import { _ as j } from "./CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js";
4
+ import { _ as h } from "./CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js";
5
+ import { _ as J } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
6
+ import { CLColorVariants as O, CLCardTypes as P, CLHeadingTypes as Q, CLHeadingLevels as U, CLLinkTarget as X, CLOverflow as Y, CLLoading as Z, CLColors as p, CLAlign as _, CLOrder as N, CLTextTypes as ee } from "../index.js";
7
+ import { c as te } from "./utils-zJwcNHl4.js";
8
+ import { useHasSlotContent as ae } from "../composables/useHasSlotContent.js";
9
+ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["alt", "loading", "src"], de = ["aria-label", "href", "target"], ye = /* @__PURE__ */ I({
10
+ name: "CLCard",
11
+ __name: "CLCard",
12
+ props: {
13
+ active: { type: Boolean, default: !1 },
14
+ align: { default: _.Left },
15
+ ariaLabel: {},
16
+ borderRadius: {},
17
+ bordered: { type: Boolean, default: !0 },
18
+ busy: { type: Boolean, default: !1 },
19
+ byline: {},
20
+ color: { default: p.Neutral },
21
+ compact: { type: Boolean, default: !1 },
22
+ elevated: { type: Boolean, default: !1 },
23
+ forwardRef: {},
24
+ height: { default: "auto" },
25
+ href: {},
26
+ image: {},
27
+ imageAltText: { default: "" },
28
+ imageHeight: { default: "auto" },
29
+ imageLoading: { default: Z.Eager },
30
+ imageOrder: {},
31
+ imageWidth: { default: "auto" },
32
+ onClick: {},
33
+ overflow: { default: Y.Hidden },
34
+ padded: { type: Boolean, default: !0 },
35
+ rounded: { type: Boolean, default: !0 },
36
+ target: { default: X.Self },
37
+ testId: { default: "clll-card" },
38
+ title: {},
39
+ titleHLevel: { default: U.H2 },
40
+ titleType: { default: Q.SubSection },
41
+ truncateTitle: { type: Boolean, default: !1 },
42
+ type: { default: P.Medium },
43
+ variant: { default: O.Soft },
44
+ width: { default: "auto" }
45
+ },
46
+ setup(e) {
47
+ const t = "clll-card", a = e, L = ae(), w = z(), $ = v(), T = v(), R = ["a", "button"], m = v(), V = D(() => [
48
+ t,
49
+ `${t}--${a.type}`,
50
+ `${t}--${a.color}-${a.variant}`,
51
+ `${t}--${a.variant}`,
52
+ `${t}--align-${a.align}`,
53
+ a.rounded ? `${t}--rounded` : `${t}--box`,
54
+ a.bordered ? `${t}--bordered` : "",
55
+ a.borderRadius ? `${t}--${a.borderRadius}` : "",
56
+ a.busy ? `${t}--busy` : `${t}--ready`,
57
+ a.compact ? `${t}--compact` : `${t}--no-compact`,
58
+ a.title || a.byline ? `${t}--has-header` : `${t}--no-header`,
59
+ $.value ? `${t}--has-heading` : `${t}--no-heading`,
60
+ L.value ? `${t}--has-content` : `${t}--no-content`,
61
+ T.value ? `${t}--has-footer` : `${t}--no-footer`,
62
+ a.image ? `${t}--has-image` : `${t}--has-no-image`,
63
+ a.imageOrder ? `${t}--image-${a.imageOrder}` : "",
64
+ a.active ? `${t}--active` : `${t}--inactive`,
65
+ a.onClick ? `${t}--has-link` : "",
66
+ a.truncateTitle ? `${t}--has-truncated-title` : "",
67
+ a.elevated ? `${t}--elevated` : "",
68
+ a.overflow ? `${t}--overflow-${a.overflow}` : "",
69
+ a.padded ? "" : `${t}--no-padding`
70
+ ]), H = (o) => {
71
+ if (a.busy || !a.onClick) return;
72
+ const { target: s } = o, f = s ? s.closest("a,button") : void 0, x = [
73
+ ...m.value?.querySelectorAll("[data-expand-click-area]") ?? []
74
+ ];
75
+ if (x.length) {
76
+ const S = x[0], W = f ? R.includes(f.tagName.toLowerCase()) : null;
77
+ !f && S !== o.target && !W && S.click();
78
+ }
79
+ };
80
+ return F(async () => {
81
+ await K(), m.value && a.forwardRef?.(m.value), $.value = w?.heading, T.value = w?.footer;
82
+ }), (o, s) => (i(), r("div", {
83
+ ref_key: "refExpandedArea",
84
+ ref: m,
85
+ class: n(l(V)),
86
+ style: k({ ...l(te)({ color: e.color, variant: e.variant }), width: e.width, height: e.height, overflow: e.overflow }),
87
+ "data-testid": e.testId,
88
+ tabindex: e.onClick ? 0 : void 0,
89
+ onClick: H,
90
+ onKeyup: M(H, ["enter"])
91
+ }, [
92
+ e.image && (e.imageOrder === l(N).Before || !e.imageOrder) ? (i(), r("div", {
93
+ key: 0,
94
+ class: n(`${t}__image`),
95
+ style: k({ width: e.imageWidth, height: e.imageHeight })
96
+ }, [
97
+ B(q(l(h), {
98
+ width: e.imageWidth,
99
+ height: e.imageHeight,
100
+ rounded: !1
101
+ }, null, 8, ["width", "height"]), [
102
+ [A, e.busy]
103
+ ]),
104
+ B(u("img", {
105
+ alt: e.imageAltText,
106
+ class: n(`${t}__image__elem`),
107
+ loading: e.imageLoading,
108
+ src: e.image
109
+ }, null, 10, ie), [
110
+ [A, !e.busy]
111
+ ])
112
+ ], 6)) : d("", !0),
113
+ u("div", {
114
+ class: n(`${t}__content`)
115
+ }, [
116
+ u("div", {
117
+ class: n(`${t}__header`)
118
+ }, [
119
+ e.busy ? (i(), c(l(h), {
120
+ key: 0,
121
+ height: "28px"
122
+ })) : d("", !0),
123
+ e.busy ? (i(), c(l(h), {
124
+ key: 1,
125
+ width: "70%",
126
+ height: "16px"
127
+ })) : d("", !0),
128
+ !e.onClick && !e.href ? (i(), r(G, { key: 2 }, [
129
+ g(o.$slots, "heading"),
130
+ e.title && !e.busy ? (i(), c(l(E), {
131
+ key: 0,
132
+ align: e.align,
133
+ class: n(`${t}__heading`),
134
+ color: e.color,
135
+ level: e.titleHLevel,
136
+ truncate: e.truncateTitle,
137
+ type: e.titleType
138
+ }, {
139
+ default: y(() => [
140
+ b(C(e.title), 1)
141
+ ]),
142
+ _: 1
143
+ }, 8, ["align", "class", "color", "level", "truncate", "type"])) : d("", !0)
144
+ ], 64)) : e.title || l($) && (e.onClick || e.href) ? (i(), c(l(j), {
145
+ key: 3,
146
+ "aria-label": e.ariaLabel,
147
+ color: e.color,
148
+ href: e.href,
149
+ target: e.target,
150
+ "on-click": e.onClick,
151
+ "data-expand-click-area": ""
152
+ }, {
153
+ default: y(() => [
154
+ g(o.$slots, "heading"),
155
+ e.title && !e.busy ? (i(), c(l(E), {
156
+ key: 0,
157
+ align: e.align,
158
+ class: n(`${t}__heading`),
159
+ color: e.color,
160
+ level: e.titleHLevel,
161
+ truncate: e.truncateTitle,
162
+ type: e.titleType
163
+ }, {
164
+ default: y(() => [
165
+ b(C(e.title), 1)
166
+ ]),
167
+ _: 1
168
+ }, 8, ["align", "class", "color", "level", "truncate", "type"])) : d("", !0)
169
+ ]),
170
+ _: 3
171
+ }, 8, ["aria-label", "color", "href", "target", "on-click"])) : d("", !0),
172
+ g(o.$slots, "byline"),
173
+ e.byline && !e.busy ? (i(), c(l(J), {
174
+ key: 4,
175
+ align: e.align,
176
+ class: n(`${t}__byline`),
177
+ color: e.color,
178
+ type: l(ee).Small
179
+ }, {
180
+ default: y(() => [
181
+ b(C(e.byline), 1)
182
+ ]),
183
+ _: 1
184
+ }, 8, ["align", "class", "color", "type"])) : d("", !0)
185
+ ], 2),
186
+ u("div", {
187
+ class: n(`${t}__slot`)
188
+ }, [
189
+ u("div", {
190
+ ref: "slot-content",
191
+ class: n([`${t}__slot-content`, { busy: e.busy }])
192
+ }, [
193
+ l(L) && e.busy ? (i(), c(l(h), {
194
+ key: 0,
195
+ width: "100%",
196
+ height: "100%"
197
+ })) : d("", !0),
198
+ u("div", null, [
199
+ g(o.$slots, "default")
200
+ ])
201
+ ], 2)
202
+ ], 2),
203
+ u("div", {
204
+ class: n(`${t}__footer`)
205
+ }, [
206
+ g(o.$slots, "footer")
207
+ ], 2)
208
+ ], 2),
209
+ e.image && e.imageOrder === l(N).After ? (i(), r("div", {
210
+ key: 1,
211
+ class: n(`${t}__image`),
212
+ style: k({ width: e.imageWidth, height: e.imageHeight })
213
+ }, [
214
+ e.busy ? (i(), c(l(h), {
215
+ key: 0,
216
+ width: e.imageWidth,
217
+ height: e.imageHeight,
218
+ rounded: !1
219
+ }, null, 8, ["width", "height"])) : d("", !0),
220
+ g(o.$slots, "image"),
221
+ e.busy ? d("", !0) : (i(), r("img", {
222
+ key: 1,
223
+ alt: e.imageAltText,
224
+ class: n(`${t}__image__elem`),
225
+ loading: e.imageLoading,
226
+ src: e.image
227
+ }, null, 10, ne))
228
+ ], 6)) : d("", !0),
229
+ !e.title && (e.onClick || e.href) ? (i(), r("a", {
230
+ key: 2,
231
+ "aria-label": e.ariaLabel,
232
+ class: "sr-only",
233
+ href: e.href,
234
+ target: e.target,
235
+ "data-expand-click-area": "",
236
+ onClick: s[0] || (s[0] = //@ts-ignore
237
+ (...f) => e.onClick && e.onClick(...f))
238
+ }, null, 8, de)) : d("", !0),
239
+ e.onClick && e.variant !== l(O).Ghost ? (i(), r("div", {
240
+ key: 3,
241
+ class: n(`${t}__hover-elem`)
242
+ }, null, 2)) : d("", !0)
243
+ ], 46, le));
244
+ }
245
+ });
246
+ export {
247
+ ye as _
248
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, createElementBlock as i, openBlock as o, normalizeClass as a, createVNode as m, unref as d, withCtx as n, createTextVNode as c, toDisplayString as f } from "vue";
2
- import { _ as u } from "./CLText.vue_vue_type_style_index_0_lang-CG6043pv.js";
2
+ import { _ as u } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
3
3
  import { CLSizes as l, CLTextTypes as t } from "../index.js";
4
4
  const b = ["for", "data-testid"], h = /* @__PURE__ */ r({
5
5
  name: "CLFormLabel",
@@ -1,7 +1,7 @@
1
- import { defineComponent as i, computed as r, createBlock as u, openBlock as f, resolveDynamicComponent as p, unref as o, normalizeClass as m, withCtx as g, renderSlot as C } from "vue";
1
+ import { defineComponent as i, computed as r, createBlock as u, openBlock as f, resolveDynamicComponent as p, unref as o, normalizeStyle as m, normalizeClass as g, withCtx as C, renderSlot as y } from "vue";
2
2
  import { CLHeadingTypes as l, CLColors as $, CLAlign as L, CLHeadingLevels as n } from "../index.js";
3
- import { t as h } from "./utils-CPp2QUlb.js";
4
- const T = /* @__PURE__ */ i({
3
+ import { t as h } from "./utils-C_e2F4X7.js";
4
+ const b = /* @__PURE__ */ i({
5
5
  name: "CLHeading",
6
6
  __name: "CLHeading",
7
7
  props: {
@@ -34,17 +34,18 @@ const T = /* @__PURE__ */ i({
34
34
  `${t}--${e.type}`,
35
35
  e.bolder ? `${t}--bolder` : ""
36
36
  ]);
37
- return (d, y) => (f(), u(p(o(s)), {
38
- class: m([o(c), o(h)({ color: a.color })]),
39
- "data-testid": a.testId
37
+ return (d, H) => (f(), u(p(o(s)), {
38
+ class: g(o(c)),
39
+ "data-testid": a.testId,
40
+ style: m(o(h)({ color: a.color }))
40
41
  }, {
41
- default: g(() => [
42
- C(d.$slots, "default")
42
+ default: C(() => [
43
+ y(d.$slots, "default")
43
44
  ]),
44
45
  _: 3
45
- }, 8, ["class", "data-testid"]));
46
+ }, 8, ["class", "data-testid", "style"]));
46
47
  }
47
48
  });
48
49
  export {
49
- T as _
50
+ b as _
50
51
  };
@@ -0,0 +1,84 @@
1
+ import { defineComponent as p, computed as v, onMounted as z, createElementBlock as a, openBlock as m, normalizeStyle as X, normalizeClass as u, unref as h, createElementVNode as w } from "vue";
2
+ import { CLMode as f, CLColors as g, CLColorVariants as B, CLIconSizes as o } from "../index.js";
3
+ import { g as I } from "./utils-CS9Gz4oX.js";
4
+ import { useTheme as S } from "../composables/useTheme.js";
5
+ import { i as x } from "./helper--hRjZVm6.js";
6
+ const M = ({ color: e = g.Neutral }) => {
7
+ const { colors: c, darkMode: t } = S(), n = t.value ? f.Light : f.Dark;
8
+ return {
9
+ "--clll-icon-color": I({
10
+ color: e,
11
+ colors: c.value,
12
+ mode: n,
13
+ variant: B.Text
14
+ })?.textBody ?? "inherit"
15
+ };
16
+ }, E = ["data-testid"], $ = ["height", "width"], b = ["href"], O = /* @__PURE__ */ p({
17
+ name: "CLIcon",
18
+ __name: "CLIcon",
19
+ props: {
20
+ color: { default: g.Neutral },
21
+ name: {},
22
+ size: { default: o.Small },
23
+ testId: { default: "clll-icon" }
24
+ },
25
+ setup(e) {
26
+ const c = e, t = "clll-icon", n = {
27
+ [o.Tiny]: 20,
28
+ [o.Small]: 24,
29
+ [o.Medium]: 28,
30
+ [o.Large]: 32,
31
+ [o.XL]: 36,
32
+ [o.XXL]: 40,
33
+ [o.XXXL]: 44,
34
+ [o.XXXXL]: 48
35
+ }, r = v(() => [
36
+ t,
37
+ `${t}--${c.name}`,
38
+ `${t}--${c.size}`
39
+ ]), L = async () => {
40
+ if (!x) return;
41
+ let i = document.getElementById("clll-icons");
42
+ if (!i)
43
+ try {
44
+ const d = (/* @__PURE__ */ Object.assign({
45
+ "/src/icons.svg": () => import("./icons-QRYZHNAf.js").then((C) => C.default)
46
+ }))["/src/icons.svg"];
47
+ if (!d) {
48
+ console.warn("[Callaloo] Icon sprite not found");
49
+ return;
50
+ }
51
+ const y = await d();
52
+ if (i = document.getElementById("clll-icons"), i) return;
53
+ const s = document.createElement("div");
54
+ s.id = "clll-icons", s.style.display = "none", s.innerHTML = y.toString(), document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", () => {
55
+ document.body.insertBefore(s, document.body.childNodes[0]);
56
+ }) : document.body.insertBefore(s, document.body.childNodes[0]);
57
+ } catch (l) {
58
+ console.error("[Callaloo] Failed to load icon sprite:", l);
59
+ }
60
+ };
61
+ return z(() => {
62
+ L();
63
+ }), (i, l) => (m(), a("span", {
64
+ class: u(h(r)),
65
+ "data-testid": e.testId,
66
+ style: X({ ...h(M)({ color: e.color }), width: n[e.size] + "px", height: n[e.size] + "px" })
67
+ }, [
68
+ (m(), a("svg", {
69
+ "aria-hidden": "true",
70
+ class: u(`${t}-sprite`),
71
+ height: n[e.size],
72
+ width: n[e.size],
73
+ viewBox: "0 0 24 24"
74
+ }, [
75
+ w("use", {
76
+ href: `#${e.name}`
77
+ }, null, 8, b)
78
+ ], 10, $))
79
+ ], 14, E));
80
+ }
81
+ });
82
+ export {
83
+ O as _
84
+ };
@@ -0,0 +1,153 @@
1
+ import { defineComponent as T, createElementBlock as y, openBlock as L, normalizeClass as D, unref as q, renderSlot as G, Fragment as O, renderList as A, normalizeStyle as R, createElementVNode as z, toDisplayString as F } from "vue";
2
+ import { CLOrientation as V, CLMode as u, CLColorVariants as n, CLColors as E } from "../index.js";
3
+ import { useTheme as B } from "../composables/useTheme.js";
4
+ import { g as k } from "./utils-CS9Gz4oX.js";
5
+ const v = "clll-form-field", K = /* @__PURE__ */ T({
6
+ __name: "CLFormField",
7
+ props: {
8
+ fluid: { type: Boolean },
9
+ hasPill: { type: Boolean },
10
+ hasCharCounter: { type: Boolean },
11
+ orientation: {}
12
+ },
13
+ setup(e) {
14
+ return (i, d) => (L(), y("div", {
15
+ class: D([
16
+ v,
17
+ e.fluid || e.orientation === q(V).Horizontal ? `${v}--fluid` : `${v}--fixed`,
18
+ e.orientation ? `${v}--${e.orientation}` : "",
19
+ e.hasPill ? `${v}--haspill` : "",
20
+ e.hasCharCounter ? `${v}--hascharcounter` : ""
21
+ ])
22
+ }, [
23
+ G(i.$slots, "default")
24
+ ], 2));
25
+ }
26
+ }), Q = ({ color: e, disabled: i, variant: d }) => {
27
+ const { borderRadius: o, colors: t, darkMode: s } = B(), a = s.value ? u.Dark : u.Light, c = d === n.Ghost, b = k({
28
+ color: e,
29
+ colors: t.value,
30
+ mode: a,
31
+ variant: n.Solid
32
+ }), l = k({
33
+ color: e,
34
+ colors: t.value,
35
+ mode: a,
36
+ variant: n.Outline
37
+ }), r = s.value ? "black" : "white", C = l?.border, f = l?.disabled, m = s.value ? "black" : b?.textDisabled, x = l?.focus, g = l?.focus, h = l?.text, p = l?.textDisabled, $ = S();
38
+ return {
39
+ "--clll-checkbox-bg": c ? "transparent" : r ?? "white",
40
+ "--clll-checkbox-border": c ? "transparent" : C ?? "transparent",
41
+ "--clll-checkbox-disabled-border": f ?? "transparent",
42
+ "--clll-checkbox-disabled-bg": m ?? "transparent",
43
+ "--clll-checkbox-checked-bg": r ?? "white",
44
+ "--clll-checkbox-focus-border": x ?? "transparent",
45
+ "--clll-checkbox-focus-shadow": g ?? "transparent",
46
+ "--clll-checkbox-icon-color": h ?? "inherit",
47
+ "--clll-checkbox-disabled-icon-color": p ?? "transparent",
48
+ "--clll-checkbox-indicator-color": h ?? "inherit",
49
+ "--clll-checkbox-disabled-indicator-color": p ?? "transparent",
50
+ "--clll-checkbox-theme-radius": o.value ? `var(--clll-${o.value})` : void 0,
51
+ "--clll-checkbox-outline-width": c ? "0px" : "2px",
52
+ "--clll-checkbox-required-asterisk-color": $ ?? "red"
53
+ };
54
+ }, U = ({
55
+ color: e,
56
+ disabled: i,
57
+ readonly: d,
58
+ variant: o
59
+ }) => {
60
+ const { borderRadius: t, colors: s, darkMode: a } = B(), c = a.value ? u.Dark : u.Light, b = o === n.Ghost, l = k({
61
+ color: e,
62
+ colors: s.value,
63
+ mode: c,
64
+ variant: n.Solid
65
+ }), r = k({
66
+ color: e,
67
+ colors: s.value,
68
+ mode: c,
69
+ variant: n.Outline
70
+ }), C = a.value ? "black" : "white", f = a.value ? "black" : l?.textDisabled, m = r?.border, x = r?.disabled, g = a.value ? "black" : l?.textDisabled, h = r?.focus, p = r?.focus, $ = r?.text, M = r?.focus, P = S();
71
+ return {
72
+ "--clll-input-bg": b ? "transparent" : C ?? "white",
73
+ "--clll-input-border": b ? "transparent" : m ?? "transparent",
74
+ "--clll-input-disabled-border": x ?? "transparent",
75
+ "--clll-input-disabled-bg": g ?? "transparent",
76
+ "--clll-input-readonly-border": x ?? "transparent",
77
+ "--clll-input-readonly-bg": g ?? "transparent",
78
+ "--clll-input-focus-border": h ?? "transparent",
79
+ "--clll-input-focus-shadow": p ?? "transparent",
80
+ "--clll-input-text": $ ?? "inherit",
81
+ "--clll-input-text-placeholder": M ?? "transparent",
82
+ "--clll-input-grouped-bg": f ?? "transparent",
83
+ "--clll-input-prefix-suffix-color": M ?? "transparent",
84
+ "--clll-input-theme-radius": t.value ? `var(--clll-${t.value})` : void 0,
85
+ "--clll-input-ghost-padding": b ? "0" : void 0,
86
+ "--clll-input-required-asterisk-color": P ?? "red"
87
+ };
88
+ }, N = ({ color: e }) => {
89
+ const { colors: i, darkMode: d } = B(), o = d.value ? u.Dark : u.Light;
90
+ return {
91
+ "--clll-input-message-color": k({
92
+ color: e,
93
+ colors: i.value,
94
+ mode: o,
95
+ variant: n.Outline
96
+ })?.textBody ?? "inherit"
97
+ };
98
+ }, W = ({ color: e, disabled: i, variant: d }) => {
99
+ const { borderRadius: o, colors: t, darkMode: s } = B(), a = s.value ? u.Dark : u.Light, c = d === n.Ghost, b = k({
100
+ color: e,
101
+ colors: t.value,
102
+ mode: a,
103
+ variant: n.Solid
104
+ }), l = k({
105
+ color: e,
106
+ colors: t.value,
107
+ mode: a,
108
+ variant: n.Outline
109
+ }), r = s.value ? "black" : "white", C = l?.border, f = l?.disabled, m = s.value ? "black" : b?.textDisabled, x = l?.focus, g = l?.focus, h = l?.text, p = l?.focus, $ = S();
110
+ return {
111
+ "--clll-select-bg": c ? "transparent" : r ?? "white",
112
+ "--clll-select-border": c ? "transparent" : C ?? "transparent",
113
+ "--clll-select-disabled-border": f ?? "transparent",
114
+ "--clll-select-disabled-bg": m ?? "transparent",
115
+ "--clll-select-focus-border": x ?? "transparent",
116
+ "--clll-select-focus-shadow": g ?? "transparent",
117
+ "--clll-select-text": h ?? "inherit",
118
+ "--clll-select-text-placeholder": p ?? "transparent",
119
+ "--clll-select-icon-color": h ?? "inherit",
120
+ "--clll-select-disabled-icon-color": p ?? "transparent",
121
+ "--clll-select-theme-radius": o.value ? `var(--clll-${o.value})` : void 0,
122
+ "--clll-select-ghost-padding": c ? "0" : void 0,
123
+ "--clll-select-required-asterisk-color": $ ?? "red"
124
+ };
125
+ }, S = () => {
126
+ const { colors: e, darkMode: i } = B();
127
+ return i.value ? e.value.danger?.["400"] : e.value.danger?.["700"];
128
+ }, w = "clll-input__message", X = /* @__PURE__ */ T({
129
+ __name: "CLInputMessages",
130
+ props: {
131
+ id: {},
132
+ messages: {},
133
+ messageType: { default: E.Neutral }
134
+ },
135
+ setup(e) {
136
+ return (i, d) => (L(!0), y(O, null, A(e.messages, (o, t) => (L(), y("span", {
137
+ key: `${e.id}-message-${t}`,
138
+ class: D([w, `${w}--${e.messageType}`]),
139
+ style: R(q(N)({ color: e.messageType }))
140
+ }, [
141
+ z("span", {
142
+ class: D([`${w}__text`])
143
+ }, F(o), 3)
144
+ ], 6))), 128));
145
+ }
146
+ });
147
+ export {
148
+ K as _,
149
+ X as a,
150
+ Q as c,
151
+ U as i,
152
+ W as s
153
+ };