@cgi-learning-hub/ui 1.3.3-dev.1732123246 → 1.3.3-dev.1732274173
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/{Backdrop-DorR8O-b.js → Backdrop-DcJf9G30.js} +20 -20
- package/dist/{Box-BTNw-FYi.js → Box-D9cHa8GX.js} +7 -7
- package/dist/{Button--paERYBc.js → Button-Cx05eP88.js} +14 -14
- package/dist/{ButtonBase-B0gJT_ti.js → ButtonBase-z74SMnd9.js} +17 -17
- package/dist/{Card-BVJgnURR.js → Card-mAtxoJ0p.js} +3 -3
- package/dist/{Checkbox-aBoDjdQG.js → Checkbox-Bmz9nh6k.js} +12 -12
- package/dist/{CircularProgress-CIqTwP6H.js → CircularProgress-B5osG37N.js} +16 -16
- package/dist/{DatePicker-DXgVCuAd.js → DatePicker-Ds7y4pei.js} +198 -197
- package/dist/{DatePicker-DGRD-CdO.cjs → DatePicker-MSoGmJoG.cjs} +10 -10
- package/dist/{DefaultPropsProvider-StV_SUuk.js → DefaultPropsProvider-BYFwNPLt.js} +12 -12
- package/dist/{DialogContent-CP2NOfUr.js → DialogContent-B_NH_if8.js} +21 -21
- package/dist/{DialogTitle-Couh2TzJ.js → DialogTitle-Bx7712Li.js} +4 -4
- package/dist/Divider-CMuvurmv.js +296 -0
- package/dist/Divider-DlN3YfOR.cjs +1 -0
- package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
- package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
- package/dist/FormGroup-CFDapyxc.cjs +1 -0
- package/dist/FormGroup-DO8m1X6w.js +95 -0
- package/dist/{FormLabel-wDh-AEMQ.js → FormLabel-B11aqT37.js} +34 -33
- package/dist/FormLabel-DcUS1c1d.cjs +2 -0
- package/dist/{Grow-4QU1bnXQ.js → Grow-BKrOFfC1.js} +4 -4
- package/dist/{IconButton-CsqR1453.js → IconButton-DLcGpM1F.js} +4 -4
- package/dist/{InputAdornment-bXTpzNQ2.js → InputAdornment-BrvfHlzv.js} +4 -4
- package/dist/{InputBase-VKt_ajuq.js → InputBase-CHytwRH8.js} +47 -49
- package/dist/InputBase-qhWgXXNd.cjs +3 -0
- package/dist/{Link-CPyeYGpa.js → Link-D_0FIsgB.js} +19 -19
- package/dist/Menu-0Hr9Yx9l.cjs +7 -0
- package/dist/Menu-ysG9uY3e.js +965 -0
- package/dist/MenuItem-BP7OsPVc.cjs +1 -0
- package/dist/{MenuItem-BFkBwBkN.js → MenuItem-DYrKaYOk.js} +69 -74
- package/dist/{Modal-BDx2_UzP.js → Modal-DT240BJZ.js} +42 -42
- package/dist/{Paper-CMUbp6SX.js → Paper-vlsh8Nca.js} +6 -6
- package/dist/{Popper-D_UryU8v.js → Popper-BSaTZXvX.js} +5 -5
- package/dist/{Portal-DVy9JFBN.js → Portal-meM40OhI.js} +3 -3
- package/dist/Radio-CW4v1BS4.js +312 -0
- package/dist/Radio-D-wbZ6M-.cjs +1 -0
- package/dist/{Select-CcnCBhBN.js → Select-CKsf044t.js} +630 -1583
- package/dist/Select-DAHsfas2.cjs +3 -0
- package/dist/{Stack-CKjrTRJB.js → Stack-DbWQHN5i.js} +22 -22
- package/dist/{SwitchBase-DYa1wGSu.js → SwitchBase-DBnju71w.js} +10 -10
- package/dist/{TableSortLabel-Czgy_sW5.js → TableSortLabel-ByZJO-zF.js} +1097 -1382
- package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
- package/dist/{Tabs-RxcUgknI.js → Tabs-BqJSX1la.js} +10 -10
- package/dist/{TextField-DvGLmvG1.cjs → TextField-C23FnJYk.cjs} +1 -1
- package/dist/{TextField-DorMAtUh.js → TextField-DVUnQAd7.js} +24 -24
- package/dist/{Tooltip-B4e9QdHI.js → Tooltip-41rGxwva.js} +44 -44
- package/dist/{Typography-B29dnCv3.js → Typography-CizHc1nM.js} +4 -4
- package/dist/components/Button/Button.es.js +11 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +6 -6
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +265 -261
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -372
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.es.js +10 -10
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/{createSvgIcon-VByplk-r.js → createSvgIcon-BS0Qe85N.js} +3 -3
- package/dist/dividerClasses-Bp7otbbC.js +9 -0
- package/dist/dividerClasses-O0vIU6On.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-BPhL72td.js → elementTypeAcceptingRef-DOFWAguJ.js} +1 -1
- package/dist/{extendSxProp-BYB-kybW.js → extendSxProp-BpXLpaGL.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/{fr-B4aeA9th.js → fr-Djc-bU-B.js} +1 -1
- package/dist/{identifier-BewKgEhI.js → identifier-B7MO0PvI.js} +6 -6
- package/dist/{index-_oi9ph20.js → index-CKZgd5LP.js} +4 -4
- package/dist/{index-BAjSgP8k.js → index-yb8koCDz.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +265 -261
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B9kDhX1-.js → memoTheme-CqfvfBST.js} +1 -1
- package/dist/{refType-3o3c-kYx.js → refType-BqQbA6de.js} +1 -1
- package/dist/{resolveComponentProps-BQQ-uUKZ.js → resolveComponentProps-CYk57pLv.js} +1 -1
- package/dist/{useSlot-B2hCpx8C.js → useSlot-BSVkAc2J.js} +1 -1
- package/dist/{useTheme-0u9_WhjM.js → useTheme-CzzAEESs.js} +3 -3
- package/dist/{useTheme-BrFhq4dW.js → useTheme-DrsmidxY.js} +1 -1
- package/dist/{useThemeProps-cERu5xHk.js → useThemeProps-B9UyPpzT.js} +3 -3
- package/dist/{useThemeProps-CwWORfXn.js → useThemeProps-BFeVem33.js} +2 -2
- package/dist/{useTimeout-Br8oWWYt.js → useTimeout-Znm_nF2D.js} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/{utils-CH0HZgJe.js → utils-jA5a7WHN.js} +1 -1
- package/package.json +1 -1
- package/dist/FormGroup-CcM69JIS.js +0 -348
- package/dist/FormGroup-KOLND6rE.cjs +0 -1
- package/dist/FormLabel-C506NT5o.cjs +0 -2
- package/dist/InputBase-Cpx39cny.cjs +0 -3
- package/dist/MenuItem-BxXCEc8h.cjs +0 -1
- package/dist/Select-CnFa2_je.cjs +0 -9
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +0 -98
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import * as P from "react";
|
|
2
|
+
import { H as E, I as U, L, G as v, P as e } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { m as R } from "./memoTheme-CqfvfBST.js";
|
|
4
|
+
import { f as A } from "./formControlState-vgaj2ksH.js";
|
|
5
|
+
import { u as H } from "./useSlot-BSVkAc2J.js";
|
|
6
|
+
import { jsx as I, jsxs as g } from "react/jsx-runtime";
|
|
7
|
+
import { s as x, u as z, c as B } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
8
|
+
import { u as G } from "./useFormControl-CatNKXAi.js";
|
|
9
|
+
import { T } from "./Typography-CizHc1nM.js";
|
|
10
|
+
import { r as V } from "./refType-BqQbA6de.js";
|
|
11
|
+
function W(o) {
|
|
12
|
+
return E("MuiFormControlLabel", o);
|
|
13
|
+
}
|
|
14
|
+
const a = U("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), _ = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: r,
|
|
17
|
+
disabled: s,
|
|
18
|
+
labelPlacement: t,
|
|
19
|
+
error: d,
|
|
20
|
+
required: b
|
|
21
|
+
} = o, f = {
|
|
22
|
+
root: ["root", s && "disabled", `labelPlacement${L(t)}`, d && "error", b && "required"],
|
|
23
|
+
label: ["label", s && "disabled"],
|
|
24
|
+
asterisk: ["asterisk", d && "error"]
|
|
25
|
+
};
|
|
26
|
+
return B(f, W, r);
|
|
27
|
+
}, J = x("label", {
|
|
28
|
+
name: "MuiFormControlLabel",
|
|
29
|
+
slot: "Root",
|
|
30
|
+
overridesResolver: (o, r) => {
|
|
31
|
+
const {
|
|
32
|
+
ownerState: s
|
|
33
|
+
} = o;
|
|
34
|
+
return [{
|
|
35
|
+
[`& .${a.label}`]: r.label
|
|
36
|
+
}, r.root, r[`labelPlacement${L(s.labelPlacement)}`]];
|
|
37
|
+
}
|
|
38
|
+
})(R(({
|
|
39
|
+
theme: o
|
|
40
|
+
}) => ({
|
|
41
|
+
display: "inline-flex",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
cursor: "pointer",
|
|
44
|
+
// For correct alignment with the text.
|
|
45
|
+
verticalAlign: "middle",
|
|
46
|
+
WebkitTapHighlightColor: "transparent",
|
|
47
|
+
marginLeft: -11,
|
|
48
|
+
marginRight: 16,
|
|
49
|
+
// used for row presentation of radio/checkbox
|
|
50
|
+
[`&.${a.disabled}`]: {
|
|
51
|
+
cursor: "default"
|
|
52
|
+
},
|
|
53
|
+
[`& .${a.label}`]: {
|
|
54
|
+
[`&.${a.disabled}`]: {
|
|
55
|
+
color: (o.vars || o).palette.text.disabled
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
variants: [{
|
|
59
|
+
props: {
|
|
60
|
+
labelPlacement: "start"
|
|
61
|
+
},
|
|
62
|
+
style: {
|
|
63
|
+
flexDirection: "row-reverse",
|
|
64
|
+
marginRight: -11
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
props: {
|
|
68
|
+
labelPlacement: "top"
|
|
69
|
+
},
|
|
70
|
+
style: {
|
|
71
|
+
flexDirection: "column-reverse"
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
props: {
|
|
75
|
+
labelPlacement: "bottom"
|
|
76
|
+
},
|
|
77
|
+
style: {
|
|
78
|
+
flexDirection: "column"
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
props: ({
|
|
82
|
+
labelPlacement: r
|
|
83
|
+
}) => r === "start" || r === "top" || r === "bottom",
|
|
84
|
+
style: {
|
|
85
|
+
marginLeft: 16
|
|
86
|
+
// used for row presentation of radio/checkbox
|
|
87
|
+
}
|
|
88
|
+
}]
|
|
89
|
+
}))), K = x("span", {
|
|
90
|
+
name: "MuiFormControlLabel",
|
|
91
|
+
slot: "Asterisk",
|
|
92
|
+
overridesResolver: (o, r) => r.asterisk
|
|
93
|
+
})(R(({
|
|
94
|
+
theme: o
|
|
95
|
+
}) => ({
|
|
96
|
+
[`&.${a.error}`]: {
|
|
97
|
+
color: (o.vars || o).palette.error.main
|
|
98
|
+
}
|
|
99
|
+
}))), Q = /* @__PURE__ */ P.forwardRef(function(r, s) {
|
|
100
|
+
const t = z({
|
|
101
|
+
props: r,
|
|
102
|
+
name: "MuiFormControlLabel"
|
|
103
|
+
}), {
|
|
104
|
+
checked: d,
|
|
105
|
+
className: b,
|
|
106
|
+
componentsProps: f = {},
|
|
107
|
+
control: n,
|
|
108
|
+
disabled: F,
|
|
109
|
+
disableTypography: q,
|
|
110
|
+
inputRef: X,
|
|
111
|
+
label: k,
|
|
112
|
+
labelPlacement: N = "end",
|
|
113
|
+
name: Y,
|
|
114
|
+
onChange: Z,
|
|
115
|
+
required: j,
|
|
116
|
+
slots: w = {},
|
|
117
|
+
slotProps: S = {},
|
|
118
|
+
value: ee,
|
|
119
|
+
...$
|
|
120
|
+
} = t, i = G(), h = F ?? n.props.disabled ?? (i == null ? void 0 : i.disabled), u = j ?? n.props.required, C = {
|
|
121
|
+
disabled: h,
|
|
122
|
+
required: u
|
|
123
|
+
};
|
|
124
|
+
["checked", "name", "onChange", "value", "inputRef"].forEach((m) => {
|
|
125
|
+
typeof n.props[m] > "u" && typeof t[m] < "u" && (C[m] = t[m]);
|
|
126
|
+
});
|
|
127
|
+
const O = A({
|
|
128
|
+
props: t,
|
|
129
|
+
muiFormControl: i,
|
|
130
|
+
states: ["error"]
|
|
131
|
+
}), p = {
|
|
132
|
+
...t,
|
|
133
|
+
disabled: h,
|
|
134
|
+
labelPlacement: N,
|
|
135
|
+
required: u,
|
|
136
|
+
error: O.error
|
|
137
|
+
}, y = _(p), D = {
|
|
138
|
+
slots: w,
|
|
139
|
+
slotProps: {
|
|
140
|
+
...f,
|
|
141
|
+
...S
|
|
142
|
+
}
|
|
143
|
+
}, [M, c] = H("typography", {
|
|
144
|
+
elementType: T,
|
|
145
|
+
externalForwardedProps: D,
|
|
146
|
+
ownerState: p
|
|
147
|
+
});
|
|
148
|
+
let l = k;
|
|
149
|
+
return l != null && l.type !== T && !q && (l = /* @__PURE__ */ I(M, {
|
|
150
|
+
component: "span",
|
|
151
|
+
...c,
|
|
152
|
+
className: v(y.label, c == null ? void 0 : c.className),
|
|
153
|
+
children: l
|
|
154
|
+
})), /* @__PURE__ */ g(J, {
|
|
155
|
+
className: v(y.root, b),
|
|
156
|
+
ownerState: p,
|
|
157
|
+
ref: s,
|
|
158
|
+
...$,
|
|
159
|
+
children: [/* @__PURE__ */ P.cloneElement(n, C), u ? /* @__PURE__ */ g("div", {
|
|
160
|
+
children: [l, /* @__PURE__ */ g(K, {
|
|
161
|
+
ownerState: p,
|
|
162
|
+
"aria-hidden": !0,
|
|
163
|
+
className: y.asterisk,
|
|
164
|
+
children: [" ", "*"]
|
|
165
|
+
})]
|
|
166
|
+
}) : l]
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
170
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
171
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
172
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
173
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
174
|
+
/**
|
|
175
|
+
* If `true`, the component appears selected.
|
|
176
|
+
*/
|
|
177
|
+
checked: e.bool,
|
|
178
|
+
/**
|
|
179
|
+
* Override or extend the styles applied to the component.
|
|
180
|
+
*/
|
|
181
|
+
classes: e.object,
|
|
182
|
+
/**
|
|
183
|
+
* @ignore
|
|
184
|
+
*/
|
|
185
|
+
className: e.string,
|
|
186
|
+
/**
|
|
187
|
+
* The props used for each slot inside.
|
|
188
|
+
* @default {}
|
|
189
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
190
|
+
*/
|
|
191
|
+
componentsProps: e.shape({
|
|
192
|
+
typography: e.object
|
|
193
|
+
}),
|
|
194
|
+
/**
|
|
195
|
+
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
196
|
+
*/
|
|
197
|
+
control: e.element.isRequired,
|
|
198
|
+
/**
|
|
199
|
+
* If `true`, the control is disabled.
|
|
200
|
+
*/
|
|
201
|
+
disabled: e.bool,
|
|
202
|
+
/**
|
|
203
|
+
* If `true`, the label is rendered as it is passed without an additional typography node.
|
|
204
|
+
*/
|
|
205
|
+
disableTypography: e.bool,
|
|
206
|
+
/**
|
|
207
|
+
* Pass a ref to the `input` element.
|
|
208
|
+
*/
|
|
209
|
+
inputRef: V,
|
|
210
|
+
/**
|
|
211
|
+
* A text or an element to be used in an enclosing label element.
|
|
212
|
+
*/
|
|
213
|
+
label: e.node,
|
|
214
|
+
/**
|
|
215
|
+
* The position of the label.
|
|
216
|
+
* @default 'end'
|
|
217
|
+
*/
|
|
218
|
+
labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
|
|
219
|
+
/**
|
|
220
|
+
* @ignore
|
|
221
|
+
*/
|
|
222
|
+
name: e.string,
|
|
223
|
+
/**
|
|
224
|
+
* Callback fired when the state is changed.
|
|
225
|
+
*
|
|
226
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
227
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
228
|
+
*/
|
|
229
|
+
onChange: e.func,
|
|
230
|
+
/**
|
|
231
|
+
* If `true`, the label will indicate that the `input` is required.
|
|
232
|
+
*/
|
|
233
|
+
required: e.bool,
|
|
234
|
+
/**
|
|
235
|
+
* The props used for each slot inside.
|
|
236
|
+
* @default {}
|
|
237
|
+
*/
|
|
238
|
+
slotProps: e.shape({
|
|
239
|
+
typography: e.oneOfType([e.func, e.object])
|
|
240
|
+
}),
|
|
241
|
+
/**
|
|
242
|
+
* The components used for each slot inside.
|
|
243
|
+
* @default {}
|
|
244
|
+
*/
|
|
245
|
+
slots: e.shape({
|
|
246
|
+
typography: e.elementType
|
|
247
|
+
}),
|
|
248
|
+
/**
|
|
249
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
250
|
+
*/
|
|
251
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
252
|
+
/**
|
|
253
|
+
* The value of the component.
|
|
254
|
+
*/
|
|
255
|
+
value: e.any
|
|
256
|
+
});
|
|
257
|
+
export {
|
|
258
|
+
Q as F,
|
|
259
|
+
a as f,
|
|
260
|
+
W as g
|
|
261
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const U=require("react"),e=require("./identifier-DTh6b5Gz.cjs"),v=require("./memoTheme-DJBS0nbO.cjs"),E=require("./formControlState-CuX6WjAX.cjs"),_=require("./useSlot-i7AZwCRV.cjs"),m=require("react/jsx-runtime"),b=require("./DefaultPropsProvider-eVMpAUQg.cjs"),z=require("./useFormControl-haP0iPhl.cjs"),C=require("./Typography-DyMSnhvs.cjs"),A=require("./refType-DNB-r0Bp.cjs");function B(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const q=B(U);function L(o){return e.generateUtilityClass("MuiFormControlLabel",o)}const a=e.generateUtilityClasses("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),H=o=>{const{classes:r,disabled:t,labelPlacement:s,error:u,required:y}=o,P={root:["root",t&&"disabled",`labelPlacement${e.capitalize(s)}`,u&&"error",y&&"required"],label:["label",t&&"disabled"],asterisk:["asterisk",u&&"error"]};return b.composeClasses(P,L,r)},I=b.styled("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[{[`& .${a.label}`]:r.label},r.root,r[`labelPlacement${e.capitalize(t.labelPlacement)}`]]}})(v.memoTheme(({theme:o})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${a.disabled}`]:{cursor:"default"},[`& .${a.label}`]:{[`&.${a.disabled}`]:{color:(o.vars||o).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:r})=>r==="start"||r==="top"||r==="bottom",style:{marginLeft:16}}]}))),V=b.styled("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(v.memoTheme(({theme:o})=>({[`&.${a.error}`]:{color:(o.vars||o).palette.error.main}}))),j=q.forwardRef(function(r,t){const s=b.useDefaultProps({props:r,name:"MuiFormControlLabel"}),{checked:u,className:y,componentsProps:P={},control:n,disabled:x,disableTypography:R,inputRef:W,label:F,labelPlacement:O="end",name:G,onChange:J,required:S,slots:k={},slotProps:N={},value:K,...w}=s,p=z.useFormControl(),g=x??n.props.disabled??(p==null?void 0:p.disabled),f=S??n.props.required,h={disabled:g,required:f};["checked","name","onChange","value","inputRef"].forEach(d=>{typeof n.props[d]>"u"&&typeof s[d]<"u"&&(h[d]=s[d])});const D=E.formControlState({props:s,muiFormControl:p,states:["error"]}),i={...s,disabled:g,labelPlacement:O,required:f,error:D.error},T=H(i),$={slots:k,slotProps:{...P,...N}},[M,c]=_.useSlot("typography",{elementType:C.Typography,externalForwardedProps:$,ownerState:i});let l=F;return l!=null&&l.type!==C.Typography&&!R&&(l=m.jsx(M,{component:"span",...c,className:e.clsx(T.label,c==null?void 0:c.className),children:l})),m.jsxs(I,{className:e.clsx(T.root,y),ownerState:i,ref:t,...w,children:[q.cloneElement(n,h),f?m.jsxs("div",{children:[l,m.jsxs(V,{ownerState:i,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):l]})});process.env.NODE_ENV!=="production"&&(j.propTypes={checked:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,componentsProps:e.PropTypes.shape({typography:e.PropTypes.object}),control:e.PropTypes.element.isRequired,disabled:e.PropTypes.bool,disableTypography:e.PropTypes.bool,inputRef:A.refType,label:e.PropTypes.node,labelPlacement:e.PropTypes.oneOf(["bottom","end","start","top"]),name:e.PropTypes.string,onChange:e.PropTypes.func,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({typography:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({typography:e.PropTypes.elementType}),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]),value:e.PropTypes.any});exports.FormControlLabel=j;exports.formControlLabelClasses=a;exports.getFormControlLabelUtilityClasses=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const P=require("react"),o=require("./identifier-DTh6b5Gz.cjs"),d=require("./useFormControl-haP0iPhl.cjs"),T=require("./formControlState-CuX6WjAX.cjs"),w=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-eVMpAUQg.cjs");function C(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const F=C(P);function u(r){return o.generateUtilityClass("MuiFormGroup",r)}const G=o.generateUtilityClasses("MuiFormGroup",["root","row","error"]),b=r=>{const{classes:e,row:t,error:s}=r,n={root:["root",t&&"row",s&&"error"]};return p.composeClasses(n,u,e)},g=p.styled("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,t.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),a=F.forwardRef(function(e,t){const s=p.useDefaultProps({props:e,name:"MuiFormGroup"}),{className:n,row:l=!1,...i}=s,f=d.useFormControl(),m=T.formControlState({props:s,muiFormControl:f,states:["error"]}),c={...s,row:l,error:m.error},y=b(c);return w.jsx(g,{className:o.clsx(y.root,n),ownerState:c,ref:t,...i})});process.env.NODE_ENV!=="production"&&(a.propTypes={children:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,row:o.PropTypes.bool,sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});exports.FormGroup=a;exports.formGroupClasses=G;exports.getFormGroupUtilityClass=u;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { H as f, I as w, G as y, P as o } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { u as F } from "./useFormControl-CatNKXAi.js";
|
|
4
|
+
import { f as G } from "./formControlState-vgaj2ksH.js";
|
|
5
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
6
|
+
import { s as C, u as x, c as v } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
7
|
+
function b(r) {
|
|
8
|
+
return f("MuiFormGroup", r);
|
|
9
|
+
}
|
|
10
|
+
const T = w("MuiFormGroup", ["root", "row", "error"]), g = (r) => {
|
|
11
|
+
const {
|
|
12
|
+
classes: s,
|
|
13
|
+
row: e,
|
|
14
|
+
error: t
|
|
15
|
+
} = r;
|
|
16
|
+
return v({
|
|
17
|
+
root: ["root", e && "row", t && "error"]
|
|
18
|
+
}, b, s);
|
|
19
|
+
}, N = C("div", {
|
|
20
|
+
name: "MuiFormGroup",
|
|
21
|
+
slot: "Root",
|
|
22
|
+
overridesResolver: (r, s) => {
|
|
23
|
+
const {
|
|
24
|
+
ownerState: e
|
|
25
|
+
} = r;
|
|
26
|
+
return [s.root, e.row && s.row];
|
|
27
|
+
}
|
|
28
|
+
})({
|
|
29
|
+
display: "flex",
|
|
30
|
+
flexDirection: "column",
|
|
31
|
+
flexWrap: "wrap",
|
|
32
|
+
variants: [{
|
|
33
|
+
props: {
|
|
34
|
+
row: !0
|
|
35
|
+
},
|
|
36
|
+
style: {
|
|
37
|
+
flexDirection: "row"
|
|
38
|
+
}
|
|
39
|
+
}]
|
|
40
|
+
}), R = /* @__PURE__ */ u.forwardRef(function(s, e) {
|
|
41
|
+
const t = x({
|
|
42
|
+
props: s,
|
|
43
|
+
name: "MuiFormGroup"
|
|
44
|
+
}), {
|
|
45
|
+
className: a,
|
|
46
|
+
row: c = !1,
|
|
47
|
+
...l
|
|
48
|
+
} = t, p = F(), i = G({
|
|
49
|
+
props: t,
|
|
50
|
+
muiFormControl: p,
|
|
51
|
+
states: ["error"]
|
|
52
|
+
}), n = {
|
|
53
|
+
...t,
|
|
54
|
+
row: c,
|
|
55
|
+
error: i.error
|
|
56
|
+
}, m = g(n);
|
|
57
|
+
return /* @__PURE__ */ d(N, {
|
|
58
|
+
className: y(m.root, a),
|
|
59
|
+
ownerState: n,
|
|
60
|
+
ref: e,
|
|
61
|
+
...l
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
65
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
66
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
67
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
68
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
69
|
+
/**
|
|
70
|
+
* The content of the component.
|
|
71
|
+
*/
|
|
72
|
+
children: o.node,
|
|
73
|
+
/**
|
|
74
|
+
* Override or extend the styles applied to the component.
|
|
75
|
+
*/
|
|
76
|
+
classes: o.object,
|
|
77
|
+
/**
|
|
78
|
+
* @ignore
|
|
79
|
+
*/
|
|
80
|
+
className: o.string,
|
|
81
|
+
/**
|
|
82
|
+
* Display group of elements in a compact row.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
row: o.bool,
|
|
86
|
+
/**
|
|
87
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
88
|
+
*/
|
|
89
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
90
|
+
});
|
|
91
|
+
export {
|
|
92
|
+
R as F,
|
|
93
|
+
T as f,
|
|
94
|
+
b as g
|
|
95
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { F as
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { H as A, I as D, L, G as P, P as e } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { a as J, i as k } from "./utils-DWqc1kRF.js";
|
|
4
|
+
import { F as K, u as Q } from "./useFormControl-CatNKXAi.js";
|
|
5
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-
|
|
7
|
-
import {
|
|
6
|
+
import { s as E, u as B, c as V } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
7
|
+
import { f as X } from "./formControlState-vgaj2ksH.js";
|
|
8
|
+
import { m as _ } from "./memoTheme-CqfvfBST.js";
|
|
8
9
|
import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
9
10
|
function x(o, r) {
|
|
10
11
|
var n, t, s;
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ i.isValidElement(o) && r.indexOf(
|
|
12
13
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
13
14
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
14
15
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -18,7 +19,7 @@ function x(o, r) {
|
|
|
18
19
|
function Z(o) {
|
|
19
20
|
return A("MuiFormControl", o);
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), ee = (o) => {
|
|
22
23
|
const {
|
|
23
24
|
classes: r,
|
|
24
25
|
margin: n,
|
|
@@ -72,7 +73,7 @@ const be = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
72
73
|
width: "100%"
|
|
73
74
|
}
|
|
74
75
|
}]
|
|
75
|
-
}), re = /* @__PURE__ */
|
|
76
|
+
}), re = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
76
77
|
const t = B({
|
|
77
78
|
props: r,
|
|
78
79
|
name: "MuiFormControl"
|
|
@@ -81,7 +82,7 @@ const be = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
81
82
|
className: f,
|
|
82
83
|
color: p = "primary",
|
|
83
84
|
component: c = "div",
|
|
84
|
-
disabled:
|
|
85
|
+
disabled: a = !1,
|
|
85
86
|
error: y = !1,
|
|
86
87
|
focused: O,
|
|
87
88
|
fullWidth: g = !1,
|
|
@@ -95,7 +96,7 @@ const be = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
95
96
|
...t,
|
|
96
97
|
color: p,
|
|
97
98
|
component: c,
|
|
98
|
-
disabled:
|
|
99
|
+
disabled: a,
|
|
99
100
|
error: y,
|
|
100
101
|
fullWidth: g,
|
|
101
102
|
hiddenLabel: F,
|
|
@@ -103,33 +104,33 @@ const be = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
103
104
|
required: m,
|
|
104
105
|
size: l,
|
|
105
106
|
variant: u
|
|
106
|
-
}, z = ee(M), [q, H] =
|
|
107
|
+
}, z = ee(M), [q, H] = i.useState(() => {
|
|
107
108
|
let b = !1;
|
|
108
|
-
return s &&
|
|
109
|
+
return s && i.Children.forEach(s, (d) => {
|
|
109
110
|
if (!x(d, ["Input", "Select"]))
|
|
110
111
|
return;
|
|
111
112
|
const $ = x(d, ["Select"]) ? d.props.input : d;
|
|
112
|
-
$ &&
|
|
113
|
+
$ && J($.props) && (b = !0);
|
|
113
114
|
}), b;
|
|
114
|
-
}), [R, j] =
|
|
115
|
+
}), [R, j] = i.useState(() => {
|
|
115
116
|
let b = !1;
|
|
116
|
-
return s &&
|
|
117
|
+
return s && i.Children.forEach(s, (d) => {
|
|
117
118
|
x(d, ["Input", "Select"]) && (k(d.props, !0) || k(d.props.inputProps, !0)) && (b = !0);
|
|
118
119
|
}), b;
|
|
119
|
-
}), [W, S] =
|
|
120
|
-
|
|
121
|
-
const w = O !== void 0 && !
|
|
120
|
+
}), [W, S] = i.useState(!1);
|
|
121
|
+
a && W && S(!1);
|
|
122
|
+
const w = O !== void 0 && !a ? O : W;
|
|
122
123
|
let N;
|
|
123
|
-
const T =
|
|
124
|
+
const T = i.useRef(!1);
|
|
124
125
|
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(`
|
|
125
126
|
`)), T.current = !0, () => {
|
|
126
127
|
T.current = !1;
|
|
127
128
|
}));
|
|
128
|
-
const
|
|
129
|
+
const G = i.useMemo(() => ({
|
|
129
130
|
adornedStart: q,
|
|
130
131
|
setAdornedStart: H,
|
|
131
132
|
color: p,
|
|
132
|
-
disabled:
|
|
133
|
+
disabled: a,
|
|
133
134
|
error: y,
|
|
134
135
|
filled: R,
|
|
135
136
|
focused: w,
|
|
@@ -151,9 +152,9 @@ const be = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
151
152
|
registerEffect: N,
|
|
152
153
|
required: m,
|
|
153
154
|
variant: u
|
|
154
|
-
}), [q, p,
|
|
155
|
-
return /* @__PURE__ */ I(
|
|
156
|
-
value:
|
|
155
|
+
}), [q, p, a, y, R, w, g, F, N, m, l, u]);
|
|
156
|
+
return /* @__PURE__ */ I(K.Provider, {
|
|
157
|
+
value: G,
|
|
157
158
|
children: /* @__PURE__ */ I(oe, {
|
|
158
159
|
as: c,
|
|
159
160
|
ownerState: M,
|
|
@@ -256,11 +257,11 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
256
257
|
error: f,
|
|
257
258
|
filled: p,
|
|
258
259
|
required: c
|
|
259
|
-
} = o,
|
|
260
|
+
} = o, a = {
|
|
260
261
|
root: ["root", `color${L(n)}`, s && "disabled", f && "error", p && "filled", t && "focused", c && "required"],
|
|
261
262
|
asterisk: ["asterisk", f && "error"]
|
|
262
263
|
};
|
|
263
|
-
return V(
|
|
264
|
+
return V(a, se, r);
|
|
264
265
|
}, ne = E("label", {
|
|
265
266
|
name: "MuiFormLabel",
|
|
266
267
|
slot: "Root",
|
|
@@ -309,7 +310,7 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
309
310
|
[`&.${C.error}`]: {
|
|
310
311
|
color: (o.vars || o).palette.error.main
|
|
311
312
|
}
|
|
312
|
-
}))),
|
|
313
|
+
}))), ie = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
313
314
|
const t = B({
|
|
314
315
|
props: r,
|
|
315
316
|
name: "MuiFormLabel"
|
|
@@ -318,13 +319,13 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
318
319
|
className: f,
|
|
319
320
|
color: p,
|
|
320
321
|
component: c = "label",
|
|
321
|
-
disabled:
|
|
322
|
+
disabled: a,
|
|
322
323
|
error: y,
|
|
323
324
|
filled: O,
|
|
324
325
|
focused: g,
|
|
325
326
|
required: F,
|
|
326
327
|
...h
|
|
327
|
-
} = t, m =
|
|
328
|
+
} = t, m = Q(), l = X({
|
|
328
329
|
props: t,
|
|
329
330
|
muiFormControl: m,
|
|
330
331
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
@@ -352,7 +353,7 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
352
353
|
})]
|
|
353
354
|
});
|
|
354
355
|
});
|
|
355
|
-
process.env.NODE_ENV !== "production" && (
|
|
356
|
+
process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
356
357
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
357
358
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
358
359
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -407,11 +408,11 @@ process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
|
407
408
|
});
|
|
408
409
|
export {
|
|
409
410
|
re as F,
|
|
410
|
-
|
|
411
|
+
ie as a,
|
|
411
412
|
C as b,
|
|
412
413
|
ne as c,
|
|
413
414
|
se as d,
|
|
414
|
-
|
|
415
|
+
ye as f,
|
|
415
416
|
Z as g,
|
|
416
417
|
x as i
|
|
417
418
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const G=require("react"),e=require("./identifier-DTh6b5Gz.cjs"),x=require("./utils-BWx1W_q1.cjs"),W=require("./useFormControl-haP0iPhl.cjs"),O=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-eVMpAUQg.cjs"),J=require("./formControlState-CuX6WjAX.cjs"),k=require("./memoTheme-DJBS0nbO.cjs"),K=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs");function Q(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=Q(G);function v(o,r){var s,t,l;return i.isValidElement(o)&&r.indexOf(o.type.muiName??((l=(t=(s=o.type)==null?void 0:s._payload)==null?void 0:t.value)==null?void 0:l.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,l={root:["root",s!=="none"&&`margin${e.capitalize(s)}`,t&&"fullWidth"]};return u.composeClasses(l,$,r)},Z=u.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=u.useDefaultProps({props:r,name:"MuiFormControl"}),{children:l,className:f,color:m="primary",component:c="div",disabled:a=!1,error:P=!1,focused:S,fullWidth:g=!1,hiddenLabel:C=!1,margin:h="none",required:y=!1,size:n="medium",variant:d="outlined",...F}=t,L={...t,color:m,component:c,disabled:a,error:P,fullWidth:g,hiddenLabel:C,margin:h,required:y,size:n,variant:d},V=Y(L),[M,B]=i.useState(()=>{let T=!1;return l&&i.Children.forEach(l,p=>{if(!v(p,["Input","Select"]))return;const w=v(p,["Select"])?p.props.input:p;w&&x.isAdornedStart(w.props)&&(T=!0)}),T}),[R,E]=i.useState(()=>{let T=!1;return l&&i.Children.forEach(l,p=>{v(p,["Input","Select"])&&(x.isFilled(p.props,!0)||x.isFilled(p.props.inputProps,!0))&&(T=!0)}),T}),[U,q]=i.useState(!1);a&&U&&q(!1);const D=S!==void 0&&!a?S:U;let N;const j=i.useRef(!1);process.env.NODE_ENV!=="production"&&(N=()=>(j.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
2
|
+
`)),j.current=!0,()=>{j.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:n,onBlur:()=>{q(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{q(!0)},registerEffect:N,required:y,variant:d}),[M,m,a,P,R,D,g,C,N,y,n,d]);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:l})})});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:l,error:f,filled:m,required:c}=o,a={root:["root",`color${e.capitalize(s)}`,l&&"disabled",f&&"error",m&&"filled",t&&"focused",c&&"required"],asterisk:["asterisk",f&&"error"]};return u.composeClasses(a,z,r)},A=u.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(K.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=u.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=u.useDefaultProps({props:r,name:"MuiFormLabel"}),{children:l,className:f,color:m,component:c="label",disabled:a,error:P,filled:S,focused:g,required:C,...h}=t,y=W.useFormControl(),n=J.formControlState({props:t,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),d={...t,color:n.color||"primary",component:c,disabled:n.disabled,error:n.error,filled:n.filled,focused:n.focused,required:n.required},F=ee(d);return O.jsxs(A,{as:c,ownerState:d,className:e.clsx(F.root,f),ref:s,...h,children:[l,n.required&&O.jsxs(oe,{ownerState:d,"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.formControlClasses=X;exports.formLabelClasses=b;exports.getFormControlUtilityClasses=$;exports.getFormLabelUtilityClasses=z;exports.isMuiElement=v;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import { P as n } from "./identifier-
|
|
3
|
-
import { u as V } from "./useTheme-
|
|
2
|
+
import { P as n } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { u as V } from "./useTheme-CzzAEESs.js";
|
|
4
4
|
import { jsx as W } from "react/jsx-runtime";
|
|
5
|
-
import { g as k, e as B, T as J, r as M, a as v } from "./utils-
|
|
6
|
-
import { u as Q } from "./useTimeout-
|
|
5
|
+
import { g as k, e as B, T as J, r as M, a as v } from "./utils-jA5a7WHN.js";
|
|
6
|
+
import { u as Q } from "./useTimeout-Znm_nF2D.js";
|
|
7
7
|
import { u as U } from "./useForkRef-C_4o__cU.js";
|
|
8
8
|
function h(l) {
|
|
9
9
|
return `scale(${l}, ${l ** 2})`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { m as f } from "./memoTheme-
|
|
2
|
+
import { H as z, I, L as a, G as R, P as e, n as g } from "./identifier-B7MO0PvI.js";
|
|
3
|
+
import { m as f } from "./memoTheme-CqfvfBST.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-
|
|
7
|
-
import { B as S } from "./ButtonBase-
|
|
6
|
+
import { s as C, u as h, c as T } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
7
|
+
import { B as S } from "./ButtonBase-z74SMnd9.js";
|
|
8
8
|
import { c as $ } from "./chainPropTypes-D9lkm76m.js";
|
|
9
9
|
function x(o) {
|
|
10
10
|
return z("MuiIconButton", o);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { I as P, H as T, G as A, P as e, L as u } from "./identifier-B7MO0PvI.js";
|
|
3
3
|
import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
|
|
4
|
-
import { m as L } from "./memoTheme-
|
|
4
|
+
import { m as L } from "./memoTheme-CqfvfBST.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-
|
|
7
|
-
import { T as w } from "./Typography-
|
|
6
|
+
import { s as S, u as O, c as R } from "./DefaultPropsProvider-BYFwNPLt.js";
|
|
7
|
+
import { T as w } from "./Typography-CizHc1nM.js";
|
|
8
8
|
function z(t) {
|
|
9
9
|
return T("MuiInputAdornment", t);
|
|
10
10
|
}
|