intelicoreact 1.0.46 → 1.0.48

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.
@@ -83,7 +83,9 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
83
83
  testId = _ref$testId === void 0 ? 'input' : _ref$testId,
84
84
  action = _ref.action,
85
85
  _ref$isUseAutoSelect = _ref.isUseAutoSelect,
86
- isUseAutoSelect = _ref$isUseAutoSelect === void 0 ? true : _ref$isUseAutoSelect;
86
+ isUseAutoSelect = _ref$isUseAutoSelect === void 0 ? true : _ref$isUseAutoSelect,
87
+ _ref$isReadOnly = _ref.isReadOnly,
88
+ isReadOnly = _ref$isReadOnly === void 0 ? false : _ref$isReadOnly;
87
89
  var DEFAULT_BLINK_TIME = 100; // STATES
88
90
 
89
91
  var _useState = (0, _react.useState)(false),
@@ -309,6 +311,7 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
309
311
  return setOnInputHover(false);
310
312
  }
311
313
  }, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({
314
+ readOnly: isReadOnly,
312
315
  "data-testid": "input--key-".concat(testId, "--type-").concat(type)
313
316
  }, uniProps, {
314
317
  ref: inputRef,
@@ -111,7 +111,8 @@ function RangeSlider2(_ref) {
111
111
  to = _ref2.to,
112
112
  label = _ref2.label,
113
113
  value = _ref2.value,
114
- data = _ref2.data,
114
+ _ref2$data = _ref2.data,
115
+ data = _ref2$data === void 0 ? [] : _ref2$data,
115
116
  _ref2$id = _ref2.id,
116
117
  id = _ref2$id === void 0 ? null : _ref2$id;
117
118
  return setRanges(function (ranges) {
@@ -151,7 +152,7 @@ function RangeSlider2(_ref) {
151
152
  range.to = to !== null && to !== void 0 ? to : range === null || range === void 0 ? void 0 : range.to;
152
153
  range.label = label !== null && label !== void 0 ? label : range === null || range === void 0 ? void 0 : range.label;
153
154
  range.value = value !== undefined ? Number.isInteger(value) ? value : 0 : range === null || range === void 0 ? void 0 : range.value;
154
- range.data = data;
155
+ range.data = data !== undefined ? data : range === null || range === void 0 ? void 0 : range.data;
155
156
  }
156
157
 
157
158
  return newRanges;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [