allaw-ui 3.5.8 → 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 === "notification" && isZero;
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 })),
@@ -1,5 +1,3 @@
1
- @import "../../../styles/colors.css";
2
-
3
1
  .inboxBtn {
4
2
  display: flex;
5
3
  flex-direction: row;
@@ -11,18 +9,20 @@
11
9
  width: 100%;
12
10
  border: none;
13
11
  border-radius: 0.5rem;
12
+ }
13
+
14
+ .notifActive {
14
15
  cursor: pointer;
15
16
  }
16
17
 
17
- .inboxBtn:hover:not(.disabled):not(.qualificationZero):not(
18
- .qualificationActive
19
- ) {
20
- background-color: #fbe8e8;
18
+ .notifActive:hover {
19
+ cursor: pointer;
21
20
  }
22
21
 
23
22
  .qualificationActive:hover {
24
23
  background-color: #000000;
25
24
  color: #25beeb;
25
+ cursor: pointer;
26
26
  }
27
27
 
28
28
  .qualificationActive:hover .icon {
@@ -34,16 +34,16 @@
34
34
  }
35
35
 
36
36
  .disabled {
37
- cursor: initial;
37
+ cursor: default;
38
38
  background-color: #daebfb;
39
- color: #1985e8;
39
+ /* color: #1985e8; */
40
40
  }
41
41
 
42
42
  .qualificationZero {
43
43
  cursor: initial;
44
44
  background-color: #ffffff;
45
45
  color: #d1dce8;
46
- border: 2px solid #d1dce8;
46
+ border: 2px solid #e6edf5;
47
47
  }
48
48
 
49
49
  .qualificationActive {
@@ -76,7 +76,7 @@
76
76
  }
77
77
 
78
78
  .labelDisabled {
79
- color: #1985e8;
79
+ color: #d1dce8;
80
80
  }
81
81
 
82
82
  .bg-mid-grey {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "3.5.8",
3
+ "version": "3.6.0",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",