@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.
- package/dist/assets/CLInputMessages.css +1 -1
- 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
- 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
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
- 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
- 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
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-Bt5xgOT4.js +153 -0
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js +68 -0
- 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
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js +90 -0
- package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js +63 -0
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
- 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
- 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
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js +182 -0
- package/dist/chunks/utils-CAV1sBee.js +24 -0
- package/dist/chunks/utils-CS9Gz4oX.js +25 -0
- package/dist/chunks/utils-C_e2F4X7.js +17 -0
- package/dist/chunks/utils-Sqgt8Fa4.js +85 -0
- package/dist/chunks/utils-cOhtsyeB.js +41 -0
- package/dist/chunks/utils-zJwcNHl4.js +37 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -1
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.css +1 -1
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +1 -1
- package/dist/components/Buttons/utils.d.ts +16 -2
- package/dist/components/CLIcon/CLIcon.css +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/CLIcon/utils.d.ts +3 -1
- package/dist/components/CLTable/CLTable.css +1 -1
- package/dist/components/CLTable/CLTable.js +113 -117
- package/dist/components/CLTable/utils.d.ts +5 -1
- package/dist/components/Containers/CLCard/CLCard.css +1 -1
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
- package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +32 -31
- package/dist/components/Containers/utils.d.ts +15 -2
- package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -1
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +33 -35
- package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +2 -2
- package/dist/components/Form/CLInput/CLInput.css +1 -1
- package/dist/components/Form/CLInput/CLInput.js +31 -33
- package/dist/components/Form/CLInput/CLInput.vue.d.ts +3 -3
- package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -1
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +35 -34
- package/dist/components/Form/CLSelect/CLSelect.css +1 -1
- package/dist/components/Form/CLSelect/CLSelect.js +32 -31
- package/dist/components/Form/CLTextArea/CLTextArea.css +1 -1
- package/dist/components/Form/CLTextArea/CLTextArea.js +21 -20
- package/dist/components/Form/utils.d.ts +51 -4
- package/dist/components/Indicators/CLBadge/CLBadge.css +1 -1
- package/dist/components/Indicators/CLBadge/CLBadge.js +12 -11
- package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +49 -52
- package/dist/components/Indicators/CLPill/CLPill.css +1 -1
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
- package/dist/components/Indicators/utils.d.ts +31 -4
- package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
- package/dist/components/Loading/utils.d.ts +7 -2
- package/dist/components/Modals/CLModal/CLModal.css +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +92 -91
- package/dist/components/Modals/utils.d.ts +5 -1
- package/dist/components/Navigation/CLLink/CLLink.css +1 -1
- package/dist/components/Navigation/CLLink/CLLink.js +1 -1
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
- package/dist/components/Navigation/utils.d.ts +8 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +200 -203
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +3 -3
- package/dist/components/Popups/CLToast/CLToast.css +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Popups/utils.d.ts +8 -1
- package/dist/components/Providers/CLThemeProvider/utils.d.ts +0 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/dist/components/Typography/CLHeading/CLHeading.css +1 -1
- package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
- package/dist/components/Typography/CLText/CLText.css +1 -1
- package/dist/components/Typography/CLText/CLText.js +1 -1
- package/dist/components/Typography/utils.d.ts +3 -1
- package/dist/composables/useTheme.js +17 -16
- package/package.json +1 -4
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Ba1c7ZNn.js +0 -252
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-B_341q_b.js +0 -84
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DZEfoinY.js +0 -121
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-RAFpWIR2.js +0 -60
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-UKMQXfI-.js +0 -88
- package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-BMozy0NJ.js +0 -65
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-C82FyxKt.js +0 -33
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-LiL8p_1M.js +0 -179
- package/dist/chunks/utils-B_htczw5.js +0 -30
- package/dist/chunks/utils-Bf54TEIp.js +0 -387
- package/dist/chunks/utils-CPp2QUlb.js +0 -15
- package/dist/chunks/utils-Cm9XP0Vu.js +0 -29
- package/dist/chunks/utils-DPwEOLZc.js +0 -26
- package/dist/chunks/utils-_aITYXfA.js +0 -73
|
@@ -0,0 +1,68 @@
|
|
|
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-R0Nhlutc.js";
|
|
3
|
+
import { CLMode as d, CLColors as u, CLColorVariants as $, CLLinkTarget as B, CLIconSizes as z, CLIconNames as I } from "../index.js";
|
|
4
|
+
import { g as S } from "./utils-CS9Gz4oX.js";
|
|
5
|
+
import { useTheme as D } from "../composables/useTheme.js";
|
|
6
|
+
const H = ({
|
|
7
|
+
color: e = u.Primary,
|
|
8
|
+
underline: r = !0
|
|
9
|
+
}) => {
|
|
10
|
+
const { colors: t, darkMode: o } = D(), a = o.value ? d.Dark : d.Light, l = S({
|
|
11
|
+
color: e,
|
|
12
|
+
colors: t.value,
|
|
13
|
+
mode: a,
|
|
14
|
+
variant: $.Outline
|
|
15
|
+
}), i = l?.border, m = l?.textDisabled, c = l?.textBody, f = o.value ? l?.borderHover : l?.textDisabled;
|
|
16
|
+
return {
|
|
17
|
+
"--clll-link-text-color": c ?? "inherit",
|
|
18
|
+
"--clll-link-text-hover": f ?? "inherit",
|
|
19
|
+
"--clll-link-underline-color": r ? i ?? "transparent" : "transparent",
|
|
20
|
+
"--clll-link-underline-hover": r ? m ?? "transparent" : "transparent",
|
|
21
|
+
"--clll-link-focus-border": c ?? "transparent",
|
|
22
|
+
"--clll-link-focus-shadow": l?.shadow ?? "transparent"
|
|
23
|
+
};
|
|
24
|
+
}, T = ["aria-label", "data-testid", "href", "rel", "target"], P = /* @__PURE__ */ k({
|
|
25
|
+
name: "CLLink",
|
|
26
|
+
__name: "CLLink",
|
|
27
|
+
props: {
|
|
28
|
+
ariaLabel: {},
|
|
29
|
+
color: { default: u.Primary },
|
|
30
|
+
external: { type: Boolean, default: !1 },
|
|
31
|
+
href: {},
|
|
32
|
+
onClick: {},
|
|
33
|
+
rel: { default: "noreferrer noopener" },
|
|
34
|
+
target: { default: B.Self },
|
|
35
|
+
testId: { default: "clll-link" },
|
|
36
|
+
underline: { type: Boolean, default: !0 }
|
|
37
|
+
},
|
|
38
|
+
setup(e) {
|
|
39
|
+
const r = e, t = "clll-link", o = C(() => [
|
|
40
|
+
t,
|
|
41
|
+
`${t}--${r.color}`,
|
|
42
|
+
`${t}--${r.external ? "external" : "internal"}`,
|
|
43
|
+
r.underline ? `${t}--underline` : `${t}--nounderline`
|
|
44
|
+
]);
|
|
45
|
+
return (a, l) => (s(), x("a", {
|
|
46
|
+
"aria-label": e.ariaLabel,
|
|
47
|
+
class: b(n(o)),
|
|
48
|
+
"data-testid": e.testId,
|
|
49
|
+
href: e.href,
|
|
50
|
+
rel: e.external ? e.rel : "",
|
|
51
|
+
target: e.target,
|
|
52
|
+
style: L(n(H)({ color: e.color, underline: e.underline })),
|
|
53
|
+
onClick: l[0] || (l[0] = //@ts-ignore
|
|
54
|
+
(...i) => e.onClick && e.onClick(...i))
|
|
55
|
+
}, [
|
|
56
|
+
h(a.$slots, "default"),
|
|
57
|
+
e.external ? (s(), v(n(g), {
|
|
58
|
+
key: 0,
|
|
59
|
+
color: e.color,
|
|
60
|
+
name: n(I).ExternalLink,
|
|
61
|
+
size: n(z).Tiny
|
|
62
|
+
}, null, 8, ["color", "name", "size"])) : y("", !0)
|
|
63
|
+
], 14, T));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
P as _
|
|
68
|
+
};
|
|
@@ -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-
|
|
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",
|
|
@@ -0,0 +1,90 @@
|
|
|
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-CQipGQ26.js";
|
|
3
|
+
import { _ as $ } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
4
|
+
import { CLColorVariants as B, CLColors as L, CLIconSizes as f } from "../index.js";
|
|
5
|
+
import { p as C } from "./utils-Sqgt8Fa4.js";
|
|
6
|
+
const x = ["data-testid"], P = /* @__PURE__ */ y({
|
|
7
|
+
name: "CLPill",
|
|
8
|
+
__name: "CLPill",
|
|
9
|
+
props: {
|
|
10
|
+
color: { default: L.Neutral },
|
|
11
|
+
count: {},
|
|
12
|
+
elevated: { type: Boolean, default: !1 },
|
|
13
|
+
icon: {},
|
|
14
|
+
label: {},
|
|
15
|
+
onClick: {},
|
|
16
|
+
rounded: { type: Boolean, default: !0 },
|
|
17
|
+
testId: { default: "clll-pill" },
|
|
18
|
+
variant: { default: B.Soft }
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
const n = e, l = "clll-pill", k = d(() => [
|
|
22
|
+
l,
|
|
23
|
+
`${l}--${n.color}--${n.variant}`,
|
|
24
|
+
n.count ? `${l}--has-count` : "",
|
|
25
|
+
n.elevated ? `${l}--elevated` : "",
|
|
26
|
+
n.icon ? `${l}--has-icon` : `${l}--has-noicon`,
|
|
27
|
+
n.rounded ? `${l}--rounded` : ""
|
|
28
|
+
]), v = d(() => [
|
|
29
|
+
l,
|
|
30
|
+
`${l}--clickable`,
|
|
31
|
+
`${l}--${n.color}--${n.variant}`,
|
|
32
|
+
n.count ? `${l}--has-count` : "",
|
|
33
|
+
n.icon ? `${l}--has-icon` : `${l}--has-noicon`,
|
|
34
|
+
n.rounded ? `${l}--rounded` : ""
|
|
35
|
+
]);
|
|
36
|
+
return (S, I) => (a(), i(h, null, [
|
|
37
|
+
e.onClick ? o("", !0) : (a(), i("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: c(t(k)),
|
|
40
|
+
"data-testid": e.testId,
|
|
41
|
+
style: m(t(C)({ color: e.color, variant: e.variant }))
|
|
42
|
+
}, [
|
|
43
|
+
e.icon ? (a(), u(t($), {
|
|
44
|
+
key: 0,
|
|
45
|
+
name: e.icon,
|
|
46
|
+
size: t(f).Tiny
|
|
47
|
+
}, null, 8, ["name", "size"])) : o("", !0),
|
|
48
|
+
s("span", {
|
|
49
|
+
class: c(`${l}__label`)
|
|
50
|
+
}, r(e.label), 3),
|
|
51
|
+
e.count ? (a(), i("span", {
|
|
52
|
+
key: 1,
|
|
53
|
+
class: c(`${l}__count`)
|
|
54
|
+
}, r(e.count), 3)) : o("", !0)
|
|
55
|
+
], 14, x)),
|
|
56
|
+
e.onClick ? (a(), u(t(b), {
|
|
57
|
+
key: 1,
|
|
58
|
+
color: e.color,
|
|
59
|
+
"on-click": e.onClick,
|
|
60
|
+
variant: e.variant,
|
|
61
|
+
pill: "",
|
|
62
|
+
rounded: e.rounded
|
|
63
|
+
}, {
|
|
64
|
+
default: z(() => [
|
|
65
|
+
s("div", {
|
|
66
|
+
class: c(t(v)),
|
|
67
|
+
style: m(t(C)({ color: e.color, variant: e.variant }))
|
|
68
|
+
}, [
|
|
69
|
+
e.icon ? (a(), u(t($), {
|
|
70
|
+
key: 0,
|
|
71
|
+
name: e.icon,
|
|
72
|
+
size: t(f).Tiny
|
|
73
|
+
}, null, 8, ["name", "size"])) : o("", !0),
|
|
74
|
+
s("span", {
|
|
75
|
+
class: c(`${l}__label`)
|
|
76
|
+
}, r(e.label), 3),
|
|
77
|
+
e.count ? (a(), i("span", {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: c(`${l}__count`)
|
|
80
|
+
}, r(e.count), 3)) : o("", !0)
|
|
81
|
+
], 6)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["color", "on-click", "variant", "rounded"])) : o("", !0)
|
|
85
|
+
], 64));
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
export {
|
|
89
|
+
P as _
|
|
90
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
name: "CLProgress",
|
|
7
|
+
__name: "CLProgress",
|
|
8
|
+
props: /* @__PURE__ */ f({
|
|
9
|
+
color: { default: u.Primary },
|
|
10
|
+
inverted: { type: Boolean, default: !1 },
|
|
11
|
+
rounded: { type: Boolean, default: !0 },
|
|
12
|
+
size: { default: z.Medium },
|
|
13
|
+
status: { type: Boolean, default: !1 },
|
|
14
|
+
testId: { default: "clll-progress" }
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: { type: Number, default: 0 },
|
|
17
|
+
modelModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(o) {
|
|
21
|
+
const r = o, a = _(o, "modelValue"), e = "clll-progress", i = d(() => [
|
|
22
|
+
e,
|
|
23
|
+
`${e}--${r.color}`,
|
|
24
|
+
`${e}--${r.size}`,
|
|
25
|
+
r.inverted ? `${e}--inverted` : "",
|
|
26
|
+
r.rounded ? `${e}--rounded` : `${e}--not-rounded`
|
|
27
|
+
]), m = d(() => `${a.value}%`);
|
|
28
|
+
return (b, h) => (c(), n("div", {
|
|
29
|
+
class: s(t(i)),
|
|
30
|
+
"data-testid": o.testId,
|
|
31
|
+
style: y({ ...t(B)({ color: o.color }), "--clll-progress-value": a.value })
|
|
32
|
+
}, [
|
|
33
|
+
o.status ? (c(), n("div", {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: s(`${e}__status__container`)
|
|
36
|
+
}, [
|
|
37
|
+
l("div", {
|
|
38
|
+
class: s(`${e}__status__label`)
|
|
39
|
+
}, [
|
|
40
|
+
g(t(x), {
|
|
41
|
+
color: t(u).Neutral,
|
|
42
|
+
type: t(N).Summary
|
|
43
|
+
}, {
|
|
44
|
+
default: v(() => [
|
|
45
|
+
C(V(t(m)), 1)
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 8, ["color", "type"])
|
|
49
|
+
], 2)
|
|
50
|
+
], 2)) : $("", !0),
|
|
51
|
+
l("div", {
|
|
52
|
+
class: s(`${e}__bar-container`)
|
|
53
|
+
}, [
|
|
54
|
+
l("div", {
|
|
55
|
+
class: s(`${e}__bar`)
|
|
56
|
+
}, null, 2)
|
|
57
|
+
], 2)
|
|
58
|
+
], 14, L));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
k as _
|
|
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
|
+
};
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { CLSizes as
|
|
3
|
-
import { a as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as n, createElementBlock as r, openBlock as i, normalizeStyle as u, normalizeClass as c, unref as o, createElementVNode as a } from "vue";
|
|
2
|
+
import { CLSizes as f, CLPosition as C, CLColors as $, CLAlign as z } from "../index.js";
|
|
3
|
+
import { a as L } from "./utils-CAV1sBee.js";
|
|
4
|
+
const _ = ["data-testid"], h = /* @__PURE__ */ d({
|
|
5
5
|
name: "CLSpinner",
|
|
6
6
|
__name: "CLSpinner",
|
|
7
7
|
props: {
|
|
8
|
-
align: { default:
|
|
9
|
-
color: { default:
|
|
10
|
-
position: { default:
|
|
11
|
-
size: { default:
|
|
8
|
+
align: { default: z.Left },
|
|
9
|
+
color: { default: $.Primary },
|
|
10
|
+
position: { default: C.Absolute },
|
|
11
|
+
size: { default: f.Medium },
|
|
12
12
|
testId: { default: "clll-spinner" }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const t =
|
|
14
|
+
setup(l) {
|
|
15
|
+
const t = l, e = "clll-spinner", m = n(() => [
|
|
16
16
|
e,
|
|
17
17
|
`${e}--${t.position}`,
|
|
18
18
|
`${e}--${t.color}`,
|
|
19
19
|
`${e}--${t.size}`,
|
|
20
20
|
`${e}--${t.align}`
|
|
21
|
-
]),
|
|
21
|
+
]), p = n(() => [
|
|
22
22
|
`${e}__circle`,
|
|
23
23
|
`${e}__circle--${t.size}`
|
|
24
24
|
]);
|
|
25
|
-
return (
|
|
26
|
-
class: c(
|
|
27
|
-
"data-testid":
|
|
25
|
+
return (g, s) => (i(), r("div", {
|
|
26
|
+
class: c(o(m)),
|
|
27
|
+
"data-testid": l.testId,
|
|
28
|
+
style: u(o(L)({ color: l.color }))
|
|
28
29
|
}, [
|
|
29
30
|
(i(), r("svg", {
|
|
30
|
-
class: c(
|
|
31
|
+
class: c(o(p)),
|
|
31
32
|
xmlns: "http://www.w3.org/2000/svg",
|
|
32
33
|
fill: "none",
|
|
33
34
|
viewBox: "0 0 24 24"
|
|
@@ -45,7 +46,7 @@ const L = ["data-testid"], h = /* @__PURE__ */ m({
|
|
|
45
46
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
46
47
|
}, null, -1)
|
|
47
48
|
])], 2))
|
|
48
|
-
],
|
|
49
|
+
], 14, _));
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { CLTextTypes as
|
|
3
|
-
import { t as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as d, computed as n, createBlock as r, openBlock as f, resolveDynamicComponent as c, normalizeStyle as m, normalizeClass as u, unref as o, withCtx as i, renderSlot as p } from "vue";
|
|
2
|
+
import { CLTextTypes as y, CLColors as $, CLAlign as C } from "../index.js";
|
|
3
|
+
import { t as x } from "./utils-C_e2F4X7.js";
|
|
4
|
+
const L = /* @__PURE__ */ d({
|
|
5
5
|
name: "CLText",
|
|
6
6
|
__name: "CLText",
|
|
7
7
|
props: {
|
|
8
|
-
align: { default:
|
|
8
|
+
align: { default: C.Left },
|
|
9
9
|
as: { default: "p" },
|
|
10
10
|
bold: { type: Boolean, default: !1 },
|
|
11
11
|
bolder: { type: Boolean, default: !1 },
|
|
@@ -14,7 +14,7 @@ const h = /* @__PURE__ */ s({
|
|
|
14
14
|
medium: { type: Boolean, default: !1 },
|
|
15
15
|
testId: { default: "clll-text" },
|
|
16
16
|
truncate: { type: Boolean, default: !1 },
|
|
17
|
-
type: { default:
|
|
17
|
+
type: { default: y.Body }
|
|
18
18
|
},
|
|
19
19
|
setup(l) {
|
|
20
20
|
const t = l, e = "clll-text", a = n(() => [
|
|
@@ -30,17 +30,18 @@ const h = /* @__PURE__ */ s({
|
|
|
30
30
|
[`${e}--bolder`]: t.bolder
|
|
31
31
|
}
|
|
32
32
|
]);
|
|
33
|
-
return (
|
|
34
|
-
class: u(
|
|
35
|
-
"data-testid": l.testId
|
|
33
|
+
return (s, B) => (f(), r(c(l.as), {
|
|
34
|
+
class: u(o(a)),
|
|
35
|
+
"data-testid": l.testId,
|
|
36
|
+
style: m(o(x)({ color: l.color }))
|
|
36
37
|
}, {
|
|
37
|
-
default:
|
|
38
|
-
|
|
38
|
+
default: i(() => [
|
|
39
|
+
p(s.$slots, "default")
|
|
39
40
|
]),
|
|
40
41
|
_: 3
|
|
41
|
-
}, 8, ["class", "data-testid"]));
|
|
42
|
+
}, 8, ["class", "data-testid", "style"]));
|
|
42
43
|
}
|
|
43
44
|
});
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
L as _
|
|
46
47
|
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { defineComponent as U, ref as v, computed as _, watch as F, onMounted as P, onUnmounted as X, onBeforeUnmount as Z, createElementBlock as C, openBlock as m, normalizeStyle as j, normalizeClass as c, unref as a, createElementVNode as g, createBlock as x, createCommentVNode as b, createVNode as k, withCtx as L, createTextVNode as z, toDisplayString as S, isRef as q } from "vue";
|
|
2
|
+
import { _ as N } from "./CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js";
|
|
3
|
+
import { _ as G } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
4
|
+
import { _ as J } from "./CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js";
|
|
5
|
+
import { _ as K } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
6
|
+
import { _ as O } from "./CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
|
|
7
|
+
import { CLMode as R, CLColorVariants as w, CLToastPosition as Q, CLIconSizes as B, CLColors as h, CLHeadingTypes as W, CLTextTypes as I, CLSizes as A, CLIconNames as Y } from "../index.js";
|
|
8
|
+
import { i as E, g as p, a as ee } from "./helper--hRjZVm6.js";
|
|
9
|
+
import { useEsc as te } from "../composables/useEsc.js";
|
|
10
|
+
import { g as oe } from "./utils-CS9Gz4oX.js";
|
|
11
|
+
import { useTheme as ae } from "../composables/useTheme.js";
|
|
12
|
+
const ie = ({ color: e, variant: t }) => {
|
|
13
|
+
const { borderRadius: $, colors: d, darkMode: l } = ae(), i = l.value ? R.Dark : R.Light, n = oe({
|
|
14
|
+
color: e,
|
|
15
|
+
colors: d.value,
|
|
16
|
+
mode: i,
|
|
17
|
+
variant: t
|
|
18
|
+
});
|
|
19
|
+
return {
|
|
20
|
+
"--clll-toast-bg-color": l.value ? "black" : "white",
|
|
21
|
+
"--clll-toast-text-color": n?.text ?? "inherit",
|
|
22
|
+
"--clll-toast-icon-bg": n?.bg ?? "transparent",
|
|
23
|
+
"--clll-toast-icon-color": n?.text ?? "inherit",
|
|
24
|
+
"--clll-toast-timer-bg": n?.textDisabled ?? "transparent",
|
|
25
|
+
"--clll-toast-theme-radius": $.value ? `var(--clll-${$.value})` : void 0
|
|
26
|
+
};
|
|
27
|
+
}, se = ["data-testid"], u = 300, o = "clll-toast", ge = /* @__PURE__ */ U({
|
|
28
|
+
name: "CLToast",
|
|
29
|
+
__name: "CLToast",
|
|
30
|
+
props: {
|
|
31
|
+
actionLabel: {},
|
|
32
|
+
borderRadius: {},
|
|
33
|
+
color: { default: h.Secondary },
|
|
34
|
+
dismissTimer: { default: 5 },
|
|
35
|
+
icon: {},
|
|
36
|
+
iconSize: { default: B.Small },
|
|
37
|
+
message: {},
|
|
38
|
+
onAction: {},
|
|
39
|
+
onDismiss: {},
|
|
40
|
+
position: { default: Q.TopRight },
|
|
41
|
+
rounded: { type: Boolean, default: !0 },
|
|
42
|
+
testId: { default: "clll-toast" },
|
|
43
|
+
title: {},
|
|
44
|
+
variant: { default: w.Soft },
|
|
45
|
+
width: { default: "24rem" }
|
|
46
|
+
},
|
|
47
|
+
setup(e) {
|
|
48
|
+
const t = e, $ = v(), d = v(100), l = v(!1), i = v(), n = v(0), D = _(() => [
|
|
49
|
+
o,
|
|
50
|
+
t.borderRadius ? `${o}--${t.borderRadius}` : "",
|
|
51
|
+
t.dismissTimer ? `${o}--has-timer` : "",
|
|
52
|
+
t.icon ? `${o}--has-icon` : "",
|
|
53
|
+
t.message && !t.title ? `${o}--has-messageonly` : "",
|
|
54
|
+
l.value ? `${o}--mounted` : "",
|
|
55
|
+
t.onAction && t.actionLabel ? `${o}--has-action` : "",
|
|
56
|
+
t.rounded ? `${o}--rounded` : `${o}--box`,
|
|
57
|
+
t.title && !t.message ? `${o}--has-titleonly` : "",
|
|
58
|
+
t.title && t.message ? `${o}--has-titleandmessage` : "",
|
|
59
|
+
`${o}--${t.position}`
|
|
60
|
+
]), y = () => {
|
|
61
|
+
l.value = !1, i.value && (i.value.stop(), i.value.start(u, (r) => {
|
|
62
|
+
Math.min(r, u) === u && (i.value?.stop(), t.onDismiss?.());
|
|
63
|
+
})), V();
|
|
64
|
+
}, H = () => {
|
|
65
|
+
const r = t.dismissTimer * 1e3, s = r / 100;
|
|
66
|
+
i.value?.start(r, (f) => {
|
|
67
|
+
const T = Math.min(f / 100, s);
|
|
68
|
+
d.value = 100 - T / s * 100, T === s && y();
|
|
69
|
+
});
|
|
70
|
+
}, M = () => {
|
|
71
|
+
i.value || (i.value = ee(), i.value.start(100, (r) => {
|
|
72
|
+
Math.min(r, 100) === 100 && (i.value?.stop(), l.value = !0, t?.dismissTimer && i.value?.start(u, (f) => {
|
|
73
|
+
Math.min(f, u) === u && (i.value?.stop(), H());
|
|
74
|
+
}));
|
|
75
|
+
}));
|
|
76
|
+
};
|
|
77
|
+
F(t, () => {
|
|
78
|
+
i.value && (i.value.stop(), i.value = void 0), t?.dismissTimer && M();
|
|
79
|
+
}), P(() => {
|
|
80
|
+
E && (n.value = p() + 1, M());
|
|
81
|
+
}), X(() => {
|
|
82
|
+
E && t?.dismissTimer && i.value && (i.value.stop(), i.value = void 0), l.value = !1, t.onDismiss?.();
|
|
83
|
+
});
|
|
84
|
+
const { clearEventListeners: V } = te({ escHandler: y });
|
|
85
|
+
return Z(() => {
|
|
86
|
+
V();
|
|
87
|
+
}), (r, s) => (m(), C("output", {
|
|
88
|
+
ref_key: "elem",
|
|
89
|
+
ref: $,
|
|
90
|
+
class: c(a(D)),
|
|
91
|
+
"data-testid": e.testId,
|
|
92
|
+
style: j({ zIndex: a(n), "--clll-toast-width": e.width, ...a(ie)({ color: e.color, variant: e.variant }) })
|
|
93
|
+
}, [
|
|
94
|
+
g("div", {
|
|
95
|
+
class: c(`${o}__body`)
|
|
96
|
+
}, [
|
|
97
|
+
g("div", {
|
|
98
|
+
class: c(`${o}__content`)
|
|
99
|
+
}, [
|
|
100
|
+
e.icon ? (m(), C("div", {
|
|
101
|
+
key: 0,
|
|
102
|
+
class: c(`${o}__icon`)
|
|
103
|
+
}, [
|
|
104
|
+
k(a(G), {
|
|
105
|
+
name: e.icon,
|
|
106
|
+
size: e.iconSize
|
|
107
|
+
}, null, 8, ["name", "size"])
|
|
108
|
+
], 2)) : b("", !0),
|
|
109
|
+
g("div", {
|
|
110
|
+
class: c(`${o}__text`)
|
|
111
|
+
}, [
|
|
112
|
+
e.title ? (m(), x(a(O), {
|
|
113
|
+
key: 0,
|
|
114
|
+
color: a(h).Neutral,
|
|
115
|
+
"test-id": `${o}__title`,
|
|
116
|
+
type: a(W).Section
|
|
117
|
+
}, {
|
|
118
|
+
default: L(() => [
|
|
119
|
+
z(S(e.title), 1)
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["color", "test-id", "type"])) : b("", !0),
|
|
123
|
+
e.message ? (m(), x(a(K), {
|
|
124
|
+
key: 1,
|
|
125
|
+
color: a(h).Neutral,
|
|
126
|
+
"test-id": `${o}__message`,
|
|
127
|
+
type: e.title ? a(I).Medium : a(I).Body
|
|
128
|
+
}, {
|
|
129
|
+
default: L(() => [
|
|
130
|
+
z(S(e.message), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["color", "test-id", "type"])) : b("", !0)
|
|
134
|
+
], 2),
|
|
135
|
+
e.onAction && e.actionLabel ? (m(), C("div", {
|
|
136
|
+
key: 1,
|
|
137
|
+
class: c(`${o}__action-button`)
|
|
138
|
+
}, [
|
|
139
|
+
k(a(N), {
|
|
140
|
+
color: e.color,
|
|
141
|
+
"border-radius": e.borderRadius,
|
|
142
|
+
"on-click": e.onAction,
|
|
143
|
+
"test-id": `${o}__action-button`,
|
|
144
|
+
variant: e.variant
|
|
145
|
+
}, {
|
|
146
|
+
default: L(() => [
|
|
147
|
+
z(S(e.actionLabel), 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
|
|
151
|
+
], 2)) : b("", !0)
|
|
152
|
+
], 2),
|
|
153
|
+
g("div", {
|
|
154
|
+
class: c(`${o}__dismiss-button`)
|
|
155
|
+
}, [
|
|
156
|
+
k(a(N), {
|
|
157
|
+
"aria-label": "Dismiss toast",
|
|
158
|
+
color: a(h).Neutral,
|
|
159
|
+
"border-radius": e.borderRadius,
|
|
160
|
+
"icon-before": a(Y).Delete,
|
|
161
|
+
"icon-size": a(B).Tiny,
|
|
162
|
+
"on-click": y,
|
|
163
|
+
size: a(A).Tiny,
|
|
164
|
+
"test-id": `${o}__dismiss-button`,
|
|
165
|
+
variant: a(w).Text
|
|
166
|
+
}, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
|
|
167
|
+
], 2)
|
|
168
|
+
], 2),
|
|
169
|
+
e.dismissTimer ? (m(), x(a(J), {
|
|
170
|
+
key: 0,
|
|
171
|
+
modelValue: a(d),
|
|
172
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => q(d) ? d.value = f : null),
|
|
173
|
+
color: e.color,
|
|
174
|
+
rounded: !1,
|
|
175
|
+
size: a(A).Small
|
|
176
|
+
}, null, 8, ["modelValue", "color", "size"])) : b("", !0)
|
|
177
|
+
], 14, se));
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
export {
|
|
181
|
+
ge as _
|
|
182
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CLMode as l, CLColors as t, CLColorVariants as n } from "../index.js";
|
|
2
|
+
import { g as c } from "./utils-CS9Gz4oX.js";
|
|
3
|
+
import { useTheme as a } from "../composables/useTheme.js";
|
|
4
|
+
const g = () => {
|
|
5
|
+
const { borderRadius: o, darkMode: r } = a();
|
|
6
|
+
return {
|
|
7
|
+
"--clll-skeleton-bg-color": r.value ? "rgba(0 0 0 / 0.005)" : "rgba(0 0 0 / 0.075)",
|
|
8
|
+
"--clll-skeleton-theme-radius": o.value ? `var(--clll-${o.value})` : void 0
|
|
9
|
+
};
|
|
10
|
+
}, k = ({ color: o = t.Primary }) => {
|
|
11
|
+
const { colors: r, darkMode: e } = a(), s = e.value ? l.Dark : l.Light;
|
|
12
|
+
return {
|
|
13
|
+
"--clll-spinner-color": c({
|
|
14
|
+
color: o,
|
|
15
|
+
colors: r.value,
|
|
16
|
+
mode: s,
|
|
17
|
+
variant: n.Solid
|
|
18
|
+
})?.bg ?? "inherit"
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
k as a,
|
|
23
|
+
g as s
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { C as v } from "./base-theme-Bg6XMoeN.js";
|
|
2
|
+
const b = ({
|
|
3
|
+
color: e,
|
|
4
|
+
colors: i,
|
|
5
|
+
mode: t,
|
|
6
|
+
variant: r
|
|
7
|
+
}) => {
|
|
8
|
+
const o = v[r][t], d = i[e];
|
|
9
|
+
if (d)
|
|
10
|
+
return {
|
|
11
|
+
bg: o.bg !== void 0 ? d[o.bg] : void 0,
|
|
12
|
+
border: o.border !== void 0 ? d[o.border] : void 0,
|
|
13
|
+
borderHover: o.borderHover !== void 0 ? d[o.borderHover] : void 0,
|
|
14
|
+
disabled: o.disabled !== void 0 ? d[o.disabled] : void 0,
|
|
15
|
+
focus: o.focus !== void 0 ? d[o.focus] : void 0,
|
|
16
|
+
hover: o.hover !== void 0 ? d[o.hover] : void 0,
|
|
17
|
+
shadow: o.shadow !== void 0 ? d[o.shadow] : void 0,
|
|
18
|
+
text: o.text !== void 0 ? d[o.text] : void 0,
|
|
19
|
+
textBody: o.textBody !== void 0 ? d[o.textBody] : void 0,
|
|
20
|
+
textDisabled: o.textDisabled !== void 0 ? d[o.textDisabled] : void 0
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
b as g
|
|
25
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CLMode as o, CLColors as s, CLColorVariants as a } from "../index.js";
|
|
2
|
+
import { g as c } from "./utils-CS9Gz4oX.js";
|
|
3
|
+
import { useTheme as m } from "../composables/useTheme.js";
|
|
4
|
+
const d = ({ color: t = s.Neutral }) => {
|
|
5
|
+
const { colors: r, darkMode: e } = m(), l = e.value ? o.Light : o.Dark;
|
|
6
|
+
return {
|
|
7
|
+
"--clll-text-color": c({
|
|
8
|
+
color: t,
|
|
9
|
+
colors: r.value,
|
|
10
|
+
mode: l,
|
|
11
|
+
variant: a.Text
|
|
12
|
+
})?.textBody ?? "inherit"
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
d as t
|
|
17
|
+
};
|