@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.
- package/dist/AppAutocomplete/AppAutocomplete.js +1 -1
- package/dist/AppAvatar/AppAvatar.js +1 -1
- package/dist/AppBox/AppBox.js +1 -1
- package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +2 -2
- package/dist/AppButton/AppButton.js +1 -1
- package/dist/AppButtonLink/AppButtonLink.js +1 -1
- package/dist/AppCard/AppCard.js +1 -1
- package/dist/AppCardActions/AppCardActions.js +1 -1
- package/dist/AppCardContent/AppCardContent.js +1 -1
- package/dist/AppCardHeader/AppCardHeader.js +1 -1
- package/dist/AppCheckbox/AppCheckbox.js +1 -1
- package/dist/AppChip/AppChip.js +4 -4
- package/dist/AppChips/AppChips.js +1 -1
- package/dist/AppDataTable/AppDataTable.js +403 -323
- package/dist/AppDialog/AppDialog.js +2 -2
- package/dist/AppDialogConfirm/AppDialogConfirm.js +3 -3
- package/dist/AppDialogMessage/AppDialogMessage.js +3 -3
- package/dist/AppEmpty/AppEmpty.js +1 -1
- package/dist/AppError/AppError.js +1 -1
- package/dist/AppFileDropzone/AppFileDropzone.js +21 -21
- package/dist/AppFileIcon/AppFileIcon.js +2 -2
- package/dist/AppFormControl/AppFormControl.js +1 -1
- package/dist/AppGallery/AppGallery.js +1060 -1064
- package/dist/AppI18nProvider/AppI18nProvider.js +1 -1
- package/dist/AppIconButton/AppIconButton.js +1 -1
- package/dist/AppIcons/AppIcons.js +185 -185
- package/dist/AppLabel/AppLabel.js +1 -1
- package/dist/AppLink/AppLink.js +1 -1
- package/dist/AppMultiSelect/AppMultiSelect.js +4 -4
- package/dist/AppNoData/AppNoData.js +1 -1
- package/dist/AppNoSsr/AppNoSsr.js +1 -1
- package/dist/AppOption/AppOption.js +2 -2
- package/dist/AppPagination/AppPagination.js +1 -1
- package/dist/AppRating/AppRating.d.ts +1 -1
- package/dist/AppRating/AppRating.js +4 -5
- package/dist/AppSelect/AppSelect.js +2 -2
- package/dist/AppSkeleton/AppSkeleton.js +1 -1
- package/dist/AppSnackbarMessage/AppSnackbarMessage.js +1 -1
- package/dist/AppStack/AppStack.js +1 -1
- package/dist/AppTextEditor/AppTextEditor.js +2 -2
- package/dist/AppTextEditor/TextEditorToolbar.js +1652 -1316
- package/dist/AppTextTruncation/AppTextTruncation.js +1 -1
- package/dist/AppThemeProvider/AppThemeProvider.js +4 -4
- package/dist/AppTip/AppTip.js +4 -4
- package/dist/{Box-yxuKPTCX.js → Box-MNdIcw0w.js} +7 -7
- package/dist/{ButtonBase-p_uz8ITC.js → ButtonBase-D7WZejV5.js} +238 -225
- package/dist/{CaretDown-CgrRY9__.js → CaretDown-CZu0drmJ.js} +6 -6
- package/dist/{DefaultPropsProvider-BV4t9fEW.js → DefaultPropsProvider-Cw67t9bx.js} +2 -2
- package/dist/{Lightbulb-1rDyOsPk.js → Lightbulb-BLT-jnYA.js} +5 -5
- package/dist/{Menu-B0R91i07.js → Menu-BymLGoMc.js} +1154 -1209
- package/dist/{MenuItem-BjjYkRmW.js → MenuItem-l3xZOND-.js} +14 -14
- package/dist/SForm/SForm.d.ts +9 -0
- package/dist/SForm/SForm.js +10 -0
- package/dist/SForm/index.d.ts +1 -0
- package/dist/SForm/index.js +4 -0
- package/dist/{SSRBase-B9xq2wUG.js → SSRBase-BSdFRe_j.js} +11 -11
- package/dist/STextField/STextField.d.ts +11 -0
- package/dist/STextField/STextField.js +28 -0
- package/dist/STextField/index.d.ts +1 -0
- package/dist/STextField/index.js +4 -0
- package/dist/STextField/package.json +5 -0
- package/dist/{Stack-D9qNbbkC.js → Stack-CxKx2YGj.js} +11 -11
- package/dist/{Typography-BYkXNa-U.js → Typography-QQx_YSAW.js} +9 -9
- package/dist/{User-Bx-HYRxI.js → User-X5-swnIn.js} +9 -9
- package/dist/{X-DETrowOy.js → X-Cw1SQcRJ.js} +9 -9
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/assets/AppGallery.css +1 -1
- package/dist/clsx-DfguY6FT.js +232 -0
- package/dist/createTheme-dX0MILsf.js +2899 -0
- package/dist/{extendSxProp-CKQgGYDd.js → extendSxProp-CTBBOYHX.js} +3 -3
- package/dist/{index-Btrukby7.js → index-f-gkJ93Q.js} +11 -11
- package/dist/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +28 -28
- package/dist/memoTheme-DOlCkXD8.js +223 -0
- package/dist/outlinedInputClasses-rXE3T3sa.js +13 -0
- package/dist/styles/theme/color-schemes.js +61 -109
- package/dist/styles/theme/components/autocomplete.js +1 -1
- package/dist/styles/theme/components/avatar.js +2 -2
- package/dist/styles/theme/components/button.d.ts +12 -36
- package/dist/styles/theme/components/button.js +3 -3
- package/dist/styles/theme/components/card.d.ts +3 -965
- package/dist/styles/theme/components/checkbox.js +1 -1
- package/dist/styles/theme/components/chip.d.ts +3 -1067
- package/dist/styles/theme/components/chip.js +23 -67
- package/dist/styles/theme/components/components.d.ts +18 -2074
- package/dist/styles/theme/components/components.js +24 -26
- package/dist/styles/theme/components/outlined-input.js +1 -1
- package/dist/styles/theme/components/radio.js +1 -1
- package/dist/styles/theme/components/select.js +2 -2
- package/dist/styles/theme/components/table-pagination.js +2 -2
- package/dist/styles/theme/components/tabs.js +1 -1
- package/dist/styles/theme/shadows.d.ts +3 -4
- package/dist/{useControlled-CYUofcJ9.js → useControlled-DyL3m721.js} +53 -53
- package/dist/useSlot-Tj9CW-Xc.js +184 -0
- package/dist/{useTheme-DYc4rgBb.js → useTheme-CNZ6Hnpo.js} +1 -1
- package/dist/utils/dayjs.js +89 -83
- package/package.json +2 -2
- package/dist/AppOutlinedInput/AppOutlinedInput.d.ts +0 -10
- package/dist/AppOutlinedInput/AppOutlinedInput.js +0 -40
- package/dist/AppOutlinedInput/index.d.ts +0 -1
- package/dist/AppOutlinedInput/index.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/clsx-C-FXfxyk.js +0 -236
- package/dist/createTheme-C97xvI-s.js +0 -2789
- package/dist/jsx-runtime-B6kdoens.js +0 -634
- package/dist/memoTheme-B2qvAi64.js +0 -404
- package/dist/outlinedInputClasses-R7dmh7eW.js +0 -13
- package/dist/styles/theme/components/timeline-connector.d.ts +0 -7
- package/dist/styles/theme/components/timeline-connector.js +0 -6
- /package/dist/{AppOutlinedInput → SForm}/package.json +0 -0
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { j as r } from "../jsx-runtime-
|
|
2
|
-
import { v4 as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import { s as
|
|
8
|
-
import { a as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
18
|
-
const
|
|
18
|
+
I("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
19
|
+
const Be = (o) => {
|
|
19
20
|
const {
|
|
20
21
|
classes: t,
|
|
21
|
-
checked:
|
|
22
|
-
disabled:
|
|
22
|
+
checked: s,
|
|
23
|
+
disabled: a,
|
|
23
24
|
edge: i
|
|
24
25
|
} = o, n = {
|
|
25
|
-
root: ["root",
|
|
26
|
+
root: ["root", s && "checked", a && "disabled", i && `edge${j(i)}`],
|
|
26
27
|
input: ["input"]
|
|
27
28
|
};
|
|
28
|
-
return
|
|
29
|
-
},
|
|
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
|
-
}),
|
|
66
|
-
shouldForwardProp:
|
|
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
|
-
}),
|
|
79
|
+
}), ne = /* @__PURE__ */ h.forwardRef(function(t, s) {
|
|
79
80
|
const {
|
|
80
|
-
autoFocus:
|
|
81
|
+
autoFocus: a,
|
|
81
82
|
checked: i,
|
|
82
83
|
checkedIcon: n,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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: !!
|
|
106
|
+
default: !!p,
|
|
105
107
|
name: "SwitchBase",
|
|
106
108
|
state: "checked"
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
if (
|
|
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
|
|
115
|
-
|
|
116
|
+
const k = b.target.checked;
|
|
117
|
+
ue(k), v && v(b, k);
|
|
116
118
|
};
|
|
117
|
-
let
|
|
118
|
-
|
|
119
|
-
const
|
|
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:
|
|
122
|
-
disabled:
|
|
123
|
-
disableFocusRipple:
|
|
124
|
-
edge:
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
158
|
-
|
|
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" && (
|
|
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:
|
|
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
|
|
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"),
|
|
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"),
|
|
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
|
|
272
|
-
return
|
|
324
|
+
function Ue(o) {
|
|
325
|
+
return M("MuiCheckbox", o);
|
|
273
326
|
}
|
|
274
|
-
const
|
|
327
|
+
const A = I("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Ve = (o) => {
|
|
275
328
|
const {
|
|
276
329
|
classes: t,
|
|
277
|
-
indeterminate:
|
|
278
|
-
color:
|
|
330
|
+
indeterminate: s,
|
|
331
|
+
color: a,
|
|
279
332
|
size: i
|
|
280
333
|
} = o, n = {
|
|
281
|
-
root: ["root",
|
|
282
|
-
}, p =
|
|
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
|
-
},
|
|
289
|
-
shouldForwardProp: (o) =>
|
|
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:
|
|
347
|
+
ownerState: s
|
|
295
348
|
} = o;
|
|
296
|
-
return [t.root,
|
|
349
|
+
return [t.root, s.indeterminate && t.indeterminate, t[`size${j(s.size)}`], s.color !== "default" && t[`color${j(s.color)}`]];
|
|
297
350
|
}
|
|
298
|
-
})(
|
|
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})` :
|
|
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(
|
|
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})` :
|
|
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(
|
|
375
|
+
})), ...Object.entries(o.palette).filter(Y()).map(([t]) => ({
|
|
323
376
|
props: {
|
|
324
377
|
color: t
|
|
325
378
|
},
|
|
326
379
|
style: {
|
|
327
|
-
[`&.${
|
|
380
|
+
[`&.${A.checked}, &.${A.indeterminate}`]: {
|
|
328
381
|
color: (o.vars || o).palette[t].main
|
|
329
382
|
},
|
|
330
|
-
[`&.${
|
|
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
|
-
}))),
|
|
349
|
-
const
|
|
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 =
|
|
406
|
+
checkedIcon: i = De,
|
|
354
407
|
color: n = "primary",
|
|
355
|
-
icon: p =
|
|
408
|
+
icon: p = We,
|
|
356
409
|
indeterminate: d = !1,
|
|
357
|
-
indeterminateIcon: u =
|
|
358
|
-
inputProps:
|
|
410
|
+
indeterminateIcon: u = Ae,
|
|
411
|
+
inputProps: y,
|
|
359
412
|
size: l = "medium",
|
|
360
|
-
disableRipple:
|
|
361
|
-
className:
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
...
|
|
365
|
-
|
|
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 =
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
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
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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" && (
|
|
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
|
|
492
|
-
process.env.NODE_ENV !== "production" && (
|
|
493
|
-
function
|
|
494
|
-
return
|
|
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
|
-
|
|
497
|
-
const
|
|
576
|
+
I("MuiTable", ["root", "stickyHeader"]);
|
|
577
|
+
const qe = (o) => {
|
|
498
578
|
const {
|
|
499
579
|
classes: t,
|
|
500
|
-
stickyHeader:
|
|
580
|
+
stickyHeader: s
|
|
501
581
|
} = o;
|
|
502
|
-
return
|
|
503
|
-
root: ["root",
|
|
504
|
-
},
|
|
505
|
-
},
|
|
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:
|
|
590
|
+
ownerState: s
|
|
511
591
|
} = o;
|
|
512
|
-
return [t.root,
|
|
592
|
+
return [t.root, s.stickyHeader && t.stickyHeader];
|
|
513
593
|
}
|
|
514
|
-
})(
|
|
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
|
-
}))),
|
|
537
|
-
const
|
|
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 =
|
|
622
|
+
component: n = Z,
|
|
543
623
|
padding: p = "normal",
|
|
544
624
|
size: d = "medium",
|
|
545
625
|
stickyHeader: u = !1,
|
|
546
|
-
...
|
|
547
|
-
} =
|
|
548
|
-
...
|
|
626
|
+
...y
|
|
627
|
+
} = a, l = {
|
|
628
|
+
...a,
|
|
549
629
|
component: n,
|
|
550
630
|
padding: p,
|
|
551
631
|
size: d,
|
|
552
632
|
stickyHeader: u
|
|
553
|
-
},
|
|
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(
|
|
559
|
-
value:
|
|
560
|
-
children: /* @__PURE__ */ r.jsx(
|
|
638
|
+
return /* @__PURE__ */ r.jsx(J.Provider, {
|
|
639
|
+
value: O,
|
|
640
|
+
children: /* @__PURE__ */ r.jsx(Ge, {
|
|
561
641
|
as: n,
|
|
562
|
-
role: n ===
|
|
563
|
-
ref:
|
|
564
|
-
className:
|
|
642
|
+
role: n === Z ? null : "table",
|
|
643
|
+
ref: s,
|
|
644
|
+
className: H(x.root, i),
|
|
565
645
|
ownerState: l,
|
|
566
|
-
...
|
|
646
|
+
...y
|
|
567
647
|
})
|
|
568
648
|
});
|
|
569
649
|
});
|
|
570
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
613
|
-
process.env.NODE_ENV !== "production" && (
|
|
614
|
-
function
|
|
615
|
-
return
|
|
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
|
-
|
|
618
|
-
const
|
|
697
|
+
I("MuiTableBody", ["root"]);
|
|
698
|
+
const Ke = (o) => {
|
|
619
699
|
const {
|
|
620
700
|
classes: t
|
|
621
701
|
} = o;
|
|
622
|
-
return
|
|
702
|
+
return z({
|
|
623
703
|
root: ["root"]
|
|
624
|
-
},
|
|
625
|
-
},
|
|
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
|
-
}),
|
|
711
|
+
}), Xe = {
|
|
632
712
|
variant: "body"
|
|
633
|
-
},
|
|
634
|
-
const
|
|
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 =
|
|
719
|
+
component: n = ee,
|
|
640
720
|
...p
|
|
641
|
-
} =
|
|
642
|
-
...
|
|
721
|
+
} = a, d = {
|
|
722
|
+
...a,
|
|
643
723
|
component: n
|
|
644
|
-
}, u =
|
|
645
|
-
return /* @__PURE__ */ r.jsx(
|
|
646
|
-
value:
|
|
647
|
-
children: /* @__PURE__ */ r.jsx(
|
|
648
|
-
className:
|
|
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:
|
|
651
|
-
role: n ===
|
|
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" && (
|
|
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
|
|
764
|
+
const Ye = (o) => {
|
|
685
765
|
const {
|
|
686
766
|
classes: t,
|
|
687
|
-
variant:
|
|
688
|
-
align:
|
|
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",
|
|
773
|
+
root: ["root", s, p && "stickyHeader", a !== "inherit" && `align${j(a)}`, i !== "normal" && `padding${j(i)}`, `size${j(n)}`]
|
|
694
774
|
};
|
|
695
|
-
return
|
|
696
|
-
},
|
|
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:
|
|
781
|
+
ownerState: s
|
|
702
782
|
} = o;
|
|
703
|
-
return [t.root, t[
|
|
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
|
-
})(
|
|
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" ?
|
|
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
|
-
[`&.${
|
|
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
|
-
}))),
|
|
814
|
-
const
|
|
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:
|
|
903
|
+
size: y,
|
|
824
904
|
sortDirection: l,
|
|
825
|
-
variant:
|
|
826
|
-
...
|
|
827
|
-
} =
|
|
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
|
|
831
|
-
v === "td" ?
|
|
832
|
-
const
|
|
833
|
-
...
|
|
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 || (
|
|
837
|
-
size:
|
|
916
|
+
padding: d || (g && g.padding ? g.padding : "normal"),
|
|
917
|
+
size: y || (g && g.size ? g.size : "medium"),
|
|
838
918
|
sortDirection: l,
|
|
839
|
-
stickyHeader:
|
|
840
|
-
variant:
|
|
841
|
-
},
|
|
842
|
-
let
|
|
843
|
-
return l && (
|
|
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:
|
|
846
|
-
className:
|
|
847
|
-
"aria-sort":
|
|
848
|
-
scope:
|
|
925
|
+
ref: s,
|
|
926
|
+
className: H(N.root, n),
|
|
927
|
+
"aria-sort": R,
|
|
928
|
+
scope: m,
|
|
849
929
|
ownerState: f,
|
|
850
|
-
...
|
|
930
|
+
...O
|
|
851
931
|
});
|
|
852
932
|
});
|
|
853
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
912
|
-
return
|
|
991
|
+
function eo(o) {
|
|
992
|
+
return M("MuiTableHead", o);
|
|
913
993
|
}
|
|
914
|
-
|
|
915
|
-
const
|
|
994
|
+
I("MuiTableHead", ["root"]);
|
|
995
|
+
const oo = (o) => {
|
|
916
996
|
const {
|
|
917
997
|
classes: t
|
|
918
998
|
} = o;
|
|
919
|
-
return
|
|
999
|
+
return z({
|
|
920
1000
|
root: ["root"]
|
|
921
|
-
},
|
|
922
|
-
},
|
|
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
|
-
}),
|
|
1008
|
+
}), so = {
|
|
929
1009
|
variant: "head"
|
|
930
|
-
},
|
|
931
|
-
const
|
|
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 =
|
|
1016
|
+
component: n = oe,
|
|
937
1017
|
...p
|
|
938
|
-
} =
|
|
939
|
-
...
|
|
1018
|
+
} = a, d = {
|
|
1019
|
+
...a,
|
|
940
1020
|
component: n
|
|
941
|
-
}, u =
|
|
942
|
-
return /* @__PURE__ */ r.jsx(
|
|
943
|
-
value:
|
|
944
|
-
children: /* @__PURE__ */ r.jsx(
|
|
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:
|
|
947
|
-
ref:
|
|
948
|
-
role: n ===
|
|
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" && (
|
|
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
|
|
982
|
-
return
|
|
1061
|
+
function ao(o) {
|
|
1062
|
+
return M("MuiTableRow", o);
|
|
983
1063
|
}
|
|
984
|
-
const
|
|
1064
|
+
const te = I("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), no = (o) => {
|
|
985
1065
|
const {
|
|
986
1066
|
classes: t,
|
|
987
|
-
selected:
|
|
988
|
-
hover:
|
|
1067
|
+
selected: s,
|
|
1068
|
+
hover: a,
|
|
989
1069
|
head: i,
|
|
990
1070
|
footer: n
|
|
991
1071
|
} = o;
|
|
992
|
-
return
|
|
993
|
-
root: ["root",
|
|
994
|
-
},
|
|
995
|
-
},
|
|
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:
|
|
1080
|
+
ownerState: s
|
|
1001
1081
|
} = o;
|
|
1002
|
-
return [t.root,
|
|
1082
|
+
return [t.root, s.head && t.head, s.footer && t.footer];
|
|
1003
1083
|
}
|
|
1004
|
-
})(
|
|
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
|
-
[`&.${
|
|
1092
|
+
[`&.${te.hover}:hover`]: {
|
|
1013
1093
|
backgroundColor: (o.vars || o).palette.action.hover
|
|
1014
1094
|
},
|
|
1015
|
-
[`&.${
|
|
1016
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.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}))` :
|
|
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
|
-
}))),
|
|
1022
|
-
const
|
|
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 =
|
|
1107
|
+
component: n = se,
|
|
1028
1108
|
hover: p = !1,
|
|
1029
1109
|
selected: d = !1,
|
|
1030
1110
|
...u
|
|
1031
|
-
} =
|
|
1032
|
-
...
|
|
1111
|
+
} = a, y = h.useContext(U), l = {
|
|
1112
|
+
...a,
|
|
1033
1113
|
component: n,
|
|
1034
1114
|
hover: p,
|
|
1035
1115
|
selected: d,
|
|
1036
|
-
head:
|
|
1037
|
-
footer:
|
|
1038
|
-
},
|
|
1039
|
-
return /* @__PURE__ */ r.jsx(
|
|
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:
|
|
1042
|
-
className:
|
|
1043
|
-
role: n ===
|
|
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" && (
|
|
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
|
|
1165
|
+
function To({
|
|
1086
1166
|
columns: o,
|
|
1087
1167
|
hideHead: t,
|
|
1088
|
-
hover:
|
|
1089
|
-
onClick:
|
|
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:
|
|
1175
|
+
selectable: y,
|
|
1096
1176
|
selected: l,
|
|
1097
|
-
uniqueRowId:
|
|
1098
|
-
...
|
|
1177
|
+
uniqueRowId: x,
|
|
1178
|
+
...O
|
|
1099
1179
|
}) {
|
|
1100
|
-
const
|
|
1101
|
-
return /* @__PURE__ */ r.jsxs(
|
|
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
|
-
|
|
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(
|
|
1112
|
-
|
|
1113
|
-
|
|
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:
|
|
1116
|
-
indeterminate:
|
|
1195
|
+
checked: T,
|
|
1196
|
+
indeterminate: g,
|
|
1117
1197
|
onChange: (c) => {
|
|
1118
|
-
|
|
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
|
-
|
|
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 ??
|
|
1214
|
+
c.name ?? Te()
|
|
1135
1215
|
)
|
|
1136
1216
|
)
|
|
1137
1217
|
] })
|
|
1138
1218
|
}
|
|
1139
1219
|
),
|
|
1140
|
-
/* @__PURE__ */ r.jsx(
|
|
1141
|
-
const
|
|
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
|
-
|
|
1223
|
+
_,
|
|
1144
1224
|
{
|
|
1145
|
-
hover:
|
|
1146
|
-
selected:
|
|
1147
|
-
...
|
|
1225
|
+
hover: s,
|
|
1226
|
+
selected: C,
|
|
1227
|
+
...a && {
|
|
1148
1228
|
onClick: (f) => {
|
|
1149
|
-
|
|
1229
|
+
a(f, c);
|
|
1150
1230
|
}
|
|
1151
1231
|
},
|
|
1152
|
-
sx: { ...
|
|
1232
|
+
sx: { ...a && { cursor: "pointer" } },
|
|
1153
1233
|
children: [
|
|
1154
|
-
|
|
1155
|
-
|
|
1234
|
+
y ? /* @__PURE__ */ r.jsx($, { padding: "checkbox", children: /* @__PURE__ */ r.jsx(
|
|
1235
|
+
q,
|
|
1156
1236
|
{
|
|
1157
|
-
checked:
|
|
1237
|
+
checked: m ? C : !1,
|
|
1158
1238
|
onChange: (f) => {
|
|
1159
|
-
|
|
1239
|
+
C ? n == null || n(f, c) : p == null || p(f, c);
|
|
1160
1240
|
},
|
|
1161
1241
|
onClick: (f) => {
|
|
1162
|
-
|
|
1242
|
+
a && f.stopPropagation();
|
|
1163
1243
|
}
|
|
1164
1244
|
}
|
|
1165
1245
|
) }) : null,
|
|
1166
1246
|
o.map(
|
|
1167
|
-
(f) => /* @__PURE__ */ r.jsx(
|
|
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
|
-
|
|
1251
|
+
m ?? v
|
|
1172
1252
|
);
|
|
1173
|
-
}) : /* @__PURE__ */ r.jsx(
|
|
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
|
-
|
|
1257
|
+
To as default
|
|
1178
1258
|
};
|