@panneau/field-number 4.0.11 → 4.0.14
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 +22 -0
- package/{es → dist}/index.js +2 -2
- package/package.json +15 -13
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface NumberFieldProps {
|
|
4
|
+
value?: number | string | null;
|
|
5
|
+
step?: number;
|
|
6
|
+
floatStep?: number;
|
|
7
|
+
float?: boolean;
|
|
8
|
+
dataList?: number[] | null;
|
|
9
|
+
autoComplete?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string | null;
|
|
12
|
+
onChange?: ((value: number | string | null) => void) | null;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
declare function NumberField({ value, step, floatStep, float, dataList, autoComplete, disabled, className, onChange, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare namespace _default {
|
|
18
|
+
let id: string;
|
|
19
|
+
let component: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { NumberField as default, _default as definition };
|
package/{es → dist}/index.js
RENAMED
|
@@ -3,8 +3,8 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
3
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import isNaN from 'lodash
|
|
7
|
-
import isNumber from 'lodash
|
|
6
|
+
import isNaN from 'lodash/isNaN';
|
|
7
|
+
import isNumber from 'lodash/isNumber';
|
|
8
8
|
import { useCallback, useState } from 'react';
|
|
9
9
|
import Icon from '@panneau/element-icon';
|
|
10
10
|
import TextField from '@panneau/field-text';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/field-number",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"description": "A number field",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -34,21 +34,24 @@
|
|
|
34
34
|
],
|
|
35
35
|
"license": "ISC",
|
|
36
36
|
"type": "module",
|
|
37
|
-
"module": "
|
|
37
|
+
"module": "dist/index.js",
|
|
38
|
+
"types": "dist/index.d.ts",
|
|
38
39
|
"style": "./assets/css/styles.css",
|
|
39
40
|
"exports": {
|
|
40
|
-
".":
|
|
41
|
+
".": {
|
|
42
|
+
"default": "./dist/index.js",
|
|
43
|
+
"types": "./dist/index.d.ts"
|
|
44
|
+
},
|
|
41
45
|
"./assets/css/styles": "./assets/css/styles.css",
|
|
42
46
|
"./assets/css/styles.css": "./assets/css/styles.css"
|
|
43
47
|
},
|
|
44
48
|
"files": [
|
|
45
|
-
"
|
|
46
|
-
"es",
|
|
49
|
+
"dist",
|
|
47
50
|
"assets"
|
|
48
51
|
],
|
|
49
52
|
"scripts": {
|
|
50
53
|
"prepublishOnly": "npm run build",
|
|
51
|
-
"build": "../../scripts/prepare-package.sh"
|
|
54
|
+
"build": "../../scripts/prepare-package.sh --types"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
57
|
"react": "^19.0.0",
|
|
@@ -60,16 +63,15 @@
|
|
|
60
63
|
},
|
|
61
64
|
"dependencies": {
|
|
62
65
|
"@babel/runtime": "^7.12.5",
|
|
63
|
-
"@panneau/core": "^4.0.
|
|
64
|
-
"@panneau/element-icon": "^4.0.
|
|
65
|
-
"@panneau/field-text": "^4.0.
|
|
66
|
-
"@panneau/themes": "^4.0.
|
|
66
|
+
"@panneau/core": "^4.0.14",
|
|
67
|
+
"@panneau/element-icon": "^4.0.14",
|
|
68
|
+
"@panneau/field-text": "^4.0.14",
|
|
69
|
+
"@panneau/themes": "^4.0.14",
|
|
67
70
|
"classnames": "^2.5.1",
|
|
68
|
-
"lodash
|
|
69
|
-
"prop-types": "^15.7.2"
|
|
71
|
+
"lodash": "^4.17.21"
|
|
70
72
|
},
|
|
71
73
|
"publishConfig": {
|
|
72
74
|
"access": "public"
|
|
73
75
|
},
|
|
74
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "ce35c2ddb30a7be2efe951882d9826dca577f5d4"
|
|
75
77
|
}
|