@entur/tooltip 5.2.2-beta.0 → 5.2.2

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 +221 -222
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -2,132 +2,24 @@
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
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
-
10
- .eds-button-group .eds-button:only-child {
11
- margin: 0;
12
- }
13
-
14
- /* DO NOT CHANGE!*/
15
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
16
- .eds-floating-button {
17
- align-items: center;
18
- -webkit-appearance: none;
19
- -moz-appearance: none;
20
- appearance: none;
21
- background: #181c56;
22
- background: var(--components-button-floating-standard-default);
23
- border: 0;
24
- border-radius: 1.5rem;
25
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
26
- color: #ffffff;
27
- color: var(--components-button-floating-standard-text);
28
- cursor: pointer;
5
+ a.eds-button {
29
6
  display: flex;
30
- font-family: inherit;
31
- font-size: 0.875rem;
32
- font-weight: 500;
7
+ align-items: center;
33
8
  justify-content: center;
34
- min-height: 3rem;
35
- margin: 0;
36
- min-width: 3rem;
37
- padding: 0 1rem;
38
- position: relative;
39
- z-index: 10;
40
- }
41
-
42
- .eds-floating-button--extended {
43
- padding: 0 0.9375rem;
44
- }
45
-
46
- .eds-floating-button:hover {
47
- background-color: #393d79;
48
- background-color: var(--components-button-floating-standard-hover);
49
- }
50
-
51
- .eds-floating-button:active {
52
- background-color: #11143c;
53
- background-color: var(--components-button-floating-standard-active);
54
- }
55
-
56
- .eds-floating-button:focus-visible {
57
- outline: 2px solid #181c56;
58
- outline-color: #181c56;
59
- outline-color: var(--basecolors-stroke-focus-standard);
60
- outline-offset: 0.125rem;
61
- }
62
-
63
- .eds-contrast .eds-floating-button:focus-visible {
64
- outline-color: #aeb7e2;
65
- outline-color: var(--basecolors-stroke-focus-contrast);
66
- }
67
-
68
- .eds-contrast .eds-floating-button {
69
- background: #ffffff;
70
- background: var(--components-button-floating-contrast-default);
71
- color: #181c56;
72
- color: var(--components-button-floating-contrast-text);
73
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
74
- }
75
-
76
- .eds-contrast .eds-floating-button:hover {
77
- background-color: #f6f6f9;
78
- background-color: var(--components-button-floating-contrast-hover);
79
- }
80
-
81
- .eds-contrast .eds-floating-button:active {
82
- background-color: #d9dae8;
83
- background-color: var(--components-button-floating-contrast-active);
84
- }
85
-
86
- .eds-floating-button--small {
87
- border-radius: 1rem;
88
- height: 2rem;
89
- padding: 0 0.5rem;
90
- min-width: 2rem;
91
- min-height: 2rem;
92
- flex: 0 1 auto;
93
- }
94
-
95
- .eds-floating-button--small.eds-floating-button--extended {
96
- padding: 0 0.6875rem;
97
- }
98
-
99
- .eds-floating-button--extended > * {
100
- margin: 0 0.5em;
101
- }
102
-
103
- .eds-floating-button--extended > *:first-child {
104
- margin-left: 0;
105
- }
106
-
107
- .eds-floating-button--extended > *:last-child {
108
- margin-right: 0;
109
- }
110
-
111
- /* DO NOT CHANGE!*/
112
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
113
- a.eds-button {
114
- padding: 0.5rem 1rem;
115
- }
116
-
117
- a.eds-button--variant-tertiary {
118
- padding: 0.25rem 1rem;
119
9
  }
120
10
 
121
- a.eds-button--size-small {
122
- padding: 0.25rem 1rem;
123
- }
124
-
125
- a.eds-button--size-large {
126
- padding: 1rem;
11
+ a.eds-button .eds-icon {
12
+ position: static;
13
+ position: initial;
127
14
  }
128
15
 
129
16
  .eds-button {
130
17
  min-width: 9.5rem;
18
+ width: -moz-max-content;
19
+ width: max-content;
20
+ min-height: 3rem;
21
+ height: -moz-fit-content;
22
+ height: fit-content;
131
23
  border-radius: 0.25rem;
132
24
  font-size: inherit;
133
25
  cursor: pointer;
@@ -139,7 +31,6 @@ a.eds-button--size-large {
139
31
  -webkit-text-decoration: none;
140
32
  text-decoration: none;
141
33
  padding: 0 1rem;
142
- height: 3rem;
143
34
  font-size: 1rem;
144
35
  line-height: 1.5rem;
145
36
  font-weight: 500;
@@ -197,14 +88,14 @@ a.eds-button--size-large {
197
88
 
198
89
  .eds-button--size-small {
199
90
  min-width: 5.75rem;
200
- height: 2rem;
91
+ min-height: 2rem;
201
92
  font-size: 0.875rem;
202
93
  line-height: 1.375rem;
203
94
  }
204
95
 
205
96
  .eds-button--size-large {
206
97
  min-width: 11.75rem;
207
- height: 3.75rem;
98
+ min-height: 3.75rem;
208
99
  }
209
100
 
210
101
  .eds-button--width-fluid {
@@ -362,6 +253,114 @@ a.eds-button--size-large {
362
253
  border-color: transparent;
363
254
  }
364
255
 
256
+ /* DO NOT CHANGE!*/
257
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
258
+ .eds-button-group .eds-button {
259
+ margin-right: 0.75rem;
260
+ margin-bottom: 0.75rem;
261
+ }
262
+
263
+ .eds-button-group .eds-button:only-child {
264
+ margin: 0;
265
+ }
266
+
267
+ /* DO NOT CHANGE!*/
268
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
269
+ .eds-floating-button {
270
+ align-items: center;
271
+ -webkit-appearance: none;
272
+ -moz-appearance: none;
273
+ appearance: none;
274
+ background: #181c56;
275
+ background: var(--components-button-floating-standard-default);
276
+ border: 0;
277
+ border-radius: 1.5rem;
278
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
279
+ color: #ffffff;
280
+ color: var(--components-button-floating-standard-text);
281
+ cursor: pointer;
282
+ display: flex;
283
+ font-family: inherit;
284
+ font-size: 0.875rem;
285
+ font-weight: 500;
286
+ justify-content: center;
287
+ min-height: 3rem;
288
+ margin: 0;
289
+ min-width: 3rem;
290
+ padding: 0 1rem;
291
+ position: relative;
292
+ z-index: 10;
293
+ }
294
+
295
+ .eds-floating-button--extended {
296
+ padding: 0 0.9375rem;
297
+ }
298
+
299
+ .eds-floating-button:hover {
300
+ background-color: #393d79;
301
+ background-color: var(--components-button-floating-standard-hover);
302
+ }
303
+
304
+ .eds-floating-button:active {
305
+ background-color: #11143c;
306
+ background-color: var(--components-button-floating-standard-active);
307
+ }
308
+
309
+ .eds-floating-button:focus-visible {
310
+ outline: 2px solid #181c56;
311
+ outline-color: #181c56;
312
+ outline-color: var(--basecolors-stroke-focus-standard);
313
+ outline-offset: 0.125rem;
314
+ }
315
+
316
+ .eds-contrast .eds-floating-button:focus-visible {
317
+ outline-color: #aeb7e2;
318
+ outline-color: var(--basecolors-stroke-focus-contrast);
319
+ }
320
+
321
+ .eds-contrast .eds-floating-button {
322
+ background: #ffffff;
323
+ background: var(--components-button-floating-contrast-default);
324
+ color: #181c56;
325
+ color: var(--components-button-floating-contrast-text);
326
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
327
+ }
328
+
329
+ .eds-contrast .eds-floating-button:hover {
330
+ background-color: #f6f6f9;
331
+ background-color: var(--components-button-floating-contrast-hover);
332
+ }
333
+
334
+ .eds-contrast .eds-floating-button:active {
335
+ background-color: #d9dae8;
336
+ background-color: var(--components-button-floating-contrast-active);
337
+ }
338
+
339
+ .eds-floating-button--small {
340
+ border-radius: 1rem;
341
+ height: 2rem;
342
+ padding: 0 0.5rem;
343
+ min-width: 2rem;
344
+ min-height: 2rem;
345
+ flex: 0 1 auto;
346
+ }
347
+
348
+ .eds-floating-button--small.eds-floating-button--extended {
349
+ padding: 0 0.6875rem;
350
+ }
351
+
352
+ .eds-floating-button--extended > * {
353
+ margin: 0 0.5em;
354
+ }
355
+
356
+ .eds-floating-button--extended > *:first-child {
357
+ margin-left: 0;
358
+ }
359
+
360
+ .eds-floating-button--extended > *:last-child {
361
+ margin-right: 0;
362
+ }
363
+
365
364
  /* DO NOT CHANGE!*/
366
365
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
367
366
  .eds-square-button {
@@ -568,85 +567,6 @@ a.eds-button--size-large {
568
567
  border-width: 0.0625rem;
569
568
  }
570
569
 
571
- /* DO NOT CHANGE!*/
572
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
573
- .eds-icon-button {
574
- border: 0.125rem solid transparent;
575
- border-radius: 0.25rem;
576
- background: none;
577
- color: #181c56;
578
- color: var(--components-button-iconbutton-standard-text);
579
- cursor: pointer;
580
- display: flex;
581
- justify-content: center;
582
- align-items: center;
583
- font-size: 1rem;
584
- padding: 0.5rem;
585
- }
586
-
587
- .eds-contrast .eds-icon-button {
588
- color: #ffffff;
589
- color: var(--components-button-iconbutton-contrast-text);
590
- }
591
-
592
- .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
593
- background-color: #ffffff;
594
- background-color: var(--components-button-iconbutton-contrast-icon);
595
- }
596
-
597
- .eds-icon-button--size-small {
598
- height: 1.5rem;
599
- width: 1.5rem;
600
- padding: 0;
601
- }
602
-
603
- .eds-icon-button:hover {
604
- background-color: #d9ddf2;
605
- background-color: var(--components-button-iconbutton-standard-hover);
606
- }
607
-
608
- .eds-contrast .eds-icon-button:hover {
609
- background-color: #626493;
610
- background-color: var(--components-button-iconbutton-contrast-hover);
611
- }
612
-
613
- .eds-icon-button:active {
614
- background: #aeb7e2;
615
- background: var(--components-button-iconbutton-standard-active);
616
- color: #181c56;
617
- color: var(--components-button-iconbutton-standard-text-active);
618
- }
619
-
620
- .eds-contrast .eds-icon-button:active {
621
- background: #8794d4;
622
- background: var(--components-button-iconbutton-contrast-active);
623
- color: #181c56;
624
- color: var(--components-button-iconbutton-contrast-text-active);
625
- }
626
-
627
- .eds-icon-button:focus-visible {
628
- outline: 2px solid #181c56;
629
- outline-color: #181c56;
630
- outline-color: var(--basecolors-stroke-focus-standard);
631
- outline-offset: 0.125rem;
632
- }
633
-
634
- .eds-contrast .eds-icon-button:focus-visible {
635
- outline-color: #aeb7e2;
636
- outline-color: var(--basecolors-stroke-focus-contrast);
637
- }
638
-
639
- .eds-icon-button--disabled {
640
- opacity: 0.5;
641
- pointer-events: none;
642
- }
643
-
644
- .eds-icon-button--disabled__wrapper {
645
- cursor: not-allowed;
646
- width: -moz-fit-content;
647
- width: fit-content;
648
- }
649
-
650
570
  /* DO NOT CHANGE!*/
651
571
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
652
572
  /* DO NOT CHANGE!*/
@@ -1029,6 +949,85 @@ a.eds-button--size-large {
1029
949
  --eds-button: 1;
1030
950
  }
1031
951
 
952
+ /* DO NOT CHANGE!*/
953
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
954
+ .eds-icon-button {
955
+ border: 0.125rem solid transparent;
956
+ border-radius: 0.25rem;
957
+ background: none;
958
+ color: #181c56;
959
+ color: var(--components-button-iconbutton-standard-text);
960
+ cursor: pointer;
961
+ display: flex;
962
+ justify-content: center;
963
+ align-items: center;
964
+ font-size: 1rem;
965
+ padding: 0.5rem;
966
+ }
967
+
968
+ .eds-contrast .eds-icon-button {
969
+ color: #ffffff;
970
+ color: var(--components-button-iconbutton-contrast-text);
971
+ }
972
+
973
+ .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
974
+ background-color: #ffffff;
975
+ background-color: var(--components-button-iconbutton-contrast-icon);
976
+ }
977
+
978
+ .eds-icon-button--size-small {
979
+ height: 1.5rem;
980
+ width: 1.5rem;
981
+ padding: 0;
982
+ }
983
+
984
+ .eds-icon-button:hover {
985
+ background-color: #d9ddf2;
986
+ background-color: var(--components-button-iconbutton-standard-hover);
987
+ }
988
+
989
+ .eds-contrast .eds-icon-button:hover {
990
+ background-color: #626493;
991
+ background-color: var(--components-button-iconbutton-contrast-hover);
992
+ }
993
+
994
+ .eds-icon-button:active {
995
+ background: #aeb7e2;
996
+ background: var(--components-button-iconbutton-standard-active);
997
+ color: #181c56;
998
+ color: var(--components-button-iconbutton-standard-text-active);
999
+ }
1000
+
1001
+ .eds-contrast .eds-icon-button:active {
1002
+ background: #8794d4;
1003
+ background: var(--components-button-iconbutton-contrast-active);
1004
+ color: #181c56;
1005
+ color: var(--components-button-iconbutton-contrast-text-active);
1006
+ }
1007
+
1008
+ .eds-icon-button:focus-visible {
1009
+ outline: 2px solid #181c56;
1010
+ outline-color: #181c56;
1011
+ outline-color: var(--basecolors-stroke-focus-standard);
1012
+ outline-offset: 0.125rem;
1013
+ }
1014
+
1015
+ .eds-contrast .eds-icon-button:focus-visible {
1016
+ outline-color: #aeb7e2;
1017
+ outline-color: var(--basecolors-stroke-focus-contrast);
1018
+ }
1019
+
1020
+ .eds-icon-button--disabled {
1021
+ opacity: 0.5;
1022
+ pointer-events: none;
1023
+ }
1024
+
1025
+ .eds-icon-button--disabled__wrapper {
1026
+ cursor: not-allowed;
1027
+ width: -moz-fit-content;
1028
+ width: fit-content;
1029
+ }
1030
+
1032
1031
  .eds-tooltip-wrapper {
1033
1032
  display: inline-block;
1034
1033
  position: relative;
@@ -1126,28 +1125,6 @@ a.eds-button--size-large {
1126
1125
  }
1127
1126
  /* DO NOT CHANGE!*/
1128
1127
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1129
- .eds-popover {
1130
- background: var(--components-tooltip-popover-standard-fill);
1131
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1132
- border-radius: 0.25rem;
1133
- border: 0.0625rem solid var(--components-tooltip-popover-standard-border);
1134
- font-family: inherit;
1135
- z-index: 20;
1136
- }
1137
- .eds-contrast .eds-popover {
1138
- background: var(--components-tooltip-popover-contrast-fill);
1139
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1140
- }
1141
- .eds-popover:focus-visible {
1142
- outline: 2px solid #181c56;
1143
- outline-color: var(--basecolors-stroke-focus-standard);
1144
- outline-offset: 0.125rem;
1145
- }
1146
- .eds-contrast .eds-popover:focus-visible {
1147
- outline-color: var(--basecolors-stroke-focus-contrast);
1148
- }
1149
- /* DO NOT CHANGE!*/
1150
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1151
1128
  /* DO NOT CHANGE!*/
1152
1129
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1153
1130
  /* DO NOT CHANGE!*/
@@ -1345,3 +1322,25 @@ a.eds-button--size-large {
1345
1322
  :root {
1346
1323
  --eds-tooltip: 1;
1347
1324
  }
1325
+ /* DO NOT CHANGE!*/
1326
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1327
+ .eds-popover {
1328
+ background: var(--components-tooltip-popover-standard-fill);
1329
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1330
+ border-radius: 0.25rem;
1331
+ border: 0.0625rem solid var(--components-tooltip-popover-standard-border);
1332
+ font-family: inherit;
1333
+ z-index: 20;
1334
+ }
1335
+ .eds-contrast .eds-popover {
1336
+ background: var(--components-tooltip-popover-contrast-fill);
1337
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1338
+ }
1339
+ .eds-popover:focus-visible {
1340
+ outline: 2px solid #181c56;
1341
+ outline-color: var(--basecolors-stroke-focus-standard);
1342
+ outline-offset: 0.125rem;
1343
+ }
1344
+ .eds-contrast .eds-popover:focus-visible {
1345
+ outline-color: var(--basecolors-stroke-focus-contrast);
1346
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/tooltip",
3
- "version": "5.2.2-beta.0",
3
+ "version": "5.2.2",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/tooltip.esm.js",
@@ -27,10 +27,10 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/button": "^3.3.2-beta.0",
31
- "@entur/icons": "^7.6.2-beta.0",
32
- "@entur/layout": "^3.0.0-beta.0",
33
- "@entur/tokens": "^3.17.7-beta.0",
30
+ "@entur/button": "^3.3.2",
31
+ "@entur/icons": "^7.7.0",
32
+ "@entur/layout": "^2.4.2",
33
+ "@entur/tokens": "^3.17.6",
34
34
  "@entur/utils": "^0.12.2",
35
35
  "@floating-ui/react": "^0.26.24",
36
36
  "@floating-ui/react-dom": "^2.1.0",
@@ -39,5 +39,5 @@
39
39
  "devDependencies": {
40
40
  "dts-cli": "2.0.5"
41
41
  },
42
- "gitHead": "cd66907abaf7faaee1f9dcc5f063b3b153eaf7b2"
42
+ "gitHead": "7c03f458e9c34f5e0fd4f2d23c8eb6a6e47fb669"
43
43
  }