@codeandfunction/callaloo 3.16.6 → 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.css +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
|
@@ -119,7 +119,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
119
119
|
title: string;
|
|
120
120
|
color: CLColors;
|
|
121
121
|
variant: CLColorVariants;
|
|
122
|
-
borderRadius: CLBorderRadius;
|
|
123
122
|
rounded: boolean;
|
|
124
123
|
testId: string;
|
|
125
124
|
type: import('../../../types').CLButtonTypes;
|
|
@@ -134,6 +133,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
134
133
|
alignContent: import('../../../types').CLAlign;
|
|
135
134
|
ariaLabel: string;
|
|
136
135
|
as: import('../../../types').CLButtonTags;
|
|
136
|
+
borderRadius: CLBorderRadius;
|
|
137
137
|
busy: boolean;
|
|
138
138
|
disabled: boolean;
|
|
139
139
|
elevated: boolean;
|
|
@@ -168,7 +168,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
168
168
|
title: string;
|
|
169
169
|
color: CLColors;
|
|
170
170
|
variant: CLColorVariants;
|
|
171
|
-
borderRadius: CLBorderRadius;
|
|
172
171
|
rounded: boolean;
|
|
173
172
|
testId: string;
|
|
174
173
|
type: import('../../../types').CLButtonTypes;
|
|
@@ -183,6 +182,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
183
182
|
alignContent: import('../../../types').CLAlign;
|
|
184
183
|
ariaLabel: string;
|
|
185
184
|
as: import('../../../types').CLButtonTags;
|
|
185
|
+
borderRadius: CLBorderRadius;
|
|
186
186
|
busy: boolean;
|
|
187
187
|
disabled: boolean;
|
|
188
188
|
elevated: boolean;
|
|
@@ -193,7 +193,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
193
193
|
iconSize: CLIconSizes;
|
|
194
194
|
pill: boolean;
|
|
195
195
|
wrap: boolean;
|
|
196
|
-
}> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "
|
|
196
|
+
}> & Omit<Readonly<import('../../Buttons/CLButton/CLButton.vue').CLButtonProps> & Readonly<{}>, "title" | "color" | "variant" | "rounded" | "testId" | "type" | "form" | "onClick" | "target" | "width" | "height" | "size" | "href" | "active" | "alignContent" | "ariaLabel" | "as" | "borderRadius" | "busy" | "disabled" | "elevated" | "forwardRef" | "iconAfter" | "iconBefore" | "iconAfterSize" | "iconSize" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
197
197
|
$slots: {
|
|
198
198
|
default?(_: {}): any;
|
|
199
199
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLToast.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BNlgk9Fz.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLToast,
|
|
6
6
|
s as default
|
|
@@ -9,6 +9,6 @@ export declare const toastTheme: ({ color, variant }: ThemeProps) => {
|
|
|
9
9
|
'--clll-toast-icon-bg': string;
|
|
10
10
|
'--clll-toast-icon-color': string;
|
|
11
11
|
'--clll-toast-timer-bg': string;
|
|
12
|
-
'--clll-toast-theme-radius': string
|
|
12
|
+
'--clll-toast-theme-radius': string;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import { defineComponent as i, watch as
|
|
3
|
-
import { s as c, a as h, b as
|
|
2
|
+
import { defineComponent as i, watch as a, createBlock as l, openBlock as r, resolveDynamicComponent as n, normalizeStyle as s, unref as m, withCtx as d, renderSlot as f } from "vue";
|
|
3
|
+
import { s as c, a as h, b as u, c as C, d as g, D as y } from "../../../chunks/base-theme-Bg6XMoeN.js";
|
|
4
4
|
const T = /* @__PURE__ */ i({
|
|
5
5
|
__name: "CLThemeProvider",
|
|
6
6
|
props: {
|
|
7
7
|
tag: { default: "div" },
|
|
8
8
|
themeConfig: {}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
return c(
|
|
13
|
-
() =>
|
|
10
|
+
setup(t) {
|
|
11
|
+
const o = t;
|
|
12
|
+
return c(o.themeConfig), a(
|
|
13
|
+
() => o.themeConfig?.borderRadius,
|
|
14
14
|
(e) => {
|
|
15
15
|
h(e);
|
|
16
16
|
}
|
|
17
|
-
),
|
|
18
|
-
() =>
|
|
17
|
+
), a(
|
|
18
|
+
() => o.themeConfig?.colors,
|
|
19
19
|
(e) => {
|
|
20
|
-
e &&
|
|
20
|
+
e && u(e);
|
|
21
21
|
}
|
|
22
|
-
),
|
|
23
|
-
() =>
|
|
22
|
+
), a(
|
|
23
|
+
() => o.themeConfig?.darkMode,
|
|
24
24
|
(e) => {
|
|
25
|
-
e !== void 0 &&
|
|
25
|
+
e !== void 0 && C(e);
|
|
26
26
|
}
|
|
27
|
-
),
|
|
28
|
-
() =>
|
|
27
|
+
), a(
|
|
28
|
+
() => o.themeConfig?.fontFamily,
|
|
29
29
|
(e) => {
|
|
30
30
|
g(e);
|
|
31
31
|
}
|
|
32
|
-
), (e,
|
|
32
|
+
), (e, v) => (r(), l(n(t.tag), {
|
|
33
33
|
class: "clll-theme-provider",
|
|
34
|
-
style:
|
|
34
|
+
style: s({ "--clll-font-family": t.themeConfig?.fontFamily || m(y).fontFamily, "--clll-default-radius": t.themeConfig?.borderRadius ? `var(--clll-${t.themeConfig.borderRadius})` : void 0 })
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
36
|
+
default: d(() => [
|
|
37
|
+
f(e.$slots, "default")
|
|
38
38
|
]),
|
|
39
39
|
_: 3
|
|
40
40
|
}, 8, ["style"]));
|
|
@@ -42,6 +42,6 @@ const T = /* @__PURE__ */ i({
|
|
|
42
42
|
});
|
|
43
43
|
export {
|
|
44
44
|
T as CLThemeProvider,
|
|
45
|
-
|
|
45
|
+
y as DEFAULT_THEME,
|
|
46
46
|
T as default
|
|
47
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import { defineComponent as L, ref as i, provide as g, createElementBlock as k, openBlock as p, createBlock as z, createCommentVNode as B, renderSlot as S, unref as A } from "vue";
|
|
3
|
-
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as $ } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BNlgk9Fz.js";
|
|
4
4
|
const x = { class: "clll-toast-provider" }, N = /* @__PURE__ */ L({
|
|
5
5
|
name: "CLToastProvider",
|
|
6
6
|
__name: "CLToastProvider",
|
package/package.json
CHANGED
|
@@ -1,153 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, ref as v, computed as _, watch as F, onMounted as P, onUnmounted as X, onBeforeUnmount as Z, createElementBlock as C, openBlock as m, normalizeStyle as j, normalizeClass as c, unref as a, createElementVNode as g, createBlock as x, createCommentVNode as b, createVNode as k, withCtx as L, createTextVNode as z, toDisplayString as S, isRef as q } from "vue";
|
|
2
|
-
import { _ as N } from "./CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js";
|
|
3
|
-
import { _ as G } from "./CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js";
|
|
4
|
-
import { _ as J } from "./CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js";
|
|
5
|
-
import { _ as K } from "./CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
6
|
-
import { _ as O } from "./CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
|
|
7
|
-
import { CLMode as R, CLColorVariants as w, CLToastPosition as Q, CLIconSizes as B, CLColors as h, CLHeadingTypes as W, CLTextTypes as I, CLSizes as A, CLIconNames as Y } from "../index.js";
|
|
8
|
-
import { i as E, g as p, a as ee } from "./helper--hRjZVm6.js";
|
|
9
|
-
import { useEsc as te } from "../composables/useEsc.js";
|
|
10
|
-
import { g as oe } from "./utils-CS9Gz4oX.js";
|
|
11
|
-
import { useTheme as ae } from "../composables/useTheme.js";
|
|
12
|
-
const ie = ({ color: e, variant: t }) => {
|
|
13
|
-
const { borderRadius: $, colors: d, darkMode: l } = ae(), i = l.value ? R.Dark : R.Light, n = oe({
|
|
14
|
-
color: e,
|
|
15
|
-
colors: d.value,
|
|
16
|
-
mode: i,
|
|
17
|
-
variant: t
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
"--clll-toast-bg-color": l.value ? "black" : "white",
|
|
21
|
-
"--clll-toast-text-color": n?.text ?? "inherit",
|
|
22
|
-
"--clll-toast-icon-bg": n?.bg ?? "transparent",
|
|
23
|
-
"--clll-toast-icon-color": n?.text ?? "inherit",
|
|
24
|
-
"--clll-toast-timer-bg": n?.textDisabled ?? "transparent",
|
|
25
|
-
"--clll-toast-theme-radius": $.value ? `var(--clll-${$.value})` : void 0
|
|
26
|
-
};
|
|
27
|
-
}, se = ["data-testid"], u = 300, o = "clll-toast", ge = /* @__PURE__ */ U({
|
|
28
|
-
name: "CLToast",
|
|
29
|
-
__name: "CLToast",
|
|
30
|
-
props: {
|
|
31
|
-
actionLabel: {},
|
|
32
|
-
borderRadius: {},
|
|
33
|
-
color: { default: h.Secondary },
|
|
34
|
-
dismissTimer: { default: 5 },
|
|
35
|
-
icon: {},
|
|
36
|
-
iconSize: { default: B.Small },
|
|
37
|
-
message: {},
|
|
38
|
-
onAction: {},
|
|
39
|
-
onDismiss: {},
|
|
40
|
-
position: { default: Q.TopRight },
|
|
41
|
-
rounded: { type: Boolean, default: !0 },
|
|
42
|
-
testId: { default: "clll-toast" },
|
|
43
|
-
title: {},
|
|
44
|
-
variant: { default: w.Soft },
|
|
45
|
-
width: { default: "24rem" }
|
|
46
|
-
},
|
|
47
|
-
setup(e) {
|
|
48
|
-
const t = e, $ = v(), d = v(100), l = v(!1), i = v(), n = v(0), D = _(() => [
|
|
49
|
-
o,
|
|
50
|
-
t.borderRadius ? `${o}--${t.borderRadius}` : "",
|
|
51
|
-
t.dismissTimer ? `${o}--has-timer` : "",
|
|
52
|
-
t.icon ? `${o}--has-icon` : "",
|
|
53
|
-
t.message && !t.title ? `${o}--has-messageonly` : "",
|
|
54
|
-
l.value ? `${o}--mounted` : "",
|
|
55
|
-
t.onAction && t.actionLabel ? `${o}--has-action` : "",
|
|
56
|
-
t.rounded ? `${o}--rounded` : `${o}--box`,
|
|
57
|
-
t.title && !t.message ? `${o}--has-titleonly` : "",
|
|
58
|
-
t.title && t.message ? `${o}--has-titleandmessage` : "",
|
|
59
|
-
`${o}--${t.position}`
|
|
60
|
-
]), y = () => {
|
|
61
|
-
l.value = !1, i.value && (i.value.stop(), i.value.start(u, (r) => {
|
|
62
|
-
Math.min(r, u) === u && (i.value?.stop(), t.onDismiss?.());
|
|
63
|
-
})), V();
|
|
64
|
-
}, H = () => {
|
|
65
|
-
const r = t.dismissTimer * 1e3, s = r / 100;
|
|
66
|
-
i.value?.start(r, (f) => {
|
|
67
|
-
const T = Math.min(f / 100, s);
|
|
68
|
-
d.value = 100 - T / s * 100, T === s && y();
|
|
69
|
-
});
|
|
70
|
-
}, M = () => {
|
|
71
|
-
i.value || (i.value = ee(), i.value.start(100, (r) => {
|
|
72
|
-
Math.min(r, 100) === 100 && (i.value?.stop(), l.value = !0, t?.dismissTimer && i.value?.start(u, (f) => {
|
|
73
|
-
Math.min(f, u) === u && (i.value?.stop(), H());
|
|
74
|
-
}));
|
|
75
|
-
}));
|
|
76
|
-
};
|
|
77
|
-
F(t, () => {
|
|
78
|
-
i.value && (i.value.stop(), i.value = void 0), t?.dismissTimer && M();
|
|
79
|
-
}), P(() => {
|
|
80
|
-
E && (n.value = p() + 1, M());
|
|
81
|
-
}), X(() => {
|
|
82
|
-
E && t?.dismissTimer && i.value && (i.value.stop(), i.value = void 0), l.value = !1, t.onDismiss?.();
|
|
83
|
-
});
|
|
84
|
-
const { clearEventListeners: V } = te({ escHandler: y });
|
|
85
|
-
return Z(() => {
|
|
86
|
-
V();
|
|
87
|
-
}), (r, s) => (m(), C("output", {
|
|
88
|
-
ref_key: "elem",
|
|
89
|
-
ref: $,
|
|
90
|
-
class: c(a(D)),
|
|
91
|
-
"data-testid": e.testId,
|
|
92
|
-
style: j({ zIndex: a(n), "--clll-toast-width": e.width, ...a(ie)({ color: e.color, variant: e.variant }) })
|
|
93
|
-
}, [
|
|
94
|
-
g("div", {
|
|
95
|
-
class: c(`${o}__body`)
|
|
96
|
-
}, [
|
|
97
|
-
g("div", {
|
|
98
|
-
class: c(`${o}__content`)
|
|
99
|
-
}, [
|
|
100
|
-
e.icon ? (m(), C("div", {
|
|
101
|
-
key: 0,
|
|
102
|
-
class: c(`${o}__icon`)
|
|
103
|
-
}, [
|
|
104
|
-
k(a(G), {
|
|
105
|
-
name: e.icon,
|
|
106
|
-
size: e.iconSize
|
|
107
|
-
}, null, 8, ["name", "size"])
|
|
108
|
-
], 2)) : b("", !0),
|
|
109
|
-
g("div", {
|
|
110
|
-
class: c(`${o}__text`)
|
|
111
|
-
}, [
|
|
112
|
-
e.title ? (m(), x(a(O), {
|
|
113
|
-
key: 0,
|
|
114
|
-
color: a(h).Neutral,
|
|
115
|
-
"test-id": `${o}__title`,
|
|
116
|
-
type: a(W).Section
|
|
117
|
-
}, {
|
|
118
|
-
default: L(() => [
|
|
119
|
-
z(S(e.title), 1)
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}, 8, ["color", "test-id", "type"])) : b("", !0),
|
|
123
|
-
e.message ? (m(), x(a(K), {
|
|
124
|
-
key: 1,
|
|
125
|
-
color: a(h).Neutral,
|
|
126
|
-
"test-id": `${o}__message`,
|
|
127
|
-
type: e.title ? a(I).Medium : a(I).Body
|
|
128
|
-
}, {
|
|
129
|
-
default: L(() => [
|
|
130
|
-
z(S(e.message), 1)
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["color", "test-id", "type"])) : b("", !0)
|
|
134
|
-
], 2),
|
|
135
|
-
e.onAction && e.actionLabel ? (m(), C("div", {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: c(`${o}__action-button`)
|
|
138
|
-
}, [
|
|
139
|
-
k(a(N), {
|
|
140
|
-
color: e.color,
|
|
141
|
-
"border-radius": e.borderRadius,
|
|
142
|
-
"on-click": e.onAction,
|
|
143
|
-
"test-id": `${o}__action-button`,
|
|
144
|
-
variant: e.variant
|
|
145
|
-
}, {
|
|
146
|
-
default: L(() => [
|
|
147
|
-
z(S(e.actionLabel), 1)
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
|
|
151
|
-
], 2)) : b("", !0)
|
|
152
|
-
], 2),
|
|
153
|
-
g("div", {
|
|
154
|
-
class: c(`${o}__dismiss-button`)
|
|
155
|
-
}, [
|
|
156
|
-
k(a(N), {
|
|
157
|
-
"aria-label": "Dismiss toast",
|
|
158
|
-
color: a(h).Neutral,
|
|
159
|
-
"border-radius": e.borderRadius,
|
|
160
|
-
"icon-before": a(Y).Delete,
|
|
161
|
-
"icon-size": a(B).Tiny,
|
|
162
|
-
"on-click": y,
|
|
163
|
-
size: a(A).Tiny,
|
|
164
|
-
"test-id": `${o}__dismiss-button`,
|
|
165
|
-
variant: a(w).Text
|
|
166
|
-
}, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
|
|
167
|
-
], 2)
|
|
168
|
-
], 2),
|
|
169
|
-
e.dismissTimer ? (m(), x(a(J), {
|
|
170
|
-
key: 0,
|
|
171
|
-
modelValue: a(d),
|
|
172
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) => q(d) ? d.value = f : null),
|
|
173
|
-
color: e.color,
|
|
174
|
-
rounded: !1,
|
|
175
|
-
size: a(A).Small
|
|
176
|
-
}, null, 8, ["modelValue", "color", "size"])) : b("", !0)
|
|
177
|
-
], 14, se));
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
export {
|
|
181
|
-
ge as _
|
|
182
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CLMode as l, CLColors as t, CLColorVariants as n } from "../index.js";
|
|
2
|
-
import { g as c } from "./utils-CS9Gz4oX.js";
|
|
3
|
-
import { useTheme as a } from "../composables/useTheme.js";
|
|
4
|
-
const g = () => {
|
|
5
|
-
const { borderRadius: o, darkMode: r } = a();
|
|
6
|
-
return {
|
|
7
|
-
"--clll-skeleton-bg-color": r.value ? "rgba(0 0 0 / 0.005)" : "rgba(0 0 0 / 0.075)",
|
|
8
|
-
"--clll-skeleton-theme-radius": o.value ? `var(--clll-${o.value})` : void 0
|
|
9
|
-
};
|
|
10
|
-
}, k = ({ color: o = t.Primary }) => {
|
|
11
|
-
const { colors: r, darkMode: e } = a(), s = e.value ? l.Dark : l.Light;
|
|
12
|
-
return {
|
|
13
|
-
"--clll-spinner-color": c({
|
|
14
|
-
color: o,
|
|
15
|
-
colors: r.value,
|
|
16
|
-
mode: s,
|
|
17
|
-
variant: n.Solid
|
|
18
|
-
})?.bg ?? "inherit"
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
k as a,
|
|
23
|
-
g as s
|
|
24
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { CLMode as t, CLColorVariants as d, CLColors as b } from "../index.js";
|
|
2
|
-
import { g as p } from "./utils-CS9Gz4oX.js";
|
|
3
|
-
import { useTheme as u } from "../composables/useTheme.js";
|
|
4
|
-
const v = ({
|
|
5
|
-
color: a = b.Primary,
|
|
6
|
-
variant: r
|
|
7
|
-
}) => {
|
|
8
|
-
const { borderRadius: o, colors: e, darkMode: n } = u(), s = n.value ? t.Dark : t.Light, l = r === d.Outline, i = p({
|
|
9
|
-
color: a,
|
|
10
|
-
colors: e.value,
|
|
11
|
-
mode: s,
|
|
12
|
-
variant: r
|
|
13
|
-
});
|
|
14
|
-
return {
|
|
15
|
-
"--clll-badge-bg-color": i?.bg ?? "transparent",
|
|
16
|
-
"--clll-badge-border-color": l ? i?.border ?? "transparent" : "transparent",
|
|
17
|
-
"--clll-badge-border-style": l ? "solid" : "none",
|
|
18
|
-
"--clll-badge-border-width": l ? "1px" : "0",
|
|
19
|
-
"--clll-badge-text-color": i?.text ?? "inherit",
|
|
20
|
-
"--clll-badge-theme-radius": o.value ? `var(--clll-${o.value})` : void 0
|
|
21
|
-
};
|
|
22
|
-
}, x = ({
|
|
23
|
-
color: a = b.Primary,
|
|
24
|
-
variant: r
|
|
25
|
-
}) => {
|
|
26
|
-
const { borderRadius: o, colors: e, darkMode: n } = u(), s = n.value ? t.Dark : t.Light, l = p({
|
|
27
|
-
color: a,
|
|
28
|
-
colors: e.value,
|
|
29
|
-
mode: s,
|
|
30
|
-
variant: r
|
|
31
|
-
});
|
|
32
|
-
return {
|
|
33
|
-
"--clll-banner-bg-color": l?.bg ?? "transparent",
|
|
34
|
-
"--clll-banner-border-color": l?.focus ?? "transparent",
|
|
35
|
-
"--clll-banner-text-color": l?.text ?? "inherit",
|
|
36
|
-
"--clll-banner-theme-radius": o.value ? `var(--clll-${o.value})` : void 0
|
|
37
|
-
};
|
|
38
|
-
}, k = ({
|
|
39
|
-
color: a = b.Primary,
|
|
40
|
-
variant: r
|
|
41
|
-
}) => {
|
|
42
|
-
const { borderRadius: o, colors: e, darkMode: n } = u(), s = n.value ? t.Dark : t.Light, l = r === d.Outline, i = r === d.Ghost, c = p({
|
|
43
|
-
color: a,
|
|
44
|
-
colors: e.value,
|
|
45
|
-
mode: s,
|
|
46
|
-
variant: r
|
|
47
|
-
});
|
|
48
|
-
return {
|
|
49
|
-
"--clll-pill-bg-color": c?.bg ?? "transparent",
|
|
50
|
-
"--clll-pill-border-color": l ? c?.border ?? "transparent" : "transparent",
|
|
51
|
-
"--clll-pill-border-style": l ? "solid" : "none",
|
|
52
|
-
"--clll-pill-border-width": l ? "1px" : "0",
|
|
53
|
-
"--clll-pill-text-color": c?.text ?? "inherit",
|
|
54
|
-
"--clll-pill-hover-bg": c?.bg ?? "transparent",
|
|
55
|
-
"--clll-pill-count-bg": !l && !i ? c?.hover ?? "transparent" : "transparent",
|
|
56
|
-
"--clll-pill-count-border-style": l ? "solid" : "none",
|
|
57
|
-
"--clll-pill-count-border-color": l ? c?.border ?? "transparent" : "transparent",
|
|
58
|
-
"--clll-pill-count-border-width": l ? "1px" : "0",
|
|
59
|
-
"--clll-pill-theme-radius": o.value ? `var(--clll-${o.value})` : void 0
|
|
60
|
-
};
|
|
61
|
-
}, C = ({
|
|
62
|
-
color: a = b.Primary
|
|
63
|
-
}) => {
|
|
64
|
-
const { colors: r, darkMode: o } = u(), e = o.value ? t.Dark : t.Light, n = p({
|
|
65
|
-
color: a,
|
|
66
|
-
colors: r.value,
|
|
67
|
-
mode: e,
|
|
68
|
-
variant: d.Solid
|
|
69
|
-
});
|
|
70
|
-
return {
|
|
71
|
-
"--clll-progress-container-bg": p({
|
|
72
|
-
color: b.Neutral,
|
|
73
|
-
colors: r.value,
|
|
74
|
-
mode: e,
|
|
75
|
-
variant: d.Solid
|
|
76
|
-
})?.disabled ?? "transparent",
|
|
77
|
-
"--clll-progress-bar-bg": n?.bg ?? "transparent"
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export {
|
|
81
|
-
C as a,
|
|
82
|
-
v as b,
|
|
83
|
-
x as c,
|
|
84
|
-
k as p
|
|
85
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { CLMode as e, CLColorVariants as c } from "../index.js";
|
|
2
|
-
import { g as d } from "./utils-CS9Gz4oX.js";
|
|
3
|
-
import { useTheme as b } from "../composables/useTheme.js";
|
|
4
|
-
const h = ({ color: a }) => {
|
|
5
|
-
const { borderRadius: t, colors: l, darkMode: n } = b(), s = n.value ? e.Dark : e.Light, r = d({
|
|
6
|
-
color: a,
|
|
7
|
-
colors: l.value,
|
|
8
|
-
mode: s,
|
|
9
|
-
variant: c.Solid
|
|
10
|
-
});
|
|
11
|
-
return {
|
|
12
|
-
"--clll-a11y-button-outline-color": r?.focus ?? "transparent",
|
|
13
|
-
"--clll-a11y-button-border-color": r?.focus ?? "transparent",
|
|
14
|
-
"--clll-a11y-button-shadow-color": r?.shadow ?? "transparent",
|
|
15
|
-
"--clll-a11y-button-theme-radius": t.value ? `var(--clll-${t.value})` : void 0
|
|
16
|
-
};
|
|
17
|
-
}, m = ({
|
|
18
|
-
color: a,
|
|
19
|
-
variant: t = c.Soft
|
|
20
|
-
}) => {
|
|
21
|
-
const { borderRadius: l, colors: n, darkMode: s } = b(), r = s.value ? e.Dark : e.Light, u = t === c.Outline, o = d({
|
|
22
|
-
color: a,
|
|
23
|
-
colors: n.value,
|
|
24
|
-
mode: r,
|
|
25
|
-
variant: t
|
|
26
|
-
});
|
|
27
|
-
return {
|
|
28
|
-
"--clll-button-text-color": o?.text ?? "inherit",
|
|
29
|
-
"--clll-button-bg-color": o?.bg ?? "transparent",
|
|
30
|
-
"--clll-button-border-color": u ? o?.border ?? "transparent" : "transparent",
|
|
31
|
-
"--clll-button-hover-bg": o?.hover ?? "transparent",
|
|
32
|
-
"--clll-button-hover-border": u ? o?.borderHover ?? "transparent" : "transparent",
|
|
33
|
-
"--clll-button-focus-border": o?.focus ?? "transparent",
|
|
34
|
-
"--clll-button-focus-shadow": o?.shadow ?? "transparent",
|
|
35
|
-
"--clll-button-theme-radius": l.value ? `var(--clll-${l.value})` : void 0
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
h as a,
|
|
40
|
-
m as b
|
|
41
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CLMode as t, CLColorVariants as n } from "../index.js";
|
|
2
|
-
import { g as u } from "./utils-CS9Gz4oX.js";
|
|
3
|
-
import { useTheme as i } from "../composables/useTheme.js";
|
|
4
|
-
const b = ({ color: s, variant: o }) => {
|
|
5
|
-
const { borderRadius: l, colors: c, darkMode: a } = i(), d = a.value ? t.Dark : t.Light, e = o === n.Ghost, r = u({
|
|
6
|
-
color: s,
|
|
7
|
-
colors: c.value,
|
|
8
|
-
mode: d,
|
|
9
|
-
variant: o
|
|
10
|
-
});
|
|
11
|
-
return {
|
|
12
|
-
"--clll-card-border-color": e ? "transparent" : r?.border ?? "transparent",
|
|
13
|
-
"--clll-card-bg-color": r?.bg ?? "transparent",
|
|
14
|
-
"--clll-card-image-bg": r?.bg ?? "transparent",
|
|
15
|
-
"--clll-card-text-color": r?.text ?? "inherit",
|
|
16
|
-
"--clll-card-focus-border": r?.focus ?? "transparent",
|
|
17
|
-
"--clll-card-focus-shadow": r?.shadow ?? "transparent",
|
|
18
|
-
"--clll-card-theme-radius": l.value ? `var(--clll-${l.value})` : void 0
|
|
19
|
-
};
|
|
20
|
-
}, v = ({ color: s, variant: o }) => {
|
|
21
|
-
const { borderRadius: l, colors: c, darkMode: a } = i(), d = a.value ? t.Dark : t.Light, e = o === n.Ghost, r = u({
|
|
22
|
-
color: s,
|
|
23
|
-
colors: c.value,
|
|
24
|
-
mode: d,
|
|
25
|
-
variant: o
|
|
26
|
-
});
|
|
27
|
-
return {
|
|
28
|
-
"--clll-disclosure-border-color": e ? "transparent" : r?.focus ?? "transparent",
|
|
29
|
-
"--clll-disclosure-text-color": r?.text ?? "inherit",
|
|
30
|
-
"--clll-disclosure-content-border": e ? "transparent" : r?.focus ?? "transparent",
|
|
31
|
-
"--clll-disclosure-theme-radius": l.value ? `var(--clll-${l.value})` : void 0
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
b as c,
|
|
36
|
-
v as d
|
|
37
|
-
};
|