iguazio.dashboard-react-controls 1.8.2 → 1.8.3

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.
@@ -40,12 +40,14 @@ var InputNumberButtons = function InputNumberButtons(_ref) {
40
40
  event.preventDefault();
41
41
  if (max && value >= max) return;
42
42
  var newValue = isCurrentValueEmpty() ? step : (0, _math.performFloatOperation)(value, step, '+');
43
+ newValue = max && newValue > max ? max : newValue;
43
44
  onChange(newValue);
44
45
  };
45
46
  var handleDecrease = function handleDecrease(event) {
46
47
  event.preventDefault();
47
48
  if (min && value <= min) return;
48
49
  var newValue = isCurrentValueEmpty() ? -step : (0, _math.performFloatOperation)(value, step, '-');
50
+ newValue = min && newValue < min ? min : newValue;
49
51
  onChange(newValue);
50
52
  };
51
53
  var isCurrentValueEmpty = function isCurrentValueEmpty() {
@@ -29,7 +29,7 @@ var openPopUp = function openPopUp(element, props) {
29
29
  return (0, _reactModalPromise.create)(element)(props);
30
30
  };
31
31
  exports.openPopUp = openPopUp;
32
- var openConfirmPopUp = function openConfirmPopUp(confirmHandler, message) {
32
+ var openConfirmPopUp = function openConfirmPopUp(message, confirmHandler) {
33
33
  return openPopUp(_components.ConfirmDialog, {
34
34
  cancelButton: {
35
35
  label: 'Cancel',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iguazio.dashboard-react-controls",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",