@codeandfunction/callaloo 3.16.3 → 3.16.5
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-Caaw-9_c.js → CLA11yButton.vue_vue_type_style_index_0_lang-Drw6jsX_.js} +13 -12
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-N3EWoTbB.js → CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js} +5 -5
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-CpReGucs.js → CLCard.vue_vue_type_style_index_0_lang-Bj9WF_mX.js} +44 -43
- package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-Cw3nPc64.js → CLFormLabel.vue_vue_type_script_setup_true_lang-CaHCD2xF.js} +1 -1
- package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-BcCh5-Bx.js → CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js} +11 -10
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js +87 -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-BDL4xcfJ.js +68 -0
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-D2oCLUGX.js → CLNavLink.vue_vue_type_script_setup_true_lang-C_BQCWeg.js} +1 -1
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-DwNvvX0v.js +90 -0
- package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-Cu3FhEX0.js → CLProgress.vue_vue_type_style_index_0_lang-Mikbgpn2.js} +16 -15
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-DblqrUXo.js → CLSkeleton.vue_vue_type_style_index_0_lang-Csb9YnTI.js} +11 -10
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-DskZL4VC.js → CLSpinner.vue_vue_type_style_index_0_lang-BQ1w9Ik9.js} +17 -16
- package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-Cz9Sv2AC.js → CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js} +14 -13
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-C6gOJx7A.js +185 -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 -115
- 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 +27 -26
- 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 +82 -78
- 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 +6 -6
- 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/CLIcon.vue_vue_type_style_index_0_lang-BaCl5yQI.js +0 -84
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-BNGT0om7.js +0 -121
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BMUevw_4.js +0 -60
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-DYXrV-YE.js +0 -88
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-CYcPXUMQ.js +0 -179
- package/dist/chunks/utils-Bp7YeySh.js +0 -29
- package/dist/chunks/utils-C9rOAW29.js +0 -387
- package/dist/chunks/utils-D-5TdmRW.js +0 -26
- package/dist/chunks/utils-DRsWhcFX.js +0 -30
- package/dist/chunks/utils-DVR3a-_d.js +0 -73
- package/dist/chunks/utils-nC7WS9e0.js +0 -15
|
@@ -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
|
|
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
|
|
2
|
-
import { CLColors as
|
|
3
|
-
import { a as
|
|
4
|
-
const
|
|
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:
|
|
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,
|
|
16
|
-
|
|
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
|
|
27
|
-
!o &&
|
|
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:
|
|
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
|
-
|
|
40
|
-
],
|
|
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
|
|
3
|
-
import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.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-
|
|
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(
|
|
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(() => [
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as W, useCssVars as I, useSlots as
|
|
2
|
-
import { _ as A } from "./CLHeading.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as m } from "./CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as
|
|
6
|
-
import { CLColorVariants as E, CLCardTypes as
|
|
7
|
-
import { c as
|
|
8
|
-
import { useHasSlotContent as
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as W, useCssVars as I, useSlots as z, ref as v, computed as D, onMounted as F, nextTick as K, createElementBlock as r, openBlock as n, withKeys as M, normalizeStyle as q, normalizeClass as d, unref as l, createCommentVNode as o, createElementVNode as u, withDirectives as B, createVNode as G, vShow as x, createBlock as c, renderSlot as s, Fragment as j, withCtx as y, createTextVNode as b, toDisplayString as k } from "vue";
|
|
2
|
+
import { _ as A } from "./CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
|
|
3
|
+
import { _ as J } from "./CLLink.vue_vue_type_style_index_0_lang-BDL4xcfJ.js";
|
|
4
|
+
import { _ as m } from "./CLSkeleton.vue_vue_type_style_index_0_lang-Csb9YnTI.js";
|
|
5
|
+
import { _ as P } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
6
|
+
import { CLColorVariants as E, CLCardTypes as Q, CLHeadingTypes as U, CLHeadingLevels as X, CLLinkTarget as Y, CLOverflow as Z, CLLoading as p, CLColors as _, CLAlign as ee, CLOrder as O, CLTextTypes as ae } from "../index.js";
|
|
7
|
+
import { c as te } from "./utils-zJwcNHl4.js";
|
|
8
|
+
import { useHasSlotContent as le } from "../composables/useHasSlotContent.js";
|
|
9
|
+
const ie = ["data-testid", "tabindex"], ne = ["alt", "loading", "src"], de = ["alt", "loading", "src"], oe = ["aria-label", "href", "target"], $e = /* @__PURE__ */ W({
|
|
10
10
|
name: "CLCard",
|
|
11
11
|
__name: "CLCard",
|
|
12
12
|
props: {
|
|
13
13
|
active: { type: Boolean, default: !1 },
|
|
14
|
-
align: { default:
|
|
14
|
+
align: { default: ee.Left },
|
|
15
15
|
ariaLabel: {},
|
|
16
16
|
borderRadius: {},
|
|
17
17
|
bordered: { type: Boolean, default: !0 },
|
|
18
18
|
busy: { type: Boolean, default: !1 },
|
|
19
19
|
byline: {},
|
|
20
|
-
color: { default:
|
|
20
|
+
color: { default: _.Neutral },
|
|
21
21
|
compact: { type: Boolean, default: !1 },
|
|
22
22
|
elevated: { type: Boolean, default: !1 },
|
|
23
23
|
forwardRef: {},
|
|
@@ -26,32 +26,32 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
26
26
|
image: {},
|
|
27
27
|
imageAltText: { default: "" },
|
|
28
28
|
imageHeight: { default: "auto" },
|
|
29
|
-
imageLoading: { default:
|
|
29
|
+
imageLoading: { default: p.Eager },
|
|
30
30
|
imageOrder: {},
|
|
31
31
|
imageWidth: { default: "auto" },
|
|
32
32
|
onClick: {},
|
|
33
|
-
overflow: { default:
|
|
33
|
+
overflow: { default: Z.Hidden },
|
|
34
34
|
padded: { type: Boolean, default: !0 },
|
|
35
35
|
rounded: { type: Boolean, default: !0 },
|
|
36
|
-
target: { default:
|
|
36
|
+
target: { default: Y.Self },
|
|
37
37
|
testId: { default: "clll-card" },
|
|
38
38
|
title: {},
|
|
39
|
-
titleHLevel: { default:
|
|
40
|
-
titleType: { default:
|
|
39
|
+
titleHLevel: { default: X.H2 },
|
|
40
|
+
titleType: { default: U.SubSection },
|
|
41
41
|
truncateTitle: { type: Boolean, default: !1 },
|
|
42
|
-
type: { default:
|
|
42
|
+
type: { default: Q.Medium },
|
|
43
43
|
variant: { default: E.Soft },
|
|
44
44
|
width: { default: "auto" }
|
|
45
45
|
},
|
|
46
46
|
setup(e) {
|
|
47
47
|
I((i) => ({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
v337fb248: i.width,
|
|
49
|
+
v22a79ce5: i.height,
|
|
50
|
+
v6b6cc840: i.overflow,
|
|
51
|
+
v6af231e9: i.imageWidth,
|
|
52
|
+
v4cf5dd38: i.imageHeight
|
|
53
53
|
}));
|
|
54
|
-
const a = "clll-card", t = e, C =
|
|
54
|
+
const a = "clll-card", t = e, C = le(), L = z(), $ = v(), w = v(), N = ["a", "button"], h = v(), V = D(() => [
|
|
55
55
|
a,
|
|
56
56
|
`${a}--${t.type}`,
|
|
57
57
|
`${a}--${t.color}-${t.variant}`,
|
|
@@ -80,38 +80,39 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
80
80
|
...h.value?.querySelectorAll("[data-expand-click-area]") ?? []
|
|
81
81
|
];
|
|
82
82
|
if (H.length) {
|
|
83
|
-
const
|
|
84
|
-
!f &&
|
|
83
|
+
const S = H[0], R = f ? N.includes(f.tagName.toLowerCase()) : null;
|
|
84
|
+
!f && S !== i.target && !R && S.click();
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
return
|
|
88
|
-
await
|
|
87
|
+
return F(async () => {
|
|
88
|
+
await K(), h.value && t.forwardRef?.(h.value), $.value = L?.heading, w.value = L?.footer;
|
|
89
89
|
}), (i, g) => (n(), r("div", {
|
|
90
90
|
ref_key: "refExpandedArea",
|
|
91
91
|
ref: h,
|
|
92
|
-
class: d(
|
|
92
|
+
class: d(l(V)),
|
|
93
|
+
style: q(l(te)({ color: e.color, variant: e.variant })),
|
|
93
94
|
"data-testid": e.testId,
|
|
94
95
|
tabindex: e.onClick ? 0 : void 0,
|
|
95
96
|
onClick: T,
|
|
96
|
-
onKeyup:
|
|
97
|
+
onKeyup: M(T, ["enter"])
|
|
97
98
|
}, [
|
|
98
99
|
e.image && (e.imageOrder === l(O).Before || !e.imageOrder) ? (n(), r("div", {
|
|
99
100
|
key: 0,
|
|
100
101
|
class: d(`${a}__image`)
|
|
101
102
|
}, [
|
|
102
|
-
|
|
103
|
+
B(G(l(m), {
|
|
103
104
|
width: e.imageWidth,
|
|
104
105
|
height: e.imageHeight,
|
|
105
106
|
rounded: !1
|
|
106
107
|
}, null, 8, ["width", "height"]), [
|
|
107
108
|
[x, e.busy]
|
|
108
109
|
]),
|
|
109
|
-
|
|
110
|
+
B(u("img", {
|
|
110
111
|
alt: e.imageAltText,
|
|
111
112
|
class: d(`${a}__image__elem`),
|
|
112
113
|
loading: e.imageLoading,
|
|
113
114
|
src: e.image
|
|
114
|
-
}, null, 10,
|
|
115
|
+
}, null, 10, ne), [
|
|
115
116
|
[x, !e.busy]
|
|
116
117
|
])
|
|
117
118
|
], 2)) : o("", !0),
|
|
@@ -130,7 +131,7 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
130
131
|
width: "70%",
|
|
131
132
|
height: "16px"
|
|
132
133
|
})) : o("", !0),
|
|
133
|
-
!e.onClick && !e.href ? (n(), r(
|
|
134
|
+
!e.onClick && !e.href ? (n(), r(j, { key: 2 }, [
|
|
134
135
|
s(i.$slots, "heading"),
|
|
135
136
|
e.title && !e.busy ? (n(), c(l(A), {
|
|
136
137
|
key: 0,
|
|
@@ -142,11 +143,11 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
142
143
|
type: e.titleType
|
|
143
144
|
}, {
|
|
144
145
|
default: y(() => [
|
|
145
|
-
k(
|
|
146
|
+
b(k(e.title), 1)
|
|
146
147
|
]),
|
|
147
148
|
_: 1
|
|
148
149
|
}, 8, ["align", "class", "color", "level", "truncate", "type"])) : o("", !0)
|
|
149
|
-
], 64)) : e.title || l($) && (e.onClick || e.href) ? (n(), c(l(
|
|
150
|
+
], 64)) : e.title || l($) && (e.onClick || e.href) ? (n(), c(l(J), {
|
|
150
151
|
key: 3,
|
|
151
152
|
"aria-label": e.ariaLabel,
|
|
152
153
|
color: e.color,
|
|
@@ -167,7 +168,7 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
167
168
|
type: e.titleType
|
|
168
169
|
}, {
|
|
169
170
|
default: y(() => [
|
|
170
|
-
k(
|
|
171
|
+
b(k(e.title), 1)
|
|
171
172
|
]),
|
|
172
173
|
_: 1
|
|
173
174
|
}, 8, ["align", "class", "color", "level", "truncate", "type"])) : o("", !0)
|
|
@@ -175,15 +176,15 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
175
176
|
_: 3
|
|
176
177
|
}, 8, ["aria-label", "color", "href", "target", "on-click"])) : o("", !0),
|
|
177
178
|
s(i.$slots, "byline"),
|
|
178
|
-
e.byline && !e.busy ? (n(), c(l(
|
|
179
|
+
e.byline && !e.busy ? (n(), c(l(P), {
|
|
179
180
|
key: 4,
|
|
180
181
|
align: e.align,
|
|
181
182
|
class: d(`${a}__byline`),
|
|
182
183
|
color: e.color,
|
|
183
|
-
type: l(
|
|
184
|
+
type: l(ae).Small
|
|
184
185
|
}, {
|
|
185
186
|
default: y(() => [
|
|
186
|
-
k(
|
|
187
|
+
b(k(e.byline), 1)
|
|
187
188
|
]),
|
|
188
189
|
_: 1
|
|
189
190
|
}, 8, ["align", "class", "color", "type"])) : o("", !0)
|
|
@@ -228,7 +229,7 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
228
229
|
class: d(`${a}__image__elem`),
|
|
229
230
|
loading: e.imageLoading,
|
|
230
231
|
src: e.image
|
|
231
|
-
}, null, 10,
|
|
232
|
+
}, null, 10, de))
|
|
232
233
|
], 2)) : o("", !0),
|
|
233
234
|
!e.title && (e.onClick || e.href) ? (n(), r("a", {
|
|
234
235
|
key: 2,
|
|
@@ -239,14 +240,14 @@ const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["a
|
|
|
239
240
|
"data-expand-click-area": "",
|
|
240
241
|
onClick: g[0] || (g[0] = //@ts-ignore
|
|
241
242
|
(...f) => e.onClick && e.onClick(...f))
|
|
242
|
-
}, null, 8,
|
|
243
|
+
}, null, 8, oe)) : o("", !0),
|
|
243
244
|
e.onClick && e.variant !== l(E).Ghost ? (n(), r("div", {
|
|
244
245
|
key: 3,
|
|
245
246
|
class: d(`${a}__hover-elem`)
|
|
246
247
|
}, null, 2)) : o("", !0)
|
|
247
|
-
],
|
|
248
|
+
], 46, ie));
|
|
248
249
|
}
|
|
249
250
|
});
|
|
250
251
|
export {
|
|
251
|
-
|
|
252
|
+
$e as _
|
|
252
253
|
};
|
|
@@ -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-
|
|
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,
|
|
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-
|
|
4
|
-
const
|
|
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,
|
|
38
|
-
class:
|
|
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:
|
|
42
|
-
|
|
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
|
-
|
|
50
|
+
b as _
|
|
50
51
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineComponent as p, useCssVars as v, computed as X, onMounted as z, createElementBlock as d, openBlock as m, normalizeStyle as B, normalizeClass as u, unref as f, createElementVNode as I } from "vue";
|
|
2
|
+
import { CLMode as h, CLColors as C, CLColorVariants as S, CLIconSizes as e } from "../index.js";
|
|
3
|
+
import { g as w } from "./utils-CS9Gz4oX.js";
|
|
4
|
+
import { useTheme as x } from "../composables/useTheme.js";
|
|
5
|
+
import { i as M } from "./helper--hRjZVm6.js";
|
|
6
|
+
const b = ({ color: o = C.Neutral }) => {
|
|
7
|
+
const { colors: l, darkMode: t } = x(), s = t.value ? h.Light : h.Dark;
|
|
8
|
+
return {
|
|
9
|
+
"--clll-icon-color": w({
|
|
10
|
+
color: o,
|
|
11
|
+
colors: l.value,
|
|
12
|
+
mode: s,
|
|
13
|
+
variant: S.Text
|
|
14
|
+
})?.textBody ?? "inherit"
|
|
15
|
+
};
|
|
16
|
+
}, E = ["data-testid"], $ = ["height", "width"], N = ["href"], O = /* @__PURE__ */ p({
|
|
17
|
+
name: "CLIcon",
|
|
18
|
+
__name: "CLIcon",
|
|
19
|
+
props: {
|
|
20
|
+
color: { default: C.Neutral },
|
|
21
|
+
name: {},
|
|
22
|
+
size: { default: e.Small },
|
|
23
|
+
testId: { default: "clll-icon" }
|
|
24
|
+
},
|
|
25
|
+
setup(o) {
|
|
26
|
+
v((n) => ({
|
|
27
|
+
v61c2ebfe: s[n.size] + "px"
|
|
28
|
+
}));
|
|
29
|
+
const l = o, t = "clll-icon", s = {
|
|
30
|
+
[e.Tiny]: 20,
|
|
31
|
+
[e.Small]: 24,
|
|
32
|
+
[e.Medium]: 28,
|
|
33
|
+
[e.Large]: 32,
|
|
34
|
+
[e.XL]: 36,
|
|
35
|
+
[e.XXL]: 40,
|
|
36
|
+
[e.XXXL]: 44,
|
|
37
|
+
[e.XXXXL]: 48
|
|
38
|
+
}, r = X(() => [
|
|
39
|
+
t,
|
|
40
|
+
`${t}--${l.name}`,
|
|
41
|
+
`${t}--${l.size}`
|
|
42
|
+
]), L = async () => {
|
|
43
|
+
if (!M) return;
|
|
44
|
+
let n = document.getElementById("clll-icons");
|
|
45
|
+
if (!n)
|
|
46
|
+
try {
|
|
47
|
+
const a = (/* @__PURE__ */ Object.assign({
|
|
48
|
+
"/src/icons.svg": () => import("./icons-QRYZHNAf.js").then((y) => y.default)
|
|
49
|
+
}))["/src/icons.svg"];
|
|
50
|
+
if (!a) {
|
|
51
|
+
console.warn("[Callaloo] Icon sprite not found");
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const g = await a();
|
|
55
|
+
if (n = document.getElementById("clll-icons"), n) return;
|
|
56
|
+
const c = document.createElement("div");
|
|
57
|
+
c.id = "clll-icons", c.style.display = "none", c.innerHTML = g.toString(), document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", () => {
|
|
58
|
+
document.body.insertBefore(c, document.body.childNodes[0]);
|
|
59
|
+
}) : document.body.insertBefore(c, document.body.childNodes[0]);
|
|
60
|
+
} catch (i) {
|
|
61
|
+
console.error("[Callaloo] Failed to load icon sprite:", i);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return z(() => {
|
|
65
|
+
L();
|
|
66
|
+
}), (n, i) => (m(), d("span", {
|
|
67
|
+
class: u(f(r)),
|
|
68
|
+
"data-testid": o.testId,
|
|
69
|
+
style: B(f(b)({ color: o.color }))
|
|
70
|
+
}, [
|
|
71
|
+
(m(), d("svg", {
|
|
72
|
+
"aria-hidden": "true",
|
|
73
|
+
class: u(`${t}-sprite`),
|
|
74
|
+
height: s[o.size],
|
|
75
|
+
width: s[o.size],
|
|
76
|
+
viewBox: "0 0 24 24"
|
|
77
|
+
}, [
|
|
78
|
+
I("use", {
|
|
79
|
+
href: `#${o.name}`
|
|
80
|
+
}, null, 8, N)
|
|
81
|
+
], 10, $))
|
|
82
|
+
], 14, E));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
O as _
|
|
87
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -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--1FTkRVd.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-BDL4xcfJ.js";
|
|
3
3
|
import { CLColors as k } from "../index.js";
|
|
4
4
|
const x = /* @__PURE__ */ i({
|
|
5
5
|
name: "CLNavLink",
|