react-candlesticks 0.0.7 → 0.0.9

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/react-candlesticks)](https://www.npmjs.com/package/react-candlesticks)
4
4
  [![license](https://img.shields.io/npm/l/react-candlesticks)](./LICENSE)
5
- ![bundle size](https://badgen.net/bundlejs/minzip/react-candlesticks)
5
+ ![bundle size](https://img.shields.io/bundlephobia/minzip/react-candlesticks)
6
6
  [![types included](https://img.shields.io/badge/types-included-3178C6?logo=typescript&logoColor=white)](https://www.npmjs.com/package/react-candlesticks)
7
7
  [![react 18%2B](https://img.shields.io/badge/react-18%2B-61DAFB?logo=react&logoColor=white)](https://react.dev/)
8
8
  [![docs](https://img.shields.io/badge/docs-reactcandlesticks.com-0A66C2)](https://docs.reactcandlesticks.com/)
@@ -7,6 +7,7 @@ import { Granularity } from '../../domain/types/Granularity';
7
7
  import { GridConfig } from '../../config/chart/grid/GridConfig';
8
8
  import { CrosshairsConfig } from '../../config/chart/crosshairs/CrosshairsConfig';
9
9
  import { XAxisConfig } from '../../config/chart/xAxis/XAxisConfig';
10
+ import { BordersConfig } from '../../config/chart/borders/BordersConfig';
10
11
  interface ChartPropsBase extends Omit<HTMLAttributes<HTMLDivElement>, 'onScroll'> {
11
12
  width?: number | 'auto';
12
13
  height?: number | 'auto';
@@ -16,6 +17,7 @@ interface ChartPropsBase extends Omit<HTMLAttributes<HTMLDivElement>, 'onScroll'
16
17
  xAxis?: false | XAxisConfig;
17
18
  grid?: false | GridConfig;
18
19
  crosshairs?: false | CrosshairsConfig;
20
+ borders?: false | BordersConfig;
19
21
  theme?: Theme | ThemeName;
20
22
  data: DataPoint[];
21
23
  scrollToLatestMargin?: number;
@@ -33,5 +35,5 @@ interface PanelsAsChildrenChartProps extends ChartPropsBase {
33
35
  }
34
36
  type PanelsProps = PanelsAsPropChartProps | PanelsAsChildrenChartProps;
35
37
  export type ChartProps = ChartPropsBase & PanelsProps;
36
- declare const _default: import('react').MemoExoticComponent<({ width, height, intervalWidthPx, granularity, backgroundColor, xAxis, grid, crosshairs, theme, panels, data, scrollToLatestMargin, initialScrollToLatest, onScroll, onZoom, children, ...props }: ChartProps) => JSX.Element>;
38
+ declare const _default: import('react').MemoExoticComponent<({ width, height, intervalWidthPx, granularity, backgroundColor, xAxis, grid, crosshairs, borders, theme, panels, data, scrollToLatestMargin, initialScrollToLatest, onScroll, onZoom, children, ...props }: ChartProps) => JSX.Element>;
37
39
  export default _default;