finform-react-builder 1.8.25 → 1.8.26
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.
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
export interface ListCardItem {
|
|
4
|
+
id: string | number;
|
|
5
|
+
header?: string;
|
|
6
|
+
chipText?: string;
|
|
7
|
+
leftAction?: {
|
|
8
|
+
name: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
};
|
|
11
|
+
rightAction?: {
|
|
12
|
+
name: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface FinListCardsProps {
|
|
17
|
+
name: string;
|
|
18
|
+
control: Control<any>;
|
|
19
|
+
items: ListCardItem[];
|
|
20
|
+
sx?: any;
|
|
21
|
+
cardSx?: any;
|
|
22
|
+
}
|
|
23
|
+
export declare const FinListCards: React.FC<FinListCardsProps>;
|
|
@@ -29,7 +29,7 @@ export interface BaseField {
|
|
|
29
29
|
title?: string;
|
|
30
30
|
name: string;
|
|
31
31
|
label: string;
|
|
32
|
-
type: 'text' | 'email' | 'password' | 'number' | 'tel' | 'select' | 'checkbox' | 'toggle' | 'radio' | 'switch' | 'autocomplete' | 'date' | 'textarea' | 'image' | 'title' | 'section' | 'component' | 'finuiHeader' | 'tabs' | 'grid';
|
|
32
|
+
type: 'text' | 'email' | 'password' | 'number' | 'tel' | 'select' | 'checkbox' | 'toggle' | 'radio' | 'switch' | 'autocomplete' | 'date' | 'textarea' | 'image' | 'title' | 'section' | 'component' | 'finuiHeader' | 'tabs' | 'grid' | 'listcards';
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
labelPosition?: 'inner' | 'top' | 'none';
|
|
35
35
|
labelVariant?: 'caption' | 'body2' | 'subtitle2' | 'h6';
|
|
@@ -279,7 +279,25 @@ export interface GridField extends BaseField {
|
|
|
279
279
|
emptySubtitle?: string;
|
|
280
280
|
emptyCardSx?: any;
|
|
281
281
|
}
|
|
282
|
-
export
|
|
282
|
+
export interface ListCardsField extends BaseField {
|
|
283
|
+
type: 'listcards';
|
|
284
|
+
items: Array<{
|
|
285
|
+
id: string | number;
|
|
286
|
+
header?: string;
|
|
287
|
+
chipText?: string;
|
|
288
|
+
leftAction?: {
|
|
289
|
+
name: string;
|
|
290
|
+
label?: string;
|
|
291
|
+
};
|
|
292
|
+
rightAction?: {
|
|
293
|
+
name: string;
|
|
294
|
+
label?: string;
|
|
295
|
+
};
|
|
296
|
+
}>;
|
|
297
|
+
sx?: any;
|
|
298
|
+
cardSx?: any;
|
|
299
|
+
}
|
|
300
|
+
export type FieldConfig = TextField | NumberField | SelectField | CheckboxField | ToggleField | RadioField | SwitchField | AutocompleteField | DateField | ImageField | TitleField | SectionField | ComponentField | FinUiHeaderField | TabsField | GridField | ListCardsField;
|
|
283
301
|
export interface FormButton {
|
|
284
302
|
text: string;
|
|
285
303
|
color?: string;
|