@xdcs-protocol/ui-kit 1.2.3 → 1.4.0

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.
@@ -0,0 +1,10 @@
1
+ export interface NewTanstacktableProps {
2
+ title?: string;
3
+ data: any[];
4
+ columns: any;
5
+ rowSize?: number;
6
+ showSearchField?: boolean;
7
+ showCardFooter?: boolean;
8
+ }
9
+ declare const PrFiNewTanstacktable: ({ title, data, columns, rowSize, showSearchField, showCardFooter, }: NewTanstacktableProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default PrFiNewTanstacktable;
@@ -2,6 +2,8 @@ export default function useRightPanel(): {
2
2
  xdcSupply: string | null;
3
3
  xdcSupplyRaw: number | null;
4
4
  tvlUSD: string | null;
5
+ prfiSupply: string | null;
6
+ prfiSupplyRaw: number | null;
5
7
  apys: {
6
8
  LSD_APY?: string;
7
9
  ANCHOR_APY?: string;
@@ -9,5 +11,6 @@ export default function useRightPanel(): {
9
11
  PRIVATE_APY?: string;
10
12
  PRFI_LIQUID_APY?: string;
11
13
  XDC_TO_USD_RATE?: string;
14
+ PRFI_TO_USD_RATE?: string;
12
15
  };
13
16
  };
@@ -1,6 +1,7 @@
1
1
  import LeftPanel from "./components/LeftPanel";
2
2
  import MainLayout from "./components/MainLayout";
3
3
  import NewTanstacktable from "./components/NewTanstacktable";
4
+ import PrFiNewTanstacktable from "./components/PrFiNewTanstacktable";
4
5
  import ThemeToggle from "./components/ToggleTheme";
5
6
  import Header from "./components/Header";
6
7
  export { LeftPanel };
@@ -11,6 +12,7 @@ export type { WalletStoreState } from "./types/WalletStore";
11
12
  export { WalletStoreContext, useWalletStore } from "./hooks/useWalletContext";
12
13
  export { textStyles } from "./theme";
13
14
  export { NewTanstacktable };
15
+ export { PrFiNewTanstacktable };
14
16
  export { CardFooter } from "./components/base/CardFooter";
15
17
  export { CardHeader } from "./components/base/CardHeader";
16
18
  export { DefiCard } from "./components/DefiCard";
@@ -38,6 +38,7 @@ export interface WalletStoreState {
38
38
  };
39
39
  docsUrl?: string;
40
40
  validBackendUrl: string;
41
+ prfiBackendUrl: string;
41
42
  validGraphqlUrl: string;
42
43
  isSupported: boolean;
43
44
  appType: AppType;
@@ -5,5 +5,6 @@ export declare const AppTypeEnum: {
5
5
  readonly Private: "Private";
6
6
  readonly Native: "Native";
7
7
  readonly PrFi: "PrFi";
8
+ readonly DeFi: "DeFi";
8
9
  };
9
10
  export type AppType = (typeof AppTypeEnum)[keyof typeof AppTypeEnum];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdcs-protocol/ui-kit",
3
- "version": "1.2.3",
3
+ "version": "1.4.0",
4
4
  "description": "Common React components library.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",