@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.
Files changed (119) hide show
  1. package/artifacts/dist/index.css +1 -1
  2. package/artifacts/dist/index.mjs +7197 -5695
  3. package/artifacts/dist/index.mjs.map +1 -1
  4. package/artifacts/dist/index.umd.js +2 -2
  5. package/artifacts/dist/index.umd.js.map +1 -1
  6. package/artifacts/dist/types/components/avatar/avatar.d.ts +2 -2
  7. package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +20 -8
  8. package/artifacts/dist/types/components/cards/card-links/index.d.ts +1 -1
  9. package/artifacts/dist/types/components/cards/card-search-result/card-search-result.d.ts +6 -0
  10. package/artifacts/dist/types/components/dialog/dialog.d.ts +13 -1
  11. package/artifacts/dist/types/components/drawer/drawer.d.ts +11 -3
  12. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-context.d.ts +0 -1
  13. package/artifacts/dist/types/components/header/header.d.ts +7 -2
  14. package/artifacts/dist/types/components/header-v2/brand/brand.d.ts +7 -0
  15. package/artifacts/dist/types/components/header-v2/brand/institutional.d.ts +4 -0
  16. package/artifacts/dist/types/components/header-v2/brand/logo.d.ts +4 -0
  17. package/artifacts/dist/types/components/header-v2/general-bar/areas/area.d.ts +9 -0
  18. package/artifacts/dist/types/components/header-v2/general-bar/areas/areas.d.ts +9 -0
  19. package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-body-link.d.ts +30 -0
  20. package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-body.d.ts +6 -0
  21. package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-footer-action.d.ts +5 -0
  22. package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-footer.d.ts +6 -0
  23. package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-header.d.ts +5 -0
  24. package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated.d.ts +9 -0
  25. package/artifacts/dist/types/components/header-v2/general-bar/general-bar.d.ts +11 -0
  26. package/artifacts/dist/types/components/header-v2/general-bar/languages/language.d.ts +8 -0
  27. package/artifacts/dist/types/components/header-v2/general-bar/languages/languages.d.ts +8 -0
  28. package/artifacts/dist/types/components/header-v2/general-bar/search/custom-search.d.ts +4 -0
  29. package/artifacts/dist/types/components/header-v2/general-bar/search/default-search.d.ts +8 -0
  30. package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-link.d.ts +30 -0
  31. package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-links-title.d.ts +4 -0
  32. package/artifacts/dist/types/components/header-v2/general-bar/search/search-related-links.d.ts +7 -0
  33. package/artifacts/dist/types/components/header-v2/general-bar/search/search-title.d.ts +4 -0
  34. package/artifacts/dist/types/components/header-v2/general-bar/search/search.d.ts +8 -0
  35. package/artifacts/dist/types/components/header-v2/general-bar/unauthenticated/unauthenticated-link.d.ts +33 -0
  36. package/artifacts/dist/types/components/header-v2/general-bar/unauthenticated/unauthenticated.d.ts +8 -0
  37. package/artifacts/dist/types/components/header-v2/header-v2.d.ts +30 -0
  38. package/artifacts/dist/types/components/header-v2/index.d.ts +56 -0
  39. package/artifacts/dist/types/components/header-v2/internals/context/data-context/header-data-context.d.ts +58 -0
  40. package/artifacts/dist/types/components/header-v2/internals/context/data-context/header-data-controller.d.ts +3 -0
  41. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/areas-utils.d.ts +9 -0
  42. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/authenticated-utils.d.ts +11 -0
  43. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/brand-utils.d.ts +5 -0
  44. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/general-utils.d.ts +4 -0
  45. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/languages-utils.d.ts +11 -0
  46. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/navigation-utils.d.ts +15 -0
  47. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/search-utils.d.ts +17 -0
  48. package/artifacts/dist/types/components/header-v2/internals/context/data-context/utils/unauthenticated-utils.d.ts +7 -0
  49. package/artifacts/dist/types/components/header-v2/internals/context/external-context/header-external-controller.d.ts +4 -0
  50. package/artifacts/dist/types/components/header-v2/internals/context/menu-context/header-menu-context.d.ts +20 -0
  51. package/artifacts/dist/types/components/header-v2/internals/context/menu-context/header-menu-controller.d.ts +2 -0
  52. package/artifacts/dist/types/components/header-v2/internals/context/menu-context/menu-type.enum.d.ts +15 -0
  53. package/artifacts/dist/types/components/header-v2/internals/general-bar/areas/internal-area.d.ts +6 -0
  54. package/artifacts/dist/types/components/header-v2/internals/general-bar/areas/internal-areas.d.ts +5 -0
  55. package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/Internal-authenticated-drawer.d.ts +3 -0
  56. package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated-drawer-body.d.ts +3 -0
  57. package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated-drawer-footer.d.ts +3 -0
  58. package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated-drawer-header.d.ts +3 -0
  59. package/artifacts/dist/types/components/header-v2/internals/general-bar/authenticated/internal-authenticated.d.ts +10 -0
  60. package/artifacts/dist/types/components/header-v2/internals/general-bar/internal-general-bar.d.ts +3 -0
  61. package/artifacts/dist/types/components/header-v2/internals/general-bar/languages/internal-language.d.ts +8 -0
  62. package/artifacts/dist/types/components/header-v2/internals/general-bar/languages/internal-languages-layout.d.ts +4 -0
  63. package/artifacts/dist/types/components/header-v2/internals/general-bar/languages/internal-languages.d.ts +3 -0
  64. package/artifacts/dist/types/components/header-v2/internals/general-bar/search/internal-custom-search-layout.d.ts +4 -0
  65. package/artifacts/dist/types/components/header-v2/internals/general-bar/search/internal-search-layout.d.ts +4 -0
  66. package/artifacts/dist/types/components/header-v2/internals/general-bar/search/internal-search.d.ts +5 -0
  67. package/artifacts/dist/types/components/header-v2/internals/general-bar/unauthenticated/internal-unauthenticated-layout.d.ts +4 -0
  68. package/artifacts/dist/types/components/header-v2/internals/general-bar/unauthenticated/internal-unauthenticated.d.ts +3 -0
  69. package/artifacts/dist/types/components/header-v2/internals/internal-header.d.ts +3 -0
  70. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/internal-navigation-bar.d.ts +3 -0
  71. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/logo/internal-logo.d.ts +5 -0
  72. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger-layout.d.ts +4 -0
  73. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel.d.ts +25 -0
  74. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger.d.ts +3 -0
  75. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-list/internal-navigation-link-layout.d.ts +12 -0
  76. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-list/internal-navigation-list.d.ts +3 -0
  77. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +8 -0
  78. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-modal-navbar.d.ts +6 -0
  79. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-navigation-modal-layout.d.ts +4 -0
  80. package/artifacts/dist/types/components/header-v2/internals/navigation-bar/navigation-modal/internal-navigation-modal.d.ts +2 -0
  81. package/artifacts/dist/types/components/header-v2/internals/shared/custom-header-link/custom-header-link.d.ts +14 -0
  82. package/artifacts/dist/types/components/header-v2/internals/shared/custom-modal/custom-modal-context.d.ts +24 -0
  83. package/artifacts/dist/types/components/header-v2/internals/shared/custom-modal/custom-modal-dialog.d.ts +3 -0
  84. package/artifacts/dist/types/components/header-v2/internals/shared/custom-modal/custom-modal-provider.d.ts +9 -0
  85. package/artifacts/dist/types/components/header-v2/internals/shared/hooks/use-scrolling.d.ts +4 -0
  86. package/artifacts/dist/types/components/header-v2/internals/shared/institutional/internal-institutional.d.ts +5 -0
  87. package/artifacts/dist/types/components/header-v2/internals/shared/modal-menu/modal-menu.d.ts +29 -0
  88. package/artifacts/dist/types/components/header-v2/internals/shared/panel-menu/layout.interface.d.ts +3 -0
  89. package/artifacts/dist/types/components/header-v2/internals/shared/panel-menu/panel-menu.d.ts +40 -0
  90. package/artifacts/dist/types/components/header-v2/navigation-bar/navigation-bar.d.ts +13 -0
  91. package/artifacts/dist/types/components/header-v2/navigation-bar/navigation-link.d.ts +30 -0
  92. package/artifacts/dist/types/components/header-v2/navigation-bar/navigation-root.d.ts +10 -0
  93. package/artifacts/dist/types/components/header-v2/navigation-bar/related-navigation-link.d.ts +5 -0
  94. package/artifacts/dist/types/components/index.d.ts +2 -0
  95. package/artifacts/dist/types/components/input-date/contexts/date-picker-state.context.d.ts +2 -0
  96. package/artifacts/dist/types/components/input-date/contexts/use-date-picker-state-context.d.ts +14 -13
  97. package/artifacts/dist/types/components/input-date/date-picker-dropdown.d.ts +1 -0
  98. package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -0
  99. package/artifacts/dist/types/components/input-date/utils/get-closest-available-day.d.ts +11 -0
  100. package/artifacts/dist/types/components/input-date/utils/is-day-on-array.d.ts +1 -0
  101. package/artifacts/dist/types/components/input-date/utils/parse-date.d.ts +3 -0
  102. package/artifacts/dist/types/components/link-wrapper/link-wrapper.d.ts +2 -3
  103. package/artifacts/dist/types/components/loader-dialog/loader-dialog-context.d.ts +0 -1
  104. package/artifacts/dist/types/components/menu-item/menu-item.d.ts +13 -2
  105. package/artifacts/dist/types/components/quiz/index.d.ts +3 -0
  106. package/artifacts/dist/types/components/quiz/quiz-item-summary/index.d.ts +2 -0
  107. package/artifacts/dist/types/components/quiz/quiz-item-summary/quiz-item-summary.d.ts +18 -0
  108. package/artifacts/dist/types/components/quiz/quiz-option/index.d.ts +2 -0
  109. package/artifacts/dist/types/components/quiz/quiz-option/quiz-option.d.ts +12 -0
  110. package/artifacts/dist/types/components/quiz/quiz-options/index.d.ts +2 -0
  111. package/artifacts/dist/types/components/quiz/quiz-options/quiz-options.d.ts +9 -0
  112. package/artifacts/dist/types/components/ratings/index.d.ts +1 -0
  113. package/artifacts/dist/types/components/ratings/rating-icons/index.d.ts +2 -0
  114. package/artifacts/dist/types/components/ratings/rating-icons/rating-icons.d.ts +54 -0
  115. package/artifacts/dist/types/components/ratings/rating-stars/rating-stars.d.ts +9 -0
  116. package/artifacts/dist/types/components/toasts/toast-context.d.ts +0 -1
  117. package/artifacts/dist/types/utils/debounce.d.ts +0 -1
  118. package/artifacts/dist/types/utils/expand-ref.d.ts +1 -1
  119. package/package.json +16 -16
@@ -0,0 +1,5 @@
1
+ import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
2
+ import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
3
+ import { ReactElement, ReactNode } from 'react';
4
+ export declare const getParsedInstitutionalPhrase: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => ReactNode;
5
+ export declare const getParsedLogo: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => ReactNode;
@@ -0,0 +1,4 @@
1
+ import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
2
+ import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
3
+ import { ReactElement } from 'react';
4
+ export declare const getParsedGeneralBarAriaLabel: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => string;
@@ -0,0 +1,11 @@
1
+ import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
2
+ import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
3
+ import { LanguageProps } from '../../../../../../components/header-v2/general-bar/languages/language';
4
+ import { LanguagesProps } from '../../../../../../components/header-v2/general-bar/languages/languages';
5
+ import { ReactElement } from 'react';
6
+ export declare const getLanguagesProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => ReactElement<LanguagesProps> | null;
7
+ export declare const hasLanguagesProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => boolean;
8
+ export declare const getParsedLanguagesAriaLabel: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => string;
9
+ export declare const getParsedOnLanguageChange: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => ((activeLanguage: string) => void) | null | undefined;
10
+ export declare const getParsedAvailableLanguageProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => LanguageProps[];
11
+ export declare const getParsedCheckedLanguageProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => LanguageProps[];
@@ -0,0 +1,15 @@
1
+ import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
2
+ import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
3
+ import { NavigationBarProps } from '../../../../../../components/header-v2/navigation-bar/navigation-bar';
4
+ import { NavigationLinkProps } from '../../../../../../components/header-v2/navigation-bar/navigation-link';
5
+ import { NavigationRootProps } from '../../../../../../components/header-v2/navigation-bar/navigation-root';
6
+ import { ReactElement } from 'react';
7
+ export declare const getParsedNavigationBarProps: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => NavigationBarProps | null;
8
+ export declare const getParsedNavigationBarId: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => string;
9
+ export declare const countParsedNavigationItems: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => number;
10
+ export declare const getParsedNavigationAriaLabel: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => string;
11
+ export declare const getParsedNavigationModalAriaLabel: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => string;
12
+ export declare const getParsedNavigationMenuLabel: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => string;
13
+ export declare const getParsedNavigationCloseLabel: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => string;
14
+ export declare const getParsedNavigationBackToRootLabel: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => string;
15
+ export declare const getParsedNavigationItems: (children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[]) => ReactElement<NavigationRootProps | NavigationLinkProps>[];
@@ -0,0 +1,17 @@
1
+ import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
2
+ import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
3
+ import { CustomSearchProps } from '../../../../../../components/header-v2/general-bar/search/custom-search';
4
+ import { SearchRelatedLinkProps } from '../../../../../../components/header-v2/general-bar/search/search-related-link';
5
+ import { SearchRelatedLinksTitleProps } from '../../../../../../components/header-v2/general-bar/search/search-related-links-title';
6
+ import { SearchTitleProps } from '../../../../../../components/header-v2/general-bar/search/search-title';
7
+ import { InputSearchBarProps } from '../../../../../../components/input-search-bar';
8
+ import { ReactElement } from 'react';
9
+ export declare const hasSearchProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => boolean;
10
+ export declare const getSearchButtonLabel: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => string;
11
+ export declare const hasDefaultSearchProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => boolean;
12
+ export declare const getParsedDefaultSearchTitle: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => SearchTitleProps | null;
13
+ export declare const getParsedDefaultSearchInputBar: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => InputSearchBarProps | null;
14
+ export declare const getParsedDefaultSearchRelatedLinksTitle: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => SearchRelatedLinksTitleProps | null;
15
+ export declare const getParsedDefaultSearchRelatedLinks: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => SearchRelatedLinkProps[];
16
+ export declare const hasCustomSearchProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => boolean;
17
+ export declare const getParsedCustomSearchProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => CustomSearchProps | null;
@@ -0,0 +1,7 @@
1
+ import { BrandProps } from '../../../../../../components/header-v2/brand/brand';
2
+ import { GeneralBarProps } from '../../../../../../components/header-v2/general-bar/general-bar';
3
+ import { UnauthenticatedProps } from '../../../../../../components/header-v2/general-bar/unauthenticated/unauthenticated';
4
+ import { UnauthenticatedLinkProps } from '../../../../../../components/header-v2/general-bar/unauthenticated/unauthenticated-link';
5
+ import { ReactElement } from 'react';
6
+ export declare const getParsedUnauthenticatedProps: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => UnauthenticatedProps | null;
7
+ export declare const getParsedUnauthenticatedLinks: (children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[]) => UnauthenticatedLinkProps[];
@@ -0,0 +1,4 @@
1
+ import { HeaderV2Element } from '../../../../../components/header-v2/header-v2';
2
+ import { HeaderMenuContextProps } from '../../../../../components/header-v2/internals/context/menu-context/header-menu-context';
3
+ import { ForwardedRef } from 'react';
4
+ export declare const useHeaderExternalController: (ref: ForwardedRef<HeaderV2Element>, headerMenuContext: HeaderMenuContextProps) => void;
@@ -0,0 +1,20 @@
1
+ import { DrawerElement } from '../../../../../components/drawer';
2
+ import { InternalNavigationBurgerPanelElement } from '../../../../../components/header-v2/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel';
3
+ import { ModalMenuElement } from '../../../../../components/header-v2/internals/shared/modal-menu/modal-menu';
4
+ import { PanelMenuElement } from '../../../../../components/header-v2/internals/shared/panel-menu/panel-menu';
5
+ import { RefObject } from 'react';
6
+ import { MenuTypeEnum } from './menu-type.enum';
7
+ export interface HeaderMenuContextProps {
8
+ menuRefMap: Map<MenuTypeEnum | string, RefObject<PanelMenuElement | HTMLDivElement | DrawerElement | ModalMenuElement | InternalNavigationBurgerPanelElement>>;
9
+ collapseAllMenus: () => void;
10
+ collapseMenu: (id: MenuTypeEnum | string, focusController: boolean) => void;
11
+ expandMenu: (id: MenuTypeEnum | string) => void;
12
+ focusMenu: (id: MenuTypeEnum | string) => void;
13
+ hasExpandedMenu: () => boolean;
14
+ backSubmenu: (id: MenuTypeEnum | string) => void;
15
+ openSubmenu: (id: MenuTypeEnum | string) => void;
16
+ hasOpenSubmenu: () => boolean;
17
+ isScrolling: () => boolean;
18
+ }
19
+ export declare const HeaderMenuContext: import("react").Context<HeaderMenuContextProps>;
20
+ export declare const useHeaderMenuContext: () => HeaderMenuContextProps;
@@ -0,0 +1,2 @@
1
+ import { HeaderMenuContextProps } from './header-menu-context';
2
+ export declare const useHeaderMenuController: () => HeaderMenuContextProps;
@@ -0,0 +1,15 @@
1
+ export declare enum MenuTypeEnum {
2
+ Header = "Header",
3
+ Areas = "Areas",
4
+ Search = "Search",
5
+ Languages = "Languages",
6
+ Authenticated = "Authenticated",
7
+ Drawer = "Drawer",
8
+ Unauthenticated = "Unauthenticated",
9
+ Link = "Link",
10
+ RootLink = "RootLink",
11
+ MenuBurger = "MenuBurger",
12
+ Modal = "Modal",
13
+ NavigationList = "NavigationList",
14
+ NavigationBurgerLayout = "NavigationBurgerLayout"
15
+ }
@@ -0,0 +1,6 @@
1
+ import { AreaProps } from '../../../../../components/header-v2/general-bar/areas/area';
2
+ import { FC } from 'react';
3
+ import './internal-area.scss';
4
+ export interface InternalAreaProps extends AreaProps {
5
+ }
6
+ export declare const InternalArea: FC<InternalAreaProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithRef, FC } from 'react';
2
+ import './internal-areas.scss';
3
+ export interface InnerComponentProps extends ComponentPropsWithRef<'div'> {
4
+ }
5
+ export declare const InternalAreas: FC<InnerComponentProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './Internal-authenticated-drawer.scss';
3
+ export declare const InternalAuthenticatedDrawer: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-authenticated-drawer-body.scss';
3
+ export declare const InternalAuthenticatedDrawerBody: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-authenticated-drawer-footer.scss';
3
+ export declare const InternalAuthenticatedDrawerFooter: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-authenticated-drawer-header.scss';
3
+ export declare const InternalAuthenticatedDrawerHeader: FC;
@@ -0,0 +1,10 @@
1
+ import { AuthenticatedBodyProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated-body';
2
+ import { AuthenticatedFooterProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated-footer';
3
+ import { AuthenticatedHeaderProps } from '../../../../../components/header-v2/general-bar/authenticated/authenticated-header';
4
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
5
+ import './internal-authenticated.scss';
6
+ interface InternalAuthenticatedProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
7
+ children?: null | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps> | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps>[];
8
+ }
9
+ export declare const InternalAuthenticated: FC<InternalAuthenticatedProps>;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-general-bar.scss';
3
+ export declare const InternalGeneralBar: FC;
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import './internal-language.scss';
3
+ export interface InternalLanguageProps extends ComponentPropsWithoutRef<'button'> {
4
+ icon?: string;
5
+ checked: boolean;
6
+ label: string;
7
+ }
8
+ export declare const InternalLanguage: FC<InternalLanguageProps>;
@@ -0,0 +1,4 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { FC } from 'react';
3
+ import './internal-languages-layout.scss';
4
+ export declare const InternalLanguagesLayout: FC<LayoutProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-languages.scss';
3
+ export declare const InternalLanguages: FC;
@@ -0,0 +1,4 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { FC } from 'react';
3
+ import './internal-custom-search-layout.scss';
4
+ export declare const InternalCustomSearchLayout: FC<LayoutProps>;
@@ -0,0 +1,4 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { FC } from 'react';
3
+ import './internal-search-layout.scss';
4
+ export declare const InternalSearchLayout: FC<LayoutProps>;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import './internal-search.scss';
3
+ export interface InternalSearchProps extends ComponentPropsWithoutRef<'div'> {
4
+ }
5
+ export declare const InternalSearch: FC<InternalSearchProps>;
@@ -0,0 +1,4 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { FC } from 'react';
3
+ import './internal-unauthenticated-layout.scss';
4
+ export declare const InternalUnauthenticatedLayout: FC<LayoutProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-unauthenticated.scss';
3
+ export declare const InternalUnauthenticated: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-header.scss';
3
+ export declare const InternalHeader: FC;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-navigation-bar.scss';
3
+ export declare const InternalNavigationBar: FC;
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import './internal-logo.scss';
3
+ export interface InternalLogoProps extends ComponentPropsWithoutRef<'div'> {
4
+ }
5
+ export declare const InternalLogo: FC<InternalLogoProps>;
@@ -0,0 +1,4 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { FC } from 'react';
3
+ import './internal-navigation-burger-layout.scss';
4
+ export declare const InternalNavigationBurgerLayout: FC<LayoutProps>;
@@ -0,0 +1,25 @@
1
+ import { ButtonProps } from '../../../../../components/button';
2
+ import React, { ComponentPropsWithoutRef } from 'react';
3
+ import './internal-navigation-burger-panel.scss';
4
+ export interface InternalNavigationBurgerPanelElement extends HTMLDivElement {
5
+ /**
6
+ * Open the submenu.
7
+ */
8
+ open: () => void;
9
+ /**
10
+ * Close the submenu.
11
+ */
12
+ close: () => void;
13
+ /**
14
+ * Current value of the opened state of the burger links layout.
15
+ */
16
+ isOpened: boolean;
17
+ }
18
+ export interface InternalNavigationBurgerPanelProps extends ComponentPropsWithoutRef<'div'> {
19
+ id: string;
20
+ title: string;
21
+ linksAriaLabel: string;
22
+ relatedLinksAriaLabel: string;
23
+ buttonProps?: ButtonProps;
24
+ }
25
+ export declare const InternalNavigationBurgerPanel: React.ForwardRefExoticComponent<InternalNavigationBurgerPanelProps & React.RefAttributes<InternalNavigationBurgerPanelElement>>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-navigation-burger.scss';
3
+ export declare const InternalNavigationBurger: FC;
@@ -0,0 +1,12 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { NavigationLinkProps } from '../../../../../components/header-v2/navigation-bar/navigation-link';
3
+ import { RelatedNavigationLinkProps } from '../../../../../components/header-v2/navigation-bar/related-navigation-link';
4
+ import { FC, ReactElement, ReactNode } from 'react';
5
+ import './internal-navigation-link-layout.scss';
6
+ export interface InternalNavigationLinksLayoutProps extends Omit<LayoutProps, 'title'> {
7
+ title: ReactNode;
8
+ linksAriaLabel?: string;
9
+ relatedLinksAriaLabel?: string;
10
+ children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps>[];
11
+ }
12
+ export declare const InternalNavigationLinksLayout: FC<InternalNavigationLinksLayoutProps>;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import './internal-navigation-list.scss';
3
+ export declare const InternalNavigationList: FC;
@@ -0,0 +1,8 @@
1
+ import { NavigationLinkProps } from '../../../../../components/header-v2/navigation-bar/navigation-link';
2
+ import { NavigationRootProps } from '../../../../../components/header-v2/navigation-bar/navigation-root';
3
+ import { FC, ReactElement } from 'react';
4
+ import './internal-modal-content.scss';
5
+ export interface InternalModalContentProps {
6
+ item: ReactElement<NavigationRootProps | NavigationLinkProps>;
7
+ }
8
+ export declare const InternalModalContent: FC<InternalModalContentProps>;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import './internal-modal-navbar.scss';
3
+ export interface InternalModalNavbarProps {
4
+ onActiveChange: (activeIndex: number) => void;
5
+ }
6
+ export declare const InternalModalNavbar: FC<InternalModalNavbarProps>;
@@ -0,0 +1,4 @@
1
+ import { LayoutProps } from '../../../../../components/header-v2/internals/shared/panel-menu/layout.interface';
2
+ import { FC } from 'react';
3
+ import './internal-navigation-modal-layout.scss';
4
+ export declare const InternalNavigationModalLayout: FC<LayoutProps>;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const InternalNavigationModal: FC;
@@ -0,0 +1,14 @@
1
+ import { LinkWrapperProps } from '../../../../../components/link-wrapper';
2
+ import { BooleanProp } from '../../../../../models/boolean-type';
3
+ import React, { ForwardRefRenderFunction } from 'react';
4
+ import './custom-header-link.scss';
5
+ export interface CustomHeaderLinkProps extends LinkWrapperProps {
6
+ hasIcon?: BooleanProp;
7
+ iconOnly?: BooleanProp;
8
+ leadingIcon?: string;
9
+ leadingIconHover?: string;
10
+ trailingIcon?: string;
11
+ trailingIconHover?: string;
12
+ }
13
+ export declare const InnerCustomHeaderLink: ForwardRefRenderFunction<HTMLSpanElement, CustomHeaderLinkProps>;
14
+ export declare const CustomHeaderLink: React.ForwardRefExoticComponent<Omit<CustomHeaderLinkProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,24 @@
1
+ import { DialogElement } from '../../../../../components/dialog';
2
+ import { ReactNode } from 'react';
3
+ import { CustomModalConfiguration } from './custom-modal-provider';
4
+ export interface CustomModalContextProps {
5
+ /**
6
+ * The visible dialog element. If not visible the value is null.
7
+ */
8
+ current: DialogElement | null;
9
+ /**
10
+ * Tells if a modal is visible or not.
11
+ */
12
+ visibility?: boolean;
13
+ /**
14
+ * Shows a new modal with the configurations provided.
15
+ */
16
+ show: (children: ReactNode, config: CustomModalConfiguration) => void;
17
+ /**
18
+ * Hides the visible modal.
19
+ */
20
+ hide: () => void;
21
+ }
22
+ declare const CustomModalContext: import("react").Context<CustomModalContextProps>;
23
+ declare const useCustomModalContext: () => CustomModalContextProps;
24
+ export { CustomModalContext, useCustomModalContext };
@@ -0,0 +1,3 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import './custom-modal-dialog.scss';
3
+ export declare const CustomModalDialog: FC<ComponentPropsWithoutRef<'div'>>;
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ export interface CustomModalConfiguration {
3
+ closeButtonLabel: string;
4
+ ariaLabel: string;
5
+ onShow?: () => void;
6
+ onHide?: () => void;
7
+ }
8
+ declare const CustomModalProvider: FC<ComponentPropsWithoutRef<'div'>>;
9
+ export { CustomModalProvider };
@@ -0,0 +1,4 @@
1
+ declare const useScrolling: () => {
2
+ scrolling: boolean;
3
+ };
4
+ export { useScrolling };
@@ -0,0 +1,5 @@
1
+ import { ComponentPropsWithoutRef, FC } from 'react';
2
+ import './internal-institutional.scss';
3
+ export interface InternalInstitutionalProps extends ComponentPropsWithoutRef<'div'> {
4
+ }
5
+ export declare const InternalInstitutional: FC<InternalInstitutionalProps>;
@@ -0,0 +1,29 @@
1
+ import { ButtonProps } from '../../../../../components/button';
2
+ import React, { ReactElement, ReactNode } from 'react';
3
+ import './modal-menu.scss';
4
+ export interface ModalMenuElement extends HTMLDivElement {
5
+ /**
6
+ * Open the modal
7
+ */
8
+ open: () => void;
9
+ /**
10
+ * close the modal
11
+ */
12
+ close: () => void;
13
+ /**
14
+ * Focus the modal menu control.
15
+ */
16
+ focus: () => void;
17
+ /**
18
+ * Current value of the expanded state of the panel menu.
19
+ */
20
+ isOpen: boolean;
21
+ }
22
+ export interface ModalMenuProps extends ButtonProps {
23
+ darkMode?: boolean;
24
+ modalAriaLabel?: string;
25
+ openLabel?: ReactNode;
26
+ closeLabel?: ReactNode;
27
+ children: ReactElement<HTMLDivElement> | ReactElement<HTMLDivElement>[];
28
+ }
29
+ export declare const ModalMenu: React.ForwardRefExoticComponent<Omit<ModalMenuProps, "ref"> & React.RefAttributes<ModalMenuElement>>;
@@ -0,0 +1,3 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export interface LayoutProps extends ComponentPropsWithoutRef<'div'> {
3
+ }
@@ -0,0 +1,40 @@
1
+ import { ButtonProps } from '../../../../../components/button';
2
+ import React, { ComponentPropsWithoutRef, ReactElement } from 'react';
3
+ import { LayoutProps } from './layout.interface';
4
+ import './panel-menu.scss';
5
+ export interface PanelMenuElement extends HTMLDivElement {
6
+ /**
7
+ * Expand the panel menu.
8
+ */
9
+ expand: () => void;
10
+ /**
11
+ * Collapse the panel menu.
12
+ */
13
+ collapse: (isToggling?: boolean) => void;
14
+ /**
15
+ * Focus the panel menu control.
16
+ */
17
+ focus: () => void;
18
+ /**
19
+ * Current value of the expanded state of the panel menu.
20
+ */
21
+ isExpanded: boolean;
22
+ }
23
+ export interface PanelMenuProps extends ComponentPropsWithoutRef<'div'> {
24
+ darkMode?: boolean;
25
+ children: ReactElement<ButtonProps | LayoutProps> | ReactElement<ButtonProps | LayoutProps>[];
26
+ iconsCollapsed?: {
27
+ leadingIcon?: string;
28
+ leadingIconHover?: string;
29
+ trailingIcon?: string;
30
+ trailingIconHover?: string;
31
+ };
32
+ iconsExpanded?: {
33
+ leadingIcon?: string;
34
+ leadingIconHover?: string;
35
+ trailingIcon?: string;
36
+ trailingIconHover?: string;
37
+ };
38
+ isDrawerPanel?: boolean;
39
+ }
40
+ export declare const PanelMenu: React.ForwardRefExoticComponent<PanelMenuProps & React.RefAttributes<PanelMenuElement>>;
@@ -0,0 +1,13 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
+ import { NavigationRootProps } from './navigation-root';
3
+ import { NavigationLinkProps } from './navigation-link';
4
+ export interface NavigationBarProps extends ComponentPropsWithoutRef<'div'> {
5
+ id?: string;
6
+ label: string;
7
+ openMenuLabel: string;
8
+ modalAriaLabel: string;
9
+ modalCloseLabel: string;
10
+ backToRootLabel: string;
11
+ children: ReactElement<NavigationRootProps | NavigationLinkProps> | ReactElement<NavigationRootProps | NavigationLinkProps>[];
12
+ }
13
+ export declare const NavigationBar: FC<NavigationBarProps>;
@@ -0,0 +1,30 @@
1
+ import { LinkWrapperProps } from '../../../components/link-wrapper';
2
+ import { BooleanProp } from '../../../models';
3
+ import { FC } from 'react';
4
+ export interface NavigationLinkProps 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 NavigationLink: FC<NavigationLinkProps>;
@@ -0,0 +1,10 @@
1
+ import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
+ import { RelatedNavigationLinkProps } from './related-navigation-link';
3
+ import { NavigationLinkProps } from './navigation-link';
4
+ export interface NavigationRootProps extends ComponentPropsWithoutRef<'div'> {
5
+ label: string;
6
+ linksAriaLabel?: string;
7
+ relatedLinksAriaLabel?: string;
8
+ children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps>[];
9
+ }
10
+ export declare const NavigationRoot: FC<NavigationRootProps>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { NavigationLinkProps } from './navigation-link';
3
+ export interface RelatedNavigationLinkProps extends NavigationLinkProps {
4
+ }
5
+ export declare const RelatedNavigationLink: FC<RelatedNavigationLinkProps>;
@@ -17,6 +17,7 @@ export * from './feedback';
17
17
  export * from './footer';
18
18
  export * from './glossary-letters';
19
19
  export * from './header';
20
+ export * from './header-v2';
20
21
  export * from './icon';
21
22
  export * from './input-date';
22
23
  export * from './input-email-bar';
@@ -38,6 +39,7 @@ export * from './pill';
38
39
  export * from './popup-dialog';
39
40
  export * from './progress-bar';
40
41
  export * from './progress-bar-group';
42
+ export * from './quiz';
41
43
  export * from './radio';
42
44
  export * from './radio-button-group';
43
45
  export * from './ratings';
@@ -5,6 +5,8 @@ export type DatePickerStateContextType = {
5
5
  setFocusedDate: Dispatch<SetStateAction<Date>>;
6
6
  selectedDate: Date;
7
7
  setSelectedDate: Dispatch<SetStateAction<Date>>;
8
+ disabledDates: Array<Date | string> | [];
9
+ setDisabledDates: Dispatch<SetStateAction<Array<Date | string> | []>>;
8
10
  cancel: () => void;
9
11
  labels: {
10
12
  previousYearAriaLabel: string;