@solostylist/ui-kit 1.0.133 → 1.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{ButtonBase-DVlCHVDw.js → ButtonBase-INrHi5Tf.js} +28 -28
  2. package/dist/{ChevronRight-DQD188LX.js → ChevronRight-CyCLDFyO.js} +1 -1
  3. package/dist/{Close-DlTC3goO.js → Close-D4kX7Vbc.js} +1 -1
  4. package/dist/DefaultPropsProvider-ClLA4IsM.js +78 -0
  5. package/dist/{ExpandMore-D5dA_4ky.js → ExpandMore-mZGpvXf6.js} +1 -1
  6. package/dist/{Favorite-DkdOa-QT.js → Favorite-D-vTz4mw.js} +1 -1
  7. package/dist/{Menu-CgxtGUFu.js → Menu-Cx9465L8.js} +4 -4
  8. package/dist/{MenuItem-FlDSyi1I.js → MenuItem-DPprLtbJ.js} +69 -64
  9. package/dist/{Paper-DTI6p5rh.js → Paper-GzSZS-Pr.js} +2 -2
  10. package/dist/{Select-awnAAkKz.js → Select-32LY-KQR.js} +17 -16
  11. package/dist/{Stack-CO3ed3qL.js → Stack-CGZpcupa.js} +1 -1
  12. package/dist/{Typography-y4bVBfDI.js → Typography-Dgg8buRq.js} +1 -1
  13. package/dist/createSvgIcon-Dq42_0tn.js +247 -0
  14. package/dist/{mergeSlotProps-C7ui6BxO.js → mergeSlotProps-CbVWfTAi.js} +1 -1
  15. package/dist/s-accordion/s-accordion.js +6 -6
  16. package/dist/s-carousel/s-carousel.js +1 -1
  17. package/dist/s-chat-input/s-chat-input.js +2 -2
  18. package/dist/s-chat-message/s-chat-message.js +1 -1
  19. package/dist/s-comment-message/s-comment-message.js +3 -3
  20. package/dist/s-copyable-text/s-copyable-text.js +1 -1
  21. package/dist/s-data-table/s-data-table.js +6 -5
  22. package/dist/s-date-picker/s-date-picker.js +4 -4
  23. package/dist/s-datetime-picker/s-datetime-picker.js +24 -23
  24. package/dist/s-dialog/s-dialog.js +1 -1
  25. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  26. package/dist/s-dialog-message/s-dialog-message.js +2 -2
  27. package/dist/s-file-dropzone/s-file-dropzone.js +3 -3
  28. package/dist/s-image-comparison/s-image-comparison.js +1 -1
  29. package/dist/s-image-modal/s-image-modal.js +2 -2
  30. package/dist/s-label/s-label.js +1 -1
  31. package/dist/s-language-switcher/index.d.ts +2 -0
  32. package/dist/s-language-switcher/index.js +6 -0
  33. package/dist/s-language-switcher/package.json +5 -0
  34. package/dist/s-language-switcher/s-language-switcher.d.ts +63 -0
  35. package/dist/s-language-switcher/s-language-switcher.js +196 -0
  36. package/dist/s-multi-select/s-multi-select.js +3 -3
  37. package/dist/s-review/s-review.js +1 -1
  38. package/dist/s-select/s-select.js +1 -1
  39. package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
  40. package/dist/s-text-field/s-text-field.js +1 -1
  41. package/dist/s-theme-demo/s-theme-demo.js +2 -2
  42. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  43. package/dist/s-tip/s-tip.js +3 -3
  44. package/dist/theme/components/avatar.js +1 -1
  45. package/dist/theme/components/chip.js +1 -1
  46. package/dist/theme/customizations/inputs.js +1 -1
  47. package/dist/theme/customizations/navigation.js +1 -1
  48. package/dist/{useMobilePicker-BV-ABj4C.js → useMobilePicker-CBFfceXe.js} +51 -50
  49. package/package.json +1 -1
  50. package/dist/createSvgIcon-By5UWB4_.js +0 -318
@@ -1,8 +1,8 @@
1
1
  import { _ as ue, a as P } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
2
2
  import * as h from "react";
3
3
  import Ro from "react";
4
- import { f as K, b as Rt, u as Ve, d as We, r as ht, a as ft, B as hn, c as hr, i as Eo, e as js } from "./ButtonBase-DVlCHVDw.js";
5
- import { o as St, u as st, b as ye, F as Vt, e as $s, H as gn, G as Ls, f as Bs, L as fn, h as Ws, i as zs, B as Hs } from "./Menu-CgxtGUFu.js";
4
+ import { f as K, b as Rt, u as Ve, d as We, r as ht, a as ft, B as hn, c as hr, i as Eo, e as js } from "./ButtonBase-INrHi5Tf.js";
5
+ import { o as St, u as st, b as ye, F as Vt, e as $s, H as gn, G as Ls, f as Bs, L as fn, h as Ws, i as zs, B as Hs } from "./Menu-Cx9465L8.js";
6
6
  import { u as Nt } from "./useControlled-D1L5tREc.js";
7
7
  import { u as Ue } from "./useEnhancedEffect-CJGo-L3B.js";
8
8
  import { j as S } from "./jsx-runtime-OVHDjVDe.js";
@@ -10,14 +10,15 @@ import { P as o, c as ne } from "./createTheme-3Wd3hHrj.js";
10
10
  import { g as ve, a as At } from "./colorManipulator-ep5lERxB.js";
11
11
  import { g as ge } from "./generateUtilityClasses-BtVDwGrk.js";
12
12
  import { P as _s, L as qs, u as Re, w as Us } from "./warning-BCwEnWrE.js";
13
- import { f as qn, u as Bt, O as Ys, a as Ks, b as Gs, S as Qs, F as gr, I as bn, C as Xs, i as br } from "./Select-awnAAkKz.js";
13
+ import { f as qn, u as Bt, O as Ys, a as Ks, b as Gs, S as Qs, F as gr, I as bn, C as Xs, i as br } from "./Select-32LY-KQR.js";
14
14
  import { s as H, r as yr, b as Dt } from "./styled-BD_erj7E.js";
15
- import { u as He, a as Me, b as he, m as at, c as ut } from "./createSvgIcon-By5UWB4_.js";
15
+ import { u as He, c as Me, a as he, m as at } from "./DefaultPropsProvider-ClLA4IsM.js";
16
16
  import { u as Wt, F as Zs } from "./useFormControl-CatNKXAi.js";
17
17
  import { c as It } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
18
- import { T as zt } from "./Typography-y4bVBfDI.js";
19
- import { f as Js, T as vr, c as ea, u as Un, P as Yn } from "./Paper-DTI6p5rh.js";
18
+ import { T as zt } from "./Typography-Dgg8buRq.js";
19
+ import { f as Js, T as vr, c as ea, u as Un, P as Yn } from "./Paper-GzSZS-Pr.js";
20
20
  import { _ as ta, a as xr } from "./TransitionGroup-BK0MDPKM.js";
21
+ import { c as ut } from "./createSvgIcon-Dq42_0tn.js";
21
22
  import { T as na } from "./identifier-BKLqN993.js";
22
23
  import { a as oa } from "./useTheme-B5czKfC4.js";
23
24
  import { g as ra } from "./useThemeProps-DqA5BinV.js";
@@ -304,7 +305,7 @@ Kn.propTypes = process.env.NODE_ENV !== "production" ? P({}, vr.propTypes, {
304
305
  }) : {};
305
306
  const ma = wr({
306
307
  themeId: na
307
- }), nt = (e, t) => e.length !== t.length ? !1 : t.every((n) => e.includes(n)), Zp = ({
308
+ }), nt = (e, t) => e.length !== t.length ? !1 : t.every((n) => e.includes(n)), Jp = ({
308
309
  openTo: e,
309
310
  defaultOpenTo: t,
310
311
  views: n,
@@ -360,10 +361,10 @@ const ma = wr({
360
361
  r.push(e.addMonths(s, 1));
361
362
  }
362
363
  return r;
363
- }, Pr = (e, t, n) => n === "date" ? e.startOfDay(e.date(void 0, t)) : e.date(void 0, t), Jp = (e, t) => {
364
+ }, Pr = (e, t, n) => n === "date" ? e.startOfDay(e.date(void 0, t)) : e.date(void 0, t), ef = (e, t) => {
364
365
  const n = e.setHours(e.date(), t === "am" ? 2 : 14);
365
366
  return e.format(n, "meridiem");
366
- }, ba = ["year", "month", "day"], No = (e) => ba.includes(e), ef = (e, {
367
+ }, ba = ["year", "month", "day"], No = (e) => ba.includes(e), tf = (e, {
367
368
  format: t,
368
369
  views: n
369
370
  }, r) => {
@@ -374,10 +375,10 @@ const ma = wr({
374
375
  }, ya = (e, t) => {
375
376
  const n = e.startOfWeek(t);
376
377
  return [0, 1, 2, 3, 4, 5, 6].map((r) => e.addDays(n, r));
377
- }, va = ["hours", "minutes", "seconds"], xa = ["hours", "minutes", "seconds", "meridiem"], Sa = (e) => va.includes(e), tf = (e) => xa.includes(e), wa = (e, t) => e ? t.getHours(e) >= 12 ? "pm" : "am" : null, Pa = (e, t, n) => n && (e >= 12 ? "pm" : "am") !== t ? t === "am" ? e - 12 : e + 12 : e, Ca = (e, t, n, r) => {
378
+ }, va = ["hours", "minutes", "seconds"], xa = ["hours", "minutes", "seconds", "meridiem"], Sa = (e) => va.includes(e), nf = (e) => xa.includes(e), wa = (e, t) => e ? t.getHours(e) >= 12 ? "pm" : "am" : null, Pa = (e, t, n) => n && (e >= 12 ? "pm" : "am") !== t ? t === "am" ? e - 12 : e + 12 : e, Ca = (e, t, n, r) => {
378
379
  const s = Pa(r.getHours(e), t, n);
379
380
  return r.setHours(e, s);
380
- }, Ao = (e, t) => t.getHours(e) * 3600 + t.getMinutes(e) * 60 + t.getSeconds(e), Da = (e, t) => (n, r) => e ? t.isAfter(n, r) : Ao(n, t) > Ao(r, t), nf = (e, {
381
+ }, Ao = (e, t) => t.getHours(e) * 3600 + t.getMinutes(e) * 60 + t.getSeconds(e), Da = (e, t) => (n, r) => e ? t.isAfter(n, r) : Ao(n, t) > Ao(r, t), of = (e, {
381
382
  format: t,
382
383
  views: n,
383
384
  ampm: r
@@ -739,8 +740,8 @@ const Wa = (e) => {
739
740
  }, Or = (e = document) => {
740
741
  const t = e.activeElement;
741
742
  return t ? t.shadowRoot ? Or(t.shadowRoot) : t : null;
742
- }, Ae = (e) => Or(St(e)), of = (e) => Array.from(e.children).indexOf(Ae(e)), rf = "@media (pointer: fine)";
743
- function sf(...e) {
743
+ }, Ae = (e) => Or(St(e)), rf = (e) => Array.from(e.children).indexOf(Ae(e)), sf = "@media (pointer: fine)";
744
+ function af(...e) {
744
745
  return e.reduce((t, n) => (Array.isArray(n) ? t.push(...n) : n != null && t.push(n), t), []);
745
746
  }
746
747
  const za = (e) => ({
@@ -832,7 +833,7 @@ const eo = () => {
832
833
  return h.useMemo(() => P({}, e, {
833
834
  localeText: t
834
835
  }), [e, t]);
835
- }, we = () => eo().adapter, kt = () => eo().localeText, Wn = ["disablePast", "disableFuture", "minDate", "maxDate", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear"], zn = ["disablePast", "disableFuture", "minTime", "maxTime", "shouldDisableTime", "minutesStep", "ampm", "disableIgnoringDatePartForTimeValidation"], Mr = ["minDateTime", "maxDateTime"], _a = [...Wn, ...zn, ...Mr], af = (e) => _a.reduce((t, n) => (e.hasOwnProperty(n) && (t[n] = e[n]), t), {}), qa = ["value", "defaultValue", "referenceDate", "format", "formatDensity", "onChange", "timezone", "onError", "shouldRespectLeadingZeros", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef", "unstableStartFieldRef", "unstableEndFieldRef", "enableAccessibleFieldDOMStructure", "disabled", "readOnly", "dateSeparator", "autoFocus", "focused"], Rr = (e, t) => h.useMemo(() => {
836
+ }, we = () => eo().adapter, kt = () => eo().localeText, Wn = ["disablePast", "disableFuture", "minDate", "maxDate", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear"], zn = ["disablePast", "disableFuture", "minTime", "maxTime", "shouldDisableTime", "minutesStep", "ampm", "disableIgnoringDatePartForTimeValidation"], Mr = ["minDateTime", "maxDateTime"], _a = [...Wn, ...zn, ...Mr], lf = (e) => _a.reduce((t, n) => (e.hasOwnProperty(n) && (t[n] = e[n]), t), {}), qa = ["value", "defaultValue", "referenceDate", "format", "formatDensity", "onChange", "timezone", "onError", "shouldRespectLeadingZeros", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef", "unstableStartFieldRef", "unstableEndFieldRef", "enableAccessibleFieldDOMStructure", "disabled", "readOnly", "dateSeparator", "autoFocus", "focused"], Rr = (e, t) => h.useMemo(() => {
836
837
  const n = P({}, e), r = {}, s = (a) => {
837
838
  n.hasOwnProperty(a) && (r[a] = n[a], delete n[a]);
838
839
  };
@@ -2427,14 +2428,14 @@ const Mt = (e) => e.replace(/[\u2066\u2067\u2068\u2069]/g, ""), ui = (e, t, n) =
2427
2428
  function Uo(e) {
2428
2429
  return e.current === Ae(e.current);
2429
2430
  }
2430
- const lf = (e) => {
2431
+ const cf = (e) => {
2431
2432
  const t = Er();
2432
2433
  return (e.props.enableAccessibleFieldDOMStructure ?? (t == null ? void 0 : t.enableAccessibleFieldDOMStructure) ?? !0 ? ci : di)(e);
2433
2434
  }, pi = () => eo().defaultDates, Pn = (e) => {
2434
2435
  const t = we(), n = h.useRef(void 0);
2435
2436
  return n.current === void 0 && (n.current = t.date(void 0, e)), n.current;
2436
2437
  };
2437
- function cf(e = {}) {
2438
+ function uf(e = {}) {
2438
2439
  const {
2439
2440
  enableAccessibleFieldDOMStructure: t = !0
2440
2441
  } = e;
@@ -3607,7 +3608,7 @@ const Vi = ut(/* @__PURE__ */ S.jsx("path", {
3607
3608
  d: "M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"
3608
3609
  }), "ArrowLeft"), Ai = ut(/* @__PURE__ */ S.jsx("path", {
3609
3610
  d: "M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"
3610
- }), "ArrowRight"), uf = ut(/* @__PURE__ */ S.jsx("path", {
3611
+ }), "ArrowRight"), df = ut(/* @__PURE__ */ S.jsx("path", {
3611
3612
  d: "M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"
3612
3613
  }), "Calendar");
3613
3614
  ut(/* @__PURE__ */ S.jsxs(h.Fragment, {
@@ -3617,9 +3618,9 @@ ut(/* @__PURE__ */ S.jsxs(h.Fragment, {
3617
3618
  d: "M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"
3618
3619
  })]
3619
3620
  }), "Clock");
3620
- const df = ut(/* @__PURE__ */ S.jsx("path", {
3621
+ const pf = ut(/* @__PURE__ */ S.jsx("path", {
3621
3622
  d: "M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"
3622
- }), "DateRange"), pf = ut(/* @__PURE__ */ S.jsxs(h.Fragment, {
3623
+ }), "DateRange"), ff = ut(/* @__PURE__ */ S.jsxs(h.Fragment, {
3623
3624
  children: [/* @__PURE__ */ S.jsx("path", {
3624
3625
  d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
3625
3626
  }), /* @__PURE__ */ S.jsx("path", {
@@ -5366,7 +5367,7 @@ const xl = ["enableAccessibleFieldDOMStructure"], Sl = ["InputProps", "readOnly"
5366
5367
  inputRef: void 0
5367
5368
  });
5368
5369
  process.env.NODE_ENV !== "production" && (En.displayName = "PickerFieldUIContext");
5369
- function ff(e) {
5370
+ function mf(e) {
5370
5371
  var Y, z, G, ee;
5371
5372
  const {
5372
5373
  fieldResponse: t,
@@ -5475,7 +5476,7 @@ function ff(e) {
5475
5476
  function Qt(e, t) {
5476
5477
  return e ? t ? (n) => P({}, ft(t, n), ft(e, n)) : e : t;
5477
5478
  }
5478
- function mf(e) {
5479
+ function hf(e) {
5479
5480
  const {
5480
5481
  ref: t,
5481
5482
  externalForwardedProps: n,
@@ -5499,7 +5500,7 @@ function mf(e) {
5499
5500
  });
5500
5501
  return d.inputProps = P({}, c, d.inputProps), d.InputProps = P({}, l, d.InputProps), d;
5501
5502
  }
5502
- function hf(e) {
5503
+ function gf(e) {
5503
5504
  const {
5504
5505
  slots: t = {},
5505
5506
  slotProps: n = {},
@@ -5532,7 +5533,7 @@ function hf(e) {
5532
5533
  function Ml(e) {
5533
5534
  return ve("MuiPickersToolbar", e);
5534
5535
  }
5535
- const gf = ge("MuiPickersToolbar", ["root", "title", "content"]);
5536
+ const bf = ge("MuiPickersToolbar", ["root", "title", "content"]);
5536
5537
  function Rl() {
5537
5538
  const {
5538
5539
  ownerState: e
@@ -6301,7 +6302,7 @@ function Hl(e, {
6301
6302
  return !s.isBefore(i, e);
6302
6303
  }, [t, n, e, s, r]);
6303
6304
  }
6304
- function bf(e, t, n, r) {
6305
+ function yf(e, t, n, r) {
6305
6306
  const s = we(), a = h.useMemo(() => s.isValid(e) ? e : null, [s, e]), i = wa(a, s), l = h.useCallback((c) => {
6306
6307
  const u = a == null ? null : Ca(a, c, !!t, s);
6307
6308
  n(u, r ?? "partial");
@@ -6311,7 +6312,7 @@ function bf(e, t, n, r) {
6311
6312
  handleMeridiemChange: l
6312
6313
  };
6313
6314
  }
6314
- const tn = 36, Tn = 2, Vn = 320, _l = 280, ho = 336, yf = 232, vf = 48, Qr = ({
6315
+ const tn = 36, Tn = 2, Vn = 320, _l = 280, ho = 336, vf = 232, xf = 48, Qr = ({
6315
6316
  shouldDisableDate: e,
6316
6317
  shouldDisableMonth: t,
6317
6318
  shouldDisableYear: n,
@@ -12428,7 +12429,7 @@ function Es(e) {
12428
12429
  }
12429
12430
  });
12430
12431
  }
12431
- const up = ["props", "steps"], dp = ["ownerState"], xf = (e) => {
12432
+ const up = ["props", "steps"], dp = ["ownerState"], Sf = (e) => {
12432
12433
  var I;
12433
12434
  let {
12434
12435
  props: t,
@@ -13073,7 +13074,7 @@ function Cp(e) {
13073
13074
  })
13074
13075
  }));
13075
13076
  }
13076
- const Dp = ["props", "steps"], kp = ["ownerState"], Sf = (e) => {
13077
+ const Dp = ["props", "steps"], kp = ["ownerState"], wf = (e) => {
13077
13078
  var I;
13078
13079
  let {
13079
13080
  props: t,
@@ -13138,34 +13139,34 @@ export {
13138
13139
  xt as $,
13139
13140
  Ne as A,
13140
13141
  No as B,
13141
- uf as C,
13142
- rf as D,
13142
+ df as C,
13143
+ sf as D,
13143
13144
  Ml as E,
13144
13145
  dt as F,
13145
- bf as G,
13146
- Jp as H,
13147
- gf as I,
13146
+ yf as G,
13147
+ ef as H,
13148
+ bf as I,
13148
13149
  Sa as J,
13149
- nf as K,
13150
- tf as L,
13151
- vf as M,
13150
+ of as K,
13151
+ nf as L,
13152
+ xf as M,
13152
13153
  Pr as N,
13153
13154
  sn as O,
13154
13155
  Al as P,
13155
13156
  Pn as Q,
13156
13157
  ls as R,
13157
13158
  tt as S,
13158
- pf as T,
13159
+ ff as T,
13159
13160
  tu as U,
13160
- yf as V,
13161
- of as W,
13161
+ vf as V,
13162
+ rf as W,
13162
13163
  Pa as X,
13163
13164
  ap as Y,
13164
13165
  lp as Z,
13165
13166
  cp as _,
13166
13167
  rn as a,
13167
13168
  ho as a0,
13168
- sf as a1,
13169
+ af as a1,
13169
13170
  Vn as a2,
13170
13171
  ba as a3,
13171
13172
  va as a4,
@@ -13173,19 +13174,19 @@ export {
13173
13174
  Rl as c,
13174
13175
  Fe as d,
13175
13176
  Cn as e,
13176
- Zp as f,
13177
- cf as g,
13178
- lf as h,
13179
- mf as i,
13180
- hf as j,
13181
- ff as k,
13177
+ Jp as f,
13178
+ uf as g,
13179
+ cf as h,
13180
+ hf as i,
13181
+ gf as j,
13182
+ mf as k,
13182
13183
  uu as l,
13183
- af as m,
13184
- xf as n,
13185
- Sf as o,
13184
+ lf as m,
13185
+ Sf as n,
13186
+ wf as o,
13186
13187
  ma as p,
13187
13188
  ca as q,
13188
- ef as r,
13189
+ tf as r,
13189
13190
  mt as s,
13190
13191
  Da as t,
13191
13192
  we as u,
@@ -13193,5 +13194,5 @@ export {
13193
13194
  pi as w,
13194
13195
  Vo as x,
13195
13196
  La as y,
13196
- df as z
13197
+ pf as z
13197
13198
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.133",
6
+ "version": "1.0.134",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",
@@ -1,318 +0,0 @@
1
- import * as d from "react";
2
- import { j as b } from "./jsx-runtime-OVHDjVDe.js";
3
- import { P as s, c as x } from "./createTheme-3Wd3hHrj.js";
4
- import { p as T, s as j } from "./styled-BD_erj7E.js";
5
- import { g as w } from "./svgIconClasses-CBCi8U9g.js";
6
- import { r as z } from "./resolveProps-61uUKnlS.js";
7
- function O(e) {
8
- var o, t, n = "";
9
- if (typeof e == "string" || typeof e == "number") n += e;
10
- else if (typeof e == "object") if (Array.isArray(e)) {
11
- var r = e.length;
12
- for (o = 0; o < r; o++) e[o] && (t = O(e[o])) && (n && (n += " "), n += t);
13
- } else for (t in e) e[t] && (n && (n += " "), n += t);
14
- return n;
15
- }
16
- function E() {
17
- for (var e, o, t = 0, n = "", r = arguments.length; t < r; t++) (e = arguments[t]) && (o = O(e)) && (n && (n += " "), n += o);
18
- return n;
19
- }
20
- function R(e, o, t = void 0) {
21
- const n = {};
22
- for (const r in e) {
23
- const i = e[r];
24
- let p = "", a = !0;
25
- for (let f = 0; f < i.length; f += 1) {
26
- const c = i[f];
27
- c && (p += (a === !0 ? "" : " ") + o(c), a = !1, t && t[c] && (p += " " + t[c]));
28
- }
29
- n[r] = p;
30
- }
31
- return n;
32
- }
33
- const I = /* @__PURE__ */ d.createContext(void 0);
34
- process.env.NODE_ENV !== "production" && (s.node, s.object);
35
- function V(e) {
36
- const {
37
- theme: o,
38
- name: t,
39
- props: n
40
- } = e;
41
- if (!o || !o.components || !o.components[t])
42
- return n;
43
- const r = o.components[t];
44
- return r.defaultProps ? z(r.defaultProps, n, o.components.mergeClassNameAndStyle) : !r.styleOverrides && !r.variants ? z(r, n, o.components.mergeClassNameAndStyle) : n;
45
- }
46
- function A({
47
- props: e,
48
- name: o
49
- }) {
50
- const t = d.useContext(I);
51
- return V({
52
- props: e,
53
- name: o,
54
- theme: {
55
- components: t
56
- }
57
- });
58
- }
59
- const C = {
60
- theme: void 0
61
- };
62
- function P(e) {
63
- let o, t;
64
- return function(r) {
65
- let i = o;
66
- return (i === void 0 || r.theme !== t) && (C.theme = r.theme, i = T(e(C)), o = i, t = r.theme), i;
67
- };
68
- }
69
- const D = P;
70
- process.env.NODE_ENV !== "production" && (s.node, s.object.isRequired);
71
- function $(e) {
72
- return A(e);
73
- }
74
- const _ = (e) => {
75
- const {
76
- color: o,
77
- fontSize: t,
78
- classes: n
79
- } = e, r = {
80
- root: ["root", o !== "inherit" && `color${x(o)}`, `fontSize${x(t)}`]
81
- };
82
- return R(r, w, n);
83
- }, B = j("svg", {
84
- name: "MuiSvgIcon",
85
- slot: "Root",
86
- overridesResolver: (e, o) => {
87
- const {
88
- ownerState: t
89
- } = e;
90
- return [o.root, t.color !== "inherit" && o[`color${x(t.color)}`], o[`fontSize${x(t.fontSize)}`]];
91
- }
92
- })(D(({
93
- theme: e
94
- }) => {
95
- var o, t, n, r, i, p, a, f, c, g, u, v, h, m;
96
- return {
97
- userSelect: "none",
98
- width: "1em",
99
- height: "1em",
100
- display: "inline-block",
101
- flexShrink: 0,
102
- transition: (r = (o = e.transitions) == null ? void 0 : o.create) == null ? void 0 : r.call(o, "fill", {
103
- duration: (n = (t = (e.vars ?? e).transitions) == null ? void 0 : t.duration) == null ? void 0 : n.shorter
104
- }),
105
- variants: [
106
- {
107
- props: (l) => !l.hasSvgAsChild,
108
- style: {
109
- // the <svg> will define the property that has `currentColor`
110
- // for example heroicons uses fill="none" and stroke="currentColor"
111
- fill: "currentColor"
112
- }
113
- },
114
- {
115
- props: {
116
- fontSize: "inherit"
117
- },
118
- style: {
119
- fontSize: "inherit"
120
- }
121
- },
122
- {
123
- props: {
124
- fontSize: "small"
125
- },
126
- style: {
127
- fontSize: ((p = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : p.call(i, 20)) || "1.25rem"
128
- }
129
- },
130
- {
131
- props: {
132
- fontSize: "medium"
133
- },
134
- style: {
135
- fontSize: ((f = (a = e.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : f.call(a, 24)) || "1.5rem"
136
- }
137
- },
138
- {
139
- props: {
140
- fontSize: "large"
141
- },
142
- style: {
143
- fontSize: ((g = (c = e.typography) == null ? void 0 : c.pxToRem) == null ? void 0 : g.call(c, 35)) || "2.1875rem"
144
- }
145
- },
146
- // TODO v5 deprecate color prop, v6 remove for sx
147
- ...Object.entries((e.vars ?? e).palette).filter(([, l]) => l && l.main).map(([l]) => {
148
- var y, S;
149
- return {
150
- props: {
151
- color: l
152
- },
153
- style: {
154
- color: (S = (y = (e.vars ?? e).palette) == null ? void 0 : y[l]) == null ? void 0 : S.main
155
- }
156
- };
157
- }),
158
- {
159
- props: {
160
- color: "action"
161
- },
162
- style: {
163
- color: (v = (u = (e.vars ?? e).palette) == null ? void 0 : u.action) == null ? void 0 : v.active
164
- }
165
- },
166
- {
167
- props: {
168
- color: "disabled"
169
- },
170
- style: {
171
- color: (m = (h = (e.vars ?? e).palette) == null ? void 0 : h.action) == null ? void 0 : m.disabled
172
- }
173
- },
174
- {
175
- props: {
176
- color: "inherit"
177
- },
178
- style: {
179
- color: void 0
180
- }
181
- }
182
- ]
183
- };
184
- })), N = /* @__PURE__ */ d.forwardRef(function(o, t) {
185
- const n = $({
186
- props: o,
187
- name: "MuiSvgIcon"
188
- }), {
189
- children: r,
190
- className: i,
191
- color: p = "inherit",
192
- component: a = "svg",
193
- fontSize: f = "medium",
194
- htmlColor: c,
195
- inheritViewBox: g = !1,
196
- titleAccess: u,
197
- viewBox: v = "0 0 24 24",
198
- ...h
199
- } = n, m = /* @__PURE__ */ d.isValidElement(r) && r.type === "svg", l = {
200
- ...n,
201
- color: p,
202
- component: a,
203
- fontSize: f,
204
- instanceFontSize: o.fontSize,
205
- inheritViewBox: g,
206
- viewBox: v,
207
- hasSvgAsChild: m
208
- }, y = {};
209
- g || (y.viewBox = v);
210
- const S = _(l);
211
- return /* @__PURE__ */ b.jsxs(B, {
212
- as: a,
213
- className: E(S.root, i),
214
- focusable: "false",
215
- color: c,
216
- "aria-hidden": u ? void 0 : !0,
217
- role: u ? "img" : void 0,
218
- ref: t,
219
- ...y,
220
- ...h,
221
- ...m && r.props,
222
- ownerState: l,
223
- children: [m ? r.props.children : r, u ? /* @__PURE__ */ b.jsx("title", {
224
- children: u
225
- }) : null]
226
- });
227
- });
228
- process.env.NODE_ENV !== "production" && (N.propTypes = {
229
- // ┌────────────────────────────── Warning ──────────────────────────────┐
230
- // │ These PropTypes are generated from the TypeScript type definitions. │
231
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
232
- // └─────────────────────────────────────────────────────────────────────┘
233
- /**
234
- * Node passed into the SVG element.
235
- */
236
- children: s.node,
237
- /**
238
- * Override or extend the styles applied to the component.
239
- */
240
- classes: s.object,
241
- /**
242
- * @ignore
243
- */
244
- className: s.string,
245
- /**
246
- * The color of the component.
247
- * It supports both default and custom theme colors, which can be added as shown in the
248
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
249
- * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
250
- * @default 'inherit'
251
- */
252
- color: s.oneOfType([s.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), s.string]),
253
- /**
254
- * The component used for the root node.
255
- * Either a string to use a HTML element or a component.
256
- */
257
- component: s.elementType,
258
- /**
259
- * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
260
- * @default 'medium'
261
- */
262
- fontSize: s.oneOfType([s.oneOf(["inherit", "large", "medium", "small"]), s.string]),
263
- /**
264
- * Applies a color attribute to the SVG element.
265
- */
266
- htmlColor: s.string,
267
- /**
268
- * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
269
- * prop will be ignored.
270
- * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
271
- * `component`'s viewBox to the root node.
272
- * @default false
273
- */
274
- inheritViewBox: s.bool,
275
- /**
276
- * The shape-rendering attribute. The behavior of the different options is described on the
277
- * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).
278
- * If you are having issues with blurry icons you should investigate this prop.
279
- */
280
- shapeRendering: s.string,
281
- /**
282
- * The system prop that allows defining system overrides as well as additional CSS styles.
283
- */
284
- sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]),
285
- /**
286
- * Provides a human-readable title for the element that contains it.
287
- * https://www.w3.org/TR/SVG-access/#Equivalent
288
- */
289
- titleAccess: s.string,
290
- /**
291
- * Allows you to redefine what the coordinates without units mean inside an SVG element.
292
- * For example, if the SVG element is 500 (width) by 200 (height),
293
- * and you pass viewBox="0 0 50 20",
294
- * this means that the coordinates inside the SVG will go from the top left corner (0,0)
295
- * to bottom right (50,20) and each unit will be worth 10px.
296
- * @default '0 0 24 24'
297
- */
298
- viewBox: s.string
299
- });
300
- N.muiName = "SvgIcon";
301
- function G(e, o) {
302
- function t(n, r) {
303
- return /* @__PURE__ */ b.jsx(N, {
304
- "data-testid": process.env.NODE_ENV !== "production" ? `${o}Icon` : void 0,
305
- ref: r,
306
- ...n,
307
- children: e
308
- });
309
- }
310
- return process.env.NODE_ENV !== "production" && (t.displayName = `${o}Icon`), t.muiName = N.muiName, /* @__PURE__ */ d.memo(/* @__PURE__ */ d.forwardRef(t));
311
- }
312
- export {
313
- E as a,
314
- R as b,
315
- G as c,
316
- D as m,
317
- $ as u
318
- };