@desynova-digital/components 9.0.26 → 9.1.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/_helpers/globals.js +9 -10
- package/_helpers/pagination.js +10 -15
- package/_helpers/story-example.js +16 -39
- package/_helpers/story-helpers.js +15 -14
- package/_helpers/story-stack.js +22 -43
- package/_helpers/uniqueId.js +2 -5
- package/_helpers/utils.js +28 -4
- package/atoms/avatar/avatar.js +19 -42
- package/atoms/avatar/avatar.story.js +25 -58
- package/atoms/avatar/index.js +13 -11
- package/atoms/badge/badge.js +14 -37
- package/atoms/badge/badge.story.js +45 -103
- package/atoms/badge/index.js +12 -10
- package/atoms/button/button.js +85 -161
- package/atoms/button/button.story.js +354 -508
- package/atoms/button/index.js +5 -9
- package/atoms/card/card.js +26 -55
- package/atoms/card/card.story.js +39 -88
- package/atoms/card/index.js +12 -10
- package/atoms/cardStack/cardStack.js +88 -147
- package/atoms/cardStack/cardStack.story.js +106 -210
- package/atoms/cardStack/index.js +12 -10
- package/atoms/cardV2/cardV2.js +57 -106
- package/atoms/cardV2/cardV2.story.js +184 -232
- package/atoms/cardV2/content.js +154 -256
- package/atoms/cardV2/index.js +4 -8
- package/atoms/cardV2/thumbnail.js +138 -208
- package/atoms/cardV2/timeline.js +167 -123
- package/atoms/checkbox/checkbox.js +85 -157
- package/atoms/checkbox/checkbox.story.js +237 -365
- package/atoms/checkbox/index.js +4 -9
- package/atoms/customSelect/customSelect.js +136 -215
- package/atoms/customSelect/customSelect.story.js +745 -851
- package/atoms/customSelect/index.js +4 -8
- package/atoms/datePicker/datePicker.js +299 -431
- package/atoms/datePicker/datePicker.story.js +453 -501
- package/atoms/datePicker/index.js +4 -8
- package/atoms/dateTime/dateTime.js +3 -6
- package/atoms/dateTime/dateTime.story.js +17 -63
- package/atoms/dateTime/index.js +5 -9
- package/atoms/draftInputText/draftInputText.js +121 -189
- package/atoms/draftInputText/draftInputText.story.js +200 -249
- package/atoms/draftInputText/index.js +5 -9
- package/atoms/dropdown/dropdown.js +38 -66
- package/atoms/dropdown/dropdown.story.js +102 -262
- package/atoms/dropdown/index.js +4 -8
- package/atoms/dropdownList/dropdownList.js +78 -108
- package/atoms/dropdownList/dropdownList.story.js +1546 -1621
- package/atoms/dropdownList/index.js +4 -8
- package/atoms/graphs/barGraph/barGraph.js +95 -146
- package/atoms/graphs/barGraph/barGraph.story.js +65 -87
- package/atoms/graphs/barGraph/index.js +4 -8
- package/atoms/graphs/circleDonut/circleDonut.js +177 -229
- package/atoms/graphs/circleDonut/circleDonut.story.js +328 -394
- package/atoms/graphs/circleDonut/index.js +5 -9
- package/atoms/graphs/circleGraph/circleGraph.js +60 -90
- package/atoms/graphs/circleGraph/circleGraph.story.js +36 -54
- package/atoms/graphs/circleGraph/index.js +4 -8
- package/atoms/graphs/circleNested/circleNested.js +216 -262
- package/atoms/graphs/circleNested/circleNested.story.js +91 -116
- package/atoms/graphs/circleNested/index.js +5 -9
- package/atoms/graphs/pieChart/index.js +4 -8
- package/atoms/graphs/pieChart/pieChart.js +162 -191
- package/atoms/graphs/pieChart/pieChart.story.js +147 -176
- package/atoms/graphs/verticalBarGraph/index.js +5 -9
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.js +75 -98
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.story.js +26 -45
- package/atoms/icon/icon.js +41 -72
- package/atoms/icon/icon.story.js +831 -260
- package/atoms/icon/index.js +19 -12
- package/atoms/image/image.js +18 -32
- package/atoms/image/image.story.js +10 -19
- package/atoms/image/index.js +4 -8
- package/atoms/inputText/index.js +4 -8
- package/atoms/inputText/inputText.js +86 -131
- package/atoms/inputText/inputText.story.js +191 -255
- package/atoms/label/index.js +4 -8
- package/atoms/label/label.js +25 -50
- package/atoms/label/label.story.js +42 -83
- package/atoms/loader/CircleLoader.js +29 -63
- package/atoms/loader/ShimmerComponent/CollabShimmerCard.js +39 -50
- package/atoms/loader/ShimmerComponent/CollabShimmerCardTray.js +41 -42
- package/atoms/loader/ShimmerComponent/FiltersShimmer.js +30 -30
- package/atoms/loader/ShimmerComponent/GraphDetailShimmer.js +21 -34
- package/atoms/loader/ShimmerComponent/GraphTitleShimmer.js +30 -34
- package/atoms/loader/ShimmerComponent/GraphsComponentShimmer.js +23 -32
- package/atoms/loader/ShimmerComponent/Shimmer.js +24 -32
- package/atoms/loader/ThreeDotLoader.js +14 -29
- package/atoms/loader/index.js +13 -11
- package/atoms/loader/loader.js +34 -58
- package/atoms/loader/loader.story.js +48 -52
- package/atoms/loader/spinningLoader.js +23 -34
- package/atoms/popup/index.js +5 -9
- package/atoms/popup/popup.js +123 -208
- package/atoms/popup/popup.story.js +97 -131
- package/atoms/radio/index.js +18 -11
- package/atoms/radio/radio.js +58 -112
- package/atoms/radio/radio.story.js +197 -420
- package/atoms/select/index.js +4 -8
- package/atoms/select/select.js +48 -86
- package/atoms/sideBar/index.js +5 -9
- package/atoms/sideBar/sidebar.js +89 -140
- package/atoms/switch/index.js +4 -8
- package/atoms/switch/switch.js +56 -86
- package/atoms/switch/switch.story.js +268 -415
- package/atoms/tag/index.js +12 -10
- package/atoms/tag/tag.js +29 -63
- package/atoms/tag/tag.story.js +135 -209
- package/atoms/textarea/index.js +5 -9
- package/atoms/textarea/textarea.js +55 -99
- package/atoms/textarea/textarea.story.js +48 -41
- package/atoms/thematicBreak/index.js +12 -10
- package/atoms/thematicBreak/thematicBreak.js +20 -38
- package/atoms/thematicBreak/thematicBreak.story.js +25 -37
- package/atoms/timeCodeInput/index.js +4 -8
- package/atoms/timeCodeInput/timCodeInput.story.js +21 -35
- package/atoms/timeCodeInput/timeCodeInput.js +33 -51
- package/atoms/timer/index.js +5 -9
- package/atoms/timer/timer.js +57 -108
- package/atoms/timer/timer.story.js +13 -26
- package/atoms/toast/index.js +5 -9
- package/atoms/toast/toast.js +81 -116
- package/atoms/toast/toast.story.js +50 -76
- package/atoms/videoCard/index.js +12 -10
- package/atoms/videoCard/videoCard.js +265 -447
- package/atoms/videoCard/videoCard.story.js +495 -710
- package/components.js +411 -294
- package/index.js +350 -61
- package/molecules/carousel/carousel.js +121 -207
- package/molecules/carousel/carousel.story.js +240 -223
- package/molecules/carousel/index.js +5 -9
- package/molecules/errorScreen/CollabErrorScreen.js +35 -66
- package/molecules/errorScreen/TableErrorScreen.js +109 -102
- package/molecules/errorScreen/TableErrorScreen.jsx +7 -6
- package/molecules/errorScreen/errorScreen.js +41 -94
- package/molecules/filter/constants.js +1 -0
- package/molecules/filter/filter.js +378 -562
- package/molecules/filter/filter.story.js +79 -104
- package/molecules/filter/index.js +5 -9
- package/molecules/graphCard/graphCard.js +97 -193
- package/molecules/graphCard/graphCard.story.js +159 -191
- package/molecules/graphCard/index.js +4 -8
- package/molecules/graphCard/loader.js +28 -68
- package/molecules/graphDetailCard/graphDetailCard.js +115 -183
- package/molecules/graphDetailCard/graphDetailCard.story.js +218 -254
- package/molecules/graphDetailCard/index.js +5 -9
- package/molecules/pageHeader/index.js +12 -10
- package/molecules/pageHeader/pageHeader.js +38 -79
- package/molecules/pageHeader/pageHeader.story.js +34 -55
- package/molecules/pagination/index.js +4 -8
- package/molecules/pagination/pagination.js +126 -202
- package/molecules/pagination/pagination.story.js +40 -52
- package/molecules/richTextInput/RichTextInput.js +354 -0
- package/molecules/richTextInput/RichTextInput.story.js +50 -0
- package/molecules/richTextInput/index.js +9 -0
- package/molecules/table/index.js +4 -8
- package/molecules/table/table-column.js +10 -16
- package/molecules/table/table-header.js +31 -72
- package/molecules/table/table.js +743 -1075
- package/molecules/table/table.story.js +274 -304
- package/molecules/tabs/index.js +4 -8
- package/molecules/tabs/tabs.js +112 -184
- package/molecules/tabs/tabs.story.js +66 -133
- package/molecules/videoCardList/index.js +4 -8
- package/molecules/videoCardList/videoCardList.js +24 -41
- package/molecules/videoCardList/videoCardList.story.js +449 -664
- package/molecules/videoPlayer/index.js +4 -8
- package/molecules/videoPlayer/videoPlayer.js +1019 -1097
- package/molecules/videoPlayer/videoPlayer.story.js +10 -21
- package/package.json +2 -2
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
-
var _circleDonut = require(
|
|
8
|
-
|
|
9
|
-
var _circleDonut2 = _interopRequireDefault(_circleDonut);
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
exports.default = _circleDonut2.default;
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _circleDonut = _interopRequireDefault(require("./circleDonut"));
|
|
9
|
+
var _default = exports["default"] = _circleDonut["default"];
|
|
@@ -1,50 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var _react = require(
|
|
16
|
-
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
26
|
-
|
|
27
|
-
var _tokens = require('@desynova-digital/tokens');
|
|
28
|
-
|
|
29
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
|
-
|
|
31
|
-
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
32
|
-
|
|
33
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34
|
-
|
|
35
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
var CircleGraph = function (_React$Component) {
|
|
40
|
-
_inherits(CircleGraph, _React$Component);
|
|
41
|
-
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
+
var _react = _interopRequireDefault(require("react"));
|
|
18
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
19
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
|
+
var _tokens = require("@desynova-digital/tokens");
|
|
21
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
24
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
25
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
+
var CircleGraph = /*#__PURE__*/function (_React$Component) {
|
|
42
27
|
function CircleGraph(props) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
_this.generateData = function (data) {
|
|
28
|
+
var _this;
|
|
29
|
+
(0, _classCallCheck2["default"])(this, CircleGraph);
|
|
30
|
+
_this = _callSuper(this, CircleGraph, [props]);
|
|
31
|
+
(0, _defineProperty2["default"])(_this, "generateData", function (data) {
|
|
48
32
|
var width = typeof _this.props.width == 'string' ? 100 : _this.props.width;
|
|
49
33
|
var height = _this.props.height;
|
|
50
34
|
var diameter = width - 5;
|
|
@@ -62,67 +46,54 @@ var CircleGraph = function (_React$Component) {
|
|
|
62
46
|
percent: percent,
|
|
63
47
|
circumference: circumference
|
|
64
48
|
};
|
|
65
|
-
|
|
66
49
|
return dataObj;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
_this.componentDidMount = function () {
|
|
50
|
+
});
|
|
51
|
+
(0, _defineProperty2["default"])(_this, "componentDidMount", function () {
|
|
70
52
|
var dataObj = _this.generateData(_this.props.data);
|
|
71
|
-
_this.setState({
|
|
72
|
-
|
|
73
|
-
|
|
53
|
+
_this.setState({
|
|
54
|
+
dataObj: dataObj
|
|
55
|
+
});
|
|
56
|
+
});
|
|
74
57
|
_this.state = {
|
|
75
58
|
dataObj: null
|
|
76
59
|
};
|
|
77
60
|
return _this;
|
|
78
61
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
key:
|
|
62
|
+
(0, _inherits2["default"])(CircleGraph, _React$Component);
|
|
63
|
+
return (0, _createClass2["default"])(CircleGraph, [{
|
|
64
|
+
key: "render",
|
|
82
65
|
value: function render() {
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
this.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
);
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, this.state.dataObj ? /*#__PURE__*/_react["default"].createElement(GraphSVG, (0, _extends2["default"])({}, typeof this.props.width == 'string' ? '' : {
|
|
67
|
+
width: this.props.width
|
|
68
|
+
}, typeof this.props.width == 'string' ? '' : {
|
|
69
|
+
height: this.props.height
|
|
70
|
+
}, {
|
|
71
|
+
viewBox: "0 0 ".concat(typeof this.props.width == 'string' ? '100' : this.props.width, " ").concat(this.props.height),
|
|
72
|
+
preserveAspectRatio: "xMinYMin meet"
|
|
73
|
+
}), /*#__PURE__*/_react["default"].createElement(StyledPath, {
|
|
74
|
+
stroke: _tokens.colors[this.props.theme].graph.pending,
|
|
75
|
+
d: "M".concat(this.state.dataObj.x, " ").concat(this.state.dataObj.y, "\n a ").concat(this.state.dataObj.radius, " ").concat(this.state.dataObj.radius, " 0 0 1 0 ").concat(this.state.dataObj.diameter, "\n a ").concat(this.state.dataObj.radius, " ").concat(this.state.dataObj.radius, " 0 0 1 0 -").concat(this.state.dataObj.diameter),
|
|
76
|
+
strokeDasharray: "".concat(this.state.dataObj.circumference, ", ").concat(this.state.dataObj.circumference)
|
|
77
|
+
}), /*#__PURE__*/_react["default"].createElement(StyledPath, {
|
|
78
|
+
stroke: _tokens.colors[this.props.theme].graph.completed,
|
|
79
|
+
d: "M".concat(this.state.dataObj.x, " ").concat(this.state.dataObj.y, "\n a ").concat(this.state.dataObj.radius, " ").concat(this.state.dataObj.radius, " 0 0 1 0 ").concat(this.state.dataObj.diameter, "\n a ").concat(this.state.dataObj.radius, " ").concat(this.state.dataObj.radius, " 0 0 1 0 -").concat(this.state.dataObj.diameter),
|
|
80
|
+
strokeDasharray: "".concat(this.state.dataObj.percent, ", ").concat(this.state.dataObj.circumference)
|
|
81
|
+
})) : null);
|
|
104
82
|
}
|
|
105
83
|
}]);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var progress = (0, _styledComponents.keyframes)(_templateObject);
|
|
111
|
-
|
|
112
|
-
var StyledPath = _styledComponents2.default.path(_templateObject2, progress);
|
|
113
|
-
|
|
114
|
-
var GraphSVG = _styledComponents2.default.svg(_templateObject3);
|
|
115
|
-
|
|
84
|
+
}(_react["default"].Component);
|
|
85
|
+
var progress = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n 0% {\n stroke-dasharray: 0, 5000;\n }\n"])));
|
|
86
|
+
var StyledPath = _styledComponents["default"].path(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n fill: none;\n stroke-width: 2.8;\n stroke-linecap: round;\n animation: ", " 1s ease-out forwards;\n"])), progress);
|
|
87
|
+
var GraphSVG = _styledComponents["default"].svg(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n display: block;\n margin: 10px auto;\n"])));
|
|
116
88
|
CircleGraph.propTypes = {
|
|
117
89
|
/** Graph Data */
|
|
118
|
-
data:
|
|
90
|
+
data: _propTypes["default"].object.isRequired,
|
|
119
91
|
/** Graph size */
|
|
120
|
-
theme:
|
|
92
|
+
theme: _propTypes["default"].oneOf(['light', 'dark', 'nexc']),
|
|
121
93
|
//width: PropTypes.number || PropTypes.string,
|
|
122
|
-
height:
|
|
123
|
-
colorType:
|
|
94
|
+
height: _propTypes["default"].number,
|
|
95
|
+
colorType: _propTypes["default"].oneOf(['gradient', 'normal'])
|
|
124
96
|
};
|
|
125
|
-
|
|
126
97
|
CircleGraph.defaultProps = {
|
|
127
98
|
data: {
|
|
128
99
|
total: 100,
|
|
@@ -133,5 +104,4 @@ CircleGraph.defaultProps = {
|
|
|
133
104
|
theme: 'light',
|
|
134
105
|
colorType: 'normal'
|
|
135
106
|
};
|
|
136
|
-
|
|
137
|
-
exports.default = CircleGraph;
|
|
107
|
+
var _default = exports["default"] = CircleGraph;
|
|
@@ -1,57 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _react2 =
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_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
|
-
)
|
|
31
|
-
)
|
|
32
|
-
);
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _react2 = require("@storybook/react");
|
|
6
|
+
var _storyHelpers = require("../../../_helpers/story-helpers");
|
|
7
|
+
var _components = require("../../../../components");
|
|
8
|
+
(0, _react2.storiesOf)('CircleGraph').add('light theme', function () {
|
|
9
|
+
return /*#__PURE__*/_react["default"].createElement(_storyHelpers.Example, {
|
|
10
|
+
title: "Appearances"
|
|
11
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
12
|
+
style: {
|
|
13
|
+
width: '400px'
|
|
14
|
+
}
|
|
15
|
+
}, /*#__PURE__*/_react["default"].createElement(_components.CircleGraph, {
|
|
16
|
+
width: '100%',
|
|
17
|
+
height: 300
|
|
18
|
+
})))));
|
|
33
19
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
)
|
|
44
|
-
);
|
|
20
|
+
(0, _react2.storiesOf)('CircleGraph').add('dark theme', function () {
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_storyHelpers.Example, {
|
|
22
|
+
title: "Tag",
|
|
23
|
+
background: "dark"
|
|
24
|
+
}, /*#__PURE__*/_react["default"].createElement(_storyHelpers.Stack, null, /*#__PURE__*/_react["default"].createElement(_components.CircleGraph, {
|
|
25
|
+
theme: "dark",
|
|
26
|
+
width: 300,
|
|
27
|
+
height: 300
|
|
28
|
+
})));
|
|
45
29
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
)
|
|
56
|
-
);
|
|
30
|
+
(0, _react2.storiesOf)('CircleGraph').add('nexc theme', function () {
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement(_storyHelpers.Example, {
|
|
32
|
+
title: "Tag",
|
|
33
|
+
background: "dark"
|
|
34
|
+
}, /*#__PURE__*/_react["default"].createElement(_storyHelpers.Stack, null, /*#__PURE__*/_react["default"].createElement(_components.CircleGraph, {
|
|
35
|
+
theme: "nexc",
|
|
36
|
+
width: 300,
|
|
37
|
+
height: 300
|
|
38
|
+
})));
|
|
57
39
|
});
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
|
|
7
|
-
var _circleGraph = require("./circleGraph");
|
|
8
|
-
|
|
9
|
-
var _circleGraph2 = _interopRequireDefault(_circleGraph);
|
|
10
|
-
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
|
|
13
|
-
exports.default = _circleGraph2.default;
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _circleGraph = _interopRequireDefault(require("./circleGraph"));
|
|
9
|
+
var _default = exports["default"] = _circleGraph["default"];
|