allaw-ui 3.6.3 → 3.6.5

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.
@@ -32,13 +32,13 @@ var InboxButton = function (_a) {
32
32
  colorKey = "mid-grey";
33
33
  }
34
34
  else {
35
- bgKey = "pure-white";
36
- colorKey = "noir";
35
+ bgKey = "grey-venom";
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
+ rgba(162, 181, 200, 0.7),
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,17 +56,17 @@
21
56
  }
22
57
 
23
58
  .qualificationActive:hover {
24
- background-color: #000000;
25
- color: #25beeb;
59
+ background-color: #d1dce8;
60
+ border: 2px solid #d1dce8;
26
61
  cursor: pointer;
27
62
  }
28
63
 
29
64
  .qualificationActive:hover .icon {
30
- color: #25beeb;
65
+ color: #456073;
31
66
  }
32
67
 
33
68
  .qualificationActive:hover .label {
34
- color: #25beeb;
69
+ color: #456073;
35
70
  }
36
71
 
37
72
  .disabled {
@@ -48,24 +83,19 @@
48
83
  }
49
84
 
50
85
  .qualificationActive {
51
- background-color: transparent;
52
- color: #000000;
86
+ background-color: #e6edf5;
87
+ color: #456073;
53
88
  position: relative;
54
- border: 2px solid #000000;
89
+ border: 2px solid #e6edf5;
55
90
  overflow: hidden;
56
91
  }
57
92
 
58
- .qualificationActive:hover {
59
- background-color: #000000;
60
- color: #25beeb;
61
- }
62
-
63
93
  .colorDarkGrey {
64
94
  color: #d1dce8;
65
95
  }
66
96
 
67
97
  .colorNoir {
68
- color: #000000;
98
+ color: #456073;
69
99
  }
70
100
 
71
101
  .label {
@@ -108,6 +138,18 @@
108
138
  background-color: #29a36a;
109
139
  }
110
140
 
141
+ .bg-grey-venom {
142
+ background-color: #e6edf5;
143
+ }
144
+
145
+ .bg-grey-light {
146
+ background-color: #f6fcfe;
147
+ }
148
+
149
+ .color-grey-light {
150
+ color: #f6fcfe;
151
+ }
152
+
111
153
  .color-mid-grey {
112
154
  color: #728ea7;
113
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "3.6.3",
3
+ "version": "3.6.5",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",