@swype-org/react-sdk 0.1.166 → 0.1.168
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 +27 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2322,18 +2322,22 @@ var badgeStyle = (color) => ({
|
|
|
2322
2322
|
function PoweredByFooter() {
|
|
2323
2323
|
const { tokens } = useSwypeConfig();
|
|
2324
2324
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: containerStyle3(tokens.textMuted), children: [
|
|
2325
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2326
|
-
"
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2325
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: rowStyle, children: [
|
|
2326
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2327
|
+
"path",
|
|
2328
|
+
{
|
|
2329
|
+
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3-9H9V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z",
|
|
2330
|
+
fill: "currentColor"
|
|
2331
|
+
}
|
|
2332
|
+
) }),
|
|
2333
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Powered by Blink" })
|
|
2334
|
+
] }),
|
|
2335
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: pillStyle(tokens.textMuted, tokens.border), children: "Beta Version" })
|
|
2333
2336
|
] });
|
|
2334
2337
|
}
|
|
2335
2338
|
var containerStyle3 = (color) => ({
|
|
2336
2339
|
display: "flex",
|
|
2340
|
+
flexDirection: "column",
|
|
2337
2341
|
alignItems: "center",
|
|
2338
2342
|
justifyContent: "center",
|
|
2339
2343
|
gap: 6,
|
|
@@ -2341,6 +2345,19 @@ var containerStyle3 = (color) => ({
|
|
|
2341
2345
|
color,
|
|
2342
2346
|
padding: "12px 0 4px"
|
|
2343
2347
|
});
|
|
2348
|
+
var rowStyle = {
|
|
2349
|
+
display: "flex",
|
|
2350
|
+
alignItems: "center",
|
|
2351
|
+
gap: 6
|
|
2352
|
+
};
|
|
2353
|
+
var pillStyle = (color, border) => ({
|
|
2354
|
+
fontSize: "0.65rem",
|
|
2355
|
+
fontWeight: 600,
|
|
2356
|
+
padding: "2px 8px",
|
|
2357
|
+
borderRadius: 999,
|
|
2358
|
+
border: `1px solid ${border}`,
|
|
2359
|
+
color
|
|
2360
|
+
});
|
|
2344
2361
|
function PrimaryButton({ children, onClick, disabled, loading, icon }) {
|
|
2345
2362
|
const { tokens } = useSwypeConfig();
|
|
2346
2363
|
const isDisabled = disabled || loading;
|
|
@@ -2927,7 +2944,7 @@ function StepList({ steps }) {
|
|
|
2927
2944
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { style: listStyle, children: steps.map((step, i) => {
|
|
2928
2945
|
const isComplete = step.status === "complete";
|
|
2929
2946
|
const isActive = step.status === "active";
|
|
2930
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style:
|
|
2947
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: rowStyle2, children: [
|
|
2931
2948
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2932
2949
|
"div",
|
|
2933
2950
|
{
|
|
@@ -2950,7 +2967,7 @@ var listStyle = {
|
|
|
2950
2967
|
flexDirection: "column",
|
|
2951
2968
|
gap: 12
|
|
2952
2969
|
};
|
|
2953
|
-
var
|
|
2970
|
+
var rowStyle2 = {
|
|
2954
2971
|
display: "flex",
|
|
2955
2972
|
alignItems: "center",
|
|
2956
2973
|
gap: 12
|