@superdispatch/ui 0.24.2 → 0.24.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/dist-node/index.js +34 -20
- package/dist-node/index.js.map +1 -1
- package/dist-src/link/LinkOverrides.js +31 -16
- package/dist-src/text-field/TextFieldOverrides.js +2 -3
- package/dist-src/theme/ThemeProvider.js +1 -1
- package/dist-web/index.js +34 -20
- package/dist-web/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ function line(color) {
|
|
|
6
6
|
|
|
7
7
|
export function overrideLink(theme) {
|
|
8
8
|
theme.props.MuiLink = {
|
|
9
|
-
underline: '
|
|
9
|
+
underline: 'always',
|
|
10
10
|
color: 'textPrimary'
|
|
11
11
|
};
|
|
12
12
|
theme.overrides.MuiLink = {
|
|
@@ -18,30 +18,45 @@ export function overrideLink(theme) {
|
|
|
18
18
|
'&:focus': {
|
|
19
19
|
outline: 'none'
|
|
20
20
|
},
|
|
21
|
-
'&:
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
'&.MuiTypography-colorTextPrimary': {
|
|
21
|
+
'&:disabled': {
|
|
22
|
+
color: Color.Dark100,
|
|
25
23
|
backgroundImage: line(Color.Silver500),
|
|
26
24
|
'&:focus, &:hover, &:active': {
|
|
27
|
-
color: Color.
|
|
28
|
-
backgroundImage: line(Color.
|
|
25
|
+
color: Color.Dark100,
|
|
26
|
+
backgroundImage: line(Color.Silver500)
|
|
29
27
|
}
|
|
30
28
|
},
|
|
31
|
-
'&.
|
|
32
|
-
|
|
29
|
+
'&.MuiLink-underlineAlways': {
|
|
30
|
+
textDecoration: 'none',
|
|
33
31
|
backgroundImage: line(Color.Silver500),
|
|
32
|
+
'&:hover, &:active': {
|
|
33
|
+
backgroundImage: line('currentColor')
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
'&.MuiLink-underlineHover': {
|
|
37
|
+
backgroundImage: 'none',
|
|
38
|
+
'&:hover, &:active': {
|
|
39
|
+
textDecoration: 'none',
|
|
40
|
+
backgroundImage: line('currentColor')
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
'&.MuiLink-underlineNone': {
|
|
44
|
+
backgroundImage: 'none',
|
|
34
45
|
'&:focus, &:hover, &:active': {
|
|
35
|
-
|
|
36
|
-
backgroundImage: line(Color.Red500)
|
|
46
|
+
backgroundImage: 'none'
|
|
37
47
|
}
|
|
38
48
|
},
|
|
39
|
-
'&.MuiTypography-
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
'&.MuiTypography-colorPrimary': {
|
|
50
|
+
backgroundImage: 'none',
|
|
51
|
+
'&:hover, &:active': {
|
|
52
|
+
textDecoration: 'none',
|
|
53
|
+
backgroundImage: line('currentColor')
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
'&.MuiTypography-colorTextPrimary, &.MuiTypography-colorTextSecondary': {
|
|
42
57
|
'&:focus, &:hover, &:active': {
|
|
43
|
-
color: Color.
|
|
44
|
-
backgroundImage: line(Color.
|
|
58
|
+
color: Color.Blue500,
|
|
59
|
+
backgroundImage: line(Color.Blue500)
|
|
45
60
|
}
|
|
46
61
|
}
|
|
47
62
|
},
|
|
@@ -68,10 +68,9 @@ export function overrideTextField(theme) {
|
|
|
68
68
|
input: {
|
|
69
69
|
textOverflow: 'ellipsis',
|
|
70
70
|
'&.MuiInputBase-input': {
|
|
71
|
-
fontSize: theme.spacing(1.75)
|
|
72
|
-
padding: theme.spacing(0.75, 1)
|
|
71
|
+
fontSize: theme.spacing(1.75)
|
|
73
72
|
},
|
|
74
|
-
height: theme.spacing(
|
|
73
|
+
height: theme.spacing(3),
|
|
75
74
|
[sm]: {
|
|
76
75
|
height: theme.spacing(2.5)
|
|
77
76
|
}
|
package/dist-web/index.js
CHANGED
|
@@ -3032,7 +3032,7 @@ function line(color) {
|
|
|
3032
3032
|
|
|
3033
3033
|
function overrideLink(theme) {
|
|
3034
3034
|
theme.props.MuiLink = {
|
|
3035
|
-
underline: '
|
|
3035
|
+
underline: 'always',
|
|
3036
3036
|
color: 'textPrimary'
|
|
3037
3037
|
};
|
|
3038
3038
|
theme.overrides.MuiLink = {
|
|
@@ -3044,30 +3044,45 @@ function overrideLink(theme) {
|
|
|
3044
3044
|
'&:focus': {
|
|
3045
3045
|
outline: 'none'
|
|
3046
3046
|
},
|
|
3047
|
-
'&:
|
|
3048
|
-
|
|
3049
|
-
},
|
|
3050
|
-
'&.MuiTypography-colorTextPrimary': {
|
|
3047
|
+
'&:disabled': {
|
|
3048
|
+
color: Color.Dark100,
|
|
3051
3049
|
backgroundImage: line(Color.Silver500),
|
|
3052
3050
|
'&:focus, &:hover, &:active': {
|
|
3053
|
-
color: Color.
|
|
3054
|
-
backgroundImage: line(Color.
|
|
3051
|
+
color: Color.Dark100,
|
|
3052
|
+
backgroundImage: line(Color.Silver500)
|
|
3055
3053
|
}
|
|
3056
3054
|
},
|
|
3057
|
-
'&.
|
|
3058
|
-
|
|
3055
|
+
'&.MuiLink-underlineAlways': {
|
|
3056
|
+
textDecoration: 'none',
|
|
3059
3057
|
backgroundImage: line(Color.Silver500),
|
|
3058
|
+
'&:hover, &:active': {
|
|
3059
|
+
backgroundImage: line('currentColor')
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
3062
|
+
'&.MuiLink-underlineHover': {
|
|
3063
|
+
backgroundImage: 'none',
|
|
3064
|
+
'&:hover, &:active': {
|
|
3065
|
+
textDecoration: 'none',
|
|
3066
|
+
backgroundImage: line('currentColor')
|
|
3067
|
+
}
|
|
3068
|
+
},
|
|
3069
|
+
'&.MuiLink-underlineNone': {
|
|
3070
|
+
backgroundImage: 'none',
|
|
3060
3071
|
'&:focus, &:hover, &:active': {
|
|
3061
|
-
|
|
3062
|
-
backgroundImage: line(Color.Red500)
|
|
3072
|
+
backgroundImage: 'none'
|
|
3063
3073
|
}
|
|
3064
3074
|
},
|
|
3065
|
-
'&.MuiTypography-
|
|
3066
|
-
|
|
3067
|
-
|
|
3075
|
+
'&.MuiTypography-colorPrimary': {
|
|
3076
|
+
backgroundImage: 'none',
|
|
3077
|
+
'&:hover, &:active': {
|
|
3078
|
+
textDecoration: 'none',
|
|
3079
|
+
backgroundImage: line('currentColor')
|
|
3080
|
+
}
|
|
3081
|
+
},
|
|
3082
|
+
'&.MuiTypography-colorTextPrimary, &.MuiTypography-colorTextSecondary': {
|
|
3068
3083
|
'&:focus, &:hover, &:active': {
|
|
3069
|
-
color: Color.
|
|
3070
|
-
backgroundImage: line(Color.
|
|
3084
|
+
color: Color.Blue500,
|
|
3085
|
+
backgroundImage: line(Color.Blue500)
|
|
3071
3086
|
}
|
|
3072
3087
|
}
|
|
3073
3088
|
},
|
|
@@ -3463,10 +3478,9 @@ function overrideTextField(theme) {
|
|
|
3463
3478
|
input: {
|
|
3464
3479
|
textOverflow: 'ellipsis',
|
|
3465
3480
|
'&.MuiInputBase-input': {
|
|
3466
|
-
fontSize: theme.spacing(1.75)
|
|
3467
|
-
padding: theme.spacing(0.75, 1)
|
|
3481
|
+
fontSize: theme.spacing(1.75)
|
|
3468
3482
|
},
|
|
3469
|
-
height: theme.spacing(
|
|
3483
|
+
height: theme.spacing(3),
|
|
3470
3484
|
[sm]: {
|
|
3471
3485
|
height: theme.spacing(2.5)
|
|
3472
3486
|
}
|
|
@@ -3795,7 +3809,7 @@ function createSuperDispatchTheme() {
|
|
|
3795
3809
|
},
|
|
3796
3810
|
text: {
|
|
3797
3811
|
primary: Color.Dark500,
|
|
3798
|
-
secondary: Color.
|
|
3812
|
+
secondary: Color.Dark300,
|
|
3799
3813
|
hint: Color.Dark100,
|
|
3800
3814
|
disabled: Color.Dark100
|
|
3801
3815
|
},
|