@telefonica/mistica 15.0.0 → 15.1.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 (213) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +1 -0
  4. package/dist/avatar.css-mistica.js +3 -3
  5. package/dist/badge.css-mistica.js +6 -6
  6. package/dist/boxed.css-mistica.js +3 -3
  7. package/dist/button-group.css-mistica.js +1 -1
  8. package/dist/button-layout.css-mistica.js +9 -9
  9. package/dist/button.css-mistica.js +27 -27
  10. package/dist/button.d.ts +12 -0
  11. package/dist/button.js +67 -62
  12. package/dist/callout.css-mistica.js +2 -2
  13. package/dist/callout.d.ts +1 -0
  14. package/dist/callout.js +11 -11
  15. package/dist/card.css-mistica.js +13 -13
  16. package/dist/card.d.ts +6 -0
  17. package/dist/card.js +301 -293
  18. package/dist/carousel.css-mistica.js +19 -19
  19. package/dist/checkbox.css-mistica.js +9 -9
  20. package/dist/chip.css-mistica.js +10 -10
  21. package/dist/circle.css-mistica.js +2 -2
  22. package/dist/community/advanced-data-card.css-mistica.js +12 -12
  23. package/dist/community/blocks.css-mistica.js +1 -1
  24. package/dist/counter.css-mistica.js +4 -4
  25. package/dist/credit-card-number-field.css-mistica.js +5 -5
  26. package/dist/dialog.css-mistica.js +6 -6
  27. package/dist/double-field.css-mistica.js +2 -2
  28. package/dist/empty-state-card.css-mistica.js +3 -3
  29. package/dist/empty-state-card.d.ts +1 -0
  30. package/dist/empty-state-card.js +10 -9
  31. package/dist/empty-state.css-mistica.js +4 -4
  32. package/dist/empty-state.d.ts +1 -0
  33. package/dist/empty-state.js +14 -14
  34. package/dist/feedback.css-mistica.js +5 -5
  35. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  36. package/dist/header.css-mistica.js +1 -1
  37. package/dist/header.d.ts +2 -0
  38. package/dist/header.js +46 -47
  39. package/dist/hero.css-mistica.js +2 -2
  40. package/dist/hero.d.ts +1 -0
  41. package/dist/hero.js +29 -29
  42. package/dist/highlighted-card.css-mistica.js +7 -7
  43. package/dist/highlighted-card.d.ts +1 -2
  44. package/dist/highlighted-card.js +9 -9
  45. package/dist/horizontal-scroll.css-mistica.js +1 -1
  46. package/dist/icon-button.css-mistica.js +14 -17
  47. package/dist/icon-button.css.d.ts +1 -1
  48. package/dist/icon-button.d.ts +0 -13
  49. package/dist/icon-button.js +84 -87
  50. package/dist/image.css-mistica.js +3 -3
  51. package/dist/index.d.ts +4 -2
  52. package/dist/index.js +13 -0
  53. package/dist/inline.js +8 -7
  54. package/dist/list.css-mistica.js +12 -12
  55. package/dist/list.d.ts +1 -0
  56. package/dist/list.js +143 -138
  57. package/dist/loading-bar.css-mistica.js +4 -4
  58. package/dist/loading-screen.css-mistica.js +3 -3
  59. package/dist/logo.d.ts +1 -0
  60. package/dist/logo.js +155 -136
  61. package/dist/maybe-dismissable.css-mistica.js +1 -1
  62. package/dist/maybe-dismissable.js +3 -4
  63. package/dist/menu.css-mistica.js +1 -1
  64. package/dist/navigation-bar.css-mistica.js +22 -22
  65. package/dist/navigation-bar.d.ts +2 -1
  66. package/dist/navigation-bar.js +53 -52
  67. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  68. package/dist/package-version.js +1 -1
  69. package/dist/pin-field.css-mistica.js +4 -4
  70. package/dist/progress-bar.css-mistica.js +3 -3
  71. package/dist/radio-button.css-mistica.js +8 -8
  72. package/dist/responsive-layout.css-mistica.js +5 -5
  73. package/dist/screen-reader-only.css-mistica.js +1 -1
  74. package/dist/select.css-mistica.js +10 -10
  75. package/dist/sheet.css-mistica.js +8 -8
  76. package/dist/skeletons.css-mistica.js +5 -5
  77. package/dist/skins/blau.js +4 -2
  78. package/dist/skins/constants.d.ts +1 -0
  79. package/dist/skins/constants.js +6 -3
  80. package/dist/skins/movistar.d.ts +1 -0
  81. package/dist/skins/movistar.js +5 -2
  82. package/dist/skins/o2-new.d.ts +50 -0
  83. package/dist/skins/o2-new.js +397 -0
  84. package/dist/skins/o2.d.ts +1 -0
  85. package/dist/skins/o2.js +5 -2
  86. package/dist/skins/skin-contract.css-mistica.js +138 -136
  87. package/dist/skins/skin-contract.css.d.ts +2 -0
  88. package/dist/skins/telefonica.d.ts +1 -0
  89. package/dist/skins/telefonica.js +5 -2
  90. package/dist/skins/tu.d.ts +1 -0
  91. package/dist/skins/tu.js +5 -2
  92. package/dist/skins/types/colors.d.ts +1 -0
  93. package/dist/skins/types/index.d.ts +1 -1
  94. package/dist/skins/utils.js +7 -4
  95. package/dist/skins/vivo-new.js +4 -2
  96. package/dist/skins/vivo.js +4 -2
  97. package/dist/slider.css-mistica.js +7 -7
  98. package/dist/snackbar.css-mistica.js +12 -12
  99. package/dist/spinner.css-mistica.js +5 -5
  100. package/dist/sprinkles.css-mistica.js +792 -786
  101. package/dist/stacking-group.css-mistica.js +2 -2
  102. package/dist/stepper.css-mistica.js +9 -9
  103. package/dist/switch-component.css-mistica.js +26 -23
  104. package/dist/switch-component.css.d.ts +1 -0
  105. package/dist/switch-component.js +11 -10
  106. package/dist/tabs.css-mistica.js +9 -9
  107. package/dist/tag.css-mistica.js +1 -1
  108. package/dist/text-field-base.css-mistica.js +5 -5
  109. package/dist/text-field-components.css-mistica.js +11 -11
  110. package/dist/text-link.css-mistica.js +3 -3
  111. package/dist/text-link.d.ts +5 -0
  112. package/dist/tooltip.css-mistica.js +2 -2
  113. package/dist/tooltip.js +0 -1
  114. package/dist/touchable.css-mistica.js +5 -5
  115. package/dist/touchable.d.ts +33 -19
  116. package/dist/touchable.js +54 -51
  117. package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
  118. package/dist/utils/browser.d.ts +1 -0
  119. package/dist/utils/browser.js +14 -0
  120. package/dist/video.css-mistica.js +1 -1
  121. package/dist-es/accordion.css-mistica.js +3 -3
  122. package/dist-es/avatar.css-mistica.js +2 -2
  123. package/dist-es/badge.css-mistica.js +2 -2
  124. package/dist-es/boxed.css-mistica.js +2 -2
  125. package/dist-es/button-group.css-mistica.js +1 -1
  126. package/dist-es/button-layout.css-mistica.js +6 -6
  127. package/dist-es/button.css-mistica.js +16 -16
  128. package/dist-es/button.js +88 -83
  129. package/dist-es/callout.css-mistica.js +2 -2
  130. package/dist-es/callout.js +37 -37
  131. package/dist-es/card.css-mistica.js +2 -2
  132. package/dist-es/card.js +442 -434
  133. package/dist-es/carousel.css-mistica.js +2 -2
  134. package/dist-es/checkbox.css-mistica.js +6 -6
  135. package/dist-es/chip.css-mistica.js +7 -7
  136. package/dist-es/circle.css-mistica.js +2 -2
  137. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  138. package/dist-es/community/blocks.css-mistica.js +1 -1
  139. package/dist-es/counter.css-mistica.js +2 -2
  140. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  141. package/dist-es/dialog.css-mistica.js +5 -5
  142. package/dist-es/double-field.css-mistica.js +2 -2
  143. package/dist-es/empty-state-card.css-mistica.js +2 -2
  144. package/dist-es/empty-state-card.js +30 -29
  145. package/dist-es/empty-state.css-mistica.js +3 -3
  146. package/dist-es/empty-state.js +34 -34
  147. package/dist-es/feedback.css-mistica.js +2 -2
  148. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  149. package/dist-es/header.css-mistica.js +1 -1
  150. package/dist-es/header.js +69 -70
  151. package/dist-es/hero.css-mistica.js +2 -2
  152. package/dist-es/hero.js +56 -56
  153. package/dist-es/highlighted-card.css-mistica.js +5 -5
  154. package/dist-es/highlighted-card.js +26 -26
  155. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  156. package/dist-es/icon-button.css-mistica.js +9 -12
  157. package/dist-es/icon-button.js +94 -97
  158. package/dist-es/image.css-mistica.js +2 -2
  159. package/dist-es/index.js +1765 -1764
  160. package/dist-es/inline.js +13 -12
  161. package/dist-es/list.css-mistica.js +2 -2
  162. package/dist-es/list.js +184 -179
  163. package/dist-es/loading-bar.css-mistica.js +2 -2
  164. package/dist-es/loading-screen.css-mistica.js +2 -2
  165. package/dist-es/logo.js +172 -156
  166. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  167. package/dist-es/maybe-dismissable.js +7 -8
  168. package/dist-es/menu.css-mistica.js +1 -1
  169. package/dist-es/navigation-bar.css-mistica.js +9 -9
  170. package/dist-es/navigation-bar.js +72 -71
  171. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  172. package/dist-es/package-version.js +1 -1
  173. package/dist-es/pin-field.css-mistica.js +2 -2
  174. package/dist-es/progress-bar.css-mistica.js +2 -2
  175. package/dist-es/radio-button.css-mistica.js +5 -5
  176. package/dist-es/responsive-layout.css-mistica.js +4 -4
  177. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  178. package/dist-es/select.css-mistica.js +9 -9
  179. package/dist-es/sheet.css-mistica.js +2 -2
  180. package/dist-es/skeletons.css-mistica.js +2 -2
  181. package/dist-es/skins/blau.js +4 -2
  182. package/dist-es/skins/constants.js +2 -2
  183. package/dist-es/skins/movistar.js +7 -4
  184. package/dist-es/skins/o2-new.js +380 -0
  185. package/dist-es/skins/o2.js +5 -2
  186. package/dist-es/skins/skin-contract.css-mistica.js +138 -136
  187. package/dist-es/skins/telefonica.js +5 -2
  188. package/dist-es/skins/tu.js +5 -2
  189. package/dist-es/skins/utils.js +20 -17
  190. package/dist-es/skins/vivo-new.js +4 -2
  191. package/dist-es/skins/vivo.js +4 -2
  192. package/dist-es/slider.css-mistica.js +2 -2
  193. package/dist-es/snackbar.css-mistica.js +5 -5
  194. package/dist-es/spinner.css-mistica.js +2 -2
  195. package/dist-es/sprinkles.css-mistica.js +792 -786
  196. package/dist-es/stacking-group.css-mistica.js +2 -2
  197. package/dist-es/stepper.css-mistica.js +2 -2
  198. package/dist-es/style.css +1 -1
  199. package/dist-es/switch-component.css-mistica.js +19 -19
  200. package/dist-es/switch-component.js +24 -23
  201. package/dist-es/tabs.css-mistica.js +6 -6
  202. package/dist-es/tag.css-mistica.js +1 -1
  203. package/dist-es/text-field-base.css-mistica.js +2 -2
  204. package/dist-es/text-field-components.css-mistica.js +2 -2
  205. package/dist-es/text-link.css-mistica.js +3 -3
  206. package/dist-es/tooltip.css-mistica.js +2 -2
  207. package/dist-es/tooltip.js +0 -1
  208. package/dist-es/touchable.css-mistica.js +2 -2
  209. package/dist-es/touchable.js +68 -65
  210. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  211. package/dist-es/utils/browser.js +5 -0
  212. package/dist-es/video.css-mistica.js +1 -1
  213. package/package.json +2 -2
@@ -84,7 +84,6 @@ interface IconButtonBaseProps {
84
84
  }
85
85
  interface InternalIconButtonBaseProps {
86
86
  isOverMedia?: boolean;
87
- hasInteractiveAreaBleed?: boolean;
88
87
  hasOverlay?: boolean;
89
88
  }
90
89
  export type IconButtonProps = BaseProps & IconButtonBaseProps & ExclusifyUnion<HrefProps | ToProps | OnPressProps | MaybeProps> & AriaProps;
@@ -118,7 +117,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
118
117
  bleedLeft?: undefined;
119
118
  bleedRight?: undefined;
120
119
  bleedY?: undefined;
121
- hasInteractiveAreaBleed?: undefined;
122
120
  showSpinner?: undefined;
123
121
  } | {
124
122
  children?: React.ReactNode;
@@ -149,7 +147,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
149
147
  bleedLeft?: undefined;
150
148
  bleedRight?: undefined;
151
149
  bleedY?: undefined;
152
- hasInteractiveAreaBleed?: undefined;
153
150
  showSpinner?: undefined;
154
151
  } | {
155
152
  children?: React.ReactNode;
@@ -180,7 +177,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
180
177
  bleedLeft?: undefined;
181
178
  bleedRight?: undefined;
182
179
  bleedY?: undefined;
183
- hasInteractiveAreaBleed?: undefined;
184
180
  showSpinner?: undefined;
185
181
  } | {
186
182
  children?: React.ReactNode;
@@ -211,7 +207,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
211
207
  bleedLeft?: undefined;
212
208
  bleedRight?: undefined;
213
209
  bleedY?: undefined;
214
- hasInteractiveAreaBleed?: undefined;
215
210
  showSpinner?: undefined;
216
211
  } | {
217
212
  children?: undefined;
@@ -235,7 +230,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
235
230
  'aria-label': string;
236
231
  "aria-labelledby"?: undefined;
237
232
  isOverMedia?: boolean | undefined;
238
- hasInteractiveAreaBleed?: boolean | undefined;
239
233
  hasOverlay?: boolean | undefined;
240
234
  backgroundColor?: undefined;
241
235
  size?: undefined;
@@ -266,7 +260,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
266
260
  'aria-labelledby': string;
267
261
  "aria-label"?: undefined;
268
262
  isOverMedia?: boolean | undefined;
269
- hasInteractiveAreaBleed?: boolean | undefined;
270
263
  hasOverlay?: boolean | undefined;
271
264
  backgroundColor?: undefined;
272
265
  size?: undefined;
@@ -297,7 +290,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
297
290
  'aria-label': string;
298
291
  "aria-labelledby"?: undefined;
299
292
  isOverMedia?: boolean | undefined;
300
- hasInteractiveAreaBleed?: boolean | undefined;
301
293
  hasOverlay?: boolean | undefined;
302
294
  backgroundColor?: undefined;
303
295
  size?: undefined;
@@ -328,7 +320,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
328
320
  'aria-labelledby': string;
329
321
  "aria-label"?: undefined;
330
322
  isOverMedia?: boolean | undefined;
331
- hasInteractiveAreaBleed?: boolean | undefined;
332
323
  hasOverlay?: boolean | undefined;
333
324
  backgroundColor?: undefined;
334
325
  size?: undefined;
@@ -359,7 +350,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
359
350
  'aria-label': string;
360
351
  "aria-labelledby"?: undefined;
361
352
  isOverMedia?: boolean | undefined;
362
- hasInteractiveAreaBleed?: boolean | undefined;
363
353
  hasOverlay?: boolean | undefined;
364
354
  backgroundColor?: undefined;
365
355
  size?: undefined;
@@ -390,7 +380,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
390
380
  'aria-labelledby': string;
391
381
  "aria-label"?: undefined;
392
382
  isOverMedia?: boolean | undefined;
393
- hasInteractiveAreaBleed?: boolean | undefined;
394
383
  hasOverlay?: boolean | undefined;
395
384
  backgroundColor?: undefined;
396
385
  size?: undefined;
@@ -421,7 +410,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
421
410
  'aria-label': string;
422
411
  "aria-labelledby"?: undefined;
423
412
  isOverMedia?: boolean | undefined;
424
- hasInteractiveAreaBleed?: boolean | undefined;
425
413
  hasOverlay?: boolean | undefined;
426
414
  backgroundColor?: undefined;
427
415
  size?: undefined;
@@ -452,7 +440,6 @@ export declare const InternalIconButton: React.ForwardRefExoticComponent<({
452
440
  'aria-labelledby': string;
453
441
  "aria-label"?: undefined;
454
442
  isOverMedia?: boolean | undefined;
455
- hasInteractiveAreaBleed?: boolean | undefined;
456
443
  hasOverlay?: boolean | undefined;
457
444
  backgroundColor?: undefined;
458
445
  size?: undefined;
@@ -11,22 +11,22 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  IconButton: function() {
14
- return se;
14
+ return ce;
15
15
  },
16
16
  InternalIconButton: function() {
17
- return te;
17
+ return ee;
18
18
  },
19
19
  InternalToggleIconButton: function() {
20
- return ne;
20
+ return te;
21
21
  },
22
22
  RawDeprecatedIconButton: function() {
23
- return ee;
23
+ return p;
24
24
  },
25
25
  RawIconButton: function() {
26
- return x;
26
+ return O;
27
27
  },
28
28
  ToggleIconButton: function() {
29
- return de;
29
+ return se;
30
30
  }
31
31
  });
32
32
  const _jsxruntime = require("react/jsx-runtime");
@@ -161,23 +161,23 @@ function _object_without_properties_loose(source, excluded) {
161
161
  }
162
162
  return target;
163
163
  }
164
- const U = 24, p = (e, r, o, a, n)=>{
165
- const c = a ? `${a}px ${a}px` : "100% 100%";
164
+ const X = 24, U = (e, a, l, r, n)=>{
165
+ const o = r ? `${r}px ${r}px` : "100% 100%";
166
166
  return {
167
167
  padding: 0,
168
- backgroundColor: o,
168
+ backgroundColor: l,
169
169
  backgroundImage: e ? `url(${e})` : "initial",
170
- backgroundSize: c,
170
+ backgroundSize: o,
171
171
  cursor: n ? "default" : "pointer",
172
- height: r,
173
- width: r,
172
+ height: a,
173
+ width: a,
174
174
  verticalAlign: "middle",
175
175
  textAlign: "center"
176
176
  };
177
- }, ee = /*#__PURE__*/ _react.forwardRef((e, r)=>{
178
- const { icon: o, children: a } = e, n = {
177
+ }, p = /*#__PURE__*/ _react.forwardRef((e, a)=>{
178
+ const { icon: l, children: r } = e, n = {
179
179
  className: e.className || "",
180
- ref: r,
180
+ ref: a,
181
181
  disabled: e.disabled,
182
182
  style: e.style,
183
183
  trackingEvent: e.trackingEvent,
@@ -190,25 +190,25 @@ const U = 24, p = (e, r, o, a, n)=>{
190
190
  href: e.href,
191
191
  newTab: e.newTab,
192
192
  "aria-label": e["aria-label"],
193
- children: !o && _react.Children.only(a)
193
+ children: !l && _react.Children.only(r)
194
194
  })) : e.to ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, n), {
195
195
  to: e.to,
196
196
  fullPageOnWebView: e.fullPageOnWebView,
197
197
  replace: e.replace,
198
198
  "aria-label": e["aria-label"],
199
- children: !o && _react.Children.only(a)
199
+ children: !l && _react.Children.only(r)
200
200
  })) : e.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, n), {
201
- onPress: (c)=>{
202
- c.stopPropagation(), e.onPress(c);
201
+ onPress: (o)=>{
202
+ o.stopPropagation(), e.onPress(o);
203
203
  },
204
204
  "aria-label": e["aria-label"],
205
- children: !o && _react.Children.only(a)
205
+ children: !l && _react.Children.only(r)
206
206
  })) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, n), {
207
207
  maybe: !0,
208
- children: !o && _react.Children.only(a)
208
+ children: !l && _react.Children.only(r)
209
209
  }));
210
- }), x = /*#__PURE__*/ _react.forwardRef((_param, z)=>{
211
- var { disabled: e, trackingEvent: r, dataAttributes: o, type: a = "neutral", backgroundType: n = "transparent", isOverMedia: c, hasOverlay: S = !0, "aria-label": I, "aria-labelledby": h, small: w, Icon: R, bleedLeft: m, bleedRight: f, bleedY: T, hasInteractiveAreaBleed: b } = _param, l = _object_without_properties(_param, [
210
+ }), O = /*#__PURE__*/ _react.forwardRef((_param, k)=>{
211
+ var { disabled: e, trackingEvent: a, dataAttributes: l, type: r = "neutral", backgroundType: n = "transparent", isOverMedia: o, hasOverlay: P = !0, "aria-label": y, "aria-labelledby": b, small: h, Icon: v, bleedLeft: f, bleedRight: m, bleedY: B } = _param, c = _object_without_properties(_param, [
212
212
  "disabled",
213
213
  "trackingEvent",
214
214
  "dataAttributes",
@@ -222,48 +222,45 @@ const U = 24, p = (e, r, o, a, n)=>{
222
222
  "Icon",
223
223
  "bleedLeft",
224
224
  "bleedRight",
225
- "bleedY",
226
- "hasInteractiveAreaBleed"
225
+ "bleedY"
227
226
  ]);
228
- const V = (0, _themevariantcontext.useThemeVariant)(), [E, B] = _react.useState(!1), s = l.showSpinner || E, [P, N] = _react.useState(!!s);
227
+ const x = (0, _themevariantcontext.useThemeVariant)(), [z, R] = _react.useState(!1), s = c.showSpinner || z, [w, T] = _react.useState(!!s);
229
228
  _react.useEffect(()=>{
230
- s && !P && N(!0);
229
+ s && !w && T(!0);
231
230
  }, [
232
231
  s,
233
- P
232
+ w
234
233
  ]);
235
- const d = w ? "small" : "default", C = c ? `${a}-media` : `${a}-${n}-${V}`, g = {
234
+ const u = h ? "small" : "default", V = o ? `${r}-media` : `${r}-${n}-${x}`, I = {
236
235
  disabled: e || s,
237
- ref: z,
238
- trackingEvent: r,
239
- "aria-label": I,
240
- "aria-labelledby": h,
241
- role: l.onPress || l.to || l.href ? "button" : void 0,
236
+ ref: k,
237
+ trackingEvent: a,
238
+ "aria-label": y,
239
+ "aria-labelledby": b,
242
240
  dataAttributes: _object_spread({
243
241
  "component-name": "IconButton"
244
- }, o),
245
- className: (0, _classnames.default)(_iconbuttoncssmistica.buttonContainer[d], _iconbuttoncssmistica.iconButtonTokens[C], {
242
+ }, l),
243
+ className: (0, _classnames.default)(_iconbuttoncssmistica.buttonContainer[u], _iconbuttoncssmistica.iconButtonTokens[V], _iconbuttoncssmistica.minimumInteractiveArea, {
246
244
  [_iconbuttoncssmistica.disabled]: e,
247
245
  [_iconbuttoncssmistica.overlayContainer]: !e && !s,
248
- [_iconbuttoncssmistica.bleedLeft[d]]: m && !b,
249
- [_iconbuttoncssmistica.bleedRight[d]]: f && !b,
250
- [_iconbuttoncssmistica.bleedY[d]]: T && !b,
251
- [_iconbuttoncssmistica.interactiveAreaBleed[d]]: b
246
+ [_iconbuttoncssmistica.bleedLeft[u]]: f,
247
+ [_iconbuttoncssmistica.bleedRight[u]]: m,
248
+ [_iconbuttoncssmistica.bleedY[u]]: B
252
249
  }),
253
- resetMargin: !m && !f && !T && !b
254
- }, y = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
255
- className: (0, _classnames.default)(_iconbuttoncssmistica.iconContainer[d], {
250
+ resetMargin: !f && !m && !B
251
+ }, g = /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
252
+ className: (0, _classnames.default)(_iconbuttoncssmistica.iconContainer[u], {
256
253
  [_iconbuttoncssmistica.isLoading]: s
257
254
  }),
258
255
  children: [
259
- S && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
256
+ P && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
260
257
  className: _iconbuttoncssmistica.overlay
261
258
  }),
262
259
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
263
260
  "aria-hidden": s ? !0 : void 0,
264
261
  className: _iconbuttoncssmistica.icon,
265
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(R, {
266
- size: _iconbuttoncssmistica.iconSize[d],
262
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(v, {
263
+ size: _iconbuttoncssmistica.iconSize[u],
267
264
  color: "currentColor"
268
265
  })
269
266
  }),
@@ -271,50 +268,50 @@ const U = 24, p = (e, r, o, a, n)=>{
271
268
  "aria-hidden": s ? void 0 : !0,
272
269
  className: _iconbuttoncssmistica.spinner,
273
270
  onTransitionEnd: ()=>{
274
- s !== P && N(s);
271
+ s !== w && T(s);
275
272
  },
276
- children: P && /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
277
- size: _iconbuttoncssmistica.iconSize[d],
273
+ children: w && /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
274
+ size: _iconbuttoncssmistica.iconSize[u],
278
275
  color: "currentColor",
279
276
  delay: "0s"
280
277
  })
281
278
  })
282
279
  ]
283
280
  });
284
- return l.href ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, g), {
285
- href: l.href,
286
- newTab: l.newTab,
287
- children: y
288
- })) : l.to ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, g), {
289
- to: l.to,
290
- fullPageOnWebView: l.fullPageOnWebView,
291
- replace: l.replace,
292
- children: y
293
- })) : l.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, g), {
294
- onPress: (W)=>{
295
- const O = l.onPress(W);
296
- O && (B(!0), O.finally(()=>B(!1)));
281
+ return c.href ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, I), {
282
+ href: c.href,
283
+ newTab: c.newTab,
284
+ children: g
285
+ })) : c.to ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, I), {
286
+ to: c.to,
287
+ fullPageOnWebView: c.fullPageOnWebView,
288
+ replace: c.replace,
289
+ children: g
290
+ })) : c.onPress ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, I), {
291
+ onPress: (E)=>{
292
+ const N = c.onPress(E);
293
+ N && (R(!0), N.finally(()=>R(!1)));
297
294
  },
298
- children: y
299
- })) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, g), {
295
+ children: g
296
+ })) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, I), {
300
297
  maybe: !0,
301
- children: y
298
+ children: g
302
299
  }));
303
- }), te = /*#__PURE__*/ _react.forwardRef((e, r)=>{
304
- if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(x, _object_spread({
305
- ref: r
300
+ }), ee = /*#__PURE__*/ _react.forwardRef((e, a)=>{
301
+ if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(O, _object_spread({
302
+ ref: a
306
303
  }, e));
307
- const { icon: o, backgroundColor: a = "transparent", iconSize: n, size: c = U } = e;
308
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, _object_spread_props(_object_spread({
309
- ref: r
304
+ const { icon: l, backgroundColor: r = "transparent", iconSize: n, size: o = X } = e;
305
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(p, _object_spread_props(_object_spread({
306
+ ref: a
310
307
  }, e), {
311
308
  className: (0, _classnames.default)(_iconbuttoncssmistica.deprecatedIconButtonBase, e.className),
312
- style: _object_spread({}, p(o, c, a, n, e.disabled), e.style)
309
+ style: _object_spread({}, U(l, o, r, n, e.disabled), e.style)
313
310
  }));
314
- }), se = /*#__PURE__*/ _react.forwardRef((e, r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(te, _object_spread({
315
- ref: r
316
- }, e))), ne = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
317
- var { checked: e, defaultChecked: r, checkedProps: o, uncheckedProps: a, onChange: n, dataAttributes: c } = _param, S = _object_without_properties(_param, [
311
+ }), ce = /*#__PURE__*/ _react.forwardRef((e, a)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(ee, _object_spread({
312
+ ref: a
313
+ }, e))), te = /*#__PURE__*/ _react.forwardRef((_param, y)=>{
314
+ var { checked: e, defaultChecked: a, checkedProps: l, uncheckedProps: r, onChange: n, dataAttributes: o } = _param, P = _object_without_properties(_param, [
318
315
  "checked",
319
316
  "defaultChecked",
320
317
  "checkedProps",
@@ -322,21 +319,21 @@ const U = 24, p = (e, r, o, a, n)=>{
322
319
  "onChange",
323
320
  "dataAttributes"
324
321
  ]);
325
- const [h, w] = _react.useState(!!r), R = ()=>{
322
+ const [b, h] = _react.useState(!!a), v = ()=>{
326
323
  if (e === void 0) {
327
- const m = n == null ? void 0 : n(!h);
328
- if (m) return m.then(()=>w((f)=>!f)).catch(()=>{});
329
- w((f)=>!f);
324
+ const f = n == null ? void 0 : n(!b);
325
+ if (f) return f.then(()=>h((m)=>!m)).catch(()=>{});
326
+ h((m)=>!m);
330
327
  } else return n == null ? void 0 : n(!e);
331
328
  };
332
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(x, _object_spread_props(_object_spread({
333
- ref: I
334
- }, S, (e !== null && e !== void 0 ? e : h) ? o : a), {
329
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(O, _object_spread_props(_object_spread({
330
+ ref: y
331
+ }, P, (e !== null && e !== void 0 ? e : b) ? l : r), {
335
332
  dataAttributes: _object_spread({
336
333
  "component-name": "ToggleIconButton"
337
- }, c),
338
- onPress: R
334
+ }, o),
335
+ onPress: v
339
336
  }));
340
- }), de = /*#__PURE__*/ _react.forwardRef((e, r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(ne, _object_spread({
341
- ref: r
337
+ }), se = /*#__PURE__*/ _react.forwardRef((e, a)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(te, _object_spread({
338
+ ref: a
342
339
  }, e)));
@@ -25,14 +25,14 @@ _export(exports, {
25
25
  return d;
26
26
  },
27
27
  noBorderRadius: function() {
28
- return f;
28
+ return e;
29
29
  },
30
30
  vars: function() {
31
- return n;
31
+ return f;
32
32
  }
33
33
  });
34
34
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
35
35
  require("./image.css.ts.vanilla.css-mistica.js");
36
- var v = 300, _ = "_17tt25r5", t = "_17tt25r6", i = "_17tt25r3 _1y2v1nfkf _1y2v1nfku _1y2v1nfha _1y2v1nfhv _1y2v1nfic _1y2v1nfm3 _1y2v1nfjn _1y2v1nfjo _1y2v1nfjz", d = "_17tt25r1", f = "_17tt25r4", n = {
36
+ var v = 300, _ = "_17tt25r5", t = "_17tt25r6", i = "_17tt25r3 _1y2v1nfkh _1y2v1nfkw _1y2v1nfhc _1y2v1nfhx _1y2v1nfie _1y2v1nfm5 _1y2v1nfjp _1y2v1nfjq _1y2v1nfk1", d = "_17tt25r1", e = "_17tt25r4", f = {
37
37
  mediaBorderRadius: "var(--_17tt25r0)"
38
38
  };
package/dist/index.d.ts CHANGED
@@ -67,7 +67,7 @@ export { default as Avatar } from './avatar';
67
67
  export { default as Slider } from './slider';
68
68
  export { useModalState } from './modal-context-provider';
69
69
  export { NavigationBar, MainNavigationBar, FunnelNavigationBar, NavigationBarActionGroup, NavigationBarAction, } from './navigation-bar';
70
- export { Logo, MovistarLogo, VivoLogo, O2Logo, TelefonicaLogo, BlauLogo, TuLogo } from './logo';
70
+ export { Logo, MovistarLogo, VivoLogo, O2Logo, O2NewLogo, TelefonicaLogo, BlauLogo, TuLogo } from './logo';
71
71
  export { default as Image } from './image';
72
72
  export { default as Chip } from './chip';
73
73
  export { default as Video } from './video';
@@ -117,18 +117,20 @@ export { TrackingConfig, useTrackingConfig } from './utils/analytics';
117
117
  export { useDocumentVisibility } from './utils/document-visibility';
118
118
  export { ThemeVariant, useIsInverseVariant, useThemeVariant } from './theme-variant-context';
119
119
  export type { Skin, KnownSkinName, SkinName } from './skins/types';
120
- export { VIVO_SKIN, VIVO_NEW_SKIN, O2_SKIN, MOVISTAR_SKIN, TELEFONICA_SKIN, BLAU_SKIN, TU_SKIN, } from './skins/constants';
120
+ export { VIVO_SKIN, VIVO_NEW_SKIN, O2_SKIN, O2_NEW_SKIN, MOVISTAR_SKIN, TELEFONICA_SKIN, BLAU_SKIN, TU_SKIN, } from './skins/constants';
121
121
  export { getSkinByName } from './skins/utils';
122
122
  export { getVivoSkin } from './skins/vivo';
123
123
  export { getVivoNewSkin } from './skins/vivo-new';
124
124
  export { getMovistarSkin } from './skins/movistar';
125
125
  export { getO2Skin } from './skins/o2';
126
+ export { getO2NewSkin } from './skins/o2-new';
126
127
  export { getTelefonicaSkin } from './skins/telefonica';
127
128
  export { getBlauSkin } from './skins/blau';
128
129
  export { getTuSkin } from './skins/tu';
129
130
  export { palette as vivoPalette } from './skins/vivo';
130
131
  export { palette as movistarPalette } from './skins/movistar';
131
132
  export { palette as o2Palette } from './skins/o2';
133
+ export { palette as o2NewPalette } from './skins/o2-new';
132
134
  export { palette as telefonicaPalette } from './skins/telefonica';
133
135
  export { palette as blauPalette } from './skins/blau';
134
136
  export { palette as tuPalette } from './skins/tu';
package/dist/index.js CHANGED
@@ -5439,6 +5439,12 @@ _export(exports, {
5439
5439
  O2Logo: function() {
5440
5440
  return _logo.O2Logo;
5441
5441
  },
5442
+ O2NewLogo: function() {
5443
+ return _logo.O2NewLogo;
5444
+ },
5445
+ O2_NEW_SKIN: function() {
5446
+ return _constants.O2_NEW_SKIN;
5447
+ },
5442
5448
  O2_SKIN: function() {
5443
5449
  return _constants.O2_SKIN;
5444
5450
  },
@@ -5703,6 +5709,9 @@ _export(exports, {
5703
5709
  getMovistarSkin: function() {
5704
5710
  return _movistar.getMovistarSkin;
5705
5711
  },
5712
+ getO2NewSkin: function() {
5713
+ return _o2new.getO2NewSkin;
5714
+ },
5706
5715
  getO2Skin: function() {
5707
5716
  return _o2.getO2Skin;
5708
5717
  },
@@ -5727,6 +5736,9 @@ _export(exports, {
5727
5736
  mq: function() {
5728
5737
  return _mediaqueriescssmistica;
5729
5738
  },
5739
+ o2NewPalette: function() {
5740
+ return _o2new.palette;
5741
+ },
5730
5742
  o2Palette: function() {
5731
5743
  return _o2.palette;
5732
5744
  },
@@ -5923,6 +5935,7 @@ const _vivo = require("./skins/vivo.js");
5923
5935
  const _vivonew = require("./skins/vivo-new.js");
5924
5936
  const _movistar = require("./skins/movistar.js");
5925
5937
  const _o2 = require("./skins/o2.js");
5938
+ const _o2new = require("./skins/o2-new.js");
5926
5939
  const _telefonica = require("./skins/telefonica.js");
5927
5940
  const _blau = require("./skins/blau.js");
5928
5941
  const _tu = require("./skins/tu.js");
package/dist/inline.js CHANGED
@@ -126,21 +126,22 @@ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, A = (t)=>{
126
126
  };
127
127
  return t.tablet && (e[_inlinecssmistica.vars.spaceTablet] = i(t.tablet)), e;
128
128
  }, C = (param)=>{
129
- let { space: t, className: e, children: s, role: a, alignItems: m = "stretch", "aria-labelledby": p, fullWidth: f, wrap: c, dataAttributes: u } = param;
130
- const { platformOverrides: o } = (0, _hooks.useTheme)(), d = typeof t == "string";
129
+ let { space: t, className: e, children: a, role: o, alignItems: m = "stretch", "aria-labelledby": p, fullWidth: f, wrap: c, dataAttributes: d } = param;
130
+ const { platformOverrides: l } = (0, _hooks.useTheme)(), u = typeof t == "string";
131
131
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
132
132
  className: (0, _classnames.default)(e, _inlinecssmistica.inline, (0, _sprinklescssmistica.sprinkles)({
133
133
  alignItems: m
134
- }), c ? _inlinecssmistica.wrap : f ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, d ? _inlinecssmistica.stringSpace : _inlinecssmistica.marginInline),
134
+ }), c ? _inlinecssmistica.wrap : f ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, u ? _inlinecssmistica.stringSpace : _inlinecssmistica.marginInline),
135
135
  style: (0, _css.applyCssVars)(A(t)),
136
- role: a,
136
+ role: o,
137
137
  "aria-labelledby": p
138
- }, (0, _dom.getPrefixedDataAttributes)(u, "Inline")), {
139
- children: _react.Children.map(s, (n)=>n || n === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
138
+ }, (0, _dom.getPrefixedDataAttributes)(d, "Inline")), {
139
+ children: _react.Children.map(a, (n)=>n || n === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
140
+ role: o === "list" ? "listitem" : void 0,
140
141
  style: {
141
142
  // Hack to fix https://jira.tid.es/browse/WEB-1683
142
143
  // In iOS the inline component sometimes cuts the last line of the content
143
- paddingBottom: (0, _platform.isIos)(o) && !(0, _platform.isRunningAcceptanceTest)(o) ? 1 : void 0
144
+ paddingBottom: (0, _platform.isIos)(l) && !(0, _platform.isRunningAcceptanceTest)(l) ? 1 : void 0
144
145
  },
145
146
  children: n
146
147
  }) : null)
@@ -13,10 +13,10 @@ _export(exports, {
13
13
  return _;
14
14
  },
15
15
  badge: function() {
16
- return y;
16
+ return f;
17
17
  },
18
18
  center: function() {
19
- return f;
19
+ return y;
20
20
  },
21
21
  content: function() {
22
22
  return a;
@@ -31,31 +31,31 @@ _export(exports, {
31
31
  return t;
32
32
  },
33
33
  dualActionContainer: function() {
34
- return i;
34
+ return e;
35
35
  },
36
36
  dualActionDivider: function() {
37
- return e;
37
+ return i;
38
38
  },
39
39
  dualActionLeft: function() {
40
- return o;
40
+ return u;
41
41
  },
42
42
  dualActionRight: function() {
43
- return u;
43
+ return o;
44
44
  },
45
45
  pointer: function() {
46
- return d;
46
+ return c;
47
47
  },
48
48
  right: function() {
49
- return c;
49
+ return g;
50
50
  },
51
51
  rightRestrictedWidth: function() {
52
- return g;
52
+ return d;
53
53
  },
54
54
  rowBody: function() {
55
- return j;
55
+ return b;
56
56
  },
57
57
  rowContent: function() {
58
- return b;
58
+ return j;
59
59
  },
60
60
  touchableBackground: function() {
61
61
  return l;
@@ -66,4 +66,4 @@ _export(exports, {
66
66
  });
67
67
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
68
68
  require("./list.css.ts.vanilla.css-mistica.js");
69
- var _ = "_1y2v1nfh8 _1y2v1nfhq _1y2v1nfhs", y = "_1y2v1nfhh _1y2v1nfiy _1y2v1nfic _1y2v1nfhq", f = "_1y2v1nfh8 _1y2v1nfhn", a = "_1y2v1nfh8 _1y2v1nfhv _1y2v1nfjl", r = "_2buj9gf", h = "_2buj9ge", t = "_2buj9g0", i = "_1y2v1nfh8 _1y2v1nfhd _1y2v1nfic", e = "_2buj9gm _1y2v1nfh8", o = "_1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfjq _1y2v1nf70 _1y2v1nf9y _1y2v1nfb7 _1y2v1nfha _1y2v1nfht", u = "_2buj9go _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfjq _1y2v1nf70 _1y2v1nf9y _1y2v1nfb7 _1y2v1nfh8 _1y2v1nfhn _1y2v1nfhs _1y2v1nfhw _1y2v1nfic", d = "_1y2v1nfk8", c = "_2buj9gc", g = "_2buj9gd", j = "_1y2v1nfh8 _1y2v1nfhe _1y2v1nfhu", b = "_1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhv _1y2v1nfjq _1y2v1nf70 _1y2v1nfha _1y2v1nfic", l = "_2buj9g1", s = "_2buj9g2";
69
+ var _ = "_1y2v1nfha _1y2v1nfhs _1y2v1nfhu", f = "_1y2v1nfhj _1y2v1nfj0 _1y2v1nfie _1y2v1nfhs", y = "_1y2v1nfha _1y2v1nfhp", a = "_1y2v1nfha _1y2v1nfhx _1y2v1nfjn", r = "_2buj9gf", h = "_2buj9ge", t = "_2buj9g0", e = "_1y2v1nfha _1y2v1nfhf _1y2v1nfie", i = "_2buj9gm _1y2v1nfha", u = "_1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfjs _1y2v1nf72 _1y2v1nfa0 _1y2v1nfb9 _1y2v1nfhc _1y2v1nfhv", o = "_2buj9go _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfjs _1y2v1nf72 _1y2v1nfa0 _1y2v1nfb9 _1y2v1nfha _1y2v1nfhp _1y2v1nfhu _1y2v1nfhy _1y2v1nfie", c = "_1y2v1nfka", g = "_2buj9gc", d = "_2buj9gd", b = "_1y2v1nfha _1y2v1nfhg _1y2v1nfhw", j = "_1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhx _1y2v1nfjs _1y2v1nf72 _1y2v1nfhc _1y2v1nfie", l = "_2buj9g1", s = "_2buj9g2";
package/dist/list.d.ts CHANGED
@@ -7,6 +7,7 @@ interface CommonProps {
7
7
  children?: void;
8
8
  headline?: string | React.ReactNode;
9
9
  title: string;
10
+ titleAs?: string;
10
11
  titleLinesMax?: number;
11
12
  subtitle?: string;
12
13
  subtitleLinesMax?: number;