@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750693982
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-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
- 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-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
- package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/Badge-Bwcsnbsa.js +465 -0
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-Bpxbxvyb.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-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
- package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/Grid-DFk-4jnZ.js +411 -0
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/ListItemText-qfdqJP77.js +441 -0
- package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/Paper-IQckggbn.js +158 -0
- package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/Stepper-DE2l91K0.js +965 -0
- package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-DwMlN0K5.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/ButtonGroup/ButtonGroup.cjs.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
- package/dist/components/ButtonGroup/index.cjs.js +1 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.es.js +4 -0
- package/dist/components/ButtonGroup/style.cjs.js +1 -0
- package/dist/components/ButtonGroup/style.es.js +29 -0
- package/dist/components/ButtonGroup/types.cjs.js +1 -0
- package/dist/components/ButtonGroup/types.d.ts +22 -0
- package/dist/components/ButtonGroup/types.es.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
- package/dist/components/ColorPicker/styles.es.js +13 -11
- 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 +8 -3
- 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.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +13 -12
- 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 +3 -3
- 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.d.ts +7 -2
- package/dist/components/index.es.js +402 -391
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -0
- package/dist/components/stories/Badge.stories.d.ts +17 -0
- package/dist/components/stories/Badge.stories.es.js +188 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.d.ts +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
- package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
- package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.d.ts +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.d.ts +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.d.ts +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.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/Dropzone.stories.d.ts +1 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
- package/dist/components/stories/EmptyState.stories.d.ts +1 -1
- package/dist/components/stories/FileList.stories.d.ts +1 -1
- package/dist/components/stories/FolderCard.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Loader.stories.d.ts +1 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/SearchInput.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +1 -1
- package/dist/components/stories/TreeView.stories.es.js +39 -38
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.d.ts +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
- package/dist/{index-l8yqod25.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 +402 -391
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-BBciKnr4.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/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
- package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
- package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
- package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
- package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-D9cVynB-.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-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-DQOn-ezC.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
- package/dist/useThemeProps-CQ9rZe7g.js +17 -0
- package/package.json +12 -11
- package/dist/Alert-DW8yCR-B.cjs +0 -1
- package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
- package/dist/Backdrop-3TL73mAe.cjs +0 -1
- package/dist/Badge-DhyDno9j.cjs +0 -138
- package/dist/Box-DYD6q-6M.cjs +0 -1
- package/dist/Button-y1LmxqGA.cjs +0 -1
- package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
- package/dist/CardContent-ji0_AneN.cjs +0 -1
- package/dist/Checkbox-XXqW_dbW.cjs +0 -1
- package/dist/Chip-Bpcd3tnL.cjs +0 -1
- package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
- package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
- package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
- package/dist/DatePicker-BMzW4v1g.js +0 -10255
- package/dist/DatePicker-CNhBoaI3.cjs +0 -14
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
- package/dist/Dialog-B2LKe7ZM.cjs +0 -1
- package/dist/DialogContent-BbCu_OEw.cjs +0 -1
- package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
- package/dist/Divider-Cshcr5kR.cjs +0 -1
- package/dist/FormLabel-0LbNeQQU.cjs +0 -2
- package/dist/Grow-aEgTOewU.cjs +0 -1
- package/dist/IconButton-BKwDNYJl.cjs +0 -2
- package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
- package/dist/InputBase-pYQWRFK2.cjs +0 -3
- package/dist/Link-DUtuCYMx.cjs +0 -1
- package/dist/List-BH_S4Hqm.cjs +0 -1
- package/dist/ListItem-D33t-hkx.cjs +0 -1
- package/dist/ListItemText-B8jlTz59.cjs +0 -2
- package/dist/ListItemText-BeyHu1da.js +0 -853
- package/dist/Menu-BjrN8rMF.cjs +0 -7
- package/dist/MenuItem-Cz_x60jl.cjs +0 -1
- package/dist/Modal-DxwlW5NV.cjs +0 -2
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/Popper-yO_RaCbM.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-C7zzpRFc.cjs +0 -1
- package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
- package/dist/Select-Doay7ukI.cjs +0 -3
- package/dist/Stack-BVWbOqY_.cjs +0 -1
- package/dist/Switch-CEfqaD33.cjs +0 -1
- package/dist/SwitchBase-DvCITKv8.cjs +0 -1
- package/dist/Tab-C6H241Pf.cjs +0 -4
- package/dist/TextField-bE2NUKKK.cjs +0 -1
- package/dist/Tooltip-D_w-IJoD.cjs +0 -4
- package/dist/Typography-De-21leI.cjs +0 -1
- package/dist/capitalize-BHFotl9B.js +0 -9
- package/dist/capitalize-CKLkSyDO.cjs +0 -1
- package/dist/composeClasses-CJKlIaRn.js +0 -51
- package/dist/composeClasses-CWgX5SFD.cjs +0 -1
- package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
- package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
- package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-BzsuDIEl.cjs +0 -1
- package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-W0PiuVaZ.cjs +0 -1
- package/dist/useTheme-C59wIJ3-.js +0 -11
- package/dist/useTheme-ClhInrO2.cjs +0 -1
- package/dist/useTheme-CqYtLDbs.cjs +0 -1
- package/dist/useThemeProps-BFQ8ndnj.js +0 -17
- package/dist/useThemeProps-DYpozGhe.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as Ae, G as Be, H as pe,
|
|
3
|
+
import { F as Ae, G as Be, H as pe, K as Q, X as He } from "./identifier-PWESmBq6.js";
|
|
4
4
|
import { i as fe } from "./isHostComponent-kiaBvYVo.js";
|
|
5
5
|
import { f as Me } from "./formControlState-vgaj2ksH.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { g as
|
|
8
|
-
import { m as ge } from "./memoTheme-
|
|
9
|
-
import { i as
|
|
10
|
-
import { jsxs as
|
|
11
|
-
import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-
|
|
6
|
+
import { u as We, F as Pe } from "./useFormControl-CatNKXAi.js";
|
|
7
|
+
import { g as Le } from "./index-8G2jvqZ8.js";
|
|
8
|
+
import { m as ge } from "./memoTheme-DAFDflPY.js";
|
|
9
|
+
import { i as De } from "./utils-DWqc1kRF.js";
|
|
10
|
+
import { jsxs as ee, jsx as B } from "react/jsx-runtime";
|
|
11
|
+
import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
12
12
|
import { u as we } from "./useForkRef-u29GSuCu.js";
|
|
13
|
-
import {
|
|
13
|
+
import { a as Ve, u as oe } 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 {
|
|
18
|
-
|
|
19
|
-
function L(t) {
|
|
16
|
+
import { r as Ke } from "./refType-Dp7CJc86.js";
|
|
17
|
+
import { e as $e } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
18
|
+
function D(t) {
|
|
20
19
|
return parseInt(t, 10) || 0;
|
|
21
20
|
}
|
|
22
|
-
const
|
|
21
|
+
const Ge = {
|
|
23
22
|
shadow: {
|
|
24
23
|
// Visibility needed to hide the extra text area on iPads
|
|
25
24
|
visibility: "hidden",
|
|
@@ -42,87 +41,90 @@ function qe(t) {
|
|
|
42
41
|
function he(t) {
|
|
43
42
|
return qe(t) || t.outerHeightStyle === 0 && !t.overflowing;
|
|
44
43
|
}
|
|
45
|
-
const Se = /* @__PURE__ */ l.forwardRef(function(o,
|
|
44
|
+
const Se = /* @__PURE__ */ l.forwardRef(function(o, r) {
|
|
46
45
|
const {
|
|
47
46
|
onChange: d,
|
|
48
|
-
maxRows:
|
|
49
|
-
minRows:
|
|
47
|
+
maxRows: h,
|
|
48
|
+
minRows: p = 1,
|
|
50
49
|
style: R,
|
|
51
50
|
value: T,
|
|
52
|
-
...
|
|
51
|
+
...H
|
|
53
52
|
} = o, {
|
|
54
53
|
current: S
|
|
55
|
-
} = l.useRef(T != null),
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
54
|
+
} = l.useRef(T != null), f = l.useRef(null), O = we(r, f), m = l.useRef(null), C = l.useRef(null), g = l.useCallback(() => {
|
|
55
|
+
const i = f.current, n = C.current;
|
|
56
|
+
if (!i || !n)
|
|
58
57
|
return;
|
|
59
|
-
const u = me(
|
|
58
|
+
const u = me(i).getComputedStyle(i);
|
|
60
59
|
if (u.width === "0px")
|
|
61
60
|
return {
|
|
62
61
|
outerHeightStyle: 0,
|
|
63
62
|
overflowing: !1
|
|
64
63
|
};
|
|
65
|
-
|
|
66
|
-
` && (
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
const
|
|
64
|
+
n.style.width = u.width, n.value = i.value || o.placeholder || "x", n.value.slice(-1) === `
|
|
65
|
+
` && (n.value += " ");
|
|
66
|
+
const E = u.boxSizing, M = D(u.paddingBottom) + D(u.paddingTop), U = D(u.borderBottomWidth) + D(u.borderTopWidth), w = n.scrollHeight;
|
|
67
|
+
n.value = "x";
|
|
68
|
+
const I = n.scrollHeight;
|
|
69
|
+
let b = w;
|
|
70
|
+
p && (b = Math.max(Number(p) * I, b)), h && (b = Math.min(Number(h) * I, b)), b = Math.max(b, I);
|
|
71
|
+
const W = b + (E === "border-box" ? M + U : 0), V = Math.abs(b - w) <= 1;
|
|
73
72
|
return {
|
|
74
|
-
outerHeightStyle:
|
|
73
|
+
outerHeightStyle: W,
|
|
75
74
|
overflowing: V
|
|
76
75
|
};
|
|
77
|
-
}, [
|
|
78
|
-
const
|
|
79
|
-
if (!
|
|
76
|
+
}, [h, p, o.placeholder]), N = Ve(() => {
|
|
77
|
+
const i = f.current, n = g();
|
|
78
|
+
if (!i || !n || he(n))
|
|
80
79
|
return !1;
|
|
81
|
-
const
|
|
82
|
-
return
|
|
83
|
-
}),
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
80
|
+
const c = n.outerHeightStyle;
|
|
81
|
+
return m.current != null && m.current !== c;
|
|
82
|
+
}), x = l.useCallback(() => {
|
|
83
|
+
const i = f.current, n = g();
|
|
84
|
+
if (!i || !n || he(n))
|
|
86
85
|
return;
|
|
87
|
-
const
|
|
88
|
-
|
|
86
|
+
const c = n.outerHeightStyle;
|
|
87
|
+
m.current !== c && (m.current = c, i.style.height = `${c}px`), i.style.overflow = n.overflowing ? "hidden" : "";
|
|
89
88
|
}, [g]), F = l.useRef(-1);
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
if (!
|
|
89
|
+
oe(() => {
|
|
90
|
+
const i = _e(x), n = f == null ? void 0 : f.current;
|
|
91
|
+
if (!n)
|
|
93
92
|
return;
|
|
94
|
-
const
|
|
95
|
-
|
|
93
|
+
const c = me(n);
|
|
94
|
+
c.addEventListener("resize", i);
|
|
96
95
|
let u;
|
|
97
96
|
return typeof ResizeObserver < "u" && (u = new ResizeObserver(() => {
|
|
98
|
-
|
|
99
|
-
u.observe(
|
|
97
|
+
N() && (u.unobserve(n), cancelAnimationFrame(F.current), x(), F.current = requestAnimationFrame(() => {
|
|
98
|
+
u.observe(n);
|
|
100
99
|
}));
|
|
101
|
-
}), u.observe(
|
|
102
|
-
|
|
100
|
+
}), u.observe(n)), () => {
|
|
101
|
+
i.clear(), cancelAnimationFrame(F.current), c.removeEventListener("resize", i), u && u.disconnect();
|
|
103
102
|
};
|
|
104
|
-
}, [g,
|
|
105
|
-
|
|
103
|
+
}, [g, x, N]), oe(() => {
|
|
104
|
+
x();
|
|
106
105
|
});
|
|
107
|
-
const j = (
|
|
108
|
-
S ||
|
|
106
|
+
const j = (i) => {
|
|
107
|
+
S || x();
|
|
108
|
+
const n = i.target, c = n.value.length, u = n.value.endsWith(`
|
|
109
|
+
`), E = n.selectionStart === c;
|
|
110
|
+
u && E && n.setSelectionRange(c, c), d && d(i);
|
|
109
111
|
};
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
children: [/* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ ee(l.Fragment, {
|
|
113
|
+
children: [/* @__PURE__ */ B("textarea", {
|
|
112
114
|
value: T,
|
|
113
115
|
onChange: j,
|
|
114
116
|
ref: O,
|
|
115
|
-
rows:
|
|
117
|
+
rows: p,
|
|
116
118
|
style: R,
|
|
117
|
-
...
|
|
118
|
-
}), /* @__PURE__ */
|
|
119
|
+
...H
|
|
120
|
+
}), /* @__PURE__ */ B("textarea", {
|
|
119
121
|
"aria-hidden": !0,
|
|
120
122
|
className: o.className,
|
|
121
123
|
readOnly: !0,
|
|
122
|
-
ref:
|
|
124
|
+
ref: C,
|
|
123
125
|
tabIndex: -1,
|
|
124
126
|
style: {
|
|
125
|
-
...
|
|
127
|
+
...Ge.shadow,
|
|
126
128
|
...R,
|
|
127
129
|
paddingTop: 0,
|
|
128
130
|
paddingBottom: 0
|
|
@@ -170,41 +172,41 @@ function Ye(t) {
|
|
|
170
172
|
}
|
|
171
173
|
const te = Ae("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
172
174
|
var be;
|
|
173
|
-
const
|
|
175
|
+
const Xe = (t, o) => {
|
|
174
176
|
const {
|
|
175
|
-
ownerState:
|
|
177
|
+
ownerState: r
|
|
176
178
|
} = t;
|
|
177
|
-
return [o.root,
|
|
178
|
-
},
|
|
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${Q(r.color)}`], r.fullWidth && o.fullWidth, r.hiddenLabel && o.hiddenLabel];
|
|
180
|
+
}, Ze = (t, o) => {
|
|
179
181
|
const {
|
|
180
|
-
ownerState:
|
|
182
|
+
ownerState: r
|
|
181
183
|
} = t;
|
|
182
|
-
return [o.input,
|
|
183
|
-
},
|
|
184
|
+
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
|
+
}, Je = (t) => {
|
|
184
186
|
const {
|
|
185
187
|
classes: o,
|
|
186
|
-
color:
|
|
188
|
+
color: r,
|
|
187
189
|
disabled: d,
|
|
188
|
-
error:
|
|
189
|
-
endAdornment:
|
|
190
|
+
error: h,
|
|
191
|
+
endAdornment: p,
|
|
190
192
|
focused: R,
|
|
191
193
|
formControl: T,
|
|
192
|
-
fullWidth:
|
|
194
|
+
fullWidth: H,
|
|
193
195
|
hiddenLabel: S,
|
|
194
|
-
multiline:
|
|
196
|
+
multiline: f,
|
|
195
197
|
readOnly: O,
|
|
196
|
-
size:
|
|
197
|
-
startAdornment:
|
|
198
|
+
size: m,
|
|
199
|
+
startAdornment: C,
|
|
198
200
|
type: g
|
|
199
|
-
} = t,
|
|
200
|
-
root: ["root", `color${
|
|
201
|
-
input: ["input", d && "disabled", g === "search" && "inputTypeSearch",
|
|
201
|
+
} = t, N = {
|
|
202
|
+
root: ["root", `color${Q(r)}`, d && "disabled", h && "error", H && "fullWidth", R && "focused", T && "formControl", m && m !== "medium" && `size${Q(m)}`, f && "multiline", C && "adornedStart", p && "adornedEnd", S && "hiddenLabel", O && "readOnly"],
|
|
203
|
+
input: ["input", d && "disabled", g === "search" && "inputTypeSearch", f && "inputMultiline", m === "small" && "inputSizeSmall", S && "inputHiddenLabel", C && "inputAdornedStart", p && "inputAdornedEnd", O && "readOnly"]
|
|
202
204
|
};
|
|
203
|
-
return Ue(
|
|
204
|
-
},
|
|
205
|
+
return Ue(N, Ye, o);
|
|
206
|
+
}, Qe = ve("div", {
|
|
205
207
|
name: "MuiInputBase",
|
|
206
208
|
slot: "Root",
|
|
207
|
-
overridesResolver:
|
|
209
|
+
overridesResolver: Xe
|
|
208
210
|
})(ge(({
|
|
209
211
|
theme: t
|
|
210
212
|
}) => ({
|
|
@@ -232,8 +234,8 @@ const Ze = (t, o) => {
|
|
|
232
234
|
}, {
|
|
233
235
|
props: ({
|
|
234
236
|
ownerState: o,
|
|
235
|
-
size:
|
|
236
|
-
}) => o.multiline &&
|
|
237
|
+
size: r
|
|
238
|
+
}) => o.multiline && r === "small",
|
|
237
239
|
style: {
|
|
238
240
|
paddingTop: 1
|
|
239
241
|
}
|
|
@@ -248,11 +250,11 @@ const Ze = (t, o) => {
|
|
|
248
250
|
}))), eo = ve("input", {
|
|
249
251
|
name: "MuiInputBase",
|
|
250
252
|
slot: "Input",
|
|
251
|
-
overridesResolver:
|
|
253
|
+
overridesResolver: Ze
|
|
252
254
|
})(ge(({
|
|
253
255
|
theme: t
|
|
254
256
|
}) => {
|
|
255
|
-
const o = t.palette.mode === "light",
|
|
257
|
+
const o = t.palette.mode === "light", r = {
|
|
256
258
|
color: "currentColor",
|
|
257
259
|
...t.vars ? {
|
|
258
260
|
opacity: t.vars.opacity.inputPlaceholder
|
|
@@ -264,7 +266,7 @@ const Ze = (t, o) => {
|
|
|
264
266
|
})
|
|
265
267
|
}, d = {
|
|
266
268
|
opacity: "0 !important"
|
|
267
|
-
},
|
|
269
|
+
}, h = t.vars ? {
|
|
268
270
|
opacity: t.vars.opacity.inputPlaceholder
|
|
269
271
|
} : {
|
|
270
272
|
opacity: o ? 0.42 : 0.5
|
|
@@ -286,10 +288,10 @@ const Ze = (t, o) => {
|
|
|
286
288
|
// Make the flex item shrink with Firefox
|
|
287
289
|
minWidth: 0,
|
|
288
290
|
width: "100%",
|
|
289
|
-
"&::-webkit-input-placeholder":
|
|
290
|
-
"&::-moz-placeholder":
|
|
291
|
+
"&::-webkit-input-placeholder": r,
|
|
292
|
+
"&::-moz-placeholder": r,
|
|
291
293
|
// Firefox 19+
|
|
292
|
-
"&::-ms-input-placeholder":
|
|
294
|
+
"&::-ms-input-placeholder": r,
|
|
293
295
|
// Edge
|
|
294
296
|
"&:focus": {
|
|
295
297
|
outline: 0
|
|
@@ -309,10 +311,10 @@ const Ze = (t, o) => {
|
|
|
309
311
|
// Firefox 19+
|
|
310
312
|
"&::-ms-input-placeholder": d,
|
|
311
313
|
// Edge
|
|
312
|
-
"&:focus::-webkit-input-placeholder":
|
|
313
|
-
"&:focus::-moz-placeholder":
|
|
314
|
+
"&:focus::-webkit-input-placeholder": h,
|
|
315
|
+
"&:focus::-moz-placeholder": h,
|
|
314
316
|
// Firefox 19+
|
|
315
|
-
"&:focus::-ms-input-placeholder":
|
|
317
|
+
"&:focus::-ms-input-placeholder": h
|
|
316
318
|
// Edge
|
|
317
319
|
},
|
|
318
320
|
[`&.${te.disabled}`]: {
|
|
@@ -323,8 +325,8 @@ const Ze = (t, o) => {
|
|
|
323
325
|
},
|
|
324
326
|
variants: [{
|
|
325
327
|
props: ({
|
|
326
|
-
ownerState:
|
|
327
|
-
}) => !
|
|
328
|
+
ownerState: p
|
|
329
|
+
}) => !p.disableInjectingGlobalStyles,
|
|
328
330
|
style: {
|
|
329
331
|
animationName: "mui-auto-fill-cancel",
|
|
330
332
|
animationDuration: "10ms",
|
|
@@ -342,8 +344,8 @@ const Ze = (t, o) => {
|
|
|
342
344
|
}
|
|
343
345
|
}, {
|
|
344
346
|
props: ({
|
|
345
|
-
ownerState:
|
|
346
|
-
}) =>
|
|
347
|
+
ownerState: p
|
|
348
|
+
}) => p.multiline,
|
|
347
349
|
style: {
|
|
348
350
|
height: "auto",
|
|
349
351
|
resize: "none",
|
|
@@ -360,7 +362,7 @@ const Ze = (t, o) => {
|
|
|
360
362
|
}
|
|
361
363
|
}]
|
|
362
364
|
};
|
|
363
|
-
})), ye =
|
|
365
|
+
})), ye = Le({
|
|
364
366
|
"@keyframes mui-auto-fill": {
|
|
365
367
|
from: {
|
|
366
368
|
display: "block"
|
|
@@ -371,187 +373,187 @@ const Ze = (t, o) => {
|
|
|
371
373
|
display: "block"
|
|
372
374
|
}
|
|
373
375
|
}
|
|
374
|
-
}), oo = /* @__PURE__ */ l.forwardRef(function(o,
|
|
376
|
+
}), oo = /* @__PURE__ */ l.forwardRef(function(o, r) {
|
|
375
377
|
const d = je({
|
|
376
378
|
props: o,
|
|
377
379
|
name: "MuiInputBase"
|
|
378
380
|
}), {
|
|
379
|
-
"aria-describedby":
|
|
380
|
-
autoComplete:
|
|
381
|
+
"aria-describedby": h,
|
|
382
|
+
autoComplete: p,
|
|
381
383
|
autoFocus: R,
|
|
382
384
|
className: T,
|
|
383
|
-
color:
|
|
385
|
+
color: H,
|
|
384
386
|
components: S = {},
|
|
385
|
-
componentsProps:
|
|
387
|
+
componentsProps: f = {},
|
|
386
388
|
defaultValue: O,
|
|
387
|
-
disabled:
|
|
388
|
-
disableInjectingGlobalStyles:
|
|
389
|
+
disabled: m,
|
|
390
|
+
disableInjectingGlobalStyles: C,
|
|
389
391
|
endAdornment: g,
|
|
390
|
-
error:
|
|
391
|
-
fullWidth:
|
|
392
|
+
error: N,
|
|
393
|
+
fullWidth: x = !1,
|
|
392
394
|
id: F,
|
|
393
395
|
inputComponent: j = "input",
|
|
394
|
-
inputProps:
|
|
395
|
-
inputRef:
|
|
396
|
-
margin:
|
|
396
|
+
inputProps: i = {},
|
|
397
|
+
inputRef: n,
|
|
398
|
+
margin: c,
|
|
397
399
|
maxRows: u,
|
|
398
|
-
minRows:
|
|
400
|
+
minRows: E,
|
|
399
401
|
multiline: M = !1,
|
|
400
402
|
name: U,
|
|
401
403
|
onBlur: w,
|
|
402
|
-
onChange:
|
|
403
|
-
onClick:
|
|
404
|
-
onFocus:
|
|
404
|
+
onChange: I,
|
|
405
|
+
onClick: b,
|
|
406
|
+
onFocus: W,
|
|
405
407
|
onKeyDown: V,
|
|
406
|
-
onKeyUp:
|
|
407
|
-
placeholder:
|
|
408
|
+
onKeyUp: Ce,
|
|
409
|
+
placeholder: xe,
|
|
408
410
|
readOnly: _,
|
|
409
411
|
renderSuffix: ne,
|
|
410
|
-
rows:
|
|
412
|
+
rows: P,
|
|
411
413
|
size: to,
|
|
412
414
|
slotProps: re = {},
|
|
413
415
|
slots: ie = {},
|
|
414
|
-
startAdornment:
|
|
416
|
+
startAdornment: k,
|
|
415
417
|
type: ae = "text",
|
|
416
418
|
value: Re,
|
|
417
419
|
...Te
|
|
418
|
-
} = d,
|
|
419
|
-
current:
|
|
420
|
-
} = l.useRef(
|
|
420
|
+
} = d, L = i.value != null ? i.value : Re, {
|
|
421
|
+
current: K
|
|
422
|
+
} = l.useRef(L != null), z = l.useRef(), Oe = l.useCallback((a) => {
|
|
421
423
|
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(`
|
|
422
424
|
`));
|
|
423
|
-
}, []), Ee = we(
|
|
425
|
+
}, []), Ee = we(z, n, i.ref, Oe), [$, G] = l.useState(!1), s = We();
|
|
424
426
|
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
425
427
|
if (s)
|
|
426
428
|
return s.registerEffect();
|
|
427
429
|
}, [s]);
|
|
428
|
-
const
|
|
430
|
+
const y = Me({
|
|
429
431
|
props: d,
|
|
430
432
|
muiFormControl: s,
|
|
431
433
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
432
434
|
});
|
|
433
|
-
|
|
434
|
-
!s &&
|
|
435
|
-
}, [s,
|
|
436
|
-
const q = s && s.onFilled, Y = s && s.onEmpty,
|
|
437
|
-
|
|
435
|
+
y.focused = s ? s.focused : $, l.useEffect(() => {
|
|
436
|
+
!s && m && $ && (G(!1), w && w());
|
|
437
|
+
}, [s, m, $, w]);
|
|
438
|
+
const q = s && s.onFilled, Y = s && s.onEmpty, A = l.useCallback((a) => {
|
|
439
|
+
De(a) ? q && q() : Y && Y();
|
|
438
440
|
}, [q, Y]);
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
value:
|
|
441
|
+
oe(() => {
|
|
442
|
+
K && A({
|
|
443
|
+
value: L
|
|
442
444
|
});
|
|
443
|
-
}, [
|
|
445
|
+
}, [L, A, K]);
|
|
444
446
|
const Ie = (a) => {
|
|
445
|
-
|
|
447
|
+
W && W(a), i.onFocus && i.onFocus(a), s && s.onFocus ? s.onFocus(a) : G(!0);
|
|
446
448
|
}, ze = (a) => {
|
|
447
|
-
w && w(a),
|
|
448
|
-
},
|
|
449
|
-
if (
|
|
450
|
-
const
|
|
451
|
-
if (
|
|
449
|
+
w && w(a), i.onBlur && i.onBlur(a), s && s.onBlur ? s.onBlur(a) : G(!1);
|
|
450
|
+
}, Ne = (a, ...ce) => {
|
|
451
|
+
if (!K) {
|
|
452
|
+
const de = a.target || z.current;
|
|
453
|
+
if (de == null)
|
|
452
454
|
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));
|
|
453
|
-
|
|
454
|
-
value:
|
|
455
|
+
A({
|
|
456
|
+
value: de.value
|
|
455
457
|
});
|
|
456
458
|
}
|
|
457
|
-
|
|
459
|
+
i.onChange && i.onChange(a, ...ce), I && I(a, ...ce);
|
|
458
460
|
};
|
|
459
461
|
l.useEffect(() => {
|
|
460
|
-
|
|
462
|
+
A(z.current);
|
|
461
463
|
}, []);
|
|
462
|
-
const
|
|
463
|
-
|
|
464
|
+
const Fe = (a) => {
|
|
465
|
+
z.current && a.currentTarget === a.target && z.current.focus(), b && b(a);
|
|
464
466
|
};
|
|
465
|
-
let
|
|
466
|
-
M &&
|
|
467
|
+
let X = j, v = i;
|
|
468
|
+
M && X === "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 = {
|
|
467
469
|
type: void 0,
|
|
468
|
-
minRows:
|
|
469
|
-
maxRows:
|
|
470
|
+
minRows: P,
|
|
471
|
+
maxRows: P,
|
|
470
472
|
...v
|
|
471
473
|
}) : v = {
|
|
472
474
|
type: void 0,
|
|
473
475
|
maxRows: u,
|
|
474
|
-
minRows:
|
|
476
|
+
minRows: E,
|
|
475
477
|
...v
|
|
476
|
-
},
|
|
478
|
+
}, X = Se);
|
|
477
479
|
const ke = (a) => {
|
|
478
|
-
|
|
480
|
+
A(a.animationName === "mui-auto-fill-cancel" ? z.current : {
|
|
479
481
|
value: "x"
|
|
480
482
|
});
|
|
481
483
|
};
|
|
482
484
|
l.useEffect(() => {
|
|
483
|
-
s && s.setAdornedStart(!!
|
|
484
|
-
}, [s,
|
|
485
|
-
const
|
|
485
|
+
s && s.setAdornedStart(!!k);
|
|
486
|
+
}, [s, k]);
|
|
487
|
+
const Z = {
|
|
486
488
|
...d,
|
|
487
|
-
color:
|
|
488
|
-
disabled:
|
|
489
|
+
color: y.color || "primary",
|
|
490
|
+
disabled: y.disabled,
|
|
489
491
|
endAdornment: g,
|
|
490
|
-
error:
|
|
491
|
-
focused:
|
|
492
|
+
error: y.error,
|
|
493
|
+
focused: y.focused,
|
|
492
494
|
formControl: s,
|
|
493
|
-
fullWidth:
|
|
494
|
-
hiddenLabel:
|
|
495
|
+
fullWidth: x,
|
|
496
|
+
hiddenLabel: y.hiddenLabel,
|
|
495
497
|
multiline: M,
|
|
496
|
-
size:
|
|
497
|
-
startAdornment:
|
|
498
|
+
size: y.size,
|
|
499
|
+
startAdornment: k,
|
|
498
500
|
type: ae
|
|
499
|
-
}, se =
|
|
501
|
+
}, se = Je(Z), le = ie.root || S.Root || Qe, J = re.root || f.root || {}, ue = ie.input || S.Input || eo;
|
|
500
502
|
return v = {
|
|
501
503
|
...v,
|
|
502
|
-
...re.input ??
|
|
503
|
-
}, /* @__PURE__ */
|
|
504
|
-
children: [!
|
|
504
|
+
...re.input ?? f.input
|
|
505
|
+
}, /* @__PURE__ */ ee(l.Fragment, {
|
|
506
|
+
children: [!C && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
505
507
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
506
|
-
(be || (be = /* @__PURE__ */
|
|
507
|
-
...
|
|
508
|
-
ref:
|
|
509
|
-
onClick:
|
|
508
|
+
(be || (be = /* @__PURE__ */ B(ye, {}))), /* @__PURE__ */ ee(le, {
|
|
509
|
+
...J,
|
|
510
|
+
ref: r,
|
|
511
|
+
onClick: Fe,
|
|
510
512
|
...Te,
|
|
511
513
|
...!fe(le) && {
|
|
512
514
|
ownerState: {
|
|
513
|
-
...
|
|
514
|
-
...
|
|
515
|
+
...Z,
|
|
516
|
+
...J.ownerState
|
|
515
517
|
}
|
|
516
518
|
},
|
|
517
|
-
className: pe(se.root,
|
|
518
|
-
children: [
|
|
519
|
+
className: pe(se.root, J.className, T, _ && "MuiInputBase-readOnly"),
|
|
520
|
+
children: [k, /* @__PURE__ */ B(Pe.Provider, {
|
|
519
521
|
value: null,
|
|
520
|
-
children: /* @__PURE__ */
|
|
521
|
-
"aria-invalid":
|
|
522
|
-
"aria-describedby":
|
|
523
|
-
autoComplete:
|
|
522
|
+
children: /* @__PURE__ */ B(ue, {
|
|
523
|
+
"aria-invalid": y.error,
|
|
524
|
+
"aria-describedby": h,
|
|
525
|
+
autoComplete: p,
|
|
524
526
|
autoFocus: R,
|
|
525
527
|
defaultValue: O,
|
|
526
|
-
disabled:
|
|
528
|
+
disabled: y.disabled,
|
|
527
529
|
id: F,
|
|
528
530
|
onAnimationStart: ke,
|
|
529
531
|
name: U,
|
|
530
|
-
placeholder:
|
|
532
|
+
placeholder: xe,
|
|
531
533
|
readOnly: _,
|
|
532
|
-
required:
|
|
533
|
-
rows:
|
|
534
|
-
value:
|
|
534
|
+
required: y.required,
|
|
535
|
+
rows: P,
|
|
536
|
+
value: L,
|
|
535
537
|
onKeyDown: V,
|
|
536
|
-
onKeyUp:
|
|
538
|
+
onKeyUp: Ce,
|
|
537
539
|
type: ae,
|
|
538
540
|
...v,
|
|
539
541
|
...!fe(ue) && {
|
|
540
|
-
as:
|
|
542
|
+
as: X,
|
|
541
543
|
ownerState: {
|
|
542
|
-
...
|
|
544
|
+
...Z,
|
|
543
545
|
...v.ownerState
|
|
544
546
|
}
|
|
545
547
|
},
|
|
546
548
|
ref: Ee,
|
|
547
549
|
className: pe(se.input, v.className, _ && "MuiInputBase-readOnly"),
|
|
548
550
|
onBlur: ze,
|
|
549
|
-
onChange:
|
|
551
|
+
onChange: Ne,
|
|
550
552
|
onFocus: Ie
|
|
551
553
|
})
|
|
552
554
|
}), g, ne ? ne({
|
|
553
|
-
...
|
|
554
|
-
startAdornment:
|
|
555
|
+
...y,
|
|
556
|
+
startAdornment: k
|
|
555
557
|
}) : null]
|
|
556
558
|
})]
|
|
557
559
|
});
|
|
@@ -651,16 +653,16 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
651
653
|
* Either a string to use a HTML element or a component.
|
|
652
654
|
* @default 'input'
|
|
653
655
|
*/
|
|
654
|
-
inputComponent:
|
|
656
|
+
inputComponent: $e,
|
|
655
657
|
/**
|
|
656
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
658
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
657
659
|
* @default {}
|
|
658
660
|
*/
|
|
659
661
|
inputProps: e.object,
|
|
660
662
|
/**
|
|
661
663
|
* Pass a ref to the `input` element.
|
|
662
664
|
*/
|
|
663
|
-
inputRef:
|
|
665
|
+
inputRef: Ke,
|
|
664
666
|
/**
|
|
665
667
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
666
668
|
* FormControl.
|
|
@@ -775,7 +777,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
775
777
|
*/
|
|
776
778
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
777
779
|
/**
|
|
778
|
-
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
780
|
+
* 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).
|
|
779
781
|
* @default 'text'
|
|
780
782
|
*/
|
|
781
783
|
type: e.string,
|
|
@@ -786,9 +788,9 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
786
788
|
});
|
|
787
789
|
export {
|
|
788
790
|
oo as I,
|
|
789
|
-
|
|
791
|
+
Qe as a,
|
|
790
792
|
eo as b,
|
|
791
|
-
|
|
793
|
+
Ze as c,
|
|
792
794
|
te as i,
|
|
793
|
-
|
|
795
|
+
Xe as r
|
|
794
796
|
};
|