@infomaximum/ui-kit 0.12.10 → 0.12.11

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.
@@ -105,4 +105,7 @@ export declare const getInputStyle: (inputNumberTokens: InputNumberTokens, disab
105
105
  readonly ":placeholder-shown": {
106
106
  readonly textOverflow: "ellipsis";
107
107
  };
108
+ readonly "&[type='number']::-webkit-inner-spin-button": {
109
+ readonly appearance: "none";
110
+ };
108
111
  };
@@ -100,6 +100,9 @@ const getInputStyle = (inputNumberTokens, disabled, hasAffix, outOfRange) => (th
100
100
  },
101
101
  ":placeholder-shown": {
102
102
  textOverflow: "ellipsis"
103
+ },
104
+ "&[type='number']::-webkit-inner-spin-button": {
105
+ appearance: "none"
103
106
  }
104
107
  });
105
108
  export {
@@ -1,4 +1,4 @@
1
- import { isUndefined, isNumber } from "lodash-es";
1
+ import { isUndefined, isNaN, isNumber } from "lodash-es";
2
2
  import { getDecimalValue } from "../../InputNumber.utils.js";
3
3
  import { useState, useLayoutEffect } from "react";
4
4
  import { emptyString } from "../../../../utils/const/index.js";
@@ -33,7 +33,7 @@ const useChangeValue = (options) => {
33
33
  setInternalInputValue(mergedFormatter(newValue.isInvalidate() ? newValue.toString(false) : newValue.toString(!userTyping), userTyping));
34
34
  };
35
35
  useLayoutEffect(() => {
36
- if (isUndefined(value) || value === emptyString) {
36
+ if (isUndefined(value) || isNaN(value) || value === emptyString) {
37
37
  return;
38
38
  }
39
39
  const newValue = getMiniDecimal(value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infomaximum/ui-kit",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.10",
4
+ "version": "0.12.11",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",