@telefonica/mistica 14.41.0 → 14.42.1

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