@zealicsolutions/web-ui 0.3.83 → 0.3.84
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/RichTextViewer/RichTextViewer.d.ts +2 -0
- package/dist/cjs/src/containers/FormStepContainer.d.ts +1 -1
- package/dist/cjs/src/containers/MoleculeItem.d.ts +3 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +0 -2
- package/dist/cjs/src/containers/types/types.d.ts +1 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +2 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -1
- package/dist/cjs/src/molecules/CustomValidation/CustomValidation.d.ts +2 -1
- package/dist/cjs/src/molecules/CustomValidation/CustomValidation.stories.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/RichTextViewer/RichTextViewer.d.ts +2 -0
- package/dist/esm/src/containers/FormStepContainer.d.ts +1 -1
- package/dist/esm/src/containers/MoleculeItem.d.ts +3 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +0 -2
- package/dist/esm/src/containers/types/types.d.ts +1 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +2 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +3 -1
- package/dist/esm/src/molecules/CustomValidation/CustomValidation.d.ts +2 -1
- package/dist/esm/src/molecules/CustomValidation/CustomValidation.stories.d.ts +1 -1
- package/dist/index.d.ts +9 -4
- package/package.json +1 -1
@@ -1,6 +1,8 @@
|
|
1
1
|
import { TextProps } from 'atoms';
|
2
|
+
import { Descendant } from 'slate';
|
2
3
|
import { FontSizesTypes, ThemeColors } from 'theme';
|
3
4
|
import { AnyObject, StylesType } from 'typescript';
|
5
|
+
export declare const defaultValue: Descendant[];
|
4
6
|
export declare const MATRIX_MESSAGE_ELEMENT_ID = "matrix-message";
|
5
7
|
export declare const COMMUNICATION_LINK_ELEMENT_ID = "communication-link";
|
6
8
|
export declare const MATRIX_MESSAGE_DATA_ID = "matrix-message-id";
|
@@ -4,4 +4,4 @@ export declare type StepContainerProps = PropsWithChildren<Partial<FormStepConta
|
|
4
4
|
id: string;
|
5
5
|
metadata?: MetadataType;
|
6
6
|
};
|
7
|
-
export declare const FormStepContainer: ({ order, id, metadata }: StepContainerProps) => JSX.Element | null;
|
7
|
+
export declare const FormStepContainer: ({ order, id, metadata, formStepStyles, }: StepContainerProps) => JSX.Element | null;
|
@@ -1,9 +1,11 @@
|
|
1
|
+
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
1
2
|
import { Molecule } from 'containers';
|
2
3
|
import { TabGroupProps } from 'molecules';
|
3
4
|
export declare const getFullLink: (url: string) => string;
|
4
5
|
export declare const navigateToPage: (url: string) => void;
|
5
6
|
export declare const downloadFile: (url?: string, name?: string) => Promise<void>;
|
6
|
-
export declare const
|
7
|
+
export declare const parseDescendantContent: (string: string) => CustomDescendant[];
|
8
|
+
export declare const MoleculeItem: ({ type, config, attributes, tabsProps, form, id, formData, setFormData, isMobile, metadata, }: Molecule & {
|
7
9
|
tabsProps?: Pick<TabGroupProps<string, string>, "tabs" | "activeTabKey" | "onTabChange"> | undefined;
|
8
10
|
isMobile?: boolean | undefined;
|
9
11
|
}) => JSX.Element | null;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { LinkVariant, SelectOption } from 'atoms';
|
2
2
|
import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
|
3
|
-
import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
|
4
3
|
import { Dispatch, SetStateAction } from 'react';
|
5
4
|
import { UseFormReturn } from 'react-hook-form';
|
6
5
|
import type { AnyObject, Nullable, StrictUnion, StylesType } from 'typescript';
|
@@ -254,6 +253,5 @@ export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | Bu
|
|
254
253
|
form: UseFormReturn<any>;
|
255
254
|
formData: AnyObject;
|
256
255
|
setFormData: Dispatch<SetStateAction<AnyObject>>;
|
257
|
-
validations: PasswordRuleValidation[];
|
258
256
|
}>;
|
259
257
|
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
+
import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
|
3
4
|
import { AnyObject } from 'typescript';
|
4
5
|
import { GroupedStepItemsByStepContainer } from './utils';
|
5
6
|
export declare type OrganismContextType = {
|
@@ -10,5 +11,6 @@ export declare type OrganismContextType = {
|
|
10
11
|
formId: string;
|
11
12
|
data: AnyObject;
|
12
13
|
}[]) => void;
|
14
|
+
validations?: PasswordRuleValidation[];
|
13
15
|
};
|
14
16
|
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ContainerComponentProps, Molecule } from 'containers';
|
2
|
+
import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
|
2
3
|
import { PropsWithChildren } from 'react';
|
3
4
|
import { AnyObject } from 'typescript';
|
4
5
|
export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
@@ -8,5 +9,6 @@ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
|
8
9
|
formId: string;
|
9
10
|
data: AnyObject;
|
10
11
|
}[]) => void;
|
12
|
+
validations: PasswordRuleValidation[];
|
11
13
|
}>>;
|
12
|
-
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, }: FormStepContextProviderProps) => JSX.Element;
|
14
|
+
export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -7,5 +7,6 @@ export declare type CustomValidationProps<T = string> = {
|
|
7
7
|
value: T;
|
8
8
|
isSubmitted?: boolean;
|
9
9
|
rules: CustomValidationRule<T>[];
|
10
|
+
spacer?: number;
|
10
11
|
};
|
11
|
-
export declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, }: CustomValidationProps<T>) => JSX.Element;
|
12
|
+
export declare const CustomValidation: <T extends string = string>({ rules, value, isSubmitted, label, spacer, }: CustomValidationProps<T>) => JSX.Element;
|
@@ -2,7 +2,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
2
2
|
import { CustomValidation as CustomValidationComponent } from './CustomValidation';
|
3
3
|
declare const _default: {
|
4
4
|
title: string;
|
5
|
-
component: <T extends string = string>({ rules, value, isSubmitted, label, }: import("./CustomValidation").CustomValidationProps<T>) => JSX.Element;
|
5
|
+
component: <T extends string = string>({ rules, value, isSubmitted, label, spacer, }: import("./CustomValidation").CustomValidationProps<T>) => JSX.Element;
|
6
6
|
};
|
7
7
|
export default _default;
|
8
8
|
export declare const CustomValidation: ComponentStory<typeof CustomValidationComponent>;
|