@telefonica/mistica 14.41.0 → 14.42.1

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 (142) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/boxed.css-mistica.js +14 -5
  3. package/dist/boxed.css.d.ts +1 -0
  4. package/dist/boxed.d.ts +1 -0
  5. package/dist/boxed.js +11 -9
  6. package/dist/button-fixed-footer-layout.d.ts +1 -0
  7. package/dist/button-fixed-footer-layout.js +19 -14
  8. package/dist/button-layout.css-mistica.js +16 -13
  9. package/dist/button-layout.css.d.ts +1 -0
  10. package/dist/button-layout.js +15 -15
  11. package/dist/button.js +43 -35
  12. package/dist/carousel.d.ts +13 -0
  13. package/dist/carousel.js +325 -223
  14. package/dist/credit-card-expiration-field.js +30 -26
  15. package/dist/credit-card-number-field.css-mistica.js +7 -7
  16. package/dist/credit-card-number-field.js +59 -45
  17. package/dist/cvv-field.js +46 -41
  18. package/dist/date-field.css-mistica.js +14 -0
  19. package/dist/date-field.css.d.ts +1 -0
  20. package/dist/date-field.css.ts.vanilla.css-mistica.js +11 -0
  21. package/dist/date-field.js +41 -35
  22. package/dist/date-time-field.js +40 -34
  23. package/dist/date-time-picker.js +43 -45
  24. package/dist/decimal-field.js +26 -22
  25. package/dist/dialog-context.d.ts +24 -0
  26. package/dist/dialog-context.js +192 -0
  27. package/dist/dialog.css-mistica.js +15 -12
  28. package/dist/dialog.css.d.ts +1 -0
  29. package/dist/dialog.d.ts +14 -44
  30. package/dist/dialog.js +163 -246
  31. package/dist/double-field.css-mistica.js +3 -2
  32. package/dist/email-field.js +15 -11
  33. package/dist/feedback.css-mistica.js +23 -14
  34. package/dist/feedback.css.d.ts +7 -4
  35. package/dist/feedback.js +157 -143
  36. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  37. package/dist/fixed-footer-layout.js +9 -8
  38. package/dist/iban-field.js +31 -27
  39. package/dist/icons/icon-amex.d.ts +1 -1
  40. package/dist/icons/icon-cvv-amex.d.ts +1 -1
  41. package/dist/icons/icon-cvv-visa-mc.d.ts +1 -1
  42. package/dist/icons/icon-mastercard.d.ts +1 -1
  43. package/dist/icons/icon-visa.d.ts +1 -1
  44. package/dist/index.d.ts +2 -2
  45. package/dist/index.js +16 -4
  46. package/dist/inline.css-mistica.js +9 -6
  47. package/dist/inline.css.d.ts +1 -1
  48. package/dist/inline.js +9 -9
  49. package/dist/integer-field.js +17 -13
  50. package/dist/loading-bar.css-mistica.js +4 -7
  51. package/dist/loading-bar.css.d.ts +0 -2
  52. package/dist/loading-bar.js +3 -6
  53. package/dist/month-field.js +39 -33
  54. package/dist/package-version.js +1 -1
  55. package/dist/password-field.js +46 -44
  56. package/dist/phone-number-field.js +50 -46
  57. package/dist/pin-field.css-mistica.js +12 -6
  58. package/dist/pin-field.css.d.ts +2 -0
  59. package/dist/pin-field.d.ts +3 -1
  60. package/dist/pin-field.js +129 -95
  61. package/dist/responsive-layout.css-mistica.js +10 -7
  62. package/dist/responsive-layout.css.d.ts +2 -1
  63. package/dist/responsive-layout.d.ts +1 -1
  64. package/dist/responsive-layout.js +20 -17
  65. package/dist/search-field.js +36 -35
  66. package/dist/select.css-mistica.js +16 -15
  67. package/dist/select.css.d.ts +1 -0
  68. package/dist/select.js +138 -143
  69. package/dist/text-field-base.css-mistica.js +45 -21
  70. package/dist/text-field-base.css.d.ts +30 -7
  71. package/dist/text-field-base.d.ts +11 -0
  72. package/dist/text-field-base.js +175 -140
  73. package/dist/text-field-components.css-mistica.js +13 -21
  74. package/dist/text-field-components.css.d.ts +0 -3
  75. package/dist/text-field-components.d.ts +3 -0
  76. package/dist/text-field-components.js +38 -35
  77. package/dist/text-field.js +26 -22
  78. package/dist/text.css-mistica.js +7 -7
  79. package/dist/text.css.d.ts +0 -1
  80. package/dist/text.js +24 -24
  81. package/dist/theme-context-provider.js +2 -2
  82. package/dist/utils/platform.js +8 -11
  83. package/dist-es/boxed.css-mistica.js +3 -2
  84. package/dist-es/boxed.js +17 -15
  85. package/dist-es/button-fixed-footer-layout.js +29 -24
  86. package/dist-es/button-layout.css-mistica.js +7 -7
  87. package/dist-es/button-layout.js +23 -23
  88. package/dist-es/button.js +65 -57
  89. package/dist-es/carousel.js +373 -280
  90. package/dist-es/credit-card-expiration-field.js +34 -30
  91. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  92. package/dist-es/credit-card-number-field.js +84 -70
  93. package/dist-es/cvv-field.js +68 -63
  94. package/dist-es/date-field.css-mistica.js +5 -0
  95. package/dist-es/date-field.css.ts.vanilla.css-mistica.js +2 -0
  96. package/dist-es/date-field.js +46 -40
  97. package/dist-es/date-time-field.js +47 -41
  98. package/dist-es/date-time-picker.js +55 -57
  99. package/dist-es/decimal-field.js +31 -27
  100. package/dist-es/dialog-context.js +125 -0
  101. package/dist-es/dialog.css-mistica.js +3 -3
  102. package/dist-es/dialog.js +193 -262
  103. package/dist-es/double-field.css-mistica.js +3 -2
  104. package/dist-es/email-field.js +16 -12
  105. package/dist-es/feedback.css-mistica.js +2 -2
  106. package/dist-es/feedback.js +196 -182
  107. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  108. package/dist-es/fixed-footer-layout.js +21 -20
  109. package/dist-es/iban-field.js +42 -38
  110. package/dist-es/index.js +1778 -1778
  111. package/dist-es/inline.css-mistica.js +3 -3
  112. package/dist-es/inline.js +18 -18
  113. package/dist-es/integer-field.js +21 -17
  114. package/dist-es/loading-bar.css-mistica.js +2 -2
  115. package/dist-es/loading-bar.js +10 -13
  116. package/dist-es/month-field.js +47 -41
  117. package/dist-es/package-version.js +1 -1
  118. package/dist-es/password-field.js +54 -52
  119. package/dist-es/phone-number-field.js +53 -49
  120. package/dist-es/pin-field.css-mistica.js +2 -2
  121. package/dist-es/pin-field.js +145 -111
  122. package/dist-es/responsive-layout.css-mistica.js +3 -3
  123. package/dist-es/responsive-layout.js +27 -24
  124. package/dist-es/search-field.js +45 -44
  125. package/dist-es/select.css-mistica.js +8 -7
  126. package/dist-es/select.js +167 -172
  127. package/dist-es/style.css +1 -1
  128. package/dist-es/text-field-base.css-mistica.js +2 -2
  129. package/dist-es/text-field-base.js +189 -157
  130. package/dist-es/text-field-components.css-mistica.js +3 -2
  131. package/dist-es/text-field-components.js +52 -49
  132. package/dist-es/text-field.js +31 -27
  133. package/dist-es/text.css-mistica.js +3 -3
  134. package/dist-es/text.js +32 -32
  135. package/dist-es/theme-context-provider.js +1 -1
  136. package/dist-es/utils/platform.js +6 -6
  137. package/package.json +1 -1
  138. package/dist/password-field.css-mistica.js +0 -13
  139. package/dist/password-field.css.d.ts +0 -1
  140. package/dist-es/password-field.css-mistica.js +0 -4
  141. /package/dist/{password-field.css.ts.vanilla.css-mistica.js → boxed.css.ts.vanilla.css-mistica.js} +0 -0
  142. /package/dist-es/{password-field.css.ts.vanilla.css-mistica.js → boxed.css.ts.vanilla.css-mistica.js} +0 -0
package/dist-es/boxed.js CHANGED
@@ -53,19 +53,19 @@ function _object_spread_props(target, source) {
53
53
  }
54
54
  import { jsx as a } from "react/jsx-runtime";
55
55
  import * as i from "react";
56
- import g from "classnames";
57
- import { useIsInverseVariant as B, ThemeVariant as k } from "./theme-variant-context.js";
58
- import { getPrefixedDataAttributes as y } from "./utils/dom.js";
56
+ import k from "classnames";
57
+ import { useIsInverseVariant as y, ThemeVariant as B } from "./theme-variant-context.js";
58
+ import { getPrefixedDataAttributes as O } from "./utils/dom.js";
59
59
  import { vars as o } from "./skins/skin-contract.css-mistica.js";
60
- import { boxBorder as R } from "./boxed.css-mistica.js";
60
+ import { desktopOnly as R, boxBorder as h } from "./boxed.css-mistica.js";
61
61
  import { sprinkles as s } from "./sprinkles.css-mistica.js";
62
- const h = (e, r)=>e || r ? s({
62
+ const w = (e, r)=>e || r ? s({
63
63
  border: "none"
64
- }) : R, w = /*#__PURE__*/ i.forwardRef((param, v)=>{
65
- let { children: e, isInverse: r = !1, className: l, role: d, dataAttributes: m, "aria-label": b, "aria-labelledby": f, width: c, height: p, minHeight: u, borderRadius: x = o.borderRadii.container, background: t } = param;
66
- const n = B();
64
+ }) : h, C = /*#__PURE__*/ i.forwardRef((param, g)=>{
65
+ let { children: e, isInverse: r = !1, className: l, role: d, dataAttributes: m, "aria-label": b, "aria-labelledby": f, width: c, height: p, minHeight: u, borderRadius: x = o.borderRadii.container, background: t, desktopOnly: v } = param;
66
+ const n = y();
67
67
  return /* @__PURE__ */ a("div", _object_spread_props(_object_spread({
68
- ref: v,
68
+ ref: g,
69
69
  style: {
70
70
  width: c,
71
71
  height: p,
@@ -73,21 +73,23 @@ const h = (e, r)=>e || r ? s({
73
73
  boxSizing: "border-box",
74
74
  background: t
75
75
  },
76
- className: g(l, h(n, r), s({
76
+ className: k(l, w(n, r), s({
77
77
  borderRadius: x,
78
78
  overflow: "hidden",
79
79
  background: (t !== null && t !== void 0 ? t : r) ? n ? o.colors.backgroundContainerBrandOverInverse : o.colors.backgroundContainerBrand : o.colors.backgroundContainer
80
- })),
80
+ }), {
81
+ [R]: v
82
+ }),
81
83
  role: d,
82
84
  "aria-label": b,
83
85
  "aria-labelledby": f
84
- }, y(m)), {
85
- children: /* @__PURE__ */ a(k, {
86
+ }, O(m)), {
87
+ children: /* @__PURE__ */ a(B, {
86
88
  isInverse: r,
87
89
  children: e
88
90
  })
89
91
  }));
90
- }), A = /*#__PURE__*/ i.forwardRef((e, r)=>/* @__PURE__ */ a(w, _object_spread_props(_object_spread({}, e), {
92
+ }), N = /*#__PURE__*/ i.forwardRef((e, r)=>/* @__PURE__ */ a(C, _object_spread_props(_object_spread({}, e), {
91
93
  ref: r
92
94
  })));
93
- export { A as Boxed, w as InternalBoxed };
95
+ export { N as Boxed, C as InternalBoxed };
@@ -1,32 +1,37 @@
1
1
  "use client";
2
- import { jsx as o, jsxs as d } from "react/jsx-runtime";
3
- import p from "./fixed-footer-layout.js";
4
- import c from "./button-layout.js";
5
- import { useScreenSize as x } from "./hooks.js";
6
- import { InternalResponsiveLayout as F } from "./responsive-layout.js";
7
- import h from "./box.js";
8
- const B = (param)=>{
9
- let { isFooterVisible: i = !0, button: t, secondaryButton: r, link: n, children: s, desktopButtonAlign: a = "left", footerBgColor: l, containerBgColor: m, onChangeFooterHeight: u } = param;
10
- const { isTabletOrSmaller: e, isTablet: f } = x();
11
- return /* @__PURE__ */ o(p, {
12
- onChangeFooterHeight: u,
13
- isFooterVisible: (!!t || !!r) && i,
14
- footerBgColor: l,
15
- containerBgColor: m,
16
- footer: /* @__PURE__ */ o(F, {
17
- children: /* @__PURE__ */ o(h, {
18
- paddingY: f ? 32 : e ? 16 : 0,
19
- children: /* @__PURE__ */ d(c, {
20
- align: e ? "full-width" : a,
21
- link: n,
2
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
3
+ import l from "./fixed-footer-layout.js";
4
+ import f from "./button-layout.js";
5
+ import { useScreenSize as h } from "./hooks.js";
6
+ import { InternalResponsiveLayout as x } from "./responsive-layout.js";
7
+ import c from "./box.js";
8
+ const F = (param)=>{
9
+ let { isFooterVisible: i = !0, button: t, secondaryButton: e, link: s, children: n, desktopButtonAlign: r, footerBgColor: a, containerBgColor: d, onChangeFooterHeight: m } = param;
10
+ const { isDesktopOrBigger: u } = h();
11
+ return /* @__PURE__ */ o(l, {
12
+ onChangeFooterHeight: m,
13
+ isFooterVisible: (!!t || !!e) && i,
14
+ footerBgColor: a,
15
+ containerBgColor: d,
16
+ footer: /* @__PURE__ */ o(x, {
17
+ shouldExpandWhenNested: "desktop",
18
+ children: /* @__PURE__ */ o(c, {
19
+ paddingY: {
20
+ mobile: 16,
21
+ tablet: 32,
22
+ desktop: 0
23
+ },
24
+ children: /* @__PURE__ */ p(f, {
25
+ align: u && r ? r : "full-width",
26
+ link: s,
22
27
  children: [
23
28
  t,
24
- r
29
+ e
25
30
  ]
26
31
  })
27
32
  })
28
33
  }),
29
- children: s
34
+ children: n
30
35
  });
31
- }, v = B;
32
- export { v as default };
36
+ }, S = F;
37
+ export { S as default };
@@ -1,10 +1,10 @@
1
1
  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
- var i = "kfxylhg", l = {
5
- right: "_1y2v1nfgs",
6
- left: "_1y2v1nfgq",
7
- center: "_1y2v1nfgr",
8
- "full-width": "kfxylhf _1y2v1nfgr"
9
- }, a = "kfxylh5 _1y2v1nfgi", v = "kfxylh6", y = "kfxylh7", h = "kfxylh2 _1y2v1nfgi _1y2v1nfh5", t = "kfxylh3", e = "kfxylh0";
10
- export { i as alignMoreThanOneChildren, l as alignVariant, a as baseContainer, v as container, y as fullWidthContainer, h as link, t as linkAlignment, e as margins };
4
+ var r = "kfxylhh", y = {
5
+ right: "kfxylhd _1y2v1nfgs",
6
+ left: "kfxylhe _1y2v1nfgq",
7
+ center: "kfxylhf _1y2v1nfgr",
8
+ "full-width": "kfxylhg _1y2v1nfgr"
9
+ }, h = "kfxylh6 _1y2v1nfgi _1y2v1nfgx", i = "kfxylh7", a = "kfxylh8", v = "kfxylh3 kfxylh2 _1y2v1nfgi _1y2v1nfh5", t = "kfxylh4", k = "kfxylh2 _1y2v1nfgi _1y2v1nfh5", x = "kfxylh0";
10
+ export { r as alignMoreThanOneChildren, y as alignVariant, h as baseContainer, i as container, a as fullWidthContainer, v as link, t as linkAlignment, k as linkWithTwoButtons, x as margins };
@@ -51,40 +51,40 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsxs as y, jsx as e } from "react/jsx-runtime";
55
- import * as a from "react";
56
- import { ButtonSecondary as g, ButtonDanger as B, ButtonPrimary as x } from "./button.js";
57
- import i from "classnames";
54
+ import { jsxs as g, jsx as a } from "react/jsx-runtime";
55
+ import * as i from "react";
56
+ import { ButtonSecondary as y, ButtonDanger as B, ButtonPrimary as x } from "./button.js";
57
+ import s from "classnames";
58
58
  import { getPrefixedDataAttributes as C } from "./utils/dom.js";
59
- import { baseContainer as b, alignVariant as k, fullWidthContainer as v, container as A, alignMoreThanOneChildren as L, link as N, linkAlignment as O, margins as j } from "./button-layout.css-mistica.js";
60
- const s = [
61
- g,
59
+ import { baseContainer as k, alignVariant as w, fullWidthContainer as b, container as v, alignMoreThanOneChildren as A, linkWithTwoButtons as L, link as N, linkAlignment as O, margins as j } from "./button-layout.css-mistica.js";
60
+ const l = [
61
+ y,
62
62
  B,
63
63
  x
64
- ], w = (param)=>{
65
- let { children: n, align: t = "full-width", link: o, withMargins: l = !1, dataAttributes: u } = param;
66
- const c = a.Children.count(n), d = a.Children.toArray(n).sort((m, f)=>{
67
- const h = s.indexOf(m.type), p = s.indexOf(f.type);
64
+ ], D = (param)=>{
65
+ let { children: o, align: t = "full-width", link: e, withMargins: u = !1, dataAttributes: c } = param;
66
+ const d = i.Children.count(o), n = i.Children.toArray(o).sort((m, f)=>{
67
+ const h = l.indexOf(m.type), p = l.indexOf(f.type);
68
68
  return h - p;
69
- }), r = /* @__PURE__ */ y("div", _object_spread_props(_object_spread({
70
- className: i(b, k[t], t === "full-width" ? v : A, {
71
- [L]: c > 1
69
+ }), r = /* @__PURE__ */ g("div", _object_spread_props(_object_spread({
70
+ className: s(k, w[t], t === "full-width" ? b : v, {
71
+ [A]: d > 1
72
72
  })
73
- }, C(u, "ButtonLayout")), {
73
+ }, C(c, "ButtonLayout")), {
74
74
  children: [
75
- o ? /* @__PURE__ */ e("div", {
76
- className: i(N, {
77
- [O]: t === "left"
75
+ e ? /* @__PURE__ */ a("div", {
76
+ className: s(n.length > 1 ? L : N, {
77
+ [O]: (t === "left" || t === "full-width") && n.length > 1
78
78
  }),
79
79
  "data-link": "true",
80
- children: o
80
+ children: e
81
81
  }) : null,
82
- d
82
+ n
83
83
  ]
84
84
  }));
85
- return l ? /* @__PURE__ */ e("div", {
85
+ return u ? /* @__PURE__ */ a("div", {
86
86
  className: j,
87
87
  children: r
88
88
  }) : r;
89
- }, T = w;
90
- export { T as default };
89
+ }, S = D;
90
+ export { S as default };
package/dist-es/button.js CHANGED
@@ -78,22 +78,22 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as n, jsxs as N, Fragment as W } from "react/jsx-runtime";
81
+ import { jsx as n, jsxs as S, Fragment as W } from "react/jsx-runtime";
82
82
  import * as a from "react";
83
- import T from "classnames";
83
+ import D from "classnames";
84
84
  import K from "./spinner.js";
85
85
  import { BaseTouchable as g } from "./touchable.js";
86
- import { useIsInverseVariant as D } from "./theme-variant-context.js";
87
- import { useForm as O } from "./form-context.js";
88
- import { pxToRem as V } from "./utils/css.js";
86
+ import { useIsInverseVariant as O } from "./theme-variant-context.js";
87
+ import { useForm as V } from "./form-context.js";
88
+ import { pxToRem as C } 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 S } from "./utils/common.js";
91
+ import { getTextFromChildren as w } 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 B, PADDING_Y_LINK as A, 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";
96
- const _ = (param)=>{
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";
96
+ const x = (param)=>{
97
97
  let { content: e, defaultIconSize: t, renderText: r } = param;
98
98
  const s = J(e), u = s.length, c = [];
99
99
  let l = [];
@@ -116,25 +116,25 @@ const _ = (param)=>{
116
116
  marginRight: o ? 0 : E
117
117
  },
118
118
  children: /*#__PURE__*/ a.cloneElement(d, {
119
- size: V(v)
119
+ size: C(v)
120
120
  })
121
121
  }, c.length));
122
122
  } else l.push(d), o && f();
123
123
  }), c;
124
124
  }, fe = ()=>/* @__PURE__ */ n("svg", {
125
125
  width: "0.5em",
126
- height: "1.25em",
127
- viewBox: "0 0 8 20",
126
+ height: "0.5em",
127
+ viewBox: "0 0 8 8",
128
128
  children: /* @__PURE__ */ n("path", {
129
- d: "M6.32595 11.0107L3.03801 7.7086L3.03292 7.70375L3.032 7.70291L3.02931 7.70047L3.02848 7.69974L3.02248 7.69436C2.88533 7.57121 2.71386 7.53733 2.56343 7.55395C2.41648 7.57018 2.27272 7.63567 2.16886 7.73711C2.06893 7.83185 2.01209 7.97816 2.00175 8.11707C1.99083 8.26377 2.02925 8.43959 2.16869 8.57393L5.24446 11.5515L2.15859 14.512L2.15375 14.5171L2.1529 14.518L2.15046 14.5207L2.14974 14.5215L2.14435 14.5275C2.02121 14.6647 1.98733 14.8361 2.00394 14.9866C2.02017 15.1335 2.08567 15.2773 2.18711 15.3811C2.28184 15.4811 2.42816 15.5379 2.56706 15.5483C2.71377 15.5592 2.88958 15.5208 3.02392 15.3813L6.32595 12.0922C6.6246 11.7936 6.6246 11.3094 6.32595 11.0107Z",
129
+ d: "M6.32595 3.46071L3.03801 0.158595L3.03292 0.153747L3.032 0.152903L3.02931 0.150463L3.02848 0.149738L3.02248 0.144353C2.88533 0.021206 2.71386 -0.0126731 2.56343 0.00394249C2.41648 0.0201739 2.27272 0.0856702 2.16886 0.18711C2.06893 0.281844 2.01209 0.42816 2.00175 0.567065C1.99083 0.71377 2.02925 0.889583 2.16869 1.02392L5.24446 4.00145L2.15859 6.96199L2.15375 6.96708L2.1529 6.968L2.15046 6.97069L2.14974 6.97152L2.14435 6.97752C2.02121 7.11467 1.98733 7.28614 2.00394 7.43657C2.02017 7.58352 2.08567 7.72728 2.18711 7.83114C2.28184 7.93107 2.42816 7.98791 2.56706 7.99825C2.71377 8.00917 2.88958 7.97075 3.02392 7.83132L6.32595 4.5422V4.5422C6.6246 4.24355 6.6246 3.75935 6.32595 3.46071V3.46071Z",
130
130
  fill: "currentColor"
131
131
  })
132
132
  }), X = (param)=>{
133
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 = V(r ? ie : ae);
135
- return /* @__PURE__ */ N(W, {
134
+ const o = r ? ue : me, i = C(r ? ie : ae);
135
+ return /* @__PURE__ */ S(W, {
136
136
  children: [
137
- /* @__PURE__ */ N("div", {
137
+ /* @__PURE__ */ S("div", {
138
138
  "aria-hidden": e ? !0 : void 0,
139
139
  className: f,
140
140
  children: [
@@ -145,14 +145,30 @@ const _ = (param)=>{
145
145
  marginRight: E
146
146
  },
147
147
  children: /* @__PURE__ */ n(d, {
148
- size: o,
148
+ size: C(o),
149
149
  color: "currentColor"
150
150
  })
151
151
  }),
152
- _({
153
- content: t,
154
- defaultIconSize: o,
155
- renderText: l
152
+ /* @__PURE__ */ S("div", {
153
+ style: {
154
+ display: "flex",
155
+ alignItems: "baseline"
156
+ },
157
+ children: [
158
+ x({
159
+ content: t,
160
+ defaultIconSize: o,
161
+ renderText: l
162
+ }),
163
+ h && /* @__PURE__ */ n("div", {
164
+ style: {
165
+ display: "flex",
166
+ alignItems: "center",
167
+ marginLeft: oe
168
+ },
169
+ children: /* @__PURE__ */ n(fe, {})
170
+ })
171
+ ]
156
172
  }),
157
173
  m && !h && /* @__PURE__ */ n("div", {
158
174
  style: {
@@ -161,17 +177,9 @@ const _ = (param)=>{
161
177
  marginLeft: E
162
178
  },
163
179
  children: /* @__PURE__ */ n(m, {
164
- size: o,
180
+ size: C(o),
165
181
  color: "currentColor"
166
182
  })
167
- }),
168
- h && /* @__PURE__ */ n("div", {
169
- style: {
170
- display: "flex",
171
- alignItems: "center",
172
- marginLeft: oe
173
- },
174
- children: /* @__PURE__ */ n(fe, {})
175
183
  })
176
184
  ]
177
185
  }),
@@ -182,13 +190,13 @@ const _ = (param)=>{
182
190
  paddingLeft: i,
183
191
  paddingRight: E + 2 * (r ? le : ce)
184
192
  } : void 0,
185
- children: _({
193
+ children: x({
186
194
  content: s,
187
195
  defaultIconSize: o,
188
196
  renderText: l
189
197
  })
190
198
  }),
191
- /* @__PURE__ */ N("div", {
199
+ /* @__PURE__ */ S("div", {
192
200
  "aria-hidden": e ? void 0 : !0,
193
201
  className: de,
194
202
  onTransitionEnd: ()=>{
@@ -209,7 +217,7 @@ const _ = (param)=>{
209
217
  }),
210
218
  s ? /* @__PURE__ */ n($, {
211
219
  paddingLeft: 8,
212
- children: _({
220
+ children: x({
213
221
  content: s,
214
222
  defaultIconSize: o,
215
223
  renderText: l
@@ -220,7 +228,7 @@ const _ = (param)=>{
220
228
  ]
221
229
  });
222
230
  }, k = /*#__PURE__*/ a.forwardRef((e, t)=>{
223
- const { textPresets: r } = R(), { eventFormat: s } = F(), { formStatus: u, formId: c } = O(), l = D(), { 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: 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);
224
232
  a.useEffect(()=>{
225
233
  i && !v && I(!0);
226
234
  }, [
@@ -232,12 +240,12 @@ const _ = (param)=>{
232
240
  const P = ()=>s === "google-analytics-4" ? {
233
241
  name: z.userInteraction,
234
242
  component_type: `${e.type}_button`,
235
- component_copy: S(e.children)
243
+ component_copy: w(e.children)
236
244
  } : {
237
245
  category: M.userInteraction,
238
246
  action: `${e.type}_button_tapped`,
239
- label: S(e.children)
240
- }, C = (y)=>e.small ? /* @__PURE__ */ n(j, {
247
+ label: w(e.children)
248
+ }, N = (y)=>e.small ? /* @__PURE__ */ n(j, {
241
249
  size: 14,
242
250
  lineHeight: 20,
243
251
  weight: r.button.weight,
@@ -253,7 +261,7 @@ const _ = (param)=>{
253
261
  children: y
254
262
  }), b = {
255
263
  ref: t,
256
- className: T(l ? Q[e.type] : U[e.type], e.className, {
264
+ className: D(l ? Q[e.type] : U[e.type], e.className, {
257
265
  [p]: e.small,
258
266
  [G]: i
259
267
  }),
@@ -274,7 +282,7 @@ const _ = (param)=>{
274
282
  children: e.children,
275
283
  loadingText: f,
276
284
  small: e.small,
277
- renderText: C,
285
+ renderText: N,
278
286
  textContentStyle: ee,
279
287
  StartIcon: e.StartIcon,
280
288
  EndIcon: e.EndIcon
@@ -316,7 +324,7 @@ const _ = (param)=>{
316
324
  "type"
317
325
  ]);
318
326
  var _t_withChevron;
319
- const { formStatus: s } = O(), u = D(), { 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);
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);
320
328
  a.useEffect(()=>{
321
329
  i && !I && P(!0);
322
330
  }, [
@@ -325,35 +333,35 @@ const _ = (param)=>{
325
333
  s
326
334
  ]);
327
335
  var _t_trackingEvent;
328
- const C = ()=>l === "google-analytics-4" ? {
336
+ const N = ()=>l === "google-analytics-4" ? {
329
337
  name: z.userInteraction,
330
338
  component_type: e === "danger" ? "danger_link" : "link",
331
- component_copy: S(t.children)
339
+ component_copy: w(t.children)
332
340
  } : {
333
341
  category: M.userInteraction,
334
342
  action: q.linkTapped,
335
- label: S(t.children)
336
- }, b = (w)=>/* @__PURE__ */ n(Y, {
343
+ label: w(t.children)
344
+ }, b = (_)=>/* @__PURE__ */ n(Y, {
337
345
  weight: c.button.weight,
338
346
  truncate: 1,
339
347
  color: "inherit",
340
- children: w
348
+ children: _
341
349
  }), y = e === "danger" && f && u ? "dangerDark" : e, L = {
342
- className: T(u ? te[y] : ne[y], {
350
+ className: D(u ? te[y] : ne[y], {
343
351
  [G]: i
344
352
  }),
345
353
  /**
346
354
  * Setting bleed classes with style to override the margin:0 set by the Touchable component.
347
355
  * If we set it using className, it may not work depending on the order in which the styles are applied.
348
356
  */ style: _object_spread({}, t.bleedLeft || t.aligned ? {
349
- marginLeft: -B
357
+ marginLeft: -A
350
358
  } : void 0, t.bleedRight ? {
351
- marginRight: -B
359
+ marginRight: -A
352
360
  } : void 0, t.bleedY ? {
353
- marginTop: -A,
354
- marginBottom: -A
361
+ marginTop: -T,
362
+ marginBottom: -T
355
363
  } : void 0),
356
- trackingEvent: (_t_trackingEvent = t.trackingEvent) !== null && _t_trackingEvent !== void 0 ? _t_trackingEvent : t.trackEvent ? C() : void 0,
364
+ trackingEvent: (_t_trackingEvent = t.trackingEvent) !== null && _t_trackingEvent !== void 0 ? _t_trackingEvent : t.trackEvent ? N() : void 0,
357
365
  dataAttributes: t.dataAttributes,
358
366
  "aria-label": t["aria-label"],
359
367
  "aria-controls": t["aria-controls"],
@@ -378,9 +386,9 @@ const _ = (param)=>{
378
386
  if (t.onPress) return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
379
387
  ref: r
380
388
  }, L), {
381
- onPress: (w)=>{
382
- const x = t.onPress(w);
383
- x && (o(!0), x.finally(()=>o(!1)));
389
+ onPress: (_)=>{
390
+ const B = t.onPress(_);
391
+ B && (o(!0), B.finally(()=>o(!1)));
384
392
  }
385
393
  }));
386
394
  if (t.to || t.to === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
@@ -397,7 +405,7 @@ const _ = (param)=>{
397
405
  }));
398
406
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
399
407
  return null;
400
- }), Re = /*#__PURE__*/ a.forwardRef((_param, r)=>{
408
+ }), xe = /*#__PURE__*/ a.forwardRef((_param, r)=>{
401
409
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
402
410
  "dataAttributes"
403
411
  ]);
@@ -409,7 +417,7 @@ const _ = (param)=>{
409
417
  ref: r,
410
418
  type: "default"
411
419
  }));
412
- }), ke = /*#__PURE__*/ a.forwardRef((_param, r)=>{
420
+ }), Re = /*#__PURE__*/ a.forwardRef((_param, r)=>{
413
421
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
414
422
  "dataAttributes"
415
423
  ]);
@@ -422,7 +430,7 @@ const _ = (param)=>{
422
430
  ref: r,
423
431
  type: "danger"
424
432
  }));
425
- }), xe = /*#__PURE__*/ a.forwardRef((_param, r)=>{
433
+ }), ke = /*#__PURE__*/ a.forwardRef((_param, r)=>{
426
434
  var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
427
435
  "dataAttributes"
428
436
  ]);
@@ -459,4 +467,4 @@ const _ = (param)=>{
459
467
  type: "danger"
460
468
  }));
461
469
  });
462
- export { Ae as ButtonDanger, Re as ButtonLink, ke as ButtonLinkDanger, xe as ButtonPrimary, Be as ButtonSecondary };
470
+ export { Ae as ButtonDanger, xe as ButtonLink, Re as ButtonLinkDanger, ke as ButtonPrimary, Be as ButtonSecondary };