tenjin-ui-kit 0.2.49 → 0.2.51
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/common/hooks/newApiHook.js +122 -42
- package/components/input/index.js +10 -7
- package/components/select/index.js +31 -24
- package/package.json +1 -1
- package/themes/default.js +62 -52
|
@@ -35,31 +35,77 @@ var useAPI = function useAPI() {
|
|
|
35
35
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
36
36
|
deleteResult = _useState8[0],
|
|
37
37
|
setdeleteResult = _useState8[1];
|
|
38
|
-
|
|
38
|
+
//
|
|
39
|
+
var _useState9 = (0, _react.useState)(null),
|
|
40
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
41
|
+
getError = _useState10[0],
|
|
42
|
+
setGetError = _useState10[1];
|
|
43
|
+
var _useState11 = (0, _react.useState)(null),
|
|
44
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
45
|
+
postError = _useState12[0],
|
|
46
|
+
setpostError = _useState12[1];
|
|
47
|
+
var _useState13 = (0, _react.useState)(null),
|
|
48
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
49
|
+
putError = _useState14[0],
|
|
50
|
+
setputError = _useState14[1];
|
|
51
|
+
var _useState15 = (0, _react.useState)(null),
|
|
52
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
53
|
+
deleteError = _useState16[0],
|
|
54
|
+
setdeleteError = _useState16[1];
|
|
55
|
+
//
|
|
56
|
+
var _useState17 = (0, _react.useState)(null),
|
|
57
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
58
|
+
getLoading = _useState18[0],
|
|
59
|
+
setGetLoading = _useState18[1];
|
|
60
|
+
var _useState19 = (0, _react.useState)(null),
|
|
61
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
62
|
+
postLoading = _useState20[0],
|
|
63
|
+
setpostLoading = _useState20[1];
|
|
64
|
+
var _useState21 = (0, _react.useState)(null),
|
|
65
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
66
|
+
putLoading = _useState22[0],
|
|
67
|
+
setputLoading = _useState22[1];
|
|
68
|
+
var _useState23 = (0, _react.useState)(null),
|
|
69
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
70
|
+
deleteLoading = _useState24[0],
|
|
71
|
+
setdeleteLoading = _useState24[1];
|
|
72
|
+
var _useState25 = (0, _react.useState)({
|
|
39
73
|
getResult: getResult,
|
|
40
74
|
postResult: postResult,
|
|
41
75
|
putResult: putResult,
|
|
42
76
|
deleteResult: deleteResult
|
|
43
77
|
}),
|
|
44
|
-
|
|
45
|
-
result =
|
|
46
|
-
setResult =
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
78
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
79
|
+
result = _useState26[0],
|
|
80
|
+
setResult = _useState26[1];
|
|
81
|
+
var _useState27 = (0, _react.useState)({
|
|
82
|
+
getError: getError,
|
|
83
|
+
postError: postError,
|
|
84
|
+
putError: putError,
|
|
85
|
+
deleteError: deleteError
|
|
86
|
+
}),
|
|
87
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
88
|
+
errorMessage = _useState28[0],
|
|
89
|
+
setErrorMessage = _useState28[1];
|
|
90
|
+
var _useState29 = (0, _react.useState)({
|
|
91
|
+
getLoading: getLoading,
|
|
92
|
+
postLoading: postLoading,
|
|
93
|
+
putLoading: putLoading,
|
|
94
|
+
deleteLoading: deleteLoading
|
|
95
|
+
}),
|
|
96
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
97
|
+
loading = _useState30[0],
|
|
98
|
+
setLoading = _useState30[1];
|
|
55
99
|
var useGet = /*#__PURE__*/function () {
|
|
56
100
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, action) {
|
|
57
|
-
var response;
|
|
101
|
+
var response, parsedError;
|
|
58
102
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
59
103
|
while (1) switch (_context.prev = _context.next) {
|
|
60
104
|
case 0:
|
|
61
105
|
_context.prev = 0;
|
|
62
|
-
setLoading(
|
|
106
|
+
setLoading({
|
|
107
|
+
getLoading: true
|
|
108
|
+
});
|
|
63
109
|
_context.next = 4;
|
|
64
110
|
return (0, _http.getSecureClient)().get(url);
|
|
65
111
|
case 4:
|
|
@@ -67,15 +113,22 @@ var useAPI = function useAPI() {
|
|
|
67
113
|
setResult({
|
|
68
114
|
getResult: response
|
|
69
115
|
});
|
|
70
|
-
setLoading(
|
|
71
|
-
|
|
116
|
+
setLoading({
|
|
117
|
+
getLoading: false
|
|
118
|
+
});
|
|
119
|
+
_context.next = 14;
|
|
72
120
|
break;
|
|
73
121
|
case 9:
|
|
74
122
|
_context.prev = 9;
|
|
75
123
|
_context.t0 = _context["catch"](0);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
124
|
+
parsedError = (0, _http.parseAxiosError)(_context.t0);
|
|
125
|
+
setErrorMessage({
|
|
126
|
+
getError: parsedError.message
|
|
127
|
+
});
|
|
128
|
+
setLoading({
|
|
129
|
+
getLoading: false
|
|
130
|
+
});
|
|
131
|
+
case 14:
|
|
79
132
|
case "end":
|
|
80
133
|
return _context.stop();
|
|
81
134
|
}
|
|
@@ -87,12 +140,14 @@ var useAPI = function useAPI() {
|
|
|
87
140
|
}();
|
|
88
141
|
var usePost = /*#__PURE__*/function () {
|
|
89
142
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(url, body, action) {
|
|
90
|
-
var response;
|
|
143
|
+
var response, parsedError;
|
|
91
144
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
92
145
|
while (1) switch (_context2.prev = _context2.next) {
|
|
93
146
|
case 0:
|
|
94
147
|
_context2.prev = 0;
|
|
95
|
-
setLoading(
|
|
148
|
+
setLoading({
|
|
149
|
+
postLoading: true
|
|
150
|
+
});
|
|
96
151
|
_context2.next = 4;
|
|
97
152
|
return (0, _http.getSecureClient)().post(url, body);
|
|
98
153
|
case 4:
|
|
@@ -100,15 +155,22 @@ var useAPI = function useAPI() {
|
|
|
100
155
|
setResult({
|
|
101
156
|
postResult: response
|
|
102
157
|
});
|
|
103
|
-
setLoading(
|
|
104
|
-
|
|
158
|
+
setLoading({
|
|
159
|
+
postLoading: false
|
|
160
|
+
});
|
|
161
|
+
_context2.next = 14;
|
|
105
162
|
break;
|
|
106
163
|
case 9:
|
|
107
164
|
_context2.prev = 9;
|
|
108
165
|
_context2.t0 = _context2["catch"](0);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
166
|
+
parsedError = (0, _http.parseAxiosError)(_context2.t0);
|
|
167
|
+
setErrorMessage({
|
|
168
|
+
postError: parsedError.message
|
|
169
|
+
});
|
|
170
|
+
setLoading({
|
|
171
|
+
postLoading: false
|
|
172
|
+
});
|
|
173
|
+
case 14:
|
|
112
174
|
case "end":
|
|
113
175
|
return _context2.stop();
|
|
114
176
|
}
|
|
@@ -120,28 +182,37 @@ var useAPI = function useAPI() {
|
|
|
120
182
|
}();
|
|
121
183
|
var usePut = /*#__PURE__*/function () {
|
|
122
184
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(url, body, action) {
|
|
123
|
-
var response;
|
|
185
|
+
var response, _response, parsedError;
|
|
124
186
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
125
187
|
while (1) switch (_context3.prev = _context3.next) {
|
|
126
188
|
case 0:
|
|
127
189
|
_context3.prev = 0;
|
|
128
|
-
setLoading(
|
|
190
|
+
setLoading({
|
|
191
|
+
putLoading: true
|
|
192
|
+
});
|
|
129
193
|
_context3.next = 4;
|
|
130
194
|
return (0, _http.getSecureClient)().put(url, body);
|
|
131
195
|
case 4:
|
|
132
|
-
|
|
196
|
+
_response = _context3.sent;
|
|
133
197
|
setResult({
|
|
134
|
-
putResult:
|
|
198
|
+
putResult: _response
|
|
199
|
+
});
|
|
200
|
+
setLoading({
|
|
201
|
+
putLoading: false
|
|
135
202
|
});
|
|
136
|
-
|
|
137
|
-
_context3.next = 13;
|
|
203
|
+
_context3.next = 14;
|
|
138
204
|
break;
|
|
139
205
|
case 9:
|
|
140
206
|
_context3.prev = 9;
|
|
141
207
|
_context3.t0 = _context3["catch"](0);
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
208
|
+
parsedError = (0, _http.parseAxiosError)(_context3.t0);
|
|
209
|
+
setErrorMessage({
|
|
210
|
+
putError: parsedError.message
|
|
211
|
+
});
|
|
212
|
+
setLoading({
|
|
213
|
+
putLoading: false
|
|
214
|
+
});
|
|
215
|
+
case 14:
|
|
145
216
|
case "end":
|
|
146
217
|
return _context3.stop();
|
|
147
218
|
}
|
|
@@ -153,12 +224,14 @@ var useAPI = function useAPI() {
|
|
|
153
224
|
}();
|
|
154
225
|
var useDelete = /*#__PURE__*/function () {
|
|
155
226
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(url, action) {
|
|
156
|
-
var response;
|
|
227
|
+
var response, parsedError;
|
|
157
228
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
158
229
|
while (1) switch (_context4.prev = _context4.next) {
|
|
159
230
|
case 0:
|
|
160
231
|
_context4.prev = 0;
|
|
161
|
-
setLoading(
|
|
232
|
+
setLoading({
|
|
233
|
+
deleteLoading: true
|
|
234
|
+
});
|
|
162
235
|
_context4.next = 4;
|
|
163
236
|
return (0, _http.getSecureClient)().delete(url);
|
|
164
237
|
case 4:
|
|
@@ -166,15 +239,22 @@ var useAPI = function useAPI() {
|
|
|
166
239
|
setResult({
|
|
167
240
|
deleteResult: response
|
|
168
241
|
});
|
|
169
|
-
setLoading(
|
|
170
|
-
|
|
242
|
+
setLoading({
|
|
243
|
+
deleteLoading: false
|
|
244
|
+
});
|
|
245
|
+
_context4.next = 14;
|
|
171
246
|
break;
|
|
172
247
|
case 9:
|
|
173
248
|
_context4.prev = 9;
|
|
174
249
|
_context4.t0 = _context4["catch"](0);
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
250
|
+
parsedError = (0, _http.parseAxiosError)(_context4.t0);
|
|
251
|
+
setErrorMessage({
|
|
252
|
+
deleteError: parsedError.message
|
|
253
|
+
});
|
|
254
|
+
setLoading({
|
|
255
|
+
deleteLoading: false
|
|
256
|
+
});
|
|
257
|
+
case 14:
|
|
178
258
|
case "end":
|
|
179
259
|
return _context4.stop();
|
|
180
260
|
}
|
|
@@ -34,7 +34,10 @@ var Input = function Input(_ref) {
|
|
|
34
34
|
fullWidth: fullWidth
|
|
35
35
|
}, label && /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
|
|
36
36
|
sx: {
|
|
37
|
-
fontWeight: 500
|
|
37
|
+
fontWeight: 500,
|
|
38
|
+
'& .MuiFormLabel-asterisk': {
|
|
39
|
+
color: '#FF0000'
|
|
40
|
+
}
|
|
38
41
|
},
|
|
39
42
|
size: "small",
|
|
40
43
|
shrink: true,
|
|
@@ -43,13 +46,13 @@ var Input = function Input(_ref) {
|
|
|
43
46
|
}, label), !error && /*#__PURE__*/_react.default.createElement(_material.OutlinedInput, _extends({}, rest, {
|
|
44
47
|
id: id,
|
|
45
48
|
required: isRequired,
|
|
46
|
-
autoComplete: disableAutocomplete ?
|
|
49
|
+
autoComplete: disableAutocomplete ? 'nothing' : null,
|
|
47
50
|
sx: {
|
|
48
51
|
marginTop: label ? theme.spacing(2.5) : 0,
|
|
49
|
-
|
|
52
|
+
'& label': {
|
|
50
53
|
fontWeight: 500
|
|
51
54
|
},
|
|
52
|
-
|
|
55
|
+
'& svg': {
|
|
53
56
|
marginRight: startIcon ? theme.spacing(1) : 0,
|
|
54
57
|
marginLeft: endIcon ? theme.spacing(1) : 0
|
|
55
58
|
}
|
|
@@ -61,13 +64,13 @@ var Input = function Input(_ref) {
|
|
|
61
64
|
})), error && /*#__PURE__*/_react.default.createElement(_material.TextField, _extends({
|
|
62
65
|
required: isRequired,
|
|
63
66
|
id: id,
|
|
64
|
-
autoComplete: disableAutocomplete ?
|
|
67
|
+
autoComplete: disableAutocomplete ? 'nothing' : null,
|
|
65
68
|
sx: {
|
|
66
69
|
marginTop: label ? theme.spacing(2.5) : 0,
|
|
67
|
-
|
|
70
|
+
'& label': {
|
|
68
71
|
fontWeight: 500
|
|
69
72
|
},
|
|
70
|
-
|
|
73
|
+
'& svg': {
|
|
71
74
|
marginRight: startIcon ? theme.spacing(1) : 0,
|
|
72
75
|
marginLeft: endIcon ? theme.spacing(1) : 0
|
|
73
76
|
}
|
|
@@ -33,7 +33,7 @@ var ReactSelect = function ReactSelect(props) {
|
|
|
33
33
|
isRequired = props.isRequired,
|
|
34
34
|
isDisabled = props.isDisabled,
|
|
35
35
|
rest = _objectWithoutProperties(props, _excluded);
|
|
36
|
-
console.log(defaultValue,
|
|
36
|
+
console.log(defaultValue, 'hsgdsahgd', options[1]);
|
|
37
37
|
var icon = /*#__PURE__*/_react.default.createElement(_CheckBoxOutlineBlank.default, {
|
|
38
38
|
fontSize: "small"
|
|
39
39
|
});
|
|
@@ -45,14 +45,19 @@ var ReactSelect = function ReactSelect(props) {
|
|
|
45
45
|
}, /*#__PURE__*/_react.default.createElement(_material.FormLabel, {
|
|
46
46
|
htmlFor: "my-input",
|
|
47
47
|
sx: {
|
|
48
|
-
fontSize:
|
|
48
|
+
fontSize: '0.8rem',
|
|
49
49
|
fontWeight: 500
|
|
50
50
|
}
|
|
51
|
-
}, label, isRequired ?
|
|
51
|
+
}, label, isRequired ? /*#__PURE__*/_react.default.createElement("span", {
|
|
52
|
+
style: {
|
|
53
|
+
color: 'red'
|
|
54
|
+
}
|
|
55
|
+
}, " *") : ''), checkBox && /*#__PURE__*/_react.default.createElement(_material.Autocomplete, _extends({}, rest, {
|
|
52
56
|
disabled: isDisabled,
|
|
53
57
|
multiple: isMulti,
|
|
54
|
-
options: options
|
|
55
|
-
disableCloseOnSelect
|
|
58
|
+
options: options
|
|
59
|
+
// disableCloseOnSelect
|
|
60
|
+
,
|
|
56
61
|
getOptionLabel: function getOptionLabel(option) {
|
|
57
62
|
return option === null || option === void 0 ? void 0 : option.label;
|
|
58
63
|
},
|
|
@@ -79,8 +84,9 @@ var ReactSelect = function ReactSelect(props) {
|
|
|
79
84
|
})), !checkBox && !blueTheme && /*#__PURE__*/_react.default.createElement(_material.Autocomplete, _extends({}, rest, {
|
|
80
85
|
disabled: isDisabled,
|
|
81
86
|
multiple: isMulti,
|
|
82
|
-
options: options
|
|
83
|
-
disableCloseOnSelect
|
|
87
|
+
options: options
|
|
88
|
+
// disableCloseOnSelect
|
|
89
|
+
,
|
|
84
90
|
getOptionLabel: function getOptionLabel(option) {
|
|
85
91
|
return option.label;
|
|
86
92
|
},
|
|
@@ -100,37 +106,38 @@ var ReactSelect = function ReactSelect(props) {
|
|
|
100
106
|
})), blueTheme && /*#__PURE__*/_react.default.createElement(_material.Grid, {
|
|
101
107
|
container: true,
|
|
102
108
|
sx: {
|
|
103
|
-
height:
|
|
104
|
-
backgroundColor:
|
|
105
|
-
borderRadius:
|
|
106
|
-
padding:
|
|
107
|
-
width:
|
|
109
|
+
height: '200px',
|
|
110
|
+
backgroundColor: '#3D3981',
|
|
111
|
+
borderRadius: '7px',
|
|
112
|
+
padding: '16px',
|
|
113
|
+
width: '50%'
|
|
108
114
|
// background: "red",
|
|
109
115
|
}
|
|
110
116
|
}, /*#__PURE__*/_react.default.createElement(_material.Autocomplete, _extends({
|
|
111
117
|
sx: {
|
|
112
|
-
width:
|
|
118
|
+
width: '100%',
|
|
113
119
|
"& .MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root']": {
|
|
114
|
-
background:
|
|
115
|
-
color:
|
|
120
|
+
background: '#6e6ba1',
|
|
121
|
+
color: '#F4F7FC'
|
|
116
122
|
}
|
|
117
123
|
},
|
|
118
124
|
PaperComponent: function PaperComponent(_ref2) {
|
|
119
125
|
var children = _ref2.children;
|
|
120
126
|
return /*#__PURE__*/_react.default.createElement(_material.Paper, {
|
|
121
127
|
style: {
|
|
122
|
-
background:
|
|
123
|
-
color:
|
|
124
|
-
|
|
125
|
-
background:
|
|
128
|
+
background: '#6e6ba1',
|
|
129
|
+
color: '#F4F7FC',
|
|
130
|
+
'&:hover': {
|
|
131
|
+
background: '#fff'
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
134
|
}, children);
|
|
129
135
|
}
|
|
130
136
|
}, rest, {
|
|
131
137
|
disabled: isDisabled,
|
|
132
|
-
options: options
|
|
133
|
-
disableCloseOnSelect
|
|
138
|
+
options: options
|
|
139
|
+
// disableCloseOnSelect
|
|
140
|
+
,
|
|
134
141
|
getOptionLabel: function getOptionLabel(option) {
|
|
135
142
|
return option.label;
|
|
136
143
|
},
|
|
@@ -166,13 +173,13 @@ ReactSelect.propTypes = {
|
|
|
166
173
|
};
|
|
167
174
|
ReactSelect.defaultProps = {
|
|
168
175
|
value: {},
|
|
169
|
-
label:
|
|
170
|
-
className:
|
|
176
|
+
label: '',
|
|
177
|
+
className: '',
|
|
171
178
|
defaultValue: [{}],
|
|
172
179
|
isMulti: false,
|
|
173
180
|
isDisabled: false,
|
|
174
181
|
options: [],
|
|
175
|
-
placeholder:
|
|
182
|
+
placeholder: '',
|
|
176
183
|
isRequired: false,
|
|
177
184
|
simulateNativeSelect: true
|
|
178
185
|
};
|
package/package.json
CHANGED
package/themes/default.js
CHANGED
|
@@ -9,12 +9,12 @@ var _default = (0, _material.createTheme)({
|
|
|
9
9
|
components: {
|
|
10
10
|
MuiButton: {
|
|
11
11
|
defaultProps: {
|
|
12
|
-
variant:
|
|
12
|
+
variant: 'contained',
|
|
13
13
|
disableRipple: true
|
|
14
14
|
},
|
|
15
15
|
styleOverrides: {
|
|
16
16
|
root: {
|
|
17
|
-
textTransform:
|
|
17
|
+
textTransform: 'initial'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
@@ -41,46 +41,56 @@ var _default = (0, _material.createTheme)({
|
|
|
41
41
|
MuiAutocomplete: {
|
|
42
42
|
styleOverrides: {
|
|
43
43
|
root: {
|
|
44
|
-
padding:
|
|
45
|
-
border:
|
|
46
|
-
borderRadius:
|
|
47
|
-
backgroundColor:
|
|
48
|
-
|
|
49
|
-
padding:
|
|
50
|
-
fontSize:
|
|
51
|
-
border:
|
|
44
|
+
padding: '0.5rem 0.75rem',
|
|
45
|
+
border: '1px solid black !important',
|
|
46
|
+
borderRadius: '0.25rem',
|
|
47
|
+
backgroundColor: 'white',
|
|
48
|
+
'& .MuiAutocomplete-input': {
|
|
49
|
+
padding: '0.5rem 0.75rem',
|
|
50
|
+
fontSize: '1rem',
|
|
51
|
+
border: '1px solid black !important'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
MuiInputLabel: {
|
|
56
|
+
styleOverrides: {
|
|
57
|
+
asterisk: {
|
|
58
|
+
color: '#db3131',
|
|
59
|
+
'&$error': {
|
|
60
|
+
color: '#db3131'
|
|
61
|
+
}
|
|
52
62
|
}
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
65
|
},
|
|
56
66
|
overrides: {
|
|
57
67
|
MuiCssBaseline: {
|
|
58
|
-
|
|
68
|
+
'@global': {
|
|
59
69
|
html: {
|
|
60
|
-
|
|
61
|
-
height:
|
|
70
|
+
'scroll-behavior': 'smooth',
|
|
71
|
+
height: '100vh'
|
|
62
72
|
},
|
|
63
73
|
body: {
|
|
64
|
-
position:
|
|
74
|
+
position: 'relative',
|
|
65
75
|
margin: 0,
|
|
66
|
-
height:
|
|
67
|
-
color:
|
|
68
|
-
backgroundColor:
|
|
76
|
+
height: '100vh',
|
|
77
|
+
color: '#000000',
|
|
78
|
+
backgroundColor: '#f4f7fc'
|
|
69
79
|
},
|
|
70
|
-
|
|
71
|
-
width:
|
|
80
|
+
'*::-webkit-scrollbar': {
|
|
81
|
+
width: '6px'
|
|
72
82
|
},
|
|
73
83
|
a: {
|
|
74
|
-
textDecoration:
|
|
75
|
-
color:
|
|
84
|
+
textDecoration: 'none',
|
|
85
|
+
color: '#44409A'
|
|
76
86
|
},
|
|
77
|
-
|
|
78
|
-
backgroundColor:
|
|
79
|
-
borderRadius:
|
|
87
|
+
'*::-webkit-scrollbar-thumb': {
|
|
88
|
+
backgroundColor: '#e4e4e4',
|
|
89
|
+
borderRadius: '3px',
|
|
80
90
|
opacity: 0.5
|
|
81
91
|
},
|
|
82
|
-
|
|
83
|
-
background:
|
|
92
|
+
'*::-webkit-scrollbar-track': {
|
|
93
|
+
background: 'transparent'
|
|
84
94
|
}
|
|
85
95
|
}
|
|
86
96
|
}
|
|
@@ -123,83 +133,83 @@ var _default = (0, _material.createTheme)({
|
|
|
123
133
|
// main: "#BF1E1E",
|
|
124
134
|
// },
|
|
125
135
|
primary: {
|
|
126
|
-
main:
|
|
136
|
+
main: '#44409A'
|
|
127
137
|
},
|
|
128
138
|
primary_light: {
|
|
129
|
-
main:
|
|
139
|
+
main: '#5B58A9'
|
|
130
140
|
},
|
|
131
141
|
primary_dark: {
|
|
132
|
-
main:
|
|
142
|
+
main: '#000050'
|
|
133
143
|
},
|
|
134
144
|
secondary: {
|
|
135
|
-
main:
|
|
145
|
+
main: '#BF1E1E'
|
|
136
146
|
},
|
|
137
147
|
secondary_light: {
|
|
138
|
-
main:
|
|
148
|
+
main: '#CC3F3F'
|
|
139
149
|
},
|
|
140
150
|
secondary_dark: {
|
|
141
|
-
main:
|
|
151
|
+
main: '#951010'
|
|
142
152
|
},
|
|
143
153
|
success: {
|
|
144
|
-
main:
|
|
154
|
+
main: '#2C7413'
|
|
145
155
|
},
|
|
146
156
|
success_light: {
|
|
147
|
-
main:
|
|
157
|
+
main: '#5EA342'
|
|
148
158
|
},
|
|
149
159
|
success_dark: {
|
|
150
|
-
main:
|
|
160
|
+
main: '#004700'
|
|
151
161
|
},
|
|
152
162
|
info: {
|
|
153
|
-
main:
|
|
163
|
+
main: '#70BBFD'
|
|
154
164
|
},
|
|
155
165
|
info_light: {
|
|
156
|
-
main:
|
|
166
|
+
main: '#A6EDFF'
|
|
157
167
|
},
|
|
158
168
|
info_dark: {
|
|
159
|
-
main:
|
|
169
|
+
main: '#358BCA'
|
|
160
170
|
},
|
|
161
171
|
error: {
|
|
162
|
-
main:
|
|
172
|
+
main: '#BE1515'
|
|
163
173
|
},
|
|
164
174
|
error_light: {
|
|
165
|
-
main:
|
|
175
|
+
main: '#F8533F'
|
|
166
176
|
},
|
|
167
177
|
error_dark: {
|
|
168
|
-
main:
|
|
178
|
+
main: '#860000'
|
|
169
179
|
},
|
|
170
180
|
warning: {
|
|
171
|
-
main:
|
|
181
|
+
main: '#EB9A31'
|
|
172
182
|
},
|
|
173
183
|
warning_light: {
|
|
174
|
-
main:
|
|
184
|
+
main: '#FFCB62'
|
|
175
185
|
},
|
|
176
186
|
warning_dark: {
|
|
177
|
-
main:
|
|
187
|
+
main: '#B46C00'
|
|
178
188
|
},
|
|
179
189
|
grey: {
|
|
180
|
-
main:
|
|
190
|
+
main: '#7D7D7D'
|
|
181
191
|
},
|
|
182
192
|
grey_light: {
|
|
183
|
-
main:
|
|
193
|
+
main: '#ACACAC'
|
|
184
194
|
},
|
|
185
195
|
grey_dark: {
|
|
186
|
-
main:
|
|
196
|
+
main: '#515151'
|
|
187
197
|
},
|
|
188
198
|
secondary_grey: {
|
|
189
|
-
main:
|
|
199
|
+
main: '#D7E2F0'
|
|
190
200
|
},
|
|
191
201
|
white: {
|
|
192
|
-
main:
|
|
202
|
+
main: '#ffffff'
|
|
193
203
|
},
|
|
194
204
|
default: {
|
|
195
|
-
main:
|
|
205
|
+
main: '#7D7D7D'
|
|
196
206
|
},
|
|
197
207
|
text: {
|
|
198
|
-
main:
|
|
208
|
+
main: '#000000'
|
|
199
209
|
}
|
|
200
210
|
},
|
|
201
211
|
typography: {
|
|
202
|
-
fontFamily: [
|
|
212
|
+
fontFamily: ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(',')
|
|
203
213
|
}
|
|
204
214
|
});
|
|
205
215
|
exports.default = _default;
|