@xdcs-protocol/ui-kit 1.0.3 → 1.1.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.
- package/dist/index.cjs.js +34 -44
- package/dist/index.es.js +5131 -4697
- package/dist/types/components/DefiCard.d.ts +1 -0
- package/dist/types/components/StyledSlider.d.ts +1 -1
- package/dist/types/components/base/CardHeader.d.ts +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/types/WalletStore.d.ts +3 -0
- package/dist/types/types/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DefiCard(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const StyledSlider: import("@emotion/styled").StyledComponent<import("@mui/material").SliderOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "components" | "disabled" | "className" | "style" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "size" | "name" | "value" | "slots" | "slotProps" | "orientation" | "max" | "min" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "
|
|
1
|
+
declare const StyledSlider: import("@emotion/styled").StyledComponent<import("@mui/material").SliderOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "components" | "disabled" | "className" | "style" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "step" | "size" | "name" | "value" | "slots" | "slotProps" | "orientation" | "max" | "min" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
2
2
|
export default StyledSlider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CardHeader: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,3 +9,8 @@ export type { WalletStoreState } from "./types/WalletStore";
|
|
|
9
9
|
export { WalletStoreContext, useWalletStore } from "./hooks/useWalletContext";
|
|
10
10
|
export { textStyles } from "./theme";
|
|
11
11
|
export { NewTanstacktable };
|
|
12
|
+
export { CardFooter } from "./components/base/CardFooter";
|
|
13
|
+
export { CardHeader } from "./components/base/CardHeader";
|
|
14
|
+
export { DefiCard } from "./components/DefiCard";
|
|
15
|
+
export type { AppType } from "./types/index";
|
|
16
|
+
export { AppTypeEnum } from "./types/index";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AppType } from "../types/index";
|
|
1
2
|
export interface WalletStoreState {
|
|
2
3
|
account: string;
|
|
3
4
|
balance: number;
|
|
@@ -39,6 +40,7 @@ export interface WalletStoreState {
|
|
|
39
40
|
validBackendUrl: string;
|
|
40
41
|
validGraphqlUrl: string;
|
|
41
42
|
isSupported: boolean;
|
|
43
|
+
appType: AppType;
|
|
42
44
|
onConnect: () => Promise<void>;
|
|
43
45
|
onDisconnect: () => Promise<void>;
|
|
44
46
|
setWalletData: (wallet: any, account: string, isSupported: boolean, balance?: number, logoUrl?: string) => void;
|
|
@@ -47,6 +49,7 @@ export interface WalletStoreState {
|
|
|
47
49
|
setAccount?: (account: string) => void;
|
|
48
50
|
menuItems: ThreeDotsMenuItem[];
|
|
49
51
|
setMenuItems: (items: ThreeDotsMenuItem[]) => void;
|
|
52
|
+
setAppType: (appTypeValue: AppType) => void;
|
|
50
53
|
}
|
|
51
54
|
export interface ThreeDotsMenuItem {
|
|
52
55
|
title: string;
|
|
@@ -1 +1,9 @@
|
|
|
1
1
|
export type Address = `0x${string}`;
|
|
2
|
+
export declare const AppTypeEnum: {
|
|
3
|
+
readonly LSD: "LSD";
|
|
4
|
+
readonly Anchor: "Anchor";
|
|
5
|
+
readonly Private: "Private";
|
|
6
|
+
readonly Native: "Native";
|
|
7
|
+
readonly PrFi: "PrFi";
|
|
8
|
+
};
|
|
9
|
+
export type AppType = (typeof AppTypeEnum)[keyof typeof AppTypeEnum];
|