@cntrl-site/components 1.0.12-alpha.10 → 1.0.12-alpha.12
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/Components/Form/Form.d.ts +2 -1
- package/dist/Components/Form/FormComponent.d.ts +3 -15
- package/dist/index.js +192 -124
- package/dist/index.mjs +3457 -3383
- package/package.json +1 -1
|
@@ -4,10 +4,11 @@ type FormProps = {
|
|
|
4
4
|
settings: FormSettings;
|
|
5
5
|
content?: unknown;
|
|
6
6
|
isEditor?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
activeEvent: string | undefined;
|
|
8
9
|
onUpdateSettings?: (settings: FormSettings) => void;
|
|
9
10
|
} & CommonComponentProps;
|
|
10
|
-
export declare function Form({ settings, isEditor, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Form({ settings, isEditor, isEditMode, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export type FormFieldType = 'text' | 'textarea' | 'phone' | 'email';
|
|
12
13
|
export type FormFieldItem = {
|
|
13
14
|
name: string;
|
|
@@ -701,23 +701,11 @@ export declare const FormComponent: {
|
|
|
701
701
|
} | {
|
|
702
702
|
type: "group";
|
|
703
703
|
title: string;
|
|
704
|
-
items:
|
|
704
|
+
items: {
|
|
705
705
|
type: "row";
|
|
706
706
|
title: string;
|
|
707
|
-
items:
|
|
708
|
-
|
|
709
|
-
title: string;
|
|
710
|
-
items: string[];
|
|
711
|
-
}[];
|
|
712
|
-
} | {
|
|
713
|
-
type: "group";
|
|
714
|
-
title: string;
|
|
715
|
-
items: {
|
|
716
|
-
type: "row";
|
|
717
|
-
title: string;
|
|
718
|
-
items: string[];
|
|
719
|
-
}[];
|
|
720
|
-
})[];
|
|
707
|
+
items: string[];
|
|
708
|
+
}[];
|
|
721
709
|
})[];
|
|
722
710
|
} | {
|
|
723
711
|
id: string;
|