@zealicsolutions/web-ui 0.4.10 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  import { ContainerComponentProps, ContainerProps } from 'containers';
2
2
  import { Dispatch, ReactNode, SetStateAction } from 'react';
3
3
  import { AnyObject } from 'typescript';
4
- export declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, isFormInEditMode, }: Partial<{
4
+ export declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, }: Partial<{
5
5
  type: import("containers").ContainerType;
6
6
  containerTemplateType: "row_content_container";
7
7
  wide: Partial<{
@@ -54,7 +54,6 @@ export declare const Container: ({ children, wide, compact, type, props, id, met
54
54
  }>;
55
55
  metadata: import("containers").MetadataType;
56
56
  isMobile: boolean;
57
- isFormInEditMode: boolean;
58
57
  }> & {
59
58
  children?: ReactNode;
60
59
  } & {
@@ -4,7 +4,6 @@ import { PropsWithChildren } from 'react';
4
4
  export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
5
5
  id: string;
6
6
  metadata?: MetadataType;
7
- isFormInEditMode?: boolean;
8
7
  };
9
8
  export declare const parsedDateValue: (value: string, type: InputFieldTypes) => string;
10
- export declare const FormStepContainer: ({ order, id, metadata, formStepStyles, isFormInEditMode, }: StepContainerProps) => JSX.Element | null;
9
+ export declare const FormStepContainer: ({ order, id, metadata, formStepStyles, }: StepContainerProps) => JSX.Element | null;
@@ -6,7 +6,7 @@ export declare const getFullLink: (url: string) => string;
6
6
  export declare const navigateToPage: (url: string) => void;
7
7
  export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
8
8
  export declare const parseDescendantContent: (string: string) => CustomDescendant[];
9
- export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id, formData, setFormData, isMobile, metadata, isFormInEditMode, }: Molecule & {
9
+ export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id, formData, setFormData, isMobile, metadata, }: Molecule & {
10
10
  tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
11
11
  isMobile?: boolean | undefined;
12
12
  }) => JSX.Element | null;
@@ -8,6 +8,5 @@ export declare type OrganismItemProps = {
8
8
  formData?: AnyObject;
9
9
  setFormData?: Dispatch<SetStateAction<AnyObject>>;
10
10
  isMobile?: boolean;
11
- isFormInEditMode?: boolean;
12
11
  };
13
- export declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, isFormInEditMode, }: OrganismItemProps) => JSX.Element | null;
12
+ export declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, }: OrganismItemProps) => JSX.Element | null;
@@ -262,6 +262,5 @@ export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | Bu
262
262
  form: UseFormReturn<any>;
263
263
  formData: AnyObject;
264
264
  setFormData: Dispatch<SetStateAction<AnyObject>>;
265
- isFormInEditMode: boolean;
266
265
  }>;
267
266
  export {};
@@ -71,7 +71,6 @@ export declare type ContainerProps = PropsWithChildren<Partial<{
71
71
  props: ContainerPropsType;
72
72
  metadata: MetadataType;
73
73
  isMobile: boolean;
74
- isFormInEditMode: boolean;
75
74
  }>>;
76
75
  export declare type ContainerComponentProps = {
77
76
  id: string;
@@ -22,5 +22,6 @@ export declare type OrganismContextType = {
22
22
  }) => void;
23
23
  validations?: PasswordRuleValidation[];
24
24
  editable?: boolean;
25
+ isFormInEditMode?: boolean;
25
26
  };
26
27
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -11,5 +11,6 @@ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
11
11
  }) => void;
12
12
  validations: PasswordRuleValidation[];
13
13
  editable: boolean;
14
+ isFormInEditMode?: boolean;
14
15
  }>>;
15
- export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, }: FormStepContextProviderProps) => JSX.Element;
16
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isFormInEditMode, }: FormStepContextProviderProps) => JSX.Element;
@@ -19,6 +19,5 @@ export declare type InputFieldProps = Partial<{
19
19
  state: FormStateType;
20
20
  formData: AnyObject;
21
21
  htmlElementId: string;
22
- isFormInEditMode: boolean;
23
22
  }>;
24
- export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, isFormInEditMode, }: InputFieldProps) => JSX.Element | null;
23
+ export declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: InputFieldProps) => JSX.Element | null;
@@ -3,7 +3,7 @@ import { StoryFn } from '@storybook/react';
3
3
  import { InputFieldProps } from './InputField';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ control, name, inputProps, styles, labelsProps, defaultValue, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, isFormInEditMode, }: Partial<{
6
+ component: ({ control, name, inputProps, styles, labelsProps, defaultValue, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: Partial<{
7
7
  name: string;
8
8
  control: import("react-hook-form").Control<any, any>;
9
9
  rules: Omit<Partial<{
@@ -64,7 +64,6 @@ declare const _default: {
64
64
  state: import("../..").FormStateType;
65
65
  formData: import("typescript").AnyObject;
66
66
  htmlElementId: string;
67
- isFormInEditMode: boolean;
68
67
  }>) => JSX.Element | null;
69
68
  };
70
69
  export default _default;