@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.
- package/dist/{Box-6v9dDzdR.js → Box-reWd7MO-.js} +16 -16
- package/dist/{Close-Cq0bfDqS.js → Close-CVFQMMUW.js} +2 -2
- package/dist/{HelpOutlineOutlined-CrsJM_1C.js → HelpOutlineOutlined-Dw_XSjYK.js} +2 -2
- package/dist/{Menu-C3Ku2lqS.js → Menu-CGTDGEoX.js} +23 -23
- package/dist/{MenuItem-ODcKB-fe.js → MenuItem-Bdna3McP.js} +84 -86
- package/dist/{Select-CukDtghB.js → Select-D54ugORZ.js} +473 -466
- package/dist/{Stack-DvJ0EY9Z.js → Stack-ISlVeD89.js} +23 -24
- package/dist/{TransitionGroup-D2o-MIVr.js → TransitionGroup-DuMpOHcM.js} +1 -1
- package/dist/{Typography-BnBI5JmA.js → Typography-D38zoHJr.js} +42 -44
- package/dist/{buttonBaseClasses-jvvoR1a5.js → buttonBaseClasses-CF7RfAgE.js} +2 -2
- package/dist/{chipClasses-DCs-mJQc.js → chipClasses-WFcUH6gU.js} +2 -2
- package/dist/chunk-5P46WS5M-OG9gpzOE.js +4862 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/createSvgIcon-DN-sh_sr.js +520 -0
- package/dist/createTheme-DuP3DZSF.js +3005 -0
- package/dist/defaultTheme-BDQAWvCM.js +55 -0
- package/dist/{extendSxProp-B_wB9j9Z.js → extendSxProp-KtEeHd8h.js} +1 -1
- package/dist/{generateUtilityClasses-DMkCz287.js → generateUtilityClasses-BpNk3DNr.js} +2 -2
- package/dist/{iconButtonClasses-FfLS-X2M.js → iconButtonClasses-DMst1jJO.js} +2 -2
- package/dist/identifier-BKLqN993.js +4 -0
- package/dist/{index-Bs0mGmsj.js → index-x815ub0T.js} +46 -40
- package/dist/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +13 -13
- package/dist/{outlinedInputClasses-rfxFh721.js → outlinedInputClasses-E4FwVkZh.js} +2 -2
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-button-link/s-button-link.js +1 -1
- package/dist/s-checkbox/s-checkbox.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +6 -6
- package/dist/s-data-table/s-data-table.js +271 -270
- package/dist/s-date-picker/s-date-picker.js +28 -30
- package/dist/s-datetime-picker/s-datetime-picker.js +655 -657
- package/dist/s-dialog/s-dialog.js +2 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -3
- package/dist/s-dialog-message/s-dialog-message.js +3 -3
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-error/s-error.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +5 -5
- package/dist/s-file-icon/s-file-icon.js +2 -2
- package/dist/s-form/s-form.js +2 -2
- package/dist/s-glow-button/s-glow-button.js +12 -11
- package/dist/s-gradient-icon/s-gradient-icon.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.js +1 -1
- package/dist/s-icon-button/s-icon-button.js +1 -1
- package/dist/s-label/s-label.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.js +196 -199
- package/dist/s-moving-border/s-moving-border.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +4 -4
- package/dist/s-no-ssr/s-no-ssr.js +1 -1
- package/dist/s-pagination/s-pagination.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-skeleton/s-skeleton.js +1 -1
- package/dist/s-smart-text-field/s-smart-text-field.js +4252 -4226
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/s-stripe/s-stripe.js +1 -1
- package/dist/s-stripe/stripe-input.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +5 -5
- package/dist/s-text-editor/s-text-editor.js +2 -2
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-truncation/s-text-truncation.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-tip/s-tip.js +4 -4
- package/dist/{tabClasses-PH6lKUvl.js → tabClasses-LXCeUS4i.js} +2 -2
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/customizations/data-display.js +8 -8
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +4 -4
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-ZiwLh_jE.js → typographyClasses-QAKcrTAX.js} +2 -2
- package/dist/{useMobilePicker-BzxyifzK.js → useMobilePicker-DlmTFHhN.js} +2811 -2789
- package/dist/{useSlot-C4SHe-Bx.js → useSlot-CiHsL61G.js} +134 -134
- package/dist/{useTheme-Bn9C3FUK.js → useTheme-Dy5JmnOe.js} +1 -1
- package/dist/{useThemeProps-BUFb1TtB.js → useThemeProps-BGjjVPlJ.js} +2 -2
- package/dist/utils/dayjs.js +14 -14
- package/dist/{warning-D7W5-6D5.js → warning-DWsjz4u6.js} +5 -5
- package/package.json +3 -3
- package/dist/chunk-GIMSRCVW-DUi-T6vz.js +0 -10072
- package/dist/createSvgIcon-BTLVR-ad.js +0 -504
- package/dist/createTheme-BlQh0eyI.js +0 -2268
- package/dist/defaultTheme-CkLTWyeE.js +0 -42
- package/dist/identifier-CGgVMHib.js +0 -18
- package/dist/index-5OJKu9qh.js +0 -667
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { j as r } from "../jsx-runtime-
|
|
1
|
+
import { j as r } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import
|
|
4
|
-
import { P as e } from "../
|
|
5
|
-
import { c as I } from "../
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function Se(o) {
|
|
13
|
-
return $("PrivateSwitchBase", o);
|
|
3
|
+
import ve from "../s-empty/s-empty.js";
|
|
4
|
+
import { g as N, c as j, P as e } from "../createTheme-DuP3DZSF.js";
|
|
5
|
+
import { a as S, d as B, r as se, c as q, u as $, b as I, m as _ } from "../createSvgIcon-DN-sh_sr.js";
|
|
6
|
+
import { g as M } from "../generateUtilityClasses-BpNk3DNr.js";
|
|
7
|
+
import { u as Te, a as Ce } from "../useFormControl-B3RPiDsz.js";
|
|
8
|
+
import { b as L, B as ke, r as je, m as we } from "../useSlot-CiHsL61G.js";
|
|
9
|
+
import { c as X } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
10
|
+
function Re(o) {
|
|
11
|
+
return N("PrivateSwitchBase", o);
|
|
14
12
|
}
|
|
15
|
-
|
|
16
|
-
const
|
|
13
|
+
M("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
14
|
+
const Oe = (o) => {
|
|
17
15
|
const {
|
|
18
16
|
classes: t,
|
|
19
|
-
checked:
|
|
20
|
-
disabled:
|
|
17
|
+
checked: s,
|
|
18
|
+
disabled: a,
|
|
21
19
|
edge: i
|
|
22
20
|
} = o, n = {
|
|
23
|
-
root: ["root",
|
|
21
|
+
root: ["root", s && "checked", a && "disabled", i && `edge${j(i)}`],
|
|
24
22
|
input: ["input"]
|
|
25
23
|
};
|
|
26
|
-
return
|
|
27
|
-
},
|
|
24
|
+
return B(n, Re, t);
|
|
25
|
+
}, Pe = S(ke, {
|
|
26
|
+
name: "MuiSwitchBase"
|
|
27
|
+
})({
|
|
28
28
|
padding: 9,
|
|
29
29
|
borderRadius: "50%",
|
|
30
30
|
variants: [{
|
|
@@ -60,7 +60,8 @@ const ze = (o) => {
|
|
|
60
60
|
marginRight: -12
|
|
61
61
|
}
|
|
62
62
|
}]
|
|
63
|
-
}),
|
|
63
|
+
}), Se = S("input", {
|
|
64
|
+
name: "MuiSwitchBase",
|
|
64
65
|
shouldForwardProp: se
|
|
65
66
|
})({
|
|
66
67
|
cursor: "inherit",
|
|
@@ -73,9 +74,9 @@ const ze = (o) => {
|
|
|
73
74
|
margin: 0,
|
|
74
75
|
padding: 0,
|
|
75
76
|
zIndex: 1
|
|
76
|
-
}),
|
|
77
|
+
}), ae = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
77
78
|
const {
|
|
78
|
-
autoFocus:
|
|
79
|
+
autoFocus: a,
|
|
79
80
|
checked: i,
|
|
80
81
|
checkedIcon: n,
|
|
81
82
|
defaultChecked: p,
|
|
@@ -84,115 +85,115 @@ const ze = (o) => {
|
|
|
84
85
|
edge: g = !1,
|
|
85
86
|
icon: l,
|
|
86
87
|
id: x,
|
|
87
|
-
inputProps:
|
|
88
|
-
inputRef:
|
|
89
|
-
name:
|
|
88
|
+
inputProps: w,
|
|
89
|
+
inputRef: h,
|
|
90
|
+
name: T,
|
|
90
91
|
onBlur: c,
|
|
91
92
|
onChange: v,
|
|
92
|
-
onFocus:
|
|
93
|
-
readOnly:
|
|
93
|
+
onFocus: m,
|
|
94
|
+
readOnly: C,
|
|
94
95
|
required: f = !1,
|
|
95
96
|
tabIndex: z,
|
|
96
97
|
type: R,
|
|
97
|
-
value:
|
|
98
|
-
slots:
|
|
99
|
-
slotProps:
|
|
100
|
-
...
|
|
101
|
-
} = t, [
|
|
98
|
+
value: U,
|
|
99
|
+
slots: le = {},
|
|
100
|
+
slotProps: ce = {},
|
|
101
|
+
...pe
|
|
102
|
+
} = t, [G, de] = Te({
|
|
102
103
|
controlled: i,
|
|
103
104
|
default: !!p,
|
|
104
105
|
name: "SwitchBase",
|
|
105
106
|
state: "checked"
|
|
106
|
-
}),
|
|
107
|
-
|
|
107
|
+
}), O = Ce(), ue = (b) => {
|
|
108
|
+
m && m(b), O && O.onFocus && O.onFocus(b);
|
|
109
|
+
}, fe = (b) => {
|
|
110
|
+
c && c(b), O && O.onBlur && O.onBlur(b);
|
|
108
111
|
}, be = (b) => {
|
|
109
|
-
c && c(b), w && w.onBlur && w.onBlur(b);
|
|
110
|
-
}, ye = (b) => {
|
|
111
112
|
if (b.nativeEvent.defaultPrevented)
|
|
112
113
|
return;
|
|
113
114
|
const k = b.target.checked;
|
|
114
|
-
|
|
115
|
+
de(k), v && v(b, k);
|
|
115
116
|
};
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
const
|
|
117
|
+
let E = d;
|
|
118
|
+
O && typeof E > "u" && (E = O.disabled);
|
|
119
|
+
const ye = R === "checkbox" || R === "radio", W = {
|
|
119
120
|
...t,
|
|
120
|
-
checked:
|
|
121
|
-
disabled:
|
|
121
|
+
checked: G,
|
|
122
|
+
disabled: E,
|
|
122
123
|
disableFocusRipple: u,
|
|
123
124
|
edge: g
|
|
124
|
-
},
|
|
125
|
-
slots:
|
|
125
|
+
}, K = Oe(W), Q = {
|
|
126
|
+
slots: le,
|
|
126
127
|
slotProps: {
|
|
127
|
-
input:
|
|
128
|
-
...
|
|
128
|
+
input: w,
|
|
129
|
+
...ce
|
|
129
130
|
}
|
|
130
|
-
}, [
|
|
131
|
-
ref:
|
|
132
|
-
elementType:
|
|
133
|
-
className:
|
|
131
|
+
}, [ge, he] = L("root", {
|
|
132
|
+
ref: s,
|
|
133
|
+
elementType: Pe,
|
|
134
|
+
className: K.root,
|
|
134
135
|
shouldForwardComponentProp: !0,
|
|
135
136
|
externalForwardedProps: {
|
|
136
|
-
...
|
|
137
|
+
...Q,
|
|
137
138
|
component: "span",
|
|
138
|
-
...
|
|
139
|
+
...pe
|
|
139
140
|
},
|
|
140
141
|
getSlotProps: (b) => ({
|
|
141
142
|
...b,
|
|
142
143
|
onFocus: (k) => {
|
|
143
144
|
var P;
|
|
144
|
-
(P = b.onFocus) == null || P.call(b, k),
|
|
145
|
+
(P = b.onFocus) == null || P.call(b, k), ue(k);
|
|
145
146
|
},
|
|
146
147
|
onBlur: (k) => {
|
|
147
148
|
var P;
|
|
148
|
-
(P = b.onBlur) == null || P.call(b, k),
|
|
149
|
+
(P = b.onBlur) == null || P.call(b, k), fe(k);
|
|
149
150
|
}
|
|
150
151
|
}),
|
|
151
|
-
ownerState:
|
|
152
|
+
ownerState: W,
|
|
152
153
|
additionalProps: {
|
|
153
154
|
centerRipple: !0,
|
|
154
155
|
focusRipple: !u,
|
|
155
|
-
disabled:
|
|
156
|
+
disabled: E,
|
|
156
157
|
role: void 0,
|
|
157
158
|
tabIndex: null
|
|
158
159
|
}
|
|
159
|
-
}), [
|
|
160
|
-
ref:
|
|
161
|
-
elementType:
|
|
162
|
-
className:
|
|
163
|
-
externalForwardedProps:
|
|
160
|
+
}), [me, xe] = L("input", {
|
|
161
|
+
ref: h,
|
|
162
|
+
elementType: Se,
|
|
163
|
+
className: K.input,
|
|
164
|
+
externalForwardedProps: Q,
|
|
164
165
|
getSlotProps: (b) => ({
|
|
165
166
|
...b,
|
|
166
167
|
onChange: (k) => {
|
|
167
168
|
var P;
|
|
168
|
-
(P = b.onChange) == null || P.call(b, k),
|
|
169
|
+
(P = b.onChange) == null || P.call(b, k), be(k);
|
|
169
170
|
}
|
|
170
171
|
}),
|
|
171
|
-
ownerState:
|
|
172
|
+
ownerState: W,
|
|
172
173
|
additionalProps: {
|
|
173
|
-
autoFocus:
|
|
174
|
+
autoFocus: a,
|
|
174
175
|
checked: i,
|
|
175
176
|
defaultChecked: p,
|
|
176
|
-
disabled:
|
|
177
|
-
id:
|
|
178
|
-
name:
|
|
179
|
-
readOnly:
|
|
177
|
+
disabled: E,
|
|
178
|
+
id: ye ? x : void 0,
|
|
179
|
+
name: T,
|
|
180
|
+
readOnly: C,
|
|
180
181
|
required: f,
|
|
181
182
|
tabIndex: z,
|
|
182
183
|
type: R,
|
|
183
|
-
...R === "checkbox" &&
|
|
184
|
-
value:
|
|
184
|
+
...R === "checkbox" && U === void 0 ? {} : {
|
|
185
|
+
value: U
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
});
|
|
188
|
-
return /* @__PURE__ */ r.jsxs(
|
|
189
|
+
return /* @__PURE__ */ r.jsxs(ge, {
|
|
189
190
|
...he,
|
|
190
|
-
children: [/* @__PURE__ */ r.jsx(
|
|
191
|
-
...
|
|
192
|
-
}),
|
|
191
|
+
children: [/* @__PURE__ */ r.jsx(me, {
|
|
192
|
+
...xe
|
|
193
|
+
}), G ? n : l]
|
|
193
194
|
});
|
|
194
195
|
});
|
|
195
|
-
process.env.NODE_ENV !== "production" && (
|
|
196
|
+
process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
196
197
|
/**
|
|
197
198
|
* If `true`, the `input` element is focused during the first mount.
|
|
198
199
|
*/
|
|
@@ -249,7 +250,7 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
249
250
|
/**
|
|
250
251
|
* Pass a ref to the `input` element.
|
|
251
252
|
*/
|
|
252
|
-
inputRef:
|
|
253
|
+
inputRef: je,
|
|
253
254
|
/*
|
|
254
255
|
* @ignore
|
|
255
256
|
*/
|
|
@@ -311,41 +312,41 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
311
312
|
*/
|
|
312
313
|
value: e.any
|
|
313
314
|
});
|
|
314
|
-
const
|
|
315
|
+
const ze = q(/* @__PURE__ */ r.jsx("path", {
|
|
315
316
|
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"
|
|
316
|
-
}), "CheckBoxOutlineBlank"),
|
|
317
|
+
}), "CheckBoxOutlineBlank"), Ne = q(/* @__PURE__ */ r.jsx("path", {
|
|
317
318
|
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"
|
|
318
|
-
}), "CheckBox"),
|
|
319
|
+
}), "CheckBox"), Be = q(/* @__PURE__ */ r.jsx("path", {
|
|
319
320
|
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"
|
|
320
321
|
}), "IndeterminateCheckBox");
|
|
321
|
-
function
|
|
322
|
-
return
|
|
322
|
+
function Me(o) {
|
|
323
|
+
return N("MuiCheckbox", o);
|
|
323
324
|
}
|
|
324
|
-
const
|
|
325
|
+
const D = M("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), He = (o) => {
|
|
325
326
|
const {
|
|
326
327
|
classes: t,
|
|
327
|
-
indeterminate:
|
|
328
|
-
color:
|
|
328
|
+
indeterminate: s,
|
|
329
|
+
color: a,
|
|
329
330
|
size: i
|
|
330
331
|
} = o, n = {
|
|
331
|
-
root: ["root",
|
|
332
|
-
}, p =
|
|
332
|
+
root: ["root", s && "indeterminate", `color${j(a)}`, `size${j(i)}`]
|
|
333
|
+
}, p = B(n, Me, t);
|
|
333
334
|
return {
|
|
334
335
|
...t,
|
|
335
336
|
// forward the disabled and checked classes to the SwitchBase
|
|
336
337
|
...p
|
|
337
338
|
};
|
|
338
|
-
},
|
|
339
|
+
}, $e = S(ae, {
|
|
339
340
|
shouldForwardProp: (o) => se(o) || o === "classes",
|
|
340
341
|
name: "MuiCheckbox",
|
|
341
342
|
slot: "Root",
|
|
342
343
|
overridesResolver: (o, t) => {
|
|
343
344
|
const {
|
|
344
|
-
ownerState:
|
|
345
|
+
ownerState: s
|
|
345
346
|
} = o;
|
|
346
|
-
return [t.root,
|
|
347
|
+
return [t.root, s.indeterminate && t.indeterminate, t[`size${j(s.size)}`], s.color !== "default" && t[`color${j(s.color)}`]];
|
|
347
348
|
}
|
|
348
|
-
})(
|
|
349
|
+
})(_(({
|
|
349
350
|
theme: o
|
|
350
351
|
}) => ({
|
|
351
352
|
color: (o.vars || o).palette.text.secondary,
|
|
@@ -356,28 +357,28 @@ const L = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
356
357
|
},
|
|
357
358
|
style: {
|
|
358
359
|
"&:hover": {
|
|
359
|
-
backgroundColor: o.
|
|
360
|
+
backgroundColor: o.alpha((o.vars || o).palette.action.active, (o.vars || o).palette.action.hoverOpacity)
|
|
360
361
|
}
|
|
361
362
|
}
|
|
362
|
-
}, ...Object.entries(o.palette).filter(
|
|
363
|
+
}, ...Object.entries(o.palette).filter(X()).map(([t]) => ({
|
|
363
364
|
props: {
|
|
364
365
|
color: t,
|
|
365
366
|
disableRipple: !1
|
|
366
367
|
},
|
|
367
368
|
style: {
|
|
368
369
|
"&:hover": {
|
|
369
|
-
backgroundColor: o.
|
|
370
|
+
backgroundColor: o.alpha((o.vars || o).palette[t].main, (o.vars || o).palette.action.hoverOpacity)
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
|
-
})), ...Object.entries(o.palette).filter(
|
|
373
|
+
})), ...Object.entries(o.palette).filter(X()).map(([t]) => ({
|
|
373
374
|
props: {
|
|
374
375
|
color: t
|
|
375
376
|
},
|
|
376
377
|
style: {
|
|
377
|
-
[`&.${
|
|
378
|
+
[`&.${D.checked}, &.${D.indeterminate}`]: {
|
|
378
379
|
color: (o.vars || o).palette[t].main
|
|
379
380
|
},
|
|
380
|
-
[`&.${
|
|
381
|
+
[`&.${D.disabled}`]: {
|
|
381
382
|
color: (o.vars || o).palette.action.disabled
|
|
382
383
|
}
|
|
383
384
|
}
|
|
@@ -395,63 +396,63 @@ const L = B("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
395
396
|
}
|
|
396
397
|
}
|
|
397
398
|
}]
|
|
398
|
-
}))),
|
|
399
|
-
const
|
|
399
|
+
}))), Ie = /* @__PURE__ */ r.jsx(Ne, {}), Ee = /* @__PURE__ */ r.jsx(ze, {}), Fe = /* @__PURE__ */ r.jsx(Be, {}), A = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
400
|
+
const a = $({
|
|
400
401
|
props: t,
|
|
401
402
|
name: "MuiCheckbox"
|
|
402
403
|
}), {
|
|
403
|
-
checkedIcon: i =
|
|
404
|
+
checkedIcon: i = Ie,
|
|
404
405
|
color: n = "primary",
|
|
405
|
-
icon: p =
|
|
406
|
+
icon: p = Ee,
|
|
406
407
|
indeterminate: d = !1,
|
|
407
|
-
indeterminateIcon: u =
|
|
408
|
+
indeterminateIcon: u = Fe,
|
|
408
409
|
inputProps: g,
|
|
409
410
|
size: l = "medium",
|
|
410
411
|
disableRipple: x = !1,
|
|
411
|
-
className:
|
|
412
|
-
slots:
|
|
413
|
-
slotProps:
|
|
412
|
+
className: w,
|
|
413
|
+
slots: h = {},
|
|
414
|
+
slotProps: T = {},
|
|
414
415
|
...c
|
|
415
|
-
} =
|
|
416
|
-
...
|
|
416
|
+
} = a, v = d ? u : p, m = d ? u : i, C = {
|
|
417
|
+
...a,
|
|
417
418
|
disableRipple: x,
|
|
418
419
|
color: n,
|
|
419
420
|
indeterminate: d,
|
|
420
421
|
size: l
|
|
421
|
-
}, f =
|
|
422
|
-
ref:
|
|
423
|
-
elementType:
|
|
424
|
-
className: I(f.root,
|
|
422
|
+
}, f = He(C), z = T.input ?? g, [R, U] = L("root", {
|
|
423
|
+
ref: s,
|
|
424
|
+
elementType: $e,
|
|
425
|
+
className: I(f.root, w),
|
|
425
426
|
shouldForwardComponentProp: !0,
|
|
426
427
|
externalForwardedProps: {
|
|
427
|
-
slots:
|
|
428
|
-
slotProps:
|
|
428
|
+
slots: h,
|
|
429
|
+
slotProps: T,
|
|
429
430
|
...c
|
|
430
431
|
},
|
|
431
|
-
ownerState:
|
|
432
|
+
ownerState: C,
|
|
432
433
|
additionalProps: {
|
|
433
434
|
type: "checkbox",
|
|
434
435
|
icon: /* @__PURE__ */ y.cloneElement(v, {
|
|
435
436
|
fontSize: v.props.fontSize ?? l
|
|
436
437
|
}),
|
|
437
|
-
checkedIcon: /* @__PURE__ */ y.cloneElement(
|
|
438
|
-
fontSize:
|
|
438
|
+
checkedIcon: /* @__PURE__ */ y.cloneElement(m, {
|
|
439
|
+
fontSize: m.props.fontSize ?? l
|
|
439
440
|
}),
|
|
440
441
|
disableRipple: x,
|
|
441
|
-
slots:
|
|
442
|
+
slots: h,
|
|
442
443
|
slotProps: {
|
|
443
|
-
input:
|
|
444
|
+
input: we(typeof z == "function" ? z(C) : z, {
|
|
444
445
|
"data-indeterminate": d
|
|
445
446
|
})
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
449
|
});
|
|
449
450
|
return /* @__PURE__ */ r.jsx(R, {
|
|
450
|
-
...
|
|
451
|
+
...U,
|
|
451
452
|
classes: f
|
|
452
453
|
});
|
|
453
454
|
});
|
|
454
|
-
process.env.NODE_ENV !== "production" && (
|
|
455
|
+
process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
455
456
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
456
457
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
457
458
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -565,30 +566,30 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
565
566
|
*/
|
|
566
567
|
value: e.any
|
|
567
568
|
});
|
|
568
|
-
const
|
|
569
|
-
process.env.NODE_ENV !== "production" && (
|
|
570
|
-
function
|
|
571
|
-
return
|
|
569
|
+
const J = /* @__PURE__ */ y.createContext();
|
|
570
|
+
process.env.NODE_ENV !== "production" && (J.displayName = "TableContext");
|
|
571
|
+
function Ue(o) {
|
|
572
|
+
return N("MuiTable", o);
|
|
572
573
|
}
|
|
573
|
-
|
|
574
|
-
const
|
|
574
|
+
M("MuiTable", ["root", "stickyHeader"]);
|
|
575
|
+
const Ve = (o) => {
|
|
575
576
|
const {
|
|
576
577
|
classes: t,
|
|
577
|
-
stickyHeader:
|
|
578
|
+
stickyHeader: s
|
|
578
579
|
} = o;
|
|
579
|
-
return
|
|
580
|
-
root: ["root",
|
|
581
|
-
},
|
|
582
|
-
},
|
|
580
|
+
return B({
|
|
581
|
+
root: ["root", s && "stickyHeader"]
|
|
582
|
+
}, Ue, t);
|
|
583
|
+
}, _e = S("table", {
|
|
583
584
|
name: "MuiTable",
|
|
584
585
|
slot: "Root",
|
|
585
586
|
overridesResolver: (o, t) => {
|
|
586
587
|
const {
|
|
587
|
-
ownerState:
|
|
588
|
+
ownerState: s
|
|
588
589
|
} = o;
|
|
589
|
-
return [t.root,
|
|
590
|
+
return [t.root, s.stickyHeader && t.stickyHeader];
|
|
590
591
|
}
|
|
591
|
-
})(
|
|
592
|
+
})(_(({
|
|
592
593
|
theme: o
|
|
593
594
|
}) => ({
|
|
594
595
|
display: "table",
|
|
@@ -610,41 +611,41 @@ const De = (o) => {
|
|
|
610
611
|
borderCollapse: "separate"
|
|
611
612
|
}
|
|
612
613
|
}]
|
|
613
|
-
}))),
|
|
614
|
-
const
|
|
614
|
+
}))), Y = "table", ne = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
615
|
+
const a = $({
|
|
615
616
|
props: t,
|
|
616
617
|
name: "MuiTable"
|
|
617
618
|
}), {
|
|
618
619
|
className: i,
|
|
619
|
-
component: n =
|
|
620
|
+
component: n = Y,
|
|
620
621
|
padding: p = "normal",
|
|
621
622
|
size: d = "medium",
|
|
622
623
|
stickyHeader: u = !1,
|
|
623
624
|
...g
|
|
624
|
-
} =
|
|
625
|
-
...
|
|
625
|
+
} = a, l = {
|
|
626
|
+
...a,
|
|
626
627
|
component: n,
|
|
627
628
|
padding: p,
|
|
628
629
|
size: d,
|
|
629
630
|
stickyHeader: u
|
|
630
|
-
}, x =
|
|
631
|
+
}, x = Ve(l), w = y.useMemo(() => ({
|
|
631
632
|
padding: p,
|
|
632
633
|
size: d,
|
|
633
634
|
stickyHeader: u
|
|
634
635
|
}), [p, d, u]);
|
|
635
|
-
return /* @__PURE__ */ r.jsx(
|
|
636
|
-
value:
|
|
637
|
-
children: /* @__PURE__ */ r.jsx(
|
|
636
|
+
return /* @__PURE__ */ r.jsx(J.Provider, {
|
|
637
|
+
value: w,
|
|
638
|
+
children: /* @__PURE__ */ r.jsx(_e, {
|
|
638
639
|
as: n,
|
|
639
|
-
role: n ===
|
|
640
|
-
ref:
|
|
640
|
+
role: n === Y ? null : "table",
|
|
641
|
+
ref: s,
|
|
641
642
|
className: I(x.root, i),
|
|
642
643
|
ownerState: l,
|
|
643
644
|
...g
|
|
644
645
|
})
|
|
645
646
|
});
|
|
646
647
|
});
|
|
647
|
-
process.env.NODE_ENV !== "production" && (
|
|
648
|
+
process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
648
649
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
649
650
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
650
651
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -686,51 +687,51 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
|
|
|
686
687
|
*/
|
|
687
688
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
688
689
|
});
|
|
689
|
-
const
|
|
690
|
-
process.env.NODE_ENV !== "production" && (
|
|
691
|
-
function
|
|
692
|
-
return
|
|
690
|
+
const F = /* @__PURE__ */ y.createContext();
|
|
691
|
+
process.env.NODE_ENV !== "production" && (F.displayName = "Tablelvl2Context");
|
|
692
|
+
function We(o) {
|
|
693
|
+
return N("MuiTableBody", o);
|
|
693
694
|
}
|
|
694
|
-
|
|
695
|
-
const
|
|
695
|
+
M("MuiTableBody", ["root"]);
|
|
696
|
+
const De = (o) => {
|
|
696
697
|
const {
|
|
697
698
|
classes: t
|
|
698
699
|
} = o;
|
|
699
|
-
return
|
|
700
|
+
return B({
|
|
700
701
|
root: ["root"]
|
|
701
|
-
},
|
|
702
|
-
},
|
|
702
|
+
}, We, t);
|
|
703
|
+
}, Le = S("tbody", {
|
|
703
704
|
name: "MuiTableBody",
|
|
704
705
|
slot: "Root"
|
|
705
706
|
})({
|
|
706
707
|
display: "table-row-group"
|
|
707
|
-
}),
|
|
708
|
+
}), Ae = {
|
|
708
709
|
variant: "body"
|
|
709
|
-
},
|
|
710
|
-
const
|
|
710
|
+
}, Z = "tbody", re = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
711
|
+
const a = $({
|
|
711
712
|
props: t,
|
|
712
713
|
name: "MuiTableBody"
|
|
713
714
|
}), {
|
|
714
715
|
className: i,
|
|
715
|
-
component: n =
|
|
716
|
+
component: n = Z,
|
|
716
717
|
...p
|
|
717
|
-
} =
|
|
718
|
-
...
|
|
718
|
+
} = a, d = {
|
|
719
|
+
...a,
|
|
719
720
|
component: n
|
|
720
|
-
}, u =
|
|
721
|
-
return /* @__PURE__ */ r.jsx(
|
|
722
|
-
value:
|
|
723
|
-
children: /* @__PURE__ */ r.jsx(
|
|
721
|
+
}, u = De(d);
|
|
722
|
+
return /* @__PURE__ */ r.jsx(F.Provider, {
|
|
723
|
+
value: Ae,
|
|
724
|
+
children: /* @__PURE__ */ r.jsx(Le, {
|
|
724
725
|
className: I(u.root, i),
|
|
725
726
|
as: n,
|
|
726
|
-
ref:
|
|
727
|
-
role: n ===
|
|
727
|
+
ref: s,
|
|
728
|
+
role: n === Z ? null : "rowgroup",
|
|
728
729
|
ownerState: d,
|
|
729
730
|
...p
|
|
730
731
|
})
|
|
731
732
|
});
|
|
732
733
|
});
|
|
733
|
-
process.env.NODE_ENV !== "production" && (
|
|
734
|
+
process.env.NODE_ENV !== "production" && (re.propTypes = {
|
|
734
735
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
735
736
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
736
737
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -757,31 +758,31 @@ process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
|
757
758
|
*/
|
|
758
759
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
759
760
|
});
|
|
760
|
-
function
|
|
761
|
-
return
|
|
761
|
+
function qe(o) {
|
|
762
|
+
return N("MuiTableCell", o);
|
|
762
763
|
}
|
|
763
|
-
const
|
|
764
|
+
const Je = M("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), Ge = (o) => {
|
|
764
765
|
const {
|
|
765
766
|
classes: t,
|
|
766
|
-
variant:
|
|
767
|
-
align:
|
|
767
|
+
variant: s,
|
|
768
|
+
align: a,
|
|
768
769
|
padding: i,
|
|
769
770
|
size: n,
|
|
770
771
|
stickyHeader: p
|
|
771
772
|
} = o, d = {
|
|
772
|
-
root: ["root",
|
|
773
|
+
root: ["root", s, p && "stickyHeader", a !== "inherit" && `align${j(a)}`, i !== "normal" && `padding${j(i)}`, `size${j(n)}`]
|
|
773
774
|
};
|
|
774
|
-
return
|
|
775
|
-
},
|
|
775
|
+
return B(d, qe, t);
|
|
776
|
+
}, Ke = S("td", {
|
|
776
777
|
name: "MuiTableCell",
|
|
777
778
|
slot: "Root",
|
|
778
779
|
overridesResolver: (o, t) => {
|
|
779
780
|
const {
|
|
780
|
-
ownerState:
|
|
781
|
+
ownerState: s
|
|
781
782
|
} = o;
|
|
782
|
-
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];
|
|
783
784
|
}
|
|
784
|
-
})(
|
|
785
|
+
})(_(({
|
|
785
786
|
theme: o
|
|
786
787
|
}) => ({
|
|
787
788
|
...o.typography.body2,
|
|
@@ -790,7 +791,7 @@ const Qe = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
790
791
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
791
792
|
// Removes the alpha (sets it to 1), and lightens or darkens the theme color.
|
|
792
793
|
borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
793
|
-
${o.palette.mode === "light" ?
|
|
794
|
+
${o.palette.mode === "light" ? o.lighten(o.alpha(o.palette.divider, 1), 0.88) : o.darken(o.alpha(o.palette.divider, 1), 0.68)}`,
|
|
794
795
|
textAlign: "left",
|
|
795
796
|
padding: 16,
|
|
796
797
|
variants: [{
|
|
@@ -824,7 +825,7 @@ const Qe = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
824
825
|
},
|
|
825
826
|
style: {
|
|
826
827
|
padding: "6px 16px",
|
|
827
|
-
[`&.${
|
|
828
|
+
[`&.${Je.paddingCheckbox}`]: {
|
|
828
829
|
width: 24,
|
|
829
830
|
// prevent the checkbox column from growing
|
|
830
831
|
padding: "0 12px 0 16px",
|
|
@@ -889,8 +890,8 @@ const Qe = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
889
890
|
backgroundColor: (o.vars || o).palette.background.default
|
|
890
891
|
}
|
|
891
892
|
}]
|
|
892
|
-
}))), H = /* @__PURE__ */ y.forwardRef(function(t,
|
|
893
|
-
const
|
|
893
|
+
}))), H = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
894
|
+
const a = $({
|
|
894
895
|
props: t,
|
|
895
896
|
name: "MuiTableCell"
|
|
896
897
|
}), {
|
|
@@ -902,31 +903,31 @@ const Qe = B("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "si
|
|
|
902
903
|
size: g,
|
|
903
904
|
sortDirection: l,
|
|
904
905
|
variant: x,
|
|
905
|
-
...
|
|
906
|
-
} =
|
|
906
|
+
...w
|
|
907
|
+
} = a, h = y.useContext(J), T = y.useContext(F), c = T && T.variant === "head";
|
|
907
908
|
let v;
|
|
908
909
|
p ? v = p : v = c ? "th" : "td";
|
|
909
|
-
let
|
|
910
|
-
v === "td" ?
|
|
911
|
-
const
|
|
912
|
-
...
|
|
910
|
+
let m = u;
|
|
911
|
+
v === "td" ? m = void 0 : !m && c && (m = "col");
|
|
912
|
+
const C = x || T && T.variant, f = {
|
|
913
|
+
...a,
|
|
913
914
|
align: i,
|
|
914
915
|
component: v,
|
|
915
|
-
padding: d || (
|
|
916
|
-
size: g || (
|
|
916
|
+
padding: d || (h && h.padding ? h.padding : "normal"),
|
|
917
|
+
size: g || (h && h.size ? h.size : "medium"),
|
|
917
918
|
sortDirection: l,
|
|
918
|
-
stickyHeader:
|
|
919
|
-
variant:
|
|
920
|
-
}, z =
|
|
919
|
+
stickyHeader: C === "head" && h && h.stickyHeader,
|
|
920
|
+
variant: C
|
|
921
|
+
}, z = Ge(f);
|
|
921
922
|
let R = null;
|
|
922
|
-
return l && (R = l === "asc" ? "ascending" : "descending"), /* @__PURE__ */ r.jsx(
|
|
923
|
+
return l && (R = l === "asc" ? "ascending" : "descending"), /* @__PURE__ */ r.jsx(Ke, {
|
|
923
924
|
as: v,
|
|
924
|
-
ref:
|
|
925
|
+
ref: s,
|
|
925
926
|
className: I(z.root, n),
|
|
926
927
|
"aria-sort": R,
|
|
927
|
-
scope:
|
|
928
|
+
scope: m,
|
|
928
929
|
ownerState: f,
|
|
929
|
-
...
|
|
930
|
+
...w
|
|
930
931
|
});
|
|
931
932
|
});
|
|
932
933
|
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
@@ -987,49 +988,49 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
|
987
988
|
*/
|
|
988
989
|
variant: e.oneOfType([e.oneOf(["body", "footer", "head"]), e.string])
|
|
989
990
|
});
|
|
990
|
-
function
|
|
991
|
-
return
|
|
991
|
+
function Qe(o) {
|
|
992
|
+
return N("MuiTableHead", o);
|
|
992
993
|
}
|
|
993
|
-
|
|
994
|
-
const
|
|
994
|
+
M("MuiTableHead", ["root"]);
|
|
995
|
+
const Xe = (o) => {
|
|
995
996
|
const {
|
|
996
997
|
classes: t
|
|
997
998
|
} = o;
|
|
998
|
-
return
|
|
999
|
+
return B({
|
|
999
1000
|
root: ["root"]
|
|
1000
|
-
},
|
|
1001
|
-
},
|
|
1001
|
+
}, Qe, t);
|
|
1002
|
+
}, Ye = S("thead", {
|
|
1002
1003
|
name: "MuiTableHead",
|
|
1003
1004
|
slot: "Root"
|
|
1004
1005
|
})({
|
|
1005
1006
|
display: "table-header-group"
|
|
1006
|
-
}),
|
|
1007
|
+
}), Ze = {
|
|
1007
1008
|
variant: "head"
|
|
1008
|
-
},
|
|
1009
|
-
const
|
|
1009
|
+
}, ee = "thead", ie = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
1010
|
+
const a = $({
|
|
1010
1011
|
props: t,
|
|
1011
1012
|
name: "MuiTableHead"
|
|
1012
1013
|
}), {
|
|
1013
1014
|
className: i,
|
|
1014
|
-
component: n =
|
|
1015
|
+
component: n = ee,
|
|
1015
1016
|
...p
|
|
1016
|
-
} =
|
|
1017
|
-
...
|
|
1017
|
+
} = a, d = {
|
|
1018
|
+
...a,
|
|
1018
1019
|
component: n
|
|
1019
|
-
}, u =
|
|
1020
|
-
return /* @__PURE__ */ r.jsx(
|
|
1021
|
-
value:
|
|
1022
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1020
|
+
}, u = Xe(d);
|
|
1021
|
+
return /* @__PURE__ */ r.jsx(F.Provider, {
|
|
1022
|
+
value: Ze,
|
|
1023
|
+
children: /* @__PURE__ */ r.jsx(Ye, {
|
|
1023
1024
|
as: n,
|
|
1024
1025
|
className: I(u.root, i),
|
|
1025
|
-
ref:
|
|
1026
|
-
role: n ===
|
|
1026
|
+
ref: s,
|
|
1027
|
+
role: n === ee ? null : "rowgroup",
|
|
1027
1028
|
ownerState: d,
|
|
1028
1029
|
...p
|
|
1029
1030
|
})
|
|
1030
1031
|
});
|
|
1031
1032
|
});
|
|
1032
|
-
process.env.NODE_ENV !== "production" && (
|
|
1033
|
+
process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
1033
1034
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1034
1035
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1035
1036
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1056,30 +1057,30 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
|
1056
1057
|
*/
|
|
1057
1058
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1058
1059
|
});
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1060
|
+
function eo(o) {
|
|
1061
|
+
return N("MuiTableRow", o);
|
|
1061
1062
|
}
|
|
1062
|
-
const
|
|
1063
|
+
const oe = M("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), oo = (o) => {
|
|
1063
1064
|
const {
|
|
1064
1065
|
classes: t,
|
|
1065
|
-
selected:
|
|
1066
|
-
hover:
|
|
1066
|
+
selected: s,
|
|
1067
|
+
hover: a,
|
|
1067
1068
|
head: i,
|
|
1068
1069
|
footer: n
|
|
1069
1070
|
} = o;
|
|
1070
|
-
return
|
|
1071
|
-
root: ["root",
|
|
1072
|
-
},
|
|
1073
|
-
},
|
|
1071
|
+
return B({
|
|
1072
|
+
root: ["root", s && "selected", a && "hover", i && "head", n && "footer"]
|
|
1073
|
+
}, eo, t);
|
|
1074
|
+
}, to = S("tr", {
|
|
1074
1075
|
name: "MuiTableRow",
|
|
1075
1076
|
slot: "Root",
|
|
1076
1077
|
overridesResolver: (o, t) => {
|
|
1077
1078
|
const {
|
|
1078
|
-
ownerState:
|
|
1079
|
+
ownerState: s
|
|
1079
1080
|
} = o;
|
|
1080
|
-
return [t.root,
|
|
1081
|
+
return [t.root, s.head && t.head, s.footer && t.footer];
|
|
1081
1082
|
}
|
|
1082
|
-
})(
|
|
1083
|
+
})(_(({
|
|
1083
1084
|
theme: o
|
|
1084
1085
|
}) => ({
|
|
1085
1086
|
color: "inherit",
|
|
@@ -1087,43 +1088,43 @@ const te = B("MuiTableRow", ["root", "selected", "hover", "head", "footer"]), so
|
|
|
1087
1088
|
verticalAlign: "middle",
|
|
1088
1089
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1089
1090
|
outline: 0,
|
|
1090
|
-
[`&.${
|
|
1091
|
+
[`&.${oe.hover}:hover`]: {
|
|
1091
1092
|
backgroundColor: (o.vars || o).palette.action.hover
|
|
1092
1093
|
},
|
|
1093
|
-
[`&.${
|
|
1094
|
-
backgroundColor: o.
|
|
1094
|
+
[`&.${oe.selected}`]: {
|
|
1095
|
+
backgroundColor: o.alpha((o.vars || o).palette.primary.main, (o.vars || o).palette.action.selectedOpacity),
|
|
1095
1096
|
"&:hover": {
|
|
1096
|
-
backgroundColor: o.vars
|
|
1097
|
+
backgroundColor: o.alpha((o.vars || o).palette.primary.main, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.hoverOpacity}`)
|
|
1097
1098
|
}
|
|
1098
1099
|
}
|
|
1099
|
-
}))),
|
|
1100
|
-
const
|
|
1100
|
+
}))), te = "tr", V = /* @__PURE__ */ y.forwardRef(function(t, s) {
|
|
1101
|
+
const a = $({
|
|
1101
1102
|
props: t,
|
|
1102
1103
|
name: "MuiTableRow"
|
|
1103
1104
|
}), {
|
|
1104
1105
|
className: i,
|
|
1105
|
-
component: n =
|
|
1106
|
+
component: n = te,
|
|
1106
1107
|
hover: p = !1,
|
|
1107
1108
|
selected: d = !1,
|
|
1108
1109
|
...u
|
|
1109
|
-
} =
|
|
1110
|
-
...
|
|
1110
|
+
} = a, g = y.useContext(F), l = {
|
|
1111
|
+
...a,
|
|
1111
1112
|
component: n,
|
|
1112
1113
|
hover: p,
|
|
1113
1114
|
selected: d,
|
|
1114
1115
|
head: g && g.variant === "head",
|
|
1115
1116
|
footer: g && g.variant === "footer"
|
|
1116
|
-
}, x =
|
|
1117
|
-
return /* @__PURE__ */ r.jsx(
|
|
1117
|
+
}, x = oo(l);
|
|
1118
|
+
return /* @__PURE__ */ r.jsx(to, {
|
|
1118
1119
|
as: n,
|
|
1119
|
-
ref:
|
|
1120
|
+
ref: s,
|
|
1120
1121
|
className: I(x.root, i),
|
|
1121
|
-
role: n ===
|
|
1122
|
+
role: n === te ? null : "row",
|
|
1122
1123
|
ownerState: l,
|
|
1123
1124
|
...u
|
|
1124
1125
|
});
|
|
1125
1126
|
});
|
|
1126
|
-
process.env.NODE_ENV !== "production" && (
|
|
1127
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
1127
1128
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1128
1129
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1129
1130
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1160,11 +1161,11 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
1160
1161
|
*/
|
|
1161
1162
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1162
1163
|
});
|
|
1163
|
-
function
|
|
1164
|
+
function uo({
|
|
1164
1165
|
columns: o,
|
|
1165
1166
|
hideHead: t,
|
|
1166
|
-
hover:
|
|
1167
|
-
onClick:
|
|
1167
|
+
hover: s,
|
|
1168
|
+
onClick: a,
|
|
1168
1169
|
onDeselectAll: i,
|
|
1169
1170
|
onDeselectOne: n,
|
|
1170
1171
|
onSelectOne: p,
|
|
@@ -1173,12 +1174,12 @@ function mo({
|
|
|
1173
1174
|
selectable: g,
|
|
1174
1175
|
selected: l,
|
|
1175
1176
|
uniqueRowId: x,
|
|
1176
|
-
...
|
|
1177
|
+
...w
|
|
1177
1178
|
}) {
|
|
1178
|
-
const
|
|
1179
|
-
return /* @__PURE__ */ r.jsxs(
|
|
1179
|
+
const h = ((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;
|
|
1180
|
+
return /* @__PURE__ */ r.jsxs(ne, { ...w, sx: { mt: 1 }, children: [
|
|
1180
1181
|
/* @__PURE__ */ r.jsx(
|
|
1181
|
-
|
|
1182
|
+
ie,
|
|
1182
1183
|
{
|
|
1183
1184
|
sx: {
|
|
1184
1185
|
...t && {
|
|
@@ -1186,14 +1187,14 @@ function mo({
|
|
|
1186
1187
|
"--TableCell-borderWidth": 0
|
|
1187
1188
|
}
|
|
1188
1189
|
},
|
|
1189
|
-
children: /* @__PURE__ */ r.jsxs(
|
|
1190
|
+
children: /* @__PURE__ */ r.jsxs(V, { children: [
|
|
1190
1191
|
g ? /* @__PURE__ */ r.jsx(H, { padding: "checkbox", sx: { width: "40px", minWidth: "40px", maxWidth: "40px" }, children: /* @__PURE__ */ r.jsx(
|
|
1191
|
-
|
|
1192
|
+
A,
|
|
1192
1193
|
{
|
|
1193
|
-
checked:
|
|
1194
|
-
indeterminate:
|
|
1194
|
+
checked: T,
|
|
1195
|
+
indeterminate: h,
|
|
1195
1196
|
onChange: (c) => {
|
|
1196
|
-
|
|
1197
|
+
T ? i == null || i(c) : d == null || d(c);
|
|
1197
1198
|
}
|
|
1198
1199
|
}
|
|
1199
1200
|
) }) : null,
|
|
@@ -1215,29 +1216,29 @@ function mo({
|
|
|
1215
1216
|
] })
|
|
1216
1217
|
}
|
|
1217
1218
|
),
|
|
1218
|
-
/* @__PURE__ */ r.jsx(
|
|
1219
|
-
const
|
|
1219
|
+
/* @__PURE__ */ r.jsx(re, { children: u.length ? u.map((c, v) => {
|
|
1220
|
+
const m = c.id ? c.id : x == null ? void 0 : x(c), C = m ? l == null ? void 0 : l.has(m) : !1;
|
|
1220
1221
|
return /* @__PURE__ */ r.jsxs(
|
|
1221
|
-
|
|
1222
|
+
V,
|
|
1222
1223
|
{
|
|
1223
|
-
hover:
|
|
1224
|
-
selected:
|
|
1225
|
-
...
|
|
1224
|
+
hover: s,
|
|
1225
|
+
selected: C,
|
|
1226
|
+
...a && {
|
|
1226
1227
|
onClick: (f) => {
|
|
1227
|
-
|
|
1228
|
+
a(f, c);
|
|
1228
1229
|
}
|
|
1229
1230
|
},
|
|
1230
|
-
sx: { ...
|
|
1231
|
+
sx: { ...a && { cursor: "pointer" } },
|
|
1231
1232
|
children: [
|
|
1232
1233
|
g ? /* @__PURE__ */ r.jsx(H, { padding: "checkbox", children: /* @__PURE__ */ r.jsx(
|
|
1233
|
-
|
|
1234
|
+
A,
|
|
1234
1235
|
{
|
|
1235
|
-
checked:
|
|
1236
|
+
checked: m ? C : !1,
|
|
1236
1237
|
onChange: (f) => {
|
|
1237
|
-
|
|
1238
|
+
C ? n == null || n(f, c) : p == null || p(f, c);
|
|
1238
1239
|
},
|
|
1239
1240
|
onClick: (f) => {
|
|
1240
|
-
|
|
1241
|
+
a && f.stopPropagation();
|
|
1241
1242
|
}
|
|
1242
1243
|
}
|
|
1243
1244
|
) }) : null,
|
|
@@ -1246,11 +1247,11 @@ function mo({
|
|
|
1246
1247
|
)
|
|
1247
1248
|
]
|
|
1248
1249
|
},
|
|
1249
|
-
|
|
1250
|
+
m ?? v
|
|
1250
1251
|
);
|
|
1251
|
-
}) : /* @__PURE__ */ r.jsx(
|
|
1252
|
+
}) : /* @__PURE__ */ r.jsx(V, { children: /* @__PURE__ */ r.jsx(H, { align: "center", colSpan: o.length, children: /* @__PURE__ */ r.jsx(ve, {}) }) }) })
|
|
1252
1253
|
] });
|
|
1253
1254
|
}
|
|
1254
1255
|
export {
|
|
1255
|
-
|
|
1256
|
+
uo as default
|
|
1256
1257
|
};
|