@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,44 +1,43 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { P as
|
|
3
|
-
import { jsx as T, jsxs as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { m as
|
|
8
|
-
import { u as
|
|
9
|
-
import { d as
|
|
10
|
-
import { o as
|
|
11
|
-
import {
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { o as
|
|
16
|
-
import { r as
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const [t, e] = s.useState(null);
|
|
2
|
+
import { P as e, F as ae, G as ie, H as j, Z as wo, K as ze } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { jsx as T, jsxs as G } from "react/jsx-runtime";
|
|
4
|
+
import { u as Fe } from "./index-DP697UN9.js";
|
|
5
|
+
import { u as xo } from "./useTheme-Dt-VOIyT.js";
|
|
6
|
+
import { u as Se, s as D, c as ce } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
7
|
+
import { m as ve } from "./memoTheme-D_Qap2ZW.js";
|
|
8
|
+
import { a as Bo, u as me } from "./useEventCallback-Yoj9nCug.js";
|
|
9
|
+
import { d as Ae } from "./debounce-46wSf_lW.js";
|
|
10
|
+
import { o as Ve } from "./ownerWindow-niciwP7I.js";
|
|
11
|
+
import { u as H } from "./useSlot-DhC6EPU2.js";
|
|
12
|
+
import { u as se } from "./useSlotProps-Bos9nSja.js";
|
|
13
|
+
import { c as He } from "./createSvgIcon-CCutbgLb.js";
|
|
14
|
+
import { B as Ue } from "./ButtonBase-BZXGvriS.js";
|
|
15
|
+
import { o as Co } from "./ownerDocument-CUrv0DIK.js";
|
|
16
|
+
import { r as Eo } from "./refType-DRBJ18fO.js";
|
|
17
|
+
import { u as Io } from "./useThemeProps-CxMYNgfp.js";
|
|
18
|
+
import { u as Po } from "./unsupportedProp-BuVD30Gh.js";
|
|
19
|
+
const Te = /* @__PURE__ */ s.createContext(null);
|
|
20
|
+
process.env.NODE_ENV !== "production" && (Te.displayName = "TabContext");
|
|
21
|
+
function Mo() {
|
|
22
|
+
const [t, o] = s.useState(null);
|
|
24
23
|
return s.useEffect(() => {
|
|
25
|
-
|
|
24
|
+
o(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
26
25
|
}, []), t;
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function Oo(t) {
|
|
29
28
|
const {
|
|
30
|
-
children:
|
|
31
|
-
value:
|
|
32
|
-
} = t, a =
|
|
29
|
+
children: o,
|
|
30
|
+
value: r
|
|
31
|
+
} = t, a = Mo(), i = s.useMemo(() => ({
|
|
33
32
|
idPrefix: a,
|
|
34
|
-
value:
|
|
35
|
-
}), [a,
|
|
36
|
-
return /* @__PURE__ */ T(
|
|
33
|
+
value: r
|
|
34
|
+
}), [a, r]);
|
|
35
|
+
return /* @__PURE__ */ T(Te.Provider, {
|
|
37
36
|
value: i,
|
|
38
|
-
children:
|
|
37
|
+
children: o
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
|
-
process.env.NODE_ENV !== "production" && (
|
|
40
|
+
process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
42
41
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
43
42
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
44
43
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -46,50 +45,50 @@ process.env.NODE_ENV !== "production" && (ho.propTypes = {
|
|
|
46
45
|
/**
|
|
47
46
|
* The content of the component.
|
|
48
47
|
*/
|
|
49
|
-
children:
|
|
48
|
+
children: e.node,
|
|
50
49
|
/**
|
|
51
50
|
* The value of the currently selected `Tab`.
|
|
52
51
|
*/
|
|
53
|
-
value:
|
|
52
|
+
value: e.oneOfType([e.number, e.string]).isRequired
|
|
54
53
|
});
|
|
55
|
-
function
|
|
56
|
-
return s.useContext(
|
|
54
|
+
function Ke() {
|
|
55
|
+
return s.useContext(Te);
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function Xe(t, o) {
|
|
59
58
|
const {
|
|
60
|
-
idPrefix:
|
|
59
|
+
idPrefix: r
|
|
61
60
|
} = t;
|
|
62
|
-
return
|
|
61
|
+
return r === null ? null : `${t.idPrefix}-P-${o}`;
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function _e(t, o) {
|
|
65
64
|
const {
|
|
66
|
-
idPrefix:
|
|
65
|
+
idPrefix: r
|
|
67
66
|
} = t;
|
|
68
|
-
return
|
|
67
|
+
return r === null ? null : `${t.idPrefix}-T-${o}`;
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function Ro(t) {
|
|
71
70
|
return (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2;
|
|
72
71
|
}
|
|
73
|
-
function
|
|
72
|
+
function No(t, o, r, a = {}, i = () => {
|
|
74
73
|
}) {
|
|
75
74
|
const {
|
|
76
|
-
ease: d =
|
|
75
|
+
ease: d = Ro,
|
|
77
76
|
duration: p = 300
|
|
78
77
|
// standard
|
|
79
78
|
} = a;
|
|
80
79
|
let f = null;
|
|
81
|
-
const h =
|
|
80
|
+
const h = o[t];
|
|
82
81
|
let S = !1;
|
|
83
|
-
const
|
|
82
|
+
const v = () => {
|
|
84
83
|
S = !0;
|
|
85
|
-
}, m = (
|
|
84
|
+
}, m = (y) => {
|
|
86
85
|
if (S) {
|
|
87
86
|
i(new Error("Animation cancelled"));
|
|
88
87
|
return;
|
|
89
88
|
}
|
|
90
|
-
f === null && (f =
|
|
91
|
-
const g = Math.min(1, (
|
|
92
|
-
if (
|
|
89
|
+
f === null && (f = y);
|
|
90
|
+
const g = Math.min(1, (y - f) / p);
|
|
91
|
+
if (o[t] = d(g) * (r - h) + h, g >= 1) {
|
|
93
92
|
requestAnimationFrame(() => {
|
|
94
93
|
i(null);
|
|
95
94
|
});
|
|
@@ -97,72 +96,72 @@ function vo(t, e, n, a = {}, i = () => {
|
|
|
97
96
|
}
|
|
98
97
|
requestAnimationFrame(m);
|
|
99
98
|
};
|
|
100
|
-
return h ===
|
|
99
|
+
return h === r ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(m), v);
|
|
101
100
|
}
|
|
102
|
-
const
|
|
101
|
+
const jo = {
|
|
103
102
|
width: 99,
|
|
104
103
|
height: 99,
|
|
105
104
|
position: "absolute",
|
|
106
105
|
top: -9999,
|
|
107
106
|
overflow: "scroll"
|
|
108
107
|
};
|
|
109
|
-
function
|
|
108
|
+
function Ye(t) {
|
|
110
109
|
const {
|
|
111
|
-
onChange:
|
|
112
|
-
...
|
|
110
|
+
onChange: o,
|
|
111
|
+
...r
|
|
113
112
|
} = t, a = s.useRef(), i = s.useRef(null), d = () => {
|
|
114
113
|
a.current = i.current.offsetHeight - i.current.clientHeight;
|
|
115
114
|
};
|
|
116
|
-
return
|
|
117
|
-
const p =
|
|
115
|
+
return Bo(() => {
|
|
116
|
+
const p = Ae(() => {
|
|
118
117
|
const h = a.current;
|
|
119
|
-
d(), h !== a.current &&
|
|
120
|
-
}), f =
|
|
118
|
+
d(), h !== a.current && o(a.current);
|
|
119
|
+
}), f = Ve(i.current);
|
|
121
120
|
return f.addEventListener("resize", p), () => {
|
|
122
121
|
p.clear(), f.removeEventListener("resize", p);
|
|
123
122
|
};
|
|
124
|
-
}, [
|
|
125
|
-
d(),
|
|
126
|
-
}, [
|
|
127
|
-
style:
|
|
128
|
-
...
|
|
123
|
+
}, [o]), s.useEffect(() => {
|
|
124
|
+
d(), o(a.current);
|
|
125
|
+
}, [o]), /* @__PURE__ */ T("div", {
|
|
126
|
+
style: jo,
|
|
127
|
+
...r,
|
|
129
128
|
ref: i
|
|
130
129
|
});
|
|
131
130
|
}
|
|
132
|
-
process.env.NODE_ENV !== "production" && (
|
|
133
|
-
onChange:
|
|
131
|
+
process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
132
|
+
onChange: e.func.isRequired
|
|
134
133
|
});
|
|
135
|
-
const
|
|
134
|
+
const ko = He(/* @__PURE__ */ T("path", {
|
|
136
135
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
137
|
-
}), "KeyboardArrowLeft"),
|
|
136
|
+
}), "KeyboardArrowLeft"), $o = He(/* @__PURE__ */ T("path", {
|
|
138
137
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
139
138
|
}), "KeyboardArrowRight");
|
|
140
|
-
function
|
|
141
|
-
return
|
|
139
|
+
function Do(t) {
|
|
140
|
+
return ie("MuiTabScrollButton", t);
|
|
142
141
|
}
|
|
143
|
-
const
|
|
142
|
+
const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), Lo = (t) => {
|
|
144
143
|
const {
|
|
145
|
-
classes:
|
|
146
|
-
orientation:
|
|
144
|
+
classes: o,
|
|
145
|
+
orientation: r,
|
|
147
146
|
disabled: a
|
|
148
147
|
} = t;
|
|
149
|
-
return
|
|
150
|
-
root: ["root",
|
|
151
|
-
},
|
|
152
|
-
},
|
|
148
|
+
return ce({
|
|
149
|
+
root: ["root", r, a && "disabled"]
|
|
150
|
+
}, Do, o);
|
|
151
|
+
}, zo = D(Ue, {
|
|
153
152
|
name: "MuiTabScrollButton",
|
|
154
153
|
slot: "Root",
|
|
155
|
-
overridesResolver: (t,
|
|
154
|
+
overridesResolver: (t, o) => {
|
|
156
155
|
const {
|
|
157
|
-
ownerState:
|
|
156
|
+
ownerState: r
|
|
158
157
|
} = t;
|
|
159
|
-
return [
|
|
158
|
+
return [o.root, r.orientation && o[r.orientation]];
|
|
160
159
|
}
|
|
161
160
|
})({
|
|
162
161
|
width: 40,
|
|
163
162
|
flexShrink: 0,
|
|
164
163
|
opacity: 0.8,
|
|
165
|
-
[`&.${
|
|
164
|
+
[`&.${Wo.disabled}`]: {
|
|
166
165
|
opacity: 0
|
|
167
166
|
},
|
|
168
167
|
variants: [{
|
|
@@ -177,9 +176,9 @@ const wo = re("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
177
176
|
}
|
|
178
177
|
}
|
|
179
178
|
}]
|
|
180
|
-
}),
|
|
181
|
-
const a =
|
|
182
|
-
props:
|
|
179
|
+
}), qe = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
180
|
+
const a = Se({
|
|
181
|
+
props: o,
|
|
183
182
|
name: "MuiTabScrollButton"
|
|
184
183
|
}), {
|
|
185
184
|
className: i,
|
|
@@ -188,47 +187,47 @@ const wo = re("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
188
187
|
direction: f,
|
|
189
188
|
orientation: h,
|
|
190
189
|
disabled: S,
|
|
191
|
-
...
|
|
192
|
-
} = a, m =
|
|
190
|
+
...v
|
|
191
|
+
} = a, m = Fe(), y = {
|
|
193
192
|
isRtl: m,
|
|
194
193
|
...a
|
|
195
|
-
}, g =
|
|
194
|
+
}, g = Lo(y), W = d.StartScrollButtonIcon ?? ko, E = d.EndScrollButtonIcon ?? $o, x = se({
|
|
196
195
|
elementType: W,
|
|
197
196
|
externalSlotProps: p.startScrollButtonIcon,
|
|
198
197
|
additionalProps: {
|
|
199
198
|
fontSize: "small"
|
|
200
199
|
},
|
|
201
|
-
ownerState:
|
|
202
|
-
}),
|
|
200
|
+
ownerState: y
|
|
201
|
+
}), Z = se({
|
|
203
202
|
elementType: E,
|
|
204
203
|
externalSlotProps: p.endScrollButtonIcon,
|
|
205
204
|
additionalProps: {
|
|
206
205
|
fontSize: "small"
|
|
207
206
|
},
|
|
208
|
-
ownerState:
|
|
207
|
+
ownerState: y
|
|
209
208
|
});
|
|
210
|
-
return /* @__PURE__ */ T(
|
|
209
|
+
return /* @__PURE__ */ T(zo, {
|
|
211
210
|
component: "div",
|
|
212
|
-
className:
|
|
213
|
-
ref:
|
|
211
|
+
className: j(g.root, i),
|
|
212
|
+
ref: r,
|
|
214
213
|
role: null,
|
|
215
|
-
ownerState:
|
|
214
|
+
ownerState: y,
|
|
216
215
|
tabIndex: null,
|
|
217
|
-
...
|
|
216
|
+
...v,
|
|
218
217
|
style: {
|
|
219
|
-
...
|
|
218
|
+
...v.style,
|
|
220
219
|
...h === "vertical" && {
|
|
221
220
|
"--TabScrollButton-svgRotate": `rotate(${m ? -90 : 90}deg)`
|
|
222
221
|
}
|
|
223
222
|
},
|
|
224
223
|
children: f === "left" ? /* @__PURE__ */ T(W, {
|
|
225
|
-
...
|
|
224
|
+
...x
|
|
226
225
|
}) : /* @__PURE__ */ T(E, {
|
|
227
|
-
...
|
|
226
|
+
...Z
|
|
228
227
|
})
|
|
229
228
|
});
|
|
230
229
|
});
|
|
231
|
-
process.env.NODE_ENV !== "production" && (
|
|
230
|
+
process.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
232
231
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
233
232
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
234
233
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -236,59 +235,59 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
236
235
|
/**
|
|
237
236
|
* The content of the component.
|
|
238
237
|
*/
|
|
239
|
-
children:
|
|
238
|
+
children: e.node,
|
|
240
239
|
/**
|
|
241
240
|
* Override or extend the styles applied to the component.
|
|
242
241
|
*/
|
|
243
|
-
classes:
|
|
242
|
+
classes: e.object,
|
|
244
243
|
/**
|
|
245
244
|
* @ignore
|
|
246
245
|
*/
|
|
247
|
-
className:
|
|
246
|
+
className: e.string,
|
|
248
247
|
/**
|
|
249
248
|
* The direction the button should indicate.
|
|
250
249
|
*/
|
|
251
|
-
direction:
|
|
250
|
+
direction: e.oneOf(["left", "right"]).isRequired,
|
|
252
251
|
/**
|
|
253
252
|
* If `true`, the component is disabled.
|
|
254
253
|
* @default false
|
|
255
254
|
*/
|
|
256
|
-
disabled:
|
|
255
|
+
disabled: e.bool,
|
|
257
256
|
/**
|
|
258
257
|
* The component orientation (layout flow direction).
|
|
259
258
|
*/
|
|
260
|
-
orientation:
|
|
259
|
+
orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
|
|
261
260
|
/**
|
|
262
261
|
* The extra props for the slot components.
|
|
263
262
|
* You can override the existing props or add new ones.
|
|
264
263
|
* @default {}
|
|
265
264
|
*/
|
|
266
|
-
slotProps:
|
|
267
|
-
endScrollButtonIcon:
|
|
268
|
-
startScrollButtonIcon:
|
|
265
|
+
slotProps: e.shape({
|
|
266
|
+
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
267
|
+
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
269
268
|
}),
|
|
270
269
|
/**
|
|
271
270
|
* The components used for each slot inside.
|
|
272
271
|
* @default {}
|
|
273
272
|
*/
|
|
274
|
-
slots:
|
|
275
|
-
EndScrollButtonIcon:
|
|
276
|
-
StartScrollButtonIcon:
|
|
273
|
+
slots: e.shape({
|
|
274
|
+
EndScrollButtonIcon: e.elementType,
|
|
275
|
+
StartScrollButtonIcon: e.elementType
|
|
277
276
|
}),
|
|
278
277
|
/**
|
|
279
278
|
* @ignore
|
|
280
279
|
*/
|
|
281
|
-
style:
|
|
280
|
+
style: e.object,
|
|
282
281
|
/**
|
|
283
282
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
284
283
|
*/
|
|
285
|
-
sx:
|
|
284
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
286
285
|
});
|
|
287
|
-
function
|
|
288
|
-
return
|
|
286
|
+
function Fo(t) {
|
|
287
|
+
return ie("MuiTabs", t);
|
|
289
288
|
}
|
|
290
|
-
const
|
|
291
|
-
let a = !1, i =
|
|
289
|
+
const ye = ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), $e = (t, o) => t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : t.firstChild, De = (t, o) => t === o ? t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : t.lastChild, le = (t, o, r) => {
|
|
290
|
+
let a = !1, i = r(t, o);
|
|
292
291
|
for (; i; ) {
|
|
293
292
|
if (i === t.firstChild) {
|
|
294
293
|
if (a)
|
|
@@ -297,16 +296,16 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
297
296
|
}
|
|
298
297
|
const d = i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
299
298
|
if (!i.hasAttribute("tabindex") || d)
|
|
300
|
-
i =
|
|
299
|
+
i = r(t, i);
|
|
301
300
|
else {
|
|
302
301
|
i.focus();
|
|
303
302
|
return;
|
|
304
303
|
}
|
|
305
304
|
}
|
|
306
|
-
},
|
|
305
|
+
}, Ao = (t) => {
|
|
307
306
|
const {
|
|
308
|
-
vertical:
|
|
309
|
-
fixed:
|
|
307
|
+
vertical: o,
|
|
308
|
+
fixed: r,
|
|
310
309
|
hideScrollbar: a,
|
|
311
310
|
scrollableX: i,
|
|
312
311
|
scrollableY: d,
|
|
@@ -314,29 +313,29 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
314
313
|
scrollButtonsHideMobile: f,
|
|
315
314
|
classes: h
|
|
316
315
|
} = t;
|
|
317
|
-
return
|
|
318
|
-
root: ["root",
|
|
319
|
-
scroller: ["scroller",
|
|
320
|
-
|
|
316
|
+
return ce({
|
|
317
|
+
root: ["root", o && "vertical"],
|
|
318
|
+
scroller: ["scroller", r && "fixed", a && "hideScrollbar", i && "scrollableX", d && "scrollableY"],
|
|
319
|
+
list: ["list", "flexContainer", o && "flexContainerVertical", o && "vertical", p && "centered"],
|
|
321
320
|
indicator: ["indicator"],
|
|
322
321
|
scrollButtons: ["scrollButtons", f && "scrollButtonsHideMobile"],
|
|
323
322
|
scrollableX: [i && "scrollableX"],
|
|
324
323
|
hideScrollbar: [a && "hideScrollbar"]
|
|
325
|
-
},
|
|
326
|
-
},
|
|
324
|
+
}, Fo, h);
|
|
325
|
+
}, Vo = D("div", {
|
|
327
326
|
name: "MuiTabs",
|
|
328
327
|
slot: "Root",
|
|
329
|
-
overridesResolver: (t,
|
|
328
|
+
overridesResolver: (t, o) => {
|
|
330
329
|
const {
|
|
331
|
-
ownerState:
|
|
330
|
+
ownerState: r
|
|
332
331
|
} = t;
|
|
333
332
|
return [{
|
|
334
|
-
[`& .${
|
|
333
|
+
[`& .${ye.scrollButtons}`]: o.scrollButtons
|
|
335
334
|
}, {
|
|
336
|
-
[`& .${
|
|
337
|
-
},
|
|
335
|
+
[`& .${ye.scrollButtons}`]: r.scrollButtonsHideMobile && o.scrollButtonsHideMobile
|
|
336
|
+
}, o.root, r.vertical && o.vertical];
|
|
338
337
|
}
|
|
339
|
-
})(
|
|
338
|
+
})(ve(({
|
|
340
339
|
theme: t
|
|
341
340
|
}) => ({
|
|
342
341
|
overflow: "hidden",
|
|
@@ -346,31 +345,31 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
346
345
|
display: "flex",
|
|
347
346
|
variants: [{
|
|
348
347
|
props: ({
|
|
349
|
-
ownerState:
|
|
350
|
-
}) =>
|
|
348
|
+
ownerState: o
|
|
349
|
+
}) => o.vertical,
|
|
351
350
|
style: {
|
|
352
351
|
flexDirection: "column"
|
|
353
352
|
}
|
|
354
353
|
}, {
|
|
355
354
|
props: ({
|
|
356
|
-
ownerState:
|
|
357
|
-
}) =>
|
|
355
|
+
ownerState: o
|
|
356
|
+
}) => o.scrollButtonsHideMobile,
|
|
358
357
|
style: {
|
|
359
|
-
[`& .${
|
|
358
|
+
[`& .${ye.scrollButtons}`]: {
|
|
360
359
|
[t.breakpoints.down("sm")]: {
|
|
361
360
|
display: "none"
|
|
362
361
|
}
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
364
|
}]
|
|
366
|
-
}))),
|
|
365
|
+
}))), Ho = D("div", {
|
|
367
366
|
name: "MuiTabs",
|
|
368
367
|
slot: "Scroller",
|
|
369
|
-
overridesResolver: (t,
|
|
368
|
+
overridesResolver: (t, o) => {
|
|
370
369
|
const {
|
|
371
|
-
ownerState:
|
|
370
|
+
ownerState: r
|
|
372
371
|
} = t;
|
|
373
|
-
return [
|
|
372
|
+
return [o.scroller, r.fixed && o.fixed, r.hideScrollbar && o.hideScrollbar, r.scrollableX && o.scrollableX, r.scrollableY && o.scrollableY];
|
|
374
373
|
}
|
|
375
374
|
})({
|
|
376
375
|
position: "relative",
|
|
@@ -415,14 +414,14 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
415
414
|
overflowX: "hidden"
|
|
416
415
|
}
|
|
417
416
|
}]
|
|
418
|
-
}),
|
|
417
|
+
}), Uo = D("div", {
|
|
419
418
|
name: "MuiTabs",
|
|
420
|
-
slot: "
|
|
421
|
-
overridesResolver: (t,
|
|
419
|
+
slot: "List",
|
|
420
|
+
overridesResolver: (t, o) => {
|
|
422
421
|
const {
|
|
423
|
-
ownerState:
|
|
422
|
+
ownerState: r
|
|
424
423
|
} = t;
|
|
425
|
-
return [
|
|
424
|
+
return [o.list, o.flexContainer, r.vertical && o.flexContainerVertical, r.centered && o.centered];
|
|
426
425
|
}
|
|
427
426
|
})({
|
|
428
427
|
display: "flex",
|
|
@@ -441,11 +440,11 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
441
440
|
justifyContent: "center"
|
|
442
441
|
}
|
|
443
442
|
}]
|
|
444
|
-
}),
|
|
443
|
+
}), Ko = D("span", {
|
|
445
444
|
name: "MuiTabs",
|
|
446
445
|
slot: "Indicator",
|
|
447
|
-
overridesResolver: (t,
|
|
448
|
-
})(
|
|
446
|
+
overridesResolver: (t, o) => o.indicator
|
|
447
|
+
})(ve(({
|
|
449
448
|
theme: t
|
|
450
449
|
}) => ({
|
|
451
450
|
position: "absolute",
|
|
@@ -469,15 +468,15 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
469
468
|
}
|
|
470
469
|
}, {
|
|
471
470
|
props: ({
|
|
472
|
-
ownerState:
|
|
473
|
-
}) =>
|
|
471
|
+
ownerState: o
|
|
472
|
+
}) => o.vertical,
|
|
474
473
|
style: {
|
|
475
474
|
height: "100%",
|
|
476
475
|
width: 2,
|
|
477
476
|
right: 0
|
|
478
477
|
}
|
|
479
478
|
}]
|
|
480
|
-
}))),
|
|
479
|
+
}))), Xo = D(Ye)({
|
|
481
480
|
overflowX: "auto",
|
|
482
481
|
overflowY: "hidden",
|
|
483
482
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -487,76 +486,86 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
487
486
|
display: "none"
|
|
488
487
|
// Safari + Chrome
|
|
489
488
|
}
|
|
490
|
-
}),
|
|
491
|
-
let
|
|
492
|
-
const
|
|
493
|
-
const a =
|
|
494
|
-
props:
|
|
489
|
+
}), We = {};
|
|
490
|
+
let Le = !1;
|
|
491
|
+
const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
492
|
+
const a = Se({
|
|
493
|
+
props: o,
|
|
495
494
|
name: "MuiTabs"
|
|
496
|
-
}), i =
|
|
495
|
+
}), i = xo(), d = Fe(), {
|
|
497
496
|
"aria-label": p,
|
|
498
497
|
"aria-labelledby": f,
|
|
499
498
|
action: h,
|
|
500
499
|
centered: S = !1,
|
|
501
|
-
children:
|
|
500
|
+
children: v,
|
|
502
501
|
className: m,
|
|
503
|
-
component:
|
|
502
|
+
component: y = "div",
|
|
504
503
|
allowScrollButtonsMobile: g = !1,
|
|
505
504
|
indicatorColor: W = "primary",
|
|
506
505
|
onChange: E,
|
|
507
|
-
orientation:
|
|
508
|
-
ScrollButtonComponent:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
506
|
+
orientation: x = "horizontal",
|
|
507
|
+
ScrollButtonComponent: Z,
|
|
508
|
+
// TODO: remove in v7 (deprecated in v6)
|
|
509
|
+
scrollButtons: P = "auto",
|
|
510
|
+
selectionFollowsFocus: de,
|
|
511
|
+
slots: M = {},
|
|
512
|
+
slotProps: A = {},
|
|
513
|
+
TabIndicatorProps: U = {},
|
|
514
|
+
// TODO: remove in v7 (deprecated in v6)
|
|
515
|
+
TabScrollButtonProps: K = {},
|
|
516
|
+
// TODO: remove in v7 (deprecated in v6)
|
|
517
|
+
textColor: J = "primary",
|
|
518
|
+
value: k,
|
|
519
|
+
variant: O = "standard",
|
|
520
|
+
visibleScrollbar: ue = !1,
|
|
521
|
+
...Ze
|
|
522
|
+
} = a, B = O === "scrollable", C = x === "vertical", X = C ? "scrollTop" : "scrollLeft", Q = C ? "top" : "left", ee = C ? "bottom" : "right", pe = C ? "clientHeight" : "clientWidth", _ = C ? "height" : "width", R = {
|
|
521
523
|
...a,
|
|
522
|
-
component:
|
|
524
|
+
component: y,
|
|
523
525
|
allowScrollButtonsMobile: g,
|
|
524
526
|
indicatorColor: W,
|
|
525
|
-
orientation:
|
|
526
|
-
vertical:
|
|
527
|
-
scrollButtons:
|
|
528
|
-
textColor:
|
|
529
|
-
variant:
|
|
530
|
-
visibleScrollbar:
|
|
531
|
-
fixed: !
|
|
532
|
-
hideScrollbar:
|
|
533
|
-
scrollableX:
|
|
534
|
-
scrollableY:
|
|
535
|
-
centered: S && !
|
|
527
|
+
orientation: x,
|
|
528
|
+
vertical: C,
|
|
529
|
+
scrollButtons: P,
|
|
530
|
+
textColor: J,
|
|
531
|
+
variant: O,
|
|
532
|
+
visibleScrollbar: ue,
|
|
533
|
+
fixed: !B,
|
|
534
|
+
hideScrollbar: B && !ue,
|
|
535
|
+
scrollableX: B && !C,
|
|
536
|
+
scrollableY: B && C,
|
|
537
|
+
centered: S && !B,
|
|
536
538
|
scrollButtonsHideMobile: !g
|
|
537
|
-
},
|
|
538
|
-
elementType:
|
|
539
|
-
externalSlotProps:
|
|
540
|
-
ownerState:
|
|
541
|
-
}),
|
|
542
|
-
elementType:
|
|
543
|
-
externalSlotProps:
|
|
544
|
-
ownerState:
|
|
539
|
+
}, $ = Ao(R), Je = se({
|
|
540
|
+
elementType: M.StartScrollButtonIcon,
|
|
541
|
+
externalSlotProps: A.startScrollButtonIcon,
|
|
542
|
+
ownerState: R
|
|
543
|
+
}), Qe = se({
|
|
544
|
+
elementType: M.EndScrollButtonIcon,
|
|
545
|
+
externalSlotProps: A.endScrollButtonIcon,
|
|
546
|
+
ownerState: R
|
|
545
547
|
});
|
|
546
|
-
process.env.NODE_ENV !== "production" && S &&
|
|
547
|
-
const [
|
|
548
|
+
process.env.NODE_ENV !== "production" && S && B && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
549
|
+
const [ge, eo] = s.useState(!1), [L, we] = s.useState(We), [xe, oo] = s.useState(!1), [Be, to] = s.useState(!1), [Ce, no] = s.useState(!1), [Ee, ro] = s.useState({
|
|
548
550
|
overflow: "hidden",
|
|
549
551
|
scrollbarWidth: 0
|
|
550
|
-
}),
|
|
551
|
-
|
|
552
|
+
}), oe = /* @__PURE__ */ new Map(), N = s.useRef(null), z = s.useRef(null), V = {
|
|
553
|
+
slots: M,
|
|
554
|
+
slotProps: {
|
|
555
|
+
indicator: U,
|
|
556
|
+
scrollButton: K,
|
|
557
|
+
...A
|
|
558
|
+
}
|
|
559
|
+
}, Ie = () => {
|
|
560
|
+
const n = N.current;
|
|
552
561
|
let l;
|
|
553
|
-
if (
|
|
554
|
-
const u =
|
|
562
|
+
if (n) {
|
|
563
|
+
const u = n.getBoundingClientRect();
|
|
555
564
|
l = {
|
|
556
|
-
clientWidth:
|
|
557
|
-
scrollLeft:
|
|
558
|
-
scrollTop:
|
|
559
|
-
scrollWidth:
|
|
565
|
+
clientWidth: n.clientWidth,
|
|
566
|
+
scrollLeft: n.scrollLeft,
|
|
567
|
+
scrollTop: n.scrollTop,
|
|
568
|
+
scrollWidth: n.scrollWidth,
|
|
560
569
|
top: u.top,
|
|
561
570
|
bottom: u.bottom,
|
|
562
571
|
left: u.left,
|
|
@@ -564,253 +573,288 @@ const Xe = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
|
564
573
|
};
|
|
565
574
|
}
|
|
566
575
|
let c;
|
|
567
|
-
if (
|
|
568
|
-
const u =
|
|
576
|
+
if (n && k !== !1) {
|
|
577
|
+
const u = z.current.children;
|
|
569
578
|
if (u.length > 0) {
|
|
570
|
-
const b = u[
|
|
571
|
-
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 "${
|
|
572
|
-
`))), c = b ? b.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !
|
|
573
|
-
l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${
|
|
574
|
-
`)),
|
|
579
|
+
const b = u[oe.get(k)];
|
|
580
|
+
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 "${k}".`, oe.keys ? `You can provide one of the following values: ${Array.from(oe.keys()).join(", ")}.` : null].join(`
|
|
581
|
+
`))), c = b ? b.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Le && c && c.width === 0 && c.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
582
|
+
l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${k}") 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(`
|
|
583
|
+
`)), Le = !0);
|
|
575
584
|
}
|
|
576
585
|
}
|
|
577
586
|
return {
|
|
578
587
|
tabsMeta: l,
|
|
579
588
|
tabMeta: c
|
|
580
589
|
};
|
|
581
|
-
}, Y =
|
|
590
|
+
}, Y = me(() => {
|
|
582
591
|
const {
|
|
583
|
-
tabsMeta:
|
|
592
|
+
tabsMeta: n,
|
|
584
593
|
tabMeta: l
|
|
585
|
-
} =
|
|
594
|
+
} = Ie();
|
|
586
595
|
let c = 0, u;
|
|
587
|
-
|
|
596
|
+
C ? (u = "top", l && n && (c = l.top - n.top + n.scrollTop)) : (u = d ? "right" : "left", l && n && (c = (d ? -1 : 1) * (l[u] - n[u] + n.scrollLeft)));
|
|
588
597
|
const b = {
|
|
589
598
|
[u]: c,
|
|
590
599
|
// May be wrong until the font is loaded.
|
|
591
600
|
[_]: l ? l[_] : 0
|
|
592
601
|
};
|
|
593
|
-
if (typeof
|
|
594
|
-
|
|
602
|
+
if (typeof L[u] != "number" || typeof L[_] != "number")
|
|
603
|
+
we(b);
|
|
595
604
|
else {
|
|
596
|
-
const I = Math.abs(
|
|
597
|
-
(I >= 1 ||
|
|
605
|
+
const I = Math.abs(L[u] - b[u]), F = Math.abs(L[_] - b[_]);
|
|
606
|
+
(I >= 1 || F >= 1) && we(b);
|
|
598
607
|
}
|
|
599
|
-
}),
|
|
608
|
+
}), fe = (n, {
|
|
600
609
|
animation: l = !0
|
|
601
610
|
} = {}) => {
|
|
602
|
-
l ?
|
|
611
|
+
l ? No(X, N.current, n, {
|
|
603
612
|
duration: i.transitions.duration.standard
|
|
604
|
-
}) :
|
|
605
|
-
},
|
|
606
|
-
let l =
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
const
|
|
613
|
+
}) : N.current[X] = n;
|
|
614
|
+
}, Pe = (n) => {
|
|
615
|
+
let l = N.current[X];
|
|
616
|
+
C ? l += n : l += n * (d ? -1 : 1), fe(l);
|
|
617
|
+
}, Me = () => {
|
|
618
|
+
const n = N.current[pe];
|
|
610
619
|
let l = 0;
|
|
611
|
-
const c = Array.from(
|
|
620
|
+
const c = Array.from(z.current.children);
|
|
612
621
|
for (let u = 0; u < c.length; u += 1) {
|
|
613
622
|
const b = c[u];
|
|
614
|
-
if (l + b[
|
|
615
|
-
u === 0 && (l =
|
|
623
|
+
if (l + b[pe] > n) {
|
|
624
|
+
u === 0 && (l = n);
|
|
616
625
|
break;
|
|
617
626
|
}
|
|
618
|
-
l += b[
|
|
627
|
+
l += b[pe];
|
|
619
628
|
}
|
|
620
629
|
return l;
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
},
|
|
626
|
-
|
|
630
|
+
}, lo = () => {
|
|
631
|
+
Pe(-1 * Me());
|
|
632
|
+
}, so = () => {
|
|
633
|
+
Pe(Me());
|
|
634
|
+
}, [ao, {
|
|
635
|
+
onChange: te,
|
|
636
|
+
...io
|
|
637
|
+
}] = H("scrollbar", {
|
|
638
|
+
className: j($.scrollableX, $.hideScrollbar),
|
|
639
|
+
elementType: Xo,
|
|
640
|
+
shouldForwardComponentProp: !0,
|
|
641
|
+
externalForwardedProps: V,
|
|
642
|
+
ownerState: R
|
|
643
|
+
}), co = s.useCallback((n) => {
|
|
644
|
+
te == null || te(n), ro({
|
|
627
645
|
overflow: null,
|
|
628
|
-
scrollbarWidth:
|
|
646
|
+
scrollbarWidth: n
|
|
629
647
|
});
|
|
630
|
-
}, []),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
return r.scrollButtonStart = c ? /* @__PURE__ */ T(F, {
|
|
648
|
+
}, [te]), [Oe, Re] = H("scrollButtons", {
|
|
649
|
+
className: j($.scrollButtons, K.className),
|
|
650
|
+
elementType: qe,
|
|
651
|
+
externalForwardedProps: V,
|
|
652
|
+
ownerState: R,
|
|
653
|
+
additionalProps: {
|
|
654
|
+
orientation: x,
|
|
638
655
|
slots: {
|
|
639
|
-
StartScrollButtonIcon:
|
|
656
|
+
StartScrollButtonIcon: M.startScrollButtonIcon || M.StartScrollButtonIcon,
|
|
657
|
+
EndScrollButtonIcon: M.endScrollButtonIcon || M.EndScrollButtonIcon
|
|
640
658
|
},
|
|
641
659
|
slotProps: {
|
|
642
|
-
startScrollButtonIcon:
|
|
643
|
-
|
|
644
|
-
|
|
660
|
+
startScrollButtonIcon: Je,
|
|
661
|
+
endScrollButtonIcon: Qe
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}), uo = () => {
|
|
665
|
+
const n = {};
|
|
666
|
+
n.scrollbarSizeListener = B ? /* @__PURE__ */ T(ao, {
|
|
667
|
+
...io,
|
|
668
|
+
onChange: co
|
|
669
|
+
}) : null;
|
|
670
|
+
const c = B && (P === "auto" && (xe || Be) || P === !0);
|
|
671
|
+
return n.scrollButtonStart = c ? /* @__PURE__ */ T(Oe, {
|
|
645
672
|
direction: d ? "right" : "left",
|
|
646
|
-
onClick:
|
|
647
|
-
disabled: !
|
|
648
|
-
...
|
|
649
|
-
|
|
650
|
-
}) : null, r.scrollButtonEnd = c ? /* @__PURE__ */ T(F, {
|
|
651
|
-
slots: {
|
|
652
|
-
EndScrollButtonIcon: V.EndScrollButtonIcon
|
|
653
|
-
},
|
|
654
|
-
slotProps: {
|
|
655
|
-
endScrollButtonIcon: qe
|
|
656
|
-
},
|
|
657
|
-
orientation: w,
|
|
673
|
+
onClick: lo,
|
|
674
|
+
disabled: !xe,
|
|
675
|
+
...Re
|
|
676
|
+
}) : null, n.scrollButtonEnd = c ? /* @__PURE__ */ T(Oe, {
|
|
658
677
|
direction: d ? "left" : "right",
|
|
659
|
-
onClick:
|
|
660
|
-
disabled: !
|
|
661
|
-
...
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}, Ie = fe((r) => {
|
|
678
|
+
onClick: so,
|
|
679
|
+
disabled: !Be,
|
|
680
|
+
...Re
|
|
681
|
+
}) : null, n;
|
|
682
|
+
}, Ne = me((n) => {
|
|
665
683
|
const {
|
|
666
684
|
tabsMeta: l,
|
|
667
685
|
tabMeta: c
|
|
668
|
-
} =
|
|
686
|
+
} = Ie();
|
|
669
687
|
if (!(!c || !l)) {
|
|
670
|
-
if (c[
|
|
671
|
-
const u = l[X] + (c[J] - l[J]);
|
|
672
|
-
de(u, {
|
|
673
|
-
animation: r
|
|
674
|
-
});
|
|
675
|
-
} else if (c[Q] > l[Q]) {
|
|
688
|
+
if (c[Q] < l[Q]) {
|
|
676
689
|
const u = l[X] + (c[Q] - l[Q]);
|
|
677
|
-
|
|
678
|
-
animation:
|
|
690
|
+
fe(u, {
|
|
691
|
+
animation: n
|
|
692
|
+
});
|
|
693
|
+
} else if (c[ee] > l[ee]) {
|
|
694
|
+
const u = l[X] + (c[ee] - l[ee]);
|
|
695
|
+
fe(u, {
|
|
696
|
+
animation: n
|
|
679
697
|
});
|
|
680
698
|
}
|
|
681
699
|
}
|
|
682
|
-
}),
|
|
683
|
-
|
|
700
|
+
}), ne = me(() => {
|
|
701
|
+
B && P !== !1 && no(!Ce);
|
|
684
702
|
});
|
|
685
703
|
s.useEffect(() => {
|
|
686
|
-
const
|
|
687
|
-
|
|
704
|
+
const n = Ae(() => {
|
|
705
|
+
N.current && Y();
|
|
688
706
|
});
|
|
689
707
|
let l;
|
|
690
708
|
const c = (I) => {
|
|
691
|
-
I.forEach((
|
|
692
|
-
|
|
709
|
+
I.forEach((F) => {
|
|
710
|
+
F.removedNodes.forEach((q) => {
|
|
693
711
|
l == null || l.unobserve(q);
|
|
694
|
-
}),
|
|
712
|
+
}), F.addedNodes.forEach((q) => {
|
|
695
713
|
l == null || l.observe(q);
|
|
696
714
|
});
|
|
697
|
-
}),
|
|
698
|
-
}, u =
|
|
699
|
-
u.addEventListener("resize",
|
|
715
|
+
}), n(), ne();
|
|
716
|
+
}, u = Ve(N.current);
|
|
717
|
+
u.addEventListener("resize", n);
|
|
700
718
|
let b;
|
|
701
|
-
return typeof ResizeObserver < "u" && (l = new ResizeObserver(
|
|
719
|
+
return typeof ResizeObserver < "u" && (l = new ResizeObserver(n), Array.from(z.current.children).forEach((I) => {
|
|
702
720
|
l.observe(I);
|
|
703
|
-
})), typeof MutationObserver < "u" && (b = new MutationObserver(c), b.observe(
|
|
721
|
+
})), typeof MutationObserver < "u" && (b = new MutationObserver(c), b.observe(z.current, {
|
|
704
722
|
childList: !0
|
|
705
723
|
})), () => {
|
|
706
|
-
|
|
724
|
+
n.clear(), u.removeEventListener("resize", n), b == null || b.disconnect(), l == null || l.disconnect();
|
|
707
725
|
};
|
|
708
|
-
}, [Y,
|
|
709
|
-
const
|
|
710
|
-
if (typeof IntersectionObserver < "u" && l > 0 &&
|
|
711
|
-
const c =
|
|
712
|
-
root:
|
|
726
|
+
}, [Y, ne]), s.useEffect(() => {
|
|
727
|
+
const n = Array.from(z.current.children), l = n.length;
|
|
728
|
+
if (typeof IntersectionObserver < "u" && l > 0 && B && P !== !1) {
|
|
729
|
+
const c = n[0], u = n[l - 1], b = {
|
|
730
|
+
root: N.current,
|
|
713
731
|
threshold: 0.99
|
|
714
|
-
}, I = (
|
|
715
|
-
|
|
716
|
-
},
|
|
717
|
-
|
|
718
|
-
const q = (
|
|
719
|
-
|
|
720
|
-
},
|
|
721
|
-
return
|
|
722
|
-
|
|
732
|
+
}, I = (he) => {
|
|
733
|
+
oo(!he[0].isIntersecting);
|
|
734
|
+
}, F = new IntersectionObserver(I, b);
|
|
735
|
+
F.observe(c);
|
|
736
|
+
const q = (he) => {
|
|
737
|
+
to(!he[0].isIntersecting);
|
|
738
|
+
}, ke = new IntersectionObserver(q, b);
|
|
739
|
+
return ke.observe(u), () => {
|
|
740
|
+
F.disconnect(), ke.disconnect();
|
|
723
741
|
};
|
|
724
742
|
}
|
|
725
|
-
}, [
|
|
726
|
-
|
|
743
|
+
}, [B, P, Ce, v == null ? void 0 : v.length]), s.useEffect(() => {
|
|
744
|
+
eo(!0);
|
|
727
745
|
}, []), s.useEffect(() => {
|
|
728
746
|
Y();
|
|
729
747
|
}), s.useEffect(() => {
|
|
730
|
-
|
|
731
|
-
}, [
|
|
748
|
+
Ne(We !== L);
|
|
749
|
+
}, [Ne, L]), s.useImperativeHandle(h, () => ({
|
|
732
750
|
updateIndicator: Y,
|
|
733
|
-
updateScrollButtons:
|
|
734
|
-
}), [Y,
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
751
|
+
updateScrollButtons: ne
|
|
752
|
+
}), [Y, ne]);
|
|
753
|
+
const [po, fo] = H("indicator", {
|
|
754
|
+
className: j($.indicator, U.className),
|
|
755
|
+
elementType: Ko,
|
|
756
|
+
externalForwardedProps: V,
|
|
757
|
+
ownerState: R,
|
|
758
|
+
additionalProps: {
|
|
759
|
+
style: L
|
|
742
760
|
}
|
|
761
|
+
}), je = /* @__PURE__ */ T(po, {
|
|
762
|
+
...fo
|
|
743
763
|
});
|
|
744
|
-
let
|
|
745
|
-
const
|
|
746
|
-
if (!/* @__PURE__ */ s.isValidElement(
|
|
764
|
+
let re = 0;
|
|
765
|
+
const bo = s.Children.map(v, (n) => {
|
|
766
|
+
if (!/* @__PURE__ */ s.isValidElement(n))
|
|
747
767
|
return null;
|
|
748
|
-
process.env.NODE_ENV !== "production" &&
|
|
768
|
+
process.env.NODE_ENV !== "production" && wo.isFragment(n) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
749
769
|
`));
|
|
750
|
-
const l =
|
|
751
|
-
|
|
752
|
-
const c = l ===
|
|
753
|
-
return
|
|
754
|
-
fullWidth:
|
|
755
|
-
indicator: c && !
|
|
770
|
+
const l = n.props.value === void 0 ? re : n.props.value;
|
|
771
|
+
oe.set(l, re);
|
|
772
|
+
const c = l === k;
|
|
773
|
+
return re += 1, /* @__PURE__ */ s.cloneElement(n, {
|
|
774
|
+
fullWidth: O === "fullWidth",
|
|
775
|
+
indicator: c && !ge && je,
|
|
756
776
|
selected: c,
|
|
757
|
-
selectionFollowsFocus:
|
|
777
|
+
selectionFollowsFocus: de,
|
|
758
778
|
onChange: E,
|
|
759
|
-
textColor:
|
|
779
|
+
textColor: J,
|
|
760
780
|
value: l,
|
|
761
|
-
...
|
|
781
|
+
...re === 1 && k === !1 && !n.props.tabIndex ? {
|
|
762
782
|
tabIndex: 0
|
|
763
783
|
} : {}
|
|
764
784
|
});
|
|
765
|
-
}),
|
|
766
|
-
|
|
785
|
+
}), ho = (n) => {
|
|
786
|
+
if (n.altKey || n.shiftKey || n.ctrlKey || n.metaKey)
|
|
787
|
+
return;
|
|
788
|
+
const l = z.current, c = Co(l).activeElement;
|
|
767
789
|
if (c.getAttribute("role") !== "tab")
|
|
768
790
|
return;
|
|
769
|
-
let b =
|
|
770
|
-
switch (
|
|
791
|
+
let b = x === "horizontal" ? "ArrowLeft" : "ArrowUp", I = x === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
792
|
+
switch (x === "horizontal" && d && (b = "ArrowRight", I = "ArrowLeft"), n.key) {
|
|
771
793
|
case b:
|
|
772
|
-
|
|
794
|
+
n.preventDefault(), le(l, c, De);
|
|
773
795
|
break;
|
|
774
796
|
case I:
|
|
775
|
-
|
|
797
|
+
n.preventDefault(), le(l, c, $e);
|
|
776
798
|
break;
|
|
777
799
|
case "Home":
|
|
778
|
-
|
|
800
|
+
n.preventDefault(), le(l, null, $e);
|
|
779
801
|
break;
|
|
780
802
|
case "End":
|
|
781
|
-
|
|
803
|
+
n.preventDefault(), le(l, null, De);
|
|
782
804
|
break;
|
|
783
805
|
}
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
className:
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
806
|
+
}, be = uo(), [mo, yo] = H("root", {
|
|
807
|
+
ref: r,
|
|
808
|
+
className: j($.root, m),
|
|
809
|
+
elementType: Vo,
|
|
810
|
+
externalForwardedProps: {
|
|
811
|
+
...V,
|
|
812
|
+
...Ze,
|
|
813
|
+
component: y
|
|
814
|
+
},
|
|
815
|
+
ownerState: R
|
|
816
|
+
}), [So, vo] = H("scroller", {
|
|
817
|
+
ref: N,
|
|
818
|
+
className: $.scroller,
|
|
819
|
+
elementType: Ho,
|
|
820
|
+
externalForwardedProps: V,
|
|
821
|
+
ownerState: R,
|
|
822
|
+
additionalProps: {
|
|
794
823
|
style: {
|
|
795
|
-
overflow:
|
|
796
|
-
[
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
824
|
+
overflow: Ee.overflow,
|
|
825
|
+
[C ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: ue ? void 0 : -Ee.scrollbarWidth
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}), [To, go] = H("list", {
|
|
829
|
+
ref: z,
|
|
830
|
+
className: j($.list, $.flexContainer),
|
|
831
|
+
elementType: Uo,
|
|
832
|
+
externalForwardedProps: V,
|
|
833
|
+
ownerState: R,
|
|
834
|
+
getSlotProps: (n) => ({
|
|
835
|
+
...n,
|
|
836
|
+
onKeyDown: (l) => {
|
|
837
|
+
var c;
|
|
838
|
+
ho(l), (c = n.onKeyDown) == null || c.call(n, l);
|
|
839
|
+
}
|
|
840
|
+
})
|
|
841
|
+
});
|
|
842
|
+
return /* @__PURE__ */ G(mo, {
|
|
843
|
+
...yo,
|
|
844
|
+
children: [be.scrollButtonStart, be.scrollbarSizeListener, /* @__PURE__ */ G(So, {
|
|
845
|
+
...vo,
|
|
846
|
+
children: [/* @__PURE__ */ T(To, {
|
|
800
847
|
"aria-label": p,
|
|
801
848
|
"aria-labelledby": f,
|
|
802
|
-
"aria-orientation":
|
|
803
|
-
className: k.flexContainer,
|
|
804
|
-
ownerState: j,
|
|
805
|
-
onKeyDown: lo,
|
|
806
|
-
ref: L,
|
|
849
|
+
"aria-orientation": x === "vertical" ? "vertical" : null,
|
|
807
850
|
role: "tablist",
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
851
|
+
...go,
|
|
852
|
+
children: bo
|
|
853
|
+
}), ge && je]
|
|
854
|
+
}), be.scrollButtonEnd]
|
|
811
855
|
});
|
|
812
856
|
});
|
|
813
|
-
process.env.NODE_ENV !== "production" && (
|
|
857
|
+
process.env.NODE_ENV !== "production" && (Ge.propTypes = {
|
|
814
858
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
815
859
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
816
860
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -823,66 +867,67 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
823
867
|
* @param {object} actions This object contains all possible actions
|
|
824
868
|
* that can be triggered programmatically.
|
|
825
869
|
*/
|
|
826
|
-
action:
|
|
870
|
+
action: Eo,
|
|
827
871
|
/**
|
|
828
872
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
829
873
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
830
874
|
* @default false
|
|
831
875
|
*/
|
|
832
|
-
allowScrollButtonsMobile:
|
|
876
|
+
allowScrollButtonsMobile: e.bool,
|
|
833
877
|
/**
|
|
834
878
|
* The label for the Tabs as a string.
|
|
835
879
|
*/
|
|
836
|
-
"aria-label":
|
|
880
|
+
"aria-label": e.string,
|
|
837
881
|
/**
|
|
838
882
|
* An id or list of ids separated by a space that label the Tabs.
|
|
839
883
|
*/
|
|
840
|
-
"aria-labelledby":
|
|
884
|
+
"aria-labelledby": e.string,
|
|
841
885
|
/**
|
|
842
886
|
* If `true`, the tabs are centered.
|
|
843
887
|
* This prop is intended for large views.
|
|
844
888
|
* @default false
|
|
845
889
|
*/
|
|
846
|
-
centered:
|
|
890
|
+
centered: e.bool,
|
|
847
891
|
/**
|
|
848
892
|
* The content of the component.
|
|
849
893
|
*/
|
|
850
|
-
children:
|
|
894
|
+
children: e.node,
|
|
851
895
|
/**
|
|
852
896
|
* Override or extend the styles applied to the component.
|
|
853
897
|
*/
|
|
854
|
-
classes:
|
|
898
|
+
classes: e.object,
|
|
855
899
|
/**
|
|
856
900
|
* @ignore
|
|
857
901
|
*/
|
|
858
|
-
className:
|
|
902
|
+
className: e.string,
|
|
859
903
|
/**
|
|
860
904
|
* The component used for the root node.
|
|
861
905
|
* Either a string to use a HTML element or a component.
|
|
862
906
|
*/
|
|
863
|
-
component:
|
|
907
|
+
component: e.elementType,
|
|
864
908
|
/**
|
|
865
909
|
* Determines the color of the indicator.
|
|
866
910
|
* @default 'primary'
|
|
867
911
|
*/
|
|
868
|
-
indicatorColor:
|
|
912
|
+
indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
869
913
|
/**
|
|
870
914
|
* Callback fired when the value changes.
|
|
871
915
|
*
|
|
872
916
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
873
917
|
* @param {any} value We default to the index of the child (number)
|
|
874
918
|
*/
|
|
875
|
-
onChange:
|
|
919
|
+
onChange: e.func,
|
|
876
920
|
/**
|
|
877
921
|
* The component orientation (layout flow direction).
|
|
878
922
|
* @default 'horizontal'
|
|
879
923
|
*/
|
|
880
|
-
orientation:
|
|
924
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
881
925
|
/**
|
|
882
926
|
* The component used to render the scroll buttons.
|
|
927
|
+
* @deprecated use the `slots.scrollButtons` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
883
928
|
* @default TabScrollButton
|
|
884
929
|
*/
|
|
885
|
-
ScrollButtonComponent:
|
|
930
|
+
ScrollButtonComponent: e.elementType,
|
|
886
931
|
/**
|
|
887
932
|
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
888
933
|
*
|
|
@@ -894,53 +939,68 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
894
939
|
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
895
940
|
* @default 'auto'
|
|
896
941
|
*/
|
|
897
|
-
scrollButtons:
|
|
942
|
+
scrollButtons: e.oneOf(["auto", !1, !0]),
|
|
898
943
|
/**
|
|
899
944
|
* If `true` the selected tab changes on focus. Otherwise it only
|
|
900
945
|
* changes on activation.
|
|
901
946
|
*/
|
|
902
|
-
selectionFollowsFocus:
|
|
947
|
+
selectionFollowsFocus: e.bool,
|
|
903
948
|
/**
|
|
904
|
-
* The
|
|
905
|
-
* You can override the existing props or add new ones.
|
|
949
|
+
* The props used for each slot inside.
|
|
906
950
|
* @default {}
|
|
907
951
|
*/
|
|
908
|
-
slotProps:
|
|
909
|
-
endScrollButtonIcon:
|
|
910
|
-
|
|
952
|
+
slotProps: e.shape({
|
|
953
|
+
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
954
|
+
indicator: e.oneOfType([e.func, e.object]),
|
|
955
|
+
list: e.oneOfType([e.func, e.object]),
|
|
956
|
+
root: e.oneOfType([e.func, e.object]),
|
|
957
|
+
scrollbar: e.oneOfType([e.func, e.object]),
|
|
958
|
+
scrollButtons: e.oneOfType([e.func, e.object]),
|
|
959
|
+
scroller: e.oneOfType([e.func, e.object]),
|
|
960
|
+
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
911
961
|
}),
|
|
912
962
|
/**
|
|
913
963
|
* The components used for each slot inside.
|
|
914
964
|
* @default {}
|
|
915
965
|
*/
|
|
916
|
-
slots:
|
|
917
|
-
|
|
918
|
-
|
|
966
|
+
slots: e.shape({
|
|
967
|
+
endScrollButtonIcon: e.elementType,
|
|
968
|
+
EndScrollButtonIcon: e.elementType,
|
|
969
|
+
indicator: e.elementType,
|
|
970
|
+
list: e.elementType,
|
|
971
|
+
root: e.elementType,
|
|
972
|
+
scrollbar: e.elementType,
|
|
973
|
+
scrollButtons: e.elementType,
|
|
974
|
+
scroller: e.elementType,
|
|
975
|
+
startScrollButtonIcon: e.elementType,
|
|
976
|
+
StartScrollButtonIcon: e.elementType
|
|
919
977
|
}),
|
|
920
978
|
/**
|
|
921
979
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
922
980
|
*/
|
|
923
|
-
sx:
|
|
981
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
924
982
|
/**
|
|
925
983
|
* Props applied to the tab indicator element.
|
|
984
|
+
* @deprecated use the `slotProps.indicator` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
926
985
|
* @default {}
|
|
927
986
|
*/
|
|
928
|
-
TabIndicatorProps:
|
|
987
|
+
TabIndicatorProps: e.object,
|
|
929
988
|
/**
|
|
930
989
|
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
990
|
+
* @deprecated use the `slotProps.scrollButtons` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
931
991
|
* @default {}
|
|
932
992
|
*/
|
|
933
|
-
TabScrollButtonProps:
|
|
993
|
+
TabScrollButtonProps: e.object,
|
|
934
994
|
/**
|
|
935
995
|
* Determines the color of the `Tab`.
|
|
936
996
|
* @default 'primary'
|
|
937
997
|
*/
|
|
938
|
-
textColor:
|
|
998
|
+
textColor: e.oneOf(["inherit", "primary", "secondary"]),
|
|
939
999
|
/**
|
|
940
1000
|
* The value of the currently selected `Tab`.
|
|
941
1001
|
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
942
1002
|
*/
|
|
943
|
-
value:
|
|
1003
|
+
value: e.any,
|
|
944
1004
|
/**
|
|
945
1005
|
* Determines additional display behavior of the tabs:
|
|
946
1006
|
*
|
|
@@ -951,34 +1011,34 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
951
1011
|
* - `standard` will render the default state.
|
|
952
1012
|
* @default 'standard'
|
|
953
1013
|
*/
|
|
954
|
-
variant:
|
|
1014
|
+
variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
955
1015
|
/**
|
|
956
1016
|
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
957
1017
|
* a long vertical list of tabs.
|
|
958
1018
|
* @default false
|
|
959
1019
|
*/
|
|
960
|
-
visibleScrollbar:
|
|
1020
|
+
visibleScrollbar: e.bool
|
|
961
1021
|
});
|
|
962
|
-
const
|
|
1022
|
+
const _o = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
963
1023
|
const {
|
|
964
1024
|
children: a,
|
|
965
1025
|
...i
|
|
966
|
-
} =
|
|
1026
|
+
} = o, d = Ke();
|
|
967
1027
|
if (d === null)
|
|
968
1028
|
throw new TypeError("No TabContext provided");
|
|
969
1029
|
const p = s.Children.map(a, (f) => /* @__PURE__ */ s.isValidElement(f) ? /* @__PURE__ */ s.cloneElement(f, {
|
|
970
1030
|
// SOMEDAY: `Tabs` will set those themselves
|
|
971
|
-
"aria-controls":
|
|
972
|
-
id:
|
|
1031
|
+
"aria-controls": Xe(d, f.props.value),
|
|
1032
|
+
id: _e(d, f.props.value)
|
|
973
1033
|
}) : null);
|
|
974
|
-
return /* @__PURE__ */ T(
|
|
1034
|
+
return /* @__PURE__ */ T(Ge, {
|
|
975
1035
|
...i,
|
|
976
|
-
ref:
|
|
1036
|
+
ref: r,
|
|
977
1037
|
value: d.value,
|
|
978
1038
|
children: p
|
|
979
1039
|
});
|
|
980
1040
|
});
|
|
981
|
-
process.env.NODE_ENV !== "production" && (
|
|
1041
|
+
process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
982
1042
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
983
1043
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
984
1044
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -986,30 +1046,30 @@ process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
|
986
1046
|
/**
|
|
987
1047
|
* A list of `<Tab />` elements.
|
|
988
1048
|
*/
|
|
989
|
-
children:
|
|
1049
|
+
children: e.node
|
|
990
1050
|
});
|
|
991
|
-
function
|
|
992
|
-
return
|
|
1051
|
+
function Yo(t) {
|
|
1052
|
+
return ie("MuiTabPanel", t);
|
|
993
1053
|
}
|
|
994
|
-
const
|
|
1054
|
+
const vt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
995
1055
|
const {
|
|
996
|
-
classes:
|
|
997
|
-
hidden:
|
|
1056
|
+
classes: o,
|
|
1057
|
+
hidden: r
|
|
998
1058
|
} = t;
|
|
999
|
-
return
|
|
1000
|
-
root: ["root",
|
|
1001
|
-
},
|
|
1002
|
-
},
|
|
1059
|
+
return ce({
|
|
1060
|
+
root: ["root", r && "hidden"]
|
|
1061
|
+
}, Yo, o);
|
|
1062
|
+
}, Go = D("div", {
|
|
1003
1063
|
name: "MuiTabPanel",
|
|
1004
1064
|
slot: "Root",
|
|
1005
|
-
overridesResolver: (t,
|
|
1065
|
+
overridesResolver: (t, o) => o.root
|
|
1006
1066
|
})(({
|
|
1007
1067
|
theme: t
|
|
1008
1068
|
}) => ({
|
|
1009
1069
|
padding: t.spacing(3)
|
|
1010
|
-
})),
|
|
1011
|
-
const a =
|
|
1012
|
-
props:
|
|
1070
|
+
})), Zo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1071
|
+
const a = Io({
|
|
1072
|
+
props: o,
|
|
1013
1073
|
name: "MuiTabPanel"
|
|
1014
1074
|
}), {
|
|
1015
1075
|
children: i,
|
|
@@ -1019,23 +1079,23 @@ const lt = re("MuiTabPanel", ["root", "hidden"]), $o = (t) => {
|
|
|
1019
1079
|
...h
|
|
1020
1080
|
} = a, S = {
|
|
1021
1081
|
...a
|
|
1022
|
-
},
|
|
1082
|
+
}, v = qo(S), m = Ke();
|
|
1023
1083
|
if (m === null)
|
|
1024
1084
|
throw new TypeError("No TabContext provided");
|
|
1025
|
-
const
|
|
1026
|
-
return /* @__PURE__ */ T(
|
|
1085
|
+
const y = Xe(m, p), g = _e(m, p);
|
|
1086
|
+
return /* @__PURE__ */ T(Go, {
|
|
1027
1087
|
"aria-labelledby": g,
|
|
1028
|
-
className:
|
|
1088
|
+
className: j(v.root, d),
|
|
1029
1089
|
hidden: p !== m.value,
|
|
1030
|
-
id:
|
|
1031
|
-
ref:
|
|
1090
|
+
id: y,
|
|
1091
|
+
ref: r,
|
|
1032
1092
|
role: "tabpanel",
|
|
1033
1093
|
ownerState: S,
|
|
1034
1094
|
...h,
|
|
1035
1095
|
children: (f || p === m.value) && i
|
|
1036
1096
|
});
|
|
1037
1097
|
});
|
|
1038
|
-
process.env.NODE_ENV !== "production" && (
|
|
1098
|
+
process.env.NODE_ENV !== "production" && (Zo.propTypes = {
|
|
1039
1099
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1040
1100
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1041
1101
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1043,37 +1103,37 @@ process.env.NODE_ENV !== "production" && (Do.propTypes = {
|
|
|
1043
1103
|
/**
|
|
1044
1104
|
* The content of the component.
|
|
1045
1105
|
*/
|
|
1046
|
-
children:
|
|
1106
|
+
children: e.node,
|
|
1047
1107
|
/**
|
|
1048
1108
|
* Override or extend the styles applied to the component.
|
|
1049
1109
|
*/
|
|
1050
|
-
classes:
|
|
1110
|
+
classes: e.object,
|
|
1051
1111
|
/**
|
|
1052
1112
|
* @ignore
|
|
1053
1113
|
*/
|
|
1054
|
-
className:
|
|
1114
|
+
className: e.string,
|
|
1055
1115
|
/**
|
|
1056
1116
|
* Always keep the children in the DOM.
|
|
1057
1117
|
* @default false
|
|
1058
1118
|
*/
|
|
1059
|
-
keepMounted:
|
|
1119
|
+
keepMounted: e.bool,
|
|
1060
1120
|
/**
|
|
1061
1121
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1062
1122
|
*/
|
|
1063
|
-
sx:
|
|
1123
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1064
1124
|
/**
|
|
1065
1125
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
1066
1126
|
* no `value` was passed to `Tab`.
|
|
1067
1127
|
*/
|
|
1068
|
-
value:
|
|
1128
|
+
value: e.oneOfType([e.number, e.string]).isRequired
|
|
1069
1129
|
});
|
|
1070
|
-
function
|
|
1071
|
-
return
|
|
1130
|
+
function Jo(t) {
|
|
1131
|
+
return ie("MuiTab", t);
|
|
1072
1132
|
}
|
|
1073
|
-
const
|
|
1133
|
+
const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), Qo = (t) => {
|
|
1074
1134
|
const {
|
|
1075
|
-
classes:
|
|
1076
|
-
textColor:
|
|
1135
|
+
classes: o,
|
|
1136
|
+
textColor: r,
|
|
1077
1137
|
fullWidth: a,
|
|
1078
1138
|
wrapped: i,
|
|
1079
1139
|
icon: d,
|
|
@@ -1081,24 +1141,24 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1081
1141
|
selected: f,
|
|
1082
1142
|
disabled: h
|
|
1083
1143
|
} = t, S = {
|
|
1084
|
-
root: ["root", d && p && "labelIcon", `textColor${
|
|
1144
|
+
root: ["root", d && p && "labelIcon", `textColor${ze(r)}`, a && "fullWidth", i && "wrapped", f && "selected", h && "disabled"],
|
|
1085
1145
|
icon: ["iconWrapper", "icon"]
|
|
1086
1146
|
};
|
|
1087
|
-
return
|
|
1088
|
-
},
|
|
1147
|
+
return ce(S, Jo, o);
|
|
1148
|
+
}, et = D(Ue, {
|
|
1089
1149
|
name: "MuiTab",
|
|
1090
1150
|
slot: "Root",
|
|
1091
|
-
overridesResolver: (t,
|
|
1151
|
+
overridesResolver: (t, o) => {
|
|
1092
1152
|
const {
|
|
1093
|
-
ownerState:
|
|
1153
|
+
ownerState: r
|
|
1094
1154
|
} = t;
|
|
1095
|
-
return [
|
|
1096
|
-
[`& .${
|
|
1155
|
+
return [o.root, r.label && r.icon && o.labelIcon, o[`textColor${ze(r.textColor)}`], r.fullWidth && o.fullWidth, r.wrapped && o.wrapped, {
|
|
1156
|
+
[`& .${w.iconWrapper}`]: o.iconWrapper
|
|
1097
1157
|
}, {
|
|
1098
|
-
[`& .${
|
|
1158
|
+
[`& .${w.icon}`]: o.icon
|
|
1099
1159
|
}];
|
|
1100
1160
|
}
|
|
1101
|
-
})(
|
|
1161
|
+
})(ve(({
|
|
1102
1162
|
theme: t
|
|
1103
1163
|
}) => ({
|
|
1104
1164
|
...t.typography.button,
|
|
@@ -1114,22 +1174,22 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1114
1174
|
lineHeight: 1.25,
|
|
1115
1175
|
variants: [{
|
|
1116
1176
|
props: ({
|
|
1117
|
-
ownerState:
|
|
1118
|
-
}) =>
|
|
1177
|
+
ownerState: o
|
|
1178
|
+
}) => o.label && (o.iconPosition === "top" || o.iconPosition === "bottom"),
|
|
1119
1179
|
style: {
|
|
1120
1180
|
flexDirection: "column"
|
|
1121
1181
|
}
|
|
1122
1182
|
}, {
|
|
1123
1183
|
props: ({
|
|
1124
|
-
ownerState:
|
|
1125
|
-
}) =>
|
|
1184
|
+
ownerState: o
|
|
1185
|
+
}) => o.label && o.iconPosition !== "top" && o.iconPosition !== "bottom",
|
|
1126
1186
|
style: {
|
|
1127
1187
|
flexDirection: "row"
|
|
1128
1188
|
}
|
|
1129
1189
|
}, {
|
|
1130
1190
|
props: ({
|
|
1131
|
-
ownerState:
|
|
1132
|
-
}) =>
|
|
1191
|
+
ownerState: o
|
|
1192
|
+
}) => o.icon && o.label,
|
|
1133
1193
|
style: {
|
|
1134
1194
|
minHeight: 72,
|
|
1135
1195
|
paddingTop: 9,
|
|
@@ -1137,41 +1197,41 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1137
1197
|
}
|
|
1138
1198
|
}, {
|
|
1139
1199
|
props: ({
|
|
1140
|
-
ownerState:
|
|
1141
|
-
iconPosition:
|
|
1142
|
-
}) =>
|
|
1200
|
+
ownerState: o,
|
|
1201
|
+
iconPosition: r
|
|
1202
|
+
}) => o.icon && o.label && r === "top",
|
|
1143
1203
|
style: {
|
|
1144
|
-
[`& > .${
|
|
1204
|
+
[`& > .${w.icon}`]: {
|
|
1145
1205
|
marginBottom: 6
|
|
1146
1206
|
}
|
|
1147
1207
|
}
|
|
1148
1208
|
}, {
|
|
1149
1209
|
props: ({
|
|
1150
|
-
ownerState:
|
|
1151
|
-
iconPosition:
|
|
1152
|
-
}) =>
|
|
1210
|
+
ownerState: o,
|
|
1211
|
+
iconPosition: r
|
|
1212
|
+
}) => o.icon && o.label && r === "bottom",
|
|
1153
1213
|
style: {
|
|
1154
|
-
[`& > .${
|
|
1214
|
+
[`& > .${w.icon}`]: {
|
|
1155
1215
|
marginTop: 6
|
|
1156
1216
|
}
|
|
1157
1217
|
}
|
|
1158
1218
|
}, {
|
|
1159
1219
|
props: ({
|
|
1160
|
-
ownerState:
|
|
1161
|
-
iconPosition:
|
|
1162
|
-
}) =>
|
|
1220
|
+
ownerState: o,
|
|
1221
|
+
iconPosition: r
|
|
1222
|
+
}) => o.icon && o.label && r === "start",
|
|
1163
1223
|
style: {
|
|
1164
|
-
[`& > .${
|
|
1224
|
+
[`& > .${w.icon}`]: {
|
|
1165
1225
|
marginRight: t.spacing(1)
|
|
1166
1226
|
}
|
|
1167
1227
|
}
|
|
1168
1228
|
}, {
|
|
1169
1229
|
props: ({
|
|
1170
|
-
ownerState:
|
|
1171
|
-
iconPosition:
|
|
1172
|
-
}) =>
|
|
1230
|
+
ownerState: o,
|
|
1231
|
+
iconPosition: r
|
|
1232
|
+
}) => o.icon && o.label && r === "end",
|
|
1173
1233
|
style: {
|
|
1174
|
-
[`& > .${
|
|
1234
|
+
[`& > .${w.icon}`]: {
|
|
1175
1235
|
marginLeft: t.spacing(1)
|
|
1176
1236
|
}
|
|
1177
1237
|
}
|
|
@@ -1183,10 +1243,10 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1183
1243
|
color: "inherit",
|
|
1184
1244
|
opacity: 0.6,
|
|
1185
1245
|
// same opacity as theme.palette.text.secondary
|
|
1186
|
-
[`&.${
|
|
1246
|
+
[`&.${w.selected}`]: {
|
|
1187
1247
|
opacity: 1
|
|
1188
1248
|
},
|
|
1189
|
-
[`&.${
|
|
1249
|
+
[`&.${w.disabled}`]: {
|
|
1190
1250
|
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
1191
1251
|
}
|
|
1192
1252
|
}
|
|
@@ -1196,10 +1256,10 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1196
1256
|
},
|
|
1197
1257
|
style: {
|
|
1198
1258
|
color: (t.vars || t).palette.text.secondary,
|
|
1199
|
-
[`&.${
|
|
1259
|
+
[`&.${w.selected}`]: {
|
|
1200
1260
|
color: (t.vars || t).palette.primary.main
|
|
1201
1261
|
},
|
|
1202
|
-
[`&.${
|
|
1262
|
+
[`&.${w.disabled}`]: {
|
|
1203
1263
|
color: (t.vars || t).palette.text.disabled
|
|
1204
1264
|
}
|
|
1205
1265
|
}
|
|
@@ -1209,17 +1269,17 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1209
1269
|
},
|
|
1210
1270
|
style: {
|
|
1211
1271
|
color: (t.vars || t).palette.text.secondary,
|
|
1212
|
-
[`&.${
|
|
1272
|
+
[`&.${w.selected}`]: {
|
|
1213
1273
|
color: (t.vars || t).palette.secondary.main
|
|
1214
1274
|
},
|
|
1215
|
-
[`&.${
|
|
1275
|
+
[`&.${w.disabled}`]: {
|
|
1216
1276
|
color: (t.vars || t).palette.text.disabled
|
|
1217
1277
|
}
|
|
1218
1278
|
}
|
|
1219
1279
|
}, {
|
|
1220
1280
|
props: ({
|
|
1221
|
-
ownerState:
|
|
1222
|
-
}) =>
|
|
1281
|
+
ownerState: o
|
|
1282
|
+
}) => o.fullWidth,
|
|
1223
1283
|
style: {
|
|
1224
1284
|
flexShrink: 1,
|
|
1225
1285
|
flexGrow: 1,
|
|
@@ -1228,15 +1288,15 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1228
1288
|
}
|
|
1229
1289
|
}, {
|
|
1230
1290
|
props: ({
|
|
1231
|
-
ownerState:
|
|
1232
|
-
}) =>
|
|
1291
|
+
ownerState: o
|
|
1292
|
+
}) => o.wrapped,
|
|
1233
1293
|
style: {
|
|
1234
1294
|
fontSize: t.typography.pxToRem(12)
|
|
1235
1295
|
}
|
|
1236
1296
|
}]
|
|
1237
|
-
}))),
|
|
1238
|
-
const a =
|
|
1239
|
-
props:
|
|
1297
|
+
}))), ot = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1298
|
+
const a = Se({
|
|
1299
|
+
props: o,
|
|
1240
1300
|
name: "MuiTab"
|
|
1241
1301
|
}), {
|
|
1242
1302
|
className: i,
|
|
@@ -1247,21 +1307,21 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1247
1307
|
icon: h,
|
|
1248
1308
|
iconPosition: S = "top",
|
|
1249
1309
|
// eslint-disable-next-line react/prop-types
|
|
1250
|
-
indicator:
|
|
1310
|
+
indicator: v,
|
|
1251
1311
|
label: m,
|
|
1252
|
-
onChange:
|
|
1312
|
+
onChange: y,
|
|
1253
1313
|
onClick: g,
|
|
1254
1314
|
onFocus: W,
|
|
1255
1315
|
// eslint-disable-next-line react/prop-types
|
|
1256
1316
|
selected: E,
|
|
1257
1317
|
// eslint-disable-next-line react/prop-types
|
|
1258
|
-
selectionFollowsFocus:
|
|
1318
|
+
selectionFollowsFocus: x,
|
|
1259
1319
|
// eslint-disable-next-line react/prop-types
|
|
1260
|
-
textColor:
|
|
1261
|
-
value:
|
|
1262
|
-
wrapped:
|
|
1263
|
-
...
|
|
1264
|
-
} = a,
|
|
1320
|
+
textColor: Z = "inherit",
|
|
1321
|
+
value: P,
|
|
1322
|
+
wrapped: de = !1,
|
|
1323
|
+
...M
|
|
1324
|
+
} = a, A = {
|
|
1265
1325
|
...a,
|
|
1266
1326
|
disabled: d,
|
|
1267
1327
|
disableFocusRipple: p,
|
|
@@ -1270,35 +1330,35 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1270
1330
|
iconPosition: S,
|
|
1271
1331
|
label: !!m,
|
|
1272
1332
|
fullWidth: f,
|
|
1273
|
-
textColor:
|
|
1274
|
-
wrapped:
|
|
1275
|
-
},
|
|
1276
|
-
className:
|
|
1277
|
-
}) : h,
|
|
1278
|
-
!E &&
|
|
1279
|
-
},
|
|
1280
|
-
|
|
1333
|
+
textColor: Z,
|
|
1334
|
+
wrapped: de
|
|
1335
|
+
}, U = Qo(A), K = h && m && /* @__PURE__ */ s.isValidElement(h) ? /* @__PURE__ */ s.cloneElement(h, {
|
|
1336
|
+
className: j(U.icon, h.props.className)
|
|
1337
|
+
}) : h, J = (O) => {
|
|
1338
|
+
!E && y && y(O, P), g && g(O);
|
|
1339
|
+
}, k = (O) => {
|
|
1340
|
+
x && !E && y && y(O, P), W && W(O);
|
|
1281
1341
|
};
|
|
1282
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ G(et, {
|
|
1283
1343
|
focusRipple: !p,
|
|
1284
|
-
className:
|
|
1285
|
-
ref:
|
|
1344
|
+
className: j(U.root, i),
|
|
1345
|
+
ref: r,
|
|
1286
1346
|
role: "tab",
|
|
1287
1347
|
"aria-selected": E,
|
|
1288
1348
|
disabled: d,
|
|
1289
|
-
onClick:
|
|
1290
|
-
onFocus:
|
|
1291
|
-
ownerState:
|
|
1349
|
+
onClick: J,
|
|
1350
|
+
onFocus: k,
|
|
1351
|
+
ownerState: A,
|
|
1292
1352
|
tabIndex: E ? 0 : -1,
|
|
1293
|
-
...
|
|
1294
|
-
children: [S === "top" || S === "start" ? /* @__PURE__ */
|
|
1295
|
-
children: [
|
|
1296
|
-
}) : /* @__PURE__ */
|
|
1297
|
-
children: [m,
|
|
1298
|
-
}),
|
|
1353
|
+
...M,
|
|
1354
|
+
children: [S === "top" || S === "start" ? /* @__PURE__ */ G(s.Fragment, {
|
|
1355
|
+
children: [K, m]
|
|
1356
|
+
}) : /* @__PURE__ */ G(s.Fragment, {
|
|
1357
|
+
children: [m, K]
|
|
1358
|
+
}), v]
|
|
1299
1359
|
});
|
|
1300
1360
|
});
|
|
1301
|
-
process.env.NODE_ENV !== "production" && (
|
|
1361
|
+
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
1302
1362
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1303
1363
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1304
1364
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1307,25 +1367,25 @@ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
|
1307
1367
|
* This prop isn't supported.
|
|
1308
1368
|
* Use the `component` prop if you need to change the children structure.
|
|
1309
1369
|
*/
|
|
1310
|
-
children:
|
|
1370
|
+
children: Po,
|
|
1311
1371
|
/**
|
|
1312
1372
|
* Override or extend the styles applied to the component.
|
|
1313
1373
|
*/
|
|
1314
|
-
classes:
|
|
1374
|
+
classes: e.object,
|
|
1315
1375
|
/**
|
|
1316
1376
|
* @ignore
|
|
1317
1377
|
*/
|
|
1318
|
-
className:
|
|
1378
|
+
className: e.string,
|
|
1319
1379
|
/**
|
|
1320
1380
|
* If `true`, the component is disabled.
|
|
1321
1381
|
* @default false
|
|
1322
1382
|
*/
|
|
1323
|
-
disabled:
|
|
1383
|
+
disabled: e.bool,
|
|
1324
1384
|
/**
|
|
1325
1385
|
* If `true`, the keyboard focus ripple is disabled.
|
|
1326
1386
|
* @default false
|
|
1327
1387
|
*/
|
|
1328
|
-
disableFocusRipple:
|
|
1388
|
+
disableFocusRipple: e.bool,
|
|
1329
1389
|
/**
|
|
1330
1390
|
* If `true`, the ripple effect is disabled.
|
|
1331
1391
|
*
|
|
@@ -1333,62 +1393,62 @@ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
|
1333
1393
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
1334
1394
|
* @default false
|
|
1335
1395
|
*/
|
|
1336
|
-
disableRipple:
|
|
1396
|
+
disableRipple: e.bool,
|
|
1337
1397
|
/**
|
|
1338
1398
|
* The icon to display.
|
|
1339
1399
|
*/
|
|
1340
|
-
icon:
|
|
1400
|
+
icon: e.oneOfType([e.element, e.string]),
|
|
1341
1401
|
/**
|
|
1342
1402
|
* The position of the icon relative to the label.
|
|
1343
1403
|
* @default 'top'
|
|
1344
1404
|
*/
|
|
1345
|
-
iconPosition:
|
|
1405
|
+
iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
|
|
1346
1406
|
/**
|
|
1347
1407
|
* The label element.
|
|
1348
1408
|
*/
|
|
1349
|
-
label:
|
|
1409
|
+
label: e.node,
|
|
1350
1410
|
/**
|
|
1351
1411
|
* @ignore
|
|
1352
1412
|
*/
|
|
1353
|
-
onChange:
|
|
1413
|
+
onChange: e.func,
|
|
1354
1414
|
/**
|
|
1355
1415
|
* @ignore
|
|
1356
1416
|
*/
|
|
1357
|
-
onClick:
|
|
1417
|
+
onClick: e.func,
|
|
1358
1418
|
/**
|
|
1359
1419
|
* @ignore
|
|
1360
1420
|
*/
|
|
1361
|
-
onFocus:
|
|
1421
|
+
onFocus: e.func,
|
|
1362
1422
|
/**
|
|
1363
1423
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1364
1424
|
*/
|
|
1365
|
-
sx:
|
|
1425
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1366
1426
|
/**
|
|
1367
1427
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
1368
1428
|
*/
|
|
1369
|
-
value:
|
|
1429
|
+
value: e.any,
|
|
1370
1430
|
/**
|
|
1371
1431
|
* Tab labels appear in a single row.
|
|
1372
1432
|
* They can use a second line if needed.
|
|
1373
1433
|
* @default false
|
|
1374
1434
|
*/
|
|
1375
|
-
wrapped:
|
|
1435
|
+
wrapped: e.bool
|
|
1376
1436
|
});
|
|
1377
1437
|
export {
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1438
|
+
$o as K,
|
|
1439
|
+
Oo as T,
|
|
1440
|
+
_o as a,
|
|
1441
|
+
Zo as b,
|
|
1442
|
+
ot as c,
|
|
1443
|
+
Ge as d,
|
|
1444
|
+
_e as e,
|
|
1445
|
+
Yo as f,
|
|
1446
|
+
Xe as g,
|
|
1447
|
+
w as h,
|
|
1448
|
+
Jo as i,
|
|
1449
|
+
ye as j,
|
|
1450
|
+
Fo as k,
|
|
1451
|
+
ko as l,
|
|
1452
|
+
vt as t,
|
|
1453
|
+
Ke as u
|
|
1394
1454
|
};
|