@cgi-learning-hub/ui 1.4.0 → 1.5.0
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-CvizDCvx.cjs +1 -0
- package/dist/Alert-D7eKsj1P.js +452 -0
- package/dist/Autocomplete-Cfz4sLy8.js +1829 -0
- package/dist/Autocomplete-DjU6i3zL.cjs +6 -0
- package/dist/Backdrop-BM-OE2Q_.cjs +1 -0
- package/dist/{Backdrop-DdA12b-5.js → Backdrop-COiz4sPF.js} +20 -19
- package/dist/Box-BmfpLwYG.cjs +1 -0
- package/dist/{Box-DbRInJ2-.js → Box-C-j-U8SH.js} +7 -7
- package/dist/Button-BGWvL_UD.cjs +1 -0
- package/dist/{Button-rxIER0bL.js → Button-CQQdMCSm.js} +147 -113
- package/dist/{ButtonBase-DzpmdR6N.js → ButtonBase-CZFKUUHD.js} +4 -4
- package/dist/{ButtonBase-C2rhY3j-.cjs → ButtonBase-NqQjeQ4X.cjs} +1 -1
- package/dist/CardContent-GHLuvxgm.cjs +1 -0
- package/dist/{CardContent-u1MKaFvP.js → CardContent-sX9Bw4Ke.js} +3 -3
- package/dist/{Checkbox-BI77q7eR.js → Checkbox-1Zr36vDa.js} +23 -22
- package/dist/Checkbox-BZYoJieY.cjs +1 -0
- package/dist/{Chip-6-zATjcr.js → Chip-BsErraqe.js} +50 -49
- package/dist/Chip-Cu_SZxrx.cjs +1 -0
- package/dist/{CircularProgress-CDa_qU1a.js → CircularProgress-BBHGA0JX.js} +14 -13
- package/dist/CircularProgress-CdS7-HOv.cjs +28 -0
- package/dist/Close-ZXg7X3Tz.cjs +1 -0
- package/dist/Close-r-ZUhk0-.js +9 -0
- package/dist/{CloseRounded-DTpqUeWr.js → CloseRounded-B-eaQsyM.js} +1 -1
- package/dist/{CloseRounded-DQWTEbNz.cjs → CloseRounded-CWmxueMc.cjs} +1 -1
- package/dist/CustomTreeItem-BIl2yiro.cjs +4 -0
- package/dist/CustomTreeItem-BpAK85gf.js +1336 -0
- package/dist/{DatePicker-BTTLIBm9.js → DatePicker-CWMXTgRG.js} +3032 -3133
- package/dist/DatePicker-tyDzcyzu.cjs +14 -0
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +1 -0
- package/dist/{DefaultPropsProvider-BcmyIf2H.js → DefaultPropsProvider-CXfMJdg8.js} +24 -24
- package/dist/Delete-CpTtpM4U.cjs +1 -0
- package/dist/Delete-DKn2lIDB.js +8 -0
- package/dist/Dialog-DIHzs0ro.cjs +1 -0
- package/dist/{Dialog-CgBiKk8B.js → Dialog-pU1ZAttp.js} +17 -16
- package/dist/DialogContent-B-9ga3Wv.cjs +1 -0
- package/dist/{DialogContent-SYCCu1VD.js → DialogContent-BEgapieO.js} +3 -3
- package/dist/DialogTitle-B_UN_oL2.cjs +1 -0
- package/dist/{DialogTitle-_yayDwkI.js → DialogTitle-Dcls3mcZ.js} +5 -5
- package/dist/{Divider-Doy31VS6.js → Divider-CT4XaEn6.js} +8 -8
- package/dist/Divider-iYLSpFUc.cjs +1 -0
- package/dist/Folder-DWD_1Fux.cjs +1 -0
- package/dist/Folder-DoEl37QZ.js +8 -0
- package/dist/{FormLabel-DjkS3S9h.js → FormLabel-BF6m-_uI.js} +68 -76
- package/dist/FormLabel-Cp2OFw8d.cjs +2 -0
- package/dist/{Grow-DPD-iBAX.js → Grow-Bk7XkPFP.js} +14 -13
- package/dist/Grow-DXY5DOqR.cjs +1 -0
- package/dist/IconButton-BLZJne06.cjs +2 -0
- package/dist/{IconButton-B4bt0Hp2.js → IconButton-BQW0xjdH.js} +27 -26
- package/dist/InputAdornment-C0WI_oQg.cjs +1 -0
- package/dist/{InputAdornment-GzDm1zf_.js → InputAdornment-C6UfLaud.js} +9 -8
- package/dist/InputBase-B3KOyouT.cjs +3 -0
- package/dist/{InputBase-CF5oNEfh.js → InputBase-YOnatBxw.js} +41 -40
- package/dist/{Link-CnahHTmK.js → Link-C3rf4gqc.js} +11 -10
- package/dist/Link-lvpmE2yz.cjs +1 -0
- package/dist/List-CFInjv2S.js +130 -0
- package/dist/List-PQXGlDbt.cjs +1 -0
- package/dist/ListItem-BAAZxsu5.js +423 -0
- package/dist/ListItem-CWEvdMjN.cjs +1 -0
- package/dist/ListItemText-BhxrnTkb.cjs +1 -0
- package/dist/ListItemText-CADHegDF.js +928 -0
- package/dist/{Menu-DzBX10ev.js → Menu-BgO92SV3.js} +302 -424
- package/dist/Menu-DBacrp-P.cjs +7 -0
- package/dist/{MenuItem-DQQ-p2ie.js → MenuItem-B8eWAj8E.js} +72 -77
- package/dist/MenuItem-DkcVAo3U.cjs +1 -0
- package/dist/{Modal-B8JRJWm0.js → Modal-CFv4UMTP.js} +8 -8
- package/dist/{Modal-D8lS9C1l.cjs → Modal-kUvS-N46.cjs} +2 -2
- package/dist/MoreVert-B_Gz5Gfx.cjs +1 -0
- package/dist/MoreVert-Dq8BqKg4.js +8 -0
- package/dist/Paper-ByOgFIEE.cjs +2 -0
- package/dist/{Paper-CbgkVQVx.js → Paper-DeL_n4k9.js} +4 -4
- package/dist/{Popper-1-DDNRPD.js → Popper-BKxRTMsO.js} +31 -30
- package/dist/Popper-CsQqc5DE.cjs +4 -0
- package/dist/{Portal-T-1Qk77D.js → Portal-7MKUQzjh.js} +2 -2
- package/dist/Portal-DhGy1jKe.cjs +1 -0
- package/dist/{Radio-BxMxeQa-.js → Radio-BVfoGshx.js} +9 -8
- package/dist/Radio-DG-k6cXx.cjs +1 -0
- package/dist/{RadioGroup-BLrD8_Lp.js → RadioGroup-DcqRUtV8.js} +3 -3
- package/dist/RadioGroup-Dd0mX-H2.cjs +1 -0
- package/dist/{Select-B6mYfJPA.js → Select-Vnsr3NSv.js} +49 -48
- package/dist/Select-b6liJFDI.cjs +3 -0
- package/dist/{Stack-aCUdCw1A.js → Stack-PQFKjbdN.js} +104 -59
- package/dist/Stack-gtxG2YLo.cjs +1 -0
- package/dist/Switch-BlwDxL6O.cjs +1 -0
- package/dist/{Switch-BOpqo-TS.js → Switch-Bn8zlIOf.js} +11 -10
- package/dist/SwitchBase-DtKlxrES.cjs +1 -0
- package/dist/{SwitchBase-BAjfatYA.js → SwitchBase-QwOXoy8f.js} +21 -20
- package/dist/Tab-A0R3g6rB.js +1394 -0
- package/dist/Tab-Dx7V4E6B.cjs +4 -0
- package/dist/TextField-CB2n4aV8.cjs +1 -0
- package/dist/{TextField-CAmc1Qpg.js → TextField-Di6Nfe3O.js} +18 -17
- package/dist/ToggleButtonGroup-B-zfmsAO.js +7716 -0
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +137 -0
- package/dist/Tooltip-D0jvnXYu.cjs +4 -0
- package/dist/{Tooltip-BvVFPsVR.js → Tooltip-KTkLBRQj.js} +30 -29
- package/dist/Typography-3CpuuLtj.cjs +1 -0
- package/dist/{Typography-CE8fQQ8B.js → Typography-DZ11k9cZ.js} +13 -12
- package/dist/capitalize-B3tmp8MO.cjs +1 -0
- package/dist/capitalize-Bs7Xs33U.js +9 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/Alert.es.js +5 -20
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +2 -2
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -3
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.d.ts +2 -0
- package/dist/components/Dropzone/Dropzone.es.js +33 -30
- package/dist/components/Dropzone/types.cjs.js +1 -0
- package/dist/components/Dropzone/types.d.ts +8 -0
- package/dist/components/Dropzone/types.es.js +1 -0
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +10 -2
- package/dist/components/EmptyState/EmptyState.es.js +26 -26
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +14 -13
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
- package/dist/components/FolderCard/FolderCard.d.ts +11 -0
- package/dist/components/FolderCard/FolderCard.es.js +79 -0
- package/dist/components/FolderCard/index.cjs.js +1 -0
- package/dist/components/FolderCard/index.d.ts +2 -0
- package/dist/components/FolderCard/index.es.js +4 -0
- package/dist/components/FolderCard/styles.cjs.js +1 -0
- package/dist/components/FolderCard/styles.d.ts +20 -0
- package/dist/components/FolderCard/styles.es.js +23 -0
- package/dist/components/FolderCard/types.cjs.js +1 -0
- package/dist/components/FolderCard/types.d.ts +3 -0
- package/dist/components/FolderCard/types.es.js +14 -0
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +54 -51
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +8 -9
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +4 -5
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +2 -2
- package/dist/components/PasswordInput/PasswordInput.es.js +28 -37
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +23 -20
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -23
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -0
- package/dist/components/TreeView/TreeView.d.ts +4 -0
- package/dist/components/TreeView/TreeView.es.js +1890 -0
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +6 -0
- package/dist/components/TreeView/components/CustomTreeItem.es.js +8 -0
- package/dist/components/TreeView/index.cjs.js +1 -0
- package/dist/components/TreeView/index.d.ts +2 -0
- package/dist/components/TreeView/index.es.js +6 -0
- package/dist/components/TreeView/style.cjs.js +1 -0
- package/dist/components/TreeView/style.es.js +29 -0
- package/dist/components/TreeView/types.cjs.js +1 -0
- package/dist/components/TreeView/types.d.ts +41 -0
- package/dist/components/TreeView/types.es.js +4 -0
- package/dist/components/TreeView/utils.cjs.js +1 -0
- package/dist/components/TreeView/utils.d.ts +6 -0
- package/dist/components/TreeView/utils.es.js +50 -0
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +12 -1
- package/dist/components/index.es.js +368 -344
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +3 -0
- package/dist/components/stories/Autocomplete.stories.d.ts +6 -0
- package/dist/components/stories/Autocomplete.stories.es.js +62 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
- package/dist/components/stories/EmptyState.stories.es.js +23 -7
- package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
- package/dist/components/stories/FolderCard.stories.d.ts +7 -0
- package/dist/components/stories/FolderCard.stories.es.js +71 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +21 -184
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +69 -0
- package/dist/components/stories/TreeView.stories.d.ts +13 -0
- package/dist/components/stories/TreeView.stories.es.js +786 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-2wwaxLPT.cjs +1 -0
- package/dist/{createSvgIcon-CCejzj0C.js → createSvgIcon-BFqOnlgU.js} +19 -18
- package/dist/{dividerClasses-DN9F43tq.js → dividerClasses-BYkvalOn.js} +1 -1
- package/dist/dividerClasses-izm7KFVg.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-CrAqn_fc.js → elementTypeAcceptingRef-1usJq_B8.js} +1 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +1 -0
- package/dist/extendSxProp-Bv3E507G.cjs +1 -0
- package/dist/{extendSxProp-DFv-GFt5.js → extendSxProp-D_IkoDXB.js} +1 -1
- package/dist/{identifier-D58rA1gM.js → generateUtilityClasses-CqzQXpT_.js} +885 -855
- package/dist/generateUtilityClasses-KugHyZhN.cjs +75 -0
- package/dist/getReactElementRef-D7IvykPI.cjs +1 -0
- package/dist/getReactElementRef-DtLerx40.js +31 -0
- package/dist/index-9hEUqvaJ.cjs +1 -0
- package/dist/index-BomeQRLD.cjs +5 -0
- package/dist/{index-BGS2uu2L.js → index-C7WfZsMe.js} +1 -1
- package/dist/{index-ClXCinr6.js → index-CFIk4hVM.js} +4 -4
- package/dist/index-DS8G_wjP.cjs +1 -0
- package/dist/index-sDFEVHTg.js +22 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +368 -344
- package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/listItemTextClasses-C0D3xQur.js +9 -0
- package/dist/listItemTextClasses-CQXcckDA.cjs +1 -0
- package/dist/{memoTheme-DyiN-Awd.js → memoTheme-B0xVysYu.js} +1 -1
- package/dist/{memoTheme-C8EfvlY1.cjs → memoTheme-WwIyYqBX.cjs} +1 -1
- package/dist/{refType-B86yTZra.js → refType-BvSJNaoq.js} +1 -1
- package/dist/refType-D-n-tVSl.cjs +1 -0
- package/dist/resolveComponentProps-Byi_59AN.cjs +1 -0
- package/dist/{resolveComponentProps-0QnU-fDT.js → resolveComponentProps-Ctw0-dUN.js} +1 -1
- package/dist/{useSlot-CyXLaLc2.cjs → useSlot-CGbU9jGm.cjs} +1 -1
- package/dist/{useSlot-CZNcsPv1.js → useSlot-CqjfyGd9.js} +1 -1
- package/dist/useSlotProps-Ceyorp-u.js +25 -0
- package/dist/useSlotProps-DfO7r_4Y.cjs +1 -0
- package/dist/{useTheme-DxxkErdZ.js → useTheme-2JCMQS-E.js} +1 -1
- package/dist/useTheme-B6wow4M9.cjs +1 -0
- package/dist/useTheme-DepbBZga.js +11 -0
- package/dist/useTheme-MahNaB8C.cjs +1 -0
- package/dist/useThemeProps-BqypsO1h.cjs +1 -0
- package/dist/{useThemeProps-BGZrRNnL.js → useThemeProps-Cuazh32X.js} +2 -2
- package/dist/useThemeProps-Drd5oJEF.js +17 -0
- package/dist/{useThemeProps-CpNQz1Ap.cjs → useThemeProps-RdxbcMsR.cjs} +1 -1
- package/dist/{utils-SrEVp7Pm.js → utils-BVg32WSe.js} +76 -104
- package/dist/utils-CUU5fjzL.cjs +1 -0
- package/package.json +2 -1
- package/dist/Backdrop-COarwgJj.cjs +0 -1
- package/dist/Box-C0mEbUoK.cjs +0 -1
- package/dist/Button-1tZRtOeG.cjs +0 -1
- package/dist/CardContent-BXjX98Jd.cjs +0 -1
- package/dist/Checkbox-C6CIGK27.cjs +0 -1
- package/dist/Chip-CAPnyZyW.cjs +0 -1
- package/dist/CircularProgress-DTVP6gln.cjs +0 -28
- package/dist/DatePicker-CJ5-Udgh.cjs +0 -14
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +0 -1
- package/dist/Dialog-Cmv58WoN.cjs +0 -1
- package/dist/DialogContent-CGEdCDYk.cjs +0 -1
- package/dist/DialogTitle-Dxm2NHs7.cjs +0 -1
- package/dist/Divider-D_LVNUqS.cjs +0 -1
- package/dist/FormLabel-D0gSgwnj.cjs +0 -2
- package/dist/Grow-D7scX77o.cjs +0 -1
- package/dist/IconButton-Edo5JMfQ.cjs +0 -2
- package/dist/InputAdornment-C9NrmB_z.cjs +0 -1
- package/dist/InputBase-CgOQ0M4_.cjs +0 -3
- package/dist/Link-CAbb9OCV.cjs +0 -1
- package/dist/Menu-C-R0FVOB.cjs +0 -7
- package/dist/MenuItem-Cp1_Q0FD.cjs +0 -1
- package/dist/Paper-C-oPGpbI.cjs +0 -2
- package/dist/Popper-uw9PkkLY.cjs +0 -4
- package/dist/Portal-bIKnnWR4.cjs +0 -1
- package/dist/Radio-CvCkmq8g.cjs +0 -1
- package/dist/RadioGroup-Ya-I8Lz1.cjs +0 -1
- package/dist/Select-KMdcuol6.cjs +0 -3
- package/dist/Stack-C6v70ALA.cjs +0 -1
- package/dist/Switch-DF4bSjED.cjs +0 -1
- package/dist/SwitchBase-7zONZyYP.cjs +0 -1
- package/dist/Tabs-CrWcC5nJ.js +0 -1225
- package/dist/Tabs-Dploq_37.cjs +0 -4
- package/dist/TextField-BC7GvvHh.cjs +0 -1
- package/dist/ToggleButtonGroup-BCVgsika.cjs +0 -140
- package/dist/ToggleButtonGroup-ekxVeQCc.js +0 -10461
- package/dist/Tooltip-CWA-GKdK.cjs +0 -4
- package/dist/Typography-DEAE8-8u.cjs +0 -1
- package/dist/components/TextInput/TextInput.cjs.js +0 -1
- package/dist/components/TextInput/TextInput.d.ts +0 -4
- package/dist/components/TextInput/TextInput.es.js +0 -6
- package/dist/components/TextInput/index.cjs.js +0 -1
- package/dist/components/TextInput/index.d.ts +0 -2
- package/dist/components/TextInput/index.es.js +0 -4
- package/dist/createSvgIcon-Dn4BBPej.cjs +0 -1
- package/dist/dividerClasses-Zk1QmrZw.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +0 -1
- package/dist/extendSxProp-BB6jYY1x.cjs +0 -1
- package/dist/fr-B3qrCNcK.js +0 -312
- package/dist/fr-JE-1WKP6.cjs +0 -1
- package/dist/identifier-5n4d7br9.cjs +0 -75
- package/dist/index-5BAFzrXD.cjs +0 -1
- package/dist/index-CFm-oAsb.cjs +0 -1
- package/dist/index-CJW5gB6d.cjs +0 -5
- package/dist/index-DwHI-aa0.js +0 -45
- package/dist/refType-CjW6JOBA.cjs +0 -1
- package/dist/resolveComponentProps-D0sgyopa.cjs +0 -1
- package/dist/useTheme-Bi8B4Op1.cjs +0 -1
- package/dist/useTheme-C_2IF7CS.cjs +0 -1
- package/dist/useTheme-Clhsq4HW.js +0 -11
- package/dist/useThemeProps-C6qniHmV.js +0 -17
- package/dist/useThemeProps-Dq3GRYN1.cjs +0 -1
- package/dist/utils-D4if93Yl.cjs +0 -1
- /package/dist/assets/{styles.css → Loader.css} +0 -0
- /package/dist/assets/{styles2.css → LoaderBackdrop.css} +0 -0
package/dist/Tabs-CrWcC5nJ.js
DELETED
|
@@ -1,1225 +0,0 @@
|
|
|
1
|
-
import * as c from "react";
|
|
2
|
-
import { H as pt, I as ft, G as W, L as Wt, P as e, _ as ee } from "./identifier-D58rA1gM.js";
|
|
3
|
-
import { m as bt } from "./memoTheme-DyiN-Awd.js";
|
|
4
|
-
import { jsxs as q, jsx as x } from "react/jsx-runtime";
|
|
5
|
-
import { u as ht, s as L, c as mt } from "./DefaultPropsProvider-BcmyIf2H.js";
|
|
6
|
-
import { B as kt } from "./ButtonBase-DzpmdR6N.js";
|
|
7
|
-
import { u as oe } from "./unsupportedProp-BuVD30Gh.js";
|
|
8
|
-
import { u as zt, a as rt } from "./index-DwHI-aa0.js";
|
|
9
|
-
import { u as re } from "./useTheme-Clhsq4HW.js";
|
|
10
|
-
import { u as ne } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
11
|
-
import { d as Dt } from "./debounce-46wSf_lW.js";
|
|
12
|
-
import { o as $t } from "./ownerWindow-niciwP7I.js";
|
|
13
|
-
import { c as At } from "./createSvgIcon-CCejzj0C.js";
|
|
14
|
-
import { u as dt } from "./useEventCallback-BAQJJ3ye.js";
|
|
15
|
-
import { o as le } from "./ownerDocument-CUrv0DIK.js";
|
|
16
|
-
import { r as se } from "./refType-B86yTZra.js";
|
|
17
|
-
function ae(o) {
|
|
18
|
-
return ft("MuiTab", o);
|
|
19
|
-
}
|
|
20
|
-
const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), ie = (o) => {
|
|
21
|
-
const {
|
|
22
|
-
classes: t,
|
|
23
|
-
textColor: l,
|
|
24
|
-
fullWidth: d,
|
|
25
|
-
wrapped: i,
|
|
26
|
-
icon: u,
|
|
27
|
-
label: b,
|
|
28
|
-
selected: h,
|
|
29
|
-
disabled: f
|
|
30
|
-
} = o, S = {
|
|
31
|
-
root: ["root", u && b && "labelIcon", `textColor${Wt(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
|
|
32
|
-
icon: ["iconWrapper", "icon"]
|
|
33
|
-
};
|
|
34
|
-
return mt(S, ae, t);
|
|
35
|
-
}, ce = L(kt, {
|
|
36
|
-
name: "MuiTab",
|
|
37
|
-
slot: "Root",
|
|
38
|
-
overridesResolver: (o, t) => {
|
|
39
|
-
const {
|
|
40
|
-
ownerState: l
|
|
41
|
-
} = o;
|
|
42
|
-
return [t.root, l.label && l.icon && t.labelIcon, t[`textColor${Wt(l.textColor)}`], l.fullWidth && t.fullWidth, l.wrapped && t.wrapped, {
|
|
43
|
-
[`& .${T.iconWrapper}`]: t.iconWrapper
|
|
44
|
-
}, {
|
|
45
|
-
[`& .${T.icon}`]: t.icon
|
|
46
|
-
}];
|
|
47
|
-
}
|
|
48
|
-
})(bt(({
|
|
49
|
-
theme: o
|
|
50
|
-
}) => ({
|
|
51
|
-
...o.typography.button,
|
|
52
|
-
maxWidth: 360,
|
|
53
|
-
minWidth: 90,
|
|
54
|
-
position: "relative",
|
|
55
|
-
minHeight: 48,
|
|
56
|
-
flexShrink: 0,
|
|
57
|
-
padding: "12px 16px",
|
|
58
|
-
overflow: "hidden",
|
|
59
|
-
whiteSpace: "normal",
|
|
60
|
-
textAlign: "center",
|
|
61
|
-
lineHeight: 1.25,
|
|
62
|
-
variants: [{
|
|
63
|
-
props: ({
|
|
64
|
-
ownerState: t
|
|
65
|
-
}) => t.label && (t.iconPosition === "top" || t.iconPosition === "bottom"),
|
|
66
|
-
style: {
|
|
67
|
-
flexDirection: "column"
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
props: ({
|
|
71
|
-
ownerState: t
|
|
72
|
-
}) => t.label && t.iconPosition !== "top" && t.iconPosition !== "bottom",
|
|
73
|
-
style: {
|
|
74
|
-
flexDirection: "row"
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
props: ({
|
|
78
|
-
ownerState: t
|
|
79
|
-
}) => t.icon && t.label,
|
|
80
|
-
style: {
|
|
81
|
-
minHeight: 72,
|
|
82
|
-
paddingTop: 9,
|
|
83
|
-
paddingBottom: 9
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
props: ({
|
|
87
|
-
ownerState: t,
|
|
88
|
-
iconPosition: l
|
|
89
|
-
}) => t.icon && t.label && l === "top",
|
|
90
|
-
style: {
|
|
91
|
-
[`& > .${T.icon}`]: {
|
|
92
|
-
marginBottom: 6
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, {
|
|
96
|
-
props: ({
|
|
97
|
-
ownerState: t,
|
|
98
|
-
iconPosition: l
|
|
99
|
-
}) => t.icon && t.label && l === "bottom",
|
|
100
|
-
style: {
|
|
101
|
-
[`& > .${T.icon}`]: {
|
|
102
|
-
marginTop: 6
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
props: ({
|
|
107
|
-
ownerState: t,
|
|
108
|
-
iconPosition: l
|
|
109
|
-
}) => t.icon && t.label && l === "start",
|
|
110
|
-
style: {
|
|
111
|
-
[`& > .${T.icon}`]: {
|
|
112
|
-
marginRight: o.spacing(1)
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}, {
|
|
116
|
-
props: ({
|
|
117
|
-
ownerState: t,
|
|
118
|
-
iconPosition: l
|
|
119
|
-
}) => t.icon && t.label && l === "end",
|
|
120
|
-
style: {
|
|
121
|
-
[`& > .${T.icon}`]: {
|
|
122
|
-
marginLeft: o.spacing(1)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
props: {
|
|
127
|
-
textColor: "inherit"
|
|
128
|
-
},
|
|
129
|
-
style: {
|
|
130
|
-
color: "inherit",
|
|
131
|
-
opacity: 0.6,
|
|
132
|
-
// same opacity as theme.palette.text.secondary
|
|
133
|
-
[`&.${T.selected}`]: {
|
|
134
|
-
opacity: 1
|
|
135
|
-
},
|
|
136
|
-
[`&.${T.disabled}`]: {
|
|
137
|
-
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}, {
|
|
141
|
-
props: {
|
|
142
|
-
textColor: "primary"
|
|
143
|
-
},
|
|
144
|
-
style: {
|
|
145
|
-
color: (o.vars || o).palette.text.secondary,
|
|
146
|
-
[`&.${T.selected}`]: {
|
|
147
|
-
color: (o.vars || o).palette.primary.main
|
|
148
|
-
},
|
|
149
|
-
[`&.${T.disabled}`]: {
|
|
150
|
-
color: (o.vars || o).palette.text.disabled
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}, {
|
|
154
|
-
props: {
|
|
155
|
-
textColor: "secondary"
|
|
156
|
-
},
|
|
157
|
-
style: {
|
|
158
|
-
color: (o.vars || o).palette.text.secondary,
|
|
159
|
-
[`&.${T.selected}`]: {
|
|
160
|
-
color: (o.vars || o).palette.secondary.main
|
|
161
|
-
},
|
|
162
|
-
[`&.${T.disabled}`]: {
|
|
163
|
-
color: (o.vars || o).palette.text.disabled
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}, {
|
|
167
|
-
props: ({
|
|
168
|
-
ownerState: t
|
|
169
|
-
}) => t.fullWidth,
|
|
170
|
-
style: {
|
|
171
|
-
flexShrink: 1,
|
|
172
|
-
flexGrow: 1,
|
|
173
|
-
flexBasis: 0,
|
|
174
|
-
maxWidth: "none"
|
|
175
|
-
}
|
|
176
|
-
}, {
|
|
177
|
-
props: ({
|
|
178
|
-
ownerState: t
|
|
179
|
-
}) => t.wrapped,
|
|
180
|
-
style: {
|
|
181
|
-
fontSize: o.typography.pxToRem(12)
|
|
182
|
-
}
|
|
183
|
-
}]
|
|
184
|
-
}))), de = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
185
|
-
const d = ht({
|
|
186
|
-
props: t,
|
|
187
|
-
name: "MuiTab"
|
|
188
|
-
}), {
|
|
189
|
-
className: i,
|
|
190
|
-
disabled: u = !1,
|
|
191
|
-
disableFocusRipple: b = !1,
|
|
192
|
-
// eslint-disable-next-line react/prop-types
|
|
193
|
-
fullWidth: h,
|
|
194
|
-
icon: f,
|
|
195
|
-
iconPosition: S = "top",
|
|
196
|
-
// eslint-disable-next-line react/prop-types
|
|
197
|
-
indicator: v,
|
|
198
|
-
label: y,
|
|
199
|
-
onChange: m,
|
|
200
|
-
onClick: C,
|
|
201
|
-
onFocus: k,
|
|
202
|
-
// eslint-disable-next-line react/prop-types
|
|
203
|
-
selected: I,
|
|
204
|
-
// eslint-disable-next-line react/prop-types
|
|
205
|
-
selectionFollowsFocus: g,
|
|
206
|
-
// eslint-disable-next-line react/prop-types
|
|
207
|
-
textColor: j = "inherit",
|
|
208
|
-
value: M,
|
|
209
|
-
wrapped: nt = !1,
|
|
210
|
-
...H
|
|
211
|
-
} = d, U = {
|
|
212
|
-
...d,
|
|
213
|
-
disabled: u,
|
|
214
|
-
disableFocusRipple: b,
|
|
215
|
-
selected: I,
|
|
216
|
-
icon: !!f,
|
|
217
|
-
iconPosition: S,
|
|
218
|
-
label: !!y,
|
|
219
|
-
fullWidth: h,
|
|
220
|
-
textColor: j,
|
|
221
|
-
wrapped: nt
|
|
222
|
-
}, V = ie(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
|
|
223
|
-
className: W(V.icon, f.props.className)
|
|
224
|
-
}) : f, G = (R) => {
|
|
225
|
-
!I && m && m(R, M), C && C(R);
|
|
226
|
-
}, N = (R) => {
|
|
227
|
-
g && !I && m && m(R, M), k && k(R);
|
|
228
|
-
};
|
|
229
|
-
return /* @__PURE__ */ q(ce, {
|
|
230
|
-
focusRipple: !b,
|
|
231
|
-
className: W(V.root, i),
|
|
232
|
-
ref: l,
|
|
233
|
-
role: "tab",
|
|
234
|
-
"aria-selected": I,
|
|
235
|
-
disabled: u,
|
|
236
|
-
onClick: G,
|
|
237
|
-
onFocus: N,
|
|
238
|
-
ownerState: U,
|
|
239
|
-
tabIndex: I ? 0 : -1,
|
|
240
|
-
...H,
|
|
241
|
-
children: [S === "top" || S === "start" ? /* @__PURE__ */ q(c.Fragment, {
|
|
242
|
-
children: [z, y]
|
|
243
|
-
}) : /* @__PURE__ */ q(c.Fragment, {
|
|
244
|
-
children: [y, z]
|
|
245
|
-
}), v]
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
249
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
250
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
251
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
252
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
253
|
-
/**
|
|
254
|
-
* This prop isn't supported.
|
|
255
|
-
* Use the `component` prop if you need to change the children structure.
|
|
256
|
-
*/
|
|
257
|
-
children: oe,
|
|
258
|
-
/**
|
|
259
|
-
* Override or extend the styles applied to the component.
|
|
260
|
-
*/
|
|
261
|
-
classes: e.object,
|
|
262
|
-
/**
|
|
263
|
-
* @ignore
|
|
264
|
-
*/
|
|
265
|
-
className: e.string,
|
|
266
|
-
/**
|
|
267
|
-
* If `true`, the component is disabled.
|
|
268
|
-
* @default false
|
|
269
|
-
*/
|
|
270
|
-
disabled: e.bool,
|
|
271
|
-
/**
|
|
272
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
273
|
-
* @default false
|
|
274
|
-
*/
|
|
275
|
-
disableFocusRipple: e.bool,
|
|
276
|
-
/**
|
|
277
|
-
* If `true`, the ripple effect is disabled.
|
|
278
|
-
*
|
|
279
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
280
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
281
|
-
* @default false
|
|
282
|
-
*/
|
|
283
|
-
disableRipple: e.bool,
|
|
284
|
-
/**
|
|
285
|
-
* The icon to display.
|
|
286
|
-
*/
|
|
287
|
-
icon: e.oneOfType([e.element, e.string]),
|
|
288
|
-
/**
|
|
289
|
-
* The position of the icon relative to the label.
|
|
290
|
-
* @default 'top'
|
|
291
|
-
*/
|
|
292
|
-
iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
|
|
293
|
-
/**
|
|
294
|
-
* The label element.
|
|
295
|
-
*/
|
|
296
|
-
label: e.node,
|
|
297
|
-
/**
|
|
298
|
-
* @ignore
|
|
299
|
-
*/
|
|
300
|
-
onChange: e.func,
|
|
301
|
-
/**
|
|
302
|
-
* @ignore
|
|
303
|
-
*/
|
|
304
|
-
onClick: e.func,
|
|
305
|
-
/**
|
|
306
|
-
* @ignore
|
|
307
|
-
*/
|
|
308
|
-
onFocus: e.func,
|
|
309
|
-
/**
|
|
310
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
311
|
-
*/
|
|
312
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
313
|
-
/**
|
|
314
|
-
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
315
|
-
*/
|
|
316
|
-
value: e.any,
|
|
317
|
-
/**
|
|
318
|
-
* Tab labels appear in a single row.
|
|
319
|
-
* They can use a second line if needed.
|
|
320
|
-
* @default false
|
|
321
|
-
*/
|
|
322
|
-
wrapped: e.bool
|
|
323
|
-
});
|
|
324
|
-
const ue = At(/* @__PURE__ */ x("path", {
|
|
325
|
-
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
326
|
-
}), "KeyboardArrowLeft"), pe = At(/* @__PURE__ */ x("path", {
|
|
327
|
-
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
328
|
-
}), "KeyboardArrowRight");
|
|
329
|
-
function fe(o) {
|
|
330
|
-
return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
|
|
331
|
-
}
|
|
332
|
-
function be(o, t, l, d = {}, i = () => {
|
|
333
|
-
}) {
|
|
334
|
-
const {
|
|
335
|
-
ease: u = fe,
|
|
336
|
-
duration: b = 300
|
|
337
|
-
// standard
|
|
338
|
-
} = d;
|
|
339
|
-
let h = null;
|
|
340
|
-
const f = t[o];
|
|
341
|
-
let S = !1;
|
|
342
|
-
const v = () => {
|
|
343
|
-
S = !0;
|
|
344
|
-
}, y = (m) => {
|
|
345
|
-
if (S) {
|
|
346
|
-
i(new Error("Animation cancelled"));
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
h === null && (h = m);
|
|
350
|
-
const C = Math.min(1, (m - h) / b);
|
|
351
|
-
if (t[o] = u(C) * (l - f) + f, C >= 1) {
|
|
352
|
-
requestAnimationFrame(() => {
|
|
353
|
-
i(null);
|
|
354
|
-
});
|
|
355
|
-
return;
|
|
356
|
-
}
|
|
357
|
-
requestAnimationFrame(y);
|
|
358
|
-
};
|
|
359
|
-
return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
|
|
360
|
-
}
|
|
361
|
-
const he = {
|
|
362
|
-
width: 99,
|
|
363
|
-
height: 99,
|
|
364
|
-
position: "absolute",
|
|
365
|
-
top: -9999,
|
|
366
|
-
overflow: "scroll"
|
|
367
|
-
};
|
|
368
|
-
function Ft(o) {
|
|
369
|
-
const {
|
|
370
|
-
onChange: t,
|
|
371
|
-
...l
|
|
372
|
-
} = o, d = c.useRef(), i = c.useRef(null), u = () => {
|
|
373
|
-
d.current = i.current.offsetHeight - i.current.clientHeight;
|
|
374
|
-
};
|
|
375
|
-
return ne(() => {
|
|
376
|
-
const b = Dt(() => {
|
|
377
|
-
const f = d.current;
|
|
378
|
-
u(), f !== d.current && t(d.current);
|
|
379
|
-
}), h = $t(i.current);
|
|
380
|
-
return h.addEventListener("resize", b), () => {
|
|
381
|
-
b.clear(), h.removeEventListener("resize", b);
|
|
382
|
-
};
|
|
383
|
-
}, [t]), c.useEffect(() => {
|
|
384
|
-
u(), t(d.current);
|
|
385
|
-
}, [t]), /* @__PURE__ */ x("div", {
|
|
386
|
-
style: he,
|
|
387
|
-
...l,
|
|
388
|
-
ref: i
|
|
389
|
-
});
|
|
390
|
-
}
|
|
391
|
-
process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
392
|
-
onChange: e.func.isRequired
|
|
393
|
-
});
|
|
394
|
-
function me(o) {
|
|
395
|
-
return ft("MuiTabScrollButton", o);
|
|
396
|
-
}
|
|
397
|
-
const Se = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), ve = (o) => {
|
|
398
|
-
const {
|
|
399
|
-
classes: t,
|
|
400
|
-
orientation: l,
|
|
401
|
-
disabled: d
|
|
402
|
-
} = o;
|
|
403
|
-
return mt({
|
|
404
|
-
root: ["root", l, d && "disabled"]
|
|
405
|
-
}, me, t);
|
|
406
|
-
}, ye = L(kt, {
|
|
407
|
-
name: "MuiTabScrollButton",
|
|
408
|
-
slot: "Root",
|
|
409
|
-
overridesResolver: (o, t) => {
|
|
410
|
-
const {
|
|
411
|
-
ownerState: l
|
|
412
|
-
} = o;
|
|
413
|
-
return [t.root, l.orientation && t[l.orientation]];
|
|
414
|
-
}
|
|
415
|
-
})({
|
|
416
|
-
width: 40,
|
|
417
|
-
flexShrink: 0,
|
|
418
|
-
opacity: 0.8,
|
|
419
|
-
[`&.${Se.disabled}`]: {
|
|
420
|
-
opacity: 0
|
|
421
|
-
},
|
|
422
|
-
variants: [{
|
|
423
|
-
props: {
|
|
424
|
-
orientation: "vertical"
|
|
425
|
-
},
|
|
426
|
-
style: {
|
|
427
|
-
width: "100%",
|
|
428
|
-
height: 40,
|
|
429
|
-
"& svg": {
|
|
430
|
-
transform: "var(--TabScrollButton-svgRotate)"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}]
|
|
434
|
-
}), Lt = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
435
|
-
const d = ht({
|
|
436
|
-
props: t,
|
|
437
|
-
name: "MuiTabScrollButton"
|
|
438
|
-
}), {
|
|
439
|
-
className: i,
|
|
440
|
-
slots: u = {},
|
|
441
|
-
slotProps: b = {},
|
|
442
|
-
direction: h,
|
|
443
|
-
orientation: f,
|
|
444
|
-
disabled: S,
|
|
445
|
-
...v
|
|
446
|
-
} = d, y = zt(), m = {
|
|
447
|
-
isRtl: y,
|
|
448
|
-
...d
|
|
449
|
-
}, C = ve(m), k = u.StartScrollButtonIcon ?? ue, I = u.EndScrollButtonIcon ?? pe, g = rt({
|
|
450
|
-
elementType: k,
|
|
451
|
-
externalSlotProps: b.startScrollButtonIcon,
|
|
452
|
-
additionalProps: {
|
|
453
|
-
fontSize: "small"
|
|
454
|
-
},
|
|
455
|
-
ownerState: m
|
|
456
|
-
}), j = rt({
|
|
457
|
-
elementType: I,
|
|
458
|
-
externalSlotProps: b.endScrollButtonIcon,
|
|
459
|
-
additionalProps: {
|
|
460
|
-
fontSize: "small"
|
|
461
|
-
},
|
|
462
|
-
ownerState: m
|
|
463
|
-
});
|
|
464
|
-
return /* @__PURE__ */ x(ye, {
|
|
465
|
-
component: "div",
|
|
466
|
-
className: W(C.root, i),
|
|
467
|
-
ref: l,
|
|
468
|
-
role: null,
|
|
469
|
-
ownerState: m,
|
|
470
|
-
tabIndex: null,
|
|
471
|
-
...v,
|
|
472
|
-
style: {
|
|
473
|
-
...v.style,
|
|
474
|
-
...f === "vertical" && {
|
|
475
|
-
"--TabScrollButton-svgRotate": `rotate(${y ? -90 : 90}deg)`
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
children: h === "left" ? /* @__PURE__ */ x(k, {
|
|
479
|
-
...g
|
|
480
|
-
}) : /* @__PURE__ */ x(I, {
|
|
481
|
-
...j
|
|
482
|
-
})
|
|
483
|
-
});
|
|
484
|
-
});
|
|
485
|
-
process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
486
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
487
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
488
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
489
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
490
|
-
/**
|
|
491
|
-
* The content of the component.
|
|
492
|
-
*/
|
|
493
|
-
children: e.node,
|
|
494
|
-
/**
|
|
495
|
-
* Override or extend the styles applied to the component.
|
|
496
|
-
*/
|
|
497
|
-
classes: e.object,
|
|
498
|
-
/**
|
|
499
|
-
* @ignore
|
|
500
|
-
*/
|
|
501
|
-
className: e.string,
|
|
502
|
-
/**
|
|
503
|
-
* The direction the button should indicate.
|
|
504
|
-
*/
|
|
505
|
-
direction: e.oneOf(["left", "right"]).isRequired,
|
|
506
|
-
/**
|
|
507
|
-
* If `true`, the component is disabled.
|
|
508
|
-
* @default false
|
|
509
|
-
*/
|
|
510
|
-
disabled: e.bool,
|
|
511
|
-
/**
|
|
512
|
-
* The component orientation (layout flow direction).
|
|
513
|
-
*/
|
|
514
|
-
orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
|
|
515
|
-
/**
|
|
516
|
-
* The extra props for the slot components.
|
|
517
|
-
* You can override the existing props or add new ones.
|
|
518
|
-
* @default {}
|
|
519
|
-
*/
|
|
520
|
-
slotProps: e.shape({
|
|
521
|
-
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
522
|
-
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
523
|
-
}),
|
|
524
|
-
/**
|
|
525
|
-
* The components used for each slot inside.
|
|
526
|
-
* @default {}
|
|
527
|
-
*/
|
|
528
|
-
slots: e.shape({
|
|
529
|
-
EndScrollButtonIcon: e.elementType,
|
|
530
|
-
StartScrollButtonIcon: e.elementType
|
|
531
|
-
}),
|
|
532
|
-
/**
|
|
533
|
-
* @ignore
|
|
534
|
-
*/
|
|
535
|
-
style: e.object,
|
|
536
|
-
/**
|
|
537
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
538
|
-
*/
|
|
539
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
540
|
-
});
|
|
541
|
-
function ge(o) {
|
|
542
|
-
return ft("MuiTabs", o);
|
|
543
|
-
}
|
|
544
|
-
const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Rt = (o, t) => o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : o.firstChild, Ot = (o, t) => o === t ? o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : o.lastChild, ot = (o, t, l) => {
|
|
545
|
-
let d = !1, i = l(o, t);
|
|
546
|
-
for (; i; ) {
|
|
547
|
-
if (i === o.firstChild) {
|
|
548
|
-
if (d)
|
|
549
|
-
return;
|
|
550
|
-
d = !0;
|
|
551
|
-
}
|
|
552
|
-
const u = i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
553
|
-
if (!i.hasAttribute("tabindex") || u)
|
|
554
|
-
i = l(o, i);
|
|
555
|
-
else {
|
|
556
|
-
i.focus();
|
|
557
|
-
return;
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}, Te = (o) => {
|
|
561
|
-
const {
|
|
562
|
-
vertical: t,
|
|
563
|
-
fixed: l,
|
|
564
|
-
hideScrollbar: d,
|
|
565
|
-
scrollableX: i,
|
|
566
|
-
scrollableY: u,
|
|
567
|
-
centered: b,
|
|
568
|
-
scrollButtonsHideMobile: h,
|
|
569
|
-
classes: f
|
|
570
|
-
} = o;
|
|
571
|
-
return mt({
|
|
572
|
-
root: ["root", t && "vertical"],
|
|
573
|
-
scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
|
|
574
|
-
flexContainer: ["flexContainer", t && "flexContainerVertical", b && "centered"],
|
|
575
|
-
indicator: ["indicator"],
|
|
576
|
-
scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
|
|
577
|
-
scrollableX: [i && "scrollableX"],
|
|
578
|
-
hideScrollbar: [d && "hideScrollbar"]
|
|
579
|
-
}, ge, f);
|
|
580
|
-
}, we = L("div", {
|
|
581
|
-
name: "MuiTabs",
|
|
582
|
-
slot: "Root",
|
|
583
|
-
overridesResolver: (o, t) => {
|
|
584
|
-
const {
|
|
585
|
-
ownerState: l
|
|
586
|
-
} = o;
|
|
587
|
-
return [{
|
|
588
|
-
[`& .${ut.scrollButtons}`]: t.scrollButtons
|
|
589
|
-
}, {
|
|
590
|
-
[`& .${ut.scrollButtons}`]: l.scrollButtonsHideMobile && t.scrollButtonsHideMobile
|
|
591
|
-
}, t.root, l.vertical && t.vertical];
|
|
592
|
-
}
|
|
593
|
-
})(bt(({
|
|
594
|
-
theme: o
|
|
595
|
-
}) => ({
|
|
596
|
-
overflow: "hidden",
|
|
597
|
-
minHeight: 48,
|
|
598
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
599
|
-
WebkitOverflowScrolling: "touch",
|
|
600
|
-
display: "flex",
|
|
601
|
-
variants: [{
|
|
602
|
-
props: ({
|
|
603
|
-
ownerState: t
|
|
604
|
-
}) => t.vertical,
|
|
605
|
-
style: {
|
|
606
|
-
flexDirection: "column"
|
|
607
|
-
}
|
|
608
|
-
}, {
|
|
609
|
-
props: ({
|
|
610
|
-
ownerState: t
|
|
611
|
-
}) => t.scrollButtonsHideMobile,
|
|
612
|
-
style: {
|
|
613
|
-
[`& .${ut.scrollButtons}`]: {
|
|
614
|
-
[o.breakpoints.down("sm")]: {
|
|
615
|
-
display: "none"
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}]
|
|
620
|
-
}))), Be = L("div", {
|
|
621
|
-
name: "MuiTabs",
|
|
622
|
-
slot: "Scroller",
|
|
623
|
-
overridesResolver: (o, t) => {
|
|
624
|
-
const {
|
|
625
|
-
ownerState: l
|
|
626
|
-
} = o;
|
|
627
|
-
return [t.scroller, l.fixed && t.fixed, l.hideScrollbar && t.hideScrollbar, l.scrollableX && t.scrollableX, l.scrollableY && t.scrollableY];
|
|
628
|
-
}
|
|
629
|
-
})({
|
|
630
|
-
position: "relative",
|
|
631
|
-
display: "inline-block",
|
|
632
|
-
flex: "1 1 auto",
|
|
633
|
-
whiteSpace: "nowrap",
|
|
634
|
-
variants: [{
|
|
635
|
-
props: ({
|
|
636
|
-
ownerState: o
|
|
637
|
-
}) => o.fixed,
|
|
638
|
-
style: {
|
|
639
|
-
overflowX: "hidden",
|
|
640
|
-
width: "100%"
|
|
641
|
-
}
|
|
642
|
-
}, {
|
|
643
|
-
props: ({
|
|
644
|
-
ownerState: o
|
|
645
|
-
}) => o.hideScrollbar,
|
|
646
|
-
style: {
|
|
647
|
-
// Hide dimensionless scrollbar on macOS
|
|
648
|
-
scrollbarWidth: "none",
|
|
649
|
-
// Firefox
|
|
650
|
-
"&::-webkit-scrollbar": {
|
|
651
|
-
display: "none"
|
|
652
|
-
// Safari + Chrome
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}, {
|
|
656
|
-
props: ({
|
|
657
|
-
ownerState: o
|
|
658
|
-
}) => o.scrollableX,
|
|
659
|
-
style: {
|
|
660
|
-
overflowX: "auto",
|
|
661
|
-
overflowY: "hidden"
|
|
662
|
-
}
|
|
663
|
-
}, {
|
|
664
|
-
props: ({
|
|
665
|
-
ownerState: o
|
|
666
|
-
}) => o.scrollableY,
|
|
667
|
-
style: {
|
|
668
|
-
overflowY: "auto",
|
|
669
|
-
overflowX: "hidden"
|
|
670
|
-
}
|
|
671
|
-
}]
|
|
672
|
-
}), xe = L("div", {
|
|
673
|
-
name: "MuiTabs",
|
|
674
|
-
slot: "FlexContainer",
|
|
675
|
-
overridesResolver: (o, t) => {
|
|
676
|
-
const {
|
|
677
|
-
ownerState: l
|
|
678
|
-
} = o;
|
|
679
|
-
return [t.flexContainer, l.vertical && t.flexContainerVertical, l.centered && t.centered];
|
|
680
|
-
}
|
|
681
|
-
})({
|
|
682
|
-
display: "flex",
|
|
683
|
-
variants: [{
|
|
684
|
-
props: ({
|
|
685
|
-
ownerState: o
|
|
686
|
-
}) => o.vertical,
|
|
687
|
-
style: {
|
|
688
|
-
flexDirection: "column"
|
|
689
|
-
}
|
|
690
|
-
}, {
|
|
691
|
-
props: ({
|
|
692
|
-
ownerState: o
|
|
693
|
-
}) => o.centered,
|
|
694
|
-
style: {
|
|
695
|
-
justifyContent: "center"
|
|
696
|
-
}
|
|
697
|
-
}]
|
|
698
|
-
}), Ce = L("span", {
|
|
699
|
-
name: "MuiTabs",
|
|
700
|
-
slot: "Indicator",
|
|
701
|
-
overridesResolver: (o, t) => t.indicator
|
|
702
|
-
})(bt(({
|
|
703
|
-
theme: o
|
|
704
|
-
}) => ({
|
|
705
|
-
position: "absolute",
|
|
706
|
-
height: 2,
|
|
707
|
-
bottom: 0,
|
|
708
|
-
width: "100%",
|
|
709
|
-
transition: o.transitions.create(),
|
|
710
|
-
variants: [{
|
|
711
|
-
props: {
|
|
712
|
-
indicatorColor: "primary"
|
|
713
|
-
},
|
|
714
|
-
style: {
|
|
715
|
-
backgroundColor: (o.vars || o).palette.primary.main
|
|
716
|
-
}
|
|
717
|
-
}, {
|
|
718
|
-
props: {
|
|
719
|
-
indicatorColor: "secondary"
|
|
720
|
-
},
|
|
721
|
-
style: {
|
|
722
|
-
backgroundColor: (o.vars || o).palette.secondary.main
|
|
723
|
-
}
|
|
724
|
-
}, {
|
|
725
|
-
props: ({
|
|
726
|
-
ownerState: t
|
|
727
|
-
}) => t.vertical,
|
|
728
|
-
style: {
|
|
729
|
-
height: "100%",
|
|
730
|
-
width: 2,
|
|
731
|
-
right: 0
|
|
732
|
-
}
|
|
733
|
-
}]
|
|
734
|
-
}))), Ie = L(Ft)({
|
|
735
|
-
overflowX: "auto",
|
|
736
|
-
overflowY: "hidden",
|
|
737
|
-
// Hide dimensionless scrollbar on macOS
|
|
738
|
-
scrollbarWidth: "none",
|
|
739
|
-
// Firefox
|
|
740
|
-
"&::-webkit-scrollbar": {
|
|
741
|
-
display: "none"
|
|
742
|
-
// Safari + Chrome
|
|
743
|
-
}
|
|
744
|
-
}), Nt = {};
|
|
745
|
-
let Pt = !1;
|
|
746
|
-
const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
747
|
-
const d = ht({
|
|
748
|
-
props: t,
|
|
749
|
-
name: "MuiTabs"
|
|
750
|
-
}), i = re(), u = zt(), {
|
|
751
|
-
"aria-label": b,
|
|
752
|
-
"aria-labelledby": h,
|
|
753
|
-
action: f,
|
|
754
|
-
centered: S = !1,
|
|
755
|
-
children: v,
|
|
756
|
-
className: y,
|
|
757
|
-
component: m = "div",
|
|
758
|
-
allowScrollButtonsMobile: C = !1,
|
|
759
|
-
indicatorColor: k = "primary",
|
|
760
|
-
onChange: I,
|
|
761
|
-
orientation: g = "horizontal",
|
|
762
|
-
ScrollButtonComponent: j = Lt,
|
|
763
|
-
scrollButtons: M = "auto",
|
|
764
|
-
selectionFollowsFocus: nt,
|
|
765
|
-
slots: H = {},
|
|
766
|
-
slotProps: U = {},
|
|
767
|
-
TabIndicatorProps: V = {},
|
|
768
|
-
TabScrollButtonProps: z = {},
|
|
769
|
-
textColor: G = "primary",
|
|
770
|
-
value: N,
|
|
771
|
-
variant: R = "standard",
|
|
772
|
-
visibleScrollbar: lt = !1,
|
|
773
|
-
...jt
|
|
774
|
-
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right", st = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
|
|
775
|
-
...d,
|
|
776
|
-
component: m,
|
|
777
|
-
allowScrollButtonsMobile: C,
|
|
778
|
-
indicatorColor: k,
|
|
779
|
-
orientation: g,
|
|
780
|
-
vertical: B,
|
|
781
|
-
scrollButtons: M,
|
|
782
|
-
textColor: G,
|
|
783
|
-
variant: R,
|
|
784
|
-
visibleScrollbar: lt,
|
|
785
|
-
fixed: !w,
|
|
786
|
-
hideScrollbar: w && !lt,
|
|
787
|
-
scrollableX: w && !B,
|
|
788
|
-
scrollableY: w && B,
|
|
789
|
-
centered: S && !w,
|
|
790
|
-
scrollButtonsHideMobile: !C
|
|
791
|
-
}, P = Te(D), Ht = rt({
|
|
792
|
-
elementType: H.StartScrollButtonIcon,
|
|
793
|
-
externalSlotProps: U.startScrollButtonIcon,
|
|
794
|
-
ownerState: D
|
|
795
|
-
}), Vt = rt({
|
|
796
|
-
elementType: H.EndScrollButtonIcon,
|
|
797
|
-
externalSlotProps: U.endScrollButtonIcon,
|
|
798
|
-
ownerState: D
|
|
799
|
-
});
|
|
800
|
-
process.env.NODE_ENV !== "production" && S && w && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
801
|
-
const [St, Ut] = c.useState(!1), [$, vt] = c.useState(Nt), [yt, Xt] = c.useState(!1), [gt, Yt] = c.useState(!1), [Tt, _t] = c.useState(!1), [wt, Kt] = c.useState({
|
|
802
|
-
overflow: "hidden",
|
|
803
|
-
scrollbarWidth: 0
|
|
804
|
-
}), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Bt = () => {
|
|
805
|
-
const r = O.current;
|
|
806
|
-
let n;
|
|
807
|
-
if (r) {
|
|
808
|
-
const a = r.getBoundingClientRect();
|
|
809
|
-
n = {
|
|
810
|
-
clientWidth: r.clientWidth,
|
|
811
|
-
scrollLeft: r.scrollLeft,
|
|
812
|
-
scrollTop: r.scrollTop,
|
|
813
|
-
scrollWidth: r.scrollWidth,
|
|
814
|
-
top: a.top,
|
|
815
|
-
bottom: a.bottom,
|
|
816
|
-
left: a.left,
|
|
817
|
-
right: a.right
|
|
818
|
-
};
|
|
819
|
-
}
|
|
820
|
-
let s;
|
|
821
|
-
if (r && N !== !1) {
|
|
822
|
-
const a = A.current.children;
|
|
823
|
-
if (a.length > 0) {
|
|
824
|
-
const p = a[Z.get(N)];
|
|
825
|
-
process.env.NODE_ENV !== "production" && (p || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, Z.keys ? `You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.` : null].join(`
|
|
826
|
-
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pt && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
827
|
-
n.clientWidth !== 0 && (n = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") 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(`
|
|
828
|
-
`)), Pt = !0);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
return {
|
|
832
|
-
tabsMeta: n,
|
|
833
|
-
tabMeta: s
|
|
834
|
-
};
|
|
835
|
-
}, _ = dt(() => {
|
|
836
|
-
const {
|
|
837
|
-
tabsMeta: r,
|
|
838
|
-
tabMeta: n
|
|
839
|
-
} = Bt();
|
|
840
|
-
let s = 0, a;
|
|
841
|
-
B ? (a = "top", n && r && (s = n.top - r.top + r.scrollTop)) : (a = u ? "right" : "left", n && r && (s = (u ? -1 : 1) * (n[a] - r[a] + r.scrollLeft)));
|
|
842
|
-
const p = {
|
|
843
|
-
[a]: s,
|
|
844
|
-
// May be wrong until the font is loaded.
|
|
845
|
-
[Y]: n ? n[Y] : 0
|
|
846
|
-
};
|
|
847
|
-
if (typeof $[a] != "number" || typeof $[Y] != "number")
|
|
848
|
-
vt(p);
|
|
849
|
-
else {
|
|
850
|
-
const E = Math.abs($[a] - p[a]), F = Math.abs($[Y] - p[Y]);
|
|
851
|
-
(E >= 1 || F >= 1) && vt(p);
|
|
852
|
-
}
|
|
853
|
-
}), at = (r, {
|
|
854
|
-
animation: n = !0
|
|
855
|
-
} = {}) => {
|
|
856
|
-
n ? be(X, O.current, r, {
|
|
857
|
-
duration: i.transitions.duration.standard
|
|
858
|
-
}) : O.current[X] = r;
|
|
859
|
-
}, xt = (r) => {
|
|
860
|
-
let n = O.current[X];
|
|
861
|
-
B ? n += r : n += r * (u ? -1 : 1), at(n);
|
|
862
|
-
}, Ct = () => {
|
|
863
|
-
const r = O.current[st];
|
|
864
|
-
let n = 0;
|
|
865
|
-
const s = Array.from(A.current.children);
|
|
866
|
-
for (let a = 0; a < s.length; a += 1) {
|
|
867
|
-
const p = s[a];
|
|
868
|
-
if (n + p[st] > r) {
|
|
869
|
-
a === 0 && (n = r);
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
n += p[st];
|
|
873
|
-
}
|
|
874
|
-
return n;
|
|
875
|
-
}, qt = () => {
|
|
876
|
-
xt(-1 * Ct());
|
|
877
|
-
}, Gt = () => {
|
|
878
|
-
xt(Ct());
|
|
879
|
-
}, Jt = c.useCallback((r) => {
|
|
880
|
-
Kt({
|
|
881
|
-
overflow: null,
|
|
882
|
-
scrollbarWidth: r
|
|
883
|
-
});
|
|
884
|
-
}, []), Qt = () => {
|
|
885
|
-
const r = {};
|
|
886
|
-
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(Ie, {
|
|
887
|
-
onChange: Jt,
|
|
888
|
-
className: W(P.scrollableX, P.hideScrollbar)
|
|
889
|
-
}) : null;
|
|
890
|
-
const s = w && (M === "auto" && (yt || gt) || M === !0);
|
|
891
|
-
return r.scrollButtonStart = s ? /* @__PURE__ */ x(j, {
|
|
892
|
-
slots: {
|
|
893
|
-
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
894
|
-
},
|
|
895
|
-
slotProps: {
|
|
896
|
-
startScrollButtonIcon: Ht
|
|
897
|
-
},
|
|
898
|
-
orientation: g,
|
|
899
|
-
direction: u ? "right" : "left",
|
|
900
|
-
onClick: qt,
|
|
901
|
-
disabled: !yt,
|
|
902
|
-
...z,
|
|
903
|
-
className: W(P.scrollButtons, z.className)
|
|
904
|
-
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(j, {
|
|
905
|
-
slots: {
|
|
906
|
-
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
907
|
-
},
|
|
908
|
-
slotProps: {
|
|
909
|
-
endScrollButtonIcon: Vt
|
|
910
|
-
},
|
|
911
|
-
orientation: g,
|
|
912
|
-
direction: u ? "left" : "right",
|
|
913
|
-
onClick: Gt,
|
|
914
|
-
disabled: !gt,
|
|
915
|
-
...z,
|
|
916
|
-
className: W(P.scrollButtons, z.className)
|
|
917
|
-
}) : null, r;
|
|
918
|
-
}, It = dt((r) => {
|
|
919
|
-
const {
|
|
920
|
-
tabsMeta: n,
|
|
921
|
-
tabMeta: s
|
|
922
|
-
} = Bt();
|
|
923
|
-
if (!(!s || !n)) {
|
|
924
|
-
if (s[J] < n[J]) {
|
|
925
|
-
const a = n[X] + (s[J] - n[J]);
|
|
926
|
-
at(a, {
|
|
927
|
-
animation: r
|
|
928
|
-
});
|
|
929
|
-
} else if (s[Q] > n[Q]) {
|
|
930
|
-
const a = n[X] + (s[Q] - n[Q]);
|
|
931
|
-
at(a, {
|
|
932
|
-
animation: r
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
}), tt = dt(() => {
|
|
937
|
-
w && M !== !1 && _t(!Tt);
|
|
938
|
-
});
|
|
939
|
-
c.useEffect(() => {
|
|
940
|
-
const r = Dt(() => {
|
|
941
|
-
O.current && _();
|
|
942
|
-
});
|
|
943
|
-
let n;
|
|
944
|
-
const s = (E) => {
|
|
945
|
-
E.forEach((F) => {
|
|
946
|
-
F.removedNodes.forEach((K) => {
|
|
947
|
-
n == null || n.unobserve(K);
|
|
948
|
-
}), F.addedNodes.forEach((K) => {
|
|
949
|
-
n == null || n.observe(K);
|
|
950
|
-
});
|
|
951
|
-
}), r(), tt();
|
|
952
|
-
}, a = $t(O.current);
|
|
953
|
-
a.addEventListener("resize", r);
|
|
954
|
-
let p;
|
|
955
|
-
return typeof ResizeObserver < "u" && (n = new ResizeObserver(r), Array.from(A.current.children).forEach((E) => {
|
|
956
|
-
n.observe(E);
|
|
957
|
-
})), typeof MutationObserver < "u" && (p = new MutationObserver(s), p.observe(A.current, {
|
|
958
|
-
childList: !0
|
|
959
|
-
})), () => {
|
|
960
|
-
r.clear(), a.removeEventListener("resize", r), p == null || p.disconnect(), n == null || n.disconnect();
|
|
961
|
-
};
|
|
962
|
-
}, [_, tt]), c.useEffect(() => {
|
|
963
|
-
const r = Array.from(A.current.children), n = r.length;
|
|
964
|
-
if (typeof IntersectionObserver < "u" && n > 0 && w && M !== !1) {
|
|
965
|
-
const s = r[0], a = r[n - 1], p = {
|
|
966
|
-
root: O.current,
|
|
967
|
-
threshold: 0.99
|
|
968
|
-
}, E = (ct) => {
|
|
969
|
-
Xt(!ct[0].isIntersecting);
|
|
970
|
-
}, F = new IntersectionObserver(E, p);
|
|
971
|
-
F.observe(s);
|
|
972
|
-
const K = (ct) => {
|
|
973
|
-
Yt(!ct[0].isIntersecting);
|
|
974
|
-
}, Mt = new IntersectionObserver(K, p);
|
|
975
|
-
return Mt.observe(a), () => {
|
|
976
|
-
F.disconnect(), Mt.disconnect();
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
}, [w, M, Tt, v == null ? void 0 : v.length]), c.useEffect(() => {
|
|
980
|
-
Ut(!0);
|
|
981
|
-
}, []), c.useEffect(() => {
|
|
982
|
-
_();
|
|
983
|
-
}), c.useEffect(() => {
|
|
984
|
-
It(Nt !== $);
|
|
985
|
-
}, [It, $]), c.useImperativeHandle(f, () => ({
|
|
986
|
-
updateIndicator: _,
|
|
987
|
-
updateScrollButtons: tt
|
|
988
|
-
}), [_, tt]);
|
|
989
|
-
const Et = /* @__PURE__ */ x(Ce, {
|
|
990
|
-
...V,
|
|
991
|
-
className: W(P.indicator, V.className),
|
|
992
|
-
ownerState: D,
|
|
993
|
-
style: {
|
|
994
|
-
...$,
|
|
995
|
-
...V.style
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
let et = 0;
|
|
999
|
-
const Zt = c.Children.map(v, (r) => {
|
|
1000
|
-
if (!/* @__PURE__ */ c.isValidElement(r))
|
|
1001
|
-
return null;
|
|
1002
|
-
process.env.NODE_ENV !== "production" && ee.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1003
|
-
`));
|
|
1004
|
-
const n = r.props.value === void 0 ? et : r.props.value;
|
|
1005
|
-
Z.set(n, et);
|
|
1006
|
-
const s = n === N;
|
|
1007
|
-
return et += 1, /* @__PURE__ */ c.cloneElement(r, {
|
|
1008
|
-
fullWidth: R === "fullWidth",
|
|
1009
|
-
indicator: s && !St && Et,
|
|
1010
|
-
selected: s,
|
|
1011
|
-
selectionFollowsFocus: nt,
|
|
1012
|
-
onChange: I,
|
|
1013
|
-
textColor: G,
|
|
1014
|
-
value: n,
|
|
1015
|
-
...et === 1 && N === !1 && !r.props.tabIndex ? {
|
|
1016
|
-
tabIndex: 0
|
|
1017
|
-
} : {}
|
|
1018
|
-
});
|
|
1019
|
-
}), te = (r) => {
|
|
1020
|
-
const n = A.current, s = le(n).activeElement;
|
|
1021
|
-
if (s.getAttribute("role") !== "tab")
|
|
1022
|
-
return;
|
|
1023
|
-
let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1024
|
-
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), r.key) {
|
|
1025
|
-
case p:
|
|
1026
|
-
r.preventDefault(), ot(n, s, Ot);
|
|
1027
|
-
break;
|
|
1028
|
-
case E:
|
|
1029
|
-
r.preventDefault(), ot(n, s, Rt);
|
|
1030
|
-
break;
|
|
1031
|
-
case "Home":
|
|
1032
|
-
r.preventDefault(), ot(n, null, Rt);
|
|
1033
|
-
break;
|
|
1034
|
-
case "End":
|
|
1035
|
-
r.preventDefault(), ot(n, null, Ot);
|
|
1036
|
-
break;
|
|
1037
|
-
}
|
|
1038
|
-
}, it = Qt();
|
|
1039
|
-
return /* @__PURE__ */ q(we, {
|
|
1040
|
-
className: W(P.root, y),
|
|
1041
|
-
ownerState: D,
|
|
1042
|
-
ref: l,
|
|
1043
|
-
as: m,
|
|
1044
|
-
...jt,
|
|
1045
|
-
children: [it.scrollButtonStart, it.scrollbarSizeListener, /* @__PURE__ */ q(Be, {
|
|
1046
|
-
className: P.scroller,
|
|
1047
|
-
ownerState: D,
|
|
1048
|
-
style: {
|
|
1049
|
-
overflow: wt.overflow,
|
|
1050
|
-
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: lt ? void 0 : -wt.scrollbarWidth
|
|
1051
|
-
},
|
|
1052
|
-
ref: O,
|
|
1053
|
-
children: [/* @__PURE__ */ x(xe, {
|
|
1054
|
-
"aria-label": b,
|
|
1055
|
-
"aria-labelledby": h,
|
|
1056
|
-
"aria-orientation": g === "vertical" ? "vertical" : null,
|
|
1057
|
-
className: P.flexContainer,
|
|
1058
|
-
ownerState: D,
|
|
1059
|
-
onKeyDown: te,
|
|
1060
|
-
ref: A,
|
|
1061
|
-
role: "tablist",
|
|
1062
|
-
children: Zt
|
|
1063
|
-
}), St && Et]
|
|
1064
|
-
}), it.scrollButtonEnd]
|
|
1065
|
-
});
|
|
1066
|
-
});
|
|
1067
|
-
process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
1068
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1069
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1070
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1071
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1072
|
-
/**
|
|
1073
|
-
* Callback fired when the component mounts.
|
|
1074
|
-
* This is useful when you want to trigger an action programmatically.
|
|
1075
|
-
* It supports two actions: `updateIndicator()` and `updateScrollButtons()`
|
|
1076
|
-
*
|
|
1077
|
-
* @param {object} actions This object contains all possible actions
|
|
1078
|
-
* that can be triggered programmatically.
|
|
1079
|
-
*/
|
|
1080
|
-
action: se,
|
|
1081
|
-
/**
|
|
1082
|
-
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
1083
|
-
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
1084
|
-
* @default false
|
|
1085
|
-
*/
|
|
1086
|
-
allowScrollButtonsMobile: e.bool,
|
|
1087
|
-
/**
|
|
1088
|
-
* The label for the Tabs as a string.
|
|
1089
|
-
*/
|
|
1090
|
-
"aria-label": e.string,
|
|
1091
|
-
/**
|
|
1092
|
-
* An id or list of ids separated by a space that label the Tabs.
|
|
1093
|
-
*/
|
|
1094
|
-
"aria-labelledby": e.string,
|
|
1095
|
-
/**
|
|
1096
|
-
* If `true`, the tabs are centered.
|
|
1097
|
-
* This prop is intended for large views.
|
|
1098
|
-
* @default false
|
|
1099
|
-
*/
|
|
1100
|
-
centered: e.bool,
|
|
1101
|
-
/**
|
|
1102
|
-
* The content of the component.
|
|
1103
|
-
*/
|
|
1104
|
-
children: e.node,
|
|
1105
|
-
/**
|
|
1106
|
-
* Override or extend the styles applied to the component.
|
|
1107
|
-
*/
|
|
1108
|
-
classes: e.object,
|
|
1109
|
-
/**
|
|
1110
|
-
* @ignore
|
|
1111
|
-
*/
|
|
1112
|
-
className: e.string,
|
|
1113
|
-
/**
|
|
1114
|
-
* The component used for the root node.
|
|
1115
|
-
* Either a string to use a HTML element or a component.
|
|
1116
|
-
*/
|
|
1117
|
-
component: e.elementType,
|
|
1118
|
-
/**
|
|
1119
|
-
* Determines the color of the indicator.
|
|
1120
|
-
* @default 'primary'
|
|
1121
|
-
*/
|
|
1122
|
-
indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
1123
|
-
/**
|
|
1124
|
-
* Callback fired when the value changes.
|
|
1125
|
-
*
|
|
1126
|
-
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
1127
|
-
* @param {any} value We default to the index of the child (number)
|
|
1128
|
-
*/
|
|
1129
|
-
onChange: e.func,
|
|
1130
|
-
/**
|
|
1131
|
-
* The component orientation (layout flow direction).
|
|
1132
|
-
* @default 'horizontal'
|
|
1133
|
-
*/
|
|
1134
|
-
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
1135
|
-
/**
|
|
1136
|
-
* The component used to render the scroll buttons.
|
|
1137
|
-
* @default TabScrollButton
|
|
1138
|
-
*/
|
|
1139
|
-
ScrollButtonComponent: e.elementType,
|
|
1140
|
-
/**
|
|
1141
|
-
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
1142
|
-
*
|
|
1143
|
-
* - `auto` will only present them when not all the items are visible.
|
|
1144
|
-
* - `true` will always present them.
|
|
1145
|
-
* - `false` will never present them.
|
|
1146
|
-
*
|
|
1147
|
-
* By default the scroll buttons are hidden on mobile.
|
|
1148
|
-
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
1149
|
-
* @default 'auto'
|
|
1150
|
-
*/
|
|
1151
|
-
scrollButtons: e.oneOf(["auto", !1, !0]),
|
|
1152
|
-
/**
|
|
1153
|
-
* If `true` the selected tab changes on focus. Otherwise it only
|
|
1154
|
-
* changes on activation.
|
|
1155
|
-
*/
|
|
1156
|
-
selectionFollowsFocus: e.bool,
|
|
1157
|
-
/**
|
|
1158
|
-
* The extra props for the slot components.
|
|
1159
|
-
* You can override the existing props or add new ones.
|
|
1160
|
-
* @default {}
|
|
1161
|
-
*/
|
|
1162
|
-
slotProps: e.shape({
|
|
1163
|
-
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
1164
|
-
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
1165
|
-
}),
|
|
1166
|
-
/**
|
|
1167
|
-
* The components used for each slot inside.
|
|
1168
|
-
* @default {}
|
|
1169
|
-
*/
|
|
1170
|
-
slots: e.shape({
|
|
1171
|
-
EndScrollButtonIcon: e.elementType,
|
|
1172
|
-
StartScrollButtonIcon: e.elementType
|
|
1173
|
-
}),
|
|
1174
|
-
/**
|
|
1175
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1176
|
-
*/
|
|
1177
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1178
|
-
/**
|
|
1179
|
-
* Props applied to the tab indicator element.
|
|
1180
|
-
* @default {}
|
|
1181
|
-
*/
|
|
1182
|
-
TabIndicatorProps: e.object,
|
|
1183
|
-
/**
|
|
1184
|
-
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
1185
|
-
* @default {}
|
|
1186
|
-
*/
|
|
1187
|
-
TabScrollButtonProps: e.object,
|
|
1188
|
-
/**
|
|
1189
|
-
* Determines the color of the `Tab`.
|
|
1190
|
-
* @default 'primary'
|
|
1191
|
-
*/
|
|
1192
|
-
textColor: e.oneOf(["inherit", "primary", "secondary"]),
|
|
1193
|
-
/**
|
|
1194
|
-
* The value of the currently selected `Tab`.
|
|
1195
|
-
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1196
|
-
*/
|
|
1197
|
-
value: e.any,
|
|
1198
|
-
/**
|
|
1199
|
-
* Determines additional display behavior of the tabs:
|
|
1200
|
-
*
|
|
1201
|
-
* - `scrollable` will invoke scrolling properties and allow for horizontally
|
|
1202
|
-
* scrolling (or swiping) of the tab bar.
|
|
1203
|
-
* - `fullWidth` will make the tabs grow to use all the available space,
|
|
1204
|
-
* which should be used for small views, like on mobile.
|
|
1205
|
-
* - `standard` will render the default state.
|
|
1206
|
-
* @default 'standard'
|
|
1207
|
-
*/
|
|
1208
|
-
variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1209
|
-
/**
|
|
1210
|
-
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1211
|
-
* a long vertical list of tabs.
|
|
1212
|
-
* @default false
|
|
1213
|
-
*/
|
|
1214
|
-
visibleScrollbar: e.bool
|
|
1215
|
-
});
|
|
1216
|
-
export {
|
|
1217
|
-
pe as K,
|
|
1218
|
-
de as T,
|
|
1219
|
-
Ee as a,
|
|
1220
|
-
ut as b,
|
|
1221
|
-
ge as c,
|
|
1222
|
-
ue as d,
|
|
1223
|
-
ae as g,
|
|
1224
|
-
T as t
|
|
1225
|
-
};
|