@ama-pt/agora-design-system 2.2.9 → 3.0.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 (116) hide show
  1. package/artifacts/dist/index.mjs +5833 -5712
  2. package/artifacts/dist/index.mjs.map +1 -1
  3. package/artifacts/dist/index.umd.js +2 -2
  4. package/artifacts/dist/index.umd.js.map +1 -1
  5. package/artifacts/dist/style.css +1 -1
  6. package/artifacts/dist/types/components/accordion/accordion.d.ts +4 -12
  7. package/artifacts/dist/types/components/accordion-group/accordion-group.d.ts +4 -4
  8. package/artifacts/dist/types/components/anchor/anchor.d.ts +4 -4
  9. package/artifacts/dist/types/components/avatar/avatar.d.ts +4 -3
  10. package/artifacts/dist/types/components/avatar/interactive-avatar.d.ts +4 -4
  11. package/artifacts/dist/types/components/avatar/non-interactive-avatar.d.ts +4 -4
  12. package/artifacts/dist/types/components/back-to-top/back-to-top.d.ts +4 -5
  13. package/artifacts/dist/types/components/button/button.d.ts +4 -16
  14. package/artifacts/dist/types/components/button/index.d.ts +1 -1
  15. package/artifacts/dist/types/components/button-group/button-group.d.ts +0 -20
  16. package/artifacts/dist/types/components/cards/card-expandable/card-accordion/card-accordion.d.ts +4 -7
  17. package/artifacts/dist/types/components/cards/card-expandable/card-expandable.d.ts +4 -8
  18. package/artifacts/dist/types/components/cards/card-highlight/card-highlight.d.ts +2 -2
  19. package/artifacts/dist/types/components/cards/card-highlight/shared/inner-highlight-card.d.ts +2 -2
  20. package/artifacts/dist/types/components/cards/card-highlight-newsletter/card-highlight-newsletter.d.ts +2 -2
  21. package/artifacts/dist/types/components/cards/card-highlight-single/card-highlight-single.d.ts +2 -2
  22. package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +2 -2
  23. package/artifacts/dist/types/components/cards/card-no-results/card-no-results.d.ts +2 -2
  24. package/artifacts/dist/types/components/cards/card-single/card-single.d.ts +2 -2
  25. package/artifacts/dist/types/components/checkbox/checkbox.d.ts +4 -4
  26. package/artifacts/dist/types/components/dialog/dialog.d.ts +4 -4
  27. package/artifacts/dist/types/components/drawer/drawer.d.ts +4 -4
  28. package/artifacts/dist/types/components/dropdown/dropdown.d.ts +5 -4
  29. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-filter-section.d.ts +4 -3
  30. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-option.d.ts +4 -3
  31. package/artifacts/dist/types/components/dropdown/internals/internal-dropdown.d.ts +4 -3
  32. package/artifacts/dist/types/components/glossary-letters/glossary-letters.d.ts +4 -4
  33. package/artifacts/dist/types/components/header/brand/institutional.d.ts +2 -2
  34. package/artifacts/dist/types/components/header/brand/logo.d.ts +2 -2
  35. package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-body.d.ts +2 -2
  36. package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-footer.d.ts +2 -2
  37. package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-header.d.ts +2 -2
  38. package/artifacts/dist/types/components/header/general-bar/languages/language.d.ts +2 -2
  39. package/artifacts/dist/types/components/header/general-bar/search/custom-search.d.ts +2 -2
  40. package/artifacts/dist/types/components/header/general-bar/search/default-search.d.ts +2 -2
  41. package/artifacts/dist/types/components/header/general-bar/search/search-input-container.d.ts +2 -2
  42. package/artifacts/dist/types/components/header/general-bar/search/search-related-links-title.d.ts +2 -2
  43. package/artifacts/dist/types/components/header/general-bar/search/search-related-links.d.ts +2 -2
  44. package/artifacts/dist/types/components/header/general-bar/search/search-title.d.ts +2 -2
  45. package/artifacts/dist/types/components/header/general-bar/search/search.d.ts +2 -2
  46. package/artifacts/dist/types/components/header/general-bar/unauthenticated/unauthenticated-link.d.ts +2 -2
  47. package/artifacts/dist/types/components/header/header.d.ts +6 -5
  48. package/artifacts/dist/types/components/header/internals/context/menu-context/header-menu-context.d.ts +2 -1
  49. package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-areas.d.ts +2 -2
  50. package/artifacts/dist/types/components/header/internals/general-bar/authenticated/internal-authenticated.d.ts +2 -2
  51. package/artifacts/dist/types/components/header/internals/general-bar/languages/internal-language.d.ts +2 -2
  52. package/artifacts/dist/types/components/header/internals/general-bar/search/internal-search.d.ts +2 -2
  53. package/artifacts/dist/types/components/header/internals/navigation-bar/logo/internal-logo.d.ts +2 -2
  54. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel.d.ts +4 -3
  55. package/artifacts/dist/types/components/header/internals/shared/custom-header-link/custom-header-link.d.ts +3 -3
  56. package/artifacts/dist/types/components/header/internals/shared/custom-modal/custom-modal-dialog.d.ts +2 -2
  57. package/artifacts/dist/types/components/header/internals/shared/custom-modal/custom-modal-provider.d.ts +2 -2
  58. package/artifacts/dist/types/components/header/internals/shared/institutional/internal-institutional.d.ts +2 -2
  59. package/artifacts/dist/types/components/header/internals/shared/modal-menu/modal-menu.d.ts +6 -3
  60. package/artifacts/dist/types/components/header/internals/shared/panel-menu/layout.interface.d.ts +2 -2
  61. package/artifacts/dist/types/components/header/internals/shared/panel-menu/panel-menu.d.ts +4 -3
  62. package/artifacts/dist/types/components/header/navigation-bar/navigation-bar.d.ts +2 -14
  63. package/artifacts/dist/types/components/header/navigation-bar/navigation-root.d.ts +2 -2
  64. package/artifacts/dist/types/components/input-date/contexts/date-picker-state.context.d.ts +2 -7
  65. package/artifacts/dist/types/components/input-date/date-text/date-text.d.ts +4 -4
  66. package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -3
  67. package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +4 -3
  68. package/artifacts/dist/types/components/input-number/input-number.d.ts +4 -4
  69. package/artifacts/dist/types/components/input-password/input-password.d.ts +4 -3
  70. package/artifacts/dist/types/components/input-phone/input-phone.d.ts +8 -3
  71. package/artifacts/dist/types/components/input-range/input-range.d.ts +4 -3
  72. package/artifacts/dist/types/components/input-search/input-search.d.ts +4 -3
  73. package/artifacts/dist/types/components/input-search-bar/input-search-bar.d.ts +6 -6
  74. package/artifacts/dist/types/components/input-select/input-select.d.ts +4 -3
  75. package/artifacts/dist/types/components/input-text/input-text.d.ts +4 -3
  76. package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +4 -4
  77. package/artifacts/dist/types/components/input-time/input-time.d.ts +4 -3
  78. package/artifacts/dist/types/components/input-time/time-text/time-text.d.ts +4 -4
  79. package/artifacts/dist/types/components/link-wrapper/link-wrapper.d.ts +4 -3
  80. package/artifacts/dist/types/components/modal-dialog/modal-dialog.d.ts +2 -2
  81. package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +4 -4
  82. package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +2 -2
  83. package/artifacts/dist/types/components/pill/pill.d.ts +2 -2
  84. package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +14 -2
  85. package/artifacts/dist/types/components/radio/radio.d.ts +4 -4
  86. package/artifacts/dist/types/components/ratings/rating-buttons/rating-buttons.d.ts +4 -3
  87. package/artifacts/dist/types/components/ratings/rating-icons/rating-icons.d.ts +4 -3
  88. package/artifacts/dist/types/components/search-pagination/search-page.d.ts +4 -4
  89. package/artifacts/dist/types/components/search-pagination/search-pagination-number-overlay.d.ts +4 -4
  90. package/artifacts/dist/types/components/search-pagination/search-pagination.d.ts +4 -4
  91. package/artifacts/dist/types/components/shared/feedback/feedback.d.ts +4 -4
  92. package/artifacts/dist/types/components/shared/icon-set/icon-set.d.ts +4 -4
  93. package/artifacts/dist/types/components/sidebar/sidebar-filter/sidebar-item-filter.d.ts +3 -4
  94. package/artifacts/dist/types/components/sidebar/sidebar-item.d.ts +5 -5
  95. package/artifacts/dist/types/components/sidebar/utils/keyboardSidebarItemHandlers.d.ts +1 -1
  96. package/artifacts/dist/types/components/skip-navigation/skip-navigation-multiple.d.ts +2 -2
  97. package/artifacts/dist/types/components/skip-navigation/skip-navigation-single.d.ts +2 -2
  98. package/artifacts/dist/types/components/skip-navigation/skip-navigation.d.ts +4 -4
  99. package/artifacts/dist/types/components/status-card/interactive-status-card.d.ts +4 -4
  100. package/artifacts/dist/types/components/status-card/non-interactive-status-card.d.ts +4 -4
  101. package/artifacts/dist/types/components/status-card/status-card.d.ts +4 -4
  102. package/artifacts/dist/types/components/stepper/step.d.ts +2 -2
  103. package/artifacts/dist/types/components/stepper/stepper.d.ts +4 -4
  104. package/artifacts/dist/types/components/switch/switch.d.ts +4 -4
  105. package/artifacts/dist/types/components/table/table-pagination.d.ts +3 -3
  106. package/artifacts/dist/types/components/table/table.d.ts +3 -3
  107. package/artifacts/dist/types/components/tabs/desktop/tabs-desktop.d.ts +3 -3
  108. package/artifacts/dist/types/components/tabs/mobile/tabs-mobile.d.ts +2 -2
  109. package/artifacts/dist/types/components/tag/tag.d.ts +4 -5
  110. package/artifacts/dist/types/components/toggle/toggle.d.ts +4 -4
  111. package/artifacts/dist/types/components/toggle-group/toggle-group.d.ts +4 -4
  112. package/artifacts/dist/types/components/uploader/button-uploader/button-uploader.d.ts +3 -3
  113. package/artifacts/dist/types/components/uploader/drag-and-drop-uploader/drag-and-drop-uploader.d.ts +3 -3
  114. package/artifacts/dist/types/utils/debounce.d.ts +4 -3
  115. package/artifacts/dist/types/utils/expand-ref.d.ts +2 -2
  116. package/package.json +66 -63
@@ -1,8 +1,8 @@
1
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
1
+ import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { SearchRelatedLinksProps } from './search-related-links';
3
3
  import { SearchTitleProps } from './search-title';
4
4
  import { SearchInputContainerProps } from './search-input-container';
5
- export interface DefaultSearchProps extends ComponentPropsWithoutRef<'div'> {
5
+ export interface DefaultSearchProps extends ComponentProps<'div'> {
6
6
  children: ReactElement<SearchTitleProps | SearchInputContainerProps | SearchRelatedLinksProps> | ReactElement<SearchTitleProps | SearchInputContainerProps | SearchRelatedLinksProps>[];
7
7
  }
8
8
  export declare const DefaultSearch: FC<DefaultSearchProps>;
@@ -1,6 +1,6 @@
1
1
  import { InputSearchBarProps } from '../../../../components/input-search-bar';
2
- import { ComponentPropsWithoutRef, FC, ReactElement, ReactNode } from 'react';
3
- export interface SearchInputContainerProps extends ComponentPropsWithoutRef<'div'> {
2
+ import { ComponentProps, FC, ReactElement, ReactNode } from 'react';
3
+ export interface SearchInputContainerProps extends ComponentProps<'div'> {
4
4
  children: ReactElement<InputSearchBarProps> | ReactNode;
5
5
  }
6
6
  export declare const SearchInputContainer: FC<SearchInputContainerProps>;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
2
- export interface SearchRelatedLinksTitleProps extends ComponentPropsWithoutRef<'div'> {
1
+ import { ComponentProps, FC } from 'react';
2
+ export interface SearchRelatedLinksTitleProps extends ComponentProps<'div'> {
3
3
  }
4
4
  export declare const SearchRelatedLinksTitle: FC<SearchRelatedLinksTitleProps>;
@@ -1,7 +1,7 @@
1
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
1
+ import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { SearchRelatedLinkProps } from './search-related-link';
3
3
  import { SearchRelatedLinksTitleProps } from './search-related-links-title';
4
- export interface SearchRelatedLinksProps extends ComponentPropsWithoutRef<'div'> {
4
+ export interface SearchRelatedLinksProps extends ComponentProps<'div'> {
5
5
  children: ReactElement<SearchRelatedLinksTitleProps | SearchRelatedLinkProps> | ReactElement<SearchRelatedLinksTitleProps | SearchRelatedLinkProps>[];
6
6
  }
7
7
  export declare const SearchRelatedLinks: FC<SearchRelatedLinksProps>;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
2
- export interface SearchTitleProps extends ComponentPropsWithoutRef<'div'> {
1
+ import { ComponentProps, FC } from 'react';
2
+ export interface SearchTitleProps extends ComponentProps<'div'> {
3
3
  }
4
4
  export declare const SearchTitle: FC<SearchTitleProps>;
@@ -1,7 +1,7 @@
1
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
1
+ import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { CustomSearchProps } from './custom-search';
3
3
  import { DefaultSearchProps } from './default-search';
4
- export interface SearchProps extends ComponentPropsWithoutRef<'div'> {
4
+ export interface SearchProps extends ComponentProps<'div'> {
5
5
  label: string;
6
6
  children: ReactElement<DefaultSearchProps | CustomSearchProps>;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { BooleanProp } from '../../../../models';
2
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
3
- export interface UnauthenticatedLinkProps extends ComponentPropsWithoutRef<'div'> {
2
+ import { ComponentProps, FC, ReactElement } from 'react';
3
+ export interface UnauthenticatedLinkProps extends ComponentProps<'div'> {
4
4
  /**
5
5
  * Defines if uses an icon.
6
6
  */
@@ -1,9 +1,8 @@
1
1
  import { BooleanProp } from '../../models';
2
- import React, { ComponentPropsWithRef, ReactElement } from 'react';
2
+ import { ComponentProps, FC, ReactElement, Ref } from 'react';
3
3
  import { BrandProps } from './brand/brand';
4
4
  import { GeneralBarProps } from './general-bar/general-bar';
5
- import { NavigationBarProps } from './navigation-bar/navigation-bar';
6
- export interface HeaderElement extends ComponentPropsWithRef<'div'> {
5
+ export interface HeaderElement extends ComponentProps<'div'> {
7
6
  focusActiveArea: () => void;
8
7
  setActiveArea: (areaValue: string) => void;
9
8
  focusLanguages: () => void;
@@ -23,8 +22,10 @@ export interface HeaderElement extends ComponentPropsWithRef<'div'> {
23
22
  closeAll: () => void;
24
23
  }
25
24
  export interface HeaderProps {
25
+ ref: Ref<HeaderElement>;
26
26
  darkMode?: BooleanProp;
27
27
  maxNavigationItems?: number;
28
- children?: ReactElement<BrandProps | GeneralBarProps | NavigationBarProps> | ReactElement<BrandProps | GeneralBarProps | NavigationBarProps>[];
28
+ children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[];
29
29
  }
30
- export declare const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<HeaderElement>>;
30
+ declare const Header: FC<HeaderProps>;
31
+ export { Header };
@@ -4,8 +4,9 @@ import { ModalMenuElement } from '../../../../../components/header/internals/sha
4
4
  import { PanelMenuElement } from '../../../../../components/header/internals/shared/panel-menu/panel-menu';
5
5
  import { RefObject } from 'react';
6
6
  import { MenuTypeEnum } from './menu-type.enum';
7
+ export type HeaderMenuContextRef = PanelMenuElement | HTMLDivElement | DrawerElement | ModalMenuElement | InternalNavigationBurgerPanelElement | null;
7
8
  export interface HeaderMenuContextProps {
8
- menuRefMap: Map<MenuTypeEnum | string, RefObject<PanelMenuElement | HTMLDivElement | DrawerElement | ModalMenuElement | InternalNavigationBurgerPanelElement>>;
9
+ menuRefMap: Map<MenuTypeEnum | string, RefObject<HeaderMenuContextRef>>;
9
10
  collapseAllMenus: () => void;
10
11
  collapseMenu: (id: MenuTypeEnum | string, focusController: boolean) => void;
11
12
  expandMenu: (id: MenuTypeEnum | string) => void;
@@ -1,5 +1,5 @@
1
- import { ComponentPropsWithRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './internal-areas.scss';
3
- export interface InnerComponentProps extends ComponentPropsWithRef<'div'> {
3
+ export interface InnerComponentProps extends ComponentProps<'div'> {
4
4
  }
5
5
  export declare const InternalAreas: FC<InnerComponentProps>;
@@ -1,9 +1,9 @@
1
1
  import { AuthenticatedBodyProps } from '../../../../../components/header/general-bar/authenticated/authenticated-body';
2
2
  import { AuthenticatedFooterProps } from '../../../../../components/header/general-bar/authenticated/authenticated-footer';
3
3
  import { AuthenticatedHeaderProps } from '../../../../../components/header/general-bar/authenticated/authenticated-header';
4
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
4
+ import { ComponentProps, FC, ReactElement } from 'react';
5
5
  import './internal-authenticated.scss';
6
- interface InternalAuthenticatedProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
6
+ interface InternalAuthenticatedProps extends Omit<ComponentProps<'div'>, 'children'> {
7
7
  children?: null | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps> | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps>[];
8
8
  }
9
9
  export declare const InternalAuthenticated: FC<InternalAuthenticatedProps>;
@@ -1,6 +1,6 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './internal-language.scss';
3
- export interface InternalLanguageProps extends ComponentPropsWithoutRef<'button'> {
3
+ export interface InternalLanguageProps extends ComponentProps<'button'> {
4
4
  icon?: string;
5
5
  checked: boolean;
6
6
  label: string;
@@ -1,5 +1,5 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './internal-search.scss';
3
- export interface InternalSearchProps extends ComponentPropsWithoutRef<'div'> {
3
+ export interface InternalSearchProps extends ComponentProps<'div'> {
4
4
  }
5
5
  export declare const InternalSearch: FC<InternalSearchProps>;
@@ -1,5 +1,5 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './internal-logo.scss';
3
- export interface InternalLogoProps extends ComponentPropsWithoutRef<'div'> {
3
+ export interface InternalLogoProps extends ComponentProps<'div'> {
4
4
  }
5
5
  export declare const InternalLogo: FC<InternalLogoProps>;
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps } from '../../../../../components/button';
2
- import React, { ComponentPropsWithoutRef } from 'react';
2
+ import { ComponentProps, FC } from 'react';
3
3
  import './internal-navigation-burger-panel.scss';
4
4
  export interface InternalNavigationBurgerPanelElement extends HTMLDivElement {
5
5
  /**
@@ -15,11 +15,12 @@ export interface InternalNavigationBurgerPanelElement extends HTMLDivElement {
15
15
  */
16
16
  isOpened: boolean;
17
17
  }
18
- export interface InternalNavigationBurgerPanelProps extends ComponentPropsWithoutRef<'div'> {
18
+ export interface InternalNavigationBurgerPanelProps extends ComponentProps<'div'> {
19
19
  id: string;
20
20
  title: string;
21
21
  linksAriaLabel: string;
22
22
  relatedLinksAriaLabel: string;
23
23
  buttonProps?: ButtonProps;
24
24
  }
25
- export declare const InternalNavigationBurgerPanel: React.ForwardRefExoticComponent<InternalNavigationBurgerPanelProps & React.RefAttributes<InternalNavigationBurgerPanelElement>>;
25
+ declare const InternalNavigationBurgerPanel: FC<InternalNavigationBurgerPanelProps>;
26
+ export { InternalNavigationBurgerPanel };
@@ -1,6 +1,6 @@
1
1
  import { LinkWrapperProps } from '../../../../../components/link-wrapper';
2
2
  import { BooleanProp } from '../../../../../models/boolean-type';
3
- import React, { ForwardRefRenderFunction } from 'react';
3
+ import { FC } from 'react';
4
4
  import './custom-header-link.scss';
5
5
  export interface CustomHeaderLinkProps extends LinkWrapperProps {
6
6
  hasIcon?: BooleanProp;
@@ -10,5 +10,5 @@ export interface CustomHeaderLinkProps extends LinkWrapperProps {
10
10
  trailingIcon?: string;
11
11
  trailingIconHover?: string;
12
12
  }
13
- export declare const InnerCustomHeaderLink: ForwardRefRenderFunction<HTMLSpanElement, CustomHeaderLinkProps>;
14
- export declare const CustomHeaderLink: React.ForwardRefExoticComponent<Omit<CustomHeaderLinkProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
13
+ declare const CustomHeaderLink: FC<CustomHeaderLinkProps>;
14
+ export { CustomHeaderLink };
@@ -1,3 +1,3 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './custom-modal-dialog.scss';
3
- export declare const CustomModalDialog: FC<ComponentPropsWithoutRef<'div'>>;
3
+ export declare const CustomModalDialog: FC<ComponentProps<'div'>>;
@@ -1,9 +1,9 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  export interface CustomModalConfiguration {
3
3
  closeButtonLabel: string;
4
4
  ariaLabel: string;
5
5
  onShow?: () => void;
6
6
  onHide?: () => void;
7
7
  }
8
- declare const CustomModalProvider: FC<ComponentPropsWithoutRef<'div'>>;
8
+ declare const CustomModalProvider: FC<ComponentProps<'div'>>;
9
9
  export { CustomModalProvider };
@@ -1,5 +1,5 @@
1
- import { ComponentPropsWithoutRef, FC } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './internal-institutional.scss';
3
- export interface InternalInstitutionalProps extends ComponentPropsWithoutRef<'div'> {
3
+ export interface InternalInstitutionalProps extends ComponentProps<'div'> {
4
4
  }
5
5
  export declare const InternalInstitutional: FC<InternalInstitutionalProps>;
@@ -1,6 +1,7 @@
1
1
  import { ButtonProps } from '../../../../../components/button';
2
- import React, { ReactElement, ReactNode } from 'react';
2
+ import { FC, ReactElement, ReactNode, RefObject } from 'react';
3
3
  import './modal-menu.scss';
4
+ import { HeaderMenuContextRef } from '../../context/menu-context/header-menu-context';
4
5
  export interface ModalMenuElement extends HTMLDivElement {
5
6
  /**
6
7
  * Open the modal
@@ -19,11 +20,13 @@ export interface ModalMenuElement extends HTMLDivElement {
19
20
  */
20
21
  isOpen: boolean;
21
22
  }
22
- export interface ModalMenuProps extends ButtonProps {
23
+ export interface ModalMenuProps extends Omit<ButtonProps, 'ref'> {
23
24
  darkMode?: boolean;
24
25
  modalAriaLabel?: string;
25
26
  openLabel?: ReactNode;
26
27
  closeLabel?: ReactNode;
27
28
  children: ReactElement<HTMLDivElement> | ReactElement<HTMLDivElement>[];
29
+ ref?: RefObject<HeaderMenuContextRef>;
28
30
  }
29
- export declare const ModalMenu: React.ForwardRefExoticComponent<ModalMenuProps & React.RefAttributes<ModalMenuElement>>;
31
+ declare const ModalMenu: FC<ModalMenuProps>;
32
+ export { ModalMenu };
@@ -1,3 +1,3 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- export interface LayoutProps extends ComponentPropsWithoutRef<'div'> {
1
+ import { ComponentProps } from 'react';
2
+ export interface LayoutProps extends ComponentProps<'div'> {
3
3
  }
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps } from '../../../../../components/button';
2
- import React, { ComponentPropsWithoutRef, ReactElement } from 'react';
2
+ import { ComponentProps, FC, ReactElement } from 'react';
3
3
  import { LayoutProps } from './layout.interface';
4
4
  import './panel-menu.scss';
5
5
  export interface PanelMenuElement extends HTMLDivElement {
@@ -20,7 +20,7 @@ export interface PanelMenuElement extends HTMLDivElement {
20
20
  */
21
21
  isExpanded: boolean;
22
22
  }
23
- export interface PanelMenuProps extends ComponentPropsWithoutRef<'div'> {
23
+ export interface PanelMenuProps extends ComponentProps<'div'> {
24
24
  darkMode?: boolean;
25
25
  children: ReactElement<ButtonProps | LayoutProps> | ReactElement<ButtonProps | LayoutProps>[];
26
26
  iconsCollapsed?: {
@@ -37,4 +37,5 @@ export interface PanelMenuProps extends ComponentPropsWithoutRef<'div'> {
37
37
  };
38
38
  isDrawerPanel?: boolean;
39
39
  }
40
- export declare const PanelMenu: React.ForwardRefExoticComponent<PanelMenuProps & React.RefAttributes<PanelMenuElement>>;
40
+ declare const PanelMenu: FC<PanelMenuProps>;
41
+ export { PanelMenu };
@@ -1,24 +1,12 @@
1
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
1
+ import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { NavigationRootProps } from './navigation-root';
3
3
  import { NavigationLinkProps } from './navigation-link';
4
- export interface NavigationBarProps extends ComponentPropsWithoutRef<'div'> {
4
+ export interface NavigationBarProps extends ComponentProps<'div'> {
5
5
  id?: string;
6
6
  responsiveMenuLabel?: string;
7
7
  responsiveMenuAriaLabel?: string;
8
- /**
9
- * @deprecated use responsiveMenuAriaLabel instead.
10
- */
11
- label?: string;
12
8
  responsiveMenuBackToRootLabel?: string;
13
- /**
14
- * @deprecated use responsiveMenuBackToRootLabel instead.
15
- */
16
- backToRootLabel?: string;
17
9
  modalMenuLabel?: string;
18
- /**
19
- * @deprecated use modalMenuLabel instead.
20
- */
21
- openMenuLabel?: string;
22
10
  modalAriaLabel?: string;
23
11
  modalCloseLabel?: string;
24
12
  children: ReactElement<NavigationRootProps | NavigationLinkProps> | ReactElement<NavigationRootProps | NavigationLinkProps>[];
@@ -1,7 +1,7 @@
1
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
1
+ import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { RelatedNavigationLinkProps } from './related-navigation-link';
3
3
  import { NavigationLinkProps } from './navigation-link';
4
- export interface NavigationRootProps extends ComponentPropsWithoutRef<'div'> {
4
+ export interface NavigationRootProps extends ComponentProps<'div'> {
5
5
  label: string;
6
6
  linksAriaLabel?: string;
7
7
  relatedLinksAriaLabel?: string;
@@ -1,4 +1,4 @@
1
- import React, { Dispatch, FC, ReactNode, SetStateAction } from 'react';
1
+ import { Dispatch, SetStateAction } from 'react';
2
2
  import { Months, WeekDays } from '../../../models';
3
3
  export type DatePickerStateContextType = {
4
4
  focusedDate: Date;
@@ -30,9 +30,4 @@ export type DatePickerStateContextType = {
30
30
  okAriaLabel?: string;
31
31
  };
32
32
  };
33
- export declare const DatePickerStateContext: React.Context<DatePickerStateContextType | undefined>;
34
- export interface DatePickerStateProviderProps {
35
- children: ReactNode;
36
- value: DatePickerStateContextType;
37
- }
38
- export declare const DatePickerStateProvider: FC<DatePickerStateProviderProps>;
33
+ export declare const DatePickerStateContext: import("react").Context<DatePickerStateContextType | undefined>;
@@ -1,9 +1,9 @@
1
- import React, { ComponentPropsWithRef, ForwardRefRenderFunction } from 'react';
1
+ import { ComponentProps, FC } from 'react';
2
2
  import './date-text.scss';
3
- export interface DateTextProps extends ComponentPropsWithRef<'input'> {
3
+ export interface DateTextProps extends ComponentProps<'input'> {
4
4
  dayInputPlaceholder?: string;
5
5
  monthInputPlaceholder?: string;
6
6
  yearInputPlaceholder?: string;
7
7
  }
8
- export declare const InnerComponent: ForwardRefRenderFunction<HTMLInputElement, DateTextProps>;
9
- export declare const DateText: React.ForwardRefExoticComponent<Omit<DateTextProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
8
+ declare const DateText: FC<DateTextProps>;
9
+ export { DateText };
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState, Months, WeekDays } from '../../models';
3
3
  import './input-date.scss';
4
- export interface InputDateProps extends ComponentPropsWithRef<'input'> {
4
+ export interface InputDateProps extends ComponentProps<'input'> {
5
5
  /**
6
6
  * Input label text.
7
7
  */
@@ -127,4 +127,5 @@ export interface InputDateProps extends ComponentPropsWithRef<'input'> {
127
127
  */
128
128
  okAriaLabel?: string;
129
129
  }
130
- export declare const InputDate: React.ForwardRefExoticComponent<Omit<InputDateProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
130
+ declare const InputDate: FC<InputDateProps>;
131
+ export { InputDate };
@@ -1,8 +1,8 @@
1
1
  import { FeedbackState } from '../../models';
2
2
  import { BooleanProp } from '../../models/boolean-type';
3
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
3
+ import { ComponentProps, FC, ReactNode } from 'react';
4
4
  import './input-email-bar.scss';
5
- export interface InputEmailBarProps extends ComponentPropsWithRef<'input'> {
5
+ export interface InputEmailBarProps extends ComponentProps<'input'> {
6
6
  /**
7
7
  * Input label text.
8
8
  */
@@ -36,4 +36,5 @@ export interface InputEmailBarProps extends ComponentPropsWithRef<'input'> {
36
36
  */
37
37
  hasError?: BooleanProp;
38
38
  }
39
- export declare const InputEmailBar: React.ForwardRefExoticComponent<Omit<InputEmailBarProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
39
+ declare const InputEmailBar: FC<InputEmailBarProps>;
40
+ export { InputEmailBar };
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState } from '../../models';
3
3
  import './input-number.scss';
4
- export interface InputNumberProps extends ComponentPropsWithRef<'input'> {
4
+ export interface InputNumberProps extends ComponentProps<'input'> {
5
5
  /**
6
6
  * Input label text.
7
7
  */
@@ -47,5 +47,5 @@ export interface InputNumberProps extends ComponentPropsWithRef<'input'> {
47
47
  */
48
48
  decreaseButtonAltText?: string;
49
49
  }
50
- export declare const InnerInputNumber: ForwardRefRenderFunction<HTMLInputElement, InputNumberProps>;
51
- export declare const InputNumber: React.ForwardRefExoticComponent<Omit<InputNumberProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
50
+ declare const InputNumber: FC<InputNumberProps>;
51
+ export { InputNumber };
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState } from '../../models';
3
3
  import './input-password.scss';
4
- export interface InputPasswordProps extends ComponentPropsWithRef<'input'> {
4
+ export interface InputPasswordProps extends ComponentProps<'input'> {
5
5
  /**
6
6
  * Input label text.
7
7
  */
@@ -50,4 +50,5 @@ export interface InputPasswordProps extends ComponentPropsWithRef<'input'> {
50
50
  hide: string;
51
51
  };
52
52
  }
53
- export declare const InputPassword: React.ForwardRefExoticComponent<Omit<InputPasswordProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
53
+ declare const InputPassword: FC<InputPasswordProps>;
54
+ export { InputPassword };
@@ -1,4 +1,4 @@
1
- import React, { ChangeEvent, ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ChangeEvent, ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState } from '../../models';
3
3
  export declare const PhoneCountryCodes: string[];
4
4
  export type PhoneCountryCode = (typeof PhoneCountryCodes)[number];
@@ -10,7 +10,7 @@ export interface InputPhoneElement extends HTMLInputElement {
10
10
  iso: PhoneCountryISO;
11
11
  code: PhoneCountryCode;
12
12
  }
13
- export interface InputPhoneProps extends Omit<ComponentPropsWithRef<'input'>, 'ref'> {
13
+ export interface InputPhoneProps extends ComponentProps<'input'> {
14
14
  /**
15
15
  * Input label text.
16
16
  */
@@ -79,5 +79,10 @@ export interface InputPhoneProps extends Omit<ComponentPropsWithRef<'input'>, 'r
79
79
  * Callback to run whenever the country dropdown value changes.
80
80
  */
81
81
  onCountryChange?: (country: CountryPhoneProps) => void;
82
+ /**
83
+ * allow you to say what is the acronym to Direct Dialing In, the default is DDI
84
+ */
85
+ acronymForDirectDialing?: string;
82
86
  }
83
- export declare const InputPhone: React.ForwardRefExoticComponent<InputPhoneProps & React.RefAttributes<InputPhoneElement>>;
87
+ declare const InputPhone: FC<InputPhoneProps>;
88
+ export { InputPhone };
@@ -1,8 +1,8 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState } from '../../models';
3
3
  import './input-range.scss';
4
4
  export type RangeType = 'single' | 'double';
5
- export interface InputRangeProps extends Omit<ComponentPropsWithRef<'input'>, 'ref' | 'value' | 'onChange'> {
5
+ export interface InputRangeProps extends Omit<ComponentProps<'input'>, 'value' | 'onChange'> {
6
6
  /**
7
7
  * Input label text.
8
8
  */
@@ -60,4 +60,5 @@ export interface InputRangeProps extends Omit<ComponentPropsWithRef<'input'>, 'r
60
60
  export interface InputRangeElement extends HTMLDivElement {
61
61
  sliders: HTMLInputElement[];
62
62
  }
63
- export declare const InputRange: React.ForwardRefExoticComponent<InputRangeProps & React.RefAttributes<InputRangeElement>>;
63
+ declare const InputRange: FC<InputRangeProps>;
64
+ export { InputRange };
@@ -1,7 +1,7 @@
1
1
  import { BooleanProp, FeedbackState } from '../../models';
2
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
2
+ import { ComponentProps, FC, ReactNode } from 'react';
3
3
  import './input-search.scss';
4
- export interface InputSearchProps extends ComponentPropsWithRef<'input'> {
4
+ export interface InputSearchProps extends ComponentProps<'input'> {
5
5
  /**
6
6
  * Input label text.
7
7
  */
@@ -39,4 +39,5 @@ export interface InputSearchProps extends ComponentPropsWithRef<'input'> {
39
39
  */
40
40
  hasError?: BooleanProp;
41
41
  }
42
- export declare const InputSearch: React.ForwardRefExoticComponent<Omit<InputSearchProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
42
+ declare const InputSearch: FC<InputSearchProps>;
43
+ export { InputSearch };
@@ -1,18 +1,17 @@
1
- import { ButtonElement } from '../../components/button';
2
1
  import { BooleanProp } from '../../models';
3
- import React, { ComponentPropsWithRef, Ref } from 'react';
2
+ import { ComponentProps, FC, Ref } from 'react';
4
3
  import './input-search-bar.scss';
5
4
  export interface InputSearchBarElement extends HTMLInputElement {
6
5
  /**
7
6
  * React ref object to the search action button.
8
7
  */
9
- searchActionButton?: Ref<ButtonElement>;
8
+ searchActionButton?: Ref<HTMLButtonElement>;
10
9
  /**
11
10
  * React ref object to the voice action button.
12
11
  */
13
- voiceActionButton?: Ref<ButtonElement>;
12
+ voiceActionButton?: Ref<HTMLButtonElement>;
14
13
  }
15
- export interface InputSearchBarProps extends ComponentPropsWithRef<'input'> {
14
+ export interface InputSearchBarProps extends ComponentProps<'input'> {
16
15
  /**
17
16
  * Input label text.
18
17
  */
@@ -62,4 +61,5 @@ export interface InputSearchBarProps extends ComponentPropsWithRef<'input'> {
62
61
  */
63
62
  ref?: Ref<InputSearchBarElement>;
64
63
  }
65
- export declare const InputSearchBar: React.ForwardRefExoticComponent<Omit<InputSearchBarProps, "ref"> & React.RefAttributes<InputSearchBarElement>>;
64
+ declare const InputSearchBar: FC<InputSearchBarProps>;
65
+ export { InputSearchBar };
@@ -1,5 +1,5 @@
1
1
  import { BooleanProp, FeedbackState } from '../../models';
2
- import React, { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
2
+ import { ComponentProps, FC, ReactElement, ReactNode } from 'react';
3
3
  import { DropdownOptionProps, DropdownSectionProps, DropdownType } from '../../components/dropdown';
4
4
  import './input-select.scss';
5
5
  export interface InputSelectRef {
@@ -12,7 +12,7 @@ export interface InputSelectRef {
12
12
  */
13
13
  clearSelectedOptions: () => void;
14
14
  }
15
- export interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>, 'options' | 'onChange'> {
15
+ export interface InputSelectProps extends Omit<ComponentProps<'select'>, 'options' | 'onChange'> {
16
16
  /**
17
17
  * Input label text.
18
18
  */
@@ -114,4 +114,5 @@ export interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>,
114
114
  */
115
115
  children?: ReactElement<DropdownSectionProps> | ReactElement<DropdownSectionProps>[];
116
116
  }
117
- export declare const InputSelect: React.ForwardRefExoticComponent<Omit<InputSelectProps, "ref"> & React.RefAttributes<HTMLSelectElement | InputSelectRef>>;
117
+ declare const InputSelect: FC<InputSelectProps>;
118
+ export { InputSelect };
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState } from '../../models';
3
3
  import './input-text.scss';
4
- export interface InputTextProps extends ComponentPropsWithRef<'input'> {
4
+ export interface InputTextProps extends ComponentProps<'input'> {
5
5
  /**
6
6
  * Input label text.
7
7
  */
@@ -39,4 +39,5 @@ export interface InputTextProps extends ComponentPropsWithRef<'input'> {
39
39
  */
40
40
  hasError?: BooleanProp;
41
41
  }
42
- export declare const InputText: React.ForwardRefExoticComponent<Omit<InputTextProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
42
+ declare const InputText: FC<InputTextProps>;
43
+ export { InputText };
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import { BooleanProp, FeedbackState } from '../../models';
3
3
  import './input-textarea.scss';
4
- export interface InputTextAreaProps extends ComponentPropsWithRef<'textarea'> {
4
+ export interface InputTextAreaProps extends ComponentProps<'textarea'> {
5
5
  /**
6
6
  * Input label text.
7
7
  */
@@ -35,5 +35,5 @@ export interface InputTextAreaProps extends ComponentPropsWithRef<'textarea'> {
35
35
  */
36
36
  showCharCounter?: BooleanProp;
37
37
  }
38
- export declare const InnerInputTextArea: ForwardRefRenderFunction<HTMLTextAreaElement, InputTextAreaProps>;
39
- export declare const InputTextArea: React.ForwardRefExoticComponent<Omit<InputTextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
38
+ declare const InputTextArea: FC<InputTextAreaProps>;
39
+ export { InputTextArea };
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ReactNode } from 'react';
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
2
  import './input-time.scss';
3
3
  import { BooleanProp, FeedbackState } from '../../models';
4
- export interface InputTimeProps extends ComponentPropsWithRef<'input'> {
4
+ export interface InputTimeProps extends ComponentProps<'input'> {
5
5
  /**
6
6
  * The flag to set if the label and feedback text is in dark mode or light mode.
7
7
  */
@@ -83,4 +83,5 @@ export interface InputTimeProps extends ComponentPropsWithRef<'input'> {
83
83
  */
84
84
  timepickerMessageAriaLabel?: string;
85
85
  }
86
- export declare const InputTime: React.ForwardRefExoticComponent<Omit<InputTimeProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
86
+ declare const InputTime: FC<InputTimeProps>;
87
+ export { InputTime };