@gearbox-protocol/ui-kit 3.14.0-next.38 → 3.14.0-next.39

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.
@@ -89,6 +89,14 @@ export declare function getVerticalLineTooltipContent(opts: VerticalLineOptions,
89
89
  labelText: string;
90
90
  valueStr: string;
91
91
  };
92
+ /** Minimum px from chart edge before flipping label away from that edge. */
93
+ export declare const VERTICAL_LINE_LABEL_EDGE_PADDING = 40;
94
+ /**
95
+ * Positions a vertical-line badge so it stays inside the chart:
96
+ * right of the line near the left edge, left of the line near the right edge,
97
+ * centered otherwise.
98
+ */
99
+ export declare function getVerticalLineLabelStyle(x: number, containerWidth: number): Pick<React.CSSProperties, "left" | "transform">;
92
100
  /**
93
101
  * Step-forward interpolation: find the last data point with
94
102
  * `time <= crosshairTime` and return its value.
@@ -1,6 +1,6 @@
1
1
  export * from './default-config';
2
2
  export { getXFormatter, getXFormatters, getYFormatter, type Point as GraphPoint, type XFormatters, type XMeasureUnits, type YMeasureUnits, } from './formatters';
3
- export { DEFAULT_SERIES_COLORS, Graph, GraphLegend, type GraphLegendProps, type GraphProps, getSeriesColorPalette, getVerticalLineTooltipContent, type PriceLineConfig, type PriceZoneConfig, type SeriesColorPalette, type SeriesConfig, type VerticalLineOptions, } from './graph';
3
+ export { DEFAULT_SERIES_COLORS, Graph, GraphLegend, type GraphLegendProps, type GraphProps, getSeriesColorPalette, getVerticalLineLabelStyle, getVerticalLineTooltipContent, type PriceLineConfig, type PriceZoneConfig, type SeriesColorPalette, type SeriesConfig, type VerticalLineOptions, } from './graph';
4
4
  export * from './graph-current-value';
5
5
  export * from './graph-tooltip';
6
6
  export * from './graph-view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/ui-kit",
3
- "version": "3.14.0-next.38",
3
+ "version": "3.14.0-next.39",
4
4
  "description": "Internal UI components",
5
5
  "repository": {
6
6
  "type": "git",