@codeandfunction/callaloo 3.22.0 → 4.0.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 (39) hide show
  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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. package/dist/chunks/helper-oZuRnF9g.js +81 -0
  9. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  10. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +4 -4
  11. package/dist/components/CLIcon/CLIcon.js +1 -1
  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 +248 -213
  15. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +14 -15
  16. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +3 -5
  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/Indicators/CLPill/CLPill.vue.d.ts +3 -0
  23. package/dist/components/Modals/CLModal/CLModal.js +2 -2
  24. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  25. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  26. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  27. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +149 -151
  28. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +5 -8
  29. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  30. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -0
  31. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
  32. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  33. package/dist/composables/useDropdown.js +1 -1
  34. package/dist/composables/useEsc.js +1 -1
  35. package/dist/index.js +3 -3
  36. package/dist/types.d.ts +3 -0
  37. package/dist/utils/helper.d.ts +4 -1
  38. package/package.json +1 -1
  39. package/dist/chunks/helper-BYpahJAh.js +0 -63
@@ -1,14 +1,14 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLDisclosure.css';
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-kYdsi6-T.js";
3
+ import { defineComponent as S, 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-B-XC2_j4.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-CduBjI1N.js";
6
+ import { _ as h } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CMjcMLcy.js";
7
7
  import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
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";
8
+ import { CLColorVariants as D, CLSizes as R, CLTextTypes as V, CLIconSizes as p, CLIconNames as v, CLHeadingTypes as A, CLColors as M, CLButtonTypes as U } from "../../../index.js";
9
9
  import { d as F } from "../../../chunks/utils-BwiU4N7s.js";
10
10
  import { useEsc as j } from "../../../composables/useEsc.js";
11
- const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /* @__PURE__ */ x({
11
+ const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /* @__PURE__ */ S({
12
12
  name: "CLDisclosure",
13
13
  __name: "CLDisclosure",
14
14
  props: {
@@ -22,17 +22,16 @@ const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /*
22
22
  expandedIcon: { default: v.ChevronUp },
23
23
  heading: {},
24
24
  headingLevel: {},
25
- headingType: { default: p.Section },
25
+ headingType: { default: A.Section },
26
26
  iconAfter: { default: v.ChevronDown },
27
- iconAfterSize: { default: V.Medium },
28
27
  iconBefore: {},
29
- iconBeforeSize: {},
28
+ iconSize: { default: p.Medium },
30
29
  rounded: { type: Boolean, default: !0 },
31
30
  subHeading: {},
32
- subHeadingType: { default: R.Body },
31
+ subHeadingType: { default: V.Body },
33
32
  testId: { default: "clll-disclosure" },
34
- triggerButtonSize: { default: D.Medium },
35
- variant: { default: A.Soft }
33
+ triggerButtonSize: { default: R.Medium },
34
+ variant: { default: D.Soft }
36
35
  },
37
36
  setup(e) {
38
37
  const a = "clll-disclosure", t = e;
@@ -56,9 +55,9 @@ const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /*
56
55
  r && (f.value = r);
57
56
  }, m = () => {
58
57
  n.value ? n.value = !1 : n.value = !0;
59
- }, { clearEventListeners: S } = j({ escHandler: m, triggerElem: f });
58
+ }, { clearEventListeners: x } = j({ escHandler: m, triggerElem: f });
60
59
  return L(() => {
61
- S();
60
+ x();
62
61
  }), (r, J) => (i(), I("div", {
63
62
  class: o(d(C)),
64
63
  style: T(d(F)({ color: e.color, variant: e.variant })),
@@ -88,7 +87,7 @@ const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /*
88
87
  e.iconBefore ? (i(), l(d(h), {
89
88
  key: 0,
90
89
  name: e.iconBefore,
91
- size: e.iconBeforeSize
90
+ size: e.iconSize
92
91
  }, null, 8, ["name", "size"])) : s("", !0),
93
92
  e.heading ? (i(), l(d(N), {
94
93
  key: 1,
@@ -115,7 +114,7 @@ const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /*
115
114
  e.iconAfter ? (i(), l(d(h), {
116
115
  key: 3,
117
116
  name: d(n) ? e.expandedIcon : e.iconAfter,
118
- size: e.iconAfterSize
117
+ size: e.iconSize
119
118
  }, null, 8, ["name", "size"])) : s("", !0)
120
119
  ], 2)
121
120
  ]),
@@ -24,12 +24,10 @@ export interface CLDisclosureProps {
24
24
  headingType?: CLHeadingTypes;
25
25
  /** Set the icon to display when the disclosure is collapsed */
26
26
  iconAfter?: CLIconNames;
27
- /** Set the size of the icon after the heading text */
28
- iconAfterSize?: CLIconSizes;
29
27
  /** Set the icon to display before the heading text */
30
28
  iconBefore?: CLIconNames;
31
- /** Set the size of the icon before the heading text */
32
- iconBeforeSize?: CLIconSizes;
29
+ /** Set the size of icons displayed before and after the heading text */
30
+ iconSize?: CLIconSizes;
33
31
  /** Set the rounded state of the disclosure */
34
32
  rounded?: boolean;
35
33
  /** Set the text of the sub-heading displayed after the heading */
@@ -49,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
49
47
  rounded: boolean;
50
48
  testId: string;
51
49
  iconAfter: CLIconNames;
52
- iconAfterSize: CLIconSizes;
50
+ iconSize: CLIconSizes;
53
51
  bordered: boolean;
54
52
  compact: boolean;
55
53
  contentSpacing: boolean;
@@ -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-CduBjI1N.js";
6
+ import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CMjcMLcy.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-CduBjI1N.js";
8
+ import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CMjcMLcy.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-BPOoZ5_q.js";
11
- import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-kYdsi6-T.js";
10
+ import { _ as se } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BbXWiTde.js";
11
+ import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B-XC2_j4.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-CduBjI1N.js";
7
+ import { _ as O } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CMjcMLcy.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-kYdsi6-T.js";
5
+ import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B-XC2_j4.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-BPOoZ5_q.js";
3
+ import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-BbXWiTde.js";
4
4
  export {
5
5
  s as CLPill,
6
6
  s as default
@@ -8,6 +8,8 @@ export interface CLPillProps {
8
8
  elevated?: boolean;
9
9
  /** Sets the icon which is positioned before the Pill's label. */
10
10
  icon?: CLIconNames;
11
+ /** A boolean value which dictates whether icons should be filled. */
12
+ iconFilled?: boolean;
11
13
  /** The text to be displayed as the label. */
12
14
  label: string;
13
15
  /** A callback function to handle click events. */
@@ -25,5 +27,6 @@ declare const _default: import('vue').DefineComponent<CLPillProps, {}, {}, {}, {
25
27
  rounded: boolean;
26
28
  testId: string;
27
29
  elevated: boolean;
30
+ iconFilled: boolean;
28
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
32
  export default _default;
@@ -1,13 +1,13 @@
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-kYdsi6-T.js";
4
+ import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B-XC2_j4.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";
8
8
  import { useTheme as ne } from "../../../composables/useTheme.js";
9
9
  import { useEsc as le } from "../../../composables/useEsc.js";
10
- import { c as S, i as a } from "../../../chunks/helper-BYpahJAh.js";
10
+ import { c as S, i as a } from "../../../chunks/helper-oZuRnF9g.js";
11
11
  const se = () => {
12
12
  const { colors: t, darkMode: f } = ne(), _ = f.value ? k.Dark : k.Light, r = te({
13
13
  color: T.Neutral,
@@ -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-BDgJvHNE.js";
3
+ import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-sXIdl0uH.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-CMUfxGA3.js";
2
+ import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-FMOMJjMR.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-CMUfxGA3.js";
4
+ import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-FMOMJjMR.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({