@desynova-digital/components 8.19.63 → 9.0.1

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.
Files changed (80) hide show
  1. package/atoms/avatar/avatar.js +1 -1
  2. package/atoms/avatar/avatar.story.js +46 -14
  3. package/atoms/badge/badge.js +13 -13
  4. package/atoms/badge/badge.story.js +91 -29
  5. package/atoms/button/button.js +81 -85
  6. package/atoms/button/button.story.js +342 -2
  7. package/atoms/card/card.js +43 -39
  8. package/atoms/card/card.story.js +74 -48
  9. package/atoms/cardStack/cardStack.js +182 -155
  10. package/atoms/cardStack/cardStack.story.js +131 -18
  11. package/atoms/cardV2/cardV2.js +23 -23
  12. package/atoms/cardV2/cardV2.story.js +196 -45
  13. package/atoms/cardV2/content.js +109 -87
  14. package/atoms/cardV2/thumbnail.js +85 -72
  15. package/atoms/cardV2/timeline.js +119 -107
  16. package/atoms/checkbox/checkbox.js +41 -32
  17. package/atoms/checkbox/checkbox.story.js +220 -99
  18. package/atoms/customSelect/customSelect.story.js +820 -582
  19. package/atoms/datePicker/datePicker.js +77 -83
  20. package/atoms/datePicker/datePicker.story.js +167 -1
  21. package/atoms/dateTime/dateTime.story.js +26 -1
  22. package/atoms/draftInputText/draftInputText.js +358 -0
  23. package/atoms/draftInputText/draftInputText.story.js +251 -0
  24. package/atoms/draftInputText/index.js +13 -0
  25. package/atoms/dropdown/dropdown.story.js +146 -18
  26. package/atoms/dropdownList/dropdownList.story.js +1598 -1091
  27. package/atoms/graphs/barGraph/barGraph.js +143 -130
  28. package/atoms/graphs/barGraph/barGraph.story.js +74 -40
  29. package/atoms/graphs/circleDonut/circleDonut.story.js +374 -220
  30. package/atoms/graphs/circleGraph/circleGraph.js +84 -80
  31. package/atoms/graphs/circleGraph/circleGraph.story.js +38 -26
  32. package/atoms/graphs/circleNested/circleNested.story.js +98 -103
  33. package/atoms/graphs/pieChart/pieChart.story.js +160 -81
  34. package/atoms/graphs/verticalBarGraph/verticalBarGraph.story.js +30 -28
  35. package/atoms/icon/icon.story.js +220 -163
  36. package/atoms/inputText/inputText.js +52 -49
  37. package/atoms/label/label.js +29 -29
  38. package/atoms/label/label.story.js +42 -30
  39. package/atoms/loader/CircleLoader.js +13 -4
  40. package/atoms/loader/CircleLoader.jsx +10 -4
  41. package/atoms/loader/ThreeDotLoader.js +8 -4
  42. package/atoms/loader/ThreeDotLoader.jsx +4 -4
  43. package/atoms/loader/loader.js +29 -30
  44. package/atoms/loader/loader.story.js +38 -23
  45. package/atoms/loader/spinningLoader.js +7 -4
  46. package/atoms/loader/spinningLoader.jsx +5 -5
  47. package/atoms/popup/popup.js +11 -11
  48. package/atoms/popup/popup.story.js +36 -4
  49. package/atoms/radio/radio.story.js +140 -2
  50. package/atoms/sideBar/sidebar.js +19 -5
  51. package/atoms/sideBar/sidebar.jsx +13 -8
  52. package/atoms/switch/switch.js +72 -66
  53. package/atoms/switch/switch.story.js +323 -78
  54. package/atoms/tag/tag.js +39 -39
  55. package/atoms/tag/tag.story.js +83 -2
  56. package/atoms/textarea/textarea.js +36 -34
  57. package/atoms/timeCodeInput/timCodeInput.story.js +10 -9
  58. package/atoms/timeCodeInput/timeCodeInput.js +108 -100
  59. package/atoms/timer/timer.js +127 -126
  60. package/atoms/toast/toast.js +24 -14
  61. package/atoms/toast/toast.story.js +22 -0
  62. package/atoms/videoCard/videoCard.js +226 -203
  63. package/atoms/videoCard/videoCard.story.js +547 -186
  64. package/components.js +69 -66
  65. package/index.js +5 -4
  66. package/molecules/carousel/carousel.js +55 -67
  67. package/molecules/filter/filter.js +133 -106
  68. package/molecules/filter/filter.story.js +215 -173
  69. package/molecules/graphCard/graphCard.js +34 -24
  70. package/molecules/graphCard/graphCard.story.js +169 -82
  71. package/molecules/graphDetailCard/graphDetailCard.js +207 -182
  72. package/molecules/pageHeader/pageHeader.js +3 -2
  73. package/molecules/pageHeader/pageHeader.story.js +40 -18
  74. package/molecules/pagination/pagination.js +66 -14
  75. package/molecules/pagination/pagination.story.js +24 -2
  76. package/molecules/table/table.js +368 -316
  77. package/molecules/table/table.story.js +404 -208
  78. package/molecules/tabs/tabs.js +15 -6
  79. package/molecules/tabs/tabs.story.js +26 -0
  80. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
- value: true
4
+ value: true
5
5
  });
6
6
 
7
7
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -9,8 +9,8 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
9
9
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
10
10
 
11
11
  var _templateObject = _taggedTemplateLiteral(['\n 0% {\n stroke-dasharray: 0, 5000;\n }\n'], ['\n 0% {\n stroke-dasharray: 0, 5000;\n }\n']),
12
- _templateObject2 = _taggedTemplateLiteral(['\n fill: none;\n stroke-width: 2.8;\n stroke-linecap: round;\n animation: ', ' 1s ease-out forwards;\n'], ['\n fill: none;\n stroke-width: 2.8;\n stroke-linecap: round;\n animation: ', ' 1s ease-out forwards;\n']),
13
- _templateObject3 = _taggedTemplateLiteral(['\n display: block;\n margin: 10px auto;\n'], ['\n display: block;\n margin: 10px auto;\n']);
12
+ _templateObject2 = _taggedTemplateLiteral(['\n fill: none;\n stroke-width: 2.8;\n stroke-linecap: round;\n animation: ', ' 1s ease-out forwards;\n'], ['\n fill: none;\n stroke-width: 2.8;\n stroke-linecap: round;\n animation: ', ' 1s ease-out forwards;\n']),
13
+ _templateObject3 = _taggedTemplateLiteral(['\n display: block;\n margin: 10px auto;\n'], ['\n display: block;\n margin: 10px auto;\n']);
14
14
 
15
15
  var _react = require('react');
16
16
 
@@ -37,70 +37,74 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
37
37
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
38
38
 
39
39
  var CircleGraph = function (_React$Component) {
40
- _inherits(CircleGraph, _React$Component);
41
-
42
- function CircleGraph(props) {
43
- _classCallCheck(this, CircleGraph);
44
-
45
- var _this = _possibleConstructorReturn(this, (CircleGraph.__proto__ || Object.getPrototypeOf(CircleGraph)).call(this, props));
46
-
47
- _this.generateData = function (data) {
48
- var width = typeof _this.props.width == 'string' ? 100 : _this.props.width;
49
- var height = _this.props.height;
50
- var diameter = width - 5;
51
- var radius = diameter / 2;
52
- var circumference = radius * 2 * Math.PI;
53
- var x = width / 2;
54
- var y = (width - diameter) / 2;
55
- var dataPercent = data.completed / data.total * 100;
56
- var percent = circumference * dataPercent / 100;
57
- var dataObj = {
58
- x: x, y: y, radius: radius, diameter: diameter, percent: percent, circumference: circumference
59
- };
60
-
61
- return dataObj;
62
- };
63
-
64
- _this.componentDidMount = function () {
65
- var dataObj = _this.generateData(_this.props.data);
66
- _this.setState({ dataObj: dataObj });
67
- };
68
-
69
- _this.state = {
70
- dataObj: null
71
- };
72
- return _this;
40
+ _inherits(CircleGraph, _React$Component);
41
+
42
+ function CircleGraph(props) {
43
+ _classCallCheck(this, CircleGraph);
44
+
45
+ var _this = _possibleConstructorReturn(this, (CircleGraph.__proto__ || Object.getPrototypeOf(CircleGraph)).call(this, props));
46
+
47
+ _this.generateData = function (data) {
48
+ var width = typeof _this.props.width == 'string' ? 100 : _this.props.width;
49
+ var height = _this.props.height;
50
+ var diameter = width - 5;
51
+ var radius = diameter / 2;
52
+ var circumference = radius * 2 * Math.PI;
53
+ var x = width / 2;
54
+ var y = (width - diameter) / 2;
55
+ var dataPercent = data.completed / data.total * 100;
56
+ var percent = circumference * dataPercent / 100;
57
+ var dataObj = {
58
+ x: x,
59
+ y: y,
60
+ radius: radius,
61
+ diameter: diameter,
62
+ percent: percent,
63
+ circumference: circumference
64
+ };
65
+
66
+ return dataObj;
67
+ };
68
+
69
+ _this.componentDidMount = function () {
70
+ var dataObj = _this.generateData(_this.props.data);
71
+ _this.setState({ dataObj: dataObj });
72
+ };
73
+
74
+ _this.state = {
75
+ dataObj: null
76
+ };
77
+ return _this;
78
+ }
79
+
80
+ _createClass(CircleGraph, [{
81
+ key: 'render',
82
+ value: function render() {
83
+ return _react2.default.createElement(
84
+ _react2.default.Fragment,
85
+ null,
86
+ this.state.dataObj ? _react2.default.createElement(
87
+ GraphSVG,
88
+ _extends({}, typeof this.props.width == 'string' ? '' : { width: this.props.width }, typeof this.props.width == 'string' ? '' : { height: this.props.height }, {
89
+ viewBox: '0 0 ' + (typeof this.props.width == 'string' ? '100' : this.props.width) + ' ' + this.props.height,
90
+ preserveAspectRatio: 'xMinYMin meet'
91
+ }),
92
+ _react2.default.createElement(StyledPath, {
93
+ stroke: _tokens.colors[this.props.theme].graph.pending,
94
+ d: 'M' + this.state.dataObj.x + ' ' + this.state.dataObj.y + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 ' + this.state.dataObj.diameter + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 -' + this.state.dataObj.diameter,
95
+ strokeDasharray: this.state.dataObj.circumference + ', ' + this.state.dataObj.circumference
96
+ }),
97
+ _react2.default.createElement(StyledPath, {
98
+ stroke: _tokens.colors[this.props.theme].graph.completed,
99
+ d: 'M' + this.state.dataObj.x + ' ' + this.state.dataObj.y + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 ' + this.state.dataObj.diameter + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 -' + this.state.dataObj.diameter,
100
+ strokeDasharray: this.state.dataObj.percent + ', ' + this.state.dataObj.circumference
101
+ })
102
+ ) : null
103
+ );
73
104
  }
105
+ }]);
74
106
 
75
- _createClass(CircleGraph, [{
76
- key: 'render',
77
- value: function render() {
78
-
79
- return _react2.default.createElement(
80
- _react2.default.Fragment,
81
- null,
82
- this.state.dataObj ? _react2.default.createElement(
83
- GraphSVG,
84
- _extends({}, typeof this.props.width == 'string' ? "" : { "width": this.props.width }, typeof this.props.width == 'string' ? "" : { "height": this.props.height }, {
85
- viewBox: '0 0 ' + (typeof this.props.width == 'string' ? "100" : this.props.width) + ' ' + this.props.height,
86
- preserveAspectRatio: 'xMinYMin meet'
87
- }),
88
- _react2.default.createElement(StyledPath, {
89
- stroke: _tokens.colors[this.props.theme].graph.pending,
90
- d: 'M' + this.state.dataObj.x + ' ' + this.state.dataObj.y + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 ' + this.state.dataObj.diameter + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 -' + this.state.dataObj.diameter,
91
- strokeDasharray: this.state.dataObj.circumference + ', ' + this.state.dataObj.circumference
92
- }),
93
- _react2.default.createElement(StyledPath, {
94
- stroke: _tokens.colors[this.props.theme].graph.completed,
95
- d: 'M' + this.state.dataObj.x + ' ' + this.state.dataObj.y + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 ' + this.state.dataObj.diameter + '\n a ' + this.state.dataObj.radius + ' ' + this.state.dataObj.radius + ' 0 0 1 0 -' + this.state.dataObj.diameter,
96
- strokeDasharray: this.state.dataObj.percent + ', ' + this.state.dataObj.circumference
97
- })
98
- ) : null
99
- );
100
- }
101
- }]);
102
-
103
- return CircleGraph;
107
+ return CircleGraph;
104
108
  }(_react2.default.Component);
105
109
 
106
110
  var progress = (0, _styledComponents.keyframes)(_templateObject);
@@ -110,24 +114,24 @@ var StyledPath = _styledComponents2.default.path(_templateObject2, progress);
110
114
  var GraphSVG = _styledComponents2.default.svg(_templateObject3);
111
115
 
112
116
  CircleGraph.propTypes = {
113
- /** Graph Data */
114
- data: _propTypes2.default.object.isRequired,
115
- /** Graph size */
116
- theme: _propTypes2.default.oneOf(['light', 'dark']),
117
- //width: PropTypes.number || PropTypes.string,
118
- height: _propTypes2.default.number,
119
- colorType: _propTypes2.default.oneOf(['gradient', 'normal'])
117
+ /** Graph Data */
118
+ data: _propTypes2.default.object.isRequired,
119
+ /** Graph size */
120
+ theme: _propTypes2.default.oneOf(['light', 'dark', 'nexc']),
121
+ //width: PropTypes.number || PropTypes.string,
122
+ height: _propTypes2.default.number,
123
+ colorType: _propTypes2.default.oneOf(['gradient', 'normal'])
120
124
  };
121
125
 
122
126
  CircleGraph.defaultProps = {
123
- data: {
124
- "total": 100,
125
- "completed": 50
126
- },
127
- width: 400,
128
- height: 400,
129
- theme: 'light',
130
- colorType: 'normal'
127
+ data: {
128
+ total: 100,
129
+ completed: 50
130
+ },
131
+ width: 400,
132
+ height: 400,
133
+ theme: 'light',
134
+ colorType: 'normal'
131
135
  };
132
136
 
133
137
  exports.default = CircleGraph;
@@ -12,34 +12,46 @@ var _components = require('../../../../components');
12
12
 
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
14
 
15
- (0, _react3.storiesOf)('CircleGraph').add('CircleGraph Light Theme', function () {
16
- return _react2.default.createElement(
17
- _storyHelpers.Example,
18
- { title: 'Appearances' },
15
+ (0, _react3.storiesOf)('CircleGraph').add('light theme', function () {
16
+ return _react2.default.createElement(
17
+ _storyHelpers.Example,
18
+ { title: 'Appearances' },
19
+ _react2.default.createElement(
20
+ 'div',
21
+ null,
22
+ _react2.default.createElement(
23
+ 'div',
24
+ null,
19
25
  _react2.default.createElement(
20
- 'div',
21
- null,
22
- _react2.default.createElement(
23
- 'div',
24
- null,
25
- _react2.default.createElement(
26
- 'div',
27
- { style: { "width": "400px" } },
28
- _react2.default.createElement(_components.CircleGraph, { width: "100%", height: 300 })
29
- )
30
- )
26
+ 'div',
27
+ { style: { width: '400px' } },
28
+ _react2.default.createElement(_components.CircleGraph, { width: '100%', height: 300 })
31
29
  )
32
- );
30
+ )
31
+ )
32
+ );
33
33
  });
34
34
 
35
- (0, _react3.storiesOf)('CircleGraph').add('CircleGraph Dark Theme', function () {
36
- return _react2.default.createElement(
37
- _storyHelpers.Example,
38
- { title: 'Tag', background: 'dark' },
39
- _react2.default.createElement(
40
- _storyHelpers.Stack,
41
- null,
42
- _react2.default.createElement(_components.CircleGraph, { theme: 'dark', width: 300, height: 300 })
43
- )
44
- );
35
+ (0, _react3.storiesOf)('CircleGraph').add('dark theme', function () {
36
+ return _react2.default.createElement(
37
+ _storyHelpers.Example,
38
+ { title: 'Tag', background: 'dark' },
39
+ _react2.default.createElement(
40
+ _storyHelpers.Stack,
41
+ null,
42
+ _react2.default.createElement(_components.CircleGraph, { theme: 'dark', width: 300, height: 300 })
43
+ )
44
+ );
45
+ });
46
+
47
+ (0, _react3.storiesOf)('CircleGraph').add('nexc theme', function () {
48
+ return _react2.default.createElement(
49
+ _storyHelpers.Example,
50
+ { title: 'Tag', background: 'dark' },
51
+ _react2.default.createElement(
52
+ _storyHelpers.Stack,
53
+ null,
54
+ _react2.default.createElement(_components.CircleGraph, { theme: 'nexc', width: 300, height: 300 })
55
+ )
56
+ );
45
57
  });
@@ -12,113 +12,108 @@ var _components = require('../../../../components');
12
12
 
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
14
 
15
- (0, _react3.storiesOf)('CircleNested').add('CircleNested', function () {
16
- return _react2.default.createElement(
17
- _storyHelpers.Example,
18
- { title: 'Appearances' },
15
+ (0, _react3.storiesOf)('CircleNested').add('light theme', function () {
16
+ return _react2.default.createElement(
17
+ _storyHelpers.Example,
18
+ { title: 'Appearances' },
19
+ _react2.default.createElement(
20
+ _storyHelpers.Stack,
21
+ null,
22
+ _react2.default.createElement(
23
+ 'div',
24
+ null,
19
25
  _react2.default.createElement(
20
- _storyHelpers.Stack,
21
- null,
22
- _react2.default.createElement(
23
- 'div',
24
- null,
25
- _react2.default.createElement(
26
- 'div',
27
- { style: { width: '295px', height: '295px' } },
28
- _react2.default.createElement(_components.CircleNested, {
29
- data: {
30
- graph_name: "circle-nested",
31
- graph_type: "",
32
- data: {
33
- "from_date": 1609698600000,
34
- "to_date": 1610389799000,
35
- "name": "Ingest",
36
- "total": 10,
37
- "values": [{
38
- "name": "Finished",
39
- "value": "ingested",
40
- "index": 1,
41
- "data": 3,
42
- "processed": 66
43
- }, {
44
- "name": "In Progress",
45
- "value": "started",
46
- "index": 2,
47
- "data": 5,
48
- "inprogress": 7
49
- }, {
50
- "name": "Failed",
51
- "value": "failed",
52
- "index": 4,
53
- "data": 2,
54
- "pending": 17
55
- }]
56
- }
57
- },
58
-
59
- graphColors: [['#00C8E7', '#00E6B9'], ['#FFE259', '#FFA751'], ['#FF8D29', '#F6462C'], ['#FFFFFF', '#DDDDDD']],
60
-
61
- graphPlaceholder: false,
62
-
63
- valueSub: 'Assets'
64
- })
65
- )
66
- )
26
+ 'div',
27
+ { style: { width: '295px', height: '295px' } },
28
+ _react2.default.createElement(_components.CircleNested, {
29
+ data: {
30
+ graph_name: 'circle-nested',
31
+ graph_type: '',
32
+ data: {
33
+ from_date: 1609698600000,
34
+ to_date: 1610389799000,
35
+ name: 'Ingest',
36
+ total: 10,
37
+ values: [{
38
+ name: 'Finished',
39
+ value: 'ingested',
40
+ index: 1,
41
+ data: 3,
42
+ processed: 66
43
+ }, {
44
+ name: 'In Progress',
45
+ value: 'started',
46
+ index: 2,
47
+ data: 5,
48
+ inprogress: 7
49
+ }, {
50
+ name: 'Failed',
51
+ value: 'failed',
52
+ index: 4,
53
+ data: 2,
54
+ pending: 17
55
+ }]
56
+ }
57
+ },
58
+ graphColors: [['#00C8E7', '#00E6B9'], ['#FFE259', '#FFA751'], ['#FF8D29', '#F6462C'], ['#FFFFFF', '#DDDDDD']],
59
+ graphPlaceholder: false,
60
+ valueSub: 'Assets'
61
+ })
67
62
  )
68
- );
63
+ )
64
+ )
65
+ );
69
66
  });
70
67
 
71
- (0, _react3.storiesOf)('CircleNested').add('CircleNested dark theme', function () {
72
- return _react2.default.createElement(
73
- _storyHelpers.Example,
74
- { title: 'Tag', background: 'dark' },
68
+ (0, _react3.storiesOf)('CircleNested').add('dark theme', function () {
69
+ return _react2.default.createElement(
70
+ _storyHelpers.Example,
71
+ { title: 'Tag', background: 'dark' },
72
+ _react2.default.createElement(
73
+ _storyHelpers.Stack,
74
+ null,
75
+ _react2.default.createElement(
76
+ 'div',
77
+ null,
75
78
  _react2.default.createElement(
76
- _storyHelpers.Stack,
77
- null,
78
- _react2.default.createElement(
79
- 'div',
80
- null,
81
- _react2.default.createElement(
82
- 'div',
83
- { style: { width: '295px', height: '295px' } },
84
- _react2.default.createElement(_components.CircleNested, {
85
- data: {
86
- graph_name: "circle-nested",
87
- graph_type: "",
88
- data: {
89
- "from_date": 1609698600000,
90
- "to_date": 1610389799000,
91
- "name": "Ingest",
92
- "total": 10,
93
- "values": [{
94
- "name": "Finished",
95
- "value": "ingested",
96
- "index": 1,
97
- "data": 3,
98
- "processed": 66
99
- }, {
100
- "name": "In Progress",
101
- "value": "started",
102
- "index": 2,
103
- "data": 5,
104
- "inprogress": 7
105
- }, {
106
- "name": "Failed",
107
- "value": "failed",
108
- "index": 4,
109
- "data": 2,
110
- "pending": 17
111
- }]
112
- }
113
- },
114
-
115
- graphColors: [['#00C8E7', '#00E6B9'], ['#FFE259', '#FFA751'], ['#FF8D29', '#F6462C'], ['#FFFFFF', '#DDDDDD']],
116
-
117
- graphPlaceholder: false,
118
- valueSub: 'Asset'
119
- })
120
- )
121
- )
79
+ 'div',
80
+ { style: { width: '295px', height: '295px' } },
81
+ _react2.default.createElement(_components.CircleNested, {
82
+ data: {
83
+ graph_name: 'circle-nested',
84
+ graph_type: '',
85
+ data: {
86
+ from_date: 1609698600000,
87
+ to_date: 1610389799000,
88
+ name: 'Ingest',
89
+ total: 10,
90
+ values: [{
91
+ name: 'Finished',
92
+ value: 'ingested',
93
+ index: 1,
94
+ data: 3,
95
+ processed: 66
96
+ }, {
97
+ name: 'In Progress',
98
+ value: 'started',
99
+ index: 2,
100
+ data: 5,
101
+ inprogress: 7
102
+ }, {
103
+ name: 'Failed',
104
+ value: 'failed',
105
+ index: 4,
106
+ data: 2,
107
+ pending: 17
108
+ }]
109
+ }
110
+ },
111
+ graphColors: [['#00C8E7', '#00E6B9'], ['#FFE259', '#FFA751'], ['#FF8D29', '#F6462C'], ['#FFFFFF', '#DDDDDD']],
112
+ graphPlaceholder: false,
113
+ valueSub: 'Asset'
114
+ })
122
115
  )
123
- );
116
+ )
117
+ )
118
+ );
124
119
  });