@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.
@@ -37,6 +37,7 @@ export type BuilderUseOptions = {
37
37
  custom?: {
38
38
  [key: string]: any;
39
39
  };
40
+ submitColors?: string[];
40
41
  };
41
42
  export type BuilderOptions = Options & {};
42
43
  export type BuilderProps = {
@@ -32,6 +32,7 @@ export type Options = {
32
32
  custom?: {
33
33
  [key: string]: any;
34
34
  };
35
+ submitColors: string[];
35
36
  };
36
37
  export type BaseItem = {
37
38
  id: string;
@@ -4,7 +4,7 @@ export type SubmitButtonProps = {
4
4
  items: AnyItem[];
5
5
  options: Options;
6
6
  label?: string;
7
- color?: string;
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?: string;
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.10",
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",