@kubit-ui-web/react-charts 1.3.0 → 1.5.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 (157) hide show
  1. package/dist/cjs/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
  2. package/dist/cjs/charts/barChart/fragments/barChartPath.js +12 -7
  3. package/dist/cjs/charts/barChart/fragments/barChartSeparator.d.ts.map +1 -1
  4. package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +20 -8
  5. package/dist/cjs/charts/constants/chartDefaults.d.ts +20 -0
  6. package/dist/cjs/charts/constants/chartDefaults.d.ts.map +1 -1
  7. package/dist/cjs/charts/constants/chartDefaults.js +20 -0
  8. package/dist/cjs/charts/lineChart/fragments/lineChartPath.d.ts.map +1 -1
  9. package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +15 -8
  10. package/dist/cjs/charts/lineChart/fragments/lineChartProjection.d.ts.map +1 -1
  11. package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +10 -7
  12. package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.d.ts.map +1 -1
  13. package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +20 -8
  14. package/dist/cjs/charts/pieChart/context/buildPieContextValue.d.ts +3 -1
  15. package/dist/cjs/charts/pieChart/context/buildPieContextValue.d.ts.map +1 -1
  16. package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +15 -3
  17. package/dist/cjs/charts/pieChart/fragments/pieChartPath.d.ts.map +1 -1
  18. package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +31 -3
  19. package/dist/cjs/charts/pieChart/fragments/pieChartSegment.d.ts.map +1 -1
  20. package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +58 -1
  21. package/dist/cjs/charts/pieChart/pieChart.type.d.ts +7 -0
  22. package/dist/cjs/charts/pieChart/pieChart.type.d.ts.map +1 -1
  23. package/dist/cjs/charts/pieChart/pieChartStructure.d.ts.map +1 -1
  24. package/dist/cjs/charts/pieChart/pieChartStructure.js +12 -2
  25. package/dist/cjs/types/errors.type.d.ts +3 -0
  26. package/dist/cjs/types/errors.type.d.ts.map +1 -1
  27. package/dist/cjs/types/errors.type.js +4 -0
  28. package/dist/cjs/utils/buildErrors/buildErrors.d.ts +11 -0
  29. package/dist/cjs/utils/buildErrors/buildErrors.d.ts.map +1 -1
  30. package/dist/cjs/utils/buildErrors/buildErrors.js +5 -0
  31. package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.d.ts +37 -0
  32. package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +1 -0
  33. package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.js +36 -0
  34. package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +13 -0
  35. package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +1 -0
  36. package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +20 -0
  37. package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.d.ts +14 -0
  38. package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +1 -0
  39. package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.js +25 -0
  40. package/dist/esm/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
  41. package/dist/esm/charts/barChart/fragments/barChartPath.js +12 -7
  42. package/dist/esm/charts/barChart/fragments/barChartSeparator.d.ts.map +1 -1
  43. package/dist/esm/charts/barChart/fragments/barChartSeparator.js +20 -8
  44. package/dist/esm/charts/constants/chartDefaults.d.ts +20 -0
  45. package/dist/esm/charts/constants/chartDefaults.d.ts.map +1 -1
  46. package/dist/esm/charts/constants/chartDefaults.js +20 -0
  47. package/dist/esm/charts/lineChart/fragments/lineChartPath.d.ts.map +1 -1
  48. package/dist/esm/charts/lineChart/fragments/lineChartPath.js +15 -8
  49. package/dist/esm/charts/lineChart/fragments/lineChartProjection.d.ts.map +1 -1
  50. package/dist/esm/charts/lineChart/fragments/lineChartProjection.js +10 -7
  51. package/dist/esm/charts/lineChart/fragments/lineChartSeparator.d.ts.map +1 -1
  52. package/dist/esm/charts/lineChart/fragments/lineChartSeparator.js +20 -8
  53. package/dist/esm/charts/pieChart/context/buildPieContextValue.d.ts +3 -1
  54. package/dist/esm/charts/pieChart/context/buildPieContextValue.d.ts.map +1 -1
  55. package/dist/esm/charts/pieChart/context/buildPieContextValue.js +15 -3
  56. package/dist/esm/charts/pieChart/fragments/pieChartPath.d.ts.map +1 -1
  57. package/dist/esm/charts/pieChart/fragments/pieChartPath.js +31 -3
  58. package/dist/esm/charts/pieChart/fragments/pieChartSegment.d.ts.map +1 -1
  59. package/dist/esm/charts/pieChart/fragments/pieChartSegment.js +58 -1
  60. package/dist/esm/charts/pieChart/pieChart.type.d.ts +7 -0
  61. package/dist/esm/charts/pieChart/pieChart.type.d.ts.map +1 -1
  62. package/dist/esm/charts/pieChart/pieChartStructure.d.ts.map +1 -1
  63. package/dist/esm/charts/pieChart/pieChartStructure.js +12 -2
  64. package/dist/esm/types/errors.type.d.ts +3 -0
  65. package/dist/esm/types/errors.type.d.ts.map +1 -1
  66. package/dist/esm/types/errors.type.js +4 -0
  67. package/dist/esm/utils/buildErrors/buildErrors.d.ts +11 -0
  68. package/dist/esm/utils/buildErrors/buildErrors.d.ts.map +1 -1
  69. package/dist/esm/utils/buildErrors/buildErrors.js +5 -0
  70. package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.d.ts +37 -0
  71. package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +1 -0
  72. package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.js +36 -0
  73. package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +13 -0
  74. package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +1 -0
  75. package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +20 -0
  76. package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.d.ts +14 -0
  77. package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +1 -0
  78. package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.js +25 -0
  79. package/dist/kubit-ui-web-react-charts.cjs.js +1 -1
  80. package/dist/kubit-ui-web-react-charts.es.js +1 -1
  81. package/dist/kubit-ui-web-react-charts.umd.js +1 -1
  82. package/dist/types/charts/barChart/barChart.d.ts +5 -5
  83. package/dist/types/charts/barChart/barChart.type.d.ts +1 -1
  84. package/dist/types/charts/barChart/context/barChartContext.d.ts +1 -1
  85. package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
  86. package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +1 -1
  87. package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts.map +1 -1
  88. package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +1 -1
  89. package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +1 -1
  90. package/dist/types/charts/constants/chartDefaults.d.ts +20 -0
  91. package/dist/types/charts/constants/chartDefaults.d.ts.map +1 -1
  92. package/dist/types/charts/lineChart/context/lineChartContext.d.ts +1 -1
  93. package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +1 -1
  94. package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts.map +1 -1
  95. package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +1 -1
  96. package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts.map +1 -1
  97. package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +1 -1
  98. package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts.map +1 -1
  99. package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +1 -1
  100. package/dist/types/charts/lineChart/lineChart.d.ts +5 -5
  101. package/dist/types/charts/lineChart/lineChart.type.d.ts +1 -1
  102. package/dist/types/charts/lineChart/lineChartStructure.d.ts +1 -1
  103. package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts +3 -1
  104. package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts.map +1 -1
  105. package/dist/types/charts/pieChart/context/pieChartContext.d.ts +1 -1
  106. package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +1 -1
  107. package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +1 -1
  108. package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts.map +1 -1
  109. package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts.map +1 -1
  110. package/dist/types/charts/pieChart/pieChart.d.ts +3 -3
  111. package/dist/types/charts/pieChart/pieChart.type.d.ts +8 -1
  112. package/dist/types/charts/pieChart/pieChart.type.d.ts.map +1 -1
  113. package/dist/types/charts/pieChart/pieChartStructure.d.ts +1 -1
  114. package/dist/types/charts/pieChart/pieChartStructure.d.ts.map +1 -1
  115. package/dist/types/components/axisChart/xAxis/xAxis.d.ts +1 -1
  116. package/dist/types/components/axisChart/yAxis/yAxis.d.ts +1 -1
  117. package/dist/types/components/bar/bar.d.ts +1 -1
  118. package/dist/types/components/bar/fragments/barChartSegment.d.ts +1 -1
  119. package/dist/types/components/chartText/chartText.d.ts +1 -1
  120. package/dist/types/components/foreignObject/foreignObject.d.ts +1 -1
  121. package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -1
  122. package/dist/types/components/line/line.d.ts +1 -1
  123. package/dist/types/components/node/components/circle/circle.d.ts +1 -1
  124. package/dist/types/components/node/components/hexagon/hexagon.d.ts +1 -1
  125. package/dist/types/components/node/components/pentagon/pentagon.d.ts +1 -1
  126. package/dist/types/components/node/components/square/square.d.ts +1 -1
  127. package/dist/types/components/node/components/star/star.d.ts +1 -1
  128. package/dist/types/components/node/components/straight/straight.d.ts +1 -1
  129. package/dist/types/components/node/components/triangle/triangle.d.ts +1 -1
  130. package/dist/types/components/node/node.d.ts +1 -1
  131. package/dist/types/components/path/components/nodePath/nodePath.d.ts +2 -2
  132. package/dist/types/components/path/path.d.ts +1 -1
  133. package/dist/types/components/path/path.types.d.ts +1 -1
  134. package/dist/types/components/plot/components/circle/circle.d.ts +1 -1
  135. package/dist/types/components/plot/components/square/square.d.ts +1 -1
  136. package/dist/types/components/plot/components/triangle/triangle.d.ts +1 -1
  137. package/dist/types/components/plot/plot.d.ts +1 -1
  138. package/dist/types/components/svgContainer/svgContainer.d.ts +1 -1
  139. package/dist/types/components/tick/tick.d.ts +1 -1
  140. package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -1
  141. package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -1
  142. package/dist/types/components/zoomArea/components/SelectionArea.d.ts +1 -1
  143. package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +1 -1
  144. package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -1
  145. package/dist/types/hooks/useHover/useHover.types.d.ts +1 -1
  146. package/dist/types/types/errors.type.d.ts +3 -0
  147. package/dist/types/types/errors.type.d.ts.map +1 -1
  148. package/dist/types/utils/buildErrors/buildErrors.d.ts +11 -0
  149. package/dist/types/utils/buildErrors/buildErrors.d.ts.map +1 -1
  150. package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts +37 -0
  151. package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +1 -0
  152. package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +13 -0
  153. package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +1 -0
  154. package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts +14 -0
  155. package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +1 -0
  156. package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -1
  157. package/package.json +6 -4
@@ -1,3 +1,3 @@
1
1
  import { PieChartContextType } from '../pieChart.type';
2
- export declare const PieChartContext: import('react').Context<PieChartContextType>;
2
+ export declare const PieChartContext: import('../../../../node_modules/react').Context<PieChartContextType>;
3
3
  //# sourceMappingURL=pieChartContext.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from '../../../../node_modules/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 'react';
1
+ import { FC } from '../../../../node_modules/react';
2
2
  import { PathProps } from '../../../components/path/path.types';
3
3
  /**
4
4
  * Renders the path for a pie chart.
@@ -1 +1 @@
1
- {"version":3,"file":"pieChartPath.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/fragments/pieChartPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAyC,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAM9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,SAAS,CAyCtC,CAAC"}
1
+ {"version":3,"file":"pieChartPath.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/fragments/pieChartPath.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAoD,MAAM,OAAO,CAAC;AAElF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAW9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,SAAS,CA4EtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pieChartSegment.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/fragments/pieChartSegment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAmC1D,CAAC"}
1
+ {"version":3,"file":"pieChartSegment.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/fragments/pieChartSegment.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoG1D,CAAC"}
@@ -1,6 +1,6 @@
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>;
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>;
4
4
  };
5
5
  export { PieChart };
6
6
  export * from './pieChart.type';
@@ -1,6 +1,7 @@
1
- import { ReactElement, ReactNode } from 'react';
1
+ import { ReactElement, ReactNode } from '../../../node_modules/react';
2
2
  import { PathProps } from '../../components/path/path.types';
3
3
  import { CanvasConfig } from '../../types/canvas.type';
4
+ import { ChartError, ChartErrorCollection, ErrorType } from '../../types/errors.type';
4
5
  interface Group {
5
6
  name: string;
6
7
  value: number;
@@ -34,6 +35,7 @@ export interface PieChartProps {
34
35
  onBlur?: (event: React.FocusEvent<SVGElement>) => void;
35
36
  onKeyDown?: (event: React.KeyboardEvent<SVGSVGElement>) => void;
36
37
  onKeyUp?: (event: React.KeyboardEvent<SVGSVGElement>) => void;
38
+ onErrors?: (errors: ChartErrorCollection) => void;
37
39
  }
38
40
  export interface PieChartContextType {
39
41
  foreignObject?: {
@@ -47,6 +49,8 @@ export interface PieChartContextType {
47
49
  data: DataItem;
48
50
  dataTestId?: string;
49
51
  halfChart?: boolean;
52
+ error?: ChartError;
53
+ addError?: (errorType: keyof typeof ErrorType, error: Omit<ChartError, 'type'>) => void;
50
54
  }
51
55
  export type PieChartSegmentProps = PathProps & {
52
56
  total: number;
@@ -58,8 +62,11 @@ export type PieChartSegmentProps = PathProps & {
58
62
  radius?: number;
59
63
  value: number;
60
64
  color?: string;
65
+ name?: string;
61
66
  singleStroke: boolean;
62
67
  halfChart?: boolean;
68
+ dataKey?: string;
69
+ index?: number;
63
70
  };
64
71
  export {};
65
72
  //# sourceMappingURL=pieChart.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pieChart.type.d.ts","sourceRoot":"","sources":["../../../../src/charts/pieChart/pieChart.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,IAAI,EAAE,QAAQ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K,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from '../../../node_modules/react';
2
2
  import { PieChartProps } from './pieChart.type';
3
3
  /**
4
4
  * Renders a pie chart component.
@@ -1 +1 @@
1
- {"version":3,"file":"pieChartStructure.d.ts","sourceRoot":"","sources":["../../../../src/charts/pieChart/pieChartStructure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA8B,MAAM,OAAO,CAAC;AAS5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,aAAa,CAkE/C,CAAC"}
1
+ {"version":3,"file":"pieChartStructure.d.ts","sourceRoot":"","sources":["../../../../src/charts/pieChart/pieChartStructure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA8B,MAAM,OAAO,CAAC;AAY5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,aAAa,CA8E/C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from '../../../../node_modules/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 'react';
1
+ import { FC } from '../../../../node_modules/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 'react';
1
+ import { FC } from '../../../node_modules/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 'react';
1
+ import { ReactElement } from '../../../../node_modules/react';
2
2
  export declare const BarChartSegment: () => ReactElement;
3
3
  //# sourceMappingURL=barChartSegment.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from '../../../node_modules/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 'react';
1
+ import { FC } from '../../../node_modules/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 'react';
1
+ import { ReactNode } from '../../../node_modules/react';
2
2
  export interface ForeignObjectProps {
3
3
  children?: ReactNode;
4
4
  width?: string | number;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from '../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../node_modules/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('react').ForwardRefExoticComponent<{
2
+ export declare const NodePath: import('../../../../../node_modules/react').ForwardRefExoticComponent<{
3
3
  nodeConfig?: NodePathProps;
4
4
  data?: {
5
5
  index?: number;
@@ -10,5 +10,5 @@ export declare const NodePath: import('react').ForwardRefExoticComponent<{
10
10
  x: number;
11
11
  y: number;
12
12
  tabIndex?: number;
13
- } & import('react').RefAttributes<SVGSVGElement>>;
13
+ } & import('../../../../../node_modules/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('react').ForwardRefExoticComponent<PathProps & import('react').RefAttributes<unknown>>;
2
+ export declare const Path: import('../../../node_modules/react').ForwardRefExoticComponent<PathProps & import('../../../node_modules/react').RefAttributes<unknown>>;
3
3
  //# sourceMappingURL=path.d.ts.map
@@ -1,4 +1,4 @@
1
- import { AriaAttributes } from 'react';
1
+ import { AriaAttributes } from '../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../node_modules/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 'react';
1
+ import { ForwardedRef } from '../../../node_modules/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 'react';
1
+ import { FC } from '../../../node_modules/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 'react';
1
+ import { FC } from '../../../../node_modules/react';
2
2
  /**
3
3
  * Props for the HandlerIcon component
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC } from '../../../../node_modules/react';
2
2
  /**
3
3
  * Line data for rendering
4
4
  */
@@ -1,4 +1,4 @@
1
- import { FC, KeyboardEvent, MouseEvent, TouchEvent } from 'react';
1
+ import { FC, KeyboardEvent, MouseEvent, TouchEvent } from '../../../../node_modules/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 'react';
1
+ import { KeyboardEvent, MouseEvent, TouchEvent } from '../../../../node_modules/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 'react';
1
+ import { FocusEvent } from '../../../node_modules/react';
2
2
  /**
3
3
  * Defines a generic focus event handler function type.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { MouseEvent } from 'react';
1
+ import { MouseEvent } from '../../../node_modules/react';
2
2
  /**
3
3
  * Defines a generic hover event handler function type.
4
4
  *
@@ -11,6 +11,9 @@ export declare const ErrorType: {
11
11
  readonly LINE_CHART_SEPARATOR_ERROR: "LINE_CHART_SEPARATOR_ERROR";
12
12
  readonly LINE_CHART_X_AXIS_ERROR: "LINE_CHART_X_AXIS_ERROR";
13
13
  readonly LINE_CHART_Y_AXIS_ERROR: "LINE_CHART_Y_AXIS_ERROR";
14
+ readonly PIE_CHART_CONTEXT_ERROR: "PIE_CHART_CONTEXT_ERROR";
15
+ readonly PIE_CHART_PATH_ERROR: "PIE_CHART_PATH_ERROR";
16
+ readonly PIE_CHART_SEGMENT_ERROR: "PIE_CHART_SEGMENT_ERROR";
14
17
  };
15
18
  export interface ChartError {
16
19
  error?: Error;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.type.d.ts","sourceRoot":"","sources":["../../../src/types/errors.type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAgBZ,CAAC;AAEX,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,OAAO,SAAS,CAAC;CAC9B;AACD,MAAM,MAAM,oBAAoB,GAAG;KAChC,IAAI,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE;CACjF,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,OAAO,UAAU,GAAG,UAAU,EAAE,KAAG,UAAU,EAE7E,CAAC"}
1
+ {"version":3,"file":"errors.type.d.ts","sourceRoot":"","sources":["../../../src/types/errors.type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAoBZ,CAAC;AAEX,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,MAAM,OAAO,SAAS,CAAC;CAC9B;AACD,MAAM,MAAM,oBAAoB,GAAG;KAChC,IAAI,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE;CACjF,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,OAAO,UAAU,GAAG,UAAU,EAAE,KAAG,UAAU,EAE7E,CAAC"}
@@ -1,4 +1,14 @@
1
1
  export declare const BuildError: {
2
+ readonly PIE_CHART_EMPTY_DATA: "PIE_CHART_EMPTY_DATA";
3
+ readonly PIE_CHART_INNER_RADIUS_OUT_OF_RANGE: "PIE_CHART_INNER_RADIUS_OUT_OF_RANGE";
4
+ readonly PIE_CHART_INVALID_CANVAS_DIMENSIONS: "PIE_CHART_INVALID_CANVAS_DIMENSIONS";
5
+ readonly PIE_CHART_INVALID_DATA_KEY: "PIE_CHART_INVALID_DATA_KEY";
6
+ readonly PIE_CHART_INVALID_INNER_RADIUS: "PIE_CHART_INVALID_INNER_RADIUS";
7
+ readonly PIE_CHART_INVALID_RADIUS: "PIE_CHART_INVALID_RADIUS";
8
+ readonly PIE_CHART_INVALID_SEGMENT_VALUE: "PIE_CHART_INVALID_SEGMENT_VALUE";
9
+ readonly PIE_CHART_INVALID_TOTAL: "PIE_CHART_INVALID_TOTAL";
10
+ readonly PIE_CHART_MISSING_SEGMENT_NAME: "PIE_CHART_MISSING_SEGMENT_NAME";
11
+ readonly PIE_CHART_NEGATIVE_SEGMENT_VALUE: "PIE_CHART_NEGATIVE_SEGMENT_VALUE";
2
12
  readonly LINE_CHART_INVALID_CANVAS: "LINE_CHART_INVALID_CANVAS";
3
13
  readonly LINE_CHART_NO_DATA: "LINE_CHART_NO_DATA";
4
14
  readonly LINE_CHART_PATH_ALL_VALUES_NULL: "LINE_CHART_PATH_ALL_VALUES_NULL";
@@ -66,4 +76,5 @@ export declare const buildSeparatorXOutOfRangeError: (value: number, min: number
66
76
  */
67
77
  export declare const buildSeparatorYOutOfRangeError: (value: number, min: number, max: number) => Error;
68
78
  export { buildBarValueError, buildBarNegativeValueError, buildBarDataKeyNotFoundError, buildBarDistributionError, } from './charts/buildBarChartErrors';
79
+ export { buildSegmentValueError, buildSegmentNegativeValueError, buildPieDataKeyNotFoundError, buildEmptyDataArrayError, buildInvalidTotalError, buildInvalidGroupError, buildInvalidRadiusError, buildInvalidInnerRadiusError, buildInnerRadiusOutOfRangeError, } from './charts/buildPieChartErrors';
69
80
  //# sourceMappingURL=buildErrors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildErrors.d.ts","sourceRoot":"","sources":["../../../../src/utils/buildErrors/buildErrors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIb,CAAC;AAIX,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,EAAE,KAAK,CAIpF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,CAAC,OAAO,UAAU,EAAE,MAAM,OAAO,UAAU,CAAC,KAAG,KAC5D,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,SAAS,MAAM,KAAG,KACJ,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,KAGxE,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,KACO,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,KACO,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,KACT,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,KACT,CAAC;AAGjF,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"buildErrors.d.ts","sourceRoot":"","sources":["../../../../src/utils/buildErrors/buildErrors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKb,CAAC;AAIX,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,EAAE,KAAK,CAKpF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,CAAC,OAAO,UAAU,EAAE,MAAM,OAAO,UAAU,CAAC,KAAG,KAC5D,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,SAAS,MAAM,KAAG,KACJ,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,KAGxE,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,KACO,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,KACO,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,KACT,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,KACT,CAAC;AAGjF,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Creates a dynamic error for when a segment value is not numeric
3
+ */
4
+ export declare const buildSegmentValueError: (value: unknown, groupName: string) => Error;
5
+ /**
6
+ * Creates a dynamic error for when a segment value is negative
7
+ */
8
+ export declare const buildSegmentNegativeValueError: (value: number, groupName: string) => Error;
9
+ /**
10
+ * Creates a dynamic error for when a dataKey is not found in the dataset
11
+ */
12
+ export declare const buildPieDataKeyNotFoundError: (dataKey: string) => Error;
13
+ /**
14
+ * Creates a dynamic error for when the data array is empty
15
+ */
16
+ export declare const buildEmptyDataArrayError: (dataKey: string) => Error;
17
+ /**
18
+ * Creates a dynamic error for when total value is zero or invalid
19
+ */
20
+ export declare const buildInvalidTotalError: (dataKey: string, total: number) => Error;
21
+ /**
22
+ * Creates a dynamic error for when a group is missing required properties
23
+ */
24
+ export declare const buildInvalidGroupError: (dataKey: string, index: number, missingProp: string) => Error;
25
+ /**
26
+ * Creates a dynamic error for invalid radius value
27
+ */
28
+ export declare const buildInvalidRadiusError: (radius: unknown) => Error;
29
+ /**
30
+ * Creates a dynamic error for invalid innerRadius value
31
+ */
32
+ export declare const buildInvalidInnerRadiusError: (innerRadius: unknown) => Error;
33
+ /**
34
+ * Creates a dynamic error for when innerRadius is greater than or equal to radius
35
+ */
36
+ export declare const buildInnerRadiusOutOfRangeError: (innerRadius: number, radius: number) => Error;
37
+ //# sourceMappingURL=buildPieChartErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildPieChartErrors.d.ts","sourceRoot":"","sources":["../../../../../src/utils/buildErrors/charts/buildPieChartErrors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,EAAE,WAAW,MAAM,KAAG,KACc,CAAC;AAE1F;;GAEG;AACH,eAAO,MAAM,8BAA8B,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,KAAG,KACM,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,4BAA4B,GAAI,SAAS,MAAM,KAAG,KACE,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,MAAM,KAAG,KACJ,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,MAAM,EAAE,OAAO,MAAM,KAAG,KACG,CAAC;AAE5E;;GAEG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,MAAM,EACf,OAAO,MAAM,EACb,aAAa,MAAM,KAClB,KAGA,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,QAAQ,OAAO,KAAG,KACkB,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,4BAA4B,GAAI,aAAa,OAAO,KAAG,KAC0B,CAAC;AAE/F;;GAEG;AACH,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,EAAE,QAAQ,MAAM,KAAG,KAGnF,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const PieChartErrorMessages: {
2
+ readonly PIE_CHART_EMPTY_DATA: "PieChart data is empty or undefined";
3
+ readonly PIE_CHART_INNER_RADIUS_OUT_OF_RANGE: "Inner radius must be less than radius";
4
+ readonly PIE_CHART_INVALID_CANVAS_DIMENSIONS: "Invalid canvas dimensions for PieChart";
5
+ readonly PIE_CHART_INVALID_DATA_KEY: "Invalid or missing dataKey in PieChart data";
6
+ readonly PIE_CHART_INVALID_INNER_RADIUS: "Invalid innerRadius value";
7
+ readonly PIE_CHART_INVALID_RADIUS: "Invalid radius value";
8
+ readonly PIE_CHART_INVALID_SEGMENT_VALUE: "Invalid segment value (non-numeric)";
9
+ readonly PIE_CHART_INVALID_TOTAL: "PieChart total value is zero or invalid";
10
+ readonly PIE_CHART_MISSING_SEGMENT_NAME: "Segment is missing required name property";
11
+ readonly PIE_CHART_NEGATIVE_SEGMENT_VALUE: "Segment value cannot be negative";
12
+ };
13
+ //# sourceMappingURL=pieChartErrorMessages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pieChartErrorMessages.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;CAmBxB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const PieChartErrors: {
2
+ readonly PIE_CHART_EMPTY_DATA: "PIE_CHART_EMPTY_DATA";
3
+ readonly PIE_CHART_INNER_RADIUS_OUT_OF_RANGE: "PIE_CHART_INNER_RADIUS_OUT_OF_RANGE";
4
+ readonly PIE_CHART_INVALID_CANVAS_DIMENSIONS: "PIE_CHART_INVALID_CANVAS_DIMENSIONS";
5
+ readonly PIE_CHART_INVALID_DATA_KEY: "PIE_CHART_INVALID_DATA_KEY";
6
+ readonly PIE_CHART_INVALID_INNER_RADIUS: "PIE_CHART_INVALID_INNER_RADIUS";
7
+ readonly PIE_CHART_INVALID_RADIUS: "PIE_CHART_INVALID_RADIUS";
8
+ readonly PIE_CHART_INVALID_SEGMENT_VALUE: "PIE_CHART_INVALID_SEGMENT_VALUE";
9
+ readonly PIE_CHART_INVALID_TOTAL: "PIE_CHART_INVALID_TOTAL";
10
+ readonly PIE_CHART_MISSING_SEGMENT_NAME: "PIE_CHART_MISSING_SEGMENT_NAME";
11
+ readonly PIE_CHART_NEGATIVE_SEGMENT_VALUE: "PIE_CHART_NEGATIVE_SEGMENT_VALUE";
12
+ };
13
+ export declare const PieChartErrorsRecord: Record<"PIE_CHART_EMPTY_DATA" | "PIE_CHART_INNER_RADIUS_OUT_OF_RANGE" | "PIE_CHART_INVALID_CANVAS_DIMENSIONS" | "PIE_CHART_INVALID_DATA_KEY" | "PIE_CHART_INVALID_INNER_RADIUS" | "PIE_CHART_INVALID_RADIUS" | "PIE_CHART_INVALID_SEGMENT_VALUE" | "PIE_CHART_INVALID_TOTAL" | "PIE_CHART_MISSING_SEGMENT_NAME" | "PIE_CHART_NEGATIVE_SEGMENT_VALUE", Error>;
14
+ //# sourceMappingURL=pieChartErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pieChartErrors.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/buildErrors/constants/errors/pieChartErrors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;CAmBjB,CAAC;AAEX,eAAO,MAAM,oBAAoB,8VAMhC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode } from '../../../node_modules/react';
2
2
  interface GetChildrenAttrProps {
3
3
  attrName: string;
4
4
  originalValue: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubit-ui-web/react-charts",
3
- "version": "1.3.0",
3
+ "version": "1.5.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",
@@ -110,7 +110,8 @@
110
110
  "vitest": "vitest",
111
111
  "vitest-report": "vitest --ui --coverage.enabled=true",
112
112
  "vitest:watch": "vitest - watch",
113
- "dist:all": "yarn run vite build"
113
+ "dist:all": "yarn run vite build",
114
+ "chromatic": "npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
114
115
  },
115
116
  "repository": {
116
117
  "type": "git",
@@ -158,6 +159,7 @@
158
159
  "@storybook/addon-a11y": "10.0.7",
159
160
  "@storybook/addon-coverage": "3.0.0",
160
161
  "@storybook/addon-designs": "11.0.1",
162
+ "@storybook/addon-docs": "10.0.7",
161
163
  "@storybook/addon-links": "10.0.7",
162
164
  "@storybook/addon-themes": "10.0.7",
163
165
  "@storybook/react-vite": "10.0.7",
@@ -177,6 +179,7 @@
177
179
  "@vitest/coverage-v8": "^4.0.9",
178
180
  "@vitest/ui": "^4.0.9",
179
181
  "add": "^2.0.6",
182
+ "chromatic": "^13.3.3",
180
183
  "cpy-cli": "^6.0.0",
181
184
  "eslint": "^9.39.1",
182
185
  "eslint-config-kubit": "1.2.0",
@@ -211,8 +214,7 @@
211
214
  "vitest": "^4.0.9",
212
215
  "vitest-axe": "^0.1.0",
213
216
  "yarn": "^1.22.22",
214
- "yarn-deduplicate": "^6.0.2",
215
- "@storybook/addon-docs": "10.0.7"
217
+ "yarn-deduplicate": "^6.0.2"
216
218
  },
217
219
  "dependencies": {
218
220
  "react": "18.3.1",