@telefonica/mistica 12.11.1 → 12.13.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 (337) 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 +12 -12
  14. package/dist/button-layout.js +1 -1
  15. package/dist/button.css-mistica.js +26 -26
  16. package/dist/button.js +127 -77
  17. package/dist/callout.css-mistica.js +2 -2
  18. package/dist/callout.d.ts +2 -1
  19. package/dist/callout.js +68 -16
  20. package/dist/callout.js.flow +2 -1
  21. package/dist/card.css-mistica.js +5 -5
  22. package/dist/card.js +47 -41
  23. package/dist/carousel.css-mistica.js +23 -25
  24. package/dist/carousel.css.d.ts +1 -0
  25. package/dist/carousel.css.js.flow +4 -0
  26. package/dist/carousel.d.ts +7 -1
  27. package/dist/carousel.js +237 -209
  28. package/dist/carousel.js.flow +9 -1
  29. package/dist/checkbox.css-mistica.js +6 -6
  30. package/dist/checkbox.js +1 -1
  31. package/dist/chip.css-mistica.js +2 -2
  32. package/dist/chip.d.ts +7 -11
  33. package/dist/chip.js +65 -22
  34. package/dist/chip.js.flow +11 -6
  35. package/dist/circle.css-mistica.js +1 -1
  36. package/dist/credit-card-number-field.css-mistica.js +3 -3
  37. package/dist/cvv-field.css-mistica.js +1 -1
  38. package/dist/date-time-picker.js +2 -2
  39. package/dist/desktop-container-type-context.js +14 -4
  40. package/dist/dialog.css-mistica.js +6 -6
  41. package/dist/dialog.d.ts +2 -10
  42. package/dist/dialog.js +1 -0
  43. package/dist/dialog.js.flow +6 -4
  44. package/dist/double-field.css-mistica.js +5 -4
  45. package/dist/empty-state-card.css-mistica.js +1 -1
  46. package/dist/empty-state.css-mistica.js +2 -2
  47. package/dist/empty-state.js +5 -5
  48. package/dist/fade-in.d.ts +2 -0
  49. package/dist/fade-in.js +59 -6
  50. package/dist/fade-in.js.flow +2 -0
  51. package/dist/feedback.css-mistica.js +1 -1
  52. package/dist/feedback.js +130 -115
  53. package/dist/fixed-footer-layout.css-mistica.js +36 -0
  54. package/dist/fixed-footer-layout.css.d.ts +9 -0
  55. package/dist/fixed-footer-layout.css.js.flow +17 -0
  56. package/dist/fixed-footer-layout.css.ts.vanilla.js +11 -0
  57. package/dist/fixed-footer-layout.js +35 -84
  58. package/dist/header.js +99 -129
  59. package/dist/highlighted-card.css-mistica.js +5 -5
  60. package/dist/highlighted-card.d.ts +1 -1
  61. package/dist/highlighted-card.js +20 -15
  62. package/dist/highlighted-card.js.flow +1 -1
  63. package/dist/icon-button.css-mistica.js +13 -0
  64. package/dist/icon-button.css.d.ts +1 -0
  65. package/dist/icon-button.css.js.flow +3 -0
  66. package/dist/icon-button.css.ts.vanilla.js +11 -0
  67. package/dist/icon-button.d.ts +2 -1
  68. package/dist/icon-button.js +51 -28
  69. package/dist/icon-button.js.flow +2 -1
  70. package/dist/icons/icon-error.css-mistica.js +20 -0
  71. package/dist/icons/icon-error.css.d.ts +2 -0
  72. package/dist/icons/icon-error.css.js.flow +4 -0
  73. package/dist/icons/icon-error.css.ts.vanilla.js +11 -0
  74. package/dist/icons/icon-error.js +22 -33
  75. package/dist/icons/icon-info.js +16 -28
  76. package/dist/icons/icon-success-vivo.js +10 -20
  77. package/dist/icons/icon-success.js +28 -44
  78. package/dist/image.css-mistica.js +3 -3
  79. package/dist/index.d.ts +2 -0
  80. package/dist/index.js +8 -0
  81. package/dist/index.js.flow +2 -0
  82. package/dist/list.css-mistica.js +7 -7
  83. package/dist/list.js +112 -71
  84. package/dist/loading-bar.css-mistica.js +6 -6
  85. package/dist/loading-bar.d.ts +2 -0
  86. package/dist/loading-bar.js +60 -6
  87. package/dist/loading-bar.js.flow +5 -1
  88. package/dist/maybe-dismissable.css-mistica.js +24 -0
  89. package/dist/maybe-dismissable.css.d.ts +3 -0
  90. package/dist/maybe-dismissable.css.js.flow +5 -0
  91. package/dist/maybe-dismissable.css.ts.vanilla.js +11 -0
  92. package/dist/maybe-dismissable.js +16 -51
  93. package/dist/media-queries.css-mistica.js +37 -5
  94. package/dist/menu.css-mistica.js +34 -0
  95. package/dist/menu.css.d.ts +11 -0
  96. package/dist/menu.css.js.flow +19 -0
  97. package/dist/menu.css.ts.vanilla.js +11 -0
  98. package/dist/menu.d.ts +2 -0
  99. package/dist/menu.js +53 -99
  100. package/dist/menu.js.flow +2 -0
  101. package/dist/navigation-bar.css-mistica.js +79 -0
  102. package/dist/navigation-bar.css.d.ts +17 -0
  103. package/dist/navigation-bar.css.js.flow +26 -0
  104. package/dist/navigation-bar.css.ts.vanilla.js +11 -0
  105. package/dist/navigation-bar.js +206 -334
  106. package/dist/navigation-breadcrumbs.css-mistica.js +27 -0
  107. package/dist/navigation-breadcrumbs.css.d.ts +5 -0
  108. package/dist/navigation-breadcrumbs.css.js.flow +7 -0
  109. package/dist/navigation-breadcrumbs.css.ts.vanilla.js +11 -0
  110. package/dist/navigation-breadcrumbs.js +20 -38
  111. package/dist/overlay.d.ts +2 -0
  112. package/dist/overlay.js +37 -11
  113. package/dist/overlay.js.flow +2 -0
  114. package/dist/package-version.js +1 -1
  115. package/dist/password-field.css-mistica.js +13 -0
  116. package/dist/password-field.css.d.ts +1 -0
  117. package/dist/password-field.css.js.flow +3 -0
  118. package/dist/password-field.css.ts.vanilla.js +11 -0
  119. package/dist/password-field.js +39 -55
  120. package/dist/popover.css-mistica.js +51 -0
  121. package/dist/popover.css.d.ts +12 -0
  122. package/dist/popover.css.js.flow +14 -0
  123. package/dist/popover.css.ts.vanilla.js +11 -0
  124. package/dist/popover.d.ts +2 -1
  125. package/dist/popover.js +97 -118
  126. package/dist/popover.js.flow +2 -1
  127. package/dist/progress-bar.css-mistica.js +3 -3
  128. package/dist/progress-bar.d.ts +2 -0
  129. package/dist/progress-bar.js +60 -7
  130. package/dist/progress-bar.js.flow +2 -0
  131. package/dist/radio-button.css-mistica.js +39 -0
  132. package/dist/radio-button.css.d.ts +6 -0
  133. package/dist/radio-button.css.js.flow +8 -0
  134. package/dist/radio-button.css.ts.vanilla.js +11 -0
  135. package/dist/radio-button.d.ts +1 -0
  136. package/dist/radio-button.js +81 -125
  137. package/dist/radio-button.js.flow +1 -0
  138. package/dist/responsive-layout.css-mistica.js +7 -4
  139. package/dist/responsive-layout.css.d.ts +1 -0
  140. package/dist/responsive-layout.css.js.flow +1 -0
  141. package/dist/responsive-layout.d.ts +2 -0
  142. package/dist/responsive-layout.js +19 -11
  143. package/dist/responsive-layout.js.flow +2 -0
  144. package/dist/screen-reader-only.css-mistica.js +2 -2
  145. package/dist/select.css-mistica.js +60 -0
  146. package/dist/select.css.d.ts +16 -0
  147. package/dist/select.css.js.flow +30 -0
  148. package/dist/select.css.ts.vanilla.js +11 -0
  149. package/dist/select.js +150 -272
  150. package/dist/skeleton-base.js +13 -32
  151. package/dist/skeletons.css-mistica.js +1 -1
  152. package/dist/skeletons.js +63 -42
  153. package/dist/skins/skin-contract.css.js.flow +1 -0
  154. package/dist/snackbar.css-mistica.js +4 -4
  155. package/dist/snackbar.d.ts +2 -0
  156. package/dist/snackbar.js +70 -23
  157. package/dist/snackbar.js.flow +2 -0
  158. package/dist/spinner.css-mistica.js +2 -2
  159. package/dist/spinner.js +14 -11
  160. package/dist/sprinkles.css-mistica.js +217 -479
  161. package/dist/sprinkles.css.d.ts +0 -25
  162. package/dist/stepper.css-mistica.js +7 -7
  163. package/dist/stepper.d.ts +2 -0
  164. package/dist/stepper.js +52 -11
  165. package/dist/stepper.js.flow +2 -0
  166. package/dist/switch-component.css-mistica.js +54 -0
  167. package/dist/switch-component.css.d.ts +14 -0
  168. package/dist/switch-component.css.js.flow +43 -0
  169. package/dist/switch-component.css.ts.vanilla.js +11 -0
  170. package/dist/switch-component.js +35 -96
  171. package/dist/tabs.css-mistica.js +6 -6
  172. package/dist/tabs.js +16 -15
  173. package/dist/tag.css-mistica.js +2 -2
  174. package/dist/tag.js +5 -5
  175. package/dist/text-field-base.css-mistica.js +63 -0
  176. package/dist/text-field-base.css.d.ts +17 -0
  177. package/dist/text-field-base.css.js.flow +19 -0
  178. package/dist/text-field-base.css.ts.vanilla.js +11 -0
  179. package/dist/text-field-base.js +120 -314
  180. package/dist/text-field-components.css-mistica.js +69 -0
  181. package/dist/text-field-components.css.d.ts +18 -0
  182. package/dist/text-field-components.css.js.flow +20 -0
  183. package/dist/text-field-components.css.ts.vanilla.js +11 -0
  184. package/dist/text-field-components.d.ts +0 -4
  185. package/dist/text-field-components.js +46 -159
  186. package/dist/text-field-components.js.flow +0 -4
  187. package/dist/text-link.css-mistica.js +3 -3
  188. package/dist/text.js +159 -92
  189. package/dist/theme-context-provider.js +1 -1
  190. package/dist/title.js +44 -12
  191. package/dist/tooltip.css-mistica.js +7 -7
  192. package/dist/tooltip.d.ts +2 -0
  193. package/dist/tooltip.js +62 -36
  194. package/dist/tooltip.js.flow +2 -0
  195. package/dist/touchable.css-mistica.js +3 -3
  196. package/dist/touchable.js +10 -10
  197. package/dist/utils/animation.d.ts +0 -6
  198. package/dist/utils/animation.js +18 -55
  199. package/dist/utils/animation.js.flow +0 -8
  200. package/dist/utils/aspect-ratio-support.css-mistica.js +29 -0
  201. package/dist/utils/aspect-ratio-support.css.d.ts +6 -0
  202. package/dist/utils/aspect-ratio-support.css.js.flow +11 -0
  203. package/dist/utils/aspect-ratio-support.css.ts.vanilla.js +11 -0
  204. package/dist/utils/aspect-ratio-support.js +37 -56
  205. package/dist/utils/color.d.ts +1 -1
  206. package/dist/utils/color.js.flow +1 -1
  207. package/dist/utils/dom.d.ts +1 -1
  208. package/dist/utils/dom.js +7 -5
  209. package/dist/utils/dom.js.flow +2 -1
  210. package/dist/video.css-mistica.js +2 -2
  211. package/dist-es/avatar.css-mistica.js +2 -2
  212. package/dist-es/avatar.js +77 -22
  213. package/dist-es/badge.css-mistica.js +2 -2
  214. package/dist-es/badge.js +56 -15
  215. package/dist-es/boxed.js +5 -5
  216. package/dist-es/button-group.css-mistica.js +1 -1
  217. package/dist-es/button-group.js +10 -10
  218. package/dist-es/button-layout.css-mistica.js +7 -7
  219. package/dist-es/button-layout.js +4 -4
  220. package/dist-es/button.css-mistica.js +9 -9
  221. package/dist-es/button.js +152 -102
  222. package/dist-es/callout.css-mistica.js +2 -2
  223. package/dist-es/callout.js +79 -27
  224. package/dist-es/card.css-mistica.js +2 -2
  225. package/dist-es/card.js +78 -72
  226. package/dist-es/carousel.css-mistica.js +8 -7
  227. package/dist-es/carousel.js +286 -258
  228. package/dist-es/checkbox.css-mistica.js +5 -5
  229. package/dist-es/checkbox.js +1 -1
  230. package/dist-es/chip.css-mistica.js +2 -2
  231. package/dist-es/chip.js +79 -36
  232. package/dist-es/circle.css-mistica.js +1 -1
  233. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  234. package/dist-es/cvv-field.css-mistica.js +1 -1
  235. package/dist-es/date-time-picker.js +1 -1
  236. package/dist-es/desktop-container-type-context.js +4 -2
  237. package/dist-es/dialog.css-mistica.js +5 -5
  238. package/dist-es/dialog.js +1 -0
  239. package/dist-es/double-field.css-mistica.js +5 -4
  240. package/dist-es/empty-state-card.css-mistica.js +1 -1
  241. package/dist-es/empty-state.css-mistica.js +2 -2
  242. package/dist-es/empty-state.js +18 -18
  243. package/dist-es/fade-in.js +60 -7
  244. package/dist-es/feedback.css-mistica.js +1 -1
  245. package/dist-es/feedback.js +170 -155
  246. package/dist-es/fixed-footer-layout.css-mistica.js +7 -0
  247. package/dist-es/fixed-footer-layout.css.ts.vanilla.js +2 -0
  248. package/dist-es/fixed-footer-layout.js +47 -96
  249. package/dist-es/header.js +116 -146
  250. package/dist-es/highlighted-card.css-mistica.js +5 -5
  251. package/dist-es/highlighted-card.js +44 -39
  252. package/dist-es/icon-button.css-mistica.js +4 -0
  253. package/dist-es/icon-button.css.ts.vanilla.js +2 -0
  254. package/dist-es/icon-button.js +41 -26
  255. package/dist-es/icons/icon-error.css-mistica.js +3 -0
  256. package/dist-es/icons/icon-error.css.ts.vanilla.js +2 -0
  257. package/dist-es/icons/icon-error.js +46 -57
  258. package/dist-es/icons/icon-info.js +28 -40
  259. package/dist-es/icons/icon-success-vivo.js +18 -28
  260. package/dist-es/icons/icon-success.js +45 -56
  261. package/dist-es/image.css-mistica.js +2 -2
  262. package/dist-es/index.js +1738 -1736
  263. package/dist-es/list.css-mistica.js +2 -2
  264. package/dist-es/list.js +126 -85
  265. package/dist-es/loading-bar.css-mistica.js +2 -2
  266. package/dist-es/loading-bar.js +73 -19
  267. package/dist-es/maybe-dismissable.css-mistica.js +4 -0
  268. package/dist-es/maybe-dismissable.css.ts.vanilla.js +2 -0
  269. package/dist-es/maybe-dismissable.js +24 -59
  270. package/dist-es/media-queries.css-mistica.js +3 -3
  271. package/dist-es/menu.css-mistica.js +11 -0
  272. package/dist-es/menu.css.ts.vanilla.js +2 -0
  273. package/dist-es/menu.js +61 -107
  274. package/dist-es/navigation-bar.css-mistica.js +17 -0
  275. package/dist-es/navigation-bar.css.ts.vanilla.js +2 -0
  276. package/dist-es/navigation-bar.js +253 -381
  277. package/dist-es/navigation-breadcrumbs.css-mistica.js +4 -0
  278. package/dist-es/navigation-breadcrumbs.css.ts.vanilla.js +2 -0
  279. package/dist-es/navigation-breadcrumbs.js +34 -52
  280. package/dist-es/overlay.js +41 -15
  281. package/dist-es/package-version.js +1 -1
  282. package/dist-es/password-field.css-mistica.js +4 -0
  283. package/dist-es/password-field.css.ts.vanilla.js +2 -0
  284. package/dist-es/password-field.js +45 -61
  285. package/dist-es/popover.css-mistica.js +4 -0
  286. package/dist-es/popover.css.ts.vanilla.js +2 -0
  287. package/dist-es/popover.js +121 -141
  288. package/dist-es/progress-bar.css-mistica.js +2 -2
  289. package/dist-es/progress-bar.js +68 -15
  290. package/dist-es/radio-button.css-mistica.js +10 -0
  291. package/dist-es/radio-button.css.ts.vanilla.js +2 -0
  292. package/dist-es/radio-button.js +99 -143
  293. package/dist-es/responsive-layout.css-mistica.js +2 -2
  294. package/dist-es/responsive-layout.js +23 -15
  295. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  296. package/dist-es/select.css-mistica.js +22 -0
  297. package/dist-es/select.css.ts.vanilla.js +2 -0
  298. package/dist-es/select.js +177 -299
  299. package/dist-es/skeleton-base.js +17 -36
  300. package/dist-es/skeletons.css-mistica.js +1 -1
  301. package/dist-es/skeletons.js +78 -57
  302. package/dist-es/snackbar.css-mistica.js +2 -2
  303. package/dist-es/snackbar.js +89 -42
  304. package/dist-es/spinner.css-mistica.js +2 -2
  305. package/dist-es/spinner.js +14 -11
  306. package/dist-es/sprinkles.css-mistica.js +217 -479
  307. package/dist-es/stepper.css-mistica.js +2 -2
  308. package/dist-es/stepper.js +68 -27
  309. package/dist-es/style.css +1 -1
  310. package/dist-es/switch-component.css-mistica.js +22 -0
  311. package/dist-es/switch-component.css.ts.vanilla.js +2 -0
  312. package/dist-es/switch-component.js +51 -112
  313. package/dist-es/tabs.css-mistica.js +6 -6
  314. package/dist-es/tabs.js +24 -23
  315. package/dist-es/tag.css-mistica.js +2 -2
  316. package/dist-es/tag.js +11 -11
  317. package/dist-es/text-field-base.css-mistica.js +4 -0
  318. package/dist-es/text-field-base.css.ts.vanilla.js +2 -0
  319. package/dist-es/text-field-base.js +134 -328
  320. package/dist-es/text-field-components.css-mistica.js +4 -0
  321. package/dist-es/text-field-components.css.ts.vanilla.js +2 -0
  322. package/dist-es/text-field-components.js +56 -157
  323. package/dist-es/text-link.css-mistica.js +3 -3
  324. package/dist-es/text.js +159 -92
  325. package/dist-es/theme-context-provider.js +1 -1
  326. package/dist-es/title.js +50 -18
  327. package/dist-es/tooltip.css-mistica.js +3 -3
  328. package/dist-es/tooltip.js +90 -64
  329. package/dist-es/touchable.css-mistica.js +2 -2
  330. package/dist-es/touchable.js +10 -10
  331. package/dist-es/utils/animation.js +28 -62
  332. package/dist-es/utils/aspect-ratio-support.css-mistica.js +6 -0
  333. package/dist-es/utils/aspect-ratio-support.css.ts.vanilla.js +2 -0
  334. package/dist-es/utils/aspect-ratio-support.js +34 -58
  335. package/dist-es/utils/dom.js +7 -5
  336. package/dist-es/video.css-mistica.js +2 -2
  337. package/package.json +2 -1
@@ -1,39 +1,20 @@
1
- import { useIsInverseVariant as n } from "./theme-variant-context.js";
2
- import { createUseStyles as i } from "./jss.js";
3
- import l from "classnames";
4
- import { jsx as c } from "./_virtual/jsx-runtime.js";
5
- var d = i(function(param) {
6
- var s = param.colors;
7
- return {
8
- skeletonBase: {
9
- borderRadius: function(param) {
10
- var e = param.radius;
11
- return e;
12
- },
13
- height: function(param) {
14
- var e = param.height;
15
- return e;
16
- },
17
- width: function(param) {
18
- var e = param.width;
19
- return e;
20
- },
21
- background: function(param) {
22
- var e = param.isInverse;
23
- return e ? s.backgroundSkeletonInverse : s.backgroundSkeleton;
24
- }
25
- }
26
- };
27
- }), f = function(param) {
28
- var tmp = param.width, s = tmp === void 0 ? "100%" : tmp, tmp1 = param.height, e = tmp1 === void 0 ? 8 : tmp1, tmp2 = param.radius, t = tmp2 === void 0 ? 8 : tmp2, r = param.className;
29
- var o = n(), a = d({
30
- isInverse: o,
31
- width: s,
32
- height: e,
33
- radius: t
34
- });
35
- return /* @__PURE__ */ c("div", {
36
- className: l(a.skeletonBase, r),
1
+ import { useIsInverseVariant as t } from "./theme-variant-context.js";
2
+ import i from "classnames";
3
+ import { sprinkles as m } from "./sprinkles.css-mistica.js";
4
+ import { vars as r } from "./skins/skin-contract.css-mistica.js";
5
+ import { jsx as l } from "./_virtual/jsx-runtime.js";
6
+ var f = function(param) {
7
+ var tmp = param.width, e = tmp === void 0 ? "100%" : tmp, tmp1 = param.height, o = tmp1 === void 0 ? 8 : tmp1, tmp2 = param.radius, s = tmp2 === void 0 ? 8 : tmp2, a = param.className;
8
+ var n = t();
9
+ return /* @__PURE__ */ l("div", {
10
+ className: i(a, m({
11
+ background: n ? r.colors.backgroundSkeletonInverse : r.colors.backgroundSkeleton
12
+ })),
13
+ style: {
14
+ borderRadius: s,
15
+ width: e,
16
+ height: o
17
+ },
37
18
  "aria-hidden": !0
38
19
  });
39
20
  };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./skeletons.css.ts.vanilla.js";
3
- var o = "zopolw2 _1y2v1nf9i _1y2v1nf9y", r = "_1y2v1nf7t _1y2v1nf7v", y = "zopolw6 _1y2v1nf7u", f = "_1y2v1nf7b _1y2v1nf7q _1y2v1nf7k";
3
+ var o = "zopolw2 _1y2v1nf50", r = "_1y2v1nf5g _1y2v1nf5i", y = "zopolw6 _1y2v1nf5h", f = "_1y2v1nf4y _1y2v1nf5d _1y2v1nf57";
4
4
  export { o as animation, r as circle, y as line, f as row };
@@ -50,88 +50,109 @@ function _objectSpreadProps(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import n from "./skeleton-base.js";
54
- import c from "./stack.js";
55
- import { getPrefixedDataAttributes as o } from "./utils/dom.js";
56
- import { row as d, circle as m, line as h, animation as u } from "./skeletons.css-mistica.js";
57
- import { jsx as e, jsxs as l } from "./_virtual/jsx-runtime.js";
53
+ import o from "./skeleton-base.js";
54
+ import s from "./stack.js";
55
+ import { getPrefixedDataAttributes as m } from "./utils/dom.js";
56
+ import { row as d, circle as u, line as h, animation as k } from "./skeletons.css-mistica.js";
57
+ import { jsx as n, jsxs as l } from "./_virtual/jsx-runtime.js";
58
58
  var a = function(param) {
59
- var r = param.children, t = param.ariaLabel, i = param.dataAttributes;
60
- return /* @__PURE__ */ e("div", _objectSpreadProps(_objectSpread({
61
- className: u,
59
+ var t = param.children, e = param.ariaLabel, r = param.dataAttributes, i = param.width, c = param.height;
60
+ return /* @__PURE__ */ n("div", _objectSpreadProps(_objectSpread({
61
+ className: k,
62
62
  role: "status",
63
63
  "aria-busy": !0,
64
- "aria-hidden": t === void 0,
65
- "aria-label": t
66
- }, o(i)), {
67
- children: r
64
+ "aria-hidden": e === void 0,
65
+ "aria-label": e,
66
+ style: {
67
+ width: i,
68
+ height: c
69
+ }
70
+ }, m(r)), {
71
+ children: t
68
72
  }));
69
73
  }, x = function(param) {
70
- var tmp = param.width, r = tmp === void 0 ? "100%" : tmp, t = param.ariaLabel, i = param.dataAttributes;
71
- return /* @__PURE__ */ e(a, _objectSpreadProps(_objectSpread({
72
- ariaLabel: t
73
- }, o(i)), {
74
- children: /* @__PURE__ */ e(n, {
75
- width: r
74
+ var tmp = param.width, t = tmp === void 0 ? "100%" : tmp, e = param.ariaLabel, r = param.dataAttributes;
75
+ return /* @__PURE__ */ n(a, {
76
+ width: t,
77
+ ariaLabel: e,
78
+ dataAttributes: _objectSpread({
79
+ "component-name": "SkeletonLine"
80
+ }, r),
81
+ children: /* @__PURE__ */ n(o, {
82
+ width: t
76
83
  })
77
- }));
84
+ });
78
85
  }, g = function(param) {
79
- var r = param.ariaLabel, t = param.dataAttributes;
80
- return /* @__PURE__ */ e(a, _objectSpreadProps(_objectSpread({
81
- ariaLabel: r
82
- }, o(t)), {
83
- children: /* @__PURE__ */ l(c, {
86
+ var t = param.ariaLabel, e = param.dataAttributes;
87
+ return /* @__PURE__ */ n(a, {
88
+ width: "100%",
89
+ ariaLabel: t,
90
+ dataAttributes: _objectSpread({
91
+ "component-name": "SkeletonText"
92
+ }, e),
93
+ children: /* @__PURE__ */ l(s, {
84
94
  space: 16,
85
95
  children: [
86
- /* @__PURE__ */ e(n, {}),
87
- /* @__PURE__ */ e(n, {}),
88
- /* @__PURE__ */ e(n, {
96
+ /* @__PURE__ */ n(o, {}),
97
+ /* @__PURE__ */ n(o, {}),
98
+ /* @__PURE__ */ n(o, {
89
99
  width: "75%"
90
100
  })
91
101
  ]
92
102
  })
93
- }));
94
- }, N = function(param) {
95
- var r = param.ariaLabel, tmp = param.size, t = tmp === void 0 ? 40 : tmp, i = param.dataAttributes;
96
- return /* @__PURE__ */ e(a, _objectSpreadProps(_objectSpread({
97
- ariaLabel: r
98
- }, o(i)), {
99
- children: /* @__PURE__ */ e(n, {
100
- height: t,
101
- width: t,
103
+ });
104
+ }, w = function(param) {
105
+ var t = param.ariaLabel, tmp = param.size, e = tmp === void 0 ? 40 : tmp, r = param.dataAttributes;
106
+ return /* @__PURE__ */ n(a, {
107
+ width: e,
108
+ height: e,
109
+ ariaLabel: t,
110
+ dataAttributes: _objectSpread({
111
+ "component-name": "SkeletonCircle"
112
+ }, r),
113
+ children: /* @__PURE__ */ n(o, {
114
+ height: e,
115
+ width: e,
102
116
  radius: "50%"
103
117
  })
104
- }));
105
- }, v = function(param) {
106
- var tmp = param.width, r = tmp === void 0 ? "100%" : tmp, t = param.ariaLabel, i = param.dataAttributes;
107
- return /* @__PURE__ */ e(a, _objectSpreadProps(_objectSpread({
108
- ariaLabel: t
109
- }, o(i)), {
118
+ });
119
+ }, N = function(param) {
120
+ var tmp = param.width, t = tmp === void 0 ? "100%" : tmp, e = param.ariaLabel, r = param.dataAttributes;
121
+ return /* @__PURE__ */ n(a, {
122
+ width: t,
123
+ ariaLabel: e,
124
+ dataAttributes: _objectSpread({
125
+ "component-name": "SkeletonRow"
126
+ }, r),
110
127
  children: /* @__PURE__ */ l("div", {
111
128
  className: d,
112
129
  children: [
113
- /* @__PURE__ */ e(n, {
130
+ /* @__PURE__ */ n(o, {
114
131
  height: 40,
115
132
  width: 40,
116
133
  radius: "50%",
117
- className: m
134
+ className: u
118
135
  }),
119
- /* @__PURE__ */ e(n, {
120
- width: r,
136
+ /* @__PURE__ */ n(o, {
137
+ width: t,
121
138
  className: h
122
139
  })
123
140
  ]
124
141
  })
125
- }));
126
- }, b = function(param) {
127
- var tmp = param.width, r = tmp === void 0 ? "100%" : tmp, tmp1 = param.height, t = tmp1 === void 0 ? "100%" : tmp1, i = param.ariaLabel, s = param.dataAttributes;
128
- return /* @__PURE__ */ e(a, _objectSpreadProps(_objectSpread({
129
- ariaLabel: i
130
- }, o(s)), {
131
- children: /* @__PURE__ */ e(n, {
132
- height: t,
133
- width: r
142
+ });
143
+ }, R = function(param) {
144
+ var tmp = param.width, t = tmp === void 0 ? "100%" : tmp, tmp1 = param.height, e = tmp1 === void 0 ? "100%" : tmp1, r = param.ariaLabel, i = param.dataAttributes;
145
+ return /* @__PURE__ */ n(a, {
146
+ height: e,
147
+ width: t,
148
+ ariaLabel: r,
149
+ dataAttributes: _objectSpread({
150
+ "component-name": "SkeletonRectangle"
151
+ }, i),
152
+ children: /* @__PURE__ */ n(o, {
153
+ height: e,
154
+ width: t
134
155
  })
135
- }));
156
+ });
136
157
  };
137
- export { N as SkeletonCircle, x as SkeletonLine, b as SkeletonRectangle, v as SkeletonRow, g as SkeletonText };
158
+ export { w as SkeletonCircle, x as SkeletonLine, R as SkeletonRectangle, N as SkeletonRow, g as SkeletonText };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./snackbar.css.ts.vanilla.js";
3
- var a = 300, v = "o7bjb09", b = "_1y2v1nf1j", o = "_1y2v1nf1w", t = "_1y2v1nf7b _1y2v1nf7n", _ = "o7bjb0a", f = "o7bjb01 _1y2v1nf9i _1y2v1nf7b _1y2v1nf7k", p = "o7bjb02", y = "o7bjb04 _1y2v1nf78 _1y2v1nfbd", e = "_1y2v1nf5x", i = "_1y2v1nf5y", j = "o7bjb07";
4
- export { a as TRANSITION_TIME_IN_MS, v as button, b as buttonCritical, o as buttonInfo, t as content, _ as longButton, f as snackbar, p as snackbarOpen, y as wrapper, e as wrapperCritical, i as wrapperInfo, j as wrapperOpen };
3
+ var n = 300, v = "o7bjb09", b = "_1y2v1nf1j", o = "_1y2v1nf1w", t = "_1y2v1nf4y _1y2v1nf5a", _ = "o7bjb0a", f = "o7bjb01 _1y2v1nf75 _1y2v1nf4y _1y2v1nf57", p = "o7bjb02", y = "o7bjb04 _1y2v1nf4v _1y2v1nf90", e = "_1y2v1nf3j", j = "_1y2v1nf3k", i = "o7bjb07";
4
+ export { n as TRANSITION_TIME_IN_MS, v as button, b as buttonCritical, o as buttonInfo, t as content, _ as longButton, f as snackbar, p as snackbarOpen, y as wrapper, e as wrapperCritical, j as wrapperInfo, i as wrapperOpen };
@@ -46,6 +46,45 @@ function _iterableToArrayLimit(arr, i) {
46
46
  function _nonIterableRest() {
47
47
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48
48
  }
49
+ function _objectSpread(target) {
50
+ for(var i = 1; i < arguments.length; i++){
51
+ var source = arguments[i] != null ? arguments[i] : {};
52
+ var ownKeys = Object.keys(source);
53
+ if (typeof Object.getOwnPropertySymbols === "function") {
54
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
55
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
56
+ }));
57
+ }
58
+ ownKeys.forEach(function(key) {
59
+ _defineProperty(target, key, source[key]);
60
+ });
61
+ }
62
+ return target;
63
+ }
64
+ function ownKeys(object, enumerableOnly) {
65
+ var keys = Object.keys(object);
66
+ if (Object.getOwnPropertySymbols) {
67
+ var symbols = Object.getOwnPropertySymbols(object);
68
+ if (enumerableOnly) {
69
+ symbols = symbols.filter(function(sym) {
70
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
71
+ });
72
+ }
73
+ keys.push.apply(keys, symbols);
74
+ }
75
+ return keys;
76
+ }
77
+ function _objectSpreadProps(target, source) {
78
+ source = source != null ? source : {};
79
+ if (Object.getOwnPropertyDescriptors) {
80
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
81
+ } else {
82
+ ownKeys(Object(source)).forEach(function(key) {
83
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
84
+ });
85
+ }
86
+ return target;
87
+ }
49
88
  function _slicedToArray(arr, i) {
50
89
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
51
90
  }
@@ -57,93 +96,101 @@ function _unsupportedIterableToArray(o, minLen) {
57
96
  if (n === "Map" || n === "Set") return Array.from(n);
58
97
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
59
98
  }
60
- import * as c from "react";
61
- import T from "./touchable.js";
99
+ import * as i from "react";
100
+ import { BaseTouchable as N } from "./touchable.js";
62
101
  import l from "classnames";
63
- import { isWebViewBridgeAvailable as g, nativeMessage as v } from "@tef-novum/webview-bridge";
64
- import { useElementDimensions as N, useScreenSize as R } from "./hooks.js";
65
- import { Text2 as b } from "./text.js";
66
- import { TRANSITION_TIME_IN_MS as C, snackbar as O, snackbarOpen as k, wrapper as w, wrapperCritical as E, wrapperInfo as S, wrapperOpen as A, content as B, button as M, buttonCritical as W, buttonInfo as D, longButton as L } from "./snackbar.css-mistica.js";
67
- import { sprinkles as V } from "./sprinkles.css-mistica.js";
68
- import { vars as _ } from "./skins/skin-contract.css-mistica.js";
69
- import { jsx as i, jsxs as j } from "./_virtual/jsx-runtime.js";
70
- var F = function(param) {
71
- var a = param.message, e = param.buttonText, tmp = param.duration, r = tmp === void 0 ? e ? 1e4 : 5e3 : tmp, tmp1 = param.onClose, t = tmp1 === void 0 ? function() {} : tmp1, tmp2 = param.type, n = tmp2 === void 0 ? "INFORMATIVE" : tmp2;
72
- var ref = _slicedToArray(c.useState(!1), 2), o = ref[0], s = ref[1], ref1 = N(), u = ref1.width, p = ref1.ref, ref2 = R(), h = ref2.isDesktopOrBigger, m = u > (h ? 160 : 128), f = c.useCallback(function() {
73
- s(!1), setTimeout(function() {
102
+ import { isWebViewBridgeAvailable as T, nativeMessage as v } from "@tef-novum/webview-bridge";
103
+ import { useElementDimensions as k, useScreenSize as R } from "./hooks.js";
104
+ import { Text2 as B } from "./text.js";
105
+ import { TRANSITION_TIME_IN_MS as C, snackbar as O, snackbarOpen as S, wrapper as w, wrapperCritical as A, wrapperInfo as E, wrapperOpen as M, content as W, button as D, buttonCritical as L, buttonInfo as V, longButton as _ } from "./snackbar.css-mistica.js";
106
+ import { sprinkles as p } from "./sprinkles.css-mistica.js";
107
+ import { vars as j } from "./skins/skin-contract.css-mistica.js";
108
+ import { getPrefixedDataAttributes as x } from "./utils/dom.js";
109
+ import { jsx as s, jsxs as F } from "./_virtual/jsx-runtime.js";
110
+ var z = function(param) {
111
+ var a = param.message, e = param.buttonText, tmp = param.duration, r = tmp === void 0 ? e ? 1e4 : 5e3 : tmp, tmp1 = param.onClose, t = tmp1 === void 0 ? function() {} : tmp1, tmp2 = param.type, n = tmp2 === void 0 ? "INFORMATIVE" : tmp2, c = param.dataAttributes;
112
+ var ref = _slicedToArray(i.useState(!1), 2), o = ref[0], u = ref[1], ref1 = k(), d = ref1.width, h = ref1.ref, ref2 = R(), I = ref2.isDesktopOrBigger, m = d > (I ? 160 : 128), f = i.useCallback(function() {
113
+ u(!1), setTimeout(function() {
74
114
  t();
75
115
  }, C);
76
116
  }, [
77
117
  t
78
118
  ]);
79
- return c.useEffect(function() {
80
- var I = setTimeout(function() {
81
- s(!0);
82
- }, 50), d = setTimeout(f, r);
119
+ return i.useEffect(function() {
120
+ var g = setTimeout(function() {
121
+ u(!0);
122
+ }, 50), b = setTimeout(f, r);
83
123
  return function() {
84
- clearTimeout(I), clearTimeout(d);
124
+ clearTimeout(g), clearTimeout(b);
85
125
  };
86
126
  }, [
87
127
  f,
88
128
  r
89
- ]), /* @__PURE__ */ i("div", {
90
- className: l(O, _defineProperty({}, k, o)),
91
- children: /* @__PURE__ */ i("div", {
129
+ ]), /* @__PURE__ */ s("div", {
130
+ className: l(O, _defineProperty({}, S, o)),
131
+ children: /* @__PURE__ */ s("div", _objectSpreadProps(_objectSpread({
92
132
  role: "alert",
93
- className: l(w, n === "CRITICAL" ? E : S, _defineProperty({}, A, o)),
94
- children: /* @__PURE__ */ j("div", {
95
- className: l(B, V({
133
+ className: l(w, n === "CRITICAL" ? A : E, _defineProperty({}, M, o))
134
+ }, x(c, "SnackBar")), {
135
+ children: /* @__PURE__ */ F("div", {
136
+ className: l(W, p({
96
137
  flexDirection: m ? "column" : "row",
97
138
  alignItems: m ? void 0 : "center"
98
139
  })),
99
140
  children: [
100
- /* @__PURE__ */ i(b, {
141
+ /* @__PURE__ */ s(B, {
101
142
  regular: !0,
102
- color: _.colors.textPrimaryInverse,
143
+ color: j.colors.textPrimaryInverse,
103
144
  children: a
104
145
  }),
105
- e && /* @__PURE__ */ i("div", {
106
- className: l(M, n === "CRITICAL" ? W : D, _defineProperty({}, L, m)),
107
- children: /* @__PURE__ */ i(T, {
146
+ e && /* @__PURE__ */ s("div", {
147
+ className: l(D, n === "CRITICAL" ? L : V, _defineProperty({}, _, m)),
148
+ children: /* @__PURE__ */ s(N, {
149
+ className: p({
150
+ border: "none",
151
+ padding: 0,
152
+ background: "transparent",
153
+ color: "inherit"
154
+ }),
108
155
  style: {
109
156
  lineHeight: "inherit",
110
157
  fontWeight: "inherit"
111
158
  },
112
- ref: p,
159
+ ref: h,
113
160
  onPress: f,
114
161
  children: e
115
162
  })
116
163
  })
117
164
  ]
118
165
  })
119
- })
166
+ }))
120
167
  });
121
- }, X = function(param) {
168
+ }, $ = function(param) {
122
169
  var a = param.message, e = param.buttonText, tmp = param.duration, r = tmp === void 0 ? e ? 1e4 : 5e3 : tmp, tmp1 = param.onClose, t = tmp1 === void 0 ? function() {} : tmp1, tmp2 = param.type, n = tmp2 === void 0 ? "INFORMATIVE" : tmp2;
123
- var o = g(), s = c.useRef(t);
124
- return c.useEffect(function() {
125
- s.current = t;
170
+ var c = T(), o = i.useRef(t);
171
+ return i.useEffect(function() {
172
+ o.current = t;
126
173
  }, [
127
174
  t
128
- ]), c.useEffect(function() {
129
- o && v({
175
+ ]), i.useEffect(function() {
176
+ c && v({
130
177
  message: a,
131
178
  duration: r,
132
179
  buttonText: e,
133
180
  type: n
134
- }).then(s.current);
181
+ }).then(o.current);
135
182
  }, [
136
183
  e,
137
184
  r,
138
185
  a,
139
- o,
186
+ c,
140
187
  n
141
- ]), o ? null : /* @__PURE__ */ i(F, {
188
+ ]), c ? null : /* @__PURE__ */ s(z, {
142
189
  message: a,
143
190
  duration: r,
144
191
  buttonText: e,
145
192
  type: n,
146
- onClose: s.current
193
+ onClose: o.current
147
194
  });
148
195
  };
149
- export { X as default };
196
+ export { $ as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./spinner.css.ts.vanilla.js";
3
- var n = "_1fthc594 _1y2v1nf7t", a = "_1fthc595", e = "_1y2v1nf7t", f = "_1fthc597";
4
- export { n as spinnerDefault, a as spinnerDefaultPath, e as spinnerIos, f as spinnerIosSvgPath };
3
+ var t = "_1fthc594 _1y2v1nf5g", a = "_1fthc595", e = "_1y2v1nf5g", f = "_1fthc597";
4
+ export { t as spinnerDefault, a as spinnerDefaultPath, e as spinnerIos, f as spinnerIosSvgPath };
@@ -31,18 +31,18 @@ import M from "./fade-in.js";
31
31
  import { useTheme as v, useAriaId as g } from "./hooks.js";
32
32
  import { spinnerIos as z, spinnerIosSvgPath as t, spinnerDefault as u, spinnerDefaultPath as x } from "./spinner.css-mistica.js";
33
33
  import { jsxs as n, jsx as l } from "./_virtual/jsx-runtime.js";
34
- var k = function(param) {
35
- var e = param.color, tmp = param.delay, s = tmp === void 0 ? "500ms" : tmp, tmp1 = param.size, a = tmp1 === void 0 ? 24 : tmp1, m = param.style, d = param.rolePresentation;
34
+ var S = function(param) {
35
+ var e = param.color, tmp = param.delay, a = tmp === void 0 ? "500ms" : tmp, tmp1 = param.size, s = tmp1 === void 0 ? 24 : tmp1, m = param.style, h = param.rolePresentation;
36
36
  var ref = v(), p = ref.texts, f = ref.platformOverrides, N = ref.colors;
37
37
  e = e || N.controlActivated;
38
- var i = g(), c = !d, r = p.loading, h = o(f) === "ios" ? /* @__PURE__ */ n("svg", {
38
+ var i = g(), c = !h, r = p.loading, d = o(f) === "ios" ? /* @__PURE__ */ n("svg", {
39
39
  "aria-labelledby": i,
40
40
  className: z,
41
- height: a,
41
+ height: s,
42
42
  style: _objectSpread({}, m),
43
43
  role: "img",
44
44
  viewBox: "0 0 28 28",
45
- width: a,
45
+ width: s,
46
46
  children: [
47
47
  c && /* @__PURE__ */ l("title", {
48
48
  id: i,
@@ -117,11 +117,11 @@ var k = function(param) {
117
117
  }) : /* @__PURE__ */ n("svg", {
118
118
  "aria-labelledby": c ? i : void 0,
119
119
  className: u,
120
- height: a,
120
+ height: s,
121
121
  style: _objectSpread({}, m),
122
122
  role: "img",
123
123
  viewBox: "0 0 66 66",
124
- width: a,
124
+ width: s,
125
125
  children: [
126
126
  c && /* @__PURE__ */ l("title", {
127
127
  id: i,
@@ -139,9 +139,12 @@ var k = function(param) {
139
139
  })
140
140
  ]
141
141
  });
142
- return s === "0" || s === "0s" || s === "0ms" ? h : /* @__PURE__ */ l(M, {
143
- delay: s,
144
- children: h
142
+ return a === "0" || a === "0s" || a === "0ms" ? d : /* @__PURE__ */ l(M, {
143
+ delay: a,
144
+ dataAttributes: {
145
+ "component-name": "Spinner"
146
+ },
147
+ children: d
145
148
  });
146
149
  };
147
- export { k as default };
150
+ export { S as default };