@cgi-learning-hub/ui 1.3.3-dev.1732123246 → 1.3.3-dev.1732274173
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/{Backdrop-DorR8O-b.js → Backdrop-DcJf9G30.js} +20 -20
- package/dist/{Box-BTNw-FYi.js → Box-D9cHa8GX.js} +7 -7
- package/dist/{Button--paERYBc.js → Button-Cx05eP88.js} +14 -14
- package/dist/{ButtonBase-B0gJT_ti.js → ButtonBase-z74SMnd9.js} +17 -17
- package/dist/{Card-BVJgnURR.js → Card-mAtxoJ0p.js} +3 -3
- package/dist/{Checkbox-aBoDjdQG.js → Checkbox-Bmz9nh6k.js} +12 -12
- package/dist/{CircularProgress-CIqTwP6H.js → CircularProgress-B5osG37N.js} +16 -16
- package/dist/{DatePicker-DXgVCuAd.js → DatePicker-Ds7y4pei.js} +198 -197
- package/dist/{DatePicker-DGRD-CdO.cjs → DatePicker-MSoGmJoG.cjs} +10 -10
- package/dist/{DefaultPropsProvider-StV_SUuk.js → DefaultPropsProvider-BYFwNPLt.js} +12 -12
- package/dist/{DialogContent-CP2NOfUr.js → DialogContent-B_NH_if8.js} +21 -21
- package/dist/{DialogTitle-Couh2TzJ.js → DialogTitle-Bx7712Li.js} +4 -4
- package/dist/Divider-CMuvurmv.js +296 -0
- package/dist/Divider-DlN3YfOR.cjs +1 -0
- package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
- package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
- package/dist/FormGroup-CFDapyxc.cjs +1 -0
- package/dist/FormGroup-DO8m1X6w.js +95 -0
- package/dist/{FormLabel-wDh-AEMQ.js → FormLabel-B11aqT37.js} +34 -33
- package/dist/FormLabel-DcUS1c1d.cjs +2 -0
- package/dist/{Grow-4QU1bnXQ.js → Grow-BKrOFfC1.js} +4 -4
- package/dist/{IconButton-CsqR1453.js → IconButton-DLcGpM1F.js} +4 -4
- package/dist/{InputAdornment-bXTpzNQ2.js → InputAdornment-BrvfHlzv.js} +4 -4
- package/dist/{InputBase-VKt_ajuq.js → InputBase-CHytwRH8.js} +47 -49
- package/dist/InputBase-qhWgXXNd.cjs +3 -0
- package/dist/{Link-CPyeYGpa.js → Link-D_0FIsgB.js} +19 -19
- package/dist/Menu-0Hr9Yx9l.cjs +7 -0
- package/dist/Menu-ysG9uY3e.js +965 -0
- package/dist/MenuItem-BP7OsPVc.cjs +1 -0
- package/dist/{MenuItem-BFkBwBkN.js → MenuItem-DYrKaYOk.js} +69 -74
- package/dist/{Modal-BDx2_UzP.js → Modal-DT240BJZ.js} +42 -42
- package/dist/{Paper-CMUbp6SX.js → Paper-vlsh8Nca.js} +6 -6
- package/dist/{Popper-D_UryU8v.js → Popper-BSaTZXvX.js} +5 -5
- package/dist/{Portal-DVy9JFBN.js → Portal-meM40OhI.js} +3 -3
- package/dist/Radio-CW4v1BS4.js +312 -0
- package/dist/Radio-D-wbZ6M-.cjs +1 -0
- package/dist/{Select-CcnCBhBN.js → Select-CKsf044t.js} +630 -1583
- package/dist/Select-DAHsfas2.cjs +3 -0
- package/dist/{Stack-CKjrTRJB.js → Stack-DbWQHN5i.js} +22 -22
- package/dist/{SwitchBase-DYa1wGSu.js → SwitchBase-DBnju71w.js} +10 -10
- package/dist/{TableSortLabel-Czgy_sW5.js → TableSortLabel-ByZJO-zF.js} +1097 -1382
- package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
- package/dist/{Tabs-RxcUgknI.js → Tabs-BqJSX1la.js} +10 -10
- package/dist/{TextField-DvGLmvG1.cjs → TextField-C23FnJYk.cjs} +1 -1
- package/dist/{TextField-DorMAtUh.js → TextField-DVUnQAd7.js} +24 -24
- package/dist/{Tooltip-B4e9QdHI.js → Tooltip-41rGxwva.js} +44 -44
- package/dist/{Typography-B29dnCv3.js → Typography-CizHc1nM.js} +4 -4
- package/dist/components/Button/Button.es.js +11 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +6 -6
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +265 -261
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -372
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.es.js +10 -10
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/{createSvgIcon-VByplk-r.js → createSvgIcon-BS0Qe85N.js} +3 -3
- package/dist/dividerClasses-Bp7otbbC.js +9 -0
- package/dist/dividerClasses-O0vIU6On.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-BPhL72td.js → elementTypeAcceptingRef-DOFWAguJ.js} +1 -1
- package/dist/{extendSxProp-BYB-kybW.js → extendSxProp-BpXLpaGL.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/{fr-B4aeA9th.js → fr-Djc-bU-B.js} +1 -1
- package/dist/{identifier-BewKgEhI.js → identifier-B7MO0PvI.js} +6 -6
- package/dist/{index-_oi9ph20.js → index-CKZgd5LP.js} +4 -4
- package/dist/{index-BAjSgP8k.js → index-yb8koCDz.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +265 -261
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B9kDhX1-.js → memoTheme-CqfvfBST.js} +1 -1
- package/dist/{refType-3o3c-kYx.js → refType-BqQbA6de.js} +1 -1
- package/dist/{resolveComponentProps-BQQ-uUKZ.js → resolveComponentProps-CYk57pLv.js} +1 -1
- package/dist/{useSlot-B2hCpx8C.js → useSlot-BSVkAc2J.js} +1 -1
- package/dist/{useTheme-0u9_WhjM.js → useTheme-CzzAEESs.js} +3 -3
- package/dist/{useTheme-BrFhq4dW.js → useTheme-DrsmidxY.js} +1 -1
- package/dist/{useThemeProps-cERu5xHk.js → useThemeProps-B9UyPpzT.js} +3 -3
- package/dist/{useThemeProps-CwWORfXn.js → useThemeProps-BFeVem33.js} +2 -2
- package/dist/{useTimeout-Br8oWWYt.js → useTimeout-Znm_nF2D.js} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/{utils-CH0HZgJe.js → utils-jA5a7WHN.js} +1 -1
- package/package.json +1 -1
- package/dist/FormGroup-CcM69JIS.js +0 -348
- package/dist/FormGroup-KOLND6rE.cjs +0 -1
- package/dist/FormLabel-C506NT5o.cjs +0 -2
- package/dist/InputBase-Cpx39cny.cjs +0 -3
- package/dist/MenuItem-BxXCEc8h.cjs +0 -1
- package/dist/Select-CnFa2_je.cjs +0 -9
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +0 -98
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
|
@@ -1,60 +1,52 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { f as
|
|
4
|
-
import { u as
|
|
5
|
-
import { s as
|
|
6
|
-
import { m as
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { a as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { o as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { r as
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import { G as Xo } from "./Grow-4QU1bnXQ.js";
|
|
23
|
-
import { u as co } from "./useControlled-BYdyS7Pn.js";
|
|
24
|
-
import { u as Go } from "./useId-CK6Kn3Tn.js";
|
|
25
|
-
import { c as Yo } from "./createSvgIcon-VByplk-r.js";
|
|
26
|
-
import { c as Qe } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
27
|
-
import { g as Jo } from "./utils-CH0HZgJe.js";
|
|
28
|
-
function Zo(o) {
|
|
29
|
-
return Z("MuiInput", o);
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { H as U, I as D, W as Oe, P as e, G as fe, L as z, Z as fo } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { f as Ce } from "./formControlState-vgaj2ksH.js";
|
|
4
|
+
import { u as Ie } from "./useFormControl-CatNKXAi.js";
|
|
5
|
+
import { s as h, r as k, u as H, c as V, f as bo, e as mo } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
6
|
+
import { m as E } from "./memoTheme-CqfvfBST.js";
|
|
7
|
+
import { jsx as v, jsxs as Se } from "react/jsx-runtime";
|
|
8
|
+
import { a as go, b as vo } from "./FormLabel-B11aqT37.js";
|
|
9
|
+
import { M as yo } from "./Menu-ysG9uY3e.js";
|
|
10
|
+
import { r as G } from "./refType-BqQbA6de.js";
|
|
11
|
+
import { i as ho } from "./utils-DWqc1kRF.js";
|
|
12
|
+
import { u as Ve } from "./useControlled-BYdyS7Pn.js";
|
|
13
|
+
import { u as Xe } from "./useForkRef-C_4o__cU.js";
|
|
14
|
+
import { o as Oo } from "./ownerDocument-CUrv0DIK.js";
|
|
15
|
+
import { u as Co } from "./useId-CK6Kn3Tn.js";
|
|
16
|
+
import { c as Io } from "./createSvgIcon-BS0Qe85N.js";
|
|
17
|
+
import { c as Re } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
18
|
+
import { i as xe, a as we, r as Te, b as Ne, c as Pe, I as $e } from "./InputBase-CHytwRH8.js";
|
|
19
|
+
import { g as So } from "./utils-jA5a7WHN.js";
|
|
20
|
+
function Ro(o) {
|
|
21
|
+
return U("MuiInput", o);
|
|
30
22
|
}
|
|
31
|
-
const
|
|
32
|
-
...
|
|
33
|
-
...
|
|
34
|
-
},
|
|
23
|
+
const K = {
|
|
24
|
+
...xe,
|
|
25
|
+
...D("MuiInput", ["root", "underline", "input"])
|
|
26
|
+
}, xo = (o) => {
|
|
35
27
|
const {
|
|
36
28
|
classes: t,
|
|
37
29
|
disableUnderline: n
|
|
38
|
-
} = o,
|
|
30
|
+
} = o, i = V({
|
|
39
31
|
root: ["root", !n && "underline"],
|
|
40
32
|
input: ["input"]
|
|
41
|
-
},
|
|
33
|
+
}, Ro, t);
|
|
42
34
|
return {
|
|
43
35
|
...t,
|
|
44
36
|
// forward classes to the InputBase
|
|
45
|
-
...
|
|
37
|
+
...i
|
|
46
38
|
};
|
|
47
|
-
},
|
|
48
|
-
shouldForwardProp: (o) =>
|
|
39
|
+
}, wo = h(we, {
|
|
40
|
+
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
49
41
|
name: "MuiInput",
|
|
50
42
|
slot: "Root",
|
|
51
43
|
overridesResolver: (o, t) => {
|
|
52
44
|
const {
|
|
53
45
|
ownerState: n
|
|
54
46
|
} = o;
|
|
55
|
-
return [...
|
|
47
|
+
return [...Te(o, t), !n.disableUnderline && t.underline];
|
|
56
48
|
}
|
|
57
|
-
})(
|
|
49
|
+
})(E(({
|
|
58
50
|
theme: o
|
|
59
51
|
}) => {
|
|
60
52
|
let n = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
@@ -88,12 +80,12 @@ const ue = {
|
|
|
88
80
|
pointerEvents: "none"
|
|
89
81
|
// Transparent to the hover style.
|
|
90
82
|
},
|
|
91
|
-
[`&.${
|
|
83
|
+
[`&.${K.focused}:after`]: {
|
|
92
84
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
93
85
|
// See https://github.com/mui/material-ui/issues/31766
|
|
94
86
|
transform: "scaleX(1) translateX(0)"
|
|
95
87
|
},
|
|
96
|
-
[`&.${
|
|
88
|
+
[`&.${K.error}`]: {
|
|
97
89
|
"&::before, &::after": {
|
|
98
90
|
borderBottomColor: (o.vars || o).palette.error.main
|
|
99
91
|
}
|
|
@@ -111,18 +103,18 @@ const ue = {
|
|
|
111
103
|
pointerEvents: "none"
|
|
112
104
|
// Transparent to the hover style.
|
|
113
105
|
},
|
|
114
|
-
[`&:hover:not(.${
|
|
106
|
+
[`&:hover:not(.${K.disabled}, .${K.error}):before`]: {
|
|
115
107
|
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
116
108
|
// Reset on touch devices, it doesn't add specificity
|
|
117
109
|
"@media (hover: none)": {
|
|
118
110
|
borderBottom: `1px solid ${n}`
|
|
119
111
|
}
|
|
120
112
|
},
|
|
121
|
-
[`&.${
|
|
113
|
+
[`&.${K.disabled}:before`]: {
|
|
122
114
|
borderBottomStyle: "dotted"
|
|
123
115
|
}
|
|
124
116
|
}
|
|
125
|
-
}, ...Object.entries(o.palette).filter(
|
|
117
|
+
}, ...Object.entries(o.palette).filter(Re()).map(([r]) => ({
|
|
126
118
|
props: {
|
|
127
119
|
color: r,
|
|
128
120
|
disableUnderline: !1
|
|
@@ -134,48 +126,48 @@ const ue = {
|
|
|
134
126
|
}
|
|
135
127
|
}))]
|
|
136
128
|
};
|
|
137
|
-
})),
|
|
129
|
+
})), To = h(Ne, {
|
|
138
130
|
name: "MuiInput",
|
|
139
131
|
slot: "Input",
|
|
140
|
-
overridesResolver:
|
|
141
|
-
})({}),
|
|
142
|
-
const r =
|
|
132
|
+
overridesResolver: Pe
|
|
133
|
+
})({}), de = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
134
|
+
const r = H({
|
|
143
135
|
props: t,
|
|
144
136
|
name: "MuiInput"
|
|
145
137
|
}), {
|
|
146
|
-
disableUnderline:
|
|
147
|
-
components:
|
|
148
|
-
componentsProps:
|
|
149
|
-
fullWidth:
|
|
150
|
-
inputComponent:
|
|
151
|
-
multiline:
|
|
152
|
-
slotProps:
|
|
153
|
-
slots:
|
|
154
|
-
type:
|
|
155
|
-
...
|
|
156
|
-
} = r,
|
|
138
|
+
disableUnderline: i = !1,
|
|
139
|
+
components: p = {},
|
|
140
|
+
componentsProps: a,
|
|
141
|
+
fullWidth: d = !1,
|
|
142
|
+
inputComponent: m = "input",
|
|
143
|
+
multiline: g = !1,
|
|
144
|
+
slotProps: f,
|
|
145
|
+
slots: c = {},
|
|
146
|
+
type: O = "text",
|
|
147
|
+
...R
|
|
148
|
+
} = r, w = xo(r), y = {
|
|
157
149
|
root: {
|
|
158
150
|
ownerState: {
|
|
159
|
-
disableUnderline:
|
|
151
|
+
disableUnderline: i
|
|
160
152
|
}
|
|
161
153
|
}
|
|
162
|
-
},
|
|
163
|
-
return /* @__PURE__ */
|
|
154
|
+
}, x = f ?? a ? Oe(f ?? a, y) : y, C = c.root ?? p.Root ?? wo, I = c.input ?? p.Input ?? To;
|
|
155
|
+
return /* @__PURE__ */ v($e, {
|
|
164
156
|
slots: {
|
|
165
|
-
root:
|
|
166
|
-
input:
|
|
157
|
+
root: C,
|
|
158
|
+
input: I
|
|
167
159
|
},
|
|
168
|
-
slotProps:
|
|
169
|
-
fullWidth:
|
|
170
|
-
inputComponent:
|
|
171
|
-
multiline:
|
|
160
|
+
slotProps: x,
|
|
161
|
+
fullWidth: d,
|
|
162
|
+
inputComponent: m,
|
|
163
|
+
multiline: g,
|
|
172
164
|
ref: n,
|
|
173
|
-
type:
|
|
174
|
-
...
|
|
175
|
-
classes:
|
|
165
|
+
type: O,
|
|
166
|
+
...R,
|
|
167
|
+
classes: w
|
|
176
168
|
});
|
|
177
169
|
});
|
|
178
|
-
process.env.NODE_ENV !== "production" && (
|
|
170
|
+
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
179
171
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
180
172
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
181
173
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -270,7 +262,7 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
270
262
|
/**
|
|
271
263
|
* Pass a ref to the `input` element.
|
|
272
264
|
*/
|
|
273
|
-
inputRef:
|
|
265
|
+
inputRef: G,
|
|
274
266
|
/**
|
|
275
267
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
276
268
|
* FormControl.
|
|
@@ -360,30 +352,30 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
360
352
|
*/
|
|
361
353
|
value: e.any
|
|
362
354
|
});
|
|
363
|
-
|
|
364
|
-
function
|
|
365
|
-
return
|
|
355
|
+
de && (de.muiName = "Input");
|
|
356
|
+
function No(o) {
|
|
357
|
+
return U("MuiInputLabel", o);
|
|
366
358
|
}
|
|
367
|
-
const
|
|
359
|
+
const It = D("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]), Po = (o) => {
|
|
368
360
|
const {
|
|
369
361
|
classes: t,
|
|
370
362
|
formControl: n,
|
|
371
363
|
size: r,
|
|
372
|
-
shrink:
|
|
373
|
-
disableAnimation:
|
|
374
|
-
variant:
|
|
375
|
-
required:
|
|
376
|
-
} = o,
|
|
377
|
-
root: ["root", n && "formControl", !
|
|
378
|
-
asterisk: [
|
|
379
|
-
},
|
|
364
|
+
shrink: i,
|
|
365
|
+
disableAnimation: p,
|
|
366
|
+
variant: a,
|
|
367
|
+
required: d
|
|
368
|
+
} = o, m = {
|
|
369
|
+
root: ["root", n && "formControl", !p && "animated", i && "shrink", r && r !== "normal" && `size${z(r)}`, a],
|
|
370
|
+
asterisk: [d && "asterisk"]
|
|
371
|
+
}, g = V(m, No, t);
|
|
380
372
|
return {
|
|
381
373
|
...t,
|
|
382
374
|
// forward the focused, disabled, etc. classes to the FormLabel
|
|
383
|
-
...
|
|
375
|
+
...g
|
|
384
376
|
};
|
|
385
|
-
},
|
|
386
|
-
shouldForwardProp: (o) =>
|
|
377
|
+
}, $o = h(go, {
|
|
378
|
+
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
387
379
|
name: "MuiInputLabel",
|
|
388
380
|
slot: "Root",
|
|
389
381
|
overridesResolver: (o, t) => {
|
|
@@ -391,10 +383,10 @@ const vn = Q("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
391
383
|
ownerState: n
|
|
392
384
|
} = o;
|
|
393
385
|
return [{
|
|
394
|
-
[`& .${
|
|
386
|
+
[`& .${vo.asterisk}`]: t.asterisk
|
|
395
387
|
}, t.root, n.formControl && t.formControl, n.size === "small" && t.sizeSmall, n.shrink && t.shrink, !n.disableAnimation && t.animated, n.focused && t.focused, t[n.variant]];
|
|
396
388
|
}
|
|
397
|
-
})(
|
|
389
|
+
})(E(({
|
|
398
390
|
theme: o
|
|
399
391
|
}) => ({
|
|
400
392
|
display: "block",
|
|
@@ -516,44 +508,44 @@ const vn = Q("MuiInputLabel", ["root", "focused", "disabled", "error", "required
|
|
|
516
508
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
517
509
|
}
|
|
518
510
|
}]
|
|
519
|
-
}))),
|
|
520
|
-
const r =
|
|
511
|
+
}))), ko = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
512
|
+
const r = H({
|
|
521
513
|
name: "MuiInputLabel",
|
|
522
514
|
props: t
|
|
523
515
|
}), {
|
|
524
|
-
disableAnimation:
|
|
525
|
-
margin:
|
|
526
|
-
shrink:
|
|
527
|
-
variant:
|
|
528
|
-
className:
|
|
529
|
-
...
|
|
530
|
-
} = r,
|
|
531
|
-
let
|
|
532
|
-
typeof
|
|
533
|
-
const
|
|
516
|
+
disableAnimation: i = !1,
|
|
517
|
+
margin: p,
|
|
518
|
+
shrink: a,
|
|
519
|
+
variant: d,
|
|
520
|
+
className: m,
|
|
521
|
+
...g
|
|
522
|
+
} = r, f = Ie();
|
|
523
|
+
let c = a;
|
|
524
|
+
typeof c > "u" && f && (c = f.filled || f.focused || f.adornedStart);
|
|
525
|
+
const O = Ce({
|
|
534
526
|
props: r,
|
|
535
|
-
muiFormControl:
|
|
527
|
+
muiFormControl: f,
|
|
536
528
|
states: ["size", "variant", "required", "focused"]
|
|
537
|
-
}),
|
|
529
|
+
}), R = {
|
|
538
530
|
...r,
|
|
539
|
-
disableAnimation:
|
|
540
|
-
formControl:
|
|
541
|
-
shrink:
|
|
542
|
-
size:
|
|
543
|
-
variant:
|
|
544
|
-
required:
|
|
545
|
-
focused:
|
|
546
|
-
},
|
|
547
|
-
return /* @__PURE__ */
|
|
548
|
-
"data-shrink":
|
|
531
|
+
disableAnimation: i,
|
|
532
|
+
formControl: f,
|
|
533
|
+
shrink: c,
|
|
534
|
+
size: O.size,
|
|
535
|
+
variant: O.variant,
|
|
536
|
+
required: O.required,
|
|
537
|
+
focused: O.focused
|
|
538
|
+
}, w = Po(R);
|
|
539
|
+
return /* @__PURE__ */ v($o, {
|
|
540
|
+
"data-shrink": c,
|
|
549
541
|
ref: n,
|
|
550
|
-
className:
|
|
551
|
-
...
|
|
552
|
-
ownerState:
|
|
553
|
-
classes:
|
|
542
|
+
className: fe(w.root, m),
|
|
543
|
+
...g,
|
|
544
|
+
ownerState: R,
|
|
545
|
+
classes: w
|
|
554
546
|
});
|
|
555
547
|
});
|
|
556
|
-
process.env.NODE_ENV !== "production" && (
|
|
548
|
+
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
557
549
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
558
550
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
559
551
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -620,961 +612,23 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
|
620
612
|
*/
|
|
621
613
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
622
614
|
});
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
function it(o) {
|
|
626
|
-
return Z("MuiList", o);
|
|
615
|
+
function Eo(o) {
|
|
616
|
+
return U("MuiNativeSelect", o);
|
|
627
617
|
}
|
|
628
|
-
const
|
|
629
|
-
const {
|
|
630
|
-
classes: t,
|
|
631
|
-
disablePadding: n,
|
|
632
|
-
dense: r,
|
|
633
|
-
subheader: p
|
|
634
|
-
} = o;
|
|
635
|
-
return oe({
|
|
636
|
-
root: ["root", !n && "padding", r && "dense", p && "subheader"]
|
|
637
|
-
}, it, t);
|
|
638
|
-
}, lt = x("ul", {
|
|
639
|
-
name: "MuiList",
|
|
640
|
-
slot: "Root",
|
|
641
|
-
overridesResolver: (o, t) => {
|
|
642
|
-
const {
|
|
643
|
-
ownerState: n
|
|
644
|
-
} = o;
|
|
645
|
-
return [t.root, !n.disablePadding && t.padding, n.dense && t.dense, n.subheader && t.subheader];
|
|
646
|
-
}
|
|
647
|
-
})({
|
|
648
|
-
listStyle: "none",
|
|
649
|
-
margin: 0,
|
|
650
|
-
padding: 0,
|
|
651
|
-
position: "relative",
|
|
652
|
-
variants: [{
|
|
653
|
-
props: ({
|
|
654
|
-
ownerState: o
|
|
655
|
-
}) => !o.disablePadding,
|
|
656
|
-
style: {
|
|
657
|
-
paddingTop: 8,
|
|
658
|
-
paddingBottom: 8
|
|
659
|
-
}
|
|
660
|
-
}, {
|
|
661
|
-
props: ({
|
|
662
|
-
ownerState: o
|
|
663
|
-
}) => o.subheader,
|
|
664
|
-
style: {
|
|
665
|
-
paddingTop: 0
|
|
666
|
-
}
|
|
667
|
-
}]
|
|
668
|
-
}), Oo = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
669
|
-
const r = re({
|
|
670
|
-
props: t,
|
|
671
|
-
name: "MuiList"
|
|
672
|
-
}), {
|
|
673
|
-
children: p,
|
|
674
|
-
className: d,
|
|
675
|
-
component: s = "ul",
|
|
676
|
-
dense: i = !1,
|
|
677
|
-
disablePadding: u = !1,
|
|
678
|
-
subheader: h,
|
|
679
|
-
...b
|
|
680
|
-
} = r, g = a.useMemo(() => ({
|
|
681
|
-
dense: i
|
|
682
|
-
}), [i]), C = {
|
|
683
|
-
...r,
|
|
684
|
-
component: s,
|
|
685
|
-
dense: i,
|
|
686
|
-
disablePadding: u
|
|
687
|
-
}, f = at(C);
|
|
688
|
-
return /* @__PURE__ */ w(yo.Provider, {
|
|
689
|
-
value: g,
|
|
690
|
-
children: /* @__PURE__ */ ke(lt, {
|
|
691
|
-
as: s,
|
|
692
|
-
className: ne(f.root, d),
|
|
693
|
-
ref: n,
|
|
694
|
-
ownerState: C,
|
|
695
|
-
...b,
|
|
696
|
-
children: [h, p]
|
|
697
|
-
})
|
|
698
|
-
});
|
|
699
|
-
});
|
|
700
|
-
process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
701
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
702
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
703
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
704
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
705
|
-
/**
|
|
706
|
-
* The content of the component.
|
|
707
|
-
*/
|
|
708
|
-
children: e.node,
|
|
709
|
-
/**
|
|
710
|
-
* Override or extend the styles applied to the component.
|
|
711
|
-
*/
|
|
712
|
-
classes: e.object,
|
|
713
|
-
/**
|
|
714
|
-
* @ignore
|
|
715
|
-
*/
|
|
716
|
-
className: e.string,
|
|
717
|
-
/**
|
|
718
|
-
* The component used for the root node.
|
|
719
|
-
* Either a string to use a HTML element or a component.
|
|
720
|
-
*/
|
|
721
|
-
component: e.elementType,
|
|
722
|
-
/**
|
|
723
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
724
|
-
* the list and list items.
|
|
725
|
-
* The prop is available to descendant components as the `dense` context.
|
|
726
|
-
* @default false
|
|
727
|
-
*/
|
|
728
|
-
dense: e.bool,
|
|
729
|
-
/**
|
|
730
|
-
* If `true`, vertical padding is removed from the list.
|
|
731
|
-
* @default false
|
|
732
|
-
*/
|
|
733
|
-
disablePadding: e.bool,
|
|
734
|
-
/**
|
|
735
|
-
* The content of the subheader, normally `ListSubheader`.
|
|
736
|
-
*/
|
|
737
|
-
subheader: e.node,
|
|
738
|
-
/**
|
|
739
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
740
|
-
*/
|
|
741
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
742
|
-
});
|
|
743
|
-
function Be(o, t, n) {
|
|
744
|
-
return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
|
|
745
|
-
}
|
|
746
|
-
function uo(o, t, n) {
|
|
747
|
-
return o === t ? n ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : o.lastChild;
|
|
748
|
-
}
|
|
749
|
-
function Co(o, t) {
|
|
750
|
-
if (t === void 0)
|
|
751
|
-
return !0;
|
|
752
|
-
let n = o.innerText;
|
|
753
|
-
return n === void 0 && (n = o.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
|
|
754
|
-
}
|
|
755
|
-
function fe(o, t, n, r, p, d) {
|
|
756
|
-
let s = !1, i = p(o, t, t ? n : !1);
|
|
757
|
-
for (; i; ) {
|
|
758
|
-
if (i === o.firstChild) {
|
|
759
|
-
if (s)
|
|
760
|
-
return !1;
|
|
761
|
-
s = !0;
|
|
762
|
-
}
|
|
763
|
-
const u = r ? !1 : i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
764
|
-
if (!i.hasAttribute("tabindex") || !Co(i, d) || u)
|
|
765
|
-
i = p(o, i, n);
|
|
766
|
-
else
|
|
767
|
-
return i.focus(), !0;
|
|
768
|
-
}
|
|
769
|
-
return !1;
|
|
770
|
-
}
|
|
771
|
-
const Ro = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
772
|
-
const {
|
|
773
|
-
// private
|
|
774
|
-
// eslint-disable-next-line react/prop-types
|
|
775
|
-
actions: r,
|
|
776
|
-
autoFocus: p = !1,
|
|
777
|
-
autoFocusItem: d = !1,
|
|
778
|
-
children: s,
|
|
779
|
-
className: i,
|
|
780
|
-
disabledItemsFocusable: u = !1,
|
|
781
|
-
disableListWrap: h = !1,
|
|
782
|
-
onKeyDown: b,
|
|
783
|
-
variant: g = "selectedMenu",
|
|
784
|
-
...C
|
|
785
|
-
} = t, f = a.useRef(null), R = a.useRef({
|
|
786
|
-
keys: [],
|
|
787
|
-
repeating: !0,
|
|
788
|
-
previousKeyMatched: !0,
|
|
789
|
-
lastTime: null
|
|
790
|
-
});
|
|
791
|
-
Ko(() => {
|
|
792
|
-
p && f.current.focus();
|
|
793
|
-
}, [p]), a.useImperativeHandle(r, () => ({
|
|
794
|
-
adjustStyleForScrollbar: (c, {
|
|
795
|
-
direction: v
|
|
796
|
-
}) => {
|
|
797
|
-
const P = !f.current.style.width;
|
|
798
|
-
if (c.clientHeight < f.current.clientHeight && P) {
|
|
799
|
-
const D = `${Bo(Ue(c))}px`;
|
|
800
|
-
f.current.style[v === "rtl" ? "paddingLeft" : "paddingRight"] = D, f.current.style.width = `calc(100% + ${D})`;
|
|
801
|
-
}
|
|
802
|
-
return f.current;
|
|
803
|
-
}
|
|
804
|
-
}), []);
|
|
805
|
-
const F = (c) => {
|
|
806
|
-
const v = f.current, P = c.key;
|
|
807
|
-
if (c.ctrlKey || c.metaKey || c.altKey) {
|
|
808
|
-
b && b(c);
|
|
809
|
-
return;
|
|
810
|
-
}
|
|
811
|
-
const W = xe(v).activeElement;
|
|
812
|
-
if (P === "ArrowDown")
|
|
813
|
-
c.preventDefault(), fe(v, W, h, u, Be);
|
|
814
|
-
else if (P === "ArrowUp")
|
|
815
|
-
c.preventDefault(), fe(v, W, h, u, uo);
|
|
816
|
-
else if (P === "Home")
|
|
817
|
-
c.preventDefault(), fe(v, null, h, u, Be);
|
|
818
|
-
else if (P === "End")
|
|
819
|
-
c.preventDefault(), fe(v, null, h, u, uo);
|
|
820
|
-
else if (P.length === 1) {
|
|
821
|
-
const T = R.current, L = P.toLowerCase(), B = performance.now();
|
|
822
|
-
T.keys.length > 0 && (B - T.lastTime > 500 ? (T.keys = [], T.repeating = !0, T.previousKeyMatched = !0) : T.repeating && L !== T.keys[0] && (T.repeating = !1)), T.lastTime = B, T.keys.push(L);
|
|
823
|
-
const A = W && !T.repeating && Co(W, T);
|
|
824
|
-
T.previousKeyMatched && (A || fe(v, W, !1, u, Be, T)) ? c.preventDefault() : T.previousKeyMatched = !1;
|
|
825
|
-
}
|
|
826
|
-
b && b(c);
|
|
827
|
-
}, S = Fe(f, n);
|
|
828
|
-
let m = -1;
|
|
829
|
-
a.Children.forEach(s, (c, v) => {
|
|
830
|
-
if (!/* @__PURE__ */ a.isValidElement(c)) {
|
|
831
|
-
m === v && (m += 1, m >= s.length && (m = -1));
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
process.env.NODE_ENV !== "production" && qe.isFragment(c) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
835
|
-
`)), c.props.disabled || (g === "selectedMenu" && c.props.selected || m === -1) && (m = v), m === v && (c.props.disabled || c.props.muiSkipListHighlight || c.type.muiSkipListHighlight) && (m += 1, m >= s.length && (m = -1));
|
|
836
|
-
});
|
|
837
|
-
const I = a.Children.map(s, (c, v) => {
|
|
838
|
-
if (v === m) {
|
|
839
|
-
const P = {};
|
|
840
|
-
return d && (P.autoFocus = !0), c.props.tabIndex === void 0 && g === "selectedMenu" && (P.tabIndex = 0), /* @__PURE__ */ a.cloneElement(c, P);
|
|
841
|
-
}
|
|
842
|
-
return c;
|
|
843
|
-
});
|
|
844
|
-
return /* @__PURE__ */ w(Oo, {
|
|
845
|
-
role: "menu",
|
|
846
|
-
ref: S,
|
|
847
|
-
className: i,
|
|
848
|
-
onKeyDown: F,
|
|
849
|
-
tabIndex: p ? 0 : -1,
|
|
850
|
-
...C,
|
|
851
|
-
children: I
|
|
852
|
-
});
|
|
853
|
-
});
|
|
854
|
-
process.env.NODE_ENV !== "production" && (Ro.propTypes = {
|
|
855
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
856
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
857
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
858
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
859
|
-
/**
|
|
860
|
-
* If `true`, will focus the `[role="menu"]` container and move into tab order.
|
|
861
|
-
* @default false
|
|
862
|
-
*/
|
|
863
|
-
autoFocus: e.bool,
|
|
864
|
-
/**
|
|
865
|
-
* If `true`, will focus the first menuitem if `variant="menu"` or selected item
|
|
866
|
-
* if `variant="selectedMenu"`.
|
|
867
|
-
* @default false
|
|
868
|
-
*/
|
|
869
|
-
autoFocusItem: e.bool,
|
|
870
|
-
/**
|
|
871
|
-
* MenuList contents, normally `MenuItem`s.
|
|
872
|
-
*/
|
|
873
|
-
children: e.node,
|
|
874
|
-
/**
|
|
875
|
-
* @ignore
|
|
876
|
-
*/
|
|
877
|
-
className: e.string,
|
|
878
|
-
/**
|
|
879
|
-
* If `true`, will allow focus on disabled items.
|
|
880
|
-
* @default false
|
|
881
|
-
*/
|
|
882
|
-
disabledItemsFocusable: e.bool,
|
|
883
|
-
/**
|
|
884
|
-
* If `true`, the menu items will not wrap focus.
|
|
885
|
-
* @default false
|
|
886
|
-
*/
|
|
887
|
-
disableListWrap: e.bool,
|
|
888
|
-
/**
|
|
889
|
-
* @ignore
|
|
890
|
-
*/
|
|
891
|
-
onKeyDown: e.func,
|
|
892
|
-
/**
|
|
893
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
894
|
-
* and the vertical alignment relative to the anchor element.
|
|
895
|
-
* @default 'selectedMenu'
|
|
896
|
-
*/
|
|
897
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
898
|
-
});
|
|
899
|
-
function pt(o) {
|
|
900
|
-
return Z("MuiPopover", o);
|
|
901
|
-
}
|
|
902
|
-
Q("MuiPopover", ["root", "paper"]);
|
|
903
|
-
function fo(o, t) {
|
|
904
|
-
let n = 0;
|
|
905
|
-
return typeof t == "number" ? n = t : t === "center" ? n = o.height / 2 : t === "bottom" && (n = o.height), n;
|
|
906
|
-
}
|
|
907
|
-
function mo(o, t) {
|
|
908
|
-
let n = 0;
|
|
909
|
-
return typeof t == "number" ? n = t : t === "center" ? n = o.width / 2 : t === "right" && (n = o.width), n;
|
|
910
|
-
}
|
|
911
|
-
function bo(o) {
|
|
912
|
-
return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
|
|
913
|
-
}
|
|
914
|
-
function Te(o) {
|
|
915
|
-
return typeof o == "function" ? o() : o;
|
|
916
|
-
}
|
|
917
|
-
const dt = (o) => {
|
|
918
|
-
const {
|
|
919
|
-
classes: t
|
|
920
|
-
} = o;
|
|
921
|
-
return oe({
|
|
922
|
-
root: ["root"],
|
|
923
|
-
paper: ["paper"]
|
|
924
|
-
}, pt, t);
|
|
925
|
-
}, ct = x(Uo, {
|
|
926
|
-
name: "MuiPopover",
|
|
927
|
-
slot: "Root",
|
|
928
|
-
overridesResolver: (o, t) => t.root
|
|
929
|
-
})({}), So = x(zo, {
|
|
930
|
-
name: "MuiPopover",
|
|
931
|
-
slot: "Paper",
|
|
932
|
-
overridesResolver: (o, t) => t.paper
|
|
933
|
-
})({
|
|
934
|
-
position: "absolute",
|
|
935
|
-
overflowY: "auto",
|
|
936
|
-
overflowX: "hidden",
|
|
937
|
-
// So we see the popover when it's empty.
|
|
938
|
-
// It's most likely on issue on userland.
|
|
939
|
-
minWidth: 16,
|
|
940
|
-
minHeight: 16,
|
|
941
|
-
maxWidth: "calc(100% - 32px)",
|
|
942
|
-
maxHeight: "calc(100% - 32px)",
|
|
943
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
944
|
-
outline: 0
|
|
945
|
-
}), Io = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
946
|
-
const r = re({
|
|
947
|
-
props: t,
|
|
948
|
-
name: "MuiPopover"
|
|
949
|
-
}), {
|
|
950
|
-
action: p,
|
|
951
|
-
anchorEl: d,
|
|
952
|
-
anchorOrigin: s = {
|
|
953
|
-
vertical: "top",
|
|
954
|
-
horizontal: "left"
|
|
955
|
-
},
|
|
956
|
-
anchorPosition: i,
|
|
957
|
-
anchorReference: u = "anchorEl",
|
|
958
|
-
children: h,
|
|
959
|
-
className: b,
|
|
960
|
-
container: g,
|
|
961
|
-
elevation: C = 8,
|
|
962
|
-
marginThreshold: f = 16,
|
|
963
|
-
open: R,
|
|
964
|
-
PaperProps: F = {},
|
|
965
|
-
slots: S = {},
|
|
966
|
-
slotProps: m = {},
|
|
967
|
-
transformOrigin: I = {
|
|
968
|
-
vertical: "top",
|
|
969
|
-
horizontal: "left"
|
|
970
|
-
},
|
|
971
|
-
TransitionComponent: c = Xo,
|
|
972
|
-
transitionDuration: v = "auto",
|
|
973
|
-
TransitionProps: {
|
|
974
|
-
onEntering: P,
|
|
975
|
-
...D
|
|
976
|
-
} = {},
|
|
977
|
-
disableScrollLock: W = !1,
|
|
978
|
-
...T
|
|
979
|
-
} = r, L = (m == null ? void 0 : m.paper) ?? F, B = a.useRef(), A = {
|
|
980
|
-
...r,
|
|
981
|
-
anchorOrigin: s,
|
|
982
|
-
anchorReference: u,
|
|
983
|
-
elevation: C,
|
|
984
|
-
marginThreshold: f,
|
|
985
|
-
externalPaperSlotProps: L,
|
|
986
|
-
transformOrigin: I,
|
|
987
|
-
TransitionComponent: c,
|
|
988
|
-
transitionDuration: v,
|
|
989
|
-
TransitionProps: D
|
|
990
|
-
}, V = dt(A), U = a.useCallback(() => {
|
|
991
|
-
if (u === "anchorPosition")
|
|
992
|
-
return process.env.NODE_ENV !== "production" && (i || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), i;
|
|
993
|
-
const M = Te(d), E = M && M.nodeType === 1 ? M : xe(B.current).body, N = E.getBoundingClientRect();
|
|
994
|
-
if (process.env.NODE_ENV !== "production") {
|
|
995
|
-
const J = E.getBoundingClientRect();
|
|
996
|
-
process.env.NODE_ENV !== "test" && J.top === 0 && J.left === 0 && J.right === 0 && J.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
997
|
-
`));
|
|
998
|
-
}
|
|
999
|
-
return {
|
|
1000
|
-
top: N.top + fo(N, s.vertical),
|
|
1001
|
-
left: N.left + mo(N, s.horizontal)
|
|
1002
|
-
};
|
|
1003
|
-
}, [d, s.horizontal, s.vertical, i, u]), K = a.useCallback((M) => ({
|
|
1004
|
-
vertical: fo(M, I.vertical),
|
|
1005
|
-
horizontal: mo(M, I.horizontal)
|
|
1006
|
-
}), [I.horizontal, I.vertical]), G = a.useCallback((M) => {
|
|
1007
|
-
const E = {
|
|
1008
|
-
width: M.offsetWidth,
|
|
1009
|
-
height: M.offsetHeight
|
|
1010
|
-
}, N = K(E);
|
|
1011
|
-
if (u === "none")
|
|
1012
|
-
return {
|
|
1013
|
-
top: null,
|
|
1014
|
-
left: null,
|
|
1015
|
-
transformOrigin: bo(N)
|
|
1016
|
-
};
|
|
1017
|
-
const J = U();
|
|
1018
|
-
let te = J.top - N.vertical, _ = J.left - N.horizontal;
|
|
1019
|
-
const Oe = te + E.height, Ce = _ + E.width, Re = Ue(Te(d)), H = Re.innerHeight - f, Se = Re.innerWidth - f;
|
|
1020
|
-
if (f !== null && te < f) {
|
|
1021
|
-
const k = te - f;
|
|
1022
|
-
te -= k, N.vertical += k;
|
|
1023
|
-
} else if (f !== null && Oe > H) {
|
|
1024
|
-
const k = Oe - H;
|
|
1025
|
-
te -= k, N.vertical += k;
|
|
1026
|
-
}
|
|
1027
|
-
if (process.env.NODE_ENV !== "production" && E.height > H && E.height && H && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${E.height - H}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
1028
|
-
`)), f !== null && _ < f) {
|
|
1029
|
-
const k = _ - f;
|
|
1030
|
-
_ -= k, N.horizontal += k;
|
|
1031
|
-
} else if (Ce > Se) {
|
|
1032
|
-
const k = Ce - Se;
|
|
1033
|
-
_ -= k, N.horizontal += k;
|
|
1034
|
-
}
|
|
1035
|
-
return {
|
|
1036
|
-
top: `${Math.round(te)}px`,
|
|
1037
|
-
left: `${Math.round(_)}px`,
|
|
1038
|
-
transformOrigin: bo(N)
|
|
1039
|
-
};
|
|
1040
|
-
}, [d, u, U, K, f]), [$, z] = a.useState(R), y = a.useCallback(() => {
|
|
1041
|
-
const M = B.current;
|
|
1042
|
-
if (!M)
|
|
1043
|
-
return;
|
|
1044
|
-
const E = G(M);
|
|
1045
|
-
E.top !== null && M.style.setProperty("top", E.top), E.left !== null && (M.style.left = E.left), M.style.transformOrigin = E.transformOrigin, z(!0);
|
|
1046
|
-
}, [G]);
|
|
1047
|
-
a.useEffect(() => (W && window.addEventListener("scroll", y), () => window.removeEventListener("scroll", y)), [d, W, y]);
|
|
1048
|
-
const ae = (M, E) => {
|
|
1049
|
-
P && P(M, E), y();
|
|
1050
|
-
}, be = () => {
|
|
1051
|
-
z(!1);
|
|
1052
|
-
};
|
|
1053
|
-
a.useEffect(() => {
|
|
1054
|
-
R && y();
|
|
1055
|
-
}), a.useImperativeHandle(p, () => R ? {
|
|
1056
|
-
updatePosition: () => {
|
|
1057
|
-
y();
|
|
1058
|
-
}
|
|
1059
|
-
} : null, [R, y]), a.useEffect(() => {
|
|
1060
|
-
if (!R)
|
|
1061
|
-
return;
|
|
1062
|
-
const M = _o(() => {
|
|
1063
|
-
y();
|
|
1064
|
-
}), E = Ue(d);
|
|
1065
|
-
return E.addEventListener("resize", M), () => {
|
|
1066
|
-
M.clear(), E.removeEventListener("resize", M);
|
|
1067
|
-
};
|
|
1068
|
-
}, [d, R, y]);
|
|
1069
|
-
let he = v;
|
|
1070
|
-
v === "auto" && !c.muiSupportAuto && (he = void 0);
|
|
1071
|
-
const ge = g || (d ? xe(Te(d)).body : void 0), q = {
|
|
1072
|
-
slots: S,
|
|
1073
|
-
slotProps: {
|
|
1074
|
-
...m,
|
|
1075
|
-
paper: L
|
|
1076
|
-
}
|
|
1077
|
-
}, [Y, ve] = po("paper", {
|
|
1078
|
-
elementType: So,
|
|
1079
|
-
externalForwardedProps: q,
|
|
1080
|
-
additionalProps: {
|
|
1081
|
-
elevation: C,
|
|
1082
|
-
className: ne(V.paper, L == null ? void 0 : L.className),
|
|
1083
|
-
style: $ ? L.style : {
|
|
1084
|
-
...L.style,
|
|
1085
|
-
opacity: 0
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
ownerState: A
|
|
1089
|
-
}), [le, {
|
|
1090
|
-
slotProps: Le,
|
|
1091
|
-
...ye
|
|
1092
|
-
}] = po("root", {
|
|
1093
|
-
elementType: ct,
|
|
1094
|
-
externalForwardedProps: q,
|
|
1095
|
-
additionalProps: {
|
|
1096
|
-
slotProps: {
|
|
1097
|
-
backdrop: {
|
|
1098
|
-
invisible: !0
|
|
1099
|
-
}
|
|
1100
|
-
},
|
|
1101
|
-
container: ge,
|
|
1102
|
-
open: R
|
|
1103
|
-
},
|
|
1104
|
-
ownerState: A,
|
|
1105
|
-
className: ne(V.root, b)
|
|
1106
|
-
}), je = Fe(B, ve.ref);
|
|
1107
|
-
return /* @__PURE__ */ w(le, {
|
|
1108
|
-
...ye,
|
|
1109
|
-
...!Ao(le) && {
|
|
1110
|
-
slotProps: Le,
|
|
1111
|
-
disableScrollLock: W
|
|
1112
|
-
},
|
|
1113
|
-
...T,
|
|
1114
|
-
ref: n,
|
|
1115
|
-
children: /* @__PURE__ */ w(c, {
|
|
1116
|
-
appear: !0,
|
|
1117
|
-
in: R,
|
|
1118
|
-
onEntering: ae,
|
|
1119
|
-
onExited: be,
|
|
1120
|
-
timeout: he,
|
|
1121
|
-
...D,
|
|
1122
|
-
children: /* @__PURE__ */ w(Y, {
|
|
1123
|
-
...ve,
|
|
1124
|
-
ref: je,
|
|
1125
|
-
children: h
|
|
1126
|
-
})
|
|
1127
|
-
})
|
|
1128
|
-
});
|
|
1129
|
-
});
|
|
1130
|
-
process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
1131
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1132
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1133
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1134
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1135
|
-
/**
|
|
1136
|
-
* A ref for imperative actions.
|
|
1137
|
-
* It currently only supports updatePosition() action.
|
|
1138
|
-
*/
|
|
1139
|
-
action: ce,
|
|
1140
|
-
/**
|
|
1141
|
-
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
1142
|
-
* or a function that returns either.
|
|
1143
|
-
* It's used to set the position of the popover.
|
|
1144
|
-
*/
|
|
1145
|
-
anchorEl: qo(e.oneOfType([ze, e.func]), (o) => {
|
|
1146
|
-
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
1147
|
-
const t = Te(o.anchorEl);
|
|
1148
|
-
if (t && t.nodeType === 1) {
|
|
1149
|
-
const n = t.getBoundingClientRect();
|
|
1150
|
-
if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
|
|
1151
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1152
|
-
`));
|
|
1153
|
-
} else
|
|
1154
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
1155
|
-
`));
|
|
1156
|
-
}
|
|
1157
|
-
return null;
|
|
1158
|
-
}),
|
|
1159
|
-
/**
|
|
1160
|
-
* This is the point on the anchor where the popover's
|
|
1161
|
-
* `anchorEl` will attach to. This is not used when the
|
|
1162
|
-
* anchorReference is 'anchorPosition'.
|
|
1163
|
-
*
|
|
1164
|
-
* Options:
|
|
1165
|
-
* vertical: [top, center, bottom];
|
|
1166
|
-
* horizontal: [left, center, right].
|
|
1167
|
-
* @default {
|
|
1168
|
-
* vertical: 'top',
|
|
1169
|
-
* horizontal: 'left',
|
|
1170
|
-
* }
|
|
1171
|
-
*/
|
|
1172
|
-
anchorOrigin: e.shape({
|
|
1173
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
1174
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
1175
|
-
}),
|
|
1176
|
-
/**
|
|
1177
|
-
* This is the position that may be used to set the position of the popover.
|
|
1178
|
-
* The coordinates are relative to the application's client area.
|
|
1179
|
-
*/
|
|
1180
|
-
anchorPosition: e.shape({
|
|
1181
|
-
left: e.number.isRequired,
|
|
1182
|
-
top: e.number.isRequired
|
|
1183
|
-
}),
|
|
1184
|
-
/**
|
|
1185
|
-
* This determines which anchor prop to refer to when setting
|
|
1186
|
-
* the position of the popover.
|
|
1187
|
-
* @default 'anchorEl'
|
|
1188
|
-
*/
|
|
1189
|
-
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
1190
|
-
/**
|
|
1191
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
1192
|
-
* @deprecated Use `slotProps.root.slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
1193
|
-
* Use the `slotProps.root.slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
1194
|
-
* @default styled(Backdrop, {
|
|
1195
|
-
* name: 'MuiModal',
|
|
1196
|
-
* slot: 'Backdrop',
|
|
1197
|
-
* overridesResolver: (props, styles) => {
|
|
1198
|
-
* return styles.backdrop;
|
|
1199
|
-
* },
|
|
1200
|
-
* })({
|
|
1201
|
-
* zIndex: -1,
|
|
1202
|
-
* })
|
|
1203
|
-
*/
|
|
1204
|
-
BackdropComponent: e.elementType,
|
|
1205
|
-
/**
|
|
1206
|
-
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
1207
|
-
* @deprecated Use `slotProps.root.slotProps.backdrop` instead.
|
|
1208
|
-
*/
|
|
1209
|
-
BackdropProps: e.object,
|
|
1210
|
-
/**
|
|
1211
|
-
* The content of the component.
|
|
1212
|
-
*/
|
|
1213
|
-
children: e.node,
|
|
1214
|
-
/**
|
|
1215
|
-
* Override or extend the styles applied to the component.
|
|
1216
|
-
*/
|
|
1217
|
-
classes: e.object,
|
|
1218
|
-
/**
|
|
1219
|
-
* @ignore
|
|
1220
|
-
*/
|
|
1221
|
-
className: e.string,
|
|
1222
|
-
/**
|
|
1223
|
-
* An HTML element, component instance, or function that returns either.
|
|
1224
|
-
* The `container` will passed to the Modal component.
|
|
1225
|
-
*
|
|
1226
|
-
* By default, it uses the body of the anchorEl's top-level document object,
|
|
1227
|
-
* so it's simply `document.body` most of the time.
|
|
1228
|
-
*/
|
|
1229
|
-
container: e.oneOfType([ze, e.func]),
|
|
1230
|
-
/**
|
|
1231
|
-
* Disable the scroll lock behavior.
|
|
1232
|
-
* @default false
|
|
1233
|
-
*/
|
|
1234
|
-
disableScrollLock: e.bool,
|
|
1235
|
-
/**
|
|
1236
|
-
* The elevation of the popover.
|
|
1237
|
-
* @default 8
|
|
1238
|
-
*/
|
|
1239
|
-
elevation: Vo,
|
|
1240
|
-
/**
|
|
1241
|
-
* Specifies how close to the edge of the window the popover can appear.
|
|
1242
|
-
* If null, the popover will not be constrained by the window.
|
|
1243
|
-
* @default 16
|
|
1244
|
-
*/
|
|
1245
|
-
marginThreshold: e.number,
|
|
1246
|
-
/**
|
|
1247
|
-
* Callback fired when the component requests to be closed.
|
|
1248
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
1249
|
-
*/
|
|
1250
|
-
onClose: e.func,
|
|
1251
|
-
/**
|
|
1252
|
-
* If `true`, the component is shown.
|
|
1253
|
-
*/
|
|
1254
|
-
open: e.bool.isRequired,
|
|
1255
|
-
/**
|
|
1256
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
1257
|
-
*
|
|
1258
|
-
* This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
|
|
1259
|
-
* @deprecated Use `slotProps.paper` instead.
|
|
1260
|
-
*
|
|
1261
|
-
* @default {}
|
|
1262
|
-
*/
|
|
1263
|
-
PaperProps: e.shape({
|
|
1264
|
-
component: Ho
|
|
1265
|
-
}),
|
|
1266
|
-
/**
|
|
1267
|
-
* The props used for each slot inside.
|
|
1268
|
-
* @default {}
|
|
1269
|
-
*/
|
|
1270
|
-
slotProps: e.shape({
|
|
1271
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
1272
|
-
root: e.oneOfType([e.func, e.object])
|
|
1273
|
-
}),
|
|
1274
|
-
/**
|
|
1275
|
-
* The components used for each slot inside.
|
|
1276
|
-
* @default {}
|
|
1277
|
-
*/
|
|
1278
|
-
slots: e.shape({
|
|
1279
|
-
paper: e.elementType,
|
|
1280
|
-
root: e.elementType
|
|
1281
|
-
}),
|
|
1282
|
-
/**
|
|
1283
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1284
|
-
*/
|
|
1285
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1286
|
-
/**
|
|
1287
|
-
* This is the point on the popover which
|
|
1288
|
-
* will attach to the anchor's origin.
|
|
1289
|
-
*
|
|
1290
|
-
* Options:
|
|
1291
|
-
* vertical: [top, center, bottom, x(px)];
|
|
1292
|
-
* horizontal: [left, center, right, x(px)].
|
|
1293
|
-
* @default {
|
|
1294
|
-
* vertical: 'top',
|
|
1295
|
-
* horizontal: 'left',
|
|
1296
|
-
* }
|
|
1297
|
-
*/
|
|
1298
|
-
transformOrigin: e.shape({
|
|
1299
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
1300
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
1301
|
-
}),
|
|
1302
|
-
/**
|
|
1303
|
-
* The component used for the transition.
|
|
1304
|
-
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
1305
|
-
* @default Grow
|
|
1306
|
-
*/
|
|
1307
|
-
TransitionComponent: e.elementType,
|
|
1308
|
-
/**
|
|
1309
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
1310
|
-
* @default 'auto'
|
|
1311
|
-
*/
|
|
1312
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
1313
|
-
appear: e.number,
|
|
1314
|
-
enter: e.number,
|
|
1315
|
-
exit: e.number
|
|
1316
|
-
})]),
|
|
1317
|
-
/**
|
|
1318
|
-
* Props applied to the transition element.
|
|
1319
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1320
|
-
* @default {}
|
|
1321
|
-
*/
|
|
1322
|
-
TransitionProps: e.object
|
|
1323
|
-
});
|
|
1324
|
-
function ut(o) {
|
|
1325
|
-
return Z("MuiMenu", o);
|
|
1326
|
-
}
|
|
1327
|
-
const On = Q("MuiMenu", ["root", "paper", "list"]), ft = {
|
|
1328
|
-
vertical: "top",
|
|
1329
|
-
horizontal: "right"
|
|
1330
|
-
}, mt = {
|
|
1331
|
-
vertical: "top",
|
|
1332
|
-
horizontal: "left"
|
|
1333
|
-
}, bt = (o) => {
|
|
1334
|
-
const {
|
|
1335
|
-
classes: t
|
|
1336
|
-
} = o;
|
|
1337
|
-
return oe({
|
|
1338
|
-
root: ["root"],
|
|
1339
|
-
paper: ["paper"],
|
|
1340
|
-
list: ["list"]
|
|
1341
|
-
}, ut, t);
|
|
1342
|
-
}, ht = x(Io, {
|
|
1343
|
-
shouldForwardProp: (o) => ee(o) || o === "classes",
|
|
1344
|
-
name: "MuiMenu",
|
|
1345
|
-
slot: "Root",
|
|
1346
|
-
overridesResolver: (o, t) => t.root
|
|
1347
|
-
})({}), gt = x(So, {
|
|
1348
|
-
name: "MuiMenu",
|
|
1349
|
-
slot: "Paper",
|
|
1350
|
-
overridesResolver: (o, t) => t.paper
|
|
1351
|
-
})({
|
|
1352
|
-
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
1353
|
-
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
1354
|
-
// the menu.
|
|
1355
|
-
maxHeight: "calc(100% - 96px)",
|
|
1356
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
1357
|
-
WebkitOverflowScrolling: "touch"
|
|
1358
|
-
}), vt = x(Ro, {
|
|
1359
|
-
name: "MuiMenu",
|
|
1360
|
-
slot: "List",
|
|
1361
|
-
overridesResolver: (o, t) => t.list
|
|
1362
|
-
})({
|
|
1363
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1364
|
-
outline: 0
|
|
1365
|
-
}), wo = /* @__PURE__ */ a.forwardRef(function(t, n) {
|
|
1366
|
-
const r = re({
|
|
1367
|
-
props: t,
|
|
1368
|
-
name: "MuiMenu"
|
|
1369
|
-
}), {
|
|
1370
|
-
autoFocus: p = !0,
|
|
1371
|
-
children: d,
|
|
1372
|
-
className: s,
|
|
1373
|
-
disableAutoFocusItem: i = !1,
|
|
1374
|
-
MenuListProps: u = {},
|
|
1375
|
-
onClose: h,
|
|
1376
|
-
open: b,
|
|
1377
|
-
PaperProps: g = {},
|
|
1378
|
-
PopoverClasses: C,
|
|
1379
|
-
transitionDuration: f = "auto",
|
|
1380
|
-
TransitionProps: {
|
|
1381
|
-
onEntering: R,
|
|
1382
|
-
...F
|
|
1383
|
-
} = {},
|
|
1384
|
-
variant: S = "selectedMenu",
|
|
1385
|
-
slots: m = {},
|
|
1386
|
-
slotProps: I = {},
|
|
1387
|
-
...c
|
|
1388
|
-
} = r, v = Wo(), P = {
|
|
1389
|
-
...r,
|
|
1390
|
-
autoFocus: p,
|
|
1391
|
-
disableAutoFocusItem: i,
|
|
1392
|
-
MenuListProps: u,
|
|
1393
|
-
onEntering: R,
|
|
1394
|
-
PaperProps: g,
|
|
1395
|
-
transitionDuration: f,
|
|
1396
|
-
TransitionProps: F,
|
|
1397
|
-
variant: S
|
|
1398
|
-
}, D = bt(P), W = p && !i && b, T = a.useRef(null), L = ($, z) => {
|
|
1399
|
-
T.current && T.current.adjustStyleForScrollbar($, {
|
|
1400
|
-
direction: v ? "rtl" : "ltr"
|
|
1401
|
-
}), R && R($, z);
|
|
1402
|
-
}, B = ($) => {
|
|
1403
|
-
$.key === "Tab" && ($.preventDefault(), h && h($, "tabKeyDown"));
|
|
1404
|
-
};
|
|
1405
|
-
let A = -1;
|
|
1406
|
-
a.Children.map(d, ($, z) => {
|
|
1407
|
-
/* @__PURE__ */ a.isValidElement($) && (process.env.NODE_ENV !== "production" && qe.isFragment($) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1408
|
-
`)), $.props.disabled || (S === "selectedMenu" && $.props.selected || A === -1) && (A = z));
|
|
1409
|
-
});
|
|
1410
|
-
const V = m.paper ?? gt, U = I.paper ?? g, K = lo({
|
|
1411
|
-
elementType: m.root,
|
|
1412
|
-
externalSlotProps: I.root,
|
|
1413
|
-
ownerState: P,
|
|
1414
|
-
className: [D.root, s]
|
|
1415
|
-
}), G = lo({
|
|
1416
|
-
elementType: V,
|
|
1417
|
-
externalSlotProps: U,
|
|
1418
|
-
ownerState: P,
|
|
1419
|
-
className: D.paper
|
|
1420
|
-
});
|
|
1421
|
-
return /* @__PURE__ */ w(ht, {
|
|
1422
|
-
onClose: h,
|
|
1423
|
-
anchorOrigin: {
|
|
1424
|
-
vertical: "bottom",
|
|
1425
|
-
horizontal: v ? "right" : "left"
|
|
1426
|
-
},
|
|
1427
|
-
transformOrigin: v ? ft : mt,
|
|
1428
|
-
slots: {
|
|
1429
|
-
paper: V,
|
|
1430
|
-
root: m.root
|
|
1431
|
-
},
|
|
1432
|
-
slotProps: {
|
|
1433
|
-
root: K,
|
|
1434
|
-
paper: G
|
|
1435
|
-
},
|
|
1436
|
-
open: b,
|
|
1437
|
-
ref: n,
|
|
1438
|
-
transitionDuration: f,
|
|
1439
|
-
TransitionProps: {
|
|
1440
|
-
onEntering: L,
|
|
1441
|
-
...F
|
|
1442
|
-
},
|
|
1443
|
-
ownerState: P,
|
|
1444
|
-
...c,
|
|
1445
|
-
classes: C,
|
|
1446
|
-
children: /* @__PURE__ */ w(vt, {
|
|
1447
|
-
onKeyDown: B,
|
|
1448
|
-
actions: T,
|
|
1449
|
-
autoFocus: p && (A === -1 || i),
|
|
1450
|
-
autoFocusItem: W,
|
|
1451
|
-
variant: S,
|
|
1452
|
-
...u,
|
|
1453
|
-
className: ne(D.list, u.className),
|
|
1454
|
-
children: d
|
|
1455
|
-
})
|
|
1456
|
-
});
|
|
1457
|
-
});
|
|
1458
|
-
process.env.NODE_ENV !== "production" && (wo.propTypes = {
|
|
1459
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1460
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1461
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1462
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1463
|
-
/**
|
|
1464
|
-
* An HTML element, or a function that returns one.
|
|
1465
|
-
* It's used to set the position of the menu.
|
|
1466
|
-
*/
|
|
1467
|
-
anchorEl: e.oneOfType([ze, e.func]),
|
|
1468
|
-
/**
|
|
1469
|
-
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
1470
|
-
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
1471
|
-
* on the parent modal container. This has severe accessibility implications
|
|
1472
|
-
* and should only be considered if you manage focus otherwise.
|
|
1473
|
-
* @default true
|
|
1474
|
-
*/
|
|
1475
|
-
autoFocus: e.bool,
|
|
1476
|
-
/**
|
|
1477
|
-
* Menu contents, normally `MenuItem`s.
|
|
1478
|
-
*/
|
|
1479
|
-
children: e.node,
|
|
1480
|
-
/**
|
|
1481
|
-
* Override or extend the styles applied to the component.
|
|
1482
|
-
*/
|
|
1483
|
-
classes: e.object,
|
|
1484
|
-
/**
|
|
1485
|
-
* @ignore
|
|
1486
|
-
*/
|
|
1487
|
-
className: e.string,
|
|
1488
|
-
/**
|
|
1489
|
-
* When opening the menu will not focus the active item but the `[role="menu"]`
|
|
1490
|
-
* unless `autoFocus` is also set to `false`. Not using the default means not
|
|
1491
|
-
* following WAI-ARIA authoring practices. Please be considerate about possible
|
|
1492
|
-
* accessibility implications.
|
|
1493
|
-
* @default false
|
|
1494
|
-
*/
|
|
1495
|
-
disableAutoFocusItem: e.bool,
|
|
1496
|
-
/**
|
|
1497
|
-
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
1498
|
-
* @default {}
|
|
1499
|
-
*/
|
|
1500
|
-
MenuListProps: e.object,
|
|
1501
|
-
/**
|
|
1502
|
-
* Callback fired when the component requests to be closed.
|
|
1503
|
-
*
|
|
1504
|
-
* @param {object} event The event source of the callback.
|
|
1505
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
1506
|
-
*/
|
|
1507
|
-
onClose: e.func,
|
|
1508
|
-
/**
|
|
1509
|
-
* If `true`, the component is shown.
|
|
1510
|
-
*/
|
|
1511
|
-
open: e.bool.isRequired,
|
|
1512
|
-
/**
|
|
1513
|
-
* @ignore
|
|
1514
|
-
*/
|
|
1515
|
-
PaperProps: e.object,
|
|
1516
|
-
/**
|
|
1517
|
-
* `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
|
|
1518
|
-
*/
|
|
1519
|
-
PopoverClasses: e.object,
|
|
1520
|
-
/**
|
|
1521
|
-
* The props used for each slot inside.
|
|
1522
|
-
* @default {}
|
|
1523
|
-
*/
|
|
1524
|
-
slotProps: e.shape({
|
|
1525
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
1526
|
-
root: e.oneOfType([e.func, e.object])
|
|
1527
|
-
}),
|
|
1528
|
-
/**
|
|
1529
|
-
* The components used for each slot inside.
|
|
1530
|
-
* @default {}
|
|
1531
|
-
*/
|
|
1532
|
-
slots: e.shape({
|
|
1533
|
-
paper: e.elementType,
|
|
1534
|
-
root: e.elementType
|
|
1535
|
-
}),
|
|
1536
|
-
/**
|
|
1537
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1538
|
-
*/
|
|
1539
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1540
|
-
/**
|
|
1541
|
-
* The length of the transition in `ms`, or 'auto'
|
|
1542
|
-
* @default 'auto'
|
|
1543
|
-
*/
|
|
1544
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
1545
|
-
appear: e.number,
|
|
1546
|
-
enter: e.number,
|
|
1547
|
-
exit: e.number
|
|
1548
|
-
})]),
|
|
1549
|
-
/**
|
|
1550
|
-
* Props applied to the transition element.
|
|
1551
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
1552
|
-
* @default {}
|
|
1553
|
-
*/
|
|
1554
|
-
TransitionProps: e.object,
|
|
1555
|
-
/**
|
|
1556
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
|
|
1557
|
-
* @default 'selectedMenu'
|
|
1558
|
-
*/
|
|
1559
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
1560
|
-
});
|
|
1561
|
-
function yt(o) {
|
|
1562
|
-
return Z("MuiNativeSelect", o);
|
|
1563
|
-
}
|
|
1564
|
-
const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Ot = (o) => {
|
|
618
|
+
const ke = D("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Fo = (o) => {
|
|
1565
619
|
const {
|
|
1566
620
|
classes: t,
|
|
1567
621
|
variant: n,
|
|
1568
622
|
disabled: r,
|
|
1569
|
-
multiple:
|
|
1570
|
-
open:
|
|
1571
|
-
error:
|
|
1572
|
-
} = o,
|
|
1573
|
-
select: ["select", n, r && "disabled",
|
|
1574
|
-
icon: ["icon", `icon${
|
|
623
|
+
multiple: i,
|
|
624
|
+
open: p,
|
|
625
|
+
error: a
|
|
626
|
+
} = o, d = {
|
|
627
|
+
select: ["select", n, r && "disabled", i && "multiple", a && "error"],
|
|
628
|
+
icon: ["icon", `icon${z(n)}`, p && "iconOpen", r && "disabled"]
|
|
1575
629
|
};
|
|
1576
|
-
return
|
|
1577
|
-
},
|
|
630
|
+
return V(d, Eo, t);
|
|
631
|
+
}, He = h("select")(({
|
|
1578
632
|
theme: o
|
|
1579
633
|
}) => ({
|
|
1580
634
|
// Reset
|
|
@@ -1591,7 +645,7 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
1591
645
|
// Reset Chrome style
|
|
1592
646
|
borderRadius: 0
|
|
1593
647
|
},
|
|
1594
|
-
[`&.${
|
|
648
|
+
[`&.${ke.disabled}`]: {
|
|
1595
649
|
cursor: "default"
|
|
1596
650
|
},
|
|
1597
651
|
"&[multiple]": {
|
|
@@ -1636,19 +690,19 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
1636
690
|
}
|
|
1637
691
|
}
|
|
1638
692
|
}]
|
|
1639
|
-
})),
|
|
693
|
+
})), Mo = h(He, {
|
|
1640
694
|
name: "MuiNativeSelect",
|
|
1641
695
|
slot: "Select",
|
|
1642
|
-
shouldForwardProp:
|
|
696
|
+
shouldForwardProp: k,
|
|
1643
697
|
overridesResolver: (o, t) => {
|
|
1644
698
|
const {
|
|
1645
699
|
ownerState: n
|
|
1646
700
|
} = o;
|
|
1647
701
|
return [t.select, t[n.variant], n.error && t.error, {
|
|
1648
|
-
[`&.${
|
|
702
|
+
[`&.${ke.multiple}`]: t.multiple
|
|
1649
703
|
}];
|
|
1650
704
|
}
|
|
1651
|
-
})({}),
|
|
705
|
+
})({}), Ge = h("svg")(({
|
|
1652
706
|
theme: o
|
|
1653
707
|
}) => ({
|
|
1654
708
|
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
@@ -1660,7 +714,7 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
1660
714
|
// Don't block pointer events on the select under the icon.
|
|
1661
715
|
pointerEvents: "none",
|
|
1662
716
|
color: (o.vars || o).palette.action.active,
|
|
1663
|
-
[`&.${
|
|
717
|
+
[`&.${ke.disabled}`]: {
|
|
1664
718
|
color: (o.vars || o).palette.action.disabled
|
|
1665
719
|
},
|
|
1666
720
|
variants: [{
|
|
@@ -1685,45 +739,45 @@ const eo = Q("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlin
|
|
|
1685
739
|
right: 7
|
|
1686
740
|
}
|
|
1687
741
|
}]
|
|
1688
|
-
})),
|
|
742
|
+
})), jo = h(Ge, {
|
|
1689
743
|
name: "MuiNativeSelect",
|
|
1690
744
|
slot: "Icon",
|
|
1691
745
|
overridesResolver: (o, t) => {
|
|
1692
746
|
const {
|
|
1693
747
|
ownerState: n
|
|
1694
748
|
} = o;
|
|
1695
|
-
return [t.icon, n.variant && t[`icon${
|
|
749
|
+
return [t.icon, n.variant && t[`icon${z(n.variant)}`], n.open && t.iconOpen];
|
|
1696
750
|
}
|
|
1697
|
-
})({}),
|
|
751
|
+
})({}), Ye = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
1698
752
|
const {
|
|
1699
753
|
className: r,
|
|
1700
|
-
disabled:
|
|
1701
|
-
error:
|
|
1702
|
-
IconComponent:
|
|
1703
|
-
inputRef:
|
|
1704
|
-
variant:
|
|
1705
|
-
...
|
|
1706
|
-
} = t,
|
|
754
|
+
disabled: i,
|
|
755
|
+
error: p,
|
|
756
|
+
IconComponent: a,
|
|
757
|
+
inputRef: d,
|
|
758
|
+
variant: m = "standard",
|
|
759
|
+
...g
|
|
760
|
+
} = t, f = {
|
|
1707
761
|
...t,
|
|
1708
|
-
disabled:
|
|
1709
|
-
variant:
|
|
1710
|
-
error:
|
|
1711
|
-
},
|
|
1712
|
-
return /* @__PURE__ */
|
|
1713
|
-
children: [/* @__PURE__ */
|
|
1714
|
-
ownerState:
|
|
1715
|
-
className:
|
|
1716
|
-
disabled:
|
|
1717
|
-
ref:
|
|
1718
|
-
...
|
|
1719
|
-
}), t.multiple ? null : /* @__PURE__ */
|
|
1720
|
-
as:
|
|
1721
|
-
ownerState:
|
|
1722
|
-
className:
|
|
762
|
+
disabled: i,
|
|
763
|
+
variant: m,
|
|
764
|
+
error: p
|
|
765
|
+
}, c = Fo(f);
|
|
766
|
+
return /* @__PURE__ */ Se(u.Fragment, {
|
|
767
|
+
children: [/* @__PURE__ */ v(Mo, {
|
|
768
|
+
ownerState: f,
|
|
769
|
+
className: fe(c.select, r),
|
|
770
|
+
disabled: i,
|
|
771
|
+
ref: d || n,
|
|
772
|
+
...g
|
|
773
|
+
}), t.multiple ? null : /* @__PURE__ */ v(jo, {
|
|
774
|
+
as: a,
|
|
775
|
+
ownerState: f,
|
|
776
|
+
className: c.icon
|
|
1723
777
|
})]
|
|
1724
778
|
});
|
|
1725
779
|
});
|
|
1726
|
-
process.env.NODE_ENV !== "production" && (
|
|
780
|
+
process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
1727
781
|
/**
|
|
1728
782
|
* The option elements to populate the select with.
|
|
1729
783
|
* Can be some `<option>` elements.
|
|
@@ -1753,7 +807,7 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = {
|
|
|
1753
807
|
* Use that prop to pass a ref to the native select element.
|
|
1754
808
|
* @deprecated
|
|
1755
809
|
*/
|
|
1756
|
-
inputRef:
|
|
810
|
+
inputRef: G,
|
|
1757
811
|
/**
|
|
1758
812
|
* @ignore
|
|
1759
813
|
*/
|
|
@@ -1778,12 +832,12 @@ process.env.NODE_ENV !== "production" && (xo.propTypes = {
|
|
|
1778
832
|
*/
|
|
1779
833
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
1780
834
|
});
|
|
1781
|
-
function
|
|
1782
|
-
return
|
|
835
|
+
function Lo(o) {
|
|
836
|
+
return U("MuiSelect", o);
|
|
1783
837
|
}
|
|
1784
|
-
const
|
|
1785
|
-
var
|
|
1786
|
-
const
|
|
838
|
+
const X = D("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
839
|
+
var qe;
|
|
840
|
+
const Bo = h(He, {
|
|
1787
841
|
name: "MuiSelect",
|
|
1788
842
|
slot: "Select",
|
|
1789
843
|
overridesResolver: (o, t) => {
|
|
@@ -1793,22 +847,22 @@ const It = x(Po, {
|
|
|
1793
847
|
return [
|
|
1794
848
|
// Win specificity over the input base
|
|
1795
849
|
{
|
|
1796
|
-
[`&.${
|
|
850
|
+
[`&.${X.select}`]: t.select
|
|
1797
851
|
},
|
|
1798
852
|
{
|
|
1799
|
-
[`&.${
|
|
853
|
+
[`&.${X.select}`]: t[n.variant]
|
|
1800
854
|
},
|
|
1801
855
|
{
|
|
1802
|
-
[`&.${
|
|
856
|
+
[`&.${X.error}`]: t.error
|
|
1803
857
|
},
|
|
1804
858
|
{
|
|
1805
|
-
[`&.${
|
|
859
|
+
[`&.${X.multiple}`]: t.multiple
|
|
1806
860
|
}
|
|
1807
861
|
];
|
|
1808
862
|
}
|
|
1809
863
|
})({
|
|
1810
864
|
// Win specificity over the input base
|
|
1811
|
-
[`&.${
|
|
865
|
+
[`&.${X.select}`]: {
|
|
1812
866
|
height: "auto",
|
|
1813
867
|
// Resets for multiple select with chips
|
|
1814
868
|
minHeight: "1.4375em",
|
|
@@ -1817,17 +871,17 @@ const It = x(Po, {
|
|
|
1817
871
|
whiteSpace: "nowrap",
|
|
1818
872
|
overflow: "hidden"
|
|
1819
873
|
}
|
|
1820
|
-
}),
|
|
874
|
+
}), Wo = h(Ge, {
|
|
1821
875
|
name: "MuiSelect",
|
|
1822
876
|
slot: "Icon",
|
|
1823
877
|
overridesResolver: (o, t) => {
|
|
1824
878
|
const {
|
|
1825
879
|
ownerState: n
|
|
1826
880
|
} = o;
|
|
1827
|
-
return [t.icon, n.variant && t[`icon${
|
|
881
|
+
return [t.icon, n.variant && t[`icon${z(n.variant)}`], n.open && t.iconOpen];
|
|
1828
882
|
}
|
|
1829
|
-
})({}),
|
|
1830
|
-
shouldForwardProp: (o) =>
|
|
883
|
+
})({}), Ao = h("input", {
|
|
884
|
+
shouldForwardProp: (o) => bo(o) && o !== "classes",
|
|
1831
885
|
name: "MuiSelect",
|
|
1832
886
|
slot: "NativeInput",
|
|
1833
887
|
overridesResolver: (o, t) => t.nativeInput
|
|
@@ -1840,249 +894,249 @@ const It = x(Po, {
|
|
|
1840
894
|
width: "100%",
|
|
1841
895
|
boxSizing: "border-box"
|
|
1842
896
|
});
|
|
1843
|
-
function
|
|
897
|
+
function _e(o, t) {
|
|
1844
898
|
return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
|
|
1845
899
|
}
|
|
1846
|
-
function
|
|
900
|
+
function Uo(o) {
|
|
1847
901
|
return o == null || typeof o == "string" && !o.trim();
|
|
1848
902
|
}
|
|
1849
|
-
const
|
|
903
|
+
const Do = (o) => {
|
|
1850
904
|
const {
|
|
1851
905
|
classes: t,
|
|
1852
906
|
variant: n,
|
|
1853
907
|
disabled: r,
|
|
1854
|
-
multiple:
|
|
1855
|
-
open:
|
|
1856
|
-
error:
|
|
1857
|
-
} = o,
|
|
1858
|
-
select: ["select", n, r && "disabled",
|
|
1859
|
-
icon: ["icon", `icon${
|
|
908
|
+
multiple: i,
|
|
909
|
+
open: p,
|
|
910
|
+
error: a
|
|
911
|
+
} = o, d = {
|
|
912
|
+
select: ["select", n, r && "disabled", i && "multiple", a && "error"],
|
|
913
|
+
icon: ["icon", `icon${z(n)}`, p && "iconOpen", r && "disabled"],
|
|
1860
914
|
nativeInput: ["nativeInput"]
|
|
1861
915
|
};
|
|
1862
|
-
return
|
|
1863
|
-
},
|
|
1864
|
-
var
|
|
916
|
+
return V(d, Lo, t);
|
|
917
|
+
}, Ze = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
918
|
+
var De;
|
|
1865
919
|
const {
|
|
1866
920
|
"aria-describedby": r,
|
|
1867
|
-
"aria-label":
|
|
1868
|
-
autoFocus:
|
|
1869
|
-
autoWidth:
|
|
1870
|
-
children:
|
|
1871
|
-
className:
|
|
1872
|
-
defaultOpen:
|
|
1873
|
-
defaultValue:
|
|
1874
|
-
disabled:
|
|
1875
|
-
displayEmpty:
|
|
1876
|
-
error:
|
|
1877
|
-
IconComponent:
|
|
1878
|
-
inputRef:
|
|
1879
|
-
labelId:
|
|
1880
|
-
MenuProps:
|
|
1881
|
-
multiple:
|
|
1882
|
-
name:
|
|
1883
|
-
onBlur:
|
|
1884
|
-
onChange:
|
|
1885
|
-
onClose:
|
|
1886
|
-
onFocus:
|
|
1887
|
-
onOpen:
|
|
1888
|
-
open:
|
|
1889
|
-
readOnly:
|
|
1890
|
-
renderValue:
|
|
1891
|
-
SelectDisplayProps:
|
|
1892
|
-
tabIndex:
|
|
921
|
+
"aria-label": i,
|
|
922
|
+
autoFocus: p,
|
|
923
|
+
autoWidth: a,
|
|
924
|
+
children: d,
|
|
925
|
+
className: m,
|
|
926
|
+
defaultOpen: g,
|
|
927
|
+
defaultValue: f,
|
|
928
|
+
disabled: c,
|
|
929
|
+
displayEmpty: O,
|
|
930
|
+
error: R = !1,
|
|
931
|
+
IconComponent: w,
|
|
932
|
+
inputRef: T,
|
|
933
|
+
labelId: y,
|
|
934
|
+
MenuProps: x = {},
|
|
935
|
+
multiple: C,
|
|
936
|
+
name: I,
|
|
937
|
+
onBlur: N,
|
|
938
|
+
onChange: L,
|
|
939
|
+
onClose: Y,
|
|
940
|
+
onFocus: be,
|
|
941
|
+
onOpen: Z,
|
|
942
|
+
open: J,
|
|
943
|
+
readOnly: Q,
|
|
944
|
+
renderValue: ee,
|
|
945
|
+
SelectDisplayProps: B = {},
|
|
946
|
+
tabIndex: $,
|
|
1893
947
|
// catching `type` from Input which makes no sense for SelectInput
|
|
1894
|
-
type:
|
|
1895
|
-
value:
|
|
1896
|
-
variant:
|
|
1897
|
-
...
|
|
1898
|
-
} = t, [
|
|
1899
|
-
controlled:
|
|
1900
|
-
default:
|
|
948
|
+
type: q,
|
|
949
|
+
value: oe,
|
|
950
|
+
variant: Fe = "standard",
|
|
951
|
+
..._
|
|
952
|
+
} = t, [b, te] = Ve({
|
|
953
|
+
controlled: oe,
|
|
954
|
+
default: f,
|
|
1901
955
|
name: "Select"
|
|
1902
|
-
}), [
|
|
1903
|
-
controlled:
|
|
1904
|
-
default:
|
|
956
|
+
}), [Me, eo] = Ve({
|
|
957
|
+
controlled: J,
|
|
958
|
+
default: g,
|
|
1905
959
|
name: "Select"
|
|
1906
|
-
}),
|
|
1907
|
-
current:
|
|
1908
|
-
} =
|
|
1909
|
-
|
|
1910
|
-
}, []),
|
|
1911
|
-
|
|
960
|
+
}), je = u.useRef(null), F = u.useRef(null), [M, oo] = u.useState(null), {
|
|
961
|
+
current: me
|
|
962
|
+
} = u.useRef(J != null), [to, Le] = u.useState(), no = Xe(n, T), ro = u.useCallback((s) => {
|
|
963
|
+
F.current = s, s && oo(s);
|
|
964
|
+
}, []), ne = M == null ? void 0 : M.parentNode;
|
|
965
|
+
u.useImperativeHandle(no, () => ({
|
|
1912
966
|
focus: () => {
|
|
1913
|
-
|
|
967
|
+
F.current.focus();
|
|
1914
968
|
},
|
|
1915
|
-
node:
|
|
1916
|
-
value:
|
|
1917
|
-
}), [
|
|
1918
|
-
|
|
1919
|
-
}, [
|
|
1920
|
-
|
|
1921
|
-
}, [
|
|
1922
|
-
if (!
|
|
969
|
+
node: je.current,
|
|
970
|
+
value: b
|
|
971
|
+
}), [b]), u.useEffect(() => {
|
|
972
|
+
g && Me && M && !me && (Le(a ? null : ne.clientWidth), F.current.focus());
|
|
973
|
+
}, [M, a]), u.useEffect(() => {
|
|
974
|
+
p && F.current.focus();
|
|
975
|
+
}, [p]), u.useEffect(() => {
|
|
976
|
+
if (!y)
|
|
1923
977
|
return;
|
|
1924
|
-
const
|
|
1925
|
-
if (
|
|
1926
|
-
const
|
|
1927
|
-
getSelection().isCollapsed &&
|
|
978
|
+
const s = Oo(F.current).getElementById(y);
|
|
979
|
+
if (s) {
|
|
980
|
+
const l = () => {
|
|
981
|
+
getSelection().isCollapsed && F.current.focus();
|
|
1928
982
|
};
|
|
1929
|
-
return
|
|
1930
|
-
|
|
983
|
+
return s.addEventListener("click", l), () => {
|
|
984
|
+
s.removeEventListener("click", l);
|
|
1931
985
|
};
|
|
1932
986
|
}
|
|
1933
|
-
}, [
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1938
|
-
},
|
|
1939
|
-
|
|
1940
|
-
},
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
},
|
|
1944
|
-
let
|
|
1945
|
-
if (
|
|
1946
|
-
if (
|
|
1947
|
-
|
|
1948
|
-
const
|
|
1949
|
-
|
|
987
|
+
}, [y]);
|
|
988
|
+
const re = (s, l) => {
|
|
989
|
+
s ? Z && Z(l) : Y && Y(l), me || (Le(a ? null : ne.clientWidth), eo(s));
|
|
990
|
+
}, so = (s) => {
|
|
991
|
+
s.button === 0 && (s.preventDefault(), F.current.focus(), re(!0, s));
|
|
992
|
+
}, ao = (s) => {
|
|
993
|
+
re(!1, s);
|
|
994
|
+
}, se = u.Children.toArray(d), io = (s) => {
|
|
995
|
+
const l = se.find((S) => S.props.value === s.target.value);
|
|
996
|
+
l !== void 0 && (te(l.props.value), L && L(s, l));
|
|
997
|
+
}, lo = (s) => (l) => {
|
|
998
|
+
let S;
|
|
999
|
+
if (l.currentTarget.hasAttribute("tabindex")) {
|
|
1000
|
+
if (C) {
|
|
1001
|
+
S = Array.isArray(b) ? b.slice() : [];
|
|
1002
|
+
const A = b.indexOf(s.props.value);
|
|
1003
|
+
A === -1 ? S.push(s.props.value) : S.splice(A, 1);
|
|
1950
1004
|
} else
|
|
1951
|
-
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
Object.defineProperty(
|
|
1005
|
+
S = s.props.value;
|
|
1006
|
+
if (s.props.onClick && s.props.onClick(l), b !== S && (te(S), L)) {
|
|
1007
|
+
const A = l.nativeEvent || l, ze = new A.constructor(A.type, A);
|
|
1008
|
+
Object.defineProperty(ze, "target", {
|
|
1955
1009
|
writable: !0,
|
|
1956
1010
|
value: {
|
|
1957
|
-
value:
|
|
1958
|
-
name:
|
|
1011
|
+
value: S,
|
|
1012
|
+
name: I
|
|
1959
1013
|
}
|
|
1960
|
-
}),
|
|
1014
|
+
}), L(ze, s);
|
|
1961
1015
|
}
|
|
1962
|
-
|
|
1016
|
+
C || re(!1, l);
|
|
1963
1017
|
}
|
|
1964
|
-
},
|
|
1965
|
-
|
|
1018
|
+
}, po = (s) => {
|
|
1019
|
+
Q || [
|
|
1966
1020
|
" ",
|
|
1967
1021
|
"ArrowUp",
|
|
1968
1022
|
"ArrowDown",
|
|
1969
1023
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
1970
1024
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
1971
1025
|
"Enter"
|
|
1972
|
-
].includes(
|
|
1973
|
-
},
|
|
1974
|
-
!
|
|
1026
|
+
].includes(s.key) && (s.preventDefault(), re(!0, s));
|
|
1027
|
+
}, ae = M !== null && Me, uo = (s) => {
|
|
1028
|
+
!ae && N && (Object.defineProperty(s, "target", {
|
|
1975
1029
|
writable: !0,
|
|
1976
1030
|
value: {
|
|
1977
|
-
value:
|
|
1978
|
-
name:
|
|
1031
|
+
value: b,
|
|
1032
|
+
name: I
|
|
1979
1033
|
}
|
|
1980
|
-
}),
|
|
1034
|
+
}), N(s));
|
|
1981
1035
|
};
|
|
1982
|
-
delete
|
|
1983
|
-
let
|
|
1984
|
-
const
|
|
1985
|
-
let
|
|
1986
|
-
(
|
|
1987
|
-
value:
|
|
1988
|
-
}) ||
|
|
1989
|
-
const
|
|
1990
|
-
if (!/* @__PURE__ */
|
|
1036
|
+
delete _["aria-invalid"];
|
|
1037
|
+
let W, Be;
|
|
1038
|
+
const ie = [];
|
|
1039
|
+
let le = !1, ge = !1;
|
|
1040
|
+
(ho({
|
|
1041
|
+
value: b
|
|
1042
|
+
}) || O) && (ee ? W = ee(b) : le = !0);
|
|
1043
|
+
const co = se.map((s) => {
|
|
1044
|
+
if (!/* @__PURE__ */ u.isValidElement(s))
|
|
1991
1045
|
return null;
|
|
1992
|
-
process.env.NODE_ENV !== "production" &&
|
|
1046
|
+
process.env.NODE_ENV !== "production" && mo.isFragment(s) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1993
1047
|
`));
|
|
1994
|
-
let
|
|
1995
|
-
if (
|
|
1996
|
-
if (!Array.isArray(
|
|
1997
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
1998
|
-
|
|
1048
|
+
let l;
|
|
1049
|
+
if (C) {
|
|
1050
|
+
if (!Array.isArray(b))
|
|
1051
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : fo(2));
|
|
1052
|
+
l = b.some((S) => _e(S, s.props.value)), l && le && ie.push(s.props.children);
|
|
1999
1053
|
} else
|
|
2000
|
-
|
|
2001
|
-
return
|
|
2002
|
-
"aria-selected":
|
|
2003
|
-
onClick:
|
|
2004
|
-
onKeyUp: (
|
|
2005
|
-
|
|
1054
|
+
l = _e(b, s.props.value), l && le && (Be = s.props.children);
|
|
1055
|
+
return l && (ge = !0), /* @__PURE__ */ u.cloneElement(s, {
|
|
1056
|
+
"aria-selected": l ? "true" : "false",
|
|
1057
|
+
onClick: lo(s),
|
|
1058
|
+
onKeyUp: (S) => {
|
|
1059
|
+
S.key === " " && S.preventDefault(), s.props.onKeyUp && s.props.onKeyUp(S);
|
|
2006
1060
|
},
|
|
2007
1061
|
role: "option",
|
|
2008
|
-
selected:
|
|
1062
|
+
selected: l,
|
|
2009
1063
|
value: void 0,
|
|
2010
1064
|
// The value is most likely not a valid HTML attribute.
|
|
2011
|
-
"data-value":
|
|
1065
|
+
"data-value": s.props.value
|
|
2012
1066
|
// Instead, we provide it as a data attribute.
|
|
2013
1067
|
});
|
|
2014
1068
|
});
|
|
2015
|
-
process.env.NODE_ENV !== "production" &&
|
|
2016
|
-
if (
|
|
2017
|
-
const
|
|
2018
|
-
console.warn([`MUI: You have provided an out-of-range value \`${
|
|
1069
|
+
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
1070
|
+
if (!ge && !C && b !== "") {
|
|
1071
|
+
const s = se.map((l) => l.props.value);
|
|
1072
|
+
console.warn([`MUI: You have provided an out-of-range value \`${b}\` for the select ${I ? `(name="${I}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${s.filter((l) => l != null).map((l) => `\`${l}\``).join(", ") || '""'}.`].join(`
|
|
2019
1073
|
`));
|
|
2020
1074
|
}
|
|
2021
|
-
}, [
|
|
2022
|
-
let
|
|
2023
|
-
!
|
|
2024
|
-
let
|
|
2025
|
-
typeof
|
|
2026
|
-
const
|
|
1075
|
+
}, [ge, se, C, I, b]), le && (C ? ie.length === 0 ? W = null : W = ie.reduce((s, l, S) => (s.push(l), S < ie.length - 1 && s.push(", "), s), []) : W = Be);
|
|
1076
|
+
let We = to;
|
|
1077
|
+
!a && me && M && (We = ne.clientWidth);
|
|
1078
|
+
let ve;
|
|
1079
|
+
typeof $ < "u" ? ve = $ : ve = c ? null : 0;
|
|
1080
|
+
const Ae = B.id || (I ? `mui-component-select-${I}` : void 0), pe = {
|
|
2027
1081
|
...t,
|
|
2028
|
-
variant:
|
|
2029
|
-
value:
|
|
2030
|
-
open:
|
|
2031
|
-
error:
|
|
2032
|
-
},
|
|
2033
|
-
...
|
|
2034
|
-
...(
|
|
2035
|
-
},
|
|
2036
|
-
return /* @__PURE__ */
|
|
2037
|
-
children: [/* @__PURE__ */
|
|
1082
|
+
variant: Fe,
|
|
1083
|
+
value: b,
|
|
1084
|
+
open: ae,
|
|
1085
|
+
error: R
|
|
1086
|
+
}, ye = Do(pe), he = {
|
|
1087
|
+
...x.PaperProps,
|
|
1088
|
+
...(De = x.slotProps) == null ? void 0 : De.paper
|
|
1089
|
+
}, Ue = Co();
|
|
1090
|
+
return /* @__PURE__ */ Se(u.Fragment, {
|
|
1091
|
+
children: [/* @__PURE__ */ v(Bo, {
|
|
2038
1092
|
as: "div",
|
|
2039
|
-
ref:
|
|
2040
|
-
tabIndex:
|
|
1093
|
+
ref: ro,
|
|
1094
|
+
tabIndex: ve,
|
|
2041
1095
|
role: "combobox",
|
|
2042
|
-
"aria-controls":
|
|
2043
|
-
"aria-disabled":
|
|
2044
|
-
"aria-expanded":
|
|
1096
|
+
"aria-controls": Ue,
|
|
1097
|
+
"aria-disabled": c ? "true" : void 0,
|
|
1098
|
+
"aria-expanded": ae ? "true" : "false",
|
|
2045
1099
|
"aria-haspopup": "listbox",
|
|
2046
|
-
"aria-label":
|
|
2047
|
-
"aria-labelledby": [
|
|
1100
|
+
"aria-label": i,
|
|
1101
|
+
"aria-labelledby": [y, Ae].filter(Boolean).join(" ") || void 0,
|
|
2048
1102
|
"aria-describedby": r,
|
|
2049
|
-
onKeyDown:
|
|
2050
|
-
onMouseDown:
|
|
2051
|
-
onBlur:
|
|
2052
|
-
onFocus:
|
|
2053
|
-
...
|
|
2054
|
-
ownerState:
|
|
2055
|
-
className:
|
|
2056
|
-
id:
|
|
2057
|
-
children:
|
|
1103
|
+
onKeyDown: po,
|
|
1104
|
+
onMouseDown: c || Q ? null : so,
|
|
1105
|
+
onBlur: uo,
|
|
1106
|
+
onFocus: be,
|
|
1107
|
+
...B,
|
|
1108
|
+
ownerState: pe,
|
|
1109
|
+
className: fe(B.className, ye.select, m),
|
|
1110
|
+
id: Ae,
|
|
1111
|
+
children: Uo(W) ? (
|
|
2058
1112
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
2059
|
-
|
|
1113
|
+
qe || (qe = /* @__PURE__ */ v("span", {
|
|
2060
1114
|
className: "notranslate",
|
|
2061
1115
|
children: ""
|
|
2062
1116
|
}))
|
|
2063
|
-
) :
|
|
2064
|
-
}), /* @__PURE__ */
|
|
2065
|
-
"aria-invalid":
|
|
2066
|
-
value: Array.isArray(
|
|
2067
|
-
name:
|
|
2068
|
-
ref:
|
|
1117
|
+
) : W
|
|
1118
|
+
}), /* @__PURE__ */ v(Ao, {
|
|
1119
|
+
"aria-invalid": R,
|
|
1120
|
+
value: Array.isArray(b) ? b.join(",") : b,
|
|
1121
|
+
name: I,
|
|
1122
|
+
ref: je,
|
|
2069
1123
|
"aria-hidden": !0,
|
|
2070
|
-
onChange:
|
|
1124
|
+
onChange: io,
|
|
2071
1125
|
tabIndex: -1,
|
|
2072
|
-
disabled:
|
|
2073
|
-
className:
|
|
2074
|
-
autoFocus:
|
|
2075
|
-
...
|
|
2076
|
-
ownerState:
|
|
2077
|
-
}), /* @__PURE__ */
|
|
2078
|
-
as:
|
|
2079
|
-
className:
|
|
2080
|
-
ownerState:
|
|
2081
|
-
}), /* @__PURE__ */
|
|
2082
|
-
id: `menu-${
|
|
2083
|
-
anchorEl:
|
|
2084
|
-
open:
|
|
2085
|
-
onClose:
|
|
1126
|
+
disabled: c,
|
|
1127
|
+
className: ye.nativeInput,
|
|
1128
|
+
autoFocus: p,
|
|
1129
|
+
..._,
|
|
1130
|
+
ownerState: pe
|
|
1131
|
+
}), /* @__PURE__ */ v(Wo, {
|
|
1132
|
+
as: w,
|
|
1133
|
+
className: ye.icon,
|
|
1134
|
+
ownerState: pe
|
|
1135
|
+
}), /* @__PURE__ */ v(yo, {
|
|
1136
|
+
id: `menu-${I || ""}`,
|
|
1137
|
+
anchorEl: ne,
|
|
1138
|
+
open: ae,
|
|
1139
|
+
onClose: ao,
|
|
2086
1140
|
anchorOrigin: {
|
|
2087
1141
|
vertical: "bottom",
|
|
2088
1142
|
horizontal: "center"
|
|
@@ -2091,30 +1145,30 @@ const xt = (o) => {
|
|
|
2091
1145
|
vertical: "top",
|
|
2092
1146
|
horizontal: "center"
|
|
2093
1147
|
},
|
|
2094
|
-
...
|
|
1148
|
+
...x,
|
|
2095
1149
|
MenuListProps: {
|
|
2096
|
-
"aria-labelledby":
|
|
1150
|
+
"aria-labelledby": y,
|
|
2097
1151
|
role: "listbox",
|
|
2098
|
-
"aria-multiselectable":
|
|
1152
|
+
"aria-multiselectable": C ? "true" : void 0,
|
|
2099
1153
|
disableListWrap: !0,
|
|
2100
|
-
id:
|
|
2101
|
-
...
|
|
1154
|
+
id: Ue,
|
|
1155
|
+
...x.MenuListProps
|
|
2102
1156
|
},
|
|
2103
1157
|
slotProps: {
|
|
2104
|
-
...
|
|
1158
|
+
...x.slotProps,
|
|
2105
1159
|
paper: {
|
|
2106
|
-
...
|
|
1160
|
+
...he,
|
|
2107
1161
|
style: {
|
|
2108
|
-
minWidth:
|
|
2109
|
-
...
|
|
1162
|
+
minWidth: We,
|
|
1163
|
+
...he != null ? he.style : null
|
|
2110
1164
|
}
|
|
2111
1165
|
}
|
|
2112
1166
|
},
|
|
2113
|
-
children:
|
|
1167
|
+
children: co
|
|
2114
1168
|
})]
|
|
2115
1169
|
});
|
|
2116
1170
|
});
|
|
2117
|
-
process.env.NODE_ENV !== "production" && (
|
|
1171
|
+
process.env.NODE_ENV !== "production" && (Ze.propTypes = {
|
|
2118
1172
|
/**
|
|
2119
1173
|
* @ignore
|
|
2120
1174
|
*/
|
|
@@ -2174,7 +1228,7 @@ process.env.NODE_ENV !== "production" && (Eo.propTypes = {
|
|
|
2174
1228
|
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
2175
1229
|
* Equivalent to `ref`
|
|
2176
1230
|
*/
|
|
2177
|
-
inputRef:
|
|
1231
|
+
inputRef: G,
|
|
2178
1232
|
/**
|
|
2179
1233
|
* The ID of an element that acts as an additional label. The Select will
|
|
2180
1234
|
* be labelled by the additional label and the selected value.
|
|
@@ -2258,47 +1312,47 @@ process.env.NODE_ENV !== "production" && (Eo.propTypes = {
|
|
|
2258
1312
|
*/
|
|
2259
1313
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
2260
1314
|
});
|
|
2261
|
-
const
|
|
1315
|
+
const zo = Io(/* @__PURE__ */ v("path", {
|
|
2262
1316
|
d: "M7 10l5 5 5-5z"
|
|
2263
1317
|
}), "ArrowDropDown");
|
|
2264
|
-
function
|
|
2265
|
-
return
|
|
1318
|
+
function Vo(o) {
|
|
1319
|
+
return U("MuiFilledInput", o);
|
|
2266
1320
|
}
|
|
2267
|
-
const
|
|
2268
|
-
...
|
|
2269
|
-
...
|
|
2270
|
-
},
|
|
1321
|
+
const j = {
|
|
1322
|
+
...xe,
|
|
1323
|
+
...D("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
|
|
1324
|
+
}, qo = (o) => {
|
|
2271
1325
|
const {
|
|
2272
1326
|
classes: t,
|
|
2273
1327
|
disableUnderline: n,
|
|
2274
1328
|
startAdornment: r,
|
|
2275
|
-
endAdornment:
|
|
2276
|
-
size:
|
|
2277
|
-
hiddenLabel:
|
|
2278
|
-
multiline:
|
|
2279
|
-
} = o,
|
|
2280
|
-
root: ["root", !n && "underline", r && "adornedStart",
|
|
1329
|
+
endAdornment: i,
|
|
1330
|
+
size: p,
|
|
1331
|
+
hiddenLabel: a,
|
|
1332
|
+
multiline: d
|
|
1333
|
+
} = o, m = {
|
|
1334
|
+
root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd", p === "small" && `size${z(p)}`, a && "hiddenLabel", d && "multiline"],
|
|
2281
1335
|
input: ["input"]
|
|
2282
|
-
},
|
|
1336
|
+
}, g = V(m, Vo, t);
|
|
2283
1337
|
return {
|
|
2284
1338
|
...t,
|
|
2285
1339
|
// forward classes to the InputBase
|
|
2286
|
-
...
|
|
1340
|
+
...g
|
|
2287
1341
|
};
|
|
2288
|
-
},
|
|
2289
|
-
shouldForwardProp: (o) =>
|
|
1342
|
+
}, _o = h(we, {
|
|
1343
|
+
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
2290
1344
|
name: "MuiFilledInput",
|
|
2291
1345
|
slot: "Root",
|
|
2292
1346
|
overridesResolver: (o, t) => {
|
|
2293
1347
|
const {
|
|
2294
1348
|
ownerState: n
|
|
2295
1349
|
} = o;
|
|
2296
|
-
return [...
|
|
1350
|
+
return [...Te(o, t), !n.disableUnderline && t.underline];
|
|
2297
1351
|
}
|
|
2298
|
-
})(
|
|
1352
|
+
})(E(({
|
|
2299
1353
|
theme: o
|
|
2300
1354
|
}) => {
|
|
2301
|
-
const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)",
|
|
1355
|
+
const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", p = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
2302
1356
|
return {
|
|
2303
1357
|
position: "relative",
|
|
2304
1358
|
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r,
|
|
@@ -2309,22 +1363,22 @@ const ie = {
|
|
|
2309
1363
|
easing: o.transitions.easing.easeOut
|
|
2310
1364
|
}),
|
|
2311
1365
|
"&:hover": {
|
|
2312
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg :
|
|
1366
|
+
backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : i,
|
|
2313
1367
|
// Reset on touch devices, it doesn't add specificity
|
|
2314
1368
|
"@media (hover: none)": {
|
|
2315
1369
|
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
|
|
2316
1370
|
}
|
|
2317
1371
|
},
|
|
2318
|
-
[`&.${
|
|
1372
|
+
[`&.${j.focused}`]: {
|
|
2319
1373
|
backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : r
|
|
2320
1374
|
},
|
|
2321
|
-
[`&.${
|
|
2322
|
-
backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg :
|
|
1375
|
+
[`&.${j.disabled}`]: {
|
|
1376
|
+
backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : p
|
|
2323
1377
|
},
|
|
2324
1378
|
variants: [{
|
|
2325
1379
|
props: ({
|
|
2326
|
-
ownerState:
|
|
2327
|
-
}) => !
|
|
1380
|
+
ownerState: a
|
|
1381
|
+
}) => !a.disableUnderline,
|
|
2328
1382
|
style: {
|
|
2329
1383
|
"&::after": {
|
|
2330
1384
|
left: 0,
|
|
@@ -2340,12 +1394,12 @@ const ie = {
|
|
|
2340
1394
|
pointerEvents: "none"
|
|
2341
1395
|
// Transparent to the hover style.
|
|
2342
1396
|
},
|
|
2343
|
-
[`&.${
|
|
1397
|
+
[`&.${j.focused}:after`]: {
|
|
2344
1398
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
2345
1399
|
// See https://github.com/mui/material-ui/issues/31766
|
|
2346
1400
|
transform: "scaleX(1) translateX(0)"
|
|
2347
1401
|
},
|
|
2348
|
-
[`&.${
|
|
1402
|
+
[`&.${j.error}`]: {
|
|
2349
1403
|
"&::before, &::after": {
|
|
2350
1404
|
borderBottomColor: (o.vars || o).palette.error.main
|
|
2351
1405
|
}
|
|
@@ -2363,79 +1417,79 @@ const ie = {
|
|
|
2363
1417
|
pointerEvents: "none"
|
|
2364
1418
|
// Transparent to the hover style.
|
|
2365
1419
|
},
|
|
2366
|
-
[`&:hover:not(.${
|
|
1420
|
+
[`&:hover:not(.${j.disabled}, .${j.error}):before`]: {
|
|
2367
1421
|
borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
|
|
2368
1422
|
},
|
|
2369
|
-
[`&.${
|
|
1423
|
+
[`&.${j.disabled}:before`]: {
|
|
2370
1424
|
borderBottomStyle: "dotted"
|
|
2371
1425
|
}
|
|
2372
1426
|
}
|
|
2373
|
-
}, ...Object.entries(o.palette).filter(
|
|
2374
|
-
var
|
|
1427
|
+
}, ...Object.entries(o.palette).filter(Re()).map(([a]) => {
|
|
1428
|
+
var d;
|
|
2375
1429
|
return {
|
|
2376
1430
|
props: {
|
|
2377
1431
|
disableUnderline: !1,
|
|
2378
|
-
color:
|
|
1432
|
+
color: a
|
|
2379
1433
|
},
|
|
2380
1434
|
style: {
|
|
2381
1435
|
"&::after": {
|
|
2382
|
-
borderBottom: `2px solid ${(
|
|
1436
|
+
borderBottom: `2px solid ${(d = (o.vars || o).palette[a]) == null ? void 0 : d.main}`
|
|
2383
1437
|
}
|
|
2384
1438
|
}
|
|
2385
1439
|
};
|
|
2386
1440
|
}), {
|
|
2387
1441
|
props: ({
|
|
2388
|
-
ownerState:
|
|
2389
|
-
}) =>
|
|
1442
|
+
ownerState: a
|
|
1443
|
+
}) => a.startAdornment,
|
|
2390
1444
|
style: {
|
|
2391
1445
|
paddingLeft: 12
|
|
2392
1446
|
}
|
|
2393
1447
|
}, {
|
|
2394
1448
|
props: ({
|
|
2395
|
-
ownerState:
|
|
2396
|
-
}) =>
|
|
1449
|
+
ownerState: a
|
|
1450
|
+
}) => a.endAdornment,
|
|
2397
1451
|
style: {
|
|
2398
1452
|
paddingRight: 12
|
|
2399
1453
|
}
|
|
2400
1454
|
}, {
|
|
2401
1455
|
props: ({
|
|
2402
|
-
ownerState:
|
|
2403
|
-
}) =>
|
|
1456
|
+
ownerState: a
|
|
1457
|
+
}) => a.multiline,
|
|
2404
1458
|
style: {
|
|
2405
1459
|
padding: "25px 12px 8px"
|
|
2406
1460
|
}
|
|
2407
1461
|
}, {
|
|
2408
1462
|
props: ({
|
|
2409
|
-
ownerState:
|
|
2410
|
-
size:
|
|
2411
|
-
}) =>
|
|
1463
|
+
ownerState: a,
|
|
1464
|
+
size: d
|
|
1465
|
+
}) => a.multiline && d === "small",
|
|
2412
1466
|
style: {
|
|
2413
1467
|
paddingTop: 21,
|
|
2414
1468
|
paddingBottom: 4
|
|
2415
1469
|
}
|
|
2416
1470
|
}, {
|
|
2417
1471
|
props: ({
|
|
2418
|
-
ownerState:
|
|
2419
|
-
}) =>
|
|
1472
|
+
ownerState: a
|
|
1473
|
+
}) => a.multiline && a.hiddenLabel,
|
|
2420
1474
|
style: {
|
|
2421
1475
|
paddingTop: 16,
|
|
2422
1476
|
paddingBottom: 17
|
|
2423
1477
|
}
|
|
2424
1478
|
}, {
|
|
2425
1479
|
props: ({
|
|
2426
|
-
ownerState:
|
|
2427
|
-
}) =>
|
|
1480
|
+
ownerState: a
|
|
1481
|
+
}) => a.multiline && a.hiddenLabel && a.size === "small",
|
|
2428
1482
|
style: {
|
|
2429
1483
|
paddingTop: 8,
|
|
2430
1484
|
paddingBottom: 9
|
|
2431
1485
|
}
|
|
2432
1486
|
}]
|
|
2433
1487
|
};
|
|
2434
|
-
})),
|
|
1488
|
+
})), Ko = h(Ne, {
|
|
2435
1489
|
name: "MuiFilledInput",
|
|
2436
1490
|
slot: "Input",
|
|
2437
|
-
overridesResolver:
|
|
2438
|
-
})(
|
|
1491
|
+
overridesResolver: Pe
|
|
1492
|
+
})(E(({
|
|
2439
1493
|
theme: o
|
|
2440
1494
|
}) => ({
|
|
2441
1495
|
paddingTop: 25,
|
|
@@ -2513,54 +1567,54 @@ const ie = {
|
|
|
2513
1567
|
paddingRight: 0
|
|
2514
1568
|
}
|
|
2515
1569
|
}]
|
|
2516
|
-
}))),
|
|
2517
|
-
const r =
|
|
1570
|
+
}))), ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
1571
|
+
const r = H({
|
|
2518
1572
|
props: t,
|
|
2519
1573
|
name: "MuiFilledInput"
|
|
2520
1574
|
}), {
|
|
2521
|
-
disableUnderline:
|
|
2522
|
-
components:
|
|
2523
|
-
componentsProps:
|
|
2524
|
-
fullWidth:
|
|
2525
|
-
hiddenLabel:
|
|
1575
|
+
disableUnderline: i = !1,
|
|
1576
|
+
components: p = {},
|
|
1577
|
+
componentsProps: a,
|
|
1578
|
+
fullWidth: d = !1,
|
|
1579
|
+
hiddenLabel: m,
|
|
2526
1580
|
// declare here to prevent spreading to DOM
|
|
2527
|
-
inputComponent:
|
|
2528
|
-
multiline:
|
|
2529
|
-
slotProps:
|
|
2530
|
-
slots:
|
|
2531
|
-
type:
|
|
2532
|
-
...
|
|
2533
|
-
} = r,
|
|
1581
|
+
inputComponent: g = "input",
|
|
1582
|
+
multiline: f = !1,
|
|
1583
|
+
slotProps: c,
|
|
1584
|
+
slots: O = {},
|
|
1585
|
+
type: R = "text",
|
|
1586
|
+
...w
|
|
1587
|
+
} = r, T = {
|
|
2534
1588
|
...r,
|
|
2535
|
-
disableUnderline:
|
|
2536
|
-
fullWidth:
|
|
2537
|
-
inputComponent:
|
|
2538
|
-
multiline:
|
|
2539
|
-
type:
|
|
2540
|
-
},
|
|
1589
|
+
disableUnderline: i,
|
|
1590
|
+
fullWidth: d,
|
|
1591
|
+
inputComponent: g,
|
|
1592
|
+
multiline: f,
|
|
1593
|
+
type: R
|
|
1594
|
+
}, y = qo(r), x = {
|
|
2541
1595
|
root: {
|
|
2542
|
-
ownerState:
|
|
1596
|
+
ownerState: T
|
|
2543
1597
|
},
|
|
2544
1598
|
input: {
|
|
2545
|
-
ownerState:
|
|
1599
|
+
ownerState: T
|
|
2546
1600
|
}
|
|
2547
|
-
},
|
|
2548
|
-
return /* @__PURE__ */
|
|
1601
|
+
}, C = c ?? a ? Oe(x, c ?? a) : x, I = O.root ?? p.Root ?? _o, N = O.input ?? p.Input ?? Ko;
|
|
1602
|
+
return /* @__PURE__ */ v($e, {
|
|
2549
1603
|
slots: {
|
|
2550
|
-
root:
|
|
2551
|
-
input:
|
|
1604
|
+
root: I,
|
|
1605
|
+
input: N
|
|
2552
1606
|
},
|
|
2553
|
-
componentsProps:
|
|
2554
|
-
fullWidth:
|
|
2555
|
-
inputComponent:
|
|
2556
|
-
multiline:
|
|
1607
|
+
componentsProps: C,
|
|
1608
|
+
fullWidth: d,
|
|
1609
|
+
inputComponent: g,
|
|
1610
|
+
multiline: f,
|
|
2557
1611
|
ref: n,
|
|
2558
|
-
type:
|
|
2559
|
-
...
|
|
2560
|
-
classes:
|
|
1612
|
+
type: R,
|
|
1613
|
+
...w,
|
|
1614
|
+
classes: y
|
|
2561
1615
|
});
|
|
2562
1616
|
});
|
|
2563
|
-
process.env.NODE_ENV !== "production" && (
|
|
1617
|
+
process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
2564
1618
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2565
1619
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2566
1620
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2662,7 +1716,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
2662
1716
|
/**
|
|
2663
1717
|
* Pass a ref to the `input` element.
|
|
2664
1718
|
*/
|
|
2665
|
-
inputRef:
|
|
1719
|
+
inputRef: G,
|
|
2666
1720
|
/**
|
|
2667
1721
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
2668
1722
|
* FormControl.
|
|
@@ -2752,10 +1806,10 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
2752
1806
|
*/
|
|
2753
1807
|
value: e.any
|
|
2754
1808
|
});
|
|
2755
|
-
|
|
2756
|
-
var
|
|
2757
|
-
const
|
|
2758
|
-
shouldForwardProp:
|
|
1809
|
+
ue && (ue.muiName = "Input");
|
|
1810
|
+
var Ke;
|
|
1811
|
+
const Xo = h("fieldset", {
|
|
1812
|
+
shouldForwardProp: k
|
|
2759
1813
|
})({
|
|
2760
1814
|
textAlign: "left",
|
|
2761
1815
|
position: "absolute",
|
|
@@ -2771,9 +1825,9 @@ const Lt = x("fieldset", {
|
|
|
2771
1825
|
borderWidth: 1,
|
|
2772
1826
|
overflow: "hidden",
|
|
2773
1827
|
minWidth: "0%"
|
|
2774
|
-
}),
|
|
2775
|
-
shouldForwardProp:
|
|
2776
|
-
})(
|
|
1828
|
+
}), Ho = h("legend", {
|
|
1829
|
+
shouldForwardProp: k
|
|
1830
|
+
})(E(({
|
|
2777
1831
|
theme: o
|
|
2778
1832
|
}) => ({
|
|
2779
1833
|
float: "unset",
|
|
@@ -2835,31 +1889,31 @@ const Lt = x("fieldset", {
|
|
|
2835
1889
|
}
|
|
2836
1890
|
}]
|
|
2837
1891
|
})));
|
|
2838
|
-
function
|
|
1892
|
+
function Je(o) {
|
|
2839
1893
|
const {
|
|
2840
1894
|
children: t,
|
|
2841
1895
|
classes: n,
|
|
2842
1896
|
className: r,
|
|
2843
|
-
label:
|
|
2844
|
-
notched:
|
|
2845
|
-
...
|
|
2846
|
-
} = o,
|
|
1897
|
+
label: i,
|
|
1898
|
+
notched: p,
|
|
1899
|
+
...a
|
|
1900
|
+
} = o, d = i != null && i !== "", m = {
|
|
2847
1901
|
...o,
|
|
2848
|
-
notched:
|
|
2849
|
-
withLabel:
|
|
1902
|
+
notched: p,
|
|
1903
|
+
withLabel: d
|
|
2850
1904
|
};
|
|
2851
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ v(Xo, {
|
|
2852
1906
|
"aria-hidden": !0,
|
|
2853
1907
|
className: r,
|
|
2854
|
-
ownerState:
|
|
2855
|
-
...
|
|
2856
|
-
children: /* @__PURE__ */
|
|
2857
|
-
ownerState:
|
|
2858
|
-
children:
|
|
2859
|
-
children:
|
|
1908
|
+
ownerState: m,
|
|
1909
|
+
...a,
|
|
1910
|
+
children: /* @__PURE__ */ v(Ho, {
|
|
1911
|
+
ownerState: m,
|
|
1912
|
+
children: d ? /* @__PURE__ */ v("span", {
|
|
1913
|
+
children: i
|
|
2860
1914
|
}) : (
|
|
2861
1915
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
2862
|
-
|
|
1916
|
+
Ke || (Ke = /* @__PURE__ */ v("span", {
|
|
2863
1917
|
className: "notranslate",
|
|
2864
1918
|
children: ""
|
|
2865
1919
|
}))
|
|
@@ -2867,7 +1921,7 @@ function Mo(o) {
|
|
|
2867
1921
|
})
|
|
2868
1922
|
});
|
|
2869
1923
|
}
|
|
2870
|
-
process.env.NODE_ENV !== "production" && (
|
|
1924
|
+
process.env.NODE_ENV !== "production" && (Je.propTypes = {
|
|
2871
1925
|
/**
|
|
2872
1926
|
* The content of the component.
|
|
2873
1927
|
*/
|
|
@@ -2893,55 +1947,55 @@ process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
|
2893
1947
|
*/
|
|
2894
1948
|
style: e.object
|
|
2895
1949
|
});
|
|
2896
|
-
function
|
|
2897
|
-
return
|
|
1950
|
+
function Go(o) {
|
|
1951
|
+
return U("MuiOutlinedInput", o);
|
|
2898
1952
|
}
|
|
2899
|
-
const
|
|
2900
|
-
...
|
|
2901
|
-
...
|
|
2902
|
-
},
|
|
1953
|
+
const P = {
|
|
1954
|
+
...xe,
|
|
1955
|
+
...D("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
1956
|
+
}, Yo = (o) => {
|
|
2903
1957
|
const {
|
|
2904
1958
|
classes: t
|
|
2905
|
-
} = o, r =
|
|
1959
|
+
} = o, r = V({
|
|
2906
1960
|
root: ["root"],
|
|
2907
1961
|
notchedOutline: ["notchedOutline"],
|
|
2908
1962
|
input: ["input"]
|
|
2909
|
-
},
|
|
1963
|
+
}, Go, t);
|
|
2910
1964
|
return {
|
|
2911
1965
|
...t,
|
|
2912
1966
|
// forward classes to the InputBase
|
|
2913
1967
|
...r
|
|
2914
1968
|
};
|
|
2915
|
-
},
|
|
2916
|
-
shouldForwardProp: (o) =>
|
|
1969
|
+
}, Zo = h(we, {
|
|
1970
|
+
shouldForwardProp: (o) => k(o) || o === "classes",
|
|
2917
1971
|
name: "MuiOutlinedInput",
|
|
2918
1972
|
slot: "Root",
|
|
2919
|
-
overridesResolver:
|
|
2920
|
-
})(
|
|
1973
|
+
overridesResolver: Te
|
|
1974
|
+
})(E(({
|
|
2921
1975
|
theme: o
|
|
2922
1976
|
}) => {
|
|
2923
1977
|
const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
2924
1978
|
return {
|
|
2925
1979
|
position: "relative",
|
|
2926
1980
|
borderRadius: (o.vars || o).shape.borderRadius,
|
|
2927
|
-
[`&:hover .${
|
|
1981
|
+
[`&:hover .${P.notchedOutline}`]: {
|
|
2928
1982
|
borderColor: (o.vars || o).palette.text.primary
|
|
2929
1983
|
},
|
|
2930
1984
|
// Reset on touch devices, it doesn't add specificity
|
|
2931
1985
|
"@media (hover: none)": {
|
|
2932
|
-
[`&:hover .${
|
|
1986
|
+
[`&:hover .${P.notchedOutline}`]: {
|
|
2933
1987
|
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
2934
1988
|
}
|
|
2935
1989
|
},
|
|
2936
|
-
[`&.${
|
|
1990
|
+
[`&.${P.focused} .${P.notchedOutline}`]: {
|
|
2937
1991
|
borderWidth: 2
|
|
2938
1992
|
},
|
|
2939
|
-
variants: [...Object.entries(o.palette).filter(
|
|
1993
|
+
variants: [...Object.entries(o.palette).filter(Re()).map(([n]) => ({
|
|
2940
1994
|
props: {
|
|
2941
1995
|
color: n
|
|
2942
1996
|
},
|
|
2943
1997
|
style: {
|
|
2944
|
-
[`&.${
|
|
1998
|
+
[`&.${P.focused} .${P.notchedOutline}`]: {
|
|
2945
1999
|
borderColor: (o.vars || o).palette[n].main
|
|
2946
2000
|
}
|
|
2947
2001
|
}
|
|
@@ -2949,10 +2003,10 @@ const X = {
|
|
|
2949
2003
|
props: {},
|
|
2950
2004
|
// to overide the above style
|
|
2951
2005
|
style: {
|
|
2952
|
-
[`&.${
|
|
2006
|
+
[`&.${P.error} .${P.notchedOutline}`]: {
|
|
2953
2007
|
borderColor: (o.vars || o).palette.error.main
|
|
2954
2008
|
},
|
|
2955
|
-
[`&.${
|
|
2009
|
+
[`&.${P.disabled} .${P.notchedOutline}`]: {
|
|
2956
2010
|
borderColor: (o.vars || o).palette.action.disabled
|
|
2957
2011
|
}
|
|
2958
2012
|
}
|
|
@@ -2987,22 +2041,22 @@ const X = {
|
|
|
2987
2041
|
}
|
|
2988
2042
|
}]
|
|
2989
2043
|
};
|
|
2990
|
-
})),
|
|
2044
|
+
})), Jo = h(Je, {
|
|
2991
2045
|
name: "MuiOutlinedInput",
|
|
2992
2046
|
slot: "NotchedOutline",
|
|
2993
2047
|
overridesResolver: (o, t) => t.notchedOutline
|
|
2994
|
-
})(
|
|
2048
|
+
})(E(({
|
|
2995
2049
|
theme: o
|
|
2996
2050
|
}) => {
|
|
2997
2051
|
const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
2998
2052
|
return {
|
|
2999
2053
|
borderColor: o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
3000
2054
|
};
|
|
3001
|
-
})),
|
|
2055
|
+
})), Qo = h(Ne, {
|
|
3002
2056
|
name: "MuiOutlinedInput",
|
|
3003
2057
|
slot: "Input",
|
|
3004
|
-
overridesResolver:
|
|
3005
|
-
})(
|
|
2058
|
+
overridesResolver: Pe
|
|
2059
|
+
})(E(({
|
|
3006
2060
|
theme: o
|
|
3007
2061
|
}) => ({
|
|
3008
2062
|
padding: "16.5px 14px",
|
|
@@ -3055,64 +2109,64 @@ const X = {
|
|
|
3055
2109
|
paddingRight: 0
|
|
3056
2110
|
}
|
|
3057
2111
|
}]
|
|
3058
|
-
}))),
|
|
2112
|
+
}))), ce = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
3059
2113
|
var r;
|
|
3060
|
-
const
|
|
2114
|
+
const i = H({
|
|
3061
2115
|
props: t,
|
|
3062
2116
|
name: "MuiOutlinedInput"
|
|
3063
2117
|
}), {
|
|
3064
|
-
components:
|
|
3065
|
-
fullWidth:
|
|
3066
|
-
inputComponent:
|
|
3067
|
-
label:
|
|
3068
|
-
multiline:
|
|
3069
|
-
notched:
|
|
3070
|
-
slots:
|
|
3071
|
-
type:
|
|
3072
|
-
...
|
|
3073
|
-
} =
|
|
3074
|
-
props:
|
|
3075
|
-
muiFormControl:
|
|
2118
|
+
components: p = {},
|
|
2119
|
+
fullWidth: a = !1,
|
|
2120
|
+
inputComponent: d = "input",
|
|
2121
|
+
label: m,
|
|
2122
|
+
multiline: g = !1,
|
|
2123
|
+
notched: f,
|
|
2124
|
+
slots: c = {},
|
|
2125
|
+
type: O = "text",
|
|
2126
|
+
...R
|
|
2127
|
+
} = i, w = Yo(i), T = Ie(), y = Ce({
|
|
2128
|
+
props: i,
|
|
2129
|
+
muiFormControl: T,
|
|
3076
2130
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
3077
|
-
}),
|
|
3078
|
-
...
|
|
3079
|
-
color:
|
|
3080
|
-
disabled:
|
|
3081
|
-
error:
|
|
3082
|
-
focused:
|
|
3083
|
-
formControl:
|
|
3084
|
-
fullWidth:
|
|
3085
|
-
hiddenLabel:
|
|
3086
|
-
multiline:
|
|
3087
|
-
size:
|
|
3088
|
-
type:
|
|
3089
|
-
},
|
|
3090
|
-
return /* @__PURE__ */
|
|
2131
|
+
}), x = {
|
|
2132
|
+
...i,
|
|
2133
|
+
color: y.color || "primary",
|
|
2134
|
+
disabled: y.disabled,
|
|
2135
|
+
error: y.error,
|
|
2136
|
+
focused: y.focused,
|
|
2137
|
+
formControl: T,
|
|
2138
|
+
fullWidth: a,
|
|
2139
|
+
hiddenLabel: y.hiddenLabel,
|
|
2140
|
+
multiline: g,
|
|
2141
|
+
size: y.size,
|
|
2142
|
+
type: O
|
|
2143
|
+
}, C = c.root ?? p.Root ?? Zo, I = c.input ?? p.Input ?? Qo;
|
|
2144
|
+
return /* @__PURE__ */ v($e, {
|
|
3091
2145
|
slots: {
|
|
3092
|
-
root:
|
|
3093
|
-
input:
|
|
2146
|
+
root: C,
|
|
2147
|
+
input: I
|
|
3094
2148
|
},
|
|
3095
|
-
renderSuffix: (
|
|
3096
|
-
ownerState:
|
|
3097
|
-
className:
|
|
3098
|
-
label:
|
|
3099
|
-
children: [
|
|
3100
|
-
})) :
|
|
3101
|
-
notched: typeof
|
|
2149
|
+
renderSuffix: (N) => /* @__PURE__ */ v(Jo, {
|
|
2150
|
+
ownerState: x,
|
|
2151
|
+
className: w.notchedOutline,
|
|
2152
|
+
label: m != null && m !== "" && y.required ? r || (r = /* @__PURE__ */ Se(u.Fragment, {
|
|
2153
|
+
children: [m, " ", "*"]
|
|
2154
|
+
})) : m,
|
|
2155
|
+
notched: typeof f < "u" ? f : !!(N.startAdornment || N.filled || N.focused)
|
|
3102
2156
|
}),
|
|
3103
|
-
fullWidth:
|
|
3104
|
-
inputComponent:
|
|
3105
|
-
multiline:
|
|
2157
|
+
fullWidth: a,
|
|
2158
|
+
inputComponent: d,
|
|
2159
|
+
multiline: g,
|
|
3106
2160
|
ref: n,
|
|
3107
|
-
type:
|
|
3108
|
-
...
|
|
2161
|
+
type: O,
|
|
2162
|
+
...R,
|
|
3109
2163
|
classes: {
|
|
3110
|
-
...
|
|
2164
|
+
...w,
|
|
3111
2165
|
notchedOutline: null
|
|
3112
2166
|
}
|
|
3113
2167
|
});
|
|
3114
2168
|
});
|
|
3115
|
-
process.env.NODE_ENV !== "production" && (
|
|
2169
|
+
process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
3116
2170
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3117
2171
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3118
2172
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3190,7 +2244,7 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
3190
2244
|
/**
|
|
3191
2245
|
* Pass a ref to the `input` element.
|
|
3192
2246
|
*/
|
|
3193
|
-
inputRef:
|
|
2247
|
+
inputRef: G,
|
|
3194
2248
|
/**
|
|
3195
2249
|
* The label of the `input`. It is only used for layout. The actual labelling
|
|
3196
2250
|
* is handled by `InputLabel`.
|
|
@@ -3277,115 +2331,115 @@ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
|
3277
2331
|
*/
|
|
3278
2332
|
value: e.any
|
|
3279
2333
|
});
|
|
3280
|
-
|
|
3281
|
-
const
|
|
2334
|
+
ce && (ce.muiName = "Input");
|
|
2335
|
+
const et = (o) => {
|
|
3282
2336
|
const {
|
|
3283
2337
|
classes: t
|
|
3284
2338
|
} = o;
|
|
3285
2339
|
return t;
|
|
3286
|
-
},
|
|
2340
|
+
}, Ee = {
|
|
3287
2341
|
name: "MuiSelect",
|
|
3288
2342
|
overridesResolver: (o, t) => t.root,
|
|
3289
|
-
shouldForwardProp: (o) =>
|
|
2343
|
+
shouldForwardProp: (o) => k(o) && o !== "variant",
|
|
3290
2344
|
slot: "Root"
|
|
3291
|
-
},
|
|
3292
|
-
const r =
|
|
2345
|
+
}, ot = h(de, Ee)(""), tt = h(ce, Ee)(""), nt = h(ue, Ee)(""), Qe = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
2346
|
+
const r = H({
|
|
3293
2347
|
name: "MuiSelect",
|
|
3294
2348
|
props: t
|
|
3295
2349
|
}), {
|
|
3296
|
-
autoWidth:
|
|
3297
|
-
children:
|
|
3298
|
-
classes:
|
|
3299
|
-
className:
|
|
3300
|
-
defaultOpen:
|
|
3301
|
-
displayEmpty:
|
|
3302
|
-
IconComponent:
|
|
3303
|
-
id:
|
|
3304
|
-
input:
|
|
3305
|
-
inputProps:
|
|
3306
|
-
label:
|
|
3307
|
-
labelId:
|
|
3308
|
-
MenuProps:
|
|
3309
|
-
multiple:
|
|
3310
|
-
native:
|
|
3311
|
-
onClose:
|
|
3312
|
-
onOpen:
|
|
3313
|
-
open:
|
|
3314
|
-
renderValue:
|
|
3315
|
-
SelectDisplayProps:
|
|
3316
|
-
variant:
|
|
3317
|
-
...
|
|
3318
|
-
} = r,
|
|
2350
|
+
autoWidth: i = !1,
|
|
2351
|
+
children: p,
|
|
2352
|
+
classes: a = {},
|
|
2353
|
+
className: d,
|
|
2354
|
+
defaultOpen: m = !1,
|
|
2355
|
+
displayEmpty: g = !1,
|
|
2356
|
+
IconComponent: f = zo,
|
|
2357
|
+
id: c,
|
|
2358
|
+
input: O,
|
|
2359
|
+
inputProps: R,
|
|
2360
|
+
label: w,
|
|
2361
|
+
labelId: T,
|
|
2362
|
+
MenuProps: y,
|
|
2363
|
+
multiple: x = !1,
|
|
2364
|
+
native: C = !1,
|
|
2365
|
+
onClose: I,
|
|
2366
|
+
onOpen: N,
|
|
2367
|
+
open: L,
|
|
2368
|
+
renderValue: Y,
|
|
2369
|
+
SelectDisplayProps: be,
|
|
2370
|
+
variant: Z = "outlined",
|
|
2371
|
+
...J
|
|
2372
|
+
} = r, Q = C ? Ye : Ze, ee = Ie(), B = Ce({
|
|
3319
2373
|
props: r,
|
|
3320
|
-
muiFormControl:
|
|
2374
|
+
muiFormControl: ee,
|
|
3321
2375
|
states: ["variant", "error"]
|
|
3322
|
-
}),
|
|
2376
|
+
}), $ = B.variant || Z, q = {
|
|
3323
2377
|
...r,
|
|
3324
|
-
variant:
|
|
3325
|
-
classes:
|
|
3326
|
-
},
|
|
3327
|
-
root:
|
|
3328
|
-
...
|
|
3329
|
-
} =
|
|
3330
|
-
standard: /* @__PURE__ */
|
|
3331
|
-
ownerState:
|
|
2378
|
+
variant: $,
|
|
2379
|
+
classes: a
|
|
2380
|
+
}, oe = et(q), {
|
|
2381
|
+
root: Fe,
|
|
2382
|
+
..._
|
|
2383
|
+
} = oe, b = O || {
|
|
2384
|
+
standard: /* @__PURE__ */ v(ot, {
|
|
2385
|
+
ownerState: q
|
|
3332
2386
|
}),
|
|
3333
|
-
outlined: /* @__PURE__ */
|
|
3334
|
-
label:
|
|
3335
|
-
ownerState:
|
|
2387
|
+
outlined: /* @__PURE__ */ v(tt, {
|
|
2388
|
+
label: w,
|
|
2389
|
+
ownerState: q
|
|
3336
2390
|
}),
|
|
3337
|
-
filled: /* @__PURE__ */
|
|
3338
|
-
ownerState:
|
|
2391
|
+
filled: /* @__PURE__ */ v(nt, {
|
|
2392
|
+
ownerState: q
|
|
3339
2393
|
})
|
|
3340
|
-
}[
|
|
3341
|
-
return /* @__PURE__ */
|
|
3342
|
-
children: /* @__PURE__ */
|
|
2394
|
+
}[$], te = Xe(n, So(b));
|
|
2395
|
+
return /* @__PURE__ */ v(u.Fragment, {
|
|
2396
|
+
children: /* @__PURE__ */ u.cloneElement(b, {
|
|
3343
2397
|
// Most of the logic is implemented in `SelectInput`.
|
|
3344
2398
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
3345
|
-
inputComponent:
|
|
2399
|
+
inputComponent: Q,
|
|
3346
2400
|
inputProps: {
|
|
3347
|
-
children:
|
|
3348
|
-
error:
|
|
3349
|
-
IconComponent:
|
|
3350
|
-
variant:
|
|
2401
|
+
children: p,
|
|
2402
|
+
error: B.error,
|
|
2403
|
+
IconComponent: f,
|
|
2404
|
+
variant: $,
|
|
3351
2405
|
type: void 0,
|
|
3352
2406
|
// We render a select. We can ignore the type provided by the `Input`.
|
|
3353
|
-
multiple:
|
|
3354
|
-
...
|
|
3355
|
-
id:
|
|
2407
|
+
multiple: x,
|
|
2408
|
+
...C ? {
|
|
2409
|
+
id: c
|
|
3356
2410
|
} : {
|
|
3357
|
-
autoWidth:
|
|
3358
|
-
defaultOpen:
|
|
3359
|
-
displayEmpty:
|
|
3360
|
-
labelId:
|
|
3361
|
-
MenuProps:
|
|
3362
|
-
onClose:
|
|
3363
|
-
onOpen:
|
|
3364
|
-
open:
|
|
3365
|
-
renderValue:
|
|
2411
|
+
autoWidth: i,
|
|
2412
|
+
defaultOpen: m,
|
|
2413
|
+
displayEmpty: g,
|
|
2414
|
+
labelId: T,
|
|
2415
|
+
MenuProps: y,
|
|
2416
|
+
onClose: I,
|
|
2417
|
+
onOpen: N,
|
|
2418
|
+
open: L,
|
|
2419
|
+
renderValue: Y,
|
|
3366
2420
|
SelectDisplayProps: {
|
|
3367
|
-
id:
|
|
3368
|
-
...
|
|
2421
|
+
id: c,
|
|
2422
|
+
...be
|
|
3369
2423
|
}
|
|
3370
2424
|
},
|
|
3371
|
-
...
|
|
3372
|
-
classes:
|
|
3373
|
-
...
|
|
2425
|
+
...R,
|
|
2426
|
+
classes: R ? Oe(_, R.classes) : _,
|
|
2427
|
+
...O ? O.props.inputProps : {}
|
|
3374
2428
|
},
|
|
3375
|
-
...(
|
|
2429
|
+
...(x && C || g) && $ === "outlined" ? {
|
|
3376
2430
|
notched: !0
|
|
3377
2431
|
} : {},
|
|
3378
|
-
ref:
|
|
3379
|
-
className:
|
|
2432
|
+
ref: te,
|
|
2433
|
+
className: fe(b.props.className, d, oe.root),
|
|
3380
2434
|
// If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
|
|
3381
|
-
...!
|
|
3382
|
-
variant:
|
|
2435
|
+
...!O && {
|
|
2436
|
+
variant: $
|
|
3383
2437
|
},
|
|
3384
|
-
...
|
|
2438
|
+
...J
|
|
3385
2439
|
})
|
|
3386
2440
|
});
|
|
3387
2441
|
});
|
|
3388
|
-
process.env.NODE_ENV !== "production" && (
|
|
2442
|
+
process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
3389
2443
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
3390
2444
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
3391
2445
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -3532,24 +2586,17 @@ process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
|
3532
2586
|
*/
|
|
3533
2587
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
3534
2588
|
});
|
|
3535
|
-
|
|
2589
|
+
Qe.muiName = "Select";
|
|
3536
2590
|
export {
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
St as f,
|
|
3549
|
-
Zo as g,
|
|
3550
|
-
yo as h,
|
|
3551
|
-
ue as i,
|
|
3552
|
-
yn as l,
|
|
3553
|
-
On as m,
|
|
3554
|
-
me as s
|
|
2591
|
+
ue as F,
|
|
2592
|
+
de as I,
|
|
2593
|
+
ce as O,
|
|
2594
|
+
Qe as S,
|
|
2595
|
+
ko as a,
|
|
2596
|
+
It as b,
|
|
2597
|
+
No as c,
|
|
2598
|
+
Lo as d,
|
|
2599
|
+
Ro as g,
|
|
2600
|
+
K as i,
|
|
2601
|
+
X as s
|
|
3555
2602
|
};
|