@zealicsolutions/web-ui 0.3.77 → 0.3.79
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +3 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +4 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +3 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +4 -1
- package/dist/index.d.ts +5 -1
- package/package.json +1 -1
@@ -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;
|