@telefonica/mistica 14.18.2 → 14.20.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 (74) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.css-mistica.js +28 -22
  3. package/dist/button.css.d.ts +3 -1
  4. package/dist/button.d.ts +6 -0
  5. package/dist/button.js +60 -58
  6. package/dist/card.css-mistica.js +18 -18
  7. package/dist/card.css.d.ts +1 -2
  8. package/dist/card.d.ts +17 -8
  9. package/dist/card.js +331 -277
  10. package/dist/community/advanced-data-card.css-mistica.js +18 -21
  11. package/dist/community/advanced-data-card.css.d.ts +2 -3
  12. package/dist/community/advanced-data-card.js +171 -158
  13. package/dist/generated/mistica-icons/icon-subtract-circle-filled.d.ts +4 -0
  14. package/dist/generated/mistica-icons/icon-subtract-circle-filled.js +110 -0
  15. package/dist/generated/mistica-icons/icon-subtract-circle-light.d.ts +4 -0
  16. package/dist/generated/mistica-icons/icon-subtract-circle-light.js +116 -0
  17. package/dist/generated/mistica-icons/icon-subtract-circle-regular.d.ts +4 -0
  18. package/dist/generated/mistica-icons/icon-subtract-circle-regular.js +116 -0
  19. package/dist/generated/mistica-icons/icon-subtract-light.d.ts +4 -0
  20. package/dist/generated/mistica-icons/icon-subtract-light.js +110 -0
  21. package/dist/generated/mistica-icons/icon-subtract-regular.d.ts +4 -0
  22. package/dist/generated/mistica-icons/icon-subtract-regular.js +110 -0
  23. package/dist/header.js +27 -29
  24. package/dist/index.d.ts +7 -2
  25. package/dist/index.js +26 -0
  26. package/dist/list.css-mistica.js +17 -14
  27. package/dist/list.css.d.ts +2 -1
  28. package/dist/list.js +170 -163
  29. package/dist/package-version.js +1 -1
  30. package/dist/skins/blau.js +14 -0
  31. package/dist/skins/defaults.js +14 -0
  32. package/dist/skins/movistar-legacy.js +14 -0
  33. package/dist/skins/movistar.js +14 -0
  34. package/dist/skins/o2.js +14 -0
  35. package/dist/skins/telefonica.js +16 -2
  36. package/dist/skins/types/index.d.ts +12 -0
  37. package/dist/skins/vivo-new.js +15 -1
  38. package/dist/skins/vivo.js +14 -0
  39. package/dist/tabs.css-mistica.js +10 -14
  40. package/dist/tabs.css.d.ts +1 -2
  41. package/dist/tabs.js +39 -33
  42. package/dist/theme-context-provider.js +29 -27
  43. package/dist/title.d.ts +1 -0
  44. package/dist/title.js +91 -29
  45. package/dist-es/button.css-mistica.js +9 -9
  46. package/dist-es/button.js +75 -73
  47. package/dist-es/card.css-mistica.js +4 -4
  48. package/dist-es/card.js +449 -401
  49. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  50. package/dist-es/community/advanced-data-card.js +195 -182
  51. package/dist-es/generated/mistica-icons/icon-subtract-circle-filled.js +101 -0
  52. package/dist-es/generated/mistica-icons/icon-subtract-circle-light.js +107 -0
  53. package/dist-es/generated/mistica-icons/icon-subtract-circle-regular.js +107 -0
  54. package/dist-es/generated/mistica-icons/icon-subtract-light.js +101 -0
  55. package/dist-es/generated/mistica-icons/icon-subtract-regular.js +101 -0
  56. package/dist-es/header.js +46 -48
  57. package/dist-es/index.js +1729 -1724
  58. package/dist-es/list.css-mistica.js +2 -2
  59. package/dist-es/list.js +242 -235
  60. package/dist-es/package-version.js +1 -1
  61. package/dist-es/skins/blau.js +14 -0
  62. package/dist-es/skins/defaults.js +14 -0
  63. package/dist-es/skins/movistar-legacy.js +14 -0
  64. package/dist-es/skins/movistar.js +14 -0
  65. package/dist-es/skins/o2.js +14 -0
  66. package/dist-es/skins/telefonica.js +16 -2
  67. package/dist-es/skins/vivo-new.js +15 -1
  68. package/dist-es/skins/vivo.js +14 -0
  69. package/dist-es/style.css +1 -1
  70. package/dist-es/tabs.css-mistica.js +8 -9
  71. package/dist-es/tabs.js +49 -43
  72. package/dist-es/theme-context-provider.js +63 -61
  73. package/dist-es/title.js +58 -38
  74. package/package.json +1 -1
package/dist/title.js CHANGED
@@ -10,14 +10,17 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  Title1: function() {
13
- return k;
13
+ return H;
14
14
  },
15
15
  Title2: function() {
16
- return y;
16
+ return L;
17
+ },
18
+ Title3: function() {
19
+ return A;
17
20
  }
18
21
  });
19
22
  const _jsxruntime = require("react/jsx-runtime");
20
- const _text = require("./text.js");
23
+ const _text = /*#__PURE__*/ _interop_require_wildcard(require("./text.js"));
21
24
  const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
22
25
  const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
23
26
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
@@ -27,6 +30,45 @@ function _interop_require_default(obj) {
27
30
  default: obj
28
31
  };
29
32
  }
33
+ function _getRequireWildcardCache(nodeInterop) {
34
+ if (typeof WeakMap !== "function") return null;
35
+ var cacheBabelInterop = new WeakMap();
36
+ var cacheNodeInterop = new WeakMap();
37
+ return (_getRequireWildcardCache = function(nodeInterop) {
38
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
39
+ })(nodeInterop);
40
+ }
41
+ function _interop_require_wildcard(obj, nodeInterop) {
42
+ if (!nodeInterop && obj && obj.__esModule) {
43
+ return obj;
44
+ }
45
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
46
+ return {
47
+ default: obj
48
+ };
49
+ }
50
+ var cache = _getRequireWildcardCache(nodeInterop);
51
+ if (cache && cache.has(obj)) {
52
+ return cache.get(obj);
53
+ }
54
+ var newObj = {};
55
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
56
+ for(var key in obj){
57
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
58
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
59
+ if (desc && (desc.get || desc.set)) {
60
+ Object.defineProperty(newObj, key, desc);
61
+ } else {
62
+ newObj[key] = obj[key];
63
+ }
64
+ }
65
+ }
66
+ newObj.default = obj;
67
+ if (cache) {
68
+ cache.set(obj, newObj);
69
+ }
70
+ return newObj;
71
+ }
30
72
  function _define_property(obj, key, value) {
31
73
  if (key in obj) {
32
74
  Object.defineProperty(obj, key, {
@@ -56,51 +98,71 @@ function _object_spread(target) {
56
98
  return target;
57
99
  }
58
100
  const m = (param)=>{
59
- let { title: t , right: e } = param;
60
- const { textPresets: o } = (0, _hooks.useTheme)();
61
- return e ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
101
+ let { title: e , right: t , dataAttributes: o } = param;
102
+ const { textPresets: r } = (0, _hooks.useTheme)();
103
+ return t ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
62
104
  space: "between",
63
105
  alignItems: "baseline",
106
+ dataAttributes: o,
64
107
  children: [
65
- t,
108
+ e,
66
109
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
67
110
  paddingLeft: 16,
68
111
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
69
- weight: o.link.weight,
70
- children: e
112
+ weight: r.link.weight,
113
+ children: t
71
114
  })
72
115
  })
73
116
  ]
74
- }) : t;
75
- }, k = (param)=>{
76
- let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
77
- const { textPresets: a } = (0, _hooks.useTheme)();
117
+ }) : e;
118
+ }, H = (param)=>{
119
+ let { children: e , as: t = "h3" , id: o , right: r , dataAttributes: s } = param;
120
+ const { textPresets: n } = (0, _hooks.useTheme)();
78
121
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
79
122
  title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text1, {
80
123
  color: _skincontractcssmistica.vars.colors.textSecondary,
81
124
  transform: "uppercase",
82
- weight: a.title1.weight,
83
- as: e,
125
+ weight: n.title1.weight,
126
+ as: t,
84
127
  id: o,
85
- dataAttributes: _object_spread({
86
- "component-name": "Title1"
87
- }, n),
88
128
  wordBreak: !1,
89
- children: t
129
+ children: e
130
+ }),
131
+ right: r,
132
+ dataAttributes: _object_spread({
133
+ "component-name": "Title1"
134
+ }, s)
135
+ });
136
+ }, L = (param)=>{
137
+ let { children: e , as: t = "h3" , id: o , right: r , dataAttributes: s } = param;
138
+ const { textPresets: n } = (0, _hooks.useTheme)();
139
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(m, {
140
+ title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.default, {
141
+ as: t,
142
+ id: o,
143
+ mobileSize: n.title2.size.mobile,
144
+ desktopSize: n.title2.size.desktop,
145
+ weight: n.title2.weight,
146
+ mobileLineHeight: n.title2.lineHeight.mobile,
147
+ desktopLineHeight: n.title2.lineHeight.desktop,
148
+ children: e
90
149
  }),
91
- right: i
150
+ right: r,
151
+ dataAttributes: _object_spread({
152
+ "component-name": "Title2"
153
+ }, s)
92
154
  });
93
- }, y = (param)=>/* @__PURE__ */ {
94
- let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
155
+ }, A = (param)=>/* @__PURE__ */ {
156
+ let { children: e , as: t = "h3" , id: o , right: r , dataAttributes: s } = param;
95
157
  return (0, _jsxruntime.jsx)(m, {
96
- title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text5, {
97
- as: e,
158
+ title: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
159
+ as: t,
98
160
  id: o,
99
- dataAttributes: _object_spread({
100
- "component-name": "Title2"
101
- }, n),
102
- children: t
161
+ children: e
103
162
  }),
104
- right: i
163
+ right: r,
164
+ dataAttributes: _object_spread({
165
+ "component-name": "Title3"
166
+ }, s)
105
167
  });
106
168
  };
@@ -1,12 +1,12 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./button.css.ts.vanilla.css-mistica.js";
3
- var _ = 104, r = 2, y = 8, f = 24, b = 20, a = 16, p = 20, e = 14.5, t = 10.5, d = "rrbrpnl", i = "rrbrpni _1y2v1nf28", s = {
4
- primary: "rrbrpnp rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf21 _1y2v1nf3s",
5
- secondary: "rrbrpnq rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf25 _1y2v1nf5y",
6
- danger: "rrbrpnr rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf20 _1y2v1nf3m"
7
- }, I = "rrbrpn0", N = "rrbrpng _1y2v1nf8t _1y2v1nfa2 _1y2v1nfb8 _1y2v1nfbs _1y2v1nfaz _1y2v1nfdt _1y2v1nfdm _1y2v1nf27 _1y2v1nf5y _1y2v1nfe4 _1y2v1nfcy", z = "rrbrpn7 _1y2v1nfb5 _1y2v1nfb0 _1y2v1nfe6 _1y2v1nfff _1y2v1nfbd _1y2v1nfbj", o = "rrbrpn4 _1y2v1nfb6 _1y2v1nfc9 _1y2v1nfe4", L = "rrbrpn5", l = "rrbrpn9 _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd", m = "rrbrpnk _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd", S = {
8
- primary: "rrbrpnm rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf20 _1y2v1nf3r",
9
- secondary: "rrbrpnn rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf23 _1y2v1nf5y",
10
- danger: "rrbrpno rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf20 _1y2v1nf3m"
3
+ var _ = 104, r = 2, y = 8, f = 24, a = 20, b = 16, e = 20, p = 14.5, t = 10.5, i = "rrbrpnl", d = "rrbrpnm", s = "rrbrpnn", I = "rrbrpni _1y2v1nf28", L = {
4
+ primary: "rrbrpnr rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf21 _1y2v1nf3s",
5
+ secondary: "rrbrpns rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf25 _1y2v1nf5y",
6
+ danger: "rrbrpnt rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf20 _1y2v1nf3m"
7
+ }, N = "rrbrpn0", z = "rrbrpng _1y2v1nf8t _1y2v1nfa2 _1y2v1nfb8 _1y2v1nfbs _1y2v1nfaz _1y2v1nfdt _1y2v1nfdm _1y2v1nf27 _1y2v1nf5y _1y2v1nfe4 _1y2v1nfcy", l = "rrbrpn7 _1y2v1nfb5 _1y2v1nfb0 _1y2v1nfe6 _1y2v1nfff _1y2v1nfbd _1y2v1nfbj", o = "rrbrpn4 _1y2v1nfb6 _1y2v1nfc9 _1y2v1nfe4", g = "rrbrpn5", m = "rrbrpn9 _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd", S = "rrbrpnk _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd", E = {
8
+ primary: "rrbrpno rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf20 _1y2v1nf3r",
9
+ secondary: "rrbrpnp rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf23 _1y2v1nf5y",
10
+ danger: "rrbrpnq rrbrpn2 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb8 _1y2v1nfaz _1y2v1nfbs _1y2v1nfdt _1y2v1nfe4 _1y2v1nf20 _1y2v1nf3m"
11
11
  };
12
- export { _ as BUTTON_MIN_WIDTH, r as CHEVRON_MARGIN_LEFT_LINK, y as ICON_MARGIN_PX, f as ICON_SIZE, b as SMALL_ICON_SIZE, a as SMALL_SPINNER_SIZE, p as SPINNER_SIZE, e as X_PADDING_PX, t as X_SMALL_PADDING_PX, d as alignedLink, i as inverseLink, s as inverseVariants, I as isLoading, N as link, z as loadingContent, o as loadingFiller, L as small, l as textContent, m as textContentLink, S as variants };
12
+ export { _ as BUTTON_MIN_WIDTH, r as CHEVRON_MARGIN_LEFT_LINK, y as ICON_MARGIN_PX, f as ICON_SIZE, a as SMALL_ICON_SIZE, b as SMALL_SPINNER_SIZE, e as SPINNER_SIZE, p as X_PADDING_PX, t as X_SMALL_PADDING_PX, i as alignedLeftLink, d as alignedRightLink, s as alignedVerticalLink, I as inverseLink, L as inverseVariants, N as isLoading, z as link, l as loadingContent, o as loadingFiller, g as small, m as textContent, S as textContentLink, E as variants };
package/dist-es/button.js CHANGED
@@ -79,10 +79,10 @@ function _object_without_properties_loose(source, excluded) {
79
79
  }
80
80
  import { jsx as t, jsxs as C, Fragment as F } from "react/jsx-runtime";
81
81
  import * as o from "react";
82
- import x from "classnames";
82
+ import R from "classnames";
83
83
  import z from "./spinner.js";
84
84
  import { BaseTouchable as y } from "./touchable.js";
85
- import { useIsInverseVariant as R } from "./theme-variant-context.js";
85
+ import { useIsInverseVariant as x } from "./theme-variant-context.js";
86
86
  import { useForm as k } from "./form-context.js";
87
87
  import { pxToRem as T } from "./utils/css.js";
88
88
  import { Text as M, Text3 as X, Text2 as Z } from "./text.js";
@@ -91,9 +91,9 @@ import { getTextFromChildren as P } from "./utils/common.js";
91
91
  import { useTrackingConfig as W, eventNames as A, eventCategories as B, eventActions as j } from "./utils/analytics.js";
92
92
  import { useTheme as O } from "./hooks.js";
93
93
  import { flattenChildren as H } from "./skins/utils.js";
94
- import { inverseVariants as $, variants as K, small as q, isLoading as D, textContent as J, link as Q, inverseLink as U, alignedLink as Y, textContentLink as p, SMALL_SPINNER_SIZE as ee, SPINNER_SIZE as te, ICON_MARGIN_PX as b, CHEVRON_MARGIN_LEFT_LINK as ne, loadingFiller as re, X_SMALL_PADDING_PX as ie, X_PADDING_PX as oe, loadingContent as ae, SMALL_ICON_SIZE as se, ICON_SIZE as ce } from "./button.css-mistica.js";
94
+ import { inverseVariants as $, variants as K, small as Y, isLoading as V, textContent as q, link as J, inverseLink as Q, alignedLeftLink as U, alignedRightLink as p, alignedVerticalLink as ee, textContentLink as te, SMALL_SPINNER_SIZE as ne, SPINNER_SIZE as ie, ICON_MARGIN_PX as E, CHEVRON_MARGIN_LEFT_LINK as re, loadingFiller as oe, X_SMALL_PADDING_PX as ae, X_PADDING_PX as se, loadingContent as ce, SMALL_ICON_SIZE as le, ICON_SIZE as de } from "./button.css-mistica.js";
95
95
  const w = (param)=>{
96
- let { content: e , defaultIconSize: i , renderText: n } = param;
96
+ let { content: e , defaultIconSize: r , renderText: n } = param;
97
97
  const c = H(e), f = c.length, d = [];
98
98
  let l = [];
99
99
  const g = ()=>{
@@ -106,13 +106,13 @@ const w = (param)=>{
106
106
  if (/*#__PURE__*/ o.isValidElement(u)) {
107
107
  l.length && g();
108
108
  var _u_props_size;
109
- const v = (_u_props_size = u.props.size) !== null && _u_props_size !== void 0 ? _u_props_size : i;
109
+ const v = (_u_props_size = u.props.size) !== null && _u_props_size !== void 0 ? _u_props_size : r;
110
110
  d.push(/* @__PURE__ */ t("div", {
111
111
  style: {
112
112
  display: "flex",
113
113
  alignItems: "center",
114
- marginLeft: a ? 0 : b,
115
- marginRight: s ? 0 : b
114
+ marginLeft: a ? 0 : E,
115
+ marginRight: s ? 0 : E
116
116
  },
117
117
  children: /*#__PURE__*/ o.cloneElement(u, {
118
118
  size: T(v)
@@ -120,17 +120,17 @@ const w = (param)=>{
120
120
  }, d.length));
121
121
  } else l.push(u), s && g();
122
122
  }), d;
123
- }, le = ()=>/* @__PURE__ */ t("svg", {
124
- width: "8",
125
- height: "20",
123
+ }, ue = ()=>/* @__PURE__ */ t("svg", {
124
+ width: "0.5em",
125
+ height: "1.25em",
126
126
  viewBox: "0 0 8 20",
127
127
  children: /* @__PURE__ */ t("path", {
128
128
  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
129
  fill: "currentColor"
130
130
  })
131
- }), V = (param)=>{
132
- let { showSpinner: e , children: i , small: n , loadingText: c , shouldRenderSpinner: f , setShouldRenderSpinner: d , renderText: l , textContentStyle: g , StartIcon: u , EndIcon: m , withChevron: a } = param;
133
- const s = n ? se : ce, r = T(n ? ee : te);
131
+ }), D = (param)=>{
132
+ let { showSpinner: e , children: r , small: n , loadingText: c , shouldRenderSpinner: f , setShouldRenderSpinner: d , renderText: l , textContentStyle: g , StartIcon: u , EndIcon: m , withChevron: a } = param;
133
+ const s = n ? le : de, i = T(n ? ne : ie);
134
134
  return /* @__PURE__ */ C(F, {
135
135
  children: [
136
136
  /* @__PURE__ */ C("div", {
@@ -141,7 +141,7 @@ const w = (param)=>{
141
141
  style: {
142
142
  display: "flex",
143
143
  alignItems: "center",
144
- marginRight: b
144
+ marginRight: E
145
145
  },
146
146
  children: /* @__PURE__ */ t(u, {
147
147
  size: s,
@@ -149,7 +149,7 @@ const w = (param)=>{
149
149
  })
150
150
  }),
151
151
  w({
152
- content: i,
152
+ content: r,
153
153
  defaultIconSize: s,
154
154
  renderText: l
155
155
  }),
@@ -157,7 +157,7 @@ const w = (param)=>{
157
157
  style: {
158
158
  display: "flex",
159
159
  alignItems: "center",
160
- marginLeft: b
160
+ marginLeft: E
161
161
  },
162
162
  children: /* @__PURE__ */ t(m, {
163
163
  size: s,
@@ -168,18 +168,18 @@ const w = (param)=>{
168
168
  style: {
169
169
  display: "flex",
170
170
  alignItems: "center",
171
- marginLeft: ne
171
+ marginLeft: re
172
172
  },
173
- children: /* @__PURE__ */ t(le, {})
173
+ children: /* @__PURE__ */ t(ue, {})
174
174
  })
175
175
  ]
176
176
  }),
177
177
  /* @__PURE__ */ t("div", {
178
- className: re,
178
+ className: oe,
179
179
  "aria-hidden": !0,
180
180
  style: c ? {
181
- paddingLeft: r,
182
- paddingRight: b + 2 * (n ? ie : oe)
181
+ paddingLeft: i,
182
+ paddingRight: E + 2 * (n ? ae : se)
183
183
  } : void 0,
184
184
  children: w({
185
185
  content: c,
@@ -189,7 +189,7 @@ const w = (param)=>{
189
189
  }),
190
190
  /* @__PURE__ */ C("div", {
191
191
  "aria-hidden": e ? void 0 : !0,
192
- className: ae,
192
+ className: ce,
193
193
  onTransitionEnd: ()=>{
194
194
  e !== f && d(e);
195
195
  },
@@ -198,12 +198,12 @@ const w = (param)=>{
198
198
  rolePresentation: !!c,
199
199
  color: "currentcolor",
200
200
  delay: "0s",
201
- size: r
201
+ size: i
202
202
  }) : /* @__PURE__ */ t("div", {
203
203
  style: {
204
204
  display: "inline-block",
205
- width: r,
206
- height: r
205
+ width: i,
206
+ height: i
207
207
  }
208
208
  }),
209
209
  c ? /* @__PURE__ */ t(G, {
@@ -218,12 +218,12 @@ const w = (param)=>{
218
218
  })
219
219
  ]
220
220
  });
221
- }, N = /*#__PURE__*/ o.forwardRef((e, i)=>{
222
- const { textPresets: n } = O(), { eventFormat: c } = W(), { formStatus: f , formId: d } = k(), l = R(), { loadingText: g } = e, u = !!e.submit, m = f === "sending", [a, s] = o.useState(!1), r = e.showSpinner || m && u || a, [v, L] = o.useState(!!r);
221
+ }, N = /*#__PURE__*/ o.forwardRef((e, r)=>{
222
+ const { textPresets: n } = O(), { eventFormat: c } = W(), { formStatus: f , formId: d } = k(), l = x(), { loadingText: g } = e, u = !!e.submit, m = f === "sending", [a, s] = o.useState(!1), i = e.showSpinner || m && u || a, [v, L] = o.useState(!!i);
223
223
  o.useEffect(()=>{
224
- r && !v && L(!0);
224
+ i && !v && L(!0);
225
225
  }, [
226
- r,
226
+ i,
227
227
  v,
228
228
  f
229
229
  ]);
@@ -236,25 +236,25 @@ const w = (param)=>{
236
236
  category: B.userInteraction,
237
237
  action: `${e.type}_button_tapped`,
238
238
  label: P(e.children)
239
- }, E = (I)=>e.small ? /* @__PURE__ */ t(M, {
239
+ }, I = (b)=>e.small ? /* @__PURE__ */ t(M, {
240
240
  size: 14,
241
241
  lineHeight: 20,
242
242
  weight: n.button.weight,
243
243
  truncate: 1,
244
244
  color: "inherit",
245
245
  as: "div",
246
- children: I
246
+ children: b
247
247
  }) : /* @__PURE__ */ t(X, {
248
248
  weight: n.button.weight,
249
249
  truncate: 1,
250
250
  color: "inherit",
251
251
  as: "div",
252
- children: I
252
+ children: b
253
253
  }), h = {
254
- ref: i,
255
- className: x(l ? $[e.type] : K[e.type], e.className, {
256
- [q]: e.small,
257
- [D]: r
254
+ ref: r,
255
+ className: R(l ? $[e.type] : K[e.type], e.className, {
256
+ [Y]: e.small,
257
+ [V]: i
258
258
  }),
259
259
  style: _object_spread({
260
260
  cursor: e.fake ? "pointer" : void 0
@@ -264,19 +264,19 @@ const w = (param)=>{
264
264
  "aria-controls": e["aria-controls"],
265
265
  "aria-expanded": e["aria-expanded"],
266
266
  tabIndex: e.tabIndex,
267
- children: V({
268
- showSpinner: r,
267
+ children: D({
268
+ showSpinner: i,
269
269
  shouldRenderSpinner: v,
270
270
  setShouldRenderSpinner: L,
271
271
  children: e.children,
272
272
  loadingText: g,
273
273
  small: e.small,
274
- renderText: E,
275
- textContentStyle: J,
274
+ renderText: I,
275
+ textContentStyle: q,
276
276
  StartIcon: e.StartIcon,
277
277
  EndIcon: e.EndIcon
278
278
  }),
279
- disabled: e.disabled || r || m,
279
+ disabled: e.disabled || i || m,
280
280
  role: "button"
281
281
  };
282
282
  if (process.env.NODE_ENV !== "production" && (e.to === "" || e.href === "")) throw Error("to or href props are empty strings");
@@ -292,8 +292,8 @@ const w = (param)=>{
292
292
  onPress: ()=>{}
293
293
  }, h));
294
294
  if (e.onPress) return /* @__PURE__ */ t(y, _object_spread_props(_object_spread({}, h), {
295
- onPress: (I)=>{
296
- const _ = e.onPress(I);
295
+ onPress: (b)=>{
296
+ const _ = e.onPress(b);
297
297
  _ && (s(!0), _.finally(()=>s(!1)));
298
298
  }
299
299
  }));
@@ -308,14 +308,14 @@ const w = (param)=>{
308
308
  }));
309
309
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
310
310
  return null;
311
- }), Ce = /*#__PURE__*/ o.forwardRef((e, i)=>{
311
+ }), Ne = /*#__PURE__*/ o.forwardRef((e, r)=>{
312
312
  var _e_withChevron;
313
- const { formStatus: n } = k(), c = R(), { analytics: f , textPresets: d } = O(), { loadingText: l } = e, g = n === "sending", [u, m] = o.useState(!1), a = e.showSpinner || u, s = (_e_withChevron = e.withChevron) !== null && _e_withChevron !== void 0 ? _e_withChevron : !!e.href || !!e.to, [r, v] = o.useState(!!a);
313
+ const { formStatus: n } = k(), c = x(), { analytics: f , textPresets: d } = O(), { loadingText: l } = e, g = n === "sending", [u, m] = o.useState(!1), a = e.showSpinner || u, s = (_e_withChevron = e.withChevron) !== null && _e_withChevron !== void 0 ? _e_withChevron : !!e.href || !!e.to, [i, v] = o.useState(!!a);
314
314
  o.useEffect(()=>{
315
- a && !r && v(!0);
315
+ a && !i && v(!0);
316
316
  }, [
317
317
  a,
318
- r,
318
+ i,
319
319
  n
320
320
  ]);
321
321
  var _e_trackingEvent;
@@ -332,25 +332,27 @@ const w = (param)=>{
332
332
  truncate: 1,
333
333
  color: "inherit",
334
334
  children: h
335
- }), E = {
336
- className: x(Q, {
337
- [U]: c,
338
- [Y]: e.aligned,
339
- [D]: a
335
+ }), I = {
336
+ className: R(J, {
337
+ [Q]: c,
338
+ [U]: !!e.bleedLeft || !!e.aligned,
339
+ [p]: !!e.bleedRight,
340
+ [ee]: !!e.bleedY,
341
+ [V]: a
340
342
  }),
341
343
  trackingEvent: (_e_trackingEvent = e.trackingEvent) !== null && _e_trackingEvent !== void 0 ? _e_trackingEvent : e.trackEvent ? L() : void 0,
342
344
  dataAttributes: _object_spread({
343
345
  "component-name": "ButtonLink"
344
346
  }, e.dataAttributes),
345
- children: V({
347
+ children: D({
346
348
  showSpinner: a,
347
- shouldRenderSpinner: r,
349
+ shouldRenderSpinner: i,
348
350
  setShouldRenderSpinner: v,
349
351
  children: e.children,
350
352
  loadingText: l,
351
353
  small: !0,
352
354
  renderText: S,
353
- textContentStyle: p,
355
+ textContentStyle: te,
354
356
  StartIcon: e.StartIcon,
355
357
  EndIcon: e.EndIcon,
356
358
  withChevron: s
@@ -359,62 +361,62 @@ const w = (param)=>{
359
361
  };
360
362
  if (process.env.NODE_ENV !== "production" && (e.to === "" || e.href === "")) throw Error("to or href props are empty strings");
361
363
  if (e.onPress) return /* @__PURE__ */ t(y, _object_spread_props(_object_spread({
362
- ref: i
363
- }, E), {
364
+ ref: r
365
+ }, I), {
364
366
  onPress: (h)=>{
365
- const I = e.onPress(h);
366
- I && (m(!0), I.finally(()=>m(!1)));
367
+ const b = e.onPress(h);
368
+ b && (m(!0), b.finally(()=>m(!1)));
367
369
  }
368
370
  }));
369
371
  if (e.to || e.to === "") return /* @__PURE__ */ t(y, _object_spread_props(_object_spread({
370
- ref: i
371
- }, E), {
372
+ ref: r
373
+ }, I), {
372
374
  to: e.to,
373
375
  fullPageOnWebView: e.fullPageOnWebView
374
376
  }));
375
377
  if (e.href || e.href === "") return /* @__PURE__ */ t(y, _object_spread_props(_object_spread({
376
- ref: i
377
- }, E), {
378
+ ref: r
379
+ }, I), {
378
380
  href: e.href,
379
381
  newTab: e.newTab
380
382
  }));
381
383
  if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
382
384
  return null;
383
- }), we = /*#__PURE__*/ o.forwardRef((_param, n)=>/* @__PURE__ */ {
384
- var { dataAttributes: e } = _param, i = _object_without_properties(_param, [
385
+ }), _e = /*#__PURE__*/ o.forwardRef((_param, n)=>/* @__PURE__ */ {
386
+ var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
385
387
  "dataAttributes"
386
388
  ]);
387
389
  return t(N, _object_spread_props(_object_spread({
388
390
  dataAttributes: _object_spread({
389
391
  "component-name": "ButtonPrimary"
390
392
  }, e)
391
- }, i), {
393
+ }, r), {
392
394
  ref: n,
393
395
  type: "primary"
394
396
  }));
395
- }), Ne = /*#__PURE__*/ o.forwardRef((_param, n)=>/* @__PURE__ */ {
396
- var { dataAttributes: e } = _param, i = _object_without_properties(_param, [
397
+ }), Re = /*#__PURE__*/ o.forwardRef((_param, n)=>/* @__PURE__ */ {
398
+ var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
397
399
  "dataAttributes"
398
400
  ]);
399
401
  return t(N, _object_spread_props(_object_spread({
400
402
  dataAttributes: _object_spread({
401
403
  "component-name": "ButtonSecondary"
402
404
  }, e)
403
- }, i), {
405
+ }, r), {
404
406
  ref: n,
405
407
  type: "secondary"
406
408
  }));
407
- }), _e = /*#__PURE__*/ o.forwardRef((_param, n)=>/* @__PURE__ */ {
408
- var { dataAttributes: e } = _param, i = _object_without_properties(_param, [
409
+ }), xe = /*#__PURE__*/ o.forwardRef((_param, n)=>/* @__PURE__ */ {
410
+ var { dataAttributes: e } = _param, r = _object_without_properties(_param, [
409
411
  "dataAttributes"
410
412
  ]);
411
413
  return t(N, _object_spread_props(_object_spread({
412
414
  dataAttributes: _object_spread({
413
415
  "component-name": "ButtonDanger"
414
416
  }, e)
415
- }, i), {
417
+ }, r), {
416
418
  ref: n,
417
419
  type: "danger"
418
420
  }));
419
421
  });
420
- export { _e as ButtonDanger, Ce as ButtonLink, we as ButtonPrimary, Ne as ButtonSecondary };
422
+ export { xe as ButtonDanger, Ne as ButtonLink, _e as ButtonPrimary, Re as ButtonSecondary };
@@ -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 _ = "_15e54s91 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfbk", a = "_15e54s93 _1y2v1nfb4 _1y2v1nfaz", y = "_15e54s9v _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", f = "_1y2v1nfb4 _1y2v1nfc3 _1y2v1nfcj _1y2v1nfbj _1y2v1nfbd", r = "_15e54s9w _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", e = "_15e54s9x _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", b = "_15e54s910", d = "_15e54s98", s = "_15e54s9j _1y2v1nf8w _1y2v1nfa5 _1y2v1nf6k _1y2v1nf7t _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbr", c = "_15e54s9r", t = "_1y2v1nfbr _1y2v1nfc8 _1y2v1nfb4 _1y2v1nfaz", o = "_15e54s9q", i = "_15e54s9s", l = "_1y2v1nfb4 _1y2v1nfba _1y2v1nfc8 _1y2v1nfbr _1y2v1nfbq", C = "_15e54s9f _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nf6e _1y2v1nf7t _1y2v1nfba _1y2v1nfbg", h = "_15e54s9h _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbg _1y2v1nf6e", u = "_15e54s9l _1y2v1nf6e _1y2v1nf7n _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfaz _1y2v1nfc8 _1y2v1nfba _1y2v1nfbg _1y2v1nfbr _1y2v1nfbq", p = "_15e54s95", j = "_15e54s9a _15e54s96", q = "_15e54s9b _15e54s96", z = "_15e54s9c _15e54s96", O = "_15e54s94", k = "_15e54s97 _15e54s96", A = "_15e54s99 _15e54s96", M = {
4
- aspectRatio: "var(--_15e54s9z)"
5
- }, g = "_15e54s9y _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn";
6
- export { _ as actions, a as boxed, y as cardAction, f as cardActionIconButton, r as cardActionInverse, e as cardActionMedia, b as cardContainer, d as circularMediaOverlay, s as dataCard, c as displayCardBackground, t as displayCardContainer, o as displayCardContent, i as displayCardGradient, l as mediaCard, C as mediaCardContent, h as nakedCardContent, u as snapCard, p as touchable, j as touchableCardOverlay, q as touchableCardOverlayInverse, z as touchableCardOverlayMedia, O as touchableContainer, k as touchableMediaCardOverlay, A as touchableNakedMediaOverlay, M as vars, g as videoAction };
3
+ var a = "_15e54s91 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfbk", _ = "_15e54s93 _1y2v1nfb4 _1y2v1nfaz", y = "_15e54s9v _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", f = "_1y2v1nfb4 _1y2v1nfc3 _1y2v1nfcj _1y2v1nfbj _1y2v1nfbd", r = "_15e54s9w _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", e = "_15e54s9x _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", b = "_15e54s9z", d = "_15e54s98", s = "_15e54s9k _1y2v1nf8w _1y2v1nfa5 _1y2v1nf6k _1y2v1nf7t _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbr", c = "_15e54s9r", t = "_1y2v1nfbr _1y2v1nfc8 _1y2v1nfb4 _1y2v1nfaz", o = "_15e54s9q", i = "_15e54s9s", C = "_1y2v1nfb4 _1y2v1nfba _1y2v1nfc8 _1y2v1nfbr _1y2v1nfbq", l = "_15e54s9f _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nf6e _1y2v1nf7t _1y2v1nfba _1y2v1nfbg", h = "_15e54s9g", u = "_15e54s9i _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbg _1y2v1nf6e", p = "_15e54s9m _1y2v1nf6e _1y2v1nf7n _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfaz _1y2v1nfc8 _1y2v1nfba _1y2v1nfbg _1y2v1nfbr _1y2v1nfbq", q = "_15e54s95", z = "_15e54s9a _15e54s96", k = "_15e54s9b _15e54s96", m = "_15e54s9c _15e54s96", O = "_15e54s94", g = "_15e54s97 _15e54s96", j = "_15e54s99 _15e54s96", M = {
4
+ aspectRatio: "var(--_15e54s9y)"
5
+ };
6
+ export { a as actions, _ as boxed, y as cardAction, f as cardActionIconButton, r as cardActionInverse, e as cardActionMedia, b as cardContainer, d as circularMediaOverlay, s as dataCard, c as displayCardBackground, t as displayCardContainer, o as displayCardContent, i as displayCardGradient, C as mediaCard, l as mediaCardContent, h as mediaCardIcon, u as nakedCardContent, p as snapCard, q as touchable, z as touchableCardOverlay, k as touchableCardOverlayInverse, m as touchableCardOverlayMedia, O as touchableContainer, g as touchableMediaCardOverlay, j as touchableNakedMediaOverlay, M as vars };