kaleido-ui 0.1.15 → 0.1.16
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 +4 -2
- package/dist/web/index.d.ts +4 -2
- package/dist/web/index.js +10 -5
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -5208,6 +5208,7 @@ function DepositGeneratedView({
|
|
|
5208
5208
|
setRecipientId,
|
|
5209
5209
|
setAmount,
|
|
5210
5210
|
setInvoiceStatus,
|
|
5211
|
+
showQrNetworkBadge = true,
|
|
5211
5212
|
onRegenerate
|
|
5212
5213
|
}) {
|
|
5213
5214
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
@@ -5265,7 +5266,7 @@ function DepositGeneratedView({
|
|
|
5265
5266
|
),
|
|
5266
5267
|
style: net.qrGlow,
|
|
5267
5268
|
children: [
|
|
5268
|
-
network !== "spark" && network !== "arkade" && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5269
|
+
showQrNetworkBadge && network !== "spark" && network !== "arkade" && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5269
5270
|
"div",
|
|
5270
5271
|
{
|
|
5271
5272
|
className: cn(
|
|
@@ -5423,11 +5424,12 @@ function DepositPreGeneration({
|
|
|
5423
5424
|
getUnitLabel,
|
|
5424
5425
|
generateInvoice,
|
|
5425
5426
|
needsColorableUtxos = false,
|
|
5426
|
-
onOpenCreateUtxos
|
|
5427
|
+
onOpenCreateUtxos,
|
|
5428
|
+
showReceiveSummary = true
|
|
5427
5429
|
}) {
|
|
5428
5430
|
const method = METHOD_META2[currentMethod];
|
|
5429
5431
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "space-y-3", children: [
|
|
5430
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "rounded-2xl border border-white/8 bg-white/4 p-3", children: [
|
|
5432
|
+
showReceiveSummary && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "rounded-2xl border border-white/8 bg-white/4 p-3", children: [
|
|
5431
5433
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-xxs font-bold uppercase tracking-widest text-white/35", children: "Receive Summary" }),
|
|
5432
5434
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "mt-2 grid grid-cols-1 gap-2 text-xs", children: [
|
|
5433
5435
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
|
|
@@ -6021,6 +6023,7 @@ function DepositInvoiceGeneration({
|
|
|
6021
6023
|
const addressLabel = network === "spark" ? "Spark Address" : network === "arkade" ? arkSubMode === "boarding" ? "Boarding Address" : "Arkade Address" : network === "lightning" ? "Lightning Invoice" : "Deposit Address";
|
|
6022
6024
|
const showChannelWarning = selectedAccount === "RGB" && network === "lightning" && !channelsLoading && channels.length === 0 && !isSparkConnected;
|
|
6023
6025
|
const showLiquidityWarning = !isSparkLightning && network === "lightning" && maxDepositAmount === 0 && !channelsLoading && !isBtc;
|
|
6026
|
+
const isNewRgbAsset = isNewAsset && assetFamily === "RGB";
|
|
6024
6027
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: [
|
|
6025
6028
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6026
6029
|
PageHeader,
|
|
@@ -6150,7 +6153,8 @@ function DepositInvoiceGeneration({
|
|
|
6150
6153
|
getUnitLabel,
|
|
6151
6154
|
generateInvoice,
|
|
6152
6155
|
needsColorableUtxos,
|
|
6153
|
-
onOpenCreateUtxos
|
|
6156
|
+
onOpenCreateUtxos,
|
|
6157
|
+
showReceiveSummary: !isNewRgbAsset
|
|
6154
6158
|
}
|
|
6155
6159
|
) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6156
6160
|
DepositGeneratedView,
|
|
@@ -6178,7 +6182,8 @@ function DepositInvoiceGeneration({
|
|
|
6178
6182
|
setRecipientId,
|
|
6179
6183
|
setAmount,
|
|
6180
6184
|
setInvoiceStatus,
|
|
6181
|
-
handleDone
|
|
6185
|
+
handleDone,
|
|
6186
|
+
showQrNetworkBadge: false
|
|
6182
6187
|
}
|
|
6183
6188
|
) })
|
|
6184
6189
|
] });
|
package/dist/web/index.d.cts
CHANGED
|
@@ -1136,6 +1136,7 @@ interface DepositGeneratedViewProps {
|
|
|
1136
1136
|
setRecipientId: (value: string) => void;
|
|
1137
1137
|
setAmount: (value: string) => void;
|
|
1138
1138
|
setInvoiceStatus: (value: string | null) => void;
|
|
1139
|
+
showQrNetworkBadge?: boolean;
|
|
1139
1140
|
/**
|
|
1140
1141
|
* @deprecated Done button removed in v0.1.8 per the v1.0.0 wallet redesign;
|
|
1141
1142
|
* users navigate away via the standard back button. Prop kept for source
|
|
@@ -1150,7 +1151,7 @@ interface DepositGeneratedViewProps {
|
|
|
1150
1151
|
*/
|
|
1151
1152
|
onRegenerate?: () => Promise<void> | void;
|
|
1152
1153
|
}
|
|
1153
|
-
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, onRegenerate, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1154
|
+
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;
|
|
1154
1155
|
|
|
1155
1156
|
interface DepositPreGenerationAsset {
|
|
1156
1157
|
ticker?: string;
|
|
@@ -1181,8 +1182,9 @@ interface DepositPreGenerationProps {
|
|
|
1181
1182
|
needsColorableUtxos?: boolean;
|
|
1182
1183
|
/** Invoked by the inline "Create Colorable UTXOs" CTA. */
|
|
1183
1184
|
onOpenCreateUtxos?: () => void;
|
|
1185
|
+
showReceiveSummary?: boolean;
|
|
1184
1186
|
}
|
|
1185
|
-
declare function DepositPreGeneration({ selectedAsset, isBtc, network, net, selectedAccount, currentMethod, channelsLoading, showChannelWarning, showLiquidityWarning, isAutoGenerate, loading, usePrivacy, setUsePrivacy, amount, handleAmountChange, getUnitLabel, generateInvoice, needsColorableUtxos, onOpenCreateUtxos, }: DepositPreGenerationProps): react_jsx_runtime.JSX.Element;
|
|
1187
|
+
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;
|
|
1186
1188
|
|
|
1187
1189
|
interface DepositSelectionAsset {
|
|
1188
1190
|
asset_id: string;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1136,6 +1136,7 @@ interface DepositGeneratedViewProps {
|
|
|
1136
1136
|
setRecipientId: (value: string) => void;
|
|
1137
1137
|
setAmount: (value: string) => void;
|
|
1138
1138
|
setInvoiceStatus: (value: string | null) => void;
|
|
1139
|
+
showQrNetworkBadge?: boolean;
|
|
1139
1140
|
/**
|
|
1140
1141
|
* @deprecated Done button removed in v0.1.8 per the v1.0.0 wallet redesign;
|
|
1141
1142
|
* users navigate away via the standard back button. Prop kept for source
|
|
@@ -1150,7 +1151,7 @@ interface DepositGeneratedViewProps {
|
|
|
1150
1151
|
*/
|
|
1151
1152
|
onRegenerate?: () => Promise<void> | void;
|
|
1152
1153
|
}
|
|
1153
|
-
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, onRegenerate, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1154
|
+
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;
|
|
1154
1155
|
|
|
1155
1156
|
interface DepositPreGenerationAsset {
|
|
1156
1157
|
ticker?: string;
|
|
@@ -1181,8 +1182,9 @@ interface DepositPreGenerationProps {
|
|
|
1181
1182
|
needsColorableUtxos?: boolean;
|
|
1182
1183
|
/** Invoked by the inline "Create Colorable UTXOs" CTA. */
|
|
1183
1184
|
onOpenCreateUtxos?: () => void;
|
|
1185
|
+
showReceiveSummary?: boolean;
|
|
1184
1186
|
}
|
|
1185
|
-
declare function DepositPreGeneration({ selectedAsset, isBtc, network, net, selectedAccount, currentMethod, channelsLoading, showChannelWarning, showLiquidityWarning, isAutoGenerate, loading, usePrivacy, setUsePrivacy, amount, handleAmountChange, getUnitLabel, generateInvoice, needsColorableUtxos, onOpenCreateUtxos, }: DepositPreGenerationProps): react_jsx_runtime.JSX.Element;
|
|
1187
|
+
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;
|
|
1186
1188
|
|
|
1187
1189
|
interface DepositSelectionAsset {
|
|
1188
1190
|
asset_id: string;
|
package/dist/web/index.js
CHANGED
|
@@ -5053,6 +5053,7 @@ function DepositGeneratedView({
|
|
|
5053
5053
|
setRecipientId,
|
|
5054
5054
|
setAmount,
|
|
5055
5055
|
setInvoiceStatus,
|
|
5056
|
+
showQrNetworkBadge = true,
|
|
5056
5057
|
onRegenerate
|
|
5057
5058
|
}) {
|
|
5058
5059
|
return /* @__PURE__ */ jsxs43("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
@@ -5110,7 +5111,7 @@ function DepositGeneratedView({
|
|
|
5110
5111
|
),
|
|
5111
5112
|
style: net.qrGlow,
|
|
5112
5113
|
children: [
|
|
5113
|
-
network !== "spark" && network !== "arkade" && /* @__PURE__ */ jsxs43(
|
|
5114
|
+
showQrNetworkBadge && network !== "spark" && network !== "arkade" && /* @__PURE__ */ jsxs43(
|
|
5114
5115
|
"div",
|
|
5115
5116
|
{
|
|
5116
5117
|
className: cn(
|
|
@@ -5268,11 +5269,12 @@ function DepositPreGeneration({
|
|
|
5268
5269
|
getUnitLabel,
|
|
5269
5270
|
generateInvoice,
|
|
5270
5271
|
needsColorableUtxos = false,
|
|
5271
|
-
onOpenCreateUtxos
|
|
5272
|
+
onOpenCreateUtxos,
|
|
5273
|
+
showReceiveSummary = true
|
|
5272
5274
|
}) {
|
|
5273
5275
|
const method = METHOD_META2[currentMethod];
|
|
5274
5276
|
return /* @__PURE__ */ jsxs44("div", { className: "space-y-3", children: [
|
|
5275
|
-
/* @__PURE__ */ jsxs44("div", { className: "rounded-2xl border border-white/8 bg-white/4 p-3", children: [
|
|
5277
|
+
showReceiveSummary && /* @__PURE__ */ jsxs44("div", { className: "rounded-2xl border border-white/8 bg-white/4 p-3", children: [
|
|
5276
5278
|
/* @__PURE__ */ jsx57("p", { className: "text-xxs font-bold uppercase tracking-widest text-white/35", children: "Receive Summary" }),
|
|
5277
5279
|
/* @__PURE__ */ jsxs44("div", { className: "mt-2 grid grid-cols-1 gap-2 text-xs", children: [
|
|
5278
5280
|
/* @__PURE__ */ jsxs44("div", { className: "flex items-center justify-between gap-3", children: [
|
|
@@ -5866,6 +5868,7 @@ function DepositInvoiceGeneration({
|
|
|
5866
5868
|
const addressLabel = network === "spark" ? "Spark Address" : network === "arkade" ? arkSubMode === "boarding" ? "Boarding Address" : "Arkade Address" : network === "lightning" ? "Lightning Invoice" : "Deposit Address";
|
|
5867
5869
|
const showChannelWarning = selectedAccount === "RGB" && network === "lightning" && !channelsLoading && channels.length === 0 && !isSparkConnected;
|
|
5868
5870
|
const showLiquidityWarning = !isSparkLightning && network === "lightning" && maxDepositAmount === 0 && !channelsLoading && !isBtc;
|
|
5871
|
+
const isNewRgbAsset = isNewAsset && assetFamily === "RGB";
|
|
5869
5872
|
return /* @__PURE__ */ jsxs46("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: [
|
|
5870
5873
|
/* @__PURE__ */ jsx59(
|
|
5871
5874
|
PageHeader,
|
|
@@ -5995,7 +5998,8 @@ function DepositInvoiceGeneration({
|
|
|
5995
5998
|
getUnitLabel,
|
|
5996
5999
|
generateInvoice,
|
|
5997
6000
|
needsColorableUtxos,
|
|
5998
|
-
onOpenCreateUtxos
|
|
6001
|
+
onOpenCreateUtxos,
|
|
6002
|
+
showReceiveSummary: !isNewRgbAsset
|
|
5999
6003
|
}
|
|
6000
6004
|
) : /* @__PURE__ */ jsx59(
|
|
6001
6005
|
DepositGeneratedView,
|
|
@@ -6023,7 +6027,8 @@ function DepositInvoiceGeneration({
|
|
|
6023
6027
|
setRecipientId,
|
|
6024
6028
|
setAmount,
|
|
6025
6029
|
setInvoiceStatus,
|
|
6026
|
-
handleDone
|
|
6030
|
+
handleDone,
|
|
6031
|
+
showQrNetworkBadge: false
|
|
6027
6032
|
}
|
|
6028
6033
|
) })
|
|
6029
6034
|
] });
|
package/package.json
CHANGED