@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.
@@ -6,7 +6,7 @@ function line(color) {
6
6
 
7
7
  export function overrideLink(theme) {
8
8
  theme.props.MuiLink = {
9
- underline: 'none',
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
- '&:hover, &:active': {
22
- backgroundImage: line('currentColor')
23
- },
24
- '&.MuiTypography-colorTextPrimary': {
21
+ '&:disabled': {
22
+ color: Color.Dark100,
25
23
  backgroundImage: line(Color.Silver500),
26
24
  '&:focus, &:hover, &:active': {
27
- color: Color.Blue500,
28
- backgroundImage: line(Color.Blue500)
25
+ color: Color.Dark100,
26
+ backgroundImage: line(Color.Silver500)
29
27
  }
30
28
  },
31
- '&.MuiTypography-colorError': {
32
- color: Color.Red500,
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
- color: Color.Red500,
36
- backgroundImage: line(Color.Red500)
46
+ backgroundImage: 'none'
37
47
  }
38
48
  },
39
- '&.MuiTypography-colorTextSecondary': {
40
- color: Color.Dark100,
41
- backgroundImage: line(Color.Silver500),
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.Dark100,
44
- backgroundImage: line(Color.Silver500)
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(2.5),
73
+ height: theme.spacing(3),
75
74
  [sm]: {
76
75
  height: theme.spacing(2.5)
77
76
  }
@@ -51,7 +51,7 @@ function createSuperDispatchTheme() {
51
51
  },
52
52
  text: {
53
53
  primary: Color.Dark500,
54
- secondary: Color.Dark200,
54
+ secondary: Color.Dark300,
55
55
  hint: Color.Dark100,
56
56
  disabled: Color.Dark100
57
57
  },
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: 'none',
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
- '&:hover, &:active': {
3048
- backgroundImage: line('currentColor')
3049
- },
3050
- '&.MuiTypography-colorTextPrimary': {
3047
+ '&:disabled': {
3048
+ color: Color.Dark100,
3051
3049
  backgroundImage: line(Color.Silver500),
3052
3050
  '&:focus, &:hover, &:active': {
3053
- color: Color.Blue500,
3054
- backgroundImage: line(Color.Blue500)
3051
+ color: Color.Dark100,
3052
+ backgroundImage: line(Color.Silver500)
3055
3053
  }
3056
3054
  },
3057
- '&.MuiTypography-colorError': {
3058
- color: Color.Red500,
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
- color: Color.Red500,
3062
- backgroundImage: line(Color.Red500)
3072
+ backgroundImage: 'none'
3063
3073
  }
3064
3074
  },
3065
- '&.MuiTypography-colorTextSecondary': {
3066
- color: Color.Dark100,
3067
- backgroundImage: line(Color.Silver500),
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.Dark100,
3070
- backgroundImage: line(Color.Silver500)
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(2.5),
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.Dark200,
3812
+ secondary: Color.Dark300,
3799
3813
  hint: Color.Dark100,
3800
3814
  disabled: Color.Dark100
3801
3815
  },