@codeandfunction/callaloo 3.19.0 → 3.20.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 (55) hide show
  1. package/dist/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-sAuatKyL.js → CLA11yButton.vue_vue_type_style_index_0_lang-fn1ix3QX.js} +1 -1
  2. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js → CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js} +3 -3
  3. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-lzqVCrJ3.js → CLCard.vue_vue_type_style_index_0_lang-CJUxbMzL.js} +5 -5
  4. package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-DU9hc287.js → CLFormLabel.vue_vue_type_script_setup_true_lang-DYYs8W4N.js} +1 -1
  5. package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DSJj-OSE.js → CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js} +1 -1
  6. package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js → CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js} +2 -2
  7. package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-yVPk0TXA.js → CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js} +1 -1
  8. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-N1pSMEpM.js → CLLink.vue_vue_type_style_index_0_lang-M6vqUSDq.js} +2 -2
  9. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Ck2kQgOd.js → CLNavLink.vue_vue_type_script_setup_true_lang-8u8OhF4q.js} +1 -1
  10. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DGFL7WdJ.js → CLPill.vue_vue_type_style_index_0_lang-C8_aZqPJ.js} +3 -3
  11. package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-0bIkQhjj.js → CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js} +1 -1
  12. package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-Bt2htES9.js → CLSpinner.vue_vue_type_style_index_0_lang-ByLBkPr8.js} +1 -1
  13. package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js → CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js} +1 -1
  14. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-BcHzHP29.js → CLToast.vue_vue_type_style_index_0_lang-DIi8ikHj.js} +4 -4
  15. package/dist/chunks/{base-theme-Dp5l5R6W.js → base-theme--kHiV8Yr.js} +22 -22
  16. package/dist/chunks/icons-DnOYbuR5.js +4 -0
  17. package/dist/chunks/{utils-BaOvsXrB.js → utils-BFZ8uebw.js} +1 -1
  18. package/dist/chunks/{utils-lYiECXLy.js → utils-BT2IMc_A.js} +1 -1
  19. package/dist/chunks/{utils-Cxr8PSje.js → utils-BwiU4N7s.js} +1 -1
  20. package/dist/chunks/{utils-c_6HU3mP.js → utils-C9p9W8oE.js} +1 -1
  21. package/dist/chunks/{utils-COeAI8Q8.js → utils-DtSQZ0tk.js} +1 -1
  22. package/dist/chunks/{utils-D3pF04kL.js → utils-DvIHDaPn.js} +1 -1
  23. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  24. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  25. package/dist/components/CLIcon/CLIcon.js +1 -1
  26. package/dist/components/CLTable/CLTable.js +2 -2
  27. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  28. package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
  29. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +5 -5
  30. package/dist/components/Form/CLCheckbox/CLCheckbox.js +3 -3
  31. package/dist/components/Form/CLInput/CLInput.js +5 -5
  32. package/dist/components/Form/CLRadioButton/CLRadioButton.js +2 -2
  33. package/dist/components/Form/CLSelect/CLSelect.js +3 -3
  34. package/dist/components/Form/CLTextArea/CLTextArea.js +2 -2
  35. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  36. package/dist/components/Indicators/CLBanner/CLBanner.js +6 -6
  37. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  38. package/dist/components/Indicators/CLProgress/CLProgress.js +2 -2
  39. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  40. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  41. package/dist/components/Modals/CLModal/CLModal.js +3 -3
  42. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  43. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  44. package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
  45. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
  46. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  47. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
  48. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  49. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  50. package/dist/components/Typography/CLText/CLText.js +1 -1
  51. package/dist/composables/useTheme.js +1 -1
  52. package/dist/index.js +8 -8
  53. package/dist/types.d.ts +5 -2
  54. package/package.json +1 -1
  55. package/dist/chunks/icons-BAS6UELq.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import '../components/Buttons/CLA11yButton/CLA11yButton.css';
2
2
  import { defineComponent as y, ref as b, computed as p, createElementBlock as k, openBlock as C, withKeys as B, normalizeStyle as E, normalizeClass as x, unref as d, renderSlot as A } from "vue";
3
3
  import { CLColors as _ } from "../index.js";
4
- import { a as g } from "./utils-D3pF04kL.js";
4
+ import { a as g } from "./utils-DvIHDaPn.js";
5
5
  const h = ["data-testid", "tabindex"], w = /* @__PURE__ */ y({
6
6
  name: "CLA11yButton",
7
7
  __name: "CLA11yButton",
@@ -1,9 +1,9 @@
1
1
  import '../components/Buttons/CLButton/CLButton.css';
2
2
  import { defineComponent as C, useSlots as h, ref as S, computed as z, onMounted as B, nextTick as g, createBlock as n, openBlock as i, resolveDynamicComponent as L, normalizeStyle as k, normalizeClass as s, unref as l, withCtx as w, createCommentVNode as d, createElementBlock as A, renderSlot as R } from "vue";
3
- import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
4
- import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-Bt2htES9.js";
3
+ import { _ as c } from "./CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
4
+ import { _ as T } from "./CLSpinner.vue_vue_type_style_index_0_lang-ByLBkPr8.js";
5
5
  import { CLColorVariants as I, CLButtonTypes as x, CLLinkTarget as M, CLSizes as o, CLIconSizes as m, CLColors as F, CLAlign as b, CLPosition as N } from "../index.js";
6
- import { b as V } from "./utils-D3pF04kL.js";
6
+ import { b as V } from "./utils-DvIHDaPn.js";
7
7
  import { useHasSlotContent as D } from "../composables/useHasSlotContent.js";
8
8
  const J = /* @__PURE__ */ C({
9
9
  name: "CLButton",
@@ -1,11 +1,11 @@
1
1
  import '../components/Containers/CLCard/CLCard.css';
2
2
  import { defineComponent as I, useSlots as z, ref as v, computed as D, onMounted as F, nextTick as K, createElementBlock as r, openBlock as i, withKeys as M, normalizeStyle as k, normalizeClass as n, unref as l, createCommentVNode as d, createElementVNode as u, withDirectives as B, createVNode as q, vShow as A, createBlock as c, renderSlot as g, Fragment as G, withCtx as y, createTextVNode as b, toDisplayString as C } from "vue";
3
- import { _ as E } from "./CLHeading.vue_vue_type_style_index_0_lang-DSJj-OSE.js";
4
- import { _ as j } from "./CLLink.vue_vue_type_style_index_0_lang-N1pSMEpM.js";
5
- import { _ as h } from "./CLSkeleton.vue_vue_type_style_index_0_lang-0bIkQhjj.js";
6
- import { _ as J } from "./CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
3
+ import { _ as E } from "./CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
4
+ import { _ as j } from "./CLLink.vue_vue_type_style_index_0_lang-M6vqUSDq.js";
5
+ import { _ as h } from "./CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js";
6
+ import { _ as J } from "./CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
7
7
  import { CLColorVariants as O, CLCardTypes as P, CLHeadingTypes as Q, CLHeadingLevels as U, CLLinkTarget as X, CLOverflow as Y, CLLoading as Z, CLColors as p, CLAlign as _, CLOrder as N, CLTextTypes as ee } from "../index.js";
8
- import { c as te } from "./utils-Cxr8PSje.js";
8
+ import { c as te } from "./utils-BwiU4N7s.js";
9
9
  import { useHasSlotContent as ae } from "../composables/useHasSlotContent.js";
10
10
  const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["alt", "loading", "src"], de = ["aria-label", "href", "target"], ye = /* @__PURE__ */ I({
11
11
  name: "CLCard",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, createElementBlock as i, openBlock as o, normalizeClass as a, createVNode as m, unref as d, withCtx as n, createTextVNode as c, toDisplayString as f } from "vue";
2
- import { _ as u } from "./CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
2
+ import { _ as u } from "./CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
3
3
  import { CLSizes as l, CLTextTypes as t } from "../index.js";
4
4
  const b = ["for", "data-testid"], h = /* @__PURE__ */ r({
5
5
  name: "CLFormLabel",
@@ -1,7 +1,7 @@
1
1
  import '../components/Typography/CLHeading/CLHeading.css';
2
2
  import { defineComponent as i, computed as r, createBlock as u, openBlock as f, resolveDynamicComponent as p, unref as o, normalizeStyle as m, normalizeClass as g, withCtx as C, renderSlot as y } from "vue";
3
3
  import { CLHeadingTypes as l, CLColors as $, CLAlign as L, CLHeadingLevels as n } from "../index.js";
4
- import { t as h } from "./utils-BaOvsXrB.js";
4
+ import { t as h } from "./utils-BFZ8uebw.js";
5
5
  const b = /* @__PURE__ */ i({
6
6
  name: "CLHeading",
7
7
  __name: "CLHeading",
@@ -1,7 +1,7 @@
1
1
  import '../components/CLIcon/CLIcon.css';
2
2
  import { defineComponent as p, computed as v, onMounted as z, createElementBlock as a, openBlock as m, normalizeStyle as X, normalizeClass as u, unref as h, createElementVNode as w } from "vue";
3
3
  import { CLMode as f, CLColors as g, CLColorVariants as B, CLIconSizes as o } from "../index.js";
4
- import { g as I } from "./utils-COeAI8Q8.js";
4
+ import { g as I } from "./utils-DtSQZ0tk.js";
5
5
  import { useTheme as S } from "../composables/useTheme.js";
6
6
  import { i as x } from "./helper-BYpahJAh.js";
7
7
  const M = ({ color: e = g.Neutral }) => {
@@ -43,7 +43,7 @@ const M = ({ color: e = g.Neutral }) => {
43
43
  if (!i)
44
44
  try {
45
45
  const d = (/* @__PURE__ */ Object.assign({
46
- "/src/icons.svg": () => import("./icons-BAS6UELq.js").then((C) => C.default)
46
+ "/src/icons.svg": () => import("./icons-DnOYbuR5.js").then((C) => C.default)
47
47
  }))["/src/icons.svg"];
48
48
  if (!d) {
49
49
  console.warn("[Callaloo] Icon sprite not found");
@@ -2,7 +2,7 @@ import '../assets/CLInputMessages.css';
2
2
  import { defineComponent as D, createElementBlock as w, openBlock as $, normalizeClass as y, unref as S, renderSlot as T, Fragment as q, renderList as P, normalizeStyle as G, createElementVNode as O, toDisplayString as A } from "vue";
3
3
  import { CLOrientation as z, CLMode as n, CLColorVariants as a, CLColors as F } from "../index.js";
4
4
  import { useTheme as v } from "../composables/useTheme.js";
5
- import { g as u } from "./utils-COeAI8Q8.js";
5
+ import { g as u } from "./utils-DtSQZ0tk.js";
6
6
  const f = "clll-form-field", R = /* @__PURE__ */ D({
7
7
  __name: "CLFormField",
8
8
  props: {
@@ -1,8 +1,8 @@
1
1
  import '../components/Navigation/CLLink/CLLink.css';
2
2
  import { defineComponent as k, computed as C, createElementBlock as x, openBlock as s, normalizeStyle as L, normalizeClass as b, unref as n, renderSlot as h, createBlock as v, createCommentVNode as y } from "vue";
3
- import { _ as g } from "./CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
3
+ import { _ as g } from "./CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
4
4
  import { CLMode as d, CLColors as u, CLColorVariants as $, CLLinkTarget as B, CLIconSizes as z, CLIconNames as I } from "../index.js";
5
- import { g as S } from "./utils-COeAI8Q8.js";
5
+ import { g as S } from "./utils-DtSQZ0tk.js";
6
6
  import { useTheme as D } from "../composables/useTheme.js";
7
7
  const H = ({
8
8
  color: e = u.Primary,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as o, openBlock as c, unref as d, withCtx as f, renderSlot as m } from "vue";
2
- import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-N1pSMEpM.js";
2
+ import { _ as u } from "./CLLink.vue_vue_type_style_index_0_lang-M6vqUSDq.js";
3
3
  import { CLColors as k } from "../index.js";
4
4
  const x = /* @__PURE__ */ i({
5
5
  name: "CLNavLink",
@@ -1,9 +1,9 @@
1
1
  import '../components/Indicators/CLPill/CLPill.css';
2
2
  import { defineComponent as y, computed as d, createElementBlock as i, openBlock as a, Fragment as h, createCommentVNode as o, createBlock as u, normalizeStyle as m, normalizeClass as c, unref as t, createElementVNode as s, toDisplayString as r, withCtx as z } from "vue";
3
- import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js";
4
- import { _ as $ } from "./CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
3
+ import { _ as b } from "./CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js";
4
+ import { _ as $ } from "./CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
5
5
  import { CLColorVariants as B, CLColors as L, CLIconSizes as f } from "../index.js";
6
- import { p as C } from "./utils-lYiECXLy.js";
6
+ import { p as C } from "./utils-BT2IMc_A.js";
7
7
  const x = ["data-testid"], P = /* @__PURE__ */ y({
8
8
  name: "CLPill",
9
9
  __name: "CLPill",
@@ -1,6 +1,6 @@
1
1
  import '../components/Loading/CLSkeleton/CLSkeleton.css';
2
2
  import { defineComponent as d, computed as a, createElementBlock as r, openBlock as i, normalizeStyle as u, normalizeClass as c, unref as n, createElementVNode as m } from "vue";
3
- import { s as f } from "./utils-c_6HU3mP.js";
3
+ import { s as f } from "./utils-C9p9W8oE.js";
4
4
  const h = ["data-testid"], $ = /* @__PURE__ */ d({
5
5
  name: "CLSkeleton",
6
6
  __name: "CLSkeleton",
@@ -1,7 +1,7 @@
1
1
  import '../components/Loading/CLSpinner/CLSpinner.css';
2
2
  import { defineComponent as d, computed as n, createElementBlock as r, openBlock as i, normalizeStyle as u, normalizeClass as c, unref as o, createElementVNode as a } from "vue";
3
3
  import { CLSizes as f, CLPosition as C, CLColors as $, CLAlign as z } from "../index.js";
4
- import { a as L } from "./utils-c_6HU3mP.js";
4
+ import { a as L } from "./utils-C9p9W8oE.js";
5
5
  const _ = ["data-testid"], h = /* @__PURE__ */ d({
6
6
  name: "CLSpinner",
7
7
  __name: "CLSpinner",
@@ -1,7 +1,7 @@
1
1
  import '../components/Typography/CLText/CLText.css';
2
2
  import { defineComponent as d, computed as n, createBlock as r, openBlock as f, resolveDynamicComponent as c, normalizeStyle as m, normalizeClass as u, unref as o, withCtx as i, renderSlot as p } from "vue";
3
3
  import { CLTextTypes as y, CLColors as $, CLAlign as C } from "../index.js";
4
- import { t as x } from "./utils-BaOvsXrB.js";
4
+ import { t as x } from "./utils-BFZ8uebw.js";
5
5
  const L = /* @__PURE__ */ d({
6
6
  name: "CLText",
7
7
  __name: "CLText",
@@ -1,12 +1,12 @@
1
1
  import '../components/Popups/CLToast/CLToast.css';
2
2
  import { defineComponent as q, ref as n, computed as G, watch as J, onMounted as K, onUnmounted as O, onBeforeUnmount as Q, createElementBlock as D, openBlock as h, normalizeStyle as W, normalizeClass as c, unref as a, createElementVNode as y, createCommentVNode as $, createVNode as M, createBlock as A, withCtx as S, createTextVNode as B, toDisplayString as N } from "vue";
3
- import { _ as F } from "./CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js";
4
- import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
5
- import { _ as H } from "./CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
3
+ import { _ as F } from "./CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js";
4
+ import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
5
+ import { _ as H } from "./CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
6
6
  import { CLColorVariants as x, CLMode as C, CLColors as g, CLToastPosition as Y, CLIconSizes as P, CLTextTypes as I, CLSizes as ee, CLIconNames as te } from "../index.js";
7
7
  import { i as U, g as oe, b as ae } from "./helper-BYpahJAh.js";
8
8
  import { useEsc as se } from "../composables/useEsc.js";
9
- import { g as p } from "./utils-COeAI8Q8.js";
9
+ import { g as p } from "./utils-DtSQZ0tk.js";
10
10
  import { useTheme as ie } from "../composables/useTheme.js";
11
11
  const le = ({ color: o }) => {
12
12
  const { colors: e, darkMode: m } = ie(), i = p({
@@ -7,11 +7,11 @@ function x(e, s) {
7
7
  for (const r in s)
8
8
  if (Object.prototype.hasOwnProperty.call(s, r)) {
9
9
  const f = s[r], d = a[r];
10
- i(d) && i(f) ? a[r] = x(d, f) : a[r] = f;
10
+ l(d) && l(f) ? a[r] = x(d, f) : a[r] = f;
11
11
  }
12
12
  return a;
13
13
  }
14
- function i(e) {
14
+ function l(e) {
15
15
  return e !== null && typeof e == "object" && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof Map) && !(e instanceof Set);
16
16
  }
17
17
  const b = {
@@ -235,7 +235,7 @@ const b = {
235
235
  textDisabled: 500
236
236
  }
237
237
  }
238
- }, v = t(), h = t(), y = t(), c = t({
238
+ }, h = t(), y = t(), B = t(), i = t({
239
239
  primary: {},
240
240
  secondary: {},
241
241
  neutral: {},
@@ -243,33 +243,33 @@ const b = {
243
243
  warning: {},
244
244
  success: {},
245
245
  info: {}
246
- }), l = (e) => {
247
- v.value = e;
248
- }, n = (e) => {
249
- c.value = { ...c.value, ...e };
250
- }, u = (e) => {
246
+ }), n = (e) => {
251
247
  h.value = e;
248
+ }, u = (e) => {
249
+ i.value = { ...i.value, ...e };
252
250
  }, D = (e) => {
253
251
  y.value = e;
252
+ }, v = (e) => {
253
+ B.value = e;
254
254
  }, R = (e) => {
255
- const s = e?.borderRadius || b.borderRadius, a = t(s), r = x(b.colors, e?.colors), f = t(r), d = e?.darkMode || b.darkMode, B = t(d ?? !1), F = e?.fontFamily || b.fontFamily, g = t(F);
256
- f.value && n(f.value), l(a.value), u(B.value), D(g.value), E("clll-theme", {
257
- borderRadius: v,
258
- colors: c,
259
- darkMode: h,
260
- fontFamily: y,
261
- setBorderRadius: l,
262
- setColors: n,
263
- setDarkMode: u,
264
- setFontFamily: D
255
+ const s = e?.borderRadius || b.borderRadius, a = t(s), r = x(b.colors, e?.colors), f = t(r), d = e?.darkMode ?? b.darkMode, c = t(d), F = e?.fontFamily ?? b.fontFamily, g = t(F);
256
+ f.value && u(f.value), n(a.value), c.value !== void 0 && D(c.value), v(g.value), E("clll-theme", {
257
+ borderRadius: h,
258
+ colors: i,
259
+ darkMode: y,
260
+ fontFamily: B,
261
+ setBorderRadius: n,
262
+ setColors: u,
263
+ setDarkMode: D,
264
+ setFontFamily: v
265
265
  });
266
266
  };
267
267
  export {
268
268
  m as C,
269
269
  b as D,
270
- l as a,
271
- n as b,
272
- u as c,
273
- D as d,
270
+ n as a,
271
+ u as b,
272
+ D as c,
273
+ v as d,
274
274
  R as s
275
275
  };