@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
package/dist-es/header.js CHANGED
@@ -78,7 +78,7 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
81
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
82
82
  import f from "./box.js";
83
83
  import d from "./stack.js";
84
84
  import { useIsInverseVariant as S } from "./theme-variant-context.js";
@@ -92,9 +92,9 @@ import { hideOnTabletOrSmaller as A, hideOnDesktop as G, breadcrumbs as O } from
92
92
  import { getPrefixedDataAttributes as P } from "./utils/dom.js";
93
93
  import { Title2 as V, Title3 as q } from "./title.js";
94
94
  const E = (param)=>{
95
- let { pretitle: o, title: e, titleAs: t = "h2", description: l, dataAttributes: p, small: h = !1, preamount: m, amount: a, button: n, subtitle: s, isErrorAmount: B, secondaryButton: x } = param;
95
+ let { pretitle: r, title: e, titleAs: t = "h2", description: l, dataAttributes: p, small: h = !1, preamount: m, amount: a, button: n, subtitle: s, isErrorAmount: B, secondaryButton: x } = param;
96
96
  const H = S(), g = (u, T)=>{
97
- if (typeof u == "string") return /* @__PURE__ */ r(k, _object_spread_props(_object_spread({
97
+ if (typeof u == "string") return /* @__PURE__ */ o(k, _object_spread_props(_object_spread({
98
98
  regular: !0
99
99
  }, T), {
100
100
  children: u
@@ -102,7 +102,7 @@ const E = (param)=>{
102
102
  const { text: w } = u, L = _object_without_properties(u, [
103
103
  "text"
104
104
  ]);
105
- return /* @__PURE__ */ r(k, _object_spread_props(_object_spread({
105
+ return /* @__PURE__ */ o(k, _object_spread_props(_object_spread({
106
106
  regular: !0
107
107
  }, T, L), {
108
108
  children: u.text
@@ -115,26 +115,26 @@ const E = (param)=>{
115
115
  },
116
116
  dataAttributes: p,
117
117
  children: [
118
- (e || o || l) && /* @__PURE__ */ r(f, {
118
+ (e || r || l) && /* @__PURE__ */ o(f, {
119
119
  paddingRight: 16,
120
120
  children: /* @__PURE__ */ i(d, {
121
121
  space: 8,
122
122
  children: [
123
- o && g(o, {
123
+ r && g(r, {
124
124
  color: c.colors.textPrimary
125
125
  }),
126
- e && (h ? /* @__PURE__ */ r(V, {
126
+ e && (h ? /* @__PURE__ */ o(V, {
127
127
  as: t,
128
128
  children: e
129
- }) : /* @__PURE__ */ r(q, {
129
+ }) : /* @__PURE__ */ o(q, {
130
130
  as: t,
131
131
  children: e
132
132
  })),
133
- l && (h ? /* @__PURE__ */ r(C, {
133
+ l && (h ? /* @__PURE__ */ o(C, {
134
134
  regular: !0,
135
135
  color: c.colors.textSecondary,
136
136
  children: l
137
- }) : /* @__PURE__ */ r(k, {
137
+ }) : /* @__PURE__ */ o(k, {
138
138
  regular: !0,
139
139
  color: c.colors.textSecondary,
140
140
  children: l
@@ -151,13 +151,13 @@ const E = (param)=>{
151
151
  m && g(m, {
152
152
  color: c.colors.textPrimary
153
153
  }),
154
- /* @__PURE__ */ r(M, {
154
+ /* @__PURE__ */ o(M, {
155
155
  color: B && !H ? c.colors.highlight : c.colors.textPrimary,
156
156
  children: a
157
157
  })
158
158
  ]
159
159
  }),
160
- (n || x) && /* @__PURE__ */ r(j, {
160
+ (n || x) && /* @__PURE__ */ o(j, {
161
161
  primaryButton: n,
162
162
  secondaryButton: x
163
163
  }),
@@ -167,7 +167,7 @@ const E = (param)=>{
167
167
  ]
168
168
  });
169
169
  }, Y = (param)=>{
170
- let { title: o, titleAs: e = "h1", description: t, button: l } = param;
170
+ let { title: r, titleAs: e = "h1", description: t, button: l } = param;
171
171
  return /* @__PURE__ */ i(d, {
172
172
  space: 32,
173
173
  children: [
@@ -177,11 +177,11 @@ const E = (param)=>{
177
177
  desktop: 16
178
178
  },
179
179
  children: [
180
- o && /* @__PURE__ */ r(N, {
180
+ r && /* @__PURE__ */ o(N, {
181
181
  as: e,
182
- children: o
182
+ children: r
183
183
  }),
184
- t && /* @__PURE__ */ r(R, {
184
+ t && /* @__PURE__ */ o(R, {
185
185
  children: t
186
186
  })
187
187
  ]
@@ -189,26 +189,26 @@ const E = (param)=>{
189
189
  l
190
190
  ]
191
191
  });
192
- }, rr = (param)=>{
193
- let { isInverse: o = !0, breadcrumbs: e, header: t, extra: l, sideBySideExtraOnDesktop: p = !1, dataAttributes: h, bleed: m = !1, noPaddingY: a = !1 } = param;
194
- const n = m && o && l, s = /* @__PURE__ */ i("div", {
192
+ }, oo = (param)=>{
193
+ let { isInverse: r = !0, breadcrumbs: e, header: t, extra: l, sideBySideExtraOnDesktop: p = !1, dataAttributes: h, bleed: m = !1, noPaddingY: a = !1 } = param;
194
+ const n = m && r && l, s = /* @__PURE__ */ i("div", {
195
195
  children: [
196
- e && /* @__PURE__ */ r("div", {
196
+ e && /* @__PURE__ */ o("div", {
197
197
  className: O,
198
198
  children: e
199
199
  }),
200
200
  t
201
201
  ]
202
202
  });
203
- return v(o ? {
203
+ return v(r ? {
204
204
  topColor: c.colors.backgroundBrandTop
205
205
  } : {}), /* @__PURE__ */ i("div", _object_spread_props(_object_spread({}, P(_object_spread({
206
206
  "component-name": "HeaderLayout"
207
207
  }, h))), {
208
208
  children: [
209
- /* @__PURE__ */ r(b, {
210
- isInverse: o,
211
- children: /* @__PURE__ */ r(f, {
209
+ /* @__PURE__ */ o(b, {
210
+ isInverse: r,
211
+ children: /* @__PURE__ */ o(f, {
212
212
  paddingTop: a ? 0 : {
213
213
  mobile: t ? 32 : 0,
214
214
  desktop: e ? 16 : 48
@@ -217,12 +217,12 @@ const E = (param)=>{
217
217
  mobile: a && !n ? 0 : 24,
218
218
  desktop: n && !p ? 32 : a ? 0 : 48
219
219
  },
220
- children: p ? /* @__PURE__ */ r(y, {
220
+ children: p ? /* @__PURE__ */ o(y, {
221
221
  template: "6+6",
222
222
  left: s,
223
- right: /* @__PURE__ */ r("div", {
223
+ right: /* @__PURE__ */ o("div", {
224
224
  className: n ? A : "",
225
- children: /* @__PURE__ */ r(f, {
225
+ children: /* @__PURE__ */ o(f, {
226
226
  paddingTop: {
227
227
  mobile: t ? 24 : 0,
228
228
  desktop: 0
@@ -242,25 +242,25 @@ const E = (param)=>{
242
242
  })
243
243
  })
244
244
  }),
245
- n && /* @__PURE__ */ r(b, {
245
+ n && /* @__PURE__ */ o(b, {
246
246
  className: p ? G : "",
247
- backgroundColor: `linear-gradient(to bottom, ${c.colors.backgroundBrand} 40px, ${c.colors.background} 0%)`,
247
+ backgroundColor: `linear-gradient(to bottom, ${c.colors.backgroundBrandBottom} 40px, ${c.colors.background} 0%)`,
248
248
  children: l
249
249
  })
250
250
  ]
251
251
  }));
252
- }, or = (param)=>{
253
- let { isInverse: o = !0, children: e, dataAttributes: t } = param;
254
- return v(o ? {
252
+ }, ro = (param)=>{
253
+ let { isInverse: r = !0, children: e, dataAttributes: t } = param;
254
+ return v(r ? {
255
255
  topColor: c.colors.backgroundBrandTop
256
- } : {}), /* @__PURE__ */ r(b, {
257
- isInverse: o,
256
+ } : {}), /* @__PURE__ */ o(b, {
257
+ isInverse: r,
258
258
  dataAttributes: _object_spread({
259
259
  "component-name": "MainSectionHeaderLayout"
260
260
  }, t),
261
- children: /* @__PURE__ */ r(y, {
261
+ children: /* @__PURE__ */ o(y, {
262
262
  template: "6+6",
263
- left: /* @__PURE__ */ r(f, {
263
+ left: /* @__PURE__ */ o(f, {
264
264
  paddingTop: {
265
265
  mobile: 12,
266
266
  desktop: 48
@@ -275,4 +275,4 @@ const E = (param)=>{
275
275
  })
276
276
  });
277
277
  };
278
- export { E as Header, rr as HeaderLayout, Y as MainSectionHeader, or as MainSectionHeaderLayout };
278
+ export { E as Header, oo as HeaderLayout, Y as MainSectionHeader, ro as MainSectionHeaderLayout };
@@ -78,69 +78,70 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as l, jsx as i, Fragment as w } from "react/jsx-runtime";
82
- import * as h from "react";
81
+ import { jsxs as l, jsx as i, Fragment as C } from "react/jsx-runtime";
82
+ import * as g from "react";
83
83
  import { useIsInverseVariant as u } from "./theme-variant-context.js";
84
- import C from "./stack.js";
85
- import { BaseTouchable as k } from "./touchable.js";
86
- import { Text as H, Text2 as y } from "./text.js";
87
- import { Boxed as S } from "./boxed.js";
88
- import T, { useIsDismissable as L } from "./maybe-dismissable.js";
84
+ import k from "./stack.js";
85
+ import { BaseTouchable as H } from "./touchable.js";
86
+ import { Text as y, Text2 as S } from "./text.js";
87
+ import { Boxed as T } from "./boxed.js";
88
+ import A, { useIsDismissable as L } from "./maybe-dismissable.js";
89
89
  import { container as M, textContainerVariant as N, imageContent as P, touchableContainer as R } from "./highlighted-card.css-mistica.js";
90
90
  import { vars as $ } from "./skins/skin-contract.css-mistica.js";
91
91
  import { useTheme as z } from "./hooks.js";
92
- const A = /*#__PURE__*/ h.forwardRef((n, e)=>{
92
+ const D = /*#__PURE__*/ g.forwardRef((n, e)=>{
93
93
  var _n_isInverse;
94
- const { title: s, description: r, imageUrl: a, imageFit: o, titleAs: g = "h3", width: m, dataAttributes: b, titleLinesMax: f, descriptionLinesMax: v } = n, t = _object_without_properties(n, [
94
+ const { title: s, description: r, imageUrl: a, imageFit: o, imageAlt: m, titleAs: b = "h3", width: d, dataAttributes: f, titleLinesMax: v, descriptionLinesMax: x } = n, t = _object_without_properties(n, [
95
95
  "title",
96
96
  "description",
97
97
  "imageUrl",
98
98
  "imageFit",
99
+ "imageAlt",
99
100
  "titleAs",
100
101
  "width",
101
102
  "dataAttributes",
102
103
  "titleLinesMax",
103
104
  "descriptionLinesMax"
104
- ]), x = u(), p = (_n_isInverse = n.isInverse) !== null && _n_isInverse !== void 0 ? _n_isInverse : x, d = L(), { textPresets: I } = z(), c = /* @__PURE__ */ l(S, {
105
+ ]), p = u(), I = (_n_isInverse = n.isInverse) !== null && _n_isInverse !== void 0 ? _n_isInverse : p, h = L(), { textPresets: w } = z(), c = /* @__PURE__ */ l(T, {
105
106
  ref: e,
106
- isInverse: p,
107
+ isInverse: I,
107
108
  className: M,
108
109
  dataAttributes: _object_spread({
109
110
  "component-name": "HighlightedCard"
110
- }, b),
111
- width: m ? `${m}px` : "100%",
111
+ }, f),
112
+ width: d ? `${d}px` : "100%",
112
113
  minHeight: "100%",
113
114
  children: [
114
115
  /* @__PURE__ */ l("div", {
115
- role: d ? void 0 : "region",
116
+ role: h ? void 0 : "region",
116
117
  className: N[a ? "withImage" : "withoutImage"],
117
- "aria-label": d ? void 0 : t["aria-label"],
118
+ "aria-label": h ? void 0 : t["aria-label"],
118
119
  children: [
119
- /* @__PURE__ */ l(C, {
120
+ /* @__PURE__ */ l(k, {
120
121
  space: 8,
121
122
  children: [
122
- !!s && /* @__PURE__ */ i(H, {
123
+ !!s && /* @__PURE__ */ i(y, {
123
124
  mobileSize: 18,
124
125
  mobileLineHeight: "24px",
125
126
  desktopSize: 20,
126
127
  desktopLineHeight: "28px",
127
- truncate: f,
128
- weight: I.cardTitle.weight,
129
- as: g,
128
+ truncate: v,
129
+ weight: w.cardTitle.weight,
130
+ as: b,
130
131
  hyphens: "auto",
131
132
  children: s
132
133
  }),
133
- !!r && /* @__PURE__ */ i(y, {
134
+ !!r && /* @__PURE__ */ i(S, {
134
135
  regular: !0,
135
136
  color: $.colors.textSecondary,
136
- truncate: v,
137
+ truncate: x,
137
138
  as: "p",
138
139
  hyphens: "auto",
139
140
  children: r
140
141
  })
141
142
  ]
142
143
  }),
143
- t.button && /* @__PURE__ */ l(w, {
144
+ t.button && /* @__PURE__ */ l(C, {
144
145
  children: [
145
146
  /* @__PURE__ */ i("div", {
146
147
  style: {
@@ -153,7 +154,10 @@ const A = /*#__PURE__*/ h.forwardRef((n, e)=>{
153
154
  })
154
155
  ]
155
156
  }),
156
- a && /* @__PURE__ */ i("div", {
157
+ a && /* @__PURE__ */ i("div", _object_spread_props(_object_spread({}, m ? {
158
+ role: "img",
159
+ "aria-label": m
160
+ } : {}), {
157
161
  className: P,
158
162
  style: {
159
163
  backgroundImage: `url(${a})`,
@@ -161,29 +165,29 @@ const A = /*#__PURE__*/ h.forwardRef((n, e)=>{
161
165
  backgroundSize: o === "fit" ? "contain" : "cover",
162
166
  backgroundPosition: o === "fit" ? "bottom right" : `center ${o === "fill-center" ? "center" : "right"}`
163
167
  }
164
- })
168
+ }))
165
169
  ]
166
170
  });
167
- return t.button ? c : t.onPress || t.to || t.href ? /* @__PURE__ */ i(k, _object_spread_props(_object_spread({}, t), {
171
+ return t.button ? c : t.onPress || t.to || t.href ? /* @__PURE__ */ i(H, _object_spread_props(_object_spread({}, t), {
168
172
  className: R,
169
173
  children: c
170
174
  })) : c;
171
- }), D = /*#__PURE__*/ h.forwardRef((_param, s)=>{
175
+ }), O = /*#__PURE__*/ g.forwardRef((_param, s)=>{
172
176
  var { "aria-label": n } = _param, e = _object_without_properties(_param, [
173
177
  "aria-label"
174
178
  ]);
175
179
  var _e_isInverse;
176
180
  const r = n || e.title || e.description, a = u(), o = (_e_isInverse = e.isInverse) !== null && _e_isInverse !== void 0 ? _e_isInverse : a;
177
- return /* @__PURE__ */ i(T, {
181
+ return /* @__PURE__ */ i(A, {
178
182
  onClose: e.onClose,
179
183
  "aria-label": r,
180
184
  width: e.width,
181
185
  isOverMedia: !!e.imageUrl,
182
186
  isInverse: o,
183
- children: /* @__PURE__ */ i(A, _object_spread_props(_object_spread({}, e), {
187
+ children: /* @__PURE__ */ i(D, _object_spread_props(_object_spread({}, e), {
184
188
  "aria-label": r,
185
189
  ref: s
186
190
  }))
187
191
  });
188
- }), K = D;
189
- export { K as default };
192
+ }), Q = O;
193
+ export { Q as default };
package/dist-es/image.js CHANGED
@@ -78,18 +78,18 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as t, jsxs as k, Fragment as A } from "react/jsx-runtime";
82
- import * as r from "react";
83
- import F from "classnames";
84
- import { SkeletonAnimation as L } from "./skeletons.js";
85
- import { AspectRatioContainer as W } from "./utils/aspect-ratio-support.js";
86
- import { getPrefixedDataAttributes as M } from "./utils/dom.js";
87
- import { useIsInverseVariant as V } from "./theme-variant-context.js";
88
- import { useTheme as D, useAriaId as O } from "./hooks.js";
89
- import { VIVO_SKIN as j } from "./skins/constants.js";
90
- import { sprinkles as $ } from "./sprinkles.css-mistica.js";
91
- import { circularBorderRadius as P, noBorderRadius as U, defaultBorderRadius as K, FADE_IN_DURATION_MS as Z, image as q, imageWithBorder as G } from "./image.css-mistica.js";
92
- import { vars as a } from "./skins/skin-contract.css-mistica.js";
81
+ import { jsx as t, jsxs as w, Fragment as k } from "react/jsx-runtime";
82
+ import * as o from "react";
83
+ import _ from "classnames";
84
+ import { SkeletonAnimation as T } from "./skeletons.js";
85
+ import { AspectRatioContainer as V } from "./utils/aspect-ratio-support.js";
86
+ import { getPrefixedDataAttributes as F } from "./utils/dom.js";
87
+ import { useIsInverseVariant as Z } from "./theme-variant-context.js";
88
+ import { useTheme as z, useAriaId as O } from "./hooks.js";
89
+ import { VIVO_SKIN as D, VIVO_NEW_SKIN as j } from "./skins/constants.js";
90
+ import { sprinkles as p } from "./sprinkles.css-mistica.js";
91
+ import { circularBorderRadius as $, noBorderRadius as K, defaultBorderRadius as P, FADE_IN_DURATION_MS as U, image as q, imageWithBorder as G } from "./image.css-mistica.js";
92
+ import { vars as r } from "./skins/skin-contract.css-mistica.js";
93
93
  import { combineRefs as J } from "./utils/common.js";
94
94
  import Q from "./skeleton-base.js";
95
95
  import { isServerSide as X } from "./utils/environment.js";
@@ -103,13 +103,13 @@ const Y = (param)=>{
103
103
  style: e,
104
104
  children: /* @__PURE__ */ t("path", {
105
105
  d: "M24.021 35.7235C24.8145 35.7694 25.0467 36.1913 25.3157 36.5138C25.586 36.8362 29.515 41.551 29.7823 41.8569C30.0475 42.1662 30.7822 42.7329 31.5901 42.8405C32.3967 42.9473 33.282 42.7842 33.8484 42.3748C34.4135 41.965 35.1313 41.4073 35.3833 41.0356C35.6337 40.6638 36.061 40.1302 35.9823 39.2534C35.9028 38.3783 35.7112 37.9204 35.0268 37.1691C34.3433 36.4185 30.2992 31.6657 29.5382 30.7537C29.5382 30.7537 28.8467 29.9423 28.9469 28.7956C29.0476 27.6468 29.567 27.1343 30.6608 26.8487C31.7534 26.5647 36.0267 25.5306 36.0267 25.5306C36.0267 25.5306 38.4728 24.3723 37.9182 22.0776L37.5997 20.904C37.5997 20.904 37.0672 18.2264 33.5519 19.0556C30.0344 19.8869 28.0803 20.377 28.0803 20.377C28.0803 20.377 26.9602 20.4838 26.7999 19.744C26.6417 19.0038 26.8494 18.6218 27.3443 18.4156C27.8387 18.209 30.9611 16.7175 31.3617 12.6853C31.7652 8.65158 28.3882 5.06573 24.0091 5.08104C19.6288 5.0976 16.4594 8.39988 16.4725 11.8185C16.4856 15.2387 18.7033 17.5144 20.4079 18.3638C21.3752 18.8453 21.0656 19.7122 21.0656 19.7122C21.0656 19.7122 20.8334 20.5554 19.8153 20.3311C18.7972 20.1025 13.8657 18.9736 13.8657 18.9736C13.8657 18.9736 10.8914 18.4226 10.1732 21.359C9.4541 24.2978 11.1261 25.4143 12.3532 25.6908C13.5798 25.9669 17.7296 26.9716 17.7296 26.9716C17.7296 26.9716 18.9643 27.581 19.0125 28.8308C19.0425 29.5697 19.0438 30.1824 18.266 31.2832C17.4894 32.3835 12.6598 38.0148 12.6598 38.0148C12.6598 38.0148 10.9997 39.9862 13.4051 41.763C15.8106 43.5401 17.1641 43.1262 18.5921 41.4889C20.0188 39.852 22.8383 36.4243 22.8383 36.4243C22.8383 36.4243 23.2275 35.6788 24.021 35.7235Z",
106
- stroke: a.colors.brand,
106
+ stroke: r.colors.brand,
107
107
  strokeWidth: "2"
108
108
  })
109
109
  });
110
- }, p = /*#__PURE__*/ r.forwardRef((param, o)=>{
111
- let { borderRadius: e, withIcon: n = !0, border: d, className: h } = param;
112
- const c = V(), { skinName: s } = D();
110
+ }, e1 = /*#__PURE__*/ o.forwardRef((param, s)=>{
111
+ let { borderRadius: e, withIcon: C = !0, border: d, className: m } = param;
112
+ const a = Z(), { skinName: n } = z();
113
113
  return /* @__PURE__ */ t("div", {
114
114
  style: {
115
115
  height: "100%",
@@ -117,19 +117,41 @@ const Y = (param)=>{
117
117
  display: "flex",
118
118
  alignItems: "center",
119
119
  justifyContent: "center",
120
- backgroundColor: c ? a.colors.backgroundSkeletonInverse : a.colors.backgroundSkeleton,
120
+ backgroundColor: a ? r.colors.backgroundSkeletonInverse : r.colors.backgroundSkeleton,
121
121
  boxSizing: "border-box",
122
- border: d ? `1px solid ${a.colors.borderLow}` : "none",
122
+ border: d ? `1px solid ${r.colors.borderLow}` : "none",
123
123
  borderRadius: e
124
124
  },
125
- ref: o,
126
- className: h,
127
- children: n ? s === j ? /* @__PURE__ */ t(Y, {
125
+ ref: s,
126
+ className: m,
127
+ children: C ? n === D ? /* @__PURE__ */ t(Y, {
128
128
  style: {
129
129
  width: "10%",
130
130
  minWidth: 24,
131
131
  maxWidth: 48
132
132
  }
133
+ }) : n === j ? /* @__PURE__ */ w("svg", {
134
+ viewBox: "0 0 24 24",
135
+ role: "presentation",
136
+ style: {
137
+ width: "10%",
138
+ minWidth: 24,
139
+ maxWidth: 48
140
+ },
141
+ children: [
142
+ /* @__PURE__ */ t("path", {
143
+ d: "M5.60044 14.585C5.49637 14.585 5.3983 14.5458 5.32396 14.4744L4.73612 13.9003C4.72555 13.8898 4.71068 13.8837 4.69552 13.8837C4.68037 13.8837 4.66579 13.8895 4.65493 13.9L4.06852 14.4698C3.99418 14.5411 3.89611 14.5806 3.79203 14.5806C3.68796 14.5806 3.59018 14.5411 3.5167 14.4698C3.36545 14.3226 3.36517 14.0833 3.5167 13.9361L4.10454 13.365C4.12656 13.3435 4.12656 13.3087 4.10454 13.2872L3.5167 12.7161C3.36517 12.5689 3.36517 12.3296 3.5167 12.1824C3.59047 12.1111 3.68796 12.0716 3.79203 12.0716C3.89611 12.0716 3.99389 12.1111 4.06737 12.1824L4.65407 12.7525C4.66493 12.763 4.67951 12.7687 4.69467 12.7687C4.70982 12.7687 4.7244 12.763 4.73527 12.7525L5.32511 12.1794C5.39859 12.108 5.49637 12.0686 5.60044 12.0686C5.70451 12.0686 5.80229 12.108 5.87577 12.1794C6.02731 12.3266 6.02731 12.5659 5.87577 12.7131L5.28479 13.2872C5.26278 13.3087 5.26278 13.3435 5.28479 13.365L5.87577 13.9391C6.02674 14.0858 6.02674 14.3256 5.87606 14.4739C5.80258 14.5456 5.70451 14.585 5.60044 14.585Z",
144
+ fill: a ? r.colors.inverse : r.colors.neutralMedium
145
+ }),
146
+ /* @__PURE__ */ t("path", {
147
+ d: "M13.0142 10.7496C12.953 10.7471 12.8819 10.7471 12.8132 10.7521H12.7598C12.2257 10.7571 10.2337 10.9373 10.2337 13.3694C10.2337 15.8061 12.2431 15.9965 12.7775 16.004H12.8638C12.8913 16.004 12.9193 16.0034 12.9465 16.0026C12.9725 16.0021 12.9979 16.0015 13.0214 16.0015C13.5326 15.9916 15.5677 15.8039 15.5677 13.3818C15.5683 10.9646 13.5357 10.762 13.0142 10.7496ZM13.0042 14.9461L12.8644 14.9485H12.7958C11.3282 14.9262 11.3282 13.7525 11.3282 13.3669C11.3282 12.9837 11.3282 11.8147 12.7729 11.8026H12.8161C12.8747 11.8026 12.9356 11.8026 12.9891 11.8051C14.4773 11.8395 14.4773 13.0011 14.4773 13.3818C14.477 13.7631 14.4761 14.9191 13.0042 14.9461Z",
148
+ fill: a ? r.colors.inverse : r.colors.neutralMedium
149
+ }),
150
+ /* @__PURE__ */ t("path", {
151
+ d: "M21.9997 17.2968H21.9971V9.45494C21.9971 8.78512 21.7301 8.39233 21.5062 8.17981C21.1062 7.80217 20.6039 7.76579 20.4609 7.75559L20.454 7.75506C20.4397 7.75398 20.4298 7.75324 20.4249 7.75228L15.6707 7.74732L14.9331 6.52152C14.7398 6.20012 14.3813 6 13.9996 6H12.0179C11.6033 6 11.2319 6.22493 11.0487 6.58575L10.4611 7.74732C8.26329 7.74732 6.43945 7.7498 5.96626 7.75228C5.21574 7.75476 4.79373 8.04391 4.56986 8.28372C4.10439 8.79036 4.16043 9.43537 4.16529 9.45274L4.16872 10.7C3.54515 10.7764 3.04937 10.9895 2.69141 11.3373C2.23395 11.7819 2.00208 12.4443 2.00208 13.3063C2.00208 14.1677 2.23395 14.8298 2.69141 15.2741C3.05252 15.6247 3.55372 15.8383 4.18502 15.913L4.18845 17.3119C4.23162 18.723 5.25176 18.9975 5.67148 18.9975L20.4275 19C21.005 19 21.3584 18.7627 21.552 18.5626C22.038 18.0628 22.0048 17.3412 21.9997 17.2968ZM2.78205 13.306C2.78205 12.6444 2.93301 12.1758 3.24408 11.8737C3.55516 11.5713 4.03692 11.4242 4.71739 11.4242H4.72254C5.39786 11.4242 5.87763 11.57 6.1887 11.8704C6.50263 12.1734 6.65474 12.6431 6.65417 13.3063C6.65417 13.9673 6.50292 14.4353 6.19184 14.7374C5.88077 15.0395 5.39844 15.1864 4.71768 15.1864C4.03749 15.1864 3.55544 15.0395 3.24465 14.7374C2.93301 14.435 2.78205 13.967 2.78205 13.306ZM20.7534 17.8428C20.7102 17.8872 20.6287 17.9468 20.4277 17.9514L5.65633 17.949L5.65394 17.9485L5.65244 17.9483L5.64947 17.9479C5.59908 17.9415 5.29865 17.9037 5.27978 17.3015L5.27607 15.9089C5.8782 15.8328 6.36168 15.628 6.71678 15.2959C7.19311 14.8504 7.43471 14.1809 7.43471 13.3057C7.43471 12.4305 7.19311 11.7607 6.71678 11.315C6.35796 10.9793 5.86848 10.7734 5.25805 10.6992L5.25434 9.40064C5.25176 9.39816 5.23918 9.15091 5.38414 8.99296C5.49107 8.87443 5.6895 8.81489 5.97169 8.81269C6.4703 8.80773 8.45667 8.80773 10.8019 8.80773C11.0103 8.80773 11.2016 8.69168 11.2931 8.51113L12.0182 7.05793L13.987 7.05297L14.885 8.54311C14.9817 8.70381 15.1624 8.80497 15.3582 8.80497L20.4355 8.80745C20.438 8.80745 20.6187 8.81737 20.7408 8.93342C20.8503 9.03486 20.9035 9.21017 20.9035 9.45494L20.9061 17.3312C20.9109 17.388 20.8984 17.6921 20.7534 17.8428Z",
152
+ fill: a ? r.colors.inverse : r.colors.neutralMedium
153
+ })
154
+ ]
133
155
  }) : // We cannot use IconImageRegular because we want to avoid the usage of width and height props to allow this icon to be responsive
134
156
  /* @__PURE__ */ t("svg", {
135
157
  viewBox: "0 0 24 24",
@@ -140,18 +162,18 @@ const Y = (param)=>{
140
162
  maxWidth: 48
141
163
  },
142
164
  children: /* @__PURE__ */ t("path", {
143
- fill: c ? a.colors.inverse : a.colors.neutralMedium,
165
+ fill: a ? r.colors.inverse : r.colors.neutralMedium,
144
166
  d: "M20.25 4.622c.832 0 1.591.664 1.591 1.393v11.98c0 .728-.76 1.392-1.591 1.392H3.746c-.863 0-1.591-.639-1.591-1.392V6.015c0-.754.728-1.393 1.59-1.393H20.25zm0 13.558c.193 0 .367-.146.39-.207l-.003-11.956a.555.555 0 00-.384-.182H3.746c-.21 0-.364.132-.387.19v11.973c.014.044.171.182.387.182H20.25zM6.152 9.068c0 .554.451 1.005 1.003 1.005a1.006 1.006 0 000-2.01c-.552 0-1.003.45-1.003 1.005zm1.003 2.215a2.216 2.216 0 010-4.43c1.218 0 2.207.993 2.207 2.215a2.213 2.213 0 01-2.207 2.215zm12.42 1.337l-3.18-2.44a.605.605 0 00-.742.005l-3.636 2.9-.879-.83a.6.6 0 00-.798-.025l-5.168 4.317a.607.607 0 00.386 1.07.59.59 0 00.384-.14l4.759-3.975 3.308 3.123c.241.23.625.221.852-.025a.605.605 0 00-.026-.854l-1.932-1.824 3.131-2.496 2.807 2.154a.603.603 0 00.846-.112.609.609 0 00-.112-.848z"
145
167
  })
146
168
  }) : void 0
147
169
  });
148
- }), S = {
170
+ }), A = {
149
171
  "1:1": 1,
150
172
  "16:9": 16 / 9,
151
173
  "7:10": 7 / 10,
152
174
  "4:3": 4 / 3
153
- }, x = "1:1", e1 = /*#__PURE__*/ r.forwardRef((_param, N)=>{
154
- var { aspectRatio: e = x, alt: n = "", dataAttributes: d, noBorderRadius: h, src: o, srcSet: c, onError: s, onLoad: l, loadingFallback: B = !0, errorFallback: E = !0 } = _param, i = _object_without_properties(_param, [
175
+ }, H = "1:1", t1 = /*#__PURE__*/ o.forwardRef((_param, x)=>{
176
+ var { aspectRatio: e = H, alt: C = "", dataAttributes: d, noBorderRadius: m, src: s, srcSet: a, onError: n, onLoad: l, loadingFallback: M = !0, errorFallback: S = !0 } = _param, i = _object_without_properties(_param, [
155
177
  "aspectRatio",
156
178
  "alt",
157
179
  "dataAttributes",
@@ -164,65 +186,65 @@ const Y = (param)=>{
164
186
  "errorFallback"
165
187
  ]);
166
188
  var y;
167
- const u = O(), m = r.useRef(), f = i.circular ? P : h ? U : K, [v, g] = r.useState(!o), [H, C] = r.useState(!1), b = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : S[e], w = B && !!(b !== 0 || i.width && i.height), T = E && !!(b !== 0 || i.width && i.height), I = r.useCallback(()=>{
168
- g(!1), m.current && (m.current.style.opacity = "1"), setTimeout(()=>{
169
- C(!0);
170
- }, Z), l == null || l();
189
+ const h = O(), c = o.useRef(), u = i.circular ? $ : m ? K : P, [I, f] = o.useState(!s), [B, g] = o.useState(!1), L = i.width && i.height ? void 0 : i.circular ? 1 : typeof e == "number" ? e : A[e], b = M && !!(L !== 0 || i.width && i.height), N = S && !!(L !== 0 || i.width && i.height), v = o.useCallback(()=>{
190
+ f(!1), c.current && (c.current.style.opacity = "1"), setTimeout(()=>{
191
+ g(!0);
192
+ }, U), l == null || l();
171
193
  }, [
172
194
  l
173
195
  ]);
174
- r.useEffect(()=>{
175
- g(!o), C(!1);
196
+ o.useEffect(()=>{
197
+ f(!s), g(!1);
176
198
  }, [
177
- o
178
- ]), r.useEffect(()=>{
199
+ s
200
+ ]), o.useEffect(()=>{
179
201
  var R;
180
- (R = m.current) != null && R.complete && I();
202
+ (R = c.current) != null && R.complete && v();
181
203
  }, [
182
- I
204
+ v
183
205
  ]);
184
- const _ = X() || !((y = document.getElementById(u)) != null && y.complete), z = /* @__PURE__ */ k(A, {
206
+ const E = X() || !((y = document.getElementById(h)) != null && y.complete), W = /* @__PURE__ */ w(k, {
185
207
  children: [
186
208
  /* @__PURE__ */ t("img", {
187
209
  suppressHydrationWarning: !0,
188
- id: u,
210
+ id: h,
189
211
  style: {
190
- opacity: _ && w ? 0 : 1
212
+ opacity: E && b ? 0 : 1
191
213
  },
192
- ref: J(m, N),
193
- src: o,
194
- srcSet: c,
195
- className: F(f, q, {
214
+ ref: J(c, x),
215
+ src: s,
216
+ srcSet: a,
217
+ className: _(u, q, {
196
218
  [G]: i.border
197
- }, $({
198
- position: b !== 0 ? "absolute" : "static"
219
+ }, p({
220
+ position: L !== 0 ? "absolute" : "static"
199
221
  })),
200
- alt: n,
222
+ alt: C,
201
223
  onError: ()=>{
202
- g(!0), C(!0), s == null || s();
224
+ f(!0), g(!0), n == null || n();
203
225
  },
204
- onLoad: I,
226
+ onLoad: v,
205
227
  decoding: "async"
206
228
  }),
207
- w && /* @__PURE__ */ t("script", {
229
+ b && /* @__PURE__ */ t("script", {
208
230
  dangerouslySetInnerHTML: {
209
- __html: `document.getElementById("${u}").addEventListener('load', (e) => e.target.style.opacity = "1")`
231
+ __html: `document.getElementById("${h}").addEventListener('load', (e) => e.target.style.opacity = "1")`
210
232
  }
211
233
  })
212
234
  ]
213
235
  });
214
236
  var _i_height, _i_width;
215
- return /* @__PURE__ */ k(A, {
237
+ return /* @__PURE__ */ w(k, {
216
238
  children: [
217
- w && !H && /* @__PURE__ */ t("div", {
239
+ b && !B && /* @__PURE__ */ t("div", {
218
240
  style: {
219
241
  position: "absolute",
220
242
  width: "100%",
221
243
  height: "100%",
222
244
  overflow: "hidden"
223
245
  },
224
- className: f,
225
- children: /* @__PURE__ */ t(L, {
246
+ className: u,
247
+ children: /* @__PURE__ */ t(T, {
226
248
  height: (_i_height = i.height) !== null && _i_height !== void 0 ? _i_height : "100%",
227
249
  width: (_i_width = i.width) !== null && _i_width !== void 0 ? _i_width : "100%",
228
250
  children: /* @__PURE__ */ t(Q, {
@@ -232,36 +254,35 @@ const Y = (param)=>{
232
254
  })
233
255
  })
234
256
  }),
235
- v && T && /* @__PURE__ */ t("div", {
257
+ I && N && /* @__PURE__ */ t("div", {
236
258
  style: {
237
259
  position: "absolute",
238
260
  width: "100%",
239
- height: "100%",
240
- zIndex: 1
261
+ height: "100%"
241
262
  },
242
- children: /* @__PURE__ */ t(p, {
263
+ children: /* @__PURE__ */ t(e1, {
243
264
  border: i.border,
244
- className: f
265
+ className: u
245
266
  })
246
267
  }),
247
- !v && z
268
+ !I && W
248
269
  ]
249
270
  });
250
- }), t1 = /*#__PURE__*/ r.forwardRef((e, n)=>{
271
+ }), i1 = /*#__PURE__*/ o.forwardRef((e, C)=>{
251
272
  var _e_aspectRatio;
252
- const d = e.width && e.height ? void 0 : e.circular ? 1 : typeof e.aspectRatio == "number" ? e.aspectRatio : S[(_e_aspectRatio = e.aspectRatio) !== null && _e_aspectRatio !== void 0 ? _e_aspectRatio : x];
253
- return /* @__PURE__ */ t(W, {
273
+ const d = e.width && e.height ? void 0 : e.circular ? 1 : typeof e.aspectRatio == "number" ? e.aspectRatio : A[(_e_aspectRatio = e.aspectRatio) !== null && _e_aspectRatio !== void 0 ? _e_aspectRatio : H];
274
+ return /* @__PURE__ */ t(V, {
254
275
  style: {
255
276
  position: "relative"
256
277
  },
257
278
  aspectRatio: d,
258
279
  width: e.width,
259
280
  height: e.height,
260
- dataAttributes: M(e.dataAttributes, "Image"),
281
+ dataAttributes: F(e.dataAttributes, "Image"),
261
282
  forceNonCssAspectRatio: e.forceNonCssAspectRatio,
262
- children: /* @__PURE__ */ t(e1, _object_spread_props(_object_spread({}, e), {
263
- ref: n
283
+ children: /* @__PURE__ */ t(t1, _object_spread_props(_object_spread({}, e), {
284
+ ref: C
264
285
  }))
265
286
  });
266
- }), C1 = t1;
267
- export { e1 as ImageContent, p as ImageError, S as RATIO, C1 as default };
287
+ }), L1 = i1;
288
+ export { t1 as ImageContent, e1 as ImageError, A as RATIO, L1 as default };