kaleido-ui 0.1.32 → 0.1.34

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.
@@ -2495,10 +2495,7 @@ function getAccountNetworkUi(network) {
2495
2495
  }
2496
2496
  function AccountHeaderIcons({ accountId }) {
2497
2497
  if (accountId === "RGB") {
2498
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex -space-x-1", children: [
2499
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex size-10 items-center justify-center rounded-full bg-network-bitcoin/15 shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: "/icons/lightning/lightning.svg", alt: "Lightning", className: "size-5 object-contain" }) }),
2500
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex size-10 items-center justify-center rounded-full bg-primary/15 shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: "/icons/rgb/rgb-logo.svg", alt: "RGB", className: "size-5 object-contain" }) })
2501
- ] });
2498
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex size-10 items-center justify-center rounded-full bg-primary/15 shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: "/icons/rgb/rgb-logo.svg", alt: "RGB", className: "size-5 object-contain" }) });
2502
2499
  }
2503
2500
  if (accountId === "SPARK") {
2504
2501
  return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex size-10 items-center justify-center rounded-full bg-info/10 shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("img", { src: "/icons/spark/Asterisk/Spark Asterisk White.svg", alt: "Spark", className: "size-5 object-contain" }) });
@@ -6418,7 +6415,8 @@ function BtcUnifiedReceive({
6418
6415
  setAmount,
6419
6416
  setInvoiceStatus,
6420
6417
  setAccountReceiveResult,
6421
- handleDone
6418
+ handleDone,
6419
+ showRegenerate = true
6422
6420
  }) {
6423
6421
  const accountNetwork = btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain";
6424
6422
  const qrNetwork = NETWORK_CONFIG[accountNetwork];
@@ -6526,7 +6524,7 @@ function BtcUnifiedReceive({
6526
6524
  }
6527
6525
  ),
6528
6526
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex gap-2.5 pt-1", children: [
6529
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6527
+ showRegenerate && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6530
6528
  "button",
6531
6529
  {
6532
6530
  type: "button",
@@ -6543,7 +6541,7 @@ function BtcUnifiedReceive({
6543
6541
  ]
6544
6542
  }
6545
6543
  ),
6546
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { variant: "cta", onClick: handleDone, children: [
6544
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Button, { variant: "cta", onClick: handleDone, className: showRegenerate ? void 0 : "flex-1", children: [
6547
6545
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
6548
6546
  "Done"
6549
6547
  ] })
@@ -1169,8 +1169,16 @@ interface BtcUnifiedReceiveProps {
1169
1169
  setInvoiceStatus: (value: string | null) => void;
1170
1170
  setAccountReceiveResult: (result: null) => void;
1171
1171
  handleDone: () => void;
1172
+ /**
1173
+ * Show the "New Address" regenerate button below the QR. Defaults to true
1174
+ * for backwards compatibility. Set to false on flows where regenerating an
1175
+ * address is not meaningful (e.g. RGB on-chain receive — the addresses
1176
+ * are derived from the active RGB invoice and starting over from this
1177
+ * button leads to a half-initialised state).
1178
+ */
1179
+ showRegenerate?: boolean;
1172
1180
  }
1173
- declare function BtcUnifiedReceive({ btcSelectedAccount, accountReceiveResult, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, setAddress, setAmount, setInvoiceStatus, setAccountReceiveResult, handleDone, }: BtcUnifiedReceiveProps): react_jsx_runtime.JSX.Element;
1181
+ declare function BtcUnifiedReceive({ btcSelectedAccount, accountReceiveResult, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, setAddress, setAmount, setInvoiceStatus, setAccountReceiveResult, handleDone, showRegenerate, }: BtcUnifiedReceiveProps): react_jsx_runtime.JSX.Element;
1174
1182
 
1175
1183
  interface DepositGeneratedAsset {
1176
1184
  ticker?: string;
@@ -1169,8 +1169,16 @@ interface BtcUnifiedReceiveProps {
1169
1169
  setInvoiceStatus: (value: string | null) => void;
1170
1170
  setAccountReceiveResult: (result: null) => void;
1171
1171
  handleDone: () => void;
1172
+ /**
1173
+ * Show the "New Address" regenerate button below the QR. Defaults to true
1174
+ * for backwards compatibility. Set to false on flows where regenerating an
1175
+ * address is not meaningful (e.g. RGB on-chain receive — the addresses
1176
+ * are derived from the active RGB invoice and starting over from this
1177
+ * button leads to a half-initialised state).
1178
+ */
1179
+ showRegenerate?: boolean;
1172
1180
  }
1173
- declare function BtcUnifiedReceive({ btcSelectedAccount, accountReceiveResult, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, setAddress, setAmount, setInvoiceStatus, setAccountReceiveResult, handleDone, }: BtcUnifiedReceiveProps): react_jsx_runtime.JSX.Element;
1181
+ declare function BtcUnifiedReceive({ btcSelectedAccount, accountReceiveResult, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, setAddress, setAmount, setInvoiceStatus, setAccountReceiveResult, handleDone, showRegenerate, }: BtcUnifiedReceiveProps): react_jsx_runtime.JSX.Element;
1174
1182
 
1175
1183
  interface DepositGeneratedAsset {
1176
1184
  ticker?: string;
package/dist/web/index.js CHANGED
@@ -2337,10 +2337,7 @@ function getAccountNetworkUi(network) {
2337
2337
  }
2338
2338
  function AccountHeaderIcons({ accountId }) {
2339
2339
  if (accountId === "RGB") {
2340
- return /* @__PURE__ */ jsxs18("div", { className: "flex -space-x-1", children: [
2341
- /* @__PURE__ */ jsx31("span", { className: "flex size-10 items-center justify-center rounded-full bg-network-bitcoin/15 shadow-inner", children: /* @__PURE__ */ jsx31("img", { src: "/icons/lightning/lightning.svg", alt: "Lightning", className: "size-5 object-contain" }) }),
2342
- /* @__PURE__ */ jsx31("span", { className: "flex size-10 items-center justify-center rounded-full bg-primary/15 shadow-inner", children: /* @__PURE__ */ jsx31("img", { src: "/icons/rgb/rgb-logo.svg", alt: "RGB", className: "size-5 object-contain" }) })
2343
- ] });
2340
+ return /* @__PURE__ */ jsx31("span", { className: "flex size-10 items-center justify-center rounded-full bg-primary/15 shadow-inner", children: /* @__PURE__ */ jsx31("img", { src: "/icons/rgb/rgb-logo.svg", alt: "RGB", className: "size-5 object-contain" }) });
2344
2341
  }
2345
2342
  if (accountId === "SPARK") {
2346
2343
  return /* @__PURE__ */ jsx31("span", { className: "flex size-10 items-center justify-center rounded-full bg-info/10 shadow-inner", children: /* @__PURE__ */ jsx31("img", { src: "/icons/spark/Asterisk/Spark Asterisk White.svg", alt: "Spark", className: "size-5 object-contain" }) });
@@ -6260,7 +6257,8 @@ function BtcUnifiedReceive({
6260
6257
  setAmount,
6261
6258
  setInvoiceStatus,
6262
6259
  setAccountReceiveResult,
6263
- handleDone
6260
+ handleDone,
6261
+ showRegenerate = true
6264
6262
  }) {
6265
6263
  const accountNetwork = btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain";
6266
6264
  const qrNetwork = NETWORK_CONFIG[accountNetwork];
@@ -6368,7 +6366,7 @@ function BtcUnifiedReceive({
6368
6366
  }
6369
6367
  ),
6370
6368
  /* @__PURE__ */ jsxs46("div", { className: "flex gap-2.5 pt-1", children: [
6371
- /* @__PURE__ */ jsxs46(
6369
+ showRegenerate && /* @__PURE__ */ jsxs46(
6372
6370
  "button",
6373
6371
  {
6374
6372
  type: "button",
@@ -6385,7 +6383,7 @@ function BtcUnifiedReceive({
6385
6383
  ]
6386
6384
  }
6387
6385
  ),
6388
- /* @__PURE__ */ jsxs46(Button, { variant: "cta", onClick: handleDone, children: [
6386
+ /* @__PURE__ */ jsxs46(Button, { variant: "cta", onClick: handleDone, className: showRegenerate ? void 0 : "flex-1", children: [
6389
6387
  /* @__PURE__ */ jsx60("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
6390
6388
  "Done"
6391
6389
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "KaleidoSwap shared UI library — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit",
5
5
  "license": "MIT",
6
6
  "type": "module",