@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,24 +1,21 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import * as
|
|
1
|
+
import { _ as Z, a } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import * as r from "react";
|
|
3
3
|
import { P as e } from "./index-C__OZmYy.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { a as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import { i as fe } from "./isMuiElement-CxT3_ACP.js";
|
|
17
|
-
const so = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
18
|
-
function re(o) {
|
|
4
|
+
import { e as Ke, g as ue, b as de, s as V, u as ce, c as le, a as pe, f as Ge, r as Xe, h as Ye } from "./styled-Bsjp3kFh.js";
|
|
5
|
+
import { u as Ze, f as Je, a as Oe } from "./InputLabel-rEwwnD4_.js";
|
|
6
|
+
import { jsxs as ae, jsx as z } from "react/jsx-runtime";
|
|
7
|
+
import { c as J } from "./capitalize-quqpGCFu.js";
|
|
8
|
+
import { a as Te, u as Ie, e as Qe, r as Ee } from "./ButtonBase-sObABYY2.js";
|
|
9
|
+
import * as eo from "react-dom";
|
|
10
|
+
import { a as we } from "./useId-B4-oF9Mq.js";
|
|
11
|
+
import { d as oo, i as ie } from "./isMuiElement-BkJ72LB3.js";
|
|
12
|
+
import { i as Se } from "./Modal-DlB6GH-f.js";
|
|
13
|
+
import { GlobalStyles as no } from "@mui/system";
|
|
14
|
+
const to = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15
|
+
function X(o) {
|
|
19
16
|
return parseInt(o, 10) || 0;
|
|
20
17
|
}
|
|
21
|
-
const
|
|
18
|
+
const ro = {
|
|
22
19
|
shadow: {
|
|
23
20
|
// Visibility needed to hide the extra text area on iPads
|
|
24
21
|
visibility: "hidden",
|
|
@@ -33,100 +30,100 @@ const io = {
|
|
|
33
30
|
transform: "translateZ(0)"
|
|
34
31
|
}
|
|
35
32
|
};
|
|
36
|
-
function
|
|
33
|
+
function Re(o) {
|
|
37
34
|
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
|
|
38
35
|
}
|
|
39
|
-
const
|
|
36
|
+
const Ne = /* @__PURE__ */ r.forwardRef(function(n, t) {
|
|
40
37
|
const {
|
|
41
|
-
onChange:
|
|
38
|
+
onChange: i,
|
|
42
39
|
maxRows: s,
|
|
43
|
-
minRows:
|
|
44
|
-
style:
|
|
45
|
-
value:
|
|
46
|
-
} = n,
|
|
47
|
-
current:
|
|
48
|
-
} =
|
|
40
|
+
minRows: f = 1,
|
|
41
|
+
style: x,
|
|
42
|
+
value: w
|
|
43
|
+
} = n, O = Z(n, to), {
|
|
44
|
+
current: S
|
|
45
|
+
} = r.useRef(w != null), y = r.useRef(null), I = Te(t, y), R = r.useRef(null), v = r.useRef(0), [g, T] = r.useState({
|
|
49
46
|
outerHeightStyle: 0
|
|
50
|
-
}), N =
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
47
|
+
}), N = r.useCallback(() => {
|
|
48
|
+
const l = y.current, p = we(l).getComputedStyle(l);
|
|
49
|
+
if (p.width === "0px")
|
|
53
50
|
return {
|
|
54
51
|
outerHeightStyle: 0
|
|
55
52
|
};
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
` && (
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
let
|
|
63
|
-
|
|
64
|
-
const W =
|
|
53
|
+
const d = R.current;
|
|
54
|
+
d.style.width = p.width, d.value = l.value || n.placeholder || "x", d.value.slice(-1) === `
|
|
55
|
+
` && (d.value += " ");
|
|
56
|
+
const M = p.boxSizing, k = X(p.paddingBottom) + X(p.paddingTop), A = X(p.borderBottomWidth) + X(p.borderTopWidth), U = d.scrollHeight;
|
|
57
|
+
d.value = "x";
|
|
58
|
+
const C = d.scrollHeight;
|
|
59
|
+
let h = U;
|
|
60
|
+
f && (h = Math.max(Number(f) * C, h)), s && (h = Math.min(Number(s) * C, h)), h = Math.max(h, C);
|
|
61
|
+
const W = h + (M === "border-box" ? k + A : 0), L = Math.abs(h - U) <= 1;
|
|
65
62
|
return {
|
|
66
63
|
outerHeightStyle: W,
|
|
67
|
-
overflow:
|
|
64
|
+
overflow: L
|
|
68
65
|
};
|
|
69
|
-
}, [s,
|
|
66
|
+
}, [s, f, n.placeholder]), B = (l, m) => {
|
|
70
67
|
const {
|
|
71
|
-
outerHeightStyle:
|
|
72
|
-
overflow:
|
|
73
|
-
} =
|
|
74
|
-
return
|
|
75
|
-
overflow:
|
|
76
|
-
outerHeightStyle:
|
|
77
|
-
}) : (process.env.NODE_ENV !== "production" &&
|
|
78
|
-
`)),
|
|
79
|
-
},
|
|
80
|
-
const
|
|
81
|
-
|
|
68
|
+
outerHeightStyle: p,
|
|
69
|
+
overflow: d
|
|
70
|
+
} = m;
|
|
71
|
+
return v.current < 20 && (p > 0 && Math.abs((l.outerHeightStyle || 0) - p) > 1 || l.overflow !== d) ? (v.current += 1, {
|
|
72
|
+
overflow: d,
|
|
73
|
+
outerHeightStyle: p
|
|
74
|
+
}) : (process.env.NODE_ENV !== "production" && v.current === 20 && console.error(["MUI: Too many re-renders. The layout is unstable.", "TextareaAutosize limits the number of renders to prevent an infinite loop."].join(`
|
|
75
|
+
`)), l);
|
|
76
|
+
}, b = r.useCallback(() => {
|
|
77
|
+
const l = N();
|
|
78
|
+
Re(l) || T((m) => B(m, l));
|
|
82
79
|
}, [N]), $ = () => {
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
const l = N();
|
|
81
|
+
Re(l) || eo.flushSync(() => {
|
|
82
|
+
T((m) => B(m, l));
|
|
86
83
|
});
|
|
87
84
|
};
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
85
|
+
r.useEffect(() => {
|
|
86
|
+
const l = oo(() => {
|
|
87
|
+
v.current = 0, y.current && $();
|
|
91
88
|
});
|
|
92
|
-
let
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
|
|
89
|
+
let m;
|
|
90
|
+
const p = y.current, d = we(p);
|
|
91
|
+
return d.addEventListener("resize", l), typeof ResizeObserver < "u" && (m = new ResizeObserver(l), m.observe(p)), () => {
|
|
92
|
+
l.clear(), d.removeEventListener("resize", l), m && m.disconnect();
|
|
96
93
|
};
|
|
97
|
-
}),
|
|
98
|
-
|
|
99
|
-
}),
|
|
100
|
-
|
|
101
|
-
}, [
|
|
102
|
-
const F = (
|
|
103
|
-
|
|
94
|
+
}), Ie(() => {
|
|
95
|
+
b();
|
|
96
|
+
}), r.useEffect(() => {
|
|
97
|
+
v.current = 0;
|
|
98
|
+
}, [w]);
|
|
99
|
+
const F = (l) => {
|
|
100
|
+
v.current = 0, S || b(), i && i(l);
|
|
104
101
|
};
|
|
105
|
-
return /* @__PURE__ */
|
|
106
|
-
children: [/* @__PURE__ */
|
|
107
|
-
value:
|
|
102
|
+
return /* @__PURE__ */ ae(r.Fragment, {
|
|
103
|
+
children: [/* @__PURE__ */ z("textarea", a({
|
|
104
|
+
value: w,
|
|
108
105
|
onChange: F,
|
|
109
|
-
ref:
|
|
110
|
-
rows:
|
|
111
|
-
style:
|
|
112
|
-
height:
|
|
106
|
+
ref: I,
|
|
107
|
+
rows: f,
|
|
108
|
+
style: a({
|
|
109
|
+
height: g.outerHeightStyle,
|
|
113
110
|
// Need a large enough difference to allow scrolling.
|
|
114
111
|
// This prevents infinite rendering loop.
|
|
115
|
-
overflow:
|
|
116
|
-
},
|
|
117
|
-
},
|
|
112
|
+
overflow: g.overflow ? "hidden" : void 0
|
|
113
|
+
}, x)
|
|
114
|
+
}, O)), /* @__PURE__ */ z("textarea", {
|
|
118
115
|
"aria-hidden": !0,
|
|
119
116
|
className: n.className,
|
|
120
117
|
readOnly: !0,
|
|
121
|
-
ref:
|
|
118
|
+
ref: R,
|
|
122
119
|
tabIndex: -1,
|
|
123
|
-
style:
|
|
120
|
+
style: a({}, ro.shadow, x, {
|
|
124
121
|
padding: 0
|
|
125
122
|
})
|
|
126
123
|
})]
|
|
127
124
|
});
|
|
128
125
|
});
|
|
129
|
-
process.env.NODE_ENV !== "production" && (
|
|
126
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
130
127
|
// ----------------------------- Warning --------------------------------
|
|
131
128
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
132
129
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
@@ -161,19 +158,12 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
161
158
|
*/
|
|
162
159
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
163
160
|
});
|
|
164
|
-
function
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
muiFormControl: t
|
|
168
|
-
}) {
|
|
169
|
-
return n.reduce((r, s) => (r[s] = o[s], t && typeof o[s] > "u" && (r[s] = t[s]), r), {});
|
|
170
|
-
}
|
|
171
|
-
function Ae(o) {
|
|
172
|
-
return /* @__PURE__ */ k(ro, i({}, o, {
|
|
173
|
-
defaultTheme: Je
|
|
161
|
+
function Fe(o) {
|
|
162
|
+
return /* @__PURE__ */ z(no, a({}, o, {
|
|
163
|
+
defaultTheme: Ke
|
|
174
164
|
}));
|
|
175
165
|
}
|
|
176
|
-
process.env.NODE_ENV !== "production" && (
|
|
166
|
+
process.env.NODE_ENV !== "production" && (Fe.propTypes = {
|
|
177
167
|
// ----------------------------- Warning --------------------------------
|
|
178
168
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
179
169
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -185,57 +175,57 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
|
|
|
185
175
|
__emotion_styles: e.any.isRequired
|
|
186
176
|
}), e.string, e.bool])
|
|
187
177
|
});
|
|
188
|
-
function
|
|
178
|
+
function xe(o) {
|
|
189
179
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
190
180
|
}
|
|
191
181
|
function Pe(o, n = !1) {
|
|
192
|
-
return o && (
|
|
182
|
+
return o && (xe(o.value) && o.value !== "" || n && xe(o.defaultValue) && o.defaultValue !== "");
|
|
193
183
|
}
|
|
194
|
-
function
|
|
184
|
+
function so(o) {
|
|
195
185
|
return o.startAdornment;
|
|
196
186
|
}
|
|
197
|
-
function
|
|
198
|
-
return
|
|
187
|
+
function io(o) {
|
|
188
|
+
return de("MuiInputBase", o);
|
|
199
189
|
}
|
|
200
|
-
const
|
|
190
|
+
const Y = ue("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), lo = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"], ze = (o, n) => {
|
|
201
191
|
const {
|
|
202
192
|
ownerState: t
|
|
203
193
|
} = o;
|
|
204
|
-
return [n.root, t.formControl && n.formControl, t.startAdornment && n.adornedStart, t.endAdornment && n.adornedEnd, t.error && n.error, t.size === "small" && n.sizeSmall, t.multiline && n.multiline, t.color && n[`color${
|
|
205
|
-
},
|
|
194
|
+
return [n.root, t.formControl && n.formControl, t.startAdornment && n.adornedStart, t.endAdornment && n.adornedEnd, t.error && n.error, t.size === "small" && n.sizeSmall, t.multiline && n.multiline, t.color && n[`color${J(t.color)}`], t.fullWidth && n.fullWidth, t.hiddenLabel && n.hiddenLabel];
|
|
195
|
+
}, Be = (o, n) => {
|
|
206
196
|
const {
|
|
207
197
|
ownerState: t
|
|
208
198
|
} = o;
|
|
209
199
|
return [n.input, t.size === "small" && n.inputSizeSmall, t.multiline && n.inputMultiline, t.type === "search" && n.inputTypeSearch, t.startAdornment && n.inputAdornedStart, t.endAdornment && n.inputAdornedEnd, t.hiddenLabel && n.inputHiddenLabel];
|
|
210
|
-
},
|
|
200
|
+
}, ao = (o) => {
|
|
211
201
|
const {
|
|
212
202
|
classes: n,
|
|
213
203
|
color: t,
|
|
214
|
-
disabled:
|
|
204
|
+
disabled: i,
|
|
215
205
|
error: s,
|
|
216
|
-
endAdornment:
|
|
217
|
-
focused:
|
|
218
|
-
formControl:
|
|
219
|
-
fullWidth:
|
|
220
|
-
hiddenLabel:
|
|
221
|
-
multiline:
|
|
222
|
-
readOnly:
|
|
223
|
-
size:
|
|
224
|
-
startAdornment:
|
|
225
|
-
type:
|
|
226
|
-
} = o,
|
|
227
|
-
root: ["root", `color${
|
|
228
|
-
input: ["input",
|
|
206
|
+
endAdornment: f,
|
|
207
|
+
focused: x,
|
|
208
|
+
formControl: w,
|
|
209
|
+
fullWidth: O,
|
|
210
|
+
hiddenLabel: S,
|
|
211
|
+
multiline: y,
|
|
212
|
+
readOnly: I,
|
|
213
|
+
size: R,
|
|
214
|
+
startAdornment: v,
|
|
215
|
+
type: g
|
|
216
|
+
} = o, T = {
|
|
217
|
+
root: ["root", `color${J(t)}`, i && "disabled", s && "error", O && "fullWidth", x && "focused", w && "formControl", R === "small" && "sizeSmall", y && "multiline", v && "adornedStart", f && "adornedEnd", S && "hiddenLabel", I && "readOnly"],
|
|
218
|
+
input: ["input", i && "disabled", g === "search" && "inputTypeSearch", y && "inputMultiline", R === "small" && "inputSizeSmall", S && "inputHiddenLabel", v && "inputAdornedStart", f && "inputAdornedEnd", I && "readOnly"]
|
|
229
219
|
};
|
|
230
|
-
return
|
|
231
|
-
},
|
|
220
|
+
return pe(T, io, n);
|
|
221
|
+
}, Me = V("div", {
|
|
232
222
|
name: "MuiInputBase",
|
|
233
223
|
slot: "Root",
|
|
234
|
-
overridesResolver:
|
|
224
|
+
overridesResolver: ze
|
|
235
225
|
})(({
|
|
236
226
|
theme: o,
|
|
237
227
|
ownerState: n
|
|
238
|
-
}) =>
|
|
228
|
+
}) => a({}, o.typography.body1, {
|
|
239
229
|
color: (o.vars || o).palette.text.primary,
|
|
240
230
|
lineHeight: "1.4375em",
|
|
241
231
|
// 23px
|
|
@@ -245,25 +235,25 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
245
235
|
cursor: "text",
|
|
246
236
|
display: "inline-flex",
|
|
247
237
|
alignItems: "center",
|
|
248
|
-
[`&.${
|
|
238
|
+
[`&.${Y.disabled}`]: {
|
|
249
239
|
color: (o.vars || o).palette.text.disabled,
|
|
250
240
|
cursor: "default"
|
|
251
241
|
}
|
|
252
|
-
}, n.multiline &&
|
|
242
|
+
}, n.multiline && a({
|
|
253
243
|
padding: "4px 0 5px"
|
|
254
244
|
}, n.size === "small" && {
|
|
255
245
|
paddingTop: 1
|
|
256
246
|
}), n.fullWidth && {
|
|
257
247
|
width: "100%"
|
|
258
|
-
})),
|
|
248
|
+
})), Ae = V("input", {
|
|
259
249
|
name: "MuiInputBase",
|
|
260
250
|
slot: "Input",
|
|
261
|
-
overridesResolver:
|
|
251
|
+
overridesResolver: Be
|
|
262
252
|
})(({
|
|
263
253
|
theme: o,
|
|
264
254
|
ownerState: n
|
|
265
255
|
}) => {
|
|
266
|
-
const t = o.palette.mode === "light",
|
|
256
|
+
const t = o.palette.mode === "light", i = a({
|
|
267
257
|
color: "currentColor"
|
|
268
258
|
}, o.vars ? {
|
|
269
259
|
opacity: o.vars.opacity.inputPlaceholder
|
|
@@ -275,12 +265,12 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
275
265
|
})
|
|
276
266
|
}), s = {
|
|
277
267
|
opacity: "0 !important"
|
|
278
|
-
},
|
|
268
|
+
}, f = o.vars ? {
|
|
279
269
|
opacity: o.vars.opacity.inputPlaceholder
|
|
280
270
|
} : {
|
|
281
271
|
opacity: t ? 0.42 : 0.5
|
|
282
272
|
};
|
|
283
|
-
return
|
|
273
|
+
return a({
|
|
284
274
|
font: "inherit",
|
|
285
275
|
letterSpacing: "inherit",
|
|
286
276
|
color: "currentColor",
|
|
@@ -300,12 +290,12 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
300
290
|
// Fix IE11 width issue
|
|
301
291
|
animationName: "mui-auto-fill-cancel",
|
|
302
292
|
animationDuration: "10ms",
|
|
303
|
-
"&::-webkit-input-placeholder":
|
|
304
|
-
"&::-moz-placeholder":
|
|
293
|
+
"&::-webkit-input-placeholder": i,
|
|
294
|
+
"&::-moz-placeholder": i,
|
|
305
295
|
// Firefox 19+
|
|
306
|
-
"&:-ms-input-placeholder":
|
|
296
|
+
"&:-ms-input-placeholder": i,
|
|
307
297
|
// IE11
|
|
308
|
-
"&::-ms-input-placeholder":
|
|
298
|
+
"&::-ms-input-placeholder": i,
|
|
309
299
|
// Edge
|
|
310
300
|
"&:focus": {
|
|
311
301
|
outline: 0
|
|
@@ -319,7 +309,7 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
319
309
|
WebkitAppearance: "none"
|
|
320
310
|
},
|
|
321
311
|
// Show and hide the placeholder logic
|
|
322
|
-
[`label[data-shrink=false] + .${
|
|
312
|
+
[`label[data-shrink=false] + .${Y.formControl} &`]: {
|
|
323
313
|
"&::-webkit-input-placeholder": s,
|
|
324
314
|
"&::-moz-placeholder": s,
|
|
325
315
|
// Firefox 19+
|
|
@@ -327,15 +317,15 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
327
317
|
// IE11
|
|
328
318
|
"&::-ms-input-placeholder": s,
|
|
329
319
|
// Edge
|
|
330
|
-
"&:focus::-webkit-input-placeholder":
|
|
331
|
-
"&:focus::-moz-placeholder":
|
|
320
|
+
"&:focus::-webkit-input-placeholder": f,
|
|
321
|
+
"&:focus::-moz-placeholder": f,
|
|
332
322
|
// Firefox 19+
|
|
333
|
-
"&:focus:-ms-input-placeholder":
|
|
323
|
+
"&:focus:-ms-input-placeholder": f,
|
|
334
324
|
// IE11
|
|
335
|
-
"&:focus::-ms-input-placeholder":
|
|
325
|
+
"&:focus::-ms-input-placeholder": f
|
|
336
326
|
// Edge
|
|
337
327
|
},
|
|
338
|
-
[`&.${
|
|
328
|
+
[`&.${Y.disabled}`]: {
|
|
339
329
|
opacity: 1,
|
|
340
330
|
// Reset iOS opacity
|
|
341
331
|
WebkitTextFillColor: (o.vars || o).palette.text.disabled
|
|
@@ -356,7 +346,7 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
356
346
|
// Improve type search style.
|
|
357
347
|
MozAppearance: "textfield"
|
|
358
348
|
});
|
|
359
|
-
}),
|
|
349
|
+
}), uo = /* @__PURE__ */ z(Fe, {
|
|
360
350
|
styles: {
|
|
361
351
|
"@keyframes mui-auto-fill": {
|
|
362
352
|
from: {
|
|
@@ -369,175 +359,175 @@ const se = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
369
359
|
}
|
|
370
360
|
}
|
|
371
361
|
}
|
|
372
|
-
}),
|
|
373
|
-
var
|
|
374
|
-
const s =
|
|
362
|
+
}), We = /* @__PURE__ */ r.forwardRef(function(n, t) {
|
|
363
|
+
var i;
|
|
364
|
+
const s = ce({
|
|
375
365
|
props: n,
|
|
376
366
|
name: "MuiInputBase"
|
|
377
367
|
}), {
|
|
378
|
-
"aria-describedby":
|
|
379
|
-
autoComplete:
|
|
380
|
-
autoFocus:
|
|
381
|
-
className:
|
|
382
|
-
components:
|
|
383
|
-
componentsProps:
|
|
384
|
-
defaultValue:
|
|
385
|
-
disabled:
|
|
386
|
-
disableInjectingGlobalStyles:
|
|
387
|
-
endAdornment:
|
|
388
|
-
fullWidth:
|
|
368
|
+
"aria-describedby": f,
|
|
369
|
+
autoComplete: x,
|
|
370
|
+
autoFocus: w,
|
|
371
|
+
className: O,
|
|
372
|
+
components: S = {},
|
|
373
|
+
componentsProps: y = {},
|
|
374
|
+
defaultValue: I,
|
|
375
|
+
disabled: R,
|
|
376
|
+
disableInjectingGlobalStyles: v,
|
|
377
|
+
endAdornment: g,
|
|
378
|
+
fullWidth: T = !1,
|
|
389
379
|
id: N,
|
|
390
|
-
inputComponent:
|
|
391
|
-
inputProps:
|
|
380
|
+
inputComponent: B = "input",
|
|
381
|
+
inputProps: b = {},
|
|
392
382
|
inputRef: $,
|
|
393
383
|
maxRows: F,
|
|
394
|
-
minRows:
|
|
395
|
-
multiline:
|
|
396
|
-
name:
|
|
397
|
-
onBlur:
|
|
398
|
-
onChange:
|
|
399
|
-
onClick:
|
|
400
|
-
onFocus:
|
|
384
|
+
minRows: l,
|
|
385
|
+
multiline: m = !1,
|
|
386
|
+
name: p,
|
|
387
|
+
onBlur: d,
|
|
388
|
+
onChange: M,
|
|
389
|
+
onClick: k,
|
|
390
|
+
onFocus: A,
|
|
401
391
|
onKeyDown: U,
|
|
402
|
-
onKeyUp:
|
|
403
|
-
placeholder:
|
|
392
|
+
onKeyUp: C,
|
|
393
|
+
placeholder: h,
|
|
404
394
|
readOnly: W,
|
|
405
|
-
renderSuffix:
|
|
406
|
-
rows:
|
|
407
|
-
slotProps:
|
|
408
|
-
slots:
|
|
409
|
-
startAdornment:
|
|
410
|
-
type:
|
|
411
|
-
value:
|
|
412
|
-
} = s,
|
|
413
|
-
current:
|
|
414
|
-
} =
|
|
415
|
-
process.env.NODE_ENV !== "production" &&
|
|
395
|
+
renderSuffix: L,
|
|
396
|
+
rows: q,
|
|
397
|
+
slotProps: fe = {},
|
|
398
|
+
slots: me = {},
|
|
399
|
+
startAdornment: j,
|
|
400
|
+
type: be = "text",
|
|
401
|
+
value: $e
|
|
402
|
+
} = s, Ue = Z(s, lo), K = b.value != null ? b.value : $e, {
|
|
403
|
+
current: Q
|
|
404
|
+
} = r.useRef(K != null), _ = r.useRef(), _e = r.useCallback((u) => {
|
|
405
|
+
process.env.NODE_ENV !== "production" && u && u.nodeName !== "INPUT" && !u.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
416
406
|
`));
|
|
417
|
-
}, []),
|
|
418
|
-
process.env.NODE_ENV !== "production" &&
|
|
419
|
-
if (
|
|
420
|
-
return
|
|
421
|
-
}, [
|
|
422
|
-
const E =
|
|
407
|
+
}, []), je = Te(_, $, b.ref, _e), [ee, oe] = r.useState(!1), c = Ze();
|
|
408
|
+
process.env.NODE_ENV !== "production" && r.useEffect(() => {
|
|
409
|
+
if (c)
|
|
410
|
+
return c.registerEffect();
|
|
411
|
+
}, [c]);
|
|
412
|
+
const E = Je({
|
|
423
413
|
props: s,
|
|
424
|
-
muiFormControl:
|
|
414
|
+
muiFormControl: c,
|
|
425
415
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
426
416
|
});
|
|
427
|
-
E.focused =
|
|
428
|
-
!
|
|
429
|
-
}, [
|
|
430
|
-
const
|
|
431
|
-
Pe(
|
|
432
|
-
}, [
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
value:
|
|
417
|
+
E.focused = c ? c.focused : ee, r.useEffect(() => {
|
|
418
|
+
!c && R && ee && (oe(!1), d && d());
|
|
419
|
+
}, [c, R, ee, d]);
|
|
420
|
+
const ne = c && c.onFilled, te = c && c.onEmpty, D = r.useCallback((u) => {
|
|
421
|
+
Pe(u) ? ne && ne() : te && te();
|
|
422
|
+
}, [ne, te]);
|
|
423
|
+
Ie(() => {
|
|
424
|
+
Q && D({
|
|
425
|
+
value: K
|
|
436
426
|
});
|
|
437
|
-
}, [
|
|
438
|
-
const
|
|
427
|
+
}, [K, D, Q]);
|
|
428
|
+
const De = (u) => {
|
|
439
429
|
if (E.disabled) {
|
|
440
|
-
|
|
430
|
+
u.stopPropagation();
|
|
441
431
|
return;
|
|
442
432
|
}
|
|
443
|
-
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
if (!
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
450
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." :
|
|
451
|
-
|
|
452
|
-
value:
|
|
433
|
+
A && A(u), b.onFocus && b.onFocus(u), c && c.onFocus ? c.onFocus(u) : oe(!0);
|
|
434
|
+
}, He = (u) => {
|
|
435
|
+
d && d(u), b.onBlur && b.onBlur(u), c && c.onBlur ? c.onBlur(u) : oe(!1);
|
|
436
|
+
}, Ve = (u, ...ve) => {
|
|
437
|
+
if (!Q) {
|
|
438
|
+
const Ce = u.target || _.current;
|
|
439
|
+
if (Ce == null)
|
|
440
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Ge(1));
|
|
441
|
+
D({
|
|
442
|
+
value: Ce.value
|
|
453
443
|
});
|
|
454
444
|
}
|
|
455
|
-
|
|
445
|
+
b.onChange && b.onChange(u, ...ve), M && M(u, ...ve);
|
|
456
446
|
};
|
|
457
|
-
|
|
458
|
-
|
|
447
|
+
r.useEffect(() => {
|
|
448
|
+
D(_.current);
|
|
459
449
|
}, []);
|
|
460
|
-
const
|
|
461
|
-
_.current &&
|
|
450
|
+
const Le = (u) => {
|
|
451
|
+
_.current && u.currentTarget === u.target && _.current.focus(), k && k(u);
|
|
462
452
|
};
|
|
463
|
-
let
|
|
464
|
-
|
|
453
|
+
let re = B, P = b;
|
|
454
|
+
m && re === "input" && (q ? (process.env.NODE_ENV !== "production" && (l || F) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), P = a({
|
|
465
455
|
type: void 0,
|
|
466
|
-
minRows:
|
|
467
|
-
maxRows:
|
|
468
|
-
},
|
|
456
|
+
minRows: q,
|
|
457
|
+
maxRows: q
|
|
458
|
+
}, P)) : P = a({
|
|
469
459
|
type: void 0,
|
|
470
460
|
maxRows: F,
|
|
471
|
-
minRows:
|
|
472
|
-
},
|
|
473
|
-
const
|
|
474
|
-
|
|
461
|
+
minRows: l
|
|
462
|
+
}, P), re = Ne);
|
|
463
|
+
const qe = (u) => {
|
|
464
|
+
D(u.animationName === "mui-auto-fill-cancel" ? _.current : {
|
|
475
465
|
value: "x"
|
|
476
466
|
});
|
|
477
467
|
};
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}, [
|
|
481
|
-
const
|
|
468
|
+
r.useEffect(() => {
|
|
469
|
+
c && c.setAdornedStart(!!j);
|
|
470
|
+
}, [c, j]);
|
|
471
|
+
const G = a({}, s, {
|
|
482
472
|
color: E.color || "primary",
|
|
483
473
|
disabled: E.disabled,
|
|
484
|
-
endAdornment:
|
|
474
|
+
endAdornment: g,
|
|
485
475
|
error: E.error,
|
|
486
476
|
focused: E.focused,
|
|
487
|
-
formControl:
|
|
488
|
-
fullWidth:
|
|
477
|
+
formControl: c,
|
|
478
|
+
fullWidth: T,
|
|
489
479
|
hiddenLabel: E.hiddenLabel,
|
|
490
|
-
multiline:
|
|
480
|
+
multiline: m,
|
|
491
481
|
size: E.size,
|
|
492
|
-
startAdornment:
|
|
493
|
-
type:
|
|
494
|
-
}),
|
|
495
|
-
return
|
|
496
|
-
children: [!
|
|
497
|
-
ownerState:
|
|
482
|
+
startAdornment: j,
|
|
483
|
+
type: be
|
|
484
|
+
}), he = ao(G), ye = me.root || S.Root || Me, se = fe.root || y.root || {}, ge = me.input || S.Input || Ae;
|
|
485
|
+
return P = a({}, P, (i = fe.input) != null ? i : y.input), /* @__PURE__ */ ae(r.Fragment, {
|
|
486
|
+
children: [!v && uo, /* @__PURE__ */ ae(ye, a({}, se, !Se(ye) && {
|
|
487
|
+
ownerState: a({}, G, se.ownerState)
|
|
498
488
|
}, {
|
|
499
489
|
ref: t,
|
|
500
|
-
onClick:
|
|
501
|
-
},
|
|
502
|
-
className:
|
|
503
|
-
children: [
|
|
490
|
+
onClick: Le
|
|
491
|
+
}, Ue, {
|
|
492
|
+
className: le(he.root, se.className, O, W && "MuiInputBase-readOnly"),
|
|
493
|
+
children: [j, /* @__PURE__ */ z(Oe.Provider, {
|
|
504
494
|
value: null,
|
|
505
|
-
children: /* @__PURE__ */
|
|
506
|
-
ownerState:
|
|
495
|
+
children: /* @__PURE__ */ z(ge, a({
|
|
496
|
+
ownerState: G,
|
|
507
497
|
"aria-invalid": E.error,
|
|
508
|
-
"aria-describedby":
|
|
509
|
-
autoComplete:
|
|
510
|
-
autoFocus:
|
|
511
|
-
defaultValue:
|
|
498
|
+
"aria-describedby": f,
|
|
499
|
+
autoComplete: x,
|
|
500
|
+
autoFocus: w,
|
|
501
|
+
defaultValue: I,
|
|
512
502
|
disabled: E.disabled,
|
|
513
503
|
id: N,
|
|
514
|
-
onAnimationStart:
|
|
515
|
-
name:
|
|
516
|
-
placeholder:
|
|
504
|
+
onAnimationStart: qe,
|
|
505
|
+
name: p,
|
|
506
|
+
placeholder: h,
|
|
517
507
|
readOnly: W,
|
|
518
508
|
required: E.required,
|
|
519
|
-
rows:
|
|
520
|
-
value:
|
|
509
|
+
rows: q,
|
|
510
|
+
value: K,
|
|
521
511
|
onKeyDown: U,
|
|
522
|
-
onKeyUp:
|
|
523
|
-
type:
|
|
524
|
-
},
|
|
525
|
-
as:
|
|
526
|
-
ownerState:
|
|
512
|
+
onKeyUp: C,
|
|
513
|
+
type: be
|
|
514
|
+
}, P, !Se(ge) && {
|
|
515
|
+
as: re,
|
|
516
|
+
ownerState: a({}, G, P.ownerState)
|
|
527
517
|
}, {
|
|
528
|
-
ref:
|
|
529
|
-
className:
|
|
530
|
-
onBlur:
|
|
531
|
-
onChange:
|
|
532
|
-
onFocus:
|
|
518
|
+
ref: je,
|
|
519
|
+
className: le(he.input, P.className, W && "MuiInputBase-readOnly"),
|
|
520
|
+
onBlur: He,
|
|
521
|
+
onChange: Ve,
|
|
522
|
+
onFocus: De
|
|
533
523
|
}))
|
|
534
|
-
}),
|
|
535
|
-
startAdornment:
|
|
524
|
+
}), g, L ? L(a({}, E, {
|
|
525
|
+
startAdornment: j
|
|
536
526
|
})) : null]
|
|
537
527
|
}))]
|
|
538
528
|
});
|
|
539
529
|
});
|
|
540
|
-
process.env.NODE_ENV !== "production" && (
|
|
530
|
+
process.env.NODE_ENV !== "production" && (We.propTypes = {
|
|
541
531
|
// ----------------------------- Warning --------------------------------
|
|
542
532
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
543
533
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -634,7 +624,7 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
634
624
|
* Either a string to use a HTML element or a component.
|
|
635
625
|
* @default 'input'
|
|
636
626
|
*/
|
|
637
|
-
inputComponent:
|
|
627
|
+
inputComponent: Qe,
|
|
638
628
|
/**
|
|
639
629
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
640
630
|
* @default {}
|
|
@@ -643,7 +633,7 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
643
633
|
/**
|
|
644
634
|
* Pass a ref to the `input` element.
|
|
645
635
|
*/
|
|
646
|
-
inputRef:
|
|
636
|
+
inputRef: Ee,
|
|
647
637
|
/**
|
|
648
638
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
649
639
|
* FormControl.
|
|
@@ -767,34 +757,34 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
767
757
|
*/
|
|
768
758
|
value: e.any
|
|
769
759
|
});
|
|
770
|
-
function
|
|
771
|
-
return
|
|
760
|
+
function co(o) {
|
|
761
|
+
return de("MuiInput", o);
|
|
772
762
|
}
|
|
773
|
-
const H =
|
|
763
|
+
const H = a({}, Y, ue("MuiInput", ["root", "underline", "input"])), po = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"], fo = (o) => {
|
|
774
764
|
const {
|
|
775
765
|
classes: n,
|
|
776
766
|
disableUnderline: t
|
|
777
|
-
} = o, s =
|
|
767
|
+
} = o, s = pe({
|
|
778
768
|
root: ["root", !t && "underline"],
|
|
779
769
|
input: ["input"]
|
|
780
|
-
},
|
|
781
|
-
return
|
|
782
|
-
},
|
|
783
|
-
shouldForwardProp: (o) =>
|
|
770
|
+
}, co, n);
|
|
771
|
+
return a({}, n, s);
|
|
772
|
+
}, mo = V(Me, {
|
|
773
|
+
shouldForwardProp: (o) => Xe(o) || o === "classes",
|
|
784
774
|
name: "MuiInput",
|
|
785
775
|
slot: "Root",
|
|
786
776
|
overridesResolver: (o, n) => {
|
|
787
777
|
const {
|
|
788
778
|
ownerState: t
|
|
789
779
|
} = o;
|
|
790
|
-
return [...
|
|
780
|
+
return [...ze(o, n), !t.disableUnderline && n.underline];
|
|
791
781
|
}
|
|
792
782
|
})(({
|
|
793
783
|
theme: o,
|
|
794
784
|
ownerState: n
|
|
795
785
|
}) => {
|
|
796
|
-
let
|
|
797
|
-
return o.vars && (
|
|
786
|
+
let i = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
787
|
+
return o.vars && (i = `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`), a({
|
|
798
788
|
position: "relative"
|
|
799
789
|
}, n.formControl && {
|
|
800
790
|
"label + &": {
|
|
@@ -828,7 +818,7 @@ const H = i({}, se, X("MuiInput", ["root", "underline", "input"])), mo = ["disab
|
|
|
828
818
|
}
|
|
829
819
|
},
|
|
830
820
|
"&:before": {
|
|
831
|
-
borderBottom: `1px solid ${
|
|
821
|
+
borderBottom: `1px solid ${i}`,
|
|
832
822
|
left: 0,
|
|
833
823
|
bottom: 0,
|
|
834
824
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -845,55 +835,55 @@ const H = i({}, se, X("MuiInput", ["root", "underline", "input"])), mo = ["disab
|
|
|
845
835
|
borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
|
|
846
836
|
// Reset on touch devices, it doesn't add specificity
|
|
847
837
|
"@media (hover: none)": {
|
|
848
|
-
borderBottom: `1px solid ${
|
|
838
|
+
borderBottom: `1px solid ${i}`
|
|
849
839
|
}
|
|
850
840
|
},
|
|
851
841
|
[`&.${H.disabled}:before`]: {
|
|
852
842
|
borderBottomStyle: "dotted"
|
|
853
843
|
}
|
|
854
844
|
});
|
|
855
|
-
}),
|
|
845
|
+
}), bo = V(Ae, {
|
|
856
846
|
name: "MuiInput",
|
|
857
847
|
slot: "Input",
|
|
858
|
-
overridesResolver:
|
|
859
|
-
})({}),
|
|
860
|
-
var
|
|
861
|
-
const
|
|
848
|
+
overridesResolver: Be
|
|
849
|
+
})({}), ke = /* @__PURE__ */ r.forwardRef(function(n, t) {
|
|
850
|
+
var i, s, f, x;
|
|
851
|
+
const w = ce({
|
|
862
852
|
props: n,
|
|
863
853
|
name: "MuiInput"
|
|
864
854
|
}), {
|
|
865
|
-
disableUnderline:
|
|
866
|
-
components:
|
|
867
|
-
componentsProps:
|
|
868
|
-
fullWidth:
|
|
869
|
-
inputComponent:
|
|
870
|
-
multiline:
|
|
871
|
-
slotProps:
|
|
872
|
-
slots:
|
|
855
|
+
disableUnderline: O,
|
|
856
|
+
components: S = {},
|
|
857
|
+
componentsProps: y,
|
|
858
|
+
fullWidth: I = !1,
|
|
859
|
+
inputComponent: R = "input",
|
|
860
|
+
multiline: v = !1,
|
|
861
|
+
slotProps: g,
|
|
862
|
+
slots: T = {},
|
|
873
863
|
type: N = "text"
|
|
874
|
-
} =
|
|
864
|
+
} = w, B = Z(w, po), b = fo(w), F = {
|
|
875
865
|
root: {
|
|
876
866
|
ownerState: {
|
|
877
|
-
disableUnderline:
|
|
867
|
+
disableUnderline: O
|
|
878
868
|
}
|
|
879
869
|
}
|
|
880
|
-
},
|
|
881
|
-
return /* @__PURE__ */
|
|
870
|
+
}, l = g ?? y ? Ye(g ?? y, F) : F, m = (i = (s = T.root) != null ? s : S.Root) != null ? i : mo, p = (f = (x = T.input) != null ? x : S.Input) != null ? f : bo;
|
|
871
|
+
return /* @__PURE__ */ z(We, a({
|
|
882
872
|
slots: {
|
|
883
|
-
root:
|
|
884
|
-
input:
|
|
873
|
+
root: m,
|
|
874
|
+
input: p
|
|
885
875
|
},
|
|
886
|
-
slotProps:
|
|
887
|
-
fullWidth:
|
|
888
|
-
inputComponent:
|
|
889
|
-
multiline:
|
|
876
|
+
slotProps: l,
|
|
877
|
+
fullWidth: I,
|
|
878
|
+
inputComponent: R,
|
|
879
|
+
multiline: v,
|
|
890
880
|
ref: t,
|
|
891
881
|
type: N
|
|
892
|
-
},
|
|
893
|
-
classes:
|
|
882
|
+
}, B, {
|
|
883
|
+
classes: b
|
|
894
884
|
}));
|
|
895
885
|
});
|
|
896
|
-
process.env.NODE_ENV !== "production" && (
|
|
886
|
+
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
897
887
|
// ----------------------------- Warning --------------------------------
|
|
898
888
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
899
889
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -989,7 +979,7 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
|
989
979
|
/**
|
|
990
980
|
* Pass a ref to the `input` element.
|
|
991
981
|
*/
|
|
992
|
-
inputRef:
|
|
982
|
+
inputRef: Ee,
|
|
993
983
|
/**
|
|
994
984
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
995
985
|
* FormControl.
|
|
@@ -1079,358 +1069,29 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
|
1079
1069
|
*/
|
|
1080
1070
|
value: e.any
|
|
1081
1071
|
});
|
|
1082
|
-
|
|
1083
|
-
function
|
|
1084
|
-
return
|
|
1085
|
-
}
|
|
1086
|
-
const V = X("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), vo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], xo = (o) => {
|
|
1087
|
-
const {
|
|
1088
|
-
classes: n,
|
|
1089
|
-
color: t,
|
|
1090
|
-
focused: r,
|
|
1091
|
-
disabled: s,
|
|
1092
|
-
error: u,
|
|
1093
|
-
filled: m,
|
|
1094
|
-
required: b
|
|
1095
|
-
} = o, c = {
|
|
1096
|
-
root: ["root", `color${Q(t)}`, s && "disabled", u && "error", m && "filled", r && "focused", b && "required"],
|
|
1097
|
-
asterisk: ["asterisk", u && "error"]
|
|
1098
|
-
};
|
|
1099
|
-
return Z(c, go, n);
|
|
1100
|
-
}, Co = L("label", {
|
|
1101
|
-
name: "MuiFormLabel",
|
|
1102
|
-
slot: "Root",
|
|
1103
|
-
overridesResolver: ({
|
|
1104
|
-
ownerState: o
|
|
1105
|
-
}, n) => i({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
|
|
1106
|
-
})(({
|
|
1107
|
-
theme: o,
|
|
1108
|
-
ownerState: n
|
|
1109
|
-
}) => i({
|
|
1110
|
-
color: (o.vars || o).palette.text.secondary
|
|
1111
|
-
}, o.typography.body1, {
|
|
1112
|
-
lineHeight: "1.4375em",
|
|
1113
|
-
padding: 0,
|
|
1114
|
-
position: "relative",
|
|
1115
|
-
[`&.${V.focused}`]: {
|
|
1116
|
-
color: (o.vars || o).palette[n.color].main
|
|
1117
|
-
},
|
|
1118
|
-
[`&.${V.disabled}`]: {
|
|
1119
|
-
color: (o.vars || o).palette.text.disabled
|
|
1120
|
-
},
|
|
1121
|
-
[`&.${V.error}`]: {
|
|
1122
|
-
color: (o.vars || o).palette.error.main
|
|
1123
|
-
}
|
|
1124
|
-
})), Oo = L("span", {
|
|
1125
|
-
name: "MuiFormLabel",
|
|
1126
|
-
slot: "Asterisk",
|
|
1127
|
-
overridesResolver: (o, n) => n.asterisk
|
|
1128
|
-
})(({
|
|
1129
|
-
theme: o
|
|
1130
|
-
}) => ({
|
|
1131
|
-
[`&.${V.error}`]: {
|
|
1132
|
-
color: (o.vars || o).palette.error.main
|
|
1133
|
-
}
|
|
1134
|
-
})), je = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
1135
|
-
const r = Y({
|
|
1136
|
-
props: n,
|
|
1137
|
-
name: "MuiFormLabel"
|
|
1138
|
-
}), {
|
|
1139
|
-
children: s,
|
|
1140
|
-
className: u,
|
|
1141
|
-
component: m = "label"
|
|
1142
|
-
} = r, b = j(r, vo), c = me(), a = be({
|
|
1143
|
-
props: r,
|
|
1144
|
-
muiFormControl: c,
|
|
1145
|
-
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
1146
|
-
}), p = i({}, r, {
|
|
1147
|
-
color: a.color || "primary",
|
|
1148
|
-
component: m,
|
|
1149
|
-
disabled: a.disabled,
|
|
1150
|
-
error: a.error,
|
|
1151
|
-
filled: a.filled,
|
|
1152
|
-
focused: a.focused,
|
|
1153
|
-
required: a.required
|
|
1154
|
-
}), x = xo(p);
|
|
1155
|
-
return /* @__PURE__ */ G(Co, i({
|
|
1156
|
-
as: m,
|
|
1157
|
-
ownerState: p,
|
|
1158
|
-
className: K(x.root, u),
|
|
1159
|
-
ref: t
|
|
1160
|
-
}, b, {
|
|
1161
|
-
children: [s, a.required && /* @__PURE__ */ G(Oo, {
|
|
1162
|
-
ownerState: p,
|
|
1163
|
-
"aria-hidden": !0,
|
|
1164
|
-
className: x.asterisk,
|
|
1165
|
-
children: [" ", "*"]
|
|
1166
|
-
})]
|
|
1167
|
-
}));
|
|
1168
|
-
});
|
|
1169
|
-
process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
1170
|
-
// ----------------------------- Warning --------------------------------
|
|
1171
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1172
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1173
|
-
// ----------------------------------------------------------------------
|
|
1174
|
-
/**
|
|
1175
|
-
* The content of the component.
|
|
1176
|
-
*/
|
|
1177
|
-
children: e.node,
|
|
1178
|
-
/**
|
|
1179
|
-
* Override or extend the styles applied to the component.
|
|
1180
|
-
*/
|
|
1181
|
-
classes: e.object,
|
|
1182
|
-
/**
|
|
1183
|
-
* @ignore
|
|
1184
|
-
*/
|
|
1185
|
-
className: e.string,
|
|
1186
|
-
/**
|
|
1187
|
-
* The color of the component.
|
|
1188
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1189
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1190
|
-
*/
|
|
1191
|
-
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1192
|
-
/**
|
|
1193
|
-
* The component used for the root node.
|
|
1194
|
-
* Either a string to use a HTML element or a component.
|
|
1195
|
-
*/
|
|
1196
|
-
component: e.elementType,
|
|
1197
|
-
/**
|
|
1198
|
-
* If `true`, the label should be displayed in a disabled state.
|
|
1199
|
-
*/
|
|
1200
|
-
disabled: e.bool,
|
|
1201
|
-
/**
|
|
1202
|
-
* If `true`, the label is displayed in an error state.
|
|
1203
|
-
*/
|
|
1204
|
-
error: e.bool,
|
|
1205
|
-
/**
|
|
1206
|
-
* If `true`, the label should use filled classes key.
|
|
1207
|
-
*/
|
|
1208
|
-
filled: e.bool,
|
|
1209
|
-
/**
|
|
1210
|
-
* If `true`, the input of this label is focused (used by `FormGroup` components).
|
|
1211
|
-
*/
|
|
1212
|
-
focused: e.bool,
|
|
1213
|
-
/**
|
|
1214
|
-
* If `true`, the label will indicate that the `input` is required.
|
|
1215
|
-
*/
|
|
1216
|
-
required: e.bool,
|
|
1217
|
-
/**
|
|
1218
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1219
|
-
*/
|
|
1220
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1221
|
-
});
|
|
1222
|
-
function wo(o) {
|
|
1223
|
-
return J("MuiInputLabel", o);
|
|
1072
|
+
ke.muiName = "Input";
|
|
1073
|
+
function ho(o) {
|
|
1074
|
+
return de("MuiFormControl", o);
|
|
1224
1075
|
}
|
|
1225
|
-
|
|
1226
|
-
const
|
|
1227
|
-
const {
|
|
1228
|
-
classes: n,
|
|
1229
|
-
formControl: t,
|
|
1230
|
-
size: r,
|
|
1231
|
-
shrink: s,
|
|
1232
|
-
disableAnimation: u,
|
|
1233
|
-
variant: m,
|
|
1234
|
-
required: b
|
|
1235
|
-
} = o, a = Z({
|
|
1236
|
-
root: ["root", t && "formControl", !u && "animated", s && "shrink", r === "small" && "sizeSmall", m],
|
|
1237
|
-
asterisk: [b && "asterisk"]
|
|
1238
|
-
}, wo, n);
|
|
1239
|
-
return i({}, n, a);
|
|
1240
|
-
}, To = L(je, {
|
|
1241
|
-
shouldForwardProp: (o) => Ee(o) || o === "classes",
|
|
1242
|
-
name: "MuiInputLabel",
|
|
1243
|
-
slot: "Root",
|
|
1244
|
-
overridesResolver: (o, n) => {
|
|
1245
|
-
const {
|
|
1246
|
-
ownerState: t
|
|
1247
|
-
} = o;
|
|
1248
|
-
return [{
|
|
1249
|
-
[`& .${V.asterisk}`]: n.asterisk
|
|
1250
|
-
}, n.root, t.formControl && n.formControl, t.size === "small" && n.sizeSmall, t.shrink && n.shrink, !t.disableAnimation && n.animated, n[t.variant]];
|
|
1251
|
-
}
|
|
1252
|
-
})(({
|
|
1253
|
-
theme: o,
|
|
1254
|
-
ownerState: n
|
|
1255
|
-
}) => i({
|
|
1256
|
-
display: "block",
|
|
1257
|
-
transformOrigin: "top left",
|
|
1258
|
-
whiteSpace: "nowrap",
|
|
1259
|
-
overflow: "hidden",
|
|
1260
|
-
textOverflow: "ellipsis",
|
|
1261
|
-
maxWidth: "100%"
|
|
1262
|
-
}, n.formControl && {
|
|
1263
|
-
position: "absolute",
|
|
1264
|
-
left: 0,
|
|
1265
|
-
top: 0,
|
|
1266
|
-
// slight alteration to spec spacing to match visual spec result
|
|
1267
|
-
transform: "translate(0, 20px) scale(1)"
|
|
1268
|
-
}, n.size === "small" && {
|
|
1269
|
-
// Compensation for the `Input.inputSizeSmall` style.
|
|
1270
|
-
transform: "translate(0, 17px) scale(1)"
|
|
1271
|
-
}, n.shrink && {
|
|
1272
|
-
transform: "translate(0, -1.5px) scale(0.75)",
|
|
1273
|
-
transformOrigin: "top left",
|
|
1274
|
-
maxWidth: "133%"
|
|
1275
|
-
}, !n.disableAnimation && {
|
|
1276
|
-
transition: o.transitions.create(["color", "transform", "max-width"], {
|
|
1277
|
-
duration: o.transitions.duration.shorter,
|
|
1278
|
-
easing: o.transitions.easing.easeOut
|
|
1279
|
-
})
|
|
1280
|
-
}, n.variant === "filled" && i({
|
|
1281
|
-
// Chrome's autofill feature gives the input field a yellow background.
|
|
1282
|
-
// Since the input field is behind the label in the HTML tree,
|
|
1283
|
-
// the input field is drawn last and hides the label with an opaque background color.
|
|
1284
|
-
// zIndex: 1 will raise the label above opaque background-colors of input.
|
|
1285
|
-
zIndex: 1,
|
|
1286
|
-
pointerEvents: "none",
|
|
1287
|
-
transform: "translate(12px, 16px) scale(1)",
|
|
1288
|
-
maxWidth: "calc(100% - 24px)"
|
|
1289
|
-
}, n.size === "small" && {
|
|
1290
|
-
transform: "translate(12px, 13px) scale(1)"
|
|
1291
|
-
}, n.shrink && i({
|
|
1292
|
-
userSelect: "none",
|
|
1293
|
-
pointerEvents: "auto",
|
|
1294
|
-
transform: "translate(12px, 7px) scale(0.75)",
|
|
1295
|
-
maxWidth: "calc(133% - 24px)"
|
|
1296
|
-
}, n.size === "small" && {
|
|
1297
|
-
transform: "translate(12px, 4px) scale(0.75)"
|
|
1298
|
-
})), n.variant === "outlined" && i({
|
|
1299
|
-
// see comment above on filled.zIndex
|
|
1300
|
-
zIndex: 1,
|
|
1301
|
-
pointerEvents: "none",
|
|
1302
|
-
transform: "translate(14px, 16px) scale(1)",
|
|
1303
|
-
maxWidth: "calc(100% - 24px)"
|
|
1304
|
-
}, n.size === "small" && {
|
|
1305
|
-
transform: "translate(14px, 9px) scale(1)"
|
|
1306
|
-
}, n.shrink && {
|
|
1307
|
-
userSelect: "none",
|
|
1308
|
-
pointerEvents: "auto",
|
|
1309
|
-
// Theoretically, we should have (8+5)*2/0.75 = 34px
|
|
1310
|
-
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
1311
|
-
maxWidth: "calc(133% - 32px)",
|
|
1312
|
-
transform: "translate(14px, -9px) scale(0.75)"
|
|
1313
|
-
}))), Io = /* @__PURE__ */ l.forwardRef(function(n, t) {
|
|
1314
|
-
const r = Y({
|
|
1315
|
-
name: "MuiInputLabel",
|
|
1316
|
-
props: n
|
|
1317
|
-
}), {
|
|
1318
|
-
disableAnimation: s = !1,
|
|
1319
|
-
shrink: u,
|
|
1320
|
-
className: m
|
|
1321
|
-
} = r, b = j(r, So), c = me();
|
|
1322
|
-
let a = u;
|
|
1323
|
-
typeof a > "u" && c && (a = c.filled || c.focused || c.adornedStart);
|
|
1324
|
-
const p = be({
|
|
1325
|
-
props: r,
|
|
1326
|
-
muiFormControl: c,
|
|
1327
|
-
states: ["size", "variant", "required"]
|
|
1328
|
-
}), x = i({}, r, {
|
|
1329
|
-
disableAnimation: s,
|
|
1330
|
-
formControl: c,
|
|
1331
|
-
shrink: a,
|
|
1332
|
-
size: p.size,
|
|
1333
|
-
variant: p.variant,
|
|
1334
|
-
required: p.required
|
|
1335
|
-
}), w = Ro(x);
|
|
1336
|
-
return /* @__PURE__ */ k(To, i({
|
|
1337
|
-
"data-shrink": a,
|
|
1338
|
-
ownerState: x,
|
|
1339
|
-
ref: t,
|
|
1340
|
-
className: K(w.root, m)
|
|
1341
|
-
}, b, {
|
|
1342
|
-
classes: w
|
|
1343
|
-
}));
|
|
1344
|
-
});
|
|
1345
|
-
process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
1346
|
-
// ----------------------------- Warning --------------------------------
|
|
1347
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1348
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1349
|
-
// ----------------------------------------------------------------------
|
|
1350
|
-
/**
|
|
1351
|
-
* The content of the component.
|
|
1352
|
-
*/
|
|
1353
|
-
children: e.node,
|
|
1354
|
-
/**
|
|
1355
|
-
* Override or extend the styles applied to the component.
|
|
1356
|
-
*/
|
|
1357
|
-
classes: e.object,
|
|
1358
|
-
/**
|
|
1359
|
-
* @ignore
|
|
1360
|
-
*/
|
|
1361
|
-
className: e.string,
|
|
1362
|
-
/**
|
|
1363
|
-
* The color of the component.
|
|
1364
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1365
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1366
|
-
*/
|
|
1367
|
-
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1368
|
-
/**
|
|
1369
|
-
* If `true`, the transition animation is disabled.
|
|
1370
|
-
* @default false
|
|
1371
|
-
*/
|
|
1372
|
-
disableAnimation: e.bool,
|
|
1373
|
-
/**
|
|
1374
|
-
* If `true`, the component is disabled.
|
|
1375
|
-
*/
|
|
1376
|
-
disabled: e.bool,
|
|
1377
|
-
/**
|
|
1378
|
-
* If `true`, the label is displayed in an error state.
|
|
1379
|
-
*/
|
|
1380
|
-
error: e.bool,
|
|
1381
|
-
/**
|
|
1382
|
-
* If `true`, the `input` of this label is focused.
|
|
1383
|
-
*/
|
|
1384
|
-
focused: e.bool,
|
|
1385
|
-
/**
|
|
1386
|
-
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
1387
|
-
* FormControl.
|
|
1388
|
-
*/
|
|
1389
|
-
margin: e.oneOf(["dense"]),
|
|
1390
|
-
/**
|
|
1391
|
-
* if `true`, the label will indicate that the `input` is required.
|
|
1392
|
-
*/
|
|
1393
|
-
required: e.bool,
|
|
1394
|
-
/**
|
|
1395
|
-
* If `true`, the label is shrunk.
|
|
1396
|
-
*/
|
|
1397
|
-
shrink: e.bool,
|
|
1398
|
-
/**
|
|
1399
|
-
* The size of the component.
|
|
1400
|
-
* @default 'normal'
|
|
1401
|
-
*/
|
|
1402
|
-
size: e.oneOfType([e.oneOf(["normal", "small"]), e.string]),
|
|
1403
|
-
/**
|
|
1404
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1405
|
-
*/
|
|
1406
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1407
|
-
/**
|
|
1408
|
-
* The variant to use.
|
|
1409
|
-
*/
|
|
1410
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1411
|
-
});
|
|
1412
|
-
function Eo(o) {
|
|
1413
|
-
return J("MuiFormControl", o);
|
|
1414
|
-
}
|
|
1415
|
-
X("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
|
|
1416
|
-
const No = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Fo = (o) => {
|
|
1076
|
+
ue("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
|
|
1077
|
+
const yo = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], go = (o) => {
|
|
1417
1078
|
const {
|
|
1418
1079
|
classes: n,
|
|
1419
1080
|
margin: t,
|
|
1420
|
-
fullWidth:
|
|
1081
|
+
fullWidth: i
|
|
1421
1082
|
} = o, s = {
|
|
1422
|
-
root: ["root", t !== "none" && `margin${
|
|
1083
|
+
root: ["root", t !== "none" && `margin${J(t)}`, i && "fullWidth"]
|
|
1423
1084
|
};
|
|
1424
|
-
return
|
|
1425
|
-
},
|
|
1085
|
+
return pe(s, ho, n);
|
|
1086
|
+
}, vo = V("div", {
|
|
1426
1087
|
name: "MuiFormControl",
|
|
1427
1088
|
slot: "Root",
|
|
1428
1089
|
overridesResolver: ({
|
|
1429
1090
|
ownerState: o
|
|
1430
|
-
}, n) =>
|
|
1091
|
+
}, n) => a({}, n.root, n[`margin${J(o.margin)}`], o.fullWidth && n.fullWidth)
|
|
1431
1092
|
})(({
|
|
1432
1093
|
ownerState: o
|
|
1433
|
-
}) =>
|
|
1094
|
+
}) => a({
|
|
1434
1095
|
display: "inline-flex",
|
|
1435
1096
|
flexDirection: "column",
|
|
1436
1097
|
position: "relative",
|
|
@@ -1448,99 +1109,99 @@ const No = ["children", "className", "color", "component", "disabled", "error",
|
|
|
1448
1109
|
marginBottom: 4
|
|
1449
1110
|
}, o.fullWidth && {
|
|
1450
1111
|
width: "100%"
|
|
1451
|
-
})),
|
|
1452
|
-
const
|
|
1112
|
+
})), Co = /* @__PURE__ */ r.forwardRef(function(n, t) {
|
|
1113
|
+
const i = ce({
|
|
1453
1114
|
props: n,
|
|
1454
1115
|
name: "MuiFormControl"
|
|
1455
1116
|
}), {
|
|
1456
1117
|
children: s,
|
|
1457
|
-
className:
|
|
1458
|
-
color:
|
|
1459
|
-
component:
|
|
1460
|
-
disabled:
|
|
1461
|
-
error:
|
|
1462
|
-
focused:
|
|
1463
|
-
fullWidth:
|
|
1464
|
-
hiddenLabel:
|
|
1465
|
-
margin:
|
|
1466
|
-
required:
|
|
1467
|
-
size:
|
|
1118
|
+
className: f,
|
|
1119
|
+
color: x = "primary",
|
|
1120
|
+
component: w = "div",
|
|
1121
|
+
disabled: O = !1,
|
|
1122
|
+
error: S = !1,
|
|
1123
|
+
focused: y,
|
|
1124
|
+
fullWidth: I = !1,
|
|
1125
|
+
hiddenLabel: R = !1,
|
|
1126
|
+
margin: v = "none",
|
|
1127
|
+
required: g = !1,
|
|
1128
|
+
size: T = "medium",
|
|
1468
1129
|
variant: N = "outlined"
|
|
1469
|
-
} =
|
|
1470
|
-
color:
|
|
1471
|
-
component:
|
|
1472
|
-
disabled:
|
|
1473
|
-
error:
|
|
1474
|
-
fullWidth:
|
|
1475
|
-
hiddenLabel:
|
|
1476
|
-
margin:
|
|
1477
|
-
required:
|
|
1478
|
-
size:
|
|
1130
|
+
} = i, B = Z(i, yo), b = a({}, i, {
|
|
1131
|
+
color: x,
|
|
1132
|
+
component: w,
|
|
1133
|
+
disabled: O,
|
|
1134
|
+
error: S,
|
|
1135
|
+
fullWidth: I,
|
|
1136
|
+
hiddenLabel: R,
|
|
1137
|
+
margin: v,
|
|
1138
|
+
required: g,
|
|
1139
|
+
size: T,
|
|
1479
1140
|
variant: N
|
|
1480
|
-
}), $ =
|
|
1481
|
-
let
|
|
1482
|
-
return s &&
|
|
1483
|
-
if (!
|
|
1141
|
+
}), $ = go(b), [F, l] = r.useState(() => {
|
|
1142
|
+
let C = !1;
|
|
1143
|
+
return s && r.Children.forEach(s, (h) => {
|
|
1144
|
+
if (!ie(h, ["Input", "Select"]))
|
|
1484
1145
|
return;
|
|
1485
|
-
const W =
|
|
1486
|
-
W &&
|
|
1487
|
-
}),
|
|
1488
|
-
}), [
|
|
1489
|
-
let
|
|
1490
|
-
return s &&
|
|
1491
|
-
|
|
1492
|
-
}),
|
|
1493
|
-
}), [
|
|
1494
|
-
|
|
1495
|
-
const
|
|
1496
|
-
let
|
|
1146
|
+
const W = ie(h, ["Select"]) ? h.props.input : h;
|
|
1147
|
+
W && so(W.props) && (C = !0);
|
|
1148
|
+
}), C;
|
|
1149
|
+
}), [m, p] = r.useState(() => {
|
|
1150
|
+
let C = !1;
|
|
1151
|
+
return s && r.Children.forEach(s, (h) => {
|
|
1152
|
+
ie(h, ["Input", "Select"]) && Pe(h.props, !0) && (C = !0);
|
|
1153
|
+
}), C;
|
|
1154
|
+
}), [d, M] = r.useState(!1);
|
|
1155
|
+
O && d && M(!1);
|
|
1156
|
+
const k = y !== void 0 && !O ? y : d;
|
|
1157
|
+
let A;
|
|
1497
1158
|
if (process.env.NODE_ENV !== "production") {
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
`)),
|
|
1501
|
-
|
|
1159
|
+
const C = r.useRef(!1);
|
|
1160
|
+
A = () => (C.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
1161
|
+
`)), C.current = !0, () => {
|
|
1162
|
+
C.current = !1;
|
|
1502
1163
|
});
|
|
1503
1164
|
}
|
|
1504
|
-
const U =
|
|
1165
|
+
const U = r.useMemo(() => ({
|
|
1505
1166
|
adornedStart: F,
|
|
1506
|
-
setAdornedStart:
|
|
1507
|
-
color:
|
|
1508
|
-
disabled:
|
|
1509
|
-
error:
|
|
1510
|
-
filled:
|
|
1511
|
-
focused:
|
|
1512
|
-
fullWidth:
|
|
1513
|
-
hiddenLabel:
|
|
1514
|
-
size:
|
|
1167
|
+
setAdornedStart: l,
|
|
1168
|
+
color: x,
|
|
1169
|
+
disabled: O,
|
|
1170
|
+
error: S,
|
|
1171
|
+
filled: m,
|
|
1172
|
+
focused: k,
|
|
1173
|
+
fullWidth: I,
|
|
1174
|
+
hiddenLabel: R,
|
|
1175
|
+
size: T,
|
|
1515
1176
|
onBlur: () => {
|
|
1516
|
-
|
|
1177
|
+
M(!1);
|
|
1517
1178
|
},
|
|
1518
1179
|
onEmpty: () => {
|
|
1519
|
-
|
|
1180
|
+
p(!1);
|
|
1520
1181
|
},
|
|
1521
1182
|
onFilled: () => {
|
|
1522
|
-
|
|
1183
|
+
p(!0);
|
|
1523
1184
|
},
|
|
1524
1185
|
onFocus: () => {
|
|
1525
|
-
|
|
1186
|
+
M(!0);
|
|
1526
1187
|
},
|
|
1527
|
-
registerEffect:
|
|
1528
|
-
required:
|
|
1188
|
+
registerEffect: A,
|
|
1189
|
+
required: g,
|
|
1529
1190
|
variant: N
|
|
1530
|
-
}), [F,
|
|
1531
|
-
return /* @__PURE__ */
|
|
1191
|
+
}), [F, x, O, S, m, k, I, R, A, g, T, N]);
|
|
1192
|
+
return /* @__PURE__ */ z(Oe.Provider, {
|
|
1532
1193
|
value: U,
|
|
1533
|
-
children: /* @__PURE__ */
|
|
1534
|
-
as:
|
|
1535
|
-
ownerState:
|
|
1536
|
-
className:
|
|
1194
|
+
children: /* @__PURE__ */ z(vo, a({
|
|
1195
|
+
as: w,
|
|
1196
|
+
ownerState: b,
|
|
1197
|
+
className: le($.root, f),
|
|
1537
1198
|
ref: t
|
|
1538
|
-
},
|
|
1199
|
+
}, B, {
|
|
1539
1200
|
children: s
|
|
1540
1201
|
}))
|
|
1541
1202
|
});
|
|
1542
1203
|
});
|
|
1543
|
-
process.env.NODE_ENV !== "production" && (
|
|
1204
|
+
process.env.NODE_ENV !== "production" && (Co.propTypes = {
|
|
1544
1205
|
// ----------------------------- Warning --------------------------------
|
|
1545
1206
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1546
1207
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -1621,16 +1282,13 @@ process.env.NODE_ENV !== "production" && (zo.propTypes = {
|
|
|
1621
1282
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1622
1283
|
});
|
|
1623
1284
|
export {
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1285
|
+
Co as F,
|
|
1286
|
+
ke as I,
|
|
1287
|
+
Me as a,
|
|
1288
|
+
Ae as b,
|
|
1628
1289
|
Be as c,
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
Pe as h,
|
|
1634
|
-
se as i,
|
|
1635
|
-
We as r
|
|
1290
|
+
We as d,
|
|
1291
|
+
Pe as e,
|
|
1292
|
+
Y as i,
|
|
1293
|
+
ze as r
|
|
1636
1294
|
};
|