bui-themer: fix mui version 7 -> 5

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-09-13 19:14:42 +02:00
parent 2505f616fc
commit c1e3c9b80d
2 changed files with 2 additions and 24 deletions
+2 -2
View File
@@ -34,8 +34,8 @@
"@material-ui/core": "^4.9.13",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.61",
"@mui/material": "^7.3.2",
"@mui/system": "^7.3.2",
"@mui/material": "^5.12.2",
"@mui/system": "^5.16.14",
"react-use": "^17.2.4"
},
"peerDependencies": {
@@ -215,26 +215,4 @@ describe('convertMuiToBuiTheme', () => {
expect(result.css).toContain('--bui-space: calc(4px * 0.5);');
});
it('should handle string-based spacing', () => {
const theme = createTheme({
spacing: '8px',
});
const result = convertMuiToBuiTheme(theme);
expect(result.css).toContain('--bui-space: calc(calc(1 * 8px) * 0.5);');
});
it('should handle string-based border radius', () => {
const theme = createTheme({
shape: {
borderRadius: '8px',
},
});
const result = convertMuiToBuiTheme(theme);
expect(result.css).toContain('--bui-radius-3: 8px;');
});
});