@codeandfunction/callaloo 3.16.5 → 3.16.7

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 (43) hide show
  1. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js → CLButton.vue_vue_type_style_index_0_lang-CQipGQ26.js} +1 -1
  2. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-CAjsSjd9.js +248 -0
  3. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-R0Nhlutc.js +84 -0
  4. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BDL4xcfJ.js → CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.js} +1 -1
  5. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-C_BQCWeg.js → CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js} +1 -1
  6. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DwNvvX0v.js → CLPill.vue_vue_type_style_index_0_lang-B1MuCUnW.js} +2 -2
  7. package/dist/chunks/{CLProgress.vue_vue_type_style_index_0_lang-Mikbgpn2.js → CLProgress.vue_vue_type_style_index_0_lang-DVJDbuDr.js} +21 -24
  8. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang--LtiFHSO.js +30 -0
  9. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-C6gOJx7A.js → CLToast.vue_vue_type_style_index_0_lang-Bhat3Q9Z.js} +53 -56
  10. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  11. package/dist/components/CLIcon/CLIcon.css +1 -1
  12. package/dist/components/CLIcon/CLIcon.js +1 -1
  13. package/dist/components/CLTable/CLTable.css +1 -1
  14. package/dist/components/CLTable/CLTable.js +72 -74
  15. package/dist/components/Containers/CLCard/CLCard.css +1 -1
  16. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  17. package/dist/components/Containers/CLCarousel/CLCarousel.js +1 -1
  18. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +2 -2
  19. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  20. package/dist/components/Form/CLInput/CLInput.css +1 -1
  21. package/dist/components/Form/CLInput/CLInput.js +3 -3
  22. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  23. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -1
  24. package/dist/components/Indicators/CLBanner/CLBanner.js +52 -56
  25. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  26. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -1
  27. package/dist/components/Indicators/CLProgress/CLProgress.js +1 -1
  28. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -1
  29. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
  30. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  31. package/dist/components/Modals/CLModal/CLModal.js +69 -72
  32. package/dist/components/Navigation/CLLink/CLLink.js +1 -1
  33. package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
  34. package/dist/components/Navigation/CLNavSection/CLNavSection.js +1 -1
  35. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -1
  36. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +199 -202
  37. package/dist/components/Popups/CLToast/CLToast.css +1 -1
  38. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  39. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-Bj9WF_mX.js +0 -253
  42. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang--1FTkRVd.js +0 -87
  43. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-Csb9YnTI.js +0 -34
@@ -1,17 +1,17 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLModal.css';
3
- import { defineComponent as W, useCssVars as F, unref as l, computed as _, useTemplateRef as U, useSlots as Z, ref as j, watch as q, onMounted as A, onBeforeUnmount as G, createElementBlock as L, createCommentVNode as f, openBlock as v, normalizeStyle as g, normalizeClass as s, createElementVNode as d, createBlock as B, renderSlot as h, withCtx as J, createTextVNode as K, toDisplayString as P } from "vue";
4
- import { _ as Q } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-B4xTt-xw.js";
5
- import { _ as X } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
6
- import { CLMode as k, CLColors as T, CLColorVariants as R, CLBorderRadius as Y, CLIconSizes as ee, CLIconNames as oe, CLHeadingTypes as te } from "../../../index.js";
7
- import { g as ne } from "../../../chunks/utils-CS9Gz4oX.js";
8
- import { useTheme as le } from "../../../composables/useTheme.js";
9
- import { useEsc as se } from "../../../composables/useEsc.js";
3
+ import { defineComponent as W, useTemplateRef as F, useSlots as U, ref as Z, computed as _, watch as j, onMounted as q, onBeforeUnmount as A, createElementBlock as p, createCommentVNode as f, openBlock as v, normalizeStyle as w, 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-CQipGQ26.js";
5
+ import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-nUnSpm32.js";
6
+ import { CLMode as k, CLColors as T, CLColorVariants as R, CLBorderRadius as X, CLIconSizes as Y, CLIconNames as ee, CLHeadingTypes as oe } from "../../../index.js";
7
+ import { g as te } from "../../../chunks/utils-CS9Gz4oX.js";
8
+ import { useTheme as ne } from "../../../composables/useTheme.js";
9
+ import { useEsc as le } from "../../../composables/useEsc.js";
10
10
  import { b as S, i as a } from "../../../chunks/helper--hRjZVm6.js";
11
- const ae = () => {
12
- const { borderRadius: t, colors: w, darkMode: c } = le(), r = c.value ? k.Dark : k.Light, u = ne({
11
+ const se = () => {
12
+ const { borderRadius: t, colors: y, darkMode: c } = ne(), r = c.value ? k.Dark : k.Light, u = te({
13
13
  color: T.Neutral,
14
- colors: w.value,
14
+ colors: y.value,
15
15
  mode: r,
16
16
  variant: R.Solid
17
17
  }), o = c.value ? "black" : "white";
@@ -20,13 +20,13 @@ const ae = () => {
20
20
  "--clll-modal-content-bg": o,
21
21
  "--clll-modal-theme-radius": t.value ? `var(--clll-${t.value})` : void 0
22
22
  };
23
- }, re = ["id", "data-testid"], de = ["aria-labelledby"], be = /* @__PURE__ */ W({
23
+ }, ae = ["id", "data-testid"], re = ["aria-labelledby"], we = /* @__PURE__ */ W({
24
24
  name: "CLModal",
25
25
  __name: "CLModal",
26
26
  props: {
27
27
  borderRadius: { default: void 0 },
28
28
  close: { type: Boolean, default: !0 },
29
- closeBorderRadius: { default: Y.Full },
29
+ closeBorderRadius: { default: X.Full },
30
30
  dismissible: { type: Boolean, default: !0 },
31
31
  fullscreen: { type: Boolean, default: !1 },
32
32
  isOpen: { type: Boolean, default: !1 },
@@ -39,16 +39,11 @@ const ae = () => {
39
39
  zIndex: { default: 100 }
40
40
  },
41
41
  emits: ["modal-open", "modal-close"],
42
- setup(t, { emit: w }) {
43
- F((n) => ({
44
- v2ce0ceaf: l(O),
45
- v51a276c4: l(V),
46
- v0c2be450: n.maxWidth
47
- }));
48
- const c = w, r = U("modal-window"), u = Z(), o = t, e = "clll-modal", $ = "clll-prevent-scroll", m = j(), C = () => {
49
- a && window?.document.body.classList.add($);
50
- }, x = () => {
51
- a && window?.document.body.classList.remove($);
42
+ setup(t, { emit: y }) {
43
+ const c = y, r = F("modal-window"), u = U(), o = t, e = "clll-modal", x = "clll-prevent-scroll", m = Z(), C = () => {
44
+ a && window?.document.body.classList.add(x);
45
+ }, I = () => {
46
+ a && window?.document.body.classList.remove(x);
52
47
  }, N = _(() => [
53
48
  e
54
49
  ]), E = _(() => [
@@ -62,120 +57,122 @@ const ae = () => {
62
57
  u.footer ? `${e}__content--has-footer` : `${e}__content--has-no-footer`,
63
58
  u.header || o.title ? `${e}__content--has-header` : `${e}__content--has-no-header`,
64
59
  o.title ? `${e}__content--has-title` : `${e}__content--has-no-title`
65
- ]), O = _(() => o.zIndex === "auto" || S(o.zIndex) ? o.zIndex : o.zIndex.toString()), V = _(() => o.zIndex === "auto" ? o.zIndex : ((S(o.zIndex) ? parseInt(o.zIndex, 10) : o.zIndex) + 100).toString()), H = (n) => {
60
+ ]), O = _(() => o.zIndex === "auto" || S(o.zIndex) ? o.zIndex : o.zIndex.toString()), V = _(() => o.zIndex === "auto" ? o.zIndex : ((S(o.zIndex) ? parseInt(o.zIndex, 10) : o.zIndex) + 100).toString()), H = (s) => {
66
61
  try {
67
- const i = n?.target, p = r.value;
68
- return a && p && !p.contains(i) ? !0 : void 0;
62
+ const i = s?.target, g = r.value;
63
+ return a && g && !g.contains(i) ? !0 : void 0;
69
64
  } catch (i) {
70
65
  console.error(i);
71
66
  return;
72
67
  }
73
- }, b = (n) => {
68
+ }, b = (s) => {
74
69
  try {
75
- H(n) && (a && window.removeEventListener("mousedown", b), z());
70
+ H(s) && (a && window.removeEventListener("mousedown", b), L());
76
71
  } catch (i) {
77
72
  console.error(i);
78
73
  }
79
- }, y = () => {
74
+ }, h = () => {
80
75
  a && window.removeEventListener("mousedown", b);
81
- }, I = () => {
82
- a && (m.value && a && window.clearTimeout(m.value), y(), x());
83
76
  }, z = () => {
84
- o.isOpen && (o.onClose?.(), I());
77
+ a && (m.value && a && window.clearTimeout(m.value), h(), I());
78
+ }, L = () => {
79
+ o.isOpen && (o.onClose?.(), z());
85
80
  };
86
- q(o, (n) => {
87
- n.isOpen ? (c("modal-open"), C(), r.value && r.value.focus(), a && n.dismissible && (y(), m.value = window.setTimeout(() => {
81
+ j(o, (s) => {
82
+ s.isOpen ? (c("modal-open"), C(), r.value && r.value.focus(), a && s.dismissible && (h(), m.value = window.setTimeout(() => {
88
83
  window.addEventListener("mousedown", b);
89
- }, 100))) : (r.value && r.value.blur(), x(), y(), m.value && a && window.clearTimeout(m.value), c("modal-close"));
90
- }), A(() => {
84
+ }, 100))) : (r.value && r.value.blur(), I(), h(), m.value && a && window.clearTimeout(m.value), c("modal-close"));
85
+ }), q(() => {
91
86
  o.isOpen && a && (C(), r.value && r.value.focus());
92
87
  });
93
- const { clearEventListeners: D } = se({ escHandler: o.dismissible ? z : void 0 });
94
- return G(() => {
95
- I(), D();
96
- }), (n, i) => t.isOpen ? (v(), L("div", {
88
+ const { clearEventListeners: D } = le({ escHandler: o.dismissible ? L : void 0 });
89
+ return A(() => {
90
+ z(), D();
91
+ }), (s, i) => t.isOpen ? (v(), p("div", {
97
92
  key: 0,
98
93
  id: t.modalId,
99
- class: s(l(N)),
94
+ class: l(n(N)),
100
95
  "data-testid": t.testId,
101
- style: g(l(ae)())
96
+ style: w({ ...n(se)(), zIndex: n(O) })
102
97
  }, [
103
98
  d("div", {
104
- class: s(l(E))
99
+ class: l(n(E)),
100
+ style: w({ zIndex: n(V) })
105
101
  }, [
106
102
  d("div", {
107
103
  ref: "modal-window",
108
104
  "aria-modal": "true",
109
105
  "aria-labelledby": `${e}__content__header__title`,
110
- class: s(l(M)),
106
+ class: l(n(M)),
111
107
  role: "dialog",
112
- tabindex: -1
108
+ tabindex: -1,
109
+ style: w({ "--clll-modal-max-width": t.maxWidth })
113
110
  }, [
114
111
  d("div", {
115
- class: s(`${e}__close-button`)
112
+ class: l(`${e}__close-button`)
116
113
  }, [
117
- t.onClose && t.close ? (v(), B(l(Q), {
114
+ t.onClose && t.close ? (v(), B(n(P), {
118
115
  key: 0,
119
116
  "aria-label": "Close modal",
120
117
  "border-radius": t.closeBorderRadius,
121
- color: l(T).Neutral,
122
- "icon-before": l(oe).Delete,
123
- "icon-size": l(ee).Tiny,
118
+ color: n(T).Neutral,
119
+ "icon-before": n(ee).Delete,
120
+ "icon-size": n(Y).Tiny,
124
121
  "on-click": t.onClose,
125
122
  "test-id": `${e}__close-button`,
126
- variant: l(R).Text
123
+ variant: n(R).Text
127
124
  }, null, 8, ["border-radius", "color", "icon-before", "icon-size", "on-click", "test-id", "variant"])) : f("", !0)
128
125
  ], 2),
129
126
  d("div", {
130
- class: s(`${e}__content__header`)
127
+ class: l(`${e}__content__header`)
131
128
  }, [
132
129
  d("div", {
133
- class: s(`${e}__content__title`)
130
+ class: l(`${e}__content__title`)
134
131
  }, [
135
132
  d("div", {
136
- class: s(`${e}__content__header__container`)
133
+ class: l(`${e}__content__header__container`)
137
134
  }, [
138
- t.title ? (v(), B(l(X), {
135
+ t.title ? (v(), B(n(Q), {
139
136
  key: 0,
140
137
  id: `${e}__content__header__title`,
141
- class: s(`${e}__content__header__title`),
142
- type: l(te).Section
138
+ class: l(`${e}__content__header__title`),
139
+ type: n(oe).Section
143
140
  }, {
144
- default: J(() => [
145
- K(P(t.title), 1)
141
+ default: G(() => [
142
+ J(K(t.title), 1)
146
143
  ]),
147
144
  _: 1
148
145
  }, 8, ["id", "class", "type"])) : f("", !0),
149
- h(n.$slots, "header")
146
+ $(s.$slots, "header")
150
147
  ], 2)
151
148
  ], 2)
152
149
  ], 2),
153
150
  d("div", {
154
- class: s(`${e}__content__scroller`)
151
+ class: l(`${e}__content__scroller`)
155
152
  }, [
156
153
  d("div", {
157
- class: s(`${e}__content__body`)
154
+ class: l(`${e}__content__body`)
158
155
  }, [
159
- h(n.$slots, "body")
156
+ $(s.$slots, "body")
160
157
  ], 2)
161
158
  ], 2),
162
159
  d("div", {
163
- class: s(`${e}__content__footer`)
160
+ class: l(`${e}__content__footer`)
164
161
  }, [
165
- h(n.$slots, "footer")
162
+ $(s.$slots, "footer")
166
163
  ], 2)
167
- ], 10, de)
168
- ], 2),
169
- t.overlay ? (v(), L("div", {
164
+ ], 14, re)
165
+ ], 6),
166
+ t.overlay ? (v(), p("div", {
170
167
  key: 0,
171
168
  ref: "overlay-ref",
172
- class: s(`${e}__overlay`),
173
- style: g({ zIndex: t.zIndex })
169
+ class: l(`${e}__overlay`),
170
+ style: w({ zIndex: t.zIndex })
174
171
  }, null, 6)) : f("", !0)
175
- ], 14, re)) : f("", !0);
172
+ ], 14, ae)) : f("", !0);
176
173
  }
177
174
  });
178
175
  export {
179
- be as CLModal,
180
- be as default
176
+ we as CLModal,
177
+ we as default
181
178
  };
@@ -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-BDL4xcfJ.js";
3
+ import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-DCwTmOOz.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-C_BQCWeg.js";
2
+ import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.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-C_BQCWeg.js";
4
+ import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-B_AmMW02.js";
5
5
  import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-BJoS9z9q.js";
6
6
  import { CLOrientation as h, CLColors as $ } from "../../../index.js";
7
7
  const g = ["data-testid"], V = /* @__PURE__ */ f({
@@ -1 +1 @@
1
- .clll-dropdown-menu__menu{position:relative;display:inline-block}.clll-dropdown-menu__menu .clll-dropdown-menu__dropdown{z-index:var(--v2fdf502c)}
1
+ .clll-dropdown-menu__menu{position:relative;display:inline-block}