@moderneinc/react-charts 1.2.0-next.ceab4e → 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 +67 -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/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +1 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +3 -1
- 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 +41 -1
- package/dist/components/morph-chart/morph-chart.types.d.ts +27 -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 +23 -0
- package/dist/index.cjs +66 -66
- package/dist/index.js +12889 -11680
- package/dist/theme/timeline-defaults.d.ts +33 -1
- package/package.json +6 -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": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build-storybook": "storybook build",
|
|
28
28
|
"build": "tsc --noEmit && vite build",
|
|
29
|
+
"build:watch": "vite build --watch",
|
|
29
30
|
"check:all": "npm run format && npm run check:lint:fix && npm run check:lint && npm run check:types && npm run test && npm run check:unused",
|
|
30
31
|
"check:biome:fix": "biome check --write",
|
|
31
32
|
"check:biome": "biome check",
|
|
@@ -54,9 +55,12 @@
|
|
|
54
55
|
"recharts": ">=2.0.0"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
58
|
+
"@dnd-kit/core": "^6.3.1",
|
|
59
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
57
60
|
"d3-array": "^3.2.4",
|
|
58
61
|
"d3-axis": "^3.0.0",
|
|
59
62
|
"d3-brush": "^3.0.0",
|
|
63
|
+
"d3-force": "^3.0.0",
|
|
60
64
|
"d3-selection": "^3.0.0",
|
|
61
65
|
"d3-transition": "^3.0.1",
|
|
62
66
|
"gsap": "^3.13.0",
|
|
@@ -104,7 +108,7 @@
|
|
|
104
108
|
"react": "^19.1.1",
|
|
105
109
|
"react-dom": "^19.1.1",
|
|
106
110
|
"recharts": "^2.15.0",
|
|
107
|
-
"semantic-release": "^
|
|
111
|
+
"semantic-release": "^25.0.2",
|
|
108
112
|
"storybook": "^8.4.7",
|
|
109
113
|
"typescript": "^5.9.2",
|
|
110
114
|
"vite": "^6.0.11",
|