kaleido-ui 0.1.48 → 0.1.49
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 +5 -2
- package/dist/web/index.d.cts +4 -1
- package/dist/web/index.d.ts +4 -1
- package/dist/web/index.js +5 -2
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -1805,6 +1805,7 @@ function AssetCard({
|
|
|
1805
1805
|
logoUri,
|
|
1806
1806
|
balanceVisible = true,
|
|
1807
1807
|
accentColor,
|
|
1808
|
+
status,
|
|
1808
1809
|
onClick,
|
|
1809
1810
|
className
|
|
1810
1811
|
}) {
|
|
@@ -1853,7 +1854,7 @@ function AssetCard({
|
|
|
1853
1854
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex flex-nowrap gap-1 mt-1", children: networks.map((network) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NetworkBadge, { network, size: "sm" }, network)) })
|
|
1854
1855
|
] })
|
|
1855
1856
|
] }),
|
|
1856
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "min-w-0 max-w-[45%] text-right", children: [
|
|
1857
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex min-w-0 max-w-[45%] flex-col items-end text-right", children: [
|
|
1857
1858
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1858
1859
|
"p",
|
|
1859
1860
|
{
|
|
@@ -1862,7 +1863,8 @@ function AssetCard({
|
|
|
1862
1863
|
children: displayShown
|
|
1863
1864
|
}
|
|
1864
1865
|
),
|
|
1865
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "mt-0.5 truncate text-tiny font-medium uppercase tracking-wide text-muted-foreground", children: ticker })
|
|
1866
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "mt-0.5 truncate text-tiny font-medium uppercase tracking-wide text-muted-foreground", children: ticker }),
|
|
1867
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(StatusBadge, { status, className: "mt-2" })
|
|
1866
1868
|
] })
|
|
1867
1869
|
] })
|
|
1868
1870
|
]
|
|
@@ -3323,6 +3325,7 @@ function WalletAssetList({
|
|
|
3323
3325
|
logoUri: item.logoUri,
|
|
3324
3326
|
balanceVisible: item.balanceVisible,
|
|
3325
3327
|
accentColor: item.accentColor,
|
|
3328
|
+
status: item.status,
|
|
3326
3329
|
onClick: item.onClick
|
|
3327
3330
|
},
|
|
3328
3331
|
item.id
|
package/dist/web/index.d.cts
CHANGED
|
@@ -228,10 +228,12 @@ interface AssetCardProps {
|
|
|
228
228
|
balanceVisible?: boolean;
|
|
229
229
|
/** Accent color hex for the card gradient. Pass a token from `kaleido-ui/tokens` (e.g. `colors.network.bitcoin`). */
|
|
230
230
|
accentColor?: string;
|
|
231
|
+
/** Optional state badge for assets that are present but not currently spendable. */
|
|
232
|
+
status?: StatusType;
|
|
231
233
|
onClick?: () => void;
|
|
232
234
|
className?: string;
|
|
233
235
|
}
|
|
234
|
-
declare function AssetCard({ ticker, name, displayBalance, networks, logoUri, balanceVisible, accentColor, onClick, className, }: AssetCardProps): react_jsx_runtime.JSX.Element;
|
|
236
|
+
declare function AssetCard({ ticker, name, displayBalance, networks, logoUri, balanceVisible, accentColor, status, onClick, className, }: AssetCardProps): react_jsx_runtime.JSX.Element;
|
|
235
237
|
|
|
236
238
|
interface TransactionCardProps {
|
|
237
239
|
/** Direction of the transaction */
|
|
@@ -580,6 +582,7 @@ interface WalletAssetListItem {
|
|
|
580
582
|
logoUri?: string;
|
|
581
583
|
balanceVisible?: boolean;
|
|
582
584
|
accentColor?: string;
|
|
585
|
+
status?: StatusType;
|
|
583
586
|
onClick?: () => void;
|
|
584
587
|
}
|
|
585
588
|
interface WalletAssetListEmptyState {
|
package/dist/web/index.d.ts
CHANGED
|
@@ -228,10 +228,12 @@ interface AssetCardProps {
|
|
|
228
228
|
balanceVisible?: boolean;
|
|
229
229
|
/** Accent color hex for the card gradient. Pass a token from `kaleido-ui/tokens` (e.g. `colors.network.bitcoin`). */
|
|
230
230
|
accentColor?: string;
|
|
231
|
+
/** Optional state badge for assets that are present but not currently spendable. */
|
|
232
|
+
status?: StatusType;
|
|
231
233
|
onClick?: () => void;
|
|
232
234
|
className?: string;
|
|
233
235
|
}
|
|
234
|
-
declare function AssetCard({ ticker, name, displayBalance, networks, logoUri, balanceVisible, accentColor, onClick, className, }: AssetCardProps): react_jsx_runtime.JSX.Element;
|
|
236
|
+
declare function AssetCard({ ticker, name, displayBalance, networks, logoUri, balanceVisible, accentColor, status, onClick, className, }: AssetCardProps): react_jsx_runtime.JSX.Element;
|
|
235
237
|
|
|
236
238
|
interface TransactionCardProps {
|
|
237
239
|
/** Direction of the transaction */
|
|
@@ -580,6 +582,7 @@ interface WalletAssetListItem {
|
|
|
580
582
|
logoUri?: string;
|
|
581
583
|
balanceVisible?: boolean;
|
|
582
584
|
accentColor?: string;
|
|
585
|
+
status?: StatusType;
|
|
583
586
|
onClick?: () => void;
|
|
584
587
|
}
|
|
585
588
|
interface WalletAssetListEmptyState {
|
package/dist/web/index.js
CHANGED
|
@@ -1638,6 +1638,7 @@ function AssetCard({
|
|
|
1638
1638
|
logoUri,
|
|
1639
1639
|
balanceVisible = true,
|
|
1640
1640
|
accentColor,
|
|
1641
|
+
status,
|
|
1641
1642
|
onClick,
|
|
1642
1643
|
className
|
|
1643
1644
|
}) {
|
|
@@ -1686,7 +1687,7 @@ function AssetCard({
|
|
|
1686
1687
|
/* @__PURE__ */ jsx19("div", { className: "flex flex-nowrap gap-1 mt-1", children: networks.map((network) => /* @__PURE__ */ jsx19(NetworkBadge, { network, size: "sm" }, network)) })
|
|
1687
1688
|
] })
|
|
1688
1689
|
] }),
|
|
1689
|
-
/* @__PURE__ */ jsxs8("div", { className: "min-w-0 max-w-[45%] text-right", children: [
|
|
1690
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex min-w-0 max-w-[45%] flex-col items-end text-right", children: [
|
|
1690
1691
|
/* @__PURE__ */ jsx19(
|
|
1691
1692
|
"p",
|
|
1692
1693
|
{
|
|
@@ -1695,7 +1696,8 @@ function AssetCard({
|
|
|
1695
1696
|
children: displayShown
|
|
1696
1697
|
}
|
|
1697
1698
|
),
|
|
1698
|
-
/* @__PURE__ */ jsx19("p", { className: "mt-0.5 truncate text-tiny font-medium uppercase tracking-wide text-muted-foreground", children: ticker })
|
|
1699
|
+
/* @__PURE__ */ jsx19("p", { className: "mt-0.5 truncate text-tiny font-medium uppercase tracking-wide text-muted-foreground", children: ticker }),
|
|
1700
|
+
status && /* @__PURE__ */ jsx19(StatusBadge, { status, className: "mt-2" })
|
|
1699
1701
|
] })
|
|
1700
1702
|
] })
|
|
1701
1703
|
]
|
|
@@ -3162,6 +3164,7 @@ function WalletAssetList({
|
|
|
3162
3164
|
logoUri: item.logoUri,
|
|
3163
3165
|
balanceVisible: item.balanceVisible,
|
|
3164
3166
|
accentColor: item.accentColor,
|
|
3167
|
+
status: item.status,
|
|
3165
3168
|
onClick: item.onClick
|
|
3166
3169
|
},
|
|
3167
3170
|
item.id
|
package/package.json
CHANGED