intelicoreact 0.2.43 → 0.2.46
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/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +2 -2
- package/dist/Atomic/UI/Chart/Chart.js +3 -1
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +1 -0
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +12 -12
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.scss +1 -1
- package/dist/Atomic/UI/Hint/Hint.js +6 -6
- package/package.json +1 -1
|
@@ -49,9 +49,9 @@ var SwitcherRadio = function SwitcherRadio(_ref) {
|
|
|
49
49
|
var renderRadioGroup = function renderRadioGroup() {
|
|
50
50
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
51
51
|
className: (0, _classnames.default)("".concat(RC, "__wrap"), (0, _defineProperty2.default)({}, "switcher-radio_".concat(direction), direction))
|
|
52
|
-
}, options === null || options === void 0 ? void 0 : options.map(function (option) {
|
|
52
|
+
}, options === null || options === void 0 ? void 0 : options.map(function (option, index) {
|
|
53
53
|
return /*#__PURE__*/_react.default.createElement(_RadioInput.default, (0, _extends2.default)({}, option, {
|
|
54
|
-
key: option.id,
|
|
54
|
+
key: option.id || option.value || index,
|
|
55
55
|
className: "switcher-radio__radio",
|
|
56
56
|
checked: safelyValue,
|
|
57
57
|
onChange: function onChange(val) {
|
|
@@ -44,6 +44,8 @@ var RC = 'chart';
|
|
|
44
44
|
_chart.Chart.register(_chart.CategoryScale, _chart.LinearScale, _chart.BarElement, _chart.PointElement, _chart.LineElement, _chart.Filler, _chart.Tooltip);
|
|
45
45
|
|
|
46
46
|
var Chart = function Chart(_ref) {
|
|
47
|
+
var _modifyOptions$toStri;
|
|
48
|
+
|
|
47
49
|
var className = _ref.className,
|
|
48
50
|
initialModel = _ref.initialModel,
|
|
49
51
|
modelsForSwitch = _ref.modelsForSwitch,
|
|
@@ -73,7 +75,7 @@ var Chart = function Chart(_ref) {
|
|
|
73
75
|
var charContainertRef = (0, _react.useRef)(null);
|
|
74
76
|
var options = (0, _react.useMemo)(function () {
|
|
75
77
|
return customOptions || (modifyOptions ? modifyOptions((0, _utils.getOptions)(model)) : (0, _utils.getOptions)(model));
|
|
76
|
-
}, [customOptions, model, modifyOptions.toString(), data]);
|
|
78
|
+
}, [customOptions, model, modifyOptions === null || modifyOptions === void 0 ? void 0 : (_modifyOptions$toStri = modifyOptions.toString) === null || _modifyOptions$toStri === void 0 ? void 0 : _modifyOptions$toStri.call(modifyOptions), data]);
|
|
77
79
|
var notLibraryOptionsOptions = (0, _react.useMemo)(function () {
|
|
78
80
|
return customOptions ? customOptions === null || customOptions === void 0 ? void 0 : customOptions.notLibraryOptions : (0, _utils.getNotLibraryOptionsOptions)(model);
|
|
79
81
|
}, [customOptions, model, data]);
|
|
@@ -35,21 +35,21 @@ var getIcon = function getIcon(type) {
|
|
|
35
35
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
36
36
|
d: "M18 18V11",
|
|
37
37
|
stroke: "#1F7499",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
strokeWidth: "2",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
41
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
42
42
|
d: "M12 18V6",
|
|
43
43
|
stroke: "#1F7499",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
strokeWidth: "2",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round"
|
|
47
47
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
48
48
|
d: "M6 18V13",
|
|
49
49
|
stroke: "#1F7499",
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
strokeWidth: "2",
|
|
51
|
+
strokeLinecap: "round",
|
|
52
|
+
strokeLinejoin: "round"
|
|
53
53
|
}));
|
|
54
54
|
|
|
55
55
|
case 'Line':
|
|
@@ -68,9 +68,9 @@ var getIcon = function getIcon(type) {
|
|
|
68
68
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
69
69
|
d: "M21 8L15.2544 13.2668C14.1075 14.3181 12.3288 14.3014 11.1818 13.25V13.25C10.0349 12.1986 8.25615 12.1819 7.10919 13.2332L3 17",
|
|
70
70
|
stroke: "#1F7499",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
strokeWidth: "2",
|
|
72
|
+
strokeLinecap: "round",
|
|
73
|
+
strokeLinejoin: "round"
|
|
74
74
|
}));
|
|
75
75
|
|
|
76
76
|
default:
|
|
@@ -88,15 +88,15 @@ var Hint = function Hint(_ref) {
|
|
|
88
88
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
89
89
|
d: "M6.06006 6.00001C6.21679 5.55446 6.52616 5.17875 6.93336 4.93944C7.34056 4.70012 7.81932 4.61264 8.28484 4.69249C8.75036 4.77234 9.1726 5.01436 9.47678 5.3757C9.78095 5.73703 9.94743 6.19436 9.94673 6.66668C9.94673 8.00001 7.94673 8.66668 7.94673 8.66668",
|
|
90
90
|
stroke: "white",
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
strokeWidth: "1.20265",
|
|
92
|
+
strokeLinecap: "round",
|
|
93
|
+
strokeLinejoin: "round"
|
|
94
94
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
95
95
|
d: "M8 11.3334H8.00643",
|
|
96
96
|
stroke: "white",
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
strokeWidth: "1.20265",
|
|
98
|
+
strokeLinecap: "round",
|
|
99
|
+
strokeLinejoin: "round"
|
|
100
100
|
})), variant === 'warning' && /*#__PURE__*/_react.default.createElement(_reactFeather.AlertTriangle, {
|
|
101
101
|
className: "hint__icon",
|
|
102
102
|
color: '#F06D8D',
|