@codeandfunction/callaloo 3.16.5 → 3.16.7
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/{CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js → CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js} +1 -1
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BDL4xcfJ.js → CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js} +1 -1
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-C_BQCWeg.js → CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DwNvvX0v.js → CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js} +2 -2
- package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-Mikbgpn2.js → CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js} +21 -24
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-C6gOJx7A.js → CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js} +53 -56
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/CLIcon/CLIcon.css +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/CLTable/CLTable.css +1 -1
- package/dist/components/CLTable/CLTable.js +72 -74
- 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.js +2 -2
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
- package/dist/components/Form/CLInput/CLInput.css +1 -1
- package/dist/components/Form/CLInput/CLInput.js +3 -3
- package/dist/components/Form/CLSelect/CLSelect.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +52 -56
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
- package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.css +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +69 -72
- package/dist/components/Navigation/CLLink/CLLink.js +1 -1
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +199 -202
- package/dist/components/Popups/CLToast/CLToast.css +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Bj9WF_mX.js +0 -253
- package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js +0 -87
- package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-Csb9YnTI.js +0 -34
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLModal.css';
|
|
3
|
-
import { defineComponent as W,
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { CLMode as k, CLColors as T, CLColorVariants as R, CLBorderRadius as
|
|
7
|
-
import { g as
|
|
8
|
-
import { useTheme as
|
|
9
|
-
import { useEsc as
|
|
3
|
+
import { defineComponent as W, useTemplateRef as F, useSlots as U, ref as Z, computed as _, watch as j, onMounted as q, onBeforeUnmount as A, createElementBlock as p, createCommentVNode as f, openBlock as v, normalizeStyle as w, normalizeClass as l, unref as n, createElementVNode as d, createBlock as B, renderSlot as $, withCtx as G, createTextVNode as J, toDisplayString as K } from "vue";
|
|
4
|
+
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js";
|
|
5
|
+
import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
|
|
6
|
+
import { CLMode as k, CLColors as T, CLColorVariants as R, CLBorderRadius as X, CLIconSizes as Y, CLIconNames as ee, CLHeadingTypes as oe } from "../../../index.js";
|
|
7
|
+
import { g as te } from "../../../chunks/utils-CS9Gz4oX.js";
|
|
8
|
+
import { useTheme as ne } from "../../../composables/useTheme.js";
|
|
9
|
+
import { useEsc as le } from "../../../composables/useEsc.js";
|
|
10
10
|
import { b as S, i as a } from "../../../chunks/helper--hRjZVm6.js";
|
|
11
|
-
const
|
|
12
|
-
const { borderRadius: t, colors:
|
|
11
|
+
const se = () => {
|
|
12
|
+
const { borderRadius: t, colors: y, darkMode: c } = ne(), r = c.value ? k.Dark : k.Light, u = te({
|
|
13
13
|
color: T.Neutral,
|
|
14
|
-
colors:
|
|
14
|
+
colors: y.value,
|
|
15
15
|
mode: r,
|
|
16
16
|
variant: R.Solid
|
|
17
17
|
}), o = c.value ? "black" : "white";
|
|
@@ -20,13 +20,13 @@ const ae = () => {
|
|
|
20
20
|
"--clll-modal-content-bg": o,
|
|
21
21
|
"--clll-modal-theme-radius": t.value ? `var(--clll-${t.value})` : void 0
|
|
22
22
|
};
|
|
23
|
-
},
|
|
23
|
+
}, ae = ["id", "data-testid"], re = ["aria-labelledby"], we = /* @__PURE__ */ W({
|
|
24
24
|
name: "CLModal",
|
|
25
25
|
__name: "CLModal",
|
|
26
26
|
props: {
|
|
27
27
|
borderRadius: { default: void 0 },
|
|
28
28
|
close: { type: Boolean, default: !0 },
|
|
29
|
-
closeBorderRadius: { default:
|
|
29
|
+
closeBorderRadius: { default: X.Full },
|
|
30
30
|
dismissible: { type: Boolean, default: !0 },
|
|
31
31
|
fullscreen: { type: Boolean, default: !1 },
|
|
32
32
|
isOpen: { type: Boolean, default: !1 },
|
|
@@ -39,16 +39,11 @@ const ae = () => {
|
|
|
39
39
|
zIndex: { default: 100 }
|
|
40
40
|
},
|
|
41
41
|
emits: ["modal-open", "modal-close"],
|
|
42
|
-
setup(t, { emit:
|
|
43
|
-
F((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}));
|
|
48
|
-
const c = w, r = U("modal-window"), u = Z(), o = t, e = "clll-modal", $ = "clll-prevent-scroll", m = j(), C = () => {
|
|
49
|
-
a && window?.document.body.classList.add($);
|
|
50
|
-
}, x = () => {
|
|
51
|
-
a && window?.document.body.classList.remove($);
|
|
42
|
+
setup(t, { emit: y }) {
|
|
43
|
+
const c = y, r = F("modal-window"), u = U(), o = t, e = "clll-modal", x = "clll-prevent-scroll", m = Z(), C = () => {
|
|
44
|
+
a && window?.document.body.classList.add(x);
|
|
45
|
+
}, I = () => {
|
|
46
|
+
a && window?.document.body.classList.remove(x);
|
|
52
47
|
}, N = _(() => [
|
|
53
48
|
e
|
|
54
49
|
]), E = _(() => [
|
|
@@ -62,120 +57,122 @@ const ae = () => {
|
|
|
62
57
|
u.footer ? `${e}__content--has-footer` : `${e}__content--has-no-footer`,
|
|
63
58
|
u.header || o.title ? `${e}__content--has-header` : `${e}__content--has-no-header`,
|
|
64
59
|
o.title ? `${e}__content--has-title` : `${e}__content--has-no-title`
|
|
65
|
-
]), O = _(() => o.zIndex === "auto" || S(o.zIndex) ? o.zIndex : o.zIndex.toString()), V = _(() => o.zIndex === "auto" ? o.zIndex : ((S(o.zIndex) ? parseInt(o.zIndex, 10) : o.zIndex) + 100).toString()), H = (
|
|
60
|
+
]), O = _(() => o.zIndex === "auto" || S(o.zIndex) ? o.zIndex : o.zIndex.toString()), V = _(() => o.zIndex === "auto" ? o.zIndex : ((S(o.zIndex) ? parseInt(o.zIndex, 10) : o.zIndex) + 100).toString()), H = (s) => {
|
|
66
61
|
try {
|
|
67
|
-
const i =
|
|
68
|
-
return a &&
|
|
62
|
+
const i = s?.target, g = r.value;
|
|
63
|
+
return a && g && !g.contains(i) ? !0 : void 0;
|
|
69
64
|
} catch (i) {
|
|
70
65
|
console.error(i);
|
|
71
66
|
return;
|
|
72
67
|
}
|
|
73
|
-
}, b = (
|
|
68
|
+
}, b = (s) => {
|
|
74
69
|
try {
|
|
75
|
-
H(
|
|
70
|
+
H(s) && (a && window.removeEventListener("mousedown", b), L());
|
|
76
71
|
} catch (i) {
|
|
77
72
|
console.error(i);
|
|
78
73
|
}
|
|
79
|
-
},
|
|
74
|
+
}, h = () => {
|
|
80
75
|
a && window.removeEventListener("mousedown", b);
|
|
81
|
-
}, I = () => {
|
|
82
|
-
a && (m.value && a && window.clearTimeout(m.value), y(), x());
|
|
83
76
|
}, z = () => {
|
|
84
|
-
|
|
77
|
+
a && (m.value && a && window.clearTimeout(m.value), h(), I());
|
|
78
|
+
}, L = () => {
|
|
79
|
+
o.isOpen && (o.onClose?.(), z());
|
|
85
80
|
};
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
j(o, (s) => {
|
|
82
|
+
s.isOpen ? (c("modal-open"), C(), r.value && r.value.focus(), a && s.dismissible && (h(), m.value = window.setTimeout(() => {
|
|
88
83
|
window.addEventListener("mousedown", b);
|
|
89
|
-
}, 100))) : (r.value && r.value.blur(),
|
|
90
|
-
}),
|
|
84
|
+
}, 100))) : (r.value && r.value.blur(), I(), h(), m.value && a && window.clearTimeout(m.value), c("modal-close"));
|
|
85
|
+
}), q(() => {
|
|
91
86
|
o.isOpen && a && (C(), r.value && r.value.focus());
|
|
92
87
|
});
|
|
93
|
-
const { clearEventListeners: D } =
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
}), (
|
|
88
|
+
const { clearEventListeners: D } = le({ escHandler: o.dismissible ? L : void 0 });
|
|
89
|
+
return A(() => {
|
|
90
|
+
z(), D();
|
|
91
|
+
}), (s, i) => t.isOpen ? (v(), p("div", {
|
|
97
92
|
key: 0,
|
|
98
93
|
id: t.modalId,
|
|
99
|
-
class:
|
|
94
|
+
class: l(n(N)),
|
|
100
95
|
"data-testid": t.testId,
|
|
101
|
-
style:
|
|
96
|
+
style: w({ ...n(se)(), zIndex: n(O) })
|
|
102
97
|
}, [
|
|
103
98
|
d("div", {
|
|
104
|
-
class:
|
|
99
|
+
class: l(n(E)),
|
|
100
|
+
style: w({ zIndex: n(V) })
|
|
105
101
|
}, [
|
|
106
102
|
d("div", {
|
|
107
103
|
ref: "modal-window",
|
|
108
104
|
"aria-modal": "true",
|
|
109
105
|
"aria-labelledby": `${e}__content__header__title`,
|
|
110
|
-
class:
|
|
106
|
+
class: l(n(M)),
|
|
111
107
|
role: "dialog",
|
|
112
|
-
tabindex: -1
|
|
108
|
+
tabindex: -1,
|
|
109
|
+
style: w({ "--clll-modal-max-width": t.maxWidth })
|
|
113
110
|
}, [
|
|
114
111
|
d("div", {
|
|
115
|
-
class:
|
|
112
|
+
class: l(`${e}__close-button`)
|
|
116
113
|
}, [
|
|
117
|
-
t.onClose && t.close ? (v(), B(
|
|
114
|
+
t.onClose && t.close ? (v(), B(n(P), {
|
|
118
115
|
key: 0,
|
|
119
116
|
"aria-label": "Close modal",
|
|
120
117
|
"border-radius": t.closeBorderRadius,
|
|
121
|
-
color:
|
|
122
|
-
"icon-before":
|
|
123
|
-
"icon-size":
|
|
118
|
+
color: n(T).Neutral,
|
|
119
|
+
"icon-before": n(ee).Delete,
|
|
120
|
+
"icon-size": n(Y).Tiny,
|
|
124
121
|
"on-click": t.onClose,
|
|
125
122
|
"test-id": `${e}__close-button`,
|
|
126
|
-
variant:
|
|
123
|
+
variant: n(R).Text
|
|
127
124
|
}, null, 8, ["border-radius", "color", "icon-before", "icon-size", "on-click", "test-id", "variant"])) : f("", !0)
|
|
128
125
|
], 2),
|
|
129
126
|
d("div", {
|
|
130
|
-
class:
|
|
127
|
+
class: l(`${e}__content__header`)
|
|
131
128
|
}, [
|
|
132
129
|
d("div", {
|
|
133
|
-
class:
|
|
130
|
+
class: l(`${e}__content__title`)
|
|
134
131
|
}, [
|
|
135
132
|
d("div", {
|
|
136
|
-
class:
|
|
133
|
+
class: l(`${e}__content__header__container`)
|
|
137
134
|
}, [
|
|
138
|
-
t.title ? (v(), B(
|
|
135
|
+
t.title ? (v(), B(n(Q), {
|
|
139
136
|
key: 0,
|
|
140
137
|
id: `${e}__content__header__title`,
|
|
141
|
-
class:
|
|
142
|
-
type:
|
|
138
|
+
class: l(`${e}__content__header__title`),
|
|
139
|
+
type: n(oe).Section
|
|
143
140
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
K(
|
|
141
|
+
default: G(() => [
|
|
142
|
+
J(K(t.title), 1)
|
|
146
143
|
]),
|
|
147
144
|
_: 1
|
|
148
145
|
}, 8, ["id", "class", "type"])) : f("", !0),
|
|
149
|
-
|
|
146
|
+
$(s.$slots, "header")
|
|
150
147
|
], 2)
|
|
151
148
|
], 2)
|
|
152
149
|
], 2),
|
|
153
150
|
d("div", {
|
|
154
|
-
class:
|
|
151
|
+
class: l(`${e}__content__scroller`)
|
|
155
152
|
}, [
|
|
156
153
|
d("div", {
|
|
157
|
-
class:
|
|
154
|
+
class: l(`${e}__content__body`)
|
|
158
155
|
}, [
|
|
159
|
-
|
|
156
|
+
$(s.$slots, "body")
|
|
160
157
|
], 2)
|
|
161
158
|
], 2),
|
|
162
159
|
d("div", {
|
|
163
|
-
class:
|
|
160
|
+
class: l(`${e}__content__footer`)
|
|
164
161
|
}, [
|
|
165
|
-
|
|
162
|
+
$(s.$slots, "footer")
|
|
166
163
|
], 2)
|
|
167
|
-
],
|
|
168
|
-
],
|
|
169
|
-
t.overlay ? (v(),
|
|
164
|
+
], 14, re)
|
|
165
|
+
], 6),
|
|
166
|
+
t.overlay ? (v(), p("div", {
|
|
170
167
|
key: 0,
|
|
171
168
|
ref: "overlay-ref",
|
|
172
|
-
class:
|
|
173
|
-
style:
|
|
169
|
+
class: l(`${e}__overlay`),
|
|
170
|
+
style: w({ zIndex: t.zIndex })
|
|
174
171
|
}, null, 6)) : f("", !0)
|
|
175
|
-
], 14,
|
|
172
|
+
], 14, ae)) : f("", !0);
|
|
176
173
|
}
|
|
177
174
|
});
|
|
178
175
|
export {
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
we as CLModal,
|
|
177
|
+
we as default
|
|
181
178
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLLink.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLLink,
|
|
6
6
|
s as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CLNavLink,
|
|
5
5
|
s as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLNavSection.css';
|
|
3
3
|
import { defineComponent as f, computed as u, createElementBlock as a, openBlock as l, normalizeClass as m, unref as r, Fragment as p, renderList as _, createVNode as i, withCtx as n, createTextVNode as C, toDisplayString as x } from "vue";
|
|
4
|
-
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js";
|
|
5
5
|
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
|
|
6
6
|
import { CLOrientation as h, CLColors as $ } from "../../../index.js";
|
|
7
7
|
const g = ["data-testid"], V = /* @__PURE__ */ f({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.clll-dropdown-menu__menu{position:relative;display:inline-block}
|
|
1
|
+
.clll-dropdown-menu__menu{position:relative;display:inline-block}
|