@swype-org/react-sdk 0.1.213 → 0.1.214

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 CHANGED
@@ -2510,32 +2510,20 @@ var rowStyle = {
2510
2510
  alignItems: "center",
2511
2511
  gap: 6
2512
2512
  };
2513
- function PrimaryButton({ children, onClick, href, disabled, loading, icon }) {
2513
+ function PrimaryButton({ children, onClick, disabled, loading, icon }) {
2514
2514
  const { tokens } = useBlinkConfig();
2515
2515
  const isDisabled = disabled || loading;
2516
- const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2517
- icon && /* @__PURE__ */ jsxRuntime.jsx("span", { style: iconWrapStyle, children: icon }),
2518
- loading ? "Please wait..." : children
2519
- ] });
2520
- if (href && !isDisabled) {
2521
- return /* @__PURE__ */ jsxRuntime.jsx(
2522
- "a",
2523
- {
2524
- href,
2525
- onClick,
2526
- style: linkButtonStyle(tokens),
2527
- children: content
2528
- }
2529
- );
2530
- }
2531
- return /* @__PURE__ */ jsxRuntime.jsx(
2516
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2532
2517
  "button",
2533
2518
  {
2534
2519
  type: "button",
2535
2520
  onClick,
2536
2521
  disabled: isDisabled,
2537
2522
  style: buttonStyle(tokens, isDisabled),
2538
- children: content
2523
+ children: [
2524
+ icon && /* @__PURE__ */ jsxRuntime.jsx("span", { style: iconWrapStyle, children: icon }),
2525
+ loading ? "Please wait..." : children
2526
+ ]
2539
2527
  }
2540
2528
  );
2541
2529
  }
@@ -2558,10 +2546,6 @@ var buttonStyle = (tokens, disabled) => ({
2558
2546
  justifyContent: "center",
2559
2547
  gap: 8
2560
2548
  });
2561
- var linkButtonStyle = (tokens) => ({
2562
- ...buttonStyle(tokens, false),
2563
- textDecoration: "none"
2564
- });
2565
2549
  var iconWrapStyle = {
2566
2550
  display: "flex",
2567
2551
  alignItems: "center"
@@ -4999,13 +4983,10 @@ function OpenWalletScreen({
4999
4983
  {
5000
4984
  footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: footerContentStyle, children: [
5001
4985
  error && /* @__PURE__ */ jsxRuntime.jsx(InfoBanner, { children: error }),
5002
- !loading && (isCustomSchemeUri(deeplinkUri) ? /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { onClick: handleOpen, children: [
4986
+ !loading && /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { onClick: handleOpen, children: [
5003
4987
  "Open ",
5004
4988
  displayName
5005
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(PrimaryButton, { href: deeplinkUri, children: [
5006
- "Open ",
5007
- displayName
5008
- ] })),
4989
+ ] }),
5009
4990
  error && onRetryStatus && /* @__PURE__ */ jsxRuntime.jsx(OutlineButton, { onClick: onRetryStatus, children: "Retry status check" }),
5010
4991
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: hintStyle(tokens.textMuted), children: loading ? "Preparing authorization..." : error ? "Retry the status check after returning to the browser, or reopen your wallet if needed." : "If your wallet didn't open automatically, tap the button above" }),
5011
4992
  /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})