@clearstory/drywall-react 2.2.0 → 2.3.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/{Accordion-Bjv72dwO.js → Accordion-DCOykts4.js} +8 -7
- package/dist/{AccordionActions-OpMdCn2Z.js → AccordionActions-BAiH7fCc.js} +10 -9
- package/dist/{AccordionDetails-CgLf6g7z.js → AccordionDetails-m2yw4JWL.js} +12 -11
- package/dist/{AccordionSummary-C2WduOvw.js → AccordionSummary-Bcz3kHL3.js} +11 -10
- package/dist/{AdapterDayjs-BOLWylMD.js → AdapterDayjs-BrkWLsMH.js} +3 -3
- package/dist/{Alert-4WYM0NA5.js → Alert-BAwPio4K.js} +15 -14
- package/dist/{AlertTitle-BJh7YkkD.js → AlertTitle-DmUXFJub.js} +13 -12
- package/dist/{ArrowDropDown-1q6M8Obd.js → ArrowDropDown-CHZToUze.js} +4 -4
- package/dist/{Autocomplete-C9jR7Gz3.js → Autocomplete-BnNe-Ocu.js} +20 -19
- package/dist/{Avatar-BW1coVo5.js → Avatar-C331iVZj.js} +14 -13
- package/dist/{AvatarGroup-Cymumkbs.js → AvatarGroup-CguRmDSR.js} +15 -14
- package/dist/{Backdrop-D9hYyloM.js → Backdrop-DLtFFTHy.js} +13 -12
- package/dist/{Badge-CKX_N8SZ.js → Badge-CVhZHphu.js} +13 -12
- package/dist/{Box-O7SvtIw8.js → Box-CKDKtm7F.js} +19 -18
- package/dist/{Breadcrumbs-BCuC1VRi.js → Breadcrumbs-ze8mc2Zg.js} +9 -8
- package/dist/{Button-D5FpepiD.js → Button-B4158Ttr.js} +15 -14
- package/dist/{ButtonBase-t_kdVaqI.js → ButtonBase-COzHF9dg.js} +14 -13
- package/dist/{ButtonGroup-DejD8J4b.js → ButtonGroup-D-4yW6k2.js} +11 -10
- package/dist/{Card-C4KBUbxB.js → Card-Cqms7NUL.js} +13 -12
- package/dist/{CardActionArea-CJoEgqCm.js → CardActionArea-B2Ix5eDP.js} +19 -18
- package/dist/{CardActions-pYmlOEiI.js → CardActions-CMKGIQ5P.js} +8 -7
- package/dist/{CardContent-DeEDpoJu.js → CardContent-BEE7_vOd.js} +12 -11
- package/dist/{CardHeader-kp6aSapw.js → CardHeader-CeJ4xLV1.js} +13 -12
- package/dist/{CardMedia-CCgHX4bc.js → CardMedia-CjIGijkw.js} +10 -9
- package/dist/{Checkbox-BlVkkvFG.js → Checkbox-BlCrwG_a.js} +14 -13
- package/dist/{Chip-Dald_f2Y.js → Chip-BzXGbbX1.js} +14 -13
- package/dist/{CircularProgress-CjDaz1a_.js → CircularProgress-CE-gUslP.js} +14 -13
- package/dist/{Clear-Cp_Sfbwo.js → Clear-ABzw_mBN.js} +1 -1
- package/dist/ClickAwayListener-BhNP8Zmy.js +104 -0
- package/dist/{Close-CXMaN7wz.js → Close-sCOhjzLZ.js} +1 -1
- package/dist/{Collapse-Dled_24V.js → Collapse-54fTKYrR.js} +13 -12
- package/dist/{CssBaseline-B8z8Y0X2.js → CssBaseline-dhNsGT6h.js} +3 -3
- package/dist/{Datepicker-CqhyyHOO.js → Datepicker-DYDSgJ7Y.js} +90 -89
- package/dist/{DefaultPropsProvider-B3clbJFR.js → DefaultPropsProvider-972kdsvD.js} +1 -1
- package/dist/{DefaultPropsProvider-PBxTVeaD.js → DefaultPropsProvider-Hks9kyHW.js} +2 -2
- package/dist/{Dialog-CgBDoc1Q.js → Dialog-DVIwe9ZI.js} +12 -11
- package/dist/{DialogActions-B9aTR1RT.js → DialogActions-CPDvDLrR.js} +19 -18
- package/dist/{DialogContent-BQeFmie3.js → DialogContent-CKtOueUR.js} +13 -12
- package/dist/{DialogContentText-DTcw2F2t.js → DialogContentText-4wkWrNzG.js} +13 -12
- package/dist/{DialogTitle-BKSAT2jz.js → DialogTitle-CKBNYMcR.js} +5 -5
- package/dist/{Divider-CN1iZXpV.js → Divider-DANmFTyq.js} +5 -5
- package/dist/{Drawer-u9qup5a9.js → Drawer-SY5DxFp0.js} +44 -43
- package/dist/{FormControl-D-rAmw3r.js → FormControl-CuHXXTcL.js} +21 -20
- package/dist/{FormControlLabel-Dc1NyaPl.js → FormControlLabel-DfKMLiFM.js} +20 -19
- package/dist/{FormGroup-C6hX5Rxp.js → FormGroup-CclOJ_ni.js} +10 -9
- package/dist/{FormHelperText-BWHhdCfT.js → FormHelperText-wucHHOG8.js} +14 -13
- package/dist/{FormLabel-DNn2gpAc.js → FormLabel-CgNd8XLN.js} +21 -20
- package/dist/{GlobalStyles-ChwRSWsx.js → GlobalStyles-BEfXiUlZ.js} +3 -3
- package/dist/{Grow-DR-owdbZ.js → Grow-C0dChpKD.js} +4 -4
- package/dist/{IconButton-CMvCM_Lp.js → IconButton-rSBl8wjc.js} +20 -19
- package/dist/{Info-Nc5BG3Yc.js → Info-DtWHV9kz.js} +1 -1
- package/dist/{InputAdornment-DbMMP6fx.js → InputAdornment-BpuZG6da.js} +35 -34
- package/dist/{InputBase-B6OIIVG0.js → InputBase-CfVedJZK.js} +20 -19
- package/dist/{LinearProgress-BhzXKKHq.js → LinearProgress-C7E3wvv7.js} +22 -21
- package/dist/{Link-BMYQsA2J.js → Link-DuB1TakW.js} +21 -20
- package/dist/{List-BQ82y_D2.js → List-R1y2rt2I.js} +12 -11
- package/dist/{ListItem-BTJrs0xk.js → ListItem-YdhXS7jh.js} +10 -9
- package/dist/{ListItemAvatar-DMY5yneH.js → ListItemAvatar-Zov7uhBa.js} +16 -15
- package/dist/{ListItemButton-DuUhNIFe.js → ListItemButton-Dd8ymeh-.js} +6 -6
- package/dist/{ListItemIcon-Cwg5u5_e.js → ListItemIcon-C48tLADF.js} +5 -5
- package/dist/{ListItemText-BRX2EYOb.js → ListItemText-C4IUFTAh.js} +5 -5
- package/dist/{ListSubheader-CHpW48wG.js → ListSubheader-B2dYS-AB.js} +15 -14
- package/dist/Menu-DSTbuLGZ.js +289 -0
- package/dist/{MenuItem-B2uAesJs.js → MenuItem-B2Y2sEBv.js} +15 -14
- package/dist/{MenuList-G9HnfsX2.js → MenuList-DHWy1THR.js} +3 -2
- package/dist/{Modal-DLT528-9.js → Modal-quA3LOv8.js} +15 -14
- package/dist/{Paper-DeGJAQE9.js → Paper-DpGDlTnE.js} +17 -16
- package/dist/Popover-C4UMEZFM.js +485 -0
- package/dist/{Popper-706X-ixW.js → Popper-CEmc3hgj.js} +10 -8
- package/dist/{Portal-CkohOYPG.js → Portal-BD1qgEF2.js} +1 -1
- package/dist/{Radio-JRcvAFCw.js → Radio-CWGlqtWa.js} +38 -37
- package/dist/{RadioGroup-C0A6busY.js → RadioGroup-BA0CQX02.js} +17 -16
- package/dist/{Select-tNyTsCta.js → Select-G7DzAygS.js} +17 -16
- package/dist/{SelectControl-Bz5THtuf.js → SelectControl-DGAnDeHt.js} +9 -9
- package/dist/{Skeleton-B8pM1f3a.js → Skeleton-D9qDjbaT.js} +23 -22
- package/dist/Snackbar-B4ylEaa1.js +576 -0
- package/dist/{Step-CwOFbDz2.js → Step-C3KsW_sV.js} +13 -12
- package/dist/{StepButton-DSXTT103.js → StepButton-Cm9DhOQx.js} +14 -13
- package/dist/{StepConnector-BMHzfsfk.js → StepConnector-DK4MJqzZ.js} +15 -14
- package/dist/{StepContent-w8xvdrAQ.js → StepContent-Dl6UHgdu.js} +21 -20
- package/dist/{StepIcon-Cukq5aE2.js → StepIcon-ElSTT-7B.js} +26 -25
- package/dist/{StepLabel-Cy2krTW-.js → StepLabel-B_4bjXGA.js} +12 -11
- package/dist/{Stepper-Bm6IDco_.js → Stepper-CMQnaky0.js} +11 -10
- package/dist/{SvgIcon-ChnoHwqF.js → SvgIcon-CAF-TTUy.js} +24 -23
- package/dist/{Switch-Cvd5G-7l.js → Switch-C72ijhRh.js} +15 -14
- package/dist/{SwitchBase-CufBsptm.js → SwitchBase-BxwR-ITa.js} +11 -10
- package/dist/{Tab-zSeGVRiK.js → Tab-DpKBtsUw.js} +10 -9
- package/dist/{Tabs-Cksd8YLg.js → Tabs-SKtYSjnS.js} +11 -10
- package/dist/{ThemeProviderWithVars-bg3WT8UX.js → ThemeProviderWithVars-Cd9Vwf-U.js} +10 -9
- package/dist/{Toolbar-UdVSl6Kk.js → Toolbar-Dmu2ceP6.js} +10 -9
- package/dist/{Tooltip-CsdchI1h.js → Tooltip-BJmTHiZe.js} +14 -13
- package/dist/{Typography-DPs_xiDb.js → Typography-DnNWmNen.js} +16 -15
- package/dist/{WarningAmberOutlined-YV5tlDPZ.js → WarningAmberOutlined-Bip82sqV.js} +1 -1
- package/dist/{ZoomOut-CoqaIFxD.js → ZoomOut-BsqVAKgf.js} +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionActions/index.js +1 -1
- package/dist/components/AccordionDetails/index.js +1 -1
- package/dist/components/AccordionSummary/index.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AlertTitle/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/AutocompleteControl/AutocompleteControl.js +9 -9
- package/dist/components/AutocompleteControl/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/AvatarGroup/index.js +1 -1
- package/dist/components/Backdrop/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Box/index.js +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBase/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CardActionArea/index.js +1 -1
- package/dist/components/CardActions/index.js +1 -1
- package/dist/components/CardContent/index.js +1 -1
- package/dist/components/CardHeader/index.js +1 -1
- package/dist/components/CardMedia/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/CircularProgress/index.js +1 -1
- package/dist/components/ClickAwayListener/index.d.ts +2 -0
- package/dist/components/ClickAwayListener/index.js +4 -0
- package/dist/components/Container/index.js +1 -1
- package/dist/components/CssBaseline/index.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +3 -3
- package/dist/components/Datepicker/index.js +2 -2
- package/dist/components/DatepickerControl/DatepickerControl.js +9 -9
- package/dist/components/DatepickerControl/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DialogActions/index.js +1 -1
- package/dist/components/DialogContent/index.js +1 -1
- package/dist/components/DialogContentText/index.js +1 -1
- package/dist/components/DialogTitle/index.js +2 -2
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/FormControl/index.js +1 -1
- package/dist/components/FormControlLabel/index.js +1 -1
- package/dist/components/FormGroup/index.js +1 -1
- package/dist/components/FormHelperText/index.js +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/FormSublabel/FormSublabel.js +5 -5
- package/dist/components/FormSublabel/index.js +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InputAdornment/index.js +1 -1
- package/dist/components/InputControl/InputControl.js +9 -9
- package/dist/components/InputControl/index.js +1 -1
- package/dist/components/LinearProgress/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/ListItem/index.js +1 -1
- package/dist/components/ListItemAvatar/index.js +1 -1
- package/dist/components/ListItemButton/index.js +2 -2
- package/dist/components/ListItemIcon/index.js +2 -2
- package/dist/components/ListItemText/index.js +2 -2
- package/dist/components/ListSubheader/index.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/MenuList/index.js +1 -1
- package/dist/components/Paper/index.js +1 -1
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +10 -0
- package/dist/components/Popper/index.d.ts +2 -0
- package/dist/components/Popper/index.js +5 -0
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectControl/SelectControl.js +9 -9
- package/dist/components/SelectControl/index.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Snackbar/index.js +1 -1
- package/dist/components/Stack/index.js +1 -1
- package/dist/components/Step/index.js +1 -1
- package/dist/components/StepButton/index.js +1 -1
- package/dist/components/StepConnector/index.js +1 -1
- package/dist/components/StepContent/index.js +1 -1
- package/dist/components/StepIcon/index.js +1 -1
- package/dist/components/StepLabel/index.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SvgIcon/index.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tab/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ToastContainer/ToastContainer.js +1 -1
- package/dist/components/ToastContainer/useToast.js +4 -4
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/{containerClasses-CeRyE1e2.js → containerClasses-BzFNrSIR.js} +20 -19
- package/dist/{createSvgIcon-D1SROVbP.js → createSvgIcon-DHWmMfd-.js} +1 -1
- package/dist/createTheme-BnGUhbht.js +2328 -0
- package/dist/defaultTheme-B960IsQ-.js +5 -0
- package/dist/{dialogTitleClasses-L_U38KY4.js → dialogTitleClasses-Y20vamk3.js} +2 -2
- package/dist/{dividerClasses-3YRwzxAH.js → dividerClasses-C13nqEzJ.js} +2 -2
- package/dist/{elementAcceptingRef-DYOMXWeA.js → elementAcceptingRef-C0N4y82j.js} +1 -1
- package/dist/{elementTypeAcceptingRef-CnEbk7Q_.js → elementTypeAcceptingRef-B2d5_Vhf.js} +1 -1
- package/dist/{emotion-react.browser.esm-CNRN7WoC.js → emotion-react.browser.esm-VKtuqypl.js} +1 -1
- package/dist/{extendSxProp-BJVEtb89.js → extendSxProp-Ch2FDJvf.js} +1 -1
- package/dist/{generateUtilityClasses-CwzvHfCm.js → generateUtilityClasses-njw3KdKN.js} +1 -1
- package/dist/{getThemeProps-DT8XKnCO.js → getThemeProps-EVOScHVn.js} +1 -1
- package/dist/icons/ClearstoryIcon.js +1 -1
- package/dist/icons/InternalOnlyIcon.js +1 -1
- package/dist/icons/MoneyBucketIcon.js +1 -1
- package/dist/icons/MoreCircleOutlineIcon.js +1 -1
- package/dist/icons/index.js +4 -4
- package/dist/index-CyAhC1RZ.js +672 -0
- package/dist/{index-CcV0p0bw.js → index-D2IRntbh.js} +1 -1
- package/dist/{index-RvUJzkTI.js → index-De_dzPp4.js} +4 -4
- package/dist/{index-D7UP9u8i.js → index-JqwbD7Nb.js} +2 -2
- package/dist/{listItemButtonClasses-DY7lE6xx.js → listItemButtonClasses-B_nV0YiI.js} +2 -2
- package/dist/{listItemIconClasses-DZarNdF_.js → listItemIconClasses-CMPPJSFR.js} +2 -2
- package/dist/{listItemTextClasses-CMDvgiXw.js → listItemTextClasses-BUDn-rsR.js} +2 -2
- package/dist/main.d.ts +3 -0
- package/dist/main.js +223 -210
- package/dist/{memoTheme-DqlI3JW3.js → memoTheme-R-LnLD8I.js} +1 -1
- package/dist/{refType-CCckNw0a.js → refType-CedFpkve.js} +1 -1
- package/dist/{stackClasses-DqA89FGy.js → stackClasses-BGzeCt42.js} +22 -21
- package/dist/styled-DKUIcd6R.js +5 -0
- package/dist/{styled-bJ6DXD3Z.js → styled-fvngWWLy.js} +2 -2
- package/dist/theme/colorSchemes.js +1 -1
- package/dist/theme/index.js +25 -24
- package/dist/theme/internal.js +1 -1
- package/dist/{useTheme-BB-P11R3.js → useTheme-CbsaMxqD.js} +2 -2
- package/dist/{useTheme-DTBpB7d-.js → useTheme-Cz5y14_g.js} +1 -1
- package/dist/{useThemeProps-Dll6b3d8.js → useThemeProps-FvXli9RO.js} +2 -2
- package/dist/{utils-OCLAA0Ck.js → utils-CAuCuXQr.js} +1 -1
- package/package.json +1 -1
- package/dist/Menu-CA0hNHG8.js +0 -752
- package/dist/Snackbar-6S8FLk-7.js +0 -672
- package/dist/createTheme-D79OrE1w.js +0 -2997
- package/dist/defaultTheme-BmQF15Jm.js +0 -5
- package/dist/styled-w_4QIfiM.js +0 -5
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import * as y from "react";
|
|
2
|
+
import { P as e } from "./index-CyAhC1RZ.js";
|
|
3
|
+
import { u as pe } from "./useTimeout-DRd4LBXb.js";
|
|
4
|
+
import { u as B } from "./useEventCallback-BAQJJ3ye.js";
|
|
5
|
+
import { e as N } from "./mergeSlotProps-6s0dXxkk.js";
|
|
6
|
+
import { u as de } from "./useTheme-CbsaMxqD.js";
|
|
7
|
+
import { jsxs as fe, jsx as w } from "react/jsx-runtime";
|
|
8
|
+
import { s as P } from "./styled-fvngWWLy.js";
|
|
9
|
+
import { m as F } from "./memoTheme-R-LnLD8I.js";
|
|
10
|
+
import { g as U } from "./generateUtilityClasses-njw3KdKN.js";
|
|
11
|
+
import { c as I, e as H, j as v } from "./createTheme-BnGUhbht.js";
|
|
12
|
+
import { u as S } from "./useSlot-BVGwJA4b.js";
|
|
13
|
+
import { u as W } from "./DefaultPropsProvider-Hks9kyHW.js";
|
|
14
|
+
import { C as me } from "./ClickAwayListener-BhNP8Zmy.js";
|
|
15
|
+
import { c as be } from "./clsx-OuTLNxxd.js";
|
|
16
|
+
import { c as $ } from "./composeClasses-2Ou-RZJr.js";
|
|
17
|
+
import { P as ge } from "./Paper-DpGDlTnE.js";
|
|
18
|
+
import { G as ye } from "./Grow-C0dChpKD.js";
|
|
19
|
+
function ke(o = {}) {
|
|
20
|
+
const {
|
|
21
|
+
autoHideDuration: n = null,
|
|
22
|
+
disableWindowBlurListener: s = !1,
|
|
23
|
+
onClose: a,
|
|
24
|
+
open: i,
|
|
25
|
+
resumeHideDuration: b
|
|
26
|
+
} = o, u = pe();
|
|
27
|
+
y.useEffect(() => {
|
|
28
|
+
if (!i)
|
|
29
|
+
return;
|
|
30
|
+
function t(r) {
|
|
31
|
+
r.defaultPrevented || r.key === "Escape" && a?.(r, "escapeKeyDown");
|
|
32
|
+
}
|
|
33
|
+
return document.addEventListener("keydown", t), () => {
|
|
34
|
+
document.removeEventListener("keydown", t);
|
|
35
|
+
};
|
|
36
|
+
}, [i, a]);
|
|
37
|
+
const k = B((t, r) => {
|
|
38
|
+
a?.(t, r);
|
|
39
|
+
}), p = B((t) => {
|
|
40
|
+
!a || t == null || u.start(t, () => {
|
|
41
|
+
k(null, "timeout");
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
y.useEffect(() => (i && p(n), u.clear), [i, n, p, u]);
|
|
45
|
+
const d = (t) => {
|
|
46
|
+
a?.(t, "clickaway");
|
|
47
|
+
}, c = u.clear, g = y.useCallback(() => {
|
|
48
|
+
n != null && p(b ?? n * 0.5);
|
|
49
|
+
}, [n, b, p]), T = (t) => (r) => {
|
|
50
|
+
const f = t.onBlur;
|
|
51
|
+
f?.(r), g();
|
|
52
|
+
}, O = (t) => (r) => {
|
|
53
|
+
const f = t.onFocus;
|
|
54
|
+
f?.(r), c();
|
|
55
|
+
}, x = (t) => (r) => {
|
|
56
|
+
const f = t.onMouseEnter;
|
|
57
|
+
f?.(r), c();
|
|
58
|
+
}, E = (t) => (r) => {
|
|
59
|
+
const f = t.onMouseLeave;
|
|
60
|
+
f?.(r), g();
|
|
61
|
+
};
|
|
62
|
+
return y.useEffect(() => {
|
|
63
|
+
if (!s && i)
|
|
64
|
+
return window.addEventListener("focus", g), window.addEventListener("blur", c), () => {
|
|
65
|
+
window.removeEventListener("focus", g), window.removeEventListener("blur", c);
|
|
66
|
+
};
|
|
67
|
+
}, [s, i, g, c]), {
|
|
68
|
+
getRootProps: (t = {}) => {
|
|
69
|
+
const r = {
|
|
70
|
+
...N(o),
|
|
71
|
+
...N(t)
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
75
|
+
// See https://github.com/mui/material-ui/issues/29080
|
|
76
|
+
role: "presentation",
|
|
77
|
+
...t,
|
|
78
|
+
...r,
|
|
79
|
+
onBlur: T(r),
|
|
80
|
+
onFocus: O(r),
|
|
81
|
+
onMouseEnter: x(r),
|
|
82
|
+
onMouseLeave: E(r)
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
onClickAway: d
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function Ce(o) {
|
|
89
|
+
return I("MuiSnackbarContent", o);
|
|
90
|
+
}
|
|
91
|
+
U("MuiSnackbarContent", ["root", "message", "action"]);
|
|
92
|
+
const we = (o) => {
|
|
93
|
+
const {
|
|
94
|
+
classes: n
|
|
95
|
+
} = o;
|
|
96
|
+
return $({
|
|
97
|
+
root: ["root"],
|
|
98
|
+
action: ["action"],
|
|
99
|
+
message: ["message"]
|
|
100
|
+
}, Ce, n);
|
|
101
|
+
}, he = P(ge, {
|
|
102
|
+
name: "MuiSnackbarContent",
|
|
103
|
+
slot: "Root"
|
|
104
|
+
})(F(({
|
|
105
|
+
theme: o
|
|
106
|
+
}) => {
|
|
107
|
+
const n = o.palette.mode === "light" ? 0.8 : 0.98;
|
|
108
|
+
return {
|
|
109
|
+
...o.typography.body2,
|
|
110
|
+
color: o.vars ? o.vars.palette.SnackbarContent.color : o.palette.getContrastText(H(o.palette.background.default, n)),
|
|
111
|
+
backgroundColor: o.vars ? o.vars.palette.SnackbarContent.bg : H(o.palette.background.default, n),
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
114
|
+
flexWrap: "wrap",
|
|
115
|
+
padding: "6px 16px",
|
|
116
|
+
flexGrow: 1,
|
|
117
|
+
[o.breakpoints.up("sm")]: {
|
|
118
|
+
flexGrow: "initial",
|
|
119
|
+
minWidth: 288
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
})), Se = P("div", {
|
|
123
|
+
name: "MuiSnackbarContent",
|
|
124
|
+
slot: "Message"
|
|
125
|
+
})({
|
|
126
|
+
padding: "8px 0"
|
|
127
|
+
}), ve = P("div", {
|
|
128
|
+
name: "MuiSnackbarContent",
|
|
129
|
+
slot: "Action"
|
|
130
|
+
})({
|
|
131
|
+
display: "flex",
|
|
132
|
+
alignItems: "center",
|
|
133
|
+
marginLeft: "auto",
|
|
134
|
+
paddingLeft: 16,
|
|
135
|
+
marginRight: -8
|
|
136
|
+
}), G = /* @__PURE__ */ y.forwardRef(function(n, s) {
|
|
137
|
+
const a = W({
|
|
138
|
+
props: n,
|
|
139
|
+
name: "MuiSnackbarContent"
|
|
140
|
+
}), {
|
|
141
|
+
action: i,
|
|
142
|
+
className: b,
|
|
143
|
+
message: u,
|
|
144
|
+
role: k = "alert",
|
|
145
|
+
...p
|
|
146
|
+
} = a, d = a, c = we(d);
|
|
147
|
+
return /* @__PURE__ */ fe(he, {
|
|
148
|
+
role: k,
|
|
149
|
+
elevation: 6,
|
|
150
|
+
className: be(c.root, b),
|
|
151
|
+
ownerState: d,
|
|
152
|
+
ref: s,
|
|
153
|
+
...p,
|
|
154
|
+
children: [/* @__PURE__ */ w(Se, {
|
|
155
|
+
className: c.message,
|
|
156
|
+
ownerState: d,
|
|
157
|
+
children: u
|
|
158
|
+
}), i ? /* @__PURE__ */ w(ve, {
|
|
159
|
+
className: c.action,
|
|
160
|
+
ownerState: d,
|
|
161
|
+
children: i
|
|
162
|
+
}) : null]
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
166
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
167
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
168
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
169
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
170
|
+
/**
|
|
171
|
+
* The action to display. It renders after the message, at the end of the snackbar.
|
|
172
|
+
*/
|
|
173
|
+
action: e.node,
|
|
174
|
+
/**
|
|
175
|
+
* Override or extend the styles applied to the component.
|
|
176
|
+
*/
|
|
177
|
+
classes: e.object,
|
|
178
|
+
/**
|
|
179
|
+
* @ignore
|
|
180
|
+
*/
|
|
181
|
+
className: e.string,
|
|
182
|
+
/**
|
|
183
|
+
* The message to display.
|
|
184
|
+
*/
|
|
185
|
+
message: e.node,
|
|
186
|
+
/**
|
|
187
|
+
* The ARIA role attribute of the element.
|
|
188
|
+
* @default 'alert'
|
|
189
|
+
*/
|
|
190
|
+
role: e.string,
|
|
191
|
+
/**
|
|
192
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
193
|
+
*/
|
|
194
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
195
|
+
});
|
|
196
|
+
function Pe(o) {
|
|
197
|
+
return I("MuiSnackbar", o);
|
|
198
|
+
}
|
|
199
|
+
const Ve = U("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft"]), Te = (o) => {
|
|
200
|
+
const {
|
|
201
|
+
classes: n,
|
|
202
|
+
anchorOrigin: s
|
|
203
|
+
} = o, a = {
|
|
204
|
+
root: ["root", `anchorOrigin${v(s.vertical)}${v(s.horizontal)}`]
|
|
205
|
+
};
|
|
206
|
+
return $(a, Pe, n);
|
|
207
|
+
}, Oe = P("div", {
|
|
208
|
+
name: "MuiSnackbar",
|
|
209
|
+
slot: "Root",
|
|
210
|
+
overridesResolver: (o, n) => {
|
|
211
|
+
const {
|
|
212
|
+
ownerState: s
|
|
213
|
+
} = o;
|
|
214
|
+
return [n.root, n[`anchorOrigin${v(s.anchorOrigin.vertical)}${v(s.anchorOrigin.horizontal)}`]];
|
|
215
|
+
}
|
|
216
|
+
})(F(({
|
|
217
|
+
theme: o
|
|
218
|
+
}) => ({
|
|
219
|
+
zIndex: (o.vars || o).zIndex.snackbar,
|
|
220
|
+
position: "fixed",
|
|
221
|
+
display: "flex",
|
|
222
|
+
left: 8,
|
|
223
|
+
right: 8,
|
|
224
|
+
justifyContent: "center",
|
|
225
|
+
alignItems: "center",
|
|
226
|
+
variants: [{
|
|
227
|
+
props: ({
|
|
228
|
+
ownerState: n
|
|
229
|
+
}) => n.anchorOrigin.vertical === "top",
|
|
230
|
+
style: {
|
|
231
|
+
top: 8,
|
|
232
|
+
[o.breakpoints.up("sm")]: {
|
|
233
|
+
top: 24
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, {
|
|
237
|
+
props: ({
|
|
238
|
+
ownerState: n
|
|
239
|
+
}) => n.anchorOrigin.vertical !== "top",
|
|
240
|
+
style: {
|
|
241
|
+
bottom: 8,
|
|
242
|
+
[o.breakpoints.up("sm")]: {
|
|
243
|
+
bottom: 24
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}, {
|
|
247
|
+
props: ({
|
|
248
|
+
ownerState: n
|
|
249
|
+
}) => n.anchorOrigin.horizontal === "left",
|
|
250
|
+
style: {
|
|
251
|
+
justifyContent: "flex-start",
|
|
252
|
+
[o.breakpoints.up("sm")]: {
|
|
253
|
+
left: 24,
|
|
254
|
+
right: "auto"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}, {
|
|
258
|
+
props: ({
|
|
259
|
+
ownerState: n
|
|
260
|
+
}) => n.anchorOrigin.horizontal === "right",
|
|
261
|
+
style: {
|
|
262
|
+
justifyContent: "flex-end",
|
|
263
|
+
[o.breakpoints.up("sm")]: {
|
|
264
|
+
right: 24,
|
|
265
|
+
left: "auto"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}, {
|
|
269
|
+
props: ({
|
|
270
|
+
ownerState: n
|
|
271
|
+
}) => n.anchorOrigin.horizontal === "center",
|
|
272
|
+
style: {
|
|
273
|
+
[o.breakpoints.up("sm")]: {
|
|
274
|
+
left: "50%",
|
|
275
|
+
right: "auto",
|
|
276
|
+
transform: "translateX(-50%)"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}]
|
|
280
|
+
}))), xe = /* @__PURE__ */ y.forwardRef(function(n, s) {
|
|
281
|
+
const a = W({
|
|
282
|
+
props: n,
|
|
283
|
+
name: "MuiSnackbar"
|
|
284
|
+
}), i = de(), b = {
|
|
285
|
+
enter: i.transitions.duration.enteringScreen,
|
|
286
|
+
exit: i.transitions.duration.leavingScreen
|
|
287
|
+
}, {
|
|
288
|
+
action: u,
|
|
289
|
+
anchorOrigin: {
|
|
290
|
+
vertical: k,
|
|
291
|
+
horizontal: p
|
|
292
|
+
} = {
|
|
293
|
+
vertical: "bottom",
|
|
294
|
+
horizontal: "left"
|
|
295
|
+
},
|
|
296
|
+
autoHideDuration: d = null,
|
|
297
|
+
children: c,
|
|
298
|
+
className: g,
|
|
299
|
+
ClickAwayListenerProps: T,
|
|
300
|
+
ContentProps: O,
|
|
301
|
+
disableWindowBlurListener: x = !1,
|
|
302
|
+
message: E,
|
|
303
|
+
onBlur: q,
|
|
304
|
+
onClose: t,
|
|
305
|
+
onFocus: r,
|
|
306
|
+
onMouseEnter: f,
|
|
307
|
+
onMouseLeave: Ee,
|
|
308
|
+
open: L,
|
|
309
|
+
resumeHideDuration: Le,
|
|
310
|
+
slots: M = {},
|
|
311
|
+
slotProps: K = {},
|
|
312
|
+
TransitionComponent: A,
|
|
313
|
+
transitionDuration: j = b,
|
|
314
|
+
TransitionProps: {
|
|
315
|
+
onEnter: R,
|
|
316
|
+
onExited: D,
|
|
317
|
+
...V
|
|
318
|
+
} = {},
|
|
319
|
+
..._
|
|
320
|
+
} = a, C = {
|
|
321
|
+
...a,
|
|
322
|
+
anchorOrigin: {
|
|
323
|
+
vertical: k,
|
|
324
|
+
horizontal: p
|
|
325
|
+
},
|
|
326
|
+
autoHideDuration: d,
|
|
327
|
+
disableWindowBlurListener: x,
|
|
328
|
+
TransitionComponent: A,
|
|
329
|
+
transitionDuration: j
|
|
330
|
+
}, X = Te(C), {
|
|
331
|
+
getRootProps: J,
|
|
332
|
+
onClickAway: Q
|
|
333
|
+
} = ke({
|
|
334
|
+
...C
|
|
335
|
+
}), [Y, z] = y.useState(!0), Z = (m) => {
|
|
336
|
+
z(!0), D && D(m);
|
|
337
|
+
}, ee = (m, l) => {
|
|
338
|
+
z(!1), R && R(m, l);
|
|
339
|
+
}, h = {
|
|
340
|
+
slots: {
|
|
341
|
+
transition: A,
|
|
342
|
+
...M
|
|
343
|
+
},
|
|
344
|
+
slotProps: {
|
|
345
|
+
content: O,
|
|
346
|
+
clickAwayListener: T,
|
|
347
|
+
transition: V,
|
|
348
|
+
...K
|
|
349
|
+
}
|
|
350
|
+
}, [oe, ne] = S("root", {
|
|
351
|
+
ref: s,
|
|
352
|
+
className: [X.root, g],
|
|
353
|
+
elementType: Oe,
|
|
354
|
+
getSlotProps: J,
|
|
355
|
+
externalForwardedProps: {
|
|
356
|
+
...h,
|
|
357
|
+
..._
|
|
358
|
+
},
|
|
359
|
+
ownerState: C
|
|
360
|
+
}), [te, {
|
|
361
|
+
ownerState: re,
|
|
362
|
+
...se
|
|
363
|
+
}] = S("clickAwayListener", {
|
|
364
|
+
elementType: me,
|
|
365
|
+
externalForwardedProps: h,
|
|
366
|
+
getSlotProps: (m) => ({
|
|
367
|
+
onClickAway: (...l) => {
|
|
368
|
+
const ue = l[0];
|
|
369
|
+
m.onClickAway?.(...l), !ue?.defaultMuiPrevented && Q(...l);
|
|
370
|
+
}
|
|
371
|
+
}),
|
|
372
|
+
ownerState: C
|
|
373
|
+
}), [ae, ie] = S("content", {
|
|
374
|
+
elementType: G,
|
|
375
|
+
shouldForwardComponentProp: !0,
|
|
376
|
+
externalForwardedProps: h,
|
|
377
|
+
additionalProps: {
|
|
378
|
+
message: E,
|
|
379
|
+
action: u
|
|
380
|
+
},
|
|
381
|
+
ownerState: C
|
|
382
|
+
}), [ce, le] = S("transition", {
|
|
383
|
+
elementType: ye,
|
|
384
|
+
externalForwardedProps: h,
|
|
385
|
+
getSlotProps: (m) => ({
|
|
386
|
+
onEnter: (...l) => {
|
|
387
|
+
m.onEnter?.(...l), ee(...l);
|
|
388
|
+
},
|
|
389
|
+
onExited: (...l) => {
|
|
390
|
+
m.onExited?.(...l), Z(...l);
|
|
391
|
+
}
|
|
392
|
+
}),
|
|
393
|
+
additionalProps: {
|
|
394
|
+
appear: !0,
|
|
395
|
+
in: L,
|
|
396
|
+
timeout: j,
|
|
397
|
+
direction: k === "top" ? "down" : "up"
|
|
398
|
+
},
|
|
399
|
+
ownerState: C
|
|
400
|
+
});
|
|
401
|
+
return !L && Y ? null : /* @__PURE__ */ w(te, {
|
|
402
|
+
...se,
|
|
403
|
+
...M.clickAwayListener && {
|
|
404
|
+
ownerState: re
|
|
405
|
+
},
|
|
406
|
+
children: /* @__PURE__ */ w(oe, {
|
|
407
|
+
...ne,
|
|
408
|
+
children: /* @__PURE__ */ w(ce, {
|
|
409
|
+
...le,
|
|
410
|
+
children: c || /* @__PURE__ */ w(ae, {
|
|
411
|
+
...ie
|
|
412
|
+
})
|
|
413
|
+
})
|
|
414
|
+
})
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
process.env.NODE_ENV !== "production" && (xe.propTypes = {
|
|
418
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
419
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
420
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
421
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
422
|
+
/**
|
|
423
|
+
* The action to display. It renders after the message, at the end of the snackbar.
|
|
424
|
+
*/
|
|
425
|
+
action: e.node,
|
|
426
|
+
/**
|
|
427
|
+
* The anchor of the `Snackbar`.
|
|
428
|
+
* On smaller screens, the component grows to occupy all the available width,
|
|
429
|
+
* the horizontal alignment is ignored.
|
|
430
|
+
* @default { vertical: 'bottom', horizontal: 'left' }
|
|
431
|
+
*/
|
|
432
|
+
anchorOrigin: e.shape({
|
|
433
|
+
horizontal: e.oneOf(["center", "left", "right"]).isRequired,
|
|
434
|
+
vertical: e.oneOf(["bottom", "top"]).isRequired
|
|
435
|
+
}),
|
|
436
|
+
/**
|
|
437
|
+
* The number of milliseconds to wait before automatically calling the
|
|
438
|
+
* `onClose` function. `onClose` should then set the state of the `open`
|
|
439
|
+
* prop to hide the Snackbar. This behavior is disabled by default with
|
|
440
|
+
* the `null` value.
|
|
441
|
+
* @default null
|
|
442
|
+
*/
|
|
443
|
+
autoHideDuration: e.number,
|
|
444
|
+
/**
|
|
445
|
+
* Replace the `SnackbarContent` component.
|
|
446
|
+
*/
|
|
447
|
+
children: e.element,
|
|
448
|
+
/**
|
|
449
|
+
* Override or extend the styles applied to the component.
|
|
450
|
+
*/
|
|
451
|
+
classes: e.object,
|
|
452
|
+
/**
|
|
453
|
+
* @ignore
|
|
454
|
+
*/
|
|
455
|
+
className: e.string,
|
|
456
|
+
/**
|
|
457
|
+
* Props applied to the `ClickAwayListener` element.
|
|
458
|
+
* @deprecated Use `slotProps.clickAwayListener` 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.
|
|
459
|
+
*/
|
|
460
|
+
ClickAwayListenerProps: e.object,
|
|
461
|
+
/**
|
|
462
|
+
* Props applied to the [`SnackbarContent`](https://mui.com/material-ui/api/snackbar-content/) element.
|
|
463
|
+
* @deprecated Use `slotProps.content` 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.
|
|
464
|
+
*/
|
|
465
|
+
ContentProps: e.object,
|
|
466
|
+
/**
|
|
467
|
+
* If `true`, the `autoHideDuration` timer will expire even if the window is not focused.
|
|
468
|
+
* @default false
|
|
469
|
+
*/
|
|
470
|
+
disableWindowBlurListener: e.bool,
|
|
471
|
+
/**
|
|
472
|
+
* When displaying multiple consecutive snackbars using a single parent-rendered
|
|
473
|
+
* `<Snackbar/>`, add the `key` prop to ensure independent treatment of each message.
|
|
474
|
+
* For instance, use `<Snackbar key={message} />`. Otherwise, messages might update
|
|
475
|
+
* in place, and features like `autoHideDuration` could be affected.
|
|
476
|
+
*/
|
|
477
|
+
key: () => null,
|
|
478
|
+
/**
|
|
479
|
+
* The message to display.
|
|
480
|
+
*/
|
|
481
|
+
message: e.node,
|
|
482
|
+
/**
|
|
483
|
+
* @ignore
|
|
484
|
+
*/
|
|
485
|
+
onBlur: e.func,
|
|
486
|
+
/**
|
|
487
|
+
* Callback fired when the component requests to be closed.
|
|
488
|
+
* Typically `onClose` is used to set state in the parent component,
|
|
489
|
+
* which is used to control the `Snackbar` `open` prop.
|
|
490
|
+
* The `reason` parameter can optionally be used to control the response to `onClose`,
|
|
491
|
+
* for example ignoring `clickaway`.
|
|
492
|
+
*
|
|
493
|
+
* @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
|
|
494
|
+
* @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
|
|
495
|
+
*/
|
|
496
|
+
onClose: e.func,
|
|
497
|
+
/**
|
|
498
|
+
* @ignore
|
|
499
|
+
*/
|
|
500
|
+
onFocus: e.func,
|
|
501
|
+
/**
|
|
502
|
+
* @ignore
|
|
503
|
+
*/
|
|
504
|
+
onMouseEnter: e.func,
|
|
505
|
+
/**
|
|
506
|
+
* @ignore
|
|
507
|
+
*/
|
|
508
|
+
onMouseLeave: e.func,
|
|
509
|
+
/**
|
|
510
|
+
* If `true`, the component is shown.
|
|
511
|
+
*/
|
|
512
|
+
open: e.bool,
|
|
513
|
+
/**
|
|
514
|
+
* The number of milliseconds to wait before dismissing after user interaction.
|
|
515
|
+
* If `autoHideDuration` prop isn't specified, it does nothing.
|
|
516
|
+
* If `autoHideDuration` prop is specified but `resumeHideDuration` isn't,
|
|
517
|
+
* we default to `autoHideDuration / 2` ms.
|
|
518
|
+
*/
|
|
519
|
+
resumeHideDuration: e.number,
|
|
520
|
+
/**
|
|
521
|
+
* The props used for each slot inside.
|
|
522
|
+
* @default {}
|
|
523
|
+
*/
|
|
524
|
+
slotProps: e.shape({
|
|
525
|
+
clickAwayListener: e.oneOfType([e.func, e.object]),
|
|
526
|
+
content: e.oneOfType([e.func, e.object]),
|
|
527
|
+
root: e.oneOfType([e.func, e.object]),
|
|
528
|
+
transition: e.oneOfType([e.func, e.object])
|
|
529
|
+
}),
|
|
530
|
+
/**
|
|
531
|
+
* The components used for each slot inside.
|
|
532
|
+
* @default {}
|
|
533
|
+
*/
|
|
534
|
+
slots: e.shape({
|
|
535
|
+
clickAwayListener: e.elementType,
|
|
536
|
+
content: e.elementType,
|
|
537
|
+
root: e.elementType,
|
|
538
|
+
transition: e.elementType
|
|
539
|
+
}),
|
|
540
|
+
/**
|
|
541
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
542
|
+
*/
|
|
543
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
544
|
+
/**
|
|
545
|
+
* The component used for the transition.
|
|
546
|
+
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
547
|
+
* @deprecated Use `slots.transition` 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.
|
|
548
|
+
* @default Grow
|
|
549
|
+
*/
|
|
550
|
+
TransitionComponent: e.elementType,
|
|
551
|
+
/**
|
|
552
|
+
* The duration for the transition, in milliseconds.
|
|
553
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
554
|
+
* @default {
|
|
555
|
+
* enter: theme.transitions.duration.enteringScreen,
|
|
556
|
+
* exit: theme.transitions.duration.leavingScreen,
|
|
557
|
+
* }
|
|
558
|
+
*/
|
|
559
|
+
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
560
|
+
appear: e.number,
|
|
561
|
+
enter: e.number,
|
|
562
|
+
exit: e.number
|
|
563
|
+
})]),
|
|
564
|
+
/**
|
|
565
|
+
* Props applied to the transition element.
|
|
566
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
567
|
+
* @deprecated Use `slotProps.transition` 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.
|
|
568
|
+
* @default {}
|
|
569
|
+
*/
|
|
570
|
+
TransitionProps: e.object
|
|
571
|
+
});
|
|
572
|
+
export {
|
|
573
|
+
xe as S,
|
|
574
|
+
Pe as g,
|
|
575
|
+
Ve as s
|
|
576
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as d from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import { a as
|
|
5
|
-
import { g as
|
|
2
|
+
import { P as e } from "./index-CyAhC1RZ.js";
|
|
3
|
+
import { c as M } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { a as N, S as O } from "./StepContext-DBP0UfQI.js";
|
|
5
|
+
import { g as U } from "./generateUtilityClasses-njw3KdKN.js";
|
|
6
|
+
import { c as z } from "./createTheme-BnGUhbht.js";
|
|
6
7
|
import { jsxs as L, jsx as D } from "react/jsx-runtime";
|
|
7
|
-
import { u as E } from "./DefaultPropsProvider-
|
|
8
|
-
import { s as V } from "./styled-
|
|
8
|
+
import { u as E } from "./DefaultPropsProvider-Hks9kyHW.js";
|
|
9
|
+
import { s as V } from "./styled-fvngWWLy.js";
|
|
9
10
|
import { c as F } from "./composeClasses-2Ou-RZJr.js";
|
|
10
11
|
import { i as _ } from "./integerPropType-BihGt2aU.js";
|
|
11
12
|
function k(a) {
|
|
12
|
-
return
|
|
13
|
+
return z("MuiStep", a);
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const $ = U("MuiStep", ["root", "horizontal", "vertical", "alternativeLabel", "completed"]), q = (a) => {
|
|
15
16
|
const {
|
|
16
17
|
classes: t,
|
|
17
18
|
orientation: s,
|
|
@@ -69,7 +70,7 @@ const Z = z("MuiStep", ["root", "horizontal", "vertical", "alternativeLabel", "c
|
|
|
69
70
|
alternativeLabel: b,
|
|
70
71
|
orientation: T,
|
|
71
72
|
nonLinear: y
|
|
72
|
-
} = d.useContext(
|
|
73
|
+
} = d.useContext(N);
|
|
73
74
|
let [l = !1, p = !1, c = !1] = [r, m, f];
|
|
74
75
|
v === o ? l = r !== void 0 ? r : !0 : !y && v > o ? p = m !== void 0 ? m : !0 : !y && v < o && (c = f !== void 0 ? f : !0);
|
|
75
76
|
const j = d.useMemo(() => ({
|
|
@@ -91,13 +92,13 @@ const Z = z("MuiStep", ["root", "horizontal", "vertical", "alternativeLabel", "c
|
|
|
91
92
|
component: x
|
|
92
93
|
}, w = q(h), C = /* @__PURE__ */ L(A, {
|
|
93
94
|
as: x,
|
|
94
|
-
className:
|
|
95
|
+
className: M(w.root, P),
|
|
95
96
|
ref: s,
|
|
96
97
|
ownerState: h,
|
|
97
98
|
...R,
|
|
98
99
|
children: [i && b && o !== 0 ? i : null, S]
|
|
99
100
|
});
|
|
100
|
-
return /* @__PURE__ */ D(
|
|
101
|
+
return /* @__PURE__ */ D(O.Provider, {
|
|
101
102
|
value: j,
|
|
102
103
|
children: i && !b && o !== 0 ? /* @__PURE__ */ L(d.Fragment, {
|
|
103
104
|
children: [i, C]
|
|
@@ -162,5 +163,5 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
162
163
|
export {
|
|
163
164
|
B as S,
|
|
164
165
|
k as g,
|
|
165
|
-
|
|
166
|
+
$ as s
|
|
166
167
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import { S as
|
|
5
|
-
import { g as
|
|
2
|
+
import { P as t } from "./index-CyAhC1RZ.js";
|
|
3
|
+
import { c as B } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
import { S as b, a as C } from "./StepContext-DBP0UfQI.js";
|
|
5
|
+
import { g as y } from "./generateUtilityClasses-njw3KdKN.js";
|
|
6
|
+
import { c as v } from "./createTheme-BnGUhbht.js";
|
|
6
7
|
import { jsx as l } from "react/jsx-runtime";
|
|
7
|
-
import { u as N } from "./DefaultPropsProvider-
|
|
8
|
+
import { u as N } from "./DefaultPropsProvider-Hks9kyHW.js";
|
|
8
9
|
import { i as j } from "./isMuiElement-BKsIGdxJ.js";
|
|
9
|
-
import { S as w } from "./StepLabel-
|
|
10
|
-
import { s as M } from "./styled-
|
|
10
|
+
import { S as w } from "./StepLabel-B_4bjXGA.js";
|
|
11
|
+
import { s as M } from "./styled-fvngWWLy.js";
|
|
11
12
|
import { c as P } from "./composeClasses-2Ou-RZJr.js";
|
|
12
|
-
import { B as T } from "./ButtonBase-
|
|
13
|
+
import { B as T } from "./ButtonBase-COzHF9dg.js";
|
|
13
14
|
function E(e) {
|
|
14
|
-
return
|
|
15
|
+
return v("MuiStepButton", e);
|
|
15
16
|
}
|
|
16
|
-
const u =
|
|
17
|
+
const u = y("MuiStepButton", ["root", "horizontal", "vertical", "touchRipple"]), O = (e) => {
|
|
17
18
|
const {
|
|
18
19
|
classes: o,
|
|
19
20
|
orientation: s
|
|
@@ -64,9 +65,9 @@ const u = v("MuiStepButton", ["root", "horizontal", "vertical", "touchRipple"]),
|
|
|
64
65
|
} = r, {
|
|
65
66
|
disabled: h,
|
|
66
67
|
active: x
|
|
67
|
-
} = n.useContext(
|
|
68
|
+
} = n.useContext(b), {
|
|
68
69
|
orientation: R
|
|
69
|
-
} = n.useContext(
|
|
70
|
+
} = n.useContext(C), p = {
|
|
70
71
|
...r,
|
|
71
72
|
orientation: R
|
|
72
73
|
}, a = O(p), c = {
|
|
@@ -82,7 +83,7 @@ const u = v("MuiStepButton", ["root", "horizontal", "vertical", "touchRipple"]),
|
|
|
82
83
|
TouchRippleProps: {
|
|
83
84
|
className: a.touchRipple
|
|
84
85
|
},
|
|
85
|
-
className:
|
|
86
|
+
className: B(a.root, m),
|
|
86
87
|
ref: s,
|
|
87
88
|
ownerState: p,
|
|
88
89
|
"aria-current": x ? "step" : void 0,
|