@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
package/dist/chip.d.ts CHANGED
@@ -11,6 +11,7 @@ interface SimpleChipProps {
11
11
  }
12
12
  interface ClosableChipProps extends SimpleChipProps {
13
13
  onClose: () => void;
14
+ closeButtonLabel?: string;
14
15
  }
15
16
  interface ToggleChipProps extends SimpleChipProps {
16
17
  active: boolean;
package/dist/chip.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return rt;
9
+ return ot;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -119,14 +119,14 @@ function _object_spread_props(target, source) {
119
119
  }
120
120
  return target;
121
121
  }
122
- const H = (e)=>{
123
- const { Icon: n, children: A, id: R, dataAttributes: T, active: a, badge: r, onClose: s } = e, { texts: k, isDarkMode: I, textPresets: B } = (0, _hooks.useTheme)(), u = (0, _themevariantcontext.useThemeVariant)() === "alternative", f = n ? {
122
+ const J = (e)=>{
123
+ const { Icon: n, children: A, id: R, dataAttributes: T, active: a, badge: r, onClose: s, closeButtonLabel: k } = e, { texts: B, isDarkMode: I, textPresets: w } = (0, _hooks.useTheme)(), p = (0, _themevariantcontext.useThemeVariant)() === "alternative", f = n ? {
124
124
  mobile: 16,
125
125
  desktop: 8
126
126
  } : {
127
127
  mobile: 20,
128
128
  desktop: 12
129
- }, w = {
129
+ }, y = {
130
130
  mobile: 20,
131
131
  desktop: 12
132
132
  }, g = {
@@ -146,7 +146,7 @@ const H = (e)=>{
146
146
  paddingRight: r ? 8 : s ? 4 : 0,
147
147
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
148
148
  id: R,
149
- weight: B.indicator.weight,
149
+ weight: w.indicator.weight,
150
150
  truncate: 1,
151
151
  color: "currentColor",
152
152
  children: A
@@ -157,7 +157,7 @@ const H = (e)=>{
157
157
  "component-name": "Chip"
158
158
  }, T);
159
159
  if (s) return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
160
- className: (0, _classnames.default)(u ? _chipcssmistica.chipVariants.overAlternative : _chipcssmistica.chipVariants.default, _chipcssmistica.chipWrapper),
160
+ className: (0, _classnames.default)(p ? _chipcssmistica.chipVariants.overAlternative : _chipcssmistica.chipVariants.default, _chipcssmistica.chipWrapper),
161
161
  paddingLeft: f,
162
162
  paddingRight: g,
163
163
  dataAttributes: c,
@@ -171,7 +171,7 @@ const H = (e)=>{
171
171
  width: (0, _css.pxToRem)(24),
172
172
  height: (0, _css.pxToRem)(24)
173
173
  },
174
- "aria-label": k.closeButtonLabel,
174
+ "aria-label": k !== null && k !== void 0 ? k : B.closeButtonLabel,
175
175
  onPress: ()=>s(),
176
176
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconcloseregular.default, {
177
177
  size: (0, _css.pxToRem)(16),
@@ -180,20 +180,20 @@ const H = (e)=>{
180
180
  })
181
181
  ]
182
182
  });
183
- const l = e.href || e.onPress || e.to, y = a !== void 0 || l, N = ()=>r ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
183
+ const l = e.href || e.onPress || e.to, N = a !== void 0 || l, j = ()=>r ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
184
184
  children: r === !0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_badge.default, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_badge.default, {
185
185
  value: r
186
186
  })
187
- }) : null, v = (j)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
188
- className: (0, _classnames.default)(_chipcssmistica.chipVariants[a ? "active" : u ? "overAlternative" : "default"], l ? _chipcssmistica.wrappedContent : _chipcssmistica.chipWrapper, {
189
- [_chipcssmistica.chipInteractiveVariants[I ? "dark" : "light"]]: y
187
+ }) : null, v = (L)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
188
+ className: (0, _classnames.default)(_chipcssmistica.chipVariants[a ? "active" : p ? "overAlternative" : "default"], l ? _chipcssmistica.wrappedContent : _chipcssmistica.chipWrapper, {
189
+ [_chipcssmistica.chipInteractiveVariants[I ? "dark" : "light"]]: N
190
190
  }),
191
191
  paddingLeft: f,
192
- paddingRight: r ? g : w,
193
- dataAttributes: j,
192
+ paddingRight: r ? g : y,
193
+ dataAttributes: L,
194
194
  children: [
195
195
  b,
196
- N()
196
+ j()
197
197
  ]
198
198
  });
199
199
  return l ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({}, e), {
@@ -201,4 +201,4 @@ const H = (e)=>{
201
201
  dataAttributes: c,
202
202
  children: v()
203
203
  })) : v(c);
204
- }, rt = H;
204
+ }, ot = J;
package/dist/dialog.d.ts CHANGED
@@ -9,6 +9,7 @@ interface BaseDialogProps {
9
9
  acceptText?: string;
10
10
  onAccept?: () => void;
11
11
  destructive?: boolean;
12
+ closeButtonLabel?: string;
12
13
  /** @deprecated this does nothing */
13
14
  forceWeb?: boolean;
14
15
  /** @deprecated this does nothing */
package/dist/dialog.js CHANGED
@@ -153,8 +153,8 @@ function _object_without_properties_loose(source, excluded) {
153
153
  }
154
154
  return target;
155
155
  }
156
- const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAcceptanceTest)(), de = (t)=>{
157
- const { texts: i } = (0, _hooks.useTheme)(), { className: d, title: r, message: f, icon: o, extra: c, showCancelButton: s, showAcceptButton: l, cancelText: g = i.dialogCancelButton, acceptText: m = i.dialogAcceptButton, onCancel: h, onAccept: C, destructive: B = !1 } = t, u = t.type === "dialog", p = u && !!t.link || l || s, y = {
156
+ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAcceptanceTest)(), ue = (t)=>{
157
+ const { texts: i } = (0, _hooks.useTheme)(), { className: u, title: r, message: f, icon: o, extra: c, showCancelButton: s, showAcceptButton: l, cancelText: g = i.dialogCancelButton, acceptText: m = i.dialogAcceptButton, onCancel: h, onAccept: C, destructive: B = !1 } = t, d = t.type === "dialog", p = d && !!t.link || l || s, y = {
158
158
  onPress: C || (()=>{}),
159
159
  children: m,
160
160
  // @deprecated - testid should be removed but many webapp tests depend on this
@@ -163,7 +163,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
163
163
  }
164
164
  };
165
165
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
166
- className: (0, _classnames.default)(_dialogcssmistica.variants[u ? "dialog" : "default"], d),
166
+ className: (0, _classnames.default)(_dialogcssmistica.variants[d ? "dialog" : "default"], u),
167
167
  children: [
168
168
  o && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
169
169
  paddingBottom: 24,
@@ -176,7 +176,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
176
176
  }),
177
177
  r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
178
178
  paddingBottom: 16,
179
- children: u ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text5, {
179
+ children: d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text5, {
180
180
  as: "h2",
181
181
  children: r
182
182
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text4, {
@@ -210,7 +210,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
210
210
  p && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
211
211
  className: _dialogcssmistica.dialogActions,
212
212
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttonlayout.default, {
213
- link: u ? t.link : void 0,
213
+ link: d ? t.link : void 0,
214
214
  primaryButton: l ? B ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_button.ButtonDanger, _object_spread({
215
215
  tabIndex: 1
216
216
  }, y)) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_button.ButtonPrimary, _object_spread({
@@ -228,28 +228,28 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
228
228
  })
229
229
  ]
230
230
  });
231
- }, ue = (param)=>{
232
- let { type: t, message: i, title: d, acceptText: r, cancelText: f, onAccept: o, onCancel: c, onDestroy: s } = param;
231
+ }, de = (param)=>{
232
+ let { type: t, message: i, title: u, acceptText: r, cancelText: f, onAccept: o, onCancel: c, onDestroy: s } = param;
233
233
  return t === "confirm" ? (0, _webviewbridge.nativeConfirm)({
234
234
  message: i,
235
- title: d,
235
+ title: u,
236
236
  cancelText: f,
237
237
  acceptText: r
238
238
  }).then((l)=>{
239
239
  l ? o == null || o() : c == null || c(), s();
240
240
  }) : (0, _webviewbridge.nativeAlert)({
241
241
  message: i,
242
- title: d,
242
+ title: u,
243
243
  buttonText: r
244
244
  }).then(()=>{
245
245
  o == null || o(), s();
246
246
  });
247
247
  }, me = (param)=>{
248
- let { type: t, onAccept: i, onCancel: d, onDestroy: r, acceptText: f, cancelText: o, message: c, title: s } = param;
248
+ let { type: t, onAccept: i, onCancel: u, onDestroy: r, acceptText: f, cancelText: o, message: c, title: s } = param;
249
249
  const { texts: l } = (0, _hooks.useTheme)(), g = _react.useRef({
250
250
  type: t,
251
251
  onAccept: i,
252
- onCancel: d,
252
+ onCancel: u,
253
253
  onDestroy: r,
254
254
  acceptText: f || l.dialogAcceptButton,
255
255
  cancelText: o || l.dialogCancelButton,
@@ -257,13 +257,13 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
257
257
  title: s
258
258
  }), m = _react.useRef(!1);
259
259
  return _react.useEffect(()=>{
260
- m.current || (m.current = !0, ue(g.current).finally(()=>{
260
+ m.current || (m.current = !0, de(g.current).finally(()=>{
261
261
  m.current = !1;
262
262
  }));
263
263
  }, []), /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
264
264
  }, Ie = (t)=>{
265
265
  (0, _modalcontextprovider.useSetModalStateEffect)();
266
- const i = _react.useRef(null), { texts: d } = (0, _hooks.useTheme)(), [r, f] = _react.useState(!1), o = _react.useRef(!1), c = _react.useRef(!1), [s, l] = _react.useState(!1), g = _react.useRef(!1), m = _react.useRef(ce() ? _dialogcssmistica.ANIMATION_DURATION_MS : 0), h = t.type !== "dialog" && (0, _webviewbridge.isWebViewBridgeAvailable)(), C = t.type === "dialog", B = t.type === "alert", { onAccept: u, onCancel: p, onDestroy: y } = t, I = _object_without_properties(t, [
266
+ const i = _react.useRef(null), { texts: u } = (0, _hooks.useTheme)(), [r, f] = _react.useState(!1), o = _react.useRef(!1), c = _react.useRef(!1), [s, l] = _react.useState(!1), g = _react.useRef(!1), m = _react.useRef(ce() ? _dialogcssmistica.ANIMATION_DURATION_MS : 0), h = t.type !== "dialog" && (0, _webviewbridge.isWebViewBridgeAvailable)(), C = t.type === "dialog", B = t.type === "alert", { onAccept: d, onCancel: p, onDestroy: y } = t, I = _object_without_properties(t, [
267
267
  "onAccept",
268
268
  "onCancel",
269
269
  "onDestroy"
@@ -277,9 +277,9 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
277
277
  };
278
278
  }, []);
279
279
  const x = _react.useCallback(()=>{
280
- c.current || (c.current = !0, g.current ? u == null || u() : p == null || p(), y());
280
+ c.current || (c.current = !0, g.current ? d == null || d() : p == null || p(), y());
281
281
  }, [
282
- u,
282
+ d,
283
283
  p,
284
284
  y
285
285
  ]), R = _react.useCallback(()=>{
@@ -330,6 +330,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
330
330
  C,
331
331
  b
332
332
  ]);
333
+ var _t_closeButtonLabel;
333
334
  return h ? /* @__PURE__ */ (0, _jsxruntime.jsx)(me, _object_spread({}, t)) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
334
335
  className: _dialogcssmistica.wrapper,
335
336
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_focustrap.default, {
@@ -360,14 +361,14 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !(0, _platform.isRunningAccept
360
361
  className: _dialogcssmistica.modalCloseButtonContainer,
361
362
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.InternalIconButton, {
362
363
  onPress: v,
363
- "aria-label": d.modalClose || d.closeButtonLabel,
364
+ "aria-label": (_t_closeButtonLabel = t.closeButtonLabel) !== null && _t_closeButtonLabel !== void 0 ? _t_closeButtonLabel : u.modalClose || u.closeButtonLabel,
364
365
  bleedLeft: !0,
365
366
  bleedRight: !0,
366
367
  bleedY: !0,
367
368
  Icon: _iconcloseregular.default
368
369
  })
369
370
  }),
370
- /* @__PURE__ */ (0, _jsxruntime.jsx)(de, _object_spread_props(_object_spread({}, I), {
371
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(ue, _object_spread_props(_object_spread({}, I), {
371
372
  showAcceptButton: t.type !== "dialog" || !!t.onAccept,
372
373
  showCancelButton: t.type === "confirm" || t.type === "dialog" && !!t.onCancel,
373
374
  onCancel: b,
package/dist/feedback.js CHANGED
@@ -11,19 +11,19 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  ErrorFeedbackScreen: function() {
14
- return We;
14
+ return _e;
15
15
  },
16
16
  FeedbackScreen: function() {
17
17
  return F;
18
18
  },
19
19
  InfoFeedbackScreen: function() {
20
- return _e;
20
+ return qe;
21
21
  },
22
22
  SuccessFeedback: function() {
23
- return qe;
23
+ return we;
24
24
  },
25
25
  SuccessFeedbackScreen: function() {
26
- return Re;
26
+ return We;
27
27
  }
28
28
  });
29
29
  const _jsxruntime = require("react/jsx-runtime");
@@ -41,7 +41,7 @@ const _platform = require("./utils/platform.js");
41
41
  const _text = require("./text.js");
42
42
  const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
43
43
  const _boxed = require("./boxed.js");
44
- const _responsivelayout = /*#__PURE__*/ _interop_require_default(require("./responsive-layout.js"));
44
+ const _responsivelayout = /*#__PURE__*/ _interop_require_wildcard(require("./responsive-layout.js"));
45
45
  const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
46
46
  const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
47
47
  const _buttongroup = /*#__PURE__*/ _interop_require_default(require("./button-group.js"));
@@ -173,26 +173,26 @@ function _object_without_properties_loose(source, excluded) {
173
173
  }
174
174
  return target;
175
175
  }
176
- const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
176
+ const R = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
177
177
  let { primaryButton: o, secondaryButton: r } = param;
178
178
  return !!o || !!r;
179
- }, T = (o)=>{
179
+ }, B = (o)=>{
180
180
  (0, _webviewbridge.isWebViewBridgeAvailable)() && (0, _webviewbridge.requestVibration)(o).catch(()=>{});
181
181
  }, E = (o)=>{
182
182
  _react.useEffect(()=>{
183
183
  let r;
184
- return o === "success" && (r = setTimeout(()=>T("success"), 700)), o === "error" && (r = setTimeout(()=>T("error"), 1e3)), ()=>{
184
+ return o === "success" && (r = setTimeout(()=>B("success"), 700)), o === "error" && (r = setTimeout(()=>B("error"), 1e3)), ()=>{
185
185
  clearTimeout(r);
186
186
  };
187
187
  }, [
188
188
  o
189
189
  ]);
190
- }, R = (param, n)=>{
190
+ }, W = (param, n)=>{
191
191
  let { icon: o, title: r, description: t, extra: c } = param;
192
192
  const i = t && Array.isArray(t) ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
193
193
  space: 16,
194
- children: t.map((a, m)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("p", {
195
- children: a
194
+ children: t.map((s, m)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("p", {
195
+ children: s
196
196
  }, m))
197
197
  }) : t;
198
198
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
@@ -229,7 +229,7 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
229
229
  })
230
230
  ]
231
231
  });
232
- }, W = (o, r)=>{
232
+ }, _ = (o, r)=>{
233
233
  const t = D(r);
234
234
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
235
235
  space: {
@@ -241,7 +241,7 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
241
241
  t && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, _object_spread({}, r))
242
242
  ]
243
243
  });
244
- }, _ = (param)=>{
244
+ }, q = (param)=>{
245
245
  let { isInverse: o, body: r, imageFit: t, imageUrl: c, dataAttributes: n } = param;
246
246
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
247
247
  borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
@@ -276,54 +276,60 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
276
276
  ]
277
277
  })
278
278
  });
279
- }, pe = ()=>((0, _overscrollcolorcontext.useSetOverscrollColor)({
279
+ }, be = ()=>((0, _overscrollcolorcontext.useSetOverscrollColor)({
280
280
  topColor: _skincontractcssmistica.vars.colors.backgroundBrandTop,
281
281
  bottomColor: "transparent"
282
282
  }), null), F = (param)=>{
283
- let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link: a, hapticFeedback: m, icon: f, animateText: k = !1, isInverse: s = !1, unstable_inlineInDesktop: h, imageUrl: x, imageFit: g, dataAttributes: S } = param;
283
+ let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link: s, hapticFeedback: m, icon: k, animateText: f = !1, isInverse: a = !1, unstable_inlineInDesktop: h, imageUrl: x, imageFit: g, dataAttributes: S } = param;
284
284
  E(m);
285
- const { platformOverrides: q, isDarkMode: w } = (0, _hooks.useTheme)(), { isTabletOrSmaller: j } = (0, _hooks.useScreenSize)(), H = D({
285
+ const { platformOverrides: w, isDarkMode: L } = (0, _hooks.useTheme)(), { isTabletOrSmaller: j } = (0, _hooks.useScreenSize)(), H = D({
286
286
  primaryButton: n,
287
287
  secondaryButton: i,
288
- link: a
289
- }), I = R({
290
- icon: f,
288
+ link: s
289
+ }), I = W({
290
+ icon: k,
291
291
  title: o,
292
292
  description: r,
293
293
  extra: c !== null && c !== void 0 ? c : t
294
- }, k && O(q));
295
- return !j && h ? W(I, {
294
+ }, f && R(w));
295
+ return !j && h ? _(I, {
296
296
  primaryButton: n,
297
297
  secondaryButton: i,
298
- link: a
298
+ link: s
299
299
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
300
300
  style: {
301
301
  position: "relative"
302
302
  },
303
303
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_responsivelayout.default, {
304
304
  children: [
305
- s && /* @__PURE__ */ (0, _jsxruntime.jsx)(pe, {}),
305
+ a && /* @__PURE__ */ (0, _jsxruntime.jsx)(be, {}),
306
306
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
307
307
  paddingTop: {
308
308
  desktop: 64,
309
309
  mobile: 0
310
310
  },
311
- children: _({
312
- isInverse: s,
313
- body: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttonfixedfooterlayout.default, {
314
- isFooterVisible: H,
315
- button: n,
316
- secondaryButton: i,
317
- link: a,
318
- footerBgColor: s && !w ? _skincontractcssmistica.vars.colors.backgroundBrandBottom : void 0,
319
- containerBgColor: s ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.background,
320
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
321
- className: _feedbackcssmistica.container,
322
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
323
- className: (0, _classnames.default)(_feedbackcssmistica.innerContainer, {
324
- [_feedbackcssmistica.innerContainerWithButtons]: n || i || a
325
- }),
326
- children: I
311
+ children: q({
312
+ isInverse: a,
313
+ body: // doesn't expand when nested in mobile. This can cause double margin when footer is not fixed
314
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.ResetResponsiveLayout, {
315
+ skipDesktop: !0,
316
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttonfixedfooterlayout.default, {
317
+ isFooterVisible: H,
318
+ button: n,
319
+ secondaryButton: i,
320
+ link: s,
321
+ footerBgColor: a && !L ? _skincontractcssmistica.vars.colors.backgroundBrandBottom : void 0,
322
+ containerBgColor: a ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.background,
323
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
324
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
325
+ className: _feedbackcssmistica.container,
326
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
327
+ className: (0, _classnames.default)(_feedbackcssmistica.innerContainer, {
328
+ [_feedbackcssmistica.innerContainerWithButtons]: n || i || s
329
+ }),
330
+ children: I
331
+ })
332
+ })
327
333
  })
328
334
  })
329
335
  }),
@@ -335,7 +341,7 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
335
341
  ]
336
342
  })
337
343
  });
338
- }, Re = (_param)=>{
344
+ }, We = (_param)=>{
339
345
  var { dataAttributes: o } = _param, r = _object_without_properties(_param, [
340
346
  "dataAttributes"
341
347
  ]);
@@ -357,7 +363,7 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
357
363
  "component-name": "SuccessFeedbackScreen"
358
364
  }, o)
359
365
  }));
360
- }, We = (_param)=>{
366
+ }, _e = (_param)=>{
361
367
  var { children: o, errorReference: r, dataAttributes: t } = _param, c = _object_without_properties(_param, [
362
368
  "children",
363
369
  "errorReference",
@@ -384,7 +390,7 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
384
390
  ]
385
391
  })
386
392
  }));
387
- }, _e = (_param)=>{
393
+ }, qe = (_param)=>{
388
394
  var { dataAttributes: o, Icon: r = _iconinfo.default } = _param, t = _object_without_properties(_param, [
389
395
  "dataAttributes",
390
396
  "Icon"
@@ -397,13 +403,13 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
397
403
  size: "100%"
398
404
  })
399
405
  }, t));
400
- }, qe = (param)=>{
401
- let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link: a, imageUrl: m, imageFit: f, dataAttributes: k } = param;
406
+ }, we = (param)=>{
407
+ let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link: s, imageUrl: m, imageFit: k, dataAttributes: f } = param;
402
408
  E("success");
403
- const { skinName: s, platformOverrides: h } = (0, _hooks.useTheme)(), g = R({
404
- icon: s === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsuccessvivo.default, {
409
+ const { skinName: a, platformOverrides: h } = (0, _hooks.useTheme)(), g = W({
410
+ icon: a === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsuccessvivo.default, {
405
411
  size: "100%"
406
- }) : s === _constants.VIVO_NEW_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsuccessvivonew.default, {
412
+ }) : a === _constants.VIVO_NEW_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsuccessvivonew.default, {
407
413
  size: "100%"
408
414
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsuccess.default, {
409
415
  size: "100%"
@@ -411,12 +417,12 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
411
417
  title: o,
412
418
  description: r,
413
419
  extra: c !== null && c !== void 0 ? c : t
414
- }, O(h)), S = W(g, {
420
+ }, R(h)), S = _(g, {
415
421
  primaryButton: n,
416
422
  secondaryButton: i,
417
- link: a
423
+ link: s
418
424
  });
419
- return _({
425
+ return q({
420
426
  isInverse: !0,
421
427
  body: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
422
428
  className: _feedbackcssmistica.backgroundBrand,
@@ -436,10 +442,10 @@ const O = (o)=>!(0, _platform.isRunningAcceptanceTest)(o), D = (param)=>{
436
442
  })
437
443
  })
438
444
  }),
439
- imageFit: f,
445
+ imageFit: k,
440
446
  imageUrl: m,
441
447
  dataAttributes: _object_spread({
442
448
  "component-name": "SuccessFeedback"
443
- }, k)
449
+ }, f)
444
450
  });
445
451
  };
@@ -10,31 +10,34 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  fullWidth: function() {
13
- return k;
13
+ return v;
14
14
  },
15
15
  inline: function() {
16
- return a;
16
+ return k;
17
17
  },
18
18
  marginInline: function() {
19
- return n;
19
+ return r;
20
20
  },
21
21
  noFullWidth: function() {
22
- return r;
22
+ return n;
23
23
  },
24
24
  stringSpace: function() {
25
25
  return b;
26
26
  },
27
- vars: function() {
27
+ stringSpaceWithWrap: function() {
28
28
  return e;
29
29
  },
30
- wrap: function() {
30
+ vars: function() {
31
31
  return f;
32
+ },
33
+ wrap: function() {
34
+ return i;
32
35
  }
33
36
  });
34
37
  require("./inline.css.ts.vanilla.css-mistica.js");
35
- var k = "kkfbnv6", a = "kkfbnv5", n = "kkfbnv4", r = "kkfbnv8", b = "kkfbnv9", e = {
38
+ var v = "kkfbnv6", k = "kkfbnv5", r = "kkfbnv4", n = "kkfbnv8", b = "kkfbnv9", e = "kkfbnva", f = {
36
39
  space: "var(--kkfbnv0)",
37
40
  spaceMobile: "var(--kkfbnv1)",
38
41
  spaceTablet: "var(--kkfbnv2)",
39
42
  spaceDesktop: "var(--kkfbnv3)"
40
- }, f = "kkfbnv7";
43
+ }, i = "kkfbnv7";
@@ -10,3 +10,4 @@ export declare const fullWidth: string;
10
10
  export declare const wrap: string;
11
11
  export declare const noFullWidth: string;
12
12
  export declare const stringSpace: string;
13
+ export declare const stringSpaceWithWrap: string;
package/dist/inline.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return P;
9
+ return q;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -116,7 +116,7 @@ function _object_spread_props(target, source) {
116
116
  }
117
117
  return target;
118
118
  }
119
- const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, A = (t)=>{
119
+ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, D = (t)=>{
120
120
  if (typeof t == "number" || typeof t == "string") return {
121
121
  [_inlinecssmistica.vars.space]: i(t)
122
122
  };
@@ -125,25 +125,25 @@ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, A = (t)=>{
125
125
  [_inlinecssmistica.vars.spaceDesktop]: i(t.desktop)
126
126
  };
127
127
  return t.tablet && (e[_inlinecssmistica.vars.spaceTablet] = i(t.tablet)), e;
128
- }, C = (param)=>{
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";
128
+ }, R = (param)=>{
129
+ let { space: t, className: e, children: m, role: o, alignItems: p = "stretch", "aria-labelledby": f, fullWidth: c, wrap: l, dataAttributes: d } = param;
130
+ const { platformOverrides: s } = (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
- alignItems: m
134
- }), c ? _inlinecssmistica.wrap : f ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, u ? _inlinecssmistica.stringSpace : _inlinecssmistica.marginInline),
135
- style: (0, _css.applyCssVars)(A(t)),
133
+ alignItems: p
134
+ }), l ? _inlinecssmistica.wrap : c ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, u ? l ? _inlinecssmistica.stringSpaceWithWrap : _inlinecssmistica.stringSpace : _inlinecssmistica.marginInline),
135
+ style: (0, _css.applyCssVars)(D(t)),
136
136
  role: o,
137
- "aria-labelledby": p
137
+ "aria-labelledby": f
138
138
  }, (0, _dom.getPrefixedDataAttributes)(d, "Inline")), {
139
- children: _react.Children.map(a, (n)=>n || n === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
139
+ children: _react.Children.map(m, (n)=>n || n === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
140
140
  role: o === "list" ? "listitem" : void 0,
141
141
  style: {
142
142
  // Hack to fix https://jira.tid.es/browse/WEB-1683
143
143
  // In iOS the inline component sometimes cuts the last line of the content
144
- paddingBottom: (0, _platform.isIos)(l) && !(0, _platform.isRunningAcceptanceTest)(l) ? 1 : void 0
144
+ paddingBottom: (0, _platform.isIos)(s) && !(0, _platform.isRunningAcceptanceTest)(s) ? 1 : void 0
145
145
  },
146
146
  children: n
147
147
  }) : null)
148
148
  }));
149
- }, P = C;
149
+ }, q = R;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { LogoImageProps } from './logo-common';
3
+ declare const BlauLogoImage: ({ size, type, isDarkMode, isInverse }: LogoImageProps) => JSX.Element;
4
+ export default BlauLogoImage;