@solostylist/ui-kit 1.0.69 → 1.0.71

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 (83) hide show
  1. package/dist/{Box-6v9dDzdR.js → Box-reWd7MO-.js} +16 -16
  2. package/dist/{Close-Cq0bfDqS.js → Close-CVFQMMUW.js} +2 -2
  3. package/dist/{HelpOutlineOutlined-CrsJM_1C.js → HelpOutlineOutlined-Dw_XSjYK.js} +2 -2
  4. package/dist/{Menu-C3Ku2lqS.js → Menu-CGTDGEoX.js} +23 -23
  5. package/dist/{MenuItem-ODcKB-fe.js → MenuItem-Bdna3McP.js} +84 -86
  6. package/dist/{Select-CukDtghB.js → Select-D54ugORZ.js} +473 -466
  7. package/dist/{Stack-DvJ0EY9Z.js → Stack-ISlVeD89.js} +23 -24
  8. package/dist/{TransitionGroup-D2o-MIVr.js → TransitionGroup-DuMpOHcM.js} +1 -1
  9. package/dist/{Typography-BnBI5JmA.js → Typography-D38zoHJr.js} +42 -44
  10. package/dist/{buttonBaseClasses-jvvoR1a5.js → buttonBaseClasses-CF7RfAgE.js} +2 -2
  11. package/dist/{chipClasses-DCs-mJQc.js → chipClasses-WFcUH6gU.js} +2 -2
  12. package/dist/chunk-5P46WS5M-OG9gpzOE.js +4862 -0
  13. package/dist/clsx-OuTLNxxd.js +16 -0
  14. package/dist/createSvgIcon-DN-sh_sr.js +520 -0
  15. package/dist/createTheme-DuP3DZSF.js +3005 -0
  16. package/dist/defaultTheme-BDQAWvCM.js +55 -0
  17. package/dist/{extendSxProp-B_wB9j9Z.js → extendSxProp-KtEeHd8h.js} +1 -1
  18. package/dist/{generateUtilityClasses-DMkCz287.js → generateUtilityClasses-BpNk3DNr.js} +2 -2
  19. package/dist/{iconButtonClasses-FfLS-X2M.js → iconButtonClasses-DMst1jJO.js} +2 -2
  20. package/dist/identifier-BKLqN993.js +4 -0
  21. package/dist/{index-Bs0mGmsj.js → index-x815ub0T.js} +46 -40
  22. package/dist/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +13 -13
  23. package/dist/{outlinedInputClasses-rfxFh721.js → outlinedInputClasses-E4FwVkZh.js} +2 -2
  24. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  25. package/dist/s-button-link/s-button-link.js +1 -1
  26. package/dist/s-checkbox/s-checkbox.js +1 -1
  27. package/dist/s-chips/s-chips.js +1 -1
  28. package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +6 -6
  29. package/dist/s-data-table/s-data-table.js +271 -270
  30. package/dist/s-date-picker/s-date-picker.js +28 -30
  31. package/dist/s-datetime-picker/s-datetime-picker.js +655 -657
  32. package/dist/s-dialog/s-dialog.js +2 -2
  33. package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -3
  34. package/dist/s-dialog-message/s-dialog-message.js +3 -3
  35. package/dist/s-empty/s-empty.js +1 -1
  36. package/dist/s-error/s-error.js +1 -1
  37. package/dist/s-file-dropzone/s-file-dropzone.js +5 -5
  38. package/dist/s-file-icon/s-file-icon.js +2 -2
  39. package/dist/s-form/s-form.js +2 -2
  40. package/dist/s-glow-button/s-glow-button.js +12 -11
  41. package/dist/s-gradient-icon/s-gradient-icon.js +1 -1
  42. package/dist/s-i18n-provider/s-i18n-provider.js +1 -1
  43. package/dist/s-icon-button/s-icon-button.js +1 -1
  44. package/dist/s-label/s-label.js +2 -2
  45. package/dist/s-localization-provider/s-localization-provider.js +196 -199
  46. package/dist/s-moving-border/s-moving-border.js +1 -1
  47. package/dist/s-multi-select/s-multi-select.js +4 -4
  48. package/dist/s-no-ssr/s-no-ssr.js +1 -1
  49. package/dist/s-pagination/s-pagination.js +1 -1
  50. package/dist/s-select/s-select.js +1 -1
  51. package/dist/s-skeleton/s-skeleton.js +1 -1
  52. package/dist/s-smart-text-field/s-smart-text-field.js +4252 -4226
  53. package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
  54. package/dist/s-stripe/s-stripe.js +1 -1
  55. package/dist/s-stripe/stripe-input.js +1 -1
  56. package/dist/s-text-editor/s-text-editor-toolbar.js +5 -5
  57. package/dist/s-text-editor/s-text-editor.js +2 -2
  58. package/dist/s-text-field/s-text-field.js +1 -1
  59. package/dist/s-text-truncation/s-text-truncation.js +1 -1
  60. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  61. package/dist/s-tip/s-tip.js +4 -4
  62. package/dist/{tabClasses-PH6lKUvl.js → tabClasses-LXCeUS4i.js} +2 -2
  63. package/dist/theme/components/avatar.js +2 -2
  64. package/dist/theme/customizations/data-display.js +8 -8
  65. package/dist/theme/customizations/feedback.js +1 -1
  66. package/dist/theme/customizations/inputs.js +5 -5
  67. package/dist/theme/customizations/navigation.js +4 -4
  68. package/dist/theme/customizations/surfaces.js +1 -1
  69. package/dist/theme/theme-primitives.js +1 -1
  70. package/dist/{typographyClasses-ZiwLh_jE.js → typographyClasses-QAKcrTAX.js} +2 -2
  71. package/dist/{useMobilePicker-BzxyifzK.js → useMobilePicker-DlmTFHhN.js} +2811 -2789
  72. package/dist/{useSlot-C4SHe-Bx.js → useSlot-CiHsL61G.js} +134 -134
  73. package/dist/{useTheme-Bn9C3FUK.js → useTheme-Dy5JmnOe.js} +1 -1
  74. package/dist/{useThemeProps-BUFb1TtB.js → useThemeProps-BGjjVPlJ.js} +2 -2
  75. package/dist/utils/dayjs.js +14 -14
  76. package/dist/{warning-D7W5-6D5.js → warning-DWsjz4u6.js} +5 -5
  77. package/package.json +3 -3
  78. package/dist/chunk-GIMSRCVW-DUi-T6vz.js +0 -10072
  79. package/dist/createSvgIcon-BTLVR-ad.js +0 -504
  80. package/dist/createTheme-BlQh0eyI.js +0 -2268
  81. package/dist/defaultTheme-CkLTWyeE.js +0 -42
  82. package/dist/identifier-CGgVMHib.js +0 -18
  83. package/dist/index-5OJKu9qh.js +0 -667
@@ -1,40 +1,40 @@
1
- import { P as e } from "./index-5OJKu9qh.js";
2
- import { c as u, T as d } from "./identifier-CGgVMHib.js";
3
- import { s as h, g as T } from "./generateUtilityClasses-DMkCz287.js";
4
- import * as y from "react";
5
- import { j as B } from "./jsx-runtime-C5mzlN2N.js";
6
- import { s as N, C, b } from "./createTheme-BlQh0eyI.js";
7
- import { u as g } from "./useTheme-Bn9C3FUK.js";
8
- import { e as j } from "./extendSxProp-B_wB9j9Z.js";
1
+ import { s as u, C as d, b as h, P as e } from "./createTheme-DuP3DZSF.js";
2
+ import { T } from "./identifier-BKLqN993.js";
3
+ import { s as y, g as B } from "./generateUtilityClasses-BpNk3DNr.js";
4
+ import * as N from "react";
5
+ import { c as C } from "./clsx-OuTLNxxd.js";
6
+ import { j as b } from "./jsx-runtime-DywqP_6a.js";
7
+ import { u as g } from "./useTheme-Dy5JmnOe.js";
8
+ import { e as j } from "./extendSxProp-KtEeHd8h.js";
9
9
  function E(m = {}) {
10
10
  const {
11
11
  themeId: t,
12
12
  defaultTheme: n,
13
13
  defaultClassName: a = "MuiBox-root",
14
14
  generateClassName: r
15
- } = m, c = h("div", {
15
+ } = m, c = y("div", {
16
16
  shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
17
- })(N);
18
- return /* @__PURE__ */ y.forwardRef(function(f, i) {
17
+ })(u);
18
+ return /* @__PURE__ */ N.forwardRef(function(f, i) {
19
19
  const s = g(n), {
20
20
  className: l,
21
21
  component: p = "div",
22
22
  ...x
23
23
  } = j(f);
24
- return /* @__PURE__ */ B.jsx(c, {
24
+ return /* @__PURE__ */ b.jsx(c, {
25
25
  as: p,
26
26
  ref: i,
27
- className: u(l, r ? r(a) : a),
27
+ className: C(l, r ? r(a) : a),
28
28
  theme: t && s[t] || s,
29
29
  ...x
30
30
  });
31
31
  });
32
32
  }
33
- const v = T("MuiBox", ["root"]), O = b(), P = E({
34
- themeId: d,
33
+ const v = B("MuiBox", ["root"]), O = h(), P = E({
34
+ themeId: T,
35
35
  defaultTheme: O,
36
36
  defaultClassName: v.root,
37
- generateClassName: C.generate
37
+ generateClassName: d.generate
38
38
  });
39
39
  process.env.NODE_ENV !== "production" && (P.propTypes = {
40
40
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -1,5 +1,5 @@
1
- import { j as o } from "./jsx-runtime-C5mzlN2N.js";
2
- import { c as s } from "./createSvgIcon-BTLVR-ad.js";
1
+ import { j as o } from "./jsx-runtime-DywqP_6a.js";
2
+ import { c as s } from "./createSvgIcon-DN-sh_sr.js";
3
3
  const e = s(/* @__PURE__ */ o.jsx("path", {
4
4
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
5
5
  }), "Close");
@@ -1,5 +1,5 @@
1
- import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
- import { c } from "./createSvgIcon-BTLVR-ad.js";
1
+ import { j as t } from "./jsx-runtime-DywqP_6a.js";
2
+ import { c } from "./createSvgIcon-DN-sh_sr.js";
3
3
  const o = c(/* @__PURE__ */ t.jsx("path", {
4
4
  d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
5
5
  }), "HelpOutlineOutlined");
@@ -1,16 +1,15 @@
1
1
  import * as p from "react";
2
2
  import ve from "react";
3
- import { g as le, a as He, q as ze, l as rt } from "./createTheme-BlQh0eyI.js";
4
- import { P as e } from "./index-5OJKu9qh.js";
5
- import { T as Rt, c as te } from "./identifier-CGgVMHib.js";
6
- import { j as L } from "./jsx-runtime-C5mzlN2N.js";
7
- import { u as ce, a as W, b as ue, m as it, r as Ot } from "./createSvgIcon-BTLVR-ad.js";
8
- import { g as pe } from "./generateUtilityClasses-DMkCz287.js";
9
- import { c as we, f as Nt, u as oe, b as X, d as We, g as wt, m as St, r as Ct, e as Mt, a as kt, h as Dt, i as It } from "./useSlot-C4SHe-Bx.js";
10
- import { d as jt } from "./defaultTheme-CkLTWyeE.js";
11
- import { u as Ft } from "./useTheme-Bn9C3FUK.js";
3
+ import { P as e, g as le, a as He, o as ze, l as rt } from "./createTheme-DuP3DZSF.js";
4
+ import { u as ce, b as te, a as W, d as ue, m as it, r as Rt } from "./createSvgIcon-DN-sh_sr.js";
5
+ import { j as L } from "./jsx-runtime-DywqP_6a.js";
6
+ import { g as pe } from "./generateUtilityClasses-BpNk3DNr.js";
7
+ import { c as we, f as Ot, u as oe, b as X, d as We, g as Nt, m as wt, r as St, e as Ct, a as Mt, h as kt, i as Dt } from "./useSlot-CiHsL61G.js";
8
+ import { d as It } from "./defaultTheme-BDQAWvCM.js";
9
+ import { T as jt } from "./identifier-BKLqN993.js";
10
+ import { u as Ft } from "./useTheme-Dy5JmnOe.js";
12
11
  import { _ as Lt } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
13
- import { _ as At, a as st } from "./TransitionGroup-D2o-MIVr.js";
12
+ import { _ as At, a as st } from "./TransitionGroup-DuMpOHcM.js";
14
13
  import * as $t from "react-dom";
15
14
  import Te from "react-dom";
16
15
  import { u as Le } from "./useEnhancedEffect-CJGo-L3B.js";
@@ -34,8 +33,8 @@ const _t = /* @__PURE__ */ p.createContext();
34
33
  process.env.NODE_ENV !== "production" && (e.node, e.bool);
35
34
  const Ut = () => p.useContext(_t) ?? !1;
36
35
  function _e() {
37
- const t = Ft(jt);
38
- return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[Rt] || t;
36
+ const t = Ft(It);
37
+ return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[jt] || t;
39
38
  }
40
39
  function qt(t, n = 166) {
41
40
  let o;
@@ -65,7 +64,7 @@ var Kt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape(
65
64
  enter: e.number,
66
65
  exit: e.number,
67
66
  appear: e.number
68
- }).isRequired]) : null, Jn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
67
+ }).isRequired]) : null, Yn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.string, e.shape({
69
68
  enter: e.string,
70
69
  exit: e.string,
71
70
  active: e.string
@@ -501,7 +500,7 @@ const Gt = {
501
500
  // eslint-disable-next-line react/prop-types
502
501
  TransitionComponent: C = G,
503
502
  ...g
504
- } = n, w = Nt(), u = p.useRef(), f = _e(), y = p.useRef(null), S = oe(y, Se(r), o), O = (d) => (h) => {
503
+ } = n, w = Ot(), u = p.useRef(), f = _e(), y = p.useRef(null), S = oe(y, Se(r), o), O = (d) => (h) => {
505
504
  if (d) {
506
505
  const j = y.current;
507
506
  h === void 0 ? d(j) : d(j, h);
@@ -1229,6 +1228,7 @@ const un = (t) => {
1229
1228
  ...T,
1230
1229
  ...v
1231
1230
  }, f = {
1231
+ component: a,
1232
1232
  slots: w,
1233
1233
  slotProps: u
1234
1234
  }, [y, S] = X("root", {
@@ -1395,7 +1395,7 @@ function mn(t) {
1395
1395
  };
1396
1396
  return {
1397
1397
  getRootProps: (d = {}) => {
1398
- const h = wt(t);
1398
+ const h = Nt(t);
1399
1399
  delete h.onTransitionEnter, delete h.onTransitionExited;
1400
1400
  const j = {
1401
1401
  ...h,
@@ -2138,7 +2138,7 @@ const Pn = (t) => {
2138
2138
  backdrop: C.backdrop
2139
2139
  },
2140
2140
  slotProps: {
2141
- backdrop: St(typeof g.backdrop == "function" ? g.backdrop(k) : g.backdrop, {
2141
+ backdrop: wt(typeof g.backdrop == "function" ? g.backdrop(k) : g.backdrop, {
2142
2142
  invisible: !0
2143
2143
  })
2144
2144
  },
@@ -2187,7 +2187,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2187
2187
  * A ref for imperative actions.
2188
2188
  * It currently only supports updatePosition() action.
2189
2189
  */
2190
- action: Ct,
2190
+ action: St,
2191
2191
  /**
2192
2192
  * An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
2193
2193
  * or a function that returns either.
@@ -2311,7 +2311,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
2311
2311
  * @default {}
2312
2312
  */
2313
2313
  PaperProps: e.shape({
2314
- component: Mt
2314
+ component: Ct
2315
2315
  }),
2316
2316
  /**
2317
2317
  * The props used for each slot inside.
@@ -2385,14 +2385,14 @@ function On(t) {
2385
2385
  ownerState: i,
2386
2386
  skipResolvingSlotProps: s = !1,
2387
2387
  ...r
2388
- } = t, a = s ? {} : kt(o, i), {
2388
+ } = t, a = s ? {} : Mt(o, i), {
2389
2389
  props: l,
2390
2390
  internalRef: c
2391
- } = Dt({
2391
+ } = kt({
2392
2392
  ...r,
2393
2393
  externalSlotProps: a
2394
2394
  }), b = oe(c, a == null ? void 0 : a.ref, (v = t.additionalProps) == null ? void 0 : v.ref);
2395
- return It(n, {
2395
+ return Dt(n, {
2396
2396
  ...l,
2397
2397
  ref: b
2398
2398
  }, i);
@@ -2694,7 +2694,7 @@ const Mn = {
2694
2694
  list: ["list"]
2695
2695
  }, Cn, n);
2696
2696
  }, In = W(yt, {
2697
- shouldForwardProp: (t) => Ot(t) || t === "classes",
2697
+ shouldForwardProp: (t) => Rt(t) || t === "classes",
2698
2698
  name: "MuiMenu",
2699
2699
  slot: "Root"
2700
2700
  })({}), jn = W(gt, {
@@ -2962,7 +2962,7 @@ export {
2962
2962
  Pt as e,
2963
2963
  Bt as f,
2964
2964
  Se as g,
2965
- Jn as h,
2965
+ Yn as h,
2966
2966
  zt as i,
2967
2967
  Ne as j,
2968
2968
  Oe as k,
@@ -1,46 +1,44 @@
1
- import * as c from "react";
2
- import { P as t } from "./index-5OJKu9qh.js";
3
- import { c as x } from "./identifier-CGgVMHib.js";
4
- import { u as D, a as L, b as S, r as E, m as P } from "./createSvgIcon-BTLVR-ad.js";
5
- import { L as I } from "./Menu-C3Ku2lqS.js";
6
- import { g as p } from "./generateUtilityClasses-DMkCz287.js";
7
- import { g as R, a as d } from "./createTheme-BlQh0eyI.js";
8
- import { j as $ } from "./jsx-runtime-C5mzlN2N.js";
9
- import { u as U } from "./useEnhancedEffect-CJGo-L3B.js";
10
- import { u as F, B as G } from "./useSlot-C4SHe-Bx.js";
11
- function te(e) {
12
- return R("MuiDivider", e);
1
+ import * as d from "react";
2
+ import { g as O, P as o } from "./createTheme-DuP3DZSF.js";
3
+ import { u as B, a as D, b as x, d as L, r as S, m as E } from "./createSvgIcon-DN-sh_sr.js";
4
+ import { L as C } from "./Menu-CGTDGEoX.js";
5
+ import { g as c } from "./generateUtilityClasses-BpNk3DNr.js";
6
+ import { j as I } from "./jsx-runtime-DywqP_6a.js";
7
+ import { u as P } from "./useEnhancedEffect-CJGo-L3B.js";
8
+ import { u as U, B as F } from "./useSlot-CiHsL61G.js";
9
+ function Y(e) {
10
+ return O("MuiDivider", e);
13
11
  }
14
- const M = p("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), O = p("MuiListItemIcon", ["root", "alignItemsFlexStart"]), w = p("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
15
- function H(e) {
16
- return R("MuiMenuItem", e);
12
+ const M = c("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]), $ = c("MuiListItemIcon", ["root", "alignItemsFlexStart"]), w = c("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]);
13
+ function G(e) {
14
+ return O("MuiMenuItem", e);
17
15
  }
18
- const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), h = (e, o) => {
16
+ const n = c("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), H = (e, s) => {
19
17
  const {
20
- ownerState: s
18
+ ownerState: t
21
19
  } = e;
22
- return [o.root, s.dense && o.dense, s.divider && o.divider, !s.disableGutters && o.gutters];
20
+ return [s.root, t.dense && s.dense, t.divider && s.divider, !t.disableGutters && s.gutters];
23
21
  }, z = (e) => {
24
22
  const {
25
- disabled: o,
26
- dense: s,
23
+ disabled: s,
24
+ dense: t,
27
25
  divider: a,
28
26
  disableGutters: l,
29
- selected: u,
27
+ selected: p,
30
28
  classes: r
31
- } = e, i = S({
32
- root: ["root", s && "dense", o && "disabled", !l && "gutters", a && "divider", u && "selected"]
33
- }, H, r);
29
+ } = e, i = L({
30
+ root: ["root", t && "dense", s && "disabled", !l && "gutters", a && "divider", p && "selected"]
31
+ }, G, r);
34
32
  return {
35
33
  ...r,
36
34
  ...i
37
35
  };
38
- }, A = L(G, {
39
- shouldForwardProp: (e) => E(e) || e === "classes",
36
+ }, A = D(F, {
37
+ shouldForwardProp: (e) => S(e) || e === "classes",
40
38
  name: "MuiMenuItem",
41
39
  slot: "Root",
42
- overridesResolver: h
43
- })(P(({
40
+ overridesResolver: H
41
+ })(E(({
44
42
  theme: e
45
43
  }) => ({
46
44
  ...e.typography.body1,
@@ -63,16 +61,16 @@ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
63
61
  }
64
62
  },
65
63
  [`&.${n.selected}`]: {
66
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity),
64
+ backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
67
65
  [`&.${n.focusVisible}`]: {
68
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
66
+ backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`)
69
67
  }
70
68
  },
71
69
  [`&.${n.selected}:hover`]: {
72
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : d(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
70
+ backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
73
71
  // Reset on touch devices, it doesn't add specificity
74
72
  "@media (hover: none)": {
75
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : d(e.palette.primary.main, e.palette.action.selectedOpacity)
73
+ backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity)
76
74
  }
77
75
  },
78
76
  [`&.${n.focusVisible}`]: {
@@ -95,29 +93,29 @@ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
95
93
  [`& .${w.inset}`]: {
96
94
  paddingLeft: 36
97
95
  },
98
- [`& .${O.root}`]: {
96
+ [`& .${$.root}`]: {
99
97
  minWidth: 36
100
98
  },
101
99
  variants: [{
102
100
  props: ({
103
- ownerState: o
104
- }) => !o.disableGutters,
101
+ ownerState: s
102
+ }) => !s.disableGutters,
105
103
  style: {
106
104
  paddingLeft: 16,
107
105
  paddingRight: 16
108
106
  }
109
107
  }, {
110
108
  props: ({
111
- ownerState: o
112
- }) => o.divider,
109
+ ownerState: s
110
+ }) => s.divider,
113
111
  style: {
114
112
  borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
115
113
  backgroundClip: "padding-box"
116
114
  }
117
115
  }, {
118
116
  props: ({
119
- ownerState: o
120
- }) => !o.dense,
117
+ ownerState: s
118
+ }) => !s.dense,
121
119
  style: {
122
120
  [e.breakpoints.up("sm")]: {
123
121
  minHeight: "auto"
@@ -125,59 +123,59 @@ const n = p("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
125
123
  }
126
124
  }, {
127
125
  props: ({
128
- ownerState: o
129
- }) => o.dense,
126
+ ownerState: s
127
+ }) => s.dense,
130
128
  style: {
131
129
  minHeight: 32,
132
130
  // https://m2.material.io/components/menus#specs > Dense
133
131
  paddingTop: 4,
134
132
  paddingBottom: 4,
135
133
  ...e.typography.body2,
136
- [`& .${O.root} svg`]: {
134
+ [`& .${$.root} svg`]: {
137
135
  fontSize: "1.25rem"
138
136
  }
139
137
  }
140
138
  }]
141
- }))), W = /* @__PURE__ */ c.forwardRef(function(o, s) {
142
- const a = D({
143
- props: o,
139
+ }))), W = /* @__PURE__ */ d.forwardRef(function(s, t) {
140
+ const a = B({
141
+ props: s,
144
142
  name: "MuiMenuItem"
145
143
  }), {
146
144
  autoFocus: l = !1,
147
- component: u = "li",
145
+ component: p = "li",
148
146
  dense: r = !1,
149
147
  divider: b = !1,
150
148
  disableGutters: i = !1,
151
- focusVisibleClassName: T,
152
- role: V = "menuitem",
153
- tabIndex: g,
154
- className: k,
155
- ...N
156
- } = a, v = c.useContext(I), y = c.useMemo(() => ({
157
- dense: r || v.dense || !1,
149
+ focusVisibleClassName: R,
150
+ role: T = "menuitem",
151
+ tabIndex: m,
152
+ className: V,
153
+ ...k
154
+ } = a, g = d.useContext(C), v = d.useMemo(() => ({
155
+ dense: r || g.dense || !1,
158
156
  disableGutters: i
159
- }), [v.dense, r, i]), m = c.useRef(null);
160
- U(() => {
161
- l && (m.current ? m.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
157
+ }), [g.dense, r, i]), u = d.useRef(null);
158
+ P(() => {
159
+ l && (u.current ? u.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
162
160
  }, [l]);
163
- const j = {
161
+ const N = {
164
162
  ...a,
165
- dense: y.dense,
163
+ dense: v.dense,
166
164
  divider: b,
167
165
  disableGutters: i
168
- }, f = z(a), B = F(m, s);
169
- let C;
170
- return a.disabled || (C = g !== void 0 ? g : -1), /* @__PURE__ */ $.jsx(I.Provider, {
171
- value: y,
172
- children: /* @__PURE__ */ $.jsx(A, {
173
- ref: B,
174
- role: V,
175
- tabIndex: C,
176
- component: u,
177
- focusVisibleClassName: x(f.focusVisible, T),
178
- className: x(f.root, k),
179
- ...N,
180
- ownerState: j,
166
+ }, f = z(a), j = U(u, t);
167
+ let y;
168
+ return a.disabled || (y = m !== void 0 ? m : -1), /* @__PURE__ */ I.jsx(C.Provider, {
169
+ value: v,
170
+ children: /* @__PURE__ */ I.jsx(A, {
171
+ ref: j,
172
+ role: T,
173
+ tabIndex: y,
174
+ component: p,
175
+ focusVisibleClassName: x(f.focusVisible, R),
176
+ className: x(f.root, V),
177
+ ...k,
178
+ ownerState: N,
181
179
  classes: f
182
180
  })
183
181
  });
@@ -192,44 +190,44 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
192
190
  * Focus will also be triggered if the value changes from false to true.
193
191
  * @default false
194
192
  */
195
- autoFocus: t.bool,
193
+ autoFocus: o.bool,
196
194
  /**
197
195
  * The content of the component.
198
196
  */
199
- children: t.node,
197
+ children: o.node,
200
198
  /**
201
199
  * Override or extend the styles applied to the component.
202
200
  */
203
- classes: t.object,
201
+ classes: o.object,
204
202
  /**
205
203
  * @ignore
206
204
  */
207
- className: t.string,
205
+ className: o.string,
208
206
  /**
209
207
  * The component used for the root node.
210
208
  * Either a string to use a HTML element or a component.
211
209
  */
212
- component: t.elementType,
210
+ component: o.elementType,
213
211
  /**
214
212
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
215
213
  * The prop defaults to the value inherited from the parent Menu component.
216
214
  * @default false
217
215
  */
218
- dense: t.bool,
216
+ dense: o.bool,
219
217
  /**
220
218
  * @ignore
221
219
  */
222
- disabled: t.bool,
220
+ disabled: o.bool,
223
221
  /**
224
222
  * If `true`, the left and right padding is removed.
225
223
  * @default false
226
224
  */
227
- disableGutters: t.bool,
225
+ disableGutters: o.bool,
228
226
  /**
229
227
  * If `true`, a 1px light border is added to the bottom of the menu item.
230
228
  * @default false
231
229
  */
232
- divider: t.bool,
230
+ divider: o.bool,
233
231
  /**
234
232
  * This prop can help identify which element has keyboard focus.
235
233
  * The class name will be applied when the element gains the focus through keyboard interaction.
@@ -238,26 +236,26 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
238
236
  * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
239
237
  * if needed.
240
238
  */
241
- focusVisibleClassName: t.string,
239
+ focusVisibleClassName: o.string,
242
240
  /**
243
241
  * @ignore
244
242
  */
245
- role: t.string,
243
+ role: o.string,
246
244
  /**
247
245
  * If `true`, the component is selected.
248
246
  * @default false
249
247
  */
250
- selected: t.bool,
248
+ selected: o.bool,
251
249
  /**
252
250
  * The system prop that allows defining system overrides as well as additional CSS styles.
253
251
  */
254
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
252
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
255
253
  /**
256
254
  * @default 0
257
255
  */
258
- tabIndex: t.number
256
+ tabIndex: o.number
259
257
  });
260
258
  export {
261
259
  W as M,
262
- te as g
260
+ Y as g
263
261
  };