@entur/alert 0.16.12 → 0.16.14
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/dist/styles.css +106 -106
- package/package.json +8 -8
package/dist/styles.css
CHANGED
|
@@ -1,66 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-toast-container {
|
|
4
|
-
position: fixed;
|
|
5
|
-
z-index: 50;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: flex-end;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
}
|
|
10
|
-
.eds-toast-container--bottom-right {
|
|
11
|
-
bottom: 1.5rem;
|
|
12
|
-
right: 1.5rem;
|
|
13
|
-
left: 1.5rem;
|
|
14
|
-
}
|
|
15
|
-
.eds-toast-container--top-right {
|
|
16
|
-
top: 1.5rem;
|
|
17
|
-
right: 1.5rem;
|
|
18
|
-
left: 1.5rem;
|
|
19
|
-
}
|
|
20
|
-
.eds-toast-container > * + * {
|
|
21
|
-
margin-top: 1rem;
|
|
22
|
-
}
|
|
23
|
-
@media screen and (min-width: 50rem) {
|
|
24
|
-
.eds-toast-container {
|
|
25
|
-
left: auto;
|
|
26
|
-
left: initial;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@keyframes bounceInRight {
|
|
31
|
-
from, 60%, 75%, 90%, to {
|
|
32
|
-
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
33
|
-
}
|
|
34
|
-
from {
|
|
35
|
-
opacity: 0;
|
|
36
|
-
transform: translate3d(3000px, 0, 0) scaleX(3);
|
|
37
|
-
}
|
|
38
|
-
60% {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
transform: translate3d(-25px, 0, 0) scaleX(1);
|
|
41
|
-
}
|
|
42
|
-
75% {
|
|
43
|
-
transform: translate3d(10px, 0, 0) scaleX(0.98);
|
|
44
|
-
}
|
|
45
|
-
90% {
|
|
46
|
-
transform: translate3d(-5px, 0, 0) scaleX(0.995);
|
|
47
|
-
}
|
|
48
|
-
to {
|
|
49
|
-
transform: translate3d(0, 0, 0);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
@keyframes bounceOutRight {
|
|
53
|
-
20% {
|
|
54
|
-
opacity: 1;
|
|
55
|
-
transform: translate3d(-20px, 0, 0) scaleX(0.9);
|
|
56
|
-
}
|
|
57
|
-
to {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
transform: translate3d(2000px, 0, 0) scaleX(2);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/* DO NOT CHANGE!*/
|
|
63
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
64
3
|
.eds-alert-box {
|
|
65
4
|
border: 0.0625rem solid transparent;
|
|
66
5
|
border-radius: 0.25rem;
|
|
@@ -225,6 +164,112 @@
|
|
|
225
164
|
}
|
|
226
165
|
/* DO NOT CHANGE!*/
|
|
227
166
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
167
|
+
.eds-toast-container {
|
|
168
|
+
position: fixed;
|
|
169
|
+
z-index: 50;
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: flex-end;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
}
|
|
174
|
+
.eds-toast-container--bottom-right {
|
|
175
|
+
bottom: 1.5rem;
|
|
176
|
+
right: 1.5rem;
|
|
177
|
+
left: 1.5rem;
|
|
178
|
+
}
|
|
179
|
+
.eds-toast-container--top-right {
|
|
180
|
+
top: 1.5rem;
|
|
181
|
+
right: 1.5rem;
|
|
182
|
+
left: 1.5rem;
|
|
183
|
+
}
|
|
184
|
+
.eds-toast-container > * + * {
|
|
185
|
+
margin-top: 1rem;
|
|
186
|
+
}
|
|
187
|
+
@media screen and (min-width: 50rem) {
|
|
188
|
+
.eds-toast-container {
|
|
189
|
+
left: auto;
|
|
190
|
+
left: initial;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes bounceInRight {
|
|
195
|
+
from, 60%, 75%, 90%, to {
|
|
196
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
197
|
+
}
|
|
198
|
+
from {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
transform: translate3d(3000px, 0, 0) scaleX(3);
|
|
201
|
+
}
|
|
202
|
+
60% {
|
|
203
|
+
opacity: 1;
|
|
204
|
+
transform: translate3d(-25px, 0, 0) scaleX(1);
|
|
205
|
+
}
|
|
206
|
+
75% {
|
|
207
|
+
transform: translate3d(10px, 0, 0) scaleX(0.98);
|
|
208
|
+
}
|
|
209
|
+
90% {
|
|
210
|
+
transform: translate3d(-5px, 0, 0) scaleX(0.995);
|
|
211
|
+
}
|
|
212
|
+
to {
|
|
213
|
+
transform: translate3d(0, 0, 0);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
@keyframes bounceOutRight {
|
|
217
|
+
20% {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
transform: translate3d(-20px, 0, 0) scaleX(0.9);
|
|
220
|
+
}
|
|
221
|
+
to {
|
|
222
|
+
opacity: 0;
|
|
223
|
+
transform: translate3d(2000px, 0, 0) scaleX(2);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
/* DO NOT CHANGE!*/
|
|
227
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
228
|
+
.eds-expandable-alert-box .eds-alert-box__content {
|
|
229
|
+
width: 100%;
|
|
230
|
+
}
|
|
231
|
+
.eds-expandable-alert-box.eds-alert-box--banner .eds-alert-box__icon {
|
|
232
|
+
margin-top: 0.0625rem;
|
|
233
|
+
}
|
|
234
|
+
@media screen and (min-width: 50rem) {
|
|
235
|
+
.eds-expandable-alert-box.eds-alert-box--banner .eds-alert-box__icon {
|
|
236
|
+
margin-top: -0.375rem;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
.eds-expandable-alert-box.eds-alert-box--small .eds-alert-box__icon {
|
|
240
|
+
margin-top: 0.125rem;
|
|
241
|
+
}
|
|
242
|
+
@media screen and (min-width: 50rem) {
|
|
243
|
+
.eds-expandable-alert-box.eds-alert-box--small .eds-alert-box__icon {
|
|
244
|
+
margin-top: 0.125rem;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
.eds-expandable-alert-box__title {
|
|
248
|
+
display: flex;
|
|
249
|
+
justify-content: space-between;
|
|
250
|
+
align-items: baseline;
|
|
251
|
+
}
|
|
252
|
+
.eds-expandable-alert-box__button {
|
|
253
|
+
color: inherit;
|
|
254
|
+
background: none;
|
|
255
|
+
border: none;
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
font-family: inherit;
|
|
258
|
+
font-size: inherit;
|
|
259
|
+
line-height: 1.5rem;
|
|
260
|
+
padding: 0 0.25rem;
|
|
261
|
+
flex-shrink: 0;
|
|
262
|
+
}
|
|
263
|
+
.eds-expandable-alert-box__button:focus {
|
|
264
|
+
outline: 2px solid #181c56;
|
|
265
|
+
outline-offset: 0.125rem;
|
|
266
|
+
}
|
|
267
|
+
.eds-expandable-alert-box__button .eds-icon {
|
|
268
|
+
font-size: 1rem;
|
|
269
|
+
padding-left: 0.25rem;
|
|
270
|
+
}
|
|
271
|
+
/* DO NOT CHANGE!*/
|
|
272
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
228
273
|
.eds-copyable-text,
|
|
229
274
|
.eds-contrast .eds-copyable-text {
|
|
230
275
|
-webkit-appearance: none;
|
|
@@ -326,51 +371,6 @@
|
|
|
326
371
|
}
|
|
327
372
|
/* DO NOT CHANGE!*/
|
|
328
373
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
329
|
-
.eds-expandable-alert-box .eds-alert-box__content {
|
|
330
|
-
width: 100%;
|
|
331
|
-
}
|
|
332
|
-
.eds-expandable-alert-box.eds-alert-box--banner .eds-alert-box__icon {
|
|
333
|
-
margin-top: 0.0625rem;
|
|
334
|
-
}
|
|
335
|
-
@media screen and (min-width: 50rem) {
|
|
336
|
-
.eds-expandable-alert-box.eds-alert-box--banner .eds-alert-box__icon {
|
|
337
|
-
margin-top: -0.375rem;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
.eds-expandable-alert-box.eds-alert-box--small .eds-alert-box__icon {
|
|
341
|
-
margin-top: 0.125rem;
|
|
342
|
-
}
|
|
343
|
-
@media screen and (min-width: 50rem) {
|
|
344
|
-
.eds-expandable-alert-box.eds-alert-box--small .eds-alert-box__icon {
|
|
345
|
-
margin-top: 0.125rem;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
.eds-expandable-alert-box__title {
|
|
349
|
-
display: flex;
|
|
350
|
-
justify-content: space-between;
|
|
351
|
-
align-items: baseline;
|
|
352
|
-
}
|
|
353
|
-
.eds-expandable-alert-box__button {
|
|
354
|
-
color: inherit;
|
|
355
|
-
background: none;
|
|
356
|
-
border: none;
|
|
357
|
-
cursor: pointer;
|
|
358
|
-
font-family: inherit;
|
|
359
|
-
font-size: inherit;
|
|
360
|
-
line-height: 1.5rem;
|
|
361
|
-
padding: 0 0.25rem;
|
|
362
|
-
flex-shrink: 0;
|
|
363
|
-
}
|
|
364
|
-
.eds-expandable-alert-box__button:focus {
|
|
365
|
-
outline: 2px solid #181c56;
|
|
366
|
-
outline-offset: 0.125rem;
|
|
367
|
-
}
|
|
368
|
-
.eds-expandable-alert-box__button .eds-icon {
|
|
369
|
-
font-size: 1rem;
|
|
370
|
-
padding-left: 0.25rem;
|
|
371
|
-
}
|
|
372
|
-
/* DO NOT CHANGE!*/
|
|
373
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
374
374
|
/* DO NOT CHANGE!*/
|
|
375
375
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
376
376
|
/* DO NOT CHANGE!*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/alert",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.14",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/alert.esm.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/button": "^3.2.
|
|
31
|
-
"@entur/expand": "^3.5.
|
|
32
|
-
"@entur/icons": "^7.
|
|
33
|
-
"@entur/tokens": "^3.
|
|
34
|
-
"@entur/tooltip": "^3.0.
|
|
35
|
-
"@entur/typography": "^1.8.
|
|
30
|
+
"@entur/button": "^3.2.30",
|
|
31
|
+
"@entur/expand": "^3.5.19",
|
|
32
|
+
"@entur/icons": "^7.2.0",
|
|
33
|
+
"@entur/tokens": "^3.17.0",
|
|
34
|
+
"@entur/tooltip": "^3.0.2",
|
|
35
|
+
"@entur/typography": "^1.8.43",
|
|
36
36
|
"@entur/utils": "^0.11.1",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"copy-text-to-clipboard": "^2.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "20838cf27b3f76a9ce3259fe808d60132ab0a653"
|
|
41
41
|
}
|