@entur/button 2.7.4 → 2.8.0

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/dist/styles.css CHANGED
@@ -2,6 +2,54 @@
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-icon-button {
6
+ border: 0.0625rem solid transparent;
7
+ border-radius: 0.25rem;
8
+ background: none;
9
+ color: inherit;
10
+ cursor: pointer;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ font-size: 1rem;
15
+ padding: 0.5rem;
16
+ }
17
+ .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
18
+ background-color: #ffffff;
19
+ }
20
+ .eds-icon-button--size-small {
21
+ height: 1.5rem;
22
+ width: 1.5rem;
23
+ padding: 0;
24
+ }
25
+ .eds-icon-button--size-medium {
26
+ height: 2rem;
27
+ width: 2rem;
28
+ }
29
+ .eds-icon-button:hover {
30
+ background-color: #d1d4e3;
31
+ }
32
+ .eds-contrast .eds-icon-button:hover {
33
+ background-color: #393d79;
34
+ }
35
+ .eds-icon-button:active {
36
+ background: #babbcf;
37
+ }
38
+ .eds-contrast .eds-icon-button:active {
39
+ background: #292b6a;
40
+ }
41
+ .eds-icon-button:focus {
42
+ border: 0.0625rem solid #181c56;
43
+ outline: none;
44
+ }
45
+ .eds-contrast .eds-icon-button:focus {
46
+ border: 0.0625rem solid #ffffff;
47
+ }
48
+ .eds-icon-button--disabled {
49
+ opacity: 0.5;
50
+ pointer-events: none;
51
+ }/* DO NOT CHANGE!*/
52
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
53
  a.eds-button {
6
54
  padding: 0.5rem 1rem;
7
55
  }
@@ -223,54 +271,6 @@ a.eds-button--size-large {
223
271
  margin: 0;
224
272
  }/* DO NOT CHANGE!*/
225
273
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
226
- .eds-icon-button {
227
- border: 0.0625rem solid transparent;
228
- border-radius: 0.25rem;
229
- background: none;
230
- color: inherit;
231
- cursor: pointer;
232
- display: flex;
233
- justify-content: center;
234
- align-items: center;
235
- font-size: 1rem;
236
- padding: 0.5rem;
237
- }
238
- .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
239
- background-color: #ffffff;
240
- }
241
- .eds-icon-button--size-small {
242
- height: 1.5rem;
243
- width: 1.5rem;
244
- padding: 0;
245
- }
246
- .eds-icon-button--size-medium {
247
- height: 2rem;
248
- width: 2rem;
249
- }
250
- .eds-icon-button:hover {
251
- background-color: #d1d4e3;
252
- }
253
- .eds-contrast .eds-icon-button:hover {
254
- background-color: #393d79;
255
- }
256
- .eds-icon-button:active {
257
- background: #babbcf;
258
- }
259
- .eds-contrast .eds-icon-button:active {
260
- background: #292b6a;
261
- }
262
- .eds-icon-button:focus {
263
- border: 0.0625rem solid #181c56;
264
- outline: none;
265
- }
266
- .eds-contrast .eds-icon-button:focus {
267
- border: 0.0625rem solid #ffffff;
268
- }
269
- .eds-icon-button--disabled {
270
- opacity: 0.5;
271
- pointer-events: none;
272
- }/* DO NOT CHANGE!*/
273
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
274
274
  .eds-floating-button {
275
275
  align-items: center;
276
276
  appearance: none;
@@ -436,4 +436,48 @@ a.eds-button--size-large {
436
436
  .eds-square-button__label + .eds-square-button__icon,
437
437
  .eds-square-button__icon + .eds-square-button__label {
438
438
  margin-left: 1rem;
439
+ }
440
+
441
+ .eds-square-button--tertiary {
442
+ --icon-background: transparent;
443
+ --border-color: #181c56;
444
+ font-size: 0.875rem;
445
+ }
446
+ .eds-square-button--tertiary .eds-square-button__label + .eds-square-button__icon,
447
+ .eds-square-button--tertiary .eds-square-button__icon + .eds-square-button__label {
448
+ margin-left: 0.75rem;
449
+ }
450
+ .eds-square-button--tertiary .eds-square-button__icon {
451
+ height: 2rem;
452
+ width: 2rem;
453
+ border-width: 0.0625rem;
454
+ }
455
+ .eds-square-button--tertiary .eds-square-button__loading-dots .eds-loading-dots__dot {
456
+ background: #181c56;
457
+ }
458
+ .eds-square-button--tertiary:hover {
459
+ --icon-background: #d1d4e3;
460
+ }
461
+ .eds-square-button--tertiary:active {
462
+ --icon-background: #181c56;
463
+ --icon-color: #ffffff;
464
+ }
465
+ .eds-square-button--tertiary:active .eds-square-button__loading-dots .eds-loading-dots__dot {
466
+ background: #ffffff;
467
+ }
468
+ .eds-contrast .eds-square-button--tertiary {
469
+ --border-color: #ffffff;
470
+ }
471
+ .eds-contrast .eds-square-button--tertiary:hover {
472
+ --icon-background: rgba(255, 255, 255, 0.2);
473
+ }
474
+ .eds-contrast .eds-square-button--tertiary:active {
475
+ --icon-background: #ffffff;
476
+ --icon-color: #181c56;
477
+ }
478
+ .eds-contrast .eds-square-button--tertiary:active .eds-square-button__loading-dots .eds-loading-dots__dot {
479
+ background: #181c56;
480
+ }
481
+ .eds-contrast .eds-square-button--tertiary .eds-square-button__loading-dots .eds-loading-dots__dot {
482
+ background: #ffffff;
439
483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "2.7.4",
3
+ "version": "2.8.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/button.esm.js",
@@ -17,22 +17,22 @@
17
17
  "access": "public"
18
18
  },
19
19
  "scripts": {
20
- "start": "tsdx watch --noClean",
21
- "build": "tsdx build",
22
- "test": "tsdx test --env=jsdom",
23
- "lint": "tsdx lint"
20
+ "start": "dts watch --noClean",
21
+ "build": "dts build",
22
+ "test": "dts test --env=jsdom",
23
+ "lint": "dts lint"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": ">=16.8.0",
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/loader": "^0.4.4",
31
- "@entur/utils": "^0.4.2",
30
+ "@entur/loader": "^0.4.5",
31
+ "@entur/utils": "^0.4.3",
32
32
  "classnames": "^2.3.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@entur/tokens": "^3.3.0"
35
+ "@entur/tokens": "^3.3.1"
36
36
  },
37
- "gitHead": "6255452bbbb124b6569095cf08f96143873a7f8e"
37
+ "gitHead": "61e643371cfc5653c93160b7c220152e5b2bafeb"
38
38
  }