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.
@@ -168,9 +168,13 @@ var Button = /*#__PURE__*/function (_React$Component) {
168
168
  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));
169
169
  return /*#__PURE__*/React.createElement("button", {
170
170
  className: buttonClass,
171
+ style: this.props.style,
171
172
  onClick: this.props.onClick,
172
173
  disabled: this.props.disabled
173
- }, /*#__PURE__*/React.createElement("span", null, this.props.text), this.props.children ? /*#__PURE__*/React.createElement("div", {
174
+ }, /*#__PURE__*/React.createElement("span", {
175
+ style: this.props.styleSpan
176
+ }, this.props.text), this.props.children ? /*#__PURE__*/React.createElement("div", {
177
+ style: this.props.styleDiv,
174
178
  className: classNames$1(style$1.button_special_icon)
175
179
  }, this.props.children) : '');
176
180
  };
@@ -2251,6 +2255,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
2251
2255
 
2252
2256
  for (var i = 0; i < nbValue; i++) {
2253
2257
  dataValue.datasets[0].datalabels = this.props.datalabels2 ? this.props.datalabels2[i] : null;
2258
+ dataValue.datasets[0].percentage.push(this.props.data[i].percentage);
2254
2259
  dataValue.datasets[0].data.push(this.props.data[i].data);
2255
2260
  dataValue.datasets[0].backgroundColor.push(this.props.data[i].color);
2256
2261
  dataValue.datasets[0].hoverBackgroundColor.push(this.props.data[i].color + '80');
@@ -2309,7 +2314,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
2309
2314
  },
2310
2315
  tooltips: {
2311
2316
  callbacks: {
2312
- label: function label(tooltipItem, data) {
2317
+ label: this.props.label ? this.props.label : function (tooltipItem, data) {
2313
2318
  var name = _this.props.name ? _this.props.name : data.labels[tooltipItem.index] || '';
2314
2319
  var digits = _this.props.digits >= 0 ? _this.props.digits : 2;
2315
2320