@entur/button 3.2.37 → 3.3.0-beta.0
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 +72 -72
- package/package.json +4 -4
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
.eds-button-group .eds-button {
|
|
4
|
+
margin-right: 0.75rem;
|
|
5
|
+
margin-bottom: 0.75rem;
|
|
6
|
+
}
|
|
7
|
+
.eds-button-group .eds-button:only-child {
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
/* DO NOT CHANGE!*/
|
|
11
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
12
|
a.eds-button {
|
|
4
13
|
padding: 0.5rem 1rem;
|
|
5
14
|
}
|
|
@@ -45,12 +54,12 @@ a.eds-button--size-large {
|
|
|
45
54
|
border-color: var(--eds-button-border-active);
|
|
46
55
|
color: var(--eds-button-text-active);
|
|
47
56
|
}
|
|
48
|
-
.eds-button:focus {
|
|
57
|
+
.eds-button:focus-visible {
|
|
49
58
|
outline: 2px solid #181c56;
|
|
50
59
|
outline-color: var(--basecolors-stroke-focus-standard);
|
|
51
60
|
outline-offset: 0.125rem;
|
|
52
61
|
}
|
|
53
|
-
.eds-contrast .eds-button:focus {
|
|
62
|
+
.eds-contrast .eds-button:focus-visible {
|
|
54
63
|
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
55
64
|
}
|
|
56
65
|
.eds-button > .eds-button__loading-dots {
|
|
@@ -210,15 +219,6 @@ a.eds-button--size-large {
|
|
|
210
219
|
}
|
|
211
220
|
/* DO NOT CHANGE!*/
|
|
212
221
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
213
|
-
.eds-button-group .eds-button {
|
|
214
|
-
margin-right: 0.75rem;
|
|
215
|
-
margin-bottom: 0.75rem;
|
|
216
|
-
}
|
|
217
|
-
.eds-button-group .eds-button:only-child {
|
|
218
|
-
margin: 0;
|
|
219
|
-
}
|
|
220
|
-
/* DO NOT CHANGE!*/
|
|
221
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
222
222
|
.eds-floating-button {
|
|
223
223
|
align-items: center;
|
|
224
224
|
-webkit-appearance: none;
|
|
@@ -251,12 +251,12 @@ a.eds-button--size-large {
|
|
|
251
251
|
.eds-floating-button:active {
|
|
252
252
|
background-color: var(--components-button-floating-standard-active);
|
|
253
253
|
}
|
|
254
|
-
.eds-floating-button:focus {
|
|
254
|
+
.eds-floating-button:focus-visible {
|
|
255
255
|
outline: 2px solid #181c56;
|
|
256
256
|
outline-color: var(--basecolors-stroke-focus-standard);
|
|
257
257
|
outline-offset: 0.125rem;
|
|
258
258
|
}
|
|
259
|
-
.eds-contrast .eds-floating-button:focus {
|
|
259
|
+
.eds-contrast .eds-floating-button:focus-visible {
|
|
260
260
|
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
261
261
|
}
|
|
262
262
|
.eds-contrast .eds-floating-button {
|
|
@@ -311,15 +311,15 @@ a.eds-button--size-large {
|
|
|
311
311
|
-webkit-text-decoration: none;
|
|
312
312
|
text-decoration: none;
|
|
313
313
|
}
|
|
314
|
-
.eds-square-button:focus {
|
|
314
|
+
.eds-square-button:focus-visible {
|
|
315
315
|
outline: none;
|
|
316
316
|
}
|
|
317
|
-
.eds-square-button:focus .eds-square-button__button {
|
|
317
|
+
.eds-square-button:focus-visible .eds-square-button__button {
|
|
318
318
|
outline: 2px solid #181c56;
|
|
319
319
|
outline-color: var(--basecolors-stroke-focus-standard);
|
|
320
320
|
outline-offset: 0.125rem;
|
|
321
321
|
}
|
|
322
|
-
.eds-contrast .eds-square-button:focus .eds-square-button__button {
|
|
322
|
+
.eds-contrast .eds-square-button:focus-visible .eds-square-button__button {
|
|
323
323
|
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
324
324
|
}
|
|
325
325
|
.eds-square-button[disabled]:not(.eds-square-button--loading) {
|
|
@@ -460,62 +460,6 @@ a.eds-button--size-large {
|
|
|
460
460
|
}
|
|
461
461
|
/* DO NOT CHANGE!*/
|
|
462
462
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
463
|
-
.eds-icon-button {
|
|
464
|
-
border: 0.125rem solid transparent;
|
|
465
|
-
border-radius: 0.25rem;
|
|
466
|
-
background: none;
|
|
467
|
-
color: var(--components-button-iconbutton-standard-text);
|
|
468
|
-
cursor: pointer;
|
|
469
|
-
display: flex;
|
|
470
|
-
justify-content: center;
|
|
471
|
-
align-items: center;
|
|
472
|
-
font-size: 1rem;
|
|
473
|
-
padding: 0.5rem;
|
|
474
|
-
}
|
|
475
|
-
.eds-contrast .eds-icon-button {
|
|
476
|
-
color: var(--components-button-iconbutton-contrast-text);
|
|
477
|
-
}
|
|
478
|
-
.eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
|
|
479
|
-
background-color: var(--components-button-iconbutton-contrast-icon);
|
|
480
|
-
}
|
|
481
|
-
.eds-icon-button--size-small {
|
|
482
|
-
height: 1.5rem;
|
|
483
|
-
width: 1.5rem;
|
|
484
|
-
padding: 0;
|
|
485
|
-
}
|
|
486
|
-
.eds-icon-button:hover {
|
|
487
|
-
background-color: var(--components-button-iconbutton-standard-hover);
|
|
488
|
-
}
|
|
489
|
-
.eds-contrast .eds-icon-button:hover {
|
|
490
|
-
background-color: var(--components-button-iconbutton-contrast-hover);
|
|
491
|
-
}
|
|
492
|
-
.eds-icon-button:active {
|
|
493
|
-
background: var(--components-button-iconbutton-standard-active);
|
|
494
|
-
color: var(--components-button-iconbutton-standard-text-active);
|
|
495
|
-
}
|
|
496
|
-
.eds-contrast .eds-icon-button:active {
|
|
497
|
-
background: var(--components-button-iconbutton-contrast-active);
|
|
498
|
-
color: var(--components-button-iconbutton-contrast-text-active);
|
|
499
|
-
}
|
|
500
|
-
.eds-icon-button:focus {
|
|
501
|
-
outline: 2px solid #181c56;
|
|
502
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
503
|
-
outline-offset: 0.125rem;
|
|
504
|
-
}
|
|
505
|
-
.eds-contrast .eds-icon-button:focus {
|
|
506
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
507
|
-
}
|
|
508
|
-
.eds-icon-button--disabled {
|
|
509
|
-
opacity: 0.5;
|
|
510
|
-
pointer-events: none;
|
|
511
|
-
}
|
|
512
|
-
.eds-icon-button--disabled__wrapper {
|
|
513
|
-
cursor: not-allowed;
|
|
514
|
-
width: -moz-fit-content;
|
|
515
|
-
width: fit-content;
|
|
516
|
-
}
|
|
517
|
-
/* DO NOT CHANGE!*/
|
|
518
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
519
463
|
/* DO NOT CHANGE!*/
|
|
520
464
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
521
465
|
/* DO NOT CHANGE!*/
|
|
@@ -895,3 +839,59 @@ a.eds-button--size-large {
|
|
|
895
839
|
:root {
|
|
896
840
|
--eds-button: 1;
|
|
897
841
|
}
|
|
842
|
+
/* DO NOT CHANGE!*/
|
|
843
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
844
|
+
.eds-icon-button {
|
|
845
|
+
border: 0.125rem solid transparent;
|
|
846
|
+
border-radius: 0.25rem;
|
|
847
|
+
background: none;
|
|
848
|
+
color: var(--components-button-iconbutton-standard-text);
|
|
849
|
+
cursor: pointer;
|
|
850
|
+
display: flex;
|
|
851
|
+
justify-content: center;
|
|
852
|
+
align-items: center;
|
|
853
|
+
font-size: 1rem;
|
|
854
|
+
padding: 0.5rem;
|
|
855
|
+
}
|
|
856
|
+
.eds-contrast .eds-icon-button {
|
|
857
|
+
color: var(--components-button-iconbutton-contrast-text);
|
|
858
|
+
}
|
|
859
|
+
.eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
|
|
860
|
+
background-color: var(--components-button-iconbutton-contrast-icon);
|
|
861
|
+
}
|
|
862
|
+
.eds-icon-button--size-small {
|
|
863
|
+
height: 1.5rem;
|
|
864
|
+
width: 1.5rem;
|
|
865
|
+
padding: 0;
|
|
866
|
+
}
|
|
867
|
+
.eds-icon-button:hover {
|
|
868
|
+
background-color: var(--components-button-iconbutton-standard-hover);
|
|
869
|
+
}
|
|
870
|
+
.eds-contrast .eds-icon-button:hover {
|
|
871
|
+
background-color: var(--components-button-iconbutton-contrast-hover);
|
|
872
|
+
}
|
|
873
|
+
.eds-icon-button:active {
|
|
874
|
+
background: var(--components-button-iconbutton-standard-active);
|
|
875
|
+
color: var(--components-button-iconbutton-standard-text-active);
|
|
876
|
+
}
|
|
877
|
+
.eds-contrast .eds-icon-button:active {
|
|
878
|
+
background: var(--components-button-iconbutton-contrast-active);
|
|
879
|
+
color: var(--components-button-iconbutton-contrast-text-active);
|
|
880
|
+
}
|
|
881
|
+
.eds-icon-button:focus-visible {
|
|
882
|
+
outline: 2px solid #181c56;
|
|
883
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
884
|
+
outline-offset: 0.125rem;
|
|
885
|
+
}
|
|
886
|
+
.eds-contrast .eds-icon-button:focus-visible {
|
|
887
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
888
|
+
}
|
|
889
|
+
.eds-icon-button--disabled {
|
|
890
|
+
opacity: 0.5;
|
|
891
|
+
pointer-events: none;
|
|
892
|
+
}
|
|
893
|
+
.eds-icon-button--disabled__wrapper {
|
|
894
|
+
cursor: not-allowed;
|
|
895
|
+
width: -moz-fit-content;
|
|
896
|
+
width: fit-content;
|
|
897
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/button",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-beta.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/button.esm.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/loader": "^0.5.
|
|
31
|
-
"@entur/tokens": "^3.17.
|
|
30
|
+
"@entur/loader": "^0.5.17-beta.0",
|
|
31
|
+
"@entur/tokens": "^3.17.5",
|
|
32
32
|
"@entur/utils": "^0.12.2",
|
|
33
33
|
"classnames": "^2.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"dts-cli": "2.0.5"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6ee621529704e08c9814cda206da98c37a9f0689"
|
|
39
39
|
}
|