@cgi-learning-hub/ui 1.5.1-dev.1744637282 → 1.5.1-dev.1744643558
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-BfMYnyZX.js → Alert-D5C84Q-b.js} +27 -28
- package/dist/ArrowDropDown-Dt89EMyB.cjs +1 -0
- package/dist/ArrowDropDown-DvAbGzWJ.js +37 -0
- package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BjXP0c_4.js} +704 -665
- package/dist/Autocomplete-C6uWQlAq.cjs +6 -0
- package/dist/Backdrop-9ZMM04UV.cjs +1 -0
- package/dist/{Backdrop-B200pms1.js → Backdrop-CFkYB15z.js} +21 -20
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/{Box-D3Pi13ta.js → Box-CXvmZ2dD.js} +12 -12
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-D1aKdjIh.js → Button-Dhxe4eYH.js} +114 -148
- package/dist/{ButtonBase-CBFRgTBs.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-uylSwkXQ.js} +24 -24
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-DyggcxBG.js → CardContent-uV5Z3O4p.js} +5 -5
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/{Checkbox-DkrWUPYT.js → Checkbox-hXnta6hd.js} +95 -68
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-Y39z3DS6.js → Chip-klg9LPzp.js} +53 -54
- package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DcEnE5le.js} +28 -29
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{Close-DJDhRwj2.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{Close-hx7dlgmZ.js → Close-KuFfPteA.js} +1 -1
- package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-D9nattPL.js} +1 -1
- package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-BITNDbQ_.js} +209 -216
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-D1YD4uGk.js} +995 -1002
- package/dist/DatePicker-PBy3aYBw.cjs +13 -0
- package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-CojEWOKR.js} +55 -55
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-Cfk3fOW-.js → Delete-B4Xhz7O1.js} +1 -1
- package/dist/{Delete-DDxv1h6V.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/Dialog-BC20prgn.cjs +1 -0
- package/dist/{Dialog-Ccvug1yq.js → Dialog-Dk2BQsgk.js} +162 -169
- package/dist/{DialogContent-CIMpKm-U.js → DialogContent-C0BzN5yk.js} +3 -3
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-7MyBxAkp.js} +7 -7
- package/dist/DialogTitle-DwOXEToV.cjs +1 -0
- package/dist/{Divider-C2cBikSL.js → Divider-BC2Fp1JG.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-Bnoqtzc6.js → Folder-DYF788Ow.js} +1 -1
- package/dist/{Folder-DEtB13yM.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-EkpI8MQr.js → FormLabel-Dx6hkLPd.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-B_clfUP9.js → Grow-C654F4zC.js} +6 -5
- package/dist/Grow-DPejKxV0.cjs +1 -0
- package/dist/{IconButton-D1mhTuaI.js → IconButton-BmspylGQ.js} +26 -27
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-BrH8kQg8.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/{InputBase-BQnEIwl1.js → InputBase-B3APXSc_.js} +278 -277
- package/dist/InputBase-CELFJljc.cjs +3 -0
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{Link-8ltXgZj7.js → Link-D3HS1nTr.js} +15 -16
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{List-DJsqHOqv.js → List-vQ97f0T4.js} +2 -2
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/{ListItem-BspNcHM_.js → ListItem-kT8cZ-t_.js} +17 -17
- package/dist/ListItemText-DaUQA10v.js +845 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/Menu-BGO4rdUL.cjs +7 -0
- package/dist/{Menu-DPhreDcS.js → Menu-bXn70x2T.js} +405 -335
- package/dist/{MenuItem-Fb7iU47J.js → MenuItem-88KizCxg.js} +14 -14
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{Modal-dmMiGSAp.js → Modal-BGSxrh8O.js} +240 -245
- package/dist/Modal-CPt1nneG.cjs +2 -0
- package/dist/{MoreVert-BCGFGn8f.js → MoreVert-BLY3HCz9.js} +1 -1
- package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/{Paper-CEDxpHWv.js → Paper-D1MPGEsw.js} +9 -9
- package/dist/Popper-C6iJjm-m.cjs +4 -0
- package/dist/{Popper-D5_YIJX6.js → Popper-DbqO1kUk.js} +10 -10
- package/dist/Portal-C2eqRUQp.js +85 -0
- package/dist/Portal-Dm9aDz8_.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-B4sx0387.js → Radio-BlcCOkYY.js} +226 -183
- package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-C1L3hzrF.js} +20 -20
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/Select-BTL6ppWW.cjs +3 -0
- package/dist/{Select-CxnCi-3l.js → Select-CWv7tdJU.js} +321 -349
- package/dist/{Stack-CzKIgmIE.js → Stack-Bkppffhe.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-D3KweZGQ.js → Switch-CbNrfyJP.js} +167 -108
- package/dist/SwitchBase-BkcX4xzb.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{Tab-C1r8JXwz.js → Tab-CeMAH2vi.js} +597 -537
- package/dist/{TextField-D-_WjPAW.js → TextField-ChDtIm6f.js} +133 -124
- package/dist/TextField-SGIs7v2v.cjs +1 -0
- package/dist/{ToggleButtonGroup-gxIqbo6a.js → ToggleButtonGroup-B8hGStTV.js} +1956 -1784
- package/dist/ToggleButtonGroup-C64DhY80.cjs +138 -0
- package/dist/{Tooltip-D0bof-68.js → Tooltip-DDiPhklW.js} +37 -37
- package/dist/Tooltip-DcBB_9cg.cjs +4 -0
- package/dist/{Typography-DBJqhIhB.js → Typography-BceX4HUn.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/Autocomplete/Autocomplete.cjs.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +11 -0
- package/dist/components/Autocomplete/Autocomplete.es.js +52 -0
- package/dist/components/Autocomplete/index.cjs.js +1 -0
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.es.js +4 -0
- 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 +2 -2
- 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.es.js +2 -2
- 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.es.js +1 -1
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +25 -25
- 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 +4 -4
- package/dist/components/TreeView/TreeView.es.js +14 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -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 +310 -311
- 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.es.js +29 -29
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-Q_5wEReh.js} +54 -55
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-CG6GpKdW.js} +1 -1
- package/dist/elementAcceptingRef-BzA19fXF.cjs +1 -0
- package/dist/elementAcceptingRef-De-6sh1C.js +25 -0
- package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DAXsN6bV.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BNvofXln.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/getReactElementRef-B4Mdq17D.js +8 -0
- package/dist/getReactElementRef-BPy0WStw.cjs +1 -0
- package/dist/{generateUtilityClasses-BpRGbQmY.js → identifier-UGP6vjyr.js} +811 -845
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CDLJvERp.js → index-BEwCnUM5.js} +2 -2
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-CoYVLWJY.js → index-DF_6gEtu.js} +4 -4
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-JOgYmUF8.js → index-Q0xeFkEM.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +310 -311
- package/dist/inputBaseClasses-BMcreG7U.cjs +1 -0
- package/dist/inputBaseClasses-BPb0JVKx.js +9 -0
- package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-Ceqh8Tnn.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-44McxcVZ.js → memoTheme-D0vyNKLd.js} +1 -1
- package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-D_CzNhXE.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-DsRJ5_Sj.js → refType-BjXePEDa.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-blmInu6U.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-CxlUbTmA.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-DspaNRnE.js} +2 -2
- package/dist/useTheme-9UmqLsq5.js +11 -0
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/{useTheme-C2OE_AnH.js → useTheme-CXUszJGf.js} +1 -1
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-B4kO75RK.js +17 -0
- package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-DGawbBM3.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-DFLaK7Ad.js → utils-CByxilR5.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-Dg5u5Z7d.cjs +0 -1
- package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
- package/dist/Backdrop-BrTs3LxC.cjs +0 -1
- package/dist/Box-CFuWIdLg.cjs +0 -1
- package/dist/Button-C7tsSPXV.cjs +0 -1
- package/dist/CardContent-BRUkl8hU.cjs +0 -1
- package/dist/Checkbox-C_wSNEHD.cjs +0 -1
- package/dist/Chip-DUeBMcO4.cjs +0 -1
- package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
- package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
- package/dist/DatePicker-BYPJypQT.cjs +0 -14
- package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
- package/dist/Dialog-DOXpPT7S.cjs +0 -1
- package/dist/DialogContent-BoIE95Tg.cjs +0 -1
- package/dist/DialogTitle-B_am69Lr.cjs +0 -1
- package/dist/Divider-Nyl7rx-c.cjs +0 -1
- package/dist/FormLabel-D4O160ND.cjs +0 -2
- package/dist/Grow-DKA2Mfhu.cjs +0 -1
- package/dist/IconButton-CGfKAsNI.cjs +0 -2
- package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
- package/dist/InputBase-BIf-xtMJ.cjs +0 -3
- package/dist/Link-CS0qbKjo.cjs +0 -1
- package/dist/List-T5dKKWkc.cjs +0 -1
- package/dist/ListItem-BN7OXyEP.cjs +0 -1
- package/dist/ListItemText-6gXRtF3r.cjs +0 -1
- package/dist/ListItemText-afV0BrJL.js +0 -928
- package/dist/Menu-D6dHPVP_.cjs +0 -7
- package/dist/MenuItem-DOVsV_vI.cjs +0 -1
- package/dist/Modal-B8xPmNJd.cjs +0 -2
- package/dist/Paper-owda8LtM.cjs +0 -2
- package/dist/Popper-DMGJYlm7.cjs +0 -4
- package/dist/Portal-BKVc0iys.js +0 -81
- package/dist/Portal-CgaP8O8B.cjs +0 -1
- package/dist/Radio-OUfsD89D.cjs +0 -1
- package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
- package/dist/Select-CUlunaOr.cjs +0 -3
- package/dist/Stack-D5_1ZBcn.cjs +0 -1
- package/dist/Switch-DpdnFebj.cjs +0 -1
- package/dist/SwitchBase-BsP35Aas.js +0 -262
- package/dist/SwitchBase-DMGf52a3.cjs +0 -1
- package/dist/Tab-DZvAf79O.cjs +0 -4
- package/dist/TextField-C0KpyS6X.cjs +0 -1
- package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
- package/dist/Tooltip-BljbhP1z.cjs +0 -4
- package/dist/Typography-yvyJLNFu.cjs +0 -1
- package/dist/capitalize-CToVceBw.cjs +0 -1
- package/dist/capitalize-DSG2FA7x.js +0 -9
- package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
- package/dist/dividerClasses-BtzbOVqV.cjs +0 -1
- package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
- package/dist/extendSxProp-BKP1AeGz.cjs +0 -1
- package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
- package/dist/getReactElementRef-CD3_Stk5.js +0 -31
- package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
- package/dist/index-Bt7ukCXi.cjs +0 -5
- package/dist/index-DCpyECL4.cjs +0 -1
- package/dist/index-baZm35zL.cjs +0 -1
- package/dist/listItemTextClasses-DePeZNtZ.cjs +0 -1
- package/dist/refType-DDdajp2p.cjs +0 -1
- package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
- package/dist/resolveComponentProps-BZQ1jKzF.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-CSTfsYPJ.cjs +0 -1
- package/dist/useSlot-CYOxsM2I.js +0 -48
- package/dist/useSlotProps-DTgWZk99.cjs +0 -1
- package/dist/useTheme-BDL2rp7a.js +0 -11
- package/dist/useTheme-CCi6a5Vl.cjs +0 -1
- package/dist/useTheme-DpMakc_Y.cjs +0 -1
- package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
- package/dist/useThemeProps-DjkGUV8r.js +0 -17
- package/dist/utils-Cn6wZNus.cjs +0 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import * as J from "react";
|
|
2
|
+
import { G as M, F as Q, K as W, P as e } from "./identifier-UGP6vjyr.js";
|
|
3
|
+
import { s as C, c as X, r as Y } from "./DefaultPropsProvider-CojEWOKR.js";
|
|
4
|
+
import { u as Z } from "./useFormControl-CatNKXAi.js";
|
|
5
|
+
import { u as k } from "./useSlot-CxlUbTmA.js";
|
|
6
|
+
import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
|
|
7
|
+
import { u as te } from "./useControlled-BYdyS7Pn.js";
|
|
8
|
+
import { B as se } from "./ButtonBase-uylSwkXQ.js";
|
|
9
|
+
import { r as ne } from "./refType-BjXePEDa.js";
|
|
10
|
+
function re(s) {
|
|
11
|
+
return M("PrivateSwitchBase", s);
|
|
12
|
+
}
|
|
13
|
+
Q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
14
|
+
const ie = (s) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: n,
|
|
17
|
+
checked: d,
|
|
18
|
+
disabled: p,
|
|
19
|
+
edge: a
|
|
20
|
+
} = s, u = {
|
|
21
|
+
root: ["root", d && "checked", p && "disabled", a && `edge${W(a)}`],
|
|
22
|
+
input: ["input"]
|
|
23
|
+
};
|
|
24
|
+
return X(u, re, n);
|
|
25
|
+
}, ae = C(se)({
|
|
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: n
|
|
40
|
+
}) => s === "start" && n.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: n
|
|
56
|
+
}) => s === "end" && n.size !== "small",
|
|
57
|
+
style: {
|
|
58
|
+
marginRight: -12
|
|
59
|
+
}
|
|
60
|
+
}]
|
|
61
|
+
}), ce = C("input", {
|
|
62
|
+
shouldForwardProp: Y
|
|
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
|
+
}), le = /* @__PURE__ */ J.forwardRef(function(n, d) {
|
|
75
|
+
const {
|
|
76
|
+
autoFocus: p,
|
|
77
|
+
checked: a,
|
|
78
|
+
checkedIcon: u,
|
|
79
|
+
defaultChecked: m,
|
|
80
|
+
disabled: w,
|
|
81
|
+
disableFocusRipple: g = !1,
|
|
82
|
+
edge: R = !1,
|
|
83
|
+
icon: x,
|
|
84
|
+
id: T,
|
|
85
|
+
inputProps: I,
|
|
86
|
+
inputRef: j,
|
|
87
|
+
name: O,
|
|
88
|
+
onBlur: h,
|
|
89
|
+
onChange: b,
|
|
90
|
+
onFocus: y,
|
|
91
|
+
readOnly: z,
|
|
92
|
+
required: q = !1,
|
|
93
|
+
tabIndex: N,
|
|
94
|
+
type: l,
|
|
95
|
+
value: P,
|
|
96
|
+
slots: E = {},
|
|
97
|
+
slotProps: U = {},
|
|
98
|
+
...v
|
|
99
|
+
} = n, [F, L] = te({
|
|
100
|
+
controlled: a,
|
|
101
|
+
default: !!m,
|
|
102
|
+
name: "SwitchBase",
|
|
103
|
+
state: "checked"
|
|
104
|
+
}), r = Z(), D = (o) => {
|
|
105
|
+
y && y(o), r && r.onFocus && r.onFocus(o);
|
|
106
|
+
}, G = (o) => {
|
|
107
|
+
h && h(o), r && r.onBlur && r.onBlur(o);
|
|
108
|
+
}, K = (o) => {
|
|
109
|
+
if (o.nativeEvent.defaultPrevented)
|
|
110
|
+
return;
|
|
111
|
+
const t = o.target.checked;
|
|
112
|
+
L(t), b && b(o, t);
|
|
113
|
+
};
|
|
114
|
+
let c = w;
|
|
115
|
+
r && typeof c > "u" && (c = r.disabled);
|
|
116
|
+
const V = l === "checkbox" || l === "radio", f = {
|
|
117
|
+
...n,
|
|
118
|
+
checked: F,
|
|
119
|
+
disabled: c,
|
|
120
|
+
disableFocusRipple: g,
|
|
121
|
+
edge: R
|
|
122
|
+
}, S = ie(f), B = {
|
|
123
|
+
slots: E,
|
|
124
|
+
slotProps: {
|
|
125
|
+
input: I,
|
|
126
|
+
...U
|
|
127
|
+
}
|
|
128
|
+
}, [_, $] = k("root", {
|
|
129
|
+
ref: d,
|
|
130
|
+
elementType: ae,
|
|
131
|
+
className: S.root,
|
|
132
|
+
shouldForwardComponentProp: !0,
|
|
133
|
+
externalForwardedProps: {
|
|
134
|
+
...B,
|
|
135
|
+
component: "span",
|
|
136
|
+
...v
|
|
137
|
+
},
|
|
138
|
+
getSlotProps: (o) => ({
|
|
139
|
+
...o,
|
|
140
|
+
onFocus: (t) => {
|
|
141
|
+
var i;
|
|
142
|
+
(i = o.onFocus) == null || i.call(o, t), D(t);
|
|
143
|
+
},
|
|
144
|
+
onBlur: (t) => {
|
|
145
|
+
var i;
|
|
146
|
+
(i = o.onBlur) == null || i.call(o, t), G(t);
|
|
147
|
+
}
|
|
148
|
+
}),
|
|
149
|
+
ownerState: f,
|
|
150
|
+
additionalProps: {
|
|
151
|
+
centerRipple: !0,
|
|
152
|
+
focusRipple: !g,
|
|
153
|
+
disabled: c,
|
|
154
|
+
role: void 0,
|
|
155
|
+
tabIndex: null
|
|
156
|
+
}
|
|
157
|
+
}), [A, H] = k("input", {
|
|
158
|
+
ref: j,
|
|
159
|
+
elementType: ce,
|
|
160
|
+
className: S.input,
|
|
161
|
+
externalForwardedProps: B,
|
|
162
|
+
getSlotProps: (o) => ({
|
|
163
|
+
...o,
|
|
164
|
+
onChange: (t) => {
|
|
165
|
+
var i;
|
|
166
|
+
(i = o.onChange) == null || i.call(o, t), K(t);
|
|
167
|
+
}
|
|
168
|
+
}),
|
|
169
|
+
ownerState: f,
|
|
170
|
+
additionalProps: {
|
|
171
|
+
autoFocus: p,
|
|
172
|
+
checked: a,
|
|
173
|
+
defaultChecked: m,
|
|
174
|
+
disabled: c,
|
|
175
|
+
id: V ? T : void 0,
|
|
176
|
+
name: O,
|
|
177
|
+
readOnly: z,
|
|
178
|
+
required: q,
|
|
179
|
+
tabIndex: N,
|
|
180
|
+
type: l,
|
|
181
|
+
...l === "checkbox" && P === void 0 ? {} : {
|
|
182
|
+
value: P
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
return /* @__PURE__ */ ee(_, {
|
|
187
|
+
...$,
|
|
188
|
+
children: [/* @__PURE__ */ oe(A, {
|
|
189
|
+
...H
|
|
190
|
+
}), F ? u : x]
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
194
|
+
/**
|
|
195
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
196
|
+
*/
|
|
197
|
+
autoFocus: e.bool,
|
|
198
|
+
/**
|
|
199
|
+
* If `true`, the component is checked.
|
|
200
|
+
*/
|
|
201
|
+
checked: e.bool,
|
|
202
|
+
/**
|
|
203
|
+
* The icon to display when the component is checked.
|
|
204
|
+
*/
|
|
205
|
+
checkedIcon: e.node.isRequired,
|
|
206
|
+
/**
|
|
207
|
+
* Override or extend the styles applied to the component.
|
|
208
|
+
*/
|
|
209
|
+
classes: e.object,
|
|
210
|
+
/**
|
|
211
|
+
* @ignore
|
|
212
|
+
*/
|
|
213
|
+
className: e.string,
|
|
214
|
+
/**
|
|
215
|
+
* @ignore
|
|
216
|
+
*/
|
|
217
|
+
defaultChecked: e.bool,
|
|
218
|
+
/**
|
|
219
|
+
* If `true`, the component is disabled.
|
|
220
|
+
*/
|
|
221
|
+
disabled: e.bool,
|
|
222
|
+
/**
|
|
223
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
disableFocusRipple: e.bool,
|
|
227
|
+
/**
|
|
228
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
229
|
+
* side (this is often helpful for aligning the left or right
|
|
230
|
+
* side of the icon with content above or below, without ruining the border
|
|
231
|
+
* size and shape).
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
235
|
+
/**
|
|
236
|
+
* The icon to display when the component is unchecked.
|
|
237
|
+
*/
|
|
238
|
+
icon: e.node.isRequired,
|
|
239
|
+
/**
|
|
240
|
+
* The id of the `input` element.
|
|
241
|
+
*/
|
|
242
|
+
id: e.string,
|
|
243
|
+
/**
|
|
244
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
245
|
+
*/
|
|
246
|
+
inputProps: e.object,
|
|
247
|
+
/**
|
|
248
|
+
* Pass a ref to the `input` element.
|
|
249
|
+
*/
|
|
250
|
+
inputRef: ne,
|
|
251
|
+
/*
|
|
252
|
+
* @ignore
|
|
253
|
+
*/
|
|
254
|
+
name: e.string,
|
|
255
|
+
/**
|
|
256
|
+
* @ignore
|
|
257
|
+
*/
|
|
258
|
+
onBlur: e.func,
|
|
259
|
+
/**
|
|
260
|
+
* Callback fired when the state is changed.
|
|
261
|
+
*
|
|
262
|
+
* @param {object} event The event source of the callback.
|
|
263
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
264
|
+
*/
|
|
265
|
+
onChange: e.func,
|
|
266
|
+
/**
|
|
267
|
+
* @ignore
|
|
268
|
+
*/
|
|
269
|
+
onFocus: e.func,
|
|
270
|
+
/**
|
|
271
|
+
* It prevents the user from changing the value of the field
|
|
272
|
+
* (not from interacting with the field).
|
|
273
|
+
*/
|
|
274
|
+
readOnly: e.bool,
|
|
275
|
+
/**
|
|
276
|
+
* If `true`, the `input` element is required.
|
|
277
|
+
*/
|
|
278
|
+
required: e.bool,
|
|
279
|
+
/**
|
|
280
|
+
* The props used for each slot inside.
|
|
281
|
+
* @default {}
|
|
282
|
+
*/
|
|
283
|
+
slotProps: e.shape({
|
|
284
|
+
input: e.oneOfType([e.func, e.object]),
|
|
285
|
+
root: e.oneOfType([e.func, e.object])
|
|
286
|
+
}),
|
|
287
|
+
/**
|
|
288
|
+
* The components used for each slot inside.
|
|
289
|
+
* @default {}
|
|
290
|
+
*/
|
|
291
|
+
slots: e.shape({
|
|
292
|
+
input: e.elementType,
|
|
293
|
+
root: e.elementType
|
|
294
|
+
}),
|
|
295
|
+
/**
|
|
296
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
297
|
+
*/
|
|
298
|
+
sx: e.object,
|
|
299
|
+
/**
|
|
300
|
+
* @ignore
|
|
301
|
+
*/
|
|
302
|
+
tabIndex: e.oneOfType([e.number, e.string]),
|
|
303
|
+
/**
|
|
304
|
+
* The input component prop `type`.
|
|
305
|
+
*/
|
|
306
|
+
type: e.string.isRequired,
|
|
307
|
+
/**
|
|
308
|
+
* The value of the component.
|
|
309
|
+
*/
|
|
310
|
+
value: e.any
|
|
311
|
+
});
|
|
312
|
+
export {
|
|
313
|
+
le as S
|
|
314
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Q=require("react"),e=require("./identifier-gJdGmHeC.cjs"),d=require("./DefaultPropsProvider-DLSItMqn.cjs"),W=require("./useFormControl-haP0iPhl.cjs"),F=require("./useSlot-zJFQDOgm.cjs"),k=require("react/jsx-runtime"),X=require("./useControlled-Ysk4KqoX.cjs"),Y=require("./ButtonBase-DDgwUJIY.cjs"),Z=require("./refType-53jD7LEO.cjs");function ee(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,c.get?c:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const oe=ee(Q);function te(t){return e.generateUtilityClass("PrivateSwitchBase",t)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const se=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${e.capitalize(a)}`],input:["input"]};return d.composeClasses(y,te,s)},re=d.styled(Y.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:s})=>t==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:s})=>t==="end"&&s.size!=="small",style:{marginRight:-12}}]}),ne=d.styled("input",{shouldForwardProp:d.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),w=oe.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:f,disabled:R,disableFocusRipple:T=!1,edge:q=!1,icon:j,id:x,inputProps:O,inputRef:I,name:z,onBlur:g,onChange:b,onFocus:h,readOnly:N,required:v=!1,tabIndex:D,type:u,value:m,slots:E={},slotProps:U={},..._}=s,[S,L]=X.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),p=W.useFormControl(),M=o=>{h&&h(o),p&&p.onFocus&&p.onFocus(o)},V=o=>{g&&g(o),p&&p.onBlur&&p.onBlur(o)},$=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;L(r),b&&b(o,r)};let l=R;p&&typeof l>"u"&&(l=p.disabled);const A=u==="checkbox"||u==="radio",P={...s,checked:S,disabled:l,disableFocusRipple:T,edge:q},B=se(P),C={slots:E,slotProps:{input:O,...U}},[G,H]=F.useSlot("root",{ref:n,elementType:re,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...C,component:"span",..._},getSlotProps:o=>({...o,onFocus:r=>{var i;(i=o.onFocus)==null||i.call(o,r),M(r)},onBlur:r=>{var i;(i=o.onBlur)==null||i.call(o,r),V(r)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!T,disabled:l,role:void 0,tabIndex:null}}),[J,K]=F.useSlot("input",{ref:I,elementType:ne,className:B.input,externalForwardedProps:C,getSlotProps:o=>({...o,onChange:r=>{var i;(i=o.onChange)==null||i.call(o,r),$(r)}}),ownerState:P,additionalProps:{autoFocus:c,checked:a,defaultChecked:f,disabled:l,id:A?x:void 0,name:z,readOnly:N,required:v,tabIndex:D,type:u,...u==="checkbox"&&m===void 0?{}:{value:m}}});return k.jsxs(G,{...H,children:[k.jsx(J,{...K}),S?y:j]})});process.env.NODE_ENV!=="production"&&(w.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:Z.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=w;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const wo=require("react"),e=require("./identifier-gJdGmHeC.cjs"),T=require("react/jsx-runtime"),$e=require("./index-D14TzUgK.cjs"),Co=require("./useTheme-NQRIebh0.cjs"),m=require("./DefaultPropsProvider-DLSItMqn.cjs"),fe=require("./memoTheme-GOMOSdXJ.cjs"),se=require("./useEventCallback-BxpcFap0.cjs"),Le=require("./debounce-DpCj7ugL.cjs"),ze=require("./ownerWindow-DDHucZi0.cjs"),U=require("./useSlot-zJFQDOgm.cjs"),le=require("./useSlotProps-CuEZ7HQe.cjs"),qe=require("./createSvgIcon-DPiiTkVU.cjs"),Ae=require("./ButtonBase-DDgwUJIY.cjs"),Bo=require("./ownerDocument-4MViGo3k.cjs"),Eo=require("./refType-53jD7LEO.cjs"),Io=require("./useThemeProps-DnpiVoRo.cjs"),Oo=require("./unsupportedProp-Bn6XWqwH.cjs");function Mo(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(o,s,l.get?l:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const a=Mo(wo),ye=a.createContext(null);process.env.NODE_ENV!=="production"&&(ye.displayName="TabContext");function Ro(){const[t,o]=a.useState(null);return a.useEffect(()=>{o(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),t}function Ue(t){const{children:o,value:s}=t,l=Ro(),c=a.useMemo(()=>({idPrefix:l,value:s}),[l,s]);return T.jsx(ye.Provider,{value:c,children:o})}process.env.NODE_ENV!=="production"&&(Ue.propTypes={children:e.PropTypes.node,value:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).isRequired});function be(){return a.useContext(ye)}function Te(t,o){const{idPrefix:s}=t;return s===null?null:`${t.idPrefix}-P-${o}`}function Pe(t,o){const{idPrefix:s}=t;return s===null?null:`${t.idPrefix}-T-${o}`}function No(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function jo(t,o,s,l={},c=()=>{}){const{ease:p=No,duration:d=300}=l;let f=null;const b=o[t];let h=!1;const v=()=>{h=!0},P=S=>{if(h){c(new Error("Animation cancelled"));return}f===null&&(f=S);const x=Math.min(1,(S-f)/d);if(o[t]=p(x)*(s-b)+b,x>=1){requestAnimationFrame(()=>{c(null)});return}requestAnimationFrame(P)};return b===s?(c(new Error("Element already at target position")),v):(requestAnimationFrame(P),v)}const Do={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Fe(t){const{onChange:o,...s}=t,l=a.useRef(),c=a.useRef(null),p=()=>{l.current=c.current.offsetHeight-c.current.clientHeight};return se.useEnhancedEffect(()=>{const d=Le.debounce(()=>{const b=l.current;p(),b!==l.current&&o(l.current)}),f=ze.ownerWindow(c.current);return f.addEventListener("resize",d),()=>{d.clear(),f.removeEventListener("resize",d)}},[o]),a.useEffect(()=>{p(),o(l.current)},[o]),T.jsx("div",{style:Do,...s,ref:c})}process.env.NODE_ENV!=="production"&&(Fe.propTypes={onChange:e.PropTypes.func.isRequired});const Ve=qe.createSvgIcon(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),He=qe.createSvgIcon(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function ko(t){return e.generateUtilityClass("MuiTabScrollButton",t)}const Wo=e.generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$o=t=>{const{classes:o,orientation:s,disabled:l}=t,c={root:["root",s,l&&"disabled"]};return m.composeClasses(c,ko,o)},Lo=m.styled(Ae.ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.orientation&&o[s.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Wo.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),_e=a.forwardRef(function(o,s){const l=m.useDefaultProps({props:o,name:"MuiTabScrollButton"}),{className:c,slots:p={},slotProps:d={},direction:f,orientation:b,disabled:h,...v}=l,P=$e.useRtl(),S={isRtl:P,...l},x=$o(S),W=p.StartScrollButtonIcon??Ve,E=p.EndScrollButtonIcon??He,w=le.useSlotProps({elementType:W,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),Y=le.useSlotProps({elementType:E,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return T.jsx(Lo,{component:"div",className:e.clsx(x.root,c),ref:s,role:null,ownerState:S,tabIndex:null,...v,style:{...v.style,...b==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${P?-90:90}deg)`}},children:f==="left"?T.jsx(W,{...w}):T.jsx(E,{...Y})})});process.env.NODE_ENV!=="production"&&(_e.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 Ke(t){return e.generateUtilityClass("MuiTabs",t)}const ne=e.generateUtilityClasses("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),je=(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,re=(t,o,s)=>{let l=!1,c=s(t,o);for(;c;){if(c===t.firstChild){if(l)return;l=!0}const p=c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||p)c=s(t,c);else{c.focus();return}}},zo=t=>{const{vertical:o,fixed:s,hideScrollbar:l,scrollableX:c,scrollableY:p,centered:d,scrollButtonsHideMobile:f,classes:b}=t,h={root:["root",o&&"vertical"],scroller:["scroller",s&&"fixed",l&&"hideScrollbar",c&&"scrollableX",p&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",d&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[c&&"scrollableX"],hideScrollbar:[l&&"hideScrollbar"]};return m.composeClasses(h,Ke,b)},qo=m.styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[{[`& .${ne.scrollButtons}`]:o.scrollButtons},{[`& .${ne.scrollButtons}`]:s.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,s.vertical&&o.vertical]}})(fe.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:{[`& .${ne.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Ao=m.styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.scroller,s.fixed&&o.fixed,s.hideScrollbar&&o.hideScrollbar,s.scrollableX&&o.scrollableX,s.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"}}]}),Uo=m.styled("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.list,o.flexContainer,s.vertical&&o.flexContainerVertical,s.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Fo=m.styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,o)=>o.indicator})(fe.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}}]}))),Vo=m.styled(Fe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ke={};let We=!1;const he=a.forwardRef(function(o,s){const l=m.useDefaultProps({props:o,name:"MuiTabs"}),c=Co.useTheme(),p=$e.useRtl(),{"aria-label":d,"aria-labelledby":f,action:b,centered:h=!1,children:v,className:P,component:S="div",allowScrollButtonsMobile:x=!1,indicatorColor:W="primary",onChange:E,orientation:w="horizontal",ScrollButtonComponent:Y,scrollButtons:O="auto",selectionFollowsFocus:ae,slots:M={},slotProps:q={},TabIndicatorProps:F={},TabScrollButtonProps:V={},textColor:G="primary",value:D,variant:R="standard",visibleScrollbar:ce=!1,...Ze}=l,C=R==="scrollable",B=w==="vertical",H=B?"scrollTop":"scrollLeft",J=B?"top":"left",Q=B?"bottom":"right",ie=B?"clientHeight":"clientWidth",_=B?"height":"width",N={...l,component:S,allowScrollButtonsMobile:x,indicatorColor:W,orientation:w,vertical:B,scrollButtons:O,textColor:G,variant:R,visibleScrollbar:ce,fixed:!C,hideScrollbar:C&&!ce,scrollableX:C&&!B,scrollableY:C&&B,centered:h&&!C,scrollButtonsHideMobile:!x},k=zo(N),eo=le.useSlotProps({elementType:M.StartScrollButtonIcon,externalSlotProps:q.startScrollButtonIcon,ownerState:N}),oo=le.useSlotProps({elementType:M.EndScrollButtonIcon,externalSlotProps:q.endScrollButtonIcon,ownerState:N});process.env.NODE_ENV!=="production"&&h&&C&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[Se,to]=a.useState(!1),[$,me]=a.useState(ke),[ve,ro]=a.useState(!1),[ge,so]=a.useState(!1),[xe,no]=a.useState(!1),[we,lo]=a.useState({overflow:"hidden",scrollbarWidth:0}),Z=new Map,j=a.useRef(null),L=a.useRef(null),A={slots:M,slotProps:{indicator:F,scrollButton:V,...q}},Ce=()=>{const r=j.current;let n;if(r){const u=r.getBoundingClientRect();n={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:r.scrollWidth,top:u.top,bottom:u.bottom,left:u.left,right:u.right}}let i;if(r&&D!==!1){const u=L.current.children;if(u.length>0){const y=u[Z.get(D)];process.env.NODE_ENV!=="production"&&(y||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${D}".`,Z.keys?`You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.`:null].join(`
|
|
2
|
+
`))),i=y?y.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!We&&i&&i.width===0&&i.height===0&&n.clientWidth!==0&&(n=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${D}") 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
|
+
`)),We=!0)}}return{tabsMeta:n,tabMeta:i}},K=se.useEventCallback(()=>{const{tabsMeta:r,tabMeta:n}=Ce();let i=0,u;B?(u="top",n&&r&&(i=n.top-r.top+r.scrollTop)):(u=p?"right":"left",n&&r&&(i=(p?-1:1)*(n[u]-r[u]+r.scrollLeft)));const y={[u]:i,[_]:n?n[_]:0};if(typeof $[u]!="number"||typeof $[_]!="number")me(y);else{const I=Math.abs($[u]-y[u]),z=Math.abs($[_]-y[_]);(I>=1||z>=1)&&me(y)}}),pe=(r,{animation:n=!0}={})=>{n?jo(H,j.current,r,{duration:c.transitions.duration.standard}):j.current[H]=r},Be=r=>{let n=j.current[H];B?n+=r:n+=r*(p?-1:1),pe(n)},Ee=()=>{const r=j.current[ie];let n=0;const i=Array.from(L.current.children);for(let u=0;u<i.length;u+=1){const y=i[u];if(n+y[ie]>r){u===0&&(n=r);break}n+=y[ie]}return n},ao=()=>{Be(-1*Ee())},co=()=>{Be(Ee())},[io,{onChange:ee,...po}]=U.useSlot("scrollbar",{className:e.clsx(k.scrollableX,k.hideScrollbar),elementType:Vo,shouldForwardComponentProp:!0,externalForwardedProps:A,ownerState:N}),uo=a.useCallback(r=>{ee==null||ee(r),lo({overflow:null,scrollbarWidth:r})},[ee]),[Ie,Oe]=U.useSlot("scrollButtons",{className:e.clsx(k.scrollButtons,V.className),elementType:_e,externalForwardedProps:A,ownerState:N,additionalProps:{orientation:w,slots:{StartScrollButtonIcon:M.startScrollButtonIcon||M.StartScrollButtonIcon,EndScrollButtonIcon:M.endScrollButtonIcon||M.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:eo,endScrollButtonIcon:oo}}}),fo=()=>{const r={};r.scrollbarSizeListener=C?T.jsx(io,{...po,onChange:uo}):null;const i=C&&(O==="auto"&&(ve||ge)||O===!0);return r.scrollButtonStart=i?T.jsx(Ie,{direction:p?"right":"left",onClick:ao,disabled:!ve,...Oe}):null,r.scrollButtonEnd=i?T.jsx(Ie,{direction:p?"left":"right",onClick:co,disabled:!ge,...Oe}):null,r},Me=se.useEventCallback(r=>{const{tabsMeta:n,tabMeta:i}=Ce();if(!(!i||!n)){if(i[J]<n[J]){const u=n[H]+(i[J]-n[J]);pe(u,{animation:r})}else if(i[Q]>n[Q]){const u=n[H]+(i[Q]-n[Q]);pe(u,{animation:r})}}}),oe=se.useEventCallback(()=>{C&&O!==!1&&no(!xe)});a.useEffect(()=>{const r=Le.debounce(()=>{j.current&&K()});let n;const i=I=>{I.forEach(z=>{z.removedNodes.forEach(X=>{n==null||n.unobserve(X)}),z.addedNodes.forEach(X=>{n==null||n.observe(X)})}),r(),oe()},u=ze.ownerWindow(j.current);u.addEventListener("resize",r);let y;return typeof ResizeObserver<"u"&&(n=new ResizeObserver(r),Array.from(L.current.children).forEach(I=>{n.observe(I)})),typeof MutationObserver<"u"&&(y=new MutationObserver(i),y.observe(L.current,{childList:!0})),()=>{r.clear(),u.removeEventListener("resize",r),y==null||y.disconnect(),n==null||n.disconnect()}},[K,oe]),a.useEffect(()=>{const r=Array.from(L.current.children),n=r.length;if(typeof IntersectionObserver<"u"&&n>0&&C&&O!==!1){const i=r[0],u=r[n-1],y={root:j.current,threshold:.99},I=de=>{ro(!de[0].isIntersecting)},z=new IntersectionObserver(I,y);z.observe(i);const X=de=>{so(!de[0].isIntersecting)},Ne=new IntersectionObserver(X,y);return Ne.observe(u),()=>{z.disconnect(),Ne.disconnect()}}},[C,O,xe,v==null?void 0:v.length]),a.useEffect(()=>{to(!0)},[]),a.useEffect(()=>{K()}),a.useEffect(()=>{Me(ke!==$)},[Me,$]),a.useImperativeHandle(b,()=>({updateIndicator:K,updateScrollButtons:oe}),[K,oe]);const[yo,bo]=U.useSlot("indicator",{className:e.clsx(k.indicator,F.className),elementType:Fo,externalForwardedProps:A,ownerState:N,additionalProps:{style:$}}),Re=T.jsx(yo,{...bo});let te=0;const To=a.Children.map(v,r=>{if(!a.isValidElement(r))return null;process.env.NODE_ENV!=="production"&&e.reactIsExports.isFragment(r)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
4
|
+
`));const n=r.props.value===void 0?te:r.props.value;Z.set(n,te);const i=n===D;return te+=1,a.cloneElement(r,{fullWidth:R==="fullWidth",indicator:i&&!Se&&Re,selected:i,selectionFollowsFocus:ae,onChange:E,textColor:G,value:n,...te===1&&D===!1&&!r.props.tabIndex?{tabIndex:0}:{}})}),Po=r=>{if(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)return;const n=L.current,i=Bo.ownerDocument(n).activeElement;if(i.getAttribute("role")!=="tab")return;let y=w==="horizontal"?"ArrowLeft":"ArrowUp",I=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&p&&(y="ArrowRight",I="ArrowLeft"),r.key){case y:r.preventDefault(),re(n,i,De);break;case I:r.preventDefault(),re(n,i,je);break;case"Home":r.preventDefault(),re(n,null,je);break;case"End":r.preventDefault(),re(n,null,De);break}},ue=fo(),[ho,So]=U.useSlot("root",{ref:s,className:e.clsx(k.root,P),elementType:qo,externalForwardedProps:{...A,...Ze,component:S},ownerState:N}),[mo,vo]=U.useSlot("scroller",{ref:j,className:k.scroller,elementType:Ao,externalForwardedProps:A,ownerState:N,additionalProps:{style:{overflow:we.overflow,[B?`margin${p?"Left":"Right"}`:"marginBottom"]:ce?void 0:-we.scrollbarWidth}}}),[go,xo]=U.useSlot("list",{ref:L,className:e.clsx(k.list,k.flexContainer),elementType:Uo,externalForwardedProps:A,ownerState:N,getSlotProps:r=>({...r,onKeyDown:n=>{var i;Po(n),(i=r.onKeyDown)==null||i.call(r,n)}})});return T.jsxs(ho,{...So,children:[ue.scrollButtonStart,ue.scrollbarSizeListener,T.jsxs(mo,{...vo,children:[T.jsx(go,{"aria-label":d,"aria-labelledby":f,"aria-orientation":w==="vertical"?"vertical":null,role:"tablist",...xo,children:To}),Se&&Re]}),ue.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(he.propTypes={action:Eo.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]),indicator:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),list:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),scrollbar:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),scrollButtons:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),scroller: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,EndScrollButtonIcon:e.PropTypes.elementType,indicator:e.PropTypes.elementType,list:e.PropTypes.elementType,root:e.PropTypes.elementType,scrollbar:e.PropTypes.elementType,scrollButtons:e.PropTypes.elementType,scroller:e.PropTypes.elementType,startScrollButtonIcon: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 Xe=a.forwardRef(function(o,s){const{children:l,...c}=o,p=be();if(p===null)throw new TypeError("No TabContext provided");const d=a.Children.map(l,f=>a.isValidElement(f)?a.cloneElement(f,{"aria-controls":Te(p,f.props.value),id:Pe(p,f.props.value)}):null);return T.jsx(he,{...c,ref:s,value:p.value,children:d})});process.env.NODE_ENV!=="production"&&(Xe.propTypes={children:e.PropTypes.node});function Ye(t){return e.generateUtilityClass("MuiTabPanel",t)}const Ho=e.generateUtilityClasses("MuiTabPanel",["root","hidden"]),_o=t=>{const{classes:o,hidden:s}=t,l={root:["root",s&&"hidden"]};return m.composeClasses(l,Ye,o)},Ko=m.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(t,o)=>o.root})(({theme:t})=>({padding:t.spacing(3)})),Ge=a.forwardRef(function(o,s){const l=Io.useThemeProps({props:o,name:"MuiTabPanel"}),{children:c,className:p,value:d,keepMounted:f=!1,...b}=l,h={...l},v=_o(h),P=be();if(P===null)throw new TypeError("No TabContext provided");const S=Te(P,d),x=Pe(P,d);return T.jsx(Ko,{"aria-labelledby":x,className:e.clsx(v.root,p),hidden:d!==P.value,id:S,ref:s,role:"tabpanel",ownerState:h,...b,children:(f||d===P.value)&&c})});process.env.NODE_ENV!=="production"&&(Ge.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 Je(t){return e.generateUtilityClass("MuiTab",t)}const g=e.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Xo=t=>{const{classes:o,textColor:s,fullWidth:l,wrapped:c,icon:p,label:d,selected:f,disabled:b}=t,h={root:["root",p&&d&&"labelIcon",`textColor${e.capitalize(s)}`,l&&"fullWidth",c&&"wrapped",f&&"selected",b&&"disabled"],icon:["iconWrapper","icon"]};return m.composeClasses(h,Je,o)},Yo=m.styled(Ae.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.label&&s.icon&&o.labelIcon,o[`textColor${e.capitalize(s.textColor)}`],s.fullWidth&&o.fullWidth,s.wrapped&&o.wrapped,{[`& .${g.iconWrapper}`]:o.iconWrapper},{[`& .${g.icon}`]:o.icon}]}})(fe.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:s})=>o.icon&&o.label&&s==="top",style:{[`& > .${g.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="bottom",style:{[`& > .${g.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="start",style:{[`& > .${g.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:s})=>o.icon&&o.label&&s==="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)}}]}))),Qe=a.forwardRef(function(o,s){const l=m.useDefaultProps({props:o,name:"MuiTab"}),{className:c,disabled:p=!1,disableFocusRipple:d=!1,fullWidth:f,icon:b,iconPosition:h="top",indicator:v,label:P,onChange:S,onClick:x,onFocus:W,selected:E,selectionFollowsFocus:w,textColor:Y="inherit",value:O,wrapped:ae=!1,...M}=l,q={...l,disabled:p,disableFocusRipple:d,selected:E,icon:!!b,iconPosition:h,label:!!P,fullWidth:f,textColor:Y,wrapped:ae},F=Xo(q),V=b&&P&&a.isValidElement(b)?a.cloneElement(b,{className:e.clsx(F.icon,b.props.className)}):b,G=R=>{!E&&S&&S(R,O),x&&x(R)},D=R=>{w&&!E&&S&&S(R,O),W&&W(R)};return T.jsxs(Yo,{focusRipple:!d,className:e.clsx(F.root,c),ref:s,role:"tab","aria-selected":E,disabled:p,onClick:G,onFocus:D,ownerState:q,tabIndex:E?0:-1,...M,children:[h==="top"||h==="start"?T.jsxs(a.Fragment,{children:[V,P]}):T.jsxs(a.Fragment,{children:[P,V]}),v]})});process.env.NODE_ENV!=="production"&&(Qe.propTypes={children:Oo.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=Ve;exports.KeyboardArrowRight=He;exports.Tab=Qe;exports.TabContext=Ue;exports.TabList=Xe;exports.TabPanel=Ge;exports.Tabs=he;exports.getPanelId=Te;exports.getTabId=Pe;exports.getTabPanelUtilityClass=Ye;exports.getTabUtilityClass=Je;exports.getTabsUtilityClass=Ke;exports.tabClasses=g;exports.tabPanelClasses=Ho;exports.tabsClasses=ne;exports.useTabContext=be;
|