@zealicsolutions/web-ui 0.1.65 → 0.1.67
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 +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/hooks/index.d.ts +1 -0
- package/dist/cjs/src/hooks/useRequiredConsentsAcceptedValues.d.ts +2 -0
- package/dist/cjs/src/molecules/Alert/Alert.d.ts +3 -1
- package/dist/cjs/src/molecules/Alert/Alert.stories.d.ts +1 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -0
- package/dist/cjs/src/organisms/Consent/consentMock.d.ts +2 -0
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +3 -1
- package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/hooks/index.d.ts +1 -0
- package/dist/esm/src/hooks/useRequiredConsentsAcceptedValues.d.ts +2 -0
- package/dist/esm/src/molecules/Alert/Alert.d.ts +3 -1
- package/dist/esm/src/molecules/Alert/Alert.stories.d.ts +1 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -0
- package/dist/esm/src/organisms/Consent/consentMock.d.ts +2 -0
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +3 -1
- package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +1 -1
- package/dist/index.d.ts +9 -3
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CSSProperties } from 'styled-components';
|
3
|
+
import { ThemeColors } from 'theme';
|
3
4
|
import type { Callback } from 'typescript';
|
4
5
|
export declare type AlertProps = {
|
5
6
|
style?: CSSProperties;
|
@@ -13,5 +14,6 @@ export declare type AlertProps = {
|
|
13
14
|
withCloseIcon?: {
|
14
15
|
onClose: Callback;
|
15
16
|
};
|
17
|
+
fontColor?: ThemeColors;
|
16
18
|
};
|
17
|
-
export declare const Alert: ({ logo, title, withCloseIcon, description, style, ...props }: AlertProps) => JSX.Element;
|
19
|
+
export declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, ...props }: AlertProps) => JSX.Element;
|
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { Alert as AlertComponent, AlertProps } from './Alert';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ logo, title, withCloseIcon, description, style, ...props }: AlertProps) => JSX.Element;
|
6
|
+
component: ({ logo, title, withCloseIcon, description, style, fontColor, ...props }: AlertProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Alert: ComponentStory<typeof AlertComponent>;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
import { ConsentProps } from 'organisms';
|
3
3
|
import type { Callback } from 'typescript';
|
4
4
|
import { UIFields } from '../../fieldsConfiguration';
|
5
|
+
export declare const showAcceptToastMessage: () => void | undefined;
|
5
6
|
export declare type AcquisitionFormProps<T extends object> = {
|
6
7
|
fields: UIFields<T>;
|
7
8
|
consents: ConsentProps[];
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import { ConsentProps } from 'organisms';
|
1
2
|
import { ConsentCaptureProps } from 'organisms/Consent/ConsentCapture';
|
2
3
|
export declare const consentTextMock = "[{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Please read these terms and conditions (\\\"terms and conditions\\\", \\\"terms\\\") carefully before using [website URL] website (\u201Cwebsite\u201D, \\\"service\\\") operated by [company name] (\\\"us\\\", 'we\\\", \\\"our\\\").\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Conditions of use\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"By using this website, you certify that you have read and reviewed this Agreement and that you agree to comply with its terms. If you do not want to be bound by the terms of this Agreement, you are advised to stop using the website accordingly. [company name] only grants use and access of this website, its products, and its services to those who have accepted its terms.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Privacy policy\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Before you continue using our website, we advise you to read our privacy policy [link to privacy policy] regarding our user data collection. It will help you better understand our practices.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Age restriction\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You must be at least 18 (eighteen) years of age before you can use this website. By using this website, you warrant that you are at least 18 years of age and you may legally adhere to this Agreement. [company name] assumes no responsibility for liabilities related to age misrepresentation.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Intellectual property\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You agree that all materials, products, and services provided on this website are the property of [company name], its affiliates, directors, officers, employees, agents, suppliers, or licensors including all copyrights, trade secrets, trademarks, patents, and other intellectual property. You also agree that you will not reproduce or redistribute the [company name]\u2019s intellectual property in any way, including electronic, digital, or new trademark registrations.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You grant [company name] a royalty-free and non-exclusive license to display, use, copy, transmit, and broadcast the content you upload and publish. For issues regarding intellectual property claims, you should contact the company in order to come to an agreement.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"User accounts\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"As a user of this website, you may be asked to register with us and provide private information. You are responsible for ensuring the accuracy of this information, and you are responsible for maintaining the safety and security of your identifying information. You are also responsible for all activities that occur under your account or password.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"If you think there are any possible issues regarding the security of your account on the website, inform us immediately so we may address them accordingly.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"We reserve all rights to terminate accounts, edit or remove content and cancel orders at our sole discretion.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Applicable law\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"By using this website, you agree that the laws of the [your location], without regard to principles of conflict laws, will govern these terms and conditions, or any dispute of any sort that might come between [company name] and you, or its business partners and associates.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Disputes\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Any dispute related in any way to your use of this website or to products you purchase from us shall be arbitrated by state or federal court [your location] and you consent to exclusive jurisdiction and venue of such courts.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Indemnification\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"You agree to indemnify [company name] and its affiliates and hold [company name] harmless against legal claims and demands that may arise from your use or misuse of our services. We reserve the right to select our own legal counsel.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"Limitation on liability\",\"bold\":true}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"[company name] is not liable for any damages that may occur to you as a result of your misuse of our website.\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"\"}]},{\"type\":\"paragraph\",\"children\":[{\"type\":\"span\",\"text\":\"[company name] reserves the right to edit, modify, and change this Agreement at any time. We shall let our users know of these changes through electronic mail. This Agreement is an understanding between [company name] and the user, and this supersedes and replaces all prior agreements regarding the use of this website.\"}]}]";
|
3
4
|
export declare const captureButtonPropsMock: ConsentCaptureProps;
|
4
5
|
export declare const captureCheckboxPropsMock: ConsentCaptureProps;
|
5
6
|
export declare const captureRadioButtonsPropsMock: ConsentCaptureProps;
|
7
|
+
export declare const consentsMock: ConsentProps[];
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { ConsentProps } from 'organisms/Consent/Consent';
|
2
3
|
import type { Callback } from 'typescript';
|
3
4
|
import { UIFields } from '../../fieldsConfiguration';
|
4
5
|
import { TwoFactorAuthProps } from '../TwoFactorAuth/TwoFactorAuth';
|
@@ -16,5 +17,6 @@ export declare type LoginFormProps = {
|
|
16
17
|
onSignUpButtonClick?: Callback;
|
17
18
|
onForgotPasswordButtonClick?: Callback;
|
18
19
|
isTooltipVisible?: boolean;
|
20
|
+
consents: ConsentProps[];
|
19
21
|
};
|
20
|
-
export declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
22
|
+
export declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { LoginForm as LoginFormComponent } from './LoginForm';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
|
6
|
+
component: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: import("./LoginForm").LoginFormProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const LoginForm: ComponentStory<typeof LoginFormComponent>;
|
package/dist/index.d.ts
CHANGED
@@ -21,6 +21,7 @@ import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
|
21
21
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState } from 'react-hook-form';
|
22
22
|
import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
|
23
23
|
import { ConsentProps as ConsentProps$1, ProcessTrackerProps as ProcessTrackerProps$1 } from 'organisms';
|
24
|
+
import { ConsentProps as ConsentProps$2 } from 'organisms/Consent/Consent';
|
24
25
|
import { FooterAProps } from 'organisms/Footer/FooterA';
|
25
26
|
import { FooterBProps } from 'organisms/Footer/FooterB';
|
26
27
|
import { FooterCProps } from 'organisms/Footer/FooterC';
|
@@ -567,8 +568,9 @@ declare type AlertProps = {
|
|
567
568
|
withCloseIcon?: {
|
568
569
|
onClose: Callback;
|
569
570
|
};
|
571
|
+
fontColor?: ThemeColors$2;
|
570
572
|
};
|
571
|
-
declare const Alert: ({ logo, title, withCloseIcon, description, style, ...props }: AlertProps) => JSX.Element;
|
573
|
+
declare const Alert: ({ logo, title, withCloseIcon, description, style, fontColor, ...props }: AlertProps) => JSX.Element;
|
572
574
|
|
573
575
|
declare type OrientationType = 'horizontal' | 'vertical';
|
574
576
|
declare type StepperProps = {
|
@@ -601,6 +603,7 @@ declare type SetPasswordFormProps = {
|
|
601
603
|
};
|
602
604
|
declare const SetPasswordForm: ({ logoUrl, fields, validations, onBack, onSubmit, isLoading, }: SetPasswordFormProps) => JSX.Element;
|
603
605
|
|
606
|
+
declare const showAcceptToastMessage: () => void | undefined;
|
604
607
|
declare type AcquisitionFormProps<T extends object> = {
|
605
608
|
fields: UIFields<T>;
|
606
609
|
consents: ConsentProps$1[];
|
@@ -650,8 +653,9 @@ declare type LoginFormProps = {
|
|
650
653
|
onSignUpButtonClick?: Callback;
|
651
654
|
onForgotPasswordButtonClick?: Callback;
|
652
655
|
isTooltipVisible?: boolean;
|
656
|
+
consents: ConsentProps$2[];
|
653
657
|
};
|
654
|
-
declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
658
|
+
declare const LoginForm: ({ logoUrl, fields, isTooltipVisible, onSubmit, optionsPresentation, onSignUpButtonClick, isLoading, twoFactorAuthConfig, consents, onForgotPasswordButtonClick, }: LoginFormProps) => JSX.Element;
|
655
659
|
|
656
660
|
declare type FooterProps = FooterAProps | FooterBProps | FooterCProps;
|
657
661
|
declare const Footer: (props: FooterProps) => JSX.Element;
|
@@ -818,6 +822,8 @@ interface Helpers {
|
|
818
822
|
}
|
819
823
|
declare const useStep: (maxStep: number) => [number, Helpers];
|
820
824
|
|
825
|
+
declare const useRequiredConsentsAcceptedValues: (consents: ConsentProps$1[]) => boolean;
|
826
|
+
|
821
827
|
declare type MlrRichTextViewerProviderProps = PropsWithChildren<{
|
822
828
|
annotationsList: AnnotationsList$1;
|
823
829
|
isMLRReview: boolean;
|
@@ -846,4 +852,4 @@ declare type AnnotationsList = {
|
|
846
852
|
|
847
853
|
declare const useMlrRichTextViewerContext: () => contexts_MlrRichTextViewerContext_MlrRichTextViewerContext.MlrRichTextViewerContextType;
|
848
854
|
|
849
|
-
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, 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, FeedContent, 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, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, Stepper, StepperProps, 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, Video, VideoProps, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useStep };
|
855
|
+
export { AcquisitionForm, AcquisitionFormProps, Alert, AlertProps, 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, FeedContent, 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, OrientationType, PdfDocument, PdfDocumentProps, ProcessTracker, ProcessTrackerProps, ProfileInformation, ProfileInformationProps, RadioButtonField, RadioButtonFieldProps, RadioButtonType, RadioButtons, RadioButtonsProps, RichTextEditorProps, RichTextViewer, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, Stepper, StepperProps, 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, Video, VideoProps, ZealTheme, ZealThemeProvider, acquisitionFormMockFields, defaultTheme, getFieldPlaceholder, getFieldsFromFieldSections, getInitialValuesFromFields, isFormValid, loginMockFields, profileInformationMockForm, sectionMockFields, setPasswordMockFields, showAcceptToastMessage, toast, toastStyles, useMediaQuery, useMlrRichTextViewerContext, useRequiredConsentsAcceptedValues, useStep };
|