@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750752562
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Alert-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
- package/dist/Alert-DPSZppEy.cjs +1 -0
- package/dist/Alert-OeEy_IGc.js +94 -0
- package/dist/Alert-rPyl-bqs.cjs +1 -0
- package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
- package/dist/{Autocomplete-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
- package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/Badge-Bwcsnbsa.js +465 -0
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-Bpxbxvyb.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
- package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
- package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
- package/dist/DatePicker-CH8XRum0.cjs +16 -0
- package/dist/DatePicker-DasS2wq6.js +10663 -0
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
- package/dist/{DefaultPropsProvider-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
- package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/Grid-DFk-4jnZ.js +411 -0
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/ListItemText-qfdqJP77.js +441 -0
- package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/Paper-IQckggbn.js +158 -0
- package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/Stepper-DE2l91K0.js +965 -0
- package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-DwMlN0K5.js → Typography-Dy8r_tT2.js} +6 -7
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +5 -4
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
- package/dist/components/ButtonGroup/index.cjs.js +1 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.es.js +4 -0
- package/dist/components/ButtonGroup/style.cjs.js +1 -0
- package/dist/components/ButtonGroup/style.es.js +29 -0
- package/dist/components/ButtonGroup/types.cjs.js +1 -0
- package/dist/components/ButtonGroup/types.d.ts +22 -0
- package/dist/components/ButtonGroup/types.es.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
- package/dist/components/ColorPicker/styles.es.js +13 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -2
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +8 -3
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +13 -12
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -7
- package/dist/components/TreeView/TreeView.es.js +1207 -1452
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
- package/dist/components/TreeView/components/CustomTreeItem.es.js +3 -3
- package/dist/components/TreeView/types.d.ts +5 -5
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +7 -2
- package/dist/components/index.es.js +402 -391
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.d.ts +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.d.ts +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -0
- package/dist/components/stories/Badge.stories.d.ts +17 -0
- package/dist/components/stories/Badge.stories.es.js +188 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.d.ts +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
- package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
- package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.d.ts +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.d.ts +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.d.ts +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.d.ts +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.d.ts +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.d.ts +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/Dropzone.stories.d.ts +1 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
- package/dist/components/stories/EmptyState.stories.d.ts +1 -1
- package/dist/components/stories/FileList.stories.d.ts +1 -1
- package/dist/components/stories/FolderCard.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.d.ts +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.d.ts +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Loader.stories.d.ts +1 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.d.ts +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.d.ts +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/SearchInput.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.d.ts +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.d.ts +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.d.ts +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +1 -1
- package/dist/components/stories/TreeView.stories.es.js +39 -38
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.d.ts +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
- package/dist/{index-l8yqod25.js → index-8G2jvqZ8.js} +4 -4
- package/dist/index-D3lMWU76.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +402 -391
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-BBciKnr4.js → mergeSlotProps-ChAye7iz.js} +1 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
- package/dist/styled-C7gyRDlj.js +5 -0
- package/dist/styled-Cax0O00h.cjs +1 -0
- package/dist/useControlled-QrrYcKxm.cjs +3 -0
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
- package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
- package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
- package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
- package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-D9cVynB-.js → useTheme--i9fxE_A.js} +1 -1
- package/dist/useTheme-BLMJDSsv.cjs +1 -0
- package/dist/useTheme-CooC_6Ep.cjs +1 -0
- package/dist/useTheme-XJ9sFCWX.js +11 -0
- package/dist/{useThemeProps-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-DQOn-ezC.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
- package/dist/useThemeProps-CQ9rZe7g.js +17 -0
- package/package.json +12 -11
- package/dist/Alert-DW8yCR-B.cjs +0 -1
- package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
- package/dist/Backdrop-3TL73mAe.cjs +0 -1
- package/dist/Badge-DhyDno9j.cjs +0 -138
- package/dist/Box-DYD6q-6M.cjs +0 -1
- package/dist/Button-y1LmxqGA.cjs +0 -1
- package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
- package/dist/CardContent-ji0_AneN.cjs +0 -1
- package/dist/Checkbox-XXqW_dbW.cjs +0 -1
- package/dist/Chip-Bpcd3tnL.cjs +0 -1
- package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
- package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
- package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
- package/dist/DatePicker-BMzW4v1g.js +0 -10255
- package/dist/DatePicker-CNhBoaI3.cjs +0 -14
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
- package/dist/Dialog-B2LKe7ZM.cjs +0 -1
- package/dist/DialogContent-BbCu_OEw.cjs +0 -1
- package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
- package/dist/Divider-Cshcr5kR.cjs +0 -1
- package/dist/FormLabel-0LbNeQQU.cjs +0 -2
- package/dist/Grow-aEgTOewU.cjs +0 -1
- package/dist/IconButton-BKwDNYJl.cjs +0 -2
- package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
- package/dist/InputBase-pYQWRFK2.cjs +0 -3
- package/dist/Link-DUtuCYMx.cjs +0 -1
- package/dist/List-BH_S4Hqm.cjs +0 -1
- package/dist/ListItem-D33t-hkx.cjs +0 -1
- package/dist/ListItemText-B8jlTz59.cjs +0 -2
- package/dist/ListItemText-BeyHu1da.js +0 -853
- package/dist/Menu-BjrN8rMF.cjs +0 -7
- package/dist/MenuItem-Cz_x60jl.cjs +0 -1
- package/dist/Modal-DxwlW5NV.cjs +0 -2
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/Popper-yO_RaCbM.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-C7zzpRFc.cjs +0 -1
- package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
- package/dist/Select-Doay7ukI.cjs +0 -3
- package/dist/Stack-BVWbOqY_.cjs +0 -1
- package/dist/Switch-CEfqaD33.cjs +0 -1
- package/dist/SwitchBase-DvCITKv8.cjs +0 -1
- package/dist/Tab-C6H241Pf.cjs +0 -4
- package/dist/TextField-bE2NUKKK.cjs +0 -1
- package/dist/Tooltip-D_w-IJoD.cjs +0 -4
- package/dist/Typography-De-21leI.cjs +0 -1
- package/dist/capitalize-BHFotl9B.js +0 -9
- package/dist/capitalize-CKLkSyDO.cjs +0 -1
- package/dist/composeClasses-CJKlIaRn.js +0 -51
- package/dist/composeClasses-CWgX5SFD.cjs +0 -1
- package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
- package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
- package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-BzsuDIEl.cjs +0 -1
- package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-W0PiuVaZ.cjs +0 -1
- package/dist/useTheme-C59wIJ3-.js +0 -11
- package/dist/useTheme-ClhInrO2.cjs +0 -1
- package/dist/useTheme-CqYtLDbs.cjs +0 -1
- package/dist/useThemeProps-BFQ8ndnj.js +0 -17
- package/dist/useThemeProps-DYpozGhe.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as P from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as
|
|
3
|
+
import { F as j, G as R, H as M, K as n, n as S, s as N, q as D } from "./identifier-PWESmBq6.js";
|
|
4
4
|
import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
5
|
-
import { S as U } from "./SwitchBase-
|
|
6
|
-
import { m as d } from "./memoTheme-
|
|
7
|
-
import { u as y } from "./useSlot-
|
|
5
|
+
import { S as U } from "./SwitchBase-DZV8S81Z.js";
|
|
6
|
+
import { m as d } from "./memoTheme-DAFDflPY.js";
|
|
7
|
+
import { u as y } from "./useSlot-BzdKwDQ5.js";
|
|
8
8
|
import { jsx as v, jsxs as E } from "react/jsx-runtime";
|
|
9
|
-
import { u as F, s as u, c as q } from "./DefaultPropsProvider-
|
|
10
|
-
import { c as n } from "./capitalize-BHFotl9B.js";
|
|
9
|
+
import { u as F, s as u, c as q } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
11
10
|
import { r as A } from "./refType-Dp7CJc86.js";
|
|
12
11
|
function V(t) {
|
|
13
|
-
return
|
|
12
|
+
return R("MuiSwitch", t);
|
|
14
13
|
}
|
|
15
|
-
const a =
|
|
14
|
+
const a = j("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), X = (t) => {
|
|
16
15
|
const {
|
|
17
16
|
classes: o,
|
|
18
17
|
edge: s,
|
|
@@ -20,17 +19,17 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
20
19
|
color: h,
|
|
21
20
|
checked: f,
|
|
22
21
|
disabled: b
|
|
23
|
-
} = t,
|
|
22
|
+
} = t, g = {
|
|
24
23
|
root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
|
|
25
24
|
switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
|
|
26
25
|
thumb: ["thumb"],
|
|
27
26
|
track: ["track"],
|
|
28
27
|
input: ["input"]
|
|
29
|
-
},
|
|
28
|
+
}, m = q(g, V, o);
|
|
30
29
|
return {
|
|
31
30
|
...o,
|
|
32
31
|
// forward the disabled and checked classes to the SwitchBase
|
|
33
|
-
...
|
|
32
|
+
...m
|
|
34
33
|
};
|
|
35
34
|
}, G = u("span", {
|
|
36
35
|
name: "MuiSwitch",
|
|
@@ -162,10 +161,9 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
}))]
|
|
165
|
-
}))),
|
|
164
|
+
}))), K = u("span", {
|
|
166
165
|
name: "MuiSwitch",
|
|
167
|
-
slot: "Track"
|
|
168
|
-
overridesResolver: (t, o) => o.track
|
|
166
|
+
slot: "Track"
|
|
169
167
|
})(d(({
|
|
170
168
|
theme: t
|
|
171
169
|
}) => ({
|
|
@@ -178,10 +176,9 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
178
176
|
}),
|
|
179
177
|
backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
|
|
180
178
|
opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
|
|
181
|
-
}))),
|
|
179
|
+
}))), L = u("span", {
|
|
182
180
|
name: "MuiSwitch",
|
|
183
|
-
slot: "Thumb"
|
|
184
|
-
overridesResolver: (t, o) => o.thumb
|
|
181
|
+
slot: "Thumb"
|
|
185
182
|
})(d(({
|
|
186
183
|
theme: t
|
|
187
184
|
}) => ({
|
|
@@ -190,7 +187,7 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
190
187
|
width: 20,
|
|
191
188
|
height: 20,
|
|
192
189
|
borderRadius: "50%"
|
|
193
|
-
}))),
|
|
190
|
+
}))), _ = /* @__PURE__ */ P.forwardRef(function(o, s) {
|
|
194
191
|
const p = F({
|
|
195
192
|
props: o,
|
|
196
193
|
name: "MuiSwitch"
|
|
@@ -198,8 +195,8 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
198
195
|
className: h,
|
|
199
196
|
color: f = "primary",
|
|
200
197
|
edge: b = !1,
|
|
201
|
-
size:
|
|
202
|
-
sx:
|
|
198
|
+
size: g = "medium",
|
|
199
|
+
sx: m,
|
|
203
200
|
slots: c = {},
|
|
204
201
|
slotProps: r = {},
|
|
205
202
|
...$
|
|
@@ -207,7 +204,7 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
207
204
|
...p,
|
|
208
205
|
color: f,
|
|
209
206
|
edge: b,
|
|
210
|
-
size:
|
|
207
|
+
size: g
|
|
211
208
|
}, l = X(i), w = {
|
|
212
209
|
slots: c,
|
|
213
210
|
slotProps: r
|
|
@@ -217,18 +214,18 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
217
214
|
externalForwardedProps: w,
|
|
218
215
|
ownerState: i,
|
|
219
216
|
additionalProps: {
|
|
220
|
-
sx:
|
|
217
|
+
sx: m
|
|
221
218
|
}
|
|
222
219
|
}), [x, O] = y("thumb", {
|
|
223
220
|
className: l.thumb,
|
|
224
|
-
elementType:
|
|
221
|
+
elementType: L,
|
|
225
222
|
externalForwardedProps: w,
|
|
226
223
|
ownerState: i
|
|
227
224
|
}), k = /* @__PURE__ */ v(x, {
|
|
228
225
|
...O
|
|
229
226
|
}), [B, z] = y("track", {
|
|
230
227
|
className: l.track,
|
|
231
|
-
elementType:
|
|
228
|
+
elementType: K,
|
|
232
229
|
externalForwardedProps: w,
|
|
233
230
|
ownerState: i
|
|
234
231
|
});
|
|
@@ -266,7 +263,7 @@ const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
266
263
|
})]
|
|
267
264
|
});
|
|
268
265
|
});
|
|
269
|
-
process.env.NODE_ENV !== "production" && (
|
|
266
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
270
267
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
271
268
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
272
269
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -324,7 +321,7 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
|
324
321
|
*/
|
|
325
322
|
id: e.string,
|
|
326
323
|
/**
|
|
327
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
324
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
328
325
|
* @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.
|
|
329
326
|
*/
|
|
330
327
|
inputProps: e.object,
|
|
@@ -385,7 +382,7 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
|
385
382
|
value: e.any
|
|
386
383
|
});
|
|
387
384
|
export {
|
|
388
|
-
|
|
385
|
+
_ as S,
|
|
389
386
|
V as g,
|
|
390
387
|
a as s
|
|
391
388
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const B=require("react"),t=require("./index-DLnSn8GT.cjs"),a=require("./identifier-BoZelETM.cjs"),R=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),q=require("./SwitchBase-P3zHVmLX.cjs"),y=require("./memoTheme-BKfsJx_F.cjs"),w=require("./useSlot-C2FjoUpF.cjs"),u=require("react/jsx-runtime"),c=require("./DefaultPropsProvider-Cnf49AIv.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 a.generateUtilityClass("MuiSwitch",e)}const r=a.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,b={root:["root",s&&`edge${a.capitalize(s)}`,`size${a.capitalize(p)}`],switchBase:["switchBase",`color${a.capitalize(T)}`,h&&"checked",P&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=c.composeClasses(b,S,o);return{...o,...f}},U=c.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,s.edge&&o[`edge${a.capitalize(s.edge)}`],o[`size${a.capitalize(s.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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${a.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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:a.alpha(e.palette.action.active,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.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:a.alpha(e.palette[o].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?a.lighten(e.palette[o].main,.62):a.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%"}))),v=N.forwardRef(function(o,s){const p=c.useDefaultProps({props:o,name:"MuiSwitch"}),{className:T,color:h="primary",edge:P=!1,size:b="medium",sx:f,slots:l={},slotProps:i={},...k}=p,n={...p,color:h,edge:P,size:b},d=I(n),g={slots:l,slotProps:i},[$,C]=w.useSlot("root",{className:a.clsx(d.root,T),elementType:U,externalForwardedProps:g,ownerState:n,additionalProps:{sx:f}}),[O,x]=w.useSlot("thumb",{className:d.thumb,elementType:F,externalForwardedProps:g,ownerState:n}),m=u.jsx(O,{...x}),[j,z]=w.useSlot("track",{className:d.track,elementType:E,externalForwardedProps:g,ownerState:n});return u.jsxs($,{...C,children:[u.jsx(_,{type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:n,...k,classes:{...d,root:d.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...i.switchBase&&{root:typeof i.switchBase=="function"?i.switchBase(n):i.switchBase},...i.input&&{input:typeof i.input=="function"?i.input(n):i.input}}}),u.jsx(j,{...z})]})});process.env.NODE_ENV!=="production"&&(v.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=v;exports.getSwitchUtilityClass=S;exports.switchClasses=r;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as J from "react";
|
|
2
2
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { s as C, c as M, r as Q } from "./DefaultPropsProvider-
|
|
3
|
+
import { s as C, c as M, r as Q } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
4
4
|
import { u as W } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { G as X, F as Y } from "./
|
|
6
|
-
import { u as k } from "./useSlot-
|
|
7
|
-
import { jsxs as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { B as se } from "./ButtonBase-Chb99sDQ.js";
|
|
5
|
+
import { G as X, F as Y, K as Z } from "./identifier-PWESmBq6.js";
|
|
6
|
+
import { u as k } from "./useSlot-BzdKwDQ5.js";
|
|
7
|
+
import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
|
|
8
|
+
import { u as te } from "./useControlled-nm4pBabJ.js";
|
|
9
|
+
import { B as se } from "./ButtonBase-6TF6t2SP.js";
|
|
11
10
|
import { r as ne } from "./refType-Dp7CJc86.js";
|
|
12
11
|
function re(s) {
|
|
13
12
|
return X("PrivateSwitchBase", s);
|
|
@@ -20,7 +19,7 @@ const ie = (s) => {
|
|
|
20
19
|
disabled: p,
|
|
21
20
|
edge: a
|
|
22
21
|
} = s, u = {
|
|
23
|
-
root: ["root", d && "checked", p && "disabled", a && `edge${
|
|
22
|
+
root: ["root", d && "checked", p && "disabled", a && `edge${Z(a)}`],
|
|
24
23
|
input: ["input"]
|
|
25
24
|
};
|
|
26
25
|
return M(u, re, n);
|
|
@@ -73,7 +72,7 @@ const ie = (s) => {
|
|
|
73
72
|
margin: 0,
|
|
74
73
|
padding: 0,
|
|
75
74
|
zIndex: 1
|
|
76
|
-
}), le = /* @__PURE__ */
|
|
75
|
+
}), le = /* @__PURE__ */ J.forwardRef(function(n, d) {
|
|
77
76
|
const {
|
|
78
77
|
autoFocus: p,
|
|
79
78
|
checked: a,
|
|
@@ -98,7 +97,7 @@ const ie = (s) => {
|
|
|
98
97
|
slots: E = {},
|
|
99
98
|
slotProps: U = {},
|
|
100
99
|
...v
|
|
101
|
-
} = n, [F, L] =
|
|
100
|
+
} = n, [F, L] = te({
|
|
102
101
|
controlled: a,
|
|
103
102
|
default: !!m,
|
|
104
103
|
name: "SwitchBase",
|
|
@@ -107,7 +106,7 @@ const ie = (s) => {
|
|
|
107
106
|
y && y(o), r && r.onFocus && r.onFocus(o);
|
|
108
107
|
}, G = (o) => {
|
|
109
108
|
h && h(o), r && r.onBlur && r.onBlur(o);
|
|
110
|
-
},
|
|
109
|
+
}, K = (o) => {
|
|
111
110
|
if (o.nativeEvent.defaultPrevented)
|
|
112
111
|
return;
|
|
113
112
|
const t = o.target.checked;
|
|
@@ -115,7 +114,7 @@ const ie = (s) => {
|
|
|
115
114
|
};
|
|
116
115
|
let c = w;
|
|
117
116
|
r && typeof c > "u" && (c = r.disabled);
|
|
118
|
-
const
|
|
117
|
+
const V = l === "checkbox" || l === "radio", f = {
|
|
119
118
|
...n,
|
|
120
119
|
checked: F,
|
|
121
120
|
disabled: c,
|
|
@@ -127,7 +126,7 @@ const ie = (s) => {
|
|
|
127
126
|
input: I,
|
|
128
127
|
...U
|
|
129
128
|
}
|
|
130
|
-
}, [
|
|
129
|
+
}, [_, $] = k("root", {
|
|
131
130
|
ref: d,
|
|
132
131
|
elementType: ae,
|
|
133
132
|
className: S.root,
|
|
@@ -156,7 +155,7 @@ const ie = (s) => {
|
|
|
156
155
|
role: void 0,
|
|
157
156
|
tabIndex: null
|
|
158
157
|
}
|
|
159
|
-
}), [
|
|
158
|
+
}), [A, H] = k("input", {
|
|
160
159
|
ref: j,
|
|
161
160
|
elementType: ce,
|
|
162
161
|
className: S.input,
|
|
@@ -165,7 +164,7 @@ const ie = (s) => {
|
|
|
165
164
|
...o,
|
|
166
165
|
onChange: (t) => {
|
|
167
166
|
var i;
|
|
168
|
-
(i = o.onChange) == null || i.call(o, t),
|
|
167
|
+
(i = o.onChange) == null || i.call(o, t), K(t);
|
|
169
168
|
}
|
|
170
169
|
}),
|
|
171
170
|
ownerState: f,
|
|
@@ -174,7 +173,7 @@ const ie = (s) => {
|
|
|
174
173
|
checked: a,
|
|
175
174
|
defaultChecked: m,
|
|
176
175
|
disabled: c,
|
|
177
|
-
id:
|
|
176
|
+
id: V ? T : void 0,
|
|
178
177
|
name: O,
|
|
179
178
|
readOnly: z,
|
|
180
179
|
required: q,
|
|
@@ -185,10 +184,10 @@ const ie = (s) => {
|
|
|
185
184
|
}
|
|
186
185
|
}
|
|
187
186
|
});
|
|
188
|
-
return /* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
children: [/* @__PURE__ */
|
|
191
|
-
...
|
|
187
|
+
return /* @__PURE__ */ ee(_, {
|
|
188
|
+
...$,
|
|
189
|
+
children: [/* @__PURE__ */ oe(A, {
|
|
190
|
+
...H
|
|
192
191
|
}), F ? u : x]
|
|
193
192
|
});
|
|
194
193
|
});
|
|
@@ -243,7 +242,7 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
|
243
242
|
*/
|
|
244
243
|
id: e.string,
|
|
245
244
|
/**
|
|
246
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/
|
|
245
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
247
246
|
*/
|
|
248
247
|
inputProps: e.object,
|
|
249
248
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const W=require("react"),e=require("./index-DLnSn8GT.cjs"),d=require("./DefaultPropsProvider-Cnf49AIv.cjs"),X=require("./useFormControl-haP0iPhl.cjs"),f=require("./identifier-BoZelETM.cjs"),k=require("./useSlot-C2FjoUpF.cjs"),w=require("react/jsx-runtime"),Y=require("./useControlled-QrrYcKxm.cjs"),Z=require("./ButtonBase-Dp6sf_dP.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)({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",{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},C=re(P),F={slots:U,slotProps:{input:I,..._}},[H,J]=k.useSlot("root",{ref:n,elementType:ne,className:C.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,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]=k.useSlot("input",{ref:z,elementType:pe,className:C.input,externalForwardedProps:F,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 w.jsxs(H,{...J,children:[w.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;
|