@swype-org/react-sdk 0.1.181 → 0.1.183
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/dist/index.cjs +33 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2282,13 +2282,7 @@ function useFlowPhase() {
|
|
|
2282
2282
|
function StepProgress({ phase }) {
|
|
2283
2283
|
const { tokens } = useSwypeConfig();
|
|
2284
2284
|
if (phase === "deposit") {
|
|
2285
|
-
return /* @__PURE__ */
|
|
2286
|
-
/* @__PURE__ */ jsx("span", { style: dotStyle(tokens.textMuted) }),
|
|
2287
|
-
/* @__PURE__ */ jsx("span", { style: labelStyle(tokens.textMuted), children: "Link" }),
|
|
2288
|
-
/* @__PURE__ */ jsx("span", { style: lineStyle(tokens.textMuted) }),
|
|
2289
|
-
/* @__PURE__ */ jsx("span", { style: dotStyle(tokens.accent) }),
|
|
2290
|
-
/* @__PURE__ */ jsx("span", { style: labelStyle(tokens.text), children: "Deposit" })
|
|
2291
|
-
] });
|
|
2285
|
+
return /* @__PURE__ */ jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle });
|
|
2292
2286
|
}
|
|
2293
2287
|
return /* @__PURE__ */ jsxs("div", { style: containerStyle3, children: [
|
|
2294
2288
|
/* @__PURE__ */ jsx("span", { style: dotStyle(tokens.accent) }),
|
|
@@ -2313,7 +2307,7 @@ var dotStyle = (color) => ({
|
|
|
2313
2307
|
var lineStyle = (color) => ({
|
|
2314
2308
|
width: 32,
|
|
2315
2309
|
height: 0,
|
|
2316
|
-
borderTop: `2px
|
|
2310
|
+
borderTop: `2px solid ${color}`,
|
|
2317
2311
|
opacity: 0.4,
|
|
2318
2312
|
flexShrink: 0
|
|
2319
2313
|
});
|
|
@@ -2323,6 +2317,10 @@ var labelStyle = (color) => ({
|
|
|
2323
2317
|
color,
|
|
2324
2318
|
whiteSpace: "nowrap"
|
|
2325
2319
|
});
|
|
2320
|
+
var mascotStyle = {
|
|
2321
|
+
width: 28,
|
|
2322
|
+
height: 28
|
|
2323
|
+
};
|
|
2326
2324
|
function ScreenHeader({ title, right, onBack, badge }) {
|
|
2327
2325
|
const { tokens } = useSwypeConfig();
|
|
2328
2326
|
const flowPhase = useFlowPhase();
|
|
@@ -3000,11 +2998,11 @@ function StepList({ steps }) {
|
|
|
3000
2998
|
/* @__PURE__ */ jsx(
|
|
3001
2999
|
"div",
|
|
3002
3000
|
{
|
|
3003
|
-
style: badgeStyle2(
|
|
3004
|
-
isComplete ? tokens.accent :
|
|
3005
|
-
isComplete
|
|
3001
|
+
style: isActive ? activeBadgeContainerStyle : badgeStyle2(
|
|
3002
|
+
isComplete ? tokens.accent : tokens.border,
|
|
3003
|
+
isComplete
|
|
3006
3004
|
),
|
|
3007
|
-
children: isComplete ? /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: "#fff" }) }) : /* @__PURE__ */ jsx("span", { style:
|
|
3005
|
+
children: isComplete ? /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: "#fff" }) }) : isActive ? /* @__PURE__ */ jsx("span", { style: activeDotStyle(tokens.accent) }) : /* @__PURE__ */ jsx("span", { style: badgeNumberStyle, children: i + 1 })
|
|
3008
3006
|
}
|
|
3009
3007
|
),
|
|
3010
3008
|
/* @__PURE__ */ jsxs("div", { style: labelContainerStyle, children: [
|
|
@@ -3035,11 +3033,26 @@ var badgeStyle2 = (color, filled) => ({
|
|
|
3035
3033
|
justifyContent: "center",
|
|
3036
3034
|
flexShrink: 0
|
|
3037
3035
|
});
|
|
3038
|
-
var
|
|
3036
|
+
var activeBadgeContainerStyle = {
|
|
3037
|
+
width: 28,
|
|
3038
|
+
height: 28,
|
|
3039
|
+
display: "flex",
|
|
3040
|
+
alignItems: "center",
|
|
3041
|
+
justifyContent: "center",
|
|
3042
|
+
flexShrink: 0
|
|
3043
|
+
};
|
|
3044
|
+
var activeDotStyle = (color) => ({
|
|
3045
|
+
width: 8,
|
|
3046
|
+
height: 8,
|
|
3047
|
+
borderRadius: "50%",
|
|
3048
|
+
backgroundColor: color,
|
|
3049
|
+
display: "block"
|
|
3050
|
+
});
|
|
3051
|
+
var badgeNumberStyle = {
|
|
3039
3052
|
fontSize: "0.75rem",
|
|
3040
3053
|
fontWeight: 600,
|
|
3041
|
-
color:
|
|
3042
|
-
}
|
|
3054
|
+
color: "inherit"
|
|
3055
|
+
};
|
|
3043
3056
|
var labelContainerStyle = {
|
|
3044
3057
|
display: "flex",
|
|
3045
3058
|
flexDirection: "column"
|
|
@@ -3844,7 +3857,7 @@ var continueRowStyle = (tokens) => ({
|
|
|
3844
3857
|
padding: "10px 16px",
|
|
3845
3858
|
fontSize: "0.84rem",
|
|
3846
3859
|
fontWeight: 600,
|
|
3847
|
-
color: tokens.
|
|
3860
|
+
color: tokens.text,
|
|
3848
3861
|
background: `${tokens.accent}0d`,
|
|
3849
3862
|
borderTop: `1px solid ${tokens.accent}22`
|
|
3850
3863
|
});
|
|
@@ -4101,7 +4114,7 @@ function SetupStatusScreen({
|
|
|
4101
4114
|
return /* @__PURE__ */ jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsx(PoweredByFooter, {}), children: [
|
|
4102
4115
|
/* @__PURE__ */ jsx(ScreenHeader, { onBack: onContinue }),
|
|
4103
4116
|
/* @__PURE__ */ jsxs("div", { style: contentStyle5, children: [
|
|
4104
|
-
/* @__PURE__ */ jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style:
|
|
4117
|
+
/* @__PURE__ */ jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle2 }),
|
|
4105
4118
|
/* @__PURE__ */ jsx("h2", { style: headingStyle6(tokens.text), children: "Done!" }),
|
|
4106
4119
|
/* @__PURE__ */ jsx("p", { style: subtitleStyle3(tokens.textSecondary), children: "Return to the app to try one-tap deposits." })
|
|
4107
4120
|
] })
|
|
@@ -4131,7 +4144,7 @@ var contentStyle5 = {
|
|
|
4131
4144
|
textAlign: "center",
|
|
4132
4145
|
padding: "0 24px 32px"
|
|
4133
4146
|
};
|
|
4134
|
-
var
|
|
4147
|
+
var mascotStyle2 = {
|
|
4135
4148
|
width: 56,
|
|
4136
4149
|
height: 56
|
|
4137
4150
|
};
|
|
@@ -4280,7 +4293,7 @@ function DepositScreen({
|
|
|
4280
4293
|
] }),
|
|
4281
4294
|
children: [
|
|
4282
4295
|
/* @__PURE__ */ jsx(ScreenHeader, { onBack }),
|
|
4283
|
-
/* @__PURE__ */ jsx("div", { style: mascotWrapStyle, children: /* @__PURE__ */ jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style:
|
|
4296
|
+
/* @__PURE__ */ jsx("div", { style: mascotWrapStyle, children: /* @__PURE__ */ jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle3 }) }),
|
|
4284
4297
|
/* @__PURE__ */ jsxs("div", { style: depositCardStyle(tokens), children: [
|
|
4285
4298
|
/* @__PURE__ */ jsx("div", { style: depositLabelStyle(tokens.textMuted), children: "Depositing" }),
|
|
4286
4299
|
/* @__PURE__ */ jsxs("div", { style: amountRowStyle2, children: [
|
|
@@ -4337,7 +4350,7 @@ var mascotWrapStyle = {
|
|
|
4337
4350
|
justifyContent: "center",
|
|
4338
4351
|
marginBottom: 16
|
|
4339
4352
|
};
|
|
4340
|
-
var
|
|
4353
|
+
var mascotStyle3 = {
|
|
4341
4354
|
width: 36,
|
|
4342
4355
|
height: 36
|
|
4343
4356
|
};
|