@zealicsolutions/web-ui 0.3.86 → 0.3.87
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +2 -2
- package/dist/cjs/src/contexts/AccountButtonContext/AccountButtonContext.d.ts +12 -0
- package/dist/cjs/src/contexts/AccountButtonContext/AccountButtonContextProvider.d.ts +8 -0
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +1 -3
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -4
- package/dist/cjs/src/contexts/hooks/index.d.ts +1 -0
- package/dist/cjs/src/contexts/hooks/useAccountButtonContext.d.ts +5 -0
- package/dist/cjs/src/contexts/index.d.ts +2 -0
- package/dist/cjs/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +2 -2
- package/dist/esm/src/contexts/AccountButtonContext/AccountButtonContext.d.ts +12 -0
- package/dist/esm/src/contexts/AccountButtonContext/AccountButtonContextProvider.d.ts +8 -0
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +1 -3
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +2 -4
- package/dist/esm/src/contexts/hooks/index.d.ts +1 -0
- package/dist/esm/src/contexts/hooks/useAccountButtonContext.d.ts +5 -0
- package/dist/esm/src/contexts/index.d.ts +2 -0
- package/dist/esm/src/molecules/AvatarDropdown/AvatarDropdown.d.ts +1 -0
- package/dist/index.d.ts +21 -6
- package/package.json +1 -1
@@ -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
|
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
|
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,
|
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';
|
@@ -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>;
|