@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
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import e from "./no-
|
|
2
|
-
import l from "./no-
|
|
3
|
-
import a from "./
|
|
4
|
-
import o from "./prefer-
|
|
1
|
+
import e from "./no-palette-grey.js";
|
|
2
|
+
import l from "./no-shorthand-spacing.js";
|
|
3
|
+
import a from "./no-system-props.js";
|
|
4
|
+
import o from "./prefer-logical-properties.js";
|
|
5
|
+
import t from "./prefer-vars-palette.js";
|
|
5
6
|
const r = {
|
|
6
7
|
rules: {
|
|
7
|
-
"no-
|
|
8
|
-
"no-
|
|
9
|
-
"
|
|
10
|
-
"prefer-
|
|
8
|
+
"no-palette-grey": e,
|
|
9
|
+
"no-shorthand-spacing": l,
|
|
10
|
+
"no-system-props": a,
|
|
11
|
+
"prefer-logical-properties": o,
|
|
12
|
+
"prefer-vars-palette": t
|
|
11
13
|
},
|
|
12
14
|
configs: {}
|
|
13
15
|
};
|
|
@@ -17,18 +19,20 @@ r.configs.recommended = {
|
|
|
17
19
|
"@clearstory/drywall-react": r
|
|
18
20
|
},
|
|
19
21
|
rules: {
|
|
22
|
+
"@clearstory/drywall-react/no-palette-grey": "error",
|
|
20
23
|
"@clearstory/drywall-react/no-shorthand-spacing": "error",
|
|
21
24
|
"@clearstory/drywall-react/no-system-props": "error",
|
|
22
25
|
"@clearstory/drywall-react/prefer-logical-properties": "error",
|
|
23
26
|
"@clearstory/drywall-react/prefer-vars-palette": "error"
|
|
24
27
|
}
|
|
25
28
|
};
|
|
26
|
-
const
|
|
29
|
+
const d = {
|
|
27
30
|
name: "@clearstory/drywall-react",
|
|
28
31
|
plugins: {
|
|
29
32
|
"@clearstory/drywall-react": r
|
|
30
33
|
},
|
|
31
34
|
rules: {
|
|
35
|
+
"@clearstory/drywall-react/no-palette-grey": "error",
|
|
32
36
|
"@clearstory/drywall-react/no-shorthand-spacing": "error",
|
|
33
37
|
"@clearstory/drywall-react/no-system-props": "error",
|
|
34
38
|
"@clearstory/drywall-react/prefer-logical-properties": "error",
|
|
@@ -36,6 +40,6 @@ const y = {
|
|
|
36
40
|
}
|
|
37
41
|
};
|
|
38
42
|
export {
|
|
39
|
-
|
|
43
|
+
d as default,
|
|
40
44
|
r as plugin
|
|
41
45
|
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { createSxVisitor as l } from "./sx-utils.js";
|
|
2
|
+
const y = /* @__PURE__ */ new Set([
|
|
3
|
+
"color",
|
|
4
|
+
"backgroundColor",
|
|
5
|
+
"bgcolor",
|
|
6
|
+
"background",
|
|
7
|
+
"borderColor",
|
|
8
|
+
"borderTopColor",
|
|
9
|
+
"borderRightColor",
|
|
10
|
+
"borderBottomColor",
|
|
11
|
+
"borderLeftColor",
|
|
12
|
+
"outlineColor",
|
|
13
|
+
"fill",
|
|
14
|
+
"stroke",
|
|
15
|
+
"caretColor",
|
|
16
|
+
"textDecorationColor",
|
|
17
|
+
"columnRuleColor"
|
|
18
|
+
]), u = {
|
|
19
|
+
meta: {
|
|
20
|
+
type: "suggestion",
|
|
21
|
+
docs: {
|
|
22
|
+
description: "Disallow usage of palette.grey in sx props. Use semantic colors instead.",
|
|
23
|
+
category: "Best Practices",
|
|
24
|
+
recommended: !0
|
|
25
|
+
},
|
|
26
|
+
messages: {
|
|
27
|
+
greyMemberAccess: "Avoid using palette.grey. Use a semantic color instead (e.g. vars.palette.text.secondary, vars.palette.action.disabled, vars.palette.divider).",
|
|
28
|
+
greyStringLiteral: 'Avoid using "{{value}}" in sx. Use a semantic color instead (e.g. vars.palette.text.secondary, vars.palette.action.disabled, vars.palette.divider).'
|
|
29
|
+
},
|
|
30
|
+
schema: []
|
|
31
|
+
},
|
|
32
|
+
create(t) {
|
|
33
|
+
return l({
|
|
34
|
+
onProperty(e, r, o) {
|
|
35
|
+
y.has(e) && i(t, o);
|
|
36
|
+
},
|
|
37
|
+
onCallback(e) {
|
|
38
|
+
a(t, e);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
function i(t, e) {
|
|
44
|
+
if (e.type === "ObjectExpression") {
|
|
45
|
+
const r = e.properties;
|
|
46
|
+
for (const o of r) {
|
|
47
|
+
if (o.type === "SpreadElement" || o.type !== "Property") continue;
|
|
48
|
+
i(t, o.value);
|
|
49
|
+
}
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (e.type === "ArrowFunctionExpression" || e.type === "FunctionExpression") {
|
|
53
|
+
a(t, e);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (e.type === "Literal") {
|
|
57
|
+
const r = e.value;
|
|
58
|
+
typeof r == "string" && /^grey\./i.test(r) && t.report({
|
|
59
|
+
node: e,
|
|
60
|
+
messageId: "greyStringLiteral",
|
|
61
|
+
data: { value: r }
|
|
62
|
+
});
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (e.type === "TemplateLiteral") {
|
|
66
|
+
const r = e;
|
|
67
|
+
if (r.expressions.length === 0) {
|
|
68
|
+
const o = r.quasis[0]?.value.raw;
|
|
69
|
+
o && /^grey\./i.test(o) && t.report({
|
|
70
|
+
node: e,
|
|
71
|
+
messageId: "greyStringLiteral",
|
|
72
|
+
data: { value: o }
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (e.type === "ConditionalExpression") {
|
|
78
|
+
const r = e;
|
|
79
|
+
i(t, r.consequent), i(t, r.alternate);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function a(t, e) {
|
|
83
|
+
const r = e.body;
|
|
84
|
+
r && n(t, r);
|
|
85
|
+
}
|
|
86
|
+
function n(t, e) {
|
|
87
|
+
if (!(!e || typeof e != "object")) {
|
|
88
|
+
if (e.type === "MemberExpression") {
|
|
89
|
+
const r = e.property;
|
|
90
|
+
if ((!e.computed && r.name ? r.name : r.type === "Literal" && typeof r.value == "string" ? r.value : null) === "grey") {
|
|
91
|
+
const c = e.object;
|
|
92
|
+
if (p(c)) {
|
|
93
|
+
t.report({
|
|
94
|
+
node: e,
|
|
95
|
+
messageId: "greyMemberAccess"
|
|
96
|
+
});
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
for (const r of Object.keys(e)) {
|
|
102
|
+
if (r === "parent") continue;
|
|
103
|
+
const o = e[r];
|
|
104
|
+
o && typeof o == "object" && (Array.isArray(o) ? o.forEach((s) => {
|
|
105
|
+
s && typeof s == "object" && "type" in s && n(t, s);
|
|
106
|
+
}) : "type" in o && n(t, o));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function p(t) {
|
|
111
|
+
if (t.type === "Identifier" && t.name === "palette" || t.type === "MemberExpression" && t.property.name === "palette")
|
|
112
|
+
return !0;
|
|
113
|
+
if (t.type === "ChainExpression") {
|
|
114
|
+
const e = t.expression;
|
|
115
|
+
return p(e);
|
|
116
|
+
}
|
|
117
|
+
return !1;
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
u as default
|
|
121
|
+
};
|
|
@@ -14,7 +14,6 @@ const g = [
|
|
|
14
14
|
"outlineColor",
|
|
15
15
|
"borderRadius",
|
|
16
16
|
// colors
|
|
17
|
-
"color",
|
|
18
17
|
"bgcolor",
|
|
19
18
|
"backgroundColor",
|
|
20
19
|
// spacing
|
|
@@ -122,29 +121,12 @@ const g = [
|
|
|
122
121
|
"typography",
|
|
123
122
|
// other common system props
|
|
124
123
|
"spacing"
|
|
125
|
-
],
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
IconButton: ["color"],
|
|
132
|
-
Chip: ["color"],
|
|
133
|
-
Badge: ["color"],
|
|
134
|
-
Alert: ["color"],
|
|
135
|
-
CircularProgress: ["color"],
|
|
136
|
-
LinearProgress: ["color"],
|
|
137
|
-
Radio: ["color"],
|
|
138
|
-
Checkbox: ["color"],
|
|
139
|
-
Switch: ["color"],
|
|
140
|
-
SvgIcon: ["color"],
|
|
141
|
-
FormLabel: ["color"],
|
|
142
|
-
FormControl: ["color"],
|
|
143
|
-
ToggleButton: ["color"],
|
|
144
|
-
ToggleButtonGroup: ["color"],
|
|
145
|
-
// Container: maxWidth accepts breakpoint values (xs, sm, md, lg, xl), not CSS values
|
|
146
|
-
Container: ["maxWidth"]
|
|
147
|
-
}, h = {
|
|
124
|
+
], c = {
|
|
125
|
+
Container: ["maxWidth"],
|
|
126
|
+
Dialog: ["maxWidth"],
|
|
127
|
+
InputAdornment: ["position"],
|
|
128
|
+
TableCell: ["padding"]
|
|
129
|
+
}, f = {
|
|
148
130
|
meta: {
|
|
149
131
|
type: "problem",
|
|
150
132
|
docs: {
|
|
@@ -157,55 +139,45 @@ const g = [
|
|
|
157
139
|
},
|
|
158
140
|
schema: []
|
|
159
141
|
},
|
|
160
|
-
create(
|
|
161
|
-
const
|
|
142
|
+
create(l) {
|
|
143
|
+
const r = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set();
|
|
162
144
|
return {
|
|
163
|
-
ImportDeclaration(
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
e.type === "ImportSpecifier" && e.imported ?
|
|
145
|
+
ImportDeclaration(i) {
|
|
146
|
+
const o = i;
|
|
147
|
+
o.source.value === "@clearstory/drywall-react" && o.specifiers.forEach((e) => {
|
|
148
|
+
e.type === "ImportSpecifier" && e.imported ? r.set(e.local.name, e.imported.name) : e.type === "ImportNamespaceSpecifier" && m.add(e.local.name);
|
|
167
149
|
});
|
|
168
150
|
},
|
|
169
|
-
JSXOpeningElement(
|
|
170
|
-
const
|
|
171
|
-
let e
|
|
172
|
-
if ("name" in
|
|
173
|
-
if (e =
|
|
151
|
+
JSXOpeningElement(i) {
|
|
152
|
+
const o = i;
|
|
153
|
+
let e;
|
|
154
|
+
if ("name" in o.name) {
|
|
155
|
+
if (e = o.name.name, !r.has(e))
|
|
174
156
|
return;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (e = r.name.property.name, s = e, !p.has(n))
|
|
157
|
+
} else if (o.name.type === "JSXMemberExpression") {
|
|
158
|
+
const t = o.name.object.name;
|
|
159
|
+
if (e = o.name.property.name, !m.has(t))
|
|
179
160
|
return;
|
|
180
161
|
} else
|
|
181
162
|
return;
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
163
|
+
const p = [];
|
|
164
|
+
o.attributes.forEach((t) => {
|
|
165
|
+
const n = t;
|
|
166
|
+
if (n.type !== "JSXAttribute" || !n.name)
|
|
186
167
|
return;
|
|
187
|
-
const a =
|
|
168
|
+
const a = n.name.name;
|
|
188
169
|
if (a === "sx" || !g.includes(a))
|
|
189
170
|
return;
|
|
190
|
-
const d =
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if (i.value) {
|
|
194
|
-
const c = f(i.value);
|
|
195
|
-
if (y(c))
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
} else
|
|
199
|
-
return;
|
|
200
|
-
m.push(
|
|
201
|
-
i
|
|
171
|
+
const s = r.get(e) ?? e, d = c[s];
|
|
172
|
+
d && d.includes(a) || p.push(
|
|
173
|
+
n
|
|
202
174
|
);
|
|
203
|
-
}),
|
|
204
|
-
|
|
205
|
-
node:
|
|
175
|
+
}), p.forEach((t) => {
|
|
176
|
+
l.report({
|
|
177
|
+
node: t,
|
|
206
178
|
messageId: "systemProp",
|
|
207
179
|
data: {
|
|
208
|
-
prop:
|
|
180
|
+
prop: t.name.name,
|
|
209
181
|
component: e
|
|
210
182
|
}
|
|
211
183
|
});
|
|
@@ -214,38 +186,6 @@ const g = [
|
|
|
214
186
|
};
|
|
215
187
|
}
|
|
216
188
|
};
|
|
217
|
-
function f(t) {
|
|
218
|
-
if (!t) return null;
|
|
219
|
-
const o = t;
|
|
220
|
-
if (o.type === "Literal")
|
|
221
|
-
return String(o.value);
|
|
222
|
-
if (o.type === "JSXExpressionContainer" && o.expression) {
|
|
223
|
-
if (o.expression.type === "Literal")
|
|
224
|
-
return String(o.expression.value);
|
|
225
|
-
if (o.expression.type === "Identifier")
|
|
226
|
-
return o.expression.name || null;
|
|
227
|
-
}
|
|
228
|
-
return null;
|
|
229
|
-
}
|
|
230
|
-
function y(t) {
|
|
231
|
-
return [
|
|
232
|
-
"inherit",
|
|
233
|
-
"primary",
|
|
234
|
-
"secondary",
|
|
235
|
-
"error",
|
|
236
|
-
"warning",
|
|
237
|
-
"info",
|
|
238
|
-
"success",
|
|
239
|
-
"default",
|
|
240
|
-
// Badge, Radio, Checkbox, Switch
|
|
241
|
-
"action",
|
|
242
|
-
// SvgIcon
|
|
243
|
-
"disabled",
|
|
244
|
-
// SvgIcon
|
|
245
|
-
"standard"
|
|
246
|
-
// ToggleButton, ToggleButtonGroup
|
|
247
|
-
].includes(t || "");
|
|
248
|
-
}
|
|
249
189
|
export {
|
|
250
|
-
|
|
190
|
+
f as default
|
|
251
191
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../createSvgIcon-
|
|
2
|
+
import { c as o } from "../createSvgIcon-DULirWwm.js";
|
|
3
3
|
const c = o(
|
|
4
4
|
/* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ r("path", { d: "M11.105 22.206H3.011L3 15.177l8.115-7.884-.01 14.913ZM21 22.207h-7.878V1.793L21 9.678v12.529Z" }) }),
|
|
5
5
|
"Clearstory"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as C } from "react/jsx-runtime";
|
|
2
|
-
import { c as l } from "../createSvgIcon-
|
|
2
|
+
import { c as l } from "../createSvgIcon-DULirWwm.js";
|
|
3
3
|
const t = l(
|
|
4
4
|
/* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: [
|
|
5
5
|
/* @__PURE__ */ C(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../createSvgIcon-
|
|
2
|
+
import { c as o } from "../createSvgIcon-DULirWwm.js";
|
|
3
3
|
const c = o(
|
|
4
4
|
/* @__PURE__ */ r("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ r("path", { d: "M15.4375 8.5625L12 1L8.5625 8.5625L1 12L8.5625 15.4375L12 23L15.4375 15.4375L23 12L15.4375 8.5625Z" }) }),
|
|
5
5
|
"Sparkle"
|
package/dist/icons/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { InternalOnlyIcon as c } from "./InternalOnlyIcon.js";
|
|
|
3
3
|
import { MoneyBucketIcon as I } from "./MoneyBucketIcon.js";
|
|
4
4
|
import { MoreCircleOutlineIcon as t } from "./MoreCircleOutlineIcon.js";
|
|
5
5
|
import { SparkleIcon as l } from "./SparkleIcon.js";
|
|
6
|
-
import { A as u, a as C, b as p, c as A, d as w, e as f, f as m, h as O, g as h, i as y, j as k, k as g, l as x, m as D, n as b, o as B, B as M, p as P, q as R, r as L, C as T, s as v, t as F, u as S, v as E, w as U, x as N, y as V, z as H, D as K, E as W, F as z, G, H as Z, I as j, J as q, K as J, L as Q, M as X, N as Y, O as _, P as $, Q as aa, R as oa, S as na, T as sa, U as ca, V as ea, W as Ia, X as ra, Y as ta, Z as ia, _ as la, $ as da, a0 as ua, a1 as Ca, a2 as pa, a3 as Aa, a4 as wa, a5 as fa, a6 as ma, a7 as Oa, a8 as ha, a9 as ya, aa as ka, ac as ga, ab as xa, ad as Da, ae as ba, af as Ba, ag as Ma, ah as Pa, ai as Ra, aj as La, ak as Ta, al as va, am as Fa, an as Sa, ao as Ea, ap as Ua, aq as Na, ar as Va, as as Ha, at as Ka, au as Wa, av as za, aw as Ga, ax as Za, ay as ja, az as qa, aA as Ja, aB as Qa, aC as Xa, aD as Ya, aE as _a, aF as $a, aG as ao, aJ as oo, aI as no, aH as so, aK as co, aL as eo, aM as Io, aN as ro, aO as to, aP as io, aQ as lo, aR as uo, aS as Co, aT as po, aU as Ao, aV as wo, aW as fo } from "../ZoomOut-
|
|
7
|
-
import { A as Oo, C as ho } from "../Clear-
|
|
8
|
-
import { C as ko, E as go, I as xo, W as Do } from "../WarningAmberOutlined-
|
|
9
|
-
import { C as Bo } from "../Close-
|
|
10
|
-
import { I as Po } from "../Info-
|
|
6
|
+
import { A as u, a as C, b as p, c as A, d as w, e as f, f as m, h as O, g as h, i as y, j as k, k as g, l as x, m as D, n as b, o as B, B as M, p as P, q as R, r as L, C as T, s as v, t as F, u as S, v as E, w as U, x as N, y as V, z as H, D as K, E as W, F as z, G, H as Z, I as j, J as q, K as J, L as Q, M as X, N as Y, O as _, P as $, Q as aa, R as oa, S as na, T as sa, U as ca, V as ea, W as Ia, X as ra, Y as ta, Z as ia, _ as la, $ as da, a0 as ua, a1 as Ca, a2 as pa, a3 as Aa, a4 as wa, a5 as fa, a6 as ma, a7 as Oa, a8 as ha, a9 as ya, aa as ka, ac as ga, ab as xa, ad as Da, ae as ba, af as Ba, ag as Ma, ah as Pa, ai as Ra, aj as La, ak as Ta, al as va, am as Fa, an as Sa, ao as Ea, ap as Ua, aq as Na, ar as Va, as as Ha, at as Ka, au as Wa, av as za, aw as Ga, ax as Za, ay as ja, az as qa, aA as Ja, aB as Qa, aC as Xa, aD as Ya, aE as _a, aF as $a, aG as ao, aJ as oo, aI as no, aH as so, aK as co, aL as eo, aM as Io, aN as ro, aO as to, aP as io, aQ as lo, aR as uo, aS as Co, aT as po, aU as Ao, aV as wo, aW as fo } from "../ZoomOut-CCdLSR93.js";
|
|
7
|
+
import { A as Oo, C as ho } from "../Clear-Dvmnc6Px.js";
|
|
8
|
+
import { C as ko, E as go, I as xo, W as Do } from "../WarningAmberOutlined-DMySBPYG.js";
|
|
9
|
+
import { C as Bo } from "../Close-DFkW1yae.js";
|
|
10
|
+
import { I as Po } from "../Info-Dmczo2E6.js";
|
|
11
11
|
export {
|
|
12
12
|
u as AccessTimeIcon,
|
|
13
13
|
C as AccountCircleIcon,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { P as o } from "./index-B5q5ym9h.js";
|
|
3
|
-
import { d as a } from "./defaultTheme-
|
|
3
|
+
import { d as a } from "./defaultTheme-Cd478y90.js";
|
|
4
4
|
import { T as s } from "./emotion-element-f0de968e.browser.esm-CX7iy5u6.js";
|
|
5
|
-
import { G as f } from "./GlobalStyles-
|
|
6
|
-
import { e as i } from "./extendSxProp-
|
|
5
|
+
import { G as f } from "./GlobalStyles-C081E6-3.js";
|
|
6
|
+
import { e as i } from "./extendSxProp-DFDhj_4Z.js";
|
|
7
7
|
function t(r) {
|
|
8
8
|
return /* @__PURE__ */ e(f, {
|
|
9
9
|
...r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as y } from "./emotion-element-f0de968e.browser.esm-CX7iy5u6.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { a as v } from "./useTheme-
|
|
3
|
+
import { a as v } from "./useTheme-DJ2s8uyO.js";
|
|
4
4
|
import { g } from "./getThemeProps-DD5fEXGs.js";
|
|
5
5
|
import { u as E } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
6
6
|
function M(n, s, t, o, c) {
|