finform-react-builder 1.8.24 → 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.
@@ -28,7 +28,7 @@ export type GridColumn = {
28
28
  endorsementPaddingX?: number;
29
29
  apiConfig?: {
30
30
  endpoint: string;
31
- method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
31
+ method?: "GET" | "POST" | "PUT" | "DELETE";
32
32
  valueField?: string;
33
33
  labelField?: string;
34
34
  headers?: Record<string, string>;
@@ -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>;
@@ -15,3 +15,4 @@ export * from './FinChip';
15
15
  export * from './FinInfoCard';
16
16
  export * from './FinTabs';
17
17
  export * from './FinEditableGrid';
18
+ export * from './FinListCards';
@@ -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 type FieldConfig = TextField | NumberField | SelectField | CheckboxField | ToggleField | RadioField | SwitchField | AutocompleteField | DateField | ImageField | TitleField | SectionField | ComponentField | FinUiHeaderField | TabsField | GridField;
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;