@kubit-ui-web/react-charts 0.1.0 → 1.1.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 (230) hide show
  1. package/README.md +31 -36
  2. package/dist/cjs/charts/barChart/barChart.js +12 -29
  3. package/dist/cjs/charts/barChart/barChart.type.js +1 -2
  4. package/dist/cjs/charts/barChart/barChartStructure.js +25 -29
  5. package/dist/cjs/charts/barChart/context/barChartContext.js +2 -5
  6. package/dist/cjs/charts/barChart/context/buildBarContextValues.js +17 -21
  7. package/dist/cjs/charts/barChart/fragments/barChartPath.js +12 -16
  8. package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +10 -14
  9. package/dist/cjs/charts/barChart/fragments/barChartXAxis.js +10 -14
  10. package/dist/cjs/charts/barChart/fragments/barChartYAxis.js +13 -17
  11. package/dist/cjs/charts/barChart/fragments/fixture/barContextData.js +3 -6
  12. package/dist/cjs/charts/barChart/fragments/fixture/index.js +1 -5
  13. package/dist/cjs/charts/barChart/index.js +1 -17
  14. package/dist/cjs/charts/barChart/utils/countBarChildren.js +5 -9
  15. package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js +31 -35
  16. package/dist/cjs/charts/barChart/utils/getBarDataValue.js +1 -5
  17. package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.js +1 -5
  18. package/dist/cjs/charts/index.js +3 -19
  19. package/dist/cjs/charts/lineChart/context/buildLineContextValue.js +17 -21
  20. package/dist/cjs/charts/lineChart/context/index.js +2 -7
  21. package/dist/cjs/charts/lineChart/context/lineChartContext.js +2 -5
  22. package/dist/cjs/charts/lineChart/fragments/fixture/contextData.js +1 -4
  23. package/dist/cjs/charts/lineChart/fragments/fixture/index.js +1 -5
  24. package/dist/cjs/charts/lineChart/fragments/index.js +4 -11
  25. package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +31 -35
  26. package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +6 -10
  27. package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +10 -14
  28. package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.js +14 -18
  29. package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.js +17 -21
  30. package/dist/cjs/charts/lineChart/hook/index.js +3 -9
  31. package/dist/cjs/charts/lineChart/hook/useAutoClick.js +6 -10
  32. package/dist/cjs/charts/lineChart/hook/useHover.js +5 -9
  33. package/dist/cjs/charts/lineChart/hook/useIndicator.js +5 -9
  34. package/dist/cjs/charts/lineChart/index.js +1 -17
  35. package/dist/cjs/charts/lineChart/lineChart.js +12 -29
  36. package/dist/cjs/charts/lineChart/lineChart.type.js +1 -2
  37. package/dist/cjs/charts/lineChart/lineChartStructure.js +34 -38
  38. package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.js +6 -10
  39. package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.js +2 -7
  40. package/dist/cjs/charts/lineChart/utils/getDataValues.js +1 -5
  41. package/dist/cjs/charts/lineChart/utils/getExtraSpacing.js +26 -30
  42. package/dist/cjs/charts/lineChart/utils/getPathData.js +1 -5
  43. package/dist/cjs/charts/lineChart/utils/getProjection.js +1 -5
  44. package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.js +2 -7
  45. package/dist/cjs/charts/lineChart/utils/handleNodesFocus.js +1 -5
  46. package/dist/cjs/charts/lineChart/utils/index.js +6 -17
  47. package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +8 -12
  48. package/dist/cjs/charts/pieChart/context/index.js +2 -7
  49. package/dist/cjs/charts/pieChart/context/pieChartContext.js +2 -5
  50. package/dist/cjs/charts/pieChart/fragments/index.js +2 -7
  51. package/dist/cjs/charts/pieChart/fragments/pieChartForeign.js +7 -11
  52. package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +12 -16
  53. package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +6 -10
  54. package/dist/cjs/charts/pieChart/index.js +1 -17
  55. package/dist/cjs/charts/pieChart/pieChart.js +8 -25
  56. package/dist/cjs/charts/pieChart/pieChart.type.js +1 -2
  57. package/dist/cjs/charts/pieChart/pieChartStructure.js +16 -20
  58. package/dist/cjs/charts/pieChart/utils/buildL.js +1 -5
  59. package/dist/cjs/charts/pieChart/utils/calculatePoint.js +1 -5
  60. package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.js +10 -14
  61. package/dist/cjs/charts/pieChart/utils/drawSegmentPath.js +6 -10
  62. package/dist/cjs/charts/pieChart/utils/index.js +2 -7
  63. package/dist/cjs/charts/pieChart/utils/rotationDirection.js +3 -7
  64. package/dist/cjs/components/axisChart/index.js +2 -18
  65. package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.js +1 -5
  66. package/dist/cjs/components/axisChart/utils/index.js +1 -17
  67. package/dist/cjs/components/axisChart/xAxis/index.js +2 -18
  68. package/dist/cjs/components/axisChart/xAxis/xAxis.js +14 -18
  69. package/dist/cjs/components/axisChart/xAxis/xAxis.types.js +1 -2
  70. package/dist/cjs/components/axisChart/yAxis/index.js +2 -18
  71. package/dist/cjs/components/axisChart/yAxis/yAxis.js +13 -17
  72. package/dist/cjs/components/axisChart/yAxis/yAxis.types.js +1 -2
  73. package/dist/cjs/components/bar/bar.js +9 -13
  74. package/dist/cjs/components/bar/bar.type.js +1 -4
  75. package/dist/cjs/components/bar/fragments/barChartSegment.js +3 -7
  76. package/dist/cjs/components/bar/index.js +2 -18
  77. package/dist/cjs/components/bar/utils/buildD.js +5 -9
  78. package/dist/cjs/components/bar/utils/getSegments.js +3 -7
  79. package/dist/cjs/components/chartText/chartText.js +3 -7
  80. package/dist/cjs/components/chartText/chartText.types.js +1 -2
  81. package/dist/cjs/components/chartText/index.js +2 -18
  82. package/dist/cjs/components/foreignObject/foreignObject.js +3 -7
  83. package/dist/cjs/components/foreignObject/foreignObject.types.js +1 -2
  84. package/dist/cjs/components/foreignObject/index.js +2 -18
  85. package/dist/cjs/components/index.js +10 -26
  86. package/dist/cjs/components/line/index.js +2 -18
  87. package/dist/cjs/components/line/line.js +3 -7
  88. package/dist/cjs/components/line/line.types.js +1 -2
  89. package/dist/cjs/components/node/components/circle/circle.js +4 -7
  90. package/dist/cjs/components/node/components/hexagon/hexagon.js +6 -9
  91. package/dist/cjs/components/node/components/pentagon/pentagon.js +6 -9
  92. package/dist/cjs/components/node/components/square/square.js +4 -7
  93. package/dist/cjs/components/node/components/star/star.js +6 -9
  94. package/dist/cjs/components/node/components/straight/straight.js +4 -7
  95. package/dist/cjs/components/node/components/triangle/triangle.js +4 -7
  96. package/dist/cjs/components/node/index.js +2 -18
  97. package/dist/cjs/components/node/node.js +22 -25
  98. package/dist/cjs/components/node/node.types.js +1 -4
  99. package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.js +1 -5
  100. package/dist/cjs/components/path/components/nodePath/nodePath.js +9 -12
  101. package/dist/cjs/components/path/index.js +2 -18
  102. package/dist/cjs/components/path/path.js +20 -23
  103. package/dist/cjs/components/path/path.types.js +1 -2
  104. package/dist/cjs/components/plot/components/circle/circle.js +4 -7
  105. package/dist/cjs/components/plot/components/index.js +3 -19
  106. package/dist/cjs/components/plot/components/square/square.js +4 -7
  107. package/dist/cjs/components/plot/components/triangle/triangle.js +4 -7
  108. package/dist/cjs/components/plot/index.js +2 -18
  109. package/dist/cjs/components/plot/plot.js +21 -24
  110. package/dist/cjs/components/plot/plot.types.js +8 -11
  111. package/dist/cjs/components/svgContainer/index.js +1 -17
  112. package/dist/cjs/components/svgContainer/svgContainer.js +5 -8
  113. package/dist/cjs/components/svgContainer/svgContainer.types.js +1 -2
  114. package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.js +1 -5
  115. package/dist/cjs/components/svgContainer/utils/index.js +1 -17
  116. package/dist/cjs/components/tick/index.js +2 -18
  117. package/dist/cjs/components/tick/tick.js +4 -8
  118. package/dist/cjs/components/tick/tick.types.js +1 -4
  119. package/dist/cjs/components/zoomArea/components/HandlerIcon.js +3 -7
  120. package/dist/cjs/components/zoomArea/components/LineRenderer.js +3 -7
  121. package/dist/cjs/components/zoomArea/components/SelectionArea.js +9 -14
  122. package/dist/cjs/components/zoomArea/components/ZoomHandler.js +6 -10
  123. package/dist/cjs/components/zoomArea/components/index.js +4 -12
  124. package/dist/cjs/components/zoomArea/hooks/index.js +5 -13
  125. package/dist/cjs/components/zoomArea/hooks/useDragInteraction.js +19 -23
  126. package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.js +18 -22
  127. package/dist/cjs/components/zoomArea/hooks/useResponsiveCanvas.js +12 -16
  128. package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.js +6 -10
  129. package/dist/cjs/components/zoomArea/hooks/useZoomData.js +8 -12
  130. package/dist/cjs/components/zoomArea/index.js +5 -21
  131. package/dist/cjs/components/zoomArea/utils/accessibilityLabels.js +6 -11
  132. package/dist/cjs/components/zoomArea/utils/index.js +3 -14
  133. package/dist/cjs/components/zoomArea/utils/indexRounding.js +5 -11
  134. package/dist/cjs/components/zoomArea/utils/interactionConfig.js +1 -5
  135. package/dist/cjs/components/zoomArea/utils/pathGeneration.js +4 -9
  136. package/dist/cjs/components/zoomArea/utils/rangeAndPositions.js +5 -13
  137. package/dist/cjs/components/zoomArea/utils/selectionConfig.js +1 -5
  138. package/dist/cjs/components/zoomArea/zoomArea.js +35 -39
  139. package/dist/cjs/components/zoomArea/zoomArea.type.js +1 -4
  140. package/dist/cjs/hooks/index.js +2 -18
  141. package/dist/cjs/hooks/useFocus/useFocus.js +5 -9
  142. package/dist/cjs/hooks/useFocus/useFocus.types.js +1 -2
  143. package/dist/cjs/hooks/useHover/useHover.js +5 -9
  144. package/dist/cjs/hooks/useHover/useHover.types.js +1 -2
  145. package/dist/cjs/index.js +3 -19
  146. package/dist/cjs/types/canvas.type.js +1 -4
  147. package/dist/cjs/types/errors.type.js +1 -4
  148. package/dist/cjs/types/focusConfig.type.js +1 -4
  149. package/dist/cjs/types/index.js +4 -20
  150. package/dist/cjs/types/position.enum.js +1 -4
  151. package/dist/cjs/types/unit.enum.js +1 -4
  152. package/dist/cjs/types/valueFormatter.type.js +1 -2
  153. package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.js +1 -5
  154. package/dist/cjs/utils/buildErrors/buildErrors.js +3 -7
  155. package/dist/cjs/utils/buildTickValues/buildTickValues.js +2 -7
  156. package/dist/cjs/utils/calculateFocusOutline/calculateFocusOutline.js +8 -13
  157. package/dist/cjs/utils/classNames/classNames.js +1 -5
  158. package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.js +4 -8
  159. package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.js +1 -2
  160. package/dist/cjs/utils/cursorNear/isNear.js +1 -5
  161. package/dist/cjs/utils/getAxisData/getAxisData.js +1 -5
  162. package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.js +8 -12
  163. package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.js +4 -8
  164. package/dist/cjs/utils/getCoordinates/getCoordinates.js +9 -14
  165. package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.js +1 -5
  166. package/dist/cjs/utils/getPoints/getPoints.js +1 -5
  167. package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.js +5 -10
  168. package/dist/cjs/utils/getTicks/getTicks.js +2 -7
  169. package/dist/cjs/utils/index.js +8 -24
  170. package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +3 -7
  171. package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.js +1 -5
  172. package/dist/cjs/utils/shadowSvg/shadowSvg.js +3 -7
  173. package/dist/cjs/utils/shadowSvg/shadowSvg.types.js +1 -2
  174. package/dist/cjs/utils/textBound/textBound.js +1 -5
  175. package/dist/kubit-ui-web-react-charts.cjs.js +1 -10
  176. package/dist/kubit-ui-web-react-charts.es.js +1 -10
  177. package/dist/kubit-ui-web-react-charts.umd.js +1 -10
  178. package/dist/types/charts/barChart/barChart.d.ts +5 -5
  179. package/dist/types/charts/barChart/barChart.type.d.ts +1 -1
  180. package/dist/types/charts/barChart/context/barChartContext.d.ts +1 -1
  181. package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +1 -1
  182. package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +1 -1
  183. package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +1 -1
  184. package/dist/types/charts/lineChart/context/lineChartContext.d.ts +1 -1
  185. package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +1 -1
  186. package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +1 -1
  187. package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +1 -1
  188. package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +1 -1
  189. package/dist/types/charts/lineChart/lineChart.d.ts +5 -5
  190. package/dist/types/charts/lineChart/lineChart.type.d.ts +1 -1
  191. package/dist/types/charts/lineChart/lineChartStructure.d.ts +1 -1
  192. package/dist/types/charts/pieChart/context/pieChartContext.d.ts +1 -1
  193. package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +1 -1
  194. package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +1 -1
  195. package/dist/types/charts/pieChart/pieChart.d.ts +3 -3
  196. package/dist/types/charts/pieChart/pieChart.type.d.ts +1 -1
  197. package/dist/types/charts/pieChart/pieChartStructure.d.ts +1 -1
  198. package/dist/types/components/axisChart/xAxis/xAxis.d.ts +1 -1
  199. package/dist/types/components/axisChart/yAxis/yAxis.d.ts +1 -1
  200. package/dist/types/components/bar/bar.d.ts +1 -1
  201. package/dist/types/components/bar/fragments/barChartSegment.d.ts +1 -1
  202. package/dist/types/components/chartText/chartText.d.ts +1 -1
  203. package/dist/types/components/foreignObject/foreignObject.d.ts +1 -1
  204. package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -1
  205. package/dist/types/components/line/line.d.ts +1 -1
  206. package/dist/types/components/node/components/circle/circle.d.ts +1 -1
  207. package/dist/types/components/node/components/hexagon/hexagon.d.ts +1 -1
  208. package/dist/types/components/node/components/pentagon/pentagon.d.ts +1 -1
  209. package/dist/types/components/node/components/square/square.d.ts +1 -1
  210. package/dist/types/components/node/components/star/star.d.ts +1 -1
  211. package/dist/types/components/node/components/straight/straight.d.ts +1 -1
  212. package/dist/types/components/node/components/triangle/triangle.d.ts +1 -1
  213. package/dist/types/components/node/node.d.ts +1 -1
  214. package/dist/types/components/path/components/nodePath/nodePath.d.ts +2 -2
  215. package/dist/types/components/path/path.d.ts +1 -1
  216. package/dist/types/components/path/path.types.d.ts +1 -1
  217. package/dist/types/components/plot/components/circle/circle.d.ts +1 -1
  218. package/dist/types/components/plot/components/square/square.d.ts +1 -1
  219. package/dist/types/components/plot/components/triangle/triangle.d.ts +1 -1
  220. package/dist/types/components/plot/plot.d.ts +1 -1
  221. package/dist/types/components/svgContainer/svgContainer.d.ts +1 -1
  222. package/dist/types/components/tick/tick.d.ts +1 -1
  223. package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -1
  224. package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -1
  225. package/dist/types/components/zoomArea/components/SelectionArea.d.ts +1 -1
  226. package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +1 -1
  227. package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -1
  228. package/dist/types/hooks/useHover/useHover.types.d.ts +1 -1
  229. package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -1
  230. package/package.json +44 -47
@@ -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.1.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/"
@@ -151,36 +150,36 @@
151
150
  "url": "https://www.kubit-lab.com/"
152
151
  },
153
152
  "devDependencies": {
154
- "@babel/core": "^7.28.4",
155
- "@babel/preset-env": "^7.28.3",
156
- "@babel/preset-react": "^7.27.1",
157
- "@babel/preset-typescript": "^7.27.1",
153
+ "@babel/core": "^7.28.5",
154
+ "@babel/preset-env": "^7.28.5",
155
+ "@babel/preset-react": "^7.28.5",
156
+ "@babel/preset-typescript": "^7.28.5",
158
157
  "@kubit-ui-web/eslint-plugin-no-index-import": "^1.0.2",
159
- "@storybook/addon-a11y": "9.1.10",
160
- "@storybook/addon-coverage": "2.0.0",
161
- "@storybook/addon-designs": "10.0.2",
162
- "@storybook/addon-links": "9.1.10",
163
- "@storybook/addon-themes": "9.1.10",
164
- "@storybook/react-vite": "9.1.10",
165
- "@storybook/test-runner": "0.23.0",
158
+ "@storybook/addon-a11y": "10.0.7",
159
+ "@storybook/addon-coverage": "3.0.0",
160
+ "@storybook/addon-designs": "11.0.1",
161
+ "@storybook/addon-links": "10.0.7",
162
+ "@storybook/addon-themes": "10.0.7",
163
+ "@storybook/react-vite": "10.0.7",
164
+ "@storybook/test-runner": "0.24.1",
166
165
  "@storybook/testing-library": "0.2.2",
167
166
  "@testing-library/jest-dom": "^6.9.1",
168
167
  "@testing-library/react": "^16.3.0",
169
168
  "@testing-library/react-hooks": "^8.0.1",
170
169
  "@testing-library/user-event": "^14.6.1",
171
- "@trivago/prettier-plugin-sort-imports": "^5.2.2",
170
+ "@trivago/prettier-plugin-sort-imports": "^6.0.0",
172
171
  "@types/mocha": "^10.0.10",
173
172
  "@types/react": "^18.3.3",
174
173
  "@types/react-dom": "^18.3.0",
175
- "@typescript-eslint/eslint-plugin": "^8.46.0",
176
- "@typescript-eslint/parser": "^8.46.0",
177
- "@vitejs/plugin-react": "^5.0.4",
178
- "@vitest/coverage-v8": "^3.2.4",
179
- "@vitest/ui": "^3.2.4",
174
+ "@typescript-eslint/eslint-plugin": "^8.46.4",
175
+ "@typescript-eslint/parser": "^8.46.4",
176
+ "@vitejs/plugin-react": "^5.1.1",
177
+ "@vitest/coverage-v8": "^4.0.8",
178
+ "@vitest/ui": "^4.0.8",
180
179
  "add": "^2.0.6",
181
180
  "cpy-cli": "^6.0.0",
182
- "eslint": "^9.37.0",
183
- "eslint-config-kubit": "0.0.15-flat",
181
+ "eslint": "^9.39.1",
182
+ "eslint-config-kubit": "1.2.0",
184
183
  "eslint-config-prettier": "^10.1.8",
185
184
  "eslint-config-standard-with-typescript": "^43.0.1",
186
185
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -191,31 +190,29 @@
191
190
  "eslint-plugin-prettier": "^5.5.4",
192
191
  "eslint-plugin-promise": "^7.2.1",
193
192
  "eslint-plugin-react": "^7.37.5",
194
- "eslint-plugin-react-hooks": "^6.1.1",
195
- "eslint-plugin-react-refresh": "^0.4.23",
196
- "eslint-plugin-storybook": "^9.1.10",
197
- "eslint-plugin-unused-imports": "^4.2.0",
193
+ "eslint-plugin-react-hooks": "^7.0.1",
194
+ "eslint-plugin-react-refresh": "^0.4.24",
195
+ "eslint-plugin-storybook": "^10.0.7",
196
+ "eslint-plugin-unused-imports": "^4.3.0",
198
197
  "gts": "^6.0.2",
199
- "html-validate": "^10.1.1",
200
- "jsdom": "^27.0.0",
198
+ "html-validate": "^10.3.1",
199
+ "jsdom": "^27.2.0",
201
200
  "json-beautify": "^1.1.1",
202
201
  "prettier": "^3.6.2",
203
202
  "rollup-plugin-terser": "^7.0.2",
204
203
  "sort-imports": "^1.1.0",
205
- "storybook": "9.1.10",
204
+ "storybook": "10.0.7",
206
205
  "tsc-alias": "1.8.16",
207
- "typedoc": "^0.28.13",
208
- "typedoc-plugin-markdown": "^4.9.0",
209
206
  "typescript": "^5.9.3",
210
- "typescript-eslint": "^8.46.0",
211
- "vite": "^7.1.9",
207
+ "typescript-eslint": "^8.46.4",
208
+ "vite": "^7.2.2",
212
209
  "vite-plugin-dts": "^4.5.4",
213
210
  "vite-tsconfig-paths": "^5.1.4",
214
- "vitest": "^3.2.4",
211
+ "vitest": "^4.0.8",
215
212
  "vitest-axe": "^0.1.0",
216
213
  "yarn": "^1.22.22",
217
214
  "yarn-deduplicate": "^6.0.2",
218
- "@storybook/addon-docs": "9.1.10"
215
+ "@storybook/addon-docs": "10.0.7"
219
216
  },
220
217
  "dependencies": {
221
218
  "react": "18.3.1",