1
1
import { type ThemeOptions } from '@mui/material/styles'
2
+ import type { TypographyOptions } from '@mui/material/styles/createTypography'
2
3
import { defineMuiButton , defineMuiIconButton , defineMuiToggleButton } from './button'
3
4
import { defineMuiTypography } from './typography'
4
5
import { defineMuiTab , defineMuiTabs } from './tabs'
@@ -9,7 +10,6 @@ import { basicMuiTheme } from './basic-theme'
9
10
import { alpha } from '@mui/system'
10
11
import { defineMuiMenuItem } from '@ui-kit/themes/mui-menu-item'
11
12
import { defineMuiAlert , defineMuiAlertTitle } from '@ui-kit/themes/mui-alert'
12
- import type { TypographyOptions } from '@mui/material/styles/createTypography'
13
13
import { TransitionFunction } from '@ui-kit/themes/design/0_primitives'
14
14
15
15
export const DEFAULT_BAR_SIZE = SizesAndSpaces . ButtonSize . sm
@@ -30,9 +30,30 @@ export const createComponents = (design: DesignSystem, typography: TypographyOpt
30
30
paddingBlock : SizesAndSpaces . Spacing . sm . desktop + ' 0' ,
31
31
paddingInline : SizesAndSpaces . Spacing . md . desktop + ' 0' ,
32
32
borderBottom : `1px solid ${ design . Layer [ 3 ] . Outline } ` ,
33
+ height : '4rem' ,
33
34
minHeight : `calc(${ SizesAndSpaces . ButtonSize . lg } + 1px)` , // 1px for the border
35
+ variants : [
36
+ {
37
+ props : { size : 'small' } ,
38
+ style : {
39
+ minHeight : SizesAndSpaces . Sizing . md ,
40
+ padding : `0 ${ SizesAndSpaces . Spacing . md } ${ SizesAndSpaces . Spacing . sm } ` ,
41
+ } ,
42
+ } ,
43
+ ] ,
34
44
} ,
35
45
action : { alignContent : 'center' , margin : 0 } ,
46
+ title : {
47
+ ...typography . headingSBold ,
48
+ variants : [
49
+ {
50
+ props : { size : 'small' } ,
51
+ style : {
52
+ ...typography . headingXsBold ,
53
+ } ,
54
+ } ,
55
+ ] ,
56
+ } ,
36
57
} ,
37
58
} ,
38
59
MuiCardActions : {
0 commit comments