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