@ama-pt/agora-design-system 1.0.3 → 1.1.0
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.
- package/artifacts/dist/index.css +1 -1
- package/artifacts/dist/index.mjs +7197 -5695
- package/artifacts/dist/index.mjs.map +1 -1
- package/artifacts/dist/index.umd.js +2 -2
- package/artifacts/dist/index.umd.js.map +1 -1
- package/artifacts/dist/types/components/avatar/avatar.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +20 -8
- package/artifacts/dist/types/components/cards/card-links/index.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-search-result/card-search-result.d.ts +6 -0
- package/artifacts/dist/types/components/dialog/dialog.d.ts +13 -1
- package/artifacts/dist/types/components/drawer/drawer.d.ts +11 -3
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-context.d.ts +0 -1
- package/artifacts/dist/types/components/header/header.d.ts +7 -2
- package/artifacts/dist/types/components/header-v2/brand/brand.d.ts +7 -0
- package/artifacts/dist/types/components/header-v2/brand/institutional.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/brand/logo.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/general-bar/areas/area.d.ts +9 -0
- package/artifacts/dist/types/components/header-v2/general-bar/areas/areas.d.ts +9 -0
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-body-link.d.ts +30 -0
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-body.d.ts +6 -0
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-footer-action.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-footer.d.ts +6 -0
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-header.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated.d.ts +9 -0
- package/artifacts/dist/types/components/header-v2/general-bar/general-bar.d.ts +11 -0
- package/artifacts/dist/types/components/header-v2/general-bar/languages/language.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/general-bar/languages/languages.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/custom-search.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/default-search.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-link.d.ts +30 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-links-title.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-links.d.ts +7 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/search-title.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/general-bar/search/search.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/general-bar/unauthenticated/unauthenticated-link.d.ts +33 -0
- package/artifacts/dist/types/components/header-v2/general-bar/unauthenticated/unauthenticated.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/header-v2.d.ts +30 -0
- package/artifacts/dist/types/components/header-v2/index.d.ts +56 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/header-data-context.d.ts +58 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/header-data-controller.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/areas-utils.d.ts +9 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/authenticated-utils.d.ts +11 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/brand-utils.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/general-utils.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/languages-utils.d.ts +11 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/navigation-utils.d.ts +15 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/search-utils.d.ts +17 -0
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/unauthenticated-utils.d.ts +7 -0
- package/artifacts/dist/types/components/header-v2/internals/context/external-context/header-external-controller.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/context/menu-context/header-menu-context.d.ts +20 -0
- package/artifacts/dist/types/components/header-v2/internals/context/menu-context/header-menu-controller.d.ts +2 -0
- package/artifacts/dist/types/components/header-v2/internals/context/menu-context/menu-type.enum.d.ts +15 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/areas/internal-area.d.ts +6 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/areas/internal-areas.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/Internal-authenticated-drawer.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated-drawer-body.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated-drawer-footer.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated-drawer-header.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated.d.ts +10 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/internal-general-bar.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/languages/internal-language.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/languages/internal-languages-layout.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/languages/internal-languages.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/search/internal-custom-search-layout.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/search/internal-search-layout.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/search/internal-search.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/unauthenticated/internal-unauthenticated-layout.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/general-bar/unauthenticated/internal-unauthenticated.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/internal-header.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/internal-navigation-bar.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/logo/internal-logo.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger-layout.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel.d.ts +25 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-list/internal-navigation-link-layout.d.ts +12 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-list/internal-navigation-list.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +8 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-modal-navbar.d.ts +6 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-navigation-modal-layout.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-navigation-modal.d.ts +2 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/custom-header-link/custom-header-link.d.ts +14 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/custom-modal/custom-modal-context.d.ts +24 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/custom-modal/custom-modal-dialog.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/custom-modal/custom-modal-provider.d.ts +9 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/hooks/use-scrolling.d.ts +4 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/institutional/internal-institutional.d.ts +5 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/modal-menu/modal-menu.d.ts +29 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/panel-menu/layout.interface.d.ts +3 -0
- package/artifacts/dist/types/components/header-v2/internals/shared/panel-menu/panel-menu.d.ts +40 -0
- package/artifacts/dist/types/components/header-v2/navigation-bar/navigation-bar.d.ts +13 -0
- package/artifacts/dist/types/components/header-v2/navigation-bar/navigation-link.d.ts +30 -0
- package/artifacts/dist/types/components/header-v2/navigation-bar/navigation-root.d.ts +10 -0
- package/artifacts/dist/types/components/header-v2/navigation-bar/related-navigation-link.d.ts +5 -0
- package/artifacts/dist/types/components/index.d.ts +2 -0
- package/artifacts/dist/types/components/input-date/contexts/date-picker-state.context.d.ts +2 -0
- package/artifacts/dist/types/components/input-date/contexts/use-date-picker-state-context.d.ts +14 -13
- package/artifacts/dist/types/components/input-date/date-picker-dropdown.d.ts +1 -0
- package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -0
- package/artifacts/dist/types/components/input-date/utils/get-closest-available-day.d.ts +11 -0
- package/artifacts/dist/types/components/input-date/utils/is-day-on-array.d.ts +1 -0
- package/artifacts/dist/types/components/input-date/utils/parse-date.d.ts +3 -0
- package/artifacts/dist/types/components/link-wrapper/link-wrapper.d.ts +2 -3
- package/artifacts/dist/types/components/loader-dialog/loader-dialog-context.d.ts +0 -1
- package/artifacts/dist/types/components/menu-item/menu-item.d.ts +13 -2
- package/artifacts/dist/types/components/quiz/index.d.ts +3 -0
- package/artifacts/dist/types/components/quiz/quiz-item-summary/index.d.ts +2 -0
- package/artifacts/dist/types/components/quiz/quiz-item-summary/quiz-item-summary.d.ts +18 -0
- package/artifacts/dist/types/components/quiz/quiz-option/index.d.ts +2 -0
- package/artifacts/dist/types/components/quiz/quiz-option/quiz-option.d.ts +12 -0
- package/artifacts/dist/types/components/quiz/quiz-options/index.d.ts +2 -0
- package/artifacts/dist/types/components/quiz/quiz-options/quiz-options.d.ts +9 -0
- package/artifacts/dist/types/components/ratings/index.d.ts +1 -0
- package/artifacts/dist/types/components/ratings/rating-icons/index.d.ts +2 -0
- package/artifacts/dist/types/components/ratings/rating-icons/rating-icons.d.ts +54 -0
- package/artifacts/dist/types/components/ratings/rating-stars/rating-stars.d.ts +9 -0
- package/artifacts/dist/types/components/toasts/toast-context.d.ts +0 -1
- package/artifacts/dist/types/utils/debounce.d.ts +0 -1
- package/artifacts/dist/types/utils/expand-ref.d.ts +1 -1
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef,
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '../../components/icon';
|
|
3
3
|
import { TooltipAlignment, TooltipPosition } from '../../components/tooltip';
|
|
4
4
|
import { BooleanProp } from '../../models';
|
|
@@ -70,4 +70,4 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
70
70
|
*/
|
|
71
71
|
onActivate?: () => void;
|
|
72
72
|
}
|
|
73
|
-
export declare const Avatar:
|
|
73
|
+
export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, FC, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevel } from '../../../models';
|
|
1
|
+
import { ComponentPropsWithRef, FC, ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
3
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
4
|
import './card-links.scss';
|
|
5
|
-
/**
|
|
6
|
-
* The available variants of the card links.
|
|
7
|
-
*/
|
|
8
|
-
export type CardLinkVariant = 'default' | 'dark';
|
|
9
5
|
export interface CardLinksProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
10
6
|
/**
|
|
11
7
|
* Heading level to apply in the card.
|
|
@@ -15,6 +11,10 @@ export interface CardLinksProps extends Omit<ComponentPropsWithRef<'div'>, 'titl
|
|
|
15
11
|
* The category of the card.
|
|
16
12
|
*/
|
|
17
13
|
category?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Card date label.
|
|
16
|
+
*/
|
|
17
|
+
date?: ReactNode;
|
|
18
18
|
/**
|
|
19
19
|
* The title of the card.
|
|
20
20
|
*/
|
|
@@ -23,6 +23,14 @@ export interface CardLinksProps extends Omit<ComponentPropsWithRef<'div'>, 'titl
|
|
|
23
23
|
* The description of the card.
|
|
24
24
|
*/
|
|
25
25
|
description?: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* card image.
|
|
28
|
+
*/
|
|
29
|
+
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
30
|
+
/**
|
|
31
|
+
* Anchor props to render in heading.
|
|
32
|
+
*/
|
|
33
|
+
mainAnchor?: AnchorProps;
|
|
26
34
|
/**
|
|
27
35
|
* The list of links of the card.
|
|
28
36
|
*/
|
|
@@ -32,8 +40,12 @@ export interface CardLinksProps extends Omit<ComponentPropsWithRef<'div'>, 'titl
|
|
|
32
40
|
*/
|
|
33
41
|
topics?: ReactNode[];
|
|
34
42
|
/**
|
|
35
|
-
*
|
|
43
|
+
* Enables dark mode.
|
|
44
|
+
*/
|
|
45
|
+
darkMode?: BooleanProp;
|
|
46
|
+
/**
|
|
47
|
+
* Makes the whole card clickable.
|
|
36
48
|
*/
|
|
37
|
-
|
|
49
|
+
blockedLink?: BooleanProp;
|
|
38
50
|
}
|
|
39
51
|
export declare const CardLinks: FC<CardLinksProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { CardLinks } from './card-links';
|
|
2
|
-
export type { CardLinksProps
|
|
2
|
+
export type { CardLinksProps } from './card-links';
|
|
@@ -2,6 +2,9 @@ import { ComponentPropsWithoutRef, FC, ImgHTMLAttributes, ReactNode } from 'reac
|
|
|
2
2
|
import { AnchorProps } from '../../../components/anchor';
|
|
3
3
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
4
4
|
import './card-search-result.scss';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use CardLinks instead.
|
|
7
|
+
*/
|
|
5
8
|
export interface CardSearchResultProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
9
|
/**
|
|
7
10
|
* Card category label.
|
|
@@ -36,4 +39,7 @@ export interface CardSearchResultProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
36
39
|
*/
|
|
37
40
|
blockedLink?: BooleanProp;
|
|
38
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Use CardLinks instead.
|
|
44
|
+
*/
|
|
39
45
|
export declare const CardSearchResult: FC<CardSearchResultProps>;
|
|
@@ -33,9 +33,21 @@ export interface DialogProps extends ComponentPropsWithRef<'div'> {
|
|
|
33
33
|
*/
|
|
34
34
|
dismissOnEscape?: BooleanProp;
|
|
35
35
|
/**
|
|
36
|
-
* Callback to be called when click outside
|
|
36
|
+
* Callback to be called when click outside.
|
|
37
37
|
*/
|
|
38
38
|
onClickedOutside?: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* Callback to be called when escape is pressed.
|
|
41
|
+
*/
|
|
42
|
+
onEscape?: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Callback to run after dialog is closed.
|
|
45
|
+
*/
|
|
46
|
+
onHide?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Callback to run after dialog is opened.
|
|
49
|
+
*/
|
|
50
|
+
onShow?: () => void;
|
|
39
51
|
}
|
|
40
52
|
export declare const InnerDialog: ForwardRefRenderFunction<DialogElement, DialogProps>;
|
|
41
53
|
export declare const Dialog: React.ForwardRefExoticComponent<Omit<DialogProps, "ref"> & React.RefAttributes<DialogElement>>;
|
|
@@ -5,11 +5,15 @@ export type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
|
5
5
|
export interface DrawerElement extends HTMLDivElement {
|
|
6
6
|
/**
|
|
7
7
|
* Open drawer.
|
|
8
|
-
|
|
8
|
+
*/
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Open drawer.
|
|
12
|
+
*/
|
|
9
13
|
open: () => void;
|
|
10
14
|
/**
|
|
11
15
|
* Close drawer.
|
|
12
|
-
|
|
16
|
+
*/
|
|
13
17
|
close: () => void;
|
|
14
18
|
}
|
|
15
19
|
export interface DrawerProps extends ComponentPropsWithRef<'div'> {
|
|
@@ -30,9 +34,13 @@ export interface DrawerProps extends ComponentPropsWithRef<'div'> {
|
|
|
30
34
|
*/
|
|
31
35
|
position?: DrawerPosition;
|
|
32
36
|
/**
|
|
33
|
-
* Callback to be called when click outside
|
|
37
|
+
* Callback to be called when click outside.
|
|
34
38
|
*/
|
|
35
39
|
onClickedOutside?: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* Callback to be called when escape is pressed.
|
|
42
|
+
*/
|
|
43
|
+
onEscape?: () => void;
|
|
36
44
|
/**
|
|
37
45
|
* Callback to be called when the drawer is opened.
|
|
38
46
|
*/
|
|
@@ -4,6 +4,9 @@ import { BooleanProp } from '../../models';
|
|
|
4
4
|
import './header.scss';
|
|
5
5
|
import { HeaderGeneralOptionsProps } from './shared-components/header-general-options/header-general-options';
|
|
6
6
|
import { HeaderNavigationProps } from './shared-components/header-navigation/header-navigation';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Deprecated since 1 September 2024. Use HeaderV2 component instead.
|
|
9
|
+
*/
|
|
7
10
|
export interface HeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
11
|
/**
|
|
9
12
|
* Used to help identify page, SEO and accessibility when in homepage.
|
|
@@ -60,5 +63,7 @@ export interface HeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
60
63
|
*/
|
|
61
64
|
handleBackButtonBurger?: (evt: MouseEvent<HTMLButtonElement>) => void;
|
|
62
65
|
}
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Deprecated since 1 September 2024. Use HeaderV2 component instead.
|
|
68
|
+
*/
|
|
69
|
+
export declare const Header: FC<HeaderProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { InstitutionalProps } from './institutional';
|
|
3
|
+
import { LogoProps } from './logo';
|
|
4
|
+
export interface BrandProps {
|
|
5
|
+
children: ReactElement<LogoProps | InstitutionalProps> | ReactElement<LogoProps | InstitutionalProps>[];
|
|
6
|
+
}
|
|
7
|
+
export declare const Brand: FC<BrandProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../../components/button';
|
|
2
|
+
import { BooleanProp } from '../../../../models';
|
|
3
|
+
import { FC, ReactNode } from 'react';
|
|
4
|
+
export interface AreaProps extends ButtonProps {
|
|
5
|
+
value: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
active?: BooleanProp;
|
|
8
|
+
}
|
|
9
|
+
export declare const Area: FC<AreaProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonGroupProps } from '../../../../components/button-group';
|
|
2
|
+
import { FC, ReactElement } from 'react';
|
|
3
|
+
import { AreaProps } from './area';
|
|
4
|
+
export interface AreasProps extends Omit<ButtonGroupProps, 'onChange'> {
|
|
5
|
+
['aria-label']: string;
|
|
6
|
+
children: ReactElement<AreaProps> | ReactElement<AreaProps>[];
|
|
7
|
+
onChange?: (activeArea: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Areas: FC<AreasProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LinkWrapperProps } from '../../../../components/link-wrapper';
|
|
2
|
+
import { BooleanProp } from '../../../../models';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
export interface AuthenticatedBodyLinkProps extends LinkWrapperProps {
|
|
5
|
+
/**
|
|
6
|
+
* Defines if uses an icon.
|
|
7
|
+
*/
|
|
8
|
+
hasIcon?: BooleanProp;
|
|
9
|
+
/**
|
|
10
|
+
* Defines if children content it is to be rendered.
|
|
11
|
+
*/
|
|
12
|
+
iconOnly?: BooleanProp;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the name of the leading icon to use.
|
|
15
|
+
*/
|
|
16
|
+
leadingIcon?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
19
|
+
*/
|
|
20
|
+
leadingIconHover?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the name of the trailing icon to use.
|
|
23
|
+
*/
|
|
24
|
+
trailingIcon?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
27
|
+
*/
|
|
28
|
+
trailingIconHover?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const AuthenticatedBodyLink: FC<AuthenticatedBodyLinkProps>;
|
package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-body.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
2
|
+
import { AuthenticatedBodyLinkProps } from './authenticated-body-link';
|
|
3
|
+
export interface AuthenticatedBodyProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
children?: ReactElement<AuthenticatedBodyLinkProps> | ReactElement<AuthenticatedBodyLinkProps>[];
|
|
5
|
+
}
|
|
6
|
+
export declare const AuthenticatedBody: FC<AuthenticatedBodyProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
2
|
+
import { AuthenticatedFooterActionProps } from './authenticated-footer-action';
|
|
3
|
+
export interface AuthenticatedFooterProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
children: ReactElement<AuthenticatedFooterActionProps> | ReactElement<AuthenticatedFooterActionProps>[];
|
|
5
|
+
}
|
|
6
|
+
export declare const AuthenticatedFooter: FC<AuthenticatedFooterProps>;
|
package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AvatarProps } from '../../../../components/avatar';
|
|
2
|
+
import { FC, ReactElement } from 'react';
|
|
3
|
+
import { AuthenticatedBodyProps } from './authenticated-body';
|
|
4
|
+
import { AuthenticatedFooterProps } from './authenticated-footer';
|
|
5
|
+
import { AuthenticatedHeaderProps } from './authenticated-header';
|
|
6
|
+
export interface AuthenticatedProps extends AvatarProps {
|
|
7
|
+
children: ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps> | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps>[];
|
|
8
|
+
}
|
|
9
|
+
export declare const Authenticated: FC<AuthenticatedProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { AreasProps } from './areas/areas';
|
|
3
|
+
import { AuthenticatedProps } from './authenticated/authenticated';
|
|
4
|
+
import { LanguagesProps } from './languages/languages';
|
|
5
|
+
import { SearchProps } from './search/search';
|
|
6
|
+
import { UnauthenticatedProps } from './unauthenticated/unauthenticated';
|
|
7
|
+
export interface GeneralBarProps {
|
|
8
|
+
['aria-label']: string;
|
|
9
|
+
children: ReactElement<AreasProps | LanguagesProps | AuthenticatedProps | UnauthenticatedProps | SearchProps> | ReactElement<AreasProps | LanguagesProps | AuthenticatedProps | UnauthenticatedProps | SearchProps>[];
|
|
10
|
+
}
|
|
11
|
+
export declare const GeneralBar: FC<GeneralBarProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC, ReactElement } from 'react';
|
|
2
|
+
import { LanguageProps } from './language';
|
|
3
|
+
export interface LanguagesProps {
|
|
4
|
+
['aria-label']: string;
|
|
5
|
+
children: ReactElement<LanguageProps> | ReactElement<LanguageProps>[];
|
|
6
|
+
onChange?: (activeLanguage: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const Languages: FC<LanguagesProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputSearchBarProps } from '../../../../components/input-search-bar';
|
|
2
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
3
|
+
import { SearchRelatedLinksProps } from './search-related-links';
|
|
4
|
+
import { SearchTitleProps } from './search-title';
|
|
5
|
+
export interface DefaultSearchProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
children: ReactElement<SearchTitleProps | InputSearchBarProps | SearchRelatedLinksProps> | ReactElement<SearchTitleProps | InputSearchBarProps | SearchRelatedLinksProps>[];
|
|
7
|
+
}
|
|
8
|
+
export declare const DefaultSearch: FC<DefaultSearchProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LinkWrapperProps } from '../../../../components/link-wrapper';
|
|
2
|
+
import { BooleanProp } from '../../../../models';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
export interface SearchRelatedLinkProps extends LinkWrapperProps {
|
|
5
|
+
/**
|
|
6
|
+
* Defines if uses an icon.
|
|
7
|
+
*/
|
|
8
|
+
hasIcon?: BooleanProp;
|
|
9
|
+
/**
|
|
10
|
+
* Defines if children content it is to be rendered.
|
|
11
|
+
*/
|
|
12
|
+
iconOnly?: BooleanProp;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the name of the leading icon to use.
|
|
15
|
+
*/
|
|
16
|
+
leadingIcon?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
19
|
+
*/
|
|
20
|
+
leadingIconHover?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the name of the trailing icon to use.
|
|
23
|
+
*/
|
|
24
|
+
trailingIcon?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
27
|
+
*/
|
|
28
|
+
trailingIconHover?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const SearchRelatedLink: FC<SearchRelatedLinkProps>;
|
package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-links.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
2
|
+
import { SearchRelatedLinkProps } from './search-related-link';
|
|
3
|
+
import { SearchRelatedLinksTitleProps } from './search-related-links-title';
|
|
4
|
+
export interface SearchRelatedLinksProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
children: ReactElement<SearchRelatedLinksTitleProps | SearchRelatedLinkProps> | ReactElement<SearchRelatedLinksTitleProps | SearchRelatedLinkProps>[];
|
|
6
|
+
}
|
|
7
|
+
export declare const SearchRelatedLinks: FC<SearchRelatedLinksProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
2
|
+
import { CustomSearchProps } from './custom-search';
|
|
3
|
+
import { DefaultSearchProps } from './default-search';
|
|
4
|
+
export interface SearchProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
label: string;
|
|
6
|
+
children: ReactElement<DefaultSearchProps | CustomSearchProps>;
|
|
7
|
+
}
|
|
8
|
+
export declare const Search: FC<SearchProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BooleanProp } from '../../../../models';
|
|
2
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
3
|
+
export interface UnauthenticatedLinkProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Defines if uses an icon.
|
|
6
|
+
*/
|
|
7
|
+
hasIcon?: BooleanProp;
|
|
8
|
+
/**
|
|
9
|
+
* Defines if children content it is to be rendered.
|
|
10
|
+
*/
|
|
11
|
+
iconOnly?: BooleanProp;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the name of the leading icon to use.
|
|
14
|
+
*/
|
|
15
|
+
leadingIcon?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
18
|
+
*/
|
|
19
|
+
leadingIconHover?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the name of the trailing icon to use.
|
|
22
|
+
*/
|
|
23
|
+
trailingIcon?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
26
|
+
*/
|
|
27
|
+
trailingIconHover?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Children
|
|
30
|
+
*/
|
|
31
|
+
children: ReactElement<HTMLAnchorElement>;
|
|
32
|
+
}
|
|
33
|
+
export declare const UnauthenticatedLink: FC<UnauthenticatedLinkProps>;
|
package/artifacts/dist/types/components/header-v2/general-bar/unauthenticated/unauthenticated.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../../components/button';
|
|
2
|
+
import { FC, ReactElement } from 'react';
|
|
3
|
+
import { UnauthenticatedLinkProps } from './unauthenticated-link';
|
|
4
|
+
export interface UnauthenticatedProps extends ButtonProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
children: ReactElement<UnauthenticatedLinkProps> | ReactElement<UnauthenticatedLinkProps>[];
|
|
7
|
+
}
|
|
8
|
+
export declare const Unauthenticated: FC<UnauthenticatedProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BooleanProp } from '../../models';
|
|
2
|
+
import React, { ComponentPropsWithRef, ReactElement } from 'react';
|
|
3
|
+
import { BrandProps } from './brand/brand';
|
|
4
|
+
import { GeneralBarProps } from './general-bar/general-bar';
|
|
5
|
+
import { NavigationBarProps } from './navigation-bar/navigation-bar';
|
|
6
|
+
export interface HeaderV2Element extends ComponentPropsWithRef<'div'> {
|
|
7
|
+
focusActiveArea: () => void;
|
|
8
|
+
setActiveArea: (areaValue: string) => void;
|
|
9
|
+
focusLanguages: () => void;
|
|
10
|
+
openLanguages: () => void;
|
|
11
|
+
focusSearch: () => void;
|
|
12
|
+
openSearch: () => void;
|
|
13
|
+
focusUnauthenticated: () => void;
|
|
14
|
+
openUnauthenticated: () => void;
|
|
15
|
+
focusAuthenticated: () => void;
|
|
16
|
+
openAuthenticated: () => void;
|
|
17
|
+
focusBurgerMenu: () => void;
|
|
18
|
+
openBurgerMenu: () => void;
|
|
19
|
+
focusModalMenu: () => void;
|
|
20
|
+
openModalMenu: () => void;
|
|
21
|
+
focusNavigationMenuOption: (index: number) => void;
|
|
22
|
+
openNavigationMenuOption: (index: number) => void;
|
|
23
|
+
closeAll: () => void;
|
|
24
|
+
}
|
|
25
|
+
export interface HeaderV2Props {
|
|
26
|
+
darkMode?: BooleanProp;
|
|
27
|
+
maxNavigationItems?: number;
|
|
28
|
+
children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[];
|
|
29
|
+
}
|
|
30
|
+
export declare const HeaderV2: React.ForwardRefExoticComponent<HeaderV2Props & React.RefAttributes<HeaderV2Element>>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export { HeaderV2 } from './header-v2';
|
|
2
|
+
export type { HeaderV2Element, HeaderV2Props } from './header-v2';
|
|
3
|
+
export { Brand } from './brand/brand';
|
|
4
|
+
export type { BrandProps } from './brand/brand';
|
|
5
|
+
export { Institutional } from './brand/institutional';
|
|
6
|
+
export type { InstitutionalProps } from './brand/institutional';
|
|
7
|
+
export { Logo } from './brand/logo';
|
|
8
|
+
export type { LogoProps } from './brand/logo';
|
|
9
|
+
export { GeneralBar } from './general-bar/general-bar';
|
|
10
|
+
export type { GeneralBarProps } from './general-bar/general-bar';
|
|
11
|
+
export { Areas } from './general-bar/areas/areas';
|
|
12
|
+
export type { AreasProps } from './general-bar/areas/areas';
|
|
13
|
+
export { Area } from './general-bar/areas/area';
|
|
14
|
+
export type { AreaProps } from './general-bar/areas/area';
|
|
15
|
+
export { Authenticated } from './general-bar/authenticated/authenticated';
|
|
16
|
+
export type { AuthenticatedProps } from './general-bar/authenticated/authenticated';
|
|
17
|
+
export { AuthenticatedHeader } from './general-bar/authenticated/authenticated-header';
|
|
18
|
+
export type { AuthenticatedHeaderProps } from './general-bar/authenticated/authenticated-header';
|
|
19
|
+
export { AuthenticatedBody } from './general-bar/authenticated/authenticated-body';
|
|
20
|
+
export type { AuthenticatedBodyProps } from './general-bar/authenticated/authenticated-body';
|
|
21
|
+
export { AuthenticatedBodyLink } from './general-bar/authenticated/authenticated-body-link';
|
|
22
|
+
export type { AuthenticatedBodyLinkProps } from './general-bar/authenticated/authenticated-body-link';
|
|
23
|
+
export { AuthenticatedFooter } from './general-bar/authenticated/authenticated-footer';
|
|
24
|
+
export type { AuthenticatedFooterProps } from './general-bar/authenticated/authenticated-footer';
|
|
25
|
+
export { AuthenticatedFooterAction } from './general-bar/authenticated/authenticated-footer-action';
|
|
26
|
+
export type { AuthenticatedFooterActionProps } from './general-bar/authenticated/authenticated-footer-action';
|
|
27
|
+
export { Languages } from './general-bar/languages/languages';
|
|
28
|
+
export type { LanguagesProps } from './general-bar/languages/languages';
|
|
29
|
+
export { Language } from './general-bar/languages/language';
|
|
30
|
+
export type { LanguageProps } from './general-bar/languages/language';
|
|
31
|
+
export { Unauthenticated } from './general-bar/unauthenticated/unauthenticated';
|
|
32
|
+
export type { UnauthenticatedProps } from './general-bar/unauthenticated/unauthenticated';
|
|
33
|
+
export { UnauthenticatedLink } from './general-bar/unauthenticated/unauthenticated-link';
|
|
34
|
+
export type { UnauthenticatedLinkProps } from './general-bar/unauthenticated/unauthenticated-link';
|
|
35
|
+
export { Search } from './general-bar/search/search';
|
|
36
|
+
export type { SearchProps } from './general-bar/search/search';
|
|
37
|
+
export { DefaultSearch } from './general-bar/search/default-search';
|
|
38
|
+
export type { DefaultSearchProps } from './general-bar/search/default-search';
|
|
39
|
+
export { SearchTitle } from './general-bar/search/search-title';
|
|
40
|
+
export type { SearchTitleProps } from './general-bar/search/search-title';
|
|
41
|
+
export { SearchRelatedLinks } from './general-bar/search/search-related-links';
|
|
42
|
+
export type { SearchRelatedLinksProps } from './general-bar/search/search-related-links';
|
|
43
|
+
export { SearchRelatedLinksTitle } from './general-bar/search/search-related-links-title';
|
|
44
|
+
export type { SearchRelatedLinksTitleProps } from './general-bar/search/search-related-links-title';
|
|
45
|
+
export { SearchRelatedLink } from './general-bar/search/search-related-link';
|
|
46
|
+
export type { SearchRelatedLinkProps } from './general-bar/search/search-related-link';
|
|
47
|
+
export { CustomSearch } from './general-bar/search/custom-search';
|
|
48
|
+
export type { CustomSearchProps } from './general-bar/search/custom-search';
|
|
49
|
+
export { NavigationBar } from './navigation-bar/navigation-bar';
|
|
50
|
+
export type { NavigationBarProps } from './navigation-bar/navigation-bar';
|
|
51
|
+
export { NavigationRoot } from './navigation-bar/navigation-root';
|
|
52
|
+
export type { NavigationRootProps } from './navigation-bar/navigation-root';
|
|
53
|
+
export { NavigationLink } from './navigation-bar/navigation-link';
|
|
54
|
+
export type { NavigationLinkProps } from './navigation-bar/navigation-link';
|
|
55
|
+
export { RelatedNavigationLink } from './navigation-bar/related-navigation-link';
|
|
56
|
+
export type { RelatedNavigationLinkProps } from './navigation-bar/related-navigation-link';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AuthenticatedProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated';
|
|
2
|
+
import { AuthenticatedBodyLinkProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated-body-link';
|
|
3
|
+
import { AuthenticatedFooterActionProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated-footer-action';
|
|
4
|
+
import { AuthenticatedHeaderProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated-header';
|
|
5
|
+
import { LanguageProps } from '../../../../../components/header-v2/general-bar/languages/language';
|
|
6
|
+
import { CustomSearchProps } from '../../../../../components/header-v2/general-bar/search/custom-search';
|
|
7
|
+
import { SearchRelatedLinkProps } from '../../../../../components/header-v2/general-bar/search/search-related-link';
|
|
8
|
+
import { SearchRelatedLinksTitleProps } from '../../../../../components/header-v2/general-bar/search/search-related-links-title';
|
|
9
|
+
import { SearchTitleProps } from '../../../../../components/header-v2/general-bar/search/search-title';
|
|
10
|
+
import { UnauthenticatedProps } from '../../../../../components/header-v2/general-bar/unauthenticated/unauthenticated';
|
|
11
|
+
import { UnauthenticatedLinkProps } from '../../../../../components/header-v2/general-bar/unauthenticated/unauthenticated-link';
|
|
12
|
+
import { InternalAreaProps } from '../../../../../components/header-v2/internals/general-bar/areas/internal-area';
|
|
13
|
+
import { NavigationLinkProps } from '../../../../../components/header-v2/navigation-bar/navigation-link';
|
|
14
|
+
import { NavigationRootProps } from '../../../../../components/header-v2/navigation-bar/navigation-root';
|
|
15
|
+
import { InputSearchBarProps } from '../../../../../components/input-search-bar';
|
|
16
|
+
import { ReactElement, ReactNode } from 'react';
|
|
17
|
+
export interface HeaderDataContextProps {
|
|
18
|
+
getGeneralBarAriaLabel: () => string;
|
|
19
|
+
getInstitutionalPhrase: () => ReactNode;
|
|
20
|
+
getLogoImage: () => ReactNode;
|
|
21
|
+
hasVisibleAreas: () => boolean;
|
|
22
|
+
getAreasAriaLabel: () => string;
|
|
23
|
+
getAreas: () => InternalAreaProps[];
|
|
24
|
+
getActiveArea: () => InternalAreaProps | undefined;
|
|
25
|
+
onAreaChange?: (area: string) => void;
|
|
26
|
+
hasLanguages: () => boolean;
|
|
27
|
+
getLanguagesAriaLabel: () => string;
|
|
28
|
+
getCheckedLanguage: () => LanguageProps[];
|
|
29
|
+
getLanguages: () => LanguageProps[];
|
|
30
|
+
onLanguageChange?: (lang: string) => void;
|
|
31
|
+
getAuthenticated: () => AuthenticatedProps | null;
|
|
32
|
+
getAuthenticatedHeader: () => AuthenticatedHeaderProps | null;
|
|
33
|
+
getAuthenticatedBodyLinks: () => AuthenticatedBodyLinkProps[];
|
|
34
|
+
getAuthenticatedFooterActions: () => AuthenticatedFooterActionProps[];
|
|
35
|
+
getUnauthenticated: () => UnauthenticatedProps | null;
|
|
36
|
+
getUnauthenticatedLinks: () => UnauthenticatedLinkProps[];
|
|
37
|
+
hasSearch: () => boolean;
|
|
38
|
+
getSearchLabel: () => string;
|
|
39
|
+
hasDefaultSearch: () => boolean;
|
|
40
|
+
getDefaultSearchTitle: () => SearchTitleProps | null;
|
|
41
|
+
getDefaultSearchInputBar: () => InputSearchBarProps | null;
|
|
42
|
+
getDefaultSearchRelatedLinksTitle: () => SearchRelatedLinksTitleProps | null;
|
|
43
|
+
getDefaultSearchRelatedLinks: () => SearchRelatedLinkProps[];
|
|
44
|
+
hasCustomSearch: () => boolean;
|
|
45
|
+
getCustomSearch: () => CustomSearchProps | null;
|
|
46
|
+
countNavigationItems: () => number;
|
|
47
|
+
maxNavigationItems: number;
|
|
48
|
+
getNavigationId: () => string;
|
|
49
|
+
getNavigationAriaLabel: () => string;
|
|
50
|
+
getNavigationModalAriaLabel: () => string;
|
|
51
|
+
getNavigationMenuLabel: () => string;
|
|
52
|
+
getNavigationCloseLabel: () => string;
|
|
53
|
+
getNavigationBackToRootLabel: () => string;
|
|
54
|
+
getNavigationItems: () => ReactElement<NavigationRootProps | NavigationLinkProps>[];
|
|
55
|
+
darkMode: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare const HeaderDataContext: import("react").Context<HeaderDataContextProps>;
|
|
58
|
+
export declare const useHeaderDataContext: () => HeaderDataContextProps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
|
|
2
|
+
import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
|
|
3
|
+
import { InternalAreaProps } from '../../../../../../components/header-v2/internals/general-bar/areas/internal-area';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
5
|
+
export declare const hasVisibleAreasProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => boolean;
|
|
6
|
+
export declare const getParseAreasAriaLabel: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => string;
|
|
7
|
+
export declare const getParsedOnAreaChange: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => ((activeArea: string) => void) | null | undefined;
|
|
8
|
+
export declare const getParsedAvailableAreaProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => InternalAreaProps[];
|
|
9
|
+
export declare const getParsedActiveAreaProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => InternalAreaProps | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
|
|
2
|
+
import { AuthenticatedProps } from '../../../../../../components/header-v2/general-bar/authenticated/authenticated';
|
|
3
|
+
import { AuthenticatedBodyLinkProps } from '../../../../../../components/header-v2/general-bar/authenticated/authenticated-body-link';
|
|
4
|
+
import { AuthenticatedFooterActionProps } from '../../../../../../components/header-v2/general-bar/authenticated/authenticated-footer-action';
|
|
5
|
+
import { AuthenticatedHeaderProps } from '../../../../../../components/header-v2/general-bar/authenticated/authenticated-header';
|
|
6
|
+
import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
|
|
7
|
+
import { ReactElement } from 'react';
|
|
8
|
+
export declare const getParsedAuthenticatedProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => AuthenticatedProps | null;
|
|
9
|
+
export declare const getParsedAuthenticatedHeaderProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => AuthenticatedHeaderProps | null;
|
|
10
|
+
export declare const getParsedAuthenticatedBodyLinkProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => AuthenticatedBodyLinkProps[];
|
|
11
|
+
export declare const getParsedAuthenticatedFooterActionProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => AuthenticatedFooterActionProps[];
|