kaleido-ui 0.1.117 → 0.1.119

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.
@@ -3540,6 +3540,8 @@ function BalanceBreakdown({
3540
3540
  const fiatTotal = formatFiatValue(totalBTC);
3541
3541
  const rgbBtcLabels = getRgbBtcBreakdownLabels(accounts);
3542
3542
  const showLightningRow = externalLightningAvailable ?? rgbBtcLabels.showLightning;
3543
+ const lightningLabel = externalLightningAvailable ? "BTC on Lightning" : rgbBtcLabels.lightningLabel;
3544
+ const lightningSublabel = externalLightningAvailable ? "External channel balance" : rgbBtcLabels.lightningSublabel;
3543
3545
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: `flex flex-col ${compact ? "gap-2" : "gap-3"}`, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3544
3546
  "div",
3545
3547
  {
@@ -3652,13 +3654,14 @@ function BalanceBreakdown({
3652
3654
  ),
3653
3655
  iconColor: "text-network-lightning",
3654
3656
  dotColor: "bg-network-lightning",
3655
- label: rgbBtcLabels.lightningLabel,
3656
- sublabel: rgbBtcLabels.lightningSublabel,
3657
+ label: lightningLabel,
3658
+ sublabel: lightningSublabel,
3657
3659
  amount: btcLightning,
3658
3660
  isPending: btcLightningPending,
3659
3661
  visible: balanceVisible,
3660
3662
  format,
3661
- formatFiat: formatFiatValue
3663
+ formatFiat: formatFiatValue,
3664
+ testId: "balance-breakdown-lightning-source"
3662
3665
  }
3663
3666
  ),
3664
3667
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
@@ -3856,13 +3859,15 @@ function NetworkRow({
3856
3859
  isPending = false,
3857
3860
  visible,
3858
3861
  format,
3859
- formatFiat
3862
+ formatFiat,
3863
+ testId
3860
3864
  }) {
3861
3865
  const fiat = formatFiat(amount);
3862
3866
  const isEmpty = amount === 0 && !isPending;
3863
3867
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
3864
3868
  "div",
3865
3869
  {
3870
+ "data-testid": testId,
3866
3871
  className: `flex items-center justify-between rounded-xl px-3 py-2 transition-colors ${isEmpty ? "opacity-35" : "bg-white/[0.03] hover:bg-accent"}`,
3867
3872
  children: [
3868
3873
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center gap-3", children: [
package/dist/web/index.js CHANGED
@@ -3352,6 +3352,8 @@ function BalanceBreakdown({
3352
3352
  const fiatTotal = formatFiatValue(totalBTC);
3353
3353
  const rgbBtcLabels = getRgbBtcBreakdownLabels(accounts);
3354
3354
  const showLightningRow = externalLightningAvailable ?? rgbBtcLabels.showLightning;
3355
+ const lightningLabel = externalLightningAvailable ? "BTC on Lightning" : rgbBtcLabels.lightningLabel;
3356
+ const lightningSublabel = externalLightningAvailable ? "External channel balance" : rgbBtcLabels.lightningSublabel;
3355
3357
  return /* @__PURE__ */ jsx38("div", { className: `flex flex-col ${compact ? "gap-2" : "gap-3"}`, children: /* @__PURE__ */ jsxs25(
3356
3358
  "div",
3357
3359
  {
@@ -3464,13 +3466,14 @@ function BalanceBreakdown({
3464
3466
  ),
3465
3467
  iconColor: "text-network-lightning",
3466
3468
  dotColor: "bg-network-lightning",
3467
- label: rgbBtcLabels.lightningLabel,
3468
- sublabel: rgbBtcLabels.lightningSublabel,
3469
+ label: lightningLabel,
3470
+ sublabel: lightningSublabel,
3469
3471
  amount: btcLightning,
3470
3472
  isPending: btcLightningPending,
3471
3473
  visible: balanceVisible,
3472
3474
  format,
3473
- formatFiat: formatFiatValue
3475
+ formatFiat: formatFiatValue,
3476
+ testId: "balance-breakdown-lightning-source"
3474
3477
  }
3475
3478
  ),
3476
3479
  /* @__PURE__ */ jsx38(
@@ -3668,13 +3671,15 @@ function NetworkRow({
3668
3671
  isPending = false,
3669
3672
  visible,
3670
3673
  format,
3671
- formatFiat
3674
+ formatFiat,
3675
+ testId
3672
3676
  }) {
3673
3677
  const fiat = formatFiat(amount);
3674
3678
  const isEmpty = amount === 0 && !isPending;
3675
3679
  return /* @__PURE__ */ jsxs25(
3676
3680
  "div",
3677
3681
  {
3682
+ "data-testid": testId,
3678
3683
  className: `flex items-center justify-between rounded-xl px-3 py-2 transition-colors ${isEmpty ? "opacity-35" : "bg-white/[0.03] hover:bg-accent"}`,
3679
3684
  children: [
3680
3685
  /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-3", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.117",
3
+ "version": "0.1.119",
4
4
  "description": "KaleidoSwap shared UI library \u2014 design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit",
5
5
  "license": "MIT",
6
6
  "type": "module",