@entur/button 2.10.11 → 2.10.12
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 +27 -27
- package/package.json +5 -7
package/dist/styles.css
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
--eds-button: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
+
.eds-button-group .eds-button {
|
|
6
|
+
margin-right: 0.75rem;
|
|
7
|
+
margin-bottom: 0.75rem;
|
|
8
|
+
}
|
|
9
|
+
.eds-button-group .eds-button:only-child {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}/* DO NOT CHANGE!*/
|
|
12
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
13
|
a.eds-button {
|
|
6
14
|
padding: 0.5rem 1rem;
|
|
7
15
|
}
|
|
@@ -217,14 +225,6 @@ a.eds-button--size-large {
|
|
|
217
225
|
color: #aeb7e2;
|
|
218
226
|
}/* DO NOT CHANGE!*/
|
|
219
227
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
220
|
-
.eds-button-group .eds-button {
|
|
221
|
-
margin-right: 0.75rem;
|
|
222
|
-
margin-bottom: 0.75rem;
|
|
223
|
-
}
|
|
224
|
-
.eds-button-group .eds-button:only-child {
|
|
225
|
-
margin: 0;
|
|
226
|
-
}/* DO NOT CHANGE!*/
|
|
227
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
228
228
|
.eds-icon-button {
|
|
229
229
|
border: 0.0625rem solid transparent;
|
|
230
230
|
border-radius: 0.25rem;
|
|
@@ -321,7 +321,7 @@ a.eds-button--size-large {
|
|
|
321
321
|
.eds-contrast .eds-floating-button {
|
|
322
322
|
background: #ffffff;
|
|
323
323
|
color: #181c56;
|
|
324
|
-
box-shadow: 0 0.0625rem 0.1875rem
|
|
324
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
325
325
|
}
|
|
326
326
|
.eds-contrast .eds-floating-button:hover {
|
|
327
327
|
background-color: #b6bee5;
|
|
@@ -410,40 +410,40 @@ a.eds-button--size-large {
|
|
|
410
410
|
|
|
411
411
|
.eds-square-button--secondary {
|
|
412
412
|
--icon-background: transparent;
|
|
413
|
-
--border-color:
|
|
413
|
+
--border-color: $colors-brand-lavender;
|
|
414
414
|
}
|
|
415
415
|
.eds-square-button--secondary .eds-square-button__loading-dots .eds-loading-dots__dot {
|
|
416
416
|
background: #181c56;
|
|
417
417
|
}
|
|
418
418
|
.eds-square-button--secondary:hover {
|
|
419
|
-
--icon-background:
|
|
419
|
+
--icon-background: $colors-brand-lavender;
|
|
420
420
|
}
|
|
421
421
|
.eds-square-button--secondary:active {
|
|
422
|
-
--icon-background:
|
|
423
|
-
--border-color:
|
|
422
|
+
--icon-background: shade($colors-brand-lavender, 10%);
|
|
423
|
+
--border-color: shade($colors-brand-lavender, 10%);
|
|
424
424
|
}
|
|
425
425
|
.eds-contrast .eds-square-button--secondary:hover {
|
|
426
|
-
--icon-background: rgba(
|
|
426
|
+
--icon-background: rgba($color: $colors-brand-white, $alpha: 0.2);
|
|
427
427
|
}
|
|
428
428
|
.eds-contrast .eds-square-button--secondary:active {
|
|
429
|
-
--icon-background:
|
|
430
|
-
--icon-color:
|
|
429
|
+
--icon-background: $colors-brand-lavender;
|
|
430
|
+
--icon-color: $colors-brand-blue;
|
|
431
431
|
}
|
|
432
432
|
.eds-contrast .eds-square-button--secondary .eds-square-button__loading-dots .eds-loading-dots__dot {
|
|
433
433
|
background: #ffffff;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
.eds-square-button--success {
|
|
437
|
-
--icon-background:
|
|
437
|
+
--icon-background: $colors-validation-mint-contrast;
|
|
438
438
|
}
|
|
439
439
|
.eds-square-button--success .eds-square-button__loading-dots .eds-loading-dots__dot {
|
|
440
440
|
background: #181c56;
|
|
441
441
|
}
|
|
442
442
|
.eds-square-button--success:hover {
|
|
443
|
-
--icon-background:
|
|
443
|
+
--icon-background: tint($colors-validation-mint-contrast, 10%);
|
|
444
444
|
}
|
|
445
445
|
.eds-square-button--success:active {
|
|
446
|
-
--icon-background:
|
|
446
|
+
--icon-background: shade($colors-validation-mint-contrast, 5%);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
.eds-square-button__label {
|
|
@@ -457,7 +457,7 @@ a.eds-button--size-large {
|
|
|
457
457
|
|
|
458
458
|
.eds-square-button--tertiary {
|
|
459
459
|
--icon-background: transparent;
|
|
460
|
-
--border-color:
|
|
460
|
+
--border-color: $colors-brand-blue;
|
|
461
461
|
font-size: 0.875rem;
|
|
462
462
|
}
|
|
463
463
|
.eds-square-button--tertiary .eds-square-button__label + .eds-square-button__icon,
|
|
@@ -473,24 +473,24 @@ a.eds-button--size-large {
|
|
|
473
473
|
background: #181c56;
|
|
474
474
|
}
|
|
475
475
|
.eds-square-button--tertiary:hover {
|
|
476
|
-
--icon-background:
|
|
476
|
+
--icon-background: $colors-blues-blue70;
|
|
477
477
|
}
|
|
478
478
|
.eds-square-button--tertiary:active {
|
|
479
|
-
--icon-background:
|
|
480
|
-
--icon-color:
|
|
479
|
+
--icon-background: $colors-brand-blue;
|
|
480
|
+
--icon-color: $colors-brand-white;
|
|
481
481
|
}
|
|
482
482
|
.eds-square-button--tertiary:active .eds-square-button__loading-dots .eds-loading-dots__dot {
|
|
483
483
|
background: #ffffff;
|
|
484
484
|
}
|
|
485
485
|
.eds-contrast .eds-square-button--tertiary {
|
|
486
|
-
--border-color:
|
|
486
|
+
--border-color: $colors-brand-white;
|
|
487
487
|
}
|
|
488
488
|
.eds-contrast .eds-square-button--tertiary:hover {
|
|
489
|
-
--icon-background: rgba(
|
|
489
|
+
--icon-background: rgba($color: $colors-brand-white, $alpha: 0.2);
|
|
490
490
|
}
|
|
491
491
|
.eds-contrast .eds-square-button--tertiary:active {
|
|
492
|
-
--icon-background:
|
|
493
|
-
--icon-color:
|
|
492
|
+
--icon-background: $colors-brand-white;
|
|
493
|
+
--icon-color: $colors-brand-blue;
|
|
494
494
|
}
|
|
495
495
|
.eds-contrast .eds-square-button--tertiary:active .eds-square-button__loading-dots .eds-loading-dots__dot {
|
|
496
496
|
background: #181c56;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/button",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.12",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/button.esm.js",
|
|
@@ -27,12 +27,10 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/loader": "^0.4.
|
|
31
|
-
"@entur/
|
|
30
|
+
"@entur/loader": "^0.4.20",
|
|
31
|
+
"@entur/tokens": "^3.6.0",
|
|
32
|
+
"@entur/utils": "^0.5.3",
|
|
32
33
|
"classnames": "^2.3.1"
|
|
33
34
|
},
|
|
34
|
-
"
|
|
35
|
-
"@entur/tokens": "^3.5.0"
|
|
36
|
-
},
|
|
37
|
-
"gitHead": "30b38034aaafba9fb308fb3d8c8bfaab9608d720"
|
|
35
|
+
"gitHead": "be56a9cea51aa1cf026d38174750f2a52e67a463"
|
|
38
36
|
}
|