@stokr/components-library 0.7.7 → 0.7.9
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
ADDED
|
@@ -1,40 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
// import DonutChart from './DonutChart'
|
|
3
|
-
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
1
|
+
"use strict";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DonutChartDefault = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _DonutChart = _interopRequireDefault(require("./DonutChart"));
|
|
9
|
+
var _ComponentWrapper = require("../ComponentWrapper/ComponentWrapper.styles");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
var _default = {
|
|
12
|
+
title: 'Components Library/DonutChart',
|
|
13
|
+
component: _DonutChart.default,
|
|
14
|
+
argTypes: {
|
|
15
|
+
children: {
|
|
16
|
+
type: 'node',
|
|
17
|
+
defaultValue: null
|
|
18
|
+
},
|
|
19
|
+
center: {
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
defaultValue: false
|
|
22
|
+
},
|
|
23
|
+
data: {
|
|
24
|
+
type: 'array',
|
|
25
|
+
defaultValue: [{
|
|
26
|
+
value: ''
|
|
27
|
+
}, {
|
|
28
|
+
name: ''
|
|
29
|
+
}, {
|
|
30
|
+
color: ''
|
|
31
|
+
}],
|
|
32
|
+
required: true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.default = _default;
|
|
37
|
+
var Template = function Template(args) {
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_ComponentWrapper.ComponentWrapper, null, /*#__PURE__*/_react.default.createElement(_DonutChart.default, args));
|
|
39
|
+
};
|
|
40
|
+
var DonutChartDefault = Template.bind({});
|
|
41
|
+
exports.DonutChartDefault = DonutChartDefault;
|
|
42
|
+
DonutChartDefault.args = {
|
|
43
|
+
children: null,
|
|
44
|
+
data: [{
|
|
45
|
+
value: 56,
|
|
46
|
+
name: 'A Name',
|
|
47
|
+
color: 'blue'
|
|
48
|
+
}, {
|
|
49
|
+
value: 34,
|
|
50
|
+
name: 'B Name',
|
|
51
|
+
color: 'red'
|
|
52
|
+
}],
|
|
53
|
+
center: true
|
|
54
|
+
};
|
|
37
55
|
|
|
38
56
|
// doublecheck
|
|
39
|
-
// cannot resolve d3
|
|
40
|
-
"use strict";
|
|
57
|
+
// cannot resolve d3
|
|
@@ -34,7 +34,7 @@ var RegisterTaxIdFlow = function RegisterTaxIdFlow(_ref) {
|
|
|
34
34
|
if (showComplete && onComplete) {
|
|
35
35
|
onComplete();
|
|
36
36
|
}
|
|
37
|
-
}, [showComplete
|
|
37
|
+
}, [showComplete]);
|
|
38
38
|
|
|
39
39
|
//we store the scroll ref so we can send it to FAQ items and handle scroll when FAQ item is opened
|
|
40
40
|
var scrollRef = (0, _react.useRef)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"axios": "^0.27.1",
|
|
41
41
|
"bignumber.js": "^9.1.1",
|
|
42
42
|
"cross-env": "^7.0.3",
|
|
43
|
+
"d3": "^7.8.3",
|
|
43
44
|
"date-fns": "^2.29.3",
|
|
44
45
|
"formik": "^2.2.9",
|
|
45
46
|
"js-cookie": "^2.2.1",
|