@zealicsolutions/web-ui 0.4.11 → 0.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
package/dist/index.d.ts CHANGED
@@ -938,6 +938,7 @@ declare type OrganismContextType = {
938
938
  }) => void;
939
939
  validations?: PasswordRuleValidation[];
940
940
  editable?: boolean;
941
+ isFormInEditMode?: boolean;
941
942
  };
942
943
  declare const OrganismContext: react.Context<OrganismContextType>;
943
944
 
@@ -950,8 +951,9 @@ declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
950
951
  }) => void;
951
952
  validations: PasswordRuleValidation[];
952
953
  editable: boolean;
954
+ isFormInEditMode?: boolean;
953
955
  }>>;
954
- declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, }: FormStepContextProviderProps) => JSX.Element;
956
+ declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, editable, isFormInEditMode, }: FormStepContextProviderProps) => JSX.Element;
955
957
 
956
958
  declare type AccountButtonContextType = Partial<{
957
959
  userInitials: string;
@@ -1042,9 +1044,8 @@ declare type InputFieldProps = Partial<{
1042
1044
  state: FormStateType$1;
1043
1045
  formData: AnyObject$1;
1044
1046
  htmlElementId: string;
1045
- isFormInEditMode: boolean;
1046
1047
  }>;
1047
- declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, isFormInEditMode, }: InputFieldProps) => JSX.Element | null;
1048
+ declare const InputField: ({ control, name, inputProps, styles, labelsProps, defaultValue, displayOnlyInputDefaultValue, optional, required, rules, conditionConfig, state, formData, htmlElementId, }: InputFieldProps) => JSX.Element | null;
1048
1049
 
1049
1050
  declare type FieldMapperProps<T extends object> = {
1050
1051
  field: UIField$1<keyof T>;
@@ -1546,7 +1547,7 @@ declare type LinkProps = Omit<TextButtonProps$1, 'children'> & Partial<{
1546
1547
  }>;
1547
1548
  declare const Link: ({ text, isRichText, htmlElementId, ...props }: LinkProps) => JSX.Element | null;
1548
1549
 
1549
- declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, isFormInEditMode, }: Partial<{
1550
+ declare const Container: ({ children, wide, compact, type, props, id, metadata, isMobile, }: Partial<{
1550
1551
  type: containers.ContainerType;
1551
1552
  containerTemplateType: "row_content_container";
1552
1553
  wide: Partial<{
@@ -1599,7 +1600,6 @@ declare const Container: ({ children, wide, compact, type, props, id, metadata,
1599
1600
  }>;
1600
1601
  metadata: containers.MetadataType;
1601
1602
  isMobile: boolean;
1602
- isFormInEditMode: boolean;
1603
1603
  }> & {
1604
1604
  children?: ReactNode;
1605
1605
  } & {
@@ -1868,7 +1868,6 @@ declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMol
1868
1868
  form: UseFormReturn<any>;
1869
1869
  formData: AnyObject$1;
1870
1870
  setFormData: Dispatch<SetStateAction<AnyObject$1>>;
1871
- isFormInEditMode: boolean;
1872
1871
  }>;
1873
1872
 
1874
1873
  declare type ContainerType = 'row' | 'column' | 'slider' | 'form' | 'form_step' | 'dynamic';
@@ -1937,7 +1936,6 @@ declare type ContainerProps = PropsWithChildren<Partial<{
1937
1936
  props: ContainerPropsType;
1938
1937
  metadata: MetadataType;
1939
1938
  isMobile: boolean;
1940
- isFormInEditMode: boolean;
1941
1939
  }>>;
1942
1940
  declare type ContainerComponentProps = {
1943
1941
  id: string;
@@ -2002,9 +2000,8 @@ declare type OrganismItemProps = {
2002
2000
  formData?: AnyObject$1;
2003
2001
  setFormData?: Dispatch<SetStateAction<AnyObject$1>>;
2004
2002
  isMobile?: boolean;
2005
- isFormInEditMode?: boolean;
2006
2003
  };
2007
- declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, isFormInEditMode, }: OrganismItemProps) => JSX.Element | null;
2004
+ declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, }: OrganismItemProps) => JSX.Element | null;
2008
2005
 
2009
2006
  declare type FormOrganismItemProps = {
2010
2007
  item: ContainerComponentProps$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"