@codeandfunction/callaloo 3.18.1 → 3.19.1

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 (56) 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-D3VM1cBn.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-yCzIBZpN.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-H04QzKpw.js} +1 -1
  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-Dec1U3lb.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-BlSpkXiA.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-DjIzyZ-T.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-OqAUY5iU.js +200 -0
  15. package/dist/chunks/{base-theme-Dp5l5R6W.js → base-theme--kHiV8Yr.js} +22 -22
  16. package/dist/chunks/{utils-BaOvsXrB.js → utils-BFZ8uebw.js} +1 -1
  17. package/dist/chunks/{utils-lYiECXLy.js → utils-BT2IMc_A.js} +1 -1
  18. package/dist/chunks/{utils-Cxr8PSje.js → utils-BwiU4N7s.js} +1 -1
  19. package/dist/chunks/{utils-c_6HU3mP.js → utils-C9p9W8oE.js} +1 -1
  20. package/dist/chunks/{utils-COeAI8Q8.js → utils-DtSQZ0tk.js} +1 -1
  21. package/dist/chunks/{utils-D3pF04kL.js → utils-DvIHDaPn.js} +1 -1
  22. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
  23. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  24. package/dist/components/CLIcon/CLIcon.js +1 -1
  25. package/dist/components/CLTable/CLTable.js +2 -2
  26. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  27. package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
  28. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +5 -5
  29. package/dist/components/Form/CLCheckbox/CLCheckbox.js +3 -3
  30. package/dist/components/Form/CLInput/CLInput.js +5 -5
  31. package/dist/components/Form/CLRadioButton/CLRadioButton.js +2 -2
  32. package/dist/components/Form/CLSelect/CLSelect.js +3 -3
  33. package/dist/components/Form/CLTextArea/CLTextArea.js +2 -2
  34. package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
  35. package/dist/components/Indicators/CLBanner/CLBanner.js +6 -6
  36. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  37. package/dist/components/Indicators/CLProgress/CLProgress.js +2 -2
  38. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  39. package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
  40. package/dist/components/Modals/CLModal/CLModal.js +3 -3
  41. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  42. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  43. package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
  44. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
  45. package/dist/components/Popups/CLToast/CLToast.css +1 -1
  46. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  47. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -2
  48. package/dist/components/Popups/utils.d.ts +11 -7
  49. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
  50. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +28 -29
  51. package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
  52. package/dist/components/Typography/CLText/CLText.js +1 -1
  53. package/dist/composables/useTheme.js +1 -1
  54. package/dist/types.d.ts +1 -3
  55. package/package.json +1 -1
  56. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-CwrZb7Fw.js +0 -187
@@ -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-H04QzKpw.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-Dec1U3lb.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 }) => {
@@ -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-H04QzKpw.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-Dec1U3lb.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-D3VM1cBn.js";
4
+ import { _ as $ } from "./CLIcon.vue_vue_type_style_index_0_lang-H04QzKpw.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",
@@ -0,0 +1,200 @@
1
+ import '../components/Popups/CLToast/CLToast.css';
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-D3VM1cBn.js";
4
+ import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-H04QzKpw.js";
5
+ import { _ as H } from "./CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
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
+ import { i as U, g as oe, b as ae } from "./helper-BYpahJAh.js";
8
+ import { useEsc as se } from "../composables/useEsc.js";
9
+ import { g as p } from "./utils-DtSQZ0tk.js";
10
+ import { useTheme as ie } from "../composables/useTheme.js";
11
+ const le = ({ color: o }) => {
12
+ const { colors: e, darkMode: m } = ie(), i = p({
13
+ color: o,
14
+ colors: e.value,
15
+ mode: m.value ? C.Light : C.Light,
16
+ variant: x.Soft
17
+ }), s = p({
18
+ color: g.Neutral,
19
+ colors: e.value,
20
+ mode: m.value ? C.Light : C.Dark,
21
+ variant: x.Text
22
+ });
23
+ return {
24
+ "--clll-toast-bg-color": m.value ? "white" : "#322F35",
25
+ // Text override variables
26
+ "--clll-toast-text-color": s?.textBody,
27
+ // Action button override variables
28
+ "--clll-toast-action-button-text-color": i?.text,
29
+ "--clll-toast-action-button-bg-color": i?.bg,
30
+ "--clll-toast-action-button-hover-color": i?.hover,
31
+ // Dismiss button override variables
32
+ "--clll-toast-dismiss-button-text-color": s?.text,
33
+ "--clll-toast-dismiss-button-bg-color": s?.bg,
34
+ "--clll-toast-dismiss-button-hover-color": s?.hover,
35
+ // Icon colors
36
+ "--clll-toast-icon-bg": i?.bg,
37
+ "--clll-toast-icon-color": i?.text,
38
+ "--clll-toast-theme-radius": "var(--clll-default-radius)"
39
+ };
40
+ }, ne = ["data-testid"], d = 300, t = "clll-toast", Te = /* @__PURE__ */ q({
41
+ name: "CLToast",
42
+ __name: "CLToast",
43
+ props: {
44
+ actionLabel: {},
45
+ borderRadius: {},
46
+ color: { default: g.Secondary },
47
+ dismissTimer: { default: 5 },
48
+ icon: {},
49
+ iconSize: { default: P.Small },
50
+ message: {},
51
+ onAction: {},
52
+ onDismiss: {},
53
+ position: { default: Y.TopRight },
54
+ rounded: { type: Boolean, default: !0 },
55
+ testId: { default: "clll-toast" },
56
+ title: {},
57
+ width: { default: "24rem" }
58
+ },
59
+ setup(o) {
60
+ const e = o, m = n(), i = n(!1), s = n(), L = n(0), l = n(!1), v = n(null), k = n(0), f = n(0), r = n(!1), Z = G(() => [
61
+ t,
62
+ e.borderRadius ? `${t}--${e.borderRadius}` : "",
63
+ e.dismissTimer ? `${t}--has-timer` : "",
64
+ e.icon ? `${t}--has-icon` : "",
65
+ e.message && !e.title ? `${t}--has-messageonly` : "",
66
+ i.value ? `${t}--mounted` : "",
67
+ e.onAction && e.actionLabel ? `${t}--has-action` : "",
68
+ e.rounded ? `${t}--rounded` : `${t}--box`,
69
+ e.title && !e.message ? `${t}--has-titleonly` : "",
70
+ e.title && e.message ? `${t}--has-titleandmessage` : "",
71
+ `${t}--${e.position}`
72
+ ]), b = () => {
73
+ v.value !== null && (clearTimeout(v.value), v.value = null), s.value?.stop();
74
+ }, V = () => {
75
+ !e.dismissTimer || l.value || (b(), k.value = Date.now(), f.value = e.dismissTimer * 1e3, r.value = !1, v.value = setTimeout(() => {
76
+ !r.value && !l.value && T();
77
+ }, f.value));
78
+ }, z = () => {
79
+ if (!e.dismissTimer || r.value || l.value) return;
80
+ r.value = !0;
81
+ const u = Date.now() - k.value;
82
+ f.value = Math.max(0, f.value - u), b();
83
+ }, w = () => {
84
+ !e.dismissTimer || !r.value || l.value || (r.value = !1, k.value = Date.now(), v.value = setTimeout(() => {
85
+ !r.value && !l.value && T();
86
+ }, f.value));
87
+ }, E = () => {
88
+ document.hidden ? z() : w();
89
+ }, T = () => {
90
+ l.value || (l.value = !0, i.value = !1, b(), s.value && s.value.start(d, (u) => {
91
+ Math.min(u, d) === d && (s.value?.stop(), e.onDismiss?.());
92
+ }), R());
93
+ };
94
+ J(() => e.dismissTimer, () => {
95
+ b(), l.value = !1, e.dismissTimer && e.dismissTimer > 0 && V();
96
+ }), K(() => {
97
+ U && (L.value = oe() + 1, s.value || (s.value = ae(), s.value.start(100, (u) => {
98
+ Math.min(u, 100) === 100 && (s.value?.stop(), i.value = !0, e.dismissTimer && s.value?.start(d, (j) => {
99
+ Math.min(j, d) === d && (s.value?.stop(), V());
100
+ }));
101
+ })), document.addEventListener("visibilitychange", E));
102
+ }), O(() => {
103
+ U && (b(), s.value = void 0, document.removeEventListener("visibilitychange", E)), i.value = !1, l.value || (l.value = !0, e.onDismiss?.());
104
+ });
105
+ const { clearEventListeners: R } = se({ escHandler: T });
106
+ return Q(() => {
107
+ R();
108
+ }), (u, _) => (h(), D("output", {
109
+ ref_key: "elem",
110
+ ref: m,
111
+ class: c(a(Z)),
112
+ "data-testid": o.testId,
113
+ style: W({ zIndex: a(L), "--clll-toast-width": o.width, ...a(le)({ color: o.color }) }),
114
+ onMouseenter: z,
115
+ onMouseleave: w,
116
+ onFocusin: z,
117
+ onFocusout: w
118
+ }, [
119
+ y("div", {
120
+ class: c(`${t}__body`)
121
+ }, [
122
+ y("div", {
123
+ class: c(`${t}__content`)
124
+ }, [
125
+ o.icon ? (h(), D("div", {
126
+ key: 0,
127
+ class: c(`${t}__icon`)
128
+ }, [
129
+ M(a(X), {
130
+ name: o.icon,
131
+ size: o.iconSize
132
+ }, null, 8, ["name", "size"])
133
+ ], 2)) : $("", !0),
134
+ y("div", {
135
+ class: c(`${t}__text`)
136
+ }, [
137
+ o.title ? (h(), A(a(H), {
138
+ key: 0,
139
+ color: a(g).Neutral,
140
+ "test-id": `${t}__title`,
141
+ type: a(I).Body,
142
+ bold: ""
143
+ }, {
144
+ default: S(() => [
145
+ B(N(o.title), 1)
146
+ ]),
147
+ _: 1
148
+ }, 8, ["color", "test-id", "type"])) : $("", !0),
149
+ o.message ? (h(), A(a(H), {
150
+ key: 1,
151
+ color: a(g).Neutral,
152
+ "test-id": `${t}__message`,
153
+ type: o.title ? a(I).Medium : a(I).Body
154
+ }, {
155
+ default: S(() => [
156
+ B(N(o.message), 1)
157
+ ]),
158
+ _: 1
159
+ }, 8, ["color", "test-id", "type"])) : $("", !0)
160
+ ], 2),
161
+ o.onAction && o.actionLabel ? (h(), D("div", {
162
+ key: 1,
163
+ class: c(`${t}__action-button`)
164
+ }, [
165
+ M(a(F), {
166
+ color: o.color,
167
+ "border-radius": o.borderRadius,
168
+ "on-click": o.onAction,
169
+ "test-id": `${t}__action-button`,
170
+ variant: a(x).Soft
171
+ }, {
172
+ default: S(() => [
173
+ B(N(o.actionLabel), 1)
174
+ ]),
175
+ _: 1
176
+ }, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
177
+ ], 2)) : $("", !0)
178
+ ], 2),
179
+ y("div", {
180
+ class: c(`${t}__dismiss-button`)
181
+ }, [
182
+ M(a(F), {
183
+ "aria-label": "Dismiss toast",
184
+ color: a(g).Neutral,
185
+ "border-radius": o.borderRadius,
186
+ "icon-before": a(te).Delete,
187
+ "icon-size": a(P).Tiny,
188
+ "on-click": T,
189
+ size: a(ee).Tiny,
190
+ "test-id": `${t}__dismiss-button`,
191
+ variant: a(x).Text
192
+ }, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
193
+ ], 2)
194
+ ], 2)
195
+ ], 46, ne));
196
+ }
197
+ });
198
+ export {
199
+ Te as _
200
+ };
@@ -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
  };
@@ -1,5 +1,5 @@
1
1
  import { CLMode as o, CLColors as s, CLColorVariants as a } from "../index.js";
2
- import { g as c } from "./utils-COeAI8Q8.js";
2
+ import { g as c } from "./utils-DtSQZ0tk.js";
3
3
  import { useTheme as m } from "../composables/useTheme.js";
4
4
  const d = ({ color: t = s.Neutral }) => {
5
5
  const { colors: r, darkMode: e } = m(), l = e.value ? o.Dark : o.Light;
@@ -1,5 +1,5 @@
1
1
  import { CLMode as e, CLColorVariants as i, CLColors as d } from "../index.js";
2
- import { g as p } from "./utils-COeAI8Q8.js";
2
+ import { g as p } from "./utils-DtSQZ0tk.js";
3
3
  import { useTheme as b } from "../composables/useTheme.js";
4
4
  const m = ({
5
5
  color: t = d.Primary,
@@ -1,5 +1,5 @@
1
1
  import { CLMode as t, CLColorVariants as n } from "../index.js";
2
- import { g as d } from "./utils-COeAI8Q8.js";
2
+ import { g as d } from "./utils-DtSQZ0tk.js";
3
3
  import { useTheme as u } from "../composables/useTheme.js";
4
4
  const m = ({ color: e, variant: o }) => {
5
5
  const { colors: s, darkMode: c } = u(), a = c.value ? t.Dark : t.Light, l = o === n.Ghost, r = d({
@@ -1,5 +1,5 @@
1
1
  import { CLMode as e, CLColors as t, CLColorVariants as n } from "../index.js";
2
- import { g as c } from "./utils-COeAI8Q8.js";
2
+ import { g as c } from "./utils-DtSQZ0tk.js";
3
3
  import { useTheme as l } from "../composables/useTheme.js";
4
4
  const g = () => {
5
5
  const { darkMode: o } = l();
@@ -1,4 +1,4 @@
1
- import { C as v } from "./base-theme-Dp5l5R6W.js";
1
+ import { C as v } from "./base-theme--kHiV8Yr.js";
2
2
  const b = ({
3
3
  color: e,
4
4
  colors: i,
@@ -1,5 +1,5 @@
1
1
  import { CLMode as l, CLColorVariants as s } from "../index.js";
2
- import { g as u } from "./utils-COeAI8Q8.js";
2
+ import { g as u } from "./utils-DtSQZ0tk.js";
3
3
  import { useTheme as d } from "../composables/useTheme.js";
4
4
  const h = ({ color: e }) => {
5
5
  const { colors: r, darkMode: a } = d(), n = a.value ? l.Dark : l.Light, o = u({
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLA11yButton.css';
3
- import { _ as t } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-sAuatKyL.js";
3
+ import { _ as t } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-fn1ix3QX.js";
4
4
  export {
5
5
  t as CLA11yButton,
6
6
  t as default
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLButton.css';
3
- import { _ as t } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js";
3
+ import { _ as t } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
4
4
  export {
5
5
  t as CLButton,
6
6
  t as default
@@ -1,6 +1,6 @@
1
1
  import '../../assets/core.css';
2
2
  import './CLIcon.css';
3
- import { _ as o } from "../../chunks/CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
3
+ import { _ as o } from "../../chunks/CLIcon.vue_vue_type_style_index_0_lang-H04QzKpw.js";
4
4
  export {
5
5
  o as CLIcon,
6
6
  o as default
@@ -2,9 +2,9 @@ import '../../assets/core.css';
2
2
  import './CLTable.css';
3
3
  import { defineComponent as i, computed as b, createElementBlock as o, openBlock as a, normalizeStyle as p, normalizeClass as s, unref as d, createElementVNode as h, createCommentVNode as y, renderSlot as r, Fragment as k, renderList as L, createVNode as T, withCtx as v } from "vue";
4
4
  import { CLMode as C, CLColorVariants as B, CLColors as w, CLTableTypes as g, CLTextTypes as H } from "../../index.js";
5
- import { g as N } from "../../chunks/utils-COeAI8Q8.js";
5
+ import { g as N } from "../../chunks/utils-DtSQZ0tk.js";
6
6
  import { useTheme as x } from "../../composables/useTheme.js";
7
- import { _ as V } from "../../chunks/CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
7
+ import { _ as V } from "../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
8
8
  const A = () => {
9
9
  const { colors: l, darkMode: t } = x(), e = t.value ? C.Dark : C.Light, n = N({
10
10
  color: w.Neutral,
@@ -1,6 +1,6 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLCard.css';
3
- import { _ as r } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-lzqVCrJ3.js";
3
+ import { _ as r } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-yCzIBZpN.js";
4
4
  export {
5
5
  r as CLCard,
6
6
  r as default
@@ -1,8 +1,8 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLCarousel.css';
3
3
  import { defineComponent as re, computed as u, createElementBlock as c, openBlock as s, Fragment as F, createCommentVNode as C, unref as e, normalizeClass as l, renderList as me, createBlock as he, createElementVNode as y, createVNode as x, withCtx as X, createTextVNode as Y, toDisplayString as q, useCssVars as be, ref as r, onMounted as we, onUnmounted as pe, watch as Ce, renderSlot as Z, nextTick as se } from "vue";
4
- import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js";
5
- import { _ as ce } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
4
+ import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
5
+ import { _ as ce } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
6
6
  import { CLPaginationType as $, CLColorVariants as B, CLSizes as W, CLIconSizes as D, CLIconNames as O, CLTextTypes as xe, CLAlign as A, CLOrder as R, CLColors as ye } from "../../../index.js";
7
7
  import { i as H, d as Pe, e as $e } from "../../../chunks/helper-BYpahJAh.js";
8
8
  import { useHasSlotContent as Te } from "../../../composables/useHasSlotContent.js";
@@ -1,12 +1,12 @@
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-iaJCnlnS.js";
5
- import { _ as N } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DSJj-OSE.js";
6
- import { _ as h } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
7
- import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
4
+ import { _ as E } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
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-H04QzKpw.js";
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
- import { d as F } from "../../../chunks/utils-Cxr8PSje.js";
9
+ import { d as F } from "../../../chunks/utils-BwiU4N7s.js";
10
10
  import { useEsc as j } from "../../../composables/useEsc.js";
11
11
  const q = ["data-testid"], G = ["id", "aria-labelledby", "aria-hidden"], _ = /* @__PURE__ */ x({
12
12
  name: "CLDisclosure",
@@ -2,9 +2,9 @@ import '../../../assets/core.css';
2
2
  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
- import { _ as R, c as D, a as X } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-yVPk0TXA.js";
6
- import { _ as w } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
7
- import { _ as E } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
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-H04QzKpw.js";
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({
10
10
  name: "CLCheckbox",
@@ -2,13 +2,13 @@ import '../../../assets/core.css';
2
2
  import './CLInput.css';
3
3
  import '../../../assets/shared/form-utilities.css';
4
4
  import { defineComponent as v, computed as I, createElementBlock as b, openBlock as n, normalizeClass as x, unref as a, createBlock as m, Fragment as M, createTextVNode as q, toDisplayString as R, createVNode as K, ref as w, watch as T, createCommentVNode as g, mergeModels as N, useTemplateRef as Q, useModel as W, withCtx as Y, createElementVNode as L, normalizeStyle as Z, withDirectives as _, vModelDynamic as ee, isRef as le } from "vue";
5
- import { _ as te, i as ae, a as ie } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-yVPk0TXA.js";
6
- import { _ as oe } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-DU9hc287.js";
5
+ import { _ as te, i as ae, a as ie } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
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-D60lhyDD.js";
8
+ import { _ as X } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-H04QzKpw.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-DGFL7WdJ.js";
11
- import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js";
10
+ import { _ as se } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-DjIzyZ-T.js";
11
+ import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
12
12
  const de = ["data-testid"], E = /* @__PURE__ */ v({
13
13
  name: "CLInputPrefix",
14
14
  __name: "CLInputPrefix",
@@ -2,8 +2,8 @@ import '../../../assets/core.css';
2
2
  import './CLRadioButton.css';
3
3
  import '../../../assets/shared/form-utilities.css';
4
4
  import { defineComponent as k, mergeModels as x, useModel as T, useTemplateRef as h, computed as f, createBlock as m, openBlock as c, withCtx as $, createElementVNode as n, createCommentVNode as y, normalizeStyle as R, normalizeClass as d, unref as u, withDirectives as q, vModelRadio as S, createTextVNode as V, toDisplayString as z } from "vue";
5
- import { _ as M, c as F, a as N } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-yVPk0TXA.js";
6
- import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
5
+ import { _ as M, c as F, a as N } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
6
+ import { _ as w } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
7
7
  import { CLSizes as s, CLTextTypes as i, CLColorVariants as D, CLColors as I } from "../../../index.js";
8
8
  const X = ["data-testid"], E = ["for"], H = ["id", "aria-label", "checked", "disabled", "name", "value", "required"], G = /* @__PURE__ */ k({
9
9
  name: "CLRadioButton",
@@ -2,9 +2,9 @@ import '../../../assets/core.css';
2
2
  import './CLSelect.css';
3
3
  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
- import { _ as D, s as w, a as E } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-yVPk0TXA.js";
6
- import { _ as H } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-DU9hc287.js";
7
- import { _ as O } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
5
+ import { _ as D, s as w, a as E } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
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-H04QzKpw.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",