@zealicsolutions/web-ui 0.3.27 → 0.3.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,4 +3,4 @@ import { FormStepContainerProps } from 'containers';
3
3
  export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
4
4
  id: string;
5
5
  };
6
- export declare const FormStepContainer: ({ formStepName, order, conditionConfig, id, }: StepContainerProps) => JSX.Element | null;
6
+ export declare const FormStepContainer: ({ order, id }: StepContainerProps) => JSX.Element | null;
@@ -1,6 +1,11 @@
1
- import { ConditionConfig } from 'containers/types/types';
1
+ import { ConditionConfig, ConditionCriteria } from 'containers/types/types';
2
2
  import { AnyObject } from 'typescript';
3
3
  /**
4
4
  * @attention This hook needs to be used inside of the form container for the form fields
5
5
  */
6
6
  export declare const useCheckCondition: (config?: ConditionConfig, formData?: AnyObject) => boolean;
7
+ export declare type GetEvaluateCriteriaFunctionParams = {
8
+ criteriaList?: ConditionCriteria[];
9
+ data?: AnyObject;
10
+ };
11
+ export declare const getEvaluateCriteriaFunction: ({ criteriaList, data, }: GetEvaluateCriteriaFunctionParams) => (criteria?: ConditionCriteria) => boolean;
@@ -0,0 +1,2 @@
1
+ import { ContainerComponentProps } from 'containers';
2
+ export declare const getFormStepContainers: (items: ContainerComponentProps[]) => ContainerComponentProps[];
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, Molecule } from 'containers';
3
- import { GroupedMoleculesByStep } from './utils';
3
+ import { GroupedStepItemsByStepContainer } from './utils';
4
4
  export declare type OrganismContextType = {
5
5
  items: (ContainerComponentProps | Molecule)[];
6
- getGroupedMoleculesByFormStep: () => GroupedMoleculesByStep;
6
+ groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
7
7
  };
8
8
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -1,3 +1,5 @@
1
1
  import { ContainerComponentProps, Molecule } from 'containers';
2
- export declare type GroupedMoleculesByStep = Map<string, Molecule[]>;
3
- export declare const groupMoleculesByFormStep: (items: (ContainerComponentProps | Molecule)[]) => GroupedMoleculesByStep;
2
+ declare type StepItem = ContainerComponentProps | Molecule;
3
+ export declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
4
+ export declare const groupStepItemsByStepContainer: (items: StepItem[]) => GroupedStepItemsByStepContainer;
5
+ export {};
package/dist/index.d.ts CHANGED
@@ -897,11 +897,12 @@ declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
897
897
  }>>;
898
898
  declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
899
899
 
900
- declare type GroupedMoleculesByStep = Map<string, Molecule$1[]>;
900
+ declare type StepItem = ContainerComponentProps$1 | Molecule$1;
901
+ declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
901
902
 
902
903
  declare type OrganismContextType = {
903
904
  items: (ContainerComponentProps$1 | Molecule$1)[];
904
- getGroupedMoleculesByFormStep: () => GroupedMoleculesByStep;
905
+ groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
905
906
  };
906
907
  declare const OrganismContext: react.Context<OrganismContextType>;
907
908
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.3.27",
3
+ "version": "0.3.29",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"