@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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Items/Items.d.ts +1 -1
- package/dist/cjs/types/components/Items/Submit/Submit.d.ts +1 -1
- package/dist/cjs/types/components/Render/StoriesSubmit.d.ts +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Items/Items.d.ts +1 -1
- package/dist/esm/types/components/Items/Submit/Submit.d.ts +1 -1
- package/dist/esm/types/components/Render/StoriesSubmit.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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,
|
|
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
|
-
|
|
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