@entur/chip 0.6.23 → 0.6.25
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/README.md +2 -2
- package/dist/styles.css +134 -134
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains the different chip components.
|
|
4
4
|
|
|
5
|
-
> 💡 Looking for the [documentation](https://design.entur.
|
|
5
|
+
> 💡 Looking for the [documentation](https://design.entur.no/komponenter/skjemaelementer/chips)?
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ yarn add @entur/chip
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
Please refer to the [documentation](https://design.entur.
|
|
17
|
+
Please refer to the [documentation](https://design.entur.no/komponenter/skjemaelementer/chips) for usage information.
|
package/dist/styles.css
CHANGED
|
@@ -3,108 +3,6 @@
|
|
|
3
3
|
}
|
|
4
4
|
/* DO NOT CHANGE!*/
|
|
5
5
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
|
-
.eds-chip {
|
|
7
|
-
background: #ebebf1;
|
|
8
|
-
border: 0.0625rem solid #d1d4e3;
|
|
9
|
-
border-radius: 1rem;
|
|
10
|
-
color: inherit;
|
|
11
|
-
font-family: inherit;
|
|
12
|
-
font-size: 0.875rem;
|
|
13
|
-
height: 2rem;
|
|
14
|
-
min-width: 3rem;
|
|
15
|
-
padding: 0 0.75rem;
|
|
16
|
-
transition: background 0.1s ease-out, border 0.1s ease-out;
|
|
17
|
-
display: flex;
|
|
18
|
-
justify-content: center;
|
|
19
|
-
align-items: center;
|
|
20
|
-
}
|
|
21
|
-
.eds-chip svg {
|
|
22
|
-
font-size: 0.875rem;
|
|
23
|
-
}
|
|
24
|
-
.eds-contrast .eds-chip {
|
|
25
|
-
background-color: #393d79;
|
|
26
|
-
border-color: transparent;
|
|
27
|
-
}
|
|
28
|
-
.eds-chip--leading-icon .eds-icon {
|
|
29
|
-
margin-right: 0.5rem;
|
|
30
|
-
}
|
|
31
|
-
.eds-chip--trailing-icon .eds-icon {
|
|
32
|
-
margin-left: 0.5rem;
|
|
33
|
-
}
|
|
34
|
-
/* DO NOT CHANGE!*/
|
|
35
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
36
|
-
.eds-choice-chip {
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
display: inline-block;
|
|
39
|
-
margin-right: 0.75rem;
|
|
40
|
-
position: relative;
|
|
41
|
-
transition: all 0.1s ease-out;
|
|
42
|
-
}
|
|
43
|
-
.eds-choice-chip__input {
|
|
44
|
-
-moz-appearance: none;
|
|
45
|
-
appearance: none;
|
|
46
|
-
height: 0;
|
|
47
|
-
position: absolute;
|
|
48
|
-
width: 0;
|
|
49
|
-
-webkit-appearance: none;
|
|
50
|
-
}
|
|
51
|
-
.eds-choice-chip__input ~ .eds-chip {
|
|
52
|
-
background-color: transparent;
|
|
53
|
-
}
|
|
54
|
-
.eds-contrast .eds-choice-chip__input ~ .eds-chip {
|
|
55
|
-
border-color: #aeb7e2;
|
|
56
|
-
color: #ffffff;
|
|
57
|
-
}
|
|
58
|
-
.eds-choice-chip__input:checked ~ .eds-chip {
|
|
59
|
-
background-color: #181c56;
|
|
60
|
-
border-color: #181c56;
|
|
61
|
-
color: #ffffff;
|
|
62
|
-
}
|
|
63
|
-
.eds-contrast .eds-choice-chip__input:checked ~ .eds-chip {
|
|
64
|
-
border-color: #aeb7e2;
|
|
65
|
-
background-color: #aeb7e2;
|
|
66
|
-
color: #181c56;
|
|
67
|
-
}
|
|
68
|
-
.eds-choice-chip__input:focus ~ .eds-chip {
|
|
69
|
-
outline: none;
|
|
70
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
71
|
-
outline-offset: 0.125rem;
|
|
72
|
-
}
|
|
73
|
-
.eds-contrast .eds-choice-chip__input:focus ~ .eds-chip {
|
|
74
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
75
|
-
}
|
|
76
|
-
.eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
77
|
-
border-color: #181c56;
|
|
78
|
-
}
|
|
79
|
-
.eds-contrast .eds-choice-chip__input:not(:checked):not(:disabled):hover ~ .eds-chip {
|
|
80
|
-
border-color: #ffffff;
|
|
81
|
-
}
|
|
82
|
-
.eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
83
|
-
background-color: #3b3e6f;
|
|
84
|
-
border-color: #3b3e6f;
|
|
85
|
-
}
|
|
86
|
-
.eds-contrast .eds-choice-chip__input:checked:hover ~ .eds-chip {
|
|
87
|
-
background-color: #bac2e6;
|
|
88
|
-
border-color: #bac2e6;
|
|
89
|
-
}
|
|
90
|
-
.eds-choice-chip__input:active ~ .eds-chip {
|
|
91
|
-
background-color: #d1d4e3;
|
|
92
|
-
border-color: #d1d4e3;
|
|
93
|
-
}
|
|
94
|
-
.eds-contrast .eds-choice-chip__input:active ~ .eds-chip {
|
|
95
|
-
background: #33376d;
|
|
96
|
-
}
|
|
97
|
-
.eds-choice-chip .eds-chip--disabled {
|
|
98
|
-
border-style: dashed;
|
|
99
|
-
cursor: not-allowed;
|
|
100
|
-
}
|
|
101
|
-
.eds-contrast .eds-choice-chip .eds-chip--disabled {
|
|
102
|
-
opacity: 1;
|
|
103
|
-
border-color: #8285a8;
|
|
104
|
-
color: #babbcf;
|
|
105
|
-
}
|
|
106
|
-
/* DO NOT CHANGE!*/
|
|
107
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
108
6
|
.eds-action-chip {
|
|
109
7
|
cursor: pointer;
|
|
110
8
|
}
|
|
@@ -144,43 +42,33 @@
|
|
|
144
42
|
}
|
|
145
43
|
/* DO NOT CHANGE!*/
|
|
146
44
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
147
|
-
.eds-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
.eds-tag-chip__close-button {
|
|
154
|
-
-webkit-appearance: none;
|
|
155
|
-
-moz-appearance: none;
|
|
156
|
-
appearance: none;
|
|
157
|
-
background: none;
|
|
158
|
-
border: none;
|
|
159
|
-
border-radius: 50%;
|
|
160
|
-
color: #181c56;
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
display: flex;
|
|
45
|
+
.eds-chip {
|
|
46
|
+
background: #ebebf1;
|
|
47
|
+
border: 0.0625rem solid #d1d4e3;
|
|
48
|
+
border-radius: 1rem;
|
|
49
|
+
color: inherit;
|
|
50
|
+
font-family: inherit;
|
|
163
51
|
font-size: 0.875rem;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
52
|
+
height: 2rem;
|
|
53
|
+
min-width: 3rem;
|
|
54
|
+
padding: 0 0.75rem;
|
|
55
|
+
transition: background 0.1s ease-out, border 0.1s ease-out;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
170
59
|
}
|
|
171
|
-
.eds-
|
|
172
|
-
|
|
60
|
+
.eds-chip svg {
|
|
61
|
+
font-size: 0.875rem;
|
|
173
62
|
}
|
|
174
|
-
.eds-contrast .eds-
|
|
175
|
-
background: #
|
|
63
|
+
.eds-contrast .eds-chip {
|
|
64
|
+
background-color: #393d79;
|
|
65
|
+
border-color: transparent;
|
|
176
66
|
}
|
|
177
|
-
.eds-
|
|
178
|
-
|
|
179
|
-
outline: none;
|
|
180
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
67
|
+
.eds-chip--leading-icon .eds-icon {
|
|
68
|
+
margin-right: 0.5rem;
|
|
181
69
|
}
|
|
182
|
-
.eds-
|
|
183
|
-
|
|
70
|
+
.eds-chip--trailing-icon .eds-icon {
|
|
71
|
+
margin-left: 0.5rem;
|
|
184
72
|
}
|
|
185
73
|
/* DO NOT CHANGE!*/
|
|
186
74
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -268,3 +156,115 @@
|
|
|
268
156
|
stroke-dashoffset: 0;
|
|
269
157
|
}
|
|
270
158
|
}
|
|
159
|
+
/* DO NOT CHANGE!*/
|
|
160
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
161
|
+
.eds-tag-chip {
|
|
162
|
+
cursor: default;
|
|
163
|
+
padding-right: 0.25rem;
|
|
164
|
+
width: -moz-fit-content;
|
|
165
|
+
width: fit-content;
|
|
166
|
+
}
|
|
167
|
+
.eds-tag-chip__close-button {
|
|
168
|
+
-webkit-appearance: none;
|
|
169
|
+
-moz-appearance: none;
|
|
170
|
+
appearance: none;
|
|
171
|
+
background: none;
|
|
172
|
+
border: none;
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
color: #181c56;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
display: flex;
|
|
177
|
+
font-size: 0.875rem;
|
|
178
|
+
padding: 0.25rem;
|
|
179
|
+
margin-left: 0.25rem;
|
|
180
|
+
transition: box-shadow 0.1s ease-in-out, background 0.1s ease-in-out;
|
|
181
|
+
}
|
|
182
|
+
.eds-contrast .eds-tag-chip__close-button {
|
|
183
|
+
color: #ffffff;
|
|
184
|
+
}
|
|
185
|
+
.eds-tag-chip__close-button:hover {
|
|
186
|
+
background: #babbcf;
|
|
187
|
+
}
|
|
188
|
+
.eds-contrast .eds-tag-chip__close-button:hover {
|
|
189
|
+
background: #54568c;
|
|
190
|
+
}
|
|
191
|
+
.eds-tag-chip__close-button:focus {
|
|
192
|
+
outline-offset: 0.125rem;
|
|
193
|
+
outline: none;
|
|
194
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
195
|
+
}
|
|
196
|
+
.eds-contrast .eds-tag-chip__close-button:focus {
|
|
197
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
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.25",
|
|
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.
|
|
33
|
-
"@entur/tokens": "^3.8.
|
|
30
|
+
"@entur/form": "^6.0.1",
|
|
31
|
+
"@entur/icons": "^6.0.1",
|
|
32
|
+
"@entur/loader": "^0.4.24",
|
|
33
|
+
"@entur/tokens": "^3.8.1",
|
|
34
34
|
"@entur/utils": "^0.5.5",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1e78a655ffc4c4ca80d8e54495768282dc374201"
|
|
38
38
|
}
|