kaleido-ui 0.1.118 → 0.1.120

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.
@@ -1412,7 +1412,7 @@ function StatusBadge({ status, className }) {
1412
1412
  className
1413
1413
  ),
1414
1414
  children: [
1415
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "material-symbols-outlined text-icon-sm", children: icon }),
1415
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, { name: icon, className: "text-icon-sm" }),
1416
1416
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { children: label })
1417
1417
  ]
1418
1418
  }
@@ -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,8 +3654,8 @@ 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,
@@ -5028,7 +5030,7 @@ function ActivityDetailRow({
5028
5030
  },
5029
5031
  className: "-my-1 rounded-md p-1 text-white/30 transition-colors hover:bg-accent hover:text-primary active:scale-95",
5030
5032
  title: fullValue ? `Copy: ${fullValue}` : "Copy",
5031
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "material-symbols-outlined", style: { fontSize: "14px" }, children: isCopied ? "check" : "content_copy" })
5033
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon, { name: isCopied ? "check" : "content_copy", style: { fontSize: "14px" } })
5032
5034
  }
5033
5035
  )
5034
5036
  ] })
package/dist/web/index.js CHANGED
@@ -1218,7 +1218,7 @@ function StatusBadge({ status, className }) {
1218
1218
  className
1219
1219
  ),
1220
1220
  children: [
1221
- /* @__PURE__ */ jsx16("span", { className: "material-symbols-outlined text-icon-sm", children: icon }),
1221
+ /* @__PURE__ */ jsx16(Icon, { name: icon, className: "text-icon-sm" }),
1222
1222
  /* @__PURE__ */ jsx16("span", { children: label })
1223
1223
  ]
1224
1224
  }
@@ -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,8 +3466,8 @@ 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,
@@ -4840,7 +4842,7 @@ function ActivityDetailRow({
4840
4842
  },
4841
4843
  className: "-my-1 rounded-md p-1 text-white/30 transition-colors hover:bg-accent hover:text-primary active:scale-95",
4842
4844
  title: fullValue ? `Copy: ${fullValue}` : "Copy",
4843
- children: /* @__PURE__ */ jsx46("span", { className: "material-symbols-outlined", style: { fontSize: "14px" }, children: isCopied ? "check" : "content_copy" })
4845
+ children: /* @__PURE__ */ jsx46(Icon, { name: isCopied ? "check" : "content_copy", style: { fontSize: "14px" } })
4844
4846
  }
4845
4847
  )
4846
4848
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.118",
3
+ "version": "0.1.120",
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",
@@ -38,7 +38,8 @@
38
38
  "scripts": {
39
39
  "generate:css": "node node_modules/tsx/dist/cli.mjs scripts/generate-css.ts",
40
40
  "check:tokens": "node node_modules/tsx/dist/cli.mjs scripts/check-tokens.ts",
41
- "build": "npm run generate:css && npm run check:tokens && tsup && mkdir -p dist/css && cp src/css/kaleido-ui.css dist/css/kaleido-ui.css && mkdir -p dist/native/fonts && cp src/native/fonts/*.ttf dist/native/fonts/",
41
+ "check:design-doc": "node node_modules/tsx/dist/cli.mjs scripts/check-design-doc.ts",
42
+ "build": "npm run generate:css && npm run check:tokens && npm run check:design-doc && tsup && mkdir -p dist/css && cp src/css/kaleido-ui.css dist/css/kaleido-ui.css && mkdir -p dist/native/fonts && cp src/native/fonts/*.ttf dist/native/fonts/",
42
43
  "dev": "tsup --watch",
43
44
  "showcase": "vite --config showcase/vite.config.ts",
44
45
  "showcase:build": "npm run generate:css && vite build --config showcase/vite.config.ts",