@rio-cloud/rio-uikit 0.15.0-beta-48 → 0.15.0-beta-49
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/lib/components/actionBarItem/ActionBarItem.js +9 -0
- package/lib/components/actionBarItem/ActionBarItemList.js +38 -0
- package/lib/components/actionBarItem/ActionBarItemListItem.js +51 -0
- package/lib/components/actionBarItem/ActionBarItemListSeparator.js +37 -0
- package/lib/components/actionBarItem/ActionBarOverlay.js +2 -2
- package/lib/components/animatedNumber/AnimatedNumber.js +81 -0
- package/lib/components/applicationHeader/ApplicationHeader.js +4 -1
- package/lib/components/assetTree/Tree.js +3 -3
- package/lib/components/autosuggest/AutoSuggest.js +5 -3
- package/lib/components/button/Button.js +25 -8
- package/lib/components/charts/BarChart.js +2 -2
- package/lib/components/charts/ChartNeedle.js +2 -2
- package/lib/components/charts/chartHelper.js +3 -3
- package/lib/components/checkbox/Checkbox.js +127 -171
- package/lib/components/checkbox/Checkbox.less +4 -2
- package/lib/components/clearableInput/ClearableInput.js +2 -2
- package/lib/components/clearableInput/ClearableInput.less +1 -0
- package/lib/components/dataTabs/DataTabs.js +78 -120
- package/lib/components/datepicker/DateRangePicker.js +3 -3
- package/lib/components/dialog/Dialog.js +2 -2
- package/lib/components/dialog/InfoDialog.js +2 -2
- package/lib/components/dialog/MediaDialog.js +2 -2
- package/lib/components/dialog/SaveDialog.js +2 -2
- package/lib/components/dialog/SimpleDialog.js +2 -2
- package/lib/components/dialog/SplitDialog.js +2 -2
- package/lib/components/driverName/DriverName.js +1 -1
- package/lib/components/dropdown/ButtonDropdown.js +2 -2
- package/lib/components/dropdown/DropdownSubmenu.less +2 -2
- package/lib/components/fade/Fade.js +2 -2
- package/lib/components/filepicker/FilePicker.js +2 -2
- package/lib/components/listMenu/ListMenu.js +2 -2
- package/lib/components/loadMore/LoadMoreButton.js +1 -1
- package/lib/components/map/components/Map.js +2 -2
- package/lib/components/map/components/constants.js +1 -1
- package/lib/components/map/components/features/Route.js +2 -2
- package/lib/components/map/components/features/basics/MapLayerGroup.js +2 -2
- package/lib/components/map/components/features/basics/marker/Marker.js +2 -1
- package/lib/components/map/components/features/basics/marker/TextMarker.js +1 -1
- package/lib/components/map/components/features/layers/MarkerLayer.js +2 -2
- package/lib/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -2
- package/lib/components/map/utils/eventHandling.js +5 -4
- package/lib/components/map/utils/hooks.js +1 -1
- package/lib/components/map/utils/validation.js +1 -1
- package/lib/components/numberControl/NumberControl.js +161 -145
- package/lib/components/numberInput/NumberInput.js +147 -229
- package/lib/components/onboarding/OnboardingTip.js +1 -1
- package/lib/components/overlay/OverlayTrigger.js +2 -1
- package/lib/components/radiobutton/RadioButton.js +116 -148
- package/lib/components/radiobutton/RadioButton.less +10 -6
- package/lib/components/resizer/Resizer.less +2 -2
- package/lib/components/selects/BaseDropdownMenu.js +2 -2
- package/lib/components/spinner/Spinner.js +1 -1
- package/lib/components/states/baseStatePropTypes.js +1 -1
- package/lib/components/supportMarker/toggleSupportMarker.js +1 -1
- package/lib/components/table/SortArrows.js +1 -1
- package/lib/components/table/TableSettingsDialog.js +2 -2
- package/lib/components/table/TableSettingsListItem.js +1 -1
- package/lib/components/teaser/Teaser.js +1 -1
- package/lib/components/timepicker/TimePicker.js +10 -2
- package/lib/components/tooltip/Tooltip.js +4 -4
- package/lib/es/ActionBarItem.d.ts +6 -0
- package/lib/es/ActionBarItemList.d.ts +5 -0
- package/lib/es/ActionBarItemList.js +15 -0
- package/lib/es/ActionBarItemListItem.d.ts +5 -0
- package/lib/es/ActionBarItemListItem.js +15 -0
- package/lib/es/ActionBarItemListSeparator.d.ts +5 -0
- package/lib/es/ActionBarItemListSeparator.js +15 -0
- package/lib/es/AnimatedNumber.d.ts +5 -0
- package/lib/es/AnimatedNumber.js +15 -0
- package/lib/es/SortUtils.js +4 -4
- package/lib/es/deviceUtils.js +4 -4
- package/lib/es/routeUtils.js +6 -6
- package/lib/hooks/useDebugInfo.js +2 -2
- package/lib/index.js +267 -267
- package/lib/mapIndex.js +72 -72
- package/lib/style/css/_exports/rio-buyButton.less +5 -0
- package/lib/style/css/_exports/rio-website.less +28 -0
- package/lib/style/css/bootstrap/dropdowns.less +13 -13
- package/lib/style/css/rio-theme/button-groups.less +1 -1
- package/lib/style/css/rio-theme/buttons.less +53 -1
- package/lib/style/css/rio-theme/carousel.less +1 -1
- package/lib/style/css/rio-theme/navbar.less +44 -1
- package/lib/style/css/rio-theme/pagination.less +1 -1
- package/lib/style/css/utils/animations/translate.less +4 -1
- package/lib/style/css/utils/text.less +3 -0
- package/lib/style/fonts/rioglyph/rioglyph.less +74 -14
- package/lib/style/fonts/rioglyph/rioglyph.svg +106 -34
- package/lib/style/fonts/rioglyph/rioglyph.ttf +0 -0
- package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
- package/lib/types.ts +30 -1
- package/lib/utils/SortUtils.js +2 -2
- package/lib/utils/buttonEffect.js +68 -0
- package/lib/utils/deviceUtils.js +1 -1
- package/lib/utils/logDeprecatedWarnings.js +1 -1
- package/lib/utils/logPropError.js +1 -1
- package/lib/utils/routeUtils.js +4 -3
- package/lib/utils/scrollItemIntoView.js +1 -1
- package/lib/version.json +1 -1
- package/package.json +62 -67
|
@@ -9,15 +9,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.default = void 0;
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
19
|
-
|
|
20
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
21
17
|
|
|
22
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
23
19
|
|
|
@@ -25,158 +21,176 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
25
21
|
|
|
26
22
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
23
|
|
|
28
|
-
var _NumberInput =
|
|
24
|
+
var _NumberInput = _interopRequireWildcard(require("../numberInput/NumberInput"));
|
|
25
|
+
|
|
26
|
+
var _excluded = ["min", "max", "step", "value", "onValueChanged", "disabled", "bsSize", "className", "unit", "inputAddon"];
|
|
29
27
|
|
|
30
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
29
|
|
|
32
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
var INITIAL_TICK = 700;
|
|
33
|
+
var TICK_TIME = 50;
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
var NumberControl = function NumberControl(props) {
|
|
36
|
+
var _props$min = props.min,
|
|
37
|
+
min = _props$min === void 0 ? _NumberInput.defaultProps.min : _props$min,
|
|
38
|
+
_props$max = props.max,
|
|
39
|
+
max = _props$max === void 0 ? _NumberInput.defaultProps.max : _props$max,
|
|
40
|
+
_props$step = props.step,
|
|
41
|
+
step = _props$step === void 0 ? _NumberInput.defaultProps.step : _props$step,
|
|
42
|
+
_props$value = props.value,
|
|
43
|
+
value = _props$value === void 0 ? _NumberInput.defaultProps.value : _props$value,
|
|
44
|
+
_props$onValueChanged = props.onValueChanged,
|
|
45
|
+
onValueChanged = _props$onValueChanged === void 0 ? function () {} : _props$onValueChanged,
|
|
46
|
+
disabled = props.disabled,
|
|
47
|
+
bsSize = props.bsSize,
|
|
48
|
+
className = props.className,
|
|
49
|
+
unit = props.unit,
|
|
50
|
+
inputAddon = props.inputAddon,
|
|
51
|
+
remainingProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
52
|
+
var timeout = (0, _react.useRef)();
|
|
53
|
+
|
|
54
|
+
var _useState = (0, _react.useState)(false),
|
|
55
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
56
|
+
isHoldingDownInc = _useState2[0],
|
|
57
|
+
setIsHoldingDownInc = _useState2[1];
|
|
58
|
+
|
|
59
|
+
var _useState3 = (0, _react.useState)(false),
|
|
60
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
61
|
+
isHoldingDownDec = _useState4[0],
|
|
62
|
+
setIsHoldingDownDec = _useState4[1];
|
|
63
|
+
|
|
64
|
+
var _useState5 = (0, _react.useState)(value),
|
|
65
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
66
|
+
internalValue = _useState6[0],
|
|
67
|
+
setInternalValue = _useState6[1];
|
|
68
|
+
|
|
69
|
+
var initialTimeout = function initialTimeout(callback) {
|
|
70
|
+
clearTimeout(timeout.current);
|
|
71
|
+
timeout.current = setTimeout(function () {
|
|
72
|
+
callback();
|
|
73
|
+
}, INITIAL_TICK);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var recursiveTimeout = function recursiveTimeout(callback) {
|
|
77
|
+
timeout.current = setTimeout(function () {
|
|
78
|
+
callback();
|
|
79
|
+
}, TICK_TIME);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
(0, _react.useEffect)(function () {
|
|
83
|
+
// Call increment function for a loop when button is holding down
|
|
84
|
+
if (isHoldingDownInc && !disabled) {
|
|
85
|
+
initialTimeout(incrementRecusively);
|
|
86
|
+
} // Call decrement function for a loop when button is holding down
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
if (isHoldingDownDec && !disabled) {
|
|
90
|
+
initialTimeout(decrementRecursively);
|
|
91
|
+
}
|
|
92
|
+
}, [isHoldingDownInc, isHoldingDownDec]);
|
|
93
|
+
|
|
94
|
+
var incrementInternalValue = function incrementInternalValue() {
|
|
95
|
+
setInternalValue(function (val) {
|
|
96
|
+
var currentValue = (0, _NumberInput.convertNonIntegerToDefault)(val);
|
|
97
|
+
var newValue = currentValue + step;
|
|
98
|
+
return newValue <= max ? newValue : val;
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
var decrementInternalValue = function decrementInternalValue() {
|
|
103
|
+
setInternalValue(function (val) {
|
|
104
|
+
var currentValue = (0, _NumberInput.convertNonIntegerToDefault)(val);
|
|
105
|
+
var newValue = currentValue - step;
|
|
106
|
+
return newValue >= min ? newValue : val;
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
var incrementRecusively = function incrementRecusively() {
|
|
111
|
+
incrementInternalValue();
|
|
112
|
+
recursiveTimeout(incrementRecusively);
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
var decrementRecursively = function decrementRecursively() {
|
|
116
|
+
decrementInternalValue();
|
|
117
|
+
recursiveTimeout(decrementRecursively);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
var handleMouseDownOnIncrement = function handleMouseDownOnIncrement() {
|
|
121
|
+
if (disabled) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
37
124
|
|
|
38
|
-
|
|
39
|
-
var TICK_TIME = 50;
|
|
125
|
+
setIsHoldingDownInc(true); // increment for first click
|
|
40
126
|
|
|
41
|
-
|
|
42
|
-
|
|
127
|
+
incrementInternalValue();
|
|
128
|
+
};
|
|
43
129
|
|
|
44
|
-
var
|
|
130
|
+
var handleMouseDownOnDecrement = function handleMouseDownOnDecrement() {
|
|
131
|
+
if (disabled) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
45
134
|
|
|
46
|
-
|
|
47
|
-
var _this;
|
|
135
|
+
setIsHoldingDownDec(true); // decrement for first click
|
|
48
136
|
|
|
49
|
-
(
|
|
50
|
-
|
|
51
|
-
_this.isHolding = false;
|
|
52
|
-
_this.timeOutFunction = undefined;
|
|
53
|
-
return _this;
|
|
54
|
-
}
|
|
137
|
+
decrementInternalValue();
|
|
138
|
+
};
|
|
55
139
|
|
|
56
|
-
(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
140
|
+
var handleStopHolding = function handleStopHolding() {
|
|
141
|
+
clearTimeout(timeout.current);
|
|
142
|
+
setIsHoldingDownInc(false);
|
|
143
|
+
setIsHoldingDownDec(false);
|
|
144
|
+
};
|
|
60
145
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, {
|
|
69
|
-
key: "decrement",
|
|
70
|
-
value: function decrement() {
|
|
71
|
-
var _this3 = this;
|
|
72
|
-
|
|
73
|
-
if (this.isHolding && !this.props.disabled) {
|
|
74
|
-
this.numberInput.decrementValue();
|
|
75
|
-
this.timeOutFunction = setTimeout(function () {
|
|
76
|
-
_this3.decrement();
|
|
77
|
-
}, TICK_TIME);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
key: "onIncrement",
|
|
82
|
-
value: function onIncrement() {
|
|
83
|
-
var _this4 = this;
|
|
84
|
-
|
|
85
|
-
if (!this.props.disabled) {
|
|
86
|
-
this.isHolding = true;
|
|
87
|
-
this.numberInput.incrementValue();
|
|
88
|
-
clearTimeout(this.timeOutFunction);
|
|
89
|
-
this.timeOutFunction = setTimeout(function () {
|
|
90
|
-
_this4.increment();
|
|
91
|
-
}, INITIAL_TICK);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
key: "onDecrement",
|
|
96
|
-
value: function onDecrement() {
|
|
97
|
-
var _this5 = this;
|
|
98
|
-
|
|
99
|
-
if (!this.props.disabled) {
|
|
100
|
-
this.isHolding = true;
|
|
101
|
-
this.numberInput.decrementValue();
|
|
102
|
-
clearTimeout(this.timeOutFunction);
|
|
103
|
-
this.timeOutFunction = setTimeout(function () {
|
|
104
|
-
_this5.decrement();
|
|
105
|
-
}, INITIAL_TICK);
|
|
106
|
-
}
|
|
146
|
+
var handleUpdatedNumberInputValue = function handleUpdatedNumberInputValue(value) {
|
|
147
|
+
// Set the internal value when the value of the actual input has changed,
|
|
148
|
+
// for instance the user has typed in a number manually and to
|
|
149
|
+
// use this number as base to increase or decrease from.
|
|
150
|
+
// Ignore empty value in case the user has removed it
|
|
151
|
+
if (value && (!isHoldingDownDec || !isHoldingDownInc)) {
|
|
152
|
+
setInternalValue(Number(value));
|
|
107
153
|
}
|
|
108
|
-
}, {
|
|
109
|
-
key: "stopHolding",
|
|
110
|
-
value: function stopHolding() {
|
|
111
|
-
this.isHolding = false;
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: "render",
|
|
115
|
-
value: function render() {
|
|
116
|
-
var _this6 = this;
|
|
117
|
-
|
|
118
|
-
var _this$props = this.props,
|
|
119
|
-
min = _this$props.min,
|
|
120
|
-
max = _this$props.max,
|
|
121
|
-
value = _this$props.value,
|
|
122
|
-
step = _this$props.step,
|
|
123
|
-
onValueChanged = _this$props.onValueChanged,
|
|
124
|
-
disabled = _this$props.disabled,
|
|
125
|
-
bsSize = _this$props.bsSize,
|
|
126
|
-
className = _this$props.className,
|
|
127
|
-
unit = _this$props.unit,
|
|
128
|
-
inputAddon = _this$props.inputAddon;
|
|
129
|
-
var classes = (0, _classnames.default)('NumberControl', 'form-group', className);
|
|
130
|
-
var inputGroupClassNames = (0, _classnames.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
|
|
131
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
-
className: classes
|
|
133
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
134
|
-
className: inputGroupClassNames
|
|
135
|
-
}, inputAddon && /*#__PURE__*/_react.default.createElement("span", {
|
|
136
|
-
className: 'input-group-addon'
|
|
137
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
138
|
-
className: inputAddon
|
|
139
|
-
})), /*#__PURE__*/_react.default.createElement(_NumberInput.default, {
|
|
140
|
-
min: min,
|
|
141
|
-
max: max,
|
|
142
|
-
value: value,
|
|
143
|
-
step: step,
|
|
144
|
-
disabled: disabled,
|
|
145
|
-
onValueChanged: onValueChanged,
|
|
146
|
-
ref: function ref(child) {
|
|
147
|
-
_this6.numberInput = child;
|
|
148
|
-
}
|
|
149
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
-
className: 'input-group-addon'
|
|
151
|
-
}, unit && /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
-
className: 'margin-right-5'
|
|
153
|
-
}, unit), /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
-
onMouseDown: function onMouseDown() {
|
|
155
|
-
return _this6.onDecrement();
|
|
156
|
-
},
|
|
157
|
-
onMouseUp: function onMouseUp() {
|
|
158
|
-
return _this6.stopHolding();
|
|
159
|
-
},
|
|
160
|
-
className: 'text-color-gray hover-text-color-dark'
|
|
161
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
162
|
-
className: 'rioglyph rioglyph-minus scale-90'
|
|
163
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
164
|
-
onMouseDown: function onMouseDown() {
|
|
165
|
-
return _this6.onIncrement();
|
|
166
|
-
},
|
|
167
|
-
onMouseUp: function onMouseUp() {
|
|
168
|
-
return _this6.stopHolding();
|
|
169
|
-
},
|
|
170
|
-
className: 'text-color-gray hover-text-color-dark margin-left-5'
|
|
171
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
-
className: 'rioglyph rioglyph-plus scale-90'
|
|
173
|
-
})))));
|
|
174
|
-
}
|
|
175
|
-
}]);
|
|
176
|
-
return NumberControl;
|
|
177
|
-
}(_react.Component);
|
|
178
154
|
|
|
179
|
-
|
|
155
|
+
onValueChanged(value);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
var classes = (0, _classnames.default)('NumberControl', 'form-group', className);
|
|
159
|
+
var inputGroupClassNames = (0, _classnames.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
|
|
160
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, remainingProps, {
|
|
161
|
+
className: classes
|
|
162
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
163
|
+
className: inputGroupClassNames
|
|
164
|
+
}, inputAddon && /*#__PURE__*/_react.default.createElement("span", {
|
|
165
|
+
className: 'input-group-addon'
|
|
166
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
167
|
+
className: inputAddon
|
|
168
|
+
})), /*#__PURE__*/_react.default.createElement(_NumberInput.default, {
|
|
169
|
+
min: min,
|
|
170
|
+
max: max,
|
|
171
|
+
value: internalValue,
|
|
172
|
+
step: step,
|
|
173
|
+
disabled: disabled,
|
|
174
|
+
onValueChanged: handleUpdatedNumberInputValue
|
|
175
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
+
className: 'input-group-addon'
|
|
177
|
+
}, unit && /*#__PURE__*/_react.default.createElement("div", {
|
|
178
|
+
className: 'margin-right-5'
|
|
179
|
+
}, unit), /*#__PURE__*/_react.default.createElement("div", {
|
|
180
|
+
onMouseDown: handleMouseDownOnDecrement,
|
|
181
|
+
onMouseUp: handleStopHolding,
|
|
182
|
+
className: 'decrementButton text-color-gray hover-text-color-dark'
|
|
183
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
184
|
+
className: 'rioglyph rioglyph-minus scale-90'
|
|
185
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
186
|
+
onMouseDown: handleMouseDownOnIncrement,
|
|
187
|
+
onMouseUp: handleStopHolding,
|
|
188
|
+
className: 'incrementButton text-color-gray hover-text-color-dark margin-left-5'
|
|
189
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
190
|
+
className: 'rioglyph rioglyph-plus scale-90'
|
|
191
|
+
})))));
|
|
192
|
+
};
|
|
193
|
+
|
|
180
194
|
NumberControl.propTypes = {
|
|
181
195
|
min: _propTypes.default.number,
|
|
182
196
|
max: _propTypes.default.number,
|
|
@@ -188,4 +202,6 @@ NumberControl.propTypes = {
|
|
|
188
202
|
className: _propTypes.default.string,
|
|
189
203
|
unit: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]),
|
|
190
204
|
inputAddon: _propTypes.default.string
|
|
191
|
-
};
|
|
205
|
+
};
|
|
206
|
+
var _default = NumberControl;
|
|
207
|
+
exports.default = _default;
|