@codeandfunction/callaloo 3.16.5 → 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 (42) hide show
  1. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js → CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js} +1 -1
  2. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
  3. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
  4. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BDL4xcfJ.js → CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js} +1 -1
  5. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-C_BQCWeg.js → CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js} +1 -1
  6. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DwNvvX0v.js → CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js} +2 -2
  7. package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-Mikbgpn2.js → CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js} +21 -24
  8. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
  9. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-C6gOJx7A.js → CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js} +53 -56
  10. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  11. package/dist/components/CLIcon/CLIcon.css +1 -1
  12. package/dist/components/CLIcon/CLIcon.js +1 -1
  13. package/dist/components/CLTable/CLTable.css +1 -1
  14. package/dist/components/CLTable/CLTable.js +72 -74
  15. package/dist/components/Containers/CLCard/CLCard.css +1 -1
  16. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  17. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  18. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +2 -2
  19. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  20. package/dist/components/Form/CLInput/CLInput.js +3 -3
  21. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  22. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
  23. package/dist/components/Indicators/CLBanner/CLBanner.js +52 -56
  24. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  25. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
  26. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  27. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
  28. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  29. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  30. package/dist/components/Modals/CLModal/CLModal.js +69 -72
  31. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  32. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  33. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  34. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
  35. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +199 -202
  36. package/dist/components/Popups/CLToast/CLToast.css +1 -1
  37. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  38. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Bj9WF_mX.js +0 -253
  41. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js +0 -87
  42. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-Csb9YnTI.js +0 -34
@@ -1,5 +1,5 @@
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--1FTkRVd.js";
2
+ import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
3
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
5
  import { b as V } from "./utils-cOhtsyeB.js";
@@ -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
+ };
@@ -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
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as k, computed as C, createElementBlock as x, openBlock as s, normalizeStyle as L, normalizeClass as b, unref as n, renderSlot as h, createBlock as v, createCommentVNode as y } from "vue";
2
- import { _ as g } from "./CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js";
2
+ import { _ as g } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
3
3
  import { CLMode as d, CLColors as u, CLColorVariants as $, CLLinkTarget as B, CLIconSizes as z, CLIconNames as I } from "../index.js";
4
4
  import { g as S } from "./utils-CS9Gz4oX.js";
5
5
  import { useTheme as D } from "../composables/useTheme.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as o, openBlock as c, unref as d, withCtx as f, renderSlot as m } from "vue";
2
- import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-BDL4xcfJ.js";
2
+ import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js";
3
3
  import { CLColors as k } from "../index.js";
4
4
  const x = /* @__PURE__ */ i({
5
5
  name: "CLNavLink",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, computed as d, createElementBlock as i, openBlock as a, Fragment as h, createCommentVNode as o, createBlock as u, normalizeStyle as m, normalizeClass as c, unref as t, createElementVNode as s, toDisplayString as r, withCtx as z } from "vue";
2
- import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js";
3
- import { _ as $ } from "./CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js";
2
+ import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js";
3
+ import { _ as $ } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
4
4
  import { CLColorVariants as B, CLColors as L, CLIconSizes as f } from "../index.js";
5
5
  import { p as C } from "./utils-Sqgt8Fa4.js";
6
6
  const x = ["data-testid"], P = /* @__PURE__ */ y({
@@ -1,15 +1,15 @@
1
- import { defineComponent as p, mergeModels as _, useCssVars as y, useModel as $, computed as d, createElementBlock as n, openBlock as c, normalizeStyle as C, normalizeClass as s, unref as t, createCommentVNode as v, createElementVNode as a, createVNode as g, withCtx as V, createTextVNode as x, toDisplayString as N } from "vue";
2
- import { _ as z } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
3
- import { CLTextTypes as B, CLColors as u, CLSizes as L } from "../index.js";
4
- import { a as b } from "./utils-Sqgt8Fa4.js";
5
- const h = ["data-testid"], E = /* @__PURE__ */ p({
1
+ import { defineComponent as p, mergeModels as f, useModel as _, computed as d, createElementBlock as n, openBlock as c, normalizeStyle as y, normalizeClass as s, unref as t, createCommentVNode as $, createElementVNode as l, createVNode as g, withCtx as v, createTextVNode as C, toDisplayString as V } from "vue";
2
+ import { _ as x } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
3
+ import { CLTextTypes as N, CLColors as u, CLSizes as z } from "../index.js";
4
+ import { a as B } from "./utils-Sqgt8Fa4.js";
5
+ const L = ["data-testid"], k = /* @__PURE__ */ p({
6
6
  name: "CLProgress",
7
7
  __name: "CLProgress",
8
- props: /* @__PURE__ */ _({
8
+ props: /* @__PURE__ */ f({
9
9
  color: { default: u.Primary },
10
10
  inverted: { type: Boolean, default: !1 },
11
11
  rounded: { type: Boolean, default: !0 },
12
- size: { default: L.Medium },
12
+ size: { default: z.Medium },
13
13
  status: { type: Boolean, default: !1 },
14
14
  testId: { default: "clll-progress" }
15
15
  }, {
@@ -18,49 +18,46 @@ const h = ["data-testid"], E = /* @__PURE__ */ p({
18
18
  }),
19
19
  emits: ["update:modelValue"],
20
20
  setup(o) {
21
- y((f) => ({
22
- v692adfe6: l.value
23
- }));
24
- const r = o, l = $(o, "modelValue"), e = "clll-progress", i = d(() => [
21
+ const r = o, a = _(o, "modelValue"), e = "clll-progress", i = d(() => [
25
22
  e,
26
23
  `${e}--${r.color}`,
27
24
  `${e}--${r.size}`,
28
25
  r.inverted ? `${e}--inverted` : "",
29
26
  r.rounded ? `${e}--rounded` : `${e}--not-rounded`
30
- ]), m = d(() => `${l.value}%`);
31
- return (f, M) => (c(), n("div", {
27
+ ]), m = d(() => `${a.value}%`);
28
+ return (b, h) => (c(), n("div", {
32
29
  class: s(t(i)),
33
30
  "data-testid": o.testId,
34
- style: C(t(b)({ color: o.color }))
31
+ style: y({ ...t(B)({ color: o.color }), "--clll-progress-value": a.value })
35
32
  }, [
36
33
  o.status ? (c(), n("div", {
37
34
  key: 0,
38
35
  class: s(`${e}__status__container`)
39
36
  }, [
40
- a("div", {
37
+ l("div", {
41
38
  class: s(`${e}__status__label`)
42
39
  }, [
43
- g(t(z), {
40
+ g(t(x), {
44
41
  color: t(u).Neutral,
45
- type: t(B).Summary
42
+ type: t(N).Summary
46
43
  }, {
47
- default: V(() => [
48
- x(N(t(m)), 1)
44
+ default: v(() => [
45
+ C(V(t(m)), 1)
49
46
  ]),
50
47
  _: 1
51
48
  }, 8, ["color", "type"])
52
49
  ], 2)
53
- ], 2)) : v("", !0),
54
- a("div", {
50
+ ], 2)) : $("", !0),
51
+ l("div", {
55
52
  class: s(`${e}__bar-container`)
56
53
  }, [
57
- a("div", {
54
+ l("div", {
58
55
  class: s(`${e}__bar`)
59
56
  }, null, 2)
60
57
  ], 2)
61
- ], 14, h));
58
+ ], 14, L));
62
59
  }
63
60
  });
64
61
  export {
65
- E as _
62
+ k as _
66
63
  };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as d, computed as a, createElementBlock as r, openBlock as i, normalizeStyle as u, normalizeClass as c, unref as n, createElementVNode as m } from "vue";
2
+ import { s as f } from "./utils-CAV1sBee.js";
3
+ const h = ["data-testid"], $ = /* @__PURE__ */ d({
4
+ name: "CLSkeleton",
5
+ __name: "CLSkeleton",
6
+ props: {
7
+ borderRadius: {},
8
+ height: { default: "100%" },
9
+ rounded: { type: Boolean, default: !0 },
10
+ testId: { default: "clll-skeleton" },
11
+ width: { default: "100%" }
12
+ },
13
+ setup(e) {
14
+ const l = e, t = "clll-skeleton", s = a(() => [
15
+ t,
16
+ l.borderRadius ? `${t}--${l.borderRadius}` : "",
17
+ l.rounded ? `${t}--rounded` : `${t}--square`
18
+ ]);
19
+ return (k, o) => (i(), r("div", {
20
+ class: c(n(s)),
21
+ "data-testid": e.testId,
22
+ style: u({ ...n(f)(), width: e.width, height: e.height })
23
+ }, [...o[0] || (o[0] = [
24
+ m("div", { class: "clll-skeleton__animation" }, null, -1)
25
+ ])], 14, h));
26
+ }
27
+ });
28
+ export {
29
+ $ as _
30
+ };