@spaced-out/ui-design-system 0.5.33 → 0.5.34-beta.2
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/.github/workflows/publish-mcp.yml +10 -7
- package/.storybook/main.ts +145 -29
- package/.storybook/manager-head.html +18 -0
- package/.storybook/preview-head.html +4 -0
- package/.storybook/preview.ts +4 -4
- package/.storybook/tsconfig.json +3 -2
- package/CHANGELOG.md +27 -0
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts +3 -6
- package/lib/components/Charts/ColumnChart/ColumnChart.d.ts.map +1 -1
- package/lib/components/Charts/ColumnChart/ColumnChart.js +3 -5
- package/lib/components/Charts/DonutChart/DonutChart.d.ts +2 -2
- package/lib/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
- package/lib/components/Charts/DonutChart/DonutChart.js +5 -3
- package/lib/components/Charts/LineChart/LineChart.d.ts +3 -2
- package/lib/components/Charts/LineChart/LineChart.d.ts.map +1 -1
- package/lib/components/Charts/LineChart/LineChart.js +1 -2
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts +4 -2
- package/lib/components/Charts/SankeyChart/SankeyChart.d.ts.map +1 -1
- package/lib/components/Charts/SankeyChart/SankeyChart.js +18 -26
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts +3 -2
- package/lib/components/Charts/SpiderChart/SpiderChart.d.ts.map +1 -1
- package/lib/components/Charts/SpiderChart/SpiderChart.js +1 -2
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +3 -2
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts.map +1 -1
- package/lib/components/Charts/StackedBarChart/StackedBarChart.js +1 -2
- package/lib/types/charts.d.ts +24 -249
- package/lib/types/charts.d.ts.map +1 -1
- package/lib/utils/charts/charts.d.ts.map +1 -1
- package/lib/utils/charts/charts.js +3 -2
- package/lib/utils/charts/donutChart.d.ts.map +1 -1
- package/lib/utils/charts/donutChart.js +2 -4
- package/lib/utils/charts/funnelChart.d.ts +2 -1
- package/lib/utils/charts/funnelChart.d.ts.map +1 -1
- package/lib/utils/charts/funnelChart.js +19 -10
- package/lib/utils/charts/helpers.d.ts +1 -1
- package/lib/utils/charts/helpers.d.ts.map +1 -1
- package/lib/utils/charts/sankeyChart.d.ts.map +1 -1
- package/lib/utils/charts/sankeyChart.js +0 -1
- package/mcp/package.json +1 -1
- package/package.json +23 -9
- package/postcss.config.js +11 -3
|
@@ -3,20 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
name: Publish MCP Server to NPM
|
|
5
5
|
|
|
6
|
+
# WORKFLOW DISABLED - Triggers commented out to prevent automatic runs
|
|
7
|
+
# Uncomment below to re-enable the workflow triggers
|
|
6
8
|
on:
|
|
7
9
|
# Run after the main NPM publish workflow completes successfully
|
|
8
|
-
workflow_run:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
workflow_dispatch:
|
|
10
|
+
# workflow_run:
|
|
11
|
+
# workflows: ['Release Genesis to NPM']
|
|
12
|
+
# types:
|
|
13
|
+
# - completed
|
|
14
|
+
# branches: [master]
|
|
15
|
+
workflow_dispatch: # Manual trigger only (but workflow will exit early due to condition below)
|
|
14
16
|
|
|
15
17
|
jobs:
|
|
16
18
|
publish-mcp:
|
|
17
19
|
runs-on: ubuntu-latest
|
|
20
|
+
# WORKFLOW DISABLED - Set to false to prevent execution
|
|
18
21
|
# Only run if triggered manually or if the workflow_run succeeded
|
|
19
|
-
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
|
22
|
+
if: false && ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
|
20
23
|
steps:
|
|
21
24
|
- name: Check Permissions
|
|
22
25
|
id: check-permissions
|
package/.storybook/main.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
// .storybook/main.ts
|
|
2
|
+
import {fileURLToPath} from 'node:url';
|
|
3
|
+
import {createRequire} from 'node:module';
|
|
2
4
|
import type {StorybookConfig} from '@storybook/react-webpack5';
|
|
3
|
-
import path from 'node:path';
|
|
5
|
+
import path, {dirname} from 'node:path';
|
|
4
6
|
import webpack from 'webpack';
|
|
5
7
|
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = dirname(__filename);
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
|
|
6
12
|
const config: StorybookConfig = {
|
|
7
13
|
stories: ['../src/**/*.mdx', '../src/**/*.stories.tsx'],
|
|
14
|
+
|
|
8
15
|
addons: [
|
|
9
|
-
|
|
10
|
-
name: '@storybook/addon-docs',
|
|
11
|
-
options: {
|
|
12
|
-
configureJSX: false,
|
|
13
|
-
babelOptions: {},
|
|
14
|
-
sourceLoaderOptions: null,
|
|
15
|
-
transcludeMarkdown: true,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
'storybook-css-modules',
|
|
16
|
+
'@storybook/addon-docs',
|
|
19
17
|
'@storybook/addon-a11y',
|
|
20
18
|
'@storybook/addon-webpack5-compiler-babel',
|
|
21
19
|
'@chromatic-com/storybook',
|
|
20
|
+
// NOTE: We handle CSS manually in webpackFinal to have full control
|
|
22
21
|
],
|
|
23
22
|
|
|
24
23
|
babel: async (options: any) => ({
|
|
@@ -44,24 +43,146 @@ const config: StorybookConfig = {
|
|
|
44
43
|
}),
|
|
45
44
|
|
|
46
45
|
webpackFinal: async (cfg) => {
|
|
47
|
-
const config = {...cfg};
|
|
46
|
+
const config: any = {...cfg};
|
|
48
47
|
|
|
49
|
-
//
|
|
48
|
+
// ---------- Resolve / aliases ----------
|
|
50
49
|
config.resolve ||= {};
|
|
51
50
|
config.resolve.alias = {
|
|
52
51
|
...(config.resolve.alias ?? {}),
|
|
53
52
|
src: path.resolve(__dirname, '../src'),
|
|
54
53
|
};
|
|
55
54
|
|
|
56
|
-
// Optional: fallback for other node built-ins if any 3p lib requires them
|
|
57
55
|
config.resolve.fallback = {
|
|
58
56
|
...(config.resolve.fallback ?? {}),
|
|
59
57
|
process: require.resolve('process/browser'),
|
|
60
58
|
};
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
config.module
|
|
64
|
-
|
|
60
|
+
config.module ||= {};
|
|
61
|
+
config.module.rules = config.module.rules || [];
|
|
62
|
+
|
|
63
|
+
// ---------- CRITICAL: Remove Storybook's built-in CSS rules ----------
|
|
64
|
+
// This prevents conflicts with our custom CSS Module configuration
|
|
65
|
+
config.module.rules = config.module.rules.filter((rule: any) => {
|
|
66
|
+
if (!rule) return true;
|
|
67
|
+
if (!rule.test) return true;
|
|
68
|
+
|
|
69
|
+
const testStr = rule.test.toString();
|
|
70
|
+
// Remove any CSS-related rules (both .css and .scss/.sass)
|
|
71
|
+
if (testStr.includes('css') || testStr.includes('scss') || testStr.includes('sass')) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return true;
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
// ---------- Add our CSS Module rules ----------
|
|
78
|
+
// Rule 1: CSS Modules for *.module.css files
|
|
79
|
+
config.module.rules.push({
|
|
80
|
+
test: /\.module\.css$/,
|
|
81
|
+
use: [
|
|
82
|
+
require.resolve('style-loader'),
|
|
83
|
+
{
|
|
84
|
+
loader: require.resolve('css-loader'),
|
|
85
|
+
options: {
|
|
86
|
+
importLoaders: 1,
|
|
87
|
+
modules: {
|
|
88
|
+
// css-loader 7.x requires these options for `import css from` pattern
|
|
89
|
+
namedExport: false,
|
|
90
|
+
exportLocalsConvention: 'as-is',
|
|
91
|
+
localIdentName: '[name]__[local]--[hash:base64:5]',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
loader: require.resolve('postcss-loader'),
|
|
97
|
+
options: {
|
|
98
|
+
implementation: require.resolve('postcss'),
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
// Rule 2: CSS Modules for styles/variables/*.css (design tokens with @value)
|
|
105
|
+
config.module.rules.push({
|
|
106
|
+
test: /\.css$/,
|
|
107
|
+
include: [path.resolve(__dirname, '../src/styles/variables')],
|
|
108
|
+
use: [
|
|
109
|
+
require.resolve('style-loader'),
|
|
110
|
+
{
|
|
111
|
+
loader: require.resolve('css-loader'),
|
|
112
|
+
options: {
|
|
113
|
+
importLoaders: 1,
|
|
114
|
+
modules: {
|
|
115
|
+
namedExport: false,
|
|
116
|
+
exportLocalsConvention: 'as-is',
|
|
117
|
+
localIdentName: '[name]__[local]--[hash:base64:5]',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
loader: require.resolve('postcss-loader'),
|
|
123
|
+
options: {
|
|
124
|
+
implementation: require.resolve('postcss'),
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// Rule 3: Regular CSS (non-modules) - must come AFTER module rules
|
|
131
|
+
config.module.rules.push({
|
|
132
|
+
test: /\.css$/,
|
|
133
|
+
exclude: [
|
|
134
|
+
/\.module\.css$/,
|
|
135
|
+
path.resolve(__dirname, '../src/styles/variables'),
|
|
136
|
+
],
|
|
137
|
+
use: [
|
|
138
|
+
require.resolve('style-loader'),
|
|
139
|
+
{
|
|
140
|
+
loader: require.resolve('css-loader'),
|
|
141
|
+
options: {
|
|
142
|
+
importLoaders: 1,
|
|
143
|
+
modules: false, // Plain CSS, not modules
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
loader: require.resolve('postcss-loader'),
|
|
148
|
+
options: {
|
|
149
|
+
implementation: require.resolve('postcss'),
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
// Rule 4: Sass/SCSS support
|
|
156
|
+
config.module.rules.push({
|
|
157
|
+
test: /\.s[ac]ss$/i,
|
|
158
|
+
use: [
|
|
159
|
+
require.resolve('style-loader'),
|
|
160
|
+
{
|
|
161
|
+
loader: require.resolve('css-loader'),
|
|
162
|
+
options: {
|
|
163
|
+
importLoaders: 2,
|
|
164
|
+
modules: {
|
|
165
|
+
auto: (resourcePath: string) =>
|
|
166
|
+
resourcePath.endsWith('.module.scss') ||
|
|
167
|
+
resourcePath.endsWith('.module.sass'),
|
|
168
|
+
namedExport: false,
|
|
169
|
+
exportLocalsConvention: 'as-is',
|
|
170
|
+
localIdentName: '[name]__[local]--[hash:base64:5]',
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
loader: require.resolve('sass-loader'),
|
|
176
|
+
options: {
|
|
177
|
+
implementation: require.resolve('sass'),
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
// ---------- Font rule tweak ----------
|
|
184
|
+
config.module.rules = config.module.rules.map((rule: any) => {
|
|
185
|
+
if (rule?.test && rule.test.toString().includes('woff')) {
|
|
65
186
|
return {
|
|
66
187
|
...rule,
|
|
67
188
|
test: /\.(svg|ico|jpg|jpeg|png|gif|webp|cur|ani|pdf)(\?.*)?$/,
|
|
@@ -70,15 +191,8 @@ const config: StorybookConfig = {
|
|
|
70
191
|
return rule;
|
|
71
192
|
});
|
|
72
193
|
|
|
73
|
-
//
|
|
74
|
-
config.module
|
|
75
|
-
test: /\.scss$/,
|
|
76
|
-
use: ['style-loader', 'css-loader?modules=true', 'sass-loader'],
|
|
77
|
-
include: path.resolve(__dirname, '../'),
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
// Ensure TSX goes through babel-loader
|
|
81
|
-
config.module!.rules!.push({
|
|
194
|
+
// ---------- TS/TSX via babel-loader ----------
|
|
195
|
+
config.module.rules.push({
|
|
82
196
|
test: /\.(ts|tsx)$/,
|
|
83
197
|
loader: require.resolve('babel-loader'),
|
|
84
198
|
options: {
|
|
@@ -87,26 +201,28 @@ const config: StorybookConfig = {
|
|
|
87
201
|
},
|
|
88
202
|
});
|
|
89
203
|
|
|
90
|
-
//
|
|
204
|
+
// ---------- Plugins ----------
|
|
91
205
|
config.plugins = [
|
|
92
206
|
...(config.plugins ?? []),
|
|
93
207
|
new webpack.ProvidePlugin({
|
|
94
208
|
process: 'process/browser',
|
|
95
209
|
}),
|
|
96
210
|
new webpack.DefinePlugin({
|
|
97
|
-
// Provide at least NODE_ENV; add more keys if you reference them in code
|
|
98
211
|
'process.env.NODE_ENV': JSON.stringify(
|
|
99
212
|
process.env.NODE_ENV ?? 'development',
|
|
100
213
|
),
|
|
101
214
|
}),
|
|
102
215
|
];
|
|
103
216
|
|
|
104
|
-
(config.resolve
|
|
217
|
+
(config.resolve.extensions as string[]).push('.ts', '.tsx');
|
|
218
|
+
|
|
105
219
|
return config;
|
|
106
220
|
},
|
|
107
221
|
|
|
108
222
|
staticDirs: ['public', '../design-tokens'],
|
|
223
|
+
|
|
109
224
|
framework: {name: '@storybook/react-webpack5', options: {}},
|
|
225
|
+
|
|
110
226
|
typescript: {reactDocgen: 'react-docgen-typescript'},
|
|
111
227
|
};
|
|
112
228
|
|
|
@@ -127,4 +127,22 @@
|
|
|
127
127
|
div#sidebar-bottom-wrapper {
|
|
128
128
|
display: none;
|
|
129
129
|
}
|
|
130
|
+
|
|
131
|
+
.search-field + button {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.sidebar-item button {
|
|
136
|
+
box-shadow: none !important;
|
|
137
|
+
background: inherit !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.sidebar-item button:hover {
|
|
141
|
+
box-shadow: none !important;
|
|
142
|
+
background: inherit !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
section {
|
|
146
|
+
background: #fff;
|
|
147
|
+
}
|
|
130
148
|
</style>
|
package/.storybook/preview.ts
CHANGED
|
@@ -16,10 +16,10 @@ const preview: Preview = {
|
|
|
16
16
|
},
|
|
17
17
|
controls: {disableSaveFromUI: true},
|
|
18
18
|
backgrounds: {
|
|
19
|
-
|
|
20
|
-
{name: 'Dark', value: '#000'},
|
|
21
|
-
{name: 'Light', value: '#fff'}
|
|
22
|
-
|
|
19
|
+
options: {
|
|
20
|
+
dark: {name: 'Dark', value: '#000'},
|
|
21
|
+
light: {name: 'Light', value: '#fff'}
|
|
22
|
+
},
|
|
23
23
|
},
|
|
24
24
|
docs: {
|
|
25
25
|
theme: themes.light,
|
package/.storybook/tsconfig.json
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"noEmit": true,
|
|
5
5
|
"rootDir": "..",
|
|
6
|
-
"moduleResolution": "
|
|
7
|
-
"module": "
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"target": "ESNext",
|
|
8
9
|
"jsx": "react-jsx",
|
|
9
10
|
"types": ["node", "webpack-env"],
|
|
10
11
|
"resolveJsonModule": true,
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.34-beta.2](https://github.com/spaced-out/ui-design-system/compare/v0.5.34-beta.1...v0.5.34-beta.2) (2025-12-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* removed provenance as its only allowed for private repos ([f184dc1](https://github.com/spaced-out/ui-design-system/commit/f184dc10cf2a82b709aa972f835cea7207a99993))
|
|
11
|
+
|
|
12
|
+
### [0.5.34-beta.1](https://github.com/spaced-out/ui-design-system/compare/v0.5.34-beta.0...v0.5.34-beta.1) (2025-12-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* storybook 10 upgrade and related changes ([#448](https://github.com/spaced-out/ui-design-system/issues/448)) ([c9dbdba](https://github.com/spaced-out/ui-design-system/commit/c9dbdbaedf66e7dd0e395f534794f79469e2ac5a))
|
|
18
|
+
* updated to using granular npm tokens ([877ecbc](https://github.com/spaced-out/ui-design-system/commit/877ecbc96d18cd8b5ffe50ec333774bdb42bc9a0))
|
|
19
|
+
|
|
20
|
+
### [0.5.34-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.5.33...v0.5.34-beta.0) (2025-12-11)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* types from Highcharts ([#444](https://github.com/spaced-out/ui-design-system/issues/444)) ([9e723a1](https://github.com/spaced-out/ui-design-system/commit/9e723a1c9097830e1272a9045a621df37f331945))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* no mcp trigger for now ([a3ccb8c](https://github.com/spaced-out/ui-design-system/commit/a3ccb8c4fe4a5f9203dc5fa8fb6a2dc64cc0cb8f))
|
|
31
|
+
|
|
5
32
|
### [0.5.33](https://github.com/spaced-out/ui-design-system/compare/v0.5.32...v0.5.33) (2025-12-08)
|
|
6
33
|
|
|
7
34
|
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SeriesColumnOptions } from 'highcharts';
|
|
3
3
|
import type { ChartOptions, DataOptionsType, Drilldown } from '../../../types/charts';
|
|
4
4
|
import type { ChartWrapperClassNames, ExportOptionType } from '../../../components/Charts/ChartWrapper';
|
|
5
|
-
export interface SeriesWithData extends Omit<SeriesOptionsType, 'data'> {
|
|
6
|
-
data?: DataOptionsType[];
|
|
7
|
-
}
|
|
8
5
|
type ClassNames = Readonly<ChartWrapperClassNames & {
|
|
9
6
|
highChart?: string;
|
|
10
7
|
}>;
|
|
11
|
-
export
|
|
8
|
+
export type ColumnSeries = Omit<SeriesColumnOptions, 'data' | 'type'> & {
|
|
12
9
|
name: string;
|
|
13
10
|
data: DataOptionsType[];
|
|
14
|
-
}
|
|
11
|
+
};
|
|
15
12
|
export interface ColumnChartProps extends Omit<ChartOptions, 'isLoading' | 'classNames' | 'cardTitle' | 'customExportOptions' | 'series' | 'drilldown' | 'headerActions' | 'hasEmptyData' | 'emptyText'> {
|
|
16
13
|
isLoading?: boolean;
|
|
17
14
|
classNames?: ClassNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/ColumnChart/ColumnChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"ColumnChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/ColumnChart/ColumnChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAKpD,OAAO,KAAK,EACV,YAAY,EAEZ,eAAe,EACf,SAAS,EACV,MAAM,kBAAkB,CAAC;AAS1B,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAQ5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,YAAY,EACV,WAAW,GACX,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,QAAQ,GACR,WAAW,GACX,eAAe,GACf,cAAc,GACd,WAAW,CACd;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,8IAYzB,gBAAgB,sBA2ElB,CAAC"}
|
|
@@ -14,8 +14,6 @@ var _ColumnChartModule = _interopRequireDefault(require("./ColumnChart.module.cs
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
17
|
-
// Type guard to check if series has data property
|
|
18
|
-
|
|
19
17
|
const ColumnChart = _ref => {
|
|
20
18
|
let {
|
|
21
19
|
isLoading,
|
|
@@ -32,17 +30,17 @@ const ColumnChart = _ref => {
|
|
|
32
30
|
} = _ref;
|
|
33
31
|
const chartRef = /*#__PURE__*/React.createRef();
|
|
34
32
|
const columnChartSeries = series.map((seriesItem, index) => ({
|
|
33
|
+
type: 'column',
|
|
35
34
|
...seriesItem,
|
|
36
|
-
name: seriesItem.name,
|
|
37
35
|
data: seriesItem.data,
|
|
38
36
|
color: (0, _charts.getDataVizColor)(index),
|
|
39
37
|
pointWidth: _charts.columnPlotWidth
|
|
40
38
|
}));
|
|
41
|
-
const addColorToDrilldownSeries =
|
|
42
|
-
// Type guard to check if series has data property
|
|
39
|
+
const addColorToDrilldownSeries = drilldownSeries => drilldownSeries?.map(seriesItem => {
|
|
43
40
|
const seriesWithData = seriesItem;
|
|
44
41
|
return {
|
|
45
42
|
...seriesItem,
|
|
43
|
+
type: seriesItem.type ?? 'column',
|
|
46
44
|
...(seriesWithData.data && {
|
|
47
45
|
data: seriesWithData.data.map((dataItem, index) => ({
|
|
48
46
|
...dataItem,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ChartOptions, Drilldown, LegendOptionsType,
|
|
2
|
+
import type { ChartOptions, Drilldown, LegendOptionsType, PieSeriesOptions } from '../../../types/charts';
|
|
3
3
|
import type { ChartWrapperClassNames, ExportOptionType } from '../../../components/Charts/ChartWrapper';
|
|
4
4
|
type ClassNames = Readonly<ChartWrapperClassNames & {
|
|
5
5
|
highChart?: string;
|
|
@@ -18,7 +18,7 @@ export interface DonutChartProps extends Omit<ChartOptions, 'isLoading' | 'class
|
|
|
18
18
|
headerActions?: React.ReactNode;
|
|
19
19
|
centerText?: string;
|
|
20
20
|
centerSubtext?: string;
|
|
21
|
-
series: Array<
|
|
21
|
+
series: Array<PieSeriesOptions>;
|
|
22
22
|
drilldown?: Drilldown;
|
|
23
23
|
legend?: LegendOptionsType;
|
|
24
24
|
hasEmptyData?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/DonutChart/DonutChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/DonutChart/DonutChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EACV,YAAY,EAGZ,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAO5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CACF,CAAC;AAEF,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,YAAY,EACV,WAAW,GACX,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,eAAe,GACf,YAAY,GACZ,eAAe,GACf,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,cAAc,GACd,WAAW,CACd;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,iLAexB,eAAe,sBAgGjB,CAAC"}
|
|
@@ -48,14 +48,16 @@ const DonutChart = _ref => {
|
|
|
48
48
|
<span>`;
|
|
49
49
|
const donutChartSeries = series.map(seriesItem => ({
|
|
50
50
|
...seriesItem,
|
|
51
|
-
|
|
51
|
+
type: 'pie',
|
|
52
|
+
data: seriesItem.data?.map((dataItem, index) => ({
|
|
52
53
|
...dataItem,
|
|
53
54
|
color: (0, _charts.getDataVizColor)(index)
|
|
54
55
|
}))
|
|
55
56
|
}));
|
|
56
|
-
const addColorToDrilldownSeries =
|
|
57
|
+
const addColorToDrilldownSeries = drilldownSeries => drilldownSeries?.map(seriesItem => ({
|
|
57
58
|
...seriesItem,
|
|
58
|
-
|
|
59
|
+
type: seriesItem.type ?? 'pie',
|
|
60
|
+
data: seriesItem.data?.map((dataItem, index) => ({
|
|
59
61
|
...dataItem,
|
|
60
62
|
color: (0, _charts.getDataVizColor)(index)
|
|
61
63
|
}))
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { SeriesLineOptions } from 'highcharts';
|
|
2
3
|
import type { ChartOptions, DataOptionsType, Drilldown } from '../../../types/charts';
|
|
3
4
|
import type { ChartWrapperClassNames, ExportOptionType } from '../../../components/Charts/ChartWrapper';
|
|
4
5
|
type ClassNames = Readonly<ChartWrapperClassNames & {
|
|
5
6
|
highChart?: string;
|
|
6
7
|
}>;
|
|
7
|
-
export
|
|
8
|
+
export type LineSeriesItem = Omit<SeriesLineOptions, 'data' | 'type'> & {
|
|
8
9
|
name: string;
|
|
9
10
|
data: DataOptionsType[];
|
|
10
|
-
}
|
|
11
|
+
};
|
|
11
12
|
export interface LineChartProps extends Omit<ChartOptions, 'isLoading' | 'classNames' | 'cardTitle' | 'customExportOptions' | 'series' | 'headerActions' | 'drilldown' | 'hasEmptyData' | 'emptyText'> {
|
|
12
13
|
isLoading?: boolean;
|
|
13
14
|
classNames?: ClassNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/LineChart/LineChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAKlD,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAE,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAQ/E,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAM5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,cACf,SAAQ,IAAI,CACV,YAAY,EACV,WAAW,GACX,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,QAAQ,GACR,eAAe,GACf,WAAW,GACX,cAAc,GACd,WAAW,CACd;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC9B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,GAAI,8IAYvB,cAAc,sBAkDhB,CAAC"}
|
|
@@ -30,9 +30,8 @@ const LineChart = _ref => {
|
|
|
30
30
|
} = _ref;
|
|
31
31
|
const chartRef = /*#__PURE__*/React.createRef();
|
|
32
32
|
const lineChartSeries = series.map((seriesItem, index) => ({
|
|
33
|
+
type: 'line',
|
|
33
34
|
...seriesItem,
|
|
34
|
-
name: seriesItem.name,
|
|
35
|
-
data: seriesItem.data,
|
|
36
35
|
color: (0, _charts.getDataVizColor)(index)
|
|
37
36
|
}));
|
|
38
37
|
const defaultLineChartOptions = (0, _charts.getLineChartOptions)();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ChartOptions } from '../../../types/charts';
|
|
2
|
+
import type { ChartOptions, Drilldown, SankeySeriesOptions } from '../../../types/charts';
|
|
3
3
|
import type { ChartWrapperClassNames, ExportOptionType } from '../../../components/Charts/ChartWrapper';
|
|
4
4
|
type ClassNames = Readonly<ChartWrapperClassNames & {
|
|
5
5
|
highChart?: string;
|
|
6
6
|
}>;
|
|
7
|
-
export interface SankeyChartProps extends Omit<ChartOptions, 'isLoading' | 'cardTitle' | 'emptyText' | 'nodeWidth' | 'classNames' | 'showLegend' | 'nodePadding' | 'hasEmptyData' | 'headerActions' | 'customExportOptions'> {
|
|
7
|
+
export interface SankeyChartProps extends Omit<ChartOptions, 'isLoading' | 'cardTitle' | 'emptyText' | 'nodeWidth' | 'classNames' | 'showLegend' | 'nodePadding' | 'series' | 'drilldown' | 'hasEmptyData' | 'headerActions' | 'customExportOptions'> {
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
cardTitle?: React.ReactNode;
|
|
10
10
|
emptyText?: React.ReactNode;
|
|
@@ -15,6 +15,8 @@ export interface SankeyChartProps extends Omit<ChartOptions, 'isLoading' | 'card
|
|
|
15
15
|
hasEmptyData?: boolean;
|
|
16
16
|
headerActions?: React.ReactNode;
|
|
17
17
|
customExportOptions?: Array<ExportOptionType> | null;
|
|
18
|
+
series?: Array<SankeySeriesOptions>;
|
|
19
|
+
drilldown?: Drilldown;
|
|
18
20
|
testId?: string;
|
|
19
21
|
}
|
|
20
22
|
export declare const SankeyChart: ({ series, emptyText, drilldown, cardTitle, isLoading, nodeWidth, showLegend, classNames, nodePadding, hasEmptyData, headerActions, customExportOptions, testId, ...userOptions }: SankeyChartProps) => React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SankeyChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SankeyChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SankeyChart/SankeyChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EAGT,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAM5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,YAAY,EACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,WAAW,GACX,cAAc,GACd,eAAe,GACf,qBAAqB,CACxB;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,MAAM,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,WAAW,GAAI,kLAezB,gBAAgB,KAAG,KAAK,CAAC,SA4E3B,CAAC"}
|
|
@@ -41,34 +41,26 @@ const SankeyChart = _ref => {
|
|
|
41
41
|
showLegend,
|
|
42
42
|
nodePadding
|
|
43
43
|
});
|
|
44
|
-
const
|
|
45
|
-
...
|
|
46
|
-
|
|
47
|
-
nodes: seriesItem.nodes?.map((node, index) => ({
|
|
48
|
-
...node,
|
|
49
|
-
color: node.color || (0, _charts.getDataVizColor)(index)
|
|
50
|
-
})),
|
|
51
|
-
data: seriesItem.data.map(dataPoint => ({
|
|
52
|
-
...dataPoint,
|
|
53
|
-
weight: dataPoint.weight || 1
|
|
54
|
-
})),
|
|
55
|
-
nodeAlignment: 'center',
|
|
56
|
-
showLegend
|
|
44
|
+
const mapNodes = nodes => nodes?.map((node, index) => ({
|
|
45
|
+
...node,
|
|
46
|
+
color: node.color || (0, _charts.getDataVizColor)(index)
|
|
57
47
|
}));
|
|
58
|
-
const
|
|
59
|
-
...
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
color: node.color || (0, _charts.getDataVizColor)(index)
|
|
63
|
-
})),
|
|
64
|
-
data: seriesItem.data.map((dataItem, index) => ({
|
|
65
|
-
...dataItem,
|
|
66
|
-
color: dataItem.color || (0, _charts.getDataVizColor)(index),
|
|
67
|
-
weight: dataItem.weight || 1
|
|
68
|
-
})),
|
|
69
|
-
nodeAlignment: 'center',
|
|
70
|
-
showLegend
|
|
48
|
+
const mapData = dataPoints => (dataPoints ?? []).map((dataPoint, index) => ({
|
|
49
|
+
...dataPoint,
|
|
50
|
+
color: dataPoint.color || (0, _charts.getDataVizColor)(index),
|
|
51
|
+
weight: dataPoint.weight || 1
|
|
71
52
|
}));
|
|
53
|
+
const addSankeyDefaults = seriesItem => ({
|
|
54
|
+
...seriesItem,
|
|
55
|
+
keys: seriesItem.keys || ['from', 'to', 'weight'],
|
|
56
|
+
nodes: mapNodes(seriesItem.nodes),
|
|
57
|
+
data: mapData(seriesItem.data),
|
|
58
|
+
nodeAlignment: seriesItem.nodeAlignment ?? 'center',
|
|
59
|
+
showInLegend: showLegend,
|
|
60
|
+
type: 'sankey'
|
|
61
|
+
});
|
|
62
|
+
const sankeyChartSeries = series?.map(addSankeyDefaults);
|
|
63
|
+
const sankeyDrilldownSeries = drilldown?.series?.map(addSankeyDefaults);
|
|
72
64
|
const sankeyDrilldown = drilldown ? {
|
|
73
65
|
...drilldown,
|
|
74
66
|
series: sankeyDrilldownSeries,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { SeriesLineOptions } from 'highcharts';
|
|
2
3
|
import type { ChartOptions, DataOptionsType } from '../../../types/charts';
|
|
3
4
|
import type { ChartWrapperClassNames, ExportOptionType } from '../../../components/Charts/ChartWrapper';
|
|
4
5
|
type ClassNames = Readonly<ChartWrapperClassNames & {
|
|
5
6
|
highChart?: string;
|
|
6
7
|
}>;
|
|
7
|
-
export
|
|
8
|
+
export type SpiderSeriesItem = Omit<SeriesLineOptions, 'data' | 'type'> & {
|
|
8
9
|
name: string;
|
|
9
10
|
data: DataOptionsType[];
|
|
10
|
-
}
|
|
11
|
+
};
|
|
11
12
|
export interface SpiderChartProps extends Omit<ChartOptions, 'isLoading' | 'classNames' | 'cardTitle' | 'customExportOptions' | 'headerActions' | 'series' | 'hasEmptyData' | 'emptyText'> {
|
|
12
13
|
isLoading?: boolean;
|
|
13
14
|
classNames?: ClassNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpiderChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SpiderChart/SpiderChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SpiderChart.d.ts","sourceRoot":"","sources":["../../../../src/components/Charts/SpiderChart/SpiderChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAKlD,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAQpE,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAe5C,KAAK,UAAU,GAAG,QAAQ,CACxB,sBAAsB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,YAAY,EACV,WAAW,GACX,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,eAAe,GACf,QAAQ,GACR,cAAc,GACd,WAAW,CACd;IACD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,mBAAmB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IACrD,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,mIAWzB,gBAAgB,sBA2ClB,CAAC"}
|
|
@@ -33,9 +33,8 @@ const SpiderChart = _ref => {
|
|
|
33
33
|
} = _ref;
|
|
34
34
|
const chartRef = React.useRef(null);
|
|
35
35
|
const spiderSeries = series.map((seriesItem, index) => ({
|
|
36
|
+
type: 'line',
|
|
36
37
|
...seriesItem,
|
|
37
|
-
name: seriesItem.name,
|
|
38
|
-
data: seriesItem.data,
|
|
39
38
|
pointPlacement: 'on',
|
|
40
39
|
color: (0, _charts.getDataVizColor)(index)
|
|
41
40
|
}));
|