@cgi-learning-hub/ui 1.3.2-dev.1731948416 → 1.3.2-dev.1732013713

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 (151) hide show
  1. package/dist/Backdrop-KAJqifAq.cjs +1 -0
  2. package/dist/{Backdrop-CV5zVFtT.js → Backdrop-RBPtVAPX.js} +220 -265
  3. package/dist/{Box-MG2tJmr8.js → Box-UE-zctbJ.js} +3 -3
  4. package/dist/{Button-Ba8IQCCs.js → Button-Bjy0iPNm.js} +4 -4
  5. package/dist/{ButtonBase-BdvHQ0Vd.js → ButtonBase-CFD7NVUc.js} +21 -21
  6. package/dist/Checkbox-Ct5E_6h7.js +241 -0
  7. package/dist/Checkbox-CuYTY0gd.cjs +1 -0
  8. package/dist/{CircularProgress-BAVvonKL.js → CircularProgress-By02Sdoh.js} +3 -3
  9. package/dist/{DatePicker-DCsrvr3a.cjs → DatePicker-rhgpaD-r.cjs} +14 -14
  10. package/dist/{DatePicker-DoB4WsQR.js → DatePicker-u4rtXGeo.js} +53 -48
  11. package/dist/{DefaultPropsProvider-BE624hnX.js → DefaultPropsProvider-CaRoy5OV.js} +24 -24
  12. package/dist/FormGroup-BBYEQB4C.cjs +1 -0
  13. package/dist/FormGroup-BVtE8Mrv.js +348 -0
  14. package/dist/FormLabel-B4QlkhhB.js +424 -0
  15. package/dist/FormLabel-D8jYibc1.cjs +2 -0
  16. package/dist/{IconButton-BM6tD2wP.js → IconButton-Av8eJ5IG.js} +4 -4
  17. package/dist/InputAdornment-BJfpEQAa.cjs +1 -0
  18. package/dist/{InputAdornment-DwegBPlu.js → InputAdornment-COPtZlSD.js} +5 -5
  19. package/dist/{InputBase-Ck6jdGdt.js → InputBase-Bbgoz8GV.js} +186 -210
  20. package/dist/InputBase-Ctmib7Br.cjs +3 -0
  21. package/dist/MenuItem-D7HWYhF3.js +277 -0
  22. package/dist/MenuItem-Els-vJZW.cjs +1 -0
  23. package/dist/{TextField-ptOYG3fA.js → Select-BlPQngVF.js} +1458 -2424
  24. package/dist/Select-ipcMZ4iK.cjs +11 -0
  25. package/dist/{Stack-vO5Ta57O.js → Stack-y1PjTHKX.js} +18 -18
  26. package/dist/SwitchBase-URM3X3YZ.cjs +1 -0
  27. package/dist/SwitchBase-yCuH0Tqk.js +261 -0
  28. package/dist/{Tabs-DSWPmVfN.js → Tabs-DK4Bc5xo.js} +10 -10
  29. package/dist/{Tabs-e8UBJZ5z.cjs → Tabs-Nvk94RTW.cjs} +1 -1
  30. package/dist/TextField-BVAkADOb.cjs +1 -0
  31. package/dist/TextField-C-B529_r.js +547 -0
  32. package/dist/{Tooltip-dMZ46-1F.js → Tooltip-DO9GIhWC.js} +1782 -2858
  33. package/dist/Tooltip-DvPL2M0E.cjs +100 -0
  34. package/dist/{Typography-HjpyrRz2.js → Typography-C_ESP41L.js} +4 -4
  35. package/dist/components/Button/Button.es.js +5 -5
  36. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  37. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  38. package/dist/components/DatePicker/index.cjs.js +1 -1
  39. package/dist/components/DatePicker/index.es.js +1 -1
  40. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  41. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  42. package/dist/components/FileList/FileList.es.js +1 -1
  43. package/dist/components/FileList/FileListItem.es.js +6 -6
  44. package/dist/components/Heading/Heading.es.js +2 -2
  45. package/dist/components/Loader/Loader.es.js +1 -1
  46. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  47. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  48. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  49. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  50. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  51. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  52. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  53. package/dist/components/TextInput/TextInput.es.js +1 -1
  54. package/dist/components/index.cjs.js +1 -1
  55. package/dist/components/index.es.js +267 -262
  56. package/dist/components/stories/Alert.stories.cjs.js +1 -0
  57. package/dist/components/{Alert → stories}/Alert.stories.d.ts +1 -1
  58. package/dist/components/{Alert → stories}/Alert.stories.es.js +1 -1
  59. package/dist/components/stories/Button.stories.cjs.js +1 -0
  60. package/dist/components/{Button → stories}/Button.stories.d.ts +1 -1
  61. package/dist/components/{Button → stories}/Button.stories.es.js +2 -2
  62. package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
  63. package/dist/components/stories/Checkbox.stories.d.ts +10 -0
  64. package/dist/components/stories/Checkbox.stories.es.js +28 -0
  65. package/dist/components/{DatePicker → stories}/DatePicker.stories.cjs.js +1 -1
  66. package/dist/components/{DatePicker → stories}/DatePicker.stories.d.ts +1 -1
  67. package/dist/components/{DatePicker → stories}/DatePicker.stories.es.js +1 -1
  68. package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
  69. package/dist/components/{Dropzone → stories}/Dropzone.stories.d.ts +1 -1
  70. package/dist/components/{Dropzone → stories}/Dropzone.stories.es.js +1 -1
  71. package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
  72. package/dist/components/{EmptyState → stories}/EmptyState.stories.d.ts +1 -1
  73. package/dist/components/{EmptyState → stories}/EmptyState.stories.es.js +1 -1
  74. package/dist/components/stories/FileList.stories.cjs.js +1 -0
  75. package/dist/components/{FileList → stories}/FileList.stories.d.ts +1 -1
  76. package/dist/components/{FileList → stories}/FileList.stories.es.js +6 -5
  77. package/dist/components/stories/Heading.stories.cjs.js +1 -0
  78. package/dist/components/{Heading → stories}/Heading.stories.d.ts +1 -1
  79. package/dist/components/{Heading → stories}/Heading.stories.es.js +3 -3
  80. package/dist/components/stories/IconButton.stories.es.js +2 -2
  81. package/dist/components/stories/Loader.stories.cjs.js +1 -0
  82. package/dist/components/{Loader → stories}/Loader.stories.d.ts +1 -1
  83. package/dist/components/{Loader → stories}/Loader.stories.es.js +1 -1
  84. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
  85. package/dist/components/{LoaderBackdrop → stories}/LoaderBackdrop.stories.d.ts +1 -1
  86. package/dist/components/{LoaderBackdrop → stories}/LoaderBackdrop.stories.es.js +1 -1
  87. package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
  88. package/dist/components/{PasswordInput → stories}/PasswordInput.stories.d.ts +1 -1
  89. package/dist/components/{PasswordInput → stories}/PasswordInput.stories.es.js +1 -1
  90. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
  91. package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
  92. package/dist/components/stories/RadioGroup.stories.es.js +434 -0
  93. package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
  94. package/dist/components/{SearchInput → stories}/SearchInput.stories.d.ts +1 -1
  95. package/dist/components/{SearchInput → stories}/SearchInput.stories.es.js +1 -1
  96. package/dist/components/stories/Select.stories.cjs.js +1 -0
  97. package/dist/components/stories/Select.stories.d.ts +10 -0
  98. package/dist/components/stories/Select.stories.es.js +52 -0
  99. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  100. package/dist/components/stories/TabList.stories.es.js +10 -10
  101. package/dist/components/stories/TextField.stories.cjs.js +1 -0
  102. package/dist/components/stories/TextField.stories.d.ts +10 -0
  103. package/dist/components/stories/TextField.stories.es.js +69 -0
  104. package/dist/{createSvgIcon-D8j2pi8H.js → createSvgIcon-DxbvMQd7.js} +3 -3
  105. package/dist/{extendSxProp-CrOV7ubJ.js → extendSxProp-XQwkK0m7.js} +1 -1
  106. package/dist/formControlState-DCkDUdfO.cjs +1 -0
  107. package/dist/formControlState-DdQP43Uo.js +21 -0
  108. package/dist/{fr-BbQGEyOf.js → fr-B8_MxRl5.js} +1 -1
  109. package/dist/{identifier-BspJ_uqC.js → identifier-BqadgaK7.js} +4 -4
  110. package/dist/{index-CUYeZpek.js → index-BUxqDIr9.js} +4 -4
  111. package/dist/{index-BD4CTHtk.js → index-CRT92bm7.js} +2 -2
  112. package/dist/index-D7nFYLYq.cjs +1 -0
  113. package/dist/index.cjs.js +1 -1
  114. package/dist/index.es.js +267 -262
  115. package/dist/{memoTheme-CwR5ZU7e.js → memoTheme-DfGVDRrB.js} +1 -1
  116. package/dist/{refType-B0086dcQ.js → refType-DlHf9HvO.js} +1 -1
  117. package/dist/{useTheme-DCeWFyuq.js → resolveComponentProps-CxJ2yAJn.js} +18 -26
  118. package/dist/resolveComponentProps-DTv6xPbb.cjs +1 -0
  119. package/dist/useControlled-BYdyS7Pn.js +31 -0
  120. package/dist/useControlled-Ysk4KqoX.cjs +3 -0
  121. package/dist/useFormControl-CatNKXAi.js +10 -0
  122. package/dist/useFormControl-haP0iPhl.cjs +1 -0
  123. package/dist/useSlot-42jgZftI.cjs +1 -0
  124. package/dist/useSlot-Co14PUn6.js +50 -0
  125. package/dist/useTheme-CtT7O-Wk.js +11 -0
  126. package/dist/{useTheme-B4Cg2FUT.js → useTheme-oM_SFWy4.js} +1 -1
  127. package/dist/useTheme-tZYpFplW.cjs +1 -0
  128. package/dist/{useThemeProps-B87e2Gmx.js → useThemeProps-BlQ3SLfB.js} +4 -4
  129. package/dist/{useThemeProps-kJZsUF6E.js → useThemeProps-FiA8ivG-.js} +3 -3
  130. package/dist/{useTimeout-BFZIFO63.js → useTimeout-D16vpBhn.js} +1 -1
  131. package/package.json +1 -1
  132. package/dist/Backdrop-D1g8gJ4S.cjs +0 -1
  133. package/dist/InputAdornment-CfXhmkcT.cjs +0 -1
  134. package/dist/InputBase-uv1-DNAg.cjs +0 -3
  135. package/dist/TextField-C2b1L1xj.cjs +0 -14
  136. package/dist/Tooltip-bKfA-tNR.cjs +0 -100
  137. package/dist/components/Alert/Alert.stories.cjs.js +0 -1
  138. package/dist/components/Button/Button.stories.cjs.js +0 -1
  139. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  140. package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
  141. package/dist/components/FileList/FileList.stories.cjs.js +0 -1
  142. package/dist/components/Heading/Heading.stories.cjs.js +0 -1
  143. package/dist/components/Loader/Loader.stories.cjs.js +0 -1
  144. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
  145. package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
  146. package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
  147. package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
  148. package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
  149. package/dist/components/TextInput/TextInput.stories.es.js +0 -43
  150. package/dist/index-1_dd0hY2.cjs +0 -1
  151. package/dist/useTheme-VRTfPKo-.cjs +0 -1
@@ -0,0 +1,424 @@
1
+ import * as i from "react";
2
+ import { I as A, J as D, L, K as P, P as e } from "./identifier-BqadgaK7.js";
3
+ import { a as K, i as k, f as G } from "./formControlState-DdQP43Uo.js";
4
+ import { F as Q, u as X } from "./useFormControl-CatNKXAi.js";
5
+ import { jsx as I, jsxs as U } from "react/jsx-runtime";
6
+ import { s as E, u as B, c as V } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { m as _ } from "./memoTheme-DfGVDRrB.js";
8
+ import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
9
+ function be(...o) {
10
+ return o.reduce((r, t) => t == null ? r : function(...s) {
11
+ r.apply(this, s), t.apply(this, s);
12
+ }, () => {
13
+ });
14
+ }
15
+ function x(o, r) {
16
+ var t, n, s;
17
+ return /* @__PURE__ */ i.isValidElement(o) && r.indexOf(
18
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
19
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
20
+ // eslint-disable-next-line no-underscore-dangle
21
+ o.type.muiName ?? ((s = (n = (t = o.type) == null ? void 0 : t._payload) == null ? void 0 : n.value) == null ? void 0 : s.muiName)
22
+ ) !== -1;
23
+ }
24
+ function Z(o) {
25
+ return A("MuiFormControl", o);
26
+ }
27
+ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), ee = (o) => {
28
+ const {
29
+ classes: r,
30
+ margin: t,
31
+ fullWidth: n
32
+ } = o, s = {
33
+ root: ["root", t !== "none" && `margin${L(t)}`, n && "fullWidth"]
34
+ };
35
+ return V(s, Z, r);
36
+ }, oe = E("div", {
37
+ name: "MuiFormControl",
38
+ slot: "Root",
39
+ overridesResolver: ({
40
+ ownerState: o
41
+ }, r) => ({
42
+ ...r.root,
43
+ ...r[`margin${L(o.margin)}`],
44
+ ...o.fullWidth && r.fullWidth
45
+ })
46
+ })({
47
+ display: "inline-flex",
48
+ flexDirection: "column",
49
+ position: "relative",
50
+ // Reset fieldset default style.
51
+ minWidth: 0,
52
+ padding: 0,
53
+ margin: 0,
54
+ border: 0,
55
+ verticalAlign: "top",
56
+ // Fix alignment issue on Safari.
57
+ variants: [{
58
+ props: {
59
+ margin: "normal"
60
+ },
61
+ style: {
62
+ marginTop: 16,
63
+ marginBottom: 8
64
+ }
65
+ }, {
66
+ props: {
67
+ margin: "dense"
68
+ },
69
+ style: {
70
+ marginTop: 8,
71
+ marginBottom: 4
72
+ }
73
+ }, {
74
+ props: {
75
+ fullWidth: !0
76
+ },
77
+ style: {
78
+ width: "100%"
79
+ }
80
+ }]
81
+ }), re = /* @__PURE__ */ i.forwardRef(function(r, t) {
82
+ const n = B({
83
+ props: r,
84
+ name: "MuiFormControl"
85
+ }), {
86
+ children: s,
87
+ className: f,
88
+ color: p = "primary",
89
+ component: c = "div",
90
+ disabled: a = !1,
91
+ error: y = !1,
92
+ focused: h,
93
+ fullWidth: g = !1,
94
+ hiddenLabel: F = !1,
95
+ margin: O = "none",
96
+ required: m = !1,
97
+ size: l = "medium",
98
+ variant: u = "outlined",
99
+ ...v
100
+ } = n, M = {
101
+ ...n,
102
+ color: p,
103
+ component: c,
104
+ disabled: a,
105
+ error: y,
106
+ fullWidth: g,
107
+ hiddenLabel: F,
108
+ margin: O,
109
+ required: m,
110
+ size: l,
111
+ variant: u
112
+ }, z = ee(M), [q, H] = i.useState(() => {
113
+ let b = !1;
114
+ return s && i.Children.forEach(s, (d) => {
115
+ if (!x(d, ["Input", "Select"]))
116
+ return;
117
+ const $ = x(d, ["Select"]) ? d.props.input : d;
118
+ $ && K($.props) && (b = !0);
119
+ }), b;
120
+ }), [R, j] = i.useState(() => {
121
+ let b = !1;
122
+ return s && i.Children.forEach(s, (d) => {
123
+ x(d, ["Input", "Select"]) && (k(d.props, !0) || k(d.props.inputProps, !0)) && (b = !0);
124
+ }), b;
125
+ }), [W, S] = i.useState(!1);
126
+ a && W && S(!1);
127
+ const w = h !== void 0 && !a ? h : W;
128
+ let N;
129
+ const T = i.useRef(!1);
130
+ process.env.NODE_ENV !== "production" && (N = () => (T.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
131
+ `)), T.current = !0, () => {
132
+ T.current = !1;
133
+ }));
134
+ const J = i.useMemo(() => ({
135
+ adornedStart: q,
136
+ setAdornedStart: H,
137
+ color: p,
138
+ disabled: a,
139
+ error: y,
140
+ filled: R,
141
+ focused: w,
142
+ fullWidth: g,
143
+ hiddenLabel: F,
144
+ size: l,
145
+ onBlur: () => {
146
+ S(!1);
147
+ },
148
+ onEmpty: () => {
149
+ j(!1);
150
+ },
151
+ onFilled: () => {
152
+ j(!0);
153
+ },
154
+ onFocus: () => {
155
+ S(!0);
156
+ },
157
+ registerEffect: N,
158
+ required: m,
159
+ variant: u
160
+ }), [q, p, a, y, R, w, g, F, N, m, l, u]);
161
+ return /* @__PURE__ */ I(Q.Provider, {
162
+ value: J,
163
+ children: /* @__PURE__ */ I(oe, {
164
+ as: c,
165
+ ownerState: M,
166
+ className: P(z.root, f),
167
+ ref: t,
168
+ ...v,
169
+ children: s
170
+ })
171
+ });
172
+ });
173
+ process.env.NODE_ENV !== "production" && (re.propTypes = {
174
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
175
+ // │ These PropTypes are generated from the TypeScript type definitions. │
176
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
177
+ // └─────────────────────────────────────────────────────────────────────┘
178
+ /**
179
+ * The content of the component.
180
+ */
181
+ children: e.node,
182
+ /**
183
+ * Override or extend the styles applied to the component.
184
+ */
185
+ classes: e.object,
186
+ /**
187
+ * @ignore
188
+ */
189
+ className: e.string,
190
+ /**
191
+ * The color of the component.
192
+ * It supports both default and custom theme colors, which can be added as shown in the
193
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
194
+ * @default 'primary'
195
+ */
196
+ color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
197
+ /**
198
+ * The component used for the root node.
199
+ * Either a string to use a HTML element or a component.
200
+ */
201
+ component: e.elementType,
202
+ /**
203
+ * If `true`, the label, input and helper text should be displayed in a disabled state.
204
+ * @default false
205
+ */
206
+ disabled: e.bool,
207
+ /**
208
+ * If `true`, the label is displayed in an error state.
209
+ * @default false
210
+ */
211
+ error: e.bool,
212
+ /**
213
+ * If `true`, the component is displayed in focused state.
214
+ */
215
+ focused: e.bool,
216
+ /**
217
+ * If `true`, the component will take up the full width of its container.
218
+ * @default false
219
+ */
220
+ fullWidth: e.bool,
221
+ /**
222
+ * If `true`, the label is hidden.
223
+ * This is used to increase density for a `FilledInput`.
224
+ * Be sure to add `aria-label` to the `input` element.
225
+ * @default false
226
+ */
227
+ hiddenLabel: e.bool,
228
+ /**
229
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
230
+ * @default 'none'
231
+ */
232
+ margin: e.oneOf(["dense", "none", "normal"]),
233
+ /**
234
+ * If `true`, the label will indicate that the `input` is required.
235
+ * @default false
236
+ */
237
+ required: e.bool,
238
+ /**
239
+ * The size of the component.
240
+ * @default 'medium'
241
+ */
242
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
243
+ /**
244
+ * The system prop that allows defining system overrides as well as additional CSS styles.
245
+ */
246
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
247
+ /**
248
+ * The variant to use.
249
+ * @default 'outlined'
250
+ */
251
+ variant: e.oneOf(["filled", "outlined", "standard"])
252
+ });
253
+ function se(o) {
254
+ return A("MuiFormLabel", o);
255
+ }
256
+ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), te = (o) => {
257
+ const {
258
+ classes: r,
259
+ color: t,
260
+ focused: n,
261
+ disabled: s,
262
+ error: f,
263
+ filled: p,
264
+ required: c
265
+ } = o, a = {
266
+ root: ["root", `color${L(t)}`, s && "disabled", f && "error", p && "filled", n && "focused", c && "required"],
267
+ asterisk: ["asterisk", f && "error"]
268
+ };
269
+ return V(a, se, r);
270
+ }, ne = E("label", {
271
+ name: "MuiFormLabel",
272
+ slot: "Root",
273
+ overridesResolver: ({
274
+ ownerState: o
275
+ }, r) => ({
276
+ ...r.root,
277
+ ...o.color === "secondary" && r.colorSecondary,
278
+ ...o.filled && r.filled
279
+ })
280
+ })(_(({
281
+ theme: o
282
+ }) => ({
283
+ color: (o.vars || o).palette.text.secondary,
284
+ ...o.typography.body1,
285
+ lineHeight: "1.4375em",
286
+ padding: 0,
287
+ position: "relative",
288
+ variants: [...Object.entries(o.palette).filter(Y()).map(([r]) => ({
289
+ props: {
290
+ color: r
291
+ },
292
+ style: {
293
+ [`&.${C.focused}`]: {
294
+ color: (o.vars || o).palette[r].main
295
+ }
296
+ }
297
+ })), {
298
+ props: {},
299
+ style: {
300
+ [`&.${C.disabled}`]: {
301
+ color: (o.vars || o).palette.text.disabled
302
+ },
303
+ [`&.${C.error}`]: {
304
+ color: (o.vars || o).palette.error.main
305
+ }
306
+ }
307
+ }]
308
+ }))), le = E("span", {
309
+ name: "MuiFormLabel",
310
+ slot: "Asterisk",
311
+ overridesResolver: (o, r) => r.asterisk
312
+ })(_(({
313
+ theme: o
314
+ }) => ({
315
+ [`&.${C.error}`]: {
316
+ color: (o.vars || o).palette.error.main
317
+ }
318
+ }))), ie = /* @__PURE__ */ i.forwardRef(function(r, t) {
319
+ const n = B({
320
+ props: r,
321
+ name: "MuiFormLabel"
322
+ }), {
323
+ children: s,
324
+ className: f,
325
+ color: p,
326
+ component: c = "label",
327
+ disabled: a,
328
+ error: y,
329
+ filled: h,
330
+ focused: g,
331
+ required: F,
332
+ ...O
333
+ } = n, m = X(), l = G({
334
+ props: n,
335
+ muiFormControl: m,
336
+ states: ["color", "required", "focused", "disabled", "error", "filled"]
337
+ }), u = {
338
+ ...n,
339
+ color: l.color || "primary",
340
+ component: c,
341
+ disabled: l.disabled,
342
+ error: l.error,
343
+ filled: l.filled,
344
+ focused: l.focused,
345
+ required: l.required
346
+ }, v = te(u);
347
+ return /* @__PURE__ */ U(ne, {
348
+ as: c,
349
+ ownerState: u,
350
+ className: P(v.root, f),
351
+ ref: t,
352
+ ...O,
353
+ children: [s, l.required && /* @__PURE__ */ U(le, {
354
+ ownerState: u,
355
+ "aria-hidden": !0,
356
+ className: v.asterisk,
357
+ children: [" ", "*"]
358
+ })]
359
+ });
360
+ });
361
+ process.env.NODE_ENV !== "production" && (ie.propTypes = {
362
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
363
+ // │ These PropTypes are generated from the TypeScript type definitions. │
364
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
365
+ // └─────────────────────────────────────────────────────────────────────┘
366
+ /**
367
+ * The content of the component.
368
+ */
369
+ children: e.node,
370
+ /**
371
+ * Override or extend the styles applied to the component.
372
+ */
373
+ classes: e.object,
374
+ /**
375
+ * @ignore
376
+ */
377
+ className: e.string,
378
+ /**
379
+ * The color of the component.
380
+ * It supports both default and custom theme colors, which can be added as shown in the
381
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
382
+ */
383
+ color: e.oneOfType([e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]), e.string]),
384
+ /**
385
+ * The component used for the root node.
386
+ * Either a string to use a HTML element or a component.
387
+ */
388
+ component: e.elementType,
389
+ /**
390
+ * If `true`, the label should be displayed in a disabled state.
391
+ */
392
+ disabled: e.bool,
393
+ /**
394
+ * If `true`, the label is displayed in an error state.
395
+ */
396
+ error: e.bool,
397
+ /**
398
+ * If `true`, the label should use filled classes key.
399
+ */
400
+ filled: e.bool,
401
+ /**
402
+ * If `true`, the input of this label is focused (used by `FormGroup` components).
403
+ */
404
+ focused: e.bool,
405
+ /**
406
+ * If `true`, the label will indicate that the `input` is required.
407
+ */
408
+ required: e.bool,
409
+ /**
410
+ * The system prop that allows defining system overrides as well as additional CSS styles.
411
+ */
412
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
413
+ });
414
+ export {
415
+ re as F,
416
+ ie as a,
417
+ C as b,
418
+ ne as c,
419
+ se as d,
420
+ be as e,
421
+ ye as f,
422
+ Z as g,
423
+ x as i
424
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";const G=require("react"),e=require("./identifier-BQH88SE0.cjs"),v=require("./formControlState-DCkDUdfO.cjs"),W=require("./useFormControl-haP0iPhl.cjs"),O=require("react/jsx-runtime"),d=require("./DefaultPropsProvider-BrX6iuA3.cjs"),k=require("./memoTheme-B6o2KVgJ.cjs"),J=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs");function K(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const i=K(G);function Q(...o){return o.reduce((r,s)=>s==null?r:function(...n){r.apply(this,n),s.apply(this,n)},()=>{})}function h(o,r){var s,t,n;return i.isValidElement(o)&&r.indexOf(o.type.muiName??((n=(t=(s=o.type)==null?void 0:s._payload)==null?void 0:t.value)==null?void 0:n.muiName))!==-1}function $(o){return e.generateUtilityClass("MuiFormControl",o)}const X=e.generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),Y=o=>{const{classes:r,margin:s,fullWidth:t}=o,n={root:["root",s!=="none"&&`margin${e.capitalize(s)}`,t&&"fullWidth"]};return d.composeClasses(n,$,r)},Z=d.styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:o},r)=>({...r.root,...r[`margin${e.capitalize(o.margin)}`],...o.fullWidth&&r.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),_=i.forwardRef(function(r,s){const t=d.useDefaultProps({props:r,name:"MuiFormControl"}),{children:n,className:f,color:m="primary",component:c="div",disabled:a=!1,error:P=!1,focused:S,fullWidth:g=!1,hiddenLabel:C=!1,margin:q="none",required:y=!1,size:l="medium",variant:u="outlined",...F}=t,L={...t,color:m,component:c,disabled:a,error:P,fullWidth:g,hiddenLabel:C,margin:q,required:y,size:l,variant:u},V=Y(L),[M,B]=i.useState(()=>{let T=!1;return n&&i.Children.forEach(n,p=>{if(!h(p,["Input","Select"]))return;const w=h(p,["Select"])?p.props.input:p;w&&v.isAdornedStart(w.props)&&(T=!0)}),T}),[R,E]=i.useState(()=>{let T=!1;return n&&i.Children.forEach(n,p=>{h(p,["Input","Select"])&&(v.isFilled(p.props,!0)||v.isFilled(p.props.inputProps,!0))&&(T=!0)}),T}),[U,N]=i.useState(!1);a&&U&&N(!1);const D=S!==void 0&&!a?S:U;let j;const x=i.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
2
+ `)),x.current=!0,()=>{x.current=!1}));const H=i.useMemo(()=>({adornedStart:M,setAdornedStart:B,color:m,disabled:a,error:P,filled:R,focused:D,fullWidth:g,hiddenLabel:C,size:l,onBlur:()=>{N(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{N(!0)},registerEffect:j,required:y,variant:u}),[M,m,a,P,R,D,g,C,j,y,l,u]);return O.jsx(W.FormControlContext.Provider,{value:H,children:O.jsx(Z,{as:c,ownerState:L,className:e.clsx(V.root,f),ref:s,...F,children:n})})});process.env.NODE_ENV!=="production"&&(_.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,focused:e.PropTypes.bool,fullWidth:e.PropTypes.bool,hiddenLabel:e.PropTypes.bool,margin:e.PropTypes.oneOf(["dense","none","normal"]),required:e.PropTypes.bool,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});function z(o){return e.generateUtilityClass("MuiFormLabel",o)}const b=e.generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ee=o=>{const{classes:r,color:s,focused:t,disabled:n,error:f,filled:m,required:c}=o,a={root:["root",`color${e.capitalize(s)}`,n&&"disabled",f&&"error",m&&"filled",t&&"focused",c&&"required"],asterisk:["asterisk",f&&"error"]};return d.composeClasses(a,z,r)},A=d.styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:o},r)=>({...r.root,...o.color==="secondary"&&r.colorSecondary,...o.filled&&r.filled})})(k.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,...o.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(o.palette).filter(J.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r},style:{[`&.${b.focused}`]:{color:(o.vars||o).palette[r].main}}})),{props:{},style:{[`&.${b.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${b.error}`]:{color:(o.vars||o).palette.error.main}}}]}))),oe=d.styled("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(k.memoTheme(({theme:o})=>({[`&.${b.error}`]:{color:(o.vars||o).palette.error.main}}))),I=i.forwardRef(function(r,s){const t=d.useDefaultProps({props:r,name:"MuiFormLabel"}),{children:n,className:f,color:m,component:c="label",disabled:a,error:P,filled:S,focused:g,required:C,...q}=t,y=W.useFormControl(),l=v.formControlState({props:t,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),u={...t,color:l.color||"primary",component:c,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required},F=ee(u);return O.jsxs(A,{as:c,ownerState:u,className:e.clsx(F.root,f),ref:s,...q,children:[n,l.required&&O.jsxs(oe,{ownerState:u,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(I.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","primary","secondary","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,filled:e.PropTypes.bool,focused:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.FormControl=_;exports.FormLabel=I;exports.FormLabelRoot=A;exports.createChainedFunction=Q;exports.formControlClasses=X;exports.formLabelClasses=b;exports.getFormControlUtilityClasses=$;exports.getFormLabelUtilityClasses=z;exports.isMuiElement=h;
@@ -1,10 +1,10 @@
1
1
  import * as c from "react";
2
- import { I as z, J as I, K as a, L as R, P as e, n as g } from "./identifier-BspJ_uqC.js";
3
- import { m as f } from "./memoTheme-CwR5ZU7e.js";
2
+ import { I as z, J as I, L as a, K as R, P as e, n as g } from "./identifier-BqadgaK7.js";
3
+ import { m as f } from "./memoTheme-DfGVDRrB.js";
4
4
  import { c as y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
5
  import { jsx as O } from "react/jsx-runtime";
6
- import { s as C, u as h, c as T } from "./DefaultPropsProvider-BE624hnX.js";
7
- import { B as S } from "./ButtonBase-BdvHQ0Vd.js";
6
+ import { s as C, u as h, c as T } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { B as S } from "./ButtonBase-CFD7NVUc.js";
8
8
  import { c as $ } from "./useForkRef-D-DyzOXj.js";
9
9
  function x(o) {
10
10
  return z("MuiIconButton", o);
@@ -0,0 +1 @@
1
+ "use strict";const x=require("react"),e=require("./identifier-BQH88SE0.cjs"),f=require("./useFormControl-haP0iPhl.cjs"),I=require("./memoTheme-B6o2KVgJ.cjs"),a=require("react/jsx-runtime"),m=require("./DefaultPropsProvider-BrX6iuA3.cjs"),O=require("./Typography-5OodZ94T.cjs");function A(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const P=A(x);function C(t){return e.generateUtilityClass("MuiInputAdornment",t)}const T=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b;const S=(t,o)=>{const{ownerState:n}=t;return[o.root,o[`position${e.capitalize(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},z=t=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:s,size:p,variant:l}=t,c={root:["root",n&&"disablePointerEvents",s&&`position${e.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return m.composeClasses(c,C,o)},N=m.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:S})(I.memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${T.positionStart}&:not(.${T.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),h=P.forwardRef(function(o,n){const r=m.useDefaultProps({props:o,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:c=!1,disableTypography:g=!1,position:y,variant:d,...E}=r,i=f.useFormControl()||{};let u=d;d&&i.variant&&process.env.NODE_ENV!=="production"&&d===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!u&&(u=i.variant);const v={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:c,position:y,variant:u},j=z(v);return a.jsx(f.FormControlContext.Provider,{value:null,children:a.jsx(N,{as:l,ownerState:v,className:e.clsx(j.root,p),ref:n,...E,children:typeof s=="string"&&!g?a.jsx(O.Typography,{color:"textSecondary",children:s}):a.jsxs(P.Fragment,{children:[y==="start"?b||(b=a.jsx("span",{className:"notranslate",children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(h.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.InputAdornment=h;
@@ -1,10 +1,10 @@
1
1
  import * as h from "react";
2
- import { J as P, I as T, L as A, P as e, K as u } from "./identifier-BspJ_uqC.js";
3
- import { u as C, F as x } from "./InputBase-Ck6jdGdt.js";
4
- import { m as L } from "./memoTheme-CwR5ZU7e.js";
2
+ import { J as P, I as T, K as A, P as e, L as u } from "./identifier-BqadgaK7.js";
3
+ import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
4
+ import { m as L } from "./memoTheme-DfGVDRrB.js";
5
5
  import { jsx as l, jsxs as N } from "react/jsx-runtime";
6
- import { s as S, u as O, c as R } from "./DefaultPropsProvider-BE624hnX.js";
7
- import { T as w } from "./Typography-HjpyrRz2.js";
6
+ import { s as S, u as O, c as R } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { T as w } from "./Typography-C_ESP41L.js";
8
8
  function z(t) {
9
9
  return T("MuiInputAdornment", t);
10
10
  }