@entur/chip 0.6.24 → 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 +62 -62
- 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,36 +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
6
|
.eds-action-chip {
|
|
37
7
|
cursor: pointer;
|
|
38
8
|
}
|
|
@@ -72,43 +42,33 @@
|
|
|
72
42
|
}
|
|
73
43
|
/* DO NOT CHANGE!*/
|
|
74
44
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
75
|
-
.eds-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.eds-tag-chip__close-button {
|
|
82
|
-
-webkit-appearance: none;
|
|
83
|
-
-moz-appearance: none;
|
|
84
|
-
appearance: none;
|
|
85
|
-
background: none;
|
|
86
|
-
border: none;
|
|
87
|
-
border-radius: 50%;
|
|
88
|
-
color: #181c56;
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
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;
|
|
91
51
|
font-size: 0.875rem;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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;
|
|
98
59
|
}
|
|
99
|
-
.eds-
|
|
100
|
-
|
|
60
|
+
.eds-chip svg {
|
|
61
|
+
font-size: 0.875rem;
|
|
101
62
|
}
|
|
102
|
-
.eds-contrast .eds-
|
|
103
|
-
background: #
|
|
63
|
+
.eds-contrast .eds-chip {
|
|
64
|
+
background-color: #393d79;
|
|
65
|
+
border-color: transparent;
|
|
104
66
|
}
|
|
105
|
-
.eds-
|
|
106
|
-
|
|
107
|
-
outline: none;
|
|
108
|
-
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;
|
|
109
69
|
}
|
|
110
|
-
.eds-
|
|
111
|
-
|
|
70
|
+
.eds-chip--trailing-icon .eds-icon {
|
|
71
|
+
margin-left: 0.5rem;
|
|
112
72
|
}
|
|
113
73
|
/* DO NOT CHANGE!*/
|
|
114
74
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -198,6 +158,46 @@
|
|
|
198
158
|
}
|
|
199
159
|
/* DO NOT CHANGE!*/
|
|
200
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
201
|
.eds-choice-chip {
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
display: inline-block;
|
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": "^6.0.
|
|
31
|
-
"@entur/icons": "^6.0.
|
|
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
|
}
|