tenjin-ui-kit 0.1.0-dev.0 → 0.1.0-dev.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.
|
@@ -33,24 +33,24 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
33
33
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
34
|
var ANNOUNCEMENT_TYPES = {
|
|
35
35
|
success: {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
borderLeft:
|
|
38
|
-
color:
|
|
36
|
+
backgroundColor: "#EDF7ED",
|
|
37
|
+
borderLeft: "6px solid #4CAF50",
|
|
38
|
+
color: "#1B5E20"
|
|
39
39
|
},
|
|
40
40
|
error: {
|
|
41
|
-
backgroundColor:
|
|
42
|
-
borderLeft:
|
|
43
|
-
color:
|
|
41
|
+
backgroundColor: "#FDECEA",
|
|
42
|
+
borderLeft: "6px solid #F44336",
|
|
43
|
+
color: "#B71C1C"
|
|
44
44
|
},
|
|
45
45
|
warning: {
|
|
46
|
-
backgroundColor:
|
|
47
|
-
borderLeft:
|
|
48
|
-
color:
|
|
46
|
+
backgroundColor: "#FFF6DA",
|
|
47
|
+
borderLeft: "6px solid #FFC107",
|
|
48
|
+
color: "#7C5E10"
|
|
49
49
|
},
|
|
50
50
|
info: {
|
|
51
|
-
backgroundColor:
|
|
52
|
-
borderLeft:
|
|
53
|
-
color:
|
|
51
|
+
backgroundColor: "#E8F4FD",
|
|
52
|
+
borderLeft: "6px solid #2196F3",
|
|
53
|
+
color: "#0D47A1"
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
var ProjectTopbar = function ProjectTopbar(_ref) {
|
|
@@ -103,6 +103,8 @@ var ProjectTopbar = function ProjectTopbar(_ref) {
|
|
|
103
103
|
} else {
|
|
104
104
|
navigate(item.href);
|
|
105
105
|
}
|
|
106
|
+
} else if (item.onClick) {
|
|
107
|
+
item.onClick();
|
|
106
108
|
} else {
|
|
107
109
|
if (localStorage.getItem("chatBot")) {
|
|
108
110
|
localStorage.removeItem("chatBot");
|
|
@@ -255,20 +257,20 @@ var ProjectTopbar = function ProjectTopbar(_ref) {
|
|
|
255
257
|
backgroundColor: ANNOUNCEMENT_TYPES[announcement.type].backgroundColor,
|
|
256
258
|
borderLeft: ANNOUNCEMENT_TYPES[announcement.type].borderLeft,
|
|
257
259
|
color: ANNOUNCEMENT_TYPES[announcement.type].color,
|
|
258
|
-
minHeight:
|
|
259
|
-
height:
|
|
260
|
-
minWidth:
|
|
261
|
-
borderRadius:
|
|
262
|
-
marginRight:
|
|
263
|
-
paddingInline:
|
|
264
|
-
paddingBlock:
|
|
265
|
-
display:
|
|
266
|
-
alignItems:
|
|
267
|
-
fontSize:
|
|
260
|
+
minHeight: "26px",
|
|
261
|
+
height: "100%",
|
|
262
|
+
minWidth: "200px",
|
|
263
|
+
borderRadius: "4px",
|
|
264
|
+
marginRight: "10px",
|
|
265
|
+
paddingInline: "10px",
|
|
266
|
+
paddingBlock: "6px",
|
|
267
|
+
display: "flex",
|
|
268
|
+
alignItems: "center",
|
|
269
|
+
fontSize: "12px"
|
|
268
270
|
}
|
|
269
|
-
}, typeof announcement.message ===
|
|
271
|
+
}, typeof announcement.message === "string" ? /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
270
272
|
sx: {
|
|
271
|
-
fontSize:
|
|
273
|
+
fontSize: "12px"
|
|
272
274
|
}
|
|
273
275
|
}, announcement.message) : announcement.message), (loggedInUser === null || loggedInUser === void 0 ? void 0 : (_loggedInUser$role = loggedInUser.role) === null || _loggedInUser$role === void 0 ? void 0 : _loggedInUser$role.id) === 1 && /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
274
276
|
variant: "text",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tenjin-ui-kit",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
|
|
6
6
|
},
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"final-form": "^4.20.9",
|
|
24
24
|
"material-ui-popup-state": "^5.0.8",
|
|
25
25
|
"moment": "^2.29.4",
|
|
26
|
+
"npm-run-all": "^4.1.5",
|
|
26
27
|
"react-beautiful-dnd": "^13.1.1",
|
|
27
28
|
"react-dnd": "^16.0.1",
|
|
28
29
|
"react-dnd-html5-backend": "^16.0.1",
|
|
@@ -49,7 +50,9 @@
|
|
|
49
50
|
"storybook": "start-storybook -p 6006 -s public",
|
|
50
51
|
"build-storybook": "build-storybook -s public",
|
|
51
52
|
"clean": "rimraf dist",
|
|
52
|
-
"compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__"
|
|
53
|
+
"compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
|
|
54
|
+
"copy-and-publish": "copy package.json dist && copy README.md dist && cd dist && npm publish --tag dev",
|
|
55
|
+
"publish-dev": "npm-run-all compile copy-and-publish"
|
|
53
56
|
},
|
|
54
57
|
"eslintConfig": {
|
|
55
58
|
"extends": [
|