@codeandfunction/callaloo 4.9.3 → 4.9.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/callaloo.global.js +1 -1
- package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-BHF3fJsf.js +2 -0
- package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-3vGTMU-k.js +2 -0
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-BAfGE35e.js +2 -0
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-DPQxSLkQ.js +2 -0
- package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-BYHbqaf0.js +2 -0
- package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-BPwFZq94.js +1 -0
- package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-CsmrsD6c.js +2 -0
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-yF4CdZbV.js +2 -0
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DCByJ7MB.js +2 -0
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-CCyY39MJ.js +2 -0
- package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-CwdYGfO9.js +2 -0
- package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Ds2aJNK9.js +1 -0
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BVsLNnfE.js +2 -0
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-BmjT9fQ_.js +2 -0
- package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DgZLt9T1.js +2 -0
- package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-CMXJdE-D.js +2 -0
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-BIehrtqC.js +2 -0
- package/dist/chunks/context-CRxE5KWX.js +1 -0
- package/dist/chunks/context-JmPivI9V.js +1 -0
- package/dist/chunks/floating-ui.vue-C0JWy0Dz.js +1 -0
- package/dist/chunks/helper-C542dSLs.js +1 -0
- package/dist/chunks/icons-6SVrmx7c.js +1 -0
- package/dist/chunks/utils-C1iUBPIL.js +1 -0
- package/dist/chunks/utils-CCWSWRuR.js +1 -0
- package/dist/chunks/utils-CYywa195.js +1 -0
- package/dist/chunks/utils-DVxwAjJ4.js +1 -0
- package/dist/chunks/utils-Dst7nzvj.js +1 -0
- package/dist/chunks/utils-MElq6rY3.js +1 -0
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -5
- package/dist/components/Buttons/CLButton/CLButton.js +1 -5
- package/dist/components/CLIcon/CLIcon.js +1 -5
- package/dist/components/CLTable/CLTable.js +1 -192
- package/dist/components/Containers/CLCard/CLCard.js +1 -5
- package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -544
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +1 -139
- package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -119
- package/dist/components/Form/CLCalendar/CLCalendar.js +1 -5
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -150
- package/dist/components/Form/CLInput/CLInput.js +1 -450
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +1 -178
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +1 -135
- package/dist/components/Form/CLSelect/CLSelect.js +1 -140
- package/dist/components/Form/CLTextArea/CLTextArea.js +1 -149
- package/dist/components/Indicators/CLBadge/CLBadge.js +1 -40
- package/dist/components/Indicators/CLBanner/CLBanner.js +1 -145
- package/dist/components/Indicators/CLPill/CLPill.js +1 -5
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -64
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -5
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -5
- package/dist/components/Modals/CLModal/CLModal.js +1 -5
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.css +1 -1
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +1 -182
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +3 -0
- package/dist/components/Navigation/CLLink/CLLink.js +1 -5
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -5
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -54
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1 -150
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -5
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -8
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -7
- package/dist/components/Typography/CLHeading/CLHeading.js +1 -5
- package/dist/components/Typography/CLText/CLText.js +1 -5
- package/dist/composables/useDateInputMask.js +1 -38
- package/dist/composables/useDatePicker.js +1 -140
- package/dist/composables/useDropdown.js +1 -49
- package/dist/composables/useElementSize.js +1 -73
- package/dist/composables/useEsc.js +1 -19
- package/dist/composables/useHasSlotContent.js +1 -14
- package/dist/composables/useTheme.js +1 -40
- package/dist/composables/useToast.js +1 -17
- package/dist/index.js +1 -30
- package/dist/styles.css +1 -1
- package/package.json +20 -20
- package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-zGLnnSIW.js +0 -47
- package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js +0 -136
- package/dist/chunks/CLCalendar.vue_vue_type_style_index_0_lang-Bz1JdT1A.js +0 -163
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Sre7UYZd.js +0 -263
- package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +0 -39
- package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-CIQxM6aH.js +0 -46
- package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js +0 -52
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-Dhr2tI-g.js +0 -113
- package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-DTWvAACK.js +0 -149
- package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js +0 -69
- package/dist/chunks/CLModal.vue_vue_type_style_index_0_lang-BDyONfaQ.js +0 -176
- package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Dhnmfa9W.js +0 -44
- package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-BQim03ge.js +0 -94
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js +0 -31
- package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-DlXqnsi8.js +0 -55
- package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js +0 -48
- package/dist/chunks/CLThemeProvider.vue_vue_type_script_setup_true_lang-jaJYKZL8.js +0 -59
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-CzSDeL_X.js +0 -202
- package/dist/chunks/CLToastProvider.vue_vue_type_script_setup_true_lang-DkGK0H4Z.js +0 -35
- package/dist/chunks/context-CEvx70FY.js +0 -264
- package/dist/chunks/context-dkA4VoF7.js +0 -4
- package/dist/chunks/floating-ui.vue-Fx4CxKut.js +0 -1057
- package/dist/chunks/helper-qUkciePY.js +0 -81
- package/dist/chunks/icons-DllZKtC2.js +0 -4
- package/dist/chunks/magic-string.es-uPKorP4O.js +0 -663
- package/dist/chunks/utils-BfOa9ckr.js +0 -24
- package/dist/chunks/utils-BjZURPWx.js +0 -51
- package/dist/chunks/utils-C1xiySYN.js +0 -41
- package/dist/chunks/utils-D00IXMTR.js +0 -25
- package/dist/chunks/utils-eBt2zUZl.js +0 -17
- package/dist/chunks/utils-nD3K7jh9.js +0 -85
- package/dist/chunks/vue-test-utils.esm-bundler-BeQTU4qG.js +0 -18679
- package/dist/composables/useDatePicker.spec.js +0 -232
- package/dist/composables/useTheme.spec.js +0 -88
- package/dist/composables/useToast.spec.js +0 -45
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import '../components/Containers/CLCard/CLCard.css';
|
|
2
|
-
import { defineComponent as W, useSlots as V, ref as k, computed as I, onMounted as z, nextTick as F, createElementBlock as c, openBlock as i, withKeys as K, normalizeStyle as v, normalizeClass as n, unref as l, createCommentVNode as d, createElementVNode as u, createBlock as r, renderSlot as s, Fragment as M, withCtx as b, createTextVNode as C, toDisplayString as L } from "vue";
|
|
3
|
-
import { _ as S } from "./CLHeading.vue_vue_type_style_index_0_lang-DH5oJc1C.js";
|
|
4
|
-
import { _ as q } from "./CLLink.vue_vue_type_style_index_0_lang-BXysZqLn.js";
|
|
5
|
-
import { _ as g } from "./CLSkeleton.vue_vue_type_style_index_0_lang-DduoX6Cu.js";
|
|
6
|
-
import { _ as D } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
7
|
-
import { CLColorVariants as R, CLCardTypes as G, CLHeadingTypes as j, CLHeadingLevels as J, CLLinkTarget as P, CLOverflow as Q, CLLoading as U, CLColors as X, CLAlign as Y, CLOrder as A, CLTextTypes as Z } from "../index.js";
|
|
8
|
-
import { c as p } from "./utils-BjZURPWx.js";
|
|
9
|
-
import { useHasSlotContent as _ } from "../composables/useHasSlotContent.js";
|
|
10
|
-
const ee = ["data-testid", "tabindex"], ae = ["alt", "loading", "src"], te = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "clll-card__header-skeleton"
|
|
13
|
-
}, le = ["alt", "loading", "src"], ie = ["aria-label", "href", "target"], he = /* @__PURE__ */ W({
|
|
14
|
-
name: "CLCard",
|
|
15
|
-
__name: "CLCard",
|
|
16
|
-
props: {
|
|
17
|
-
active: { type: Boolean, default: !1 },
|
|
18
|
-
align: { default: Y.Left },
|
|
19
|
-
ariaLabel: {},
|
|
20
|
-
borderRadius: {},
|
|
21
|
-
bordered: { type: Boolean, default: !0 },
|
|
22
|
-
busy: { type: Boolean, default: !1 },
|
|
23
|
-
byline: {},
|
|
24
|
-
color: { default: X.Neutral },
|
|
25
|
-
compact: { type: Boolean, default: !1 },
|
|
26
|
-
elevated: { type: Boolean, default: !1 },
|
|
27
|
-
forwardRef: {},
|
|
28
|
-
height: { default: "auto" },
|
|
29
|
-
href: {},
|
|
30
|
-
image: {},
|
|
31
|
-
imageAltText: { default: "" },
|
|
32
|
-
imageHeight: { default: "auto" },
|
|
33
|
-
imageLoading: { default: U.Eager },
|
|
34
|
-
imageOrder: {},
|
|
35
|
-
imageWidth: { default: "auto" },
|
|
36
|
-
onClick: {},
|
|
37
|
-
overflow: { default: Q.Hidden },
|
|
38
|
-
padded: { type: Boolean, default: !0 },
|
|
39
|
-
rounded: { type: Boolean, default: !0 },
|
|
40
|
-
target: { default: P.Self },
|
|
41
|
-
testId: { default: "clll-card" },
|
|
42
|
-
title: {},
|
|
43
|
-
titleHLevel: { default: J.H2 },
|
|
44
|
-
titleType: { default: j.SubSection },
|
|
45
|
-
truncateTitle: { type: Boolean, default: !1 },
|
|
46
|
-
type: { default: G.Medium },
|
|
47
|
-
variant: { default: R.Soft },
|
|
48
|
-
width: { default: "auto" }
|
|
49
|
-
},
|
|
50
|
-
setup(e) {
|
|
51
|
-
const a = "clll-card", t = e, w = _(), T = V(), f = k(), $ = k(), E = ["a", "button"], y = k(), O = I(() => [
|
|
52
|
-
a,
|
|
53
|
-
`${a}--${t.type}`,
|
|
54
|
-
`${a}--${t.color}-${t.variant}`,
|
|
55
|
-
`${a}--${t.variant}`,
|
|
56
|
-
`${a}--align-${t.align}`,
|
|
57
|
-
t.rounded ? `${a}--rounded` : `${a}--box`,
|
|
58
|
-
t.bordered ? `${a}--bordered` : "",
|
|
59
|
-
t.borderRadius ? `${a}--${t.borderRadius}` : "",
|
|
60
|
-
t.busy ? `${a}--busy` : `${a}--ready`,
|
|
61
|
-
t.compact ? `${a}--compact` : `${a}--no-compact`,
|
|
62
|
-
t.title || t.byline ? `${a}--has-header` : `${a}--no-header`,
|
|
63
|
-
f.value ? `${a}--has-heading` : `${a}--no-heading`,
|
|
64
|
-
w.value ? `${a}--has-content` : `${a}--no-content`,
|
|
65
|
-
$.value ? `${a}--has-footer` : `${a}--no-footer`,
|
|
66
|
-
t.image ? `${a}--has-image` : `${a}--has-no-image`,
|
|
67
|
-
t.imageOrder ? `${a}--image-${t.imageOrder}` : "",
|
|
68
|
-
t.active ? `${a}--active` : `${a}--inactive`,
|
|
69
|
-
t.onClick ? `${a}--has-link` : "",
|
|
70
|
-
t.truncateTitle ? `${a}--has-truncated-title` : "",
|
|
71
|
-
t.elevated ? `${a}--elevated` : "",
|
|
72
|
-
t.overflow ? `${a}--overflow-${t.overflow}` : "",
|
|
73
|
-
t.padded ? "" : `${a}--no-padding`
|
|
74
|
-
]), x = (o) => {
|
|
75
|
-
if (t.busy || !t.onClick) return;
|
|
76
|
-
const { target: h } = o, m = h ? h.closest("a,button") : void 0, H = [
|
|
77
|
-
...y.value?.querySelectorAll("[data-expand-click-area]") ?? []
|
|
78
|
-
];
|
|
79
|
-
if (H.length) {
|
|
80
|
-
const B = H[0], N = m ? E.includes(m.tagName.toLowerCase()) : null;
|
|
81
|
-
!m && B !== o.target && !N && B.click();
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
return z(async () => {
|
|
85
|
-
await F(), y.value && t.forwardRef?.(y.value), f.value = T?.heading, $.value = T?.footer;
|
|
86
|
-
}), (o, h) => (i(), c("div", {
|
|
87
|
-
ref_key: "refExpandedArea",
|
|
88
|
-
ref: y,
|
|
89
|
-
class: n(l(O)),
|
|
90
|
-
style: v({ ...l(p)({ color: e.color, variant: e.variant }), width: e.width, height: e.height, overflow: e.overflow }),
|
|
91
|
-
"data-testid": e.testId,
|
|
92
|
-
tabindex: e.onClick ? 0 : void 0,
|
|
93
|
-
onClick: x,
|
|
94
|
-
onKeyup: K(x, ["enter"])
|
|
95
|
-
}, [
|
|
96
|
-
e.image && (e.imageOrder === l(A).Before || !e.imageOrder) ? (i(), c("div", {
|
|
97
|
-
key: 0,
|
|
98
|
-
class: n(["clll-card__image", { busy: e.busy }]),
|
|
99
|
-
style: v({ width: e.imageWidth, height: e.imageHeight })
|
|
100
|
-
}, [
|
|
101
|
-
e.busy ? (i(), r(l(g), {
|
|
102
|
-
key: 0,
|
|
103
|
-
"border-radius": e.borderRadius,
|
|
104
|
-
width: e.imageWidth,
|
|
105
|
-
height: e.imageHeight,
|
|
106
|
-
rounded: !1
|
|
107
|
-
}, null, 8, ["border-radius", "width", "height"])) : d("", !0),
|
|
108
|
-
e.image ? (i(), c("img", {
|
|
109
|
-
key: 1,
|
|
110
|
-
alt: e.imageAltText,
|
|
111
|
-
class: n(`${a}__image__elem`),
|
|
112
|
-
loading: e.imageLoading,
|
|
113
|
-
src: e.image
|
|
114
|
-
}, null, 10, ae)) : d("", !0)
|
|
115
|
-
], 6)) : d("", !0),
|
|
116
|
-
u("div", {
|
|
117
|
-
class: n(`${a}__content`)
|
|
118
|
-
}, [
|
|
119
|
-
u("div", {
|
|
120
|
-
class: n(["clll-card__header", { busy: e.busy }])
|
|
121
|
-
}, [
|
|
122
|
-
e.busy && (l(f) || e.title || e.byline) ? (i(), c("div", te, [
|
|
123
|
-
l(f) || e.title ? (i(), r(l(g), {
|
|
124
|
-
key: 0,
|
|
125
|
-
"border-radius": e.borderRadius,
|
|
126
|
-
height: "27px"
|
|
127
|
-
}, null, 8, ["border-radius"])) : d("", !0),
|
|
128
|
-
e.byline ? (i(), r(l(g), {
|
|
129
|
-
key: 1,
|
|
130
|
-
"border-radius": e.borderRadius,
|
|
131
|
-
width: "70%",
|
|
132
|
-
height: "20px"
|
|
133
|
-
}, null, 8, ["border-radius"])) : d("", !0)
|
|
134
|
-
])) : d("", !0),
|
|
135
|
-
!e.onClick && !e.href ? (i(), c(M, { key: 1 }, [
|
|
136
|
-
s(o.$slots, "heading"),
|
|
137
|
-
e.title ? (i(), r(l(S), {
|
|
138
|
-
key: 0,
|
|
139
|
-
align: e.align,
|
|
140
|
-
class: n(`${a}__heading`),
|
|
141
|
-
color: e.color,
|
|
142
|
-
level: e.titleHLevel,
|
|
143
|
-
truncate: e.truncateTitle,
|
|
144
|
-
type: e.titleType
|
|
145
|
-
}, {
|
|
146
|
-
default: b(() => [
|
|
147
|
-
C(L(e.title), 1)
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["align", "class", "color", "level", "truncate", "type"])) : d("", !0)
|
|
151
|
-
], 64)) : e.title || l(f) && (e.onClick || e.href) ? (i(), r(l(q), {
|
|
152
|
-
key: 2,
|
|
153
|
-
"aria-label": e.ariaLabel,
|
|
154
|
-
color: e.color,
|
|
155
|
-
href: e.href,
|
|
156
|
-
target: e.target,
|
|
157
|
-
"on-click": e.onClick,
|
|
158
|
-
"data-expand-click-area": ""
|
|
159
|
-
}, {
|
|
160
|
-
default: b(() => [
|
|
161
|
-
s(o.$slots, "heading"),
|
|
162
|
-
e.title ? (i(), r(l(S), {
|
|
163
|
-
key: 0,
|
|
164
|
-
align: e.align,
|
|
165
|
-
class: n(`${a}__heading`),
|
|
166
|
-
color: e.color,
|
|
167
|
-
level: e.titleHLevel,
|
|
168
|
-
truncate: e.truncateTitle,
|
|
169
|
-
type: e.titleType
|
|
170
|
-
}, {
|
|
171
|
-
default: b(() => [
|
|
172
|
-
C(L(e.title), 1)
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
}, 8, ["align", "class", "color", "level", "truncate", "type"])) : d("", !0)
|
|
176
|
-
]),
|
|
177
|
-
_: 3
|
|
178
|
-
}, 8, ["aria-label", "color", "href", "target", "on-click"])) : d("", !0),
|
|
179
|
-
s(o.$slots, "byline"),
|
|
180
|
-
e.byline ? (i(), r(l(D), {
|
|
181
|
-
key: 3,
|
|
182
|
-
align: e.align,
|
|
183
|
-
class: n(`${a}__byline`),
|
|
184
|
-
color: e.color,
|
|
185
|
-
type: l(Z).Small
|
|
186
|
-
}, {
|
|
187
|
-
default: b(() => [
|
|
188
|
-
C(L(e.byline), 1)
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}, 8, ["align", "class", "color", "type"])) : d("", !0)
|
|
192
|
-
], 2),
|
|
193
|
-
u("div", {
|
|
194
|
-
class: n(`${a}__slot`)
|
|
195
|
-
}, [
|
|
196
|
-
u("div", {
|
|
197
|
-
ref: "slot-content",
|
|
198
|
-
class: n([`${a}__slot-content`, { busy: e.busy }])
|
|
199
|
-
}, [
|
|
200
|
-
l(w) && e.busy ? (i(), r(l(g), {
|
|
201
|
-
key: 0,
|
|
202
|
-
"border-radius": e.borderRadius,
|
|
203
|
-
width: "100%",
|
|
204
|
-
height: "100%"
|
|
205
|
-
}, null, 8, ["border-radius"])) : d("", !0),
|
|
206
|
-
u("div", null, [
|
|
207
|
-
s(o.$slots, "default")
|
|
208
|
-
])
|
|
209
|
-
], 2)
|
|
210
|
-
], 2),
|
|
211
|
-
u("div", {
|
|
212
|
-
class: n(["clll-card__footer", { busy: e.busy }])
|
|
213
|
-
}, [
|
|
214
|
-
l($) && e.busy ? (i(), r(l(g), {
|
|
215
|
-
key: 0,
|
|
216
|
-
"border-radius": e.borderRadius,
|
|
217
|
-
width: "100%",
|
|
218
|
-
height: "20px"
|
|
219
|
-
}, null, 8, ["border-radius"])) : d("", !0),
|
|
220
|
-
s(o.$slots, "footer")
|
|
221
|
-
], 2)
|
|
222
|
-
], 2),
|
|
223
|
-
e.image && e.imageOrder === l(A).After ? (i(), c("div", {
|
|
224
|
-
key: 1,
|
|
225
|
-
class: n(["clll-card__image", { busy: e.busy }]),
|
|
226
|
-
style: v({ width: e.imageWidth, height: e.imageHeight })
|
|
227
|
-
}, [
|
|
228
|
-
e.busy ? (i(), r(l(g), {
|
|
229
|
-
key: 0,
|
|
230
|
-
"border-radius": e.borderRadius,
|
|
231
|
-
width: e.imageWidth,
|
|
232
|
-
height: e.imageHeight,
|
|
233
|
-
rounded: !1
|
|
234
|
-
}, null, 8, ["border-radius", "width", "height"])) : d("", !0),
|
|
235
|
-
s(o.$slots, "image"),
|
|
236
|
-
e.image ? (i(), c("img", {
|
|
237
|
-
key: 1,
|
|
238
|
-
alt: e.imageAltText,
|
|
239
|
-
class: n(`${a}__image__elem`),
|
|
240
|
-
loading: e.imageLoading,
|
|
241
|
-
src: e.image
|
|
242
|
-
}, null, 10, le)) : d("", !0)
|
|
243
|
-
], 6)) : d("", !0),
|
|
244
|
-
!e.title && (e.onClick || e.href) ? (i(), c("a", {
|
|
245
|
-
key: 2,
|
|
246
|
-
"aria-label": e.ariaLabel,
|
|
247
|
-
class: "sr-only",
|
|
248
|
-
href: e.href,
|
|
249
|
-
target: e.target,
|
|
250
|
-
"data-expand-click-area": "",
|
|
251
|
-
onClick: h[0] || (h[0] = //@ts-ignore
|
|
252
|
-
(...m) => e.onClick && e.onClick(...m))
|
|
253
|
-
}, null, 8, ie)) : d("", !0),
|
|
254
|
-
e.onClick && e.variant !== l(R).Ghost ? (i(), c("div", {
|
|
255
|
-
key: 3,
|
|
256
|
-
class: n(`${a}__hover-elem`)
|
|
257
|
-
}, null, 2)) : d("", !0)
|
|
258
|
-
], 46, ee));
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
export {
|
|
262
|
-
he as _
|
|
263
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import '../assets/CLFormCharCounter.css';
|
|
2
|
-
import { defineComponent as l, computed as a, createElementBlock as n, openBlock as s, normalizeClass as u, unref as m, createElementVNode as i, toDisplayString as r } from "vue";
|
|
3
|
-
import { CLSizes as f, CLCharCounterLayout as o, CLColors as h } from "../index.js";
|
|
4
|
-
const d = ["data-testid"], C = {
|
|
5
|
-
"aria-live": "polite",
|
|
6
|
-
class: "clll-form-char-counter__char-counter__text",
|
|
7
|
-
role: "status"
|
|
8
|
-
}, g = /* @__PURE__ */ l({
|
|
9
|
-
name: "CLFormCharCounter",
|
|
10
|
-
__name: "CLFormCharCounter",
|
|
11
|
-
props: {
|
|
12
|
-
color: { default: h.Neutral },
|
|
13
|
-
cssPrefix: {},
|
|
14
|
-
currentLength: {},
|
|
15
|
-
layout: { default: o.Block },
|
|
16
|
-
maxLength: {},
|
|
17
|
-
size: { default: f.Small },
|
|
18
|
-
testId: { default: "clll-form-char-counter" }
|
|
19
|
-
},
|
|
20
|
-
setup(t) {
|
|
21
|
-
const e = t, c = a(() => [
|
|
22
|
-
`${e.cssPrefix}__char-counter`,
|
|
23
|
-
"clll-form-char-counter",
|
|
24
|
-
`clll-form-char-counter--${e.layout}`,
|
|
25
|
-
`clll-form-char-counter--${e.size}`,
|
|
26
|
-
`clll-form-char-counter--${e.color}`,
|
|
27
|
-
e.layout === o.Inline ? "form-counter-flex" : ""
|
|
28
|
-
]);
|
|
29
|
-
return (_, L) => (s(), n("span", {
|
|
30
|
-
class: u(m(c)),
|
|
31
|
-
"data-testid": t.testId
|
|
32
|
-
}, [
|
|
33
|
-
i("div", C, r(t.currentLength) + "/" + r(t.maxLength), 1)
|
|
34
|
-
], 10, d));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
g as _
|
|
39
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, createElementBlock as i, openBlock as o, normalizeClass as a, createVNode as m, unref as n, withCtx as c, createTextVNode as d, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as X } from "./CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
|
|
3
|
-
import { CLSizes as e, CLTextTypes as l } from "../index.js";
|
|
4
|
-
const L = ["for", "data-testid"], S = /* @__PURE__ */ r({
|
|
5
|
-
name: "CLFormLabel",
|
|
6
|
-
__name: "CLFormLabel",
|
|
7
|
-
props: {
|
|
8
|
-
cssPrefix: { default: "clll-form" },
|
|
9
|
-
htmlFor: {},
|
|
10
|
-
label: {},
|
|
11
|
-
required: { type: Boolean, default: !1 },
|
|
12
|
-
size: { default: e.Small },
|
|
13
|
-
testId: { default: "clll-form-label" }
|
|
14
|
-
},
|
|
15
|
-
setup(t) {
|
|
16
|
-
const s = {
|
|
17
|
-
[e.Tiny]: l.Tiny,
|
|
18
|
-
[e.Small]: l.Small,
|
|
19
|
-
[e.Medium]: l.Medium,
|
|
20
|
-
[e.Large]: l.Body,
|
|
21
|
-
[e.XL]: l.XL,
|
|
22
|
-
[e.XXL]: l.XXL,
|
|
23
|
-
[e.XXXL]: l.XXXL,
|
|
24
|
-
[e.XXXXL]: l.XXXXL
|
|
25
|
-
};
|
|
26
|
-
return (u, b) => (o(), i("label", {
|
|
27
|
-
for: t.htmlFor,
|
|
28
|
-
class: a(`${t.cssPrefix}__label`),
|
|
29
|
-
"data-testid": t.testId
|
|
30
|
-
}, [
|
|
31
|
-
m(n(X), {
|
|
32
|
-
as: "span",
|
|
33
|
-
type: s[t.size],
|
|
34
|
-
class: a(t.required ? `${t.cssPrefix}__label--required` : "")
|
|
35
|
-
}, {
|
|
36
|
-
default: c(() => [
|
|
37
|
-
d(f(t.label), 1)
|
|
38
|
-
]),
|
|
39
|
-
_: 1
|
|
40
|
-
}, 8, ["type", "class"])
|
|
41
|
-
], 10, L));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
S as _
|
|
46
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import '../components/Typography/CLHeading/CLHeading.css';
|
|
2
|
-
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";
|
|
3
|
-
import { CLHeadingTypes as l, CLColors as $, CLAlign as L, CLHeadingLevels as n } from "../index.js";
|
|
4
|
-
import { t as h } from "./utils-eBt2zUZl.js";
|
|
5
|
-
const b = /* @__PURE__ */ i({
|
|
6
|
-
name: "CLHeading",
|
|
7
|
-
__name: "CLHeading",
|
|
8
|
-
props: {
|
|
9
|
-
align: { default: L.Left },
|
|
10
|
-
bolder: { type: Boolean, default: !1 },
|
|
11
|
-
color: { default: $.Secondary },
|
|
12
|
-
level: {},
|
|
13
|
-
testId: { default: "clll-heading" },
|
|
14
|
-
truncate: { type: Boolean, default: !1 },
|
|
15
|
-
type: { default: l.Title }
|
|
16
|
-
},
|
|
17
|
-
setup(a) {
|
|
18
|
-
const e = a, t = "clll-heading", s = r(() => {
|
|
19
|
-
if (e.level) return e.level;
|
|
20
|
-
switch (e.type) {
|
|
21
|
-
case l.Section:
|
|
22
|
-
return n.H2;
|
|
23
|
-
case l.SubSection:
|
|
24
|
-
return n.H3;
|
|
25
|
-
case l.PageTitle:
|
|
26
|
-
case l.Title:
|
|
27
|
-
default:
|
|
28
|
-
return n.H1;
|
|
29
|
-
}
|
|
30
|
-
}), c = r(() => [
|
|
31
|
-
t,
|
|
32
|
-
`${t}--${e.align}`,
|
|
33
|
-
`${t}--${e.color}`,
|
|
34
|
-
`${t}--${e.truncate ? "wrap" : "nowrap"}`,
|
|
35
|
-
`${t}--${e.type}`,
|
|
36
|
-
e.bolder ? `${t}--bolder` : ""
|
|
37
|
-
]);
|
|
38
|
-
return (d, H) => (f(), u(p(o(s)), {
|
|
39
|
-
class: g(o(c)),
|
|
40
|
-
"data-testid": a.testId,
|
|
41
|
-
style: m(o(h)({ color: a.color }))
|
|
42
|
-
}, {
|
|
43
|
-
default: C(() => [
|
|
44
|
-
y(d.$slots, "default")
|
|
45
|
-
]),
|
|
46
|
-
_: 3
|
|
47
|
-
}, 8, ["class", "data-testid", "style"]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
b as _
|
|
52
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import '../components/CLIcon/CLIcon.css';
|
|
2
|
-
import { defineComponent as X, ref as M, computed as m, watch as _, onMounted as $, createElementBlock as v, openBlock as y, normalizeStyle as b, normalizeClass as L, unref as f, createElementVNode as N } from "vue";
|
|
3
|
-
import { CLMode as C, CLColors as E, CLColorVariants as k, CLIconSizes as o } from "../index.js";
|
|
4
|
-
import { g as T } from "./utils-D00IXMTR.js";
|
|
5
|
-
import { useTheme as V } from "../composables/useTheme.js";
|
|
6
|
-
import { i as x } from "./helper-qUkciePY.js";
|
|
7
|
-
const q = ({ color: s = E.Neutral }) => {
|
|
8
|
-
const { colors: e, darkMode: n } = V(), r = n.value ? C.Dark : C.Light;
|
|
9
|
-
return {
|
|
10
|
-
"--clll-icon-color": T({
|
|
11
|
-
color: s,
|
|
12
|
-
colors: e.value,
|
|
13
|
-
mode: r,
|
|
14
|
-
variant: k.Text
|
|
15
|
-
})?.textBody ?? "inherit"
|
|
16
|
-
};
|
|
17
|
-
}, D = ["data-testid"], O = ["height", "width"], j = ["href"], J = /* @__PURE__ */ X({
|
|
18
|
-
name: "CLIcon",
|
|
19
|
-
__name: "CLIcon",
|
|
20
|
-
props: {
|
|
21
|
-
color: { default: E.Neutral },
|
|
22
|
-
filled: { type: Boolean, default: !1 },
|
|
23
|
-
name: {},
|
|
24
|
-
size: { default: o.Small },
|
|
25
|
-
testId: { default: "clll-icon" }
|
|
26
|
-
},
|
|
27
|
-
setup(s) {
|
|
28
|
-
const e = s, n = "clll-icon", r = {
|
|
29
|
-
[o.Tiny]: 20,
|
|
30
|
-
[o.Small]: 24,
|
|
31
|
-
[o.Medium]: 28,
|
|
32
|
-
[o.Large]: 32,
|
|
33
|
-
[o.XL]: 36,
|
|
34
|
-
[o.XXL]: 40,
|
|
35
|
-
[o.XXXL]: 44,
|
|
36
|
-
[o.XXXXL]: 48
|
|
37
|
-
}, i = /* @__PURE__ */ new Map(), a = M(!1), B = (t) => {
|
|
38
|
-
if (!x) return !1;
|
|
39
|
-
if (i.has(t))
|
|
40
|
-
return i.get(t);
|
|
41
|
-
const l = document.getElementById("clll-icons");
|
|
42
|
-
if (!l)
|
|
43
|
-
return !1;
|
|
44
|
-
const c = document.getElementById(t), d = c !== null && l.contains(c);
|
|
45
|
-
return i.set(t, d), d;
|
|
46
|
-
}, h = m(() => !e.filled || e.name.endsWith("-filled") ? e.name : e.name.replace("tabler:", "tabler:") + "-filled"), p = m(() => {
|
|
47
|
-
const t = h.value;
|
|
48
|
-
return !e.filled || t === e.name || B(t) ? t : e.name;
|
|
49
|
-
}), S = m(() => [
|
|
50
|
-
n,
|
|
51
|
-
`${n}--${e.name}`,
|
|
52
|
-
`${n}--${e.size}`,
|
|
53
|
-
{ [`${n}--filled`]: e.filled && p.value === h.value }
|
|
54
|
-
]), w = m(() => ({
|
|
55
|
-
...q({ color: e.color }),
|
|
56
|
-
width: r[e.size] + 4 + "px",
|
|
57
|
-
height: r[e.size] + 4 + "px"
|
|
58
|
-
}));
|
|
59
|
-
_(() => a.value, (t) => {
|
|
60
|
-
t && i.clear();
|
|
61
|
-
});
|
|
62
|
-
const z = async () => {
|
|
63
|
-
if (!x) return;
|
|
64
|
-
let t = document.getElementById("clll-icons");
|
|
65
|
-
if (t) {
|
|
66
|
-
a.value = !0;
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
try {
|
|
70
|
-
const c = (/* @__PURE__ */ Object.assign({
|
|
71
|
-
"/src/icons.svg": () => import("./icons-DllZKtC2.js").then((I) => I.default)
|
|
72
|
-
}))["/src/icons.svg"];
|
|
73
|
-
if (!c)
|
|
74
|
-
return;
|
|
75
|
-
const d = await c();
|
|
76
|
-
if (t = document.getElementById("clll-icons"), t) {
|
|
77
|
-
a.value = !0;
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const u = document.createElement("div");
|
|
81
|
-
u.id = "clll-icons", u.style.display = "none", u.innerHTML = d.toString();
|
|
82
|
-
const g = () => {
|
|
83
|
-
document.body.insertBefore(u, document.body.childNodes[0]), a.value = !0;
|
|
84
|
-
};
|
|
85
|
-
document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", g, { once: !0 }) : g();
|
|
86
|
-
} catch (l) {
|
|
87
|
-
console.error("[Callaloo] Failed to load icon sprite:", l);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
return $(() => {
|
|
91
|
-
z();
|
|
92
|
-
}), (t, l) => (y(), v("span", {
|
|
93
|
-
class: L(f(S)),
|
|
94
|
-
"data-testid": s.testId,
|
|
95
|
-
style: b(f(w))
|
|
96
|
-
}, [
|
|
97
|
-
(y(), v("svg", {
|
|
98
|
-
"aria-hidden": "true",
|
|
99
|
-
class: L(`${n}-sprite`),
|
|
100
|
-
height: r[s.size],
|
|
101
|
-
width: r[s.size],
|
|
102
|
-
viewBox: "0 0 24 24"
|
|
103
|
-
}, [
|
|
104
|
-
N("use", {
|
|
105
|
-
href: `#${f(p)}`
|
|
106
|
-
}, null, 8, j)
|
|
107
|
-
], 10, O))
|
|
108
|
-
], 14, D));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
export {
|
|
112
|
-
J as _
|
|
113
|
-
};
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import '../assets/CLInputMessages.css';
|
|
2
|
-
import { defineComponent as D, createElementBlock as w, openBlock as $, normalizeClass as y, unref as S, renderSlot as T, Fragment as q, renderList as P, normalizeStyle as G, createElementVNode as O, toDisplayString as A } from "vue";
|
|
3
|
-
import { CLOrientation as z, CLMode as n, CLColorVariants as a, CLColors as F } from "../index.js";
|
|
4
|
-
import { useTheme as v } from "../composables/useTheme.js";
|
|
5
|
-
import { g as u } from "./utils-D00IXMTR.js";
|
|
6
|
-
const f = "clll-form-field", R = /* @__PURE__ */ D({
|
|
7
|
-
__name: "CLFormField",
|
|
8
|
-
props: {
|
|
9
|
-
fluid: { type: Boolean },
|
|
10
|
-
hasPill: { type: Boolean },
|
|
11
|
-
hasCharCounter: { type: Boolean },
|
|
12
|
-
orientation: {}
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
return (r, t) => ($(), w("div", {
|
|
16
|
-
class: y([
|
|
17
|
-
f,
|
|
18
|
-
e.fluid || e.orientation === S(z).Horizontal ? `${f}--fluid` : `${f}--fixed`,
|
|
19
|
-
e.orientation ? `${f}--${e.orientation}` : "",
|
|
20
|
-
e.hasPill ? `${f}--haspill` : "",
|
|
21
|
-
e.hasCharCounter ? `${f}--hascharcounter` : ""
|
|
22
|
-
])
|
|
23
|
-
}, [
|
|
24
|
-
T(r.$slots, "default")
|
|
25
|
-
], 2));
|
|
26
|
-
}
|
|
27
|
-
}), j = ({ color: e, variant: r }) => {
|
|
28
|
-
const { colors: t, darkMode: o } = v(), s = o.value ? n.Dark : n.Light, c = r === a.Ghost, b = u({
|
|
29
|
-
color: e,
|
|
30
|
-
colors: t.value,
|
|
31
|
-
mode: s,
|
|
32
|
-
variant: a.Solid
|
|
33
|
-
}), l = u({
|
|
34
|
-
color: e,
|
|
35
|
-
colors: t.value,
|
|
36
|
-
mode: s,
|
|
37
|
-
variant: a.Outline
|
|
38
|
-
}), h = o.value ? "black" : "white", g = l?.border, C = l?.disabled, p = o.value ? "black" : b?.textDisabled, k = l?.focus, m = l?.focus, i = l?.text, d = l?.textDisabled, x = L();
|
|
39
|
-
return {
|
|
40
|
-
"--clll-checkbox-bg": c ? "transparent" : h ?? "white",
|
|
41
|
-
"--clll-checkbox-border": c ? "transparent" : g ?? "transparent",
|
|
42
|
-
"--clll-checkbox-disabled-border": C ?? "transparent",
|
|
43
|
-
"--clll-checkbox-disabled-bg": p ?? "transparent",
|
|
44
|
-
"--clll-checkbox-checked-bg": h ?? "white",
|
|
45
|
-
"--clll-checkbox-focus-border": k ?? "transparent",
|
|
46
|
-
"--clll-checkbox-focus-shadow": m ?? "transparent",
|
|
47
|
-
"--clll-checkbox-icon-color": i ?? "inherit",
|
|
48
|
-
"--clll-checkbox-disabled-icon-color": d ?? "transparent",
|
|
49
|
-
"--clll-checkbox-indicator-color": i ?? "inherit",
|
|
50
|
-
"--clll-checkbox-disabled-indicator-color": d ?? "transparent",
|
|
51
|
-
"--clll-checkbox-theme-radius": "var(--clll-default-radius)",
|
|
52
|
-
"--clll-checkbox-outline-width": c ? "0px" : "2px",
|
|
53
|
-
"--clll-checkbox-required-asterisk-color": x ?? "red"
|
|
54
|
-
};
|
|
55
|
-
}, J = ({ color: e, variant: r }) => {
|
|
56
|
-
const { colors: t, darkMode: o } = v(), s = o.value ? n.Dark : n.Light, c = r === a.Ghost, b = u({
|
|
57
|
-
color: e,
|
|
58
|
-
colors: t.value,
|
|
59
|
-
mode: s,
|
|
60
|
-
variant: a.Solid
|
|
61
|
-
}), l = u({
|
|
62
|
-
color: e,
|
|
63
|
-
colors: t.value,
|
|
64
|
-
mode: s,
|
|
65
|
-
variant: a.Outline
|
|
66
|
-
}), h = o.value ? "black" : "white", g = o.value ? "black" : b?.textDisabled, C = l?.border, p = l?.disabled, k = o.value ? "black" : b?.textDisabled, m = l?.focus, i = l?.focus, d = l?.text, x = l?.focus, M = L();
|
|
67
|
-
return {
|
|
68
|
-
"--clll-input-bg": c ? "transparent" : h ?? "white",
|
|
69
|
-
"--clll-input-border": c ? "transparent" : C ?? "transparent",
|
|
70
|
-
"--clll-input-disabled-border": p ?? "transparent",
|
|
71
|
-
"--clll-input-disabled-bg": k ?? "transparent",
|
|
72
|
-
"--clll-input-readonly-border": p ?? "transparent",
|
|
73
|
-
"--clll-input-readonly-bg": k ?? "transparent",
|
|
74
|
-
"--clll-input-focus-border": m ?? "transparent",
|
|
75
|
-
"--clll-input-focus-shadow": i ?? "transparent",
|
|
76
|
-
"--clll-input-text": d ?? "inherit",
|
|
77
|
-
"--clll-input-text-placeholder": x ?? "transparent",
|
|
78
|
-
"--clll-input-grouped-bg": g ?? "transparent",
|
|
79
|
-
"--clll-input-prefix-suffix-color": x ?? "transparent",
|
|
80
|
-
"--clll-input-theme-radius": "var(--clll-default-radius)",
|
|
81
|
-
"--clll-input-ghost-padding": c ? "0" : void 0,
|
|
82
|
-
"--clll-input-required-asterisk-color": M ?? "red"
|
|
83
|
-
};
|
|
84
|
-
}, V = ({ color: e }) => {
|
|
85
|
-
const { colors: r, darkMode: t } = v(), o = t.value ? n.Dark : n.Light;
|
|
86
|
-
return {
|
|
87
|
-
"--clll-input-message-color": u({
|
|
88
|
-
color: e,
|
|
89
|
-
colors: r.value,
|
|
90
|
-
mode: o,
|
|
91
|
-
variant: a.Outline
|
|
92
|
-
})?.textBody ?? "inherit"
|
|
93
|
-
};
|
|
94
|
-
}, K = ({ color: e, variant: r }) => {
|
|
95
|
-
const { colors: t, darkMode: o } = v(), s = o.value ? n.Dark : n.Light, c = r === a.Ghost, b = u({
|
|
96
|
-
color: e,
|
|
97
|
-
colors: t.value,
|
|
98
|
-
mode: s,
|
|
99
|
-
variant: a.Solid
|
|
100
|
-
}), l = u({
|
|
101
|
-
color: e,
|
|
102
|
-
colors: t.value,
|
|
103
|
-
mode: s,
|
|
104
|
-
variant: a.Outline
|
|
105
|
-
}), h = o.value ? "black" : "white", g = l?.border, C = l?.disabled, p = o.value ? "black" : b?.textDisabled, k = l?.focus, m = l?.focus, i = l?.text, d = l?.focus, x = L();
|
|
106
|
-
return {
|
|
107
|
-
"--clll-select-bg": c ? "transparent" : h ?? "white",
|
|
108
|
-
"--clll-select-border": c ? "transparent" : g ?? "transparent",
|
|
109
|
-
"--clll-select-disabled-border": C ?? "transparent",
|
|
110
|
-
"--clll-select-disabled-bg": p ?? "transparent",
|
|
111
|
-
"--clll-select-focus-border": k ?? "transparent",
|
|
112
|
-
"--clll-select-focus-shadow": m ?? "transparent",
|
|
113
|
-
"--clll-select-text": i ?? "inherit",
|
|
114
|
-
"--clll-select-text-placeholder": d ?? "transparent",
|
|
115
|
-
"--clll-select-icon-color": i ?? "inherit",
|
|
116
|
-
"--clll-select-disabled-icon-color": d ?? "transparent",
|
|
117
|
-
"--clll-select-theme-radius": "var(--clll-default-radius)",
|
|
118
|
-
"--clll-select-ghost-padding": c ? "0" : void 0,
|
|
119
|
-
"--clll-select-required-asterisk-color": x ?? "red"
|
|
120
|
-
};
|
|
121
|
-
}, L = () => {
|
|
122
|
-
const { colors: e, darkMode: r } = v();
|
|
123
|
-
return r.value ? e.value.danger?.["400"] : e.value.danger?.["700"];
|
|
124
|
-
}, B = "clll-input__message", Q = /* @__PURE__ */ D({
|
|
125
|
-
__name: "CLInputMessages",
|
|
126
|
-
props: {
|
|
127
|
-
id: {},
|
|
128
|
-
messages: {},
|
|
129
|
-
messageType: { default: F.Neutral }
|
|
130
|
-
},
|
|
131
|
-
setup(e) {
|
|
132
|
-
return (r, t) => ($(!0), w(q, null, P(e.messages, (o, s) => ($(), w("span", {
|
|
133
|
-
key: `${e.id}-message-${s}`,
|
|
134
|
-
class: y([B, `${B}--${e.messageType}`]),
|
|
135
|
-
style: G(S(V)({ color: e.messageType }))
|
|
136
|
-
}, [
|
|
137
|
-
O("span", {
|
|
138
|
-
class: y([`${B}__text`])
|
|
139
|
-
}, A(o), 3)
|
|
140
|
-
], 6))), 128));
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
export {
|
|
144
|
-
R as _,
|
|
145
|
-
Q as a,
|
|
146
|
-
j as c,
|
|
147
|
-
J as i,
|
|
148
|
-
K as s
|
|
149
|
-
};
|