@ncino/styles 10.5.0 → 10.5.2
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/dist/gator/themes/components/button.js +10 -0
- package/dist/gator/themes/components/checkbox.js +17 -17
- package/dist/gator/themes/components/select.js +34 -33
- package/dist/types/gator/themes/components/button.d.ts +10 -0
- package/dist/types/gator/themes/components/checkbox.d.ts +7 -7
- package/dist/types/gator/themes/components/select.d.ts +22 -22
- package/package.json +1 -1
|
@@ -16,6 +16,16 @@ const t = {
|
|
|
16
16
|
boxShadow: o.shadows[2]
|
|
17
17
|
}
|
|
18
18
|
}),
|
|
19
|
+
startIcon: ({ theme: o }) => ({
|
|
20
|
+
marginRight: o.spacing(5),
|
|
21
|
+
height: "18px",
|
|
22
|
+
width: "18px"
|
|
23
|
+
}),
|
|
24
|
+
endIcon: ({ theme: o }) => ({
|
|
25
|
+
marginLeft: o.spacing(5),
|
|
26
|
+
height: "18px",
|
|
27
|
+
width: "18px"
|
|
28
|
+
}),
|
|
19
29
|
sizeLarge: ({ theme: o }) => ({
|
|
20
30
|
height: "3rem",
|
|
21
31
|
minWidth: "6rem",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
MuiCheckbox: {
|
|
3
3
|
defaultProps: {
|
|
4
4
|
disableRipple: !0
|
|
5
5
|
},
|
|
6
6
|
styleOverrides: {
|
|
7
|
-
root: {
|
|
7
|
+
root: ({ theme: r }) => ({
|
|
8
8
|
padding: "3px",
|
|
9
9
|
// Default unchecked state
|
|
10
10
|
"&:not(.Mui-checked):not(.MuiCheckbox-indeterminate)": {
|
|
11
|
-
color:
|
|
11
|
+
color: r.palette.divider,
|
|
12
12
|
svg: {
|
|
13
13
|
display: "none"
|
|
14
14
|
},
|
|
@@ -22,48 +22,48 @@ const r = {
|
|
|
22
22
|
outlineOffset: "-1px",
|
|
23
23
|
borderRadius: "2px",
|
|
24
24
|
margin: "7px",
|
|
25
|
-
backgroundColor:
|
|
25
|
+
backgroundColor: r.palette.background.default
|
|
26
26
|
},
|
|
27
27
|
"&:hover::before": {
|
|
28
|
-
color:
|
|
29
|
-
backgroundColor:
|
|
28
|
+
color: r.palette.primary.dark,
|
|
29
|
+
backgroundColor: r.palette.primary.light
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
// Checked & Indeterminate states
|
|
33
33
|
"&.Mui-checked, &.MuiCheckbox-indeterminate": {
|
|
34
|
-
color:
|
|
34
|
+
color: r.palette.primary.main,
|
|
35
35
|
"&:hover": {
|
|
36
|
-
color:
|
|
36
|
+
color: r.palette.primary.dark
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
// Focus state
|
|
40
40
|
"&.Mui-focusVisible": {
|
|
41
|
-
outline:
|
|
41
|
+
outline: `3px solid ${r.palette.text.primary}`,
|
|
42
42
|
outlineOffset: "-3px",
|
|
43
43
|
borderRadius: "8px"
|
|
44
44
|
},
|
|
45
45
|
// Disabled state
|
|
46
46
|
"&.Mui-disabled": {
|
|
47
|
-
color:
|
|
47
|
+
color: `${r.palette.text.disabled} !important`,
|
|
48
48
|
"::before": {
|
|
49
|
-
backgroundColor:
|
|
49
|
+
backgroundColor: `${r.palette.background.paper} !important`
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
// Error state
|
|
53
53
|
".Mui-error &": {
|
|
54
|
-
color:
|
|
54
|
+
color: `${r.palette.error.main} !important`,
|
|
55
55
|
"&:hover svg": {
|
|
56
|
-
color:
|
|
56
|
+
color: `${r.palette.error.dark} !important`
|
|
57
57
|
},
|
|
58
58
|
"&:hover::before": {
|
|
59
|
-
backgroundColor:
|
|
60
|
-
color:
|
|
59
|
+
backgroundColor: `${r.palette.error.light} !important`,
|
|
60
|
+
color: `${r.palette.error.main} !important`
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
})
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
o as MUIGatorCheckboxOverrides
|
|
69
69
|
};
|
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { chevronDownIcon as r } from "../icons/chevron-down.js";
|
|
2
|
+
import { GatorIcon as i } from "../icons/gatorIcon.js";
|
|
3
|
+
import { createElement as a } from "react";
|
|
4
|
+
const l = {
|
|
4
5
|
MuiSelect: {
|
|
5
6
|
defaultProps: {
|
|
6
7
|
MenuProps: {
|
|
7
8
|
PaperProps: {
|
|
8
|
-
sx: {
|
|
9
|
-
backgroundColor:
|
|
9
|
+
sx: (o) => ({
|
|
10
|
+
backgroundColor: o.palette.background.default,
|
|
10
11
|
maxHeight: "14rem",
|
|
11
|
-
marginTop:
|
|
12
|
-
borderRadius:
|
|
13
|
-
boxShadow:
|
|
12
|
+
marginTop: o.spacing(3),
|
|
13
|
+
borderRadius: o.shape.borderRadius * 4,
|
|
14
|
+
boxShadow: o.shadows[3],
|
|
14
15
|
"& .MuiMenuItem-root": {
|
|
15
|
-
padding:
|
|
16
|
+
padding: `${o.spacing(5)} ${o.spacing(12)}`,
|
|
16
17
|
minHeight: "40px",
|
|
17
|
-
fontFamily: o.fontFamily
|
|
18
|
-
fontSize:
|
|
19
|
-
lineHeight:
|
|
20
|
-
color:
|
|
18
|
+
fontFamily: o.typography.fontFamily,
|
|
19
|
+
fontSize: o.typography.body1.fontSize,
|
|
20
|
+
lineHeight: o.typography.body1.lineHeight,
|
|
21
|
+
color: o.palette.text.primary,
|
|
21
22
|
"&:hover": {
|
|
22
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: o.palette.primary.light
|
|
23
24
|
},
|
|
24
25
|
"&.Mui-focusVisible": {
|
|
25
|
-
outline:
|
|
26
|
+
outline: `2px solid ${o.palette.primary.main}`,
|
|
26
27
|
outlineOffset: "-2px",
|
|
27
28
|
backgroundColor: "transparent"
|
|
28
29
|
},
|
|
29
30
|
"&.Mui-selected": {
|
|
30
|
-
backgroundColor:
|
|
31
|
-
color:
|
|
32
|
-
fontWeight: o.
|
|
33
|
-
paddingLeft:
|
|
31
|
+
backgroundColor: o.palette.primary.light,
|
|
32
|
+
color: o.palette.text.primary,
|
|
33
|
+
fontWeight: o.typography.fontWeightBold,
|
|
34
|
+
paddingLeft: o.spacing(8),
|
|
34
35
|
"::before": {
|
|
35
36
|
content: '"✓"',
|
|
36
37
|
display: "inline-block",
|
|
37
|
-
marginRight:
|
|
38
|
-
color:
|
|
39
|
-
fontWeight: o.
|
|
38
|
+
marginRight: o.spacing(6),
|
|
39
|
+
color: o.palette.text.primary,
|
|
40
|
+
fontWeight: o.typography.fontWeightRegular
|
|
40
41
|
},
|
|
41
42
|
"&:hover": {
|
|
42
|
-
backgroundColor:
|
|
43
|
+
backgroundColor: o.palette.primary.light
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
"&.Mui-disabled": {
|
|
46
47
|
opacity: 1,
|
|
47
|
-
color:
|
|
48
|
+
color: o.palette.text.disabled
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
|
-
}
|
|
51
|
+
})
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
|
-
IconComponent: r
|
|
54
|
+
IconComponent: ((o) => a(i, { svg: r, ...o }))
|
|
54
55
|
},
|
|
55
56
|
styleOverrides: {
|
|
56
|
-
root: {
|
|
57
|
+
root: ({ theme: o }) => ({
|
|
57
58
|
"& .MuiSelect-select": {
|
|
58
|
-
padding:
|
|
59
|
+
padding: `${o.spacing(7)} ${o.spacing(8)}`
|
|
59
60
|
}
|
|
60
|
-
},
|
|
61
|
-
icon: {
|
|
62
|
-
right:
|
|
63
|
-
}
|
|
61
|
+
}),
|
|
62
|
+
icon: ({ theme: o }) => ({
|
|
63
|
+
right: o.spacing(8)
|
|
64
|
+
})
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
l as MUIGatorSelectOverrides
|
|
69
70
|
};
|
|
@@ -16,6 +16,16 @@ export declare const MUIGatorButtonOverrides: {
|
|
|
16
16
|
boxShadow: any;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
+
startIcon: ({ theme }: any) => {
|
|
20
|
+
marginRight: any;
|
|
21
|
+
height: string;
|
|
22
|
+
width: string;
|
|
23
|
+
};
|
|
24
|
+
endIcon: ({ theme }: any) => {
|
|
25
|
+
marginLeft: any;
|
|
26
|
+
height: string;
|
|
27
|
+
width: string;
|
|
28
|
+
};
|
|
19
29
|
sizeLarge: ({ theme }: any) => {
|
|
20
30
|
height: string;
|
|
21
31
|
minWidth: string;
|
|
@@ -4,10 +4,10 @@ export declare const MUIGatorCheckboxOverrides: {
|
|
|
4
4
|
disableRipple: boolean;
|
|
5
5
|
};
|
|
6
6
|
styleOverrides: {
|
|
7
|
-
root: {
|
|
7
|
+
root: ({ theme }: any) => {
|
|
8
8
|
padding: string;
|
|
9
9
|
'&:not(.Mui-checked):not(.MuiCheckbox-indeterminate)': {
|
|
10
|
-
color:
|
|
10
|
+
color: any;
|
|
11
11
|
svg: {
|
|
12
12
|
display: string;
|
|
13
13
|
};
|
|
@@ -21,17 +21,17 @@ export declare const MUIGatorCheckboxOverrides: {
|
|
|
21
21
|
outlineOffset: string;
|
|
22
22
|
borderRadius: string;
|
|
23
23
|
margin: string;
|
|
24
|
-
backgroundColor:
|
|
24
|
+
backgroundColor: any;
|
|
25
25
|
};
|
|
26
26
|
'&:hover::before': {
|
|
27
|
-
color:
|
|
28
|
-
backgroundColor:
|
|
27
|
+
color: any;
|
|
28
|
+
backgroundColor: any;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
'&.Mui-checked, &.MuiCheckbox-indeterminate': {
|
|
32
|
-
color:
|
|
32
|
+
color: any;
|
|
33
33
|
'&:hover': {
|
|
34
|
-
color:
|
|
34
|
+
color: any;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
'&.Mui-focusVisible': {
|
|
@@ -3,21 +3,21 @@ export declare const MUIGatorSelectOverrides: {
|
|
|
3
3
|
defaultProps: {
|
|
4
4
|
MenuProps: {
|
|
5
5
|
PaperProps: {
|
|
6
|
-
sx: {
|
|
7
|
-
backgroundColor:
|
|
6
|
+
sx: (theme: any) => {
|
|
7
|
+
backgroundColor: any;
|
|
8
8
|
maxHeight: string;
|
|
9
|
-
marginTop:
|
|
10
|
-
borderRadius:
|
|
11
|
-
boxShadow:
|
|
9
|
+
marginTop: any;
|
|
10
|
+
borderRadius: number;
|
|
11
|
+
boxShadow: any;
|
|
12
12
|
'& .MuiMenuItem-root': {
|
|
13
13
|
padding: string;
|
|
14
14
|
minHeight: string;
|
|
15
|
-
fontFamily:
|
|
16
|
-
fontSize:
|
|
17
|
-
lineHeight:
|
|
18
|
-
color:
|
|
15
|
+
fontFamily: any;
|
|
16
|
+
fontSize: any;
|
|
17
|
+
lineHeight: any;
|
|
18
|
+
color: any;
|
|
19
19
|
'&:hover': {
|
|
20
|
-
backgroundColor:
|
|
20
|
+
backgroundColor: any;
|
|
21
21
|
};
|
|
22
22
|
'&.Mui-focusVisible': {
|
|
23
23
|
outline: string;
|
|
@@ -25,24 +25,24 @@ export declare const MUIGatorSelectOverrides: {
|
|
|
25
25
|
backgroundColor: string;
|
|
26
26
|
};
|
|
27
27
|
'&.Mui-selected': {
|
|
28
|
-
backgroundColor:
|
|
29
|
-
color:
|
|
30
|
-
fontWeight:
|
|
31
|
-
paddingLeft:
|
|
28
|
+
backgroundColor: any;
|
|
29
|
+
color: any;
|
|
30
|
+
fontWeight: any;
|
|
31
|
+
paddingLeft: any;
|
|
32
32
|
'::before': {
|
|
33
33
|
content: string;
|
|
34
34
|
display: string;
|
|
35
|
-
marginRight:
|
|
36
|
-
color:
|
|
37
|
-
fontWeight:
|
|
35
|
+
marginRight: any;
|
|
36
|
+
color: any;
|
|
37
|
+
fontWeight: any;
|
|
38
38
|
};
|
|
39
39
|
'&:hover': {
|
|
40
|
-
backgroundColor:
|
|
40
|
+
backgroundColor: any;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
'&.Mui-disabled': {
|
|
44
44
|
opacity: number;
|
|
45
|
-
color:
|
|
45
|
+
color: any;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
};
|
|
@@ -51,13 +51,13 @@ export declare const MUIGatorSelectOverrides: {
|
|
|
51
51
|
IconComponent: any;
|
|
52
52
|
};
|
|
53
53
|
styleOverrides: {
|
|
54
|
-
root: {
|
|
54
|
+
root: ({ theme }: any) => {
|
|
55
55
|
'& .MuiSelect-select': {
|
|
56
56
|
padding: string;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
icon: {
|
|
60
|
-
right:
|
|
59
|
+
icon: ({ theme }: any) => {
|
|
60
|
+
right: any;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
};
|
package/package.json
CHANGED