ui-kit-ck-consultant 0.5.168 → 0.5.171
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/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -171,9 +171,13 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
171
171
|
var buttonClass = classNames$1((_classNames = {}, _classNames[style$1.button_outline] = !!this.props.outline, _classNames[style$1.button] = !this.props.outline, _classNames[style$1.button_special] = !!this.props.children, _classNames[style$1.small] = !!this.props.small, _classNames[style$1.big] = !!this.props.big, _classNames[style$1.button_red] = !!this.props.red, _classNames[style$1.button_blue] = !!this.props.blue, _classNames[style$1.button_orange] = !!this.props.orange, _classNames[style$1.button_green] = !!this.props.green, _classNames[this.props.className] = !!this.props.className, _classNames));
|
172
172
|
return /*#__PURE__*/React__default.createElement("button", {
|
173
173
|
className: buttonClass,
|
174
|
+
style: this.props.style,
|
174
175
|
onClick: this.props.onClick,
|
175
176
|
disabled: this.props.disabled
|
176
|
-
}, /*#__PURE__*/React__default.createElement("span",
|
177
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
178
|
+
style: this.props.styleSpan
|
179
|
+
}, this.props.text), this.props.children ? /*#__PURE__*/React__default.createElement("div", {
|
180
|
+
style: this.props.styleDiv,
|
177
181
|
className: classNames$1(style$1.button_special_icon)
|
178
182
|
}, this.props.children) : '');
|
179
183
|
};
|
@@ -2254,6 +2258,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2254
2258
|
|
2255
2259
|
for (var i = 0; i < nbValue; i++) {
|
2256
2260
|
dataValue.datasets[0].datalabels = this.props.datalabels2 ? this.props.datalabels2[i] : null;
|
2261
|
+
dataValue.datasets[0].percentage.push(this.props.data[i].percentage);
|
2257
2262
|
dataValue.datasets[0].data.push(this.props.data[i].data);
|
2258
2263
|
dataValue.datasets[0].backgroundColor.push(this.props.data[i].color);
|
2259
2264
|
dataValue.datasets[0].hoverBackgroundColor.push(this.props.data[i].color + '80');
|
@@ -2312,7 +2317,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2312
2317
|
},
|
2313
2318
|
tooltips: {
|
2314
2319
|
callbacks: {
|
2315
|
-
label: function
|
2320
|
+
label: this.props.label ? this.props.label : function (tooltipItem, data) {
|
2316
2321
|
var name = _this.props.name ? _this.props.name : data.labels[tooltipItem.index] || '';
|
2317
2322
|
var digits = _this.props.digits >= 0 ? _this.props.digits : 2;
|
2318
2323
|
|