kaleido-ui 0.1.33 → 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.
@@ -6415,7 +6415,8 @@ function BtcUnifiedReceive({
6415
6415
  setAmount,
6416
6416
  setInvoiceStatus,
6417
6417
  setAccountReceiveResult,
6418
- handleDone
6418
+ handleDone,
6419
+ showRegenerate = true
6419
6420
  }) {
6420
6421
  const accountNetwork = btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain";
6421
6422
  const qrNetwork = NETWORK_CONFIG[accountNetwork];
@@ -6523,7 +6524,7 @@ function BtcUnifiedReceive({
6523
6524
  }
6524
6525
  ),
6525
6526
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex gap-2.5 pt-1", children: [
6526
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6527
+ showRegenerate && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
6527
6528
  "button",
6528
6529
  {
6529
6530
  type: "button",
@@ -6540,7 +6541,7 @@ function BtcUnifiedReceive({
6540
6541
  ]
6541
6542
  }
6542
6543
  ),
6543
- /* @__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: [
6544
6545
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
6545
6546
  "Done"
6546
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
@@ -6257,7 +6257,8 @@ function BtcUnifiedReceive({
6257
6257
  setAmount,
6258
6258
  setInvoiceStatus,
6259
6259
  setAccountReceiveResult,
6260
- handleDone
6260
+ handleDone,
6261
+ showRegenerate = true
6261
6262
  }) {
6262
6263
  const accountNetwork = btcSelectedAccount === "SPARK" ? "spark" : btcSelectedAccount === "ARKADE" ? "arkade" : "onchain";
6263
6264
  const qrNetwork = NETWORK_CONFIG[accountNetwork];
@@ -6365,7 +6366,7 @@ function BtcUnifiedReceive({
6365
6366
  }
6366
6367
  ),
6367
6368
  /* @__PURE__ */ jsxs46("div", { className: "flex gap-2.5 pt-1", children: [
6368
- /* @__PURE__ */ jsxs46(
6369
+ showRegenerate && /* @__PURE__ */ jsxs46(
6369
6370
  "button",
6370
6371
  {
6371
6372
  type: "button",
@@ -6382,7 +6383,7 @@ function BtcUnifiedReceive({
6382
6383
  ]
6383
6384
  }
6384
6385
  ),
6385
- /* @__PURE__ */ jsxs46(Button, { variant: "cta", onClick: handleDone, children: [
6386
+ /* @__PURE__ */ jsxs46(Button, { variant: "cta", onClick: handleDone, className: showRegenerate ? void 0 : "flex-1", children: [
6386
6387
  /* @__PURE__ */ jsx60("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
6387
6388
  "Done"
6388
6389
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.33",
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",