@zealicsolutions/web-ui 0.3.78 → 0.3.79

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, Molecule } from 'containers';
3
+ import { AnyObject } from 'typescript';
3
4
  import { GroupedStepItemsByStepContainer } from './utils';
4
5
  export declare type OrganismContextType = {
5
6
  items: (ContainerComponentProps | Molecule)[];
6
7
  groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
8
+ formId?: string;
9
+ submitHandler?: (data: Record<string, AnyObject>) => void;
7
10
  };
8
11
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -1,6 +1,9 @@
1
1
  import { ContainerComponentProps, Molecule } from 'containers';
2
2
  import { PropsWithChildren } from 'react';
3
+ import { AnyObject } from 'typescript';
3
4
  export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
4
5
  initItems: (ContainerComponentProps | Molecule)[];
6
+ formId?: string;
7
+ submitHandler?: (data: Record<string, AnyObject>) => void;
5
8
  }>>;
6
- export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
9
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;