@entur/button 3.3.1-beta.0 → 3.3.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.
Files changed (2) hide show
  1. package/dist/styles.css +56 -56
  2. package/package.json +4 -4
package/dist/styles.css CHANGED
@@ -460,6 +460,62 @@ 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-visible {
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-visible {
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. */
463
519
  /* DO NOT CHANGE!*/
464
520
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
465
521
  /* DO NOT CHANGE!*/
@@ -839,59 +895,3 @@ a.eds-button--size-large {
839
895
  :root {
840
896
  --eds-button: 1;
841
897
  }
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.1-beta.0",
3
+ "version": "3.3.1",
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.18-beta.0",
31
- "@entur/tokens": "^3.17.5",
30
+ "@entur/loader": "^0.5.18",
31
+ "@entur/tokens": "^3.17.6",
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": "e65150a6a9f9e2beb4a8bbecc06b9237119fe55e"
38
+ "gitHead": "d7798b768ab73d677162cebcf3edd58680dc626f"
39
39
  }