@spaced-out/ui-design-system 0.1.94-beta.1 → 0.1.94-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/CHANGELOG.md +7 -0
- package/lib/components/Charts/{ChartTooltip.module.css → ChartTooltip/ChartTooltip.module.css} +5 -5
- package/lib/components/Charts/{ChartTooltip.js → ChartTooltip/index.js} +1 -1
- package/lib/components/Charts/{ChartTooltip.js.flow → ChartTooltip/index.js.flow} +2 -2
- package/lib/components/{ChartWrapper → Charts/ChartWrapper}/ChartWrapper.js +5 -5
- package/lib/components/{ChartWrapper → Charts/ChartWrapper}/ChartWrapper.js.flow +12 -6
- package/lib/components/{ChartWrapper → Charts/ChartWrapper}/ChartWrapper.module.css +2 -2
- package/lib/components/{ColumnChart → Charts/ColumnChart}/ColumnChart.js +2 -2
- package/lib/components/{ColumnChart → Charts/ColumnChart}/ColumnChart.js.flow +15 -7
- package/lib/components/{ColumnChart → Charts/ColumnChart}/ColumnChart.module.css +2 -2
- package/lib/components/{DonutChart → Charts/DonutChart}/DonutChart.js +3 -3
- package/lib/components/{DonutChart → Charts/DonutChart}/DonutChart.js.flow +12 -7
- package/lib/components/{DonutChart → Charts/DonutChart}/DonutChart.module.css +4 -4
- package/lib/components/{LineChart → Charts/LineChart}/LineChart.js +2 -2
- package/lib/components/{LineChart → Charts/LineChart}/LineChart.js.flow +15 -7
- package/lib/components/{LineChart → Charts/LineChart}/LineChart.module.css +2 -2
- package/lib/components/{SpiderChart → Charts/SpiderChart}/SpiderChart.js +2 -2
- package/lib/components/{SpiderChart → Charts/SpiderChart}/SpiderChart.js.flow +11 -7
- package/lib/components/{SpiderChart → Charts/SpiderChart}/SpiderChart.module.css +2 -2
- package/lib/components/Charts/index.js +9 -20
- package/lib/components/Charts/index.js.flow +5 -6
- package/lib/types/index.js +11 -0
- package/lib/types/index.js.flow +1 -0
- package/lib/utils/charts/charts.js +1 -1
- package/lib/utils/charts/charts.js.flow +1 -1
- package/lib/utils/index.js +11 -0
- package/lib/utils/index.js.flow +1 -0
- package/package.json +1 -1
- /package/lib/components/{ChartWrapper → Charts/ChartWrapper}/index.js +0 -0
- /package/lib/components/{ChartWrapper → Charts/ChartWrapper}/index.js.flow +0 -0
- /package/lib/components/{ColumnChart → Charts/ColumnChart}/index.js +0 -0
- /package/lib/components/{ColumnChart → Charts/ColumnChart}/index.js.flow +0 -0
- /package/lib/components/{DonutChart → Charts/DonutChart}/index.js +0 -0
- /package/lib/components/{DonutChart → Charts/DonutChart}/index.js.flow +0 -0
- /package/lib/components/{LineChart → Charts/LineChart}/index.js +0 -0
- /package/lib/components/{LineChart → Charts/LineChart}/index.js.flow +0 -0
- /package/lib/components/{SpiderChart → Charts/SpiderChart}/index.js +0 -0
- /package/lib/components/{SpiderChart → Charts/SpiderChart}/index.js.flow +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.1.94-beta.2](https://github.com/spaced-out/ui-design-system/compare/v0.1.94-beta.1...v0.1.94-beta.2) (2024-05-14)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* updated the correct folder structure ([#202](https://github.com/spaced-out/ui-design-system/issues/202)) ([ebfc464](https://github.com/spaced-out/ui-design-system/commit/ebfc464e93c7d9c637ef2987e393cf6e8f94c501))
|
|
11
|
+
|
|
5
12
|
### [0.1.94-beta.1](https://github.com/spaced-out/ui-design-system/compare/v0.1.94-beta.0...v0.1.94-beta.1) (2024-05-13)
|
|
6
13
|
|
|
7
14
|
|
package/lib/components/Charts/{ChartTooltip.module.css → ChartTooltip/ChartTooltip.module.css}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
fontSize14,
|
|
3
3
|
fontWeightBook,
|
|
4
4
|
fontLineHeight150,
|
|
5
|
-
fontLetterSpacing0) from '
|
|
6
|
-
@value (colorTextInversePrimary, colorTextInverseSecondary) from '
|
|
7
|
-
@value (spaceNone, spaceXXSmall) from '
|
|
8
|
-
@value (size8) from '
|
|
9
|
-
@value (borderRadiusCircle) from '
|
|
5
|
+
fontLetterSpacing0) from '../../../styles/variables/_font.css';
|
|
6
|
+
@value (colorTextInversePrimary, colorTextInverseSecondary) from '../../../styles/variables/_color.css';
|
|
7
|
+
@value (spaceNone, spaceXXSmall) from '../../../styles/variables/_space.css';
|
|
8
|
+
@value (size8) from '../../../styles/variables/_size.css';
|
|
9
|
+
@value (borderRadiusCircle) from '../../../styles/variables/_border.css';
|
|
10
10
|
|
|
11
11
|
.tooltipHeader {
|
|
12
12
|
margin: spaceNone;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.tooltipTheme = void 0;
|
|
7
|
-
var _typographyModule = _interopRequireDefault(require("
|
|
7
|
+
var _typographyModule = _interopRequireDefault(require("../../../styles/typography.module.css"));
|
|
8
8
|
var _ChartTooltipModule = _interopRequireDefault(require("./ChartTooltip.module.css"));
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @flow strict
|
|
2
2
|
|
|
3
|
-
import type {Tooltip} from '
|
|
3
|
+
import type {Tooltip} from '../../../types/charts';
|
|
4
4
|
|
|
5
|
-
import typographyCss from '
|
|
5
|
+
import typographyCss from '../../../styles/typography.module.css';
|
|
6
6
|
import css from './ChartTooltip.module.css';
|
|
7
7
|
|
|
8
8
|
|
|
@@ -9,11 +9,11 @@ var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
|
9
9
|
var _accessibility = _interopRequireDefault(require("highcharts/modules/accessibility"));
|
|
10
10
|
var _drilldown = _interopRequireDefault(require("highcharts/modules/drilldown"));
|
|
11
11
|
var _exporting = _interopRequireDefault(require("highcharts/modules/exporting"));
|
|
12
|
-
var _size = require("
|
|
13
|
-
var _classify = _interopRequireDefault(require("
|
|
14
|
-
var _ButtonDropdown = require("
|
|
15
|
-
var _Card = require("
|
|
16
|
-
var _CircularLoader = require("
|
|
12
|
+
var _size = require("../../../styles/variables/_size");
|
|
13
|
+
var _classify = _interopRequireDefault(require("../../../utils/classify"));
|
|
14
|
+
var _ButtonDropdown = require("../../ButtonDropdown");
|
|
15
|
+
var _Card = require("../../Card");
|
|
16
|
+
var _CircularLoader = require("../../CircularLoader");
|
|
17
17
|
var _ChartWrapperModule = _interopRequireDefault(require("./ChartWrapper.module.css"));
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -10,12 +10,18 @@ import drilldown from 'highcharts/modules/drilldown';
|
|
|
10
10
|
//$FlowFixMe[untyped-import]
|
|
11
11
|
import exporting from 'highcharts/modules/exporting';
|
|
12
12
|
|
|
13
|
-
import {size180} from '
|
|
14
|
-
import classify from '
|
|
15
|
-
import {ANCHOR_POSITION_TYPE, ButtonDropdown} from '
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
import {size180} from '../../../styles/variables/_size';
|
|
14
|
+
import classify from '../../../utils/classify';
|
|
15
|
+
import {ANCHOR_POSITION_TYPE, ButtonDropdown} from '../../ButtonDropdown';
|
|
16
|
+
import {
|
|
17
|
+
Card,
|
|
18
|
+
CardActions,
|
|
19
|
+
CardContent,
|
|
20
|
+
CardHeader,
|
|
21
|
+
CardTitle,
|
|
22
|
+
} from '../../Card';
|
|
23
|
+
import {CircularLoader} from '../../CircularLoader';
|
|
24
|
+
import type {MenuOption} from '../../Menu';
|
|
19
25
|
|
|
20
26
|
import css from './ChartWrapper.module.css';
|
|
21
27
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@value (spaceXSmall) from '
|
|
2
|
-
@value (size4,size5,size50,size400,size960) from '
|
|
1
|
+
@value (spaceXSmall) from '../../../styles/variables/_space.css';
|
|
2
|
+
@value (size4,size5,size50,size400,size960) from '../../../styles/variables/_size.css';
|
|
3
3
|
|
|
4
4
|
.wrapper {
|
|
5
5
|
display: flex;
|
|
@@ -7,8 +7,8 @@ exports.ColumnChart = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
9
9
|
var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
|
|
10
|
-
var _charts = require("
|
|
11
|
-
var _classify = _interopRequireDefault(require("
|
|
10
|
+
var _charts = require("../../../utils/charts");
|
|
11
|
+
var _classify = _interopRequireDefault(require("../../../utils/classify"));
|
|
12
12
|
var _ChartWrapper = require("../ChartWrapper");
|
|
13
13
|
var _ColumnChartModule = _interopRequireDefault(require("./ColumnChart.module.css"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -6,31 +6,39 @@ import Highcharts from 'highcharts';
|
|
|
6
6
|
//$FlowFixMe[untyped-import]
|
|
7
7
|
import HighchartsReact from 'highcharts-react-official';
|
|
8
8
|
|
|
9
|
-
import type {
|
|
9
|
+
import type {
|
|
10
|
+
ChartOptions,
|
|
11
|
+
DataOptionsType,
|
|
12
|
+
Drilldown,
|
|
13
|
+
} from '../../../types/charts';
|
|
10
14
|
import {
|
|
11
15
|
columnPlotWidth,
|
|
12
16
|
getColumnChartOptions,
|
|
13
17
|
getDataVizColor,
|
|
14
18
|
mergeChartUserOptions,
|
|
15
|
-
} from '
|
|
16
|
-
import classify from '
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
+
} from '../../../utils/charts';
|
|
20
|
+
import classify from '../../../utils/classify';
|
|
21
|
+
import {
|
|
22
|
+
type ChartWrapperClassNames,
|
|
23
|
+
type ExportOptionType,
|
|
24
|
+
ChartWrapper,
|
|
25
|
+
} from '../ChartWrapper';
|
|
19
26
|
|
|
20
27
|
import css from './ColumnChart.module.css';
|
|
21
28
|
|
|
22
29
|
|
|
23
|
-
type ClassNames = $ReadOnly<{
|
|
30
|
+
export type ClassNames = $ReadOnly<{
|
|
24
31
|
...ChartWrapperClassNames,
|
|
25
32
|
highChart?: string,
|
|
26
33
|
}>;
|
|
27
34
|
|
|
28
|
-
type ColumnSeries = {
|
|
35
|
+
export type ColumnSeries = {
|
|
29
36
|
name: string,
|
|
30
37
|
data: DataOptionsType[],
|
|
31
38
|
};
|
|
32
39
|
|
|
33
40
|
export type ColumnChartProps = {
|
|
41
|
+
...ChartOptions,
|
|
34
42
|
isLoading?: boolean,
|
|
35
43
|
classNames?: ClassNames,
|
|
36
44
|
cardTitle?: React.Node,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@value (colorFillPrimary) from '
|
|
2
|
-
@value (size400, size660, sizeFluid) from '
|
|
1
|
+
@value (colorFillPrimary) from '../../../styles/variables/_color.css';
|
|
2
|
+
@value (size400, size660, sizeFluid) from '../../../styles/variables/_size.css';
|
|
3
3
|
|
|
4
4
|
.columnChartContainer {
|
|
5
5
|
width: sizeFluid;
|
|
@@ -7,10 +7,10 @@ exports.DonutChart = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
9
9
|
var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
|
|
10
|
-
var _charts = require("
|
|
11
|
-
var _classify = _interopRequireDefault(require("
|
|
10
|
+
var _charts = require("../../../utils/charts");
|
|
11
|
+
var _classify = _interopRequireDefault(require("../../../utils/classify"));
|
|
12
12
|
var _ChartWrapper = require("../ChartWrapper");
|
|
13
|
-
var _typographyModule = _interopRequireDefault(require("
|
|
13
|
+
var _typographyModule = _interopRequireDefault(require("../../../styles/typography.module.css"));
|
|
14
14
|
var _DonutChartModule = _interopRequireDefault(require("./DonutChart.module.css"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -7,24 +7,28 @@ import Highcharts from 'highcharts';
|
|
|
7
7
|
import HighchartsReact from 'highcharts-react-official';
|
|
8
8
|
|
|
9
9
|
import type {
|
|
10
|
+
ChartOptions,
|
|
10
11
|
Drilldown,
|
|
11
12
|
LegendOptionsType,
|
|
12
13
|
SeriesOptionsType,
|
|
13
|
-
} from '
|
|
14
|
+
} from '../../../types/charts';
|
|
14
15
|
import {
|
|
15
16
|
getDataVizColor,
|
|
16
17
|
getDonutChartOptions,
|
|
17
18
|
mergeChartUserOptions,
|
|
18
|
-
} from '
|
|
19
|
-
import classify from '
|
|
20
|
-
import
|
|
21
|
-
|
|
19
|
+
} from '../../../utils/charts';
|
|
20
|
+
import classify from '../../../utils/classify';
|
|
21
|
+
import {
|
|
22
|
+
type ChartWrapperClassNames,
|
|
23
|
+
type ExportOptionType,
|
|
24
|
+
ChartWrapper,
|
|
25
|
+
} from '../ChartWrapper';
|
|
22
26
|
|
|
23
|
-
import typographyCss from '
|
|
27
|
+
import typographyCss from '../../../styles/typography.module.css';
|
|
24
28
|
import css from './DonutChart.module.css';
|
|
25
29
|
|
|
26
30
|
|
|
27
|
-
type ClassNames = $ReadOnly<{
|
|
31
|
+
export type ClassNames = $ReadOnly<{
|
|
28
32
|
...ChartWrapperClassNames,
|
|
29
33
|
highChart?: string,
|
|
30
34
|
subtitleClassNames?: SubtitleClassNames,
|
|
@@ -37,6 +41,7 @@ export type SubtitleClassNames = {
|
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
export type DonutChartProps = {
|
|
44
|
+
...ChartOptions,
|
|
40
45
|
isLoading?: boolean,
|
|
41
46
|
classNames?: ClassNames,
|
|
42
47
|
cardTitle?: React.Node,
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
fontLineHeight130,
|
|
8
8
|
fontLetterSpacingMinus3,
|
|
9
9
|
fontLetterSpacing4
|
|
10
|
-
) from '
|
|
10
|
+
) from '../../../styles/variables/_font.css';
|
|
11
11
|
|
|
12
|
-
@value (colorTextPrimary, colorTextSecondary) from '
|
|
13
|
-
@value (size240, size300, size400, size500, sizeFluid) from '
|
|
12
|
+
@value (colorTextPrimary, colorTextSecondary) from '../../../styles/variables/_color.css';
|
|
13
|
+
@value (size240, size300, size400, size500, sizeFluid) from '../../../styles/variables/_size.css';
|
|
14
14
|
|
|
15
|
-
@value (spaceNone, spaceXSmall) from '
|
|
15
|
+
@value (spaceNone, spaceXSmall) from '../../../styles/variables/_space.css';
|
|
16
16
|
|
|
17
17
|
.wrapper {
|
|
18
18
|
display: flex;
|
|
@@ -7,8 +7,8 @@ exports.LineChart = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
9
9
|
var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
|
|
10
|
-
var _charts = require("
|
|
11
|
-
var _classify = _interopRequireDefault(require("
|
|
10
|
+
var _charts = require("../../../utils/charts");
|
|
11
|
+
var _classify = _interopRequireDefault(require("../../../utils/classify"));
|
|
12
12
|
var _ChartWrapper = require("../ChartWrapper");
|
|
13
13
|
var _LineChartModule = _interopRequireDefault(require("./LineChart.module.css"));
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -6,30 +6,38 @@ import Highcharts from 'highcharts';
|
|
|
6
6
|
//$FlowFixMe[untyped-import]
|
|
7
7
|
import HighchartsReact from 'highcharts-react-official';
|
|
8
8
|
|
|
9
|
-
import type {
|
|
9
|
+
import type {
|
|
10
|
+
ChartOptions,
|
|
11
|
+
DataOptionsType,
|
|
12
|
+
Drilldown,
|
|
13
|
+
} from '../../../types/charts';
|
|
10
14
|
import {
|
|
11
15
|
getDataVizColor,
|
|
12
16
|
getLineChartOptions,
|
|
13
17
|
mergeChartUserOptions,
|
|
14
|
-
} from '
|
|
15
|
-
import classify from '
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
+
} from '../../../utils/charts';
|
|
19
|
+
import classify from '../../../utils/classify';
|
|
20
|
+
import {
|
|
21
|
+
type ChartWrapperClassNames,
|
|
22
|
+
type ExportOptionType,
|
|
23
|
+
ChartWrapper,
|
|
24
|
+
} from '../ChartWrapper';
|
|
18
25
|
|
|
19
26
|
import css from './LineChart.module.css';
|
|
20
27
|
|
|
21
28
|
|
|
22
|
-
type ClassNames = $ReadOnly<{
|
|
29
|
+
export type ClassNames = $ReadOnly<{
|
|
23
30
|
...ChartWrapperClassNames,
|
|
24
31
|
highChart?: string,
|
|
25
32
|
}>;
|
|
26
33
|
|
|
27
|
-
type LineSeriesItem = {
|
|
34
|
+
export type LineSeriesItem = {
|
|
28
35
|
name: string,
|
|
29
36
|
data: DataOptionsType[],
|
|
30
37
|
};
|
|
31
38
|
|
|
32
39
|
export type LineChartProps = {
|
|
40
|
+
...ChartOptions,
|
|
33
41
|
isLoading?: boolean,
|
|
34
42
|
classNames?: ClassNames,
|
|
35
43
|
cardTitle?: React.Node,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@value (colorFillPrimary) from '
|
|
2
|
-
@value (size400, size660, sizeFluid) from '
|
|
1
|
+
@value (colorFillPrimary) from '../../../styles/variables/_color.css';
|
|
2
|
+
@value (size400, size660, sizeFluid) from '../../../styles/variables/_size.css';
|
|
3
3
|
|
|
4
4
|
.wrapper {
|
|
5
5
|
display: flex;
|
|
@@ -8,8 +8,8 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
9
9
|
var _highchartsMore = _interopRequireDefault(require("highcharts/highcharts-more"));
|
|
10
10
|
var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
|
|
11
|
-
var _charts = require("
|
|
12
|
-
var _classify = _interopRequireDefault(require("
|
|
11
|
+
var _charts = require("../../../utils/charts");
|
|
12
|
+
var _classify = _interopRequireDefault(require("../../../utils/classify"));
|
|
13
13
|
var _ChartWrapper = require("../ChartWrapper");
|
|
14
14
|
var _SpiderChartModule = _interopRequireDefault(require("./SpiderChart.module.css"));
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -8,15 +8,18 @@ import highChartsMore from 'highcharts/highcharts-more';
|
|
|
8
8
|
//$FlowFixMe[untyped-import]
|
|
9
9
|
import HighchartsReact from 'highcharts-react-official';
|
|
10
10
|
|
|
11
|
-
import type {DataOptionsType} from '
|
|
11
|
+
import type {ChartOptions, DataOptionsType} from '../../../types/charts';
|
|
12
12
|
import {
|
|
13
13
|
getDataVizColor,
|
|
14
14
|
getSpiderChartOptions,
|
|
15
15
|
mergeChartUserOptions,
|
|
16
|
-
} from '
|
|
17
|
-
import classify from '
|
|
18
|
-
import
|
|
19
|
-
|
|
16
|
+
} from '../../../utils/charts';
|
|
17
|
+
import classify from '../../../utils/classify';
|
|
18
|
+
import {
|
|
19
|
+
type ChartWrapperClassNames,
|
|
20
|
+
type ExportOptionType,
|
|
21
|
+
ChartWrapper,
|
|
22
|
+
} from '../ChartWrapper';
|
|
20
23
|
|
|
21
24
|
import css from './SpiderChart.module.css';
|
|
22
25
|
|
|
@@ -30,17 +33,18 @@ if (
|
|
|
30
33
|
highChartsMore(Highcharts);
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
type ClassNames = $ReadOnly<{
|
|
36
|
+
export type ClassNames = $ReadOnly<{
|
|
34
37
|
...ChartWrapperClassNames,
|
|
35
38
|
highChart?: string,
|
|
36
39
|
}>;
|
|
37
40
|
|
|
38
|
-
type SpiderSeriesItem = {
|
|
41
|
+
export type SpiderSeriesItem = {
|
|
39
42
|
name: string,
|
|
40
43
|
data: DataOptionsType[],
|
|
41
44
|
};
|
|
42
45
|
|
|
43
46
|
export type SpiderChartProps = {
|
|
47
|
+
...ChartOptions,
|
|
44
48
|
isLoading?: boolean,
|
|
45
49
|
classNames?: ClassNames,
|
|
46
50
|
cardTitle?: React.Node,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@value (colorFillPrimary) from '
|
|
2
|
-
@value (size400, size540, size660, size880, sizeFluid) from '
|
|
1
|
+
@value (colorFillPrimary) from '../../../styles/variables/_color.css';
|
|
2
|
+
@value (size400, size540, size660, size880, sizeFluid) from '../../../styles/variables/_size.css';
|
|
3
3
|
|
|
4
4
|
.wrapper {
|
|
5
5
|
display: flex;
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
7
|
-
Object.keys(
|
|
6
|
+
var _ChartTooltip = require("./ChartTooltip");
|
|
7
|
+
Object.keys(_ChartTooltip).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] ===
|
|
9
|
+
if (key in exports && exports[key] === _ChartTooltip[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function () {
|
|
13
|
-
return
|
|
13
|
+
return _ChartTooltip[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _ChartWrapper = require("
|
|
17
|
+
var _ChartWrapper = require("./ChartWrapper");
|
|
18
18
|
Object.keys(_ChartWrapper).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
20
|
if (key in exports && exports[key] === _ChartWrapper[key]) return;
|
|
@@ -25,7 +25,7 @@ Object.keys(_ChartWrapper).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _ColumnChart = require("
|
|
28
|
+
var _ColumnChart = require("./ColumnChart");
|
|
29
29
|
Object.keys(_ColumnChart).forEach(function (key) {
|
|
30
30
|
if (key === "default" || key === "__esModule") return;
|
|
31
31
|
if (key in exports && exports[key] === _ColumnChart[key]) return;
|
|
@@ -36,7 +36,7 @@ Object.keys(_ColumnChart).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
var _DonutChart = require("
|
|
39
|
+
var _DonutChart = require("./DonutChart");
|
|
40
40
|
Object.keys(_DonutChart).forEach(function (key) {
|
|
41
41
|
if (key === "default" || key === "__esModule") return;
|
|
42
42
|
if (key in exports && exports[key] === _DonutChart[key]) return;
|
|
@@ -47,7 +47,7 @@ Object.keys(_DonutChart).forEach(function (key) {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
-
var _LineChart = require("
|
|
50
|
+
var _LineChart = require("./LineChart");
|
|
51
51
|
Object.keys(_LineChart).forEach(function (key) {
|
|
52
52
|
if (key === "default" || key === "__esModule") return;
|
|
53
53
|
if (key in exports && exports[key] === _LineChart[key]) return;
|
|
@@ -58,7 +58,7 @@ Object.keys(_LineChart).forEach(function (key) {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
var _SpiderChart = require("
|
|
61
|
+
var _SpiderChart = require("./SpiderChart");
|
|
62
62
|
Object.keys(_SpiderChart).forEach(function (key) {
|
|
63
63
|
if (key === "default" || key === "__esModule") return;
|
|
64
64
|
if (key in exports && exports[key] === _SpiderChart[key]) return;
|
|
@@ -68,15 +68,4 @@ Object.keys(_SpiderChart).forEach(function (key) {
|
|
|
68
68
|
return _SpiderChart[key];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
});
|
|
72
|
-
var _ChartTooltip = require("./ChartTooltip");
|
|
73
|
-
Object.keys(_ChartTooltip).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _ChartTooltip[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _ChartTooltip[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
71
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// @flow strict
|
|
2
2
|
|
|
3
|
-
export * from '../../types/charts';
|
|
4
|
-
export * from '../ChartWrapper';
|
|
5
|
-
export * from '../ColumnChart';
|
|
6
|
-
export * from '../DonutChart';
|
|
7
|
-
export * from '../LineChart';
|
|
8
|
-
export * from '../SpiderChart';
|
|
9
3
|
export * from './ChartTooltip';
|
|
4
|
+
export * from './ChartWrapper';
|
|
5
|
+
export * from './ColumnChart';
|
|
6
|
+
export * from './DonutChart';
|
|
7
|
+
export * from './LineChart';
|
|
8
|
+
export * from './SpiderChart';
|
package/lib/types/index.js
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _charts = require("./charts");
|
|
7
|
+
Object.keys(_charts).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _charts[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _charts[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
6
17
|
var _common = require("./common");
|
|
7
18
|
Object.keys(_common).forEach(function (key) {
|
|
8
19
|
if (key === "default" || key === "__esModule") return;
|
package/lib/types/index.js.flow
CHANGED
|
@@ -7,7 +7,7 @@ exports.mergeChartUserOptions = exports.getDataVizColor = exports.commonChartOpt
|
|
|
7
7
|
var _color = require("../../styles/variables/_color");
|
|
8
8
|
var _helpers = require("./helpers");
|
|
9
9
|
var _typography = require("./typography");
|
|
10
|
-
var _ChartTooltipModule = _interopRequireDefault(require("../../components/Charts/ChartTooltip.module.css"));
|
|
10
|
+
var _ChartTooltipModule = _interopRequireDefault(require("../../components/Charts/ChartTooltip/ChartTooltip.module.css"));
|
|
11
11
|
var _typographyModule = _interopRequireDefault(require("../../styles/typography.module.css"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ import type {ChartOptions} from '../../types/charts';
|
|
|
17
17
|
import {deepMerge} from './helpers';
|
|
18
18
|
import {formLabelSmall, subTitleExtraSmall} from './typography';
|
|
19
19
|
|
|
20
|
-
import css from '../../components/Charts/ChartTooltip.module.css';
|
|
20
|
+
import css from '../../components/Charts/ChartTooltip/ChartTooltip.module.css';
|
|
21
21
|
import typographyCss from '../../styles/typography.module.css';
|
|
22
22
|
|
|
23
23
|
|
package/lib/utils/index.js
CHANGED
|
@@ -14,6 +14,17 @@ Object.keys(_array).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
+
var _charts = require("./charts");
|
|
18
|
+
Object.keys(_charts).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _charts[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _charts[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
17
28
|
var _classify = require("./classify");
|
|
18
29
|
Object.keys(_classify).forEach(function (key) {
|
|
19
30
|
if (key === "default" || key === "__esModule") return;
|
package/lib/utils/index.js.flow
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|