@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
package/dist-es/header.js CHANGED
@@ -78,47 +78,46 @@ function _objectWithoutPropertiesLoose(source, excluded) {
78
78
  return target;
79
79
  }
80
80
  import a from "./box.js";
81
- import l from "./stack.js";
82
- import { createUseStyles as O } from "./jss.js";
83
- import { useIsInverseVariant as P, ThemeVariant as T } from "./theme-variant-context.js";
84
- import v from "./responsive-layout.js";
81
+ import n from "./stack.js";
82
+ import { useIsInverseVariant as I } from "./theme-variant-context.js";
83
+ import y from "./responsive-layout.js";
85
84
  import f from "./grid-layout.js";
86
- import { useScreenSize as g } from "./hooks.js";
87
- import x from "./overscroll-color-context.js";
88
- import { Text6 as B, Text8 as R, Text7 as j, Text3 as S } from "./text.js";
89
- import C from "./button-group.js";
90
- import { vars as h } from "./skins/skin-contract.css-mistica.js";
91
- import { jsxs as c, jsx as r } from "./_virtual/jsx-runtime.js";
92
- var K = function(param) {
93
- var o = param.pretitle, e = param.title, i = param.preamount, n = param.amount, t = param.button, s = param.subtitle, d = param.isErrorAmount, m = param.secondaryButton, I = param.dataAttributes;
94
- var ref = g(), N = ref.isTabletOrSmaller, H = P(), u = function(p, y) {
95
- if (typeof p == "string") return /* @__PURE__ */ r(S, _objectSpreadProps(_objectSpread({
85
+ import { useScreenSize as m } from "./hooks.js";
86
+ import S from "./overscroll-color-context.js";
87
+ import { Text6 as v, Text8 as P, Text7 as R, Text3 as T } from "./text.js";
88
+ import j from "./button-group.js";
89
+ import { vars as s } from "./skins/skin-contract.css-mistica.js";
90
+ import { jsxs as t, jsx as r } from "./_virtual/jsx-runtime.js";
91
+ var F = function(param) {
92
+ var i = param.pretitle, e = param.title, o = param.preamount, l = param.amount, c = param.button, d = param.subtitle, h = param.isErrorAmount, u = param.secondaryButton, B = param.dataAttributes;
93
+ var ref = m(), H = ref.isTabletOrSmaller, L = I(), g = function(p, x) {
94
+ if (typeof p == "string") return /* @__PURE__ */ r(T, _objectSpreadProps(_objectSpread({
96
95
  regular: !0
97
- }, y), {
96
+ }, x), {
98
97
  children: p
99
98
  }));
100
- var G = p.text, L = _objectWithoutProperties(p, [
99
+ var G = p.text, O = _objectWithoutProperties(p, [
101
100
  "text"
102
101
  ]);
103
- return /* @__PURE__ */ r(S, _objectSpreadProps(_objectSpread({
102
+ return /* @__PURE__ */ r(T, _objectSpreadProps(_objectSpread({
104
103
  regular: !0
105
- }, y, L), {
104
+ }, x, O), {
106
105
  children: p.text
107
106
  }));
108
107
  };
109
- return /* @__PURE__ */ c(l, {
110
- space: N ? 24 : 32,
111
- dataAttributes: I,
108
+ return /* @__PURE__ */ t(n, {
109
+ space: H ? 24 : 32,
110
+ dataAttributes: B,
112
111
  children: [
113
- (e || o) && /* @__PURE__ */ r(a, {
112
+ (e || i) && /* @__PURE__ */ r(a, {
114
113
  paddingRight: 16,
115
- children: /* @__PURE__ */ c(l, {
114
+ children: /* @__PURE__ */ t(n, {
116
115
  space: 8,
117
116
  children: [
118
- o && u(o, {
119
- color: h.colors.textPrimary
117
+ i && g(i, {
118
+ color: s.colors.textPrimary
120
119
  }),
121
- /* @__PURE__ */ r(B, {
120
+ /* @__PURE__ */ r(v, {
122
121
  role: "heading",
123
122
  "aria-level": 2,
124
123
  children: e
@@ -126,158 +125,129 @@ var K = function(param) {
126
125
  ]
127
126
  })
128
127
  }),
129
- (i || n || t || s) && /* @__PURE__ */ c(l, {
128
+ (o || l || c || d) && /* @__PURE__ */ t(n, {
130
129
  space: 16,
131
130
  children: [
132
- (i || n) && /* @__PURE__ */ c(l, {
131
+ (o || l) && /* @__PURE__ */ t(n, {
133
132
  space: 8,
134
133
  children: [
135
- i && u(i, {
136
- color: h.colors.textPrimary
134
+ o && g(o, {
135
+ color: s.colors.textPrimary
137
136
  }),
138
- /* @__PURE__ */ r(R, {
139
- color: d && !H ? h.colors.highlight : h.colors.textPrimary,
140
- children: n
137
+ /* @__PURE__ */ r(P, {
138
+ color: h && !L ? s.colors.highlight : s.colors.textPrimary,
139
+ children: l
141
140
  })
142
141
  ]
143
142
  }),
144
- (t || m) && /* @__PURE__ */ r(C, {
145
- primaryButton: t,
146
- secondaryButton: m
143
+ (c || u) && /* @__PURE__ */ r(j, {
144
+ primaryButton: c,
145
+ secondaryButton: u
147
146
  }),
148
- s && u(s, {})
147
+ d && g(d, {})
149
148
  ]
150
149
  })
151
150
  ]
152
151
  });
153
- }, Q = function(param) {
154
- var o = param.title, e = param.description, i = param.button;
155
- var ref = g(), n = ref.isTabletOrSmaller;
156
- return /* @__PURE__ */ c(l, {
152
+ }, J = function(param) {
153
+ var i = param.title, e = param.description, o = param.button;
154
+ var ref = m(), l = ref.isTabletOrSmaller;
155
+ return /* @__PURE__ */ t(n, {
157
156
  space: 32,
158
157
  children: [
159
- /* @__PURE__ */ c(l, {
160
- space: n ? 12 : 16,
158
+ /* @__PURE__ */ t(n, {
159
+ space: l ? 12 : 16,
161
160
  children: [
162
- o && /* @__PURE__ */ r(j, {
161
+ i && /* @__PURE__ */ r(R, {
163
162
  role: "heading",
164
163
  "aria-level": 1,
165
- children: o
164
+ children: i
166
165
  }),
167
- e && /* @__PURE__ */ r(B, {
166
+ e && /* @__PURE__ */ r(v, {
168
167
  children: e
169
168
  })
170
169
  ]
171
170
  }),
172
- i
171
+ o
173
172
  ]
174
173
  });
175
- }, k = O(function(o) {
176
- return {
177
- background: {
178
- background: function(param) {
179
- var e = param.isInverse;
180
- return e ? o.colors.backgroundBrand : "initial";
181
- }
182
- },
183
- gridItem: {
184
- gridColumn: "span 6"
185
- }
186
- };
187
- }), W = function(param) {
188
- var tmp = param.isInverse, o = tmp === void 0 ? !0 : tmp, e = param.breadcrumbs, i = param.header, n = param.extra, tmp1 = param.sideBySideExtraOnDesktop, t = tmp1 === void 0 ? !1 : tmp1, s = param.dataAttributes;
189
- var d = k({
190
- isInverse: o
191
- }), ref = g(), m = ref.isTabletOrSmaller;
192
- return /* @__PURE__ */ r(v, {
193
- className: d.background,
194
- dataAttributes: s,
195
- children: /* @__PURE__ */ c(T, {
196
- isInverse: o,
197
- children: [
198
- /* @__PURE__ */ r(x, {}),
199
- m ? /* @__PURE__ */ r(a, {
200
- paddingTop: 32,
201
- paddingBottom: 24,
202
- children: /* @__PURE__ */ c(l, {
203
- space: 24,
174
+ }, K = function(param) {
175
+ var tmp = param.isInverse, i = tmp === void 0 ? !0 : tmp, e = param.breadcrumbs, o = param.header, l = param.extra, tmp1 = param.sideBySideExtraOnDesktop, c = tmp1 === void 0 ? !1 : tmp1, d = param.dataAttributes;
176
+ var ref = m(), h = ref.isTabletOrSmaller;
177
+ return /* @__PURE__ */ t(y, {
178
+ isInverse: i,
179
+ dataAttributes: _objectSpread({
180
+ "component-name": "HeaderLayout"
181
+ }, d),
182
+ children: [
183
+ /* @__PURE__ */ r(S, {}),
184
+ h ? /* @__PURE__ */ r(a, {
185
+ paddingTop: 32,
186
+ paddingBottom: 24,
187
+ children: /* @__PURE__ */ t(n, {
188
+ space: 24,
189
+ children: [
190
+ o,
191
+ l
192
+ ]
193
+ })
194
+ }) : c ? /* @__PURE__ */ r(a, {
195
+ paddingTop: e ? 16 : 48,
196
+ paddingBottom: 48,
197
+ children: /* @__PURE__ */ r(f, {
198
+ template: "6+6",
199
+ left: /* @__PURE__ */ t(n, {
200
+ space: 32,
204
201
  children: [
205
- i,
206
- n
202
+ e,
203
+ o
207
204
  ]
208
- })
209
- }) : t ? /* @__PURE__ */ r(a, {
210
- paddingTop: e ? 16 : 48,
211
- paddingBottom: 48,
212
- children: /* @__PURE__ */ c(f, {
205
+ }),
206
+ right: l
207
+ })
208
+ }) : /* @__PURE__ */ r(a, {
209
+ paddingTop: e ? 16 : 48,
210
+ paddingBottom: 48,
211
+ children: /* @__PURE__ */ r(f, {
212
+ template: "6+6",
213
+ left: /* @__PURE__ */ t(n, {
214
+ space: 24,
213
215
  children: [
214
- /* @__PURE__ */ r("div", {
215
- className: d.gridItem,
216
- children: /* @__PURE__ */ c(l, {
217
- space: 32,
218
- children: [
219
- e,
220
- i
221
- ]
222
- })
223
- }),
224
- n && /* @__PURE__ */ r("div", {
225
- className: d.gridItem,
226
- children: n
227
- })
228
- ]
229
- })
230
- }) : /* @__PURE__ */ r(a, {
231
- paddingTop: e ? 16 : 48,
232
- paddingBottom: 48,
233
- children: /* @__PURE__ */ r(f, {
234
- children: /* @__PURE__ */ r("div", {
235
- className: d.gridItem,
236
- children: /* @__PURE__ */ c(l, {
237
- space: 24,
216
+ /* @__PURE__ */ t(n, {
217
+ space: 32,
238
218
  children: [
239
- /* @__PURE__ */ c(l, {
240
- space: 32,
241
- children: [
242
- e,
243
- i
244
- ]
245
- }),
246
- n
219
+ e,
220
+ o
247
221
  ]
248
- })
249
- })
250
- })
222
+ }),
223
+ l
224
+ ]
225
+ }),
226
+ right: null
251
227
  })
252
- ]
253
- })
228
+ })
229
+ ]
254
230
  });
255
- }, X = function(param) {
256
- var tmp = param.isInverse, o = tmp === void 0 ? !0 : tmp, e = param.children;
257
- var i = k({
258
- isInverse: o
259
- }), ref = g(), n = ref.isTabletOrSmaller;
260
- return /* @__PURE__ */ r(v, {
261
- className: i.background,
262
- children: /* @__PURE__ */ c(T, {
263
- isInverse: o,
264
- children: [
265
- /* @__PURE__ */ r(x, {}),
266
- n ? /* @__PURE__ */ r(a, {
267
- paddingTop: 12,
268
- paddingBottom: 24,
231
+ }, N = function(param) {
232
+ var tmp = param.isInverse, i = tmp === void 0 ? !0 : tmp, e = param.children;
233
+ var ref = m(), o = ref.isTabletOrSmaller;
234
+ return /* @__PURE__ */ t(y, {
235
+ isInverse: i,
236
+ children: [
237
+ /* @__PURE__ */ r(S, {}),
238
+ o ? /* @__PURE__ */ r(a, {
239
+ paddingTop: 12,
240
+ paddingBottom: 24,
241
+ children: e
242
+ }) : /* @__PURE__ */ r(f, {
243
+ template: "6+6",
244
+ left: /* @__PURE__ */ r(a, {
245
+ paddingY: 48,
269
246
  children: e
270
- }) : /* @__PURE__ */ r(f, {
271
- children: /* @__PURE__ */ r("div", {
272
- className: i.gridItem,
273
- children: /* @__PURE__ */ r(a, {
274
- paddingY: 48,
275
- children: e
276
- })
277
- })
278
- })
279
- ]
280
- })
247
+ }),
248
+ right: null
249
+ })
250
+ ]
281
251
  });
282
252
  };
283
- export { K as Header, W as HeaderLayout, Q as MainSectionHeader, X as MainSectionHeaderLayout };
253
+ export { F as Header, K as HeaderLayout, J as MainSectionHeader, N as MainSectionHeaderLayout };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./highlighted-card.css.ts.vanilla.js";
3
- var y = "wrb8722 _1y2v1nf7b _1y2v1nf7g _1y2v1nf7n _1y2v1nf7t", f = "wrb8725 _1y2v1nf7b", _ = {
4
- withImage: "wrb8728 wrb8727 _1y2v1nf7b _1y2v1nf7h _1y2v1nf7p _1y2v1nf84 _1y2v1nf8i _1y2v1nf8v",
5
- withoutImage: "wrb8729 wrb8727 _1y2v1nf7b _1y2v1nf7h _1y2v1nf7p _1y2v1nf84 _1y2v1nf8i _1y2v1nf8v"
6
- }, r = "_1y2v1nf7y _1y2v1nf8c _1y2v1nf8q _1y2v1nf94 _1y2v1nf7b _1y2v1nf7t _1y2v1nfb9 _1y2v1nf9i _1y2v1nf74";
7
- export { y as container, f as imageContent, _ as textContainerVariant, r as touchableContainer };
3
+ var v = "wrb8722 _1y2v1nf4y _1y2v1nf53 _1y2v1nf5a _1y2v1nf5g", f = "wrb8725 _1y2v1nf4y", _ = {
4
+ withImage: "wrb8728 wrb8727 _1y2v1nf4y _1y2v1nf54 _1y2v1nf5c _1y2v1nf5r _1y2v1nf65 _1y2v1nf6i",
5
+ withoutImage: "wrb8729 wrb8727 _1y2v1nf4y _1y2v1nf54 _1y2v1nf5c _1y2v1nf5r _1y2v1nf65 _1y2v1nf6i"
6
+ }, r = "_1y2v1nf5l _1y2v1nf5z _1y2v1nf6d _1y2v1nf6r _1y2v1nf4y _1y2v1nf5g _1y2v1nf8w _1y2v1nf75 _1y2v1nf4s";
7
+ export { v as container, f as imageContent, _ as textContainerVariant, r as touchableContainer };
@@ -77,45 +77,49 @@ function _objectWithoutPropertiesLoose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import { useIsInverseVariant as g } from "./theme-variant-context.js";
81
- import f from "./box.js";
82
- import { BaseTouchable as o } from "./touchable.js";
83
- import { Text4 as b, Text2 as v } from "./text.js";
84
- import { Boxed as x } from "./boxed.js";
85
- import w, { useIsDismissable as k } from "./maybe-dismissable.js";
86
- import { container as I, textContainerVariant as C, imageContent as E, touchableContainer as c } from "./highlighted-card.css-mistica.js";
87
- import { vars as N } from "./skins/skin-contract.css-mistica.js";
88
- import { jsx as t, jsxs as s, Fragment as P } from "./_virtual/jsx-runtime.js";
89
- var T = function(e) {
90
- var m;
91
- var i = e.title, r = e.description, a = e.imageUrl, l = e.imageFit, u = g(), h = (m = e.isInverse) != null ? m : u, d = k(), n = /* @__PURE__ */ s(x, {
92
- isInverse: h,
93
- className: I,
94
- dataAttributes: e.dataAttributes,
80
+ import * as u from "react";
81
+ import { useIsInverseVariant as b } from "./theme-variant-context.js";
82
+ import v from "./box.js";
83
+ import { BaseTouchable as c } from "./touchable.js";
84
+ import { Text4 as w, Text2 as x } from "./text.js";
85
+ import { Boxed as k } from "./boxed.js";
86
+ import C, { useIsDismissable as I } from "./maybe-dismissable.js";
87
+ import { container as E, textContainerVariant as N, imageContent as P, touchableContainer as s } from "./highlighted-card.css-mistica.js";
88
+ import { vars as T } from "./skins/skin-contract.css-mistica.js";
89
+ import { jsxs as d, jsx as t, Fragment as y } from "./_virtual/jsx-runtime.js";
90
+ var V = /*#__PURE__*/ u.forwardRef(function(e, i) {
91
+ var h;
92
+ var a = e.title, r = e.description, o = e.imageUrl, l = e.imageFit, f = b(), g = (h = e.isInverse) != null ? h : f, m = I(), n = /* @__PURE__ */ d(k, {
93
+ ref: i,
94
+ isInverse: g,
95
+ className: E,
96
+ dataAttributes: _objectSpread({
97
+ "component-name": "HighlightedCard"
98
+ }, e.dataAttributes),
95
99
  width: e.width ? "".concat(e.width, "px") : "100%",
96
100
  children: [
97
- /* @__PURE__ */ s("div", {
98
- role: d ? void 0 : "region",
99
- className: C[a ? "withImage" : "withoutImage"],
100
- "aria-label": d ? void 0 : e["aria-label"],
101
+ /* @__PURE__ */ d("div", {
102
+ role: m ? void 0 : "region",
103
+ className: N[o ? "withImage" : "withoutImage"],
104
+ "aria-label": m ? void 0 : e["aria-label"],
101
105
  children: [
102
- /* @__PURE__ */ t(b, {
106
+ /* @__PURE__ */ t(w, {
103
107
  as: "h1",
104
108
  regular: !0,
105
109
  truncate: e.titleLinesMax,
106
- children: i
110
+ children: a
107
111
  }),
108
- /* @__PURE__ */ t(f, {
112
+ /* @__PURE__ */ t(v, {
109
113
  paddingTop: 8,
110
- children: /* @__PURE__ */ t(v, {
114
+ children: /* @__PURE__ */ t(x, {
111
115
  regular: !0,
112
- color: N.colors.textSecondary,
116
+ color: T.colors.textSecondary,
113
117
  truncate: e.descriptionLinesMax,
114
118
  as: "p",
115
119
  children: r
116
120
  })
117
121
  }),
118
- e.button && /* @__PURE__ */ s(P, {
122
+ e.button && /* @__PURE__ */ d(y, {
119
123
  children: [
120
124
  /* @__PURE__ */ t("div", {
121
125
  style: {
@@ -128,46 +132,47 @@ var T = function(e) {
128
132
  })
129
133
  ]
130
134
  }),
131
- a && /* @__PURE__ */ t("div", {
132
- className: E,
135
+ o && /* @__PURE__ */ t("div", {
136
+ className: P,
133
137
  style: {
134
- background: "url(".concat(a, ") no-repeat"),
138
+ background: "url(".concat(o, ") no-repeat"),
135
139
  backgroundSize: l === "fit" ? "contain" : "cover",
136
140
  backgroundPosition: l === "fit" ? "bottom right" : "center ".concat(l === "fill-center" ? "center" : "right")
137
141
  }
138
142
  })
139
143
  ]
140
144
  });
141
- return e.button ? n : e.onPress ? /* @__PURE__ */ t(o, {
145
+ return e.button ? n : e.onPress ? /* @__PURE__ */ t(c, {
142
146
  onPress: e.onPress,
143
147
  trackingEvent: e.trackingEvent,
144
- className: c,
148
+ className: s,
145
149
  children: n
146
- }) : e.to ? /* @__PURE__ */ t(o, {
150
+ }) : e.to ? /* @__PURE__ */ t(c, {
147
151
  to: e.to,
148
152
  trackingEvent: e.trackingEvent,
149
153
  fullPageOnWebView: e.fullPageOnWebView,
150
- className: c,
154
+ className: s,
151
155
  children: n
152
- }) : e.href ? /* @__PURE__ */ t(o, {
156
+ }) : e.href ? /* @__PURE__ */ t(c, {
153
157
  trackingEvent: e.trackingEvent,
154
158
  href: e.href,
155
159
  newTab: e.newTab,
156
- className: c,
160
+ className: s,
157
161
  children: n
158
162
  }) : n;
159
- }, F = function(_param) {
163
+ }), F = /*#__PURE__*/ u.forwardRef(function(_param, a) {
160
164
  var e = _param["aria-label"], i = _objectWithoutProperties(_param, [
161
165
  "aria-label"
162
166
  ]);
163
167
  var r = e != null ? e : i.title;
164
- return /* @__PURE__ */ t(w, {
168
+ return /* @__PURE__ */ t(C, {
165
169
  onClose: i.onClose,
166
170
  "aria-label": r,
167
171
  width: i.width,
168
- children: /* @__PURE__ */ t(T, _objectSpreadProps(_objectSpread({}, i), {
169
- "aria-label": r
172
+ children: /* @__PURE__ */ t(V, _objectSpreadProps(_objectSpread({}, i), {
173
+ "aria-label": r,
174
+ ref: a
170
175
  }))
171
176
  });
172
- };
177
+ });
173
178
  export { F as default };
@@ -0,0 +1,4 @@
1
+ import "./sprinkles.css.ts.vanilla.js";
2
+ import "./icon-button.css.ts.vanilla.js";
3
+ var t = "yqt1oe1 _1y2v1nf52";
4
+ export { t as base };
@@ -0,0 +1,2 @@
1
+ var t = "";
2
+ export { t as default };
@@ -51,51 +51,66 @@ function _objectSpreadProps(target, source) {
51
51
  return target;
52
52
  }
53
53
  import * as i from "react";
54
- import r from "./touchable.js";
55
- import { jsx as c } from "./_virtual/jsx-runtime.js";
56
- var b = 24, u = function(e, a, n, t, d) {
57
- var o = t ? "".concat(t, "px ").concat(t, "px") : "100% 100%";
54
+ import o from "classnames";
55
+ import { BaseTouchable as r } from "./touchable.js";
56
+ import { base as d } from "./icon-button.css-mistica.js";
57
+ import { jsx as l } from "./_virtual/jsx-runtime.js";
58
+ var s = 24, b = function(e, a, t, n, c) {
59
+ var m = n ? "".concat(n, "px ").concat(n, "px") : "100% 100%";
58
60
  return {
59
- display: "inline-block",
60
- verticalAlign: "middle",
61
- textAlign: "center",
62
- backgroundColor: n,
61
+ padding: 0,
62
+ backgroundColor: t,
63
63
  backgroundImage: e ? "url(".concat(e, ")") : "",
64
- backgroundPosition: "50% 50%",
65
- backgroundSize: o,
66
- backgroundRepeat: "no-repeat",
67
- border: 0,
68
- cursor: d ? "default" : "pointer",
64
+ backgroundSize: m,
65
+ cursor: c ? "default" : "pointer",
69
66
  height: a,
70
67
  width: a
71
68
  };
72
- }, f = function(e) {
73
- var a = e.icon, n = e.children, tmp = e.backgroundColor, t = tmp === void 0 ? "transparent" : tmp, d = e.iconSize, tmp1 = e.size, o = tmp1 === void 0 ? b : tmp1, l = {
69
+ }, u = function(e) {
70
+ var a = e.icon, t = e.children, n = {
74
71
  className: e.className || "",
75
72
  disabled: e.disabled,
76
- style: _objectSpread({}, u(a, o, t, d, e.disabled), e.style),
73
+ style: e.style,
77
74
  trackingEvent: e.trackingEvent,
78
75
  "aria-live": e["aria-live"],
79
- dataAttributes: e.dataAttributes
76
+ dataAttributes: _objectSpread({
77
+ "component-name": "IconButton"
78
+ }, e.dataAttributes)
80
79
  };
81
- return e.href ? /* @__PURE__ */ c(r, _objectSpreadProps(_objectSpread({}, l), {
80
+ return e.href ? /* @__PURE__ */ l(r, _objectSpreadProps(_objectSpread({}, n), {
82
81
  href: e.href,
83
82
  newTab: e.newTab,
84
83
  "aria-label": e["aria-label"],
85
- children: !a && i.Children.only(n)
86
- })) : e.to ? /* @__PURE__ */ c(r, _objectSpreadProps(_objectSpread({}, l), {
84
+ children: !a && i.Children.only(t)
85
+ })) : e.to ? /* @__PURE__ */ l(r, _objectSpreadProps(_objectSpread({}, n), {
87
86
  to: e.to,
88
87
  fullPageOnWebView: e.fullPageOnWebView,
89
88
  replace: e.replace,
90
89
  "aria-label": e["aria-label"],
91
- children: !a && i.Children.only(n)
92
- })) : e.onPress ? /* @__PURE__ */ c(r, _objectSpreadProps(_objectSpread({}, l), {
90
+ children: !a && i.Children.only(t)
91
+ })) : e.onPress ? /* @__PURE__ */ l(r, _objectSpreadProps(_objectSpread({}, n), {
93
92
  onPress: e.onPress,
94
93
  "aria-label": e["aria-label"],
95
- children: !a && i.Children.only(n)
96
- })) : /* @__PURE__ */ c(r, _objectSpreadProps(_objectSpread({}, l), {
94
+ children: !a && i.Children.only(t)
95
+ })) : /* @__PURE__ */ l(r, _objectSpreadProps(_objectSpread({}, n), {
97
96
  maybe: !0,
98
- children: !a && i.Children.only(n)
97
+ children: !a && i.Children.only(t)
98
+ }));
99
+ }, I = function(e) {
100
+ var a = e.icon, tmp = e.backgroundColor, t = tmp === void 0 ? "transparent" : tmp, n = e.iconSize, tmp1 = e.size, c = tmp1 === void 0 ? s : tmp1;
101
+ return /* @__PURE__ */ l(u, _objectSpreadProps(_objectSpread({}, e), {
102
+ className: o(d, e.className),
103
+ style: _objectSpread({}, b(a, c, t, n, e.disabled), e.style)
104
+ }));
105
+ }, w = function(e) {
106
+ var tmp = e.size, a = tmp === void 0 ? s : tmp, t = e.disabled;
107
+ return /* @__PURE__ */ l(u, _objectSpreadProps(_objectSpread({}, e), {
108
+ className: o(d, e.className),
109
+ style: {
110
+ height: a,
111
+ width: a,
112
+ cursor: t ? "default" : "pointer"
113
+ }
99
114
  }));
100
115
  };
101
- export { f as default };
116
+ export { w as BaseIconButton, I as default };
@@ -0,0 +1,3 @@
1
+ import "./icon-error.css.ts.vanilla.js";
2
+ var a = "_1ao3f5e2", i = "_1ao3f5e1";
3
+ export { a as innerAnimation, i as outerAnimation };
@@ -0,0 +1,2 @@
1
+ var s = "";
2
+ export { s as default };