@cgi-learning-hub/ui 0.0.1-dev.1713359037 → 0.0.1-dev.1715078279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box-DL1-mhd_.cjs +1 -0
- package/dist/{Box-CcD_sRqe.js → Box-Mup7NS_A.js} +24 -26
- package/dist/{ButtonBase-BBqNg9BC.js → ButtonBase-CjZVRZ1j.js} +102 -107
- package/dist/ButtonBase-h89TFQ74.cjs +75 -0
- package/dist/{CircularProgress-G9G_loET.js → CircularProgress-B5dLec9p.js} +4 -4
- package/dist/{CircularProgress-DVnd6kxt.cjs → CircularProgress-DvSP1TlK.cjs} +1 -1
- package/dist/{DefaultButton-DDeufcNs.js → DefaultButton-Bm_9J15r.js} +94 -95
- package/dist/DefaultButton-DpAQ3D3A.cjs +1 -0
- package/dist/{IconButton-B6XIqj_T.js → IconButton-BTwUbULL.js} +28 -29
- package/dist/IconButton-DwyJkFK6.cjs +2 -0
- package/dist/{InputBase-CdKFPwS3.js → InputBase-DQZzB50R.js} +280 -320
- package/dist/InputBase-pgeQJ7f1.cjs +3 -0
- package/dist/{LocalizationProvider-CNYbKILJ.cjs → LocalizationProvider-DESNnS1V.cjs} +1 -1
- package/dist/{LocalizationProvider-0zrjdh3x.js → LocalizationProvider-DFtKYTy5.js} +2 -2
- package/dist/SearchInput-CwKQj1FS.cjs +1 -0
- package/dist/{SearchInput-Q5BP0X0K.js → SearchInput-DFha51RP.js} +25 -25
- package/dist/Tabs-BnINEF7f.cjs +4 -0
- package/dist/{Tabs-CDBEadDu.js → Tabs-LRPQPGjl.js} +264 -265
- package/dist/TextInput-C6fc3CHh.cjs +12 -0
- package/dist/{TextInput-BNe_BIm9.js → TextInput-UE9eu-Sh.js} +1388 -1397
- package/dist/{TimePicker-CLYqSUwA.js → TimePicker-DgWZLyZU.js} +4848 -4664
- package/dist/TimePicker-DqFt1DP_.cjs +73 -0
- package/dist/Typography-BAJIrofJ.cjs +1 -0
- package/dist/{Typography-CkEznQ8f.js → Typography-BWCcreVc.js} +74 -100
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +3 -2
- package/dist/components/Dropzone/Dropzone.es.js +9 -9
- package/dist/components/Dropzone/Dropzone.stories.d.ts +2 -1
- package/dist/components/Dropzone/index.d.ts +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +2 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -0
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +2 -1
- package/dist/components/LoaderBackdrop/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +2 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +3 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +2 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.d.ts +2 -2
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.d.ts +2 -1
- package/dist/components/buttons/IconButton.stories.es.js +10 -9
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +2 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/index.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +2 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/index.d.ts +2 -2
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.d.ts +3 -3
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/Alert/Alert.d.ts +2 -1
- package/dist/components/feedback/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/feedback/Alert/index.d.ts +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +110 -110
- package/dist/components/index.es.js +11 -11
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -6
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/index.d.ts +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.d.ts +2 -2
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +2 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.d.ts +2 -2
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +2 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.d.ts +2 -2
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.d.ts +3 -3
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.d.ts +2 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileList.stories.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.es.js +11 -10
- package/dist/components/lists/FileList/index.d.ts +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.d.ts +2 -1
- package/dist/components/lists/TabList.stories.es.js +48 -49
- package/dist/components/lists/index.d.ts +1 -1
- package/dist/createSvgIcon-Bmh1dZN3.cjs +2 -0
- package/dist/createSvgIcon-BuZnNhW1.js +74 -0
- package/dist/{createSvgIcon-10LjrjuM.cjs → createSvgIcon-Ch5OwvT5.cjs} +1 -1
- package/dist/{createSvgIcon-DfXrmzRs.js → createSvgIcon-CwlWc9q-.js} +3 -3
- package/dist/{fr-HqFYdKZp.js → fr-1JMu1aWG.js} +1 -1
- package/dist/{fr-BNYi5x0Z.cjs → fr-BTDmq9ek.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +184 -184
- package/dist/{refType-BklAUjsY.js → refType-BatLLQAf.js} +7 -7
- package/dist/{refType-B-3PavG_.cjs → refType-BbhHflrD.cjs} +1 -1
- package/dist/styled-BBsrnZJ1.js +1218 -0
- package/dist/styled-CJ2HJ-9N.cjs +26 -0
- package/dist/useSlotProps-Ds0ykcZp.js +87 -0
- package/dist/useSlotProps-DykCCTRs.cjs +1 -0
- package/dist/{useThemeProps-DDcolYEZ.js → useThemeProps-C59ZmJTM.js} +1034 -926
- package/dist/useThemeProps-C5iFxIYI.cjs +42 -0
- package/package.json +16 -16
- package/dist/Box-C0uoTW0F.cjs +0 -1
- package/dist/ButtonBase-C_YtHw1h.cjs +0 -75
- package/dist/DefaultButton-DlTnxizc.cjs +0 -1
- package/dist/IconButton-Cz-zGz0v.cjs +0 -2
- package/dist/InputBase-DCjJT6Ht.cjs +0 -4
- package/dist/SearchInput-sybrE3fq.cjs +0 -1
- package/dist/Tabs-DX6Gm63O.cjs +0 -4
- package/dist/TextInput-Bla-t0jF.cjs +0 -12
- package/dist/TimePicker-EGYtgZTn.cjs +0 -71
- package/dist/Typography-B7jZzwxf.cjs +0 -1
- package/dist/createSvgIcon-Cy5_B3av.cjs +0 -2
- package/dist/createSvgIcon-MpAknZJY.js +0 -84
- package/dist/styled-CCfndrS2.js +0 -424
- package/dist/styled-jkrYOquU.cjs +0 -24
- package/dist/useSlotProps-Br7yUp1t.js +0 -78
- package/dist/useSlotProps-I3uiiCEn.cjs +0 -1
- package/dist/useThemeProps-BYFHMDRd.cjs +0 -42
|
@@ -1,40 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { g as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { a as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { Global as Ye } from "@emotion/react";
|
|
11
|
-
function Ze(o) {
|
|
12
|
-
return o == null || Object.keys(o).length === 0;
|
|
13
|
-
}
|
|
14
|
-
function Ce(o) {
|
|
15
|
-
const {
|
|
16
|
-
styles: n,
|
|
17
|
-
defaultTheme: t = {}
|
|
18
|
-
} = o;
|
|
19
|
-
return /* @__PURE__ */ R(Ye, {
|
|
20
|
-
styles: typeof n == "function" ? (r) => n(Ze(r) ? t : r) : n
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
24
|
-
defaultTheme: e.object,
|
|
25
|
-
styles: e.oneOfType([e.array, e.string, e.object, e.func])
|
|
26
|
-
});
|
|
27
|
-
function Se({
|
|
1
|
+
import { d as ke, P as e, b as he, _ as d, h as Be, T as Pe, g as Me, u as He, c as J, k as We } from "./useThemeProps-C59ZmJTM.js";
|
|
2
|
+
import * as u from "react";
|
|
3
|
+
import { G as De, g as Ve, s as be, c as ce, a as _e } from "./styled-BBsrnZJ1.js";
|
|
4
|
+
import { jsx as O, jsxs as Q } from "react/jsx-runtime";
|
|
5
|
+
import { a as ye, u as X } from "./useForkRef-CQ5u1_mH.js";
|
|
6
|
+
import { a as pe, d as Le } from "./ownerWindow-C7EH1lr6.js";
|
|
7
|
+
import { i as fe } from "./isHostComponent-kiaBvYVo.js";
|
|
8
|
+
import { e as je, r as Ue } from "./refType-BatLLQAf.js";
|
|
9
|
+
function ge({
|
|
28
10
|
styles: o,
|
|
29
11
|
themeId: n,
|
|
30
12
|
defaultTheme: t = {}
|
|
31
13
|
}) {
|
|
32
|
-
const
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
styles:
|
|
14
|
+
const s = ke(t), i = typeof o == "function" ? o(n && s[n] || s) : o;
|
|
15
|
+
return /* @__PURE__ */ O(De, {
|
|
16
|
+
styles: i
|
|
35
17
|
});
|
|
36
18
|
}
|
|
37
|
-
process.env.NODE_ENV !== "production" && (
|
|
19
|
+
process.env.NODE_ENV !== "production" && (ge.propTypes = {
|
|
38
20
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
39
21
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
40
22
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -52,11 +34,16 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
52
34
|
*/
|
|
53
35
|
themeId: e.string
|
|
54
36
|
});
|
|
55
|
-
const
|
|
56
|
-
|
|
37
|
+
const oe = /* @__PURE__ */ u.createContext(void 0);
|
|
38
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "FormControlContext");
|
|
39
|
+
function $e() {
|
|
40
|
+
return u.useContext(oe);
|
|
41
|
+
}
|
|
42
|
+
const Ge = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
43
|
+
function L(o) {
|
|
57
44
|
return parseInt(o, 10) || 0;
|
|
58
45
|
}
|
|
59
|
-
const
|
|
46
|
+
const Ke = {
|
|
60
47
|
shadow: {
|
|
61
48
|
// Visibility needed to hide the extra text area on iPads
|
|
62
49
|
visibility: "hidden",
|
|
@@ -71,107 +58,87 @@ const Qe = {
|
|
|
71
58
|
transform: "translateZ(0)"
|
|
72
59
|
}
|
|
73
60
|
};
|
|
74
|
-
function
|
|
75
|
-
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.
|
|
61
|
+
function qe(o) {
|
|
62
|
+
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflowing;
|
|
76
63
|
}
|
|
77
|
-
const
|
|
64
|
+
const we = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
78
65
|
const {
|
|
79
|
-
onChange:
|
|
80
|
-
maxRows:
|
|
66
|
+
onChange: s,
|
|
67
|
+
maxRows: i,
|
|
81
68
|
minRows: p = 1,
|
|
82
|
-
style:
|
|
83
|
-
value:
|
|
84
|
-
} = n,
|
|
85
|
-
current:
|
|
86
|
-
} =
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const d = S.current, u = me(d).getComputedStyle(d);
|
|
90
|
-
if (u.width === "0px")
|
|
69
|
+
style: N,
|
|
70
|
+
value: z
|
|
71
|
+
} = n, F = he(n, Ge), {
|
|
72
|
+
current: R
|
|
73
|
+
} = u.useRef(z != null), b = u.useRef(null), A = ye(t, b), y = u.useRef(null), S = u.useCallback(() => {
|
|
74
|
+
const c = b.current, l = pe(c).getComputedStyle(c);
|
|
75
|
+
if (l.width === "0px")
|
|
91
76
|
return {
|
|
92
|
-
outerHeightStyle: 0
|
|
77
|
+
outerHeightStyle: 0,
|
|
78
|
+
overflowing: !1
|
|
93
79
|
};
|
|
94
|
-
const f =
|
|
95
|
-
f.style.width =
|
|
80
|
+
const f = y.current;
|
|
81
|
+
f.style.width = l.width, f.value = c.value || n.placeholder || "x", f.value.slice(-1) === `
|
|
96
82
|
` && (f.value += " ");
|
|
97
|
-
const
|
|
83
|
+
const T = l.boxSizing, E = L(l.paddingBottom) + L(l.paddingTop), v = L(l.borderBottomWidth) + L(l.borderTopWidth), M = f.scrollHeight;
|
|
98
84
|
f.value = "x";
|
|
99
|
-
const
|
|
100
|
-
let h =
|
|
101
|
-
p && (h = Math.max(Number(p) *
|
|
102
|
-
const
|
|
85
|
+
const C = f.scrollHeight;
|
|
86
|
+
let h = M;
|
|
87
|
+
p && (h = Math.max(Number(p) * C, h)), i && (h = Math.min(Number(i) * C, h)), h = Math.max(h, C);
|
|
88
|
+
const H = h + (T === "border-box" ? E + v : 0), W = Math.abs(h - M) <= 1;
|
|
103
89
|
return {
|
|
104
|
-
outerHeightStyle:
|
|
105
|
-
|
|
90
|
+
outerHeightStyle: H,
|
|
91
|
+
overflowing: W
|
|
106
92
|
};
|
|
107
|
-
}, [
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}, m = s.useCallback(() => {
|
|
118
|
-
const d = B();
|
|
119
|
-
ye(d) || k((g) => V(g, d));
|
|
120
|
-
}, [B]);
|
|
121
|
-
ne(() => {
|
|
122
|
-
const d = () => {
|
|
123
|
-
const T = B();
|
|
124
|
-
ye(T) || $e.flushSync(() => {
|
|
125
|
-
k((h) => V(h, T));
|
|
126
|
-
});
|
|
127
|
-
}, g = () => {
|
|
128
|
-
b.current = 0, d();
|
|
93
|
+
}, [i, p, n.placeholder]), g = u.useCallback(() => {
|
|
94
|
+
const c = S();
|
|
95
|
+
if (qe(c))
|
|
96
|
+
return;
|
|
97
|
+
const w = b.current;
|
|
98
|
+
w.style.height = `${c.outerHeightStyle}px`, w.style.overflow = c.overflowing ? "hidden" : "";
|
|
99
|
+
}, [S]);
|
|
100
|
+
X(() => {
|
|
101
|
+
const c = () => {
|
|
102
|
+
g();
|
|
129
103
|
};
|
|
130
|
-
let
|
|
131
|
-
const
|
|
132
|
-
cancelAnimationFrame(
|
|
133
|
-
|
|
104
|
+
let w;
|
|
105
|
+
const l = () => {
|
|
106
|
+
cancelAnimationFrame(w), w = requestAnimationFrame(() => {
|
|
107
|
+
c();
|
|
134
108
|
});
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
let
|
|
138
|
-
return typeof ResizeObserver < "u" && (
|
|
139
|
-
|
|
109
|
+
}, f = Le(c), T = b.current, E = pe(T);
|
|
110
|
+
E.addEventListener("resize", f);
|
|
111
|
+
let v;
|
|
112
|
+
return typeof ResizeObserver < "u" && (v = new ResizeObserver(process.env.NODE_ENV === "test" ? l : c), v.observe(T)), () => {
|
|
113
|
+
f.clear(), cancelAnimationFrame(w), E.removeEventListener("resize", f), v && v.disconnect();
|
|
140
114
|
};
|
|
141
|
-
}, [
|
|
142
|
-
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const $ = (d) => {
|
|
147
|
-
b.current = 0, O || m(), a && a(d);
|
|
115
|
+
}, [S, g]), X(() => {
|
|
116
|
+
g();
|
|
117
|
+
});
|
|
118
|
+
const k = (c) => {
|
|
119
|
+
R || g(), s && s(c);
|
|
148
120
|
};
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
children: [/* @__PURE__ */
|
|
151
|
-
value:
|
|
152
|
-
onChange:
|
|
153
|
-
ref:
|
|
121
|
+
return /* @__PURE__ */ Q(u.Fragment, {
|
|
122
|
+
children: [/* @__PURE__ */ O("textarea", d({
|
|
123
|
+
value: z,
|
|
124
|
+
onChange: k,
|
|
125
|
+
ref: A,
|
|
154
126
|
rows: p,
|
|
155
|
-
style:
|
|
156
|
-
|
|
157
|
-
// Need a large enough difference to allow scrolling.
|
|
158
|
-
// This prevents infinite rendering loop.
|
|
159
|
-
overflow: N.overflow ? "hidden" : void 0
|
|
160
|
-
}, I)
|
|
161
|
-
}, H)), /* @__PURE__ */ R("textarea", {
|
|
127
|
+
style: N
|
|
128
|
+
}, F)), /* @__PURE__ */ O("textarea", {
|
|
162
129
|
"aria-hidden": !0,
|
|
163
130
|
className: n.className,
|
|
164
131
|
readOnly: !0,
|
|
165
|
-
ref:
|
|
132
|
+
ref: y,
|
|
166
133
|
tabIndex: -1,
|
|
167
|
-
style:
|
|
134
|
+
style: d({}, Ke.shadow, N, {
|
|
168
135
|
paddingTop: 0,
|
|
169
136
|
paddingBottom: 0
|
|
170
137
|
})
|
|
171
138
|
})]
|
|
172
139
|
});
|
|
173
140
|
});
|
|
174
|
-
process.env.NODE_ENV !== "production" && (
|
|
141
|
+
process.env.NODE_ENV !== "production" && (we.propTypes = {
|
|
175
142
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
176
143
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
177
144
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -206,26 +173,20 @@ process.env.NODE_ENV !== "production" && (xe.propTypes = {
|
|
|
206
173
|
*/
|
|
207
174
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
208
175
|
});
|
|
209
|
-
|
|
210
|
-
process.env.NODE_ENV !== "production" && (Te.displayName = "FormControlContext");
|
|
211
|
-
const Re = Te;
|
|
212
|
-
function Xe() {
|
|
213
|
-
return s.useContext(Re);
|
|
214
|
-
}
|
|
215
|
-
function eo({
|
|
176
|
+
function Ye({
|
|
216
177
|
props: o,
|
|
217
178
|
states: n,
|
|
218
179
|
muiFormControl: t
|
|
219
180
|
}) {
|
|
220
|
-
return n.reduce((
|
|
181
|
+
return n.reduce((s, i) => (s[i] = o[i], t && typeof o[i] > "u" && (s[i] = t[i]), s), {});
|
|
221
182
|
}
|
|
222
|
-
function
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
defaultTheme:
|
|
225
|
-
themeId:
|
|
183
|
+
function ve(o) {
|
|
184
|
+
return /* @__PURE__ */ O(ge, d({}, o, {
|
|
185
|
+
defaultTheme: Be,
|
|
186
|
+
themeId: Pe
|
|
226
187
|
}));
|
|
227
188
|
}
|
|
228
|
-
process.env.NODE_ENV !== "production" && (
|
|
189
|
+
process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
229
190
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
230
191
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
231
192
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -235,57 +196,57 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
235
196
|
*/
|
|
236
197
|
styles: e.oneOfType([e.array, e.func, e.number, e.object, e.string, e.bool])
|
|
237
198
|
});
|
|
238
|
-
function
|
|
199
|
+
function me(o) {
|
|
239
200
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
240
201
|
}
|
|
241
|
-
function
|
|
242
|
-
return o && (
|
|
202
|
+
function Ze(o, n = !1) {
|
|
203
|
+
return o && (me(o.value) && o.value !== "" || n && me(o.defaultValue) && o.defaultValue !== "");
|
|
243
204
|
}
|
|
244
|
-
function
|
|
205
|
+
function mo(o) {
|
|
245
206
|
return o.startAdornment;
|
|
246
207
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
208
|
+
function Je(o) {
|
|
209
|
+
return Me("MuiInputBase", o);
|
|
249
210
|
}
|
|
250
|
-
const
|
|
211
|
+
const ee = Ve("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), Qe = ["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"], Xe = (o, n) => {
|
|
251
212
|
const {
|
|
252
213
|
ownerState: t
|
|
253
214
|
} = o;
|
|
254
|
-
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${
|
|
255
|
-
},
|
|
215
|
+
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];
|
|
216
|
+
}, eo = (o, n) => {
|
|
256
217
|
const {
|
|
257
218
|
ownerState: t
|
|
258
219
|
} = o;
|
|
259
220
|
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];
|
|
260
|
-
},
|
|
221
|
+
}, oo = (o) => {
|
|
261
222
|
const {
|
|
262
223
|
classes: n,
|
|
263
224
|
color: t,
|
|
264
|
-
disabled:
|
|
265
|
-
error:
|
|
225
|
+
disabled: s,
|
|
226
|
+
error: i,
|
|
266
227
|
endAdornment: p,
|
|
267
|
-
focused:
|
|
268
|
-
formControl:
|
|
269
|
-
fullWidth:
|
|
270
|
-
hiddenLabel:
|
|
271
|
-
multiline:
|
|
272
|
-
readOnly:
|
|
273
|
-
size:
|
|
274
|
-
startAdornment:
|
|
275
|
-
type:
|
|
228
|
+
focused: N,
|
|
229
|
+
formControl: z,
|
|
230
|
+
fullWidth: F,
|
|
231
|
+
hiddenLabel: R,
|
|
232
|
+
multiline: b,
|
|
233
|
+
readOnly: A,
|
|
234
|
+
size: y,
|
|
235
|
+
startAdornment: S,
|
|
236
|
+
type: g
|
|
276
237
|
} = o, k = {
|
|
277
|
-
root: ["root", `color${
|
|
278
|
-
input: ["input",
|
|
238
|
+
root: ["root", `color${J(t)}`, s && "disabled", i && "error", F && "fullWidth", N && "focused", z && "formControl", y && y !== "medium" && `size${J(y)}`, b && "multiline", S && "adornedStart", p && "adornedEnd", R && "hiddenLabel", A && "readOnly"],
|
|
239
|
+
input: ["input", s && "disabled", g === "search" && "inputTypeSearch", b && "inputMultiline", y === "small" && "inputSizeSmall", R && "inputHiddenLabel", S && "inputAdornedStart", p && "inputAdornedEnd", A && "readOnly"]
|
|
279
240
|
};
|
|
280
|
-
return
|
|
281
|
-
},
|
|
241
|
+
return _e(k, Je, n);
|
|
242
|
+
}, no = be("div", {
|
|
282
243
|
name: "MuiInputBase",
|
|
283
244
|
slot: "Root",
|
|
284
|
-
overridesResolver:
|
|
245
|
+
overridesResolver: Xe
|
|
285
246
|
})(({
|
|
286
247
|
theme: o,
|
|
287
248
|
ownerState: n
|
|
288
|
-
}) =>
|
|
249
|
+
}) => d({}, o.typography.body1, {
|
|
289
250
|
color: (o.vars || o).palette.text.primary,
|
|
290
251
|
lineHeight: "1.4375em",
|
|
291
252
|
// 23px
|
|
@@ -295,25 +256,25 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
295
256
|
cursor: "text",
|
|
296
257
|
display: "inline-flex",
|
|
297
258
|
alignItems: "center",
|
|
298
|
-
[`&.${
|
|
259
|
+
[`&.${ee.disabled}`]: {
|
|
299
260
|
color: (o.vars || o).palette.text.disabled,
|
|
300
261
|
cursor: "default"
|
|
301
262
|
}
|
|
302
|
-
}, n.multiline &&
|
|
263
|
+
}, n.multiline && d({
|
|
303
264
|
padding: "4px 0 5px"
|
|
304
265
|
}, n.size === "small" && {
|
|
305
266
|
paddingTop: 1
|
|
306
267
|
}), n.fullWidth && {
|
|
307
268
|
width: "100%"
|
|
308
|
-
})),
|
|
269
|
+
})), to = be("input", {
|
|
309
270
|
name: "MuiInputBase",
|
|
310
271
|
slot: "Input",
|
|
311
|
-
overridesResolver:
|
|
272
|
+
overridesResolver: eo
|
|
312
273
|
})(({
|
|
313
274
|
theme: o,
|
|
314
275
|
ownerState: n
|
|
315
276
|
}) => {
|
|
316
|
-
const t = o.palette.mode === "light",
|
|
277
|
+
const t = o.palette.mode === "light", s = d({
|
|
317
278
|
color: "currentColor"
|
|
318
279
|
}, o.vars ? {
|
|
319
280
|
opacity: o.vars.opacity.inputPlaceholder
|
|
@@ -323,14 +284,14 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
323
284
|
transition: o.transitions.create("opacity", {
|
|
324
285
|
duration: o.transitions.duration.shorter
|
|
325
286
|
})
|
|
326
|
-
}),
|
|
287
|
+
}), i = {
|
|
327
288
|
opacity: "0 !important"
|
|
328
289
|
}, p = o.vars ? {
|
|
329
290
|
opacity: o.vars.opacity.inputPlaceholder
|
|
330
291
|
} : {
|
|
331
292
|
opacity: t ? 0.42 : 0.5
|
|
332
293
|
};
|
|
333
|
-
return
|
|
294
|
+
return d({
|
|
334
295
|
font: "inherit",
|
|
335
296
|
letterSpacing: "inherit",
|
|
336
297
|
color: "currentColor",
|
|
@@ -350,12 +311,12 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
350
311
|
// Fix IE11 width issue
|
|
351
312
|
animationName: "mui-auto-fill-cancel",
|
|
352
313
|
animationDuration: "10ms",
|
|
353
|
-
"&::-webkit-input-placeholder":
|
|
354
|
-
"&::-moz-placeholder":
|
|
314
|
+
"&::-webkit-input-placeholder": s,
|
|
315
|
+
"&::-moz-placeholder": s,
|
|
355
316
|
// Firefox 19+
|
|
356
|
-
"&:-ms-input-placeholder":
|
|
317
|
+
"&:-ms-input-placeholder": s,
|
|
357
318
|
// IE11
|
|
358
|
-
"&::-ms-input-placeholder":
|
|
319
|
+
"&::-ms-input-placeholder": s,
|
|
359
320
|
// Edge
|
|
360
321
|
"&:focus": {
|
|
361
322
|
outline: 0
|
|
@@ -369,13 +330,13 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
369
330
|
WebkitAppearance: "none"
|
|
370
331
|
},
|
|
371
332
|
// Show and hide the placeholder logic
|
|
372
|
-
[`label[data-shrink=false] + .${
|
|
373
|
-
"&::-webkit-input-placeholder":
|
|
374
|
-
"&::-moz-placeholder":
|
|
333
|
+
[`label[data-shrink=false] + .${ee.formControl} &`]: {
|
|
334
|
+
"&::-webkit-input-placeholder": i,
|
|
335
|
+
"&::-moz-placeholder": i,
|
|
375
336
|
// Firefox 19+
|
|
376
|
-
"&:-ms-input-placeholder":
|
|
337
|
+
"&:-ms-input-placeholder": i,
|
|
377
338
|
// IE11
|
|
378
|
-
"&::-ms-input-placeholder":
|
|
339
|
+
"&::-ms-input-placeholder": i,
|
|
379
340
|
// Edge
|
|
380
341
|
"&:focus::-webkit-input-placeholder": p,
|
|
381
342
|
"&:focus::-moz-placeholder": p,
|
|
@@ -385,7 +346,7 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
385
346
|
"&:focus::-ms-input-placeholder": p
|
|
386
347
|
// Edge
|
|
387
348
|
},
|
|
388
|
-
[`&.${
|
|
349
|
+
[`&.${ee.disabled}`]: {
|
|
389
350
|
opacity: 1,
|
|
390
351
|
// Reset iOS opacity
|
|
391
352
|
WebkitTextFillColor: (o.vars || o).palette.text.disabled
|
|
@@ -406,7 +367,7 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
406
367
|
// Improve type search style.
|
|
407
368
|
MozAppearance: "textfield"
|
|
408
369
|
});
|
|
409
|
-
}),
|
|
370
|
+
}), ro = /* @__PURE__ */ O(ve, {
|
|
410
371
|
styles: {
|
|
411
372
|
"@keyframes mui-auto-fill": {
|
|
412
373
|
from: {
|
|
@@ -419,175 +380,175 @@ const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
419
380
|
}
|
|
420
381
|
}
|
|
421
382
|
}
|
|
422
|
-
}),
|
|
423
|
-
var
|
|
424
|
-
const
|
|
383
|
+
}), io = /* @__PURE__ */ u.forwardRef(function(n, t) {
|
|
384
|
+
var s;
|
|
385
|
+
const i = He({
|
|
425
386
|
props: n,
|
|
426
387
|
name: "MuiInputBase"
|
|
427
388
|
}), {
|
|
428
389
|
"aria-describedby": p,
|
|
429
|
-
autoComplete:
|
|
430
|
-
autoFocus:
|
|
431
|
-
className:
|
|
432
|
-
components:
|
|
433
|
-
componentsProps:
|
|
434
|
-
defaultValue:
|
|
435
|
-
disabled:
|
|
436
|
-
disableInjectingGlobalStyles:
|
|
437
|
-
endAdornment:
|
|
390
|
+
autoComplete: N,
|
|
391
|
+
autoFocus: z,
|
|
392
|
+
className: F,
|
|
393
|
+
components: R = {},
|
|
394
|
+
componentsProps: b = {},
|
|
395
|
+
defaultValue: A,
|
|
396
|
+
disabled: y,
|
|
397
|
+
disableInjectingGlobalStyles: S,
|
|
398
|
+
endAdornment: g,
|
|
438
399
|
fullWidth: k = !1,
|
|
439
|
-
id:
|
|
440
|
-
inputComponent:
|
|
441
|
-
inputProps:
|
|
442
|
-
inputRef:
|
|
443
|
-
maxRows:
|
|
444
|
-
minRows:
|
|
445
|
-
multiline:
|
|
446
|
-
name:
|
|
447
|
-
onBlur:
|
|
448
|
-
onChange:
|
|
449
|
-
onClick:
|
|
450
|
-
onFocus:
|
|
451
|
-
onKeyDown:
|
|
452
|
-
onKeyUp:
|
|
453
|
-
placeholder:
|
|
454
|
-
readOnly:
|
|
455
|
-
renderSuffix:
|
|
456
|
-
rows:
|
|
457
|
-
slotProps:
|
|
458
|
-
slots:
|
|
459
|
-
startAdornment:
|
|
460
|
-
type:
|
|
461
|
-
value:
|
|
462
|
-
} =
|
|
463
|
-
current:
|
|
464
|
-
} =
|
|
465
|
-
process.env.NODE_ENV !== "production" &&
|
|
400
|
+
id: c,
|
|
401
|
+
inputComponent: w = "input",
|
|
402
|
+
inputProps: l = {},
|
|
403
|
+
inputRef: f,
|
|
404
|
+
maxRows: T,
|
|
405
|
+
minRows: E,
|
|
406
|
+
multiline: v = !1,
|
|
407
|
+
name: M,
|
|
408
|
+
onBlur: C,
|
|
409
|
+
onChange: h,
|
|
410
|
+
onClick: H,
|
|
411
|
+
onFocus: W,
|
|
412
|
+
onKeyDown: Ce,
|
|
413
|
+
onKeyUp: xe,
|
|
414
|
+
placeholder: Se,
|
|
415
|
+
readOnly: j,
|
|
416
|
+
renderSuffix: ne,
|
|
417
|
+
rows: D,
|
|
418
|
+
slotProps: te = {},
|
|
419
|
+
slots: re = {},
|
|
420
|
+
startAdornment: B,
|
|
421
|
+
type: ie = "text",
|
|
422
|
+
value: Re
|
|
423
|
+
} = i, Te = he(i, Qe), V = l.value != null ? l.value : Re, {
|
|
424
|
+
current: U
|
|
425
|
+
} = u.useRef(V != null), I = u.useRef(), Ee = u.useCallback((r) => {
|
|
426
|
+
process.env.NODE_ENV !== "production" && r && r.nodeName !== "INPUT" && !r.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(`
|
|
466
427
|
`));
|
|
467
|
-
}, []),
|
|
468
|
-
process.env.NODE_ENV !== "production" &&
|
|
469
|
-
if (
|
|
470
|
-
return
|
|
471
|
-
}, [
|
|
472
|
-
const
|
|
473
|
-
props:
|
|
474
|
-
muiFormControl:
|
|
428
|
+
}, []), Oe = ye(I, f, l.ref, Ee), [$, G] = u.useState(!1), a = $e();
|
|
429
|
+
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
430
|
+
if (a)
|
|
431
|
+
return a.registerEffect();
|
|
432
|
+
}, [a]);
|
|
433
|
+
const m = Ye({
|
|
434
|
+
props: i,
|
|
435
|
+
muiFormControl: a,
|
|
475
436
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
476
437
|
});
|
|
477
|
-
|
|
478
|
-
!
|
|
479
|
-
}, [
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
}, [
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
value:
|
|
438
|
+
m.focused = a ? a.focused : $, u.useEffect(() => {
|
|
439
|
+
!a && y && $ && (G(!1), C && C());
|
|
440
|
+
}, [a, y, $, C]);
|
|
441
|
+
const K = a && a.onFilled, q = a && a.onEmpty, P = u.useCallback((r) => {
|
|
442
|
+
Ze(r) ? K && K() : q && q();
|
|
443
|
+
}, [K, q]);
|
|
444
|
+
X(() => {
|
|
445
|
+
U && P({
|
|
446
|
+
value: V
|
|
486
447
|
});
|
|
487
|
-
}, [
|
|
488
|
-
const
|
|
489
|
-
if (
|
|
490
|
-
|
|
448
|
+
}, [V, P, U]);
|
|
449
|
+
const Ne = (r) => {
|
|
450
|
+
if (m.disabled) {
|
|
451
|
+
r.stopPropagation();
|
|
491
452
|
return;
|
|
492
453
|
}
|
|
493
|
-
|
|
494
|
-
},
|
|
495
|
-
|
|
496
|
-
},
|
|
497
|
-
if (!
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
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." :
|
|
501
|
-
|
|
502
|
-
value:
|
|
454
|
+
W && W(r), l.onFocus && l.onFocus(r), a && a.onFocus ? a.onFocus(r) : G(!0);
|
|
455
|
+
}, ze = (r) => {
|
|
456
|
+
C && C(r), l.onBlur && l.onBlur(r), a && a.onBlur ? a.onBlur(r) : G(!1);
|
|
457
|
+
}, Ae = (r, ...ue) => {
|
|
458
|
+
if (!U) {
|
|
459
|
+
const de = r.target || I.current;
|
|
460
|
+
if (de == 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." : We(1));
|
|
462
|
+
P({
|
|
463
|
+
value: de.value
|
|
503
464
|
});
|
|
504
465
|
}
|
|
505
|
-
|
|
466
|
+
l.onChange && l.onChange(r, ...ue), h && h(r, ...ue);
|
|
506
467
|
};
|
|
507
|
-
|
|
508
|
-
|
|
468
|
+
u.useEffect(() => {
|
|
469
|
+
P(I.current);
|
|
509
470
|
}, []);
|
|
510
|
-
const
|
|
511
|
-
|
|
471
|
+
const Ie = (r) => {
|
|
472
|
+
I.current && r.currentTarget === r.target && I.current.focus(), H && H(r);
|
|
512
473
|
};
|
|
513
|
-
let
|
|
514
|
-
|
|
474
|
+
let Y = w, x = l;
|
|
475
|
+
v && Y === "input" && (D ? (process.env.NODE_ENV !== "production" && (E || T) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), x = d({
|
|
515
476
|
type: void 0,
|
|
516
|
-
minRows:
|
|
517
|
-
maxRows:
|
|
518
|
-
}, x)) : x =
|
|
477
|
+
minRows: D,
|
|
478
|
+
maxRows: D
|
|
479
|
+
}, x)) : x = d({
|
|
519
480
|
type: void 0,
|
|
520
|
-
maxRows:
|
|
521
|
-
minRows:
|
|
522
|
-
}, x),
|
|
523
|
-
const
|
|
524
|
-
|
|
481
|
+
maxRows: T,
|
|
482
|
+
minRows: E
|
|
483
|
+
}, x), Y = we);
|
|
484
|
+
const Fe = (r) => {
|
|
485
|
+
P(r.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
525
486
|
value: "x"
|
|
526
487
|
});
|
|
527
488
|
};
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}, [
|
|
531
|
-
const
|
|
532
|
-
color:
|
|
533
|
-
disabled:
|
|
534
|
-
endAdornment:
|
|
535
|
-
error:
|
|
536
|
-
focused:
|
|
537
|
-
formControl:
|
|
489
|
+
u.useEffect(() => {
|
|
490
|
+
a && a.setAdornedStart(!!B);
|
|
491
|
+
}, [a, B]);
|
|
492
|
+
const _ = d({}, i, {
|
|
493
|
+
color: m.color || "primary",
|
|
494
|
+
disabled: m.disabled,
|
|
495
|
+
endAdornment: g,
|
|
496
|
+
error: m.error,
|
|
497
|
+
focused: m.focused,
|
|
498
|
+
formControl: a,
|
|
538
499
|
fullWidth: k,
|
|
539
|
-
hiddenLabel:
|
|
540
|
-
multiline:
|
|
541
|
-
size:
|
|
542
|
-
startAdornment:
|
|
543
|
-
type:
|
|
544
|
-
}),
|
|
545
|
-
return x =
|
|
546
|
-
children: [!
|
|
547
|
-
ownerState:
|
|
500
|
+
hiddenLabel: m.hiddenLabel,
|
|
501
|
+
multiline: v,
|
|
502
|
+
size: m.size,
|
|
503
|
+
startAdornment: B,
|
|
504
|
+
type: ie
|
|
505
|
+
}), ae = oo(_), se = re.root || R.Root || no, Z = te.root || b.root || {}, le = re.input || R.Input || to;
|
|
506
|
+
return x = d({}, x, (s = te.input) != null ? s : b.input), /* @__PURE__ */ Q(u.Fragment, {
|
|
507
|
+
children: [!S && ro, /* @__PURE__ */ Q(se, d({}, Z, !fe(se) && {
|
|
508
|
+
ownerState: d({}, _, Z.ownerState)
|
|
548
509
|
}, {
|
|
549
510
|
ref: t,
|
|
550
|
-
onClick:
|
|
551
|
-
},
|
|
552
|
-
className:
|
|
553
|
-
children: [
|
|
511
|
+
onClick: Ie
|
|
512
|
+
}, Te, {
|
|
513
|
+
className: ce(ae.root, Z.className, F, j && "MuiInputBase-readOnly"),
|
|
514
|
+
children: [B, /* @__PURE__ */ O(oe.Provider, {
|
|
554
515
|
value: null,
|
|
555
|
-
children: /* @__PURE__ */
|
|
556
|
-
ownerState:
|
|
557
|
-
"aria-invalid":
|
|
516
|
+
children: /* @__PURE__ */ O(le, d({
|
|
517
|
+
ownerState: _,
|
|
518
|
+
"aria-invalid": m.error,
|
|
558
519
|
"aria-describedby": p,
|
|
559
|
-
autoComplete:
|
|
560
|
-
autoFocus:
|
|
561
|
-
defaultValue:
|
|
562
|
-
disabled:
|
|
563
|
-
id:
|
|
564
|
-
onAnimationStart:
|
|
565
|
-
name:
|
|
566
|
-
placeholder:
|
|
567
|
-
readOnly:
|
|
568
|
-
required:
|
|
569
|
-
rows:
|
|
570
|
-
value:
|
|
571
|
-
onKeyDown:
|
|
572
|
-
onKeyUp:
|
|
573
|
-
type:
|
|
574
|
-
}, x, !
|
|
575
|
-
as:
|
|
576
|
-
ownerState:
|
|
520
|
+
autoComplete: N,
|
|
521
|
+
autoFocus: z,
|
|
522
|
+
defaultValue: A,
|
|
523
|
+
disabled: m.disabled,
|
|
524
|
+
id: c,
|
|
525
|
+
onAnimationStart: Fe,
|
|
526
|
+
name: M,
|
|
527
|
+
placeholder: Se,
|
|
528
|
+
readOnly: j,
|
|
529
|
+
required: m.required,
|
|
530
|
+
rows: D,
|
|
531
|
+
value: V,
|
|
532
|
+
onKeyDown: Ce,
|
|
533
|
+
onKeyUp: xe,
|
|
534
|
+
type: ie
|
|
535
|
+
}, x, !fe(le) && {
|
|
536
|
+
as: Y,
|
|
537
|
+
ownerState: d({}, _, x.ownerState)
|
|
577
538
|
}, {
|
|
578
|
-
ref:
|
|
579
|
-
className:
|
|
580
|
-
onBlur:
|
|
581
|
-
onChange:
|
|
582
|
-
onFocus:
|
|
539
|
+
ref: Oe,
|
|
540
|
+
className: ce(ae.input, x.className, j && "MuiInputBase-readOnly"),
|
|
541
|
+
onBlur: ze,
|
|
542
|
+
onChange: Ae,
|
|
543
|
+
onFocus: Ne
|
|
583
544
|
}))
|
|
584
|
-
}),
|
|
585
|
-
startAdornment:
|
|
545
|
+
}), g, ne ? ne(d({}, m, {
|
|
546
|
+
startAdornment: B
|
|
586
547
|
})) : null]
|
|
587
548
|
}))]
|
|
588
549
|
});
|
|
589
550
|
});
|
|
590
|
-
process.env.NODE_ENV !== "production" && (
|
|
551
|
+
process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
591
552
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
592
553
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
593
554
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -684,7 +645,7 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
684
645
|
* Either a string to use a HTML element or a component.
|
|
685
646
|
* @default 'input'
|
|
686
647
|
*/
|
|
687
|
-
inputComponent:
|
|
648
|
+
inputComponent: je,
|
|
688
649
|
/**
|
|
689
650
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
690
651
|
* @default {}
|
|
@@ -693,7 +654,7 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
693
654
|
/**
|
|
694
655
|
* Pass a ref to the `input` element.
|
|
695
656
|
*/
|
|
696
|
-
inputRef:
|
|
657
|
+
inputRef: Ue,
|
|
697
658
|
/**
|
|
698
659
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
699
660
|
* FormControl.
|
|
@@ -817,17 +778,16 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
817
778
|
*/
|
|
818
779
|
value: e.any
|
|
819
780
|
});
|
|
820
|
-
const Co = Oe;
|
|
821
781
|
export {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
782
|
+
oe as F,
|
|
783
|
+
io as I,
|
|
784
|
+
no as a,
|
|
785
|
+
to as b,
|
|
786
|
+
eo as c,
|
|
787
|
+
mo as d,
|
|
788
|
+
Ze as e,
|
|
789
|
+
Ye as f,
|
|
790
|
+
ee as i,
|
|
791
|
+
Xe as r,
|
|
792
|
+
$e as u
|
|
833
793
|
};
|