@cgi-learning-hub/ui 1.5.0 → 1.5.1-dev.1744639457
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-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
- package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
- package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
- package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
- package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
- package/dist/DatePicker-DbH5IN_w.cjs +13 -0
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
- package/dist/Dialog-D1VJ5jXx.cjs +1 -0
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
- package/dist/DialogTitle-B3MlGamo.cjs +1 -0
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
- package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
- package/dist/Grow-DrEdqZgX.cjs +1 -0
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/InputBase-C-ES3FPH.cjs +3 -0
- package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
- package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/ListItemText-zFoA_mgx.js +845 -0
- package/dist/Menu-4e60iiMU.cjs +7 -0
- package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
- package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
- package/dist/Modal-JAWJUstF.cjs +2 -0
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/Popper-CyH7Z-lN.cjs +4 -0
- package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
- package/dist/Portal-CtsVKOQ9.js +85 -0
- package/dist/Portal-LP7SUKpU.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
- package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
- package/dist/Select-CxofSqZJ.cjs +3 -0
- package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
- package/dist/SwitchBase-BHC3uchj.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
- package/dist/TextField-DFr8lsXU.cjs +1 -0
- package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
- package/dist/Tooltip-DJC7nrsk.cjs +4 -0
- package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- 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 +1 -1
- 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 +15 -15
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- 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 +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- 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 +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +49 -44
- 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 -7
- package/dist/components/TreeView/TreeView.es.js +323 -319
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +264 -266
- 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 +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- 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/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 +1 -1
- 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 +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
- package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
- package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -266
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-DpPa0vDp.js +5 -0
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-DhC6EPU2.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/useTheme-Dt-VOIyT.js +11 -0
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-CxMYNgfp.js +17 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-CvizDCvx.cjs +0 -1
- package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
- package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
- package/dist/Box-BmfpLwYG.cjs +0 -1
- package/dist/Button-BGWvL_UD.cjs +0 -1
- package/dist/CardContent-GHLuvxgm.cjs +0 -1
- package/dist/Checkbox-BZYoJieY.cjs +0 -1
- package/dist/Chip-Cu_SZxrx.cjs +0 -1
- package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/DatePicker-tyDzcyzu.cjs +0 -14
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
- package/dist/Dialog-DIHzs0ro.cjs +0 -1
- package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
- package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
- package/dist/Divider-iYLSpFUc.cjs +0 -1
- package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
- package/dist/Grow-DXY5DOqR.cjs +0 -1
- package/dist/IconButton-BLZJne06.cjs +0 -2
- package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
- package/dist/InputBase-B3KOyouT.cjs +0 -3
- package/dist/Link-lvpmE2yz.cjs +0 -1
- package/dist/List-PQXGlDbt.cjs +0 -1
- package/dist/ListItem-CWEvdMjN.cjs +0 -1
- package/dist/ListItemText-BhxrnTkb.cjs +0 -1
- package/dist/ListItemText-CADHegDF.js +0 -928
- package/dist/Menu-DBacrp-P.cjs +0 -7
- package/dist/MenuItem-DkcVAo3U.cjs +0 -1
- package/dist/Modal-kUvS-N46.cjs +0 -2
- package/dist/Paper-ByOgFIEE.cjs +0 -2
- package/dist/Popper-CsQqc5DE.cjs +0 -4
- package/dist/Portal-7MKUQzjh.js +0 -81
- package/dist/Portal-DhGy1jKe.cjs +0 -1
- package/dist/Radio-DG-k6cXx.cjs +0 -1
- package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
- package/dist/Select-b6liJFDI.cjs +0 -3
- package/dist/Stack-gtxG2YLo.cjs +0 -1
- package/dist/Switch-BlwDxL6O.cjs +0 -1
- package/dist/SwitchBase-DtKlxrES.cjs +0 -1
- package/dist/SwitchBase-QwOXoy8f.js +0 -262
- package/dist/Tab-Dx7V4E6B.cjs +0 -4
- package/dist/TextField-CB2n4aV8.cjs +0 -1
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
- package/dist/Tooltip-D0jvnXYu.cjs +0 -4
- package/dist/Typography-3CpuuLtj.cjs +0 -1
- package/dist/capitalize-B3tmp8MO.cjs +0 -1
- package/dist/capitalize-Bs7Xs33U.js +0 -9
- package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
- package/dist/dividerClasses-izm7KFVg.cjs +0 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
- package/dist/extendSxProp-Bv3E507G.cjs +0 -1
- package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
- package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
- package/dist/index-9hEUqvaJ.cjs +0 -1
- package/dist/index-BomeQRLD.cjs +0 -5
- package/dist/index-DS8G_wjP.cjs +0 -1
- package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
- package/dist/refType-D-n-tVSl.cjs +0 -1
- package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
- package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CGbU9jGm.cjs +0 -1
- package/dist/useSlot-CqjfyGd9.js +0 -48
- package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
- package/dist/useTheme-B6wow4M9.cjs +0 -1
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useTheme-MahNaB8C.cjs +0 -1
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
- package/dist/utils-CUU5fjzL.cjs +0 -1
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import * as D from "react";
|
|
2
|
-
import { H as G, G as H, I as V, P as e } from "./generateUtilityClasses-CqzQXpT_.js";
|
|
3
|
-
import { s as C, c as _, r as $ } from "./DefaultPropsProvider-CXfMJdg8.js";
|
|
4
|
-
import { u as A } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { jsxs as J, jsx as K } from "react/jsx-runtime";
|
|
6
|
-
import { u as M } from "./useControlled-BYdyS7Pn.js";
|
|
7
|
-
import { c as Q } from "./capitalize-Bs7Xs33U.js";
|
|
8
|
-
import { B as W } from "./ButtonBase-CZFKUUHD.js";
|
|
9
|
-
import { r as X } from "./refType-BvSJNaoq.js";
|
|
10
|
-
function Y(s) {
|
|
11
|
-
return G("PrivateSwitchBase", s);
|
|
12
|
-
}
|
|
13
|
-
H("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
14
|
-
const Z = (s) => {
|
|
15
|
-
const {
|
|
16
|
-
classes: t,
|
|
17
|
-
checked: d,
|
|
18
|
-
disabled: c,
|
|
19
|
-
edge: n
|
|
20
|
-
} = s, l = {
|
|
21
|
-
root: ["root", d && "checked", c && "disabled", n && `edge${Q(n)}`],
|
|
22
|
-
input: ["input"]
|
|
23
|
-
};
|
|
24
|
-
return _(l, Y, t);
|
|
25
|
-
}, ee = C(W)({
|
|
26
|
-
padding: 9,
|
|
27
|
-
borderRadius: "50%",
|
|
28
|
-
variants: [{
|
|
29
|
-
props: {
|
|
30
|
-
edge: "start",
|
|
31
|
-
size: "small"
|
|
32
|
-
},
|
|
33
|
-
style: {
|
|
34
|
-
marginLeft: -3
|
|
35
|
-
}
|
|
36
|
-
}, {
|
|
37
|
-
props: ({
|
|
38
|
-
edge: s,
|
|
39
|
-
ownerState: t
|
|
40
|
-
}) => s === "start" && t.size !== "small",
|
|
41
|
-
style: {
|
|
42
|
-
marginLeft: -12
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
props: {
|
|
46
|
-
edge: "end",
|
|
47
|
-
size: "small"
|
|
48
|
-
},
|
|
49
|
-
style: {
|
|
50
|
-
marginRight: -3
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
props: ({
|
|
54
|
-
edge: s,
|
|
55
|
-
ownerState: t
|
|
56
|
-
}) => s === "end" && t.size !== "small",
|
|
57
|
-
style: {
|
|
58
|
-
marginRight: -12
|
|
59
|
-
}
|
|
60
|
-
}]
|
|
61
|
-
}), oe = C("input", {
|
|
62
|
-
shouldForwardProp: $
|
|
63
|
-
})({
|
|
64
|
-
cursor: "inherit",
|
|
65
|
-
position: "absolute",
|
|
66
|
-
opacity: 0,
|
|
67
|
-
width: "100%",
|
|
68
|
-
height: "100%",
|
|
69
|
-
top: 0,
|
|
70
|
-
left: 0,
|
|
71
|
-
margin: 0,
|
|
72
|
-
padding: 0,
|
|
73
|
-
zIndex: 1
|
|
74
|
-
}), se = /* @__PURE__ */ D.forwardRef(function(t, d) {
|
|
75
|
-
const {
|
|
76
|
-
autoFocus: c,
|
|
77
|
-
checked: n,
|
|
78
|
-
checkedIcon: l,
|
|
79
|
-
className: w,
|
|
80
|
-
defaultChecked: p,
|
|
81
|
-
disabled: F,
|
|
82
|
-
disableFocusRipple: f = !1,
|
|
83
|
-
edge: R = !1,
|
|
84
|
-
icon: S,
|
|
85
|
-
id: x,
|
|
86
|
-
inputProps: P,
|
|
87
|
-
inputRef: I,
|
|
88
|
-
name: q,
|
|
89
|
-
onBlur: h,
|
|
90
|
-
onChange: m,
|
|
91
|
-
onFocus: b,
|
|
92
|
-
readOnly: v,
|
|
93
|
-
required: z = !1,
|
|
94
|
-
tabIndex: N,
|
|
95
|
-
type: i,
|
|
96
|
-
value: g,
|
|
97
|
-
...O
|
|
98
|
-
} = t, [y, j] = M({
|
|
99
|
-
controlled: n,
|
|
100
|
-
default: !!p,
|
|
101
|
-
name: "SwitchBase",
|
|
102
|
-
state: "checked"
|
|
103
|
-
}), a = A(), E = (o) => {
|
|
104
|
-
b && b(o), a && a.onFocus && a.onFocus(o);
|
|
105
|
-
}, T = (o) => {
|
|
106
|
-
h && h(o), a && a.onBlur && a.onBlur(o);
|
|
107
|
-
}, U = (o) => {
|
|
108
|
-
if (o.nativeEvent.defaultPrevented)
|
|
109
|
-
return;
|
|
110
|
-
const B = o.target.checked;
|
|
111
|
-
j(B), m && m(o, B);
|
|
112
|
-
};
|
|
113
|
-
let r = F;
|
|
114
|
-
a && typeof r > "u" && (r = a.disabled);
|
|
115
|
-
const L = i === "checkbox" || i === "radio", u = {
|
|
116
|
-
...t,
|
|
117
|
-
checked: y,
|
|
118
|
-
disabled: r,
|
|
119
|
-
disableFocusRipple: f,
|
|
120
|
-
edge: R
|
|
121
|
-
}, k = Z(u);
|
|
122
|
-
return /* @__PURE__ */ J(ee, {
|
|
123
|
-
component: "span",
|
|
124
|
-
className: V(k.root, w),
|
|
125
|
-
centerRipple: !0,
|
|
126
|
-
focusRipple: !f,
|
|
127
|
-
disabled: r,
|
|
128
|
-
tabIndex: null,
|
|
129
|
-
role: void 0,
|
|
130
|
-
onFocus: E,
|
|
131
|
-
onBlur: T,
|
|
132
|
-
ownerState: u,
|
|
133
|
-
ref: d,
|
|
134
|
-
...O,
|
|
135
|
-
children: [/* @__PURE__ */ K(oe, {
|
|
136
|
-
autoFocus: c,
|
|
137
|
-
checked: n,
|
|
138
|
-
defaultChecked: p,
|
|
139
|
-
className: k.input,
|
|
140
|
-
disabled: r,
|
|
141
|
-
id: L ? x : void 0,
|
|
142
|
-
name: q,
|
|
143
|
-
onChange: U,
|
|
144
|
-
readOnly: v,
|
|
145
|
-
ref: I,
|
|
146
|
-
required: z,
|
|
147
|
-
ownerState: u,
|
|
148
|
-
tabIndex: N,
|
|
149
|
-
type: i,
|
|
150
|
-
...i === "checkbox" && g === void 0 ? {} : {
|
|
151
|
-
value: g
|
|
152
|
-
},
|
|
153
|
-
...P
|
|
154
|
-
}), y ? l : S]
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
158
|
-
/**
|
|
159
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
160
|
-
*/
|
|
161
|
-
autoFocus: e.bool,
|
|
162
|
-
/**
|
|
163
|
-
* If `true`, the component is checked.
|
|
164
|
-
*/
|
|
165
|
-
checked: e.bool,
|
|
166
|
-
/**
|
|
167
|
-
* The icon to display when the component is checked.
|
|
168
|
-
*/
|
|
169
|
-
checkedIcon: e.node.isRequired,
|
|
170
|
-
/**
|
|
171
|
-
* Override or extend the styles applied to the component.
|
|
172
|
-
*/
|
|
173
|
-
classes: e.object,
|
|
174
|
-
/**
|
|
175
|
-
* @ignore
|
|
176
|
-
*/
|
|
177
|
-
className: e.string,
|
|
178
|
-
/**
|
|
179
|
-
* @ignore
|
|
180
|
-
*/
|
|
181
|
-
defaultChecked: e.bool,
|
|
182
|
-
/**
|
|
183
|
-
* If `true`, the component is disabled.
|
|
184
|
-
*/
|
|
185
|
-
disabled: e.bool,
|
|
186
|
-
/**
|
|
187
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
188
|
-
* @default false
|
|
189
|
-
*/
|
|
190
|
-
disableFocusRipple: e.bool,
|
|
191
|
-
/**
|
|
192
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
193
|
-
* side (this is often helpful for aligning the left or right
|
|
194
|
-
* side of the icon with content above or below, without ruining the border
|
|
195
|
-
* size and shape).
|
|
196
|
-
* @default false
|
|
197
|
-
*/
|
|
198
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
199
|
-
/**
|
|
200
|
-
* The icon to display when the component is unchecked.
|
|
201
|
-
*/
|
|
202
|
-
icon: e.node.isRequired,
|
|
203
|
-
/**
|
|
204
|
-
* The id of the `input` element.
|
|
205
|
-
*/
|
|
206
|
-
id: e.string,
|
|
207
|
-
/**
|
|
208
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
209
|
-
*/
|
|
210
|
-
inputProps: e.object,
|
|
211
|
-
/**
|
|
212
|
-
* Pass a ref to the `input` element.
|
|
213
|
-
*/
|
|
214
|
-
inputRef: X,
|
|
215
|
-
/*
|
|
216
|
-
* @ignore
|
|
217
|
-
*/
|
|
218
|
-
name: e.string,
|
|
219
|
-
/**
|
|
220
|
-
* @ignore
|
|
221
|
-
*/
|
|
222
|
-
onBlur: e.func,
|
|
223
|
-
/**
|
|
224
|
-
* Callback fired when the state is changed.
|
|
225
|
-
*
|
|
226
|
-
* @param {object} 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
|
-
* @ignore
|
|
232
|
-
*/
|
|
233
|
-
onFocus: e.func,
|
|
234
|
-
/**
|
|
235
|
-
* It prevents the user from changing the value of the field
|
|
236
|
-
* (not from interacting with the field).
|
|
237
|
-
*/
|
|
238
|
-
readOnly: e.bool,
|
|
239
|
-
/**
|
|
240
|
-
* If `true`, the `input` element is required.
|
|
241
|
-
*/
|
|
242
|
-
required: e.bool,
|
|
243
|
-
/**
|
|
244
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
245
|
-
*/
|
|
246
|
-
sx: e.object,
|
|
247
|
-
/**
|
|
248
|
-
* @ignore
|
|
249
|
-
*/
|
|
250
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
251
|
-
/**
|
|
252
|
-
* The input component prop `type`.
|
|
253
|
-
*/
|
|
254
|
-
type: e.string.isRequired,
|
|
255
|
-
/**
|
|
256
|
-
* The value of the component.
|
|
257
|
-
*/
|
|
258
|
-
value: e.any
|
|
259
|
-
});
|
|
260
|
-
export {
|
|
261
|
-
se as S
|
|
262
|
-
};
|
package/dist/Tab-Dx7V4E6B.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const co=require("react"),e=require("./generateUtilityClasses-KugHyZhN.cjs"),T=require("react/jsx-runtime"),Oe=require("./index-9hEUqvaJ.cjs"),po=require("./useTheme-MahNaB8C.cjs"),m=require("./DefaultPropsProvider-BTnRBr0O.cjs"),pe=require("./memoTheme-WwIyYqBX.cjs"),uo=require("./useEnhancedEffect-BQZ6dtCo.cjs"),je=require("./debounce-DpCj7ugL.cjs"),ke=require("./ownerWindow-DDHucZi0.cjs"),De=require("./createSvgIcon-2wwaxLPT.cjs"),te=require("./useSlotProps-DfO7r_4Y.cjs"),We=require("./ButtonBase-NqQjeQ4X.cjs"),ce=require("./useEventCallback-C0-Qw3Sm.cjs"),fo=require("./ownerDocument-4MViGo3k.cjs"),bo=require("./refType-D-n-tVSl.cjs"),yo=require("./useThemeProps-BqypsO1h.cjs"),$e=require("./capitalize-B3tmp8MO.cjs"),To=require("./unsupportedProp-Bn6XWqwH.cjs");function ho(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,l.get?l:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const a=ho(co),de=a.createContext(null);process.env.NODE_ENV!=="production"&&(de.displayName="TabContext");function Po(){const[t,o]=a.useState(null);return a.useEffect(()=>{o(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),t}function ze(t){const{children:o,value:r}=t,l=Po(),i=a.useMemo(()=>({idPrefix:l,value:r}),[l,r]);return T.jsx(de.Provider,{value:i,children:o})}process.env.NODE_ENV!=="production"&&(ze.propTypes={children:e.PropTypes.node,value:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).isRequired});function ue(){return a.useContext(de)}function fe(t,o){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-P-${o}`}function be(t,o){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-T-${o}`}function vo(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function mo(t,o,r,l={},i=()=>{}){const{ease:p=vo,duration:u=300}=l;let f=null;const y=o[t];let P=!1;const S=()=>{P=!0},h=v=>{if(P){i(new Error("Animation cancelled"));return}f===null&&(f=v);const x=Math.min(1,(v-f)/u);if(o[t]=p(x)*(r-y)+y,x>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return y===r?(i(new Error("Element already at target position")),S):(requestAnimationFrame(h),S)}const So={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qe(t){const{onChange:o,...r}=t,l=a.useRef(),i=a.useRef(null),p=()=>{l.current=i.current.offsetHeight-i.current.clientHeight};return uo.useEnhancedEffect(()=>{const u=je.debounce(()=>{const y=l.current;p(),y!==l.current&&o(l.current)}),f=ke.ownerWindow(i.current);return f.addEventListener("resize",u),()=>{u.clear(),f.removeEventListener("resize",u)}},[o]),a.useEffect(()=>{p(),o(l.current)},[o]),T.jsx("div",{style:So,...r,ref:i})}process.env.NODE_ENV!=="production"&&(qe.propTypes={onChange:e.PropTypes.func.isRequired});const Le=De.createSvgIcon(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ue=De.createSvgIcon(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function go(t){return e.generateUtilityClass("MuiTabScrollButton",t)}const xo=e.generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Co=t=>{const{classes:o,orientation:r,disabled:l}=t,i={root:["root",r,l&&"disabled"]};return m.composeClasses(i,go,o)},wo=m.styled(We.ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.orientation&&o[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${xo.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Ae=a.forwardRef(function(o,r){const l=m.useDefaultProps({props:o,name:"MuiTabScrollButton"}),{className:i,slots:p={},slotProps:u={},direction:f,orientation:y,disabled:P,...S}=l,h=Oe.useRtl(),v={isRtl:h,...l},x=Co(v),k=p.StartScrollButtonIcon??Le,E=p.EndScrollButtonIcon??Ue,C=te.useSlotProps({elementType:k,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),L=te.useSlotProps({elementType:E,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return T.jsx(wo,{component:"div",className:e.clsx(x.root,i),ref:r,role:null,ownerState:v,tabIndex:null,...S,style:{...S.style,...y==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:f==="left"?T.jsx(k,{...C}):T.jsx(E,{...L})})});process.env.NODE_ENV!=="production"&&(Ae.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,direction:e.PropTypes.oneOf(["left","right"]).isRequired,disabled:e.PropTypes.bool,orientation:e.PropTypes.oneOf(["horizontal","vertical"]).isRequired,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),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])});function Fe(t){return e.generateUtilityClass("MuiTabs",t)}const oe=e.generateUtilityClasses("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ie=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,Me=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,ee=(t,o,r)=>{let l=!1,i=r(t,o);for(;i;){if(i===t.firstChild){if(l)return;l=!0}const p=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||p)i=r(t,i);else{i.focus();return}}},Bo=t=>{const{vertical:o,fixed:r,hideScrollbar:l,scrollableX:i,scrollableY:p,centered:u,scrollButtonsHideMobile:f,classes:y}=t,P={root:["root",o&&"vertical"],scroller:["scroller",r&&"fixed",l&&"hideScrollbar",i&&"scrollableX",p&&"scrollableY"],flexContainer:["flexContainer",o&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[l&&"hideScrollbar"]};return m.composeClasses(P,Fe,y)},Eo=m.styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[{[`& .${oe.scrollButtons}`]:o.scrollButtons},{[`& .${oe.scrollButtons}`]:r.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,r.vertical&&o.vertical]}})(pe.memoTheme(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${oe.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Io=m.styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.scroller,r.fixed&&o.fixed,r.hideScrollbar&&o.hideScrollbar,r.scrollableX&&o.scrollableX,r.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Mo=m.styled("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.flexContainer,r.vertical&&o.flexContainerVertical,r.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Ro=m.styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,o)=>o.indicator})(pe.memoTheme(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),No=m.styled(qe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Re={};let Ne=!1;const ye=a.forwardRef(function(o,r){const l=m.useDefaultProps({props:o,name:"MuiTabs"}),i=po.useTheme(),p=Oe.useRtl(),{"aria-label":u,"aria-labelledby":f,action:y,centered:P=!1,children:S,className:h,component:v="div",allowScrollButtonsMobile:x=!1,indicatorColor:k="primary",onChange:E,orientation:C="horizontal",ScrollButtonComponent:L=Ae,scrollButtons:M="auto",selectionFollowsFocus:re,slots:U={},slotProps:F={},TabIndicatorProps:A={},TabScrollButtonProps:D={},textColor:Y="primary",value:O,variant:R="standard",visibleScrollbar:ne=!1,...Ke}=l,w=R==="scrollable",B=C==="vertical",V=B?"scrollTop":"scrollLeft",K=B?"top":"left",G=B?"bottom":"right",se=B?"clientHeight":"clientWidth",H=B?"height":"width",W={...l,component:v,allowScrollButtonsMobile:x,indicatorColor:k,orientation:C,vertical:B,scrollButtons:M,textColor:Y,variant:R,visibleScrollbar:ne,fixed:!w,hideScrollbar:w&&!ne,scrollableX:w&&!B,scrollableY:w&&B,centered:P&&!w,scrollButtonsHideMobile:!x},j=Bo(W),Ge=te.useSlotProps({elementType:U.StartScrollButtonIcon,externalSlotProps:F.startScrollButtonIcon,ownerState:W}),Je=te.useSlotProps({elementType:U.EndScrollButtonIcon,externalSlotProps:F.endScrollButtonIcon,ownerState:W});process.env.NODE_ENV!=="production"&&P&&w&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[Te,Qe]=a.useState(!1),[$,he]=a.useState(Re),[Pe,Ze]=a.useState(!1),[ve,eo]=a.useState(!1),[me,oo]=a.useState(!1),[Se,to]=a.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,N=a.useRef(null),z=a.useRef(null),ge=()=>{const n=N.current;let s;if(n){const d=n.getBoundingClientRect();s={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollWidth:n.scrollWidth,top:d.top,bottom:d.bottom,left:d.left,right:d.right}}let c;if(n&&O!==!1){const d=z.current.children;if(d.length>0){const b=d[J.get(O)];process.env.NODE_ENV!=="production"&&(b||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${O}".`,J.keys?`You can provide one of the following values: ${Array.from(J.keys()).join(", ")}.`:null].join(`
|
|
2
|
-
`))),c=b?b.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Ne&&c&&c.width===0&&c.height===0&&s.clientWidth!==0&&(s=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${O}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
3
|
-
`)),Ne=!0)}}return{tabsMeta:s,tabMeta:c}},_=ce.useEventCallback(()=>{const{tabsMeta:n,tabMeta:s}=ge();let c=0,d;B?(d="top",s&&n&&(c=s.top-n.top+n.scrollTop)):(d=p?"right":"left",s&&n&&(c=(p?-1:1)*(s[d]-n[d]+n.scrollLeft)));const b={[d]:c,[H]:s?s[H]:0};if(typeof $[d]!="number"||typeof $[H]!="number")he(b);else{const I=Math.abs($[d]-b[d]),q=Math.abs($[H]-b[H]);(I>=1||q>=1)&&he(b)}}),le=(n,{animation:s=!0}={})=>{s?mo(V,N.current,n,{duration:i.transitions.duration.standard}):N.current[V]=n},xe=n=>{let s=N.current[V];B?s+=n:s+=n*(p?-1:1),le(s)},Ce=()=>{const n=N.current[se];let s=0;const c=Array.from(z.current.children);for(let d=0;d<c.length;d+=1){const b=c[d];if(s+b[se]>n){d===0&&(s=n);break}s+=b[se]}return s},ro=()=>{xe(-1*Ce())},no=()=>{xe(Ce())},so=a.useCallback(n=>{to({overflow:null,scrollbarWidth:n})},[]),lo=()=>{const n={};n.scrollbarSizeListener=w?T.jsx(No,{onChange:so,className:e.clsx(j.scrollableX,j.hideScrollbar)}):null;const c=w&&(M==="auto"&&(Pe||ve)||M===!0);return n.scrollButtonStart=c?T.jsx(L,{slots:{StartScrollButtonIcon:U.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ge},orientation:C,direction:p?"right":"left",onClick:ro,disabled:!Pe,...D,className:e.clsx(j.scrollButtons,D.className)}):null,n.scrollButtonEnd=c?T.jsx(L,{slots:{EndScrollButtonIcon:U.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Je},orientation:C,direction:p?"left":"right",onClick:no,disabled:!ve,...D,className:e.clsx(j.scrollButtons,D.className)}):null,n},we=ce.useEventCallback(n=>{const{tabsMeta:s,tabMeta:c}=ge();if(!(!c||!s)){if(c[K]<s[K]){const d=s[V]+(c[K]-s[K]);le(d,{animation:n})}else if(c[G]>s[G]){const d=s[V]+(c[G]-s[G]);le(d,{animation:n})}}}),Q=ce.useEventCallback(()=>{w&&M!==!1&&oo(!me)});a.useEffect(()=>{const n=je.debounce(()=>{N.current&&_()});let s;const c=I=>{I.forEach(q=>{q.removedNodes.forEach(X=>{s==null||s.unobserve(X)}),q.addedNodes.forEach(X=>{s==null||s.observe(X)})}),n(),Q()},d=ke.ownerWindow(N.current);d.addEventListener("resize",n);let b;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(n),Array.from(z.current.children).forEach(I=>{s.observe(I)})),typeof MutationObserver<"u"&&(b=new MutationObserver(c),b.observe(z.current,{childList:!0})),()=>{n.clear(),d.removeEventListener("resize",n),b==null||b.disconnect(),s==null||s.disconnect()}},[_,Q]),a.useEffect(()=>{const n=Array.from(z.current.children),s=n.length;if(typeof IntersectionObserver<"u"&&s>0&&w&&M!==!1){const c=n[0],d=n[s-1],b={root:N.current,threshold:.99},I=ie=>{Ze(!ie[0].isIntersecting)},q=new IntersectionObserver(I,b);q.observe(c);const X=ie=>{eo(!ie[0].isIntersecting)},Ee=new IntersectionObserver(X,b);return Ee.observe(d),()=>{q.disconnect(),Ee.disconnect()}}},[w,M,me,S==null?void 0:S.length]),a.useEffect(()=>{Qe(!0)},[]),a.useEffect(()=>{_()}),a.useEffect(()=>{we(Re!==$)},[we,$]),a.useImperativeHandle(y,()=>({updateIndicator:_,updateScrollButtons:Q}),[_,Q]);const Be=T.jsx(Ro,{...A,className:e.clsx(j.indicator,A.className),ownerState:W,style:{...$,...A.style}});let Z=0;const ao=a.Children.map(S,n=>{if(!a.isValidElement(n))return null;process.env.NODE_ENV!=="production"&&e.reactIsExports.isFragment(n)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
4
|
-
`));const s=n.props.value===void 0?Z:n.props.value;J.set(s,Z);const c=s===O;return Z+=1,a.cloneElement(n,{fullWidth:R==="fullWidth",indicator:c&&!Te&&Be,selected:c,selectionFollowsFocus:re,onChange:E,textColor:Y,value:s,...Z===1&&O===!1&&!n.props.tabIndex?{tabIndex:0}:{}})}),io=n=>{const s=z.current,c=fo.ownerDocument(s).activeElement;if(c.getAttribute("role")!=="tab")return;let b=C==="horizontal"?"ArrowLeft":"ArrowUp",I=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&p&&(b="ArrowRight",I="ArrowLeft"),n.key){case b:n.preventDefault(),ee(s,c,Me);break;case I:n.preventDefault(),ee(s,c,Ie);break;case"Home":n.preventDefault(),ee(s,null,Ie);break;case"End":n.preventDefault(),ee(s,null,Me);break}},ae=lo();return T.jsxs(Eo,{className:e.clsx(j.root,h),ownerState:W,ref:r,as:v,...Ke,children:[ae.scrollButtonStart,ae.scrollbarSizeListener,T.jsxs(Io,{className:j.scroller,ownerState:W,style:{overflow:Se.overflow,[B?`margin${p?"Left":"Right"}`:"marginBottom"]:ne?void 0:-Se.scrollbarWidth},ref:N,children:[T.jsx(Mo,{"aria-label":u,"aria-labelledby":f,"aria-orientation":C==="vertical"?"vertical":null,className:j.flexContainer,ownerState:W,onKeyDown:io,ref:z,role:"tablist",children:ao}),Te&&Be]}),ae.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(ye.propTypes={action:bo.refType,allowScrollButtonsMobile:e.PropTypes.bool,"aria-label":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,centered:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,indicatorColor:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary"]),e.PropTypes.string]),onChange:e.PropTypes.func,orientation:e.PropTypes.oneOf(["horizontal","vertical"]),ScrollButtonComponent:e.PropTypes.elementType,scrollButtons:e.PropTypes.oneOf(["auto",!1,!0]),selectionFollowsFocus:e.PropTypes.bool,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TabIndicatorProps:e.PropTypes.object,TabScrollButtonProps:e.PropTypes.object,textColor:e.PropTypes.oneOf(["inherit","primary","secondary"]),value:e.PropTypes.any,variant:e.PropTypes.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:e.PropTypes.bool});const Ve=a.forwardRef(function(o,r){const{children:l,...i}=o,p=ue();if(p===null)throw new TypeError("No TabContext provided");const u=a.Children.map(l,f=>a.isValidElement(f)?a.cloneElement(f,{"aria-controls":fe(p,f.props.value),id:be(p,f.props.value)}):null);return T.jsx(ye,{...i,ref:r,value:p.value,children:u})});process.env.NODE_ENV!=="production"&&(Ve.propTypes={children:e.PropTypes.node});function He(t){return e.generateUtilityClass("MuiTabPanel",t)}const Oo=e.generateUtilityClasses("MuiTabPanel",["root","hidden"]),jo=t=>{const{classes:o,hidden:r}=t,l={root:["root",r&&"hidden"]};return m.composeClasses(l,He,o)},ko=m.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(t,o)=>o.root})(({theme:t})=>({padding:t.spacing(3)})),_e=a.forwardRef(function(o,r){const l=yo.useThemeProps({props:o,name:"MuiTabPanel"}),{children:i,className:p,value:u,keepMounted:f=!1,...y}=l,P={...l},S=jo(P),h=ue();if(h===null)throw new TypeError("No TabContext provided");const v=fe(h,u),x=be(h,u);return T.jsx(ko,{"aria-labelledby":x,className:e.clsx(S.root,p),hidden:u!==h.value,id:v,ref:r,role:"tabpanel",ownerState:P,...y,children:(f||u===h.value)&&i})});process.env.NODE_ENV!=="production"&&(_e.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,keepMounted: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]),value:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).isRequired});function Xe(t){return e.generateUtilityClass("MuiTab",t)}const g=e.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Do=t=>{const{classes:o,textColor:r,fullWidth:l,wrapped:i,icon:p,label:u,selected:f,disabled:y}=t,P={root:["root",p&&u&&"labelIcon",`textColor${$e.capitalize(r)}`,l&&"fullWidth",i&&"wrapped",f&&"selected",y&&"disabled"],icon:["iconWrapper","icon"]};return m.composeClasses(P,Xe,o)},Wo=m.styled(We.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.label&&r.icon&&o.labelIcon,o[`textColor${$e.capitalize(r.textColor)}`],r.fullWidth&&o.fullWidth,r.wrapped&&o.wrapped,{[`& .${g.iconWrapper}`]:o.iconWrapper},{[`& .${g.icon}`]:o.icon}]}})(pe.memoTheme(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="top",style:{[`& > .${g.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="bottom",style:{[`& > .${g.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="start",style:{[`& > .${g.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="end",style:{[`& > .${g.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${g.selected}`]:{opacity:1},[`&.${g.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${g.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${g.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${g.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${g.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Ye=a.forwardRef(function(o,r){const l=m.useDefaultProps({props:o,name:"MuiTab"}),{className:i,disabled:p=!1,disableFocusRipple:u=!1,fullWidth:f,icon:y,iconPosition:P="top",indicator:S,label:h,onChange:v,onClick:x,onFocus:k,selected:E,selectionFollowsFocus:C,textColor:L="inherit",value:M,wrapped:re=!1,...U}=l,F={...l,disabled:p,disableFocusRipple:u,selected:E,icon:!!y,iconPosition:P,label:!!h,fullWidth:f,textColor:L,wrapped:re},A=Do(F),D=y&&h&&a.isValidElement(y)?a.cloneElement(y,{className:e.clsx(A.icon,y.props.className)}):y,Y=R=>{!E&&v&&v(R,M),x&&x(R)},O=R=>{C&&!E&&v&&v(R,M),k&&k(R)};return T.jsxs(Wo,{focusRipple:!u,className:e.clsx(A.root,i),ref:r,role:"tab","aria-selected":E,disabled:p,onClick:Y,onFocus:O,ownerState:F,tabIndex:E?0:-1,...U,children:[P==="top"||P==="start"?T.jsxs(a.Fragment,{children:[D,h]}):T.jsxs(a.Fragment,{children:[h,D]}),S]})});process.env.NODE_ENV!=="production"&&(Ye.propTypes={children:To.unsupportedProp,classes:e.PropTypes.object,className:e.PropTypes.string,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.oneOfType([e.PropTypes.element,e.PropTypes.string]),iconPosition:e.PropTypes.oneOf(["bottom","end","start","top"]),label:e.PropTypes.node,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.any,wrapped:e.PropTypes.bool});exports.KeyboardArrowLeft=Le;exports.KeyboardArrowRight=Ue;exports.Tab=Ye;exports.TabContext=ze;exports.TabList=Ve;exports.TabPanel=_e;exports.Tabs=ye;exports.getPanelId=fe;exports.getTabId=be;exports.getTabPanelUtilityClass=He;exports.getTabUtilityClass=Xe;exports.getTabsUtilityClass=Fe;exports.tabClasses=g;exports.tabPanelClasses=Oo;exports.tabsClasses=oe;exports.useTabContext=ue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const be=require("react"),e=require("./generateUtilityClasses-KugHyZhN.cjs"),x=require("./useSlot-CGbU9jGm.cjs"),a=require("react/jsx-runtime"),T=require("./DefaultPropsProvider-BTnRBr0O.cjs"),xe=require("./useId-DNXtOFeX.cjs"),g=require("./Select-b6liJFDI.cjs"),ge=require("./formControlState-CuX6WjAX.cjs"),he=require("./useFormControl-haP0iPhl.cjs"),Fe=require("./memoTheme-WwIyYqBX.cjs"),B=require("./capitalize-B3tmp8MO.cjs"),ve=require("./FormLabel-Cp2OFw8d.cjs"),Oe=require("./refType-D-n-tVSl.cjs");function Ce(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 W=Ce(be);function k(o){return e.generateUtilityClass("MuiFormHelperText",o)}const z=e.generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var V;const Se=o=>{const{classes:r,contained:s,size:t,disabled:u,error:c,filled:n,focused:h,required:y}=o,F={root:["root",u&&"disabled",c&&"error",t&&`size${B.capitalize(t)}`,s&&"contained",h&&"focused",n&&"filled",y&&"required"]};return T.composeClasses(F,k,r)},je=T.styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.size&&r[`size${B.capitalize(s.size)}`],s.contained&&r.contained,s.filled&&r.filled]}})(Fe.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,...o.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${z.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${z.error}`]:{color:(o.vars||o).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),L=W.forwardRef(function(r,s){const t=T.useDefaultProps({props:r,name:"MuiFormHelperText"}),{children:u,className:c,component:n="p",disabled:h,error:y,filled:F,focused:S,margin:j,required:N,variant:v,...P}=t,I=he.useFormControl(),p=ge.formControlState({props:t,muiFormControl:I,states:["variant","size","disabled","error","filled","focused","required"]}),f={...t,component:n,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete f.ownerState;const q=Se(f);return a.jsx(je,{as:n,className:e.clsx(q.root,c),ref:s,...P,ownerState:f,children:u===" "?V||(V=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):u})});process.env.NODE_ENV!=="production"&&(L.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,filled:e.PropTypes.bool,focused:e.PropTypes.bool,margin:e.PropTypes.oneOf(["dense"]),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]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["filled","outlined","standard"]),e.PropTypes.string])});function A(o){return e.generateUtilityClass("MuiTextField",o)}const Ie=e.generateUtilityClasses("MuiTextField",["root"]),qe={standard:g.Input,filled:g.FilledInput,outlined:g.OutlinedInput},we=o=>{const{classes:r}=o,s={root:["root"]};return T.composeClasses(s,A,r)},He=T.styled(ve.FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(o,r)=>r.root})({}),G=W.forwardRef(function(r,s){const t=T.useDefaultProps({props:r,name:"MuiTextField"}),{autoComplete:u,autoFocus:c=!1,children:n,className:h,color:y="primary",defaultValue:F,disabled:S=!1,error:j=!1,FormHelperTextProps:N,fullWidth:v=!1,helperText:P,id:I,InputLabelProps:p,inputProps:f,InputProps:q,inputRef:J,label:m,maxRows:K,minRows:Q,multiline:U=!1,name:X,onBlur:Y,onChange:Z,onFocus:ee,placeholder:oe,required:M=!1,rows:re,select:O=!1,SelectProps:w,slots:D={},slotProps:se={},type:te,value:E,variant:C="outlined",...pe}=t,l={...t,autoFocus:c,color:y,disabled:S,error:j,fullWidth:v,multiline:U,required:M,select:O,variant:C},ne=we(l);process.env.NODE_ENV!=="production"&&O&&!n&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const i=xe.useId(I),H=P&&i?`${i}-helper-text`:void 0,_=m&&i?`${i}-label`:void 0,le=qe[C],d={slots:D,slotProps:{input:q,inputLabel:p,htmlInput:f,formHelperText:N,select:w,...se}},b={},R=d.slotProps.inputLabel;C==="outlined"&&(R&&typeof R.shrink<"u"&&(b.notched=R.shrink),b.label=m),O&&((!w||!w.native)&&(b.id=void 0),b["aria-describedby"]=void 0);const[ie,ae]=x.useSlot("input",{elementType:le,externalForwardedProps:d,additionalProps:b,ownerState:l}),[ue,ce]=x.useSlot("inputLabel",{elementType:g.InputLabel,externalForwardedProps:d,ownerState:l}),[de,Te]=x.useSlot("htmlInput",{elementType:"input",externalForwardedProps:d,ownerState:l}),[ye,Pe]=x.useSlot("formHelperText",{elementType:L,externalForwardedProps:d,ownerState:l}),[fe,me]=x.useSlot("select",{elementType:g.Select,externalForwardedProps:d,ownerState:l}),$=a.jsx(ie,{"aria-describedby":H,autoComplete:u,autoFocus:c,defaultValue:F,fullWidth:v,multiline:U,name:X,rows:re,maxRows:K,minRows:Q,type:te,value:E,id:i,inputRef:J,onBlur:Y,onChange:Z,onFocus:ee,placeholder:oe,inputProps:Te,slots:{input:D.htmlInput?de:void 0},...ae});return a.jsxs(He,{className:e.clsx(ne.root,h),disabled:S,error:j,fullWidth:v,ref:s,required:M,color:y,variant:C,ownerState:l,...pe,children:[m!=null&&m!==""&&a.jsx(ue,{htmlFor:i,id:_,...ce,children:m}),O?a.jsx(fe,{"aria-describedby":H,id:i,labelId:_,value:E,input:$,...me,children:n}):$,P&&a.jsx(ye,{id:H,...Pe,children:P})]})});process.env.NODE_ENV!=="production"&&(G.propTypes={autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,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]),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,error:e.PropTypes.bool,FormHelperTextProps:e.PropTypes.object,fullWidth:e.PropTypes.bool,helperText:e.PropTypes.node,id:e.PropTypes.string,InputLabelProps:e.PropTypes.object,inputProps:e.PropTypes.object,InputProps:e.PropTypes.object,inputRef:Oe.refType,label:e.PropTypes.node,margin:e.PropTypes.oneOf(["dense","none","normal"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,placeholder:e.PropTypes.string,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),select:e.PropTypes.bool,SelectProps:e.PropTypes.object,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({formHelperText:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),htmlInput:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),inputLabel:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),select:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({formHelperText:e.PropTypes.elementType,htmlInput:e.PropTypes.elementType,input:e.PropTypes.elementType,inputLabel:e.PropTypes.elementType,select:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.string,value:e.PropTypes.any,variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.FormHelperText=L;exports.TextField=G;exports.formHelperTextClasses=z;exports.getFormHelperTextUtilityClasses=k;exports.getTextFieldUtilityClass=A;exports.textFieldClasses=Ie;
|