@codeandfunction/callaloo 4.9.4 → 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.js +1 -182
- 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/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/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,81 +0,0 @@
|
|
|
1
|
-
const F = () => {
|
|
2
|
-
let e, n, o = !1, t, a, l, i = !1, d = 0;
|
|
3
|
-
const f = () => {
|
|
4
|
-
if (o || !a || t === void 0 || n === void 0 || i) return;
|
|
5
|
-
const r = performance.now(), s = d + (r - n);
|
|
6
|
-
a(s), s < t ? e = window.requestAnimationFrame(f) : (o = !0, e && (window.cancelAnimationFrame(e), e = void 0), l?.());
|
|
7
|
-
}, m = () => {
|
|
8
|
-
e && (window.cancelAnimationFrame(e), e = void 0), n = void 0, o = !1, t = void 0, a = void 0, l = void 0, i = !1, d = 0;
|
|
9
|
-
};
|
|
10
|
-
return {
|
|
11
|
-
start: (r, s, u) => {
|
|
12
|
-
!c || r <= 0 || typeof s != "function" || (e && window.cancelAnimationFrame(e), o = !1, i = !1, d = 0, a = s, t = r, l = u, n = performance.now(), e = window.requestAnimationFrame(f));
|
|
13
|
-
},
|
|
14
|
-
stop: () => {
|
|
15
|
-
o = !0, m();
|
|
16
|
-
},
|
|
17
|
-
pause: () => {
|
|
18
|
-
if (!c || o || i || !a || t === void 0 || n === void 0)
|
|
19
|
-
return;
|
|
20
|
-
const r = performance.now();
|
|
21
|
-
d += r - n, e && (window.cancelAnimationFrame(e), e = void 0), i = !0;
|
|
22
|
-
},
|
|
23
|
-
resume: () => {
|
|
24
|
-
!c || o || !i || !a || t === void 0 || (n = performance.now(), i = !1, e = window.requestAnimationFrame(f));
|
|
25
|
-
},
|
|
26
|
-
getProgress: () => {
|
|
27
|
-
if (!c || t === void 0 || n === void 0)
|
|
28
|
-
return;
|
|
29
|
-
if (o)
|
|
30
|
-
return 1;
|
|
31
|
-
if (i)
|
|
32
|
-
return Math.min(d / t, 1);
|
|
33
|
-
const r = performance.now(), s = d + (r - n);
|
|
34
|
-
return Math.min(s / t, 1);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}, C = ({
|
|
38
|
-
parent: e,
|
|
39
|
-
child: n,
|
|
40
|
-
threshold: o = 0.1,
|
|
41
|
-
leftOffset: t = 0,
|
|
42
|
-
rightOffset: a = 0
|
|
43
|
-
}) => {
|
|
44
|
-
const {
|
|
45
|
-
top: l,
|
|
46
|
-
left: i,
|
|
47
|
-
bottom: d,
|
|
48
|
-
right: f,
|
|
49
|
-
width: m,
|
|
50
|
-
height: r
|
|
51
|
-
} = e?.getBoundingClientRect() || {}, {
|
|
52
|
-
top: s,
|
|
53
|
-
left: u,
|
|
54
|
-
bottom: h,
|
|
55
|
-
right: g
|
|
56
|
-
} = n.getBoundingClientRect() || {};
|
|
57
|
-
let v = i + t, y = f - a, x = m - (t + a), p = 0, w = 0;
|
|
58
|
-
return u <= y && (p = (g - v) / x * 100 / 100), s <= d && (w = (h - l) / r * 100 / 100), p > o && w > o;
|
|
59
|
-
}, N = () => c ? Math.max(
|
|
60
|
-
...Array.from(
|
|
61
|
-
document?.querySelectorAll("body *"),
|
|
62
|
-
(e) => parseFloat(window?.getComputedStyle(e).zIndex)
|
|
63
|
-
).filter((e) => !Number.isNaN(e)),
|
|
64
|
-
0
|
|
65
|
-
) : 0, c = typeof document < "u", b = () => c ? window.matchMedia("(prefers-color-scheme: dark)").matches : !1, D = (e) => e != null && typeof e.valueOf() == "string", M = (e) => {
|
|
66
|
-
if (!e) return !0;
|
|
67
|
-
let n = 0;
|
|
68
|
-
const o = ["#comment"];
|
|
69
|
-
return e.childNodes.forEach((t) => {
|
|
70
|
-
!o.includes(t.nodeName) && t.childNodes.length && n++;
|
|
71
|
-
}), n === 0;
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
F as a,
|
|
75
|
-
b,
|
|
76
|
-
D as c,
|
|
77
|
-
M as d,
|
|
78
|
-
C as e,
|
|
79
|
-
N as g,
|
|
80
|
-
c as i
|
|
81
|
-
};
|