@moderneinc/react-charts 1.1.0-next.dcefa6 → 1.2.0-next.3312d9

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.
@@ -13,6 +13,14 @@ export declare const DEFAULT_CHART_COLORS: {
13
13
  readonly 600: "#40c048";
14
14
  };
15
15
  };
16
+ /**
17
+ * Measure gradient colors used for progress/distance categories
18
+ * Shared between ParliamentChart and StackedAreaChart for visual consistency
19
+ *
20
+ * Color progression: Green (best/complete) → Red (worst/farthest)
21
+ * Used for categories like: Complete, Closest, Close, Far, Farthest
22
+ */
23
+ export declare const MEASURE_GRADIENT_COLORS: readonly ["#4CA75A", "#FDDA04", "#FFC008", "#FF9800", "#F9A91B", "#FF5C24", "#ED4134", "#CB3446"];
16
24
  /**
17
25
  * Color configuration type for parliament chart theming
18
26
  */
@@ -0,0 +1,50 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ export declare const TIMELINE_DEFAULTS: {
3
+ readonly colors: {
4
+ readonly primary: "#992FB9";
5
+ readonly background: "#FFFFFF";
6
+ readonly border: "#9CA3AF";
7
+ readonly highlightBackground: "rgba(229, 231, 235, 0.5)";
8
+ readonly monthLabel: "#9ca3af";
9
+ readonly tooltipText: "#6b7280";
10
+ };
11
+ readonly dimensions: {
12
+ readonly height: 32;
13
+ readonly eventWidth: 2;
14
+ };
15
+ };
16
+ export declare const defaultSlotProps: {
17
+ header: {
18
+ sx: SxProps<Theme>;
19
+ };
20
+ title: {
21
+ sx: SxProps<Theme>;
22
+ };
23
+ instructions: {
24
+ sx: SxProps<Theme>;
25
+ };
26
+ monthLabelsContainer: {
27
+ sx: SxProps<Theme>;
28
+ };
29
+ monthLabel: {
30
+ sx: SxProps<Theme>;
31
+ };
32
+ timeline: {
33
+ sx: SxProps<Theme>;
34
+ };
35
+ event: {
36
+ sx: SxProps<Theme>;
37
+ };
38
+ selection: {
39
+ sx: SxProps<Theme>;
40
+ };
41
+ tooltip: {
42
+ sx: SxProps<Theme>;
43
+ };
44
+ tooltipEventName: {
45
+ sx: SxProps<Theme>;
46
+ };
47
+ tooltipDate: {
48
+ sx: SxProps<Theme>;
49
+ };
50
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderneinc/react-charts",
3
- "version": "1.1.0-next.dcefa6",
3
+ "version": "1.2.0-next.3312d9",
4
4
  "description": "Parliament chart visualization library for React",
5
5
  "type": "module",
6
6
  "devEngines": {
@@ -40,7 +40,8 @@
40
40
  "format": "biome format --write .",
41
41
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
42
42
  "preview": "vite preview",
43
- "release": "semantic-release"
43
+ "release": "semantic-release",
44
+ "update:nvmrc": "jq -r '.devEngines.runtime.version' package.json > .nvmrc"
44
45
  },
45
46
  "peerDependencies": {
46
47
  "@emotion/react": ">=11.0.0",
@@ -48,7 +49,8 @@
48
49
  "@mui/icons-material": ">=7.0.0",
49
50
  "@mui/material": ">=7.0.0",
50
51
  "react": "^18.0.0 || ^19.0.0",
51
- "react-dom": "^18.0.0 || ^19.0.0"
52
+ "react-dom": "^18.0.0 || ^19.0.0",
53
+ "recharts": ">=2.0.0"
52
54
  },
53
55
  "dependencies": {
54
56
  "hast-util-to-html": "^9.0.5",
@@ -85,6 +87,7 @@
85
87
  "jsdom": "^27.0.0",
86
88
  "react": "^19.1.1",
87
89
  "react-dom": "^19.1.1",
90
+ "recharts": "^2.15.0",
88
91
  "semantic-release": "^24.2.0",
89
92
  "storybook": "^8.4.7",
90
93
  "typescript": "^5.9.2",