@scality/core-ui 0.165.0 → 0.167.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/.storybook/preview.js +6 -4
- package/README.md +27 -80
- package/dist/components/barchart/BarChart.component.d.ts +5 -0
- package/dist/components/barchart/BarChart.component.d.ts.map +1 -1
- package/dist/components/barchart/BarChart.component.js +5 -0
- package/dist/components/barchartv2/Barchart.component.d.ts +19 -0
- package/dist/components/barchartv2/Barchart.component.d.ts.map +1 -1
- package/dist/components/barchartv2/Barchart.component.js +31 -5
- package/dist/components/barchartv2/ChartTooltip.d.ts +18 -0
- package/dist/components/barchartv2/ChartTooltip.d.ts.map +1 -0
- package/dist/components/barchartv2/ChartTooltip.js +31 -0
- package/dist/components/barchartv2/utils.d.ts +0 -7
- package/dist/components/barchartv2/utils.d.ts.map +1 -1
- package/dist/components/barchartv2/utils.js +1 -29
- package/dist/components/button/Button.component.d.ts +2 -1
- package/dist/components/button/Button.component.d.ts.map +1 -1
- package/dist/components/button/Button.component.js +2 -1
- package/dist/components/chartlegend/ChartLegend.d.ts +9 -0
- package/dist/components/chartlegend/ChartLegend.d.ts.map +1 -1
- package/dist/components/chartlegend/ChartLegend.js +32 -9
- package/dist/components/chartlegend/ChartLegendWrapper.d.ts +3 -0
- package/dist/components/chartlegend/ChartLegendWrapper.d.ts.map +1 -1
- package/dist/components/chartlegend/ChartLegendWrapper.js +18 -2
- package/dist/components/constants.d.ts +2 -0
- package/dist/components/constants.d.ts.map +1 -1
- package/dist/components/constants.js +6 -0
- package/dist/components/constrainedtext/Constrainedtext.component.d.ts +3 -1
- package/dist/components/constrainedtext/Constrainedtext.component.d.ts.map +1 -1
- package/dist/components/constrainedtext/Constrainedtext.component.js +2 -2
- package/dist/components/date/FormattedDateTime.d.ts +2 -1
- package/dist/components/date/FormattedDateTime.d.ts.map +1 -1
- package/dist/components/date/FormattedDateTime.js +10 -0
- package/dist/components/icon/Icon.component.d.ts +9 -11
- package/dist/components/icon/Icon.component.d.ts.map +1 -1
- package/dist/components/icon/Icon.component.js +2 -0
- package/dist/components/linetemporalchart/ChartUtil.d.ts +3 -2
- package/dist/components/linetemporalchart/ChartUtil.d.ts.map +1 -1
- package/dist/components/linetemporalchart/ChartUtil.js +24 -20
- package/dist/components/linetemporalchart/LineTemporalChart.component.d.ts +4 -0
- package/dist/components/linetemporalchart/LineTemporalChart.component.d.ts.map +1 -1
- package/dist/components/linetemporalchart/LineTemporalChart.component.js +4 -0
- package/dist/components/linetimeseriechart/linetimeseriechart.component.d.ts +4 -2
- package/dist/components/linetimeseriechart/linetimeseriechart.component.d.ts.map +1 -1
- package/dist/components/linetimeseriechart/linetimeseriechart.component.js +5 -7
- package/dist/components/text/Text.component.js +1 -1
- package/dist/components/toast/Toast.component.d.ts.map +1 -1
- package/dist/components/toast/Toast.component.js +24 -11
- package/dist/index.d.ts +1 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -11
- package/dist/next.d.ts +2 -0
- package/dist/next.d.ts.map +1 -1
- package/dist/next.js +1 -0
- package/jest.config.js +1 -0
- package/package.json +16 -38
- package/src/lib/components/barchart/BarChart.component.tsx +5 -0
- package/src/lib/components/barchartv2/Barchart.component.test.tsx +99 -1
- package/src/lib/components/barchartv2/Barchart.component.tsx +39 -11
- package/src/lib/components/barchartv2/ChartTooltip.tsx +76 -0
- package/src/lib/components/barchartv2/utils.ts +2 -33
- package/src/lib/components/button/Button.component.tsx +2 -1
- package/src/lib/components/chartlegend/ChartLegend.test.tsx +235 -0
- package/src/lib/components/chartlegend/ChartLegend.tsx +36 -8
- package/src/lib/components/chartlegend/ChartLegendWrapper.tsx +67 -29
- package/src/lib/components/constants.ts +11 -0
- package/src/lib/components/constrainedtext/Constrainedtext.component.tsx +5 -2
- package/src/lib/components/date/FormattedDateTime.tsx +15 -1
- package/src/lib/components/icon/Icon.component.tsx +12 -1
- package/src/lib/components/linetemporalchart/ChartUtil.test.ts +23 -35
- package/src/lib/components/linetemporalchart/ChartUtil.ts +32 -26
- package/src/lib/components/linetemporalchart/LineTemporalChart.component.tsx +19 -15
- package/src/lib/components/linetimeseriechart/linetimeseriechart.component.tsx +13 -11
- package/src/lib/components/selectv2/selectv2.test.tsx +1 -1
- package/src/lib/components/text/Text.component.tsx +1 -1
- package/src/lib/components/toast/Toast.component.tsx +27 -19
- package/src/lib/components/toast/useMutationsHandler.test.tsx +22 -32
- package/src/lib/index.ts +6 -11
- package/src/lib/next.ts +2 -0
- package/stories/barchart.stories.tsx +1 -1
- package/stories/card.stories.tsx +7 -5
- package/stories/constrainedtext.stories.tsx +4 -1
- package/stories/controls.ts +19 -20
- package/stories/linecharttemporal.stories.tsx +1 -1
- package/stories/linetimeseriechart.stories.tsx +79 -25
- package/stories/navbar.stories.tsx +103 -0
- package/stories/tabsv2.stories.tsx +51 -56
- package/dist/components/areachart/AreaChart.component.d.ts +0 -13
- package/dist/components/areachart/AreaChart.component.d.ts.map +0 -1
- package/dist/components/areachart/AreaChart.component.js +0 -27
- package/dist/components/chips/Chips.component.d.ts +0 -21
- package/dist/components/chips/Chips.component.d.ts.map +0 -1
- package/dist/components/chips/Chips.component.js +0 -105
- package/dist/components/cloudprogressbar/CloudProgressBar.component.d.ts +0 -10
- package/dist/components/cloudprogressbar/CloudProgressBar.component.d.ts.map +0 -1
- package/dist/components/cloudprogressbar/CloudProgressBar.component.js +0 -38
- package/dist/components/collapsiblepanel/CollapsiblePanel.component.d.ts +0 -9
- package/dist/components/collapsiblepanel/CollapsiblePanel.component.d.ts.map +0 -1
- package/dist/components/collapsiblepanel/CollapsiblePanel.component.js +0 -44
- package/dist/components/linechart/LineChart.component.d.ts +0 -21
- package/dist/components/linechart/LineChart.component.d.ts.map +0 -1
- package/dist/components/linechart/LineChart.component.js +0 -109
- package/dist/components/multiselect/MultiSelect.component.d.ts +0 -28
- package/dist/components/multiselect/MultiSelect.component.d.ts.map +0 -1
- package/dist/components/multiselect/MultiSelect.component.js +0 -73
- package/dist/components/select/Select.component.d.ts +0 -14
- package/dist/components/select/Select.component.d.ts.map +0 -1
- package/dist/components/select/Select.component.js +0 -71
- package/dist/components/spacedbox/SpacedBox.d.ts +0 -34
- package/dist/components/spacedbox/SpacedBox.d.ts.map +0 -1
- package/dist/components/spacedbox/SpacedBox.js +0 -64
- package/dist/components/sparkline/SparkLine.component.d.ts +0 -18
- package/dist/components/sparkline/SparkLine.component.d.ts.map +0 -1
- package/dist/components/sparkline/SparkLine.component.js +0 -148
- package/dist/components/vegachart/VegaChart.component.d.ts +0 -13
- package/dist/components/vegachart/VegaChart.component.d.ts.map +0 -1
- package/dist/components/vegachart/VegaChart.component.js +0 -120
- package/plopfile.js +0 -38
- package/src/lib/components/areachart/AreaChart.component.tsx +0 -49
- package/src/lib/components/chips/Chips.component.tsx +0 -169
- package/src/lib/components/cloudprogressbar/CloudProgressBar.component.tsx +0 -105
- package/src/lib/components/collapsiblepanel/CollapsiblePanel.component.tsx +0 -77
- package/src/lib/components/linechart/LineChart.component.tsx +0 -152
- package/src/lib/components/multiselect/MultiSelect.component.tsx +0 -158
- package/src/lib/components/select/Select.component.tsx +0 -98
- package/src/lib/components/spacedbox/SpacedBox.ts +0 -116
- package/src/lib/components/sparkline/SparkLine.component.tsx +0 -176
- package/src/lib/components/vegachart/VegaChart.component.tsx +0 -146
- package/stories/areachart.stories.tsx +0 -120
- package/stories/chips.stories.tsx +0 -107
- package/stories/cloudprogressbar.stories.tsx +0 -93
- package/stories/collapsiblepanel.stories.tsx +0 -57
- package/stories/data/areachart.ts +0 -122
- package/stories/data/sparklinechart.ts +0 -164
- package/stories/linechart.stories.tsx +0 -319
- package/stories/multiselect.stories.tsx +0 -126
- package/stories/select.stories.tsx +0 -52
- package/stories/sparkline.stories.tsx +0 -85
- package/stories/vegachart.stories.tsx +0 -98
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { AreaChart } from '../src/lib/components/areachart/AreaChart.component';
|
|
2
|
-
import { area_charts } from './data/areachart';
|
|
3
|
-
import { Wrapper } from './common';
|
|
4
|
-
const xAxis_area_chart = {
|
|
5
|
-
field: 'time',
|
|
6
|
-
type: 'temporal',
|
|
7
|
-
timeUnit: 'yearmonthdatehoursminutes',
|
|
8
|
-
title: 'time',
|
|
9
|
-
axis: null,
|
|
10
|
-
};
|
|
11
|
-
const yAxis_area_chart = [
|
|
12
|
-
{
|
|
13
|
-
field: 'Bandwidth',
|
|
14
|
-
type: 'quantitative',
|
|
15
|
-
color: '#968BFF',
|
|
16
|
-
axis: {
|
|
17
|
-
title: null,
|
|
18
|
-
ticks: false,
|
|
19
|
-
labels: false,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
field: 'Bandwidth',
|
|
24
|
-
type: 'quantitative',
|
|
25
|
-
color: '#F6B288',
|
|
26
|
-
axis: {
|
|
27
|
-
title: null,
|
|
28
|
-
ticks: false,
|
|
29
|
-
labels: false,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
];
|
|
33
|
-
const color_area_chart = {
|
|
34
|
-
field: 'Average',
|
|
35
|
-
type: 'nominal',
|
|
36
|
-
legend: {
|
|
37
|
-
direction: 'horizontal',
|
|
38
|
-
orient: 'bottom',
|
|
39
|
-
title: null,
|
|
40
|
-
labelFontSize: 15,
|
|
41
|
-
columnPadding: 50,
|
|
42
|
-
symbolStrokeWidth: 5,
|
|
43
|
-
},
|
|
44
|
-
domain: ['AvgIn', 'AvgOut'],
|
|
45
|
-
scale: {
|
|
46
|
-
range: ['#968BFF', '#F6B288'],
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
const area = {
|
|
50
|
-
transform: [
|
|
51
|
-
{
|
|
52
|
-
filter: "datum.Average==='AvgOut'",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
mark: {
|
|
56
|
-
opacity: 0.3,
|
|
57
|
-
type: 'area',
|
|
58
|
-
},
|
|
59
|
-
encoding: {
|
|
60
|
-
x: {
|
|
61
|
-
field: 'time',
|
|
62
|
-
type: 'temporal',
|
|
63
|
-
timeUnit: 'yearmonthdatehoursminutes',
|
|
64
|
-
title: 'time',
|
|
65
|
-
axis: null,
|
|
66
|
-
},
|
|
67
|
-
y: {
|
|
68
|
-
field: 'Bandwidth',
|
|
69
|
-
type: 'quantitative',
|
|
70
|
-
},
|
|
71
|
-
y2: {
|
|
72
|
-
value: 0,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
const area2 = {
|
|
77
|
-
transform: [
|
|
78
|
-
{
|
|
79
|
-
filter: "datum.Average==='AvgIn'",
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
mark: {
|
|
83
|
-
opacity: 0.3,
|
|
84
|
-
type: 'area',
|
|
85
|
-
},
|
|
86
|
-
encoding: {
|
|
87
|
-
x: {
|
|
88
|
-
field: 'time',
|
|
89
|
-
type: 'temporal',
|
|
90
|
-
timeUnit: 'yearmonthdatehoursminutes',
|
|
91
|
-
title: 'time',
|
|
92
|
-
axis: null,
|
|
93
|
-
},
|
|
94
|
-
y: {
|
|
95
|
-
field: 'Bandwidth',
|
|
96
|
-
type: 'quantitative',
|
|
97
|
-
},
|
|
98
|
-
y2: {
|
|
99
|
-
value: 0,
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
const areas = [area, area2];
|
|
104
|
-
const id_area_chart = 'vis_area_chart';
|
|
105
|
-
export default {
|
|
106
|
-
title: 'Components/Data Display/Charts/Area Chart',
|
|
107
|
-
component: AreaChart,
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const Default = {
|
|
111
|
-
args: {
|
|
112
|
-
id: id_area_chart,
|
|
113
|
-
data: area_charts,
|
|
114
|
-
xAxis: xAxis_area_chart,
|
|
115
|
-
yAxis: yAxis_area_chart,
|
|
116
|
-
color: color_area_chart,
|
|
117
|
-
areas,
|
|
118
|
-
width: 800,
|
|
119
|
-
},
|
|
120
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Chips } from '../src/lib/components/chips/Chips.component';
|
|
4
|
-
import { Icon } from '../src/lib/components/icon/Icon.component';
|
|
5
|
-
import { Wrapper } from './common';
|
|
6
|
-
import { iconArgType } from './controls';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Deprecated/Chips',
|
|
10
|
-
component: Chips,
|
|
11
|
-
decorators: [
|
|
12
|
-
(story) => (
|
|
13
|
-
<Wrapper
|
|
14
|
-
style={{ minHeight: '10vh', padding: '3rem' }}
|
|
15
|
-
className="storybook-chips"
|
|
16
|
-
>
|
|
17
|
-
{story()}
|
|
18
|
-
</Wrapper>
|
|
19
|
-
),
|
|
20
|
-
],
|
|
21
|
-
argTypes: {
|
|
22
|
-
icon: iconArgType,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const Template = {
|
|
27
|
-
render: ({ variant, text, icon, ...args }) => {
|
|
28
|
-
return (
|
|
29
|
-
<>
|
|
30
|
-
{variant.map((status) => {
|
|
31
|
-
return (
|
|
32
|
-
<Chips
|
|
33
|
-
key={status}
|
|
34
|
-
variant={status}
|
|
35
|
-
icon={icon && <Icon name={icon}></Icon>}
|
|
36
|
-
text={text}
|
|
37
|
-
{...args}
|
|
38
|
-
/>
|
|
39
|
-
);
|
|
40
|
-
})}
|
|
41
|
-
</>
|
|
42
|
-
);
|
|
43
|
-
},
|
|
44
|
-
args: {
|
|
45
|
-
variant: [
|
|
46
|
-
'infoPrimary',
|
|
47
|
-
'statusHealthy',
|
|
48
|
-
'statusWarning',
|
|
49
|
-
'statusCritical',
|
|
50
|
-
],
|
|
51
|
-
text: 'Basic Chip',
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const Playground = {
|
|
56
|
-
render: ({ icon, text, ...args }) => {
|
|
57
|
-
return (
|
|
58
|
-
<Chips icon={icon && <Icon name={icon}></Icon>} text={text} {...args} />
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
args: {
|
|
62
|
-
text: 'Playground',
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export const BasicChips = {
|
|
67
|
-
...Template,
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const ClickableChips = {
|
|
71
|
-
...Template,
|
|
72
|
-
args: {
|
|
73
|
-
...Template.args,
|
|
74
|
-
text: 'Clickable Chip',
|
|
75
|
-
icon: 'Check',
|
|
76
|
-
onClick: action('Clickable Chip'),
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const DeletableChips = {
|
|
81
|
-
...Template,
|
|
82
|
-
args: {
|
|
83
|
-
...Template.args,
|
|
84
|
-
icon: 'Delete',
|
|
85
|
-
onRemove: action('Deletable Chip'),
|
|
86
|
-
text: 'Deletable',
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export const DifferentsSizeChips = {
|
|
91
|
-
render: (args) => {
|
|
92
|
-
return (
|
|
93
|
-
<>
|
|
94
|
-
<Chips text="Smaller" size="smaller" {...args} />
|
|
95
|
-
<Chips text="Small" size="small" {...args} />
|
|
96
|
-
<Chips text="Base" size="base" {...args} />
|
|
97
|
-
<Chips text="Large" size="large" {...args} />
|
|
98
|
-
<Chips text="Larger" size="larger" {...args} />
|
|
99
|
-
</>
|
|
100
|
-
);
|
|
101
|
-
},
|
|
102
|
-
args: {
|
|
103
|
-
variant: 'statusHealthy',
|
|
104
|
-
icon: <i className="fas fa-star" />,
|
|
105
|
-
onClick: action('Clickable Chip'),
|
|
106
|
-
},
|
|
107
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CloudProgressBar } from '../src/lib/components/cloudprogressbar/CloudProgressBar.component';
|
|
3
|
-
import { Wrapper, Title, SubTitle } from './common';
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Components/Deprecated/CloudProgressBar',
|
|
6
|
-
component: CloudProgressBar,
|
|
7
|
-
decorators: [
|
|
8
|
-
(story) => (
|
|
9
|
-
<Wrapper style={{ minHeight: '10vh', padding: '3rem' }}>
|
|
10
|
-
{story()}
|
|
11
|
-
</Wrapper>
|
|
12
|
-
),
|
|
13
|
-
],
|
|
14
|
-
render: ({ containerSize, percentage, borderSize, ...args }) => (
|
|
15
|
-
<div
|
|
16
|
-
style={{
|
|
17
|
-
width: containerSize,
|
|
18
|
-
margin: '20px 0 20px 0',
|
|
19
|
-
}}
|
|
20
|
-
>
|
|
21
|
-
<CloudProgressBar
|
|
22
|
-
percentage={percentage}
|
|
23
|
-
borderSize={borderSize}
|
|
24
|
-
{...args}
|
|
25
|
-
>
|
|
26
|
-
<div
|
|
27
|
-
style={{
|
|
28
|
-
position: 'absolute',
|
|
29
|
-
top: '50%',
|
|
30
|
-
left: '50%',
|
|
31
|
-
transform: 'translate(-50%,-50%)',
|
|
32
|
-
}}
|
|
33
|
-
>
|
|
34
|
-
<Title>{percentage}%</Title>
|
|
35
|
-
<SubTitle>of the quotas has been reached.</SubTitle>
|
|
36
|
-
</div>
|
|
37
|
-
</CloudProgressBar>
|
|
38
|
-
</div>
|
|
39
|
-
),
|
|
40
|
-
args: {
|
|
41
|
-
containerSize: '300px',
|
|
42
|
-
percentage: 30,
|
|
43
|
-
borderSize: '1.5px',
|
|
44
|
-
cloudColor: 'yellow',
|
|
45
|
-
progressCloudColor: 'blue',
|
|
46
|
-
},
|
|
47
|
-
argTypes: {
|
|
48
|
-
containerSize: {
|
|
49
|
-
description: 'The container width determines the cloud size',
|
|
50
|
-
},
|
|
51
|
-
cloudColor: {
|
|
52
|
-
control: {
|
|
53
|
-
type: 'color',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
progressCloudColor: {
|
|
57
|
-
control: {
|
|
58
|
-
type: 'color',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
export const Default = {};
|
|
64
|
-
|
|
65
|
-
export const DifferentSize = {
|
|
66
|
-
args: {
|
|
67
|
-
containerSize: '400px',
|
|
68
|
-
percentage: 50,
|
|
69
|
-
borderSize: '1.5px',
|
|
70
|
-
cloudColor: '#ccc',
|
|
71
|
-
progressCloudColor: '#000',
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const DifferentColor = {
|
|
76
|
-
args: {
|
|
77
|
-
containerSize: '500px',
|
|
78
|
-
percentage: 80,
|
|
79
|
-
borderSize: '2px',
|
|
80
|
-
cloudColor: '#3d383a',
|
|
81
|
-
progressCloudColor: '#83d136',
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const HugeSize = {
|
|
86
|
-
args: {
|
|
87
|
-
containerSize: '700px',
|
|
88
|
-
percentage: 70,
|
|
89
|
-
borderSize: '2.5px',
|
|
90
|
-
cloudColor: '#BDFFB0',
|
|
91
|
-
progressCloudColor: '#A3FFCB',
|
|
92
|
-
},
|
|
93
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import { Wrapper } from './common';
|
|
4
|
-
import { CollapsiblePanel } from '../src/lib/components/collapsiblepanel/CollapsiblePanel.component';
|
|
5
|
-
const items = [<i className="fas fa-carrot" />, 'banana', 'apple', 'grape'];
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/Deprecated/Navigation/CollapsiblePanel',
|
|
8
|
-
component: CollapsiblePanel,
|
|
9
|
-
decorators: [
|
|
10
|
-
(story) => (
|
|
11
|
-
<Wrapper style={{ minHeight: '30vh', padding: '3rem' }}>
|
|
12
|
-
{story()}
|
|
13
|
-
</Wrapper>
|
|
14
|
-
),
|
|
15
|
-
],
|
|
16
|
-
args: {
|
|
17
|
-
headerItems: items,
|
|
18
|
-
children: 'orange',
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export const Collapsed = {
|
|
23
|
-
args: {
|
|
24
|
-
expanded: false,
|
|
25
|
-
onHeaderClick: action('Expand panel'),
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const Expanded = {
|
|
30
|
-
args: {
|
|
31
|
-
expanded: true,
|
|
32
|
-
onHeaderClick: action('Collapse panel'),
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
// export const Default = {
|
|
36
|
-
// render: ({}) => {
|
|
37
|
-
// return (
|
|
38
|
-
// <Wrapper className="storybook-collapsiblepanel">
|
|
39
|
-
// <Title>Collapsed</Title>
|
|
40
|
-
// <CollapsiblePanel
|
|
41
|
-
// expanded={false}
|
|
42
|
-
// headerItems={items}
|
|
43
|
-
// onHeaderClick={action('Expand panel')}
|
|
44
|
-
// children="orange"
|
|
45
|
-
// />
|
|
46
|
-
|
|
47
|
-
// <Title>Expanded</Title>
|
|
48
|
-
// <CollapsiblePanel
|
|
49
|
-
// headerItems={items}
|
|
50
|
-
// expanded={true}
|
|
51
|
-
// onHeaderClick={action('Colapse panel')}
|
|
52
|
-
// children="orange"
|
|
53
|
-
// />
|
|
54
|
-
// </Wrapper>
|
|
55
|
-
// );
|
|
56
|
-
// },
|
|
57
|
-
// };
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
export const area_charts = [
|
|
2
|
-
{
|
|
3
|
-
time: '2019-10-01 00:00:00',
|
|
4
|
-
Average: 'AvgIn',
|
|
5
|
-
Bandwidth: 1.4,
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
time: '2019-10-01 00:00:00',
|
|
9
|
-
Average: 'AvgOut',
|
|
10
|
-
Bandwidth: 1.2,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
time: '2019-10-01 00:15:00',
|
|
14
|
-
Average: 'AvgIn',
|
|
15
|
-
Bandwidth: 0.8,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
time: '2019-10-01 00:15:00',
|
|
19
|
-
Average: 'AvgOut',
|
|
20
|
-
Bandwidth: 1.2,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
time: '2019-10-01 00:30:00',
|
|
24
|
-
Average: 'AvgIn',
|
|
25
|
-
Bandwidth: 0.7,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
time: '2019-10-01 00:30:00',
|
|
29
|
-
Average: 'AvgOut',
|
|
30
|
-
Bandwidth: 2.1,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
time: '2019-10-01 00:45:00',
|
|
34
|
-
Average: 'AvgIn',
|
|
35
|
-
Bandwidth: 0.8,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
time: '2019-10-01 00:45:00',
|
|
39
|
-
Average: 'AvgOut',
|
|
40
|
-
Bandwidth: 0.9,
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
time: '2019-10-01 01:00:00',
|
|
44
|
-
Average: 'AvgIn',
|
|
45
|
-
Bandwidth: 1.3,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
time: '2019-10-01 01:00:00',
|
|
49
|
-
Average: 'AvgOut',
|
|
50
|
-
Bandwidth: 0.8,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
time: '2019-10-01 01:15:00',
|
|
54
|
-
Average: 'AvgIn',
|
|
55
|
-
Bandwidth: 0.8,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
time: '2019-10-01 01:15:00',
|
|
59
|
-
Average: 'AvgOut',
|
|
60
|
-
Bandwidth: 2,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
time: '2019-10-01 01:30:00',
|
|
64
|
-
Average: 'AvgIn',
|
|
65
|
-
Bandwidth: 0.7,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
time: '2019-10-01 01:30:00',
|
|
69
|
-
Average: 'AvgOut',
|
|
70
|
-
Bandwidth: 0.2,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
time: '2019-10-01 01:45:00',
|
|
74
|
-
Average: 'AvgIn',
|
|
75
|
-
Bandwidth: 0.8,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
time: '2019-10-01 01:45:00',
|
|
79
|
-
Average: 'AvgOut',
|
|
80
|
-
Bandwidth: 0.9,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
time: '2019-10-01 02:00:00',
|
|
84
|
-
Average: 'AvgIn',
|
|
85
|
-
Bandwidth: 1.4,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
time: '2019-10-01 02:00:00',
|
|
89
|
-
Average: 'AvgOut',
|
|
90
|
-
Bandwidth: 1.2,
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
time: '2019-10-01 02:15:00',
|
|
94
|
-
Average: 'AvgIn',
|
|
95
|
-
Bandwidth: 0.8,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
time: '2019-10-01 02:15:00',
|
|
99
|
-
Average: 'AvgOut',
|
|
100
|
-
Bandwidth: 1.2,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
time: '2019-10-01 02:30:00',
|
|
104
|
-
Average: 'AvgIn',
|
|
105
|
-
Bandwidth: 0.7,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
time: '2019-10-01 02:30:00',
|
|
109
|
-
Average: 'AvgOut',
|
|
110
|
-
Bandwidth: 2.1,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
time: '2019-10-01 02:45:00',
|
|
114
|
-
Average: 'AvgIn',
|
|
115
|
-
Bandwidth: 0.8,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
time: '2019-10-01 02:45:00',
|
|
119
|
-
Average: 'AvgOut',
|
|
120
|
-
Bandwidth: 0.9,
|
|
121
|
-
},
|
|
122
|
-
];
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
export const data = [
|
|
2
|
-
{
|
|
3
|
-
date: '2019-10-10 00:00:00',
|
|
4
|
-
y: 33,
|
|
5
|
-
symbol: 'Operation per sec',
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
date: '2019-10-10 01:00:00',
|
|
9
|
-
y: 100,
|
|
10
|
-
symbol: 'Operation per sec',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
date: '2019-10-10 02:00:00',
|
|
14
|
-
y: 103,
|
|
15
|
-
symbol: 'Operation per sec',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
date: '2019-10-10 03:00:00',
|
|
19
|
-
y: 350,
|
|
20
|
-
symbol: 'Operation per sec',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
date: '2019-10-10 04:00:00',
|
|
24
|
-
y: 225,
|
|
25
|
-
symbol: 'Operation per sec',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
date: '2019-10-10 05:00:00',
|
|
29
|
-
y: 124,
|
|
30
|
-
symbol: 'Operation per sec',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
date: '2019-10-10 06:00:00',
|
|
34
|
-
y: 248,
|
|
35
|
-
symbol: 'Operation per sec',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
date: '2019-10-10 07:00:00',
|
|
39
|
-
y: 99,
|
|
40
|
-
symbol: 'Operation per sec',
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
export const multiLineData = [
|
|
44
|
-
{
|
|
45
|
-
date: '2019-10-10 00:00:00',
|
|
46
|
-
y: 33,
|
|
47
|
-
symbol: 'CPU',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
date: '2019-10-10 01:00:00',
|
|
51
|
-
y: 100,
|
|
52
|
-
symbol: 'CPU',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
date: '2019-10-10 02:00:00',
|
|
56
|
-
y: 103,
|
|
57
|
-
symbol: 'CPU',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
date: '2019-10-10 03:00:00',
|
|
61
|
-
y: 350,
|
|
62
|
-
symbol: 'CPU',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
date: '2019-10-10 04:00:00',
|
|
66
|
-
y: 225,
|
|
67
|
-
symbol: 'CPU',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
date: '2019-10-10 05:00:00',
|
|
71
|
-
y: 124,
|
|
72
|
-
symbol: 'CPU',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
date: '2019-10-10 06:00:00',
|
|
76
|
-
y: 248,
|
|
77
|
-
symbol: 'CPU',
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
date: '2019-10-10 07:00:00',
|
|
81
|
-
y: 99,
|
|
82
|
-
symbol: 'CPU',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
date: '2019-10-10 00:00:00',
|
|
86
|
-
y: 33,
|
|
87
|
-
symbol: 'Load',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
date: '2019-10-10 01:00:00',
|
|
91
|
-
y: 100,
|
|
92
|
-
symbol: 'Load',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
date: '2019-10-10 02:00:00',
|
|
96
|
-
y: 103,
|
|
97
|
-
symbol: 'Load',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
date: '2019-10-10 03:00:00',
|
|
101
|
-
y: 350,
|
|
102
|
-
symbol: 'Load',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
date: '2019-10-10 04:00:00',
|
|
106
|
-
y: 225,
|
|
107
|
-
symbol: 'Load',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
date: '2019-10-10 05:00:00',
|
|
111
|
-
y: 124,
|
|
112
|
-
symbol: 'Load',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
date: '2019-10-10 06:00:00',
|
|
116
|
-
y: 248,
|
|
117
|
-
symbol: 'Load',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
date: '2019-10-10 07:00:00',
|
|
121
|
-
y: 99,
|
|
122
|
-
symbol: 'Load',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
date: '2019-10-10 00:00:00',
|
|
126
|
-
y: 33,
|
|
127
|
-
symbol: 'Memory',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
date: '2019-10-10 01:00:00',
|
|
131
|
-
y: 100,
|
|
132
|
-
symbol: 'Memory',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
date: '2019-10-10 02:00:00',
|
|
136
|
-
y: 103,
|
|
137
|
-
symbol: 'Memory',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
date: '2019-10-10 03:00:00',
|
|
141
|
-
y: 350,
|
|
142
|
-
symbol: 'Memory',
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
date: '2019-10-10 04:00:00',
|
|
146
|
-
y: 225,
|
|
147
|
-
symbol: 'Memory',
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
date: '2019-10-10 05:00:00',
|
|
151
|
-
y: 124,
|
|
152
|
-
symbol: 'Memory',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
date: '2019-10-10 06:00:00',
|
|
156
|
-
y: 248,
|
|
157
|
-
symbol: 'Memory',
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
date: '2019-10-10 07:00:00',
|
|
161
|
-
y: 99,
|
|
162
|
-
symbol: 'Memory',
|
|
163
|
-
},
|
|
164
|
-
];
|