@entur/chip 0.6.22 → 0.6.24
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.
- package/dist/styles.css +100 -95
- package/package.json +5 -5
package/dist/styles.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--eds-chip: 1;
|
|
3
|
-
}
|
|
3
|
+
}
|
|
4
|
+
/* DO NOT CHANGE!*/
|
|
4
5
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
6
|
.eds-chip {
|
|
6
7
|
background: #ebebf1;
|
|
@@ -29,78 +30,47 @@
|
|
|
29
30
|
}
|
|
30
31
|
.eds-chip--trailing-icon .eds-icon {
|
|
31
32
|
margin-left: 0.5rem;
|
|
32
|
-
}
|
|
33
|
+
}
|
|
34
|
+
/* DO NOT CHANGE!*/
|
|
33
35
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
34
|
-
.eds-
|
|
36
|
+
.eds-action-chip {
|
|
35
37
|
cursor: pointer;
|
|
36
|
-
display: inline-block;
|
|
37
|
-
margin-right: 0.75rem;
|
|
38
|
-
position: relative;
|
|
39
|
-
transition: all 0.1s ease-out;
|
|
40
|
-
}
|
|
41
|
-
.eds-choice-chip__input {
|
|
42
|
-
-moz-appearance: none;
|
|
43
|
-
appearance: none;
|
|
44
|
-
height: 0;
|
|
45
|
-
position: absolute;
|
|
46
|
-
width: 0;
|
|
47
|
-
-webkit-appearance: none;
|
|
48
|
-
}
|
|
49
|
-
.eds-choice-chip__input ~ .eds-chip {
|
|
50
|
-
background-color: transparent;
|
|
51
|
-
}
|
|
52
|
-
.eds-contrast .eds-choice-chip__input ~ .eds-chip {
|
|
53
|
-
border-color: #aeb7e2;
|
|
54
|
-
color: #ffffff;
|
|
55
38
|
}
|
|
56
|
-
.eds-
|
|
57
|
-
background-color: #181c56;
|
|
58
|
-
border-color: #181c56;
|
|
59
|
-
color: #ffffff;
|
|
60
|
-
}
|
|
61
|
-
.eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
|
|
62
|
-
border-color: #aeb7e2;
|
|
63
|
-
background-color: #aeb7e2;
|
|
64
|
-
color: #181c56;
|
|
65
|
-
}
|
|
66
|
-
.eds-choice-chip__input:focus ~ .eds-chip {
|
|
39
|
+
.eds-action-chip:focus {
|
|
67
40
|
outline: none;
|
|
68
41
|
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
69
42
|
outline-offset: 0.125rem;
|
|
70
43
|
}
|
|
71
|
-
.eds-contrast .eds-
|
|
44
|
+
.eds-contrast .eds-action-chip:focus {
|
|
72
45
|
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
73
46
|
}
|
|
74
|
-
.eds-
|
|
47
|
+
.eds-action-chip:hover {
|
|
75
48
|
border-color: #181c56;
|
|
76
49
|
}
|
|
77
|
-
.eds-contrast .eds-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
81
|
-
background-color: #3b3e6f;
|
|
82
|
-
border-color: #3b3e6f;
|
|
50
|
+
.eds-contrast .eds-action-chip:hover {
|
|
51
|
+
background-color: #54568c;
|
|
52
|
+
border-color: #54568c;
|
|
83
53
|
}
|
|
84
|
-
.eds-
|
|
85
|
-
background
|
|
86
|
-
border-color: #bac2e6;
|
|
54
|
+
.eds-action-chip:active {
|
|
55
|
+
background: #d1d4e3;
|
|
87
56
|
}
|
|
88
|
-
.eds-
|
|
89
|
-
background-color: #
|
|
90
|
-
border-color: #
|
|
57
|
+
.eds-contrast .eds-action-chip:active {
|
|
58
|
+
background-color: #292b6a;
|
|
59
|
+
border-color: #292b6a;
|
|
91
60
|
}
|
|
92
|
-
.eds-
|
|
93
|
-
|
|
61
|
+
.eds-action-chip--disabled {
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
pointer-events: none;
|
|
94
64
|
}
|
|
95
|
-
.eds-
|
|
96
|
-
border-style: dashed;
|
|
65
|
+
.eds-action-chip--disabled__wrapper {
|
|
97
66
|
cursor: not-allowed;
|
|
67
|
+
width: -moz-fit-content;
|
|
68
|
+
width: fit-content;
|
|
98
69
|
}
|
|
99
|
-
.eds-contrast .eds-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}/* DO NOT CHANGE!*/
|
|
70
|
+
.eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
|
|
71
|
+
background-color: #ffffff;
|
|
72
|
+
}
|
|
73
|
+
/* DO NOT CHANGE!*/
|
|
104
74
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
105
75
|
.eds-tag-chip {
|
|
106
76
|
cursor: default;
|
|
@@ -139,45 +109,8 @@
|
|
|
139
109
|
}
|
|
140
110
|
.eds-contrast .eds-tag-chip__close-button:focus {
|
|
141
111
|
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
142
|
-
}/* DO NOT CHANGE!*/
|
|
143
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
144
|
-
.eds-action-chip {
|
|
145
|
-
cursor: pointer;
|
|
146
|
-
}
|
|
147
|
-
.eds-action-chip:focus {
|
|
148
|
-
outline: none;
|
|
149
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
150
|
-
outline-offset: 0.125rem;
|
|
151
|
-
}
|
|
152
|
-
.eds-contrast .eds-action-chip:focus {
|
|
153
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
154
|
-
}
|
|
155
|
-
.eds-action-chip:hover {
|
|
156
|
-
border-color: #181c56;
|
|
157
|
-
}
|
|
158
|
-
.eds-contrast .eds-action-chip:hover {
|
|
159
|
-
background-color: #54568c;
|
|
160
|
-
border-color: #54568c;
|
|
161
|
-
}
|
|
162
|
-
.eds-action-chip:active {
|
|
163
|
-
background: #d1d4e3;
|
|
164
|
-
}
|
|
165
|
-
.eds-contrast .eds-action-chip:active {
|
|
166
|
-
background-color: #292b6a;
|
|
167
|
-
border-color: #292b6a;
|
|
168
112
|
}
|
|
169
|
-
|
|
170
|
-
opacity: 0.5;
|
|
171
|
-
pointer-events: none;
|
|
172
|
-
}
|
|
173
|
-
.eds-action-chip--disabled__wrapper {
|
|
174
|
-
cursor: not-allowed;
|
|
175
|
-
width: -moz-fit-content;
|
|
176
|
-
width: fit-content;
|
|
177
|
-
}
|
|
178
|
-
.eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
|
|
179
|
-
background-color: #ffffff;
|
|
180
|
-
}/* DO NOT CHANGE!*/
|
|
113
|
+
/* DO NOT CHANGE!*/
|
|
181
114
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
182
115
|
.eds-filter-chip {
|
|
183
116
|
cursor: pointer;
|
|
@@ -262,4 +195,76 @@
|
|
|
262
195
|
100% {
|
|
263
196
|
stroke-dashoffset: 0;
|
|
264
197
|
}
|
|
265
|
-
}
|
|
198
|
+
}
|
|
199
|
+
/* DO NOT CHANGE!*/
|
|
200
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
201
|
+
.eds-choice-chip {
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
display: inline-block;
|
|
204
|
+
margin-right: 0.75rem;
|
|
205
|
+
position: relative;
|
|
206
|
+
transition: all 0.1s ease-out;
|
|
207
|
+
}
|
|
208
|
+
.eds-choice-chip__input {
|
|
209
|
+
-moz-appearance: none;
|
|
210
|
+
appearance: none;
|
|
211
|
+
height: 0;
|
|
212
|
+
position: absolute;
|
|
213
|
+
width: 0;
|
|
214
|
+
-webkit-appearance: none;
|
|
215
|
+
}
|
|
216
|
+
.eds-choice-chip__input ~ .eds-chip {
|
|
217
|
+
background-color: transparent;
|
|
218
|
+
}
|
|
219
|
+
.eds-contrast .eds-choice-chip__input ~ .eds-chip {
|
|
220
|
+
border-color: #aeb7e2;
|
|
221
|
+
color: #ffffff;
|
|
222
|
+
}
|
|
223
|
+
.eds-choice-chip__input:checked ~ .eds-chip {
|
|
224
|
+
background-color: #181c56;
|
|
225
|
+
border-color: #181c56;
|
|
226
|
+
color: #ffffff;
|
|
227
|
+
}
|
|
228
|
+
.eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
|
|
229
|
+
border-color: #aeb7e2;
|
|
230
|
+
background-color: #aeb7e2;
|
|
231
|
+
color: #181c56;
|
|
232
|
+
}
|
|
233
|
+
.eds-choice-chip__input:focus ~ .eds-chip {
|
|
234
|
+
outline: none;
|
|
235
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
236
|
+
outline-offset: 0.125rem;
|
|
237
|
+
}
|
|
238
|
+
.eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
|
|
239
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
240
|
+
}
|
|
241
|
+
.eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
242
|
+
border-color: #181c56;
|
|
243
|
+
}
|
|
244
|
+
.eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
245
|
+
border-color: #ffffff;
|
|
246
|
+
}
|
|
247
|
+
.eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
248
|
+
background-color: #3b3e6f;
|
|
249
|
+
border-color: #3b3e6f;
|
|
250
|
+
}
|
|
251
|
+
.eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
252
|
+
background-color: #bac2e6;
|
|
253
|
+
border-color: #bac2e6;
|
|
254
|
+
}
|
|
255
|
+
.eds-choice-chip__input:active ~ .eds-chip {
|
|
256
|
+
background-color: #d1d4e3;
|
|
257
|
+
border-color: #d1d4e3;
|
|
258
|
+
}
|
|
259
|
+
.eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
|
|
260
|
+
background: #33376d;
|
|
261
|
+
}
|
|
262
|
+
.eds-choice-chip .eds-chip--disabled {
|
|
263
|
+
border-style: dashed;
|
|
264
|
+
cursor: not-allowed;
|
|
265
|
+
}
|
|
266
|
+
.eds-contrast .eds-choice-chip .eds-chip--disabled {
|
|
267
|
+
opacity: 1;
|
|
268
|
+
border-color: #8285a8;
|
|
269
|
+
color: #babbcf;
|
|
270
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/chip",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.24",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/chip.esm.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/form": "^
|
|
31
|
-
"@entur/icons": "^
|
|
32
|
-
"@entur/loader": "^0.4.
|
|
30
|
+
"@entur/form": "^6.0.0",
|
|
31
|
+
"@entur/icons": "^6.0.0",
|
|
32
|
+
"@entur/loader": "^0.4.23",
|
|
33
33
|
"@entur/tokens": "^3.8.0",
|
|
34
34
|
"@entur/utils": "^0.5.5",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "48cdba2e353c9311d52550a98c6b025deb7b8270"
|
|
38
38
|
}
|