@cgi-learning-hub/ui 1.4.0 → 1.5.0-dev.1743511847
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/Alert-BoWYecXr.cjs +1 -0
- package/dist/Alert-D31xXLY_.js +452 -0
- package/dist/Autocomplete-C4BeJqHd.js +1829 -0
- package/dist/Autocomplete-QNC3IpEu.cjs +6 -0
- package/dist/Backdrop-A963bP01.cjs +1 -0
- package/dist/{Backdrop-DdA12b-5.js → Backdrop-Cwv7IqH8.js} +20 -19
- package/dist/{Box-DbRInJ2-.js → Box--MaxIKbn.js} +7 -7
- package/dist/Box-ge7hyt34.cjs +1 -0
- package/dist/Button-BkHaHEAp.cjs +1 -0
- package/dist/{Button-rxIER0bL.js → Button-kOBqHwsO.js} +147 -113
- package/dist/{ButtonBase-C2rhY3j-.cjs → ButtonBase-DIunRlDS.cjs} +1 -1
- package/dist/{ButtonBase-DzpmdR6N.js → ButtonBase-DYKChljK.js} +4 -4
- package/dist/{CardContent-u1MKaFvP.js → CardContent-BHHejD6b.js} +3 -3
- package/dist/CardContent-VzvauMnh.cjs +1 -0
- package/dist/Checkbox-CMW4C-5f.cjs +1 -0
- package/dist/{Checkbox-BI77q7eR.js → Checkbox-Vfd8tExZ.js} +23 -22
- package/dist/{Chip-6-zATjcr.js → Chip-CVtoGCpW.js} +50 -49
- package/dist/Chip-DnYryF72.cjs +1 -0
- package/dist/CircularProgress-4dhoIFaN.cjs +28 -0
- package/dist/{CircularProgress-CDa_qU1a.js → CircularProgress-CAuw8noH.js} +14 -13
- package/dist/Close-D88q8bP4.js +9 -0
- package/dist/Close-gPyOHzhk.cjs +1 -0
- package/dist/{CloseRounded-DQWTEbNz.cjs → CloseRounded-D4Rf4Yq-.cjs} +1 -1
- package/dist/{CloseRounded-DTpqUeWr.js → CloseRounded-DXBTbQ8P.js} +1 -1
- package/dist/CustomTreeItem-DhiQBmjt.js +1341 -0
- package/dist/CustomTreeItem-DvuxaLU3.cjs +4 -0
- package/dist/DatePicker-BoM1keBS.cjs +14 -0
- package/dist/{DatePicker-BTTLIBm9.js → DatePicker-Cy18dRtr.js} +3032 -3133
- package/dist/DefaultPropsProvider-DhsUT47i.cjs +1 -0
- package/dist/{DefaultPropsProvider-BcmyIf2H.js → DefaultPropsProvider-ZFZfNXyN.js} +24 -24
- package/dist/Delete-abpyrxF4.cjs +1 -0
- package/dist/Delete-p7eKZ0Bk.js +8 -0
- package/dist/{Dialog-CgBiKk8B.js → Dialog-BdWhnP_F.js} +17 -16
- package/dist/Dialog-LbgQSeqb.cjs +1 -0
- package/dist/{DialogContent-SYCCu1VD.js → DialogContent-CazuB6uB.js} +3 -3
- package/dist/DialogContent-DBuTlPHe.cjs +1 -0
- package/dist/{DialogTitle-_yayDwkI.js → DialogTitle-B98lWCsF.js} +5 -5
- package/dist/DialogTitle-DTwr1uD3.cjs +1 -0
- package/dist/{Divider-Doy31VS6.js → Divider-Bw612Jal.js} +8 -8
- package/dist/Divider-D3QqAaaL.cjs +1 -0
- package/dist/Folder-DbtkTNEB.js +8 -0
- package/dist/Folder-NcfJgwuN.cjs +1 -0
- package/dist/FormLabel-C_MIE5B5.cjs +2 -0
- package/dist/{FormLabel-DjkS3S9h.js → FormLabel-Sb7RO6Cr.js} +68 -76
- package/dist/Grow-B05P--4W.cjs +1 -0
- package/dist/{Grow-DPD-iBAX.js → Grow-CYTfRVAz.js} +14 -13
- package/dist/{IconButton-B4bt0Hp2.js → IconButton-BfOmPY_b.js} +27 -26
- package/dist/IconButton-Czd8uNt8.cjs +2 -0
- package/dist/{InputAdornment-GzDm1zf_.js → InputAdornment-Bq0xmUe9.js} +9 -8
- package/dist/InputAdornment-OOctzn5p.cjs +1 -0
- package/dist/InputBase-B7ajOn6r.cjs +3 -0
- package/dist/{InputBase-CF5oNEfh.js → InputBase-BemCmQtU.js} +41 -40
- package/dist/{Link-CnahHTmK.js → Link-Dlyo6tWB.js} +11 -10
- package/dist/Link-Dq7AP0Tt.cjs +1 -0
- package/dist/List-CBdWJkIa.cjs +1 -0
- package/dist/List-CV_4VCwT.js +130 -0
- package/dist/ListItem--Hj6zz4n.js +423 -0
- package/dist/ListItem-B2M8rFxh.cjs +1 -0
- package/dist/ListItemText-BeWOS4WA.js +928 -0
- package/dist/ListItemText-Yjh9Zoqh.cjs +1 -0
- package/dist/{Menu-DzBX10ev.js → Menu-BCmTJEi8.js} +302 -424
- package/dist/Menu-BHYjNOvv.cjs +7 -0
- package/dist/MenuItem-CpMKEsli.cjs +1 -0
- package/dist/{MenuItem-DQQ-p2ie.js → MenuItem-CyARn9vd.js} +72 -77
- package/dist/{Modal-B8JRJWm0.js → Modal-4sDxsZsm.js} +8 -8
- package/dist/{Modal-D8lS9C1l.cjs → Modal-BvhfWPvw.cjs} +2 -2
- package/dist/MoreVert-RHtym60m.cjs +1 -0
- package/dist/MoreVert-WFvQcAf-.js +8 -0
- package/dist/Paper-CRHSfFG5.cjs +2 -0
- package/dist/{Paper-CbgkVQVx.js → Paper-D9hEGUDL.js} +4 -4
- package/dist/Popper-9z2UJQ7R.cjs +4 -0
- package/dist/{Popper-1-DDNRPD.js → Popper-BxJaaK-J.js} +31 -30
- package/dist/Portal-BkkZn65J.cjs +1 -0
- package/dist/{Portal-T-1Qk77D.js → Portal-jqIJ9-dR.js} +2 -2
- package/dist/Radio-Cj3mKEAT.cjs +1 -0
- package/dist/{Radio-BxMxeQa-.js → Radio-Dm7GnmRB.js} +9 -8
- package/dist/RadioGroup-D-aGM7xY.cjs +1 -0
- package/dist/{RadioGroup-BLrD8_Lp.js → RadioGroup-b8jmEUAw.js} +3 -3
- package/dist/Select--p-t3vFP.cjs +3 -0
- package/dist/{Select-B6mYfJPA.js → Select-B9udggeF.js} +49 -48
- package/dist/{Stack-aCUdCw1A.js → Stack-Ba2nYyYI.js} +104 -59
- package/dist/Stack-DVHYuvhX.cjs +1 -0
- package/dist/Switch--DHfiMMI.cjs +1 -0
- package/dist/{Switch-BOpqo-TS.js → Switch-D9wihGbW.js} +11 -10
- package/dist/SwitchBase-D6Hcty5-.cjs +1 -0
- package/dist/{SwitchBase-BAjfatYA.js → SwitchBase-hLPPZJfx.js} +21 -20
- package/dist/Tab-CoQ2exTs.cjs +4 -0
- package/dist/Tab-qZjEW6Cy.js +1394 -0
- package/dist/TextField-1N_cJeHB.cjs +1 -0
- package/dist/{TextField-CAmc1Qpg.js → TextField-B6qm5aBz.js} +18 -17
- package/dist/ToggleButtonGroup-Bz445DUg.cjs +137 -0
- package/dist/ToggleButtonGroup-DB7FU2Sy.js +7716 -0
- package/dist/{Tooltip-BvVFPsVR.js → Tooltip-UBiscQPm.js} +30 -29
- package/dist/Tooltip-arPEgWU6.cjs +4 -0
- package/dist/{Typography-CE8fQQ8B.js → Typography-BJPk_mTw.js} +13 -12
- package/dist/Typography-Daq_a9_t.cjs +1 -0
- package/dist/capitalize-CzyXIc5e.cjs +1 -0
- package/dist/capitalize-R3VbHRUv.js +9 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/Alert.es.js +5 -20
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +2 -2
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -3
- 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 +2 -2
- 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 +33 -30
- package/dist/components/Dropzone/types.cjs.js +1 -0
- package/dist/components/Dropzone/types.d.ts +8 -0
- package/dist/components/Dropzone/types.es.js +1 -0
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +10 -2
- package/dist/components/EmptyState/EmptyState.es.js +26 -26
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +14 -13
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
- package/dist/components/FolderCard/FolderCard.d.ts +11 -0
- package/dist/components/FolderCard/FolderCard.es.js +79 -0
- package/dist/components/FolderCard/index.cjs.js +1 -0
- package/dist/components/FolderCard/index.d.ts +2 -0
- package/dist/components/FolderCard/index.es.js +4 -0
- package/dist/components/FolderCard/styles.cjs.js +1 -0
- package/dist/components/FolderCard/styles.d.ts +20 -0
- package/dist/components/FolderCard/styles.es.js +23 -0
- package/dist/components/FolderCard/types.cjs.js +1 -0
- package/dist/components/FolderCard/types.d.ts +3 -0
- package/dist/components/FolderCard/types.es.js +14 -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 +54 -51
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +8 -9
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +4 -5
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
- package/dist/components/PasswordInput/PasswordInput.es.js +28 -37
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +23 -20
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -23
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -0
- package/dist/components/TreeView/TreeView.d.ts +4 -0
- package/dist/components/TreeView/TreeView.es.js +1892 -0
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +6 -0
- package/dist/components/TreeView/components/CustomTreeItem.es.js +8 -0
- package/dist/components/TreeView/index.cjs.js +1 -0
- package/dist/components/TreeView/index.d.ts +2 -0
- package/dist/components/TreeView/index.es.js +6 -0
- package/dist/components/TreeView/style.cjs.js +1 -0
- package/dist/components/TreeView/style.es.js +35 -0
- package/dist/components/TreeView/types.cjs.js +1 -0
- package/dist/components/TreeView/types.d.ts +43 -0
- package/dist/components/TreeView/types.es.js +4 -0
- package/dist/components/TreeView/utils.cjs.js +1 -0
- package/dist/components/TreeView/utils.d.ts +6 -0
- package/dist/components/TreeView/utils.es.js +50 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +12 -1
- package/dist/components/index.es.js +368 -344
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +3 -0
- package/dist/components/stories/Autocomplete.stories.d.ts +6 -0
- package/dist/components/stories/Autocomplete.stories.es.js +62 -0
- 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 +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- 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 +1 -1
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
- package/dist/components/stories/EmptyState.stories.es.js +23 -7
- package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
- package/dist/components/stories/FolderCard.stories.d.ts +7 -0
- package/dist/components/stories/FolderCard.stories.es.js +71 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- 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 +21 -184
- 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 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +69 -0
- package/dist/components/stories/TreeView.stories.d.ts +14 -0
- package/dist/components/stories/TreeView.stories.es.js +857 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DjTQ6UHI.cjs +1 -0
- package/dist/{createSvgIcon-CCejzj0C.js → createSvgIcon-Dk3n_NBz.js} +19 -18
- package/dist/{dividerClasses-DN9F43tq.js → dividerClasses-BbwdfVtE.js} +1 -1
- package/dist/dividerClasses-sb3FZiiC.cjs +1 -0
- package/dist/elementTypeAcceptingRef-CFAbKDTa.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-CrAqn_fc.js → elementTypeAcceptingRef-Cqa8qLE7.js} +1 -1
- package/dist/extendSxProp-DG37PMfH.cjs +1 -0
- package/dist/{extendSxProp-DFv-GFt5.js → extendSxProp-u_I5DXAE.js} +1 -1
- package/dist/generateUtilityClasses-B90hrzv4.cjs +75 -0
- package/dist/{identifier-D58rA1gM.js → generateUtilityClasses-SJ1QPUag.js} +867 -835
- package/dist/getReactElementRef-Blb86d4n.cjs +1 -0
- package/dist/getReactElementRef-DMv8jOEv.js +31 -0
- package/dist/{index-BGS2uu2L.js → index-8ZjeXGh4.js} +1 -1
- package/dist/index-C4sHlmg5.cjs +1 -0
- package/dist/index-D5we-BQd.cjs +1 -0
- package/dist/{index-ClXCinr6.js → index-DBDGMwpZ.js} +4 -4
- package/dist/index-DzunNw1H.cjs +5 -0
- package/dist/index-uoOKg_7A.js +22 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +368 -344
- package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/listItemTextClasses-Bh3BazNw.cjs +1 -0
- package/dist/listItemTextClasses-v8jRy934.js +9 -0
- package/dist/{memoTheme-DyiN-Awd.js → memoTheme-C9GnPENe.js} +1 -1
- package/dist/{memoTheme-C8EfvlY1.cjs → memoTheme-D8ch-Aus.cjs} +1 -1
- package/dist/refType-B7SJEv5t.cjs +1 -0
- package/dist/{refType-B86yTZra.js → refType-D-xpF9tL.js} +1 -1
- package/dist/{resolveComponentProps-0QnU-fDT.js → resolveComponentProps-BFteOhbz.js} +1 -1
- package/dist/resolveComponentProps-ZXhc99MU.cjs +1 -0
- package/dist/{useSlot-CZNcsPv1.js → useSlot-C73TTXlD.js} +1 -1
- package/dist/{useSlot-CyXLaLc2.cjs → useSlot-bB9P8y2N.cjs} +1 -1
- package/dist/useSlotProps-CuY7blPC.cjs +1 -0
- package/dist/useSlotProps-Cz_jXqU-.js +25 -0
- package/dist/useTheme-BI9bHTEJ.cjs +1 -0
- package/dist/{useTheme-DxxkErdZ.js → useTheme-C0OFZcd4.js} +1 -1
- package/dist/useTheme-C9d_IgK4.cjs +1 -0
- package/dist/useTheme-EvTdEPuY.js +11 -0
- package/dist/useThemeProps-DUEuJR3m.cjs +1 -0
- package/dist/{useThemeProps-BGZrRNnL.js → useThemeProps-ch-ZdCsr.js} +2 -2
- package/dist/useThemeProps-jdOTP9Fb.js +17 -0
- package/dist/{useThemeProps-CpNQz1Ap.cjs → useThemeProps-qlNnBrri.cjs} +1 -1
- package/dist/utils-BODEd0eo.cjs +1 -0
- package/dist/{utils-SrEVp7Pm.js → utils-_bodXh-n.js} +76 -104
- package/package.json +2 -1
- package/dist/Backdrop-COarwgJj.cjs +0 -1
- package/dist/Box-C0mEbUoK.cjs +0 -1
- package/dist/Button-1tZRtOeG.cjs +0 -1
- package/dist/CardContent-BXjX98Jd.cjs +0 -1
- package/dist/Checkbox-C6CIGK27.cjs +0 -1
- package/dist/Chip-CAPnyZyW.cjs +0 -1
- package/dist/CircularProgress-DTVP6gln.cjs +0 -28
- package/dist/DatePicker-CJ5-Udgh.cjs +0 -14
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +0 -1
- package/dist/Dialog-Cmv58WoN.cjs +0 -1
- package/dist/DialogContent-CGEdCDYk.cjs +0 -1
- package/dist/DialogTitle-Dxm2NHs7.cjs +0 -1
- package/dist/Divider-D_LVNUqS.cjs +0 -1
- package/dist/FormLabel-D0gSgwnj.cjs +0 -2
- package/dist/Grow-D7scX77o.cjs +0 -1
- package/dist/IconButton-Edo5JMfQ.cjs +0 -2
- package/dist/InputAdornment-C9NrmB_z.cjs +0 -1
- package/dist/InputBase-CgOQ0M4_.cjs +0 -3
- package/dist/Link-CAbb9OCV.cjs +0 -1
- package/dist/Menu-C-R0FVOB.cjs +0 -7
- package/dist/MenuItem-Cp1_Q0FD.cjs +0 -1
- package/dist/Paper-C-oPGpbI.cjs +0 -2
- package/dist/Popper-uw9PkkLY.cjs +0 -4
- package/dist/Portal-bIKnnWR4.cjs +0 -1
- package/dist/Radio-CvCkmq8g.cjs +0 -1
- package/dist/RadioGroup-Ya-I8Lz1.cjs +0 -1
- package/dist/Select-KMdcuol6.cjs +0 -3
- package/dist/Stack-C6v70ALA.cjs +0 -1
- package/dist/Switch-DF4bSjED.cjs +0 -1
- package/dist/SwitchBase-7zONZyYP.cjs +0 -1
- package/dist/Tabs-CrWcC5nJ.js +0 -1225
- package/dist/Tabs-Dploq_37.cjs +0 -4
- package/dist/TextField-BC7GvvHh.cjs +0 -1
- package/dist/ToggleButtonGroup-BCVgsika.cjs +0 -140
- package/dist/ToggleButtonGroup-ekxVeQCc.js +0 -10461
- package/dist/Tooltip-CWA-GKdK.cjs +0 -4
- package/dist/Typography-DEAE8-8u.cjs +0 -1
- package/dist/components/TextInput/TextInput.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.d.ts +0 -4
- package/dist/components/TextInput/TextInput.es.js +0 -6
- package/dist/components/TextInput/index.cjs.js +0 -1
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/TextInput/index.es.js +0 -4
- package/dist/createSvgIcon-Dn4BBPej.cjs +0 -1
- package/dist/dividerClasses-Zk1QmrZw.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +0 -1
- package/dist/extendSxProp-BB6jYY1x.cjs +0 -1
- package/dist/fr-B3qrCNcK.js +0 -312
- package/dist/fr-JE-1WKP6.cjs +0 -1
- package/dist/identifier-5n4d7br9.cjs +0 -75
- package/dist/index-5BAFzrXD.cjs +0 -1
- package/dist/index-CFm-oAsb.cjs +0 -1
- package/dist/index-CJW5gB6d.cjs +0 -5
- package/dist/index-DwHI-aa0.js +0 -45
- package/dist/refType-CjW6JOBA.cjs +0 -1
- package/dist/resolveComponentProps-D0sgyopa.cjs +0 -1
- package/dist/useTheme-Bi8B4Op1.cjs +0 -1
- package/dist/useTheme-C_2IF7CS.cjs +0 -1
- package/dist/useTheme-Clhsq4HW.js +0 -11
- package/dist/useThemeProps-C6qniHmV.js +0 -17
- package/dist/useThemeProps-Dq3GRYN1.cjs +0 -1
- package/dist/utils-D4if93Yl.cjs +0 -1
- /package/dist/assets/{styles.css → Loader.css} +0 -0
- /package/dist/assets/{styles2.css → LoaderBackdrop.css} +0 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { P as e,
|
|
2
|
+
import { P as e, G as Fe, H as ke, I as ce, J as Be } from "./generateUtilityClasses-SJ1QPUag.js";
|
|
3
3
|
import { i as pe } from "./isHostComponent-kiaBvYVo.js";
|
|
4
4
|
import { f as Me } from "./formControlState-vgaj2ksH.js";
|
|
5
5
|
import { u as He, F as Pe } from "./useFormControl-CatNKXAi.js";
|
|
6
|
-
import { g as We } from "./index-
|
|
7
|
-
import { m as be } from "./memoTheme-
|
|
8
|
-
import { i as
|
|
9
|
-
import { jsxs as
|
|
10
|
-
import { u as
|
|
6
|
+
import { g as We } from "./index-DBDGMwpZ.js";
|
|
7
|
+
import { m as be } from "./memoTheme-C9GnPENe.js";
|
|
8
|
+
import { i as De } from "./utils-DWqc1kRF.js";
|
|
9
|
+
import { jsxs as Q, jsx as A } from "react/jsx-runtime";
|
|
10
|
+
import { u as Le, s as ye, c as je } from "./DefaultPropsProvider-ZFZfNXyN.js";
|
|
11
11
|
import { u as ge } from "./useForkRef-C_4o__cU.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as X } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
13
13
|
import { o as fe } from "./ownerWindow-niciwP7I.js";
|
|
14
14
|
import { d as Ue } from "./debounce-46wSf_lW.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { c as ee } from "./capitalize-R3VbHRUv.js";
|
|
16
|
+
import { r as Ve } from "./refType-D-xpF9tL.js";
|
|
17
|
+
import { e as _e } from "./elementTypeAcceptingRef-Cqa8qLE7.js";
|
|
17
18
|
function j(n) {
|
|
18
19
|
return parseInt(n, 10) || 0;
|
|
19
20
|
}
|
|
@@ -79,7 +80,7 @@ const ve = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
79
80
|
const y = t.outerHeightStyle;
|
|
80
81
|
b.current !== y && (b.current = y, l.style.height = `${y}px`), l.style.overflow = t.overflowing ? "hidden" : "";
|
|
81
82
|
}, [w]), E = s.useRef(-1);
|
|
82
|
-
|
|
83
|
+
X(() => {
|
|
83
84
|
const l = Ue(() => x()), t = p == null ? void 0 : p.current;
|
|
84
85
|
if (!t)
|
|
85
86
|
return;
|
|
@@ -93,13 +94,13 @@ const ve = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
93
94
|
}), u.observe(t)), () => {
|
|
94
95
|
l.clear(), cancelAnimationFrame(E.current), y.removeEventListener("resize", l), u && u.disconnect();
|
|
95
96
|
};
|
|
96
|
-
}, [w, x]),
|
|
97
|
+
}, [w, x]), X(() => {
|
|
97
98
|
x();
|
|
98
99
|
});
|
|
99
100
|
const U = (l) => {
|
|
100
101
|
C || x(), d && d(l);
|
|
101
102
|
};
|
|
102
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ Q(s.Fragment, {
|
|
103
104
|
children: [/* @__PURE__ */ A("textarea", {
|
|
104
105
|
value: T,
|
|
105
106
|
onChange: U,
|
|
@@ -166,13 +167,13 @@ const Ye = (n, o) => {
|
|
|
166
167
|
const {
|
|
167
168
|
ownerState: r
|
|
168
169
|
} = n;
|
|
169
|
-
return [o.root, r.formControl && o.formControl, r.startAdornment && o.adornedStart, r.endAdornment && o.adornedEnd, r.error && o.error, r.size === "small" && o.sizeSmall, r.multiline && o.multiline, r.color && o[`color${
|
|
170
|
-
},
|
|
170
|
+
return [o.root, r.formControl && o.formControl, r.startAdornment && o.adornedStart, r.endAdornment && o.adornedEnd, r.error && o.error, r.size === "small" && o.sizeSmall, r.multiline && o.multiline, r.color && o[`color${ee(r.color)}`], r.fullWidth && o.fullWidth, r.hiddenLabel && o.hiddenLabel];
|
|
171
|
+
}, Je = (n, o) => {
|
|
171
172
|
const {
|
|
172
173
|
ownerState: r
|
|
173
174
|
} = n;
|
|
174
175
|
return [o.input, r.size === "small" && o.inputSizeSmall, r.multiline && o.inputMultiline, r.type === "search" && o.inputTypeSearch, r.startAdornment && o.inputAdornedStart, r.endAdornment && o.inputAdornedEnd, r.hiddenLabel && o.inputHiddenLabel];
|
|
175
|
-
},
|
|
176
|
+
}, Ze = (n) => {
|
|
176
177
|
const {
|
|
177
178
|
classes: o,
|
|
178
179
|
color: r,
|
|
@@ -189,7 +190,7 @@ const Ye = (n, o) => {
|
|
|
189
190
|
startAdornment: S,
|
|
190
191
|
type: w
|
|
191
192
|
} = n, x = {
|
|
192
|
-
root: ["root", `color${
|
|
193
|
+
root: ["root", `color${ee(r)}`, d && "disabled", f && "error", F && "fullWidth", R && "focused", T && "formControl", b && b !== "medium" && `size${ee(b)}`, p && "multiline", S && "adornedStart", c && "adornedEnd", C && "hiddenLabel", O && "readOnly"],
|
|
193
194
|
input: ["input", d && "disabled", w === "search" && "inputTypeSearch", p && "inputMultiline", b === "small" && "inputSizeSmall", C && "inputHiddenLabel", S && "inputAdornedStart", c && "inputAdornedEnd", O && "readOnly"]
|
|
194
195
|
};
|
|
195
196
|
return je(x, qe, o);
|
|
@@ -240,7 +241,7 @@ const Ye = (n, o) => {
|
|
|
240
241
|
}))), Xe = ye("input", {
|
|
241
242
|
name: "MuiInputBase",
|
|
242
243
|
slot: "Input",
|
|
243
|
-
overridesResolver:
|
|
244
|
+
overridesResolver: Je
|
|
244
245
|
})(be(({
|
|
245
246
|
theme: n
|
|
246
247
|
}) => {
|
|
@@ -364,7 +365,7 @@ const Ye = (n, o) => {
|
|
|
364
365
|
}
|
|
365
366
|
}
|
|
366
367
|
}), eo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
367
|
-
const d =
|
|
368
|
+
const d = Le({
|
|
368
369
|
props: o,
|
|
369
370
|
name: "MuiInputBase"
|
|
370
371
|
}), {
|
|
@@ -399,7 +400,7 @@ const Ye = (n, o) => {
|
|
|
399
400
|
placeholder: Ce,
|
|
400
401
|
readOnly: V,
|
|
401
402
|
renderSuffix: ne,
|
|
402
|
-
rows:
|
|
403
|
+
rows: D,
|
|
403
404
|
size: oo,
|
|
404
405
|
slotProps: te = {},
|
|
405
406
|
slots: re = {},
|
|
@@ -407,9 +408,9 @@ const Ye = (n, o) => {
|
|
|
407
408
|
type: ie = "text",
|
|
408
409
|
value: Se,
|
|
409
410
|
...Re
|
|
410
|
-
} = d,
|
|
411
|
+
} = d, L = t.value != null ? t.value : Se, {
|
|
411
412
|
current: _
|
|
412
|
-
} = s.useRef(
|
|
413
|
+
} = s.useRef(L != null), I = s.useRef(), Te = s.useCallback((i) => {
|
|
413
414
|
process.env.NODE_ENV !== "production" && i && i.nodeName !== "INPUT" && !i.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
414
415
|
`));
|
|
415
416
|
}, []), Oe = ge(I, y, t.ref, Te), [$, G] = s.useState(!1), a = He();
|
|
@@ -426,13 +427,13 @@ const Ye = (n, o) => {
|
|
|
426
427
|
!a && b && $ && (G(!1), g && g());
|
|
427
428
|
}, [a, b, $, g]);
|
|
428
429
|
const K = a && a.onFilled, q = a && a.onEmpty, N = s.useCallback((i) => {
|
|
429
|
-
|
|
430
|
+
De(i) ? K && K() : q && q();
|
|
430
431
|
}, [K, q]);
|
|
431
|
-
|
|
432
|
+
X(() => {
|
|
432
433
|
_ && N({
|
|
433
|
-
value:
|
|
434
|
+
value: L
|
|
434
435
|
});
|
|
435
|
-
}, [
|
|
436
|
+
}, [L, N, _]);
|
|
436
437
|
const Ie = (i) => {
|
|
437
438
|
W && W(i), t.onFocus && t.onFocus(i), a && a.onFocus ? a.onFocus(i) : G(!0);
|
|
438
439
|
}, Ee = (i) => {
|
|
@@ -455,10 +456,10 @@ const Ye = (n, o) => {
|
|
|
455
456
|
I.current && i.currentTarget === i.target && I.current.focus(), P && P(i);
|
|
456
457
|
};
|
|
457
458
|
let Y = l, v = t;
|
|
458
|
-
M && Y === "input" && (
|
|
459
|
+
M && Y === "input" && (D ? (process.env.NODE_ENV !== "production" && (B || k) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), v = {
|
|
459
460
|
type: void 0,
|
|
460
|
-
minRows:
|
|
461
|
-
maxRows:
|
|
461
|
+
minRows: D,
|
|
462
|
+
maxRows: D,
|
|
462
463
|
...v
|
|
463
464
|
}) : v = {
|
|
464
465
|
type: void 0,
|
|
@@ -474,7 +475,7 @@ const Ye = (n, o) => {
|
|
|
474
475
|
s.useEffect(() => {
|
|
475
476
|
a && a.setAdornedStart(!!z);
|
|
476
477
|
}, [a, z]);
|
|
477
|
-
const
|
|
478
|
+
const J = {
|
|
478
479
|
...d,
|
|
479
480
|
color: h.color || "primary",
|
|
480
481
|
disabled: h.disabled,
|
|
@@ -488,25 +489,25 @@ const Ye = (n, o) => {
|
|
|
488
489
|
size: h.size,
|
|
489
490
|
startAdornment: z,
|
|
490
491
|
type: ie
|
|
491
|
-
}, ae =
|
|
492
|
+
}, ae = Ze(J), se = re.root || C.Root || Qe, Z = te.root || p.root || {}, le = re.input || C.Input || Xe;
|
|
492
493
|
return v = {
|
|
493
494
|
...v,
|
|
494
495
|
...te.input ?? p.input
|
|
495
|
-
}, /* @__PURE__ */
|
|
496
|
+
}, /* @__PURE__ */ Q(s.Fragment, {
|
|
496
497
|
children: [!S && typeof he == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
497
498
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
498
|
-
(me || (me = /* @__PURE__ */ A(he, {}))), /* @__PURE__ */
|
|
499
|
-
...
|
|
499
|
+
(me || (me = /* @__PURE__ */ A(he, {}))), /* @__PURE__ */ Q(se, {
|
|
500
|
+
...Z,
|
|
500
501
|
ref: r,
|
|
501
502
|
onClick: Ne,
|
|
502
503
|
...Re,
|
|
503
504
|
...!pe(se) && {
|
|
504
505
|
ownerState: {
|
|
505
|
-
...
|
|
506
|
-
...
|
|
506
|
+
...J,
|
|
507
|
+
...Z.ownerState
|
|
507
508
|
}
|
|
508
509
|
},
|
|
509
|
-
className: ce(ae.root,
|
|
510
|
+
className: ce(ae.root, Z.className, T, V && "MuiInputBase-readOnly"),
|
|
510
511
|
children: [z, /* @__PURE__ */ A(Pe.Provider, {
|
|
511
512
|
value: null,
|
|
512
513
|
children: /* @__PURE__ */ A(le, {
|
|
@@ -522,8 +523,8 @@ const Ye = (n, o) => {
|
|
|
522
523
|
placeholder: Ce,
|
|
523
524
|
readOnly: V,
|
|
524
525
|
required: h.required,
|
|
525
|
-
rows:
|
|
526
|
-
value:
|
|
526
|
+
rows: D,
|
|
527
|
+
value: L,
|
|
527
528
|
onKeyDown: we,
|
|
528
529
|
onKeyUp: xe,
|
|
529
530
|
type: ie,
|
|
@@ -531,7 +532,7 @@ const Ye = (n, o) => {
|
|
|
531
532
|
...!pe(le) && {
|
|
532
533
|
as: Y,
|
|
533
534
|
ownerState: {
|
|
534
|
-
...
|
|
535
|
+
...J,
|
|
535
536
|
...v.ownerState
|
|
536
537
|
}
|
|
537
538
|
},
|
|
@@ -780,7 +781,7 @@ export {
|
|
|
780
781
|
eo as I,
|
|
781
782
|
Qe as a,
|
|
782
783
|
Xe as b,
|
|
783
|
-
|
|
784
|
+
Je as c,
|
|
784
785
|
oe as i,
|
|
785
786
|
Ye as r
|
|
786
787
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as v from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { u as j } from "./useTheme-
|
|
2
|
+
import { G as S, H as V, N as l, n as c, I as P, P as o } from "./generateUtilityClasses-SJ1QPUag.js";
|
|
3
|
+
import { u as j } from "./useTheme-EvTdEPuY.js";
|
|
4
4
|
import { jsx as A } from "react/jsx-runtime";
|
|
5
|
-
import { u as F, s as N, c as R } from "./DefaultPropsProvider-
|
|
6
|
-
import { m as M } from "./memoTheme-
|
|
5
|
+
import { u as F, s as N, c as R } from "./DefaultPropsProvider-ZFZfNXyN.js";
|
|
6
|
+
import { m as M } from "./memoTheme-C9GnPENe.js";
|
|
7
7
|
import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
-
import {
|
|
8
|
+
import { c as w } from "./capitalize-R3VbHRUv.js";
|
|
9
|
+
import { T as U } from "./Typography-BJPk_mTw.js";
|
|
9
10
|
import { i as h } from "./isFocusVisible-CPZqtjv2.js";
|
|
10
|
-
import { e as z } from "./elementTypeAcceptingRef-
|
|
11
|
+
import { e as z } from "./elementTypeAcceptingRef-Cqa8qLE7.js";
|
|
11
12
|
function H(e) {
|
|
12
13
|
return V("MuiLink", e);
|
|
13
14
|
}
|
|
@@ -34,7 +35,7 @@ const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlw
|
|
|
34
35
|
focusVisible: t,
|
|
35
36
|
underline: s
|
|
36
37
|
} = e, u = {
|
|
37
|
-
root: ["root", `underline${
|
|
38
|
+
root: ["root", `underline${w(s)}`, n === "button" && "button", t && "focusVisible"]
|
|
38
39
|
};
|
|
39
40
|
return R(u, H, r);
|
|
40
41
|
}, I = N(U, {
|
|
@@ -44,7 +45,7 @@ const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlw
|
|
|
44
45
|
const {
|
|
45
46
|
ownerState: n
|
|
46
47
|
} = e;
|
|
47
|
-
return [r.root, r[`underline${
|
|
48
|
+
return [r.root, r[`underline${w(n.underline)}`], n.component === "button" && r.button];
|
|
48
49
|
}
|
|
49
50
|
})(M(({
|
|
50
51
|
theme: e
|
|
@@ -159,7 +160,7 @@ const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlw
|
|
|
159
160
|
component: y = "a",
|
|
160
161
|
onBlur: f,
|
|
161
162
|
onFocus: m,
|
|
162
|
-
TypographyClasses:
|
|
163
|
+
TypographyClasses: L,
|
|
163
164
|
underline: b = "always",
|
|
164
165
|
variant: g = "inherit",
|
|
165
166
|
sx: p,
|
|
@@ -179,7 +180,7 @@ const E = S("MuiLink", ["root", "underlineNone", "underlineHover", "underlineAlw
|
|
|
179
180
|
return /* @__PURE__ */ A(I, {
|
|
180
181
|
color: a,
|
|
181
182
|
className: P(O.root, u),
|
|
182
|
-
classes:
|
|
183
|
+
classes: L,
|
|
183
184
|
component: y,
|
|
184
185
|
onBlur: D,
|
|
185
186
|
onFocus: $,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const V=require("react"),e=require("./generateUtilityClasses-B90hrzv4.cjs"),q=require("./useTheme-C9d_IgK4.cjs"),$=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-DhsUT47i.cjs"),F=require("./memoTheme-D8ch-Aus.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),x=require("./capitalize-CzyXIc5e.cjs"),A=require("./Typography-Daq_a9_t.cjs"),m=require("./isFocusVisible-DlSijby6.cjs"),N=require("./elementTypeAcceptingRef-CFAbKDTa.cjs");function z(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>r[o]})}}return t.default=r,Object.freeze(t)}const h=z(V);function v(r){return e.generateUtilityClass("MuiLink",r)}const k=e.generateUtilityClasses("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),M=({theme:r,ownerState:t})=>{const o=t.color,n=e.getPath(r,`palette.${o}.main`,!1)||e.getPath(r,`palette.${o}`,!1)||t.color,s=e.getPath(r,`palette.${o}.mainChannel`)||e.getPath(r,`palette.${o}Channel`);return"vars"in r&&s?`rgba(${s} / 0.4)`:e.alpha(n,.4)},C={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},U=r=>{const{classes:t,component:o,focusVisible:n,underline:s}=r,l={root:["root",`underline${x.capitalize(s)}`,o==="button"&&"button",n&&"focusVisible"]};return u.composeClasses(l,v,t)},B=u.styled(A.Typography,{name:"MuiLink",slot:"Root",overridesResolver:(r,t)=>{const{ownerState:o}=r;return[t.root,t[`underline${x.capitalize(o.underline)}`],o.component==="button"&&t.button]}})(F.memoTheme(({theme:r})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:o})=>t==="always"&&o.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(r.palette).filter(R.createSimplePaletteValueFilter()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":r.vars?`rgba(${r.vars.palette[t].mainChannel} / 0.4)`:e.alpha(r.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":r.vars?`rgba(${r.vars.palette.text.primaryChannel} / 0.4)`:e.alpha(r.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":r.vars?`rgba(${r.vars.palette.text.secondaryChannel} / 0.4)`:e.alpha(r.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(r.vars||r).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${k.focusVisible}`]:{outline:"auto"}}}]}))),w=h.forwardRef(function(t,o){const n=u.useDefaultProps({props:t,name:"MuiLink"}),s=q.useTheme(),{className:l,color:a="primary",component:y="a",onBlur:d,onFocus:f,TypographyClasses:L,underline:b="always",variant:T="inherit",sx:p,...g}=n,[D,P]=h.useState(!1),O=i=>{m.isFocusVisible(i.target)||P(!1),d&&d(i)},j=i=>{m.isFocusVisible(i.target)&&P(!0),f&&f(i)},c={...n,color:a,component:y,focusVisible:D,underline:b,variant:T},S=U(c);return $.jsx(B,{color:a,className:e.clsx(S.root,l),classes:L,component:y,onBlur:O,onFocus:j,ref:o,ownerState:c,variant:T,...g,sx:[...C[a]===void 0?[{color:a}]:[],...Array.isArray(p)?p:[p]],style:{...g.style,...b==="always"&&a!=="inherit"&&!C[a]&&{"--Link-underlineColor":M({theme:s,ownerState:c})}}})});process.env.NODE_ENV!=="production"&&(w.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),e.PropTypes.string]),component:N.elementTypeAcceptingRef,onBlur:e.PropTypes.func,onFocus:e.PropTypes.func,style:e.PropTypes.object,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]),TypographyClasses:e.PropTypes.object,underline:e.PropTypes.oneOf(["always","hover","none"]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),e.PropTypes.string])});exports.Link=w;exports.getLinkUtilityClass=v;exports.linkClasses=k;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const C=require("react"),e=require("./generateUtilityClasses-B90hrzv4.cjs"),y=require("react/jsx-runtime"),d=require("./DefaultPropsProvider-DhsUT47i.cjs");function L(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}return t.default=s,Object.freeze(t)}const p=L(C),c=p.createContext({});process.env.NODE_ENV!=="production"&&(c.displayName="ListContext");function P(s){return e.generateUtilityClass("MuiList",s)}const v=e.generateUtilityClasses("MuiList",["root","padding","dense","subheader"]),j=s=>{const{classes:t,disablePadding:o,dense:n,subheader:r}=s,i={root:["root",!o&&"padding",n&&"dense",r&&"subheader"]};return d.composeClasses(i,P,t)},x=d.styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(s,t)=>{const{ownerState:o}=s;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:s})=>!s.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:s})=>s.subheader,style:{paddingTop:0}}]}),b=p.forwardRef(function(t,o){const n=d.useDefaultProps({props:t,name:"MuiList"}),{children:r,className:i,component:l="ul",dense:a=!1,disablePadding:f=!1,subheader:g,...T}=n,m=p.useMemo(()=>({dense:a}),[a]),u={...n,component:l,dense:a,disablePadding:f},h=j(u);return y.jsx(c.Provider,{value:m,children:y.jsxs(x,{as:l,className:e.clsx(h.root,i),ref:o,ownerState:u,...T,children:[g,r]})})});process.env.NODE_ENV!=="production"&&(b.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,dense:e.PropTypes.bool,disablePadding:e.PropTypes.bool,subheader:e.PropTypes.node,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.List=b;exports.ListContext=c;exports.getListUtilityClass=P;exports.listClasses=v;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { G as h, H as y, I as L, P as s } from "./generateUtilityClasses-SJ1QPUag.js";
|
|
3
|
+
import { jsx as v, jsxs as x } from "react/jsx-runtime";
|
|
4
|
+
import { u as C, s as P, c as N } from "./DefaultPropsProvider-ZFZfNXyN.js";
|
|
5
|
+
const p = /* @__PURE__ */ i.createContext({});
|
|
6
|
+
process.env.NODE_ENV !== "production" && (p.displayName = "ListContext");
|
|
7
|
+
function T(e) {
|
|
8
|
+
return y("MuiList", e);
|
|
9
|
+
}
|
|
10
|
+
const S = h("MuiList", ["root", "padding", "dense", "subheader"]), j = (e) => {
|
|
11
|
+
const {
|
|
12
|
+
classes: o,
|
|
13
|
+
disablePadding: t,
|
|
14
|
+
dense: a,
|
|
15
|
+
subheader: n
|
|
16
|
+
} = e;
|
|
17
|
+
return N({
|
|
18
|
+
root: ["root", !t && "padding", a && "dense", n && "subheader"]
|
|
19
|
+
}, T, o);
|
|
20
|
+
}, M = P("ul", {
|
|
21
|
+
name: "MuiList",
|
|
22
|
+
slot: "Root",
|
|
23
|
+
overridesResolver: (e, o) => {
|
|
24
|
+
const {
|
|
25
|
+
ownerState: t
|
|
26
|
+
} = e;
|
|
27
|
+
return [o.root, !t.disablePadding && o.padding, t.dense && o.dense, t.subheader && o.subheader];
|
|
28
|
+
}
|
|
29
|
+
})({
|
|
30
|
+
listStyle: "none",
|
|
31
|
+
margin: 0,
|
|
32
|
+
padding: 0,
|
|
33
|
+
position: "relative",
|
|
34
|
+
variants: [{
|
|
35
|
+
props: ({
|
|
36
|
+
ownerState: e
|
|
37
|
+
}) => !e.disablePadding,
|
|
38
|
+
style: {
|
|
39
|
+
paddingTop: 8,
|
|
40
|
+
paddingBottom: 8
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
props: ({
|
|
44
|
+
ownerState: e
|
|
45
|
+
}) => e.subheader,
|
|
46
|
+
style: {
|
|
47
|
+
paddingTop: 0
|
|
48
|
+
}
|
|
49
|
+
}]
|
|
50
|
+
}), O = /* @__PURE__ */ i.forwardRef(function(o, t) {
|
|
51
|
+
const a = C({
|
|
52
|
+
props: o,
|
|
53
|
+
name: "MuiList"
|
|
54
|
+
}), {
|
|
55
|
+
children: n,
|
|
56
|
+
className: d,
|
|
57
|
+
component: l = "ul",
|
|
58
|
+
dense: r = !1,
|
|
59
|
+
disablePadding: u = !1,
|
|
60
|
+
subheader: m,
|
|
61
|
+
...b
|
|
62
|
+
} = a, f = i.useMemo(() => ({
|
|
63
|
+
dense: r
|
|
64
|
+
}), [r]), c = {
|
|
65
|
+
...a,
|
|
66
|
+
component: l,
|
|
67
|
+
dense: r,
|
|
68
|
+
disablePadding: u
|
|
69
|
+
}, g = j(c);
|
|
70
|
+
return /* @__PURE__ */ v(p.Provider, {
|
|
71
|
+
value: f,
|
|
72
|
+
children: /* @__PURE__ */ x(M, {
|
|
73
|
+
as: l,
|
|
74
|
+
className: L(g.root, d),
|
|
75
|
+
ref: t,
|
|
76
|
+
ownerState: c,
|
|
77
|
+
...b,
|
|
78
|
+
children: [m, n]
|
|
79
|
+
})
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
83
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
84
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
85
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
86
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
87
|
+
/**
|
|
88
|
+
* The content of the component.
|
|
89
|
+
*/
|
|
90
|
+
children: s.node,
|
|
91
|
+
/**
|
|
92
|
+
* Override or extend the styles applied to the component.
|
|
93
|
+
*/
|
|
94
|
+
classes: s.object,
|
|
95
|
+
/**
|
|
96
|
+
* @ignore
|
|
97
|
+
*/
|
|
98
|
+
className: s.string,
|
|
99
|
+
/**
|
|
100
|
+
* The component used for the root node.
|
|
101
|
+
* Either a string to use a HTML element or a component.
|
|
102
|
+
*/
|
|
103
|
+
component: s.elementType,
|
|
104
|
+
/**
|
|
105
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
106
|
+
* the list and list items.
|
|
107
|
+
* The prop is available to descendant components as the `dense` context.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
dense: s.bool,
|
|
111
|
+
/**
|
|
112
|
+
* If `true`, vertical padding is removed from the list.
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
disablePadding: s.bool,
|
|
116
|
+
/**
|
|
117
|
+
* The content of the subheader, normally `ListSubheader`.
|
|
118
|
+
*/
|
|
119
|
+
subheader: s.node,
|
|
120
|
+
/**
|
|
121
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
122
|
+
*/
|
|
123
|
+
sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
|
|
124
|
+
});
|
|
125
|
+
export {
|
|
126
|
+
O as L,
|
|
127
|
+
p as a,
|
|
128
|
+
T as g,
|
|
129
|
+
S as l
|
|
130
|
+
};
|