@hybridcore/ui 1.3.3 → 1.3.4
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/{ButtonBase-DE8d_U2E.js → ButtonBase-DJz-TFGO.js} +199 -207
- package/dist/{CardContent-Du2i427Y.js → CardContent-DZnCVGy9.js} +15 -15
- package/dist/{Checkbox-BGNAqLl0.js → Checkbox-DzmWBCrt.js} +154 -144
- package/dist/{Collapse-FRd0_2Pt.js → Collapse-NqW0GIK_.js} +79 -77
- package/dist/DialogContent-D51w7KVX.js +2119 -0
- package/dist/{FormControl-ChTmxscy.js → FormControl-aXQs42m6.js} +496 -466
- package/dist/FormControlLabel-hDa-xf_q.js +639 -0
- package/dist/{IconButton-Cu_XEJB2.js → IconButton-SnBOFQ43.js} +22 -22
- package/dist/{Input-DU22-Zbo.js → Input-CeVb6kjv.js} +34 -34
- package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-fM3loNyx.js} +12 -12
- package/dist/{List-nOXr-cFJ.js → List-DLIiXc6r.js} +10 -10
- package/dist/{ListItem-RJvRMwkZ.js → ListItem-BkxmqFI8.js} +23 -23
- package/dist/{MenuItem-DF45rx2m.js → MenuItem-BEW28T9O.js} +27 -27
- package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-DkzLHRTd.js} +75 -78
- package/dist/{Paper-CD_ma6NJ.js → Paper-Dp3qO0cK.js} +18 -18
- package/dist/Select-Cdmu0dQ4.js +2175 -0
- package/dist/Typography-CXe5ytr0.js +201 -0
- package/dist/components/card/index.js +17 -17
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +222 -302
- package/dist/components/confirm/dialog.js +13 -13
- package/dist/components/container/index.js +19 -19
- package/dist/components/context-menu/index.js +32 -32
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/styled.js +14 -14
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/template-property-filters/index.js +1 -1
- package/dist/components/template-property-filters/property.js +4 -4
- package/dist/components/tree-select/index.js +4 -4
- package/dist/components/treeview-filter/index.js +29 -30
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createStyled-liRRhQcN.js +1910 -0
- package/dist/createSvgIcon-B4TFefhd.js +73 -0
- package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-Cl8kMTkx.js} +82 -85
- package/dist/{exactProp--3vlJ9a9.js → exactProp-CT2wqJXE.js} +2 -2
- package/dist/{index-CtuBGOmk.js → index-D9TdkXAs.js} +5 -5
- package/dist/{index-DzFccwzL.js → index-DRy8nExS.js} +205 -218
- package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-BrCbmCR1.js} +2 -2
- package/dist/main.js +2 -2
- package/dist/{property-BSufYw1E.js → property-BsU8ijQF.js} +1056 -1087
- package/dist/styled-Dm8rXzIG.js +677 -0
- package/dist/useTheme-CTuK-wFF.js +10 -0
- package/dist/useThemeProps-BXn-nVhw.js +107 -0
- package/dist/{utils-qcu0RzdN.js → utils-DY9Jk4Ah.js} +2 -2
- package/package.json +3 -3
- package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
- package/dist/FormControlLabel-Df7csguX.js +0 -827
- package/dist/Select-C1jD_gBQ.js +0 -2305
- package/dist/Typography-C2BkMNk-.js +0 -178
- package/dist/chainPropTypes-GRMJ22CO.js +0 -96
- package/dist/createSvgIcon-6wv0RQr3.js +0 -63
- package/dist/createTheme-C3DKplhE.js +0 -2395
- package/dist/resolveComponentProps-DozbaB8e.js +0 -54
- package/dist/styled-CVWGE9ik.js +0 -142
- package/dist/styled-iyoioZCr.js +0 -1033
- package/dist/useTheme--x3BjP9A.js +0 -17
- package/dist/useTheme-pWltVFb2.js +0 -10
- package/dist/useThemeProps-C90JF0Qc.js +0 -62
- package/dist/useThemeProps-DNZoozBw.js +0 -26
|
@@ -1,56 +1,22 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import { g as
|
|
5
|
-
import { u as
|
|
6
|
-
import { d as
|
|
7
|
-
import {
|
|
8
|
-
import { u as Ne, b as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
defaultTheme: r = {}
|
|
18
|
-
}) {
|
|
19
|
-
const t = Je(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
|
|
20
|
-
return /* @__PURE__ */ I(_e, {
|
|
21
|
-
styles: s
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
25
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
26
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
27
|
-
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
28
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
29
|
-
/**
|
|
30
|
-
* @ignore
|
|
31
|
-
*/
|
|
32
|
-
defaultTheme: e.object,
|
|
33
|
-
/**
|
|
34
|
-
* @ignore
|
|
35
|
-
*/
|
|
36
|
-
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
|
|
37
|
-
/**
|
|
38
|
-
* @ignore
|
|
39
|
-
*/
|
|
40
|
-
themeId: e.string
|
|
41
|
-
});
|
|
42
|
-
function be({
|
|
43
|
-
props: o,
|
|
44
|
-
states: n,
|
|
45
|
-
muiFormControl: r
|
|
46
|
-
}) {
|
|
47
|
-
return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
|
|
48
|
-
}
|
|
49
|
-
const Qe = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
50
|
-
function Q(o) {
|
|
1
|
+
import { a as G, _ as a } from "./extends-Cyw62AD_.js";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { P as e, a as K, f as Ve } from "./createStyled-liRRhQcN.js";
|
|
4
|
+
import { b as Ue, g as ee, u as oe, c as V, a as ne } from "./useThemeProps-BXn-nVhw.js";
|
|
5
|
+
import { u as fe, F as Ee } from "./useFormControl-CatNKXAi.js";
|
|
6
|
+
import { d as Ge, g as re, s as _, r as Ke } from "./styled-Dm8rXzIG.js";
|
|
7
|
+
import { jsxs as U, jsx as N } from "react/jsx-runtime";
|
|
8
|
+
import { u as Ne, b as ke, e as Ye, r as Ze } from "./ButtonBase-DJz-TFGO.js";
|
|
9
|
+
import * as Je from "react-dom";
|
|
10
|
+
import { o as we } from "./ownerWindow-niciwP7I.js";
|
|
11
|
+
import { d as Qe } from "./debounce-46wSf_lW.js";
|
|
12
|
+
import { i as Oe } from "./isHostComponent-kiaBvYVo.js";
|
|
13
|
+
import { Global as Xe } from "@emotion/react";
|
|
14
|
+
import { i as ce } from "./isMuiElement-CxT3_ACP.js";
|
|
15
|
+
const eo = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
16
|
+
function X(o) {
|
|
51
17
|
return parseInt(o, 10) || 0;
|
|
52
18
|
}
|
|
53
|
-
const
|
|
19
|
+
const oo = {
|
|
54
20
|
shadow: {
|
|
55
21
|
// Visibility needed to hide the extra text area on iPads
|
|
56
22
|
visibility: "hidden",
|
|
@@ -65,91 +31,104 @@ const Xe = {
|
|
|
65
31
|
transform: "translateZ(0)"
|
|
66
32
|
}
|
|
67
33
|
};
|
|
68
|
-
function
|
|
69
|
-
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.
|
|
34
|
+
function Te(o) {
|
|
35
|
+
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
|
|
70
36
|
}
|
|
71
|
-
const
|
|
37
|
+
const Fe = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
72
38
|
const {
|
|
73
39
|
onChange: t,
|
|
74
40
|
maxRows: s,
|
|
75
|
-
minRows:
|
|
76
|
-
style:
|
|
77
|
-
value:
|
|
78
|
-
} = n,
|
|
41
|
+
minRows: u = 1,
|
|
42
|
+
style: h,
|
|
43
|
+
value: g
|
|
44
|
+
} = n, p = G(n, eo), {
|
|
79
45
|
current: l
|
|
80
|
-
} =
|
|
81
|
-
|
|
82
|
-
|
|
46
|
+
} = i.useRef(g != null), b = i.useRef(null), C = Ne(r, b), w = i.useRef(null), T = i.useRef(0), [E, k] = i.useState({
|
|
47
|
+
outerHeightStyle: 0
|
|
48
|
+
}), F = i.useCallback(() => {
|
|
49
|
+
const d = b.current, y = we(d).getComputedStyle(d);
|
|
50
|
+
if (y.width === "0px")
|
|
83
51
|
return {
|
|
84
|
-
outerHeightStyle: 0
|
|
85
|
-
overflowing: !1
|
|
52
|
+
outerHeightStyle: 0
|
|
86
53
|
};
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
` && (
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
|
|
95
|
-
const
|
|
54
|
+
const f = w.current;
|
|
55
|
+
f.style.width = y.width, f.value = d.value || n.placeholder || "x", f.value.slice(-1) === `
|
|
56
|
+
` && (f.value += " ");
|
|
57
|
+
const I = y.boxSizing, L = X(y.paddingBottom) + X(y.paddingTop), A = X(y.borderBottomWidth) + X(y.borderTopWidth), P = f.scrollHeight;
|
|
58
|
+
f.value = "x";
|
|
59
|
+
const O = f.scrollHeight;
|
|
60
|
+
let v = P;
|
|
61
|
+
u && (v = Math.max(Number(u) * O, v)), s && (v = Math.min(Number(s) * O, v)), v = Math.max(v, O);
|
|
62
|
+
const M = v + (I === "border-box" ? L + A : 0), Y = Math.abs(v - P) <= 1;
|
|
96
63
|
return {
|
|
97
|
-
outerHeightStyle:
|
|
98
|
-
|
|
64
|
+
outerHeightStyle: M,
|
|
65
|
+
overflow: Y
|
|
99
66
|
};
|
|
100
|
-
}, [s,
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
67
|
+
}, [s, u, n.placeholder]), B = (d, x) => {
|
|
68
|
+
const {
|
|
69
|
+
outerHeightStyle: y,
|
|
70
|
+
overflow: f
|
|
71
|
+
} = x;
|
|
72
|
+
return T.current < 20 && (y > 0 && Math.abs((d.outerHeightStyle || 0) - y) > 1 || d.overflow !== f) ? (T.current += 1, {
|
|
73
|
+
overflow: f,
|
|
74
|
+
outerHeightStyle: y
|
|
75
|
+
}) : (process.env.NODE_ENV !== "production" && T.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(`
|
|
76
|
+
`)), d);
|
|
77
|
+
}, S = i.useCallback(() => {
|
|
78
|
+
const d = F();
|
|
79
|
+
Te(d) || k((x) => B(x, d));
|
|
80
|
+
}, [F]), j = () => {
|
|
81
|
+
const d = F();
|
|
82
|
+
Te(d) || Je.flushSync(() => {
|
|
83
|
+
k((x) => B(x, d));
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
i.useEffect(() => {
|
|
87
|
+
const d = Qe(() => {
|
|
88
|
+
T.current = 0, b.current && j();
|
|
89
|
+
});
|
|
90
|
+
let x;
|
|
91
|
+
const y = b.current, f = we(y);
|
|
92
|
+
return f.addEventListener("resize", d), typeof ResizeObserver < "u" && (x = new ResizeObserver(d), x.observe(y)), () => {
|
|
93
|
+
d.clear(), f.removeEventListener("resize", d), x && x.disconnect();
|
|
121
94
|
};
|
|
122
|
-
}
|
|
95
|
+
}), ke(() => {
|
|
123
96
|
S();
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
|
|
97
|
+
}), i.useEffect(() => {
|
|
98
|
+
T.current = 0;
|
|
99
|
+
}, [g]);
|
|
100
|
+
const W = (d) => {
|
|
101
|
+
T.current = 0, l || S(), t && t(d);
|
|
127
102
|
};
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
-
value:
|
|
131
|
-
onChange:
|
|
132
|
-
ref:
|
|
133
|
-
rows:
|
|
134
|
-
style:
|
|
135
|
-
|
|
103
|
+
return /* @__PURE__ */ U(i.Fragment, {
|
|
104
|
+
children: [/* @__PURE__ */ N("textarea", a({
|
|
105
|
+
value: g,
|
|
106
|
+
onChange: W,
|
|
107
|
+
ref: C,
|
|
108
|
+
rows: u,
|
|
109
|
+
style: a({
|
|
110
|
+
height: E.outerHeightStyle,
|
|
111
|
+
// Need a large enough difference to allow scrolling.
|
|
112
|
+
// This prevents infinite rendering loop.
|
|
113
|
+
overflow: E.overflow ? "hidden" : void 0
|
|
114
|
+
}, h)
|
|
115
|
+
}, p)), /* @__PURE__ */ N("textarea", {
|
|
136
116
|
"aria-hidden": !0,
|
|
137
117
|
className: n.className,
|
|
138
118
|
readOnly: !0,
|
|
139
|
-
ref:
|
|
119
|
+
ref: w,
|
|
140
120
|
tabIndex: -1,
|
|
141
|
-
style:
|
|
142
|
-
|
|
143
|
-
paddingBottom: 0
|
|
121
|
+
style: a({}, oo.shadow, h, {
|
|
122
|
+
padding: 0
|
|
144
123
|
})
|
|
145
124
|
})]
|
|
146
125
|
});
|
|
147
126
|
});
|
|
148
|
-
process.env.NODE_ENV !== "production" && (
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
//
|
|
152
|
-
//
|
|
127
|
+
process.env.NODE_ENV !== "production" && (Fe.propTypes = {
|
|
128
|
+
// ----------------------------- Warning --------------------------------
|
|
129
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
130
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
131
|
+
// ----------------------------------------------------------------------
|
|
153
132
|
/**
|
|
154
133
|
* @ignore
|
|
155
134
|
*/
|
|
@@ -180,73 +159,125 @@ process.env.NODE_ENV !== "production" && (ze.propTypes = {
|
|
|
180
159
|
*/
|
|
181
160
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
182
161
|
});
|
|
183
|
-
function
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
162
|
+
function no(o) {
|
|
163
|
+
return o == null || Object.keys(o).length === 0;
|
|
164
|
+
}
|
|
165
|
+
function ze(o) {
|
|
166
|
+
const {
|
|
167
|
+
styles: n,
|
|
168
|
+
defaultTheme: r = {}
|
|
169
|
+
} = o;
|
|
170
|
+
return /* @__PURE__ */ N(Xe, {
|
|
171
|
+
styles: typeof n == "function" ? (s) => n(no(s) ? r : s) : n
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
process.env.NODE_ENV !== "production" && (ze.propTypes = {
|
|
175
|
+
defaultTheme: e.object,
|
|
176
|
+
styles: e.oneOfType([e.array, e.string, e.object, e.func])
|
|
177
|
+
});
|
|
178
|
+
function Ie({
|
|
179
|
+
styles: o,
|
|
180
|
+
themeId: n,
|
|
181
|
+
defaultTheme: r = {}
|
|
182
|
+
}) {
|
|
183
|
+
const t = Ue(r), s = typeof o == "function" ? o(n && t[n] || t) : o;
|
|
184
|
+
return /* @__PURE__ */ N(ze, {
|
|
185
|
+
styles: s
|
|
186
|
+
});
|
|
188
187
|
}
|
|
189
188
|
process.env.NODE_ENV !== "production" && (Ie.propTypes = {
|
|
190
189
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
191
190
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
192
|
-
// │
|
|
191
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
193
192
|
// └─────────────────────────────────────────────────────────────────────┘
|
|
193
|
+
/**
|
|
194
|
+
* @ignore
|
|
195
|
+
*/
|
|
196
|
+
defaultTheme: e.object,
|
|
197
|
+
/**
|
|
198
|
+
* @ignore
|
|
199
|
+
*/
|
|
200
|
+
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool]),
|
|
201
|
+
/**
|
|
202
|
+
* @ignore
|
|
203
|
+
*/
|
|
204
|
+
themeId: e.string
|
|
205
|
+
});
|
|
206
|
+
function me({
|
|
207
|
+
props: o,
|
|
208
|
+
states: n,
|
|
209
|
+
muiFormControl: r
|
|
210
|
+
}) {
|
|
211
|
+
return n.reduce((t, s) => (t[s] = o[s], r && typeof o[s] > "u" && (t[s] = r[s]), t), {});
|
|
212
|
+
}
|
|
213
|
+
function Ae(o) {
|
|
214
|
+
return /* @__PURE__ */ N(Ie, a({}, o, {
|
|
215
|
+
defaultTheme: Ge
|
|
216
|
+
}));
|
|
217
|
+
}
|
|
218
|
+
process.env.NODE_ENV !== "production" && (Ae.propTypes = {
|
|
219
|
+
// ----------------------------- Warning --------------------------------
|
|
220
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
221
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
222
|
+
// ----------------------------------------------------------------------
|
|
194
223
|
/**
|
|
195
224
|
* The styles you want to apply globally.
|
|
196
225
|
*/
|
|
197
|
-
styles: e.oneOfType([e.
|
|
226
|
+
styles: e.oneOfType([e.func, e.number, e.object, e.shape({
|
|
227
|
+
__emotion_styles: e.any.isRequired
|
|
228
|
+
}), e.string, e.bool])
|
|
198
229
|
});
|
|
199
|
-
function
|
|
230
|
+
function Re(o) {
|
|
200
231
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
201
232
|
}
|
|
202
|
-
function
|
|
203
|
-
return o && (
|
|
233
|
+
function Me(o, n = !1) {
|
|
234
|
+
return o && (Re(o.value) && o.value !== "" || n && Re(o.defaultValue) && o.defaultValue !== "");
|
|
204
235
|
}
|
|
205
|
-
function
|
|
236
|
+
function ro(o) {
|
|
206
237
|
return o.startAdornment;
|
|
207
238
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
239
|
+
function to(o) {
|
|
240
|
+
return re("MuiInputBase", o);
|
|
210
241
|
}
|
|
211
|
-
const
|
|
242
|
+
const pe = ee("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), so = ["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"], io = (o, n) => {
|
|
212
243
|
const {
|
|
213
244
|
ownerState: r
|
|
214
245
|
} = o;
|
|
215
|
-
return [n.root, r.formControl && n.formControl, r.startAdornment && n.adornedStart, r.endAdornment && n.adornedEnd, r.error && n.error, r.size === "small" && n.sizeSmall, r.multiline && n.multiline, r.color && n[`color${
|
|
216
|
-
},
|
|
246
|
+
return [n.root, r.formControl && n.formControl, r.startAdornment && n.adornedStart, r.endAdornment && n.adornedEnd, r.error && n.error, r.size === "small" && n.sizeSmall, r.multiline && n.multiline, r.color && n[`color${K(r.color)}`], r.fullWidth && n.fullWidth, r.hiddenLabel && n.hiddenLabel];
|
|
247
|
+
}, ao = (o, n) => {
|
|
217
248
|
const {
|
|
218
249
|
ownerState: r
|
|
219
250
|
} = o;
|
|
220
251
|
return [n.input, r.size === "small" && n.inputSizeSmall, r.multiline && n.inputMultiline, r.type === "search" && n.inputTypeSearch, r.startAdornment && n.inputAdornedStart, r.endAdornment && n.inputAdornedEnd, r.hiddenLabel && n.inputHiddenLabel];
|
|
221
|
-
},
|
|
252
|
+
}, lo = (o) => {
|
|
222
253
|
const {
|
|
223
254
|
classes: n,
|
|
224
255
|
color: r,
|
|
225
256
|
disabled: t,
|
|
226
257
|
error: s,
|
|
227
|
-
endAdornment:
|
|
228
|
-
focused:
|
|
229
|
-
formControl:
|
|
230
|
-
fullWidth:
|
|
258
|
+
endAdornment: u,
|
|
259
|
+
focused: h,
|
|
260
|
+
formControl: g,
|
|
261
|
+
fullWidth: p,
|
|
231
262
|
hiddenLabel: l,
|
|
232
|
-
multiline:
|
|
233
|
-
readOnly:
|
|
234
|
-
size:
|
|
235
|
-
startAdornment:
|
|
236
|
-
type:
|
|
237
|
-
} = o,
|
|
238
|
-
root: ["root", `color${
|
|
239
|
-
input: ["input", t && "disabled",
|
|
263
|
+
multiline: b,
|
|
264
|
+
readOnly: C,
|
|
265
|
+
size: w,
|
|
266
|
+
startAdornment: T,
|
|
267
|
+
type: E
|
|
268
|
+
} = o, k = {
|
|
269
|
+
root: ["root", `color${K(r)}`, t && "disabled", s && "error", p && "fullWidth", h && "focused", g && "formControl", w === "small" && "sizeSmall", b && "multiline", T && "adornedStart", u && "adornedEnd", l && "hiddenLabel", C && "readOnly"],
|
|
270
|
+
input: ["input", t && "disabled", E === "search" && "inputTypeSearch", b && "inputMultiline", w === "small" && "inputSizeSmall", l && "inputHiddenLabel", T && "inputAdornedStart", u && "inputAdornedEnd", C && "readOnly"]
|
|
240
271
|
};
|
|
241
|
-
return
|
|
242
|
-
},
|
|
272
|
+
return ne(k, to, n);
|
|
273
|
+
}, uo = _("div", {
|
|
243
274
|
name: "MuiInputBase",
|
|
244
275
|
slot: "Root",
|
|
245
|
-
overridesResolver:
|
|
276
|
+
overridesResolver: io
|
|
246
277
|
})(({
|
|
247
278
|
theme: o,
|
|
248
279
|
ownerState: n
|
|
249
|
-
}) =>
|
|
280
|
+
}) => a({}, o.typography.body1, {
|
|
250
281
|
color: (o.vars || o).palette.text.primary,
|
|
251
282
|
lineHeight: "1.4375em",
|
|
252
283
|
// 23px
|
|
@@ -256,25 +287,25 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
256
287
|
cursor: "text",
|
|
257
288
|
display: "inline-flex",
|
|
258
289
|
alignItems: "center",
|
|
259
|
-
[`&.${
|
|
290
|
+
[`&.${pe.disabled}`]: {
|
|
260
291
|
color: (o.vars || o).palette.text.disabled,
|
|
261
292
|
cursor: "default"
|
|
262
293
|
}
|
|
263
|
-
}, n.multiline &&
|
|
294
|
+
}, n.multiline && a({
|
|
264
295
|
padding: "4px 0 5px"
|
|
265
296
|
}, n.size === "small" && {
|
|
266
297
|
paddingTop: 1
|
|
267
298
|
}), n.fullWidth && {
|
|
268
299
|
width: "100%"
|
|
269
|
-
})),
|
|
300
|
+
})), co = _("input", {
|
|
270
301
|
name: "MuiInputBase",
|
|
271
302
|
slot: "Input",
|
|
272
|
-
overridesResolver:
|
|
303
|
+
overridesResolver: ao
|
|
273
304
|
})(({
|
|
274
305
|
theme: o,
|
|
275
306
|
ownerState: n
|
|
276
307
|
}) => {
|
|
277
|
-
const r = o.palette.mode === "light", t =
|
|
308
|
+
const r = o.palette.mode === "light", t = a({
|
|
278
309
|
color: "currentColor"
|
|
279
310
|
}, o.vars ? {
|
|
280
311
|
opacity: o.vars.opacity.inputPlaceholder
|
|
@@ -286,12 +317,12 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
286
317
|
})
|
|
287
318
|
}), s = {
|
|
288
319
|
opacity: "0 !important"
|
|
289
|
-
},
|
|
320
|
+
}, u = o.vars ? {
|
|
290
321
|
opacity: o.vars.opacity.inputPlaceholder
|
|
291
322
|
} : {
|
|
292
323
|
opacity: r ? 0.42 : 0.5
|
|
293
324
|
};
|
|
294
|
-
return
|
|
325
|
+
return a({
|
|
295
326
|
font: "inherit",
|
|
296
327
|
letterSpacing: "inherit",
|
|
297
328
|
color: "currentColor",
|
|
@@ -330,7 +361,7 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
330
361
|
WebkitAppearance: "none"
|
|
331
362
|
},
|
|
332
363
|
// Show and hide the placeholder logic
|
|
333
|
-
[`label[data-shrink=false] + .${
|
|
364
|
+
[`label[data-shrink=false] + .${pe.formControl} &`]: {
|
|
334
365
|
"&::-webkit-input-placeholder": s,
|
|
335
366
|
"&::-moz-placeholder": s,
|
|
336
367
|
// Firefox 19+
|
|
@@ -338,15 +369,15 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
338
369
|
// IE11
|
|
339
370
|
"&::-ms-input-placeholder": s,
|
|
340
371
|
// Edge
|
|
341
|
-
"&:focus::-webkit-input-placeholder":
|
|
342
|
-
"&:focus::-moz-placeholder":
|
|
372
|
+
"&:focus::-webkit-input-placeholder": u,
|
|
373
|
+
"&:focus::-moz-placeholder": u,
|
|
343
374
|
// Firefox 19+
|
|
344
|
-
"&:focus:-ms-input-placeholder":
|
|
375
|
+
"&:focus:-ms-input-placeholder": u,
|
|
345
376
|
// IE11
|
|
346
|
-
"&:focus::-ms-input-placeholder":
|
|
377
|
+
"&:focus::-ms-input-placeholder": u
|
|
347
378
|
// Edge
|
|
348
379
|
},
|
|
349
|
-
[`&.${
|
|
380
|
+
[`&.${pe.disabled}`]: {
|
|
350
381
|
opacity: 1,
|
|
351
382
|
// Reset iOS opacity
|
|
352
383
|
WebkitTextFillColor: (o.vars || o).palette.text.disabled
|
|
@@ -367,7 +398,7 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
367
398
|
// Improve type search style.
|
|
368
399
|
MozAppearance: "textfield"
|
|
369
400
|
});
|
|
370
|
-
}),
|
|
401
|
+
}), po = /* @__PURE__ */ N(Ae, {
|
|
371
402
|
styles: {
|
|
372
403
|
"@keyframes mui-auto-fill": {
|
|
373
404
|
from: {
|
|
@@ -380,179 +411,179 @@ const fe = X("MuiInputBase", ["root", "formControl", "focused", "disabled", "ado
|
|
|
380
411
|
}
|
|
381
412
|
}
|
|
382
413
|
}
|
|
383
|
-
}),
|
|
414
|
+
}), fo = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
384
415
|
var t;
|
|
385
|
-
const s =
|
|
416
|
+
const s = oe({
|
|
386
417
|
props: n,
|
|
387
418
|
name: "MuiInputBase"
|
|
388
419
|
}), {
|
|
389
|
-
"aria-describedby":
|
|
390
|
-
autoComplete:
|
|
391
|
-
autoFocus:
|
|
392
|
-
className:
|
|
420
|
+
"aria-describedby": u,
|
|
421
|
+
autoComplete: h,
|
|
422
|
+
autoFocus: g,
|
|
423
|
+
className: p,
|
|
393
424
|
components: l = {},
|
|
394
|
-
componentsProps:
|
|
395
|
-
defaultValue:
|
|
396
|
-
disabled:
|
|
397
|
-
disableInjectingGlobalStyles:
|
|
398
|
-
endAdornment:
|
|
399
|
-
fullWidth:
|
|
400
|
-
id:
|
|
401
|
-
inputComponent:
|
|
402
|
-
inputProps:
|
|
403
|
-
inputRef:
|
|
404
|
-
maxRows:
|
|
405
|
-
minRows:
|
|
406
|
-
multiline:
|
|
407
|
-
name:
|
|
408
|
-
onBlur:
|
|
409
|
-
onChange:
|
|
410
|
-
onClick:
|
|
411
|
-
onFocus:
|
|
412
|
-
onKeyDown:
|
|
413
|
-
onKeyUp:
|
|
414
|
-
placeholder:
|
|
415
|
-
readOnly:
|
|
416
|
-
renderSuffix:
|
|
417
|
-
rows:
|
|
418
|
-
slotProps:
|
|
419
|
-
slots:
|
|
420
|
-
startAdornment:
|
|
421
|
-
type:
|
|
422
|
-
value:
|
|
423
|
-
} = s,
|
|
424
|
-
current:
|
|
425
|
-
} =
|
|
425
|
+
componentsProps: b = {},
|
|
426
|
+
defaultValue: C,
|
|
427
|
+
disabled: w,
|
|
428
|
+
disableInjectingGlobalStyles: T,
|
|
429
|
+
endAdornment: E,
|
|
430
|
+
fullWidth: k = !1,
|
|
431
|
+
id: F,
|
|
432
|
+
inputComponent: B = "input",
|
|
433
|
+
inputProps: S = {},
|
|
434
|
+
inputRef: j,
|
|
435
|
+
maxRows: W,
|
|
436
|
+
minRows: d,
|
|
437
|
+
multiline: x = !1,
|
|
438
|
+
name: y,
|
|
439
|
+
onBlur: f,
|
|
440
|
+
onChange: I,
|
|
441
|
+
onClick: L,
|
|
442
|
+
onFocus: A,
|
|
443
|
+
onKeyDown: P,
|
|
444
|
+
onKeyUp: O,
|
|
445
|
+
placeholder: v,
|
|
446
|
+
readOnly: M,
|
|
447
|
+
renderSuffix: Y,
|
|
448
|
+
rows: Z,
|
|
449
|
+
slotProps: be = {},
|
|
450
|
+
slots: he = {},
|
|
451
|
+
startAdornment: $,
|
|
452
|
+
type: ye = "text",
|
|
453
|
+
value: Le
|
|
454
|
+
} = s, Be = G(s, so), J = S.value != null ? S.value : Le, {
|
|
455
|
+
current: te
|
|
456
|
+
} = i.useRef(J != null), D = i.useRef(), Pe = i.useCallback((c) => {
|
|
426
457
|
process.env.NODE_ENV !== "production" && c && c.nodeName !== "INPUT" && !c.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(`
|
|
427
458
|
`));
|
|
428
|
-
}, []),
|
|
429
|
-
process.env.NODE_ENV !== "production" &&
|
|
459
|
+
}, []), De = Ne(D, j, S.ref, Pe), [se, ie] = i.useState(!1), m = fe();
|
|
460
|
+
process.env.NODE_ENV !== "production" && i.useEffect(() => {
|
|
430
461
|
if (m)
|
|
431
462
|
return m.registerEffect();
|
|
432
463
|
}, [m]);
|
|
433
|
-
const R =
|
|
464
|
+
const R = me({
|
|
434
465
|
props: s,
|
|
435
466
|
muiFormControl: m,
|
|
436
467
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
437
468
|
});
|
|
438
|
-
R.focused = m ? m.focused :
|
|
439
|
-
!m &&
|
|
440
|
-
}, [m,
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
}, [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
value:
|
|
469
|
+
R.focused = m ? m.focused : se, i.useEffect(() => {
|
|
470
|
+
!m && w && se && (ie(!1), f && f());
|
|
471
|
+
}, [m, w, se, f]);
|
|
472
|
+
const ae = m && m.onFilled, le = m && m.onEmpty, q = i.useCallback((c) => {
|
|
473
|
+
Me(c) ? ae && ae() : le && le();
|
|
474
|
+
}, [ae, le]);
|
|
475
|
+
ke(() => {
|
|
476
|
+
te && q({
|
|
477
|
+
value: J
|
|
447
478
|
});
|
|
448
|
-
}, [
|
|
449
|
-
const
|
|
479
|
+
}, [J, q, te]);
|
|
480
|
+
const _e = (c) => {
|
|
450
481
|
if (R.disabled) {
|
|
451
482
|
c.stopPropagation();
|
|
452
483
|
return;
|
|
453
484
|
}
|
|
454
|
-
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
}, $e = (c, ...
|
|
458
|
-
if (!
|
|
459
|
-
const Se = c.target ||
|
|
485
|
+
A && A(c), S.onFocus && S.onFocus(c), m && m.onFocus ? m.onFocus(c) : ie(!0);
|
|
486
|
+
}, je = (c) => {
|
|
487
|
+
f && f(c), S.onBlur && S.onBlur(c), m && m.onBlur ? m.onBlur(c) : ie(!1);
|
|
488
|
+
}, $e = (c, ...Ce) => {
|
|
489
|
+
if (!te) {
|
|
490
|
+
const Se = c.target || D.current;
|
|
460
491
|
if (Se == null)
|
|
461
|
-
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." :
|
|
462
|
-
|
|
492
|
+
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." : Ve(1));
|
|
493
|
+
q({
|
|
463
494
|
value: Se.value
|
|
464
495
|
});
|
|
465
496
|
}
|
|
466
|
-
|
|
497
|
+
S.onChange && S.onChange(c, ...Ce), I && I(c, ...Ce);
|
|
467
498
|
};
|
|
468
|
-
|
|
469
|
-
|
|
499
|
+
i.useEffect(() => {
|
|
500
|
+
q(D.current);
|
|
470
501
|
}, []);
|
|
471
502
|
const qe = (c) => {
|
|
472
|
-
|
|
503
|
+
D.current && c.currentTarget === c.target && D.current.focus(), L && L(c);
|
|
473
504
|
};
|
|
474
|
-
let
|
|
475
|
-
|
|
505
|
+
let ue = B, z = S;
|
|
506
|
+
x && ue === "input" && (Z ? (process.env.NODE_ENV !== "production" && (d || W) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), z = a({
|
|
476
507
|
type: void 0,
|
|
477
|
-
minRows:
|
|
478
|
-
maxRows:
|
|
479
|
-
},
|
|
508
|
+
minRows: Z,
|
|
509
|
+
maxRows: Z
|
|
510
|
+
}, z)) : z = a({
|
|
480
511
|
type: void 0,
|
|
481
|
-
maxRows:
|
|
482
|
-
minRows:
|
|
483
|
-
},
|
|
512
|
+
maxRows: W,
|
|
513
|
+
minRows: d
|
|
514
|
+
}, z), ue = Fe);
|
|
484
515
|
const He = (c) => {
|
|
485
|
-
|
|
516
|
+
q(c.animationName === "mui-auto-fill-cancel" ? D.current : {
|
|
486
517
|
value: "x"
|
|
487
518
|
});
|
|
488
519
|
};
|
|
489
|
-
|
|
490
|
-
m && m.setAdornedStart(
|
|
491
|
-
}, [m,
|
|
492
|
-
const
|
|
520
|
+
i.useEffect(() => {
|
|
521
|
+
m && m.setAdornedStart(!!$);
|
|
522
|
+
}, [m, $]);
|
|
523
|
+
const Q = a({}, s, {
|
|
493
524
|
color: R.color || "primary",
|
|
494
525
|
disabled: R.disabled,
|
|
495
|
-
endAdornment:
|
|
526
|
+
endAdornment: E,
|
|
496
527
|
error: R.error,
|
|
497
528
|
focused: R.focused,
|
|
498
529
|
formControl: m,
|
|
499
|
-
fullWidth:
|
|
530
|
+
fullWidth: k,
|
|
500
531
|
hiddenLabel: R.hiddenLabel,
|
|
501
|
-
multiline:
|
|
532
|
+
multiline: x,
|
|
502
533
|
size: R.size,
|
|
503
|
-
startAdornment:
|
|
504
|
-
type:
|
|
505
|
-
}),
|
|
506
|
-
return
|
|
507
|
-
children: [!
|
|
508
|
-
ownerState:
|
|
534
|
+
startAdornment: $,
|
|
535
|
+
type: ye
|
|
536
|
+
}), ge = lo(Q), ve = he.root || l.Root || uo, de = be.root || b.root || {}, xe = he.input || l.Input || co;
|
|
537
|
+
return z = a({}, z, (t = be.input) != null ? t : b.input), /* @__PURE__ */ U(i.Fragment, {
|
|
538
|
+
children: [!T && po, /* @__PURE__ */ U(ve, a({}, de, !Oe(ve) && {
|
|
539
|
+
ownerState: a({}, Q, de.ownerState)
|
|
509
540
|
}, {
|
|
510
541
|
ref: r,
|
|
511
542
|
onClick: qe
|
|
512
|
-
},
|
|
513
|
-
className:
|
|
514
|
-
children: [
|
|
543
|
+
}, Be, {
|
|
544
|
+
className: V(ge.root, de.className, p, M && "MuiInputBase-readOnly"),
|
|
545
|
+
children: [$, /* @__PURE__ */ N(Ee.Provider, {
|
|
515
546
|
value: null,
|
|
516
|
-
children: /* @__PURE__ */
|
|
517
|
-
ownerState:
|
|
547
|
+
children: /* @__PURE__ */ N(xe, a({
|
|
548
|
+
ownerState: Q,
|
|
518
549
|
"aria-invalid": R.error,
|
|
519
|
-
"aria-describedby":
|
|
520
|
-
autoComplete:
|
|
521
|
-
autoFocus:
|
|
522
|
-
defaultValue:
|
|
550
|
+
"aria-describedby": u,
|
|
551
|
+
autoComplete: h,
|
|
552
|
+
autoFocus: g,
|
|
553
|
+
defaultValue: C,
|
|
523
554
|
disabled: R.disabled,
|
|
524
|
-
id:
|
|
555
|
+
id: F,
|
|
525
556
|
onAnimationStart: He,
|
|
526
|
-
name:
|
|
527
|
-
placeholder:
|
|
528
|
-
readOnly:
|
|
557
|
+
name: y,
|
|
558
|
+
placeholder: v,
|
|
559
|
+
readOnly: M,
|
|
529
560
|
required: R.required,
|
|
530
|
-
rows:
|
|
531
|
-
value:
|
|
532
|
-
onKeyDown:
|
|
533
|
-
onKeyUp:
|
|
534
|
-
type:
|
|
535
|
-
},
|
|
536
|
-
as:
|
|
537
|
-
ownerState:
|
|
561
|
+
rows: Z,
|
|
562
|
+
value: J,
|
|
563
|
+
onKeyDown: P,
|
|
564
|
+
onKeyUp: O,
|
|
565
|
+
type: ye
|
|
566
|
+
}, z, !Oe(xe) && {
|
|
567
|
+
as: ue,
|
|
568
|
+
ownerState: a({}, Q, z.ownerState)
|
|
538
569
|
}, {
|
|
539
|
-
ref:
|
|
540
|
-
className:
|
|
541
|
-
onBlur:
|
|
570
|
+
ref: De,
|
|
571
|
+
className: V(ge.input, z.className, M && "MuiInputBase-readOnly"),
|
|
572
|
+
onBlur: je,
|
|
542
573
|
onChange: $e,
|
|
543
|
-
onFocus:
|
|
574
|
+
onFocus: _e
|
|
544
575
|
}))
|
|
545
|
-
}),
|
|
546
|
-
startAdornment:
|
|
576
|
+
}), E, Y ? Y(a({}, R, {
|
|
577
|
+
startAdornment: $
|
|
547
578
|
})) : null]
|
|
548
579
|
}))]
|
|
549
580
|
});
|
|
550
581
|
});
|
|
551
|
-
process.env.NODE_ENV !== "production" && (
|
|
552
|
-
//
|
|
553
|
-
//
|
|
554
|
-
//
|
|
555
|
-
//
|
|
582
|
+
process.env.NODE_ENV !== "production" && (fo.propTypes = {
|
|
583
|
+
// ----------------------------- Warning --------------------------------
|
|
584
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
585
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
586
|
+
// ----------------------------------------------------------------------
|
|
556
587
|
/**
|
|
557
588
|
* @ignore
|
|
558
589
|
*/
|
|
@@ -578,7 +609,7 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
|
578
609
|
/**
|
|
579
610
|
* The color of the component.
|
|
580
611
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
581
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
612
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
582
613
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
583
614
|
*/
|
|
584
615
|
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
@@ -645,7 +676,7 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
|
645
676
|
* Either a string to use a HTML element or a component.
|
|
646
677
|
* @default 'input'
|
|
647
678
|
*/
|
|
648
|
-
inputComponent:
|
|
679
|
+
inputComponent: Ye,
|
|
649
680
|
/**
|
|
650
681
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
651
682
|
* @default {}
|
|
@@ -654,7 +685,7 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
|
654
685
|
/**
|
|
655
686
|
* Pass a ref to the `input` element.
|
|
656
687
|
*/
|
|
657
|
-
inputRef:
|
|
688
|
+
inputRef: Ze,
|
|
658
689
|
/**
|
|
659
690
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
660
691
|
* FormControl.
|
|
@@ -778,97 +809,97 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
|
778
809
|
*/
|
|
779
810
|
value: e.any
|
|
780
811
|
});
|
|
781
|
-
function
|
|
782
|
-
return
|
|
812
|
+
function mo(o) {
|
|
813
|
+
return re("MuiFormLabel", o);
|
|
783
814
|
}
|
|
784
|
-
const
|
|
815
|
+
const H = ee("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), bo = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"], ho = (o) => {
|
|
785
816
|
const {
|
|
786
817
|
classes: n,
|
|
787
818
|
color: r,
|
|
788
819
|
focused: t,
|
|
789
820
|
disabled: s,
|
|
790
|
-
error:
|
|
791
|
-
filled:
|
|
792
|
-
required:
|
|
793
|
-
} = o,
|
|
794
|
-
root: ["root", `color${
|
|
795
|
-
asterisk: ["asterisk",
|
|
821
|
+
error: u,
|
|
822
|
+
filled: h,
|
|
823
|
+
required: g
|
|
824
|
+
} = o, p = {
|
|
825
|
+
root: ["root", `color${K(r)}`, s && "disabled", u && "error", h && "filled", t && "focused", g && "required"],
|
|
826
|
+
asterisk: ["asterisk", u && "error"]
|
|
796
827
|
};
|
|
797
|
-
return
|
|
798
|
-
},
|
|
828
|
+
return ne(p, mo, n);
|
|
829
|
+
}, yo = _("label", {
|
|
799
830
|
name: "MuiFormLabel",
|
|
800
831
|
slot: "Root",
|
|
801
832
|
overridesResolver: ({
|
|
802
833
|
ownerState: o
|
|
803
|
-
}, n) =>
|
|
834
|
+
}, n) => a({}, n.root, o.color === "secondary" && n.colorSecondary, o.filled && n.filled)
|
|
804
835
|
})(({
|
|
805
836
|
theme: o,
|
|
806
837
|
ownerState: n
|
|
807
|
-
}) =>
|
|
838
|
+
}) => a({
|
|
808
839
|
color: (o.vars || o).palette.text.secondary
|
|
809
840
|
}, o.typography.body1, {
|
|
810
841
|
lineHeight: "1.4375em",
|
|
811
842
|
padding: 0,
|
|
812
843
|
position: "relative",
|
|
813
|
-
[`&.${
|
|
844
|
+
[`&.${H.focused}`]: {
|
|
814
845
|
color: (o.vars || o).palette[n.color].main
|
|
815
846
|
},
|
|
816
|
-
[`&.${
|
|
847
|
+
[`&.${H.disabled}`]: {
|
|
817
848
|
color: (o.vars || o).palette.text.disabled
|
|
818
849
|
},
|
|
819
|
-
[`&.${
|
|
850
|
+
[`&.${H.error}`]: {
|
|
820
851
|
color: (o.vars || o).palette.error.main
|
|
821
852
|
}
|
|
822
|
-
})),
|
|
853
|
+
})), go = _("span", {
|
|
823
854
|
name: "MuiFormLabel",
|
|
824
855
|
slot: "Asterisk",
|
|
825
856
|
overridesResolver: (o, n) => n.asterisk
|
|
826
857
|
})(({
|
|
827
858
|
theme: o
|
|
828
859
|
}) => ({
|
|
829
|
-
[`&.${
|
|
860
|
+
[`&.${H.error}`]: {
|
|
830
861
|
color: (o.vars || o).palette.error.main
|
|
831
862
|
}
|
|
832
|
-
})),
|
|
833
|
-
const t =
|
|
863
|
+
})), We = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
864
|
+
const t = oe({
|
|
834
865
|
props: n,
|
|
835
866
|
name: "MuiFormLabel"
|
|
836
867
|
}), {
|
|
837
868
|
children: s,
|
|
838
|
-
className:
|
|
839
|
-
component:
|
|
840
|
-
} = t,
|
|
869
|
+
className: u,
|
|
870
|
+
component: h = "label"
|
|
871
|
+
} = t, g = G(t, bo), p = fe(), l = me({
|
|
841
872
|
props: t,
|
|
842
|
-
muiFormControl:
|
|
873
|
+
muiFormControl: p,
|
|
843
874
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
844
|
-
}),
|
|
875
|
+
}), b = a({}, t, {
|
|
845
876
|
color: l.color || "primary",
|
|
846
|
-
component:
|
|
877
|
+
component: h,
|
|
847
878
|
disabled: l.disabled,
|
|
848
879
|
error: l.error,
|
|
849
880
|
filled: l.filled,
|
|
850
881
|
focused: l.focused,
|
|
851
882
|
required: l.required
|
|
852
|
-
}),
|
|
853
|
-
return /* @__PURE__ */
|
|
854
|
-
as:
|
|
855
|
-
ownerState:
|
|
856
|
-
className:
|
|
883
|
+
}), C = ho(b);
|
|
884
|
+
return /* @__PURE__ */ U(yo, a({
|
|
885
|
+
as: h,
|
|
886
|
+
ownerState: b,
|
|
887
|
+
className: V(C.root, u),
|
|
857
888
|
ref: r
|
|
858
|
-
},
|
|
859
|
-
children: [s, l.required && /* @__PURE__ */
|
|
860
|
-
ownerState:
|
|
889
|
+
}, g, {
|
|
890
|
+
children: [s, l.required && /* @__PURE__ */ U(go, {
|
|
891
|
+
ownerState: b,
|
|
861
892
|
"aria-hidden": !0,
|
|
862
|
-
className:
|
|
893
|
+
className: C.asterisk,
|
|
863
894
|
children: [" ", "*"]
|
|
864
895
|
})]
|
|
865
896
|
}));
|
|
866
897
|
});
|
|
867
|
-
process.env.NODE_ENV !== "production" && (
|
|
868
|
-
//
|
|
869
|
-
//
|
|
870
|
-
//
|
|
871
|
-
//
|
|
898
|
+
process.env.NODE_ENV !== "production" && (We.propTypes = {
|
|
899
|
+
// ----------------------------- Warning --------------------------------
|
|
900
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
901
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
902
|
+
// ----------------------------------------------------------------------
|
|
872
903
|
/**
|
|
873
904
|
* The content of the component.
|
|
874
905
|
*/
|
|
@@ -884,7 +915,7 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
|
|
|
884
915
|
/**
|
|
885
916
|
* The color of the component.
|
|
886
917
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
887
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
918
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
888
919
|
*/
|
|
889
920
|
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
890
921
|
/**
|
|
@@ -917,26 +948,26 @@ process.env.NODE_ENV !== "production" && (Ae.propTypes = {
|
|
|
917
948
|
*/
|
|
918
949
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
919
950
|
});
|
|
920
|
-
function
|
|
921
|
-
return
|
|
951
|
+
function vo(o) {
|
|
952
|
+
return re("MuiInputLabel", o);
|
|
922
953
|
}
|
|
923
|
-
|
|
924
|
-
const
|
|
954
|
+
ee("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
955
|
+
const xo = ["disableAnimation", "margin", "shrink", "variant", "className"], Co = (o) => {
|
|
925
956
|
const {
|
|
926
957
|
classes: n,
|
|
927
958
|
formControl: r,
|
|
928
959
|
size: t,
|
|
929
960
|
shrink: s,
|
|
930
|
-
disableAnimation:
|
|
931
|
-
variant:
|
|
932
|
-
required:
|
|
933
|
-
} = o,
|
|
934
|
-
root: ["root", r && "formControl", !
|
|
935
|
-
asterisk: [
|
|
936
|
-
},
|
|
937
|
-
return
|
|
938
|
-
},
|
|
939
|
-
shouldForwardProp: (o) =>
|
|
961
|
+
disableAnimation: u,
|
|
962
|
+
variant: h,
|
|
963
|
+
required: g
|
|
964
|
+
} = o, l = ne({
|
|
965
|
+
root: ["root", r && "formControl", !u && "animated", s && "shrink", t === "small" && "sizeSmall", h],
|
|
966
|
+
asterisk: [g && "asterisk"]
|
|
967
|
+
}, vo, n);
|
|
968
|
+
return a({}, n, l);
|
|
969
|
+
}, So = _(We, {
|
|
970
|
+
shouldForwardProp: (o) => Ke(o) || o === "classes",
|
|
940
971
|
name: "MuiInputLabel",
|
|
941
972
|
slot: "Root",
|
|
942
973
|
overridesResolver: (o, n) => {
|
|
@@ -944,13 +975,13 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
|
|
|
944
975
|
ownerState: r
|
|
945
976
|
} = o;
|
|
946
977
|
return [{
|
|
947
|
-
[`& .${
|
|
948
|
-
}, n.root, r.formControl && n.formControl, r.size === "small" && n.sizeSmall, r.shrink && n.shrink, !r.disableAnimation && n.animated,
|
|
978
|
+
[`& .${H.asterisk}`]: n.asterisk
|
|
979
|
+
}, n.root, r.formControl && n.formControl, r.size === "small" && n.sizeSmall, r.shrink && n.shrink, !r.disableAnimation && n.animated, n[r.variant]];
|
|
949
980
|
}
|
|
950
981
|
})(({
|
|
951
982
|
theme: o,
|
|
952
983
|
ownerState: n
|
|
953
|
-
}) =>
|
|
984
|
+
}) => a({
|
|
954
985
|
display: "block",
|
|
955
986
|
transformOrigin: "top left",
|
|
956
987
|
whiteSpace: "nowrap",
|
|
@@ -975,7 +1006,7 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
|
|
|
975
1006
|
duration: o.transitions.duration.shorter,
|
|
976
1007
|
easing: o.transitions.easing.easeOut
|
|
977
1008
|
})
|
|
978
|
-
}, n.variant === "filled" &&
|
|
1009
|
+
}, n.variant === "filled" && a({
|
|
979
1010
|
// Chrome's autofill feature gives the input field a yellow background.
|
|
980
1011
|
// Since the input field is behind the label in the HTML tree,
|
|
981
1012
|
// the input field is drawn last and hides the label with an opaque background color.
|
|
@@ -986,14 +1017,14 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
|
|
|
986
1017
|
maxWidth: "calc(100% - 24px)"
|
|
987
1018
|
}, n.size === "small" && {
|
|
988
1019
|
transform: "translate(12px, 13px) scale(1)"
|
|
989
|
-
}, n.shrink &&
|
|
1020
|
+
}, n.shrink && a({
|
|
990
1021
|
userSelect: "none",
|
|
991
1022
|
pointerEvents: "auto",
|
|
992
1023
|
transform: "translate(12px, 7px) scale(0.75)",
|
|
993
1024
|
maxWidth: "calc(133% - 24px)"
|
|
994
1025
|
}, n.size === "small" && {
|
|
995
1026
|
transform: "translate(12px, 4px) scale(0.75)"
|
|
996
|
-
})), n.variant === "outlined" &&
|
|
1027
|
+
})), n.variant === "outlined" && a({
|
|
997
1028
|
// see comment above on filled.zIndex
|
|
998
1029
|
zIndex: 1,
|
|
999
1030
|
pointerEvents: "none",
|
|
@@ -1008,44 +1039,43 @@ const go = ["disableAnimation", "margin", "shrink", "variant", "className"], vo
|
|
|
1008
1039
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
1009
1040
|
maxWidth: "calc(133% - 32px)",
|
|
1010
1041
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
1011
|
-
}))),
|
|
1012
|
-
const t =
|
|
1042
|
+
}))), wo = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
1043
|
+
const t = oe({
|
|
1013
1044
|
name: "MuiInputLabel",
|
|
1014
1045
|
props: n
|
|
1015
1046
|
}), {
|
|
1016
1047
|
disableAnimation: s = !1,
|
|
1017
|
-
shrink:
|
|
1018
|
-
className:
|
|
1019
|
-
} = t,
|
|
1020
|
-
let l =
|
|
1021
|
-
typeof l > "u" &&
|
|
1022
|
-
const
|
|
1048
|
+
shrink: u,
|
|
1049
|
+
className: h
|
|
1050
|
+
} = t, g = G(t, xo), p = fe();
|
|
1051
|
+
let l = u;
|
|
1052
|
+
typeof l > "u" && p && (l = p.filled || p.focused || p.adornedStart);
|
|
1053
|
+
const b = me({
|
|
1023
1054
|
props: t,
|
|
1024
|
-
muiFormControl:
|
|
1025
|
-
states: ["size", "variant", "required"
|
|
1026
|
-
}),
|
|
1055
|
+
muiFormControl: p,
|
|
1056
|
+
states: ["size", "variant", "required"]
|
|
1057
|
+
}), C = a({}, t, {
|
|
1027
1058
|
disableAnimation: s,
|
|
1028
|
-
formControl:
|
|
1059
|
+
formControl: p,
|
|
1029
1060
|
shrink: l,
|
|
1030
|
-
size:
|
|
1031
|
-
variant:
|
|
1032
|
-
required:
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
return /* @__PURE__ */ I(xo, i({
|
|
1061
|
+
size: b.size,
|
|
1062
|
+
variant: b.variant,
|
|
1063
|
+
required: b.required
|
|
1064
|
+
}), w = Co(C);
|
|
1065
|
+
return /* @__PURE__ */ N(So, a({
|
|
1036
1066
|
"data-shrink": l,
|
|
1037
|
-
ownerState:
|
|
1067
|
+
ownerState: C,
|
|
1038
1068
|
ref: r,
|
|
1039
|
-
className:
|
|
1040
|
-
},
|
|
1041
|
-
classes:
|
|
1069
|
+
className: V(w.root, h)
|
|
1070
|
+
}, g, {
|
|
1071
|
+
classes: w
|
|
1042
1072
|
}));
|
|
1043
1073
|
});
|
|
1044
|
-
process.env.NODE_ENV !== "production" && (
|
|
1045
|
-
//
|
|
1046
|
-
//
|
|
1047
|
-
//
|
|
1048
|
-
//
|
|
1074
|
+
process.env.NODE_ENV !== "production" && (wo.propTypes = {
|
|
1075
|
+
// ----------------------------- Warning --------------------------------
|
|
1076
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1077
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1078
|
+
// ----------------------------------------------------------------------
|
|
1049
1079
|
/**
|
|
1050
1080
|
* The content of the component.
|
|
1051
1081
|
*/
|
|
@@ -1061,7 +1091,7 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
|
|
|
1061
1091
|
/**
|
|
1062
1092
|
* The color of the component.
|
|
1063
1093
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1064
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
1094
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1065
1095
|
*/
|
|
1066
1096
|
color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
|
|
1067
1097
|
/**
|
|
@@ -1108,28 +1138,28 @@ process.env.NODE_ENV !== "production" && (Co.propTypes = {
|
|
|
1108
1138
|
*/
|
|
1109
1139
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1110
1140
|
});
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1141
|
+
function Oo(o) {
|
|
1142
|
+
return re("MuiFormControl", o);
|
|
1113
1143
|
}
|
|
1114
|
-
|
|
1115
|
-
const
|
|
1144
|
+
ee("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
|
|
1145
|
+
const To = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"], Ro = (o) => {
|
|
1116
1146
|
const {
|
|
1117
1147
|
classes: n,
|
|
1118
1148
|
margin: r,
|
|
1119
1149
|
fullWidth: t
|
|
1120
1150
|
} = o, s = {
|
|
1121
|
-
root: ["root", r !== "none" && `margin${
|
|
1151
|
+
root: ["root", r !== "none" && `margin${K(r)}`, t && "fullWidth"]
|
|
1122
1152
|
};
|
|
1123
|
-
return
|
|
1124
|
-
},
|
|
1153
|
+
return ne(s, Oo, n);
|
|
1154
|
+
}, Eo = _("div", {
|
|
1125
1155
|
name: "MuiFormControl",
|
|
1126
1156
|
slot: "Root",
|
|
1127
1157
|
overridesResolver: ({
|
|
1128
1158
|
ownerState: o
|
|
1129
|
-
}, n) =>
|
|
1159
|
+
}, n) => a({}, n.root, n[`margin${K(o.margin)}`], o.fullWidth && n.fullWidth)
|
|
1130
1160
|
})(({
|
|
1131
1161
|
ownerState: o
|
|
1132
|
-
}) =>
|
|
1162
|
+
}) => a({
|
|
1133
1163
|
display: "inline-flex",
|
|
1134
1164
|
flexDirection: "column",
|
|
1135
1165
|
position: "relative",
|
|
@@ -1147,103 +1177,103 @@ const Oo = ["children", "className", "color", "component", "disabled", "error",
|
|
|
1147
1177
|
marginBottom: 4
|
|
1148
1178
|
}, o.fullWidth && {
|
|
1149
1179
|
width: "100%"
|
|
1150
|
-
})),
|
|
1151
|
-
const t =
|
|
1180
|
+
})), No = /* @__PURE__ */ i.forwardRef(function(n, r) {
|
|
1181
|
+
const t = oe({
|
|
1152
1182
|
props: n,
|
|
1153
1183
|
name: "MuiFormControl"
|
|
1154
1184
|
}), {
|
|
1155
1185
|
children: s,
|
|
1156
|
-
className:
|
|
1157
|
-
color:
|
|
1158
|
-
component:
|
|
1159
|
-
disabled:
|
|
1186
|
+
className: u,
|
|
1187
|
+
color: h = "primary",
|
|
1188
|
+
component: g = "div",
|
|
1189
|
+
disabled: p = !1,
|
|
1160
1190
|
error: l = !1,
|
|
1161
|
-
focused:
|
|
1162
|
-
fullWidth:
|
|
1163
|
-
hiddenLabel:
|
|
1164
|
-
margin:
|
|
1165
|
-
required:
|
|
1166
|
-
size:
|
|
1167
|
-
variant:
|
|
1168
|
-
} = t,
|
|
1169
|
-
color:
|
|
1170
|
-
component:
|
|
1171
|
-
disabled:
|
|
1191
|
+
focused: b,
|
|
1192
|
+
fullWidth: C = !1,
|
|
1193
|
+
hiddenLabel: w = !1,
|
|
1194
|
+
margin: T = "none",
|
|
1195
|
+
required: E = !1,
|
|
1196
|
+
size: k = "medium",
|
|
1197
|
+
variant: F = "outlined"
|
|
1198
|
+
} = t, B = G(t, To), S = a({}, t, {
|
|
1199
|
+
color: h,
|
|
1200
|
+
component: g,
|
|
1201
|
+
disabled: p,
|
|
1172
1202
|
error: l,
|
|
1173
|
-
fullWidth:
|
|
1174
|
-
hiddenLabel:
|
|
1175
|
-
margin:
|
|
1176
|
-
required:
|
|
1177
|
-
size:
|
|
1178
|
-
variant:
|
|
1179
|
-
}),
|
|
1180
|
-
let
|
|
1181
|
-
return s &&
|
|
1182
|
-
if (!
|
|
1203
|
+
fullWidth: C,
|
|
1204
|
+
hiddenLabel: w,
|
|
1205
|
+
margin: T,
|
|
1206
|
+
required: E,
|
|
1207
|
+
size: k,
|
|
1208
|
+
variant: F
|
|
1209
|
+
}), j = Ro(S), [W, d] = i.useState(() => {
|
|
1210
|
+
let O = !1;
|
|
1211
|
+
return s && i.Children.forEach(s, (v) => {
|
|
1212
|
+
if (!ce(v, ["Input", "Select"]))
|
|
1183
1213
|
return;
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1186
|
-
}),
|
|
1187
|
-
}), [
|
|
1188
|
-
let
|
|
1189
|
-
return s &&
|
|
1190
|
-
|
|
1191
|
-
}),
|
|
1192
|
-
}), [
|
|
1193
|
-
|
|
1194
|
-
const
|
|
1195
|
-
let
|
|
1214
|
+
const M = ce(v, ["Select"]) ? v.props.input : v;
|
|
1215
|
+
M && ro(M.props) && (O = !0);
|
|
1216
|
+
}), O;
|
|
1217
|
+
}), [x, y] = i.useState(() => {
|
|
1218
|
+
let O = !1;
|
|
1219
|
+
return s && i.Children.forEach(s, (v) => {
|
|
1220
|
+
ce(v, ["Input", "Select"]) && Me(v.props, !0) && (O = !0);
|
|
1221
|
+
}), O;
|
|
1222
|
+
}), [f, I] = i.useState(!1);
|
|
1223
|
+
p && f && I(!1);
|
|
1224
|
+
const L = b !== void 0 && !p ? b : f;
|
|
1225
|
+
let A;
|
|
1196
1226
|
if (process.env.NODE_ENV !== "production") {
|
|
1197
|
-
const
|
|
1198
|
-
|
|
1199
|
-
`)),
|
|
1200
|
-
|
|
1227
|
+
const O = i.useRef(!1);
|
|
1228
|
+
A = () => (O.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
1229
|
+
`)), O.current = !0, () => {
|
|
1230
|
+
O.current = !1;
|
|
1201
1231
|
});
|
|
1202
1232
|
}
|
|
1203
|
-
const
|
|
1204
|
-
adornedStart:
|
|
1205
|
-
setAdornedStart:
|
|
1206
|
-
color:
|
|
1207
|
-
disabled:
|
|
1233
|
+
const P = i.useMemo(() => ({
|
|
1234
|
+
adornedStart: W,
|
|
1235
|
+
setAdornedStart: d,
|
|
1236
|
+
color: h,
|
|
1237
|
+
disabled: p,
|
|
1208
1238
|
error: l,
|
|
1209
|
-
filled:
|
|
1210
|
-
focused:
|
|
1211
|
-
fullWidth:
|
|
1212
|
-
hiddenLabel:
|
|
1213
|
-
size:
|
|
1239
|
+
filled: x,
|
|
1240
|
+
focused: L,
|
|
1241
|
+
fullWidth: C,
|
|
1242
|
+
hiddenLabel: w,
|
|
1243
|
+
size: k,
|
|
1214
1244
|
onBlur: () => {
|
|
1215
|
-
|
|
1245
|
+
I(!1);
|
|
1216
1246
|
},
|
|
1217
1247
|
onEmpty: () => {
|
|
1218
|
-
|
|
1248
|
+
y(!1);
|
|
1219
1249
|
},
|
|
1220
1250
|
onFilled: () => {
|
|
1221
|
-
|
|
1251
|
+
y(!0);
|
|
1222
1252
|
},
|
|
1223
1253
|
onFocus: () => {
|
|
1224
|
-
|
|
1254
|
+
I(!0);
|
|
1225
1255
|
},
|
|
1226
|
-
registerEffect:
|
|
1227
|
-
required:
|
|
1228
|
-
variant:
|
|
1229
|
-
}), [
|
|
1230
|
-
return /* @__PURE__ */
|
|
1231
|
-
value:
|
|
1232
|
-
children: /* @__PURE__ */
|
|
1233
|
-
as:
|
|
1234
|
-
ownerState:
|
|
1235
|
-
className:
|
|
1256
|
+
registerEffect: A,
|
|
1257
|
+
required: E,
|
|
1258
|
+
variant: F
|
|
1259
|
+
}), [W, h, p, l, x, L, C, w, A, E, k, F]);
|
|
1260
|
+
return /* @__PURE__ */ N(Ee.Provider, {
|
|
1261
|
+
value: P,
|
|
1262
|
+
children: /* @__PURE__ */ N(Eo, a({
|
|
1263
|
+
as: g,
|
|
1264
|
+
ownerState: S,
|
|
1265
|
+
className: V(j.root, u),
|
|
1236
1266
|
ref: r
|
|
1237
|
-
},
|
|
1267
|
+
}, B, {
|
|
1238
1268
|
children: s
|
|
1239
1269
|
}))
|
|
1240
1270
|
});
|
|
1241
1271
|
});
|
|
1242
|
-
process.env.NODE_ENV !== "production" && (
|
|
1243
|
-
//
|
|
1244
|
-
//
|
|
1245
|
-
//
|
|
1246
|
-
//
|
|
1272
|
+
process.env.NODE_ENV !== "production" && (No.propTypes = {
|
|
1273
|
+
// ----------------------------- Warning --------------------------------
|
|
1274
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1275
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
1276
|
+
// ----------------------------------------------------------------------
|
|
1247
1277
|
/**
|
|
1248
1278
|
* The content of the component.
|
|
1249
1279
|
*/
|
|
@@ -1259,7 +1289,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
1259
1289
|
/**
|
|
1260
1290
|
* The color of the component.
|
|
1261
1291
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
1262
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
1292
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
1263
1293
|
* @default 'primary'
|
|
1264
1294
|
*/
|
|
1265
1295
|
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
@@ -1320,14 +1350,14 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
1320
1350
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
1321
1351
|
});
|
|
1322
1352
|
export {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1353
|
+
No as F,
|
|
1354
|
+
wo as I,
|
|
1355
|
+
uo as a,
|
|
1356
|
+
co as b,
|
|
1357
|
+
ao as c,
|
|
1358
|
+
fo as d,
|
|
1359
|
+
Me as e,
|
|
1360
|
+
me as f,
|
|
1361
|
+
pe as i,
|
|
1362
|
+
io as r
|
|
1333
1363
|
};
|