@telefonica/mistica 15.17.0 → 15.19.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 (74) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.css-mistica.js +61 -52
  3. package/dist/button.css.d.ts +33 -17
  4. package/dist/button.d.ts +9 -46
  5. package/dist/button.js +188 -237
  6. package/dist/callout.d.ts +1 -0
  7. package/dist/callout.js +10 -10
  8. package/dist/card.d.ts +6 -1
  9. package/dist/card.js +375 -365
  10. package/dist/chip.d.ts +1 -0
  11. package/dist/chip.js +15 -15
  12. package/dist/dialog.d.ts +1 -0
  13. package/dist/dialog.js +18 -17
  14. package/dist/feedback.js +58 -52
  15. package/dist/inline.css-mistica.js +11 -8
  16. package/dist/inline.css.d.ts +1 -0
  17. package/dist/inline.js +12 -12
  18. package/dist/logo-blau.d.ts +4 -0
  19. package/dist/logo-blau.js +74 -0
  20. package/dist/logo-common.d.ts +9 -0
  21. package/dist/logo-common.js +21 -0
  22. package/dist/logo-movistar.d.ts +4 -0
  23. package/dist/logo-movistar.js +99 -0
  24. package/dist/logo-o2-new.d.ts +4 -0
  25. package/dist/logo-o2-new.js +29 -0
  26. package/dist/logo-o2.d.ts +4 -0
  27. package/dist/logo-o2.js +29 -0
  28. package/dist/logo-telefonica.d.ts +4 -0
  29. package/dist/logo-telefonica.js +197 -0
  30. package/dist/logo-tu.d.ts +4 -0
  31. package/dist/logo-tu.js +28 -0
  32. package/dist/logo-vivo.d.ts +4 -0
  33. package/dist/logo-vivo.js +81 -0
  34. package/dist/logo.d.ts +10 -10
  35. package/dist/logo.js +174 -534
  36. package/dist/navigation-bar.d.ts +7 -0
  37. package/dist/navigation-bar.js +99 -91
  38. package/dist/package-version.js +1 -1
  39. package/dist/popover.d.ts +1 -0
  40. package/dist/popover.js +9 -7
  41. package/dist/snackbar-context.js +23 -22
  42. package/dist/snackbar.d.ts +1 -0
  43. package/dist/snackbar.js +51 -47
  44. package/dist/text.d.ts +1 -0
  45. package/dist/text.js +133 -109
  46. package/dist/tooltip.d.ts +1 -0
  47. package/dist/tooltip.js +110 -110
  48. package/dist-es/button.css-mistica.js +36 -18
  49. package/dist-es/button.js +219 -268
  50. package/dist-es/callout.js +38 -38
  51. package/dist-es/card.js +492 -482
  52. package/dist-es/chip.js +25 -25
  53. package/dist-es/dialog.js +22 -21
  54. package/dist-es/feedback.js +96 -89
  55. package/dist-es/inline.css-mistica.js +3 -3
  56. package/dist-es/inline.js +23 -23
  57. package/dist-es/logo-blau.js +65 -0
  58. package/dist-es/logo-common.js +12 -0
  59. package/dist-es/logo-movistar.js +90 -0
  60. package/dist-es/logo-o2-new.js +20 -0
  61. package/dist-es/logo-o2.js +20 -0
  62. package/dist-es/logo-telefonica.js +188 -0
  63. package/dist-es/logo-tu.js +19 -0
  64. package/dist-es/logo-vivo.js +72 -0
  65. package/dist-es/logo.js +132 -533
  66. package/dist-es/navigation-bar.js +163 -155
  67. package/dist-es/package-version.js +1 -1
  68. package/dist-es/popover.js +26 -24
  69. package/dist-es/snackbar-context.js +25 -24
  70. package/dist-es/snackbar.js +81 -77
  71. package/dist-es/style.css +1 -1
  72. package/dist-es/text.js +143 -119
  73. package/dist-es/tooltip.js +149 -149
  74. package/package.json +1 -1
@@ -78,112 +78,112 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as n, jsxs as D, Fragment as ht } from "react/jsx-runtime";
81
+ import { jsx as n, jsxs as B, Fragment as Tt } from "react/jsx-runtime";
82
82
  import * as i from "react";
83
- import { useTheme as Tt, useAriaId as gt, useBoundingRect as it, useWindowSize as vt } from "./hooks.js";
84
- import { Portal as xt } from "./portal.js";
85
- import { Transition as bt } from "react-transition-group";
86
- import { content as Mt, CONTENT_MIN_WIDTH as Et, container as St, tooltipTransitionClasses as wt, tooltip as It, contentContainer as Ot, tooltipCenter as Rt, closeButtonIcon as _t, arrowContainer as Nt, arrow as Ct } from "./tooltip.css-mistica.js";
87
- import yt from "./stack.js";
88
- import { Text2 as nt } from "./text.js";
83
+ import { useTheme as gt, useAriaId as vt, useBoundingRect as nt, useWindowSize as xt } from "./hooks.js";
84
+ import { Portal as bt } from "./portal.js";
85
+ import { Transition as Mt } from "react-transition-group";
86
+ import { content as Et, CONTENT_MIN_WIDTH as St, container as wt, tooltipTransitionClasses as It, tooltip as Ot, contentContainer as Rt, tooltipCenter as _t, closeButtonIcon as Nt, arrowContainer as Ct, arrow as yt } from "./tooltip.css-mistica.js";
87
+ import Lt from "./stack.js";
88
+ import { Text2 as at } from "./text.js";
89
89
  import { getCssVarValue as kt } from "./utils/dom.js";
90
- import { TAB as Lt, ESC as At } from "./utils/keys.js";
91
- import { isTouchableDevice as $t } from "./utils/environment.js";
92
- import { isEqual as at } from "./utils/helpers.js";
93
- import Q from "classnames";
94
- import { vars as tt } from "./skins/skin-contract.css-mistica.js";
95
- import { useIsInverseVariant as Ft, ThemeVariant as Dt } from "./theme-variant-context.js";
96
- import { combineRefs as Bt } from "./utils/common.js";
97
- import { useTooltipState as Wt, useSetTooltipState as Vt } from "./tooltip-context-provider.js";
98
- import { isRunningAcceptanceTest as Ht } from "./utils/platform.js";
99
- import { IconButton as Xt } from "./icon-button.js";
100
- import zt from "./generated/mistica-icons/icon-close-regular.js";
101
- import Pt from "./box.js";
102
- const lt = (t)=>({
103
- border: `1px solid ${t ? tt.colors.backgroundContainer : tt.colors.border}`
104
- }), ct = 496, Yt = 300, Gt = 500, Kt = 100, p = 20, w = 6, N = w + p / 2 + 1, Ut = (t)=>{
90
+ import { TAB as At, ESC as $t } from "./utils/keys.js";
91
+ import { isTouchableDevice as Ft } from "./utils/environment.js";
92
+ import { isEqual as lt } from "./utils/helpers.js";
93
+ import tt from "classnames";
94
+ import { vars as et } from "./skins/skin-contract.css-mistica.js";
95
+ import { useIsInverseVariant as Dt, ThemeVariant as Bt } from "./theme-variant-context.js";
96
+ import { combineRefs as Wt } from "./utils/common.js";
97
+ import { useTooltipState as Vt, useSetTooltipState as Ht } from "./tooltip-context-provider.js";
98
+ import { isRunningAcceptanceTest as Xt } from "./utils/platform.js";
99
+ import { IconButton as zt } from "./icon-button.js";
100
+ import Pt from "./generated/mistica-icons/icon-close-regular.js";
101
+ import Yt from "./box.js";
102
+ const ct = (t)=>({
103
+ border: `1px solid ${t ? et.colors.backgroundContainer : et.colors.border}`
104
+ }), ft = 496, Gt = 300, Kt = 500, Ut = 100, f = 20, S = 6, C = S + f / 2 + 1, jt = (t)=>{
105
105
  switch(t){
106
106
  case "left":
107
- return `translateX(-${w}px)`;
107
+ return `translateX(-${S}px)`;
108
108
  case "right":
109
- return `translateX(${w}px)`;
109
+ return `translateX(${S}px)`;
110
110
  case "top":
111
- return `translateY(-${w}px)`;
111
+ return `translateY(-${S}px)`;
112
112
  case "bottom":
113
- return `translateY(${w}px)`;
113
+ return `translateY(${S}px)`;
114
114
  default:
115
115
  return "";
116
116
  }
117
- }, pt = (t)=>{
118
- const h = parseFloat(getComputedStyle(t, null).paddingLeft) + parseFloat(getComputedStyle(t, null).paddingRight), v = parseFloat(getComputedStyle(t, null).paddingTop) + parseFloat(getComputedStyle(t, null).paddingBottom), d = t.offsetWidth - h, m = t.offsetHeight - v;
117
+ }, dt = (t)=>{
118
+ const h = parseFloat(getComputedStyle(t, null).paddingLeft) + parseFloat(getComputedStyle(t, null).paddingRight), v = parseFloat(getComputedStyle(t, null).paddingTop) + parseFloat(getComputedStyle(t, null).paddingBottom), p = t.offsetWidth - h, d = t.offsetHeight - v;
119
119
  return {
120
- width: d,
121
- height: m
120
+ width: p,
121
+ height: d
122
122
  };
123
- }, ft = (t, h, v, d, m)=>{
123
+ }, pt = (t, h, v, p, d)=>{
124
124
  if (!t || !h) return;
125
- const { top: x, bottom: I, left: B, right: W } = t, o = d - I, O = m - W, R = x, a = B, { width: X, height: V } = pt(h), _ = X + N, T = V + N, b = _ <= Math.max(a, O), M = T <= Math.max(o, R);
126
- if (!(!M && !b)) switch(v){
125
+ const { top: x, bottom: w, left: W, right: V } = t, I = p - w, o = d - V, O = x, R = W, { width: m, height: X } = dt(h), _ = m + C, N = X + C, T = _ <= Math.max(R, o), b = N <= Math.max(I, O);
126
+ if (!(!b && !T)) switch(v){
127
127
  case "left":
128
- return b ? _ <= a ? "left" : "right" : o > R ? "bottom" : "top";
128
+ return T ? _ <= R ? "left" : "right" : I > O ? "bottom" : "top";
129
129
  case "right":
130
- return b ? _ <= O ? "right" : "left" : o > R ? "bottom" : "top";
130
+ return T ? _ <= o ? "right" : "left" : I > O ? "bottom" : "top";
131
131
  case "top":
132
- return M ? T <= R ? "top" : "bottom" : a > O ? "left" : "right";
132
+ return b ? N <= O ? "top" : "bottom" : R > o ? "left" : "right";
133
133
  case "bottom":
134
- return M ? T <= o ? "bottom" : "top" : a > O ? "left" : "right";
134
+ return b ? N <= I ? "bottom" : "top" : R > o ? "left" : "right";
135
135
  default:
136
136
  return;
137
137
  }
138
- }, jt = (param)=>{
139
- let { content: t, target: h, width: v, position: d = "top", dataAttributes: m, delay: x = !0, centerContent: I, open: B, onClose: W, hasPointerInteractionOnly: o = !1, trackingEvent: O } = param;
140
- const { texts: R } = Tt(), a = gt(), { openTooltipId: X } = Wt(), { openTooltip: V, closeTooltip: _ } = Vt(), [T, b] = i.useState(), [M, z] = i.useState(), P = i.useRef(null), Y = i.useRef(null), [C, dt] = i.useState(null), u = $t(), G = x ? Gt : 0, [et, K] = i.useState(!1), [U, y] = i.useState(!1), j = B !== void 0, [ot, q] = i.useState(!1), E = j ? B : a === X, Z = Ft(), f = it(P, E), H = it(Y, E, !0), l = vt(), S = i.useCallback(()=>{
141
- q(!1), K(!1), y(!1);
138
+ }, qt = (param)=>{
139
+ let { content: t, target: h, width: v, position: p = "top", dataAttributes: d, delay: x = !0, centerContent: w, open: W, onClose: V, closeButtonLabel: I, hasPointerInteractionOnly: o = !1, trackingEvent: O } = param;
140
+ const { texts: R } = gt(), m = vt(), { openTooltipId: X } = Vt(), { openTooltip: _, closeTooltip: N } = Ht(), [T, b] = i.useState(), [z, P] = i.useState(), Y = i.useRef(null), G = i.useRef(null), [y, mt] = i.useState(null), u = Ft(), K = x ? Kt : 0, [ot, U] = i.useState(!1), [j, L] = i.useState(!1), q = W !== void 0, [rt, Z] = i.useState(!1), M = q ? W : m === X, J = Dt(), c = nt(Y, M), H = nt(G, M, !0), a = xt(), E = i.useCallback(()=>{
141
+ Z(!1), U(!1), L(!1);
142
142
  }, []);
143
143
  i.useEffect(()=>{
144
- E || S();
144
+ M || E();
145
145
  }, [
146
- E,
147
- S
146
+ M,
147
+ E
148
148
  ]), i.useEffect(()=>{
149
- if (!C || !E) return;
150
- const s = ft(f, C, d, l.height, l.width);
151
- if (!s || !f) {
152
- b(void 0), z(void 0), S();
149
+ if (!y || !M) return;
150
+ const s = pt(c, y, p, a.height, a.width);
151
+ if (!s || !c) {
152
+ b(void 0), P(void 0), E();
153
153
  return;
154
154
  }
155
155
  let r, e;
156
156
  var _parseInt;
157
- const { left: c, right: k, top: L, bottom: A } = f, { width: $, height: F } = pt(C), rt = l.width - $, st = l.height - F, g = (_parseInt = parseInt(kt(tt.borderRadii.popup))) !== null && _parseInt !== void 0 ? _parseInt : 8;
157
+ const { left: l, right: k, top: A, bottom: $ } = c, { width: F, height: D } = dt(y), st = a.width - F, it = a.height - D, g = (_parseInt = parseInt(kt(et.borderRadii.popup))) !== null && _parseInt !== void 0 ? _parseInt : 8;
158
158
  switch(s){
159
159
  case "top":
160
160
  r = {
161
- left: Math.max(0, Math.min(rt, (c + k - $) / 2)),
162
- top: L - F - p / 2,
163
- padding: `0px 0px ${N}px 0px`
161
+ left: Math.max(0, Math.min(st, (l + k - F) / 2)),
162
+ top: A - D - f / 2,
163
+ padding: `0px 0px ${C}px 0px`
164
164
  }, e = {
165
- left: Math.max(g, Math.min(l.width - g - p, (c + k - p) / 2)),
165
+ left: Math.max(g, Math.min(a.width - g - f, (l + k - f) / 2)),
166
166
  top: "100%"
167
167
  };
168
168
  break;
169
169
  case "bottom":
170
170
  r = {
171
- left: Math.max(0, Math.min(rt, (c + k - $) / 2)),
172
- top: A - w,
173
- padding: `${N}px 0px 0px 0px`
171
+ left: Math.max(0, Math.min(st, (l + k - F) / 2)),
172
+ top: $ - S,
173
+ padding: `${C}px 0px 0px 0px`
174
174
  }, e = {
175
- left: Math.max(g, Math.min(l.width - g - p, (c + k - p) / 2)),
175
+ left: Math.max(g, Math.min(a.width - g - f, (l + k - f) / 2)),
176
176
  bottom: "100%",
177
177
  transform: "rotate(180deg)"
178
178
  };
179
179
  break;
180
180
  case "left":
181
181
  r = {
182
- left: c - $ - p / 2,
183
- top: Math.max(0, Math.min(st, (L + A - F) / 2)),
184
- padding: `0px ${N}px 0px 0px`
182
+ left: l - F - f / 2,
183
+ top: Math.max(0, Math.min(it, (A + $ - D) / 2)),
184
+ padding: `0px ${C}px 0px 0px`
185
185
  }, e = {
186
- top: Math.max(g, Math.min(l.height - g - p, (L + A - p) / 2)),
186
+ top: Math.max(g, Math.min(a.height - g - f, (A + $ - f) / 2)),
187
187
  left: "100%",
188
188
  transform: "rotate(-90deg)",
189
189
  transformOrigin: "bottom"
@@ -192,101 +192,101 @@ const lt = (t)=>({
192
192
  case "right":
193
193
  default:
194
194
  r = {
195
- left: k - w,
196
- top: Math.max(0, Math.min(st, (L + A - F) / 2)),
197
- padding: `0px 0px 0px ${N}px`
195
+ left: k - S,
196
+ top: Math.max(0, Math.min(it, (A + $ - D) / 2)),
197
+ padding: `0px 0px 0px ${C}px`
198
198
  }, e = {
199
- top: Math.max(g, Math.min(l.height - g - p, (L + A - p) / 2)),
199
+ top: Math.max(g, Math.min(a.height - g - f, (A + $ - f) / 2)),
200
200
  right: "100%",
201
201
  transform: "rotate(90deg)",
202
202
  transformOrigin: "bottom"
203
203
  };
204
204
  break;
205
205
  }
206
- typeof e.top == "number" && (e.top -= r.top, e.top = `${e.top / F * 100}%`), typeof e.left == "number" && (e.left -= r.left, e.left = `${e.left / $ * 100}%`), at(r, T) || b(r), at(e, M) || z(e);
206
+ typeof e.top == "number" && (e.top -= r.top, e.top = `${e.top / D * 100}%`), typeof e.left == "number" && (e.left -= r.left, e.left = `${e.left / F * 100}%`), lt(r, T) || b(r), lt(e, z) || P(e);
207
207
  }, [
208
- C,
209
- f,
208
+ y,
209
+ c,
210
210
  H,
211
- E,
212
- d,
213
- l,
214
- T,
215
211
  M,
216
- Z,
217
- u,
212
+ p,
218
213
  a,
219
- S
214
+ T,
215
+ z,
216
+ J,
217
+ u,
218
+ m,
219
+ E
220
220
  ]);
221
- const J = i.useRef(!1);
221
+ const Q = i.useRef(!1);
222
222
  i.useEffect(()=>{
223
- const s = (c)=>{
224
- switch(c.key){
225
- case At:
226
- o || S();
223
+ const s = (l)=>{
224
+ switch(l.key){
225
+ case $t:
226
+ o || E();
227
227
  break;
228
- case Lt:
229
- J.current = !0;
228
+ case At:
229
+ Q.current = !0;
230
230
  break;
231
231
  }
232
- }, r = ()=>J.current = !1, e = (c)=>{
233
- !o && u && f && (c.clientX < f.left || c.clientX > f.right || c.clientY < f.top || c.clientY > f.bottom) && S();
232
+ }, r = ()=>Q.current = !1, e = (l)=>{
233
+ !o && u && c && (l.clientX < c.left || l.clientX > c.right || l.clientY < c.top || l.clientY > c.bottom) && E();
234
234
  };
235
235
  return document.addEventListener("keydown", s, !1), document.addEventListener("keyup", r, !1), document.addEventListener("click", e, !1), ()=>{
236
236
  document.removeEventListener("keydown", s, !1), document.removeEventListener("keyup", r, !1), document.removeEventListener("click", e, !1);
237
237
  };
238
238
  }, [
239
239
  u,
240
- S,
241
- f,
240
+ E,
241
+ c,
242
242
  o
243
243
  ]), i.useEffect(()=>{
244
- j || (U || et || ot ? V(a) : _(a));
244
+ q || (j || ot || rt ? _(m) : N(m));
245
245
  }, [
246
- U,
247
- et,
246
+ j,
248
247
  ot,
249
- a,
250
- V,
248
+ rt,
249
+ m,
251
250
  _,
252
- j
251
+ N,
252
+ q
253
253
  ]);
254
- const mt = ft(f, C, d, l.height, l.width), ut = I !== void 0 ? I : (H == null ? void 0 : H.width) === Et;
255
- return /* @__PURE__ */ D(ht, {
254
+ const ut = pt(c, y, p, a.height, a.width), ht = w !== void 0 ? w : (H == null ? void 0 : H.width) === St;
255
+ return /* @__PURE__ */ B(Tt, {
256
256
  children: [
257
257
  /* @__PURE__ */ n("div", {
258
258
  ref: (s)=>{
259
259
  const r = s == null ? void 0 : s.firstElementChild;
260
- r && r !== P.current && (P.current = r);
260
+ r && r !== Y.current && (Y.current = r);
261
261
  },
262
262
  onMouseOver: ()=>{
263
- !u && !o && y(!0);
263
+ !u && !o && L(!0);
264
264
  },
265
265
  onMouseLeave: ()=>{
266
- !u && !o && y(!1);
266
+ !u && !o && L(!1);
267
267
  },
268
268
  onClick: ()=>{
269
- (u || o) && y(o ? !U : !0);
269
+ (u || o) && L(o ? !j : !0);
270
270
  },
271
271
  onFocus: ()=>{
272
- J.current && !o && q(!0);
272
+ Q.current && !o && Z(!0);
273
273
  },
274
274
  onBlur: ()=>{
275
- !u && !o && q(!1);
275
+ !u && !o && Z(!1);
276
276
  },
277
- "aria-describedby": a,
277
+ "aria-describedby": m,
278
278
  children: h
279
279
  }),
280
- /* @__PURE__ */ n(xt, {
281
- children: /* @__PURE__ */ n(bt, {
282
- in: E,
283
- nodeRef: Y,
284
- timeout: Ht() ? 0 : {
285
- enter: Yt + G,
286
- exit: Kt
280
+ /* @__PURE__ */ n(bt, {
281
+ children: /* @__PURE__ */ n(Mt, {
282
+ in: M,
283
+ nodeRef: G,
284
+ timeout: Xt() ? 0 : {
285
+ enter: Gt + K,
286
+ exit: Ut
287
287
  },
288
288
  onExited: ()=>{
289
- b(void 0), z(void 0);
289
+ b(void 0), P(void 0);
290
290
  },
291
291
  mountOnEnter: !0,
292
292
  unmountOnExit: !0,
@@ -296,56 +296,56 @@ const lt = (t)=>({
296
296
  * Hack to prevent text from wrapping automatically when touching the viewport's edges,
297
297
  * even if the content's width didn't reach the max width.
298
298
  * https://stackoverflow.com/questions/66106629/how-to-disable-text-wrapping-when-viewport-border-is-reached
299
- */ width: `calc(100vw + ${ct}px)`,
299
+ */ width: `calc(100vw + ${ft}px)`,
300
300
  top: 0,
301
301
  left: 0,
302
302
  position: "fixed",
303
303
  visibility: T ? "visible" : "hidden"
304
304
  }
305
- }, m), {
305
+ }, d), {
306
306
  role: "tooltip",
307
- "aria-label": a,
307
+ "aria-label": m,
308
308
  tabIndex: -1,
309
309
  children: /* @__PURE__ */ n("div", {
310
- className: Q(St),
310
+ className: tt(wt),
311
311
  style: _object_spread_props(_object_spread({
312
312
  pointerEvents: s === "entered" ? "auto" : "none",
313
- transform: Ut(mt)
314
- }, T, wt[s]), {
315
- transition: s === "entering" ? `opacity .1s linear ${G}ms,transform .3s cubic-bezier(0.215,0.61,0.335,1) ${G}ms` : "opacity .1s linear"
313
+ transform: jt(ut)
314
+ }, T, It[s]), {
315
+ transition: s === "entering" ? `opacity .1s linear ${K}ms,transform .3s cubic-bezier(0.215,0.61,0.335,1) ${K}ms` : "opacity .1s linear"
316
316
  }),
317
- ref: Bt(dt, Y),
317
+ ref: Wt(mt, G),
318
318
  onMouseEnter: ()=>{
319
- !u && s === "entered" && !o && K(!0);
319
+ !u && s === "entered" && !o && U(!0);
320
320
  },
321
321
  onMouseLeave: ()=>{
322
- !u && !o && K(!1);
322
+ !u && !o && U(!1);
323
323
  },
324
- children: /* @__PURE__ */ D("div", {
325
- className: It,
324
+ children: /* @__PURE__ */ B("div", {
325
+ className: Ot,
326
326
  style: _object_spread_props(_object_spread({
327
327
  width: v
328
- }, lt(Z)), {
329
- maxWidth: Math.min(ct, l.width)
328
+ }, ct(J)), {
329
+ maxWidth: Math.min(ft, a.width)
330
330
  }),
331
331
  children: [
332
332
  /* @__PURE__ */ n("div", {
333
- className: Q(Ot, {
334
- [Rt]: ut
333
+ className: tt(Rt, {
334
+ [_t]: ht
335
335
  }),
336
- children: /* @__PURE__ */ D(Dt, {
336
+ children: /* @__PURE__ */ B(Bt, {
337
337
  isInverse: !1,
338
338
  children: [
339
339
  t,
340
- W && /* @__PURE__ */ n("div", {
341
- className: _t,
342
- children: /* @__PURE__ */ n(Xt, {
340
+ V && /* @__PURE__ */ n("div", {
341
+ className: Nt,
342
+ children: /* @__PURE__ */ n(zt, {
343
343
  onPress: ()=>{
344
- y(!1), W();
344
+ L(!1), V();
345
345
  },
346
346
  trackingEvent: O,
347
- "aria-label": R.modalClose,
348
- Icon: zt,
347
+ "aria-label": I !== null && I !== void 0 ? I : R.closeButtonLabel,
348
+ Icon: Pt,
349
349
  small: !0
350
350
  })
351
351
  })
@@ -353,11 +353,11 @@ const lt = (t)=>({
353
353
  })
354
354
  }),
355
355
  /* @__PURE__ */ n("div", {
356
- className: Nt,
357
- style: M,
356
+ className: Ct,
357
+ style: z,
358
358
  children: /* @__PURE__ */ n("div", {
359
- className: Q(Ct),
360
- style: lt(Z)
359
+ className: tt(yt),
360
+ style: ct(J)
361
361
  })
362
362
  })
363
363
  ]
@@ -368,8 +368,8 @@ const lt = (t)=>({
368
368
  })
369
369
  ]
370
370
  });
371
- }, qt = (_param)=>{
372
- var { centerContent: t, extra: h, children: v, dataAttributes: d, title: m, description: x } = _param, I = _object_without_properties(_param, [
371
+ }, Zt = (_param)=>{
372
+ var { centerContent: t, extra: h, children: v, dataAttributes: p, title: d, description: x } = _param, w = _object_without_properties(_param, [
373
373
  "centerContent",
374
374
  "extra",
375
375
  "children",
@@ -377,18 +377,18 @@ const lt = (t)=>({
377
377
  "title",
378
378
  "description"
379
379
  ]);
380
- return /* @__PURE__ */ n(jt, _object_spread({
381
- content: /* @__PURE__ */ D(Pt, {
382
- className: Mt,
380
+ return /* @__PURE__ */ n(qt, _object_spread({
381
+ content: /* @__PURE__ */ B(Yt, {
382
+ className: Et,
383
383
  children: [
384
- (m || x) && /* @__PURE__ */ D(yt, {
384
+ (d || x) && /* @__PURE__ */ B(Lt, {
385
385
  space: 4,
386
386
  children: [
387
- m && /* @__PURE__ */ n(nt, {
387
+ d && /* @__PURE__ */ n(at, {
388
388
  medium: !0,
389
- children: m
389
+ children: d
390
390
  }),
391
- x && /* @__PURE__ */ n(nt, {
391
+ x && /* @__PURE__ */ n(at, {
392
392
  regular: !0,
393
393
  children: x
394
394
  })
@@ -400,7 +400,7 @@ const lt = (t)=>({
400
400
  centerContent: t,
401
401
  dataAttributes: _object_spread({
402
402
  "component-name": "Tooltip"
403
- }, d)
404
- }, I));
405
- }, ge = qt;
406
- export { jt as BaseTooltip, ge as default };
403
+ }, p)
404
+ }, w));
405
+ }, ve = Zt;
406
+ export { qt as BaseTooltip, ve as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "15.17.0",
3
+ "version": "15.19.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",