@coreui/react-pro 4.12.0 → 4.12.2
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
CHANGED
|
@@ -9291,22 +9291,22 @@ var CTimePicker = React$1.forwardRef(function (_a, ref) {
|
|
|
9291
9291
|
var TimePickerSelect = function () {
|
|
9292
9292
|
return (React$1.createElement(React$1.Fragment, null,
|
|
9293
9293
|
React$1.createElement("span", { className: "time-picker-inline-icon" }),
|
|
9294
|
-
React$1.createElement("select", { className: "
|
|
9294
|
+
React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
|
|
9295
9295
|
return handleTimeChange('hours', event.target.value);
|
|
9296
9296
|
}, value: getSelectedHour(date, locale) }, localizedTimePartials &&
|
|
9297
9297
|
localizedTimePartials.listOfHours.map(function (option, index) { return (React$1.createElement("option", { value: option.value.toString(), key: index }, option.label)); })),
|
|
9298
9298
|
React$1.createElement(React$1.Fragment, null, ":"),
|
|
9299
|
-
React$1.createElement("select", { className: "
|
|
9299
|
+
React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
|
|
9300
9300
|
return handleTimeChange('minutes', event.target.value);
|
|
9301
9301
|
}, value: getSelectedMinutes(date) }, localizedTimePartials &&
|
|
9302
9302
|
localizedTimePartials.listOfMinutes.map(function (option, index) { return (React$1.createElement("option", { value: option.value.toString(), key: index }, option.label)); })),
|
|
9303
9303
|
seconds && (React$1.createElement(React$1.Fragment, null,
|
|
9304
9304
|
React$1.createElement(React$1.Fragment, null, ":"),
|
|
9305
|
-
React$1.createElement("select", { className: "
|
|
9305
|
+
React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
|
|
9306
9306
|
return handleTimeChange('seconds', event.target.value);
|
|
9307
9307
|
}, value: getSelectedSeconds(date) }, localizedTimePartials &&
|
|
9308
9308
|
localizedTimePartials.listOfSeconds.map(function (option, index) { return (React$1.createElement("option", { value: option.value.toString(), key: index }, option.label)); })))),
|
|
9309
|
-
localizedTimePartials && localizedTimePartials.hour12 && (React$1.createElement("select", { className: "
|
|
9309
|
+
localizedTimePartials && localizedTimePartials.hour12 && (React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
|
|
9310
9310
|
return handleTimeChange('toggle', event.target.value);
|
|
9311
9311
|
}, value: _ampm },
|
|
9312
9312
|
React$1.createElement("option", { value: "am" }, "AM"),
|
|
@@ -10488,10 +10488,12 @@ var CModal = React$1.forwardRef(function (_a, ref) {
|
|
|
10488
10488
|
setVisible(visible);
|
|
10489
10489
|
}, [visible]);
|
|
10490
10490
|
React$1.useEffect(function () {
|
|
10491
|
-
|
|
10492
|
-
|
|
10491
|
+
if (_visible) {
|
|
10492
|
+
document.addEventListener('mouseup', handleClickOutside);
|
|
10493
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
10494
|
+
}
|
|
10493
10495
|
return function () {
|
|
10494
|
-
document.removeEventListener('
|
|
10496
|
+
document.removeEventListener('mouseup', handleClickOutside);
|
|
10495
10497
|
document.removeEventListener('keydown', handleKeyDown);
|
|
10496
10498
|
};
|
|
10497
10499
|
}, [_visible]);
|