@ama-pt/agora-design-system 3.7.0 → 4.0.1

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 (105) hide show
  1. package/README.md +33 -76
  2. package/artifacts/dist/index.css +1 -0
  3. package/artifacts/dist/index.mjs +6673 -6956
  4. package/artifacts/dist/index.mjs.map +1 -1
  5. package/artifacts/dist/index.umd.js +1 -5
  6. package/artifacts/dist/index.umd.js.map +1 -1
  7. package/artifacts/dist/{solid-hand-heart-XS9tzo8e.mjs → solid-hand-heart-CmuM78yB.mjs} +4 -4
  8. package/artifacts/dist/{solid-hand-heart-XS9tzo8e.mjs.map → solid-hand-heart-CmuM78yB.mjs.map} +1 -1
  9. package/artifacts/dist/types/components/button/button.d.ts +1 -1
  10. package/artifacts/dist/types/components/cards/card-general/card-general.d.ts +23 -2
  11. package/artifacts/dist/types/components/cards/card-general/variants.d.ts +3 -0
  12. package/artifacts/dist/types/components/cards/card-general-v2/body-section/body-section-container.d.ts +7 -0
  13. package/artifacts/dist/types/components/cards/card-general-v2/card-general.d.ts +28 -0
  14. package/artifacts/dist/types/components/cards/card-general-v2/footer-section/footer-section-container.d.ts +7 -0
  15. package/artifacts/dist/types/components/cards/card-general-v2/header-section/header-section-container.d.ts +7 -0
  16. package/artifacts/dist/types/components/cards/card-general-v2/helpers.d.ts +32 -0
  17. package/artifacts/dist/types/components/cards/card-general-v2/image-section/image-section-container.d.ts +10 -0
  18. package/artifacts/dist/types/components/cards/card-general-v2/index.d.ts +31 -0
  19. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-anchor/card-anchor.d.ts +6 -0
  20. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-category/card-category.d.ts +6 -0
  21. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-description/card-description.d.ts +6 -0
  22. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-icon/card-icon.d.ts +8 -0
  23. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-logo/card-logo.d.ts +8 -0
  24. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-pills/card-pills.d.ts +14 -0
  25. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-status/card-status.d.ts +14 -0
  26. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-subtitle/card-subtitle.d.ts +6 -0
  27. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-title/card-title.d.ts +10 -0
  28. package/artifacts/dist/types/components/cards/card-general-v2/shared/card-topics/card-topics.d.ts +9 -0
  29. package/artifacts/dist/types/components/cards/card-general-v2/variants.d.ts +20 -0
  30. package/artifacts/dist/types/components/cards/index.d.ts +2 -6
  31. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-anchor.d.ts +5 -0
  32. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-go-back.d.ts +5 -0
  33. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-section-title.d.ts +5 -0
  34. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-short-description.d.ts +5 -0
  35. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel-title.d.ts +5 -0
  36. package/artifacts/dist/types/components/header/general-bar/ecosystem-panel/ecosystem-panel.d.ts +5 -0
  37. package/artifacts/dist/types/components/header/header.d.ts +2 -2
  38. package/artifacts/dist/types/components/header/index.d.ts +40 -12
  39. package/artifacts/dist/types/components/header/internals/context/data-context/header-data-context.d.ts +7 -5
  40. package/artifacts/dist/types/components/header/internals/context/data-context/utils/areas-utils.d.ts +4 -3
  41. package/artifacts/dist/types/components/header/internals/context/data-context/utils/ecosystem-panel-utils.d.ts +15 -0
  42. package/artifacts/dist/types/components/header/internals/context/data-context/utils/navigation-bar-utils.d.ts +10 -0
  43. package/artifacts/dist/types/components/header/internals/context/data-context/utils/navigation-utils.d.ts +2 -2
  44. package/artifacts/dist/types/components/header/internals/context/external-context/header-external-controller.d.ts +2 -1
  45. package/artifacts/dist/types/components/header/internals/context/menu-context/header-menu-context.d.ts +2 -1
  46. package/artifacts/dist/types/components/header/internals/context/menu-context/menu-type.enum.d.ts +2 -1
  47. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-anchor.d.ts +6 -0
  48. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-go-back.d.ts +6 -0
  49. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-section-title.d.ts +6 -0
  50. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-short-description.d.ts +6 -0
  51. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel-title.d.ts +6 -0
  52. package/artifacts/dist/types/components/header/internals/general-bar/ecosystem-panel/internal-ecosystem-panel.d.ts +8 -0
  53. package/artifacts/dist/types/components/header/internals/navigation-bar/helper.d.ts +9 -0
  54. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-area/internal-navigation-area.d.ts +11 -0
  55. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-link/internal-navigation-link.d.ts +8 -0
  56. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +1 -1
  57. package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-root/internal-navigation-root.d.ts +20 -0
  58. package/artifacts/dist/types/components/header/navigation-bar/navigation-area.d.ts +5 -0
  59. package/artifacts/dist/types/components/header/navigation-bar/navigation-bar.d.ts +3 -1
  60. package/artifacts/dist/types/components/header/navigation-bar/navigation-link.d.ts +2 -27
  61. package/artifacts/dist/types/components/header/navigation-bar/navigation-section.d.ts +5 -0
  62. package/artifacts/dist/types/components/input-search/input-search.d.ts +15 -1
  63. package/artifacts/dist/types/components/pill/pill.d.ts +2 -2
  64. package/artifacts/dist/types/components/progress-bar/index.d.ts +1 -1
  65. package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +37 -1
  66. package/artifacts/dist/types/components/progress-bar-group/progress-bar-group.d.ts +6 -1
  67. package/artifacts/dist/types/components/quiz/quiz-item-summary/quiz-item-summary.d.ts +0 -5
  68. package/artifacts/dist/types/components/timelines/timeline-horizontal/timeline-horizontal.d.ts +4 -0
  69. package/artifacts/dist/types/components/timelines/timeline-vertical/timeline-vertical.d.ts +4 -0
  70. package/artifacts/dist/types/components/toggle/toggle.d.ts +13 -1
  71. package/artifacts/dist/types/components/tooltip/tooltip.d.ts +8 -0
  72. package/artifacts/dist/types/configs/tailwind-config.d.ts +4 -385
  73. package/artifacts/dist/types/hooks/use-breakpoints-to-number.d.ts +3 -3
  74. package/artifacts/dist/types/index.d.ts +11 -1
  75. package/package.json +19 -8
  76. package/src/styles/theme.css +418 -0
  77. package/artifacts/dist/style.css +0 -1
  78. package/artifacts/dist/tailwind.css +0 -43719
  79. package/artifacts/dist/types/components/cards/card-article/card-article.d.ts +0 -49
  80. package/artifacts/dist/types/components/cards/card-article/index.d.ts +0 -2
  81. package/artifacts/dist/types/components/cards/card-collection/card-collection.d.ts +0 -27
  82. package/artifacts/dist/types/components/cards/card-collection/index.d.ts +0 -2
  83. package/artifacts/dist/types/components/cards/card-emphasize/card-emphasize.d.ts +0 -31
  84. package/artifacts/dist/types/components/cards/card-emphasize/index.d.ts +0 -2
  85. package/artifacts/dist/types/components/cards/card-highlight-single/card-highlight-single.d.ts +0 -23
  86. package/artifacts/dist/types/components/cards/card-highlight-single/index.d.ts +0 -2
  87. package/artifacts/dist/types/components/cards/card-single/card-single.d.ts +0 -40
  88. package/artifacts/dist/types/components/cards/card-single/index.d.ts +0 -2
  89. package/artifacts/dist/types/components/cards/card-topic/card-topic.d.ts +0 -56
  90. package/artifacts/dist/types/components/cards/card-topic/index.d.ts +0 -2
  91. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-anchor.d.ts +0 -5
  92. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-go-back.d.ts +0 -5
  93. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-section-title.d.ts +0 -5
  94. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-short-description.d.ts +0 -5
  95. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link-title.d.ts +0 -5
  96. package/artifacts/dist/types/components/header/general-bar/direct-link/direct-link.d.ts +0 -5
  97. package/artifacts/dist/types/components/header/internals/context/data-context/utils/direct-link-utils.d.ts +0 -15
  98. package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-area.d.ts +0 -6
  99. package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-areas.d.ts +0 -5
  100. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-anchor.d.ts +0 -6
  101. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-go-back.d.ts +0 -6
  102. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-section-title.d.ts +0 -6
  103. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-short-description.d.ts +0 -6
  104. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link-title.d.ts +0 -6
  105. package/artifacts/dist/types/components/header/internals/general-bar/direct-link/internal-direct-link.d.ts +0 -8
@@ -6,12 +6,12 @@ import { NavigationRootProps } from '../../../../../../components/header/navigat
6
6
  import { ReactElement } from 'react';
7
7
  export declare const getParsedNavigationBarProps: (children?: HeaderChildrenComponents) => NavigationBarProps | null;
8
8
  export declare const getParsedNavigationBarId: (children?: HeaderChildrenComponents) => string;
9
- export declare const countParsedNavigationItems: (children?: HeaderChildrenComponents) => number;
10
9
  export declare const getParsedNavigationItems: (children?: HeaderChildrenComponents) => ReactElement<NavigationRootProps | NavigationLinkProps | NavigationFreestyleProps>[];
10
+ export declare const countParsedNavigationItems: (children?: HeaderChildrenComponents) => number;
11
11
  export declare const getParsedModalMenuLabel: (children?: HeaderChildrenComponents) => string;
12
12
  export declare const getParsedModalAriaLabel: (children?: HeaderChildrenComponents) => string;
13
13
  export declare const getParsedModalCloseLabel: (children?: HeaderChildrenComponents) => string;
14
14
  export declare const getParsedResponsiveMenuLabel: (children?: HeaderChildrenComponents) => string;
15
+ export declare const getParsedNavigationHelpText: (children?: HeaderChildrenComponents) => string;
15
16
  export declare const getParsedResponsiveMenuAriaLabel: (children?: HeaderChildrenComponents) => string;
16
17
  export declare const getParsedResponsiveMenuBackToRootLabel: (children?: HeaderChildrenComponents) => string;
17
- export declare const hasNavigationBarInternal: (children?: HeaderChildrenComponents) => boolean;
@@ -1,4 +1,5 @@
1
1
  import { HeaderElement } from '../../../../../components/header/header';
2
2
  import { HeaderMenuContextProps } from '../../../../../components/header/internals/context/menu-context/header-menu-context';
3
3
  import { ForwardedRef } from 'react';
4
- export declare const useHeaderExternalController: (ref: ForwardedRef<HeaderElement>, headerMenuContext: HeaderMenuContextProps) => void;
4
+ import { HeaderDataContextProps } from '../data-context/header-data-context';
5
+ export declare const useHeaderExternalController: (ref: ForwardedRef<HeaderElement>, headerMenuContext: HeaderMenuContextProps, headerDataContext: HeaderDataContextProps) => void;
@@ -1,10 +1,11 @@
1
1
  import { DrawerElement } from '../../../../../components/drawer';
2
2
  import { InternalNavigationBurgerPanelElement } from '../../../../../components/header/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel';
3
+ import { InternalNavigationRootElement } from '../../../../../components/header/internals/navigation-bar/navigation-root/internal-navigation-root';
3
4
  import { ModalMenuElement } from '../../../../../components/header/internals/shared/modal-menu/modal-menu';
4
5
  import { PanelMenuElement } from '../../../../../components/header/internals/shared/panel-menu/panel-menu';
5
6
  import { RefObject } from 'react';
6
7
  import { MenuTypeEnum } from './menu-type.enum';
7
- export type HeaderMenuContextRef = PanelMenuElement | HTMLDivElement | DrawerElement | ModalMenuElement | InternalNavigationBurgerPanelElement | null;
8
+ export type HeaderMenuContextRef = PanelMenuElement | HTMLDivElement | HTMLUListElement | HTMLAnchorElement | DrawerElement | ModalMenuElement | InternalNavigationBurgerPanelElement | InternalNavigationRootElement | null;
8
9
  export interface HeaderMenuContextProps {
9
10
  menuRefMap: Map<MenuTypeEnum | string, RefObject<HeaderMenuContextRef>>;
10
11
  collapseAllMenus: () => void;
@@ -14,5 +14,6 @@ export declare enum MenuTypeEnum {
14
14
  NavigationBurgerLayout = "NavigationBurgerLayout",
15
15
  GeneralBarPortal = "GeneralBarPortal",
16
16
  NavigationBarPortal = "NavigationBarPortal",
17
- DirectLink = "DirectLink"
17
+ EcosystemPanel = "EcosystemPanel",
18
+ NavigationRoot = "NavigationRoot"
18
19
  }
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { AnchorProps } from '../../../../../components/anchor';
3
+ import './internal-ecosystem-panel-anchor.css';
4
+ export interface InternalEcosystemPanelAnchorProps extends AnchorProps {
5
+ }
6
+ export declare const InternalEcosystemPanelAnchor: FC<InternalEcosystemPanelAnchorProps>;
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from '../../../../../components/button';
2
+ import { FC } from 'react';
3
+ import './internal-ecosystem-panel-go-back.css';
4
+ export interface InternalEcosystemPanelGoBackProps extends ButtonProps {
5
+ }
6
+ export declare const InternalEcosystemPanelGoBack: FC<InternalEcosystemPanelGoBackProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
+ export interface InternalEcosystemPanelSectionTitleProps extends ComponentProps<'div'> {
3
+ children: ReactNode;
4
+ }
5
+ import './internal-ecosystem-panel-section-title.css';
6
+ export declare const InternalEcosystemPanelSectionTitle: FC<InternalEcosystemPanelSectionTitleProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
+ import './internal-ecosystem-panel-short-description.css';
3
+ export interface InternalEcosystemPanelShortDescriptionProps extends ComponentProps<'div'> {
4
+ children: ReactNode;
5
+ }
6
+ export declare const InternalEcosystemPanelShortDescription: FC<InternalEcosystemPanelShortDescriptionProps>;
@@ -0,0 +1,6 @@
1
+ import { ComponentProps, FC, ReactNode } from 'react';
2
+ import './internal-ecosystem-panel-title.css';
3
+ export interface InternalEcosystemPanelTitleProps extends ComponentProps<'div'> {
4
+ children: ReactNode;
5
+ }
6
+ export declare const InternalEcosystemPanelTitle: FC<InternalEcosystemPanelTitleProps>;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ import './internal-ecosystem-panel.css';
3
+ export interface InternalEcosystemPanelProps {
4
+ text: ReactNode;
5
+ logo?: ReactNode;
6
+ children: ReactNode;
7
+ }
8
+ export declare const InternalEcosystemPanel: () => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React, { ReactElement, RefObject } from 'react';
2
+ import { NavigationAreaProps } from '../../navigation-bar/navigation-area';
3
+ import { NavigationRootProps } from '../../navigation-bar/navigation-root';
4
+ import { NavigationLinkProps } from '../../navigation-bar/navigation-link';
5
+ import { NavigationBarSectionData } from '../context/data-context/utils/navigation-bar-utils';
6
+ import { ButtonProps } from '../../../../components/button';
7
+ export declare function transformIntoInternalNavigationArea(area: ReactElement<NavigationAreaProps> | null, index: number, areaSelected: number, areaRefs: RefObject<HTMLButtonElement[]>, setAreaSelected: (index: number) => void, props: ButtonProps): React.JSX.Element | null;
8
+ export declare function transformIntoInternalLink(link: ReactElement<NavigationRootProps | NavigationLinkProps>, index: number, registerMenu?: boolean): React.JSX.Element | undefined;
9
+ export declare function transformAreaIntoLI(sectionData: NavigationBarSectionData[], areaRefs: React.RefObject<HTMLButtonElement[]>, areaSelected: number, setAreaSelected: (index: number) => void, showNavigation: boolean): React.JSX.Element[];
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode, RefObject } from 'react';
2
+ import { ButtonProps } from '../../../../../components/button';
3
+ import './internal-navigation-area.css';
4
+ interface InternalNavigationAreaProps extends ButtonProps {
5
+ position: number;
6
+ selected: boolean;
7
+ children: ReactNode;
8
+ areaRefs: RefObject<HTMLButtonElement[]>;
9
+ }
10
+ export declare function InternalNavigationArea(props: Readonly<InternalNavigationAreaProps>): React.JSX.Element;
11
+ export default InternalNavigationArea;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { AnchorProps } from '../../../../../components/anchor';
3
+ import './internal-navigation-link.css';
4
+ interface InternalNavigationLinkProps extends AnchorProps {
5
+ menuId?: string;
6
+ }
7
+ export declare function InternalNavigationLink({ menuId, ref, ...props }: Readonly<InternalNavigationLinkProps>): React.JSX.Element;
8
+ export default InternalNavigationLink;
@@ -1,8 +1,8 @@
1
1
  import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
2
2
  import { NavigationRootProps } from '../../../../../components/header/navigation-bar/navigation-root';
3
3
  import { FC, ReactElement } from 'react';
4
- import './internal-modal-content.css';
5
4
  import { NavigationFreestyleProps } from '../../../../../components/header/navigation-bar/navigation-freestyle';
5
+ import './internal-modal-content.css';
6
6
  export interface InternalModalContentProps {
7
7
  item: ReactElement<NavigationRootProps | NavigationLinkProps | NavigationFreestyleProps>;
8
8
  }
@@ -0,0 +1,20 @@
1
+ import React, { ReactElement } from 'react';
2
+ import { ButtonProps } from '../../../../../components/button';
3
+ import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
4
+ import { RelatedNavigationLinkProps } from '../../../../../components/header/navigation-bar/related-navigation-link';
5
+ import { NavigationFreestyleProps } from '../../../../../components/header/navigation-bar/navigation-freestyle';
6
+ import './internal-navigation-root.css';
7
+ interface InternalNavigationRootProps extends ButtonProps {
8
+ id: string;
9
+ label: string;
10
+ linksAriaLabel?: string;
11
+ relatedLinksAriaLabel?: string;
12
+ children: ReactElement<NavigationLinkProps | RelatedNavigationLinkProps | NavigationFreestyleProps> | ReactElement<NavigationLinkProps | RelatedNavigationLinkProps>[];
13
+ }
14
+ export interface InternalNavigationRootElement extends HTMLDivElement {
15
+ expand: () => void;
16
+ collapse: () => void;
17
+ isExpanded: boolean;
18
+ }
19
+ export declare function InternalNavigationRoot(props: Readonly<InternalNavigationRootProps>): React.JSX.Element;
20
+ export default InternalNavigationRoot;
@@ -0,0 +1,5 @@
1
+ import { ButtonProps } from '../../../components/button';
2
+ import { FC } from 'react';
3
+ export interface NavigationAreaProps extends ButtonProps {
4
+ }
5
+ export declare const NavigationArea: FC<NavigationAreaProps>;
@@ -1,14 +1,16 @@
1
1
  import { ComponentProps, FC, ReactElement } from 'react';
2
2
  import { NavigationRootProps } from './navigation-root';
3
3
  import { NavigationLinkProps } from './navigation-link';
4
+ import { NavigationSectionProps } from './navigation-section';
4
5
  export interface NavigationBarProps extends ComponentProps<'div'> {
5
6
  id?: string;
6
7
  responsiveMenuLabel?: string;
7
8
  responsiveMenuAriaLabel?: string;
8
9
  responsiveMenuBackToRootLabel?: string;
10
+ navigationHelpText?: string;
9
11
  modalMenuLabel?: string;
10
12
  modalAriaLabel?: string;
11
13
  modalCloseLabel?: string;
12
- children: ReactElement<NavigationRootProps | NavigationLinkProps> | ReactElement<NavigationRootProps | NavigationLinkProps>[];
14
+ children: ReactElement<NavigationSectionProps | NavigationRootProps | NavigationLinkProps> | ReactElement<NavigationSectionProps | NavigationRootProps | NavigationLinkProps>[];
13
15
  }
14
16
  export declare const NavigationBar: FC<NavigationBarProps>;
@@ -1,30 +1,5 @@
1
- import { LinkWrapperProps } from '../../../components/link-wrapper';
2
- import { BooleanProp } from '../../../models';
3
1
  import { FC } from 'react';
4
- export interface NavigationLinkProps extends LinkWrapperProps {
5
- /**
6
- * Defines if uses an icon.
7
- */
8
- hasIcon?: BooleanProp;
9
- /**
10
- * Defines if children content it is to be rendered.
11
- */
12
- iconOnly?: BooleanProp;
13
- /**
14
- * Defines the name of the leading icon to use.
15
- */
16
- leadingIcon?: string;
17
- /**
18
- * Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
19
- */
20
- leadingIconHover?: string;
21
- /**
22
- * Defines the name of the trailing icon to use.
23
- */
24
- trailingIcon?: string;
25
- /**
26
- * Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
27
- */
28
- trailingIconHover?: string;
2
+ import { AnchorProps } from '../../../components/anchor';
3
+ export interface NavigationLinkProps extends AnchorProps {
29
4
  }
30
5
  export declare const NavigationLink: FC<NavigationLinkProps>;
@@ -0,0 +1,5 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface NavigationSectionProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const NavigationSection: FC<NavigationSectionProps>;
@@ -1,6 +1,12 @@
1
1
  import { BooleanProp, FeedbackState } from '../../models';
2
2
  import { ComponentProps, FC, ReactNode } from 'react';
3
3
  import './input-search.css';
4
+ export interface SearchResultTextProps extends ComponentProps<'div'> {
5
+ /**
6
+ * Result text displayed below helper text.
7
+ */
8
+ searchResultText?: ReactNode;
9
+ }
4
10
  export interface InputSearchProps extends ComponentProps<'input'> {
5
11
  /**
6
12
  * Input label text.
@@ -51,7 +57,15 @@ export interface InputSearchProps extends ComponentProps<'input'> {
51
57
  */
52
58
  hasHelperText?: BooleanProp;
53
59
  /**
54
- * Accessible label for screen readers, prepended to feedbackText.
60
+ * Defines result text.
61
+ */
62
+ searchResultText?: ReactNode;
63
+ /**
64
+ * Show or hide the result text.
65
+ */
66
+ hasSearchResultText?: BooleanProp;
67
+ /**
68
+ * Accessible label for screen readers, prepended to feedbackText.
55
69
  */
56
70
  feedbackStateLabel?: string;
57
71
  /**
@@ -4,7 +4,7 @@ import './pill.css';
4
4
  /**
5
5
  * The available variants of the pill. This variants will define the background and border color of the pill.
6
6
  */
7
- export type PillVariant = 'primary' | 'secondary' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
7
+ export type PillVariant = 'primary' | 'secondary' | 'secondary-light' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
8
8
  /**
9
9
  * The available pill appearances. Defines the pill shape.
10
10
  */
@@ -13,7 +13,7 @@ export type PillAppearance = 'solid' | 'outline';
13
13
  * The available pill size. Defines the pill size.
14
14
  */
15
15
  export type PillSize = 'default' | 'large';
16
- export interface PillProps extends ComponentProps<'div'> {
16
+ export interface PillProps extends Omit<ComponentProps<'div'>, 'appearance'> {
17
17
  /**
18
18
  * The pill appearance. Define the pill Shape.
19
19
  */
@@ -1,2 +1,2 @@
1
1
  export { ProgressBar } from './progress-bar';
2
- export type { ProgressBarProps } from './progress-bar';
2
+ export type { ProgressBarProps, ProgressBarVariant } from './progress-bar';
@@ -1,11 +1,43 @@
1
1
  import { ComponentProps, FC } from 'react';
2
2
  import { BooleanProp } from '../../models';
3
3
  import './progress-bar.css';
4
+ /**
5
+ * The available variants of the progress bar. This variants will define the presentation of the progress.
6
+ */
7
+ export type ProgressBarVariant = 'percentage' | 'step';
8
+ /**
9
+ * The available variants of the progress bar. This variants will define the presentation of the progress.
10
+ */
11
+ export type ProgressBarAppearance = 'slim' | 'regular';
12
+ /**
13
+ * The available variants of the steps progress bar.
14
+ */
15
+ export type ProgressBarListStatus = 'error' | 'success' | 'hold';
4
16
  export interface ProgressBarProps extends ComponentProps<'div'> {
17
+ /**
18
+ * The available appearance of the style progress bar. This variants will define the height of the progress bar.
19
+ */
20
+ appearance?: ProgressBarAppearance;
21
+ /**
22
+ * The available variants of the progress bar. This variants will define the presentation of the progress bar.
23
+ */
24
+ variant?: ProgressBarVariant;
5
25
  /**
6
26
  * The current value of the progress.
7
27
  */
8
28
  value?: number;
29
+ /**
30
+ * The current step of the progress.
31
+ */
32
+ currentStep?: number;
33
+ /**
34
+ * The total value of the steps.
35
+ */
36
+ totalStep?: number;
37
+ /**
38
+ * The status of the steps.
39
+ */
40
+ listStepStatus?: Array<ProgressBarListStatus>;
9
41
  /**
10
42
  * The maximum value of the progress.
11
43
  */
@@ -14,6 +46,10 @@ export interface ProgressBarProps extends ComponentProps<'div'> {
14
46
  * The label text to display.
15
47
  */
16
48
  label?: string;
49
+ /**
50
+ * The fallback text for browsers that don't support progress bars.
51
+ */
52
+ fallbackText?: string;
17
53
  /**
18
54
  * Whether to hide the label or not.
19
55
  */
@@ -39,7 +75,7 @@ export interface ProgressBarProps extends ComponentProps<'div'> {
39
75
  */
40
76
  isLast?: boolean;
41
77
  /**
42
- * Whether the progress bass is in the middle or not.
78
+ * Whether the progress bar is in the middle or not.
43
79
  */
44
80
  isMiddle?: boolean;
45
81
  /**
@@ -1,12 +1,17 @@
1
1
  import { FC, HtmlHTMLAttributes, ReactElement } from 'react';
2
2
  import { ProgressBarProps } from '../../components/progress-bar';
3
- import './progress-bar-group.css';
4
3
  import { BooleanProp } from '../../models';
4
+ import { ProgressBarAppearance } from '../progress-bar/progress-bar';
5
+ import './progress-bar-group.css';
5
6
  export interface ProgressBarGroupProps extends HtmlHTMLAttributes<HTMLDivElement> {
6
7
  /**
7
8
  * The label text to display.
8
9
  */
9
10
  label?: string;
11
+ /**
12
+ * The available appearance of the style progress bar. This variants will define the height of the progress bar.
13
+ */
14
+ appearance?: ProgressBarAppearance;
10
15
  /**
11
16
  * Whether to hide the label or not.
12
17
  */
@@ -1,15 +1,10 @@
1
1
  import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
- import { BooleanProp } from '../../../models';
3
2
  import './quiz-item-summary.css';
4
3
  export interface QuizItemSummaryProps extends ComponentPropsWithoutRef<'div'> {
5
4
  /**
6
5
  * Children content.
7
6
  */
8
7
  children?: ReactNode;
9
- /**
10
- * The dark mode boolean.
11
- */
12
- darkMode?: BooleanProp;
13
8
  /**
14
9
  * Navigation link. It can be a native anchor or any other type of link (example: NextJS link, ReactRouter Link, etc...).
15
10
  */
@@ -19,5 +19,9 @@ export interface TimelineHorizontalProps extends ComponentPropsWithoutRef<'div'>
19
19
  * Timeline events
20
20
  **/
21
21
  children: ReactElement<TimelineEventProps> | Array<ReactElement<TimelineEventProps>>;
22
+ /**
23
+ * Defines if the toggle renders in dark mode.
24
+ */
25
+ darkMode?: BooleanProp;
22
26
  }
23
27
  export declare const TimelineHorizontal: FC<TimelineHorizontalProps>;
@@ -11,5 +11,9 @@ export interface TimelineVerticalProps extends ComponentPropsWithoutRef<'div'> {
11
11
  * Timeline events
12
12
  */
13
13
  children: ReactElement<TimelineEventProps> | Array<ReactElement<TimelineEventProps>>;
14
+ /**
15
+ * Defines if the toggle renders in dark mode.
16
+ */
17
+ darkMode?: BooleanProp;
14
18
  }
15
19
  export declare const TimelineVertical: FC<TimelineVerticalProps>;
@@ -4,7 +4,7 @@ import './toggle.css';
4
4
  /**
5
5
  * The available toggle button appearances. Defines the button layout shape,
6
6
  */
7
- export type ToggleAppearance = 'button' | 'icon';
7
+ export type ToggleAppearance = 'button' | 'icon' | 'text';
8
8
  /**
9
9
  * The available variants of the toggle button. This variants will define the background and border color of the button.
10
10
  */
@@ -55,6 +55,18 @@ export interface ToggleProps extends ComponentProps<'input'> {
55
55
  * Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
56
56
  */
57
57
  trailingIconHover?: string;
58
+ /**
59
+ * Show or hide the pill
60
+ */
61
+ hasPill?: boolean;
62
+ /**
63
+ * Sets the pill value
64
+ */
65
+ pillValue?: number;
66
+ /**
67
+ * Sets the pill aria-label
68
+ */
69
+ pillAriaLabel?: string;
58
70
  }
59
71
  declare const Toggle: FC<ToggleProps>;
60
72
  export { Toggle };
@@ -38,6 +38,14 @@ export interface TooltipProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, '
38
38
  * The description of the Tooltip.
39
39
  */
40
40
  description: ReactNode;
41
+ /**
42
+ * Shows the tooltip pointer
43
+ */
44
+ showPointer?: BooleanProp;
45
+ /**
46
+ * Defines if the Tooltip has an icon.
47
+ */
48
+ showIcon?: BooleanProp;
41
49
  /**
42
50
  * The element where the tooltip is attached to.
43
51
  */