allaw-ui 3.7.9 → 3.8.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.
@@ -232,7 +232,7 @@ function Select(_a, ref) {
232
232
  : !Array.isArray(selected) && selected
233
233
  ? (_b = items.find(function (item) { return item.value === selected; })) === null || _b === void 0 ? void 0 : _b.label
234
234
  : placeholder),
235
- React.createElement("span", { className: "".concat(styles.selectIcon, " ").concat(isOpen ? styles.allawIconChevronUp : styles.allawIconChevronDown) })),
235
+ React.createElement("i", { className: "".concat(styles.selectIcon, " allaw-icon-chevron-down ").concat(isOpen ? styles.chevronUp : styles.chevronDown) })),
236
236
  isOpen && ReactDOM.createPortal(renderList(), document.body),
237
237
  isRequired && showError && error && (React.createElement("div", { className: styles.errorMessage },
238
238
  React.createElement(TinyInfo, { variant: "medium12", color: "actions-error", text: error })))));
@@ -6,19 +6,28 @@
6
6
  .select {
7
7
  display: flex;
8
8
  justify-content: space-between;
9
- align-items: flex-start;
10
- gap: 11px;
11
- border-radius: 8px;
12
- background: var(--secondary-light-grey, #f4f7fb);
9
+ align-items: center;
10
+ gap: 8px;
11
+ border-radius: 10px;
12
+ border: 2px solid var(--grey-venom, #e6edf5);
13
+ background: var(--Primary-Blanc, #fff);
13
14
  cursor: pointer;
15
+ outline: none;
16
+ font-family: "Open Sans";
17
+ font-size: 16px;
18
+ font-style: normal;
19
+ font-weight: 500;
20
+ line-height: normal;
21
+ color: var(--Primary-Mid-black, var(--primary-black, #171e25));
22
+ width: 100%;
14
23
  }
15
24
 
16
25
  .select:hover {
17
- background: var(--grey-venom, #e6edf5);
26
+ border-color: var(--venom-grey-dark, #d1dce8);
18
27
  }
19
28
 
20
29
  .select:focus {
21
- background: var(--grey-venom, #e6edf5);
30
+ border-color: var(--venom-grey-dark, #d1dce8);
22
31
  }
23
32
 
24
33
  .selectText {
@@ -45,6 +54,20 @@
45
54
  align-items: center;
46
55
  justify-content: center;
47
56
  padding-top: 2px;
57
+ transition: transform 0.3s ease-in-out;
58
+ color: var(--venom-grey-dark, #d1dce8);
59
+ }
60
+
61
+ .selectIcon:hover {
62
+ color: var(--mid-grey, #728ea7);
63
+ }
64
+
65
+ .chevronDown {
66
+ transform: rotate(0deg);
67
+ }
68
+
69
+ .chevronUp {
70
+ transform: rotate(180deg);
48
71
  }
49
72
 
50
73
  .selectList {
@@ -55,8 +78,8 @@
55
78
  display: flex;
56
79
  flex-direction: column;
57
80
  background: #fff;
58
- border-radius: 8px;
59
- padding: 8px 0;
81
+ border-radius: 12px;
82
+ padding: 3px 5px;
60
83
  color: var(--Primary-Mid-black, var(--primary-black, #171e25));
61
84
  font-family: "Open Sans";
62
85
  font-size: 14px;
@@ -75,13 +98,15 @@
75
98
  .selectItem {
76
99
  display: flex;
77
100
  align-items: center;
78
- padding: 8px 16px;
101
+ padding: 8px 12px;
102
+ margin: 2px 0;
79
103
  cursor: pointer;
80
104
  width: 100%;
81
105
  }
82
106
 
83
107
  .selectItem:hover {
84
108
  background: var(--grey-venom, #e6edf5);
109
+ border-radius: 8px;
85
110
  }
86
111
 
87
112
  .selectItem .selectItemIcon {
@@ -116,6 +141,7 @@
116
141
 
117
142
  .selectItem.highlighted {
118
143
  background-color: var(--venom-grey-dark, #d1dce8);
144
+ border-radius: 8px;
119
145
  }
120
146
 
121
147
  .tagContainer {
@@ -152,7 +178,7 @@
152
178
  }
153
179
 
154
180
  .selectMultiple {
155
- padding: 6px 8px;
181
+ padding: 8px 16px;
156
182
  }
157
183
 
158
184
  .selectSingle {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "3.7.9",
3
+ "version": "3.8.0",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",