@cgi-learning-hub/ui 1.7.0-dev.1754301696 → 1.7.0-dev.1754384740
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-D7CiHM6d.js → Alert-6yOnGlLE.js} +6 -6
- package/dist/Alert-CWHOYWde.cjs +1 -0
- package/dist/Alert-D4-73fYc.cjs +1 -0
- package/dist/{Alert-kxWN2hw0.js → Alert-D6SQnjuJ.js} +83 -84
- package/dist/{Autocomplete-BfNqYbav.js → Autocomplete-B8u-WYi5.js} +690 -675
- package/dist/Autocomplete-BA6NkciB.cjs +6 -0
- package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
- package/dist/{Backdrop-D7dPrxSb.js → Backdrop-DuOPKUSY.js} +36 -35
- package/dist/{Badge-DBzOcFK5.js → Badge-BJ4yH_Da.js} +9 -10
- package/dist/Badge-XMr4Ygjv.cjs +1 -0
- package/dist/Box-B5E7sstc.cjs +1 -0
- package/dist/{Box-CBqFcDTK.js → Box-BWETzF5p.js} +3 -3
- package/dist/Button-BJB830NI.cjs +1 -0
- package/dist/{Button-CdzT4uYI.js → Button-C8_HxKFe.js} +139 -173
- package/dist/{ButtonBase-C1FIHWcD.js → ButtonBase-CJYV8wgs.js} +2 -2
- package/dist/{ButtonBase-BOnOTx73.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
- package/dist/CardContent-H0z20SY7.cjs +1 -0
- package/dist/{CardContent-cbluqmUz.js → CardContent-V9JMSLmA.js} +3 -3
- package/dist/Checkbox-BZPMiwbF.cjs +1 -0
- package/dist/{Checkbox-CXMDqMmf.js → Checkbox-DMMz_IAP.js} +85 -86
- package/dist/Chip-BDVqkZZM.js +573 -0
- package/dist/Chip-DMBSp59F.cjs +1 -0
- package/dist/CircularProgress-BMVNeiSf.cjs +28 -0
- package/dist/{CircularProgress-ByBabaUG.js → CircularProgress-CrWnCGqN.js} +13 -14
- package/dist/{Close-NlNVwj8F.cjs → Close-2eEmvKPH.cjs} +1 -1
- package/dist/{Close-BjQCC0qE.js → Close-Cr2OT0GV.js} +1 -1
- package/dist/{CloseRounded-XK3z7Pzh.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
- package/dist/{CloseRounded-DHTxUBWk.js → CloseRounded-BrGeesu1.js} +1 -1
- package/dist/{CustomTreeItem-C1bfen5B.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
- package/dist/{CustomTreeItem-D-4kMx41.js → CustomTreeItem-DhB3ECa2.js} +12 -12
- package/dist/DatePicker-DtPvvFiK.cjs +16 -0
- package/dist/{DatePicker-DZrDegSu.js → DatePicker-ofISDY8Q.js} +2862 -2864
- package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
- package/dist/{DefaultPropsProvider-BrNsAtD3.js → DefaultPropsProvider-nxIPd34m.js} +23 -23
- package/dist/{Delete-jSTHS8bP.cjs → Delete-BF63Gpr-.cjs} +1 -1
- package/dist/{Delete-De1w6Wb0.js → Delete-CwWpjEOT.js} +1 -1
- package/dist/Dialog-Cymf3DJ2.cjs +1 -0
- package/dist/{Dialog-Cx__5cTV.js → Dialog-eK1zTFBm.js} +14 -15
- package/dist/{DialogContent-DrRkY205.js → DialogContent-BsPZJR2a.js} +3 -3
- package/dist/DialogContent-Gy1s3ela.cjs +1 -0
- package/dist/DialogTitle-BDyrzRXS.cjs +1 -0
- package/dist/{DialogTitle-CdH-pj3R.js → DialogTitle-CaAd59jN.js} +5 -5
- package/dist/Divider-BzdMIEJJ.cjs +1 -0
- package/dist/{Divider-BTDjUp2v.js → Divider-D_gbcyWE.js} +26 -26
- package/dist/{Folder-BdmrBiSE.js → Folder-COKXTjZ4.js} +1 -1
- package/dist/{Folder-Ry-DhShC.cjs → Folder-D0fZbyc-.cjs} +1 -1
- package/dist/FormLabel-BLySmpkL.cjs +2 -0
- package/dist/{FormLabel-BqkN_xxS.js → FormLabel-DmLckqyT.js} +15 -16
- package/dist/Grid-DFaRzlB4.cjs +2 -0
- package/dist/{Grid-Dal_bzkG.js → Grid-vM--ojbL.js} +74 -82
- package/dist/{Grow-BpiZp6xU.js → Grow-DE5x7F5S.js} +1 -1
- package/dist/{Grow-DPkmt9jI.cjs → Grow-ovNT7Sot.cjs} +1 -1
- package/dist/IconButton-DCQiOq7W.cjs +2 -0
- package/dist/{IconButton-BrEiwZs1.js → IconButton-f9EZgwvD.js} +66 -67
- package/dist/{InputAdornment-6pibWhBs.js → InputAdornment-B615VSjF.js} +14 -15
- package/dist/InputAdornment-BrrJ8chb.cjs +1 -0
- package/dist/{InputBase--Jk0Al5O.js → InputBase-BCbPPzW1.js} +50 -51
- package/dist/InputBase-CRrFludT.cjs +4 -0
- package/dist/Link-CMes5bws.cjs +1 -0
- package/dist/{Link-8wJ87d6M.js → Link-GBRiPElP.js} +56 -44
- package/dist/{List-q9c0EQIN.js → List-DZkddOsr.js} +2 -2
- package/dist/List-E_TAQ1jJ.cjs +1 -0
- package/dist/{ListItem-iH38wGFD.js → ListItem-CMoibMI7.js} +4 -4
- package/dist/ListItem-qTKJTg7f.cjs +1 -0
- package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
- package/dist/{ListItemText-7p6JHq3z.js → ListItemText-BbrPf29n.js} +139 -139
- package/dist/{Menu-B-AGEy5x.js → Menu-3UjlpKRJ.js} +28 -28
- package/dist/{Menu-CZF84BcH.cjs → Menu-C0uY9Dd0.cjs} +5 -5
- package/dist/MenuItem--a878rw9.cjs +1 -0
- package/dist/{MenuItem-D-Y0l50p.js → MenuItem-CHEWce5u.js} +94 -94
- package/dist/Modal-CdcolE0C.cjs +2 -0
- package/dist/{Modal-rm4Wr5mr.js → Modal-Du5LfkZg.js} +6 -6
- package/dist/{MoreVert-4w5beLFq.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
- package/dist/{MoreVert-K_wr6kJS.js → MoreVert-PLU7h8WO.js} +1 -1
- package/dist/{Paper-CFhnudKQ.js → Paper-BylmTlAJ.js} +4 -4
- package/dist/Paper-DgHGh6vt.cjs +2 -0
- package/dist/Popper-BsNp09Gg.cjs +4 -0
- package/dist/{Popper-tW85AcRT.js → Popper-CvQLHjwo.js} +4 -4
- package/dist/{Portal-DZrHcvYi.js → Portal-BlK6ttxt.js} +15 -15
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-CLNMQGNf.cjs +1 -0
- package/dist/{Radio-C1IIog7f.js → Radio-CbYgci2-.js} +124 -120
- package/dist/{RadioGroup-C03E_nJT.js → RadioGroup-D-Cq8SmM.js} +3 -3
- package/dist/RadioGroup-Dyf8fKum.cjs +1 -0
- package/dist/{Select-qUF3oQz8.js → Select-Bx0yVOZE.js} +596 -563
- package/dist/Select-CRVPbesC.cjs +3 -0
- package/dist/Stack-COmIqMxy.cjs +1 -0
- package/dist/{Stack-D1BZQ4nk.js → Stack-CbK4a2n5.js} +16 -16
- package/dist/Stepper-CWq9t5jy.cjs +1 -0
- package/dist/{Stepper-N5qN-x7q.js → Stepper-DU9nixCp.js} +22 -23
- package/dist/{Switch-PlSZBWfd.js → Switch-Bm3Gclye.js} +97 -95
- package/dist/Switch-kHZOqjeU.cjs +1 -0
- package/dist/{SwitchBase-CAOV2ay6.js → SwitchBase-9CKmTWdZ.js} +50 -48
- package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
- package/dist/{Tab-DfH7qAIY.js → Tab-DBCv1T9W.js} +75 -76
- package/dist/Tab-DnxFjc89.cjs +4 -0
- package/dist/TextField-BhdmUny-.cjs +1 -0
- package/dist/{TextField-CUhKk24w.js → TextField-V-EQ80Y6.js} +22 -23
- package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
- package/dist/{ToggleButtonGroup-D_I3DjEz.js → ToggleButtonGroup-_UpIjysl.js} +1742 -1760
- package/dist/{Tooltip-BLSnjkFh.js → Tooltip-DKHOTDh0.js} +84 -85
- package/dist/Tooltip-DYTDIzp4.cjs +4 -0
- package/dist/Typography-BvRUTdLD.cjs +1 -0
- package/dist/{Typography-Bdfl0Alf.js → Typography-o0iALAVg.js} +6 -7
- package/dist/components/ActionBar/style.cjs.js +1 -1
- package/dist/components/ActionBar/style.es.js +2 -2
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +4 -4
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- 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 +4 -4
- 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/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +2 -2
- package/dist/components/TreeView/TreeView.es.js +39 -39
- 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 +44 -44
- 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/Badge.stories.cjs.js +1 -1
- package/dist/components/stories/Badge.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/ButtonGroup.stories.cjs.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
- 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/Stepper.stories.cjs.js +1 -1
- package/dist/components/stories/Stepper.stories.es.js +4 -4
- 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 +1 -1
- package/dist/components/stories/TreeView.stories.es.js +12 -12
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-BJRigbha.cjs +1 -0
- package/dist/{createSvgIcon-nrGLeL-I.js → createSvgIcon-BV54rC7k.js} +7 -8
- package/dist/dividerClasses-CbwbHy8r.cjs +1 -0
- package/dist/{dividerClasses-Cds5AHtx.js → dividerClasses-DDXs86hs.js} +1 -1
- package/dist/extendSxProp-CxMSlckP.cjs +1 -0
- package/dist/{extendSxProp-e_bx8m3Z.js → extendSxProp-XouBF-Ct.js} +1 -1
- package/dist/identifier-DBvccNCw.cjs +55 -0
- package/dist/{generateUtilityClasses-32ARRWdA.js → identifier-Dnc8T93Z.js} +1062 -1021
- package/dist/{index-B9KBbi0q.js → index-9te7SXrs.js} +4 -4
- package/dist/index-BkNQtUZJ.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +44 -44
- package/dist/{listItemTextClasses-D1H_8v-c.js → listItemTextClasses-4p_83pwn.js} +1 -1
- package/dist/listItemTextClasses-Cxo4anAo.cjs +1 -0
- package/dist/{memoTheme-BsSXjuJK.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
- package/dist/{memoTheme-BBxIYGG7.js → memoTheme-K37vidlb.js} +1 -1
- package/dist/mergeSlotProps-CXO1f70l.cjs +1 -0
- package/dist/{mergeSlotProps-r8Lw8Cah.js → mergeSlotProps-DSWiBSbD.js} +1 -1
- package/dist/styled-B7pKW9DQ.cjs +1 -0
- package/dist/styled-JnAdiSL5.js +5 -0
- package/dist/{useSlot-DnOTNYbF.js → useSlot-GooGQrej.js} +1 -1
- package/dist/useSlot-ONna5RyM.cjs +1 -0
- package/dist/{useSlotProps-BwBEemtt.js → useSlotProps-C34Wr67s.js} +1 -1
- package/dist/{useSlotProps-5aNXGFYF.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
- package/dist/useTheme-CH7DA5fq.js +11 -0
- package/dist/useTheme-D6wPRo0G.cjs +1 -0
- package/dist/useTheme-DkiCyF-9.cjs +1 -0
- package/dist/{useTheme-CMVVKo4v.js → useTheme-VH02z7nF.js} +1 -1
- package/dist/{useThemeProps-BIb0QYVO.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
- package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
- package/dist/useThemeProps-DT4QxdFn.js +17 -0
- package/dist/{useThemeProps-lFVeX-f0.js → useThemeProps-DZ05-54P.js} +4 -4
- package/package.json +7 -7
- package/dist/Alert-C6iEisoq.cjs +0 -1
- package/dist/Alert-D4JVZyQU.cjs +0 -1
- package/dist/Autocomplete-1xee2eiQ.cjs +0 -6
- package/dist/Backdrop-DgkaE-oT.cjs +0 -1
- package/dist/Badge-BUbP5vp-.cjs +0 -1
- package/dist/Box-C1W2izKY.cjs +0 -1
- package/dist/Button-cDSw19Nq.cjs +0 -1
- package/dist/CardContent-D4botNGC.cjs +0 -1
- package/dist/Checkbox-BXKolrmm.cjs +0 -1
- package/dist/Chip-BpeHDShb.js +0 -573
- package/dist/Chip-Ch-5oIUc.cjs +0 -1
- package/dist/CircularProgress-CTG6zAAM.cjs +0 -28
- package/dist/DatePicker-Slqqr585.cjs +0 -16
- package/dist/DefaultPropsProvider-H9bB_0gL.cjs +0 -1
- package/dist/Dialog-CzMU1Vaw.cjs +0 -1
- package/dist/DialogContent-mzqgUnTG.cjs +0 -1
- package/dist/DialogTitle-Ba_P5rRd.cjs +0 -1
- package/dist/Divider-CZPVxsPO.cjs +0 -1
- package/dist/FormLabel-DJ9MlN95.cjs +0 -2
- package/dist/Grid-gwsV6B8i.cjs +0 -2
- package/dist/IconButton-DQ0-3085.cjs +0 -2
- package/dist/InputAdornment-BM3llcq_.cjs +0 -1
- package/dist/InputBase-C4hx7uf2.cjs +0 -4
- package/dist/Link-CIQePe28.cjs +0 -1
- package/dist/List--5MPONUQ.cjs +0 -1
- package/dist/ListItem-C2_Z7drq.cjs +0 -1
- package/dist/ListItemText-D9-Pz-Pv.cjs +0 -1
- package/dist/MenuItem-Tfoo4dBw.cjs +0 -1
- package/dist/Modal-DeI0Mlfa.cjs +0 -2
- package/dist/Paper-_oaR1_0W.cjs +0 -2
- package/dist/Popper-D60dNc4H.cjs +0 -4
- package/dist/Portal-BXwfYalF.cjs +0 -1
- package/dist/Radio-DTyaqbCx.cjs +0 -1
- package/dist/RadioGroup-Ch703c6I.cjs +0 -1
- package/dist/Select-BFy88I22.cjs +0 -3
- package/dist/Stack-DraxEahz.cjs +0 -1
- package/dist/Stepper-DZ3G6yg0.cjs +0 -1
- package/dist/Switch-JAYiSudG.cjs +0 -1
- package/dist/SwitchBase-CLGs4Tit.cjs +0 -1
- package/dist/Tab-BnZwSzzt.cjs +0 -4
- package/dist/TextField-3tuxHLZ9.cjs +0 -1
- package/dist/ToggleButtonGroup-BZRf-b3W.cjs +0 -138
- package/dist/Tooltip-Bzb_mXr7.cjs +0 -4
- package/dist/Typography-CZKR4ZRK.cjs +0 -1
- package/dist/capitalize-CgHuXq7I.js +0 -9
- package/dist/capitalize-N-bUbBKG.cjs +0 -1
- package/dist/composeClasses-CZaHK87I.js +0 -51
- package/dist/composeClasses-DLNLdr2K.cjs +0 -1
- package/dist/createSvgIcon-DzMPK9Wt.cjs +0 -1
- package/dist/dividerClasses-DT1ACCA-.cjs +0 -1
- package/dist/extendSxProp-IrF6qCII.cjs +0 -1
- package/dist/generateUtilityClasses-CdsrTlgj.cjs +0 -55
- package/dist/index-DGUCeeBA.cjs +0 -1
- package/dist/listItemTextClasses-BK-fvEix.cjs +0 -1
- package/dist/mergeSlotProps-wZnr2VqA.cjs +0 -1
- package/dist/useSlot-BI_E4Zjs.cjs +0 -1
- package/dist/useTheme-6FgHgKII.cjs +0 -1
- package/dist/useTheme-Bjns7t5p.js +0 -11
- package/dist/useTheme-BxDf8E3o.cjs +0 -1
- package/dist/useThemeProps-BwzAhOV5.cjs +0 -1
- package/dist/useThemeProps-DV7UxDZG.js +0 -17
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
3
|
import { jsx as T, jsxs as G } from "react/jsx-runtime";
|
|
4
|
-
import { F as ae, G as ie, H as j,
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as xo } from "./useTheme-
|
|
7
|
-
import { u as Se, s as D, c as ce } from "./DefaultPropsProvider-
|
|
8
|
-
import { m as ve } from "./memoTheme-
|
|
4
|
+
import { F as ae, G as ie, H as j, Z as wo, K as ze } from "./identifier-Dnc8T93Z.js";
|
|
5
|
+
import { u as Fe } from "./index-DX2Sl0Ig.js";
|
|
6
|
+
import { u as xo } from "./useTheme-CH7DA5fq.js";
|
|
7
|
+
import { u as Se, s as D, c as ce } from "./DefaultPropsProvider-nxIPd34m.js";
|
|
8
|
+
import { m as ve } from "./memoTheme-K37vidlb.js";
|
|
9
9
|
import { u as Bo, a as me } from "./useEventCallback-Y2KwRxBw.js";
|
|
10
|
-
import { d as
|
|
11
|
-
import { o as
|
|
12
|
-
import { u as H } from "./useSlot-
|
|
13
|
-
import { u as se } from "./useSlotProps-
|
|
14
|
-
import { c as
|
|
15
|
-
import { B as
|
|
10
|
+
import { d as Ae } from "./debounce-46wSf_lW.js";
|
|
11
|
+
import { o as Ve } from "./ownerWindow-niciwP7I.js";
|
|
12
|
+
import { u as H } from "./useSlot-GooGQrej.js";
|
|
13
|
+
import { u as se } from "./useSlotProps-C34Wr67s.js";
|
|
14
|
+
import { c as He } from "./createSvgIcon-BV54rC7k.js";
|
|
15
|
+
import { B as Ue } from "./ButtonBase-CJYV8wgs.js";
|
|
16
16
|
import { o as Co } from "./ownerDocument-CUrv0DIK.js";
|
|
17
17
|
import { r as Eo } from "./refType-Dp7CJc86.js";
|
|
18
|
-
import { u as Io } from "./useThemeProps-
|
|
19
|
-
import { c as Ue } from "./capitalize-CgHuXq7I.js";
|
|
18
|
+
import { u as Io } from "./useThemeProps-DT4QxdFn.js";
|
|
20
19
|
import { u as Po } from "./unsupportedProp-BuVD30Gh.js";
|
|
21
20
|
const Te = /* @__PURE__ */ s.createContext(null);
|
|
22
21
|
process.env.NODE_ENV !== "production" && (Te.displayName = "TabContext");
|
|
@@ -62,7 +61,7 @@ function Xe(t, o) {
|
|
|
62
61
|
} = t;
|
|
63
62
|
return r === null ? null : `${t.idPrefix}-P-${o}`;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
64
|
+
function _e(t, o) {
|
|
66
65
|
const {
|
|
67
66
|
idPrefix: r
|
|
68
67
|
} = t;
|
|
@@ -107,7 +106,7 @@ const jo = {
|
|
|
107
106
|
top: -9999,
|
|
108
107
|
overflow: "scroll"
|
|
109
108
|
};
|
|
110
|
-
function
|
|
109
|
+
function Ye(t) {
|
|
111
110
|
const {
|
|
112
111
|
onChange: o,
|
|
113
112
|
...r
|
|
@@ -115,10 +114,10 @@ function _e(t) {
|
|
|
115
114
|
a.current = i.current.offsetHeight - i.current.clientHeight;
|
|
116
115
|
};
|
|
117
116
|
return Bo(() => {
|
|
118
|
-
const p =
|
|
117
|
+
const p = Ae(() => {
|
|
119
118
|
const h = a.current;
|
|
120
119
|
d(), h !== a.current && o(a.current);
|
|
121
|
-
}), f =
|
|
120
|
+
}), f = Ve(i.current);
|
|
122
121
|
return f.addEventListener("resize", p), () => {
|
|
123
122
|
p.clear(), f.removeEventListener("resize", p);
|
|
124
123
|
};
|
|
@@ -130,12 +129,12 @@ function _e(t) {
|
|
|
130
129
|
ref: i
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
|
-
process.env.NODE_ENV !== "production" && (
|
|
132
|
+
process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
134
133
|
onChange: e.func.isRequired
|
|
135
134
|
});
|
|
136
|
-
const ko =
|
|
135
|
+
const ko = He(/* @__PURE__ */ T("path", {
|
|
137
136
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
138
|
-
}), "KeyboardArrowLeft"), $o =
|
|
137
|
+
}), "KeyboardArrowLeft"), $o = He(/* @__PURE__ */ T("path", {
|
|
139
138
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
140
139
|
}), "KeyboardArrowRight");
|
|
141
140
|
function Do(t) {
|
|
@@ -150,7 +149,7 @@ const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
150
149
|
return ce({
|
|
151
150
|
root: ["root", r, a && "disabled"]
|
|
152
151
|
}, Do, o);
|
|
153
|
-
}, zo = D(
|
|
152
|
+
}, zo = D(Ue, {
|
|
154
153
|
name: "MuiTabScrollButton",
|
|
155
154
|
slot: "Root",
|
|
156
155
|
overridesResolver: (t, o) => {
|
|
@@ -190,7 +189,7 @@ const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
190
189
|
orientation: h,
|
|
191
190
|
disabled: S,
|
|
192
191
|
...v
|
|
193
|
-
} = a, m =
|
|
192
|
+
} = a, m = Fe(), y = {
|
|
194
193
|
isRtl: m,
|
|
195
194
|
...a
|
|
196
195
|
}, g = Lo(y), W = d.StartScrollButtonIcon ?? ko, E = d.EndScrollButtonIcon ?? $o, x = se({
|
|
@@ -200,7 +199,7 @@ const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
200
199
|
fontSize: "small"
|
|
201
200
|
},
|
|
202
201
|
ownerState: y
|
|
203
|
-
}),
|
|
202
|
+
}), Z = se({
|
|
204
203
|
elementType: E,
|
|
205
204
|
externalSlotProps: p.endScrollButtonIcon,
|
|
206
205
|
additionalProps: {
|
|
@@ -225,7 +224,7 @@ const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
225
224
|
children: f === "left" ? /* @__PURE__ */ T(W, {
|
|
226
225
|
...x
|
|
227
226
|
}) : /* @__PURE__ */ T(E, {
|
|
228
|
-
...
|
|
227
|
+
...Z
|
|
229
228
|
})
|
|
230
229
|
});
|
|
231
230
|
});
|
|
@@ -477,7 +476,7 @@ const ye = ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexCont
|
|
|
477
476
|
right: 0
|
|
478
477
|
}
|
|
479
478
|
}]
|
|
480
|
-
}))), Xo = D(
|
|
479
|
+
}))), Xo = D(Ye)({
|
|
481
480
|
overflowX: "auto",
|
|
482
481
|
overflowY: "hidden",
|
|
483
482
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -493,7 +492,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
493
492
|
const a = Se({
|
|
494
493
|
props: o,
|
|
495
494
|
name: "MuiTabs"
|
|
496
|
-
}), i = xo(), d =
|
|
495
|
+
}), i = xo(), d = Fe(), {
|
|
497
496
|
"aria-label": p,
|
|
498
497
|
"aria-labelledby": f,
|
|
499
498
|
action: h,
|
|
@@ -505,7 +504,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
505
504
|
indicatorColor: W = "primary",
|
|
506
505
|
onChange: E,
|
|
507
506
|
orientation: x = "horizontal",
|
|
508
|
-
ScrollButtonComponent:
|
|
507
|
+
ScrollButtonComponent: Z,
|
|
509
508
|
// TODO: remove in v7 (deprecated in v6)
|
|
510
509
|
scrollButtons: P = "auto",
|
|
511
510
|
selectionFollowsFocus: de,
|
|
@@ -515,12 +514,12 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
515
514
|
// TODO: remove in v7 (deprecated in v6)
|
|
516
515
|
TabScrollButtonProps: K = {},
|
|
517
516
|
// TODO: remove in v7 (deprecated in v6)
|
|
518
|
-
textColor:
|
|
517
|
+
textColor: J = "primary",
|
|
519
518
|
value: k,
|
|
520
519
|
variant: O = "standard",
|
|
521
520
|
visibleScrollbar: ue = !1,
|
|
522
|
-
...
|
|
523
|
-
} = a, B = O === "scrollable", C = x === "vertical", X = C ? "scrollTop" : "scrollLeft",
|
|
521
|
+
...Ze
|
|
522
|
+
} = a, B = O === "scrollable", C = x === "vertical", X = C ? "scrollTop" : "scrollLeft", Q = C ? "top" : "left", ee = C ? "bottom" : "right", pe = C ? "clientHeight" : "clientWidth", _ = C ? "height" : "width", N = {
|
|
524
523
|
...a,
|
|
525
524
|
component: y,
|
|
526
525
|
allowScrollButtonsMobile: g,
|
|
@@ -528,7 +527,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
528
527
|
orientation: x,
|
|
529
528
|
vertical: C,
|
|
530
529
|
scrollButtons: P,
|
|
531
|
-
textColor:
|
|
530
|
+
textColor: J,
|
|
532
531
|
variant: O,
|
|
533
532
|
visibleScrollbar: ue,
|
|
534
533
|
fixed: !B,
|
|
@@ -537,11 +536,11 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
537
536
|
scrollableY: B && C,
|
|
538
537
|
centered: S && !B,
|
|
539
538
|
scrollButtonsHideMobile: !g
|
|
540
|
-
}, $ = Ao(N),
|
|
539
|
+
}, $ = Ao(N), Je = se({
|
|
541
540
|
elementType: M.StartScrollButtonIcon,
|
|
542
541
|
externalSlotProps: A.startScrollButtonIcon,
|
|
543
542
|
ownerState: N
|
|
544
|
-
}),
|
|
543
|
+
}), Qe = se({
|
|
545
544
|
elementType: M.EndScrollButtonIcon,
|
|
546
545
|
externalSlotProps: A.endScrollButtonIcon,
|
|
547
546
|
ownerState: N
|
|
@@ -588,7 +587,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
588
587
|
tabsMeta: l,
|
|
589
588
|
tabMeta: c
|
|
590
589
|
};
|
|
591
|
-
},
|
|
590
|
+
}, Y = me(() => {
|
|
592
591
|
const {
|
|
593
592
|
tabsMeta: n,
|
|
594
593
|
tabMeta: l
|
|
@@ -598,12 +597,12 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
598
597
|
const b = {
|
|
599
598
|
[u]: c,
|
|
600
599
|
// May be wrong until the font is loaded.
|
|
601
|
-
[
|
|
600
|
+
[_]: l ? l[_] : 0
|
|
602
601
|
};
|
|
603
|
-
if (typeof L[u] != "number" || typeof L[
|
|
602
|
+
if (typeof L[u] != "number" || typeof L[_] != "number")
|
|
604
603
|
we(b);
|
|
605
604
|
else {
|
|
606
|
-
const I = Math.abs(L[u] - b[u]), F = Math.abs(L[
|
|
605
|
+
const I = Math.abs(L[u] - b[u]), F = Math.abs(L[_] - b[_]);
|
|
607
606
|
(I >= 1 || F >= 1) && we(b);
|
|
608
607
|
}
|
|
609
608
|
}), fe = (n, {
|
|
@@ -658,8 +657,8 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
658
657
|
EndScrollButtonIcon: M.endScrollButtonIcon || M.EndScrollButtonIcon
|
|
659
658
|
},
|
|
660
659
|
slotProps: {
|
|
661
|
-
startScrollButtonIcon:
|
|
662
|
-
endScrollButtonIcon:
|
|
660
|
+
startScrollButtonIcon: Je,
|
|
661
|
+
endScrollButtonIcon: Qe
|
|
663
662
|
}
|
|
664
663
|
}
|
|
665
664
|
}), uo = () => {
|
|
@@ -686,8 +685,8 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
686
685
|
tabMeta: c
|
|
687
686
|
} = Ie();
|
|
688
687
|
if (!(!c || !l)) {
|
|
689
|
-
if (c[
|
|
690
|
-
const u = l[X] + (c[
|
|
688
|
+
if (c[Q] < l[Q]) {
|
|
689
|
+
const u = l[X] + (c[Q] - l[Q]);
|
|
691
690
|
fe(u, {
|
|
692
691
|
animation: n
|
|
693
692
|
});
|
|
@@ -702,8 +701,8 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
702
701
|
B && P !== !1 && no(!Ce);
|
|
703
702
|
});
|
|
704
703
|
s.useEffect(() => {
|
|
705
|
-
const n =
|
|
706
|
-
R.current &&
|
|
704
|
+
const n = Ae(() => {
|
|
705
|
+
R.current && Y();
|
|
707
706
|
});
|
|
708
707
|
let l;
|
|
709
708
|
const c = (I) => {
|
|
@@ -714,7 +713,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
714
713
|
l == null || l.observe(q);
|
|
715
714
|
});
|
|
716
715
|
}), n(), ne();
|
|
717
|
-
}, u =
|
|
716
|
+
}, u = Ve(R.current);
|
|
718
717
|
u.addEventListener("resize", n);
|
|
719
718
|
let b;
|
|
720
719
|
return typeof ResizeObserver < "u" && (l = new ResizeObserver(n), Array.from(z.current.children).forEach((I) => {
|
|
@@ -724,7 +723,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
724
723
|
})), () => {
|
|
725
724
|
n.clear(), u.removeEventListener("resize", n), b == null || b.disconnect(), l == null || l.disconnect();
|
|
726
725
|
};
|
|
727
|
-
}, [
|
|
726
|
+
}, [Y, ne]), s.useEffect(() => {
|
|
728
727
|
const n = Array.from(z.current.children), l = n.length;
|
|
729
728
|
if (typeof IntersectionObserver < "u" && l > 0 && B && P !== !1) {
|
|
730
729
|
const c = n[0], u = n[l - 1], b = {
|
|
@@ -744,13 +743,13 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
744
743
|
}, [B, P, Ce, v == null ? void 0 : v.length]), s.useEffect(() => {
|
|
745
744
|
eo(!0);
|
|
746
745
|
}, []), s.useEffect(() => {
|
|
747
|
-
|
|
746
|
+
Y();
|
|
748
747
|
}), s.useEffect(() => {
|
|
749
748
|
Re(We !== L);
|
|
750
749
|
}, [Re, L]), s.useImperativeHandle(h, () => ({
|
|
751
|
-
updateIndicator:
|
|
750
|
+
updateIndicator: Y,
|
|
752
751
|
updateScrollButtons: ne
|
|
753
|
-
}), [
|
|
752
|
+
}), [Y, ne]);
|
|
754
753
|
const [po, fo] = H("indicator", {
|
|
755
754
|
className: j($.indicator, U.className),
|
|
756
755
|
elementType: Ko,
|
|
@@ -777,7 +776,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
777
776
|
selected: c,
|
|
778
777
|
selectionFollowsFocus: de,
|
|
779
778
|
onChange: E,
|
|
780
|
-
textColor:
|
|
779
|
+
textColor: J,
|
|
781
780
|
value: l,
|
|
782
781
|
...re === 1 && k === !1 && !n.props.tabIndex ? {
|
|
783
782
|
tabIndex: 0
|
|
@@ -810,7 +809,7 @@ const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
810
809
|
elementType: Vo,
|
|
811
810
|
externalForwardedProps: {
|
|
812
811
|
...V,
|
|
813
|
-
...
|
|
812
|
+
...Ze,
|
|
814
813
|
component: y
|
|
815
814
|
},
|
|
816
815
|
ownerState: N
|
|
@@ -1020,7 +1019,7 @@ process.env.NODE_ENV !== "production" && (Ge.propTypes = {
|
|
|
1020
1019
|
*/
|
|
1021
1020
|
visibleScrollbar: e.bool
|
|
1022
1021
|
});
|
|
1023
|
-
const
|
|
1022
|
+
const _o = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1024
1023
|
const {
|
|
1025
1024
|
children: a,
|
|
1026
1025
|
...i
|
|
@@ -1030,7 +1029,7 @@ const Yo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
1030
1029
|
const p = s.Children.map(a, (f) => /* @__PURE__ */ s.isValidElement(f) ? /* @__PURE__ */ s.cloneElement(f, {
|
|
1031
1030
|
// SOMEDAY: `Tabs` will set those themselves
|
|
1032
1031
|
"aria-controls": Xe(d, f.props.value),
|
|
1033
|
-
id:
|
|
1032
|
+
id: _e(d, f.props.value)
|
|
1034
1033
|
}) : null);
|
|
1035
1034
|
return /* @__PURE__ */ T(Ge, {
|
|
1036
1035
|
...i,
|
|
@@ -1039,7 +1038,7 @@ const Yo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
1039
1038
|
children: p
|
|
1040
1039
|
});
|
|
1041
1040
|
});
|
|
1042
|
-
process.env.NODE_ENV !== "production" && (
|
|
1041
|
+
process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
1043
1042
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1044
1043
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1045
1044
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1049,17 +1048,17 @@ process.env.NODE_ENV !== "production" && (Yo.propTypes = {
|
|
|
1049
1048
|
*/
|
|
1050
1049
|
children: e.node
|
|
1051
1050
|
});
|
|
1052
|
-
function
|
|
1051
|
+
function Yo(t) {
|
|
1053
1052
|
return ie("MuiTabPanel", t);
|
|
1054
1053
|
}
|
|
1055
|
-
const
|
|
1054
|
+
const Tt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
1056
1055
|
const {
|
|
1057
1056
|
classes: o,
|
|
1058
1057
|
hidden: r
|
|
1059
1058
|
} = t;
|
|
1060
1059
|
return ce({
|
|
1061
1060
|
root: ["root", r && "hidden"]
|
|
1062
|
-
},
|
|
1061
|
+
}, Yo, o);
|
|
1063
1062
|
}, Go = D("div", {
|
|
1064
1063
|
name: "MuiTabPanel",
|
|
1065
1064
|
slot: "Root"
|
|
@@ -1067,7 +1066,7 @@ const gt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
|
1067
1066
|
theme: t
|
|
1068
1067
|
}) => ({
|
|
1069
1068
|
padding: t.spacing(3)
|
|
1070
|
-
})),
|
|
1069
|
+
})), Zo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1071
1070
|
const a = Io({
|
|
1072
1071
|
props: o,
|
|
1073
1072
|
name: "MuiTabPanel"
|
|
@@ -1082,7 +1081,7 @@ const gt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
|
1082
1081
|
}, v = qo(S), m = Ke();
|
|
1083
1082
|
if (m === null)
|
|
1084
1083
|
throw new TypeError("No TabContext provided");
|
|
1085
|
-
const y = Xe(m, p), g =
|
|
1084
|
+
const y = Xe(m, p), g = _e(m, p);
|
|
1086
1085
|
return /* @__PURE__ */ T(Go, {
|
|
1087
1086
|
"aria-labelledby": g,
|
|
1088
1087
|
className: j(v.root, d),
|
|
@@ -1095,7 +1094,7 @@ const gt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
|
1095
1094
|
children: (f || p === m.value) && i
|
|
1096
1095
|
});
|
|
1097
1096
|
});
|
|
1098
|
-
process.env.NODE_ENV !== "production" && (
|
|
1097
|
+
process.env.NODE_ENV !== "production" && (Zo.propTypes = {
|
|
1099
1098
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1100
1099
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1101
1100
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1127,10 +1126,10 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
|
1127
1126
|
*/
|
|
1128
1127
|
value: e.oneOfType([e.number, e.string]).isRequired
|
|
1129
1128
|
});
|
|
1130
|
-
function
|
|
1129
|
+
function Jo(t) {
|
|
1131
1130
|
return ie("MuiTab", t);
|
|
1132
1131
|
}
|
|
1133
|
-
const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]),
|
|
1132
|
+
const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), Qo = (t) => {
|
|
1134
1133
|
const {
|
|
1135
1134
|
classes: o,
|
|
1136
1135
|
textColor: r,
|
|
@@ -1141,18 +1140,18 @@ const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1141
1140
|
selected: f,
|
|
1142
1141
|
disabled: h
|
|
1143
1142
|
} = t, S = {
|
|
1144
|
-
root: ["root", d && p && "labelIcon", `textColor${
|
|
1143
|
+
root: ["root", d && p && "labelIcon", `textColor${ze(r)}`, a && "fullWidth", i && "wrapped", f && "selected", h && "disabled"],
|
|
1145
1144
|
icon: ["iconWrapper", "icon"]
|
|
1146
1145
|
};
|
|
1147
|
-
return ce(S,
|
|
1148
|
-
}, et = D(
|
|
1146
|
+
return ce(S, Jo, o);
|
|
1147
|
+
}, et = D(Ue, {
|
|
1149
1148
|
name: "MuiTab",
|
|
1150
1149
|
slot: "Root",
|
|
1151
1150
|
overridesResolver: (t, o) => {
|
|
1152
1151
|
const {
|
|
1153
1152
|
ownerState: r
|
|
1154
1153
|
} = t;
|
|
1155
|
-
return [o.root, r.label && r.icon && o.labelIcon, o[`textColor${
|
|
1154
|
+
return [o.root, r.label && r.icon && o.labelIcon, o[`textColor${ze(r.textColor)}`], r.fullWidth && o.fullWidth, r.wrapped && o.wrapped, {
|
|
1156
1155
|
[`& .${w.iconWrapper}`]: o.iconWrapper
|
|
1157
1156
|
}, {
|
|
1158
1157
|
[`& .${w.icon}`]: o.icon
|
|
@@ -1317,7 +1316,7 @@ const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1317
1316
|
// eslint-disable-next-line react/prop-types
|
|
1318
1317
|
selectionFollowsFocus: x,
|
|
1319
1318
|
// eslint-disable-next-line react/prop-types
|
|
1320
|
-
textColor:
|
|
1319
|
+
textColor: Z = "inherit",
|
|
1321
1320
|
value: P,
|
|
1322
1321
|
wrapped: de = !1,
|
|
1323
1322
|
...M
|
|
@@ -1330,11 +1329,11 @@ const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1330
1329
|
iconPosition: S,
|
|
1331
1330
|
label: !!m,
|
|
1332
1331
|
fullWidth: f,
|
|
1333
|
-
textColor:
|
|
1332
|
+
textColor: Z,
|
|
1334
1333
|
wrapped: de
|
|
1335
|
-
}, U =
|
|
1334
|
+
}, U = Qo(A), K = h && m && /* @__PURE__ */ s.isValidElement(h) ? /* @__PURE__ */ s.cloneElement(h, {
|
|
1336
1335
|
className: j(U.icon, h.props.className)
|
|
1337
|
-
}) : h,
|
|
1336
|
+
}) : h, J = (O) => {
|
|
1338
1337
|
!E && y && y(O, P), g && g(O);
|
|
1339
1338
|
}, k = (O) => {
|
|
1340
1339
|
x && !E && y && y(O, P), W && W(O);
|
|
@@ -1346,7 +1345,7 @@ const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1346
1345
|
role: "tab",
|
|
1347
1346
|
"aria-selected": E,
|
|
1348
1347
|
disabled: d,
|
|
1349
|
-
onClick:
|
|
1348
|
+
onClick: J,
|
|
1350
1349
|
onFocus: k,
|
|
1351
1350
|
ownerState: A,
|
|
1352
1351
|
tabIndex: E ? 0 : -1,
|
|
@@ -1437,18 +1436,18 @@ process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
|
1437
1436
|
export {
|
|
1438
1437
|
$o as K,
|
|
1439
1438
|
Oo as T,
|
|
1440
|
-
|
|
1441
|
-
|
|
1439
|
+
_o as a,
|
|
1440
|
+
Zo as b,
|
|
1442
1441
|
ot as c,
|
|
1443
1442
|
Ge as d,
|
|
1444
|
-
|
|
1445
|
-
|
|
1443
|
+
_e as e,
|
|
1444
|
+
Yo as f,
|
|
1446
1445
|
Xe as g,
|
|
1447
1446
|
w as h,
|
|
1448
|
-
|
|
1447
|
+
Jo as i,
|
|
1449
1448
|
ye as j,
|
|
1450
1449
|
Fo as k,
|
|
1451
1450
|
ko as l,
|
|
1452
|
-
|
|
1451
|
+
Tt as t,
|
|
1453
1452
|
Ke as u
|
|
1454
1453
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Co=require("react"),e=require("./index-DLnSn8GT.cjs"),P=require("react/jsx-runtime"),T=require("./identifier-DBvccNCw.cjs"),Le=require("./index-CrINMjCH.cjs"),Bo=require("./useTheme-DkiCyF-9.cjs"),v=require("./DefaultPropsProvider-BFTLy05-.cjs"),ye=require("./memoTheme-Dv-rDqFz.cjs"),se=require("./useEventCallback-BxpcFap0.cjs"),ze=require("./debounce-DpCj7ugL.cjs"),qe=require("./ownerWindow-DDHucZi0.cjs"),F=require("./useSlot-ONna5RyM.cjs"),ae=require("./useSlotProps-CtYqUyy1.cjs"),Ae=require("./createSvgIcon-BJRigbha.cjs"),Ue=require("./ButtonBase-DPIkh47Q.cjs"),Eo=require("./ownerDocument-4MViGo3k.cjs"),Io=require("./refType-B_IEJm4x.cjs"),Oo=require("./useThemeProps-CnZ-QgwI.cjs"),Mo=require("./unsupportedProp-Bn6XWqwH.cjs");function Ro(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,l.get?l:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const a=Ro(Co),be=a.createContext(null);process.env.NODE_ENV!=="production"&&(be.displayName="TabContext");function No(){const[t,o]=a.useState(null);return a.useEffect(()=>{o(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),t}function Fe(t){const{children:o,value:n}=t,l=No(),c=a.useMemo(()=>({idPrefix:l,value:n}),[l,n]);return P.jsx(be.Provider,{value:c,children:o})}process.env.NODE_ENV!=="production"&&(Fe.propTypes={children:e.PropTypes.node,value:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).isRequired});function Te(){return a.useContext(be)}function Pe(t,o){const{idPrefix:n}=t;return n===null?null:`${t.idPrefix}-P-${o}`}function he(t,o){const{idPrefix:n}=t;return n===null?null:`${t.idPrefix}-T-${o}`}function jo(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function Do(t,o,n,l={},c=()=>{}){const{ease:p=jo,duration:d=300}=l;let f=null;const b=o[t];let S=!1;const g=()=>{S=!0},h=m=>{if(S){c(new Error("Animation cancelled"));return}f===null&&(f=m);const w=Math.min(1,(m-f)/d);if(o[t]=p(w)*(n-b)+b,w>=1){requestAnimationFrame(()=>{c(null)});return}requestAnimationFrame(h)};return b===n?(c(new Error("Element already at target position")),g):(requestAnimationFrame(h),g)}const ko={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ve(t){const{onChange:o,...n}=t,l=a.useRef(),c=a.useRef(null),p=()=>{l.current=c.current.offsetHeight-c.current.clientHeight};return se.useEnhancedEffect(()=>{const d=ze.debounce(()=>{const b=l.current;p(),b!==l.current&&o(l.current)}),f=qe.ownerWindow(c.current);return f.addEventListener("resize",d),()=>{d.clear(),f.removeEventListener("resize",d)}},[o]),a.useEffect(()=>{p(),o(l.current)},[o]),P.jsx("div",{style:ko,...n,ref:c})}process.env.NODE_ENV!=="production"&&(Ve.propTypes={onChange:e.PropTypes.func.isRequired});const He=Ae.createSvgIcon(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),_e=Ae.createSvgIcon(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function $o(t){return T.generateUtilityClass("MuiTabScrollButton",t)}const Wo=T.generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Lo=t=>{const{classes:o,orientation:n,disabled:l}=t,c={root:["root",n,l&&"disabled"]};return v.composeClasses(c,$o,o)},zo=v.styled(Ue.ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,n.orientation&&o[n.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)"}}}]}),Ke=a.forwardRef(function(o,n){const l=v.useDefaultProps({props:o,name:"MuiTabScrollButton"}),{className:c,slots:p={},slotProps:d={},direction:f,orientation:b,disabled:S,...g}=l,h=Le.useRtl(),m={isRtl:h,...l},w=Lo(m),W=p.StartScrollButtonIcon??He,I=p.EndScrollButtonIcon??_e,C=ae.useSlotProps({elementType:W,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),G=ae.useSlotProps({elementType:I,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return P.jsx(zo,{component:"div",className:T.clsx(w.root,c),ref:n,role:null,ownerState:m,tabIndex:null,...g,style:{...g.style,...b==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:f==="left"?P.jsx(W,{...C}):P.jsx(I,{...G})})});process.env.NODE_ENV!=="production"&&(Ke.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 Xe(t){return T.generateUtilityClass("MuiTabs",t)}const le=T.generateUtilityClasses("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),De=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,ke=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,ne=(t,o,n)=>{let l=!1,c=n(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=n(t,c);else{c.focus();return}}},qo=t=>{const{vertical:o,fixed:n,hideScrollbar:l,scrollableX:c,scrollableY:p,centered:d,scrollButtonsHideMobile:f,classes:b}=t,S={root:["root",o&&"vertical"],scroller:["scroller",n&&"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 v.composeClasses(S,Xe,b)},Ao=v.styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[{[`& .${le.scrollButtons}`]:o.scrollButtons},{[`& .${le.scrollButtons}`]:n.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,n.vertical&&o.vertical]}})(ye.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:{[`& .${le.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Uo=v.styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.scroller,n.fixed&&o.fixed,n.hideScrollbar&&o.hideScrollbar,n.scrollableX&&o.scrollableX,n.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"}}]}),Fo=v.styled("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.list,o.flexContainer,n.vertical&&o.flexContainerVertical,n.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Vo=v.styled("span",{name:"MuiTabs",slot:"Indicator"})(ye.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}}]}))),Ho=v.styled(Ve)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$e={};let We=!1;const Se=a.forwardRef(function(o,n){const l=v.useDefaultProps({props:o,name:"MuiTabs"}),c=Bo.useTheme(),p=Le.useRtl(),{"aria-label":d,"aria-labelledby":f,action:b,centered:S=!1,children:g,className:h,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:W="primary",onChange:I,orientation:C="horizontal",ScrollButtonComponent:G,scrollButtons:M="auto",selectionFollowsFocus:ce,slots:R={},slotProps:A={},TabIndicatorProps:V={},TabScrollButtonProps:H={},textColor:J="primary",value:k,variant:N="standard",visibleScrollbar:ie=!1,...eo}=l,B=N==="scrollable",E=C==="vertical",_=E?"scrollTop":"scrollLeft",Q=E?"top":"left",Z=E?"bottom":"right",pe=E?"clientHeight":"clientWidth",K=E?"height":"width",j={...l,component:m,allowScrollButtonsMobile:w,indicatorColor:W,orientation:C,vertical:E,scrollButtons:M,textColor:J,variant:N,visibleScrollbar:ie,fixed:!B,hideScrollbar:B&&!ie,scrollableX:B&&!E,scrollableY:B&&E,centered:S&&!B,scrollButtonsHideMobile:!w},$=qo(j),oo=ae.useSlotProps({elementType:R.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:j}),to=ae.useSlotProps({elementType:R.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:j});process.env.NODE_ENV!=="production"&&S&&B&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[me,ro]=a.useState(!1),[L,ve]=a.useState($e),[ge,no]=a.useState(!1),[xe,so]=a.useState(!1),[we,lo]=a.useState(!1),[Ce,ao]=a.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,D=a.useRef(null),z=a.useRef(null),U={slots:R,slotProps:{indicator:V,scrollButton:H,...A}},Be=()=>{const r=D.current;let s;if(r){const u=r.getBoundingClientRect();s={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&&k!==!1){const u=z.current.children;if(u.length>0){const y=u[ee.get(k)];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 "${k}".`,ee.keys?`You can provide one of the following values: ${Array.from(ee.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&&s.clientWidth!==0&&(s=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${k}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
3
|
+
`)),We=!0)}}return{tabsMeta:s,tabMeta:i}},X=se.useEventCallback(()=>{const{tabsMeta:r,tabMeta:s}=Be();let i=0,u;E?(u="top",s&&r&&(i=s.top-r.top+r.scrollTop)):(u=p?"right":"left",s&&r&&(i=(p?-1:1)*(s[u]-r[u]+r.scrollLeft)));const y={[u]:i,[K]:s?s[K]:0};if(typeof L[u]!="number"||typeof L[K]!="number")ve(y);else{const O=Math.abs(L[u]-y[u]),q=Math.abs(L[K]-y[K]);(O>=1||q>=1)&&ve(y)}}),ue=(r,{animation:s=!0}={})=>{s?Do(_,D.current,r,{duration:c.transitions.duration.standard}):D.current[_]=r},Ee=r=>{let s=D.current[_];E?s+=r:s+=r*(p?-1:1),ue(s)},Ie=()=>{const r=D.current[pe];let s=0;const i=Array.from(z.current.children);for(let u=0;u<i.length;u+=1){const y=i[u];if(s+y[pe]>r){u===0&&(s=r);break}s+=y[pe]}return s},co=()=>{Ee(-1*Ie())},io=()=>{Ee(Ie())},[po,{onChange:oe,...uo}]=F.useSlot("scrollbar",{className:T.clsx($.scrollableX,$.hideScrollbar),elementType:Ho,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:j}),fo=a.useCallback(r=>{oe==null||oe(r),ao({overflow:null,scrollbarWidth:r})},[oe]),[Oe,Me]=F.useSlot("scrollButtons",{className:T.clsx($.scrollButtons,H.className),elementType:Ke,externalForwardedProps:U,ownerState:j,additionalProps:{orientation:C,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:oo,endScrollButtonIcon:to}}}),yo=()=>{const r={};r.scrollbarSizeListener=B?P.jsx(po,{...uo,onChange:fo}):null;const i=B&&(M==="auto"&&(ge||xe)||M===!0);return r.scrollButtonStart=i?P.jsx(Oe,{direction:p?"right":"left",onClick:co,disabled:!ge,...Me}):null,r.scrollButtonEnd=i?P.jsx(Oe,{direction:p?"left":"right",onClick:io,disabled:!xe,...Me}):null,r},Re=se.useEventCallback(r=>{const{tabsMeta:s,tabMeta:i}=Be();if(!(!i||!s)){if(i[Q]<s[Q]){const u=s[_]+(i[Q]-s[Q]);ue(u,{animation:r})}else if(i[Z]>s[Z]){const u=s[_]+(i[Z]-s[Z]);ue(u,{animation:r})}}}),te=se.useEventCallback(()=>{B&&M!==!1&&lo(!we)});a.useEffect(()=>{const r=ze.debounce(()=>{D.current&&X()});let s;const i=O=>{O.forEach(q=>{q.removedNodes.forEach(Y=>{s==null||s.unobserve(Y)}),q.addedNodes.forEach(Y=>{s==null||s.observe(Y)})}),r(),te()},u=qe.ownerWindow(D.current);u.addEventListener("resize",r);let y;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(r),Array.from(z.current.children).forEach(O=>{s.observe(O)})),typeof MutationObserver<"u"&&(y=new MutationObserver(i),y.observe(z.current,{childList:!0})),()=>{r.clear(),u.removeEventListener("resize",r),y==null||y.disconnect(),s==null||s.disconnect()}},[X,te]),a.useEffect(()=>{const r=Array.from(z.current.children),s=r.length;if(typeof IntersectionObserver<"u"&&s>0&&B&&M!==!1){const i=r[0],u=r[s-1],y={root:D.current,threshold:.99},O=fe=>{no(!fe[0].isIntersecting)},q=new IntersectionObserver(O,y);q.observe(i);const Y=fe=>{so(!fe[0].isIntersecting)},je=new IntersectionObserver(Y,y);return je.observe(u),()=>{q.disconnect(),je.disconnect()}}},[B,M,we,g==null?void 0:g.length]),a.useEffect(()=>{ro(!0)},[]),a.useEffect(()=>{X()}),a.useEffect(()=>{Re($e!==L)},[Re,L]),a.useImperativeHandle(b,()=>({updateIndicator:X,updateScrollButtons:te}),[X,te]);const[bo,To]=F.useSlot("indicator",{className:T.clsx($.indicator,V.className),elementType:Vo,externalForwardedProps:U,ownerState:j,additionalProps:{style:L}}),Ne=P.jsx(bo,{...To});let re=0;const Po=a.Children.map(g,r=>{if(!a.isValidElement(r))return null;process.env.NODE_ENV!=="production"&&T.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 s=r.props.value===void 0?re:r.props.value;ee.set(s,re);const i=s===k;return re+=1,a.cloneElement(r,{fullWidth:N==="fullWidth",indicator:i&&!me&&Ne,selected:i,selectionFollowsFocus:ce,onChange:I,textColor:J,value:s,...re===1&&k===!1&&!r.props.tabIndex?{tabIndex:0}:{}})}),ho=r=>{if(r.altKey||r.shiftKey||r.ctrlKey||r.metaKey)return;const s=z.current,i=Eo.ownerDocument(s).activeElement;if(i.getAttribute("role")!=="tab")return;let y=C==="horizontal"?"ArrowLeft":"ArrowUp",O=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&p&&(y="ArrowRight",O="ArrowLeft"),r.key){case y:r.preventDefault(),ne(s,i,ke);break;case O:r.preventDefault(),ne(s,i,De);break;case"Home":r.preventDefault(),ne(s,null,De);break;case"End":r.preventDefault(),ne(s,null,ke);break}},de=yo(),[So,mo]=F.useSlot("root",{ref:n,className:T.clsx($.root,h),elementType:Ao,externalForwardedProps:{...U,...eo,component:m},ownerState:j}),[vo,go]=F.useSlot("scroller",{ref:D,className:$.scroller,elementType:Uo,externalForwardedProps:U,ownerState:j,additionalProps:{style:{overflow:Ce.overflow,[E?`margin${p?"Left":"Right"}`:"marginBottom"]:ie?void 0:-Ce.scrollbarWidth}}}),[xo,wo]=F.useSlot("list",{ref:z,className:T.clsx($.list,$.flexContainer),elementType:Fo,externalForwardedProps:U,ownerState:j,getSlotProps:r=>({...r,onKeyDown:s=>{var i;ho(s),(i=r.onKeyDown)==null||i.call(r,s)}})});return P.jsxs(So,{...mo,children:[de.scrollButtonStart,de.scrollbarSizeListener,P.jsxs(vo,{...go,children:[P.jsx(xo,{"aria-label":d,"aria-labelledby":f,"aria-orientation":C==="vertical"?"vertical":null,role:"tablist",...wo,children:Po}),me&&Ne]}),de.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(Se.propTypes={action:Io.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 Ye=a.forwardRef(function(o,n){const{children:l,...c}=o,p=Te();if(p===null)throw new TypeError("No TabContext provided");const d=a.Children.map(l,f=>a.isValidElement(f)?a.cloneElement(f,{"aria-controls":Pe(p,f.props.value),id:he(p,f.props.value)}):null);return P.jsx(Se,{...c,ref:n,value:p.value,children:d})});process.env.NODE_ENV!=="production"&&(Ye.propTypes={children:e.PropTypes.node});function Ge(t){return T.generateUtilityClass("MuiTabPanel",t)}const _o=T.generateUtilityClasses("MuiTabPanel",["root","hidden"]),Ko=t=>{const{classes:o,hidden:n}=t,l={root:["root",n&&"hidden"]};return v.composeClasses(l,Ge,o)},Xo=v.styled("div",{name:"MuiTabPanel",slot:"Root"})(({theme:t})=>({padding:t.spacing(3)})),Je=a.forwardRef(function(o,n){const l=Oo.useThemeProps({props:o,name:"MuiTabPanel"}),{children:c,className:p,value:d,keepMounted:f=!1,...b}=l,S={...l},g=Ko(S),h=Te();if(h===null)throw new TypeError("No TabContext provided");const m=Pe(h,d),w=he(h,d);return P.jsx(Xo,{"aria-labelledby":w,className:T.clsx(g.root,p),hidden:d!==h.value,id:m,ref:n,role:"tabpanel",ownerState:S,...b,children:(f||d===h.value)&&c})});process.env.NODE_ENV!=="production"&&(Je.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 Qe(t){return T.generateUtilityClass("MuiTab",t)}const x=T.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Yo=t=>{const{classes:o,textColor:n,fullWidth:l,wrapped:c,icon:p,label:d,selected:f,disabled:b}=t,S={root:["root",p&&d&&"labelIcon",`textColor${T.capitalize(n)}`,l&&"fullWidth",c&&"wrapped",f&&"selected",b&&"disabled"],icon:["iconWrapper","icon"]};return v.composeClasses(S,Qe,o)},Go=v.styled(Ue.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,n.label&&n.icon&&o.labelIcon,o[`textColor${T.capitalize(n.textColor)}`],n.fullWidth&&o.fullWidth,n.wrapped&&o.wrapped,{[`& .${x.iconWrapper}`]:o.iconWrapper},{[`& .${x.icon}`]:o.icon}]}})(ye.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:n})=>o.icon&&o.label&&n==="top",style:{[`& > .${x.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:n})=>o.icon&&o.label&&n==="bottom",style:{[`& > .${x.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:n})=>o.icon&&o.label&&n==="start",style:{[`& > .${x.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:n})=>o.icon&&o.label&&n==="end",style:{[`& > .${x.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${x.selected}`]:{opacity:1},[`&.${x.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${x.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${x.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${x.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${x.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)}}]}))),Ze=a.forwardRef(function(o,n){const l=v.useDefaultProps({props:o,name:"MuiTab"}),{className:c,disabled:p=!1,disableFocusRipple:d=!1,fullWidth:f,icon:b,iconPosition:S="top",indicator:g,label:h,onChange:m,onClick:w,onFocus:W,selected:I,selectionFollowsFocus:C,textColor:G="inherit",value:M,wrapped:ce=!1,...R}=l,A={...l,disabled:p,disableFocusRipple:d,selected:I,icon:!!b,iconPosition:S,label:!!h,fullWidth:f,textColor:G,wrapped:ce},V=Yo(A),H=b&&h&&a.isValidElement(b)?a.cloneElement(b,{className:T.clsx(V.icon,b.props.className)}):b,J=N=>{!I&&m&&m(N,M),w&&w(N)},k=N=>{C&&!I&&m&&m(N,M),W&&W(N)};return P.jsxs(Go,{focusRipple:!d,className:T.clsx(V.root,c),ref:n,role:"tab","aria-selected":I,disabled:p,onClick:J,onFocus:k,ownerState:A,tabIndex:I?0:-1,...R,children:[S==="top"||S==="start"?P.jsxs(a.Fragment,{children:[H,h]}):P.jsxs(a.Fragment,{children:[h,H]}),g]})});process.env.NODE_ENV!=="production"&&(Ze.propTypes={children:Mo.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=He;exports.KeyboardArrowRight=_e;exports.Tab=Ze;exports.TabContext=Fe;exports.TabList=Ye;exports.TabPanel=Je;exports.Tabs=Se;exports.getPanelId=Pe;exports.getTabId=he;exports.getTabPanelUtilityClass=Ge;exports.getTabUtilityClass=Qe;exports.getTabsUtilityClass=Xe;exports.tabClasses=x;exports.tabPanelClasses=_o;exports.tabsClasses=le;exports.useTabContext=Te;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const ge=require("react"),e=require("./index-DLnSn8GT.cjs"),n=require("./identifier-DBvccNCw.cjs"),y=require("./useSlot-ONna5RyM.cjs"),c=require("react/jsx-runtime"),P=require("./DefaultPropsProvider-BFTLy05-.cjs"),Fe=require("./useId-DNXtOFeX.cjs"),F=require("./Select-CRVPbesC.cjs"),he=require("./formControlState-CuX6WjAX.cjs"),Oe=require("./useFormControl-haP0iPhl.cjs"),Ce=require("./memoTheme-Dv-rDqFz.cjs"),ve=require("./FormLabel-BLySmpkL.cjs"),Se=require("./refType-B_IEJm4x.cjs");function je(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const k=je(ge);function W(o){return n.generateUtilityClass("MuiFormHelperText",o)}const z=n.generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var B;const Ie=o=>{const{classes:r,contained:s,size:t,disabled:d,error:T,filled:l,focused:h,required:f}=o,O={root:["root",d&&"disabled",T&&"error",t&&`size${n.capitalize(t)}`,s&&"contained",h&&"focused",l&&"filled",f&&"required"]};return P.composeClasses(O,W,r)},qe=P.styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.size&&r[`size${n.capitalize(s.size)}`],s.contained&&r.contained,s.filled&&r.filled]}})(Ce.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,...o.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${z.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${z.error}`]:{color:(o.vars||o).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),N=k.forwardRef(function(r,s){const t=P.useDefaultProps({props:r,name:"MuiFormHelperText"}),{children:d,className:T,component:l="p",disabled:h,error:f,filled:O,focused:j,margin:I,required:M,variant:C,...m}=t,q=Oe.useFormControl(),p=he.formControlState({props:t,muiFormControl:q,states:["variant","size","disabled","error","filled","focused","required"]}),b={...t,component:l,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete b.ownerState;const w=Ie(b);return c.jsx(qe,{as:l,className:n.clsx(w.root,T),ref:s,...m,ownerState:b,children:d===" "?B||(B=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):d})});process.env.NODE_ENV!=="production"&&(N.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,filled:e.PropTypes.bool,focused:e.PropTypes.bool,margin:e.PropTypes.oneOf(["dense"]),required:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["filled","outlined","standard"]),e.PropTypes.string])});function A(o){return n.generateUtilityClass("MuiTextField",o)}const we=n.generateUtilityClasses("MuiTextField",["root"]),He={standard:F.Input,filled:F.FilledInput,outlined:F.OutlinedInput},Re=o=>{const{classes:r}=o,s={root:["root"]};return P.composeClasses(s,A,r)},Le=P.styled(ve.FormControl,{name:"MuiTextField",slot:"Root"})({}),G=k.forwardRef(function(r,s){const t=P.useDefaultProps({props:r,name:"MuiTextField"}),{autoComplete:d,autoFocus:T=!1,children:l,className:h,color:f="primary",defaultValue:O,disabled:j=!1,error:I=!1,FormHelperTextProps:M,fullWidth:C=!1,helperText:m,id:q,InputLabelProps:p,inputProps:b,InputProps:w,inputRef:J,label:x,maxRows:K,minRows:Q,multiline:U=!1,name:X,onBlur:Y,onChange:Z,onFocus:ee,placeholder:oe,required:D=!1,rows:re,select:v=!1,SelectProps:H,slots:E={},slotProps:se={},type:te,value:_,variant:S="outlined",...pe}=t,i={...t,autoFocus:T,color:f,disabled:j,error:I,fullWidth:C,multiline:U,required:D,select:v,variant:S},ne=Re(i);process.env.NODE_ENV!=="production"&&v&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const a=Fe.useId(q),R=m&&a?`${a}-helper-text`:void 0,$=x&&a?`${a}-label`:void 0,le=He[S],u={slots:E,slotProps:{input:w,inputLabel:p,htmlInput:b,formHelperText:M,select:H,...se}},g={},L=u.slotProps.inputLabel;S==="outlined"&&(L&&typeof L.shrink<"u"&&(g.notched=L.shrink),g.label=x),v&&((!H||!H.native)&&(g.id=void 0),g["aria-describedby"]=void 0);const[ie,ae]=y.useSlot("root",{elementType:Le,shouldForwardComponentProp:!0,externalForwardedProps:{...u,...pe},ownerState:i,className:n.clsx(ne.root,h),ref:s,additionalProps:{disabled:j,error:I,fullWidth:C,required:D,color:f,variant:S}}),[ue,ce]=y.useSlot("input",{elementType:le,externalForwardedProps:u,additionalProps:g,ownerState:i}),[de,Te]=y.useSlot("inputLabel",{elementType:F.InputLabel,externalForwardedProps:u,ownerState:i}),[ye,Pe]=y.useSlot("htmlInput",{elementType:"input",externalForwardedProps:u,ownerState:i}),[fe,me]=y.useSlot("formHelperText",{elementType:N,externalForwardedProps:u,ownerState:i}),[be,xe]=y.useSlot("select",{elementType:F.Select,externalForwardedProps:u,ownerState:i}),V=c.jsx(ue,{"aria-describedby":R,autoComplete:d,autoFocus:T,defaultValue:O,fullWidth:C,multiline:U,name:X,rows:re,maxRows:K,minRows:Q,type:te,value:_,id:a,inputRef:J,onBlur:Y,onChange:Z,onFocus:ee,placeholder:oe,inputProps:Pe,slots:{input:E.htmlInput?ye:void 0},...ce});return c.jsxs(ie,{...ae,children:[x!=null&&x!==""&&c.jsx(de,{htmlFor:a,id:$,...Te,children:x}),v?c.jsx(be,{"aria-describedby":R,id:a,labelId:$,value:_,input:V,...xe,children:l}):V,m&&c.jsx(fe,{id:R,...me,children:m})]})});process.env.NODE_ENV!=="production"&&(G.propTypes={autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,error:e.PropTypes.bool,FormHelperTextProps:e.PropTypes.object,fullWidth:e.PropTypes.bool,helperText:e.PropTypes.node,id:e.PropTypes.string,InputLabelProps:e.PropTypes.object,inputProps:e.PropTypes.object,InputProps:e.PropTypes.object,inputRef:Se.refType,label:e.PropTypes.node,margin:e.PropTypes.oneOf(["dense","none","normal"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,placeholder:e.PropTypes.string,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),select:e.PropTypes.bool,SelectProps:e.PropTypes.object,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({formHelperText:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),htmlInput:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),inputLabel:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),select:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({formHelperText:e.PropTypes.elementType,htmlInput:e.PropTypes.elementType,input:e.PropTypes.elementType,inputLabel:e.PropTypes.elementType,root:e.PropTypes.elementType,select:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.string,value:e.PropTypes.any,variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.FormHelperText=N;exports.TextField=G;exports.formHelperTextClasses=z;exports.getFormHelperTextUtilityClasses=W;exports.getTextFieldUtilityClass=A;exports.textFieldClasses=we;
|