@codeandfunction/callaloo 3.23.0 → 4.1.0
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/assets/shared/form-utilities.css +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js → CLButton.vue_vue_type_style_index_0_lang-B-XC2_j4.js} +46 -44
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-C8dDRXYZ.js → CLCard.vue_vue_type_style_index_0_lang-DZ-2FEcq.js} +1 -1
- package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js → CLIcon.vue_vue_type_style_index_0_lang-CMjcMLcy.js} +1 -1
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BDgJvHNE.js → CLLink.vue_vue_type_style_index_0_lang-sXIdl0uH.js} +1 -1
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-CMUfxGA3.js → CLNavLink.vue_vue_type_script_setup_true_lang-FMOMJjMR.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-BPOoZ5_q.js → CLPill.vue_vue_type_style_index_0_lang-BbXWiTde.js} +27 -24
- package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-BH6Tnr-h.js → CLToast.vue_vue_type_style_index_0_lang-BL61sRYd.js} +61 -59
- package/dist/chunks/helper-oZuRnF9g.js +81 -0
- 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 +4 -4
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +14 -15
- package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +3 -5
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
- package/dist/components/Form/CLInput/CLInput.js +228 -176
- package/dist/components/Form/CLInput/CLInput.vue.d.ts +12 -0
- package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +13 -4
- package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +13 -4
- package/dist/components/Form/CLSelect/CLSelect.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLPill/CLPill.vue.d.ts +3 -0
- package/dist/components/Modals/CLModal/CLModal.js +2 -2
- 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.js +149 -151
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +5 -8
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -0
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
- package/dist/composables/useDropdown.js +1 -1
- package/dist/composables/useEsc.js +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/utils/helper.d.ts +4 -1
- package/package.json +1 -1
- package/dist/chunks/helper-BYpahJAh.js +0 -63
|
@@ -28,11 +28,9 @@ export interface CLDropdownMenuProps {
|
|
|
28
28
|
dropdownId: string;
|
|
29
29
|
/** Sets the icon to be displayed after the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.ChevronDown`. */
|
|
30
30
|
iconAfter?: CLIconNames;
|
|
31
|
-
/** Sets the size of the icon displayed after the anchor button label. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Tiny`. */
|
|
32
|
-
iconAfterSize?: CLIconSizes;
|
|
33
31
|
/** Sets the icon to be displayed before the anchor button label. The property can be one of `CLIconNames`, e.g. `CLIconNames.Menu`. */
|
|
34
32
|
iconBefore?: CLIconNames;
|
|
35
|
-
/** Sets the size of
|
|
33
|
+
/** Sets the size of icons displayed before and after the anchor button label. The property can be one of `CLIconSizes`, e.g. `CLIconSizes.Tiny`. */
|
|
36
34
|
iconSize?: CLIconSizes;
|
|
37
35
|
/** Sets the initial open state of the DropdownMenu. */
|
|
38
36
|
isOpen?: boolean;
|
|
@@ -52,7 +50,6 @@ export interface CLDropdownMenuProps {
|
|
|
52
50
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CLDropdownMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLDropdownMenuProps> & Readonly<{}>, {
|
|
53
51
|
testId: string;
|
|
54
52
|
iconAfter: CLIconNames;
|
|
55
|
-
iconAfterSize: CLIconSizes;
|
|
56
53
|
iconSize: CLIconSizes;
|
|
57
54
|
isOpen: boolean;
|
|
58
55
|
zIndex: number | string;
|
|
@@ -85,7 +82,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
85
82
|
readonly href?: string | undefined;
|
|
86
83
|
readonly iconAfter?: CLIconNames | undefined;
|
|
87
84
|
readonly iconBefore?: CLIconNames | undefined;
|
|
88
|
-
readonly
|
|
85
|
+
readonly iconFilled?: boolean | undefined;
|
|
89
86
|
readonly iconSize?: CLIconSizes | undefined;
|
|
90
87
|
readonly onClick?: ((event?: Event) => void) | undefined;
|
|
91
88
|
readonly pill?: boolean | undefined;
|
|
@@ -140,7 +137,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
140
137
|
forwardRef: import('../../../types').CLButtonForwardRefFunction;
|
|
141
138
|
iconAfter: CLIconNames;
|
|
142
139
|
iconBefore: CLIconNames;
|
|
143
|
-
|
|
140
|
+
iconFilled: boolean;
|
|
144
141
|
iconSize: CLIconSizes;
|
|
145
142
|
pill: boolean;
|
|
146
143
|
wrap: boolean;
|
|
@@ -189,11 +186,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
|
|
|
189
186
|
forwardRef: import('../../../types').CLButtonForwardRefFunction;
|
|
190
187
|
iconAfter: CLIconNames;
|
|
191
188
|
iconBefore: CLIconNames;
|
|
192
|
-
|
|
189
|
+
iconFilled: boolean;
|
|
193
190
|
iconSize: CLIconSizes;
|
|
194
191
|
pill: boolean;
|
|
195
192
|
wrap: boolean;
|
|
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" | "
|
|
193
|
+
}> & 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" | "iconFilled" | "iconSize" | "pill" | "wrap"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
197
194
|
$slots: {
|
|
198
195
|
default?(_: {}): any;
|
|
199
196
|
};
|
|
@@ -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-BL61sRYd.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLToast,
|
|
6
6
|
s as default
|
|
@@ -5,6 +5,7 @@ declare const _default: import('vue').DefineComponent<CLToastProps, {}, {}, {},
|
|
|
5
5
|
testId: string;
|
|
6
6
|
width: string;
|
|
7
7
|
position: CLToastPosition;
|
|
8
|
+
iconFilled: boolean;
|
|
8
9
|
iconSize: CLIconSizes;
|
|
9
10
|
dismissTimer: number;
|
|
10
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import { defineComponent as s, onMounted as l, onBeforeUnmount as m, watch as r, createBlock as f, openBlock as c, resolveDynamicComponent as u, normalizeStyle as h, unref as C, withCtx as D, renderSlot as M } from "vue";
|
|
3
3
|
import { s as g, a as k, b as v, c as d, d as y, D as p } from "../../../chunks/base-theme--kHiV8Yr.js";
|
|
4
|
-
import { i as n, a as w } from "../../../chunks/helper-
|
|
4
|
+
import { i as n, a as w } from "../../../chunks/helper-oZuRnF9g.js";
|
|
5
5
|
const T = /* @__PURE__ */ s({
|
|
6
6
|
__name: "CLThemeProvider",
|
|
7
7
|
props: {
|
|
@@ -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 h, createBlock as z, createCommentVNode as B, renderSlot as R, unref as S } from "vue";
|
|
3
|
-
import { _ as A } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as A } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BL61sRYd.js";
|
|
4
4
|
const $ = { class: "clll-toast-provider" }, E = /* @__PURE__ */ L({
|
|
5
5
|
name: "CLToastProvider",
|
|
6
6
|
__name: "CLToastProvider",
|
package/dist/types.d.ts
CHANGED
|
@@ -634,6 +634,8 @@ export interface CLToastProps {
|
|
|
634
634
|
icon?: CLIconNames;
|
|
635
635
|
/** The size of the icon */
|
|
636
636
|
iconSize?: CLIconSizes;
|
|
637
|
+
/** A boolean value which dictates whether icons should be filled. */
|
|
638
|
+
iconFilled?: boolean;
|
|
637
639
|
/** The text to be displayed as the message */
|
|
638
640
|
message?: string;
|
|
639
641
|
/** A callback function to handle click events */
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export interface IAnimate {
|
|
2
|
-
start: (duration: number, callbackFn: (elapsedTime: number) => void) => void;
|
|
2
|
+
start: (duration: number, callbackFn: (elapsedTime: number) => void, onComplete?: () => void) => void;
|
|
3
3
|
stop: () => void;
|
|
4
|
+
pause: () => void;
|
|
5
|
+
resume: () => void;
|
|
6
|
+
getProgress: () => number | undefined;
|
|
4
7
|
}
|
|
5
8
|
export declare const animate: () => IAnimate;
|
|
6
9
|
interface ChildIsVisibleInput {
|
package/package.json
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
const b = () => {
|
|
2
|
-
let t, o, i, e = !1, r, s;
|
|
3
|
-
const d = (n) => {
|
|
4
|
-
if (e) return;
|
|
5
|
-
o === void 0 && (o = n);
|
|
6
|
-
const a = n - o;
|
|
7
|
-
i !== n && s?.(a), r && a < r && (i = n, e || (t = window.requestAnimationFrame(d)));
|
|
8
|
-
}, l = () => {
|
|
9
|
-
t = void 0, o = void 0, i = void 0, e = !1, r = void 0;
|
|
10
|
-
};
|
|
11
|
-
return {
|
|
12
|
-
start: (n, a) => {
|
|
13
|
-
s = a, r = n, t = window.requestAnimationFrame(d);
|
|
14
|
-
},
|
|
15
|
-
stop: () => {
|
|
16
|
-
e = !0, t && window.cancelAnimationFrame(t), l();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}, D = ({
|
|
20
|
-
parent: t,
|
|
21
|
-
child: o,
|
|
22
|
-
threshold: i = 0.1,
|
|
23
|
-
leftOffset: e = 0,
|
|
24
|
-
rightOffset: r = 0
|
|
25
|
-
}) => {
|
|
26
|
-
const {
|
|
27
|
-
top: s,
|
|
28
|
-
left: d,
|
|
29
|
-
bottom: l,
|
|
30
|
-
right: n,
|
|
31
|
-
width: a,
|
|
32
|
-
height: m
|
|
33
|
-
} = t?.getBoundingClientRect() || {}, {
|
|
34
|
-
top: h,
|
|
35
|
-
left: p,
|
|
36
|
-
bottom: g,
|
|
37
|
-
right: w
|
|
38
|
-
} = o.getBoundingClientRect() || {};
|
|
39
|
-
let y = d + e, v = n - r, x = a - (e + r), c = 0, f = 0;
|
|
40
|
-
return p <= v && (c = (w - y) / x * 100 / 100), h <= l && (f = (g - s) / m * 100 / 100), c > i && f > i;
|
|
41
|
-
}, A = () => u ? Math.max(
|
|
42
|
-
...Array.from(
|
|
43
|
-
document?.querySelectorAll("body *"),
|
|
44
|
-
(t) => parseFloat(window?.getComputedStyle(t).zIndex)
|
|
45
|
-
).filter((t) => !Number.isNaN(t)),
|
|
46
|
-
0
|
|
47
|
-
) : 0, u = typeof document < "u", B = () => u ? window.matchMedia("(prefers-color-scheme: dark)").matches : !1, C = (t) => t != null && typeof t.valueOf() == "string", F = (t) => {
|
|
48
|
-
if (!t) return !0;
|
|
49
|
-
let o = 0;
|
|
50
|
-
const i = ["#comment"];
|
|
51
|
-
return t.childNodes.forEach((e) => {
|
|
52
|
-
!i.includes(e.nodeName) && e.childNodes.length && o++;
|
|
53
|
-
}), o === 0;
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
B as a,
|
|
57
|
-
b,
|
|
58
|
-
C as c,
|
|
59
|
-
F as d,
|
|
60
|
-
D as e,
|
|
61
|
-
A as g,
|
|
62
|
-
u as i
|
|
63
|
-
};
|