@zealicsolutions/web-ui 0.3.86 → 0.3.87

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, AvatarDropdownProps, ButtonProps, CheckboxFieldProps, ConsentType, ImageProps, InputFieldProps, LinkProps, RadioButtonFieldProps, SelectFieldProps, TabGroupProps, TextMoleculeProps } from 'molecules';
2
+ import { AdditionalTabContainerProps, AvatarDropdownMenuConfigType, 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';
@@ -252,7 +252,7 @@ export interface PasswordSetupMolecule extends BaseMolecule {
252
252
  export interface AccountButtonMolecule extends BaseMolecule {
253
253
  type: 'account_button';
254
254
  config: {
255
- props: AvatarDropdownProps;
255
+ props: AvatarDropdownProps<AvatarDropdownMenuConfigType>;
256
256
  };
257
257
  }
258
258
  export declare type Molecule = StrictUnion<ImageMolecule | TextMoleculeType | ButtonMolecule | VideoMolecule | TabGroupMolecule | TextInputMolecule | SelectFieldMolecule | RadioButtonFieldMolecule | CheckboxFieldMolecule | ConsentFieldMolecule | LinkMolecule | PasswordSetupMolecule | AccountButtonMolecule> & Partial<{
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Callback } from 'typescript';
3
+ export declare type AccountButtonContextType = Partial<{
4
+ userInitials: string;
5
+ logOutHandler: Callback;
6
+ goToAccountInfo: Callback;
7
+ }>;
8
+ export declare const AccountButtonContext: import("react").Context<Partial<{
9
+ userInitials: string;
10
+ logOutHandler: Callback;
11
+ goToAccountInfo: Callback;
12
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { Callback } from 'typescript';
3
+ export declare type AccountButtonProviderProps = PropsWithChildren<Partial<{
4
+ userInitials: string;
5
+ logOutHandler: Callback;
6
+ goToAccountInfo: Callback;
7
+ }>>;
8
+ export declare const AccountButtonProvider: ({ children, goToAccountInfo, userInitials, logOutHandler, }: AccountButtonProviderProps) => JSX.Element;
@@ -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, Callback } from 'typescript';
4
+ import { AnyObject } from 'typescript';
5
5
  import { GroupedStepItemsByStepContainer } from './utils';
6
6
  export declare type OrganismContextType = {
7
7
  items: (ContainerComponentProps | Molecule)[];
@@ -12,7 +12,5 @@ export declare type OrganismContextType = {
12
12
  data: AnyObject;
13
13
  }[]) => void;
14
14
  validations?: PasswordRuleValidation[];
15
- userInitials?: string;
16
- logOutHandler?: Callback;
17
15
  };
18
16
  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, Callback } from 'typescript';
4
+ import { AnyObject } from 'typescript';
5
5
  export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
6
6
  initItems: (ContainerComponentProps | Molecule)[];
7
7
  formId: string;
@@ -10,7 +10,5 @@ export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
10
10
  data: AnyObject;
11
11
  }[]) => void;
12
12
  validations: PasswordRuleValidation[];
13
- userInitials: string;
14
- logOutHandler: Callback;
15
13
  }>>;
16
- export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, userInitials, logOutHandler, }: FormStepContextProviderProps) => JSX.Element;
14
+ export declare const OrganismContextProvider: ({ initItems, children, submitHandler, formId, validations, }: FormStepContextProviderProps) => JSX.Element;
@@ -3,3 +3,4 @@ export { useButtonActionsContext } from './useButtonActionsContext';
3
3
  export { useMlrRichTextViewerContext } from './useMlrRichTextViewerContext';
4
4
  export { useOrganismContext } from './useOrganismContext';
5
5
  export { useStateContext } from './useStateContext';
6
+ export { useAccountButtonContext } from './useAccountButtonContext';
@@ -0,0 +1,5 @@
1
+ export declare const useAccountButtonContext: () => Partial<{
2
+ userInitials: string;
3
+ logOutHandler: import("../../typescript").Callback;
4
+ goToAccountInfo: import("../../typescript").Callback;
5
+ }>;
@@ -7,3 +7,5 @@ export * from './ButtonActionsContext/ButtonActionsContext';
7
7
  export * from './ButtonActionsContext/ButtonActionsContextProvider';
8
8
  export * from './OrganismContext/OrganismContext';
9
9
  export * from './OrganismContext/OrganismContextProvider';
10
+ export * from './AccountButtonContext/AccountButtonContext';
11
+ export * from './AccountButtonContext/AccountButtonContextProvider';
@@ -1,6 +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 AvatarDropdownMenuConfigType = 'log-out' | 'account-information';
4
5
  export declare type AvatarDropdownProps<T = string> = {
5
6
  avatarProps: AvatarProps;
6
7
  menuConfig: MenuItemsProps<T>;