@arcblock/ux 1.15.26 → 1.15.27

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.
@@ -19,27 +19,33 @@ const colors = {
19
19
  white: '#fff'
20
20
  },
21
21
  primary: {
22
- main: '#4F6AF6'
22
+ main: '#4F6AF6',
23
+ contrastText: '#fff'
23
24
  },
24
25
  // override
25
26
  secondary: {
26
- main: '#31AB86'
27
+ main: '#31AB86',
28
+ contrastText: '#fff'
27
29
  },
28
30
  // override
29
31
  error: {
30
- main: '#F16E6E'
32
+ main: '#F16E6E',
33
+ contrastText: '#fff'
31
34
  },
32
35
  // override
33
36
  warning: {
34
- main: '#DE9E37'
37
+ main: '#DE9E37',
38
+ contrastText: '#fff'
35
39
  },
36
40
  // override
37
41
  info: {
38
- main: '#0775F8'
42
+ main: '#0775F8',
43
+ contrastText: '#fff'
39
44
  },
40
45
  // override
41
46
  success: {
42
- main: '#34BE74'
47
+ main: '#34BE74',
48
+ contrastText: '#fff'
43
49
  },
44
50
  // override
45
51
  grey: {
package/lib/Util/index.js CHANGED
@@ -116,10 +116,10 @@ const getBackground = props => {
116
116
  }
117
117
 
118
118
  if (props.dark) {
119
- return props.theme.palette.text.primary;
119
+ return props.theme.palette.common.black;
120
120
  }
121
121
 
122
- return props.theme.palette.text.contrast;
122
+ return props.theme.palette.common.white;
123
123
  };
124
124
 
125
125
  exports.getBackground = getBackground;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "1.15.26",
3
+ "version": "1.15.27",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -52,10 +52,10 @@
52
52
  "react": ">=16.12.0",
53
53
  "react-ga": "^2.7.0"
54
54
  },
55
- "gitHead": "8a7c124f0e96d768d52239970309264eac5770ef",
55
+ "gitHead": "d12c34f58ab2a61a89689abc481dbcb60f9e8aca",
56
56
  "dependencies": {
57
- "@arcblock/icons": "^1.15.26",
58
- "@arcblock/react-hooks": "^1.15.26",
57
+ "@arcblock/icons": "^1.15.27",
58
+ "@arcblock/react-hooks": "^1.15.27",
59
59
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
60
60
  "@material-ui/core": "^4.12.3",
61
61
  "@material-ui/icons": "4.11.2",