@entur/button 3.0.0 → 3.0.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.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This package contains the button component
4
4
 
5
- > 💡 Looking for the [documentation](https://design.entur.org/komponenter/knapper/button)?
5
+ > 💡 Looking for the [documentation](https://design.entur.no/komponenter/knapper/button)?
6
6
 
7
7
  ## Installation
8
8
 
@@ -14,4 +14,4 @@ yarn add @entur/button
14
14
 
15
15
  ## Usage
16
16
 
17
- Please refer to the [documentation](https://design.entur.org/komponenter/knapper/button) for further usage information.
17
+ Please refer to the [documentation](https://design.entur.no/komponenter/knapper/button) for further usage information.
package/dist/styles.css CHANGED
@@ -3,12 +3,77 @@
3
3
  }
4
4
  /* DO NOT CHANGE!*/
5
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
- .eds-button-group .eds-button {
7
- margin-right: 0.75rem;
8
- margin-bottom: 0.75rem;
9
- }
10
- .eds-button-group .eds-button:only-child {
6
+ .eds-floating-button {
7
+ align-items: center;
8
+ -webkit-appearance: none;
9
+ -moz-appearance: none;
10
+ appearance: none;
11
+ background: #181c56;
12
+ border: 0;
13
+ border-radius: 1.5rem;
14
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
15
+ color: #ffffff;
16
+ cursor: pointer;
17
+ display: flex;
18
+ font-family: inherit;
19
+ font-size: 0.875rem;
20
+ font-weight: 500;
21
+ justify-content: center;
22
+ min-height: 3rem;
11
23
  margin: 0;
24
+ min-width: 3rem;
25
+ padding: 0 1rem;
26
+ position: relative;
27
+ z-index: 10;
28
+ }
29
+ .eds-floating-button--extended {
30
+ padding: 0 0.9375rem;
31
+ }
32
+ .eds-floating-button:hover {
33
+ background-color: #2f3367;
34
+ }
35
+ .eds-floating-button:active {
36
+ background-color: #16194d;
37
+ }
38
+ .eds-floating-button:focus {
39
+ outline-offset: 0.125rem;
40
+ outline: none;
41
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
42
+ }
43
+ .eds-contrast .eds-floating-button:focus {
44
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
45
+ }
46
+ .eds-contrast .eds-floating-button {
47
+ background: #ffffff;
48
+ color: #181c56;
49
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
50
+ }
51
+ .eds-contrast .eds-floating-button:hover {
52
+ background-color: #b6bee5;
53
+ }
54
+ .eds-contrast .eds-floating-button:active {
55
+ background-color: #e6e6e6;
56
+ }
57
+ .eds-floating-button--small {
58
+ border-radius: 1rem;
59
+ height: 2rem;
60
+ padding: 0 0.5rem;
61
+ min-width: 2rem;
62
+ min-height: 2rem;
63
+ flex: 0 1 auto;
64
+ }
65
+ .eds-floating-button--small.eds-floating-button--extended {
66
+ padding: 0 0.6875rem;
67
+ }
68
+
69
+ .eds-floating-button--extended > * {
70
+ margin: 0 0.5em;
71
+ }
72
+ .eds-floating-button--extended > *:first-child {
73
+ margin-left: 0;
74
+ }
75
+ .eds-floating-button--extended > *:last-child {
76
+ margin-right: 0;
12
77
  }
13
78
  /* DO NOT CHANGE!*/
14
79
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -282,77 +347,12 @@ a.eds-button--size-large {
282
347
  }
283
348
  /* DO NOT CHANGE!*/
284
349
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
285
- .eds-floating-button {
286
- align-items: center;
287
- -webkit-appearance: none;
288
- -moz-appearance: none;
289
- appearance: none;
290
- background: #181c56;
291
- border: 0;
292
- border-radius: 1.5rem;
293
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
294
- color: #ffffff;
295
- cursor: pointer;
296
- display: flex;
297
- font-family: inherit;
298
- font-size: 0.875rem;
299
- font-weight: 500;
300
- justify-content: center;
301
- min-height: 3rem;
302
- margin: 0;
303
- min-width: 3rem;
304
- padding: 0 1rem;
305
- position: relative;
306
- z-index: 10;
307
- }
308
- .eds-floating-button--extended {
309
- padding: 0 0.9375rem;
310
- }
311
- .eds-floating-button:hover {
312
- background-color: #2f3367;
313
- }
314
- .eds-floating-button:active {
315
- background-color: #16194d;
316
- }
317
- .eds-floating-button:focus {
318
- outline-offset: 0.125rem;
319
- outline: none;
320
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
321
- }
322
- .eds-contrast .eds-floating-button:focus {
323
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
324
- }
325
- .eds-contrast .eds-floating-button {
326
- background: #ffffff;
327
- color: #181c56;
328
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
329
- }
330
- .eds-contrast .eds-floating-button:hover {
331
- background-color: #b6bee5;
332
- }
333
- .eds-contrast .eds-floating-button:active {
334
- background-color: #e6e6e6;
335
- }
336
- .eds-floating-button--small {
337
- border-radius: 1rem;
338
- height: 2rem;
339
- padding: 0 0.5rem;
340
- min-width: 2rem;
341
- min-height: 2rem;
342
- flex: 0 1 auto;
343
- }
344
- .eds-floating-button--small.eds-floating-button--extended {
345
- padding: 0 0.6875rem;
346
- }
347
-
348
- .eds-floating-button--extended > * {
349
- margin: 0 0.5em;
350
- }
351
- .eds-floating-button--extended > *:first-child {
352
- margin-left: 0;
350
+ .eds-button-group .eds-button {
351
+ margin-right: 0.75rem;
352
+ margin-bottom: 0.75rem;
353
353
  }
354
- .eds-floating-button--extended > *:last-child {
355
- margin-right: 0;
354
+ .eds-button-group .eds-button:only-child {
355
+ margin: 0;
356
356
  }
357
357
  /* DO NOT CHANGE!*/
358
358
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
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.23",
31
- "@entur/tokens": "^3.8.0",
32
- "@entur/utils": "^0.5.5",
30
+ "@entur/loader": "^0.4.25",
31
+ "@entur/tokens": "^3.8.1",
32
+ "@entur/utils": "^0.6.0",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
- "gitHead": "48cdba2e353c9311d52550a98c6b025deb7b8270"
35
+ "gitHead": "34cd9b50251daa4fed6ec367451c5403162145bc"
36
36
  }