bui-themer: fix mui version 7 -> 5
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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;');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user