@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
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import * as d from "react";
|
|
2
|
+
import { P as a } from "./index-B9vkf41S.js";
|
|
3
|
+
import { F as eo, G as ro, H as m } from "./generateUtilityClasses-BSBs8sf8.js";
|
|
4
|
+
import { c as lo } from "./createSvgIcon-CjBLQGwH.js";
|
|
5
|
+
import { jsx as D, jsxs as to } from "react/jsx-runtime";
|
|
6
|
+
import { m as io } from "./memoTheme-_Lq-6t75.js";
|
|
7
|
+
import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
+
import { u as F } from "./useSlot-EJyrOSVX.js";
|
|
9
|
+
import { u as no, s as K, c as co } from "./DefaultPropsProvider-BwYGfRVu.js";
|
|
10
|
+
import { u as so } from "./useForkRef-u29GSuCu.js";
|
|
11
|
+
import { B as M } from "./ButtonBase-BEtR8-Lv.js";
|
|
12
|
+
import { c as t } from "./capitalize-CqfTUOe6.js";
|
|
13
|
+
import { u as po } from "./unsupportedProp-BuVD30Gh.js";
|
|
14
|
+
const uo = lo(/* @__PURE__ */ D("path", {
|
|
15
|
+
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
16
|
+
}), "Cancel");
|
|
17
|
+
function fo(o) {
|
|
18
|
+
return ro("MuiChip", o);
|
|
19
|
+
}
|
|
20
|
+
const e = eo("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), bo = (o) => {
|
|
21
|
+
const {
|
|
22
|
+
classes: l,
|
|
23
|
+
disabled: r,
|
|
24
|
+
size: n,
|
|
25
|
+
color: c,
|
|
26
|
+
iconColor: C,
|
|
27
|
+
onDelete: u,
|
|
28
|
+
clickable: s,
|
|
29
|
+
variant: p
|
|
30
|
+
} = o, y = {
|
|
31
|
+
root: ["root", p, r && "disabled", `size${t(n)}`, `color${t(c)}`, s && "clickable", s && `clickableColor${t(c)}`, u && "deletable", u && `deletableColor${t(c)}`, `${p}${t(c)}`],
|
|
32
|
+
label: ["label", `label${t(n)}`],
|
|
33
|
+
avatar: ["avatar", `avatar${t(n)}`, `avatarColor${t(c)}`],
|
|
34
|
+
icon: ["icon", `icon${t(n)}`, `iconColor${t(C)}`],
|
|
35
|
+
deleteIcon: ["deleteIcon", `deleteIcon${t(n)}`, `deleteIconColor${t(c)}`, `deleteIcon${t(p)}Color${t(c)}`]
|
|
36
|
+
};
|
|
37
|
+
return co(y, fo, l);
|
|
38
|
+
}, vo = K("div", {
|
|
39
|
+
name: "MuiChip",
|
|
40
|
+
slot: "Root",
|
|
41
|
+
overridesResolver: (o, l) => {
|
|
42
|
+
const {
|
|
43
|
+
ownerState: r
|
|
44
|
+
} = o, {
|
|
45
|
+
color: n,
|
|
46
|
+
iconColor: c,
|
|
47
|
+
clickable: C,
|
|
48
|
+
onDelete: u,
|
|
49
|
+
size: s,
|
|
50
|
+
variant: p
|
|
51
|
+
} = r;
|
|
52
|
+
return [{
|
|
53
|
+
[`& .${e.avatar}`]: l.avatar
|
|
54
|
+
}, {
|
|
55
|
+
[`& .${e.avatar}`]: l[`avatar${t(s)}`]
|
|
56
|
+
}, {
|
|
57
|
+
[`& .${e.avatar}`]: l[`avatarColor${t(n)}`]
|
|
58
|
+
}, {
|
|
59
|
+
[`& .${e.icon}`]: l.icon
|
|
60
|
+
}, {
|
|
61
|
+
[`& .${e.icon}`]: l[`icon${t(s)}`]
|
|
62
|
+
}, {
|
|
63
|
+
[`& .${e.icon}`]: l[`iconColor${t(c)}`]
|
|
64
|
+
}, {
|
|
65
|
+
[`& .${e.deleteIcon}`]: l.deleteIcon
|
|
66
|
+
}, {
|
|
67
|
+
[`& .${e.deleteIcon}`]: l[`deleteIcon${t(s)}`]
|
|
68
|
+
}, {
|
|
69
|
+
[`& .${e.deleteIcon}`]: l[`deleteIconColor${t(n)}`]
|
|
70
|
+
}, {
|
|
71
|
+
[`& .${e.deleteIcon}`]: l[`deleteIcon${t(p)}Color${t(n)}`]
|
|
72
|
+
}, l.root, l[`size${t(s)}`], l[`color${t(n)}`], C && l.clickable, C && n !== "default" && l[`clickableColor${t(n)})`], u && l.deletable, u && n !== "default" && l[`deletableColor${t(n)}`], l[p], l[`${p}${t(n)}`]];
|
|
73
|
+
}
|
|
74
|
+
})(io(({
|
|
75
|
+
theme: o
|
|
76
|
+
}) => {
|
|
77
|
+
const l = o.palette.mode === "light" ? o.palette.grey[700] : o.palette.grey[300];
|
|
78
|
+
return {
|
|
79
|
+
maxWidth: "100%",
|
|
80
|
+
fontFamily: o.typography.fontFamily,
|
|
81
|
+
fontSize: o.typography.pxToRem(13),
|
|
82
|
+
display: "inline-flex",
|
|
83
|
+
alignItems: "center",
|
|
84
|
+
justifyContent: "center",
|
|
85
|
+
height: 32,
|
|
86
|
+
lineHeight: 1.5,
|
|
87
|
+
color: (o.vars || o).palette.text.primary,
|
|
88
|
+
backgroundColor: (o.vars || o).palette.action.selected,
|
|
89
|
+
borderRadius: 32 / 2,
|
|
90
|
+
whiteSpace: "nowrap",
|
|
91
|
+
transition: o.transitions.create(["background-color", "box-shadow"]),
|
|
92
|
+
// reset cursor explicitly in case ButtonBase is used
|
|
93
|
+
cursor: "unset",
|
|
94
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
95
|
+
outline: 0,
|
|
96
|
+
textDecoration: "none",
|
|
97
|
+
border: 0,
|
|
98
|
+
// Remove `button` border
|
|
99
|
+
padding: 0,
|
|
100
|
+
// Remove `button` padding
|
|
101
|
+
verticalAlign: "middle",
|
|
102
|
+
boxSizing: "border-box",
|
|
103
|
+
[`&.${e.disabled}`]: {
|
|
104
|
+
opacity: (o.vars || o).palette.action.disabledOpacity,
|
|
105
|
+
pointerEvents: "none"
|
|
106
|
+
},
|
|
107
|
+
[`& .${e.avatar}`]: {
|
|
108
|
+
marginLeft: 5,
|
|
109
|
+
marginRight: -6,
|
|
110
|
+
width: 24,
|
|
111
|
+
height: 24,
|
|
112
|
+
color: o.vars ? o.vars.palette.Chip.defaultAvatarColor : l,
|
|
113
|
+
fontSize: o.typography.pxToRem(12)
|
|
114
|
+
},
|
|
115
|
+
[`& .${e.avatarColorPrimary}`]: {
|
|
116
|
+
color: (o.vars || o).palette.primary.contrastText,
|
|
117
|
+
backgroundColor: (o.vars || o).palette.primary.dark
|
|
118
|
+
},
|
|
119
|
+
[`& .${e.avatarColorSecondary}`]: {
|
|
120
|
+
color: (o.vars || o).palette.secondary.contrastText,
|
|
121
|
+
backgroundColor: (o.vars || o).palette.secondary.dark
|
|
122
|
+
},
|
|
123
|
+
[`& .${e.avatarSmall}`]: {
|
|
124
|
+
marginLeft: 4,
|
|
125
|
+
marginRight: -4,
|
|
126
|
+
width: 18,
|
|
127
|
+
height: 18,
|
|
128
|
+
fontSize: o.typography.pxToRem(10)
|
|
129
|
+
},
|
|
130
|
+
[`& .${e.icon}`]: {
|
|
131
|
+
marginLeft: 5,
|
|
132
|
+
marginRight: -6
|
|
133
|
+
},
|
|
134
|
+
[`& .${e.deleteIcon}`]: {
|
|
135
|
+
WebkitTapHighlightColor: "transparent",
|
|
136
|
+
color: o.alpha((o.vars || o).palette.text.primary, 0.26),
|
|
137
|
+
fontSize: 22,
|
|
138
|
+
cursor: "pointer",
|
|
139
|
+
margin: "0 5px 0 -6px",
|
|
140
|
+
"&:hover": {
|
|
141
|
+
color: o.alpha((o.vars || o).palette.text.primary, 0.4)
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
variants: [{
|
|
145
|
+
props: {
|
|
146
|
+
size: "small"
|
|
147
|
+
},
|
|
148
|
+
style: {
|
|
149
|
+
height: 24,
|
|
150
|
+
[`& .${e.icon}`]: {
|
|
151
|
+
fontSize: 18,
|
|
152
|
+
marginLeft: 4,
|
|
153
|
+
marginRight: -4
|
|
154
|
+
},
|
|
155
|
+
[`& .${e.deleteIcon}`]: {
|
|
156
|
+
fontSize: 16,
|
|
157
|
+
marginRight: 4,
|
|
158
|
+
marginLeft: -4
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}, ...Object.entries(o.palette).filter(I(["contrastText"])).map(([r]) => ({
|
|
162
|
+
props: {
|
|
163
|
+
color: r
|
|
164
|
+
},
|
|
165
|
+
style: {
|
|
166
|
+
backgroundColor: (o.vars || o).palette[r].main,
|
|
167
|
+
color: (o.vars || o).palette[r].contrastText,
|
|
168
|
+
[`& .${e.deleteIcon}`]: {
|
|
169
|
+
color: o.alpha((o.vars || o).palette[r].contrastText, 0.7),
|
|
170
|
+
"&:hover, &:active": {
|
|
171
|
+
color: (o.vars || o).palette[r].contrastText
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
})), {
|
|
176
|
+
props: (r) => r.iconColor === r.color,
|
|
177
|
+
style: {
|
|
178
|
+
[`& .${e.icon}`]: {
|
|
179
|
+
color: o.vars ? o.vars.palette.Chip.defaultIconColor : l
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
props: (r) => r.iconColor === r.color && r.color !== "default",
|
|
184
|
+
style: {
|
|
185
|
+
[`& .${e.icon}`]: {
|
|
186
|
+
color: "inherit"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}, {
|
|
190
|
+
props: {
|
|
191
|
+
onDelete: !0
|
|
192
|
+
},
|
|
193
|
+
style: {
|
|
194
|
+
[`&.${e.focusVisible}`]: {
|
|
195
|
+
backgroundColor: o.alpha((o.vars || o).palette.action.selected, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.focusOpacity}`)
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}, ...Object.entries(o.palette).filter(I(["dark"])).map(([r]) => ({
|
|
199
|
+
props: {
|
|
200
|
+
color: r,
|
|
201
|
+
onDelete: !0
|
|
202
|
+
},
|
|
203
|
+
style: {
|
|
204
|
+
[`&.${e.focusVisible}`]: {
|
|
205
|
+
background: (o.vars || o).palette[r].dark
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
})), {
|
|
209
|
+
props: {
|
|
210
|
+
clickable: !0
|
|
211
|
+
},
|
|
212
|
+
style: {
|
|
213
|
+
userSelect: "none",
|
|
214
|
+
WebkitTapHighlightColor: "transparent",
|
|
215
|
+
cursor: "pointer",
|
|
216
|
+
"&:hover": {
|
|
217
|
+
backgroundColor: o.alpha((o.vars || o).palette.action.selected, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.hoverOpacity}`)
|
|
218
|
+
},
|
|
219
|
+
[`&.${e.focusVisible}`]: {
|
|
220
|
+
backgroundColor: o.alpha((o.vars || o).palette.action.selected, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.focusOpacity}`)
|
|
221
|
+
},
|
|
222
|
+
"&:active": {
|
|
223
|
+
boxShadow: (o.vars || o).shadows[1]
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}, ...Object.entries(o.palette).filter(I(["dark"])).map(([r]) => ({
|
|
227
|
+
props: {
|
|
228
|
+
color: r,
|
|
229
|
+
clickable: !0
|
|
230
|
+
},
|
|
231
|
+
style: {
|
|
232
|
+
[`&:hover, &.${e.focusVisible}`]: {
|
|
233
|
+
backgroundColor: (o.vars || o).palette[r].dark
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
})), {
|
|
237
|
+
props: {
|
|
238
|
+
variant: "outlined"
|
|
239
|
+
},
|
|
240
|
+
style: {
|
|
241
|
+
backgroundColor: "transparent",
|
|
242
|
+
border: o.vars ? `1px solid ${o.vars.palette.Chip.defaultBorder}` : `1px solid ${o.palette.mode === "light" ? o.palette.grey[400] : o.palette.grey[700]}`,
|
|
243
|
+
[`&.${e.clickable}:hover`]: {
|
|
244
|
+
backgroundColor: (o.vars || o).palette.action.hover
|
|
245
|
+
},
|
|
246
|
+
[`&.${e.focusVisible}`]: {
|
|
247
|
+
backgroundColor: (o.vars || o).palette.action.focus
|
|
248
|
+
},
|
|
249
|
+
[`& .${e.avatar}`]: {
|
|
250
|
+
marginLeft: 4
|
|
251
|
+
},
|
|
252
|
+
[`& .${e.avatarSmall}`]: {
|
|
253
|
+
marginLeft: 2
|
|
254
|
+
},
|
|
255
|
+
[`& .${e.icon}`]: {
|
|
256
|
+
marginLeft: 4
|
|
257
|
+
},
|
|
258
|
+
[`& .${e.iconSmall}`]: {
|
|
259
|
+
marginLeft: 2
|
|
260
|
+
},
|
|
261
|
+
[`& .${e.deleteIcon}`]: {
|
|
262
|
+
marginRight: 5
|
|
263
|
+
},
|
|
264
|
+
[`& .${e.deleteIconSmall}`]: {
|
|
265
|
+
marginRight: 3
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}, ...Object.entries(o.palette).filter(I()).map(([r]) => ({
|
|
269
|
+
props: {
|
|
270
|
+
variant: "outlined",
|
|
271
|
+
color: r
|
|
272
|
+
},
|
|
273
|
+
style: {
|
|
274
|
+
color: (o.vars || o).palette[r].main,
|
|
275
|
+
border: `1px solid ${o.alpha((o.vars || o).palette[r].main, 0.7)}`,
|
|
276
|
+
[`&.${e.clickable}:hover`]: {
|
|
277
|
+
backgroundColor: o.alpha((o.vars || o).palette[r].main, (o.vars || o).palette.action.hoverOpacity)
|
|
278
|
+
},
|
|
279
|
+
[`&.${e.focusVisible}`]: {
|
|
280
|
+
backgroundColor: o.alpha((o.vars || o).palette[r].main, (o.vars || o).palette.action.focusOpacity)
|
|
281
|
+
},
|
|
282
|
+
[`& .${e.deleteIcon}`]: {
|
|
283
|
+
color: o.alpha((o.vars || o).palette[r].main, 0.7),
|
|
284
|
+
"&:hover, &:active": {
|
|
285
|
+
color: (o.vars || o).palette[r].main
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}))]
|
|
290
|
+
};
|
|
291
|
+
})), go = K("span", {
|
|
292
|
+
name: "MuiChip",
|
|
293
|
+
slot: "Label",
|
|
294
|
+
overridesResolver: (o, l) => {
|
|
295
|
+
const {
|
|
296
|
+
ownerState: r
|
|
297
|
+
} = o, {
|
|
298
|
+
size: n
|
|
299
|
+
} = r;
|
|
300
|
+
return [l.label, l[`label${t(n)}`]];
|
|
301
|
+
}
|
|
302
|
+
})({
|
|
303
|
+
overflow: "hidden",
|
|
304
|
+
textOverflow: "ellipsis",
|
|
305
|
+
paddingLeft: 12,
|
|
306
|
+
paddingRight: 12,
|
|
307
|
+
whiteSpace: "nowrap",
|
|
308
|
+
variants: [{
|
|
309
|
+
props: {
|
|
310
|
+
variant: "outlined"
|
|
311
|
+
},
|
|
312
|
+
style: {
|
|
313
|
+
paddingLeft: 11,
|
|
314
|
+
paddingRight: 11
|
|
315
|
+
}
|
|
316
|
+
}, {
|
|
317
|
+
props: {
|
|
318
|
+
size: "small"
|
|
319
|
+
},
|
|
320
|
+
style: {
|
|
321
|
+
paddingLeft: 8,
|
|
322
|
+
paddingRight: 8
|
|
323
|
+
}
|
|
324
|
+
}, {
|
|
325
|
+
props: {
|
|
326
|
+
size: "small",
|
|
327
|
+
variant: "outlined"
|
|
328
|
+
},
|
|
329
|
+
style: {
|
|
330
|
+
paddingLeft: 7,
|
|
331
|
+
paddingRight: 7
|
|
332
|
+
}
|
|
333
|
+
}]
|
|
334
|
+
});
|
|
335
|
+
function U(o) {
|
|
336
|
+
return o.key === "Backspace" || o.key === "Delete";
|
|
337
|
+
}
|
|
338
|
+
const Co = /* @__PURE__ */ d.forwardRef(function(l, r) {
|
|
339
|
+
const n = no({
|
|
340
|
+
props: l,
|
|
341
|
+
name: "MuiChip"
|
|
342
|
+
}), {
|
|
343
|
+
avatar: c,
|
|
344
|
+
className: C,
|
|
345
|
+
clickable: u,
|
|
346
|
+
color: s = "default",
|
|
347
|
+
component: p,
|
|
348
|
+
deleteIcon: y,
|
|
349
|
+
disabled: S = !1,
|
|
350
|
+
icon: $,
|
|
351
|
+
label: W,
|
|
352
|
+
onClick: k,
|
|
353
|
+
onDelete: f,
|
|
354
|
+
onKeyDown: L,
|
|
355
|
+
onKeyUp: N,
|
|
356
|
+
size: B = "medium",
|
|
357
|
+
variant: H = "filled",
|
|
358
|
+
tabIndex: A,
|
|
359
|
+
skipFocusWhenDisabled: _ = !1,
|
|
360
|
+
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
361
|
+
slots: G = {},
|
|
362
|
+
slotProps: q = {},
|
|
363
|
+
...J
|
|
364
|
+
} = n, Q = d.useRef(null), X = so(Q, r), V = (i) => {
|
|
365
|
+
i.stopPropagation(), f && f(i);
|
|
366
|
+
}, x = (i) => {
|
|
367
|
+
i.currentTarget === i.target && U(i) && i.preventDefault(), L && L(i);
|
|
368
|
+
}, P = (i) => {
|
|
369
|
+
i.currentTarget === i.target && f && U(i) && f(i), N && N(i);
|
|
370
|
+
}, O = u !== !1 && k ? !0 : u, T = O || f ? M : p || "div", R = {
|
|
371
|
+
...n,
|
|
372
|
+
component: T,
|
|
373
|
+
disabled: S,
|
|
374
|
+
size: B,
|
|
375
|
+
color: s,
|
|
376
|
+
iconColor: /* @__PURE__ */ d.isValidElement($) && $.props.color || s,
|
|
377
|
+
onDelete: !!f,
|
|
378
|
+
clickable: O,
|
|
379
|
+
variant: H
|
|
380
|
+
}, g = bo(R), Y = T === M ? {
|
|
381
|
+
component: p || "div",
|
|
382
|
+
focusVisibleClassName: g.focusVisible,
|
|
383
|
+
...f && {
|
|
384
|
+
disableRipple: !0
|
|
385
|
+
}
|
|
386
|
+
} : {};
|
|
387
|
+
let E = null;
|
|
388
|
+
f && (E = y && /* @__PURE__ */ d.isValidElement(y) ? /* @__PURE__ */ d.cloneElement(y, {
|
|
389
|
+
className: m(y.props.className, g.deleteIcon),
|
|
390
|
+
onClick: V
|
|
391
|
+
}) : /* @__PURE__ */ D(uo, {
|
|
392
|
+
className: g.deleteIcon,
|
|
393
|
+
onClick: V
|
|
394
|
+
}));
|
|
395
|
+
let w = null;
|
|
396
|
+
c && /* @__PURE__ */ d.isValidElement(c) && (w = /* @__PURE__ */ d.cloneElement(c, {
|
|
397
|
+
className: m(g.avatar, c.props.className)
|
|
398
|
+
}));
|
|
399
|
+
let z = null;
|
|
400
|
+
$ && /* @__PURE__ */ d.isValidElement($) && (z = /* @__PURE__ */ d.cloneElement($, {
|
|
401
|
+
className: m(g.icon, $.props.className)
|
|
402
|
+
})), process.env.NODE_ENV !== "production" && w && z && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");
|
|
403
|
+
const j = {
|
|
404
|
+
slots: G,
|
|
405
|
+
slotProps: q
|
|
406
|
+
}, [Z, h] = F("root", {
|
|
407
|
+
elementType: vo,
|
|
408
|
+
externalForwardedProps: {
|
|
409
|
+
...j,
|
|
410
|
+
...J
|
|
411
|
+
},
|
|
412
|
+
ownerState: R,
|
|
413
|
+
// The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
|
|
414
|
+
shouldForwardComponentProp: !0,
|
|
415
|
+
ref: X,
|
|
416
|
+
className: m(g.root, C),
|
|
417
|
+
additionalProps: {
|
|
418
|
+
disabled: O && S ? !0 : void 0,
|
|
419
|
+
tabIndex: _ && S ? -1 : A,
|
|
420
|
+
...Y
|
|
421
|
+
},
|
|
422
|
+
getSlotProps: (i) => ({
|
|
423
|
+
...i,
|
|
424
|
+
onClick: (b) => {
|
|
425
|
+
var v;
|
|
426
|
+
(v = i.onClick) == null || v.call(i, b), k == null || k(b);
|
|
427
|
+
},
|
|
428
|
+
onKeyDown: (b) => {
|
|
429
|
+
var v;
|
|
430
|
+
(v = i.onKeyDown) == null || v.call(i, b), x == null || x(b);
|
|
431
|
+
},
|
|
432
|
+
onKeyUp: (b) => {
|
|
433
|
+
var v;
|
|
434
|
+
(v = i.onKeyUp) == null || v.call(i, b), P == null || P(b);
|
|
435
|
+
}
|
|
436
|
+
})
|
|
437
|
+
}), [oo, ao] = F("label", {
|
|
438
|
+
elementType: go,
|
|
439
|
+
externalForwardedProps: j,
|
|
440
|
+
ownerState: R,
|
|
441
|
+
className: g.label
|
|
442
|
+
});
|
|
443
|
+
return /* @__PURE__ */ to(Z, {
|
|
444
|
+
as: T,
|
|
445
|
+
...h,
|
|
446
|
+
children: [w || z, /* @__PURE__ */ D(oo, {
|
|
447
|
+
...ao,
|
|
448
|
+
children: W
|
|
449
|
+
}), E]
|
|
450
|
+
});
|
|
451
|
+
});
|
|
452
|
+
process.env.NODE_ENV !== "production" && (Co.propTypes = {
|
|
453
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
454
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
455
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
456
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
457
|
+
/**
|
|
458
|
+
* The Avatar element to display.
|
|
459
|
+
*/
|
|
460
|
+
avatar: a.element,
|
|
461
|
+
/**
|
|
462
|
+
* This prop isn't supported.
|
|
463
|
+
* Use the `component` prop if you need to change the children structure.
|
|
464
|
+
*/
|
|
465
|
+
children: po,
|
|
466
|
+
/**
|
|
467
|
+
* Override or extend the styles applied to the component.
|
|
468
|
+
*/
|
|
469
|
+
classes: a.object,
|
|
470
|
+
/**
|
|
471
|
+
* @ignore
|
|
472
|
+
*/
|
|
473
|
+
className: a.string,
|
|
474
|
+
/**
|
|
475
|
+
* If `true`, the chip will appear clickable, and will raise when pressed,
|
|
476
|
+
* even if the onClick prop is not defined.
|
|
477
|
+
* If `false`, the chip will not appear clickable, even if onClick prop is defined.
|
|
478
|
+
* This can be used, for example,
|
|
479
|
+
* along with the component prop to indicate an anchor Chip is clickable.
|
|
480
|
+
* Note: this controls the UI and does not affect the onClick event.
|
|
481
|
+
*/
|
|
482
|
+
clickable: a.bool,
|
|
483
|
+
/**
|
|
484
|
+
* The color of the component.
|
|
485
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
486
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
487
|
+
* @default 'default'
|
|
488
|
+
*/
|
|
489
|
+
color: a.oneOfType([a.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), a.string]),
|
|
490
|
+
/**
|
|
491
|
+
* The component used for the root node.
|
|
492
|
+
* Either a string to use a HTML element or a component.
|
|
493
|
+
*/
|
|
494
|
+
component: a.elementType,
|
|
495
|
+
/**
|
|
496
|
+
* Override the default delete icon element. Shown only if `onDelete` is set.
|
|
497
|
+
*/
|
|
498
|
+
deleteIcon: a.element,
|
|
499
|
+
/**
|
|
500
|
+
* If `true`, the component is disabled.
|
|
501
|
+
* @default false
|
|
502
|
+
*/
|
|
503
|
+
disabled: a.bool,
|
|
504
|
+
/**
|
|
505
|
+
* Icon element.
|
|
506
|
+
*/
|
|
507
|
+
icon: a.element,
|
|
508
|
+
/**
|
|
509
|
+
* The content of the component.
|
|
510
|
+
*/
|
|
511
|
+
label: a.node,
|
|
512
|
+
/**
|
|
513
|
+
* @ignore
|
|
514
|
+
*/
|
|
515
|
+
onClick: a.func,
|
|
516
|
+
/**
|
|
517
|
+
* Callback fired when the delete icon is clicked.
|
|
518
|
+
* If set, the delete icon will be shown.
|
|
519
|
+
*/
|
|
520
|
+
onDelete: a.func,
|
|
521
|
+
/**
|
|
522
|
+
* @ignore
|
|
523
|
+
*/
|
|
524
|
+
onKeyDown: a.func,
|
|
525
|
+
/**
|
|
526
|
+
* @ignore
|
|
527
|
+
*/
|
|
528
|
+
onKeyUp: a.func,
|
|
529
|
+
/**
|
|
530
|
+
* The size of the component.
|
|
531
|
+
* @default 'medium'
|
|
532
|
+
*/
|
|
533
|
+
size: a.oneOfType([a.oneOf(["medium", "small"]), a.string]),
|
|
534
|
+
/**
|
|
535
|
+
* If `true`, allows the disabled chip to escape focus.
|
|
536
|
+
* If `false`, allows the disabled chip to receive focus.
|
|
537
|
+
* @default false
|
|
538
|
+
*/
|
|
539
|
+
skipFocusWhenDisabled: a.bool,
|
|
540
|
+
/**
|
|
541
|
+
* The props used for each slot inside.
|
|
542
|
+
* @default {}
|
|
543
|
+
*/
|
|
544
|
+
slotProps: a.shape({
|
|
545
|
+
label: a.oneOfType([a.func, a.object]),
|
|
546
|
+
root: a.oneOfType([a.func, a.object])
|
|
547
|
+
}),
|
|
548
|
+
/**
|
|
549
|
+
* The components used for each slot inside.
|
|
550
|
+
* @default {}
|
|
551
|
+
*/
|
|
552
|
+
slots: a.shape({
|
|
553
|
+
label: a.elementType,
|
|
554
|
+
root: a.elementType
|
|
555
|
+
}),
|
|
556
|
+
/**
|
|
557
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
558
|
+
*/
|
|
559
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
560
|
+
/**
|
|
561
|
+
* @ignore
|
|
562
|
+
*/
|
|
563
|
+
tabIndex: a.number,
|
|
564
|
+
/**
|
|
565
|
+
* The variant to use.
|
|
566
|
+
* @default 'filled'
|
|
567
|
+
*/
|
|
568
|
+
variant: a.oneOfType([a.oneOf(["filled", "outlined"]), a.string])
|
|
569
|
+
});
|
|
570
|
+
export {
|
|
571
|
+
Co as C,
|
|
572
|
+
e as c,
|
|
573
|
+
fo as g
|
|
574
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const le=require("react"),o=require("./index-kjfz41UI.cjs"),$=require("./generateUtilityClasses-BMLLB4Uz.cjs"),te=require("./createSvgIcon-D6Bf0D-L.cjs"),z=require("react/jsx-runtime"),ie=require("./memoTheme-DZ3r2a_u.cjs"),k=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),E=require("./useSlot-BQ5B4uxv.cjs"),S=require("./DefaultPropsProvider--EgnwFDi.cjs"),ne=require("./useForkRef-CFhhTu-Q.cjs"),M=require("./ButtonBase-B1T-Lqz2.cjs"),t=require("./capitalize-nmXHj--f.cjs"),ce=require("./unsupportedProp-Bn6XWqwH.cjs");function pe(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(l,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return l.default=e,Object.freeze(l)}const d=pe(le),se=te.createSvgIcon(z.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function B(e){return $.generateUtilityClass("MuiChip",e)}const r=$.generateUtilityClasses("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),de=e=>{const{classes:l,disabled:a,size:n,color:c,iconColor:g,onDelete:u,clickable:p,variant:s}=e,C={root:["root",s,a&&"disabled",`size${t.capitalize(n)}`,`color${t.capitalize(c)}`,p&&"clickable",p&&`clickableColor${t.capitalize(c)}`,u&&"deletable",u&&`deletableColor${t.capitalize(c)}`,`${s}${t.capitalize(c)}`],label:["label",`label${t.capitalize(n)}`],avatar:["avatar",`avatar${t.capitalize(n)}`,`avatarColor${t.capitalize(c)}`],icon:["icon",`icon${t.capitalize(n)}`,`iconColor${t.capitalize(g)}`],deleteIcon:["deleteIcon",`deleteIcon${t.capitalize(n)}`,`deleteIconColor${t.capitalize(c)}`,`deleteIcon${t.capitalize(s)}Color${t.capitalize(c)}`]};return S.composeClasses(C,B,l)},ue=S.styled("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,l)=>{const{ownerState:a}=e,{color:n,iconColor:c,clickable:g,onDelete:u,size:p,variant:s}=a;return[{[`& .${r.avatar}`]:l.avatar},{[`& .${r.avatar}`]:l[`avatar${t.capitalize(p)}`]},{[`& .${r.avatar}`]:l[`avatarColor${t.capitalize(n)}`]},{[`& .${r.icon}`]:l.icon},{[`& .${r.icon}`]:l[`icon${t.capitalize(p)}`]},{[`& .${r.icon}`]:l[`iconColor${t.capitalize(c)}`]},{[`& .${r.deleteIcon}`]:l.deleteIcon},{[`& .${r.deleteIcon}`]:l[`deleteIcon${t.capitalize(p)}`]},{[`& .${r.deleteIcon}`]:l[`deleteIconColor${t.capitalize(n)}`]},{[`& .${r.deleteIcon}`]:l[`deleteIcon${t.capitalize(s)}Color${t.capitalize(n)}`]},l.root,l[`size${t.capitalize(p)}`],l[`color${t.capitalize(n)}`],g&&l.clickable,g&&n!=="default"&&l[`clickableColor${t.capitalize(n)})`],u&&l.deletable,u&&n!=="default"&&l[`deletableColor${t.capitalize(n)}`],l[s],l[`${s}${t.capitalize(n)}`]]}})(ie.memoTheme(({theme:e})=>{const l=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${r.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${r.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:l,fontSize:e.typography.pxToRem(12)},[`& .${r.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${r.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${r.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${r.icon}`]:{marginLeft:5,marginRight:-6},[`& .${r.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${r.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${r.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter(["contrastText"])).map(([a])=>({props:{color:a},style:{backgroundColor:(e.vars||e).palette[a].main,color:(e.vars||e).palette[a].contrastText,[`& .${r.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[a].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[a].contrastText}}}})),{props:a=>a.iconColor===a.color,style:{[`& .${r.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:l}}},{props:a=>a.iconColor===a.color&&a.color!=="default",style:{[`& .${r.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${r.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter(["dark"])).map(([a])=>({props:{color:a,onDelete:!0},style:{[`&.${r.focusVisible}`]:{background:(e.vars||e).palette[a].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${r.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter(["dark"])).map(([a])=>({props:{color:a,clickable:!0},style:{[`&:hover, &.${r.focusVisible}`]:{backgroundColor:(e.vars||e).palette[a].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${r.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${r.avatar}`]:{marginLeft:4},[`& .${r.avatarSmall}`]:{marginLeft:2},[`& .${r.icon}`]:{marginLeft:4},[`& .${r.iconSmall}`]:{marginLeft:2},[`& .${r.deleteIcon}`]:{marginRight:5},[`& .${r.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter()).map(([a])=>({props:{variant:"outlined",color:a},style:{color:(e.vars||e).palette[a].main,border:`1px solid ${e.alpha((e.vars||e).palette[a].main,.7)}`,[`&.${r.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[a].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${r.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[a].main,(e.vars||e).palette.action.focusOpacity)},[`& .${r.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[a].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[a].main}}}}))]}})),ye=S.styled("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,l)=>{const{ownerState:a}=e,{size:n}=a;return[l.label,l[`label${t.capitalize(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function U(e){return e.key==="Backspace"||e.key==="Delete"}const K=d.forwardRef(function(l,a){const n=S.useDefaultProps({props:l,name:"MuiChip"}),{avatar:c,className:g,clickable:u,color:p="default",component:s,deleteIcon:C,disabled:I=!1,icon:P,label:W,onClick:T,onDelete:y,onKeyDown:j,onKeyUp:L,size:_="medium",variant:H="filled",tabIndex:A,skipFocusWhenDisabled:G=!1,slots:J={},slotProps:Q={},...X}=n,Y=d.useRef(null),Z=ne.useForkRef(Y,a),N=i=>{i.stopPropagation(),y&&y(i)},x=i=>{i.currentTarget===i.target&&U(i)&&i.preventDefault(),j&&j(i)},m=i=>{i.currentTarget===i.target&&y&&U(i)&&y(i),L&&L(i)},O=u!==!1&&T?!0:u,R=O||y?M.ButtonBase:s||"div",D={...n,component:R,disabled:I,size:_,color:p,iconColor:d.isValidElement(P)&&P.props.color||p,onDelete:!!y,clickable:O,variant:H},v=de(D),h=R===M.ButtonBase?{component:s||"div",focusVisibleClassName:v.focusVisible,...y&&{disableRipple:!0}}:{};let F=null;y&&(F=C&&d.isValidElement(C)?d.cloneElement(C,{className:$.clsx(C.props.className,v.deleteIcon),onClick:N}):z.jsx(se,{className:v.deleteIcon,onClick:N}));let w=null;c&&d.isValidElement(c)&&(w=d.cloneElement(c,{className:$.clsx(v.avatar,c.props.className)}));let V=null;P&&d.isValidElement(P)&&(V=d.cloneElement(P,{className:$.clsx(v.icon,P.props.className)})),process.env.NODE_ENV!=="production"&&w&&V&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const q={slots:J,slotProps:Q},[ee,oe]=E.useSlot("root",{elementType:ue,externalForwardedProps:{...q,...X},ownerState:D,shouldForwardComponentProp:!0,ref:Z,className:$.clsx(v.root,g),additionalProps:{disabled:O&&I?!0:void 0,tabIndex:G&&I?-1:A,...h},getSlotProps:i=>({...i,onClick:f=>{var b;(b=i.onClick)==null||b.call(i,f),T==null||T(f)},onKeyDown:f=>{var b;(b=i.onKeyDown)==null||b.call(i,f),x==null||x(f)},onKeyUp:f=>{var b;(b=i.onKeyUp)==null||b.call(i,f),m==null||m(f)}})}),[ae,re]=E.useSlot("label",{elementType:ye,externalForwardedProps:q,ownerState:D,className:v.label});return z.jsxs(ee,{as:R,...oe,children:[w||V,z.jsx(ae,{...re,children:W}),F]})});process.env.NODE_ENV!=="production"&&(K.propTypes={avatar:o.PropTypes.element,children:ce.unsupportedProp,classes:o.PropTypes.object,className:o.PropTypes.string,clickable:o.PropTypes.bool,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),component:o.PropTypes.elementType,deleteIcon:o.PropTypes.element,disabled:o.PropTypes.bool,icon:o.PropTypes.element,label:o.PropTypes.node,onClick:o.PropTypes.func,onDelete:o.PropTypes.func,onKeyDown:o.PropTypes.func,onKeyUp:o.PropTypes.func,size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["medium","small"]),o.PropTypes.string]),skipFocusWhenDisabled:o.PropTypes.bool,slotProps:o.PropTypes.shape({label:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object]),root:o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object])}),slots:o.PropTypes.shape({label:o.PropTypes.elementType,root:o.PropTypes.elementType}),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]),tabIndex:o.PropTypes.number,variant:o.PropTypes.oneOfType([o.PropTypes.oneOf(["filled","outlined"]),o.PropTypes.string])});exports.Chip=K;exports.chipClasses=r;exports.getChipUtilityClass=B;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const q=require("react"),t=require("./index-kjfz41UI.cjs"),T=require("./generateUtilityClasses-BMLLB4Uz.cjs"),x=require("./memoTheme-DZ3r2a_u.cjs"),M=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),h=require("react/jsx-runtime"),a=require("./DefaultPropsProvider--EgnwFDi.cjs"),l=require("./capitalize-nmXHj--f.cjs"),R=require("./chainPropTypes-CEUi6Jb4.cjs"),p=require("@emotion/react");function z(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return r.default=e,Object.freeze(r)}const N=z(q);function w(e){return T.generateUtilityClass("MuiCircularProgress",e)}const U=T.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),o=44,g=p.keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(0deg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
100% {
|
|
7
|
+
transform: rotate(360deg);
|
|
8
|
+
}
|
|
9
|
+
`,v=p.keyframes`
|
|
10
|
+
0% {
|
|
11
|
+
stroke-dasharray: 1px, 200px;
|
|
12
|
+
stroke-dashoffset: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
50% {
|
|
16
|
+
stroke-dasharray: 100px, 200px;
|
|
17
|
+
stroke-dashoffset: -15px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
100% {
|
|
21
|
+
stroke-dasharray: 1px, 200px;
|
|
22
|
+
stroke-dashoffset: -126px;
|
|
23
|
+
}
|
|
24
|
+
`,E=typeof g!="string"?p.css`
|
|
25
|
+
animation: ${g} 1.4s linear infinite;
|
|
26
|
+
`:null,F=typeof v!="string"?p.css`
|
|
27
|
+
animation: ${v} 1.4s ease-in-out infinite;
|
|
28
|
+
`:null,I=e=>{const{classes:r,variant:s,color:i,disableShrink:u}=e,y={root:["root",s,`color${l.capitalize(i)}`],svg:["svg"],circle:["circle",`circle${l.capitalize(s)}`,u&&"circleDisableShrink"]};return a.composeClasses(y,w,r)},V=a.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,r[s.variant],r[`color${l.capitalize(s.color)}`]]}})(x.memoTheme(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:E||{animation:`${g} 1.4s linear infinite`}},...Object.entries(e.palette).filter(M.createSimplePaletteValueFilter()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}}))]}))),_=a.styled("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),A=a.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.circle,r[`circle${l.capitalize(s.variant)}`],s.disableShrink&&r.circleDisableShrink]}})(x.memoTheme(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:F||{animation:`${v} 1.4s ease-in-out infinite`}}]}))),D=N.forwardRef(function(r,s){const i=a.useDefaultProps({props:r,name:"MuiCircularProgress"}),{className:u,color:y="primary",disableShrink:O=!1,size:m=40,style:j,thickness:n=3.6,value:d=0,variant:k="indeterminate",...$}=i,c={...i,color:y,disableShrink:O,size:m,thickness:n,value:d,variant:k},f=I(c),P={},b={},C={};if(k==="determinate"){const S=2*Math.PI*((o-n)/2);P.strokeDasharray=S.toFixed(3),C["aria-valuenow"]=Math.round(d),P.strokeDashoffset=`${((100-d)/100*S).toFixed(3)}px`,b.transform="rotate(-90deg)"}return h.jsx(V,{className:T.clsx(f.root,u),style:{width:m,height:m,...b,...j},ownerState:c,ref:s,role:"progressbar",...C,...$,children:h.jsx(_,{className:f.svg,ownerState:c,viewBox:`${o/2} ${o/2} ${o} ${o}`,children:h.jsx(A,{className:f.circle,style:P,ownerState:c,cx:o,cy:o,r:(o-n)/2,fill:"none",strokeWidth:n})})})});process.env.NODE_ENV!=="production"&&(D.propTypes={classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),t.PropTypes.string]),disableShrink:R.chainPropTypes(t.PropTypes.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:t.PropTypes.oneOfType([t.PropTypes.number,t.PropTypes.string]),style:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),thickness:t.PropTypes.number,value:t.PropTypes.number,variant:t.PropTypes.oneOf(["determinate","indeterminate"])});exports.CircularProgress=D;exports.circularProgressClasses=U;exports.getCircularProgressUtilityClass=w;
|