@entur/button 2.10.11 → 2.10.13

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 +80 -80
  2. package/package.json +5 -7
package/dist/styles.css CHANGED
@@ -2,6 +2,14 @@
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-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. */
5
13
  a.eds-button {
6
14
  padding: 0.5rem 1rem;
7
15
  }
@@ -217,67 +225,6 @@ a.eds-button--size-large {
217
225
  color: #aeb7e2;
218
226
  }/* DO NOT CHANGE!*/
219
227
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
220
- .eds-button-group .eds-button {
221
- margin-right: 0.75rem;
222
- margin-bottom: 0.75rem;
223
- }
224
- .eds-button-group .eds-button:only-child {
225
- margin: 0;
226
- }/* DO NOT CHANGE!*/
227
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
228
- .eds-icon-button {
229
- border: 0.0625rem solid transparent;
230
- border-radius: 0.25rem;
231
- background: none;
232
- color: inherit;
233
- cursor: pointer;
234
- display: flex;
235
- justify-content: center;
236
- align-items: center;
237
- font-size: 1rem;
238
- padding: 0.5rem;
239
- }
240
- .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
241
- background-color: #ffffff;
242
- }
243
- .eds-icon-button--size-small {
244
- height: 1.5rem;
245
- width: 1.5rem;
246
- padding: 0;
247
- }
248
- .eds-icon-button--size-medium {
249
- height: 2rem;
250
- width: 2rem;
251
- }
252
- .eds-icon-button:hover {
253
- background-color: #d1d4e3;
254
- }
255
- .eds-contrast .eds-icon-button:hover {
256
- background-color: #393d79;
257
- }
258
- .eds-icon-button:active {
259
- background: #babbcf;
260
- }
261
- .eds-contrast .eds-icon-button:active {
262
- background: #292b6a;
263
- }
264
- .eds-icon-button:focus {
265
- border: 0.0625rem solid #181c56;
266
- outline: none;
267
- }
268
- .eds-contrast .eds-icon-button:focus {
269
- border: 0.0625rem solid #ffffff;
270
- }
271
- .eds-icon-button--disabled {
272
- opacity: 0.5;
273
- pointer-events: none;
274
- }
275
- .eds-icon-button--disabled__wrapper {
276
- cursor: not-allowed;
277
- width: -moz-fit-content;
278
- width: fit-content;
279
- }/* DO NOT CHANGE!*/
280
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
281
228
  .eds-floating-button {
282
229
  align-items: center;
283
230
  -webkit-appearance: none;
@@ -321,7 +268,7 @@ a.eds-button--size-large {
321
268
  .eds-contrast .eds-floating-button {
322
269
  background: #ffffff;
323
270
  color: #181c56;
324
- box-shadow: 0 0.0625rem 0.1875rem #393d79;
271
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
325
272
  }
326
273
  .eds-contrast .eds-floating-button:hover {
327
274
  background-color: #b6bee5;
@@ -351,6 +298,59 @@ a.eds-button--size-large {
351
298
  margin-right: 0;
352
299
  }/* DO NOT CHANGE!*/
353
300
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
301
+ .eds-icon-button {
302
+ border: 0.0625rem solid transparent;
303
+ border-radius: 0.25rem;
304
+ background: none;
305
+ color: inherit;
306
+ cursor: pointer;
307
+ display: flex;
308
+ justify-content: center;
309
+ align-items: center;
310
+ font-size: 1rem;
311
+ padding: 0.5rem;
312
+ }
313
+ .eds-contrast .eds-icon-button > .eds-loading-dots .eds-loading-dots__dot {
314
+ background-color: #ffffff;
315
+ }
316
+ .eds-icon-button--size-small {
317
+ height: 1.5rem;
318
+ width: 1.5rem;
319
+ padding: 0;
320
+ }
321
+ .eds-icon-button--size-medium {
322
+ height: 2rem;
323
+ width: 2rem;
324
+ }
325
+ .eds-icon-button:hover {
326
+ background-color: #d1d4e3;
327
+ }
328
+ .eds-contrast .eds-icon-button:hover {
329
+ background-color: #393d79;
330
+ }
331
+ .eds-icon-button:active {
332
+ background: #babbcf;
333
+ }
334
+ .eds-contrast .eds-icon-button:active {
335
+ background: #292b6a;
336
+ }
337
+ .eds-icon-button:focus {
338
+ border: 0.0625rem solid #181c56;
339
+ outline: none;
340
+ }
341
+ .eds-contrast .eds-icon-button:focus {
342
+ border: 0.0625rem solid #ffffff;
343
+ }
344
+ .eds-icon-button--disabled {
345
+ opacity: 0.5;
346
+ pointer-events: none;
347
+ }
348
+ .eds-icon-button--disabled__wrapper {
349
+ cursor: not-allowed;
350
+ width: -moz-fit-content;
351
+ width: fit-content;
352
+ }/* DO NOT CHANGE!*/
353
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
354
354
  .eds-square-button {
355
355
  --icon-color: var(--primary-text-color);
356
356
  --icon-background: transparent;
@@ -410,40 +410,40 @@ a.eds-button--size-large {
410
410
 
411
411
  .eds-square-button--secondary {
412
412
  --icon-background: transparent;
413
- --border-color: #aeb7e2;
413
+ --border-color: $colors-brand-lavender;
414
414
  }
415
415
  .eds-square-button--secondary .eds-square-button__loading-dots .eds-loading-dots__dot {
416
416
  background: #181c56;
417
417
  }
418
418
  .eds-square-button--secondary:hover {
419
- --icon-background: #aeb7e2;
419
+ --icon-background: $colors-brand-lavender;
420
420
  }
421
421
  .eds-square-button--secondary:active {
422
- --icon-background: #9da5cb;
423
- --border-color: #9da5cb;
422
+ --icon-background: shade($colors-brand-lavender, 10%);
423
+ --border-color: shade($colors-brand-lavender, 10%);
424
424
  }
425
425
  .eds-contrast .eds-square-button--secondary:hover {
426
- --icon-background: rgba(255, 255, 255, 0.2);
426
+ --icon-background: rgba($color: $colors-brand-white, $alpha: 0.2);
427
427
  }
428
428
  .eds-contrast .eds-square-button--secondary:active {
429
- --icon-background: #aeb7e2;
430
- --icon-color: #181c56;
429
+ --icon-background: $colors-brand-lavender;
430
+ --icon-color: $colors-brand-blue;
431
431
  }
432
432
  .eds-contrast .eds-square-button--secondary .eds-square-button__loading-dots .eds-loading-dots__dot {
433
433
  background: #ffffff;
434
434
  }
435
435
 
436
436
  .eds-square-button--success {
437
- --icon-background: #5ac39a;
437
+ --icon-background: $colors-validation-mint-contrast;
438
438
  }
439
439
  .eds-square-button--success .eds-square-button__loading-dots .eds-loading-dots__dot {
440
440
  background: #181c56;
441
441
  }
442
442
  .eds-square-button--success:hover {
443
- --icon-background: #6bc9a4;
443
+ --icon-background: tint($colors-validation-mint-contrast, 10%);
444
444
  }
445
445
  .eds-square-button--success:active {
446
- --icon-background: #56b992;
446
+ --icon-background: shade($colors-validation-mint-contrast, 5%);
447
447
  }
448
448
 
449
449
  .eds-square-button__label {
@@ -457,7 +457,7 @@ a.eds-button--size-large {
457
457
 
458
458
  .eds-square-button--tertiary {
459
459
  --icon-background: transparent;
460
- --border-color: #181c56;
460
+ --border-color: $colors-brand-blue;
461
461
  font-size: 0.875rem;
462
462
  }
463
463
  .eds-square-button--tertiary .eds-square-button__label + .eds-square-button__icon,
@@ -473,24 +473,24 @@ a.eds-button--size-large {
473
473
  background: #181c56;
474
474
  }
475
475
  .eds-square-button--tertiary:hover {
476
- --icon-background: #d1d4e3;
476
+ --icon-background: $colors-blues-blue70;
477
477
  }
478
478
  .eds-square-button--tertiary:active {
479
- --icon-background: #181c56;
480
- --icon-color: #ffffff;
479
+ --icon-background: $colors-brand-blue;
480
+ --icon-color: $colors-brand-white;
481
481
  }
482
482
  .eds-square-button--tertiary:active .eds-square-button__loading-dots .eds-loading-dots__dot {
483
483
  background: #ffffff;
484
484
  }
485
485
  .eds-contrast .eds-square-button--tertiary {
486
- --border-color: #ffffff;
486
+ --border-color: $colors-brand-white;
487
487
  }
488
488
  .eds-contrast .eds-square-button--tertiary:hover {
489
- --icon-background: rgba(255, 255, 255, 0.2);
489
+ --icon-background: rgba($color: $colors-brand-white, $alpha: 0.2);
490
490
  }
491
491
  .eds-contrast .eds-square-button--tertiary:active {
492
- --icon-background: #ffffff;
493
- --icon-color: #181c56;
492
+ --icon-background: $colors-brand-white;
493
+ --icon-color: $colors-brand-blue;
494
494
  }
495
495
  .eds-contrast .eds-square-button--tertiary:active .eds-square-button__loading-dots .eds-loading-dots__dot {
496
496
  background: #181c56;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/button",
3
- "version": "2.10.11",
3
+ "version": "2.10.13",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/button.esm.js",
@@ -27,12 +27,10 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/loader": "^0.4.19",
31
- "@entur/utils": "^0.5.2",
30
+ "@entur/loader": "^0.4.21",
31
+ "@entur/tokens": "^3.7.0",
32
+ "@entur/utils": "^0.5.4",
32
33
  "classnames": "^2.3.1"
33
34
  },
34
- "devDependencies": {
35
- "@entur/tokens": "^3.5.0"
36
- },
37
- "gitHead": "30b38034aaafba9fb308fb3d8c8bfaab9608d720"
35
+ "gitHead": "0488198c40c8c610f981c97c8a755a9a435044dd"
38
36
  }