@entur/chip 0.6.9 → 0.6.10
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 +4 -0
- package/dist/styles.css +133 -133
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.10](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.9...@entur/chip@0.6.10) (2022-10-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @entur/chip
|
|
9
|
+
|
|
6
10
|
## [0.6.9](https://bitbucket.org/enturas/design-system/compare/@entur/chip@0.6.8...@entur/chip@0.6.9) (2022-10-20)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @entur/chip
|
package/dist/styles.css
CHANGED
|
@@ -2,106 +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-chip {
|
|
6
|
-
background: #ebebf1;
|
|
7
|
-
border: 0.0625rem solid #d1d4e3;
|
|
8
|
-
border-radius: 1rem;
|
|
9
|
-
color: inherit;
|
|
10
|
-
font-family: inherit;
|
|
11
|
-
font-size: 0.875rem;
|
|
12
|
-
height: 2rem;
|
|
13
|
-
min-width: 3rem;
|
|
14
|
-
padding: 0 0.75rem;
|
|
15
|
-
transition: background 0.1s ease-out, border 0.1s ease-out;
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
}
|
|
20
|
-
.eds-chip svg {
|
|
21
|
-
font-size: 0.875rem;
|
|
22
|
-
}
|
|
23
|
-
.eds-contrast .eds-chip {
|
|
24
|
-
background-color: #393d79;
|
|
25
|
-
border-color: transparent;
|
|
26
|
-
}
|
|
27
|
-
.eds-chip--leading-icon .eds-icon {
|
|
28
|
-
margin-right: 0.5rem;
|
|
29
|
-
}
|
|
30
|
-
.eds-chip--trailing-icon .eds-icon {
|
|
31
|
-
margin-left: 0.5rem;
|
|
32
|
-
}/* DO NOT CHANGE!*/
|
|
33
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
34
|
-
.eds-choice-chip {
|
|
35
|
-
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
|
-
}
|
|
56
|
-
.eds-choice-chip__input:checked ~ .eds-chip {
|
|
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 {
|
|
67
|
-
outline: none;
|
|
68
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
69
|
-
outline-offset: 0.125rem;
|
|
70
|
-
}
|
|
71
|
-
.eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
|
|
72
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
73
|
-
}
|
|
74
|
-
.eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
75
|
-
border-color: #181c56;
|
|
76
|
-
}
|
|
77
|
-
.eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
78
|
-
border-color: #ffffff;
|
|
79
|
-
}
|
|
80
|
-
.eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
81
|
-
background-color: #3b3e6f;
|
|
82
|
-
border-color: #3b3e6f;
|
|
83
|
-
}
|
|
84
|
-
.eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
85
|
-
background-color: #bac2e6;
|
|
86
|
-
border-color: #bac2e6;
|
|
87
|
-
}
|
|
88
|
-
.eds-choice-chip__input:active ~ .eds-chip {
|
|
89
|
-
background-color: #d1d4e3;
|
|
90
|
-
border-color: #d1d4e3;
|
|
91
|
-
}
|
|
92
|
-
.eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
|
|
93
|
-
background: #33376d;
|
|
94
|
-
}
|
|
95
|
-
.eds-choice-chip .eds-chip--disabled {
|
|
96
|
-
border-style: dashed;
|
|
97
|
-
cursor: not-allowed;
|
|
98
|
-
}
|
|
99
|
-
.eds-contrast .eds-choice-chip .eds-chip--disabled {
|
|
100
|
-
opacity: 1;
|
|
101
|
-
border-color: #8285a8;
|
|
102
|
-
color: #babbcf;
|
|
103
|
-
}/* DO NOT CHANGE!*/
|
|
104
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
105
5
|
.eds-action-chip {
|
|
106
6
|
cursor: pointer;
|
|
107
7
|
}
|
|
@@ -141,44 +41,33 @@
|
|
|
141
41
|
background-color: #ffffff;
|
|
142
42
|
}/* DO NOT CHANGE!*/
|
|
143
43
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
144
|
-
.eds-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
.eds-tag-chip__close-button {
|
|
152
|
-
-webkit-appearance: none;
|
|
153
|
-
-moz-appearance: none;
|
|
154
|
-
appearance: none;
|
|
155
|
-
background: none;
|
|
156
|
-
border: none;
|
|
157
|
-
border-radius: 50%;
|
|
158
|
-
color: #181c56;
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
display: flex;
|
|
44
|
+
.eds-chip {
|
|
45
|
+
background: #ebebf1;
|
|
46
|
+
border: 0.0625rem solid #d1d4e3;
|
|
47
|
+
border-radius: 1rem;
|
|
48
|
+
color: inherit;
|
|
49
|
+
font-family: inherit;
|
|
161
50
|
font-size: 0.875rem;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
51
|
+
height: 2rem;
|
|
52
|
+
min-width: 3rem;
|
|
53
|
+
padding: 0 0.75rem;
|
|
54
|
+
transition: background 0.1s ease-out, border 0.1s ease-out;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
168
58
|
}
|
|
169
|
-
.eds-
|
|
170
|
-
|
|
59
|
+
.eds-chip svg {
|
|
60
|
+
font-size: 0.875rem;
|
|
171
61
|
}
|
|
172
|
-
.eds-contrast .eds-
|
|
173
|
-
background: #
|
|
62
|
+
.eds-contrast .eds-chip {
|
|
63
|
+
background-color: #393d79;
|
|
64
|
+
border-color: transparent;
|
|
174
65
|
}
|
|
175
|
-
.eds-
|
|
176
|
-
|
|
177
|
-
outline: none;
|
|
178
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
66
|
+
.eds-chip--leading-icon .eds-icon {
|
|
67
|
+
margin-right: 0.5rem;
|
|
179
68
|
}
|
|
180
|
-
.eds-
|
|
181
|
-
|
|
69
|
+
.eds-chip--trailing-icon .eds-icon {
|
|
70
|
+
margin-left: 0.5rem;
|
|
182
71
|
}/* DO NOT CHANGE!*/
|
|
183
72
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
184
73
|
.eds-filter-chip {
|
|
@@ -273,4 +162,115 @@
|
|
|
273
162
|
100% {
|
|
274
163
|
stroke-dashoffset: 0;
|
|
275
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;
|
|
276
276
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/chip",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
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.4.
|
|
30
|
+
"@entur/form": "^5.4.7",
|
|
31
31
|
"@entur/tokens": "^3.4.1",
|
|
32
32
|
"@entur/utils": "^0.4.5",
|
|
33
33
|
"classnames": "^2.3.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "77a4311927a9215106a9aae13c6e92e5f0f7f614"
|
|
36
36
|
}
|