@codeandfunction/callaloo 3.20.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 (35) 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-C8dDRXYZ.js +263 -0
  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.css +1 -1
  13. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  14. package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -1
  15. package/dist/components/Containers/CLCarousel/CLCarousel.js +377 -303
  16. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +3 -0
  17. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +2 -2
  18. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  19. package/dist/components/Form/CLInput/CLInput.js +3 -3
  20. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  21. package/dist/components/Indicators/CLBanner/CLBanner.js +33 -31
  22. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +1 -1
  23. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  24. package/dist/components/Modals/CLModal/CLModal.js +1 -1
  25. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  26. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  27. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  28. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
  29. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  30. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +24 -22
  31. package/dist/components/Providers/CLToastProvider/CLToastProvider.vue.d.ts +5 -1
  32. package/package.json +1 -1
  33. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CJUxbMzL.js +0 -249
  34. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-BBPM6q0l.js +0 -85
  35. 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",
@@ -1,14 +1,14 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLBanner.css';
3
- import { defineComponent as L, computed as h, createBlock as l, openBlock as n, unref as a, withCtx as c, createElementVNode as u, normalizeStyle as v, normalizeClass as d, createElementBlock as m, createCommentVNode as o, createTextVNode as b, toDisplayString as s, createVNode as y } from "vue";
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";
9
- import { CLColorVariants as r, CLColors as z, CLAlign as D, CLHeadingTypes as T, CLTextTypes as N, CLSizes as w, CLIconSizes as V, CLIconNames as A } from "../../../index.js";
10
- import { a as I } from "../../../chunks/utils-BT2IMc_A.js";
11
- const R = ["data-testid"], O = /* @__PURE__ */ L({
9
+ import { CLColorVariants as d, CLColors as z, CLAlign as D, CLHeadingTypes as T, CLTextTypes as N, CLSizes as R, CLIconSizes as w, CLIconNames as V } from "../../../index.js";
10
+ import { a as A } from "../../../chunks/utils-BT2IMc_A.js";
11
+ const I = ["data-testid"], O = /* @__PURE__ */ L({
12
12
  name: "CLBanner",
13
13
  __name: "CLBanner",
14
14
  props: {
@@ -28,14 +28,14 @@ const R = ["data-testid"], O = /* @__PURE__ */ L({
28
28
  testId: { default: "clll-banner" },
29
29
  title: {},
30
30
  width: { default: "100%" },
31
- variant: { default: r.Soft }
31
+ variant: { default: d.Soft }
32
32
  },
33
33
  setup(e) {
34
34
  const i = e, t = "clll-banner", k = h(() => [
35
35
  t,
36
36
  i.actionLabel ? `${t}--actionable` : "",
37
37
  i.busy ? `${t}--busy` : `${t}--ready`,
38
- i.bordered && i.variant !== r.Ghost ? `${t}--bordered` : "",
38
+ i.bordered && i.variant !== d.Ghost ? `${t}--bordered` : "",
39
39
  i.borderRadius ? `${t}--${i.borderRadius}` : "",
40
40
  i.onDismiss ? `${t}--dismissable` : "",
41
41
  `${t}--${i.color}--${i.variant}`,
@@ -47,37 +47,39 @@ const R = ["data-testid"], O = /* @__PURE__ */ L({
47
47
  enabled: !!(e.onClick && e.ariaLabel),
48
48
  rounded: e.rounded
49
49
  }, {
50
- default: c(() => [
50
+ default: s(() => [
51
51
  u("div", {
52
- class: d(a(k)),
52
+ class: r(a(k)),
53
53
  "data-testid": e.testId,
54
- style: v({ ...a(I)({ color: e.color, variant: e.variant }), width: e.width, height: e.height })
54
+ style: v({ ...a(A)({ color: e.color, variant: e.variant }), width: e.width, height: e.height })
55
55
  }, [
56
56
  u("div", {
57
- class: d(`${t}__content`)
57
+ class: r(`${t}__content`)
58
58
  }, [
59
59
  u("div", {
60
- class: d(`${t}__nested_content`)
60
+ class: r(`${t}__nested_content`)
61
61
  }, [
62
62
  e.busy ? (n(), l(a(C), {
63
63
  key: 0,
64
+ "border-radius": e.borderRadius,
64
65
  height: "28px",
65
66
  "test-id": `${t}__skeleton-title`
66
- }, null, 8, ["test-id"])) : o("", !0),
67
+ }, null, 8, ["border-radius", "test-id"])) : o("", !0),
67
68
  e.busy ? (n(), l(a(C), {
68
69
  key: 1,
70
+ "border-radius": e.borderRadius,
69
71
  width: "70%",
70
72
  height: "20px",
71
73
  "test-id": `${t}__skeleton-message`
72
- }, null, 8, ["test-id"])) : o("", !0),
74
+ }, null, 8, ["border-radius", "test-id"])) : o("", !0),
73
75
  e.title && !e.busy ? (n(), l(a(S), {
74
76
  key: 2,
75
77
  align: e.align,
76
78
  color: e.color,
77
79
  type: a(T).Section
78
80
  }, {
79
- default: c(() => [
80
- b(s(e.title), 1)
81
+ default: s(() => [
82
+ m(c(e.title), 1)
81
83
  ]),
82
84
  _: 1
83
85
  }, 8, ["align", "color", "type"])) : o("", !0),
@@ -87,53 +89,53 @@ const R = ["data-testid"], O = /* @__PURE__ */ L({
87
89
  color: e.color,
88
90
  type: a(N).Summary
89
91
  }, {
90
- default: c(() => [
91
- b(s(e.message), 1)
92
+ default: s(() => [
93
+ m(c(e.message), 1)
92
94
  ]),
93
95
  _: 1
94
96
  }, 8, ["align", "color", "type"])) : o("", !0)
95
97
  ], 2),
96
- e.onAction && e.actionLabel ? (n(), m("div", {
98
+ e.onAction && e.actionLabel ? (n(), b("div", {
97
99
  key: 0,
98
- class: d(`${t}__action-button`)
100
+ class: r(`${t}__action-button`)
99
101
  }, [
100
102
  y(a($), {
101
103
  color: e.color,
102
104
  "border-radius": e.borderRadius,
103
105
  "on-click": e.onAction,
104
106
  "test-id": `${t}__action-button`,
105
- variant: e.variant === a(r).Solid ? a(r).Soft : a(r).Solid
107
+ variant: e.variant === a(d).Solid ? a(d).Soft : a(d).Solid
106
108
  }, {
107
- default: c(() => [
108
- b(s(e.actionLabel), 1)
109
+ default: s(() => [
110
+ m(c(e.actionLabel), 1)
109
111
  ]),
110
112
  _: 1
111
113
  }, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
112
114
  ], 2)) : o("", !0)
113
115
  ], 2),
114
- e.onDismiss ? (n(), m("div", {
116
+ e.onDismiss ? (n(), b("div", {
115
117
  key: 0,
116
- class: d(`${t}__dismiss-button`)
118
+ class: r(`${t}__dismiss-button`)
117
119
  }, [
118
120
  y(a($), {
119
121
  "aria-label": "Dismiss banner",
120
122
  color: e.color,
121
- "icon-before": a(A).Delete,
122
- "icon-size": a(V).Tiny,
123
+ "icon-before": a(V).Delete,
124
+ "icon-size": a(w).Tiny,
123
125
  "on-click": e.onDismiss,
124
- size: a(w).Tiny,
126
+ size: a(R).Tiny,
125
127
  "test-id": `${t}__dismiss-button`,
126
128
  variant: e.variant
127
129
  }, null, 8, ["color", "icon-before", "icon-size", "on-click", "size", "test-id", "variant"])
128
130
  ], 2)) : o("", !0),
129
- e.onClick && e.ariaLabel ? (n(), m("button", {
131
+ e.onClick && e.ariaLabel ? (n(), b("button", {
130
132
  key: 1,
131
133
  class: "sr-only",
132
134
  "data-expand-click-area": "",
133
135
  onClick: f[0] || (f[0] = //@ts-ignore
134
136
  (...g) => e.onClick && e.onClick(...g))
135
- }, s(e.ariaLabel), 1)) : o("", !0)
136
- ], 14, R)
137
+ }, c(e.ariaLabel), 1)) : o("", !0)
138
+ ], 14, I)
137
139
  ]),
138
140
  _: 1
139
141
  }, 8, ["color", "enabled", "rounded"]));
@@ -12,7 +12,7 @@ export interface CLBannerProps {
12
12
  borderRadius?: CLBorderRadius;
13
13
  /** A `boolean` value which dictates the busy state of the Banner. When set to `true`, it utilizes the `<CLSkeleton />` component. */
14
14
  busy?: boolean;
15
- /** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
15
+ /** Sets the color of the Banner. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
16
16
  color?: CLColors;
17
17
  /** Sets the height of the Banner, it's default value is `auto`. */
18
18
  height?: string;
@@ -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-CJUxbMzL.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,41 +1,43 @@
1
1
  import '../../../assets/core.css';
2
- import { defineComponent as C, ref as i, provide as L, createElementBlock as g, openBlock as p, createBlock as k, createCommentVNode as z, renderSlot as B, unref as S } from "vue";
3
- import { _ as A } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-DIi8ikHj.js";
4
- const $ = { class: "clll-toast-provider" }, E = /* @__PURE__ */ C({
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-BH6Tnr-h.js";
4
+ const $ = { class: "clll-toast-provider" }, E = /* @__PURE__ */ L({
5
5
  name: "CLToastProvider",
6
6
  __name: "CLToastProvider",
7
7
  props: {
8
+ borderRadius: {},
8
9
  dismissTimer: {},
9
10
  position: {}
10
11
  },
11
- setup(h) {
12
- const m = h, t = i(), l = i(), s = i(), a = i(), c = i(), n = i(), v = i(), u = i(), d = i(), r = i(), o = i(!1), f = () => {
13
- t.value = void 0, l.value = void 0, s.value = void 0, a.value = void 0, c.value = void 0, n.value = void 0, v.value = void 0, u.value = void 0, d.value = void 0, r.value = void 0;
14
- }, b = (e) => {
15
- f(), t.value = e.actionLabel, l.value = e.color, s.value = e.dismissTimer ?? m.dismissTimer, a.value = e.icon, c.value = e.iconSize, n.value = e.message, v.value = e.onAction, u.value = e.position ?? m.position, d.value = e.title, r.value = e.width, o.value = !0;
12
+ setup(p) {
13
+ const a = p, t = i(), l = i(), s = i(), v = i(), c = i(), u = i(), n = i(), d = i(), r = i(), m = i(), f = i(), o = i(!1), b = () => {
14
+ t.value = void 0, l.value = void 0, s.value = void 0, v.value = void 0, c.value = void 0, u.value = void 0, n.value = void 0, d.value = void 0, r.value = void 0, m.value = void 0, f.value = void 0;
15
+ }, C = (e) => {
16
+ b(), t.value = e.actionLabel, l.value = e.color, s.value = e.borderRadius ?? a.borderRadius, v.value = e.dismissTimer ?? a.dismissTimer, c.value = e.icon, u.value = e.iconSize, n.value = e.message, d.value = e.onAction, r.value = e.position ?? a.position, m.value = e.title, f.value = e.width, o.value = !0;
16
17
  }, _ = () => {
17
- o.value = !1, f();
18
+ o.value = !1, b();
18
19
  };
19
- return L("clll-toast", {
20
+ return g("clll-toast", {
20
21
  visible: o,
21
- showToast: b,
22
+ showToast: C,
22
23
  hideToast: _
23
- }), (e, x) => (p(), g("div", $, [
24
- o.value ? (p(), k(S(A), {
24
+ }), (e, x) => (h(), k("div", $, [
25
+ o.value ? (h(), z(S(A), {
25
26
  key: 0,
26
27
  "action-label": t.value,
28
+ "border-radius": s.value,
27
29
  color: l.value,
28
- "dismiss-timer": s.value,
29
- icon: a.value,
30
- "icon-size": c.value,
30
+ "dismiss-timer": v.value,
31
+ icon: c.value,
32
+ "icon-size": u.value,
31
33
  message: n.value,
32
- "on-action": v.value,
34
+ "on-action": d.value,
33
35
  "on-dismiss": _,
34
- position: u.value,
35
- title: d.value,
36
- width: r.value
37
- }, null, 8, ["action-label", "color", "dismiss-timer", "icon", "icon-size", "message", "on-action", "position", "title", "width"])) : z("", !0),
38
- B(e.$slots, "default")
36
+ position: r.value,
37
+ title: m.value,
38
+ width: f.value
39
+ }, null, 8, ["action-label", "border-radius", "color", "dismiss-timer", "icon", "icon-size", "message", "on-action", "position", "title", "width"])) : B("", !0),
40
+ R(e.$slots, "default")
39
41
  ]));
40
42
  }
41
43
  });
@@ -1,6 +1,10 @@
1
- import { CLToastPosition } from '../../../index.ts';
1
+ import { CLBorderRadius, CLToastPosition } from '../../../index.ts';
2
2
  interface Props {
3
+ /** The border radius size */
4
+ borderRadius?: CLBorderRadius;
5
+ /** Time in seconds e.g 5 = 5 seconds */
3
6
  dismissTimer?: number;
7
+ /** Sets the position of the toast */
4
8
  position?: CLToastPosition;
5
9
  }
6
10
  declare function __VLS_template(): {
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "ui components",
18
18
  "vuejs"
19
19
  ],
20
- "version": "3.20.0",
20
+ "version": "3.22.0",
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "scripts": {
@@ -1,249 +0,0 @@
1
- import '../components/Containers/CLCard/CLCard.css';
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-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
- 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-BwiU4N7s.js";
9
- import { useHasSlotContent as ae } from "../composables/useHasSlotContent.js";
10
- const le = ["data-testid", "tabindex"], ie = ["alt", "loading", "src"], ne = ["alt", "loading", "src"], de = ["aria-label", "href", "target"], ye = /* @__PURE__ */ I({
11
- name: "CLCard",
12
- __name: "CLCard",
13
- props: {
14
- active: { type: Boolean, default: !1 },
15
- align: { default: _.Left },
16
- ariaLabel: {},
17
- borderRadius: {},
18
- bordered: { type: Boolean, default: !0 },
19
- busy: { type: Boolean, default: !1 },
20
- byline: {},
21
- color: { default: p.Neutral },
22
- compact: { type: Boolean, default: !1 },
23
- elevated: { type: Boolean, default: !1 },
24
- forwardRef: {},
25
- height: { default: "auto" },
26
- href: {},
27
- image: {},
28
- imageAltText: { default: "" },
29
- imageHeight: { default: "auto" },
30
- imageLoading: { default: Z.Eager },
31
- imageOrder: {},
32
- imageWidth: { default: "auto" },
33
- onClick: {},
34
- overflow: { default: Y.Hidden },
35
- padded: { type: Boolean, default: !0 },
36
- rounded: { type: Boolean, default: !0 },
37
- target: { default: X.Self },
38
- testId: { default: "clll-card" },
39
- title: {},
40
- titleHLevel: { default: U.H2 },
41
- titleType: { default: Q.SubSection },
42
- truncateTitle: { type: Boolean, default: !1 },
43
- type: { default: P.Medium },
44
- variant: { default: O.Soft },
45
- width: { default: "auto" }
46
- },
47
- setup(e) {
48
- const t = "clll-card", a = e, L = ae(), w = z(), $ = v(), T = v(), R = ["a", "button"], m = v(), V = D(() => [
49
- t,
50
- `${t}--${a.type}`,
51
- `${t}--${a.color}-${a.variant}`,
52
- `${t}--${a.variant}`,
53
- `${t}--align-${a.align}`,
54
- a.rounded ? `${t}--rounded` : `${t}--box`,
55
- a.bordered ? `${t}--bordered` : "",
56
- a.borderRadius ? `${t}--${a.borderRadius}` : "",
57
- a.busy ? `${t}--busy` : `${t}--ready`,
58
- a.compact ? `${t}--compact` : `${t}--no-compact`,
59
- a.title || a.byline ? `${t}--has-header` : `${t}--no-header`,
60
- $.value ? `${t}--has-heading` : `${t}--no-heading`,
61
- L.value ? `${t}--has-content` : `${t}--no-content`,
62
- T.value ? `${t}--has-footer` : `${t}--no-footer`,
63
- a.image ? `${t}--has-image` : `${t}--has-no-image`,
64
- a.imageOrder ? `${t}--image-${a.imageOrder}` : "",
65
- a.active ? `${t}--active` : `${t}--inactive`,
66
- a.onClick ? `${t}--has-link` : "",
67
- a.truncateTitle ? `${t}--has-truncated-title` : "",
68
- a.elevated ? `${t}--elevated` : "",
69
- a.overflow ? `${t}--overflow-${a.overflow}` : "",
70
- a.padded ? "" : `${t}--no-padding`
71
- ]), H = (o) => {
72
- if (a.busy || !a.onClick) return;
73
- const { target: s } = o, f = s ? s.closest("a,button") : void 0, x = [
74
- ...m.value?.querySelectorAll("[data-expand-click-area]") ?? []
75
- ];
76
- if (x.length) {
77
- const S = x[0], W = f ? R.includes(f.tagName.toLowerCase()) : null;
78
- !f && S !== o.target && !W && S.click();
79
- }
80
- };
81
- return F(async () => {
82
- await K(), m.value && a.forwardRef?.(m.value), $.value = w?.heading, T.value = w?.footer;
83
- }), (o, s) => (i(), r("div", {
84
- ref_key: "refExpandedArea",
85
- ref: m,
86
- class: n(l(V)),
87
- style: k({ ...l(te)({ color: e.color, variant: e.variant }), width: e.width, height: e.height, overflow: e.overflow }),
88
- "data-testid": e.testId,
89
- tabindex: e.onClick ? 0 : void 0,
90
- onClick: H,
91
- onKeyup: M(H, ["enter"])
92
- }, [
93
- e.image && (e.imageOrder === l(N).Before || !e.imageOrder) ? (i(), r("div", {
94
- key: 0,
95
- class: n(`${t}__image`),
96
- style: k({ width: e.imageWidth, height: e.imageHeight })
97
- }, [
98
- B(q(l(h), {
99
- width: e.imageWidth,
100
- height: e.imageHeight,
101
- rounded: !1
102
- }, null, 8, ["width", "height"]), [
103
- [A, e.busy]
104
- ]),
105
- B(u("img", {
106
- alt: e.imageAltText,
107
- class: n(`${t}__image__elem`),
108
- loading: e.imageLoading,
109
- src: e.image
110
- }, null, 10, ie), [
111
- [A, !e.busy]
112
- ])
113
- ], 6)) : d("", !0),
114
- u("div", {
115
- class: n(`${t}__content`)
116
- }, [
117
- u("div", {
118
- class: n(`${t}__header`)
119
- }, [
120
- e.busy ? (i(), c(l(h), {
121
- key: 0,
122
- height: "28px"
123
- })) : d("", !0),
124
- e.busy ? (i(), c(l(h), {
125
- key: 1,
126
- width: "70%",
127
- height: "16px"
128
- })) : d("", !0),
129
- !e.onClick && !e.href ? (i(), r(G, { key: 2 }, [
130
- g(o.$slots, "heading"),
131
- e.title && !e.busy ? (i(), c(l(E), {
132
- key: 0,
133
- align: e.align,
134
- class: n(`${t}__heading`),
135
- color: e.color,
136
- level: e.titleHLevel,
137
- truncate: e.truncateTitle,
138
- type: e.titleType
139
- }, {
140
- default: y(() => [
141
- b(C(e.title), 1)
142
- ]),
143
- _: 1
144
- }, 8, ["align", "class", "color", "level", "truncate", "type"])) : d("", !0)
145
- ], 64)) : e.title || l($) && (e.onClick || e.href) ? (i(), c(l(j), {
146
- key: 3,
147
- "aria-label": e.ariaLabel,
148
- color: e.color,
149
- href: e.href,
150
- target: e.target,
151
- "on-click": e.onClick,
152
- "data-expand-click-area": ""
153
- }, {
154
- default: y(() => [
155
- g(o.$slots, "heading"),
156
- e.title && !e.busy ? (i(), c(l(E), {
157
- key: 0,
158
- align: e.align,
159
- class: n(`${t}__heading`),
160
- color: e.color,
161
- level: e.titleHLevel,
162
- truncate: e.truncateTitle,
163
- type: e.titleType
164
- }, {
165
- default: y(() => [
166
- b(C(e.title), 1)
167
- ]),
168
- _: 1
169
- }, 8, ["align", "class", "color", "level", "truncate", "type"])) : d("", !0)
170
- ]),
171
- _: 3
172
- }, 8, ["aria-label", "color", "href", "target", "on-click"])) : d("", !0),
173
- g(o.$slots, "byline"),
174
- e.byline && !e.busy ? (i(), c(l(J), {
175
- key: 4,
176
- align: e.align,
177
- class: n(`${t}__byline`),
178
- color: e.color,
179
- type: l(ee).Small
180
- }, {
181
- default: y(() => [
182
- b(C(e.byline), 1)
183
- ]),
184
- _: 1
185
- }, 8, ["align", "class", "color", "type"])) : d("", !0)
186
- ], 2),
187
- u("div", {
188
- class: n(`${t}__slot`)
189
- }, [
190
- u("div", {
191
- ref: "slot-content",
192
- class: n([`${t}__slot-content`, { busy: e.busy }])
193
- }, [
194
- l(L) && e.busy ? (i(), c(l(h), {
195
- key: 0,
196
- width: "100%",
197
- height: "100%"
198
- })) : d("", !0),
199
- u("div", null, [
200
- g(o.$slots, "default")
201
- ])
202
- ], 2)
203
- ], 2),
204
- u("div", {
205
- class: n(`${t}__footer`)
206
- }, [
207
- g(o.$slots, "footer")
208
- ], 2)
209
- ], 2),
210
- e.image && e.imageOrder === l(N).After ? (i(), r("div", {
211
- key: 1,
212
- class: n(`${t}__image`),
213
- style: k({ width: e.imageWidth, height: e.imageHeight })
214
- }, [
215
- e.busy ? (i(), c(l(h), {
216
- key: 0,
217
- width: e.imageWidth,
218
- height: e.imageHeight,
219
- rounded: !1
220
- }, null, 8, ["width", "height"])) : d("", !0),
221
- g(o.$slots, "image"),
222
- e.busy ? d("", !0) : (i(), r("img", {
223
- key: 1,
224
- alt: e.imageAltText,
225
- class: n(`${t}__image__elem`),
226
- loading: e.imageLoading,
227
- src: e.image
228
- }, null, 10, ne))
229
- ], 6)) : d("", !0),
230
- !e.title && (e.onClick || e.href) ? (i(), r("a", {
231
- key: 2,
232
- "aria-label": e.ariaLabel,
233
- class: "sr-only",
234
- href: e.href,
235
- target: e.target,
236
- "data-expand-click-area": "",
237
- onClick: s[0] || (s[0] = //@ts-ignore
238
- (...f) => e.onClick && e.onClick(...f))
239
- }, null, 8, de)) : d("", !0),
240
- e.onClick && e.variant !== l(O).Ghost ? (i(), r("div", {
241
- key: 3,
242
- class: n(`${t}__hover-elem`)
243
- }, null, 2)) : d("", !0)
244
- ], 46, le));
245
- }
246
- });
247
- export {
248
- ye as _
249
- };