@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;
|
package/dist/index.d.ts
CHANGED
@@ -917,13 +917,17 @@ declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
|
|
917
917
|
declare type OrganismContextType = {
|
918
918
|
items: (ContainerComponentProps$1 | Molecule$1)[];
|
919
919
|
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
920
|
+
formId?: string;
|
921
|
+
submitHandler?: (data: Record<string, AnyObject$1>) => void;
|
920
922
|
};
|
921
923
|
declare const OrganismContext: react.Context<OrganismContextType>;
|
922
924
|
|
923
925
|
declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
924
926
|
initItems: (ContainerComponentProps$1 | Molecule$1)[];
|
927
|
+
formId?: string;
|
928
|
+
submitHandler?: (data: Record<string, AnyObject$1>) => void;
|
925
929
|
}>>;
|
926
|
-
declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
|
930
|
+
declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
|
927
931
|
|
928
932
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
929
933
|
declare type LabelInternalConfig = {
|