@telefonica/mistica 14.18.1 → 14.19.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.
- package/community.d.ts +1 -0
- package/community.js +19 -0
- package/css/mistica.css +1 -1
- package/dist/button.css-mistica.js +28 -22
- package/dist/button.css.d.ts +3 -1
- package/dist/button.d.ts +6 -0
- package/dist/button.js +67 -65
- package/dist/card.css-mistica.js +17 -17
- package/dist/card.css.d.ts +1 -1
- package/dist/card.d.ts +3 -5
- package/dist/card.js +296 -276
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -0
- package/dist/package-version.js +1 -1
- package/dist/select.css-mistica.js +10 -10
- package/dist/select.js +1 -0
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/button.js +82 -80
- package/dist-es/card.css-mistica.js +3 -3
- package/dist-es/card.js +403 -386
- package/dist-es/index.js +1710 -1710
- package/dist-es/package-version.js +1 -1
- package/dist-es/select.css-mistica.js +7 -7
- package/dist-es/select.js +1 -0
- package/dist-es/style.css +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export { default as HorizontalScroll } from './horizontal-scroll';
|
|
|
51
51
|
export { default as HighlightedCard } from './highlighted-card';
|
|
52
52
|
export { default as Stepper } from './stepper';
|
|
53
53
|
export { default as ProgressBar } from './progress-bar';
|
|
54
|
-
export { MediaCard, DataCard, SnapCard, DisplayDataCard, DisplayMediaCard, PosterCard, NakedCard, SmallNakedCard, } from './card';
|
|
54
|
+
export { MediaCard, DataCard, SnapCard, DisplayDataCard, DisplayMediaCard, PosterCard, NakedCard, SmallNakedCard, CardActionSpinner, } from './card';
|
|
55
55
|
export { default as Hero } from './hero';
|
|
56
56
|
export { default as Divider } from './divider';
|
|
57
57
|
export { default as Menu } from './menu';
|
package/dist/index.js
CHANGED
package/dist/package-version.js
CHANGED
|
@@ -16,10 +16,10 @@ _export(exports, {
|
|
|
16
16
|
return f;
|
|
17
17
|
},
|
|
18
18
|
menuItemSelected: function() {
|
|
19
|
-
return
|
|
19
|
+
return y;
|
|
20
20
|
},
|
|
21
21
|
optionsAnimationsVariants: function() {
|
|
22
|
-
return
|
|
22
|
+
return i;
|
|
23
23
|
},
|
|
24
24
|
optionsContainer: function() {
|
|
25
25
|
return a;
|
|
@@ -28,10 +28,10 @@ _export(exports, {
|
|
|
28
28
|
return s;
|
|
29
29
|
},
|
|
30
30
|
selectTextVariants: function() {
|
|
31
|
-
return
|
|
31
|
+
return e;
|
|
32
32
|
},
|
|
33
33
|
selectVariants: function() {
|
|
34
|
-
return
|
|
34
|
+
return r;
|
|
35
35
|
},
|
|
36
36
|
vars: function() {
|
|
37
37
|
return p;
|
|
@@ -39,18 +39,18 @@ _export(exports, {
|
|
|
39
39
|
});
|
|
40
40
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
41
41
|
require("./select.css.ts.vanilla.css-mistica.js");
|
|
42
|
-
var n = "_1sqpivvo _1y2v1nfb0 _1y2v1nff5", f = "_1sqpivvq _1y2v1nf8w _1y2v1nfa5 _1y2v1nf68 _1y2v1nf7h _1y2v1nf1w _1y2v1nfb4 _1y2v1nfbj _1y2v1nfe3 _1y2v1nfcj",
|
|
42
|
+
var n = "_1sqpivvo _1y2v1nfb0 _1y2v1nff5", f = "_1sqpivvq _1y2v1nf8w _1y2v1nfa5 _1y2v1nf68 _1y2v1nf7h _1y2v1nf1w _1y2v1nfb4 _1y2v1nfbj _1y2v1nfe3 _1y2v1nfcj", y = "_1y2v1nf3e", i = {
|
|
43
43
|
show: "_1sqpivv7",
|
|
44
44
|
hide: "_1sqpivv8"
|
|
45
45
|
}, a = "_1sqpivv6 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb1 _1y2v1nfdu _1y2v1nf31", s = {
|
|
46
46
|
default: "_1sqpivvd _1sqpivvc _1y2v1nfaz _1y2v1nfe3",
|
|
47
47
|
fullWidth: "_1sqpivve _1sqpivvc _1y2v1nfaz _1y2v1nfe3"
|
|
48
|
-
}, r = {
|
|
49
|
-
default: "_1sqpivvl _1sqpivvk _1y2v1nfb0 _1y2v1nfdj _1y2v1nf1w",
|
|
50
|
-
disabled: "_1sqpivvm _1sqpivvk _1y2v1nfb0 _1y2v1nfdj _1y2v1nf1w"
|
|
51
48
|
}, e = {
|
|
52
|
-
default: "
|
|
53
|
-
disabled: "
|
|
49
|
+
default: "_1sqpivvl _1sqpivvk _1y2v1nfb0 _1y2v1nfe4 _1y2v1nfdj _1y2v1nf1w",
|
|
50
|
+
disabled: "_1sqpivvm _1sqpivvk _1y2v1nfb0 _1y2v1nfe4 _1y2v1nfdj _1y2v1nf1w"
|
|
51
|
+
}, r = {
|
|
52
|
+
default: "_1sqpivvh _1sqpivvg _1y2v1nfdm _1y2v1nfe4 _1y2v1nf1w _1y2v1nf5y _1y2v1nfbr _1y2v1nfc8",
|
|
53
|
+
disabled: "_1sqpivvi _1sqpivvg _1y2v1nfdm _1y2v1nfe4 _1y2v1nf1w _1y2v1nf5y _1y2v1nfbr _1y2v1nfc8"
|
|
54
54
|
}, p = {
|
|
55
55
|
top: "var(--_1sqpivv0)",
|
|
56
56
|
left: "var(--_1sqpivv1)",
|
package/dist/select.js
CHANGED
|
@@ -302,6 +302,7 @@ const Ye = (param)=>{
|
|
|
302
302
|
style: {
|
|
303
303
|
paddingTop: d ? 24 : 16,
|
|
304
304
|
paddingBottom: d ? 8 : 16,
|
|
305
|
+
paddingRight: 48,
|
|
305
306
|
// Override default browser opacity when disabled. This opacity also affects the label.
|
|
306
307
|
// Without this fix, the label is invisible when disabled
|
|
307
308
|
opacity: 1
|
|
@@ -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,
|
|
4
|
-
primary: "
|
|
5
|
-
secondary: "
|
|
6
|
-
danger: "
|
|
7
|
-
},
|
|
8
|
-
primary: "
|
|
9
|
-
secondary: "
|
|
10
|
-
danger: "
|
|
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,
|
|
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
|
|
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
|
|
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,28 +91,28 @@ 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
|
|
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:
|
|
97
|
-
const c = H(e),
|
|
96
|
+
let { content: e , defaultIconSize: r , renderText: n } = param;
|
|
97
|
+
const c = H(e), m = c.length, d = [];
|
|
98
98
|
let l = [];
|
|
99
99
|
const g = ()=>{
|
|
100
100
|
d.push(/* @__PURE__ */ t(o.Fragment, {
|
|
101
101
|
children: n(l)
|
|
102
102
|
}, d.length)), l = [];
|
|
103
103
|
};
|
|
104
|
-
return c.forEach((u,
|
|
105
|
-
const a =
|
|
104
|
+
return c.forEach((u, f)=>{
|
|
105
|
+
const a = f === 0, s = f === m - 1;
|
|
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 :
|
|
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 :
|
|
115
|
-
marginRight: s ? 0 :
|
|
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,7 +120,7 @@ const w = (param)=>{
|
|
|
120
120
|
}, d.length));
|
|
121
121
|
} else l.push(u), s && g();
|
|
122
122
|
}), d;
|
|
123
|
-
},
|
|
123
|
+
}, ue = ()=>/* @__PURE__ */ t("svg", {
|
|
124
124
|
width: "8",
|
|
125
125
|
height: "20",
|
|
126
126
|
viewBox: "0 0 8 20",
|
|
@@ -128,9 +128,9 @@ const w = (param)=>{
|
|
|
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
|
-
}),
|
|
132
|
-
let { showSpinner: e , children:
|
|
133
|
-
const s = n ?
|
|
131
|
+
}), D = (param)=>{
|
|
132
|
+
let { showSpinner: e , children: r , small: n , loadingText: c , shouldRenderSpinner: m , setShouldRenderSpinner: d , renderText: l , textContentStyle: g , StartIcon: u , EndIcon: f , 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:
|
|
144
|
+
marginRight: E
|
|
145
145
|
},
|
|
146
146
|
children: /* @__PURE__ */ t(u, {
|
|
147
147
|
size: s,
|
|
@@ -149,17 +149,17 @@ const w = (param)=>{
|
|
|
149
149
|
})
|
|
150
150
|
}),
|
|
151
151
|
w({
|
|
152
|
-
content:
|
|
152
|
+
content: r,
|
|
153
153
|
defaultIconSize: s,
|
|
154
154
|
renderText: l
|
|
155
155
|
}),
|
|
156
|
-
|
|
156
|
+
f && !a && /* @__PURE__ */ t("div", {
|
|
157
157
|
style: {
|
|
158
158
|
display: "flex",
|
|
159
159
|
alignItems: "center",
|
|
160
|
-
marginLeft:
|
|
160
|
+
marginLeft: E
|
|
161
161
|
},
|
|
162
|
-
children: /* @__PURE__ */ t(
|
|
162
|
+
children: /* @__PURE__ */ t(f, {
|
|
163
163
|
size: s,
|
|
164
164
|
color: "currentColor"
|
|
165
165
|
})
|
|
@@ -168,18 +168,18 @@ const w = (param)=>{
|
|
|
168
168
|
style: {
|
|
169
169
|
display: "flex",
|
|
170
170
|
alignItems: "center",
|
|
171
|
-
marginLeft:
|
|
171
|
+
marginLeft: re
|
|
172
172
|
},
|
|
173
|
-
children: /* @__PURE__ */ t(
|
|
173
|
+
children: /* @__PURE__ */ t(ue, {})
|
|
174
174
|
})
|
|
175
175
|
]
|
|
176
176
|
}),
|
|
177
177
|
/* @__PURE__ */ t("div", {
|
|
178
|
-
className:
|
|
178
|
+
className: oe,
|
|
179
179
|
"aria-hidden": !0,
|
|
180
180
|
style: c ? {
|
|
181
|
-
paddingLeft:
|
|
182
|
-
paddingRight:
|
|
181
|
+
paddingLeft: i,
|
|
182
|
+
paddingRight: E + 2 * (n ? ae : se)
|
|
183
183
|
} : void 0,
|
|
184
184
|
children: w({
|
|
185
185
|
content: c,
|
|
@@ -189,21 +189,21 @@ const w = (param)=>{
|
|
|
189
189
|
}),
|
|
190
190
|
/* @__PURE__ */ C("div", {
|
|
191
191
|
"aria-hidden": e ? void 0 : !0,
|
|
192
|
-
className:
|
|
192
|
+
className: ce,
|
|
193
193
|
onTransitionEnd: ()=>{
|
|
194
|
-
e !==
|
|
194
|
+
e !== m && d(e);
|
|
195
195
|
},
|
|
196
196
|
children: [
|
|
197
|
-
|
|
197
|
+
m ? /* @__PURE__ */ t(z, {
|
|
198
198
|
rolePresentation: !!c,
|
|
199
199
|
color: "currentcolor",
|
|
200
200
|
delay: "0s",
|
|
201
|
-
size:
|
|
201
|
+
size: i
|
|
202
202
|
}) : /* @__PURE__ */ t("div", {
|
|
203
203
|
style: {
|
|
204
204
|
display: "inline-block",
|
|
205
|
-
width:
|
|
206
|
-
height:
|
|
205
|
+
width: i,
|
|
206
|
+
height: i
|
|
207
207
|
}
|
|
208
208
|
}),
|
|
209
209
|
c ? /* @__PURE__ */ t(G, {
|
|
@@ -218,14 +218,14 @@ const w = (param)=>{
|
|
|
218
218
|
})
|
|
219
219
|
]
|
|
220
220
|
});
|
|
221
|
-
}, N = /*#__PURE__*/ o.forwardRef((e,
|
|
222
|
-
const { textPresets: n } = O(), { eventFormat: c } = W(), { formStatus:
|
|
221
|
+
}, N = /*#__PURE__*/ o.forwardRef((e, r)=>{
|
|
222
|
+
const { textPresets: n } = O(), { eventFormat: c } = W(), { formStatus: m , formId: d } = k(), l = x(), { loadingText: g } = e, u = !!e.submit, f = m === "sending", [a, s] = o.useState(!1), i = e.showSpinner || f && u || a, [v, L] = o.useState(!!i);
|
|
223
223
|
o.useEffect(()=>{
|
|
224
|
-
|
|
224
|
+
i && !v && L(!0);
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
i,
|
|
227
227
|
v,
|
|
228
|
-
|
|
228
|
+
m
|
|
229
229
|
]);
|
|
230
230
|
var _e_trackingEvent;
|
|
231
231
|
const S = ()=>c === "google-analytics-4" ? {
|
|
@@ -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
|
-
},
|
|
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:
|
|
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:
|
|
252
|
+
children: b
|
|
253
253
|
}), h = {
|
|
254
|
-
ref:
|
|
255
|
-
className:
|
|
256
|
-
[
|
|
257
|
-
[
|
|
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:
|
|
268
|
-
showSpinner:
|
|
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:
|
|
275
|
-
textContentStyle:
|
|
274
|
+
renderText: I,
|
|
275
|
+
textContentStyle: q,
|
|
276
276
|
StartIcon: e.StartIcon,
|
|
277
277
|
EndIcon: e.EndIcon
|
|
278
278
|
}),
|
|
279
|
-
disabled: e.disabled ||
|
|
279
|
+
disabled: e.disabled || i || f,
|
|
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: (
|
|
296
|
-
const _ = e.onPress(
|
|
295
|
+
onPress: (b)=>{
|
|
296
|
+
const _ = e.onPress(b);
|
|
297
297
|
_ && (s(!0), _.finally(()=>s(!1)));
|
|
298
298
|
}
|
|
299
299
|
}));
|
|
@@ -308,18 +308,18 @@ const w = (param)=>{
|
|
|
308
308
|
}));
|
|
309
309
|
if (process.env.NODE_ENV !== "production") throw Error("Bad button props");
|
|
310
310
|
return null;
|
|
311
|
-
}),
|
|
311
|
+
}), Ne = /*#__PURE__*/ o.forwardRef((e, r)=>{
|
|
312
312
|
var _e_withChevron;
|
|
313
|
-
const { formStatus: n } = k(), c =
|
|
313
|
+
const { formStatus: n } = k(), c = x(), { analytics: m , textPresets: d } = O(), { loadingText: l } = e, g = n === "sending", [u, f] = 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 && !
|
|
315
|
+
a && !i && v(!0);
|
|
316
316
|
}, [
|
|
317
317
|
a,
|
|
318
|
-
|
|
318
|
+
i,
|
|
319
319
|
n
|
|
320
320
|
]);
|
|
321
321
|
var _e_trackingEvent;
|
|
322
|
-
const L = ()=>
|
|
322
|
+
const L = ()=>m.eventFormat === "google-analytics-4" ? {
|
|
323
323
|
name: A.userInteraction,
|
|
324
324
|
component_type: "link",
|
|
325
325
|
component_copy: P(e.children)
|
|
@@ -332,25 +332,27 @@ const w = (param)=>{
|
|
|
332
332
|
truncate: 1,
|
|
333
333
|
color: "inherit",
|
|
334
334
|
children: h
|
|
335
|
-
}),
|
|
336
|
-
className:
|
|
337
|
-
[
|
|
338
|
-
[
|
|
339
|
-
[
|
|
335
|
+
}), I = {
|
|
336
|
+
className: R(J, {
|
|
337
|
+
[Q]: c,
|
|
338
|
+
[U]: !!e.bleedLeft,
|
|
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:
|
|
347
|
+
children: D({
|
|
346
348
|
showSpinner: a,
|
|
347
|
-
shouldRenderSpinner:
|
|
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:
|
|
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:
|
|
363
|
-
},
|
|
364
|
+
ref: r
|
|
365
|
+
}, I), {
|
|
364
366
|
onPress: (h)=>{
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
+
const b = e.onPress(h);
|
|
368
|
+
b && (f(!0), b.finally(()=>f(!1)));
|
|
367
369
|
}
|
|
368
370
|
}));
|
|
369
371
|
if (e.to || e.to === "") return /* @__PURE__ */ t(y, _object_spread_props(_object_spread({
|
|
370
|
-
ref:
|
|
371
|
-
},
|
|
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:
|
|
377
|
-
},
|
|
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
|
-
}),
|
|
384
|
-
var { dataAttributes: e } = _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
|
-
},
|
|
393
|
+
}, r), {
|
|
392
394
|
ref: n,
|
|
393
395
|
type: "primary"
|
|
394
396
|
}));
|
|
395
|
-
}),
|
|
396
|
-
var { dataAttributes: e } = _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
|
-
},
|
|
405
|
+
}, r), {
|
|
404
406
|
ref: n,
|
|
405
407
|
type: "secondary"
|
|
406
408
|
}));
|
|
407
|
-
}),
|
|
408
|
-
var { dataAttributes: e } = _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
|
-
},
|
|
417
|
+
}, r), {
|
|
416
418
|
ref: n,
|
|
417
419
|
type: "danger"
|
|
418
420
|
}));
|
|
419
421
|
});
|
|
420
|
-
export {
|
|
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
|
|
3
|
+
var a = "_15e54s91 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfbk", _ = "_15e54s93 _1y2v1nfb4 _1y2v1nfaz", y = "_15e54s9w _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", f = "_1y2v1nfb4 _1y2v1nfc3 _1y2v1nfcj _1y2v1nfbj _1y2v1nfbd", r = "_15e54s9x _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", e = "_15e54s9y _1y2v1nfc1 _1y2v1nfch _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn", b = "_15e54s910", d = "_15e54s98", s = "_15e54s9k _1y2v1nf8w _1y2v1nfa5 _1y2v1nf6k _1y2v1nf7t _1y2v1nfb4 _1y2v1nfbq _1y2v1nfaz _1y2v1nfba _1y2v1nfbr", c = "_15e54s9s", t = "_1y2v1nfbr _1y2v1nfc8 _1y2v1nfb4 _1y2v1nfaz", o = "_15e54s9r", i = "_15e54s9t", 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", z = "_15e54s95", k = "_15e54s9a _15e54s96", m = "_15e54s9b _15e54s96", q = "_15e54s9c _15e54s96", O = "_15e54s94", g = "_15e54s97 _15e54s96", j = "_15e54s99 _15e54s96", M = {
|
|
4
4
|
aspectRatio: "var(--_15e54s9z)"
|
|
5
|
-
}
|
|
6
|
-
export {
|
|
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, z as touchable, k as touchableCardOverlay, m as touchableCardOverlayInverse, q as touchableCardOverlayMedia, O as touchableContainer, g as touchableMediaCardOverlay, j as touchableNakedMediaOverlay, M as vars };
|