@telefonica/mistica 14.48.0 → 15.1.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 (243) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +2 -6
  4. package/dist/avatar.css-mistica.js +3 -3
  5. package/dist/badge.css-mistica.js +6 -6
  6. package/dist/boxed.css-mistica.js +3 -3
  7. package/dist/button-group.css-mistica.js +1 -1
  8. package/dist/button-layout.css-mistica.js +9 -9
  9. package/dist/button.css-mistica.js +27 -27
  10. package/dist/button.d.ts +12 -4
  11. package/dist/button.js +68 -63
  12. package/dist/callout.css-mistica.js +2 -2
  13. package/dist/callout.d.ts +1 -0
  14. package/dist/callout.js +11 -11
  15. package/dist/card.css-mistica.js +13 -13
  16. package/dist/card.d.ts +6 -0
  17. package/dist/card.js +301 -293
  18. package/dist/carousel.css-mistica.js +19 -19
  19. package/dist/checkbox.css-mistica.js +9 -9
  20. package/dist/chip.css-mistica.js +10 -10
  21. package/dist/circle.css-mistica.js +2 -2
  22. package/dist/community/advanced-data-card.css-mistica.js +12 -12
  23. package/dist/community/blocks.css-mistica.js +1 -1
  24. package/dist/counter.css-mistica.js +4 -4
  25. package/dist/credit-card-number-field.css-mistica.js +5 -5
  26. package/dist/cvv-field.js +30 -29
  27. package/dist/dialog.css-mistica.js +6 -6
  28. package/dist/double-field.css-mistica.js +2 -2
  29. package/dist/empty-state-card.css-mistica.js +3 -3
  30. package/dist/empty-state-card.d.ts +1 -0
  31. package/dist/empty-state-card.js +10 -9
  32. package/dist/empty-state.css-mistica.js +4 -4
  33. package/dist/empty-state.d.ts +1 -0
  34. package/dist/empty-state.js +14 -14
  35. package/dist/feedback.css-mistica.js +5 -5
  36. package/dist/feedback.js +61 -79
  37. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  38. package/dist/header.css-mistica.js +1 -1
  39. package/dist/header.d.ts +2 -0
  40. package/dist/header.js +46 -47
  41. package/dist/hero.css-mistica.js +2 -2
  42. package/dist/hero.d.ts +1 -0
  43. package/dist/hero.js +29 -29
  44. package/dist/highlighted-card.css-mistica.js +7 -7
  45. package/dist/highlighted-card.d.ts +1 -2
  46. package/dist/highlighted-card.js +9 -9
  47. package/dist/horizontal-scroll.css-mistica.js +1 -1
  48. package/dist/icon-button.css-mistica.js +14 -17
  49. package/dist/icon-button.css.d.ts +1 -1
  50. package/dist/icon-button.d.ts +0 -14
  51. package/dist/icon-button.js +84 -87
  52. package/dist/icons/icon-error.js +5 -5
  53. package/dist/icons/icon-info.js +5 -5
  54. package/dist/icons/icon-success.js +6 -7
  55. package/dist/image.css-mistica.js +3 -3
  56. package/dist/image.js +36 -32
  57. package/dist/index.d.ts +5 -12
  58. package/dist/index.js +10 -17
  59. package/dist/inline.js +8 -7
  60. package/dist/list.css-mistica.js +12 -12
  61. package/dist/list.d.ts +1 -4
  62. package/dist/list.js +143 -138
  63. package/dist/loading-bar.css-mistica.js +4 -4
  64. package/dist/loading-screen.css-mistica.js +3 -3
  65. package/dist/logo.d.ts +1 -0
  66. package/dist/logo.js +155 -137
  67. package/dist/maybe-dismissable.css-mistica.js +1 -1
  68. package/dist/maybe-dismissable.js +3 -4
  69. package/dist/menu.css-mistica.js +1 -1
  70. package/dist/navigation-bar.css-mistica.js +22 -22
  71. package/dist/navigation-bar.d.ts +2 -1
  72. package/dist/navigation-bar.js +53 -52
  73. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  74. package/dist/package-version.js +1 -1
  75. package/dist/pin-field.css-mistica.js +4 -4
  76. package/dist/popover.d.ts +0 -4
  77. package/dist/popover.js +10 -11
  78. package/dist/progress-bar.css-mistica.js +3 -3
  79. package/dist/radio-button.css-mistica.js +8 -8
  80. package/dist/responsive-layout.css-mistica.js +5 -5
  81. package/dist/screen-reader-only.css-mistica.js +1 -1
  82. package/dist/select.css-mistica.js +10 -10
  83. package/dist/select.d.ts +1 -0
  84. package/dist/select.js +65 -65
  85. package/dist/sheet.css-mistica.js +8 -8
  86. package/dist/skeletons.css-mistica.js +5 -5
  87. package/dist/skins/blau.js +5 -3
  88. package/dist/skins/constants.d.ts +1 -2
  89. package/dist/skins/constants.js +7 -10
  90. package/dist/skins/movistar.d.ts +1 -0
  91. package/dist/skins/movistar.js +6 -3
  92. package/dist/skins/o2-new.d.ts +50 -0
  93. package/dist/skins/o2-new.js +397 -0
  94. package/dist/skins/o2.d.ts +1 -0
  95. package/dist/skins/o2.js +6 -3
  96. package/dist/skins/skin-contract.css-mistica.js +138 -136
  97. package/dist/skins/skin-contract.css.d.ts +2 -0
  98. package/dist/skins/telefonica.d.ts +1 -0
  99. package/dist/skins/telefonica.js +6 -3
  100. package/dist/skins/tu.d.ts +1 -0
  101. package/dist/skins/tu.js +6 -3
  102. package/dist/skins/types/colors.d.ts +1 -0
  103. package/dist/skins/types/index.d.ts +1 -1
  104. package/dist/skins/utils.js +7 -7
  105. package/dist/skins/vivo-new.js +5 -3
  106. package/dist/skins/vivo.js +5 -3
  107. package/dist/slider.css-mistica.js +7 -7
  108. package/dist/slider.d.ts +0 -8
  109. package/dist/slider.js +95 -97
  110. package/dist/snackbar.css-mistica.js +12 -12
  111. package/dist/spinner.css-mistica.js +5 -5
  112. package/dist/sprinkles.css-mistica.js +792 -786
  113. package/dist/stacking-group.css-mistica.js +2 -2
  114. package/dist/stepper.css-mistica.js +9 -9
  115. package/dist/switch-component.css-mistica.js +26 -23
  116. package/dist/switch-component.css.d.ts +1 -0
  117. package/dist/switch-component.js +11 -10
  118. package/dist/tabs.css-mistica.js +9 -9
  119. package/dist/tag.css-mistica.js +1 -1
  120. package/dist/tag.js +34 -39
  121. package/dist/text-field-base.css-mistica.js +5 -5
  122. package/dist/text-field-components.css-mistica.js +11 -11
  123. package/dist/text-link.css-mistica.js +3 -3
  124. package/dist/text-link.d.ts +5 -0
  125. package/dist/tooltip.css-mistica.js +2 -2
  126. package/dist/tooltip.d.ts +0 -16
  127. package/dist/tooltip.js +78 -80
  128. package/dist/touchable.css-mistica.js +5 -5
  129. package/dist/touchable.d.ts +33 -19
  130. package/dist/touchable.js +54 -51
  131. package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
  132. package/dist/utils/browser.d.ts +1 -0
  133. package/dist/utils/browser.js +14 -0
  134. package/dist/video.css-mistica.js +1 -1
  135. package/dist-es/accordion.css-mistica.js +3 -3
  136. package/dist-es/avatar.css-mistica.js +2 -2
  137. package/dist-es/badge.css-mistica.js +2 -2
  138. package/dist-es/boxed.css-mistica.js +2 -2
  139. package/dist-es/button-group.css-mistica.js +1 -1
  140. package/dist-es/button-layout.css-mistica.js +6 -6
  141. package/dist-es/button.css-mistica.js +16 -16
  142. package/dist-es/button.js +89 -84
  143. package/dist-es/callout.css-mistica.js +2 -2
  144. package/dist-es/callout.js +37 -37
  145. package/dist-es/card.css-mistica.js +2 -2
  146. package/dist-es/card.js +442 -434
  147. package/dist-es/carousel.css-mistica.js +2 -2
  148. package/dist-es/checkbox.css-mistica.js +6 -6
  149. package/dist-es/chip.css-mistica.js +7 -7
  150. package/dist-es/circle.css-mistica.js +2 -2
  151. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  152. package/dist-es/community/blocks.css-mistica.js +1 -1
  153. package/dist-es/counter.css-mistica.js +2 -2
  154. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  155. package/dist-es/cvv-field.js +55 -54
  156. package/dist-es/dialog.css-mistica.js +5 -5
  157. package/dist-es/double-field.css-mistica.js +2 -2
  158. package/dist-es/empty-state-card.css-mistica.js +2 -2
  159. package/dist-es/empty-state-card.js +30 -29
  160. package/dist-es/empty-state.css-mistica.js +3 -3
  161. package/dist-es/empty-state.js +34 -34
  162. package/dist-es/feedback.css-mistica.js +2 -2
  163. package/dist-es/feedback.js +102 -120
  164. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  165. package/dist-es/header.css-mistica.js +1 -1
  166. package/dist-es/header.js +69 -70
  167. package/dist-es/hero.css-mistica.js +2 -2
  168. package/dist-es/hero.js +56 -56
  169. package/dist-es/highlighted-card.css-mistica.js +5 -5
  170. package/dist-es/highlighted-card.js +26 -26
  171. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  172. package/dist-es/icon-button.css-mistica.js +9 -12
  173. package/dist-es/icon-button.js +94 -97
  174. package/dist-es/icons/icon-error.js +6 -6
  175. package/dist-es/icons/icon-info.js +6 -6
  176. package/dist-es/icons/icon-success.js +9 -10
  177. package/dist-es/image.css-mistica.js +2 -2
  178. package/dist-es/image.js +38 -34
  179. package/dist-es/index.js +1762 -1763
  180. package/dist-es/inline.js +13 -12
  181. package/dist-es/list.css-mistica.js +2 -2
  182. package/dist-es/list.js +184 -179
  183. package/dist-es/loading-bar.css-mistica.js +2 -2
  184. package/dist-es/loading-screen.css-mistica.js +2 -2
  185. package/dist-es/logo.js +172 -157
  186. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  187. package/dist-es/maybe-dismissable.js +7 -8
  188. package/dist-es/menu.css-mistica.js +1 -1
  189. package/dist-es/navigation-bar.css-mistica.js +9 -9
  190. package/dist-es/navigation-bar.js +72 -71
  191. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  192. package/dist-es/package-version.js +1 -1
  193. package/dist-es/pin-field.css-mistica.js +2 -2
  194. package/dist-es/popover.js +27 -28
  195. package/dist-es/progress-bar.css-mistica.js +2 -2
  196. package/dist-es/radio-button.css-mistica.js +5 -5
  197. package/dist-es/responsive-layout.css-mistica.js +4 -4
  198. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  199. package/dist-es/select.css-mistica.js +9 -9
  200. package/dist-es/select.js +97 -97
  201. package/dist-es/sheet.css-mistica.js +2 -2
  202. package/dist-es/skeletons.css-mistica.js +2 -2
  203. package/dist-es/skins/blau.js +5 -3
  204. package/dist-es/skins/constants.js +2 -2
  205. package/dist-es/skins/movistar.js +8 -5
  206. package/dist-es/skins/o2-new.js +380 -0
  207. package/dist-es/skins/o2.js +6 -3
  208. package/dist-es/skins/skin-contract.css-mistica.js +138 -136
  209. package/dist-es/skins/telefonica.js +6 -3
  210. package/dist-es/skins/tu.js +6 -3
  211. package/dist-es/skins/utils.js +11 -11
  212. package/dist-es/skins/vivo-new.js +5 -3
  213. package/dist-es/skins/vivo.js +5 -3
  214. package/dist-es/slider.css-mistica.js +2 -2
  215. package/dist-es/slider.js +117 -119
  216. package/dist-es/snackbar.css-mistica.js +5 -5
  217. package/dist-es/spinner.css-mistica.js +2 -2
  218. package/dist-es/sprinkles.css-mistica.js +792 -786
  219. package/dist-es/stacking-group.css-mistica.js +2 -2
  220. package/dist-es/stepper.css-mistica.js +2 -2
  221. package/dist-es/style.css +1 -1
  222. package/dist-es/switch-component.css-mistica.js +19 -19
  223. package/dist-es/switch-component.js +24 -23
  224. package/dist-es/tabs.css-mistica.js +6 -6
  225. package/dist-es/tag.css-mistica.js +1 -1
  226. package/dist-es/tag.js +52 -57
  227. package/dist-es/text-field-base.css-mistica.js +2 -2
  228. package/dist-es/text-field-components.css-mistica.js +2 -2
  229. package/dist-es/text-link.css-mistica.js +3 -3
  230. package/dist-es/tooltip.css-mistica.js +2 -2
  231. package/dist-es/tooltip.js +83 -85
  232. package/dist-es/touchable.css-mistica.js +2 -2
  233. package/dist-es/touchable.js +68 -65
  234. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  235. package/dist-es/utils/browser.js +5 -0
  236. package/dist-es/video.css-mistica.js +1 -1
  237. package/package.json +2 -2
  238. package/dist/skins/movistar-legacy.d.ts +0 -47
  239. package/dist/skins/movistar-legacy.js +0 -392
  240. package/dist/skins/o2-classic.d.ts +0 -56
  241. package/dist/skins/o2-classic.js +0 -324
  242. package/dist-es/skins/movistar-legacy.js +0 -375
  243. package/dist-es/skins/o2-classic.js +0 -307
@@ -10,20 +10,20 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  container: function() {
13
- return n;
13
+ return a;
14
14
  },
15
15
  containerWithWrapper: function() {
16
- return a;
16
+ return n;
17
17
  },
18
18
  vars: function() {
19
19
  return y;
20
20
  },
21
21
  wrapper: function() {
22
- return f;
22
+ return p;
23
23
  }
24
24
  });
25
25
  require("../sprinkles.css.ts.vanilla.css-mistica.js");
26
26
  require("./aspect-ratio-support.css.ts.vanilla.css-mistica.js");
27
- var n = "yqswj62", a = "_1y2v1nfhv _1y2v1nfic _1y2v1nfkf _1y2v1nfku", y = {
27
+ var a = "yqswj62", n = "_1y2v1nfhx _1y2v1nfie _1y2v1nfkh _1y2v1nfkw", y = {
28
28
  aspectRatio: "var(--yqswj60)"
29
- }, f = "_1y2v1nfk9 _1y2v1nfjn _1y2v1nfjo _1y2v1nfh2";
29
+ }, p = "_1y2v1nfkb _1y2v1nfjp _1y2v1nfjq _1y2v1nfh4";
@@ -0,0 +1 @@
1
+ export declare const redirect: (url: string, external?: boolean, loadOnTop?: boolean) => void;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "redirect", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return i;
9
+ }
10
+ });
11
+ const i = function(e) {
12
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
13
+ o ? window.open(e, "_blank") : n ? window.open(e, "_top") : document.location.href = e;
14
+ };
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "video", {
9
9
  }
10
10
  });
11
11
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
12
- var f = "_1y2v1nfkf _1y2v1nfku _1y2v1nfha _1y2v1nf70 _1y2v1nfjn _1y2v1nfjo _1y2v1nfm3";
12
+ var f = "_1y2v1nfkh _1y2v1nfkw _1y2v1nfhc _1y2v1nf72 _1y2v1nfjp _1y2v1nfjq _1y2v1nfm5";
@@ -1,9 +1,9 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./accordion.css.ts.vanilla.css-mistica.js";
3
- var e = "_8s3szx3", a = "_1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhv _1y2v1nfjq _1y2v1nf70 _1y2v1nfha _1y2v1nfic", v = "_8s3szx9", r = "_8s3szx4", _ = {
3
+ var e = "_8s3szx3", v = "_1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhx _1y2v1nfjs _1y2v1nf72 _1y2v1nfhc _1y2v1nfie", a = "_8s3szx9", r = "_8s3szx4", _ = {
4
4
  enter: "_8s3szx5",
5
5
  enterActive: "_8s3szx6",
6
6
  exit: "_8s3szx7",
7
7
  exitActive: "_8s3szx8"
8
- }, t = "_8s3szx1", i = "_8s3szx2";
9
- export { e as chevronContainer, a as itemContent, v as panel, r as panelContainer, _ as panelTransitionClasses, t as touchableBackground, i as touchableBackgroundInverse };
8
+ }, t = "_8s3szx1", x = "_8s3szx2";
9
+ export { e as chevronContainer, v as itemContent, a as panel, r as panelContainer, _ as panelTransitionClasses, t as touchableBackground, x as touchableBackgroundInverse };
@@ -1,3 +1,3 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
- var n = "_1y2v1nfk6 _1y2v1nfh8 _1y2v1nfhn _1y2v1nfhh _1y2v1nfk9", a = "_1y2v1nfm3";
3
- export { n as avatar, a as image };
2
+ var a = "_1y2v1nfk8 _1y2v1nfha _1y2v1nfhp _1y2v1nfhj _1y2v1nfkb", f = "_1y2v1nfm5";
3
+ export { a as avatar, f as image };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./badge.css.ts.vanilla.css-mistica.js";
3
- var _ = "_17szrmd2 _1y2v1nf55", a = "_17szrmd7", d = "_17szrmd3", n = "_17szrmd5 _17szrmd2 _1y2v1nf55 _1y2v1nfh8 _1y2v1nfhn _1y2v1nfhh", e = "_1y2v1nfh3", h = "_1y2v1nfh2 _1y2v1nfhc";
4
- export { _ as badge, a as badgeBigNumber, d as badgeBorder, n as badgeNumber, e as badgeWithChildren, h as container };
3
+ var a = "_17szrmd2 _1y2v1nf56", _ = "_17szrmd7", d = "_17szrmd3", e = "_17szrmd5 _17szrmd2 _1y2v1nf56 _1y2v1nfha _1y2v1nfhp _1y2v1nfhj", n = "_1y2v1nfh5", m = "_1y2v1nfh4 _1y2v1nfhe";
4
+ export { a as badge, _ as badgeBigNumber, d as badgeBorder, e as badgeNumber, n as badgeWithChildren, m as container };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./boxed.css.ts.vanilla.css-mistica.js";
3
- var p = "_1y2v1nfjp", e = "ihbkeq1";
4
- export { p as boxBorder, e as desktopOnly };
3
+ var e = "_1y2v1nfjr", p = "ihbkeq1";
4
+ export { e as boxBorder, p as desktopOnly };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button-group.css.ts.vanilla.css-mistica.js";
3
- var h = "_1xdd1h64", r = "_1xdd1h63", t = "_1xdd1h62", v = "_1xdd1h61 _1y2v1nfh9 _1y2v1nfhn _1y2v1nfhd";
3
+ var h = "_1xdd1h64", r = "_1xdd1h63", t = "_1xdd1h62", v = "_1xdd1h61 _1y2v1nfhb _1y2v1nfhp _1y2v1nfhf";
4
4
  export { h as buttonChild, r as buttons, t as container, v as inline };
@@ -2,9 +2,9 @@ import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button.css.ts.vanilla.css-mistica.js";
3
3
  import "./button-layout.css.ts.vanilla.css-mistica.js";
4
4
  var y = {
5
- right: "kfxylh8 _1y2v1nfhi",
6
- left: "kfxylh9 _1y2v1nfhg",
7
- center: "kfxylha _1y2v1nfhh",
8
- "full-width": "kfxylhb _1y2v1nfhh"
9
- }, v = "kfxylh2 _1y2v1nfh8 _1y2v1nfhn", l = "kfxylh3", t = "kfxylhe kfxylhd _1y2v1nfh8 _1y2v1nfhv", r = "kfxylhf kfxylhd _1y2v1nfh8 _1y2v1nfhv", i = "kfxylh0";
10
- export { y as alignVariant, v as container, l as containerWithTwoButtons, t as link, r as linkWithTwoButtons, i as margins };
5
+ right: "kfxylh8 _1y2v1nfhk",
6
+ left: "kfxylh9 _1y2v1nfhi",
7
+ center: "kfxylha _1y2v1nfhj",
8
+ "full-width": "kfxylhb _1y2v1nfhj"
9
+ }, l = "kfxylh2 _1y2v1nfha _1y2v1nfhp", t = "kfxylh3", a = "kfxylhe kfxylhd _1y2v1nfha _1y2v1nfhx", r = "kfxylhf kfxylhd _1y2v1nfha _1y2v1nfhx", v = "kfxylh0";
10
+ export { y as alignVariant, l as container, t as containerWithTwoButtons, a as link, r as linkWithTwoButtons, v as margins };
@@ -1,20 +1,20 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button.css.ts.vanilla.css-mistica.js";
3
- var _ = 2, f = 8, y = 24, r = 12, a = 6, h = 20, b = 16, p = 20, j = 14.5, t = 10.5, e = {
4
- primary: "rrbrpno rrbrpn2 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhc _1y2v1nfh2 _1y2v1nfhw _1y2v1nfjx _1y2v1nfk9 _1y2v1nf27 _1y2v1nf4e",
5
- secondary: "rrbrpnp rrbrpn2 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhc _1y2v1nfh2 _1y2v1nfhw _1y2v1nfjx _1y2v1nfk9 _1y2v1nf2a _1y2v1nf70",
6
- danger: "rrbrpnq rrbrpn2 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhc _1y2v1nfh2 _1y2v1nfhw _1y2v1nfjx _1y2v1nfk9 _1y2v1nf27 _1y2v1nf46"
7
- }, i = {
8
- primary: "rrbrpnr rrbrpn2 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhc _1y2v1nfh2 _1y2v1nfhw _1y2v1nfjx _1y2v1nfk9 _1y2v1nf28 _1y2v1nf4f",
9
- secondary: "rrbrpns rrbrpn2 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhc _1y2v1nfh2 _1y2v1nfhw _1y2v1nfjx _1y2v1nfk9 _1y2v1nf2c _1y2v1nf70",
10
- danger: "rrbrpnt rrbrpn2 _1y2v1nf71 _1y2v1nf8a _1y2v1nf9j _1y2v1nfas _1y2v1nfhc _1y2v1nfh2 _1y2v1nfhw _1y2v1nfjx _1y2v1nfk9 _1y2v1nf27 _1y2v1nf46"
3
+ var _ = 2, y = 8, f = 24, r = 12, a = 6, b = 20, h = 16, p = 20, e = 14.5, j = 10.5, t = {
4
+ primary: "rrbrpno rrbrpn2 _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhe _1y2v1nfh4 _1y2v1nfhy _1y2v1nfjz _1y2v1nfkb _1y2v1nf27 _1y2v1nf4f",
5
+ secondary: "rrbrpnp rrbrpn2 _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhe _1y2v1nfh4 _1y2v1nfhy _1y2v1nfjz _1y2v1nfkb _1y2v1nf2a _1y2v1nf72",
6
+ danger: "rrbrpnq rrbrpn2 _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhe _1y2v1nfh4 _1y2v1nfhy _1y2v1nfjz _1y2v1nfkb _1y2v1nf27 _1y2v1nf47"
11
7
  }, g = {
12
- default: "rrbrpnx rrbrpng _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhc _1y2v1nfhw _1y2v1nfh2 _1y2v1nfjx _1y2v1nfjq _1y2v1nfk9 _1y2v1nfj2 _1y2v1nf2f _1y2v1nf70",
13
- danger: "rrbrpny rrbrpng _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhc _1y2v1nfhw _1y2v1nfh2 _1y2v1nfjx _1y2v1nfjq _1y2v1nfk9 _1y2v1nfj2 _1y2v1nf2g _1y2v1nf4a",
14
- dangerDark: "rrbrpnz rrbrpng _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhc _1y2v1nfhw _1y2v1nfh2 _1y2v1nfjx _1y2v1nfjq _1y2v1nfk9 _1y2v1nfj2 _1y2v1nf2g _1y2v1nf70"
8
+ primary: "rrbrpnr rrbrpn2 _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhe _1y2v1nfh4 _1y2v1nfhy _1y2v1nfjz _1y2v1nfkb _1y2v1nf28 _1y2v1nf4g",
9
+ secondary: "rrbrpns rrbrpn2 _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhe _1y2v1nfh4 _1y2v1nfhy _1y2v1nfjz _1y2v1nfkb _1y2v1nf2c _1y2v1nf72",
10
+ danger: "rrbrpnt rrbrpn2 _1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfhe _1y2v1nfh4 _1y2v1nfhy _1y2v1nfjz _1y2v1nfkb _1y2v1nf27 _1y2v1nf47"
11
+ }, i = {
12
+ default: "rrbrpnx rrbrpng _1y2v1nf9x _1y2v1nfb6 _1y2v1nfhe _1y2v1nfhy _1y2v1nfh4 _1y2v1nfjz _1y2v1nfjs _1y2v1nfkb _1y2v1nfj4 _1y2v1nf2f _1y2v1nf72",
13
+ danger: "rrbrpny rrbrpng _1y2v1nf9x _1y2v1nfb6 _1y2v1nfhe _1y2v1nfhy _1y2v1nfh4 _1y2v1nfjz _1y2v1nfjs _1y2v1nfkb _1y2v1nfj4 _1y2v1nf2g _1y2v1nf4b",
14
+ dangerDark: "rrbrpnz rrbrpng _1y2v1nf9x _1y2v1nfb6 _1y2v1nfhe _1y2v1nfhy _1y2v1nfh4 _1y2v1nfjz _1y2v1nfjs _1y2v1nfkb _1y2v1nfj4 _1y2v1nf2g _1y2v1nf72"
15
15
  }, k = "rrbrpn0", I = {
16
- default: "rrbrpnu rrbrpng _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhc _1y2v1nfhw _1y2v1nfh2 _1y2v1nfjx _1y2v1nfjq _1y2v1nfk9 _1y2v1nfj2 _1y2v1nf2e _1y2v1nf70",
17
- danger: "rrbrpnv rrbrpng _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhc _1y2v1nfhw _1y2v1nfh2 _1y2v1nfjx _1y2v1nfjq _1y2v1nfk9 _1y2v1nfj2 _1y2v1nf2g _1y2v1nf70",
18
- dangerDark: "rrbrpnw rrbrpng _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhc _1y2v1nfhw _1y2v1nfh2 _1y2v1nfjx _1y2v1nfjq _1y2v1nfk9 _1y2v1nfj2 _1y2v1nf2g _1y2v1nf70"
19
- }, s = "rrbrpn7 _1y2v1nfh9 _1y2v1nfh3 _1y2v1nfkf _1y2v1nflo _1y2v1nfhh _1y2v1nfhn", N = "rrbrpn4 _1y2v1nfha _1y2v1nfid _1y2v1nfk9", x = "rrbrpn5", c = "rrbrpn9 _1y2v1nfh8 _1y2v1nfhn _1y2v1nfhh", o = "rrbrpni _1y2v1nfh8 _1y2v1nfhn _1y2v1nfhh";
20
- export { _ as CHEVRON_MARGIN_LEFT_LINK, f as ICON_MARGIN_PX, y as ICON_SIZE, r as PADDING_X_LINK, a as PADDING_Y_LINK, h as SMALL_ICON_SIZE, b as SMALL_SPINNER_SIZE, p as SPINNER_SIZE, j as X_PADDING_PX, t as X_SMALL_PADDING_PX, e as buttonVariants, i as inverseButtonVariants, g as inverseLinkVariants, k as isLoading, I as linkVariants, s as loadingContent, N as loadingFiller, x as small, c as textContent, o as textContentLink };
16
+ default: "rrbrpnu rrbrpng _1y2v1nf9x _1y2v1nfb6 _1y2v1nfhe _1y2v1nfhy _1y2v1nfh4 _1y2v1nfjz _1y2v1nfjs _1y2v1nfkb _1y2v1nfj4 _1y2v1nf2e _1y2v1nf72",
17
+ danger: "rrbrpnv rrbrpng _1y2v1nf9x _1y2v1nfb6 _1y2v1nfhe _1y2v1nfhy _1y2v1nfh4 _1y2v1nfjz _1y2v1nfjs _1y2v1nfkb _1y2v1nfj4 _1y2v1nf2g _1y2v1nf72",
18
+ dangerDark: "rrbrpnw rrbrpng _1y2v1nf9x _1y2v1nfb6 _1y2v1nfhe _1y2v1nfhy _1y2v1nfh4 _1y2v1nfjz _1y2v1nfjs _1y2v1nfkb _1y2v1nfj4 _1y2v1nf2g _1y2v1nf72"
19
+ }, s = "rrbrpn7 _1y2v1nfhb _1y2v1nfh5 _1y2v1nfkh _1y2v1nflq _1y2v1nfhj _1y2v1nfhp", N = "rrbrpn4 _1y2v1nfhc _1y2v1nfif _1y2v1nfkb", l = "rrbrpn5", o = "rrbrpn9 _1y2v1nfha _1y2v1nfhp _1y2v1nfhj", d = "rrbrpni _1y2v1nfha _1y2v1nfhp _1y2v1nfhj";
20
+ export { _ as CHEVRON_MARGIN_LEFT_LINK, y as ICON_MARGIN_PX, f as ICON_SIZE, r as PADDING_X_LINK, a as PADDING_Y_LINK, b as SMALL_ICON_SIZE, h as SMALL_SPINNER_SIZE, p as SPINNER_SIZE, e as X_PADDING_PX, j as X_SMALL_PADDING_PX, t as buttonVariants, g as inverseButtonVariants, i as inverseLinkVariants, k as isLoading, I as linkVariants, s as loadingContent, N as loadingFiller, l as small, o as textContent, d as textContentLink };
package/dist-es/button.js CHANGED
@@ -78,48 +78,48 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as n, jsxs as S, Fragment as W } from "react/jsx-runtime";
81
+ import { jsx as n, jsxs as P, Fragment as W } from "react/jsx-runtime";
82
82
  import * as a from "react";
83
83
  import D from "classnames";
84
84
  import K from "./spinner.js";
85
85
  import { BaseTouchable as g } from "./touchable.js";
86
86
  import { useIsInverseVariant as O } from "./theme-variant-context.js";
87
87
  import { useForm as V } from "./form-context.js";
88
- import { pxToRem as C } from "./utils/css.js";
88
+ import { pxToRem as S } from "./utils/css.js";
89
89
  import { Text as j, Text3 as H, Text2 as Y } from "./text.js";
90
90
  import $ from "./box.js";
91
- import { getTextFromChildren as N } from "./utils/common.js";
91
+ import { getTextFromChildren as C } from "./utils/common.js";
92
92
  import { useTrackingConfig as F, eventNames as z, eventCategories as M, eventActions as q } from "./utils/analytics.js";
93
93
  import { useTheme as R } from "./hooks.js";
94
94
  import { flattenChildren as J } from "./skins/utils.js";
95
- import { inverseButtonVariants as Q, buttonVariants as U, small as p, isLoading as G, textContent as ee, inverseLinkVariants as te, linkVariants as ne, PADDING_X_LINK as A, PADDING_Y_LINK as T, textContentLink as re, SMALL_SPINNER_SIZE as ie, SPINNER_SIZE as ae, ICON_MARGIN_PX as E, CHEVRON_MARGIN_LEFT_LINK as oe, loadingFiller as se, X_SMALL_PADDING_PX as le, X_PADDING_PX as ce, loadingContent as de, SMALL_ICON_SIZE as ue, ICON_SIZE as me } from "./button.css-mistica.js";
95
+ import { inverseButtonVariants as Q, buttonVariants as U, small as p, isLoading as G, textContent as ee, inverseLinkVariants as te, linkVariants as ne, PADDING_X_LINK as A, PADDING_Y_LINK as T, textContentLink as ie, SMALL_SPINNER_SIZE as re, SPINNER_SIZE as ae, ICON_MARGIN_PX as N, CHEVRON_MARGIN_LEFT_LINK as oe, loadingFiller as le, X_SMALL_PADDING_PX as se, X_PADDING_PX as ce, loadingContent as de, SMALL_ICON_SIZE as ue, ICON_SIZE as me } from "./button.css-mistica.js";
96
96
  const x = (param)=>{
97
- let { content: e, defaultIconSize: t, renderText: r } = param;
98
- const s = J(e), u = s.length, c = [];
99
- let l = [];
97
+ let { content: e, defaultIconSize: t, renderText: i } = param;
98
+ const l = J(e), u = l.length, c = [];
99
+ let s = [];
100
100
  const f = ()=>{
101
101
  c.push(/* @__PURE__ */ n(a.Fragment, {
102
- children: r(l)
103
- }, c.length)), l = [];
102
+ children: i(s)
103
+ }, c.length)), s = [];
104
104
  };
105
- return s.forEach((d, m)=>{
105
+ return l.forEach((d, m)=>{
106
106
  const h = m === 0, o = m === u - 1;
107
107
  if (/*#__PURE__*/ a.isValidElement(d)) {
108
- l.length && f();
108
+ s.length && f();
109
109
  var _d_props_size;
110
110
  const v = (_d_props_size = d.props.size) !== null && _d_props_size !== void 0 ? _d_props_size : t;
111
111
  c.push(/* @__PURE__ */ n("div", {
112
112
  style: {
113
113
  display: "flex",
114
114
  alignItems: "center",
115
- marginLeft: h ? 0 : E,
116
- marginRight: o ? 0 : E
115
+ marginLeft: h ? 0 : N,
116
+ marginRight: o ? 0 : N
117
117
  },
118
118
  children: /*#__PURE__*/ a.cloneElement(d, {
119
- size: C(v)
119
+ size: S(v)
120
120
  })
121
121
  }, c.length));
122
- } else l.push(d), o && f();
122
+ } else s.push(d), o && f();
123
123
  }), c;
124
124
  }, fe = ()=>/* @__PURE__ */ n("svg", {
125
125
  width: "0.5em",
@@ -130,11 +130,11 @@ const x = (param)=>{
130
130
  fill: "currentColor"
131
131
  })
132
132
  }), X = (param)=>{
133
- let { showSpinner: e, children: t, small: r, loadingText: s, shouldRenderSpinner: u, setShouldRenderSpinner: c, renderText: l, textContentStyle: f, StartIcon: d, EndIcon: m, withChevron: h } = param;
134
- const o = r ? ue : me, i = C(r ? ie : ae);
135
- return /* @__PURE__ */ S(W, {
133
+ let { showSpinner: e, children: t, small: i, loadingText: l, shouldRenderSpinner: u, setShouldRenderSpinner: c, renderText: s, textContentStyle: f, StartIcon: d, EndIcon: m, withChevron: h } = param;
134
+ const o = i ? ue : me, r = S(i ? re : ae);
135
+ return /* @__PURE__ */ P(W, {
136
136
  children: [
137
- /* @__PURE__ */ S("div", {
137
+ /* @__PURE__ */ P("div", {
138
138
  "aria-hidden": e ? !0 : void 0,
139
139
  className: f,
140
140
  children: [
@@ -142,14 +142,14 @@ const x = (param)=>{
142
142
  style: {
143
143
  display: "flex",
144
144
  alignItems: "center",
145
- marginRight: E
145
+ marginRight: N
146
146
  },
147
147
  children: /* @__PURE__ */ n(d, {
148
- size: C(o),
148
+ size: S(o),
149
149
  color: "currentColor"
150
150
  })
151
151
  }),
152
- /* @__PURE__ */ S("div", {
152
+ /* @__PURE__ */ P("div", {
153
153
  style: {
154
154
  display: "flex",
155
155
  alignItems: "baseline"
@@ -158,7 +158,7 @@ const x = (param)=>{
158
158
  x({
159
159
  content: t,
160
160
  defaultIconSize: o,
161
- renderText: l
161
+ renderText: s
162
162
  }),
163
163
  h && /* @__PURE__ */ n("div", {
164
164
  style: {
@@ -174,29 +174,29 @@ const x = (param)=>{
174
174
  style: {
175
175
  display: "flex",
176
176
  alignItems: "center",
177
- marginLeft: E
177
+ marginLeft: N
178
178
  },
179
179
  children: /* @__PURE__ */ n(m, {
180
- size: C(o),
180
+ size: S(o),
181
181
  color: "currentColor"
182
182
  })
183
183
  })
184
184
  ]
185
185
  }),
186
186
  /* @__PURE__ */ n("div", {
187
- className: se,
187
+ className: le,
188
188
  "aria-hidden": !0,
189
- style: s ? {
190
- paddingLeft: i,
191
- paddingRight: E + 2 * (r ? le : ce)
189
+ style: l ? {
190
+ paddingLeft: r,
191
+ paddingRight: N + 2 * (i ? se : ce)
192
192
  } : void 0,
193
193
  children: x({
194
- content: s,
194
+ content: l,
195
195
  defaultIconSize: o,
196
- renderText: l
196
+ renderText: s
197
197
  })
198
198
  }),
199
- /* @__PURE__ */ S("div", {
199
+ /* @__PURE__ */ P("div", {
200
200
  "aria-hidden": e ? void 0 : !0,
201
201
  className: de,
202
202
  onTransitionEnd: ()=>{
@@ -204,23 +204,23 @@ const x = (param)=>{
204
204
  },
205
205
  children: [
206
206
  u ? /* @__PURE__ */ n(K, {
207
- rolePresentation: !!s,
207
+ rolePresentation: !!l,
208
208
  color: "currentcolor",
209
209
  delay: "0s",
210
- size: i
210
+ size: r
211
211
  }) : /* @__PURE__ */ n("div", {
212
212
  style: {
213
213
  display: "inline-block",
214
- width: i,
215
- height: i
214
+ width: r,
215
+ height: r
216
216
  }
217
217
  }),
218
- s ? /* @__PURE__ */ n($, {
218
+ l ? /* @__PURE__ */ n($, {
219
219
  paddingLeft: 8,
220
220
  children: x({
221
- content: s,
221
+ content: l,
222
222
  defaultIconSize: o,
223
- renderText: l
223
+ renderText: s
224
224
  })
225
225
  }) : null
226
226
  ]
@@ -228,47 +228,47 @@ const x = (param)=>{
228
228
  ]
229
229
  });
230
230
  }, k = /*#__PURE__*/ a.forwardRef((e, t)=>{
231
- const { textPresets: r } = R(), { eventFormat: s } = F(), { formStatus: u, formId: c } = V(), l = O(), { loadingText: f } = e, d = !!e.submit, m = u === "sending", [h, o] = a.useState(!1), i = e.showSpinner || m && d || h, [v, I] = a.useState(!!i);
231
+ const { textPresets: i } = R(), { eventFormat: l } = F(), { formStatus: u, formId: c } = V(), s = O(), { loadingText: f } = e, d = !!e.submit, m = u === "sending", [h, o] = a.useState(!1), r = e.showSpinner || m && d || h, [v, I] = a.useState(!!r);
232
232
  a.useEffect(()=>{
233
- i && !v && I(!0);
233
+ r && !v && I(!0);
234
234
  }, [
235
- i,
235
+ r,
236
236
  v,
237
237
  u
238
238
  ]);
239
239
  var _e_trackingEvent;
240
- const P = ()=>s === "google-analytics-4" ? {
240
+ const E = ()=>l === "google-analytics-4" ? {
241
241
  name: z.userInteraction,
242
242
  component_type: `${e.type}_button`,
243
- component_copy: N(e.children)
243
+ component_copy: C(e.children)
244
244
  } : {
245
245
  category: M.userInteraction,
246
246
  action: `${e.type}_button_tapped`,
247
- label: N(e.children)
247
+ label: C(e.children)
248
248
  }, w = (y)=>e.small ? /* @__PURE__ */ n(j, {
249
249
  size: 14,
250
250
  lineHeight: 20,
251
- weight: r.button.weight,
251
+ weight: i.button.weight,
252
252
  truncate: 1,
253
253
  color: "inherit",
254
254
  as: "div",
255
255
  children: y
256
256
  }) : /* @__PURE__ */ n(H, {
257
- weight: r.button.weight,
257
+ weight: i.button.weight,
258
258
  truncate: 1,
259
259
  color: "inherit",
260
260
  as: "div",
261
261
  children: y
262
262
  }), b = {
263
263
  ref: t,
264
- className: D(l ? Q[e.type] : U[e.type], e.className, {
264
+ className: D(s ? Q[e.type] : U[e.type], e.className, {
265
265
  [p]: e.small,
266
- [G]: i
266
+ [G]: r
267
267
  }),
268
268
  style: _object_spread({
269
269
  cursor: e.fake ? "pointer" : void 0
270
270
  }, e.style),
271
- trackingEvent: (_e_trackingEvent = e.trackingEvent) !== null && _e_trackingEvent !== void 0 ? _e_trackingEvent : e.trackEvent ? P() : void 0,
271
+ trackingEvent: (_e_trackingEvent = e.trackingEvent) !== null && _e_trackingEvent !== void 0 ? _e_trackingEvent : e.trackEvent ? E() : void 0,
272
272
  dataAttributes: e.dataAttributes,
273
273
  "aria-label": e["aria-label"],
274
274
  "aria-controls": e["aria-controls"],
@@ -276,7 +276,7 @@ const x = (param)=>{
276
276
  "aria-haspopup": e["aria-haspopup"],
277
277
  tabIndex: e.tabIndex,
278
278
  children: X({
279
- showSpinner: i,
279
+ showSpinner: r,
280
280
  shouldRenderSpinner: v,
281
281
  setShouldRenderSpinner: I,
282
282
  children: e.children,
@@ -287,8 +287,8 @@ const x = (param)=>{
287
287
  StartIcon: e.StartIcon,
288
288
  EndIcon: e.EndIcon
289
289
  }),
290
- disabled: e.disabled || i || m,
291
- role: "button"
290
+ disabled: e.disabled || r || m,
291
+ role: e.role
292
292
  };
293
293
  if (process.env.NODE_ENV !== "production" && (e.to === "" || e.href === "")) throw Error("to or href props are empty strings");
294
294
  if (e.fake) return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
@@ -310,37 +310,39 @@ const x = (param)=>{
310
310
  }));
311
311
  if (e.to || e.to === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({}, b), {
312
312
  to: e.to,
313
- fullPageOnWebView: e.fullPageOnWebView
313
+ fullPageOnWebView: e.fullPageOnWebView,
314
+ onNavigate: e.onNavigate
314
315
  }));
315
316
  if (e.href || e.href === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({}, b), {
316
317
  href: e.href,
317
318
  newTab: e.newTab,
318
- loadOnTop: e.loadOnTop
319
+ loadOnTop: e.loadOnTop,
320
+ onNavigate: e.onNavigate
319
321
  }));
320
322
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
321
323
  return null;
322
- }), Z = /*#__PURE__*/ a.forwardRef((_param, r)=>{
324
+ }), Z = /*#__PURE__*/ a.forwardRef((_param, i)=>{
323
325
  var { type: e } = _param, t = _object_without_properties(_param, [
324
326
  "type"
325
327
  ]);
326
328
  var _t_withChevron;
327
- const { formStatus: s } = V(), u = O(), { textPresets: c } = R(), { eventFormat: l } = F(), { isDarkMode: f } = R(), { loadingText: d } = t, m = s === "sending", [h, o] = a.useState(!1), i = t.showSpinner || h, v = (_t_withChevron = t.withChevron) !== null && _t_withChevron !== void 0 ? _t_withChevron : !!t.href || !!t.to, [I, P] = a.useState(!!i);
329
+ const { formStatus: l } = V(), u = O(), { textPresets: c } = R(), { eventFormat: s } = F(), { isDarkMode: f } = R(), { loadingText: d } = t, m = l === "sending", [h, o] = a.useState(!1), r = t.showSpinner || h, v = (_t_withChevron = t.withChevron) !== null && _t_withChevron !== void 0 ? _t_withChevron : !!t.href || !!t.to, [I, E] = a.useState(!!r);
328
330
  a.useEffect(()=>{
329
- i && !I && P(!0);
331
+ r && !I && E(!0);
330
332
  }, [
331
- i,
333
+ r,
332
334
  I,
333
- s
335
+ l
334
336
  ]);
335
337
  var _t_trackingEvent;
336
- const w = ()=>l === "google-analytics-4" ? {
338
+ const w = ()=>s === "google-analytics-4" ? {
337
339
  name: z.userInteraction,
338
340
  component_type: e === "danger" ? "danger_link" : "link",
339
- component_copy: N(t.children)
341
+ component_copy: C(t.children)
340
342
  } : {
341
343
  category: M.userInteraction,
342
344
  action: q.linkTapped,
343
- label: N(t.children)
345
+ label: C(t.children)
344
346
  }, b = (_)=>/* @__PURE__ */ n(Y, {
345
347
  weight: c.button.weight,
346
348
  truncate: 1,
@@ -348,12 +350,12 @@ const x = (param)=>{
348
350
  children: _
349
351
  }), y = e === "danger" && f && u ? "dangerDark" : e, L = {
350
352
  className: D(u ? te[y] : ne[y], {
351
- [G]: i
353
+ [G]: r
352
354
  }),
353
355
  /**
354
356
  * Setting bleed classes with style to override the margin:0 set by the Touchable component.
355
357
  * If we set it using className, it may not work depending on the order in which the styles are applied.
356
- */ style: _object_spread({}, t.bleedLeft || t.aligned ? {
358
+ */ style: _object_spread({}, t.bleedLeft ? {
357
359
  marginLeft: -A
358
360
  } : void 0, t.bleedRight ? {
359
361
  marginRight: -A
@@ -368,23 +370,24 @@ const x = (param)=>{
368
370
  "aria-expanded": t["aria-expanded"],
369
371
  "aria-haspopup": t["aria-haspopup"],
370
372
  children: X({
371
- showSpinner: i,
373
+ showSpinner: r,
372
374
  shouldRenderSpinner: I,
373
- setShouldRenderSpinner: P,
375
+ setShouldRenderSpinner: E,
374
376
  children: t.children,
375
377
  loadingText: d,
376
378
  small: !0,
377
379
  renderText: b,
378
- textContentStyle: re,
380
+ textContentStyle: ie,
379
381
  StartIcon: t.StartIcon,
380
382
  EndIcon: t.EndIcon,
381
383
  withChevron: v
382
384
  }),
383
- disabled: t.disabled || i || m
385
+ disabled: t.disabled || r || m,
386
+ role: t.role
384
387
  };
385
388
  if (process.env.NODE_ENV !== "production" && (t.to === "" || t.href === "")) throw Error("to or href props are empty strings");
386
389
  if (t.onPress) return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
387
- ref: r
390
+ ref: i
388
391
  }, L), {
389
392
  onPress: (_)=>{
390
393
  const B = t.onPress(_);
@@ -392,20 +395,22 @@ const x = (param)=>{
392
395
  }
393
396
  }));
394
397
  if (t.to || t.to === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
395
- ref: r
398
+ ref: i
396
399
  }, L), {
397
400
  to: t.to,
398
- fullPageOnWebView: t.fullPageOnWebView
401
+ fullPageOnWebView: t.fullPageOnWebView,
402
+ onNavigate: t.onNavigate
399
403
  }));
400
404
  if (t.href || t.href === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
401
- ref: r
405
+ ref: i
402
406
  }, L), {
403
407
  href: t.href,
404
- newTab: t.newTab
408
+ newTab: t.newTab,
409
+ onNavigate: t.onNavigate
405
410
  }));
406
411
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
407
412
  return null;
408
- }), xe = /*#__PURE__*/ a.forwardRef((_param, r)=>{
413
+ }), xe = /*#__PURE__*/ a.forwardRef((_param, i)=>{
409
414
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
410
415
  "dataAttributes"
411
416
  ]);
@@ -414,10 +419,10 @@ const x = (param)=>{
414
419
  "component-name": "ButtonLink"
415
420
  }, e)
416
421
  }, t), {
417
- ref: r,
422
+ ref: i,
418
423
  type: "default"
419
424
  }));
420
- }), Re = /*#__PURE__*/ a.forwardRef((_param, r)=>{
425
+ }), Re = /*#__PURE__*/ a.forwardRef((_param, i)=>{
421
426
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
422
427
  "dataAttributes"
423
428
  ]);
@@ -427,10 +432,10 @@ const x = (param)=>{
427
432
  }, e)
428
433
  }, t), {
429
434
  withChevron: !1,
430
- ref: r,
435
+ ref: i,
431
436
  type: "danger"
432
437
  }));
433
- }), ke = /*#__PURE__*/ a.forwardRef((_param, r)=>{
438
+ }), ke = /*#__PURE__*/ a.forwardRef((_param, i)=>{
434
439
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
435
440
  "dataAttributes"
436
441
  ]);
@@ -439,10 +444,10 @@ const x = (param)=>{
439
444
  "component-name": "ButtonPrimary"
440
445
  }, e)
441
446
  }, t), {
442
- ref: r,
447
+ ref: i,
443
448
  type: "primary"
444
449
  }));
445
- }), Be = /*#__PURE__*/ a.forwardRef((_param, r)=>{
450
+ }), Be = /*#__PURE__*/ a.forwardRef((_param, i)=>{
446
451
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
447
452
  "dataAttributes"
448
453
  ]);
@@ -451,10 +456,10 @@ const x = (param)=>{
451
456
  "component-name": "ButtonSecondary"
452
457
  }, e)
453
458
  }, t), {
454
- ref: r,
459
+ ref: i,
455
460
  type: "secondary"
456
461
  }));
457
- }), Ae = /*#__PURE__*/ a.forwardRef((_param, r)=>{
462
+ }), Ae = /*#__PURE__*/ a.forwardRef((_param, i)=>{
458
463
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
459
464
  "dataAttributes"
460
465
  ]);
@@ -463,7 +468,7 @@ const x = (param)=>{
463
468
  "component-name": "ButtonDanger"
464
469
  }, e)
465
470
  }, t), {
466
- ref: r,
471
+ ref: i,
467
472
  type: "danger"
468
473
  }));
469
474
  });
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./callout.css.ts.vanilla.css-mistica.js";
3
- var v = "_14g0jmy1 _1y2v1nf7g _1y2v1nf8p _1y2v1nf9y _1y2v1nfb7 _1y2v1nfh8 _1y2v1nfjz _1y2v1nfk9", _ = "_14g0jmy3 _1y2v1nfhu";
4
- export { v as container, _ as content };
3
+ var y = "_14g0jmy1 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfb9 _1y2v1nfha _1y2v1nfk1 _1y2v1nfkb", _ = "_14g0jmy3 _1y2v1nfhw";
4
+ export { y as container, _ as content };