@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.
- package/artifacts/dist/index.mjs +5833 -5712
- 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/style.css +1 -1
- package/artifacts/dist/types/components/accordion/accordion.d.ts +4 -12
- package/artifacts/dist/types/components/accordion-group/accordion-group.d.ts +4 -4
- package/artifacts/dist/types/components/anchor/anchor.d.ts +4 -4
- package/artifacts/dist/types/components/avatar/avatar.d.ts +4 -3
- package/artifacts/dist/types/components/avatar/interactive-avatar.d.ts +4 -4
- package/artifacts/dist/types/components/avatar/non-interactive-avatar.d.ts +4 -4
- package/artifacts/dist/types/components/back-to-top/back-to-top.d.ts +4 -5
- package/artifacts/dist/types/components/button/button.d.ts +4 -16
- package/artifacts/dist/types/components/button/index.d.ts +1 -1
- package/artifacts/dist/types/components/button-group/button-group.d.ts +0 -20
- package/artifacts/dist/types/components/cards/card-expandable/card-accordion/card-accordion.d.ts +4 -7
- package/artifacts/dist/types/components/cards/card-expandable/card-expandable.d.ts +4 -8
- package/artifacts/dist/types/components/cards/card-highlight/card-highlight.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-highlight/shared/inner-highlight-card.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-highlight-newsletter/card-highlight-newsletter.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-highlight-single/card-highlight-single.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-no-results/card-no-results.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-single/card-single.d.ts +2 -2
- package/artifacts/dist/types/components/checkbox/checkbox.d.ts +4 -4
- package/artifacts/dist/types/components/dialog/dialog.d.ts +4 -4
- package/artifacts/dist/types/components/drawer/drawer.d.ts +4 -4
- package/artifacts/dist/types/components/dropdown/dropdown.d.ts +5 -4
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-filter-section.d.ts +4 -3
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-option.d.ts +4 -3
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown.d.ts +4 -3
- package/artifacts/dist/types/components/glossary-letters/glossary-letters.d.ts +4 -4
- package/artifacts/dist/types/components/header/brand/institutional.d.ts +2 -2
- package/artifacts/dist/types/components/header/brand/logo.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-body.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-footer.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-header.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/languages/language.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/custom-search.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/default-search.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/search-input-container.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/search-related-links-title.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/search-related-links.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/search-title.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/search/search.d.ts +2 -2
- package/artifacts/dist/types/components/header/general-bar/unauthenticated/unauthenticated-link.d.ts +2 -2
- package/artifacts/dist/types/components/header/header.d.ts +6 -5
- package/artifacts/dist/types/components/header/internals/context/menu-context/header-menu-context.d.ts +2 -1
- package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-areas.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/general-bar/authenticated/internal-authenticated.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/general-bar/languages/internal-language.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/general-bar/search/internal-search.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/navigation-bar/logo/internal-logo.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel.d.ts +4 -3
- package/artifacts/dist/types/components/header/internals/shared/custom-header-link/custom-header-link.d.ts +3 -3
- package/artifacts/dist/types/components/header/internals/shared/custom-modal/custom-modal-dialog.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/shared/custom-modal/custom-modal-provider.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/shared/institutional/internal-institutional.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/shared/modal-menu/modal-menu.d.ts +6 -3
- package/artifacts/dist/types/components/header/internals/shared/panel-menu/layout.interface.d.ts +2 -2
- package/artifacts/dist/types/components/header/internals/shared/panel-menu/panel-menu.d.ts +4 -3
- package/artifacts/dist/types/components/header/navigation-bar/navigation-bar.d.ts +2 -14
- package/artifacts/dist/types/components/header/navigation-bar/navigation-root.d.ts +2 -2
- package/artifacts/dist/types/components/input-date/contexts/date-picker-state.context.d.ts +2 -7
- package/artifacts/dist/types/components/input-date/date-text/date-text.d.ts +4 -4
- package/artifacts/dist/types/components/input-date/input-date.d.ts +4 -3
- package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +4 -3
- package/artifacts/dist/types/components/input-number/input-number.d.ts +4 -4
- package/artifacts/dist/types/components/input-password/input-password.d.ts +4 -3
- package/artifacts/dist/types/components/input-phone/input-phone.d.ts +8 -3
- package/artifacts/dist/types/components/input-range/input-range.d.ts +4 -3
- package/artifacts/dist/types/components/input-search/input-search.d.ts +4 -3
- package/artifacts/dist/types/components/input-search-bar/input-search-bar.d.ts +6 -6
- package/artifacts/dist/types/components/input-select/input-select.d.ts +4 -3
- package/artifacts/dist/types/components/input-text/input-text.d.ts +4 -3
- package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +4 -4
- package/artifacts/dist/types/components/input-time/input-time.d.ts +4 -3
- package/artifacts/dist/types/components/input-time/time-text/time-text.d.ts +4 -4
- package/artifacts/dist/types/components/link-wrapper/link-wrapper.d.ts +4 -3
- package/artifacts/dist/types/components/modal-dialog/modal-dialog.d.ts +2 -2
- package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +4 -4
- package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +2 -2
- package/artifacts/dist/types/components/pill/pill.d.ts +2 -2
- package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +14 -2
- package/artifacts/dist/types/components/radio/radio.d.ts +4 -4
- package/artifacts/dist/types/components/ratings/rating-buttons/rating-buttons.d.ts +4 -3
- package/artifacts/dist/types/components/ratings/rating-icons/rating-icons.d.ts +4 -3
- package/artifacts/dist/types/components/search-pagination/search-page.d.ts +4 -4
- package/artifacts/dist/types/components/search-pagination/search-pagination-number-overlay.d.ts +4 -4
- package/artifacts/dist/types/components/search-pagination/search-pagination.d.ts +4 -4
- package/artifacts/dist/types/components/shared/feedback/feedback.d.ts +4 -4
- package/artifacts/dist/types/components/shared/icon-set/icon-set.d.ts +4 -4
- package/artifacts/dist/types/components/sidebar/sidebar-filter/sidebar-item-filter.d.ts +3 -4
- package/artifacts/dist/types/components/sidebar/sidebar-item.d.ts +5 -5
- package/artifacts/dist/types/components/sidebar/utils/keyboardSidebarItemHandlers.d.ts +1 -1
- package/artifacts/dist/types/components/skip-navigation/skip-navigation-multiple.d.ts +2 -2
- package/artifacts/dist/types/components/skip-navigation/skip-navigation-single.d.ts +2 -2
- package/artifacts/dist/types/components/skip-navigation/skip-navigation.d.ts +4 -4
- package/artifacts/dist/types/components/status-card/interactive-status-card.d.ts +4 -4
- package/artifacts/dist/types/components/status-card/non-interactive-status-card.d.ts +4 -4
- package/artifacts/dist/types/components/status-card/status-card.d.ts +4 -4
- package/artifacts/dist/types/components/stepper/step.d.ts +2 -2
- package/artifacts/dist/types/components/stepper/stepper.d.ts +4 -4
- package/artifacts/dist/types/components/switch/switch.d.ts +4 -4
- package/artifacts/dist/types/components/table/table-pagination.d.ts +3 -3
- package/artifacts/dist/types/components/table/table.d.ts +3 -3
- package/artifacts/dist/types/components/tabs/desktop/tabs-desktop.d.ts +3 -3
- package/artifacts/dist/types/components/tabs/mobile/tabs-mobile.d.ts +2 -2
- package/artifacts/dist/types/components/tag/tag.d.ts +4 -5
- package/artifacts/dist/types/components/toggle/toggle.d.ts +4 -4
- package/artifacts/dist/types/components/toggle-group/toggle-group.d.ts +4 -4
- package/artifacts/dist/types/components/uploader/button-uploader/button-uploader.d.ts +3 -3
- package/artifacts/dist/types/components/uploader/drag-and-drop-uploader/drag-and-drop-uploader.d.ts +3 -3
- package/artifacts/dist/types/utils/debounce.d.ts +4 -3
- package/artifacts/dist/types/utils/expand-ref.d.ts +2 -2
- package/package.json +66 -63
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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>;
|
package/artifacts/dist/types/components/header/general-bar/search/search-input-container.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputSearchBarProps } from '../../../../components/input-search-bar';
|
|
2
|
-
import {
|
|
3
|
-
export interface SearchInputContainerProps extends
|
|
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>;
|
package/artifacts/dist/types/components/header/general-bar/search/search-related-links-title.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface SearchRelatedLinksTitleProps extends
|
|
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 {
|
|
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
|
|
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 {
|
|
2
|
-
export interface SearchTitleProps extends
|
|
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 {
|
|
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
|
|
4
|
+
export interface SearchProps extends ComponentProps<'div'> {
|
|
5
5
|
label: string;
|
|
6
6
|
children: ReactElement<DefaultSearchProps | CustomSearchProps>;
|
|
7
7
|
}
|
package/artifacts/dist/types/components/header/general-bar/unauthenticated/unauthenticated-link.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanProp } from '../../../../models';
|
|
2
|
-
import {
|
|
3
|
-
export interface UnauthenticatedLinkProps extends
|
|
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
|
|
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
|
-
|
|
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
|
|
28
|
+
children?: ReactElement<BrandProps | GeneralBarProps> | ReactElement<BrandProps | GeneralBarProps>[];
|
|
29
29
|
}
|
|
30
|
-
|
|
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<
|
|
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;
|
package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-areas.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './internal-areas.scss';
|
|
3
|
-
export interface InnerComponentProps extends
|
|
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 {
|
|
4
|
+
import { ComponentProps, FC, ReactElement } from 'react';
|
|
5
5
|
import './internal-authenticated.scss';
|
|
6
|
-
interface InternalAuthenticatedProps extends Omit<
|
|
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 {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './internal-language.scss';
|
|
3
|
-
export interface InternalLanguageProps extends
|
|
3
|
+
export interface InternalLanguageProps extends ComponentProps<'button'> {
|
|
4
4
|
icon?: string;
|
|
5
5
|
checked: boolean;
|
|
6
6
|
label: string;
|
package/artifacts/dist/types/components/header/internals/general-bar/search/internal-search.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './internal-search.scss';
|
|
3
|
-
export interface InternalSearchProps extends
|
|
3
|
+
export interface InternalSearchProps extends ComponentProps<'div'> {
|
|
4
4
|
}
|
|
5
5
|
export declare const InternalSearch: FC<InternalSearchProps>;
|
package/artifacts/dist/types/components/header/internals/navigation-bar/logo/internal-logo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './internal-logo.scss';
|
|
3
|
-
export interface InternalLogoProps extends
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
14
|
-
export
|
|
13
|
+
declare const CustomHeaderLink: FC<CustomHeaderLinkProps>;
|
|
14
|
+
export { CustomHeaderLink };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './custom-modal-dialog.scss';
|
|
3
|
-
export declare const CustomModalDialog: FC<
|
|
3
|
+
export declare const CustomModalDialog: FC<ComponentProps<'div'>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
8
|
+
declare const CustomModalProvider: FC<ComponentProps<'div'>>;
|
|
9
9
|
export { CustomModalProvider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './internal-institutional.scss';
|
|
3
|
-
export interface InternalInstitutionalProps extends
|
|
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
|
|
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
|
-
|
|
31
|
+
declare const ModalMenu: FC<ModalMenuProps>;
|
|
32
|
+
export { ModalMenu };
|
package/artifacts/dist/types/components/header/internals/shared/panel-menu/layout.interface.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface LayoutProps extends
|
|
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
|
|
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
|
|
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
|
-
|
|
40
|
+
declare const PanelMenu: FC<PanelMenuProps>;
|
|
41
|
+
export { PanelMenu };
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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 {
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
1
|
+
import { ComponentProps, FC } from 'react';
|
|
2
2
|
import './date-text.scss';
|
|
3
|
-
export interface DateTextProps extends
|
|
3
|
+
export interface DateTextProps extends ComponentProps<'input'> {
|
|
4
4
|
dayInputPlaceholder?: string;
|
|
5
5
|
monthInputPlaceholder?: string;
|
|
6
6
|
yearInputPlaceholder?: string;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
export
|
|
8
|
+
declare const DateText: FC<DateTextProps>;
|
|
9
|
+
export { DateText };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
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
|
|
3
|
+
import { ComponentProps, FC, ReactNode } from 'react';
|
|
4
4
|
import './input-email-bar.scss';
|
|
5
|
-
export interface InputEmailBarProps extends
|
|
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
|
-
|
|
39
|
+
declare const InputEmailBar: FC<InputEmailBarProps>;
|
|
40
|
+
export { InputEmailBar };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
51
|
-
export
|
|
50
|
+
declare const InputNumber: FC<InputNumberProps>;
|
|
51
|
+
export { InputNumber };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
53
|
+
declare const InputPassword: FC<InputPasswordProps>;
|
|
54
|
+
export { InputPassword };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
87
|
+
declare const InputPhone: FC<InputPhoneProps>;
|
|
88
|
+
export { InputPhone };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
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<
|
|
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
|
-
|
|
63
|
+
declare const InputRange: FC<InputRangeProps>;
|
|
64
|
+
export { InputRange };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BooleanProp, FeedbackState } from '../../models';
|
|
2
|
-
import
|
|
2
|
+
import { ComponentProps, FC, ReactNode } from 'react';
|
|
3
3
|
import './input-search.scss';
|
|
4
|
-
export interface InputSearchProps extends
|
|
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
|
-
|
|
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
|
|
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<
|
|
8
|
+
searchActionButton?: Ref<HTMLButtonElement>;
|
|
10
9
|
/**
|
|
11
10
|
* React ref object to the voice action button.
|
|
12
11
|
*/
|
|
13
|
-
voiceActionButton?: Ref<
|
|
12
|
+
voiceActionButton?: Ref<HTMLButtonElement>;
|
|
14
13
|
}
|
|
15
|
-
export interface InputSearchBarProps extends
|
|
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
|
-
|
|
64
|
+
declare const InputSearchBar: FC<InputSearchBarProps>;
|
|
65
|
+
export { InputSearchBar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanProp, FeedbackState } from '../../models';
|
|
2
|
-
import
|
|
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<
|
|
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
|
-
|
|
117
|
+
declare const InputSelect: FC<InputSelectProps>;
|
|
118
|
+
export { InputSelect };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
42
|
+
declare const InputText: FC<InputTextProps>;
|
|
43
|
+
export { InputText };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
39
|
-
export
|
|
38
|
+
declare const InputTextArea: FC<InputTextAreaProps>;
|
|
39
|
+
export { InputTextArea };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
-
|
|
86
|
+
declare const InputTime: FC<InputTimeProps>;
|
|
87
|
+
export { InputTime };
|