@gearbox-protocol/permissionless-ui 1.22.0-next.26 → 1.22.0-next.28
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/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/help-center-container/help-center-container.cjs +1 -1
- package/dist/cjs/components/input/input.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/bn-to-input-view.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -1
- package/dist/cjs/utils/parse-input-to-bn.cjs +1 -1
- package/dist/esm/components/block-sync/block-sync.js +162 -52
- package/dist/esm/components/help-center-container/help-center-container.js +41 -51
- package/dist/esm/components/input/input.js +127 -39
- package/dist/esm/index.js +278 -277
- package/dist/esm/utils/bn-to-input-view.js +14 -14
- package/dist/esm/utils/index.js +70 -69
- package/dist/esm/utils/parse-input-to-bn.js +108 -17
- package/dist/globals.css +1 -1
- package/dist/types/components/input/input.d.ts +9 -3
- package/dist/types/types/footer.d.ts +1 -1
- package/dist/types/utils/parse-input-to-bn.d.ts +14 -16
- package/package.json +1 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
export declare function parseInputToBN(input: string | undefined | null, decimals: number, allowNegative?: boolean): [bigint | null, string | null];
|
|
1
|
+
export declare function isPositiveFloat(val: string): boolean;
|
|
2
|
+
export type ParseOutput = [bigint | null, string | null];
|
|
3
|
+
export declare const parseInputToBN: (input: string, decimals: number, allowNegative?: boolean) => ParseOutput;
|
|
4
|
+
export interface SmallNumberParseResult {
|
|
5
|
+
integer: string;
|
|
6
|
+
repeat: number;
|
|
7
|
+
decimal: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export type ParseSmallNumberResult = SmallNumberParseResult | {
|
|
10
|
+
originalValue: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function parseSmallNumber(numStr: string): ParseSmallNumberResult;
|
|
13
|
+
export declare function bnToPrettyView(number: bigint | undefined | string | number, decimals: number, precision?: number, allowNegative?: boolean): ParseSmallNumberResult;
|
|
14
|
+
export declare function bnToLiquidationPriceView(number: bigint, precision?: number): ParseSmallNumberResult;
|