@cgi-learning-hub/ui 1.3.3 → 1.3.4-dev.1733150814
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-BlKt7y1x.js +360 -0
- package/dist/Backdrop-vSE8W9jq.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DErdbtsw.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-DMYs7NTb.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-CiqVGfRs.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-D3dbHQM1.cjs} +1 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-DUPJVOlc.js} +232 -240
- package/dist/Card-Cnh4u4kb.cjs +1 -0
- package/dist/Card-mGRk1RuE.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aJ1r7ufI.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CfODO7vI.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DHgcUb1c.cjs} +7 -7
- package/dist/DatePicker-Dyf9Vhld.js +10845 -0
- package/dist/DatePicker-juzW4bLC.cjs +14 -0
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-xJkZOrdv.js} +146 -143
- package/dist/Delete-BOQTx9ze.js +8 -0
- package/dist/Delete-DyzDL8-Y.cjs +1 -0
- package/dist/DialogContent-D1KFPXhr.js +602 -0
- package/dist/DialogContent-Dphl2SKX.cjs +1 -0
- package/dist/DialogTitle-AQ-YU9PH.js +134 -0
- package/dist/DialogTitle-C8AdXsDz.cjs +1 -0
- package/dist/Divider-Bdp8beK-.cjs +1 -0
- package/dist/Divider-C0R1SUa4.js +296 -0
- package/dist/FormControlLabel-BlO93LTi.cjs +1 -0
- package/dist/FormControlLabel-w-X91z27.js +261 -0
- package/dist/FormGroup-6NoANcYk.js +95 -0
- package/dist/FormGroup-D0zSGn42.cjs +1 -0
- package/dist/FormLabel-BkiH7wl7.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-CoLJ9tA8.js} +36 -42
- package/dist/Grow-DfACa72Q.cjs +1 -0
- package/dist/Grow-SW33sONG.js +193 -0
- package/dist/IconButton-DRs0xB4z.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DjeMTpI5.js} +5 -5
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-ByiVSgFT.js} +4 -4
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CvU0-Zg6.js} +59 -59
- package/dist/InputBase-Xfjv-RYp.cjs +3 -0
- package/dist/Link-Dmwt9wxb.js +266 -0
- package/dist/Link-Z_UCBvgV.cjs +1 -0
- package/dist/Menu-4U27Dst1.js +965 -0
- package/dist/Menu-DREdNbqu.cjs +7 -0
- package/dist/MenuItem-CN75Du-9.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-CqPsuuC1.js} +69 -74
- package/dist/Modal-DWqBsogu.cjs +2 -0
- package/dist/Modal-D_mqYIr2.js +750 -0
- package/dist/Paper-CjMuucS5.cjs +2 -0
- package/dist/Paper-D973Ow-i.js +185 -0
- package/dist/Popper-B8oNZqtn.js +1407 -0
- package/dist/Popper-hzM0y1hA.cjs +4 -0
- package/dist/Portal-BKbBRbWN.js +86 -0
- package/dist/Portal-Bv2VRYHH.cjs +1 -0
- package/dist/Radio-BrzQH9pY.js +312 -0
- package/dist/Radio-DxbXYNhR.cjs +1 -0
- package/dist/Select-CL4E8NNL.cjs +3 -0
- package/dist/Select-CgAPAUTr.js +2602 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-CYXQpKS2.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-WrITLr1B.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-CGa9A6SL.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-hvz89Dvu.js} +2185 -3518
- package/dist/TableSortLabel-mAzX4tAl.cjs +98 -0
- package/dist/Tabs-BNqwYd2G.cjs +4 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BPI2IyPx.js} +284 -282
- package/dist/{TextField-C-B529_r.js → TextField-C4nIxR_t.js} +24 -24
- package/dist/{TextField-BVAkADOb.cjs → TextField-Dy0Iblqt.cjs} +1 -1
- package/dist/Tooltip-Bdrv-e2a.js +720 -0
- package/dist/Tooltip-vg27N3PU.cjs +4 -0
- package/dist/{Typography-5OodZ94T.cjs → Typography-BF9bdWxl.cjs} +1 -1
- package/dist/{Typography-C_ESP41L.js → Typography-CUdlQxLM.js} +4 -4
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +12 -12
- 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.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- 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.d.ts +1 -0
- package/dist/components/index.es.js +277 -265
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- 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.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- 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.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- 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.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- 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.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +140 -90
- 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.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- 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/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CVd3Lo1D.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CyDs_RPD.cjs +1 -0
- package/dist/dividerClasses-kN_Ky2Bl.js +9 -0
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +1 -0
- package/dist/elementTypeAcceptingRef-modXfN2G.js +23 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-CHv0k-C6.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → identifier-Bn0tF6ls.js} +612 -608
- package/dist/{identifier-BQH88SE0.cjs → identifier-Dax8VlUh.cjs} +19 -19
- package/dist/index-BNojWn2E.js +2152 -0
- package/dist/index-C5dNuV-2.cjs +5 -0
- package/dist/{index-BUxqDIr9.js → index-CVpJYeY2.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-D3PBNx_m.cjs} +1 -1
- package/dist/{index-CNv8ppur.cjs → index-OLlWw08I.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-waINWr3i.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +277 -265
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-BPA1FjB4.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CMJVTZEg.js} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-BmrOFNz6.js +7 -0
- package/dist/refType-Dm84STBj.cjs +1 -0
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-DHoZOPOi.js} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-42jgZftI.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
- package/dist/{useSlot-Co14PUn6.js → useSlot-t9oGnIgq.js} +2 -2
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-BIogn5Me.cjs} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-CBsFvF7I.js} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-L3EQmvnN.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-5Bku71LW.js} +2 -2
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-C692LOYf.cjs} +1 -1
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-I9EHeqzU.js} +3 -3
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-3Y5y4gWq.js} +4 -4
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-CxOQget6.cjs} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-CE_a8glN.js +391 -0
- package/dist/utils-CusX8Edy.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -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-Bn0tF6ls.js";
|
|
3
|
+
import { m as R } from "./memoTheme-CMJVTZEg.js";
|
|
4
|
+
import { f as A } from "./formControlState-vgaj2ksH.js";
|
|
5
|
+
import { u as H } from "./useSlot-t9oGnIgq.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-xJkZOrdv.js";
|
|
8
|
+
import { u as G } from "./useFormControl-CatNKXAi.js";
|
|
9
|
+
import { T } from "./Typography-CUdlQxLM.js";
|
|
10
|
+
import { r as V } from "./refType-BmrOFNz6.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,95 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { H as f, I as w, G as y, P as o } from "./identifier-Bn0tF6ls.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-xJkZOrdv.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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const P=require("react"),o=require("./identifier-Dax8VlUh.cjs"),d=require("./useFormControl-haP0iPhl.cjs"),T=require("./formControlState-CuX6WjAX.cjs"),w=require("react/jsx-runtime"),p=require("./DefaultPropsProvider-Biv7NHew.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,2 @@
|
|
|
1
|
+
"use strict";const G=require("react"),e=require("./identifier-Dax8VlUh.cjs"),x=require("./utils-BWx1W_q1.cjs"),W=require("./useFormControl-haP0iPhl.cjs"),O=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-Biv7NHew.cjs"),J=require("./formControlState-CuX6WjAX.cjs"),k=require("./memoTheme-BPA1FjB4.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,24 +1,19 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import { F as
|
|
2
|
+
import { H as A, I as D, L, G as P, P as e } from "./identifier-Bn0tF6ls.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-xJkZOrdv.js";
|
|
7
|
+
import { f as X } from "./formControlState-vgaj2ksH.js";
|
|
8
|
+
import { m as _ } from "./memoTheme-CMJVTZEg.js";
|
|
8
9
|
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
10
|
function x(o, r) {
|
|
16
|
-
var
|
|
11
|
+
var n, t, s;
|
|
17
12
|
return /* @__PURE__ */ i.isValidElement(o) && r.indexOf(
|
|
18
13
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
19
14
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
20
15
|
// eslint-disable-next-line no-underscore-dangle
|
|
21
|
-
o.type.muiName ?? ((s = (
|
|
16
|
+
o.type.muiName ?? ((s = (t = (n = o.type) == null ? void 0 : n._payload) == null ? void 0 : t.value) == null ? void 0 : s.muiName)
|
|
22
17
|
) !== -1;
|
|
23
18
|
}
|
|
24
19
|
function Z(o) {
|
|
@@ -27,10 +22,10 @@ function Z(o) {
|
|
|
27
22
|
const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]), ee = (o) => {
|
|
28
23
|
const {
|
|
29
24
|
classes: r,
|
|
30
|
-
margin:
|
|
31
|
-
fullWidth:
|
|
25
|
+
margin: n,
|
|
26
|
+
fullWidth: t
|
|
32
27
|
} = o, s = {
|
|
33
|
-
root: ["root",
|
|
28
|
+
root: ["root", n !== "none" && `margin${L(n)}`, t && "fullWidth"]
|
|
34
29
|
};
|
|
35
30
|
return V(s, Z, r);
|
|
36
31
|
}, oe = E("div", {
|
|
@@ -78,8 +73,8 @@ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
78
73
|
width: "100%"
|
|
79
74
|
}
|
|
80
75
|
}]
|
|
81
|
-
}), re = /* @__PURE__ */ i.forwardRef(function(r,
|
|
82
|
-
const
|
|
76
|
+
}), re = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
77
|
+
const t = B({
|
|
83
78
|
props: r,
|
|
84
79
|
name: "MuiFormControl"
|
|
85
80
|
}), {
|
|
@@ -89,23 +84,23 @@ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
89
84
|
component: c = "div",
|
|
90
85
|
disabled: a = !1,
|
|
91
86
|
error: y = !1,
|
|
92
|
-
focused:
|
|
87
|
+
focused: O,
|
|
93
88
|
fullWidth: g = !1,
|
|
94
89
|
hiddenLabel: F = !1,
|
|
95
|
-
margin:
|
|
90
|
+
margin: h = "none",
|
|
96
91
|
required: m = !1,
|
|
97
92
|
size: l = "medium",
|
|
98
93
|
variant: u = "outlined",
|
|
99
94
|
...v
|
|
100
|
-
} =
|
|
101
|
-
...
|
|
95
|
+
} = t, M = {
|
|
96
|
+
...t,
|
|
102
97
|
color: p,
|
|
103
98
|
component: c,
|
|
104
99
|
disabled: a,
|
|
105
100
|
error: y,
|
|
106
101
|
fullWidth: g,
|
|
107
102
|
hiddenLabel: F,
|
|
108
|
-
margin:
|
|
103
|
+
margin: h,
|
|
109
104
|
required: m,
|
|
110
105
|
size: l,
|
|
111
106
|
variant: u
|
|
@@ -115,7 +110,7 @@ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
115
110
|
if (!x(d, ["Input", "Select"]))
|
|
116
111
|
return;
|
|
117
112
|
const $ = x(d, ["Select"]) ? d.props.input : d;
|
|
118
|
-
$ &&
|
|
113
|
+
$ && J($.props) && (b = !0);
|
|
119
114
|
}), b;
|
|
120
115
|
}), [R, j] = i.useState(() => {
|
|
121
116
|
let b = !1;
|
|
@@ -124,14 +119,14 @@ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
124
119
|
}), b;
|
|
125
120
|
}), [W, S] = i.useState(!1);
|
|
126
121
|
a && W && S(!1);
|
|
127
|
-
const w =
|
|
122
|
+
const w = O !== void 0 && !a ? O : W;
|
|
128
123
|
let N;
|
|
129
124
|
const T = i.useRef(!1);
|
|
130
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(`
|
|
131
126
|
`)), T.current = !0, () => {
|
|
132
127
|
T.current = !1;
|
|
133
128
|
}));
|
|
134
|
-
const
|
|
129
|
+
const G = i.useMemo(() => ({
|
|
135
130
|
adornedStart: q,
|
|
136
131
|
setAdornedStart: H,
|
|
137
132
|
color: p,
|
|
@@ -158,13 +153,13 @@ const ye = D("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDen
|
|
|
158
153
|
required: m,
|
|
159
154
|
variant: u
|
|
160
155
|
}), [q, p, a, y, R, w, g, F, N, m, l, u]);
|
|
161
|
-
return /* @__PURE__ */ I(
|
|
162
|
-
value:
|
|
156
|
+
return /* @__PURE__ */ I(K.Provider, {
|
|
157
|
+
value: G,
|
|
163
158
|
children: /* @__PURE__ */ I(oe, {
|
|
164
159
|
as: c,
|
|
165
160
|
ownerState: M,
|
|
166
161
|
className: P(z.root, f),
|
|
167
|
-
ref:
|
|
162
|
+
ref: n,
|
|
168
163
|
...v,
|
|
169
164
|
children: s
|
|
170
165
|
})
|
|
@@ -256,14 +251,14 @@ function se(o) {
|
|
|
256
251
|
const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), te = (o) => {
|
|
257
252
|
const {
|
|
258
253
|
classes: r,
|
|
259
|
-
color:
|
|
260
|
-
focused:
|
|
254
|
+
color: n,
|
|
255
|
+
focused: t,
|
|
261
256
|
disabled: s,
|
|
262
257
|
error: f,
|
|
263
258
|
filled: p,
|
|
264
259
|
required: c
|
|
265
260
|
} = o, a = {
|
|
266
|
-
root: ["root", `color${L(
|
|
261
|
+
root: ["root", `color${L(n)}`, s && "disabled", f && "error", p && "filled", t && "focused", c && "required"],
|
|
267
262
|
asterisk: ["asterisk", f && "error"]
|
|
268
263
|
};
|
|
269
264
|
return V(a, se, r);
|
|
@@ -315,8 +310,8 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
315
310
|
[`&.${C.error}`]: {
|
|
316
311
|
color: (o.vars || o).palette.error.main
|
|
317
312
|
}
|
|
318
|
-
}))), ie = /* @__PURE__ */ i.forwardRef(function(r,
|
|
319
|
-
const
|
|
313
|
+
}))), ie = /* @__PURE__ */ i.forwardRef(function(r, n) {
|
|
314
|
+
const t = B({
|
|
320
315
|
props: r,
|
|
321
316
|
name: "MuiFormLabel"
|
|
322
317
|
}), {
|
|
@@ -326,16 +321,16 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
326
321
|
component: c = "label",
|
|
327
322
|
disabled: a,
|
|
328
323
|
error: y,
|
|
329
|
-
filled:
|
|
324
|
+
filled: O,
|
|
330
325
|
focused: g,
|
|
331
326
|
required: F,
|
|
332
|
-
...
|
|
333
|
-
} =
|
|
334
|
-
props:
|
|
327
|
+
...h
|
|
328
|
+
} = t, m = Q(), l = X({
|
|
329
|
+
props: t,
|
|
335
330
|
muiFormControl: m,
|
|
336
331
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
337
332
|
}), u = {
|
|
338
|
-
...
|
|
333
|
+
...t,
|
|
339
334
|
color: l.color || "primary",
|
|
340
335
|
component: c,
|
|
341
336
|
disabled: l.disabled,
|
|
@@ -348,8 +343,8 @@ const C = D("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "e
|
|
|
348
343
|
as: c,
|
|
349
344
|
ownerState: u,
|
|
350
345
|
className: P(v.root, f),
|
|
351
|
-
ref:
|
|
352
|
-
...
|
|
346
|
+
ref: n,
|
|
347
|
+
...h,
|
|
353
348
|
children: [s, l.required && /* @__PURE__ */ U(le, {
|
|
354
349
|
ownerState: u,
|
|
355
350
|
"aria-hidden": !0,
|
|
@@ -417,7 +412,6 @@ export {
|
|
|
417
412
|
C as b,
|
|
418
413
|
ne as c,
|
|
419
414
|
se as d,
|
|
420
|
-
be as e,
|
|
421
415
|
ye as f,
|
|
422
416
|
Z as g,
|
|
423
417
|
x as i
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const M=require("react"),e=require("./identifier-Dax8VlUh.cjs"),V=require("./useTheme-BIogn5Me.cjs"),W=require("react/jsx-runtime"),d=require("./utils-CusX8Edy.cjs"),B=require("./useTimeout-CxOQget6.cjs"),J=require("./useForkRef-CTI33h-3.cjs");function Q(n){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const a in n)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(n,a);Object.defineProperty(f,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}return f.default=n,Object.freeze(f)}const T=Q(M);function R(n){return`scale(${n}, ${n**2})`}const U={entering:{opacity:1,transform:R(1)},entered:{opacity:1,transform:"none"}},x=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=T.forwardRef(function(f,a){const{addEndListener:l,appear:v=!0,children:E,easing:b,in:j,onEnter:O,onEntered:D,onEntering:w,onExit:q,onExited:A,onExiting:_,style:P,timeout:s="auto",TransitionComponent:F=d.Transition,...H}=f,L=B.useTimeout(),h=T.useRef(),u=V.useTheme(),y=T.useRef(null),S=J.useForkRef(y,d.getReactElementRef(E),a),c=t=>r=>{if(t){const i=y.current;r===void 0?t(i):t(i,r)}},G=c(w),N=c((t,r)=>{d.reflow(t);const{duration:i,delay:g,easing:o}=d.getTransitionProps({style:P,timeout:s,easing:b},{mode:"enter"});let p;s==="auto"?(p=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=p):p=i,t.style.transition=[u.transitions.create("opacity",{duration:p,delay:g}),u.transitions.create("transform",{duration:x?p:p*.666,delay:g,easing:o})].join(","),O&&O(t,r)}),k=c(D),z=c(_),C=c(t=>{const{duration:r,delay:i,easing:g}=d.getTransitionProps({style:P,timeout:s,easing:b},{mode:"exit"});let o;s==="auto"?(o=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=o):o=r,t.style.transition=[u.transitions.create("opacity",{duration:o,delay:i}),u.transitions.create("transform",{duration:x?o:o*.666,delay:x?i:i||o*.333,easing:g})].join(","),t.style.opacity=0,t.style.transform=R(.75),q&&q(t)}),$=c(A),K=t=>{s==="auto"&&L.start(h.current||0,t),l&&l(y.current,t)};return W.jsx(F,{appear:v,in:j,nodeRef:y,onEnter:N,onEntered:k,onEntering:G,onExit:C,onExited:$,onExiting:z,addEndListener:K,timeout:s==="auto"?null:s,...H,children:(t,r)=>T.cloneElement(E,{style:{opacity:0,transform:R(.75),visibility:t==="exited"&&!j?"hidden":void 0,...U[t],...P,...E.props.style},ref:S,...r})})});process.env.NODE_ENV!=="production"&&(m.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:d.elementAcceptingRef.isRequired,easing:e.PropTypes.oneOfType([e.PropTypes.shape({enter:e.PropTypes.string,exit:e.PropTypes.string}),e.PropTypes.string]),in:e.PropTypes.bool,onEnter:e.PropTypes.func,onEntered:e.PropTypes.func,onEntering:e.PropTypes.func,onExit:e.PropTypes.func,onExited:e.PropTypes.func,onExiting:e.PropTypes.func,style:e.PropTypes.object,timeout:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});m&&(m.muiSupportAuto=!0);exports.Grow=m;
|