@cgi-learning-hub/ui 0.0.1-dev.1709568003 → 0.0.1-dev.1709569638

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.
Files changed (127) hide show
  1. package/dist/{Box-erN4AuKs.js → Box-C0qXdJzV.js} +8 -8
  2. package/dist/Box-DjRIKMD0.cjs +1 -0
  3. package/dist/ButtonBase-BvllyU4w.cjs +75 -0
  4. package/dist/ButtonBase-C14ZYs6z.js +833 -0
  5. package/dist/CircularProgress-Bf46-VRs.js +217 -0
  6. package/dist/CircularProgress-DjSMBYnK.cjs +28 -0
  7. package/dist/{DefaultButton-DbpZOb47.js → DefaultButton-B-2UppUm.js} +146 -355
  8. package/dist/DefaultButton-DPZOltN5.cjs +1 -0
  9. package/dist/{IconButton-DE5JOshS.js → IconButton-1URziYlU.js} +8 -8
  10. package/dist/IconButton-X6l-U-im.cjs +2 -0
  11. package/dist/InputBase-BrkAyp4z.cjs +4 -0
  12. package/dist/{InputBase-C8AzQJJ9.js → InputBase-D_wYPpmB.js} +173 -160
  13. package/dist/{LocalizationProvider-Cov62Xe0.js → LocalizationProvider-BD64DNxF.js} +3 -4
  14. package/dist/LocalizationProvider-DqwEOZOd.cjs +5 -0
  15. package/dist/SearchInput-CMLDZJ8k.cjs +1 -0
  16. package/dist/SearchInput-D2HnePqk.js +177 -0
  17. package/dist/Tabs-B9BPJaDx.js +1090 -0
  18. package/dist/Tabs-Dx8YJT4c.cjs +4 -0
  19. package/dist/TextInput-BO1q4hT2.cjs +12 -0
  20. package/dist/{TextInput-DmMk4i-V.js → TextInput-DiA3Q5CJ.js} +1353 -1594
  21. package/dist/TimePicker-CBI_tdzH.js +19695 -0
  22. package/dist/TimePicker-CnW0kylk.cjs +69 -0
  23. package/dist/Typography-CRt6WSxo.js +204 -0
  24. package/dist/Typography-DsPQABF2.cjs +1 -0
  25. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  26. package/dist/components/Dropzone/Dropzone.es.js +11 -12
  27. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  28. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +1 -1
  29. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  30. package/dist/components/LocalizationProvider/index.es.js +1 -1
  31. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  32. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +3 -3
  33. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  34. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +6 -6
  35. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  36. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  37. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  38. package/dist/components/buttons/IconButton.stories.es.js +9 -10
  39. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  40. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
  41. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  42. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  43. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  44. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  45. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  46. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  47. package/dist/components/buttons/index.cjs.js +1 -1
  48. package/dist/components/buttons/index.es.js +1 -1
  49. package/dist/components/index.cjs.js +1 -1
  50. package/dist/components/index.es.js +91 -90
  51. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  52. package/dist/components/inputs/SearchInput/SearchInput.es.js +6 -174
  53. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  54. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
  55. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  56. package/dist/components/inputs/SearchInput/index.es.js +2 -2
  57. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  58. package/dist/components/inputs/TextInput/TextInput.es.js +2 -2
  59. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  60. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  61. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  62. package/dist/components/inputs/TextInput/index.es.js +1 -1
  63. package/dist/components/inputs/index.cjs.js +1 -1
  64. package/dist/components/inputs/index.es.js +4 -4
  65. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  66. package/dist/components/lists/FileList/FileList.es.js +2 -2
  67. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  68. package/dist/components/lists/FileList/FileListItem.es.js +39 -7
  69. package/dist/components/lists/FileList/index.cjs.js +1 -1
  70. package/dist/components/lists/FileList/index.es.js +4 -4
  71. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  72. package/dist/components/lists/TabList.stories.es.js +16 -18
  73. package/dist/components/lists/index.cjs.js +1 -1
  74. package/dist/components/lists/index.es.js +4 -4
  75. package/dist/createSvgIcon-BOQCM03y.cjs +2 -0
  76. package/dist/createSvgIcon-C2VxBqzG.cjs +1 -0
  77. package/dist/{createSvgIcon-DeRU4e-L.js → createSvgIcon-Dspfpz-l.js} +18 -20
  78. package/dist/createSvgIcon-xJp3_zwo.js +84 -0
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.es.js +94 -93
  81. package/dist/isHostComponent-PydJW4A4.cjs +1 -0
  82. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  83. package/dist/refType-5EEBZL5_.cjs +1 -0
  84. package/dist/{refType-CoCfCK--.js → refType-BBFUe6fu.js} +1 -1
  85. package/dist/styled-D8lXwcQy.js +423 -0
  86. package/dist/styled-DFoJwRxe.cjs +24 -0
  87. package/dist/useSlotProps-BoMYRJkF.js +72 -0
  88. package/dist/useSlotProps-EKKRQjEn.cjs +1 -0
  89. package/dist/useTheme-BkW5nNsn.cjs +1 -0
  90. package/dist/useTheme-Bo1inEHN.js +9 -0
  91. package/dist/useThemeProps-BRWSvuZw.cjs +42 -0
  92. package/dist/useThemeProps-CZzcR_pm.js +2288 -0
  93. package/package.json +5 -2
  94. package/dist/Box-CjHm9A9L.cjs +0 -1
  95. package/dist/ButtonBase-BybMkBUd.cjs +0 -75
  96. package/dist/ButtonBase-CGcs8Gbj.cjs +0 -75
  97. package/dist/ButtonBase-V1pwsMMs.js +0 -649
  98. package/dist/ButtonBase-aujiNoUb.js +0 -649
  99. package/dist/DefaultButton-Cg4tPCgf.cjs +0 -28
  100. package/dist/FileListItem-ChKTjDnV.js +0 -254
  101. package/dist/FileListItem-CjFIZgYg.cjs +0 -28
  102. package/dist/IconButton-CHXclgOn.cjs +0 -2
  103. package/dist/InputBase-D6eXzDaz.cjs +0 -4
  104. package/dist/LocalizationProvider-42pD7VmS.cjs +0 -5
  105. package/dist/Tabs-DiWeNGD4.js +0 -1167
  106. package/dist/Tabs-DoxP7EMA.cjs +0 -4
  107. package/dist/TextInput-BbSyyuvO.cjs +0 -12
  108. package/dist/TimePicker-B5MjZCK0.cjs +0 -89
  109. package/dist/TimePicker-BmxG3a2D.js +0 -28354
  110. package/dist/TransitionGroup-COuDopJ-.js +0 -188
  111. package/dist/TransitionGroup-X90dkobW.cjs +0 -1
  112. package/dist/Typography-B90UzlQW.js +0 -179
  113. package/dist/Typography-KFjBz5Hm.cjs +0 -1
  114. package/dist/clamp-0LjYbpE_.cjs +0 -23
  115. package/dist/clamp-BGJvJ0FN.js +0 -1641
  116. package/dist/createSvgIcon-BSYat4nx.js +0 -74
  117. package/dist/createSvgIcon-BqRWmIPG.cjs +0 -1
  118. package/dist/createSvgIcon-doNQ5emq.cjs +0 -2
  119. package/dist/refType-Bt58K9Sk.cjs +0 -1
  120. package/dist/styled-BU8dAebc.js +0 -1751
  121. package/dist/styled-DGjsLYEN.cjs +0 -45
  122. package/dist/styled-DP6LeBLQ.js +0 -261
  123. package/dist/styled-Dkd1VGM-.cjs +0 -1
  124. package/dist/useTheme-C132tQV-.js +0 -10
  125. package/dist/useTheme-CliHZTkE.cjs +0 -1
  126. package/dist/useThemeProps-63SNG58r.js +0 -753
  127. package/dist/useThemeProps-CVatCXfo.cjs +0 -20
@@ -1,22 +1,40 @@
1
- import { u as He, P as e, a as ge, _ as c, g as Pe, c as ee, f as De } from "./clamp-BGJvJ0FN.js";
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 { G as We, d as Ve, T as _e, g as Le, s as we, u as Ue, c as fe, b as je } from "./styled-BU8dAebc.js";
4
- import { jsx as A, jsxs as oe } from "react/jsx-runtime";
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 { e as Ke, r as qe } from "./refType-CoCfCK--.js";
9
- function Ce({
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 l = He(t), i = typeof o == "function" ? o(n && l[n] || l) : o;
15
- return /* @__PURE__ */ A(We, {
16
- styles: i
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" && (Ce.propTypes = {
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
- function he(o) {
38
- return typeof o == "string";
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 Ze = {
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 Se = /* @__PURE__ */ s.forwardRef(function(n, t) {
77
+ const xe = /* @__PURE__ */ s.forwardRef(function(n, t) {
63
78
  const {
64
- onChange: l,
65
- maxRows: i,
79
+ onChange: a,
80
+ maxRows: r,
66
81
  minRows: p = 1,
67
82
  style: I,
68
- value: T
69
- } = n, H = ge(n, Ye), {
70
- current: E
71
- } = s.useRef(T != null), S = s.useRef(null), F = ve(t, S), v = s.useRef(null), b = s.useRef(0), [O, k] = s.useState({
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, N = j(u.paddingBottom) + j(u.paddingTop), z = j(u.borderBottomWidth) + j(u.borderTopWidth), C = f.scrollHeight;
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 R = f.scrollHeight;
99
+ const T = f.scrollHeight;
85
100
  let h = C;
86
- p && (h = Math.max(Number(p) * R, h)), i && (h = Math.min(Number(i) * R, h)), h = Math.max(h, R);
87
- const G = h + (w === "border-box" ? N + z : 0), P = Math.abs(h - C) <= 1;
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
- }, [i, p, n.placeholder]), V = (d, g) => {
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 R = B();
109
- ye(R) || $e.flushSync(() => {
110
- k((h) => V(h, R));
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), N = S.current, z = me(N);
121
- z.addEventListener("resize", w);
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(N)), () => {
124
- w.clear(), cancelAnimationFrame(u), z.removeEventListener("resize", w), C && C.disconnect();
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
- }, [T]);
145
+ }, [E]);
131
146
  const $ = (d) => {
132
- b.current = 0, E || m(), l && l(d);
147
+ b.current = 0, O || m(), a && a(d);
133
148
  };
134
149
  return /* @__PURE__ */ oe(s.Fragment, {
135
- children: [/* @__PURE__ */ A("textarea", c({
136
- value: T,
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: O.outerHeightStyle,
156
+ height: N.outerHeightStyle,
142
157
  // Need a large enough difference to allow scrolling.
143
158
  // This prevents infinite rendering loop.
144
- overflow: O.overflow ? "hidden" : void 0
159
+ overflow: N.overflow ? "hidden" : void 0
145
160
  }, I)
146
- }, H)), /* @__PURE__ */ A("textarea", {
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({}, Ze.shadow, I, {
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" && (Se.propTypes = {
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 xe = /* @__PURE__ */ s.createContext(void 0);
195
- process.env.NODE_ENV !== "production" && (xe.displayName = "FormControlContext");
196
- const Re = xe;
197
- function Je() {
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 Qe({
215
+ function eo({
201
216
  props: o,
202
217
  states: n,
203
218
  muiFormControl: t
204
219
  }) {
205
- return n.reduce((l, i) => (l[i] = o[i], t && typeof o[i] > "u" && (l[i] = t[i]), l), {});
220
+ return n.reduce((a, r) => (a[r] = o[r], t && typeof o[r] > "u" && (a[r] = t[r]), a), {});
206
221
  }
207
- function Te(o) {
208
- return /* @__PURE__ */ A(Ce, c({}, o, {
209
- defaultTheme: Ve,
210
- themeId: _e
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" && (Te.propTypes = {
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 Xe(o, n = !1) {
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 yo(o) {
244
+ function vo(o) {
230
245
  return o.startAdornment;
231
246
  }
232
- function eo(o) {
233
- return Pe("MuiInputBase", o);
247
+ function no(o) {
248
+ return Ve("MuiInputBase", o);
234
249
  }
235
- const oo = Le("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]), te = oo, no = ["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"], to = (o, n) => {
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
- }, ro = (o, n) => {
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
- }, io = (o) => {
260
+ }, ao = (o) => {
246
261
  const {
247
262
  classes: n,
248
263
  color: t,
249
- disabled: l,
250
- error: i,
264
+ disabled: a,
265
+ error: r,
251
266
  endAdornment: p,
252
267
  focused: I,
253
- formControl: T,
268
+ formControl: E,
254
269
  fullWidth: H,
255
- hiddenLabel: E,
270
+ hiddenLabel: O,
256
271
  multiline: S,
257
272
  readOnly: F,
258
273
  size: v,
259
274
  startAdornment: b,
260
- type: O
275
+ type: N
261
276
  } = o, k = {
262
- root: ["root", `color${ee(t)}`, l && "disabled", i && "error", H && "fullWidth", I && "focused", T && "formControl", v && v !== "medium" && `size${ee(v)}`, S && "multiline", b && "adornedStart", p && "adornedEnd", E && "hiddenLabel", F && "readOnly"],
263
- input: ["input", l && "disabled", O === "search" && "inputTypeSearch", S && "inputMultiline", v === "small" && "inputSizeSmall", E && "inputHiddenLabel", b && "inputAdornedStart", p && "inputAdornedEnd", F && "readOnly"]
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 je(k, eo, n);
266
- }, so = we("div", {
280
+ return Ue(k, no, n);
281
+ }, lo = we("div", {
267
282
  name: "MuiInputBase",
268
283
  slot: "Root",
269
- overridesResolver: to
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
- })), ao = we("input", {
308
+ })), uo = we("input", {
294
309
  name: "MuiInputBase",
295
310
  slot: "Input",
296
- overridesResolver: ro
311
+ overridesResolver: so
297
312
  })(({
298
313
  theme: o,
299
314
  ownerState: n
300
315
  }) => {
301
- const t = o.palette.mode === "light", l = c({
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
- }), i = {
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": l,
339
- "&::-moz-placeholder": l,
353
+ "&::-webkit-input-placeholder": a,
354
+ "&::-moz-placeholder": a,
340
355
  // Firefox 19+
341
- "&:-ms-input-placeholder": l,
356
+ "&:-ms-input-placeholder": a,
342
357
  // IE11
343
- "&::-ms-input-placeholder": l,
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": i,
359
- "&::-moz-placeholder": i,
373
+ "&::-webkit-input-placeholder": r,
374
+ "&::-moz-placeholder": r,
360
375
  // Firefox 19+
361
- "&:-ms-input-placeholder": i,
376
+ "&:-ms-input-placeholder": r,
362
377
  // IE11
363
- "&::-ms-input-placeholder": i,
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
- }), lo = /* @__PURE__ */ A(Te, {
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
- }), Ee = /* @__PURE__ */ s.forwardRef(function(n, t) {
408
- var l;
409
- const i = Ue({
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: T,
430
+ autoFocus: E,
416
431
  className: H,
417
- components: E = {},
432
+ components: O = {},
418
433
  componentsProps: S = {},
419
434
  defaultValue: F,
420
435
  disabled: v,
421
436
  disableInjectingGlobalStyles: b,
422
- endAdornment: O,
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: N,
434
- onClick: z,
448
+ onChange: z,
449
+ onClick: A,
435
450
  onFocus: C,
436
- onKeyDown: R,
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: Oe
447
- } = i, Ne = ge(i, no), L = m.value != null ? m.value : Oe, {
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(), ze = s.useCallback((r) => {
450
- 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(`
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
- }, []), Ae = ve(M, $, m.ref, ze), [q, Y] = s.useState(!1), a = Je();
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 (a)
455
- return a.registerEffect();
456
- }, [a]);
457
- const y = Qe({
458
- props: i,
459
- muiFormControl: a,
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 = a ? a.focused : q, s.useEffect(() => {
463
- !a && v && q && (Y(!1), w && w());
464
- }, [a, v, q, w]);
465
- const Z = a && a.onFilled, J = a && a.onEmpty, W = s.useCallback((r) => {
466
- Xe(r) ? Z && Z() : J && J();
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 Ie = (r) => {
488
+ const Fe = (i) => {
474
489
  if (y.disabled) {
475
- r.stopPropagation();
490
+ i.stopPropagation();
476
491
  return;
477
492
  }
478
- C && C(r), m.onFocus && m.onFocus(r), a && a.onFocus ? a.onFocus(r) : Y(!0);
479
- }, Fe = (r) => {
480
- w && w(r), m.onBlur && m.onBlur(r), a && a.onBlur ? a.onBlur(r) : Y(!1);
481
- }, ke = (r, ...ce) => {
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 = r.target || M.current;
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." : De(1));
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(r, ...ce), N && N(r, ...ce);
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 Be = (r) => {
496
- M.current && r.currentTarget === r.target && M.current.focus(), z && z(r);
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 = Se);
508
- const Me = (r) => {
509
- W(r.animationName === "mui-auto-fill-cancel" ? M.current : {
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
- a && a.setAdornedStart(!!D);
515
- }, [a, D]);
516
- const U = c({}, i, {
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: O,
534
+ endAdornment: N,
520
535
  error: y.error,
521
536
  focused: y.focused,
522
- formControl: a,
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 = io(U), ue = se.root || E.Root || so, X = ie.root || S.root || {}, de = se.input || E.Input || ao;
530
- return x = c({}, x, (l = ie.input) != null ? l : S.input), /* @__PURE__ */ oe(s.Fragment, {
531
- children: [!b && lo, /* @__PURE__ */ oe(ue, c({}, X, !he(ue) && {
532
- ownerState: c({}, U, X.ownerState)
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: Be
536
- }, Ne, {
550
+ onClick: Me
551
+ }, ze, {
537
552
  className: fe(le.root, X.className, H, P && "MuiInputBase-readOnly"),
538
- children: [D, /* @__PURE__ */ A(Re.Provider, {
553
+ children: [D, /* @__PURE__ */ R(Re.Provider, {
539
554
  value: null,
540
- children: /* @__PURE__ */ A(de, c({
541
- ownerState: U,
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: T,
560
+ autoFocus: E,
546
561
  defaultValue: F,
547
562
  disabled: y.disabled,
548
563
  id: B,
549
- onAnimationStart: Me,
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: R,
571
+ onKeyDown: T,
557
572
  onKeyUp: h,
558
573
  type: ae
559
574
  }, x, !he(de) && {
560
575
  as: Q,
561
- ownerState: c({}, U, x.ownerState)
576
+ ownerState: c({}, j, x.ownerState)
562
577
  }, {
563
- ref: Ae,
578
+ ref: Ie,
564
579
  className: fe(le.input, x.className, P && "MuiInputBase-readOnly"),
565
- onBlur: Fe,
566
- onChange: ke,
567
- onFocus: Ie
580
+ onBlur: ke,
581
+ onChange: Be,
582
+ onFocus: Fe
568
583
  }))
569
- }), O, re ? re(c({}, y, {
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" && (Ee.propTypes = {
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 bo = Ee;
820
+ const Co = Oe;
806
821
  export {
807
822
  Re as F,
808
- Ce as G,
809
- bo as I,
810
- te as a,
811
- so as b,
812
- ao as c,
813
- ro as d,
814
- yo as e,
815
- Qe as f,
816
- Xe as g,
817
- he as i,
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, a as yt, P as D } from "./clamp-BGJvJ0FN.js";
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 Ft = ({ adapterLocale: L = "fr", ...x }) => /* @__PURE__ */ ht(
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
- Ft as L,
899
+ Wt as L,
901
900
  it as M,
902
901
  Mt as a,
903
902
  xt as b