@superdispatch/ui 0.40.1 → 0.40.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.
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import {
|
|
2
|
+
import { ColorDynamic } from "../theme/Color.js";
|
|
3
3
|
export function overrideTooltip(theme) {
|
|
4
|
-
var mode = theme.palette.type;
|
|
5
|
-
var color = mode === 'dark' ? ColorDark.Silver400 : Color.Dark500;
|
|
6
|
-
theme.props.MuiTooltip = {
|
|
7
|
-
arrow: true
|
|
8
|
-
};
|
|
9
4
|
theme.overrides.MuiTooltip = {
|
|
10
5
|
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
11
6
|
padding: theme.spacing(1, 1.5),
|
|
12
|
-
backgroundColor:
|
|
13
|
-
|
|
14
|
-
'--sd-dark-300': Color.Silver500 //tooltip secondary color(Dark300) is invisible in light mode
|
|
7
|
+
backgroundColor: ColorDynamic.Dark500,
|
|
8
|
+
'--sd-dark-300': ColorDynamic.Silver500 //tooltip secondary color(Dark300) is invisible in dark mode
|
|
15
9
|
}),
|
|
16
10
|
popperArrow: {
|
|
17
11
|
'&[x-placement*="top"] $arrow': {
|
|
@@ -36,7 +30,7 @@ export function overrideTooltip(theme) {
|
|
|
36
30
|
}
|
|
37
31
|
},
|
|
38
32
|
arrow: {
|
|
39
|
-
color,
|
|
33
|
+
color: ColorDynamic.Silver500,
|
|
40
34
|
fontSize: theme.spacing(1)
|
|
41
35
|
}
|
|
42
36
|
};
|
package/dist-web/index.js
CHANGED
|
@@ -3931,17 +3931,11 @@ function overrideToolbar(theme) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
|
|
3933
3933
|
function overrideTooltip(theme) {
|
|
3934
|
-
var mode = theme.palette.type;
|
|
3935
|
-
var color = mode === 'dark' ? ColorDark.Silver400 : Color.Dark500;
|
|
3936
|
-
theme.props.MuiTooltip = {
|
|
3937
|
-
arrow: true
|
|
3938
|
-
};
|
|
3939
3934
|
theme.overrides.MuiTooltip = {
|
|
3940
3935
|
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3941
3936
|
padding: theme.spacing(1, 1.5),
|
|
3942
|
-
backgroundColor:
|
|
3943
|
-
|
|
3944
|
-
'--sd-dark-300': Color.Silver500 //tooltip secondary color(Dark300) is invisible in light mode
|
|
3937
|
+
backgroundColor: ColorDynamic.Dark500,
|
|
3938
|
+
'--sd-dark-300': ColorDynamic.Silver500 //tooltip secondary color(Dark300) is invisible in dark mode
|
|
3945
3939
|
}),
|
|
3946
3940
|
popperArrow: {
|
|
3947
3941
|
'&[x-placement*="top"] $arrow': {
|
|
@@ -3966,7 +3960,7 @@ function overrideTooltip(theme) {
|
|
|
3966
3960
|
}
|
|
3967
3961
|
},
|
|
3968
3962
|
arrow: {
|
|
3969
|
-
color,
|
|
3963
|
+
color: ColorDynamic.Silver500,
|
|
3970
3964
|
fontSize: theme.spacing(1)
|
|
3971
3965
|
}
|
|
3972
3966
|
};
|