@telefonica/mistica 14.36.0 → 14.37.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 (190) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/avatar.css-mistica.js +1 -1
  4. package/dist/badge.css-mistica.js +3 -3
  5. package/dist/boxed.css-mistica.js +1 -1
  6. package/dist/button-group.css-mistica.js +1 -1
  7. package/dist/button-layout.css-mistica.js +10 -10
  8. package/dist/button.css-mistica.js +40 -32
  9. package/dist/button.css.d.ts +7 -4
  10. package/dist/button.d.ts +4 -2
  11. package/dist/button.js +176 -148
  12. package/dist/callout.css-mistica.js +1 -1
  13. package/dist/card.css-mistica.js +22 -22
  14. package/dist/card.js +10 -10
  15. package/dist/carousel.css-mistica.js +18 -18
  16. package/dist/checkbox.css-mistica.js +10 -10
  17. package/dist/checkbox.css.d.ts +1 -1
  18. package/dist/chip.css-mistica.js +8 -8
  19. package/dist/circle.css-mistica.js +2 -2
  20. package/dist/community/advanced-data-card.css-mistica.js +13 -13
  21. package/dist/community/blocks.css-mistica.js +1 -1
  22. package/dist/counter.css-mistica.js +7 -7
  23. package/dist/credit-card-number-field.css-mistica.js +3 -3
  24. package/dist/dialog.css-mistica.js +11 -11
  25. package/dist/double-field.css-mistica.js +4 -4
  26. package/dist/empty-state-card.css-mistica.js +2 -2
  27. package/dist/empty-state.css-mistica.js +6 -6
  28. package/dist/feedback.css-mistica.js +6 -6
  29. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  30. package/dist/grid.css-mistica.js +118 -120
  31. package/dist/grid.css.d.ts +0 -2
  32. package/dist/grid.d.ts +2 -2
  33. package/dist/grid.js +41 -26
  34. package/dist/header.css-mistica.js +1 -1
  35. package/dist/hero.css-mistica.js +5 -5
  36. package/dist/highlighted-card.css-mistica.js +7 -7
  37. package/dist/horizontal-scroll.css-mistica.js +3 -3
  38. package/dist/icon-button.css-mistica.js +2 -2
  39. package/dist/image.css-mistica.js +3 -3
  40. package/dist/image.d.ts +1 -1
  41. package/dist/image.js +24 -24
  42. package/dist/index.d.ts +2 -1
  43. package/dist/index.js +10 -0
  44. package/dist/list.css-mistica.js +16 -16
  45. package/dist/loading-bar.css-mistica.js +7 -7
  46. package/dist/maybe-dismissable.css-mistica.js +1 -1
  47. package/dist/menu.css-mistica.js +1 -1
  48. package/dist/mosaic.css-mistica.js +23 -0
  49. package/dist/mosaic.css.d.ts +6 -0
  50. package/dist/mosaic.css.ts.vanilla.css-mistica.js +11 -0
  51. package/dist/mosaic.d.ts +15 -0
  52. package/dist/mosaic.js +206 -0
  53. package/dist/navigation-bar.css-mistica.js +24 -24
  54. package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
  55. package/dist/package-version.js +1 -1
  56. package/dist/password-field.css-mistica.js +1 -1
  57. package/dist/pin-field.css-mistica.js +6 -6
  58. package/dist/popover.css-mistica.js +10 -10
  59. package/dist/progress-bar.css-mistica.js +5 -5
  60. package/dist/radio-button.css-mistica.js +11 -11
  61. package/dist/responsive-layout.css-mistica.js +3 -3
  62. package/dist/screen-reader-only.css-mistica.js +2 -2
  63. package/dist/select.css-mistica.js +14 -14
  64. package/dist/sheet.css-mistica.js +11 -11
  65. package/dist/sheet.js +8 -8
  66. package/dist/skeletons.css-mistica.js +3 -3
  67. package/dist/skins/blau.js +8 -2
  68. package/dist/skins/movistar-legacy.js +6 -0
  69. package/dist/skins/movistar.js +6 -0
  70. package/dist/skins/o2-classic.js +6 -0
  71. package/dist/skins/o2.js +6 -0
  72. package/dist/skins/skin-contract.css-mistica.js +205 -199
  73. package/dist/skins/skin-contract.css.d.ts +6 -0
  74. package/dist/skins/telefonica.js +6 -0
  75. package/dist/skins/types/colors.d.ts +3 -0
  76. package/dist/skins/vivo-new.js +6 -0
  77. package/dist/skins/vivo.js +6 -0
  78. package/dist/slider.css-mistica.js +7 -7
  79. package/dist/snackbar.css-mistica.js +14 -14
  80. package/dist/spinner.css-mistica.js +1 -1
  81. package/dist/sprinkles.css-mistica.js +921 -407
  82. package/dist/sprinkles.css.d.ts +21 -1
  83. package/dist/stacking-group.css-mistica.js +2 -2
  84. package/dist/stepper.css-mistica.js +9 -9
  85. package/dist/switch-component.css-mistica.js +23 -23
  86. package/dist/tabs.css-mistica.js +12 -12
  87. package/dist/tag.css-mistica.js +1 -1
  88. package/dist/text-field-base.css-mistica.js +9 -9
  89. package/dist/text-field-components.css-mistica.js +11 -11
  90. package/dist/text-field-components.js +30 -26
  91. package/dist/text-link.css-mistica.js +3 -3
  92. package/dist/theme.d.ts +1 -1
  93. package/dist/theme.js +1 -0
  94. package/dist/tooltip.css-mistica.js +6 -6
  95. package/dist/touchable.css-mistica.js +3 -3
  96. package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
  97. package/dist/utils/aspect-ratio-support.d.ts +1 -1
  98. package/dist/utils/aspect-ratio-support.js +2 -1
  99. package/dist/utils/css.d.ts +1 -0
  100. package/dist/utils/css.js +15 -5
  101. package/dist/video.css-mistica.js +2 -2
  102. package/dist/video.js +30 -30
  103. package/dist-es/accordion.css-mistica.js +3 -3
  104. package/dist-es/avatar.css-mistica.js +1 -1
  105. package/dist-es/badge.css-mistica.js +2 -2
  106. package/dist-es/boxed.css-mistica.js +1 -1
  107. package/dist-es/button-group.css-mistica.js +1 -1
  108. package/dist-es/button-layout.css-mistica.js +7 -7
  109. package/dist-es/button.css-mistica.js +18 -10
  110. package/dist-es/button.js +213 -188
  111. package/dist-es/callout.css-mistica.js +1 -1
  112. package/dist-es/card.css-mistica.js +2 -2
  113. package/dist-es/card.js +10 -10
  114. package/dist-es/carousel.css-mistica.js +2 -2
  115. package/dist-es/checkbox.css-mistica.js +6 -6
  116. package/dist-es/chip.css-mistica.js +7 -7
  117. package/dist-es/circle.css-mistica.js +2 -2
  118. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  119. package/dist-es/community/blocks.css-mistica.js +1 -1
  120. package/dist-es/counter.css-mistica.js +2 -2
  121. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  122. package/dist-es/dialog.css-mistica.js +5 -5
  123. package/dist-es/double-field.css-mistica.js +4 -4
  124. package/dist-es/empty-state-card.css-mistica.js +2 -2
  125. package/dist-es/empty-state.css-mistica.js +3 -3
  126. package/dist-es/feedback.css-mistica.js +2 -2
  127. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  128. package/dist-es/grid.css-mistica.js +117 -119
  129. package/dist-es/grid.js +44 -29
  130. package/dist-es/header.css-mistica.js +1 -1
  131. package/dist-es/hero.css-mistica.js +2 -2
  132. package/dist-es/highlighted-card.css-mistica.js +5 -5
  133. package/dist-es/horizontal-scroll.css-mistica.js +2 -2
  134. package/dist-es/icon-button.css-mistica.js +2 -2
  135. package/dist-es/image.css-mistica.js +2 -2
  136. package/dist-es/image.js +47 -47
  137. package/dist-es/index.js +1794 -1793
  138. package/dist-es/list.css-mistica.js +2 -2
  139. package/dist-es/loading-bar.css-mistica.js +2 -2
  140. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  141. package/dist-es/menu.css-mistica.js +1 -1
  142. package/dist-es/mosaic.css-mistica.js +3 -0
  143. package/dist-es/mosaic.css.ts.vanilla.css-mistica.js +2 -0
  144. package/dist-es/mosaic.js +189 -0
  145. package/dist-es/navigation-bar.css-mistica.js +12 -12
  146. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  147. package/dist-es/package-version.js +1 -1
  148. package/dist-es/password-field.css-mistica.js +1 -1
  149. package/dist-es/pin-field.css-mistica.js +2 -2
  150. package/dist-es/popover.css-mistica.js +2 -2
  151. package/dist-es/progress-bar.css-mistica.js +2 -2
  152. package/dist-es/radio-button.css-mistica.js +6 -6
  153. package/dist-es/responsive-layout.css-mistica.js +3 -3
  154. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  155. package/dist-es/select.css-mistica.js +11 -11
  156. package/dist-es/sheet.css-mistica.js +2 -2
  157. package/dist-es/sheet.js +8 -8
  158. package/dist-es/skeletons.css-mistica.js +2 -2
  159. package/dist-es/skins/blau.js +8 -2
  160. package/dist-es/skins/movistar-legacy.js +8 -2
  161. package/dist-es/skins/movistar.js +6 -0
  162. package/dist-es/skins/o2-classic.js +6 -0
  163. package/dist-es/skins/o2.js +6 -0
  164. package/dist-es/skins/skin-contract.css-mistica.js +205 -199
  165. package/dist-es/skins/telefonica.js +6 -0
  166. package/dist-es/skins/vivo-new.js +6 -0
  167. package/dist-es/skins/vivo.js +6 -0
  168. package/dist-es/slider.css-mistica.js +2 -2
  169. package/dist-es/snackbar.css-mistica.js +5 -5
  170. package/dist-es/spinner.css-mistica.js +1 -1
  171. package/dist-es/sprinkles.css-mistica.js +921 -407
  172. package/dist-es/stacking-group.css-mistica.js +2 -2
  173. package/dist-es/stepper.css-mistica.js +2 -2
  174. package/dist-es/style.css +1 -1
  175. package/dist-es/switch-component.css-mistica.js +18 -18
  176. package/dist-es/tabs.css-mistica.js +7 -7
  177. package/dist-es/tag.css-mistica.js +1 -1
  178. package/dist-es/text-field-base.css-mistica.js +2 -2
  179. package/dist-es/text-field-components.css-mistica.js +2 -2
  180. package/dist-es/text-field-components.js +49 -44
  181. package/dist-es/text-link.css-mistica.js +3 -3
  182. package/dist-es/theme.js +1 -0
  183. package/dist-es/tooltip.css-mistica.js +2 -2
  184. package/dist-es/touchable.css-mistica.js +2 -2
  185. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  186. package/dist-es/utils/aspect-ratio-support.js +2 -1
  187. package/dist-es/utils/css.js +15 -8
  188. package/dist-es/video.css-mistica.js +2 -2
  189. package/dist-es/video.js +31 -31
  190. package/package.json +1 -1
package/dist-es/button.js CHANGED
@@ -78,204 +78,204 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as t, jsxs as C, Fragment as G } from "react/jsx-runtime";
81
+ import { jsx as n, jsxs as N, Fragment as W } from "react/jsx-runtime";
82
82
  import * as a from "react";
83
- import k from "classnames";
84
- import M from "./spinner.js";
85
- import { BaseTouchable as b } from "./touchable.js";
86
- import { useIsInverseVariant as A } from "./theme-variant-context.js";
87
- import { useForm as T } from "./form-context.js";
88
- import { pxToRem as B } from "./utils/css.js";
89
- import { Text as X, Text3 as Z, Text2 as W } from "./text.js";
90
- import K from "./box.js";
91
- import { getTextFromChildren as P } from "./utils/common.js";
92
- import { useTrackingConfig as j, eventNames as O, eventCategories as D, eventActions as H } from "./utils/analytics.js";
93
- import { useTheme as V } from "./hooks.js";
94
- import { flattenChildren as Y } from "./skins/utils.js";
95
- import { inverseVariants as $, variants as q, small as J, isLoading as F, textContent as Q, link as U, inverseLink as p, PADDING_X_LINK as x, PADDING_Y_LINK as R, textContentLink as ee, SMALL_SPINNER_SIZE as te, SPINNER_SIZE as ne, ICON_MARGIN_PX as E, CHEVRON_MARGIN_LEFT_LINK as ie, loadingFiller as re, X_SMALL_PADDING_PX as ae, X_PADDING_PX as oe, loadingContent as se, SMALL_ICON_SIZE as le, ICON_SIZE as ce } from "./button.css-mistica.js";
96
- const N = (param)=>{
97
- let { content: e, defaultIconSize: r, renderText: n } = param;
98
- const l = Y(e), f = l.length, d = [];
99
- let c = [];
100
- const g = ()=>{
101
- d.push(/* @__PURE__ */ t(a.Fragment, {
102
- children: n(c)
103
- }, d.length)), c = [];
83
+ import T from "classnames";
84
+ import K from "./spinner.js";
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";
89
+ import { Text as j, Text3 as H, Text2 as Y } from "./text.js";
90
+ import $ from "./box.js";
91
+ import { getTextFromChildren as S } from "./utils/common.js";
92
+ import { useTrackingConfig as F, eventNames as z, eventCategories as M, eventActions as q } from "./utils/analytics.js";
93
+ import { useTheme as R } from "./hooks.js";
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)=>{
97
+ let { content: e, defaultIconSize: t, renderText: r } = param;
98
+ const s = J(e), u = s.length, c = [];
99
+ let l = [];
100
+ const f = ()=>{
101
+ c.push(/* @__PURE__ */ n(a.Fragment, {
102
+ children: r(l)
103
+ }, c.length)), l = [];
104
104
  };
105
- return l.forEach((u, m)=>{
106
- const o = m === 0, s = m === f - 1;
107
- if (/*#__PURE__*/ a.isValidElement(u)) {
108
- c.length && g();
109
- var _u_props_size;
110
- const v = (_u_props_size = u.props.size) !== null && _u_props_size !== void 0 ? _u_props_size : r;
111
- d.push(/* @__PURE__ */ t("div", {
105
+ return s.forEach((d, m)=>{
106
+ const h = m === 0, o = m === u - 1;
107
+ if (/*#__PURE__*/ a.isValidElement(d)) {
108
+ l.length && f();
109
+ var _d_props_size;
110
+ const v = (_d_props_size = d.props.size) !== null && _d_props_size !== void 0 ? _d_props_size : t;
111
+ c.push(/* @__PURE__ */ n("div", {
112
112
  style: {
113
113
  display: "flex",
114
114
  alignItems: "center",
115
- marginLeft: o ? 0 : E,
116
- marginRight: s ? 0 : E
115
+ marginLeft: h ? 0 : E,
116
+ marginRight: o ? 0 : E
117
117
  },
118
- children: /*#__PURE__*/ a.cloneElement(u, {
119
- size: B(v)
118
+ children: /*#__PURE__*/ a.cloneElement(d, {
119
+ size: V(v)
120
120
  })
121
- }, d.length));
122
- } else c.push(u), s && g();
123
- }), d;
124
- }, de = ()=>/* @__PURE__ */ t("svg", {
121
+ }, c.length));
122
+ } else l.push(d), o && f();
123
+ }), c;
124
+ }, fe = ()=>/* @__PURE__ */ n("svg", {
125
125
  width: "0.5em",
126
126
  height: "1.25em",
127
127
  viewBox: "0 0 8 20",
128
- children: /* @__PURE__ */ t("path", {
128
+ children: /* @__PURE__ */ n("path", {
129
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",
130
130
  fill: "currentColor"
131
131
  })
132
- }), z = (param)=>{
133
- let { showSpinner: e, children: r, small: n, loadingText: l, shouldRenderSpinner: f, setShouldRenderSpinner: d, renderText: c, textContentStyle: g, StartIcon: u, EndIcon: m, withChevron: o } = param;
134
- const s = n ? le : ce, i = B(n ? te : ne);
135
- return /* @__PURE__ */ C(G, {
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 = V(r ? ie : ae);
135
+ return /* @__PURE__ */ N(W, {
136
136
  children: [
137
- /* @__PURE__ */ C("div", {
137
+ /* @__PURE__ */ N("div", {
138
138
  "aria-hidden": e ? !0 : void 0,
139
- className: g,
139
+ className: f,
140
140
  children: [
141
- u && /* @__PURE__ */ t("div", {
141
+ d && /* @__PURE__ */ n("div", {
142
142
  style: {
143
143
  display: "flex",
144
144
  alignItems: "center",
145
145
  marginRight: E
146
146
  },
147
- children: /* @__PURE__ */ t(u, {
148
- size: s,
147
+ children: /* @__PURE__ */ n(d, {
148
+ size: o,
149
149
  color: "currentColor"
150
150
  })
151
151
  }),
152
- N({
153
- content: r,
154
- defaultIconSize: s,
155
- renderText: c
152
+ _({
153
+ content: t,
154
+ defaultIconSize: o,
155
+ renderText: l
156
156
  }),
157
- m && !o && /* @__PURE__ */ t("div", {
157
+ m && !h && /* @__PURE__ */ n("div", {
158
158
  style: {
159
159
  display: "flex",
160
160
  alignItems: "center",
161
161
  marginLeft: E
162
162
  },
163
- children: /* @__PURE__ */ t(m, {
164
- size: s,
163
+ children: /* @__PURE__ */ n(m, {
164
+ size: o,
165
165
  color: "currentColor"
166
166
  })
167
167
  }),
168
- o && /* @__PURE__ */ t("div", {
168
+ h && /* @__PURE__ */ n("div", {
169
169
  style: {
170
170
  display: "flex",
171
171
  alignItems: "center",
172
- marginLeft: ie
172
+ marginLeft: oe
173
173
  },
174
- children: /* @__PURE__ */ t(de, {})
174
+ children: /* @__PURE__ */ n(fe, {})
175
175
  })
176
176
  ]
177
177
  }),
178
- /* @__PURE__ */ t("div", {
179
- className: re,
178
+ /* @__PURE__ */ n("div", {
179
+ className: se,
180
180
  "aria-hidden": !0,
181
- style: l ? {
181
+ style: s ? {
182
182
  paddingLeft: i,
183
- paddingRight: E + 2 * (n ? ae : oe)
183
+ paddingRight: E + 2 * (r ? le : ce)
184
184
  } : void 0,
185
- children: N({
186
- content: l,
187
- defaultIconSize: s,
188
- renderText: c
185
+ children: _({
186
+ content: s,
187
+ defaultIconSize: o,
188
+ renderText: l
189
189
  })
190
190
  }),
191
- /* @__PURE__ */ C("div", {
191
+ /* @__PURE__ */ N("div", {
192
192
  "aria-hidden": e ? void 0 : !0,
193
- className: se,
193
+ className: de,
194
194
  onTransitionEnd: ()=>{
195
- e !== f && d(e);
195
+ e !== u && c(e);
196
196
  },
197
197
  children: [
198
- f ? /* @__PURE__ */ t(M, {
199
- rolePresentation: !!l,
198
+ u ? /* @__PURE__ */ n(K, {
199
+ rolePresentation: !!s,
200
200
  color: "currentcolor",
201
201
  delay: "0s",
202
202
  size: i
203
- }) : /* @__PURE__ */ t("div", {
203
+ }) : /* @__PURE__ */ n("div", {
204
204
  style: {
205
205
  display: "inline-block",
206
206
  width: i,
207
207
  height: i
208
208
  }
209
209
  }),
210
- l ? /* @__PURE__ */ t(K, {
210
+ s ? /* @__PURE__ */ n($, {
211
211
  paddingLeft: 8,
212
- children: N({
213
- content: l,
214
- defaultIconSize: s,
215
- renderText: c
212
+ children: _({
213
+ content: s,
214
+ defaultIconSize: o,
215
+ renderText: l
216
216
  })
217
217
  }) : null
218
218
  ]
219
219
  })
220
220
  ]
221
221
  });
222
- }, _ = /*#__PURE__*/ a.forwardRef((e, r)=>{
223
- const { textPresets: n } = V(), { eventFormat: l } = j(), { formStatus: f, formId: d } = T(), c = A(), { loadingText: g } = e, u = !!e.submit, m = f === "sending", [o, s] = a.useState(!1), i = e.showSpinner || m && u || o, [v, L] = a.useState(!!i);
222
+ }, 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);
224
224
  a.useEffect(()=>{
225
- i && !v && L(!0);
225
+ i && !v && I(!0);
226
226
  }, [
227
227
  i,
228
228
  v,
229
- f
229
+ u
230
230
  ]);
231
231
  var _e_trackingEvent;
232
- const S = ()=>l === "google-analytics-4" ? {
233
- name: O.userInteraction,
232
+ const P = ()=>s === "google-analytics-4" ? {
233
+ name: z.userInteraction,
234
234
  component_type: `${e.type}_button`,
235
- component_copy: P(e.children)
235
+ component_copy: S(e.children)
236
236
  } : {
237
- category: D.userInteraction,
237
+ category: M.userInteraction,
238
238
  action: `${e.type}_button_tapped`,
239
- label: P(e.children)
240
- }, I = (y)=>e.small ? /* @__PURE__ */ t(X, {
239
+ label: S(e.children)
240
+ }, C = (y)=>e.small ? /* @__PURE__ */ n(j, {
241
241
  size: 14,
242
242
  lineHeight: 20,
243
- weight: n.button.weight,
243
+ weight: r.button.weight,
244
244
  truncate: 1,
245
245
  color: "inherit",
246
246
  as: "div",
247
247
  children: y
248
- }) : /* @__PURE__ */ t(Z, {
249
- weight: n.button.weight,
248
+ }) : /* @__PURE__ */ n(H, {
249
+ weight: r.button.weight,
250
250
  truncate: 1,
251
251
  color: "inherit",
252
252
  as: "div",
253
253
  children: y
254
- }), h = {
255
- ref: r,
256
- className: k(c ? $[e.type] : q[e.type], e.className, {
257
- [J]: e.small,
258
- [F]: i
254
+ }), b = {
255
+ ref: t,
256
+ className: T(l ? Q[e.type] : U[e.type], e.className, {
257
+ [p]: e.small,
258
+ [G]: i
259
259
  }),
260
260
  style: _object_spread({
261
261
  cursor: e.fake ? "pointer" : void 0
262
262
  }, e.style),
263
- trackingEvent: (_e_trackingEvent = e.trackingEvent) !== null && _e_trackingEvent !== void 0 ? _e_trackingEvent : e.trackEvent ? S() : void 0,
263
+ trackingEvent: (_e_trackingEvent = e.trackingEvent) !== null && _e_trackingEvent !== void 0 ? _e_trackingEvent : e.trackEvent ? P() : void 0,
264
264
  dataAttributes: e.dataAttributes,
265
265
  "aria-label": e["aria-label"],
266
266
  "aria-controls": e["aria-controls"],
267
267
  "aria-expanded": e["aria-expanded"],
268
268
  "aria-haspopup": e["aria-haspopup"],
269
269
  tabIndex: e.tabIndex,
270
- children: z({
270
+ children: X({
271
271
  showSpinner: i,
272
272
  shouldRenderSpinner: v,
273
- setShouldRenderSpinner: L,
273
+ setShouldRenderSpinner: I,
274
274
  children: e.children,
275
- loadingText: g,
275
+ loadingText: f,
276
276
  small: e.small,
277
- renderText: I,
278
- textContentStyle: Q,
277
+ renderText: C,
278
+ textContentStyle: ee,
279
279
  StartIcon: e.StartIcon,
280
280
  EndIcon: e.EndIcon
281
281
  }),
@@ -283,155 +283,180 @@ const N = (param)=>{
283
283
  role: "button"
284
284
  };
285
285
  if (process.env.NODE_ENV !== "production" && (e.to === "" || e.href === "")) throw Error("to or href props are empty strings");
286
- if (e.fake) return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({
286
+ if (e.fake) return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
287
287
  maybe: !0
288
- }, h), {
288
+ }, b), {
289
289
  role: "presentation",
290
290
  "aria-hidden": "true"
291
291
  }));
292
- if (e.submit) return /* @__PURE__ */ t(b, _object_spread({
292
+ if (e.submit) return /* @__PURE__ */ n(g, _object_spread({
293
293
  type: "submit",
294
- formId: d,
294
+ formId: c,
295
295
  onPress: ()=>{}
296
- }, h));
297
- if (e.onPress) return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({}, h), {
296
+ }, b));
297
+ if (e.onPress) return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({}, b), {
298
298
  onPress: (y)=>{
299
- const w = e.onPress(y);
300
- w && (s(!0), w.finally(()=>s(!1)));
299
+ const L = e.onPress(y);
300
+ L && (o(!0), L.finally(()=>o(!1)));
301
301
  }
302
302
  }));
303
- if (e.to || e.to === "") return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({}, h), {
303
+ if (e.to || e.to === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({}, b), {
304
304
  to: e.to,
305
305
  fullPageOnWebView: e.fullPageOnWebView
306
306
  }));
307
- if (e.href || e.href === "") return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({}, h), {
307
+ if (e.href || e.href === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({}, b), {
308
308
  href: e.href,
309
309
  newTab: e.newTab,
310
310
  loadOnTop: e.loadOnTop
311
311
  }));
312
312
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
313
313
  return null;
314
- }), Ne = /*#__PURE__*/ a.forwardRef((e, r)=>{
315
- var _e_withChevron;
316
- const { formStatus: n } = T(), l = A(), { analytics: f, textPresets: d } = V(), { loadingText: c } = e, g = n === "sending", [u, m] = a.useState(!1), o = e.showSpinner || u, s = (_e_withChevron = e.withChevron) !== null && _e_withChevron !== void 0 ? _e_withChevron : !!e.href || !!e.to, [i, v] = a.useState(!!o);
314
+ }), Z = /*#__PURE__*/ a.forwardRef((_param, r)=>{
315
+ var { type: e } = _param, t = _object_without_properties(_param, [
316
+ "type"
317
+ ]);
318
+ 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);
317
320
  a.useEffect(()=>{
318
- o && !i && v(!0);
321
+ i && !I && P(!0);
319
322
  }, [
320
- o,
321
323
  i,
322
- n
324
+ I,
325
+ s
323
326
  ]);
324
- var _e_trackingEvent;
325
- const L = ()=>f.eventFormat === "google-analytics-4" ? {
326
- name: O.userInteraction,
327
- component_type: "link",
328
- component_copy: P(e.children)
327
+ var _t_trackingEvent;
328
+ const C = ()=>l === "google-analytics-4" ? {
329
+ name: z.userInteraction,
330
+ component_type: e === "danger" ? "danger_link" : "link",
331
+ component_copy: S(t.children)
329
332
  } : {
330
- category: D.userInteraction,
331
- action: H.linkTapped,
332
- label: P(e.children)
333
- }, S = (h)=>/* @__PURE__ */ t(W, {
334
- weight: d.button.weight,
333
+ category: M.userInteraction,
334
+ action: q.linkTapped,
335
+ label: S(t.children)
336
+ }, b = (w)=>/* @__PURE__ */ n(Y, {
337
+ weight: c.button.weight,
335
338
  truncate: 1,
336
339
  color: "inherit",
337
- children: h
338
- }), I = {
339
- className: k(U, {
340
- [p]: l,
341
- [F]: o
340
+ children: w
341
+ }), y = e === "danger" && f && u ? "dangerDark" : e, L = {
342
+ className: T(u ? te[y] : ne[y], {
343
+ [G]: i
342
344
  }),
343
345
  /**
344
346
  * Setting bleed classes with style to override the margin:0 set by the Touchable component.
345
347
  * If we set it using className, it may not work depending on the order in which the styles are applied.
346
- */ style: _object_spread({}, e.bleedLeft || e.aligned ? {
347
- marginLeft: -x
348
- } : void 0, e.bleedRight ? {
349
- marginRight: -x
350
- } : void 0, e.bleedY ? {
351
- marginTop: -R,
352
- marginBottom: -R
348
+ */ style: _object_spread({}, t.bleedLeft || t.aligned ? {
349
+ marginLeft: -B
350
+ } : void 0, t.bleedRight ? {
351
+ marginRight: -B
352
+ } : void 0, t.bleedY ? {
353
+ marginTop: -A,
354
+ marginBottom: -A
353
355
  } : void 0),
354
- trackingEvent: (_e_trackingEvent = e.trackingEvent) !== null && _e_trackingEvent !== void 0 ? _e_trackingEvent : e.trackEvent ? L() : void 0,
355
- dataAttributes: _object_spread({
356
- "component-name": "ButtonLink"
357
- }, e.dataAttributes),
358
- "aria-label": e["aria-label"],
359
- "aria-controls": e["aria-controls"],
360
- "aria-expanded": e["aria-expanded"],
361
- "aria-haspopup": e["aria-haspopup"],
362
- children: z({
363
- showSpinner: o,
364
- shouldRenderSpinner: i,
365
- setShouldRenderSpinner: v,
366
- children: e.children,
367
- loadingText: c,
356
+ trackingEvent: (_t_trackingEvent = t.trackingEvent) !== null && _t_trackingEvent !== void 0 ? _t_trackingEvent : t.trackEvent ? C() : void 0,
357
+ dataAttributes: t.dataAttributes,
358
+ "aria-label": t["aria-label"],
359
+ "aria-controls": t["aria-controls"],
360
+ "aria-expanded": t["aria-expanded"],
361
+ "aria-haspopup": t["aria-haspopup"],
362
+ children: X({
363
+ showSpinner: i,
364
+ shouldRenderSpinner: I,
365
+ setShouldRenderSpinner: P,
366
+ children: t.children,
367
+ loadingText: d,
368
368
  small: !0,
369
- renderText: S,
370
- textContentStyle: ee,
371
- StartIcon: e.StartIcon,
372
- EndIcon: e.EndIcon,
373
- withChevron: s
369
+ renderText: b,
370
+ textContentStyle: re,
371
+ StartIcon: t.StartIcon,
372
+ EndIcon: t.EndIcon,
373
+ withChevron: v
374
374
  }),
375
- disabled: e.disabled || o || g
375
+ disabled: t.disabled || i || m
376
376
  };
377
- if (process.env.NODE_ENV !== "production" && (e.to === "" || e.href === "")) throw Error("to or href props are empty strings");
378
- if (e.onPress) return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({
377
+ if (process.env.NODE_ENV !== "production" && (t.to === "" || t.href === "")) throw Error("to or href props are empty strings");
378
+ if (t.onPress) return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
379
379
  ref: r
380
- }, I), {
381
- onPress: (h)=>{
382
- const y = e.onPress(h);
383
- y && (m(!0), y.finally(()=>m(!1)));
380
+ }, L), {
381
+ onPress: (w)=>{
382
+ const x = t.onPress(w);
383
+ x && (o(!0), x.finally(()=>o(!1)));
384
384
  }
385
385
  }));
386
- if (e.to || e.to === "") return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({
386
+ if (t.to || t.to === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
387
387
  ref: r
388
- }, I), {
389
- to: e.to,
390
- fullPageOnWebView: e.fullPageOnWebView
388
+ }, L), {
389
+ to: t.to,
390
+ fullPageOnWebView: t.fullPageOnWebView
391
391
  }));
392
- if (e.href || e.href === "") return /* @__PURE__ */ t(b, _object_spread_props(_object_spread({
392
+ if (t.href || t.href === "") return /* @__PURE__ */ n(g, _object_spread_props(_object_spread({
393
393
  ref: r
394
- }, I), {
395
- href: e.href,
396
- newTab: e.newTab
394
+ }, L), {
395
+ href: t.href,
396
+ newTab: t.newTab
397
397
  }));
398
398
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
399
399
  return null;
400
- }), _e = /*#__PURE__*/ a.forwardRef((_param, n)=>/* @__PURE__ */ {
401
- var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
400
+ }), Re = /*#__PURE__*/ a.forwardRef((_param, r)=>/* @__PURE__ */ {
401
+ var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
402
+ "dataAttributes"
403
+ ]);
404
+ return n(Z, _object_spread_props(_object_spread({
405
+ dataAttributes: _object_spread({
406
+ "component-name": "ButtonLink"
407
+ }, e)
408
+ }, t), {
409
+ ref: r,
410
+ type: "default"
411
+ }));
412
+ }), ke = /*#__PURE__*/ a.forwardRef((_param, r)=>/* @__PURE__ */ {
413
+ var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
414
+ "dataAttributes"
415
+ ]);
416
+ return n(Z, _object_spread_props(_object_spread({
417
+ dataAttributes: _object_spread({
418
+ "component-name": "ButtonLinkDanger"
419
+ }, e)
420
+ }, t), {
421
+ withChevron: !1,
422
+ ref: r,
423
+ type: "danger"
424
+ }));
425
+ }), xe = /*#__PURE__*/ a.forwardRef((_param, r)=>/* @__PURE__ */ {
426
+ var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
402
427
  "dataAttributes"
403
428
  ]);
404
- return t(_, _object_spread_props(_object_spread({
429
+ return n(k, _object_spread_props(_object_spread({
405
430
  dataAttributes: _object_spread({
406
431
  "component-name": "ButtonPrimary"
407
432
  }, e)
408
- }, r), {
409
- ref: n,
433
+ }, t), {
434
+ ref: r,
410
435
  type: "primary"
411
436
  }));
412
- }), we = /*#__PURE__*/ a.forwardRef((_param, n)=>/* @__PURE__ */ {
413
- var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
437
+ }), Be = /*#__PURE__*/ a.forwardRef((_param, r)=>/* @__PURE__ */ {
438
+ var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
414
439
  "dataAttributes"
415
440
  ]);
416
- return t(_, _object_spread_props(_object_spread({
441
+ return n(k, _object_spread_props(_object_spread({
417
442
  dataAttributes: _object_spread({
418
443
  "component-name": "ButtonSecondary"
419
444
  }, e)
420
- }, r), {
421
- ref: n,
445
+ }, t), {
446
+ ref: r,
422
447
  type: "secondary"
423
448
  }));
424
- }), xe = /*#__PURE__*/ a.forwardRef((_param, n)=>/* @__PURE__ */ {
425
- var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
449
+ }), Ae = /*#__PURE__*/ a.forwardRef((_param, r)=>/* @__PURE__ */ {
450
+ var { dataAttributes: e } = _param, t = _object_without_properties(_param, [
426
451
  "dataAttributes"
427
452
  ]);
428
- return t(_, _object_spread_props(_object_spread({
453
+ return n(k, _object_spread_props(_object_spread({
429
454
  dataAttributes: _object_spread({
430
455
  "component-name": "ButtonDanger"
431
456
  }, e)
432
- }, r), {
433
- ref: n,
457
+ }, t), {
458
+ ref: r,
434
459
  type: "danger"
435
460
  }));
436
461
  });
437
- export { xe as ButtonDanger, Ne as ButtonLink, _e as ButtonPrimary, we as ButtonSecondary };
462
+ export { Ae as ButtonDanger, Re as ButtonLink, ke as ButtonLinkDanger, xe as ButtonPrimary, Be as ButtonSecondary };
@@ -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 y = "_14g0jmy1 _1y2v1nf6i _1y2v1nf7r _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfe1 _1y2v1nfeb", _ = "_14g0jmy3 _1y2v1nfbw";
3
+ var y = "_14g0jmy1 _1y2v1nf6o _1y2v1nf7x _1y2v1nf96 _1y2v1nfaf _1y2v1nfgg _1y2v1nfj7 _1y2v1nfjh", _ = "_14g0jmy3 _1y2v1nfh2";
4
4
  export { y as container, _ as content };
@@ -1,6 +1,6 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./card.css.ts.vanilla.css-mistica.js";
3
- var n = "_15e54s91 _1y2v1nfba _1y2v1nfbw _1y2v1nfbq", _ = "_15e54s93 _1y2v1nfba _1y2v1nfb4", y = "_15e54s9v _1y2v1nfc7 _1y2v1nfcn _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt", f = "_1y2v1nfba _1y2v1nfc9 _1y2v1nfcp _1y2v1nfbp _1y2v1nfbj", e = "_15e54s9w _1y2v1nfc7 _1y2v1nfcn _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt", r = "_15e54s9x _1y2v1nfc7 _1y2v1nfcn _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfdt", b = "_15e54s9z", d = "_15e54s98", s = "_15e54s9k _1y2v1nf90 _1y2v1nfa9 _1y2v1nf6o _1y2v1nf7x _1y2v1nfba _1y2v1nfbw _1y2v1nfb4 _1y2v1nfbg _1y2v1nfbx", c = "_15e54s9r", t = "_1y2v1nfbx _1y2v1nfce _1y2v1nfba _1y2v1nfb4", i = "_15e54s9q", o = "_15e54s9s", C = "_1y2v1nfba _1y2v1nfbg _1y2v1nfce _1y2v1nfbx _1y2v1nfbw", l = "_15e54s9f _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbw _1y2v1nfb4 _1y2v1nf6i _1y2v1nf7x _1y2v1nfbg _1y2v1nfbm", p = "_15e54s9g", u = "_15e54s9i _1y2v1nfba _1y2v1nfbw _1y2v1nfb4 _1y2v1nfbg _1y2v1nfbm _1y2v1nf6i", m = "_15e54s9m _1y2v1nf6i _1y2v1nf7r _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfb4 _1y2v1nfce _1y2v1nfbg _1y2v1nfbm _1y2v1nfbx _1y2v1nfbw", x = "_15e54s95", g = "_15e54s9a _15e54s96", h = "_15e54s9b _15e54s96", w = "_15e54s9c _15e54s96", O = "_15e54s94", M = "_15e54s97 _15e54s96", j = "_15e54s99 _15e54s96", k = {
3
+ var n = "_15e54s91 _1y2v1nfgg _1y2v1nfh2 _1y2v1nfgw", a = "_15e54s93 _1y2v1nfgg _1y2v1nfga", y = "_15e54s9v _1y2v1nfhd _1y2v1nfht _1y2v1nfgg _1y2v1nfgv _1y2v1nfgp _1y2v1nfiz", f = "_1y2v1nfgg _1y2v1nfhf _1y2v1nfhv _1y2v1nfgv _1y2v1nfgp", r = "_15e54s9w _1y2v1nfhd _1y2v1nfht _1y2v1nfgg _1y2v1nfgv _1y2v1nfgp _1y2v1nfiz", e = "_15e54s9x _1y2v1nfhd _1y2v1nfht _1y2v1nfgg _1y2v1nfgv _1y2v1nfgp _1y2v1nfiz", g = "_15e54s9z", s = "_15e54s98", d = "_15e54s9k _1y2v1nf96 _1y2v1nfaf _1y2v1nf6u _1y2v1nf83 _1y2v1nfgg _1y2v1nfh2 _1y2v1nfga _1y2v1nfgm _1y2v1nfh3", t = "_15e54s9r", o = "_1y2v1nfh3 _1y2v1nfhk _1y2v1nfgg _1y2v1nfga", i = "_15e54s9q", h = "_15e54s9s", c = "_1y2v1nfgg _1y2v1nfgm _1y2v1nfhk _1y2v1nfh3 _1y2v1nfh2", C = "_15e54s9f _1y2v1nf96 _1y2v1nfaf _1y2v1nfgg _1y2v1nfh2 _1y2v1nfga _1y2v1nf6o _1y2v1nf83 _1y2v1nfgm _1y2v1nfgs", l = "_15e54s9g", p = "_15e54s9i _1y2v1nfgg _1y2v1nfh2 _1y2v1nfga _1y2v1nfgm _1y2v1nfgs _1y2v1nf6o", m = "_15e54s9m _1y2v1nf6o _1y2v1nf7x _1y2v1nf96 _1y2v1nfaf _1y2v1nfgg _1y2v1nfga _1y2v1nfhk _1y2v1nfgm _1y2v1nfgs _1y2v1nfh3 _1y2v1nfh2", u = "_15e54s95", b = "_15e54s9a _15e54s96", k = "_15e54s9b _15e54s96", O = "_15e54s9c _15e54s96", M = "_15e54s94", x = "_15e54s97 _15e54s96", z = "_15e54s99 _15e54s96", A = {
4
4
  aspectRatio: "var(--_15e54s9y)"
5
5
  };
6
- export { n as actions, _ as boxed, y as cardAction, f as cardActionIconButton, e as cardActionInverse, r as cardActionMedia, b as cardContainer, d as circularMediaOverlay, s as dataCard, c as displayCardBackground, t as displayCardContainer, i as displayCardContent, o as displayCardGradient, C as mediaCard, l as mediaCardContent, p as mediaCardIcon, u as nakedCardContent, m as snapCard, x as touchable, g as touchableCardOverlay, h as touchableCardOverlayInverse, w as touchableCardOverlayMedia, O as touchableContainer, M as touchableMediaCardOverlay, j as touchableNakedMediaOverlay, k as vars };
6
+ export { n as actions, a as boxed, y as cardAction, f as cardActionIconButton, r as cardActionInverse, e as cardActionMedia, g as cardContainer, s as circularMediaOverlay, d as dataCard, t as displayCardBackground, o as displayCardContainer, i as displayCardContent, h as displayCardGradient, c as mediaCard, C as mediaCardContent, l as mediaCardIcon, p as nakedCardContent, m as snapCard, u as touchable, b as touchableCardOverlay, k as touchableCardOverlayInverse, O as touchableCardOverlayMedia, M as touchableContainer, x as touchableMediaCardOverlay, z as touchableNakedMediaOverlay, A as vars };