@telefonica/mistica 15.16.4 → 15.18.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 (114) hide show
  1. package/css/mistica.css +1 -1
  2. package/css/roboto.css +102 -34
  3. package/dist/box.d.ts +1 -0
  4. package/dist/box.js +11 -10
  5. package/dist/callout.d.ts +1 -0
  6. package/dist/callout.js +10 -10
  7. package/dist/card.d.ts +6 -1
  8. package/dist/card.js +375 -365
  9. package/dist/chip.d.ts +1 -0
  10. package/dist/chip.js +25 -26
  11. package/dist/dialog.d.ts +1 -0
  12. package/dist/dialog.js +65 -62
  13. package/dist/feedback.js +58 -52
  14. package/dist/generated/mistica-icons/icon-box-star-filled.d.ts +4 -0
  15. package/dist/generated/mistica-icons/icon-box-star-filled.js +121 -0
  16. package/dist/generated/mistica-icons/icon-box-star-light.d.ts +4 -0
  17. package/dist/generated/mistica-icons/icon-box-star-light.js +117 -0
  18. package/dist/generated/mistica-icons/icon-box-star-regular.d.ts +4 -0
  19. package/dist/generated/mistica-icons/icon-box-star-regular.js +117 -0
  20. package/dist/generated/mistica-icons/icon-high-priority-filled.d.ts +4 -0
  21. package/dist/generated/mistica-icons/icon-high-priority-filled.js +111 -0
  22. package/dist/generated/mistica-icons/icon-high-priority-light.d.ts +4 -0
  23. package/dist/generated/mistica-icons/icon-high-priority-light.js +111 -0
  24. package/dist/generated/mistica-icons/icon-high-priority-regular.d.ts +4 -0
  25. package/dist/generated/mistica-icons/icon-high-priority-regular.js +111 -0
  26. package/dist/generated/mistica-icons/icon-mms-filled.d.ts +4 -0
  27. package/dist/generated/mistica-icons/icon-mms-filled.js +122 -0
  28. package/dist/generated/mistica-icons/icon-mms-light.d.ts +4 -0
  29. package/dist/generated/mistica-icons/icon-mms-light.js +134 -0
  30. package/dist/generated/mistica-icons/icon-mms-regular.d.ts +4 -0
  31. package/dist/generated/mistica-icons/icon-mms-regular.js +134 -0
  32. package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.d.ts +4 -0
  33. package/dist/generated/mistica-icons/icon-vivo-valoriza-filled.js +111 -0
  34. package/dist/generated/mistica-icons/icon-vivo-valoriza-light.d.ts +4 -0
  35. package/dist/generated/mistica-icons/icon-vivo-valoriza-light.js +117 -0
  36. package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.d.ts +4 -0
  37. package/dist/generated/mistica-icons/icon-vivo-valoriza-regular.js +117 -0
  38. package/dist/generated/mistica-icons/icons-keywords.js +31 -0
  39. package/dist/index.d.ts +12 -0
  40. package/dist/index.js +48 -0
  41. package/dist/inline.css-mistica.js +11 -8
  42. package/dist/inline.css.d.ts +1 -0
  43. package/dist/inline.js +12 -12
  44. package/dist/list.d.ts +1 -0
  45. package/dist/list.js +163 -157
  46. package/dist/package-version.js +1 -1
  47. package/dist/popover.d.ts +1 -0
  48. package/dist/popover.js +9 -7
  49. package/dist/select.js +103 -95
  50. package/dist/skins/blau.js +96 -8
  51. package/dist/skins/defaults.js +98 -10
  52. package/dist/skins/movistar.js +94 -6
  53. package/dist/skins/o2-new.js +95 -7
  54. package/dist/skins/o2.js +94 -6
  55. package/dist/skins/skin-contract.css-mistica.js +42 -10
  56. package/dist/skins/skin-contract.css.d.ts +32 -0
  57. package/dist/skins/telefonica.js +96 -8
  58. package/dist/skins/tu.js +94 -6
  59. package/dist/skins/types/index.d.ts +36 -28
  60. package/dist/skins/vivo-new.js +95 -7
  61. package/dist/skins/vivo.js +94 -6
  62. package/dist/snackbar-context.js +23 -22
  63. package/dist/snackbar.d.ts +1 -0
  64. package/dist/snackbar.js +63 -57
  65. package/dist/theme-context-provider.js +91 -63
  66. package/dist/theme-context.css-mistica.js +452 -0
  67. package/dist/theme-context.css.d.ts +432 -0
  68. package/dist/theme-context.css.ts.vanilla.css-mistica.js +11 -0
  69. package/dist/tooltip.d.ts +1 -0
  70. package/dist/tooltip.js +110 -110
  71. package/dist-es/box.js +17 -16
  72. package/dist-es/callout.js +38 -38
  73. package/dist-es/card.js +492 -482
  74. package/dist-es/chip.js +49 -50
  75. package/dist-es/dialog.js +78 -75
  76. package/dist-es/feedback.js +96 -89
  77. package/dist-es/generated/mistica-icons/icon-box-star-filled.js +112 -0
  78. package/dist-es/generated/mistica-icons/icon-box-star-light.js +108 -0
  79. package/dist-es/generated/mistica-icons/icon-box-star-regular.js +108 -0
  80. package/dist-es/generated/mistica-icons/icon-high-priority-filled.js +102 -0
  81. package/dist-es/generated/mistica-icons/icon-high-priority-light.js +102 -0
  82. package/dist-es/generated/mistica-icons/icon-high-priority-regular.js +102 -0
  83. package/dist-es/generated/mistica-icons/icon-mms-filled.js +113 -0
  84. package/dist-es/generated/mistica-icons/icon-mms-light.js +125 -0
  85. package/dist-es/generated/mistica-icons/icon-mms-regular.js +125 -0
  86. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-filled.js +102 -0
  87. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-light.js +108 -0
  88. package/dist-es/generated/mistica-icons/icon-vivo-valoriza-regular.js +108 -0
  89. package/dist-es/generated/mistica-icons/icons-keywords.js +31 -0
  90. package/dist-es/index.js +1563 -1551
  91. package/dist-es/inline.css-mistica.js +3 -3
  92. package/dist-es/inline.js +23 -23
  93. package/dist-es/list.js +225 -219
  94. package/dist-es/package-version.js +1 -1
  95. package/dist-es/popover.js +26 -24
  96. package/dist-es/select.js +146 -138
  97. package/dist-es/skins/blau.js +96 -8
  98. package/dist-es/skins/defaults.js +97 -9
  99. package/dist-es/skins/movistar.js +94 -6
  100. package/dist-es/skins/o2-new.js +95 -7
  101. package/dist-es/skins/o2.js +94 -6
  102. package/dist-es/skins/skin-contract.css-mistica.js +42 -10
  103. package/dist-es/skins/telefonica.js +98 -10
  104. package/dist-es/skins/tu.js +94 -6
  105. package/dist-es/skins/vivo-new.js +95 -7
  106. package/dist-es/skins/vivo.js +94 -6
  107. package/dist-es/snackbar-context.js +25 -24
  108. package/dist-es/snackbar.js +91 -85
  109. package/dist-es/style.css +1 -1
  110. package/dist-es/theme-context-provider.js +133 -105
  111. package/dist-es/theme-context.css-mistica.js +432 -0
  112. package/dist-es/theme-context.css.ts.vanilla.css-mistica.js +2 -0
  113. package/dist-es/tooltip.js +149 -149
  114. package/package.json +2 -3
@@ -1,4 +1,4 @@
1
- import { TELEFONICA_SKIN as a } from "./constants.js";
1
+ import { TELEFONICA_SKIN as t } from "./constants.js";
2
2
  import { applyAlpha as r } from "../utils/color.js";
3
3
  const e = {
4
4
  telefonicaBlue: "#0066FF",
@@ -37,8 +37,8 @@ const e = {
37
37
  darkModeBlack: "#191919",
38
38
  darkModeGrey: "#242424",
39
39
  darkModeGrey6: "#313235"
40
- }, c = ()=>({
41
- name: a,
40
+ }, i = ()=>({
41
+ name: t,
42
42
  colors: {
43
43
  appBarBackground: e.white,
44
44
  background: e.white,
@@ -357,24 +357,112 @@ const e = {
357
357
  navigationBar: {
358
358
  weight: "medium"
359
359
  },
360
+ text1: {
361
+ size: {
362
+ mobile: 12,
363
+ desktop: 14
364
+ },
365
+ lineHeight: {
366
+ mobile: 16,
367
+ desktop: 20
368
+ }
369
+ },
370
+ text2: {
371
+ size: {
372
+ mobile: 14,
373
+ desktop: 16
374
+ },
375
+ lineHeight: {
376
+ mobile: 20,
377
+ desktop: 24
378
+ }
379
+ },
380
+ text3: {
381
+ size: {
382
+ mobile: 16,
383
+ desktop: 18
384
+ },
385
+ lineHeight: {
386
+ mobile: 24,
387
+ desktop: 24
388
+ }
389
+ },
390
+ text4: {
391
+ size: {
392
+ mobile: 18,
393
+ desktop: 20
394
+ },
395
+ lineHeight: {
396
+ mobile: 24,
397
+ desktop: 28
398
+ }
399
+ },
360
400
  text5: {
361
- weight: "regular"
401
+ weight: "regular",
402
+ size: {
403
+ mobile: 20,
404
+ desktop: 28
405
+ },
406
+ lineHeight: {
407
+ mobile: 24,
408
+ desktop: 32
409
+ }
362
410
  },
363
411
  text6: {
364
- weight: "regular"
412
+ weight: "regular",
413
+ size: {
414
+ mobile: 24,
415
+ desktop: 32
416
+ },
417
+ lineHeight: {
418
+ mobile: 32,
419
+ desktop: 40
420
+ }
365
421
  },
366
422
  text7: {
367
- weight: "regular"
423
+ weight: "regular",
424
+ size: {
425
+ mobile: 28,
426
+ desktop: 40
427
+ },
428
+ lineHeight: {
429
+ mobile: 32,
430
+ desktop: 48
431
+ }
368
432
  },
369
433
  text8: {
370
- weight: "regular"
434
+ weight: "regular",
435
+ size: {
436
+ mobile: 32,
437
+ desktop: 48
438
+ },
439
+ lineHeight: {
440
+ mobile: 40,
441
+ desktop: 56
442
+ }
371
443
  },
372
444
  text9: {
373
- weight: "regular"
445
+ weight: "regular",
446
+ size: {
447
+ mobile: 40,
448
+ desktop: 56
449
+ },
450
+ lineHeight: {
451
+ mobile: 48,
452
+ desktop: 64
453
+ }
374
454
  },
375
455
  text10: {
376
- weight: "regular"
456
+ weight: "regular",
457
+ size: {
458
+ mobile: 48,
459
+ desktop: 64
460
+ },
461
+ lineHeight: {
462
+ mobile: 56,
463
+ desktop: 72
464
+ }
377
465
  }
378
466
  }
379
467
  });
380
- export { c as getTelefonicaSkin, e as palette };
468
+ export { i as getTelefonicaSkin, e as palette };
@@ -361,23 +361,111 @@ const e = {
361
361
  navigationBar: {
362
362
  weight: "medium"
363
363
  },
364
+ text1: {
365
+ size: {
366
+ mobile: 12,
367
+ desktop: 14
368
+ },
369
+ lineHeight: {
370
+ mobile: 16,
371
+ desktop: 20
372
+ }
373
+ },
374
+ text2: {
375
+ size: {
376
+ mobile: 14,
377
+ desktop: 16
378
+ },
379
+ lineHeight: {
380
+ mobile: 20,
381
+ desktop: 24
382
+ }
383
+ },
384
+ text3: {
385
+ size: {
386
+ mobile: 16,
387
+ desktop: 18
388
+ },
389
+ lineHeight: {
390
+ mobile: 24,
391
+ desktop: 24
392
+ }
393
+ },
394
+ text4: {
395
+ size: {
396
+ mobile: 18,
397
+ desktop: 20
398
+ },
399
+ lineHeight: {
400
+ mobile: 24,
401
+ desktop: 28
402
+ }
403
+ },
364
404
  text5: {
365
- weight: "medium"
405
+ weight: "medium",
406
+ size: {
407
+ mobile: 20,
408
+ desktop: 28
409
+ },
410
+ lineHeight: {
411
+ mobile: 24,
412
+ desktop: 32
413
+ }
366
414
  },
367
415
  text6: {
368
- weight: "medium"
416
+ weight: "medium",
417
+ size: {
418
+ mobile: 24,
419
+ desktop: 32
420
+ },
421
+ lineHeight: {
422
+ mobile: 32,
423
+ desktop: 40
424
+ }
369
425
  },
370
426
  text7: {
371
- weight: "medium"
427
+ weight: "medium",
428
+ size: {
429
+ mobile: 28,
430
+ desktop: 40
431
+ },
432
+ lineHeight: {
433
+ mobile: 32,
434
+ desktop: 48
435
+ }
372
436
  },
373
437
  text8: {
374
- weight: "medium"
438
+ weight: "medium",
439
+ size: {
440
+ mobile: 32,
441
+ desktop: 48
442
+ },
443
+ lineHeight: {
444
+ mobile: 40,
445
+ desktop: 56
446
+ }
375
447
  },
376
448
  text9: {
377
- weight: "medium"
449
+ weight: "medium",
450
+ size: {
451
+ mobile: 40,
452
+ desktop: 56
453
+ },
454
+ lineHeight: {
455
+ mobile: 48,
456
+ desktop: 64
457
+ }
378
458
  },
379
459
  text10: {
380
- weight: "medium"
460
+ weight: "medium",
461
+ size: {
462
+ mobile: 48,
463
+ desktop: 64
464
+ },
465
+ lineHeight: {
466
+ mobile: 56,
467
+ desktop: 72
468
+ }
381
469
  }
382
470
  }
383
471
  });
@@ -153,7 +153,7 @@ const e = {
153
153
  textNavigationBarSecondary: e.vivoPurpleLight50,
154
154
  textNavigationSearchBarHint: e.vivoPurpleLight50,
155
155
  textNavigationSearchBarText: e.white,
156
- textAppBar: e.grey4,
156
+ textAppBar: e.grey5,
157
157
  textAppBarSelected: e.vivoPurple,
158
158
  customTabsBackground: e.white,
159
159
  tagTextPromo: e.vivoPurple,
@@ -356,23 +356,111 @@ const e = {
356
356
  navigationBar: {
357
357
  weight: "regular"
358
358
  },
359
+ text1: {
360
+ size: {
361
+ mobile: 12,
362
+ desktop: 14
363
+ },
364
+ lineHeight: {
365
+ mobile: 16,
366
+ desktop: 20
367
+ }
368
+ },
369
+ text2: {
370
+ size: {
371
+ mobile: 14,
372
+ desktop: 16
373
+ },
374
+ lineHeight: {
375
+ mobile: 20,
376
+ desktop: 24
377
+ }
378
+ },
379
+ text3: {
380
+ size: {
381
+ mobile: 16,
382
+ desktop: 18
383
+ },
384
+ lineHeight: {
385
+ mobile: 24,
386
+ desktop: 24
387
+ }
388
+ },
389
+ text4: {
390
+ size: {
391
+ mobile: 18,
392
+ desktop: 20
393
+ },
394
+ lineHeight: {
395
+ mobile: 24,
396
+ desktop: 28
397
+ }
398
+ },
359
399
  text5: {
360
- weight: "regular"
400
+ weight: "regular",
401
+ size: {
402
+ mobile: 20,
403
+ desktop: 28
404
+ },
405
+ lineHeight: {
406
+ mobile: 24,
407
+ desktop: 32
408
+ }
361
409
  },
362
410
  text6: {
363
- weight: "regular"
411
+ weight: "regular",
412
+ size: {
413
+ mobile: 24,
414
+ desktop: 32
415
+ },
416
+ lineHeight: {
417
+ mobile: 32,
418
+ desktop: 40
419
+ }
364
420
  },
365
421
  text7: {
366
- weight: "regular"
422
+ weight: "regular",
423
+ size: {
424
+ mobile: 28,
425
+ desktop: 40
426
+ },
427
+ lineHeight: {
428
+ mobile: 32,
429
+ desktop: 48
430
+ }
367
431
  },
368
432
  text8: {
369
- weight: "regular"
433
+ weight: "regular",
434
+ size: {
435
+ mobile: 32,
436
+ desktop: 48
437
+ },
438
+ lineHeight: {
439
+ mobile: 40,
440
+ desktop: 56
441
+ }
370
442
  },
371
443
  text9: {
372
- weight: "regular"
444
+ weight: "regular",
445
+ size: {
446
+ mobile: 40,
447
+ desktop: 56
448
+ },
449
+ lineHeight: {
450
+ mobile: 48,
451
+ desktop: 64
452
+ }
373
453
  },
374
454
  text10: {
375
- weight: "regular"
455
+ weight: "regular",
456
+ size: {
457
+ mobile: 48,
458
+ desktop: 64
459
+ },
460
+ lineHeight: {
461
+ mobile: 56,
462
+ desktop: 72
463
+ }
376
464
  }
377
465
  }
378
466
  });
@@ -356,23 +356,111 @@ const e = {
356
356
  navigationBar: {
357
357
  weight: "medium"
358
358
  },
359
+ text1: {
360
+ size: {
361
+ mobile: 12,
362
+ desktop: 14
363
+ },
364
+ lineHeight: {
365
+ mobile: 16,
366
+ desktop: 20
367
+ }
368
+ },
369
+ text2: {
370
+ size: {
371
+ mobile: 14,
372
+ desktop: 16
373
+ },
374
+ lineHeight: {
375
+ mobile: 20,
376
+ desktop: 24
377
+ }
378
+ },
379
+ text3: {
380
+ size: {
381
+ mobile: 16,
382
+ desktop: 18
383
+ },
384
+ lineHeight: {
385
+ mobile: 24,
386
+ desktop: 24
387
+ }
388
+ },
389
+ text4: {
390
+ size: {
391
+ mobile: 18,
392
+ desktop: 20
393
+ },
394
+ lineHeight: {
395
+ mobile: 24,
396
+ desktop: 28
397
+ }
398
+ },
359
399
  text5: {
360
- weight: "light"
400
+ weight: "light",
401
+ size: {
402
+ mobile: 20,
403
+ desktop: 28
404
+ },
405
+ lineHeight: {
406
+ mobile: 24,
407
+ desktop: 32
408
+ }
361
409
  },
362
410
  text6: {
363
- weight: "light"
411
+ weight: "light",
412
+ size: {
413
+ mobile: 24,
414
+ desktop: 32
415
+ },
416
+ lineHeight: {
417
+ mobile: 32,
418
+ desktop: 40
419
+ }
364
420
  },
365
421
  text7: {
366
- weight: "light"
422
+ weight: "light",
423
+ size: {
424
+ mobile: 28,
425
+ desktop: 40
426
+ },
427
+ lineHeight: {
428
+ mobile: 32,
429
+ desktop: 48
430
+ }
367
431
  },
368
432
  text8: {
369
- weight: "light"
433
+ weight: "light",
434
+ size: {
435
+ mobile: 32,
436
+ desktop: 48
437
+ },
438
+ lineHeight: {
439
+ mobile: 40,
440
+ desktop: 56
441
+ }
370
442
  },
371
443
  text9: {
372
- weight: "light"
444
+ weight: "light",
445
+ size: {
446
+ mobile: 40,
447
+ desktop: 56
448
+ },
449
+ lineHeight: {
450
+ mobile: 48,
451
+ desktop: 64
452
+ }
373
453
  },
374
454
  text10: {
375
- weight: "light"
455
+ weight: "light",
456
+ size: {
457
+ mobile: 48,
458
+ desktop: 64
459
+ },
460
+ lineHeight: {
461
+ mobile: 56,
462
+ desktop: 72
463
+ }
376
464
  }
377
465
  }
378
466
  });
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsxs as d, jsx as f } from "react/jsx-runtime";
54
+ import { jsxs as m, jsx as f } from "react/jsx-runtime";
55
55
  import * as e from "react";
56
56
  import { isWebViewBridgeAvailable as C } from "@tef-novum/webview-bridge";
57
57
  const k = /*#__PURE__*/ e.createContext({
@@ -59,60 +59,61 @@ const k = /*#__PURE__*/ e.createContext({
59
59
  setSnackbars: ()=>{}
60
60
  }), p = /*#__PURE__*/ e.lazy(()=>import(/* webpackChunkName: "snackbar" */ "./snackbar.js")), R = (param)=>{
61
61
  let { children: l } = param;
62
- const [s, n] = e.useState([]), o = e.useRef(null), a = e.useRef(!1), r = C();
62
+ const [t, n] = e.useState([]), o = e.useRef(null), a = e.useRef(!1), r = C();
63
63
  e.useEffect(()=>{
64
64
  var c;
65
- s.length > 1 && !a.current && (a.current = !0, r ? n((i)=>i.slice(1)) : (c = o.current) == null || c.close({
65
+ t.length > 1 && !a.current && (a.current = !0, r ? n((i)=>i.slice(1)) : (c = o.current) == null || c.close({
66
66
  action: "CONSECUTIVE"
67
67
  }));
68
68
  }, [
69
- s,
69
+ t,
70
70
  r
71
71
  ]);
72
- const S = (param)=>{
72
+ const d = (param)=>{
73
73
  let { action: c } = param;
74
74
  var i, b;
75
- a.current = !1, n(r && c === "CONSECUTIVE" ? (u)=>u.slice(0) : (u)=>u.slice(1)), (b = (i = s[0]).onClose) == null || b.call(i, {
75
+ a.current = !1, n(r && c === "CONSECUTIVE" ? (u)=>u.slice(0) : (u)=>u.slice(1)), (b = (i = t[0]).onClose) == null || b.call(i, {
76
76
  action: c
77
77
  });
78
- }, m = e.useMemo(()=>({
79
- snackbars: s,
78
+ }, S = e.useMemo(()=>({
79
+ snackbars: t,
80
80
  setSnackbars: n
81
81
  }), [
82
- s
83
- ]), t = s[0];
84
- return /* @__PURE__ */ d(k.Provider, {
85
- value: m,
82
+ t
83
+ ]), s = t[0];
84
+ return /* @__PURE__ */ m(k.Provider, {
85
+ value: S,
86
86
  children: [
87
87
  l,
88
- !!t && /* @__PURE__ */ f(e.Suspense, {
88
+ !!s && /* @__PURE__ */ f(e.Suspense, {
89
89
  fallback: null,
90
90
  children: /* @__PURE__ */ f(p, {
91
91
  ref: o,
92
- message: t.message,
93
- buttonText: t.buttonText,
94
- buttonAccessibilityLabel: t.buttonAccessibilityLabel,
95
- duration: t.duration,
96
- type: t.type,
97
- withDismiss: t.withDismiss,
98
- onClose: S
99
- }, t.id)
92
+ message: s.message,
93
+ buttonText: s.buttonText,
94
+ buttonAccessibilityLabel: s.buttonAccessibilityLabel,
95
+ duration: s.duration,
96
+ type: s.type,
97
+ withDismiss: s.withDismiss,
98
+ dataAttributes: s.dataAttributes,
99
+ onClose: d
100
+ }, s.id)
100
101
  })
101
102
  ]
102
103
  });
103
104
  }, g = ()=>{
104
- const { snackbars: l, setSnackbars: s } = e.useContext(k);
105
+ const { snackbars: l, setSnackbars: t } = e.useContext(k);
105
106
  return {
106
107
  openSnackbar: e.useCallback((o)=>{
107
108
  const a = Date.now() + "-" + Math.random();
108
- s((r)=>[
109
+ t((r)=>[
109
110
  ...r,
110
111
  _object_spread_props(_object_spread({}, o), {
111
112
  id: a
112
113
  })
113
114
  ]);
114
115
  }, [
115
- s
116
+ t
116
117
  ]),
117
118
  snackbars: l
118
119
  };