@codeandfunction/callaloo 4.5.0 → 4.6.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.
Files changed (34) hide show
  1. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-Ddoes-Ee.js → CLButton.vue_vue_type_style_index_0_lang-D0vMBs0W.js} +1 -1
  2. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-DIPohqn6.js → CLCard.vue_vue_type_style_index_0_lang-CfB_Fpy5.js} +2 -2
  3. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CzJDIguL.js +113 -0
  4. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BXyEYnRQ.js → CLLink.vue_vue_type_style_index_0_lang-CZZm1duI.js} +1 -1
  5. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-DG5Au49r.js → CLNavLink.vue_vue_type_script_setup_true_lang-BEBTiI0u.js} +1 -1
  6. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-D1W4PnWB.js → CLPill.vue_vue_type_style_index_0_lang-Eh8_1A7g.js} +2 -2
  7. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-DMGCjGnQ.js → CLToast.vue_vue_type_style_index_0_lang-BYHaeCZV.js} +2 -2
  8. package/dist/chunks/{utils-Ca0eSzWQ.js → utils-Dp9v2LTO.js} +21 -19
  9. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  10. package/dist/components/CLIcon/CLIcon.js +1 -1
  11. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  12. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  13. package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -1
  14. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +51 -49
  15. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +1 -0
  16. package/dist/components/Containers/CLDrawer/CLDrawer.js +1 -1
  17. package/dist/components/Containers/utils.d.ts +2 -0
  18. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  19. package/dist/components/Form/CLInput/CLInput.css +1 -1
  20. package/dist/components/Form/CLInput/CLInput.js +184 -178
  21. package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +1 -1
  22. package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +1 -1
  23. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  24. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  25. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  26. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  27. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  28. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  29. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  30. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
  31. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  32. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CX2_4ukW.js +0 -109
@@ -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-DMGCjGnQ.js";
3
+ import { _ as A } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BYHaeCZV.js";
4
4
  const $ = { class: "clll-toast-provider" }, E = /* @__PURE__ */ L({
5
5
  name: "CLToastProvider",
6
6
  __name: "CLToastProvider",
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "4.5.0",
20
+ "version": "4.6.0",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "scripts": {
@@ -1,109 +0,0 @@
1
- import '../components/CLIcon/CLIcon.css';
2
- import { defineComponent as S, ref as X, computed as m, watch as M, 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 n } from "../index.js";
4
- import { g as T } from "./utils-DtSQZ0tk.js";
5
- import { useTheme as V } from "../composables/useTheme.js";
6
- import { i as x } from "./helper-qUkciePY.js";
7
- const q = ({ color: o = E.Neutral }) => {
8
- const { colors: t, darkMode: l } = V(), r = l.value ? C.Dark : C.Light;
9
- return {
10
- "--clll-icon-color": T({
11
- color: o,
12
- colors: t.value,
13
- mode: r,
14
- variant: k.Text
15
- })?.textBody ?? "inherit"
16
- };
17
- }, D = ["data-testid"], O = ["height", "width"], j = ["href"], G = /* @__PURE__ */ S({
18
- name: "CLIcon",
19
- __name: "CLIcon",
20
- props: {
21
- color: { default: E.Neutral },
22
- filled: { type: Boolean, default: !1 },
23
- name: {},
24
- size: { default: n.Small },
25
- testId: { default: "clll-icon" }
26
- },
27
- setup(o) {
28
- const t = o, l = "clll-icon", r = {
29
- [n.Tiny]: 20,
30
- [n.Small]: 24,
31
- [n.Medium]: 28,
32
- [n.Large]: 32,
33
- [n.XL]: 36,
34
- [n.XXL]: 40,
35
- [n.XXXL]: 44,
36
- [n.XXXXL]: 48
37
- }, i = /* @__PURE__ */ new Map(), a = X(!1), B = (e) => {
38
- if (!x) return !1;
39
- if (i.has(e))
40
- return i.get(e);
41
- const s = document.getElementById("clll-icons");
42
- if (!s)
43
- return !1;
44
- const c = document.getElementById(e), d = c !== null && s.contains(c);
45
- return i.set(e, d), d;
46
- }, h = m(() => !t.filled || t.name.endsWith("-filled") ? t.name : t.name.replace("tabler:", "tabler:") + "-filled"), g = m(() => {
47
- const e = h.value;
48
- return !t.filled || e === t.name || B(e) ? e : t.name;
49
- }), w = m(() => [
50
- l,
51
- `${l}--${t.name}`,
52
- `${l}--${t.size}`,
53
- { [`${l}--filled`]: t.filled && g.value === h.value }
54
- ]);
55
- M(() => a.value, (e) => {
56
- e && i.clear();
57
- });
58
- const z = async () => {
59
- if (!x) return;
60
- let e = document.getElementById("clll-icons");
61
- if (e) {
62
- a.value = !0;
63
- return;
64
- }
65
- try {
66
- const c = (/* @__PURE__ */ Object.assign({
67
- "/src/icons.svg": () => import("./icons-DllZKtC2.js").then((I) => I.default)
68
- }))["/src/icons.svg"];
69
- if (!c)
70
- return;
71
- const d = await c();
72
- if (e = document.getElementById("clll-icons"), e) {
73
- a.value = !0;
74
- return;
75
- }
76
- const u = document.createElement("div");
77
- u.id = "clll-icons", u.style.display = "none", u.innerHTML = d.toString();
78
- const p = () => {
79
- document.body.insertBefore(u, document.body.childNodes[0]), a.value = !0;
80
- };
81
- document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", p, { once: !0 }) : p();
82
- } catch (s) {
83
- console.error("[Callaloo] Failed to load icon sprite:", s);
84
- }
85
- };
86
- return $(() => {
87
- z();
88
- }), (e, s) => (y(), v("span", {
89
- class: L(f(w)),
90
- "data-testid": o.testId,
91
- style: b({ ...f(q)({ color: o.color }), width: r[o.size] + "px", height: r[o.size] + "px" })
92
- }, [
93
- (y(), v("svg", {
94
- "aria-hidden": "true",
95
- class: L(`${l}-sprite`),
96
- height: r[o.size],
97
- width: r[o.size],
98
- viewBox: "0 0 24 24"
99
- }, [
100
- N("use", {
101
- href: `#${f(g)}`
102
- }, null, 8, j)
103
- ], 10, O))
104
- ], 14, D));
105
- }
106
- });
107
- export {
108
- G as _
109
- };