@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;