@steroidsjs/bootstrap 2.1.6 → 2.1.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.
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
14
|
if (k2 === undefined) k2 = k;
|
|
4
15
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -50,7 +61,7 @@ function CalendarView(props) {
|
|
|
50
61
|
: undefined
|
|
51
62
|
};
|
|
52
63
|
}, [isRange, selectedDates]), selectedDays = _a.selectedDays, modifiers = _a.modifiers;
|
|
53
|
-
return (React.createElement(react_day_picker_1["default"], { className: bem(bem.block({ ranged: isRange }), props.className), captionElement: react_1.useCallback(function (_a) {
|
|
64
|
+
return (React.createElement(react_day_picker_1["default"], __assign({}, props, { className: bem(bem.block({ ranged: isRange }), props.className), captionElement: react_1.useCallback(function (_a) {
|
|
54
65
|
var classNames = _a.classNames, date = _a.date, localeUtils = _a.localeUtils, locale = _a.locale;
|
|
55
66
|
return (React.createElement(CaptionElement_1["default"], { date: date, locale: locale, toYear: toYear, fromYear: fromYear, classNames: classNames, onChange: onMonthSelect, localeUtils: localeUtils, showCalendarFooter: showFooter, toggleCaptionPanel: toggleCaptionPanel, isCaptionPanelVisible: isCaptionPanelVisible }));
|
|
56
67
|
}, [fromYear, isCaptionPanelVisible, onMonthSelect, showFooter, toYear, toggleCaptionPanel]), renderDay: function (day) {
|
|
@@ -63,6 +74,6 @@ function CalendarView(props) {
|
|
|
63
74
|
else {
|
|
64
75
|
onDaySelect(day);
|
|
65
76
|
}
|
|
66
|
-
}, fixedWeeks: true, month: month, firstDayOfWeek: 1, modifiers: modifiers, canChangeMonth: false, onDayClick: onDaySelect, selectedDays: selectedDays, numberOfMonths: numberOfMonths, localeUtils: moment_1["default"], locale: 'ru' }));
|
|
77
|
+
}, fixedWeeks: true, month: month, firstDayOfWeek: 1, modifiers: modifiers, canChangeMonth: false, onDayClick: onDaySelect, selectedDays: selectedDays, numberOfMonths: numberOfMonths, localeUtils: moment_1["default"], locale: 'ru' })));
|
|
67
78
|
}
|
|
68
79
|
exports["default"] = CalendarView;
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
}
|
|
50
50
|
.DayPicker-Week {
|
|
51
51
|
display: table-row;
|
|
52
|
+
|
|
53
|
+
&--disabled {
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
opacity: .5;
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
.DayPicker-Day {
|
|
54
59
|
position: relative;
|
|
@@ -85,6 +90,11 @@
|
|
|
85
90
|
box-shadow: $calendar-today-shadow;
|
|
86
91
|
}
|
|
87
92
|
}
|
|
93
|
+
|
|
94
|
+
&--disabled {
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
opacity: .5;
|
|
97
|
+
}
|
|
88
98
|
}
|
|
89
99
|
|
|
90
100
|
// Footer
|
|
@@ -50,7 +50,7 @@ function NumberFieldView(props) {
|
|
|
50
50
|
}), 'form-control', 'form-control-' + props.size, !!props.errors && 'is-invalid', props.className) },
|
|
51
51
|
React.createElement("input", __assign({ ref: inputRef, className: bem(bem.element('input', {
|
|
52
52
|
size: props.size
|
|
53
|
-
}), !!props.errors && 'is-invalid') }, props.inputProps, { onChange: function (e) { return props.onChange(e.target.value); } })),
|
|
53
|
+
}), !!props.errors && 'is-invalid') }, props.inputProps, { onChange: function (e) { return props.input.onChange(e.target.value); } })),
|
|
54
54
|
!props.disabled && !props.errors && (React.createElement("div", { className: bem.element('arrows-container') },
|
|
55
55
|
React.createElement("button", { className: bem.element('arrow', {
|
|
56
56
|
disabled: props.inputProps.max && props.inputProps.value >= props.inputProps.max
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steroidsjs/bootstrap",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Vladimir Kozhin <hello@kozhindev.com>",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@ckeditor/ckeditor5-react": "^3.0.2",
|
|
21
21
|
"@steroidsjs/ckeditor5": "^27.0.2-rc.2",
|
|
22
|
-
"@steroidsjs/core": "^2.2.
|
|
22
|
+
"@steroidsjs/core": "^2.2.27",
|
|
23
23
|
"bootstrap": "^4.5.2",
|
|
24
24
|
"lodash": "^4.17.20",
|
|
25
25
|
"lodash-es": "^4.17.20",
|
|
26
26
|
"rc-slider": "^9.7.4",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-collapse": "^5.0.1",
|
|
29
|
-
"react-day-picker": "^7.4.
|
|
29
|
+
"react-day-picker": "^7.4.10",
|
|
30
30
|
"react-dom": "^17.0.2",
|
|
31
31
|
"react-image-crop": "^9.0.2",
|
|
32
32
|
"react-modal": "^3.11.2",
|