@moderneinc/react-charts 1.1.0-next.dcefa6 → 1.2.0-next.2d0a72

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 (45) hide show
  1. package/dist/components/chrono-perspective-chart/chrono-perspective-chart.component.d.ts +3 -0
  2. package/dist/components/chrono-perspective-chart/chrono-perspective-chart.types.d.ts +62 -0
  3. package/dist/components/chrono-perspective-chart/components/category-table.component.d.ts +3 -0
  4. package/dist/components/chrono-perspective-chart/components/category-table.types.d.ts +13 -0
  5. package/dist/components/chrono-perspective-chart/utils/data-transformer.d.ts +9 -0
  6. package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.component.d.ts +7 -0
  7. package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +69 -0
  8. package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +29 -0
  9. package/dist/components/morph-chart/hooks/shared/computations.d.ts +25 -0
  10. package/dist/components/morph-chart/hooks/shared/types.d.ts +20 -0
  11. package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +44 -0
  12. package/dist/components/morph-chart/index.d.ts +2 -0
  13. package/dist/components/morph-chart/morph-chart.component.d.ts +14 -0
  14. package/dist/components/morph-chart/morph-chart.types.d.ts +142 -0
  15. package/dist/components/morph-chart/utils/animation-constants.d.ts +23 -0
  16. package/dist/components/morph-chart/utils/animation-utils.d.ts +44 -0
  17. package/dist/components/morph-chart/utils/arc-path-calculator.d.ts +53 -0
  18. package/dist/components/morph-chart/utils/area-renderer.d.ts +23 -0
  19. package/dist/components/morph-chart/utils/bar-renderer.d.ts +28 -0
  20. package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +252 -0
  21. package/dist/components/morph-chart/utils/morph-interpolator.d.ts +96 -0
  22. package/dist/components/morph-chart/utils/parliament-renderer.d.ts +21 -0
  23. package/dist/components/morph-chart/utils/parliament-seat-extractor.d.ts +33 -0
  24. package/dist/components/morph-chart/utils/position-mapper.d.ts +48 -0
  25. package/dist/components/morph-chart/utils/segment-transformer.d.ts +70 -0
  26. package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
  27. package/dist/components/parliament-chart/hooks/{use-parliament-chart.d.ts → use-parliament-chart.hook.d.ts} +5 -1
  28. package/dist/components/parliament-chart/parliament-chart.types.d.ts +5 -0
  29. package/dist/components/parliament-chart/utils/parliament-animation.d.ts +13 -0
  30. package/dist/components/stacked-area-chart/hooks/use-stacked-area-chart.hook.d.ts +6 -0
  31. package/dist/components/stacked-area-chart/stacked-area-chart.component.d.ts +10 -0
  32. package/dist/components/stacked-area-chart/stacked-area-chart.constants.d.ts +115 -0
  33. package/dist/components/stacked-area-chart/stacked-area-chart.types.d.ts +186 -0
  34. package/dist/components/stacked-area-chart/utils/color.utils.d.ts +4 -0
  35. package/dist/components/timeline-chart/hooks/use-timeline-chart.hook.d.ts +2 -0
  36. package/dist/components/timeline-chart/timeline-chart.component.d.ts +9 -0
  37. package/dist/components/timeline-chart/timeline-chart.types.d.ts +126 -0
  38. package/dist/components/timeline-chart/timeline-selected-events.component.d.ts +9 -0
  39. package/dist/index.cjs +138 -11
  40. package/dist/index.d.ts +19 -6
  41. package/dist/index.js +29500 -4801
  42. package/dist/theme/default-colors.d.ts +8 -4
  43. package/dist/theme/timeline-defaults.d.ts +50 -0
  44. package/package.json +30 -11
  45. /package/dist/components/parliament-chart/{parliament-chart.d.ts → parliament-chart.component.d.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,11 +1,24 @@
1
1
  /**
2
2
  * @moderneinc/react-charts
3
- * Parliament chart visualization library for React
3
+ * Chart visualization library for React
4
4
  */
5
- export { ParliamentChart } from './components/parliament-chart/parliament-chart';
6
- export type { ParliamentChartProps, ProcessedDataItem, HoveredData, ChartConfig } from './components/parliament-chart/parliament-chart.types';
7
- export type { ParliamentChartTheme, ParliamentChartColors } from './theme/default-colors';
8
- export { DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS, CAMPAIGN_NOT_APPLICABLE, CAMPAIGN_NO_LST, CAMPAIGN_DATA_MISSING } from './components/parliament-chart/parliament-chart.constants';
5
+ export { ChronoPerspectiveChart } from './components/chrono-perspective-chart/chrono-perspective-chart.component';
6
+ export type { ChronoPerspectiveCategory, ChronoPerspectiveChartProps, ChronoPerspectiveData, ChronoPerspectiveMode } from './components/chrono-perspective-chart/chrono-perspective-chart.types';
7
+ export type { CategoryTableItem } from './components/chrono-perspective-chart/components/category-table.types';
8
+ export { D3StackedAreaChart } from './components/d3-stacked-area-chart/d3-stacked-area-chart.component';
9
+ export type { D3StackedAreaCategory, D3StackedAreaChartProps, D3StackedAreaDataPoint } from './components/d3-stacked-area-chart/d3-stacked-area-chart.types';
10
+ export { MorphChart } from './components/morph-chart/morph-chart.component';
11
+ export type { AreaLayout, AreaPoint, MorphChartCategory, MorphChartDataPoint, MorphChartProps, MorphMode, ParliamentLayout, SeatPosition } from './components/morph-chart/morph-chart.types';
12
+ export { ParliamentChart } from './components/parliament-chart/parliament-chart.component';
13
+ export { CAMPAIGN_DATA_MISSING, CAMPAIGN_NO_LST, CAMPAIGN_NOT_APPLICABLE, DEFAULT_CHART_CONFIG, MODERNE_VULNERABILITY_COLORS } from './components/parliament-chart/parliament-chart.constants';
14
+ export type { ChartConfig, HoveredData, ParliamentChartProps, ProcessedDataItem } from './components/parliament-chart/parliament-chart.types';
9
15
  export { calculateOptimalArcAngle, calculateOptimalSeatSize } from './components/parliament-chart/utils/parliament-arc-calculator';
10
16
  export { calculateDataSeries } from './components/parliament-chart/utils/parliament-chart-data.utils';
11
- export { DEFAULT_CHART_COLORS } from './theme/default-colors';
17
+ export { StackedAreaChart } from './components/stacked-area-chart/stacked-area-chart.component';
18
+ export { CATEGORY_LABELS, DEFAULT_STACKED_AREA_COLORS, DEFAULT_STACKED_AREA_CONFIG, STACKED_AREA_PALETTES } from './components/stacked-area-chart/stacked-area-chart.constants';
19
+ export type { StackedAreaCategory, StackedAreaChartProps, StackedAreaChartSlotProps, StackedAreaDataPoint, StackedAreaMarker } from './components/stacked-area-chart/stacked-area-chart.types';
20
+ export { TimelineChart } from './components/timeline-chart/timeline-chart.component';
21
+ export type { TimelineChartProps, TimelineEvent, TimelineSelectedEventsProps, TimelineSelection } from './components/timeline-chart/timeline-chart.types';
22
+ export { TimelineSelectedEvents } from './components/timeline-chart/timeline-selected-events.component';
23
+ export type { ParliamentChartColors, ParliamentChartTheme } from './theme/default-colors';
24
+ export { DEFAULT_CHART_COLORS, MEASURE_GRADIENT_COLORS } from './theme/default-colors';