@mui/codemod
Version:
Codemod scripts for Material UI.
13 lines (12 loc) • 522 B
JavaScript
"use strict";
theme.spacing(2);
spacing(2);
theme.spacing(1 / 2);
theme.spacing(0.5)`${theme.spacing(1 / 2)} ${theme.spacing(4)}`;
theme.spacing(gap);
spacing(gap);
theme.spacing(gap);
spacing(gap)`calc(100% - ${spacing(itemHorzPadding * 2)})``calc(100% - ${theme.spacing(itemHorzPadding * 2)})`;
padding: `calc(${theme.spacing(2)} - 1px) 0``calc(100% - calc(${theme.spacing(itemHorzPadding)} * 0.3))`;
theme.spacing(-1);
theme.spacing(-1)`${theme.spacing(2)} ${theme.spacing(1)} ${theme.spacing(2)} ${theme.spacing(2)}`;