@zealicsolutions/web-ui 0.3.84 → 0.3.86

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,5 +1,5 @@
1
1
  import { LinkVariant, SelectOption } from 'atoms';
2
- import { AdditionalTabContainerProps, ButtonProps, CheckboxFieldProps, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
2
+ import { AdditionalTabContainerProps, AvatarDropdownProps, ButtonProps, CheckboxFieldProps, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
3
3
  import { Dispatch, SetStateAction } from 'react';
4
4
  import { UseFormReturn } from 'react-hook-form';
5
5
  import type { AnyObject, Nullable, StrictUnion, StylesType } from 'typescript';
@@ -87,7 +87,7 @@ export interface ColorAttributes {
87
87
  attributeType: 'color';
88
88
  color: string;
89
89
  }
90
- export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link' | 'password_setup_field';
90
+ export declare type MoleculeTypes = 'image' | 'text' | 'button' | 'video' | 'header_tab_group' | 'input_field' | 'select_field' | 'radio_button_field' | 'checkbox_field' | 'consent' | 'link' | 'password_setup_field' | 'account_button';
91
91
  export interface BaseMolecule {
92
92
  id: string;
93
93
  instance: 'molecule';
@@ -249,7 +249,13 @@ export interface PasswordSetupMolecule extends BaseMolecule {
249
249
  };
250
250
  };
251
251
  }
252
- export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule> & Partial<{
252
+ export interface AccountButtonMolecule extends BaseMolecule {
253
+ type: 'account_button';
254
+ config: {
255
+ props: AvatarDropdownProps;
256
+ };
257
+ }
258
+ export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule | AccountButtonMolecule> & Partial<{
253
259
  form: UseFormReturn<any>;
254
260
  formData: AnyObject;
255
261
  setFormData: Dispatch<SetStateAction<AnyObject>>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ContainerComponentProps, Molecule } from 'containers';
3
3
  import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
4
- import { AnyObject } from 'typescript';
4
+ import { AnyObject, Callback } from 'typescript';
5
5
  import { GroupedStepItemsByStepContainer } from './utils';
6
6
  export declare type OrganismContextType = {
7
7
  items: (ContainerComponentProps | Molecule)[];
@@ -12,5 +12,7 @@ export declare type OrganismContextType = {
12
12
  data: AnyObject;
13
13
  }[]) => void;
14
14
  validations?: PasswordRuleValidation[];
15
+ userInitials?: string;
16
+ logOutHandler?: Callback;
15
17
  };
16
18
  export declare const OrganismContext: import("react").Context<OrganismContextType>;
@@ -1,7 +1,7 @@
1
1
  import { ContainerComponentProps, Molecule } from 'containers';
2
2
  import { PasswordRuleValidation } from 'molecules/PasswordSetup/PasswordSetup';
3
3
  import { PropsWithChildren } from 'react';
4
- import { AnyObject } from 'typescript';
4
+ import { AnyObject, Callback } from 'typescript';
5
5
  export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
6
6
  initItems: (ContainerComponentProps | Molecule)[];
7
7
  formId: string;
@@ -10,5 +10,7 @@ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
10
10
  data: AnyObject;
11
11
  }[]) => void;
12
12
  validations: PasswordRuleValidation[];
13
+ userInitials: string;
14
+ logOutHandler: Callback;
13
15
  }>>;
14
- export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, }: FormStepContextProviderProps) => JSX.Element;
16
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, userInitials, logOutHandler, }: FormStepContextProviderProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { AvatarProps } from 'atoms';
2
2
  import { MenuItemsProps } from '../MenuItems/MenuItems';
3
3
  import 'rc-dropdown/assets/index.css';
4
- export declare type AvatarDropdownProps<T> = {
4
+ export declare type AvatarDropdownProps<T = string> = {
5
5
  avatarProps: AvatarProps;
6
6
  menuConfig: MenuItemsProps<T>;
7
7
  };