@cgi-learning-hub/ui 1.7.0 → 1.8.0
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-OeEy_IGc.js → Alert-6yOnGlLE.js} +6 -6
- package/dist/{Alert-rPyl-bqs.cjs → Alert-CWHOYWde.cjs} +1 -1
- package/dist/{Alert-DPSZppEy.cjs → Alert-D4-73fYc.cjs} +1 -1
- package/dist/{Alert-BhLIlUBu.js → Alert-D6SQnjuJ.js} +83 -83
- package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-B8u-WYi5.js} +680 -664
- package/dist/Autocomplete-BA6NkciB.cjs +6 -0
- package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
- package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-DuOPKUSY.js} +36 -35
- package/dist/{Badge-Bwcsnbsa.js → Badge-BJ4yH_Da.js} +4 -4
- package/dist/{Badge-DFzvdVS-.cjs → Badge-XMr4Ygjv.cjs} +1 -1
- package/dist/{Box-DR3n_po_.cjs → Box-B5E7sstc.cjs} +1 -1
- package/dist/{Box-BI4osO9v.js → Box-BWETzF5p.js} +3 -3
- package/dist/Button-BJB830NI.cjs +1 -0
- package/dist/{Button-DDV5EfwJ.js → Button-C8_HxKFe.js} +95 -95
- package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-CJYV8wgs.js} +2 -2
- package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
- package/dist/{CardContent-COfaU6E0.cjs → CardContent-H0z20SY7.cjs} +1 -1
- package/dist/{CardContent-D3uGcxlr.js → CardContent-V9JMSLmA.js} +3 -3
- package/dist/Checkbox-BZPMiwbF.cjs +1 -0
- package/dist/{Checkbox-BfBDowB2.js → Checkbox-DMMz_IAP.js} +86 -86
- package/dist/Chip-BDVqkZZM.js +573 -0
- package/dist/Chip-DMBSp59F.cjs +1 -0
- package/dist/{CircularProgress-CXXyPavb.cjs → CircularProgress-BMVNeiSf.cjs} +1 -1
- package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-CrWnCGqN.js} +3 -3
- package/dist/{Close-7S2hSoFB.cjs → Close-2eEmvKPH.cjs} +1 -1
- package/dist/{Close-DEMecSZ6.js → Close-Cr2OT0GV.js} +1 -1
- package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
- package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BrGeesu1.js} +1 -1
- package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
- package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-DhB3ECa2.js} +12 -12
- package/dist/DatePicker-DtPvvFiK.cjs +16 -0
- package/dist/{DatePicker-DasS2wq6.js → DatePicker-ofISDY8Q.js} +2822 -2821
- package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
- package/dist/DefaultPropsProvider-nxIPd34m.js +312 -0
- package/dist/{Delete-BvkBJXEM.cjs → Delete-BF63Gpr-.cjs} +1 -1
- package/dist/{Delete-B5VTV71K.js → Delete-CwWpjEOT.js} +1 -1
- package/dist/Dialog-Cymf3DJ2.cjs +1 -0
- package/dist/{Dialog-DEWB041V.js → Dialog-eK1zTFBm.js} +10 -10
- package/dist/{DialogContent-C294EkoQ.js → DialogContent-BsPZJR2a.js} +3 -3
- package/dist/{DialogContent-DXfUge3c.cjs → DialogContent-Gy1s3ela.cjs} +1 -1
- package/dist/{DialogTitle-y2PrK6uU.cjs → DialogTitle-BDyrzRXS.cjs} +1 -1
- package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-CaAd59jN.js} +5 -5
- package/dist/Divider-BzdMIEJJ.cjs +1 -0
- package/dist/{Divider-kKp4VqHh.js → Divider-D_gbcyWE.js} +26 -26
- package/dist/{Folder-BgQP5-Ve.js → Folder-COKXTjZ4.js} +1 -1
- package/dist/{Folder-BfLBqDHM.cjs → Folder-D0fZbyc-.cjs} +1 -1
- package/dist/{FormLabel-JrZR9kt8.cjs → FormLabel-BLySmpkL.cjs} +1 -1
- package/dist/{FormLabel-B3WAnPGP.js → FormLabel-DmLckqyT.js} +3 -3
- package/dist/{Grid-BHYQ3JNy.cjs → Grid-DFaRzlB4.cjs} +1 -1
- package/dist/{Grid-DFk-4jnZ.js → Grid-vM--ojbL.js} +7 -7
- package/dist/{Grow-BfjkXlG8.js → Grow-DE5x7F5S.js} +1 -1
- package/dist/{Grow-BULCy6GX.cjs → Grow-ovNT7Sot.cjs} +1 -1
- package/dist/IconButton-DCQiOq7W.cjs +2 -0
- package/dist/{IconButton-BYvak8Nw.js → IconButton-f9EZgwvD.js} +66 -66
- package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-B615VSjF.js} +4 -4
- package/dist/{InputAdornment-DvHQMisT.cjs → InputAdornment-BrrJ8chb.cjs} +1 -1
- package/dist/{InputBase-BS5oknUK.js → InputBase-BCbPPzW1.js} +4 -4
- package/dist/{InputBase-DPdKpmOz.cjs → InputBase-CRrFludT.cjs} +1 -1
- package/dist/Link-CMes5bws.cjs +1 -0
- package/dist/{Link-DYPjEdvu.js → Link-GBRiPElP.js} +52 -39
- package/dist/{List-CB_cqCSw.js → List-DZkddOsr.js} +2 -2
- package/dist/{List-t9bWFewp.cjs → List-E_TAQ1jJ.cjs} +1 -1
- package/dist/{ListItem-DAZQEir2.js → ListItem-CMoibMI7.js} +4 -4
- package/dist/{ListItem-DP7YmqZk.cjs → ListItem-qTKJTg7f.cjs} +1 -1
- package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
- package/dist/{ListItemText-qfdqJP77.js → ListItemText-BbrPf29n.js} +139 -139
- package/dist/{Menu-9BK8jmzW.js → Menu-3UjlpKRJ.js} +27 -27
- package/dist/{Menu-C61wLk41.cjs → Menu-C0uY9Dd0.cjs} +1 -1
- package/dist/MenuItem--a878rw9.cjs +1 -0
- package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CHEWce5u.js} +94 -94
- package/dist/{Modal-DkzrSKHd.cjs → Modal-CdcolE0C.cjs} +1 -1
- package/dist/{Modal-D3Q9vEAI.js → Modal-Du5LfkZg.js} +5 -5
- package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
- package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-PLU7h8WO.js} +1 -1
- package/dist/{Paper-IQckggbn.js → Paper-BylmTlAJ.js} +4 -4
- package/dist/{Paper-BbqZL5vx.cjs → Paper-DgHGh6vt.cjs} +1 -1
- package/dist/{Popper-DvWx5tR3.cjs → Popper-BsNp09Gg.cjs} +1 -1
- package/dist/{Popper-CfFLBZ7-.js → Popper-CvQLHjwo.js} +3 -3
- package/dist/Radio-CLNMQGNf.cjs +1 -0
- package/dist/{Radio-DKiu6lVB.js → Radio-CbYgci2-.js} +195 -190
- package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-D-Cq8SmM.js} +3 -3
- package/dist/{RadioGroup-Cvnwt4JE.cjs → RadioGroup-Dyf8fKum.cjs} +1 -1
- package/dist/{Select-CpNF3a57.js → Select-Bx0yVOZE.js} +641 -607
- package/dist/Select-CRVPbesC.cjs +3 -0
- package/dist/{Stack-CIyfgZCM.cjs → Stack-COmIqMxy.cjs} +1 -1
- package/dist/{Stack-DSJ2DqNd.js → Stack-CbK4a2n5.js} +5 -5
- package/dist/{Stepper-CXHfLPtA.cjs → Stepper-CWq9t5jy.cjs} +1 -1
- package/dist/{Stepper-DE2l91K0.js → Stepper-DU9nixCp.js} +6 -6
- package/dist/{Switch-BIcwDf_P.js → Switch-Bm3Gclye.js} +102 -99
- package/dist/Switch-kHZOqjeU.cjs +1 -0
- package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-9CKmTWdZ.js} +47 -44
- package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
- package/dist/{Tab-Ckr6Bn59.js → Tab-DBCv1T9W.js} +58 -58
- package/dist/{Tab-r5imbU9z.cjs → Tab-DnxFjc89.cjs} +1 -1
- package/dist/{TextField-Brw3X9cn.cjs → TextField-BhdmUny-.cjs} +1 -1
- package/dist/{TextField-BenBw4oE.js → TextField-V-EQ80Y6.js} +6 -6
- package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
- package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-_UpIjysl.js} +1567 -1537
- package/dist/{Tooltip-KkgNQm4r.js → Tooltip-DKHOTDh0.js} +81 -81
- package/dist/{Tooltip-BAOKe3SY.cjs → Tooltip-DYTDIzp4.cjs} +3 -3
- package/dist/{Typography-CSTmKyr8.cjs → Typography-BvRUTdLD.cjs} +1 -1
- package/dist/{Typography-Dy8r_tT2.js → Typography-o0iALAVg.js} +4 -4
- 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/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.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 +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +2 -2
- package/dist/components/TreeView/TreeView.es.js +39 -39
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/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/{createSvgIcon-IET9soda.cjs → createSvgIcon-BJRigbha.cjs} +1 -1
- package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-BV54rC7k.js} +3 -3
- package/dist/{dividerClasses-C07OJKLL.cjs → dividerClasses-CbwbHy8r.cjs} +1 -1
- package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DDXs86hs.js} +1 -1
- package/dist/{extendSxProp-ZMCunXYm.cjs → extendSxProp-CxMSlckP.cjs} +1 -1
- package/dist/{extendSxProp-CesAxox9.js → extendSxProp-XouBF-Ct.js} +1 -1
- package/dist/identifier-DBvccNCw.cjs +55 -0
- package/dist/identifier-Dnc8T93Z.js +2673 -0
- package/dist/{index-8G2jvqZ8.js → index-9te7SXrs.js} +47 -41
- package/dist/index-BkNQtUZJ.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +302 -300
- package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-4p_83pwn.js} +1 -1
- package/dist/{listItemTextClasses-CJDKfXvl.cjs → listItemTextClasses-Cxo4anAo.cjs} +1 -1
- package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
- package/dist/{memoTheme-DAFDflPY.js → memoTheme-K37vidlb.js} +1 -1
- package/dist/{mergeSlotProps-DXwOW3FE.cjs → mergeSlotProps-CXO1f70l.cjs} +1 -1
- package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-DSWiBSbD.js} +1 -1
- package/dist/styled-B7pKW9DQ.cjs +1 -0
- package/dist/styled-JnAdiSL5.js +5 -0
- package/dist/{useSlot-BzdKwDQ5.js → useSlot-GooGQrej.js} +1 -1
- package/dist/{useSlot-C2FjoUpF.cjs → useSlot-ONna5RyM.cjs} +1 -1
- package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-C34Wr67s.js} +1 -1
- package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
- package/dist/{useTheme-XJ9sFCWX.js → useTheme-CH7DA5fq.js} +3 -3
- package/dist/{useTheme-BLMJDSsv.cjs → useTheme-D6wPRo0G.cjs} +1 -1
- package/dist/{useTheme-CooC_6Ep.cjs → useTheme-DkiCyF-9.cjs} +1 -1
- package/dist/{useTheme--i9fxE_A.js → useTheme-VH02z7nF.js} +1 -1
- package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
- package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
- package/dist/useThemeProps-DT4QxdFn.js +17 -0
- package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-DZ05-54P.js} +2 -2
- package/package.json +7 -7
- package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
- package/dist/Backdrop-DeNTZlA5.cjs +0 -1
- package/dist/Button-DyJV5llI.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/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/Divider-NermA5hZ.cjs +0 -1
- package/dist/IconButton-CjtMjZ9e.cjs +0 -2
- package/dist/Link-BwbY60dS.cjs +0 -1
- package/dist/ListItemText-cVnimPLO.cjs +0 -1
- package/dist/MenuItem-DHM3qxwr.cjs +0 -1
- package/dist/Radio-Bwh_t6PC.cjs +0 -1
- package/dist/Select-3HP39Z7o.cjs +0 -3
- package/dist/Switch-CTEqKDiv.cjs +0 -1
- package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
- package/dist/identifier-BoZelETM.cjs +0 -55
- package/dist/identifier-PWESmBq6.js +0 -2598
- package/dist/index-D3lMWU76.cjs +0 -1
- package/dist/styled-C7gyRDlj.js +0 -5
- package/dist/styled-Cax0O00h.cjs +0 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
- package/dist/useThemeProps-CQ9rZe7g.js +0 -17
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as
|
|
3
|
-
import { F as
|
|
4
|
-
import { c as
|
|
5
|
-
import { S as
|
|
6
|
-
import { m as d } from "./memoTheme-
|
|
7
|
-
import { u as y } from "./useSlot-
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { u as
|
|
10
|
-
import { r as
|
|
11
|
-
function
|
|
12
|
-
return
|
|
1
|
+
import * as z from "react";
|
|
2
|
+
import { P as o } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as P, G as j, H as R, K as n } from "./identifier-Dnc8T93Z.js";
|
|
4
|
+
import { c as M } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
5
|
+
import { S as N } from "./SwitchBase-9CKmTWdZ.js";
|
|
6
|
+
import { m as d } from "./memoTheme-K37vidlb.js";
|
|
7
|
+
import { u as y } from "./useSlot-GooGQrej.js";
|
|
8
|
+
import { jsx as k, jsxs as D } from "react/jsx-runtime";
|
|
9
|
+
import { u as I, s as u, c as U } from "./DefaultPropsProvider-nxIPd34m.js";
|
|
10
|
+
import { r as E } from "./refType-Dp7CJc86.js";
|
|
11
|
+
function F(t) {
|
|
12
|
+
return j("MuiSwitch", t);
|
|
13
13
|
}
|
|
14
|
-
const a =
|
|
14
|
+
const a = P("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), A = (t) => {
|
|
15
15
|
const {
|
|
16
|
-
classes:
|
|
16
|
+
classes: e,
|
|
17
17
|
edge: s,
|
|
18
18
|
size: p,
|
|
19
19
|
color: h,
|
|
20
20
|
checked: f,
|
|
21
21
|
disabled: b
|
|
22
|
-
} = t,
|
|
22
|
+
} = t, w = {
|
|
23
23
|
root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
|
|
24
24
|
switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
|
|
25
25
|
thumb: ["thumb"],
|
|
26
26
|
track: ["track"],
|
|
27
27
|
input: ["input"]
|
|
28
|
-
},
|
|
28
|
+
}, g = U(w, F, e);
|
|
29
29
|
return {
|
|
30
|
-
...
|
|
30
|
+
...e,
|
|
31
31
|
// forward the disabled and checked classes to the SwitchBase
|
|
32
|
-
...
|
|
32
|
+
...g
|
|
33
33
|
};
|
|
34
|
-
},
|
|
34
|
+
}, V = u("span", {
|
|
35
35
|
name: "MuiSwitch",
|
|
36
36
|
slot: "Root",
|
|
37
|
-
overridesResolver: (t,
|
|
37
|
+
overridesResolver: (t, e) => {
|
|
38
38
|
const {
|
|
39
39
|
ownerState: s
|
|
40
40
|
} = t;
|
|
41
|
-
return [
|
|
41
|
+
return [e.root, s.edge && e[`edge${n(s.edge)}`], e[`size${n(s.size)}`]];
|
|
42
42
|
}
|
|
43
43
|
})({
|
|
44
44
|
display: "inline-flex",
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
45
|
+
width: 58,
|
|
46
|
+
height: 38,
|
|
47
47
|
overflow: "hidden",
|
|
48
48
|
padding: 12,
|
|
49
49
|
boxSizing: "border-box",
|
|
@@ -90,16 +90,16 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}]
|
|
93
|
-
}),
|
|
93
|
+
}), X = u(N, {
|
|
94
94
|
name: "MuiSwitch",
|
|
95
95
|
slot: "SwitchBase",
|
|
96
|
-
overridesResolver: (t,
|
|
96
|
+
overridesResolver: (t, e) => {
|
|
97
97
|
const {
|
|
98
98
|
ownerState: s
|
|
99
99
|
} = t;
|
|
100
|
-
return [
|
|
101
|
-
[`& .${a.input}`]:
|
|
102
|
-
}, s.color !== "default" &&
|
|
100
|
+
return [e.switchBase, {
|
|
101
|
+
[`& .${a.input}`]: e.input
|
|
102
|
+
}, s.color !== "default" && e[`color${n(s.color)}`]];
|
|
103
103
|
}
|
|
104
104
|
})(d(({
|
|
105
105
|
theme: t
|
|
@@ -133,35 +133,35 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
133
133
|
theme: t
|
|
134
134
|
}) => ({
|
|
135
135
|
"&:hover": {
|
|
136
|
-
backgroundColor: t.
|
|
136
|
+
backgroundColor: t.alpha((t.vars || t).palette.action.active, (t.vars || t).palette.action.hoverOpacity),
|
|
137
137
|
// Reset on touch devices, it doesn't add specificity
|
|
138
138
|
"@media (hover: none)": {
|
|
139
139
|
backgroundColor: "transparent"
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
|
-
variants: [...Object.entries(t.palette).filter(
|
|
142
|
+
variants: [...Object.entries(t.palette).filter(M(["light"])).map(([e]) => ({
|
|
143
143
|
props: {
|
|
144
|
-
color:
|
|
144
|
+
color: e
|
|
145
145
|
},
|
|
146
146
|
style: {
|
|
147
147
|
[`&.${a.checked}`]: {
|
|
148
|
-
color: (t.vars || t).palette[
|
|
148
|
+
color: (t.vars || t).palette[e].main,
|
|
149
149
|
"&:hover": {
|
|
150
|
-
backgroundColor: t.
|
|
150
|
+
backgroundColor: t.alpha((t.vars || t).palette[e].main, (t.vars || t).palette.action.hoverOpacity),
|
|
151
151
|
"@media (hover: none)": {
|
|
152
152
|
backgroundColor: "transparent"
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
[`&.${a.disabled}`]: {
|
|
156
|
-
color: t.vars ? t.vars.palette.Switch[`${
|
|
156
|
+
color: t.vars ? t.vars.palette.Switch[`${e}DisabledColor`] : `${t.palette.mode === "light" ? t.lighten(t.palette[e].main, 0.62) : t.darken(t.palette[e].main, 0.55)}`
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
[`&.${a.checked} + .${a.track}`]: {
|
|
160
|
-
backgroundColor: (t.vars || t).palette[
|
|
160
|
+
backgroundColor: (t.vars || t).palette[e].main
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}))]
|
|
164
|
-
}))),
|
|
164
|
+
}))), q = u("span", {
|
|
165
165
|
name: "MuiSwitch",
|
|
166
166
|
slot: "Track"
|
|
167
167
|
})(d(({
|
|
@@ -176,7 +176,7 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
176
176
|
}),
|
|
177
177
|
backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
|
|
178
178
|
opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
|
|
179
|
-
}))),
|
|
179
|
+
}))), G = u("span", {
|
|
180
180
|
name: "MuiSwitch",
|
|
181
181
|
slot: "Thumb"
|
|
182
182
|
})(d(({
|
|
@@ -187,57 +187,57 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
187
187
|
width: 20,
|
|
188
188
|
height: 20,
|
|
189
189
|
borderRadius: "50%"
|
|
190
|
-
}))),
|
|
191
|
-
const p =
|
|
192
|
-
props:
|
|
190
|
+
}))), H = /* @__PURE__ */ z.forwardRef(function(e, s) {
|
|
191
|
+
const p = I({
|
|
192
|
+
props: e,
|
|
193
193
|
name: "MuiSwitch"
|
|
194
194
|
}), {
|
|
195
195
|
className: h,
|
|
196
196
|
color: f = "primary",
|
|
197
197
|
edge: b = !1,
|
|
198
|
-
size:
|
|
199
|
-
sx:
|
|
198
|
+
size: w = "medium",
|
|
199
|
+
sx: g,
|
|
200
200
|
slots: c = {},
|
|
201
201
|
slotProps: r = {},
|
|
202
|
-
|
|
202
|
+
...v
|
|
203
203
|
} = p, i = {
|
|
204
204
|
...p,
|
|
205
205
|
color: f,
|
|
206
206
|
edge: b,
|
|
207
|
-
size:
|
|
208
|
-
}, l =
|
|
207
|
+
size: w
|
|
208
|
+
}, l = A(i), m = {
|
|
209
209
|
slots: c,
|
|
210
210
|
slotProps: r
|
|
211
|
-
}, [T,
|
|
212
|
-
className:
|
|
213
|
-
elementType:
|
|
214
|
-
externalForwardedProps:
|
|
211
|
+
}, [T, $] = y("root", {
|
|
212
|
+
className: R(l.root, h),
|
|
213
|
+
elementType: V,
|
|
214
|
+
externalForwardedProps: m,
|
|
215
215
|
ownerState: i,
|
|
216
216
|
additionalProps: {
|
|
217
|
-
sx:
|
|
217
|
+
sx: g
|
|
218
218
|
}
|
|
219
|
-
}), [
|
|
219
|
+
}), [C, x] = y("thumb", {
|
|
220
220
|
className: l.thumb,
|
|
221
|
-
elementType:
|
|
222
|
-
externalForwardedProps:
|
|
221
|
+
elementType: G,
|
|
222
|
+
externalForwardedProps: m,
|
|
223
223
|
ownerState: i
|
|
224
|
-
}),
|
|
225
|
-
...
|
|
226
|
-
}), [B,
|
|
224
|
+
}), S = /* @__PURE__ */ k(C, {
|
|
225
|
+
...x
|
|
226
|
+
}), [B, O] = y("track", {
|
|
227
227
|
className: l.track,
|
|
228
|
-
elementType:
|
|
229
|
-
externalForwardedProps:
|
|
228
|
+
elementType: q,
|
|
229
|
+
externalForwardedProps: m,
|
|
230
230
|
ownerState: i
|
|
231
231
|
});
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
|
|
234
|
-
children: [/* @__PURE__ */
|
|
232
|
+
return /* @__PURE__ */ D(T, {
|
|
233
|
+
...$,
|
|
234
|
+
children: [/* @__PURE__ */ k(X, {
|
|
235
235
|
type: "checkbox",
|
|
236
|
-
icon:
|
|
237
|
-
checkedIcon:
|
|
236
|
+
icon: S,
|
|
237
|
+
checkedIcon: S,
|
|
238
238
|
ref: s,
|
|
239
239
|
ownerState: i,
|
|
240
|
-
|
|
240
|
+
...v,
|
|
241
241
|
classes: {
|
|
242
242
|
...l,
|
|
243
243
|
root: l.switchBase
|
|
@@ -254,16 +254,19 @@ const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
254
254
|
...r.switchBase && {
|
|
255
255
|
root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
|
|
256
256
|
},
|
|
257
|
+
input: {
|
|
258
|
+
role: "switch"
|
|
259
|
+
},
|
|
257
260
|
...r.input && {
|
|
258
261
|
input: typeof r.input == "function" ? r.input(i) : r.input
|
|
259
262
|
}
|
|
260
263
|
}
|
|
261
|
-
}), /* @__PURE__ */
|
|
262
|
-
...
|
|
264
|
+
}), /* @__PURE__ */ k(B, {
|
|
265
|
+
...O
|
|
263
266
|
})]
|
|
264
267
|
});
|
|
265
268
|
});
|
|
266
|
-
process.env.NODE_ENV !== "production" && (
|
|
269
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
267
270
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
268
271
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
269
272
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -271,39 +274,39 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
271
274
|
/**
|
|
272
275
|
* If `true`, the component is checked.
|
|
273
276
|
*/
|
|
274
|
-
checked:
|
|
277
|
+
checked: o.bool,
|
|
275
278
|
/**
|
|
276
279
|
* The icon to display when the component is checked.
|
|
277
280
|
*/
|
|
278
|
-
checkedIcon:
|
|
281
|
+
checkedIcon: o.node,
|
|
279
282
|
/**
|
|
280
283
|
* Override or extend the styles applied to the component.
|
|
281
284
|
*/
|
|
282
|
-
classes:
|
|
285
|
+
classes: o.object,
|
|
283
286
|
/**
|
|
284
287
|
* @ignore
|
|
285
288
|
*/
|
|
286
|
-
className:
|
|
289
|
+
className: o.string,
|
|
287
290
|
/**
|
|
288
291
|
* The color of the component.
|
|
289
292
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
290
293
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
291
294
|
* @default 'primary'
|
|
292
295
|
*/
|
|
293
|
-
color:
|
|
296
|
+
color: o.oneOfType([o.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
|
|
294
297
|
/**
|
|
295
298
|
* The default checked state. Use when the component is not controlled.
|
|
296
299
|
*/
|
|
297
|
-
defaultChecked:
|
|
300
|
+
defaultChecked: o.bool,
|
|
298
301
|
/**
|
|
299
302
|
* If `true`, the component is disabled.
|
|
300
303
|
*/
|
|
301
|
-
disabled:
|
|
304
|
+
disabled: o.bool,
|
|
302
305
|
/**
|
|
303
306
|
* If `true`, the ripple effect is disabled.
|
|
304
307
|
* @default false
|
|
305
308
|
*/
|
|
306
|
-
disableRipple:
|
|
309
|
+
disableRipple: o.bool,
|
|
307
310
|
/**
|
|
308
311
|
* If given, uses a negative margin to counteract the padding on one
|
|
309
312
|
* side (this is often helpful for aligning the left or right
|
|
@@ -311,25 +314,25 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
311
314
|
* size and shape).
|
|
312
315
|
* @default false
|
|
313
316
|
*/
|
|
314
|
-
edge:
|
|
317
|
+
edge: o.oneOf(["end", "start", !1]),
|
|
315
318
|
/**
|
|
316
319
|
* The icon to display when the component is unchecked.
|
|
317
320
|
*/
|
|
318
|
-
icon:
|
|
321
|
+
icon: o.node,
|
|
319
322
|
/**
|
|
320
323
|
* The id of the `input` element.
|
|
321
324
|
*/
|
|
322
|
-
id:
|
|
325
|
+
id: o.string,
|
|
323
326
|
/**
|
|
324
327
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
325
328
|
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
326
329
|
*/
|
|
327
|
-
inputProps:
|
|
330
|
+
inputProps: o.object,
|
|
328
331
|
/**
|
|
329
332
|
* Pass a ref to the `input` element.
|
|
330
333
|
* @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
331
334
|
*/
|
|
332
|
-
inputRef:
|
|
335
|
+
inputRef: E,
|
|
333
336
|
/**
|
|
334
337
|
* Callback fired when the state is changed.
|
|
335
338
|
*
|
|
@@ -337,52 +340,52 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
337
340
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
338
341
|
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
339
342
|
*/
|
|
340
|
-
onChange:
|
|
343
|
+
onChange: o.func,
|
|
341
344
|
/**
|
|
342
345
|
* If `true`, the `input` element is required.
|
|
343
346
|
* @default false
|
|
344
347
|
*/
|
|
345
|
-
required:
|
|
348
|
+
required: o.bool,
|
|
346
349
|
/**
|
|
347
350
|
* The size of the component.
|
|
348
351
|
* `small` is equivalent to the dense switch styling.
|
|
349
352
|
* @default 'medium'
|
|
350
353
|
*/
|
|
351
|
-
size:
|
|
354
|
+
size: o.oneOfType([o.oneOf(["medium", "small"]), o.string]),
|
|
352
355
|
/**
|
|
353
356
|
* The props used for each slot inside.
|
|
354
357
|
* @default {}
|
|
355
358
|
*/
|
|
356
|
-
slotProps:
|
|
357
|
-
input:
|
|
358
|
-
root:
|
|
359
|
-
switchBase:
|
|
360
|
-
thumb:
|
|
361
|
-
track:
|
|
359
|
+
slotProps: o.shape({
|
|
360
|
+
input: o.oneOfType([o.func, o.object]),
|
|
361
|
+
root: o.oneOfType([o.func, o.object]),
|
|
362
|
+
switchBase: o.oneOfType([o.func, o.object]),
|
|
363
|
+
thumb: o.oneOfType([o.func, o.object]),
|
|
364
|
+
track: o.oneOfType([o.func, o.object])
|
|
362
365
|
}),
|
|
363
366
|
/**
|
|
364
367
|
* The components used for each slot inside.
|
|
365
368
|
* @default {}
|
|
366
369
|
*/
|
|
367
|
-
slots:
|
|
368
|
-
input:
|
|
369
|
-
root:
|
|
370
|
-
switchBase:
|
|
371
|
-
thumb:
|
|
372
|
-
track:
|
|
370
|
+
slots: o.shape({
|
|
371
|
+
input: o.elementType,
|
|
372
|
+
root: o.elementType,
|
|
373
|
+
switchBase: o.elementType,
|
|
374
|
+
thumb: o.elementType,
|
|
375
|
+
track: o.elementType
|
|
373
376
|
}),
|
|
374
377
|
/**
|
|
375
378
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
376
379
|
*/
|
|
377
|
-
sx:
|
|
380
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
378
381
|
/**
|
|
379
382
|
* The value of the component. The DOM API casts this to a string.
|
|
380
383
|
* The browser uses "on" as the default value.
|
|
381
384
|
*/
|
|
382
|
-
value:
|
|
385
|
+
value: o.any
|
|
383
386
|
});
|
|
384
387
|
export {
|
|
385
|
-
|
|
386
|
-
|
|
388
|
+
H as S,
|
|
389
|
+
F as g,
|
|
387
390
|
a as s
|
|
388
391
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const B=require("react"),t=require("./index-DLnSn8GT.cjs"),i=require("./identifier-DBvccNCw.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),q=require("./SwitchBase-Hbqxtooi.cjs"),y=require("./memoTheme-Dv-rDqFz.cjs"),g=require("./useSlot-ONna5RyM.cjs"),u=require("react/jsx-runtime"),c=require("./DefaultPropsProvider-BFTLy05-.cjs"),M=require("./refType-B_IEJm4x.cjs");function D(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const p=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,p.get?p:{enumerable:!0,get:()=>e[s]})}}return o.default=e,Object.freeze(o)}const N=D(B);function S(e){return i.generateUtilityClass("MuiSwitch",e)}const r=i.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=e=>{const{classes:o,edge:s,size:p,color:T,checked:h,disabled:P}=e,f={root:["root",s&&`edge${i.capitalize(s)}`,`size${i.capitalize(p)}`],switchBase:["switchBase",`color${i.capitalize(T)}`,h&&"checked",P&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=c.composeClasses(f,S,o);return{...o,...b}},U=c.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,s.edge&&o[`edge${i.capitalize(s.edge)}`],o[`size${i.capitalize(s.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${r.thumb}`]:{width:16,height:16},[`& .${r.switchBase}`]:{padding:4,[`&.${r.checked}`]:{transform:"translateX(16px)"}}}}]}),_=c.styled(q.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.switchBase,{[`& .${r.input}`]:o.input},s.color!=="default"&&o[`color${i.capitalize(s.color)}`]]}})(y.memoTheme(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${r.checked}`]:{transform:"translateX(20px)"},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${r.checked} + .${r.track}`]:{opacity:.5},[`&.${r.disabled} + .${r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${r.input}`]:{left:"-100%",width:"300%"}})),y.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(R.createSimplePaletteValueFilter(["light"])).map(([o])=>({props:{color:o},style:{[`&.${r.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.55)}`}},[`&.${r.checked} + .${r.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),E=c.styled("span",{name:"MuiSwitch",slot:"Track"})(y.memoTheme(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),F=c.styled("span",{name:"MuiSwitch",slot:"Thumb"})(y.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=N.forwardRef(function(o,s){const p=c.useDefaultProps({props:o,name:"MuiSwitch"}),{className:T,color:h="primary",edge:P=!1,size:f="medium",sx:b,slots:l={},slotProps:a={},...v}=p,n={...p,color:h,edge:P,size:f},d=I(n),w={slots:l,slotProps:a},[$,x]=g.useSlot("root",{className:i.clsx(d.root,T),elementType:U,externalForwardedProps:w,ownerState:n,additionalProps:{sx:b}}),[C,O]=g.useSlot("thumb",{className:d.thumb,elementType:F,externalForwardedProps:w,ownerState:n}),m=u.jsx(C,{...O}),[j,z]=g.useSlot("track",{className:d.track,elementType:E,externalForwardedProps:w,ownerState:n});return u.jsxs($,{...x,children:[u.jsx(_,{type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:n,...v,classes:{...d,root:d.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...a.switchBase&&{root:typeof a.switchBase=="function"?a.switchBase(n):a.switchBase},input:{role:"switch"},...a.input&&{input:typeof a.input=="function"?a.input(n):a.input}}}),u.jsx(j,{...z})]})});process.env.NODE_ENV!=="production"&&(k.propTypes={checked:t.PropTypes.bool,checkedIcon:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),t.PropTypes.string]),defaultChecked:t.PropTypes.bool,disabled:t.PropTypes.bool,disableRipple:t.PropTypes.bool,edge:t.PropTypes.oneOf(["end","start",!1]),icon:t.PropTypes.node,id:t.PropTypes.string,inputProps:t.PropTypes.object,inputRef:M.refType,onChange:t.PropTypes.func,required:t.PropTypes.bool,size:t.PropTypes.oneOfType([t.PropTypes.oneOf(["medium","small"]),t.PropTypes.string]),slotProps:t.PropTypes.shape({input:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),switchBase:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),thumb:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),track:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),slots:t.PropTypes.shape({input:t.PropTypes.elementType,root:t.PropTypes.elementType,switchBase:t.PropTypes.elementType,thumb:t.PropTypes.elementType,track:t.PropTypes.elementType}),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]),value:t.PropTypes.any});exports.Switch=k;exports.getSwitchUtilityClass=S;exports.switchClasses=r;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as H from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { s as
|
|
3
|
+
import { s as k, c as J, r as Q } from "./DefaultPropsProvider-nxIPd34m.js";
|
|
4
4
|
import { u as W } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { G as X, F as Y, K as Z } from "./identifier-
|
|
6
|
-
import { u as
|
|
5
|
+
import { G as X, F as Y, K as Z } from "./identifier-Dnc8T93Z.js";
|
|
6
|
+
import { u as w } from "./useSlot-GooGQrej.js";
|
|
7
7
|
import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
|
|
8
8
|
import { u as te } from "./useControlled-nm4pBabJ.js";
|
|
9
|
-
import { B as se } from "./ButtonBase-
|
|
9
|
+
import { B as se } from "./ButtonBase-CJYV8wgs.js";
|
|
10
10
|
import { r as ne } from "./refType-Dp7CJc86.js";
|
|
11
|
-
function
|
|
11
|
+
function ie(s) {
|
|
12
12
|
return X("PrivateSwitchBase", s);
|
|
13
13
|
}
|
|
14
14
|
Y("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
15
|
-
const
|
|
15
|
+
const re = (s) => {
|
|
16
16
|
const {
|
|
17
17
|
classes: n,
|
|
18
18
|
checked: d,
|
|
@@ -22,8 +22,10 @@ const ie = (s) => {
|
|
|
22
22
|
root: ["root", d && "checked", p && "disabled", a && `edge${Z(a)}`],
|
|
23
23
|
input: ["input"]
|
|
24
24
|
};
|
|
25
|
-
return
|
|
26
|
-
}, ae =
|
|
25
|
+
return J(u, ie, n);
|
|
26
|
+
}, ae = k(se, {
|
|
27
|
+
name: "MuiSwitchBase"
|
|
28
|
+
})({
|
|
27
29
|
padding: 9,
|
|
28
30
|
borderRadius: "50%",
|
|
29
31
|
variants: [{
|
|
@@ -59,7 +61,8 @@ const ie = (s) => {
|
|
|
59
61
|
marginRight: -12
|
|
60
62
|
}
|
|
61
63
|
}]
|
|
62
|
-
}), ce =
|
|
64
|
+
}), ce = k("input", {
|
|
65
|
+
name: "MuiSwitchBase",
|
|
63
66
|
shouldForwardProp: Q
|
|
64
67
|
})({
|
|
65
68
|
cursor: "inherit",
|
|
@@ -72,21 +75,21 @@ const ie = (s) => {
|
|
|
72
75
|
margin: 0,
|
|
73
76
|
padding: 0,
|
|
74
77
|
zIndex: 1
|
|
75
|
-
}), le = /* @__PURE__ */
|
|
78
|
+
}), le = /* @__PURE__ */ H.forwardRef(function(n, d) {
|
|
76
79
|
const {
|
|
77
80
|
autoFocus: p,
|
|
78
81
|
checked: a,
|
|
79
82
|
checkedIcon: u,
|
|
80
83
|
defaultChecked: m,
|
|
81
|
-
disabled:
|
|
82
|
-
disableFocusRipple:
|
|
84
|
+
disabled: C,
|
|
85
|
+
disableFocusRipple: h = !1,
|
|
83
86
|
edge: R = !1,
|
|
84
87
|
icon: x,
|
|
85
88
|
id: T,
|
|
86
89
|
inputProps: I,
|
|
87
90
|
inputRef: j,
|
|
88
91
|
name: O,
|
|
89
|
-
onBlur:
|
|
92
|
+
onBlur: g,
|
|
90
93
|
onChange: b,
|
|
91
94
|
onFocus: y,
|
|
92
95
|
readOnly: z,
|
|
@@ -97,74 +100,74 @@ const ie = (s) => {
|
|
|
97
100
|
slots: E = {},
|
|
98
101
|
slotProps: U = {},
|
|
99
102
|
...v
|
|
100
|
-
} = n, [
|
|
103
|
+
} = n, [S, L] = te({
|
|
101
104
|
controlled: a,
|
|
102
105
|
default: !!m,
|
|
103
106
|
name: "SwitchBase",
|
|
104
107
|
state: "checked"
|
|
105
|
-
}),
|
|
106
|
-
y && y(o),
|
|
108
|
+
}), i = W(), M = (o) => {
|
|
109
|
+
y && y(o), i && i.onFocus && i.onFocus(o);
|
|
110
|
+
}, D = (o) => {
|
|
111
|
+
g && g(o), i && i.onBlur && i.onBlur(o);
|
|
107
112
|
}, G = (o) => {
|
|
108
|
-
h && h(o), r && r.onBlur && r.onBlur(o);
|
|
109
|
-
}, K = (o) => {
|
|
110
113
|
if (o.nativeEvent.defaultPrevented)
|
|
111
114
|
return;
|
|
112
115
|
const t = o.target.checked;
|
|
113
116
|
L(t), b && b(o, t);
|
|
114
117
|
};
|
|
115
|
-
let c =
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
+
let c = C;
|
|
119
|
+
i && typeof c > "u" && (c = i.disabled);
|
|
120
|
+
const K = l === "checkbox" || l === "radio", f = {
|
|
118
121
|
...n,
|
|
119
|
-
checked:
|
|
122
|
+
checked: S,
|
|
120
123
|
disabled: c,
|
|
121
|
-
disableFocusRipple:
|
|
124
|
+
disableFocusRipple: h,
|
|
122
125
|
edge: R
|
|
123
|
-
},
|
|
126
|
+
}, B = re(f), F = {
|
|
124
127
|
slots: E,
|
|
125
128
|
slotProps: {
|
|
126
129
|
input: I,
|
|
127
130
|
...U
|
|
128
131
|
}
|
|
129
|
-
}, [
|
|
132
|
+
}, [V, _] = w("root", {
|
|
130
133
|
ref: d,
|
|
131
134
|
elementType: ae,
|
|
132
|
-
className:
|
|
135
|
+
className: B.root,
|
|
133
136
|
shouldForwardComponentProp: !0,
|
|
134
137
|
externalForwardedProps: {
|
|
135
|
-
...
|
|
138
|
+
...F,
|
|
136
139
|
component: "span",
|
|
137
140
|
...v
|
|
138
141
|
},
|
|
139
142
|
getSlotProps: (o) => ({
|
|
140
143
|
...o,
|
|
141
144
|
onFocus: (t) => {
|
|
142
|
-
var
|
|
143
|
-
(
|
|
145
|
+
var r;
|
|
146
|
+
(r = o.onFocus) == null || r.call(o, t), M(t);
|
|
144
147
|
},
|
|
145
148
|
onBlur: (t) => {
|
|
146
|
-
var
|
|
147
|
-
(
|
|
149
|
+
var r;
|
|
150
|
+
(r = o.onBlur) == null || r.call(o, t), D(t);
|
|
148
151
|
}
|
|
149
152
|
}),
|
|
150
153
|
ownerState: f,
|
|
151
154
|
additionalProps: {
|
|
152
155
|
centerRipple: !0,
|
|
153
|
-
focusRipple: !
|
|
156
|
+
focusRipple: !h,
|
|
154
157
|
disabled: c,
|
|
155
158
|
role: void 0,
|
|
156
159
|
tabIndex: null
|
|
157
160
|
}
|
|
158
|
-
}), [A
|
|
161
|
+
}), [$, A] = w("input", {
|
|
159
162
|
ref: j,
|
|
160
163
|
elementType: ce,
|
|
161
|
-
className:
|
|
162
|
-
externalForwardedProps:
|
|
164
|
+
className: B.input,
|
|
165
|
+
externalForwardedProps: F,
|
|
163
166
|
getSlotProps: (o) => ({
|
|
164
167
|
...o,
|
|
165
168
|
onChange: (t) => {
|
|
166
|
-
var
|
|
167
|
-
(
|
|
169
|
+
var r;
|
|
170
|
+
(r = o.onChange) == null || r.call(o, t), G(t);
|
|
168
171
|
}
|
|
169
172
|
}),
|
|
170
173
|
ownerState: f,
|
|
@@ -173,7 +176,7 @@ const ie = (s) => {
|
|
|
173
176
|
checked: a,
|
|
174
177
|
defaultChecked: m,
|
|
175
178
|
disabled: c,
|
|
176
|
-
id:
|
|
179
|
+
id: K ? T : void 0,
|
|
177
180
|
name: O,
|
|
178
181
|
readOnly: z,
|
|
179
182
|
required: q,
|
|
@@ -184,11 +187,11 @@ const ie = (s) => {
|
|
|
184
187
|
}
|
|
185
188
|
}
|
|
186
189
|
});
|
|
187
|
-
return /* @__PURE__ */ ee(
|
|
188
|
-
|
|
189
|
-
children: [/* @__PURE__ */ oe(
|
|
190
|
-
...
|
|
191
|
-
}),
|
|
190
|
+
return /* @__PURE__ */ ee(V, {
|
|
191
|
+
..._,
|
|
192
|
+
children: [/* @__PURE__ */ oe($, {
|
|
193
|
+
...A
|
|
194
|
+
}), S ? u : x]
|
|
192
195
|
});
|
|
193
196
|
});
|
|
194
197
|
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const W=require("react"),e=require("./index-DLnSn8GT.cjs"),d=require("./DefaultPropsProvider-BFTLy05-.cjs"),X=require("./useFormControl-haP0iPhl.cjs"),f=require("./identifier-DBvccNCw.cjs"),F=require("./useSlot-ONna5RyM.cjs"),k=require("react/jsx-runtime"),Y=require("./useControlled-QrrYcKxm.cjs"),Z=require("./ButtonBase-DPIkh47Q.cjs"),ee=require("./refType-B_IEJm4x.cjs");function oe(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,c.get?c:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const te=oe(W);function se(t){return f.generateUtilityClass("PrivateSwitchBase",t)}f.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const re=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${f.capitalize(a)}`],input:["input"]};return d.composeClasses(y,se,s)},ne=d.styled(Z.ButtonBase,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:s})=>t==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:s})=>t==="end"&&s.size!=="small",style:{marginRight:-12}}]}),pe=d.styled("input",{name:"MuiSwitchBase",shouldForwardProp:d.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),R=te.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:T,disabled:q,disableFocusRipple:g=!1,edge:x=!1,icon:j,id:O,inputProps:I,inputRef:z,name:N,onBlur:b,onChange:h,onFocus:m,readOnly:v,required:D=!1,tabIndex:E,type:u,value:S,slots:U={},slotProps:_={},...L}=s,[B,M]=Y.useControlled({controlled:a,default:!!T,name:"SwitchBase",state:"checked"}),p=X.useFormControl(),V=o=>{m&&m(o),p&&p.onFocus&&p.onFocus(o)},$=o=>{b&&b(o),p&&p.onBlur&&p.onBlur(o)},A=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;M(r),h&&h(o,r)};let l=q;p&&typeof l>"u"&&(l=p.disabled);const G=u==="checkbox"||u==="radio",P={...s,checked:B,disabled:l,disableFocusRipple:g,edge:x},w=re(P),C={slots:U,slotProps:{input:I,..._}},[H,J]=F.useSlot("root",{ref:n,elementType:ne,className:w.root,shouldForwardComponentProp:!0,externalForwardedProps:{...C,component:"span",...L},getSlotProps:o=>({...o,onFocus:r=>{var i;(i=o.onFocus)==null||i.call(o,r),V(r)},onBlur:r=>{var i;(i=o.onBlur)==null||i.call(o,r),$(r)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!g,disabled:l,role:void 0,tabIndex:null}}),[K,Q]=F.useSlot("input",{ref:z,elementType:pe,className:w.input,externalForwardedProps:C,getSlotProps:o=>({...o,onChange:r=>{var i;(i=o.onChange)==null||i.call(o,r),A(r)}}),ownerState:P,additionalProps:{autoFocus:c,checked:a,defaultChecked:T,disabled:l,id:G?O:void 0,name:N,readOnly:v,required:D,tabIndex:E,type:u,...u==="checkbox"&&S===void 0?{}:{value:S}}});return k.jsxs(H,{...J,children:[k.jsx(K,{...Q}),B?y:j]})});process.env.NODE_ENV!=="production"&&(R.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:ee.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=R;
|