@spesia/ui 1.0.4 → 1.0.5

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as Wr from "react";
2
2
  import { jsx as ie, jsxs as er } from "react/jsx-runtime";
3
- const _e = {
3
+ const Re = {
4
4
  black: "#000",
5
5
  white: "#fff"
6
6
  }, ve = {
@@ -108,12 +108,12 @@ function it() {
108
108
  }
109
109
  }
110
110
  }
111
- function T(h) {
111
+ function E(h) {
112
112
  return $(h) === d;
113
113
  }
114
114
  return D.AsyncMode = f, D.ConcurrentMode = d, D.ContextConsumer = l, D.ContextProvider = c, D.Element = r, D.ForwardRef = y, D.Fragment = n, D.Lazy = b, D.Memo = C, D.Portal = t, D.Profiler = a, D.StrictMode = o, D.Suspense = p, D.isAsyncMode = function(h) {
115
- return T(h) || $(h) === f;
116
- }, D.isConcurrentMode = T, D.isContextConsumer = function(h) {
115
+ return E(h) || $(h) === f;
116
+ }, D.isConcurrentMode = E, D.isContextConsumer = function(h) {
117
117
  return $(h) === l;
118
118
  }, D.isContextProvider = function(h) {
119
119
  return $(h) === c;
@@ -139,7 +139,7 @@ function it() {
139
139
  return typeof h == "string" || typeof h == "function" || h === n || h === d || h === a || h === o || h === p || h === g || typeof h == "object" && h !== null && (h.$$typeof === b || h.$$typeof === C || h.$$typeof === c || h.$$typeof === l || h.$$typeof === y || h.$$typeof === w || h.$$typeof === k || h.$$typeof === K || h.$$typeof === s);
140
140
  }, D.typeOf = $, D;
141
141
  }
142
- var L = {};
142
+ var j = {};
143
143
  /** @license React v16.13.1
144
144
  * react-is.development.js
145
145
  *
@@ -156,7 +156,7 @@ function at() {
156
156
  return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
157
157
  v === n || v === d || v === a || v === o || v === p || v === g || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === C || v.$$typeof === c || v.$$typeof === l || v.$$typeof === y || v.$$typeof === w || v.$$typeof === k || v.$$typeof === K || v.$$typeof === s);
158
158
  }
159
- function T(v) {
159
+ function E(v) {
160
160
  if (typeof v == "object" && v !== null) {
161
161
  var se = v.$$typeof;
162
162
  switch (se) {
@@ -190,46 +190,46 @@ function at() {
190
190
  }
191
191
  var h = f, Z = d, re = l, le = c, Q = r, i = y, x = n, N = b, U = C, oe = t, de = a, ae = o, ye = p, Be = !1;
192
192
  function Je(v) {
193
- return Be || (Be = !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.")), m(v) || T(v) === f;
193
+ return Be || (Be = !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.")), m(v) || E(v) === f;
194
194
  }
195
195
  function m(v) {
196
- return T(v) === d;
196
+ return E(v) === d;
197
197
  }
198
198
  function S(v) {
199
- return T(v) === l;
199
+ return E(v) === l;
200
200
  }
201
201
  function P(v) {
202
- return T(v) === c;
202
+ return E(v) === c;
203
203
  }
204
- function _(v) {
204
+ function R(v) {
205
205
  return typeof v == "object" && v !== null && v.$$typeof === r;
206
206
  }
207
207
  function O(v) {
208
- return T(v) === y;
208
+ return E(v) === y;
209
209
  }
210
210
  function M(v) {
211
- return T(v) === n;
211
+ return E(v) === n;
212
212
  }
213
213
  function A(v) {
214
- return T(v) === b;
214
+ return E(v) === b;
215
215
  }
216
- function R(v) {
217
- return T(v) === C;
216
+ function _(v) {
217
+ return E(v) === C;
218
218
  }
219
219
  function I(v) {
220
- return T(v) === t;
220
+ return E(v) === t;
221
221
  }
222
- function j(v) {
223
- return T(v) === a;
222
+ function L(v) {
223
+ return E(v) === a;
224
224
  }
225
225
  function B(v) {
226
- return T(v) === o;
226
+ return E(v) === o;
227
227
  }
228
228
  function X(v) {
229
- return T(v) === p;
229
+ return E(v) === p;
230
230
  }
231
- L.AsyncMode = h, L.ConcurrentMode = Z, L.ContextConsumer = re, L.ContextProvider = le, L.Element = Q, L.ForwardRef = i, L.Fragment = x, L.Lazy = N, L.Memo = U, L.Portal = oe, L.Profiler = de, L.StrictMode = ae, L.Suspense = ye, L.isAsyncMode = Je, L.isConcurrentMode = m, L.isContextConsumer = S, L.isContextProvider = P, L.isElement = _, L.isForwardRef = O, L.isFragment = M, L.isLazy = A, L.isMemo = R, L.isPortal = I, L.isProfiler = j, L.isStrictMode = B, L.isSuspense = X, L.isValidElementType = $, L.typeOf = T;
232
- }()), L;
231
+ j.AsyncMode = h, j.ConcurrentMode = Z, j.ContextConsumer = re, j.ContextProvider = le, j.Element = Q, j.ForwardRef = i, j.Fragment = x, j.Lazy = N, j.Memo = U, j.Portal = oe, j.Profiler = de, j.StrictMode = ae, j.Suspense = ye, j.isAsyncMode = Je, j.isConcurrentMode = m, j.isContextConsumer = S, j.isContextProvider = P, j.isElement = R, j.isForwardRef = O, j.isFragment = M, j.isLazy = A, j.isMemo = _, j.isPortal = I, j.isProfiler = L, j.isStrictMode = B, j.isSuspense = X, j.isValidElementType = $, j.typeOf = E;
232
+ }()), j;
233
233
  }
234
234
  var Cr;
235
235
  function zr() {
@@ -382,7 +382,7 @@ function lt() {
382
382
  symbol: k("symbol"),
383
383
  any: K(),
384
384
  arrayOf: $,
385
- element: T(),
385
+ element: E(),
386
386
  elementType: h(),
387
387
  instanceOf: Z,
388
388
  node: i(),
@@ -402,30 +402,30 @@ function lt() {
402
402
  function w(m) {
403
403
  if (process.env.NODE_ENV !== "production")
404
404
  var S = {}, P = 0;
405
- function _(M, A, R, I, j, B, X) {
406
- if (I = I || g, B = B || R, X !== t) {
405
+ function R(M, A, _, I, L, B, X) {
406
+ if (I = I || g, B = B || _, X !== t) {
407
407
  if (f) {
408
408
  var v = new Error(
409
409
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
410
410
  );
411
411
  throw v.name = "Invariant Violation", v;
412
412
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
413
- var se = I + ":" + R;
413
+ var se = I + ":" + _;
414
414
  !S[se] && // Avoid spamming the console because they are often not actionable except for lib authors
415
415
  P < 3 && (a(
416
416
  "You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
417
417
  ), S[se] = !0, P++);
418
418
  }
419
419
  }
420
- return A[R] == null ? M ? A[R] === null ? new s("The " + j + " `" + B + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new s("The " + j + " `" + B + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : m(A, R, I, j, B);
420
+ return A[_] == null ? M ? A[_] === null ? new s("The " + L + " `" + B + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new s("The " + L + " `" + B + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : m(A, _, I, L, B);
421
421
  }
422
- var O = _.bind(null, !1);
423
- return O.isRequired = _.bind(null, !0), O;
422
+ var O = R.bind(null, !1);
423
+ return O.isRequired = R.bind(null, !0), O;
424
424
  }
425
425
  function k(m) {
426
- function S(P, _, O, M, A, R) {
427
- var I = P[_], j = ae(I);
428
- if (j !== m) {
426
+ function S(P, R, O, M, A, _) {
427
+ var I = P[R], L = ae(I);
428
+ if (L !== m) {
429
429
  var B = ye(I);
430
430
  return new s(
431
431
  "Invalid " + M + " `" + A + "` of type " + ("`" + B + "` supplied to `" + O + "`, expected ") + ("`" + m + "`."),
@@ -440,16 +440,16 @@ function lt() {
440
440
  return w(c);
441
441
  }
442
442
  function $(m) {
443
- function S(P, _, O, M, A) {
443
+ function S(P, R, O, M, A) {
444
444
  if (typeof m != "function")
445
445
  return new s("Property `" + A + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
446
- var R = P[_];
447
- if (!Array.isArray(R)) {
448
- var I = ae(R);
446
+ var _ = P[R];
447
+ if (!Array.isArray(_)) {
448
+ var I = ae(_);
449
449
  return new s("Invalid " + M + " `" + A + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected an array."));
450
450
  }
451
- for (var j = 0; j < R.length; j++) {
452
- var B = m(R, j, O, M, A + "[" + j + "]", t);
451
+ for (var L = 0; L < _.length; L++) {
452
+ var B = m(_, L, O, M, A + "[" + L + "]", t);
453
453
  if (B instanceof Error)
454
454
  return B;
455
455
  }
@@ -457,33 +457,33 @@ function lt() {
457
457
  }
458
458
  return w(S);
459
459
  }
460
- function T() {
461
- function m(S, P, _, O, M) {
460
+ function E() {
461
+ function m(S, P, R, O, M) {
462
462
  var A = S[P];
463
463
  if (!l(A)) {
464
- var R = ae(A);
465
- return new s("Invalid " + O + " `" + M + "` of type " + ("`" + R + "` supplied to `" + _ + "`, expected a single ReactElement."));
464
+ var _ = ae(A);
465
+ return new s("Invalid " + O + " `" + M + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement."));
466
466
  }
467
467
  return null;
468
468
  }
469
469
  return w(m);
470
470
  }
471
471
  function h() {
472
- function m(S, P, _, O, M) {
472
+ function m(S, P, R, O, M) {
473
473
  var A = S[P];
474
474
  if (!e.isValidElementType(A)) {
475
- var R = ae(A);
476
- return new s("Invalid " + O + " `" + M + "` of type " + ("`" + R + "` supplied to `" + _ + "`, expected a single ReactElement type."));
475
+ var _ = ae(A);
476
+ return new s("Invalid " + O + " `" + M + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected a single ReactElement type."));
477
477
  }
478
478
  return null;
479
479
  }
480
480
  return w(m);
481
481
  }
482
482
  function Z(m) {
483
- function S(P, _, O, M, A) {
484
- if (!(P[_] instanceof m)) {
485
- var R = m.name || g, I = Je(P[_]);
486
- return new s("Invalid " + M + " `" + A + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected ") + ("instance of `" + R + "`."));
483
+ function S(P, R, O, M, A) {
484
+ if (!(P[R] instanceof m)) {
485
+ var _ = m.name || g, I = Je(P[R]);
486
+ return new s("Invalid " + M + " `" + A + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected ") + ("instance of `" + _ + "`."));
487
487
  }
488
488
  return null;
489
489
  }
@@ -494,28 +494,28 @@ function lt() {
494
494
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
495
495
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
496
496
  ) : a("Invalid argument supplied to oneOf, expected an array.")), c;
497
- function S(P, _, O, M, A) {
498
- for (var R = P[_], I = 0; I < m.length; I++)
499
- if (b(R, m[I]))
497
+ function S(P, R, O, M, A) {
498
+ for (var _ = P[R], I = 0; I < m.length; I++)
499
+ if (b(_, m[I]))
500
500
  return null;
501
- var j = JSON.stringify(m, function(X, v) {
501
+ var L = JSON.stringify(m, function(X, v) {
502
502
  var se = ye(v);
503
503
  return se === "symbol" ? String(v) : v;
504
504
  });
505
- return new s("Invalid " + M + " `" + A + "` of value `" + String(R) + "` " + ("supplied to `" + O + "`, expected one of " + j + "."));
505
+ return new s("Invalid " + M + " `" + A + "` of value `" + String(_) + "` " + ("supplied to `" + O + "`, expected one of " + L + "."));
506
506
  }
507
507
  return w(S);
508
508
  }
509
509
  function le(m) {
510
- function S(P, _, O, M, A) {
510
+ function S(P, R, O, M, A) {
511
511
  if (typeof m != "function")
512
512
  return new s("Property `" + A + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
513
- var R = P[_], I = ae(R);
513
+ var _ = P[R], I = ae(_);
514
514
  if (I !== "object")
515
515
  return new s("Invalid " + M + " `" + A + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected an object."));
516
- for (var j in R)
517
- if (n(R, j)) {
518
- var B = m(R, j, O, M, A + "." + j, t);
516
+ for (var L in _)
517
+ if (n(_, L)) {
518
+ var B = m(_, L, O, M, A + "." + L, t);
519
519
  if (B instanceof Error)
520
520
  return B;
521
521
  }
@@ -533,39 +533,39 @@ function lt() {
533
533
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Be(P) + " at index " + S + "."
534
534
  ), c;
535
535
  }
536
- function _(O, M, A, R, I) {
537
- for (var j = [], B = 0; B < m.length; B++) {
538
- var X = m[B], v = X(O, M, A, R, I, t);
536
+ function R(O, M, A, _, I) {
537
+ for (var L = [], B = 0; B < m.length; B++) {
538
+ var X = m[B], v = X(O, M, A, _, I, t);
539
539
  if (v == null)
540
540
  return null;
541
- v.data && n(v.data, "expectedType") && j.push(v.data.expectedType);
541
+ v.data && n(v.data, "expectedType") && L.push(v.data.expectedType);
542
542
  }
543
- var se = j.length > 0 ? ", expected one of type [" + j.join(", ") + "]" : "";
544
- return new s("Invalid " + R + " `" + I + "` supplied to " + ("`" + A + "`" + se + "."));
543
+ var se = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
544
+ return new s("Invalid " + _ + " `" + I + "` supplied to " + ("`" + A + "`" + se + "."));
545
545
  }
546
- return w(_);
546
+ return w(R);
547
547
  }
548
548
  function i() {
549
- function m(S, P, _, O, M) {
550
- return oe(S[P]) ? null : new s("Invalid " + O + " `" + M + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
549
+ function m(S, P, R, O, M) {
550
+ return oe(S[P]) ? null : new s("Invalid " + O + " `" + M + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
551
551
  }
552
552
  return w(m);
553
553
  }
554
- function x(m, S, P, _, O) {
554
+ function x(m, S, P, R, O) {
555
555
  return new s(
556
- (m || "React class") + ": " + S + " type `" + P + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
556
+ (m || "React class") + ": " + S + " type `" + P + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
557
557
  );
558
558
  }
559
559
  function N(m) {
560
- function S(P, _, O, M, A) {
561
- var R = P[_], I = ae(R);
560
+ function S(P, R, O, M, A) {
561
+ var _ = P[R], I = ae(_);
562
562
  if (I !== "object")
563
563
  return new s("Invalid " + M + " `" + A + "` of type `" + I + "` " + ("supplied to `" + O + "`, expected `object`."));
564
- for (var j in m) {
565
- var B = m[j];
564
+ for (var L in m) {
565
+ var B = m[L];
566
566
  if (typeof B != "function")
567
- return x(O, M, A, j, ye(B));
568
- var X = B(R, j, O, M, A + "." + j, t);
567
+ return x(O, M, A, L, ye(B));
568
+ var X = B(_, L, O, M, A + "." + L, t);
569
569
  if (X)
570
570
  return X;
571
571
  }
@@ -574,21 +574,21 @@ function lt() {
574
574
  return w(S);
575
575
  }
576
576
  function U(m) {
577
- function S(P, _, O, M, A) {
578
- var R = P[_], I = ae(R);
577
+ function S(P, R, O, M, A) {
578
+ var _ = P[R], I = ae(_);
579
579
  if (I !== "object")
580
580
  return new s("Invalid " + M + " `" + A + "` of type `" + I + "` " + ("supplied to `" + O + "`, expected `object`."));
581
- var j = r({}, P[_], m);
582
- for (var B in j) {
581
+ var L = r({}, P[R], m);
582
+ for (var B in L) {
583
583
  var X = m[B];
584
584
  if (n(m, B) && typeof X != "function")
585
585
  return x(O, M, A, B, ye(X));
586
586
  if (!X)
587
587
  return new s(
588
- "Invalid " + M + " `" + A + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(P[_], null, " ") + `
588
+ "Invalid " + M + " `" + A + "` key `" + B + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(P[R], null, " ") + `
589
589
  Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
590
590
  );
591
- var v = X(R, B, O, M, A + "." + B, t);
591
+ var v = X(_, B, O, M, A + "." + B, t);
592
592
  if (v)
593
593
  return v;
594
594
  }
@@ -611,14 +611,14 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
611
611
  return !0;
612
612
  var S = p(m);
613
613
  if (S) {
614
- var P = S.call(m), _;
614
+ var P = S.call(m), R;
615
615
  if (S !== m.entries) {
616
- for (; !(_ = P.next()).done; )
617
- if (!oe(_.value))
616
+ for (; !(R = P.next()).done; )
617
+ if (!oe(R.value))
618
618
  return !1;
619
619
  } else
620
- for (; !(_ = P.next()).done; ) {
621
- var O = _.value;
620
+ for (; !(R = P.next()).done; ) {
621
+ var O = R.value;
622
622
  if (O && !oe(O[1]))
623
623
  return !1;
624
624
  }
@@ -1020,7 +1020,7 @@ const We = {
1020
1020
  // desktop
1021
1021
  xl: 1536
1022
1022
  // large screen
1023
- }, _r = {
1023
+ }, Rr = {
1024
1024
  // Sorted ASC by size. That's important.
1025
1025
  // It can't be configured as it's used statically for propTypes.
1026
1026
  keys: ["xs", "sm", "md", "lg", "xl"],
@@ -1036,11 +1036,11 @@ const We = {
1036
1036
  function fe(e, r, t) {
1037
1037
  const n = e.theme || {};
1038
1038
  if (Array.isArray(r)) {
1039
- const a = n.breakpoints || _r;
1039
+ const a = n.breakpoints || Rr;
1040
1040
  return r.reduce((c, l, f) => (c[a.up(a.keys[f])] = t(r[f]), c), {});
1041
1041
  }
1042
1042
  if (typeof r == "object") {
1043
- const a = n.breakpoints || _r;
1043
+ const a = n.breakpoints || Rr;
1044
1044
  return Object.keys(r).reduce((c, l) => {
1045
1045
  if (vt(a.keys, l)) {
1046
1046
  const f = St(n.containerQueries ? n : Tt, l);
@@ -1124,20 +1124,20 @@ const Ot = {
1124
1124
  l: "Left",
1125
1125
  x: ["Left", "Right"],
1126
1126
  y: ["Top", "Bottom"]
1127
- }, Rr = {
1127
+ }, _r = {
1128
1128
  marginX: "mx",
1129
1129
  marginY: "my",
1130
1130
  paddingX: "px",
1131
1131
  paddingY: "py"
1132
1132
  }, At = $t((e) => {
1133
1133
  if (e.length > 2)
1134
- if (Rr[e])
1135
- e = Rr[e];
1134
+ if (_r[e])
1135
+ e = _r[e];
1136
1136
  else
1137
1137
  return [e];
1138
1138
  const [r, t] = e.split(""), n = Ot[r], o = kt[t] || "";
1139
1139
  return Array.isArray(o) ? o.map((a) => n + a) : [n + o];
1140
- }), ze = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ye = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], _t = [...ze, ...Ye];
1140
+ }), ze = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ye = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Rt = [...ze, ...Ye];
1141
1141
  function Me(e, r, t, n) {
1142
1142
  const o = Ve(e, r, !0) ?? t;
1143
1143
  return typeof o == "number" || typeof o == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof o == "string" ? `calc(${a} * ${o})` : o * a) : Array.isArray(o) ? (a) => {
@@ -1159,13 +1159,13 @@ function gr(e) {
1159
1159
  function Ie(e, r) {
1160
1160
  return typeof r == "string" || r == null ? r : e(r);
1161
1161
  }
1162
- function Rt(e, r) {
1162
+ function _t(e, r) {
1163
1163
  return (t) => e.reduce((n, o) => (n[o] = Ie(r, t), n), {});
1164
1164
  }
1165
1165
  function Pt(e, r, t, n) {
1166
1166
  if (!r.includes(t))
1167
1167
  return null;
1168
- const o = At(t), a = Rt(o, n), c = e[t];
1168
+ const o = At(t), a = _t(o, n), c = e[t];
1169
1169
  return fe(e, c, a);
1170
1170
  }
1171
1171
  function qr(e, r) {
@@ -1182,7 +1182,7 @@ function H(e) {
1182
1182
  }
1183
1183
  H.propTypes = process.env.NODE_ENV !== "production" ? Ye.reduce((e, r) => (e[r] = he, e), {}) : {};
1184
1184
  H.filterProps = Ye;
1185
- process.env.NODE_ENV !== "production" && _t.reduce((e, r) => (e[r] = he, e), {});
1185
+ process.env.NODE_ENV !== "production" && Rt.reduce((e, r) => (e[r] = he, e), {});
1186
1186
  function Kr(e = 8, r = gr({
1187
1187
  spacing: e
1188
1188
  })) {
@@ -1210,7 +1210,7 @@ function ne(e, r) {
1210
1210
  transform: r
1211
1211
  });
1212
1212
  }
1213
- const Mt = ne("border", te), It = ne("borderTop", te), Bt = ne("borderRight", te), Nt = ne("borderBottom", te), Dt = ne("borderLeft", te), Lt = ne("borderColor"), jt = ne("borderTopColor"), Ft = ne("borderRightColor"), Wt = ne("borderBottomColor"), Vt = ne("borderLeftColor"), zt = ne("outline", te), Yt = ne("outlineColor"), Ge = (e) => {
1213
+ const Mt = ne("border", te), It = ne("borderTop", te), Bt = ne("borderRight", te), Nt = ne("borderBottom", te), Dt = ne("borderLeft", te), jt = ne("borderColor"), Lt = ne("borderTopColor"), Ft = ne("borderRightColor"), Wt = ne("borderBottomColor"), Vt = ne("borderLeftColor"), zt = ne("outline", te), Yt = ne("outlineColor"), Ge = (e) => {
1214
1214
  if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1215
1215
  const r = Me(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
1216
1216
  borderRadius: Ie(r, n)
@@ -1223,7 +1223,7 @@ Ge.propTypes = process.env.NODE_ENV !== "production" ? {
1223
1223
  borderRadius: he
1224
1224
  } : {};
1225
1225
  Ge.filterProps = ["borderRadius"];
1226
- Ue(Mt, It, Bt, Nt, Dt, Lt, jt, Ft, Wt, Vt, Ge, zt, Yt);
1226
+ Ue(Mt, It, Bt, Nt, Dt, jt, Lt, Ft, Wt, Vt, Ge, zt, Yt);
1227
1227
  const He = (e) => {
1228
1228
  if (e.gap !== void 0 && e.gap !== null) {
1229
1229
  const r = Me(e.theme, "spacing", 8, "gap"), t = (n) => ({
@@ -1877,14 +1877,14 @@ function Mr(e, r) {
1877
1877
  function xn(e, r) {
1878
1878
  return e = me(e), r = hr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, Xe(e);
1879
1879
  }
1880
- function Le(e, r, t) {
1880
+ function je(e, r, t) {
1881
1881
  try {
1882
1882
  return xn(e, r);
1883
1883
  } catch {
1884
1884
  return e;
1885
1885
  }
1886
1886
  }
1887
- function Re(e, r) {
1887
+ function _e(e, r) {
1888
1888
  if (e = me(e), r = hr(r), e.type.includes("hsl"))
1889
1889
  e.values[2] *= 1 - r;
1890
1890
  else if (e.type.includes("rgb") || e.type.includes("color"))
@@ -1894,7 +1894,7 @@ function Re(e, r) {
1894
1894
  }
1895
1895
  function V(e, r, t) {
1896
1896
  try {
1897
- return Re(e, r);
1897
+ return _e(e, r);
1898
1898
  } catch {
1899
1899
  return e;
1900
1900
  }
@@ -1918,9 +1918,9 @@ function z(e, r, t) {
1918
1918
  }
1919
1919
  }
1920
1920
  function Tn(e, r = 0.15) {
1921
- return fr(e) > 0.5 ? Re(e, r) : Pe(e, r);
1921
+ return fr(e) > 0.5 ? _e(e, r) : Pe(e, r);
1922
1922
  }
1923
- function je(e, r, t) {
1923
+ function Le(e, r, t) {
1924
1924
  try {
1925
1925
  return Tn(e, r);
1926
1926
  } catch {
@@ -1992,12 +1992,12 @@ function On(e, r = {}) {
1992
1992
  [l]: b,
1993
1993
  ...s
1994
1994
  } = a;
1995
- if (Object.entries(s || {}).forEach(([$, T]) => {
1995
+ if (Object.entries(s || {}).forEach(([$, E]) => {
1996
1996
  const {
1997
1997
  vars: h,
1998
1998
  css: Z,
1999
1999
  varsWithDefaults: re
2000
- } = sr(T, r);
2000
+ } = sr(E, r);
2001
2001
  g = ee(g, re), C[$] = {
2002
2002
  css: Z,
2003
2003
  vars: h
@@ -2005,22 +2005,22 @@ function On(e, r = {}) {
2005
2005
  }), b) {
2006
2006
  const {
2007
2007
  css: $,
2008
- vars: T,
2008
+ vars: E,
2009
2009
  varsWithDefaults: h
2010
2010
  } = sr(b, r);
2011
2011
  g = ee(g, h), C[l] = {
2012
2012
  css: $,
2013
- vars: T
2013
+ vars: E
2014
2014
  };
2015
2015
  }
2016
- function w($, T) {
2016
+ function w($, E) {
2017
2017
  var Z, re;
2018
2018
  let h = o;
2019
2019
  if (o === "class" && (h = ".%s"), o === "data" && (h = "[data-%s]"), o != null && o.startsWith("data-") && !o.includes("%s") && (h = `[${o}="%s"]`), $) {
2020
2020
  if (h === "media")
2021
2021
  return e.defaultColorScheme === $ ? ":root" : {
2022
2022
  [`@media (prefers-color-scheme: ${((re = (Z = a[$]) == null ? void 0 : Z.palette) == null ? void 0 : re.mode) || $})`]: {
2023
- ":root": T
2023
+ ":root": E
2024
2024
  }
2025
2025
  };
2026
2026
  if (h)
@@ -2035,14 +2035,14 @@ function On(e, r = {}) {
2035
2035
  ...d
2036
2036
  };
2037
2037
  return Object.entries(C).forEach(([, {
2038
- vars: T
2038
+ vars: E
2039
2039
  }]) => {
2040
- $ = ee($, T);
2040
+ $ = ee($, E);
2041
2041
  }), $;
2042
2042
  },
2043
2043
  generateStyleSheets: () => {
2044
2044
  var le, Q;
2045
- const $ = [], T = e.defaultColorScheme || "light";
2045
+ const $ = [], E = e.defaultColorScheme || "light";
2046
2046
  function h(i, x) {
2047
2047
  Object.keys(x).length && $.push(typeof i == "string" ? {
2048
2048
  [i]: {
@@ -2054,19 +2054,19 @@ function On(e, r = {}) {
2054
2054
  ...y
2055
2055
  }), y);
2056
2056
  const {
2057
- [T]: Z,
2057
+ [E]: Z,
2058
2058
  ...re
2059
2059
  } = C;
2060
2060
  if (Z) {
2061
2061
  const {
2062
2062
  css: i
2063
- } = Z, x = (Q = (le = a[T]) == null ? void 0 : le.palette) == null ? void 0 : Q.mode, N = !n && x ? {
2063
+ } = Z, x = (Q = (le = a[E]) == null ? void 0 : le.palette) == null ? void 0 : Q.mode, N = !n && x ? {
2064
2064
  colorScheme: x,
2065
2065
  ...i
2066
2066
  } : {
2067
2067
  ...i
2068
2068
  };
2069
- h(t(T, {
2069
+ h(t(E, {
2070
2070
  ...N
2071
2071
  }), N);
2072
2072
  }
@@ -2108,8 +2108,8 @@ function Qr() {
2108
2108
  // The background colors used to style the surfaces.
2109
2109
  // Consistency between these values is important.
2110
2110
  background: {
2111
- paper: _e.white,
2112
- default: _e.white
2111
+ paper: Re.white,
2112
+ default: Re.white
2113
2113
  },
2114
2114
  // The colors used to style the action elements.
2115
2115
  action: {
@@ -2136,7 +2136,7 @@ const An = Qr();
2136
2136
  function Xr() {
2137
2137
  return {
2138
2138
  text: {
2139
- primary: _e.white,
2139
+ primary: Re.white,
2140
2140
  secondary: "rgba(255, 255, 255, 0.7)",
2141
2141
  disabled: "rgba(255, 255, 255, 0.5)",
2142
2142
  icon: "rgba(255, 255, 255, 0.5)"
@@ -2147,7 +2147,7 @@ function Xr() {
2147
2147
  default: "#121212"
2148
2148
  },
2149
2149
  action: {
2150
- active: _e.white,
2150
+ active: Re.white,
2151
2151
  hover: "rgba(255, 255, 255, 0.08)",
2152
2152
  hoverOpacity: 0.08,
2153
2153
  selected: "rgba(255, 255, 255, 0.16)",
@@ -2164,9 +2164,9 @@ function Xr() {
2164
2164
  const Br = Xr();
2165
2165
  function Nr(e, r, t, n) {
2166
2166
  const o = n.light || n, a = n.dark || n * 1.5;
2167
- e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Pe(e.main, o) : r === "dark" && (e.dark = Re(e.main, a)));
2167
+ e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Pe(e.main, o) : r === "dark" && (e.dark = _e(e.main, a)));
2168
2168
  }
2169
- function _n(e = "light") {
2169
+ function Rn(e = "light") {
2170
2170
  return e === "dark" ? {
2171
2171
  main: Ce[200],
2172
2172
  light: Ce[50],
@@ -2177,7 +2177,7 @@ function _n(e = "light") {
2177
2177
  dark: Ce[800]
2178
2178
  };
2179
2179
  }
2180
- function Rn(e = "light") {
2180
+ function _n(e = "light") {
2181
2181
  return e === "dark" ? {
2182
2182
  main: Se[200],
2183
2183
  light: Se[50],
@@ -2239,7 +2239,7 @@ function yr(e) {
2239
2239
  contrastThreshold: t = 3,
2240
2240
  tonalOffset: n = 0.2,
2241
2241
  ...o
2242
- } = e, a = e.primary || _n(r), c = e.secondary || Rn(r), l = e.error || Pn(r), f = e.info || Mn(r), d = e.success || In(r), y = e.warning || Bn(r);
2242
+ } = e, a = e.primary || Rn(r), c = e.secondary || _n(r), l = e.error || Pn(r), f = e.info || Mn(r), d = e.success || In(r), y = e.warning || Bn(r);
2243
2243
  function p(s) {
2244
2244
  const w = Mr(s, Br.text.primary) >= t ? Br.text.primary : An.text.primary;
2245
2245
  if (process.env.NODE_ENV !== "production") {
@@ -2282,7 +2282,7 @@ const theme2 = createTheme({ palette: {
2282
2282
  return r === "light" ? C = Qr() : r === "dark" && (C = Xr()), process.env.NODE_ENV !== "production" && (C || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), ee({
2283
2283
  // A collection of common colors.
2284
2284
  common: {
2285
- ..._e
2285
+ ...Re
2286
2286
  },
2287
2287
  // prevent mutable object.
2288
2288
  // The palette mode, can be light or dark.
@@ -2360,15 +2360,15 @@ function Dn(e, r) {
2360
2360
  ...r
2361
2361
  };
2362
2362
  }
2363
- function Ln(e) {
2363
+ function jn(e) {
2364
2364
  return Math.round(e * 1e5) / 1e5;
2365
2365
  }
2366
2366
  const Dr = {
2367
2367
  textTransform: "uppercase"
2368
- }, Lr = '"Roboto", "Helvetica", "Arial", sans-serif';
2369
- function jn(e, r) {
2368
+ }, jr = '"Roboto", "Helvetica", "Arial", sans-serif';
2369
+ function Ln(e, r) {
2370
2370
  const {
2371
- fontFamily: t = Lr,
2371
+ fontFamily: t = jr,
2372
2372
  // The default font size of the Material Specification.
2373
2373
  fontSize: n = 14,
2374
2374
  // px
@@ -2385,7 +2385,7 @@ function jn(e, r) {
2385
2385
  ...p
2386
2386
  } = typeof r == "function" ? r(e) : r;
2387
2387
  process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2388
- const g = n / 14, C = y || ((w) => `${w / f * g}rem`), b = (w, k, K, $, T) => ({
2388
+ const g = n / 14, C = y || ((w) => `${w / f * g}rem`), b = (w, k, K, $, E) => ({
2389
2389
  fontFamily: t,
2390
2390
  fontWeight: w,
2391
2391
  fontSize: C(k),
@@ -2393,10 +2393,10 @@ function jn(e, r) {
2393
2393
  lineHeight: K,
2394
2394
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
2395
2395
  // across font-families can cause issues with the kerning.
2396
- ...t === Lr ? {
2397
- letterSpacing: `${Ln($ / k)}em`
2396
+ ...t === jr ? {
2397
+ letterSpacing: `${jn($ / k)}em`
2398
2398
  } : {},
2399
- ...T,
2399
+ ...E,
2400
2400
  ...d
2401
2401
  }), s = {
2402
2402
  h1: b(o, 96, 1.167, -1.5),
@@ -2463,7 +2463,7 @@ const zn = ["none", Y(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), Y(0, 3, 1, -2, 0, 2,
2463
2463
  // recommended when something is leaving screen
2464
2464
  leavingScreen: 195
2465
2465
  };
2466
- function jr(e) {
2466
+ function Lr(e) {
2467
2467
  return `${Math.round(e)}ms`;
2468
2468
  }
2469
2469
  function Gn(e) {
@@ -2494,7 +2494,7 @@ function Hn(e) {
2494
2494
  !y(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(c) && !y(c) && console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`), y(l) || console.error('MUI: Argument "easing" must be a string.'), !p(f) && !y(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
2495
2495
  `)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
2496
2496
  }
2497
- return (Array.isArray(o) ? o : [o]).map((y) => `${y} ${typeof c == "string" ? c : jr(c)} ${l} ${typeof f == "string" ? f : jr(f)}`).join(",");
2497
+ return (Array.isArray(o) ? o : [o]).map((y) => `${y} ${typeof c == "string" ? c : Lr(c)} ${l} ${typeof f == "string" ? f : Lr(f)}`).join(",");
2498
2498
  },
2499
2499
  ...e,
2500
2500
  easing: r,
@@ -2557,7 +2557,7 @@ function dr(e = {}, ...r) {
2557
2557
  palette: y,
2558
2558
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2559
2559
  shadows: zn.slice(),
2560
- typography: jn(y, l),
2560
+ typography: Ln(y, l),
2561
2561
  transitions: Hn(c),
2562
2562
  zIndex: {
2563
2563
  ...qn
@@ -2764,7 +2764,7 @@ function io(e = {}, ...r) {
2764
2764
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${p}\` option is either missing or invalid.` : ge(21, p));
2765
2765
  const $ = cr(k, K, d, p);
2766
2766
  b && !k.light && cr(k, b, void 0, "light"), s && !k.dark && cr(k, s, void 0, "dark");
2767
- let T = {
2767
+ let E = {
2768
2768
  defaultColorScheme: p,
2769
2769
  ...$,
2770
2770
  cssVarPrefix: a,
@@ -2778,49 +2778,49 @@ function io(e = {}, ...r) {
2778
2778
  },
2779
2779
  spacing: no(d.spacing)
2780
2780
  };
2781
- Object.keys(T.colorSchemes).forEach((Q) => {
2782
- const i = T.colorSchemes[Q].palette, x = (N) => {
2781
+ Object.keys(E.colorSchemes).forEach((Q) => {
2782
+ const i = E.colorSchemes[Q].palette, x = (N) => {
2783
2783
  const U = N.split("-"), oe = U[1], de = U[2];
2784
2784
  return g(N, i[oe][de]);
2785
2785
  };
2786
2786
  if (i.mode === "light" && (u(i.common, "background", "#fff"), u(i.common, "onBackground", "#000")), i.mode === "dark" && (u(i.common, "background", "#000"), u(i.common, "onBackground", "#fff")), to(i, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), i.mode === "light") {
2787
2787
  u(i.Alert, "errorColor", V(i.error.light, 0.6)), u(i.Alert, "infoColor", V(i.info.light, 0.6)), u(i.Alert, "successColor", V(i.success.light, 0.6)), u(i.Alert, "warningColor", V(i.warning.light, 0.6)), u(i.Alert, "errorFilledBg", x("palette-error-main")), u(i.Alert, "infoFilledBg", x("palette-info-main")), u(i.Alert, "successFilledBg", x("palette-success-main")), u(i.Alert, "warningFilledBg", x("palette-warning-main")), u(i.Alert, "errorFilledColor", ce(() => i.getContrastText(i.error.main))), u(i.Alert, "infoFilledColor", ce(() => i.getContrastText(i.info.main))), u(i.Alert, "successFilledColor", ce(() => i.getContrastText(i.success.main))), u(i.Alert, "warningFilledColor", ce(() => i.getContrastText(i.warning.main))), u(i.Alert, "errorStandardBg", z(i.error.light, 0.9)), u(i.Alert, "infoStandardBg", z(i.info.light, 0.9)), u(i.Alert, "successStandardBg", z(i.success.light, 0.9)), u(i.Alert, "warningStandardBg", z(i.warning.light, 0.9)), u(i.Alert, "errorIconColor", x("palette-error-main")), u(i.Alert, "infoIconColor", x("palette-info-main")), u(i.Alert, "successIconColor", x("palette-success-main")), u(i.Alert, "warningIconColor", x("palette-warning-main")), u(i.AppBar, "defaultBg", x("palette-grey-100")), u(i.Avatar, "defaultBg", x("palette-grey-400")), u(i.Button, "inheritContainedBg", x("palette-grey-300")), u(i.Button, "inheritContainedHoverBg", x("palette-grey-A100")), u(i.Chip, "defaultBorder", x("palette-grey-400")), u(i.Chip, "defaultAvatarColor", x("palette-grey-700")), u(i.Chip, "defaultIconColor", x("palette-grey-700")), u(i.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), u(i.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), u(i.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), u(i.LinearProgress, "primaryBg", z(i.primary.main, 0.62)), u(i.LinearProgress, "secondaryBg", z(i.secondary.main, 0.62)), u(i.LinearProgress, "errorBg", z(i.error.main, 0.62)), u(i.LinearProgress, "infoBg", z(i.info.main, 0.62)), u(i.LinearProgress, "successBg", z(i.success.main, 0.62)), u(i.LinearProgress, "warningBg", z(i.warning.main, 0.62)), u(i.Skeleton, "bg", `rgba(${x("palette-text-primaryChannel")} / 0.11)`), u(i.Slider, "primaryTrack", z(i.primary.main, 0.62)), u(i.Slider, "secondaryTrack", z(i.secondary.main, 0.62)), u(i.Slider, "errorTrack", z(i.error.main, 0.62)), u(i.Slider, "infoTrack", z(i.info.main, 0.62)), u(i.Slider, "successTrack", z(i.success.main, 0.62)), u(i.Slider, "warningTrack", z(i.warning.main, 0.62));
2788
- const N = je(i.background.default, 0.8);
2789
- u(i.SnackbarContent, "bg", N), u(i.SnackbarContent, "color", ce(() => i.getContrastText(N))), u(i.SpeedDialAction, "fabHoverBg", je(i.background.paper, 0.15)), u(i.StepConnector, "border", x("palette-grey-400")), u(i.StepContent, "border", x("palette-grey-400")), u(i.Switch, "defaultColor", x("palette-common-white")), u(i.Switch, "defaultDisabledColor", x("palette-grey-100")), u(i.Switch, "primaryDisabledColor", z(i.primary.main, 0.62)), u(i.Switch, "secondaryDisabledColor", z(i.secondary.main, 0.62)), u(i.Switch, "errorDisabledColor", z(i.error.main, 0.62)), u(i.Switch, "infoDisabledColor", z(i.info.main, 0.62)), u(i.Switch, "successDisabledColor", z(i.success.main, 0.62)), u(i.Switch, "warningDisabledColor", z(i.warning.main, 0.62)), u(i.TableCell, "border", z(Le(i.divider, 1), 0.88)), u(i.Tooltip, "bg", Le(i.grey[700], 0.92));
2788
+ const N = Le(i.background.default, 0.8);
2789
+ u(i.SnackbarContent, "bg", N), u(i.SnackbarContent, "color", ce(() => i.getContrastText(N))), u(i.SpeedDialAction, "fabHoverBg", Le(i.background.paper, 0.15)), u(i.StepConnector, "border", x("palette-grey-400")), u(i.StepContent, "border", x("palette-grey-400")), u(i.Switch, "defaultColor", x("palette-common-white")), u(i.Switch, "defaultDisabledColor", x("palette-grey-100")), u(i.Switch, "primaryDisabledColor", z(i.primary.main, 0.62)), u(i.Switch, "secondaryDisabledColor", z(i.secondary.main, 0.62)), u(i.Switch, "errorDisabledColor", z(i.error.main, 0.62)), u(i.Switch, "infoDisabledColor", z(i.info.main, 0.62)), u(i.Switch, "successDisabledColor", z(i.success.main, 0.62)), u(i.Switch, "warningDisabledColor", z(i.warning.main, 0.62)), u(i.TableCell, "border", z(je(i.divider, 1), 0.88)), u(i.Tooltip, "bg", je(i.grey[700], 0.92));
2790
2790
  }
2791
2791
  if (i.mode === "dark") {
2792
2792
  u(i.Alert, "errorColor", z(i.error.light, 0.6)), u(i.Alert, "infoColor", z(i.info.light, 0.6)), u(i.Alert, "successColor", z(i.success.light, 0.6)), u(i.Alert, "warningColor", z(i.warning.light, 0.6)), u(i.Alert, "errorFilledBg", x("palette-error-dark")), u(i.Alert, "infoFilledBg", x("palette-info-dark")), u(i.Alert, "successFilledBg", x("palette-success-dark")), u(i.Alert, "warningFilledBg", x("palette-warning-dark")), u(i.Alert, "errorFilledColor", ce(() => i.getContrastText(i.error.dark))), u(i.Alert, "infoFilledColor", ce(() => i.getContrastText(i.info.dark))), u(i.Alert, "successFilledColor", ce(() => i.getContrastText(i.success.dark))), u(i.Alert, "warningFilledColor", ce(() => i.getContrastText(i.warning.dark))), u(i.Alert, "errorStandardBg", V(i.error.light, 0.9)), u(i.Alert, "infoStandardBg", V(i.info.light, 0.9)), u(i.Alert, "successStandardBg", V(i.success.light, 0.9)), u(i.Alert, "warningStandardBg", V(i.warning.light, 0.9)), u(i.Alert, "errorIconColor", x("palette-error-main")), u(i.Alert, "infoIconColor", x("palette-info-main")), u(i.Alert, "successIconColor", x("palette-success-main")), u(i.Alert, "warningIconColor", x("palette-warning-main")), u(i.AppBar, "defaultBg", x("palette-grey-900")), u(i.AppBar, "darkBg", x("palette-background-paper")), u(i.AppBar, "darkColor", x("palette-text-primary")), u(i.Avatar, "defaultBg", x("palette-grey-600")), u(i.Button, "inheritContainedBg", x("palette-grey-800")), u(i.Button, "inheritContainedHoverBg", x("palette-grey-700")), u(i.Chip, "defaultBorder", x("palette-grey-700")), u(i.Chip, "defaultAvatarColor", x("palette-grey-300")), u(i.Chip, "defaultIconColor", x("palette-grey-300")), u(i.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), u(i.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), u(i.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), u(i.LinearProgress, "primaryBg", V(i.primary.main, 0.5)), u(i.LinearProgress, "secondaryBg", V(i.secondary.main, 0.5)), u(i.LinearProgress, "errorBg", V(i.error.main, 0.5)), u(i.LinearProgress, "infoBg", V(i.info.main, 0.5)), u(i.LinearProgress, "successBg", V(i.success.main, 0.5)), u(i.LinearProgress, "warningBg", V(i.warning.main, 0.5)), u(i.Skeleton, "bg", `rgba(${x("palette-text-primaryChannel")} / 0.13)`), u(i.Slider, "primaryTrack", V(i.primary.main, 0.5)), u(i.Slider, "secondaryTrack", V(i.secondary.main, 0.5)), u(i.Slider, "errorTrack", V(i.error.main, 0.5)), u(i.Slider, "infoTrack", V(i.info.main, 0.5)), u(i.Slider, "successTrack", V(i.success.main, 0.5)), u(i.Slider, "warningTrack", V(i.warning.main, 0.5));
2793
- const N = je(i.background.default, 0.98);
2794
- u(i.SnackbarContent, "bg", N), u(i.SnackbarContent, "color", ce(() => i.getContrastText(N))), u(i.SpeedDialAction, "fabHoverBg", je(i.background.paper, 0.15)), u(i.StepConnector, "border", x("palette-grey-600")), u(i.StepContent, "border", x("palette-grey-600")), u(i.Switch, "defaultColor", x("palette-grey-300")), u(i.Switch, "defaultDisabledColor", x("palette-grey-600")), u(i.Switch, "primaryDisabledColor", V(i.primary.main, 0.55)), u(i.Switch, "secondaryDisabledColor", V(i.secondary.main, 0.55)), u(i.Switch, "errorDisabledColor", V(i.error.main, 0.55)), u(i.Switch, "infoDisabledColor", V(i.info.main, 0.55)), u(i.Switch, "successDisabledColor", V(i.success.main, 0.55)), u(i.Switch, "warningDisabledColor", V(i.warning.main, 0.55)), u(i.TableCell, "border", V(Le(i.divider, 1), 0.68)), u(i.Tooltip, "bg", Le(i.grey[700], 0.92));
2793
+ const N = Le(i.background.default, 0.98);
2794
+ u(i.SnackbarContent, "bg", N), u(i.SnackbarContent, "color", ce(() => i.getContrastText(N))), u(i.SpeedDialAction, "fabHoverBg", Le(i.background.paper, 0.15)), u(i.StepConnector, "border", x("palette-grey-600")), u(i.StepContent, "border", x("palette-grey-600")), u(i.Switch, "defaultColor", x("palette-grey-300")), u(i.Switch, "defaultDisabledColor", x("palette-grey-600")), u(i.Switch, "primaryDisabledColor", V(i.primary.main, 0.55)), u(i.Switch, "secondaryDisabledColor", V(i.secondary.main, 0.55)), u(i.Switch, "errorDisabledColor", V(i.error.main, 0.55)), u(i.Switch, "infoDisabledColor", V(i.info.main, 0.55)), u(i.Switch, "successDisabledColor", V(i.success.main, 0.55)), u(i.Switch, "warningDisabledColor", V(i.warning.main, 0.55)), u(i.TableCell, "border", V(je(i.divider, 1), 0.68)), u(i.Tooltip, "bg", je(i.grey[700], 0.92));
2795
2795
  }
2796
2796
  ue(i.background, "default"), ue(i.background, "paper"), ue(i.common, "background"), ue(i.common, "onBackground"), ue(i, "divider"), Object.keys(i).forEach((N) => {
2797
2797
  const U = i[N];
2798
2798
  N !== "tonalOffset" && U && typeof U == "object" && (U.main && u(i[N], "mainChannel", Oe(ke(U.main))), U.light && u(i[N], "lightChannel", Oe(ke(U.light))), U.dark && u(i[N], "darkChannel", Oe(ke(U.dark))), U.contrastText && u(i[N], "contrastTextChannel", Oe(ke(U.contrastText))), N === "text" && (ue(i[N], "primary"), ue(i[N], "secondary")), N === "action" && (U.active && ue(i[N], "active"), U.selected && ue(i[N], "selected")));
2799
2799
  });
2800
- }), T = r.reduce((Q, i) => ee(Q, i), T);
2800
+ }), E = r.reduce((Q, i) => ee(Q, i), E);
2801
2801
  const h = {
2802
2802
  prefix: a,
2803
2803
  disableCssColorScheme: o,
2804
2804
  shouldSkipGeneratingVar: c,
2805
- getSelector: ro(T)
2805
+ getSelector: ro(E)
2806
2806
  }, {
2807
2807
  vars: Z,
2808
2808
  generateThemeVars: re,
2809
2809
  generateStyleSheets: le
2810
- } = On(T, h);
2811
- return T.vars = Z, Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([Q, i]) => {
2812
- T[Q] = i;
2813
- }), T.generateThemeVars = re, T.generateStyleSheets = le, T.generateSpacing = function() {
2810
+ } = On(E, h);
2811
+ return E.vars = Z, Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([Q, i]) => {
2812
+ E[Q] = i;
2813
+ }), E.generateThemeVars = re, E.generateStyleSheets = le, E.generateSpacing = function() {
2814
2814
  return Kr(d.spacing, gr(this));
2815
- }, T.getColorSchemeSelector = kn(l), T.spacing = T.generateSpacing(), T.shouldSkipGeneratingVar = c, T.unstable_sxConfig = {
2815
+ }, E.getColorSchemeSelector = kn(l), E.spacing = E.generateSpacing(), E.shouldSkipGeneratingVar = c, E.unstable_sxConfig = {
2816
2816
  ...Ze,
2817
2817
  ...d == null ? void 0 : d.unstable_sxConfig
2818
- }, T.unstable_sx = function(i) {
2818
+ }, E.unstable_sx = function(i) {
2819
2819
  return Qe({
2820
2820
  sx: i,
2821
2821
  theme: this
2822
2822
  });
2823
- }, T.toRuntimeSource = Jr, T;
2823
+ }, E.toRuntimeSource = Jr, E;
2824
2824
  }
2825
2825
  function Fr(e, r, t) {
2826
2826
  e.colorSchemes && t && (e.colorSchemes[r] = {
@@ -3054,7 +3054,7 @@ const so = {
3054
3054
  })
3055
3055
  }
3056
3056
  }
3057
- }, E = {
3057
+ }, T = {
3058
3058
  primary: {
3059
3059
  blue: {
3060
3060
  50: "#f3f7f8",
@@ -3122,8 +3122,8 @@ const so = {
3122
3122
  100: "#e5e5e5",
3123
3123
  200: "#d6d6d6",
3124
3124
  400: "#737373",
3125
- 500: Re("#737373", 0.5),
3126
- 600: Re("#737373", 0.8)
3125
+ 500: _e("#737373", 0.5),
3126
+ 600: _e("#737373", 0.8)
3127
3127
  }
3128
3128
  },
3129
3129
  neutral: {
@@ -3137,6 +3137,7 @@ const so = {
3137
3137
  200: "#d6d6d6",
3138
3138
  300: "#a3a3a3",
3139
3139
  400: "#737373",
3140
+ 500: "#667085",
3140
3141
  700: "#424242",
3141
3142
  900: "#141414",
3142
3143
  950: "#0f0f0f"
@@ -3169,13 +3170,13 @@ const so = {
3169
3170
  standard: (e) => {
3170
3171
  if (!e.ownerState.severity)
3171
3172
  return {
3172
- color: E.neutral.grey[700],
3173
- background: E.neutral.grey[50]
3173
+ color: T.neutral.grey[700],
3174
+ background: T.neutral.grey[50]
3174
3175
  };
3175
3176
  const r = e.theme.palette[e.ownerState.severity];
3176
3177
  if (r)
3177
3178
  return {
3178
- color: E.neutral.grey[700],
3179
+ color: T.neutral.grey[700],
3179
3180
  background: r.transparent,
3180
3181
  ".MuiAlert-icon": {
3181
3182
  color: r.main
@@ -3199,14 +3200,14 @@ const so = {
3199
3200
  MuiTooltip: {
3200
3201
  styleOverrides: {
3201
3202
  tooltip: (e) => ({
3202
- backgroundColor: E.neutral.grey[900],
3203
+ backgroundColor: T.neutral.grey[900],
3203
3204
  borderRadius: e.theme.spacing(3),
3204
3205
  p: 1,
3205
3206
  textAlign: "center",
3206
- color: E.neutral.white
3207
+ color: T.neutral.white
3207
3208
  }),
3208
3209
  arrow: {
3209
- color: E.neutral.grey[900]
3210
+ color: T.neutral.grey[900]
3210
3211
  }
3211
3212
  }
3212
3213
  }
@@ -3214,11 +3215,11 @@ const so = {
3214
3215
  MuiFormLabel: {
3215
3216
  styleOverrides: {
3216
3217
  root: {
3217
- background: E.neutral.white,
3218
+ background: T.neutral.white,
3218
3219
  px: 1,
3219
3220
  mx: -1,
3220
3221
  "&:focus": {
3221
- color: E.primary.blue[600]
3222
+ color: T.primary.blue[600]
3222
3223
  }
3223
3224
  }
3224
3225
  }
@@ -3232,9 +3233,9 @@ const so = {
3232
3233
  padding: 0,
3233
3234
  borderRadius: e.theme.spacing(3),
3234
3235
  marginBottom: 3,
3235
- border: `1px solid ${E.neutral.grey[300]}`,
3236
+ border: `1px solid ${T.neutral.grey[300]}`,
3236
3237
  ":hover": {
3237
- borderColor: E.neutral.grey[400]
3238
+ borderColor: T.neutral.grey[400]
3238
3239
  },
3239
3240
  ".MuiListItemButton-root": {
3240
3241
  borderRadius: e.theme.spacing(3)
@@ -3259,7 +3260,7 @@ const so = {
3259
3260
  MuiSlider: {
3260
3261
  styleOverrides: {
3261
3262
  rail: (e) => ({
3262
- backgroundColor: E.neutral.grey[50],
3263
+ backgroundColor: T.neutral.grey[50],
3263
3264
  opacity: 1,
3264
3265
  borderRadius: e.theme.spacing(3),
3265
3266
  height: "8px"
@@ -3279,9 +3280,9 @@ const so = {
3279
3280
  }),
3280
3281
  valueLabel: () => ({
3281
3282
  background: "white",
3282
- color: E.neutral.black,
3283
+ color: T.neutral.black,
3283
3284
  boxShadow: "0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08)",
3284
- borderColor: E.neutral.grey[50],
3285
+ borderColor: T.neutral.grey[50],
3285
3286
  borderStyle: "solid",
3286
3287
  borderWidth: "1px",
3287
3288
  fontWeight: 600,
@@ -3295,31 +3296,31 @@ const so = {
3295
3296
  styleOverrides: {
3296
3297
  root: (e) => ({
3297
3298
  borderRadius: e.theme.spacing(3),
3298
- background: E.neutral.white,
3299
+ background: T.neutral.white,
3299
3300
  "&:hover": {
3300
- borderColor: E.neutral.grey[300]
3301
+ borderColor: T.neutral.grey[300]
3301
3302
  },
3302
3303
  "&.Mui-focused": {
3303
3304
  borderRadius: e.theme.spacing(3),
3304
3305
  "&.MuiInputBase-colorPrimary": {
3305
- borderColor: E.primary.blue[400],
3306
- outline: `3px solid ${E.primary.blue[100]}`,
3306
+ borderColor: T.primary.blue[400],
3307
+ outline: `3px solid ${T.primary.blue[100]}`,
3307
3308
  ".MuiOutlinedInput-notchedOutline": {
3308
- borderColor: E.primary.blue[400]
3309
+ borderColor: T.primary.blue[400]
3309
3310
  },
3310
3311
  "&.Mui-error": {
3311
- borderColor: E.semantic.red[400],
3312
- outline: `3px solid ${E.semantic.red[100]}`,
3312
+ borderColor: T.semantic.red[400],
3313
+ outline: `3px solid ${T.semantic.red[100]}`,
3313
3314
  ".MuiOutlinedInput-notchedOutline": {
3314
- borderColor: E.semantic.red[400]
3315
+ borderColor: T.semantic.red[400]
3315
3316
  }
3316
3317
  }
3317
3318
  },
3318
3319
  "&.MuiInputBase-colorSuccess": {
3319
- borderColor: E.semantic.green[400],
3320
- outline: `3px solid ${E.semantic.green[50]}`,
3320
+ borderColor: T.semantic.green[400],
3321
+ outline: `3px solid ${T.semantic.green[50]}`,
3321
3322
  ".MuiOutlinedInput-notchedOutline": {
3322
- borderColor: E.semantic.green[400]
3323
+ borderColor: T.semantic.green[400]
3323
3324
  }
3324
3325
  }
3325
3326
  },
@@ -3330,15 +3331,15 @@ const so = {
3330
3331
  input: (e) => ({
3331
3332
  borderRadius: e.theme.spacing(3),
3332
3333
  "&::placeholder": {
3333
- color: E.neutral.grey[300],
3334
+ color: T.neutral.grey[300],
3334
3335
  opacity: 1
3335
3336
  },
3336
3337
  "&:-webkit-autofill": {
3337
- backgroundColor: E.neutral.white,
3338
- color: E.neutral.black,
3338
+ backgroundColor: T.neutral.white,
3339
+ color: T.neutral.black,
3339
3340
  boxShadow: "0 0 0px 1000px #ffffff inset !important"
3340
3341
  },
3341
- WebkitTextFillColor: E.neutral.black
3342
+ WebkitTextFillColor: T.neutral.black
3342
3343
  })
3343
3344
  }
3344
3345
  },
@@ -3346,15 +3347,15 @@ const so = {
3346
3347
  styleOverrides: {
3347
3348
  root: (e) => ({
3348
3349
  borderRadius: e.theme.spacing(3),
3349
- borderColor: E.neutral.grey[400]
3350
+ borderColor: T.neutral.grey[400]
3350
3351
  }),
3351
3352
  input: () => ({
3352
3353
  "&:-webkit-autofill": {
3353
- backgroundColor: E.neutral.white,
3354
- color: E.neutral.black,
3354
+ backgroundColor: T.neutral.white,
3355
+ color: T.neutral.black,
3355
3356
  boxShadow: "0 0 0px 1000px #ffffff inset !important"
3356
3357
  },
3357
- WebkitTextFillColor: E.neutral.black
3358
+ WebkitTextFillColor: T.neutral.black
3358
3359
  })
3359
3360
  }
3360
3361
  },
@@ -3362,18 +3363,18 @@ const so = {
3362
3363
  styleOverrides: {
3363
3364
  root: (e) => ({
3364
3365
  borderRadius: `${e.theme.spacing(3)} ${e.theme.spacing(3)} 0 0`,
3365
- borderColor: E.neutral.grey[400],
3366
+ borderColor: T.neutral.grey[400],
3366
3367
  "&.Mui-focused": {
3367
3368
  borderRadius: `${e.theme.spacing(3)} ${e.theme.spacing(3)} 0 0`
3368
3369
  }
3369
3370
  }),
3370
3371
  input: () => ({
3371
3372
  "&:-webkit-autofill": {
3372
- backgroundColor: E.neutral.white,
3373
- color: E.neutral.black,
3373
+ backgroundColor: T.neutral.white,
3374
+ color: T.neutral.black,
3374
3375
  boxShadow: "0 0 0px 1000px #ffffff inset !important"
3375
3376
  },
3376
- WebkitTextFillColor: E.neutral.black
3377
+ WebkitTextFillColor: T.neutral.black
3377
3378
  })
3378
3379
  }
3379
3380
  }
@@ -3442,22 +3443,43 @@ const so = {
3442
3443
  }
3443
3444
  }
3444
3445
  }, bo = {
3446
+ MuiTab: {
3447
+ styleOverrides: {
3448
+ root: (e) => ({
3449
+ color: T.neutral.grey[500],
3450
+ borderRadius: "8px 8px 0 0",
3451
+ padding: "0 12px 0 12px",
3452
+ textTransform: "initial",
3453
+ display: "flex",
3454
+ alignItems: "center",
3455
+ justifyContent: "center",
3456
+ height: "44px",
3457
+ minHeight: "44px",
3458
+ opacity: 1,
3459
+ "&.Mui-selected": {
3460
+ background: T.primary.blue[50],
3461
+ color: e.theme.palette.primary.dark
3462
+ }
3463
+ })
3464
+ }
3465
+ }
3466
+ }, vo = {
3445
3467
  mode: "light",
3446
- primary: be(E.primary.blue),
3447
- secondary: be(E.primary.coral),
3448
- error: be(E.semantic.red),
3449
- success: be(E.semantic.green),
3450
- warning: be(E.semantic.yellow),
3451
- info: be(E.semantic.blue),
3452
- neutral: be(E.semantic.neutral),
3468
+ primary: be(T.primary.blue),
3469
+ secondary: be(T.primary.coral),
3470
+ error: be(T.semantic.red),
3471
+ success: be(T.semantic.green),
3472
+ warning: be(T.semantic.yellow),
3473
+ info: be(T.semantic.blue),
3474
+ neutral: be(T.semantic.neutral),
3453
3475
  grey: {
3454
- 50: E.neutral.grey[50],
3455
- 100: E.neutral.grey[100],
3456
- 200: E.neutral.grey[200],
3457
- 300: E.neutral.grey[300],
3458
- 400: E.neutral.grey[400],
3459
- 700: E.neutral.grey[700],
3460
- 900: E.neutral.grey[900]
3476
+ 50: T.neutral.grey[50],
3477
+ 100: T.neutral.grey[100],
3478
+ 200: T.neutral.grey[200],
3479
+ 300: T.neutral.grey[300],
3480
+ 400: T.neutral.grey[400],
3481
+ 700: T.neutral.grey[700],
3482
+ 900: T.neutral.grey[900]
3461
3483
  }
3462
3484
  };
3463
3485
  function be(e) {
@@ -3466,13 +3488,13 @@ function be(e) {
3466
3488
  light: e[200],
3467
3489
  main: e[500],
3468
3490
  hover: e[600],
3469
- contrastText: E.neutral.white,
3491
+ contrastText: T.neutral.white,
3470
3492
  text: e[500],
3471
3493
  dark: e[600] ?? e[500],
3472
3494
  transparent: e[50] ?? e[100]
3473
3495
  };
3474
3496
  }
3475
- const xo = ao({
3497
+ const To = ao({
3476
3498
  cssVariables: !0,
3477
3499
  components: {
3478
3500
  ...so,
@@ -3485,6 +3507,7 @@ const xo = ao({
3485
3507
  ...ho,
3486
3508
  ...yo,
3487
3509
  ...mo,
3510
+ ...bo,
3488
3511
  MuiTypography: {
3489
3512
  styleOverrides: {
3490
3513
  root: {
@@ -3493,10 +3516,10 @@ const xo = ao({
3493
3516
  }
3494
3517
  }
3495
3518
  },
3496
- palette: bo,
3519
+ palette: vo,
3497
3520
  spacing: 4,
3498
3521
  typography: tt
3499
- }), To = {
3522
+ }), Eo = {
3500
3523
  spesiaTheme: {
3501
3524
  name: "spesiaTheme",
3502
3525
  primary: "#2e8898",
@@ -3526,7 +3549,7 @@ const xo = ao({
3526
3549
  }
3527
3550
  }
3528
3551
  }
3529
- }, Eo = "spesiaTheme";
3552
+ }, wo = "spesiaTheme";
3530
3553
  var nt = { exports: {} };
3531
3554
  /*!
3532
3555
  Copyright (c) 2018 Jed Watson.
@@ -3563,8 +3586,8 @@ var nt = { exports: {} };
3563
3586
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
3564
3587
  })();
3565
3588
  })(nt);
3566
- var vo = nt.exports;
3567
- const So = /* @__PURE__ */ Vr(vo), wo = (e, r, t = {}) => {
3589
+ var So = nt.exports;
3590
+ const Co = /* @__PURE__ */ Vr(So), $o = (e, r, t = {}) => {
3568
3591
  let n;
3569
3592
  typeof e == "string" ? n = { name: e, modifiers: [], states: [] } : n = e;
3570
3593
  const o = r;
@@ -3574,9 +3597,9 @@ const So = /* @__PURE__ */ Vr(vo), wo = (e, r, t = {}) => {
3574
3597
  }), n.states && n.states.map((l) => {
3575
3598
  r[l] && (o["is-" + l] = !0, o[l] = !1);
3576
3599
  });
3577
- const a = So(n.name, o, t), c = n.name;
3600
+ const a = Co(n.name, o, t), c = n.name;
3578
3601
  return (...l) => l.length && c ? l.map((f) => `${c}-${f}`).join(" ") : a;
3579
- }, $o = ({
3602
+ }, Oo = ({
3580
3603
  withText: e,
3581
3604
  color: r = "black",
3582
3605
  height: t,
@@ -3585,7 +3608,7 @@ const So = /* @__PURE__ */ Vr(vo), wo = (e, r, t = {}) => {
3585
3608
  }) => {
3586
3609
  const a = e ? 4.272388059701493 : 1.3432835820895523;
3587
3610
  let c = t, l = n;
3588
- const f = r === "blue" ? E.primary.blue[500] : r === "white" ? E.neutral.white : E.neutral.black;
3611
+ const f = r === "blue" ? T.primary.blue[500] : r === "white" ? T.neutral.white : T.neutral.black;
3589
3612
  return n || t ? (n && t && (console.warn(
3590
3613
  "Logo: Both width and height are specified. Width will be ignored in order to maintain correct aspect ratio."
3591
3614
  ), l = void 0), c && !l ? l = c * a : l && !t && (c = l / a), /* @__PURE__ */ ie(
@@ -3655,10 +3678,10 @@ const So = /* @__PURE__ */ Vr(vo), wo = (e, r, t = {}) => {
3655
3678
  ), null);
3656
3679
  };
3657
3680
  export {
3658
- $o as Logo,
3659
- E as colors,
3660
- Eo as defaultTheme,
3661
- wo as suitCx,
3662
- xo as theme,
3663
- To as themes
3681
+ Oo as Logo,
3682
+ T as colors,
3683
+ wo as defaultTheme,
3684
+ $o as suitCx,
3685
+ To as theme,
3686
+ Eo as themes
3664
3687
  };
@@ -81,6 +81,7 @@ export declare const colors: {
81
81
  200: string;
82
82
  300: string;
83
83
  400: string;
84
+ 500: string;
84
85
  700: string;
85
86
  900: string;
86
87
  950: string;
@@ -0,0 +1,3 @@
1
+ import { ComponentStyles } from '..';
2
+ declare const tabStyles: ComponentStyles;
3
+ export { tabStyles };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spesia/ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "The Spesia UI toolkit for React",
5
5
  "files": [
6
6
  "dist"