@codeandfunction/callaloo 3.16.7 → 3.16.8
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/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-Drw6jsX_.js → CLA11yButton.vue_vue_type_style_index_0_lang-Cl1pOJvL.js} +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js → CLButton.vue_vue_type_style_index_0_lang-BiyeNLFr.js} +2 -2
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js → CLCard.vue_vue_type_style_index_0_lang-B7_6uqSs.js} +2 -2
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtXwFFjZ.js +148 -0
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js → CLPill.vue_vue_type_style_index_0_lang-BsGpHn52.js} +2 -2
- package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js → CLProgress.vue_vue_type_style_index_0_lang-Cqdkf70C.js} +1 -1
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js → CLSkeleton.vue_vue_type_style_index_0_lang-DT23xe5d.js} +1 -1
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-BQ1w9Ik9.js → CLSpinner.vue_vue_type_style_index_0_lang-DU0dl3yu.js} +1 -1
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BNlgk9Fz.js +182 -0
- package/dist/chunks/utils-B_-25pfO.js +85 -0
- package/dist/chunks/utils-BipQQo6V.js +41 -0
- package/dist/chunks/utils-DmkkE-9U.js +24 -0
- package/dist/chunks/utils-DxdFsNHx.js +37 -0
- 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 +2 -2
- package/dist/components/CLTable/CLTable.js +58 -58
- package/dist/components/CLTable/utils.d.ts +1 -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 +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +23 -23
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +0 -1
- package/dist/components/Containers/utils.d.ts +2 -2
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +24 -24
- package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +1 -1
- package/dist/components/Form/CLInput/CLInput.js +50 -50
- package/dist/components/Form/CLInput/CLInput.vue.d.ts +2 -2
- package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +1 -1
- package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +1 -1
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +20 -20
- package/dist/components/Form/CLSelect/CLSelect.js +17 -17
- package/dist/components/Form/CLTextArea/CLTextArea.js +13 -13
- package/dist/components/Form/utils.d.ts +6 -6
- package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +4 -4
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
- package/dist/components/Indicators/utils.d.ts +3 -3
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
- package/dist/components/Loading/utils.d.ts +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +37 -37
- package/dist/components/Modals/CLModal/CLModal.vue.d.ts +1 -1
- package/dist/components/Modals/utils.d.ts +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +3 -3
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Popups/utils.d.ts +1 -1
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +19 -19
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-Bt5xgOT4.js +0 -153
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js +0 -182
- package/dist/chunks/utils-CAV1sBee.js +0 -24
- package/dist/chunks/utils-Sqgt8Fa4.js +0 -85
- package/dist/chunks/utils-cOhtsyeB.js +0 -41
- package/dist/chunks/utils-zJwcNHl4.js +0 -37
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLCheckbox.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
|
-
import { defineComponent as T, mergeModels as z, useTemplateRef as B, useModel as S, computed as y, createBlock as m, openBlock as f, withCtx as $, createElementVNode as
|
|
5
|
-
import { _ as R, c as D, a as X } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { defineComponent as T, mergeModels as z, useTemplateRef as B, useModel as S, computed as y, createBlock as m, openBlock as f, withCtx as $, createElementVNode as i, createCommentVNode as C, normalizeStyle as M, normalizeClass as s, unref as n, withDirectives as V, vModelCheckbox as q, createVNode as F, createTextVNode as N, toDisplayString as I } from "vue";
|
|
5
|
+
import { _ as R, c as D, a as X } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtXwFFjZ.js";
|
|
6
6
|
import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
7
7
|
import { _ as E } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
8
8
|
import { CLSizes as o, CLIconSizes as u, CLTextTypes as c, CLIconNames as H, CLColorVariants as O, CLColors as U } from "../../../index.js";
|
|
@@ -67,48 +67,48 @@ const j = ["data-testid"], A = ["for", "disabled"], G = ["id", "aria-label", "di
|
|
|
67
67
|
};
|
|
68
68
|
return v({
|
|
69
69
|
checkboxRef: r
|
|
70
|
-
}), (J,
|
|
70
|
+
}), (J, t) => (f(), m(R, null, {
|
|
71
71
|
default: $(() => [
|
|
72
|
-
|
|
73
|
-
class:
|
|
74
|
-
style: M(n(D)({ color: e.color,
|
|
72
|
+
i("span", {
|
|
73
|
+
class: s(n(g)),
|
|
74
|
+
style: M(n(D)({ color: e.color, variant: e.variant })),
|
|
75
75
|
"data-testid": e.testId
|
|
76
76
|
}, [
|
|
77
|
-
|
|
78
|
-
class:
|
|
77
|
+
i("span", {
|
|
78
|
+
class: s(n(h)),
|
|
79
79
|
onClick: L
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
i("label", {
|
|
82
82
|
for: e.id,
|
|
83
|
-
class:
|
|
83
|
+
class: s(`${a}__label`),
|
|
84
84
|
disabled: e.disabled
|
|
85
85
|
}, [
|
|
86
|
-
|
|
87
|
-
class:
|
|
86
|
+
i("span", {
|
|
87
|
+
class: s([`${a}__checkbox-frame`, "form-control-flex"])
|
|
88
88
|
}, [
|
|
89
|
-
V(
|
|
89
|
+
V(i("input", {
|
|
90
90
|
id: e.id,
|
|
91
91
|
ref: "checkbox-ref",
|
|
92
|
-
"onUpdate:modelValue":
|
|
92
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => b.value = d),
|
|
93
93
|
"aria-label": e.ariaLabel,
|
|
94
|
-
class:
|
|
94
|
+
class: s(`${a}__checkbox`),
|
|
95
95
|
disabled: e.disabled || e.busy,
|
|
96
96
|
form: e.form,
|
|
97
97
|
name: e.name,
|
|
98
98
|
required: e.required,
|
|
99
99
|
type: "checkbox",
|
|
100
100
|
value: e.value,
|
|
101
|
-
onBlur:
|
|
102
|
-
(...
|
|
103
|
-
onChange:
|
|
104
|
-
(...
|
|
105
|
-
onFocus:
|
|
106
|
-
(...
|
|
101
|
+
onBlur: t[1] || (t[1] = //@ts-ignore
|
|
102
|
+
(...d) => e.onBlur && e.onBlur(...d)),
|
|
103
|
+
onChange: t[2] || (t[2] = //@ts-ignore
|
|
104
|
+
(...d) => e.onChange && e.onChange(...d)),
|
|
105
|
+
onFocus: t[3] || (t[3] = //@ts-ignore
|
|
106
|
+
(...d) => e.onFocus && e.onFocus(...d))
|
|
107
107
|
}, null, 42, G), [
|
|
108
108
|
[q, b.value]
|
|
109
109
|
]),
|
|
110
|
-
|
|
111
|
-
class:
|
|
110
|
+
i("span", {
|
|
111
|
+
class: s(`${a}__icon`)
|
|
112
112
|
}, [
|
|
113
113
|
F(n(w), {
|
|
114
114
|
name: n(H).Check,
|
|
@@ -120,7 +120,7 @@ const j = ["data-testid"], A = ["for", "disabled"], G = ["id", "aria-label", "di
|
|
|
120
120
|
key: 0,
|
|
121
121
|
as: "span",
|
|
122
122
|
type: k[e.size],
|
|
123
|
-
class:
|
|
123
|
+
class: s(e.required ? `${a}__label--required` : "")
|
|
124
124
|
}, {
|
|
125
125
|
default: $(() => [
|
|
126
126
|
N(I(e.label), 1)
|
|
@@ -54,7 +54,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
54
54
|
}>, {
|
|
55
55
|
color: CLColors;
|
|
56
56
|
variant: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
57
|
-
borderRadius: CLBorderRadius;
|
|
58
57
|
rounded: boolean;
|
|
59
58
|
testId: string;
|
|
60
59
|
form: string;
|
|
@@ -65,6 +64,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
65
64
|
size: CLSizes;
|
|
66
65
|
required: boolean;
|
|
67
66
|
ariaLabel: string;
|
|
67
|
+
borderRadius: CLBorderRadius;
|
|
68
68
|
busy: boolean;
|
|
69
69
|
disabled: boolean;
|
|
70
70
|
value: string | number | boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLInput.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
|
-
import { defineComponent as v, computed as I, createElementBlock as
|
|
5
|
-
import { _ as te, i as ae, a as ie } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { defineComponent as v, computed as I, createElementBlock as b, openBlock as n, normalizeClass as x, unref as a, createBlock as m, Fragment as M, createTextVNode as q, toDisplayString as R, createVNode as K, ref as w, watch as T, createCommentVNode as g, mergeModels as N, useTemplateRef as Q, useModel as W, withCtx as Y, createElementVNode as L, normalizeStyle as Z, withDirectives as _, vModelDynamic as ee, isRef as le } from "vue";
|
|
5
|
+
import { _ as te, i as ae, a as ie } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtXwFFjZ.js";
|
|
6
6
|
import { _ as oe } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CaHCD2xF.js";
|
|
7
7
|
import { _ as ne } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
|
|
8
8
|
import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
9
9
|
import { CLSizes as u, CLBorderRadius as H, CLIconSizes as r, CLIconNames as h, CLColors as k, CLColorVariants as S, CLInputTypes as o, CLOrientation as B, CLCharCounterLayout as ue } from "../../../index.js";
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
12
|
-
const
|
|
10
|
+
import { _ as se } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BsGpHn52.js";
|
|
11
|
+
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-BiyeNLFr.js";
|
|
12
|
+
const de = ["data-testid"], E = /* @__PURE__ */ v({
|
|
13
13
|
name: "CLInputPrefix",
|
|
14
14
|
__name: "CLInputPrefix",
|
|
15
15
|
props: {
|
|
@@ -20,32 +20,32 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
20
20
|
testId: { default: "clll-input-prefix" }
|
|
21
21
|
},
|
|
22
22
|
setup(e) {
|
|
23
|
-
const
|
|
23
|
+
const s = e, d = "clll-input", l = (i) => Object.values(h).includes(i), $ = (i) => i, t = (i) => i?.replace("rounded-", "") || "xs", y = {
|
|
24
24
|
[u.Tiny]: r.Tiny,
|
|
25
25
|
[u.Small]: r.Small,
|
|
26
26
|
[u.Medium]: r.Medium,
|
|
27
27
|
[u.Large]: r.Large,
|
|
28
28
|
[u.XL]: r.XL
|
|
29
|
-
},
|
|
30
|
-
`${
|
|
29
|
+
}, p = I(() => [
|
|
30
|
+
`${d}__input-prefix`,
|
|
31
31
|
"form-addon-flex",
|
|
32
32
|
"form-addon-flex--left",
|
|
33
|
-
l(
|
|
34
|
-
{ "--input-group":
|
|
35
|
-
|
|
33
|
+
l(s.prefix) ? `${d}__input-prefix--icon form-addon-flex--icon` : `${d}__input-prefix--string form-addon-flex--string`,
|
|
34
|
+
{ "--input-group": s.grouped || s.prefix },
|
|
35
|
+
s.grouped ? `form-addon-radius--left-${t(s.borderRadius)}` : ""
|
|
36
36
|
]);
|
|
37
|
-
return (i,
|
|
38
|
-
class: x(a(
|
|
37
|
+
return (i, C) => (n(), b("span", {
|
|
38
|
+
class: x(a(p)),
|
|
39
39
|
"data-testid": e.testId
|
|
40
40
|
}, [
|
|
41
41
|
l(e.prefix) ? (n(), m(a(X), {
|
|
42
42
|
key: 0,
|
|
43
43
|
name: $(e.prefix),
|
|
44
44
|
size: y[e.size]
|
|
45
|
-
}, null, 8, ["name", "size"])) : (n(),
|
|
45
|
+
}, null, 8, ["name", "size"])) : (n(), b(M, { key: 1 }, [
|
|
46
46
|
q(R(e.prefix), 1)
|
|
47
47
|
], 64))
|
|
48
|
-
], 10,
|
|
48
|
+
], 10, de));
|
|
49
49
|
}
|
|
50
50
|
}), re = ["data-testid"], O = /* @__PURE__ */ v({
|
|
51
51
|
name: "CLInputSuffix",
|
|
@@ -58,29 +58,29 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
58
58
|
testId: { default: "clll-input-suffix" }
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
|
-
const
|
|
61
|
+
const s = e, d = "clll-input", l = (i) => Object.values(h).includes(i), $ = (i) => i, t = (i) => i?.replace("rounded-", "") || "xs", y = {
|
|
62
62
|
[u.Tiny]: r.Tiny,
|
|
63
63
|
[u.Small]: r.Small,
|
|
64
64
|
[u.Medium]: r.Medium,
|
|
65
65
|
[u.Large]: r.Large,
|
|
66
66
|
[u.XL]: r.XL
|
|
67
|
-
},
|
|
68
|
-
`${
|
|
67
|
+
}, p = I(() => [
|
|
68
|
+
`${d}__input-suffix`,
|
|
69
69
|
"form-addon-flex",
|
|
70
70
|
"form-addon-flex--right",
|
|
71
|
-
l(
|
|
72
|
-
{ "--input-group":
|
|
73
|
-
|
|
71
|
+
l(s.suffix) ? `${d}__input-suffix--icon form-addon-flex--icon` : `${d}__input-suffix--string form-addon-flex--string`,
|
|
72
|
+
{ "--input-group": s.grouped || s.suffix },
|
|
73
|
+
s.grouped ? `form-addon-radius--right-${t(s.borderRadius)}` : ""
|
|
74
74
|
]);
|
|
75
|
-
return (i,
|
|
76
|
-
class: x(a(
|
|
75
|
+
return (i, C) => (n(), b("span", {
|
|
76
|
+
class: x(a(p)),
|
|
77
77
|
"data-testid": e.testId
|
|
78
78
|
}, [
|
|
79
79
|
l(e.suffix) ? (n(), m(a(X), {
|
|
80
80
|
key: 0,
|
|
81
81
|
name: $(e.suffix),
|
|
82
82
|
size: y[e.size]
|
|
83
|
-
}, null, 8, ["name", "size"])) : (n(),
|
|
83
|
+
}, null, 8, ["name", "size"])) : (n(), b(M, { key: 1 }, [
|
|
84
84
|
q(R(e.suffix), 1)
|
|
85
85
|
], 64))
|
|
86
86
|
], 10, re));
|
|
@@ -94,12 +94,12 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
94
94
|
testId: { default: "clll-input-pill" }
|
|
95
95
|
},
|
|
96
96
|
setup(e) {
|
|
97
|
-
const
|
|
98
|
-
return (
|
|
99
|
-
class: x(`${
|
|
97
|
+
const s = "clll-input";
|
|
98
|
+
return (d, l) => (n(), b("span", {
|
|
99
|
+
class: x(`${s}__pill`),
|
|
100
100
|
"data-testid": e.testId
|
|
101
101
|
}, [
|
|
102
|
-
K(a(
|
|
102
|
+
K(a(se), {
|
|
103
103
|
color: e.color,
|
|
104
104
|
label: e.label,
|
|
105
105
|
variant: a(S).Soft
|
|
@@ -117,27 +117,27 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
117
117
|
testId: { default: "clll-input-color-tools" }
|
|
118
118
|
},
|
|
119
119
|
emits: ["copy", "reset", "update:copied"],
|
|
120
|
-
setup(e, { emit:
|
|
121
|
-
const
|
|
120
|
+
setup(e, { emit: s }) {
|
|
121
|
+
const d = e, l = s, $ = "clll-input", t = w(d.copied), y = {
|
|
122
122
|
[u.Tiny]: r.Tiny,
|
|
123
123
|
[u.Small]: r.Small,
|
|
124
124
|
[u.Medium]: r.Medium,
|
|
125
125
|
[u.Large]: r.Large,
|
|
126
126
|
[u.XL]: r.XL
|
|
127
|
-
},
|
|
127
|
+
}, p = async () => {
|
|
128
128
|
try {
|
|
129
|
-
|
|
130
|
-
} catch (
|
|
131
|
-
console.error(
|
|
129
|
+
d.modelValue && (await navigator.clipboard.writeText(d.modelValue.toString()), t.value = !0, l("update:copied", !0), l("copy"));
|
|
130
|
+
} catch (C) {
|
|
131
|
+
console.error(C);
|
|
132
132
|
}
|
|
133
133
|
}, i = () => {
|
|
134
|
-
l("reset",
|
|
134
|
+
l("reset", d.initialValue);
|
|
135
135
|
};
|
|
136
|
-
return T(() =>
|
|
137
|
-
t.value =
|
|
138
|
-
}), T(() =>
|
|
136
|
+
return T(() => d.copied, (C) => {
|
|
137
|
+
t.value = C;
|
|
138
|
+
}), T(() => d.modelValue, () => {
|
|
139
139
|
t.value = !1, l("update:copied", !1);
|
|
140
|
-
}), (
|
|
140
|
+
}), (C, F) => (n(), b("span", {
|
|
141
141
|
class: x(`${$}__selected-color-tools`),
|
|
142
142
|
"data-testid": e.testId
|
|
143
143
|
}, [
|
|
@@ -148,7 +148,7 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
148
148
|
color: a(k).Neutral,
|
|
149
149
|
"icon-before": a(t) ? a(h).Check : a(h).Copy,
|
|
150
150
|
"icon-size": y[e.size],
|
|
151
|
-
"on-click":
|
|
151
|
+
"on-click": p,
|
|
152
152
|
size: e.size,
|
|
153
153
|
title: a(t) ? "Color copied to clipboard" : "Copy color to clipboard",
|
|
154
154
|
variant: a(S).Ghost,
|
|
@@ -213,10 +213,10 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
213
213
|
modelModifiers: {}
|
|
214
214
|
}),
|
|
215
215
|
emits: /* @__PURE__ */ N(["reset"], ["update:modelValue"]),
|
|
216
|
-
setup(e, { expose:
|
|
217
|
-
const l = e, $ =
|
|
216
|
+
setup(e, { expose: s, emit: d }) {
|
|
217
|
+
const l = e, $ = d, t = "clll-input", y = w(!1), p = Q("input-elem"), i = W(e, "modelValue");
|
|
218
218
|
l.type === o.Color && !i.value && (i.value = "#FFFFFF");
|
|
219
|
-
const
|
|
219
|
+
const C = i.value?.toString(), F = (z) => Object.values(h).includes(z), A = I(() => [
|
|
220
220
|
t,
|
|
221
221
|
l.borderRadius ? `${t}--${l.borderRadius}` : "",
|
|
222
222
|
l.busy ? `${t}--busy` : `${t}--ready`,
|
|
@@ -246,12 +246,12 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
246
246
|
]), G = (z) => {
|
|
247
247
|
i.value = z, $("reset", i.value);
|
|
248
248
|
}, J = () => {
|
|
249
|
-
|
|
249
|
+
p.value && p.value.focus();
|
|
250
250
|
};
|
|
251
251
|
return T(i, () => {
|
|
252
252
|
y.value = !1;
|
|
253
|
-
}),
|
|
254
|
-
inputRef:
|
|
253
|
+
}), s({
|
|
254
|
+
inputRef: p
|
|
255
255
|
}), (z, c) => (n(), m(te, {
|
|
256
256
|
fluid: e.fluid,
|
|
257
257
|
"has-pill": !!e.pill,
|
|
@@ -261,7 +261,7 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
261
261
|
default: Y(() => [
|
|
262
262
|
L("span", {
|
|
263
263
|
class: x(a(A)),
|
|
264
|
-
style: Z(a(ae)({ color: e.color,
|
|
264
|
+
style: Z(a(ae)({ color: e.color, variant: e.variant })),
|
|
265
265
|
"data-testid": e.testId
|
|
266
266
|
}, [
|
|
267
267
|
e.label ? (n(), m(oe, {
|
|
@@ -316,7 +316,7 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
316
316
|
[ee, i.value]
|
|
317
317
|
])
|
|
318
318
|
], 2),
|
|
319
|
-
e.type === a(o).Color ? (n(),
|
|
319
|
+
e.type === a(o).Color ? (n(), b("span", {
|
|
320
320
|
key: 1,
|
|
321
321
|
class: x(`${t}__selected-color`)
|
|
322
322
|
}, R(i.value || "none"), 3)) : g("", !0),
|
|
@@ -326,7 +326,7 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
326
326
|
"onUpdate:modelValue": c[5] || (c[5] = (f) => i.value = f),
|
|
327
327
|
copied: a(y),
|
|
328
328
|
"onUpdate:copied": c[6] || (c[6] = (f) => le(y) ? y.value = f : null),
|
|
329
|
-
"initial-value": a(
|
|
329
|
+
"initial-value": a(C),
|
|
330
330
|
size: e.size,
|
|
331
331
|
onReset: G
|
|
332
332
|
}, null, 8, ["modelValue", "copied", "initial-value", "size"])) : g("", !0),
|
|
@@ -348,7 +348,7 @@ const se = ["data-testid"], E = /* @__PURE__ */ v({
|
|
|
348
348
|
}, null, 8, ["color", "current-length", "max-length", "layout", "size"])) : g("", !0)
|
|
349
349
|
], 2)
|
|
350
350
|
], 14, me),
|
|
351
|
-
e.pill && e.label && e.orientation === a(B).Horizontal ? (n(),
|
|
351
|
+
e.pill && e.label && e.orientation === a(B).Horizontal ? (n(), b("span", {
|
|
352
352
|
key: 0,
|
|
353
353
|
class: x(`${t}__spacer`)
|
|
354
354
|
}, null, 2)) : g("", !0),
|
|
@@ -86,7 +86,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
86
86
|
}>, {
|
|
87
87
|
color: CLColors;
|
|
88
88
|
variant: CLColorVariants.Outline | CLColorVariants.Ghost;
|
|
89
|
-
borderRadius: CLBorderRadius;
|
|
90
89
|
fluid: boolean;
|
|
91
90
|
rounded: boolean;
|
|
92
91
|
testId: string;
|
|
@@ -102,12 +101,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
102
101
|
required: boolean;
|
|
103
102
|
prefix: string | CLIconNames;
|
|
104
103
|
ariaLabel: string;
|
|
104
|
+
borderRadius: CLBorderRadius;
|
|
105
105
|
busy: boolean;
|
|
106
106
|
disabled: boolean;
|
|
107
107
|
pill: string;
|
|
108
108
|
placeholder: string;
|
|
109
109
|
orientation: CLOrientation;
|
|
110
|
-
readonly: boolean;
|
|
111
110
|
messages: string[];
|
|
112
111
|
messageType: CLColors;
|
|
113
112
|
maxLength: number;
|
|
@@ -116,6 +115,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
116
115
|
autoComplete: boolean;
|
|
117
116
|
charCounter: boolean;
|
|
118
117
|
minLength: number;
|
|
118
|
+
readonly: boolean;
|
|
119
119
|
spellCheck: boolean;
|
|
120
120
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
121
121
|
'input-elem': HTMLInputElement;
|
|
@@ -12,9 +12,9 @@ export interface CLInputPrefixProps {
|
|
|
12
12
|
testId?: string;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import('vue').DefineComponent<CLInputPrefixProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLInputPrefixProps> & Readonly<{}>, {
|
|
15
|
-
borderRadius: string;
|
|
16
15
|
testId: string;
|
|
17
16
|
size: CLSizes;
|
|
17
|
+
borderRadius: string;
|
|
18
18
|
grouped: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
20
20
|
export default _default;
|
|
@@ -12,9 +12,9 @@ export interface CLInputSuffixProps {
|
|
|
12
12
|
testId?: string;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import('vue').DefineComponent<CLInputSuffixProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLInputSuffixProps> & Readonly<{}>, {
|
|
15
|
-
borderRadius: string;
|
|
16
15
|
testId: string;
|
|
17
16
|
size: CLSizes;
|
|
17
|
+
borderRadius: string;
|
|
18
18
|
grouped: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
20
20
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLRadioButton.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
|
-
import { defineComponent as k, mergeModels as x, useModel as T, useTemplateRef as h, computed as f, createBlock as m, openBlock as c, withCtx as
|
|
5
|
-
import { _ as M, c as F, a as N } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { defineComponent as k, mergeModels as x, useModel as T, useTemplateRef as h, computed as f, createBlock as m, openBlock as c, withCtx as $, createElementVNode as n, createCommentVNode as y, normalizeStyle as R, normalizeClass as d, unref as u, withDirectives as q, vModelRadio as S, createTextVNode as V, toDisplayString as z } from "vue";
|
|
5
|
+
import { _ as M, c as F, a as N } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtXwFFjZ.js";
|
|
6
6
|
import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
7
|
-
import { CLSizes as
|
|
7
|
+
import { CLSizes as s, CLTextTypes as i, CLColorVariants as D, CLColors as I } from "../../../index.js";
|
|
8
8
|
const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "disabled", "name", "value", "required"], G = /* @__PURE__ */ k({
|
|
9
9
|
name: "CLRadioButton",
|
|
10
10
|
__name: "CLRadioButton",
|
|
@@ -23,7 +23,7 @@ const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "dis
|
|
|
23
23
|
name: {},
|
|
24
24
|
required: { type: Boolean },
|
|
25
25
|
rounded: { type: Boolean, default: !0 },
|
|
26
|
-
size: { default:
|
|
26
|
+
size: { default: s.Small },
|
|
27
27
|
testId: { default: "clll-radiobutton" },
|
|
28
28
|
value: { type: [String, Number, Boolean] },
|
|
29
29
|
variant: { default: D.Outline },
|
|
@@ -37,11 +37,11 @@ const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "dis
|
|
|
37
37
|
emits: ["update:modelValue"],
|
|
38
38
|
setup(e, { expose: C }) {
|
|
39
39
|
const g = {
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
40
|
+
[s.Tiny]: i.Small,
|
|
41
|
+
[s.Small]: i.Medium,
|
|
42
|
+
[s.Medium]: i.Medium,
|
|
43
|
+
[s.Large]: i.Large,
|
|
44
|
+
[s.XL]: i.XL
|
|
45
45
|
}, l = e, a = "clll-radiobutton", b = T(e, "modelValue"), r = h("radiobutton-ref"), v = () => {
|
|
46
46
|
r.value && r.value.focus();
|
|
47
47
|
}, B = f(() => [
|
|
@@ -62,24 +62,24 @@ const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "dis
|
|
|
62
62
|
return C({
|
|
63
63
|
radiobuttonRef: r
|
|
64
64
|
}), (O, t) => (c(), m(M, null, {
|
|
65
|
-
default:
|
|
66
|
-
|
|
65
|
+
default: $(() => [
|
|
66
|
+
n("span", {
|
|
67
67
|
class: d(u(B)),
|
|
68
|
-
style: R(u(F)({ color: e.color,
|
|
68
|
+
style: R(u(F)({ color: e.color, variant: e.variant })),
|
|
69
69
|
"data-testid": e.testId
|
|
70
70
|
}, [
|
|
71
|
-
|
|
71
|
+
n("span", {
|
|
72
72
|
class: d(u(L)),
|
|
73
73
|
onClick: v
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
n("label", {
|
|
76
76
|
for: e.id,
|
|
77
77
|
class: d(`${a}__label`)
|
|
78
78
|
}, [
|
|
79
|
-
|
|
79
|
+
n("span", {
|
|
80
80
|
class: d([`${a}__radiobutton-frame`, "form-control-flex"])
|
|
81
81
|
}, [
|
|
82
|
-
q(
|
|
82
|
+
q(n("input", {
|
|
83
83
|
id: e.id,
|
|
84
84
|
ref: "radiobutton-ref",
|
|
85
85
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => b.value = o),
|
|
@@ -100,7 +100,7 @@ const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "dis
|
|
|
100
100
|
}, null, 42, H), [
|
|
101
101
|
[S, b.value]
|
|
102
102
|
]),
|
|
103
|
-
|
|
103
|
+
n("span", {
|
|
104
104
|
class: d(`${a}__indicator`)
|
|
105
105
|
}, null, 2)
|
|
106
106
|
], 2),
|
|
@@ -110,11 +110,11 @@ const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "dis
|
|
|
110
110
|
type: g[e.size],
|
|
111
111
|
class: d(e.required ? `${a}__label--required` : "")
|
|
112
112
|
}, {
|
|
113
|
-
default:
|
|
113
|
+
default: $(() => [
|
|
114
114
|
V(z(e.label), 1)
|
|
115
115
|
]),
|
|
116
116
|
_: 1
|
|
117
|
-
}, 8, ["type", "class"])) :
|
|
117
|
+
}, 8, ["type", "class"])) : y("", !0)
|
|
118
118
|
], 10, E)
|
|
119
119
|
], 2)
|
|
120
120
|
], 14, X),
|
|
@@ -123,7 +123,7 @@ const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "dis
|
|
|
123
123
|
id: e.id,
|
|
124
124
|
messages: e.messages,
|
|
125
125
|
"message-type": e.messageType
|
|
126
|
-
}, null, 8, ["id", "messages", "message-type"])) :
|
|
126
|
+
}, null, 8, ["id", "messages", "message-type"])) : y("", !0)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
129
|
}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLSelect.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
|
-
import { defineComponent as B, mergeModels as S, useModel as h, useTemplateRef as q, computed as x, createBlock as f, openBlock as
|
|
5
|
-
import { _ as D, s as w, a as E } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { defineComponent as B, mergeModels as S, useModel as h, useTemplateRef as q, computed as x, createBlock as f, openBlock as n, withCtx as T, createElementVNode as d, createCommentVNode as $, normalizeStyle as V, normalizeClass as r, unref as u, withDirectives as k, createElementBlock as b, Fragment as M, renderList as F, toDisplayString as I, vModelSelect as N, createVNode as R } from "vue";
|
|
5
|
+
import { _ as D, s as w, a as E } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CtXwFFjZ.js";
|
|
6
6
|
import { _ as H } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CaHCD2xF.js";
|
|
7
7
|
import { _ as O } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
8
|
-
import { CLSizes as
|
|
8
|
+
import { CLSizes as o, CLIconSizes as s, CLOrientation as y, CLIconNames as P, CLColorVariants as U, CLColors as X } from "../../../index.js";
|
|
9
9
|
const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeholder", "form", "required"], G = ["value", "selected", "disabled"], p = /* @__PURE__ */ B({
|
|
10
10
|
name: "CLSelect",
|
|
11
11
|
__name: "CLSelect",
|
|
@@ -30,7 +30,7 @@ const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeho
|
|
|
30
30
|
placeholder: {},
|
|
31
31
|
required: { type: Boolean },
|
|
32
32
|
rounded: { type: Boolean, default: !0 },
|
|
33
|
-
size: { default:
|
|
33
|
+
size: { default: o.Small },
|
|
34
34
|
testId: { default: "clll-select" },
|
|
35
35
|
variant: { default: U.Outline }
|
|
36
36
|
}, {
|
|
@@ -40,11 +40,11 @@ const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeho
|
|
|
40
40
|
emits: ["update:modelValue"],
|
|
41
41
|
setup(e, { expose: C }) {
|
|
42
42
|
const g = {
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
43
|
+
[o.Tiny]: s.Tiny,
|
|
44
|
+
[o.Small]: s.Tiny,
|
|
45
|
+
[o.Medium]: s.Small,
|
|
46
|
+
[o.Large]: s.Medium,
|
|
47
|
+
[o.XL]: s.Medium
|
|
48
48
|
}, a = e, l = "clll-select", m = h(e, "modelValue"), c = q("select-ref"), v = () => {
|
|
49
49
|
c.value && c.value.focus();
|
|
50
50
|
}, z = x(() => [
|
|
@@ -64,24 +64,24 @@ const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeho
|
|
|
64
64
|
]);
|
|
65
65
|
return C({
|
|
66
66
|
selectRef: c
|
|
67
|
-
}), (J, i) => (
|
|
67
|
+
}), (J, i) => (n(), f(D, {
|
|
68
68
|
fluid: e.fluid,
|
|
69
69
|
orientation: e.orientation
|
|
70
70
|
}, {
|
|
71
71
|
default: T(() => [
|
|
72
72
|
d("span", {
|
|
73
73
|
class: r(u(z)),
|
|
74
|
-
style: V(u(w)({ color: e.color,
|
|
74
|
+
style: V(u(w)({ color: e.color, variant: e.variant })),
|
|
75
75
|
"data-testid": e.testId
|
|
76
76
|
}, [
|
|
77
|
-
e.label ? (
|
|
77
|
+
e.label ? (n(), f(H, {
|
|
78
78
|
key: 0,
|
|
79
79
|
"css-prefix": l,
|
|
80
80
|
"html-for": e.id,
|
|
81
81
|
label: e.label,
|
|
82
82
|
required: e.required,
|
|
83
83
|
size: e.size
|
|
84
|
-
}, null, 8, ["html-for", "label", "required", "size"])) :
|
|
84
|
+
}, null, 8, ["html-for", "label", "required", "size"])) : $("", !0),
|
|
85
85
|
d("span", {
|
|
86
86
|
class: r(`${l}__select-container`),
|
|
87
87
|
onClick: v
|
|
@@ -104,12 +104,12 @@ const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeho
|
|
|
104
104
|
onFocus: i[3] || (i[3] = //@ts-ignore
|
|
105
105
|
(...t) => e.onFocus && e.onFocus(...t))
|
|
106
106
|
}, [
|
|
107
|
-
e.options ? (
|
|
107
|
+
e.options ? (n(!0), b(M, { key: 0 }, F(e.options, (t, L) => (n(), b("option", {
|
|
108
108
|
key: `${e.id}-option-${L}`,
|
|
109
109
|
value: t.value,
|
|
110
110
|
selected: t.value === m.value,
|
|
111
111
|
disabled: t.disabled
|
|
112
|
-
}, I(t.label), 9, G))), 128)) :
|
|
112
|
+
}, I(t.label), 9, G))), 128)) : $("", !0)
|
|
113
113
|
], 42, A), [
|
|
114
114
|
[N, m.value]
|
|
115
115
|
]),
|
|
@@ -123,12 +123,12 @@ const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeho
|
|
|
123
123
|
], 2)
|
|
124
124
|
], 2)
|
|
125
125
|
], 14, j),
|
|
126
|
-
e.id ? (
|
|
126
|
+
e.id ? (n(), f(E, {
|
|
127
127
|
key: 0,
|
|
128
128
|
id: e.id,
|
|
129
129
|
messages: e.messages,
|
|
130
130
|
"message-type": e.messageType
|
|
131
|
-
}, null, 8, ["id", "messages", "message-type"])) :
|
|
131
|
+
}, null, 8, ["id", "messages", "message-type"])) : $("", !0)
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["fluid", "orientation"]));
|