@ama-pt/agora-design-system 1.2.3 → 2.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 +5900 -7071
- 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 -0
- package/artifacts/dist/tailwind.css +40592 -0
- package/artifacts/dist/types/components/accordion/accordion.d.ts +20 -0
- package/artifacts/dist/types/components/accordion-group/accordion-group.d.ts +1 -6
- package/artifacts/dist/types/components/accordion-group/index.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-single/card-single.d.ts +1 -1
- package/artifacts/dist/types/components/dropdown/dropdown.d.ts +1 -1
- package/artifacts/dist/types/components/footer/federated-footer/federated-footer.d.ts +16 -4
- package/artifacts/dist/types/components/footer/public-footer/public-footer-main-plus-card-links.d.ts +3 -0
- package/artifacts/dist/types/components/footer/public-footer/public-footer.d.ts +17 -5
- package/artifacts/dist/types/components/footer/shared-components/footer-caption-partners.d.ts +1 -0
- package/artifacts/dist/types/components/footer/shared-components/footer-social-useful-copyright.d.ts +2 -0
- package/artifacts/dist/types/components/header/general-bar/authenticated/authenticated-header.d.ts +5 -0
- package/artifacts/dist/types/components/header/header.d.ts +28 -67
- package/artifacts/dist/types/components/header/index.d.ts +59 -5
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/header-data-context.d.ts +14 -14
- package/artifacts/dist/types/components/header/internals/context/data-context/header-data-controller.d.ts +3 -0
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/areas-utils.d.ts +3 -3
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/authenticated-utils.d.ts +6 -6
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/brand-utils.d.ts +2 -2
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/general-utils.d.ts +2 -2
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/languages-utils.d.ts +4 -4
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/navigation-utils.d.ts +5 -5
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/search-utils.d.ts +6 -6
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/data-context/utils/unauthenticated-utils.d.ts +4 -4
- package/artifacts/dist/types/components/header/internals/context/external-context/header-external-controller.d.ts +4 -0
- package/artifacts/dist/types/components/{header-v2 → header}/internals/context/menu-context/header-menu-context.d.ts +3 -3
- package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/areas/internal-area.d.ts +1 -1
- package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/authenticated/internal-authenticated.d.ts +3 -3
- package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/languages/internal-languages-layout.d.ts +1 -1
- package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/search/internal-custom-search-layout.d.ts +1 -1
- package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/search/internal-search-layout.d.ts +1 -1
- package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/unauthenticated/internal-unauthenticated-layout.d.ts +1 -1
- package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-burger/internal-navigation-burger-layout.d.ts +1 -1
- package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-list/internal-navigation-link-layout.d.ts +3 -3
- package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +2 -2
- package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-modal/internal-navigation-modal-layout.d.ts +1 -1
- package/artifacts/dist/types/components/index.d.ts +1 -2
- package/artifacts/dist/types/components/input-select/input-select.d.ts +7 -0
- package/artifacts/dist/types/components/modal-dialog/modal-config.model.d.ts +9 -1
- package/artifacts/dist/types/components/modal-dialog/modal-context.d.ts +2 -2
- package/artifacts/dist/types/components/ratings/index.d.ts +0 -1
- package/artifacts/dist/types/components/sidebar/models/sidebar-variant.type.d.ts +1 -1
- package/artifacts/dist/types/components/sidebar/sidebar-item-navigation-mobile/sidebar-item-navigation-mobile.d.ts +1 -1
- package/artifacts/dist/types/components/stepper/index.d.ts +4 -0
- package/artifacts/dist/types/components/stepper/step.d.ts +18 -0
- package/artifacts/dist/types/components/stepper/stepper.d.ts +16 -0
- package/artifacts/dist/types/components/table/table.d.ts +1 -5
- package/artifacts/dist/types/components/tabs/desktop/tabs-desktop.d.ts +19 -0
- package/artifacts/dist/types/components/tabs/mobile/tabs-mobile.d.ts +17 -0
- package/artifacts/dist/types/components/tabs/tabs.d.ts +1 -2
- package/package.json +24 -24
- package/artifacts/dist/index.css +0 -1
- package/artifacts/dist/types/components/header/models/BackdropRef.d.ts +0 -5
- package/artifacts/dist/types/components/header/models/DrawerContentProps.d.ts +0 -7
- package/artifacts/dist/types/components/header/models/DrawerFooterProps.d.ts +0 -4
- package/artifacts/dist/types/components/header/models/DrawerMenuItemsProps.d.ts +0 -7
- package/artifacts/dist/types/components/header/models/DrawerMenuProps.d.ts +0 -5
- package/artifacts/dist/types/components/header/models/HeaderNavigationType.d.ts +0 -1
- package/artifacts/dist/types/components/header/models/MenuItemGeneralOptionsProps.d.ts +0 -6
- package/artifacts/dist/types/components/header/models/MenuProps.d.ts +0 -10
- package/artifacts/dist/types/components/header/models/SearchContentListLinkProps.d.ts +0 -6
- package/artifacts/dist/types/components/header/models/SubmenuAlignmentType.d.ts +0 -1
- package/artifacts/dist/types/components/header/models/SubmenuItemProps.d.ts +0 -24
- package/artifacts/dist/types/components/header/models/SubmenuSearchContentProps.d.ts +0 -12
- package/artifacts/dist/types/components/header/models/SubmenuType.d.ts +0 -1
- package/artifacts/dist/types/components/header/models/index.d.ts +0 -13
- package/artifacts/dist/types/components/header/shared-components/header-burger-navigation/header-burger-navigation.d.ts +0 -5
- package/artifacts/dist/types/components/header/shared-components/header-burger-navigation/header-burger-primary-navigation.d.ts +0 -15
- package/artifacts/dist/types/components/header/shared-components/header-burger-navigation/header-burger-secondary-navigation.d.ts +0 -17
- package/artifacts/dist/types/components/header/shared-components/header-general-options/header-general-options.d.ts +0 -37
- package/artifacts/dist/types/components/header/shared-components/header-menu-item-options/header-menu-item-options-links.d.ts +0 -7
- package/artifacts/dist/types/components/header/shared-components/header-menu-item-options/header-menu-item-options-search.d.ts +0 -3
- package/artifacts/dist/types/components/header/shared-components/header-menu-item-options/header-menu-item-options.d.ts +0 -20
- package/artifacts/dist/types/components/header/shared-components/header-navigation/header-navigation.d.ts +0 -38
- package/artifacts/dist/types/components/header/utils/close-other-menu.d.ts +0 -1
- package/artifacts/dist/types/components/header/utils/handle-click-menu-item.d.ts +0 -4
- package/artifacts/dist/types/components/header-v2/general-bar/authenticated/authenticated-header.d.ts +0 -5
- package/artifacts/dist/types/components/header-v2/header-v2.d.ts +0 -30
- package/artifacts/dist/types/components/header-v2/index.d.ts +0 -58
- package/artifacts/dist/types/components/header-v2/internals/context/data-context/header-data-controller.d.ts +0 -3
- package/artifacts/dist/types/components/header-v2/internals/context/external-context/header-external-controller.d.ts +0 -4
- package/artifacts/dist/types/components/icon/assets/empty-icon.d.ts +0 -4
- package/artifacts/dist/types/components/menu-item/index.d.ts +0 -2
- package/artifacts/dist/types/components/menu-item/menu-item.d.ts +0 -54
- package/artifacts/dist/types/components/ratings/rating-stars/index.d.ts +0 -2
- package/artifacts/dist/types/components/ratings/rating-stars/rating-stars.d.ts +0 -66
- /package/artifacts/dist/types/components/{header-v2 → header}/brand/brand.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/brand/institutional.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/brand/logo.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/areas/area.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/areas/areas.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/authenticated/authenticated-body-link.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/authenticated/authenticated-body.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/authenticated/authenticated-footer-action.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/authenticated/authenticated-footer.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/authenticated/authenticated.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/general-bar.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/languages/language.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/languages/languages.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/custom-search.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/default-search.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/search-input-container.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/search-related-link.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/search-related-links-title.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/search-related-links.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/search-title.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/search/search.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/unauthenticated/unauthenticated-link.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/general-bar/unauthenticated/unauthenticated.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/context/menu-context/header-menu-controller.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/context/menu-context/menu-type.enum.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/areas/internal-areas.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/authenticated/Internal-authenticated-drawer.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/authenticated/internal-authenticated-drawer-body.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/authenticated/internal-authenticated-drawer-footer.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/authenticated/internal-authenticated-drawer-header.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/internal-general-bar.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/languages/internal-language.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/languages/internal-languages.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/search/internal-search.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/general-bar/unauthenticated/internal-unauthenticated.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/internal-header.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/internal-navigation-bar.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/logo/internal-logo.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-burger/internal-navigation-burger.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-list/internal-navigation-list.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-modal/internal-modal-navbar.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/navigation-bar/navigation-modal/internal-navigation-modal.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/custom-header-link/custom-header-link.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/custom-modal/custom-modal-context.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/custom-modal/custom-modal-dialog.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/custom-modal/custom-modal-provider.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/hooks/use-scrolling.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/institutional/internal-institutional.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/modal-menu/modal-menu.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/panel-menu/layout.interface.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/internals/shared/panel-menu/panel-menu.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/navigation-bar/navigation-bar.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/navigation-bar/navigation-link.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/navigation-bar/navigation-root.d.ts +0 -0
- /package/artifacts/dist/types/components/{header-v2 → header}/navigation-bar/related-navigation-link.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutProps } from '../../../../../components/header
|
|
1
|
+
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import './internal-unauthenticated-layout.scss';
|
|
4
4
|
export declare const InternalUnauthenticatedLayout: FC<LayoutProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutProps } from '../../../../../components/header
|
|
1
|
+
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import './internal-navigation-burger-layout.scss';
|
|
4
4
|
export declare const InternalNavigationBurgerLayout: FC<LayoutProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LayoutProps } from '../../../../../components/header
|
|
2
|
-
import { NavigationLinkProps } from '../../../../../components/header
|
|
3
|
-
import { RelatedNavigationLinkProps } from '../../../../../components/header
|
|
1
|
+
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
|
+
import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
|
|
3
|
+
import { RelatedNavigationLinkProps } from '../../../../../components/header/navigation-bar/related-navigation-link';
|
|
4
4
|
import { FC, ReactElement, ReactNode } from 'react';
|
|
5
5
|
import './internal-navigation-link-layout.scss';
|
|
6
6
|
export interface InternalNavigationLinksLayoutProps extends Omit<LayoutProps, 'title'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NavigationLinkProps } from '../../../../../components/header
|
|
2
|
-
import { NavigationRootProps } from '../../../../../components/header
|
|
1
|
+
import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
|
|
2
|
+
import { NavigationRootProps } from '../../../../../components/header/navigation-bar/navigation-root';
|
|
3
3
|
import { FC, ReactElement } from 'react';
|
|
4
4
|
import './internal-modal-content.scss';
|
|
5
5
|
export interface InternalModalContentProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutProps } from '../../../../../components/header
|
|
1
|
+
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import './internal-navigation-modal-layout.scss';
|
|
4
4
|
export declare const InternalNavigationModalLayout: FC<LayoutProps>;
|
|
@@ -17,7 +17,6 @@ export * from './feedback';
|
|
|
17
17
|
export * from './footer';
|
|
18
18
|
export * from './glossary-letters';
|
|
19
19
|
export * from './header';
|
|
20
|
-
export * from './header-v2';
|
|
21
20
|
export * from './icon';
|
|
22
21
|
export * from './input-date';
|
|
23
22
|
export * from './input-email-bar';
|
|
@@ -33,7 +32,6 @@ export * from './input-textarea';
|
|
|
33
32
|
export * from './link-wrapper';
|
|
34
33
|
export * from './list';
|
|
35
34
|
export * from './loader-dialog';
|
|
36
|
-
export * from './menu-item';
|
|
37
35
|
export * from './modal-dialog';
|
|
38
36
|
export * from './pill';
|
|
39
37
|
export * from './popup-dialog';
|
|
@@ -49,6 +47,7 @@ export * from './sidebar';
|
|
|
49
47
|
export * from './skip-navigation';
|
|
50
48
|
export * from './status-card';
|
|
51
49
|
export * from './step-list';
|
|
50
|
+
export * from './stepper';
|
|
52
51
|
export * from './switch';
|
|
53
52
|
export * from './table';
|
|
54
53
|
export * from './tabs';
|
|
@@ -3,7 +3,14 @@ import React, { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
|
3
3
|
import { DropdownOptionProps, DropdownSectionProps, DropdownType } from '../../components/dropdown';
|
|
4
4
|
import './input-select.scss';
|
|
5
5
|
export interface InputSelectRef {
|
|
6
|
+
/**
|
|
7
|
+
* Array containing the selected options in the dropdown.
|
|
8
|
+
*/
|
|
6
9
|
selectedOptions: DropdownOptionProps[];
|
|
10
|
+
/**
|
|
11
|
+
* Reset the selection state within the component.
|
|
12
|
+
*/
|
|
13
|
+
clearSelectedOptions: () => void;
|
|
7
14
|
}
|
|
8
15
|
export interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>, 'options' | 'onChange'> {
|
|
9
16
|
/**
|
|
@@ -6,7 +6,15 @@ export interface ModalConfiguration extends Omit<ComponentPropsWithoutRef<'div'>
|
|
|
6
6
|
*/
|
|
7
7
|
closeButtonLabel: string;
|
|
8
8
|
/**
|
|
9
|
-
* Render
|
|
9
|
+
* Render modal with dark mode styles.
|
|
10
10
|
*/
|
|
11
11
|
darkMode?: BooleanProp;
|
|
12
|
+
/**
|
|
13
|
+
* Callback to run after modal is closed.
|
|
14
|
+
*/
|
|
15
|
+
onHide?: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Callback to run after modal is opened.
|
|
18
|
+
*/
|
|
19
|
+
onShow?: () => void;
|
|
12
20
|
}
|
|
@@ -3,13 +3,13 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { ModalConfiguration } from './modal-config.model';
|
|
4
4
|
export interface ModalContextProps {
|
|
5
5
|
/**
|
|
6
|
-
* The visible
|
|
6
|
+
* The visible modal element. If not visible the value is null.
|
|
7
7
|
*/
|
|
8
8
|
current: DialogElement | null;
|
|
9
9
|
/**
|
|
10
10
|
* Tells if a modal is visible or not.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
isVisible: () => boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Shows a new modal with the configurations provided.
|
|
15
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type SidebarVariantType = 'filter' | 'navigation'
|
|
1
|
+
export type SidebarVariantType = 'filter' | 'navigation';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { SidebarProps } from '../../../components/sidebar';
|
|
1
2
|
import { FC, RefObject } from 'react';
|
|
2
3
|
import './sidebar-item-navigation-mobile.scss';
|
|
3
|
-
import { SidebarProps } from '../../../components/sidebar';
|
|
4
4
|
export declare const SidebarItemNavigationMobile: FC<SidebarProps & {
|
|
5
5
|
sidebarRef: RefObject<HTMLUListElement>;
|
|
6
6
|
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, FC } from 'react';
|
|
2
|
+
import { BooleanProp } from '../../models';
|
|
3
|
+
import './step.scss';
|
|
4
|
+
/**
|
|
5
|
+
* Available step status.
|
|
6
|
+
*/
|
|
7
|
+
export type StepStatusType = 'done' | 'error' | 'current' | 'draft' | 'disabled' | 'default';
|
|
8
|
+
export interface StepProps extends ComponentPropsWithRef<'button'> {
|
|
9
|
+
/**
|
|
10
|
+
* Defines if the step is interactive. If the parent stepper have interactive prop defined, it will override this prop.
|
|
11
|
+
*/
|
|
12
|
+
interactive?: BooleanProp;
|
|
13
|
+
/**
|
|
14
|
+
* The status of the step.
|
|
15
|
+
*/
|
|
16
|
+
status?: StepStatusType;
|
|
17
|
+
}
|
|
18
|
+
export declare const Step: FC<StepProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BooleanProp } from '../../models';
|
|
2
|
+
import React, { ComponentPropsWithRef, ForwardRefRenderFunction, ReactElement } from 'react';
|
|
3
|
+
import { StepProps } from './step';
|
|
4
|
+
import './stepper.scss';
|
|
5
|
+
export interface StepperProps extends ComponentPropsWithRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* Defines if the stepper is interactive or not.
|
|
8
|
+
*/
|
|
9
|
+
interactive?: BooleanProp;
|
|
10
|
+
/**
|
|
11
|
+
* List of steps.
|
|
12
|
+
*/
|
|
13
|
+
children?: ReactElement<StepProps> | ReactElement<StepProps>[];
|
|
14
|
+
}
|
|
15
|
+
export declare const InnerStepper: ForwardRefRenderFunction<HTMLDivElement, StepperProps>;
|
|
16
|
+
export declare const Stepper: React.ForwardRefExoticComponent<Omit<StepperProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentPropsWithRef, ReactElement
|
|
1
|
+
import React, { ComponentPropsWithRef, ReactElement } from 'react';
|
|
2
2
|
import { TableLayout } from './models/table-layout.type';
|
|
3
3
|
import { TableBodyProps } from './table-body';
|
|
4
4
|
import { TableCaptionProps } from './table-caption';
|
|
@@ -7,10 +7,6 @@ import { TableHeaderProps } from './table-header';
|
|
|
7
7
|
import { TablePaginationProps } from './table-pagination';
|
|
8
8
|
import './table.scss';
|
|
9
9
|
export interface TableProps extends ComponentPropsWithRef<'table'> {
|
|
10
|
-
/**
|
|
11
|
-
* Define the title of table
|
|
12
|
-
*/
|
|
13
|
-
caption?: ReactNode;
|
|
14
10
|
/**
|
|
15
11
|
* Table children content
|
|
16
12
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BooleanProp } from '../../../models';
|
|
2
|
+
import React, { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
3
|
+
import { TabBodyProps } from '../tab-body';
|
|
4
|
+
import { TabHeaderProps } from '../tab-header';
|
|
5
|
+
import { TabCurrentType } from '../tabs';
|
|
6
|
+
import './tabs-desktop.scss';
|
|
7
|
+
export interface TabsDesktopProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
fullWidth: BooleanProp;
|
|
9
|
+
vertically?: BooleanProp;
|
|
10
|
+
tabListRef: React.RefObject<HTMLDivElement>;
|
|
11
|
+
tabPanelRef: React.RefObject<HTMLDivElement>;
|
|
12
|
+
activeTab: number;
|
|
13
|
+
activateTab: (index: number) => void;
|
|
14
|
+
currentType: TabCurrentType;
|
|
15
|
+
tabPanelClassName: string;
|
|
16
|
+
tabsHeaderData: Array<ReactElement<TabHeaderProps>>;
|
|
17
|
+
tabsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
18
|
+
}
|
|
19
|
+
export declare const TabsDesktop: FC<TabsDesktopProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BooleanProp } from '../../../models';
|
|
2
|
+
import React, { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
3
|
+
import { TabBodyProps } from '../tab-body';
|
|
4
|
+
import { TabHeaderProps } from '../tab-header';
|
|
5
|
+
import { TabCurrentType } from '../tabs';
|
|
6
|
+
import './tabs-mobile.scss';
|
|
7
|
+
interface TabsMobileProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
fullWidth: BooleanProp;
|
|
9
|
+
tabListRef: React.RefObject<HTMLDivElement>;
|
|
10
|
+
activeTab: number;
|
|
11
|
+
activateTab: (index: number) => void;
|
|
12
|
+
currentType: TabCurrentType;
|
|
13
|
+
tabsHeaderData: Array<ReactElement<TabHeaderProps>>;
|
|
14
|
+
tabsBodyData: Array<ReactElement<TabBodyProps>>;
|
|
15
|
+
}
|
|
16
|
+
export declare const TabsMobile: FC<TabsMobileProps>;
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
2
1
|
import { BooleanProp } from '../../models';
|
|
2
|
+
import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
|
|
3
3
|
import { TabProps } from './tab';
|
|
4
|
-
import './tabs.scss';
|
|
5
4
|
export type TabCurrentType = 'neutral' | 'primary' | 'secondary';
|
|
6
5
|
export interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-pt/agora-design-system",
|
|
3
3
|
"description": "Ágora Design system",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"main": "artifacts/dist/index.mjs",
|
|
6
6
|
"module": "artifacts/dist/index.umd.js",
|
|
7
7
|
"files": [
|
|
@@ -30,28 +30,28 @@
|
|
|
30
30
|
"@babel/preset-env": "^7.22.10",
|
|
31
31
|
"@babel/preset-react": "^7.22.5",
|
|
32
32
|
"@babel/preset-typescript": "^7.22.5",
|
|
33
|
-
"@mdx-js/react": "^
|
|
33
|
+
"@mdx-js/react": "^3.1.0",
|
|
34
34
|
"@playwright/test": "^1.39.0",
|
|
35
|
-
"@storybook/addon-a11y": "^8.
|
|
36
|
-
"@storybook/addon-actions": "^8.
|
|
37
|
-
"@storybook/addon-docs": "^8.
|
|
38
|
-
"@storybook/addon-essentials": "^8.
|
|
39
|
-
"@storybook/addon-interactions": "^8.
|
|
40
|
-
"@storybook/addon-links": "^8.
|
|
41
|
-
"@storybook/addon-storysource": "^8.
|
|
42
|
-
"@storybook/blocks": "^8.
|
|
35
|
+
"@storybook/addon-a11y": "^8.4.5",
|
|
36
|
+
"@storybook/addon-actions": "^8.4.5",
|
|
37
|
+
"@storybook/addon-docs": "^8.4.5",
|
|
38
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
39
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
40
|
+
"@storybook/addon-links": "^8.4.5",
|
|
41
|
+
"@storybook/addon-storysource": "^8.4.5",
|
|
42
|
+
"@storybook/blocks": "^8.4.5",
|
|
43
43
|
"@storybook/mdx2-csf": "^1.1.0",
|
|
44
44
|
"@storybook/preset-scss": "^1.0.3",
|
|
45
|
-
"@storybook/react": "^8.
|
|
46
|
-
"@storybook/react-vite": "^8.
|
|
47
|
-
"@storybook/test": "^8.
|
|
48
|
-
"@storybook/theming": "^8.
|
|
49
|
-
"@storybook/types": "^8.
|
|
45
|
+
"@storybook/react": "^8.4.5",
|
|
46
|
+
"@storybook/react-vite": "^8.4.5",
|
|
47
|
+
"@storybook/test": "^8.4.5",
|
|
48
|
+
"@storybook/theming": "^8.4.5",
|
|
49
|
+
"@storybook/types": "^8.4.5",
|
|
50
50
|
"@testing-library/jest-dom": "^6.4.2",
|
|
51
|
-
"@testing-library/react": "^
|
|
51
|
+
"@testing-library/react": "^16.0.1",
|
|
52
52
|
"@testing-library/user-event": "^14.5.1",
|
|
53
53
|
"@types/jest": "^29.5.12",
|
|
54
|
-
"@types/node": "^
|
|
54
|
+
"@types/node": "^22.10.0",
|
|
55
55
|
"@types/prop-types": "^15.7.5",
|
|
56
56
|
"@types/react": "^18.2.20",
|
|
57
57
|
"@types/react-dom": "^18.2.7",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@vitejs/plugin-react-swc": "^3.3.2",
|
|
62
62
|
"autoprefixer": "^10.4.17",
|
|
63
63
|
"babel-jest": "^29.7.0",
|
|
64
|
-
"date-fns": "^
|
|
65
|
-
"del": "^
|
|
64
|
+
"date-fns": "^4.1.0",
|
|
65
|
+
"del": "^8.0.0",
|
|
66
66
|
"eslint": "^8.47.0",
|
|
67
67
|
"eslint-config-airbnb": "^19.0.4",
|
|
68
68
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"eslint-plugin-prettier": "^5.0.0",
|
|
74
74
|
"eslint-plugin-react": "^7.33.2",
|
|
75
75
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
76
|
-
"eslint-plugin-storybook": "^0.
|
|
77
|
-
"glob": "^
|
|
78
|
-
"gulp": "^
|
|
76
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
77
|
+
"glob": "^11.0.0",
|
|
78
|
+
"gulp": "^5.0.0",
|
|
79
79
|
"gulp-clean-css": "^4.3.0",
|
|
80
80
|
"gulp-concat": "^2.6.1",
|
|
81
81
|
"gulp-file": "^0.4.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"react": "^18.2.0",
|
|
91
91
|
"react-dom": "^18.2.0",
|
|
92
92
|
"react-syntax-highlighter": "^15.5.0",
|
|
93
|
-
"storybook": "^8.
|
|
93
|
+
"storybook": "^8.4.5",
|
|
94
94
|
"tailwindcss": "^3.4.1",
|
|
95
95
|
"ts-dedent": "^2.2.0",
|
|
96
96
|
"ts-jest": "^29.1.2",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"tsc-alias": "^1.8.8",
|
|
99
99
|
"typescript": "*",
|
|
100
100
|
"vite": "^5.0.10",
|
|
101
|
-
"vite-tsconfig-paths": "^
|
|
101
|
+
"vite-tsconfig-paths": "^5.1.3"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"@types/react": "^18.2.0",
|