allaw-ui 1.0.55 → 1.0.56
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.
|
@@ -17,10 +17,12 @@
|
|
|
17
17
|
|
|
18
18
|
.folder-status-tag.open {
|
|
19
19
|
background: var(--tag-green-light, #daf6e9);
|
|
20
|
-
color: var(--Tags-Vert, #29a36a);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
.folder-status-tag.closed {
|
|
23
|
+
background: var(--tag-grey-light, #f2f2f2);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.folder-status-tag.bloqued {
|
|
24
27
|
background: var(--tag-red-light, #fdf2f2);
|
|
25
|
-
color: var(--Tags-Rouge, #e15151);
|
|
26
28
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./FolderStatusTag.css";
|
|
3
|
+
export type FolderStatus = "open" | "closed" | "bloqued";
|
|
3
4
|
export interface FolderStatusTagProps {
|
|
4
|
-
|
|
5
|
+
status: FolderStatus;
|
|
5
6
|
}
|
|
6
7
|
declare const FolderStatusTag: React.FC<FolderStatusTagProps>;
|
|
7
8
|
export default FolderStatusTag;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./FolderStatusTag.css";
|
|
3
3
|
var FolderStatusTag = function (_a) {
|
|
4
|
-
var
|
|
5
|
-
var label
|
|
6
|
-
|
|
4
|
+
var status = _a.status;
|
|
5
|
+
var label, color;
|
|
6
|
+
switch (status) {
|
|
7
|
+
case "open":
|
|
8
|
+
label = "DOSSIER OUVERT";
|
|
9
|
+
color = "--Tags-Vert, #29a36a";
|
|
10
|
+
break;
|
|
11
|
+
case "closed":
|
|
12
|
+
label = "DOSSIER CLÔS";
|
|
13
|
+
color = "--dark-grey, #456073";
|
|
14
|
+
break;
|
|
15
|
+
case "bloqued":
|
|
16
|
+
label = "DOSSIER BLOQUÉ";
|
|
17
|
+
color = "--actions-error, #e15151";
|
|
18
|
+
break;
|
|
19
|
+
default:
|
|
20
|
+
label = "";
|
|
21
|
+
color = "";
|
|
22
|
+
}
|
|
23
|
+
return (React.createElement("div", { className: "folder-status-tag ".concat(status), style: { color: "var(".concat(color, ")") } }, label));
|
|
7
24
|
};
|
|
8
25
|
export default FolderStatusTag;
|