kaleido-ui 0.1.96 → 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.
@@ -1879,6 +1879,8 @@ function TransactionCard({
1879
1879
  status,
1880
1880
  displayAmount,
1881
1881
  unit = "sats",
1882
+ subAmount,
1883
+ onSubAmountInfo,
1882
1884
  timestamp,
1883
1885
  onClick,
1884
1886
  className
@@ -1954,7 +1956,23 @@ function TransactionCard({
1954
1956
  ]
1955
1957
  }
1956
1958
  ),
1957
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-tiny text-muted-foreground font-medium tracking-wide uppercase mt-0.5", children: unit })
1959
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-tiny text-muted-foreground font-medium tracking-wide uppercase mt-0.5", children: unit }),
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
+ ] })
1958
1976
  ] })
1959
1977
  ]
1960
1978
  }
@@ -4555,6 +4573,8 @@ function ActivityList({
4555
4573
  status: item.status,
4556
4574
  displayAmount: item.displayAmount,
4557
4575
  unit: item.unit,
4576
+ subAmount: item.subAmount,
4577
+ onSubAmountInfo: item.onSubAmountInfo,
4558
4578
  timestamp: item.timestamp,
4559
4579
  onClick: () => onExpandedChange?.(isExpanded ? null : item.id)
4560
4580
  }
@@ -4800,7 +4820,7 @@ function ActivityDetailRow({
4800
4820
  event.stopPropagation();
4801
4821
  onCopy();
4802
4822
  },
4803
- 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",
4804
4824
  title: fullValue ? `Copy: ${fullValue}` : "Copy",
4805
4825
  children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "material-symbols-outlined", style: { fontSize: "14px" }, children: isCopied ? "check" : "content_copy" })
4806
4826
  }
@@ -266,12 +266,18 @@ interface TransactionCardProps {
266
266
  displayAmount: string;
267
267
  /** Unit label (e.g. "sats", "BTC") */
268
268
  unit?: string;
269
+ /** Secondary amount under the unit — e.g. the sats leg an asset transfer
270
+ * rode on ("588 sats" for an RGB-LN payment or an Arkade asset VTXO). */
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;
269
275
  /** Unix timestamp in seconds */
270
276
  timestamp: number;
271
277
  onClick?: () => void;
272
278
  className?: string;
273
279
  }
274
- declare function TransactionCard({ direction, status, displayAmount, unit, 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;
275
281
 
276
282
  declare const APP_ICON_NAMES: {
277
283
  readonly activity: "history";
@@ -802,7 +808,10 @@ interface ActivityListItem<TData = unknown> {
802
808
  status: StatusType;
803
809
  displayAmount: string;
804
810
  unit?: string;
811
+ /** Secondary amount under the unit (e.g. the sats leg of an asset transfer). */
812
+ subAmount?: string;
805
813
  timestamp: number;
814
+ onSubAmountInfo?: () => void;
806
815
  network?: NetworkType;
807
816
  label?: string;
808
817
  data?: TData;
@@ -266,12 +266,18 @@ interface TransactionCardProps {
266
266
  displayAmount: string;
267
267
  /** Unit label (e.g. "sats", "BTC") */
268
268
  unit?: string;
269
+ /** Secondary amount under the unit — e.g. the sats leg an asset transfer
270
+ * rode on ("588 sats" for an RGB-LN payment or an Arkade asset VTXO). */
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;
269
275
  /** Unix timestamp in seconds */
270
276
  timestamp: number;
271
277
  onClick?: () => void;
272
278
  className?: string;
273
279
  }
274
- declare function TransactionCard({ direction, status, displayAmount, unit, 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;
275
281
 
276
282
  declare const APP_ICON_NAMES: {
277
283
  readonly activity: "history";
@@ -802,7 +808,10 @@ interface ActivityListItem<TData = unknown> {
802
808
  status: StatusType;
803
809
  displayAmount: string;
804
810
  unit?: string;
811
+ /** Secondary amount under the unit (e.g. the sats leg of an asset transfer). */
812
+ subAmount?: string;
805
813
  timestamp: number;
814
+ onSubAmountInfo?: () => void;
806
815
  network?: NetworkType;
807
816
  label?: string;
808
817
  data?: TData;
package/dist/web/index.js CHANGED
@@ -1691,6 +1691,8 @@ function TransactionCard({
1691
1691
  status,
1692
1692
  displayAmount,
1693
1693
  unit = "sats",
1694
+ subAmount,
1695
+ onSubAmountInfo,
1694
1696
  timestamp,
1695
1697
  onClick,
1696
1698
  className
@@ -1766,7 +1768,23 @@ function TransactionCard({
1766
1768
  ]
1767
1769
  }
1768
1770
  ),
1769
- /* @__PURE__ */ jsx21("p", { className: "text-tiny text-muted-foreground font-medium tracking-wide uppercase mt-0.5", children: unit })
1771
+ /* @__PURE__ */ jsx21("p", { className: "text-tiny text-muted-foreground font-medium tracking-wide uppercase mt-0.5", children: unit }),
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
+ ] })
1770
1788
  ] })
1771
1789
  ]
1772
1790
  }
@@ -4373,6 +4391,8 @@ function ActivityList({
4373
4391
  status: item.status,
4374
4392
  displayAmount: item.displayAmount,
4375
4393
  unit: item.unit,
4394
+ subAmount: item.subAmount,
4395
+ onSubAmountInfo: item.onSubAmountInfo,
4376
4396
  timestamp: item.timestamp,
4377
4397
  onClick: () => onExpandedChange?.(isExpanded ? null : item.id)
4378
4398
  }
@@ -4618,7 +4638,7 @@ function ActivityDetailRow({
4618
4638
  event.stopPropagation();
4619
4639
  onCopy();
4620
4640
  },
4621
- 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",
4622
4642
  title: fullValue ? `Copy: ${fullValue}` : "Copy",
4623
4643
  children: /* @__PURE__ */ jsx45("span", { className: "material-symbols-outlined", style: { fontSize: "14px" }, children: isCopied ? "check" : "content_copy" })
4624
4644
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.96",
3
+ "version": "0.1.98",
4
4
  "description": "KaleidoSwap shared UI library — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit",
5
5
  "license": "MIT",
6
6
  "type": "module",