@codeandfunction/callaloo 3.21.0 → 3.22.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 (31) hide show
  1. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js → CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js} +1 -1
  2. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-TOjjxtJt.js → CLCard.vue_vue_type_style_index_0_lang-C8dDRXYZ.js} +1 -1
  3. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js +109 -0
  4. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-M6vqUSDq.js → CLLink.vue_vue_type_style_index_0_lang-BDgJvHNE.js} +1 -1
  5. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-8u8OhF4q.js → CLNavLink.vue_vue_type_script_setup_true_lang-CMUfxGA3.js} +1 -1
  6. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-C8_aZqPJ.js → CLPill.vue_vue_type_style_index_0_lang-BPOoZ5_q.js} +2 -2
  7. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-DIi8ikHj.js → CLToast.vue_vue_type_style_index_0_lang-BH6Tnr-h.js} +2 -2
  8. package/dist/chunks/icons-6Fm4EZ4Y.js +4 -0
  9. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  10. package/dist/components/CLIcon/CLIcon.js +1 -1
  11. package/dist/components/CLIcon/CLIcon.vue.d.ts +3 -0
  12. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  13. package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -1
  14. package/dist/components/Containers/CLCarousel/CLCarousel.js +377 -303
  15. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +3 -0
  16. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +2 -2
  17. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  18. package/dist/components/Form/CLInput/CLInput.js +3 -3
  19. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  20. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  21. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  22. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  23. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  24. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  25. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  26. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
  27. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  28. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  29. package/package.json +1 -1
  30. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js +0 -85
  31. package/dist/chunks/icons-DnOYbuR5.js +0 -4
@@ -8,6 +8,8 @@ export interface CLCarouselProps {
8
8
  controlPosition?: CLOrder;
9
9
  /** When set to `false` it will remove the carousel's functionality and layout. */
10
10
  enabled?: boolean;
11
+ /** When set to `true`, the carousel will loop infinitely through slides. */
12
+ infinite?: boolean;
11
13
  /** Set a custom label for the more button. Default is `More`. */
12
14
  moreLabel?: string;
13
15
  /** A callback function to handle when the more button is clicked. */
@@ -37,6 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
37
39
  paginationType: CLPaginationType;
38
40
  controlAlign: CLAlign;
39
41
  controlPosition: CLOrder;
42
+ infinite: boolean;
40
43
  perPage: number;
41
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
42
45
  beforeControls: HTMLDivElement;
@@ -1,9 +1,9 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDisclosure.css';
3
3
  import { defineComponent as x, ref as g, computed as $, onBeforeUnmount as L, createElementBlock as I, openBlock as i, normalizeStyle as T, normalizeClass as o, unref as d, createElementVNode as c, createVNode as H, withCtx as u, createBlock as l, createCommentVNode as s, createTextVNode as y, toDisplayString as b, renderSlot as k } from "vue";
4
- import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js";
4
+ import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
5
5
  import { _ as N } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
6
- import { _ as h } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
6
+ import { _ as h } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js";
7
7
  import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
8
8
  import { CLColorVariants as A, CLSizes as D, CLTextTypes as R, CLIconSizes as V, CLIconNames as v, CLHeadingTypes as p, CLColors as M, CLButtonTypes as U } from "../../../index.js";
9
9
  import { d as F } from "../../../chunks/utils-BwiU4N7s.js";
@@ -3,7 +3,7 @@ import './CLCheckbox.css';
3
3
  import '../../../assets/shared/form-utilities.css';
4
4
  import { defineComponent as T, mergeModels as z, useTemplateRef as B, useModel as S, computed as y, createBlock as m, openBlock as f, withCtx as $, createElementVNode as i, createCommentVNode as C, normalizeStyle as M, normalizeClass as s, unref as n, withDirectives as V, vModelCheckbox as q, createVNode as F, createTextVNode as N, toDisplayString as I } from "vue";
5
5
  import { _ as R, c as D, a as X } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
6
- import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
6
+ import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js";
7
7
  import { _ as E } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
8
8
  import { CLSizes as o, CLIconSizes as u, CLTextTypes as c, CLIconNames as H, CLColorVariants as O, CLColors as U } from "../../../index.js";
9
9
  const j = ["data-testid"], A = ["for", "disabled"], G = ["id", "aria-label", "disabled", "form", "name", "required", "value"], Z = /* @__PURE__ */ T({
@@ -5,10 +5,10 @@ import { defineComponent as v, computed as I, createElementBlock as b, openBlock
5
5
  import { _ as te, i as ae, a as ie } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
6
6
  import { _ as oe } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-DYYs8W4N.js";
7
7
  import { _ as ne } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
8
- import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
8
+ import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js";
9
9
  import { CLSizes as u, CLBorderRadius as H, CLIconSizes as r, CLIconNames as h, CLColors as k, CLColorVariants as S, CLInputTypes as o, CLOrientation as B, CLCharCounterLayout as ue } from "../../../index.js";
10
- import { _ as se } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-C8_aZqPJ.js";
11
- import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js";
10
+ import { _ as se } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BPOoZ5_q.js";
11
+ import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
12
12
  const de = ["data-testid"], E = /* @__PURE__ */ v({
13
13
  name: "CLInputPrefix",
14
14
  __name: "CLInputPrefix",
@@ -4,7 +4,7 @@ import '../../../assets/shared/form-utilities.css';
4
4
  import { defineComponent as B, mergeModels as S, useModel as h, useTemplateRef as q, computed as x, createBlock as f, openBlock as n, withCtx as T, createElementVNode as d, createCommentVNode as $, normalizeStyle as V, normalizeClass as r, unref as u, withDirectives as k, createElementBlock as b, Fragment as M, renderList as F, toDisplayString as I, vModelSelect as N, createVNode as R } from "vue";
5
5
  import { _ as D, s as w, a as E } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
6
6
  import { _ as H } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-DYYs8W4N.js";
7
- import { _ as O } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js";
7
+ import { _ as O } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CduBjI1N.js";
8
8
  import { CLSizes as o, CLIconSizes as s, CLOrientation as y, CLIconNames as P, CLColorVariants as U, CLColors as X } from "../../../index.js";
9
9
  const j = ["data-testid"], A = ["id", "aria-label", "disabled", "name", "placeholder", "form", "required"], G = ["value", "selected", "disabled"], p = /* @__PURE__ */ B({
10
10
  name: "CLSelect",
@@ -2,7 +2,7 @@ import '../../../assets/core.css';
2
2
  import './CLBanner.css';
3
3
  import { defineComponent as L, computed as h, createBlock as l, openBlock as n, unref as a, withCtx as s, createElementVNode as u, normalizeStyle as v, normalizeClass as r, createElementBlock as b, createCommentVNode as o, createTextVNode as m, toDisplayString as c, createVNode as y } from "vue";
4
4
  import { _ as x } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-fn1ix3QX.js";
5
- import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js";
5
+ import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
6
6
  import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
7
7
  import { _ as C } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js";
8
8
  import { _ as B } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLPill.css';
3
- import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-C8_aZqPJ.js";
3
+ import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BPOoZ5_q.js";
4
4
  export {
5
5
  s as CLPill,
6
6
  s as default
@@ -1,7 +1,7 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLModal.css';
3
3
  import { defineComponent as W, useTemplateRef as F, useSlots as U, ref as Z, computed as m, watch as j, onMounted as q, onBeforeUnmount as A, createElementBlock as p, createCommentVNode as v, openBlock as w, normalizeStyle as y, 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-B3AdartN.js";
4
+ import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
5
5
  import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
6
6
  import { CLMode as k, CLColors as T, CLColorVariants as N, CLBorderRadius as X, CLIconSizes as Y, CLIconNames as ee, CLHeadingTypes as oe } from "../../../index.js";
7
7
  import { g as te } from "../../../chunks/utils-DtSQZ0tk.js";
@@ -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-M6vqUSDq.js";
3
+ import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-BDgJvHNE.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-8u8OhF4q.js";
2
+ import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-CMUfxGA3.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-8u8OhF4q.js";
4
+ import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-CMUfxGA3.js";
5
5
  import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
6
6
  import { CLOrientation as h, CLColors as $ } from "../../../index.js";
7
7
  const g = ["data-testid"], V = /* @__PURE__ */ f({
@@ -1,8 +1,8 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDropdownMenu.css';
3
3
  import { computed as V, ref as E, shallowRef as te, watch as ut, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as q, unref as A, defineComponent as oe, onBeforeUnmount as ie, createElementBlock as Rt, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as re, withCtx as Et, createTextVNode as le, toDisplayString as se, normalizeStyle as ce, renderSlot as ae } from "vue";
4
- import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B3AdartN.js";
5
- import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-TOjjxtJt.js";
4
+ import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
5
+ import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-C8dDRXYZ.js";
6
6
  import { c as de, i as mt } from "../../../chunks/helper-BYpahJAh.js";
7
7
  import { useDropdown as me } from "../../../composables/useDropdown.js";
8
8
  import { useEsc as he } from "../../../composables/useEsc.js";
@@ -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-DIi8ikHj.js";
3
+ import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BH6Tnr-h.js";
4
4
  export {
5
5
  s as CLToast,
6
6
  s as default
@@ -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-DIi8ikHj.js";
3
+ import { _ as A } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-BH6Tnr-h.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": "3.21.0",
20
+ "version": "3.22.0",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "scripts": {
@@ -1,85 +0,0 @@
1
- import '../components/CLIcon/CLIcon.css';
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
- import { CLMode as f, CLColors as g, CLColorVariants as B, CLIconSizes as o } from "../index.js";
4
- import { g as I } from "./utils-DtSQZ0tk.js";
5
- import { useTheme as S } from "../composables/useTheme.js";
6
- import { i as x } from "./helper-BYpahJAh.js";
7
- const M = ({ color: e = g.Neutral }) => {
8
- const { colors: c, darkMode: t } = S(), n = t.value ? f.Dark : f.Light;
9
- return {
10
- "--clll-icon-color": I({
11
- color: e,
12
- colors: c.value,
13
- mode: n,
14
- variant: B.Text
15
- })?.textBody ?? "inherit"
16
- };
17
- }, E = ["data-testid"], $ = ["height", "width"], b = ["href"], O = /* @__PURE__ */ p({
18
- name: "CLIcon",
19
- __name: "CLIcon",
20
- props: {
21
- color: { default: g.Neutral },
22
- name: {},
23
- size: { default: o.Small },
24
- testId: { default: "clll-icon" }
25
- },
26
- setup(e) {
27
- const c = e, t = "clll-icon", n = {
28
- [o.Tiny]: 20,
29
- [o.Small]: 24,
30
- [o.Medium]: 28,
31
- [o.Large]: 32,
32
- [o.XL]: 36,
33
- [o.XXL]: 40,
34
- [o.XXXL]: 44,
35
- [o.XXXXL]: 48
36
- }, r = v(() => [
37
- t,
38
- `${t}--${c.name}`,
39
- `${t}--${c.size}`
40
- ]), L = async () => {
41
- if (!x) return;
42
- let i = document.getElementById("clll-icons");
43
- if (!i)
44
- try {
45
- const d = (/* @__PURE__ */ Object.assign({
46
- "/src/icons.svg": () => import("./icons-DnOYbuR5.js").then((C) => C.default)
47
- }))["/src/icons.svg"];
48
- if (!d) {
49
- console.warn("[Callaloo] Icon sprite not found");
50
- return;
51
- }
52
- const y = await d();
53
- if (i = document.getElementById("clll-icons"), i) return;
54
- const s = document.createElement("div");
55
- s.id = "clll-icons", s.style.display = "none", s.innerHTML = y.toString(), document.readyState === "loading" ? window.addEventListener("DOMContentLoaded", () => {
56
- document.body.insertBefore(s, document.body.childNodes[0]);
57
- }) : document.body.insertBefore(s, document.body.childNodes[0]);
58
- } catch (l) {
59
- console.error("[Callaloo] Failed to load icon sprite:", l);
60
- }
61
- };
62
- return z(() => {
63
- L();
64
- }), (i, l) => (m(), a("span", {
65
- class: u(h(r)),
66
- "data-testid": e.testId,
67
- style: X({ ...h(M)({ color: e.color }), width: n[e.size] + "px", height: n[e.size] + "px" })
68
- }, [
69
- (m(), a("svg", {
70
- "aria-hidden": "true",
71
- class: u(`${t}-sprite`),
72
- height: n[e.size],
73
- width: n[e.size],
74
- viewBox: "0 0 24 24"
75
- }, [
76
- w("use", {
77
- href: `#${e.name}`
78
- }, null, 8, b)
79
- ], 10, $))
80
- ], 14, E));
81
- }
82
- });
83
- export {
84
- O as _
85
- };