@moderneinc/react-charts 1.5.2-next.be917c → 1.5.2-next.c0a92a
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/parliament-chart.constants.d.ts +17 -1
- package/dist/components/parliament-chart/utils/parliament-svg-enhanced.d.ts +5 -0
- package/dist/components/parliament-chart/utils/parliament-svg-patterns.d.ts +0 -18
- package/dist/index.cjs +12 -62
- package/dist/index.js +13551 -16756
- package/dist/theme/color-utils.d.ts +9 -0
- package/dist/theme/default-colors.d.ts +13 -5
- package/package.json +15 -18
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color helpers for deriving seat styling from a base fill color.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Border color for a seat fill: the prototype's hand-picked shade when the fill
|
|
6
|
+
* is a known palette color, otherwise a mathematical darken as a safe fallback
|
|
7
|
+
* (also returns the input unchanged for non-hex colors like `url(#pattern)`).
|
|
8
|
+
*/
|
|
9
|
+
export declare const getSeatBorder: (fill: string) => string;
|
|
@@ -14,13 +14,21 @@ export declare const DEFAULT_CHART_COLORS: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* Measure gradient colors used for progress/distance categories
|
|
18
|
-
* Shared between ParliamentChart and StackedAreaChart for visual consistency
|
|
17
|
+
* Measure gradient colors used for progress/distance categories.
|
|
18
|
+
* Shared between ParliamentChart and StackedAreaChart for visual consistency.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* Values measured from the Morpheus prototype (light theme):
|
|
21
|
+
* https://moderneinc.github.io/prototypes/morpheus.html
|
|
22
|
+
* Progression: green (best/complete) → red (worst/farthest).
|
|
22
23
|
*/
|
|
23
|
-
export declare const MEASURE_GRADIENT_COLORS: readonly ["#
|
|
24
|
+
export declare const MEASURE_GRADIENT_COLORS: readonly ["#30F284", "#FFD34D", "#FFA83D", "#FF8F52", "#FF6F61"];
|
|
25
|
+
/**
|
|
26
|
+
* Explicit border color for each seat fill, measured from the Morpheus
|
|
27
|
+
* prototype. Borders are hand-picked darker, more-saturated shades — not a
|
|
28
|
+
* uniform mathematical darken — so they are mapped rather than computed.
|
|
29
|
+
* Keys are upper-case hex; look up via `getSeatBorder` in `color-utils`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SEAT_BORDER_COLORS: Record<string, string>;
|
|
24
32
|
/**
|
|
25
33
|
* Color configuration type for parliament chart theming
|
|
26
34
|
*/
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moderneinc/react-charts",
|
|
3
|
-
"version": "1.5.2-next.
|
|
3
|
+
"version": "1.5.2-next.c0a92a",
|
|
4
4
|
"description": "Parliament chart visualization library for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devEngines": {
|
|
7
7
|
"runtime": {
|
|
8
8
|
"name": "node",
|
|
9
|
-
"version": "22.
|
|
9
|
+
"version": "22.23.1",
|
|
10
10
|
"onFail": "warn"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
@@ -73,14 +73,11 @@
|
|
|
73
73
|
"@mui/material": "^7.3.2",
|
|
74
74
|
"@semantic-release/changelog": "^6.0.3",
|
|
75
75
|
"@semantic-release/git": "^10.0.1",
|
|
76
|
-
"@storybook/addon-a11y": "^
|
|
77
|
-
"@storybook/addon-
|
|
78
|
-
"@storybook/addon-
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/react": "^8.4.7",
|
|
82
|
-
"@storybook/react-vite": "^8.4.7",
|
|
83
|
-
"@storybook/test": "^8.4.7",
|
|
76
|
+
"@storybook/addon-a11y": "^10.5.3",
|
|
77
|
+
"@storybook/addon-links": "^10.5.3",
|
|
78
|
+
"@storybook/addon-themes": "^10.5.3",
|
|
79
|
+
"@storybook/react": "^10.5.3",
|
|
80
|
+
"@storybook/react-vite": "^10.5.3",
|
|
84
81
|
"@types/d3-axis": "^3.0.6",
|
|
85
82
|
"@types/d3-brush": "^3.0.6",
|
|
86
83
|
"@types/d3-scale": "^4.0.9",
|
|
@@ -90,20 +87,20 @@
|
|
|
90
87
|
"@types/hast": "^3.0.4",
|
|
91
88
|
"@types/react": "^18.3.0",
|
|
92
89
|
"@types/react-dom": "^18.3.0",
|
|
93
|
-
"@vitejs/plugin-react": "^
|
|
94
|
-
"@vitest/coverage-v8": "^
|
|
95
|
-
"@vitest/ui": "^
|
|
96
|
-
"eslint": "^
|
|
90
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
91
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
92
|
+
"@vitest/ui": "^4.1.9",
|
|
93
|
+
"eslint": "^10.7.0",
|
|
97
94
|
"jsdom": "^27.0.0",
|
|
98
95
|
"knip": "^5.66.4",
|
|
99
96
|
"react": "^19.1.1",
|
|
100
97
|
"react-dom": "^19.1.1",
|
|
101
98
|
"semantic-release": "^25.0.2",
|
|
102
|
-
"storybook": "^
|
|
99
|
+
"storybook": "^10.5.3",
|
|
103
100
|
"typescript": "^5.9.2",
|
|
104
|
-
"vite": "^
|
|
105
|
-
"vite-plugin-dts": "^
|
|
106
|
-
"vitest": "^
|
|
101
|
+
"vite": "^8.1.0",
|
|
102
|
+
"vite-plugin-dts": "^5.0.3",
|
|
103
|
+
"vitest": "^4.1.9"
|
|
107
104
|
},
|
|
108
105
|
"publishConfig": {
|
|
109
106
|
"access": "public",
|