@ama-pt/agora-design-system 3.1.0 → 3.3.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 +4671 -4543
- 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/tailwind.css +288 -47
- package/artifacts/dist/types/components/accordion/accordion.d.ts +1 -1
- package/artifacts/dist/types/components/accordion-group/accordion-group.d.ts +1 -1
- package/artifacts/dist/types/components/anchor/anchor.d.ts +1 -1
- package/artifacts/dist/types/components/avatar/avatar.d.ts +1 -1
- package/artifacts/dist/types/components/avatar-group/avatar-group.d.ts +1 -1
- package/artifacts/dist/types/components/breadcrumb/desktop/breadcrumb-desktop.d.ts +1 -1
- package/artifacts/dist/types/components/breadcrumb/mobile/breadcrumb-mobile.d.ts +1 -1
- package/artifacts/dist/types/components/button/button.d.ts +1 -1
- package/artifacts/dist/types/components/button-group/button-group.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-action/{card-action-styles.d.ts → card-action-variants.d.ts} +4 -4
- package/artifacts/dist/types/components/cards/card-action/card-action.d.ts +10 -6
- package/artifacts/dist/types/components/cards/card-article/card-article.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-collection/card-collection.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-emphasize/card-emphasize.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-error/card-error.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-expandable/card-accordion/card-accordion.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-expandable/card-expandable-style.d.ts +16 -0
- package/artifacts/dist/types/components/cards/card-expandable/card-expandable.d.ts +2 -2
- package/artifacts/dist/types/components/cards/card-frame/card-frame.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-full-image/card-full-image.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-hero-helper/card-hero-helper.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-hero-index/card-hero-index.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-hero-sitemap/card-hero-sitemap.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-highlight/card-highlight.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-highlight/shared/inner-highlight-card.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-highlight-newsletter/card-highlight-newsletter.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-highlight-single/card-highlight-single.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-links/card-links.d.ts +12 -16
- package/artifacts/dist/types/components/cards/card-no-results/card-no-results.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-single/card-single.d.ts +1 -1
- package/artifacts/dist/types/components/cards/card-topic/card-topic.d.ts +1 -1
- package/artifacts/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/artifacts/dist/types/components/dialog/dialog.d.ts +1 -1
- package/artifacts/dist/types/components/drawer/drawer.d.ts +1 -1
- package/artifacts/dist/types/components/dropdown/dropdown.d.ts +9 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-context.d.ts +1 -0
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-filter-section.d.ts +1 -1
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-no-results.d.ts +1 -1
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-option.d.ts +1 -1
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-select-all-section.d.ts +1 -1
- package/artifacts/dist/types/components/dropdown/internals/internal-dropdown.d.ts +1 -1
- package/artifacts/dist/types/components/feedback/feedback.d.ts +1 -1
- package/artifacts/dist/types/components/footer/federated-footer/federated-footer.d.ts +1 -1
- package/artifacts/dist/types/components/footer/public-footer/public-footer.d.ts +1 -1
- package/artifacts/dist/types/components/glossary-letters/glossary-letters.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-area.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-areas.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/authenticated/Internal-authenticated-drawer.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/authenticated/internal-authenticated-drawer-body.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/authenticated/internal-authenticated-drawer-footer.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/authenticated/internal-authenticated-drawer-header.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/authenticated/internal-authenticated.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/internal-general-bar.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/languages/internal-language.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/languages/internal-languages-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/languages/internal-languages.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/search/internal-custom-search-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/search/internal-search-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/search/internal-search.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/unauthenticated/internal-unauthenticated-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/general-bar/unauthenticated/internal-unauthenticated.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/internal-header.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/internal-navigation-bar.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/logo/internal-logo.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-burger/internal-navigation-burger-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-burger/internal-navigation-burger-panel.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-burger/internal-navigation-burger.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-list/internal-navigation-link-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-list/internal-navigation-list.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-modal-content.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-modal-navbar.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/navigation-bar/navigation-modal/internal-navigation-modal-layout.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/shared/custom-header-link/custom-header-link.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/shared/custom-modal/custom-modal-dialog.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/shared/institutional/internal-institutional.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/shared/modal-menu/modal-menu.d.ts +1 -1
- package/artifacts/dist/types/components/header/internals/shared/panel-menu/panel-menu.d.ts +1 -1
- package/artifacts/dist/types/components/icon/icon.d.ts +1 -1
- package/artifacts/dist/types/components/input-date/date-text/date-text.d.ts +1 -1
- package/artifacts/dist/types/components/input-date/input-date.d.ts +1 -1
- package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +1 -1
- package/artifacts/dist/types/components/input-number/input-number.d.ts +1 -1
- package/artifacts/dist/types/components/input-password/input-password.d.ts +1 -1
- package/artifacts/dist/types/components/input-phone/input-phone.d.ts +1 -1
- package/artifacts/dist/types/components/input-range/input-range.d.ts +1 -1
- package/artifacts/dist/types/components/input-search/input-search.d.ts +1 -1
- package/artifacts/dist/types/components/input-search-bar/equalizer/equalizer.d.ts +1 -1
- package/artifacts/dist/types/components/input-search-bar/input-search-bar.d.ts +1 -1
- package/artifacts/dist/types/components/input-select/input-select.d.ts +7 -3
- package/artifacts/dist/types/components/input-text/input-text.d.ts +1 -1
- package/artifacts/dist/types/components/input-textarea/input-textarea.d.ts +1 -1
- package/artifacts/dist/types/components/input-time/input-time.d.ts +1 -1
- package/artifacts/dist/types/components/input-time/time-text/time-text.d.ts +1 -1
- package/artifacts/dist/types/components/link-wrapper/link-wrapper.d.ts +1 -1
- package/artifacts/dist/types/components/list/list.d.ts +1 -1
- package/artifacts/dist/types/components/loader-dialog/loader-dialog.d.ts +1 -1
- package/artifacts/dist/types/components/modal-dialog/modal-dialog.d.ts +1 -1
- package/artifacts/dist/types/components/panel-switcher/desktop/panel-switcher-desktop.d.ts +1 -1
- package/artifacts/dist/types/components/panel-switcher/mobile/panel-switcher-mobile.d.ts +1 -1
- package/artifacts/dist/types/components/pill/pill.d.ts +1 -1
- package/artifacts/dist/types/components/popup-dialog/popup-dialog.d.ts +1 -1
- package/artifacts/dist/types/components/progress-bar/progress-bar.d.ts +1 -1
- package/artifacts/dist/types/components/progress-bar-group/progress-bar-group.d.ts +1 -1
- package/artifacts/dist/types/components/quiz/quiz-item-summary/quiz-item-summary.d.ts +1 -1
- package/artifacts/dist/types/components/quiz/quiz-option/quiz-option.d.ts +1 -1
- package/artifacts/dist/types/components/radio/radio.d.ts +1 -1
- package/artifacts/dist/types/components/ratings/rating-buttons/rating-buttons.d.ts +1 -1
- package/artifacts/dist/types/components/ratings/rating-icons/rating-icons.d.ts +1 -1
- package/artifacts/dist/types/components/scribbles/scribbles.d.ts +1 -1
- package/artifacts/dist/types/components/search-pagination/search-pagination.d.ts +1 -1
- package/artifacts/dist/types/components/shared/bookmark-icon/bookmark-icon.d.ts +5 -1
- package/artifacts/dist/types/components/shared/feedback/feedback.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/sidebar/sidebar-item.d.ts +1 -1
- package/artifacts/dist/types/components/sidebar/sidebar.d.ts +1 -1
- package/artifacts/dist/types/components/skip-navigation/skip-navigation.d.ts +1 -1
- package/artifacts/dist/types/components/status-card/status-card.d.ts +1 -1
- package/artifacts/dist/types/components/step-list/step-list.d.ts +1 -1
- package/artifacts/dist/types/components/stepper/step.d.ts +1 -1
- package/artifacts/dist/types/components/stepper/stepper.d.ts +1 -1
- package/artifacts/dist/types/components/switch/switch.d.ts +1 -1
- package/artifacts/dist/types/components/table/table-pagination.d.ts +1 -1
- package/artifacts/dist/types/components/table/table.d.ts +1 -1
- package/artifacts/dist/types/components/tabs/desktop/tabs-desktop.d.ts +1 -1
- package/artifacts/dist/types/components/tabs/mobile/tabs-mobile.d.ts +1 -1
- package/artifacts/dist/types/components/tag/tag.d.ts +1 -1
- package/artifacts/dist/types/components/timelines/shared/timeline-event/timeline-event.d.ts +1 -1
- package/artifacts/dist/types/components/timelines/shared/timeline-event-vertical/timeline-event-vertical.d.ts +1 -1
- package/artifacts/dist/types/components/timelines/timeline-horizontal/timeline-horizontal.d.ts +1 -1
- package/artifacts/dist/types/components/timelines/timeline-vertical/timeline-vertical.d.ts +1 -1
- package/artifacts/dist/types/components/toasts/toast-context.d.ts +1 -1
- package/artifacts/dist/types/components/toasts/toast-provider.d.ts +1 -1
- package/artifacts/dist/types/components/toasts/toast.d.ts +1 -1
- package/artifacts/dist/types/components/toggle/toggle.d.ts +1 -1
- package/artifacts/dist/types/components/toggle-group/toggle-group.d.ts +3 -2
- package/artifacts/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/artifacts/dist/types/components/uploader/button-uploader/button-uploader.d.ts +1 -1
- package/artifacts/dist/types/components/uploader/drag-and-drop-uploader/drag-and-drop-uploader.d.ts +1 -1
- package/artifacts/dist/types/components/uploader/shared/file-list.d.ts +1 -1
- package/artifacts/dist/types/configs/tailwind-config.d.ts +2 -1
- package/artifacts/dist/types/hooks/index.d.ts +1 -0
- package/artifacts/dist/types/hooks/use-client-or-server-effect.d.ts +3 -0
- package/package.json +11 -23
- package/artifacts/dist/types/components/cards/card-links/card-links-style.d.ts +0 -9
|
@@ -2,7 +2,7 @@ import { AnchorProps } from '../../../components/anchor';
|
|
|
2
2
|
import { PillProps } from '../../../components/pill';
|
|
3
3
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
4
4
|
import { ComponentPropsWithoutRef, FC, ImgHTMLAttributes, ReactNode } from 'react';
|
|
5
|
-
import './card-article.
|
|
5
|
+
import './card-article.css';
|
|
6
6
|
export type CardArticleVariant = 'default' | 'indented';
|
|
7
7
|
export interface CardArticleProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { AnchorProps } from '../../../components/anchor';
|
|
3
3
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
4
|
-
import './card-collection.
|
|
4
|
+
import './card-collection.css';
|
|
5
5
|
export interface CardCollectionProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
6
6
|
/**
|
|
7
7
|
* Card Collection heading level title.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../../../components/button';
|
|
3
3
|
import { IconProps } from '../../../components/icon';
|
|
4
|
-
import './card-emphasize.
|
|
4
|
+
import './card-emphasize.css';
|
|
5
5
|
/**
|
|
6
6
|
* The available alignments of the card emphasize.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp } from '../../../models';
|
|
3
|
-
import './card-error.
|
|
3
|
+
import './card-error.css';
|
|
4
4
|
export interface CardErrorProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
5
5
|
/**
|
|
6
6
|
* The card icon.
|
package/artifacts/dist/types/components/cards/card-expandable/card-accordion/card-accordion.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import { BooleanProp, HeadingLevel } from '../../../../models';
|
|
3
|
-
import './card-accordion.
|
|
3
|
+
import './card-accordion.css';
|
|
4
4
|
/**
|
|
5
5
|
* The available variants of the accordion. Those variants will define the style of the accordion.
|
|
6
6
|
*/
|
|
7
|
-
export type CardAccordionVariant = 'white' | 'primary-
|
|
7
|
+
export type CardAccordionVariant = 'white' | 'neutral-100' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900';
|
|
8
8
|
export interface CardAccordionElement extends HTMLDivElement {
|
|
9
9
|
/**
|
|
10
10
|
* Expand the accordion.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CardExpandableVariant } from './card-expandable';
|
|
2
|
+
type CardExpandableStylesBody = {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
textColor: string;
|
|
5
|
+
iconColor: string;
|
|
6
|
+
anchorColor: string;
|
|
7
|
+
};
|
|
8
|
+
export type CardExpandableStylesMap = Record<CardExpandableVariant, CardExpandableStylesBody>;
|
|
9
|
+
export declare const cardExpandableStylesMap: CardExpandableStylesMap;
|
|
10
|
+
type BookMarkIconStyles = {
|
|
11
|
+
fill: string;
|
|
12
|
+
fillTop: string;
|
|
13
|
+
};
|
|
14
|
+
export type BookMarkIconStylesMap = Record<CardExpandableVariant, BookMarkIconStyles>;
|
|
15
|
+
export declare const bookMarkIconStylesMap: BookMarkIconStylesMap;
|
|
16
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
2
2
|
import { ComponentProps, FC, ReactNode, SyntheticEvent } from 'react';
|
|
3
|
-
import './card-expandable.scss';
|
|
4
3
|
import { CardAccordionElement } from './card-accordion';
|
|
4
|
+
import './card-expandable.css';
|
|
5
5
|
/**
|
|
6
6
|
* The available variants of the card. Those variants will define the style of the card.
|
|
7
7
|
*/
|
|
8
|
-
export type CardExpandableVariant = 'white' | 'primary-
|
|
8
|
+
export type CardExpandableVariant = 'white' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900' | 'neutral-100';
|
|
9
9
|
export interface CardExpandableElement extends CardAccordionElement {
|
|
10
10
|
}
|
|
11
11
|
export interface CardExpandableProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
3
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
|
-
import './card-frame.
|
|
4
|
+
import './card-frame.css';
|
|
5
5
|
export interface CardFrameProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
6
|
/**
|
|
7
7
|
* Children content.
|
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef, FC, ImgHTMLAttributes, ReactElement } from 'r
|
|
|
2
2
|
import { CardHeroHelperProps } from '../../../components/cards/card-hero-helper';
|
|
3
3
|
import { CardHeroIndexProps } from '../../../components/cards/card-hero-index';
|
|
4
4
|
import { CardHeroSitemapProps } from '../../../components/cards/card-hero-sitemap';
|
|
5
|
-
import './card-full-image.
|
|
5
|
+
import './card-full-image.css';
|
|
6
6
|
export interface CardFullImageProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
8
|
* Children content.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { HeadingLevel } from '../../../models';
|
|
3
3
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
|
-
import './card-hero-helper.
|
|
4
|
+
import './card-hero-helper.css';
|
|
5
5
|
export interface HelpTopic {
|
|
6
6
|
description: ReactNode;
|
|
7
7
|
anchor: AnchorProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { AnchorProps } from '../../../components/anchor';
|
|
3
3
|
import { HeadingLevel } from '../../../models';
|
|
4
|
-
import './card-hero-index.
|
|
4
|
+
import './card-hero-index.css';
|
|
5
5
|
export interface CardHeroIndexProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
6
6
|
/**
|
|
7
7
|
* The title of the card.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { AnchorProps } from '../../../components/anchor';
|
|
3
3
|
import { HeadingLevel } from '../../../models';
|
|
4
|
-
import './card-hero-sitemap.
|
|
4
|
+
import './card-hero-sitemap.css';
|
|
5
5
|
export interface CardHeroSitemapProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
6
6
|
/**
|
|
7
7
|
* Header title.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, FC, ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { AnchorProps } from '../../../components/anchor';
|
|
3
3
|
import { HeadingLevel } from '../../../models';
|
|
4
|
-
import './card-highlight.
|
|
4
|
+
import './card-highlight.css';
|
|
5
5
|
export type HighlightAreaPositionType = 'interior' | 'exterior';
|
|
6
6
|
export type HighlightCardPositionType = 'bottom' | 'middle';
|
|
7
7
|
export type HighlightCardSizeType = 's' | 'default';
|
package/artifacts/dist/types/components/cards/card-highlight/shared/inner-highlight-card.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { AnchorProps } from '../../../../components/anchor';
|
|
3
3
|
import { HeadingLevel } from '../../../../models';
|
|
4
|
-
import './inner-highlight-card.
|
|
4
|
+
import './inner-highlight-card.css';
|
|
5
5
|
export interface InnerHighlightCardProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
6
6
|
/**
|
|
7
7
|
* header title.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC, ImgHTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { InputEmailBarProps } from '../../../components/input-email-bar/input-email-bar';
|
|
3
|
-
import './card-highlight-newsletter.
|
|
3
|
+
import './card-highlight-newsletter.css';
|
|
4
4
|
export interface CardHighlightNewsletterProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
5
5
|
/**
|
|
6
6
|
* The title to be displayed.
|
package/artifacts/dist/types/components/cards/card-highlight-single/card-highlight-single.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../../../components/button';
|
|
3
|
-
import './card-highlight-single.
|
|
3
|
+
import './card-highlight-single.css';
|
|
4
4
|
import { BooleanProp } from '../../../models';
|
|
5
5
|
export interface CardHighlightSingleProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
6
6
|
/**
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { ComponentProps, FC, ImgHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
1
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
|
-
import '
|
|
5
|
-
|
|
2
|
+
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
|
+
import { ComponentProps, FC, ImgHTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
import './card-links.css';
|
|
5
|
+
export type CardLinksVariants = 'transparent' | 'white' | 'neutral-100' | 'primary-100' | 'secondary-100' | 'primary-300' | 'secondary-300' | 'primary-500' | 'primary-700' | 'primary-900';
|
|
6
6
|
export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
7
|
+
/**
|
|
8
|
+
* Add padding to the card.
|
|
9
|
+
*/
|
|
10
|
+
padding?: BooleanProp;
|
|
7
11
|
/**
|
|
8
12
|
* Style of card
|
|
9
13
|
*/
|
|
10
|
-
variant?:
|
|
14
|
+
variant?: CardLinksVariants;
|
|
11
15
|
/**
|
|
12
16
|
* Heading level to apply in the card.
|
|
13
17
|
*/
|
|
@@ -29,11 +33,7 @@ export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
29
33
|
*/
|
|
30
34
|
description?: ReactNode;
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
description2?: ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Second description of the card.
|
|
36
|
+
* card image.
|
|
37
37
|
*/
|
|
38
38
|
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
39
39
|
/**
|
|
@@ -49,12 +49,8 @@ export interface CardLinksProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
49
49
|
*/
|
|
50
50
|
topics?: ReactNode[];
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
darkMode?: BooleanProp;
|
|
55
|
-
/**
|
|
56
|
-
* Makes the title clickable.
|
|
52
|
+
* Makes the whole card clickable.
|
|
57
53
|
*/
|
|
58
|
-
|
|
54
|
+
blockedLink?: BooleanProp;
|
|
59
55
|
}
|
|
60
56
|
export declare const CardLinks: FC<CardLinksProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp } from '../../../models';
|
|
3
|
-
import './card-no-results.
|
|
3
|
+
import './card-no-results.css';
|
|
4
4
|
export interface CardNoResultsProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
5
5
|
/**
|
|
6
6
|
* Icon to display in the card.
|
|
@@ -2,7 +2,7 @@ import { ComponentProps, FC, ReactNode } from 'react';
|
|
|
2
2
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
3
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
4
|
import { IconProps } from '../../../components/icon';
|
|
5
|
-
import './card-single.
|
|
5
|
+
import './card-single.css';
|
|
6
6
|
/**
|
|
7
7
|
* Card Single Variants
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp, HeadingLevel } from '../../../models';
|
|
3
3
|
import { AnchorProps } from '../../../components/anchor';
|
|
4
|
-
import './card-topic.
|
|
4
|
+
import './card-topic.css';
|
|
5
5
|
import { PillProps } from '../../../components/pill/pill';
|
|
6
6
|
/**
|
|
7
7
|
* Available card topic variant styles.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
2
|
import { BooleanProp } from '../../models';
|
|
3
|
-
import './drawer.
|
|
3
|
+
import './drawer.css';
|
|
4
4
|
export type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
5
5
|
export interface DrawerElement extends HTMLDivElement {
|
|
6
6
|
/**
|
|
@@ -3,12 +3,16 @@ import { ComponentProps, FC, ReactElement, ReactNode } from 'react';
|
|
|
3
3
|
import { DropdownOptionProps } from './dropdown-option';
|
|
4
4
|
import { DropdownSectionProps } from './dropdown-section';
|
|
5
5
|
import { DropdownType } from './dropdown-type';
|
|
6
|
+
import { InternalDropdownContextProps } from './internals/internal-dropdown-context';
|
|
6
7
|
export interface DropdownElement extends HTMLDivElement {
|
|
7
8
|
visibility: boolean;
|
|
8
9
|
show: () => void;
|
|
9
10
|
hide: () => void;
|
|
10
11
|
first: () => void;
|
|
11
12
|
last: () => void;
|
|
13
|
+
selectedOptions: DropdownOptionProps[];
|
|
14
|
+
applyFilter: (filter: string) => void;
|
|
15
|
+
resetFilter: () => void;
|
|
12
16
|
}
|
|
13
17
|
export interface DropdownProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
14
18
|
/**
|
|
@@ -67,6 +71,11 @@ export interface DropdownProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
|
67
71
|
* Text to display in the "select all options across all sections" option.
|
|
68
72
|
*/
|
|
69
73
|
selectAllLabel?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Controls the visibility of the dropdown. If not provided, the component will manage its own state.
|
|
76
|
+
*/
|
|
77
|
+
showDropdown?: boolean;
|
|
70
78
|
}
|
|
79
|
+
export declare const showDropdownHandler: (showDropdown: boolean | undefined, dropdownState: InternalDropdownContextProps) => void;
|
|
71
80
|
declare const Dropdown: FC<DropdownProps>;
|
|
72
81
|
export { Dropdown };
|
|
@@ -5,6 +5,7 @@ export interface InternalDropdownContextProps {
|
|
|
5
5
|
type: DropdownType;
|
|
6
6
|
sections: InternalDropdownSectionProps[];
|
|
7
7
|
options: InternalDropdownOptionProps[];
|
|
8
|
+
selectedOptions: InternalDropdownOptionProps[];
|
|
8
9
|
visibility?: boolean;
|
|
9
10
|
show: () => void;
|
|
10
11
|
hide: () => void;
|
package/artifacts/dist/types/components/dropdown/internals/internal-dropdown-filter-section.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC, RefObject } from 'react';
|
|
2
|
-
import './internal-dropdown-filter-section.
|
|
2
|
+
import './internal-dropdown-filter-section.css';
|
|
3
3
|
export interface InternalDropdownFilterSectionRef extends RefObject<HTMLInputElement> {
|
|
4
4
|
filterElem: HTMLLIElement | null;
|
|
5
5
|
resetFilter: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanProp, IconPosition } from '../../../models';
|
|
2
2
|
import { ComponentProps, FC, ReactNode } from 'react';
|
|
3
|
-
import './internal-dropdown-option.
|
|
3
|
+
import './internal-dropdown-option.css';
|
|
4
4
|
export interface InternalDropdownOptionProps extends ComponentProps<'li'> {
|
|
5
5
|
className?: string;
|
|
6
6
|
name?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanProp } from '../../../models';
|
|
2
2
|
import { ComponentProps, FC, ReactNode } from 'react';
|
|
3
|
-
import './internal-dropdown.
|
|
3
|
+
import './internal-dropdown.css';
|
|
4
4
|
export interface InternalDropdownElement extends HTMLDivElement {
|
|
5
5
|
resetFilter: () => void;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
|
|
2
2
|
import { RatingButtonsProps } from '../../components/ratings';
|
|
3
3
|
import { BooleanProp, HeadingLevel } from '../../models';
|
|
4
|
-
import './feedback.
|
|
4
|
+
import './feedback.css';
|
|
5
5
|
export interface FeedbackProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
6
6
|
/**
|
|
7
7
|
* The title of the feedback.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CardFooterProps, LinkableIconsProps, LinkableImagesProps } from '../../../components/footer';
|
|
2
2
|
import { AnchorHTMLAttributes, FC, ReactNode } from 'react';
|
|
3
|
-
import './federated-footer.
|
|
3
|
+
import './federated-footer.css';
|
|
4
4
|
export interface FederatedFooterProps {
|
|
5
5
|
/**
|
|
6
6
|
* Informative card. Links limited to first 3, remaining array is discarded.
|
|
@@ -4,7 +4,7 @@ import { CardLinksFooterProps } from '../models/CardLinksFooterProps';
|
|
|
4
4
|
import { ContactsFooterProps } from '../models/ContactsFooterProps';
|
|
5
5
|
import { LinkableIconsProps } from '../models/LinkableIconsProps';
|
|
6
6
|
import { LinkableImagesProps } from '../models/LinkableImagesProps';
|
|
7
|
-
import './public-footer.
|
|
7
|
+
import './public-footer.css';
|
|
8
8
|
export interface PublicFooterProps {
|
|
9
9
|
/**
|
|
10
10
|
* Informative card. Links limited to first 3, remaining array is discarded.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, FC, HTMLProps } from 'react';
|
|
2
|
-
import './glossary-letters.
|
|
2
|
+
import './glossary-letters.css';
|
|
3
3
|
export type LetterStatus = 'default' | 'disabled' | 'selected';
|
|
4
4
|
export interface GlossaryLetter extends HTMLProps<HTMLAnchorElement> {
|
|
5
5
|
/**
|
package/artifacts/dist/types/components/header/internals/general-bar/areas/internal-area.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AreaProps } from '../../../../../components/header/general-bar/areas/area';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './internal-area.
|
|
3
|
+
import './internal-area.css';
|
|
4
4
|
export interface InternalAreaProps extends AreaProps {
|
|
5
5
|
}
|
|
6
6
|
export declare const InternalArea: FC<InternalAreaProps>;
|
|
@@ -2,7 +2,7 @@ import { AuthenticatedBodyProps } from '../../../../../components/header/general
|
|
|
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
4
|
import { ComponentProps, FC, ReactElement } from 'react';
|
|
5
|
-
import './internal-authenticated.
|
|
5
|
+
import './internal-authenticated.css';
|
|
6
6
|
interface InternalAuthenticatedProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
7
7
|
children?: null | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps> | ReactElement<AuthenticatedHeaderProps | AuthenticatedBodyProps | AuthenticatedFooterProps>[];
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './internal-languages-layout.
|
|
3
|
+
import './internal-languages-layout.css';
|
|
4
4
|
export declare const InternalLanguagesLayout: FC<LayoutProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './internal-custom-search-layout.
|
|
3
|
+
import './internal-custom-search-layout.css';
|
|
4
4
|
export declare const InternalCustomSearchLayout: FC<LayoutProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './internal-search-layout.
|
|
3
|
+
import './internal-search-layout.css';
|
|
4
4
|
export declare const InternalSearchLayout: FC<LayoutProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './internal-unauthenticated-layout.
|
|
3
|
+
import './internal-unauthenticated-layout.css';
|
|
4
4
|
export declare const InternalUnauthenticatedLayout: FC<LayoutProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LayoutProps } from '../../../../../components/header/internals/shared/panel-menu/layout.interface';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './internal-navigation-burger-layout.
|
|
3
|
+
import './internal-navigation-burger-layout.css';
|
|
4
4
|
export declare const InternalNavigationBurgerLayout: FC<LayoutProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from '../../../../../components/button';
|
|
2
2
|
import { ComponentProps, FC } from 'react';
|
|
3
|
-
import './internal-navigation-burger-panel.
|
|
3
|
+
import './internal-navigation-burger-panel.css';
|
|
4
4
|
export interface InternalNavigationBurgerPanelElement extends HTMLDivElement {
|
|
5
5
|
/**
|
|
6
6
|
* Open the submenu.
|
|
@@ -2,7 +2,7 @@ import { LayoutProps } from '../../../../../components/header/internals/shared/p
|
|
|
2
2
|
import { NavigationLinkProps } from '../../../../../components/header/navigation-bar/navigation-link';
|
|
3
3
|
import { RelatedNavigationLinkProps } from '../../../../../components/header/navigation-bar/related-navigation-link';
|
|
4
4
|
import { FC, ReactElement, ReactNode } from 'react';
|
|
5
|
-
import './internal-navigation-link-layout.
|
|
5
|
+
import './internal-navigation-link-layout.css';
|
|
6
6
|
export interface InternalNavigationLinksLayoutProps extends Omit<LayoutProps, 'title'> {
|
|
7
7
|
title: ReactNode;
|
|
8
8
|
linksAriaLabel?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
import './internal-modal-content.css';
|
|
5
5
|
export interface InternalModalContentProps {
|
|
6
6
|
item: ReactElement<NavigationRootProps | NavigationLinkProps>;
|
|
7
7
|
}
|