@cfinnestad/react-form-builder 1.0.10 → 1.0.11
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/cjs/index.js +25 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Builder/Builder.d.ts +1 -0
- package/dist/cjs/types/components/Items/Items.d.ts +1 -0
- package/dist/cjs/types/components/Items/Submit/Submit.d.ts +1 -1
- package/dist/cjs/types/components/Render/Render.d.ts +1 -0
- package/dist/esm/index.js +25 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Builder/Builder.d.ts +1 -0
- package/dist/esm/types/components/Items/Items.d.ts +1 -0
- package/dist/esm/types/components/Items/Submit/Submit.d.ts +1 -1
- package/dist/esm/types/components/Render/Render.d.ts +1 -0
- package/dist/index.d.ts +4 -1
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ export type SubmitButtonProps = {
|
|
|
4
4
|
items: AnyItem[];
|
|
5
5
|
options: Options;
|
|
6
6
|
label?: string;
|
|
7
|
-
color
|
|
7
|
+
color: string;
|
|
8
8
|
};
|
|
9
9
|
export type SubmitButtonElement = (props: SubmitButtonProps) => JSX.Element;
|
|
10
10
|
declare const Submit: ({ item, items, options }: SubmitProps) => JSX.Element;
|
|
@@ -26,6 +26,7 @@ export type RenderOptions = {
|
|
|
26
26
|
[key: string]: any;
|
|
27
27
|
};
|
|
28
28
|
mode?: "build" | "edit" | "render";
|
|
29
|
+
submitColors?: string[];
|
|
29
30
|
};
|
|
30
31
|
declare const Render: ({ Items, SetItems, Options }: RenderProps) => JSX.Element;
|
|
31
32
|
export declare const RenderedObject: (items: AnyItem[]) => {};
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type SubmitButtonProps = {
|
|
|
13
13
|
items: AnyItem[];
|
|
14
14
|
options: Options;
|
|
15
15
|
label?: string;
|
|
16
|
-
color
|
|
16
|
+
color: string;
|
|
17
17
|
};
|
|
18
18
|
type SubmitButtonElement = (props: SubmitButtonProps) => JSX.Element;
|
|
19
19
|
|
|
@@ -46,6 +46,7 @@ type Options = {
|
|
|
46
46
|
custom?: {
|
|
47
47
|
[key: string]: any;
|
|
48
48
|
};
|
|
49
|
+
submitColors: string[];
|
|
49
50
|
};
|
|
50
51
|
type BaseItem = {
|
|
51
52
|
id: string;
|
|
@@ -458,6 +459,7 @@ type BuilderUseOptions = {
|
|
|
458
459
|
custom?: {
|
|
459
460
|
[key: string]: any;
|
|
460
461
|
};
|
|
462
|
+
submitColors?: string[];
|
|
461
463
|
};
|
|
462
464
|
type BuilderProps = {
|
|
463
465
|
AllowedItems?: AllowedItems;
|
|
@@ -493,6 +495,7 @@ type RenderOptions = {
|
|
|
493
495
|
[key: string]: any;
|
|
494
496
|
};
|
|
495
497
|
mode?: "build" | "edit" | "render";
|
|
498
|
+
submitColors?: string[];
|
|
496
499
|
};
|
|
497
500
|
declare const Render: ({ Items, SetItems, Options }: RenderProps) => JSX.Element;
|
|
498
501
|
declare const RenderedObject: (items: AnyItem[]) => {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfinnestad/react-form-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "FormBuilder and FormRender Component library for building and gathering custom form data",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"rollup": "rollup -c",
|
|
@@ -82,6 +82,8 @@
|
|
|
82
82
|
"@mui/icons-material": "^5.11.16",
|
|
83
83
|
"@mui/material": "^5.12.3",
|
|
84
84
|
"@mui/x-date-pickers": "^5.0.20",
|
|
85
|
+
"@react-buddy/ide-toolbox": "^2.4.0",
|
|
86
|
+
"@react-buddy/palette-mui": "^5.0.1",
|
|
85
87
|
"@tinymce/tinymce-react": "^4.3.0",
|
|
86
88
|
"country-flag-icons": "^1.5.7",
|
|
87
89
|
"dayjs": "^1.11.8",
|
|
@@ -92,9 +94,7 @@
|
|
|
92
94
|
"react-copy-to-clipboard": "^5.1.0",
|
|
93
95
|
"styled-components": "^5.3.10",
|
|
94
96
|
"tinymce": "^6.6.0",
|
|
95
|
-
"uuidv4": "^6.2.13"
|
|
96
|
-
"@react-buddy/ide-toolbox": "^2.4.0",
|
|
97
|
-
"@react-buddy/palette-mui": "^5.0.1"
|
|
97
|
+
"uuidv4": "^6.2.13"
|
|
98
98
|
},
|
|
99
99
|
"main": "dist/cjs/index.js",
|
|
100
100
|
"module": "dist/esm/index.js",
|