@fangzsx/component-library 0.0.14 → 0.0.16

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 (27) hide show
  1. package/dist/{ButtonBase-qMhxbNdC.js → ButtonBase-DxZEqM87.js} +15 -14
  2. package/dist/{FormLabel-DKoCtSGZ.js → FormLabel-DLyFlUyL.js} +7 -6
  3. package/dist/{Paper-DyRh03We.js → Paper-DZg6u5tT.js} +50 -77
  4. package/dist/{SwitchBase-DStPyUhD.js → SwitchBase-BPRcMkqu.js} +23 -21
  5. package/dist/{Typography-B0rSrz7H.js → Typography-DMROEdKW.js} +5 -4
  6. package/dist/components/AppBarPublic/index.js +8 -7
  7. package/dist/components/Button/index.js +1 -1
  8. package/dist/components/Checkbox/index.js +23 -22
  9. package/dist/components/CheckboxGroup/index.js +47 -34
  10. package/dist/components/MediaCardWithAction/index.js +7 -6
  11. package/dist/components/RadioButtonGroup/index.js +20 -18
  12. package/dist/components/Stepper/index.d.ts +11 -0
  13. package/dist/components/Stepper/index.js +607 -0
  14. package/dist/components/TextFieldInput/index.js +503 -482
  15. package/dist/{createSvgIcon-Dj0SJuc1.js → createSvgIcon-ChKzptBc.js} +2 -1
  16. package/dist/{index-o1i1vy-V.js → index-1CH5DDiw.js} +1 -1
  17. package/dist/{index-CoBGCD2e.js → index-B08hLYdM.js} +24 -23
  18. package/dist/integerPropType-BihGt2aU.js +31 -0
  19. package/dist/main.d.ts +1 -0
  20. package/dist/main.js +7 -5
  21. package/dist/{mergeSlotProps-C-n2ing7.js → mergeSlotProps-CADAqXOb.js} +1 -1
  22. package/dist/{useTimeout-BWi4JTOH.js → useForkRef-gLJikozA.js} +170 -277
  23. package/dist/useFormControl-BGLuGvqS.js +38 -0
  24. package/dist/useSlot-jPRhj-MO.js +125 -0
  25. package/dist/useTimeout-DmOXPFt0.js +111 -0
  26. package/package.json +1 -1
  27. package/dist/useSlot-S2pEBHE8.js +0 -161
@@ -1,37 +1,36 @@
1
- import { P as x, b as se, r as k, h as ie, s as G, i as ue, c as ce, T as fe } from "./generateUtilityClasses-BCID9NF1.js";
2
- import ae from "@emotion/styled";
1
+ import { P, b as ne, r as L, h as re, s as M, i as oe, c as se, T as ie } from "./generateUtilityClasses-BCID9NF1.js";
2
+ import ue from "@emotion/styled";
3
3
  import "@emotion/react";
4
- import { unstable_memoTheme as le } from "@mui/system";
5
- import * as m from "react";
6
- import de from "react";
4
+ import { unstable_memoTheme as fe } from "@mui/system";
5
+ import * as w from "react";
7
6
  import "react/jsx-runtime";
8
- function B(e) {
7
+ function q(e) {
9
8
  var t, n, r = "";
10
9
  if (typeof e == "string" || typeof e == "number") r += e;
11
10
  else if (typeof e == "object") if (Array.isArray(e)) {
12
11
  var o = e.length;
13
- for (t = 0; t < o; t++) e[t] && (n = B(e[t])) && (r && (r += " "), r += n);
12
+ for (t = 0; t < o; t++) e[t] && (n = q(e[t])) && (r && (r += " "), r += n);
14
13
  } else for (n in e) e[n] && (r && (r += " "), r += n);
15
14
  return r;
16
15
  }
17
- function me() {
18
- for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = B(e)) && (r && (r += " "), r += t);
16
+ function ae() {
17
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = q(e)) && (r && (r += " "), r += t);
19
18
  return r;
20
19
  }
21
- function et(e, t, n = void 0) {
20
+ function ke(e, t, n = void 0) {
22
21
  const r = {};
23
22
  for (const o in e) {
24
23
  const s = e[o];
25
24
  let i = "", u = !0;
26
- for (let f = 0; f < s.length; f += 1) {
27
- const c = s[f];
28
- c && (i += (u === !0 ? "" : " ") + t(c), u = !1, n && n[c] && (i += " " + n[c]));
25
+ for (let a = 0; a < s.length; a += 1) {
26
+ const f = s[a];
27
+ f && (i += (u === !0 ? "" : " ") + t(f), u = !1, n && n[f] && (i += " " + n[f]));
29
28
  }
30
29
  r[o] = i;
31
30
  }
32
31
  return r;
33
32
  }
34
- function ye(e) {
33
+ function ce(e) {
35
34
  for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
36
35
  n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
37
36
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
@@ -50,7 +49,7 @@ function ye(e) {
50
49
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
51
50
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
52
51
  }
53
- var he = {
52
+ var le = {
54
53
  animationIterationCount: 1,
55
54
  aspectRatio: 1,
56
55
  borderImageOutset: 1,
@@ -100,34 +99,34 @@ var he = {
100
99
  strokeOpacity: 1,
101
100
  strokeWidth: 1
102
101
  };
103
- function pe(e) {
102
+ function de(e) {
104
103
  var t = /* @__PURE__ */ Object.create(null);
105
104
  return function(n) {
106
105
  return t[n] === void 0 && (t[n] = e(n)), t[n];
107
106
  };
108
107
  }
109
- var ve = /[A-Z]|^ms/g, xe = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Z = function(t) {
108
+ var me = /[A-Z]|^ms/g, ye = /_EMO_([^_]+?)_([^]*?)_EMO_/g, U = function(t) {
110
109
  return t.charCodeAt(1) === 45;
111
- }, W = function(t) {
110
+ }, k = function(t) {
112
111
  return t != null && typeof t != "boolean";
113
- }, I = /* @__PURE__ */ pe(function(e) {
114
- return Z(e) ? e : e.replace(ve, "-$&").toLowerCase();
115
- }), H = function(t, n) {
112
+ }, T = /* @__PURE__ */ de(function(e) {
113
+ return U(e) ? e : e.replace(me, "-$&").toLowerCase();
114
+ }), G = function(t, n) {
116
115
  switch (t) {
117
116
  case "animation":
118
117
  case "animationName":
119
118
  if (typeof n == "string")
120
- return n.replace(xe, function(r, o, s) {
121
- return v = {
119
+ return n.replace(ye, function(r, o, s) {
120
+ return p = {
122
121
  name: o,
123
122
  styles: s,
124
- next: v
123
+ next: p
125
124
  }, o;
126
125
  });
127
126
  }
128
- return he[t] !== 1 && !Z(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
127
+ return le[t] !== 1 && !U(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
129
128
  };
130
- function E(e, t, n) {
129
+ function _(e, t, n) {
131
130
  if (n == null)
132
131
  return "";
133
132
  var r = n;
@@ -139,104 +138,103 @@ function E(e, t, n) {
139
138
  case "object": {
140
139
  var o = n;
141
140
  if (o.anim === 1)
142
- return v = {
141
+ return p = {
143
142
  name: o.name,
144
143
  styles: o.styles,
145
- next: v
144
+ next: p
146
145
  }, o.name;
147
146
  var s = n;
148
147
  if (s.styles !== void 0) {
149
148
  var i = s.next;
150
149
  if (i !== void 0)
151
150
  for (; i !== void 0; )
152
- v = {
151
+ p = {
153
152
  name: i.name,
154
153
  styles: i.styles,
155
- next: v
154
+ next: p
156
155
  }, i = i.next;
157
156
  var u = s.styles + ";";
158
157
  return u;
159
158
  }
160
- return we(e, t, n);
159
+ return he(e, t, n);
161
160
  }
162
161
  }
163
- var f = n;
164
- return f;
162
+ var a = n;
163
+ return a;
165
164
  }
166
- function we(e, t, n) {
165
+ function he(e, t, n) {
167
166
  var r = "";
168
167
  if (Array.isArray(n))
169
168
  for (var o = 0; o < n.length; o++)
170
- r += E(e, t, n[o]) + ";";
169
+ r += _(e, t, n[o]) + ";";
171
170
  else
172
171
  for (var s in n) {
173
172
  var i = n[s];
174
173
  if (typeof i != "object") {
175
174
  var u = i;
176
- W(u) && (r += I(s) + ":" + H(s, u) + ";");
175
+ k(u) && (r += T(s) + ":" + G(s, u) + ";");
177
176
  } else if (Array.isArray(i) && typeof i[0] == "string" && t == null)
178
- for (var f = 0; f < i.length; f++)
179
- W(i[f]) && (r += I(s) + ":" + H(s, i[f]) + ";");
177
+ for (var a = 0; a < i.length; a++)
178
+ k(i[a]) && (r += T(s) + ":" + G(s, i[a]) + ";");
180
179
  else {
181
- var c = E(e, t, i);
180
+ var f = _(e, t, i);
182
181
  switch (s) {
183
182
  case "animation":
184
183
  case "animationName": {
185
- r += I(s) + ":" + c + ";";
184
+ r += T(s) + ":" + f + ";";
186
185
  break;
187
186
  }
188
187
  default:
189
- r += s + "{" + c + "}";
188
+ r += s + "{" + f + "}";
190
189
  }
191
190
  }
192
191
  }
193
192
  return r;
194
193
  }
195
- var K = /label:\s*([^\s;{]+)\s*(;|$)/g, v;
196
- function Se(e, t, n) {
194
+ var W = /label:\s*([^\s;{]+)\s*(;|$)/g, p;
195
+ function pe(e, t, n) {
197
196
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
198
197
  return e[0];
199
198
  var r = !0, o = "";
200
- v = void 0;
199
+ p = void 0;
201
200
  var s = e[0];
202
201
  if (s == null || s.raw === void 0)
203
- r = !1, o += E(n, t, s);
202
+ r = !1, o += _(n, t, s);
204
203
  else {
205
204
  var i = s;
206
205
  o += i[0];
207
206
  }
208
207
  for (var u = 1; u < e.length; u++)
209
- if (o += E(n, t, e[u]), r) {
210
- var f = s;
211
- o += f[u];
208
+ if (o += _(n, t, e[u]), r) {
209
+ var a = s;
210
+ o += a[u];
212
211
  }
213
- K.lastIndex = 0;
214
- for (var c = "", a; (a = K.exec(o)) !== null; )
215
- c += "-" + a[1];
216
- var g = ye(o) + c;
212
+ W.lastIndex = 0;
213
+ for (var f = "", c; (c = W.exec(o)) !== null; )
214
+ f += "-" + c[1];
215
+ var b = ce(o) + f;
217
216
  return {
218
- name: g,
217
+ name: b,
219
218
  styles: o,
220
- next: v
219
+ next: p
221
220
  };
222
221
  }
223
- function be(e, t) {
224
- const n = ae(e, t);
222
+ function ve(e, t) {
223
+ const n = ue(e, t);
225
224
  return process.env.NODE_ENV !== "production" ? (...r) => {
226
225
  const o = typeof e == "string" ? `"${e}"` : "component";
227
226
  return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
228
227
  `)) : r.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), n(...r);
229
228
  } : n;
230
229
  }
231
- function ge(e, t) {
230
+ function xe(e, t) {
232
231
  Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
233
232
  }
234
- const U = [];
235
- function b(e) {
236
- return U[0] = e, Se(U);
233
+ const H = [];
234
+ function S(e) {
235
+ return H[0] = e, pe(H);
237
236
  }
238
- const Oe = typeof window < "u" ? m.useLayoutEffect : m.useEffect;
239
- function F(e, t, n = !1) {
237
+ function N(e, t, n = !1) {
240
238
  const r = {
241
239
  ...t
242
240
  };
@@ -258,22 +256,22 @@ function F(e, t, n = !1) {
258
256
  r[s] = {
259
257
  ...u
260
258
  };
261
- for (const f in i)
262
- if (Object.prototype.hasOwnProperty.call(i, f)) {
263
- const c = f;
264
- r[s][c] = F(i[c], u[c], n);
259
+ for (const a in i)
260
+ if (Object.prototype.hasOwnProperty.call(i, a)) {
261
+ const f = a;
262
+ r[s][f] = N(i[f], u[f], n);
265
263
  }
266
264
  }
267
- } else s === "className" && n && t.className ? r.className = me(e?.className, t?.className) : s === "style" && n && t.style ? r.style = {
265
+ } else s === "className" && n && t.className ? r.className = ae(e?.className, t?.className) : s === "style" && n && t.style ? r.style = {
268
266
  ...e?.style,
269
267
  ...t?.style
270
268
  } : r[s] === void 0 && (r[s] = e[s]);
271
269
  }
272
270
  return r;
273
271
  }
274
- const Pe = /* @__PURE__ */ m.createContext(void 0);
275
- process.env.NODE_ENV !== "production" && (x.node, x.object);
276
- function _e(e) {
272
+ const Se = /* @__PURE__ */ w.createContext(void 0);
273
+ process.env.NODE_ENV !== "production" && (P.node, P.object);
274
+ function we(e) {
277
275
  const {
278
276
  theme: t,
279
277
  name: n,
@@ -282,14 +280,14 @@ function _e(e) {
282
280
  if (!t || !t.components || !t.components[n])
283
281
  return r;
284
282
  const o = t.components[n];
285
- return o.defaultProps ? F(o.defaultProps, r, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? F(o, r, t.components.mergeClassNameAndStyle) : r;
283
+ return o.defaultProps ? N(o.defaultProps, r, t.components.mergeClassNameAndStyle) : !o.styleOverrides && !o.variants ? N(o, r, t.components.mergeClassNameAndStyle) : r;
286
284
  }
287
- function Ce({
285
+ function be({
288
286
  props: e,
289
287
  name: t
290
288
  }) {
291
- const n = m.useContext(Pe);
292
- return _e({
289
+ const n = w.useContext(Se);
290
+ return we({
293
291
  props: e,
294
292
  name: t,
295
293
  theme: {
@@ -297,26 +295,26 @@ function Ce({
297
295
  }
298
296
  });
299
297
  }
300
- const Ee = se();
301
- function z(e, t = "") {
298
+ const ge = ne();
299
+ function Y(e, t = "") {
302
300
  return e.displayName || e.name || t;
303
301
  }
304
- function Y(e, t, n) {
305
- const r = z(t);
302
+ function K(e, t, n) {
303
+ const r = Y(t);
306
304
  return e.displayName || (r !== "" ? `${n}(${r})` : n);
307
305
  }
308
- function Re(e) {
306
+ function Oe(e) {
309
307
  if (e != null) {
310
308
  if (typeof e == "string")
311
309
  return e;
312
310
  if (typeof e == "function")
313
- return z(e, "Component");
311
+ return Y(e, "Component");
314
312
  if (typeof e == "object")
315
313
  switch (e.$$typeof) {
316
- case k.ForwardRef:
317
- return Y(e, e.render, "ForwardRef");
318
- case k.Memo:
319
- return Y(e, e.type, "memo");
314
+ case L.ForwardRef:
315
+ return K(e, e.render, "ForwardRef");
316
+ case L.Memo:
317
+ return K(e, e.type, "memo");
320
318
  default:
321
319
  return;
322
320
  }
@@ -328,25 +326,25 @@ function Ae(e) {
328
326
  ...n
329
327
  } = e, r = {
330
328
  variants: t,
331
- style: b(n),
329
+ style: S(n),
332
330
  isProcessed: !0
333
331
  };
334
332
  return r.style === n || t && t.forEach((o) => {
335
- typeof o.style != "function" && (o.style = b(o.style));
333
+ typeof o.style != "function" && (o.style = S(o.style));
336
334
  }), r;
337
335
  }
338
- const Te = ie();
336
+ const Ce = re();
339
337
  function $(e) {
340
338
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
341
339
  }
342
- function S(e, t) {
340
+ function x(e, t) {
343
341
  return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
344
342
  }
345
- function Ie(e) {
343
+ function Pe(e) {
346
344
  return e ? (t, n) => n[e] : null;
347
345
  }
348
- function $e(e, t, n) {
349
- e.theme = De(e.theme) ? n : e.theme[t] || e.theme;
346
+ function _e(e, t, n) {
347
+ e.theme = Te(e.theme) ? n : e.theme[t] || e.theme;
350
348
  }
351
349
  function C(e, t, n) {
352
350
  const r = typeof t == "function" ? t(e) : t;
@@ -355,19 +353,19 @@ function C(e, t, n) {
355
353
  if (Array.isArray(r?.variants)) {
356
354
  let o;
357
355
  if (r.isProcessed)
358
- o = n ? S(r.style, n) : r.style;
356
+ o = n ? x(r.style, n) : r.style;
359
357
  else {
360
358
  const {
361
359
  variants: s,
362
360
  ...i
363
361
  } = r;
364
- o = n ? S(b(i), n) : i;
362
+ o = n ? x(S(i), n) : i;
365
363
  }
366
- return J(e, r.variants, [o], n);
364
+ return B(e, r.variants, [o], n);
367
365
  }
368
- return r?.isProcessed ? n ? S(b(r.style), n) : r.style : n ? S(b(r), n) : r;
366
+ return r?.isProcessed ? n ? x(S(r.style), n) : r.style : n ? x(S(r), n) : r;
369
367
  }
370
- function J(e, t, n = [], r = void 0) {
368
+ function B(e, t, n = [], r = void 0) {
371
369
  let o;
372
370
  e: for (let s = 0; s < t.length; s += 1) {
373
371
  const i = t[s];
@@ -386,124 +384,115 @@ function J(e, t, n = [], r = void 0) {
386
384
  ...e,
387
385
  ...e.ownerState,
388
386
  ownerState: e.ownerState
389
- }, n.push(r ? S(b(i.style(o)), r) : i.style(o))) : n.push(r ? S(b(i.style), r) : i.style);
387
+ }, n.push(r ? x(S(i.style(o)), r) : i.style(o))) : n.push(r ? x(S(i.style), r) : i.style);
390
388
  }
391
389
  return n;
392
390
  }
393
- function Fe(e = {}) {
391
+ function Re(e = {}) {
394
392
  const {
395
393
  themeId: t,
396
- defaultTheme: n = Te,
394
+ defaultTheme: n = Ce,
397
395
  rootShouldForwardProp: r = $,
398
396
  slotShouldForwardProp: o = $
399
397
  } = e;
400
398
  function s(u) {
401
- $e(u, t, n);
399
+ _e(u, t, n);
402
400
  }
403
- return (u, f = {}) => {
404
- ge(u, (l) => l.filter((d) => d !== G));
401
+ return (u, a = {}) => {
402
+ xe(u, (l) => l.filter((d) => d !== M));
405
403
  const {
406
- name: c,
407
- slot: a,
408
- skipVariantsResolver: g,
409
- skipSx: X,
404
+ name: f,
405
+ slot: c,
406
+ skipVariantsResolver: b,
407
+ skipSx: z,
410
408
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
411
409
  // For more details: https://github.com/mui/material-ui/pull/37908
412
- overridesResolver: D = Ie(Q(a)),
413
- ...ee
414
- } = f, R = c && c.startsWith("Mui") || a ? "components" : "custom", te = g !== void 0 ? g : (
410
+ overridesResolver: V = Pe(Z(c)),
411
+ ...J
412
+ } = a, R = f && f.startsWith("Mui") || c ? "components" : "custom", Q = b !== void 0 ? b : (
415
413
  // TODO v6: remove `Root` in the next major release
416
414
  // For more details: https://github.com/mui/material-ui/pull/37908
417
- a && a !== "Root" && a !== "root" || !1
418
- ), ne = X || !1;
419
- let O = $;
420
- a === "Root" || a === "root" ? O = r : a ? O = o : je(u) && (O = void 0);
421
- const A = be(u, {
422
- shouldForwardProp: O,
423
- label: Ve(c, a),
424
- ...ee
425
- }), re = (l) => {
415
+ c && c !== "Root" && c !== "root" || !1
416
+ ), X = z || !1;
417
+ let g = $;
418
+ c === "Root" || c === "root" ? g = r : c ? g = o : $e(u) && (g = void 0);
419
+ const E = ve(u, {
420
+ shouldForwardProp: g,
421
+ label: Fe(f, c),
422
+ ...J
423
+ }), ee = (l) => {
426
424
  if (l.__emotion_real === l)
427
425
  return l;
428
426
  if (typeof l == "function")
429
- return function(w) {
430
- return C(w, l, w.theme.modularCssLayers ? R : void 0);
427
+ return function(v) {
428
+ return C(v, l, v.theme.modularCssLayers ? R : void 0);
431
429
  };
432
- if (ue(l)) {
430
+ if (oe(l)) {
433
431
  const d = Ae(l);
434
- return function(p) {
435
- return d.variants ? C(p, d, p.theme.modularCssLayers ? R : void 0) : p.theme.modularCssLayers ? S(d.style, R) : d.style;
432
+ return function(h) {
433
+ return d.variants ? C(h, d, h.theme.modularCssLayers ? R : void 0) : h.theme.modularCssLayers ? x(d.style, R) : d.style;
436
434
  };
437
435
  }
438
436
  return l;
439
- }, j = (...l) => {
440
- const d = [], w = l.map(re), p = [];
441
- if (d.push(s), c && D && p.push(function(y) {
442
- const h = y.theme.components?.[c]?.styleOverrides;
443
- if (!h)
437
+ }, I = (...l) => {
438
+ const d = [], v = l.map(ee), h = [];
439
+ if (d.push(s), f && V && h.push(function(m) {
440
+ const y = m.theme.components?.[f]?.styleOverrides;
441
+ if (!y)
444
442
  return null;
445
- const L = {};
446
- for (const M in h)
447
- L[M] = C(y, h[M], y.theme.modularCssLayers ? "theme" : void 0);
448
- return D(y, L);
449
- }), c && !te && p.push(function(y) {
450
- const h = y.theme?.components?.[c]?.variants;
451
- return h ? J(y, h, [], y.theme.modularCssLayers ? "theme" : void 0) : null;
452
- }), ne || p.push(G), Array.isArray(w[0])) {
453
- const P = w.shift(), y = new Array(d.length).fill(""), _ = new Array(p.length).fill("");
454
- let h;
455
- h = [...y, ...P, ..._], h.raw = [...y, ...P.raw, ..._], d.unshift(h);
443
+ const D = {};
444
+ for (const j in y)
445
+ D[j] = C(m, y[j], m.theme.modularCssLayers ? "theme" : void 0);
446
+ return V(m, D);
447
+ }), f && !Q && h.push(function(m) {
448
+ const y = m.theme?.components?.[f]?.variants;
449
+ return y ? B(m, y, [], m.theme.modularCssLayers ? "theme" : void 0) : null;
450
+ }), X || h.push(M), Array.isArray(v[0])) {
451
+ const O = v.shift(), m = new Array(d.length).fill(""), A = new Array(h.length).fill("");
452
+ let y;
453
+ y = [...m, ...O, ...A], y.raw = [...m, ...O.raw, ...A], d.unshift(y);
456
454
  }
457
- const oe = [...d, ...w, ...p], T = A(...oe);
458
- return u.muiName && (T.muiName = u.muiName), process.env.NODE_ENV !== "production" && (T.displayName = Ne(c, a, u)), T;
455
+ const te = [...d, ...v, ...h], F = E(...te);
456
+ return u.muiName && (F.muiName = u.muiName), process.env.NODE_ENV !== "production" && (F.displayName = Ee(f, c, u)), F;
459
457
  };
460
- return A.withConfig && (j.withConfig = A.withConfig), j;
458
+ return E.withConfig && (I.withConfig = E.withConfig), I;
461
459
  };
462
460
  }
463
- function Ne(e, t, n) {
464
- return e ? `${e}${ce(t || "")}` : `Styled(${Re(n)})`;
461
+ function Ee(e, t, n) {
462
+ return e ? `${e}${se(t || "")}` : `Styled(${Oe(n)})`;
465
463
  }
466
- function Ve(e, t) {
464
+ function Fe(e, t) {
467
465
  let n;
468
- return process.env.NODE_ENV !== "production" && e && (n = `${e}-${Q(t || "Root")}`), n;
466
+ return process.env.NODE_ENV !== "production" && e && (n = `${e}-${Z(t || "Root")}`), n;
469
467
  }
470
- function De(e) {
468
+ function Te(e) {
471
469
  for (const t in e)
472
470
  return !1;
473
471
  return !0;
474
472
  }
475
- function je(e) {
473
+ function $e(e) {
476
474
  return typeof e == "string" && // 96 is one less than the char code
477
475
  // for "a" so this is checking that
478
476
  // it's a lowercase character
479
477
  e.charCodeAt(0) > 96;
480
478
  }
481
- function Q(e) {
479
+ function Z(e) {
482
480
  return e && e.charAt(0).toLowerCase() + e.slice(1);
483
481
  }
484
- function Le(e) {
482
+ function Ne(e) {
485
483
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
486
484
  }
487
- const Me = (e) => Le(e) && e !== "classes", tt = Fe({
488
- themeId: fe,
489
- defaultTheme: Ee,
490
- rootShouldForwardProp: Me
491
- }), nt = le;
492
- process.env.NODE_ENV !== "production" && (x.node, x.object.isRequired);
493
- function rt(e) {
494
- return Ce(e);
495
- }
496
- function ot(e) {
497
- const t = m.useRef(e);
498
- return Oe(() => {
499
- t.current = e;
500
- }), m.useRef((...n) => (
501
- // @ts-expect-error hide `this`
502
- (0, t.current)(...n)
503
- )).current;
504
- }
505
- function st(...e) {
506
- const t = m.useRef(void 0), n = m.useCallback((r) => {
485
+ const Ve = (e) => Ne(e) && e !== "classes", Ge = Re({
486
+ themeId: ie,
487
+ defaultTheme: ge,
488
+ rootShouldForwardProp: Ve
489
+ }), We = fe;
490
+ process.env.NODE_ENV !== "production" && (P.node, P.object.isRequired);
491
+ function He(e) {
492
+ return be(e);
493
+ }
494
+ function Ke(...e) {
495
+ const t = w.useRef(void 0), n = w.useCallback((r) => {
507
496
  const o = e.map((s) => {
508
497
  if (s == null)
509
498
  return null;
@@ -521,115 +510,19 @@ function st(...e) {
521
510
  o.forEach((s) => s?.());
522
511
  };
523
512
  }, e);
524
- return m.useMemo(() => e.every((r) => r == null) ? null : (r) => {
513
+ return w.useMemo(() => e.every((r) => r == null) ? null : (r) => {
525
514
  t.current && (t.current(), t.current = void 0), r != null && (t.current = n(r));
526
515
  }, e);
527
516
  }
528
- function ke(e) {
529
- return typeof e.main == "string";
530
- }
531
- function Ge(e, t = []) {
532
- if (!ke(e))
533
- return !1;
534
- for (const n of t)
535
- if (!e.hasOwnProperty(n) || typeof e[n] != "string")
536
- return !1;
537
- return !0;
538
- }
539
- function it(e = []) {
540
- return ([, t]) => t && Ge(t, e);
541
- }
542
- function We(e, t) {
543
- return process.env.NODE_ENV === "production" ? () => null : function(...r) {
544
- return e(...r) || t(...r);
545
- };
546
- }
547
- const ut = x.oneOfType([x.func, x.object]);
548
- function He(e) {
549
- const {
550
- prototype: t = {}
551
- } = e;
552
- return !!t.isReactComponent;
553
- }
554
- function Ke(e, t, n, r, o) {
555
- const s = e[t], i = o || t;
556
- if (s == null || // When server-side rendering React doesn't warn either.
557
- // This is not an accurate check for SSR.
558
- // This is only in place for emotion compat.
559
- // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
560
- typeof window > "u")
561
- return null;
562
- let u;
563
- return typeof s == "function" && !He(s) && (u = "Did you accidentally provide a plain function component instead?"), s === m.Fragment && (u = "Did you accidentally provide a React.Fragment instead?"), u !== void 0 ? new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
564
- }
565
- const ct = We(x.elementType, Ke), q = {};
566
- function Ue(e, t) {
567
- const n = m.useRef(q);
568
- return n.current === q && (n.current = e(t)), n;
569
- }
570
- function ft(e, t) {
571
- if (e == null) return {};
572
- var n = {};
573
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
574
- if (t.indexOf(r) !== -1) continue;
575
- n[r] = e[r];
576
- }
577
- return n;
578
- }
579
- function N(e, t) {
580
- return N = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
581
- return n.__proto__ = r, n;
582
- }, N(e, t);
583
- }
584
- function at(e, t) {
585
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, N(e, t);
586
- }
587
- const lt = de.createContext(null), Ye = [];
588
- function qe(e) {
589
- m.useEffect(e, Ye);
590
- }
591
- class V {
592
- static create() {
593
- return new V();
594
- }
595
- currentId = null;
596
- /**
597
- * Executes `fn` after `delay`, clearing any previously scheduled call.
598
- */
599
- start(t, n) {
600
- this.clear(), this.currentId = setTimeout(() => {
601
- this.currentId = null, n();
602
- }, t);
603
- }
604
- clear = () => {
605
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
606
- };
607
- disposeEffect = () => this.clear;
608
- }
609
- function dt() {
610
- const e = Ue(V.create).current;
611
- return qe(e.disposeEffect), e;
612
- }
613
517
  export {
614
- lt as T,
615
- at as _,
616
- et as a,
617
- it as b,
618
- me as c,
619
- ut as d,
620
- Ee as e,
621
- We as f,
622
- F as g,
623
- st as h,
624
- Ue as i,
625
- ft as j,
626
- dt as k,
627
- ot as l,
628
- nt as m,
629
- ct as n,
630
- Oe as o,
631
- Le as p,
632
- Me as r,
633
- tt as s,
634
- rt as u
518
+ ke as a,
519
+ Ke as b,
520
+ ae as c,
521
+ ge as d,
522
+ N as e,
523
+ Ne as f,
524
+ We as m,
525
+ Ve as r,
526
+ Ge as s,
527
+ He as u
635
528
  };