kaleido-ui 0.1.6 → 0.1.8
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 +21 -33
- package/dist/web/index.d.cts +16 -5
- package/dist/web/index.d.ts +16 -5
- package/dist/web/index.js +21 -33
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -1916,7 +1916,8 @@ function BottomNav({
|
|
|
1916
1916
|
var import_react7 = require("react");
|
|
1917
1917
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1918
1918
|
function AccountStatusTabs({
|
|
1919
|
-
accounts
|
|
1919
|
+
accounts,
|
|
1920
|
+
onSelect
|
|
1920
1921
|
}) {
|
|
1921
1922
|
const [selectedAccountId, setSelectedAccountId] = (0, import_react7.useState)(null);
|
|
1922
1923
|
const selectedAccount = selectedAccountId ? accounts.find((account) => account.id === selectedAccountId) : null;
|
|
@@ -1925,10 +1926,10 @@ function AccountStatusTabs({
|
|
|
1925
1926
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1926
1927
|
NetworkStatusChip,
|
|
1927
1928
|
{
|
|
1928
|
-
onClick: () => setSelectedAccountId(account.id),
|
|
1929
|
+
onClick: () => onSelect ? onSelect(account.id) : setSelectedAccountId(account.id),
|
|
1929
1930
|
icon: account.icon,
|
|
1930
1931
|
dotClassName: account.dotTone,
|
|
1931
|
-
ariaLabel: `Open ${account.title} details`
|
|
1932
|
+
ariaLabel: onSelect ? `Open ${account.title}` : `Open ${account.title} details`
|
|
1932
1933
|
}
|
|
1933
1934
|
),
|
|
1934
1935
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
@@ -5196,8 +5197,7 @@ function DepositGeneratedView({
|
|
|
5196
5197
|
setAddress,
|
|
5197
5198
|
setRecipientId,
|
|
5198
5199
|
setAmount,
|
|
5199
|
-
setInvoiceStatus
|
|
5200
|
-
handleDone
|
|
5200
|
+
setInvoiceStatus
|
|
5201
5201
|
}) {
|
|
5202
5202
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
5203
5203
|
(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: [
|
|
@@ -5342,36 +5342,24 @@ function DepositGeneratedView({
|
|
|
5342
5342
|
]
|
|
5343
5343
|
}
|
|
5344
5344
|
),
|
|
5345
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
5346
|
-
|
|
5345
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5346
|
+
"button",
|
|
5347
5347
|
{
|
|
5348
|
-
|
|
5348
|
+
type: "button",
|
|
5349
|
+
onClick: () => {
|
|
5350
|
+
setAddress("");
|
|
5351
|
+
setRecipientId("");
|
|
5352
|
+
setAmount("");
|
|
5353
|
+
setInvoiceStatus(null);
|
|
5354
|
+
},
|
|
5355
|
+
className: "flex items-center justify-center gap-1.5 rounded-xl bg-primary/15 px-5 py-3 text-xs font-bold text-primary transition-all hover:bg-primary/25 active:scale-[0.98]",
|
|
5356
|
+
children: [
|
|
5357
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
|
|
5358
|
+
"New ",
|
|
5359
|
+
network === "lightning" ? "Invoice" : "Address"
|
|
5360
|
+
]
|
|
5349
5361
|
}
|
|
5350
|
-
)
|
|
5351
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex gap-2.5 pt-1", children: [
|
|
5352
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
5353
|
-
"button",
|
|
5354
|
-
{
|
|
5355
|
-
type: "button",
|
|
5356
|
-
onClick: () => {
|
|
5357
|
-
setAddress("");
|
|
5358
|
-
setRecipientId("");
|
|
5359
|
-
setAmount("");
|
|
5360
|
-
setInvoiceStatus(null);
|
|
5361
|
-
},
|
|
5362
|
-
className: "flex flex-1 items-center justify-center gap-1.5 rounded-xl border py-3 text-xs font-bold text-muted-foreground transition-all hover:border-border hover:bg-accent hover:text-white active:scale-[0.98]",
|
|
5363
|
-
children: [
|
|
5364
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
|
|
5365
|
-
"New ",
|
|
5366
|
-
network === "lightning" ? "Invoice" : "Address"
|
|
5367
|
-
]
|
|
5368
|
-
}
|
|
5369
|
-
),
|
|
5370
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Button, { variant: "cta", onClick: handleDone, children: [
|
|
5371
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
|
|
5372
|
-
"Done"
|
|
5373
|
-
] })
|
|
5374
|
-
] })
|
|
5362
|
+
) })
|
|
5375
5363
|
] });
|
|
5376
5364
|
}
|
|
5377
5365
|
|
package/dist/web/index.d.cts
CHANGED
|
@@ -356,8 +356,14 @@ interface AccountStatusTabItem<TId extends string = string> {
|
|
|
356
356
|
}
|
|
357
357
|
interface AccountStatusTabsProps<TId extends string = string> {
|
|
358
358
|
accounts: AccountStatusTabItem<TId>[];
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
/**
|
|
360
|
+
* If provided, tapping an account chip calls this with the account id
|
|
361
|
+
* instead of opening the built-in modal. Use to navigate to a dedicated
|
|
362
|
+
* account/network settings page.
|
|
363
|
+
*/
|
|
364
|
+
onSelect?: (id: TId) => void;
|
|
365
|
+
}
|
|
366
|
+
declare function AccountStatusTabs<TId extends string = string>({ accounts, onSelect, }: AccountStatusTabsProps<TId>): react_jsx_runtime.JSX.Element;
|
|
361
367
|
|
|
362
368
|
interface FilterDropdownOption {
|
|
363
369
|
id: string;
|
|
@@ -1124,9 +1130,14 @@ interface DepositGeneratedViewProps {
|
|
|
1124
1130
|
setRecipientId: (value: string) => void;
|
|
1125
1131
|
setAmount: (value: string) => void;
|
|
1126
1132
|
setInvoiceStatus: (value: string | null) => void;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1133
|
+
/**
|
|
1134
|
+
* @deprecated Done button removed in v0.1.8 per the v1.0.0 wallet redesign;
|
|
1135
|
+
* users navigate away via the standard back button. Prop kept for source
|
|
1136
|
+
* compatibility — it is no longer invoked.
|
|
1137
|
+
*/
|
|
1138
|
+
handleDone?: () => void;
|
|
1139
|
+
}
|
|
1140
|
+
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, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1130
1141
|
|
|
1131
1142
|
interface DepositPreGenerationAsset {
|
|
1132
1143
|
ticker?: string;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -356,8 +356,14 @@ interface AccountStatusTabItem<TId extends string = string> {
|
|
|
356
356
|
}
|
|
357
357
|
interface AccountStatusTabsProps<TId extends string = string> {
|
|
358
358
|
accounts: AccountStatusTabItem<TId>[];
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
/**
|
|
360
|
+
* If provided, tapping an account chip calls this with the account id
|
|
361
|
+
* instead of opening the built-in modal. Use to navigate to a dedicated
|
|
362
|
+
* account/network settings page.
|
|
363
|
+
*/
|
|
364
|
+
onSelect?: (id: TId) => void;
|
|
365
|
+
}
|
|
366
|
+
declare function AccountStatusTabs<TId extends string = string>({ accounts, onSelect, }: AccountStatusTabsProps<TId>): react_jsx_runtime.JSX.Element;
|
|
361
367
|
|
|
362
368
|
interface FilterDropdownOption {
|
|
363
369
|
id: string;
|
|
@@ -1124,9 +1130,14 @@ interface DepositGeneratedViewProps {
|
|
|
1124
1130
|
setRecipientId: (value: string) => void;
|
|
1125
1131
|
setAmount: (value: string) => void;
|
|
1126
1132
|
setInvoiceStatus: (value: string | null) => void;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1133
|
+
/**
|
|
1134
|
+
* @deprecated Done button removed in v0.1.8 per the v1.0.0 wallet redesign;
|
|
1135
|
+
* users navigate away via the standard back button. Prop kept for source
|
|
1136
|
+
* compatibility — it is no longer invoked.
|
|
1137
|
+
*/
|
|
1138
|
+
handleDone?: () => void;
|
|
1139
|
+
}
|
|
1140
|
+
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, }: DepositGeneratedViewProps): react_jsx_runtime.JSX.Element;
|
|
1130
1141
|
|
|
1131
1142
|
interface DepositPreGenerationAsset {
|
|
1132
1143
|
ticker?: string;
|
package/dist/web/index.js
CHANGED
|
@@ -1761,7 +1761,8 @@ function BottomNav({
|
|
|
1761
1761
|
import { useState as useState7 } from "react";
|
|
1762
1762
|
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1763
1763
|
function AccountStatusTabs({
|
|
1764
|
-
accounts
|
|
1764
|
+
accounts,
|
|
1765
|
+
onSelect
|
|
1765
1766
|
}) {
|
|
1766
1767
|
const [selectedAccountId, setSelectedAccountId] = useState7(null);
|
|
1767
1768
|
const selectedAccount = selectedAccountId ? accounts.find((account) => account.id === selectedAccountId) : null;
|
|
@@ -1770,10 +1771,10 @@ function AccountStatusTabs({
|
|
|
1770
1771
|
/* @__PURE__ */ jsx26(
|
|
1771
1772
|
NetworkStatusChip,
|
|
1772
1773
|
{
|
|
1773
|
-
onClick: () => setSelectedAccountId(account.id),
|
|
1774
|
+
onClick: () => onSelect ? onSelect(account.id) : setSelectedAccountId(account.id),
|
|
1774
1775
|
icon: account.icon,
|
|
1775
1776
|
dotClassName: account.dotTone,
|
|
1776
|
-
ariaLabel: `Open ${account.title} details`
|
|
1777
|
+
ariaLabel: onSelect ? `Open ${account.title}` : `Open ${account.title} details`
|
|
1777
1778
|
}
|
|
1778
1779
|
),
|
|
1779
1780
|
/* @__PURE__ */ jsxs14(
|
|
@@ -5041,8 +5042,7 @@ function DepositGeneratedView({
|
|
|
5041
5042
|
setAddress,
|
|
5042
5043
|
setRecipientId,
|
|
5043
5044
|
setAmount,
|
|
5044
|
-
setInvoiceStatus
|
|
5045
|
-
handleDone
|
|
5045
|
+
setInvoiceStatus
|
|
5046
5046
|
}) {
|
|
5047
5047
|
return /* @__PURE__ */ jsxs43("div", { className: "space-y-3 animate-in fade-in zoom-in-95 duration-300", children: [
|
|
5048
5048
|
(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: [
|
|
@@ -5187,36 +5187,24 @@ function DepositGeneratedView({
|
|
|
5187
5187
|
]
|
|
5188
5188
|
}
|
|
5189
5189
|
),
|
|
5190
|
-
/* @__PURE__ */ jsx56(
|
|
5191
|
-
|
|
5190
|
+
/* @__PURE__ */ jsx56("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ jsxs43(
|
|
5191
|
+
"button",
|
|
5192
5192
|
{
|
|
5193
|
-
|
|
5193
|
+
type: "button",
|
|
5194
|
+
onClick: () => {
|
|
5195
|
+
setAddress("");
|
|
5196
|
+
setRecipientId("");
|
|
5197
|
+
setAmount("");
|
|
5198
|
+
setInvoiceStatus(null);
|
|
5199
|
+
},
|
|
5200
|
+
className: "flex items-center justify-center gap-1.5 rounded-xl bg-primary/15 px-5 py-3 text-xs font-bold text-primary transition-all hover:bg-primary/25 active:scale-[0.98]",
|
|
5201
|
+
children: [
|
|
5202
|
+
/* @__PURE__ */ jsx56("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
|
|
5203
|
+
"New ",
|
|
5204
|
+
network === "lightning" ? "Invoice" : "Address"
|
|
5205
|
+
]
|
|
5194
5206
|
}
|
|
5195
|
-
)
|
|
5196
|
-
/* @__PURE__ */ jsxs43("div", { className: "flex gap-2.5 pt-1", children: [
|
|
5197
|
-
/* @__PURE__ */ jsxs43(
|
|
5198
|
-
"button",
|
|
5199
|
-
{
|
|
5200
|
-
type: "button",
|
|
5201
|
-
onClick: () => {
|
|
5202
|
-
setAddress("");
|
|
5203
|
-
setRecipientId("");
|
|
5204
|
-
setAmount("");
|
|
5205
|
-
setInvoiceStatus(null);
|
|
5206
|
-
},
|
|
5207
|
-
className: "flex flex-1 items-center justify-center gap-1.5 rounded-xl border py-3 text-xs font-bold text-muted-foreground transition-all hover:border-border hover:bg-accent hover:text-white active:scale-[0.98]",
|
|
5208
|
-
children: [
|
|
5209
|
-
/* @__PURE__ */ jsx56("span", { className: "material-symbols-outlined text-icon-sm", children: "refresh" }),
|
|
5210
|
-
"New ",
|
|
5211
|
-
network === "lightning" ? "Invoice" : "Address"
|
|
5212
|
-
]
|
|
5213
|
-
}
|
|
5214
|
-
),
|
|
5215
|
-
/* @__PURE__ */ jsxs43(Button, { variant: "cta", onClick: handleDone, children: [
|
|
5216
|
-
/* @__PURE__ */ jsx56("span", { className: "material-symbols-outlined text-icon-sm", children: "check" }),
|
|
5217
|
-
"Done"
|
|
5218
|
-
] })
|
|
5219
|
-
] })
|
|
5207
|
+
) })
|
|
5220
5208
|
] });
|
|
5221
5209
|
}
|
|
5222
5210
|
|
package/package.json
CHANGED