@zealicsolutions/web-ui 0.1.31 → 0.1.33
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.
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Circle/Circle.d.ts +8 -0
- package/dist/cjs/src/atoms/Circle/Circle.stories.d.ts +9 -0
- package/dist/cjs/src/atoms/RichTextViewer/components/index.d.ts +0 -1
- package/dist/cjs/src/atoms/RichTextViewer/types.d.ts +11 -3
- package/dist/cjs/src/atoms/index.d.ts +1 -0
- package/dist/cjs/src/contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.d.ts +8 -0
- package/dist/cjs/src/contexts/MlrRichTextViewerContext/MlrRichTextViewerProvider.d.ts +8 -0
- package/dist/cjs/src/contexts/MlrRichTextViewerContext/types.d.ts +11 -0
- package/dist/cjs/src/contexts/hooks/useMlrRichTextViewerContext.d.ts +1 -0
- package/dist/cjs/src/contexts/index.d.ts +4 -0
- package/dist/cjs/src/fieldsConfiguration/mock.d.ts +3 -3
- package/dist/cjs/src/helpers/validations.d.ts +5 -0
- package/dist/cjs/src/index.d.ts +1 -0
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +3 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Circle/Circle.d.ts +8 -0
- package/dist/esm/src/atoms/Circle/Circle.stories.d.ts +9 -0
- package/dist/esm/src/atoms/RichTextViewer/components/index.d.ts +0 -1
- package/dist/esm/src/atoms/RichTextViewer/types.d.ts +11 -3
- package/dist/esm/src/atoms/index.d.ts +1 -0
- package/dist/esm/src/contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.d.ts +8 -0
- package/dist/esm/src/contexts/MlrRichTextViewerContext/MlrRichTextViewerProvider.d.ts +8 -0
- package/dist/esm/src/contexts/MlrRichTextViewerContext/types.d.ts +11 -0
- package/dist/esm/src/contexts/hooks/useMlrRichTextViewerContext.d.ts +1 -0
- package/dist/esm/src/contexts/index.d.ts +4 -0
- package/dist/esm/src/fieldsConfiguration/mock.d.ts +3 -3
- package/dist/esm/src/helpers/validations.d.ts +5 -0
- package/dist/esm/src/index.d.ts +1 -0
- package/dist/esm/src/molecules/InputField/InputField.d.ts +2 -2
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +3 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +1 -1
- package/dist/index.d.ts +45 -6
- package/package.json +1 -1
- package/dist/cjs/src/atoms/RichTextViewer/components/LinkElement.d.ts +0 -3
- package/dist/esm/src/atoms/RichTextViewer/components/LinkElement.d.ts +0 -3
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ComponentStory } from '@storybook/react';
|
3
|
+
import { Circle as CircleComponent } from 'atoms/Circle/Circle';
|
4
|
+
declare const _default: {
|
5
|
+
title: string;
|
6
|
+
component: ({ index, type }: import("atoms/Circle/Circle").CircleBoxProps) => JSX.Element;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Circle: ComponentStory<typeof CircleComponent>;
|
@@ -1,14 +1,17 @@
|
|
1
|
-
export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | '
|
1
|
+
export declare type Format = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'numbered-list' | 'bulleted-list' | 'communicationLink' | 'tag';
|
2
2
|
export declare type TextFormat = Partial<{
|
3
3
|
bold: boolean;
|
4
4
|
italic: boolean;
|
5
5
|
underline: boolean;
|
6
6
|
strikethrough: boolean;
|
7
|
+
communicationLink: CommunicationLinkPayload;
|
8
|
+
tag: {
|
9
|
+
id: string;
|
10
|
+
};
|
7
11
|
'numbered-list': boolean;
|
8
12
|
'bulleted-list': boolean;
|
9
|
-
link: boolean;
|
10
13
|
}>;
|
11
|
-
export declare type CustomElementType = 'paragraph' | 'list-item' | 'bulleted-list' | 'numbered-list' | '
|
14
|
+
export declare type CustomElementType = 'paragraph' | 'list-item' | 'bulleted-list' | 'numbered-list' | 'span';
|
12
15
|
export declare type CustomText = {
|
13
16
|
text: string;
|
14
17
|
type?: CustomElementType;
|
@@ -19,3 +22,8 @@ export declare type CustomElement = {
|
|
19
22
|
href?: string;
|
20
23
|
format?: Format;
|
21
24
|
};
|
25
|
+
export declare type LinkType = 'externalLink' | 'internalLink';
|
26
|
+
export declare type CommunicationLinkPayload = {
|
27
|
+
type: LinkType;
|
28
|
+
url: string;
|
29
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { AnnotationsList } from 'contexts/MlrRichTextViewerContext/types';
|
3
|
+
export declare type MlrRichTextViewerContextType = {
|
4
|
+
isMLRReview: boolean;
|
5
|
+
showAnnotations: boolean;
|
6
|
+
annotationsList: AnnotationsList;
|
7
|
+
};
|
8
|
+
export declare const MlrRichTextViewerContext: import("react").Context<MlrRichTextViewerContextType>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { AnnotationsList } from 'contexts/MlrRichTextViewerContext/types';
|
2
|
+
import { PropsWithChildren } from 'react';
|
3
|
+
export declare type MlrRichTextViewerProviderProps = PropsWithChildren<{
|
4
|
+
annotationsList: AnnotationsList;
|
5
|
+
isMLRReview: boolean;
|
6
|
+
showAnnotations: boolean;
|
7
|
+
}>;
|
8
|
+
export declare const MlrRichTextViewerProvider: ({ children, isMLRReview, showAnnotations, annotationsList, }: MlrRichTextViewerProviderProps) => JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const useMlrRichTextViewerContext: () => import("contexts/MlrRichTextViewerContext/MlrRichTextViewerContext").MlrRichTextViewerContextType;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { UIFields } from 'fieldsConfiguration/types';
|
2
2
|
import { LoginFields } from 'organisms/LoginForm/types';
|
3
3
|
import { SetPasswordFields } from 'organisms/SetPasswordForm/types';
|
4
|
-
export declare const acquisitionFormMockFields: UIFields<
|
4
|
+
export declare const acquisitionFormMockFields: UIFields<Record<string, string>>;
|
5
5
|
export declare const setPasswordMockFields: UIFields<SetPasswordFields>;
|
6
6
|
export declare const loginMockFields: UIFields<LoginFields>;
|
7
|
-
export declare const sectionMockFields: UIFields<
|
7
|
+
export declare const sectionMockFields: UIFields<Record<string, string>>;
|
8
8
|
export declare const profileInformationMockForm: {
|
9
9
|
label: string;
|
10
|
-
fields: UIFields<
|
10
|
+
fields: UIFields<Record<string, string>>;
|
11
11
|
}[];
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { InputFieldTypes } from 'fieldsConfiguration';
|
2
|
+
import { ValidationRule } from 'react-hook-form';
|
3
|
+
export declare const phoneNumberValidation: RegExp;
|
4
|
+
export declare const emailValidation: RegExp;
|
5
|
+
export declare const getInputValidation: (type?: InputFieldTypes) => ValidationRule<RegExp> | undefined;
|
package/dist/esm/src/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CSSProperties } from 'styled-components';
|
3
|
-
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
2
|
import { InputProps } from 'atoms';
|
3
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
4
|
+
import { CSSProperties } from 'styled-components';
|
5
5
|
import { FieldLabelsProps } from '../FieldLabels/FieldLabels';
|
6
6
|
export declare type InputFieldProps = {
|
7
7
|
name: string;
|
@@ -13,5 +13,7 @@ export declare type AcquisitionFormProps<T extends object> = {
|
|
13
13
|
buttonText?: string;
|
14
14
|
onSubmit: (values: T) => void;
|
15
15
|
onLinkButtonClick?: Callback;
|
16
|
+
showConsentLabel?: boolean;
|
17
|
+
triggerFormInitially?: boolean;
|
16
18
|
};
|
17
|
-
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
19
|
+
export declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: AcquisitionFormProps<T>) => JSX.Element;
|
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { AcquisitionForm as AcquisitionFormComponent } from './AcquisitionForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
6
|
+
component: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: import("./AcquisitionForm").AcquisitionFormProps<T>) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const AcquisitionForm: ComponentStory<typeof AcquisitionFormComponent>;
|
package/dist/index.d.ts
CHANGED
@@ -14,8 +14,8 @@ import { ThemeColors as ThemeColors$2, SizesTypes as SizesTypes$1, FontSizesType
|
|
14
14
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
15
15
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
16
16
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
17
|
-
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
18
17
|
import { InputProps as InputProps$1, RadioButtonsProps as RadioButtonsProps$1, ButtonProps as ButtonProps$1 } from 'atoms';
|
18
|
+
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
19
19
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
20
20
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
21
21
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
@@ -27,6 +27,8 @@ import { FieldSectionProps as FieldSectionProps$1, HeroImageProps as HeroImagePr
|
|
27
27
|
import { ISIAProps } from 'organisms/ISI/ISIA';
|
28
28
|
import { HeaderAProps as HeaderAProps$1 } from 'organisms/Header/HeaderA';
|
29
29
|
import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
|
30
|
+
import { AnnotationsList as AnnotationsList$1 } from 'contexts/MlrRichTextViewerContext/types';
|
31
|
+
import * as contexts_MlrRichTextViewerContext_MlrRichTextViewerContext from 'contexts/MlrRichTextViewerContext/MlrRichTextViewerContext';
|
30
32
|
|
31
33
|
declare type BaseButtonProps = {
|
32
34
|
onClick?: Callback;
|
@@ -263,6 +265,13 @@ declare type RadioButtonsProps<T extends string> = {
|
|
263
265
|
};
|
264
266
|
declare const RadioButtons: <T extends string>({ value, items, isRow, isEditMode, onChange, name, }: RadioButtonsProps<T>) => JSX.Element;
|
265
267
|
|
268
|
+
declare type CircleType = 'link' | 'message';
|
269
|
+
declare type CircleBoxProps = {
|
270
|
+
index: number;
|
271
|
+
type: CircleType;
|
272
|
+
};
|
273
|
+
declare const Circle: ({ index, type }: CircleBoxProps) => JSX.Element;
|
274
|
+
|
266
275
|
declare type FieldRuleLabelTypes = 'OPTIONAL' | 'REQUIRED';
|
267
276
|
declare type FieldLabelsProps = {
|
268
277
|
label: string;
|
@@ -317,13 +326,13 @@ declare const getInitialValuesFromFields: <T extends object>(fields: UIFields$1<
|
|
317
326
|
declare const isFormValid: <T extends FieldValues>(formState: FormState<T>) => boolean;
|
318
327
|
declare const getFieldsFromFieldSections: <T extends object>(sections: Pick<FieldSectionProps$1<T>, "fields">[]) => UIFields$1<T>;
|
319
328
|
|
320
|
-
declare const acquisitionFormMockFields: UIFields$1<
|
329
|
+
declare const acquisitionFormMockFields: UIFields$1<Record<string, string>>;
|
321
330
|
declare const setPasswordMockFields: UIFields$1<SetPasswordFields>;
|
322
331
|
declare const loginMockFields: UIFields$1<LoginFields$1>;
|
323
|
-
declare const sectionMockFields: UIFields$1<
|
332
|
+
declare const sectionMockFields: UIFields$1<Record<string, string>>;
|
324
333
|
declare const profileInformationMockForm: {
|
325
334
|
label: string;
|
326
|
-
fields: UIFields$1<
|
335
|
+
fields: UIFields$1<Record<string, string>>;
|
327
336
|
}[];
|
328
337
|
|
329
338
|
declare type FieldMapperProps<T extends object> = {
|
@@ -547,8 +556,10 @@ declare type AcquisitionFormProps<T extends object> = {
|
|
547
556
|
buttonText?: string;
|
548
557
|
onSubmit: (values: T) => void;
|
549
558
|
onLinkButtonClick?: Callback;
|
559
|
+
showConsentLabel?: boolean;
|
560
|
+
triggerFormInitially?: boolean;
|
550
561
|
};
|
551
|
-
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, onLinkButtonClick, isSubmitDisabled, consents, isLoading, }: AcquisitionFormProps<T>) => JSX.Element;
|
562
|
+
declare const AcquisitionForm: <T extends object>({ logoUrl, title, description, buttonText, fields, onSubmit, showConsentLabel, onLinkButtonClick, isSubmitDisabled, consents, isLoading, triggerFormInitially, }: AcquisitionFormProps<T>) => JSX.Element;
|
552
563
|
|
553
564
|
declare type VerificationCodeForm = {
|
554
565
|
code: string;
|
@@ -711,4 +722,32 @@ interface Helpers {
|
|
711
722
|
}
|
712
723
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
713
724
|
|
714
|
-
|
725
|
+
declare type MlrRichTextViewerProviderProps = PropsWithChildren<{
|
726
|
+
annotationsList: AnnotationsList$1;
|
727
|
+
isMLRReview: boolean;
|
728
|
+
showAnnotations: boolean;
|
729
|
+
}>;
|
730
|
+
declare const MlrRichTextViewerProvider: ({ children, isMLRReview, showAnnotations, annotationsList, }: MlrRichTextViewerProviderProps) => JSX.Element;
|
731
|
+
|
732
|
+
declare type MlrRichTextViewerContextType = {
|
733
|
+
isMLRReview: boolean;
|
734
|
+
showAnnotations: boolean;
|
735
|
+
annotationsList: AnnotationsList$1;
|
736
|
+
};
|
737
|
+
declare const MlrRichTextViewerContext: react.Context<MlrRichTextViewerContextType>;
|
738
|
+
|
739
|
+
declare type AnnotationsList = {
|
740
|
+
tags: {
|
741
|
+
id: string;
|
742
|
+
label: string;
|
743
|
+
}[];
|
744
|
+
links: {
|
745
|
+
id: string;
|
746
|
+
text: string;
|
747
|
+
url: string;
|
748
|
+
}[];
|
749
|
+
};
|
750
|
+
|
751
|
+
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
752
|
+
|
753
|
+
export { AcquisitionForm, AcquisitionFormProps, AnnotationsList, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, BaseButtonProps, Body, BodyProps, BreakpointSizesTypes, Button, ButtonProps, CaretIconWrapper, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, Circle, CircleBoxProps, ColumnItem, Columns, ColumnsProps, Consent, ConsentProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, EmphasizedText, EmphasizedTextProps, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, FontSizesTypes, Footer, FooterContentInfo, FooterLink, FooterProps, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HeroImage, HeroImageAlignment, HeroImageProps, HorizontalPadding, HorizontalPaddingProps, ISI, ISIProps, Icon, IconNames, IconProps, Image, ImageProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, MenuNavigation, MenuNavigationProps, MlrRichTextViewerContext, MlrRichTextViewerContextType, MlrRichTextViewerProvider, MlrRichTextViewerProviderProps, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, ThemeDevicesType, ThemeSizesType, ThemeTextType, Tooltip, TooltipProps, TouchableOpacity, TouchableOpacityProps, TwoFactorAuth, TwoFactorAuthProps, UICheckboxField, UIField, UIFields, UIInputField, UISelectField, ValidationTag, ValidationTagProps, ValidationTagStatus, VerticalPadding, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useStep };
|
package/package.json
CHANGED