@entur/chip 0.6.19 → 0.6.21

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.
Files changed (2) hide show
  1. package/dist/styles.css +123 -123
  2. package/package.json +7 -7
package/dist/styles.css CHANGED
@@ -2,44 +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-action-chip {
6
- cursor: pointer;
7
- }
8
- .eds-action-chip:focus {
9
- outline: none;
10
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
11
- outline-offset: 0.125rem;
12
- }
13
- .eds-contrast .eds-action-chip:focus {
14
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
15
- }
16
- .eds-action-chip:hover {
17
- border-color: #181c56;
18
- }
19
- .eds-contrast .eds-action-chip:hover {
20
- background-color: #54568c;
21
- border-color: #54568c;
22
- }
23
- .eds-action-chip:active {
24
- background: #d1d4e3;
25
- }
26
- .eds-contrast .eds-action-chip:active {
27
- background-color: #292b6a;
28
- border-color: #292b6a;
29
- }
30
- .eds-action-chip--disabled {
31
- opacity: 0.5;
32
- pointer-events: none;
33
- }
34
- .eds-action-chip--disabled__wrapper {
35
- cursor: not-allowed;
36
- width: -moz-fit-content;
37
- width: fit-content;
38
- }
39
- .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
40
- background-color: #ffffff;
41
- }/* DO NOT CHANGE!*/
42
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
43
5
  .eds-chip {
44
6
  background: #ebebf1;
45
7
  border: 0.0625rem solid #d1d4e3;
@@ -69,91 +31,6 @@
69
31
  margin-left: 0.5rem;
70
32
  }/* DO NOT CHANGE!*/
71
33
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
72
- .eds-filter-chip {
73
- cursor: pointer;
74
- -webkit-user-select: none;
75
- -moz-user-select: none;
76
- user-select: none;
77
- padding-left: 0.25rem;
78
- width: -moz-fit-content;
79
- width: fit-content;
80
- }
81
- .eds-filter-chip__input {
82
- position: absolute;
83
- opacity: 0;
84
- height: 0;
85
- width: 0;
86
- }
87
- .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon {
88
- visibility: visible;
89
- }
90
- .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
91
- stroke: #181c56;
92
- animation: stroke ease-in-out 0.2s 0.1s forwards;
93
- }
94
- .eds-contrast .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
95
- stroke: #5ac39a;
96
- }
97
- .eds-filter-chip[focus-within] {
98
- outline: none;
99
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
100
- outline-offset: 0.125rem;
101
- }
102
- .eds-filter-chip:focus-within {
103
- outline: none;
104
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
105
- outline-offset: 0.125rem;
106
- }
107
- .eds-contrast .eds-filter-chip[focus-within] {
108
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
109
- }
110
- .eds-contrast .eds-filter-chip:focus-within {
111
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
112
- }
113
- .eds-filter-chip:hover {
114
- border-color: #181c56;
115
- }
116
- .eds-contrast .eds-filter-chip:hover {
117
- background-color: #54568c;
118
- border-color: #54568c;
119
- }
120
- .eds-filter-chip__icon {
121
- display: inline-flex;
122
- justify-content: center;
123
- align-items: center;
124
- position: relative;
125
- margin-right: 0.5rem;
126
- height: 1.5rem;
127
- width: 1.5rem;
128
- border: 0.125rem solid transparent;
129
- border-radius: 50%;
130
- background-color: #ffffff;
131
- color: #ffffff;
132
- }
133
- .eds-contrast .eds-filter-chip__icon {
134
- background-color: #181c56;
135
- }
136
- .eds-filter-chip__icon .eds-filter-chip-icon {
137
- height: 1rem;
138
- width: 1rem;
139
- visibility: hidden;
140
- }
141
- .eds-contrast .eds-filter-chip__icon .eds-filter-chip-icon {
142
- color: #ffffff;
143
- }
144
- .eds-filter-chip__icon .eds-filter-chip-icon__path {
145
- transform-origin: 50% 50%;
146
- stroke-dasharray: 48;
147
- stroke-dashoffset: 48;
148
- stroke-width: 0.375rem;
149
- }
150
-
151
- @keyframes stroke {
152
- 100% {
153
- stroke-dashoffset: 0;
154
- }
155
- }/* DO NOT CHANGE!*/
156
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
157
34
  .eds-choice-chip {
158
35
  cursor: pointer;
159
36
  display: inline-block;
@@ -225,6 +102,44 @@
225
102
  color: #babbcf;
226
103
  }/* DO NOT CHANGE!*/
227
104
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
105
+ .eds-action-chip {
106
+ cursor: pointer;
107
+ }
108
+ .eds-action-chip:focus {
109
+ outline: none;
110
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
111
+ outline-offset: 0.125rem;
112
+ }
113
+ .eds-contrast .eds-action-chip:focus {
114
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
115
+ }
116
+ .eds-action-chip:hover {
117
+ border-color: #181c56;
118
+ }
119
+ .eds-contrast .eds-action-chip:hover {
120
+ background-color: #54568c;
121
+ border-color: #54568c;
122
+ }
123
+ .eds-action-chip:active {
124
+ background: #d1d4e3;
125
+ }
126
+ .eds-contrast .eds-action-chip:active {
127
+ background-color: #292b6a;
128
+ border-color: #292b6a;
129
+ }
130
+ .eds-action-chip--disabled {
131
+ opacity: 0.5;
132
+ pointer-events: none;
133
+ }
134
+ .eds-action-chip--disabled__wrapper {
135
+ cursor: not-allowed;
136
+ width: -moz-fit-content;
137
+ width: fit-content;
138
+ }
139
+ .eds-contrast .eds-action-chip__loading-dots .eds-loading-dots__dot {
140
+ background-color: #ffffff;
141
+ }/* DO NOT CHANGE!*/
142
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
228
143
  .eds-tag-chip {
229
144
  cursor: default;
230
145
  padding-right: 0.25rem;
@@ -262,4 +177,89 @@
262
177
  }
263
178
  .eds-contrast .eds-tag-chip__close-button:focus {
264
179
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
180
+ }/* DO NOT CHANGE!*/
181
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
182
+ .eds-filter-chip {
183
+ cursor: pointer;
184
+ -webkit-user-select: none;
185
+ -moz-user-select: none;
186
+ user-select: none;
187
+ padding-left: 0.25rem;
188
+ width: -moz-fit-content;
189
+ width: fit-content;
190
+ }
191
+ .eds-filter-chip__input {
192
+ position: absolute;
193
+ opacity: 0;
194
+ height: 0;
195
+ width: 0;
196
+ }
197
+ .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon {
198
+ visibility: visible;
199
+ }
200
+ .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
201
+ stroke: #181c56;
202
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
203
+ }
204
+ .eds-contrast .eds-filter-chip__input:checked + .eds-filter-chip__icon .eds-filter-chip-icon__path {
205
+ stroke: #5ac39a;
206
+ }
207
+ .eds-filter-chip[focus-within] {
208
+ outline: none;
209
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
210
+ outline-offset: 0.125rem;
211
+ }
212
+ .eds-filter-chip:focus-within {
213
+ outline: none;
214
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
215
+ outline-offset: 0.125rem;
216
+ }
217
+ .eds-contrast .eds-filter-chip[focus-within] {
218
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
219
+ }
220
+ .eds-contrast .eds-filter-chip:focus-within {
221
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
222
+ }
223
+ .eds-filter-chip:hover {
224
+ border-color: #181c56;
225
+ }
226
+ .eds-contrast .eds-filter-chip:hover {
227
+ background-color: #54568c;
228
+ border-color: #54568c;
229
+ }
230
+ .eds-filter-chip__icon {
231
+ display: inline-flex;
232
+ justify-content: center;
233
+ align-items: center;
234
+ position: relative;
235
+ margin-right: 0.5rem;
236
+ height: 1.5rem;
237
+ width: 1.5rem;
238
+ border: 0.125rem solid transparent;
239
+ border-radius: 50%;
240
+ background-color: #ffffff;
241
+ color: #ffffff;
242
+ }
243
+ .eds-contrast .eds-filter-chip__icon {
244
+ background-color: #181c56;
245
+ }
246
+ .eds-filter-chip__icon .eds-filter-chip-icon {
247
+ height: 1rem;
248
+ width: 1rem;
249
+ visibility: hidden;
250
+ }
251
+ .eds-contrast .eds-filter-chip__icon .eds-filter-chip-icon {
252
+ color: #ffffff;
253
+ }
254
+ .eds-filter-chip__icon .eds-filter-chip-icon__path {
255
+ transform-origin: 50% 50%;
256
+ stroke-dasharray: 48;
257
+ stroke-dashoffset: 48;
258
+ stroke-width: 0.375rem;
259
+ }
260
+
261
+ @keyframes stroke {
262
+ 100% {
263
+ stroke-dashoffset: 0;
264
+ }
265
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/chip",
3
- "version": "0.6.19",
3
+ "version": "0.6.21",
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": "^5.4.16",
31
- "@entur/icons": "^5.5.0",
32
- "@entur/loader": "^0.4.19",
33
- "@entur/tokens": "^3.5.0",
34
- "@entur/utils": "^0.5.2",
30
+ "@entur/form": "^5.4.18",
31
+ "@entur/icons": "^5.8.0",
32
+ "@entur/loader": "^0.4.22",
33
+ "@entur/tokens": "^3.8.0",
34
+ "@entur/utils": "^0.5.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "30b38034aaafba9fb308fb3d8c8bfaab9608d720"
37
+ "gitHead": "bc067536ed769de8072f19002ef4877a1e974443"
38
38
  }