@zealicsolutions/web-ui 0.4.11 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/Container.d.ts +1 -2
- package/dist/cjs/src/containers/FormStepContainer.d.ts +1 -2
- package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/cjs/src/containers/OrganismItem.d.ts +1 -2
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +0 -1
- package/dist/cjs/src/containers/types/types.d.ts +0 -1
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +1 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -1
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +1 -2
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +1 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/Container.d.ts +1 -2
- package/dist/esm/src/containers/FormStepContainer.d.ts +1 -2
- package/dist/esm/src/containers/MoleculeItem.d.ts +1 -1
- package/dist/esm/src/containers/OrganismItem.d.ts +1 -2
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +0 -1
- package/dist/esm/src/containers/types/types.d.ts +0 -1
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +1 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -1
- package/dist/esm/src/molecules/InputField/InputField.d.ts +1 -2
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +1 -2
- package/dist/index.d.ts +6 -9
- package/package.json +1 -1
@@ -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,
|
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,
|
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,
|
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,
|
12
|
+
export declare const OrganismItem: ({ item, tabsProps, formData, setFormData, isMobile, }: OrganismItemProps) => JSX.Element | null;
|
@@ -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,
|
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,
|
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,
|
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,
|
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,
|
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;
|