@zealicsolutions/web-ui 0.0.9 → 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;
@@ -7,3 +7,8 @@ export declare type ThemeTextType = Record<SizesTypes, {
7
7
  'line-height': number;
8
8
  }>;
9
9
  export declare type ThemeSizesType = Record<SizesTypes, number>;
10
+ export declare type ZealTheme = {
11
+ colors: ThemeColorsType;
12
+ fonts: ThemeTextType;
13
+ sizes: ThemeSizesType;
14
+ };
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';
@@ -115,6 +115,11 @@ declare type ThemeTextType = Record<SizesTypes, {
115
115
  'line-height': number;
116
116
  }>;
117
117
  declare type ThemeSizesType = Record<SizesTypes, number>;
118
+ declare type ZealTheme = {
119
+ colors: ThemeColorsType;
120
+ fonts: ThemeTextType;
121
+ sizes: ThemeSizesType;
122
+ };
118
123
 
119
124
  declare const toastStyles: styled_components.FlattenSimpleInterpolation;
120
125
 
@@ -433,6 +438,10 @@ declare type FieldSectionProps<T extends object> = {
433
438
  };
434
439
  declare const FieldSection: <T extends object>({ fields, label, isEditMode, control, }: FieldSectionProps<T>) => JSX.Element;
435
440
 
441
+ declare type SetPasswordRuleValidation = {
442
+ label: string;
443
+ rule: MaxRuleValidation | MinRuleValidation;
444
+ };
436
445
  declare type SetPasswordFormProps = {
437
446
  fields: UIFields<SetPasswordFields>;
438
447
  logoUrl: string;
@@ -543,4 +552,4 @@ interface Helpers {
543
552
  }
544
553
  declare const useStep: (maxStep: number) => [number, Helpers];
545
554
 
546
- 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, 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.0.9",
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"