@hyperbridge/ui 0.0.15 → 0.0.17

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/index.d.mts CHANGED
@@ -653,9 +653,9 @@ declare function AssetValueTrend(props: {
653
653
  dollarValue: number;
654
654
  }): react_jsx_runtime.JSX.Element;
655
655
  declare function Balance(props: {
656
+ amount: number;
656
657
  prefix?: string;
657
658
  suffix?: string;
658
- amount: number;
659
659
  formatter?: Intl.NumberFormat;
660
660
  }): react_jsx_runtime.JSX.Element;
661
661
 
package/dist/index.mjs CHANGED
@@ -3174,11 +3174,11 @@ var Route = makeEntry({
3174
3174
  name: "Route"
3175
3175
  });
3176
3176
  var Rate = makeEntry({
3177
- icon: ({ size }) => /* @__PURE__ */ jsx33(Percent_default, { width: size }),
3177
+ icon: ({ size }) => /* @__PURE__ */ jsx33(ArrowBottomTop_default, { width: size }),
3178
3178
  name: "Rate"
3179
3179
  });
3180
3180
  var Fee = makeEntry({
3181
- icon: ({ size }) => /* @__PURE__ */ jsx33(ArrowBottomTop_default, { width: size }),
3181
+ icon: ({ size }) => /* @__PURE__ */ jsx33(Gas_default, { width: size }),
3182
3182
  name: "Fee"
3183
3183
  });
3184
3184
  var ETA = makeEntry({
@@ -3849,9 +3849,8 @@ var currencyFormat = new Intl.NumberFormat("en-US", {
3849
3849
  });
3850
3850
  function Balance(props) {
3851
3851
  const { prefix = "$", suffix = "", formatter = currencyFormat } = props;
3852
- const [int_, decimal] = String(props.amount).split(".");
3853
- const int = Number.isNaN(+int_) ? 0 : int_;
3854
3852
  const is_zero = props.amount === 0;
3853
+ const [int_, fraction] = formatter.format(props.amount).split(".");
3855
3854
  return /* @__PURE__ */ jsx40("div", { className: "select-none", children: /* @__PURE__ */ jsxs28("span", { className: "text-[2.375rem] font-medium leading-[2.875rem] whitespace-nowrap", children: [
3856
3855
  /* @__PURE__ */ jsxs28(
3857
3856
  "span",
@@ -3861,13 +3860,13 @@ function Balance(props) {
3861
3860
  ),
3862
3861
  children: [
3863
3862
  prefix,
3864
- formatter.format(+int)
3863
+ int_
3865
3864
  ]
3866
3865
  }
3867
3866
  ),
3868
3867
  /* @__PURE__ */ jsxs28("span", { className: "text-brand-black-100", children: [
3869
3868
  ".",
3870
- decimal != null ? decimal : "00"
3869
+ fraction != null ? fraction : "00"
3871
3870
  ] }),
3872
3871
  /* @__PURE__ */ jsxs28("span", { className: "text-brand-white-500", children: [
3873
3872
  "\xA0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperbridge/ui",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "sideEffects": false,
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -33,8 +33,8 @@
33
33
  "typescript": "5.8.3",
34
34
  "vite": "^6.3.4",
35
35
  "vitest": "^3.1.2",
36
- "@repo/typescript-config": "0.0.0",
37
- "@repo/eslint-config": "0.0.0"
36
+ "@repo/eslint-config": "0.0.0",
37
+ "@repo/typescript-config": "0.0.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "@radix-ui/react-dialog": "^1.1.14",