@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
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./touchable.css.ts.vanilla.js";
3
- var y = "mhti6u1 _1y2v1nfbg", f = "mhti6u4", _ = "mhti6u1 _1y2v1nfbg _1y2v1nf7y _1y2v1nf8c _1y2v1nf8q _1y2v1nf94 _1y2v1nf7d _1y2v1nfb9 _1y2v1nf9i _1y2v1nf2d _1y2v1nf74 _1y2v1nfbi";
4
- export { y as base, f as notTouchable, _ as touchable };
3
+ var f = "mhti6u1 _1y2v1nf93", y = "mhti6u4", _ = "mhti6u1 _1y2v1nf93 _1y2v1nf5l _1y2v1nf5z _1y2v1nf6d _1y2v1nf6r _1y2v1nf50 _1y2v1nf8w _1y2v1nf75 _1y2v1nf2d _1y2v1nf4s _1y2v1nf95";
4
+ export { f as base, y as notTouchable, _ as touchable };
@@ -62,9 +62,9 @@ import { jsxs as W, jsx as l } from "./_virtual/jsx-runtime.js";
62
62
  var L = function(e) {
63
63
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
64
64
  t ? window.open(e, "_blank") : d ? window.open(e, "_top") : document.location.href = e;
65
- }, N = /*#__PURE__*/ c.forwardRef(function(e, t) {
65
+ }, T = /*#__PURE__*/ c.forwardRef(function(e, t) {
66
66
  var w, g;
67
- var ref = K(), d = ref.texts, T = ref.analytics, E = ref.platformOverrides, P = ref.Link, x = ref.useHrefDecorator, C = x(), f = c.useRef(!1);
67
+ var ref = K(), d = ref.texts, N = ref.analytics, E = ref.platformOverrides, P = ref.Link, x = ref.useHrefDecorator, C = x(), f = c.useRef(!1);
68
68
  var i = [];
69
69
  e.trackingEvent && (Array.isArray(e.trackingEvent) ? i = e.trackingEvent : i = [
70
70
  e.trackingEvent
@@ -81,14 +81,14 @@ var L = function(e) {
81
81
  "aria-selected": e["aria-selected"],
82
82
  "aria-live": e["aria-live"],
83
83
  tabIndex: e.tabIndex
84
- }, V(e.dataAttributes)), m = e.type ? e.type : "button", r = !!e.href && !!e.newTab, s = !r && !!e.href && !!e.loadOnTop, u = function(a) {
84
+ }, V(e.dataAttributes, "Touchable")), m = e.type ? e.type : "button", r = !!e.href && !!e.newTab, u = !r && !!e.href && !!e.loadOnTop, s = function(a) {
85
85
  e.onPress && e.onPress(a);
86
86
  }, h = function() {
87
87
  var a;
88
88
  return e.href ? C(e.href) : e.to && e.fullPageOnWebView ? typeof e.to == "string" ? e.to : (a = e.to.pathname) != null ? a : "" : "";
89
89
  }, y = function() {
90
90
  return Promise.all(i.map(function(a) {
91
- return T.logEvent(a);
91
+ return N.logEvent(a);
92
92
  }));
93
93
  }, k = function(a) {
94
94
  f.current || (f.current = !0, y().finally(function() {
@@ -96,15 +96,15 @@ var L = function(e) {
96
96
  }));
97
97
  }, R = function(a) {
98
98
  if (!i.length) {
99
- u(a);
99
+ s(a);
100
100
  return;
101
101
  }
102
102
  k(function() {
103
- return u(a);
103
+ return s(a);
104
104
  });
105
105
  }, D = function(a) {
106
106
  !i.length || (a.preventDefault(), k(function() {
107
- return L(h(), r, s);
107
+ return L(h(), r, u);
108
108
  }));
109
109
  }, v = function(a) {
110
110
  (a.keyCode === B || a.keyCode === S) && (a.preventDefault(), a.currentTarget.click());
@@ -117,7 +117,7 @@ var L = function(e) {
117
117
  href: e.disabled ? void 0 : h(),
118
118
  target: function() {
119
119
  if (r) return "_blank";
120
- if (s) return "_top";
120
+ if (u) return "_top";
121
121
  }(),
122
122
  rel: r ? "noopener noreferrer" : void 0,
123
123
  ref: t,
@@ -159,12 +159,12 @@ var L = function(e) {
159
159
  children: o
160
160
  }));
161
161
  }), X = /*#__PURE__*/ c.forwardRef(function(e, t) {
162
- return /* @__PURE__ */ l(N, _objectSpreadProps(_objectSpread({}, e), {
162
+ return /* @__PURE__ */ l(T, _objectSpreadProps(_objectSpread({}, e), {
163
163
  className: b(_, e.className),
164
164
  ref: t
165
165
  }));
166
166
  }), Y = /*#__PURE__*/ c.forwardRef(function(e, t) {
167
- return /* @__PURE__ */ l(N, _objectSpreadProps(_objectSpread({}, e), {
167
+ return /* @__PURE__ */ l(T, _objectSpreadProps(_objectSpread({}, e), {
168
168
  className: b(H, e.className),
169
169
  ref: t
170
170
  }));
@@ -54,49 +54,15 @@ var _typeof = function(obj) {
54
54
  "@swc/helpers - typeof";
55
55
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
56
56
  };
57
- import { isOldChrome as o, isRunningAcceptanceTest as l } from "./platform.js";
58
- import { jsxs as r, Fragment as s, jsx as a } from "../_virtual/jsx-runtime.js";
59
- var i = function(e) {
60
- return !o(e) && !l(e) && (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u";
61
- }, f = function(e) {
62
- return i(e) ? {
63
- "@keyframes shake": {
64
- "10%, 90%": {
65
- transform: "translate(3px, 0)"
66
- },
67
- "20%, 80%": {
68
- transform: "translate(6px, 0)"
69
- },
70
- "30%, 50%, 70%": {
71
- transform: "translate(0px, 0)"
72
- },
73
- "40%, 60%": {
74
- transform: "translate(8px, 0)"
75
- }
76
- },
77
- outerAnimation: {
78
- animation: "$shake 0.82s cubic-bezier(.36,.07,.19,.97) both",
79
- animationDelay: function(param) {
80
- var t = param.delay;
81
- return "".concat(t + 0.04, "s");
82
- }
83
- },
84
- innerAnimation: {
85
- animation: "$shake 0.82s cubic-bezier(.36,.07,.19,.97) both",
86
- animationDelay: function(param) {
87
- var t = param.delay;
88
- return "".concat(t, "s");
89
- }
90
- }
91
- } : {
92
- innerAnimation: {},
93
- outerAnimation: {}
94
- };
95
- }, d = function(e, t, n) {
96
- return i(n) ? {
57
+ import { isOldChrome as l, isRunningAcceptanceTest as o } from "./platform.js";
58
+ import { jsxs as n, Fragment as s, jsx as r } from "../_virtual/jsx-runtime.js";
59
+ var a = function(e) {
60
+ return !l(e) && !o(e) && (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u";
61
+ }, p = function(e, t, i) {
62
+ return a(i) ? {
97
63
  strokeDasharray: e.replace("-", ""),
98
64
  strokeDashoffset: e,
99
- children: /* @__PURE__ */ a("animate", {
65
+ children: /* @__PURE__ */ r("animate", {
100
66
  attributeName: "stroke-dashoffset",
101
67
  from: e,
102
68
  to: "0",
@@ -109,10 +75,10 @@ var i = function(e) {
109
75
  keySplines: "0.75 0 0.25 1"
110
76
  })
111
77
  } : null;
112
- }, u = function(e, t) {
113
- return i(t) ? {
78
+ }, f = function(e, t) {
79
+ return a(t) ? {
114
80
  opacity: 0,
115
- children: /* @__PURE__ */ a("animate", {
81
+ children: /* @__PURE__ */ r("animate", {
116
82
  attributeName: "opacity",
117
83
  from: "0",
118
84
  to: "1",
@@ -125,11 +91,11 @@ var i = function(e) {
125
91
  keySplines: "0.75 0 0.25 1"
126
92
  })
127
93
  } : null;
128
- }, y = function(e, t) {
129
- return i(t) ? {
130
- children: /* @__PURE__ */ r(s, {
94
+ }, u = function(e, t) {
95
+ return a(t) ? {
96
+ children: /* @__PURE__ */ n(s, {
131
97
  children: [
132
- /* @__PURE__ */ a("animate", {
98
+ /* @__PURE__ */ r("animate", {
133
99
  from: "2.5",
134
100
  to: "2",
135
101
  dur: "0.7s",
@@ -139,7 +105,7 @@ var i = function(e) {
139
105
  fill: "freeze",
140
106
  keySplines: "0.75 0 0.25 1"
141
107
  }),
142
- /* @__PURE__ */ a("animateTransform", {
108
+ /* @__PURE__ */ r("animateTransform", {
143
109
  attributeName: "transform",
144
110
  type: "translate",
145
111
  from: "-0.5 1",
@@ -154,12 +120,12 @@ var i = function(e) {
154
120
  ]
155
121
  })
156
122
  } : null;
157
- }, k = function(e, t) {
158
- return i(t) ? {
123
+ }, y = function(e, t) {
124
+ return a(t) ? {
159
125
  opacity: 0,
160
- children: /* @__PURE__ */ r(s, {
126
+ children: /* @__PURE__ */ n(s, {
161
127
  children: [
162
- /* @__PURE__ */ a("animate", {
128
+ /* @__PURE__ */ r("animate", {
163
129
  attributeName: "opacity",
164
130
  from: "0",
165
131
  to: "1",
@@ -170,7 +136,7 @@ var i = function(e) {
170
136
  calcMode: "spline",
171
137
  keySplines: "0.75 0 0.25 1"
172
138
  }),
173
- /* @__PURE__ */ a("animateTransform", {
139
+ /* @__PURE__ */ r("animateTransform", {
174
140
  attributeName: "transform",
175
141
  type: "scale",
176
142
  from: "0 0",
@@ -183,7 +149,7 @@ var i = function(e) {
183
149
  fill: "freeze",
184
150
  keySplines: "0.8 0 0 1"
185
151
  }),
186
- /* @__PURE__ */ a("animateTransform", {
152
+ /* @__PURE__ */ r("animateTransform", {
187
153
  attributeName: "transform",
188
154
  type: "rotate",
189
155
  from: "50 21 10",
@@ -196,7 +162,7 @@ var i = function(e) {
196
162
  fill: "freeze",
197
163
  keySplines: "0.8 0 0 1"
198
164
  }),
199
- /* @__PURE__ */ a("animateTransform", {
165
+ /* @__PURE__ */ r("animateTransform", {
200
166
  attributeName: "transform",
201
167
  type: "scale",
202
168
  from: "1.1 1.1",
@@ -213,22 +179,22 @@ var i = function(e) {
213
179
  } : null;
214
180
  }, m = function(param, t) {
215
181
  var e = param.children;
216
- return /* @__PURE__ */ r(s, {
182
+ return /* @__PURE__ */ n(s, {
217
183
  children: [
218
184
  e,
219
185
  t
220
186
  ]
221
187
  });
222
- }, h = function() {
188
+ }, k = function() {
223
189
  for(var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++){
224
190
  e[_key] = arguments[_key];
225
191
  }
226
- return e.reduce(function(t, n) {
227
- return _objectSpreadProps(_objectSpread({}, t, n || {}), {
228
- children: m(t, n ? n.children : null)
192
+ return e.reduce(function(t, i) {
193
+ return _objectSpreadProps(_objectSpread({}, t, i || {}), {
194
+ children: m(t, i ? i.children : null)
229
195
  });
230
196
  }, {
231
197
  children: null
232
198
  });
233
199
  };
234
- export { f as animateShakeStyles, d as getAnimateDrawLineProps, u as getAnimateFadeInProps, y as getAnimateHopInProps, k as getAnimateSweepInProps, h as mergeProperties };
200
+ export { p as getAnimateDrawLineProps, f as getAnimateFadeInProps, u as getAnimateHopInProps, y as getAnimateSweepInProps, k as mergeProperties };
@@ -0,0 +1,6 @@
1
+ import "../sprinkles.css.ts.vanilla.js";
2
+ import "./aspect-ratio-support.css.ts.vanilla.js";
3
+ var a = "yqswj62", n = "_1y2v1nf75 _1y2v1nf7l _1y2v1nf96 _1y2v1nf9k", t = {
4
+ aspectRatio: "var(--yqswj60)"
5
+ }, y = "_1y2v1nf94 _1y2v1nf8t _1y2v1nf8u _1y2v1nf4t";
6
+ export { a as container, n as containerWithWrapper, t as vars, y as wrapper };
@@ -0,0 +1,2 @@
1
+ var t = "";
2
+ export { t as default };
@@ -96,80 +96,56 @@ function _unsupportedIterableToArray(o, minLen) {
96
96
  if (n === "Map" || n === "Set") return Array.from(n);
97
97
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
98
98
  }
99
- import * as r from "react";
100
- import { useIsomorphicLayoutEffect as l } from "../hooks.js";
101
- import { createUseStyles as m } from "../jss.js";
99
+ import { assignInlineVars as l } from "@vanilla-extract/dynamic";
100
+ import f from "classnames";
101
+ import * as c from "react";
102
+ import { useIsomorphicLayoutEffect as w } from "../hooks.js";
103
+ import { container as R, containerWithWrapper as g, vars as N, wrapper as v } from "./aspect-ratio-support.css-mistica.js";
102
104
  import { jsx as u } from "../_virtual/jsx-runtime.js";
103
- var d = /*#__PURE__*/ r.createContext(!0), v = function(param) {
105
+ var d = /*#__PURE__*/ c.createContext(!0), W = function(param) {
104
106
  var t = param.children;
105
- var ref = _slicedToArray(r.useState(!0), 2), e = ref[0], s = ref[1];
106
- return l(function() {
107
+ var ref = _slicedToArray(c.useState(!0), 2), n = ref[0], s = ref[1];
108
+ return w(function() {
107
109
  try {
108
110
  CSS.supports("aspect-ratio", "1 / 1") || s(!1);
109
111
  } catch (e) {
110
112
  s(!1);
111
113
  }
112
114
  }, []), /* @__PURE__ */ u(d.Provider, {
113
- value: e,
115
+ value: n,
114
116
  children: t
115
117
  });
116
- }, f = function() {
117
- return r.useContext(d);
118
- }, w = m(function() {
119
- return {
120
- container: {
121
- "@supports (aspect-ratio: 1 / 1)": {
122
- aspectRatio: function(param) {
123
- var t = param.aspectRatio;
124
- return t != null ? t : "unset";
125
- }
126
- },
127
- "$wrapper &": {
128
- position: function(param) {
129
- var t = param.aspectRatio;
130
- return t ? "absolute" : "static";
131
- },
132
- width: "100%",
133
- height: "100%",
134
- top: 0,
135
- left: 0
136
- }
137
- },
138
- wrapper: {
139
- overflow: "hidden",
140
- maxWidth: "100%",
141
- maxHeight: "100%",
142
- position: "relative",
143
- paddingTop: function(param) {
144
- var t = param.aspectRatio, e = param.width;
145
- return t ? e && typeof e == "string" && e.endsWith("%") ? "".concat(Number(e.replace("%", "")) / t, "%") : "".concat(100 / t, "%") : 0;
146
- }
147
- }
148
- };
149
- }), b = function(t) {
118
+ }, y = function() {
119
+ return c.useContext(d);
120
+ }, E = function(t) {
150
121
  var h;
151
- var e = f(), s = typeof t.width != "number" && typeof t.height != "number" && t.aspectRatio !== 0, o = w({
152
- aspectRatio: s ? t.aspectRatio : void 0,
153
- width: t.width
154
- });
122
+ var n = y(), s = typeof t.width != "number" && typeof t.height != "number" && t.aspectRatio !== 0, e = s ? t.aspectRatio : void 0;
155
123
  var i = t.width, a = t.height;
156
124
  t.width !== void 0 && t.height !== void 0 ? (i = t.width, a = t.height) : typeof t.width == "number" ? a = t.aspectRatio !== 0 ? t.width / t.aspectRatio : void 0 : typeof t.height == "number" ? i = t.aspectRatio !== 0 ? t.height * t.aspectRatio : void 0 : i = t.width || "100%";
157
- var c = s && !e, n = /*#__PURE__*/ r.createElement((h = t.as) != null ? h : "div", {
158
- className: t.className ? "".concat(t.className, " ").concat(o.container) : o.container,
159
- style: _objectSpread({}, c ? _objectSpreadProps(_objectSpread({}, t.style), {
125
+ var o = s && !n, r = /*#__PURE__*/ c.createElement((h = t.as) != null ? h : "div", {
126
+ className: f(t.className, R, _defineProperty({}, g, o)),
127
+ style: _objectSpread({}, o ? _objectSpreadProps(_objectSpread({
128
+ position: e ? "absolute" : "static"
129
+ }, t.style), {
160
130
  width: "100%"
161
131
  }) : _objectSpreadProps(_objectSpread({}, t.style), {
162
132
  width: isNaN(Number(i)) ? i : Number(i),
163
133
  height: isNaN(Number(a)) ? a : Number(a)
164
- }))
134
+ }), l(_defineProperty({}, N.aspectRatio, e ? String(e) : "unset")))
165
135
  }, t.children);
166
- return c ? /* @__PURE__ */ u("div", {
167
- style: {
168
- width: i,
169
- height: a
170
- },
171
- className: o.wrapper,
172
- children: n
173
- }) : n;
136
+ if (o) {
137
+ var m = function() {
138
+ return e ? t.width && typeof t.width == "string" && t.width.endsWith("%") ? "".concat(Number(t.width.replace("%", "")) / e, "%") : "".concat(100 / e, "%") : 0;
139
+ }();
140
+ return /* @__PURE__ */ u("div", {
141
+ style: {
142
+ width: i,
143
+ height: a,
144
+ paddingTop: m
145
+ },
146
+ className: v,
147
+ children: r
148
+ });
149
+ } else return r;
174
150
  };
175
- export { b as AspectRatioElement, v as AspectRatioSupportProvider, f as useSupportsAspectRatio };
151
+ export { E as AspectRatioElement, W as AspectRatioSupportProvider, y as useSupportsAspectRatio };
@@ -83,11 +83,13 @@ var p = function(e, n, t) {
83
83
  } : !1);
84
84
  }, f = function(e, n, t) {
85
85
  return e.removeEventListener(n, t, !1);
86
- }, m = function(e) {
87
- var n = {};
88
- return e && Object.keys(e).forEach(function(t) {
89
- n["data-" + t] = e[t];
90
- }), n;
86
+ }, m = function(e, n) {
87
+ var t = n ? {
88
+ "data-component-name": n
89
+ } : {};
90
+ return e && Object.keys(e).forEach(function(r) {
91
+ t["data-" + r] = e[r];
92
+ }), t;
91
93
  }, c = function(e, n) {
92
94
  var t = "overflow".concat(n), r = window.getComputedStyle(e)[t];
93
95
  return [
@@ -1,3 +1,3 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
- var y = "_1y2v1nf7d _1y2v1nf9i _1y2v1nf9y _1y2v1nf4q _1y2v1nfb6 _1y2v1nfb7 _1y2v1nfd3";
3
- export { y as video };
2
+ var f = "_1y2v1nf50 _1y2v1nf75 _1y2v1nf7l _1y2v1nf4s _1y2v1nf8t _1y2v1nf8u _1y2v1nfaq";
3
+ export { f as video };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "12.11.0",
3
+ "version": "12.12.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -107,6 +107,7 @@
107
107
  "cross-env": "^7.0.3",
108
108
  "detect-port": "^1.3.0",
109
109
  "dpdm": "^3.8.0",
110
+ "es6-promise-pool": "^2.5.0",
110
111
  "eslint": "^8.11.0",
111
112
  "flow-bin": "^0.152.0",
112
113
  "flow-typed": "^3.7.0",