react-luna-form 0.0.34 → 0.0.36
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/client/cjs/index.js +1 -1
- package/dist/client/esm/index.js +1 -1
- package/dist/config/cjs/index.js +1 -1
- package/dist/config/esm/index.js +1 -1
- package/dist/server/cjs/index.js +1 -1
- package/dist/server/esm/index.js +1 -1
- package/dist/types/luna-core/src/helper/input.d.ts +1 -7
- package/dist/types/luna-core/src/type.d.ts +15 -0
- package/dist/types/luna-core/src/util/constant.d.ts +3 -1
- package/dist/types/luna-core/src/util/date.d.ts +8 -9
- package/dist/types/luna-core/src/util/is-input.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import type { Column, Field, Input, List, Nullable, Select } from '../type';
|
|
1
|
+
import type { Column, Field, Input, List, Nullable, Select, Time } from '../type';
|
|
2
2
|
export declare const isSelectMonth: (field: Field) => boolean;
|
|
3
3
|
export declare const isSelectYear: (field: Field) => boolean;
|
|
4
4
|
export declare const isSelectTimezone: (field: Field) => boolean;
|
|
5
|
+
export declare const isSelectDay: (field: Field) => boolean;
|
|
5
6
|
export declare const isCheckbox: (field: Field) => field is Input;
|
|
6
7
|
export declare const isInput: (field: Field) => field is Input;
|
|
7
8
|
export declare const isRadio: (field: Field) => field is Select;
|
|
8
9
|
export declare const isSelect: (field: Field) => field is Select;
|
|
9
10
|
export declare const isTextArea: (field: Field) => field is Input;
|
|
11
|
+
export declare const isTime: (field: Field) => field is Time;
|
|
10
12
|
export declare const isText: (field: Field) => field is Input;
|
|
11
13
|
export declare const isEmail: (field: Field) => field is Input;
|
|
12
14
|
export declare const isNumber: (field: Field) => field is Input;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-luna-form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"description": "A React library for building forms based on JSON",
|
|
5
5
|
"main": "./dist/client/cjs/index.js",
|
|
6
6
|
"module": "./dist/client/esm/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint-plugin-react": "7.37.5",
|
|
34
34
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
35
35
|
"eslint-plugin-react-refresh": "0.5.2",
|
|
36
|
-
"@luna-form/core": "0.0.
|
|
36
|
+
"@luna-form/core": "0.0.36"
|
|
37
37
|
},
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"repository": {
|