@codeandfunction/callaloo 4.4.0 → 4.5.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 (50) hide show
  1. package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-1hhRUMgR.js → CLButton.vue_vue_type_style_index_0_lang-D0vMBs0W.js} +1 -1
  2. package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-CImCt0f6.js → CLCard.vue_vue_type_style_index_0_lang-BpDQWv8W.js} +2 -2
  3. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CzJDIguL.js +113 -0
  4. package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-BTjLe8m6.js → CLLink.vue_vue_type_style_index_0_lang-CZZm1duI.js} +1 -1
  5. package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-B5DiOsML.js → CLNavLink.vue_vue_type_script_setup_true_lang-BEBTiI0u.js} +1 -1
  6. package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-MaGtvvXD.js → CLPill.vue_vue_type_style_index_0_lang-Eh8_1A7g.js} +2 -2
  7. package/dist/chunks/{CLToast.vue_vue_type_style_index_0_lang-CdL1bLuX.js → CLToast.vue_vue_type_style_index_0_lang-BYHaeCZV.js} +3 -3
  8. package/dist/chunks/{helper-oZuRnF9g.js → helper-qUkciePY.js} +2 -2
  9. package/dist/chunks/icons-DllZKtC2.js +4 -0
  10. package/dist/chunks/utils-Ca0eSzWQ.js +49 -0
  11. package/dist/components/Buttons/CLButton/CLButton.js +1 -1
  12. package/dist/components/CLIcon/CLIcon.js +1 -1
  13. package/dist/components/Containers/CLCard/CLCard.js +1 -1
  14. package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
  15. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +3 -3
  16. package/dist/components/Containers/CLDrawer/CLDrawer.css +1 -0
  17. package/dist/components/Containers/CLDrawer/CLDrawer.js +121 -0
  18. package/dist/components/Containers/CLDrawer/CLDrawer.vue.d.ts +48 -0
  19. package/dist/components/Containers/CLDrawer/index.d.ts +4 -0
  20. package/dist/components/Containers/index.d.ts +1 -0
  21. package/dist/components/Containers/utils.d.ts +4 -0
  22. package/dist/components/Form/CLCheckbox/CLCheckbox.js +1 -1
  23. package/dist/components/Form/CLInput/CLInput.css +1 -1
  24. package/dist/components/Form/CLInput/CLInput.js +189 -183
  25. package/dist/components/Form/CLInput/CLInputPrefix.vue.d.ts +1 -1
  26. package/dist/components/Form/CLInput/CLInputSuffix.vue.d.ts +1 -1
  27. package/dist/components/Form/CLSelect/CLSelect.js +1 -1
  28. package/dist/components/Indicators/CLBanner/CLBanner.js +1 -1
  29. package/dist/components/Indicators/CLPill/CLPill.js +1 -1
  30. package/dist/components/Modals/CLModal/CLModal.js +2 -2
  31. package/dist/components/Modals/CLModal/CLModal.vue.d.ts +4 -4
  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.js +3 -3
  36. package/dist/components/Popups/CLToast/CLToast.js +1 -1
  37. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +4 -4
  38. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +1 -1
  39. package/dist/composables/index.d.ts +2 -0
  40. package/dist/composables/useDropdown.js +1 -1
  41. package/dist/composables/useElementSize.d.ts +35 -0
  42. package/dist/composables/useElementSize.js +74 -0
  43. package/dist/composables/useEsc.js +1 -1
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +8 -7
  46. package/dist/types.d.ts +6 -0
  47. package/package.json +45 -41
  48. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-r6hBiMgq.js +0 -109
  49. package/dist/chunks/icons-B1yhKPll.js +0 -4
  50. package/dist/chunks/utils-BwiU4N7s.js +0 -37
@@ -1,14 +1,14 @@
1
1
  import '../../../assets/core.css';
2
2
  import './CLInput.css';
3
3
  import '../../../assets/shared/form-utilities.css';
4
- import { defineComponent as p, computed as z, createBlock as b, createElementBlock as $, unref as i, openBlock as r, normalizeClass as x, Fragment as M, createTextVNode as q, toDisplayString as P, createVNode as K, ref as A, watch as N, createCommentVNode as v, mergeModels as w, useTemplateRef as Q, useModel as W, withCtx as Y, createElementVNode as S, normalizeStyle as Z, withDirectives as _, vModelDynamic as ee, isRef as le } from "vue";
5
- import { _ as ae, i as ie, a as te } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
4
+ import { defineComponent as p, computed as z, createElementBlock as $, openBlock as u, normalizeClass as y, unref as a, createBlock as b, Fragment as M, createTextVNode as q, toDisplayString as N, createVNode as K, ref as A, watch as P, createCommentVNode as v, mergeModels as w, useTemplateRef as Q, useModel as W, withCtx as Y, createElementVNode as F, normalizeStyle as Z, withDirectives as _, vModelDynamic as ee, isRef as le } from "vue";
5
+ import { _ as ie, i as ae, a as te } 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-BcHOofhM.js";
7
7
  import { _ as ne } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
8
- import { _ as E } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-r6hBiMgq.js";
9
- import { _ as F } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-1hhRUMgR.js";
10
- import { CLSizes as o, CLColors as k, CLBorderRadius as V, CLIconSizes as u, CLColorVariants as I, CLIconNames as X, CLInputTypes as d, CLOrientation as R, CLCharCounterLayout as de } from "../../../index.js";
11
- import { _ as ue } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-MaGtvvXD.js";
8
+ import { _ as E } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CzJDIguL.js";
9
+ import { _ as S } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D0vMBs0W.js";
10
+ import { CLSizes as o, CLColors as k, CLBorderRadius as V, CLIconSizes as s, CLColorVariants as I, CLIconNames as X, CLInputTypes as d, CLOrientation as R, CLCharCounterLayout as de } from "../../../index.js";
11
+ import { _ as ue } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-Eh8_1A7g.js";
12
12
  const se = ["data-testid"], H = /* @__PURE__ */ p({
13
13
  name: "CLInputPrefix",
14
14
  __name: "CLInputPrefix",
@@ -24,16 +24,16 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
24
24
  testId: { default: "clll-input-prefix" }
25
25
  },
26
26
  setup(e) {
27
- const t = e, c = "clll-input", l = (n) => Object.values(X).includes(n), C = (n) => n, a = (n) => n?.replace("rounded-", "") || "xs", y = {
28
- [o.Tiny]: u.Tiny,
29
- [o.Small]: u.Small,
30
- [o.Medium]: u.Medium,
31
- [o.Large]: u.Large,
32
- [o.XL]: u.XL,
33
- [o.XXL]: u.XXL,
34
- [o.XXXL]: u.XXXL,
35
- [o.XXXXL]: u.XXXXL
36
- }, g = z(() => !!t.onClick && l(t.prefix)), s = z(() => [
27
+ const t = e, c = "clll-input", l = (n) => Object.values(X).includes(n), C = (n) => n, i = (n) => n?.replace("rounded-", "") || "xs", x = {
28
+ [o.Tiny]: s.Tiny,
29
+ [o.Small]: s.Small,
30
+ [o.Medium]: s.Medium,
31
+ [o.Large]: s.Large,
32
+ [o.XL]: s.XL,
33
+ [o.XXL]: s.XXL,
34
+ [o.XXXL]: s.XXXL,
35
+ [o.XXXXL]: s.XXXXL
36
+ }, g = z(() => !!t.onClick && l(t.prefix)), r = z(() => [
37
37
  `${c}__input-prefix`,
38
38
  "form-addon-flex",
39
39
  "form-addon-flex--left",
@@ -41,38 +41,41 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
41
41
  { "--interactive": g },
42
42
  { "--input-group": t.grouped || t.prefix },
43
43
  { "--disabled": t.disabled },
44
- t.grouped ? `form-addon-radius--left-${a(t.borderRadius)}` : ""
44
+ t.grouped ? `form-addon-radius--left-${i(t.borderRadius)}` : ""
45
45
  ]), L = (n) => {
46
46
  t.onClick && n && !t.disabled && (n.stopPropagation(), t.onClick(n));
47
47
  };
48
- return (n, T) => i(g) ? (r(), b(i(F), {
49
- key: 0,
50
- "aria-label": e.ariaLabel,
51
- "border-radius": i(V).None,
52
- class: x(i(s)),
53
- color: e.color,
54
- disabled: e.disabled,
55
- "icon-before": C(e.prefix),
56
- "icon-size": y[e.size],
57
- "on-click": L,
58
- size: e.size,
59
- "test-id": e.testId,
60
- variant: i(I).Ghost,
61
- wrap: ""
62
- }, null, 8, ["aria-label", "border-radius", "class", "color", "disabled", "icon-before", "icon-size", "size", "test-id", "variant"])) : (r(), $("span", {
63
- key: 1,
64
- class: x(i(s)),
65
- "data-testid": e.testId
48
+ return (n, T) => (u(), $("div", {
49
+ class: y(a(r))
66
50
  }, [
67
- l(e.prefix) ? (r(), b(i(E), {
51
+ a(g) ? (u(), b(a(S), {
68
52
  key: 0,
69
- name: C(e.prefix),
70
- size: y[e.size],
71
- color: e.color
72
- }, null, 8, ["name", "size", "color"])) : (r(), $(M, { key: 1 }, [
73
- q(P(e.prefix), 1)
74
- ], 64))
75
- ], 10, se));
53
+ "aria-label": e.ariaLabel,
54
+ "border-radius": a(V).Full,
55
+ color: e.color,
56
+ disabled: e.disabled,
57
+ "icon-before": C(e.prefix),
58
+ "icon-size": x[e.size],
59
+ "on-click": L,
60
+ size: e.size,
61
+ "test-id": e.testId,
62
+ variant: a(I).Text,
63
+ wrap: ""
64
+ }, null, 8, ["aria-label", "border-radius", "color", "disabled", "icon-before", "icon-size", "size", "test-id", "variant"])) : (u(), $("span", {
65
+ key: 1,
66
+ class: "icon-container",
67
+ "data-testid": e.testId
68
+ }, [
69
+ l(e.prefix) ? (u(), b(a(E), {
70
+ key: 0,
71
+ name: C(e.prefix),
72
+ size: x[e.size],
73
+ color: e.color
74
+ }, null, 8, ["name", "size", "color"])) : (u(), $(M, { key: 1 }, [
75
+ q(N(e.prefix), 1)
76
+ ], 64))
77
+ ], 8, se))
78
+ ], 2));
76
79
  }
77
80
  }), re = ["data-testid"], O = /* @__PURE__ */ p({
78
81
  name: "CLInputSuffix",
@@ -89,16 +92,16 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
89
92
  testId: { default: "clll-input-suffix" }
90
93
  },
91
94
  setup(e) {
92
- const t = e, c = "clll-input", l = (n) => Object.values(X).includes(n), C = (n) => n, a = (n) => n?.replace("rounded-", "") || "xs", y = {
93
- [o.Tiny]: u.Tiny,
94
- [o.Small]: u.Small,
95
- [o.Medium]: u.Medium,
96
- [o.Large]: u.Large,
97
- [o.XL]: u.XL,
98
- [o.XXL]: u.XXL,
99
- [o.XXXL]: u.XXXL,
100
- [o.XXXXL]: u.XXXXL
101
- }, g = z(() => !!t.onClick && l(t.suffix)), s = z(() => [
95
+ const t = e, c = "clll-input", l = (n) => Object.values(X).includes(n), C = (n) => n, i = (n) => n?.replace("rounded-", "") || "xs", x = {
96
+ [o.Tiny]: s.Tiny,
97
+ [o.Small]: s.Small,
98
+ [o.Medium]: s.Medium,
99
+ [o.Large]: s.Large,
100
+ [o.XL]: s.XL,
101
+ [o.XXL]: s.XXL,
102
+ [o.XXXL]: s.XXXL,
103
+ [o.XXXXL]: s.XXXXL
104
+ }, g = z(() => !!t.onClick && l(t.suffix)), r = z(() => [
102
105
  `${c}__input-suffix`,
103
106
  "form-addon-flex",
104
107
  "form-addon-flex--right",
@@ -106,38 +109,41 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
106
109
  { "--interactive": g },
107
110
  { "--input-group": t.grouped || t.suffix },
108
111
  { "--disabled": t.disabled },
109
- t.grouped ? `form-addon-radius--right-${a(t.borderRadius)}` : ""
112
+ t.grouped ? `form-addon-radius--right-${i(t.borderRadius)}` : ""
110
113
  ]), L = (n) => {
111
114
  t.onClick && n && !t.disabled && (n.stopPropagation(), t.onClick(n));
112
115
  };
113
- return (n, T) => i(g) ? (r(), b(i(F), {
114
- key: 0,
115
- "aria-label": e.ariaLabel,
116
- "border-radius": i(V).None,
117
- class: x(i(s)),
118
- color: e.color,
119
- disabled: e.disabled,
120
- "icon-before": C(e.suffix),
121
- "icon-size": y[e.size],
122
- "on-click": L,
123
- size: e.size,
124
- "test-id": e.testId,
125
- variant: i(I).Ghost,
126
- wrap: ""
127
- }, null, 8, ["aria-label", "border-radius", "class", "color", "disabled", "icon-before", "icon-size", "size", "test-id", "variant"])) : (r(), $("span", {
128
- key: 1,
129
- class: x(i(s)),
130
- "data-testid": e.testId
116
+ return (n, T) => (u(), $("div", {
117
+ class: y(a(r))
131
118
  }, [
132
- l(e.suffix) ? (r(), b(i(E), {
119
+ a(g) ? (u(), b(a(S), {
133
120
  key: 0,
134
- name: C(e.suffix),
135
- size: y[e.size],
136
- color: e.color
137
- }, null, 8, ["name", "size", "color"])) : (r(), $(M, { key: 1 }, [
138
- q(P(e.suffix), 1)
139
- ], 64))
140
- ], 10, re));
121
+ "aria-label": e.ariaLabel,
122
+ "border-radius": a(V).Full,
123
+ color: e.color,
124
+ disabled: e.disabled,
125
+ "icon-before": C(e.suffix),
126
+ "icon-size": x[e.size],
127
+ "on-click": L,
128
+ size: e.size,
129
+ "test-id": e.testId,
130
+ variant: a(I).Text,
131
+ wrap: ""
132
+ }, null, 8, ["aria-label", "border-radius", "color", "disabled", "icon-before", "icon-size", "size", "test-id", "variant"])) : (u(), $("span", {
133
+ key: 1,
134
+ class: "icon-container",
135
+ "data-testid": e.testId
136
+ }, [
137
+ l(e.suffix) ? (u(), b(a(E), {
138
+ key: 0,
139
+ name: C(e.suffix),
140
+ size: x[e.size],
141
+ color: e.color
142
+ }, null, 8, ["name", "size", "color"])) : (u(), $(M, { key: 1 }, [
143
+ q(N(e.suffix), 1)
144
+ ], 64))
145
+ ], 8, re))
146
+ ], 2));
141
147
  }
142
148
  }), ce = ["data-testid"], U = /* @__PURE__ */ p({
143
149
  name: "CLInputPill",
@@ -149,18 +155,18 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
149
155
  },
150
156
  setup(e) {
151
157
  const t = "clll-input";
152
- return (c, l) => (r(), $("span", {
153
- class: x(`${t}__pill`),
158
+ return (c, l) => (u(), $("span", {
159
+ class: y(`${t}__pill`),
154
160
  "data-testid": e.testId
155
161
  }, [
156
- K(i(ue), {
162
+ K(a(ue), {
157
163
  color: e.color,
158
164
  label: e.label,
159
- variant: i(I).Soft
165
+ variant: a(I).Soft
160
166
  }, null, 8, ["color", "label", "variant"])
161
167
  ], 10, ce));
162
168
  }
163
- }), fe = ["data-testid"], G = /* @__PURE__ */ p({
169
+ }), fe = ["data-testid"], j = /* @__PURE__ */ p({
164
170
  name: "CLInputColorTools",
165
171
  __name: "CLInputColorTools",
166
172
  props: {
@@ -172,56 +178,56 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
172
178
  },
173
179
  emits: ["copy", "reset", "update:copied"],
174
180
  setup(e, { emit: t }) {
175
- const c = e, l = t, C = "clll-input", a = A(c.copied), y = {
176
- [o.Tiny]: u.Tiny,
177
- [o.Small]: u.Small,
178
- [o.Medium]: u.Medium,
179
- [o.Large]: u.Large,
180
- [o.XL]: u.XL,
181
- [o.XXL]: u.XXL,
182
- [o.XXXL]: u.XXXL,
183
- [o.XXXXL]: u.XXXXL
181
+ const c = e, l = t, C = "clll-input", i = A(c.copied), x = {
182
+ [o.Tiny]: s.Tiny,
183
+ [o.Small]: s.Small,
184
+ [o.Medium]: s.Medium,
185
+ [o.Large]: s.Large,
186
+ [o.XL]: s.XL,
187
+ [o.XXL]: s.XXL,
188
+ [o.XXXL]: s.XXXL,
189
+ [o.XXXXL]: s.XXXXL
184
190
  }, g = async () => {
185
191
  try {
186
- c.modelValue && (await navigator.clipboard.writeText(c.modelValue.toString()), a.value = !0, l("update:copied", !0), l("copy"));
192
+ c.modelValue && (await navigator.clipboard.writeText(c.modelValue.toString()), i.value = !0, l("update:copied", !0), l("copy"));
187
193
  } catch (L) {
188
194
  console.error(L);
189
195
  }
190
- }, s = () => {
196
+ }, r = () => {
191
197
  l("reset", c.initialValue);
192
198
  };
193
- return N(() => c.copied, (L) => {
194
- a.value = L;
195
- }), N(() => c.modelValue, () => {
196
- a.value = !1, l("update:copied", !1);
197
- }), (L, n) => (r(), $("span", {
198
- class: x(`${C}__selected-color-tools`),
199
+ return P(() => c.copied, (L) => {
200
+ i.value = L;
201
+ }), P(() => c.modelValue, () => {
202
+ i.value = !1, l("update:copied", !1);
203
+ }), (L, n) => (u(), $("span", {
204
+ class: y(`${C}__selected-color-tools`),
199
205
  "data-testid": e.testId
200
206
  }, [
201
- e.modelValue ? (r(), b(i(F), {
207
+ e.modelValue ? (u(), b(a(S), {
202
208
  key: 0,
203
209
  "aria-label": "Copy color to clipboard",
204
- class: x(`${C}__copy-to-clipboard`),
205
- color: i(k).Neutral,
206
- "icon-before": i(a) ? i(X).Check : i(X).Copy,
207
- "icon-size": y[e.size],
210
+ class: y(`${C}__copy-to-clipboard`),
211
+ color: a(k).Neutral,
212
+ "icon-before": a(i) ? a(X).Check : a(X).Copy,
213
+ "icon-size": x[e.size],
208
214
  "on-click": g,
209
215
  size: e.size,
210
- title: i(a) ? "Color copied to clipboard" : "Copy color to clipboard",
211
- variant: i(I).Ghost,
216
+ title: a(i) ? "Color copied to clipboard" : "Copy color to clipboard",
217
+ variant: a(I).Ghost,
212
218
  wrap: ""
213
219
  }, null, 8, ["class", "color", "icon-before", "icon-size", "size", "title", "variant"])) : v("", !0),
214
- e.modelValue ? (r(), b(i(F), {
220
+ e.modelValue ? (u(), b(a(S), {
215
221
  key: 1,
216
222
  "aria-label": "Reset selected color",
217
- class: x(`${C}__reset-selected-color`),
218
- color: i(k).Neutral,
219
- "on-click": s,
220
- "icon-before": i(X).Restore,
221
- "icon-size": y[e.size],
223
+ class: y(`${C}__reset-selected-color`),
224
+ color: a(k).Neutral,
225
+ "on-click": r,
226
+ "icon-before": a(X).Restore,
227
+ "icon-size": x[e.size],
222
228
  size: e.size,
223
229
  title: "Reset selected color",
224
- variant: i(I).Ghost,
230
+ variant: a(I).Ghost,
225
231
  wrap: ""
226
232
  }, null, 8, ["class", "color", "icon-before", "icon-size", "size", "variant"])) : v("", !0)
227
233
  ], 10, fe));
@@ -275,69 +281,69 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
275
281
  }),
276
282
  emits: /* @__PURE__ */ w(["reset"], ["update:modelValue"]),
277
283
  setup(e, { expose: t, emit: c }) {
278
- const l = e, C = c, a = "clll-input", y = A(!1), g = Q("input-elem"), s = W(e, "modelValue");
279
- l.type === d.Color && !s.value && (s.value = "#FFFFFF");
280
- const L = s.value?.toString(), n = (h) => Object.values(X).includes(h), T = z(() => [
281
- a,
282
- l.borderRadius ? `${a}--${l.borderRadius}` : "",
283
- l.busy ? `${a}--busy` : `${a}--ready`,
284
- `${a}--${l.color}`,
285
- `${a}--${l.size}`,
286
- `${a}--${l.type}`,
287
- `${a}--${l.variant}`,
288
- l.disabled || l.busy ? `${a}--disabled` : `${a}--active`,
289
- l.fluid || l.orientation === R.Horizontal ? `${a}--fluid` : `${a}--fixed`,
290
- l.grouped ? `${a}--grouped` : "",
291
- l.label ? `${a}--haslabel` : "",
292
- l.messageType ? `${a}--${l.messageType}` : "",
293
- l.orientation ? `${a}--${l.orientation}` : "",
294
- l.pill ? `${a}--haspill` : "",
295
- l.charCounter && l.maxLength && [d.Email, d.None, d.Text, d.Url].includes(l.type) ? `${a}--hascharcounter` : "",
296
- l.prefix && ![d.Color, d.File].includes(l.type) ? `${a}--hasprefix` : "",
297
- l.prefix && ![d.Color, d.File].includes(l.type) ? n(l.prefix) ? `${a}--hasiconprefix` : `${a}--hascustomprefix` : "",
298
- l.readonly ? `${a}--readonly` : `${a}--writeable`,
299
- l.rounded ? `${a}--rounded` : `${a}--box`,
300
- l.required ? `${a}--required` : `${a}--optional`,
301
- l.suffix && ![d.Color, d.File].includes(l.type) ? `${a}--hassuffix` : "",
302
- l.suffix && ![d.Color, d.File].includes(l.type) ? n(l.suffix) ? `${a}--hasiconsuffix` : `${a}--hascustomsuffix` : ""
303
- ]), j = z(() => [
304
- `${a}__input`,
305
- { "--nocolor": l.type === d.Color && !s.value },
284
+ const l = e, C = c, i = "clll-input", x = A(!1), g = Q("input-elem"), r = W(e, "modelValue");
285
+ l.type === d.Color && !r.value && (r.value = "#FFFFFF");
286
+ const L = r.value?.toString(), n = (h) => Object.values(X).includes(h), T = z(() => [
287
+ i,
288
+ l.borderRadius ? `${i}--${l.borderRadius}` : "",
289
+ l.busy ? `${i}--busy` : `${i}--ready`,
290
+ `${i}--${l.color}`,
291
+ `${i}--${l.size}`,
292
+ `${i}--${l.type}`,
293
+ `${i}--${l.variant}`,
294
+ l.disabled || l.busy ? `${i}--disabled` : `${i}--active`,
295
+ l.fluid || l.orientation === R.Horizontal ? `${i}--fluid` : `${i}--fixed`,
296
+ l.grouped ? `${i}--grouped` : "",
297
+ l.label ? `${i}--haslabel` : "",
298
+ l.messageType ? `${i}--${l.messageType}` : "",
299
+ l.orientation ? `${i}--${l.orientation}` : "",
300
+ l.pill ? `${i}--haspill` : "",
301
+ l.charCounter && l.maxLength && [d.Email, d.None, d.Text, d.Url].includes(l.type) ? `${i}--hascharcounter` : "",
302
+ l.prefix && ![d.Color, d.File].includes(l.type) ? `${i}--hasprefix` : "",
303
+ l.prefix && ![d.Color, d.File].includes(l.type) ? n(l.prefix) ? `${i}--hasiconprefix` : `${i}--hascustomprefix` : "",
304
+ l.readonly ? `${i}--readonly` : `${i}--writeable`,
305
+ l.rounded ? `${i}--rounded` : `${i}--box`,
306
+ l.required ? `${i}--required` : `${i}--optional`,
307
+ l.suffix && ![d.Color, d.File].includes(l.type) ? `${i}--hassuffix` : "",
308
+ l.suffix && ![d.Color, d.File].includes(l.type) ? n(l.suffix) ? `${i}--hasiconsuffix` : `${i}--hascustomsuffix` : ""
309
+ ]), D = z(() => [
310
+ `${i}__input`,
311
+ { "--nocolor": l.type === d.Color && !r.value },
306
312
  { "--input-group": l.grouped || l.prefix || l.suffix }
307
- ]), D = (h) => {
308
- s.value = h, C("reset", s.value);
313
+ ]), G = (h) => {
314
+ r.value = h, C("reset", r.value);
309
315
  }, J = (h) => {
310
316
  !h.target.closest('button, a, [role="button"]') && g.value && g.value.focus();
311
317
  };
312
- return N(s, () => {
313
- y.value = !1;
318
+ return P(r, () => {
319
+ x.value = !1;
314
320
  }), t({
315
321
  inputRef: g
316
- }), (h, f) => (r(), b(ae, {
322
+ }), (h, f) => (u(), b(ie, {
317
323
  fluid: e.fluid,
318
324
  "has-pill": !!e.pill,
319
325
  "has-char-counter": !!(e.charCounter && e.maxLength),
320
326
  orientation: e.orientation
321
327
  }, {
322
328
  default: Y(() => [
323
- S("span", {
324
- class: x(i(T)),
325
- style: Z(i(ie)({ color: e.color, variant: e.variant })),
329
+ F("span", {
330
+ class: y(a(T)),
331
+ style: Z(a(ae)({ color: e.color, variant: e.variant })),
326
332
  "data-testid": e.testId
327
333
  }, [
328
- e.label ? (r(), b(oe, {
334
+ e.label ? (u(), b(oe, {
329
335
  key: 0,
330
- "css-prefix": a,
336
+ "css-prefix": i,
331
337
  "html-for": e.id,
332
338
  label: e.label,
333
339
  required: e.required,
334
340
  size: e.size
335
341
  }, null, 8, ["html-for", "label", "required", "size"])) : v("", !0),
336
- S("span", {
337
- class: x([`${a}__input-container`, "--focus-within"]),
342
+ F("span", {
343
+ class: y([`${i}__input-container`, "--focus-within"]),
338
344
  onClick: J
339
345
  }, [
340
- e.prefix && ![i(d).Color, i(d).File].includes(e.type) ? (r(), b(H, {
346
+ e.prefix && ![a(d).Color, a(d).File].includes(e.type) ? (u(), b(H, {
341
347
  key: 0,
342
348
  prefix: e.prefix,
343
349
  size: e.size,
@@ -348,17 +354,17 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
348
354
  "aria-label": e.prefixAriaLabel,
349
355
  disabled: e.disabled || e.busy
350
356
  }, null, 8, ["prefix", "size", "grouped", "border-radius", "color", "on-click", "aria-label", "disabled"])) : v("", !0),
351
- S("span", {
352
- class: x(`${a}__input-border-control`)
357
+ F("span", {
358
+ class: y(`${i}__input-border-control`)
353
359
  }, [
354
- _(S("input", {
360
+ _(F("input", {
355
361
  id: e.id,
356
362
  ref: "input-elem",
357
- "onUpdate:modelValue": f[0] || (f[0] = (m) => s.value = m),
363
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m),
358
364
  name: e.name,
359
365
  "aria-label": e.ariaLabel,
360
366
  autocomplete: e.autoComplete ? "on" : "off",
361
- class: x(i(j)),
367
+ class: y(a(D)),
362
368
  disabled: e.disabled || e.busy,
363
369
  form: e.form,
364
370
  maxlength: e.maxLength,
@@ -378,24 +384,24 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
378
384
  onInput: f[4] || (f[4] = //@ts-ignore
379
385
  (...m) => e.onInput && e.onInput(...m))
380
386
  }, null, 42, be), [
381
- [ee, s.value]
387
+ [ee, r.value]
382
388
  ])
383
389
  ], 2),
384
- e.type === i(d).Color ? (r(), $("span", {
390
+ e.type === a(d).Color ? (u(), $("span", {
385
391
  key: 1,
386
- class: x(`${a}__selected-color`)
387
- }, P(s.value || "none"), 3)) : v("", !0),
388
- e.type === i(d).Color ? (r(), b(G, {
392
+ class: y(`${i}__selected-color`)
393
+ }, N(r.value || "none"), 3)) : v("", !0),
394
+ e.type === a(d).Color ? (u(), b(j, {
389
395
  key: 2,
390
- modelValue: s.value,
391
- "onUpdate:modelValue": f[5] || (f[5] = (m) => s.value = m),
392
- copied: i(y),
393
- "onUpdate:copied": f[6] || (f[6] = (m) => le(y) ? y.value = m : null),
394
- "initial-value": i(L),
396
+ modelValue: r.value,
397
+ "onUpdate:modelValue": f[5] || (f[5] = (m) => r.value = m),
398
+ copied: a(x),
399
+ "onUpdate:copied": f[6] || (f[6] = (m) => le(x) ? x.value = m : null),
400
+ "initial-value": a(L),
395
401
  size: e.size,
396
- onReset: D
402
+ onReset: G
397
403
  }, null, 8, ["modelValue", "copied", "initial-value", "size"])) : v("", !0),
398
- e.suffix && ![i(d).Color, i(d).File].includes(e.type) ? (r(), b(O, {
404
+ e.suffix && ![a(d).Color, a(d).File].includes(e.type) ? (u(), b(O, {
399
405
  key: 3,
400
406
  suffix: e.suffix,
401
407
  size: e.size,
@@ -406,27 +412,27 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
406
412
  "aria-label": e.suffixAriaLabel,
407
413
  disabled: e.disabled || e.busy
408
414
  }, null, 8, ["suffix", "size", "grouped", "border-radius", "color", "on-click", "aria-label", "disabled"])) : v("", !0),
409
- e.charCounter && e.maxLength && [i(d).Email, i(d).None, i(d).Text, i(d).Url].includes(e.type) ? (r(), b(ne, {
415
+ e.charCounter && e.maxLength && [a(d).Email, a(d).None, a(d).Text, a(d).Url].includes(e.type) ? (u(), b(ne, {
410
416
  key: 4,
411
417
  color: e.color,
412
- "css-prefix": a,
413
- "current-length": s.value ? s.value.toString().length : 0,
418
+ "css-prefix": i,
419
+ "current-length": r.value ? r.value.toString().length : 0,
414
420
  "max-length": e.maxLength,
415
- layout: i(de).Inline,
421
+ layout: a(de).Inline,
416
422
  size: e.size
417
423
  }, null, 8, ["color", "current-length", "max-length", "layout", "size"])) : v("", !0)
418
424
  ], 2)
419
425
  ], 14, me),
420
- e.pill && e.label && e.orientation === i(R).Horizontal ? (r(), $("span", {
426
+ e.pill && e.label && e.orientation === a(R).Horizontal ? (u(), $("span", {
421
427
  key: 0,
422
- class: x(`${a}__spacer`)
428
+ class: y(`${i}__spacer`)
423
429
  }, null, 2)) : v("", !0),
424
- e.pill ? (r(), b(U, {
430
+ e.pill ? (u(), b(U, {
425
431
  key: 1,
426
432
  label: e.pill,
427
433
  color: e.color
428
434
  }, null, 8, ["label", "color"])) : v("", !0),
429
- e.id ? (r(), b(te, {
435
+ e.id ? (u(), b(te, {
430
436
  key: 2,
431
437
  id: e.id,
432
438
  messages: e.messages,
@@ -440,7 +446,7 @@ const se = ["data-testid"], H = /* @__PURE__ */ p({
440
446
  B.Prefix = H;
441
447
  B.Suffix = O;
442
448
  B.Pill = U;
443
- B.ColorTools = G;
449
+ B.ColorTools = j;
444
450
  export {
445
451
  B as CLInput,
446
452
  B as default
@@ -28,5 +28,5 @@ declare const _default: import('vue').DefineComponent<CLInputPrefixProps, {}, {}
28
28
  borderRadius: CLBorderRadius;
29
29
  disabled: boolean;
30
30
  grouped: boolean;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
32
  export default _default;
@@ -28,5 +28,5 @@ declare const _default: import('vue').DefineComponent<CLInputSuffixProps, {}, {}
28
28
  borderRadius: CLBorderRadius;
29
29
  disabled: boolean;
30
30
  grouped: boolean;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
31
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
32
  export default _default;
@@ -4,7 +4,7 @@ import '../../../assets/shared/form-utilities.css';
4
4
  import { defineComponent as B, mergeModels as S, useModel as h, useTemplateRef as X, computed as q, createBlock as f, openBlock as s, withCtx as x, createElementVNode as d, createCommentVNode as $, normalizeStyle as T, normalizeClass as r, unref as u, withDirectives as V, createElementBlock as b, Fragment as k, renderList as M, toDisplayString as F, vModelSelect as I, createVNode as N } from "vue";
5
5
  import { _ as R, s as D, a as w } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
6
6
  import { _ as E } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-BcHOofhM.js";
7
- import { _ as H } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-r6hBiMgq.js";
7
+ import { _ as H } from "../../../chunks/CLIcon.vue_vue_type_style_index_0_lang-CzJDIguL.js";
8
8
  import { CLSizes as i, CLIconSizes as n, CLOrientation as y, CLIconNames as O, CLColorVariants as P, CLColors as U } 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-1hhRUMgR.js";
5
+ import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D0vMBs0W.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-MaGtvvXD.js";
3
+ import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-Eh8_1A7g.js";
4
4
  export {
5
5
  s as CLPill,
6
6
  s as 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-1hhRUMgR.js";
4
+ import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D0vMBs0W.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-oZuRnF9g.js";
10
+ import { c as S, i as a } from "../../../chunks/helper-qUkciePY.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,
@@ -38,14 +38,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<CL
38
38
  close: boolean;
39
39
  testId: string;
40
40
  borderRadius: CLBorderRadius;
41
- closeBorderRadius: CLBorderRadius;
41
+ overlay: boolean;
42
42
  dismissible: boolean;
43
- fullscreen: boolean;
44
43
  isOpen: boolean;
45
- maxWidth: string;
46
44
  onClose: CLGenericFunction;
47
- overlay: boolean;
48
45
  zIndex: number | string;
46
+ maxWidth: string;
47
+ closeBorderRadius: CLBorderRadius;
48
+ fullscreen: boolean;
49
49
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
50
50
  'modal-window': HTMLDivElement;
51
51
  'overlay-ref': HTMLDivElement;
@@ -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-BTjLe8m6.js";
3
+ import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-CZZm1duI.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-B5DiOsML.js";
2
+ import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-BEBTiI0u.js";
3
3
  export {
4
4
  s as CLNavLink,
5
5
  s as default