@solostylist/ui-kit 1.0.1 → 1.0.3

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 (111) hide show
  1. package/dist/AppAutocomplete/AppAutocomplete.js +1 -1
  2. package/dist/AppAvatar/AppAvatar.js +1 -1
  3. package/dist/AppBox/AppBox.js +1 -1
  4. package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +2 -2
  5. package/dist/AppButton/AppButton.js +1 -1
  6. package/dist/AppButtonLink/AppButtonLink.js +1 -1
  7. package/dist/AppCard/AppCard.js +1 -1
  8. package/dist/AppCardActions/AppCardActions.js +1 -1
  9. package/dist/AppCardContent/AppCardContent.js +1 -1
  10. package/dist/AppCardHeader/AppCardHeader.js +1 -1
  11. package/dist/AppCheckbox/AppCheckbox.js +1 -1
  12. package/dist/AppChip/AppChip.js +4 -4
  13. package/dist/AppChips/AppChips.js +1 -1
  14. package/dist/AppDataTable/AppDataTable.js +403 -323
  15. package/dist/AppDialog/AppDialog.js +2 -2
  16. package/dist/AppDialogConfirm/AppDialogConfirm.js +3 -3
  17. package/dist/AppDialogMessage/AppDialogMessage.js +3 -3
  18. package/dist/AppEmpty/AppEmpty.js +1 -1
  19. package/dist/AppError/AppError.js +1 -1
  20. package/dist/AppFileDropzone/AppFileDropzone.js +21 -21
  21. package/dist/AppFileIcon/AppFileIcon.js +2 -2
  22. package/dist/AppFormControl/AppFormControl.js +1 -1
  23. package/dist/AppGallery/AppGallery.js +1060 -1064
  24. package/dist/AppI18nProvider/AppI18nProvider.js +1 -1
  25. package/dist/AppIconButton/AppIconButton.js +1 -1
  26. package/dist/AppIcons/AppIcons.js +185 -185
  27. package/dist/AppLabel/AppLabel.js +1 -1
  28. package/dist/AppLink/AppLink.js +1 -1
  29. package/dist/AppMultiSelect/AppMultiSelect.js +4 -4
  30. package/dist/AppNoData/AppNoData.js +1 -1
  31. package/dist/AppNoSsr/AppNoSsr.js +1 -1
  32. package/dist/AppOption/AppOption.js +2 -2
  33. package/dist/AppPagination/AppPagination.js +1 -1
  34. package/dist/AppRating/AppRating.d.ts +1 -1
  35. package/dist/AppRating/AppRating.js +4 -5
  36. package/dist/AppSelect/AppSelect.js +2 -2
  37. package/dist/AppSkeleton/AppSkeleton.js +1 -1
  38. package/dist/AppSnackbarMessage/AppSnackbarMessage.js +1 -1
  39. package/dist/AppStack/AppStack.js +1 -1
  40. package/dist/AppTextEditor/AppTextEditor.js +2 -2
  41. package/dist/AppTextEditor/TextEditorToolbar.js +1652 -1316
  42. package/dist/AppTextTruncation/AppTextTruncation.js +1 -1
  43. package/dist/AppThemeProvider/AppThemeProvider.js +4 -4
  44. package/dist/AppTip/AppTip.js +4 -4
  45. package/dist/{Box-yxuKPTCX.js → Box-MNdIcw0w.js} +7 -7
  46. package/dist/{ButtonBase-p_uz8ITC.js → ButtonBase-D7WZejV5.js} +238 -225
  47. package/dist/{CaretDown-CgrRY9__.js → CaretDown-CZu0drmJ.js} +6 -6
  48. package/dist/{DefaultPropsProvider-BV4t9fEW.js → DefaultPropsProvider-Cw67t9bx.js} +2 -2
  49. package/dist/{Lightbulb-1rDyOsPk.js → Lightbulb-BLT-jnYA.js} +5 -5
  50. package/dist/{Menu-B0R91i07.js → Menu-BymLGoMc.js} +1154 -1209
  51. package/dist/{MenuItem-BjjYkRmW.js → MenuItem-l3xZOND-.js} +14 -14
  52. package/dist/SForm/SForm.d.ts +9 -0
  53. package/dist/SForm/SForm.js +10 -0
  54. package/dist/SForm/index.d.ts +1 -0
  55. package/dist/SForm/index.js +4 -0
  56. package/dist/{SSRBase-B9xq2wUG.js → SSRBase-BSdFRe_j.js} +11 -11
  57. package/dist/STextField/STextField.d.ts +11 -0
  58. package/dist/STextField/STextField.js +28 -0
  59. package/dist/STextField/index.d.ts +1 -0
  60. package/dist/STextField/index.js +4 -0
  61. package/dist/STextField/package.json +5 -0
  62. package/dist/{Stack-D9qNbbkC.js → Stack-CxKx2YGj.js} +11 -11
  63. package/dist/{Typography-BYkXNa-U.js → Typography-QQx_YSAW.js} +9 -9
  64. package/dist/{User-Bx-HYRxI.js → User-X5-swnIn.js} +9 -9
  65. package/dist/{X-DETrowOy.js → X-Cw1SQcRJ.js} +9 -9
  66. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  67. package/dist/assets/AppGallery.css +1 -1
  68. package/dist/clsx-DfguY6FT.js +232 -0
  69. package/dist/createTheme-dX0MILsf.js +2899 -0
  70. package/dist/{extendSxProp-CKQgGYDd.js → extendSxProp-CTBBOYHX.js} +3 -3
  71. package/dist/{index-Btrukby7.js → index-f-gkJ93Q.js} +11 -11
  72. package/dist/jsx-runtime-C5mzlN2N.js +284 -0
  73. package/dist/main.d.ts +1 -1
  74. package/dist/main.js +28 -28
  75. package/dist/memoTheme-DOlCkXD8.js +223 -0
  76. package/dist/outlinedInputClasses-rXE3T3sa.js +13 -0
  77. package/dist/styles/theme/color-schemes.js +61 -109
  78. package/dist/styles/theme/components/autocomplete.js +1 -1
  79. package/dist/styles/theme/components/avatar.js +2 -2
  80. package/dist/styles/theme/components/button.d.ts +12 -36
  81. package/dist/styles/theme/components/button.js +3 -3
  82. package/dist/styles/theme/components/card.d.ts +3 -965
  83. package/dist/styles/theme/components/checkbox.js +1 -1
  84. package/dist/styles/theme/components/chip.d.ts +3 -1067
  85. package/dist/styles/theme/components/chip.js +23 -67
  86. package/dist/styles/theme/components/components.d.ts +18 -2074
  87. package/dist/styles/theme/components/components.js +24 -26
  88. package/dist/styles/theme/components/outlined-input.js +1 -1
  89. package/dist/styles/theme/components/radio.js +1 -1
  90. package/dist/styles/theme/components/select.js +2 -2
  91. package/dist/styles/theme/components/table-pagination.js +2 -2
  92. package/dist/styles/theme/components/tabs.js +1 -1
  93. package/dist/styles/theme/shadows.d.ts +3 -4
  94. package/dist/{useControlled-CYUofcJ9.js → useControlled-DyL3m721.js} +53 -53
  95. package/dist/useSlot-Tj9CW-Xc.js +184 -0
  96. package/dist/{useTheme-DYc4rgBb.js → useTheme-CNZ6Hnpo.js} +1 -1
  97. package/dist/utils/dayjs.js +89 -83
  98. package/package.json +2 -2
  99. package/dist/AppOutlinedInput/AppOutlinedInput.d.ts +0 -10
  100. package/dist/AppOutlinedInput/AppOutlinedInput.js +0 -40
  101. package/dist/AppOutlinedInput/index.d.ts +0 -1
  102. package/dist/AppOutlinedInput/index.js +0 -4
  103. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  104. package/dist/clsx-C-FXfxyk.js +0 -236
  105. package/dist/createTheme-C97xvI-s.js +0 -2789
  106. package/dist/jsx-runtime-B6kdoens.js +0 -634
  107. package/dist/memoTheme-B2qvAi64.js +0 -404
  108. package/dist/outlinedInputClasses-R7dmh7eW.js +0 -13
  109. package/dist/styles/theme/components/timeline-connector.d.ts +0 -7
  110. package/dist/styles/theme/components/timeline-connector.js +0 -6
  111. /package/dist/{AppOutlinedInput → SForm}/package.json +0 -0
@@ -1,32 +1,33 @@
1
- import { j as r } from "../jsx-runtime-B6kdoens.js";
2
- import { v4 as be } from "uuid";
3
- import ye from "../AppNoData/AppNoData.js";
4
- import * as g from "react";
5
- import { P as e, c as C, j as $, l as ge, k as he } from "../createTheme-C97xvI-s.js";
6
- import { c as w } from "../clsx-C-FXfxyk.js";
7
- import { s as O, r as te, c as N, m as U } from "../memoTheme-B2qvAi64.js";
8
- import { a as S, g as B } from "../generateUtilityClasses-CuEy5gtx.js";
9
- import { u as H } from "../DefaultPropsProvider-BV4t9fEW.js";
10
- import { t as me, g as ve } from "../tableCellClasses-BIg5orIQ.js";
11
- import { u as xe, a as Ce, c as A } from "../useControlled-CYUofcJ9.js";
12
- import { B as Te, r as ae } from "../ButtonBase-p_uz8ITC.js";
13
- import { c as Q } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
14
- function ke(o) {
15
- return S("PrivateSwitchBase", o);
1
+ import { j as r } from "../jsx-runtime-C5mzlN2N.js";
2
+ import { v4 as Te } from "uuid";
3
+ import Ce from "../AppNoData/AppNoData.js";
4
+ import * as h from "react";
5
+ import { c as j, P as e, j as B, l as ke, n as je } from "../createTheme-dX0MILsf.js";
6
+ import { c as H } from "../clsx-DfguY6FT.js";
7
+ import { s as S, c as z, r as ae, m as D } from "../memoTheme-DOlCkXD8.js";
8
+ import { a as M, g as I } from "../generateUtilityClasses-CuEy5gtx.js";
9
+ import { u as E } from "../DefaultPropsProvider-Cw67t9bx.js";
10
+ import { g as Oe, t as Re } from "../tableCellClasses-BIg5orIQ.js";
11
+ import { u as we, a as Pe, c as G } from "../useControlled-DyL3m721.js";
12
+ import { u as L, m as Se } from "../useSlot-Tj9CW-Xc.js";
13
+ import { B as Ne, r as ze } from "../ButtonBase-D7WZejV5.js";
14
+ import { c as Y } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
15
+ function $e(o) {
16
+ return M("PrivateSwitchBase", o);
16
17
  }
17
- B("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
18
- const je = (o) => {
18
+ I("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
19
+ const Be = (o) => {
19
20
  const {
20
21
  classes: t,
21
- checked: a,
22
- disabled: s,
22
+ checked: s,
23
+ disabled: a,
23
24
  edge: i
24
25
  } = o, n = {
25
- root: ["root", a && "checked", s && "disabled", i && `edge${C(i)}`],
26
+ root: ["root", s && "checked", a && "disabled", i && `edge${j(i)}`],
26
27
  input: ["input"]
27
28
  };
28
- return N(n, ke, t);
29
- }, Re = O(Te)({
29
+ return z(n, $e, t);
30
+ }, He = S(Ne)({
30
31
  padding: 9,
31
32
  borderRadius: "50%",
32
33
  variants: [{
@@ -62,8 +63,8 @@ const je = (o) => {
62
63
  marginRight: -12
63
64
  }
64
65
  }]
65
- }), Oe = O("input", {
66
- shouldForwardProp: te
66
+ }), Me = S("input", {
67
+ shouldForwardProp: ae
67
68
  })({
68
69
  cursor: "inherit",
69
70
  position: "absolute",
@@ -75,90 +76,126 @@ const je = (o) => {
75
76
  margin: 0,
76
77
  padding: 0,
77
78
  zIndex: 1
78
- }), se = /* @__PURE__ */ g.forwardRef(function(t, a) {
79
+ }), ne = /* @__PURE__ */ h.forwardRef(function(t, s) {
79
80
  const {
80
- autoFocus: s,
81
+ autoFocus: a,
81
82
  checked: i,
82
83
  checkedIcon: n,
83
- className: p,
84
- defaultChecked: d,
85
- disabled: u,
86
- disableFocusRipple: b = !1,
87
- edge: l = !1,
88
- icon: h,
89
- id: T,
90
- inputProps: m,
91
- inputRef: x,
92
- name: c,
93
- onBlur: v,
94
- onChange: y,
95
- onFocus: k,
96
- readOnly: f,
97
- required: V = !1,
98
- tabIndex: I,
99
- type: E,
100
- value: q,
101
- ...le
102
- } = t, [G, ce] = xe({
84
+ defaultChecked: p,
85
+ disabled: d,
86
+ disableFocusRipple: u = !1,
87
+ edge: y = !1,
88
+ icon: l,
89
+ id: x,
90
+ inputProps: O,
91
+ inputRef: g,
92
+ name: T,
93
+ onBlur: c,
94
+ onChange: v,
95
+ onFocus: m,
96
+ readOnly: C,
97
+ required: f = !1,
98
+ tabIndex: N,
99
+ type: R,
100
+ value: V,
101
+ slots: ce = {},
102
+ slotProps: pe = {},
103
+ ...de
104
+ } = t, [K, ue] = we({
103
105
  controlled: i,
104
- default: !!d,
106
+ default: !!p,
105
107
  name: "SwitchBase",
106
108
  state: "checked"
107
- }), R = Ce(), de = (j) => {
108
- k && k(j), R && R.onFocus && R.onFocus(j);
109
- }, pe = (j) => {
110
- v && v(j), R && R.onBlur && R.onBlur(j);
111
- }, ue = (j) => {
112
- if (j.nativeEvent.defaultPrevented)
109
+ }), w = Pe(), fe = (b) => {
110
+ m && m(b), w && w.onFocus && w.onFocus(b);
111
+ }, be = (b) => {
112
+ c && c(b), w && w.onBlur && w.onBlur(b);
113
+ }, ye = (b) => {
114
+ if (b.nativeEvent.defaultPrevented)
113
115
  return;
114
- const K = j.target.checked;
115
- ce(K), y && y(j, K);
116
+ const k = b.target.checked;
117
+ ue(k), v && v(b, k);
116
118
  };
117
- let P = u;
118
- R && typeof P > "u" && (P = R.disabled);
119
- const fe = E === "checkbox" || E === "radio", _ = {
119
+ let F = d;
120
+ w && typeof F > "u" && (F = w.disabled);
121
+ const ge = R === "checkbox" || R === "radio", W = {
120
122
  ...t,
121
- checked: G,
122
- disabled: P,
123
- disableFocusRipple: b,
124
- edge: l
125
- }, J = je(_);
126
- return /* @__PURE__ */ r.jsxs(Re, {
127
- component: "span",
128
- className: w(J.root, p),
129
- centerRipple: !0,
130
- focusRipple: !b,
131
- disabled: P,
132
- tabIndex: null,
133
- role: void 0,
134
- onFocus: de,
135
- onBlur: pe,
136
- ownerState: _,
137
- ref: a,
138
- ...le,
139
- children: [/* @__PURE__ */ r.jsx(Oe, {
140
- autoFocus: s,
141
- checked: i,
142
- defaultChecked: d,
143
- className: J.input,
144
- disabled: P,
145
- id: fe ? T : void 0,
146
- name: c,
147
- onChange: ue,
148
- readOnly: f,
149
- ref: x,
150
- required: V,
151
- ownerState: _,
152
- tabIndex: I,
153
- type: E,
154
- ...E === "checkbox" && q === void 0 ? {} : {
155
- value: q
123
+ checked: K,
124
+ disabled: F,
125
+ disableFocusRipple: u,
126
+ edge: y
127
+ }, Q = Be(W), X = {
128
+ slots: ce,
129
+ slotProps: {
130
+ input: O,
131
+ ...pe
132
+ }
133
+ }, [me, he] = L("root", {
134
+ ref: s,
135
+ elementType: He,
136
+ className: Q.root,
137
+ shouldForwardComponentProp: !0,
138
+ externalForwardedProps: {
139
+ ...X,
140
+ component: "span",
141
+ ...de
142
+ },
143
+ getSlotProps: (b) => ({
144
+ ...b,
145
+ onFocus: (k) => {
146
+ var P;
147
+ (P = b.onFocus) == null || P.call(b, k), fe(k);
156
148
  },
157
- ...m
158
- }), G ? n : h]
149
+ onBlur: (k) => {
150
+ var P;
151
+ (P = b.onBlur) == null || P.call(b, k), be(k);
152
+ }
153
+ }),
154
+ ownerState: W,
155
+ additionalProps: {
156
+ centerRipple: !0,
157
+ focusRipple: !u,
158
+ disabled: F,
159
+ role: void 0,
160
+ tabIndex: null
161
+ }
162
+ }), [xe, ve] = L("input", {
163
+ ref: g,
164
+ elementType: Me,
165
+ className: Q.input,
166
+ externalForwardedProps: X,
167
+ getSlotProps: (b) => ({
168
+ ...b,
169
+ onChange: (k) => {
170
+ var P;
171
+ (P = b.onChange) == null || P.call(b, k), ye(k);
172
+ }
173
+ }),
174
+ ownerState: W,
175
+ additionalProps: {
176
+ autoFocus: a,
177
+ checked: i,
178
+ defaultChecked: p,
179
+ disabled: F,
180
+ id: ge ? x : void 0,
181
+ name: T,
182
+ readOnly: C,
183
+ required: f,
184
+ tabIndex: N,
185
+ type: R,
186
+ ...R === "checkbox" && V === void 0 ? {} : {
187
+ value: V
188
+ }
189
+ }
190
+ });
191
+ return /* @__PURE__ */ r.jsxs(me, {
192
+ ...he,
193
+ children: [/* @__PURE__ */ r.jsx(xe, {
194
+ ...ve
195
+ }), K ? n : l]
159
196
  });
160
197
  });
161
- process.env.NODE_ENV !== "production" && (se.propTypes = {
198
+ process.env.NODE_ENV !== "production" && (ne.propTypes = {
162
199
  /**
163
200
  * If `true`, the `input` element is focused during the first mount.
164
201
  */
@@ -215,7 +252,7 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
215
252
  /**
216
253
  * Pass a ref to the `input` element.
217
254
  */
218
- inputRef: ae,
255
+ inputRef: ze,
219
256
  /*
220
257
  * @ignore
221
258
  */
@@ -244,6 +281,22 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
244
281
  * If `true`, the `input` element is required.
245
282
  */
246
283
  required: e.bool,
284
+ /**
285
+ * The props used for each slot inside.
286
+ * @default {}
287
+ */
288
+ slotProps: e.shape({
289
+ input: e.oneOfType([e.func, e.object]),
290
+ root: e.oneOfType([e.func, e.object])
291
+ }),
292
+ /**
293
+ * The components used for each slot inside.
294
+ * @default {}
295
+ */
296
+ slots: e.shape({
297
+ input: e.elementType,
298
+ root: e.elementType
299
+ }),
247
300
  /**
248
301
  * The system prop that allows defining system overrides as well as additional CSS styles.
249
302
  */
@@ -261,41 +314,41 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
261
314
  */
262
315
  value: e.any
263
316
  });
264
- const we = A(/* @__PURE__ */ r.jsx("path", {
317
+ const Ie = G(/* @__PURE__ */ r.jsx("path", {
265
318
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
266
- }), "CheckBoxOutlineBlank"), Ne = A(/* @__PURE__ */ r.jsx("path", {
319
+ }), "CheckBoxOutlineBlank"), Ee = G(/* @__PURE__ */ r.jsx("path", {
267
320
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
268
- }), "CheckBox"), ze = A(/* @__PURE__ */ r.jsx("path", {
321
+ }), "CheckBox"), Fe = G(/* @__PURE__ */ r.jsx("path", {
269
322
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
270
323
  }), "IndeterminateCheckBox");
271
- function $e(o) {
272
- return S("MuiCheckbox", o);
324
+ function Ue(o) {
325
+ return M("MuiCheckbox", o);
273
326
  }
274
- const D = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Se = (o) => {
327
+ const A = I("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Ve = (o) => {
275
328
  const {
276
329
  classes: t,
277
- indeterminate: a,
278
- color: s,
330
+ indeterminate: s,
331
+ color: a,
279
332
  size: i
280
333
  } = o, n = {
281
- root: ["root", a && "indeterminate", `color${C(s)}`, `size${C(i)}`]
282
- }, p = N(n, $e, t);
334
+ root: ["root", s && "indeterminate", `color${j(a)}`, `size${j(i)}`]
335
+ }, p = z(n, Ue, t);
283
336
  return {
284
337
  ...t,
285
338
  // forward the disabled and checked classes to the SwitchBase
286
339
  ...p
287
340
  };
288
- }, Be = O(se, {
289
- shouldForwardProp: (o) => te(o) || o === "classes",
341
+ }, _e = S(ne, {
342
+ shouldForwardProp: (o) => ae(o) || o === "classes",
290
343
  name: "MuiCheckbox",
291
344
  slot: "Root",
292
345
  overridesResolver: (o, t) => {
293
346
  const {
294
- ownerState: a
347
+ ownerState: s
295
348
  } = o;
296
- return [t.root, a.indeterminate && t.indeterminate, t[`size${C(a.size)}`], a.color !== "default" && t[`color${C(a.color)}`]];
349
+ return [t.root, s.indeterminate && t.indeterminate, t[`size${j(s.size)}`], s.color !== "default" && t[`color${j(s.color)}`]];
297
350
  }
298
- })(U(({
351
+ })(D(({
299
352
  theme: o
300
353
  }) => ({
301
354
  color: (o.vars || o).palette.text.secondary,
@@ -306,28 +359,28 @@ const D = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
306
359
  },
307
360
  style: {
308
361
  "&:hover": {
309
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette.action.active, o.palette.action.hoverOpacity)
362
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : B(o.palette.action.active, o.palette.action.hoverOpacity)
310
363
  }
311
364
  }
312
- }, ...Object.entries(o.palette).filter(Q()).map(([t]) => ({
365
+ }, ...Object.entries(o.palette).filter(Y()).map(([t]) => ({
313
366
  props: {
314
367
  color: t,
315
368
  disableRipple: !1
316
369
  },
317
370
  style: {
318
371
  "&:hover": {
319
- backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : $(o.palette[t].main, o.palette.action.hoverOpacity)
372
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : B(o.palette[t].main, o.palette.action.hoverOpacity)
320
373
  }
321
374
  }
322
- })), ...Object.entries(o.palette).filter(Q()).map(([t]) => ({
375
+ })), ...Object.entries(o.palette).filter(Y()).map(([t]) => ({
323
376
  props: {
324
377
  color: t
325
378
  },
326
379
  style: {
327
- [`&.${D.checked}, &.${D.indeterminate}`]: {
380
+ [`&.${A.checked}, &.${A.indeterminate}`]: {
328
381
  color: (o.vars || o).palette[t].main
329
382
  },
330
- [`&.${D.disabled}`]: {
383
+ [`&.${A.disabled}`]: {
331
384
  color: (o.vars || o).palette.action.disabled
332
385
  }
333
386
  }
@@ -345,49 +398,63 @@ const D = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
345
398
  }
346
399
  }
347
400
  }]
348
- }))), He = /* @__PURE__ */ r.jsx(Ne, {}), Pe = /* @__PURE__ */ r.jsx(we, {}), Me = /* @__PURE__ */ r.jsx(ze, {}), W = /* @__PURE__ */ g.forwardRef(function(t, a) {
349
- const s = H({
401
+ }))), De = /* @__PURE__ */ r.jsx(Ee, {}), We = /* @__PURE__ */ r.jsx(Ie, {}), Ae = /* @__PURE__ */ r.jsx(Fe, {}), q = /* @__PURE__ */ h.forwardRef(function(t, s) {
402
+ const a = E({
350
403
  props: t,
351
404
  name: "MuiCheckbox"
352
405
  }), {
353
- checkedIcon: i = He,
406
+ checkedIcon: i = De,
354
407
  color: n = "primary",
355
- icon: p = Pe,
408
+ icon: p = We,
356
409
  indeterminate: d = !1,
357
- indeterminateIcon: u = Me,
358
- inputProps: b,
410
+ indeterminateIcon: u = Ae,
411
+ inputProps: y,
359
412
  size: l = "medium",
360
- disableRipple: h = !1,
361
- className: T,
362
- ...m
363
- } = s, x = d ? u : p, c = d ? u : i, v = {
364
- ...s,
365
- disableRipple: h,
413
+ disableRipple: x = !1,
414
+ className: O,
415
+ slots: g = {},
416
+ slotProps: T = {},
417
+ ...c
418
+ } = a, v = d ? u : p, m = d ? u : i, C = {
419
+ ...a,
420
+ disableRipple: x,
366
421
  color: n,
367
422
  indeterminate: d,
368
423
  size: l
369
- }, y = Se(v);
370
- return /* @__PURE__ */ r.jsx(Be, {
371
- type: "checkbox",
372
- inputProps: {
373
- "data-indeterminate": d,
374
- ...b
424
+ }, f = Ve(C), N = T.input ?? y, [R, V] = L("root", {
425
+ ref: s,
426
+ elementType: _e,
427
+ className: H(f.root, O),
428
+ shouldForwardComponentProp: !0,
429
+ externalForwardedProps: {
430
+ slots: g,
431
+ slotProps: T,
432
+ ...c
375
433
  },
376
- icon: /* @__PURE__ */ g.cloneElement(x, {
377
- fontSize: x.props.fontSize ?? l
378
- }),
379
- checkedIcon: /* @__PURE__ */ g.cloneElement(c, {
380
- fontSize: c.props.fontSize ?? l
381
- }),
382
- ownerState: v,
383
- ref: a,
384
- className: w(y.root, T),
385
- disableRipple: h,
386
- ...m,
387
- classes: y
434
+ ownerState: C,
435
+ additionalProps: {
436
+ type: "checkbox",
437
+ icon: /* @__PURE__ */ h.cloneElement(v, {
438
+ fontSize: v.props.fontSize ?? l
439
+ }),
440
+ checkedIcon: /* @__PURE__ */ h.cloneElement(m, {
441
+ fontSize: m.props.fontSize ?? l
442
+ }),
443
+ disableRipple: x,
444
+ slots: g,
445
+ slotProps: {
446
+ input: Se(typeof N == "function" ? N(C) : N, {
447
+ "data-indeterminate": d
448
+ })
449
+ }
450
+ }
451
+ });
452
+ return /* @__PURE__ */ r.jsx(R, {
453
+ ...V,
454
+ classes: f
388
455
  });
389
456
  });
390
- process.env.NODE_ENV !== "production" && (W.propTypes = {
457
+ process.env.NODE_ENV !== "production" && (q.propTypes = {
391
458
  // ┌────────────────────────────── Warning ──────────────────────────────┐
392
459
  // │ These PropTypes are generated from the TypeScript type definitions. │
393
460
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -454,12 +521,9 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
454
521
  indeterminateIcon: e.node,
455
522
  /**
456
523
  * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
524
+ * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
457
525
  */
458
526
  inputProps: e.object,
459
- /**
460
- * Pass a ref to the `input` element.
461
- */
462
- inputRef: ae,
463
527
  /**
464
528
  * Callback fired when the state is changed.
465
529
  *
@@ -478,6 +542,22 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
478
542
  * @default 'medium'
479
543
  */
480
544
  size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
545
+ /**
546
+ * The props used for each slot inside.
547
+ * @default {}
548
+ */
549
+ slotProps: e.shape({
550
+ input: e.oneOfType([e.func, e.object]),
551
+ root: e.oneOfType([e.func, e.object])
552
+ }),
553
+ /**
554
+ * The components used for each slot inside.
555
+ * @default {}
556
+ */
557
+ slots: e.shape({
558
+ input: e.elementType,
559
+ root: e.elementType
560
+ }),
481
561
  /**
482
562
  * The system prop that allows defining system overrides as well as additional CSS styles.
483
563
  */
@@ -488,30 +568,30 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
488
568
  */
489
569
  value: e.any
490
570
  });
491
- const L = /* @__PURE__ */ g.createContext();
492
- process.env.NODE_ENV !== "production" && (L.displayName = "TableContext");
493
- function Ie(o) {
494
- return S("MuiTable", o);
571
+ const J = /* @__PURE__ */ h.createContext();
572
+ process.env.NODE_ENV !== "production" && (J.displayName = "TableContext");
573
+ function Le(o) {
574
+ return M("MuiTable", o);
495
575
  }
496
- B("MuiTable", ["root", "stickyHeader"]);
497
- const Ee = (o) => {
576
+ I("MuiTable", ["root", "stickyHeader"]);
577
+ const qe = (o) => {
498
578
  const {
499
579
  classes: t,
500
- stickyHeader: a
580
+ stickyHeader: s
501
581
  } = o;
502
- return N({
503
- root: ["root", a && "stickyHeader"]
504
- }, Ie, t);
505
- }, Fe = O("table", {
582
+ return z({
583
+ root: ["root", s && "stickyHeader"]
584
+ }, Le, t);
585
+ }, Ge = S("table", {
506
586
  name: "MuiTable",
507
587
  slot: "Root",
508
588
  overridesResolver: (o, t) => {
509
589
  const {
510
- ownerState: a
590
+ ownerState: s
511
591
  } = o;
512
- return [t.root, a.stickyHeader && t.stickyHeader];
592
+ return [t.root, s.stickyHeader && t.stickyHeader];
513
593
  }
514
- })(U(({
594
+ })(D(({
515
595
  theme: o
516
596
  }) => ({
517
597
  display: "table",
@@ -533,41 +613,41 @@ const Ee = (o) => {
533
613
  borderCollapse: "separate"
534
614
  }
535
615
  }]
536
- }))), X = "table", ne = /* @__PURE__ */ g.forwardRef(function(t, a) {
537
- const s = H({
616
+ }))), Z = "table", re = /* @__PURE__ */ h.forwardRef(function(t, s) {
617
+ const a = E({
538
618
  props: t,
539
619
  name: "MuiTable"
540
620
  }), {
541
621
  className: i,
542
- component: n = X,
622
+ component: n = Z,
543
623
  padding: p = "normal",
544
624
  size: d = "medium",
545
625
  stickyHeader: u = !1,
546
- ...b
547
- } = s, l = {
548
- ...s,
626
+ ...y
627
+ } = a, l = {
628
+ ...a,
549
629
  component: n,
550
630
  padding: p,
551
631
  size: d,
552
632
  stickyHeader: u
553
- }, h = Ee(l), T = g.useMemo(() => ({
633
+ }, x = qe(l), O = h.useMemo(() => ({
554
634
  padding: p,
555
635
  size: d,
556
636
  stickyHeader: u
557
637
  }), [p, d, u]);
558
- return /* @__PURE__ */ r.jsx(L.Provider, {
559
- value: T,
560
- children: /* @__PURE__ */ r.jsx(Fe, {
638
+ return /* @__PURE__ */ r.jsx(J.Provider, {
639
+ value: O,
640
+ children: /* @__PURE__ */ r.jsx(Ge, {
561
641
  as: n,
562
- role: n === X ? null : "table",
563
- ref: a,
564
- className: w(h.root, i),
642
+ role: n === Z ? null : "table",
643
+ ref: s,
644
+ className: H(x.root, i),
565
645
  ownerState: l,
566
- ...b
646
+ ...y
567
647
  })
568
648
  });
569
649
  });
570
- process.env.NODE_ENV !== "production" && (ne.propTypes = {
650
+ process.env.NODE_ENV !== "production" && (re.propTypes = {
571
651
  // ┌────────────────────────────── Warning ──────────────────────────────┐
572
652
  // │ These PropTypes are generated from the TypeScript type definitions. │
573
653
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -609,52 +689,52 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
609
689
  */
610
690
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
611
691
  });
612
- const M = /* @__PURE__ */ g.createContext();
613
- process.env.NODE_ENV !== "production" && (M.displayName = "Tablelvl2Context");
614
- function Ue(o) {
615
- return S("MuiTableBody", o);
692
+ const U = /* @__PURE__ */ h.createContext();
693
+ process.env.NODE_ENV !== "production" && (U.displayName = "Tablelvl2Context");
694
+ function Je(o) {
695
+ return M("MuiTableBody", o);
616
696
  }
617
- B("MuiTableBody", ["root"]);
618
- const Ve = (o) => {
697
+ I("MuiTableBody", ["root"]);
698
+ const Ke = (o) => {
619
699
  const {
620
700
  classes: t
621
701
  } = o;
622
- return N({
702
+ return z({
623
703
  root: ["root"]
624
- }, Ue, t);
625
- }, _e = O("tbody", {
704
+ }, Je, t);
705
+ }, Qe = S("tbody", {
626
706
  name: "MuiTableBody",
627
707
  slot: "Root",
628
708
  overridesResolver: (o, t) => t.root
629
709
  })({
630
710
  display: "table-row-group"
631
- }), De = {
711
+ }), Xe = {
632
712
  variant: "body"
633
- }, Y = "tbody", re = /* @__PURE__ */ g.forwardRef(function(t, a) {
634
- const s = H({
713
+ }, ee = "tbody", ie = /* @__PURE__ */ h.forwardRef(function(t, s) {
714
+ const a = E({
635
715
  props: t,
636
716
  name: "MuiTableBody"
637
717
  }), {
638
718
  className: i,
639
- component: n = Y,
719
+ component: n = ee,
640
720
  ...p
641
- } = s, d = {
642
- ...s,
721
+ } = a, d = {
722
+ ...a,
643
723
  component: n
644
- }, u = Ve(d);
645
- return /* @__PURE__ */ r.jsx(M.Provider, {
646
- value: De,
647
- children: /* @__PURE__ */ r.jsx(_e, {
648
- className: w(u.root, i),
724
+ }, u = Ke(d);
725
+ return /* @__PURE__ */ r.jsx(U.Provider, {
726
+ value: Xe,
727
+ children: /* @__PURE__ */ r.jsx(Qe, {
728
+ className: H(u.root, i),
649
729
  as: n,
650
- ref: a,
651
- role: n === Y ? null : "rowgroup",
730
+ ref: s,
731
+ role: n === ee ? null : "rowgroup",
652
732
  ownerState: d,
653
733
  ...p
654
734
  })
655
735
  });
656
736
  });
657
- process.env.NODE_ENV !== "production" && (re.propTypes = {
737
+ process.env.NODE_ENV !== "production" && (ie.propTypes = {
658
738
  // ┌────────────────────────────── Warning ──────────────────────────────┐
659
739
  // │ These PropTypes are generated from the TypeScript type definitions. │
660
740
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -681,28 +761,28 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
681
761
  */
682
762
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
683
763
  });
684
- const We = (o) => {
764
+ const Ye = (o) => {
685
765
  const {
686
766
  classes: t,
687
- variant: a,
688
- align: s,
767
+ variant: s,
768
+ align: a,
689
769
  padding: i,
690
770
  size: n,
691
771
  stickyHeader: p
692
772
  } = o, d = {
693
- root: ["root", a, p && "stickyHeader", s !== "inherit" && `align${C(s)}`, i !== "normal" && `padding${C(i)}`, `size${C(n)}`]
773
+ root: ["root", s, p && "stickyHeader", a !== "inherit" && `align${j(a)}`, i !== "normal" && `padding${j(i)}`, `size${j(n)}`]
694
774
  };
695
- return N(d, ve, t);
696
- }, Ae = O("td", {
775
+ return z(d, Oe, t);
776
+ }, Ze = S("td", {
697
777
  name: "MuiTableCell",
698
778
  slot: "Root",
699
779
  overridesResolver: (o, t) => {
700
780
  const {
701
- ownerState: a
781
+ ownerState: s
702
782
  } = o;
703
- return [t.root, t[a.variant], t[`size${C(a.size)}`], a.padding !== "normal" && t[`padding${C(a.padding)}`], a.align !== "inherit" && t[`align${C(a.align)}`], a.stickyHeader && t.stickyHeader];
783
+ return [t.root, t[s.variant], t[`size${j(s.size)}`], s.padding !== "normal" && t[`padding${j(s.padding)}`], s.align !== "inherit" && t[`align${j(s.align)}`], s.stickyHeader && t.stickyHeader];
704
784
  }
705
- })(U(({
785
+ })(D(({
706
786
  theme: o
707
787
  }) => ({
708
788
  ...o.typography.body2,
@@ -711,7 +791,7 @@ const We = (o) => {
711
791
  // Workaround for a rendering bug with spanned columns in Chrome 62.0.
712
792
  // Removes the alpha (sets it to 1), and lightens or darkens the theme color.
713
793
  borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
714
- ${o.palette.mode === "light" ? ge($(o.palette.divider, 1), 0.88) : he($(o.palette.divider, 1), 0.68)}`,
794
+ ${o.palette.mode === "light" ? ke(B(o.palette.divider, 1), 0.88) : je(B(o.palette.divider, 1), 0.68)}`,
715
795
  textAlign: "left",
716
796
  padding: 16,
717
797
  variants: [{
@@ -745,7 +825,7 @@ const We = (o) => {
745
825
  },
746
826
  style: {
747
827
  padding: "6px 16px",
748
- [`&.${me.paddingCheckbox}`]: {
828
+ [`&.${Re.paddingCheckbox}`]: {
749
829
  width: 24,
750
830
  // prevent the checkbox column from growing
751
831
  padding: "0 12px 0 16px",
@@ -810,8 +890,8 @@ const We = (o) => {
810
890
  backgroundColor: (o.vars || o).palette.background.default
811
891
  }
812
892
  }]
813
- }))), z = /* @__PURE__ */ g.forwardRef(function(t, a) {
814
- const s = H({
893
+ }))), $ = /* @__PURE__ */ h.forwardRef(function(t, s) {
894
+ const a = E({
815
895
  props: t,
816
896
  name: "MuiTableCell"
817
897
  }), {
@@ -820,37 +900,37 @@ const We = (o) => {
820
900
  component: p,
821
901
  padding: d,
822
902
  scope: u,
823
- size: b,
903
+ size: y,
824
904
  sortDirection: l,
825
- variant: h,
826
- ...T
827
- } = s, m = g.useContext(L), x = g.useContext(M), c = x && x.variant === "head";
905
+ variant: x,
906
+ ...O
907
+ } = a, g = h.useContext(J), T = h.useContext(U), c = T && T.variant === "head";
828
908
  let v;
829
909
  p ? v = p : v = c ? "th" : "td";
830
- let y = u;
831
- v === "td" ? y = void 0 : !y && c && (y = "col");
832
- const k = h || x && x.variant, f = {
833
- ...s,
910
+ let m = u;
911
+ v === "td" ? m = void 0 : !m && c && (m = "col");
912
+ const C = x || T && T.variant, f = {
913
+ ...a,
834
914
  align: i,
835
915
  component: v,
836
- padding: d || (m && m.padding ? m.padding : "normal"),
837
- size: b || (m && m.size ? m.size : "medium"),
916
+ padding: d || (g && g.padding ? g.padding : "normal"),
917
+ size: y || (g && g.size ? g.size : "medium"),
838
918
  sortDirection: l,
839
- stickyHeader: k === "head" && m && m.stickyHeader,
840
- variant: k
841
- }, V = We(f);
842
- let I = null;
843
- return l && (I = l === "asc" ? "ascending" : "descending"), /* @__PURE__ */ r.jsx(Ae, {
919
+ stickyHeader: C === "head" && g && g.stickyHeader,
920
+ variant: C
921
+ }, N = Ye(f);
922
+ let R = null;
923
+ return l && (R = l === "asc" ? "ascending" : "descending"), /* @__PURE__ */ r.jsx(Ze, {
844
924
  as: v,
845
- ref: a,
846
- className: w(V.root, n),
847
- "aria-sort": I,
848
- scope: y,
925
+ ref: s,
926
+ className: H(N.root, n),
927
+ "aria-sort": R,
928
+ scope: m,
849
929
  ownerState: f,
850
- ...T
930
+ ...O
851
931
  });
852
932
  });
853
- process.env.NODE_ENV !== "production" && (z.propTypes = {
933
+ process.env.NODE_ENV !== "production" && ($.propTypes = {
854
934
  // ┌────────────────────────────── Warning ──────────────────────────────┐
855
935
  // │ These PropTypes are generated from the TypeScript type definitions. │
856
936
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -908,50 +988,50 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
908
988
  */
909
989
  variant: e.oneOfType([e.oneOf(["body", "footer", "head"]), e.string])
910
990
  });
911
- function Le(o) {
912
- return S("MuiTableHead", o);
991
+ function eo(o) {
992
+ return M("MuiTableHead", o);
913
993
  }
914
- B("MuiTableHead", ["root"]);
915
- const qe = (o) => {
994
+ I("MuiTableHead", ["root"]);
995
+ const oo = (o) => {
916
996
  const {
917
997
  classes: t
918
998
  } = o;
919
- return N({
999
+ return z({
920
1000
  root: ["root"]
921
- }, Le, t);
922
- }, Ge = O("thead", {
1001
+ }, eo, t);
1002
+ }, to = S("thead", {
923
1003
  name: "MuiTableHead",
924
1004
  slot: "Root",
925
1005
  overridesResolver: (o, t) => t.root
926
1006
  })({
927
1007
  display: "table-header-group"
928
- }), Je = {
1008
+ }), so = {
929
1009
  variant: "head"
930
- }, Z = "thead", ie = /* @__PURE__ */ g.forwardRef(function(t, a) {
931
- const s = H({
1010
+ }, oe = "thead", le = /* @__PURE__ */ h.forwardRef(function(t, s) {
1011
+ const a = E({
932
1012
  props: t,
933
1013
  name: "MuiTableHead"
934
1014
  }), {
935
1015
  className: i,
936
- component: n = Z,
1016
+ component: n = oe,
937
1017
  ...p
938
- } = s, d = {
939
- ...s,
1018
+ } = a, d = {
1019
+ ...a,
940
1020
  component: n
941
- }, u = qe(d);
942
- return /* @__PURE__ */ r.jsx(M.Provider, {
943
- value: Je,
944
- children: /* @__PURE__ */ r.jsx(Ge, {
1021
+ }, u = oo(d);
1022
+ return /* @__PURE__ */ r.jsx(U.Provider, {
1023
+ value: so,
1024
+ children: /* @__PURE__ */ r.jsx(to, {
945
1025
  as: n,
946
- className: w(u.root, i),
947
- ref: a,
948
- role: n === Z ? null : "rowgroup",
1026
+ className: H(u.root, i),
1027
+ ref: s,
1028
+ role: n === oe ? null : "rowgroup",
949
1029
  ownerState: d,
950
1030
  ...p
951
1031
  })
952
1032
  });
953
1033
  });
954
- process.env.NODE_ENV !== "production" && (ie.propTypes = {
1034
+ process.env.NODE_ENV !== "production" && (le.propTypes = {
955
1035
  // ┌────────────────────────────── Warning ──────────────────────────────┐
956
1036
  // │ These PropTypes are generated from the TypeScript type definitions. │
957
1037
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -978,30 +1058,30 @@ process.env.NODE_ENV !== "production" && (ie.propTypes = {
978
1058
  */
979
1059
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
980
1060
  });
981
- function Ke(o) {
982
- return S("MuiTableRow", o);
1061
+ function ao(o) {
1062
+ return M("MuiTableRow", o);
983
1063
  }
984
- const ee = B("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), Qe = (o) => {
1064
+ const te = I("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), no = (o) => {
985
1065
  const {
986
1066
  classes: t,
987
- selected: a,
988
- hover: s,
1067
+ selected: s,
1068
+ hover: a,
989
1069
  head: i,
990
1070
  footer: n
991
1071
  } = o;
992
- return N({
993
- root: ["root", a && "selected", s && "hover", i && "head", n && "footer"]
994
- }, Ke, t);
995
- }, Xe = O("tr", {
1072
+ return z({
1073
+ root: ["root", s && "selected", a && "hover", i && "head", n && "footer"]
1074
+ }, ao, t);
1075
+ }, ro = S("tr", {
996
1076
  name: "MuiTableRow",
997
1077
  slot: "Root",
998
1078
  overridesResolver: (o, t) => {
999
1079
  const {
1000
- ownerState: a
1080
+ ownerState: s
1001
1081
  } = o;
1002
- return [t.root, a.head && t.head, a.footer && t.footer];
1082
+ return [t.root, s.head && t.head, s.footer && t.footer];
1003
1083
  }
1004
- })(U(({
1084
+ })(D(({
1005
1085
  theme: o
1006
1086
  }) => ({
1007
1087
  color: "inherit",
@@ -1009,43 +1089,43 @@ const ee = B("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), Qe
1009
1089
  verticalAlign: "middle",
1010
1090
  // We disable the focus ring for mouse, touch and keyboard users.
1011
1091
  outline: 0,
1012
- [`&.${ee.hover}:hover`]: {
1092
+ [`&.${te.hover}:hover`]: {
1013
1093
  backgroundColor: (o.vars || o).palette.action.hover
1014
1094
  },
1015
- [`&.${ee.selected}`]: {
1016
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : $(o.palette.primary.main, o.palette.action.selectedOpacity),
1095
+ [`&.${te.selected}`]: {
1096
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})` : B(o.palette.primary.main, o.palette.action.selectedOpacity),
1017
1097
  "&:hover": {
1018
- backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))` : $(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.hoverOpacity)
1098
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))` : B(o.palette.primary.main, o.palette.action.selectedOpacity + o.palette.action.hoverOpacity)
1019
1099
  }
1020
1100
  }
1021
- }))), oe = "tr", F = /* @__PURE__ */ g.forwardRef(function(t, a) {
1022
- const s = H({
1101
+ }))), se = "tr", _ = /* @__PURE__ */ h.forwardRef(function(t, s) {
1102
+ const a = E({
1023
1103
  props: t,
1024
1104
  name: "MuiTableRow"
1025
1105
  }), {
1026
1106
  className: i,
1027
- component: n = oe,
1107
+ component: n = se,
1028
1108
  hover: p = !1,
1029
1109
  selected: d = !1,
1030
1110
  ...u
1031
- } = s, b = g.useContext(M), l = {
1032
- ...s,
1111
+ } = a, y = h.useContext(U), l = {
1112
+ ...a,
1033
1113
  component: n,
1034
1114
  hover: p,
1035
1115
  selected: d,
1036
- head: b && b.variant === "head",
1037
- footer: b && b.variant === "footer"
1038
- }, h = Qe(l);
1039
- return /* @__PURE__ */ r.jsx(Xe, {
1116
+ head: y && y.variant === "head",
1117
+ footer: y && y.variant === "footer"
1118
+ }, x = no(l);
1119
+ return /* @__PURE__ */ r.jsx(ro, {
1040
1120
  as: n,
1041
- ref: a,
1042
- className: w(h.root, i),
1043
- role: n === oe ? null : "row",
1121
+ ref: s,
1122
+ className: H(x.root, i),
1123
+ role: n === se ? null : "row",
1044
1124
  ownerState: l,
1045
1125
  ...u
1046
1126
  });
1047
1127
  });
1048
- process.env.NODE_ENV !== "production" && (F.propTypes = {
1128
+ process.env.NODE_ENV !== "production" && (_.propTypes = {
1049
1129
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1050
1130
  // │ These PropTypes are generated from the TypeScript type definitions. │
1051
1131
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1082,25 +1162,25 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
1082
1162
  */
1083
1163
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1084
1164
  });
1085
- function po({
1165
+ function To({
1086
1166
  columns: o,
1087
1167
  hideHead: t,
1088
- hover: a,
1089
- onClick: s,
1168
+ hover: s,
1169
+ onClick: a,
1090
1170
  onDeselectAll: i,
1091
1171
  onDeselectOne: n,
1092
1172
  onSelectOne: p,
1093
1173
  onSelectAll: d,
1094
1174
  rows: u,
1095
- selectable: b,
1175
+ selectable: y,
1096
1176
  selected: l,
1097
- uniqueRowId: h,
1098
- ...T
1177
+ uniqueRowId: x,
1178
+ ...O
1099
1179
  }) {
1100
- const m = ((l == null ? void 0 : l.size) ?? 0) > 0 && ((l == null ? void 0 : l.size) ?? 0) < u.length, x = u.length > 0 && (l == null ? void 0 : l.size) === u.length;
1101
- return /* @__PURE__ */ r.jsxs(ne, { ...T, sx: { mt: 1 }, children: [
1180
+ const g = ((l == null ? void 0 : l.size) ?? 0) > 0 && ((l == null ? void 0 : l.size) ?? 0) < u.length, T = u.length > 0 && (l == null ? void 0 : l.size) === u.length;
1181
+ return /* @__PURE__ */ r.jsxs(re, { ...O, sx: { mt: 1 }, children: [
1102
1182
  /* @__PURE__ */ r.jsx(
1103
- ie,
1183
+ le,
1104
1184
  {
1105
1185
  sx: {
1106
1186
  ...t && {
@@ -1108,20 +1188,20 @@ function po({
1108
1188
  "--TableCell-borderWidth": 0
1109
1189
  }
1110
1190
  },
1111
- children: /* @__PURE__ */ r.jsxs(F, { children: [
1112
- b ? /* @__PURE__ */ r.jsx(z, { padding: "checkbox", sx: { width: "40px", minWidth: "40px", maxWidth: "40px" }, children: /* @__PURE__ */ r.jsx(
1113
- W,
1191
+ children: /* @__PURE__ */ r.jsxs(_, { children: [
1192
+ y ? /* @__PURE__ */ r.jsx($, { padding: "checkbox", sx: { width: "40px", minWidth: "40px", maxWidth: "40px" }, children: /* @__PURE__ */ r.jsx(
1193
+ q,
1114
1194
  {
1115
- checked: x,
1116
- indeterminate: m,
1195
+ checked: T,
1196
+ indeterminate: g,
1117
1197
  onChange: (c) => {
1118
- x ? i == null || i(c) : d == null || d(c);
1198
+ T ? i == null || i(c) : d == null || d(c);
1119
1199
  }
1120
1200
  }
1121
1201
  ) }) : null,
1122
1202
  o.map(
1123
1203
  (c) => /* @__PURE__ */ r.jsx(
1124
- z,
1204
+ $,
1125
1205
  {
1126
1206
  sx: {
1127
1207
  width: c.width,
@@ -1131,48 +1211,48 @@ function po({
1131
1211
  },
1132
1212
  children: c.hideName ? null : c.name
1133
1213
  },
1134
- c.name ?? be()
1214
+ c.name ?? Te()
1135
1215
  )
1136
1216
  )
1137
1217
  ] })
1138
1218
  }
1139
1219
  ),
1140
- /* @__PURE__ */ r.jsx(re, { children: u.length ? u.map((c, v) => {
1141
- const y = c.id ? c.id : h == null ? void 0 : h(c), k = y ? l == null ? void 0 : l.has(y) : !1;
1220
+ /* @__PURE__ */ r.jsx(ie, { children: u.length ? u.map((c, v) => {
1221
+ const m = c.id ? c.id : x == null ? void 0 : x(c), C = m ? l == null ? void 0 : l.has(m) : !1;
1142
1222
  return /* @__PURE__ */ r.jsxs(
1143
- F,
1223
+ _,
1144
1224
  {
1145
- hover: a,
1146
- selected: k,
1147
- ...s && {
1225
+ hover: s,
1226
+ selected: C,
1227
+ ...a && {
1148
1228
  onClick: (f) => {
1149
- s(f, c);
1229
+ a(f, c);
1150
1230
  }
1151
1231
  },
1152
- sx: { ...s && { cursor: "pointer" } },
1232
+ sx: { ...a && { cursor: "pointer" } },
1153
1233
  children: [
1154
- b ? /* @__PURE__ */ r.jsx(z, { padding: "checkbox", children: /* @__PURE__ */ r.jsx(
1155
- W,
1234
+ y ? /* @__PURE__ */ r.jsx($, { padding: "checkbox", children: /* @__PURE__ */ r.jsx(
1235
+ q,
1156
1236
  {
1157
- checked: y ? k : !1,
1237
+ checked: m ? C : !1,
1158
1238
  onChange: (f) => {
1159
- k ? n == null || n(f, c) : p == null || p(f, c);
1239
+ C ? n == null || n(f, c) : p == null || p(f, c);
1160
1240
  },
1161
1241
  onClick: (f) => {
1162
- s && f.stopPropagation();
1242
+ a && f.stopPropagation();
1163
1243
  }
1164
1244
  }
1165
1245
  ) }) : null,
1166
1246
  o.map(
1167
- (f) => /* @__PURE__ */ r.jsx(z, { sx: { ...f.align && { textAlign: f.align } }, children: f.formatter ? f.formatter(c, v) : f.field ? c[f.field] : null }, f.name)
1247
+ (f) => /* @__PURE__ */ r.jsx($, { sx: { ...f.align && { textAlign: f.align } }, children: f.formatter ? f.formatter(c, v) : f.field ? c[f.field] : null }, f.name)
1168
1248
  )
1169
1249
  ]
1170
1250
  },
1171
- y ?? v
1251
+ m ?? v
1172
1252
  );
1173
- }) : /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(z, { align: "center", colSpan: o.length, children: /* @__PURE__ */ r.jsx(ye, {}) }) }) })
1253
+ }) : /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx($, { align: "center", colSpan: o.length, children: /* @__PURE__ */ r.jsx(Ce, {}) }) }) })
1174
1254
  ] });
1175
1255
  }
1176
1256
  export {
1177
- po as default
1257
+ To as default
1178
1258
  };