@spicenet-io/spiceflow-ui 1.11.13 → 1.12.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/components/SpiceLockModal/LockSubComponents.d.ts +42 -0
- package/dist/components/SpiceLockModal/SpiceLockModal.d.ts +3 -0
- package/dist/components/SpiceLockModal/index.d.ts +1 -0
- package/dist/components/common/SpiceModalShell.d.ts +2 -0
- package/dist/index.cjs.js +55 -18
- package/dist/index.d.ts +4 -0
- package/dist/index.js +55 -18
- package/dist/providers/SpiceFlowProvider.d.ts +3 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/types/configs.d.ts +1 -0
- package/dist/types/lock.d.ts +26 -0
- package/dist/utils/chains/index.d.ts +41 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SpiceLockModalProps } from "../../types/lock";
|
|
3
|
+
export interface LockDurationSliderProps {
|
|
4
|
+
options: SpiceLockModalProps["durationOptions"];
|
|
5
|
+
selectedIndex: number;
|
|
6
|
+
onSelect: (index: number) => void;
|
|
7
|
+
primaryColor: string;
|
|
8
|
+
dark?: boolean;
|
|
9
|
+
textPrimary?: string;
|
|
10
|
+
textSecondary?: string;
|
|
11
|
+
trackColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const LockDurationSlider: React.FC<LockDurationSliderProps>;
|
|
14
|
+
export interface VotingPowerRowProps {
|
|
15
|
+
votes: number | undefined;
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
dark?: boolean;
|
|
18
|
+
textPrimary?: string;
|
|
19
|
+
textSecondary?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const VotingPowerRow: React.FC<VotingPowerRowProps>;
|
|
22
|
+
export interface LockConfirmationData {
|
|
23
|
+
sourceNetwork: string;
|
|
24
|
+
depositedAmount: string;
|
|
25
|
+
depositedSymbol: string;
|
|
26
|
+
reppoReceived: string;
|
|
27
|
+
reppoSymbol: string;
|
|
28
|
+
txHash?: string;
|
|
29
|
+
explorerUrl?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface LockConfirmationPanelProps {
|
|
32
|
+
isOpen: boolean;
|
|
33
|
+
data: LockConfirmationData | null;
|
|
34
|
+
isLocking: boolean;
|
|
35
|
+
lockError: string | null;
|
|
36
|
+
onContinue: () => void;
|
|
37
|
+
onClose: () => void;
|
|
38
|
+
primaryColor: string;
|
|
39
|
+
fontFamily: string;
|
|
40
|
+
dark?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const LockConfirmationPanel: React.FC<LockConfirmationPanelProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SpiceLockModal } from "./SpiceLockModal";
|