@telefonica/mistica 16.4.0 → 16.6.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.
Files changed (108) hide show
  1. package/css/mistica.css +1 -1
  2. package/css/vivo-new.css +11 -11
  3. package/dist/accordion.css-mistica.js +16 -13
  4. package/dist/accordion.css.d.ts +1 -0
  5. package/dist/accordion.d.ts +4 -0
  6. package/dist/accordion.js +110 -93
  7. package/dist/callout.js +27 -15
  8. package/dist/card.css-mistica.js +5 -5
  9. package/dist/card.d.ts +9 -1
  10. package/dist/card.js +611 -475
  11. package/dist/community/advanced-data-card.css-mistica.js +14 -11
  12. package/dist/community/advanced-data-card.css.d.ts +1 -0
  13. package/dist/community/advanced-data-card.d.ts +1 -1
  14. package/dist/community/advanced-data-card.js +172 -85
  15. package/dist/cover-hero.css-mistica.js +14 -11
  16. package/dist/cover-hero.css.d.ts +1 -0
  17. package/dist/cover-hero.d.ts +1 -0
  18. package/dist/cover-hero.js +101 -59
  19. package/dist/empty-state.js +24 -15
  20. package/dist/header.css-mistica.js +6 -3
  21. package/dist/header.css.d.ts +1 -0
  22. package/dist/header.d.ts +3 -2
  23. package/dist/header.js +148 -79
  24. package/dist/hero.css-mistica.js +11 -8
  25. package/dist/hero.css.d.ts +1 -0
  26. package/dist/hero.d.ts +2 -1
  27. package/dist/hero.js +102 -68
  28. package/dist/highlighted-card.js +32 -23
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +4 -0
  31. package/dist/maybe-dismissable.js +8 -5
  32. package/dist/meter.d.ts +23 -0
  33. package/dist/meter.js +400 -0
  34. package/dist/mosaic.d.ts +6 -2
  35. package/dist/mosaic.js +50 -48
  36. package/dist/navigation-bar.css-mistica.js +96 -37
  37. package/dist/navigation-bar.css.d.ts +27 -1
  38. package/dist/navigation-bar.d.ts +65 -30
  39. package/dist/navigation-bar.js +818 -193
  40. package/dist/package-version.js +1 -1
  41. package/dist/sheet-common.css-mistica.js +16 -10
  42. package/dist/sheet-common.css.d.ts +3 -1
  43. package/dist/sheet-common.js +78 -70
  44. package/dist/sheet-info.css-mistica.js +15 -4
  45. package/dist/sheet-info.css.d.ts +2 -0
  46. package/dist/sheet-info.d.ts +3 -0
  47. package/dist/sheet-info.js +61 -43
  48. package/dist/sheet-native.js +59 -48
  49. package/dist/sheet-types.d.ts +6 -1
  50. package/dist/sheet-web.js +6 -4
  51. package/dist/skins/blau.js +94 -94
  52. package/dist/skins/movistar.js +94 -94
  53. package/dist/skins/o2-new.js +94 -94
  54. package/dist/skins/o2.js +94 -94
  55. package/dist/skins/telefonica.js +94 -94
  56. package/dist/skins/tu.js +94 -94
  57. package/dist/skins/vivo-new.js +98 -98
  58. package/dist/skins/vivo.js +94 -94
  59. package/dist/text-tokens.d.ts +14 -0
  60. package/dist/text-tokens.js +134 -102
  61. package/dist/theme-context-provider.js +60 -50
  62. package/dist/theme.d.ts +3 -2
  63. package/dist/theme.js +20 -17
  64. package/dist/utils/headings.d.ts +2 -0
  65. package/dist/utils/headings.js +11 -0
  66. package/dist/utils/types.d.ts +1 -0
  67. package/dist-es/accordion.css-mistica.js +7 -7
  68. package/dist-es/accordion.js +140 -123
  69. package/dist-es/callout.js +55 -43
  70. package/dist-es/card.css-mistica.js +2 -2
  71. package/dist-es/card.js +721 -588
  72. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  73. package/dist-es/community/advanced-data-card.js +217 -130
  74. package/dist-es/cover-hero.css-mistica.js +3 -3
  75. package/dist-es/cover-hero.js +132 -90
  76. package/dist-es/empty-state.js +40 -31
  77. package/dist-es/header.css-mistica.js +2 -2
  78. package/dist-es/header.js +174 -104
  79. package/dist-es/hero.css-mistica.js +2 -2
  80. package/dist-es/hero.js +150 -115
  81. package/dist-es/highlighted-card.js +36 -27
  82. package/dist-es/index.js +1839 -1838
  83. package/dist-es/maybe-dismissable.js +17 -14
  84. package/dist-es/meter.js +346 -0
  85. package/dist-es/mosaic.js +73 -71
  86. package/dist-es/navigation-bar.css-mistica.js +14 -15
  87. package/dist-es/navigation-bar.js +864 -240
  88. package/dist-es/package-version.js +1 -1
  89. package/dist-es/sheet-common.css-mistica.js +2 -2
  90. package/dist-es/sheet-common.js +124 -116
  91. package/dist-es/sheet-info.css-mistica.js +2 -2
  92. package/dist-es/sheet-info.js +74 -56
  93. package/dist-es/sheet-native.js +59 -48
  94. package/dist-es/sheet-web.js +10 -8
  95. package/dist-es/skins/blau.js +94 -94
  96. package/dist-es/skins/movistar.js +94 -94
  97. package/dist-es/skins/o2-new.js +94 -94
  98. package/dist-es/skins/o2.js +94 -94
  99. package/dist-es/skins/telefonica.js +94 -94
  100. package/dist-es/skins/tu.js +94 -94
  101. package/dist-es/skins/vivo-new.js +98 -98
  102. package/dist-es/skins/vivo.js +94 -94
  103. package/dist-es/style.css +1 -1
  104. package/dist-es/text-tokens.js +72 -52
  105. package/dist-es/theme-context-provider.js +88 -78
  106. package/dist-es/theme.js +20 -20
  107. package/dist-es/utils/headings.js +2 -0
  108. package/package.json +2 -1
package/dist/skins/tu.js CHANGED
@@ -343,154 +343,154 @@ const e = {
343
343
  mediaSmall: "8px"
344
344
  },
345
345
  textPresets: {
346
- cardTitle: {
347
- weight: "medium"
348
- },
349
346
  button: {
350
347
  weight: "medium"
351
348
  },
352
- tabsLabel: {
353
- weight: "medium",
354
- size: {
355
- mobile: 16,
356
- desktop: 18
357
- },
358
- lineHeight: {
359
- mobile: 24,
360
- desktop: 24
361
- }
349
+ cardTitle: {
350
+ weight: "medium"
362
351
  },
363
- link: {
352
+ indicator: {
364
353
  weight: "medium"
365
354
  },
366
- title1: {
355
+ link: {
367
356
  weight: "medium"
368
357
  },
369
- title2: {
358
+ navigationBar: {
370
359
  weight: "medium"
371
360
  },
372
- title3: {
373
- weight: "medium",
361
+ tabsLabel: {
362
+ lineHeight: {
363
+ desktop: 24,
364
+ mobile: 24
365
+ },
374
366
  size: {
375
- mobile: 20,
376
- desktop: 28
367
+ desktop: 18,
368
+ mobile: 16
377
369
  },
378
- lineHeight: {
379
- mobile: 24,
380
- desktop: 32
381
- }
382
- },
383
- indicator: {
384
- weight: "medium"
385
- },
386
- navigationBar: {
387
370
  weight: "medium"
388
371
  },
389
372
  text1: {
390
- size: {
391
- mobile: 12,
392
- desktop: 14
393
- },
394
373
  lineHeight: {
395
- mobile: 16,
396
- desktop: 20
374
+ desktop: 20,
375
+ mobile: 16
376
+ },
377
+ size: {
378
+ desktop: 14,
379
+ mobile: 12
397
380
  }
398
381
  },
399
382
  text2: {
400
- size: {
401
- mobile: 14,
402
- desktop: 16
403
- },
404
383
  lineHeight: {
405
- mobile: 20,
406
- desktop: 24
384
+ desktop: 24,
385
+ mobile: 20
386
+ },
387
+ size: {
388
+ desktop: 16,
389
+ mobile: 14
407
390
  }
408
391
  },
409
392
  text3: {
410
- size: {
411
- mobile: 16,
412
- desktop: 18
413
- },
414
393
  lineHeight: {
415
- mobile: 24,
416
- desktop: 24
394
+ desktop: 24,
395
+ mobile: 24
396
+ },
397
+ size: {
398
+ desktop: 18,
399
+ mobile: 16
417
400
  }
418
401
  },
419
402
  text4: {
420
- size: {
421
- mobile: 18,
422
- desktop: 20
423
- },
424
403
  lineHeight: {
425
- mobile: 24,
426
- desktop: 28
404
+ desktop: 28,
405
+ mobile: 24
406
+ },
407
+ size: {
408
+ desktop: 20,
409
+ mobile: 18
427
410
  }
428
411
  },
429
412
  text5: {
430
- weight: "medium",
413
+ lineHeight: {
414
+ desktop: 32,
415
+ mobile: 24
416
+ },
431
417
  size: {
432
- mobile: 20,
433
- desktop: 28
418
+ desktop: 28,
419
+ mobile: 20
434
420
  },
435
- lineHeight: {
436
- mobile: 24,
437
- desktop: 32
438
- }
421
+ weight: "medium"
439
422
  },
440
423
  text6: {
441
- weight: "medium",
424
+ lineHeight: {
425
+ desktop: 40,
426
+ mobile: 32
427
+ },
442
428
  size: {
443
- mobile: 24,
444
- desktop: 32
429
+ desktop: 32,
430
+ mobile: 24
445
431
  },
446
- lineHeight: {
447
- mobile: 32,
448
- desktop: 40
449
- }
432
+ weight: "medium"
450
433
  },
451
434
  text7: {
452
- weight: "medium",
435
+ lineHeight: {
436
+ desktop: 48,
437
+ mobile: 32
438
+ },
453
439
  size: {
454
- mobile: 28,
455
- desktop: 40
440
+ desktop: 40,
441
+ mobile: 28
456
442
  },
457
- lineHeight: {
458
- mobile: 32,
459
- desktop: 48
460
- }
443
+ weight: "medium"
461
444
  },
462
445
  text8: {
463
- weight: "medium",
446
+ lineHeight: {
447
+ desktop: 56,
448
+ mobile: 40
449
+ },
464
450
  size: {
465
- mobile: 32,
466
- desktop: 48
451
+ desktop: 48,
452
+ mobile: 32
467
453
  },
468
- lineHeight: {
469
- mobile: 40,
470
- desktop: 56
471
- }
454
+ weight: "medium"
472
455
  },
473
456
  text9: {
474
- weight: "medium",
457
+ lineHeight: {
458
+ desktop: 64,
459
+ mobile: 48
460
+ },
475
461
  size: {
476
- mobile: 40,
477
- desktop: 56
462
+ desktop: 56,
463
+ mobile: 40
478
464
  },
479
- lineHeight: {
480
- mobile: 48,
481
- desktop: 64
482
- }
465
+ weight: "medium"
483
466
  },
484
467
  text10: {
485
- weight: "medium",
468
+ lineHeight: {
469
+ desktop: 72,
470
+ mobile: 56
471
+ },
486
472
  size: {
487
- mobile: 48,
488
- desktop: 64
473
+ desktop: 64,
474
+ mobile: 48
489
475
  },
476
+ weight: "medium"
477
+ },
478
+ title1: {
479
+ weight: "medium"
480
+ },
481
+ title2: {
482
+ weight: "medium"
483
+ },
484
+ title3: {
490
485
  lineHeight: {
491
- mobile: 56,
492
- desktop: 72
493
- }
486
+ desktop: 32,
487
+ mobile: 24
488
+ },
489
+ size: {
490
+ desktop: 28,
491
+ mobile: 20
492
+ },
493
+ weight: "medium"
494
494
  }
495
495
  }
496
496
  });
@@ -338,154 +338,154 @@ const e = {
338
338
  mediaSmall: "8px"
339
339
  },
340
340
  textPresets: {
341
- cardTitle: {
342
- weight: "regular"
343
- },
344
341
  button: {
345
- weight: "regular"
342
+ weight: "medium"
346
343
  },
347
- tabsLabel: {
348
- weight: "regular",
349
- size: {
350
- mobile: 18,
351
- desktop: 18
352
- },
353
- lineHeight: {
354
- mobile: 24,
355
- desktop: 24
356
- }
344
+ cardTitle: {
345
+ weight: "medium"
357
346
  },
358
- link: {
359
- weight: "regular"
347
+ indicator: {
348
+ weight: "medium"
360
349
  },
361
- title1: {
362
- weight: "regular"
350
+ link: {
351
+ weight: "medium"
363
352
  },
364
- title2: {
353
+ navigationBar: {
365
354
  weight: "regular"
366
355
  },
367
- title3: {
368
- weight: "regular",
356
+ tabsLabel: {
357
+ lineHeight: {
358
+ desktop: 24,
359
+ mobile: 24
360
+ },
369
361
  size: {
370
- mobile: 18,
371
- desktop: 20
362
+ desktop: 18,
363
+ mobile: 18
372
364
  },
373
- lineHeight: {
374
- mobile: 24,
375
- desktop: 28
376
- }
377
- },
378
- indicator: {
379
- weight: "regular"
380
- },
381
- navigationBar: {
382
- weight: "regular"
365
+ weight: "medium"
383
366
  },
384
367
  text1: {
385
- size: {
386
- mobile: 12,
387
- desktop: 14
388
- },
389
368
  lineHeight: {
390
- mobile: 16,
391
- desktop: 20
369
+ desktop: 20,
370
+ mobile: 16
371
+ },
372
+ size: {
373
+ desktop: 14,
374
+ mobile: 12
392
375
  }
393
376
  },
394
377
  text2: {
395
- size: {
396
- mobile: 14,
397
- desktop: 16
398
- },
399
378
  lineHeight: {
400
- mobile: 20,
401
- desktop: 24
379
+ desktop: 24,
380
+ mobile: 20
381
+ },
382
+ size: {
383
+ desktop: 16,
384
+ mobile: 14
402
385
  }
403
386
  },
404
387
  text3: {
405
- size: {
406
- mobile: 16,
407
- desktop: 18
408
- },
409
388
  lineHeight: {
410
- mobile: 24,
411
- desktop: 24
389
+ desktop: 24,
390
+ mobile: 24
391
+ },
392
+ size: {
393
+ desktop: 18,
394
+ mobile: 16
412
395
  }
413
396
  },
414
397
  text4: {
415
- size: {
416
- mobile: 18,
417
- desktop: 20
418
- },
419
398
  lineHeight: {
420
- mobile: 24,
421
- desktop: 28
399
+ desktop: 28,
400
+ mobile: 24
401
+ },
402
+ size: {
403
+ desktop: 20,
404
+ mobile: 18
422
405
  }
423
406
  },
424
407
  text5: {
425
- weight: "regular",
408
+ lineHeight: {
409
+ desktop: 32,
410
+ mobile: 24
411
+ },
426
412
  size: {
427
- mobile: 20,
428
- desktop: 28
413
+ desktop: 28,
414
+ mobile: 20
429
415
  },
430
- lineHeight: {
431
- mobile: 24,
432
- desktop: 32
433
- }
416
+ weight: "medium"
434
417
  },
435
418
  text6: {
436
- weight: "regular",
419
+ lineHeight: {
420
+ desktop: 40,
421
+ mobile: 32
422
+ },
437
423
  size: {
438
- mobile: 24,
439
- desktop: 32
424
+ desktop: 32,
425
+ mobile: 24
440
426
  },
441
- lineHeight: {
442
- mobile: 32,
443
- desktop: 40
444
- }
427
+ weight: "medium"
445
428
  },
446
429
  text7: {
447
- weight: "regular",
430
+ lineHeight: {
431
+ desktop: 48,
432
+ mobile: 32
433
+ },
448
434
  size: {
449
- mobile: 28,
450
- desktop: 40
435
+ desktop: 40,
436
+ mobile: 28
451
437
  },
452
- lineHeight: {
453
- mobile: 32,
454
- desktop: 48
455
- }
438
+ weight: "medium"
456
439
  },
457
440
  text8: {
458
- weight: "regular",
441
+ lineHeight: {
442
+ desktop: 56,
443
+ mobile: 40
444
+ },
459
445
  size: {
460
- mobile: 32,
461
- desktop: 48
446
+ desktop: 48,
447
+ mobile: 32
462
448
  },
463
- lineHeight: {
464
- mobile: 40,
465
- desktop: 56
466
- }
449
+ weight: "regular"
467
450
  },
468
451
  text9: {
469
- weight: "regular",
452
+ lineHeight: {
453
+ desktop: 64,
454
+ mobile: 48
455
+ },
470
456
  size: {
471
- mobile: 40,
472
- desktop: 56
457
+ desktop: 56,
458
+ mobile: 40
473
459
  },
474
- lineHeight: {
475
- mobile: 48,
476
- desktop: 64
477
- }
460
+ weight: "regular"
478
461
  },
479
462
  text10: {
480
- weight: "regular",
463
+ lineHeight: {
464
+ desktop: 72,
465
+ mobile: 56
466
+ },
481
467
  size: {
482
- mobile: 48,
483
- desktop: 64
468
+ desktop: 64,
469
+ mobile: 48
484
470
  },
471
+ weight: "regular"
472
+ },
473
+ title1: {
474
+ weight: "medium"
475
+ },
476
+ title2: {
477
+ weight: "medium"
478
+ },
479
+ title3: {
485
480
  lineHeight: {
486
- mobile: 56,
487
- desktop: 72
488
- }
481
+ desktop: 28,
482
+ mobile: 24
483
+ },
484
+ size: {
485
+ desktop: 20,
486
+ mobile: 18
487
+ },
488
+ weight: "medium"
489
489
  }
490
490
  }
491
491
  });