@entur/button 2.8.0 → 2.8.3
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/CHANGELOG.md +12 -0
- package/dist/styles.css +99 -93
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.8.3](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.2...@entur/button@2.8.3) (2022-06-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @entur/button
|
|
9
|
+
|
|
10
|
+
## [2.8.2](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.1...@entur/button@2.8.2) (2022-05-13)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @entur/button
|
|
13
|
+
|
|
14
|
+
## [2.8.1](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.8.0...@entur/button@2.8.1) (2022-04-27)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @entur/button
|
|
17
|
+
|
|
6
18
|
# [2.8.0](https://bitbucket.org/enturas/design-system/compare/@entur/button@2.7.4...@entur/button@2.8.0) (2022-02-09)
|
|
7
19
|
|
|
8
20
|
### Features
|
package/dist/styles.css
CHANGED
|
@@ -2,52 +2,79 @@
|
|
|
2
2
|
--eds-button: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
-
.eds-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
.eds-button-group .eds-button {
|
|
6
|
+
margin-right: 0.75rem;
|
|
7
|
+
margin-bottom: 0.75rem;
|
|
8
|
+
}
|
|
9
|
+
.eds-button-group .eds-button:only-child {
|
|
10
|
+
margin: 0;
|
|
11
|
+
}/* DO NOT CHANGE!*/
|
|
12
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
13
|
+
.eds-floating-button {
|
|
14
|
+
align-items: center;
|
|
15
|
+
-webkit-appearance: none;
|
|
16
|
+
-moz-appearance: none;
|
|
17
|
+
appearance: none;
|
|
18
|
+
background: #181c56;
|
|
19
|
+
border: 0;
|
|
20
|
+
border-radius: 1.5rem;
|
|
21
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
22
|
+
color: #ffffff;
|
|
10
23
|
cursor: pointer;
|
|
11
24
|
display: flex;
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: 0.875rem;
|
|
27
|
+
font-weight: 500;
|
|
12
28
|
justify-content: center;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
29
|
+
min-height: 3rem;
|
|
30
|
+
margin: 0;
|
|
31
|
+
min-width: 3rem;
|
|
32
|
+
padding: 0 1rem;
|
|
33
|
+
position: relative;
|
|
34
|
+
z-index: 10;
|
|
16
35
|
}
|
|
17
|
-
.eds-
|
|
18
|
-
|
|
36
|
+
.eds-floating-button--extended {
|
|
37
|
+
padding: 0 0.9375rem;
|
|
19
38
|
}
|
|
20
|
-
.eds-
|
|
21
|
-
|
|
22
|
-
width: 1.5rem;
|
|
23
|
-
padding: 0;
|
|
39
|
+
.eds-floating-button:hover {
|
|
40
|
+
background-color: #2f3367;
|
|
24
41
|
}
|
|
25
|
-
.eds-
|
|
26
|
-
|
|
27
|
-
|
|
42
|
+
.eds-floating-button:focus {
|
|
43
|
+
outline-offset: 0.125rem;
|
|
44
|
+
outline: none;
|
|
45
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
28
46
|
}
|
|
29
|
-
.eds-
|
|
30
|
-
|
|
47
|
+
.eds-contrast .eds-floating-button:focus {
|
|
48
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
31
49
|
}
|
|
32
|
-
.eds-contrast .eds-
|
|
33
|
-
background
|
|
50
|
+
.eds-contrast .eds-floating-button {
|
|
51
|
+
background: #ffffff;
|
|
52
|
+
color: #181c56;
|
|
53
|
+
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
34
54
|
}
|
|
35
|
-
.eds-
|
|
36
|
-
background: #
|
|
55
|
+
.eds-contrast .eds-floating-button:hover {
|
|
56
|
+
background-color: #b6bee5;
|
|
37
57
|
}
|
|
38
|
-
.eds-
|
|
39
|
-
|
|
58
|
+
.eds-floating-button--small {
|
|
59
|
+
border-radius: 1rem;
|
|
60
|
+
height: 2rem;
|
|
61
|
+
padding: 0 0.5rem;
|
|
62
|
+
min-width: 2rem;
|
|
63
|
+
min-height: 2rem;
|
|
64
|
+
flex: 0 1 auto;
|
|
40
65
|
}
|
|
41
|
-
.eds-
|
|
42
|
-
|
|
43
|
-
outline: none;
|
|
66
|
+
.eds-floating-button--small.eds-floating-button--extended {
|
|
67
|
+
padding: 0 0.6875rem;
|
|
44
68
|
}
|
|
45
|
-
|
|
46
|
-
|
|
69
|
+
|
|
70
|
+
.eds-floating-button--extended > * {
|
|
71
|
+
margin: 0 0.5em;
|
|
47
72
|
}
|
|
48
|
-
.eds-
|
|
49
|
-
|
|
50
|
-
|
|
73
|
+
.eds-floating-button--extended > *:first-child {
|
|
74
|
+
margin-left: 0;
|
|
75
|
+
}
|
|
76
|
+
.eds-floating-button--extended > *:last-child {
|
|
77
|
+
margin-right: 0;
|
|
51
78
|
}/* DO NOT CHANGE!*/
|
|
52
79
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
53
80
|
a.eds-button {
|
|
@@ -67,7 +94,9 @@ a.eds-button--size-large {
|
|
|
67
94
|
font-size: inherit;
|
|
68
95
|
cursor: pointer;
|
|
69
96
|
display: inline-block;
|
|
70
|
-
appearance: none;
|
|
97
|
+
-webkit-appearance: none;
|
|
98
|
+
-moz-appearance: none;
|
|
99
|
+
appearance: none;
|
|
71
100
|
text-decoration: none;
|
|
72
101
|
padding: 0 1rem;
|
|
73
102
|
height: 3rem;
|
|
@@ -263,77 +292,52 @@ a.eds-button--size-large {
|
|
|
263
292
|
color: #aeb7e2;
|
|
264
293
|
}/* DO NOT CHANGE!*/
|
|
265
294
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
266
|
-
.eds-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
margin: 0;
|
|
272
|
-
}/* DO NOT CHANGE!*/
|
|
273
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
274
|
-
.eds-floating-button {
|
|
275
|
-
align-items: center;
|
|
276
|
-
appearance: none;
|
|
277
|
-
background: #181c56;
|
|
278
|
-
border: 0;
|
|
279
|
-
border-radius: 1.5rem;
|
|
280
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
281
|
-
color: #ffffff;
|
|
295
|
+
.eds-icon-button {
|
|
296
|
+
border: 0.0625rem solid transparent;
|
|
297
|
+
border-radius: 0.25rem;
|
|
298
|
+
background: none;
|
|
299
|
+
color: inherit;
|
|
282
300
|
cursor: pointer;
|
|
283
301
|
display: flex;
|
|
284
|
-
font-family: inherit;
|
|
285
|
-
font-size: 0.875rem;
|
|
286
|
-
font-weight: 500;
|
|
287
302
|
justify-content: center;
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
padding: 0 1rem;
|
|
292
|
-
position: relative;
|
|
293
|
-
z-index: 10;
|
|
294
|
-
}
|
|
295
|
-
.eds-floating-button--extended {
|
|
296
|
-
padding: 0 0.9375rem;
|
|
303
|
+
align-items: center;
|
|
304
|
+
font-size: 1rem;
|
|
305
|
+
padding: 0.5rem;
|
|
297
306
|
}
|
|
298
|
-
.eds-
|
|
299
|
-
background-color: #
|
|
307
|
+
.eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
|
|
308
|
+
background-color: #ffffff;
|
|
300
309
|
}
|
|
301
|
-
.eds-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
310
|
+
.eds-icon-button--size-small {
|
|
311
|
+
height: 1.5rem;
|
|
312
|
+
width: 1.5rem;
|
|
313
|
+
padding: 0;
|
|
305
314
|
}
|
|
306
|
-
.eds-
|
|
307
|
-
|
|
315
|
+
.eds-icon-button--size-medium {
|
|
316
|
+
height: 2rem;
|
|
317
|
+
width: 2rem;
|
|
308
318
|
}
|
|
309
|
-
.eds-
|
|
310
|
-
background: #
|
|
311
|
-
color: #181c56;
|
|
312
|
-
box-shadow: 0 0.0625rem 0.1875rem #393d79;
|
|
319
|
+
.eds-icon-button:hover {
|
|
320
|
+
background-color: #d1d4e3;
|
|
313
321
|
}
|
|
314
|
-
.eds-contrast .eds-
|
|
315
|
-
background-color: #
|
|
322
|
+
.eds-contrast .eds-icon-button:hover {
|
|
323
|
+
background-color: #393d79;
|
|
316
324
|
}
|
|
317
|
-
.eds-
|
|
318
|
-
|
|
319
|
-
height: 2rem;
|
|
320
|
-
padding: 0 0.5rem;
|
|
321
|
-
min-width: 2rem;
|
|
322
|
-
min-height: 2rem;
|
|
323
|
-
flex: 0 1 auto;
|
|
325
|
+
.eds-icon-button:active {
|
|
326
|
+
background: #babbcf;
|
|
324
327
|
}
|
|
325
|
-
.eds-
|
|
326
|
-
|
|
328
|
+
.eds-contrast .eds-icon-button:active {
|
|
329
|
+
background: #292b6a;
|
|
327
330
|
}
|
|
328
|
-
|
|
329
|
-
.
|
|
330
|
-
|
|
331
|
+
.eds-icon-button:focus {
|
|
332
|
+
border: 0.0625rem solid #181c56;
|
|
333
|
+
outline: none;
|
|
331
334
|
}
|
|
332
|
-
.eds-
|
|
333
|
-
|
|
335
|
+
.eds-contrast .eds-icon-button:focus {
|
|
336
|
+
border: 0.0625rem solid #ffffff;
|
|
334
337
|
}
|
|
335
|
-
.eds-
|
|
336
|
-
|
|
338
|
+
.eds-icon-button--disabled {
|
|
339
|
+
opacity: 0.5;
|
|
340
|
+
pointer-events: none;
|
|
337
341
|
}/* DO NOT CHANGE!*/
|
|
338
342
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
339
343
|
.eds-square-button {
|
|
@@ -341,7 +345,9 @@ a.eds-button--size-large {
|
|
|
341
345
|
--icon-background: transparent;
|
|
342
346
|
--border-color: transparent;
|
|
343
347
|
align-items: center;
|
|
344
|
-
appearance: none;
|
|
348
|
+
-webkit-appearance: none;
|
|
349
|
+
-moz-appearance: none;
|
|
350
|
+
appearance: none;
|
|
345
351
|
background: transparent;
|
|
346
352
|
border: 0;
|
|
347
353
|
border-radius: 0.25rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/button",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/button.esm.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/loader": "^0.4.
|
|
30
|
+
"@entur/loader": "^0.4.8",
|
|
31
31
|
"@entur/utils": "^0.4.3",
|
|
32
32
|
"classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@entur/tokens": "^3.3.
|
|
35
|
+
"@entur/tokens": "^3.3.2"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "02c1bc4caad8480d21d8560188ba21b972e3370e"
|
|
38
38
|
}
|