kaleido-ui 0.1.33 → 0.1.35
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/web/index.cjs +7 -6
- package/dist/web/index.d.cts +9 -1
- package/dist/web/index.d.ts +9 -1
- package/dist/web/index.js +7 -6
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -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];
|
|
@@ -6428,7 +6429,7 @@ function BtcUnifiedReceive({
|
|
|
6428
6429
|
type: "text",
|
|
6429
6430
|
value: amount,
|
|
6430
6431
|
onChange: handleAmountChange,
|
|
6431
|
-
placeholder: "Any amount
|
|
6432
|
+
placeholder: "Any amount",
|
|
6432
6433
|
className: "w-full rounded-lg border bg-white/5 px-3 py-1.5 font-mono text-xs font-bold text-white transition-all placeholder:text-white/25 focus:border-primary/40 focus:outline-none",
|
|
6433
6434
|
inputMode: "decimal"
|
|
6434
6435
|
}
|
|
@@ -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
|
] })
|
|
@@ -6599,7 +6600,7 @@ function DepositGeneratedView({
|
|
|
6599
6600
|
type: "text",
|
|
6600
6601
|
value: amount,
|
|
6601
6602
|
onChange: handleAmountChange,
|
|
6602
|
-
placeholder: "Any amount
|
|
6603
|
+
placeholder: "Any amount",
|
|
6603
6604
|
className: "w-full rounded-lg border bg-white/5 px-3 py-1.5 font-mono text-xs font-bold text-white transition-all placeholder:text-white/25 focus:border-warning/40 focus:outline-none",
|
|
6604
6605
|
inputMode: "decimal"
|
|
6605
6606
|
}
|
|
@@ -6619,7 +6620,7 @@ function DepositGeneratedView({
|
|
|
6619
6620
|
type: "text",
|
|
6620
6621
|
value: amount,
|
|
6621
6622
|
onChange: handleAmountChange,
|
|
6622
|
-
placeholder: `Any amount (${selectedAsset
|
|
6623
|
+
placeholder: selectedAsset?.ticker ? `Any amount (${selectedAsset.ticker})` : "Any amount",
|
|
6623
6624
|
className: "w-full rounded-lg border bg-white/5 px-3 py-1.5 font-mono text-xs font-bold text-white transition-all placeholder:text-white/25 focus:border-warning/40 focus:outline-none",
|
|
6624
6625
|
inputMode: "decimal"
|
|
6625
6626
|
}
|
package/dist/web/index.d.cts
CHANGED
|
@@ -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.d.ts
CHANGED
|
@@ -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];
|
|
@@ -6270,7 +6271,7 @@ function BtcUnifiedReceive({
|
|
|
6270
6271
|
type: "text",
|
|
6271
6272
|
value: amount,
|
|
6272
6273
|
onChange: handleAmountChange,
|
|
6273
|
-
placeholder: "Any amount
|
|
6274
|
+
placeholder: "Any amount",
|
|
6274
6275
|
className: "w-full rounded-lg border bg-white/5 px-3 py-1.5 font-mono text-xs font-bold text-white transition-all placeholder:text-white/25 focus:border-primary/40 focus:outline-none",
|
|
6275
6276
|
inputMode: "decimal"
|
|
6276
6277
|
}
|
|
@@ -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
|
] })
|
|
@@ -6441,7 +6442,7 @@ function DepositGeneratedView({
|
|
|
6441
6442
|
type: "text",
|
|
6442
6443
|
value: amount,
|
|
6443
6444
|
onChange: handleAmountChange,
|
|
6444
|
-
placeholder: "Any amount
|
|
6445
|
+
placeholder: "Any amount",
|
|
6445
6446
|
className: "w-full rounded-lg border bg-white/5 px-3 py-1.5 font-mono text-xs font-bold text-white transition-all placeholder:text-white/25 focus:border-warning/40 focus:outline-none",
|
|
6446
6447
|
inputMode: "decimal"
|
|
6447
6448
|
}
|
|
@@ -6461,7 +6462,7 @@ function DepositGeneratedView({
|
|
|
6461
6462
|
type: "text",
|
|
6462
6463
|
value: amount,
|
|
6463
6464
|
onChange: handleAmountChange,
|
|
6464
|
-
placeholder: `Any amount (${selectedAsset
|
|
6465
|
+
placeholder: selectedAsset?.ticker ? `Any amount (${selectedAsset.ticker})` : "Any amount",
|
|
6465
6466
|
className: "w-full rounded-lg border bg-white/5 px-3 py-1.5 font-mono text-xs font-bold text-white transition-all placeholder:text-white/25 focus:border-warning/40 focus:outline-none",
|
|
6466
6467
|
inputMode: "decimal"
|
|
6467
6468
|
}
|
package/package.json
CHANGED