@zealicsolutions/web-ui 0.1.0 → 0.1.1

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,6 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { SetPasswordFields, SetPasswordRuleValidation } from 'organisms/SetPasswordForm/types';
2
+ import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
3
3
  import { UIFields } from '../../fieldsConfiguration';
4
+ export declare type SetPasswordRuleValidation = {
5
+ label: string;
6
+ rule: MaxRuleValidation | MinRuleValidation;
7
+ };
4
8
  export declare type SetPasswordFormProps = {
5
9
  fields: UIFields<SetPasswordFields>;
6
10
  logoUrl: string;
@@ -2,7 +2,7 @@ export declare type SetPasswordFields = {
2
2
  password: string;
3
3
  confirmPassword: string;
4
4
  };
5
- export declare type CountValidationTypes = 'COUNT' | 'CAPITAL_COUNT' | 'NUMBER_COUNT' | 'SPECIAL_CHARACTERS_COUNT';
5
+ export declare type CountValidationTypes = 'COUNT' | 'CAPITAL_COUNT' | 'NUMBER_COUNT' | 'SPECIAL_CHARACTERS_COUNT' | 'LOWER_CASE_COUNT';
6
6
  export declare type MaxRuleValidation = {
7
7
  MAX: number;
8
8
  type: CountValidationTypes;
@@ -11,7 +11,3 @@ export declare type MinRuleValidation = {
11
11
  MIN: number;
12
12
  type: CountValidationTypes;
13
13
  };
14
- export declare type SetPasswordRuleValidation = {
15
- label: string;
16
- rule: MaxRuleValidation | MinRuleValidation;
17
- };
@@ -1,3 +1,3 @@
1
- import { SetPasswordRuleValidation } from 'organisms/SetPasswordForm/types';
2
1
  import { CustomValidationRule } from '../../molecules';
2
+ import { SetPasswordRuleValidation } from './SetPasswordForm';
3
3
  export declare const passwordValidationMapper: (validation: SetPasswordRuleValidation) => CustomValidationRule;
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
14
14
  import { Control } from 'react-hook-form/dist/types';
15
15
  import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
16
16
  import { DrawerProps as DrawerProps$1 } from '@mui/material';
17
- import { SetPasswordFields, SetPasswordRuleValidation } from 'organisms/SetPasswordForm/types';
17
+ import { SetPasswordFields, MaxRuleValidation, MinRuleValidation } from 'organisms/SetPasswordForm/types';
18
18
  import { FieldSectionProps as FieldSectionProps$1 } from 'molecules';
19
19
  import { DeepPartial, FieldValues, FormState } from 'react-hook-form';
20
20
  import { LoginFields as LoginFields$1 } from 'organisms/LoginForm/types';
@@ -438,6 +438,10 @@ declare type FieldSectionProps<T extends object> = {
438
438
  };
439
439
  declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
440
440
 
441
+ declare type SetPasswordRuleValidation = {
442
+ label: string;
443
+ rule: MaxRuleValidation | MinRuleValidation;
444
+ };
441
445
  declare type SetPasswordFormProps = {
442
446
  fields: UIFields<SetPasswordFields>;
443
447
  logoUrl: string;
@@ -548,4 +552,4 @@ interface Helpers {
548
552
  }
549
553
  declare const useStep: (maxStep: number) => [number, Helpers];
550
554
 
551
- export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, Banner, BannerProps, BaseButtonProps, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HorizontalPadding, HorizontalPaddingProps, Icon, IconNames, IconProps, Image, ImageProps, InfoBox, InfoBoxProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, ProfileInformation, ProfileInformationProps, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, 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, useStep };
555
+ export { AcquisitionForm, AcquisitionFormProps, AuthMethod, Avatar, AvatarDropdown, AvatarDropdownProps, AvatarProps, Banner, BannerProps, BaseButtonProps, Button, ButtonProps, CheckBoxProps, Checkbox, CheckboxField, CheckboxFieldProps, CustomValidation, CustomValidationProps, CustomValidationRule, DefaultTemplate, DefaultTemplateProps, Divider, DividerProps, Drawer, FieldLabels, FieldLabelsProps, FieldMapper, FieldMapperProps, FieldRuleLabelTypes, FieldSection, FieldSectionProps, FieldTypes, ForgotPasswordForm, ForgotPasswordFormProps, GoogleMap, GoogleMapProps, Header, HeaderProps, HorizontalPadding, HorizontalPaddingProps, Icon, IconNames, IconProps, Image, ImageProps, InfoBox, InfoBoxProps, Input, InputField, InputFieldProps, InputFieldTypes, InputIconProps, InputProps, LinkButton, LinkButtonProps, LoginForm, LoginFormProps, MapPosition, MenuItem, MenuItems, MenuItemsProps, ProfileInformation, ProfileInformationProps, Select, SelectField, SelectFieldProps, SelectableCardGroup, SelectableCardGroupProps, SetPasswordForm, SetPasswordFormProps, SetPasswordRuleValidation, SizesTypes, Spacer, SpacerProps, Spinner, StyleWrapper, TabGroup, TabGroupProps, TextTypes, TextWrapper, TextWrapperProps, ThemeColors, ThemeColorsType, 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, useStep };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"