@gearbox-protocol/permissionless-ui 1.15.2 → 1.15.4
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/buttons/copy-button/copy-button.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/graph/graph.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/layout/app-logo/app-logo.cjs +1 -1
- package/dist/cjs/components/layout/footer/footer.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-assets-table/liquidation-assets-table.cjs +1 -1
- package/dist/cjs/components/liquidation/liquidation-graph/liquidation-graph.cjs +1 -1
- package/dist/cjs/components/next/index.cjs +1 -1
- package/dist/cjs/components/next/token-icon.cjs +1 -1
- package/dist/cjs/components/page-title/page-title.cjs +1 -1
- package/dist/cjs/components/select/select.cjs +1 -1
- package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
- package/dist/cjs/components/table/grid-error-line.cjs +1 -1
- package/dist/cjs/components/token-icon/index.cjs +1 -1
- package/dist/cjs/components/token-icon/token-icon.cjs +1 -10
- package/dist/cjs/components/typed-intl/index.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/utils/format-number.cjs +1 -1
- package/dist/esm/components/block-sync/block-sync.js +61 -54
- package/dist/esm/components/buttons/copy-button/copy-button.js +60 -27
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +60 -37
- package/dist/esm/components/graph/graph.js +260 -301
- package/dist/esm/components/index.js +55 -54
- package/dist/esm/components/layout/app-logo/app-logo.js +4 -4
- package/dist/esm/components/layout/footer/footer.js +45 -44
- package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +4 -1
- package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +24 -18
- package/dist/esm/components/liquidation/liquidation-graph/liquidation-graph.js +114 -100
- package/dist/esm/components/next/index.js +10 -8
- package/dist/esm/components/next/token-icon.js +4 -5
- package/dist/esm/components/page-title/page-title.js +1 -1
- package/dist/esm/components/select/select.js +7 -7
- package/dist/esm/components/tab-control/tab-control.js +24 -24
- package/dist/esm/components/table/grid-error-line.js +1 -1
- package/dist/esm/components/token-icon/index.js +3 -2
- package/dist/esm/components/token-icon/token-icon.js +42 -75
- package/dist/esm/components/typed-intl/index.js +13 -11
- package/dist/esm/components/with-copy/with-copy.js +52 -29
- package/dist/esm/index.js +169 -168
- package/dist/esm/utils/format-number.js +24 -21
- package/dist/globals.css +1 -1
- package/dist/types/components/buttons/copy-button/copy-button.d.ts +3 -2
- package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +0 -1
- package/dist/types/components/layout/footer/footer.d.ts +2 -1
- package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +1 -1
- package/dist/types/components/liquidation/liquidation-assets-table/liquidation-assets-table.d.ts +1 -1
- package/dist/types/components/next/index.d.ts +1 -0
- package/dist/types/components/next/token-icon.d.ts +2 -2
- package/dist/types/components/token-icon/index.d.ts +1 -1
- package/dist/types/components/token-icon/token-icon.d.ts +15 -3
- package/dist/types/components/typed-intl/index.d.ts +2 -1
- package/dist/types/components/with-copy/with-copy.d.ts +3 -3
- package/dist/types/utils/format-number.d.ts +0 -11
- package/package.json +1 -1
|
@@ -5,8 +5,6 @@ export interface WithCopyProps {
|
|
|
5
5
|
toCopy: string;
|
|
6
6
|
/** Callback after successful copy */
|
|
7
7
|
onCopySuccess?: () => void;
|
|
8
|
-
/** Custom success message */
|
|
9
|
-
successMessage?: string;
|
|
10
8
|
/** Icon size in pixels */
|
|
11
9
|
iconSize?: number;
|
|
12
10
|
/** Custom icon element */
|
|
@@ -15,6 +13,8 @@ export interface WithCopyProps {
|
|
|
15
13
|
className?: string;
|
|
16
14
|
/** Additional className for the button */
|
|
17
15
|
buttonClassName?: string;
|
|
16
|
+
/** Duration to show success checkmark in ms (default: 1500) */
|
|
17
|
+
successDuration?: number;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* WithCopy — wraps content with a copy-to-clipboard button
|
|
@@ -26,4 +26,4 @@ export interface WithCopyProps {
|
|
|
26
26
|
* </WithCopy>
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export declare function WithCopy({ toCopy, children, onCopySuccess,
|
|
29
|
+
export declare function WithCopy({ toCopy, children, onCopySuccess, iconSize, icon, className, buttonClassName, successDuration, }: PropsWithChildren<WithCopyProps>): React.ReactElement;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Determines the appropriate number of decimal places based on the scaled value.
|
|
7
7
|
* If the value is small (< 10), we need more precision to distinguish between values.
|
|
8
|
-
* Uses 2 decimals for small values to avoid duplicate labels on chart Y-axis.
|
|
9
8
|
*/
|
|
10
9
|
export declare function getAdaptiveDecimals(scaledValue: number): number;
|
|
11
10
|
export interface FormatNumberOptions {
|
|
@@ -20,16 +19,6 @@ export interface FormatNumberOptions {
|
|
|
20
19
|
/** Automatically determine decimals based on magnitude */
|
|
21
20
|
adaptiveDecimals?: boolean;
|
|
22
21
|
}
|
|
23
|
-
/**
|
|
24
|
-
* Format a number with proper abbreviations (K, M, B)
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* formatNumberWithSuffix(1500000, { format: "short" }) // "1.5M"
|
|
29
|
-
* formatNumberWithSuffix(2500, { format: "short" }) // "2.5K"
|
|
30
|
-
* formatNumberWithSuffix(500000000, { format: "short", adaptiveDecimals: true }) // "0.50B"
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
22
|
export declare function formatNumberWithSuffix(amount: number, options?: FormatNumberOptions): string;
|
|
34
23
|
/**
|
|
35
24
|
* Convert a number to significant digits string
|