@entur/chip 0.6.1 → 0.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.
- package/CHANGELOG.md +14 -0
- package/dist/styles.css +111 -112
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.6.4](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.3...@entur/chip@0.6.4) (2022-08-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **choice chip:** remove opacitiy when chip is disabled ([7412724](https://bitbucket.org/enturas/design-system/commits/741272400dda7ff77aa58b5032dd91f91d3a0393))
|
|
11
|
+
|
|
12
|
+
## [0.6.3](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.2...@entur/chip@0.6.3) (2022-08-09)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @entur/chip
|
|
15
|
+
|
|
16
|
+
## [0.6.2](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.1...@entur/chip@0.6.2) (2022-08-09)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @entur/chip
|
|
19
|
+
|
|
6
20
|
## [0.6.1](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.0...@entur/chip@0.6.1) (2022-07-05)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @entur/chip
|
package/dist/styles.css
CHANGED
|
@@ -2,78 +2,6 @@
|
|
|
2
2
|
--eds-chip: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
-
.eds-choice-chip {
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
display: inline-block;
|
|
8
|
-
margin-right: 0.75rem;
|
|
9
|
-
position: relative;
|
|
10
|
-
transition: all 0.1s ease-out;
|
|
11
|
-
}
|
|
12
|
-
.eds-choice-chip__input {
|
|
13
|
-
-moz-appearance: none;
|
|
14
|
-
appearance: none;
|
|
15
|
-
height: 0;
|
|
16
|
-
position: absolute;
|
|
17
|
-
width: 0;
|
|
18
|
-
-webkit-appearance: none;
|
|
19
|
-
}
|
|
20
|
-
.eds-choice-chip__input ~ .eds-chip {
|
|
21
|
-
background-color: transparent;
|
|
22
|
-
}
|
|
23
|
-
.eds-contrast .eds-choice-chip__input ~ .eds-chip {
|
|
24
|
-
border-color: #aeb7e2;
|
|
25
|
-
color: #ffffff;
|
|
26
|
-
}
|
|
27
|
-
.eds-choice-chip__input:checked ~ .eds-chip {
|
|
28
|
-
background-color: #181c56;
|
|
29
|
-
border-color: #181c56;
|
|
30
|
-
color: #ffffff;
|
|
31
|
-
}
|
|
32
|
-
.eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
|
|
33
|
-
border-color: #aeb7e2;
|
|
34
|
-
background-color: #aeb7e2;
|
|
35
|
-
color: #181c56;
|
|
36
|
-
}
|
|
37
|
-
.eds-choice-chip__input:focus ~ .eds-chip {
|
|
38
|
-
outline: none;
|
|
39
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
40
|
-
outline-offset: 0.125rem;
|
|
41
|
-
}
|
|
42
|
-
.eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
|
|
43
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
44
|
-
}
|
|
45
|
-
.eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
46
|
-
border-color: #181c56;
|
|
47
|
-
}
|
|
48
|
-
.eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
49
|
-
border-color: #ffffff;
|
|
50
|
-
}
|
|
51
|
-
.eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
52
|
-
background-color: #3b3e6f;
|
|
53
|
-
border-color: #3b3e6f;
|
|
54
|
-
}
|
|
55
|
-
.eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
56
|
-
background-color: #bac2e6;
|
|
57
|
-
border-color: #bac2e6;
|
|
58
|
-
}
|
|
59
|
-
.eds-choice-chip__input:active ~ .eds-chip {
|
|
60
|
-
background-color: #d1d4e3;
|
|
61
|
-
border-color: #d1d4e3;
|
|
62
|
-
}
|
|
63
|
-
.eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
|
|
64
|
-
background: #33376d;
|
|
65
|
-
}
|
|
66
|
-
.eds-choice-chip .eds-chip--disabled {
|
|
67
|
-
opacity: 0.5;
|
|
68
|
-
border-style: dashed;
|
|
69
|
-
cursor: not-allowed;
|
|
70
|
-
}
|
|
71
|
-
.eds-contrast .eds-choice-chip .eds-chip--disabled {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
border-color: #8285a8;
|
|
74
|
-
color: #babbcf;
|
|
75
|
-
}/* DO NOT CHANGE!*/
|
|
76
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
77
5
|
.eds-action-chip {
|
|
78
6
|
cursor: pointer;
|
|
79
7
|
}
|
|
@@ -142,46 +70,6 @@
|
|
|
142
70
|
margin-left: 0.5rem;
|
|
143
71
|
}/* DO NOT CHANGE!*/
|
|
144
72
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
145
|
-
.eds-tag-chip {
|
|
146
|
-
cursor: default;
|
|
147
|
-
padding-right: 0.25rem;
|
|
148
|
-
width: -webkit-fit-content;
|
|
149
|
-
width: -moz-fit-content;
|
|
150
|
-
width: fit-content;
|
|
151
|
-
}
|
|
152
|
-
.eds-tag-chip__close-button {
|
|
153
|
-
-webkit-appearance: none;
|
|
154
|
-
-moz-appearance: none;
|
|
155
|
-
appearance: none;
|
|
156
|
-
background: none;
|
|
157
|
-
border: none;
|
|
158
|
-
border-radius: 50%;
|
|
159
|
-
color: #181c56;
|
|
160
|
-
cursor: pointer;
|
|
161
|
-
display: flex;
|
|
162
|
-
font-size: 0.875rem;
|
|
163
|
-
padding: 0.25rem;
|
|
164
|
-
margin-left: 0.25rem;
|
|
165
|
-
transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
|
|
166
|
-
}
|
|
167
|
-
.eds-contrast .eds-tag-chip__close-button {
|
|
168
|
-
color: #ffffff;
|
|
169
|
-
}
|
|
170
|
-
.eds-tag-chip__close-button:hover {
|
|
171
|
-
background: #babbcf;
|
|
172
|
-
}
|
|
173
|
-
.eds-contrast .eds-tag-chip__close-button:hover {
|
|
174
|
-
background: #54568c;
|
|
175
|
-
}
|
|
176
|
-
.eds-tag-chip__close-button:focus {
|
|
177
|
-
outline-offset: 0.125rem;
|
|
178
|
-
outline: none;
|
|
179
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
180
|
-
}
|
|
181
|
-
.eds-contrast .eds-tag-chip__close-button:focus {
|
|
182
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
183
|
-
}/* DO NOT CHANGE!*/
|
|
184
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
185
73
|
.eds-filter-chip {
|
|
186
74
|
cursor: pointer;
|
|
187
75
|
-webkit-user-select: none;
|
|
@@ -274,4 +162,115 @@
|
|
|
274
162
|
100% {
|
|
275
163
|
stroke-dashoffset: 0;
|
|
276
164
|
}
|
|
165
|
+
}/* DO NOT CHANGE!*/
|
|
166
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
167
|
+
.eds-choice-chip {
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
display: inline-block;
|
|
170
|
+
margin-right: 0.75rem;
|
|
171
|
+
position: relative;
|
|
172
|
+
transition: all 0.1s ease-out;
|
|
173
|
+
}
|
|
174
|
+
.eds-choice-chip__input {
|
|
175
|
+
-moz-appearance: none;
|
|
176
|
+
appearance: none;
|
|
177
|
+
height: 0;
|
|
178
|
+
position: absolute;
|
|
179
|
+
width: 0;
|
|
180
|
+
-webkit-appearance: none;
|
|
181
|
+
}
|
|
182
|
+
.eds-choice-chip__input ~ .eds-chip {
|
|
183
|
+
background-color: transparent;
|
|
184
|
+
}
|
|
185
|
+
.eds-contrast .eds-choice-chip__input ~ .eds-chip {
|
|
186
|
+
border-color: #aeb7e2;
|
|
187
|
+
color: #ffffff;
|
|
188
|
+
}
|
|
189
|
+
.eds-choice-chip__input:checked ~ .eds-chip {
|
|
190
|
+
background-color: #181c56;
|
|
191
|
+
border-color: #181c56;
|
|
192
|
+
color: #ffffff;
|
|
193
|
+
}
|
|
194
|
+
.eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
|
|
195
|
+
border-color: #aeb7e2;
|
|
196
|
+
background-color: #aeb7e2;
|
|
197
|
+
color: #181c56;
|
|
198
|
+
}
|
|
199
|
+
.eds-choice-chip__input:focus ~ .eds-chip {
|
|
200
|
+
outline: none;
|
|
201
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
202
|
+
outline-offset: 0.125rem;
|
|
203
|
+
}
|
|
204
|
+
.eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
|
|
205
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
206
|
+
}
|
|
207
|
+
.eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
208
|
+
border-color: #181c56;
|
|
209
|
+
}
|
|
210
|
+
.eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
211
|
+
border-color: #ffffff;
|
|
212
|
+
}
|
|
213
|
+
.eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
214
|
+
background-color: #3b3e6f;
|
|
215
|
+
border-color: #3b3e6f;
|
|
216
|
+
}
|
|
217
|
+
.eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
218
|
+
background-color: #bac2e6;
|
|
219
|
+
border-color: #bac2e6;
|
|
220
|
+
}
|
|
221
|
+
.eds-choice-chip__input:active ~ .eds-chip {
|
|
222
|
+
background-color: #d1d4e3;
|
|
223
|
+
border-color: #d1d4e3;
|
|
224
|
+
}
|
|
225
|
+
.eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
|
|
226
|
+
background: #33376d;
|
|
227
|
+
}
|
|
228
|
+
.eds-choice-chip .eds-chip--disabled {
|
|
229
|
+
border-style: dashed;
|
|
230
|
+
cursor: not-allowed;
|
|
231
|
+
}
|
|
232
|
+
.eds-contrast .eds-choice-chip .eds-chip--disabled {
|
|
233
|
+
opacity: 1;
|
|
234
|
+
border-color: #8285a8;
|
|
235
|
+
color: #babbcf;
|
|
236
|
+
}/* DO NOT CHANGE!*/
|
|
237
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
238
|
+
.eds-tag-chip {
|
|
239
|
+
cursor: default;
|
|
240
|
+
padding-right: 0.25rem;
|
|
241
|
+
width: -webkit-fit-content;
|
|
242
|
+
width: -moz-fit-content;
|
|
243
|
+
width: fit-content;
|
|
244
|
+
}
|
|
245
|
+
.eds-tag-chip__close-button {
|
|
246
|
+
-webkit-appearance: none;
|
|
247
|
+
-moz-appearance: none;
|
|
248
|
+
appearance: none;
|
|
249
|
+
background: none;
|
|
250
|
+
border: none;
|
|
251
|
+
border-radius: 50%;
|
|
252
|
+
color: #181c56;
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
display: flex;
|
|
255
|
+
font-size: 0.875rem;
|
|
256
|
+
padding: 0.25rem;
|
|
257
|
+
margin-left: 0.25rem;
|
|
258
|
+
transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
|
|
259
|
+
}
|
|
260
|
+
.eds-contrast .eds-tag-chip__close-button {
|
|
261
|
+
color: #ffffff;
|
|
262
|
+
}
|
|
263
|
+
.eds-tag-chip__close-button:hover {
|
|
264
|
+
background: #babbcf;
|
|
265
|
+
}
|
|
266
|
+
.eds-contrast .eds-tag-chip__close-button:hover {
|
|
267
|
+
background: #54568c;
|
|
268
|
+
}
|
|
269
|
+
.eds-tag-chip__close-button:focus {
|
|
270
|
+
outline-offset: 0.125rem;
|
|
271
|
+
outline: none;
|
|
272
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
273
|
+
}
|
|
274
|
+
.eds-contrast .eds-tag-chip__close-button:focus {
|
|
275
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
277
276
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/chip",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/chip.esm.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/form": "^5.
|
|
31
|
-
"@entur/tokens": "^3.
|
|
30
|
+
"@entur/form": "^5.4.1",
|
|
31
|
+
"@entur/tokens": "^3.4.0",
|
|
32
32
|
"@entur/utils": "^0.4.3",
|
|
33
33
|
"classnames": "^2.3.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a3da0071a393c0ec1c6194ffe50f51ee13edd5e6"
|
|
36
36
|
}
|