@telefonica/mistica 12.9.1 → 12.10.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 (274) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +3 -4
  3. package/dist/badge.css-mistica.js +3 -3
  4. package/dist/box.js +18 -24
  5. package/dist/boxed.css-mistica.js +12 -0
  6. package/dist/boxed.css.d.ts +1 -0
  7. package/dist/boxed.css.js.flow +3 -0
  8. package/dist/boxed.css.ts.vanilla.js +11 -0
  9. package/dist/boxed.js +24 -30
  10. package/dist/button-group.css-mistica.js +27 -0
  11. package/dist/button-group.css.d.ts +4 -0
  12. package/dist/button-group.css.js.flow +6 -0
  13. package/dist/button-group.css.ts.vanilla.js +11 -0
  14. package/dist/button-group.js +20 -45
  15. package/dist/button-layout.css-mistica.js +50 -0
  16. package/dist/button-layout.css.d.ts +11 -0
  17. package/dist/button-layout.css.js.flow +21 -0
  18. package/dist/button-layout.css.ts.vanilla.js +11 -0
  19. package/dist/button-layout.js +63 -107
  20. package/dist/button.css-mistica.js +80 -0
  21. package/dist/button.css.d.ts +20 -0
  22. package/dist/button.css.js.flow +30 -0
  23. package/dist/button.css.ts.vanilla.js +11 -0
  24. package/dist/button.d.ts +0 -1
  25. package/dist/button.js +128 -336
  26. package/dist/button.js.flow +0 -1
  27. package/dist/callout.css-mistica.js +21 -0
  28. package/dist/callout.css.d.ts +2 -0
  29. package/dist/callout.css.js.flow +4 -0
  30. package/dist/{avatar.css.ts.vanilla.js → callout.css.ts.vanilla.js} +0 -0
  31. package/dist/callout.js +24 -59
  32. package/dist/card.css-mistica.js +39 -0
  33. package/dist/card.css.d.ts +8 -0
  34. package/dist/card.css.js.flow +10 -0
  35. package/dist/card.css.ts.vanilla.js +11 -0
  36. package/dist/card.js +128 -200
  37. package/dist/carousel.js +208 -222
  38. package/dist/checkbox.css-mistica.js +34 -0
  39. package/dist/checkbox.css.d.ts +5 -0
  40. package/dist/checkbox.css.js.flow +7 -0
  41. package/dist/checkbox.css.ts.vanilla.js +11 -0
  42. package/dist/checkbox.js +37 -82
  43. package/dist/chip.css-mistica.js +33 -0
  44. package/dist/chip.css.d.ts +4 -0
  45. package/dist/chip.css.js.flow +6 -0
  46. package/dist/chip.css.ts.vanilla.js +11 -0
  47. package/dist/chip.js +22 -67
  48. package/dist/circle.css-mistica.js +13 -0
  49. package/dist/circle.css.d.ts +1 -0
  50. package/dist/circle.css.js.flow +3 -0
  51. package/dist/circle.css.ts.vanilla.js +11 -0
  52. package/dist/circle.js +11 -37
  53. package/dist/credit-card-number-field.css-mistica.js +30 -0
  54. package/dist/credit-card-number-field.css.d.ts +4 -0
  55. package/dist/credit-card-number-field.css.js.flow +6 -0
  56. package/dist/credit-card-number-field.css.ts.vanilla.js +11 -0
  57. package/dist/credit-card-number-field.js +44 -72
  58. package/dist/cvv-field.css-mistica.js +21 -0
  59. package/dist/cvv-field.css.d.ts +2 -0
  60. package/dist/cvv-field.css.js.flow +4 -0
  61. package/dist/cvv-field.css.ts.vanilla.js +11 -0
  62. package/dist/cvv-field.js +43 -57
  63. package/dist/date-time-picker.css-mistica.js +12 -0
  64. package/dist/date-time-picker.css.d.ts +1 -0
  65. package/dist/date-time-picker.css.js.flow +3 -0
  66. package/dist/date-time-picker.css.ts.vanilla.js +11 -0
  67. package/dist/date-time-picker.js +46 -225
  68. package/dist/dialog.css-mistica.js +48 -0
  69. package/dist/dialog.css.d.ts +10 -0
  70. package/dist/dialog.css.js.flow +12 -0
  71. package/dist/dialog.css.ts.vanilla.js +11 -0
  72. package/dist/dialog.js +136 -231
  73. package/dist/divider.css-mistica.js +15 -0
  74. package/dist/divider.css.d.ts +1 -0
  75. package/dist/divider.css.js.flow +3 -0
  76. package/dist/divider.css.ts.vanilla.js +11 -0
  77. package/dist/divider.js +5 -34
  78. package/dist/double-field.css-mistica.js +16 -0
  79. package/dist/double-field.css.d.ts +1 -0
  80. package/dist/double-field.css.js.flow +3 -0
  81. package/dist/double-field.css.ts.vanilla.js +11 -0
  82. package/dist/double-field.js +13 -45
  83. package/dist/empty-state-card.css-mistica.js +24 -0
  84. package/dist/empty-state-card.css.d.ts +3 -0
  85. package/dist/empty-state-card.css.js.flow +5 -0
  86. package/dist/empty-state-card.css.ts.vanilla.js +11 -0
  87. package/dist/empty-state-card.js +23 -57
  88. package/dist/empty-state.css-mistica.js +44 -0
  89. package/dist/empty-state.css.d.ts +10 -0
  90. package/dist/empty-state.css.js.flow +15 -0
  91. package/dist/empty-state.css.ts.vanilla.js +11 -0
  92. package/dist/empty-state.js +70 -134
  93. package/dist/feedback.js +61 -60
  94. package/dist/fixed-footer-layout.js +41 -42
  95. package/dist/grid-layout.css-mistica.js +26 -0
  96. package/dist/grid-layout.css.d.ts +6 -0
  97. package/dist/grid-layout.css.js.flow +14 -0
  98. package/dist/grid-layout.css.ts.vanilla.js +11 -0
  99. package/dist/grid-layout.js +73 -196
  100. package/dist/header.js +8 -7
  101. package/dist/image.css-mistica.js +21 -0
  102. package/dist/image.css.d.ts +3 -0
  103. package/dist/image.css.js.flow +5 -0
  104. package/dist/image.css.ts.vanilla.js +11 -0
  105. package/dist/image.js +42 -63
  106. package/dist/inline.css-mistica.js +25 -0
  107. package/dist/inline.css.d.ts +6 -0
  108. package/dist/inline.css.js.flow +8 -0
  109. package/dist/inline.css.ts.vanilla.js +11 -0
  110. package/dist/inline.js +27 -52
  111. package/dist/list.d.ts +5 -52
  112. package/dist/list.js +59 -53
  113. package/dist/list.js.flow +16 -6
  114. package/dist/maybe-dismissable.js +21 -20
  115. package/dist/media-queries.css.d.ts +2 -2
  116. package/dist/media-queries.css.js.flow +2 -2
  117. package/dist/navigation-bar.d.ts +1 -1
  118. package/dist/navigation-bar.js +167 -166
  119. package/dist/navigation-bar.js.flow +1 -1
  120. package/dist/package-version.js +1 -1
  121. package/dist/placeholder.js +7 -8
  122. package/dist/radio-button.js +76 -72
  123. package/dist/responsive-layout.css-mistica.js +29 -0
  124. package/dist/responsive-layout.css.d.ts +6 -0
  125. package/dist/responsive-layout.css.js.flow +11 -0
  126. package/dist/responsive-layout.css.ts.vanilla.js +11 -0
  127. package/dist/responsive-layout.d.ts +0 -1
  128. package/dist/responsive-layout.js +18 -101
  129. package/dist/responsive-layout.js.flow +0 -1
  130. package/dist/screen-size-context.d.ts +10 -3
  131. package/dist/screen-size-context.js.flow +12 -3
  132. package/dist/search-field.d.ts +1 -1
  133. package/dist/search-field.js.flow +1 -1
  134. package/dist/skins/skin-contract.css-mistica.js +86 -0
  135. package/dist/skins/skin-contract.css.d.ts +91 -0
  136. package/dist/snackbar.css-mistica.js +6 -6
  137. package/dist/sprinkles.css-mistica.js +595 -291
  138. package/dist/sprinkles.css.d.ts +71 -10
  139. package/dist/stack.css-mistica.js +25 -0
  140. package/dist/stack.css.d.ts +5 -0
  141. package/dist/stack.css.js.flow +7 -0
  142. package/dist/stack.css.ts.vanilla.js +11 -0
  143. package/dist/stack.js +11 -32
  144. package/dist/stepper.d.ts +1 -1
  145. package/dist/stepper.js.flow +1 -1
  146. package/dist/tag.css-mistica.js +1 -1
  147. package/dist/text-field-base.d.ts +3 -2
  148. package/dist/text-field-base.js.flow +3 -2
  149. package/dist/text-field.d.ts +1 -1
  150. package/dist/text-field.js.flow +1 -1
  151. package/dist/text.css-mistica.js +38 -0
  152. package/dist/text.css.d.ts +13 -0
  153. package/dist/text.css.js.flow +30 -0
  154. package/dist/text.css.ts.vanilla.js +11 -0
  155. package/dist/text.d.ts +1 -1
  156. package/dist/text.js +87 -164
  157. package/dist/text.js.flow +1 -1
  158. package/dist/theme-context-provider.js +52 -39
  159. package/dist/theme.d.ts +13 -13
  160. package/dist/theme.js.flow +13 -13
  161. package/dist/title.js +9 -10
  162. package/dist/touchable.css-mistica.js +24 -0
  163. package/dist/touchable.css.d.ts +3 -0
  164. package/dist/touchable.css.js.flow +5 -0
  165. package/dist/touchable.css.ts.vanilla.js +11 -0
  166. package/dist/touchable.d.ts +1 -0
  167. package/dist/touchable.js +58 -74
  168. package/dist/touchable.js.flow +1 -0
  169. package/dist/utils/color.d.ts +6 -0
  170. package/dist/utils/color.js +12 -4
  171. package/dist/utils/color.js.flow +6 -0
  172. package/dist/utils/utility-types.js.flow +3 -0
  173. package/dist/video.css-mistica.js +12 -0
  174. package/dist/video.css.d.ts +1 -0
  175. package/dist/video.css.js.flow +3 -0
  176. package/dist/video.d.ts +1 -1
  177. package/dist/video.js +17 -29
  178. package/dist/video.js.flow +5 -1
  179. package/dist-es/avatar.css-mistica.js +2 -3
  180. package/dist-es/badge.css-mistica.js +2 -2
  181. package/dist-es/box.js +22 -28
  182. package/dist-es/boxed.css-mistica.js +3 -0
  183. package/dist-es/boxed.css.ts.vanilla.js +2 -0
  184. package/dist-es/boxed.js +30 -36
  185. package/dist-es/button-group.css-mistica.js +4 -0
  186. package/dist-es/button-group.css.ts.vanilla.js +2 -0
  187. package/dist-es/button-group.js +24 -49
  188. package/dist-es/button-layout.css-mistica.js +12 -0
  189. package/dist-es/button-layout.css.ts.vanilla.js +2 -0
  190. package/dist-es/button-layout.js +77 -121
  191. package/dist-es/button.css-mistica.js +12 -0
  192. package/dist-es/button.css.ts.vanilla.js +2 -0
  193. package/dist-es/button.js +154 -359
  194. package/dist-es/callout.css-mistica.js +4 -0
  195. package/dist-es/{avatar.css.ts.vanilla.js → callout.css.ts.vanilla.js} +0 -0
  196. package/dist-es/callout.js +40 -75
  197. package/dist-es/card.css-mistica.js +4 -0
  198. package/dist-es/card.css.ts.vanilla.js +2 -0
  199. package/dist-es/card.js +148 -220
  200. package/dist-es/carousel.js +237 -251
  201. package/dist-es/checkbox.css-mistica.js +8 -0
  202. package/dist-es/checkbox.css.ts.vanilla.js +2 -0
  203. package/dist-es/checkbox.js +56 -101
  204. package/dist-es/chip.css-mistica.js +10 -0
  205. package/dist-es/chip.css.ts.vanilla.js +2 -0
  206. package/dist-es/chip.js +34 -79
  207. package/dist-es/circle.css-mistica.js +4 -0
  208. package/dist-es/circle.css.ts.vanilla.js +2 -0
  209. package/dist-es/circle.js +13 -39
  210. package/dist-es/credit-card-number-field.css-mistica.js +7 -0
  211. package/dist-es/credit-card-number-field.css.ts.vanilla.js +2 -0
  212. package/dist-es/credit-card-number-field.js +58 -86
  213. package/dist-es/cvv-field.css-mistica.js +4 -0
  214. package/dist-es/cvv-field.css.ts.vanilla.js +2 -0
  215. package/dist-es/cvv-field.js +63 -77
  216. package/dist-es/date-time-picker.css-mistica.js +3 -0
  217. package/dist-es/date-time-picker.css.ts.vanilla.js +2 -0
  218. package/dist-es/date-time-picker.js +63 -242
  219. package/dist-es/dialog.css-mistica.js +7 -0
  220. package/dist-es/dialog.css.ts.vanilla.js +2 -0
  221. package/dist-es/dialog.js +169 -264
  222. package/dist-es/divider.css-mistica.js +6 -0
  223. package/dist-es/divider.css.ts.vanilla.js +2 -0
  224. package/dist-es/divider.js +8 -32
  225. package/dist-es/double-field.css-mistica.js +7 -0
  226. package/dist-es/double-field.css.ts.vanilla.js +2 -0
  227. package/dist-es/double-field.js +21 -53
  228. package/dist-es/empty-state-card.css-mistica.js +4 -0
  229. package/dist-es/empty-state-card.css.ts.vanilla.js +2 -0
  230. package/dist-es/empty-state-card.js +36 -70
  231. package/dist-es/empty-state.css-mistica.js +9 -0
  232. package/dist-es/empty-state.css.ts.vanilla.js +2 -0
  233. package/dist-es/empty-state.js +77 -141
  234. package/dist-es/feedback.js +79 -78
  235. package/dist-es/fixed-footer-layout.js +50 -51
  236. package/dist-es/grid-layout.css-mistica.js +6 -0
  237. package/dist-es/grid-layout.css.ts.vanilla.js +2 -0
  238. package/dist-es/grid-layout.js +88 -211
  239. package/dist-es/header.js +22 -21
  240. package/dist-es/image.css-mistica.js +4 -0
  241. package/dist-es/image.css.ts.vanilla.js +2 -0
  242. package/dist-es/image.js +54 -75
  243. package/dist-es/inline.css-mistica.js +5 -0
  244. package/dist-es/inline.css.ts.vanilla.js +2 -0
  245. package/dist-es/inline.js +32 -57
  246. package/dist-es/list.js +73 -67
  247. package/dist-es/maybe-dismissable.js +29 -28
  248. package/dist-es/navigation-bar.js +231 -230
  249. package/dist-es/package-version.js +1 -1
  250. package/dist-es/placeholder.js +12 -13
  251. package/dist-es/radio-button.js +96 -92
  252. package/dist-es/responsive-layout.css-mistica.js +6 -0
  253. package/dist-es/responsive-layout.css.ts.vanilla.js +2 -0
  254. package/dist-es/responsive-layout.js +19 -55
  255. package/dist-es/skins/skin-contract.css-mistica.js +86 -0
  256. package/dist-es/snackbar.css-mistica.js +2 -2
  257. package/dist-es/sprinkles.css-mistica.js +595 -291
  258. package/dist-es/stack.css-mistica.js +5 -0
  259. package/dist-es/stack.css.ts.vanilla.js +2 -0
  260. package/dist-es/stack.js +15 -36
  261. package/dist-es/style.css +1 -1
  262. package/dist-es/tag.css-mistica.js +1 -1
  263. package/dist-es/text.css-mistica.js +9 -0
  264. package/dist-es/text.css.ts.vanilla.js +2 -0
  265. package/dist-es/text.js +83 -160
  266. package/dist-es/theme-context-provider.js +89 -76
  267. package/dist-es/title.js +16 -17
  268. package/dist-es/touchable.css-mistica.js +4 -0
  269. package/dist-es/touchable.css.ts.vanilla.js +2 -0
  270. package/dist-es/touchable.js +60 -84
  271. package/dist-es/utils/color.js +2 -2
  272. package/dist-es/video.css-mistica.js +3 -0
  273. package/dist-es/video.js +29 -41
  274. package/package.json +8 -5
@@ -127,9 +127,9 @@ function _unsupportedIterableToArray(o, minLen) {
127
127
  if (n === "Map" || n === "Set") return Array.from(n);
128
128
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
129
129
  }
130
- import * as v from "react";
130
+ import * as g from "react";
131
131
  import { createUseStyles as te } from "./jss.js";
132
- import { useTheme as k, useWindowHeight as ne, useScreenSize as A, useIsomorphicLayoutEffect as z } from "./hooks.js";
132
+ import { useTheme as f, useWindowHeight as ne, useScreenSize as A, useIsomorphicLayoutEffect as z } from "./hooks.js";
133
133
  import { useIsInverseVariant as W, ThemeVariant as E } from "./theme-variant-context.js";
134
134
  import ce from "./button-fixed-footer-layout.js";
135
135
  import L from "./overscroll-color-context.js";
@@ -140,14 +140,15 @@ import ae from "./icons/icon-error.js";
140
140
  import ie from "./icons/icon-info.js";
141
141
  import { isWebViewBridgeAvailable as se, requestVibration as de } from "@tef-novum/webview-bridge";
142
142
  import { isOldChrome as le, isRunningAcceptanceTest as me } from "./utils/platform.js";
143
- import { Text2 as ue, Text6 as pe, Text3 as be } from "./text.js";
143
+ import { Text2 as ue, Text6 as pe, Text3 as fe } from "./text.js";
144
144
  import C from "./box.js";
145
- import { Boxed as fe } from "./boxed.js";
146
- import B from "./responsive-layout.js";
147
- import y from "./stack.js";
145
+ import { Boxed as be } from "./boxed.js";
146
+ import F from "./responsive-layout.js";
147
+ import B from "./stack.js";
148
148
  import ke from "classnames";
149
149
  import he from "./button-group.js";
150
- import { jsx as r, jsxs as m, Fragment as ge } from "./_virtual/jsx-runtime.js";
150
+ import { vars as y } from "./skins/skin-contract.css-mistica.js";
151
+ import { jsx as r, jsxs as d, Fragment as ge } from "./_virtual/jsx-runtime.js";
151
152
  var P = function(e) {
152
153
  return !le(e) && !me(e);
153
154
  }, T = function(param) {
@@ -240,14 +241,14 @@ var P = function(e) {
240
241
  }
241
242
  };
242
243
  }), ve = function() {
243
- var ref = k(), e = ref.colors, t = "body {background:".concat(W() ? e.backgroundBrand : e.background, "}");
244
+ var ref = f(), e = ref.colors, t = "body {background:".concat(W() ? e.backgroundBrand : e.background, "}");
244
245
  return /* @__PURE__ */ r("style", {
245
246
  children: t
246
247
  });
247
248
  }, $ = function(e) {
248
249
  se() && de(e).catch(function() {});
249
250
  }, G = function(e) {
250
- v.useEffect(function() {
251
+ g.useEffect(function() {
251
252
  var o;
252
253
  return e === "success" && (o = setTimeout(function() {
253
254
  return $("success");
@@ -260,7 +261,7 @@ var P = function(e) {
260
261
  e
261
262
  ]);
262
263
  }, M = function() {
263
- var ref = _slicedToArray(v.useState(!1), 2), e = ref[0], o = ref[1];
264
+ var ref = _slicedToArray(g.useState(!1), 2), e = ref[0], o = ref[1];
264
265
  return z(function() {
265
266
  var t = window.requestAnimationFrame(function() {
266
267
  o(!0);
@@ -269,29 +270,29 @@ var P = function(e) {
269
270
  return window.cancelAnimationFrame(t);
270
271
  };
271
272
  }, []), e;
272
- }, U = function(param, c, a, i, p) {
273
+ }, U = function(param, c, i, s) {
273
274
  var e = param.icon, o = param.title, t = param.description, n = param.children;
274
- var d = t && Array.isArray(t) ? t.map(function(b, u) {
275
+ var l = t && Array.isArray(t) ? t.map(function(m, u) {
275
276
  return /* @__PURE__ */ r("p", {
276
- children: b
277
+ children: m
277
278
  }, u);
278
279
  }) : t;
279
- return /* @__PURE__ */ m(y, {
280
+ return /* @__PURE__ */ d(B, {
280
281
  space: 24,
281
282
  children: [
282
283
  e,
283
- /* @__PURE__ */ m(y, {
284
+ /* @__PURE__ */ d(B, {
284
285
  space: 16,
285
- className: ke(i.feedbackData, c && i.feedbackDataAppear, c && a && i.feedbackDataAppearActive),
286
+ className: ke(s.feedbackData, c && s.feedbackDataAppear, c && i && s.feedbackDataAppearActive),
286
287
  children: [
287
288
  /* @__PURE__ */ r(pe, {
288
289
  as: "h1",
289
290
  children: o
290
291
  }),
291
- d && /* @__PURE__ */ r(be, {
292
+ l && /* @__PURE__ */ r(fe, {
292
293
  regular: !0,
293
- color: p.textSecondary,
294
- children: d
294
+ color: y.colors.textSecondary,
295
+ children: l
295
296
  }),
296
297
  n
297
298
  ]
@@ -300,7 +301,7 @@ var P = function(e) {
300
301
  });
301
302
  }, J = function(e, o) {
302
303
  var t = T(o);
303
- return /* @__PURE__ */ m(y, {
304
+ return /* @__PURE__ */ d(B, {
304
305
  space: 24,
305
306
  children: [
306
307
  e,
@@ -309,11 +310,11 @@ var P = function(e) {
309
310
  });
310
311
  }, Q = function(param) {
311
312
  var e = param.isInverse, o = param.inlineFeedbackBody, t = param.classes, n = param.imageUrl, c = param.dataAttributes;
312
- return /* @__PURE__ */ r(fe, {
313
+ return /* @__PURE__ */ r(be, {
313
314
  className: t.desktopBoxed,
314
315
  isInverse: e,
315
316
  dataAttributes: c,
316
- children: /* @__PURE__ */ m("div", {
317
+ children: /* @__PURE__ */ d("div", {
317
318
  className: t.desktopContainer,
318
319
  children: [
319
320
  /* @__PURE__ */ r("div", {
@@ -330,48 +331,48 @@ var P = function(e) {
330
331
  })
331
332
  });
332
333
  }, N = function(param) {
333
- var e = param.title, o = param.description, t = param.children, n = param.primaryButton, c = param.secondaryButton, a = param.link, i = param.hapticFeedback, p = param.icon, tmp = param.animateText, d = tmp === void 0 ? !1 : tmp, b = param.unstable_inlineInDesktop, u = param.imageUrl, S = param.imageFit, I = param.dataAttributes;
334
- G(i);
335
- var l = W(), ref = k(), s = ref.colors, x = ref.platformOverrides, F = ref.isDarkMode, h = ref.skinName, g = ne(), ref1 = A(), D = ref1.isTabletOrSmaller, ref2 = _slicedToArray(v.useState((typeof self === "undefined" ? "undefined" : _typeof(self)) < "u"), 2), X = ref2[0], Y = ref2[1], ref3 = _slicedToArray(v.useState(0), 2), w = ref3[0], Z = ref3[1], ee = "".concat(g - w, "px"), V = T({
334
+ var e = param.title, o = param.description, t = param.children, n = param.primaryButton, c = param.secondaryButton, i = param.link, s = param.hapticFeedback, l = param.icon, tmp = param.animateText, m = tmp === void 0 ? !1 : tmp, u = param.unstable_inlineInDesktop, b = param.imageUrl, v = param.imageFit, S = param.dataAttributes;
335
+ G(s);
336
+ var a = W(), ref = f(), I = ref.platformOverrides, x = ref.isDarkMode, k = ref.skinName, h = ne(), ref1 = A(), D = ref1.isTabletOrSmaller, ref2 = _slicedToArray(g.useState((typeof self === "undefined" ? "undefined" : _typeof(self)) < "u"), 2), X = ref2[0], Y = ref2[1], ref3 = _slicedToArray(g.useState(0), 2), w = ref3[0], Z = ref3[1], ee = "".concat(h - w, "px"), V = T({
336
337
  primaryButton: n,
337
338
  secondaryButton: c,
338
- link: a
339
- }), f = K({
340
- isInverse: l,
339
+ link: i
340
+ }), p = K({
341
+ isInverse: a,
341
342
  contentHeight: X ? "100vh" : ee,
342
343
  footerHeight: w,
343
- animateText: d,
344
+ animateText: m,
344
345
  primaryButton: n,
345
- imageUrl: u,
346
- imageFit: S,
346
+ imageUrl: b,
347
+ imageFit: v,
347
348
  hasButtons: V
348
349
  }), oe = M();
349
350
  z(function() {
350
351
  Y(!1);
351
352
  }, []);
352
353
  var O = U({
353
- icon: p,
354
+ icon: l,
354
355
  title: e,
355
356
  description: o,
356
357
  children: t
357
- }, d && P(x), oe, f, s), H = J(O, {
358
+ }, m && P(I), oe, p), H = J(O, {
358
359
  primaryButton: n,
359
360
  secondaryButton: c,
360
- link: a
361
+ link: i
361
362
  });
362
- if (!D && b) return H;
363
+ if (!D && u) return H;
363
364
  var re = /* @__PURE__ */ r("div", {
364
- className: f.container,
365
- children: /* @__PURE__ */ r(B, {
365
+ className: p.container,
366
+ children: /* @__PURE__ */ r(F, {
366
367
  children: /* @__PURE__ */ r("div", {
367
- className: f.innerContainer,
368
+ className: p.innerContainer,
368
369
  children: O
369
370
  })
370
371
  })
371
372
  });
372
- return D ? /* @__PURE__ */ m(ge, {
373
+ return D ? /* @__PURE__ */ d(ge, {
373
374
  children: [
374
- l && /* @__PURE__ */ r(L, {}),
375
+ a && /* @__PURE__ */ r(L, {}),
375
376
  /* @__PURE__ */ r("div", {
376
377
  style: {
377
378
  position: "relative"
@@ -380,32 +381,32 @@ var P = function(e) {
380
381
  isFooterVisible: V,
381
382
  button: n,
382
383
  secondaryButton: c,
383
- link: a,
384
- footerBgColor: l && !F ? s.backgroundFeedbackBottom : void 0,
385
- containerBgColor: l && !F ? s.backgroundFeedbackBottom : void 0,
384
+ link: i,
385
+ footerBgColor: a && !x ? y.colors.backgroundFeedbackBottom : void 0,
386
+ containerBgColor: a && !x ? y.colors.backgroundFeedbackBottom : void 0,
386
387
  onChangeFooterHeight: Z,
387
388
  children: re
388
389
  })
389
390
  }),
390
- h === q && /* @__PURE__ */ r("div", {
391
- className: f.backgroundDiv
391
+ k === q && /* @__PURE__ */ r("div", {
392
+ className: p.backgroundDiv
392
393
  }),
393
- h !== q && /* @__PURE__ */ r(ve, {})
394
+ k !== q && /* @__PURE__ */ r(ve, {})
394
395
  ]
395
- }) : /* @__PURE__ */ r(B, {
396
+ }) : /* @__PURE__ */ r(F, {
396
397
  children: /* @__PURE__ */ r(C, {
397
398
  paddingTop: 64,
398
399
  children: Q({
399
- isInverse: l,
400
+ isInverse: a,
400
401
  inlineFeedbackBody: H,
401
- classes: f,
402
- imageUrl: u,
403
- dataAttributes: I
402
+ classes: p,
403
+ imageUrl: b,
404
+ dataAttributes: S
404
405
  })
405
406
  })
406
407
  });
407
- }, Le = function(e) {
408
- var ref = A(), o = ref.isTabletOrSmaller, ref1 = k(), t = ref1.skinName;
408
+ }, Re = function(e) {
409
+ var ref = A(), o = ref.isTabletOrSmaller, ref1 = f(), t = ref1.skinName;
409
410
  return /* @__PURE__ */ r(E, {
410
411
  isInverse: !e.unstable_inlineInDesktop || o,
411
412
  children: /* @__PURE__ */ r(N, _objectSpreadProps(_objectSpread({}, e), {
@@ -416,13 +417,13 @@ var P = function(e) {
416
417
  imageFit: e.imageFit
417
418
  }))
418
419
  });
419
- }, Re = function(_param) {
420
+ }, _e = function(_param) {
420
421
  var e = _param.children, o = _param.errorReference, t = _objectWithoutProperties(_param, [
421
422
  "children",
422
423
  "errorReference"
423
424
  ]);
424
- var ref = k(), n = ref.colors;
425
- return /* @__PURE__ */ m(N, _objectSpreadProps(_objectSpread({}, t), {
425
+ var ref = f(), n = ref.colors;
426
+ return /* @__PURE__ */ d(N, _objectSpreadProps(_objectSpread({}, t), {
426
427
  hapticFeedback: "error",
427
428
  icon: /* @__PURE__ */ r(ae, {}),
428
429
  animateText: !0,
@@ -435,55 +436,55 @@ var P = function(e) {
435
436
  })
436
437
  ]
437
438
  }));
438
- }, _e = function(e) {
439
+ }, je = function(e) {
439
440
  return /* @__PURE__ */ r(N, _objectSpreadProps(_objectSpread({}, e), {
440
441
  icon: /* @__PURE__ */ r(ie, {})
441
442
  }));
442
- }, je = function(param) {
443
- var e = param.title, o = param.description, t = param.children, n = param.primaryButton, c = param.secondaryButton, a = param.link, i = param.imageUrl, p = param.imageFit, d = param.dataAttributes;
443
+ }, Pe = function(param) {
444
+ var e = param.title, o = param.description, t = param.children, n = param.primaryButton, c = param.secondaryButton, i = param.link, s = param.imageUrl, l = param.imageFit, m = param.dataAttributes;
444
445
  G("success");
445
- var ref = A(), b = ref.isTabletOrSmaller, ref1 = k(), u = ref1.skinName, S = ref1.platformOverrides, I = ref1.colors, l = T({
446
+ var ref = A(), u = ref.isTabletOrSmaller, ref1 = f(), b = ref1.skinName, v = ref1.platformOverrides, S = T({
446
447
  primaryButton: n,
447
448
  secondaryButton: c,
448
- link: a
449
- }), s = K({
449
+ link: i
450
+ }), a = K({
450
451
  isInverse: !0,
451
452
  animateText: !0,
452
453
  primaryButton: n,
453
- imageUrl: i,
454
- imageFit: p,
455
- hasButtons: l
456
- }), x = M(), h = U({
457
- icon: u === R ? /* @__PURE__ */ r(j, {}) : /* @__PURE__ */ r(_, {}),
454
+ imageUrl: s,
455
+ imageFit: l,
456
+ hasButtons: S
457
+ }), I = M(), k = U({
458
+ icon: b === R ? /* @__PURE__ */ r(j, {}) : /* @__PURE__ */ r(_, {}),
458
459
  title: e,
459
460
  description: o,
460
461
  children: t
461
- }, P(S), x, s, I), g = J(h, {
462
+ }, P(v), I, a), h = J(k, {
462
463
  primaryButton: n,
463
464
  secondaryButton: c,
464
- link: a
465
+ link: i
465
466
  });
466
467
  return /* @__PURE__ */ r(E, {
467
468
  isInverse: !0,
468
- children: b ? /* @__PURE__ */ m(B, {
469
- className: s.background,
469
+ children: u ? /* @__PURE__ */ d(F, {
470
+ className: a.background,
470
471
  children: [
471
472
  /* @__PURE__ */ r(L, {}),
472
473
  /* @__PURE__ */ r(C, {
473
474
  paddingBottom: 32,
474
475
  children: /* @__PURE__ */ r("div", {
475
- className: s.innerContainer,
476
- children: g
476
+ className: a.innerContainer,
477
+ children: h
477
478
  })
478
479
  })
479
480
  ]
480
481
  }) : Q({
481
482
  isInverse: !0,
482
- inlineFeedbackBody: g,
483
- classes: s,
484
- imageUrl: i,
485
- dataAttributes: d
483
+ inlineFeedbackBody: h,
484
+ classes: a,
485
+ imageUrl: s,
486
+ dataAttributes: m
486
487
  })
487
488
  });
488
489
  };
489
- export { Re as ErrorFeedbackScreen, N as FeedbackScreen, _e as InfoFeedbackScreen, je as SuccessFeedback, Le as SuccessFeedbackScreen };
490
+ export { _e as ErrorFeedbackScreen, N as FeedbackScreen, je as InfoFeedbackScreen, Pe as SuccessFeedback, Re as SuccessFeedbackScreen };
@@ -59,101 +59,100 @@ function _unsupportedIterableToArray(o, minLen) {
59
59
  }
60
60
  import * as u from "react";
61
61
  import g from "classnames";
62
- import I from "lodash/debounce";
63
- import { createUseStyles as L } from "./jss.js";
64
- import { isRunningAcceptanceTest as B } from "./utils/platform.js";
65
- import { useScreenSize as N, useTheme as P, useElementDimensions as W, useWindowHeight as j, useScreenHeight as C, useIsomorphicLayoutEffect as _ } from "./hooks.js";
62
+ import z from "lodash/debounce";
63
+ import { createUseStyles as I } from "./jss.js";
64
+ import { isRunningAcceptanceTest as L } from "./utils/platform.js";
65
+ import { useScreenSize as B, useTheme as C, useElementDimensions as N, useWindowHeight as P, useScreenHeight as W, useIsomorphicLayoutEffect as j } from "./hooks.js";
66
66
  import { getScrollableParentElement as h, addPassiveEventListener as E, removePassiveEventListener as w, hasScroll as x, getScrollDistanceToBottom as q } from "./utils/dom.js";
67
- import { jsxs as F, Fragment as H, jsx as f } from "./_virtual/jsx-runtime.js";
68
- var U = 2, $ = function(e) {
69
- return e === document.documentElement ? window : e;
70
- }, G = function(e) {
71
- var t = setTimeout(e, 0);
67
+ import { jsxs as _, Fragment as F, jsx as f } from "./_virtual/jsx-runtime.js";
68
+ var H = 2, U = function(t) {
69
+ return t === document.documentElement ? window : t;
70
+ }, $ = function(t) {
71
+ var e = setTimeout(t, 0);
72
72
  return {
73
73
  cancel: function() {
74
- return clearTimeout(t);
74
+ return clearTimeout(e);
75
75
  }
76
76
  };
77
- }, J = L(function(e) {
77
+ }, G = I(function(t) {
78
78
  return _defineProperty({
79
- footer: {
79
+ footer: _defineProperty({
80
80
  width: "100%",
81
- backgroundColor: e.colors.background,
81
+ backgroundColor: t.colors.background,
82
82
  transition: "background 0.2s linear, box-shadow 0.2s linear"
83
- },
83
+ }, t.mq.tabletOrSmaller, {
84
+ position: function(param) {
85
+ var e = param.hasContentEnoughVSpace, n = param.isContentWithScroll;
86
+ return e || !n ? "fixed" : "initial";
87
+ },
88
+ left: 0,
89
+ bottom: 0,
90
+ zIndex: 1
91
+ }),
84
92
  elevated: {
85
- backgroundColor: e.colors.backgroundContainer
93
+ backgroundColor: t.colors.backgroundContainer
86
94
  },
87
95
  withoutFooter: {
88
96
  display: "none"
89
97
  },
90
98
  containerSmall: {
91
99
  paddingBottom: function(param) {
92
- var t = param.footerHeight;
93
- return t;
100
+ var e = param.footerHeight;
101
+ return e;
94
102
  },
95
103
  backgroundColor: function(param) {
96
- var t = param.containerBgColor;
97
- return t || e.colors.background;
104
+ var e = param.containerBgColor;
105
+ return e || t.colors.background;
98
106
  }
99
107
  }
100
- }, e.mq.tabletOrSmaller, {
108
+ }, t.mq.tabletOrSmaller, {
101
109
  containerSmall: {
102
110
  paddingBottom: function(param) {
103
- var t = param.footerHeight, n = param.isContentWithScroll, r = param.hasContentEnoughVSpace;
104
- return r || !n ? t : 0;
111
+ var e = param.footerHeight, n = param.isContentWithScroll, r = param.hasContentEnoughVSpace;
112
+ return r || !n ? e : 0;
105
113
  }
106
114
  },
107
- footer: {
108
- position: function(param) {
109
- var t = param.hasContentEnoughVSpace, n = param.isContentWithScroll;
110
- return t || !n ? "fixed" : "initial";
111
- },
112
- left: 0,
113
- bottom: 0,
114
- zIndex: 1
115
- },
116
115
  elevated: {
117
116
  boxShadow: "0 -2px 8px 0 rgba(0, 0, 0, 0.10)"
118
117
  }
119
118
  });
120
- }), ee = function(param) {
121
- var tmp = param.isFooterVisible, e = tmp === void 0 ? !0 : tmp, t = param.footer, tmp1 = param.footerHeight, n = tmp1 === void 0 ? "auto" : tmp1, r = param.footerBgColor, T = param.containerBgColor, y = param.children, s = param.onChangeFooterHeight;
122
- var ref = _slicedToArray(u.useState(!1), 2), k = ref[0], O = ref[1], c = u.useRef(null), ref1 = N(), p = ref1.isTabletOrSmaller, ref2 = P(), S = ref2.platformOverrides, ref3 = W(), a = ref3.height, R = ref3.ref, v = j(), b = C(), d = v - a > b / U, A = function() {
123
- return x(h(c.current));
124
- };
125
- _(function() {
119
+ }), tt = function(param) {
120
+ var tmp = param.isFooterVisible, t = tmp === void 0 ? !0 : tmp, e = param.footer, tmp1 = param.footerHeight, n = tmp1 === void 0 ? "auto" : tmp1, r = param.footerBgColor, T = param.containerBgColor, y = param.children, s = param.onChangeFooterHeight;
121
+ var ref = _slicedToArray(u.useState(!1), 2), k = ref[0], O = ref[1], c = u.useRef(null), ref1 = B(), p = ref1.isTabletOrSmaller, ref2 = C(), S = ref2.platformOverrides, ref3 = N(), a = ref3.height, R = ref3.ref, v = P(), b = W(), d = v - a > b / H;
122
+ j(function() {
126
123
  s == null || s(a);
127
124
  }, [
128
125
  s,
129
126
  a
130
127
  ]), u.useEffect(function() {
131
- var m = h(c.current), D = function() {
132
- return B(S) || !d ? !1 : x(m) ? q(m) > 1 : !1;
133
- }, o = I(function() {
134
- O(D());
128
+ var m = h(c.current), A = function() {
129
+ return L(S) || !d ? !1 : x(m) ? q(m) > 1 : !1;
130
+ }, o = z(function() {
131
+ O(A());
135
132
  }, 50, {
136
133
  leading: !0,
137
134
  maxWait: 200
138
- }), z = G(o), l = $(m);
135
+ }), D = $(o), l = U(m);
139
136
  return E(l, "resize", o), E(l, "scroll", o), function() {
140
- o.cancel(), w(l, "scroll", o), w(l, "resize", o), z.cancel();
137
+ o.cancel(), w(l, "scroll", o), w(l, "resize", o), D.cancel();
141
138
  };
142
139
  }, [
143
140
  d,
144
141
  S
145
142
  ]);
146
- var i = J({
143
+ var i = G({
147
144
  footerBgColor: r,
148
145
  containerBgColor: T,
149
146
  footerHeight: a,
150
147
  windowHeight: v,
151
148
  screenHeight: b,
152
- isContentWithScroll: A(),
149
+ isContentWithScroll: function() {
150
+ return x(h(c.current));
151
+ }(),
153
152
  hasContentEnoughVSpace: d
154
153
  });
155
154
  var _obj;
156
- return /* @__PURE__ */ F(H, {
155
+ return /* @__PURE__ */ _(F, {
157
156
  children: [
158
157
  /* @__PURE__ */ f("div", {
159
158
  ref: c,
@@ -162,21 +161,21 @@ var U = 2, $ = function(e) {
162
161
  }),
163
162
  /* @__PURE__ */ f("div", {
164
163
  ref: R,
165
- className: g(i.footer, (_obj = {}, _defineProperty(_obj, i.withoutFooter, !e), _defineProperty(_obj, i.elevated, k), _obj)),
164
+ className: g(i.footer, (_obj = {}, _defineProperty(_obj, i.withoutFooter, !t), _defineProperty(_obj, i.elevated, k), _obj)),
166
165
  style: {
167
166
  background: p ? r : void 0
168
167
  },
169
- "data-testid": "fixed-footer".concat(e ? "-visible" : "-hidden"),
168
+ "data-testid": "fixed-footer".concat(t ? "-visible" : "-hidden"),
170
169
  "data-position-fixed": "bottom",
171
- children: e && /* @__PURE__ */ f("aside", {
170
+ children: t && /* @__PURE__ */ f("aside", {
172
171
  style: {
173
172
  height: n,
174
173
  marginBottom: "env(safe-area-inset-bottom)"
175
174
  },
176
- children: t
175
+ children: e
177
176
  })
178
177
  })
179
178
  ]
180
179
  });
181
180
  };
182
- export { ee as default };
181
+ export { tt as default };
@@ -0,0 +1,6 @@
1
+ import "./grid-layout.css.ts.vanilla.js";
2
+ var r = "_379jdb1", v = "_379jdb3", d = {
3
+ colSpan: "var(--_379jdb2)",
4
+ verticalSpace: "var(--_379jdb0)"
5
+ };
6
+ export { r as grid, v as span, d as vars };
@@ -0,0 +1,2 @@
1
+ var a = "";
2
+ export { a as default };