@hai-dev/ui-kit 1.2.1 → 1.2.2

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 (46) hide show
  1. package/dist/assets/button.css +1 -1
  2. package/dist/assets/circular-progress-loader.css +1 -1
  3. package/dist/assets/code-input.css +1 -1
  4. package/dist/assets/error-upload-dialog.css +1 -1
  5. package/dist/assets/upload-dialog-errors.css +1 -1
  6. package/dist/button.module-BnTmlu-U.js +40 -0
  7. package/dist/components/button/button-content.js +8 -8
  8. package/dist/components/button/button.js +21 -22
  9. package/dist/components/button/utils/get-button-classnames.js +10 -10
  10. package/dist/components/circular-progress-loader/circular-progress-loader.js +25 -28
  11. package/dist/components/code-input/code-input.js +114 -915
  12. package/dist/components/code-input/types.d.ts +1 -0
  13. package/dist/components/photo-crop-uploader/components/error-upload-dialog/error-upload-dialog.js +25 -93
  14. package/dist/components/photo-crop-uploader/components/photo-list/photo-list.js +38 -120
  15. package/dist/components/photo-crop-uploader/components/upload-button/upload-button.js +16 -16
  16. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog-errors.js +4 -5
  17. package/dist/components/photo-crop-uploader/components/upload-dialog/upload-dialog.js +111 -403
  18. package/dist/components/photo-crop-uploader/photo-crop-uploader.js +12 -12
  19. package/dist/components/photo-crop-uploader/utils/draw-cropped-image.js +8 -8
  20. package/dist/components/photo-crop-uploader/utils/get-cropped-source.js +10 -10
  21. package/dist/components/photo-crop-uploader/utils/get-default-cropped-photo.js +10 -10
  22. package/dist/components/photo-crop-uploader/utils/get-photo-crop.js +18 -18
  23. package/dist/upload-dialog-errors-B7V0G-Ey.js +71 -0
  24. package/package.json +1 -1
  25. package/dist/Box-BgNAyP2L.js +0 -56
  26. package/dist/Button-DTV8ztWw.js +0 -660
  27. package/dist/ButtonBase-C4krg_zd.js +0 -913
  28. package/dist/CircularProgress-BoaEg4rF.js +0 -274
  29. package/dist/Dialog-BK9lMUKV.js +0 -2632
  30. package/dist/DialogTitle-ByUfLB5M.js +0 -254
  31. package/dist/Typography-BMyz0ZCh.js +0 -255
  32. package/dist/assets/inter.css +0 -1
  33. package/dist/button.module-C0UNQnBk.js +0 -40
  34. package/dist/chainPropTypes-DgqFdXGi.js +0 -532
  35. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  36. package/dist/createTheme-BoOmbNvy.js +0 -4119
  37. package/dist/extendSxProp-BaUCVMKV.js +0 -50
  38. package/dist/index-CcueJ2sD.js +0 -432
  39. package/dist/index-YnD2EP-S.js +0 -43
  40. package/dist/index-h5oTv8GF.js +0 -91
  41. package/dist/isHostComponent-Dm_U9uOy.js +0 -14
  42. package/dist/memoTheme-BYBJ2Fe6.js +0 -15
  43. package/dist/refType-CsohaiiT.js +0 -60
  44. package/dist/upload-dialog-errors-BwQsTOc3.js +0 -367
  45. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  46. package/dist/useId-CK6Kn3Tn.js +0 -21
@@ -1,40 +0,0 @@
1
- import './assets/button.css';const i = "_button_1idvi_1", t = "_startContent_1idvi_9", _ = "_text_1idvi_16", e = "_endContent_1idvi_19", n = "_link_1idvi_26", d = "_description_1idvi_35", s = "_withDescription_1idvi_50", r = "_specific_1idvi_53", l = "_medium_1idvi_70", o = "_smallMedium_1idvi_83", a = "_small_1idvi_83", c = "_smaller_1idvi_107", v = "_smallest_1idvi_119", u = "_tiny_1idvi_131", m = "_filled_1idvi_143", g = "_white_1idvi_143", k = "_dark_1idvi_153", p = "_darkerBlue_1idvi_163", h = "_blue_1idvi_170", f = "_red_1idvi_177", y = "_lightRed_1idvi_184", b = "_gray_1idvi_188", G = "_darkGray_1idvi_192", x = "_lightGray_1idvi_196", w = "_darkBlue_1idvi_200", B = "_lightGreen_1idvi_207", C = "_green_1idvi_211", T = "_orange_1idvi_215", D = "_darkOrange_1idvi_219", M = "_outlined_1idvi_223", O = "_disabled_1idvi_313", R = "_noTextTransform_1idvi_316", S = "_uppercase_1idvi_319", j = "_leftSide_1idvi_322", q = {
2
- button: i,
3
- startContent: t,
4
- text: _,
5
- endContent: e,
6
- link: n,
7
- description: d,
8
- withDescription: s,
9
- specific: r,
10
- default: "_default_1idvi_57",
11
- medium: l,
12
- smallMedium: o,
13
- small: a,
14
- smaller: c,
15
- smallest: v,
16
- tiny: u,
17
- filled: m,
18
- white: g,
19
- dark: k,
20
- darkerBlue: p,
21
- blue: h,
22
- red: f,
23
- lightRed: y,
24
- gray: b,
25
- darkGray: G,
26
- lightGray: x,
27
- darkBlue: w,
28
- lightGreen: B,
29
- green: C,
30
- orange: T,
31
- darkOrange: D,
32
- outlined: M,
33
- disabled: O,
34
- noTextTransform: R,
35
- uppercase: S,
36
- leftSide: j
37
- };
38
- export {
39
- q as s
40
- };
@@ -1,532 +0,0 @@
1
- import { m as ae, w as _e, f as Re, u as K, n as be, o as xe, E as $e, p as Ae, q as B, k as M, t as ge, s as Ce, h as we, d as Z, i as Oe, b as Me, r as Q, P as z, e as Fe, T as Ne } from "./createTheme-BoOmbNvy.js";
2
- import * as I from "react";
3
- import "react/jsx-runtime";
4
- var V = { exports: {} }, f = {};
5
- var ee;
6
- function Ie() {
7
- if (ee) return f;
8
- ee = 1;
9
- var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, v = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, T = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, P = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, h = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
10
- function p(r) {
11
- if (typeof r == "object" && r !== null) {
12
- var y = r.$$typeof;
13
- switch (y) {
14
- case t:
15
- switch (r = r.type, r) {
16
- case v:
17
- case d:
18
- case o:
19
- case u:
20
- case i:
21
- case T:
22
- return r;
23
- default:
24
- switch (r = r && r.$$typeof, r) {
25
- case c:
26
- case m:
27
- case h:
28
- case P:
29
- case a:
30
- return r;
31
- default:
32
- return y;
33
- }
34
- }
35
- case n:
36
- return y;
37
- }
38
- }
39
- }
40
- function S(r) {
41
- return p(r) === d;
42
- }
43
- return f.AsyncMode = v, f.ConcurrentMode = d, f.ContextConsumer = c, f.ContextProvider = a, f.Element = t, f.ForwardRef = m, f.Fragment = o, f.Lazy = h, f.Memo = P, f.Portal = n, f.Profiler = u, f.StrictMode = i, f.Suspense = T, f.isAsyncMode = function(r) {
44
- return S(r) || p(r) === v;
45
- }, f.isConcurrentMode = S, f.isContextConsumer = function(r) {
46
- return p(r) === c;
47
- }, f.isContextProvider = function(r) {
48
- return p(r) === a;
49
- }, f.isElement = function(r) {
50
- return typeof r == "object" && r !== null && r.$$typeof === t;
51
- }, f.isForwardRef = function(r) {
52
- return p(r) === m;
53
- }, f.isFragment = function(r) {
54
- return p(r) === o;
55
- }, f.isLazy = function(r) {
56
- return p(r) === h;
57
- }, f.isMemo = function(r) {
58
- return p(r) === P;
59
- }, f.isPortal = function(r) {
60
- return p(r) === n;
61
- }, f.isProfiler = function(r) {
62
- return p(r) === u;
63
- }, f.isStrictMode = function(r) {
64
- return p(r) === i;
65
- }, f.isSuspense = function(r) {
66
- return p(r) === T;
67
- }, f.isValidElementType = function(r) {
68
- return typeof r == "string" || typeof r == "function" || r === o || r === d || r === u || r === i || r === T || r === w || typeof r == "object" && r !== null && (r.$$typeof === h || r.$$typeof === P || r.$$typeof === a || r.$$typeof === c || r.$$typeof === m || r.$$typeof === g || r.$$typeof === C || r.$$typeof === R || r.$$typeof === _);
69
- }, f.typeOf = p, f;
70
- }
71
- var l = {};
72
- var te;
73
- function De() {
74
- return te || (te = 1, process.env.NODE_ENV !== "production" && (function() {
75
- var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, u = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, a = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, c = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, v = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, T = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, w = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, P = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, h = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, _ = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, g = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, C = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
76
- function p(s) {
77
- return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
78
- s === o || s === d || s === u || s === i || s === T || s === w || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === P || s.$$typeof === a || s.$$typeof === c || s.$$typeof === m || s.$$typeof === g || s.$$typeof === C || s.$$typeof === R || s.$$typeof === _);
79
- }
80
- function S(s) {
81
- if (typeof s == "object" && s !== null) {
82
- var k = s.$$typeof;
83
- switch (k) {
84
- case t:
85
- var j = s.type;
86
- switch (j) {
87
- case v:
88
- case d:
89
- case o:
90
- case u:
91
- case i:
92
- case T:
93
- return j;
94
- default:
95
- var G = j && j.$$typeof;
96
- switch (G) {
97
- case c:
98
- case m:
99
- case h:
100
- case P:
101
- case a:
102
- return G;
103
- default:
104
- return k;
105
- }
106
- }
107
- case n:
108
- return k;
109
- }
110
- }
111
- }
112
- var r = v, y = d, E = c, A = a, $ = t, W = m, D = o, F = h, b = P, N = n, x = u, L = i, Y = T, X = !1;
113
- function fe(s) {
114
- return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), J(s) || S(s) === v;
115
- }
116
- function J(s) {
117
- return S(s) === d;
118
- }
119
- function le(s) {
120
- return S(s) === c;
121
- }
122
- function de(s) {
123
- return S(s) === a;
124
- }
125
- function ye(s) {
126
- return typeof s == "object" && s !== null && s.$$typeof === t;
127
- }
128
- function me(s) {
129
- return S(s) === m;
130
- }
131
- function pe(s) {
132
- return S(s) === o;
133
- }
134
- function ve(s) {
135
- return S(s) === h;
136
- }
137
- function Se(s) {
138
- return S(s) === P;
139
- }
140
- function he(s) {
141
- return S(s) === n;
142
- }
143
- function Ee(s) {
144
- return S(s) === u;
145
- }
146
- function Pe(s) {
147
- return S(s) === i;
148
- }
149
- function Te(s) {
150
- return S(s) === T;
151
- }
152
- l.AsyncMode = r, l.ConcurrentMode = y, l.ContextConsumer = E, l.ContextProvider = A, l.Element = $, l.ForwardRef = W, l.Fragment = D, l.Lazy = F, l.Memo = b, l.Portal = N, l.Profiler = x, l.StrictMode = L, l.Suspense = Y, l.isAsyncMode = fe, l.isConcurrentMode = J, l.isContextConsumer = le, l.isContextProvider = de, l.isElement = ye, l.isForwardRef = me, l.isFragment = pe, l.isLazy = ve, l.isMemo = Se, l.isPortal = he, l.isProfiler = Ee, l.isStrictMode = Pe, l.isSuspense = Te, l.isValidElementType = p, l.typeOf = S;
153
- })()), l;
154
- }
155
- var re;
156
- function Le() {
157
- return re || (re = 1, process.env.NODE_ENV === "production" ? V.exports = Ie() : V.exports = De()), V.exports;
158
- }
159
- var H, ne;
160
- function Ye() {
161
- if (ne) return H;
162
- ne = 1;
163
- var e = Le(), t = {
164
- childContextTypes: !0,
165
- contextType: !0,
166
- contextTypes: !0,
167
- defaultProps: !0,
168
- displayName: !0,
169
- getDefaultProps: !0,
170
- getDerivedStateFromError: !0,
171
- getDerivedStateFromProps: !0,
172
- mixins: !0,
173
- propTypes: !0,
174
- type: !0
175
- }, n = {
176
- name: !0,
177
- length: !0,
178
- prototype: !0,
179
- caller: !0,
180
- callee: !0,
181
- arguments: !0,
182
- arity: !0
183
- }, o = {
184
- $$typeof: !0,
185
- render: !0,
186
- defaultProps: !0,
187
- displayName: !0,
188
- propTypes: !0
189
- }, i = {
190
- $$typeof: !0,
191
- compare: !0,
192
- defaultProps: !0,
193
- displayName: !0,
194
- propTypes: !0,
195
- type: !0
196
- }, u = {};
197
- u[e.ForwardRef] = o, u[e.Memo] = i;
198
- function a(h) {
199
- return e.isMemo(h) ? i : u[h.$$typeof] || t;
200
- }
201
- var c = Object.defineProperty, v = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, m = Object.getOwnPropertyDescriptor, T = Object.getPrototypeOf, w = Object.prototype;
202
- function P(h, _, g) {
203
- if (typeof _ != "string") {
204
- if (w) {
205
- var C = T(_);
206
- C && C !== w && P(h, C, g);
207
- }
208
- var R = v(_);
209
- d && (R = R.concat(d(_)));
210
- for (var p = a(h), S = a(_), r = 0; r < R.length; ++r) {
211
- var y = R[r];
212
- if (!n[y] && !(g && g[y]) && !(S && S[y]) && !(p && p[y])) {
213
- var E = m(_, y);
214
- try {
215
- c(h, y, E);
216
- } catch {
217
- }
218
- }
219
- }
220
- }
221
- return h;
222
- }
223
- return H = P, H;
224
- }
225
- Ye();
226
- var oe = function(t, n) {
227
- var o = arguments;
228
- if (n == null || !xe.call(n, "css"))
229
- return I.createElement.apply(void 0, o);
230
- var i = o.length, u = new Array(i);
231
- u[0] = $e, u[1] = Ae(t, n);
232
- for (var a = 2; a < i; a++)
233
- u[a] = o[a];
234
- return I.createElement.apply(null, u);
235
- };
236
- (function(e) {
237
- var t;
238
- t || (t = e.JSX || (e.JSX = {}));
239
- })(oe || (oe = {}));
240
- var ot = /* @__PURE__ */ _e(function(e, t) {
241
- var n = e.styles, o = ae([n], void 0, I.useContext(Re)), i = I.useRef();
242
- return K(function() {
243
- var u = t.key + "-global", a = new t.sheet.constructor({
244
- key: u,
245
- nonce: t.sheet.nonce,
246
- container: t.sheet.container,
247
- speedy: t.sheet.isSpeedy
248
- }), c = !1, v = document.querySelector('style[data-emotion="' + u + " " + o.name + '"]');
249
- return t.sheet.tags.length && (a.before = t.sheet.tags[0]), v !== null && (c = !0, v.setAttribute("data-emotion", u), a.hydrate([v])), i.current = [a, c], function() {
250
- a.flush();
251
- };
252
- }, [t]), K(function() {
253
- var u = i.current, a = u[0], c = u[1];
254
- if (c) {
255
- u[1] = !1;
256
- return;
257
- }
258
- if (o.next !== void 0 && be(t, o.next, !0), a.tags.length) {
259
- var v = a.tags[a.tags.length - 1].nextElementSibling;
260
- a.before = v, a.flush();
261
- }
262
- t.insert("", o, a, !1);
263
- }, [t, o.name]), null;
264
- });
265
- function je() {
266
- for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
267
- t[n] = arguments[n];
268
- return ae(t);
269
- }
270
- function st() {
271
- var e = je.apply(void 0, arguments), t = "animation-" + e.name;
272
- return {
273
- name: t,
274
- styles: "@keyframes " + t + "{" + e.styles + "}",
275
- anim: 1,
276
- toString: function() {
277
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
278
- }
279
- };
280
- }
281
- function ie(e, t = "") {
282
- return e.displayName || e.name || t;
283
- }
284
- function se(e, t, n) {
285
- const o = ie(t);
286
- return e.displayName || (o !== "" ? `${n}(${o})` : n);
287
- }
288
- function Ve(e) {
289
- if (e != null) {
290
- if (typeof e == "string")
291
- return e;
292
- if (typeof e == "function")
293
- return ie(e, "Component");
294
- if (typeof e == "object")
295
- switch (e.$$typeof) {
296
- case B.ForwardRef:
297
- return se(e, e.render, "ForwardRef");
298
- case B.Memo:
299
- return se(e, e.type, "memo");
300
- default:
301
- return;
302
- }
303
- }
304
- }
305
- function qe(e) {
306
- const {
307
- variants: t,
308
- ...n
309
- } = e, o = {
310
- variants: t,
311
- style: M(n),
312
- isProcessed: !0
313
- };
314
- return o.style === n || t && t.forEach((i) => {
315
- typeof i.style != "function" && (i.style = M(i.style));
316
- }), o;
317
- }
318
- const ze = we();
319
- function U(e) {
320
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
321
- }
322
- function O(e, t) {
323
- return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
324
- }
325
- function We(e) {
326
- return e ? (t, n) => n[e] : null;
327
- }
328
- function ke(e, t, n) {
329
- e.theme = Je(e.theme) ? n : e.theme[t] || e.theme;
330
- }
331
- function q(e, t, n) {
332
- const o = typeof t == "function" ? t(e) : t;
333
- if (Array.isArray(o))
334
- return o.flatMap((i) => q(e, i, n));
335
- if (Array.isArray(o?.variants)) {
336
- let i;
337
- if (o.isProcessed)
338
- i = n ? O(o.style, n) : o.style;
339
- else {
340
- const {
341
- variants: u,
342
- ...a
343
- } = o;
344
- i = n ? O(M(a), n) : a;
345
- }
346
- return ue(e, o.variants, [i], n);
347
- }
348
- return o?.isProcessed ? n ? O(M(o.style), n) : o.style : n ? O(M(o), n) : o;
349
- }
350
- function ue(e, t, n = [], o = void 0) {
351
- let i;
352
- e: for (let u = 0; u < t.length; u += 1) {
353
- const a = t[u];
354
- if (typeof a.props == "function") {
355
- if (i ??= {
356
- ...e,
357
- ...e.ownerState,
358
- ownerState: e.ownerState
359
- }, !a.props(i))
360
- continue;
361
- } else
362
- for (const c in a.props)
363
- if (e[c] !== a.props[c] && e.ownerState?.[c] !== a.props[c])
364
- continue e;
365
- typeof a.style == "function" ? (i ??= {
366
- ...e,
367
- ...e.ownerState,
368
- ownerState: e.ownerState
369
- }, n.push(o ? O(M(a.style(i)), o) : a.style(i))) : n.push(o ? O(M(a.style), o) : a.style);
370
- }
371
- return n;
372
- }
373
- function He(e = {}) {
374
- const {
375
- themeId: t,
376
- defaultTheme: n = ze,
377
- rootShouldForwardProp: o = U,
378
- slotShouldForwardProp: i = U
379
- } = e;
380
- function u(c) {
381
- ke(c, t, n);
382
- }
383
- return (c, v = {}) => {
384
- ge(c, (y) => y.filter((E) => E !== Z));
385
- const {
386
- name: d,
387
- slot: m,
388
- skipVariantsResolver: T,
389
- skipSx: w,
390
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
391
- // For more details: https://github.com/mui/material-ui/pull/37908
392
- overridesResolver: P = We(ce(m)),
393
- ...h
394
- } = v, _ = d && d.startsWith("Mui") || m ? "components" : "custom", g = T !== void 0 ? T : (
395
- // TODO v6: remove `Root` in the next major release
396
- // For more details: https://github.com/mui/material-ui/pull/37908
397
- m && m !== "Root" && m !== "root" || !1
398
- ), C = w || !1;
399
- let R = U;
400
- m === "Root" || m === "root" ? R = o : m ? R = i : Ge(c) && (R = void 0);
401
- const p = Ce(c, {
402
- shouldForwardProp: R,
403
- label: Xe(d, m),
404
- ...h
405
- }), S = (y) => {
406
- if (y.__emotion_real === y)
407
- return y;
408
- if (typeof y == "function")
409
- return function(A) {
410
- return q(A, y, A.theme.modularCssLayers ? _ : void 0);
411
- };
412
- if (Oe(y)) {
413
- const E = qe(y);
414
- return function($) {
415
- return E.variants ? q($, E, $.theme.modularCssLayers ? _ : void 0) : $.theme.modularCssLayers ? O(E.style, _) : E.style;
416
- };
417
- }
418
- return y;
419
- }, r = (...y) => {
420
- const E = [], A = y.map(S), $ = [];
421
- if (E.push(u), d && P && $.push(function(b) {
422
- const x = b.theme.components?.[d]?.styleOverrides;
423
- if (!x)
424
- return null;
425
- const L = {};
426
- for (const Y in x)
427
- L[Y] = q(b, x[Y], b.theme.modularCssLayers ? "theme" : void 0);
428
- return P(b, L);
429
- }), d && !g && $.push(function(b) {
430
- const x = b.theme?.components?.[d]?.variants;
431
- return x ? ue(b, x, [], b.theme.modularCssLayers ? "theme" : void 0) : null;
432
- }), C || $.push(Z), Array.isArray(A[0])) {
433
- const F = A.shift(), b = new Array(E.length).fill(""), N = new Array($.length).fill("");
434
- let x;
435
- x = [...b, ...F, ...N], x.raw = [...b, ...F.raw, ...N], E.unshift(x);
436
- }
437
- const W = [...E, ...A, ...$], D = p(...W);
438
- return c.muiName && (D.muiName = c.muiName), process.env.NODE_ENV !== "production" && (D.displayName = Ue(d, m, c)), D;
439
- };
440
- return p.withConfig && (r.withConfig = p.withConfig), r;
441
- };
442
- }
443
- function Ue(e, t, n) {
444
- return e ? `${e}${Me(t || "")}` : `Styled(${Ve(n)})`;
445
- }
446
- function Xe(e, t) {
447
- let n;
448
- return process.env.NODE_ENV !== "production" && e && (n = `${e}-${ce(t || "Root")}`), n;
449
- }
450
- function Je(e) {
451
- for (const t in e)
452
- return !1;
453
- return !0;
454
- }
455
- function Ge(e) {
456
- return typeof e == "string" && // 96 is one less than the char code
457
- // for "a" so this is checking that
458
- // it's a lowercase character
459
- e.charCodeAt(0) > 96;
460
- }
461
- function ce(e) {
462
- return e && e.charAt(0).toLowerCase() + e.slice(1);
463
- }
464
- const Ke = /* @__PURE__ */ I.createContext(void 0);
465
- process.env.NODE_ENV !== "production" && (z.node, z.object);
466
- function Be(e) {
467
- const {
468
- theme: t,
469
- name: n,
470
- props: o
471
- } = e;
472
- if (!t || !t.components || !t.components[n])
473
- return o;
474
- const i = t.components[n];
475
- return i.defaultProps ? Q(i.defaultProps, o, t.components.mergeClassNameAndStyle) : !i.styleOverrides && !i.variants ? Q(i, o, t.components.mergeClassNameAndStyle) : o;
476
- }
477
- function Ze({
478
- props: e,
479
- name: t
480
- }) {
481
- const n = I.useContext(Ke);
482
- return Be({
483
- props: e,
484
- name: t,
485
- theme: {
486
- components: n
487
- }
488
- });
489
- }
490
- function at(e, t, n = void 0) {
491
- const o = {};
492
- for (const i in e) {
493
- const u = e[i];
494
- let a = "", c = !0;
495
- for (let v = 0; v < u.length; v += 1) {
496
- const d = u[v];
497
- d && (a += (c === !0 ? "" : " ") + t(d), c = !1, n && n[d] && (a += " " + n[d]));
498
- }
499
- o[i] = a;
500
- }
501
- return o;
502
- }
503
- const Qe = Fe();
504
- function et(e) {
505
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
506
- }
507
- const tt = (e) => et(e) && e !== "classes", it = He({
508
- themeId: Ne,
509
- defaultTheme: Qe,
510
- rootShouldForwardProp: tt
511
- });
512
- process.env.NODE_ENV !== "production" && (z.node, z.object.isRequired);
513
- function ut(e) {
514
- return Ze(e);
515
- }
516
- function ct(e, t) {
517
- return process.env.NODE_ENV === "production" ? () => null : function(...o) {
518
- return e(...o) || t(...o);
519
- };
520
- }
521
- export {
522
- ot as G,
523
- je as a,
524
- ct as b,
525
- at as c,
526
- Qe as d,
527
- st as k,
528
- qe as p,
529
- tt as r,
530
- it as s,
531
- ut as u
532
- };
@@ -1,17 +0,0 @@
1
- function n(e) {
2
- return typeof e.main == "string";
3
- }
4
- function a(e, r = []) {
5
- if (!n(e))
6
- return !1;
7
- for (const t of r)
8
- if (!e.hasOwnProperty(t) || typeof e[t] != "string")
9
- return !1;
10
- return !0;
11
- }
12
- function i(e = []) {
13
- return ([, r]) => r && a(r, e);
14
- }
15
- export {
16
- i as c
17
- };