@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
@@ -224,7 +224,7 @@ const we = (param)=>{
224
224
  ]
225
225
  });
226
226
  }, mn = (param)=>{
227
- let { sections: n, selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
227
+ let { sections: n = [], selectedIndex: a, right: t, isInverse: r = !1, topFixed: o = !0, withBorder: s = !0, burgerMenuExtra: c, logo: l, large: p = !1 } = param;
228
228
  const { texts: m, isDarkMode: q } = (0, _hooks.useTheme)(), [d, I] = _react.useState(!1), [O, h] = _react.useState("closed"), R = (0, _hooks.useAriaId)(), J = q ? 1 : 0.2, { isTabletOrSmaller: K } = (0, _hooks.useScreenSize)(), y = (0, _modalcontextprovider.useSetModalState)();
229
229
  l = l !== null && l !== void 0 ? l : /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
230
230
  size: {
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
8
8
  return o;
9
9
  }
10
10
  });
11
- const o = "15.9.0";
11
+ const o = "15.11.0";
package/dist/select.js CHANGED
@@ -142,9 +142,9 @@ const st = (param)=>{
142
142
  }, I = (e)=>{
143
143
  if (e) {
144
144
  if (S != null && S.current) {
145
- 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;
146
- if (b + _ + 12 > window.innerHeight) {
147
- const Ae = window.innerHeight - b;
145
+ 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;
146
+ if (y + _ + 12 > window.innerHeight) {
147
+ const Ae = window.innerHeight - y;
148
148
  if (p > Ae) {
149
149
  const _e = p - _;
150
150
  F({
@@ -156,14 +156,14 @@ const st = (param)=>{
156
156
  });
157
157
  } else F({
158
158
  minWidth: E,
159
- top: b,
159
+ top: y,
160
160
  left: O,
161
- maxHeight: window.innerHeight - b - 12,
161
+ maxHeight: window.innerHeight - y - 12,
162
162
  transformOrigin: "center top"
163
163
  });
164
164
  } else F({
165
165
  minWidth: E,
166
- top: b,
166
+ top: y,
167
167
  left: O,
168
168
  maxHeight: _,
169
169
  transformOrigin: "center top"
@@ -187,7 +187,7 @@ const st = (param)=>{
187
187
  }
188
188
  o && o.top + o.height / 2 <= t.top && (c == null || c.scrollIntoView(!1));
189
189
  }
190
- }, Oe = d.current, be = h.current;
190
+ }, Oe = d.current, ye = h.current;
191
191
  _react.useEffect(()=>{
192
192
  Z({
193
193
  name: i,
@@ -215,7 +215,7 @@ const st = (param)=>{
215
215
  d,
216
216
  h,
217
217
  Oe,
218
- be
218
+ ye
219
219
  ]), _react.useEffect(()=>{
220
220
  const e = (s)=>{
221
221
  var p;
@@ -260,7 +260,7 @@ const st = (param)=>{
260
260
  ]), _react.useEffect(()=>{
261
261
  ve(!1);
262
262
  }, []);
263
- const ye = (e)=>{
263
+ const be = (e)=>{
264
264
  var t;
265
265
  return e ? (t = f.find((param)=>{
266
266
  let { value: s } = param;
@@ -337,10 +337,14 @@ const st = (param)=>{
337
337
  }),
338
338
  f.map((param)=>{
339
339
  let { value: e, text: t } = param;
340
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("option", {
340
+ return(// Similar issue in another lib: https://github.com/chakra-ui/chakra-ui/issues/417#issue-566611352
341
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("option", {
341
342
  value: e,
343
+ style: {
344
+ color: "initial"
345
+ },
342
346
  children: t
343
- }, e);
347
+ }, e));
344
348
  })
345
349
  ]
346
350
  }),
@@ -390,7 +394,7 @@ const st = (param)=>{
390
394
  }),
391
395
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
392
396
  className: (0, _classnames.default)(_selectcssmistica.selectTextVariants[T ? "disabled" : "default"], w ? _textfieldbasecssmistica.inputWithLabel : _textfieldbasecssmistica.inputWithoutLabel),
393
- children: ye(a !== null && a !== void 0 ? a : l)
397
+ children: be(a !== null && a !== void 0 ? a : l)
394
398
  })
395
399
  ]
396
400
  })),
@@ -2,28 +2,40 @@ import type { GetKnownSkin } from './types';
2
2
  export declare const palette: {
3
3
  movistarBlue: string;
4
4
  movistarBlue10: string;
5
+ movistarBlue15: string;
5
6
  movistarBlue20: string;
6
7
  movistarBlue30: string;
7
8
  movistarBlue40: string;
8
9
  movistarBlue55: string;
10
+ movistarBlueHC: string;
11
+ movistarBlueHC55: string;
12
+ movistarBlueHC65: string;
9
13
  movistarGreen: string;
10
14
  movistarGreen10: string;
11
15
  movistarGreen30: string;
12
16
  movistarGreen40: string;
17
+ movistarGreen55: string;
13
18
  movistarGreen60: string;
14
19
  movistarGreen70: string;
15
20
  pepper: string;
16
21
  pepper10: string;
17
22
  pepper40: string;
23
+ pepper45: string;
18
24
  pepper55: string;
25
+ pepper60: string;
26
+ pepper65: string;
19
27
  pepper70: string;
20
28
  egg: string;
21
29
  egg10: string;
22
30
  egg40: string;
31
+ egg55: string;
23
32
  egg80: string;
24
33
  pink: string;
34
+ pink45: string;
35
+ pink55: string;
25
36
  purple: string;
26
37
  purple10: string;
38
+ purple35: string;
27
39
  purple40: string;
28
40
  purple70: string;
29
41
  grey1: string;
@@ -42,5 +54,6 @@ export declare const palette: {
42
54
  darkModeGrey4: string;
43
55
  darkModeGrey5: string;
44
56
  darkModeGrey6: string;
57
+ darkModeGrey7: string;
45
58
  };
46
59
  export declare const getMovistarSkin: GetKnownSkin;
@@ -19,37 +19,49 @@ _export(exports, {
19
19
  const _constants = require("./constants.js");
20
20
  const _color = require("../utils/color.js");
21
21
  const e = {
22
- movistarBlue: "#019DF4",
22
+ movistarBlue: "#0B9CEA",
23
23
  movistarBlue10: "#E6F5FD",
24
+ movistarBlue15: "#CEEBFB",
24
25
  movistarBlue20: "#B3E1FB",
25
26
  movistarBlue30: "#80CEF9",
26
27
  movistarBlue40: "#4DBAF7",
27
28
  movistarBlue55: "#008EDD",
29
+ movistarBlueHC: "#066FCB",
30
+ movistarBlueHC55: "#055EAC",
31
+ movistarBlueHC65: "#055398",
28
32
  movistarGreen: "#5CB615",
29
33
  movistarGreen10: "#EFF8E8",
30
34
  movistarGreen30: "#ADDA8A",
31
35
  movistarGreen40: "#8DCC5B",
36
+ movistarGreen55: "#52A413",
32
37
  movistarGreen60: "#499110",
33
38
  movistarGreen70: "#407F0F",
34
39
  pepper: "#FF374A",
35
40
  pepper10: "#FFEBED",
36
41
  pepper40: "#FF7380",
42
+ pepper45: "#FF5F6E",
37
43
  pepper55: "#D73241",
44
+ pepper60: "#CC2C3B",
45
+ pepper65: "#BF2937",
38
46
  pepper70: "#B22634",
39
47
  egg: "#F28D15",
40
48
  egg10: "#FEF4E8",
41
49
  egg40: "#F6AF5B",
50
+ egg55: "#D97D0D",
42
51
  egg80: "#6D3F09",
43
52
  pink: "#E63780",
53
+ pink45: "#EB5F99",
54
+ pink55: "#C42F6D",
44
55
  purple: "#A13EA1",
45
56
  purple10: "#F6ECF6",
57
+ purple35: "#C78BC7",
46
58
  purple40: "#BD78BD",
47
59
  purple70: "#712B71",
48
60
  grey1: "#F6F6F6",
49
61
  grey2: "#EEEEEE",
50
62
  grey3: "#DDDDDD",
51
- grey4: "#999999",
52
- grey5: "#86888C",
63
+ grey4: "#949494",
64
+ grey5: "#6B6C6F",
53
65
  grey6: "#313235",
54
66
  white: "#FFFFFF",
55
67
  black: "#000000",
@@ -60,7 +72,8 @@ const e = {
60
72
  darkModeGrey3: "#CED4D7",
61
73
  darkModeGrey4: "#85939C",
62
74
  darkModeGrey5: "#6D7D88",
63
- darkModeGrey6: "#3C5261"
75
+ darkModeGrey6: "#3C5261",
76
+ darkModeGrey7: "#032F46"
64
77
  }, d = ()=>({
65
78
  name: _constants.MOVISTAR_SKIN,
66
79
  colors: {
@@ -70,11 +83,11 @@ const e = {
70
83
  backgroundBrandSecondary: e.movistarBlueDark,
71
84
  backgroundContainer: e.white,
72
85
  backgroundContainerError: e.pepper10,
73
- backgroundContainerHover: (0, _color.applyAlpha)(e.darkModeBlack, 0.03),
74
- backgroundContainerPressed: (0, _color.applyAlpha)(e.darkModeBlack, 0.05),
86
+ backgroundContainerHover: (0, _color.applyAlpha)(e.black, 0.03),
87
+ backgroundContainerPressed: (0, _color.applyAlpha)(e.black, 0.05),
75
88
  backgroundContainerBrand: e.movistarBlue,
76
- backgroundContainerBrandHover: (0, _color.applyAlpha)(e.darkModeBlack, 0.1),
77
- backgroundContainerBrandPressed: (0, _color.applyAlpha)(e.darkModeBlack, 0.2),
89
+ backgroundContainerBrandHover: (0, _color.applyAlpha)(e.black, 0.1),
90
+ backgroundContainerBrandPressed: (0, _color.applyAlpha)(e.black, 0.2),
78
91
  backgroundContainerBrandOverInverse: e.movistarBlue55,
79
92
  backgroundContainerAlternative: e.grey1,
80
93
  backgroundOverlay: (0, _color.applyAlpha)(e.movistarBlueDark, 0.6),
@@ -89,58 +102,58 @@ const e = {
89
102
  border: e.grey3,
90
103
  borderHigh: e.grey5,
91
104
  borderSelected: e.movistarBlue,
92
- coverBackgroundHover: (0, _color.applyAlpha)(e.darkModeBlack, 0.25),
93
- coverBackgroundPressed: (0, _color.applyAlpha)(e.darkModeBlack, 0.35),
94
- buttonDangerBackground: e.pepper,
95
- buttonDangerBackgroundSelected: e.pepper55,
96
- buttonDangerBackgroundHover: e.pepper55,
105
+ coverBackgroundHover: (0, _color.applyAlpha)(e.black, 0.25),
106
+ coverBackgroundPressed: (0, _color.applyAlpha)(e.black, 0.35),
107
+ buttonDangerBackground: e.pepper55,
108
+ buttonDangerBackgroundSelected: e.pepper70,
109
+ buttonDangerBackgroundHover: e.pepper65,
97
110
  buttonLinkDangerBackgroundSelected: e.pepper10,
98
111
  buttonLinkDangerBackgroundInverse: e.white,
99
112
  buttonLinkDangerBackgroundInverseSelected: e.pepper10,
100
113
  buttonLinkBackgroundSelected: e.movistarBlue10,
101
114
  buttonLinkBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.2),
102
- buttonPrimaryBackground: e.movistarBlue,
115
+ buttonPrimaryBackground: e.movistarBlueHC,
103
116
  buttonPrimaryBackgroundInverse: e.white,
104
- buttonPrimaryBackgroundSelected: e.movistarBlue55,
105
- buttonPrimaryBackgroundHover: e.movistarBlue55,
106
- buttonPrimaryBackgroundInverseSelected: e.movistarBlue30,
107
- buttonSecondaryBorder: e.movistarBlue,
108
- buttonSecondaryBorderSelected: e.movistarBlue55,
117
+ buttonPrimaryBackgroundSelected: e.movistarBlueHC65,
118
+ buttonPrimaryBackgroundHover: e.movistarBlueHC55,
119
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlue10,
120
+ buttonSecondaryBorder: e.movistarBlueHC,
121
+ buttonSecondaryBorderSelected: e.movistarBlueHC65,
109
122
  buttonSecondaryBackgroundHover: e.movistarBlue10,
110
- buttonSecondaryBackgroundSelected: e.movistarBlue10,
123
+ buttonSecondaryBackgroundSelected: e.movistarBlue15,
111
124
  buttonSecondaryBorderInverse: e.white,
112
125
  buttonSecondaryBorderInverseSelected: e.white,
113
126
  buttonSecondaryBackgroundInverseHover: (0, _color.applyAlpha)(e.white, 0.2),
114
- buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.2),
127
+ buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.3),
115
128
  textButtonPrimary: e.white,
116
- textButtonPrimaryInverse: e.movistarBlue,
117
- textButtonPrimaryInverseSelected: e.movistarBlue,
118
- textButtonSecondary: e.movistarBlue,
119
- textButtonSecondarySelected: e.movistarBlue55,
129
+ textButtonPrimaryInverse: e.movistarBlueHC,
130
+ textButtonPrimaryInverseSelected: e.movistarBlueHC,
131
+ textButtonSecondary: e.movistarBlueHC,
132
+ textButtonSecondarySelected: e.movistarBlueHC55,
120
133
  textButtonSecondaryInverse: e.white,
121
134
  textButtonSecondaryInverseSelected: e.white,
122
- textLink: e.movistarBlue,
135
+ textLink: e.movistarBlueHC,
123
136
  textLinkInverse: e.white,
124
- textLinkDanger: e.pepper,
137
+ textLinkDanger: e.pepper60,
125
138
  textLinkSnackbar: e.movistarBlue30,
126
- textActivated: e.movistarBlue,
127
- textBrand: e.movistarBlue,
128
- control: e.grey3,
139
+ textActivated: e.movistarBlueHC,
140
+ textBrand: e.movistarBlueHC,
141
+ control: e.grey4,
129
142
  controlActivated: e.movistarBlue,
130
143
  controlInverse: e.movistarBlue20,
131
144
  controlActivatedInverse: e.white,
132
- controlError: e.pepper,
145
+ controlError: e.pepper55,
133
146
  barTrack: e.grey3,
134
- loadingBar: e.movistarBlue30,
135
- loadingBarBackground: e.movistarBlue55,
147
+ loadingBar: e.movistarBlue,
148
+ loadingBarBackground: e.grey2,
136
149
  toggleAndroidInactive: e.grey2,
137
150
  toggleAndroidBackgroundActive: e.movistarBlue20,
138
151
  iosControlKnob: e.white,
139
- divider: e.grey2,
152
+ divider: e.grey3,
140
153
  dividerInverse: (0, _color.applyAlpha)(e.white, 0.2),
141
154
  navigationBarDivider: e.movistarBlue,
142
155
  badge: e.pepper55,
143
- feedbackErrorBackground: e.pepper,
156
+ feedbackErrorBackground: e.pepper55,
144
157
  feedbackInfoBackground: e.movistarBlueDark,
145
158
  brand: e.movistarBlue,
146
159
  brandHigh: e.movistarBlue55,
@@ -154,13 +167,13 @@ const e = {
154
167
  textPrimaryInverse: e.white,
155
168
  textSecondary: e.grey5,
156
169
  textSecondaryInverse: e.movistarBlue10,
157
- success: e.movistarGreen,
158
- warning: e.egg,
159
- error: e.pepper,
160
- textError: e.pepper,
170
+ success: e.movistarGreen55,
171
+ warning: e.egg55,
172
+ error: e.pepper55,
173
+ textError: e.pepper55,
161
174
  textErrorInverse: e.white,
162
175
  promo: e.purple,
163
- highlight: e.pink,
176
+ highlight: e.pink55,
164
177
  successLow: e.movistarGreen10,
165
178
  warningLow: e.egg10,
166
179
  errorLow: e.pepper10,
@@ -178,11 +191,11 @@ const e = {
178
191
  textNavigationBarSecondary: e.movistarBlue20,
179
192
  textNavigationSearchBarHint: e.movistarBlue20,
180
193
  textNavigationSearchBarText: e.white,
181
- textAppBar: e.grey4,
182
- textAppBarSelected: e.movistarBlue,
183
- customTabsBackground: e.movistarBlue,
194
+ textAppBar: e.grey5,
195
+ textAppBarSelected: e.movistarBlueHC,
196
+ customTabsBackground: e.white,
184
197
  tagTextPromo: e.purple70,
185
- tagTextActive: e.movistarBlue,
198
+ tagTextActive: e.movistarBlueHC,
186
199
  tagTextInactive: e.grey5,
187
200
  tagTextSuccess: e.movistarGreen70,
188
201
  tagTextWarning: e.egg80,
@@ -210,8 +223,8 @@ const e = {
210
223
  backgroundContainerBrandOverInverse: e.darkModeGrey,
211
224
  backgroundContainerAlternative: e.darkModeGrey,
212
225
  backgroundOverlay: (0, _color.applyAlpha)(e.darkModeGrey, 0.8),
213
- backgroundSkeleton: e.movistarBlueDark,
214
- backgroundSkeletonInverse: e.movistarBlueDark,
226
+ backgroundSkeleton: e.darkModeGrey6,
227
+ backgroundSkeletonInverse: e.darkModeGrey6,
215
228
  backgroundBrandTop: e.darkModeBlack,
216
229
  backgroundBrandBottom: e.darkModeBlack,
217
230
  appBarBackground: e.darkModeGrey,
@@ -219,89 +232,89 @@ const e = {
219
232
  skeletonWave: e.darkModeGrey6,
220
233
  borderLow: e.darkModeBlack,
221
234
  border: e.darkModeGrey,
222
- borderHigh: e.darkModeGrey4,
235
+ borderHigh: e.darkModeGrey5,
223
236
  borderSelected: e.movistarBlue,
224
237
  coverBackgroundHover: (0, _color.applyAlpha)(e.darkModeBlack, 0.25),
225
238
  coverBackgroundPressed: (0, _color.applyAlpha)(e.darkModeBlack, 0.35),
226
- buttonDangerBackground: e.pepper,
227
- buttonDangerBackgroundSelected: e.pepper55,
228
- buttonDangerBackgroundHover: e.pepper55,
239
+ buttonDangerBackground: e.pepper55,
240
+ buttonDangerBackgroundSelected: e.pepper70,
241
+ buttonDangerBackgroundHover: e.pepper65,
229
242
  buttonLinkDangerBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.08),
230
243
  buttonLinkDangerBackgroundInverse: (0, _color.applyAlpha)(e.white, 0),
231
244
  buttonLinkDangerBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.08),
232
245
  buttonLinkBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.08),
233
246
  buttonLinkBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.08),
234
- buttonPrimaryBackground: e.movistarBlue,
235
- buttonPrimaryBackgroundInverse: e.movistarBlue,
236
- buttonPrimaryBackgroundSelected: e.movistarBlue55,
237
- buttonPrimaryBackgroundHover: e.movistarBlue55,
238
- buttonPrimaryBackgroundInverseSelected: e.movistarBlue55,
247
+ buttonPrimaryBackground: e.movistarBlueHC,
248
+ buttonPrimaryBackgroundInverse: e.movistarBlueHC,
249
+ buttonPrimaryBackgroundSelected: e.movistarBlueHC65,
250
+ buttonPrimaryBackgroundHover: e.movistarBlueHC55,
251
+ buttonPrimaryBackgroundInverseSelected: e.movistarBlueHC65,
239
252
  buttonSecondaryBackgroundHover: (0, _color.applyAlpha)(e.white, 0.15),
240
- buttonSecondaryBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.15),
253
+ buttonSecondaryBackgroundSelected: (0, _color.applyAlpha)(e.white, 0.25),
241
254
  buttonSecondaryBorder: e.white,
242
255
  buttonSecondaryBorderSelected: e.white,
243
- buttonSecondaryBorderInverse: e.white,
244
- buttonSecondaryBorderInverseSelected: e.white,
256
+ buttonSecondaryBorderInverse: e.darkModeGrey2,
257
+ buttonSecondaryBorderInverseSelected: e.darkModeGrey2,
245
258
  buttonSecondaryBackgroundInverseHover: (0, _color.applyAlpha)(e.white, 0.15),
246
- buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.15),
247
- textButtonPrimary: e.darkModeGrey2,
248
- textButtonPrimaryInverse: e.darkModeGrey2,
249
- textButtonPrimaryInverseSelected: e.darkModeGrey2,
259
+ buttonSecondaryBackgroundInverseSelected: (0, _color.applyAlpha)(e.white, 0.25),
260
+ textButtonPrimary: e.white,
261
+ textButtonPrimaryInverse: e.white,
262
+ textButtonPrimaryInverseSelected: e.white,
250
263
  textButtonSecondary: e.darkModeGrey2,
251
- textButtonSecondarySelected: e.darkModeGrey4,
264
+ textButtonSecondarySelected: e.darkModeGrey2,
252
265
  textButtonSecondaryInverse: e.darkModeGrey2,
253
- textButtonSecondaryInverseSelected: e.darkModeGrey4,
266
+ textButtonSecondaryInverseSelected: e.darkModeGrey2,
254
267
  textLink: e.movistarBlue,
255
268
  textLinkInverse: e.movistarBlue,
256
- textLinkDanger: e.pepper,
257
- textLinkSnackbar: e.movistarBlue30,
269
+ textLinkDanger: e.pepper45,
270
+ textLinkSnackbar: e.movistarBlue,
258
271
  textActivated: e.movistarBlue,
259
272
  textBrand: e.movistarBlue,
260
- control: e.darkModeGrey6,
273
+ control: e.darkModeGrey4,
261
274
  controlActivated: e.movistarBlue,
262
- controlInverse: e.darkModeGrey6,
275
+ controlInverse: e.darkModeGrey4,
263
276
  controlActivatedInverse: e.movistarBlue,
264
- controlError: e.pepper,
277
+ controlError: e.pepper45,
265
278
  barTrack: e.darkModeGrey6,
266
279
  loadingBar: e.movistarBlue,
267
280
  loadingBarBackground: e.darkModeGrey6,
268
- toggleAndroidInactive: e.darkModeGrey4,
281
+ toggleAndroidInactive: e.darkModeGrey2,
269
282
  toggleAndroidBackgroundActive: e.movistarBlue20,
270
283
  iosControlKnob: e.darkModeGrey2,
271
- divider: (0, _color.applyAlpha)(e.white, 0.05),
272
- dividerInverse: (0, _color.applyAlpha)(e.white, 0.05),
284
+ divider: (0, _color.applyAlpha)(e.white, 0.1),
285
+ dividerInverse: (0, _color.applyAlpha)(e.white, 0.1),
273
286
  navigationBarDivider: e.darkModeBlack,
274
287
  badge: e.pepper55,
275
- feedbackErrorBackground: e.pepper,
288
+ feedbackErrorBackground: e.pepper55,
276
289
  feedbackInfoBackground: e.movistarBlueDark,
277
290
  brand: e.movistarBlue,
278
- brandHigh: e.darkModeGrey,
291
+ brandHigh: e.movistarBlue40,
279
292
  inverse: e.darkModeGrey2,
280
293
  neutralHigh: e.darkModeGrey2,
281
294
  neutralMedium: e.darkModeGrey5,
282
295
  neutralMediumInverse: e.grey5,
283
- neutralLow: e.movistarBlueDark,
284
- neutralLowAlternative: e.movistarBlueDark,
296
+ neutralLow: e.darkModeGrey6,
297
+ neutralLowAlternative: e.darkModeGrey6,
285
298
  textPrimary: e.darkModeGrey2,
286
299
  textPrimaryInverse: e.darkModeGrey2,
287
300
  textSecondary: e.darkModeGrey4,
288
301
  textSecondaryInverse: e.darkModeGrey4,
289
302
  success: e.movistarGreen,
290
303
  warning: e.egg,
291
- error: e.pepper,
292
- textError: e.pepper,
293
- textErrorInverse: e.pepper,
294
- promo: e.purple,
295
- highlight: e.pink,
296
- successLow: e.movistarBlueDark,
297
- warningLow: e.movistarBlueDark,
298
- errorLow: e.movistarBlueDark,
299
- promoLow: e.movistarBlueDark,
300
- brandLow: e.movistarBlueDark,
304
+ error: e.pepper45,
305
+ textError: e.pepper45,
306
+ textErrorInverse: e.pepper45,
307
+ promo: e.purple40,
308
+ highlight: e.pink45,
309
+ successLow: e.darkModeGrey7,
310
+ warningLow: e.darkModeGrey7,
311
+ errorLow: e.darkModeGrey7,
312
+ promoLow: e.darkModeGrey7,
313
+ brandLow: e.darkModeGrey7,
301
314
  successHigh: e.movistarGreen40,
302
315
  warningHigh: e.egg40,
303
- errorHigh: e.pepper40,
304
- promoHigh: e.purple40,
316
+ errorHigh: e.pepper45,
317
+ promoHigh: e.purple35,
305
318
  successHighInverse: e.movistarGreen70,
306
319
  warningHighInverse: e.egg80,
307
320
  errorHighInverse: e.pepper70,
@@ -310,21 +323,21 @@ const e = {
310
323
  textNavigationBarSecondary: e.darkModeGrey4,
311
324
  textNavigationSearchBarHint: e.darkModeGrey4,
312
325
  textNavigationSearchBarText: e.darkModeGrey2,
313
- textAppBar: e.darkModeGrey5,
314
- textAppBarSelected: e.darkModeGrey2,
326
+ textAppBar: e.darkModeGrey4,
327
+ textAppBarSelected: e.movistarBlue,
315
328
  customTabsBackground: e.darkModeBlack,
316
- tagTextPromo: e.purple40,
329
+ tagTextPromo: e.purple35,
317
330
  tagTextActive: e.movistarBlue,
318
- tagTextInactive: e.darkModeGrey5,
331
+ tagTextInactive: e.darkModeGrey3,
319
332
  tagTextSuccess: e.movistarGreen40,
320
333
  tagTextWarning: e.egg40,
321
- tagTextError: e.pepper40,
322
- tagBackgroundPromo: e.movistarBlueDark,
323
- tagBackgroundActive: e.movistarBlueDark,
324
- tagBackgroundInactive: e.movistarBlueDark,
325
- tagBackgroundSuccess: e.movistarBlueDark,
326
- tagBackgroundWarning: e.movistarBlueDark,
327
- tagBackgroundError: e.movistarBlueDark,
334
+ tagTextError: e.pepper45,
335
+ tagBackgroundPromo: e.darkModeGrey7,
336
+ tagBackgroundActive: e.darkModeGrey7,
337
+ tagBackgroundInactive: e.darkModeGrey7,
338
+ tagBackgroundSuccess: e.darkModeGrey7,
339
+ tagBackgroundWarning: e.darkModeGrey7,
340
+ tagBackgroundError: e.darkModeGrey7,
328
341
  cardContentOverlay: `linear-gradient(180deg, ${(0, _color.applyAlpha)(e.black, 0)} 0%, ${(0, _color.applyAlpha)(e.black, 0.4)} 30%, ${(0, _color.applyAlpha)(e.black, 0.7)} 100%)`
329
342
  },
330
343
  borderRadii: {
package/dist/spinner.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return V;
9
+ return j;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -15,6 +15,7 @@ const _fadein = /*#__PURE__*/ _interop_require_default(require("./fade-in.js"));
15
15
  const _hooks = require("./hooks.js");
16
16
  const _spinnercssmistica = require("./spinner.css-mistica.js");
17
17
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
18
+ const _themevariantcontext = require("./theme-variant-context.js");
18
19
  function _interop_require_default(obj) {
19
20
  return obj && obj.__esModule ? obj : {
20
21
  default: obj
@@ -48,12 +49,12 @@ function _object_spread(target) {
48
49
  }
49
50
  return target;
50
51
  }
51
- const Z = (param)=>{
52
- let { color: t, delay: s = "500ms", size: a = 24, style: m, rolePresentation: p } = param;
53
- const { texts: h, platformOverrides: o } = (0, _hooks.useTheme)();
54
- t = t || _skincontractcssmistica.vars.colors.controlActivated;
55
- const l = (0, _hooks.useAriaId)(), n = !p, C = h.loading, d = (0, _platform.getPlatform)(o) === "ios" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
56
- "aria-labelledby": l,
52
+ const x = (param)=>{
53
+ let { color: t, delay: i = "500ms", size: a = 24, style: m, rolePresentation: p } = param;
54
+ const { texts: c, platformOverrides: h } = (0, _hooks.useTheme)(), f = (0, _themevariantcontext.useIsInverseVariant)();
55
+ t = t || (f ? _skincontractcssmistica.vars.colors.controlActivatedInverse : _skincontractcssmistica.vars.colors.controlActivated);
56
+ const n = (0, _hooks.useAriaId)(), r = !p, o = c.loading, C = (0, _platform.getPlatform)(h) === "ios" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
57
+ "aria-labelledby": n,
57
58
  className: _spinnercssmistica.spinnerIos,
58
59
  height: a,
59
60
  style: _object_spread({}, m),
@@ -61,9 +62,9 @@ const Z = (param)=>{
61
62
  viewBox: "0 0 30 30",
62
63
  width: a,
63
64
  children: [
64
- n && /* @__PURE__ */ (0, _jsxruntime.jsx)("title", {
65
- id: l,
66
- children: C
65
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)("title", {
66
+ id: n,
67
+ children: o
67
68
  }),
68
69
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("g", {
69
70
  role: "presentation",
@@ -112,7 +113,7 @@ const Z = (param)=>{
112
113
  })
113
114
  ]
114
115
  }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", {
115
- "aria-labelledby": n ? l : void 0,
116
+ "aria-labelledby": r ? n : void 0,
116
117
  className: _spinnercssmistica.spinnerDefault,
117
118
  height: a,
118
119
  style: _object_spread({}, m),
@@ -120,9 +121,9 @@ const Z = (param)=>{
120
121
  viewBox: "0 0 66 66",
121
122
  width: a,
122
123
  children: [
123
- n && /* @__PURE__ */ (0, _jsxruntime.jsx)("title", {
124
- id: l,
125
- children: C
124
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)("title", {
125
+ id: n,
126
+ children: o
126
127
  }),
127
128
  /* @__PURE__ */ (0, _jsxruntime.jsx)("circle", {
128
129
  className: _spinnercssmistica.spinnerDefaultPath,
@@ -136,11 +137,11 @@ const Z = (param)=>{
136
137
  })
137
138
  ]
138
139
  });
139
- return s === "0" || s === "0s" || s === "0ms" ? d : /* @__PURE__ */ (0, _jsxruntime.jsx)(_fadein.default, {
140
- delay: s,
140
+ return i === "0" || i === "0s" || i === "0ms" ? C : /* @__PURE__ */ (0, _jsxruntime.jsx)(_fadein.default, {
141
+ delay: i,
141
142
  dataAttributes: {
142
143
  "component-name": "Spinner"
143
144
  },
144
- children: d
145
+ children: C
145
146
  });
146
- }, V = Z;
147
+ }, j = x;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ boxed: function() {
13
+ return l;
14
+ },
15
+ cellTextAlign: function() {
16
+ return a;
17
+ },
18
+ collapsedRowTittle: function() {
19
+ return k;
20
+ },
21
+ collapsedRowsInMobile: function() {
22
+ return t;
23
+ },
24
+ fullWidth: function() {
25
+ return _;
26
+ },
27
+ mobileCellHeading: function() {
28
+ return i;
29
+ },
30
+ scrollContainer: function() {
31
+ return v;
32
+ },
33
+ scrollOverResponsiveLayout: function() {
34
+ return c;
35
+ },
36
+ table: function() {
37
+ return d;
38
+ },
39
+ vars: function() {
40
+ return n;
41
+ },
42
+ verticalAlign: function() {
43
+ return p;
44
+ }
45
+ });
46
+ require("./sprinkles.css.ts.vanilla.css-mistica.js");
47
+ require("./responsive-layout.css.ts.vanilla.css-mistica.js");
48
+ require("./table.css.ts.vanilla.css-mistica.js");
49
+ var l = "_107ok884", a = {
50
+ left: "_107ok886 _107ok885",
51
+ right: "_107ok887 _107ok885",
52
+ center: "_107ok888 _107ok885"
53
+ }, k = "_107ok88e", t = "_107ok883", _ = "_107ok882", i = "_107ok88d", v = "_107ok889", c = "_107ok88a", d = "_107ok881", n = {
54
+ maxHeight: "var(--_107ok880)"
55
+ }, p = {
56
+ top: "_107ok88b",
57
+ middle: "_107ok88c"
58
+ };