@codeandfunction/callaloo 3.15.3 → 3.16.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 (138) hide show
  1. package/README.md +7 -3
  2. package/dist/assets/CLFormCharCounter.css +1 -0
  3. package/dist/assets/CLInputMessages.css +1 -0
  4. package/dist/chunks/CLA11yButton.vue_vue_type_style_index_0_lang-Cdx5rsou.js +45 -0
  5. package/dist/chunks/CLButton.vue_vue_type_style_index_0_lang-CrhjC50b.js +128 -0
  6. package/dist/chunks/CLCard.vue_vue_type_style_index_0_lang-DVuAcV5A.js +252 -0
  7. package/dist/chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js +38 -0
  8. package/dist/chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-fddy-FWI.js +43 -0
  9. package/dist/chunks/CLHeading.vue_vue_type_style_index_0_lang-DILwNSgn.js +50 -0
  10. package/dist/chunks/CLIcon.vue_vue_type_style_index_0_lang-CZB8svPf.js +83 -0
  11. package/dist/chunks/CLInputMessages.vue_vue_type_style_index_0_lang-RMOT1TQk.js +120 -0
  12. package/dist/chunks/CLLink.vue_vue_type_style_index_0_lang-BUgw8Rpy.js +59 -0
  13. package/dist/chunks/CLNavLink.vue_vue_type_script_setup_true_lang-Ckz9MEj5.js +44 -0
  14. package/dist/chunks/CLPill.vue_vue_type_style_index_0_lang-mkIKVHjg.js +88 -0
  15. package/dist/chunks/CLProgress.vue_vue_type_style_index_0_lang-CSf7WiNb.js +65 -0
  16. package/dist/chunks/CLSkeleton.vue_vue_type_style_index_0_lang-E-bZeUWT.js +33 -0
  17. package/dist/chunks/CLSpinner.vue_vue_type_style_index_0_lang-C8s8K4zb.js +53 -0
  18. package/dist/chunks/CLText.vue_vue_type_style_index_0_lang-V7LSR7DF.js +46 -0
  19. package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-DOI4DZGg.js +178 -0
  20. package/dist/chunks/base-theme-C9_Hz5HW.js +832 -0
  21. package/dist/chunks/useEsc-C9QIDZ_8.js +19 -0
  22. package/dist/chunks/useHasSlotContent-DDqs5uK9.js +14 -0
  23. package/dist/chunks/useTheme-yoEfuNvB.js +417 -0
  24. package/dist/chunks/utils-C7Yjsqk-.js +25 -0
  25. package/dist/chunks/utils-DFnkOeYP.js +72 -0
  26. package/dist/chunks/utils-DTWXs4YX.js +14 -0
  27. package/dist/chunks/utils-D_WP3vZz.js +29 -0
  28. package/dist/chunks/utils-Da9LXXQ0.js +28 -0
  29. package/dist/components/Buttons/CLA11yButton/CLA11yButton.css +1 -0
  30. package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +6 -0
  31. package/dist/components/Buttons/CLA11yButton/CLA11yButton.vue.d.ts +2 -2
  32. package/dist/components/Buttons/CLButton/CLButton.css +1 -0
  33. package/dist/components/Buttons/CLButton/CLButton.js +6 -0
  34. package/dist/components/Buttons/CLButton/CLButton.vue.d.ts +7 -7
  35. package/dist/components/CLIcon/CLIcon.css +1 -0
  36. package/dist/components/CLIcon/CLIcon.js +6 -0
  37. package/dist/components/{Assets/CLIcon → CLIcon}/CLIcon.vue.d.ts +1 -1
  38. package/dist/components/CLTable/CLTable.css +1 -0
  39. package/dist/components/CLTable/CLTable.js +196 -0
  40. package/dist/components/{Table → CLTable}/index.d.ts +0 -7
  41. package/dist/components/Containers/CLCard/CLCard.css +1 -0
  42. package/dist/components/Containers/CLCard/CLCard.js +6 -0
  43. package/dist/components/Containers/CLCard/CLCard.vue.d.ts +6 -6
  44. package/dist/components/Containers/CLCarousel/CLCarousel.css +1 -0
  45. package/dist/components/Containers/CLCarousel/CLCarousel.js +436 -0
  46. package/dist/components/Containers/CLCarousel/CLCarousel.vue.d.ts +2 -2
  47. package/dist/components/Containers/CLCarousel/CLCarouselNavigation.vue.d.ts +1 -1
  48. package/dist/components/Containers/CLDisclosure/CLDisclosure.css +1 -0
  49. package/dist/components/Containers/CLDisclosure/CLDisclosure.js +137 -0
  50. package/dist/components/Containers/CLDisclosure/CLDisclosure.vue.d.ts +3 -3
  51. package/dist/components/Form/CLCheckbox/CLCheckbox.css +1 -0
  52. package/dist/components/Form/CLCheckbox/CLCheckbox.js +147 -0
  53. package/dist/components/Form/CLCheckbox/CLCheckbox.vue.d.ts +4 -4
  54. package/dist/components/Form/CLFormLabel/CLFormLabel.vue.d.ts +1 -1
  55. package/dist/components/Form/CLInput/CLInput.css +1 -0
  56. package/dist/components/Form/CLInput/CLInput.js +378 -0
  57. package/dist/components/Form/CLInput/CLInput.vue.d.ts +5 -5
  58. package/dist/components/Form/CLInput/CLInputPill.vue.d.ts +1 -1
  59. package/dist/components/Form/CLRadioButton/CLRadioButton.css +1 -0
  60. package/dist/components/Form/CLRadioButton/CLRadioButton.js +132 -0
  61. package/dist/components/Form/CLRadioButton/CLRadioButton.vue.d.ts +1 -1
  62. package/dist/components/Form/CLSelect/CLSelect.css +1 -0
  63. package/dist/components/Form/CLSelect/CLSelect.js +137 -0
  64. package/dist/components/Form/CLSelect/CLSelect.vue.d.ts +3 -3
  65. package/dist/components/Form/CLTextArea/CLTextArea.css +1 -0
  66. package/dist/components/Form/CLTextArea/CLTextArea.js +149 -0
  67. package/dist/components/Form/CLTextArea/CLTextArea.vue.d.ts +2 -2
  68. package/dist/components/Form/index.d.ts +5 -9
  69. package/dist/components/Indicators/CLBadge/CLBadge.css +1 -0
  70. package/dist/components/Indicators/CLBadge/CLBadge.js +40 -0
  71. package/dist/components/Indicators/CLBadge/CLBadge.vue.d.ts +1 -1
  72. package/dist/components/Indicators/CLBanner/CLBanner.css +1 -0
  73. package/dist/components/Indicators/CLBanner/CLBanner.js +147 -0
  74. package/dist/components/Indicators/CLBanner/CLBanner.vue.d.ts +3 -3
  75. package/dist/components/Indicators/CLPill/CLPill.css +1 -0
  76. package/dist/components/Indicators/CLPill/CLPill.js +6 -0
  77. package/dist/components/Indicators/CLPill/CLPill.vue.d.ts +3 -3
  78. package/dist/components/Indicators/CLProgress/CLProgress.css +1 -0
  79. package/dist/components/Indicators/CLProgress/CLProgress.js +6 -0
  80. package/dist/components/Indicators/CLProgress/CLProgress.vue.d.ts +2 -2
  81. package/dist/components/Loading/CLSkeleton/CLSkeleton.css +1 -0
  82. package/dist/components/Loading/CLSkeleton/CLSkeleton.js +6 -0
  83. package/dist/components/Loading/CLSkeleton/CLSkeleton.vue.d.ts +1 -1
  84. package/dist/components/Loading/CLSpinner/CLSpinner.css +1 -0
  85. package/dist/components/Loading/CLSpinner/CLSpinner.js +6 -0
  86. package/dist/components/Loading/CLSpinner/CLSpinner.vue.d.ts +1 -1
  87. package/dist/components/Modals/CLModal/CLModal.css +1 -0
  88. package/dist/components/Modals/CLModal/CLModal.js +175 -0
  89. package/dist/components/Modals/CLModal/CLModal.vue.d.ts +2 -2
  90. package/dist/components/Navigation/CLLink/CLLink.css +1 -0
  91. package/dist/components/Navigation/CLLink/CLLink.js +6 -0
  92. package/dist/components/Navigation/CLLink/CLLink.vue.d.ts +2 -2
  93. package/dist/components/Navigation/CLNavLink/CLNavLink.js +5 -0
  94. package/dist/components/Navigation/CLNavLink/CLNavLink.vue.d.ts +1 -1
  95. package/dist/components/Navigation/CLNavSection/CLNavSection.css +1 -0
  96. package/dist/components/Navigation/CLNavSection/CLNavSection.js +55 -0
  97. package/dist/components/Navigation/CLNavSection/CLNavSection.vue.d.ts +1 -1
  98. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.css +1 -0
  99. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +1233 -0
  100. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +29 -29
  101. package/dist/components/Popups/CLToast/CLToast.css +1 -0
  102. package/dist/components/Popups/CLToast/CLToast.js +6 -0
  103. package/dist/components/Popups/CLToast/CLToast.vue.d.ts +2 -2
  104. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +44 -0
  105. package/dist/components/Providers/CLThemeProvider/CLThemeProvider.vue.d.ts +27 -0
  106. package/dist/components/Providers/CLThemeProvider/base-theme.d.ts +22 -0
  107. package/dist/components/Providers/CLThemeProvider/index.d.ts +6 -0
  108. package/dist/components/Providers/CLToastProvider/CLToastProvider.js +45 -0
  109. package/dist/components/Providers/{Toast → CLToastProvider}/CLToastProvider.vue.d.ts +1 -7
  110. package/dist/components/Providers/CLToastProvider/index.d.ts +4 -0
  111. package/dist/components/Providers/index.d.ts +2 -6
  112. package/dist/components/Typography/CLHeading/CLHeading.css +1 -0
  113. package/dist/components/Typography/CLHeading/CLHeading.js +6 -0
  114. package/dist/components/Typography/CLText/CLText.css +1 -0
  115. package/dist/components/Typography/CLText/CLText.js +6 -0
  116. package/dist/composables/useTheme.d.ts +26 -0
  117. package/dist/index.d.ts +0 -15
  118. package/dist/index.js +27 -5899
  119. package/package.json +124 -13
  120. package/dist/assets/styles.css +0 -1
  121. package/dist/components/Assets/index.d.ts +0 -2
  122. package/dist/components/Form/CLFormCharCounter/index.d.ts +0 -5
  123. package/dist/components/Form/CLFormLabel/index.d.ts +0 -5
  124. package/dist/components/Providers/Theme/CLThemeProvider.vue.d.ts +0 -26
  125. package/dist/components/Providers/Theme/base-theme.d.ts +0 -48
  126. package/dist/constants.d.ts +0 -22
  127. package/dist/chunks/{icons.QRYZHNAf.js → icons-QRYZHNAf.js} +0 -0
  128. package/dist/components/{Assets/CLIcon → CLIcon}/index.d.ts +0 -0
  129. package/dist/components/{Assets → CLIcon}/utils.d.ts +0 -0
  130. package/dist/components/{Table → CLTable}/CLTable.vue.d.ts +1 -1
  131. /package/dist/components/{Table → CLTable}/CLTableBody.vue.d.ts +0 -0
  132. /package/dist/components/{Table → CLTable}/CLTableCell.vue.d.ts +0 -0
  133. /package/dist/components/{Table → CLTable}/CLTableFooter.vue.d.ts +0 -0
  134. /package/dist/components/{Table → CLTable}/CLTableHeader.vue.d.ts +0 -0
  135. /package/dist/components/{Table → CLTable}/CLTableNestedCell.vue.d.ts +0 -0
  136. /package/dist/components/{Table → CLTable}/CLTableRow.vue.d.ts +0 -0
  137. /package/dist/components/{Table → CLTable}/utils.d.ts +0 -0
  138. /package/dist/components/Providers/{Theme → CLThemeProvider}/utils.d.ts +0 -0
@@ -0,0 +1,832 @@
1
+ import { ref as h, provide as Ie } from "vue";
2
+ import { CLMode as l } from "../index.js";
3
+ var ce = typeof global == "object" && global && global.Object === Object && global, Me = typeof self == "object" && self && self.Object === Object && self, y = ce || Me || Function("return this")(), S = y.Symbol, de = Object.prototype, Re = de.hasOwnProperty, He = de.toString, w = S ? S.toStringTag : void 0;
4
+ function Ne(e) {
5
+ var t = Re.call(e, w), r = e[w];
6
+ try {
7
+ e[w] = void 0;
8
+ var n = !0;
9
+ } catch {
10
+ }
11
+ var o = He.call(e);
12
+ return n && (t ? e[w] = r : delete e[w]), o;
13
+ }
14
+ var ze = Object.prototype, Le = ze.toString;
15
+ function Ue(e) {
16
+ return Le.call(e);
17
+ }
18
+ var Ge = "[object Null]", qe = "[object Undefined]", X = S ? S.toStringTag : void 0;
19
+ function P(e) {
20
+ return e == null ? e === void 0 ? qe : Ge : X && X in Object(e) ? Ne(e) : Ue(e);
21
+ }
22
+ function A(e) {
23
+ return e != null && typeof e == "object";
24
+ }
25
+ var R = Array.isArray;
26
+ function v(e) {
27
+ var t = typeof e;
28
+ return e != null && (t == "object" || t == "function");
29
+ }
30
+ function le(e) {
31
+ return e;
32
+ }
33
+ var Ke = "[object AsyncFunction]", Ve = "[object Function]", We = "[object GeneratorFunction]", Xe = "[object Proxy]";
34
+ function U(e) {
35
+ if (!v(e))
36
+ return !1;
37
+ var t = P(e);
38
+ return t == Ve || t == We || t == Ke || t == Xe;
39
+ }
40
+ var I = y["__core-js_shared__"], Z = (function() {
41
+ var e = /[^.]+$/.exec(I && I.keys && I.keys.IE_PROTO || "");
42
+ return e ? "Symbol(src)_1." + e : "";
43
+ })();
44
+ function Ze(e) {
45
+ return !!Z && Z in e;
46
+ }
47
+ var Je = Function.prototype, Ye = Je.toString;
48
+ function Qe(e) {
49
+ if (e != null) {
50
+ try {
51
+ return Ye.call(e);
52
+ } catch {
53
+ }
54
+ try {
55
+ return e + "";
56
+ } catch {
57
+ }
58
+ }
59
+ return "";
60
+ }
61
+ var ke = /[\\^$.*+?()[\]{}|]/g, et = /^\[object .+?Constructor\]$/, tt = Function.prototype, rt = Object.prototype, nt = tt.toString, ot = rt.hasOwnProperty, at = RegExp(
62
+ "^" + nt.call(ot).replace(ke, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
63
+ );
64
+ function it(e) {
65
+ if (!v(e) || Ze(e))
66
+ return !1;
67
+ var t = U(e) ? at : et;
68
+ return t.test(Qe(e));
69
+ }
70
+ function st(e, t) {
71
+ return e?.[t];
72
+ }
73
+ function G(e, t) {
74
+ var r = st(e, t);
75
+ return it(r) ? r : void 0;
76
+ }
77
+ var J = Object.create, ft = /* @__PURE__ */ (function() {
78
+ function e() {
79
+ }
80
+ return function(t) {
81
+ if (!v(t))
82
+ return {};
83
+ if (J)
84
+ return J(t);
85
+ e.prototype = t;
86
+ var r = new e();
87
+ return e.prototype = void 0, r;
88
+ };
89
+ })();
90
+ function ut(e, t, r) {
91
+ switch (r.length) {
92
+ case 0:
93
+ return e.call(t);
94
+ case 1:
95
+ return e.call(t, r[0]);
96
+ case 2:
97
+ return e.call(t, r[0], r[1]);
98
+ case 3:
99
+ return e.call(t, r[0], r[1], r[2]);
100
+ }
101
+ return e.apply(t, r);
102
+ }
103
+ function ct(e, t) {
104
+ var r = -1, n = e.length;
105
+ for (t || (t = Array(n)); ++r < n; )
106
+ t[r] = e[r];
107
+ return t;
108
+ }
109
+ var dt = 800, lt = 16, pt = Date.now;
110
+ function ht(e) {
111
+ var t = 0, r = 0;
112
+ return function() {
113
+ var n = pt(), o = lt - (n - r);
114
+ if (r = n, o > 0) {
115
+ if (++t >= dt)
116
+ return arguments[0];
117
+ } else
118
+ t = 0;
119
+ return e.apply(void 0, arguments);
120
+ };
121
+ }
122
+ function bt(e) {
123
+ return function() {
124
+ return e;
125
+ };
126
+ }
127
+ var C = (function() {
128
+ try {
129
+ var e = G(Object, "defineProperty");
130
+ return e({}, "", {}), e;
131
+ } catch {
132
+ }
133
+ })(), gt = C ? function(e, t) {
134
+ return C(e, "toString", {
135
+ configurable: !0,
136
+ enumerable: !1,
137
+ value: bt(t),
138
+ writable: !0
139
+ });
140
+ } : le, vt = ht(gt), yt = 9007199254740991, _t = /^(?:0|[1-9]\d*)$/;
141
+ function pe(e, t) {
142
+ var r = typeof e;
143
+ return t = t ?? yt, !!t && (r == "number" || r != "symbol" && _t.test(e)) && e > -1 && e % 1 == 0 && e < t;
144
+ }
145
+ function q(e, t, r) {
146
+ t == "__proto__" && C ? C(e, t, {
147
+ configurable: !0,
148
+ enumerable: !0,
149
+ value: r,
150
+ writable: !0
151
+ }) : e[t] = r;
152
+ }
153
+ function $(e, t) {
154
+ return e === t || e !== e && t !== t;
155
+ }
156
+ var mt = Object.prototype, xt = mt.hasOwnProperty;
157
+ function Tt(e, t, r) {
158
+ var n = e[t];
159
+ (!(xt.call(e, t) && $(n, r)) || r === void 0 && !(t in e)) && q(e, t, r);
160
+ }
161
+ function wt(e, t, r, n) {
162
+ var o = !r;
163
+ r || (r = {});
164
+ for (var s = -1, f = t.length; ++s < f; ) {
165
+ var a = t[s], i = void 0;
166
+ i === void 0 && (i = e[a]), o ? q(r, a, i) : Tt(r, a, i);
167
+ }
168
+ return r;
169
+ }
170
+ var Y = Math.max;
171
+ function Ot(e, t, r) {
172
+ return t = Y(t === void 0 ? e.length - 1 : t, 0), function() {
173
+ for (var n = arguments, o = -1, s = Y(n.length - t, 0), f = Array(s); ++o < s; )
174
+ f[o] = n[t + o];
175
+ o = -1;
176
+ for (var a = Array(t + 1); ++o < t; )
177
+ a[o] = n[o];
178
+ return a[t] = r(f), ut(e, this, a);
179
+ };
180
+ }
181
+ function jt(e, t) {
182
+ return vt(Ot(e, t, le), e + "");
183
+ }
184
+ var At = 9007199254740991;
185
+ function he(e) {
186
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= At;
187
+ }
188
+ function K(e) {
189
+ return e != null && he(e.length) && !U(e);
190
+ }
191
+ function Dt(e, t, r) {
192
+ if (!v(r))
193
+ return !1;
194
+ var n = typeof t;
195
+ return (n == "number" ? K(r) && pe(t, r.length) : n == "string" && t in r) ? $(r[t], e) : !1;
196
+ }
197
+ function Et(e) {
198
+ return jt(function(t, r) {
199
+ var n = -1, o = r.length, s = o > 1 ? r[o - 1] : void 0, f = o > 2 ? r[2] : void 0;
200
+ for (s = e.length > 3 && typeof s == "function" ? (o--, s) : void 0, f && Dt(r[0], r[1], f) && (s = o < 3 ? void 0 : s, o = 1), t = Object(t); ++n < o; ) {
201
+ var a = r[n];
202
+ a && e(t, a, n, s);
203
+ }
204
+ return t;
205
+ });
206
+ }
207
+ var St = Object.prototype;
208
+ function be(e) {
209
+ var t = e && e.constructor, r = typeof t == "function" && t.prototype || St;
210
+ return e === r;
211
+ }
212
+ function Ct(e, t) {
213
+ for (var r = -1, n = Array(e); ++r < e; )
214
+ n[r] = t(r);
215
+ return n;
216
+ }
217
+ var Pt = "[object Arguments]";
218
+ function Q(e) {
219
+ return A(e) && P(e) == Pt;
220
+ }
221
+ var ge = Object.prototype, $t = ge.hasOwnProperty, Ft = ge.propertyIsEnumerable, H = Q(/* @__PURE__ */ (function() {
222
+ return arguments;
223
+ })()) ? Q : function(e) {
224
+ return A(e) && $t.call(e, "callee") && !Ft.call(e, "callee");
225
+ };
226
+ function Bt() {
227
+ return !1;
228
+ }
229
+ var ve = typeof exports == "object" && exports && !exports.nodeType && exports, k = ve && typeof module == "object" && module && !module.nodeType && module, It = k && k.exports === ve, ee = It ? y.Buffer : void 0, Mt = ee ? ee.isBuffer : void 0, ye = Mt || Bt, Rt = "[object Arguments]", Ht = "[object Array]", Nt = "[object Boolean]", zt = "[object Date]", Lt = "[object Error]", Ut = "[object Function]", Gt = "[object Map]", qt = "[object Number]", Kt = "[object Object]", Vt = "[object RegExp]", Wt = "[object Set]", Xt = "[object String]", Zt = "[object WeakMap]", Jt = "[object ArrayBuffer]", Yt = "[object DataView]", Qt = "[object Float32Array]", kt = "[object Float64Array]", er = "[object Int8Array]", tr = "[object Int16Array]", rr = "[object Int32Array]", nr = "[object Uint8Array]", or = "[object Uint8ClampedArray]", ar = "[object Uint16Array]", ir = "[object Uint32Array]", u = {};
230
+ u[Qt] = u[kt] = u[er] = u[tr] = u[rr] = u[nr] = u[or] = u[ar] = u[ir] = !0;
231
+ u[Rt] = u[Ht] = u[Jt] = u[Nt] = u[Yt] = u[zt] = u[Lt] = u[Ut] = u[Gt] = u[qt] = u[Kt] = u[Vt] = u[Wt] = u[Xt] = u[Zt] = !1;
232
+ function sr(e) {
233
+ return A(e) && he(e.length) && !!u[P(e)];
234
+ }
235
+ function fr(e) {
236
+ return function(t) {
237
+ return e(t);
238
+ };
239
+ }
240
+ var _e = typeof exports == "object" && exports && !exports.nodeType && exports, O = _e && typeof module == "object" && module && !module.nodeType && module, ur = O && O.exports === _e, M = ur && ce.process, te = (function() {
241
+ try {
242
+ var e = O && O.require && O.require("util").types;
243
+ return e || M && M.binding && M.binding("util");
244
+ } catch {
245
+ }
246
+ })(), re = te && te.isTypedArray, me = re ? fr(re) : sr;
247
+ function cr(e, t) {
248
+ var r = R(e), n = !r && H(e), o = !r && !n && ye(e), s = !r && !n && !o && me(e), f = r || n || o || s, a = f ? Ct(e.length, String) : [], i = a.length;
249
+ for (var c in e)
250
+ f && // Safari 9 has enumerable `arguments.length` in strict mode.
251
+ (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
252
+ o && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
253
+ s && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
254
+ pe(c, i)) || a.push(c);
255
+ return a;
256
+ }
257
+ function dr(e, t) {
258
+ return function(r) {
259
+ return e(t(r));
260
+ };
261
+ }
262
+ function lr(e) {
263
+ var t = [];
264
+ if (e != null)
265
+ for (var r in Object(e))
266
+ t.push(r);
267
+ return t;
268
+ }
269
+ var pr = Object.prototype, hr = pr.hasOwnProperty;
270
+ function br(e) {
271
+ if (!v(e))
272
+ return lr(e);
273
+ var t = be(e), r = [];
274
+ for (var n in e)
275
+ n == "constructor" && (t || !hr.call(e, n)) || r.push(n);
276
+ return r;
277
+ }
278
+ function xe(e) {
279
+ return K(e) ? cr(e) : br(e);
280
+ }
281
+ var j = G(Object, "create");
282
+ function gr() {
283
+ this.__data__ = j ? j(null) : {}, this.size = 0;
284
+ }
285
+ function vr(e) {
286
+ var t = this.has(e) && delete this.__data__[e];
287
+ return this.size -= t ? 1 : 0, t;
288
+ }
289
+ var yr = "__lodash_hash_undefined__", _r = Object.prototype, mr = _r.hasOwnProperty;
290
+ function xr(e) {
291
+ var t = this.__data__;
292
+ if (j) {
293
+ var r = t[e];
294
+ return r === yr ? void 0 : r;
295
+ }
296
+ return mr.call(t, e) ? t[e] : void 0;
297
+ }
298
+ var Tr = Object.prototype, wr = Tr.hasOwnProperty;
299
+ function Or(e) {
300
+ var t = this.__data__;
301
+ return j ? t[e] !== void 0 : wr.call(t, e);
302
+ }
303
+ var jr = "__lodash_hash_undefined__";
304
+ function Ar(e, t) {
305
+ var r = this.__data__;
306
+ return this.size += this.has(e) ? 0 : 1, r[e] = j && t === void 0 ? jr : t, this;
307
+ }
308
+ function g(e) {
309
+ var t = -1, r = e == null ? 0 : e.length;
310
+ for (this.clear(); ++t < r; ) {
311
+ var n = e[t];
312
+ this.set(n[0], n[1]);
313
+ }
314
+ }
315
+ g.prototype.clear = gr;
316
+ g.prototype.delete = vr;
317
+ g.prototype.get = xr;
318
+ g.prototype.has = Or;
319
+ g.prototype.set = Ar;
320
+ function Dr() {
321
+ this.__data__ = [], this.size = 0;
322
+ }
323
+ function F(e, t) {
324
+ for (var r = e.length; r--; )
325
+ if ($(e[r][0], t))
326
+ return r;
327
+ return -1;
328
+ }
329
+ var Er = Array.prototype, Sr = Er.splice;
330
+ function Cr(e) {
331
+ var t = this.__data__, r = F(t, e);
332
+ if (r < 0)
333
+ return !1;
334
+ var n = t.length - 1;
335
+ return r == n ? t.pop() : Sr.call(t, r, 1), --this.size, !0;
336
+ }
337
+ function Pr(e) {
338
+ var t = this.__data__, r = F(t, e);
339
+ return r < 0 ? void 0 : t[r][1];
340
+ }
341
+ function $r(e) {
342
+ return F(this.__data__, e) > -1;
343
+ }
344
+ function Fr(e, t) {
345
+ var r = this.__data__, n = F(r, e);
346
+ return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
347
+ }
348
+ function p(e) {
349
+ var t = -1, r = e == null ? 0 : e.length;
350
+ for (this.clear(); ++t < r; ) {
351
+ var n = e[t];
352
+ this.set(n[0], n[1]);
353
+ }
354
+ }
355
+ p.prototype.clear = Dr;
356
+ p.prototype.delete = Cr;
357
+ p.prototype.get = Pr;
358
+ p.prototype.has = $r;
359
+ p.prototype.set = Fr;
360
+ var Te = G(y, "Map");
361
+ function Br() {
362
+ this.size = 0, this.__data__ = {
363
+ hash: new g(),
364
+ map: new (Te || p)(),
365
+ string: new g()
366
+ };
367
+ }
368
+ function Ir(e) {
369
+ var t = typeof e;
370
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
371
+ }
372
+ function B(e, t) {
373
+ var r = e.__data__;
374
+ return Ir(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
375
+ }
376
+ function Mr(e) {
377
+ var t = B(this, e).delete(e);
378
+ return this.size -= t ? 1 : 0, t;
379
+ }
380
+ function Rr(e) {
381
+ return B(this, e).get(e);
382
+ }
383
+ function Hr(e) {
384
+ return B(this, e).has(e);
385
+ }
386
+ function Nr(e, t) {
387
+ var r = B(this, e), n = r.size;
388
+ return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
389
+ }
390
+ function _(e) {
391
+ var t = -1, r = e == null ? 0 : e.length;
392
+ for (this.clear(); ++t < r; ) {
393
+ var n = e[t];
394
+ this.set(n[0], n[1]);
395
+ }
396
+ }
397
+ _.prototype.clear = Br;
398
+ _.prototype.delete = Mr;
399
+ _.prototype.get = Rr;
400
+ _.prototype.has = Hr;
401
+ _.prototype.set = Nr;
402
+ var we = dr(Object.getPrototypeOf, Object), zr = "[object Object]", Lr = Function.prototype, Ur = Object.prototype, Oe = Lr.toString, Gr = Ur.hasOwnProperty, qr = Oe.call(Object);
403
+ function Kr(e) {
404
+ if (!A(e) || P(e) != zr)
405
+ return !1;
406
+ var t = we(e);
407
+ if (t === null)
408
+ return !0;
409
+ var r = Gr.call(t, "constructor") && t.constructor;
410
+ return typeof r == "function" && r instanceof r && Oe.call(r) == qr;
411
+ }
412
+ function Vr() {
413
+ this.__data__ = new p(), this.size = 0;
414
+ }
415
+ function Wr(e) {
416
+ var t = this.__data__, r = t.delete(e);
417
+ return this.size = t.size, r;
418
+ }
419
+ function Xr(e) {
420
+ return this.__data__.get(e);
421
+ }
422
+ function Zr(e) {
423
+ return this.__data__.has(e);
424
+ }
425
+ var Jr = 200;
426
+ function Yr(e, t) {
427
+ var r = this.__data__;
428
+ if (r instanceof p) {
429
+ var n = r.__data__;
430
+ if (!Te || n.length < Jr - 1)
431
+ return n.push([e, t]), this.size = ++r.size, this;
432
+ r = this.__data__ = new _(n);
433
+ }
434
+ return r.set(e, t), this.size = r.size, this;
435
+ }
436
+ function m(e) {
437
+ var t = this.__data__ = new p(e);
438
+ this.size = t.size;
439
+ }
440
+ m.prototype.clear = Vr;
441
+ m.prototype.delete = Wr;
442
+ m.prototype.get = Xr;
443
+ m.prototype.has = Zr;
444
+ m.prototype.set = Yr;
445
+ var je = typeof exports == "object" && exports && !exports.nodeType && exports, ne = je && typeof module == "object" && module && !module.nodeType && module, Qr = ne && ne.exports === je, oe = Qr ? y.Buffer : void 0;
446
+ oe && oe.allocUnsafe;
447
+ function kr(e, t) {
448
+ return e.slice();
449
+ }
450
+ var ae = y.Uint8Array;
451
+ function en(e) {
452
+ var t = new e.constructor(e.byteLength);
453
+ return new ae(t).set(new ae(e)), t;
454
+ }
455
+ function tn(e, t) {
456
+ var r = en(e.buffer);
457
+ return new e.constructor(r, e.byteOffset, e.length);
458
+ }
459
+ function rn(e) {
460
+ return typeof e.constructor == "function" && !be(e) ? ft(we(e)) : {};
461
+ }
462
+ function nn(e) {
463
+ return function(t, r, n) {
464
+ for (var o = -1, s = Object(t), f = n(t), a = f.length; a--; ) {
465
+ var i = f[++o];
466
+ if (r(s[i], i, s) === !1)
467
+ break;
468
+ }
469
+ return t;
470
+ };
471
+ }
472
+ var on = nn();
473
+ function N(e, t, r) {
474
+ (r !== void 0 && !$(e[t], r) || r === void 0 && !(t in e)) && q(e, t, r);
475
+ }
476
+ function an(e) {
477
+ return A(e) && K(e);
478
+ }
479
+ function z(e, t) {
480
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
481
+ return e[t];
482
+ }
483
+ function sn(e) {
484
+ return wt(e, xe(e));
485
+ }
486
+ function fn(e, t, r, n, o, s, f) {
487
+ var a = z(e, r), i = z(t, r), c = f.get(i);
488
+ if (c) {
489
+ N(e, r, c);
490
+ return;
491
+ }
492
+ var d = s ? s(a, i, r + "", e, t, f) : void 0, b = d === void 0;
493
+ if (b) {
494
+ var x = R(i), T = !x && ye(i), D = !x && !T && me(i);
495
+ d = i, x || T || D ? R(a) ? d = a : an(a) ? d = ct(a) : T ? (b = !1, d = kr(i)) : D ? (b = !1, d = tn(i)) : d = [] : Kr(i) || H(i) ? (d = a, H(a) ? d = sn(a) : (!v(a) || U(a)) && (d = rn(i))) : b = !1;
496
+ }
497
+ b && (f.set(i, d), o(d, i, n, s, f), f.delete(i)), N(e, r, d);
498
+ }
499
+ function Ae(e, t, r, n, o) {
500
+ e !== t && on(t, function(s, f) {
501
+ if (o || (o = new m()), v(s))
502
+ fn(e, t, f, r, Ae, n, o);
503
+ else {
504
+ var a = n ? n(z(e, f), s, f + "", e, t, o) : void 0;
505
+ a === void 0 && (a = s), N(e, f, a);
506
+ }
507
+ }, xe);
508
+ }
509
+ var un = Et(function(e, t, r) {
510
+ Ae(e, t, r);
511
+ });
512
+ const ln = () => {
513
+ let e, t, r, n = !1, o, s;
514
+ const f = (i) => {
515
+ if (n) return;
516
+ t === void 0 && (t = i);
517
+ const c = i - t;
518
+ r !== i && s?.(c), o && c < o && (r = i, n || (e = window.requestAnimationFrame(f)));
519
+ }, a = () => {
520
+ e = void 0, t = void 0, r = void 0, n = !1, o = void 0;
521
+ };
522
+ return {
523
+ start: (i, c) => {
524
+ s = c, o = i, e = window.requestAnimationFrame(f);
525
+ },
526
+ stop: () => {
527
+ n = !0, e && window.cancelAnimationFrame(e), a();
528
+ }
529
+ };
530
+ }, pn = ({
531
+ parent: e,
532
+ child: t,
533
+ threshold: r = 0.1,
534
+ leftOffset: n = 0,
535
+ rightOffset: o = 0
536
+ }) => {
537
+ const {
538
+ top: s,
539
+ left: f,
540
+ bottom: a,
541
+ right: i,
542
+ width: c,
543
+ height: d
544
+ } = e?.getBoundingClientRect() || {}, {
545
+ top: b,
546
+ left: x,
547
+ bottom: T,
548
+ right: D
549
+ } = t.getBoundingClientRect() || {};
550
+ let Pe = f + n, $e = i - o, Fe = c - (n + o), V = 0, W = 0;
551
+ return x <= $e && (V = (D - Pe) / Fe * 100 / 100), b <= a && (W = (T - s) / d * 100 / 100), V > r && W > r;
552
+ }, hn = () => De ? Math.max(
553
+ ...Array.from(
554
+ document?.querySelectorAll("body *"),
555
+ (e) => parseFloat(window?.getComputedStyle(e).zIndex)
556
+ ).filter((e) => !Number.isNaN(e)),
557
+ 0
558
+ ) : 0, De = typeof document < "u", bn = (e) => e != null && typeof e.valueOf() == "string", gn = (e) => {
559
+ if (!e) return !0;
560
+ let t = 0;
561
+ const r = ["#comment"];
562
+ return e.childNodes.forEach((n) => {
563
+ !r.includes(n.nodeName) && n.childNodes.length && t++;
564
+ }), t === 0;
565
+ }, E = {
566
+ borderRadius: void 0,
567
+ colors: {
568
+ primary: {
569
+ 0: "#ffffff",
570
+ 100: "#def5ff",
571
+ 200: "#b6eeff",
572
+ 300: "#75e3ff",
573
+ 400: "#2cd6ff",
574
+ 500: "#00c8ff",
575
+ 600: "#009cd4",
576
+ 700: "#007cab",
577
+ 800: "#00688d",
578
+ 900: "#065674"
579
+ },
580
+ secondary: {
581
+ 0: "#ffffff",
582
+ 100: "#DEE2E8",
583
+ 200: "#BFC7D4",
584
+ 300: "#9EAABD",
585
+ 400: "#8090A8",
586
+ 500: "#61738E",
587
+ 600: "#4F5D73",
588
+ 700: "#3A4555",
589
+ 800: "#272F3A",
590
+ 900: "#13161B"
591
+ },
592
+ neutral: {
593
+ 0: "#ffffff",
594
+ 100: "#F7F7F7",
595
+ 200: "#F2F2F2",
596
+ 300: "#EBEBEB",
597
+ 400: "#E6E6E6",
598
+ 500: "#DEDEDE",
599
+ 600: "#B3B3B3",
600
+ 700: "#858585",
601
+ 800: "#595959",
602
+ 900: "#2B2B2B"
603
+ },
604
+ danger: {
605
+ 0: "#ffffff",
606
+ 100: "#ffd3ce",
607
+ 200: "#ffb2ac",
608
+ 300: "#ff8e88",
609
+ 400: "#fe6561",
610
+ 500: "#e74c4c",
611
+ 600: "#d20e27",
612
+ 700: "#9b0018",
613
+ 800: "#63000c",
614
+ 900: "#360003"
615
+ },
616
+ warning: {
617
+ 0: "#ffffff",
618
+ 100: "#ffeaba",
619
+ 200: "#ffdf95",
620
+ 300: "#ffd36a",
621
+ 400: "#fdc836",
622
+ 500: "#f5be1a",
623
+ 600: "#c79800",
624
+ 700: "#8a6900",
625
+ 800: "#4f3b00",
626
+ 900: "#211700"
627
+ },
628
+ success: {
629
+ 0: "#ffffff",
630
+ 100: "#9effb2",
631
+ 200: "#69f68d",
632
+ 300: "#56e57e",
633
+ 400: "#41d56e",
634
+ 500: "#22c55d",
635
+ 600: "#00a147",
636
+ 700: "#007230",
637
+ 800: "#00441a",
638
+ 900: "#001f08"
639
+ },
640
+ info: {
641
+ 0: "#ffffff",
642
+ 100: "#cfe2ff",
643
+ 200: "#afceff",
644
+ 300: "#8eb9ff",
645
+ 400: "#6ca4ff",
646
+ 500: "#4e8ff8",
647
+ 600: "#2470e7",
648
+ 700: "#004cb5",
649
+ 800: "#002e73",
650
+ 900: "#00153e"
651
+ }
652
+ },
653
+ darkMode: !1,
654
+ fontFamily: "ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"
655
+ }, vn = {
656
+ contrast: {
657
+ [l.Light]: {
658
+ border: 900,
659
+ borderHover: 700,
660
+ bg: 900,
661
+ disabled: 500,
662
+ focus: 900,
663
+ hover: 800,
664
+ shadow: 900,
665
+ text: 0,
666
+ textDisabled: 800
667
+ },
668
+ [l.Dark]: {
669
+ border: 400,
670
+ borderHover: 700,
671
+ bg: 100,
672
+ disabled: 500,
673
+ focus: 400,
674
+ hover: 200,
675
+ shadow: 400,
676
+ text: 900,
677
+ textDisabled: 500
678
+ }
679
+ },
680
+ ghost: {
681
+ [l.Light]: {
682
+ disabled: 100,
683
+ focus: 700,
684
+ text: 800,
685
+ textDisabled: 800
686
+ },
687
+ [l.Dark]: {
688
+ disabled: 700,
689
+ focus: 300,
690
+ text: 300,
691
+ textDisabled: 700
692
+ }
693
+ },
694
+ outline: {
695
+ [l.Light]: {
696
+ border: 300,
697
+ borderHover: 700,
698
+ disabled: 400,
699
+ focus: 700,
700
+ hover: 100,
701
+ text: 900,
702
+ textBody: 700,
703
+ textDisabled: 800
704
+ },
705
+ [l.Dark]: {
706
+ border: 500,
707
+ borderHover: 500,
708
+ disabled: 800,
709
+ focus: 300,
710
+ hover: 900,
711
+ text: 300,
712
+ textBody: 300,
713
+ textDisabled: 700
714
+ }
715
+ },
716
+ soft: {
717
+ [l.Light]: {
718
+ bg: 100,
719
+ border: 300,
720
+ borderHover: 700,
721
+ disabled: 100,
722
+ focus: 400,
723
+ hover: 200,
724
+ shadow: 200,
725
+ text: 900,
726
+ textDisabled: 800
727
+ },
728
+ [l.Dark]: {
729
+ bg: 900,
730
+ border: 100,
731
+ borderHover: 300,
732
+ disabled: 800,
733
+ focus: 100,
734
+ hover: 800,
735
+ shadow: 800,
736
+ text: 300,
737
+ textDisabled: 500
738
+ }
739
+ },
740
+ solid: {
741
+ [l.Light]: {
742
+ bg: 600,
743
+ border: 700,
744
+ borderHover: 900,
745
+ disabled: 500,
746
+ focus: 700,
747
+ hover: 500,
748
+ shadow: 700,
749
+ text: 0,
750
+ textDisabled: 100
751
+ },
752
+ [l.Dark]: {
753
+ bg: 400,
754
+ border: 100,
755
+ borderHover: 300,
756
+ disabled: 600,
757
+ focus: 100,
758
+ hover: 500,
759
+ shadow: 100,
760
+ text: 900,
761
+ textDisabled: 800
762
+ }
763
+ },
764
+ text: {
765
+ [l.Light]: {
766
+ border: 100,
767
+ borderHover: 300,
768
+ disabled: 100,
769
+ focus: 800,
770
+ hover: 200,
771
+ text: 800,
772
+ textBody: 300,
773
+ textDisabled: 700
774
+ },
775
+ [l.Dark]: {
776
+ border: 300,
777
+ borderHover: 500,
778
+ disabled: 800,
779
+ focus: 300,
780
+ hover: 900,
781
+ text: 300,
782
+ textBody: 800,
783
+ textDisabled: 500
784
+ }
785
+ }
786
+ }, Ee = h(), Se = h(), Ce = h(), L = h({
787
+ primary: {},
788
+ secondary: {},
789
+ neutral: {},
790
+ danger: {},
791
+ warning: {},
792
+ success: {},
793
+ info: {}
794
+ }), ie = (e) => {
795
+ Ee.value = e;
796
+ }, se = (e) => {
797
+ L.value = { ...L.value, ...e };
798
+ }, fe = (e) => {
799
+ Se.value = e;
800
+ }, ue = (e) => {
801
+ Ce.value = e, De && e && window?.document.documentElement.style.setProperty(
802
+ "--clll-font-family",
803
+ e
804
+ );
805
+ }, yn = (e) => {
806
+ const t = e?.borderRadius || E.borderRadius, r = h(t), n = un(E.colors, e?.colors), o = h(n), s = e?.darkMode || E.darkMode, f = h(s ?? !1), a = e?.fontFamily || E.fontFamily, i = h(a);
807
+ o.value && se(o.value), ie(r.value), fe(f.value), ue(i.value), Ie("clll-theme", {
808
+ borderRadius: Ee,
809
+ colors: L,
810
+ darkMode: Se,
811
+ fontFamily: Ce,
812
+ setBorderRadius: ie,
813
+ setColors: se,
814
+ setDarkMode: fe,
815
+ setFontFamily: ue
816
+ });
817
+ };
818
+ export {
819
+ vn as C,
820
+ E as D,
821
+ ie as a,
822
+ se as b,
823
+ fe as c,
824
+ ue as d,
825
+ ln as e,
826
+ bn as f,
827
+ hn as g,
828
+ gn as h,
829
+ De as i,
830
+ pn as j,
831
+ yn as s
832
+ };