@entur/alert 0.16.14 → 0.16.15-RC.1
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,5 +1,66 @@
|
|
|
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. */
|
|
3
64
|
.eds-alert-box {
|
|
4
65
|
border: 0.0625rem solid transparent;
|
|
5
66
|
border-radius: 0.25rem;
|
|
@@ -164,112 +225,6 @@
|
|
|
164
225
|
}
|
|
165
226
|
/* DO NOT CHANGE!*/
|
|
166
227
|
/* 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. */
|
|
273
228
|
.eds-copyable-text,
|
|
274
229
|
.eds-contrast .eds-copyable-text {
|
|
275
230
|
-webkit-appearance: none;
|
|
@@ -604,3 +559,48 @@
|
|
|
604
559
|
:root {
|
|
605
560
|
--eds-alert: 1;
|
|
606
561
|
}
|
|
562
|
+
/* DO NOT CHANGE!*/
|
|
563
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
564
|
+
.eds-expandable-alert-box .eds-alert-box__content {
|
|
565
|
+
width: 100%;
|
|
566
|
+
}
|
|
567
|
+
.eds-expandable-alert-box.eds-alert-box--banner .eds-alert-box__icon {
|
|
568
|
+
margin-top: 0.0625rem;
|
|
569
|
+
}
|
|
570
|
+
@media screen and (min-width: 50rem) {
|
|
571
|
+
.eds-expandable-alert-box.eds-alert-box--banner .eds-alert-box__icon {
|
|
572
|
+
margin-top: -0.375rem;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
.eds-expandable-alert-box.eds-alert-box--small .eds-alert-box__icon {
|
|
576
|
+
margin-top: 0.125rem;
|
|
577
|
+
}
|
|
578
|
+
@media screen and (min-width: 50rem) {
|
|
579
|
+
.eds-expandable-alert-box.eds-alert-box--small .eds-alert-box__icon {
|
|
580
|
+
margin-top: 0.125rem;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
.eds-expandable-alert-box__title {
|
|
584
|
+
display: flex;
|
|
585
|
+
justify-content: space-between;
|
|
586
|
+
align-items: baseline;
|
|
587
|
+
}
|
|
588
|
+
.eds-expandable-alert-box__button {
|
|
589
|
+
color: inherit;
|
|
590
|
+
background: none;
|
|
591
|
+
border: none;
|
|
592
|
+
cursor: pointer;
|
|
593
|
+
font-family: inherit;
|
|
594
|
+
font-size: inherit;
|
|
595
|
+
line-height: 1.5rem;
|
|
596
|
+
padding: 0 0.25rem;
|
|
597
|
+
flex-shrink: 0;
|
|
598
|
+
}
|
|
599
|
+
.eds-expandable-alert-box__button:focus {
|
|
600
|
+
outline: 2px solid #181c56;
|
|
601
|
+
outline-offset: 0.125rem;
|
|
602
|
+
}
|
|
603
|
+
.eds-expandable-alert-box__button .eds-icon {
|
|
604
|
+
font-size: 1rem;
|
|
605
|
+
padding-left: 0.25rem;
|
|
606
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/alert",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.15-RC.1",
|
|
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.
|
|
30
|
+
"@entur/button": "^3.2.31-RC.1",
|
|
31
|
+
"@entur/expand": "^3.5.20-RC.1",
|
|
32
|
+
"@entur/icons": "^7.3.0-RC.1",
|
|
33
33
|
"@entur/tokens": "^3.17.0",
|
|
34
|
-
"@entur/tooltip": "^
|
|
35
|
-
"@entur/typography": "^1.8.
|
|
36
|
-
"@entur/utils": "^0.11.1",
|
|
34
|
+
"@entur/tooltip": "^4.0.0-RC.1",
|
|
35
|
+
"@entur/typography": "^1.8.44-RC.1",
|
|
36
|
+
"@entur/utils": "^0.11.2-RC.1",
|
|
37
37
|
"classnames": "^2.3.1",
|
|
38
38
|
"copy-text-to-clipboard": "^2.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d7b4d04bcbef5d3861b802b0a6af3f36a91a4118"
|
|
41
41
|
}
|