@cgi-learning-hub/ui 1.7.0 → 1.8.0-dev.1756195117
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-CCAddvmN.cjs +1 -0
- package/dist/{Alert-OeEy_IGc.js → Alert-CY0ot7Q9.js} +7 -7
- package/dist/Alert-Dqk8yUzj.cjs +1 -0
- package/dist/{Alert-BhLIlUBu.js → Alert-bpzERS3n.js} +85 -84
- package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-C58-IF0F.js} +692 -675
- package/dist/Autocomplete-Dr_nOPLP.cjs +6 -0
- package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-BKhYF22u.js} +39 -38
- package/dist/Backdrop-D0LHg40V.cjs +1 -0
- package/dist/Badge-BLQ9lQDm.cjs +1 -0
- package/dist/{Badge-Bwcsnbsa.js → Badge-BYxYuye1.js} +11 -10
- package/dist/{Box-BI4osO9v.js → Box-CQ3BMNr_.js} +4 -4
- package/dist/Box-VEPJVs-3.cjs +1 -0
- package/dist/Button-7-ViQGIl.cjs +1 -0
- package/dist/{Button-DDV5EfwJ.js → Button-Bb0YW9kM.js} +162 -125
- package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-B1T-Lqz2.cjs} +1 -1
- package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-BEtR8-Lv.js} +7 -7
- package/dist/CardContent-DHsA4vHZ.cjs +1 -0
- package/dist/{CardContent-D3uGcxlr.js → CardContent-D_O38a2P.js} +4 -4
- package/dist/{Checkbox-BfBDowB2.js → Checkbox-BUc4uLEm.js} +85 -84
- package/dist/Checkbox-CCUAaeKc.cjs +1 -0
- package/dist/Chip-BqD6kZQu.js +574 -0
- package/dist/Chip-Gtwf_H4u.cjs +1 -0
- package/dist/CircularProgress-9SSFT_JT.cjs +28 -0
- package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-DLHunSUI.js} +15 -14
- package/dist/{Close-DEMecSZ6.js → Close-Bfa6kvKL.js} +1 -1
- package/dist/{Close-7S2hSoFB.cjs → Close-DgAWdt-h.cjs} +1 -1
- package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BmxvxW3h.js} +1 -1
- package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-Cmyp8ExI.cjs} +1 -1
- package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-CAWvvti1.cjs} +3 -3
- package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-R9JdfW5S.js} +19 -19
- package/dist/{DatePicker-DasS2wq6.js → DatePicker-CPl6e2jQ.js} +2766 -2762
- package/dist/DatePicker-DzmgZZm2.cjs +16 -0
- package/dist/DefaultPropsProvider--EgnwFDi.cjs +1 -0
- package/dist/DefaultPropsProvider-BwYGfRVu.js +312 -0
- package/dist/{Delete-B5VTV71K.js → Delete-BbsnDAxB.js} +1 -1
- package/dist/{Delete-BvkBJXEM.cjs → Delete-CP1l1lK0.cjs} +1 -1
- package/dist/{Dialog-DEWB041V.js → Dialog-Bopi9166.js} +18 -17
- package/dist/Dialog-DBeA-P-5.cjs +1 -0
- package/dist/{DialogContent-C294EkoQ.js → DialogContent-BjQDm7Pm.js} +4 -4
- package/dist/DialogContent-LhC5HOzk.cjs +1 -0
- package/dist/DialogTitle-BngRm8Ai.cjs +1 -0
- package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-Bo0Gi01d.js} +6 -6
- package/dist/Divider-BMvxID38.cjs +1 -0
- package/dist/{Divider-kKp4VqHh.js → Divider-DY0U9aTK.js} +27 -27
- package/dist/{Folder-BgQP5-Ve.js → Folder-BEocKcZQ.js} +1 -1
- package/dist/{Folder-BfLBqDHM.cjs → Folder-DH_JFLkH.cjs} +1 -1
- package/dist/{FormLabel-B3WAnPGP.js → FormLabel-BfxjK0e6.js} +17 -16
- package/dist/FormLabel-D8szBNPL.cjs +2 -0
- package/dist/Grid-BK4F7WMn.cjs +2 -0
- package/dist/{Grid-DFk-4jnZ.js → Grid-BcHG0Tju.js} +83 -75
- package/dist/{Grow-BULCy6GX.cjs → Grow-CYNh0mFI.cjs} +1 -1
- package/dist/{Grow-BfjkXlG8.js → Grow-DIADFmT4.js} +4 -4
- package/dist/{IconButton-BYvak8Nw.js → IconButton-Bkyl-NVE.js} +60 -59
- package/dist/IconButton-CW3Ax1Re.cjs +2 -0
- package/dist/InputAdornment-CUNCJ9uu.cjs +1 -0
- package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-RdcIDDtB.js} +16 -15
- package/dist/{InputBase-BS5oknUK.js → InputBase-BQvkpGXw.js} +52 -51
- package/dist/InputBase-DlQ4AmeL.cjs +4 -0
- package/dist/Link-BSTFC-cm.cjs +1 -0
- package/dist/{Link-DYPjEdvu.js → Link-B_3z4AZj.js} +81 -67
- package/dist/{List-CB_cqCSw.js → List-3IHU9lAZ.js} +3 -3
- package/dist/List-D6OWN6pC.cjs +1 -0
- package/dist/{ListItem-DAZQEir2.js → ListItem-C40mdSeT.js} +6 -6
- package/dist/ListItem-DAW9xSDR.cjs +1 -0
- package/dist/ListItemText-CSkIbczH.cjs +1 -0
- package/dist/{ListItemText-qfdqJP77.js → ListItemText-DKZYTXDc.js} +139 -139
- package/dist/{Menu-C61wLk41.cjs → Menu-CYG4lAV5.cjs} +5 -5
- package/dist/{Menu-9BK8jmzW.js → Menu-v2809GzG.js} +14 -14
- package/dist/MenuItem-CE1zzd3t.cjs +1 -0
- package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CtaUN7Tf.js} +94 -94
- package/dist/{Modal-D3Q9vEAI.js → Modal-5Sd-onxN.js} +8 -8
- package/dist/Modal-Czds3gRe.cjs +2 -0
- package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-D8Vmampk.js} +1 -1
- package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-oRU8DXq_.cjs} +1 -1
- package/dist/{Paper-IQckggbn.js → Paper-CVfXywZr.js} +5 -5
- package/dist/Paper-DfgCIvIc.cjs +2 -0
- package/dist/{Popper-CfFLBZ7-.js → Popper-AaewvJPc.js} +7 -7
- package/dist/Popper-D7N2KmyK.cjs +4 -0
- package/dist/Portal-Cmv45gpL.cjs +1 -0
- package/dist/{Portal-BlK6ttxt.js → Portal-PkRJuFYN.js} +17 -17
- package/dist/{Radio-DKiu6lVB.js → Radio-CJMMhGKK.js} +196 -190
- package/dist/Radio-DSTF6-0u.cjs +1 -0
- package/dist/RadioGroup-Dv2H8eCy.cjs +1 -0
- package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-HN8d8Ia5.js} +4 -4
- package/dist/{Select-CpNF3a57.js → Select-B3A-Agfw.js} +643 -608
- package/dist/Select-Dx8bhqFc.cjs +3 -0
- package/dist/Stack-BLHXEe7p.cjs +1 -0
- package/dist/{Stack-DSJ2DqNd.js → Stack-Dxm_cNN7.js} +17 -17
- package/dist/{Stepper-DE2l91K0.js → Stepper-BzU8ArmD.js} +24 -23
- package/dist/Stepper-DKRSy-u6.cjs +1 -0
- package/dist/{Switch-BIcwDf_P.js → Switch-Kkgo0WAh.js} +103 -99
- package/dist/Switch-pAIsJqNE.cjs +1 -0
- package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-D25OhIzI.js} +47 -43
- package/dist/SwitchBase-Rj-rHz4Z.cjs +1 -0
- package/dist/{Tab-Ckr6Bn59.js → Tab-CD-dlBpG.js} +29 -28
- package/dist/Tab-DAnZTr_J.cjs +4 -0
- package/dist/TextField-BOV-t6n5.cjs +1 -0
- package/dist/{TextField-BenBw4oE.js → TextField-hWLcPKMC.js} +25 -24
- package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-DnkyxRyH.js} +2192 -2136
- package/dist/ToggleButtonGroup-tZHZu6VI.cjs +138 -0
- package/dist/{Tooltip-KkgNQm4r.js → Tooltip-Dyhu9Axq.js} +87 -86
- package/dist/Tooltip-uaa7kSpb.cjs +4 -0
- package/dist/{Typography-Dy8r_tT2.js → Typography-BCrXGKM_.js} +8 -7
- package/dist/Typography-CzfDwsAP.cjs +1 -0
- package/dist/capitalize-CqfTUOe6.js +9 -0
- package/dist/capitalize-nmXHj--f.cjs +1 -0
- package/dist/components/ActionBar/ActionBar.cjs.js +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar/ActionBar.es.js +63 -0
- package/dist/components/ActionBar/index.cjs.js +1 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/ActionBar/index.es.js +4 -0
- package/dist/components/ActionBar/style.cjs.js +1 -0
- package/dist/components/ActionBar/style.es.js +61 -0
- package/dist/components/ActionBar/types.cjs.js +1 -0
- package/dist/components/ActionBar/types.d.ts +17 -0
- package/dist/components/ActionBar/types.es.js +1 -0
- 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/ColorPicker/ColorPicker.cjs.js +4 -4
- package/dist/components/ColorPicker/ColorPicker.es.js +64 -64
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +22 -20
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/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 +41 -41
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/types.d.ts +1 -0
- 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.d.ts +2 -1
- package/dist/components/index.es.js +302 -300
- package/dist/components/stories/ActionBar.stories.cjs.js +1 -0
- package/dist/components/stories/ActionBar.stories.d.ts +11 -0
- package/dist/components/stories/ActionBar.stories.es.js +206 -0
- 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/composeClasses-CF8TNlsM.cjs +1 -0
- package/dist/composeClasses-YZNMOb8-.js +51 -0
- package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-CjBLQGwH.js} +9 -8
- package/dist/createSvgIcon-D6Bf0D-L.cjs +1 -0
- package/dist/dividerClasses-B-pTb1RM.cjs +1 -0
- package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DaeUd1Wt.js} +1 -1
- package/dist/{elementAcceptingRef-CEweUuUA.js → elementAcceptingRef-CZLfau9O.js} +1 -1
- package/dist/{elementAcceptingRef-BZ42cOGO.cjs → elementAcceptingRef-CuMilXz3.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-DOeckaXy.js → elementTypeAcceptingRef-vRb2iI4O.js} +1 -1
- package/dist/{elementTypeAcceptingRef-BwZv9xBI.cjs → elementTypeAcceptingRef-vjR5jGLx.cjs} +1 -1
- package/dist/extendSxProp-B7ear6Mt.cjs +1 -0
- package/dist/{extendSxProp-CesAxox9.js → extendSxProp-CYcZXmNy.js} +1 -1
- package/dist/generateUtilityClasses-BMLLB4Uz.cjs +55 -0
- package/dist/generateUtilityClasses-BSBs8sf8.js +2703 -0
- package/dist/{index-Sy88PpwE.js → index-B9vkf41S.js} +2 -2
- package/dist/{index-DIyAQH20.cjs → index-BS46Ff4t.cjs} +1 -1
- package/dist/{index-DX2Sl0Ig.js → index-Ba4TEBpP.js} +1 -1
- package/dist/index-C7LHZznM.cjs +1 -0
- package/dist/{index-CX0sAlmK.js → index-CJMnfcQs.js} +1 -1
- package/dist/{index-CrINMjCH.cjs → index-D_kvDIOz.cjs} +1 -1
- package/dist/{index-8G2jvqZ8.js → index-DoJhn5B5.js} +48 -42
- package/dist/{index-DLnSn8GT.cjs → index-kjfz41UI.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +302 -300
- package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-BXp3ggQU.js} +1 -1
- package/dist/listItemTextClasses-DbXYCyua.cjs +1 -0
- package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-DZ3r2a_u.cjs} +1 -1
- package/dist/{memoTheme-DAFDflPY.js → memoTheme-_Lq-6t75.js} +1 -1
- package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-BauotErM.js} +1 -1
- package/dist/mergeSlotProps-DxEGON0Z.cjs +1 -0
- package/dist/{refType-Dp7CJc86.js → refType-8hihVLUh.js} +1 -1
- package/dist/{refType-B_IEJm4x.cjs → refType-DJyA--UV.cjs} +1 -1
- package/dist/useSlot-BQ5B4uxv.cjs +1 -0
- package/dist/{useSlot-BzdKwDQ5.js → useSlot-EJyrOSVX.js} +1 -1
- package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-BgLi3k0l.cjs} +1 -1
- package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-Dqdl-VjK.js} +1 -1
- package/dist/useTheme-B-uC25ym.js +11 -0
- package/dist/useTheme-BF7BEGuC.cjs +1 -0
- package/dist/useTheme-Bp-Kqg9p.cjs +1 -0
- package/dist/{useTheme--i9fxE_A.js → useTheme-DiTK5w6x.js} +1 -1
- package/dist/useThemeProps-BPpcxcBc.cjs +1 -0
- package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BR4m1AIN.cjs} +1 -1
- package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-Ddl3KJ8f.js} +4 -4
- package/dist/useThemeProps-zsxJokxk.js +17 -0
- package/dist/{utils-BQenyzDz.js → utils-B_pVp6UZ.js} +3 -3
- package/dist/utils-XujN9ndp.cjs +1 -0
- package/package.json +7 -7
- package/dist/Alert-DPSZppEy.cjs +0 -1
- package/dist/Alert-rPyl-bqs.cjs +0 -1
- package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
- package/dist/Backdrop-DeNTZlA5.cjs +0 -1
- package/dist/Badge-DFzvdVS-.cjs +0 -1
- package/dist/Box-DR3n_po_.cjs +0 -1
- package/dist/Button-DyJV5llI.cjs +0 -1
- package/dist/CardContent-COfaU6E0.cjs +0 -1
- package/dist/Checkbox-3hTSv0EZ.cjs +0 -1
- package/dist/Chip-BG0OU0KI.cjs +0 -1
- package/dist/Chip-DmjZbx_X.js +0 -572
- package/dist/CircularProgress-CXXyPavb.cjs +0 -28
- package/dist/DatePicker-CH8XRum0.cjs +0 -16
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +0 -1
- package/dist/DefaultPropsProvider-DqazQPtr.js +0 -306
- package/dist/Dialog-Btagj_Gt.cjs +0 -1
- package/dist/DialogContent-DXfUge3c.cjs +0 -1
- package/dist/DialogTitle-y2PrK6uU.cjs +0 -1
- package/dist/Divider-NermA5hZ.cjs +0 -1
- package/dist/FormLabel-JrZR9kt8.cjs +0 -2
- package/dist/Grid-BHYQ3JNy.cjs +0 -2
- package/dist/IconButton-CjtMjZ9e.cjs +0 -2
- package/dist/InputAdornment-DvHQMisT.cjs +0 -1
- package/dist/InputBase-DPdKpmOz.cjs +0 -4
- package/dist/Link-BwbY60dS.cjs +0 -1
- package/dist/List-t9bWFewp.cjs +0 -1
- package/dist/ListItem-DP7YmqZk.cjs +0 -1
- package/dist/ListItemText-cVnimPLO.cjs +0 -1
- package/dist/MenuItem-DHM3qxwr.cjs +0 -1
- package/dist/Modal-DkzrSKHd.cjs +0 -2
- package/dist/Paper-BbqZL5vx.cjs +0 -2
- package/dist/Popper-DvWx5tR3.cjs +0 -4
- package/dist/Portal-CPOCKeMh.cjs +0 -1
- package/dist/Radio-Bwh_t6PC.cjs +0 -1
- package/dist/RadioGroup-Cvnwt4JE.cjs +0 -1
- package/dist/Select-3HP39Z7o.cjs +0 -3
- package/dist/Stack-CIyfgZCM.cjs +0 -1
- package/dist/Stepper-CXHfLPtA.cjs +0 -1
- package/dist/Switch-CTEqKDiv.cjs +0 -1
- package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
- package/dist/Tab-r5imbU9z.cjs +0 -4
- package/dist/TextField-Brw3X9cn.cjs +0 -1
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
- package/dist/Tooltip-BAOKe3SY.cjs +0 -4
- package/dist/Typography-CSTmKyr8.cjs +0 -1
- package/dist/createSvgIcon-IET9soda.cjs +0 -1
- package/dist/dividerClasses-C07OJKLL.cjs +0 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +0 -1
- package/dist/identifier-BoZelETM.cjs +0 -55
- package/dist/identifier-PWESmBq6.js +0 -2598
- package/dist/index-D3lMWU76.cjs +0 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +0 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +0 -1
- package/dist/styled-C7gyRDlj.js +0 -5
- package/dist/styled-Cax0O00h.cjs +0 -1
- package/dist/useSlot-C2FjoUpF.cjs +0 -1
- package/dist/useTheme-BLMJDSsv.cjs +0 -1
- package/dist/useTheme-CooC_6Ep.cjs +0 -1
- package/dist/useTheme-XJ9sFCWX.js +0 -11
- package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
- package/dist/useThemeProps-CQ9rZe7g.js +0 -17
- package/dist/utils-ByXw_ZY1.cjs +0 -1
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import { P as e } from "./index-
|
|
3
|
-
import { F as
|
|
4
|
-
import { m as
|
|
5
|
-
import { c as
|
|
2
|
+
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
+
import { F as T, G as x, H as P } from "./generateUtilityClasses-BSBs8sf8.js";
|
|
4
|
+
import { m as B } from "./memoTheme-_Lq-6t75.js";
|
|
5
|
+
import { c as z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
6
|
import { jsxs as w, jsx as u } from "react/jsx-runtime";
|
|
7
|
-
import { u as j, s as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
7
|
+
import { u as j, s as C, c as $ } from "./DefaultPropsProvider-BwYGfRVu.js";
|
|
8
|
+
import { u as k } from "./useId-CK6Kn3Tn.js";
|
|
9
|
+
import { c as t } from "./capitalize-CqfTUOe6.js";
|
|
10
|
+
import { B as M } from "./ButtonBase-BEtR8-Lv.js";
|
|
11
|
+
import { C as N } from "./CircularProgress-DLHunSUI.js";
|
|
12
|
+
import { c as E } from "./chainPropTypes-D9lkm76m.js";
|
|
13
|
+
function L(o) {
|
|
13
14
|
return x("MuiIconButton", o);
|
|
14
15
|
}
|
|
15
|
-
const
|
|
16
|
+
const R = T("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), U = (o) => {
|
|
16
17
|
const {
|
|
17
|
-
classes:
|
|
18
|
-
disabled:
|
|
18
|
+
classes: r,
|
|
19
|
+
disabled: a,
|
|
19
20
|
color: n,
|
|
20
21
|
edge: s,
|
|
21
22
|
size: l,
|
|
22
23
|
loading: c
|
|
23
|
-
} = o,
|
|
24
|
-
root: ["root", c && "loading",
|
|
24
|
+
} = o, d = {
|
|
25
|
+
root: ["root", c && "loading", a && "disabled", n !== "default" && `color${t(n)}`, s && `edge${t(s)}`, `size${t(l)}`],
|
|
25
26
|
loadingIndicator: ["loadingIndicator"],
|
|
26
27
|
loadingWrapper: ["loadingWrapper"]
|
|
27
28
|
};
|
|
28
|
-
return
|
|
29
|
-
},
|
|
29
|
+
return $(d, L, r);
|
|
30
|
+
}, W = C(M, {
|
|
30
31
|
name: "MuiIconButton",
|
|
31
32
|
slot: "Root",
|
|
32
|
-
overridesResolver: (o,
|
|
33
|
+
overridesResolver: (o, r) => {
|
|
33
34
|
const {
|
|
34
|
-
ownerState:
|
|
35
|
+
ownerState: a
|
|
35
36
|
} = o;
|
|
36
|
-
return [
|
|
37
|
+
return [r.root, a.loading && r.loading, a.color !== "default" && r[`color${t(a.color)}`], a.edge && r[`edge${t(a.edge)}`], r[`size${t(a.size)}`]];
|
|
37
38
|
}
|
|
38
|
-
})(
|
|
39
|
+
})(B(({
|
|
39
40
|
theme: o
|
|
40
41
|
}) => ({
|
|
41
42
|
textAlign: "center",
|
|
@@ -48,9 +49,9 @@ const C = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
48
49
|
duration: o.transitions.duration.shortest
|
|
49
50
|
}),
|
|
50
51
|
variants: [{
|
|
51
|
-
props: (
|
|
52
|
+
props: (r) => !r.disableRipple,
|
|
52
53
|
style: {
|
|
53
|
-
"--IconButton-hoverBg": o.
|
|
54
|
+
"--IconButton-hoverBg": o.alpha((o.vars || o).palette.action.active, (o.vars || o).palette.action.hoverOpacity),
|
|
54
55
|
"&:hover": {
|
|
55
56
|
backgroundColor: "var(--IconButton-hoverBg)",
|
|
56
57
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -90,7 +91,7 @@ const C = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
90
91
|
marginRight: -3
|
|
91
92
|
}
|
|
92
93
|
}]
|
|
93
|
-
})),
|
|
94
|
+
})), B(({
|
|
94
95
|
theme: o
|
|
95
96
|
}) => ({
|
|
96
97
|
variants: [{
|
|
@@ -100,19 +101,19 @@ const C = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
100
101
|
style: {
|
|
101
102
|
color: "inherit"
|
|
102
103
|
}
|
|
103
|
-
}, ...Object.entries(o.palette).filter(
|
|
104
|
+
}, ...Object.entries(o.palette).filter(z()).map(([r]) => ({
|
|
104
105
|
props: {
|
|
105
|
-
color:
|
|
106
|
+
color: r
|
|
106
107
|
},
|
|
107
108
|
style: {
|
|
108
|
-
color: (o.vars || o).palette[
|
|
109
|
+
color: (o.vars || o).palette[r].main
|
|
109
110
|
}
|
|
110
|
-
})), ...Object.entries(o.palette).filter(
|
|
111
|
+
})), ...Object.entries(o.palette).filter(z()).map(([r]) => ({
|
|
111
112
|
props: {
|
|
112
|
-
color:
|
|
113
|
+
color: r
|
|
113
114
|
},
|
|
114
115
|
style: {
|
|
115
|
-
"--IconButton-hoverBg": o.
|
|
116
|
+
"--IconButton-hoverBg": o.alpha((o.vars || o).palette[r].main, (o.vars || o).palette.action.hoverOpacity)
|
|
116
117
|
}
|
|
117
118
|
})), {
|
|
118
119
|
props: {
|
|
@@ -131,14 +132,14 @@ const C = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
131
132
|
fontSize: o.typography.pxToRem(28)
|
|
132
133
|
}
|
|
133
134
|
}],
|
|
134
|
-
[`&.${
|
|
135
|
+
[`&.${R.disabled}`]: {
|
|
135
136
|
backgroundColor: "transparent",
|
|
136
137
|
color: (o.vars || o).palette.action.disabled
|
|
137
138
|
},
|
|
138
|
-
[`&.${
|
|
139
|
+
[`&.${R.loading}`]: {
|
|
139
140
|
color: "transparent"
|
|
140
141
|
}
|
|
141
|
-
}))),
|
|
142
|
+
}))), F = C("span", {
|
|
142
143
|
name: "MuiIconButton",
|
|
143
144
|
slot: "LoadingIndicator"
|
|
144
145
|
})(({
|
|
@@ -159,60 +160,60 @@ const C = $("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
159
160
|
display: "flex"
|
|
160
161
|
}
|
|
161
162
|
}]
|
|
162
|
-
})),
|
|
163
|
+
})), V = /* @__PURE__ */ f.forwardRef(function(r, a) {
|
|
163
164
|
const n = j({
|
|
164
|
-
props:
|
|
165
|
+
props: r,
|
|
165
166
|
name: "MuiIconButton"
|
|
166
167
|
}), {
|
|
167
168
|
edge: s = !1,
|
|
168
169
|
children: l,
|
|
169
170
|
className: c,
|
|
170
|
-
color:
|
|
171
|
-
disabled:
|
|
172
|
-
disableFocusRipple:
|
|
171
|
+
color: d = "default",
|
|
172
|
+
disabled: m = !1,
|
|
173
|
+
disableFocusRipple: y = !1,
|
|
173
174
|
size: h = "medium",
|
|
174
175
|
id: b,
|
|
175
176
|
loading: i = null,
|
|
176
|
-
loadingIndicator:
|
|
177
|
-
...
|
|
178
|
-
} = n, v =
|
|
177
|
+
loadingIndicator: O,
|
|
178
|
+
...S
|
|
179
|
+
} = n, v = k(b), I = O ?? /* @__PURE__ */ u(N, {
|
|
179
180
|
"aria-labelledby": v,
|
|
180
181
|
color: "inherit",
|
|
181
182
|
size: 16
|
|
182
|
-
}),
|
|
183
|
+
}), p = {
|
|
183
184
|
...n,
|
|
184
185
|
edge: s,
|
|
185
|
-
color:
|
|
186
|
-
disabled:
|
|
187
|
-
disableFocusRipple:
|
|
186
|
+
color: d,
|
|
187
|
+
disabled: m,
|
|
188
|
+
disableFocusRipple: y,
|
|
188
189
|
loading: i,
|
|
189
190
|
loadingIndicator: I,
|
|
190
191
|
size: h
|
|
191
|
-
}, g =
|
|
192
|
-
return /* @__PURE__ */ w(
|
|
192
|
+
}, g = U(p);
|
|
193
|
+
return /* @__PURE__ */ w(W, {
|
|
193
194
|
id: i ? v : b,
|
|
194
195
|
className: P(g.root, c),
|
|
195
196
|
centerRipple: !0,
|
|
196
|
-
focusRipple: !
|
|
197
|
-
disabled:
|
|
198
|
-
ref:
|
|
199
|
-
...
|
|
200
|
-
ownerState:
|
|
197
|
+
focusRipple: !y,
|
|
198
|
+
disabled: m || i,
|
|
199
|
+
ref: a,
|
|
200
|
+
...S,
|
|
201
|
+
ownerState: p,
|
|
201
202
|
children: [typeof i == "boolean" && // use plain HTML span to minimize the runtime overhead
|
|
202
203
|
/* @__PURE__ */ u("span", {
|
|
203
204
|
className: g.loadingWrapper,
|
|
204
205
|
style: {
|
|
205
206
|
display: "contents"
|
|
206
207
|
},
|
|
207
|
-
children: /* @__PURE__ */ u(
|
|
208
|
+
children: /* @__PURE__ */ u(F, {
|
|
208
209
|
className: g.loadingIndicator,
|
|
209
|
-
ownerState:
|
|
210
|
+
ownerState: p,
|
|
210
211
|
children: i && I
|
|
211
212
|
})
|
|
212
213
|
}), l]
|
|
213
214
|
});
|
|
214
215
|
});
|
|
215
|
-
process.env.NODE_ENV !== "production" && (
|
|
216
|
+
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
216
217
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
217
218
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
218
219
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -220,7 +221,7 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
|
220
221
|
/**
|
|
221
222
|
* The icon to display.
|
|
222
223
|
*/
|
|
223
|
-
children:
|
|
224
|
+
children: E(e.node, (o) => f.Children.toArray(o.children).some((a) => /* @__PURE__ */ f.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
224
225
|
`)) : null),
|
|
225
226
|
/**
|
|
226
227
|
* Override or extend the styles applied to the component.
|
|
@@ -292,7 +293,7 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
|
|
|
292
293
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
293
294
|
});
|
|
294
295
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
V as I,
|
|
297
|
+
L as g,
|
|
298
|
+
R as i
|
|
298
299
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const x=require("react"),o=require("./index-kjfz41UI.cjs"),P=require("./generateUtilityClasses-BMLLB4Uz.cjs"),B=require("./memoTheme-DZ3r2a_u.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),l=require("react/jsx-runtime"),p=require("./DefaultPropsProvider--EgnwFDi.cjs"),q=require("./useId-DNXtOFeX.cjs"),a=require("./capitalize-nmXHj--f.cjs"),w=require("./ButtonBase-B1T-Lqz2.cjs"),k=require("./CircularProgress-9SSFT_JT.cjs"),M=require("./chainPropTypes-CEUi6Jb4.cjs");function N(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=N(x);function O(e){return P.generateUtilityClass("MuiIconButton",e)}const b=P.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),$=e=>{const{classes:t,disabled:r,color:n,edge:i,size:c,loading:d}=e,u={root:["root",d&&"loading",r&&"disabled",n!=="default"&&`color${a.capitalize(n)}`,i&&`edge${a.capitalize(i)}`,`size${a.capitalize(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return p.composeClasses(u,O,t)},U=p.styled(w.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${a.capitalize(r.color)}`],r.edge&&t[`edge${a.capitalize(r.edge)}`],t[`size${a.capitalize(r.size)}`]]}})(B.memoTheme(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),B.memoTheme(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(R.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(R.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${b.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${b.loading}`]:{color:"transparent"}}))),E=p.styled("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),C=f.forwardRef(function(t,r){const n=p.useDefaultProps({props:t,name:"MuiIconButton"}),{edge:i=!1,children:c,className:d,color:u="default",disabled:T=!1,disableFocusRipple:v=!1,size:h="medium",id:m,loading:s=null,loadingIndicator:S,...j}=n,I=q.useId(m),z=S??l.jsx(k.CircularProgress,{"aria-labelledby":I,color:"inherit",size:16}),g={...n,edge:i,color:u,disabled:T,disableFocusRipple:v,loading:s,loadingIndicator:z,size:h},y=$(g);return l.jsxs(U,{id:s?I:m,className:P.clsx(y.root,d),centerRipple:!0,focusRipple:!v,disabled:T||s,ref:r,...j,ownerState:g,children:[typeof s=="boolean"&&l.jsx("span",{className:y.loadingWrapper,style:{display:"contents"},children:l.jsx(E,{className:y.loadingIndicator,ownerState:g,children:s&&z})}),c]})});process.env.NODE_ENV!=="production"&&(C.propTypes={children:M.chainPropTypes(o.PropTypes.node,e=>f.Children.toArray(e.children).some(r=>f.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
2
|
+
`)):null),classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),disabled:o.PropTypes.bool,disableFocusRipple:o.PropTypes.bool,disableRipple:o.PropTypes.bool,edge:o.PropTypes.oneOf(["end","start",!1]),id:o.PropTypes.string,loading:o.PropTypes.bool,loadingIndicator:o.PropTypes.node,size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["small","medium","large"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object])});exports.IconButton=C;exports.getIconButtonUtilityClass=O;exports.iconButtonClasses=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("react"),e=require("./index-kjfz41UI.cjs"),y=require("./generateUtilityClasses-BMLLB4Uz.cjs"),T=require("./useFormControl-haP0iPhl.cjs"),O=require("./memoTheme-DZ3r2a_u.cjs"),a=require("react/jsx-runtime"),v=require("./DefaultPropsProvider--EgnwFDi.cjs"),A=require("./Typography-CzfDwsAP.cjs"),m=require("./capitalize-nmXHj--f.cjs");function q(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const b=q(I);function z(t){return y.generateUtilityClass("MuiInputAdornment",t)}const h=y.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g;const S=(t,o)=>{const{ownerState:n}=t;return[o.root,o[`position${m.capitalize(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},N=t=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:s,size:p,variant:l}=t,c={root:["root",n&&"disablePointerEvents",s&&`position${m.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${m.capitalize(p)}`]};return v.composeClasses(c,z,o)},R=v.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:S})(O.memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${h.positionStart}&:not(.${h.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),E=b.forwardRef(function(o,n){const r=v.useDefaultProps({props:o,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:c=!1,disableTypography:j=!1,position:f,variant:d,...x}=r,i=T.useFormControl()||{};let u=d;d&&i.variant&&process.env.NODE_ENV!=="production"&&d===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!u&&(u=i.variant);const P={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:c,position:f,variant:u},C=N(P);return a.jsx(T.FormControlContext.Provider,{value:null,children:a.jsx(R,{as:l,ownerState:P,className:y.clsx(C.root,p),ref:n,...x,children:typeof s=="string"&&!j?a.jsx(A.Typography,{color:"textSecondary",children:s}):a.jsxs(b.Fragment,{children:[f==="start"?g||(g=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(E.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,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.oneOf(["filled","outlined","standard"])});exports.InputAdornment=E;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import { P as e } from "./index-
|
|
3
|
-
import { F as I, G as T, H as A
|
|
2
|
+
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
+
import { F as I, G as T, H as A } from "./generateUtilityClasses-BSBs8sf8.js";
|
|
4
4
|
import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { m as N } from "./memoTheme-
|
|
5
|
+
import { m as N } from "./memoTheme-_Lq-6t75.js";
|
|
6
6
|
import { jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
7
|
-
import { u as L, s as O, c as R } from "./DefaultPropsProvider-
|
|
8
|
-
import { T as w } from "./Typography-
|
|
7
|
+
import { u as L, s as O, c as R } from "./DefaultPropsProvider-BwYGfRVu.js";
|
|
8
|
+
import { T as w } from "./Typography-BCrXGKM_.js";
|
|
9
|
+
import { c as u } from "./capitalize-CqfTUOe6.js";
|
|
9
10
|
function z(t) {
|
|
10
11
|
return T("MuiInputAdornment", t);
|
|
11
12
|
}
|
|
@@ -21,11 +22,11 @@ const F = (t, o) => {
|
|
|
21
22
|
classes: o,
|
|
22
23
|
disablePointerEvents: n,
|
|
23
24
|
hiddenLabel: i,
|
|
24
|
-
position:
|
|
25
|
+
position: r,
|
|
25
26
|
size: a,
|
|
26
27
|
variant: p
|
|
27
28
|
} = t, d = {
|
|
28
|
-
root: ["root", n && "disablePointerEvents",
|
|
29
|
+
root: ["root", n && "disablePointerEvents", r && `position${u(r)}`, p, i && "hiddenLabel", a && `size${u(a)}`]
|
|
29
30
|
};
|
|
30
31
|
return R(d, z, o);
|
|
31
32
|
}, M = O("div", {
|
|
@@ -76,7 +77,7 @@ const F = (t, o) => {
|
|
|
76
77
|
props: o,
|
|
77
78
|
name: "MuiInputAdornment"
|
|
78
79
|
}), {
|
|
79
|
-
children:
|
|
80
|
+
children: r,
|
|
80
81
|
className: a,
|
|
81
82
|
component: p = "div",
|
|
82
83
|
disablePointerEvents: d = !1,
|
|
@@ -84,13 +85,13 @@ const F = (t, o) => {
|
|
|
84
85
|
position: v,
|
|
85
86
|
variant: c,
|
|
86
87
|
...E
|
|
87
|
-
} = i,
|
|
88
|
+
} = i, s = C() || {};
|
|
88
89
|
let m = c;
|
|
89
|
-
c &&
|
|
90
|
+
c && s.variant && process.env.NODE_ENV !== "production" && c === s.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), s && !m && (m = s.variant);
|
|
90
91
|
const f = {
|
|
91
92
|
...i,
|
|
92
|
-
hiddenLabel:
|
|
93
|
-
size:
|
|
93
|
+
hiddenLabel: s.hiddenLabel,
|
|
94
|
+
size: s.size,
|
|
94
95
|
disablePointerEvents: d,
|
|
95
96
|
position: v,
|
|
96
97
|
variant: m
|
|
@@ -103,9 +104,9 @@ const F = (t, o) => {
|
|
|
103
104
|
className: A(P.root, a),
|
|
104
105
|
ref: n,
|
|
105
106
|
...E,
|
|
106
|
-
children: typeof
|
|
107
|
+
children: typeof r == "string" && !g ? /* @__PURE__ */ l(w, {
|
|
107
108
|
color: "textSecondary",
|
|
108
|
-
children:
|
|
109
|
+
children: r
|
|
109
110
|
}) : /* @__PURE__ */ S(h.Fragment, {
|
|
110
111
|
children: [v === "start" ? (
|
|
111
112
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
@@ -114,7 +115,7 @@ const F = (t, o) => {
|
|
|
114
115
|
"aria-hidden": !0,
|
|
115
116
|
children: ""
|
|
116
117
|
}))
|
|
117
|
-
) : null,
|
|
118
|
+
) : null, r]
|
|
118
119
|
})
|
|
119
120
|
})
|
|
120
121
|
});
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { P as e } from "./index-
|
|
3
|
-
import { F as Ae, G as Be, H as pe,
|
|
2
|
+
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
+
import { F as Ae, G as Be, H as pe, I as He } from "./generateUtilityClasses-BSBs8sf8.js";
|
|
4
4
|
import { i as fe } from "./isHostComponent-kiaBvYVo.js";
|
|
5
5
|
import { f as Me } from "./formControlState-vgaj2ksH.js";
|
|
6
6
|
import { u as We, F as Pe } from "./useFormControl-CatNKXAi.js";
|
|
7
|
-
import { g as Le } from "./index-
|
|
8
|
-
import { m as ge } from "./memoTheme-
|
|
7
|
+
import { g as Le } from "./index-DoJhn5B5.js";
|
|
8
|
+
import { m as ge } from "./memoTheme-_Lq-6t75.js";
|
|
9
9
|
import { i as De } from "./utils-DWqc1kRF.js";
|
|
10
|
-
import { jsxs as
|
|
11
|
-
import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-
|
|
10
|
+
import { jsxs as X, jsx as B } from "react/jsx-runtime";
|
|
11
|
+
import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-BwYGfRVu.js";
|
|
12
12
|
import { u as we } from "./useForkRef-u29GSuCu.js";
|
|
13
|
-
import { a as Ve, u as
|
|
13
|
+
import { a as Ve, u as ee } from "./useEventCallback-Y2KwRxBw.js";
|
|
14
14
|
import { o as me } from "./ownerWindow-niciwP7I.js";
|
|
15
15
|
import { d as _e } from "./debounce-46wSf_lW.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { c as oe } from "./capitalize-CqfTUOe6.js";
|
|
17
|
+
import { r as $e } from "./refType-8hihVLUh.js";
|
|
18
|
+
import { e as Ge } from "./elementTypeAcceptingRef-vRb2iI4O.js";
|
|
18
19
|
function D(t) {
|
|
19
20
|
return parseInt(t, 10) || 0;
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const Ke = {
|
|
22
23
|
shadow: {
|
|
23
24
|
// Visibility needed to hide the extra text area on iPads
|
|
24
25
|
visibility: "hidden",
|
|
@@ -86,7 +87,7 @@ const Se = /* @__PURE__ */ l.forwardRef(function(o, r) {
|
|
|
86
87
|
const c = n.outerHeightStyle;
|
|
87
88
|
m.current !== c && (m.current = c, i.style.height = `${c}px`), i.style.overflow = n.overflowing ? "hidden" : "";
|
|
88
89
|
}, [g]), F = l.useRef(-1);
|
|
89
|
-
|
|
90
|
+
ee(() => {
|
|
90
91
|
const i = _e(x), n = f == null ? void 0 : f.current;
|
|
91
92
|
if (!n)
|
|
92
93
|
return;
|
|
@@ -100,7 +101,7 @@ const Se = /* @__PURE__ */ l.forwardRef(function(o, r) {
|
|
|
100
101
|
}), u.observe(n)), () => {
|
|
101
102
|
i.clear(), cancelAnimationFrame(F.current), c.removeEventListener("resize", i), u && u.disconnect();
|
|
102
103
|
};
|
|
103
|
-
}, [g, x, N]),
|
|
104
|
+
}, [g, x, N]), ee(() => {
|
|
104
105
|
x();
|
|
105
106
|
});
|
|
106
107
|
const j = (i) => {
|
|
@@ -109,7 +110,7 @@ const Se = /* @__PURE__ */ l.forwardRef(function(o, r) {
|
|
|
109
110
|
`), E = n.selectionStart === c;
|
|
110
111
|
u && E && n.setSelectionRange(c, c), d && d(i);
|
|
111
112
|
};
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ X(l.Fragment, {
|
|
113
114
|
children: [/* @__PURE__ */ B("textarea", {
|
|
114
115
|
value: T,
|
|
115
116
|
onChange: j,
|
|
@@ -124,7 +125,7 @@ const Se = /* @__PURE__ */ l.forwardRef(function(o, r) {
|
|
|
124
125
|
ref: C,
|
|
125
126
|
tabIndex: -1,
|
|
126
127
|
style: {
|
|
127
|
-
...
|
|
128
|
+
...Ke.shadow,
|
|
128
129
|
...R,
|
|
129
130
|
paddingTop: 0,
|
|
130
131
|
paddingBottom: 0
|
|
@@ -172,17 +173,17 @@ function Ye(t) {
|
|
|
172
173
|
}
|
|
173
174
|
const te = Ae("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
174
175
|
var be;
|
|
175
|
-
const
|
|
176
|
+
const Ze = (t, o) => {
|
|
176
177
|
const {
|
|
177
178
|
ownerState: r
|
|
178
179
|
} = t;
|
|
179
|
-
return [o.root, r.formControl && o.formControl, r.startAdornment && o.adornedStart, r.endAdornment && o.adornedEnd, r.error && o.error, r.size === "small" && o.sizeSmall, r.multiline && o.multiline, r.color && o[`color${
|
|
180
|
-
},
|
|
180
|
+
return [o.root, r.formControl && o.formControl, r.startAdornment && o.adornedStart, r.endAdornment && o.adornedEnd, r.error && o.error, r.size === "small" && o.sizeSmall, r.multiline && o.multiline, r.color && o[`color${oe(r.color)}`], r.fullWidth && o.fullWidth, r.hiddenLabel && o.hiddenLabel];
|
|
181
|
+
}, Je = (t, o) => {
|
|
181
182
|
const {
|
|
182
183
|
ownerState: r
|
|
183
184
|
} = t;
|
|
184
185
|
return [o.input, r.size === "small" && o.inputSizeSmall, r.multiline && o.inputMultiline, r.type === "search" && o.inputTypeSearch, r.startAdornment && o.inputAdornedStart, r.endAdornment && o.inputAdornedEnd, r.hiddenLabel && o.inputHiddenLabel];
|
|
185
|
-
},
|
|
186
|
+
}, Qe = (t) => {
|
|
186
187
|
const {
|
|
187
188
|
classes: o,
|
|
188
189
|
color: r,
|
|
@@ -199,14 +200,14 @@ const Xe = (t, o) => {
|
|
|
199
200
|
startAdornment: C,
|
|
200
201
|
type: g
|
|
201
202
|
} = t, N = {
|
|
202
|
-
root: ["root", `color${
|
|
203
|
+
root: ["root", `color${oe(r)}`, d && "disabled", h && "error", H && "fullWidth", R && "focused", T && "formControl", m && m !== "medium" && `size${oe(m)}`, f && "multiline", C && "adornedStart", p && "adornedEnd", S && "hiddenLabel", O && "readOnly"],
|
|
203
204
|
input: ["input", d && "disabled", g === "search" && "inputTypeSearch", f && "inputMultiline", m === "small" && "inputSizeSmall", S && "inputHiddenLabel", C && "inputAdornedStart", p && "inputAdornedEnd", O && "readOnly"]
|
|
204
205
|
};
|
|
205
206
|
return Ue(N, Ye, o);
|
|
206
|
-
},
|
|
207
|
+
}, Xe = ve("div", {
|
|
207
208
|
name: "MuiInputBase",
|
|
208
209
|
slot: "Root",
|
|
209
|
-
overridesResolver:
|
|
210
|
+
overridesResolver: Ze
|
|
210
211
|
})(ge(({
|
|
211
212
|
theme: t
|
|
212
213
|
}) => ({
|
|
@@ -250,7 +251,7 @@ const Xe = (t, o) => {
|
|
|
250
251
|
}))), eo = ve("input", {
|
|
251
252
|
name: "MuiInputBase",
|
|
252
253
|
slot: "Input",
|
|
253
|
-
overridesResolver:
|
|
254
|
+
overridesResolver: Je
|
|
254
255
|
})(ge(({
|
|
255
256
|
theme: t
|
|
256
257
|
}) => {
|
|
@@ -418,11 +419,11 @@ const Xe = (t, o) => {
|
|
|
418
419
|
value: Re,
|
|
419
420
|
...Te
|
|
420
421
|
} = d, L = i.value != null ? i.value : Re, {
|
|
421
|
-
current:
|
|
422
|
+
current: $
|
|
422
423
|
} = l.useRef(L != null), z = l.useRef(), Oe = l.useCallback((a) => {
|
|
423
424
|
process.env.NODE_ENV !== "production" && a && a.nodeName !== "INPUT" && !a.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
424
425
|
`));
|
|
425
|
-
}, []), Ee = we(z, n, i.ref, Oe), [
|
|
426
|
+
}, []), Ee = we(z, n, i.ref, Oe), [G, K] = l.useState(!1), s = We();
|
|
426
427
|
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
427
428
|
if (s)
|
|
428
429
|
return s.registerEffect();
|
|
@@ -432,23 +433,23 @@ const Xe = (t, o) => {
|
|
|
432
433
|
muiFormControl: s,
|
|
433
434
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
434
435
|
});
|
|
435
|
-
y.focused = s ? s.focused :
|
|
436
|
-
!s && m &&
|
|
437
|
-
}, [s, m,
|
|
436
|
+
y.focused = s ? s.focused : G, l.useEffect(() => {
|
|
437
|
+
!s && m && G && (K(!1), w && w());
|
|
438
|
+
}, [s, m, G, w]);
|
|
438
439
|
const q = s && s.onFilled, Y = s && s.onEmpty, A = l.useCallback((a) => {
|
|
439
440
|
De(a) ? q && q() : Y && Y();
|
|
440
441
|
}, [q, Y]);
|
|
441
|
-
|
|
442
|
-
|
|
442
|
+
ee(() => {
|
|
443
|
+
$ && A({
|
|
443
444
|
value: L
|
|
444
445
|
});
|
|
445
|
-
}, [L, A,
|
|
446
|
+
}, [L, A, $]);
|
|
446
447
|
const Ie = (a) => {
|
|
447
|
-
W && W(a), i.onFocus && i.onFocus(a), s && s.onFocus ? s.onFocus(a) :
|
|
448
|
+
W && W(a), i.onFocus && i.onFocus(a), s && s.onFocus ? s.onFocus(a) : K(!0);
|
|
448
449
|
}, ze = (a) => {
|
|
449
|
-
w && w(a), i.onBlur && i.onBlur(a), s && s.onBlur ? s.onBlur(a) :
|
|
450
|
+
w && w(a), i.onBlur && i.onBlur(a), s && s.onBlur ? s.onBlur(a) : K(!1);
|
|
450
451
|
}, Ne = (a, ...ce) => {
|
|
451
|
-
if (
|
|
452
|
+
if (!$) {
|
|
452
453
|
const de = a.target || z.current;
|
|
453
454
|
if (de == null)
|
|
454
455
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : He(1));
|
|
@@ -464,8 +465,8 @@ const Xe = (t, o) => {
|
|
|
464
465
|
const Fe = (a) => {
|
|
465
466
|
z.current && a.currentTarget === a.target && z.current.focus(), b && b(a);
|
|
466
467
|
};
|
|
467
|
-
let
|
|
468
|
-
M &&
|
|
468
|
+
let Z = j, v = i;
|
|
469
|
+
M && Z === "input" && (P ? (process.env.NODE_ENV !== "production" && (E || u) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), v = {
|
|
469
470
|
type: void 0,
|
|
470
471
|
minRows: P,
|
|
471
472
|
maxRows: P,
|
|
@@ -475,7 +476,7 @@ const Xe = (t, o) => {
|
|
|
475
476
|
maxRows: u,
|
|
476
477
|
minRows: E,
|
|
477
478
|
...v
|
|
478
|
-
},
|
|
479
|
+
}, Z = Se);
|
|
479
480
|
const ke = (a) => {
|
|
480
481
|
A(a.animationName === "mui-auto-fill-cancel" ? z.current : {
|
|
481
482
|
value: "x"
|
|
@@ -484,7 +485,7 @@ const Xe = (t, o) => {
|
|
|
484
485
|
l.useEffect(() => {
|
|
485
486
|
s && s.setAdornedStart(!!k);
|
|
486
487
|
}, [s, k]);
|
|
487
|
-
const
|
|
488
|
+
const J = {
|
|
488
489
|
...d,
|
|
489
490
|
color: y.color || "primary",
|
|
490
491
|
disabled: y.disabled,
|
|
@@ -498,25 +499,25 @@ const Xe = (t, o) => {
|
|
|
498
499
|
size: y.size,
|
|
499
500
|
startAdornment: k,
|
|
500
501
|
type: ae
|
|
501
|
-
}, se =
|
|
502
|
+
}, se = Qe(J), le = ie.root || S.Root || Xe, Q = re.root || f.root || {}, ue = ie.input || S.Input || eo;
|
|
502
503
|
return v = {
|
|
503
504
|
...v,
|
|
504
505
|
...re.input ?? f.input
|
|
505
|
-
}, /* @__PURE__ */
|
|
506
|
+
}, /* @__PURE__ */ X(l.Fragment, {
|
|
506
507
|
children: [!C && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
507
508
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
508
|
-
(be || (be = /* @__PURE__ */ B(ye, {}))), /* @__PURE__ */
|
|
509
|
-
...
|
|
509
|
+
(be || (be = /* @__PURE__ */ B(ye, {}))), /* @__PURE__ */ X(le, {
|
|
510
|
+
...Q,
|
|
510
511
|
ref: r,
|
|
511
512
|
onClick: Fe,
|
|
512
513
|
...Te,
|
|
513
514
|
...!fe(le) && {
|
|
514
515
|
ownerState: {
|
|
515
|
-
...
|
|
516
|
-
...
|
|
516
|
+
...J,
|
|
517
|
+
...Q.ownerState
|
|
517
518
|
}
|
|
518
519
|
},
|
|
519
|
-
className: pe(se.root,
|
|
520
|
+
className: pe(se.root, Q.className, T, _ && "MuiInputBase-readOnly"),
|
|
520
521
|
children: [k, /* @__PURE__ */ B(Pe.Provider, {
|
|
521
522
|
value: null,
|
|
522
523
|
children: /* @__PURE__ */ B(ue, {
|
|
@@ -539,9 +540,9 @@ const Xe = (t, o) => {
|
|
|
539
540
|
type: ae,
|
|
540
541
|
...v,
|
|
541
542
|
...!fe(ue) && {
|
|
542
|
-
as:
|
|
543
|
+
as: Z,
|
|
543
544
|
ownerState: {
|
|
544
|
-
...
|
|
545
|
+
...J,
|
|
545
546
|
...v.ownerState
|
|
546
547
|
}
|
|
547
548
|
},
|
|
@@ -653,7 +654,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
653
654
|
* Either a string to use a HTML element or a component.
|
|
654
655
|
* @default 'input'
|
|
655
656
|
*/
|
|
656
|
-
inputComponent:
|
|
657
|
+
inputComponent: Ge,
|
|
657
658
|
/**
|
|
658
659
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
659
660
|
* @default {}
|
|
@@ -662,7 +663,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
662
663
|
/**
|
|
663
664
|
* Pass a ref to the `input` element.
|
|
664
665
|
*/
|
|
665
|
-
inputRef:
|
|
666
|
+
inputRef: $e,
|
|
666
667
|
/**
|
|
667
668
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
668
669
|
* FormControl.
|
|
@@ -788,9 +789,9 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
788
789
|
});
|
|
789
790
|
export {
|
|
790
791
|
oo as I,
|
|
791
|
-
|
|
792
|
+
Xe as a,
|
|
792
793
|
eo as b,
|
|
793
|
-
|
|
794
|
+
Je as c,
|
|
794
795
|
te as i,
|
|
795
|
-
|
|
796
|
+
Ze as r
|
|
796
797
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const qe=require("react"),e=require("./index-kjfz41UI.cjs"),A=require("./generateUtilityClasses-BMLLB4Uz.cjs"),fe=require("./isHostComponent-PydJW4A4.cjs"),Me=require("./formControlState-CuX6WjAX.cjs"),ye=require("./useFormControl-haP0iPhl.cjs"),We=require("./index-C7LHZznM.cjs"),ge=require("./memoTheme-DZ3r2a_u.cjs"),De=require("./utils-BWx1W_q1.cjs"),v=require("react/jsx-runtime"),V=require("./DefaultPropsProvider--EgnwFDi.cjs"),Pe=require("./useForkRef-CFhhTu-Q.cjs"),L=require("./useEventCallback-BxpcFap0.cjs"),me=require("./ownerWindow-DDHucZi0.cjs"),Le=require("./debounce-DpCj7ugL.cjs"),ne=require("./capitalize-nmXHj--f.cjs"),Ue=require("./refType-DJyA--UV.cjs"),Ve=require("./elementTypeAcceptingRef-vjR5jGLx.cjs");function _e(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const l=_e(qe);function D(t){return parseInt(t,10)||0}const $e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ke(t){for(const o in t)return!1;return!0}function he(t){return Ke(t)||t.outerHeightStyle===0&&!t.overflowing}const ve=l.forwardRef(function(o,n){const{onChange:u,maxRows:m,minRows:d=1,style:S,value:R,...j}=o,{current:w}=l.useRef(R!=null),f=l.useRef(null),O=Pe.useForkRef(n,f),y=l.useRef(null),x=l.useRef(null),b=l.useCallback(()=>{const s=f.current,r=x.current;if(!s||!r)return;const p=me.ownerWindow(s).getComputedStyle(s);if(p.width==="0px")return{outerHeightStyle:0,overflowing:!1};r.style.width=p.width,r.value=s.value||o.placeholder||"x",r.value.slice(-1)===`
|
|
2
|
+
`&&(r.value+=" ");const E=p.boxSizing,H=D(p.paddingBottom)+D(p.paddingTop),$=D(p.borderBottomWidth)+D(p.borderTopWidth),P=r.scrollHeight;r.value="x";const I=r.scrollHeight;let h=P;d&&(h=Math.max(Number(d)*I,h)),m&&(h=Math.min(Number(m)*I,h)),h=Math.max(h,I);const q=h+(E==="border-box"?H+$:0),K=Math.abs(h-P)<=1;return{outerHeightStyle:q,overflowing:K}},[m,d,o.placeholder]),k=L.useEventCallback(()=>{const s=f.current,r=b();if(!s||!r||he(r))return!1;const c=r.outerHeightStyle;return y.current!=null&&y.current!==c}),C=l.useCallback(()=>{const s=f.current,r=b();if(!s||!r||he(r))return;const c=r.outerHeightStyle;y.current!==c&&(y.current=c,s.style.height=`${c}px`),s.style.overflow=r.overflowing?"hidden":""},[b]),N=l.useRef(-1);L.useEnhancedEffect(()=>{const s=Le.debounce(C),r=f==null?void 0:f.current;if(!r)return;const c=me.ownerWindow(r);c.addEventListener("resize",s);let p;return typeof ResizeObserver<"u"&&(p=new ResizeObserver(()=>{k()&&(p.unobserve(r),cancelAnimationFrame(N.current),C(),N.current=requestAnimationFrame(()=>{p.observe(r)}))}),p.observe(r)),()=>{s.clear(),cancelAnimationFrame(N.current),c.removeEventListener("resize",s),p&&p.disconnect()}},[b,C,k]),L.useEnhancedEffect(()=>{C()});const _=s=>{w||C();const r=s.target,c=r.value.length,p=r.value.endsWith(`
|
|
3
|
+
`),E=r.selectionStart===c;p&&E&&r.setSelectionRange(c,c),u&&u(s)};return v.jsxs(l.Fragment,{children:[v.jsx("textarea",{value:R,onChange:_,ref:O,rows:d,style:S,...j}),v.jsx("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:x,tabIndex:-1,style:{...$e.shadow,...S,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(ve.propTypes={className:e.PropTypes.string,maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),onChange:e.PropTypes.func,placeholder:e.PropTypes.string,style:e.PropTypes.object,value:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.number,e.PropTypes.string])});function Ge(t){return A.generateUtilityClass("MuiInputBase",t)}const U=A.generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Te;const we=(t,o)=>{const{ownerState:n}=t;return[o.root,n.formControl&&o.formControl,n.startAdornment&&o.adornedStart,n.endAdornment&&o.adornedEnd,n.error&&o.error,n.size==="small"&&o.sizeSmall,n.multiline&&o.multiline,n.color&&o[`color${ne.capitalize(n.color)}`],n.fullWidth&&o.fullWidth,n.hiddenLabel&&o.hiddenLabel]},xe=(t,o)=>{const{ownerState:n}=t;return[o.input,n.size==="small"&&o.inputSizeSmall,n.multiline&&o.inputMultiline,n.type==="search"&&o.inputTypeSearch,n.startAdornment&&o.inputAdornedStart,n.endAdornment&&o.inputAdornedEnd,n.hiddenLabel&&o.inputHiddenLabel]},Ye=t=>{const{classes:o,color:n,disabled:u,error:m,endAdornment:d,focused:S,formControl:R,fullWidth:j,hiddenLabel:w,multiline:f,readOnly:O,size:y,startAdornment:x,type:b}=t,k={root:["root",`color${ne.capitalize(n)}`,u&&"disabled",m&&"error",j&&"fullWidth",S&&"focused",R&&"formControl",y&&y!=="medium"&&`size${ne.capitalize(y)}`,f&&"multiline",x&&"adornedStart",d&&"adornedEnd",w&&"hiddenLabel",O&&"readOnly"],input:["input",u&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",w&&"inputHiddenLabel",x&&"inputAdornedStart",d&&"inputAdornedEnd",O&&"readOnly"]};return V.composeClasses(k,Ge,o)},Ce=V.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:we})(ge.memoTheme(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${U.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:o})=>o.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:o,size:n})=>o.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:o})=>o.fullWidth,style:{width:"100%"}}]}))),Se=V.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xe})(ge.memoTheme(({theme:t})=>{const o=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},u={opacity:"0 !important"},m=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${U.formControl} &`]:{"&::-webkit-input-placeholder":u,"&::-moz-placeholder":u,"&::-ms-input-placeholder":u,"&:focus::-webkit-input-placeholder":m,"&:focus::-moz-placeholder":m,"&:focus::-ms-input-placeholder":m},[`&.${U.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:d})=>!d.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:d})=>d.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),be=We.globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Re=l.forwardRef(function(o,n){const u=V.useDefaultProps({props:o,name:"MuiInputBase"}),{"aria-describedby":m,autoComplete:d,autoFocus:S,className:R,color:j,components:w={},componentsProps:f={},defaultValue:O,disabled:y,disableInjectingGlobalStyles:x,endAdornment:b,error:k,fullWidth:C=!1,id:N,inputComponent:_="input",inputProps:s={},inputRef:r,margin:c,maxRows:p,minRows:E,multiline:H=!1,name:$,onBlur:P,onChange:I,onClick:h,onFocus:q,onKeyDown:K,onKeyUp:Oe,placeholder:Ee,readOnly:G,renderSuffix:re,rows:M,size:Ze,slotProps:se={},slots:ie={},startAdornment:B,type:ae="text",value:Ie,...ze}=u,W=s.value!=null?s.value:Ie,{current:Y}=l.useRef(W!=null),z=l.useRef(),ke=l.useCallback(i=>{process.env.NODE_ENV!=="production"&&i&&i.nodeName!=="INPUT"&&!i.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
4
|
+
`))},[]),Ne=Pe.useForkRef(z,r,s.ref,ke),[Z,J]=l.useState(!1),a=ye.useFormControl();process.env.NODE_ENV!=="production"&&l.useEffect(()=>{if(a)return a.registerEffect()},[a]);const T=Me.formControlState({props:u,muiFormControl:a,states:["color","disabled","error","hiddenLabel","size","required","filled"]});T.focused=a?a.focused:Z,l.useEffect(()=>{!a&&y&&Z&&(J(!1),P&&P())},[a,y,Z,P]);const Q=a&&a.onFilled,X=a&&a.onEmpty,F=l.useCallback(i=>{De.isFilled(i)?Q&&Q():X&&X()},[Q,X]);L.useEnhancedEffect(()=>{Y&&F({value:W})},[W,F,Y]);const Be=i=>{q&&q(i),s.onFocus&&s.onFocus(i),a&&a.onFocus?a.onFocus(i):J(!0)},Fe=i=>{P&&P(i),s.onBlur&&s.onBlur(i),a&&a.onBlur?a.onBlur(i):J(!1)},Ae=(i,...ce)=>{if(!Y){const de=i.target||z.current;if(de==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":A.formatMuiErrorMessage(1));F({value:de.value})}s.onChange&&s.onChange(i,...ce),I&&I(i,...ce)};l.useEffect(()=>{F(z.current)},[]);const je=i=>{z.current&&i.currentTarget===i.target&&z.current.focus(),h&&h(i)};let ee=_,g=s;H&&ee==="input"&&(M?(process.env.NODE_ENV!=="production"&&(E||p)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),g={type:void 0,minRows:M,maxRows:M,...g}):g={type:void 0,maxRows:p,minRows:E,...g},ee=ve);const He=i=>{F(i.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};l.useEffect(()=>{a&&a.setAdornedStart(!!B)},[a,B]);const oe={...u,color:T.color||"primary",disabled:T.disabled,endAdornment:b,error:T.error,focused:T.focused,formControl:a,fullWidth:C,hiddenLabel:T.hiddenLabel,multiline:H,size:T.size,startAdornment:B,type:ae},le=Ye(oe),pe=ie.root||w.Root||Ce,te=se.root||f.root||{},ue=ie.input||w.Input||Se;return g={...g,...se.input??f.input},v.jsxs(l.Fragment,{children:[!x&&typeof be=="function"&&(Te||(Te=v.jsx(be,{}))),v.jsxs(pe,{...te,ref:n,onClick:je,...ze,...!fe.isHostComponent(pe)&&{ownerState:{...oe,...te.ownerState}},className:A.clsx(le.root,te.className,R,G&&"MuiInputBase-readOnly"),children:[B,v.jsx(ye.FormControlContext.Provider,{value:null,children:v.jsx(ue,{"aria-invalid":T.error,"aria-describedby":m,autoComplete:d,autoFocus:S,defaultValue:O,disabled:T.disabled,id:N,onAnimationStart:He,name:$,placeholder:Ee,readOnly:G,required:T.required,rows:M,value:W,onKeyDown:K,onKeyUp:Oe,type:ae,...g,...!fe.isHostComponent(ue)&&{as:ee,ownerState:{...oe,...g.ownerState}},ref:Ne,className:A.clsx(le.input,g.className,G&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:Ae,onFocus:Be})}),b,re?re({...T,startAdornment:B}):null]})]})});process.env.NODE_ENV!=="production"&&(Re.propTypes={"aria-describedby":e.PropTypes.string,autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({Input:e.PropTypes.elementType,Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,disableInjectingGlobalStyles:e.PropTypes.bool,endAdornment:e.PropTypes.node,error:e.PropTypes.bool,fullWidth:e.PropTypes.bool,id:e.PropTypes.string,inputComponent:Ve.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:Ue.refType,margin:e.PropTypes.oneOf(["dense","none"]),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,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,onInvalid:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,placeholder:e.PropTypes.string,readOnly:e.PropTypes.bool,renderSuffix:e.PropTypes.func,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),startAdornment:e.PropTypes.node,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});exports.InputBase=Re;exports.InputBaseInput=Se;exports.InputBaseRoot=Ce;exports.inputBaseClasses=U;exports.inputOverridesResolver=xe;exports.rootOverridesResolver=we;
|