@telefonica/mistica 14.41.0 → 14.42.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 (137) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +14 -5
  3. package/dist/boxed.css.d.ts +1 -0
  4. package/dist/boxed.d.ts +1 -0
  5. package/dist/boxed.js +11 -9
  6. package/dist/button-fixed-footer-layout.d.ts +1 -0
  7. package/dist/button-fixed-footer-layout.js +19 -14
  8. package/dist/button-layout.css-mistica.js +16 -13
  9. package/dist/button-layout.css.d.ts +1 -0
  10. package/dist/button-layout.js +15 -15
  11. package/dist/button.js +43 -35
  12. package/dist/carousel.d.ts +13 -0
  13. package/dist/carousel.js +325 -223
  14. package/dist/credit-card-expiration-field.js +30 -26
  15. package/dist/credit-card-number-field.css-mistica.js +7 -7
  16. package/dist/credit-card-number-field.js +59 -45
  17. package/dist/cvv-field.js +46 -41
  18. package/dist/date-field.css-mistica.js +14 -0
  19. package/dist/date-field.css.d.ts +1 -0
  20. package/dist/date-field.css.ts.vanilla.css-mistica.js +11 -0
  21. package/dist/date-field.js +41 -35
  22. package/dist/date-time-field.js +40 -34
  23. package/dist/date-time-picker.js +43 -45
  24. package/dist/decimal-field.js +26 -22
  25. package/dist/dialog-context.d.ts +24 -0
  26. package/dist/dialog-context.js +192 -0
  27. package/dist/dialog.css-mistica.js +15 -12
  28. package/dist/dialog.css.d.ts +1 -0
  29. package/dist/dialog.d.ts +14 -44
  30. package/dist/dialog.js +161 -245
  31. package/dist/double-field.css-mistica.js +3 -2
  32. package/dist/email-field.js +15 -11
  33. package/dist/feedback.css-mistica.js +18 -15
  34. package/dist/feedback.css.d.ts +5 -4
  35. package/dist/feedback.js +154 -147
  36. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  37. package/dist/fixed-footer-layout.js +9 -8
  38. package/dist/iban-field.js +31 -27
  39. package/dist/icons/icon-amex.d.ts +1 -1
  40. package/dist/icons/icon-cvv-amex.d.ts +1 -1
  41. package/dist/icons/icon-cvv-visa-mc.d.ts +1 -1
  42. package/dist/icons/icon-mastercard.d.ts +1 -1
  43. package/dist/icons/icon-visa.d.ts +1 -1
  44. package/dist/index.d.ts +2 -2
  45. package/dist/index.js +16 -4
  46. package/dist/inline.css-mistica.js +9 -6
  47. package/dist/inline.css.d.ts +1 -1
  48. package/dist/inline.js +9 -9
  49. package/dist/integer-field.js +17 -13
  50. package/dist/loading-bar.css-mistica.js +4 -7
  51. package/dist/loading-bar.css.d.ts +0 -2
  52. package/dist/loading-bar.js +3 -6
  53. package/dist/month-field.js +39 -33
  54. package/dist/package-version.js +1 -1
  55. package/dist/password-field.js +46 -44
  56. package/dist/phone-number-field.js +50 -46
  57. package/dist/pin-field.css-mistica.js +12 -6
  58. package/dist/pin-field.css.d.ts +2 -0
  59. package/dist/pin-field.d.ts +3 -1
  60. package/dist/pin-field.js +129 -95
  61. package/dist/responsive-layout.css-mistica.js +10 -7
  62. package/dist/responsive-layout.css.d.ts +2 -1
  63. package/dist/responsive-layout.d.ts +1 -1
  64. package/dist/responsive-layout.js +20 -17
  65. package/dist/search-field.js +36 -35
  66. package/dist/select.css-mistica.js +16 -15
  67. package/dist/select.css.d.ts +1 -0
  68. package/dist/select.js +138 -143
  69. package/dist/text-field-base.css-mistica.js +45 -21
  70. package/dist/text-field-base.css.d.ts +30 -7
  71. package/dist/text-field-base.d.ts +11 -0
  72. package/dist/text-field-base.js +175 -140
  73. package/dist/text-field-components.css-mistica.js +13 -21
  74. package/dist/text-field-components.css.d.ts +0 -3
  75. package/dist/text-field-components.d.ts +3 -0
  76. package/dist/text-field-components.js +38 -35
  77. package/dist/text-field.js +26 -22
  78. package/dist/theme-context-provider.js +2 -2
  79. package/dist/utils/platform.js +8 -11
  80. package/dist-es/boxed.css-mistica.js +3 -2
  81. package/dist-es/boxed.js +17 -15
  82. package/dist-es/button-fixed-footer-layout.js +29 -24
  83. package/dist-es/button-layout.css-mistica.js +7 -7
  84. package/dist-es/button-layout.js +23 -23
  85. package/dist-es/button.js +65 -57
  86. package/dist-es/carousel.js +373 -280
  87. package/dist-es/credit-card-expiration-field.js +34 -30
  88. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  89. package/dist-es/credit-card-number-field.js +84 -70
  90. package/dist-es/cvv-field.js +68 -63
  91. package/dist-es/date-field.css-mistica.js +5 -0
  92. package/dist-es/date-field.css.ts.vanilla.css-mistica.js +2 -0
  93. package/dist-es/date-field.js +46 -40
  94. package/dist-es/date-time-field.js +47 -41
  95. package/dist-es/date-time-picker.js +55 -57
  96. package/dist-es/decimal-field.js +31 -27
  97. package/dist-es/dialog-context.js +125 -0
  98. package/dist-es/dialog.css-mistica.js +3 -3
  99. package/dist-es/dialog.js +192 -262
  100. package/dist-es/double-field.css-mistica.js +3 -2
  101. package/dist-es/email-field.js +16 -12
  102. package/dist-es/feedback.css-mistica.js +2 -2
  103. package/dist-es/feedback.js +191 -184
  104. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  105. package/dist-es/fixed-footer-layout.js +21 -20
  106. package/dist-es/iban-field.js +42 -38
  107. package/dist-es/index.js +1778 -1778
  108. package/dist-es/inline.css-mistica.js +3 -3
  109. package/dist-es/inline.js +18 -18
  110. package/dist-es/integer-field.js +21 -17
  111. package/dist-es/loading-bar.css-mistica.js +2 -2
  112. package/dist-es/loading-bar.js +10 -13
  113. package/dist-es/month-field.js +47 -41
  114. package/dist-es/package-version.js +1 -1
  115. package/dist-es/password-field.js +54 -52
  116. package/dist-es/phone-number-field.js +53 -49
  117. package/dist-es/pin-field.css-mistica.js +2 -2
  118. package/dist-es/pin-field.js +145 -111
  119. package/dist-es/responsive-layout.css-mistica.js +3 -3
  120. package/dist-es/responsive-layout.js +27 -24
  121. package/dist-es/search-field.js +45 -44
  122. package/dist-es/select.css-mistica.js +8 -7
  123. package/dist-es/select.js +167 -172
  124. package/dist-es/style.css +1 -1
  125. package/dist-es/text-field-base.css-mistica.js +2 -2
  126. package/dist-es/text-field-base.js +189 -157
  127. package/dist-es/text-field-components.css-mistica.js +3 -2
  128. package/dist-es/text-field-components.js +52 -49
  129. package/dist-es/text-field.js +31 -27
  130. package/dist-es/theme-context-provider.js +1 -1
  131. package/dist-es/utils/platform.js +6 -6
  132. package/package.json +1 -1
  133. package/dist/password-field.css-mistica.js +0 -13
  134. package/dist/password-field.css.d.ts +0 -1
  135. package/dist-es/password-field.css-mistica.js +0 -4
  136. /package/dist/{password-field.css.ts.vanilla.css-mistica.js → boxed.css.ts.vanilla.css-mistica.js} +0 -0
  137. /package/dist-es/{password-field.css.ts.vanilla.css-mistica.js → boxed.css.ts.vanilla.css-mistica.js} +0 -0
@@ -79,222 +79,227 @@ function _object_without_properties_loose(source, excluded) {
79
79
  return target;
80
80
  }
81
81
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
82
- import * as S from "react";
83
- import { useTheme as N, useWindowHeight as se, useScreenSize as x, useIsomorphicLayoutEffect as q } from "./hooks.js";
84
- import { ThemeVariant as ae, useIsInverseVariant as ie } from "./theme-variant-context.js";
85
- import de from "./button-fixed-footer-layout.js";
86
- import L from "./overscroll-color-context.js";
87
- import { O2_CLASSIC_SKIN as E, VIVO_SKIN as W, VIVO_NEW_SKIN as K } from "./skins/constants.js";
88
- import R from "./icons/icon-success.js";
89
- import j from "./icons/icon-success-vivo.js";
90
- import le from "./icons/icon-error.js";
91
- import me from "./icons/icon-info.js";
92
- import { isWebViewBridgeAvailable as ue, requestVibration as pe } from "@tef-novum/webview-bridge";
93
- import { isRunningAcceptanceTest as be } from "./utils/platform.js";
94
- import { Text2 as fe, Text6 as he, Text3 as ke } from "./text.js";
95
- import y from "./box.js";
96
- import { Boxed as Se } from "./boxed.js";
97
- import B from "./responsive-layout.js";
98
- import b from "./stack.js";
99
- import k from "classnames";
100
- import ge from "./button-group.js";
101
- import { vars as d } from "./skins/skin-contract.css-mistica.js";
102
- import { innerContainer as M, iconContainer as ve, feedbackData as Fe, feedbackDataAppear as A, feedbackDataAppearActiveFast as Ie, feedbackDataAppearActiveMedium as _, feedbackDataAppearActiveSlow as Ae, desktopContainer as Be, desktopContent as Ne, container as xe } from "./feedback.css-mistica.js";
103
- import G from "./icons/icon-success-vivo-new.js";
104
- const P = (r)=>!be(r), U = (param)=>{
82
+ import * as F from "react";
83
+ import { useTheme as v, useWindowHeight as Q, useScreenSize as H, useIsomorphicLayoutEffect as Y } from "./hooks.js";
84
+ import { tabletOrSmaller as Z } from "./media-queries.css-mistica.js";
85
+ import ee from "./button-fixed-footer-layout.js";
86
+ import oe from "./overscroll-color-context.js";
87
+ import { O2_CLASSIC_SKIN as C, VIVO_SKIN as $, VIVO_NEW_SKIN as w } from "./skins/constants.js";
88
+ import E from "./icons/icon-success.js";
89
+ import _ from "./icons/icon-success-vivo.js";
90
+ import re from "./icons/icon-error.js";
91
+ import te from "./icons/icon-info.js";
92
+ import { isWebViewBridgeAvailable as ce, requestVibration as ne } from "@tef-novum/webview-bridge";
93
+ import { isRunningAcceptanceTest as ie } from "./utils/platform.js";
94
+ import { Text2 as se, Text6 as ae, Text3 as de } from "./text.js";
95
+ import b from "./box.js";
96
+ import { InternalBoxed as le } from "./boxed.js";
97
+ import me from "./responsive-layout.js";
98
+ import u from "./stack.js";
99
+ import p from "classnames";
100
+ import ue from "./button-group.js";
101
+ import { vars as a } from "./skins/skin-contract.css-mistica.js";
102
+ import { container as pe, innerContainer as be, backgroundBrand as fe, iconContainer as ke, feedbackData as he, feedbackTextAppearFast as ge, feedbackTextAppearMedium as V, feedbackTextAppearSlow as Se, desktopContainer as Fe, desktopContent as ve, desktopImage as xe } from "./feedback.css-mistica.js";
103
+ import D from "./icons/icon-success-vivo-new.js";
104
+ const R = (r)=>!ie(r), L = (param)=>{
105
105
  let { primaryButton: r, secondaryButton: o } = param;
106
106
  return !!r || !!o;
107
- }, ye = ()=>{
108
- const o = `body {background:${ie() ? d.colors.backgroundBrand : d.colors.background}}`;
107
+ }, Ie = (param)=>{
108
+ let { isInverse: r } = param;
109
+ const o = `@media ${Z} {
110
+ body {background:${r ? a.colors.backgroundBrand : a.colors.background}}
111
+ }`;
109
112
  return /* @__PURE__ */ e("style", {
110
113
  children: o
111
114
  });
112
- }, $ = (r)=>{
113
- ue() && pe(r).catch(()=>{});
114
- }, J = (r)=>{
115
- S.useEffect(()=>{
115
+ }, O = (r)=>{
116
+ ce() && ne(r).catch(()=>{});
117
+ }, W = (r)=>{
118
+ F.useEffect(()=>{
116
119
  let o;
117
- return r === "success" && (o = setTimeout(()=>$("success"), 700)), r === "error" && (o = setTimeout(()=>$("error"), 1e3)), ()=>{
120
+ return r === "success" && (o = setTimeout(()=>O("success"), 700)), r === "error" && (o = setTimeout(()=>O("error"), 1e3)), ()=>{
118
121
  clearTimeout(o);
119
122
  };
120
123
  }, [
121
124
  r
122
125
  ]);
123
- }, Q = ()=>{
124
- const [r, o] = S.useState(!1);
125
- return q(()=>{
126
- const t = window.requestAnimationFrame(()=>{
127
- o(!0);
128
- });
129
- return ()=>window.cancelAnimationFrame(t);
130
- }, []), r;
131
- }, X = (param, n, s)=>{
126
+ }, q = (param, n)=>{
132
127
  let { icon: r, title: o, description: t, extra: c } = param;
133
- const a = t && Array.isArray(t) ? /* @__PURE__ */ e(b, {
128
+ const i = t && Array.isArray(t) ? /* @__PURE__ */ e(u, {
134
129
  space: 16,
135
- children: t.map((m, u)=>/* @__PURE__ */ e("p", {
136
- children: m
137
- }, u))
130
+ children: t.map((d, m)=>/* @__PURE__ */ e("p", {
131
+ children: d
132
+ }, m))
138
133
  }) : t;
139
- return /* @__PURE__ */ l(b, {
134
+ return /* @__PURE__ */ l(u, {
140
135
  space: 24,
141
136
  children: [
142
137
  /* @__PURE__ */ e("div", {
143
- className: ve,
138
+ className: ke,
144
139
  children: r
145
140
  }),
146
- /* @__PURE__ */ l(b, {
141
+ /* @__PURE__ */ l(u, {
147
142
  space: 16,
148
- className: k(Fe),
143
+ className: p(he),
149
144
  children: [
150
145
  /* @__PURE__ */ e("div", {
151
- className: k(n && A, n && s && Ie),
152
- children: /* @__PURE__ */ e(he, {
146
+ className: p(n && ge),
147
+ children: /* @__PURE__ */ e(ae, {
153
148
  as: "h1",
154
149
  children: o
155
150
  })
156
151
  }),
157
- /* @__PURE__ */ e("div", {
158
- className: k(n && A, n && s && _),
159
- children: a && /* @__PURE__ */ e(ke, {
152
+ i && /* @__PURE__ */ e("div", {
153
+ className: p(n && V),
154
+ children: i && /* @__PURE__ */ e(de, {
160
155
  regular: !0,
161
- color: d.colors.textSecondary,
162
- children: a
156
+ color: a.colors.textSecondary,
157
+ children: i
163
158
  })
164
159
  }),
165
- /* @__PURE__ */ e("div", {
166
- className: k(n && A, n && s && (a ? Ae : _)),
160
+ c && /* @__PURE__ */ e("div", {
161
+ className: p(n && (i ? Se : V)),
167
162
  children: c
168
163
  })
169
164
  ]
170
165
  })
171
166
  ]
172
167
  });
173
- }, Y = (r, o, t)=>{
174
- const c = U(o);
175
- return /* @__PURE__ */ l(b, {
176
- space: t ? 24 : 40,
168
+ }, K = (r, o)=>{
169
+ const t = L(o);
170
+ return /* @__PURE__ */ l(u, {
171
+ space: {
172
+ desktop: 40,
173
+ mobile: 24
174
+ },
177
175
  children: [
178
176
  r,
179
- c && /* @__PURE__ */ e(ge, _object_spread({}, o))
177
+ t && /* @__PURE__ */ e(ue, _object_spread({}, o))
180
178
  ]
181
179
  });
182
- }, Z = (param)=>{
183
- let { isInverse: r, inlineFeedbackBody: o, imageFit: t, imageUrl: c, dataAttributes: n } = param;
184
- return /* @__PURE__ */ l(Se, {
185
- className: Be,
180
+ }, j = (param)=>{
181
+ let { isInverse: r, body: o, imageFit: t, imageUrl: c, dataAttributes: n } = param;
182
+ return /* @__PURE__ */ e(le, {
183
+ borderRadius: a.borderRadii.legacyDisplay,
184
+ desktopOnly: !0,
186
185
  isInverse: r,
187
186
  dataAttributes: n,
188
- children: [
189
- /* @__PURE__ */ e("div", {
190
- className: Ne,
191
- children: /* @__PURE__ */ e(y, {
192
- padding: 64,
193
- children: o
187
+ children: /* @__PURE__ */ l("div", {
188
+ className: Fe,
189
+ children: [
190
+ /* @__PURE__ */ e("div", {
191
+ className: ve,
192
+ children: /* @__PURE__ */ e(b, {
193
+ padding: {
194
+ desktop: 64,
195
+ mobile: 0
196
+ },
197
+ paddingTop: 0,
198
+ children: o
199
+ })
200
+ }),
201
+ c && /* @__PURE__ */ e("div", {
202
+ className: xe,
203
+ style: {
204
+ backgroundImage: `url(${c})`,
205
+ backgroundPosition: t === "fit" ? "bottom right" : "center right",
206
+ backgroundRepeat: "no-repeat",
207
+ backgroundSize: t === "fit" ? "contain" : "cover",
208
+ flex: 1,
209
+ maxWidth: 600
210
+ }
194
211
  })
195
- }),
196
- c && /* @__PURE__ */ e("div", {
197
- style: {
198
- backgroundImage: `url(${c})`,
199
- backgroundPosition: t === "fit" ? "bottom right" : "center right",
200
- backgroundRepeat: "no-repeat",
201
- backgroundSize: t === "fit" ? "contain" : "cover",
202
- flex: 1,
203
- maxWidth: 600
204
- }
205
- })
206
- ]
212
+ ]
213
+ })
207
214
  });
208
- }, V = (param)=>{
209
- let { title: r, description: o, children: t, extra: c, primaryButton: n, secondaryButton: s, link: a, hapticFeedback: m, icon: u, animateText: f = !1, isInverse: i = !1, unstable_inlineInDesktop: h, imageUrl: g, imageFit: v, dataAttributes: C } = param;
210
- J(m);
211
- const { platformOverrides: F, isDarkMode: p, skinName: z } = N(), ee = se(), { isTabletOrSmaller: I } = x(), [oe, re] = S.useState(typeof self < "u"), [w, te] = S.useState(0), T = oe ? "100vh" : `${ee - w}px`, D = U({
215
+ }, x = (param)=>{
216
+ let { title: r, description: o, children: t, extra: c, primaryButton: n, secondaryButton: i, link: d, hapticFeedback: m, icon: f, animateText: k = !1, isInverse: s = !1, unstable_inlineInDesktop: h, imageUrl: I, imageFit: g, dataAttributes: S } = param;
217
+ W(m);
218
+ const { platformOverrides: M, isDarkMode: N, skinName: B } = v(), G = Q(), { isTabletOrSmaller: P } = H(), [U, X] = F.useState(typeof self < "u"), [y, J] = F.useState(0), T = U ? "100vh" : `${G - y}px`, A = L({
212
219
  primaryButton: n,
213
- secondaryButton: s,
214
- link: a
215
- }), ce = Q();
216
- q(()=>{
217
- re(!1);
220
+ secondaryButton: i,
221
+ link: d
222
+ });
223
+ Y(()=>{
224
+ X(!1);
218
225
  }, []);
219
- const O = X({
220
- icon: u,
226
+ const z = q({
227
+ icon: f,
221
228
  title: r,
222
229
  description: o,
223
230
  extra: c !== null && c !== void 0 ? c : t
224
- }, f && P(F), ce), H = Y(O, {
231
+ }, k && R(M));
232
+ return !P && h ? K(z, {
225
233
  primaryButton: n,
226
- secondaryButton: s,
227
- link: a
228
- }, I);
229
- if (!I && h) return H;
230
- const ne = /* @__PURE__ */ e("div", {
231
- className: xe,
232
- children: /* @__PURE__ */ e(B, {
233
- children: /* @__PURE__ */ e("div", {
234
- className: M,
235
- children: O
236
- })
237
- })
238
- });
239
- return I ? /* @__PURE__ */ l(ae, {
240
- isInverse: i,
234
+ secondaryButton: i,
235
+ link: d
236
+ }) : /* @__PURE__ */ l("div", {
237
+ style: {
238
+ position: "relative"
239
+ },
241
240
  children: [
242
- i && /* @__PURE__ */ e(L, {}),
243
- /* @__PURE__ */ e("div", {
244
- style: {
245
- position: "relative"
246
- },
247
- children: /* @__PURE__ */ e(de, {
248
- isFooterVisible: D,
249
- button: n,
250
- secondaryButton: s,
251
- link: a,
252
- footerBgColor: i && !p ? d.colors.backgroundFeedbackBottom : void 0,
253
- containerBgColor: i && !p ? d.colors.backgroundFeedbackBottom : void 0,
254
- onChangeFooterHeight: te,
255
- children: ne
241
+ s && /* @__PURE__ */ e(oe, {}),
242
+ /* @__PURE__ */ e(me, {
243
+ children: /* @__PURE__ */ e(b, {
244
+ paddingTop: {
245
+ desktop: 64,
246
+ mobile: 0
247
+ },
248
+ children: j({
249
+ isInverse: s,
250
+ body: /* @__PURE__ */ e(ee, {
251
+ isFooterVisible: A,
252
+ button: n,
253
+ secondaryButton: i,
254
+ link: d,
255
+ footerBgColor: s && !N ? a.colors.backgroundFeedbackBottom : void 0,
256
+ containerBgColor: s && !N ? a.colors.backgroundFeedbackBottom : void 0,
257
+ onChangeFooterHeight: J,
258
+ children: /* @__PURE__ */ e("div", {
259
+ className: pe,
260
+ children: /* @__PURE__ */ e("div", {
261
+ className: be,
262
+ children: z
263
+ })
264
+ })
265
+ }),
266
+ imageFit: g,
267
+ imageUrl: I,
268
+ dataAttributes: S
269
+ })
256
270
  })
257
271
  }),
258
- z === E && /* @__PURE__ */ e("div", {
272
+ B === C && /* @__PURE__ */ e("div", {
259
273
  style: {
260
274
  position: "absolute",
261
- bottom: w,
275
+ bottom: y,
262
276
  top: 0,
263
277
  left: 0,
264
278
  right: 0,
265
279
  // This extra height is a workaround to make sure the background div is displayed *under* the fixed footer.
266
280
  // Otherwise in some devices (Galaxy S20+) the background and the fixed footer are rendered with some distance between them
267
- height: D ? `calc(${T} + 1px)` : `calc(${T})`,
268
- background: i ? d.colors.backgroundBrand : d.colors.background
281
+ height: A ? `calc(${T} + 1px)` : `calc(${T})`,
282
+ background: s ? a.colors.backgroundBrand : a.colors.background
269
283
  }
270
284
  }),
271
- z !== E && /* @__PURE__ */ e(ye, {})
272
- ]
273
- }) : /* @__PURE__ */ e(B, {
274
- children: /* @__PURE__ */ e(y, {
275
- paddingTop: 64,
276
- children: Z({
277
- isInverse: i,
278
- inlineFeedbackBody: H,
279
- imageFit: v,
280
- imageUrl: g,
281
- dataAttributes: C
285
+ B !== C && /* @__PURE__ */ e(Ie, {
286
+ isInverse: s
282
287
  })
283
- })
288
+ ]
284
289
  });
285
- }, Qe = (_param)=>{
290
+ }, Ge = (_param)=>{
286
291
  var { dataAttributes: r } = _param, o = _object_without_properties(_param, [
287
292
  "dataAttributes"
288
293
  ]);
289
- const { isTabletOrSmaller: t } = x(), { skinName: c } = N();
290
- return /* @__PURE__ */ e(V, _object_spread_props(_object_spread({}, o), {
294
+ const { isTabletOrSmaller: t } = H(), { skinName: c } = v();
295
+ return /* @__PURE__ */ e(x, _object_spread_props(_object_spread({}, o), {
291
296
  isInverse: !o.unstable_inlineInDesktop || t,
292
297
  hapticFeedback: "success",
293
- icon: c === W ? /* @__PURE__ */ e(j, {
298
+ icon: c === $ ? /* @__PURE__ */ e(_, {
294
299
  size: "100%"
295
- }) : c === K ? /* @__PURE__ */ e(G, {
300
+ }) : c === w ? /* @__PURE__ */ e(D, {
296
301
  size: "100%"
297
- }) : /* @__PURE__ */ e(R, {
302
+ }) : /* @__PURE__ */ e(E, {
298
303
  size: "100%"
299
304
  }),
300
305
  animateText: !0,
@@ -304,39 +309,39 @@ const P = (r)=>!be(r), U = (param)=>{
304
309
  "component-name": "SuccessFeedbackScreen"
305
310
  }, r)
306
311
  }));
307
- }, Xe = (_param)=>{
312
+ }, Pe = (_param)=>{
308
313
  var { children: r, errorReference: o, dataAttributes: t } = _param, c = _object_without_properties(_param, [
309
314
  "children",
310
315
  "errorReference",
311
316
  "dataAttributes"
312
317
  ]);
313
- return /* @__PURE__ */ e(V, _object_spread_props(_object_spread({}, c), {
318
+ return /* @__PURE__ */ e(x, _object_spread_props(_object_spread({}, c), {
314
319
  hapticFeedback: "error",
315
- icon: /* @__PURE__ */ e(le, {
320
+ icon: /* @__PURE__ */ e(re, {
316
321
  size: "100%"
317
322
  }),
318
323
  animateText: !0,
319
324
  dataAttributes: _object_spread({
320
325
  "component-name": "ErrorFeedbackScreen"
321
326
  }, t),
322
- extra: /* @__PURE__ */ l(b, {
327
+ extra: /* @__PURE__ */ l(u, {
323
328
  space: 16,
324
329
  children: [
325
330
  r,
326
- o && /* @__PURE__ */ e(fe, {
327
- color: d.colors.textSecondary,
331
+ o && /* @__PURE__ */ e(se, {
332
+ color: a.colors.textSecondary,
328
333
  regular: !0,
329
334
  children: o
330
335
  })
331
336
  ]
332
337
  })
333
338
  }));
334
- }, Ye = (_param)=>{
335
- var { dataAttributes: r, Icon: o = me } = _param, t = _object_without_properties(_param, [
339
+ }, Ue = (_param)=>{
340
+ var { dataAttributes: r, Icon: o = te } = _param, t = _object_without_properties(_param, [
336
341
  "dataAttributes",
337
342
  "Icon"
338
343
  ]);
339
- return /* @__PURE__ */ e(V, _object_spread({
344
+ return /* @__PURE__ */ e(x, _object_spread({
340
345
  dataAttributes: _object_spread({
341
346
  "component-name": "InfoFeedbackScreen"
342
347
  }, r),
@@ -344,48 +349,50 @@ const P = (r)=>!be(r), U = (param)=>{
344
349
  size: "100%"
345
350
  })
346
351
  }, t));
347
- }, Ze = (param)=>{
348
- let { title: r, description: o, children: t, extra: c, primaryButton: n, secondaryButton: s, link: a, imageUrl: m, imageFit: u, dataAttributes: f } = param;
349
- J("success");
350
- const { isTabletOrSmaller: i } = x(), { skinName: h, platformOverrides: g } = N(), v = Q(), F = X({
351
- icon: h === W ? /* @__PURE__ */ e(j, {
352
+ }, Xe = (param)=>{
353
+ let { title: r, description: o, children: t, extra: c, primaryButton: n, secondaryButton: i, link: d, imageUrl: m, imageFit: f, dataAttributes: k } = param;
354
+ W("success");
355
+ const { skinName: s, platformOverrides: h } = v(), g = q({
356
+ icon: s === $ ? /* @__PURE__ */ e(_, {
352
357
  size: "100%"
353
- }) : h === K ? /* @__PURE__ */ e(G, {
358
+ }) : s === w ? /* @__PURE__ */ e(D, {
354
359
  size: "100%"
355
- }) : /* @__PURE__ */ e(R, {
360
+ }) : /* @__PURE__ */ e(E, {
356
361
  size: "100%"
357
362
  }),
358
363
  title: r,
359
364
  description: o,
360
365
  extra: c !== null && c !== void 0 ? c : t
361
- }, P(g), v), p = Y(F, {
366
+ }, R(h)), S = K(g, {
362
367
  primaryButton: n,
363
- secondaryButton: s,
364
- link: a
365
- }, i);
366
- return i ? /* @__PURE__ */ l(B, {
368
+ secondaryButton: i,
369
+ link: d
370
+ });
371
+ return j({
367
372
  isInverse: !0,
368
- children: [
369
- /* @__PURE__ */ e(L, {}),
370
- /* @__PURE__ */ e(y, {
371
- paddingBottom: 32,
372
- dataAttributes: _object_spread({
373
- "component-name": "SuccessFeedback"
374
- }, f),
375
- children: /* @__PURE__ */ e("div", {
376
- className: M,
377
- children: p
373
+ body: /* @__PURE__ */ e("div", {
374
+ className: fe,
375
+ children: /* @__PURE__ */ e(b, {
376
+ paddingX: {
377
+ mobile: 16,
378
+ tablet: 24,
379
+ desktop: 0
380
+ },
381
+ children: /* @__PURE__ */ e(b, {
382
+ paddingBottom: {
383
+ desktop: 0,
384
+ mobile: 48
385
+ },
386
+ paddingTop: 64,
387
+ children: S
378
388
  })
379
389
  })
380
- ]
381
- }) : Z({
382
- isInverse: !0,
383
- inlineFeedbackBody: p,
384
- imageFit: u,
390
+ }),
391
+ imageFit: f,
385
392
  imageUrl: m,
386
393
  dataAttributes: _object_spread({
387
394
  "component-name": "SuccessFeedback"
388
- }, f)
395
+ }, k)
389
396
  });
390
397
  };
391
- export { Xe as ErrorFeedbackScreen, V as FeedbackScreen, Ye as InfoFeedbackScreen, Ze as SuccessFeedback, Qe as SuccessFeedbackScreen };
398
+ export { Pe as ErrorFeedbackScreen, x as FeedbackScreen, Ue as InfoFeedbackScreen, Xe as SuccessFeedback, Ge as SuccessFeedbackScreen };
@@ -1,6 +1,6 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./fixed-footer-layout.css.ts.vanilla.css-mistica.js";
3
- var v = "p5j8j58", a = "p5j8j56 _1y2v1nf37", j = "p5j8j54", t = "p5j8j53 _1y2v1nfh5 _1y2v1nf36", e = {
3
+ var v = "p5j8j58", a = "p5j8j56 _1y2v1nf37", j = "p5j8j54", t = "p5j8j53 _1y2v1nfh5", e = {
4
4
  footerHeight: "var(--p5j8j50)",
5
5
  backgroundColor: "var(--p5j8j51)"
6
6
  }, p = "_1y2v1nfgh";
@@ -53,33 +53,34 @@ function _object_spread_props(target, source) {
53
53
  }
54
54
  import { jsxs as L, Fragment as O, jsx as c } from "react/jsx-runtime";
55
55
  import * as l from "react";
56
- import W from "classnames";
57
- import { debounce as $ } from "./utils/helpers.js";
58
- import { isRunningAcceptanceTest as k } from "./utils/platform.js";
56
+ import $ from "classnames";
57
+ import { debounce as k } from "./utils/helpers.js";
58
+ import { isRunningAcceptanceTest as W } from "./utils/platform.js";
59
59
  import { useScreenSize as z, useTheme as N, useElementDimensions as P, useIsWithinIFrame as j, useWindowHeight as B, useScreenHeight as _, useIsomorphicLayoutEffect as H } from "./hooks.js";
60
60
  import { getScrollableParentElement as V, addPassiveEventListener as v, removePassiveEventListener as h, hasScroll as q, getScrollDistanceToBottom as G } from "./utils/dom.js";
61
- import { container as J, vars as E, footer as K, withoutFooter as M, elevated as Q, fixedFooter as U } from "./fixed-footer-layout.css-mistica.js";
62
- import { applyCssVars as X, safeAreaInsetBottom as x } from "./utils/css.js";
63
- const Y = 2, Z = (e)=>e === document.documentElement ? window : e, C = (e)=>{
61
+ import { vars as J } from "./skins/skin-contract.css-mistica.js";
62
+ import { container as K, vars as E, footer as M, withoutFooter as Q, elevated as U, fixedFooter as X } from "./fixed-footer-layout.css-mistica.js";
63
+ import { applyCssVars as Y, safeAreaInsetBottom as x } from "./utils/css.js";
64
+ const Z = 2, C = (e)=>e === document.documentElement ? window : e, ee = (e)=>{
64
65
  const n = setTimeout(e, 0);
65
66
  return {
66
67
  cancel: ()=>clearTimeout(n)
67
68
  };
68
- }, ee = (param)=>{
69
- let { isFooterVisible: e = !0, footer: n, footerHeight: S = "auto", footerBgColor: T, containerBgColor: m, children: y, onChangeFooterHeight: o } = param;
70
- const [g, w] = l.useState(!1), d = l.useRef(null), { isTabletOrSmaller: F } = z(), { platformOverrides: u } = N(), { height: s, ref: I } = P(), b = j(), f = B(), A = _(), i = f - s > (b ? f : A) / Y;
69
+ }, te = (param)=>{
70
+ let { isFooterVisible: e = !0, footer: n, footerHeight: S = "auto", footerBgColor: T = J.colors.background, containerBgColor: m, children: y, onChangeFooterHeight: o } = param;
71
+ const [g, w] = l.useState(!1), d = l.useRef(null), { isTabletOrSmaller: F } = z(), { platformOverrides: u } = N(), { height: s, ref: b } = P(), I = j(), f = B(), A = _(), i = f - s > (I ? f : A) / Z;
71
72
  H(()=>{
72
73
  o == null || o(s);
73
74
  }, [
74
75
  o,
75
76
  s
76
77
  ]), l.useEffect(()=>{
77
- const a = V(d.current), R = ()=>k(u) || !i ? !1 : q(a) ? G(a) > 1 : !1, t = $(()=>{
78
+ const a = V(d.current), R = ()=>W(u) || !i ? !1 : q(a) ? G(a) > 1 : !1, t = k(()=>{
78
79
  w(R());
79
80
  }, 50, {
80
81
  leading: !0,
81
82
  maxWait: 200
82
- }), D = C(t), r = Z(a);
83
+ }), D = ee(t), r = C(a);
83
84
  return v(r, "resize", t), v(r, "scroll", t), ()=>{
84
85
  t.cancel(), h(r, "scroll", t), h(r, "resize", t), D.cancel();
85
86
  };
@@ -92,8 +93,8 @@ const Y = 2, Z = (e)=>e === document.documentElement ? window : e, C = (e)=>{
92
93
  children: [
93
94
  /* @__PURE__ */ c("div", {
94
95
  ref: d,
95
- className: J,
96
- style: X(_object_spread_props(_object_spread({}, m && {
96
+ className: K,
97
+ style: Y(_object_spread_props(_object_spread({}, m && {
97
98
  [E.backgroundColor]: m
98
99
  }), {
99
100
  [E.footerHeight]: p ? `calc(${x} + ${s}px)` : "0px"
@@ -101,10 +102,10 @@ const Y = 2, Z = (e)=>e === document.documentElement ? window : e, C = (e)=>{
101
102
  children: y
102
103
  }),
103
104
  /* @__PURE__ */ c("div", {
104
- className: W(K, {
105
- [M]: !e,
106
- [Q]: g,
107
- [U]: p
105
+ className: $(M, {
106
+ [Q]: !e,
107
+ [U]: g,
108
+ [X]: p
108
109
  }),
109
110
  style: {
110
111
  background: F ? T : void 0
@@ -112,7 +113,7 @@ const Y = 2, Z = (e)=>e === document.documentElement ? window : e, C = (e)=>{
112
113
  "data-testid": `fixed-footer${e ? "-visible" : "-hidden"}`,
113
114
  "data-position-fixed": "bottom",
114
115
  children: e && /* @__PURE__ */ c("aside", {
115
- ref: I,
116
+ ref: b,
116
117
  "data-component-name": "FixedFooter",
117
118
  style: {
118
119
  height: S,
@@ -123,5 +124,5 @@ const Y = 2, Z = (e)=>e === document.documentElement ? window : e, C = (e)=>{
123
124
  })
124
125
  ]
125
126
  });
126
- }, le = ee;
127
- export { le as default };
127
+ }, de = te;
128
+ export { de as default };