allaw-ui 3.6.3 → 3.6.4

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,12 +33,12 @@ var InboxButton = function (_a) {
33
33
  }
34
34
  else {
35
35
  bgKey = "pure-white";
36
- colorKey = "noir";
36
+ colorKey = "dark-grey";
37
37
  }
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, scheme === "notification" && !isZero && styles.notifActive), disabled: isDisabled, onClick: onClick, "data-cy": dataCy },
41
+ styles.qualificationActive, scheme === "notification" && !isZero && styles.notifActive, scheme === "qualification" && !isZero && styles.shiny), 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,3 +1,38 @@
1
+ /* Effet shiny pour les boutons qualification actifs */
2
+ .shiny {
3
+ position: relative;
4
+ overflow: hidden;
5
+ }
6
+
7
+ .shiny::before {
8
+ content: "";
9
+ position: absolute;
10
+ top: 0;
11
+ left: -100%;
12
+ width: 100%;
13
+ height: 100%;
14
+ background: linear-gradient(
15
+ 120deg,
16
+ transparent,
17
+ rgb(69, 96, 115),
18
+ transparent
19
+ );
20
+ animation: shine 5s ease-in-out infinite;
21
+ transition: left 0.65s ease-in-out;
22
+ }
23
+
24
+ @keyframes shine {
25
+ 0% {
26
+ left: -100%;
27
+ }
28
+ 13% {
29
+ left: 100%;
30
+ }
31
+ 100% {
32
+ left: 100%;
33
+ }
34
+ }
35
+
1
36
  .inboxBtn {
2
37
  display: flex;
3
38
  flex-direction: row;
@@ -21,7 +56,8 @@
21
56
  }
22
57
 
23
58
  .qualificationActive:hover {
24
- background-color: #000000;
59
+ background-color: #456073;
60
+ border: 2px solid #456073;
25
61
  color: #25beeb;
26
62
  cursor: pointer;
27
63
  }
@@ -49,23 +85,18 @@
49
85
 
50
86
  .qualificationActive {
51
87
  background-color: transparent;
52
- color: #000000;
88
+ color: #456073;
53
89
  position: relative;
54
- border: 2px solid #000000;
90
+ border: 2px solid #456073;
55
91
  overflow: hidden;
56
92
  }
57
93
 
58
- .qualificationActive:hover {
59
- background-color: #000000;
60
- color: #25beeb;
61
- }
62
-
63
94
  .colorDarkGrey {
64
95
  color: #d1dce8;
65
96
  }
66
97
 
67
98
  .colorNoir {
68
- color: #000000;
99
+ color: #456073;
69
100
  }
70
101
 
71
102
  .label {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "3.6.3",
3
+ "version": "3.6.4",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",