kaleido-ui 0.1.27 → 0.1.29
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 +10 -5
- package/dist/web/index.d.cts +11 -2
- package/dist/web/index.d.ts +11 -2
- package/dist/web/index.js +10 -5
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -2515,7 +2515,8 @@ function AccountSettingsRow({
|
|
|
2515
2515
|
description,
|
|
2516
2516
|
onClick,
|
|
2517
2517
|
hideNetworkChip = false,
|
|
2518
|
-
accent = false
|
|
2518
|
+
accent = false,
|
|
2519
|
+
beta = false
|
|
2519
2520
|
}) {
|
|
2520
2521
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2521
2522
|
"button",
|
|
@@ -2530,8 +2531,11 @@ function AccountSettingsRow({
|
|
|
2530
2531
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(AccountHeaderIcons, { accountId }),
|
|
2531
2532
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
2532
2533
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
|
|
2533
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
|
|
2534
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.
|
|
2534
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "min-w-0", children: [
|
|
2535
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2536
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-bold text-white", children: title }),
|
|
2537
|
+
beta && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "rounded-full bg-warning/15 px-1.5 py-0.5 text-tiny font-bold uppercase tracking-wider text-warning", children: "Beta" })
|
|
2538
|
+
] }),
|
|
2535
2539
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
2536
2540
|
] }),
|
|
2537
2541
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { name: "chevron_right", size: "sm", className: "text-white/40" })
|
|
@@ -5289,7 +5293,8 @@ function DepositGeneratedView({
|
|
|
5289
5293
|
setAmount,
|
|
5290
5294
|
setInvoiceStatus,
|
|
5291
5295
|
showQrNetworkBadge = true,
|
|
5292
|
-
onRegenerate
|
|
5296
|
+
onRegenerate,
|
|
5297
|
+
showRegenerate = true
|
|
5293
5298
|
}) {
|
|
5294
5299
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
5295
5300
|
(network === "lightning" || network === "arkade" && arkSubMode === "ark") && isBtc && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-1.5 rounded-xl border border-white/8 bg-white/3 p-2.5", children: [
|
|
@@ -5437,7 +5442,7 @@ function DepositGeneratedView({
|
|
|
5437
5442
|
]
|
|
5438
5443
|
}
|
|
5439
5444
|
),
|
|
5440
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5445
|
+
showRegenerate && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5441
5446
|
"button",
|
|
5442
5447
|
{
|
|
5443
5448
|
type: "button",
|
package/dist/web/index.d.cts
CHANGED
|
@@ -476,7 +476,7 @@ declare function TransferRouteCard({ label, summary, eta, feeHint, }: {
|
|
|
476
476
|
declare function ExpandIcon({ expanded }: {
|
|
477
477
|
expanded: boolean;
|
|
478
478
|
}): react_jsx_runtime.JSX.Element;
|
|
479
|
-
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, hideNetworkChip, accent, }: {
|
|
479
|
+
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, hideNetworkChip, accent, beta, }: {
|
|
480
480
|
accountId: AccountSettingsProtocol;
|
|
481
481
|
title: string;
|
|
482
482
|
status: 'ready' | 'offline' | 'optional' | string;
|
|
@@ -489,6 +489,9 @@ declare function AccountSettingsRow({ accountId, title, status, network, descrip
|
|
|
489
489
|
/** Render the row with the per-account accent gradient (used on the
|
|
490
490
|
Settings main page so account rows mirror dashboard asset cards). */
|
|
491
491
|
accent?: boolean;
|
|
492
|
+
/** Show a small BETA chip next to the title — used for accounts that
|
|
493
|
+
haven't graduated to mainnet yet (e.g. RGB on testchains only). */
|
|
494
|
+
beta?: boolean;
|
|
492
495
|
}): react_jsx_runtime.JSX.Element;
|
|
493
496
|
|
|
494
497
|
interface AccountCapabilitiesCardProps {
|
|
@@ -1172,8 +1175,14 @@ interface DepositGeneratedViewProps {
|
|
|
1172
1175
|
* not refire on cleared state — e.g. RGB on-chain.
|
|
1173
1176
|
*/
|
|
1174
1177
|
onRegenerate?: () => Promise<void> | void;
|
|
1178
|
+
/**
|
|
1179
|
+
* Hide the "New Address" / "New Invoice" round button. Use when the
|
|
1180
|
+
* regenerate flow is broken or unsupported for the current path so the
|
|
1181
|
+
* user doesn't get stuck on a non-functional control.
|
|
1182
|
+
*/
|
|
1183
|
+
showRegenerate?: boolean;
|
|
1175
1184
|
}
|
|
1176
|
-
declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, showQrNetworkBadge, onRegenerate, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1185
|
+
declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, showQrNetworkBadge, onRegenerate, showRegenerate, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1177
1186
|
|
|
1178
1187
|
interface DepositPreGenerationAsset {
|
|
1179
1188
|
ticker?: string;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -476,7 +476,7 @@ declare function TransferRouteCard({ label, summary, eta, feeHint, }: {
|
|
|
476
476
|
declare function ExpandIcon({ expanded }: {
|
|
477
477
|
expanded: boolean;
|
|
478
478
|
}): react_jsx_runtime.JSX.Element;
|
|
479
|
-
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, hideNetworkChip, accent, }: {
|
|
479
|
+
declare function AccountSettingsRow({ accountId, title, status, network, description, onClick, hideNetworkChip, accent, beta, }: {
|
|
480
480
|
accountId: AccountSettingsProtocol;
|
|
481
481
|
title: string;
|
|
482
482
|
status: 'ready' | 'offline' | 'optional' | string;
|
|
@@ -489,6 +489,9 @@ declare function AccountSettingsRow({ accountId, title, status, network, descrip
|
|
|
489
489
|
/** Render the row with the per-account accent gradient (used on the
|
|
490
490
|
Settings main page so account rows mirror dashboard asset cards). */
|
|
491
491
|
accent?: boolean;
|
|
492
|
+
/** Show a small BETA chip next to the title — used for accounts that
|
|
493
|
+
haven't graduated to mainnet yet (e.g. RGB on testchains only). */
|
|
494
|
+
beta?: boolean;
|
|
492
495
|
}): react_jsx_runtime.JSX.Element;
|
|
493
496
|
|
|
494
497
|
interface AccountCapabilitiesCardProps {
|
|
@@ -1172,8 +1175,14 @@ interface DepositGeneratedViewProps {
|
|
|
1172
1175
|
* not refire on cleared state — e.g. RGB on-chain.
|
|
1173
1176
|
*/
|
|
1174
1177
|
onRegenerate?: () => Promise<void> | void;
|
|
1178
|
+
/**
|
|
1179
|
+
* Hide the "New Address" / "New Invoice" round button. Use when the
|
|
1180
|
+
* regenerate flow is broken or unsupported for the current path so the
|
|
1181
|
+
* user doesn't get stuck on a non-functional control.
|
|
1182
|
+
*/
|
|
1183
|
+
showRegenerate?: boolean;
|
|
1175
1184
|
}
|
|
1176
|
-
declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, showQrNetworkBadge, onRegenerate, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1185
|
+
declare function DepositGeneratedView({ network, net, isBtc, address, addressLabel, recipientId, arkSubMode, invoiceStatus, isInvoicePending, isInvoicePaid, isInvoiceFailedOrExpired, amount, handleAmountChange, loading, copied, copyToClipboard, getUnitLabel, selectedAsset, maxDepositAmount, setAddress, setRecipientId, setAmount, setInvoiceStatus, showQrNetworkBadge, onRegenerate, showRegenerate, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1177
1186
|
|
|
1178
1187
|
interface DepositPreGenerationAsset {
|
|
1179
1188
|
ticker?: string;
|
package/dist/web/index.js
CHANGED
|
@@ -2360,7 +2360,8 @@ function AccountSettingsRow({
|
|
|
2360
2360
|
description,
|
|
2361
2361
|
onClick,
|
|
2362
2362
|
hideNetworkChip = false,
|
|
2363
|
-
accent = false
|
|
2363
|
+
accent = false,
|
|
2364
|
+
beta = false
|
|
2364
2365
|
}) {
|
|
2365
2366
|
return /* @__PURE__ */ jsx30(
|
|
2366
2367
|
"button",
|
|
@@ -2375,8 +2376,11 @@ function AccountSettingsRow({
|
|
|
2375
2376
|
/* @__PURE__ */ jsx30(AccountHeaderIcons, { accountId }),
|
|
2376
2377
|
/* @__PURE__ */ jsxs18("div", { className: "min-w-0 flex-1", children: [
|
|
2377
2378
|
/* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between gap-3", children: [
|
|
2378
|
-
/* @__PURE__ */ jsxs18("div", { children: [
|
|
2379
|
-
/* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ jsxs18("div", { className: "min-w-0", children: [
|
|
2380
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
|
|
2381
|
+
/* @__PURE__ */ jsx30("p", { className: "text-sm font-bold text-white", children: title }),
|
|
2382
|
+
beta && /* @__PURE__ */ jsx30("span", { className: "rounded-full bg-warning/15 px-1.5 py-0.5 text-tiny font-bold uppercase tracking-wider text-warning", children: "Beta" })
|
|
2383
|
+
] }),
|
|
2380
2384
|
/* @__PURE__ */ jsx30("p", { className: "mt-1 text-xs text-muted-foreground", children: description })
|
|
2381
2385
|
] }),
|
|
2382
2386
|
/* @__PURE__ */ jsx30(Icon2, { name: "chevron_right", size: "sm", className: "text-white/40" })
|
|
@@ -5134,7 +5138,8 @@ function DepositGeneratedView({
|
|
|
5134
5138
|
setAmount,
|
|
5135
5139
|
setInvoiceStatus,
|
|
5136
5140
|
showQrNetworkBadge = true,
|
|
5137
|
-
onRegenerate
|
|
5141
|
+
onRegenerate,
|
|
5142
|
+
showRegenerate = true
|
|
5138
5143
|
}) {
|
|
5139
5144
|
return /* @__PURE__ */ jsxs43("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
5140
5145
|
(network === "lightning" || network === "arkade" && arkSubMode === "ark") && isBtc && /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-1.5 rounded-xl border border-white/8 bg-white/3 p-2.5", children: [
|
|
@@ -5282,7 +5287,7 @@ function DepositGeneratedView({
|
|
|
5282
5287
|
]
|
|
5283
5288
|
}
|
|
5284
5289
|
),
|
|
5285
|
-
/* @__PURE__ */ jsx56("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ jsx56(
|
|
5290
|
+
showRegenerate && /* @__PURE__ */ jsx56("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ jsx56(
|
|
5286
5291
|
"button",
|
|
5287
5292
|
{
|
|
5288
5293
|
type: "button",
|
package/package.json
CHANGED