@telefonica/mistica 15.9.0 → 15.11.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/dist/boxed.css-mistica.js +35 -2
  3. package/dist/boxed.css.d.ts +29 -0
  4. package/dist/boxed.d.ts +6 -4
  5. package/dist/boxed.js +30 -24
  6. package/dist/button-group.css-mistica.js +14 -5
  7. package/dist/button-group.css.d.ts +3 -0
  8. package/dist/button-group.d.ts +2 -1
  9. package/dist/button-group.js +29 -16
  10. package/dist/button-layout.css-mistica.js +7 -7
  11. package/dist/button-layout.css.d.ts +1 -1
  12. package/dist/button-layout.js +9 -9
  13. package/dist/button.d.ts +4 -24
  14. package/dist/button.js +6 -4
  15. package/dist/card.d.ts +8 -1
  16. package/dist/card.js +567 -501
  17. package/dist/carousel.css-mistica.js +19 -16
  18. package/dist/carousel.css.d.ts +1 -0
  19. package/dist/carousel.js +41 -39
  20. package/dist/chip.js +37 -44
  21. package/dist/circle.d.ts +11 -4
  22. package/dist/circle.js +10 -11
  23. package/dist/community/advanced-data-card.css-mistica.js +24 -21
  24. package/dist/community/advanced-data-card.css.d.ts +1 -0
  25. package/dist/community/advanced-data-card.d.ts +1 -0
  26. package/dist/community/advanced-data-card.js +20 -17
  27. package/dist/counter.js +26 -22
  28. package/dist/cover-hero-media.d.ts +12 -0
  29. package/dist/cover-hero-media.js +44 -0
  30. package/dist/cover-hero.css-mistica.js +56 -0
  31. package/dist/cover-hero.css.d.ts +14 -0
  32. package/dist/cover-hero.css.ts.vanilla.css-mistica.js +11 -0
  33. package/dist/cover-hero.d.ts +38 -0
  34. package/dist/cover-hero.js +296 -0
  35. package/dist/empty-state.js +6 -6
  36. package/dist/grid-layout.css-mistica.js +11 -8
  37. package/dist/grid-layout.css.d.ts +1 -0
  38. package/dist/grid-layout.d.ts +12 -22
  39. package/dist/grid-layout.js +63 -49
  40. package/dist/header.js +18 -18
  41. package/dist/highlighted-card.d.ts +1 -0
  42. package/dist/highlighted-card.js +22 -18
  43. package/dist/icon-button.d.ts +7 -6
  44. package/dist/image.js +69 -48
  45. package/dist/index.d.ts +4 -1
  46. package/dist/index.js +15 -0
  47. package/dist/list.d.ts +1 -0
  48. package/dist/navigation-bar.d.ts +1 -1
  49. package/dist/navigation-bar.js +1 -1
  50. package/dist/package-version.js +1 -1
  51. package/dist/select.js +16 -12
  52. package/dist/skins/movistar.d.ts +13 -0
  53. package/dist/skins/movistar.js +112 -99
  54. package/dist/spinner.js +19 -18
  55. package/dist/table.css-mistica.js +58 -0
  56. package/dist/table.css.d.ts +13 -0
  57. package/dist/table.css.ts.vanilla.css-mistica.js +11 -0
  58. package/dist/table.d.ts +39 -0
  59. package/dist/table.js +269 -0
  60. package/dist/text.d.ts +1 -1
  61. package/dist/theme.d.ts +20 -0
  62. package/dist/theme.js +80 -20
  63. package/dist/timer.css-mistica.js +39 -0
  64. package/dist/timer.css.d.ts +8 -0
  65. package/dist/timer.css.ts.vanilla.css-mistica.js +11 -0
  66. package/dist/timer.d.ts +27 -0
  67. package/dist/timer.js +370 -0
  68. package/dist/tooltip.js +13 -13
  69. package/dist/touchable.d.ts +2 -0
  70. package/dist/touchable.js +35 -31
  71. package/dist/utils/helpers.js +32 -32
  72. package/dist-es/boxed.css-mistica.js +29 -2
  73. package/dist-es/boxed.js +37 -31
  74. package/dist-es/button-group.css-mistica.js +2 -2
  75. package/dist-es/button-group.js +37 -24
  76. package/dist-es/button-layout.css-mistica.js +2 -2
  77. package/dist-es/button-layout.js +16 -16
  78. package/dist-es/button.js +24 -22
  79. package/dist-es/card.js +681 -618
  80. package/dist-es/carousel.css-mistica.js +7 -7
  81. package/dist-es/carousel.js +75 -73
  82. package/dist-es/chip.js +57 -64
  83. package/dist-es/circle.js +15 -16
  84. package/dist-es/community/advanced-data-card.css-mistica.js +4 -4
  85. package/dist-es/community/advanced-data-card.js +59 -56
  86. package/dist-es/counter.js +62 -58
  87. package/dist-es/cover-hero-media.js +30 -0
  88. package/dist-es/cover-hero.css-mistica.js +9 -0
  89. package/dist-es/cover-hero.css.ts.vanilla.css-mistica.js +2 -0
  90. package/dist-es/cover-hero.js +241 -0
  91. package/dist-es/empty-state.js +13 -13
  92. package/dist-es/grid-layout.css-mistica.js +3 -3
  93. package/dist-es/grid-layout.js +80 -66
  94. package/dist-es/header.js +37 -37
  95. package/dist-es/highlighted-card.js +35 -31
  96. package/dist-es/image.js +88 -67
  97. package/dist-es/index.js +1817 -1814
  98. package/dist-es/navigation-bar.js +1 -1
  99. package/dist-es/package-version.js +1 -1
  100. package/dist-es/select.js +23 -18
  101. package/dist-es/skins/movistar.js +112 -99
  102. package/dist-es/spinner.js +38 -37
  103. package/dist-es/style.css +1 -1
  104. package/dist-es/table.css-mistica.js +14 -0
  105. package/dist-es/table.css.ts.vanilla.css-mistica.js +2 -0
  106. package/dist-es/table.js +214 -0
  107. package/dist-es/theme.js +77 -17
  108. package/dist-es/timer.css-mistica.js +4 -0
  109. package/dist-es/timer.css.ts.vanilla.css-mistica.js +2 -0
  110. package/dist-es/timer.js +307 -0
  111. package/dist-es/tooltip.js +16 -16
  112. package/dist-es/touchable.js +47 -43
  113. package/dist-es/utils/helpers.js +31 -31
  114. package/package.json +1 -1
@@ -152,7 +152,7 @@ const we = (param)=>{
152
152
  ]
153
153
  });
154
154
  }, mn = (param)=>{
155
- let { sections: n, selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
155
+ let { sections: n = [], selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
156
156
  const { texts: m, isDarkMode: q } = C(), [d, I] = x.useState(!1), [O, h] = x.useState("closed"), R = ne(), J = q ? 1 : 0.2, { isTabletOrSmaller: K } = re(), y = pe();
157
157
  l = l !== null && l !== void 0 ? l : /* @__PURE__ */ e(z, {
158
158
  size: {
@@ -1,2 +1,2 @@
1
- const o = "15.9.0";
1
+ const o = "15.11.0";
2
2
  export { o as PACKAGE_VERSION };
package/dist-es/select.js CHANGED
@@ -64,7 +64,7 @@ import $e from "./overlay.js";
64
64
  import { isAndroid as Be, isIos as qe } from "./utils/platform.js";
65
65
  import { cancelEvent as m } from "./utils/dom.js";
66
66
  import { Text3 as ze } from "./text.js";
67
- import { selectVariants as je, arrowDown as Ke, iconContainer as oe, selectContainerVariants as Ue, selectTextVariants as Xe, vars as y, optionsContainer as Je, optionsAnimationsVariants as ie, menuItem as Qe, menuItemSelected as Ye } from "./select.css-mistica.js";
67
+ import { selectVariants as je, arrowDown as Ke, iconContainer as oe, selectContainerVariants as Ue, selectTextVariants as Xe, vars as b, optionsContainer as Je, optionsAnimationsVariants as ie, menuItem as Qe, menuItemSelected as Ye } from "./select.css-mistica.js";
68
68
  import { inputWithLabel as ce, inputWithoutLabel as ae } from "./text-field-base.css-mistica.js";
69
69
  import { Portal as et } from "./portal.js";
70
70
  import { pxToRem as tt, applyCssVars as nt } from "./utils/css.js";
@@ -86,9 +86,9 @@ const st = (param)=>{
86
86
  }, I = (e)=>{
87
87
  if (e) {
88
88
  if (S != null && S.current) {
89
- const o = S.current.getBoundingClientRect(), p = o.top, E = o.width, O = o.left, Re = o.height, b = p + Re, _ = Math.min(f.length, 8) * 48 + 16;
90
- if (b + _ + 12 > window.innerHeight) {
91
- const Ae = window.innerHeight - b;
89
+ const o = S.current.getBoundingClientRect(), p = o.top, E = o.width, O = o.left, Re = o.height, y = p + Re, _ = Math.min(f.length, 8) * 48 + 16;
90
+ if (y + _ + 12 > window.innerHeight) {
91
+ const Ae = window.innerHeight - y;
92
92
  if (p > Ae) {
93
93
  const _e = p - _;
94
94
  F({
@@ -100,14 +100,14 @@ const st = (param)=>{
100
100
  });
101
101
  } else F({
102
102
  minWidth: E,
103
- top: b,
103
+ top: y,
104
104
  left: O,
105
- maxHeight: window.innerHeight - b - 12,
105
+ maxHeight: window.innerHeight - y - 12,
106
106
  transformOrigin: "center top"
107
107
  });
108
108
  } else F({
109
109
  minWidth: E,
110
- top: b,
110
+ top: y,
111
111
  left: O,
112
112
  maxHeight: _,
113
113
  transformOrigin: "center top"
@@ -131,7 +131,7 @@ const st = (param)=>{
131
131
  }
132
132
  o && o.top + o.height / 2 <= t.top && (c == null || c.scrollIntoView(!1));
133
133
  }
134
- }, Oe = d.current, be = h.current;
134
+ }, Oe = d.current, ye = h.current;
135
135
  n.useEffect(()=>{
136
136
  Z({
137
137
  name: i,
@@ -159,7 +159,7 @@ const st = (param)=>{
159
159
  d,
160
160
  h,
161
161
  Oe,
162
- be
162
+ ye
163
163
  ]), n.useEffect(()=>{
164
164
  const e = (s)=>{
165
165
  var p;
@@ -204,7 +204,7 @@ const st = (param)=>{
204
204
  ]), n.useEffect(()=>{
205
205
  ve(!1);
206
206
  }, []);
207
- const ye = (e)=>{
207
+ const be = (e)=>{
208
208
  var t;
209
209
  return e ? (t = f.find((param)=>{
210
210
  let { value: s } = param;
@@ -281,10 +281,15 @@ const st = (param)=>{
281
281
  }),
282
282
  f.map((param)=>{
283
283
  let { value: e, text: t } = param;
284
- return /* @__PURE__ */ r("option", {
284
+ return(// Set color: 'initial' to avoid wrong text color in some browsers when using dark mode.
285
+ // Similar issue in another lib: https://github.com/chakra-ui/chakra-ui/issues/417#issue-566611352
286
+ /* @__PURE__ */ r("option", {
285
287
  value: e,
288
+ style: {
289
+ color: "initial"
290
+ },
286
291
  children: t
287
- }, e);
292
+ }, e));
288
293
  })
289
294
  ]
290
295
  }),
@@ -334,7 +339,7 @@ const st = (param)=>{
334
339
  }),
335
340
  /* @__PURE__ */ r("div", {
336
341
  className: C(Xe[T ? "disabled" : "default"], w ? ce : ae),
337
- children: ye(a !== null && a !== void 0 ? a : l)
342
+ children: be(a !== null && a !== void 0 ? a : l)
338
343
  })
339
344
  ]
340
345
  })),
@@ -346,11 +351,11 @@ const st = (param)=>{
346
351
  children: /* @__PURE__ */ r(et, {
347
352
  children: /* @__PURE__ */ r("ul", {
348
353
  style: nt({
349
- [y.top]: u.top ? `${u.top}px` : "",
350
- [y.left]: u.left ? `${u.left}px` : "",
351
- [y.maxHeight]: u.maxHeight ? `${u.maxHeight}px` : "",
352
- [y.minWidth]: u.minWidth ? `${u.minWidth}px` : "",
353
- [y.transformOrigin]: (_u_transformOrigin = u.transformOrigin) !== null && _u_transformOrigin !== void 0 ? _u_transformOrigin : ""
354
+ [b.top]: u.top ? `${u.top}px` : "",
355
+ [b.left]: u.left ? `${u.left}px` : "",
356
+ [b.maxHeight]: u.maxHeight ? `${u.maxHeight}px` : "",
357
+ [b.minWidth]: u.minWidth ? `${u.minWidth}px` : "",
358
+ [b.transformOrigin]: (_u_transformOrigin = u.transformOrigin) !== null && _u_transformOrigin !== void 0 ? _u_transformOrigin : ""
354
359
  }),
355
360
  onPointerDown: m,
356
361
  className: C(Je, K ? ie.show : ie.hide),
@@ -1,37 +1,49 @@
1
1
  import { MOVISTAR_SKIN as t } from "./constants.js";
2
2
  import { applyAlpha as r } from "../utils/color.js";
3
3
  const e = {
4
- movistarBlue: "#019DF4",
4
+ movistarBlue: "#0B9CEA",
5
5
  movistarBlue10: "#E6F5FD",
6
+ movistarBlue15: "#CEEBFB",
6
7
  movistarBlue20: "#B3E1FB",
7
8
  movistarBlue30: "#80CEF9",
8
9
  movistarBlue40: "#4DBAF7",
9
10
  movistarBlue55: "#008EDD",
11
+ movistarBlueHC: "#066FCB",
12
+ movistarBlueHC55: "#055EAC",
13
+ movistarBlueHC65: "#055398",
10
14
  movistarGreen: "#5CB615",
11
15
  movistarGreen10: "#EFF8E8",
12
16
  movistarGreen30: "#ADDA8A",
13
17
  movistarGreen40: "#8DCC5B",
18
+ movistarGreen55: "#52A413",
14
19
  movistarGreen60: "#499110",
15
20
  movistarGreen70: "#407F0F",
16
21
  pepper: "#FF374A",
17
22
  pepper10: "#FFEBED",
18
23
  pepper40: "#FF7380",
24
+ pepper45: "#FF5F6E",
19
25
  pepper55: "#D73241",
26
+ pepper60: "#CC2C3B",
27
+ pepper65: "#BF2937",
20
28
  pepper70: "#B22634",
21
29
  egg: "#F28D15",
22
30
  egg10: "#FEF4E8",
23
31
  egg40: "#F6AF5B",
32
+ egg55: "#D97D0D",
24
33
  egg80: "#6D3F09",
25
34
  pink: "#E63780",
35
+ pink45: "#EB5F99",
36
+ pink55: "#C42F6D",
26
37
  purple: "#A13EA1",
27
38
  purple10: "#F6ECF6",
39
+ purple35: "#C78BC7",
28
40
  purple40: "#BD78BD",
29
41
  purple70: "#712B71",
30
42
  grey1: "#F6F6F6",
31
43
  grey2: "#EEEEEE",
32
44
  grey3: "#DDDDDD",
33
- grey4: "#999999",
34
- grey5: "#86888C",
45
+ grey4: "#949494",
46
+ grey5: "#6B6C6F",
35
47
  grey6: "#313235",
36
48
  white: "#FFFFFF",
37
49
  black: "#000000",
@@ -42,7 +54,8 @@ const e = {
42
54
  darkModeGrey3: "#CED4D7",
43
55
  darkModeGrey4: "#85939C",
44
56
  darkModeGrey5: "#6D7D88",
45
- darkModeGrey6: "#3C5261"
57
+ darkModeGrey6: "#3C5261",
58
+ darkModeGrey7: "#032F46"
46
59
  }, d = ()=>({
47
60
  name: t,
48
61
  colors: {
@@ -52,11 +65,11 @@ const e = {
52
65
  backgroundBrandSecondary: e.movistarBlueDark,
53
66
  backgroundContainer: e.white,
54
67
  backgroundContainerError: e.pepper10,
55
- backgroundContainerHover: r(e.darkModeBlack, 0.03),
56
- backgroundContainerPressed: r(e.darkModeBlack, 0.05),
68
+ backgroundContainerHover: r(e.black, 0.03),
69
+ backgroundContainerPressed: r(e.black, 0.05),
57
70
  backgroundContainerBrand: e.movistarBlue,
58
- backgroundContainerBrandHover: r(e.darkModeBlack, 0.1),
59
- backgroundContainerBrandPressed: r(e.darkModeBlack, 0.2),
71
+ backgroundContainerBrandHover: r(e.black, 0.1),
72
+ backgroundContainerBrandPressed: r(e.black, 0.2),
60
73
  backgroundContainerBrandOverInverse: e.movistarBlue55,
61
74
  backgroundContainerAlternative: e.grey1,
62
75
  backgroundOverlay: r(e.movistarBlueDark, 0.6),
@@ -71,58 +84,58 @@ const e = {
71
84
  border: e.grey3,
72
85
  borderHigh: e.grey5,
73
86
  borderSelected: e.movistarBlue,
74
- coverBackgroundHover: r(e.darkModeBlack, 0.25),
75
- coverBackgroundPressed: r(e.darkModeBlack, 0.35),
76
- buttonDangerBackground: e.pepper,
77
- buttonDangerBackgroundSelected: e.pepper55,
78
- buttonDangerBackgroundHover: e.pepper55,
87
+ coverBackgroundHover: r(e.black, 0.25),
88
+ coverBackgroundPressed: r(e.black, 0.35),
89
+ buttonDangerBackground: e.pepper55,
90
+ buttonDangerBackgroundSelected: e.pepper70,
91
+ buttonDangerBackgroundHover: e.pepper65,
79
92
  buttonLinkDangerBackgroundSelected: e.pepper10,
80
93
  buttonLinkDangerBackgroundInverse: e.white,
81
94
  buttonLinkDangerBackgroundInverseSelected: e.pepper10,
82
95
  buttonLinkBackgroundSelected: e.movistarBlue10,
83
96
  buttonLinkBackgroundInverseSelected: r(e.white, 0.2),
84
- buttonPrimaryBackground: e.movistarBlue,
97
+ buttonPrimaryBackground: e.movistarBlueHC,
85
98
  buttonPrimaryBackgroundInverse: e.white,
86
- buttonPrimaryBackgroundSelected: e.movistarBlue55,
87
- buttonPrimaryBackgroundHover: e.movistarBlue55,
88
- buttonPrimaryBackgroundInverseSelected: e.movistarBlue30,
89
- buttonSecondaryBorder: e.movistarBlue,
90
- buttonSecondaryBorderSelected: e.movistarBlue55,
99
+ buttonPrimaryBackgroundSelected: e.movistarBlueHC65,
100
+ buttonPrimaryBackgroundHover: e.movistarBlueHC55,
101
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlue10,
102
+ buttonSecondaryBorder: e.movistarBlueHC,
103
+ buttonSecondaryBorderSelected: e.movistarBlueHC65,
91
104
  buttonSecondaryBackgroundHover: e.movistarBlue10,
92
- buttonSecondaryBackgroundSelected: e.movistarBlue10,
105
+ buttonSecondaryBackgroundSelected: e.movistarBlue15,
93
106
  buttonSecondaryBorderInverse: e.white,
94
107
  buttonSecondaryBorderInverseSelected: e.white,
95
108
  buttonSecondaryBackgroundInverseHover: r(e.white, 0.2),
96
- buttonSecondaryBackgroundInverseSelected: r(e.white, 0.2),
109
+ buttonSecondaryBackgroundInverseSelected: r(e.white, 0.3),
97
110
  textButtonPrimary: e.white,
98
- textButtonPrimaryInverse: e.movistarBlue,
99
- textButtonPrimaryInverseSelected: e.movistarBlue,
100
- textButtonSecondary: e.movistarBlue,
101
- textButtonSecondarySelected: e.movistarBlue55,
111
+ textButtonPrimaryInverse: e.movistarBlueHC,
112
+ textButtonPrimaryInverseSelected: e.movistarBlueHC,
113
+ textButtonSecondary: e.movistarBlueHC,
114
+ textButtonSecondarySelected: e.movistarBlueHC55,
102
115
  textButtonSecondaryInverse: e.white,
103
116
  textButtonSecondaryInverseSelected: e.white,
104
- textLink: e.movistarBlue,
117
+ textLink: e.movistarBlueHC,
105
118
  textLinkInverse: e.white,
106
- textLinkDanger: e.pepper,
119
+ textLinkDanger: e.pepper60,
107
120
  textLinkSnackbar: e.movistarBlue30,
108
- textActivated: e.movistarBlue,
109
- textBrand: e.movistarBlue,
110
- control: e.grey3,
121
+ textActivated: e.movistarBlueHC,
122
+ textBrand: e.movistarBlueHC,
123
+ control: e.grey4,
111
124
  controlActivated: e.movistarBlue,
112
125
  controlInverse: e.movistarBlue20,
113
126
  controlActivatedInverse: e.white,
114
- controlError: e.pepper,
127
+ controlError: e.pepper55,
115
128
  barTrack: e.grey3,
116
- loadingBar: e.movistarBlue30,
117
- loadingBarBackground: e.movistarBlue55,
129
+ loadingBar: e.movistarBlue,
130
+ loadingBarBackground: e.grey2,
118
131
  toggleAndroidInactive: e.grey2,
119
132
  toggleAndroidBackgroundActive: e.movistarBlue20,
120
133
  iosControlKnob: e.white,
121
- divider: e.grey2,
134
+ divider: e.grey3,
122
135
  dividerInverse: r(e.white, 0.2),
123
136
  navigationBarDivider: e.movistarBlue,
124
137
  badge: e.pepper55,
125
- feedbackErrorBackground: e.pepper,
138
+ feedbackErrorBackground: e.pepper55,
126
139
  feedbackInfoBackground: e.movistarBlueDark,
127
140
  brand: e.movistarBlue,
128
141
  brandHigh: e.movistarBlue55,
@@ -136,13 +149,13 @@ const e = {
136
149
  textPrimaryInverse: e.white,
137
150
  textSecondary: e.grey5,
138
151
  textSecondaryInverse: e.movistarBlue10,
139
- success: e.movistarGreen,
140
- warning: e.egg,
141
- error: e.pepper,
142
- textError: e.pepper,
152
+ success: e.movistarGreen55,
153
+ warning: e.egg55,
154
+ error: e.pepper55,
155
+ textError: e.pepper55,
143
156
  textErrorInverse: e.white,
144
157
  promo: e.purple,
145
- highlight: e.pink,
158
+ highlight: e.pink55,
146
159
  successLow: e.movistarGreen10,
147
160
  warningLow: e.egg10,
148
161
  errorLow: e.pepper10,
@@ -160,11 +173,11 @@ const e = {
160
173
  textNavigationBarSecondary: e.movistarBlue20,
161
174
  textNavigationSearchBarHint: e.movistarBlue20,
162
175
  textNavigationSearchBarText: e.white,
163
- textAppBar: e.grey4,
164
- textAppBarSelected: e.movistarBlue,
165
- customTabsBackground: e.movistarBlue,
176
+ textAppBar: e.grey5,
177
+ textAppBarSelected: e.movistarBlueHC,
178
+ customTabsBackground: e.white,
166
179
  tagTextPromo: e.purple70,
167
- tagTextActive: e.movistarBlue,
180
+ tagTextActive: e.movistarBlueHC,
168
181
  tagTextInactive: e.grey5,
169
182
  tagTextSuccess: e.movistarGreen70,
170
183
  tagTextWarning: e.egg80,
@@ -192,8 +205,8 @@ const e = {
192
205
  backgroundContainerBrandOverInverse: e.darkModeGrey,
193
206
  backgroundContainerAlternative: e.darkModeGrey,
194
207
  backgroundOverlay: r(e.darkModeGrey, 0.8),
195
- backgroundSkeleton: e.movistarBlueDark,
196
- backgroundSkeletonInverse: e.movistarBlueDark,
208
+ backgroundSkeleton: e.darkModeGrey6,
209
+ backgroundSkeletonInverse: e.darkModeGrey6,
197
210
  backgroundBrandTop: e.darkModeBlack,
198
211
  backgroundBrandBottom: e.darkModeBlack,
199
212
  appBarBackground: e.darkModeGrey,
@@ -201,89 +214,89 @@ const e = {
201
214
  skeletonWave: e.darkModeGrey6,
202
215
  borderLow: e.darkModeBlack,
203
216
  border: e.darkModeGrey,
204
- borderHigh: e.darkModeGrey4,
217
+ borderHigh: e.darkModeGrey5,
205
218
  borderSelected: e.movistarBlue,
206
219
  coverBackgroundHover: r(e.darkModeBlack, 0.25),
207
220
  coverBackgroundPressed: r(e.darkModeBlack, 0.35),
208
- buttonDangerBackground: e.pepper,
209
- buttonDangerBackgroundSelected: e.pepper55,
210
- buttonDangerBackgroundHover: e.pepper55,
221
+ buttonDangerBackground: e.pepper55,
222
+ buttonDangerBackgroundSelected: e.pepper70,
223
+ buttonDangerBackgroundHover: e.pepper65,
211
224
  buttonLinkDangerBackgroundSelected: r(e.white, 0.08),
212
225
  buttonLinkDangerBackgroundInverse: r(e.white, 0),
213
226
  buttonLinkDangerBackgroundInverseSelected: r(e.white, 0.08),
214
227
  buttonLinkBackgroundSelected: r(e.white, 0.08),
215
228
  buttonLinkBackgroundInverseSelected: r(e.white, 0.08),
216
- buttonPrimaryBackground: e.movistarBlue,
217
- buttonPrimaryBackgroundInverse: e.movistarBlue,
218
- buttonPrimaryBackgroundSelected: e.movistarBlue55,
219
- buttonPrimaryBackgroundHover: e.movistarBlue55,
220
- buttonPrimaryBackgroundInverseSelected: e.movistarBlue55,
229
+ buttonPrimaryBackground: e.movistarBlueHC,
230
+ buttonPrimaryBackgroundInverse: e.movistarBlueHC,
231
+ buttonPrimaryBackgroundSelected: e.movistarBlueHC65,
232
+ buttonPrimaryBackgroundHover: e.movistarBlueHC55,
233
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlueHC65,
221
234
  buttonSecondaryBackgroundHover: r(e.white, 0.15),
222
- buttonSecondaryBackgroundSelected: r(e.white, 0.15),
235
+ buttonSecondaryBackgroundSelected: r(e.white, 0.25),
223
236
  buttonSecondaryBorder: e.white,
224
237
  buttonSecondaryBorderSelected: e.white,
225
- buttonSecondaryBorderInverse: e.white,
226
- buttonSecondaryBorderInverseSelected: e.white,
238
+ buttonSecondaryBorderInverse: e.darkModeGrey2,
239
+ buttonSecondaryBorderInverseSelected: e.darkModeGrey2,
227
240
  buttonSecondaryBackgroundInverseHover: r(e.white, 0.15),
228
- buttonSecondaryBackgroundInverseSelected: r(e.white, 0.15),
229
- textButtonPrimary: e.darkModeGrey2,
230
- textButtonPrimaryInverse: e.darkModeGrey2,
231
- textButtonPrimaryInverseSelected: e.darkModeGrey2,
241
+ buttonSecondaryBackgroundInverseSelected: r(e.white, 0.25),
242
+ textButtonPrimary: e.white,
243
+ textButtonPrimaryInverse: e.white,
244
+ textButtonPrimaryInverseSelected: e.white,
232
245
  textButtonSecondary: e.darkModeGrey2,
233
- textButtonSecondarySelected: e.darkModeGrey4,
246
+ textButtonSecondarySelected: e.darkModeGrey2,
234
247
  textButtonSecondaryInverse: e.darkModeGrey2,
235
- textButtonSecondaryInverseSelected: e.darkModeGrey4,
248
+ textButtonSecondaryInverseSelected: e.darkModeGrey2,
236
249
  textLink: e.movistarBlue,
237
250
  textLinkInverse: e.movistarBlue,
238
- textLinkDanger: e.pepper,
239
- textLinkSnackbar: e.movistarBlue30,
251
+ textLinkDanger: e.pepper45,
252
+ textLinkSnackbar: e.movistarBlue,
240
253
  textActivated: e.movistarBlue,
241
254
  textBrand: e.movistarBlue,
242
- control: e.darkModeGrey6,
255
+ control: e.darkModeGrey4,
243
256
  controlActivated: e.movistarBlue,
244
- controlInverse: e.darkModeGrey6,
257
+ controlInverse: e.darkModeGrey4,
245
258
  controlActivatedInverse: e.movistarBlue,
246
- controlError: e.pepper,
259
+ controlError: e.pepper45,
247
260
  barTrack: e.darkModeGrey6,
248
261
  loadingBar: e.movistarBlue,
249
262
  loadingBarBackground: e.darkModeGrey6,
250
- toggleAndroidInactive: e.darkModeGrey4,
263
+ toggleAndroidInactive: e.darkModeGrey2,
251
264
  toggleAndroidBackgroundActive: e.movistarBlue20,
252
265
  iosControlKnob: e.darkModeGrey2,
253
- divider: r(e.white, 0.05),
254
- dividerInverse: r(e.white, 0.05),
266
+ divider: r(e.white, 0.1),
267
+ dividerInverse: r(e.white, 0.1),
255
268
  navigationBarDivider: e.darkModeBlack,
256
269
  badge: e.pepper55,
257
- feedbackErrorBackground: e.pepper,
270
+ feedbackErrorBackground: e.pepper55,
258
271
  feedbackInfoBackground: e.movistarBlueDark,
259
272
  brand: e.movistarBlue,
260
- brandHigh: e.darkModeGrey,
273
+ brandHigh: e.movistarBlue40,
261
274
  inverse: e.darkModeGrey2,
262
275
  neutralHigh: e.darkModeGrey2,
263
276
  neutralMedium: e.darkModeGrey5,
264
277
  neutralMediumInverse: e.grey5,
265
- neutralLow: e.movistarBlueDark,
266
- neutralLowAlternative: e.movistarBlueDark,
278
+ neutralLow: e.darkModeGrey6,
279
+ neutralLowAlternative: e.darkModeGrey6,
267
280
  textPrimary: e.darkModeGrey2,
268
281
  textPrimaryInverse: e.darkModeGrey2,
269
282
  textSecondary: e.darkModeGrey4,
270
283
  textSecondaryInverse: e.darkModeGrey4,
271
284
  success: e.movistarGreen,
272
285
  warning: e.egg,
273
- error: e.pepper,
274
- textError: e.pepper,
275
- textErrorInverse: e.pepper,
276
- promo: e.purple,
277
- highlight: e.pink,
278
- successLow: e.movistarBlueDark,
279
- warningLow: e.movistarBlueDark,
280
- errorLow: e.movistarBlueDark,
281
- promoLow: e.movistarBlueDark,
282
- brandLow: e.movistarBlueDark,
286
+ error: e.pepper45,
287
+ textError: e.pepper45,
288
+ textErrorInverse: e.pepper45,
289
+ promo: e.purple40,
290
+ highlight: e.pink45,
291
+ successLow: e.darkModeGrey7,
292
+ warningLow: e.darkModeGrey7,
293
+ errorLow: e.darkModeGrey7,
294
+ promoLow: e.darkModeGrey7,
295
+ brandLow: e.darkModeGrey7,
283
296
  successHigh: e.movistarGreen40,
284
297
  warningHigh: e.egg40,
285
- errorHigh: e.pepper40,
286
- promoHigh: e.purple40,
298
+ errorHigh: e.pepper45,
299
+ promoHigh: e.purple35,
287
300
  successHighInverse: e.movistarGreen70,
288
301
  warningHighInverse: e.egg80,
289
302
  errorHighInverse: e.pepper70,
@@ -292,21 +305,21 @@ const e = {
292
305
  textNavigationBarSecondary: e.darkModeGrey4,
293
306
  textNavigationSearchBarHint: e.darkModeGrey4,
294
307
  textNavigationSearchBarText: e.darkModeGrey2,
295
- textAppBar: e.darkModeGrey5,
296
- textAppBarSelected: e.darkModeGrey2,
308
+ textAppBar: e.darkModeGrey4,
309
+ textAppBarSelected: e.movistarBlue,
297
310
  customTabsBackground: e.darkModeBlack,
298
- tagTextPromo: e.purple40,
311
+ tagTextPromo: e.purple35,
299
312
  tagTextActive: e.movistarBlue,
300
- tagTextInactive: e.darkModeGrey5,
313
+ tagTextInactive: e.darkModeGrey3,
301
314
  tagTextSuccess: e.movistarGreen40,
302
315
  tagTextWarning: e.egg40,
303
- tagTextError: e.pepper40,
304
- tagBackgroundPromo: e.movistarBlueDark,
305
- tagBackgroundActive: e.movistarBlueDark,
306
- tagBackgroundInactive: e.movistarBlueDark,
307
- tagBackgroundSuccess: e.movistarBlueDark,
308
- tagBackgroundWarning: e.movistarBlueDark,
309
- tagBackgroundError: e.movistarBlueDark,
316
+ tagTextError: e.pepper45,
317
+ tagBackgroundPromo: e.darkModeGrey7,
318
+ tagBackgroundActive: e.darkModeGrey7,
319
+ tagBackgroundInactive: e.darkModeGrey7,
320
+ tagBackgroundSuccess: e.darkModeGrey7,
321
+ tagBackgroundWarning: e.darkModeGrey7,
322
+ tagBackgroundError: e.darkModeGrey7,
310
323
  cardContentOverlay: `linear-gradient(180deg, ${r(e.black, 0)} 0%, ${r(e.black, 0.4)} 30%, ${r(e.black, 0.7)} 100%)`
311
324
  },
312
325
  borderRadii: {
@@ -27,90 +27,91 @@ function _object_spread(target) {
27
27
  }
28
28
  return target;
29
29
  }
30
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
31
- import { getPlatform as c } from "./utils/platform.js";
32
- import f from "./fade-in.js";
33
- import { useTheme as N, useAriaId as g } from "./hooks.js";
34
- import { spinnerIos as v, spinnerIosSvgPath as i, spinnerDefault as u, spinnerDefaultPath as L } from "./spinner.css-mistica.js";
35
- import { vars as M } from "./skins/skin-contract.css-mistica.js";
36
- const Z = (param)=>{
37
- let { color: t, delay: s = "500ms", size: a = 24, style: m, rolePresentation: p } = param;
38
- const { texts: h, platformOverrides: o } = N();
39
- t = t || M.colors.controlActivated;
40
- const l = g(), n = !p, C = h.loading, d = c(o) === "ios" ? /* @__PURE__ */ r("svg", {
41
- "aria-labelledby": l,
42
- className: v,
30
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
31
+ import { getPlatform as v } from "./utils/platform.js";
32
+ import N from "./fade-in.js";
33
+ import { useTheme as g, useAriaId as u } from "./hooks.js";
34
+ import { spinnerIos as I, spinnerIosSvgPath as s, spinnerDefault as L, spinnerDefaultPath as M } from "./spinner.css-mistica.js";
35
+ import { vars as d } from "./skins/skin-contract.css-mistica.js";
36
+ import { useIsInverseVariant as Z } from "./theme-variant-context.js";
37
+ const x = (param)=>{
38
+ let { color: t, delay: i = "500ms", size: a = 24, style: m, rolePresentation: p } = param;
39
+ const { texts: c, platformOverrides: h } = g(), f = Z();
40
+ t = t || (f ? d.colors.controlActivatedInverse : d.colors.controlActivated);
41
+ const n = u(), r = !p, o = c.loading, C = v(h) === "ios" ? /* @__PURE__ */ l("svg", {
42
+ "aria-labelledby": n,
43
+ className: I,
43
44
  height: a,
44
45
  style: _object_spread({}, m),
45
46
  role: "img",
46
47
  viewBox: "0 0 30 30",
47
48
  width: a,
48
49
  children: [
49
- n && /* @__PURE__ */ e("title", {
50
- id: l,
51
- children: C
50
+ r && /* @__PURE__ */ e("title", {
51
+ id: n,
52
+ children: o
52
53
  }),
53
- /* @__PURE__ */ r("g", {
54
+ /* @__PURE__ */ l("g", {
54
55
  role: "presentation",
55
56
  children: [
56
57
  /* @__PURE__ */ e("path", {
57
- className: i,
58
+ className: s,
58
59
  fill: t,
59
60
  d: "M14 1.5C14 0.671573 14.6716 0 15.5 0C16.3284 0 17 0.671573 17 1.5V8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5V1.5Z"
60
61
  }),
61
62
  /* @__PURE__ */ e("path", {
62
- className: i,
63
+ className: s,
63
64
  fill: t,
64
65
  d: "M21.182 11.1317C20.5962 11.7175 19.6464 11.7175 19.0607 11.1317C18.4749 10.5459 18.4749 9.59619 19.0607 9.01041L24.0104 4.06066C24.5962 3.47487 25.5459 3.47487 26.1317 4.06066C26.7175 4.64645 26.7175 5.59619 26.1317 6.18198L21.182 11.1317Z"
65
66
  }),
66
67
  /* @__PURE__ */ e("path", {
67
- className: i,
68
+ className: s,
68
69
  fill: t,
69
70
  d: "M28.5 13C29.3284 13 30 13.6716 30 14.5C30 15.3284 29.3284 16 28.5 16H21.5C20.6716 16 20 15.3284 20 14.5C20 13.6716 20.6716 13 21.5 13H28.5Z"
70
71
  }),
71
72
  /* @__PURE__ */ e("path", {
72
- className: i,
73
+ className: s,
73
74
  fill: t,
74
75
  d: "M19.0607 20.182C18.4749 19.5962 18.4749 18.6464 19.0607 18.0607C19.6464 17.4749 20.5962 17.4749 21.182 18.0607L26.1317 23.0104C26.7175 23.5962 26.7175 24.5459 26.1317 25.1317C25.5459 25.7175 24.5962 25.7175 24.0104 25.1317L19.0607 20.182Z"
75
76
  }),
76
77
  /* @__PURE__ */ e("path", {
77
- className: i,
78
+ className: s,
78
79
  fill: t,
79
80
  d: "M14 21.5C14 20.6716 14.6716 20 15.5 20C16.3284 20 17 20.6716 17 21.5V28.5C17 29.3284 16.3284 30 15.5 30C14.6716 30 14 29.3284 14 28.5V21.5Z"
80
81
  }),
81
82
  /* @__PURE__ */ e("path", {
82
- className: i,
83
+ className: s,
83
84
  fill: t,
84
85
  d: "M7.18198 25.1317C6.59619 25.7175 5.64645 25.7175 5.06066 25.1317C4.47487 24.5459 4.47487 23.5962 5.06066 23.0104L10.0104 18.0607C10.5962 17.4749 11.5459 17.4749 12.1317 18.0607C12.7175 18.6464 12.7175 19.5962 12.1317 20.182L7.18198 25.1317Z"
85
86
  }),
86
87
  /* @__PURE__ */ e("path", {
87
- className: i,
88
+ className: s,
88
89
  fill: t,
89
90
  d: "M8.5 13C9.32843 13 10 13.6716 10 14.5C10 15.3284 9.32843 16 8.5 16H1.5C0.671573 16 0 15.3284 0 14.5C0 13.6716 0.671573 13 1.5 13H8.5Z"
90
91
  }),
91
92
  /* @__PURE__ */ e("path", {
92
- className: i,
93
+ className: s,
93
94
  fill: t,
94
95
  d: "M5.06066 6.18198C4.47487 5.59619 4.47487 4.64645 5.06066 4.06066C5.64645 3.47487 6.59619 3.47487 7.18198 4.06066L12.1317 9.01041C12.7175 9.59619 12.7175 10.5459 12.1317 11.1317C11.5459 11.7175 10.5962 11.7175 10.0104 11.1317L5.06066 6.18198Z"
95
96
  })
96
97
  ]
97
98
  })
98
99
  ]
99
- }) : /* @__PURE__ */ r("svg", {
100
- "aria-labelledby": n ? l : void 0,
101
- className: u,
100
+ }) : /* @__PURE__ */ l("svg", {
101
+ "aria-labelledby": r ? n : void 0,
102
+ className: L,
102
103
  height: a,
103
104
  style: _object_spread({}, m),
104
105
  role: "img",
105
106
  viewBox: "0 0 66 66",
106
107
  width: a,
107
108
  children: [
108
- n && /* @__PURE__ */ e("title", {
109
- id: l,
110
- children: C
109
+ r && /* @__PURE__ */ e("title", {
110
+ id: n,
111
+ children: o
111
112
  }),
112
113
  /* @__PURE__ */ e("circle", {
113
- className: L,
114
+ className: M,
114
115
  cx: "33",
115
116
  cy: "33",
116
117
  fill: "none",
@@ -121,12 +122,12 @@ const Z = (param)=>{
121
122
  })
122
123
  ]
123
124
  });
124
- return s === "0" || s === "0s" || s === "0ms" ? d : /* @__PURE__ */ e(f, {
125
- delay: s,
125
+ return i === "0" || i === "0s" || i === "0ms" ? C : /* @__PURE__ */ e(N, {
126
+ delay: i,
126
127
  dataAttributes: {
127
128
  "component-name": "Spinner"
128
129
  },
129
- children: d
130
+ children: C
130
131
  });
131
- }, V = Z;
132
- export { V as default };
132
+ }, j = x;
133
+ export { j as default };