@entur/button 3.1.4 → 3.1.5

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 +77 -77
  2. package/package.json +3 -3
package/dist/styles.css CHANGED
@@ -9,6 +9,80 @@
9
9
  }
10
10
  /* DO NOT CHANGE!*/
11
11
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
12
+ .eds-floating-button {
13
+ align-items: center;
14
+ -webkit-appearance: none;
15
+ -moz-appearance: none;
16
+ appearance: none;
17
+ background: #181c56;
18
+ border: 0;
19
+ border-radius: 1.5rem;
20
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
21
+ color: #ffffff;
22
+ cursor: pointer;
23
+ display: flex;
24
+ font-family: inherit;
25
+ font-size: 0.875rem;
26
+ font-weight: 500;
27
+ justify-content: center;
28
+ min-height: 3rem;
29
+ margin: 0;
30
+ min-width: 3rem;
31
+ padding: 0 1rem;
32
+ position: relative;
33
+ z-index: 10;
34
+ }
35
+ .eds-floating-button--extended {
36
+ padding: 0 0.9375rem;
37
+ }
38
+ .eds-floating-button:hover {
39
+ background-color: #2f3367;
40
+ }
41
+ .eds-floating-button:active {
42
+ background-color: #16194d;
43
+ }
44
+ .eds-floating-button:focus {
45
+ outline-offset: 0.125rem;
46
+ outline: none;
47
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
48
+ }
49
+ .eds-contrast .eds-floating-button:focus {
50
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
51
+ }
52
+ .eds-contrast .eds-floating-button {
53
+ background: #ffffff;
54
+ color: #181c56;
55
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
56
+ }
57
+ .eds-contrast .eds-floating-button:hover {
58
+ background-color: #b6bee5;
59
+ }
60
+ .eds-contrast .eds-floating-button:active {
61
+ background-color: #e6e6e6;
62
+ }
63
+ .eds-floating-button--small {
64
+ border-radius: 1rem;
65
+ height: 2rem;
66
+ padding: 0 0.5rem;
67
+ min-width: 2rem;
68
+ min-height: 2rem;
69
+ flex: 0 1 auto;
70
+ }
71
+ .eds-floating-button--small.eds-floating-button--extended {
72
+ padding: 0 0.6875rem;
73
+ }
74
+
75
+ .eds-floating-button--extended > * {
76
+ margin: 0 0.5em;
77
+ }
78
+ .eds-floating-button--extended > *:first-child {
79
+ margin-left: 0;
80
+ }
81
+ .eds-floating-button--extended > *:last-child {
82
+ margin-right: 0;
83
+ }
84
+ /* DO NOT CHANGE!*/
85
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
12
86
  a.eds-button {
13
87
  padding: 0.5rem 1rem;
14
88
  }
@@ -238,80 +312,6 @@ a.eds-button--size-large {
238
312
  }
239
313
  /* DO NOT CHANGE!*/
240
314
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
241
- .eds-floating-button {
242
- align-items: center;
243
- -webkit-appearance: none;
244
- -moz-appearance: none;
245
- appearance: none;
246
- background: #181c56;
247
- border: 0;
248
- border-radius: 1.5rem;
249
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
250
- color: #ffffff;
251
- cursor: pointer;
252
- display: flex;
253
- font-family: inherit;
254
- font-size: 0.875rem;
255
- font-weight: 500;
256
- justify-content: center;
257
- min-height: 3rem;
258
- margin: 0;
259
- min-width: 3rem;
260
- padding: 0 1rem;
261
- position: relative;
262
- z-index: 10;
263
- }
264
- .eds-floating-button--extended {
265
- padding: 0 0.9375rem;
266
- }
267
- .eds-floating-button:hover {
268
- background-color: #2f3367;
269
- }
270
- .eds-floating-button:active {
271
- background-color: #16194d;
272
- }
273
- .eds-floating-button:focus {
274
- outline-offset: 0.125rem;
275
- outline: none;
276
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
277
- }
278
- .eds-contrast .eds-floating-button:focus {
279
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
280
- }
281
- .eds-contrast .eds-floating-button {
282
- background: #ffffff;
283
- color: #181c56;
284
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
285
- }
286
- .eds-contrast .eds-floating-button:hover {
287
- background-color: #b6bee5;
288
- }
289
- .eds-contrast .eds-floating-button:active {
290
- background-color: #e6e6e6;
291
- }
292
- .eds-floating-button--small {
293
- border-radius: 1rem;
294
- height: 2rem;
295
- padding: 0 0.5rem;
296
- min-width: 2rem;
297
- min-height: 2rem;
298
- flex: 0 1 auto;
299
- }
300
- .eds-floating-button--small.eds-floating-button--extended {
301
- padding: 0 0.6875rem;
302
- }
303
-
304
- .eds-floating-button--extended > * {
305
- margin: 0 0.5em;
306
- }
307
- .eds-floating-button--extended > *:first-child {
308
- margin-left: 0;
309
- }
310
- .eds-floating-button--extended > *:last-child {
311
- margin-right: 0;
312
- }
313
- /* DO NOT CHANGE!*/
314
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
315
315
  .eds-square-button {
316
316
  --icon-color: var(--primary-text-color);
317
317
  --button-background: transparent;
@@ -460,9 +460,6 @@ a.eds-button--size-large {
460
460
  .eds-square-button--tertiary .eds-square-button__loading-dots .eds-loading-dots__dot {
461
461
  background: #181c56;
462
462
  }
463
- :root {
464
- --eds-button: 1;
465
- }
466
463
  /* DO NOT CHANGE!*/
467
464
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
468
465
  .eds-icon-button {
@@ -517,3 +514,6 @@ a.eds-button--size-large {
517
514
  width: -moz-fit-content;
518
515
  width: fit-content;
519
516
  }
517
+ :root {
518
+ --eds-button: 1;
519
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
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.41",
30
+ "@entur/loader": "^0.4.42",
31
31
  "@entur/tokens": "^3.10.0",
32
32
  "@entur/utils": "^0.9.5",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "9e5cbcf10c3e18dff42f0afb3b4cb40df557c14c"
35
+ "gitHead": "36f7ef81ee8188c701d607dc01124658dfff7265"
36
36
  }