@moderneinc/react-charts 1.2.0-next.c015c0 → 1.2.0-next.ceab4e
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 +3 -0
- package/dist/components/chrono-chart/chrono-chart.types.d.ts +58 -0
- package/dist/components/chrono-chart/components/category-table.component.d.ts +3 -0
- package/dist/components/chrono-chart/components/category-table.types.d.ts +17 -0
- package/dist/components/chrono-chart/utils/data-transformer.d.ts +9 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.component.d.ts +7 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +88 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +32 -0
- package/dist/components/morph-chart/hooks/shared/computations.d.ts +27 -0
- package/dist/components/morph-chart/hooks/shared/types.d.ts +22 -0
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +49 -0
- package/dist/components/morph-chart/index.d.ts +2 -0
- package/dist/components/morph-chart/morph-chart.component.d.ts +14 -0
- package/dist/components/morph-chart/morph-chart.types.d.ts +142 -0
- package/dist/components/morph-chart/utils/animation-constants.d.ts +23 -0
- package/dist/components/morph-chart/utils/animation-utils.d.ts +44 -0
- package/dist/components/morph-chart/utils/arc-path-calculator.d.ts +53 -0
- package/dist/components/morph-chart/utils/area-renderer.d.ts +24 -0
- package/dist/components/morph-chart/utils/bar-renderer.d.ts +19 -0
- package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +252 -0
- package/dist/components/morph-chart/utils/morph-interpolator.d.ts +96 -0
- package/dist/components/morph-chart/utils/parliament-renderer.d.ts +23 -0
- package/dist/components/morph-chart/utils/parliament-seat-extractor.d.ts +33 -0
- package/dist/components/morph-chart/utils/position-mapper.d.ts +48 -0
- package/dist/components/morph-chart/utils/segment-transformer.d.ts +70 -0
- package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
- package/dist/components/parliament-chart/hooks/use-parliament-chart.hook.d.ts +5 -1
- package/dist/components/parliament-chart/parliament-chart.types.d.ts +5 -0
- package/dist/components/parliament-chart/utils/parliament-animation.d.ts +13 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.types.d.ts +23 -0
- package/dist/components/stacked-area-chart/utils/color.utils.d.ts +0 -5
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +21 -0
- package/dist/index.cjs +109 -71
- package/dist/index.d.ts +7 -0
- package/dist/index.js +23479 -16644
- package/dist/theme/default-colors.d.ts +0 -4
- package/package.json +25 -9
|
@@ -32,7 +32,3 @@ export type ParliamentChartColors = typeof DEFAULT_CHART_COLORS;
|
|
|
32
32
|
export interface ParliamentChartTheme {
|
|
33
33
|
colors?: Partial<ParliamentChartColors>;
|
|
34
34
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Merges custom theme colors with default colors
|
|
37
|
-
*/
|
|
38
|
-
export declare function mergeThemeColors(customColors?: Partial<ParliamentChartColors>): ParliamentChartColors;
|
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.ceab4e",
|
|
4
4
|
"description": "Parliament chart visualization library for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devEngines": {
|
|
@@ -24,23 +24,24 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"dev": "vite",
|
|
28
|
-
"build": "tsc --noEmit && vite build",
|
|
29
|
-
"test": "vitest",
|
|
30
|
-
"test:ui": "vitest --ui",
|
|
31
|
-
"storybook": "storybook dev -p 6006",
|
|
32
27
|
"build-storybook": "storybook build",
|
|
33
|
-
"
|
|
34
|
-
"check:lint:fix
|
|
35
|
-
"check:lint": "npm run check:biome",
|
|
28
|
+
"build": "tsc --noEmit && vite build",
|
|
29
|
+
"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",
|
|
36
30
|
"check:biome:fix": "biome check --write",
|
|
37
31
|
"check:biome": "biome check",
|
|
32
|
+
"check:lint:fix": "npm run check:biome:fix",
|
|
33
|
+
"check:lint": "npm run check:biome",
|
|
38
34
|
"check:types": "tsc --noEmit",
|
|
35
|
+
"check:unused": "knip",
|
|
36
|
+
"dev": "vite",
|
|
39
37
|
"format:check": "biome format .",
|
|
40
38
|
"format": "biome format --write .",
|
|
41
39
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
42
40
|
"preview": "vite preview",
|
|
43
41
|
"release": "semantic-release",
|
|
42
|
+
"storybook": "storybook dev -p 6006",
|
|
43
|
+
"test:ui": "vitest --ui",
|
|
44
|
+
"test": "vitest",
|
|
44
45
|
"update:nvmrc": "jq -r '.devEngines.runtime.version' package.json > .nvmrc"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
@@ -53,6 +54,12 @@
|
|
|
53
54
|
"recharts": ">=2.0.0"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
57
|
+
"d3-array": "^3.2.4",
|
|
58
|
+
"d3-axis": "^3.0.0",
|
|
59
|
+
"d3-brush": "^3.0.0",
|
|
60
|
+
"d3-selection": "^3.0.0",
|
|
61
|
+
"d3-transition": "^3.0.1",
|
|
62
|
+
"gsap": "^3.13.0",
|
|
56
63
|
"hast-util-to-html": "^9.0.5",
|
|
57
64
|
"hastscript": "^9.0.1",
|
|
58
65
|
"sainte-lague": "^3.0.0"
|
|
@@ -74,6 +81,13 @@
|
|
|
74
81
|
"@storybook/react": "^8.4.7",
|
|
75
82
|
"@storybook/react-vite": "^8.4.7",
|
|
76
83
|
"@storybook/test": "^8.4.7",
|
|
84
|
+
"@types/d3-array": "^3.2.2",
|
|
85
|
+
"@types/d3-axis": "^3.0.6",
|
|
86
|
+
"@types/d3-brush": "^3.0.6",
|
|
87
|
+
"@types/d3-scale": "^4.0.9",
|
|
88
|
+
"@types/d3-selection": "^3.0.11",
|
|
89
|
+
"@types/d3-shape": "^3.1.7",
|
|
90
|
+
"@types/d3-transition": "^3.0.9",
|
|
77
91
|
"@types/react": "^18.3.0",
|
|
78
92
|
"@types/react-dom": "^18.3.0",
|
|
79
93
|
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
@@ -85,6 +99,8 @@
|
|
|
85
99
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
86
100
|
"eslint-plugin-storybook": "^0.11.1",
|
|
87
101
|
"jsdom": "^27.0.0",
|
|
102
|
+
"knip": "^5.66.4",
|
|
103
|
+
"playwright": "^1.56.1",
|
|
88
104
|
"react": "^19.1.1",
|
|
89
105
|
"react-dom": "^19.1.1",
|
|
90
106
|
"recharts": "^2.15.0",
|