@cfinnestad/react-form-builder 1.0.9 → 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,12 +32,12 @@ 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;
38
39
  type: string;
39
40
  filter?: FilterType;
40
- ClassName?: string;
41
41
  custom?: {
42
42
  [key: string]: any;
43
43
  };
@@ -122,6 +122,7 @@ export type SubmitItem = BaseItem & {
122
122
  type: 'Submit';
123
123
  submitElementName?: string;
124
124
  label?: string;
125
+ color?: string;
125
126
  };
126
127
  export type GroupItem = NamedItem & {
127
128
  type: 'Group';
@@ -4,7 +4,7 @@ export type SubmitButtonProps = {
4
4
  items: AnyItem[];
5
5
  options: Options;
6
6
  label?: string;
7
- className?: 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[]) => {};
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
2
  import { SubmitButtonProps } from "../Items";
3
- export declare const Submit: ({ items, options, className }: SubmitButtonProps) => React.JSX.Element;
3
+ export declare const Submit: ({ items, options, color }: SubmitButtonProps) => React.JSX.Element;