@cgi-learning-hub/ui 0.0.1-dev.1709569189 → 0.0.1-dev.1709646249
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-erN4AuKs.js → Box-C0qXdJzV.js} +8 -8
- package/dist/Box-DjRIKMD0.cjs +1 -0
- package/dist/ButtonBase-BvllyU4w.cjs +75 -0
- package/dist/ButtonBase-C14ZYs6z.js +833 -0
- package/dist/CircularProgress-Bf46-VRs.js +217 -0
- package/dist/CircularProgress-DjSMBYnK.cjs +28 -0
- package/dist/{DefaultButton-DbpZOb47.js → DefaultButton-B-2UppUm.js} +146 -355
- package/dist/DefaultButton-DPZOltN5.cjs +1 -0
- package/dist/{IconButton-DE5JOshS.js → IconButton-1URziYlU.js} +8 -8
- package/dist/IconButton-X6l-U-im.cjs +2 -0
- package/dist/InputBase-BrkAyp4z.cjs +4 -0
- package/dist/{InputBase-C8AzQJJ9.js → InputBase-D_wYPpmB.js} +173 -160
- package/dist/{LocalizationProvider-Cov62Xe0.js → LocalizationProvider-BD64DNxF.js} +3 -4
- package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
- package/dist/SearchInput-CMLDZJ8k.cjs +1 -0
- package/dist/SearchInput-D2HnePqk.js +177 -0
- package/dist/Tabs-B9BPJaDx.js +1090 -0
- package/dist/Tabs-Dx8YJT4c.cjs +4 -0
- package/dist/TextInput-BO1q4hT2.cjs +12 -0
- package/dist/{TextInput-DmMk4i-V.js → TextInput-DiA3Q5CJ.js} +1353 -1594
- package/dist/TimePicker-CBI_tdzH.js +19695 -0
- package/dist/TimePicker-CnW0kylk.cjs +69 -0
- package/dist/Typography-CRt6WSxo.js +204 -0
- package/dist/Typography-DsPQABF2.cjs +1 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +11 -12
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- 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.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- 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.es.js +9 -10
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +91 -90
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -174
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -3
- package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -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.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +4 -4
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +2 -2
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +39 -7
- package/dist/components/lists/FileList/index.cjs.js +1 -1
- package/dist/components/lists/FileList/index.es.js +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +16 -18
- package/dist/components/lists/index.cjs.js +1 -1
- package/dist/components/lists/index.es.js +4 -4
- package/dist/createSvgIcon-BOQCM03y.cjs +2 -0
- package/dist/createSvgIcon-C2VxBqzG.cjs +1 -0
- package/dist/{createSvgIcon-DeRU4e-L.js → createSvgIcon-Dspfpz-l.js} +18 -20
- package/dist/createSvgIcon-xJp3_zwo.js +84 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +94 -93
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/refType-5EEBZL5_.cjs +1 -0
- package/dist/{refType-CoCfCK--.js → refType-BBFUe6fu.js} +1 -1
- package/dist/styled-D8lXwcQy.js +423 -0
- package/dist/styled-DFoJwRxe.cjs +24 -0
- package/dist/useSlotProps-BoMYRJkF.js +72 -0
- package/dist/useSlotProps-EKKRQjEn.cjs +1 -0
- package/dist/useTheme-BkW5nNsn.cjs +1 -0
- package/dist/useTheme-Bo1inEHN.js +9 -0
- package/dist/useThemeProps-BRWSvuZw.cjs +42 -0
- package/dist/useThemeProps-CZzcR_pm.js +2288 -0
- package/package.json +5 -2
- package/dist/Box-CjHm9A9L.cjs +0 -1
- package/dist/ButtonBase-BybMkBUd.cjs +0 -75
- package/dist/ButtonBase-CGcs8Gbj.cjs +0 -75
- package/dist/ButtonBase-V1pwsMMs.js +0 -649
- package/dist/ButtonBase-aujiNoUb.js +0 -649
- package/dist/DefaultButton-Cg4tPCgf.cjs +0 -28
- package/dist/FileListItem-ChKTjDnV.js +0 -254
- package/dist/FileListItem-CjFIZgYg.cjs +0 -28
- package/dist/IconButton-CHXclgOn.cjs +0 -2
- package/dist/InputBase-D6eXzDaz.cjs +0 -4
- package/dist/LocalizationProvider-42pD7VmS.cjs +0 -5
- package/dist/Tabs-DiWeNGD4.js +0 -1167
- package/dist/Tabs-DoxP7EMA.cjs +0 -4
- package/dist/TextInput-BbSyyuvO.cjs +0 -12
- package/dist/TimePicker-B5MjZCK0.cjs +0 -89
- package/dist/TimePicker-BmxG3a2D.js +0 -28354
- package/dist/TransitionGroup-COuDopJ-.js +0 -188
- package/dist/TransitionGroup-X90dkobW.cjs +0 -1
- package/dist/Typography-B90UzlQW.js +0 -179
- package/dist/Typography-KFjBz5Hm.cjs +0 -1
- package/dist/clamp-0LjYbpE_.cjs +0 -23
- package/dist/clamp-BGJvJ0FN.js +0 -1641
- package/dist/createSvgIcon-BSYat4nx.js +0 -74
- package/dist/createSvgIcon-BqRWmIPG.cjs +0 -1
- package/dist/createSvgIcon-doNQ5emq.cjs +0 -2
- package/dist/refType-Bt58K9Sk.cjs +0 -1
- package/dist/styled-BU8dAebc.js +0 -1751
- package/dist/styled-DGjsLYEN.cjs +0 -45
- package/dist/styled-DP6LeBLQ.js +0 -261
- package/dist/styled-Dkd1VGM-.cjs +0 -1
- package/dist/useTheme-C132tQV-.js +0 -10
- package/dist/useTheme-CliHZTkE.cjs +0 -1
- package/dist/useThemeProps-63SNG58r.js +0 -753
- package/dist/useThemeProps-CVatCXfo.cjs +0 -20
|
@@ -1,22 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as e, u as Pe, e as ge, _ as c, d as De, T as We, g as Ve, b as _e, c as ee, k as Le } from "./useThemeProps-CZzcR_pm.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as
|
|
3
|
+
import { g as je, s as we, c as fe, a as Ue } from "./styled-D8lXwcQy.js";
|
|
4
|
+
import { jsx as R, jsxs as oe } from "react/jsx-runtime";
|
|
5
5
|
import { a as ve, u as ne } from "./useForkRef-CQ5u1_mH.js";
|
|
6
6
|
import * as $e from "react-dom";
|
|
7
7
|
import { a as me, d as Ge } from "./ownerWindow-C7EH1lr6.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import { i as he } from "./isHostComponent-kiaBvYVo.js";
|
|
9
|
+
import { e as Ke, r as qe } from "./refType-BBFUe6fu.js";
|
|
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({
|
|
10
28
|
styles: o,
|
|
11
29
|
themeId: n,
|
|
12
30
|
defaultTheme: t = {}
|
|
13
31
|
}) {
|
|
14
|
-
const
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
styles:
|
|
32
|
+
const a = Pe(t), r = typeof o == "function" ? o(n && a[n] || a) : o;
|
|
33
|
+
return /* @__PURE__ */ R(Ce, {
|
|
34
|
+
styles: r
|
|
17
35
|
});
|
|
18
36
|
}
|
|
19
|
-
process.env.NODE_ENV !== "production" && (
|
|
37
|
+
process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
20
38
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
21
39
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
22
40
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -34,14 +52,11 @@ process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
|
34
52
|
*/
|
|
35
53
|
themeId: e.string
|
|
36
54
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
const Ye = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
41
|
-
function j(o) {
|
|
55
|
+
const Je = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
56
|
+
function U(o) {
|
|
42
57
|
return parseInt(o, 10) || 0;
|
|
43
58
|
}
|
|
44
|
-
const
|
|
59
|
+
const Qe = {
|
|
45
60
|
shadow: {
|
|
46
61
|
// Visibility needed to hide the extra text area on iPads
|
|
47
62
|
visibility: "hidden",
|
|
@@ -59,16 +74,16 @@ const Ze = {
|
|
|
59
74
|
function ye(o) {
|
|
60
75
|
return o == null || Object.keys(o).length === 0 || o.outerHeightStyle === 0 && !o.overflow;
|
|
61
76
|
}
|
|
62
|
-
const
|
|
77
|
+
const xe = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
63
78
|
const {
|
|
64
|
-
onChange:
|
|
65
|
-
maxRows:
|
|
79
|
+
onChange: a,
|
|
80
|
+
maxRows: r,
|
|
66
81
|
minRows: p = 1,
|
|
67
82
|
style: I,
|
|
68
|
-
value:
|
|
69
|
-
} = n, H = ge(n,
|
|
70
|
-
current:
|
|
71
|
-
} = s.useRef(
|
|
83
|
+
value: E
|
|
84
|
+
} = n, H = ge(n, Je), {
|
|
85
|
+
current: O
|
|
86
|
+
} = s.useRef(E != null), S = s.useRef(null), F = ve(t, S), v = s.useRef(null), b = s.useRef(0), [N, k] = s.useState({
|
|
72
87
|
outerHeightStyle: 0
|
|
73
88
|
}), B = s.useCallback(() => {
|
|
74
89
|
const d = S.current, u = me(d).getComputedStyle(d);
|
|
@@ -79,17 +94,17 @@ const Se = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
|
79
94
|
const f = v.current;
|
|
80
95
|
f.style.width = u.width, f.value = d.value || n.placeholder || "x", f.value.slice(-1) === `
|
|
81
96
|
` && (f.value += " ");
|
|
82
|
-
const w = u.boxSizing,
|
|
97
|
+
const w = u.boxSizing, z = U(u.paddingBottom) + U(u.paddingTop), A = U(u.borderBottomWidth) + U(u.borderTopWidth), C = f.scrollHeight;
|
|
83
98
|
f.value = "x";
|
|
84
|
-
const
|
|
99
|
+
const T = f.scrollHeight;
|
|
85
100
|
let h = C;
|
|
86
|
-
p && (h = Math.max(Number(p) *
|
|
87
|
-
const G = h + (w === "border-box" ?
|
|
101
|
+
p && (h = Math.max(Number(p) * T, h)), r && (h = Math.min(Number(r) * T, h)), h = Math.max(h, T);
|
|
102
|
+
const G = h + (w === "border-box" ? z + A : 0), P = Math.abs(h - C) <= 1;
|
|
88
103
|
return {
|
|
89
104
|
outerHeightStyle: G,
|
|
90
105
|
overflow: P
|
|
91
106
|
};
|
|
92
|
-
}, [
|
|
107
|
+
}, [r, p, n.placeholder]), V = (d, g) => {
|
|
93
108
|
const {
|
|
94
109
|
outerHeightStyle: u,
|
|
95
110
|
overflow: f
|
|
@@ -105,9 +120,9 @@ const Se = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
|
105
120
|
}, [B]);
|
|
106
121
|
ne(() => {
|
|
107
122
|
const d = () => {
|
|
108
|
-
const
|
|
109
|
-
ye(
|
|
110
|
-
k((h) => V(h,
|
|
123
|
+
const T = B();
|
|
124
|
+
ye(T) || $e.flushSync(() => {
|
|
125
|
+
k((h) => V(h, T));
|
|
111
126
|
});
|
|
112
127
|
}, g = () => {
|
|
113
128
|
b.current = 0, d();
|
|
@@ -117,46 +132,46 @@ const Se = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
|
117
132
|
cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
118
133
|
g();
|
|
119
134
|
});
|
|
120
|
-
}, w = Ge(g),
|
|
121
|
-
|
|
135
|
+
}, w = Ge(g), z = S.current, A = me(z);
|
|
136
|
+
A.addEventListener("resize", w);
|
|
122
137
|
let C;
|
|
123
|
-
return typeof ResizeObserver < "u" && (C = new ResizeObserver(process.env.NODE_ENV === "test" ? f : g), C.observe(
|
|
124
|
-
w.clear(), cancelAnimationFrame(u),
|
|
138
|
+
return typeof ResizeObserver < "u" && (C = new ResizeObserver(process.env.NODE_ENV === "test" ? f : g), C.observe(z)), () => {
|
|
139
|
+
w.clear(), cancelAnimationFrame(u), A.removeEventListener("resize", w), C && C.disconnect();
|
|
125
140
|
};
|
|
126
141
|
}, [B]), ne(() => {
|
|
127
142
|
m();
|
|
128
143
|
}), s.useEffect(() => {
|
|
129
144
|
b.current = 0;
|
|
130
|
-
}, [
|
|
145
|
+
}, [E]);
|
|
131
146
|
const $ = (d) => {
|
|
132
|
-
b.current = 0,
|
|
147
|
+
b.current = 0, O || m(), a && a(d);
|
|
133
148
|
};
|
|
134
149
|
return /* @__PURE__ */ oe(s.Fragment, {
|
|
135
|
-
children: [/* @__PURE__ */
|
|
136
|
-
value:
|
|
150
|
+
children: [/* @__PURE__ */ R("textarea", c({
|
|
151
|
+
value: E,
|
|
137
152
|
onChange: $,
|
|
138
153
|
ref: F,
|
|
139
154
|
rows: p,
|
|
140
155
|
style: c({
|
|
141
|
-
height:
|
|
156
|
+
height: N.outerHeightStyle,
|
|
142
157
|
// Need a large enough difference to allow scrolling.
|
|
143
158
|
// This prevents infinite rendering loop.
|
|
144
|
-
overflow:
|
|
159
|
+
overflow: N.overflow ? "hidden" : void 0
|
|
145
160
|
}, I)
|
|
146
|
-
}, H)), /* @__PURE__ */
|
|
161
|
+
}, H)), /* @__PURE__ */ R("textarea", {
|
|
147
162
|
"aria-hidden": !0,
|
|
148
163
|
className: n.className,
|
|
149
164
|
readOnly: !0,
|
|
150
165
|
ref: v,
|
|
151
166
|
tabIndex: -1,
|
|
152
|
-
style: c({},
|
|
167
|
+
style: c({}, Qe.shadow, I, {
|
|
153
168
|
paddingTop: 0,
|
|
154
169
|
paddingBottom: 0
|
|
155
170
|
})
|
|
156
171
|
})]
|
|
157
172
|
});
|
|
158
173
|
});
|
|
159
|
-
process.env.NODE_ENV !== "production" && (
|
|
174
|
+
process.env.NODE_ENV !== "production" && (xe.propTypes = {
|
|
160
175
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
161
176
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
162
177
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -191,26 +206,26 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
191
206
|
*/
|
|
192
207
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
193
208
|
});
|
|
194
|
-
const
|
|
195
|
-
process.env.NODE_ENV !== "production" && (
|
|
196
|
-
const Re =
|
|
197
|
-
function
|
|
209
|
+
const Te = /* @__PURE__ */ s.createContext(void 0);
|
|
210
|
+
process.env.NODE_ENV !== "production" && (Te.displayName = "FormControlContext");
|
|
211
|
+
const Re = Te;
|
|
212
|
+
function Xe() {
|
|
198
213
|
return s.useContext(Re);
|
|
199
214
|
}
|
|
200
|
-
function
|
|
215
|
+
function eo({
|
|
201
216
|
props: o,
|
|
202
217
|
states: n,
|
|
203
218
|
muiFormControl: t
|
|
204
219
|
}) {
|
|
205
|
-
return n.reduce((
|
|
220
|
+
return n.reduce((a, r) => (a[r] = o[r], t && typeof o[r] > "u" && (a[r] = t[r]), a), {});
|
|
206
221
|
}
|
|
207
|
-
function
|
|
208
|
-
return /* @__PURE__ */
|
|
209
|
-
defaultTheme:
|
|
210
|
-
themeId:
|
|
222
|
+
function Ee(o) {
|
|
223
|
+
return /* @__PURE__ */ R(Se, c({}, o, {
|
|
224
|
+
defaultTheme: De,
|
|
225
|
+
themeId: We
|
|
211
226
|
}));
|
|
212
227
|
}
|
|
213
|
-
process.env.NODE_ENV !== "production" && (
|
|
228
|
+
process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
214
229
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
215
230
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
216
231
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -223,50 +238,50 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
223
238
|
function be(o) {
|
|
224
239
|
return o != null && !(Array.isArray(o) && o.length === 0);
|
|
225
240
|
}
|
|
226
|
-
function
|
|
241
|
+
function oo(o, n = !1) {
|
|
227
242
|
return o && (be(o.value) && o.value !== "" || n && be(o.defaultValue) && o.defaultValue !== "");
|
|
228
243
|
}
|
|
229
|
-
function
|
|
244
|
+
function vo(o) {
|
|
230
245
|
return o.startAdornment;
|
|
231
246
|
}
|
|
232
|
-
function
|
|
233
|
-
return
|
|
247
|
+
function no(o) {
|
|
248
|
+
return Ve("MuiInputBase", o);
|
|
234
249
|
}
|
|
235
|
-
const
|
|
250
|
+
const to = je("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), te = to, ro = ["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) => {
|
|
236
251
|
const {
|
|
237
252
|
ownerState: t
|
|
238
253
|
} = o;
|
|
239
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${ee(t.color)}`], t.fullWidth && n.fullWidth, t.hiddenLabel && n.hiddenLabel];
|
|
240
|
-
},
|
|
255
|
+
}, so = (o, n) => {
|
|
241
256
|
const {
|
|
242
257
|
ownerState: t
|
|
243
258
|
} = o;
|
|
244
259
|
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];
|
|
245
|
-
},
|
|
260
|
+
}, ao = (o) => {
|
|
246
261
|
const {
|
|
247
262
|
classes: n,
|
|
248
263
|
color: t,
|
|
249
|
-
disabled:
|
|
250
|
-
error:
|
|
264
|
+
disabled: a,
|
|
265
|
+
error: r,
|
|
251
266
|
endAdornment: p,
|
|
252
267
|
focused: I,
|
|
253
|
-
formControl:
|
|
268
|
+
formControl: E,
|
|
254
269
|
fullWidth: H,
|
|
255
|
-
hiddenLabel:
|
|
270
|
+
hiddenLabel: O,
|
|
256
271
|
multiline: S,
|
|
257
272
|
readOnly: F,
|
|
258
273
|
size: v,
|
|
259
274
|
startAdornment: b,
|
|
260
|
-
type:
|
|
275
|
+
type: N
|
|
261
276
|
} = o, k = {
|
|
262
|
-
root: ["root", `color${ee(t)}`,
|
|
263
|
-
input: ["input",
|
|
277
|
+
root: ["root", `color${ee(t)}`, a && "disabled", r && "error", H && "fullWidth", I && "focused", E && "formControl", v && v !== "medium" && `size${ee(v)}`, S && "multiline", b && "adornedStart", p && "adornedEnd", O && "hiddenLabel", F && "readOnly"],
|
|
278
|
+
input: ["input", a && "disabled", N === "search" && "inputTypeSearch", S && "inputMultiline", v === "small" && "inputSizeSmall", O && "inputHiddenLabel", b && "inputAdornedStart", p && "inputAdornedEnd", F && "readOnly"]
|
|
264
279
|
};
|
|
265
|
-
return
|
|
266
|
-
},
|
|
280
|
+
return Ue(k, no, n);
|
|
281
|
+
}, lo = we("div", {
|
|
267
282
|
name: "MuiInputBase",
|
|
268
283
|
slot: "Root",
|
|
269
|
-
overridesResolver:
|
|
284
|
+
overridesResolver: io
|
|
270
285
|
})(({
|
|
271
286
|
theme: o,
|
|
272
287
|
ownerState: n
|
|
@@ -290,15 +305,15 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
290
305
|
paddingTop: 1
|
|
291
306
|
}), n.fullWidth && {
|
|
292
307
|
width: "100%"
|
|
293
|
-
})),
|
|
308
|
+
})), uo = we("input", {
|
|
294
309
|
name: "MuiInputBase",
|
|
295
310
|
slot: "Input",
|
|
296
|
-
overridesResolver:
|
|
311
|
+
overridesResolver: so
|
|
297
312
|
})(({
|
|
298
313
|
theme: o,
|
|
299
314
|
ownerState: n
|
|
300
315
|
}) => {
|
|
301
|
-
const t = o.palette.mode === "light",
|
|
316
|
+
const t = o.palette.mode === "light", a = c({
|
|
302
317
|
color: "currentColor"
|
|
303
318
|
}, o.vars ? {
|
|
304
319
|
opacity: o.vars.opacity.inputPlaceholder
|
|
@@ -308,7 +323,7 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
308
323
|
transition: o.transitions.create("opacity", {
|
|
309
324
|
duration: o.transitions.duration.shorter
|
|
310
325
|
})
|
|
311
|
-
}),
|
|
326
|
+
}), r = {
|
|
312
327
|
opacity: "0 !important"
|
|
313
328
|
}, p = o.vars ? {
|
|
314
329
|
opacity: o.vars.opacity.inputPlaceholder
|
|
@@ -335,12 +350,12 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
335
350
|
// Fix IE11 width issue
|
|
336
351
|
animationName: "mui-auto-fill-cancel",
|
|
337
352
|
animationDuration: "10ms",
|
|
338
|
-
"&::-webkit-input-placeholder":
|
|
339
|
-
"&::-moz-placeholder":
|
|
353
|
+
"&::-webkit-input-placeholder": a,
|
|
354
|
+
"&::-moz-placeholder": a,
|
|
340
355
|
// Firefox 19+
|
|
341
|
-
"&:-ms-input-placeholder":
|
|
356
|
+
"&:-ms-input-placeholder": a,
|
|
342
357
|
// IE11
|
|
343
|
-
"&::-ms-input-placeholder":
|
|
358
|
+
"&::-ms-input-placeholder": a,
|
|
344
359
|
// Edge
|
|
345
360
|
"&:focus": {
|
|
346
361
|
outline: 0
|
|
@@ -355,12 +370,12 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
355
370
|
},
|
|
356
371
|
// Show and hide the placeholder logic
|
|
357
372
|
[`label[data-shrink=false] + .${te.formControl} &`]: {
|
|
358
|
-
"&::-webkit-input-placeholder":
|
|
359
|
-
"&::-moz-placeholder":
|
|
373
|
+
"&::-webkit-input-placeholder": r,
|
|
374
|
+
"&::-moz-placeholder": r,
|
|
360
375
|
// Firefox 19+
|
|
361
|
-
"&:-ms-input-placeholder":
|
|
376
|
+
"&:-ms-input-placeholder": r,
|
|
362
377
|
// IE11
|
|
363
|
-
"&::-ms-input-placeholder":
|
|
378
|
+
"&::-ms-input-placeholder": r,
|
|
364
379
|
// Edge
|
|
365
380
|
"&:focus::-webkit-input-placeholder": p,
|
|
366
381
|
"&:focus::-moz-placeholder": p,
|
|
@@ -391,7 +406,7 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
391
406
|
// Improve type search style.
|
|
392
407
|
MozAppearance: "textfield"
|
|
393
408
|
});
|
|
394
|
-
}),
|
|
409
|
+
}), co = /* @__PURE__ */ R(Ee, {
|
|
395
410
|
styles: {
|
|
396
411
|
"@keyframes mui-auto-fill": {
|
|
397
412
|
from: {
|
|
@@ -404,22 +419,22 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
404
419
|
}
|
|
405
420
|
}
|
|
406
421
|
}
|
|
407
|
-
}),
|
|
408
|
-
var
|
|
409
|
-
const
|
|
422
|
+
}), Oe = /* @__PURE__ */ s.forwardRef(function(n, t) {
|
|
423
|
+
var a;
|
|
424
|
+
const r = _e({
|
|
410
425
|
props: n,
|
|
411
426
|
name: "MuiInputBase"
|
|
412
427
|
}), {
|
|
413
428
|
"aria-describedby": p,
|
|
414
429
|
autoComplete: I,
|
|
415
|
-
autoFocus:
|
|
430
|
+
autoFocus: E,
|
|
416
431
|
className: H,
|
|
417
|
-
components:
|
|
432
|
+
components: O = {},
|
|
418
433
|
componentsProps: S = {},
|
|
419
434
|
defaultValue: F,
|
|
420
435
|
disabled: v,
|
|
421
436
|
disableInjectingGlobalStyles: b,
|
|
422
|
-
endAdornment:
|
|
437
|
+
endAdornment: N,
|
|
423
438
|
fullWidth: k = !1,
|
|
424
439
|
id: B,
|
|
425
440
|
inputComponent: V = "input",
|
|
@@ -430,10 +445,10 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
430
445
|
multiline: u = !1,
|
|
431
446
|
name: f,
|
|
432
447
|
onBlur: w,
|
|
433
|
-
onChange:
|
|
434
|
-
onClick:
|
|
448
|
+
onChange: z,
|
|
449
|
+
onClick: A,
|
|
435
450
|
onFocus: C,
|
|
436
|
-
onKeyDown:
|
|
451
|
+
onKeyDown: T,
|
|
437
452
|
onKeyUp: h,
|
|
438
453
|
placeholder: G,
|
|
439
454
|
readOnly: P,
|
|
@@ -443,57 +458,57 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
443
458
|
slots: se = {},
|
|
444
459
|
startAdornment: D,
|
|
445
460
|
type: ae = "text",
|
|
446
|
-
value:
|
|
447
|
-
} =
|
|
461
|
+
value: Ne
|
|
462
|
+
} = r, ze = ge(r, ro), L = m.value != null ? m.value : Ne, {
|
|
448
463
|
current: K
|
|
449
|
-
} = s.useRef(L != null), M = s.useRef(),
|
|
450
|
-
process.env.NODE_ENV !== "production" &&
|
|
464
|
+
} = s.useRef(L != null), M = s.useRef(), Ae = s.useCallback((i) => {
|
|
465
|
+
process.env.NODE_ENV !== "production" && i && i.nodeName !== "INPUT" && !i.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(`
|
|
451
466
|
`));
|
|
452
|
-
}, []),
|
|
467
|
+
}, []), Ie = ve(M, $, m.ref, Ae), [q, Y] = s.useState(!1), l = Xe();
|
|
453
468
|
process.env.NODE_ENV !== "production" && s.useEffect(() => {
|
|
454
|
-
if (
|
|
455
|
-
return
|
|
456
|
-
}, [
|
|
457
|
-
const y =
|
|
458
|
-
props:
|
|
459
|
-
muiFormControl:
|
|
469
|
+
if (l)
|
|
470
|
+
return l.registerEffect();
|
|
471
|
+
}, [l]);
|
|
472
|
+
const y = eo({
|
|
473
|
+
props: r,
|
|
474
|
+
muiFormControl: l,
|
|
460
475
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
461
476
|
});
|
|
462
|
-
y.focused =
|
|
463
|
-
!
|
|
464
|
-
}, [
|
|
465
|
-
const Z =
|
|
466
|
-
|
|
477
|
+
y.focused = l ? l.focused : q, s.useEffect(() => {
|
|
478
|
+
!l && v && q && (Y(!1), w && w());
|
|
479
|
+
}, [l, v, q, w]);
|
|
480
|
+
const Z = l && l.onFilled, J = l && l.onEmpty, W = s.useCallback((i) => {
|
|
481
|
+
oo(i) ? Z && Z() : J && J();
|
|
467
482
|
}, [Z, J]);
|
|
468
483
|
ne(() => {
|
|
469
484
|
K && W({
|
|
470
485
|
value: L
|
|
471
486
|
});
|
|
472
487
|
}, [L, W, K]);
|
|
473
|
-
const
|
|
488
|
+
const Fe = (i) => {
|
|
474
489
|
if (y.disabled) {
|
|
475
|
-
|
|
490
|
+
i.stopPropagation();
|
|
476
491
|
return;
|
|
477
492
|
}
|
|
478
|
-
C && C(
|
|
479
|
-
},
|
|
480
|
-
w && w(
|
|
481
|
-
},
|
|
493
|
+
C && C(i), m.onFocus && m.onFocus(i), l && l.onFocus ? l.onFocus(i) : Y(!0);
|
|
494
|
+
}, ke = (i) => {
|
|
495
|
+
w && w(i), m.onBlur && m.onBlur(i), l && l.onBlur ? l.onBlur(i) : Y(!1);
|
|
496
|
+
}, Be = (i, ...ce) => {
|
|
482
497
|
if (!K) {
|
|
483
|
-
const pe =
|
|
498
|
+
const pe = i.target || M.current;
|
|
484
499
|
if (pe == null)
|
|
485
|
-
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." :
|
|
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." : Le(1));
|
|
486
501
|
W({
|
|
487
502
|
value: pe.value
|
|
488
503
|
});
|
|
489
504
|
}
|
|
490
|
-
m.onChange && m.onChange(
|
|
505
|
+
m.onChange && m.onChange(i, ...ce), z && z(i, ...ce);
|
|
491
506
|
};
|
|
492
507
|
s.useEffect(() => {
|
|
493
508
|
W(M.current);
|
|
494
509
|
}, []);
|
|
495
|
-
const
|
|
496
|
-
M.current &&
|
|
510
|
+
const Me = (i) => {
|
|
511
|
+
M.current && i.currentTarget === i.target && M.current.focus(), A && A(i);
|
|
497
512
|
};
|
|
498
513
|
let Q = V, x = m;
|
|
499
514
|
u && Q === "input" && (_ ? (process.env.NODE_ENV !== "production" && (g || d) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), x = c({
|
|
@@ -504,75 +519,75 @@ const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
|
|
|
504
519
|
type: void 0,
|
|
505
520
|
maxRows: d,
|
|
506
521
|
minRows: g
|
|
507
|
-
}, x), Q =
|
|
508
|
-
const
|
|
509
|
-
W(
|
|
522
|
+
}, x), Q = xe);
|
|
523
|
+
const He = (i) => {
|
|
524
|
+
W(i.animationName === "mui-auto-fill-cancel" ? M.current : {
|
|
510
525
|
value: "x"
|
|
511
526
|
});
|
|
512
527
|
};
|
|
513
528
|
s.useEffect(() => {
|
|
514
|
-
|
|
515
|
-
}, [
|
|
516
|
-
const
|
|
529
|
+
l && l.setAdornedStart(!!D);
|
|
530
|
+
}, [l, D]);
|
|
531
|
+
const j = c({}, r, {
|
|
517
532
|
color: y.color || "primary",
|
|
518
533
|
disabled: y.disabled,
|
|
519
|
-
endAdornment:
|
|
534
|
+
endAdornment: N,
|
|
520
535
|
error: y.error,
|
|
521
536
|
focused: y.focused,
|
|
522
|
-
formControl:
|
|
537
|
+
formControl: l,
|
|
523
538
|
fullWidth: k,
|
|
524
539
|
hiddenLabel: y.hiddenLabel,
|
|
525
540
|
multiline: u,
|
|
526
541
|
size: y.size,
|
|
527
542
|
startAdornment: D,
|
|
528
543
|
type: ae
|
|
529
|
-
}), le =
|
|
530
|
-
return x = c({}, x, (
|
|
531
|
-
children: [!b &&
|
|
532
|
-
ownerState: c({},
|
|
544
|
+
}), le = ao(j), ue = se.root || O.Root || lo, X = ie.root || S.root || {}, de = se.input || O.Input || uo;
|
|
545
|
+
return x = c({}, x, (a = ie.input) != null ? a : S.input), /* @__PURE__ */ oe(s.Fragment, {
|
|
546
|
+
children: [!b && co, /* @__PURE__ */ oe(ue, c({}, X, !he(ue) && {
|
|
547
|
+
ownerState: c({}, j, X.ownerState)
|
|
533
548
|
}, {
|
|
534
549
|
ref: t,
|
|
535
|
-
onClick:
|
|
536
|
-
},
|
|
550
|
+
onClick: Me
|
|
551
|
+
}, ze, {
|
|
537
552
|
className: fe(le.root, X.className, H, P && "MuiInputBase-readOnly"),
|
|
538
|
-
children: [D, /* @__PURE__ */
|
|
553
|
+
children: [D, /* @__PURE__ */ R(Re.Provider, {
|
|
539
554
|
value: null,
|
|
540
|
-
children: /* @__PURE__ */
|
|
541
|
-
ownerState:
|
|
555
|
+
children: /* @__PURE__ */ R(de, c({
|
|
556
|
+
ownerState: j,
|
|
542
557
|
"aria-invalid": y.error,
|
|
543
558
|
"aria-describedby": p,
|
|
544
559
|
autoComplete: I,
|
|
545
|
-
autoFocus:
|
|
560
|
+
autoFocus: E,
|
|
546
561
|
defaultValue: F,
|
|
547
562
|
disabled: y.disabled,
|
|
548
563
|
id: B,
|
|
549
|
-
onAnimationStart:
|
|
564
|
+
onAnimationStart: He,
|
|
550
565
|
name: f,
|
|
551
566
|
placeholder: G,
|
|
552
567
|
readOnly: P,
|
|
553
568
|
required: y.required,
|
|
554
569
|
rows: _,
|
|
555
570
|
value: L,
|
|
556
|
-
onKeyDown:
|
|
571
|
+
onKeyDown: T,
|
|
557
572
|
onKeyUp: h,
|
|
558
573
|
type: ae
|
|
559
574
|
}, x, !he(de) && {
|
|
560
575
|
as: Q,
|
|
561
|
-
ownerState: c({},
|
|
576
|
+
ownerState: c({}, j, x.ownerState)
|
|
562
577
|
}, {
|
|
563
|
-
ref:
|
|
578
|
+
ref: Ie,
|
|
564
579
|
className: fe(le.input, x.className, P && "MuiInputBase-readOnly"),
|
|
565
|
-
onBlur:
|
|
566
|
-
onChange:
|
|
567
|
-
onFocus:
|
|
580
|
+
onBlur: ke,
|
|
581
|
+
onChange: Be,
|
|
582
|
+
onFocus: Fe
|
|
568
583
|
}))
|
|
569
|
-
}),
|
|
584
|
+
}), N, re ? re(c({}, y, {
|
|
570
585
|
startAdornment: D
|
|
571
586
|
})) : null]
|
|
572
587
|
}))]
|
|
573
588
|
});
|
|
574
589
|
});
|
|
575
|
-
process.env.NODE_ENV !== "production" && (
|
|
590
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
576
591
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
577
592
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
578
593
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -802,19 +817,17 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
802
817
|
*/
|
|
803
818
|
value: e.any
|
|
804
819
|
});
|
|
805
|
-
const
|
|
820
|
+
const Co = Oe;
|
|
806
821
|
export {
|
|
807
822
|
Re as F,
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
so as
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
to as r,
|
|
819
|
-
Je as u
|
|
823
|
+
Co as I,
|
|
824
|
+
lo as a,
|
|
825
|
+
uo as b,
|
|
826
|
+
so as c,
|
|
827
|
+
vo as d,
|
|
828
|
+
oo as e,
|
|
829
|
+
eo as f,
|
|
830
|
+
te as i,
|
|
831
|
+
io as r,
|
|
832
|
+
Xe as u
|
|
820
833
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as ht } from "react/jsx-runtime";
|
|
2
|
-
import { m as Q, n as tt, _ as dt,
|
|
2
|
+
import { m as Q, n as tt, _ as dt, e as yt, b as pt, P as D } from "./useThemeProps-CZzcR_pm.js";
|
|
3
3
|
import * as K from "react";
|
|
4
|
-
import { u as pt } from "./useThemeProps-63SNG58r.js";
|
|
5
4
|
var nt = { exports: {} }, ot;
|
|
6
5
|
function at() {
|
|
7
6
|
return ot || (ot = 1, function(L, x) {
|
|
@@ -888,7 +887,7 @@ var zt = { exports: {} };
|
|
|
888
887
|
return $.default.locale(t, null, !0), t;
|
|
889
888
|
});
|
|
890
889
|
})(zt);
|
|
891
|
-
const
|
|
890
|
+
const Wt = ({ adapterLocale: L = "fr", ...x }) => /* @__PURE__ */ ht(
|
|
892
891
|
Mt,
|
|
893
892
|
{
|
|
894
893
|
dateAdapter: jt,
|
|
@@ -897,7 +896,7 @@ const Ft = ({ adapterLocale: L = "fr", ...x }) => /* @__PURE__ */ ht(
|
|
|
897
896
|
}
|
|
898
897
|
);
|
|
899
898
|
export {
|
|
900
|
-
|
|
899
|
+
Wt as L,
|
|
901
900
|
it as M,
|
|
902
901
|
Mt as a,
|
|
903
902
|
xt as b
|