@ncino/styles 9.2.0-preview.2 → 9.2.0-preview.3
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.
package/package.json
CHANGED
|
@@ -1,66 +1,69 @@
|
|
|
1
1
|
import { gatorTypography } from '../utils/themeConfig';
|
|
2
2
|
|
|
3
3
|
export const MUIGatorButtonOverrides = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
styleOverrides: {
|
|
10
|
-
root: {
|
|
11
|
-
textTransform: 'none',
|
|
12
|
-
fontWeight: gatorTypography.fontWeight.semiBold,
|
|
13
|
-
'&.Mui-focusVisible': {
|
|
14
|
-
boxShadow: 'none',
|
|
15
|
-
outline: '2px solid var(--color-border-focus)',
|
|
16
|
-
outlineOffset: '2px'
|
|
17
|
-
},
|
|
18
|
-
'&:hover': {
|
|
19
|
-
boxShadow: 'var(--shadow-2-card-raised)',
|
|
4
|
+
MuiButton: {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
disableRipple: true
|
|
20
7
|
},
|
|
21
|
-
},
|
|
22
|
-
sizeLarge: {
|
|
23
|
-
padding: '12px 24px',
|
|
24
|
-
fontSize: 'var(--font-size-body-1)',
|
|
25
|
-
lineHeight: 'var(--line-height-body-1)',
|
|
26
|
-
},
|
|
27
|
-
sizeMedium: {
|
|
28
|
-
padding: '8px 16px',
|
|
29
|
-
fontSize: 'var(--font-size-body-2)',
|
|
30
|
-
lineHeight: 'var(--line-height-body-2)',
|
|
31
|
-
},
|
|
32
|
-
sizeSmall: {
|
|
33
|
-
padding: '4px 12px',
|
|
34
|
-
fontSize: 'var(--font-size-body-3)',
|
|
35
|
-
lineHeight: 'var(--line-height-body-3)',
|
|
36
|
-
},
|
|
37
|
-
contained: {
|
|
38
|
-
boxShadow: 'none',
|
|
39
|
-
},
|
|
40
|
-
outlinedPrimary: {
|
|
41
|
-
borderColor: 'var(--color-border-brand)',
|
|
42
|
-
},
|
|
43
8
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
9
|
+
styleOverrides: {
|
|
10
|
+
root: {
|
|
11
|
+
textTransform: 'none',
|
|
12
|
+
fontWeight: gatorTypography.fontWeight.semiBold,
|
|
13
|
+
height: 'fit-content',
|
|
14
|
+
|
|
15
|
+
'&.Mui-focusVisible': {
|
|
16
|
+
boxShadow: 'none',
|
|
17
|
+
outline: '2px solid var(--color-border-focus)',
|
|
18
|
+
outlineOffset: '2px'
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
'&:hover': {
|
|
22
|
+
boxShadow: 'var(--shadow-2-card-raised)'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
sizeLarge: {
|
|
26
|
+
padding: 'var(--spacing-7) var(--spacing-8)',
|
|
27
|
+
fontSize: 'var(--font-size-body-1)',
|
|
28
|
+
lineHeight: 'var(--line-height-body-1)'
|
|
29
|
+
},
|
|
30
|
+
sizeMedium: {
|
|
31
|
+
padding: 'var(--spacing-6) var(--spacing-8)',
|
|
32
|
+
fontSize: 'var(--font-size-body-2)',
|
|
33
|
+
lineHeight: 'var(--line-height-body-2)'
|
|
34
|
+
},
|
|
35
|
+
sizeSmall: {
|
|
36
|
+
padding: 'var(--spacing-4) var(--spacing-7)',
|
|
37
|
+
fontSize: 'var(--font-size-body-3)',
|
|
38
|
+
lineHeight: 'var(--line-height-body-3)',
|
|
39
|
+
},
|
|
40
|
+
contained: {
|
|
41
|
+
boxShadow: 'none'
|
|
42
|
+
},
|
|
43
|
+
outlinedPrimary: {
|
|
44
|
+
borderColor: 'var(--color-border-brand)'
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
colorNeutral: {
|
|
48
|
+
backgroundColor: 'var(--color-surface-neutral)'
|
|
49
|
+
},
|
|
50
|
+
text: {
|
|
51
|
+
color: 'var(--color-text-brand)',
|
|
52
|
+
textDecoration: 'underline',
|
|
53
|
+
textDecorationColor: 'var(--color-underline-primary)',
|
|
54
|
+
textUnderlineOffset: '4px',
|
|
55
|
+
'&:hover': {
|
|
56
|
+
boxShadow: 'none',
|
|
57
|
+
textDecoration: 'underline',
|
|
58
|
+
textDecorationColor: 'var(--color-underline-brand)',
|
|
59
|
+
backgroundColor: 'transparent'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
loading: {
|
|
63
|
+
textDecoration: 'none'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
64
67
|
};
|
|
65
68
|
|
|
66
69
|
declare module '@mui/material/Button' {
|