@ama-pt/agora-design-system 0.2.1 → 0.2.3
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/dist/cjs/index.ts +2 -2
- package/dist/cjs/index.ts.map +1 -1
- package/dist/cjs/types/components/documentation/Accessibility/accessibility.d.ts +2 -0
- package/dist/cjs/types/components/documentation/GetttingStarted/getting-started.d.ts +2 -0
- package/dist/cjs/types/components/models/index.d.ts +1 -0
- package/dist/cjs/types/components/models/months.interface.d.ts +14 -0
- package/dist/cjs/types/components/models/week-days.interface.d.ts +9 -0
- package/dist/cjs/types/components/ui/atoms/anchor/anchor.d.ts +67 -0
- package/dist/cjs/types/components/ui/atoms/anchor/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/avatar/avatar.d.ts +57 -0
- package/dist/cjs/types/components/ui/atoms/avatar/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/avatar/interactive-avatar.d.ts +9 -0
- package/dist/cjs/types/components/ui/atoms/avatar/non-interactive-avatar.d.ts +8 -0
- package/dist/cjs/types/components/ui/atoms/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/cjs/types/components/ui/atoms/breadcrumb/desktop/breadcrumb-desktop.d.ts +2 -2
- package/dist/cjs/types/components/ui/atoms/breadcrumb/mobile/breadcrumb-mobile.d.ts +2 -3
- package/dist/cjs/types/components/ui/atoms/button/button.d.ts +5 -1
- package/dist/cjs/types/components/ui/atoms/drawer/drawer.d.ts +32 -0
- package/dist/cjs/types/components/ui/atoms/drawer/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/glossary-letters/glossary-letters.d.ts +15 -0
- package/dist/cjs/types/components/ui/atoms/glossary-letters/index.d.ts +4 -0
- package/dist/cjs/types/components/ui/atoms/icon/assets/solid/solid-plane.d.ts +3 -0
- package/dist/cjs/types/components/ui/atoms/icon/assets/solid/solid-shield.d.ts +3 -0
- package/dist/cjs/types/components/ui/atoms/input-range/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/input-range/input-range.d.ts +48 -0
- package/dist/cjs/types/components/ui/atoms/list/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/list/list.d.ts +18 -0
- package/dist/cjs/types/components/ui/atoms/modal/index.d.ts +5 -0
- package/dist/cjs/types/components/ui/atoms/modal/modal-context.d.ts +17 -0
- package/dist/cjs/types/components/ui/atoms/modal/modal.d.ts +13 -0
- package/dist/cjs/types/components/ui/atoms/modal/use-modal.d.ts +10 -0
- package/dist/cjs/types/components/ui/atoms/pill/pill.d.ts +14 -1
- package/dist/cjs/types/components/ui/atoms/step-list/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/step-list/step-list.d.ts +13 -0
- package/dist/cjs/types/components/ui/atoms/toasts/index.d.ts +4 -0
- package/dist/cjs/types/components/ui/atoms/toasts/toast-provider.d.ts +16 -0
- package/dist/cjs/types/components/ui/atoms/toasts/toast.d.ts +26 -0
- package/dist/cjs/types/components/ui/atoms/toasts/useToast.d.ts +8 -0
- package/dist/cjs/types/components/ui/atoms/tooltip/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/atoms/tooltip/tooltip.d.ts +46 -0
- package/dist/cjs/types/components/ui/index.d.ts +18 -3
- package/dist/cjs/types/components/ui/molecules/accordion-group/accordion-group.d.ts +1 -1
- package/dist/cjs/types/components/ui/molecules/avatar-group/avatar-group.d.ts +16 -0
- package/dist/cjs/types/components/ui/molecules/avatar-group/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/molecules/avatar-group/visible-count-avatar-group.d.ts +9 -0
- package/dist/cjs/types/components/ui/molecules/button-group/button-group.d.ts +36 -0
- package/dist/cjs/types/components/ui/molecules/button-group/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/molecules/dropdown-list/contexts/dropdown-section-state.context.d.ts +1 -1
- package/dist/cjs/types/components/ui/molecules/dropdown-list/models/dropdown-list.interface.d.ts +1 -1
- package/dist/cjs/types/components/ui/molecules/radio-button-group/index.d.ts +2 -0
- package/dist/cjs/types/components/ui/organisms/input-date/contexts/date-picker-state.context.d.ts +34 -0
- package/dist/cjs/types/components/ui/organisms/input-date/contexts/use-date-picker-state-context.d.ts +61 -0
- package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown-body/date-picker-dropdown-body.d.ts +2 -0
- package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown-footer/date-picker-dropdown-footer.d.ts +2 -0
- package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown-header/date-picker-dropdown-header.d.ts +2 -0
- package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dropdown.d.ts +26 -0
- package/dist/cjs/types/components/ui/organisms/input-date/index.d.ts +1 -1
- package/dist/cjs/types/components/ui/organisms/input-date/input-date.d.ts +73 -48
- package/dist/cjs/types/components/ui/organisms/input-date/utils/get-date-string.d.ts +1 -0
- package/dist/cjs/types/components/ui/organisms/input-date/utils/is-date-in-same-month.d.ts +1 -0
- package/dist/cjs/types/components/ui/organisms/input-date/utils/is-same-day.d.ts +1 -0
- package/dist/cjs/types/components/ui/organisms/input-date/utils/parse-input-date.d.ts +1 -0
- package/dist/cjs/types/components/ui/templates/footer/federated-footer/federated-footer-card.d.ts +4 -0
- package/dist/cjs/types/components/ui/templates/{federated-footer → footer/federated-footer}/federated-footer.d.ts +8 -8
- package/dist/cjs/types/components/ui/templates/footer/federated-footer/index.d.ts +5 -0
- package/dist/cjs/types/components/ui/templates/{federated-footer/models/CardFederatedFooterProps.type.d.ts → footer/models/CardFooterProps.d.ts} +1 -1
- package/dist/cjs/types/components/ui/templates/footer/models/CardLinksFooterProps.d.ts +5 -0
- package/dist/cjs/types/components/ui/templates/footer/models/ContactsFooterProps.d.ts +6 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/index.d.ts +7 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-contacts.d.ts +8 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-highlight-card-links.d.ts +4 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-highlight-card.d.ts +9 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-highlight.d.ts +10 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer-main-plus-card-links.d.ts +15 -0
- package/dist/cjs/types/components/ui/templates/footer/public-footer/public-footer.d.ts +45 -0
- package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-brand-badge.d.ts +7 -0
- package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-caption-partners.d.ts +7 -0
- package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-main.d.ts +5 -0
- package/dist/cjs/types/components/ui/templates/footer/shared-components/footer-social-useful-copyright.d.ts +8 -0
- package/dist/esm/index.ts +2 -2
- package/dist/esm/index.ts.map +1 -1
- package/dist/esm/types/components/documentation/Accessibility/accessibility.d.ts +2 -0
- package/dist/esm/types/components/documentation/GetttingStarted/getting-started.d.ts +2 -0
- package/dist/esm/types/components/models/index.d.ts +1 -0
- package/dist/esm/types/components/models/months.interface.d.ts +14 -0
- package/dist/esm/types/components/models/week-days.interface.d.ts +9 -0
- package/dist/esm/types/components/ui/atoms/anchor/anchor.d.ts +67 -0
- package/dist/esm/types/components/ui/atoms/anchor/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/avatar/avatar.d.ts +57 -0
- package/dist/esm/types/components/ui/atoms/avatar/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/avatar/interactive-avatar.d.ts +9 -0
- package/dist/esm/types/components/ui/atoms/avatar/non-interactive-avatar.d.ts +8 -0
- package/dist/esm/types/components/ui/atoms/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/esm/types/components/ui/atoms/breadcrumb/desktop/breadcrumb-desktop.d.ts +2 -2
- package/dist/esm/types/components/ui/atoms/breadcrumb/mobile/breadcrumb-mobile.d.ts +2 -3
- package/dist/esm/types/components/ui/atoms/button/button.d.ts +5 -1
- package/dist/esm/types/components/ui/atoms/drawer/drawer.d.ts +32 -0
- package/dist/esm/types/components/ui/atoms/drawer/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/glossary-letters/glossary-letters.d.ts +15 -0
- package/dist/esm/types/components/ui/atoms/glossary-letters/index.d.ts +4 -0
- package/dist/esm/types/components/ui/atoms/icon/assets/line/line-buildings.d.ts +3 -0
- package/dist/esm/types/components/ui/atoms/icon/assets/line/line-plane.d.ts +3 -0
- package/dist/esm/types/components/ui/atoms/icon/assets/line/line-shield.d.ts +3 -0
- package/dist/esm/types/components/ui/atoms/icon/assets/solid/solid-buildings.d.ts +3 -0
- package/dist/esm/types/components/ui/atoms/icon/assets/solid/solid-plane.d.ts +3 -0
- package/dist/esm/types/components/ui/atoms/icon/assets/solid/solid-shield.d.ts +3 -0
- package/dist/esm/types/components/ui/atoms/input-range/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/input-range/input-range.d.ts +48 -0
- package/dist/esm/types/components/ui/atoms/list/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/list/list.d.ts +18 -0
- package/dist/esm/types/components/ui/atoms/modal/index.d.ts +5 -0
- package/dist/esm/types/components/ui/atoms/modal/modal-context.d.ts +17 -0
- package/dist/esm/types/components/ui/atoms/modal/modal.d.ts +13 -0
- package/dist/esm/types/components/ui/atoms/modal/use-modal.d.ts +10 -0
- package/dist/esm/types/components/ui/atoms/pill/pill.d.ts +14 -1
- package/dist/esm/types/components/ui/atoms/step-list/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/step-list/step-list.d.ts +13 -0
- package/dist/esm/types/components/ui/atoms/toasts/index.d.ts +4 -0
- package/dist/esm/types/components/ui/atoms/toasts/toast-provider.d.ts +16 -0
- package/dist/esm/types/components/ui/atoms/toasts/toast.d.ts +26 -0
- package/dist/esm/types/components/ui/atoms/toasts/useToast.d.ts +8 -0
- package/dist/esm/types/components/ui/atoms/tooltip/index.d.ts +2 -0
- package/dist/esm/types/components/ui/atoms/tooltip/tooltip.d.ts +46 -0
- package/dist/esm/types/components/ui/index.d.ts +18 -3
- package/dist/esm/types/components/ui/molecules/accordion-group/accordion-group.d.ts +1 -1
- package/dist/esm/types/components/ui/molecules/avatar-group/avatar-group.d.ts +16 -0
- package/dist/esm/types/components/ui/molecules/avatar-group/index.d.ts +2 -0
- package/dist/esm/types/components/ui/molecules/avatar-group/visible-count-avatar-group.d.ts +9 -0
- package/dist/esm/types/components/ui/molecules/button-group/button-group.d.ts +36 -0
- package/dist/esm/types/components/ui/molecules/button-group/index.d.ts +2 -0
- package/dist/esm/types/components/ui/molecules/dropdown-list/contexts/dropdown-section-state.context.d.ts +1 -1
- package/dist/esm/types/components/ui/molecules/dropdown-list/models/dropdown-list.interface.d.ts +1 -1
- package/dist/esm/types/components/ui/molecules/radio-button-group/index.d.ts +2 -0
- package/dist/esm/types/components/ui/organisms/input-date/contexts/date-picker-state.context.d.ts +34 -0
- package/dist/esm/types/components/ui/organisms/input-date/contexts/use-date-picker-state-context.d.ts +61 -0
- package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown-body/date-picker-dropdown-body.d.ts +2 -0
- package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown-footer/date-picker-dropdown-footer.d.ts +2 -0
- package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown-header/date-picker-dropdown-header.d.ts +2 -0
- package/dist/esm/types/components/ui/organisms/input-date/date-picker-dropdown.d.ts +26 -0
- package/dist/esm/types/components/ui/organisms/input-date/index.d.ts +1 -1
- package/dist/esm/types/components/ui/organisms/input-date/input-date.d.ts +73 -48
- package/dist/esm/types/components/ui/organisms/input-date/utils/get-date-string.d.ts +1 -0
- package/dist/esm/types/components/ui/organisms/input-date/utils/is-date-in-same-month.d.ts +1 -0
- package/dist/esm/types/components/ui/organisms/input-date/utils/is-same-day.d.ts +1 -0
- package/dist/esm/types/components/ui/organisms/input-date/utils/parse-input-date.d.ts +1 -0
- package/dist/esm/types/components/ui/templates/footer/federated-footer/federated-footer-card.d.ts +4 -0
- package/dist/esm/types/components/ui/templates/{federated-footer → footer/federated-footer}/federated-footer.d.ts +8 -8
- package/dist/esm/types/components/ui/templates/footer/federated-footer/index.d.ts +5 -0
- package/dist/esm/types/components/ui/templates/{federated-footer/models/CardFederatedFooterProps.type.d.ts → footer/models/CardFooterProps.d.ts} +1 -1
- package/dist/esm/types/components/ui/templates/footer/models/CardLinksFooterProps.d.ts +5 -0
- package/dist/esm/types/components/ui/templates/footer/models/ContactsFooterProps.d.ts +6 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/index.d.ts +7 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-contacts.d.ts +8 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-highlight-card-links.d.ts +4 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-highlight-card.d.ts +9 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-highlight.d.ts +10 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer-main-plus-card-links.d.ts +15 -0
- package/dist/esm/types/components/ui/templates/footer/public-footer/public-footer.d.ts +45 -0
- package/dist/esm/types/components/ui/templates/footer/shared-components/footer-brand-badge.d.ts +7 -0
- package/dist/esm/types/components/ui/templates/footer/shared-components/footer-caption-partners.d.ts +7 -0
- package/dist/esm/types/components/ui/templates/footer/shared-components/footer-main.d.ts +5 -0
- package/dist/esm/types/components/ui/templates/footer/shared-components/footer-social-useful-copyright.d.ts +8 -0
- package/dist/index.d.ts +660 -92
- package/package.json +18 -16
- package/dist/cjs/types/components/ui/molecules/radiobutton-group/index.d.ts +0 -2
- package/dist/cjs/types/components/ui/organisms/input-date/date-picker-dialog.class.d.ts +0 -77
- package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-brand-badge.d.ts +0 -7
- package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-caption-partners.d.ts +0 -7
- package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-card.d.ts +0 -4
- package/dist/cjs/types/components/ui/templates/federated-footer/federated-footer-social-useful-copyright.d.ts +0 -8
- package/dist/cjs/types/components/ui/templates/federated-footer/index.d.ts +0 -5
- package/dist/esm/types/components/ui/molecules/radiobutton-group/index.d.ts +0 -2
- package/dist/esm/types/components/ui/organisms/input-date/date-picker-dialog.class.d.ts +0 -77
- package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-brand-badge.d.ts +0 -7
- package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-caption-partners.d.ts +0 -7
- package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-card.d.ts +0 -4
- package/dist/esm/types/components/ui/templates/federated-footer/federated-footer-social-useful-copyright.d.ts +0 -8
- package/dist/esm/types/components/ui/templates/federated-footer/index.d.ts +0 -5
- /package/dist/cjs/types/components/documentation/{welcome.d.ts → Welcome/welcome.d.ts} +0 -0
- /package/dist/cjs/types/components/ui/atoms/icon/assets/line/{line-security.d.ts → line-buildings.d.ts} +0 -0
- /package/dist/cjs/types/components/ui/atoms/icon/assets/{solid/solid-security.d.ts → line/line-plane.d.ts} +0 -0
- /package/dist/{esm/types/components/ui/atoms/icon/assets/line/line-security.d.ts → cjs/types/components/ui/atoms/icon/assets/line/line-shield.d.ts} +0 -0
- /package/dist/{esm/types/components/ui/atoms/icon/assets/solid/solid-security.d.ts → cjs/types/components/ui/atoms/icon/assets/solid/solid-buildings.d.ts} +0 -0
- /package/dist/cjs/types/components/ui/molecules/{radiobutton-group/radiobutton-group.d.ts → radio-button-group/radio-button-group.d.ts} +0 -0
- /package/dist/cjs/types/components/ui/templates/{federated-footer → footer}/models/LinkableIconsProps.d.ts +0 -0
- /package/dist/cjs/types/components/ui/templates/{federated-footer → footer}/models/LinkableImagesProps.d.ts +0 -0
- /package/dist/esm/types/components/documentation/{welcome.d.ts → Welcome/welcome.d.ts} +0 -0
- /package/dist/esm/types/components/ui/molecules/{radiobutton-group/radiobutton-group.d.ts → radio-button-group/radio-button-group.d.ts} +0 -0
- /package/dist/esm/types/components/ui/templates/{federated-footer → footer}/models/LinkableIconsProps.d.ts +0 -0
- /package/dist/esm/types/components/ui/templates/{federated-footer → footer}/models/LinkableImagesProps.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ComponentPropsWithRef, ReactNode, FC, SVGProps, HTMLProps, ReactElement, HtmlHTMLAttributes, ChangeEvent, RefObject, AnchorHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
1
|
+
import React$1, { ComponentPropsWithRef, ReactNode, FC, SVGProps, HTMLProps, ComponentPropsWithoutRef, ReactElement, HtmlHTMLAttributes, ChangeEvent, RefObject, AnchorHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
type BooleanProp = boolean | 'true' | 'false';
|
|
4
4
|
|
|
@@ -6,6 +6,21 @@ type FeedbackState = 'info' | 'danger' | 'success' | 'warning';
|
|
|
6
6
|
|
|
7
7
|
type IconPosition = 'leading' | 'trailing';
|
|
8
8
|
|
|
9
|
+
interface Months {
|
|
10
|
+
jan: string;
|
|
11
|
+
feb: string;
|
|
12
|
+
mar: string;
|
|
13
|
+
apr: string;
|
|
14
|
+
may: string;
|
|
15
|
+
jun: string;
|
|
16
|
+
jul: string;
|
|
17
|
+
aug: string;
|
|
18
|
+
set: string;
|
|
19
|
+
oct: string;
|
|
20
|
+
nov: string;
|
|
21
|
+
dec: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
9
24
|
interface AccordionRef {
|
|
10
25
|
id: string;
|
|
11
26
|
current: HTMLDivElement;
|
|
@@ -57,6 +72,152 @@ interface AccordionProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
|
57
72
|
}
|
|
58
73
|
declare const Accordion: React$1.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React$1.RefAttributes<HTMLDivElement | AccordionRef>>;
|
|
59
74
|
|
|
75
|
+
/**
|
|
76
|
+
* The available variants of the anchors. This variants will define the background and border color of the anchors.
|
|
77
|
+
*/
|
|
78
|
+
type AnchorVariant = 'primary' | 'neutral' | 'white' | 'success' | 'warning' | 'danger';
|
|
79
|
+
/**
|
|
80
|
+
* The available anchor appearances. Defines the anchor shape.
|
|
81
|
+
*/
|
|
82
|
+
type AnchorAppearance = 'link' | 'text';
|
|
83
|
+
interface AnchorProps extends ComponentPropsWithRef<'a'> {
|
|
84
|
+
/**
|
|
85
|
+
* The anchor appearance. Define the anchor Shape.
|
|
86
|
+
*/
|
|
87
|
+
appearance?: AnchorAppearance;
|
|
88
|
+
/**
|
|
89
|
+
* The variant of the anchor. This variants will define the background and border color of the given Anchor
|
|
90
|
+
*/
|
|
91
|
+
variant?: AnchorVariant;
|
|
92
|
+
/**
|
|
93
|
+
* Defines if the anchor should be fluid
|
|
94
|
+
*/
|
|
95
|
+
fullWidth?: BooleanProp;
|
|
96
|
+
/**
|
|
97
|
+
* Defines if the anchor uses an icon.
|
|
98
|
+
*/
|
|
99
|
+
hasIcon?: BooleanProp;
|
|
100
|
+
/**
|
|
101
|
+
* Defines if children content it is to be rendered.
|
|
102
|
+
*/
|
|
103
|
+
iconOnly?: BooleanProp;
|
|
104
|
+
/**
|
|
105
|
+
* Defines the name of the leading icon to use.
|
|
106
|
+
*/
|
|
107
|
+
leadingIcon?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Defines the name of the leading icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
110
|
+
*/
|
|
111
|
+
leadingIconHover?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Alternative text for the leading icon.
|
|
114
|
+
*/
|
|
115
|
+
leadingIconAltText?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Defines the name of the trailing icon to use.
|
|
118
|
+
*/
|
|
119
|
+
trailingIcon?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Defines the name of the trailing icon to be displayed on mouse hover. If none specified, it will the appropriate variant of the icon.
|
|
122
|
+
*/
|
|
123
|
+
trailingIconHover?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Alternative text for the trailing icon.
|
|
126
|
+
*/
|
|
127
|
+
trailingIconAltText?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Children content.
|
|
130
|
+
*/
|
|
131
|
+
children?: ReactNode;
|
|
132
|
+
/**
|
|
133
|
+
* Defines if anchor is inline text or not. An inline element does not start on a new line and takes up as much width as necessary. See https://www.w3schools.com/html/html_blocks.asp.
|
|
134
|
+
*/
|
|
135
|
+
inline?: BooleanProp;
|
|
136
|
+
}
|
|
137
|
+
declare const Anchor: React$1.ForwardRefExoticComponent<Omit<AnchorProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
138
|
+
|
|
139
|
+
declare const allIcons: string[];
|
|
140
|
+
type IconName = (typeof allIcons)[number];
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Allowed icon dimensions.
|
|
144
|
+
*/
|
|
145
|
+
type IconDimensions = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
146
|
+
type SuperIconProps = SVGProps<SVGSVGElement> & HTMLProps<HTMLImageElement>;
|
|
147
|
+
interface IconProps extends SuperIconProps {
|
|
148
|
+
/**
|
|
149
|
+
* Predefined icon dimensions.
|
|
150
|
+
*/
|
|
151
|
+
dimensions?: IconDimensions;
|
|
152
|
+
/**
|
|
153
|
+
* Icon name to be used. Can be an external image url.
|
|
154
|
+
*/
|
|
155
|
+
name?: IconName | string;
|
|
156
|
+
/**
|
|
157
|
+
* Callback to run when image is loaded.
|
|
158
|
+
*/
|
|
159
|
+
onIconLoad?: () => void;
|
|
160
|
+
/**
|
|
161
|
+
* Callback to run when image fails to load.
|
|
162
|
+
*/
|
|
163
|
+
onIconError?: () => void;
|
|
164
|
+
}
|
|
165
|
+
declare const Icon: FC<IconProps>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The available types of the avatar. This types will define the appearance of the avatar image.
|
|
169
|
+
*/
|
|
170
|
+
type AvatarType = 'image' | 'icon' | 'initials';
|
|
171
|
+
/**
|
|
172
|
+
* The available badge positions. The badge position defines the location of the badge on the avatar.
|
|
173
|
+
*/
|
|
174
|
+
type AvatarBadgePosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
175
|
+
/**
|
|
176
|
+
* The available variants of the badge. This variants will define the color of the avatar badge.
|
|
177
|
+
*/
|
|
178
|
+
type AvatarBadgeVariant = 'primary' | 'secondary' | 'danger' | 'success' | 'warning' | 'neutral' | 'white';
|
|
179
|
+
interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
180
|
+
/**
|
|
181
|
+
* The available avatar types. Defines the appearance of the avatar.
|
|
182
|
+
*/
|
|
183
|
+
avatarType?: AvatarType;
|
|
184
|
+
/**
|
|
185
|
+
* Avatar source to be used. Depending on the selected avatar type it can be an external image url or an icon name that exists in AgoraDS
|
|
186
|
+
* or first 2 letters of the given name.
|
|
187
|
+
*/
|
|
188
|
+
srcPath?: IconName | string;
|
|
189
|
+
/**
|
|
190
|
+
* Avatar information. Information related to the avatar, such as user name or other.
|
|
191
|
+
*/
|
|
192
|
+
information?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Avatar alt personalized description of the avatar. The text appears if the avatar fails to load on the page.
|
|
195
|
+
*/
|
|
196
|
+
alt: string;
|
|
197
|
+
/**
|
|
198
|
+
* The flag to place a badge of different colors on the avatar.
|
|
199
|
+
*/
|
|
200
|
+
hasBadge?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* The available badge positions. The badge position defines the location of the badge on the avatar.
|
|
203
|
+
*/
|
|
204
|
+
badgePosition?: AvatarBadgePosition;
|
|
205
|
+
/**
|
|
206
|
+
* The variant of the badge. This variants will define the color of the avatar badge.
|
|
207
|
+
*/
|
|
208
|
+
badgeVariant?: AvatarBadgeVariant;
|
|
209
|
+
/**
|
|
210
|
+
* The flag to make the avatar interactive. When it is interactive,
|
|
211
|
+
* avatar can be focused by clicking on it, or pressing SPACE or ENTER.
|
|
212
|
+
*/
|
|
213
|
+
interactive?: BooleanProp;
|
|
214
|
+
/**
|
|
215
|
+
* Callback to run whenever the avatar is activated.
|
|
216
|
+
*/
|
|
217
|
+
onActivate?: () => void;
|
|
218
|
+
}
|
|
219
|
+
declare const Avatar: FC<AvatarProps>;
|
|
220
|
+
|
|
60
221
|
interface BreadcrumbLink {
|
|
61
222
|
/**
|
|
62
223
|
* The Breadcrumb page link url.
|
|
@@ -67,7 +228,7 @@ interface BreadcrumbLink {
|
|
|
67
228
|
*/
|
|
68
229
|
label: string;
|
|
69
230
|
}
|
|
70
|
-
interface BreadcrumbProps extends HTMLDivElement {
|
|
231
|
+
interface BreadcrumbProps extends HTMLProps<HTMLDivElement> {
|
|
71
232
|
/**
|
|
72
233
|
* The links that make up the breadcrumb in hierarchical order.
|
|
73
234
|
*/
|
|
@@ -77,7 +238,7 @@ interface BreadcrumbProps extends HTMLDivElement {
|
|
|
77
238
|
*/
|
|
78
239
|
darkMode?: boolean;
|
|
79
240
|
}
|
|
80
|
-
declare const Breadcrumb:
|
|
241
|
+
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
81
242
|
|
|
82
243
|
/**
|
|
83
244
|
* The available variants of the button. This variants will define the background and border color of the button.
|
|
@@ -86,7 +247,7 @@ type ButtonVariant = 'primary' | 'neutral' | 'white' | 'success' | 'warning' | '
|
|
|
86
247
|
/**
|
|
87
248
|
* The available button appearances. Defines the button shape.
|
|
88
249
|
*/
|
|
89
|
-
type ButtonAppearance = 'solid' | 'outline' | 'link'
|
|
250
|
+
type ButtonAppearance = 'solid' | 'outline' | 'link';
|
|
90
251
|
interface ButtonProps extends ComponentPropsWithRef<'button'> {
|
|
91
252
|
/**
|
|
92
253
|
* The button appearance. Define the button Shape.
|
|
@@ -136,6 +297,10 @@ interface ButtonProps extends ComponentPropsWithRef<'button'> {
|
|
|
136
297
|
* Children content.
|
|
137
298
|
*/
|
|
138
299
|
children?: ReactNode;
|
|
300
|
+
/**
|
|
301
|
+
* Defines if the button is selected.
|
|
302
|
+
*/
|
|
303
|
+
selected?: BooleanProp;
|
|
139
304
|
}
|
|
140
305
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
141
306
|
|
|
@@ -159,33 +324,44 @@ interface CheckboxProps extends React$1.ComponentPropsWithRef<'input'> {
|
|
|
159
324
|
}
|
|
160
325
|
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
161
326
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
type SuperIconProps = SVGProps<SVGSVGElement> & HTMLProps<HTMLImageElement>;
|
|
170
|
-
interface IconProps extends SuperIconProps {
|
|
327
|
+
type DrawerPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
328
|
+
interface DrawerRef {
|
|
329
|
+
current: HTMLDialogElement | null;
|
|
330
|
+
openDrawer: () => void;
|
|
331
|
+
closeDrawer: () => void;
|
|
332
|
+
}
|
|
333
|
+
interface DrawerProps extends ComponentPropsWithRef<'dialog'> {
|
|
171
334
|
/**
|
|
172
|
-
*
|
|
335
|
+
* Children content.
|
|
173
336
|
*/
|
|
174
|
-
|
|
337
|
+
children?: ReactNode;
|
|
175
338
|
/**
|
|
176
|
-
*
|
|
339
|
+
* Dismiss on escape.
|
|
177
340
|
*/
|
|
178
|
-
|
|
341
|
+
dismissOnEscape?: BooleanProp;
|
|
179
342
|
/**
|
|
180
|
-
*
|
|
343
|
+
* Dismiss on back drop click.
|
|
181
344
|
*/
|
|
182
|
-
|
|
345
|
+
dismissOnBackdropClick?: BooleanProp;
|
|
183
346
|
/**
|
|
184
|
-
*
|
|
347
|
+
* Position the drawer.
|
|
185
348
|
*/
|
|
186
|
-
|
|
349
|
+
position?: DrawerPosition;
|
|
187
350
|
}
|
|
188
|
-
declare const
|
|
351
|
+
declare const Drawer: React$1.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React$1.RefAttributes<HTMLDialogElement | DrawerRef>>;
|
|
352
|
+
|
|
353
|
+
type LetterStatus = 'default' | 'disabled';
|
|
354
|
+
interface GlossaryLetter extends HTMLProps<HTMLAnchorElement> {
|
|
355
|
+
letter: string;
|
|
356
|
+
status: LetterStatus;
|
|
357
|
+
}
|
|
358
|
+
interface GlossaryLettersProps extends ComponentPropsWithRef<'nav'> {
|
|
359
|
+
/**
|
|
360
|
+
* Letters Array
|
|
361
|
+
*/
|
|
362
|
+
letters?: GlossaryLetter[];
|
|
363
|
+
}
|
|
364
|
+
declare const GlossaryLetters: React$1.ForwardRefExoticComponent<Omit<GlossaryLettersProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
189
365
|
|
|
190
366
|
interface InputNumberProps extends React$1.ComponentPropsWithRef<'input'> {
|
|
191
367
|
/**
|
|
@@ -375,14 +551,105 @@ interface InputTextAreaProps extends React$1.ComponentPropsWithRef<'textarea'> {
|
|
|
375
551
|
}
|
|
376
552
|
declare const InputTextArea: React$1.ForwardRefExoticComponent<Omit<InputTextAreaProps, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
377
553
|
|
|
554
|
+
type RangeOrientation = 'horizontal' | 'vertical';
|
|
555
|
+
type RangeType = 'single' | 'double';
|
|
556
|
+
interface RangeProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'onChange'> {
|
|
557
|
+
/**
|
|
558
|
+
* Input label text.
|
|
559
|
+
*/
|
|
560
|
+
label?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Decides if display/hide label.
|
|
563
|
+
*/
|
|
564
|
+
hideLabel?: BooleanProp;
|
|
565
|
+
/**
|
|
566
|
+
* The orientation of the range (horizontal or vertical).
|
|
567
|
+
*/
|
|
568
|
+
orientation?: RangeOrientation;
|
|
569
|
+
/**
|
|
570
|
+
* The type of the range (single or double).
|
|
571
|
+
*/
|
|
572
|
+
type?: RangeType;
|
|
573
|
+
/**
|
|
574
|
+
* If `true`, the range will be disabled.
|
|
575
|
+
*/
|
|
576
|
+
disabled?: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* The value(s) of the range.
|
|
579
|
+
*/
|
|
580
|
+
value: number[];
|
|
581
|
+
/**
|
|
582
|
+
* The minimum value of the range.
|
|
583
|
+
*/
|
|
584
|
+
min: number | string;
|
|
585
|
+
/**
|
|
586
|
+
* The maximum value of the range.
|
|
587
|
+
*/
|
|
588
|
+
max: number | string;
|
|
589
|
+
/**
|
|
590
|
+
* Custom onChange event handler for double range type.
|
|
591
|
+
* Will be called with an array of values.
|
|
592
|
+
*/
|
|
593
|
+
onChange?: (values: number[]) => void;
|
|
594
|
+
}
|
|
595
|
+
declare const InputRange: React$1.ForwardRefExoticComponent<Omit<RangeProps, "ref"> & React$1.RefAttributes<HTMLDivElement | HTMLInputElement | (HTMLInputElement | null)[]>>;
|
|
596
|
+
|
|
597
|
+
type ListType = 'default' | 'unordered' | 'ordered';
|
|
598
|
+
interface ListProps extends ComponentPropsWithoutRef<'ul'> {
|
|
599
|
+
/**
|
|
600
|
+
* Type list.
|
|
601
|
+
*/
|
|
602
|
+
type?: ListType;
|
|
603
|
+
/**
|
|
604
|
+
* Children content.
|
|
605
|
+
*/
|
|
606
|
+
children?: ReactElement<HTMLLIElement> | Array<ReactElement<HTMLLIElement>>;
|
|
607
|
+
/**
|
|
608
|
+
* Array the item.
|
|
609
|
+
*/
|
|
610
|
+
items?: Array<ReactElement<HTMLLIElement>>;
|
|
611
|
+
}
|
|
612
|
+
declare const List: FC<ListProps>;
|
|
613
|
+
|
|
614
|
+
interface ModalProps extends ComponentPropsWithoutRef<'dialog'> {
|
|
615
|
+
/**
|
|
616
|
+
* Title text for the close button.
|
|
617
|
+
*/
|
|
618
|
+
closeText: string;
|
|
619
|
+
/**
|
|
620
|
+
* Children content.
|
|
621
|
+
*/
|
|
622
|
+
children: ReactNode;
|
|
623
|
+
}
|
|
624
|
+
declare const Modal: FC<ModalProps>;
|
|
625
|
+
|
|
626
|
+
interface ModalContextProps {
|
|
627
|
+
isOpen?: boolean;
|
|
628
|
+
showModal: (params: ReactNode, modalProps: ModalProps) => void;
|
|
629
|
+
closeModal: () => void;
|
|
630
|
+
modalContent?: ReactNode | null;
|
|
631
|
+
}
|
|
632
|
+
interface ModalProviderProps {
|
|
633
|
+
/**
|
|
634
|
+
* Children content.
|
|
635
|
+
*/
|
|
636
|
+
children: ReactNode;
|
|
637
|
+
}
|
|
638
|
+
declare const ModalProvider: FC<ModalProviderProps>;
|
|
639
|
+
declare const useModalContext: () => ModalContextProps;
|
|
640
|
+
|
|
378
641
|
/**
|
|
379
642
|
* The available variants of the pill. This variants will define the background and border color of the pill.
|
|
380
643
|
*/
|
|
381
|
-
type PillVariant = 'primary' | 'secondary' | '
|
|
644
|
+
type PillVariant = 'primary' | 'secondary' | 'secondary-light' | 'neutral' | 'informative' | 'success' | 'warning' | 'danger';
|
|
382
645
|
/**
|
|
383
646
|
* The available pill appearances. Defines the pill shape.
|
|
384
647
|
*/
|
|
385
648
|
type PillAppearance = 'solid' | 'outline';
|
|
649
|
+
/**
|
|
650
|
+
* The available pill size. Defines the pill size.
|
|
651
|
+
*/
|
|
652
|
+
type PillSize = 'default' | 'large';
|
|
386
653
|
interface PillProps extends ComponentPropsWithRef<'div'> {
|
|
387
654
|
/**
|
|
388
655
|
* The pill appearance. Define the pill Shape.
|
|
@@ -396,6 +663,14 @@ interface PillProps extends ComponentPropsWithRef<'div'> {
|
|
|
396
663
|
* Children content.
|
|
397
664
|
*/
|
|
398
665
|
children?: ReactNode;
|
|
666
|
+
/**
|
|
667
|
+
* Pill or Circular pill style
|
|
668
|
+
*/
|
|
669
|
+
circular?: BooleanProp;
|
|
670
|
+
/**
|
|
671
|
+
* Size of pill
|
|
672
|
+
*/
|
|
673
|
+
size?: PillSize;
|
|
399
674
|
}
|
|
400
675
|
declare const Pill: React$1.ForwardRefExoticComponent<Omit<PillProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
401
676
|
|
|
@@ -475,6 +750,87 @@ interface ScribblesProps extends SuperScribblesProps {
|
|
|
475
750
|
}
|
|
476
751
|
declare const Scribbles: FC<ScribblesProps>;
|
|
477
752
|
|
|
753
|
+
interface StepListProps extends ComponentPropsWithoutRef<'ol'> {
|
|
754
|
+
/**
|
|
755
|
+
* Children content.
|
|
756
|
+
*/
|
|
757
|
+
children?: ReactElement<HTMLLIElement> | Array<ReactElement<HTMLLIElement>>;
|
|
758
|
+
/**
|
|
759
|
+
* Array the item.
|
|
760
|
+
*/
|
|
761
|
+
items?: Array<ReactElement<HTMLLIElement>>;
|
|
762
|
+
}
|
|
763
|
+
declare const StepList: FC<StepListProps>;
|
|
764
|
+
|
|
765
|
+
type SwitchPosition = 'start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
766
|
+
interface SwitchProps extends React$1.ComponentPropsWithRef<'input'> {
|
|
767
|
+
/**
|
|
768
|
+
* Input label text.
|
|
769
|
+
*/
|
|
770
|
+
label?: string;
|
|
771
|
+
/**
|
|
772
|
+
* Show or hide input label.
|
|
773
|
+
*/
|
|
774
|
+
hideLabel?: BooleanProp;
|
|
775
|
+
/**
|
|
776
|
+
* Whether the switch is disabled.
|
|
777
|
+
*/
|
|
778
|
+
reverse?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* The position of the switch.
|
|
781
|
+
*/
|
|
782
|
+
position?: SwitchPosition;
|
|
783
|
+
/**
|
|
784
|
+
* Defines if the Switch should be fluid
|
|
785
|
+
*/
|
|
786
|
+
fullWidth?: boolean;
|
|
787
|
+
}
|
|
788
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
789
|
+
|
|
790
|
+
interface TabBodyProps extends ComponentPropsWithoutRef<'div'> {
|
|
791
|
+
/**
|
|
792
|
+
* Children content.
|
|
793
|
+
*/
|
|
794
|
+
children?: ReactNode;
|
|
795
|
+
}
|
|
796
|
+
declare const TabBody: FC<TabBodyProps>;
|
|
797
|
+
|
|
798
|
+
interface TabHeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
799
|
+
/**
|
|
800
|
+
* Children content.
|
|
801
|
+
*/
|
|
802
|
+
children?: ReactNode;
|
|
803
|
+
}
|
|
804
|
+
declare const TabHeader: FC<TabHeaderProps>;
|
|
805
|
+
|
|
806
|
+
interface TabProps extends ComponentPropsWithoutRef<'div'> {
|
|
807
|
+
/**
|
|
808
|
+
* Children content.
|
|
809
|
+
*/
|
|
810
|
+
children?: Array<ReactElement<TabHeaderProps> | ReactElement<TabBodyProps>>;
|
|
811
|
+
/**
|
|
812
|
+
* Active tab.
|
|
813
|
+
*/
|
|
814
|
+
active?: BooleanProp;
|
|
815
|
+
}
|
|
816
|
+
declare const Tab: FC<TabProps>;
|
|
817
|
+
|
|
818
|
+
interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
819
|
+
/**
|
|
820
|
+
* Children content.
|
|
821
|
+
*/
|
|
822
|
+
children: ReactElement<TabProps> | Array<ReactElement<TabProps>>;
|
|
823
|
+
/**
|
|
824
|
+
* Defines if the tab should be fluid.
|
|
825
|
+
*/
|
|
826
|
+
fullWidth?: BooleanProp;
|
|
827
|
+
/**
|
|
828
|
+
* Automatic activation.
|
|
829
|
+
*/
|
|
830
|
+
automaticActivation?: BooleanProp;
|
|
831
|
+
}
|
|
832
|
+
declare const Tabs: FC<TabsProps>;
|
|
833
|
+
|
|
478
834
|
/**
|
|
479
835
|
* The available variants of the Tag. This variants will define the background and border color of the Tag.
|
|
480
836
|
*/
|
|
@@ -511,30 +867,87 @@ interface TagProps extends ComponentPropsWithRef<'button'> {
|
|
|
511
867
|
}
|
|
512
868
|
declare const Tag: React$1.ForwardRefExoticComponent<Omit<TagProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
513
869
|
|
|
514
|
-
type
|
|
515
|
-
interface
|
|
870
|
+
type ToastType = 'success' | 'failure' | 'warning' | 'info';
|
|
871
|
+
interface ToastProps extends Omit<ComponentPropsWithoutRef<'div'>, 'id'> {
|
|
516
872
|
/**
|
|
517
|
-
*
|
|
873
|
+
* The id of the toast
|
|
518
874
|
*/
|
|
519
|
-
|
|
875
|
+
id: number;
|
|
520
876
|
/**
|
|
521
|
-
*
|
|
877
|
+
* Title of the toast
|
|
522
878
|
*/
|
|
523
|
-
|
|
879
|
+
title: string;
|
|
524
880
|
/**
|
|
525
|
-
*
|
|
881
|
+
* Description of the toast
|
|
526
882
|
*/
|
|
527
|
-
|
|
883
|
+
description: string;
|
|
528
884
|
/**
|
|
529
|
-
*
|
|
885
|
+
* Type variant of the toast
|
|
530
886
|
*/
|
|
531
|
-
|
|
887
|
+
type: ToastType;
|
|
532
888
|
/**
|
|
533
|
-
*
|
|
889
|
+
* Alternative text to apply to the toast close button
|
|
534
890
|
*/
|
|
535
|
-
|
|
891
|
+
closeLabel: string;
|
|
536
892
|
}
|
|
537
|
-
declare const
|
|
893
|
+
declare const Toast: FC<ToastProps>;
|
|
894
|
+
|
|
895
|
+
interface ToastContextProps {
|
|
896
|
+
showToast: (data: ToastProps, duration?: number) => void;
|
|
897
|
+
removeToast: (data: ToastProps) => void;
|
|
898
|
+
}
|
|
899
|
+
declare const ToastContext: React$1.Context<ToastContextProps>;
|
|
900
|
+
declare const useToastContext: () => ToastContextProps;
|
|
901
|
+
type ToastPositions = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
902
|
+
interface ToastProviderProps {
|
|
903
|
+
children?: ReactNode;
|
|
904
|
+
position?: ToastPositions;
|
|
905
|
+
}
|
|
906
|
+
declare const ToastProvider: FC<ToastProviderProps>;
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* The available variants of the Tooltip. This variants will define the background of the Tooltip.
|
|
910
|
+
*/
|
|
911
|
+
type TooltipVariant = 'light' | 'dark' | 'info';
|
|
912
|
+
/**
|
|
913
|
+
* The available positions of the Tooltip. This positions will define the position of the Tooltip.
|
|
914
|
+
*/
|
|
915
|
+
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
916
|
+
/**
|
|
917
|
+
* The available alignments of the Tooltip. This alignments will define the alignment of the Tooltip.
|
|
918
|
+
*/
|
|
919
|
+
type TooltipAlignment = 'start' | 'center' | 'end';
|
|
920
|
+
interface TooltipProps extends ComponentPropsWithRef<'div'> {
|
|
921
|
+
/**
|
|
922
|
+
* The variant of the Tooltip.
|
|
923
|
+
*/
|
|
924
|
+
variant: TooltipVariant;
|
|
925
|
+
/**
|
|
926
|
+
* The position of the Tooltip.
|
|
927
|
+
*/
|
|
928
|
+
position: TooltipPosition;
|
|
929
|
+
/**
|
|
930
|
+
* The alignment of the Tooltip.
|
|
931
|
+
*/
|
|
932
|
+
alignment: TooltipAlignment;
|
|
933
|
+
/**
|
|
934
|
+
* The title of the Tooltip.
|
|
935
|
+
*/
|
|
936
|
+
title?: string;
|
|
937
|
+
/**
|
|
938
|
+
* If the Tooltip has a title.
|
|
939
|
+
*/
|
|
940
|
+
hasTitle?: boolean;
|
|
941
|
+
/**
|
|
942
|
+
* The description of the Tooltip.
|
|
943
|
+
*/
|
|
944
|
+
description: string;
|
|
945
|
+
/**
|
|
946
|
+
* The children of the Tooltip.
|
|
947
|
+
*/
|
|
948
|
+
children?: React$1.ReactNode;
|
|
949
|
+
}
|
|
950
|
+
declare const Tooltip: React$1.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
538
951
|
|
|
539
952
|
type AccordionGroupType = 'single' | 'multiple';
|
|
540
953
|
interface AccordionGroupProps extends ComponentPropsWithRef<'div'> {
|
|
@@ -545,7 +958,7 @@ interface AccordionGroupProps extends ComponentPropsWithRef<'div'> {
|
|
|
545
958
|
/**
|
|
546
959
|
* List of accordion components to use as children of the group.
|
|
547
960
|
*/
|
|
548
|
-
children?: ReactElement<AccordionProps> | Array<ReactElement<
|
|
961
|
+
children?: ReactElement<AccordionProps> | Array<ReactElement<AccordionProps>>;
|
|
549
962
|
/**
|
|
550
963
|
* Option to open multiple accordions or just one at a time
|
|
551
964
|
*/
|
|
@@ -553,6 +966,51 @@ interface AccordionGroupProps extends ComponentPropsWithRef<'div'> {
|
|
|
553
966
|
}
|
|
554
967
|
declare const AccordionGroup: React$1.ForwardRefExoticComponent<Omit<AccordionGroupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
555
968
|
|
|
969
|
+
interface AvatarGroupProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
970
|
+
/**
|
|
971
|
+
* List of avatar components to use as children of the group.
|
|
972
|
+
*/
|
|
973
|
+
children: ReactElement<AvatarProps> | Array<ReactElement<AvatarProps>>;
|
|
974
|
+
/**
|
|
975
|
+
* Number of avatars that will be visible in the group. Once it exceeds that number a separate icon will show how many more avatars there are left.
|
|
976
|
+
* Clicking on the icon with the number will preview the other avatars as well.
|
|
977
|
+
*/
|
|
978
|
+
visibleCount?: number;
|
|
979
|
+
}
|
|
980
|
+
declare const AvatarGroup: FC<AvatarGroupProps>;
|
|
981
|
+
|
|
982
|
+
interface ButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
983
|
+
/**
|
|
984
|
+
* button variant.
|
|
985
|
+
*/
|
|
986
|
+
variant?: ButtonVariant;
|
|
987
|
+
/**
|
|
988
|
+
* Defines if the anchor should be fluid
|
|
989
|
+
*/
|
|
990
|
+
fullWidth?: BooleanProp;
|
|
991
|
+
/**
|
|
992
|
+
* Group name
|
|
993
|
+
*/
|
|
994
|
+
name?: string;
|
|
995
|
+
/**
|
|
996
|
+
* List of button props to generate as buttons.
|
|
997
|
+
*/
|
|
998
|
+
items?: ButtonProps[];
|
|
999
|
+
/**
|
|
1000
|
+
* List of button components to use as children of the group.
|
|
1001
|
+
*/
|
|
1002
|
+
children?: ReactElement<ButtonProps> | Array<ReactElement<ButtonProps>>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Event triggered whenever any of the buttons changes is own state.
|
|
1005
|
+
*/
|
|
1006
|
+
onChange?: (selectedButtons: Array<ReactElement<ButtonProps>>) => void;
|
|
1007
|
+
/**
|
|
1008
|
+
* Defines if the group allows multiple selection.
|
|
1009
|
+
*/
|
|
1010
|
+
multiple?: BooleanProp;
|
|
1011
|
+
}
|
|
1012
|
+
declare const ButtonGroup: FC<ButtonGroupProps>;
|
|
1013
|
+
|
|
556
1014
|
interface CheckboxGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
557
1015
|
/**
|
|
558
1016
|
* Input label text.
|
|
@@ -650,7 +1108,7 @@ interface DropdownListProps extends Omit<React.ComponentPropsWithRef<'select'>,
|
|
|
650
1108
|
/**
|
|
651
1109
|
* Event triggered whenever the input search bar value changes.
|
|
652
1110
|
*/
|
|
653
|
-
onInputSearchChange?: (
|
|
1111
|
+
onInputSearchChange?: (value: string) => void;
|
|
654
1112
|
}
|
|
655
1113
|
|
|
656
1114
|
declare const DropdownList: FC<DropdownListProps>;
|
|
@@ -659,6 +1117,33 @@ declare const DropdownSection: FC<DropdownSectionProps>;
|
|
|
659
1117
|
|
|
660
1118
|
declare const DropdownSectionOption: FC<DropdownSectionOptionProps>;
|
|
661
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* ProgressBarGroup component.
|
|
1122
|
+
*/
|
|
1123
|
+
interface ProgressBarGroupProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
1124
|
+
/**
|
|
1125
|
+
* The label text to display.
|
|
1126
|
+
*/
|
|
1127
|
+
label?: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Whether to hide the label or not.
|
|
1130
|
+
*/
|
|
1131
|
+
hideLabel?: boolean;
|
|
1132
|
+
/**
|
|
1133
|
+
* List of progress components to use as children of the group.
|
|
1134
|
+
*/
|
|
1135
|
+
children?: ReactElement<ProgressBarProps> | Array<ReactElement<ProgressBarProps>>;
|
|
1136
|
+
/**
|
|
1137
|
+
* Whether to hide the percentage value or not.
|
|
1138
|
+
*/
|
|
1139
|
+
hidePercentageValues?: boolean;
|
|
1140
|
+
/**
|
|
1141
|
+
* Whether to display the progress bars in a sequential order or not.
|
|
1142
|
+
*/
|
|
1143
|
+
sequential?: boolean;
|
|
1144
|
+
}
|
|
1145
|
+
declare const ProgressBarGroup: FC<ProgressBarGroupProps>;
|
|
1146
|
+
|
|
662
1147
|
interface RadioButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
663
1148
|
/**
|
|
664
1149
|
* Input label text.
|
|
@@ -683,79 +1168,113 @@ interface RadioButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>,
|
|
|
683
1168
|
}
|
|
684
1169
|
declare const RadioButtonGroup: FC<RadioButtonGroupProps>;
|
|
685
1170
|
|
|
686
|
-
interface
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
btnOKText: string;
|
|
698
|
-
btnCancelText: string;
|
|
699
|
-
btnTodayText: string;
|
|
700
|
-
}
|
|
701
|
-
interface InputDateEventProps {
|
|
702
|
-
date: Date;
|
|
703
|
-
disabled: boolean;
|
|
704
|
-
}
|
|
705
|
-
interface InputDateProps extends React$1.ComponentPropsWithRef<'input'> {
|
|
706
|
-
/**
|
|
707
|
-
* Input ID.
|
|
708
|
-
*/
|
|
709
|
-
id: string;
|
|
1171
|
+
interface WeekDays {
|
|
1172
|
+
sun: string;
|
|
1173
|
+
mon: string;
|
|
1174
|
+
tue: string;
|
|
1175
|
+
wed: string;
|
|
1176
|
+
thu: string;
|
|
1177
|
+
fri: string;
|
|
1178
|
+
sat: string;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
interface InputDateProps extends ComponentPropsWithRef<'input'> {
|
|
710
1182
|
/**
|
|
711
|
-
* Input
|
|
1183
|
+
* Input label text.
|
|
712
1184
|
*/
|
|
713
1185
|
label?: string;
|
|
714
1186
|
/**
|
|
715
|
-
*
|
|
1187
|
+
* Show or hide input label.
|
|
716
1188
|
*/
|
|
717
|
-
|
|
1189
|
+
hideLabel?: BooleanProp;
|
|
718
1190
|
/**
|
|
719
|
-
*
|
|
1191
|
+
* Sets the input in a error state. This also affects the feedback state.
|
|
720
1192
|
*/
|
|
721
|
-
|
|
1193
|
+
hasError?: BooleanProp;
|
|
722
1194
|
/**
|
|
723
|
-
*
|
|
1195
|
+
* Show or hide the feedback status text.
|
|
724
1196
|
*/
|
|
725
|
-
|
|
1197
|
+
hasFeedback?: BooleanProp;
|
|
1198
|
+
/**
|
|
1199
|
+
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
1200
|
+
*/
|
|
1201
|
+
feedbackState?: FeedbackState;
|
|
726
1202
|
/**
|
|
727
|
-
*
|
|
1203
|
+
* Feedback text displayed below input.
|
|
728
1204
|
*/
|
|
729
1205
|
feedbackText?: string;
|
|
730
1206
|
/**
|
|
731
|
-
*
|
|
1207
|
+
* Show or hide the leading icon.
|
|
732
1208
|
*/
|
|
733
|
-
|
|
1209
|
+
hasIcon?: BooleanProp;
|
|
734
1210
|
/**
|
|
735
|
-
*
|
|
736
|
-
* This param will change the left feedback icon and dye it.
|
|
1211
|
+
* Name of the icon leading icon to be displayed.
|
|
737
1212
|
*/
|
|
738
|
-
|
|
1213
|
+
icon?: string;
|
|
739
1214
|
/**
|
|
740
|
-
*
|
|
1215
|
+
* Accessible text to apply to the trailing calendar icon.
|
|
741
1216
|
*/
|
|
742
|
-
|
|
1217
|
+
calendarIconAriaLabel: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Accessible text to apply to the date picker previous year button.
|
|
1220
|
+
*/
|
|
1221
|
+
previousYearAriaLabel: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* Accessible text to apply to the date picker previous month button.
|
|
1224
|
+
*/
|
|
1225
|
+
previousMonthAriaLabel: string;
|
|
1226
|
+
/**
|
|
1227
|
+
* Accessible text to apply to the date picker next month button.
|
|
1228
|
+
*/
|
|
1229
|
+
nextMonthAriaLabel: string;
|
|
743
1230
|
/**
|
|
744
|
-
*
|
|
1231
|
+
* Accessible text to apply to the date picker next year button.
|
|
745
1232
|
*/
|
|
746
|
-
|
|
1233
|
+
nextYearAriaLabel: string;
|
|
747
1234
|
/**
|
|
748
|
-
*
|
|
1235
|
+
* Labels for each month.
|
|
749
1236
|
*/
|
|
750
|
-
|
|
1237
|
+
monthsLabels?: Months;
|
|
751
1238
|
/**
|
|
752
|
-
*
|
|
1239
|
+
* Labels for each weekday.
|
|
753
1240
|
*/
|
|
754
|
-
|
|
1241
|
+
weekdaysLabels?: WeekDays;
|
|
755
1242
|
/**
|
|
756
|
-
*
|
|
1243
|
+
* Accessible text to identify the current focused day.
|
|
757
1244
|
*/
|
|
758
|
-
|
|
1245
|
+
focusedDayAriaLabel?: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* Accessible text to identify the current selected day.
|
|
1248
|
+
*/
|
|
1249
|
+
selectedDayAriaLabel: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* Accessible text to identify the highlighted today day.
|
|
1252
|
+
*/
|
|
1253
|
+
todayDayAriaLabel: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Label for the date picker today button.
|
|
1256
|
+
*/
|
|
1257
|
+
todayLabel: string;
|
|
1258
|
+
/**
|
|
1259
|
+
* Accessible text for the date picker today button.
|
|
1260
|
+
*/
|
|
1261
|
+
todayAriaLabel?: string;
|
|
1262
|
+
/**
|
|
1263
|
+
* Label for the date picker cancel button.
|
|
1264
|
+
*/
|
|
1265
|
+
cancelLabel: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* Accessible text for the date picker cancel button.
|
|
1268
|
+
*/
|
|
1269
|
+
cancelAriaLabel?: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Label for the date picker ok button.
|
|
1272
|
+
*/
|
|
1273
|
+
okLabel: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Accessible text for the date picker ok button.
|
|
1276
|
+
*/
|
|
1277
|
+
okAriaLabel?: string;
|
|
759
1278
|
}
|
|
760
1279
|
declare const InputDate: React$1.ForwardRefExoticComponent<Omit<InputDateProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
761
1280
|
|
|
@@ -915,7 +1434,7 @@ interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>, 'option
|
|
|
915
1434
|
}
|
|
916
1435
|
declare const InputSelect: React$1.ForwardRefExoticComponent<Omit<InputSelectProps, "ref"> & React$1.RefAttributes<HTMLSelectElement | InputSelectRef>>;
|
|
917
1436
|
|
|
918
|
-
type
|
|
1437
|
+
type CardFooterProps = {
|
|
919
1438
|
title?: string;
|
|
920
1439
|
description?: string | ReactNode;
|
|
921
1440
|
links?: AnchorHTMLAttributes<HTMLAnchorElement>[];
|
|
@@ -937,11 +1456,11 @@ interface FederatedFooterProps {
|
|
|
937
1456
|
/**
|
|
938
1457
|
* Informative card. Links limited to first 3, remaining array is discarded.
|
|
939
1458
|
*/
|
|
940
|
-
card?:
|
|
1459
|
+
card?: CardFooterProps;
|
|
941
1460
|
/**
|
|
942
1461
|
* Image on left side with/without link.
|
|
943
1462
|
*/
|
|
944
|
-
brandImage
|
|
1463
|
+
brandImage: LinkableImagesProps;
|
|
945
1464
|
/**
|
|
946
1465
|
* Image on right side with/without link.
|
|
947
1466
|
*/
|
|
@@ -949,11 +1468,11 @@ interface FederatedFooterProps {
|
|
|
949
1468
|
/**
|
|
950
1469
|
* Small descriptive text
|
|
951
1470
|
*/
|
|
952
|
-
caption
|
|
1471
|
+
caption: string | ReactNode;
|
|
953
1472
|
/**
|
|
954
1473
|
* List of images with or without link. Links limited to first 10, remaining array is discarded.
|
|
955
1474
|
*/
|
|
956
|
-
partnersLogos
|
|
1475
|
+
partnersLogos: LinkableImagesProps[];
|
|
957
1476
|
/**
|
|
958
1477
|
* List of icons with/without link. Links limited to first 10, remaining array is discarded.
|
|
959
1478
|
*/
|
|
@@ -962,10 +1481,59 @@ interface FederatedFooterProps {
|
|
|
962
1481
|
* List of links. Links limited to first 8, remaining array is discarded.
|
|
963
1482
|
*/
|
|
964
1483
|
usefulLinks?: AnchorHTMLAttributes<HTMLAnchorElement>[];
|
|
965
|
-
copyright
|
|
1484
|
+
copyright: string;
|
|
966
1485
|
}
|
|
967
1486
|
declare const FederatedFooter: FC<FederatedFooterProps>;
|
|
968
1487
|
|
|
1488
|
+
type CardLinksFooterProps = {
|
|
1489
|
+
title?: string;
|
|
1490
|
+
links?: AnchorHTMLAttributes<HTMLAnchorElement>[];
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
type ContactsFooterProps = {
|
|
1494
|
+
title?: string | ReactNode;
|
|
1495
|
+
description?: string | ReactNode;
|
|
1496
|
+
phones?: string[];
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
interface PublicFooterProps {
|
|
1500
|
+
/**
|
|
1501
|
+
* Informative card. Links limited to first 3, remaining array is discarded.
|
|
1502
|
+
*/
|
|
1503
|
+
card?: CardFooterProps;
|
|
1504
|
+
/**
|
|
1505
|
+
* Contacts limited to first 2, remaining array is discarded.
|
|
1506
|
+
*/
|
|
1507
|
+
contacts?: ContactsFooterProps[];
|
|
1508
|
+
cardLinks?: CardLinksFooterProps;
|
|
1509
|
+
/**
|
|
1510
|
+
* Image on left side with/without link.
|
|
1511
|
+
*/
|
|
1512
|
+
brandImage: LinkableImagesProps;
|
|
1513
|
+
/**
|
|
1514
|
+
* Image on right side with/without link.
|
|
1515
|
+
*/
|
|
1516
|
+
badgeImage?: LinkableImagesProps;
|
|
1517
|
+
/**
|
|
1518
|
+
* Small descriptive text
|
|
1519
|
+
*/
|
|
1520
|
+
caption: string | ReactNode;
|
|
1521
|
+
/**
|
|
1522
|
+
* List of images with or without link. Links limited to first 10, remaining array is discarded.
|
|
1523
|
+
*/
|
|
1524
|
+
partnersLogos: LinkableImagesProps[];
|
|
1525
|
+
/**
|
|
1526
|
+
* List of icons with/without link. Links limited to first 10, remaining array is discarded.
|
|
1527
|
+
*/
|
|
1528
|
+
socialsLink?: LinkableIconsProps[];
|
|
1529
|
+
/**
|
|
1530
|
+
* List of links. Links limited to first 8, remaining array is discarded.
|
|
1531
|
+
*/
|
|
1532
|
+
usefulLinks?: AnchorHTMLAttributes<HTMLAnchorElement>[];
|
|
1533
|
+
copyright: string;
|
|
1534
|
+
}
|
|
1535
|
+
declare const PublicFooter: FC<PublicFooterProps>;
|
|
1536
|
+
|
|
969
1537
|
/**
|
|
970
1538
|
* Convert string like value to Boolean
|
|
971
1539
|
*/
|
|
@@ -983,4 +1551,4 @@ declare class TypedEventEmitter<K extends string, T> {
|
|
|
983
1551
|
emit(eventName: K, event: T): boolean;
|
|
984
1552
|
}
|
|
985
1553
|
|
|
986
|
-
export { Accordion, AccordionGroup, AccordionGroupProps, AccordionGroupType, AccordionProps, AccordionRef, BooleanProp, Breadcrumb, BreadcrumbLink, BreadcrumbProps, Button, ButtonAppearance, ButtonProps, ButtonVariant,
|
|
1554
|
+
export { Accordion, AccordionGroup, AccordionGroupProps, AccordionGroupType, AccordionProps, AccordionRef, Anchor, AnchorAppearance, AnchorProps, AnchorVariant, Avatar, AvatarBadgePosition, AvatarBadgeVariant, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarType, BooleanProp, Breadcrumb, BreadcrumbLink, BreadcrumbProps, Button, ButtonAppearance, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonVariant, CardFooterProps, CardLinksFooterProps, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ContactsFooterProps, Drawer, DrawerPosition, DrawerProps, DrawerRef, DropdownList, DropdownListProps, DropdownSection, DropdownSectionOption, DropdownSectionOptionProps, DropdownSectionProps, DropdownSectionType, FederatedFooter, FederatedFooterProps, FeedbackState, GlossaryLetter, GlossaryLetters, GlossaryLettersProps, Icon, IconDimensions, IconName, IconPosition, IconProps, InputDate, InputDateProps, InputNumber, InputNumberProps, InputPassword, InputPasswordProps, InputPhone, InputPhoneProps, InputPhoneRef, InputRange, InputSearch, InputSearchProps, InputSelect, InputSelectProps, InputText, InputTextArea, InputTextAreaProps, InputTextProps, LetterStatus, LinkableIconsProps, LinkableImagesProps, List, ListProps, ListType, Modal, ModalContextProps, ModalProps, ModalProvider, ModalProviderProps, Months, PhoneCountryCode, PhoneCountryCodes, PhoneCountryISO, PhoneCountryISOs, Pill, PillAppearance, PillProps, PillVariant, ProgressBar, ProgressBarGroup, ProgressBarGroupProps, ProgressBarProps, PublicFooter, PublicFooterProps, RadioButton, RadioButtonGroup, RadioButtonGroupProps, RadioButtonProps, RangeOrientation, RangeProps, RangeType, Scribbles, ScribblesName, ScribblesProps, StepList, StepListProps, Switch, SwitchPosition, SwitchProps, Tab, TabBody, TabBodyProps, TabHeader, TabHeaderProps, TabProps, Tabs, TabsProps, Tag, TagProps, TagVariant, Toast, ToastContext, ToastContextProps, ToastPositions, ToastProps, ToastProvider, ToastProviderProps, ToastType, Tooltip, TooltipAlignment, TooltipPosition, TooltipProps, TooltipVariant, TypedEventEmitter, allIcons, allScribbles, debounce, normalizeText, stringToBoolean, useModalContext, useToastContext };
|