@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/README.md CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
  Several quick start options are available:
44
44
 
45
- - [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v4.12.0.zip)
45
+ - [Download the latest release](https://github.com/coreui/coreui-react-pro/archive/v4.12.2.zip)
46
46
  - Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
47
47
  - Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
48
48
  - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
package/dist/index.es.js CHANGED
@@ -9289,22 +9289,22 @@ var CTimePicker = forwardRef(function (_a, ref) {
9289
9289
  var TimePickerSelect = function () {
9290
9290
  return (React$1.createElement(React$1.Fragment, null,
9291
9291
  React$1.createElement("span", { className: "time-picker-inline-icon" }),
9292
- React$1.createElement("select", { className: "time-picker-inline-select", disabled: disabled, onChange: function (event) {
9292
+ React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
9293
9293
  return handleTimeChange('hours', event.target.value);
9294
9294
  }, value: getSelectedHour(date, locale) }, localizedTimePartials &&
9295
9295
  localizedTimePartials.listOfHours.map(function (option, index) { return (React$1.createElement("option", { value: option.value.toString(), key: index }, option.label)); })),
9296
9296
  React$1.createElement(React$1.Fragment, null, ":"),
9297
- React$1.createElement("select", { className: "time-picker-inline-select", disabled: disabled, onChange: function (event) {
9297
+ React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
9298
9298
  return handleTimeChange('minutes', event.target.value);
9299
9299
  }, value: getSelectedMinutes(date) }, localizedTimePartials &&
9300
9300
  localizedTimePartials.listOfMinutes.map(function (option, index) { return (React$1.createElement("option", { value: option.value.toString(), key: index }, option.label)); })),
9301
9301
  seconds && (React$1.createElement(React$1.Fragment, null,
9302
9302
  React$1.createElement(React$1.Fragment, null, ":"),
9303
- React$1.createElement("select", { className: "time-picker-inline-select", disabled: disabled, onChange: function (event) {
9303
+ React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
9304
9304
  return handleTimeChange('seconds', event.target.value);
9305
9305
  }, value: getSelectedSeconds(date) }, localizedTimePartials &&
9306
9306
  localizedTimePartials.listOfSeconds.map(function (option, index) { return (React$1.createElement("option", { value: option.value.toString(), key: index }, option.label)); })))),
9307
- localizedTimePartials && localizedTimePartials.hour12 && (React$1.createElement("select", { className: "time-picker-inline-select", disabled: disabled, onChange: function (event) {
9307
+ localizedTimePartials && localizedTimePartials.hour12 && (React$1.createElement("select", { className: "form-select", disabled: disabled, onChange: function (event) {
9308
9308
  return handleTimeChange('toggle', event.target.value);
9309
9309
  }, value: _ampm },
9310
9310
  React$1.createElement("option", { value: "am" }, "AM"),
@@ -10486,10 +10486,12 @@ var CModal = forwardRef(function (_a, ref) {
10486
10486
  setVisible(visible);
10487
10487
  }, [visible]);
10488
10488
  useEffect(function () {
10489
- document.addEventListener('click', handleClickOutside);
10490
- document.addEventListener('keydown', handleKeyDown);
10489
+ if (_visible) {
10490
+ document.addEventListener('mouseup', handleClickOutside);
10491
+ document.addEventListener('keydown', handleKeyDown);
10492
+ }
10491
10493
  return function () {
10492
- document.removeEventListener('click', handleClickOutside);
10494
+ document.removeEventListener('mouseup', handleClickOutside);
10493
10495
  document.removeEventListener('keydown', handleKeyDown);
10494
10496
  };
10495
10497
  }, [_visible]);