@cgi-learning-hub/ui 1.6.0-dev.1750082787 → 1.6.0-dev.1750084198
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-BhLIlUBu.js +368 -0
- package/dist/Alert-DPSZppEy.cjs +1 -0
- package/dist/Alert-OeEy_IGc.js +94 -0
- package/dist/Alert-rPyl-bqs.cjs +1 -0
- package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
- package/dist/{Autocomplete-BVy1WjPe.js → Autocomplete-WZw_zCjA.js} +366 -368
- package/dist/{Backdrop-BSLhsv85.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/{Badge-D9BY47ln.js → Badge-Bwcsnbsa.js} +107 -99
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-DjbKEblU.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-WTdCmXYm.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Cog6rzwh.js → ButtonBase-6TF6t2SP.js} +21 -22
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-rIQGzMEo.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-DUMc8-SB.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-DUN-Fb_U.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DnqwyXnx.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-BFNngmx-.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-BD-KPNgj.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-BvDxY6j7.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-e-a3RxlE.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
- package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
- package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
- package/dist/DatePicker-CH8XRum0.cjs +16 -0
- package/dist/DatePicker-DasS2wq6.js +10663 -0
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
- package/dist/{DefaultPropsProvider-CRQ3Gr22.js → DefaultPropsProvider-DqazQPtr.js} +20 -20
- package/dist/{Delete-Cy45hwCy.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-fIZ9JoWy.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-sYVRMluM.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-Bnuj13Sv.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-BT0ckfTq.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-Bsr4YOx4.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-BvPvb5St.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-cn5kD2Zm.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-C_NeUysJ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/{Grid-CpuW2Xrl.js → Grid-DFk-4jnZ.js} +75 -83
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-DrWDr0WD.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-ZOYYBKrY.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-mPJEEW62.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-wf6Sq2-d.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-CPIGW37d.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-4Tnjo8WV.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-CeosJHtu.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/{ListItemText-BlTklQGT.js → ListItemText-qfdqJP77.js} +9 -9
- package/dist/{Menu-CtyhzSeU.js → Menu-9BK8jmzW.js} +101 -106
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-Cpp55CvO.js → MenuItem-C8nduSzJ.js} +7 -7
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-WaX5c2ks.js → Modal-D3Q9vEAI.js} +52 -57
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-B37dOc0h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DcA_LRP8.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/{Paper-yeP8q4RO.js → Paper-IQckggbn.js} +5 -5
- package/dist/{Popper-IzGPRFl_.js → Popper-CfFLBZ7-.js} +5 -6
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-DTB-35pe.js → Portal-BlK6ttxt.js} +4 -4
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-DQq7Mj29.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-D-KO9Ylf.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-CHo4cwj1.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-B_iq0mhq.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/{Stepper-Co2LRzY9.js → Stepper-DE2l91K0.js} +92 -98
- package/dist/{Switch-B0HwIwIM.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-DrxqSNew.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-fionqt7a.js → Tab-Ckr6Bn59.js} +95 -98
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-CbcJBZMa.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{ToggleButtonGroup-C2VnPpq_.js → ToggleButtonGroup-DhtAoGtM.js} +2916 -2878
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-KsV9NFU9.js → Tooltip-KkgNQm4r.js} +26 -28
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-CYUXO-Vm.js → Typography-Dy8r_tT2.js} +6 -7
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +5 -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.d.ts +1 -2
- 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 +5 -7
- package/dist/components/TreeView/TreeView.es.js +1207 -1452
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/types.d.ts +5 -5
- 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 +13 -13
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BWru5SCV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Brli9oB2.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-DPYS2LeU.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-BbL5PyhJ.js → identifier-PWESmBq6.js} +581 -611
- package/dist/{index-Blgqpey-.js → index-8G2jvqZ8.js} +4 -4
- package/dist/index-D3lMWU76.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +44 -44
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-x9hDn3Oc.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BvyhrtrO.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-C2ZnVSVg.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-Cy3pJiFs.js → mergeSlotProps-ChAye7iz.js} +1 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
- package/dist/styled-C7gyRDlj.js +5 -0
- package/dist/styled-Cax0O00h.cjs +1 -0
- package/dist/useControlled-QrrYcKxm.cjs +3 -0
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useSlot-BzdKwDQ5.js +125 -0
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/useSlotProps-CrQGQLdL.cjs +1 -0
- package/dist/{useSlotProps-Bvolo5qn.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-DlWqSSQs.js → useTheme--i9fxE_A.js} +1 -1
- package/dist/useTheme-BLMJDSsv.cjs +1 -0
- package/dist/useTheme-CooC_6Ep.cjs +1 -0
- package/dist/useTheme-XJ9sFCWX.js +11 -0
- package/dist/{useThemeProps-CHx0N1SM.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-Bf2NCpA_.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
- package/dist/useThemeProps-CQ9rZe7g.js +17 -0
- package/package.json +11 -11
- package/dist/Alert-DdmE0EMo.js +0 -457
- package/dist/Alert-p6jIgCWU.cjs +0 -1
- package/dist/Autocomplete-v4ZcHulv.cjs +0 -6
- package/dist/Backdrop-0xfsnuri.cjs +0 -1
- package/dist/Badge-Dpxa8BPA.cjs +0 -1
- package/dist/Box-xgRKDOV1.cjs +0 -1
- package/dist/Button-qSgmSSw2.cjs +0 -1
- package/dist/ButtonBase-CsJxPLAx.cjs +0 -74
- package/dist/CardContent-BTTU3lDd.cjs +0 -1
- package/dist/Checkbox-jecO0f9-.cjs +0 -1
- package/dist/Chip-CkonlDiW.cjs +0 -1
- package/dist/CircularProgress-Bvcr-mus.cjs +0 -28
- package/dist/CustomTreeItem-Bo6LVL2g.cjs +0 -3
- package/dist/CustomTreeItem-D-Fd2rf4.js +0 -1342
- package/dist/DatePicker-CTAJnIvu.js +0 -10255
- package/dist/DatePicker-DDYXqvgA.cjs +0 -14
- package/dist/DefaultPropsProvider-CsTuCVNC.cjs +0 -1
- package/dist/Dialog-ByiFxqo3.cjs +0 -1
- package/dist/DialogContent-0WzVi_CB.cjs +0 -1
- package/dist/DialogTitle-Dq5hCek2.cjs +0 -1
- package/dist/Divider-DPIWZuaX.cjs +0 -1
- package/dist/FormLabel-BPReGp6x.cjs +0 -2
- package/dist/Grid-D0L0VF_j.cjs +0 -2
- package/dist/Grow-CxV2Td_c.cjs +0 -1
- package/dist/IconButton-BzvVYvTv.cjs +0 -2
- package/dist/InputAdornment-CiGypDyN.cjs +0 -1
- package/dist/InputBase-D7cWCjsM.cjs +0 -3
- package/dist/Link-6MI2s97g.cjs +0 -1
- package/dist/List-DNAAO5Md.cjs +0 -1
- package/dist/ListItem-DNNO5emo.cjs +0 -1
- package/dist/ListItemText-DTJBvetJ.cjs +0 -1
- package/dist/Menu-BD7yr5c5.cjs +0 -7
- package/dist/MenuItem-BnxRQgzx.cjs +0 -1
- package/dist/Modal-Dpz2n_rl.cjs +0 -2
- package/dist/Paper-Dy4nClba.cjs +0 -2
- package/dist/Popper-Dx7Ddmig.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-TCZTDRDq.cjs +0 -1
- package/dist/RadioGroup-BlhT0LTh.cjs +0 -1
- package/dist/Select-YiRsvCtO.cjs +0 -3
- package/dist/Stack-CiqSL-ss.cjs +0 -1
- package/dist/Stepper-Bp48LpKw.cjs +0 -1
- package/dist/Switch-CmP4YhdJ.cjs +0 -1
- package/dist/SwitchBase-D-Pz73oW.cjs +0 -1
- package/dist/Tab-DaJQbLHr.cjs +0 -4
- package/dist/TextField-BD5v4wWW.cjs +0 -1
- package/dist/ToggleButtonGroup-cWPBztiH.cjs +0 -138
- package/dist/Tooltip-B-G3ZA40.cjs +0 -4
- package/dist/Typography-CTc5xI5k.cjs +0 -1
- package/dist/capitalize-3mO2QYxZ.js +0 -9
- package/dist/capitalize-jkeaHv-a.cjs +0 -1
- package/dist/composeClasses-6Jh42fnW.cjs +0 -1
- package/dist/composeClasses-PwLhKFRx.js +0 -51
- package/dist/createSvgIcon-r-LuM8rr.cjs +0 -1
- package/dist/dividerClasses-MIs6pQ1h.cjs +0 -1
- package/dist/extendSxProp-DjoHuUqk.cjs +0 -1
- package/dist/generateUtilityClasses-CEM-EnA0.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-dnUj5rrV.cjs +0 -1
- package/dist/integerPropType-Ched4o4e.cjs +0 -1
- package/dist/integerPropType-D-nm5Xmm.js +0 -31
- package/dist/listItemTextClasses-BbeGMaIS.cjs +0 -1
- package/dist/mergeSlotProps-DTB2qS-_.cjs +0 -1
- package/dist/resolveComponentProps-CUWj-pue.cjs +0 -1
- package/dist/resolveComponentProps-DBhzJW60.js +0 -80
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-CVpYSDNX.cjs +0 -1
- package/dist/useSlot-PbukIIii.js +0 -48
- package/dist/useSlotProps-DOS62OUK.cjs +0 -1
- package/dist/useTheme-B0omzE6M.js +0 -11
- package/dist/useTheme-CwVFTV8w.cjs +0 -1
- package/dist/useTheme-zxjGe7nF.cjs +0 -1
- package/dist/useThemeProps-Bel8apgw.js +0 -17
- package/dist/useThemeProps-C4zuxIb5.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Co=require("react"),e=require("./index-DLnSn8GT.cjs"),P=require("react/jsx-runtime"),T=require("./identifier-BoZelETM.cjs"),Le=require("./index-CrINMjCH.cjs"),Bo=require("./useTheme-CooC_6Ep.cjs"),v=require("./DefaultPropsProvider-Cnf49AIv.cjs"),ye=require("./memoTheme-BKfsJx_F.cjs"),se=require("./useEventCallback-BxpcFap0.cjs"),ze=require("./debounce-DpCj7ugL.cjs"),qe=require("./ownerWindow-DDHucZi0.cjs"),F=require("./useSlot-C2FjoUpF.cjs"),ae=require("./useSlotProps-CrQGQLdL.cjs"),Ae=require("./createSvgIcon-IET9soda.cjs"),Ue=require("./ButtonBase-Dp6sf_dP.cjs"),Eo=require("./ownerDocument-4MViGo3k.cjs"),Io=require("./refType-B_IEJm4x.cjs"),Oo=require("./useThemeProps-C1A3rnbh.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;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as V from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as B, G as D, H as _ } from "./
|
|
4
|
-
import { u as c } from "./useSlot-
|
|
3
|
+
import { F as B, G as D, H as _, K as W } from "./identifier-PWESmBq6.js";
|
|
4
|
+
import { u as c } from "./useSlot-BzdKwDQ5.js";
|
|
5
5
|
import { jsx as m, jsxs as Fe } from "react/jsx-runtime";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as k, s as A, c as G } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
7
7
|
import { u as ge } from "./useId-CK6Kn3Tn.js";
|
|
8
|
-
import { O as
|
|
9
|
-
import { f as
|
|
10
|
-
import { u as
|
|
11
|
-
import { m as
|
|
12
|
-
import {
|
|
13
|
-
import { F as je } from "./FormLabel-C_NeUysJ.js";
|
|
8
|
+
import { O as Oe, F as ve, I as Ie, a as we, S as Ce } from "./Select-CpNF3a57.js";
|
|
9
|
+
import { f as Se } from "./formControlState-vgaj2ksH.js";
|
|
10
|
+
import { u as He } from "./useFormControl-CatNKXAi.js";
|
|
11
|
+
import { m as Re } from "./memoTheme-DAFDflPY.js";
|
|
12
|
+
import { F as je } from "./FormLabel-B3WAnPGP.js";
|
|
14
13
|
import { r as Le } from "./refType-Dp7CJc86.js";
|
|
15
14
|
function ze(o) {
|
|
16
15
|
return D("MuiFormHelperText", o);
|
|
@@ -28,19 +27,19 @@ const Ne = (o) => {
|
|
|
28
27
|
focused: h,
|
|
29
28
|
required: f
|
|
30
29
|
} = o, P = {
|
|
31
|
-
root: ["root", d && "disabled", u && "error", s && `size${
|
|
30
|
+
root: ["root", d && "disabled", u && "error", s && `size${W(s)}`, r && "contained", h && "focused", l && "filled", f && "required"]
|
|
32
31
|
};
|
|
33
|
-
return
|
|
34
|
-
}, qe =
|
|
32
|
+
return G(P, ze, t);
|
|
33
|
+
}, qe = A("p", {
|
|
35
34
|
name: "MuiFormHelperText",
|
|
36
35
|
slot: "Root",
|
|
37
36
|
overridesResolver: (o, t) => {
|
|
38
37
|
const {
|
|
39
38
|
ownerState: r
|
|
40
39
|
} = o;
|
|
41
|
-
return [t.root, r.size && t[`size${
|
|
40
|
+
return [t.root, r.size && t[`size${W(r.size)}`], r.contained && t.contained, r.filled && t.filled];
|
|
42
41
|
}
|
|
43
|
-
})(
|
|
42
|
+
})(Re(({
|
|
44
43
|
theme: o
|
|
45
44
|
}) => ({
|
|
46
45
|
color: (o.vars || o).palette.text.secondary,
|
|
@@ -72,8 +71,8 @@ const Ne = (o) => {
|
|
|
72
71
|
marginRight: 14
|
|
73
72
|
}
|
|
74
73
|
}]
|
|
75
|
-
}))),
|
|
76
|
-
const s =
|
|
74
|
+
}))), K = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
75
|
+
const s = k({
|
|
77
76
|
props: t,
|
|
78
77
|
name: "MuiFormHelperText"
|
|
79
78
|
}), {
|
|
@@ -83,12 +82,12 @@ const Ne = (o) => {
|
|
|
83
82
|
disabled: h,
|
|
84
83
|
error: f,
|
|
85
84
|
filled: P,
|
|
86
|
-
focused:
|
|
85
|
+
focused: v,
|
|
87
86
|
margin: I,
|
|
88
87
|
required: j,
|
|
89
88
|
variant: F,
|
|
90
89
|
...b
|
|
91
|
-
} = s, w =
|
|
90
|
+
} = s, w = He(), n = Se({
|
|
92
91
|
props: s,
|
|
93
92
|
muiFormControl: w,
|
|
94
93
|
states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
|
|
@@ -122,7 +121,7 @@ const Ne = (o) => {
|
|
|
122
121
|
) : d
|
|
123
122
|
});
|
|
124
123
|
});
|
|
125
|
-
process.env.NODE_ENV !== "production" && (
|
|
124
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
126
125
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
127
126
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
128
127
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -183,23 +182,22 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
|
183
182
|
function Me(o) {
|
|
184
183
|
return D("MuiTextField", o);
|
|
185
184
|
}
|
|
186
|
-
const
|
|
185
|
+
const Ze = B("MuiTextField", ["root"]), Ee = {
|
|
187
186
|
standard: Ie,
|
|
188
|
-
filled:
|
|
189
|
-
outlined:
|
|
187
|
+
filled: ve,
|
|
188
|
+
outlined: Oe
|
|
190
189
|
}, Ue = (o) => {
|
|
191
190
|
const {
|
|
192
191
|
classes: t
|
|
193
192
|
} = o;
|
|
194
|
-
return
|
|
193
|
+
return G({
|
|
195
194
|
root: ["root"]
|
|
196
195
|
}, Me, t);
|
|
197
|
-
}, $e =
|
|
196
|
+
}, $e = A(je, {
|
|
198
197
|
name: "MuiTextField",
|
|
199
|
-
slot: "Root"
|
|
200
|
-
overridesResolver: (o, t) => t.root
|
|
198
|
+
slot: "Root"
|
|
201
199
|
})({}), Ve = /* @__PURE__ */ V.forwardRef(function(t, r) {
|
|
202
|
-
const s =
|
|
200
|
+
const s = k({
|
|
203
201
|
props: t,
|
|
204
202
|
name: "MuiTextField"
|
|
205
203
|
}), {
|
|
@@ -209,7 +207,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
209
207
|
className: h,
|
|
210
208
|
color: f = "primary",
|
|
211
209
|
defaultValue: P,
|
|
212
|
-
disabled:
|
|
210
|
+
disabled: v = !1,
|
|
213
211
|
error: I = !1,
|
|
214
212
|
FormHelperTextProps: j,
|
|
215
213
|
fullWidth: F = !1,
|
|
@@ -218,7 +216,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
218
216
|
InputLabelProps: n,
|
|
219
217
|
inputProps: T,
|
|
220
218
|
InputProps: C,
|
|
221
|
-
inputRef:
|
|
219
|
+
inputRef: J,
|
|
222
220
|
label: y,
|
|
223
221
|
maxRows: Q,
|
|
224
222
|
minRows: X,
|
|
@@ -231,38 +229,38 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
231
229
|
required: z = !1,
|
|
232
230
|
rows: re,
|
|
233
231
|
select: g = !1,
|
|
234
|
-
SelectProps:
|
|
232
|
+
SelectProps: S,
|
|
235
233
|
slots: N = {},
|
|
236
234
|
slotProps: ne = {},
|
|
237
235
|
type: se,
|
|
238
236
|
value: q,
|
|
239
|
-
variant:
|
|
237
|
+
variant: O = "outlined",
|
|
240
238
|
...le
|
|
241
239
|
} = s, i = {
|
|
242
240
|
...s,
|
|
243
241
|
autoFocus: u,
|
|
244
242
|
color: f,
|
|
245
|
-
disabled:
|
|
243
|
+
disabled: v,
|
|
246
244
|
error: I,
|
|
247
245
|
fullWidth: F,
|
|
248
246
|
multiline: L,
|
|
249
247
|
required: z,
|
|
250
248
|
select: g,
|
|
251
|
-
variant:
|
|
249
|
+
variant: O
|
|
252
250
|
}, ie = Ue(i);
|
|
253
251
|
process.env.NODE_ENV !== "production" && g && !l && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
|
|
254
|
-
const a = ge(w),
|
|
252
|
+
const a = ge(w), H = b && a ? `${a}-helper-text` : void 0, M = y && a ? `${a}-label` : void 0, ae = Ee[O], p = {
|
|
255
253
|
slots: N,
|
|
256
254
|
slotProps: {
|
|
257
255
|
input: C,
|
|
258
256
|
inputLabel: n,
|
|
259
257
|
htmlInput: T,
|
|
260
258
|
formHelperText: j,
|
|
261
|
-
select:
|
|
259
|
+
select: S,
|
|
262
260
|
...ne
|
|
263
261
|
}
|
|
264
|
-
}, x = {},
|
|
265
|
-
|
|
262
|
+
}, x = {}, R = p.slotProps.inputLabel;
|
|
263
|
+
O === "outlined" && (R && typeof R.shrink < "u" && (x.notched = R.shrink), x.label = y), g && ((!S || !S.native) && (x.id = void 0), x["aria-describedby"] = void 0);
|
|
266
264
|
const [pe, de] = c("root", {
|
|
267
265
|
elementType: $e,
|
|
268
266
|
shouldForwardComponentProp: !0,
|
|
@@ -274,12 +272,12 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
274
272
|
className: _(ie.root, h),
|
|
275
273
|
ref: r,
|
|
276
274
|
additionalProps: {
|
|
277
|
-
disabled:
|
|
275
|
+
disabled: v,
|
|
278
276
|
error: I,
|
|
279
277
|
fullWidth: F,
|
|
280
278
|
required: z,
|
|
281
279
|
color: f,
|
|
282
|
-
variant:
|
|
280
|
+
variant: O
|
|
283
281
|
}
|
|
284
282
|
}), [ue, ce] = c("input", {
|
|
285
283
|
elementType: ae,
|
|
@@ -295,7 +293,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
295
293
|
externalForwardedProps: p,
|
|
296
294
|
ownerState: i
|
|
297
295
|
}), [ye, xe] = c("formHelperText", {
|
|
298
|
-
elementType:
|
|
296
|
+
elementType: K,
|
|
299
297
|
externalForwardedProps: p,
|
|
300
298
|
ownerState: i
|
|
301
299
|
}), [he, Pe] = c("select", {
|
|
@@ -303,7 +301,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
303
301
|
externalForwardedProps: p,
|
|
304
302
|
ownerState: i
|
|
305
303
|
}), E = /* @__PURE__ */ m(ue, {
|
|
306
|
-
"aria-describedby":
|
|
304
|
+
"aria-describedby": H,
|
|
307
305
|
autoComplete: d,
|
|
308
306
|
autoFocus: u,
|
|
309
307
|
defaultValue: P,
|
|
@@ -316,7 +314,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
316
314
|
type: se,
|
|
317
315
|
value: q,
|
|
318
316
|
id: a,
|
|
319
|
-
inputRef:
|
|
317
|
+
inputRef: J,
|
|
320
318
|
onBlur: Z,
|
|
321
319
|
onChange: ee,
|
|
322
320
|
onFocus: oe,
|
|
@@ -335,7 +333,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
335
333
|
...fe,
|
|
336
334
|
children: y
|
|
337
335
|
}), g ? /* @__PURE__ */ m(he, {
|
|
338
|
-
"aria-describedby":
|
|
336
|
+
"aria-describedby": H,
|
|
339
337
|
id: a,
|
|
340
338
|
labelId: M,
|
|
341
339
|
value: q,
|
|
@@ -343,7 +341,7 @@ const eo = B("MuiTextField", ["root"]), Ee = {
|
|
|
343
341
|
...Pe,
|
|
344
342
|
children: l
|
|
345
343
|
}) : E, b && /* @__PURE__ */ m(ye, {
|
|
346
|
-
id:
|
|
344
|
+
id: H,
|
|
347
345
|
...xe,
|
|
348
346
|
children: b
|
|
349
347
|
})]
|
|
@@ -424,7 +422,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
424
422
|
*/
|
|
425
423
|
InputLabelProps: e.object,
|
|
426
424
|
/**
|
|
427
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
425
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
428
426
|
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
429
427
|
*/
|
|
430
428
|
inputProps: e.object,
|
|
@@ -538,7 +536,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
538
536
|
*/
|
|
539
537
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
540
538
|
/**
|
|
541
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
539
|
+
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
|
|
542
540
|
*/
|
|
543
541
|
type: e.string,
|
|
544
542
|
/**
|
|
@@ -552,10 +550,10 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
|
552
550
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
553
551
|
});
|
|
554
552
|
export {
|
|
555
|
-
|
|
553
|
+
K as F,
|
|
556
554
|
Ve as T,
|
|
557
555
|
Me as a,
|
|
558
556
|
U as f,
|
|
559
557
|
ze as g,
|
|
560
|
-
|
|
558
|
+
Ze as t
|
|
561
559
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const ge=require("react"),e=require("./index-DLnSn8GT.cjs"),n=require("./identifier-BoZelETM.cjs"),y=require("./useSlot-C2FjoUpF.cjs"),c=require("react/jsx-runtime"),P=require("./DefaultPropsProvider-Cnf49AIv.cjs"),Fe=require("./useId-DNXtOFeX.cjs"),F=require("./Select-3HP39Z7o.cjs"),he=require("./formControlState-CuX6WjAX.cjs"),Oe=require("./useFormControl-haP0iPhl.cjs"),Ce=require("./memoTheme-BKfsJx_F.cjs"),ve=require("./FormLabel-JrZR9kt8.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;
|