allaw-ui 3.5.9 → 3.6.0
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.
|
@@ -4,7 +4,7 @@ import styles from "./InboxButton.module.css";
|
|
|
4
4
|
var InboxButton = function (_a) {
|
|
5
5
|
var _b = _a.count, count = _b === void 0 ? 0 : _b, onClick = _a.onClick, labels = _a.labels, dataCy = _a.dataCy, _c = _a.scheme, scheme = _c === void 0 ? "notification" : _c, iconClassName = _a.iconClassName, iconAriaLabel = _a.iconAriaLabel;
|
|
6
6
|
var isZero = count === 0;
|
|
7
|
-
var isDisabled = scheme === "
|
|
7
|
+
var isDisabled = scheme === "qualification" && isZero;
|
|
8
8
|
var isQualificationZero = scheme === "qualification" && isZero;
|
|
9
9
|
// Choix du label
|
|
10
10
|
var label = isZero
|
|
@@ -38,7 +38,7 @@ var InboxButton = function (_a) {
|
|
|
38
38
|
}
|
|
39
39
|
return (React.createElement("button", { className: clsx(styles.inboxBtn, isDisabled && styles.disabled, isQualificationZero && styles.qualificationZero, !isDisabled && !isQualificationZero && styles["bg-".concat(bgKey)], scheme === "qualification" &&
|
|
40
40
|
!isQualificationZero &&
|
|
41
|
-
styles.qualificationActive), disabled: isDisabled, onClick: onClick, "data-cy": dataCy },
|
|
41
|
+
styles.qualificationActive, scheme === "notification" && !isZero && styles.notifActive), disabled: isDisabled, onClick: onClick, "data-cy": dataCy },
|
|
42
42
|
iconClassName && (React.createElement("i", { className: clsx(styles.icon, iconClassName, !isDisabled && !isQualificationZero && styles["color-".concat(colorKey)], isQualificationZero && styles.colorDarkGrey, scheme === "qualification" &&
|
|
43
43
|
!isQualificationZero &&
|
|
44
44
|
styles.colorNoir), "aria-label": iconAriaLabel })),
|
|
@@ -9,18 +9,20 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
border: none;
|
|
11
11
|
border-radius: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.notifActive {
|
|
12
15
|
cursor: pointer;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
.
|
|
16
|
-
|
|
17
|
-
) {
|
|
18
|
-
background-color: #fbe8e8;
|
|
18
|
+
.notifActive:hover {
|
|
19
|
+
cursor: pointer;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.qualificationActive:hover {
|
|
22
23
|
background-color: #000000;
|
|
23
24
|
color: #25beeb;
|
|
25
|
+
cursor: pointer;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
.qualificationActive:hover .icon {
|
|
@@ -32,16 +34,16 @@
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.disabled {
|
|
35
|
-
cursor:
|
|
37
|
+
cursor: default;
|
|
36
38
|
background-color: #daebfb;
|
|
37
|
-
color: #1985e8;
|
|
39
|
+
/* color: #1985e8; */
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.qualificationZero {
|
|
41
43
|
cursor: initial;
|
|
42
44
|
background-color: #ffffff;
|
|
43
45
|
color: #d1dce8;
|
|
44
|
-
border: 2px solid #
|
|
46
|
+
border: 2px solid #e6edf5;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.qualificationActive {
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
.labelDisabled {
|
|
77
|
-
color: #
|
|
79
|
+
color: #d1dce8;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
.bg-mid-grey {
|