indicator-ui 0.0.32 → 0.0.33
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.js +5 -104
- package/dist/index.js.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/ui/FormBuilder/lib/index.d.ts +0 -2
- package/dist/types/src/ui/FormBuilder/schemes/index.d.ts +8 -29
- package/package.json +1 -1
- package/dist/types/src/types/HelperType.d.ts +0 -1
- package/dist/types/src/ui/FormBuilder/lib/blockComponent.d.ts +0 -5
- package/dist/types/src/ui/FormBuilder/lib/customFieldWrapperComponent.d.ts +0 -5
|
@@ -2,7 +2,5 @@ export { default as inputFieldComponent } from './inputFieldComponent';
|
|
|
2
2
|
export { default as reactNodeComponent } from './reactNodeComponent';
|
|
3
3
|
export { default as formWrapperComponent } from './formWrapperComponent';
|
|
4
4
|
export { default as arrayFieldComponent } from './arrayFieldComponent';
|
|
5
|
-
export { default as blockComponent } from "./blockComponent";
|
|
6
|
-
export { default as customFieldWrapperComponent } from "./customFieldWrapperComponent";
|
|
7
5
|
export { default as blockWrapperComponent } from "./blockWrapperComponent";
|
|
8
6
|
export { default as formBuilder } from './formBuilder';
|
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { InputFieldPropsType, InputFieldWrapperPropsType } from "../../../ui";
|
|
4
|
-
export type BLOCK_SCHEMA = {
|
|
5
|
-
type: 'block';
|
|
6
|
-
props?: Overwrite<React.HTMLProps<HTMLDivElement>, {
|
|
7
|
-
children?: FORM_BUILDER_SCHEMA;
|
|
8
|
-
}>;
|
|
9
|
-
};
|
|
10
|
-
export type ADDITION_PROPS = {
|
|
11
|
-
type: 'addition_props';
|
|
12
|
-
props: {
|
|
13
|
-
className?: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type CUSTOM_FIELD_WRAPPER_SCHEMA = {
|
|
19
|
-
type: 'custom_field_wrapper';
|
|
20
|
-
props: Overwrite<InputFieldWrapperPropsType, {
|
|
21
|
-
children?: FORM_BUILDER_SCHEMA;
|
|
22
|
-
}>;
|
|
23
|
-
};
|
|
2
|
+
import { InputFieldPropsType } from "../../../ui";
|
|
24
3
|
export type InputFieldValidationFunObjectReturnType = {
|
|
25
4
|
status: boolean;
|
|
26
5
|
message: string;
|
|
@@ -51,24 +30,24 @@ export type REACT_NODE_SCHEMA = {
|
|
|
51
30
|
export type FORM_WRAPPER_SCHEMA = {
|
|
52
31
|
type: 'form_wrapper';
|
|
53
32
|
form_wrapper?: ReactElement;
|
|
54
|
-
props:
|
|
33
|
+
props: Omit<React.HTMLProps<HTMLDivElement>, 'name' | 'children'> & {
|
|
55
34
|
name?: string;
|
|
56
35
|
children?: FORM_BUILDER_SCHEMA;
|
|
57
|
-
}
|
|
36
|
+
};
|
|
58
37
|
};
|
|
59
38
|
export type ARRAY_FIELDS_SCHEMA = {
|
|
60
39
|
type: 'array_fields';
|
|
61
40
|
array_comp?: ReactElement;
|
|
62
|
-
props:
|
|
41
|
+
props: Omit<React.HTMLProps<HTMLDivElement>, 'name' | 'children'> & {
|
|
63
42
|
name: string;
|
|
64
43
|
children?: FORM_BUILDER_SCHEMA;
|
|
65
|
-
}
|
|
44
|
+
};
|
|
66
45
|
};
|
|
67
46
|
export type BLOCK_WRAPPER_SCHEMA<T = HTMLDivElement> = {
|
|
68
47
|
type: 'block_wrapper';
|
|
69
48
|
block_wrapper?: ReactElement;
|
|
70
|
-
props?:
|
|
49
|
+
props?: Omit<React.HTMLProps<T>, 'children'> & {
|
|
71
50
|
children?: FORM_BUILDER_SCHEMA;
|
|
72
|
-
}
|
|
51
|
+
};
|
|
73
52
|
};
|
|
74
|
-
export type FORM_BUILDER_SCHEMA = (FORM_WRAPPER_SCHEMA | REACT_NODE_SCHEMA | INPUT_FIELD_SCHEMA |
|
|
53
|
+
export type FORM_BUILDER_SCHEMA = (FORM_WRAPPER_SCHEMA | REACT_NODE_SCHEMA | INPUT_FIELD_SCHEMA | ARRAY_FIELDS_SCHEMA | BLOCK_WRAPPER_SCHEMA)[];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Key, ReactElement } from "react";
|
|
2
|
-
import { BLOCK_SCHEMA } from "../schemes";
|
|
3
|
-
import { AdditionPropsType } from "../types";
|
|
4
|
-
declare const blockComponent: (schema: BLOCK_SCHEMA, key: Key, additionProps: AdditionPropsType) => ReactElement;
|
|
5
|
-
export default blockComponent;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Key, ReactElement } from "react";
|
|
2
|
-
import { CUSTOM_FIELD_WRAPPER_SCHEMA } from "../schemes";
|
|
3
|
-
import { AdditionPropsType } from "../types";
|
|
4
|
-
declare const customFieldWrapperComponent: (schema: CUSTOM_FIELD_WRAPPER_SCHEMA, key: Key, additionProps: AdditionPropsType) => ReactElement;
|
|
5
|
-
export default customFieldWrapperComponent;
|