@cgi-learning-hub/ui 1.3.2-dev.1731948416 → 1.3.2-dev.1732021614
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-KAJqifAq.cjs +1 -0
- package/dist/{Backdrop-CV5zVFtT.js → Backdrop-RBPtVAPX.js} +220 -265
- package/dist/{Box-MG2tJmr8.js → Box-UE-zctbJ.js} +3 -3
- package/dist/{Button-Ba8IQCCs.js → Button-Bjy0iPNm.js} +4 -4
- package/dist/{ButtonBase-BdvHQ0Vd.js → ButtonBase-CFD7NVUc.js} +21 -21
- package/dist/Checkbox-Ct5E_6h7.js +241 -0
- package/dist/Checkbox-CuYTY0gd.cjs +1 -0
- package/dist/{CircularProgress-BAVvonKL.js → CircularProgress-By02Sdoh.js} +3 -3
- package/dist/{DatePicker-DCsrvr3a.cjs → DatePicker-rhgpaD-r.cjs} +14 -14
- package/dist/{DatePicker-DoB4WsQR.js → DatePicker-u4rtXGeo.js} +53 -48
- package/dist/{DefaultPropsProvider-BE624hnX.js → DefaultPropsProvider-CaRoy5OV.js} +24 -24
- package/dist/FormGroup-BBYEQB4C.cjs +1 -0
- package/dist/FormGroup-BVtE8Mrv.js +348 -0
- package/dist/FormLabel-B4QlkhhB.js +424 -0
- package/dist/FormLabel-D8jYibc1.cjs +2 -0
- package/dist/{IconButton-BM6tD2wP.js → IconButton-Av8eJ5IG.js} +4 -4
- package/dist/InputAdornment-BJfpEQAa.cjs +1 -0
- package/dist/{InputAdornment-DwegBPlu.js → InputAdornment-COPtZlSD.js} +5 -5
- package/dist/{InputBase-Ck6jdGdt.js → InputBase-Bbgoz8GV.js} +186 -210
- package/dist/InputBase-Ctmib7Br.cjs +3 -0
- package/dist/MenuItem-D7HWYhF3.js +277 -0
- package/dist/MenuItem-Els-vJZW.cjs +1 -0
- package/dist/{TextField-ptOYG3fA.js → Select-BlPQngVF.js} +1458 -2424
- package/dist/Select-ipcMZ4iK.cjs +11 -0
- package/dist/{Stack-vO5Ta57O.js → Stack-y1PjTHKX.js} +18 -18
- package/dist/SwitchBase-URM3X3YZ.cjs +1 -0
- package/dist/SwitchBase-yCuH0Tqk.js +261 -0
- package/dist/{Tabs-DSWPmVfN.js → Tabs-DK4Bc5xo.js} +10 -10
- package/dist/{Tabs-e8UBJZ5z.cjs → Tabs-Nvk94RTW.cjs} +1 -1
- package/dist/TextField-BVAkADOb.cjs +1 -0
- package/dist/TextField-C-B529_r.js +547 -0
- package/dist/{Tooltip-dMZ46-1F.js → Tooltip-DO9GIhWC.js} +1782 -2858
- package/dist/Tooltip-DvPL2M0E.cjs +100 -0
- package/dist/{Typography-HjpyrRz2.js → Typography-C_ESP41L.js} +4 -4
- package/dist/components/Button/Button.es.js +5 -5
- 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.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- 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 +267 -262
- package/dist/components/stories/Alert.stories.cjs.js +1 -0
- package/dist/components/{Alert → stories}/Alert.stories.d.ts +1 -1
- package/dist/components/{Alert → stories}/Alert.stories.es.js +1 -1
- package/dist/components/stories/Button.stories.cjs.js +1 -0
- package/dist/components/{Button → stories}/Button.stories.d.ts +1 -1
- package/dist/components/{Button → stories}/Button.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
- package/dist/components/stories/Checkbox.stories.d.ts +10 -0
- package/dist/components/stories/Checkbox.stories.es.js +28 -0
- package/dist/components/{DatePicker → stories}/DatePicker.stories.cjs.js +1 -1
- package/dist/components/{DatePicker → stories}/DatePicker.stories.d.ts +1 -1
- package/dist/components/{DatePicker → stories}/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
- package/dist/components/{Dropzone → stories}/Dropzone.stories.d.ts +1 -1
- package/dist/components/{Dropzone → stories}/Dropzone.stories.es.js +1 -1
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
- package/dist/components/{EmptyState → stories}/EmptyState.stories.d.ts +1 -1
- package/dist/components/{EmptyState → stories}/EmptyState.stories.es.js +1 -1
- package/dist/components/stories/FileList.stories.cjs.js +1 -0
- package/dist/components/{FileList → stories}/FileList.stories.d.ts +1 -1
- package/dist/components/{FileList → stories}/FileList.stories.es.js +6 -5
- package/dist/components/stories/Heading.stories.cjs.js +1 -0
- package/dist/components/{Heading → stories}/Heading.stories.d.ts +1 -1
- package/dist/components/{Heading → stories}/Heading.stories.es.js +3 -3
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Loader.stories.cjs.js +1 -0
- package/dist/components/{Loader → stories}/Loader.stories.d.ts +1 -1
- package/dist/components/{Loader → stories}/Loader.stories.es.js +1 -1
- package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
- package/dist/components/{LoaderBackdrop → stories}/LoaderBackdrop.stories.d.ts +1 -1
- package/dist/components/{LoaderBackdrop → stories}/LoaderBackdrop.stories.es.js +1 -1
- package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/{PasswordInput → stories}/PasswordInput.stories.d.ts +1 -1
- package/dist/components/{PasswordInput → stories}/PasswordInput.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
- package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
- package/dist/components/stories/RadioGroup.stories.es.js +434 -0
- package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
- package/dist/components/{SearchInput → stories}/SearchInput.stories.d.ts +1 -1
- package/dist/components/{SearchInput → stories}/SearchInput.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -0
- package/dist/components/stories/Select.stories.d.ts +10 -0
- package/dist/components/stories/Select.stories.es.js +52 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +10 -10
- package/dist/components/stories/TextField.stories.cjs.js +1 -0
- package/dist/components/stories/TextField.stories.d.ts +10 -0
- package/dist/components/stories/TextField.stories.es.js +69 -0
- package/dist/{createSvgIcon-D8j2pi8H.js → createSvgIcon-DxbvMQd7.js} +3 -3
- package/dist/{extendSxProp-CrOV7ubJ.js → extendSxProp-XQwkK0m7.js} +1 -1
- package/dist/formControlState-DCkDUdfO.cjs +1 -0
- package/dist/formControlState-DdQP43Uo.js +21 -0
- package/dist/{fr-BbQGEyOf.js → fr-B8_MxRl5.js} +1 -1
- package/dist/{identifier-BspJ_uqC.js → identifier-BqadgaK7.js} +4 -4
- package/dist/{index-CUYeZpek.js → index-BUxqDIr9.js} +4 -4
- package/dist/{index-BD4CTHtk.js → index-CRT92bm7.js} +2 -2
- package/dist/index-D7nFYLYq.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +267 -262
- package/dist/{memoTheme-CwR5ZU7e.js → memoTheme-DfGVDRrB.js} +1 -1
- package/dist/{refType-B0086dcQ.js → refType-DlHf9HvO.js} +1 -1
- package/dist/{useTheme-DCeWFyuq.js → resolveComponentProps-CxJ2yAJn.js} +18 -26
- package/dist/resolveComponentProps-DTv6xPbb.cjs +1 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useControlled-Ysk4KqoX.cjs +3 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useFormControl-haP0iPhl.cjs +1 -0
- package/dist/useSlot-42jgZftI.cjs +1 -0
- package/dist/useSlot-Co14PUn6.js +50 -0
- package/dist/useTheme-CtT7O-Wk.js +11 -0
- package/dist/{useTheme-B4Cg2FUT.js → useTheme-oM_SFWy4.js} +1 -1
- package/dist/useTheme-tZYpFplW.cjs +1 -0
- package/dist/{useThemeProps-B87e2Gmx.js → useThemeProps-BlQ3SLfB.js} +4 -4
- package/dist/{useThemeProps-kJZsUF6E.js → useThemeProps-FiA8ivG-.js} +3 -3
- package/dist/{useTimeout-BFZIFO63.js → useTimeout-D16vpBhn.js} +1 -1
- package/package.json +1 -1
- package/dist/Backdrop-D1g8gJ4S.cjs +0 -1
- package/dist/InputAdornment-CfXhmkcT.cjs +0 -1
- package/dist/InputBase-uv1-DNAg.cjs +0 -3
- package/dist/TextField-C2b1L1xj.cjs +0 -14
- package/dist/Tooltip-bKfA-tNR.cjs +0 -100
- package/dist/components/Alert/Alert.stories.cjs.js +0 -1
- package/dist/components/Button/Button.stories.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
- package/dist/components/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/Heading/Heading.stories.cjs.js +0 -1
- package/dist/components/Loader/Loader.stories.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
- package/dist/components/TextInput/TextInput.stories.es.js +0 -43
- package/dist/index-1_dd0hY2.cjs +0 -1
- package/dist/useTheme-VRTfPKo-.cjs +0 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import * as v from "react";
|
|
2
|
+
import { I as L, J as N, L as j, K as P, P as e } from "./identifier-BqadgaK7.js";
|
|
3
|
+
import { m as O } from "./memoTheme-DfGVDRrB.js";
|
|
4
|
+
import { f as S } from "./formControlState-DdQP43Uo.js";
|
|
5
|
+
import { u as z } from "./useSlot-Co14PUn6.js";
|
|
6
|
+
import { jsx as q, jsxs as C } from "react/jsx-runtime";
|
|
7
|
+
import { s as w, u as G, c as M } from "./DefaultPropsProvider-CaRoy5OV.js";
|
|
8
|
+
import { u as k } from "./useFormControl-CatNKXAi.js";
|
|
9
|
+
import { T as R } from "./Typography-C_ESP41L.js";
|
|
10
|
+
import { r as B } from "./refType-DlHf9HvO.js";
|
|
11
|
+
function H(o) {
|
|
12
|
+
return L("MuiFormControlLabel", o);
|
|
13
|
+
}
|
|
14
|
+
const p = N("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error", "required", "asterisk"]), J = (o) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: r,
|
|
17
|
+
disabled: t,
|
|
18
|
+
labelPlacement: s,
|
|
19
|
+
error: a,
|
|
20
|
+
required: i
|
|
21
|
+
} = o, c = {
|
|
22
|
+
root: ["root", t && "disabled", `labelPlacement${j(s)}`, a && "error", i && "required"],
|
|
23
|
+
label: ["label", t && "disabled"],
|
|
24
|
+
asterisk: ["asterisk", a && "error"]
|
|
25
|
+
};
|
|
26
|
+
return M(c, H, r);
|
|
27
|
+
}, K = w("label", {
|
|
28
|
+
name: "MuiFormControlLabel",
|
|
29
|
+
slot: "Root",
|
|
30
|
+
overridesResolver: (o, r) => {
|
|
31
|
+
const {
|
|
32
|
+
ownerState: t
|
|
33
|
+
} = o;
|
|
34
|
+
return [{
|
|
35
|
+
[`& .${p.label}`]: r.label
|
|
36
|
+
}, r.root, r[`labelPlacement${j(t.labelPlacement)}`]];
|
|
37
|
+
}
|
|
38
|
+
})(O(({
|
|
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
|
+
[`&.${p.disabled}`]: {
|
|
51
|
+
cursor: "default"
|
|
52
|
+
},
|
|
53
|
+
[`& .${p.label}`]: {
|
|
54
|
+
[`&.${p.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
|
+
}))), Q = w("span", {
|
|
90
|
+
name: "MuiFormControlLabel",
|
|
91
|
+
slot: "Asterisk",
|
|
92
|
+
overridesResolver: (o, r) => r.asterisk
|
|
93
|
+
})(O(({
|
|
94
|
+
theme: o
|
|
95
|
+
}) => ({
|
|
96
|
+
[`&.${p.error}`]: {
|
|
97
|
+
color: (o.vars || o).palette.error.main
|
|
98
|
+
}
|
|
99
|
+
}))), X = /* @__PURE__ */ v.forwardRef(function(r, t) {
|
|
100
|
+
const s = G({
|
|
101
|
+
props: r,
|
|
102
|
+
name: "MuiFormControlLabel"
|
|
103
|
+
}), {
|
|
104
|
+
checked: a,
|
|
105
|
+
className: i,
|
|
106
|
+
componentsProps: c = {},
|
|
107
|
+
control: l,
|
|
108
|
+
disabled: y,
|
|
109
|
+
disableTypography: m,
|
|
110
|
+
inputRef: F,
|
|
111
|
+
label: D,
|
|
112
|
+
labelPlacement: $ = "end",
|
|
113
|
+
name: re,
|
|
114
|
+
onChange: se,
|
|
115
|
+
required: E,
|
|
116
|
+
slots: U = {},
|
|
117
|
+
slotProps: A = {},
|
|
118
|
+
value: te,
|
|
119
|
+
...I
|
|
120
|
+
} = s, d = k(), T = y ?? l.props.disabled ?? (d == null ? void 0 : d.disabled), g = E ?? l.props.required, x = {
|
|
121
|
+
disabled: T,
|
|
122
|
+
required: g
|
|
123
|
+
};
|
|
124
|
+
["checked", "name", "onChange", "value", "inputRef"].forEach((f) => {
|
|
125
|
+
typeof l.props[f] > "u" && typeof s[f] < "u" && (x[f] = s[f]);
|
|
126
|
+
});
|
|
127
|
+
const V = S({
|
|
128
|
+
props: s,
|
|
129
|
+
muiFormControl: d,
|
|
130
|
+
states: ["error"]
|
|
131
|
+
}), u = {
|
|
132
|
+
...s,
|
|
133
|
+
disabled: T,
|
|
134
|
+
labelPlacement: $,
|
|
135
|
+
required: g,
|
|
136
|
+
error: V.error
|
|
137
|
+
}, h = J(u), W = {
|
|
138
|
+
slots: U,
|
|
139
|
+
slotProps: {
|
|
140
|
+
...c,
|
|
141
|
+
...A
|
|
142
|
+
}
|
|
143
|
+
}, [_, b] = z("typography", {
|
|
144
|
+
elementType: R,
|
|
145
|
+
externalForwardedProps: W,
|
|
146
|
+
ownerState: u
|
|
147
|
+
});
|
|
148
|
+
let n = D;
|
|
149
|
+
return n != null && n.type !== R && !m && (n = /* @__PURE__ */ q(_, {
|
|
150
|
+
component: "span",
|
|
151
|
+
...b,
|
|
152
|
+
className: P(h.label, b == null ? void 0 : b.className),
|
|
153
|
+
children: n
|
|
154
|
+
})), /* @__PURE__ */ C(K, {
|
|
155
|
+
className: P(h.root, i),
|
|
156
|
+
ownerState: u,
|
|
157
|
+
ref: t,
|
|
158
|
+
...I,
|
|
159
|
+
children: [/* @__PURE__ */ v.cloneElement(l, x), g ? /* @__PURE__ */ C("div", {
|
|
160
|
+
children: [n, /* @__PURE__ */ C(Q, {
|
|
161
|
+
ownerState: u,
|
|
162
|
+
"aria-hidden": !0,
|
|
163
|
+
className: h.asterisk,
|
|
164
|
+
children: [" ", "*"]
|
|
165
|
+
})]
|
|
166
|
+
}) : n]
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
process.env.NODE_ENV !== "production" && (X.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: B,
|
|
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
|
+
function Y(o) {
|
|
258
|
+
return L("MuiFormGroup", o);
|
|
259
|
+
}
|
|
260
|
+
const be = N("MuiFormGroup", ["root", "row", "error"]), Z = (o) => {
|
|
261
|
+
const {
|
|
262
|
+
classes: r,
|
|
263
|
+
row: t,
|
|
264
|
+
error: s
|
|
265
|
+
} = o;
|
|
266
|
+
return M({
|
|
267
|
+
root: ["root", t && "row", s && "error"]
|
|
268
|
+
}, Y, r);
|
|
269
|
+
}, ee = w("div", {
|
|
270
|
+
name: "MuiFormGroup",
|
|
271
|
+
slot: "Root",
|
|
272
|
+
overridesResolver: (o, r) => {
|
|
273
|
+
const {
|
|
274
|
+
ownerState: t
|
|
275
|
+
} = o;
|
|
276
|
+
return [r.root, t.row && r.row];
|
|
277
|
+
}
|
|
278
|
+
})({
|
|
279
|
+
display: "flex",
|
|
280
|
+
flexDirection: "column",
|
|
281
|
+
flexWrap: "wrap",
|
|
282
|
+
variants: [{
|
|
283
|
+
props: {
|
|
284
|
+
row: !0
|
|
285
|
+
},
|
|
286
|
+
style: {
|
|
287
|
+
flexDirection: "row"
|
|
288
|
+
}
|
|
289
|
+
}]
|
|
290
|
+
}), oe = /* @__PURE__ */ v.forwardRef(function(r, t) {
|
|
291
|
+
const s = G({
|
|
292
|
+
props: r,
|
|
293
|
+
name: "MuiFormGroup"
|
|
294
|
+
}), {
|
|
295
|
+
className: a,
|
|
296
|
+
row: i = !1,
|
|
297
|
+
...c
|
|
298
|
+
} = s, l = k(), y = S({
|
|
299
|
+
props: s,
|
|
300
|
+
muiFormControl: l,
|
|
301
|
+
states: ["error"]
|
|
302
|
+
}), m = {
|
|
303
|
+
...s,
|
|
304
|
+
row: i,
|
|
305
|
+
error: y.error
|
|
306
|
+
}, F = Z(m);
|
|
307
|
+
return /* @__PURE__ */ q(ee, {
|
|
308
|
+
className: P(F.root, a),
|
|
309
|
+
ownerState: m,
|
|
310
|
+
ref: t,
|
|
311
|
+
...c
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
315
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
316
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
317
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
318
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
319
|
+
/**
|
|
320
|
+
* The content of the component.
|
|
321
|
+
*/
|
|
322
|
+
children: e.node,
|
|
323
|
+
/**
|
|
324
|
+
* Override or extend the styles applied to the component.
|
|
325
|
+
*/
|
|
326
|
+
classes: e.object,
|
|
327
|
+
/**
|
|
328
|
+
* @ignore
|
|
329
|
+
*/
|
|
330
|
+
className: e.string,
|
|
331
|
+
/**
|
|
332
|
+
* Display group of elements in a compact row.
|
|
333
|
+
* @default false
|
|
334
|
+
*/
|
|
335
|
+
row: e.bool,
|
|
336
|
+
/**
|
|
337
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
338
|
+
*/
|
|
339
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
340
|
+
});
|
|
341
|
+
export {
|
|
342
|
+
X as F,
|
|
343
|
+
oe as a,
|
|
344
|
+
be as b,
|
|
345
|
+
Y as c,
|
|
346
|
+
p as f,
|
|
347
|
+
H as g
|
|
348
|
+
};
|