@cgi-learning-hub/ui 1.3.5 → 1.4.0-dev.1740498210
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-COarwgJj.cjs +1 -0
- package/dist/{Backdrop-DcDd6WZF.js → Backdrop-DdA12b-5.js} +79 -82
- package/dist/Box-C0mEbUoK.cjs +1 -0
- package/dist/{Box-Byz2BwGf.js → Box-DbRInJ2-.js} +8 -8
- package/dist/Button-1tZRtOeG.cjs +1 -0
- package/dist/Button-rxIER0bL.js +662 -0
- package/dist/ButtonBase-C2rhY3j-.cjs +74 -0
- package/dist/{ButtonBase-DAWDecOk.js → ButtonBase-DzpmdR6N.js} +334 -334
- package/dist/CardContent-BXjX98Jd.cjs +1 -0
- package/dist/CardContent-u1MKaFvP.js +226 -0
- package/dist/{Checkbox-8Rhxpkjl.js → Checkbox-BI77q7eR.js} +26 -27
- package/dist/Checkbox-C6CIGK27.cjs +1 -0
- package/dist/Chip-6-zATjcr.js +521 -0
- package/dist/Chip-CAPnyZyW.cjs +1 -0
- package/dist/{CircularProgress-Kwlef5fX.js → CircularProgress-CDa_qU1a.js} +19 -20
- package/dist/CircularProgress-DTVP6gln.cjs +28 -0
- package/dist/CloseRounded-DQWTEbNz.cjs +1 -0
- package/dist/CloseRounded-DTpqUeWr.js +8 -0
- package/dist/{DatePicker-BS1OatwQ.js → DatePicker-BTTLIBm9.js} +3110 -3600
- package/dist/DatePicker-CJ5-Udgh.cjs +14 -0
- package/dist/DefaultPropsProvider-BcmyIf2H.js +303 -0
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +1 -0
- package/dist/Dialog-CgBiKk8B.js +477 -0
- package/dist/Dialog-Cmv58WoN.cjs +1 -0
- package/dist/DialogContent-CGEdCDYk.cjs +1 -0
- package/dist/{DialogContent-uc65XOEU.js → DialogContent-SYCCu1VD.js} +13 -13
- package/dist/DialogTitle-Dxm2NHs7.cjs +1 -0
- package/dist/{DialogTitle-C8JOi-rq.js → DialogTitle-_yayDwkI.js} +30 -30
- package/dist/Divider-D_LVNUqS.cjs +1 -0
- package/dist/{Divider-KO-E6nU8.js → Divider-Doy31VS6.js} +8 -8
- package/dist/FormLabel-D0gSgwnj.cjs +2 -0
- package/dist/{FormLabel-CfR4bb21.js → FormLabel-DjkS3S9h.js} +130 -133
- package/dist/Grow-D7scX77o.cjs +1 -0
- package/dist/{Grow-CQVPAYvp.js → Grow-DPD-iBAX.js} +46 -43
- package/dist/{IconButton-CekuyD4r.js → IconButton-B4bt0Hp2.js} +134 -67
- package/dist/IconButton-Edo5JMfQ.cjs +2 -0
- package/dist/InputAdornment-C9NrmB_z.cjs +1 -0
- package/dist/{InputAdornment-iU5YnveW.js → InputAdornment-GzDm1zf_.js} +17 -17
- package/dist/{InputBase-BJy3wwFB.js → InputBase-CF5oNEfh.js} +216 -211
- package/dist/InputBase-CgOQ0M4_.cjs +3 -0
- package/dist/Link-CAbb9OCV.cjs +1 -0
- package/dist/{Link-CoQuUM0t.js → Link-CnahHTmK.js} +49 -50
- package/dist/Menu-C-R0FVOB.cjs +7 -0
- package/dist/{Menu-C7tKmcAh.js → Menu-DzBX10ev.js} +56 -57
- package/dist/MenuItem-Cp1_Q0FD.cjs +1 -0
- package/dist/{MenuItem-j8luVUcX.js → MenuItem-DQQ-p2ie.js} +20 -20
- package/dist/{Modal-brWBFdK7.js → Modal-B8JRJWm0.js} +99 -98
- package/dist/Modal-D8lS9C1l.cjs +2 -0
- package/dist/Paper-C-oPGpbI.cjs +2 -0
- package/dist/{Paper-BG4Vk_Um.js → Paper-CbgkVQVx.js} +8 -8
- package/dist/{Popper-DFZ_gRev.js → Popper-1-DDNRPD.js} +241 -243
- package/dist/Popper-uw9PkkLY.cjs +4 -0
- package/dist/{Portal-JEwcozmp.js → Portal-T-1Qk77D.js} +34 -39
- package/dist/Portal-bIKnnWR4.cjs +1 -0
- package/dist/Radio-BxMxeQa-.js +567 -0
- package/dist/Radio-CvCkmq8g.cjs +1 -0
- package/dist/RadioGroup-BLrD8_Lp.js +190 -0
- package/dist/RadioGroup-Ya-I8Lz1.cjs +1 -0
- package/dist/{Select-DmssuG5M.js → Select-B6mYfJPA.js} +419 -402
- package/dist/Select-KMdcuol6.cjs +3 -0
- package/dist/Stack-C6v70ALA.cjs +1 -0
- package/dist/{Stack-BzTJdRGj.js → Stack-aCUdCw1A.js} +60 -105
- package/dist/Switch-BOpqo-TS.js +329 -0
- package/dist/Switch-DF4bSjED.cjs +1 -0
- package/dist/SwitchBase-7zONZyYP.cjs +1 -0
- package/dist/{SwitchBase-Dlth5_F7.js → SwitchBase-BAjfatYA.js} +35 -36
- package/dist/{Tabs-CYbeTnJk.js → Tabs-CrWcC5nJ.js} +299 -301
- package/dist/Tabs-Dploq_37.cjs +4 -0
- package/dist/TextField-BC7GvvHh.cjs +1 -0
- package/dist/{TextField-Cri5Gxa7.js → TextField-CAmc1Qpg.js} +31 -30
- package/dist/ToggleButtonGroup-BCVgsika.cjs +140 -0
- package/dist/ToggleButtonGroup-ekxVeQCc.js +10461 -0
- package/dist/{Tooltip-BhAHhzKz.js → Tooltip-BvVFPsVR.js} +32 -33
- package/dist/Tooltip-CWA-GKdK.cjs +4 -0
- package/dist/{TransitionGroupContext-DMJLhY9-.js → TransitionGroupContext-DbLioz_6.js} +7 -7
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +1 -0
- package/dist/{Typography-DBwTr_ix.js → Typography-CE8fQQ8B.js} +15 -16
- package/dist/Typography-DEAE8-8u.cjs +1 -0
- package/dist/components/Alert/Alert.es.js +13 -4
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.es.js +12 -325
- 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/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +12 -14
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +22 -19
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -0
- package/dist/components/FileList/FileIcon.d.ts +3 -0
- package/dist/components/FileList/FileIcon.es.js +56 -0
- package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
- package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
- package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.d.ts +5 -3
- package/dist/components/FileList/FileList.es.js +22 -15
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.d.ts +9 -5
- package/dist/components/FileList/FileListItem.es.js +117 -24
- package/dist/components/FileList/utils.cjs.js +1 -0
- package/dist/components/FileList/utils.d.ts +2 -0
- package/dist/components/FileList/utils.es.js +13 -0
- 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 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +79 -54
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +1 -2
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +1 -2
- 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 +12 -10
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.d.ts +2 -2
- package/dist/components/QueryError/QueryError.es.js +14 -14
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -0
- package/dist/components/ResourceCard/ResourceCard.d.ts +24 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +128 -0
- package/dist/components/ResourceCard/index.cjs.js +1 -0
- package/dist/components/ResourceCard/index.d.ts +2 -0
- package/dist/components/ResourceCard/index.es.js +4 -0
- package/dist/components/ResourceCard/style.cjs.js +1 -0
- package/dist/components/ResourceCard/style.es.js +125 -0
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -2
- 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 +35 -0
- package/dist/components/index.es.js +348 -294
- 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 -1
- package/dist/components/stories/Card.stories.es.js +17 -168
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +5 -5
- package/dist/components/stories/Chip.stories.cjs.js +1 -0
- package/dist/components/stories/Chip.stories.d.ts +10 -0
- package/dist/components/stories/Chip.stories.es.js +77 -0
- 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 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +5 -5
- package/dist/components/stories/FileList.stories.cjs.js +8 -1
- package/dist/components/stories/FileList.stories.es.js +144 -20
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +16 -340
- 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 +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +16 -16
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- 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 +19 -115
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -0
- package/dist/components/stories/ResourceCard.stories.d.ts +9 -0
- package/dist/components/stories/ResourceCard.stories.es.js +141 -0
- 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 +14 -14
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +3 -3
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-C8nGcfF4.js → createSvgIcon-CCejzj0C.js} +49 -48
- package/dist/createSvgIcon-Dn4BBPej.cjs +1 -0
- package/dist/{dividerClasses-nh2-hkQB.js → dividerClasses-DN9F43tq.js} +3 -3
- package/dist/dividerClasses-Zk1QmrZw.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-D-5kcohU.js → elementTypeAcceptingRef-CrAqn_fc.js} +1 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +1 -0
- package/dist/extendSxProp-BB6jYY1x.cjs +1 -0
- package/dist/{extendSxProp-C2ff0oGc.js → extendSxProp-DFv-GFt5.js} +3 -3
- package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
- package/dist/hooks/lazySvgImport.d.ts +1 -1
- package/dist/identifier-5n4d7br9.cjs +75 -0
- package/dist/identifier-D58rA1gM.js +3267 -0
- package/dist/index-5BAFzrXD.cjs +1 -0
- package/dist/{index-CwvpOCso.js → index-BGS2uu2L.js} +29 -29
- package/dist/index-CFm-oAsb.cjs +1 -0
- package/dist/index-CJW5gB6d.cjs +5 -0
- package/dist/{index-BCnPLuqJ.js → index-ClXCinr6.js} +22 -22
- package/dist/index-DwHI-aa0.js +45 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +348 -294
- package/dist/{memoTheme-Bdg0Y_2O.cjs → memoTheme-C8EfvlY1.cjs} +1 -1
- package/dist/{memoTheme-D7Fyh_3C.js → memoTheme-DyiN-Awd.js} +1 -1
- package/dist/{refType-DKYKROQk.js → refType-B86yTZra.js} +1 -1
- package/dist/refType-CjW6JOBA.cjs +1 -0
- package/dist/{mergeSlotProps-tUJEcwVu.js → resolveComponentProps-0QnU-fDT.js} +7 -7
- package/dist/resolveComponentProps-D0sgyopa.cjs +1 -0
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlot-CZNcsPv1.js +48 -0
- package/dist/useSlot-CyXLaLc2.cjs +1 -0
- package/dist/useTheme-Bi8B4Op1.cjs +1 -0
- package/dist/useTheme-C_2IF7CS.cjs +1 -0
- package/dist/useTheme-Clhsq4HW.js +11 -0
- package/dist/{useTheme-_xyy-wul.js → useTheme-DxxkErdZ.js} +1 -1
- package/dist/{useThemeProps-BySkSe-M.js → useThemeProps-BGZrRNnL.js} +2 -2
- package/dist/useThemeProps-C6qniHmV.js +17 -0
- package/dist/{useThemeProps-u_ESzK2f.cjs → useThemeProps-CpNQz1Ap.cjs} +1 -1
- package/dist/useThemeProps-Dq3GRYN1.cjs +1 -0
- package/dist/utils-D4if93Yl.cjs +1 -0
- package/dist/{utils-C6c4fj7D.js → utils-SrEVp7Pm.js} +41 -41
- package/package.json +9 -9
- package/dist/Backdrop-CvufxHMY.cjs +0 -1
- package/dist/Box-mP2Th61z.cjs +0 -1
- package/dist/Button-BH9MUvmz.cjs +0 -1
- package/dist/Button-BnNYfQ3E.js +0 -484
- package/dist/ButtonBase-BXtyQVDC.cjs +0 -74
- package/dist/Card-AJG0TUOx.js +0 -74
- package/dist/Card-NqCXQteq.cjs +0 -1
- package/dist/Checkbox-DYrDbdy1.cjs +0 -1
- package/dist/CircularProgress-BByrCLjv.cjs +0 -28
- package/dist/DatePicker-7-4p3Vtj.cjs +0 -14
- package/dist/DefaultPropsProvider-3KMGupjb.cjs +0 -17
- package/dist/DefaultPropsProvider-CvJPQJmL.js +0 -454
- package/dist/Delete-BkZN7Xu5.js +0 -8
- package/dist/Delete-D1EiKoL5.cjs +0 -1
- package/dist/Dialog-D_lS4J_M.js +0 -415
- package/dist/Dialog-yOrNcHbG.cjs +0 -1
- package/dist/DialogContent-Dj_OjLZ6.cjs +0 -1
- package/dist/DialogTitle-BboPDaoB.cjs +0 -1
- package/dist/Divider-CcrM3lNn.cjs +0 -1
- package/dist/FormControlLabel-Bb6Ul-qQ.cjs +0 -1
- package/dist/FormControlLabel-BmrKQtQA.js +0 -262
- package/dist/FormGroup-CbczEc6e.js +0 -95
- package/dist/FormGroup-Y3P2AG0i.cjs +0 -1
- package/dist/FormLabel-D1uvEhsH.cjs +0 -2
- package/dist/Grow-CUBJs6WD.cjs +0 -1
- package/dist/IconButton-CJfzspZK.cjs +0 -2
- package/dist/InputAdornment-Cq0WhPxF.cjs +0 -1
- package/dist/InputBase-s1fk8TB4.cjs +0 -3
- package/dist/Link-CWczkFp0.cjs +0 -1
- package/dist/Menu-Bsx8PA-q.cjs +0 -7
- package/dist/MenuItem-BZ_EVaBq.cjs +0 -1
- package/dist/Modal-DImrEpYJ.cjs +0 -2
- package/dist/Paper-Cr56xkCr.cjs +0 -2
- package/dist/Popper-YT5WAMV-.cjs +0 -4
- package/dist/Portal-DF0RKOcD.cjs +0 -1
- package/dist/Radio-CVAEGXKi.cjs +0 -1
- package/dist/Radio-DGhot3Cd.js +0 -313
- package/dist/Select-CwAWNiiv.cjs +0 -3
- package/dist/Stack-Yq6rb7iK.cjs +0 -1
- package/dist/SwitchBase-DjIY_KWB.cjs +0 -1
- package/dist/TableSortLabel-BsgRD4k4.js +0 -6328
- package/dist/TableSortLabel-D0N3e3cP.cjs +0 -98
- package/dist/Tabs-KG4VWw-1.cjs +0 -4
- package/dist/TextField-BI9KVqjC.cjs +0 -1
- package/dist/Tooltip-DhDtvULK.cjs +0 -4
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +0 -1
- package/dist/Typography-DfRMDngd.cjs +0 -1
- package/dist/capitalize-B3GG7Wn6.cjs +0 -1
- package/dist/capitalize-CkF8kU4n.js +0 -9
- package/dist/createSvgIcon--rEClVU7.cjs +0 -1
- package/dist/dividerClasses-CCAY3Pnr.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DZsNbuLU.cjs +0 -1
- package/dist/extendSxProp-apyK-EBz.cjs +0 -1
- package/dist/generateUtilityClasses-B_H9HEmg.cjs +0 -59
- package/dist/generateUtilityClasses-Bssl7BA_.js +0 -3145
- package/dist/index-Aa73Kpym.cjs +0 -1
- package/dist/index-ChM1Ett8.cjs +0 -5
- package/dist/index-Cw0GDedk.cjs +0 -17
- package/dist/index-DXD5J5Eu.js +0 -186
- package/dist/mergeSlotProps-DuV-LTW7.cjs +0 -1
- package/dist/refType-CoaxQOPt.cjs +0 -1
- package/dist/useSlot-BTpHG6jf.js +0 -50
- package/dist/useSlot-CByalpSD.cjs +0 -1
- package/dist/useSlotProps-B31YQlzb.js +0 -45
- package/dist/useSlotProps-BVSAQTNl.cjs +0 -1
- package/dist/useTheme-Cy5kyKJF.cjs +0 -1
- package/dist/useTheme-Dukx-__T.cjs +0 -1
- package/dist/useTheme-DyaNKf4e.js +0 -11
- package/dist/useThemeProps-CdV_QwDl.cjs +0 -1
- package/dist/useThemeProps-CwEQ4bv2.js +0 -24
- package/dist/utils-vmyQ2IaS.cjs +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { H as C, I as v, G as g, P as o } from "./identifier-D58rA1gM.js";
|
|
3
|
+
import { b as M } from "./Radio-BxMxeQa-.js";
|
|
4
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
5
|
+
import { u as S } from "./useControlled-BYdyS7Pn.js";
|
|
6
|
+
import { u as P } from "./useForkRef-C_4o__cU.js";
|
|
7
|
+
import { u as U } from "./useId-CK6Kn3Tn.js";
|
|
8
|
+
import { u as V } from "./useFormControl-CatNKXAi.js";
|
|
9
|
+
import { f as D } from "./formControlState-vgaj2ksH.js";
|
|
10
|
+
import { u as O, s as T, c as h } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
11
|
+
function j(r) {
|
|
12
|
+
return v("MuiFormGroup", r);
|
|
13
|
+
}
|
|
14
|
+
const Q = C("MuiFormGroup", ["root", "row", "error"]), E = (r) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: e,
|
|
17
|
+
row: s,
|
|
18
|
+
error: t
|
|
19
|
+
} = r;
|
|
20
|
+
return h({
|
|
21
|
+
root: ["root", s && "row", t && "error"]
|
|
22
|
+
}, j, e);
|
|
23
|
+
}, I = T("div", {
|
|
24
|
+
name: "MuiFormGroup",
|
|
25
|
+
slot: "Root",
|
|
26
|
+
overridesResolver: (r, e) => {
|
|
27
|
+
const {
|
|
28
|
+
ownerState: s
|
|
29
|
+
} = r;
|
|
30
|
+
return [e.root, s.row && e.row];
|
|
31
|
+
}
|
|
32
|
+
})({
|
|
33
|
+
display: "flex",
|
|
34
|
+
flexDirection: "column",
|
|
35
|
+
flexWrap: "wrap",
|
|
36
|
+
variants: [{
|
|
37
|
+
props: {
|
|
38
|
+
row: !0
|
|
39
|
+
},
|
|
40
|
+
style: {
|
|
41
|
+
flexDirection: "row"
|
|
42
|
+
}
|
|
43
|
+
}]
|
|
44
|
+
}), F = /* @__PURE__ */ l.forwardRef(function(e, s) {
|
|
45
|
+
const t = O({
|
|
46
|
+
props: e,
|
|
47
|
+
name: "MuiFormGroup"
|
|
48
|
+
}), {
|
|
49
|
+
className: n,
|
|
50
|
+
row: i = !1,
|
|
51
|
+
...p
|
|
52
|
+
} = t, m = V(), u = D({
|
|
53
|
+
props: t,
|
|
54
|
+
muiFormControl: m,
|
|
55
|
+
states: ["error"]
|
|
56
|
+
}), c = {
|
|
57
|
+
...t,
|
|
58
|
+
row: i,
|
|
59
|
+
error: u.error
|
|
60
|
+
}, f = E(c);
|
|
61
|
+
return /* @__PURE__ */ w(I, {
|
|
62
|
+
className: g(f.root, n),
|
|
63
|
+
ownerState: c,
|
|
64
|
+
ref: s,
|
|
65
|
+
...p
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
69
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
70
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
71
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
72
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
73
|
+
/**
|
|
74
|
+
* The content of the component.
|
|
75
|
+
*/
|
|
76
|
+
children: o.node,
|
|
77
|
+
/**
|
|
78
|
+
* Override or extend the styles applied to the component.
|
|
79
|
+
*/
|
|
80
|
+
classes: o.object,
|
|
81
|
+
/**
|
|
82
|
+
* @ignore
|
|
83
|
+
*/
|
|
84
|
+
className: o.string,
|
|
85
|
+
/**
|
|
86
|
+
* Display group of elements in a compact row.
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
row: o.bool,
|
|
90
|
+
/**
|
|
91
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
92
|
+
*/
|
|
93
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
94
|
+
});
|
|
95
|
+
function k(r) {
|
|
96
|
+
return v("MuiRadioGroup", r);
|
|
97
|
+
}
|
|
98
|
+
const X = C("MuiRadioGroup", ["root", "row", "error"]), q = (r) => {
|
|
99
|
+
const {
|
|
100
|
+
classes: e,
|
|
101
|
+
row: s,
|
|
102
|
+
error: t
|
|
103
|
+
} = r;
|
|
104
|
+
return h({
|
|
105
|
+
root: ["root", s && "row", t && "error"]
|
|
106
|
+
}, k, e);
|
|
107
|
+
}, H = /* @__PURE__ */ l.forwardRef(function(e, s) {
|
|
108
|
+
const {
|
|
109
|
+
// private
|
|
110
|
+
// eslint-disable-next-line react/prop-types
|
|
111
|
+
actions: t,
|
|
112
|
+
children: n,
|
|
113
|
+
className: i,
|
|
114
|
+
defaultValue: p,
|
|
115
|
+
name: m,
|
|
116
|
+
onChange: u,
|
|
117
|
+
value: c,
|
|
118
|
+
...f
|
|
119
|
+
} = e, d = l.useRef(null), x = q(e), [y, G] = S({
|
|
120
|
+
controlled: c,
|
|
121
|
+
default: p,
|
|
122
|
+
name: "RadioGroup"
|
|
123
|
+
});
|
|
124
|
+
l.useImperativeHandle(t, () => ({
|
|
125
|
+
focus: () => {
|
|
126
|
+
let a = d.current.querySelector("input:not(:disabled):checked");
|
|
127
|
+
a || (a = d.current.querySelector("input:not(:disabled)")), a && a.focus();
|
|
128
|
+
}
|
|
129
|
+
}), []);
|
|
130
|
+
const N = P(s, d), R = U(m), b = l.useMemo(() => ({
|
|
131
|
+
name: R,
|
|
132
|
+
onChange(a) {
|
|
133
|
+
G(a.target.value), u && u(a, a.target.value);
|
|
134
|
+
},
|
|
135
|
+
value: y
|
|
136
|
+
}), [R, u, G, y]);
|
|
137
|
+
return /* @__PURE__ */ w(M.Provider, {
|
|
138
|
+
value: b,
|
|
139
|
+
children: /* @__PURE__ */ w(F, {
|
|
140
|
+
role: "radiogroup",
|
|
141
|
+
ref: N,
|
|
142
|
+
className: g(x.root, i),
|
|
143
|
+
...f,
|
|
144
|
+
children: n
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
149
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
150
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
151
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
152
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
153
|
+
/**
|
|
154
|
+
* The content of the component.
|
|
155
|
+
*/
|
|
156
|
+
children: o.node,
|
|
157
|
+
/**
|
|
158
|
+
* @ignore
|
|
159
|
+
*/
|
|
160
|
+
className: o.string,
|
|
161
|
+
/**
|
|
162
|
+
* The default value. Use when the component is not controlled.
|
|
163
|
+
*/
|
|
164
|
+
defaultValue: o.any,
|
|
165
|
+
/**
|
|
166
|
+
* The name used to reference the value of the control.
|
|
167
|
+
* If you don't provide this prop, it falls back to a randomly generated name.
|
|
168
|
+
*/
|
|
169
|
+
name: o.string,
|
|
170
|
+
/**
|
|
171
|
+
* Callback fired when a radio button is selected.
|
|
172
|
+
*
|
|
173
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
174
|
+
* @param {string} value The value of the selected radio button.
|
|
175
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
176
|
+
*/
|
|
177
|
+
onChange: o.func,
|
|
178
|
+
/**
|
|
179
|
+
* Value of the selected radio button. The DOM API casts this to a string.
|
|
180
|
+
*/
|
|
181
|
+
value: o.any
|
|
182
|
+
});
|
|
183
|
+
export {
|
|
184
|
+
F,
|
|
185
|
+
H as R,
|
|
186
|
+
k as a,
|
|
187
|
+
Q as f,
|
|
188
|
+
j as g,
|
|
189
|
+
X as r
|
|
190
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const h=require("react"),o=require("./identifier-5n4d7br9.cjs"),q=require("./Radio-CvCkmq8g.cjs"),C=require("react/jsx-runtime"),j=require("./useControlled-Ysk4KqoX.cjs"),N=require("./useForkRef-CTI33h-3.cjs"),O=require("./useId-DNXtOFeX.cjs"),S=require("./useFormControl-haP0iPhl.cjs"),U=require("./formControlState-CuX6WjAX.cjs"),i=require("./DefaultPropsProvider-QmkL7lbM.cjs");function D(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const l=D(h);function g(e){return o.generateUtilityClass("MuiFormGroup",e)}const M=o.generateUtilityClasses("MuiFormGroup",["root","row","error"]),V=e=>{const{classes:r,row:s,error:t}=e,a={root:["root",s&&"row",t&&"error"]};return i.composeClasses(a,g,r)},_=i.styled("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.row&&r.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),P=l.forwardRef(function(r,s){const t=i.useDefaultProps({props:r,name:"MuiFormGroup"}),{className:a,row:p=!1,...d}=t,f=S.useFormControl(),u=U.formControlState({props:t,muiFormControl:f,states:["error"]}),c={...t,row:p,error:u.error},y=V(c);return C.jsx(_,{className:o.clsx(y.root,a),ownerState:c,ref:s,...d})});process.env.NODE_ENV!=="production"&&(P.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])});function w(e){return o.generateUtilityClass("MuiRadioGroup",e)}const k=o.generateUtilityClasses("MuiRadioGroup",["root","row","error"]),E=e=>{const{classes:r,row:s,error:t}=e,a={root:["root",s&&"row",t&&"error"]};return i.composeClasses(a,w,r)},v=l.forwardRef(function(r,s){const{actions:t,children:a,className:p,defaultValue:d,name:f,onChange:u,value:c,...y}=r,m=l.useRef(null),F=E(r),[G,R]=j.useControlled({controlled:c,default:d,name:"RadioGroup"});l.useImperativeHandle(t,()=>({focus:()=>{let n=m.current.querySelector("input:not(:disabled):checked");n||(n=m.current.querySelector("input:not(:disabled)")),n&&n.focus()}}),[]);const b=N.useForkRef(s,m),T=O.useId(f),x=l.useMemo(()=>({name:T,onChange(n){R(n.target.value),u&&u(n,n.target.value)},value:G}),[T,u,R,G]);return C.jsx(q.RadioGroupContext.Provider,{value:x,children:C.jsx(P,{role:"radiogroup",ref:b,className:o.clsx(F.root,p),...y,children:a})})});process.env.NODE_ENV!=="production"&&(v.propTypes={children:o.PropTypes.node,className:o.PropTypes.string,defaultValue:o.PropTypes.any,name:o.PropTypes.string,onChange:o.PropTypes.func,value:o.PropTypes.any});exports.FormGroup=P;exports.RadioGroup=v;exports.formGroupClasses=M;exports.getFormGroupUtilityClass=g;exports.getRadioGroupUtilityClass=w;exports.radioGroupClasses=k;
|