intelicoreact 1.0.21 → 1.0.22

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.
@@ -271,7 +271,7 @@ var Dropdown = function Dropdown(_ref) {
271
271
  };
272
272
 
273
273
  var setListContainerStyles = function setListContainerStyles() {
274
- var _sw$getBoundingClient;
274
+ var _getComputedStyle$mar, _getComputedStyle, _getComputedStyle$mar2, _sw$getBoundingClient;
275
275
 
276
276
  var lc = getListContainer();
277
277
  if (!lc || !isOpen) return false;
@@ -284,10 +284,11 @@ var Dropdown = function Dropdown(_ref) {
284
284
  bottom = _dropdownRef$current$.bottom;
285
285
 
286
286
  var sw = lc.getElementsByClassName('dropdown__list')[0];
287
+ var margin = parseInt((_getComputedStyle$mar = (_getComputedStyle = getComputedStyle(sw)) === null || _getComputedStyle === void 0 ? void 0 : (_getComputedStyle$mar2 = _getComputedStyle.marginTop) === null || _getComputedStyle$mar2 === void 0 ? void 0 : _getComputedStyle$mar2.replace('px', '')) !== null && _getComputedStyle$mar !== void 0 ? _getComputedStyle$mar : 0);
287
288
  var swHeight = sw === null || sw === void 0 ? void 0 : (_sw$getBoundingClient = sw.getBoundingClientRect()) === null || _sw$getBoundingClient === void 0 ? void 0 : _sw$getBoundingClient.height;
288
289
  lc.style.minWidth = "".concat(width, "px");
289
290
  lc.style.left = "".concat(left, "px");
290
- lc.style.top = "".concat(windowHeight - top - height >= swHeight ? top + height : top - swHeight, "px");
291
+ lc.style.top = "".concat(windowHeight - top - height >= swHeight ? top + height : top - swHeight - margin * 2, "px");
291
292
  lc.style.maxHeight = "".concat(swHeight, "px");
292
293
  };
293
294
 
@@ -23,14 +23,13 @@
23
23
  height: 28px;
24
24
  align-items: center;
25
25
  cursor: pointer;
26
- padding-left: 9px;
27
- padding-right: 16px;
28
26
  font-weight: 400;
29
27
  display: block;
30
28
  position: relative;
31
29
  text-align: left;
32
30
 
33
31
  .text {
32
+ padding: 0 16px 0 8px;
34
33
  white-space: nowrap;
35
34
  overflow: hidden;
36
35
  text-overflow: ellipsis;
@@ -49,7 +48,6 @@
49
48
  width: 100%;
50
49
  background: none;
51
50
  border: none;
52
- padding: 0 15px 0 0;
53
51
  height: 16px;
54
52
  text-overflow: ellipsis;
55
53
  font-weight: 400;
@@ -103,7 +101,7 @@
103
101
  width: 100%;
104
102
  height: 24px;
105
103
  white-space: nowrap;
106
- overflow-x: hidden;
104
+ overflow: hidden;
107
105
 
108
106
  &--modal {
109
107
  color: #1f7499;
@@ -201,7 +201,7 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
201
201
 
202
202
  if (!isNotValidateASCII) inputValue = (0, _fieldValueFormatters.formatToOnlyASCIICodeText)(inputValue);
203
203
  if (symbolsLimit && inputValue.length > +symbolsLimit) inputValue = inputValue.substring(0, +symbolsLimit);
204
- if (isCropFirstNool && +inputValue[0] === 0) return '';
204
+ if (isCropFirstNool && inputValue[0] == 0) return '';
205
205
  if (onlyNumbers && isOnlyString || isOnlyString) inputValue = (0, _fieldValueFormatters.formatToLetters)(inputValue, softStringMode);else if (onlyNumbers) inputValue = handle.correctMinMax(inputValue, 'max');
206
206
  onChange((((_minusSymbol3 = minusSymbol) !== null && _minusSymbol3 !== void 0 ? _minusSymbol3 : '') + inputValue).toString());
207
207
  },
@@ -278,8 +278,8 @@ var Input = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
278
278
  setEditing(isFocusDefault);
279
279
  }, [inputRef, isFocusDefault]);
280
280
  var formatedValue = (0, _fieldValueFormatters.getSafelyValue)(value);
281
- if (onlyNumbers !== null && onlyNumbers !== void 0 && onlyNumbers.isNoEmptyValues) formatedValue = handle.correctMinMax(inputValue, 'min');
282
- if (isUseBitDepthPoints) formatedValue = (0, _fieldValueFormatters.formatToAddBitDepthPoints)(inputValue, onlyNumbers);
281
+ if (onlyNumbers !== null && onlyNumbers !== void 0 && onlyNumbers.isNoEmptyValues) formatedValue = handle.correctMinMax(formatedValue, 'min');
282
+ if (isUseBitDepthPoints) formatedValue = (0, _fieldValueFormatters.formatToAddBitDepthPoints)(formatedValue, onlyNumbers);
283
283
 
284
284
  var uniProps = _objectSpread(_objectSpread({
285
285
  className: (0, _classnames.default)('input', className, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [