formifex 0.2.2 → 0.2.4
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.
|
@@ -44,6 +44,7 @@ export type TEnableConditionFunction = (props: TFormGeneralProps) => boolean;
|
|
|
44
44
|
export type TEnableConditionItem = TEnableCondition | TEnableConditionFunction;
|
|
45
45
|
export type TInput = {
|
|
46
46
|
id: string;
|
|
47
|
+
key?: string;
|
|
47
48
|
type: ELayoutType.input | "input";
|
|
48
49
|
dataType: EDataType | "string" | "number" | "date" | "datetime" | "time" | "boolean" | "object";
|
|
49
50
|
label: string | ((props: TFormGeneralProps) => ReactNode);
|
package/dist/types/layout.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export type WrapperTooltipProps = TooltipProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export type TSectionLayout = {
|
|
9
9
|
id: string;
|
|
10
|
+
key?: string;
|
|
10
11
|
type: ELayoutType.section | "section";
|
|
11
12
|
label: ReactNode;
|
|
12
13
|
tooltip?: React.ReactElement | string | null;
|
|
@@ -24,16 +25,19 @@ export type TSectionLayout = {
|
|
|
24
25
|
};
|
|
25
26
|
export type TFlexLayout = {
|
|
26
27
|
id: string;
|
|
28
|
+
key?: string;
|
|
27
29
|
type: ELayoutType.flex | "flex";
|
|
28
30
|
children: TFormItems;
|
|
29
31
|
};
|
|
30
32
|
export type TGridLayout = {
|
|
31
33
|
id: string;
|
|
34
|
+
key?: string;
|
|
32
35
|
type: ELayoutType.grid | "grid";
|
|
33
36
|
children: TFormItems;
|
|
34
37
|
};
|
|
35
38
|
export type TDivider = {
|
|
36
39
|
id: string;
|
|
40
|
+
key?: string;
|
|
37
41
|
label?: ReactNode;
|
|
38
42
|
type: ELayoutType.divider | "divider";
|
|
39
43
|
labelPlacement?: "start" | "center" | "left" | "right" | "end";
|
|
@@ -42,6 +46,7 @@ export type TDivider = {
|
|
|
42
46
|
};
|
|
43
47
|
export type TCustom = {
|
|
44
48
|
id: string;
|
|
49
|
+
key?: string;
|
|
45
50
|
type: ELayoutType.custom | "custom";
|
|
46
51
|
render: (props: any) => ReactNode;
|
|
47
52
|
};
|