@hybridcore/ui 1.6.0 → 1.6.1
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/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
- package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
- package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
- package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
- package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
- package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
- package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
- package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-security-selectors/security-level/index.js +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/geometry-picker/index.js +13 -12
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4222 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +8 -8
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
- package/dist/components/template-form/index.js +32 -33
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
- package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
- package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
- package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +734 -298
- package/dist/main.js +15 -15
- package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
- package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
- package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +1 -1
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/Button-CvE2gnly.js +0 -370
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
|
@@ -1,130 +1,126 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import * as
|
|
1
|
+
import { _ as H, a as i } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import * as s from "react";
|
|
3
3
|
import { P as e } from "./index-C__OZmYy.js";
|
|
4
|
-
import { g as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { d as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { c as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import { u as pn } from "./useFormControl-CatNKXAi.js";
|
|
20
|
-
import { c as zn } from "./createSvgIcon-DrtgaibK.js";
|
|
21
|
-
const Hn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
22
|
-
function Ne(n) {
|
|
4
|
+
import { g as ee, b as ne, s as j, u as se, c as Z, a as oe, r as ge, h as an, j as jn, f as Ln } from "./styled-Bsjp3kFh.js";
|
|
5
|
+
import { jsx as x, jsxs as ve } from "react/jsx-runtime";
|
|
6
|
+
import { i as ln, a as dn, r as cn, b as un, c as pn, d as fn, e as kn, I as mn, F as _n } from "./FormControl-BCurCxRj.js";
|
|
7
|
+
import { o as he, a as qe, u as Wn } from "./useId-B4-oF9Mq.js";
|
|
8
|
+
import { u as je, f as Le, I as An } from "./InputLabel-rEwwnD4_.js";
|
|
9
|
+
import { r as ke } from "./index-BMS1Otro.js";
|
|
10
|
+
import { u as bn, T as Bn, r as Vn, g as Ke, P as hn, i as zn } from "./Paper-q9kKjAKx.js";
|
|
11
|
+
import { e as Un, g as Hn, M as qn, H as $e } from "./Modal-DlB6GH-f.js";
|
|
12
|
+
import { a as ye, r as pe, u as Kn, c as Gn, e as Xn } from "./ButtonBase-sObABYY2.js";
|
|
13
|
+
import { d as Yn } from "./isMuiElement-BkJ72LB3.js";
|
|
14
|
+
import { c as fe } from "./capitalize-quqpGCFu.js";
|
|
15
|
+
import { u as Ge } from "./useControlled-BYdyS7Pn.js";
|
|
16
|
+
import { c as Jn } from "./createSvgIcon-DX-SqL8M.js";
|
|
17
|
+
const Qn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
18
|
+
function De(n) {
|
|
23
19
|
return `scale(${n}, ${n ** 2})`;
|
|
24
20
|
}
|
|
25
|
-
const
|
|
21
|
+
const Zn = {
|
|
26
22
|
entering: {
|
|
27
23
|
opacity: 1,
|
|
28
|
-
transform:
|
|
24
|
+
transform: De(1)
|
|
29
25
|
},
|
|
30
26
|
entered: {
|
|
31
27
|
opacity: 1,
|
|
32
28
|
transform: "none"
|
|
33
29
|
}
|
|
34
|
-
},
|
|
30
|
+
}, Me = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), _e = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
35
31
|
const {
|
|
36
|
-
addEndListener:
|
|
37
|
-
appear:
|
|
38
|
-
children:
|
|
39
|
-
easing:
|
|
32
|
+
addEndListener: r,
|
|
33
|
+
appear: u = !0,
|
|
34
|
+
children: a,
|
|
35
|
+
easing: l,
|
|
40
36
|
in: p,
|
|
41
|
-
onEnter:
|
|
42
|
-
onEntered:
|
|
43
|
-
onEntering:
|
|
44
|
-
onExit:
|
|
37
|
+
onEnter: m,
|
|
38
|
+
onEntered: h,
|
|
39
|
+
onEntering: I,
|
|
40
|
+
onExit: S,
|
|
45
41
|
onExited: M,
|
|
46
|
-
onExiting:
|
|
47
|
-
style:
|
|
48
|
-
timeout:
|
|
42
|
+
onExiting: b,
|
|
43
|
+
style: C,
|
|
44
|
+
timeout: O = "auto",
|
|
49
45
|
// eslint-disable-next-line react/prop-types
|
|
50
|
-
TransitionComponent:
|
|
51
|
-
} =
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
|
|
46
|
+
TransitionComponent: F = Bn
|
|
47
|
+
} = o, T = H(o, Qn), E = s.useRef(), f = s.useRef(), d = bn(), P = s.useRef(null), $ = ye(P, a.ref, t), y = (g) => (v) => {
|
|
48
|
+
if (g) {
|
|
49
|
+
const z = P.current;
|
|
50
|
+
v === void 0 ? g(z) : g(z, v);
|
|
55
51
|
}
|
|
56
|
-
},
|
|
57
|
-
|
|
52
|
+
}, k = y(I), _ = y((g, v) => {
|
|
53
|
+
Vn(g);
|
|
58
54
|
const {
|
|
59
|
-
duration:
|
|
60
|
-
delay:
|
|
61
|
-
easing:
|
|
62
|
-
} =
|
|
63
|
-
style:
|
|
64
|
-
timeout:
|
|
65
|
-
easing:
|
|
55
|
+
duration: z,
|
|
56
|
+
delay: K,
|
|
57
|
+
easing: W
|
|
58
|
+
} = Ke({
|
|
59
|
+
style: C,
|
|
60
|
+
timeout: O,
|
|
61
|
+
easing: l
|
|
66
62
|
}, {
|
|
67
63
|
mode: "enter"
|
|
68
64
|
});
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
duration:
|
|
72
|
-
delay:
|
|
73
|
-
}),
|
|
74
|
-
duration:
|
|
75
|
-
delay:
|
|
76
|
-
easing:
|
|
77
|
-
})].join(","),
|
|
78
|
-
}), D = h
|
|
65
|
+
let R;
|
|
66
|
+
O === "auto" ? (R = d.transitions.getAutoHeightDuration(g.clientHeight), f.current = R) : R = z, g.style.transition = [d.transitions.create("opacity", {
|
|
67
|
+
duration: R,
|
|
68
|
+
delay: K
|
|
69
|
+
}), d.transitions.create("transform", {
|
|
70
|
+
duration: Me ? R : R * 0.666,
|
|
71
|
+
delay: K,
|
|
72
|
+
easing: W
|
|
73
|
+
})].join(","), m && m(g, v);
|
|
74
|
+
}), D = y(h), V = y(b), J = y((g) => {
|
|
79
75
|
const {
|
|
80
|
-
duration:
|
|
81
|
-
delay:
|
|
82
|
-
easing:
|
|
83
|
-
} =
|
|
84
|
-
style:
|
|
85
|
-
timeout:
|
|
86
|
-
easing:
|
|
76
|
+
duration: v,
|
|
77
|
+
delay: z,
|
|
78
|
+
easing: K
|
|
79
|
+
} = Ke({
|
|
80
|
+
style: C,
|
|
81
|
+
timeout: O,
|
|
82
|
+
easing: l
|
|
87
83
|
}, {
|
|
88
84
|
mode: "exit"
|
|
89
85
|
});
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
duration:
|
|
93
|
-
delay:
|
|
94
|
-
}),
|
|
95
|
-
duration:
|
|
96
|
-
delay:
|
|
97
|
-
easing:
|
|
98
|
-
})].join(","),
|
|
99
|
-
}),
|
|
100
|
-
|
|
86
|
+
let W;
|
|
87
|
+
O === "auto" ? (W = d.transitions.getAutoHeightDuration(g.clientHeight), f.current = W) : W = v, g.style.transition = [d.transitions.create("opacity", {
|
|
88
|
+
duration: W,
|
|
89
|
+
delay: z
|
|
90
|
+
}), d.transitions.create("transform", {
|
|
91
|
+
duration: Me ? W : W * 0.666,
|
|
92
|
+
delay: Me ? z : z || W * 0.333,
|
|
93
|
+
easing: K
|
|
94
|
+
})].join(","), g.style.opacity = 0, g.style.transform = De(0.75), S && S(g);
|
|
95
|
+
}), q = y(M), X = (g) => {
|
|
96
|
+
O === "auto" && (E.current = setTimeout(g, f.current || 0)), r && r(P.current, g);
|
|
101
97
|
};
|
|
102
|
-
return
|
|
103
|
-
clearTimeout(
|
|
104
|
-
}, []), /* @__PURE__ */
|
|
105
|
-
appear:
|
|
98
|
+
return s.useEffect(() => () => {
|
|
99
|
+
clearTimeout(E.current);
|
|
100
|
+
}, []), /* @__PURE__ */ x(F, i({
|
|
101
|
+
appear: u,
|
|
106
102
|
in: p,
|
|
107
|
-
nodeRef:
|
|
108
|
-
onEnter:
|
|
103
|
+
nodeRef: P,
|
|
104
|
+
onEnter: _,
|
|
109
105
|
onEntered: D,
|
|
110
|
-
onEntering:
|
|
106
|
+
onEntering: k,
|
|
111
107
|
onExit: J,
|
|
112
|
-
onExited:
|
|
113
|
-
onExiting:
|
|
114
|
-
addEndListener:
|
|
115
|
-
timeout:
|
|
116
|
-
},
|
|
117
|
-
children: (
|
|
118
|
-
style:
|
|
108
|
+
onExited: q,
|
|
109
|
+
onExiting: V,
|
|
110
|
+
addEndListener: X,
|
|
111
|
+
timeout: O === "auto" ? null : O
|
|
112
|
+
}, T, {
|
|
113
|
+
children: (g, v) => /* @__PURE__ */ s.cloneElement(a, i({
|
|
114
|
+
style: i({
|
|
119
115
|
opacity: 0,
|
|
120
|
-
transform:
|
|
121
|
-
visibility:
|
|
122
|
-
},
|
|
123
|
-
ref:
|
|
124
|
-
},
|
|
116
|
+
transform: De(0.75),
|
|
117
|
+
visibility: g === "exited" && !p ? "hidden" : void 0
|
|
118
|
+
}, Zn[g], C, a.props.style),
|
|
119
|
+
ref: $
|
|
120
|
+
}, v))
|
|
125
121
|
}));
|
|
126
122
|
});
|
|
127
|
-
process.env.NODE_ENV !== "production" && (
|
|
123
|
+
process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
128
124
|
// ----------------------------- Warning --------------------------------
|
|
129
125
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
130
126
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -144,7 +140,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
144
140
|
/**
|
|
145
141
|
* A single child content element.
|
|
146
142
|
*/
|
|
147
|
-
children:
|
|
143
|
+
children: Un.isRequired,
|
|
148
144
|
/**
|
|
149
145
|
* The transition timing function.
|
|
150
146
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -198,38 +194,148 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
198
194
|
exit: e.number
|
|
199
195
|
})])
|
|
200
196
|
});
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
_e.muiSupportAuto = !0;
|
|
198
|
+
const gn = /* @__PURE__ */ s.createContext({});
|
|
199
|
+
process.env.NODE_ENV !== "production" && (gn.displayName = "ListContext");
|
|
200
|
+
function eo(n) {
|
|
201
|
+
return ne("MuiList", n);
|
|
204
202
|
}
|
|
205
|
-
|
|
203
|
+
ee("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
204
|
+
const no = ["children", "className", "component", "dense", "disablePadding", "subheader"], oo = (n) => {
|
|
206
205
|
const {
|
|
207
|
-
classes:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
classes: o,
|
|
207
|
+
disablePadding: t,
|
|
208
|
+
dense: r,
|
|
209
|
+
subheader: u
|
|
210
|
+
} = n;
|
|
211
|
+
return oe({
|
|
212
|
+
root: ["root", !t && "padding", r && "dense", u && "subheader"]
|
|
213
|
+
}, eo, o);
|
|
214
|
+
}, to = j("ul", {
|
|
215
|
+
name: "MuiList",
|
|
216
|
+
slot: "Root",
|
|
217
|
+
overridesResolver: (n, o) => {
|
|
218
|
+
const {
|
|
219
|
+
ownerState: t
|
|
220
|
+
} = n;
|
|
221
|
+
return [o.root, !t.disablePadding && o.padding, t.dense && o.dense, t.subheader && o.subheader];
|
|
222
|
+
}
|
|
223
|
+
})(({
|
|
224
|
+
ownerState: n
|
|
225
|
+
}) => i({
|
|
226
|
+
listStyle: "none",
|
|
227
|
+
margin: 0,
|
|
228
|
+
padding: 0,
|
|
229
|
+
position: "relative"
|
|
230
|
+
}, !n.disablePadding && {
|
|
231
|
+
paddingTop: 8,
|
|
232
|
+
paddingBottom: 8
|
|
233
|
+
}, n.subheader && {
|
|
234
|
+
paddingTop: 0
|
|
235
|
+
})), vn = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
236
|
+
const r = se({
|
|
237
|
+
props: o,
|
|
238
|
+
name: "MuiList"
|
|
239
|
+
}), {
|
|
240
|
+
children: u,
|
|
241
|
+
className: a,
|
|
242
|
+
component: l = "ul",
|
|
243
|
+
dense: p = !1,
|
|
244
|
+
disablePadding: m = !1,
|
|
245
|
+
subheader: h
|
|
246
|
+
} = r, I = H(r, no), S = s.useMemo(() => ({
|
|
247
|
+
dense: p
|
|
248
|
+
}), [p]), M = i({}, r, {
|
|
249
|
+
component: l,
|
|
250
|
+
dense: p,
|
|
251
|
+
disablePadding: m
|
|
252
|
+
}), b = oo(M);
|
|
253
|
+
return /* @__PURE__ */ x(gn.Provider, {
|
|
254
|
+
value: S,
|
|
255
|
+
children: /* @__PURE__ */ ve(to, i({
|
|
256
|
+
as: l,
|
|
257
|
+
className: Z(b.root, a),
|
|
258
|
+
ref: t,
|
|
259
|
+
ownerState: M
|
|
260
|
+
}, I, {
|
|
261
|
+
children: [h, u]
|
|
262
|
+
}))
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
process.env.NODE_ENV !== "production" && (vn.propTypes = {
|
|
266
|
+
// ----------------------------- Warning --------------------------------
|
|
267
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
268
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
269
|
+
// ----------------------------------------------------------------------
|
|
270
|
+
/**
|
|
271
|
+
* The content of the component.
|
|
272
|
+
*/
|
|
273
|
+
children: e.node,
|
|
274
|
+
/**
|
|
275
|
+
* Override or extend the styles applied to the component.
|
|
276
|
+
*/
|
|
277
|
+
classes: e.object,
|
|
278
|
+
/**
|
|
279
|
+
* @ignore
|
|
280
|
+
*/
|
|
281
|
+
className: e.string,
|
|
282
|
+
/**
|
|
283
|
+
* The component used for the root node.
|
|
284
|
+
* Either a string to use a HTML element or a component.
|
|
285
|
+
*/
|
|
286
|
+
component: e.elementType,
|
|
287
|
+
/**
|
|
288
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
289
|
+
* the list and list items.
|
|
290
|
+
* The prop is available to descendant components as the `dense` context.
|
|
291
|
+
* @default false
|
|
292
|
+
*/
|
|
293
|
+
dense: e.bool,
|
|
294
|
+
/**
|
|
295
|
+
* If `true`, vertical padding is removed from the list.
|
|
296
|
+
* @default false
|
|
297
|
+
*/
|
|
298
|
+
disablePadding: e.bool,
|
|
299
|
+
/**
|
|
300
|
+
* The content of the subheader, normally `ListSubheader`.
|
|
301
|
+
*/
|
|
302
|
+
subheader: e.node,
|
|
303
|
+
/**
|
|
304
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
305
|
+
*/
|
|
306
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
307
|
+
});
|
|
308
|
+
function ro(n) {
|
|
309
|
+
return ne("MuiFilledInput", n);
|
|
310
|
+
}
|
|
311
|
+
const de = i({}, ln, ee("MuiFilledInput", ["root", "underline", "input"])), io = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"], so = (n) => {
|
|
312
|
+
const {
|
|
313
|
+
classes: o,
|
|
314
|
+
disableUnderline: t
|
|
315
|
+
} = n, u = oe({
|
|
316
|
+
root: ["root", !t && "underline"],
|
|
211
317
|
input: ["input"]
|
|
212
|
-
},
|
|
213
|
-
return
|
|
214
|
-
},
|
|
215
|
-
shouldForwardProp: (n) =>
|
|
318
|
+
}, ro, o);
|
|
319
|
+
return i({}, o, u);
|
|
320
|
+
}, ao = j(dn, {
|
|
321
|
+
shouldForwardProp: (n) => ge(n) || n === "classes",
|
|
216
322
|
name: "MuiFilledInput",
|
|
217
323
|
slot: "Root",
|
|
218
|
-
overridesResolver: (n,
|
|
324
|
+
overridesResolver: (n, o) => {
|
|
219
325
|
const {
|
|
220
|
-
ownerState:
|
|
326
|
+
ownerState: t
|
|
221
327
|
} = n;
|
|
222
|
-
return [...
|
|
328
|
+
return [...cn(n, o), !t.disableUnderline && o.underline];
|
|
223
329
|
}
|
|
224
330
|
})(({
|
|
225
331
|
theme: n,
|
|
226
|
-
ownerState:
|
|
332
|
+
ownerState: o
|
|
227
333
|
}) => {
|
|
228
|
-
var
|
|
229
|
-
const
|
|
230
|
-
return
|
|
334
|
+
var t;
|
|
335
|
+
const r = n.palette.mode === "light", u = r ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", a = r ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", l = r ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", p = r ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
336
|
+
return i({
|
|
231
337
|
position: "relative",
|
|
232
|
-
backgroundColor: n.vars ? n.vars.palette.FilledInput.bg :
|
|
338
|
+
backgroundColor: n.vars ? n.vars.palette.FilledInput.bg : a,
|
|
233
339
|
borderTopLeftRadius: (n.vars || n).shape.borderRadius,
|
|
234
340
|
borderTopRightRadius: (n.vars || n).shape.borderRadius,
|
|
235
341
|
transition: n.transitions.create("background-color", {
|
|
@@ -237,21 +343,21 @@ const te = s({}, rn, ie("MuiFilledInput", ["root", "underline", "input"])), Gn =
|
|
|
237
343
|
easing: n.transitions.easing.easeOut
|
|
238
344
|
}),
|
|
239
345
|
"&:hover": {
|
|
240
|
-
backgroundColor: n.vars ? n.vars.palette.FilledInput.hoverBg :
|
|
346
|
+
backgroundColor: n.vars ? n.vars.palette.FilledInput.hoverBg : l,
|
|
241
347
|
// Reset on touch devices, it doesn't add specificity
|
|
242
348
|
"@media (hover: none)": {
|
|
243
|
-
backgroundColor: n.vars ? n.vars.palette.FilledInput.bg :
|
|
349
|
+
backgroundColor: n.vars ? n.vars.palette.FilledInput.bg : a
|
|
244
350
|
}
|
|
245
351
|
},
|
|
246
|
-
[`&.${
|
|
247
|
-
backgroundColor: n.vars ? n.vars.palette.FilledInput.bg :
|
|
352
|
+
[`&.${de.focused}`]: {
|
|
353
|
+
backgroundColor: n.vars ? n.vars.palette.FilledInput.bg : a
|
|
248
354
|
},
|
|
249
|
-
[`&.${
|
|
355
|
+
[`&.${de.disabled}`]: {
|
|
250
356
|
backgroundColor: n.vars ? n.vars.palette.FilledInput.disabledBg : p
|
|
251
357
|
}
|
|
252
|
-
}, !
|
|
358
|
+
}, !o.disableUnderline && {
|
|
253
359
|
"&:after": {
|
|
254
|
-
borderBottom: `2px solid ${(
|
|
360
|
+
borderBottom: `2px solid ${(t = (n.vars || n).palette[o.color || "primary"]) == null ? void 0 : t.main}`,
|
|
255
361
|
left: 0,
|
|
256
362
|
bottom: 0,
|
|
257
363
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -266,18 +372,18 @@ const te = s({}, rn, ie("MuiFilledInput", ["root", "underline", "input"])), Gn =
|
|
|
266
372
|
pointerEvents: "none"
|
|
267
373
|
// Transparent to the hover style.
|
|
268
374
|
},
|
|
269
|
-
[`&.${
|
|
375
|
+
[`&.${de.focused}:after`]: {
|
|
270
376
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
271
377
|
// See https://github.com/mui/material-ui/issues/31766
|
|
272
378
|
transform: "scaleX(1) translateX(0)"
|
|
273
379
|
},
|
|
274
|
-
[`&.${
|
|
380
|
+
[`&.${de.error}`]: {
|
|
275
381
|
"&:before, &:after": {
|
|
276
382
|
borderBottomColor: (n.vars || n).palette.error.main
|
|
277
383
|
}
|
|
278
384
|
},
|
|
279
385
|
"&:before": {
|
|
280
|
-
borderBottom: `1px solid ${n.vars ? `rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})` :
|
|
386
|
+
borderBottom: `1px solid ${n.vars ? `rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})` : u}`,
|
|
281
387
|
left: 0,
|
|
282
388
|
bottom: 0,
|
|
283
389
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -290,33 +396,33 @@ const te = s({}, rn, ie("MuiFilledInput", ["root", "underline", "input"])), Gn =
|
|
|
290
396
|
pointerEvents: "none"
|
|
291
397
|
// Transparent to the hover style.
|
|
292
398
|
},
|
|
293
|
-
[`&:hover:not(.${
|
|
399
|
+
[`&:hover:not(.${de.disabled}, .${de.error}):before`]: {
|
|
294
400
|
borderBottom: `1px solid ${(n.vars || n).palette.text.primary}`
|
|
295
401
|
},
|
|
296
|
-
[`&.${
|
|
402
|
+
[`&.${de.disabled}:before`]: {
|
|
297
403
|
borderBottomStyle: "dotted"
|
|
298
404
|
}
|
|
299
|
-
},
|
|
405
|
+
}, o.startAdornment && {
|
|
300
406
|
paddingLeft: 12
|
|
301
|
-
},
|
|
407
|
+
}, o.endAdornment && {
|
|
302
408
|
paddingRight: 12
|
|
303
|
-
},
|
|
409
|
+
}, o.multiline && i({
|
|
304
410
|
padding: "25px 12px 8px"
|
|
305
|
-
},
|
|
411
|
+
}, o.size === "small" && {
|
|
306
412
|
paddingTop: 21,
|
|
307
413
|
paddingBottom: 4
|
|
308
|
-
},
|
|
414
|
+
}, o.hiddenLabel && {
|
|
309
415
|
paddingTop: 16,
|
|
310
416
|
paddingBottom: 17
|
|
311
417
|
}));
|
|
312
|
-
}),
|
|
418
|
+
}), lo = j(un, {
|
|
313
419
|
name: "MuiFilledInput",
|
|
314
420
|
slot: "Input",
|
|
315
|
-
overridesResolver:
|
|
421
|
+
overridesResolver: pn
|
|
316
422
|
})(({
|
|
317
423
|
theme: n,
|
|
318
|
-
ownerState:
|
|
319
|
-
}) =>
|
|
424
|
+
ownerState: o
|
|
425
|
+
}) => i({
|
|
320
426
|
paddingTop: 25,
|
|
321
427
|
paddingRight: 12,
|
|
322
428
|
paddingBottom: 8,
|
|
@@ -341,68 +447,68 @@ const te = s({}, rn, ie("MuiFilledInput", ["root", "underline", "input"])), Gn =
|
|
|
341
447
|
caretColor: "#fff"
|
|
342
448
|
}
|
|
343
449
|
}
|
|
344
|
-
},
|
|
450
|
+
}, o.size === "small" && {
|
|
345
451
|
paddingTop: 21,
|
|
346
452
|
paddingBottom: 4
|
|
347
|
-
},
|
|
453
|
+
}, o.hiddenLabel && {
|
|
348
454
|
paddingTop: 16,
|
|
349
455
|
paddingBottom: 17
|
|
350
|
-
},
|
|
456
|
+
}, o.multiline && {
|
|
351
457
|
paddingTop: 0,
|
|
352
458
|
paddingBottom: 0,
|
|
353
459
|
paddingLeft: 0,
|
|
354
460
|
paddingRight: 0
|
|
355
|
-
},
|
|
461
|
+
}, o.startAdornment && {
|
|
356
462
|
paddingLeft: 0
|
|
357
|
-
},
|
|
463
|
+
}, o.endAdornment && {
|
|
358
464
|
paddingRight: 0
|
|
359
|
-
},
|
|
465
|
+
}, o.hiddenLabel && o.size === "small" && {
|
|
360
466
|
paddingTop: 8,
|
|
361
467
|
paddingBottom: 9
|
|
362
|
-
})),
|
|
363
|
-
var
|
|
364
|
-
const p =
|
|
365
|
-
props:
|
|
468
|
+
})), Pe = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
469
|
+
var r, u, a, l;
|
|
470
|
+
const p = se({
|
|
471
|
+
props: o,
|
|
366
472
|
name: "MuiFilledInput"
|
|
367
473
|
}), {
|
|
368
|
-
components:
|
|
369
|
-
componentsProps:
|
|
370
|
-
fullWidth:
|
|
474
|
+
components: m = {},
|
|
475
|
+
componentsProps: h,
|
|
476
|
+
fullWidth: I = !1,
|
|
371
477
|
// declare here to prevent spreading to DOM
|
|
372
|
-
inputComponent:
|
|
478
|
+
inputComponent: S = "input",
|
|
373
479
|
multiline: M = !1,
|
|
374
|
-
slotProps:
|
|
375
|
-
slots:
|
|
376
|
-
type:
|
|
377
|
-
} = p,
|
|
378
|
-
fullWidth:
|
|
379
|
-
inputComponent:
|
|
480
|
+
slotProps: b,
|
|
481
|
+
slots: C = {},
|
|
482
|
+
type: O = "text"
|
|
483
|
+
} = p, F = H(p, io), T = i({}, p, {
|
|
484
|
+
fullWidth: I,
|
|
485
|
+
inputComponent: S,
|
|
380
486
|
multiline: M,
|
|
381
|
-
type:
|
|
382
|
-
}),
|
|
487
|
+
type: O
|
|
488
|
+
}), E = so(p), f = {
|
|
383
489
|
root: {
|
|
384
|
-
ownerState:
|
|
490
|
+
ownerState: T
|
|
385
491
|
},
|
|
386
492
|
input: {
|
|
387
|
-
ownerState:
|
|
493
|
+
ownerState: T
|
|
388
494
|
}
|
|
389
|
-
},
|
|
390
|
-
return /* @__PURE__ */
|
|
495
|
+
}, d = b ?? h ? an(b ?? h, f) : f, P = (r = (u = C.root) != null ? u : m.Root) != null ? r : ao, $ = (a = (l = C.input) != null ? l : m.Input) != null ? a : lo;
|
|
496
|
+
return /* @__PURE__ */ x(fn, i({
|
|
391
497
|
slots: {
|
|
392
|
-
root:
|
|
393
|
-
input:
|
|
498
|
+
root: P,
|
|
499
|
+
input: $
|
|
394
500
|
},
|
|
395
|
-
componentsProps:
|
|
396
|
-
fullWidth:
|
|
397
|
-
inputComponent:
|
|
501
|
+
componentsProps: d,
|
|
502
|
+
fullWidth: I,
|
|
503
|
+
inputComponent: S,
|
|
398
504
|
multiline: M,
|
|
399
|
-
ref:
|
|
400
|
-
type:
|
|
401
|
-
},
|
|
402
|
-
classes:
|
|
505
|
+
ref: t,
|
|
506
|
+
type: O
|
|
507
|
+
}, F, {
|
|
508
|
+
classes: E
|
|
403
509
|
}));
|
|
404
510
|
});
|
|
405
|
-
process.env.NODE_ENV !== "production" && (
|
|
511
|
+
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
406
512
|
// ----------------------------- Warning --------------------------------
|
|
407
513
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
408
514
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -505,7 +611,7 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
505
611
|
/**
|
|
506
612
|
* Pass a ref to the `input` element.
|
|
507
613
|
*/
|
|
508
|
-
inputRef:
|
|
614
|
+
inputRef: pe,
|
|
509
615
|
/**
|
|
510
616
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
511
617
|
* FormControl.
|
|
@@ -595,9 +701,9 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
595
701
|
*/
|
|
596
702
|
value: e.any
|
|
597
703
|
});
|
|
598
|
-
|
|
599
|
-
var
|
|
600
|
-
const
|
|
704
|
+
Pe.muiName = "Input";
|
|
705
|
+
var Xe;
|
|
706
|
+
const co = ["children", "classes", "className", "label", "notched"], uo = j("fieldset")({
|
|
601
707
|
textAlign: "left",
|
|
602
708
|
position: "absolute",
|
|
603
709
|
bottom: 0,
|
|
@@ -612,10 +718,10 @@ const Qn = ["children", "classes", "className", "label", "notched"], Zn = j("fie
|
|
|
612
718
|
borderWidth: 1,
|
|
613
719
|
overflow: "hidden",
|
|
614
720
|
minWidth: "0%"
|
|
615
|
-
}),
|
|
721
|
+
}), po = j("legend")(({
|
|
616
722
|
ownerState: n,
|
|
617
|
-
theme:
|
|
618
|
-
}) =>
|
|
723
|
+
theme: o
|
|
724
|
+
}) => i({
|
|
619
725
|
float: "unset",
|
|
620
726
|
// Fix conflict with bootstrap
|
|
621
727
|
width: "auto",
|
|
@@ -625,11 +731,11 @@ const Qn = ["children", "classes", "className", "label", "notched"], Zn = j("fie
|
|
|
625
731
|
padding: 0,
|
|
626
732
|
lineHeight: "11px",
|
|
627
733
|
// sync with `height` in `legend` styles
|
|
628
|
-
transition:
|
|
734
|
+
transition: o.transitions.create("width", {
|
|
629
735
|
duration: 150,
|
|
630
|
-
easing:
|
|
736
|
+
easing: o.transitions.easing.easeOut
|
|
631
737
|
})
|
|
632
|
-
}, n.withLabel &&
|
|
738
|
+
}, n.withLabel && i({
|
|
633
739
|
display: "block",
|
|
634
740
|
// Fix conflict with normalize.css and sanitize.css
|
|
635
741
|
padding: 0,
|
|
@@ -638,9 +744,9 @@ const Qn = ["children", "classes", "className", "label", "notched"], Zn = j("fie
|
|
|
638
744
|
fontSize: "0.75em",
|
|
639
745
|
visibility: "hidden",
|
|
640
746
|
maxWidth: 0.01,
|
|
641
|
-
transition:
|
|
747
|
+
transition: o.transitions.create("max-width", {
|
|
642
748
|
duration: 50,
|
|
643
|
-
easing:
|
|
749
|
+
easing: o.transitions.easing.easeOut
|
|
644
750
|
}),
|
|
645
751
|
whiteSpace: "nowrap",
|
|
646
752
|
"& > span": {
|
|
@@ -652,33 +758,33 @@ const Qn = ["children", "classes", "className", "label", "notched"], Zn = j("fie
|
|
|
652
758
|
}
|
|
653
759
|
}, n.notched && {
|
|
654
760
|
maxWidth: "100%",
|
|
655
|
-
transition:
|
|
761
|
+
transition: o.transitions.create("max-width", {
|
|
656
762
|
duration: 100,
|
|
657
|
-
easing:
|
|
763
|
+
easing: o.transitions.easing.easeOut,
|
|
658
764
|
delay: 50
|
|
659
765
|
})
|
|
660
766
|
})));
|
|
661
|
-
function
|
|
767
|
+
function yn(n) {
|
|
662
768
|
const {
|
|
663
|
-
className:
|
|
664
|
-
label:
|
|
665
|
-
notched:
|
|
666
|
-
} = n,
|
|
667
|
-
notched:
|
|
668
|
-
withLabel:
|
|
769
|
+
className: o,
|
|
770
|
+
label: t,
|
|
771
|
+
notched: r
|
|
772
|
+
} = n, u = H(n, co), a = t != null && t !== "", l = i({}, n, {
|
|
773
|
+
notched: r,
|
|
774
|
+
withLabel: a
|
|
669
775
|
});
|
|
670
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ x(uo, i({
|
|
671
777
|
"aria-hidden": !0,
|
|
672
|
-
className:
|
|
673
|
-
ownerState:
|
|
674
|
-
},
|
|
675
|
-
children: /* @__PURE__ */
|
|
676
|
-
ownerState:
|
|
677
|
-
children:
|
|
678
|
-
children:
|
|
778
|
+
className: o,
|
|
779
|
+
ownerState: l
|
|
780
|
+
}, u, {
|
|
781
|
+
children: /* @__PURE__ */ x(po, {
|
|
782
|
+
ownerState: l,
|
|
783
|
+
children: a ? /* @__PURE__ */ x("span", {
|
|
784
|
+
children: t
|
|
679
785
|
}) : (
|
|
680
786
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
681
|
-
|
|
787
|
+
Xe || (Xe = /* @__PURE__ */ x("span", {
|
|
682
788
|
className: "notranslate",
|
|
683
789
|
children: ""
|
|
684
790
|
}))
|
|
@@ -686,7 +792,7 @@ function fn(n) {
|
|
|
686
792
|
})
|
|
687
793
|
}));
|
|
688
794
|
}
|
|
689
|
-
process.env.NODE_ENV !== "production" && (
|
|
795
|
+
process.env.NODE_ENV !== "production" && (yn.propTypes = {
|
|
690
796
|
/**
|
|
691
797
|
* The content of the component.
|
|
692
798
|
*/
|
|
@@ -713,78 +819,78 @@ process.env.NODE_ENV !== "production" && (fn.propTypes = {
|
|
|
713
819
|
*/
|
|
714
820
|
style: e.object
|
|
715
821
|
});
|
|
716
|
-
function
|
|
717
|
-
return
|
|
822
|
+
function fo(n) {
|
|
823
|
+
return ne("MuiOutlinedInput", n);
|
|
718
824
|
}
|
|
719
|
-
const
|
|
825
|
+
const ie = i({}, ln, ee("MuiOutlinedInput", ["root", "notchedOutline", "input"])), mo = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"], bo = (n) => {
|
|
720
826
|
const {
|
|
721
|
-
classes:
|
|
722
|
-
} = n,
|
|
827
|
+
classes: o
|
|
828
|
+
} = n, r = oe({
|
|
723
829
|
root: ["root"],
|
|
724
830
|
notchedOutline: ["notchedOutline"],
|
|
725
831
|
input: ["input"]
|
|
726
|
-
},
|
|
727
|
-
return
|
|
728
|
-
},
|
|
729
|
-
shouldForwardProp: (n) =>
|
|
832
|
+
}, fo, o);
|
|
833
|
+
return i({}, o, r);
|
|
834
|
+
}, ho = j(dn, {
|
|
835
|
+
shouldForwardProp: (n) => ge(n) || n === "classes",
|
|
730
836
|
name: "MuiOutlinedInput",
|
|
731
837
|
slot: "Root",
|
|
732
|
-
overridesResolver:
|
|
838
|
+
overridesResolver: cn
|
|
733
839
|
})(({
|
|
734
840
|
theme: n,
|
|
735
|
-
ownerState:
|
|
841
|
+
ownerState: o
|
|
736
842
|
}) => {
|
|
737
|
-
const
|
|
738
|
-
return
|
|
843
|
+
const t = n.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
844
|
+
return i({
|
|
739
845
|
position: "relative",
|
|
740
846
|
borderRadius: (n.vars || n).shape.borderRadius,
|
|
741
|
-
[`&:hover .${
|
|
847
|
+
[`&:hover .${ie.notchedOutline}`]: {
|
|
742
848
|
borderColor: (n.vars || n).palette.text.primary
|
|
743
849
|
},
|
|
744
850
|
// Reset on touch devices, it doesn't add specificity
|
|
745
851
|
"@media (hover: none)": {
|
|
746
|
-
[`&:hover .${
|
|
747
|
-
borderColor: n.vars ? `rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)` :
|
|
852
|
+
[`&:hover .${ie.notchedOutline}`]: {
|
|
853
|
+
borderColor: n.vars ? `rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)` : t
|
|
748
854
|
}
|
|
749
855
|
},
|
|
750
|
-
[`&.${
|
|
751
|
-
borderColor: (n.vars || n).palette[
|
|
856
|
+
[`&.${ie.focused} .${ie.notchedOutline}`]: {
|
|
857
|
+
borderColor: (n.vars || n).palette[o.color].main,
|
|
752
858
|
borderWidth: 2
|
|
753
859
|
},
|
|
754
|
-
[`&.${
|
|
860
|
+
[`&.${ie.error} .${ie.notchedOutline}`]: {
|
|
755
861
|
borderColor: (n.vars || n).palette.error.main
|
|
756
862
|
},
|
|
757
|
-
[`&.${
|
|
863
|
+
[`&.${ie.disabled} .${ie.notchedOutline}`]: {
|
|
758
864
|
borderColor: (n.vars || n).palette.action.disabled
|
|
759
865
|
}
|
|
760
|
-
},
|
|
866
|
+
}, o.startAdornment && {
|
|
761
867
|
paddingLeft: 14
|
|
762
|
-
},
|
|
868
|
+
}, o.endAdornment && {
|
|
763
869
|
paddingRight: 14
|
|
764
|
-
},
|
|
870
|
+
}, o.multiline && i({
|
|
765
871
|
padding: "16.5px 14px"
|
|
766
|
-
},
|
|
872
|
+
}, o.size === "small" && {
|
|
767
873
|
padding: "8.5px 14px"
|
|
768
874
|
}));
|
|
769
|
-
}),
|
|
875
|
+
}), go = j(yn, {
|
|
770
876
|
name: "MuiOutlinedInput",
|
|
771
877
|
slot: "NotchedOutline",
|
|
772
|
-
overridesResolver: (n,
|
|
878
|
+
overridesResolver: (n, o) => o.notchedOutline
|
|
773
879
|
})(({
|
|
774
880
|
theme: n
|
|
775
881
|
}) => {
|
|
776
|
-
const
|
|
882
|
+
const o = n.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
777
883
|
return {
|
|
778
|
-
borderColor: n.vars ? `rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)` :
|
|
884
|
+
borderColor: n.vars ? `rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)` : o
|
|
779
885
|
};
|
|
780
|
-
}),
|
|
886
|
+
}), vo = j(un, {
|
|
781
887
|
name: "MuiOutlinedInput",
|
|
782
888
|
slot: "Input",
|
|
783
|
-
overridesResolver:
|
|
889
|
+
overridesResolver: pn
|
|
784
890
|
})(({
|
|
785
891
|
theme: n,
|
|
786
|
-
ownerState:
|
|
787
|
-
}) =>
|
|
892
|
+
ownerState: o
|
|
893
|
+
}) => i({
|
|
788
894
|
padding: "16.5px 14px"
|
|
789
895
|
}, !n.vars && {
|
|
790
896
|
"&:-webkit-autofill": {
|
|
@@ -804,69 +910,69 @@ const ee = s({}, rn, ie("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
|
804
910
|
caretColor: "#fff"
|
|
805
911
|
}
|
|
806
912
|
}
|
|
807
|
-
},
|
|
913
|
+
}, o.size === "small" && {
|
|
808
914
|
padding: "8.5px 14px"
|
|
809
|
-
},
|
|
915
|
+
}, o.multiline && {
|
|
810
916
|
padding: 0
|
|
811
|
-
},
|
|
917
|
+
}, o.startAdornment && {
|
|
812
918
|
paddingLeft: 0
|
|
813
|
-
},
|
|
919
|
+
}, o.endAdornment && {
|
|
814
920
|
paddingRight: 0
|
|
815
|
-
})),
|
|
816
|
-
var
|
|
817
|
-
const
|
|
818
|
-
props:
|
|
921
|
+
})), Ie = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
922
|
+
var r, u, a, l, p;
|
|
923
|
+
const m = se({
|
|
924
|
+
props: o,
|
|
819
925
|
name: "MuiOutlinedInput"
|
|
820
926
|
}), {
|
|
821
|
-
components:
|
|
822
|
-
fullWidth:
|
|
823
|
-
inputComponent:
|
|
927
|
+
components: h = {},
|
|
928
|
+
fullWidth: I = !1,
|
|
929
|
+
inputComponent: S = "input",
|
|
824
930
|
label: M,
|
|
825
|
-
multiline:
|
|
826
|
-
notched:
|
|
827
|
-
slots:
|
|
828
|
-
type:
|
|
829
|
-
} =
|
|
830
|
-
props:
|
|
831
|
-
muiFormControl:
|
|
931
|
+
multiline: b = !1,
|
|
932
|
+
notched: C,
|
|
933
|
+
slots: O = {},
|
|
934
|
+
type: F = "text"
|
|
935
|
+
} = m, T = H(m, mo), E = bo(m), f = je(), d = Le({
|
|
936
|
+
props: m,
|
|
937
|
+
muiFormControl: f,
|
|
832
938
|
states: ["required"]
|
|
833
|
-
}),
|
|
834
|
-
color:
|
|
835
|
-
disabled:
|
|
836
|
-
error:
|
|
837
|
-
focused:
|
|
838
|
-
formControl:
|
|
839
|
-
fullWidth:
|
|
840
|
-
hiddenLabel:
|
|
841
|
-
multiline:
|
|
842
|
-
size:
|
|
843
|
-
type:
|
|
844
|
-
}),
|
|
845
|
-
return /* @__PURE__ */
|
|
939
|
+
}), P = i({}, m, {
|
|
940
|
+
color: d.color || "primary",
|
|
941
|
+
disabled: d.disabled,
|
|
942
|
+
error: d.error,
|
|
943
|
+
focused: d.focused,
|
|
944
|
+
formControl: f,
|
|
945
|
+
fullWidth: I,
|
|
946
|
+
hiddenLabel: d.hiddenLabel,
|
|
947
|
+
multiline: b,
|
|
948
|
+
size: d.size,
|
|
949
|
+
type: F
|
|
950
|
+
}), $ = (r = (u = O.root) != null ? u : h.Root) != null ? r : ho, y = (a = (l = O.input) != null ? l : h.Input) != null ? a : vo;
|
|
951
|
+
return /* @__PURE__ */ x(fn, i({
|
|
846
952
|
slots: {
|
|
847
|
-
root:
|
|
848
|
-
input:
|
|
953
|
+
root: $,
|
|
954
|
+
input: y
|
|
849
955
|
},
|
|
850
|
-
renderSuffix: (
|
|
851
|
-
ownerState:
|
|
852
|
-
className:
|
|
853
|
-
label: M != null && M !== "" &&
|
|
956
|
+
renderSuffix: (k) => /* @__PURE__ */ x(go, {
|
|
957
|
+
ownerState: P,
|
|
958
|
+
className: E.notchedOutline,
|
|
959
|
+
label: M != null && M !== "" && d.required ? p || (p = /* @__PURE__ */ ve(s.Fragment, {
|
|
854
960
|
children: [M, " ", "*"]
|
|
855
961
|
})) : M,
|
|
856
|
-
notched: typeof
|
|
962
|
+
notched: typeof C < "u" ? C : !!(k.startAdornment || k.filled || k.focused)
|
|
857
963
|
}),
|
|
858
|
-
fullWidth:
|
|
859
|
-
inputComponent:
|
|
860
|
-
multiline:
|
|
861
|
-
ref:
|
|
862
|
-
type:
|
|
863
|
-
},
|
|
864
|
-
classes:
|
|
964
|
+
fullWidth: I,
|
|
965
|
+
inputComponent: S,
|
|
966
|
+
multiline: b,
|
|
967
|
+
ref: t,
|
|
968
|
+
type: F
|
|
969
|
+
}, T, {
|
|
970
|
+
classes: i({}, E, {
|
|
865
971
|
notchedOutline: null
|
|
866
972
|
})
|
|
867
973
|
}));
|
|
868
974
|
});
|
|
869
|
-
process.env.NODE_ENV !== "production" && (
|
|
975
|
+
process.env.NODE_ENV !== "production" && (Ie.propTypes = {
|
|
870
976
|
// ----------------------------- Warning --------------------------------
|
|
871
977
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
872
978
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -945,7 +1051,7 @@ process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
|
945
1051
|
/**
|
|
946
1052
|
* Pass a ref to the `input` element.
|
|
947
1053
|
*/
|
|
948
|
-
inputRef:
|
|
1054
|
+
inputRef: pe,
|
|
949
1055
|
/**
|
|
950
1056
|
* The label of the `input`. It is only used for layout. The actual labelling
|
|
951
1057
|
* is handled by `InputLabel`.
|
|
@@ -1032,108 +1138,254 @@ process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
|
1032
1138
|
*/
|
|
1033
1139
|
value: e.any
|
|
1034
1140
|
});
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
return n === t ? n.firstChild : t && t.nextElementSibling ? t.nextElementSibling : o ? null : n.firstChild;
|
|
1141
|
+
Ie.muiName = "Input";
|
|
1142
|
+
function yo(n) {
|
|
1143
|
+
return ne("MuiFormHelperText", n);
|
|
1039
1144
|
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1145
|
+
const Ye = ee("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
|
|
1146
|
+
var Je;
|
|
1147
|
+
const Oo = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"], To = (n) => {
|
|
1148
|
+
const {
|
|
1149
|
+
classes: o,
|
|
1150
|
+
contained: t,
|
|
1151
|
+
size: r,
|
|
1152
|
+
disabled: u,
|
|
1153
|
+
error: a,
|
|
1154
|
+
filled: l,
|
|
1155
|
+
focused: p,
|
|
1156
|
+
required: m
|
|
1157
|
+
} = n, h = {
|
|
1158
|
+
root: ["root", u && "disabled", a && "error", r && `size${fe(r)}`, t && "contained", p && "focused", l && "filled", m && "required"]
|
|
1159
|
+
};
|
|
1160
|
+
return oe(h, yo, o);
|
|
1161
|
+
}, Ro = j("p", {
|
|
1162
|
+
name: "MuiFormHelperText",
|
|
1163
|
+
slot: "Root",
|
|
1164
|
+
overridesResolver: (n, o) => {
|
|
1165
|
+
const {
|
|
1166
|
+
ownerState: t
|
|
1167
|
+
} = n;
|
|
1168
|
+
return [o.root, t.size && o[`size${fe(t.size)}`], t.contained && o.contained, t.filled && o.filled];
|
|
1169
|
+
}
|
|
1170
|
+
})(({
|
|
1171
|
+
theme: n,
|
|
1172
|
+
ownerState: o
|
|
1173
|
+
}) => i({
|
|
1174
|
+
color: (n.vars || n).palette.text.secondary
|
|
1175
|
+
}, n.typography.caption, {
|
|
1176
|
+
textAlign: "left",
|
|
1177
|
+
marginTop: 3,
|
|
1178
|
+
marginRight: 0,
|
|
1179
|
+
marginBottom: 0,
|
|
1180
|
+
marginLeft: 0,
|
|
1181
|
+
[`&.${Ye.disabled}`]: {
|
|
1182
|
+
color: (n.vars || n).palette.text.disabled
|
|
1183
|
+
},
|
|
1184
|
+
[`&.${Ye.error}`]: {
|
|
1185
|
+
color: (n.vars || n).palette.error.main
|
|
1186
|
+
}
|
|
1187
|
+
}, o.size === "small" && {
|
|
1188
|
+
marginTop: 4
|
|
1189
|
+
}, o.contained && {
|
|
1190
|
+
marginLeft: 14,
|
|
1191
|
+
marginRight: 14
|
|
1192
|
+
})), On = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
1193
|
+
const r = se({
|
|
1194
|
+
props: o,
|
|
1195
|
+
name: "MuiFormHelperText"
|
|
1196
|
+
}), {
|
|
1197
|
+
children: u,
|
|
1198
|
+
className: a,
|
|
1199
|
+
component: l = "p"
|
|
1200
|
+
} = r, p = H(r, Oo), m = je(), h = Le({
|
|
1201
|
+
props: r,
|
|
1202
|
+
muiFormControl: m,
|
|
1203
|
+
states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
|
|
1204
|
+
}), I = i({}, r, {
|
|
1205
|
+
component: l,
|
|
1206
|
+
contained: h.variant === "filled" || h.variant === "outlined",
|
|
1207
|
+
variant: h.variant,
|
|
1208
|
+
size: h.size,
|
|
1209
|
+
disabled: h.disabled,
|
|
1210
|
+
error: h.error,
|
|
1211
|
+
filled: h.filled,
|
|
1212
|
+
focused: h.focused,
|
|
1213
|
+
required: h.required
|
|
1214
|
+
}), S = To(I);
|
|
1215
|
+
return /* @__PURE__ */ x(Ro, i({
|
|
1216
|
+
as: l,
|
|
1217
|
+
ownerState: I,
|
|
1218
|
+
className: Z(S.root, a),
|
|
1219
|
+
ref: t
|
|
1220
|
+
}, p, {
|
|
1221
|
+
children: u === " " ? (
|
|
1222
|
+
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
1223
|
+
Je || (Je = /* @__PURE__ */ x("span", {
|
|
1224
|
+
className: "notranslate",
|
|
1225
|
+
children: ""
|
|
1226
|
+
}))
|
|
1227
|
+
) : u
|
|
1228
|
+
}));
|
|
1229
|
+
});
|
|
1230
|
+
process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
1231
|
+
// ----------------------------- Warning --------------------------------
|
|
1232
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1233
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1234
|
+
// ----------------------------------------------------------------------
|
|
1235
|
+
/**
|
|
1236
|
+
* The content of the component.
|
|
1237
|
+
*
|
|
1238
|
+
* If `' '` is provided, the component reserves one line height for displaying a future message.
|
|
1239
|
+
*/
|
|
1240
|
+
children: e.node,
|
|
1241
|
+
/**
|
|
1242
|
+
* Override or extend the styles applied to the component.
|
|
1243
|
+
*/
|
|
1244
|
+
classes: e.object,
|
|
1245
|
+
/**
|
|
1246
|
+
* @ignore
|
|
1247
|
+
*/
|
|
1248
|
+
className: e.string,
|
|
1249
|
+
/**
|
|
1250
|
+
* The component used for the root node.
|
|
1251
|
+
* Either a string to use a HTML element or a component.
|
|
1252
|
+
*/
|
|
1253
|
+
component: e.elementType,
|
|
1254
|
+
/**
|
|
1255
|
+
* If `true`, the helper text should be displayed in a disabled state.
|
|
1256
|
+
*/
|
|
1257
|
+
disabled: e.bool,
|
|
1258
|
+
/**
|
|
1259
|
+
* If `true`, helper text should be displayed in an error state.
|
|
1260
|
+
*/
|
|
1261
|
+
error: e.bool,
|
|
1262
|
+
/**
|
|
1263
|
+
* If `true`, the helper text should use filled classes key.
|
|
1264
|
+
*/
|
|
1265
|
+
filled: e.bool,
|
|
1266
|
+
/**
|
|
1267
|
+
* If `true`, the helper text should use focused classes key.
|
|
1268
|
+
*/
|
|
1269
|
+
focused: e.bool,
|
|
1270
|
+
/**
|
|
1271
|
+
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1272
|
+
* FormControl.
|
|
1273
|
+
*/
|
|
1274
|
+
margin: e.oneOf(["dense"]),
|
|
1275
|
+
/**
|
|
1276
|
+
* If `true`, the helper text should use required classes key.
|
|
1277
|
+
*/
|
|
1278
|
+
required: e.bool,
|
|
1279
|
+
/**
|
|
1280
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1281
|
+
*/
|
|
1282
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1283
|
+
/**
|
|
1284
|
+
* The variant to use.
|
|
1285
|
+
*/
|
|
1286
|
+
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
1287
|
+
});
|
|
1288
|
+
const xo = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
1289
|
+
function Fe(n, o, t) {
|
|
1290
|
+
return n === o ? n.firstChild : o && o.nextElementSibling ? o.nextElementSibling : t ? null : n.firstChild;
|
|
1291
|
+
}
|
|
1292
|
+
function Qe(n, o, t) {
|
|
1293
|
+
return n === o ? t ? n.firstChild : n.lastChild : o && o.previousElementSibling ? o.previousElementSibling : t ? null : n.lastChild;
|
|
1042
1294
|
}
|
|
1043
|
-
function
|
|
1044
|
-
if (
|
|
1295
|
+
function Tn(n, o) {
|
|
1296
|
+
if (o === void 0)
|
|
1045
1297
|
return !0;
|
|
1046
|
-
let
|
|
1047
|
-
return
|
|
1298
|
+
let t = n.innerText;
|
|
1299
|
+
return t === void 0 && (t = n.textContent), t = t.trim().toLowerCase(), t.length === 0 ? !1 : o.repeating ? t[0] === o.keys[0] : t.indexOf(o.keys.join("")) === 0;
|
|
1048
1300
|
}
|
|
1049
|
-
function
|
|
1050
|
-
let
|
|
1301
|
+
function be(n, o, t, r, u, a) {
|
|
1302
|
+
let l = !1, p = u(n, o, o ? t : !1);
|
|
1051
1303
|
for (; p; ) {
|
|
1052
1304
|
if (p === n.firstChild) {
|
|
1053
|
-
if (
|
|
1305
|
+
if (l)
|
|
1054
1306
|
return !1;
|
|
1055
|
-
|
|
1307
|
+
l = !0;
|
|
1056
1308
|
}
|
|
1057
|
-
const
|
|
1058
|
-
if (!p.hasAttribute("tabindex") || !
|
|
1059
|
-
p =
|
|
1309
|
+
const m = r ? !1 : p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
1310
|
+
if (!p.hasAttribute("tabindex") || !Tn(p, a) || m)
|
|
1311
|
+
p = u(n, p, t);
|
|
1060
1312
|
else
|
|
1061
1313
|
return p.focus(), !0;
|
|
1062
1314
|
}
|
|
1063
1315
|
return !1;
|
|
1064
1316
|
}
|
|
1065
|
-
const
|
|
1317
|
+
const Rn = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
1066
1318
|
const {
|
|
1067
1319
|
// private
|
|
1068
1320
|
// eslint-disable-next-line react/prop-types
|
|
1069
|
-
actions:
|
|
1070
|
-
autoFocus:
|
|
1071
|
-
autoFocusItem:
|
|
1072
|
-
children:
|
|
1321
|
+
actions: r,
|
|
1322
|
+
autoFocus: u = !1,
|
|
1323
|
+
autoFocusItem: a = !1,
|
|
1324
|
+
children: l,
|
|
1073
1325
|
className: p,
|
|
1074
|
-
disabledItemsFocusable:
|
|
1075
|
-
disableListWrap:
|
|
1076
|
-
onKeyDown:
|
|
1077
|
-
variant:
|
|
1078
|
-
} =
|
|
1326
|
+
disabledItemsFocusable: m = !1,
|
|
1327
|
+
disableListWrap: h = !1,
|
|
1328
|
+
onKeyDown: I,
|
|
1329
|
+
variant: S = "selectedMenu"
|
|
1330
|
+
} = o, M = H(o, xo), b = s.useRef(null), C = s.useRef({
|
|
1079
1331
|
keys: [],
|
|
1080
1332
|
repeating: !0,
|
|
1081
1333
|
previousKeyMatched: !0,
|
|
1082
1334
|
lastTime: null
|
|
1083
1335
|
});
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
}, [
|
|
1087
|
-
adjustStyleForScrollbar: (
|
|
1088
|
-
const
|
|
1089
|
-
if (
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1336
|
+
Kn(() => {
|
|
1337
|
+
u && b.current.focus();
|
|
1338
|
+
}, [u]), s.useImperativeHandle(r, () => ({
|
|
1339
|
+
adjustStyleForScrollbar: (f, d) => {
|
|
1340
|
+
const P = !b.current.style.width;
|
|
1341
|
+
if (f.clientHeight < b.current.clientHeight && P) {
|
|
1342
|
+
const $ = `${Hn(he(f))}px`;
|
|
1343
|
+
b.current.style[d.direction === "rtl" ? "paddingLeft" : "paddingRight"] = $, b.current.style.width = `calc(100% + ${$})`;
|
|
1092
1344
|
}
|
|
1093
|
-
return
|
|
1345
|
+
return b.current;
|
|
1094
1346
|
}
|
|
1095
1347
|
}), []);
|
|
1096
|
-
const
|
|
1097
|
-
const
|
|
1098
|
-
if (
|
|
1099
|
-
|
|
1100
|
-
else if (
|
|
1101
|
-
|
|
1102
|
-
else if (
|
|
1103
|
-
|
|
1104
|
-
else if (
|
|
1105
|
-
|
|
1106
|
-
else if (
|
|
1107
|
-
const
|
|
1108
|
-
|
|
1109
|
-
const D =
|
|
1110
|
-
|
|
1348
|
+
const O = (f) => {
|
|
1349
|
+
const d = b.current, P = f.key, $ = he(d).activeElement;
|
|
1350
|
+
if (P === "ArrowDown")
|
|
1351
|
+
f.preventDefault(), be(d, $, h, m, Fe);
|
|
1352
|
+
else if (P === "ArrowUp")
|
|
1353
|
+
f.preventDefault(), be(d, $, h, m, Qe);
|
|
1354
|
+
else if (P === "Home")
|
|
1355
|
+
f.preventDefault(), be(d, null, h, m, Fe);
|
|
1356
|
+
else if (P === "End")
|
|
1357
|
+
f.preventDefault(), be(d, null, h, m, Qe);
|
|
1358
|
+
else if (P.length === 1) {
|
|
1359
|
+
const y = C.current, k = P.toLowerCase(), _ = performance.now();
|
|
1360
|
+
y.keys.length > 0 && (_ - y.lastTime > 500 ? (y.keys = [], y.repeating = !0, y.previousKeyMatched = !0) : y.repeating && k !== y.keys[0] && (y.repeating = !1)), y.lastTime = _, y.keys.push(k);
|
|
1361
|
+
const D = $ && !y.repeating && Tn($, y);
|
|
1362
|
+
y.previousKeyMatched && (D || be(d, $, !1, m, Fe, y)) ? f.preventDefault() : y.previousKeyMatched = !1;
|
|
1111
1363
|
}
|
|
1112
|
-
|
|
1113
|
-
},
|
|
1114
|
-
let
|
|
1115
|
-
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
`)),
|
|
1364
|
+
I && I(f);
|
|
1365
|
+
}, F = ye(b, t);
|
|
1366
|
+
let T = -1;
|
|
1367
|
+
s.Children.forEach(l, (f, d) => {
|
|
1368
|
+
/* @__PURE__ */ s.isValidElement(f) && (process.env.NODE_ENV !== "production" && ke.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1369
|
+
`)), f.props.disabled || (S === "selectedMenu" && f.props.selected || T === -1) && (T = d), T === d && (f.props.disabled || f.props.muiSkipListHighlight || f.type.muiSkipListHighlight) && (T += 1, T >= l.length && (T = -1)));
|
|
1118
1370
|
});
|
|
1119
|
-
const
|
|
1120
|
-
if (
|
|
1121
|
-
const
|
|
1122
|
-
return
|
|
1371
|
+
const E = s.Children.map(l, (f, d) => {
|
|
1372
|
+
if (d === T) {
|
|
1373
|
+
const P = {};
|
|
1374
|
+
return a && (P.autoFocus = !0), f.props.tabIndex === void 0 && S === "selectedMenu" && (P.tabIndex = 0), /* @__PURE__ */ s.cloneElement(f, P);
|
|
1123
1375
|
}
|
|
1124
|
-
return
|
|
1376
|
+
return f;
|
|
1125
1377
|
});
|
|
1126
|
-
return /* @__PURE__ */
|
|
1378
|
+
return /* @__PURE__ */ x(vn, i({
|
|
1127
1379
|
role: "menu",
|
|
1128
|
-
ref:
|
|
1380
|
+
ref: F,
|
|
1129
1381
|
className: p,
|
|
1130
|
-
onKeyDown:
|
|
1131
|
-
tabIndex:
|
|
1382
|
+
onKeyDown: O,
|
|
1383
|
+
tabIndex: u ? 0 : -1
|
|
1132
1384
|
}, M, {
|
|
1133
|
-
children:
|
|
1385
|
+
children: E
|
|
1134
1386
|
}));
|
|
1135
1387
|
});
|
|
1136
|
-
process.env.NODE_ENV !== "production" && (
|
|
1388
|
+
process.env.NODE_ENV !== "production" && (Rn.propTypes = {
|
|
1137
1389
|
// ----------------------------- Warning --------------------------------
|
|
1138
1390
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1139
1391
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -1178,41 +1430,41 @@ process.env.NODE_ENV !== "production" && (bn.propTypes = {
|
|
|
1178
1430
|
*/
|
|
1179
1431
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
1180
1432
|
});
|
|
1181
|
-
function
|
|
1182
|
-
return
|
|
1433
|
+
function Co(n) {
|
|
1434
|
+
return ne("MuiPopover", n);
|
|
1183
1435
|
}
|
|
1184
|
-
|
|
1185
|
-
const
|
|
1186
|
-
function
|
|
1187
|
-
let
|
|
1188
|
-
return typeof
|
|
1436
|
+
ee("MuiPopover", ["root", "paper"]);
|
|
1437
|
+
const Eo = ["onEntering"], Po = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
1438
|
+
function Ze(n, o) {
|
|
1439
|
+
let t = 0;
|
|
1440
|
+
return typeof o == "number" ? t = o : o === "center" ? t = n.height / 2 : o === "bottom" && (t = n.height), t;
|
|
1189
1441
|
}
|
|
1190
|
-
function
|
|
1191
|
-
let
|
|
1192
|
-
return typeof
|
|
1442
|
+
function en(n, o) {
|
|
1443
|
+
let t = 0;
|
|
1444
|
+
return typeof o == "number" ? t = o : o === "center" ? t = n.width / 2 : o === "right" && (t = n.width), t;
|
|
1193
1445
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return [n.horizontal, n.vertical].map((
|
|
1446
|
+
function nn(n) {
|
|
1447
|
+
return [n.horizontal, n.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
|
|
1196
1448
|
}
|
|
1197
|
-
function
|
|
1449
|
+
function Ee(n) {
|
|
1198
1450
|
return typeof n == "function" ? n() : n;
|
|
1199
1451
|
}
|
|
1200
|
-
const
|
|
1452
|
+
const Io = (n) => {
|
|
1201
1453
|
const {
|
|
1202
|
-
classes:
|
|
1454
|
+
classes: o
|
|
1203
1455
|
} = n;
|
|
1204
|
-
return
|
|
1456
|
+
return oe({
|
|
1205
1457
|
root: ["root"],
|
|
1206
1458
|
paper: ["paper"]
|
|
1207
|
-
},
|
|
1208
|
-
},
|
|
1459
|
+
}, Co, o);
|
|
1460
|
+
}, wo = j(qn, {
|
|
1209
1461
|
name: "MuiPopover",
|
|
1210
1462
|
slot: "Root",
|
|
1211
|
-
overridesResolver: (n,
|
|
1212
|
-
})({}),
|
|
1463
|
+
overridesResolver: (n, o) => o.root
|
|
1464
|
+
})({}), No = j(hn, {
|
|
1213
1465
|
name: "MuiPopover",
|
|
1214
1466
|
slot: "Paper",
|
|
1215
|
-
overridesResolver: (n,
|
|
1467
|
+
overridesResolver: (n, o) => o.paper
|
|
1216
1468
|
})({
|
|
1217
1469
|
position: "absolute",
|
|
1218
1470
|
overflowY: "auto",
|
|
@@ -1225,159 +1477,159 @@ const dt = (n) => {
|
|
|
1225
1477
|
maxHeight: "calc(100% - 32px)",
|
|
1226
1478
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1227
1479
|
outline: 0
|
|
1228
|
-
}),
|
|
1229
|
-
const
|
|
1230
|
-
props:
|
|
1480
|
+
}), xn = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
1481
|
+
const r = se({
|
|
1482
|
+
props: o,
|
|
1231
1483
|
name: "MuiPopover"
|
|
1232
1484
|
}), {
|
|
1233
|
-
action:
|
|
1234
|
-
anchorEl:
|
|
1235
|
-
anchorOrigin:
|
|
1485
|
+
action: u,
|
|
1486
|
+
anchorEl: a,
|
|
1487
|
+
anchorOrigin: l = {
|
|
1236
1488
|
vertical: "top",
|
|
1237
1489
|
horizontal: "left"
|
|
1238
1490
|
},
|
|
1239
1491
|
anchorPosition: p,
|
|
1240
|
-
anchorReference:
|
|
1241
|
-
children:
|
|
1242
|
-
className:
|
|
1243
|
-
container:
|
|
1492
|
+
anchorReference: m = "anchorEl",
|
|
1493
|
+
children: h,
|
|
1494
|
+
className: I,
|
|
1495
|
+
container: S,
|
|
1244
1496
|
elevation: M = 8,
|
|
1245
|
-
marginThreshold:
|
|
1246
|
-
open:
|
|
1247
|
-
PaperProps:
|
|
1248
|
-
transformOrigin:
|
|
1497
|
+
marginThreshold: b = 16,
|
|
1498
|
+
open: C,
|
|
1499
|
+
PaperProps: O = {},
|
|
1500
|
+
transformOrigin: F = {
|
|
1249
1501
|
vertical: "top",
|
|
1250
1502
|
horizontal: "left"
|
|
1251
1503
|
},
|
|
1252
|
-
TransitionComponent:
|
|
1253
|
-
transitionDuration:
|
|
1504
|
+
TransitionComponent: T = _e,
|
|
1505
|
+
transitionDuration: E = "auto",
|
|
1254
1506
|
TransitionProps: {
|
|
1255
|
-
onEntering:
|
|
1507
|
+
onEntering: f
|
|
1256
1508
|
} = {}
|
|
1257
|
-
} =
|
|
1258
|
-
anchorOrigin:
|
|
1259
|
-
anchorReference:
|
|
1509
|
+
} = r, d = H(r.TransitionProps, Eo), P = H(r, Po), $ = s.useRef(), y = ye($, O.ref), k = i({}, r, {
|
|
1510
|
+
anchorOrigin: l,
|
|
1511
|
+
anchorReference: m,
|
|
1260
1512
|
elevation: M,
|
|
1261
|
-
marginThreshold:
|
|
1262
|
-
PaperProps:
|
|
1263
|
-
transformOrigin:
|
|
1264
|
-
TransitionComponent:
|
|
1265
|
-
transitionDuration:
|
|
1266
|
-
TransitionProps:
|
|
1267
|
-
}),
|
|
1268
|
-
if (
|
|
1513
|
+
marginThreshold: b,
|
|
1514
|
+
PaperProps: O,
|
|
1515
|
+
transformOrigin: F,
|
|
1516
|
+
TransitionComponent: T,
|
|
1517
|
+
transitionDuration: E,
|
|
1518
|
+
TransitionProps: d
|
|
1519
|
+
}), _ = Io(k), D = s.useCallback(() => {
|
|
1520
|
+
if (m === "anchorPosition")
|
|
1269
1521
|
return process.env.NODE_ENV !== "production" && (p || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), p;
|
|
1270
|
-
const
|
|
1522
|
+
const R = Ee(a), w = R && R.nodeType === 1 ? R : he($.current).body, L = w.getBoundingClientRect();
|
|
1271
1523
|
if (process.env.NODE_ENV !== "production") {
|
|
1272
|
-
const
|
|
1273
|
-
process.env.NODE_ENV !== "test" &&
|
|
1524
|
+
const U = w.getBoundingClientRect();
|
|
1525
|
+
process.env.NODE_ENV !== "test" && U.top === 0 && U.left === 0 && U.right === 0 && U.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(`
|
|
1274
1526
|
`));
|
|
1275
1527
|
}
|
|
1276
1528
|
return {
|
|
1277
|
-
top:
|
|
1278
|
-
left:
|
|
1529
|
+
top: L.top + Ze(L, l.vertical),
|
|
1530
|
+
left: L.left + en(L, l.horizontal)
|
|
1279
1531
|
};
|
|
1280
|
-
}, [
|
|
1281
|
-
vertical:
|
|
1282
|
-
horizontal:
|
|
1283
|
-
}), [
|
|
1284
|
-
const
|
|
1285
|
-
width:
|
|
1286
|
-
height:
|
|
1287
|
-
},
|
|
1288
|
-
if (
|
|
1532
|
+
}, [a, l.horizontal, l.vertical, p, m]), V = s.useCallback((R) => ({
|
|
1533
|
+
vertical: Ze(R, F.vertical),
|
|
1534
|
+
horizontal: en(R, F.horizontal)
|
|
1535
|
+
}), [F.horizontal, F.vertical]), J = s.useCallback((R) => {
|
|
1536
|
+
const w = {
|
|
1537
|
+
width: R.offsetWidth,
|
|
1538
|
+
height: R.offsetHeight
|
|
1539
|
+
}, L = V(w);
|
|
1540
|
+
if (m === "none")
|
|
1289
1541
|
return {
|
|
1290
1542
|
top: null,
|
|
1291
1543
|
left: null,
|
|
1292
|
-
transformOrigin:
|
|
1544
|
+
transformOrigin: nn(L)
|
|
1293
1545
|
};
|
|
1294
|
-
const
|
|
1295
|
-
let
|
|
1296
|
-
const
|
|
1297
|
-
if (
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1300
|
-
} else if (
|
|
1301
|
-
const
|
|
1302
|
-
|
|
1546
|
+
const U = D();
|
|
1547
|
+
let A = U.top - L.vertical, Y = U.left - L.horizontal;
|
|
1548
|
+
const te = A + w.height, ce = Y + w.width, ae = qe(Ee(a)), Q = ae.innerHeight - b, le = ae.innerWidth - b;
|
|
1549
|
+
if (A < b) {
|
|
1550
|
+
const G = A - b;
|
|
1551
|
+
A -= G, L.vertical += G;
|
|
1552
|
+
} else if (te > Q) {
|
|
1553
|
+
const G = te - Q;
|
|
1554
|
+
A -= G, L.vertical += G;
|
|
1303
1555
|
}
|
|
1304
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1305
|
-
`)),
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1308
|
-
} else if (
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1556
|
+
if (process.env.NODE_ENV !== "production" && w.height > Q && w.height && Q && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${w.height - Q}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
1557
|
+
`)), Y < b) {
|
|
1558
|
+
const G = Y - b;
|
|
1559
|
+
Y -= G, L.horizontal += G;
|
|
1560
|
+
} else if (ce > le) {
|
|
1561
|
+
const G = ce - le;
|
|
1562
|
+
Y -= G, L.horizontal += G;
|
|
1311
1563
|
}
|
|
1312
1564
|
return {
|
|
1313
|
-
top: `${Math.round(
|
|
1314
|
-
left: `${Math.round(
|
|
1315
|
-
transformOrigin:
|
|
1565
|
+
top: `${Math.round(A)}px`,
|
|
1566
|
+
left: `${Math.round(Y)}px`,
|
|
1567
|
+
transformOrigin: nn(L)
|
|
1316
1568
|
};
|
|
1317
|
-
}, [
|
|
1318
|
-
const
|
|
1319
|
-
if (!
|
|
1569
|
+
}, [a, m, D, V, b]), [q, X] = s.useState(C), g = s.useCallback(() => {
|
|
1570
|
+
const R = $.current;
|
|
1571
|
+
if (!R)
|
|
1320
1572
|
return;
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
}, [J]),
|
|
1324
|
-
|
|
1325
|
-
},
|
|
1326
|
-
|
|
1573
|
+
const w = J(R);
|
|
1574
|
+
w.top !== null && (R.style.top = w.top), w.left !== null && (R.style.left = w.left), R.style.transformOrigin = w.transformOrigin, X(!0);
|
|
1575
|
+
}, [J]), v = (R, w) => {
|
|
1576
|
+
f && f(R, w), g();
|
|
1577
|
+
}, z = () => {
|
|
1578
|
+
X(!1);
|
|
1327
1579
|
};
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
}),
|
|
1580
|
+
s.useEffect(() => {
|
|
1581
|
+
C && g();
|
|
1582
|
+
}), s.useImperativeHandle(u, () => C ? {
|
|
1331
1583
|
updatePosition: () => {
|
|
1332
|
-
|
|
1584
|
+
g();
|
|
1333
1585
|
}
|
|
1334
|
-
} : null, [
|
|
1335
|
-
if (!
|
|
1586
|
+
} : null, [C, g]), s.useEffect(() => {
|
|
1587
|
+
if (!C)
|
|
1336
1588
|
return;
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1339
|
-
}),
|
|
1340
|
-
return
|
|
1341
|
-
|
|
1589
|
+
const R = Yn(() => {
|
|
1590
|
+
g();
|
|
1591
|
+
}), w = qe(a);
|
|
1592
|
+
return w.addEventListener("resize", R), () => {
|
|
1593
|
+
R.clear(), w.removeEventListener("resize", R);
|
|
1342
1594
|
};
|
|
1343
|
-
}, [
|
|
1344
|
-
let
|
|
1345
|
-
|
|
1346
|
-
const
|
|
1347
|
-
return /* @__PURE__ */
|
|
1595
|
+
}, [a, C, g]);
|
|
1596
|
+
let K = E;
|
|
1597
|
+
E === "auto" && !T.muiSupportAuto && (K = void 0);
|
|
1598
|
+
const W = S || (a ? he(Ee(a)).body : void 0);
|
|
1599
|
+
return /* @__PURE__ */ x(wo, i({
|
|
1348
1600
|
BackdropProps: {
|
|
1349
1601
|
invisible: !0
|
|
1350
1602
|
},
|
|
1351
|
-
className:
|
|
1352
|
-
container:
|
|
1353
|
-
open:
|
|
1354
|
-
ref:
|
|
1355
|
-
ownerState:
|
|
1356
|
-
},
|
|
1357
|
-
children: /* @__PURE__ */
|
|
1603
|
+
className: Z(_.root, I),
|
|
1604
|
+
container: W,
|
|
1605
|
+
open: C,
|
|
1606
|
+
ref: t,
|
|
1607
|
+
ownerState: k
|
|
1608
|
+
}, P, {
|
|
1609
|
+
children: /* @__PURE__ */ x(T, i({
|
|
1358
1610
|
appear: !0,
|
|
1359
|
-
in:
|
|
1360
|
-
onEntering:
|
|
1361
|
-
onExited:
|
|
1362
|
-
timeout:
|
|
1363
|
-
},
|
|
1364
|
-
children: /* @__PURE__ */
|
|
1611
|
+
in: C,
|
|
1612
|
+
onEntering: v,
|
|
1613
|
+
onExited: z,
|
|
1614
|
+
timeout: K
|
|
1615
|
+
}, d, {
|
|
1616
|
+
children: /* @__PURE__ */ x(No, i({
|
|
1365
1617
|
elevation: M
|
|
1366
|
-
},
|
|
1367
|
-
ref:
|
|
1368
|
-
className:
|
|
1369
|
-
},
|
|
1370
|
-
style:
|
|
1618
|
+
}, O, {
|
|
1619
|
+
ref: y,
|
|
1620
|
+
className: Z(_.paper, O.className)
|
|
1621
|
+
}, q ? void 0 : {
|
|
1622
|
+
style: i({}, O.style, {
|
|
1371
1623
|
opacity: 0
|
|
1372
1624
|
})
|
|
1373
1625
|
}, {
|
|
1374
|
-
ownerState:
|
|
1375
|
-
children:
|
|
1626
|
+
ownerState: k,
|
|
1627
|
+
children: h
|
|
1376
1628
|
}))
|
|
1377
1629
|
}))
|
|
1378
1630
|
}));
|
|
1379
1631
|
});
|
|
1380
|
-
process.env.NODE_ENV !== "production" && (
|
|
1632
|
+
process.env.NODE_ENV !== "production" && (xn.propTypes = {
|
|
1381
1633
|
// ----------------------------- Warning --------------------------------
|
|
1382
1634
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1383
1635
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -1386,21 +1638,21 @@ process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
|
1386
1638
|
* A ref for imperative actions.
|
|
1387
1639
|
* It currently only supports updatePosition() action.
|
|
1388
1640
|
*/
|
|
1389
|
-
action:
|
|
1641
|
+
action: pe,
|
|
1390
1642
|
/**
|
|
1391
1643
|
* An HTML element, or a function that returns one.
|
|
1392
1644
|
* It's used to set the position of the popover.
|
|
1393
1645
|
*/
|
|
1394
|
-
anchorEl:
|
|
1646
|
+
anchorEl: Gn(e.oneOfType([$e, e.func]), (n) => {
|
|
1395
1647
|
if (n.open && (!n.anchorReference || n.anchorReference === "anchorEl")) {
|
|
1396
|
-
const
|
|
1397
|
-
if (
|
|
1398
|
-
const
|
|
1399
|
-
if (process.env.NODE_ENV !== "test" &&
|
|
1648
|
+
const o = Ee(n.anchorEl);
|
|
1649
|
+
if (o && o.nodeType === 1) {
|
|
1650
|
+
const t = o.getBoundingClientRect();
|
|
1651
|
+
if (process.env.NODE_ENV !== "test" && t.top === 0 && t.left === 0 && t.right === 0 && t.bottom === 0)
|
|
1400
1652
|
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(`
|
|
1401
1653
|
`));
|
|
1402
1654
|
} else
|
|
1403
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element instance but it's \`${
|
|
1655
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element instance but it's \`${o}\` instead.`].join(`
|
|
1404
1656
|
`));
|
|
1405
1657
|
}
|
|
1406
1658
|
return null;
|
|
@@ -1455,12 +1707,12 @@ process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
|
1455
1707
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
1456
1708
|
* so it's simply `document.body` most of the time.
|
|
1457
1709
|
*/
|
|
1458
|
-
container: e.oneOfType([
|
|
1710
|
+
container: e.oneOfType([$e, e.func]),
|
|
1459
1711
|
/**
|
|
1460
1712
|
* The elevation of the popover.
|
|
1461
1713
|
* @default 8
|
|
1462
1714
|
*/
|
|
1463
|
-
elevation:
|
|
1715
|
+
elevation: zn,
|
|
1464
1716
|
/**
|
|
1465
1717
|
* Specifies how close to the edge of the window the popover can appear.
|
|
1466
1718
|
* @default 16
|
|
@@ -1480,7 +1732,7 @@ process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
|
1480
1732
|
* @default {}
|
|
1481
1733
|
*/
|
|
1482
1734
|
PaperProps: e.shape({
|
|
1483
|
-
component:
|
|
1735
|
+
component: Xn
|
|
1484
1736
|
}),
|
|
1485
1737
|
/**
|
|
1486
1738
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -1524,34 +1776,34 @@ process.env.NODE_ENV !== "production" && (hn.propTypes = {
|
|
|
1524
1776
|
*/
|
|
1525
1777
|
TransitionProps: e.object
|
|
1526
1778
|
});
|
|
1527
|
-
function
|
|
1528
|
-
return
|
|
1779
|
+
function So(n) {
|
|
1780
|
+
return ne("MuiMenu", n);
|
|
1529
1781
|
}
|
|
1530
|
-
|
|
1531
|
-
const
|
|
1782
|
+
ee("MuiMenu", ["root", "paper", "list"]);
|
|
1783
|
+
const Mo = ["onEntering"], Fo = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"], $o = {
|
|
1532
1784
|
vertical: "top",
|
|
1533
1785
|
horizontal: "right"
|
|
1534
|
-
},
|
|
1786
|
+
}, Do = {
|
|
1535
1787
|
vertical: "top",
|
|
1536
1788
|
horizontal: "left"
|
|
1537
|
-
},
|
|
1789
|
+
}, jo = (n) => {
|
|
1538
1790
|
const {
|
|
1539
|
-
classes:
|
|
1791
|
+
classes: o
|
|
1540
1792
|
} = n;
|
|
1541
|
-
return
|
|
1793
|
+
return oe({
|
|
1542
1794
|
root: ["root"],
|
|
1543
1795
|
paper: ["paper"],
|
|
1544
1796
|
list: ["list"]
|
|
1545
|
-
},
|
|
1546
|
-
},
|
|
1547
|
-
shouldForwardProp: (n) =>
|
|
1797
|
+
}, So, o);
|
|
1798
|
+
}, Lo = j(xn, {
|
|
1799
|
+
shouldForwardProp: (n) => ge(n) || n === "classes",
|
|
1548
1800
|
name: "MuiMenu",
|
|
1549
1801
|
slot: "Root",
|
|
1550
|
-
overridesResolver: (n,
|
|
1551
|
-
})({}),
|
|
1802
|
+
overridesResolver: (n, o) => o.root
|
|
1803
|
+
})({}), ko = j(hn, {
|
|
1552
1804
|
name: "MuiMenu",
|
|
1553
1805
|
slot: "Paper",
|
|
1554
|
-
overridesResolver: (n,
|
|
1806
|
+
overridesResolver: (n, o) => o.paper
|
|
1555
1807
|
})({
|
|
1556
1808
|
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
1557
1809
|
// height. This ensures a tapable area outside of the simple menu with which to dismiss
|
|
@@ -1559,86 +1811,86 @@ const bt = ["onEntering"], ht = ["autoFocus", "children", "disableAutoFocusItem"
|
|
|
1559
1811
|
maxHeight: "calc(100% - 96px)",
|
|
1560
1812
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
1561
1813
|
WebkitOverflowScrolling: "touch"
|
|
1562
|
-
}),
|
|
1814
|
+
}), _o = j(Rn, {
|
|
1563
1815
|
name: "MuiMenu",
|
|
1564
1816
|
slot: "List",
|
|
1565
|
-
overridesResolver: (n,
|
|
1817
|
+
overridesResolver: (n, o) => o.list
|
|
1566
1818
|
})({
|
|
1567
1819
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1568
1820
|
outline: 0
|
|
1569
|
-
}),
|
|
1570
|
-
const
|
|
1571
|
-
props:
|
|
1821
|
+
}), Cn = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
1822
|
+
const r = se({
|
|
1823
|
+
props: o,
|
|
1572
1824
|
name: "MuiMenu"
|
|
1573
1825
|
}), {
|
|
1574
|
-
autoFocus:
|
|
1575
|
-
children:
|
|
1576
|
-
disableAutoFocusItem:
|
|
1826
|
+
autoFocus: u = !0,
|
|
1827
|
+
children: a,
|
|
1828
|
+
disableAutoFocusItem: l = !1,
|
|
1577
1829
|
MenuListProps: p = {},
|
|
1578
|
-
onClose:
|
|
1579
|
-
open:
|
|
1580
|
-
PaperProps:
|
|
1581
|
-
PopoverClasses:
|
|
1830
|
+
onClose: m,
|
|
1831
|
+
open: h,
|
|
1832
|
+
PaperProps: I = {},
|
|
1833
|
+
PopoverClasses: S,
|
|
1582
1834
|
transitionDuration: M = "auto",
|
|
1583
1835
|
TransitionProps: {
|
|
1584
|
-
onEntering:
|
|
1836
|
+
onEntering: b
|
|
1585
1837
|
} = {},
|
|
1586
|
-
variant:
|
|
1587
|
-
} =
|
|
1588
|
-
autoFocus:
|
|
1589
|
-
disableAutoFocusItem:
|
|
1838
|
+
variant: C = "selectedMenu"
|
|
1839
|
+
} = r, O = H(r.TransitionProps, Mo), F = H(r, Fo), T = bn(), E = T.direction === "rtl", f = i({}, r, {
|
|
1840
|
+
autoFocus: u,
|
|
1841
|
+
disableAutoFocusItem: l,
|
|
1590
1842
|
MenuListProps: p,
|
|
1591
|
-
onEntering:
|
|
1592
|
-
PaperProps:
|
|
1843
|
+
onEntering: b,
|
|
1844
|
+
PaperProps: I,
|
|
1593
1845
|
transitionDuration: M,
|
|
1594
|
-
TransitionProps:
|
|
1595
|
-
variant:
|
|
1596
|
-
}),
|
|
1597
|
-
|
|
1598
|
-
},
|
|
1599
|
-
D.key === "Tab" && (D.preventDefault(),
|
|
1846
|
+
TransitionProps: O,
|
|
1847
|
+
variant: C
|
|
1848
|
+
}), d = jo(f), P = u && !l && h, $ = s.useRef(null), y = (D, V) => {
|
|
1849
|
+
$.current && $.current.adjustStyleForScrollbar(D, T), b && b(D, V);
|
|
1850
|
+
}, k = (D) => {
|
|
1851
|
+
D.key === "Tab" && (D.preventDefault(), m && m(D, "tabKeyDown"));
|
|
1600
1852
|
};
|
|
1601
|
-
let
|
|
1602
|
-
return
|
|
1603
|
-
/* @__PURE__ */
|
|
1604
|
-
`)), D.props.disabled || (
|
|
1605
|
-
}), /* @__PURE__ */
|
|
1606
|
-
onClose:
|
|
1853
|
+
let _ = -1;
|
|
1854
|
+
return s.Children.map(a, (D, V) => {
|
|
1855
|
+
/* @__PURE__ */ s.isValidElement(D) && (process.env.NODE_ENV !== "production" && ke.isFragment(D) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1856
|
+
`)), D.props.disabled || (C === "selectedMenu" && D.props.selected || _ === -1) && (_ = V));
|
|
1857
|
+
}), /* @__PURE__ */ x(Lo, i({
|
|
1858
|
+
onClose: m,
|
|
1607
1859
|
anchorOrigin: {
|
|
1608
1860
|
vertical: "bottom",
|
|
1609
|
-
horizontal:
|
|
1861
|
+
horizontal: E ? "right" : "left"
|
|
1610
1862
|
},
|
|
1611
|
-
transformOrigin:
|
|
1612
|
-
PaperProps:
|
|
1613
|
-
as:
|
|
1614
|
-
},
|
|
1615
|
-
classes:
|
|
1616
|
-
root:
|
|
1863
|
+
transformOrigin: E ? $o : Do,
|
|
1864
|
+
PaperProps: i({
|
|
1865
|
+
as: ko
|
|
1866
|
+
}, I, {
|
|
1867
|
+
classes: i({}, I.classes, {
|
|
1868
|
+
root: d.paper
|
|
1617
1869
|
})
|
|
1618
1870
|
}),
|
|
1619
|
-
className:
|
|
1620
|
-
open:
|
|
1621
|
-
ref:
|
|
1871
|
+
className: d.root,
|
|
1872
|
+
open: h,
|
|
1873
|
+
ref: t,
|
|
1622
1874
|
transitionDuration: M,
|
|
1623
|
-
TransitionProps:
|
|
1624
|
-
onEntering:
|
|
1625
|
-
},
|
|
1626
|
-
ownerState:
|
|
1627
|
-
},
|
|
1628
|
-
classes:
|
|
1629
|
-
children: /* @__PURE__ */
|
|
1630
|
-
onKeyDown:
|
|
1631
|
-
actions:
|
|
1632
|
-
autoFocus:
|
|
1633
|
-
autoFocusItem:
|
|
1634
|
-
variant:
|
|
1875
|
+
TransitionProps: i({
|
|
1876
|
+
onEntering: y
|
|
1877
|
+
}, O),
|
|
1878
|
+
ownerState: f
|
|
1879
|
+
}, F, {
|
|
1880
|
+
classes: S,
|
|
1881
|
+
children: /* @__PURE__ */ x(_o, i({
|
|
1882
|
+
onKeyDown: k,
|
|
1883
|
+
actions: $,
|
|
1884
|
+
autoFocus: u && (_ === -1 || l),
|
|
1885
|
+
autoFocusItem: P,
|
|
1886
|
+
variant: C
|
|
1635
1887
|
}, p, {
|
|
1636
|
-
className:
|
|
1637
|
-
children:
|
|
1888
|
+
className: Z(d.list, p.className),
|
|
1889
|
+
children: a
|
|
1638
1890
|
}))
|
|
1639
1891
|
}));
|
|
1640
1892
|
});
|
|
1641
|
-
process.env.NODE_ENV !== "production" && (
|
|
1893
|
+
process.env.NODE_ENV !== "production" && (Cn.propTypes = {
|
|
1642
1894
|
// ----------------------------- Warning --------------------------------
|
|
1643
1895
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1644
1896
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -1647,7 +1899,7 @@ process.env.NODE_ENV !== "production" && (gn.propTypes = {
|
|
|
1647
1899
|
* An HTML element, or a function that returns one.
|
|
1648
1900
|
* It's used to set the position of the menu.
|
|
1649
1901
|
*/
|
|
1650
|
-
anchorEl: e.oneOfType([
|
|
1902
|
+
anchorEl: e.oneOfType([$e, e.func]),
|
|
1651
1903
|
/**
|
|
1652
1904
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
1653
1905
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -1721,25 +1973,25 @@ process.env.NODE_ENV !== "production" && (gn.propTypes = {
|
|
|
1721
1973
|
*/
|
|
1722
1974
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
1723
1975
|
});
|
|
1724
|
-
function
|
|
1725
|
-
return
|
|
1976
|
+
function Wo(n) {
|
|
1977
|
+
return ne("MuiNativeSelect", n);
|
|
1726
1978
|
}
|
|
1727
|
-
const
|
|
1979
|
+
const We = ee("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput"]), Ao = ["className", "disabled", "IconComponent", "inputRef", "variant"], Bo = (n) => {
|
|
1728
1980
|
const {
|
|
1729
|
-
classes:
|
|
1730
|
-
variant:
|
|
1731
|
-
disabled:
|
|
1732
|
-
multiple:
|
|
1733
|
-
open:
|
|
1734
|
-
} = n,
|
|
1735
|
-
select: ["select",
|
|
1736
|
-
icon: ["icon", `icon${
|
|
1981
|
+
classes: o,
|
|
1982
|
+
variant: t,
|
|
1983
|
+
disabled: r,
|
|
1984
|
+
multiple: u,
|
|
1985
|
+
open: a
|
|
1986
|
+
} = n, l = {
|
|
1987
|
+
select: ["select", t, r && "disabled", u && "multiple"],
|
|
1988
|
+
icon: ["icon", `icon${fe(t)}`, a && "iconOpen", r && "disabled"]
|
|
1737
1989
|
};
|
|
1738
|
-
return
|
|
1739
|
-
},
|
|
1990
|
+
return oe(l, Wo, o);
|
|
1991
|
+
}, En = ({
|
|
1740
1992
|
ownerState: n,
|
|
1741
|
-
theme:
|
|
1742
|
-
}) =>
|
|
1993
|
+
theme: o
|
|
1994
|
+
}) => i({
|
|
1743
1995
|
MozAppearance: "none",
|
|
1744
1996
|
// Reset
|
|
1745
1997
|
WebkitAppearance: "none",
|
|
@@ -1750,10 +2002,10 @@ const Le = ie("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
1750
2002
|
borderRadius: 0,
|
|
1751
2003
|
// Reset
|
|
1752
2004
|
cursor: "pointer",
|
|
1753
|
-
"&:focus":
|
|
1754
|
-
backgroundColor: `rgba(${
|
|
2005
|
+
"&:focus": i({}, o.vars ? {
|
|
2006
|
+
backgroundColor: `rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`
|
|
1755
2007
|
} : {
|
|
1756
|
-
backgroundColor:
|
|
2008
|
+
backgroundColor: o.palette.mode === "light" ? "rgba(0, 0, 0, 0.05)" : "rgba(255, 255, 255, 0.05)"
|
|
1757
2009
|
}, {
|
|
1758
2010
|
borderRadius: 0
|
|
1759
2011
|
// Reset Chrome style
|
|
@@ -1762,14 +2014,14 @@ const Le = ie("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
1762
2014
|
"&::-ms-expand": {
|
|
1763
2015
|
display: "none"
|
|
1764
2016
|
},
|
|
1765
|
-
[`&.${
|
|
2017
|
+
[`&.${We.disabled}`]: {
|
|
1766
2018
|
cursor: "default"
|
|
1767
2019
|
},
|
|
1768
2020
|
"&[multiple]": {
|
|
1769
2021
|
height: "auto"
|
|
1770
2022
|
},
|
|
1771
2023
|
"&:not([multiple]) option, &:not([multiple]) optgroup": {
|
|
1772
|
-
backgroundColor: (
|
|
2024
|
+
backgroundColor: (o.vars || o).palette.background.paper
|
|
1773
2025
|
},
|
|
1774
2026
|
// Bump specificity to allow extending custom inputs
|
|
1775
2027
|
"&&&": {
|
|
@@ -1782,30 +2034,30 @@ const Le = ie("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
1782
2034
|
paddingRight: 32
|
|
1783
2035
|
}
|
|
1784
2036
|
}, n.variant === "outlined" && {
|
|
1785
|
-
borderRadius: (
|
|
2037
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
|
1786
2038
|
"&:focus": {
|
|
1787
|
-
borderRadius: (
|
|
2039
|
+
borderRadius: (o.vars || o).shape.borderRadius
|
|
1788
2040
|
// Reset the reset for Chrome style
|
|
1789
2041
|
},
|
|
1790
2042
|
"&&&": {
|
|
1791
2043
|
paddingRight: 32
|
|
1792
2044
|
}
|
|
1793
|
-
}),
|
|
2045
|
+
}), Vo = j("select", {
|
|
1794
2046
|
name: "MuiNativeSelect",
|
|
1795
2047
|
slot: "Select",
|
|
1796
|
-
shouldForwardProp:
|
|
1797
|
-
overridesResolver: (n,
|
|
2048
|
+
shouldForwardProp: ge,
|
|
2049
|
+
overridesResolver: (n, o) => {
|
|
1798
2050
|
const {
|
|
1799
|
-
ownerState:
|
|
2051
|
+
ownerState: t
|
|
1800
2052
|
} = n;
|
|
1801
|
-
return [
|
|
1802
|
-
[`&.${
|
|
2053
|
+
return [o.select, o[t.variant], {
|
|
2054
|
+
[`&.${We.multiple}`]: o.multiple
|
|
1803
2055
|
}];
|
|
1804
2056
|
}
|
|
1805
|
-
})(
|
|
2057
|
+
})(En), Pn = ({
|
|
1806
2058
|
ownerState: n,
|
|
1807
|
-
theme:
|
|
1808
|
-
}) =>
|
|
2059
|
+
theme: o
|
|
2060
|
+
}) => i({
|
|
1809
2061
|
// We use a position absolute over a flexbox in order to forward the pointer events
|
|
1810
2062
|
// to the input and to support wrapping tags..
|
|
1811
2063
|
position: "absolute",
|
|
@@ -1814,9 +2066,9 @@ const Le = ie("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
1814
2066
|
// Center vertically, height is 1em
|
|
1815
2067
|
pointerEvents: "none",
|
|
1816
2068
|
// Don't block pointer events on the select under the icon.
|
|
1817
|
-
color: (
|
|
1818
|
-
[`&.${
|
|
1819
|
-
color: (
|
|
2069
|
+
color: (o.vars || o).palette.action.active,
|
|
2070
|
+
[`&.${We.disabled}`]: {
|
|
2071
|
+
color: (o.vars || o).palette.action.disabled
|
|
1820
2072
|
}
|
|
1821
2073
|
}, n.open && {
|
|
1822
2074
|
transform: "rotate(180deg)"
|
|
@@ -1824,40 +2076,40 @@ const Le = ie("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
1824
2076
|
right: 7
|
|
1825
2077
|
}, n.variant === "outlined" && {
|
|
1826
2078
|
right: 7
|
|
1827
|
-
}),
|
|
2079
|
+
}), zo = j("svg", {
|
|
1828
2080
|
name: "MuiNativeSelect",
|
|
1829
2081
|
slot: "Icon",
|
|
1830
|
-
overridesResolver: (n,
|
|
2082
|
+
overridesResolver: (n, o) => {
|
|
1831
2083
|
const {
|
|
1832
|
-
ownerState:
|
|
2084
|
+
ownerState: t
|
|
1833
2085
|
} = n;
|
|
1834
|
-
return [
|
|
2086
|
+
return [o.icon, t.variant && o[`icon${fe(t.variant)}`], t.open && o.iconOpen];
|
|
1835
2087
|
}
|
|
1836
|
-
})(
|
|
2088
|
+
})(Pn), In = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
1837
2089
|
const {
|
|
1838
|
-
className:
|
|
1839
|
-
disabled:
|
|
1840
|
-
IconComponent:
|
|
1841
|
-
inputRef:
|
|
2090
|
+
className: r,
|
|
2091
|
+
disabled: u,
|
|
2092
|
+
IconComponent: a,
|
|
2093
|
+
inputRef: l,
|
|
1842
2094
|
variant: p = "standard"
|
|
1843
|
-
} =
|
|
1844
|
-
disabled:
|
|
2095
|
+
} = o, m = H(o, Ao), h = i({}, o, {
|
|
2096
|
+
disabled: u,
|
|
1845
2097
|
variant: p
|
|
1846
|
-
}),
|
|
1847
|
-
return /* @__PURE__ */
|
|
1848
|
-
children: [/* @__PURE__ */
|
|
1849
|
-
ownerState:
|
|
1850
|
-
className:
|
|
1851
|
-
disabled:
|
|
1852
|
-
ref:
|
|
1853
|
-
},
|
|
1854
|
-
as:
|
|
1855
|
-
ownerState:
|
|
1856
|
-
className:
|
|
2098
|
+
}), I = Bo(h);
|
|
2099
|
+
return /* @__PURE__ */ ve(s.Fragment, {
|
|
2100
|
+
children: [/* @__PURE__ */ x(Vo, i({
|
|
2101
|
+
ownerState: h,
|
|
2102
|
+
className: Z(I.select, r),
|
|
2103
|
+
disabled: u,
|
|
2104
|
+
ref: l || t
|
|
2105
|
+
}, m)), o.multiple ? null : /* @__PURE__ */ x(zo, {
|
|
2106
|
+
as: a,
|
|
2107
|
+
ownerState: h,
|
|
2108
|
+
className: I.icon
|
|
1857
2109
|
})]
|
|
1858
2110
|
});
|
|
1859
2111
|
});
|
|
1860
|
-
process.env.NODE_ENV !== "production" && (
|
|
2112
|
+
process.env.NODE_ENV !== "production" && (In.propTypes = {
|
|
1861
2113
|
/**
|
|
1862
2114
|
* The option elements to populate the select with.
|
|
1863
2115
|
* Can be some `<option>` elements.
|
|
@@ -1884,7 +2136,7 @@ process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
|
1884
2136
|
* Use that prop to pass a ref to the native select element.
|
|
1885
2137
|
* @deprecated
|
|
1886
2138
|
*/
|
|
1887
|
-
inputRef:
|
|
2139
|
+
inputRef: pe,
|
|
1888
2140
|
/**
|
|
1889
2141
|
* @ignore
|
|
1890
2142
|
*/
|
|
@@ -1909,32 +2161,32 @@ process.env.NODE_ENV !== "production" && (On.propTypes = {
|
|
|
1909
2161
|
*/
|
|
1910
2162
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
1911
2163
|
});
|
|
1912
|
-
function
|
|
1913
|
-
return
|
|
2164
|
+
function Uo(n) {
|
|
2165
|
+
return ne("MuiSelect", n);
|
|
1914
2166
|
}
|
|
1915
|
-
const Ce =
|
|
1916
|
-
var
|
|
1917
|
-
const
|
|
2167
|
+
const Ce = ee("MuiSelect", ["select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput"]);
|
|
2168
|
+
var on;
|
|
2169
|
+
const Ho = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"], qo = j("div", {
|
|
1918
2170
|
name: "MuiSelect",
|
|
1919
2171
|
slot: "Select",
|
|
1920
|
-
overridesResolver: (n,
|
|
2172
|
+
overridesResolver: (n, o) => {
|
|
1921
2173
|
const {
|
|
1922
|
-
ownerState:
|
|
2174
|
+
ownerState: t
|
|
1923
2175
|
} = n;
|
|
1924
2176
|
return [
|
|
1925
2177
|
// Win specificity over the input base
|
|
1926
2178
|
{
|
|
1927
|
-
[`&.${Ce.select}`]:
|
|
2179
|
+
[`&.${Ce.select}`]: o.select
|
|
1928
2180
|
},
|
|
1929
2181
|
{
|
|
1930
|
-
[`&.${Ce.select}`]: t
|
|
2182
|
+
[`&.${Ce.select}`]: o[t.variant]
|
|
1931
2183
|
},
|
|
1932
2184
|
{
|
|
1933
|
-
[`&.${Ce.multiple}`]:
|
|
2185
|
+
[`&.${Ce.multiple}`]: o.multiple
|
|
1934
2186
|
}
|
|
1935
2187
|
];
|
|
1936
2188
|
}
|
|
1937
|
-
})(
|
|
2189
|
+
})(En, {
|
|
1938
2190
|
// Win specificity over the input base
|
|
1939
2191
|
[`&.${Ce.select}`]: {
|
|
1940
2192
|
height: "auto",
|
|
@@ -1945,20 +2197,20 @@ const wt = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
|
1945
2197
|
whiteSpace: "nowrap",
|
|
1946
2198
|
overflow: "hidden"
|
|
1947
2199
|
}
|
|
1948
|
-
}),
|
|
2200
|
+
}), Ko = j("svg", {
|
|
1949
2201
|
name: "MuiSelect",
|
|
1950
2202
|
slot: "Icon",
|
|
1951
|
-
overridesResolver: (n,
|
|
2203
|
+
overridesResolver: (n, o) => {
|
|
1952
2204
|
const {
|
|
1953
|
-
ownerState:
|
|
2205
|
+
ownerState: t
|
|
1954
2206
|
} = n;
|
|
1955
|
-
return [
|
|
2207
|
+
return [o.icon, t.variant && o[`icon${fe(t.variant)}`], t.open && o.iconOpen];
|
|
1956
2208
|
}
|
|
1957
|
-
})(
|
|
1958
|
-
shouldForwardProp: (n) =>
|
|
2209
|
+
})(Pn), Go = j("input", {
|
|
2210
|
+
shouldForwardProp: (n) => jn(n) && n !== "classes",
|
|
1959
2211
|
name: "MuiSelect",
|
|
1960
2212
|
slot: "NativeInput",
|
|
1961
|
-
overridesResolver: (n,
|
|
2213
|
+
overridesResolver: (n, o) => o.nativeInput
|
|
1962
2214
|
})({
|
|
1963
2215
|
bottom: 0,
|
|
1964
2216
|
left: 0,
|
|
@@ -1968,237 +2220,237 @@ const wt = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "childre
|
|
|
1968
2220
|
width: "100%",
|
|
1969
2221
|
boxSizing: "border-box"
|
|
1970
2222
|
});
|
|
1971
|
-
function
|
|
1972
|
-
return typeof
|
|
2223
|
+
function tn(n, o) {
|
|
2224
|
+
return typeof o == "object" && o !== null ? n === o : String(n) === String(o);
|
|
1973
2225
|
}
|
|
1974
|
-
function
|
|
2226
|
+
function Xo(n) {
|
|
1975
2227
|
return n == null || typeof n == "string" && !n.trim();
|
|
1976
2228
|
}
|
|
1977
|
-
const
|
|
2229
|
+
const Yo = (n) => {
|
|
1978
2230
|
const {
|
|
1979
|
-
classes:
|
|
1980
|
-
variant:
|
|
1981
|
-
disabled:
|
|
1982
|
-
multiple:
|
|
1983
|
-
open:
|
|
1984
|
-
} = n,
|
|
1985
|
-
select: ["select",
|
|
1986
|
-
icon: ["icon", `icon${
|
|
2231
|
+
classes: o,
|
|
2232
|
+
variant: t,
|
|
2233
|
+
disabled: r,
|
|
2234
|
+
multiple: u,
|
|
2235
|
+
open: a
|
|
2236
|
+
} = n, l = {
|
|
2237
|
+
select: ["select", t, r && "disabled", u && "multiple"],
|
|
2238
|
+
icon: ["icon", `icon${fe(t)}`, a && "iconOpen", r && "disabled"],
|
|
1987
2239
|
nativeInput: ["nativeInput"]
|
|
1988
2240
|
};
|
|
1989
|
-
return
|
|
1990
|
-
},
|
|
2241
|
+
return oe(l, Uo, o);
|
|
2242
|
+
}, wn = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
1991
2243
|
const {
|
|
1992
|
-
"aria-describedby":
|
|
1993
|
-
"aria-label":
|
|
1994
|
-
autoFocus:
|
|
1995
|
-
autoWidth:
|
|
2244
|
+
"aria-describedby": r,
|
|
2245
|
+
"aria-label": u,
|
|
2246
|
+
autoFocus: a,
|
|
2247
|
+
autoWidth: l,
|
|
1996
2248
|
children: p,
|
|
1997
|
-
className:
|
|
1998
|
-
defaultOpen:
|
|
1999
|
-
defaultValue:
|
|
2000
|
-
disabled:
|
|
2249
|
+
className: m,
|
|
2250
|
+
defaultOpen: h,
|
|
2251
|
+
defaultValue: I,
|
|
2252
|
+
disabled: S,
|
|
2001
2253
|
displayEmpty: M,
|
|
2002
|
-
IconComponent:
|
|
2003
|
-
inputRef:
|
|
2004
|
-
labelId:
|
|
2005
|
-
MenuProps:
|
|
2006
|
-
multiple:
|
|
2007
|
-
name:
|
|
2008
|
-
onBlur:
|
|
2009
|
-
onChange:
|
|
2010
|
-
onClose:
|
|
2011
|
-
onFocus:
|
|
2012
|
-
onOpen:
|
|
2013
|
-
open:
|
|
2014
|
-
readOnly:
|
|
2254
|
+
IconComponent: b,
|
|
2255
|
+
inputRef: C,
|
|
2256
|
+
labelId: O,
|
|
2257
|
+
MenuProps: F = {},
|
|
2258
|
+
multiple: T,
|
|
2259
|
+
name: E,
|
|
2260
|
+
onBlur: f,
|
|
2261
|
+
onChange: d,
|
|
2262
|
+
onClose: P,
|
|
2263
|
+
onFocus: $,
|
|
2264
|
+
onOpen: y,
|
|
2265
|
+
open: k,
|
|
2266
|
+
readOnly: _,
|
|
2015
2267
|
renderValue: D,
|
|
2016
|
-
SelectDisplayProps:
|
|
2268
|
+
SelectDisplayProps: V = {},
|
|
2017
2269
|
tabIndex: J,
|
|
2018
|
-
value:
|
|
2019
|
-
variant:
|
|
2020
|
-
} =
|
|
2021
|
-
controlled:
|
|
2022
|
-
default:
|
|
2270
|
+
value: q,
|
|
2271
|
+
variant: X = "standard"
|
|
2272
|
+
} = o, g = H(o, Ho), [v, z] = Ge({
|
|
2273
|
+
controlled: q,
|
|
2274
|
+
default: I,
|
|
2023
2275
|
name: "Select"
|
|
2024
|
-
}), [
|
|
2025
|
-
controlled:
|
|
2026
|
-
default:
|
|
2276
|
+
}), [K, W] = Ge({
|
|
2277
|
+
controlled: k,
|
|
2278
|
+
default: h,
|
|
2027
2279
|
name: "Select"
|
|
2028
|
-
}),
|
|
2029
|
-
current:
|
|
2030
|
-
} =
|
|
2031
|
-
|
|
2032
|
-
}, []),
|
|
2033
|
-
|
|
2280
|
+
}), R = s.useRef(null), w = s.useRef(null), [L, U] = s.useState(null), {
|
|
2281
|
+
current: A
|
|
2282
|
+
} = s.useRef(k != null), [Y, te] = s.useState(), ce = ye(t, C), ae = s.useCallback((c) => {
|
|
2283
|
+
w.current = c, c && U(c);
|
|
2284
|
+
}, []), Q = L == null ? void 0 : L.parentNode;
|
|
2285
|
+
s.useImperativeHandle(ce, () => ({
|
|
2034
2286
|
focus: () => {
|
|
2035
|
-
|
|
2287
|
+
w.current.focus();
|
|
2036
2288
|
},
|
|
2037
|
-
node:
|
|
2038
|
-
value:
|
|
2039
|
-
}), [
|
|
2040
|
-
|
|
2041
|
-
}, [
|
|
2042
|
-
|
|
2043
|
-
}, [
|
|
2044
|
-
if (!
|
|
2289
|
+
node: R.current,
|
|
2290
|
+
value: v
|
|
2291
|
+
}), [v]), s.useEffect(() => {
|
|
2292
|
+
h && K && L && !A && (te(l ? null : Q.clientWidth), w.current.focus());
|
|
2293
|
+
}, [L, l]), s.useEffect(() => {
|
|
2294
|
+
a && w.current.focus();
|
|
2295
|
+
}, [a]), s.useEffect(() => {
|
|
2296
|
+
if (!O)
|
|
2045
2297
|
return;
|
|
2046
|
-
const
|
|
2047
|
-
if (
|
|
2048
|
-
const
|
|
2049
|
-
getSelection().isCollapsed &&
|
|
2298
|
+
const c = he(w.current).getElementById(O);
|
|
2299
|
+
if (c) {
|
|
2300
|
+
const N = () => {
|
|
2301
|
+
getSelection().isCollapsed && w.current.focus();
|
|
2050
2302
|
};
|
|
2051
|
-
return
|
|
2052
|
-
|
|
2303
|
+
return c.addEventListener("click", N), () => {
|
|
2304
|
+
c.removeEventListener("click", N);
|
|
2053
2305
|
};
|
|
2054
2306
|
}
|
|
2055
|
-
}, [
|
|
2056
|
-
const
|
|
2057
|
-
|
|
2058
|
-
},
|
|
2059
|
-
|
|
2060
|
-
},
|
|
2061
|
-
|
|
2062
|
-
},
|
|
2063
|
-
const
|
|
2064
|
-
if (
|
|
2307
|
+
}, [O]);
|
|
2308
|
+
const le = (c, N) => {
|
|
2309
|
+
c ? y && y(N) : P && P(N), A || (te(l ? null : Q.clientWidth), W(c));
|
|
2310
|
+
}, G = (c) => {
|
|
2311
|
+
c.button === 0 && (c.preventDefault(), w.current.focus(), le(!0, c));
|
|
2312
|
+
}, Nn = (c) => {
|
|
2313
|
+
le(!1, c);
|
|
2314
|
+
}, me = s.Children.toArray(p), Sn = (c) => {
|
|
2315
|
+
const N = me.map((re) => re.props.value).indexOf(c.target.value);
|
|
2316
|
+
if (N === -1)
|
|
2065
2317
|
return;
|
|
2066
|
-
const
|
|
2067
|
-
B
|
|
2068
|
-
},
|
|
2069
|
-
let
|
|
2070
|
-
if (
|
|
2071
|
-
if (
|
|
2072
|
-
|
|
2073
|
-
const
|
|
2074
|
-
|
|
2318
|
+
const B = me[N];
|
|
2319
|
+
z(B.props.value), d && d(c, B);
|
|
2320
|
+
}, Mn = (c) => (N) => {
|
|
2321
|
+
let B;
|
|
2322
|
+
if (N.currentTarget.hasAttribute("tabindex")) {
|
|
2323
|
+
if (T) {
|
|
2324
|
+
B = Array.isArray(v) ? v.slice() : [];
|
|
2325
|
+
const re = v.indexOf(c.props.value);
|
|
2326
|
+
re === -1 ? B.push(c.props.value) : B.splice(re, 1);
|
|
2075
2327
|
} else
|
|
2076
|
-
|
|
2077
|
-
if (
|
|
2078
|
-
const
|
|
2079
|
-
Object.defineProperty(
|
|
2328
|
+
B = c.props.value;
|
|
2329
|
+
if (c.props.onClick && c.props.onClick(N), v !== B && (z(B), d)) {
|
|
2330
|
+
const re = N.nativeEvent || N, He = new re.constructor(re.type, re);
|
|
2331
|
+
Object.defineProperty(He, "target", {
|
|
2080
2332
|
writable: !0,
|
|
2081
2333
|
value: {
|
|
2082
|
-
value:
|
|
2083
|
-
name:
|
|
2334
|
+
value: B,
|
|
2335
|
+
name: E
|
|
2084
2336
|
}
|
|
2085
|
-
}),
|
|
2337
|
+
}), d(He, c);
|
|
2086
2338
|
}
|
|
2087
|
-
|
|
2339
|
+
T || le(!1, N);
|
|
2088
2340
|
}
|
|
2089
|
-
},
|
|
2090
|
-
|
|
2341
|
+
}, Fn = (c) => {
|
|
2342
|
+
_ || [
|
|
2091
2343
|
" ",
|
|
2092
2344
|
"ArrowUp",
|
|
2093
2345
|
"ArrowDown",
|
|
2094
2346
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
2095
2347
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
2096
2348
|
"Enter"
|
|
2097
|
-
].indexOf(
|
|
2098
|
-
},
|
|
2099
|
-
!
|
|
2349
|
+
].indexOf(c.key) !== -1 && (c.preventDefault(), le(!0, c));
|
|
2350
|
+
}, Oe = L !== null && K, $n = (c) => {
|
|
2351
|
+
!Oe && f && (Object.defineProperty(c, "target", {
|
|
2100
2352
|
writable: !0,
|
|
2101
2353
|
value: {
|
|
2102
|
-
value:
|
|
2103
|
-
name:
|
|
2354
|
+
value: v,
|
|
2355
|
+
name: E
|
|
2104
2356
|
}
|
|
2105
|
-
}),
|
|
2357
|
+
}), f(c));
|
|
2106
2358
|
};
|
|
2107
|
-
delete
|
|
2108
|
-
let
|
|
2109
|
-
const
|
|
2110
|
-
let
|
|
2111
|
-
(
|
|
2112
|
-
value:
|
|
2113
|
-
}) || M) && (D ?
|
|
2114
|
-
const
|
|
2115
|
-
if (!/* @__PURE__ */
|
|
2359
|
+
delete g["aria-invalid"];
|
|
2360
|
+
let ue, Ve;
|
|
2361
|
+
const Te = [];
|
|
2362
|
+
let Re = !1, we = !1;
|
|
2363
|
+
(kn({
|
|
2364
|
+
value: v
|
|
2365
|
+
}) || M) && (D ? ue = D(v) : Re = !0);
|
|
2366
|
+
const Dn = me.map((c) => {
|
|
2367
|
+
if (!/* @__PURE__ */ s.isValidElement(c))
|
|
2116
2368
|
return null;
|
|
2117
|
-
process.env.NODE_ENV !== "production" &&
|
|
2369
|
+
process.env.NODE_ENV !== "production" && ke.isFragment(c) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2118
2370
|
`));
|
|
2119
|
-
let
|
|
2120
|
-
if (
|
|
2121
|
-
if (!Array.isArray(
|
|
2122
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." :
|
|
2123
|
-
|
|
2371
|
+
let N;
|
|
2372
|
+
if (T) {
|
|
2373
|
+
if (!Array.isArray(v))
|
|
2374
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Ln(2));
|
|
2375
|
+
N = v.some((B) => tn(B, c.props.value)), N && Re && Te.push(c.props.children);
|
|
2124
2376
|
} else
|
|
2125
|
-
|
|
2126
|
-
return
|
|
2127
|
-
"aria-selected":
|
|
2128
|
-
onClick:
|
|
2129
|
-
onKeyUp: (
|
|
2130
|
-
|
|
2377
|
+
N = tn(v, c.props.value), N && Re && (Ve = c.props.children);
|
|
2378
|
+
return N && (we = !0), /* @__PURE__ */ s.cloneElement(c, {
|
|
2379
|
+
"aria-selected": N ? "true" : "false",
|
|
2380
|
+
onClick: Mn(c),
|
|
2381
|
+
onKeyUp: (B) => {
|
|
2382
|
+
B.key === " " && B.preventDefault(), c.props.onKeyUp && c.props.onKeyUp(B);
|
|
2131
2383
|
},
|
|
2132
2384
|
role: "option",
|
|
2133
|
-
selected:
|
|
2385
|
+
selected: N,
|
|
2134
2386
|
value: void 0,
|
|
2135
2387
|
// The value is most likely not a valid HTML attribute.
|
|
2136
|
-
"data-value":
|
|
2388
|
+
"data-value": c.props.value
|
|
2137
2389
|
// Instead, we provide it as a data attribute.
|
|
2138
2390
|
});
|
|
2139
2391
|
});
|
|
2140
|
-
process.env.NODE_ENV !== "production" &&
|
|
2141
|
-
if (!
|
|
2142
|
-
const
|
|
2143
|
-
console.warn([`MUI: You have provided an out-of-range value \`${
|
|
2392
|
+
process.env.NODE_ENV !== "production" && s.useEffect(() => {
|
|
2393
|
+
if (!we && !T && v !== "") {
|
|
2394
|
+
const c = me.map((N) => N.props.value);
|
|
2395
|
+
console.warn([`MUI: You have provided an out-of-range value \`${v}\` for the select ${E ? `(name="${E}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${c.filter((N) => N != null).map((N) => `\`${N}\``).join(", ") || '""'}.`].join(`
|
|
2144
2396
|
`));
|
|
2145
2397
|
}
|
|
2146
|
-
}, [
|
|
2147
|
-
let
|
|
2148
|
-
!
|
|
2149
|
-
let
|
|
2150
|
-
typeof J < "u" ?
|
|
2151
|
-
const
|
|
2152
|
-
variant:
|
|
2153
|
-
value:
|
|
2154
|
-
open:
|
|
2155
|
-
}),
|
|
2156
|
-
return /* @__PURE__ */
|
|
2157
|
-
children: [/* @__PURE__ */
|
|
2158
|
-
ref:
|
|
2159
|
-
tabIndex:
|
|
2398
|
+
}, [we, me, T, E, v]), Re && (T ? Te.length === 0 ? ue = null : ue = Te.reduce((c, N, B) => (c.push(N), B < Te.length - 1 && c.push(", "), c), []) : ue = Ve);
|
|
2399
|
+
let ze = Y;
|
|
2400
|
+
!l && A && L && (ze = Q.clientWidth);
|
|
2401
|
+
let Ne;
|
|
2402
|
+
typeof J < "u" ? Ne = J : Ne = S ? null : 0;
|
|
2403
|
+
const Ue = V.id || (E ? `mui-component-select-${E}` : void 0), xe = i({}, o, {
|
|
2404
|
+
variant: X,
|
|
2405
|
+
value: v,
|
|
2406
|
+
open: Oe
|
|
2407
|
+
}), Se = Yo(xe);
|
|
2408
|
+
return /* @__PURE__ */ ve(s.Fragment, {
|
|
2409
|
+
children: [/* @__PURE__ */ x(qo, i({
|
|
2410
|
+
ref: ae,
|
|
2411
|
+
tabIndex: Ne,
|
|
2160
2412
|
role: "button",
|
|
2161
|
-
"aria-disabled":
|
|
2162
|
-
"aria-expanded":
|
|
2413
|
+
"aria-disabled": S ? "true" : void 0,
|
|
2414
|
+
"aria-expanded": Oe ? "true" : "false",
|
|
2163
2415
|
"aria-haspopup": "listbox",
|
|
2164
|
-
"aria-label":
|
|
2165
|
-
"aria-labelledby": [
|
|
2166
|
-
"aria-describedby":
|
|
2167
|
-
onKeyDown:
|
|
2168
|
-
onMouseDown:
|
|
2169
|
-
onBlur:
|
|
2170
|
-
onFocus:
|
|
2171
|
-
},
|
|
2172
|
-
ownerState:
|
|
2173
|
-
className:
|
|
2174
|
-
id:
|
|
2175
|
-
children:
|
|
2416
|
+
"aria-label": u,
|
|
2417
|
+
"aria-labelledby": [O, Ue].filter(Boolean).join(" ") || void 0,
|
|
2418
|
+
"aria-describedby": r,
|
|
2419
|
+
onKeyDown: Fn,
|
|
2420
|
+
onMouseDown: S || _ ? null : G,
|
|
2421
|
+
onBlur: $n,
|
|
2422
|
+
onFocus: $
|
|
2423
|
+
}, V, {
|
|
2424
|
+
ownerState: xe,
|
|
2425
|
+
className: Z(V.className, Se.select, m),
|
|
2426
|
+
id: Ue,
|
|
2427
|
+
children: Xo(ue) ? (
|
|
2176
2428
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
2177
|
-
|
|
2429
|
+
on || (on = /* @__PURE__ */ x("span", {
|
|
2178
2430
|
className: "notranslate",
|
|
2179
2431
|
children: ""
|
|
2180
2432
|
}))
|
|
2181
|
-
) :
|
|
2182
|
-
})), /* @__PURE__ */
|
|
2183
|
-
value: Array.isArray(
|
|
2184
|
-
name:
|
|
2185
|
-
ref:
|
|
2433
|
+
) : ue
|
|
2434
|
+
})), /* @__PURE__ */ x(Go, i({
|
|
2435
|
+
value: Array.isArray(v) ? v.join(",") : v,
|
|
2436
|
+
name: E,
|
|
2437
|
+
ref: R,
|
|
2186
2438
|
"aria-hidden": !0,
|
|
2187
|
-
onChange:
|
|
2439
|
+
onChange: Sn,
|
|
2188
2440
|
tabIndex: -1,
|
|
2189
|
-
disabled:
|
|
2190
|
-
className:
|
|
2191
|
-
autoFocus:
|
|
2192
|
-
ownerState:
|
|
2193
|
-
},
|
|
2194
|
-
as:
|
|
2195
|
-
className:
|
|
2196
|
-
ownerState:
|
|
2197
|
-
}), /* @__PURE__ */
|
|
2198
|
-
id: `menu-${
|
|
2199
|
-
anchorEl:
|
|
2200
|
-
open:
|
|
2201
|
-
onClose:
|
|
2441
|
+
disabled: S,
|
|
2442
|
+
className: Se.nativeInput,
|
|
2443
|
+
autoFocus: a,
|
|
2444
|
+
ownerState: xe
|
|
2445
|
+
}, g)), /* @__PURE__ */ x(Ko, {
|
|
2446
|
+
as: b,
|
|
2447
|
+
className: Se.icon,
|
|
2448
|
+
ownerState: xe
|
|
2449
|
+
}), /* @__PURE__ */ x(Cn, i({
|
|
2450
|
+
id: `menu-${E || ""}`,
|
|
2451
|
+
anchorEl: Q,
|
|
2452
|
+
open: Oe,
|
|
2453
|
+
onClose: Nn,
|
|
2202
2454
|
anchorOrigin: {
|
|
2203
2455
|
vertical: "bottom",
|
|
2204
2456
|
horizontal: "center"
|
|
@@ -2207,22 +2459,22 @@ const $t = (n) => {
|
|
|
2207
2459
|
vertical: "top",
|
|
2208
2460
|
horizontal: "center"
|
|
2209
2461
|
}
|
|
2210
|
-
},
|
|
2211
|
-
MenuListProps:
|
|
2212
|
-
"aria-labelledby":
|
|
2462
|
+
}, F, {
|
|
2463
|
+
MenuListProps: i({
|
|
2464
|
+
"aria-labelledby": O,
|
|
2213
2465
|
role: "listbox",
|
|
2214
2466
|
disableListWrap: !0
|
|
2215
|
-
},
|
|
2216
|
-
PaperProps:
|
|
2217
|
-
style:
|
|
2218
|
-
minWidth:
|
|
2219
|
-
},
|
|
2467
|
+
}, F.MenuListProps),
|
|
2468
|
+
PaperProps: i({}, F.PaperProps, {
|
|
2469
|
+
style: i({
|
|
2470
|
+
minWidth: ze
|
|
2471
|
+
}, F.PaperProps != null ? F.PaperProps.style : null)
|
|
2220
2472
|
}),
|
|
2221
|
-
children:
|
|
2473
|
+
children: Dn
|
|
2222
2474
|
}))]
|
|
2223
2475
|
});
|
|
2224
2476
|
});
|
|
2225
|
-
process.env.NODE_ENV !== "production" && (
|
|
2477
|
+
process.env.NODE_ENV !== "production" && (wn.propTypes = {
|
|
2226
2478
|
/**
|
|
2227
2479
|
* @ignore
|
|
2228
2480
|
*/
|
|
@@ -2279,7 +2531,7 @@ process.env.NODE_ENV !== "production" && (En.propTypes = {
|
|
|
2279
2531
|
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
2280
2532
|
* Equivalent to `ref`
|
|
2281
2533
|
*/
|
|
2282
|
-
inputRef:
|
|
2534
|
+
inputRef: pe,
|
|
2283
2535
|
/**
|
|
2284
2536
|
* The ID of an element that acts as an additional label. The Select will
|
|
2285
2537
|
* be labelled by the additional label and the selected value.
|
|
@@ -2363,101 +2615,101 @@ process.env.NODE_ENV !== "production" && (En.propTypes = {
|
|
|
2363
2615
|
*/
|
|
2364
2616
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
2365
2617
|
});
|
|
2366
|
-
const
|
|
2618
|
+
const Jo = Jn(/* @__PURE__ */ x("path", {
|
|
2367
2619
|
d: "M7 10l5 5 5-5z"
|
|
2368
2620
|
}), "ArrowDropDown");
|
|
2369
|
-
var
|
|
2370
|
-
const
|
|
2621
|
+
var rn, sn;
|
|
2622
|
+
const Qo = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"], Zo = (n) => {
|
|
2371
2623
|
const {
|
|
2372
|
-
classes:
|
|
2624
|
+
classes: o
|
|
2373
2625
|
} = n;
|
|
2374
|
-
return
|
|
2375
|
-
},
|
|
2626
|
+
return o;
|
|
2627
|
+
}, Ae = {
|
|
2376
2628
|
name: "MuiSelect",
|
|
2377
|
-
overridesResolver: (n,
|
|
2378
|
-
shouldForwardProp: (n) =>
|
|
2629
|
+
overridesResolver: (n, o) => o.root,
|
|
2630
|
+
shouldForwardProp: (n) => ge(n) && n !== "variant",
|
|
2379
2631
|
slot: "Root"
|
|
2380
|
-
},
|
|
2381
|
-
const
|
|
2632
|
+
}, et = j(mn, Ae)(""), nt = j(Ie, Ae)(""), ot = j(Pe, Ae)(""), Be = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
2633
|
+
const r = se({
|
|
2382
2634
|
name: "MuiSelect",
|
|
2383
|
-
props:
|
|
2635
|
+
props: o
|
|
2384
2636
|
}), {
|
|
2385
|
-
autoWidth:
|
|
2386
|
-
children:
|
|
2387
|
-
classes:
|
|
2637
|
+
autoWidth: u = !1,
|
|
2638
|
+
children: a,
|
|
2639
|
+
classes: l = {},
|
|
2388
2640
|
className: p,
|
|
2389
|
-
defaultOpen:
|
|
2390
|
-
displayEmpty:
|
|
2391
|
-
IconComponent:
|
|
2392
|
-
id:
|
|
2641
|
+
defaultOpen: m = !1,
|
|
2642
|
+
displayEmpty: h = !1,
|
|
2643
|
+
IconComponent: I = Jo,
|
|
2644
|
+
id: S,
|
|
2393
2645
|
input: M,
|
|
2394
|
-
inputProps:
|
|
2395
|
-
label:
|
|
2396
|
-
labelId:
|
|
2397
|
-
MenuProps:
|
|
2398
|
-
multiple:
|
|
2399
|
-
native:
|
|
2400
|
-
onClose:
|
|
2401
|
-
onOpen:
|
|
2402
|
-
open:
|
|
2403
|
-
renderValue:
|
|
2404
|
-
SelectDisplayProps:
|
|
2405
|
-
variant:
|
|
2406
|
-
} =
|
|
2407
|
-
props:
|
|
2408
|
-
muiFormControl:
|
|
2646
|
+
inputProps: b,
|
|
2647
|
+
label: C,
|
|
2648
|
+
labelId: O,
|
|
2649
|
+
MenuProps: F,
|
|
2650
|
+
multiple: T = !1,
|
|
2651
|
+
native: E = !1,
|
|
2652
|
+
onClose: f,
|
|
2653
|
+
onOpen: d,
|
|
2654
|
+
open: P,
|
|
2655
|
+
renderValue: $,
|
|
2656
|
+
SelectDisplayProps: y,
|
|
2657
|
+
variant: k = "outlined"
|
|
2658
|
+
} = r, _ = H(r, Qo), D = E ? In : wn, V = je(), q = Le({
|
|
2659
|
+
props: r,
|
|
2660
|
+
muiFormControl: V,
|
|
2409
2661
|
states: ["variant"]
|
|
2410
|
-
}).variant ||
|
|
2411
|
-
standard:
|
|
2412
|
-
outlined: /* @__PURE__ */
|
|
2413
|
-
label:
|
|
2662
|
+
}).variant || k, X = M || {
|
|
2663
|
+
standard: rn || (rn = /* @__PURE__ */ x(et, {})),
|
|
2664
|
+
outlined: /* @__PURE__ */ x(nt, {
|
|
2665
|
+
label: C
|
|
2414
2666
|
}),
|
|
2415
|
-
filled:
|
|
2416
|
-
}[
|
|
2417
|
-
variant:
|
|
2418
|
-
classes:
|
|
2419
|
-
}),
|
|
2420
|
-
return /* @__PURE__ */
|
|
2421
|
-
children: /* @__PURE__ */
|
|
2667
|
+
filled: sn || (sn = /* @__PURE__ */ x(ot, {}))
|
|
2668
|
+
}[q], g = i({}, r, {
|
|
2669
|
+
variant: q,
|
|
2670
|
+
classes: l
|
|
2671
|
+
}), v = Zo(g), z = ye(t, X.ref);
|
|
2672
|
+
return /* @__PURE__ */ x(s.Fragment, {
|
|
2673
|
+
children: /* @__PURE__ */ s.cloneElement(X, i({
|
|
2422
2674
|
// Most of the logic is implemented in `SelectInput`.
|
|
2423
2675
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
2424
2676
|
inputComponent: D,
|
|
2425
|
-
inputProps:
|
|
2426
|
-
children:
|
|
2427
|
-
IconComponent:
|
|
2428
|
-
variant:
|
|
2677
|
+
inputProps: i({
|
|
2678
|
+
children: a,
|
|
2679
|
+
IconComponent: I,
|
|
2680
|
+
variant: q,
|
|
2429
2681
|
type: void 0,
|
|
2430
2682
|
// We render a select. We can ignore the type provided by the `Input`.
|
|
2431
|
-
multiple:
|
|
2432
|
-
},
|
|
2433
|
-
id:
|
|
2683
|
+
multiple: T
|
|
2684
|
+
}, E ? {
|
|
2685
|
+
id: S
|
|
2434
2686
|
} : {
|
|
2435
|
-
autoWidth:
|
|
2436
|
-
defaultOpen:
|
|
2437
|
-
displayEmpty:
|
|
2438
|
-
labelId:
|
|
2439
|
-
MenuProps:
|
|
2440
|
-
onClose:
|
|
2441
|
-
onOpen:
|
|
2442
|
-
open:
|
|
2443
|
-
renderValue:
|
|
2444
|
-
SelectDisplayProps:
|
|
2445
|
-
id:
|
|
2446
|
-
},
|
|
2447
|
-
},
|
|
2448
|
-
classes:
|
|
2687
|
+
autoWidth: u,
|
|
2688
|
+
defaultOpen: m,
|
|
2689
|
+
displayEmpty: h,
|
|
2690
|
+
labelId: O,
|
|
2691
|
+
MenuProps: F,
|
|
2692
|
+
onClose: f,
|
|
2693
|
+
onOpen: d,
|
|
2694
|
+
open: P,
|
|
2695
|
+
renderValue: $,
|
|
2696
|
+
SelectDisplayProps: i({
|
|
2697
|
+
id: S
|
|
2698
|
+
}, y)
|
|
2699
|
+
}, b, {
|
|
2700
|
+
classes: b ? an(v, b.classes) : v
|
|
2449
2701
|
}, M ? M.props.inputProps : {})
|
|
2450
|
-
},
|
|
2702
|
+
}, T && E && q === "outlined" ? {
|
|
2451
2703
|
notched: !0
|
|
2452
2704
|
} : {}, {
|
|
2453
|
-
ref:
|
|
2454
|
-
className:
|
|
2705
|
+
ref: z,
|
|
2706
|
+
className: Z(X.props.className, p)
|
|
2455
2707
|
}, !M && {
|
|
2456
|
-
variant:
|
|
2457
|
-
},
|
|
2708
|
+
variant: q
|
|
2709
|
+
}, _))
|
|
2458
2710
|
});
|
|
2459
2711
|
});
|
|
2460
|
-
process.env.NODE_ENV !== "production" && (
|
|
2712
|
+
process.env.NODE_ENV !== "production" && (Be.propTypes = {
|
|
2461
2713
|
// ----------------------------- Warning --------------------------------
|
|
2462
2714
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2463
2715
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -2604,10 +2856,306 @@ process.env.NODE_ENV !== "production" && (Cn.propTypes = {
|
|
|
2604
2856
|
*/
|
|
2605
2857
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
2606
2858
|
});
|
|
2607
|
-
|
|
2859
|
+
Be.muiName = "Select";
|
|
2860
|
+
function tt(n) {
|
|
2861
|
+
return ne("MuiTextField", n);
|
|
2862
|
+
}
|
|
2863
|
+
ee("MuiTextField", ["root"]);
|
|
2864
|
+
const rt = ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"], it = {
|
|
2865
|
+
standard: mn,
|
|
2866
|
+
filled: Pe,
|
|
2867
|
+
outlined: Ie
|
|
2868
|
+
}, st = (n) => {
|
|
2869
|
+
const {
|
|
2870
|
+
classes: o
|
|
2871
|
+
} = n;
|
|
2872
|
+
return oe({
|
|
2873
|
+
root: ["root"]
|
|
2874
|
+
}, tt, o);
|
|
2875
|
+
}, at = j(_n, {
|
|
2876
|
+
name: "MuiTextField",
|
|
2877
|
+
slot: "Root",
|
|
2878
|
+
overridesResolver: (n, o) => o.root
|
|
2879
|
+
})({}), lt = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
2880
|
+
const r = se({
|
|
2881
|
+
props: o,
|
|
2882
|
+
name: "MuiTextField"
|
|
2883
|
+
}), {
|
|
2884
|
+
autoComplete: u,
|
|
2885
|
+
autoFocus: a = !1,
|
|
2886
|
+
children: l,
|
|
2887
|
+
className: p,
|
|
2888
|
+
color: m = "primary",
|
|
2889
|
+
defaultValue: h,
|
|
2890
|
+
disabled: I = !1,
|
|
2891
|
+
error: S = !1,
|
|
2892
|
+
FormHelperTextProps: M,
|
|
2893
|
+
fullWidth: b = !1,
|
|
2894
|
+
helperText: C,
|
|
2895
|
+
id: O,
|
|
2896
|
+
InputLabelProps: F,
|
|
2897
|
+
inputProps: T,
|
|
2898
|
+
InputProps: E,
|
|
2899
|
+
inputRef: f,
|
|
2900
|
+
label: d,
|
|
2901
|
+
maxRows: P,
|
|
2902
|
+
minRows: $,
|
|
2903
|
+
multiline: y = !1,
|
|
2904
|
+
name: k,
|
|
2905
|
+
onBlur: _,
|
|
2906
|
+
onChange: D,
|
|
2907
|
+
onFocus: V,
|
|
2908
|
+
placeholder: J,
|
|
2909
|
+
required: q = !1,
|
|
2910
|
+
rows: X,
|
|
2911
|
+
select: g = !1,
|
|
2912
|
+
SelectProps: v,
|
|
2913
|
+
type: z,
|
|
2914
|
+
value: K,
|
|
2915
|
+
variant: W = "outlined"
|
|
2916
|
+
} = r, R = H(r, rt), w = i({}, r, {
|
|
2917
|
+
autoFocus: a,
|
|
2918
|
+
color: m,
|
|
2919
|
+
disabled: I,
|
|
2920
|
+
error: S,
|
|
2921
|
+
fullWidth: b,
|
|
2922
|
+
multiline: y,
|
|
2923
|
+
required: q,
|
|
2924
|
+
select: g,
|
|
2925
|
+
variant: W
|
|
2926
|
+
}), L = st(w);
|
|
2927
|
+
process.env.NODE_ENV !== "production" && g && !l && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
|
|
2928
|
+
const U = {};
|
|
2929
|
+
W === "outlined" && (F && typeof F.shrink < "u" && (U.notched = F.shrink), U.label = d), g && ((!v || !v.native) && (U.id = void 0), U["aria-describedby"] = void 0);
|
|
2930
|
+
const A = Wn(O), Y = C && A ? `${A}-helper-text` : void 0, te = d && A ? `${A}-label` : void 0, ce = it[W], ae = /* @__PURE__ */ x(ce, i({
|
|
2931
|
+
"aria-describedby": Y,
|
|
2932
|
+
autoComplete: u,
|
|
2933
|
+
autoFocus: a,
|
|
2934
|
+
defaultValue: h,
|
|
2935
|
+
fullWidth: b,
|
|
2936
|
+
multiline: y,
|
|
2937
|
+
name: k,
|
|
2938
|
+
rows: X,
|
|
2939
|
+
maxRows: P,
|
|
2940
|
+
minRows: $,
|
|
2941
|
+
type: z,
|
|
2942
|
+
value: K,
|
|
2943
|
+
id: A,
|
|
2944
|
+
inputRef: f,
|
|
2945
|
+
onBlur: _,
|
|
2946
|
+
onChange: D,
|
|
2947
|
+
onFocus: V,
|
|
2948
|
+
placeholder: J,
|
|
2949
|
+
inputProps: T
|
|
2950
|
+
}, U, E));
|
|
2951
|
+
return /* @__PURE__ */ ve(at, i({
|
|
2952
|
+
className: Z(L.root, p),
|
|
2953
|
+
disabled: I,
|
|
2954
|
+
error: S,
|
|
2955
|
+
fullWidth: b,
|
|
2956
|
+
ref: t,
|
|
2957
|
+
required: q,
|
|
2958
|
+
color: m,
|
|
2959
|
+
variant: W,
|
|
2960
|
+
ownerState: w
|
|
2961
|
+
}, R, {
|
|
2962
|
+
children: [d != null && d !== "" && /* @__PURE__ */ x(An, i({
|
|
2963
|
+
htmlFor: A,
|
|
2964
|
+
id: te
|
|
2965
|
+
}, F, {
|
|
2966
|
+
children: d
|
|
2967
|
+
})), g ? /* @__PURE__ */ x(Be, i({
|
|
2968
|
+
"aria-describedby": Y,
|
|
2969
|
+
id: A,
|
|
2970
|
+
labelId: te,
|
|
2971
|
+
value: K,
|
|
2972
|
+
input: ae
|
|
2973
|
+
}, v, {
|
|
2974
|
+
children: l
|
|
2975
|
+
})) : ae, C && /* @__PURE__ */ x(On, i({
|
|
2976
|
+
id: Y
|
|
2977
|
+
}, M, {
|
|
2978
|
+
children: C
|
|
2979
|
+
}))]
|
|
2980
|
+
}));
|
|
2981
|
+
});
|
|
2982
|
+
process.env.NODE_ENV !== "production" && (lt.propTypes = {
|
|
2983
|
+
// ----------------------------- Warning --------------------------------
|
|
2984
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
2985
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
2986
|
+
// ----------------------------------------------------------------------
|
|
2987
|
+
/**
|
|
2988
|
+
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
2989
|
+
* The name can be confusing, as it's more like an autofill.
|
|
2990
|
+
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
2991
|
+
*/
|
|
2992
|
+
autoComplete: e.string,
|
|
2993
|
+
/**
|
|
2994
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
2995
|
+
* @default false
|
|
2996
|
+
*/
|
|
2997
|
+
autoFocus: e.bool,
|
|
2998
|
+
/**
|
|
2999
|
+
* @ignore
|
|
3000
|
+
*/
|
|
3001
|
+
children: e.node,
|
|
3002
|
+
/**
|
|
3003
|
+
* Override or extend the styles applied to the component.
|
|
3004
|
+
*/
|
|
3005
|
+
classes: e.object,
|
|
3006
|
+
/**
|
|
3007
|
+
* @ignore
|
|
3008
|
+
*/
|
|
3009
|
+
className: e.string,
|
|
3010
|
+
/**
|
|
3011
|
+
* The color of the component.
|
|
3012
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
3013
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
3014
|
+
* @default 'primary'
|
|
3015
|
+
*/
|
|
3016
|
+
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
3017
|
+
/**
|
|
3018
|
+
* The default value. Use when the component is not controlled.
|
|
3019
|
+
*/
|
|
3020
|
+
defaultValue: e.any,
|
|
3021
|
+
/**
|
|
3022
|
+
* If `true`, the component is disabled.
|
|
3023
|
+
* @default false
|
|
3024
|
+
*/
|
|
3025
|
+
disabled: e.bool,
|
|
3026
|
+
/**
|
|
3027
|
+
* If `true`, the label is displayed in an error state.
|
|
3028
|
+
* @default false
|
|
3029
|
+
*/
|
|
3030
|
+
error: e.bool,
|
|
3031
|
+
/**
|
|
3032
|
+
* Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
|
|
3033
|
+
*/
|
|
3034
|
+
FormHelperTextProps: e.object,
|
|
3035
|
+
/**
|
|
3036
|
+
* If `true`, the input will take up the full width of its container.
|
|
3037
|
+
* @default false
|
|
3038
|
+
*/
|
|
3039
|
+
fullWidth: e.bool,
|
|
3040
|
+
/**
|
|
3041
|
+
* The helper text content.
|
|
3042
|
+
*/
|
|
3043
|
+
helperText: e.node,
|
|
3044
|
+
/**
|
|
3045
|
+
* The id of the `input` element.
|
|
3046
|
+
* Use this prop to make `label` and `helperText` accessible for screen readers.
|
|
3047
|
+
*/
|
|
3048
|
+
id: e.string,
|
|
3049
|
+
/**
|
|
3050
|
+
* Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
|
|
3051
|
+
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
3052
|
+
*/
|
|
3053
|
+
InputLabelProps: e.object,
|
|
3054
|
+
/**
|
|
3055
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
3056
|
+
*/
|
|
3057
|
+
inputProps: e.object,
|
|
3058
|
+
/**
|
|
3059
|
+
* Props applied to the Input element.
|
|
3060
|
+
* It will be a [`FilledInput`](/material-ui/api/filled-input/),
|
|
3061
|
+
* [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
|
|
3062
|
+
* component depending on the `variant` prop value.
|
|
3063
|
+
*/
|
|
3064
|
+
InputProps: e.object,
|
|
3065
|
+
/**
|
|
3066
|
+
* Pass a ref to the `input` element.
|
|
3067
|
+
*/
|
|
3068
|
+
inputRef: pe,
|
|
3069
|
+
/**
|
|
3070
|
+
* The label content.
|
|
3071
|
+
*/
|
|
3072
|
+
label: e.node,
|
|
3073
|
+
/**
|
|
3074
|
+
* If `dense` or `normal`, will adjust vertical spacing of this and contained components.
|
|
3075
|
+
* @default 'none'
|
|
3076
|
+
*/
|
|
3077
|
+
margin: e.oneOf(["dense", "none", "normal"]),
|
|
3078
|
+
/**
|
|
3079
|
+
* Maximum number of rows to display when multiline option is set to true.
|
|
3080
|
+
*/
|
|
3081
|
+
maxRows: e.oneOfType([e.number, e.string]),
|
|
3082
|
+
/**
|
|
3083
|
+
* Minimum number of rows to display when multiline option is set to true.
|
|
3084
|
+
*/
|
|
3085
|
+
minRows: e.oneOfType([e.number, e.string]),
|
|
3086
|
+
/**
|
|
3087
|
+
* If `true`, a `textarea` element is rendered instead of an input.
|
|
3088
|
+
* @default false
|
|
3089
|
+
*/
|
|
3090
|
+
multiline: e.bool,
|
|
3091
|
+
/**
|
|
3092
|
+
* Name attribute of the `input` element.
|
|
3093
|
+
*/
|
|
3094
|
+
name: e.string,
|
|
3095
|
+
/**
|
|
3096
|
+
* @ignore
|
|
3097
|
+
*/
|
|
3098
|
+
onBlur: e.func,
|
|
3099
|
+
/**
|
|
3100
|
+
* Callback fired when the value is changed.
|
|
3101
|
+
*
|
|
3102
|
+
* @param {object} event The event source of the callback.
|
|
3103
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
3104
|
+
*/
|
|
3105
|
+
onChange: e.func,
|
|
3106
|
+
/**
|
|
3107
|
+
* @ignore
|
|
3108
|
+
*/
|
|
3109
|
+
onFocus: e.func,
|
|
3110
|
+
/**
|
|
3111
|
+
* The short hint displayed in the `input` before the user enters a value.
|
|
3112
|
+
*/
|
|
3113
|
+
placeholder: e.string,
|
|
3114
|
+
/**
|
|
3115
|
+
* If `true`, the label is displayed as required and the `input` element is required.
|
|
3116
|
+
* @default false
|
|
3117
|
+
*/
|
|
3118
|
+
required: e.bool,
|
|
3119
|
+
/**
|
|
3120
|
+
* Number of rows to display when multiline option is set to true.
|
|
3121
|
+
*/
|
|
3122
|
+
rows: e.oneOfType([e.number, e.string]),
|
|
3123
|
+
/**
|
|
3124
|
+
* Render a [`Select`](/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.
|
|
3125
|
+
* If this option is set you must pass the options of the select as children.
|
|
3126
|
+
* @default false
|
|
3127
|
+
*/
|
|
3128
|
+
select: e.bool,
|
|
3129
|
+
/**
|
|
3130
|
+
* Props applied to the [`Select`](/material-ui/api/select/) element.
|
|
3131
|
+
*/
|
|
3132
|
+
SelectProps: e.object,
|
|
3133
|
+
/**
|
|
3134
|
+
* The size of the component.
|
|
3135
|
+
*/
|
|
3136
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
3137
|
+
/**
|
|
3138
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
3139
|
+
*/
|
|
3140
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
3141
|
+
/**
|
|
3142
|
+
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
3143
|
+
*/
|
|
3144
|
+
type: e.string,
|
|
3145
|
+
/**
|
|
3146
|
+
* The value of the `input` element, required for a controlled component.
|
|
3147
|
+
*/
|
|
3148
|
+
value: e.any,
|
|
3149
|
+
/**
|
|
3150
|
+
* The variant to use.
|
|
3151
|
+
* @default 'outlined'
|
|
3152
|
+
*/
|
|
3153
|
+
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
3154
|
+
});
|
|
2608
3155
|
export {
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
3156
|
+
_e as G,
|
|
3157
|
+
gn as L,
|
|
3158
|
+
Be as S,
|
|
3159
|
+
lt as T,
|
|
3160
|
+
vn as a
|
|
2613
3161
|
};
|