kaleido-ui 0.1.97 → 0.1.98
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 +19 -2
- package/dist/web/index.d.cts +5 -1
- package/dist/web/index.d.ts +5 -1
- package/dist/web/index.js +19 -2
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -1880,6 +1880,7 @@ function TransactionCard({
|
|
|
1880
1880
|
displayAmount,
|
|
1881
1881
|
unit = "sats",
|
|
1882
1882
|
subAmount,
|
|
1883
|
+
onSubAmountInfo,
|
|
1883
1884
|
timestamp,
|
|
1884
1885
|
onClick,
|
|
1885
1886
|
className
|
|
@@ -1956,7 +1957,22 @@ function TransactionCard({
|
|
|
1956
1957
|
}
|
|
1957
1958
|
),
|
|
1958
1959
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-tiny text-muted-foreground font-medium tracking-wide uppercase mt-0.5", children: unit }),
|
|
1959
|
-
subAmount && /* @__PURE__ */ (0, import_jsx_runtime21.
|
|
1960
|
+
subAmount && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "flex items-center justify-end gap-1 text-tiny text-muted-foreground/70 font-medium tracking-wide tabular-nums mt-0.5", children: [
|
|
1961
|
+
subAmount,
|
|
1962
|
+
onSubAmountInfo && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1963
|
+
"button",
|
|
1964
|
+
{
|
|
1965
|
+
type: "button",
|
|
1966
|
+
"aria-label": "What is this value?",
|
|
1967
|
+
onClick: (event) => {
|
|
1968
|
+
event.stopPropagation();
|
|
1969
|
+
onSubAmountInfo();
|
|
1970
|
+
},
|
|
1971
|
+
className: "-my-1 rounded-full p-0.5 text-white/30 transition-colors hover:bg-accent hover:text-primary",
|
|
1972
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "material-symbols-outlined block", style: { fontSize: "13px" }, children: "info" })
|
|
1973
|
+
}
|
|
1974
|
+
)
|
|
1975
|
+
] })
|
|
1960
1976
|
] })
|
|
1961
1977
|
]
|
|
1962
1978
|
}
|
|
@@ -4558,6 +4574,7 @@ function ActivityList({
|
|
|
4558
4574
|
displayAmount: item.displayAmount,
|
|
4559
4575
|
unit: item.unit,
|
|
4560
4576
|
subAmount: item.subAmount,
|
|
4577
|
+
onSubAmountInfo: item.onSubAmountInfo,
|
|
4561
4578
|
timestamp: item.timestamp,
|
|
4562
4579
|
onClick: () => onExpandedChange?.(isExpanded ? null : item.id)
|
|
4563
4580
|
}
|
|
@@ -4803,7 +4820,7 @@ function ActivityDetailRow({
|
|
|
4803
4820
|
event.stopPropagation();
|
|
4804
4821
|
onCopy();
|
|
4805
4822
|
},
|
|
4806
|
-
className: "rounded-md p-1 text-white/30 transition-colors hover:bg-accent hover:text-primary active:scale-95",
|
|
4823
|
+
className: "-my-1 rounded-md p-1 text-white/30 transition-colors hover:bg-accent hover:text-primary active:scale-95",
|
|
4807
4824
|
title: fullValue ? `Copy: ${fullValue}` : "Copy",
|
|
4808
4825
|
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "material-symbols-outlined", style: { fontSize: "14px" }, children: isCopied ? "check" : "content_copy" })
|
|
4809
4826
|
}
|
package/dist/web/index.d.cts
CHANGED
|
@@ -269,12 +269,15 @@ interface TransactionCardProps {
|
|
|
269
269
|
/** Secondary amount under the unit — e.g. the sats leg an asset transfer
|
|
270
270
|
* rode on ("588 sats" for an RGB-LN payment or an Arkade asset VTXO). */
|
|
271
271
|
subAmount?: string;
|
|
272
|
+
/** When set, renders an info affordance next to subAmount (e.g. to open a
|
|
273
|
+
* modal explaining the carrier UTXO/VTXO value). Click doesn't bubble. */
|
|
274
|
+
onSubAmountInfo?: () => void;
|
|
272
275
|
/** Unix timestamp in seconds */
|
|
273
276
|
timestamp: number;
|
|
274
277
|
onClick?: () => void;
|
|
275
278
|
className?: string;
|
|
276
279
|
}
|
|
277
|
-
declare function TransactionCard({ direction, status, displayAmount, unit, subAmount, timestamp, onClick, className, }: TransactionCardProps): react_jsx_runtime.JSX.Element;
|
|
280
|
+
declare function TransactionCard({ direction, status, displayAmount, unit, subAmount, onSubAmountInfo, timestamp, onClick, className, }: TransactionCardProps): react_jsx_runtime.JSX.Element;
|
|
278
281
|
|
|
279
282
|
declare const APP_ICON_NAMES: {
|
|
280
283
|
readonly activity: "history";
|
|
@@ -808,6 +811,7 @@ interface ActivityListItem<TData = unknown> {
|
|
|
808
811
|
/** Secondary amount under the unit (e.g. the sats leg of an asset transfer). */
|
|
809
812
|
subAmount?: string;
|
|
810
813
|
timestamp: number;
|
|
814
|
+
onSubAmountInfo?: () => void;
|
|
811
815
|
network?: NetworkType;
|
|
812
816
|
label?: string;
|
|
813
817
|
data?: TData;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -269,12 +269,15 @@ interface TransactionCardProps {
|
|
|
269
269
|
/** Secondary amount under the unit — e.g. the sats leg an asset transfer
|
|
270
270
|
* rode on ("588 sats" for an RGB-LN payment or an Arkade asset VTXO). */
|
|
271
271
|
subAmount?: string;
|
|
272
|
+
/** When set, renders an info affordance next to subAmount (e.g. to open a
|
|
273
|
+
* modal explaining the carrier UTXO/VTXO value). Click doesn't bubble. */
|
|
274
|
+
onSubAmountInfo?: () => void;
|
|
272
275
|
/** Unix timestamp in seconds */
|
|
273
276
|
timestamp: number;
|
|
274
277
|
onClick?: () => void;
|
|
275
278
|
className?: string;
|
|
276
279
|
}
|
|
277
|
-
declare function TransactionCard({ direction, status, displayAmount, unit, subAmount, timestamp, onClick, className, }: TransactionCardProps): react_jsx_runtime.JSX.Element;
|
|
280
|
+
declare function TransactionCard({ direction, status, displayAmount, unit, subAmount, onSubAmountInfo, timestamp, onClick, className, }: TransactionCardProps): react_jsx_runtime.JSX.Element;
|
|
278
281
|
|
|
279
282
|
declare const APP_ICON_NAMES: {
|
|
280
283
|
readonly activity: "history";
|
|
@@ -808,6 +811,7 @@ interface ActivityListItem<TData = unknown> {
|
|
|
808
811
|
/** Secondary amount under the unit (e.g. the sats leg of an asset transfer). */
|
|
809
812
|
subAmount?: string;
|
|
810
813
|
timestamp: number;
|
|
814
|
+
onSubAmountInfo?: () => void;
|
|
811
815
|
network?: NetworkType;
|
|
812
816
|
label?: string;
|
|
813
817
|
data?: TData;
|
package/dist/web/index.js
CHANGED
|
@@ -1692,6 +1692,7 @@ function TransactionCard({
|
|
|
1692
1692
|
displayAmount,
|
|
1693
1693
|
unit = "sats",
|
|
1694
1694
|
subAmount,
|
|
1695
|
+
onSubAmountInfo,
|
|
1695
1696
|
timestamp,
|
|
1696
1697
|
onClick,
|
|
1697
1698
|
className
|
|
@@ -1768,7 +1769,22 @@ function TransactionCard({
|
|
|
1768
1769
|
}
|
|
1769
1770
|
),
|
|
1770
1771
|
/* @__PURE__ */ jsx21("p", { className: "text-tiny text-muted-foreground font-medium tracking-wide uppercase mt-0.5", children: unit }),
|
|
1771
|
-
subAmount && /* @__PURE__ */
|
|
1772
|
+
subAmount && /* @__PURE__ */ jsxs10("p", { className: "flex items-center justify-end gap-1 text-tiny text-muted-foreground/70 font-medium tracking-wide tabular-nums mt-0.5", children: [
|
|
1773
|
+
subAmount,
|
|
1774
|
+
onSubAmountInfo && /* @__PURE__ */ jsx21(
|
|
1775
|
+
"button",
|
|
1776
|
+
{
|
|
1777
|
+
type: "button",
|
|
1778
|
+
"aria-label": "What is this value?",
|
|
1779
|
+
onClick: (event) => {
|
|
1780
|
+
event.stopPropagation();
|
|
1781
|
+
onSubAmountInfo();
|
|
1782
|
+
},
|
|
1783
|
+
className: "-my-1 rounded-full p-0.5 text-white/30 transition-colors hover:bg-accent hover:text-primary",
|
|
1784
|
+
children: /* @__PURE__ */ jsx21("span", { className: "material-symbols-outlined block", style: { fontSize: "13px" }, children: "info" })
|
|
1785
|
+
}
|
|
1786
|
+
)
|
|
1787
|
+
] })
|
|
1772
1788
|
] })
|
|
1773
1789
|
]
|
|
1774
1790
|
}
|
|
@@ -4376,6 +4392,7 @@ function ActivityList({
|
|
|
4376
4392
|
displayAmount: item.displayAmount,
|
|
4377
4393
|
unit: item.unit,
|
|
4378
4394
|
subAmount: item.subAmount,
|
|
4395
|
+
onSubAmountInfo: item.onSubAmountInfo,
|
|
4379
4396
|
timestamp: item.timestamp,
|
|
4380
4397
|
onClick: () => onExpandedChange?.(isExpanded ? null : item.id)
|
|
4381
4398
|
}
|
|
@@ -4621,7 +4638,7 @@ function ActivityDetailRow({
|
|
|
4621
4638
|
event.stopPropagation();
|
|
4622
4639
|
onCopy();
|
|
4623
4640
|
},
|
|
4624
|
-
className: "rounded-md p-1 text-white/30 transition-colors hover:bg-accent hover:text-primary active:scale-95",
|
|
4641
|
+
className: "-my-1 rounded-md p-1 text-white/30 transition-colors hover:bg-accent hover:text-primary active:scale-95",
|
|
4625
4642
|
title: fullValue ? `Copy: ${fullValue}` : "Copy",
|
|
4626
4643
|
children: /* @__PURE__ */ jsx45("span", { className: "material-symbols-outlined", style: { fontSize: "14px" }, children: isCopied ? "check" : "content_copy" })
|
|
4627
4644
|
}
|
package/package.json
CHANGED