@clearstory/drywall-react 7.2.0 → 7.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-BsHUL286.js → Accordion-xHSrLkHR.js} +5 -5
- package/dist/{AccordionActions-4Ib1j4O_.js → AccordionActions-DxJvzLUL.js} +1 -1
- package/dist/{AccordionDetails-BIg3WsU5.js → AccordionDetails-CuogXgRY.js} +2 -2
- package/dist/{AccordionSummary-Dc7nj11o.js → AccordionSummary-Cigw_LZo.js} +3 -3
- package/dist/{AdapterDayjs-CYYeILyK.js → AdapterDayjs-B_bgpLjR.js} +1 -1
- package/dist/{Alert-Dfl1Khby.js → Alert-BzbQJE20.js} +82 -82
- package/dist/{AlertTitle-VVwCVZYG.js → AlertTitle-DPNlhdPa.js} +3 -3
- package/dist/{ArrowDropDown-DQQG1hDJ.js → ArrowDropDown-uZ1AcIgk.js} +2 -2
- package/dist/{Autocomplete-DG51WhfR.js → Autocomplete-D34P06vA.js} +110 -109
- package/dist/{Avatar-Tq-lIvMN.js → Avatar-C-9_FAjq.js} +3 -3
- package/dist/{AvatarGroup-CIrXsp4z.js → AvatarGroup-D8lUylMk.js} +4 -4
- package/dist/{Backdrop-DPvRl1zZ.js → Backdrop-B4Ia7EtY.js} +2 -2
- package/dist/Badge-NPGe_51o.js +388 -0
- package/dist/{Box-Cd1YLOZ-.js → Box-tMEqMAfx.js} +3 -3
- package/dist/{Breadcrumbs-CFlvMfCb.js → Breadcrumbs-DYRzTcFu.js} +6 -6
- package/dist/{Button-DryY7NPT.js → Button-QivqHp-M.js} +5 -5
- package/dist/{ButtonBase-6EprNl2X.js → ButtonBase-Bi72noqx.js} +1 -1
- package/dist/{ButtonGroup-GJATBD_c.js → ButtonGroup-Do3gIQtE.js} +3 -3
- package/dist/{Card-DBCbdVU2.js → Card-BFSopHcs.js} +2 -2
- package/dist/{CardActionArea-BNb8G37z.js → CardActionArea-c_b2tFe3.js} +3 -3
- package/dist/{CardActions-DfmPr0gn.js → CardActions-C7KQU20Q.js} +1 -1
- package/dist/{CardContent-DA4dkHBt.js → CardContent-yPYgrFcu.js} +1 -1
- package/dist/{CardHeader-Br6uwVrD.js → CardHeader-CR9DeOu4.js} +2 -2
- package/dist/{CardMedia-87tscu3v.js → CardMedia-Dd67I2ML.js} +1 -1
- package/dist/{Checkbox-D3GsjNS3.js → Checkbox-DNovTM5C.js} +5 -5
- package/dist/{Chip-ChFTXi3v.js → Chip-CVCFF0g4.js} +18 -18
- package/dist/{CircularProgress-p7Gq5t6L.js → CircularProgress-D4cGLctr.js} +3 -3
- package/dist/{Clear-CFMBhrck.js → Clear-Dvmnc6Px.js} +1 -1
- package/dist/{Close-lJmbkALB.js → Close-BTh_3opG.js} +1 -1
- package/dist/{Close-CaDQwoD1.js → Close-DFkW1yae.js} +1 -1
- package/dist/{Collapse-0Er5Sz5z.js → Collapse-BUKXVJlO.js} +40 -40
- package/dist/{CssBaseline-Cd0iXsQU.js → CssBaseline-DiUOI0Ii.js} +1 -1
- package/dist/{Datepicker-e89VG7du.js → Datepicker-VxJW44pC.js} +28 -28
- package/dist/{Dialog-DUKrtDDF.js → Dialog-C0Dcyh5Y.js} +8 -8
- package/dist/{DialogActions-Ct2qdXd6.js → DialogActions-VYDNPqM2.js} +1 -1
- package/dist/{DialogContent-Ch2mnmQi.js → DialogContent-CFQ5KUbP.js} +2 -2
- package/dist/{DialogContentText-BBc1ck5w.js → DialogContentText-DLMP3Hdd.js} +2 -2
- package/dist/{DialogTitle-BYmZnfik.js → DialogTitle-v-iQClHs.js} +2 -2
- package/dist/{Divider-ycx7AMFV.js → Divider-zOioqF3O.js} +2 -2
- package/dist/{Drawer-DLSoa2I3.js → Drawer-Bhdn7gd4.js} +8 -8
- package/dist/{Fade-BZd1kkqK.js → Fade--9eywODE.js} +1 -1
- package/dist/{FormControl-CpqxugQk.js → FormControl-DrPP8dU0.js} +2 -2
- package/dist/{FormControlLabel-CxehHu9o.js → FormControlLabel-IfSPCCOh.js} +4 -4
- package/dist/{FormGroup-FX1e1oPO.js → FormGroup-DFyvCj6T.js} +1 -1
- package/dist/{FormHelperText-RAXwx2JF.js → FormHelperText-BSyZcI5O.js} +3 -3
- package/dist/{FormLabel-DXsbRwTS.js → FormLabel-tmdQuE4G.js} +3 -3
- package/dist/{GlobalStyles-BqCTWHBT.js → GlobalStyles-C081E6-3.js} +1 -1
- package/dist/{Grow-Be_BslSM.js → Grow-DiR0VE3b.js} +1 -1
- package/dist/{IconButton-D3kPVOmj.js → IconButton-B1h37ok8.js} +5 -5
- package/dist/{Info-B3KWVOXO.js → Info-Dmczo2E6.js} +1 -1
- package/dist/{InputAdornment-DsE-yUEZ.js → InputAdornment-BN3LG3wf.js} +4 -4
- package/dist/{InputBase-Dab955T6.js → InputBase-95uVeCOm.js} +4 -4
- package/dist/{KeyboardArrowRight-oiZtLJ6Q.js → KeyboardArrowRight-5YOKZbbG.js} +1 -1
- package/dist/{LinearProgress-CaUqErK0.js → LinearProgress-DT4D6lvI.js} +3 -3
- package/dist/{Link-BFT7iy4g.js → Link-C05DkKOU.js} +5 -5
- package/dist/{List-Dv9tf8iZ.js → List-DLwkox4l.js} +1 -1
- package/dist/{ListItem-VHCeeUFy.js → ListItem-DJw2D8KA.js} +2 -2
- package/dist/{ListItemAvatar-BPERHU0-.js → ListItemAvatar-GFRp0ERe.js} +1 -1
- package/dist/{ListItemButton-DGhq5uuh.js → ListItemButton-CJSrwY0m.js} +3 -3
- package/dist/{ListItemIcon-BC3sbSFT.js → ListItemIcon-BwUlPQvG.js} +2 -2
- package/dist/{ListItemText-Cw5ZVTv-.js → ListItemText-5kgKWqp6.js} +2 -2
- package/dist/{ListSubheader-DoqnloIr.js → ListSubheader-Cn7zo2WN.js} +3 -3
- package/dist/{Menu-DKJf-zB8.js → Menu-QTcbrC3U.js} +4 -4
- package/dist/{MenuItem-D21TDo3G.js → MenuItem-C9C4rZZK.js} +3 -3
- package/dist/{MenuList-BI70VkVk.js → MenuList-wRLNxVzl.js} +2 -2
- package/dist/{Modal-BY3aNTGo.js → Modal-lphk3OGn.js} +3 -3
- package/dist/{Paper-BnDCvNy8.js → Paper-CYjHHuGi.js} +4 -4
- package/dist/{Popover-BqaNmmBN.js → Popover-C4g4Cvlp.js} +153 -153
- package/dist/{Popper-BNAb-qpg.js → Popper-D_FgLacq.js} +75 -75
- package/dist/{Radio-B6ofhFJI.js → Radio-CByRmGXi.js} +5 -5
- package/dist/{RadioGroup-CDB3As1a.js → RadioGroup-BlvdvpJ1.js} +1 -1
- package/dist/{Select-CtPZNPng.js → Select-qGJUZPI0.js} +6 -6
- package/dist/{Skeleton-rG_vS_vK.js → Skeleton-cbpGJ4mi.js} +2 -2
- package/dist/{Slide-C75WIR2B.js → Slide-2poxm08g.js} +39 -39
- package/dist/{Snackbar-DeiuAlGC.js → Snackbar-BNZo_eyF.js} +6 -6
- package/dist/{Step-BCxfFlJV.js → Step-mNXE2D06.js} +1 -1
- package/dist/{StepButton-DUpmLnG4.js → StepButton-DIppSlpE.js} +3 -3
- package/dist/{StepConnector-BJEuXuSN.js → StepConnector-BYa8Kne-.js} +3 -3
- package/dist/{StepContent-DUl-0SWI.js → StepContent-BhoB35wQ.js} +3 -3
- package/dist/{StepIcon-DAmVGnL0.js → StepIcon-aV_wkp9m.js} +4 -4
- package/dist/{StepLabel-CqAB-FtZ.js → StepLabel-BkOZ6zjJ.js} +3 -3
- package/dist/{Stepper-bbLAVxVE.js → Stepper-CXbp97X6.js} +2 -2
- package/dist/{SvgIcon-BrAsqASc.js → SvgIcon-B8oryoa5.js} +3 -3
- package/dist/{Switch-DKDfHQVm.js → Switch-B6PEKd8o.js} +4 -4
- package/dist/{SwitchBase-BZz84J1E.js → SwitchBase-C2XAgHZG.js} +11 -12
- package/dist/{Tab-DaPL6tC4.js → Tab-Bo9Q9fUY.js} +4 -4
- package/dist/{Table-BSP0xwVw.js → Table-1FpmJB-p.js} +2 -2
- package/dist/{TableBody-DuPWKF6v.js → TableBody-msUAmdxa.js} +1 -1
- package/dist/{TableCell-BdweS1ET.js → TableCell-CovS0283.js} +3 -3
- package/dist/{TableContainer-BLr1B1N1.js → TableContainer-D5Olxe9m.js} +1 -1
- package/dist/{TableFooter-mWAuLOYG.js → TableFooter-DB2mje5n.js} +1 -1
- package/dist/{TableHead-DmSgS_lJ.js → TableHead-Cra442qd.js} +1 -1
- package/dist/{TablePagination-lAsiYfVQ.js → TablePagination-DUdl-BaY.js} +10 -10
- package/dist/{TableRow-BuJHocbv.js → TableRow-tv9A8znJ.js} +2 -2
- package/dist/{Tabs-BUYEnWj4.js → Tabs-hon-LGqp.js} +19 -19
- package/dist/{ThemeProviderWithVars-D_h1BuKO.js → ThemeProviderWithVars-BNUcBdVQ.js} +3 -3
- package/dist/{ToggleButton-xh5Df3-1.js → ToggleButton-BiMckaCd.js} +4 -4
- package/dist/{ToggleButtonGroup-DXVCiUuR.js → ToggleButtonGroup-D4LFlIbs.js} +3 -3
- package/dist/{Toolbar-BIKVMMEi.js → Toolbar-Bt1Qa2mH.js} +2 -2
- package/dist/{Tooltip-iDF8vneX.js → Tooltip-B41Kh1k0.js} +6 -6
- package/dist/{Typography-CJD_1YNp.js → Typography-BgU_ldl-.js} +4 -4
- package/dist/{WarningAmberOutlined-YFF6FFJ9.js → WarningAmberOutlined-DMySBPYG.js} +1 -1
- package/dist/{Zoom-CvftAd7B.js → Zoom-C2osCIgz.js} +1 -1
- package/dist/{ZoomOut-CSnKUaeV.js → ZoomOut-CCdLSR93.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 +7 -7
- 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/Collapse/index.js +1 -1
- 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 +7 -7
- package/dist/components/DescriptionDetails/DescriptionDetails.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/DescriptionTerm/DescriptionTerm.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DialogActions/index.js +1 -1
- package/dist/components/DialogClose/DialogClose.js +2 -2
- package/dist/components/DialogContent/index.js +1 -1
- package/dist/components/DialogContentText/index.js +1 -1
- package/dist/components/DialogTitle/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Fade/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 +2 -2
- package/dist/components/Grow/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 +6 -6
- 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 +1 -1
- package/dist/components/ListItemIcon/index.js +1 -1
- package/dist/components/ListItemText/index.js +1 -1
- 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/NumberInputControl/NumberInputControl.js +6 -6
- package/dist/components/Paper/index.js +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popper/index.js +1 -1
- 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 +6 -6
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slide/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/Table/index.js +1 -1
- package/dist/components/TableBody/index.js +1 -1
- package/dist/components/TableCell/index.js +1 -1
- package/dist/components/TableContainer/index.js +1 -1
- package/dist/components/TableFooter/index.js +1 -1
- package/dist/components/TableHead/index.js +1 -1
- package/dist/components/TablePagination/index.js +1 -1
- package/dist/components/TableRow/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Textarea/Textarea.js +1 -1
- package/dist/components/TextareaControl/TextareaControl.js +6 -6
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ToastContainer/ToastContainer.js +1 -1
- package/dist/components/ToastContainer/useToast.js +5 -5
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- 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/components/Zoom/index.js +1 -1
- package/dist/{containerClasses-Zulzrsj8.js → containerClasses-d0knG_Lk.js} +4 -4
- package/dist/{createSvgIcon-BXROV6bT.js → createSvgIcon-DULirWwm.js} +1 -1
- package/dist/{createTheme-BFWMvXRe.js → createTheme-PiEw_V9m.js} +130 -127
- package/dist/defaultTheme-Cd478y90.js +5 -0
- package/dist/eslint-config/index.js +14 -10
- package/dist/eslint-config/no-palette-grey.d.ts +3 -0
- package/dist/eslint-config/no-palette-grey.js +121 -0
- package/dist/eslint-config/no-system-props.js +33 -93
- package/dist/{extendSxProp-DsZikgKo.js → extendSxProp-DFDhj_4Z.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/SparkleIcon.js +1 -1
- package/dist/icons/index.js +5 -5
- package/dist/{index-iKRLpQIf.js → index-Db3avKaK.js} +3 -3
- package/dist/{index-DtVyyURM.js → index-DrR6lRMV.js} +1 -1
- package/dist/main.js +103 -103
- package/dist/{memoTheme-CXi6MqCq.js → memoTheme-BtPmrCmh.js} +1 -1
- package/dist/{stackClasses-vPxNSpzG.js → stackClasses-4ps9E778.js} +5 -5
- package/dist/{styled-BWUuu_Y7.js → styled-DGv3Bxg0.js} +2 -2
- package/dist/styled-uiPN25VC.js +5 -0
- package/dist/theme/index.js +5 -5
- package/dist/theme/internal.js +1 -1
- package/dist/{useTheme-CSYDyilx.js → useTheme-By3Sjbe_.js} +2 -2
- package/dist/{useTheme-DFnskFLF.js → useTheme-DJ2s8uyO.js} +1 -1
- package/dist/{useThemeProps-DLN1jrTs.js → useThemeProps-D4d6k1b4.js} +1 -1
- package/package.json +5 -5
- package/dist/Badge-BEVVgsje.js +0 -470
- package/dist/defaultTheme-s7mxt8ja.js +0 -5
- package/dist/styled-B14RdXLD.js +0 -5
package/dist/Badge-BEVVgsje.js
DELETED
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
import * as Q from "react";
|
|
2
|
-
import { P as o } from "./index-B5q5ym9h.js";
|
|
3
|
-
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { u as N } from "./usePreviousProps-7NDRTUOj.js";
|
|
5
|
-
import { m as X } from "./memoTheme-CXi6MqCq.js";
|
|
6
|
-
import { c as Y } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
-
import { g as w } from "./generateUtilityClasses-E9gROIFd.js";
|
|
8
|
-
import { g as rr } from "./generateUtilityClass-BhfUaMgk.js";
|
|
9
|
-
import { u as j } from "./useSlot-CoTIuujp.js";
|
|
10
|
-
import { jsxs as or, jsx as ar } from "react/jsx-runtime";
|
|
11
|
-
import { u as tr } from "./DefaultPropsProvider-CE6KNOqW.js";
|
|
12
|
-
import { s as F } from "./styled-BWUuu_Y7.js";
|
|
13
|
-
import { h as n } from "./createTheme-BFWMvXRe.js";
|
|
14
|
-
import { c as nr } from "./composeClasses-2Ou-RZJr.js";
|
|
15
|
-
function ir(a) {
|
|
16
|
-
const {
|
|
17
|
-
badgeContent: r,
|
|
18
|
-
invisible: t = !1,
|
|
19
|
-
max: i = 99,
|
|
20
|
-
showZero: l = !1
|
|
21
|
-
} = a, g = N({
|
|
22
|
-
badgeContent: r,
|
|
23
|
-
max: i
|
|
24
|
-
});
|
|
25
|
-
let c = t;
|
|
26
|
-
t === !1 && r === 0 && !l && (c = !0);
|
|
27
|
-
const {
|
|
28
|
-
badgeContent: e,
|
|
29
|
-
max: p = i
|
|
30
|
-
} = c ? g : a, f = e && Number(e) > p ? `${p}+` : e;
|
|
31
|
-
return {
|
|
32
|
-
badgeContent: e,
|
|
33
|
-
invisible: c,
|
|
34
|
-
max: p,
|
|
35
|
-
displayValue: f
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function er(a) {
|
|
39
|
-
return rr("MuiBadge", a);
|
|
40
|
-
}
|
|
41
|
-
const s = w("MuiBadge", [
|
|
42
|
-
"root",
|
|
43
|
-
"badge",
|
|
44
|
-
"dot",
|
|
45
|
-
"standard",
|
|
46
|
-
"anchorOriginTopRight",
|
|
47
|
-
"anchorOriginBottomRight",
|
|
48
|
-
"anchorOriginTopLeft",
|
|
49
|
-
"anchorOriginBottomLeft",
|
|
50
|
-
"invisible",
|
|
51
|
-
"colorError",
|
|
52
|
-
"colorInfo",
|
|
53
|
-
"colorPrimary",
|
|
54
|
-
"colorSecondary",
|
|
55
|
-
"colorSuccess",
|
|
56
|
-
"colorWarning",
|
|
57
|
-
"overlapRectangular",
|
|
58
|
-
"overlapCircular",
|
|
59
|
-
// TODO: v6 remove the overlap value from these class keys
|
|
60
|
-
"anchorOriginTopLeftCircular",
|
|
61
|
-
"anchorOriginTopLeftRectangular",
|
|
62
|
-
"anchorOriginTopRightCircular",
|
|
63
|
-
"anchorOriginTopRightRectangular",
|
|
64
|
-
"anchorOriginBottomLeftCircular",
|
|
65
|
-
"anchorOriginBottomLeftRectangular",
|
|
66
|
-
"anchorOriginBottomRightCircular",
|
|
67
|
-
"anchorOriginBottomRightRectangular"
|
|
68
|
-
]), h = 10, u = 4, sr = (a) => {
|
|
69
|
-
const {
|
|
70
|
-
color: r,
|
|
71
|
-
anchorOrigin: t,
|
|
72
|
-
invisible: i,
|
|
73
|
-
overlap: l,
|
|
74
|
-
variant: g,
|
|
75
|
-
classes: c = {}
|
|
76
|
-
} = a, e = {
|
|
77
|
-
root: ["root"],
|
|
78
|
-
badge: ["badge", g, i && "invisible", `anchorOrigin${n(t.vertical)}${n(t.horizontal)}`, `anchorOrigin${n(t.vertical)}${n(t.horizontal)}${n(l)}`, `overlap${n(l)}`, r !== "default" && `color${n(r)}`]
|
|
79
|
-
};
|
|
80
|
-
return nr(e, er, c);
|
|
81
|
-
}, lr = F("span", {
|
|
82
|
-
name: "MuiBadge",
|
|
83
|
-
slot: "Root"
|
|
84
|
-
})({
|
|
85
|
-
position: "relative",
|
|
86
|
-
display: "inline-flex",
|
|
87
|
-
// For correct alignment with the text.
|
|
88
|
-
verticalAlign: "middle",
|
|
89
|
-
flexShrink: 0
|
|
90
|
-
}), cr = F("span", {
|
|
91
|
-
name: "MuiBadge",
|
|
92
|
-
slot: "Badge",
|
|
93
|
-
overridesResolver: (a, r) => {
|
|
94
|
-
const {
|
|
95
|
-
ownerState: t
|
|
96
|
-
} = a;
|
|
97
|
-
return [r.badge, r[t.variant], r[`anchorOrigin${n(t.anchorOrigin.vertical)}${n(t.anchorOrigin.horizontal)}${n(t.overlap)}`], t.color !== "default" && r[`color${n(t.color)}`], t.invisible && r.invisible];
|
|
98
|
-
}
|
|
99
|
-
})(X(({
|
|
100
|
-
theme: a
|
|
101
|
-
}) => ({
|
|
102
|
-
display: "flex",
|
|
103
|
-
flexDirection: "row",
|
|
104
|
-
flexWrap: "wrap",
|
|
105
|
-
justifyContent: "center",
|
|
106
|
-
alignContent: "center",
|
|
107
|
-
alignItems: "center",
|
|
108
|
-
position: "absolute",
|
|
109
|
-
boxSizing: "border-box",
|
|
110
|
-
fontFamily: a.typography.fontFamily,
|
|
111
|
-
fontWeight: a.typography.fontWeightMedium,
|
|
112
|
-
fontSize: a.typography.pxToRem(12),
|
|
113
|
-
minWidth: h * 2,
|
|
114
|
-
lineHeight: 1,
|
|
115
|
-
padding: "0 6px",
|
|
116
|
-
height: h * 2,
|
|
117
|
-
borderRadius: h,
|
|
118
|
-
zIndex: 1,
|
|
119
|
-
// Render the badge on top of potential ripples.
|
|
120
|
-
transition: a.transitions.create("transform", {
|
|
121
|
-
easing: a.transitions.easing.easeInOut,
|
|
122
|
-
duration: a.transitions.duration.enteringScreen
|
|
123
|
-
}),
|
|
124
|
-
variants: [...Object.entries(a.palette).filter(Y(["contrastText"])).map(([r]) => ({
|
|
125
|
-
props: {
|
|
126
|
-
color: r
|
|
127
|
-
},
|
|
128
|
-
style: {
|
|
129
|
-
backgroundColor: (a.vars || a).palette[r].main,
|
|
130
|
-
color: (a.vars || a).palette[r].contrastText
|
|
131
|
-
}
|
|
132
|
-
})), {
|
|
133
|
-
props: {
|
|
134
|
-
variant: "dot"
|
|
135
|
-
},
|
|
136
|
-
style: {
|
|
137
|
-
borderRadius: u,
|
|
138
|
-
height: u * 2,
|
|
139
|
-
minWidth: u * 2,
|
|
140
|
-
padding: 0
|
|
141
|
-
}
|
|
142
|
-
}, {
|
|
143
|
-
props: ({
|
|
144
|
-
ownerState: r
|
|
145
|
-
}) => r.anchorOrigin.vertical === "top" && r.anchorOrigin.horizontal === "right" && r.overlap === "rectangular",
|
|
146
|
-
style: {
|
|
147
|
-
top: 0,
|
|
148
|
-
right: 0,
|
|
149
|
-
transform: "scale(1) translate(50%, -50%)",
|
|
150
|
-
transformOrigin: "100% 0%",
|
|
151
|
-
[`&.${s.invisible}`]: {
|
|
152
|
-
transform: "scale(0) translate(50%, -50%)"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}, {
|
|
156
|
-
props: ({
|
|
157
|
-
ownerState: r
|
|
158
|
-
}) => r.anchorOrigin.vertical === "bottom" && r.anchorOrigin.horizontal === "right" && r.overlap === "rectangular",
|
|
159
|
-
style: {
|
|
160
|
-
bottom: 0,
|
|
161
|
-
right: 0,
|
|
162
|
-
transform: "scale(1) translate(50%, 50%)",
|
|
163
|
-
transformOrigin: "100% 100%",
|
|
164
|
-
[`&.${s.invisible}`]: {
|
|
165
|
-
transform: "scale(0) translate(50%, 50%)"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}, {
|
|
169
|
-
props: ({
|
|
170
|
-
ownerState: r
|
|
171
|
-
}) => r.anchorOrigin.vertical === "top" && r.anchorOrigin.horizontal === "left" && r.overlap === "rectangular",
|
|
172
|
-
style: {
|
|
173
|
-
top: 0,
|
|
174
|
-
left: 0,
|
|
175
|
-
transform: "scale(1) translate(-50%, -50%)",
|
|
176
|
-
transformOrigin: "0% 0%",
|
|
177
|
-
[`&.${s.invisible}`]: {
|
|
178
|
-
transform: "scale(0) translate(-50%, -50%)"
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}, {
|
|
182
|
-
props: ({
|
|
183
|
-
ownerState: r
|
|
184
|
-
}) => r.anchorOrigin.vertical === "bottom" && r.anchorOrigin.horizontal === "left" && r.overlap === "rectangular",
|
|
185
|
-
style: {
|
|
186
|
-
bottom: 0,
|
|
187
|
-
left: 0,
|
|
188
|
-
transform: "scale(1) translate(-50%, 50%)",
|
|
189
|
-
transformOrigin: "0% 100%",
|
|
190
|
-
[`&.${s.invisible}`]: {
|
|
191
|
-
transform: "scale(0) translate(-50%, 50%)"
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
props: ({
|
|
196
|
-
ownerState: r
|
|
197
|
-
}) => r.anchorOrigin.vertical === "top" && r.anchorOrigin.horizontal === "right" && r.overlap === "circular",
|
|
198
|
-
style: {
|
|
199
|
-
top: "14%",
|
|
200
|
-
right: "14%",
|
|
201
|
-
transform: "scale(1) translate(50%, -50%)",
|
|
202
|
-
transformOrigin: "100% 0%",
|
|
203
|
-
[`&.${s.invisible}`]: {
|
|
204
|
-
transform: "scale(0) translate(50%, -50%)"
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}, {
|
|
208
|
-
props: ({
|
|
209
|
-
ownerState: r
|
|
210
|
-
}) => r.anchorOrigin.vertical === "bottom" && r.anchorOrigin.horizontal === "right" && r.overlap === "circular",
|
|
211
|
-
style: {
|
|
212
|
-
bottom: "14%",
|
|
213
|
-
right: "14%",
|
|
214
|
-
transform: "scale(1) translate(50%, 50%)",
|
|
215
|
-
transformOrigin: "100% 100%",
|
|
216
|
-
[`&.${s.invisible}`]: {
|
|
217
|
-
transform: "scale(0) translate(50%, 50%)"
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}, {
|
|
221
|
-
props: ({
|
|
222
|
-
ownerState: r
|
|
223
|
-
}) => r.anchorOrigin.vertical === "top" && r.anchorOrigin.horizontal === "left" && r.overlap === "circular",
|
|
224
|
-
style: {
|
|
225
|
-
top: "14%",
|
|
226
|
-
left: "14%",
|
|
227
|
-
transform: "scale(1) translate(-50%, -50%)",
|
|
228
|
-
transformOrigin: "0% 0%",
|
|
229
|
-
[`&.${s.invisible}`]: {
|
|
230
|
-
transform: "scale(0) translate(-50%, -50%)"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}, {
|
|
234
|
-
props: ({
|
|
235
|
-
ownerState: r
|
|
236
|
-
}) => r.anchorOrigin.vertical === "bottom" && r.anchorOrigin.horizontal === "left" && r.overlap === "circular",
|
|
237
|
-
style: {
|
|
238
|
-
bottom: "14%",
|
|
239
|
-
left: "14%",
|
|
240
|
-
transform: "scale(1) translate(-50%, 50%)",
|
|
241
|
-
transformOrigin: "0% 100%",
|
|
242
|
-
[`&.${s.invisible}`]: {
|
|
243
|
-
transform: "scale(0) translate(-50%, 50%)"
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}, {
|
|
247
|
-
props: {
|
|
248
|
-
invisible: !0
|
|
249
|
-
},
|
|
250
|
-
style: {
|
|
251
|
-
transition: a.transitions.create("transform", {
|
|
252
|
-
easing: a.transitions.easing.easeInOut,
|
|
253
|
-
duration: a.transitions.duration.leavingScreen
|
|
254
|
-
})
|
|
255
|
-
}
|
|
256
|
-
}]
|
|
257
|
-
})));
|
|
258
|
-
function D(a) {
|
|
259
|
-
return {
|
|
260
|
-
vertical: a?.vertical ?? "top",
|
|
261
|
-
horizontal: a?.horizontal ?? "right"
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
const pr = /* @__PURE__ */ Q.forwardRef(function(r, t) {
|
|
265
|
-
const i = tr({
|
|
266
|
-
props: r,
|
|
267
|
-
name: "MuiBadge"
|
|
268
|
-
}), {
|
|
269
|
-
anchorOrigin: l,
|
|
270
|
-
className: g,
|
|
271
|
-
classes: c,
|
|
272
|
-
component: e,
|
|
273
|
-
components: p = {},
|
|
274
|
-
componentsProps: f = {},
|
|
275
|
-
children: I,
|
|
276
|
-
overlap: b = "rectangular",
|
|
277
|
-
color: v = "default",
|
|
278
|
-
invisible: A = !1,
|
|
279
|
-
max: L = 99,
|
|
280
|
-
badgeContent: O,
|
|
281
|
-
slots: y,
|
|
282
|
-
slotProps: P,
|
|
283
|
-
showZero: T = !1,
|
|
284
|
-
variant: m = "standard",
|
|
285
|
-
...M
|
|
286
|
-
} = i, {
|
|
287
|
-
badgeContent: x,
|
|
288
|
-
invisible: U,
|
|
289
|
-
max: V,
|
|
290
|
-
displayValue: W
|
|
291
|
-
} = ir({
|
|
292
|
-
max: L,
|
|
293
|
-
invisible: A,
|
|
294
|
-
badgeContent: O,
|
|
295
|
-
showZero: T
|
|
296
|
-
}), k = N({
|
|
297
|
-
anchorOrigin: D(l),
|
|
298
|
-
color: v,
|
|
299
|
-
overlap: b,
|
|
300
|
-
variant: m,
|
|
301
|
-
badgeContent: O
|
|
302
|
-
}), R = U || x == null && m !== "dot", {
|
|
303
|
-
color: E = v,
|
|
304
|
-
overlap: H = b,
|
|
305
|
-
anchorOrigin: Z,
|
|
306
|
-
variant: C = m
|
|
307
|
-
} = R ? k : i, _ = D(Z), B = C !== "dot" ? W : void 0, d = {
|
|
308
|
-
...i,
|
|
309
|
-
badgeContent: x,
|
|
310
|
-
invisible: R,
|
|
311
|
-
max: V,
|
|
312
|
-
displayValue: B,
|
|
313
|
-
showZero: T,
|
|
314
|
-
anchorOrigin: _,
|
|
315
|
-
color: E,
|
|
316
|
-
overlap: H,
|
|
317
|
-
variant: C
|
|
318
|
-
}, $ = sr(d), z = {
|
|
319
|
-
slots: {
|
|
320
|
-
root: y?.root ?? p.Root,
|
|
321
|
-
badge: y?.badge ?? p.Badge
|
|
322
|
-
},
|
|
323
|
-
slotProps: {
|
|
324
|
-
root: P?.root ?? f.root,
|
|
325
|
-
badge: P?.badge ?? f.badge
|
|
326
|
-
}
|
|
327
|
-
}, [q, G] = j("root", {
|
|
328
|
-
elementType: lr,
|
|
329
|
-
externalForwardedProps: {
|
|
330
|
-
...z,
|
|
331
|
-
...M
|
|
332
|
-
},
|
|
333
|
-
ownerState: d,
|
|
334
|
-
className: S($.root, g),
|
|
335
|
-
ref: t,
|
|
336
|
-
additionalProps: {
|
|
337
|
-
as: e
|
|
338
|
-
}
|
|
339
|
-
}), [J, K] = j("badge", {
|
|
340
|
-
elementType: cr,
|
|
341
|
-
externalForwardedProps: z,
|
|
342
|
-
ownerState: d,
|
|
343
|
-
className: $.badge
|
|
344
|
-
});
|
|
345
|
-
return /* @__PURE__ */ or(q, {
|
|
346
|
-
...G,
|
|
347
|
-
children: [I, /* @__PURE__ */ ar(J, {
|
|
348
|
-
...K,
|
|
349
|
-
children: B
|
|
350
|
-
})]
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
process.env.NODE_ENV !== "production" && (pr.propTypes = {
|
|
354
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
355
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
356
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
357
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
358
|
-
/**
|
|
359
|
-
* The anchor of the badge.
|
|
360
|
-
* @default {
|
|
361
|
-
* vertical: 'top',
|
|
362
|
-
* horizontal: 'right',
|
|
363
|
-
* }
|
|
364
|
-
*/
|
|
365
|
-
anchorOrigin: o.shape({
|
|
366
|
-
horizontal: o.oneOf(["left", "right"]),
|
|
367
|
-
vertical: o.oneOf(["bottom", "top"])
|
|
368
|
-
}),
|
|
369
|
-
/**
|
|
370
|
-
* The content rendered within the badge.
|
|
371
|
-
*/
|
|
372
|
-
badgeContent: o.node,
|
|
373
|
-
/**
|
|
374
|
-
* The badge will be added relative to this node.
|
|
375
|
-
*/
|
|
376
|
-
children: o.node,
|
|
377
|
-
/**
|
|
378
|
-
* Override or extend the styles applied to the component.
|
|
379
|
-
*/
|
|
380
|
-
classes: o.object,
|
|
381
|
-
/**
|
|
382
|
-
* @ignore
|
|
383
|
-
*/
|
|
384
|
-
className: o.string,
|
|
385
|
-
/**
|
|
386
|
-
* The color of the component.
|
|
387
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
388
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
389
|
-
* @default 'default'
|
|
390
|
-
*/
|
|
391
|
-
color: o.oneOfType([o.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
|
|
392
|
-
/**
|
|
393
|
-
* The component used for the root node.
|
|
394
|
-
* Either a string to use a HTML element or a component.
|
|
395
|
-
*/
|
|
396
|
-
component: o.elementType,
|
|
397
|
-
/**
|
|
398
|
-
* The components used for each slot inside.
|
|
399
|
-
*
|
|
400
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
401
|
-
*
|
|
402
|
-
* @default {}
|
|
403
|
-
*/
|
|
404
|
-
components: o.shape({
|
|
405
|
-
Badge: o.elementType,
|
|
406
|
-
Root: o.elementType
|
|
407
|
-
}),
|
|
408
|
-
/**
|
|
409
|
-
* The extra props for the slot components.
|
|
410
|
-
* You can override the existing props or add new ones.
|
|
411
|
-
*
|
|
412
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
413
|
-
*
|
|
414
|
-
* @default {}
|
|
415
|
-
*/
|
|
416
|
-
componentsProps: o.shape({
|
|
417
|
-
badge: o.oneOfType([o.func, o.object]),
|
|
418
|
-
root: o.oneOfType([o.func, o.object])
|
|
419
|
-
}),
|
|
420
|
-
/**
|
|
421
|
-
* If `true`, the badge is invisible.
|
|
422
|
-
* @default false
|
|
423
|
-
*/
|
|
424
|
-
invisible: o.bool,
|
|
425
|
-
/**
|
|
426
|
-
* Max count to show.
|
|
427
|
-
* @default 99
|
|
428
|
-
*/
|
|
429
|
-
max: o.number,
|
|
430
|
-
/**
|
|
431
|
-
* Wrapped shape the badge should overlap.
|
|
432
|
-
* @default 'rectangular'
|
|
433
|
-
*/
|
|
434
|
-
overlap: o.oneOf(["circular", "rectangular"]),
|
|
435
|
-
/**
|
|
436
|
-
* Controls whether the badge is hidden when `badgeContent` is zero.
|
|
437
|
-
* @default false
|
|
438
|
-
*/
|
|
439
|
-
showZero: o.bool,
|
|
440
|
-
/**
|
|
441
|
-
* The props used for each slot inside.
|
|
442
|
-
* @default {}
|
|
443
|
-
*/
|
|
444
|
-
slotProps: o.shape({
|
|
445
|
-
badge: o.oneOfType([o.func, o.object]),
|
|
446
|
-
root: o.oneOfType([o.func, o.object])
|
|
447
|
-
}),
|
|
448
|
-
/**
|
|
449
|
-
* The components used for each slot inside.
|
|
450
|
-
* @default {}
|
|
451
|
-
*/
|
|
452
|
-
slots: o.shape({
|
|
453
|
-
badge: o.elementType,
|
|
454
|
-
root: o.elementType
|
|
455
|
-
}),
|
|
456
|
-
/**
|
|
457
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
458
|
-
*/
|
|
459
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
460
|
-
/**
|
|
461
|
-
* The variant to use.
|
|
462
|
-
* @default 'standard'
|
|
463
|
-
*/
|
|
464
|
-
variant: o.oneOfType([o.oneOf(["dot", "standard"]), o.string])
|
|
465
|
-
});
|
|
466
|
-
export {
|
|
467
|
-
pr as B,
|
|
468
|
-
s as b,
|
|
469
|
-
er as g
|
|
470
|
-
};
|