react-intl-number-input 0.5.0 → 0.5.1
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/dist/index.d.ts +14 -0
- package/package.json +8 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface IntlNumberInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
locale?: string;
|
|
5
|
+
prefix?: string;
|
|
6
|
+
suffix?: string;
|
|
7
|
+
precision?: number;
|
|
8
|
+
value?: number | string;
|
|
9
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: number, maskedValue: string) => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const IntlNumberInput: React.ForwardRefExoticComponent<IntlNumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
|
|
14
|
+
export default IntlNumberInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl-number-input",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A React component for masked and formatted number input.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/cli": "^7.27.2",
|
|
45
45
|
"@babel/core": "^7.27.4",
|
|
46
46
|
"@babel/plugin-transform-object-rest-spread": "^7.28.4",
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
47
|
+
"@babel/preset-env": "^7.29.5",
|
|
48
48
|
"@babel/preset-react": "^7.27.1",
|
|
49
49
|
"@testing-library/jest-dom": "^6.9.1",
|
|
50
50
|
"@testing-library/react": "^16.3.0",
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
"react-dom": "^19.2.0",
|
|
59
59
|
"webpack": "^5.101.3",
|
|
60
60
|
"webpack-cli": "^6.0.1",
|
|
61
|
-
"webpack-dev-server": "^5.2.
|
|
61
|
+
"webpack-dev-server": "^5.2.4"
|
|
62
|
+
},
|
|
63
|
+
"overrides": {
|
|
64
|
+
"fast-uri": "^3.1.1",
|
|
65
|
+
"follow-redirects": "^1.16.0",
|
|
66
|
+
"uuid": "^11.1.1"
|
|
62
67
|
}
|
|
63
68
|
}
|