@cfinnestad/react-form-builder 1.0.8 → 1.0.10

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,7 +37,6 @@ export type BaseItem = {
37
37
  id: string;
38
38
  type: string;
39
39
  filter?: FilterType;
40
- ClassName?: string;
41
40
  custom?: {
42
41
  [key: string]: any;
43
42
  };
@@ -122,6 +121,7 @@ export type SubmitItem = BaseItem & {
122
121
  type: 'Submit';
123
122
  submitElementName?: string;
124
123
  label?: string;
124
+ color?: string;
125
125
  };
126
126
  export type GroupItem = NamedItem & {
127
127
  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;
@@ -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;
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
- className?: string;
16
+ color?: string;
17
17
  };
18
18
  type SubmitButtonElement = (props: SubmitButtonProps) => JSX.Element;
19
19
 
@@ -51,7 +51,6 @@ type BaseItem = {
51
51
  id: string;
52
52
  type: string;
53
53
  filter?: FilterType;
54
- ClassName?: string;
55
54
  custom?: {
56
55
  [key: string]: any;
57
56
  };
@@ -136,6 +135,7 @@ type SubmitItem = BaseItem & {
136
135
  type: 'Submit';
137
136
  submitElementName?: string;
138
137
  label?: string;
138
+ color?: string;
139
139
  };
140
140
  type GroupItem = NamedItem & {
141
141
  type: 'Group';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfinnestad/react-form-builder",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "FormBuilder and FormRender Component library for building and gathering custom form data",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c",