ui-kit-ck-consultant 0.5.167 → 0.5.170
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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -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",
|
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
|
};
|
@@ -2309,7 +2313,7 @@ var PieChart = /*#__PURE__*/function (_React$Component) {
|
|
2309
2313
|
},
|
2310
2314
|
tooltips: {
|
2311
2315
|
callbacks: {
|
2312
|
-
label: function
|
2316
|
+
label: this.props.label ? this.props.label : function (tooltipItem, data) {
|
2313
2317
|
var name = _this.props.name ? _this.props.name : data.labels[tooltipItem.index] || '';
|
2314
2318
|
var digits = _this.props.digits >= 0 ? _this.props.digits : 2;
|
2315
2319
|
|
@@ -9774,7 +9778,9 @@ var Calendar = /*#__PURE__*/function (_React$Component) {
|
|
9774
9778
|
if (_this.state.activeDate === currentDate) {
|
9775
9779
|
return 1;
|
9776
9780
|
} else {
|
9777
|
-
if (_this.props.disabledDates && _this.props.disabledDates.includes(currentDate) || !_this.props.isWeek && [6, 7].includes(parseInt(moment(currentDate).isoWeekday())) || !_this.props.isHoliday && _this.holidays.includes(currentDate) || _this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)) || _this.props.maxDate && moment(_this.props.maxDate).isBefore(moment(currentDate))) {
|
9781
|
+
if (_this.props.disabledDates && _this.props.disabledDates.includes(currentDate) || !_this.props.isWeek && [6, 7].includes(parseInt(moment(currentDate).isoWeekday())) || !_this.props.isHoliday && _this.holidays.includes(currentDate) || _this.props.minDate && moment(_this.props.minDate).isAfter(moment(currentDate)) || _this.props.maxDate && moment(_this.props.maxDate).isBefore(moment(currentDate)) || _this.props.disabledDays && _this.props.disabledDays.filter(function (element, idx) {
|
9782
|
+
return element === 1 && idx === col;
|
9783
|
+
}).length) {
|
9778
9784
|
return 2;
|
9779
9785
|
} else {
|
9780
9786
|
return 0;
|