@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.
Files changed (57) hide show
  1. package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
  2. package/dist/cjs/components/buttons/copy-button/copy-button.cjs +1 -1
  3. package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
  4. package/dist/cjs/components/graph/graph.cjs +1 -1
  5. package/dist/cjs/components/index.cjs +1 -1
  6. package/dist/cjs/components/layout/app-logo/app-logo.cjs +1 -1
  7. package/dist/cjs/components/layout/footer/footer.cjs +1 -1
  8. package/dist/cjs/components/liquidation/liquidation-assets-table/liquidation-assets-table.cjs +1 -1
  9. package/dist/cjs/components/liquidation/liquidation-graph/liquidation-graph.cjs +1 -1
  10. package/dist/cjs/components/next/index.cjs +1 -1
  11. package/dist/cjs/components/next/token-icon.cjs +1 -1
  12. package/dist/cjs/components/page-title/page-title.cjs +1 -1
  13. package/dist/cjs/components/select/select.cjs +1 -1
  14. package/dist/cjs/components/tab-control/tab-control.cjs +1 -1
  15. package/dist/cjs/components/table/grid-error-line.cjs +1 -1
  16. package/dist/cjs/components/token-icon/index.cjs +1 -1
  17. package/dist/cjs/components/token-icon/token-icon.cjs +1 -10
  18. package/dist/cjs/components/typed-intl/index.cjs +1 -1
  19. package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
  20. package/dist/cjs/index.cjs +1 -1
  21. package/dist/cjs/utils/format-number.cjs +1 -1
  22. package/dist/esm/components/block-sync/block-sync.js +61 -54
  23. package/dist/esm/components/buttons/copy-button/copy-button.js +60 -27
  24. package/dist/esm/components/detailed-page-title/detailed-page-title.js +60 -37
  25. package/dist/esm/components/graph/graph.js +260 -301
  26. package/dist/esm/components/index.js +55 -54
  27. package/dist/esm/components/layout/app-logo/app-logo.js +4 -4
  28. package/dist/esm/components/layout/footer/footer.js +45 -44
  29. package/dist/esm/components/layout/legal-disclaimer/legal-disclaimer.js +4 -1
  30. package/dist/esm/components/liquidation/liquidation-assets-table/liquidation-assets-table.js +24 -18
  31. package/dist/esm/components/liquidation/liquidation-graph/liquidation-graph.js +114 -100
  32. package/dist/esm/components/next/index.js +10 -8
  33. package/dist/esm/components/next/token-icon.js +4 -5
  34. package/dist/esm/components/page-title/page-title.js +1 -1
  35. package/dist/esm/components/select/select.js +7 -7
  36. package/dist/esm/components/tab-control/tab-control.js +24 -24
  37. package/dist/esm/components/table/grid-error-line.js +1 -1
  38. package/dist/esm/components/token-icon/index.js +3 -2
  39. package/dist/esm/components/token-icon/token-icon.js +42 -75
  40. package/dist/esm/components/typed-intl/index.js +13 -11
  41. package/dist/esm/components/with-copy/with-copy.js +52 -29
  42. package/dist/esm/index.js +169 -168
  43. package/dist/esm/utils/format-number.js +24 -21
  44. package/dist/globals.css +1 -1
  45. package/dist/types/components/buttons/copy-button/copy-button.d.ts +3 -2
  46. package/dist/types/components/detailed-page-title/detailed-page-title.d.ts +0 -1
  47. package/dist/types/components/layout/footer/footer.d.ts +2 -1
  48. package/dist/types/components/layout/legal-disclaimer/legal-disclaimer.d.ts +1 -1
  49. package/dist/types/components/liquidation/liquidation-assets-table/liquidation-assets-table.d.ts +1 -1
  50. package/dist/types/components/next/index.d.ts +1 -0
  51. package/dist/types/components/next/token-icon.d.ts +2 -2
  52. package/dist/types/components/token-icon/index.d.ts +1 -1
  53. package/dist/types/components/token-icon/token-icon.d.ts +15 -3
  54. package/dist/types/components/typed-intl/index.d.ts +2 -1
  55. package/dist/types/components/with-copy/with-copy.d.ts +3 -3
  56. package/dist/types/utils/format-number.d.ts +0 -11
  57. 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, successMessage, iconSize, icon, className, buttonClassName, }: PropsWithChildren<WithCopyProps>): React.ReactElement;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/permissionless-ui",
3
- "version": "1.15.2",
3
+ "version": "1.15.4",
4
4
  "description": "Internal UI components",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/index.js",