@moderneinc/react-charts 1.2.0-next.d2aaa2 → 1.2.0-next.e3d952
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.
- package/dist/components/chrono-chart/chrono-chart.component.d.ts +7 -0
- package/dist/components/chrono-chart/chrono-chart.types.d.ts +58 -2
- package/dist/components/chrono-chart/components/category-table.component.d.ts +10 -0
- package/dist/components/chrono-chart/components/category-table.types.d.ts +25 -0
- package/dist/components/chrono-chart/utils/data-transformer.d.ts +32 -0
- package/dist/components/morph-chart/hooks/shared/computations.d.ts +12 -10
- package/dist/components/morph-chart/hooks/shared/types.d.ts +7 -5
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +5 -1
- package/dist/components/morph-chart/morph-chart.types.d.ts +15 -0
- package/dist/components/morph-chart/utils/accordion-generator.d.ts +102 -0
- package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +55 -16
- package/dist/components/morph-chart/utils/slinky-3d-generator.d.ts +35 -0
- package/dist/components/morph-chart/utils/svg-slinky-generator.d.ts +25 -0
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +17 -0
- package/dist/index.cjs +67 -67
- package/dist/index.js +12221 -11430
- package/dist/theme/timeline-defaults.d.ts +33 -1
- package/package.json +5 -2
|
@@ -4,7 +4,7 @@ export declare const TIMELINE_DEFAULTS: {
|
|
|
4
4
|
readonly primary: "#992FB9";
|
|
5
5
|
readonly background: "#FFFFFF";
|
|
6
6
|
readonly border: "#9CA3AF";
|
|
7
|
-
readonly highlightBackground: "rgba(
|
|
7
|
+
readonly highlightBackground: "rgba(31, 41, 55, 0.14)";
|
|
8
8
|
readonly monthLabel: "#9ca3af";
|
|
9
9
|
readonly tooltipText: "#6b7280";
|
|
10
10
|
};
|
|
@@ -13,6 +13,17 @@ export declare const TIMELINE_DEFAULTS: {
|
|
|
13
13
|
readonly eventWidth: 2;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Get default slot props with arrow handle styling
|
|
18
|
+
*/
|
|
19
|
+
export declare const getArrowHandleSlotProps: (color?: string) => {
|
|
20
|
+
startHandle: {
|
|
21
|
+
sx: SxProps<Theme>;
|
|
22
|
+
};
|
|
23
|
+
endHandle: {
|
|
24
|
+
sx: SxProps<Theme>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
16
27
|
export declare const defaultSlotProps: {
|
|
17
28
|
header: {
|
|
18
29
|
sx: SxProps<Theme>;
|
|
@@ -38,6 +49,8 @@ export declare const defaultSlotProps: {
|
|
|
38
49
|
selection: {
|
|
39
50
|
sx: SxProps<Theme>;
|
|
40
51
|
};
|
|
52
|
+
startHandle: {};
|
|
53
|
+
endHandle: {};
|
|
41
54
|
tooltip: {
|
|
42
55
|
sx: SxProps<Theme>;
|
|
43
56
|
};
|
|
@@ -48,3 +61,22 @@ export declare const defaultSlotProps: {
|
|
|
48
61
|
sx: SxProps<Theme>;
|
|
49
62
|
};
|
|
50
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Get grip handle slot props with custom color
|
|
66
|
+
*/
|
|
67
|
+
export declare const getGripHandleSlotProps: (color?: string) => {
|
|
68
|
+
startHandle: {
|
|
69
|
+
sx: SxProps<Theme>;
|
|
70
|
+
};
|
|
71
|
+
endHandle: {
|
|
72
|
+
sx: SxProps<Theme>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export declare const gripHandleSlotProps: {
|
|
76
|
+
startHandle: {
|
|
77
|
+
sx: SxProps<Theme>;
|
|
78
|
+
};
|
|
79
|
+
endHandle: {
|
|
80
|
+
sx: SxProps<Theme>;
|
|
81
|
+
};
|
|
82
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moderneinc/react-charts",
|
|
3
|
-
"version": "1.2.0-next.
|
|
3
|
+
"version": "1.2.0-next.e3d952",
|
|
4
4
|
"description": "Parliament chart visualization library for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devEngines": {
|
|
@@ -55,9 +55,12 @@
|
|
|
55
55
|
"recharts": ">=2.0.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
+
"@dnd-kit/core": "^6.3.1",
|
|
59
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
58
60
|
"d3-array": "^3.2.4",
|
|
59
61
|
"d3-axis": "^3.0.0",
|
|
60
62
|
"d3-brush": "^3.0.0",
|
|
63
|
+
"d3-force": "^3.0.0",
|
|
61
64
|
"d3-selection": "^3.0.0",
|
|
62
65
|
"d3-transition": "^3.0.1",
|
|
63
66
|
"gsap": "^3.13.0",
|
|
@@ -105,7 +108,7 @@
|
|
|
105
108
|
"react": "^19.1.1",
|
|
106
109
|
"react-dom": "^19.1.1",
|
|
107
110
|
"recharts": "^2.15.0",
|
|
108
|
-
"semantic-release": "^
|
|
111
|
+
"semantic-release": "^25.0.2",
|
|
109
112
|
"storybook": "^8.4.7",
|
|
110
113
|
"typescript": "^5.9.2",
|
|
111
114
|
"vite": "^6.0.11",
|