@entur/button 3.2.19 → 3.2.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 +65 -65
  2. package/package.json +4 -4
package/dist/styles.css CHANGED
@@ -1,14 +1,5 @@
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. */
12
3
  a.eds-button {
13
4
  padding: 0.5rem 1rem;
14
5
  }
@@ -218,6 +209,15 @@ a.eds-button--size-large {
218
209
  }
219
210
  /* DO NOT CHANGE!*/
220
211
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
212
+ .eds-button-group .eds-button {
213
+ margin-right: 0.75rem;
214
+ margin-bottom: 0.75rem;
215
+ }
216
+ .eds-button-group .eds-button:only-child {
217
+ margin: 0;
218
+ }
219
+ /* DO NOT CHANGE!*/
220
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
221
221
  .eds-floating-button {
222
222
  align-items: center;
223
223
  -webkit-appearance: none;
@@ -457,6 +457,62 @@ a.eds-button--size-large {
457
457
  }
458
458
  /* DO NOT CHANGE!*/
459
459
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
460
+ .eds-icon-button {
461
+ border: 0.125rem solid transparent;
462
+ border-radius: 0.25rem;
463
+ background: none;
464
+ color: var(--components-button-iconbutton-standard-text);
465
+ cursor: pointer;
466
+ display: flex;
467
+ justify-content: center;
468
+ align-items: center;
469
+ font-size: 1rem;
470
+ padding: 0.5rem;
471
+ }
472
+ .eds-contrast .eds-icon-button {
473
+ color: var(--components-button-iconbutton-contrast-text);
474
+ }
475
+ .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
476
+ background-color: var(--components-button-iconbutton-contrast-icon);
477
+ }
478
+ .eds-icon-button--size-small {
479
+ height: 1.5rem;
480
+ width: 1.5rem;
481
+ padding: 0;
482
+ }
483
+ .eds-icon-button:hover {
484
+ background-color: var(--components-button-iconbutton-standard-hover);
485
+ }
486
+ .eds-contrast .eds-icon-button:hover {
487
+ background-color: var(--components-button-iconbutton-contrast-hover);
488
+ }
489
+ .eds-icon-button:active {
490
+ background: var(--components-button-iconbutton-standard-active);
491
+ color: var(--components-button-iconbutton-standard-text-active);
492
+ }
493
+ .eds-contrast .eds-icon-button:active {
494
+ background: var(--components-button-iconbutton-contrast-active);
495
+ color: var(--components-button-iconbutton-contrast-text-active);
496
+ }
497
+ .eds-icon-button:focus {
498
+ outline: 2px solid #181c56;
499
+ outline-color: var(--basecolors-stroke-focus-standard);
500
+ outline-offset: 0.125rem;
501
+ }
502
+ .eds-contrast .eds-icon-button:focus {
503
+ outline-color: var(--basecolors-stroke-focus-contrast);
504
+ }
505
+ .eds-icon-button--disabled {
506
+ opacity: 0.5;
507
+ pointer-events: none;
508
+ }
509
+ .eds-icon-button--disabled__wrapper {
510
+ cursor: not-allowed;
511
+ width: -moz-fit-content;
512
+ width: fit-content;
513
+ }
514
+ /* DO NOT CHANGE!*/
515
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
460
516
  /* DO NOT CHANGE!*/
461
517
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
462
518
  /* DO NOT CHANGE!*/
@@ -836,59 +892,3 @@ a.eds-button--size-large {
836
892
  :root {
837
893
  --eds-button: 1;
838
894
  }
839
- /* DO NOT CHANGE!*/
840
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
841
- .eds-icon-button {
842
- border: 0.125rem solid transparent;
843
- border-radius: 0.25rem;
844
- background: none;
845
- color: var(--components-button-iconbutton-standard-text);
846
- cursor: pointer;
847
- display: flex;
848
- justify-content: center;
849
- align-items: center;
850
- font-size: 1rem;
851
- padding: 0.5rem;
852
- }
853
- .eds-contrast .eds-icon-button {
854
- color: var(--components-button-iconbutton-contrast-text);
855
- }
856
- .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
857
- background-color: var(--components-button-iconbutton-contrast-icon);
858
- }
859
- .eds-icon-button--size-small {
860
- height: 1.5rem;
861
- width: 1.5rem;
862
- padding: 0;
863
- }
864
- .eds-icon-button:hover {
865
- background-color: var(--components-button-iconbutton-standard-hover);
866
- }
867
- .eds-contrast .eds-icon-button:hover {
868
- background-color: var(--components-button-iconbutton-contrast-hover);
869
- }
870
- .eds-icon-button:active {
871
- background: var(--components-button-iconbutton-standard-active);
872
- color: var(--components-button-iconbutton-standard-text-active);
873
- }
874
- .eds-contrast .eds-icon-button:active {
875
- background: var(--components-button-iconbutton-contrast-active);
876
- color: var(--components-button-iconbutton-contrast-text-active);
877
- }
878
- .eds-icon-button:focus {
879
- outline: 2px solid #181c56;
880
- outline-color: var(--basecolors-stroke-focus-standard);
881
- outline-offset: 0.125rem;
882
- }
883
- .eds-contrast .eds-icon-button:focus {
884
- outline-color: var(--basecolors-stroke-focus-contrast);
885
- }
886
- .eds-icon-button--disabled {
887
- opacity: 0.5;
888
- pointer-events: none;
889
- }
890
- .eds-icon-button--disabled__wrapper {
891
- cursor: not-allowed;
892
- width: -moz-fit-content;
893
- width: fit-content;
894
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "3.2.19",
3
+ "version": "3.2.21",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/button.esm.js",
@@ -27,10 +27,10 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/loader": "^0.4.63",
31
- "@entur/tokens": "^3.13.5",
30
+ "@entur/loader": "^0.4.65",
31
+ "@entur/tokens": "^3.14.0",
32
32
  "@entur/utils": "^0.11.1",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "4a9415af2b2c72292bbb4c6aeeb0f79b7dbdb0bd"
35
+ "gitHead": "5044cdb815a75fc0eff204cedd98e4d1c7d1971e"
36
36
  }