kaleido-ui 0.1.61 → 0.1.62
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 +43 -26
- package/dist/web/index.d.cts +13 -1
- package/dist/web/index.d.ts +13 -1
- package/dist/web/index.js +44 -27
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -8116,9 +8116,14 @@ function DepositPreGeneration({
|
|
|
8116
8116
|
generateInvoice,
|
|
8117
8117
|
needsColorableUtxos = false,
|
|
8118
8118
|
onOpenCreateUtxos,
|
|
8119
|
-
showReceiveSummary = true
|
|
8119
|
+
showReceiveSummary = true,
|
|
8120
|
+
isNewRgbAsset = false,
|
|
8121
|
+
newAssetId = "",
|
|
8122
|
+
setNewAssetId,
|
|
8123
|
+
colorableUtxoCount
|
|
8120
8124
|
}) {
|
|
8121
8125
|
const method = METHOD_META2[currentMethod];
|
|
8126
|
+
const isRgbOnchain = network === "onchain" && !isBtc;
|
|
8122
8127
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "space-y-3", children: [
|
|
8123
8128
|
showReceiveSummary && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "rounded-2xl border border-white/8 bg-white/4 p-3", children: [
|
|
8124
8129
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-xxs font-bold uppercase tracking-widest text-white/35", children: "Receive Summary" }),
|
|
@@ -8168,16 +8173,33 @@ function DepositPreGeneration({
|
|
|
8168
8173
|
] })
|
|
8169
8174
|
] })
|
|
8170
8175
|
] }),
|
|
8171
|
-
|
|
8176
|
+
isRgbOnchain && isNewRgbAsset && setNewAssetId && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "space-y-1.5", children: [
|
|
8177
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("label", { className: "text-xxs font-bold uppercase tracking-widest text-white/40", children: "RGB Asset ID - Optional" }),
|
|
8178
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8179
|
+
"input",
|
|
8180
|
+
{
|
|
8181
|
+
type: "text",
|
|
8182
|
+
value: newAssetId,
|
|
8183
|
+
onChange: (event) => setNewAssetId(event.target.value),
|
|
8184
|
+
placeholder: "rgb:... (leave empty for any asset)",
|
|
8185
|
+
spellCheck: false,
|
|
8186
|
+
autoCapitalize: "off",
|
|
8187
|
+
className: "w-full rounded-xl border bg-white/5 px-3 py-2.5 font-mono text-sm text-white transition-all placeholder:text-white/20 focus:border-primary/50 focus:outline-none"
|
|
8188
|
+
}
|
|
8189
|
+
),
|
|
8190
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-xxs text-white/35", children: "Enter a specific asset ID to receive it, or leave empty to accept any RGB asset to this invoice." })
|
|
8191
|
+
] }),
|
|
8192
|
+
isRgbOnchain && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "space-y-2.5 rounded-xl border bg-card p-3", children: [
|
|
8172
8193
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
|
|
8173
8194
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
8174
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h4", { className: "text-xs font-bold text-white", children: "
|
|
8175
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "mt-0.5 text-xxs text-muted-foreground", children: usePrivacy ? "
|
|
8195
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h4", { className: "text-xs font-bold text-white", children: usePrivacy ? "Blinded receive" : "Witness receive" }),
|
|
8196
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "mt-0.5 text-xxs text-muted-foreground", children: usePrivacy ? "Private - recommended" : "Simpler - less private" })
|
|
8176
8197
|
] }),
|
|
8177
8198
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8178
8199
|
"button",
|
|
8179
8200
|
{
|
|
8180
8201
|
type: "button",
|
|
8202
|
+
"aria-label": "Toggle blinded (private) receive",
|
|
8181
8203
|
className: cn(
|
|
8182
8204
|
"relative inline-flex h-5 w-9 flex-shrink-0 items-center rounded-full border shadow-inner transition-colors",
|
|
8183
8205
|
usePrivacy ? "bg-primary" : "bg-white/10"
|
|
@@ -8195,7 +8217,21 @@ function DepositPreGeneration({
|
|
|
8195
8217
|
}
|
|
8196
8218
|
)
|
|
8197
8219
|
] }),
|
|
8198
|
-
|
|
8220
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-tiny leading-relaxed text-white/45", children: usePrivacy ? "Blinded: the sender never sees which UTXO you receive into. Spends one of your colorable UTXOs as the receiving slot." : "Witness: the sender creates the receiving UTXO for you. No colorable UTXO needed, but the sender sees the receiving output." }),
|
|
8221
|
+
usePrivacy && colorableUtxoCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
8222
|
+
"div",
|
|
8223
|
+
{
|
|
8224
|
+
className: cn(
|
|
8225
|
+
"flex items-center justify-between rounded-lg border px-2.5 py-1.5 text-xxs",
|
|
8226
|
+
colorableUtxoCount > 0 ? "border-success/20 bg-success/5 text-success/80" : "border-warning/20 bg-warning/5 text-warning/80"
|
|
8227
|
+
),
|
|
8228
|
+
children: [
|
|
8229
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "font-medium", children: "Available colorable UTXOs" }),
|
|
8230
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "font-mono font-bold", children: colorableUtxoCount })
|
|
8231
|
+
]
|
|
8232
|
+
}
|
|
8233
|
+
),
|
|
8234
|
+
usePrivacy && colorableUtxoCount === 0 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-tiny text-warning/70", children: "None available \u2014 create a colorable UTXO below to receive privately, or switch off privacy to use a witness receive." })
|
|
8199
8235
|
] }),
|
|
8200
8236
|
network === "onchain" && !isBtc && /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "space-y-1.5", children: [
|
|
8201
8237
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
@@ -8225,7 +8261,7 @@ function DepositPreGeneration({
|
|
|
8225
8261
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "mb-0.5 text-xs font-bold text-warning", children: "Colorable UTXOs Required" }),
|
|
8226
8262
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-tiny text-warning/70", children: "To receive RGB assets on-chain you need at least one uncolored UTXO. Create some now and the invoice will be generated automatically." })
|
|
8227
8263
|
] }),
|
|
8228
|
-
!isAutoGenerate && (needsColorableUtxos && onOpenCreateUtxos ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button, { variant: "cta", size: "cta", onClick: onOpenCreateUtxos, disabled: loading, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex items-center justify-center gap-2", children: [
|
|
8264
|
+
!isAutoGenerate && ((needsColorableUtxos || isRgbOnchain && usePrivacy && colorableUtxoCount === 0) && onOpenCreateUtxos ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button, { variant: "cta", size: "cta", onClick: onOpenCreateUtxos, disabled: loading, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex items-center justify-center gap-2", children: [
|
|
8229
8265
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "material-symbols-outlined text-icon-md", children: "add_circle" }),
|
|
8230
8266
|
"Create Colorable UTXOs"
|
|
8231
8267
|
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Button, { variant: "cta", size: "cta", onClick: generateInvoice, disabled: loading, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: "flex items-center justify-center gap-2", children: [
|
|
@@ -8516,26 +8552,7 @@ function DepositAssetSelection({
|
|
|
8516
8552
|
option.account
|
|
8517
8553
|
)) })
|
|
8518
8554
|
}
|
|
8519
|
-
)
|
|
8520
|
-
isNewAsset && newAssetAccount === "RGB" && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
|
|
8521
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex-shrink-0 px-5 pb-3 animate-in fade-in slide-in-from-bottom-2 duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "space-y-2 rounded-2xl border border-network-arkade/20 bg-network-arkade/5 p-3", children: [
|
|
8522
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-tiny leading-relaxed text-network-arkade/80", children: "Leave empty to receive any RGB asset, or enter a specific asset ID." }),
|
|
8523
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
8524
|
-
"input",
|
|
8525
|
-
{
|
|
8526
|
-
className: "w-full rounded-xl border bg-white/5 px-3 py-2 font-mono text-sm text-white transition-all placeholder:text-white/25 focus:border-network-arkade/40 focus:outline-none",
|
|
8527
|
-
onChange: (event) => setNewAssetId(event.target.value),
|
|
8528
|
-
placeholder: "Asset ID (optional)",
|
|
8529
|
-
type: "text",
|
|
8530
|
-
value: newAssetId
|
|
8531
|
-
}
|
|
8532
|
-
)
|
|
8533
|
-
] }) }),
|
|
8534
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex-shrink-0 px-5 pb-5 pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(Button, { variant: "cta", size: "cta", onClick: handleContinueToGenerate, children: [
|
|
8535
|
-
"Continue with New Asset",
|
|
8536
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "material-symbols-outlined text-icon-xl font-bold", children: "arrow_forward" })
|
|
8537
|
-
] }) })
|
|
8538
|
-
] })
|
|
8555
|
+
)
|
|
8539
8556
|
] });
|
|
8540
8557
|
}
|
|
8541
8558
|
|
package/dist/web/index.d.cts
CHANGED
|
@@ -1545,8 +1545,20 @@ interface DepositPreGenerationProps {
|
|
|
1545
1545
|
/** Invoked by the inline "Create Colorable UTXOs" CTA. */
|
|
1546
1546
|
onOpenCreateUtxos?: () => void;
|
|
1547
1547
|
showReceiveSummary?: boolean;
|
|
1548
|
+
/** RGB-asset receive: render an inline asset-id field (receive a specific asset). */
|
|
1549
|
+
isNewRgbAsset?: boolean;
|
|
1550
|
+
/** Current asset-id value for the inline field. */
|
|
1551
|
+
newAssetId?: string;
|
|
1552
|
+
/** Setter for the inline asset-id field. */
|
|
1553
|
+
setNewAssetId?: (value: string) => void;
|
|
1554
|
+
/**
|
|
1555
|
+
* Number of colorable (uncolored) UTXOs available for a blinded receive.
|
|
1556
|
+
* `undefined` ⇒ unknown/loading; a number drives the availability hint and the
|
|
1557
|
+
* create-UTXO prompt for the privacy (blinded) path.
|
|
1558
|
+
*/
|
|
1559
|
+
colorableUtxoCount?: number;
|
|
1548
1560
|
}
|
|
1549
|
-
declare function DepositPreGeneration({ selectedAsset, isBtc, network, net, selectedAccount, currentMethod, channelsLoading, showChannelWarning, showLiquidityWarning, isAutoGenerate, loading, usePrivacy, setUsePrivacy, amount, handleAmountChange, getUnitLabel, generateInvoice, needsColorableUtxos, onOpenCreateUtxos, showReceiveSummary, }: DepositPreGenerationProps): react_jsx_runtime.JSX.Element;
|
|
1561
|
+
declare function DepositPreGeneration({ selectedAsset, isBtc, network, net, selectedAccount, currentMethod, channelsLoading, showChannelWarning, showLiquidityWarning, isAutoGenerate, loading, usePrivacy, setUsePrivacy, amount, handleAmountChange, getUnitLabel, generateInvoice, needsColorableUtxos, onOpenCreateUtxos, showReceiveSummary, isNewRgbAsset, newAssetId, setNewAssetId, colorableUtxoCount, }: DepositPreGenerationProps): react_jsx_runtime.JSX.Element;
|
|
1550
1562
|
|
|
1551
1563
|
interface DepositSelectionAsset {
|
|
1552
1564
|
asset_id: string;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1545,8 +1545,20 @@ interface DepositPreGenerationProps {
|
|
|
1545
1545
|
/** Invoked by the inline "Create Colorable UTXOs" CTA. */
|
|
1546
1546
|
onOpenCreateUtxos?: () => void;
|
|
1547
1547
|
showReceiveSummary?: boolean;
|
|
1548
|
+
/** RGB-asset receive: render an inline asset-id field (receive a specific asset). */
|
|
1549
|
+
isNewRgbAsset?: boolean;
|
|
1550
|
+
/** Current asset-id value for the inline field. */
|
|
1551
|
+
newAssetId?: string;
|
|
1552
|
+
/** Setter for the inline asset-id field. */
|
|
1553
|
+
setNewAssetId?: (value: string) => void;
|
|
1554
|
+
/**
|
|
1555
|
+
* Number of colorable (uncolored) UTXOs available for a blinded receive.
|
|
1556
|
+
* `undefined` ⇒ unknown/loading; a number drives the availability hint and the
|
|
1557
|
+
* create-UTXO prompt for the privacy (blinded) path.
|
|
1558
|
+
*/
|
|
1559
|
+
colorableUtxoCount?: number;
|
|
1548
1560
|
}
|
|
1549
|
-
declare function DepositPreGeneration({ selectedAsset, isBtc, network, net, selectedAccount, currentMethod, channelsLoading, showChannelWarning, showLiquidityWarning, isAutoGenerate, loading, usePrivacy, setUsePrivacy, amount, handleAmountChange, getUnitLabel, generateInvoice, needsColorableUtxos, onOpenCreateUtxos, showReceiveSummary, }: DepositPreGenerationProps): react_jsx_runtime.JSX.Element;
|
|
1561
|
+
declare function DepositPreGeneration({ selectedAsset, isBtc, network, net, selectedAccount, currentMethod, channelsLoading, showChannelWarning, showLiquidityWarning, isAutoGenerate, loading, usePrivacy, setUsePrivacy, amount, handleAmountChange, getUnitLabel, generateInvoice, needsColorableUtxos, onOpenCreateUtxos, showReceiveSummary, isNewRgbAsset, newAssetId, setNewAssetId, colorableUtxoCount, }: DepositPreGenerationProps): react_jsx_runtime.JSX.Element;
|
|
1550
1562
|
|
|
1551
1563
|
interface DepositSelectionAsset {
|
|
1552
1564
|
asset_id: string;
|
package/dist/web/index.js
CHANGED
|
@@ -7939,9 +7939,14 @@ function DepositPreGeneration({
|
|
|
7939
7939
|
generateInvoice,
|
|
7940
7940
|
needsColorableUtxos = false,
|
|
7941
7941
|
onOpenCreateUtxos,
|
|
7942
|
-
showReceiveSummary = true
|
|
7942
|
+
showReceiveSummary = true,
|
|
7943
|
+
isNewRgbAsset = false,
|
|
7944
|
+
newAssetId = "",
|
|
7945
|
+
setNewAssetId,
|
|
7946
|
+
colorableUtxoCount
|
|
7943
7947
|
}) {
|
|
7944
7948
|
const method = METHOD_META2[currentMethod];
|
|
7949
|
+
const isRgbOnchain = network === "onchain" && !isBtc;
|
|
7945
7950
|
return /* @__PURE__ */ jsxs64("div", { className: "space-y-3", children: [
|
|
7946
7951
|
showReceiveSummary && /* @__PURE__ */ jsxs64("div", { className: "rounded-2xl border border-white/8 bg-white/4 p-3", children: [
|
|
7947
7952
|
/* @__PURE__ */ jsx78("p", { className: "text-xxs font-bold uppercase tracking-widest text-white/35", children: "Receive Summary" }),
|
|
@@ -7991,16 +7996,33 @@ function DepositPreGeneration({
|
|
|
7991
7996
|
] })
|
|
7992
7997
|
] })
|
|
7993
7998
|
] }),
|
|
7994
|
-
|
|
7999
|
+
isRgbOnchain && isNewRgbAsset && setNewAssetId && /* @__PURE__ */ jsxs64("div", { className: "space-y-1.5", children: [
|
|
8000
|
+
/* @__PURE__ */ jsx78("label", { className: "text-xxs font-bold uppercase tracking-widest text-white/40", children: "RGB Asset ID - Optional" }),
|
|
8001
|
+
/* @__PURE__ */ jsx78(
|
|
8002
|
+
"input",
|
|
8003
|
+
{
|
|
8004
|
+
type: "text",
|
|
8005
|
+
value: newAssetId,
|
|
8006
|
+
onChange: (event) => setNewAssetId(event.target.value),
|
|
8007
|
+
placeholder: "rgb:... (leave empty for any asset)",
|
|
8008
|
+
spellCheck: false,
|
|
8009
|
+
autoCapitalize: "off",
|
|
8010
|
+
className: "w-full rounded-xl border bg-white/5 px-3 py-2.5 font-mono text-sm text-white transition-all placeholder:text-white/20 focus:border-primary/50 focus:outline-none"
|
|
8011
|
+
}
|
|
8012
|
+
),
|
|
8013
|
+
/* @__PURE__ */ jsx78("p", { className: "text-xxs text-white/35", children: "Enter a specific asset ID to receive it, or leave empty to accept any RGB asset to this invoice." })
|
|
8014
|
+
] }),
|
|
8015
|
+
isRgbOnchain && /* @__PURE__ */ jsxs64("div", { className: "space-y-2.5 rounded-xl border bg-card p-3", children: [
|
|
7995
8016
|
/* @__PURE__ */ jsxs64("div", { className: "flex items-center justify-between gap-3", children: [
|
|
7996
8017
|
/* @__PURE__ */ jsxs64("div", { className: "min-w-0 flex-1", children: [
|
|
7997
|
-
/* @__PURE__ */ jsx78("h4", { className: "text-xs font-bold text-white", children: "
|
|
7998
|
-
/* @__PURE__ */ jsx78("p", { className: "mt-0.5 text-xxs text-muted-foreground", children: usePrivacy ? "
|
|
8018
|
+
/* @__PURE__ */ jsx78("h4", { className: "text-xs font-bold text-white", children: usePrivacy ? "Blinded receive" : "Witness receive" }),
|
|
8019
|
+
/* @__PURE__ */ jsx78("p", { className: "mt-0.5 text-xxs text-muted-foreground", children: usePrivacy ? "Private - recommended" : "Simpler - less private" })
|
|
7999
8020
|
] }),
|
|
8000
8021
|
/* @__PURE__ */ jsx78(
|
|
8001
8022
|
"button",
|
|
8002
8023
|
{
|
|
8003
8024
|
type: "button",
|
|
8025
|
+
"aria-label": "Toggle blinded (private) receive",
|
|
8004
8026
|
className: cn(
|
|
8005
8027
|
"relative inline-flex h-5 w-9 flex-shrink-0 items-center rounded-full border shadow-inner transition-colors",
|
|
8006
8028
|
usePrivacy ? "bg-primary" : "bg-white/10"
|
|
@@ -8018,7 +8040,21 @@ function DepositPreGeneration({
|
|
|
8018
8040
|
}
|
|
8019
8041
|
)
|
|
8020
8042
|
] }),
|
|
8021
|
-
|
|
8043
|
+
/* @__PURE__ */ jsx78("p", { className: "text-tiny leading-relaxed text-white/45", children: usePrivacy ? "Blinded: the sender never sees which UTXO you receive into. Spends one of your colorable UTXOs as the receiving slot." : "Witness: the sender creates the receiving UTXO for you. No colorable UTXO needed, but the sender sees the receiving output." }),
|
|
8044
|
+
usePrivacy && colorableUtxoCount !== void 0 && /* @__PURE__ */ jsxs64(
|
|
8045
|
+
"div",
|
|
8046
|
+
{
|
|
8047
|
+
className: cn(
|
|
8048
|
+
"flex items-center justify-between rounded-lg border px-2.5 py-1.5 text-xxs",
|
|
8049
|
+
colorableUtxoCount > 0 ? "border-success/20 bg-success/5 text-success/80" : "border-warning/20 bg-warning/5 text-warning/80"
|
|
8050
|
+
),
|
|
8051
|
+
children: [
|
|
8052
|
+
/* @__PURE__ */ jsx78("span", { className: "font-medium", children: "Available colorable UTXOs" }),
|
|
8053
|
+
/* @__PURE__ */ jsx78("span", { className: "font-mono font-bold", children: colorableUtxoCount })
|
|
8054
|
+
]
|
|
8055
|
+
}
|
|
8056
|
+
),
|
|
8057
|
+
usePrivacy && colorableUtxoCount === 0 && /* @__PURE__ */ jsx78("p", { className: "text-tiny text-warning/70", children: "None available \u2014 create a colorable UTXO below to receive privately, or switch off privacy to use a witness receive." })
|
|
8022
8058
|
] }),
|
|
8023
8059
|
network === "onchain" && !isBtc && /* @__PURE__ */ jsxs64("div", { className: "space-y-1.5", children: [
|
|
8024
8060
|
/* @__PURE__ */ jsxs64("div", { className: "flex items-center justify-between", children: [
|
|
@@ -8048,7 +8084,7 @@ function DepositPreGeneration({
|
|
|
8048
8084
|
/* @__PURE__ */ jsx78("p", { className: "mb-0.5 text-xs font-bold text-warning", children: "Colorable UTXOs Required" }),
|
|
8049
8085
|
/* @__PURE__ */ jsx78("p", { className: "text-tiny text-warning/70", children: "To receive RGB assets on-chain you need at least one uncolored UTXO. Create some now and the invoice will be generated automatically." })
|
|
8050
8086
|
] }),
|
|
8051
|
-
!isAutoGenerate && (needsColorableUtxos && onOpenCreateUtxos ? /* @__PURE__ */ jsx78(Button, { variant: "cta", size: "cta", onClick: onOpenCreateUtxos, disabled: loading, children: /* @__PURE__ */ jsxs64("span", { className: "flex items-center justify-center gap-2", children: [
|
|
8087
|
+
!isAutoGenerate && ((needsColorableUtxos || isRgbOnchain && usePrivacy && colorableUtxoCount === 0) && onOpenCreateUtxos ? /* @__PURE__ */ jsx78(Button, { variant: "cta", size: "cta", onClick: onOpenCreateUtxos, disabled: loading, children: /* @__PURE__ */ jsxs64("span", { className: "flex items-center justify-center gap-2", children: [
|
|
8052
8088
|
/* @__PURE__ */ jsx78("span", { className: "material-symbols-outlined text-icon-md", children: "add_circle" }),
|
|
8053
8089
|
"Create Colorable UTXOs"
|
|
8054
8090
|
] }) }) : /* @__PURE__ */ jsx78(Button, { variant: "cta", size: "cta", onClick: generateInvoice, disabled: loading, children: loading ? /* @__PURE__ */ jsxs64("span", { className: "flex items-center justify-center gap-2", children: [
|
|
@@ -8063,7 +8099,7 @@ function DepositPreGeneration({
|
|
|
8063
8099
|
|
|
8064
8100
|
// src/web/components/deposit-asset-selection.tsx
|
|
8065
8101
|
import { useEffect as useEffect10, useState as useState15 } from "react";
|
|
8066
|
-
import {
|
|
8102
|
+
import { jsx as jsx79, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
8067
8103
|
var ADD_ASSET_SUBTITLE = {
|
|
8068
8104
|
RGB: "RGB asset on Bitcoin",
|
|
8069
8105
|
SPARK: "Spark-native asset",
|
|
@@ -8339,26 +8375,7 @@ function DepositAssetSelection({
|
|
|
8339
8375
|
option.account
|
|
8340
8376
|
)) })
|
|
8341
8377
|
}
|
|
8342
|
-
)
|
|
8343
|
-
isNewAsset && newAssetAccount === "RGB" && /* @__PURE__ */ jsxs65(Fragment16, { children: [
|
|
8344
|
-
/* @__PURE__ */ jsx79("div", { className: "flex-shrink-0 px-5 pb-3 animate-in fade-in slide-in-from-bottom-2 duration-300", children: /* @__PURE__ */ jsxs65("div", { className: "space-y-2 rounded-2xl border border-network-arkade/20 bg-network-arkade/5 p-3", children: [
|
|
8345
|
-
/* @__PURE__ */ jsx79("p", { className: "text-tiny leading-relaxed text-network-arkade/80", children: "Leave empty to receive any RGB asset, or enter a specific asset ID." }),
|
|
8346
|
-
/* @__PURE__ */ jsx79(
|
|
8347
|
-
"input",
|
|
8348
|
-
{
|
|
8349
|
-
className: "w-full rounded-xl border bg-white/5 px-3 py-2 font-mono text-sm text-white transition-all placeholder:text-white/25 focus:border-network-arkade/40 focus:outline-none",
|
|
8350
|
-
onChange: (event) => setNewAssetId(event.target.value),
|
|
8351
|
-
placeholder: "Asset ID (optional)",
|
|
8352
|
-
type: "text",
|
|
8353
|
-
value: newAssetId
|
|
8354
|
-
}
|
|
8355
|
-
)
|
|
8356
|
-
] }) }),
|
|
8357
|
-
/* @__PURE__ */ jsx79("div", { className: "flex-shrink-0 px-5 pb-5 pt-2", children: /* @__PURE__ */ jsxs65(Button, { variant: "cta", size: "cta", onClick: handleContinueToGenerate, children: [
|
|
8358
|
-
"Continue with New Asset",
|
|
8359
|
-
/* @__PURE__ */ jsx79("span", { className: "material-symbols-outlined text-icon-xl font-bold", children: "arrow_forward" })
|
|
8360
|
-
] }) })
|
|
8361
|
-
] })
|
|
8378
|
+
)
|
|
8362
8379
|
] });
|
|
8363
8380
|
}
|
|
8364
8381
|
|
package/package.json
CHANGED