@moderneinc/react-charts 1.1.0 → 1.2.0
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/parliament-chart/hooks/{useParliamentChart.d.ts → use-parliament-chart.hook.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.d.ts → parliament-chart.component.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.types.d.ts → parliament-chart.types.d.ts} +1 -1
- package/dist/components/timeline-chart/hooks/use-timeline-chart.hook.d.ts +2 -0
- package/dist/components/timeline-chart/timeline-chart.component.d.ts +9 -0
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +112 -0
- package/dist/components/timeline-chart/timeline-selected-events.component.d.ts +9 -0
- package/dist/index.cjs +11 -11
- package/dist/index.d.ts +11 -8
- package/dist/index.js +2945 -2438
- package/dist/theme/timeline-defaults.d.ts +50 -0
- package/package.json +5 -4
- /package/dist/components/parliament-chart/{ParliamentChart.constants.d.ts → parliament-chart.constants.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentArcCalculator.d.ts → parliament-arc-calculator.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentChartData.utils.d.ts → parliament-chart-data.utils.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgEnhanced.d.ts → parliament-svg-enhanced.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgPatterns.d.ts → parliament-svg-patterns.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvg.d.ts → parliament-svg.d.ts} +0 -0
- /package/dist/theme/{defaultColors.d.ts → default-colors.d.ts} +0 -0
|
@@ -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.
|
|
3
|
+
"version": "1.2.0",
|
|
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",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"@typescript-eslint/eslint-plugin": "^8.44.0",
|
|
78
79
|
"@typescript-eslint/parser": "^8.44.0",
|
|
79
80
|
"@vitejs/plugin-react": "^4.3.4",
|
|
80
|
-
"@vitest/ui": "^2.
|
|
81
|
+
"@vitest/ui": "^3.2.4",
|
|
81
82
|
"eslint": "^9.36.0",
|
|
82
83
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
83
84
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"typescript": "^5.9.2",
|
|
91
92
|
"vite": "^6.0.11",
|
|
92
93
|
"vite-plugin-dts": "^4.4.3",
|
|
93
|
-
"vitest": "^2.
|
|
94
|
+
"vitest": "^3.2.4"
|
|
94
95
|
},
|
|
95
96
|
"publishConfig": {
|
|
96
97
|
"access": "public",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|