@swype-org/react-sdk 0.1.182 → 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 +31 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2285,13 +2285,7 @@ function useFlowPhase() {
|
|
|
2285
2285
|
function StepProgress({ phase }) {
|
|
2286
2286
|
const { tokens } = useSwypeConfig();
|
|
2287
2287
|
if (phase === "deposit") {
|
|
2288
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
2289
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: dotStyle(tokens.textMuted) }),
|
|
2290
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle(tokens.textMuted), children: "Link" }),
|
|
2291
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: lineStyle(tokens.textMuted) }),
|
|
2292
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: dotStyle(tokens.accent) }),
|
|
2293
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle(tokens.text), children: "Deposit" })
|
|
2294
|
-
] });
|
|
2288
|
+
return /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle });
|
|
2295
2289
|
}
|
|
2296
2290
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: containerStyle3, children: [
|
|
2297
2291
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: dotStyle(tokens.accent) }),
|
|
@@ -2326,6 +2320,10 @@ var labelStyle = (color) => ({
|
|
|
2326
2320
|
color,
|
|
2327
2321
|
whiteSpace: "nowrap"
|
|
2328
2322
|
});
|
|
2323
|
+
var mascotStyle = {
|
|
2324
|
+
width: 28,
|
|
2325
|
+
height: 28
|
|
2326
|
+
};
|
|
2329
2327
|
function ScreenHeader({ title, right, onBack, badge }) {
|
|
2330
2328
|
const { tokens } = useSwypeConfig();
|
|
2331
2329
|
const flowPhase = useFlowPhase();
|
|
@@ -3003,11 +3001,11 @@ function StepList({ steps }) {
|
|
|
3003
3001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3004
3002
|
"div",
|
|
3005
3003
|
{
|
|
3006
|
-
style: badgeStyle2(
|
|
3007
|
-
isComplete ? tokens.accent :
|
|
3008
|
-
isComplete
|
|
3004
|
+
style: isActive ? activeBadgeContainerStyle : badgeStyle2(
|
|
3005
|
+
isComplete ? tokens.accent : tokens.border,
|
|
3006
|
+
isComplete
|
|
3009
3007
|
),
|
|
3010
|
-
children: isComplete ? /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: "#fff" }) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { style:
|
|
3008
|
+
children: isComplete ? /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx("span", { style: activeDotStyle(tokens.accent) }) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: badgeNumberStyle, children: i + 1 })
|
|
3011
3009
|
}
|
|
3012
3010
|
),
|
|
3013
3011
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: labelContainerStyle, children: [
|
|
@@ -3038,11 +3036,26 @@ var badgeStyle2 = (color, filled) => ({
|
|
|
3038
3036
|
justifyContent: "center",
|
|
3039
3037
|
flexShrink: 0
|
|
3040
3038
|
});
|
|
3041
|
-
var
|
|
3039
|
+
var activeBadgeContainerStyle = {
|
|
3040
|
+
width: 28,
|
|
3041
|
+
height: 28,
|
|
3042
|
+
display: "flex",
|
|
3043
|
+
alignItems: "center",
|
|
3044
|
+
justifyContent: "center",
|
|
3045
|
+
flexShrink: 0
|
|
3046
|
+
};
|
|
3047
|
+
var activeDotStyle = (color) => ({
|
|
3048
|
+
width: 8,
|
|
3049
|
+
height: 8,
|
|
3050
|
+
borderRadius: "50%",
|
|
3051
|
+
backgroundColor: color,
|
|
3052
|
+
display: "block"
|
|
3053
|
+
});
|
|
3054
|
+
var badgeNumberStyle = {
|
|
3042
3055
|
fontSize: "0.75rem",
|
|
3043
3056
|
fontWeight: 600,
|
|
3044
|
-
color:
|
|
3045
|
-
}
|
|
3057
|
+
color: "inherit"
|
|
3058
|
+
};
|
|
3046
3059
|
var labelContainerStyle = {
|
|
3047
3060
|
display: "flex",
|
|
3048
3061
|
flexDirection: "column"
|
|
@@ -4104,7 +4117,7 @@ function SetupStatusScreen({
|
|
|
4104
4117
|
return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {}), children: [
|
|
4105
4118
|
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack: onContinue }),
|
|
4106
4119
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle5, children: [
|
|
4107
|
-
/* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style:
|
|
4120
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle2 }),
|
|
4108
4121
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle6(tokens.text), children: "Done!" }),
|
|
4109
4122
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle3(tokens.textSecondary), children: "Return to the app to try one-tap deposits." })
|
|
4110
4123
|
] })
|
|
@@ -4134,7 +4147,7 @@ var contentStyle5 = {
|
|
|
4134
4147
|
textAlign: "center",
|
|
4135
4148
|
padding: "0 24px 32px"
|
|
4136
4149
|
};
|
|
4137
|
-
var
|
|
4150
|
+
var mascotStyle2 = {
|
|
4138
4151
|
width: 56,
|
|
4139
4152
|
height: 56
|
|
4140
4153
|
};
|
|
@@ -4283,7 +4296,7 @@ function DepositScreen({
|
|
|
4283
4296
|
] }),
|
|
4284
4297
|
children: [
|
|
4285
4298
|
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack }),
|
|
4286
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: mascotWrapStyle, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style:
|
|
4299
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: mascotWrapStyle, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle3 }) }),
|
|
4287
4300
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: depositCardStyle(tokens), children: [
|
|
4288
4301
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: depositLabelStyle(tokens.textMuted), children: "Depositing" }),
|
|
4289
4302
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: amountRowStyle2, children: [
|
|
@@ -4340,7 +4353,7 @@ var mascotWrapStyle = {
|
|
|
4340
4353
|
justifyContent: "center",
|
|
4341
4354
|
marginBottom: 16
|
|
4342
4355
|
};
|
|
4343
|
-
var
|
|
4356
|
+
var mascotStyle3 = {
|
|
4344
4357
|
width: 36,
|
|
4345
4358
|
height: 36
|
|
4346
4359
|
};
|