@kubit-ui-web/react-charts 0.1.0 → 1.0.0

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 (54) hide show
  1. package/README.md +29 -36
  2. package/dist/types/charts/barChart/barChart.d.ts +5 -5
  3. package/dist/types/charts/barChart/barChart.type.d.ts +1 -1
  4. package/dist/types/charts/barChart/context/barChartContext.d.ts +1 -1
  5. package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +1 -1
  6. package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +1 -1
  7. package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +1 -1
  8. package/dist/types/charts/lineChart/context/lineChartContext.d.ts +1 -1
  9. package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +1 -1
  10. package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +1 -1
  11. package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +1 -1
  12. package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +1 -1
  13. package/dist/types/charts/lineChart/lineChart.d.ts +5 -5
  14. package/dist/types/charts/lineChart/lineChart.type.d.ts +1 -1
  15. package/dist/types/charts/lineChart/lineChartStructure.d.ts +1 -1
  16. package/dist/types/charts/pieChart/context/pieChartContext.d.ts +1 -1
  17. package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +1 -1
  18. package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +1 -1
  19. package/dist/types/charts/pieChart/pieChart.d.ts +3 -3
  20. package/dist/types/charts/pieChart/pieChart.type.d.ts +1 -1
  21. package/dist/types/charts/pieChart/pieChartStructure.d.ts +1 -1
  22. package/dist/types/components/axisChart/xAxis/xAxis.d.ts +1 -1
  23. package/dist/types/components/axisChart/yAxis/yAxis.d.ts +1 -1
  24. package/dist/types/components/bar/bar.d.ts +1 -1
  25. package/dist/types/components/bar/fragments/barChartSegment.d.ts +1 -1
  26. package/dist/types/components/chartText/chartText.d.ts +1 -1
  27. package/dist/types/components/foreignObject/foreignObject.d.ts +1 -1
  28. package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -1
  29. package/dist/types/components/line/line.d.ts +1 -1
  30. package/dist/types/components/node/components/circle/circle.d.ts +1 -1
  31. package/dist/types/components/node/components/hexagon/hexagon.d.ts +1 -1
  32. package/dist/types/components/node/components/pentagon/pentagon.d.ts +1 -1
  33. package/dist/types/components/node/components/square/square.d.ts +1 -1
  34. package/dist/types/components/node/components/star/star.d.ts +1 -1
  35. package/dist/types/components/node/components/straight/straight.d.ts +1 -1
  36. package/dist/types/components/node/components/triangle/triangle.d.ts +1 -1
  37. package/dist/types/components/node/node.d.ts +1 -1
  38. package/dist/types/components/path/components/nodePath/nodePath.d.ts +2 -2
  39. package/dist/types/components/path/path.d.ts +1 -1
  40. package/dist/types/components/path/path.types.d.ts +1 -1
  41. package/dist/types/components/plot/components/circle/circle.d.ts +1 -1
  42. package/dist/types/components/plot/components/square/square.d.ts +1 -1
  43. package/dist/types/components/plot/components/triangle/triangle.d.ts +1 -1
  44. package/dist/types/components/plot/plot.d.ts +1 -1
  45. package/dist/types/components/svgContainer/svgContainer.d.ts +1 -1
  46. package/dist/types/components/tick/tick.d.ts +1 -1
  47. package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -1
  48. package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -1
  49. package/dist/types/components/zoomArea/components/SelectionArea.d.ts +1 -1
  50. package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +1 -1
  51. package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -1
  52. package/dist/types/hooks/useHover/useHover.types.d.ts +1 -1
  53. package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -1
  54. package/package.json +14 -15
package/README.md CHANGED
@@ -1,7 +1,12 @@
1
1
  # Kubit React Charts
2
2
 
3
3
  <p align="center">
4
- <img src="./assets/readme_logo.png" alt="Kubito" width="120" height="120" />
4
+ <a href="https://kubit-ui.com">
5
+ <picture>
6
+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/kubit-ui/kubit-react-charts/raw/cms/assets/readme_logo.png">
7
+ <img src="hhttps://github.com/kubit-ui/kubit-react-charts/raw/cms/assets/readme_logo.png" width="70%">
8
+ </picture>
9
+ </a>
5
10
  </p>
6
11
 
7
12
  <p align="center">
@@ -10,9 +15,10 @@
10
15
  </p>
11
16
 
12
17
  <p align="center">
18
+ <img src="https://img.shields.io/npm/v/@kubit-ui-web/react-charts" alt="Version" />
13
19
  <img src="https://img.shields.io/badge/React-18.3.1-blue?logo=react" alt="React version" />
14
20
  <img src="https://img.shields.io/badge/TypeScript-5.9.2-blue?logo=typescript" alt="TypeScript version" />
15
- <img src="https://img.shields.io/badge/license-ISC-green" alt="License" />
21
+ <img src="https://img.shields.io/badge/license-Apache%202.0-blue" alt="License" />
16
22
  </p>
17
23
 
18
24
  ---
@@ -84,26 +90,24 @@ yarn add react react-dom
84
90
 
85
91
  ```typescript
86
92
  // Import complete charts
87
- import { BarChart, LineChart, PieChart } from "@kubit-ui-web/react-charts";
88
-
93
+ import { BarChart, LineChart, PieChart } from '@kubit-ui-web/react-charts';
89
94
  // Import specific components
90
- import { Plot, Path, Node } from "@kubit-ui-web/react-charts/components";
91
-
95
+ import { Node, Path, Plot } from '@kubit-ui-web/react-charts/components';
92
96
  // Import types
93
- import type { ChartData, BarOrientation } from "@kubit-ui-web/react-charts/types";
97
+ import type { BarOrientation, ChartData } from '@kubit-ui-web/react-charts/types';
94
98
  ```
95
99
 
96
100
  ### LineChart Example
97
101
 
98
102
  ```tsx
99
- import React from "react";
100
- import { LineChart } from "@kubit-ui-web/react-charts";
103
+ import { LineChart } from '@kubit-ui-web/react-charts';
104
+ import React from 'react';
101
105
 
102
106
  const data = [
103
- { year: "2020", sales: 100, profit: 20 },
104
- { year: "2021", sales: 150, profit: 35 },
105
- { year: "2022", sales: 180, profit: 45 },
106
- { year: "2023", sales: 200, profit: 60 },
107
+ { year: '2020', sales: 100, profit: 20 },
108
+ { year: '2021', sales: 150, profit: 35 },
109
+ { year: '2022', sales: 180, profit: 45 },
110
+ { year: '2023', sales: 200, profit: 60 },
107
111
  ];
108
112
 
109
113
  function MyLineChart() {
@@ -112,7 +116,7 @@ function MyLineChart() {
112
116
  <LineChart.Path dataKey="sales" stroke="#0078D4" strokeWidth={2} />
113
117
  <LineChart.Path dataKey="profit" stroke="#FF6B35" strokeWidth={2} />
114
118
  <LineChart.XAxis position="BOTTOM" showTickLines />
115
- <LineChart.YAxis position="LEFT" valueFormatter={(val) => `$${val}k`} />
119
+ <LineChart.YAxis position="LEFT" valueFormatter={val => `$${val}k`} />
116
120
  </LineChart>
117
121
  );
118
122
  }
@@ -121,14 +125,14 @@ function MyLineChart() {
121
125
  ### BarChart Example
122
126
 
123
127
  ```tsx
124
- import React from "react";
125
- import { BarChart, BarOrientation } from "@kubit-ui-web/react-charts";
128
+ import { BarChart, BarOrientation } from '@kubit-ui-web/react-charts';
129
+ import React from 'react';
126
130
 
127
131
  const data = [
128
- { category: "A", value: 30 },
129
- { category: "B", value: 45 },
130
- { category: "C", value: 25 },
131
- { category: "D", value: 60 },
132
+ { category: 'A', value: 30 },
133
+ { category: 'B', value: 45 },
134
+ { category: 'C', value: 25 },
135
+ { category: 'D', value: 60 },
132
136
  ];
133
137
 
134
138
  function MyBarChart() {
@@ -146,7 +150,7 @@ function MyBarChart() {
146
150
  dataIdx={0}
147
151
  barConfig={{
148
152
  barWidth: 40,
149
- singleConfig: [{ color: "#0078D4", coverage: 100 }],
153
+ singleConfig: [{ color: '#0078D4', coverage: 100 }],
150
154
  }}
151
155
  />
152
156
  <BarChart.XAxis position="BOTTOM" />
@@ -322,7 +326,7 @@ yarn test-storybook
322
326
  yarn eslint --fix
323
327
  ```
324
328
 
325
- ## Contributing Guidelines
329
+ ## Contributing
326
330
 
327
331
  ### Code Standards
328
332
 
@@ -333,18 +337,7 @@ yarn eslint --fix
333
337
 
334
338
  ### Contribution Workflow
335
339
 
336
- 1. Create a feature branch from `main`
337
- 2. Develop following project conventions
338
- 3. Write tests for new features
339
- 4. Run `yarn test` to verify
340
- 5. Create Pull Request
341
-
342
- ### Conventions
343
-
344
- - **Commits**: Use conventional commits
345
- - **Components**: Follow existing composition pattern
346
- - **Tests**: One test file per component
347
- - **Stories**: Document all use cases
340
+ See our [CONTRIBUTING](./CONTRIBUTING.md) for coding conventions, commit message guidelines, and pull request processes.
348
341
 
349
342
  ### Component Development Guidelines
350
343
 
@@ -359,10 +352,10 @@ Please refer to our [development instructions](./.github/copilot-instructions.md
359
352
 
360
353
  ## License
361
354
 
362
- This project is licensed under the ISC License.
355
+ This project is licensed under the Apache License 2.0 - see the [LICENSE](./LICENSE) file for details.
363
356
 
364
357
  ---
365
358
 
366
359
  <p align="center">
367
- Made with ❤️ by the <strong>Kubit</strong> team <img src="./assets/kubito.png" alt="Kubito" width="15" height="15" />
360
+ Made with ❤️ by the <strong>Kubit</strong> team <img src="https://github.com/kubit-ui/kubit-react-charts/raw/cms/assets/kubito.png" alt="Kubito" width="15" height="15" />
368
361
  </p>
@@ -1,8 +1,8 @@
1
- declare const BarChart: import('../../../node_modules/react').FC<import('./barChart.type').BarChartProps> & {
2
- Path: import('../../../node_modules/react').FC<import('./barChart.type').BarChartPathProps>;
3
- Separator: import('../../../node_modules/react').FC<import('./barChart.type').BarChartSeparatorProps>;
4
- XAxis: import('../../../node_modules/react').FC<import('./barChart.type').BarChartXAxisProps>;
5
- YAxis: import('../../../node_modules/react').FC<import('./barChart.type').BarChartYAxisProps>;
1
+ declare const BarChart: import('react').FC<import('./barChart.type').BarChartProps> & {
2
+ Path: import('react').FC<import('./barChart.type').BarChartPathProps>;
3
+ Separator: import('react').FC<import('./barChart.type').BarChartSeparatorProps>;
4
+ XAxis: import('react').FC<import('./barChart.type').BarChartXAxisProps>;
5
+ YAxis: import('react').FC<import('./barChart.type').BarChartYAxisProps>;
6
6
  };
7
7
  export { BarChart };
8
8
  export * from './barChart.type';
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode } from '../../../node_modules/react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import { XAxisProps } from '../../components/axisChart/xAxis/xAxis.types';
3
3
  import { YAxisProps } from '../../components/axisChart/yAxis/yAxis.types';
4
4
  import { BarChartStyles, BarOrientation } from '../../components/bar/bar.type';
@@ -1,3 +1,3 @@
1
1
  import { BarChartContextType } from '../barChart.type';
2
- export declare const BarChartContext: import('../../../../node_modules/react').Context<BarChartContextType>;
2
+ export declare const BarChartContext: import('react').Context<BarChartContextType>;
3
3
  //# sourceMappingURL=barChartContext.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { BarChartSeparatorProps } from '../barChart.type';
3
3
  export declare const BarChartSeparator: FC<BarChartSeparatorProps>;
4
4
  //# sourceMappingURL=barChartSeparator.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { BarChartXAxisProps } from '../barChart.type';
3
3
  export declare const BarChartXAxis: FC<BarChartXAxisProps>;
4
4
  //# sourceMappingURL=barChartXAxis.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { BarChartYAxisProps } from '../barChart.type';
3
3
  export declare const BarChartYAxis: FC<BarChartYAxisProps>;
4
4
  //# sourceMappingURL=barChartYAxis.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { LineChartContextType } from '../lineChart.type';
2
- export declare const LineChartContext: import('../../../../node_modules/react').Context<LineChartContextType>;
2
+ export declare const LineChartContext: import('react').Context<LineChartContextType>;
3
3
  //# sourceMappingURL=lineChartContext.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { LineChartPathProps } from '../lineChart.type';
3
3
  export declare const LineChartPath: FC<LineChartPathProps>;
4
4
  //# sourceMappingURL=lineChartPath.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { LineChartProjectionProps } from '../lineChart.type';
3
3
  export declare const LineChartProjection: FC<LineChartProjectionProps>;
4
4
  //# sourceMappingURL=lineChartProjection.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { LineChartSeparatorProps } from '../lineChart.type';
3
3
  export declare const LineChartSeparator: FC<LineChartSeparatorProps>;
4
4
  //# sourceMappingURL=lineChartSeparator.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { LineChartXAxisProps } from '../lineChart.type';
3
3
  export declare const LineChartXAxis: FC<LineChartXAxisProps>;
4
4
  //# sourceMappingURL=lineChartXAxis.d.ts.map
@@ -1,8 +1,8 @@
1
- declare const LineChart: import('../../../node_modules/react').FC<import('./lineChart.type').LineChartProps> & {
2
- Path: import('../../../node_modules/react').FC<import('./lineChart.type').LineChartPathProps>;
3
- Separator: import('../../../node_modules/react').FC<import('./lineChart.type').LineChartSeparatorProps>;
4
- XAxis: import('../../../node_modules/react').FC<import('./lineChart.type').LineChartXAxisProps>;
5
- YAxis: import('../../../node_modules/react').FC<import('./lineChart.type').LineChartYAxisProps>;
1
+ declare const LineChart: import('react').FC<import('./lineChart.type').LineChartProps> & {
2
+ Path: import('react').FC<import('./lineChart.type').LineChartPathProps>;
3
+ Separator: import('react').FC<import('./lineChart.type').LineChartSeparatorProps>;
4
+ XAxis: import('react').FC<import('./lineChart.type').LineChartXAxisProps>;
5
+ YAxis: import('react').FC<import('./lineChart.type').LineChartYAxisProps>;
6
6
  };
7
7
  export { LineChart };
8
8
  export * from './lineChart.type';
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode } from '../../../node_modules/react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import { XAxisProps } from '../../components/axisChart/xAxis/xAxis.types';
3
3
  import { YAxisProps } from '../../components/axisChart/yAxis/yAxis.types';
4
4
  import { LineProps } from '../../components/line/line.types';
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { LineChartProps } from './lineChart.type';
3
3
  /**
4
4
  * Renders a line chart component.
@@ -1,3 +1,3 @@
1
1
  import { PieChartContextType } from '../pieChart.type';
2
- export declare const PieChartContext: import('../../../../node_modules/react').Context<PieChartContextType>;
2
+ export declare const PieChartContext: import('react').Context<PieChartContextType>;
3
3
  //# sourceMappingURL=pieChartContext.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { ForeignObjectProps } from '../../../components/foreignObject/foreignObject.types';
3
3
  export declare const PieChartForeign: FC<ForeignObjectProps>;
4
4
  //# sourceMappingURL=pieChartForeign.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { PathProps } from '../../../components/path/path.types';
3
3
  /**
4
4
  * Renders the path for a pie chart.
@@ -1,6 +1,6 @@
1
- declare const PieChart: import('../../../node_modules/react').FC<import('./pieChart.type').PieChartProps> & {
2
- Foreign: import('../../../node_modules/react').FC<import('../..').ForeignObjectProps>;
3
- Path: import('../../../node_modules/react').FC<import('../..').PathProps>;
1
+ declare const PieChart: import('react').FC<import('./pieChart.type').PieChartProps> & {
2
+ Foreign: import('react').FC<import('../..').ForeignObjectProps>;
3
+ Path: import('react').FC<import('../..').PathProps>;
4
4
  };
5
5
  export { PieChart };
6
6
  export * from './pieChart.type';
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode } from '../../../node_modules/react';
1
+ import { ReactElement, ReactNode } from 'react';
2
2
  import { PathProps } from '../../components/path/path.types';
3
3
  import { CanvasConfig } from '../../types/canvas.type';
4
4
  interface Group {
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { PieChartProps } from './pieChart.type';
3
3
  /**
4
4
  * Renders a pie chart component.
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { XAxisProps } from './xAxis.types';
3
3
  /**
4
4
  * Renders the X-axis of a chart, including tick marks and labels.
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { YAxisProps } from './yAxis.types';
3
3
  /**
4
4
  * Renders a Y-axis for a chart, including tick marks and labels.
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { BarProps } from './bar.type';
3
3
  export declare const Bar: FC<BarProps>;
4
4
  //# sourceMappingURL=bar.d.ts.map
@@ -1,3 +1,3 @@
1
- import { ReactElement } from '../../../../node_modules/react';
1
+ import { ReactElement } from 'react';
2
2
  export declare const BarChartSegment: () => ReactElement;
3
3
  //# sourceMappingURL=barChartSegment.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { ChartTextProps } from './chartText.types';
3
3
  /**
4
4
  * Functional component for rendering SVG text elements in React.
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { ForeignObjectProps } from './foreignObject.types';
3
3
  export declare const ForeignObject: FC<ForeignObjectProps>;
4
4
  //# sourceMappingURL=foreignObject.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ReactNode } from '../../../node_modules/react';
1
+ import { ReactNode } from 'react';
2
2
  export interface ForeignObjectProps {
3
3
  children?: ReactNode;
4
4
  width?: string | number;
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { LineProps } from './line.types';
3
3
  /**
4
4
  * `Line` component that renders an SVG line element with customizable properties.
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Circle: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Hexagon: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Pentagon: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Square: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Star: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Straight: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from '../../node.types';
3
3
  export declare const Triangle: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { NodeProps } from './node.types';
3
3
  export declare const Node: (props: NodeProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,5 +1,5 @@
1
1
  import { NodePathProps } from '../../path.types';
2
- export declare const NodePath: import('../../../../../node_modules/react').ForwardRefExoticComponent<{
2
+ export declare const NodePath: import('react').ForwardRefExoticComponent<{
3
3
  nodeConfig?: NodePathProps;
4
4
  data?: {
5
5
  index?: number;
@@ -10,5 +10,5 @@ export declare const NodePath: import('../../../../../node_modules/react').Forwa
10
10
  x: number;
11
11
  y: number;
12
12
  tabIndex?: number;
13
- } & import('../../../../../node_modules/react').RefAttributes<SVGSVGElement>>;
13
+ } & import('react').RefAttributes<SVGSVGElement>>;
14
14
  //# sourceMappingURL=nodePath.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { PathProps } from './path.types';
2
- export declare const Path: import('../../../node_modules/react').ForwardRefExoticComponent<PathProps & import('../../../node_modules/react').RefAttributes<unknown>>;
2
+ export declare const Path: import('react').ForwardRefExoticComponent<PathProps & import('react').RefAttributes<unknown>>;
3
3
  //# sourceMappingURL=path.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AriaAttributes } from '../../../node_modules/react';
1
+ import { AriaAttributes } from 'react';
2
2
  import { ShadowSvgConfig } from '../../utils/shadowSvg/shadowSvg.types';
3
3
  import { NodeProps } from '../node/node.types';
4
4
  interface IDataPoint {
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { PlotShapeProps } from '../../plot.types';
3
3
  export declare const Circle: (props: PlotShapeProps & {
4
4
  ref?: ForwardedRef<SVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { PlotShapeProps } from '../../plot.types';
3
3
  export declare const Square: (props: PlotShapeProps & {
4
4
  ref?: ForwardedRef<SVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { PlotShapeProps } from '../../plot.types';
3
3
  export declare const Triangle: (props: PlotShapeProps & {
4
4
  ref?: ForwardedRef<SVGElement>;
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { PlotProps } from './plot.types';
3
3
  /**
4
4
  * `Plot` component which renders an interactive point in a chart with hover effects and accessibility features.
@@ -1,4 +1,4 @@
1
- import { ForwardedRef } from '../../../node_modules/react';
1
+ import { ForwardedRef } from 'react';
2
2
  import { SvgContainerProps } from './svgContainer.types';
3
3
  export declare const SvgContainer: (props: SvgContainerProps & {
4
4
  ref?: ForwardedRef<SVGSVGElement>;
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  import { TickProps } from './tick.types';
3
3
  /**
4
4
  * Functional component for rendering a tick mark in a chart or graph.
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  /**
3
3
  * Props for the HandlerIcon component
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FC } from '../../../../node_modules/react';
1
+ import { FC } from 'react';
2
2
  /**
3
3
  * Line data for rendering
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FC, KeyboardEvent, MouseEvent, TouchEvent } from '../../../../node_modules/react';
1
+ import { FC, KeyboardEvent, MouseEvent, TouchEvent } from 'react';
2
2
  import { FocusConfig } from '../../../types/focusConfig.type';
3
3
  import { ZoomAreaSelectionConfig, ZoomRange } from '../zoomArea.type';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { KeyboardEvent, MouseEvent, TouchEvent } from '../../../../node_modules/react';
1
+ import { KeyboardEvent, MouseEvent, TouchEvent } from 'react';
2
2
  import { FocusConfig } from '../../../types/focusConfig.type';
3
3
  import { ZoomAreaElements, ZoomAreaHandlerConfig } from '../zoomArea.type';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { FocusEvent } from '../../../node_modules/react';
1
+ import { FocusEvent } from 'react';
2
2
  /**
3
3
  * Defines a generic focus event handler function type.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { MouseEvent } from '../../../node_modules/react';
1
+ import { MouseEvent } from 'react';
2
2
  /**
3
3
  * Defines a generic hover event handler function type.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ReactNode } from '../../../node_modules/react';
1
+ import { ReactNode } from 'react';
2
2
  interface GetChildrenAttrProps {
3
3
  attrName: string;
4
4
  originalValue: string;
package/package.json CHANGED
@@ -1,26 +1,24 @@
1
1
  {
2
2
  "name": "@kubit-ui-web/react-charts",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "private": false,
5
5
  "main": "dist/kubit-ui-web-react-charts.cjs.js",
6
6
  "module": "dist/kubit-ui-web-react-charts.es.js",
7
7
  "unpkg": "dist/kubit-ui-web-react-charts.umd.js",
8
8
  "jsdelivr": "dist/kubit-ui-web-react-charts.umd.js",
9
9
  "types": "dist/types/index.d.ts",
10
- "description": "A comprehensive React chart library built by Kubit - Modern, customizable, and accessible data visualization components for web applications",
10
+ "description": "Modern React chart library with TypeScript support - Create beautiful, interactive, and accessible data visualizations with ease. Features bar charts, line charts, pie charts, and more!",
11
11
  "keywords": [
12
12
  "react",
13
13
  "charts",
14
14
  "graphs",
15
- "data-visualization",
16
15
  "typescript",
17
16
  "kubit",
18
- "ui-components",
19
- "web-charts",
17
+ "components",
18
+ "visualization",
20
19
  "accessible",
21
20
  "customizable",
22
- "responsive",
23
- "storybook"
21
+ "responsive"
24
22
  ],
25
23
  "exports": {
26
24
  ".": {
@@ -88,7 +86,6 @@
88
86
  "!dist/**/**/stories"
89
87
  ],
90
88
  "scripts": {
91
- "jest": "jest",
92
89
  "test:ci": "yarn test",
93
90
  "eslint": "eslint src",
94
91
  "custom-start": "echo -e '\n▐█µ ╓▓█▀ ▐█ j█▌ ╓▄ \n▐█▌,▄██─ ▓▌ ▓▌ ▐█▄▄▓▓█▓▄ ▓▌ @▓██▓▓▓\n▐██▀└╙██ █▌ █▌ ▐█─ └█▌ █▌ ██ \n▐█▌ ▀█▌ ██▄▄▄▄▀█▌ ▐██▄╓,▄██` █▌ ╙█▄▄▄'",
@@ -108,7 +105,7 @@
108
105
  "storybook:axe": "yarn build && axe-storybook --build-dir bundle",
109
106
  "createAssetsFiles": "node ./scripts/createAssetsFiles.js",
110
107
  "prettier": "prettier 'src/**/*.ts' --write",
111
- "test": "yarn run eslint --fix && yarn tsc && yarn vitest-report",
108
+ "test": "yarn run eslint --fix && yarn tsc && yarn vitest --coverage.enabled=true --silent --run",
112
109
  "test-storybook": "test-storybook",
113
110
  "vitest": "vitest",
114
111
  "vitest-report": "vitest --ui --coverage.enabled=true",
@@ -130,18 +127,20 @@
130
127
  "url": "https://www.kubit-lab.com",
131
128
  "email": "kubit.lab.dev@gmail.com"
132
129
  },
130
+ "maintainers": [
131
+ {
132
+ "name": "Kubit Development Team",
133
+ "email": "kubit.lab.dev@gmail.com",
134
+ "url": "https://www.kubit-lab.com"
135
+ }
136
+ ],
133
137
  "contributors": [
134
138
  {
135
139
  "name": "Kubit Development Team",
136
140
  "url": "https://www.kubit-lab.com"
137
141
  }
138
142
  ],
139
- "license": "ISC",
140
- "engines": {
141
- "node": ">=16.0.0",
142
- "npm": ">=7.0.0",
143
- "yarn": ">=1.22.0"
144
- },
143
+ "license": "Apache-2.0",
145
144
  "publishConfig": {
146
145
  "access": "public",
147
146
  "registry": "https://registry.npmjs.org/"