@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.
Files changed (246) hide show
  1. package/dist/{Accordion-BsHUL286.js → Accordion-xHSrLkHR.js} +5 -5
  2. package/dist/{AccordionActions-4Ib1j4O_.js → AccordionActions-DxJvzLUL.js} +1 -1
  3. package/dist/{AccordionDetails-BIg3WsU5.js → AccordionDetails-CuogXgRY.js} +2 -2
  4. package/dist/{AccordionSummary-Dc7nj11o.js → AccordionSummary-Cigw_LZo.js} +3 -3
  5. package/dist/{AdapterDayjs-CYYeILyK.js → AdapterDayjs-B_bgpLjR.js} +1 -1
  6. package/dist/{Alert-Dfl1Khby.js → Alert-BzbQJE20.js} +82 -82
  7. package/dist/{AlertTitle-VVwCVZYG.js → AlertTitle-DPNlhdPa.js} +3 -3
  8. package/dist/{ArrowDropDown-DQQG1hDJ.js → ArrowDropDown-uZ1AcIgk.js} +2 -2
  9. package/dist/{Autocomplete-DG51WhfR.js → Autocomplete-D34P06vA.js} +110 -109
  10. package/dist/{Avatar-Tq-lIvMN.js → Avatar-C-9_FAjq.js} +3 -3
  11. package/dist/{AvatarGroup-CIrXsp4z.js → AvatarGroup-D8lUylMk.js} +4 -4
  12. package/dist/{Backdrop-DPvRl1zZ.js → Backdrop-B4Ia7EtY.js} +2 -2
  13. package/dist/Badge-NPGe_51o.js +388 -0
  14. package/dist/{Box-Cd1YLOZ-.js → Box-tMEqMAfx.js} +3 -3
  15. package/dist/{Breadcrumbs-CFlvMfCb.js → Breadcrumbs-DYRzTcFu.js} +6 -6
  16. package/dist/{Button-DryY7NPT.js → Button-QivqHp-M.js} +5 -5
  17. package/dist/{ButtonBase-6EprNl2X.js → ButtonBase-Bi72noqx.js} +1 -1
  18. package/dist/{ButtonGroup-GJATBD_c.js → ButtonGroup-Do3gIQtE.js} +3 -3
  19. package/dist/{Card-DBCbdVU2.js → Card-BFSopHcs.js} +2 -2
  20. package/dist/{CardActionArea-BNb8G37z.js → CardActionArea-c_b2tFe3.js} +3 -3
  21. package/dist/{CardActions-DfmPr0gn.js → CardActions-C7KQU20Q.js} +1 -1
  22. package/dist/{CardContent-DA4dkHBt.js → CardContent-yPYgrFcu.js} +1 -1
  23. package/dist/{CardHeader-Br6uwVrD.js → CardHeader-CR9DeOu4.js} +2 -2
  24. package/dist/{CardMedia-87tscu3v.js → CardMedia-Dd67I2ML.js} +1 -1
  25. package/dist/{Checkbox-D3GsjNS3.js → Checkbox-DNovTM5C.js} +5 -5
  26. package/dist/{Chip-ChFTXi3v.js → Chip-CVCFF0g4.js} +18 -18
  27. package/dist/{CircularProgress-p7Gq5t6L.js → CircularProgress-D4cGLctr.js} +3 -3
  28. package/dist/{Clear-CFMBhrck.js → Clear-Dvmnc6Px.js} +1 -1
  29. package/dist/{Close-lJmbkALB.js → Close-BTh_3opG.js} +1 -1
  30. package/dist/{Close-CaDQwoD1.js → Close-DFkW1yae.js} +1 -1
  31. package/dist/{Collapse-0Er5Sz5z.js → Collapse-BUKXVJlO.js} +40 -40
  32. package/dist/{CssBaseline-Cd0iXsQU.js → CssBaseline-DiUOI0Ii.js} +1 -1
  33. package/dist/{Datepicker-e89VG7du.js → Datepicker-VxJW44pC.js} +28 -28
  34. package/dist/{Dialog-DUKrtDDF.js → Dialog-C0Dcyh5Y.js} +8 -8
  35. package/dist/{DialogActions-Ct2qdXd6.js → DialogActions-VYDNPqM2.js} +1 -1
  36. package/dist/{DialogContent-Ch2mnmQi.js → DialogContent-CFQ5KUbP.js} +2 -2
  37. package/dist/{DialogContentText-BBc1ck5w.js → DialogContentText-DLMP3Hdd.js} +2 -2
  38. package/dist/{DialogTitle-BYmZnfik.js → DialogTitle-v-iQClHs.js} +2 -2
  39. package/dist/{Divider-ycx7AMFV.js → Divider-zOioqF3O.js} +2 -2
  40. package/dist/{Drawer-DLSoa2I3.js → Drawer-Bhdn7gd4.js} +8 -8
  41. package/dist/{Fade-BZd1kkqK.js → Fade--9eywODE.js} +1 -1
  42. package/dist/{FormControl-CpqxugQk.js → FormControl-DrPP8dU0.js} +2 -2
  43. package/dist/{FormControlLabel-CxehHu9o.js → FormControlLabel-IfSPCCOh.js} +4 -4
  44. package/dist/{FormGroup-FX1e1oPO.js → FormGroup-DFyvCj6T.js} +1 -1
  45. package/dist/{FormHelperText-RAXwx2JF.js → FormHelperText-BSyZcI5O.js} +3 -3
  46. package/dist/{FormLabel-DXsbRwTS.js → FormLabel-tmdQuE4G.js} +3 -3
  47. package/dist/{GlobalStyles-BqCTWHBT.js → GlobalStyles-C081E6-3.js} +1 -1
  48. package/dist/{Grow-Be_BslSM.js → Grow-DiR0VE3b.js} +1 -1
  49. package/dist/{IconButton-D3kPVOmj.js → IconButton-B1h37ok8.js} +5 -5
  50. package/dist/{Info-B3KWVOXO.js → Info-Dmczo2E6.js} +1 -1
  51. package/dist/{InputAdornment-DsE-yUEZ.js → InputAdornment-BN3LG3wf.js} +4 -4
  52. package/dist/{InputBase-Dab955T6.js → InputBase-95uVeCOm.js} +4 -4
  53. package/dist/{KeyboardArrowRight-oiZtLJ6Q.js → KeyboardArrowRight-5YOKZbbG.js} +1 -1
  54. package/dist/{LinearProgress-CaUqErK0.js → LinearProgress-DT4D6lvI.js} +3 -3
  55. package/dist/{Link-BFT7iy4g.js → Link-C05DkKOU.js} +5 -5
  56. package/dist/{List-Dv9tf8iZ.js → List-DLwkox4l.js} +1 -1
  57. package/dist/{ListItem-VHCeeUFy.js → ListItem-DJw2D8KA.js} +2 -2
  58. package/dist/{ListItemAvatar-BPERHU0-.js → ListItemAvatar-GFRp0ERe.js} +1 -1
  59. package/dist/{ListItemButton-DGhq5uuh.js → ListItemButton-CJSrwY0m.js} +3 -3
  60. package/dist/{ListItemIcon-BC3sbSFT.js → ListItemIcon-BwUlPQvG.js} +2 -2
  61. package/dist/{ListItemText-Cw5ZVTv-.js → ListItemText-5kgKWqp6.js} +2 -2
  62. package/dist/{ListSubheader-DoqnloIr.js → ListSubheader-Cn7zo2WN.js} +3 -3
  63. package/dist/{Menu-DKJf-zB8.js → Menu-QTcbrC3U.js} +4 -4
  64. package/dist/{MenuItem-D21TDo3G.js → MenuItem-C9C4rZZK.js} +3 -3
  65. package/dist/{MenuList-BI70VkVk.js → MenuList-wRLNxVzl.js} +2 -2
  66. package/dist/{Modal-BY3aNTGo.js → Modal-lphk3OGn.js} +3 -3
  67. package/dist/{Paper-BnDCvNy8.js → Paper-CYjHHuGi.js} +4 -4
  68. package/dist/{Popover-BqaNmmBN.js → Popover-C4g4Cvlp.js} +153 -153
  69. package/dist/{Popper-BNAb-qpg.js → Popper-D_FgLacq.js} +75 -75
  70. package/dist/{Radio-B6ofhFJI.js → Radio-CByRmGXi.js} +5 -5
  71. package/dist/{RadioGroup-CDB3As1a.js → RadioGroup-BlvdvpJ1.js} +1 -1
  72. package/dist/{Select-CtPZNPng.js → Select-qGJUZPI0.js} +6 -6
  73. package/dist/{Skeleton-rG_vS_vK.js → Skeleton-cbpGJ4mi.js} +2 -2
  74. package/dist/{Slide-C75WIR2B.js → Slide-2poxm08g.js} +39 -39
  75. package/dist/{Snackbar-DeiuAlGC.js → Snackbar-BNZo_eyF.js} +6 -6
  76. package/dist/{Step-BCxfFlJV.js → Step-mNXE2D06.js} +1 -1
  77. package/dist/{StepButton-DUpmLnG4.js → StepButton-DIppSlpE.js} +3 -3
  78. package/dist/{StepConnector-BJEuXuSN.js → StepConnector-BYa8Kne-.js} +3 -3
  79. package/dist/{StepContent-DUl-0SWI.js → StepContent-BhoB35wQ.js} +3 -3
  80. package/dist/{StepIcon-DAmVGnL0.js → StepIcon-aV_wkp9m.js} +4 -4
  81. package/dist/{StepLabel-CqAB-FtZ.js → StepLabel-BkOZ6zjJ.js} +3 -3
  82. package/dist/{Stepper-bbLAVxVE.js → Stepper-CXbp97X6.js} +2 -2
  83. package/dist/{SvgIcon-BrAsqASc.js → SvgIcon-B8oryoa5.js} +3 -3
  84. package/dist/{Switch-DKDfHQVm.js → Switch-B6PEKd8o.js} +4 -4
  85. package/dist/{SwitchBase-BZz84J1E.js → SwitchBase-C2XAgHZG.js} +11 -12
  86. package/dist/{Tab-DaPL6tC4.js → Tab-Bo9Q9fUY.js} +4 -4
  87. package/dist/{Table-BSP0xwVw.js → Table-1FpmJB-p.js} +2 -2
  88. package/dist/{TableBody-DuPWKF6v.js → TableBody-msUAmdxa.js} +1 -1
  89. package/dist/{TableCell-BdweS1ET.js → TableCell-CovS0283.js} +3 -3
  90. package/dist/{TableContainer-BLr1B1N1.js → TableContainer-D5Olxe9m.js} +1 -1
  91. package/dist/{TableFooter-mWAuLOYG.js → TableFooter-DB2mje5n.js} +1 -1
  92. package/dist/{TableHead-DmSgS_lJ.js → TableHead-Cra442qd.js} +1 -1
  93. package/dist/{TablePagination-lAsiYfVQ.js → TablePagination-DUdl-BaY.js} +10 -10
  94. package/dist/{TableRow-BuJHocbv.js → TableRow-tv9A8znJ.js} +2 -2
  95. package/dist/{Tabs-BUYEnWj4.js → Tabs-hon-LGqp.js} +19 -19
  96. package/dist/{ThemeProviderWithVars-D_h1BuKO.js → ThemeProviderWithVars-BNUcBdVQ.js} +3 -3
  97. package/dist/{ToggleButton-xh5Df3-1.js → ToggleButton-BiMckaCd.js} +4 -4
  98. package/dist/{ToggleButtonGroup-DXVCiUuR.js → ToggleButtonGroup-D4LFlIbs.js} +3 -3
  99. package/dist/{Toolbar-BIKVMMEi.js → Toolbar-Bt1Qa2mH.js} +2 -2
  100. package/dist/{Tooltip-iDF8vneX.js → Tooltip-B41Kh1k0.js} +6 -6
  101. package/dist/{Typography-CJD_1YNp.js → Typography-BgU_ldl-.js} +4 -4
  102. package/dist/{WarningAmberOutlined-YFF6FFJ9.js → WarningAmberOutlined-DMySBPYG.js} +1 -1
  103. package/dist/{Zoom-CvftAd7B.js → Zoom-C2osCIgz.js} +1 -1
  104. package/dist/{ZoomOut-CSnKUaeV.js → ZoomOut-CCdLSR93.js} +1 -1
  105. package/dist/components/Accordion/index.js +1 -1
  106. package/dist/components/AccordionActions/index.js +1 -1
  107. package/dist/components/AccordionDetails/index.js +1 -1
  108. package/dist/components/AccordionSummary/index.js +1 -1
  109. package/dist/components/Alert/index.js +1 -1
  110. package/dist/components/AlertTitle/index.js +1 -1
  111. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  112. package/dist/components/Autocomplete/index.js +1 -1
  113. package/dist/components/AutocompleteControl/AutocompleteControl.js +7 -7
  114. package/dist/components/Avatar/index.js +1 -1
  115. package/dist/components/AvatarGroup/index.js +1 -1
  116. package/dist/components/Backdrop/index.js +1 -1
  117. package/dist/components/Badge/index.js +1 -1
  118. package/dist/components/Box/index.js +1 -1
  119. package/dist/components/Breadcrumbs/index.js +1 -1
  120. package/dist/components/Button/index.js +1 -1
  121. package/dist/components/ButtonBase/index.js +1 -1
  122. package/dist/components/ButtonGroup/index.js +1 -1
  123. package/dist/components/Card/index.js +1 -1
  124. package/dist/components/CardActionArea/index.js +1 -1
  125. package/dist/components/CardActions/index.js +1 -1
  126. package/dist/components/CardContent/index.js +1 -1
  127. package/dist/components/CardHeader/index.js +1 -1
  128. package/dist/components/CardMedia/index.js +1 -1
  129. package/dist/components/Checkbox/index.js +1 -1
  130. package/dist/components/Chip/index.js +1 -1
  131. package/dist/components/CircularProgress/index.js +1 -1
  132. package/dist/components/Collapse/index.js +1 -1
  133. package/dist/components/Container/index.js +1 -1
  134. package/dist/components/CssBaseline/index.js +1 -1
  135. package/dist/components/Datepicker/Datepicker.js +3 -3
  136. package/dist/components/Datepicker/index.js +2 -2
  137. package/dist/components/DatepickerControl/DatepickerControl.js +7 -7
  138. package/dist/components/DescriptionDetails/DescriptionDetails.js +1 -1
  139. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  140. package/dist/components/DescriptionTerm/DescriptionTerm.js +1 -1
  141. package/dist/components/Dialog/index.js +1 -1
  142. package/dist/components/DialogActions/index.js +1 -1
  143. package/dist/components/DialogClose/DialogClose.js +2 -2
  144. package/dist/components/DialogContent/index.js +1 -1
  145. package/dist/components/DialogContentText/index.js +1 -1
  146. package/dist/components/DialogTitle/index.js +1 -1
  147. package/dist/components/Divider/index.js +1 -1
  148. package/dist/components/Drawer/index.js +1 -1
  149. package/dist/components/Fade/index.js +1 -1
  150. package/dist/components/FormControl/index.js +1 -1
  151. package/dist/components/FormControlLabel/index.js +1 -1
  152. package/dist/components/FormGroup/index.js +1 -1
  153. package/dist/components/FormHelperText/index.js +1 -1
  154. package/dist/components/FormLabel/index.js +1 -1
  155. package/dist/components/FormSublabel/FormSublabel.js +2 -2
  156. package/dist/components/Grow/index.js +1 -1
  157. package/dist/components/IconButton/index.js +1 -1
  158. package/dist/components/Input/Input.js +1 -1
  159. package/dist/components/InputAdornment/index.js +1 -1
  160. package/dist/components/InputControl/InputControl.js +6 -6
  161. package/dist/components/LinearProgress/index.js +1 -1
  162. package/dist/components/Link/index.js +1 -1
  163. package/dist/components/List/index.js +1 -1
  164. package/dist/components/ListItem/index.js +1 -1
  165. package/dist/components/ListItemAvatar/index.js +1 -1
  166. package/dist/components/ListItemButton/index.js +1 -1
  167. package/dist/components/ListItemIcon/index.js +1 -1
  168. package/dist/components/ListItemText/index.js +1 -1
  169. package/dist/components/ListSubheader/index.js +1 -1
  170. package/dist/components/Menu/index.js +1 -1
  171. package/dist/components/MenuItem/index.js +1 -1
  172. package/dist/components/MenuList/index.js +1 -1
  173. package/dist/components/NumberInputControl/NumberInputControl.js +6 -6
  174. package/dist/components/Paper/index.js +1 -1
  175. package/dist/components/Popover/index.js +1 -1
  176. package/dist/components/Popper/index.js +1 -1
  177. package/dist/components/Radio/index.js +1 -1
  178. package/dist/components/RadioGroup/index.js +1 -1
  179. package/dist/components/Select/Select.js +1 -1
  180. package/dist/components/Select/index.js +1 -1
  181. package/dist/components/SelectControl/SelectControl.js +6 -6
  182. package/dist/components/Skeleton/index.js +1 -1
  183. package/dist/components/Slide/index.js +1 -1
  184. package/dist/components/Snackbar/index.js +1 -1
  185. package/dist/components/Stack/index.js +1 -1
  186. package/dist/components/Step/index.js +1 -1
  187. package/dist/components/StepButton/index.js +1 -1
  188. package/dist/components/StepConnector/index.js +1 -1
  189. package/dist/components/StepContent/index.js +1 -1
  190. package/dist/components/StepIcon/index.js +1 -1
  191. package/dist/components/StepLabel/index.js +1 -1
  192. package/dist/components/Stepper/index.js +1 -1
  193. package/dist/components/SvgIcon/index.js +1 -1
  194. package/dist/components/Switch/index.js +1 -1
  195. package/dist/components/Tab/index.js +1 -1
  196. package/dist/components/Table/index.js +1 -1
  197. package/dist/components/TableBody/index.js +1 -1
  198. package/dist/components/TableCell/index.js +1 -1
  199. package/dist/components/TableContainer/index.js +1 -1
  200. package/dist/components/TableFooter/index.js +1 -1
  201. package/dist/components/TableHead/index.js +1 -1
  202. package/dist/components/TablePagination/index.js +1 -1
  203. package/dist/components/TableRow/index.js +1 -1
  204. package/dist/components/Tabs/index.js +1 -1
  205. package/dist/components/Textarea/Textarea.js +1 -1
  206. package/dist/components/TextareaControl/TextareaControl.js +6 -6
  207. package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
  208. package/dist/components/ToastContainer/ToastContainer.js +1 -1
  209. package/dist/components/ToastContainer/useToast.js +5 -5
  210. package/dist/components/ToggleButton/index.js +1 -1
  211. package/dist/components/ToggleButtonGroup/index.js +1 -1
  212. package/dist/components/Toolbar/index.js +1 -1
  213. package/dist/components/Tooltip/index.js +1 -1
  214. package/dist/components/Typography/index.js +1 -1
  215. package/dist/components/Zoom/index.js +1 -1
  216. package/dist/{containerClasses-Zulzrsj8.js → containerClasses-d0knG_Lk.js} +4 -4
  217. package/dist/{createSvgIcon-BXROV6bT.js → createSvgIcon-DULirWwm.js} +1 -1
  218. package/dist/{createTheme-BFWMvXRe.js → createTheme-PiEw_V9m.js} +130 -127
  219. package/dist/defaultTheme-Cd478y90.js +5 -0
  220. package/dist/eslint-config/index.js +14 -10
  221. package/dist/eslint-config/no-palette-grey.d.ts +3 -0
  222. package/dist/eslint-config/no-palette-grey.js +121 -0
  223. package/dist/eslint-config/no-system-props.js +33 -93
  224. package/dist/{extendSxProp-DsZikgKo.js → extendSxProp-DFDhj_4Z.js} +1 -1
  225. package/dist/icons/ClearstoryIcon.js +1 -1
  226. package/dist/icons/InternalOnlyIcon.js +1 -1
  227. package/dist/icons/MoneyBucketIcon.js +1 -1
  228. package/dist/icons/MoreCircleOutlineIcon.js +1 -1
  229. package/dist/icons/SparkleIcon.js +1 -1
  230. package/dist/icons/index.js +5 -5
  231. package/dist/{index-iKRLpQIf.js → index-Db3avKaK.js} +3 -3
  232. package/dist/{index-DtVyyURM.js → index-DrR6lRMV.js} +1 -1
  233. package/dist/main.js +103 -103
  234. package/dist/{memoTheme-CXi6MqCq.js → memoTheme-BtPmrCmh.js} +1 -1
  235. package/dist/{stackClasses-vPxNSpzG.js → stackClasses-4ps9E778.js} +5 -5
  236. package/dist/{styled-BWUuu_Y7.js → styled-DGv3Bxg0.js} +2 -2
  237. package/dist/styled-uiPN25VC.js +5 -0
  238. package/dist/theme/index.js +5 -5
  239. package/dist/theme/internal.js +1 -1
  240. package/dist/{useTheme-CSYDyilx.js → useTheme-By3Sjbe_.js} +2 -2
  241. package/dist/{useTheme-DFnskFLF.js → useTheme-DJ2s8uyO.js} +1 -1
  242. package/dist/{useThemeProps-DLN1jrTs.js → useThemeProps-D4d6k1b4.js} +1 -1
  243. package/package.json +5 -5
  244. package/dist/Badge-BEVVgsje.js +0 -470
  245. package/dist/defaultTheme-s7mxt8ja.js +0 -5
  246. package/dist/styled-B14RdXLD.js +0 -5
@@ -0,0 +1,5 @@
1
+ import { c as e } from "./createTheme-PiEw_V9m.js";
2
+ const a = e();
3
+ export {
4
+ a as d
5
+ };
@@ -1,13 +1,15 @@
1
- import e from "./no-shorthand-spacing.js";
2
- import l from "./no-system-props.js";
3
- import a from "./prefer-logical-properties.js";
4
- import o from "./prefer-vars-palette.js";
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-shorthand-spacing": e,
8
- "no-system-props": l,
9
- "prefer-logical-properties": a,
10
- "prefer-vars-palette": o
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 y = {
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
- y as default,
43
+ d as default,
40
44
  r as plugin
41
45
  };
@@ -0,0 +1,3 @@
1
+ import { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -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
- ], u = {
126
- // color: semantic theme colors (primary, secondary, error, etc.)
127
- Typography: ["color"],
128
- Link: ["color"],
129
- Button: ["color"],
130
- ButtonGroup: ["color"],
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(t) {
161
- const o = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Set();
142
+ create(l) {
143
+ const r = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Set();
162
144
  return {
163
- ImportDeclaration(l) {
164
- const r = l;
165
- r.source.value === "@clearstory/drywall-react" && r.specifiers.forEach((e) => {
166
- e.type === "ImportSpecifier" && e.imported ? o.set(e.local.name, e.imported.name) : e.type === "ImportNamespaceSpecifier" && p.add(e.local.name);
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(l) {
170
- const r = l;
171
- let e, s;
172
- if ("name" in r.name) {
173
- if (e = r.name.name, !o.has(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
- s = o.get(e);
176
- } else if (r.name.type === "JSXMemberExpression") {
177
- const n = r.name.object.name;
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 m = [];
183
- r.attributes.forEach((n) => {
184
- const i = n;
185
- if (i.type !== "JSXAttribute" || !i.name)
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 = i.name.name;
168
+ const a = n.name.name;
188
169
  if (a === "sx" || !g.includes(a))
189
170
  return;
190
- const d = u[s];
191
- if (d && d.includes(a))
192
- if (a === "color") {
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
- }), m.forEach((n) => {
204
- t.report({
205
- node: n,
175
+ }), p.forEach((t) => {
176
+ l.report({
177
+ node: t,
206
178
  messageId: "systemProp",
207
179
  data: {
208
- prop: n.name.name,
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
- h as default
190
+ f as default
251
191
  };
@@ -1,4 +1,4 @@
1
- import { i as c, f as l } from "./createTheme-BFWMvXRe.js";
1
+ import { i as c, f as l } from "./createTheme-PiEw_V9m.js";
2
2
  const a = (t) => {
3
3
  const s = {
4
4
  systemProps: {},
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { c as o } from "../createSvgIcon-BXROV6bT.js";
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-BXROV6bT.js";
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 { jsxs as a, jsx as c } from "react/jsx-runtime";
2
- import { c as v } from "../createSvgIcon-BXROV6bT.js";
2
+ import { c as v } from "../createSvgIcon-DULirWwm.js";
3
3
  const o = v(
4
4
  /* @__PURE__ */ a("svg", { viewBox: "0 0 24 24", children: [
5
5
  /* @__PURE__ */ c(
@@ -1,5 +1,5 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { c as r } from "../createSvgIcon-BXROV6bT.js";
2
+ import { c as r } from "../createSvgIcon-DULirWwm.js";
3
3
  const n = r(
4
4
  /* @__PURE__ */ o(
5
5
  "svg",
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { c as o } from "../createSvgIcon-BXROV6bT.js";
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"
@@ -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-CSnKUaeV.js";
7
- import { A as Oo, C as ho } from "../Clear-CFMBhrck.js";
8
- import { C as ko, E as go, I as xo, W as Do } from "../WarningAmberOutlined-YFF6FFJ9.js";
9
- import { C as Bo } from "../Close-CaDQwoD1.js";
10
- import { I as Po } from "../Info-B3KWVOXO.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-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-s7mxt8ja.js";
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-BqCTWHBT.js";
6
- import { e as i } from "./extendSxProp-DsZikgKo.js";
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-DFnskFLF.js";
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) {