@ama-pt/agora-design-system 0.4.0 → 0.6.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/dist/cjs/index.ts +1 -1
- package/dist/cjs/index.ts.map +1 -1
- package/dist/esm/index.ts +1 -1
- package/dist/esm/index.ts.map +1 -1
- package/dist/index.d.ts +314 -56
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ComponentPropsWithRef, ReactNode, FC, SVGProps, HTMLProps, ComponentPropsWithoutRef, ReactElement, HtmlHTMLAttributes, ChangeEvent, RefObject, AnchorHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
2
|
+
import React__default, { ComponentPropsWithRef, ReactNode, FC, SVGProps, HTMLProps, ComponentPropsWithoutRef, ReactElement, ForwardRefRenderFunction, HtmlHTMLAttributes, ChangeEvent, RefObject, AnchorHTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
4
|
type BooleanProp = boolean | 'true' | 'false';
|
|
5
5
|
|
|
@@ -76,7 +76,7 @@ declare const Accordion: React__default.ForwardRefExoticComponent<Omit<Accordion
|
|
|
76
76
|
/**
|
|
77
77
|
* The available variants of the anchors. This variants will define the background and border color of the anchors.
|
|
78
78
|
*/
|
|
79
|
-
type AnchorVariant = 'primary' | 'neutral' | 'white' | 'success' | 'warning' | 'danger';
|
|
79
|
+
type AnchorVariant = 'primary' | 'informative' | 'neutral' | 'white' | 'success' | 'warning' | 'danger';
|
|
80
80
|
/**
|
|
81
81
|
* The available anchor appearances. Defines the anchor shape.
|
|
82
82
|
*/
|
|
@@ -244,7 +244,7 @@ declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
|
244
244
|
/**
|
|
245
245
|
* The available variants of the button. This variants will define the background and border color of the button.
|
|
246
246
|
*/
|
|
247
|
-
type ButtonVariant = 'primary' | 'neutral' | 'white' | 'success' | 'warning' | 'danger';
|
|
247
|
+
type ButtonVariant = 'primary' | 'informative' | 'neutral' | 'white' | 'success' | 'warning' | 'danger';
|
|
248
248
|
/**
|
|
249
249
|
* The available button appearances. Defines the button shape.
|
|
250
250
|
*/
|
|
@@ -595,12 +595,25 @@ interface RangeProps extends Omit<ComponentPropsWithRef<'input'>, 'value' | 'onC
|
|
|
595
595
|
}
|
|
596
596
|
declare const InputRange: React__default.ForwardRefExoticComponent<Omit<RangeProps, "ref"> & React__default.RefAttributes<HTMLDivElement | HTMLInputElement | (HTMLInputElement | null)[]>>;
|
|
597
597
|
|
|
598
|
-
type ListType = '
|
|
598
|
+
type ListType = 'unordered' | 'ordered';
|
|
599
|
+
type ListStyle = 'none' | 'bullet' | 'number' | 'icon';
|
|
599
600
|
interface ListProps extends ComponentPropsWithoutRef<'ul'> {
|
|
600
601
|
/**
|
|
601
602
|
* Type list.
|
|
602
603
|
*/
|
|
603
604
|
type?: ListType;
|
|
605
|
+
/**
|
|
606
|
+
* Style of the list depending on the chosen type.
|
|
607
|
+
*/
|
|
608
|
+
listStyle?: ListStyle;
|
|
609
|
+
/**
|
|
610
|
+
* Choose the starting number of an ordered number list.
|
|
611
|
+
*/
|
|
612
|
+
startNumber?: number;
|
|
613
|
+
/**
|
|
614
|
+
* Choose the icon for an unordered list.
|
|
615
|
+
*/
|
|
616
|
+
icon?: string;
|
|
604
617
|
/**
|
|
605
618
|
* Children content.
|
|
606
619
|
*/
|
|
@@ -646,47 +659,6 @@ interface MenuItemRef {
|
|
|
646
659
|
type ExtendedInterfaceMenu = HTMLButtonElement | HTMLAnchorElement | MenuItemRef | AvatarProps;
|
|
647
660
|
declare const MenuItem: React__default.ForwardRefExoticComponent<((BaseProps & AvatarProps) | Omit<BaseProps & React__default.HTMLProps<HTMLDivElement>, "ref"> | Omit<BaseProps & React__default.HTMLProps<HTMLAnchorElement>, "ref"> | Omit<BaseProps & React__default.HTMLProps<HTMLButtonElement>, "ref">) & React__default.RefAttributes<ExtendedInterfaceMenu>>;
|
|
648
661
|
|
|
649
|
-
interface ModalProps extends ComponentPropsWithoutRef<'dialog'> {
|
|
650
|
-
/**
|
|
651
|
-
* Title text for the close button.
|
|
652
|
-
*/
|
|
653
|
-
closeButtonText: string;
|
|
654
|
-
/**
|
|
655
|
-
* Children content.
|
|
656
|
-
*/
|
|
657
|
-
children: ReactNode;
|
|
658
|
-
/**
|
|
659
|
-
* Show or hide close button title.
|
|
660
|
-
*/
|
|
661
|
-
hideCloseButtonText?: BooleanProp;
|
|
662
|
-
}
|
|
663
|
-
declare const Modal: FC<ModalProps>;
|
|
664
|
-
|
|
665
|
-
declare const useModal: () => {
|
|
666
|
-
showModal: (params: ReactNode, props: ModalProps) => void;
|
|
667
|
-
closeModal: () => void;
|
|
668
|
-
isOpen: boolean;
|
|
669
|
-
modalContent: ReactNode;
|
|
670
|
-
modalProps: ModalProps;
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
interface ModalContextProps {
|
|
674
|
-
isOpen?: boolean;
|
|
675
|
-
showModal: (params: ReactNode, modalProps: ModalProps) => void;
|
|
676
|
-
closeModal: () => void;
|
|
677
|
-
modalContent?: ReactNode | null;
|
|
678
|
-
}
|
|
679
|
-
declare const ModalContext: React$1.Context<ModalContextProps>;
|
|
680
|
-
declare const useModalContext: () => ModalContextProps;
|
|
681
|
-
|
|
682
|
-
interface ModalProviderProps {
|
|
683
|
-
/**
|
|
684
|
-
* Children content.
|
|
685
|
-
*/
|
|
686
|
-
children: ReactNode;
|
|
687
|
-
}
|
|
688
|
-
declare const ModalProvider: FC<ModalProviderProps>;
|
|
689
|
-
|
|
690
662
|
/**
|
|
691
663
|
* The available variants of the pill. This variants will define the background and border color of the pill.
|
|
692
664
|
*/
|
|
@@ -799,12 +771,14 @@ interface ScribblesProps extends SuperScribblesProps {
|
|
|
799
771
|
}
|
|
800
772
|
declare const Scribbles: FC<ScribblesProps>;
|
|
801
773
|
|
|
774
|
+
declare const SkipNavigation: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLAnchorElement> & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
775
|
+
|
|
802
776
|
type StatusCardType = 'info' | 'success' | 'warning' | 'danger';
|
|
803
777
|
interface StatusCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
804
778
|
/**
|
|
805
779
|
* Status card description content
|
|
806
780
|
*/
|
|
807
|
-
description:
|
|
781
|
+
description: ReactNode;
|
|
808
782
|
/**
|
|
809
783
|
* The available Status card types. Defines the appearance of the cards.
|
|
810
784
|
*/
|
|
@@ -995,38 +969,120 @@ type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
|
995
969
|
* The available alignments of the Tooltip. This alignments will define the alignment of the Tooltip.
|
|
996
970
|
*/
|
|
997
971
|
type TooltipAlignment = 'start' | 'center' | 'end';
|
|
998
|
-
interface TooltipProps extends ComponentPropsWithRef<'div'> {
|
|
972
|
+
interface TooltipProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
999
973
|
/**
|
|
1000
974
|
* The variant of the Tooltip.
|
|
1001
975
|
*/
|
|
1002
|
-
variant
|
|
976
|
+
variant?: TooltipVariant;
|
|
1003
977
|
/**
|
|
1004
978
|
* The position of the Tooltip.
|
|
1005
979
|
*/
|
|
1006
|
-
position
|
|
980
|
+
position?: TooltipPosition;
|
|
1007
981
|
/**
|
|
1008
982
|
* The alignment of the Tooltip.
|
|
1009
983
|
*/
|
|
1010
|
-
alignment
|
|
984
|
+
alignment?: TooltipAlignment;
|
|
1011
985
|
/**
|
|
1012
986
|
* The title of the Tooltip.
|
|
1013
987
|
*/
|
|
1014
|
-
title?:
|
|
988
|
+
title?: ReactNode;
|
|
1015
989
|
/**
|
|
1016
990
|
* If the Tooltip has a title.
|
|
1017
991
|
*/
|
|
1018
|
-
hasTitle?:
|
|
992
|
+
hasTitle?: BooleanProp;
|
|
1019
993
|
/**
|
|
1020
994
|
* The description of the Tooltip.
|
|
1021
995
|
*/
|
|
1022
|
-
description:
|
|
996
|
+
description: ReactNode;
|
|
1023
997
|
/**
|
|
1024
998
|
* The children of the Tooltip.
|
|
1025
999
|
*/
|
|
1026
|
-
children?:
|
|
1000
|
+
children?: ReactNode;
|
|
1027
1001
|
}
|
|
1028
1002
|
declare const Tooltip: React__default.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1029
1003
|
|
|
1004
|
+
interface DialogElementRef {
|
|
1005
|
+
/** Reference to the dialog container HTMLDivElement */
|
|
1006
|
+
current?: HTMLDivElement;
|
|
1007
|
+
/** Flag that tells if the dialog is visible or not */
|
|
1008
|
+
visible?: boolean;
|
|
1009
|
+
/** Show the dialog */
|
|
1010
|
+
show: () => void;
|
|
1011
|
+
/** Hide the dialog */
|
|
1012
|
+
hide: () => void;
|
|
1013
|
+
}
|
|
1014
|
+
interface DialogProps extends ComponentPropsWithRef<'div'> {
|
|
1015
|
+
/**
|
|
1016
|
+
* Initial visibility state of the dialog
|
|
1017
|
+
* */
|
|
1018
|
+
visible?: BooleanProp;
|
|
1019
|
+
/**
|
|
1020
|
+
* Renders the dialog content as full screen without a backdrop
|
|
1021
|
+
*/
|
|
1022
|
+
fullScreen?: BooleanProp;
|
|
1023
|
+
/**
|
|
1024
|
+
* If not a fullscreen dialog, allows the user to dismiss the dialog by clicking in the backdrop
|
|
1025
|
+
*/
|
|
1026
|
+
dismissOnBackdropClick?: BooleanProp;
|
|
1027
|
+
/**
|
|
1028
|
+
* Allows the dialog to be closed by pressing Escape key.
|
|
1029
|
+
*/
|
|
1030
|
+
dismissOnEscape?: BooleanProp;
|
|
1031
|
+
}
|
|
1032
|
+
declare const Dialog: React__default.ForwardRefExoticComponent<Omit<DialogProps, "ref"> & React__default.RefAttributes<DialogElementRef>>;
|
|
1033
|
+
|
|
1034
|
+
interface InputFileProps extends ComponentPropsWithRef<'input'> {
|
|
1035
|
+
/**
|
|
1036
|
+
* The maxSize of the file in bytes
|
|
1037
|
+
*/
|
|
1038
|
+
maxSize: number;
|
|
1039
|
+
/**
|
|
1040
|
+
* The extensionsBlackList of the uploader
|
|
1041
|
+
*/
|
|
1042
|
+
extensionsBlackList: string[];
|
|
1043
|
+
/**
|
|
1044
|
+
* The addedLabel of the uploader
|
|
1045
|
+
*/
|
|
1046
|
+
addedLabel: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* The announceRemovedFileLabel of the uploader
|
|
1049
|
+
*/
|
|
1050
|
+
announceRemovedFileLabel: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* The removeFileLabel of the uploader
|
|
1053
|
+
*/
|
|
1054
|
+
removeFileLabel: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* The fileListLabel of the uploader
|
|
1057
|
+
*/
|
|
1058
|
+
fileListLabel: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* The fileDropZoneAriaLabel of the uploader
|
|
1061
|
+
*/
|
|
1062
|
+
fileDropZoneAriaLabel: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* The dropYourFilesHereLabel of the uploader
|
|
1065
|
+
*/
|
|
1066
|
+
dropYourFilesHereLabel: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* The allowedFilesAriaLabel of the uploader
|
|
1069
|
+
*/
|
|
1070
|
+
allowedFilesAriaLabel: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* The uploadFilesLabel of the uploader
|
|
1073
|
+
*/
|
|
1074
|
+
uploadFilesLabel: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* The id of the uploader
|
|
1077
|
+
*/
|
|
1078
|
+
id?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* The fileLabel of the uploader
|
|
1081
|
+
*/
|
|
1082
|
+
fileLabel: string;
|
|
1083
|
+
}
|
|
1084
|
+
declare const InputFile: ForwardRefRenderFunction<HTMLInputElement, InputFileProps>;
|
|
1085
|
+
|
|
1030
1086
|
type AccordionGroupType = 'single' | 'multiple';
|
|
1031
1087
|
interface AccordionGroupProps extends ComponentPropsWithRef<'div'> {
|
|
1032
1088
|
/**
|
|
@@ -1057,6 +1113,34 @@ interface AvatarGroupProps extends HtmlHTMLAttributes<HTMLDivElement> {
|
|
|
1057
1113
|
}
|
|
1058
1114
|
declare const AvatarGroup: FC<AvatarGroupProps>;
|
|
1059
1115
|
|
|
1116
|
+
interface BackToTopProps extends ComponentPropsWithRef<'button'> {
|
|
1117
|
+
/**
|
|
1118
|
+
* The variant of the Tooltip.
|
|
1119
|
+
*/
|
|
1120
|
+
tooltipVariant?: TooltipVariant;
|
|
1121
|
+
/**
|
|
1122
|
+
* Position of the tooltip to shows when the user focus or hovers the component.
|
|
1123
|
+
*/
|
|
1124
|
+
tooltipPosition?: TooltipPosition;
|
|
1125
|
+
/**
|
|
1126
|
+
* Alignment of the tooltip shown whenever the user focus or hovers the component.
|
|
1127
|
+
*/
|
|
1128
|
+
tooltipAlignment?: TooltipAlignment;
|
|
1129
|
+
/**
|
|
1130
|
+
* If the Tooltip has a title.
|
|
1131
|
+
*/
|
|
1132
|
+
hasTooltipTitle?: BooleanProp;
|
|
1133
|
+
/**
|
|
1134
|
+
* The title of the Tooltip.
|
|
1135
|
+
*/
|
|
1136
|
+
tooltipTitle?: ReactNode;
|
|
1137
|
+
/**
|
|
1138
|
+
* Tooltip description to show when user focus or hovers the component.
|
|
1139
|
+
*/
|
|
1140
|
+
tooltipDescription: ReactNode;
|
|
1141
|
+
}
|
|
1142
|
+
declare const BackToTop: React__default.ForwardRefExoticComponent<Omit<BackToTopProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1143
|
+
|
|
1060
1144
|
interface ButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1061
1145
|
/**
|
|
1062
1146
|
* button variant.
|
|
@@ -1090,10 +1174,30 @@ interface CheckboxGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'o
|
|
|
1090
1174
|
* Input label text.
|
|
1091
1175
|
*/
|
|
1092
1176
|
label?: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* Decides if display/hide label.
|
|
1179
|
+
*/
|
|
1180
|
+
hideLabel?: BooleanProp;
|
|
1093
1181
|
/**
|
|
1094
1182
|
* List of checkboxes props to generate as checkboxes.
|
|
1095
1183
|
*/
|
|
1096
1184
|
items?: CheckboxProps[];
|
|
1185
|
+
/**
|
|
1186
|
+
* Sets the checkbox in a error state. This also affects the feedback state.
|
|
1187
|
+
*/
|
|
1188
|
+
hasError?: BooleanProp;
|
|
1189
|
+
/**
|
|
1190
|
+
* Show or hide the feedback status text.
|
|
1191
|
+
*/
|
|
1192
|
+
hasFeedback?: BooleanProp;
|
|
1193
|
+
/**
|
|
1194
|
+
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
1195
|
+
*/
|
|
1196
|
+
feedbackState?: FeedbackState;
|
|
1197
|
+
/**
|
|
1198
|
+
* Feedback text displayed below checkbox-group.
|
|
1199
|
+
*/
|
|
1200
|
+
feedbackText?: string;
|
|
1097
1201
|
/**
|
|
1098
1202
|
* List of checkbox components to use as children of the group.
|
|
1099
1203
|
*/
|
|
@@ -1180,7 +1284,7 @@ interface DropdownListProps extends Omit<React.ComponentPropsWithRef<'select'>,
|
|
|
1180
1284
|
*/
|
|
1181
1285
|
searchDebounceTimeout?: number;
|
|
1182
1286
|
/**
|
|
1183
|
-
* Event triggered whenever the input search
|
|
1287
|
+
* Event triggered whenever the input search value changes.
|
|
1184
1288
|
*/
|
|
1185
1289
|
onInputSearchChange?: (value: string) => void;
|
|
1186
1290
|
}
|
|
@@ -1223,10 +1327,30 @@ interface RadioButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>,
|
|
|
1223
1327
|
* Input label text.
|
|
1224
1328
|
*/
|
|
1225
1329
|
label?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* Decides if display/hide label.
|
|
1332
|
+
*/
|
|
1333
|
+
hideLabel?: BooleanProp;
|
|
1226
1334
|
/**
|
|
1227
1335
|
* Group name
|
|
1228
1336
|
*/
|
|
1229
1337
|
name: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* Sets the radio button in a error state. This also affects the feedback state.
|
|
1340
|
+
*/
|
|
1341
|
+
hasError?: BooleanProp;
|
|
1342
|
+
/**
|
|
1343
|
+
* Show or hide the feedback status text.
|
|
1344
|
+
*/
|
|
1345
|
+
hasFeedback?: BooleanProp;
|
|
1346
|
+
/**
|
|
1347
|
+
* Defines the state of the feedback text. This param will change the feedback icon and dye it.
|
|
1348
|
+
*/
|
|
1349
|
+
feedbackState?: FeedbackState;
|
|
1350
|
+
/**
|
|
1351
|
+
* Feedback text displayed below radio-button.
|
|
1352
|
+
*/
|
|
1353
|
+
feedbackText?: string;
|
|
1230
1354
|
/**
|
|
1231
1355
|
* List of radiobutton props to generate as radio buttons.
|
|
1232
1356
|
*/
|
|
@@ -1242,6 +1366,114 @@ interface RadioButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>,
|
|
|
1242
1366
|
}
|
|
1243
1367
|
declare const RadioButtonGroup: FC<RadioButtonGroupProps>;
|
|
1244
1368
|
|
|
1369
|
+
type PopupDimensions = 's' | 'm' | 'l';
|
|
1370
|
+
interface PopupDialogProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
1371
|
+
/**
|
|
1372
|
+
* Available popup sizes. Can be small (S), medium (M), and large (L) dimensions.
|
|
1373
|
+
*/
|
|
1374
|
+
dimensions?: PopupDimensions;
|
|
1375
|
+
/**
|
|
1376
|
+
* Title of the popup dialog.
|
|
1377
|
+
*/
|
|
1378
|
+
title: ReactNode;
|
|
1379
|
+
/**
|
|
1380
|
+
* Close button alternative text.
|
|
1381
|
+
*/
|
|
1382
|
+
closeAriaLabel: string;
|
|
1383
|
+
/**
|
|
1384
|
+
* Children content.
|
|
1385
|
+
*/
|
|
1386
|
+
children: ReactNode;
|
|
1387
|
+
}
|
|
1388
|
+
declare const PopupDialog: FC<PopupDialogProps>;
|
|
1389
|
+
|
|
1390
|
+
interface PopupContextProps {
|
|
1391
|
+
current: DialogElementRef | null;
|
|
1392
|
+
visibility?: boolean;
|
|
1393
|
+
show: (children: ReactNode, popupProps: PopupDialogProps) => void;
|
|
1394
|
+
hide: () => void;
|
|
1395
|
+
}
|
|
1396
|
+
declare const PopupContext: React$1.Context<PopupContextProps>;
|
|
1397
|
+
declare const usePopupContext: () => PopupContextProps;
|
|
1398
|
+
|
|
1399
|
+
interface PopupProviderProps {
|
|
1400
|
+
/**
|
|
1401
|
+
* If not a fullscreen dialog, allows the user to dismiss the dialog by clicking in the backdrop
|
|
1402
|
+
*/
|
|
1403
|
+
dismissOnBackdropClick?: BooleanProp;
|
|
1404
|
+
/**
|
|
1405
|
+
* Allows the dialog to be closed by pressing Escape key.
|
|
1406
|
+
*/
|
|
1407
|
+
dismissOnEscape?: BooleanProp;
|
|
1408
|
+
/**
|
|
1409
|
+
* Children content.
|
|
1410
|
+
*/
|
|
1411
|
+
children: ReactNode;
|
|
1412
|
+
}
|
|
1413
|
+
declare const PopupProvider: FC<PopupProviderProps>;
|
|
1414
|
+
|
|
1415
|
+
interface LoaderDialogProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
1416
|
+
/**
|
|
1417
|
+
* The title of the loader.
|
|
1418
|
+
*/
|
|
1419
|
+
title?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* The subtitle of the loader.
|
|
1422
|
+
*/
|
|
1423
|
+
subtitle?: string;
|
|
1424
|
+
}
|
|
1425
|
+
declare const LoaderDialog: FC<LoaderDialogProps>;
|
|
1426
|
+
|
|
1427
|
+
interface LoaderDialogContextProps {
|
|
1428
|
+
current: DialogElementRef | null;
|
|
1429
|
+
visibility?: boolean;
|
|
1430
|
+
showLoader: (props: LoaderDialogProps) => void;
|
|
1431
|
+
hideLoader: () => void;
|
|
1432
|
+
}
|
|
1433
|
+
declare const LoaderDialogContext: React$1.Context<LoaderDialogContextProps>;
|
|
1434
|
+
declare const useLoaderDialogContext: () => LoaderDialogContextProps;
|
|
1435
|
+
|
|
1436
|
+
interface LoaderDialogProviderProps {
|
|
1437
|
+
/**
|
|
1438
|
+
* Children content.
|
|
1439
|
+
*/
|
|
1440
|
+
children: ReactNode;
|
|
1441
|
+
}
|
|
1442
|
+
declare const LoaderDialogProvider: FC<LoaderDialogProviderProps>;
|
|
1443
|
+
|
|
1444
|
+
interface ModalDialogProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
|
|
1445
|
+
/**
|
|
1446
|
+
* Close button text.
|
|
1447
|
+
*/
|
|
1448
|
+
closeButtonLabel: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* Children content.
|
|
1451
|
+
*/
|
|
1452
|
+
children: ReactNode;
|
|
1453
|
+
}
|
|
1454
|
+
declare const ModalDialog: FC<ModalDialogProps>;
|
|
1455
|
+
|
|
1456
|
+
interface ModalContextProps {
|
|
1457
|
+
current: DialogElementRef | null;
|
|
1458
|
+
visibility?: boolean;
|
|
1459
|
+
show: (children: ReactNode, popupProps: ModalDialogProps) => void;
|
|
1460
|
+
hide: () => void;
|
|
1461
|
+
}
|
|
1462
|
+
declare const ModalContext: React$1.Context<ModalContextProps>;
|
|
1463
|
+
declare const useModalContext: () => ModalContextProps;
|
|
1464
|
+
|
|
1465
|
+
interface ModalProviderProps {
|
|
1466
|
+
/**
|
|
1467
|
+
* Allows the dialog to be closed by pressing Escape key.
|
|
1468
|
+
*/
|
|
1469
|
+
dismissOnEscape?: BooleanProp;
|
|
1470
|
+
/**
|
|
1471
|
+
* Children content.
|
|
1472
|
+
*/
|
|
1473
|
+
children: ReactNode;
|
|
1474
|
+
}
|
|
1475
|
+
declare const ModalProvider: FC<ModalProviderProps>;
|
|
1476
|
+
|
|
1245
1477
|
interface WeekDays {
|
|
1246
1478
|
sun: string;
|
|
1247
1479
|
mon: string;
|
|
@@ -1285,6 +1517,18 @@ interface InputDateProps extends ComponentPropsWithRef<'input'> {
|
|
|
1285
1517
|
* Name of the icon leading icon to be displayed.
|
|
1286
1518
|
*/
|
|
1287
1519
|
icon?: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* The placeholder to apply in the input day part
|
|
1522
|
+
*/
|
|
1523
|
+
dayInputPlaceholder?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* The placeholder to apply in the input month part
|
|
1526
|
+
*/
|
|
1527
|
+
monthInputPlaceholder?: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* The placeholder to apply in the input year part
|
|
1530
|
+
*/
|
|
1531
|
+
yearInputPlaceholder?: string;
|
|
1288
1532
|
/**
|
|
1289
1533
|
* Accessible text to apply to the trailing calendar icon.
|
|
1290
1534
|
*/
|
|
@@ -1493,6 +1737,10 @@ interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>, 'option
|
|
|
1493
1737
|
* Accessible text for the input search bar.
|
|
1494
1738
|
*/
|
|
1495
1739
|
searchInputAriaLabel?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* Event triggered whenever the input search value changes.
|
|
1742
|
+
*/
|
|
1743
|
+
onSearchInputChange?: (value: string) => void;
|
|
1496
1744
|
/**
|
|
1497
1745
|
* Text to show when filtering presents no results.
|
|
1498
1746
|
*/
|
|
@@ -1658,6 +1906,16 @@ declare const AgoraTailwindConfig: {
|
|
|
1658
1906
|
16: string;
|
|
1659
1907
|
32: string;
|
|
1660
1908
|
};
|
|
1909
|
+
zIndex: {
|
|
1910
|
+
dropdown: string;
|
|
1911
|
+
backdrop: string;
|
|
1912
|
+
sticky: string;
|
|
1913
|
+
fixed: string;
|
|
1914
|
+
drawer: string;
|
|
1915
|
+
dialog: string;
|
|
1916
|
+
toast: string;
|
|
1917
|
+
tooltip: string;
|
|
1918
|
+
};
|
|
1661
1919
|
};
|
|
1662
1920
|
screens: {
|
|
1663
1921
|
xs: string;
|
|
@@ -1981,4 +2239,4 @@ declare const AgoraTailwindConfig: {
|
|
|
1981
2239
|
plugins: (({ addComponents }: any) => void)[];
|
|
1982
2240
|
};
|
|
1983
2241
|
|
|
1984
|
-
export { Accordion, AccordionGroup, type AccordionGroupProps, type AccordionGroupType, type AccordionProps, type AccordionRef, AgoraTailwindConfig, Anchor, type AnchorAppearance, type AnchorProps, type AnchorVariant, Avatar, type AvatarBadgePosition, type AvatarBadgeVariant, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarType, type BooleanProp, Breadcrumb, type BreadcrumbLink, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariant, type CardFooterProps, type CardLinksFooterProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ContactsFooterProps, Drawer, type DrawerPosition, type DrawerProps, type DrawerRef, DropdownList, type DropdownListProps, DropdownSection, DropdownSectionOption, type DropdownSectionOptionProps, type DropdownSectionProps, type DropdownSectionType, FederatedFooter, type FederatedFooterProps, type FeedbackState, type GlossaryLetter, GlossaryLetters, type GlossaryLettersProps, Icon, type IconDimensions, type IconName, type IconPosition, type IconProps, InputDate, type InputDateProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, type InputPhoneRef, InputRange, InputSearch, type InputSearchProps, InputSelect, type InputSelectProps, InputText, InputTextArea, type InputTextAreaProps, type InputTextProps, type LetterStatus, type LinkableIconsProps, type LinkableImagesProps, List, type ListProps, type ListType, MenuItem, type MenuItemProps, type MenuItemRef, type MenuItemType,
|
|
2242
|
+
export { Accordion, AccordionGroup, type AccordionGroupProps, type AccordionGroupType, type AccordionProps, type AccordionRef, AgoraTailwindConfig, Anchor, type AnchorAppearance, type AnchorProps, type AnchorVariant, Avatar, type AvatarBadgePosition, type AvatarBadgeVariant, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarType, BackToTop, type BackToTopProps, type BooleanProp, Breadcrumb, type BreadcrumbLink, type BreadcrumbProps, Button, type ButtonAppearance, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariant, type CardFooterProps, type CardLinksFooterProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ContactsFooterProps, Dialog, type DialogElementRef, type DialogProps, Drawer, type DrawerPosition, type DrawerProps, type DrawerRef, DropdownList, type DropdownListProps, DropdownSection, DropdownSectionOption, type DropdownSectionOptionProps, type DropdownSectionProps, type DropdownSectionType, FederatedFooter, type FederatedFooterProps, type FeedbackState, type GlossaryLetter, GlossaryLetters, type GlossaryLettersProps, Icon, type IconDimensions, type IconName, type IconPosition, type IconProps, InputDate, type InputDateProps, InputFile, type InputFileProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, type InputPhoneRef, InputRange, InputSearch, type InputSearchProps, InputSelect, type InputSelectProps, InputText, InputTextArea, type InputTextAreaProps, type InputTextProps, type LetterStatus, type LinkableIconsProps, type LinkableImagesProps, List, type ListProps, type ListStyle, type ListType, LoaderDialog, LoaderDialogContext, type LoaderDialogContextProps, type LoaderDialogProps, LoaderDialogProvider, type LoaderDialogProviderProps, MenuItem, type MenuItemProps, type MenuItemRef, type MenuItemType, ModalContext, type ModalContextProps, ModalDialog, type ModalDialogProps, ModalProvider, type ModalProviderProps, type Months, type PhoneCountryCode, PhoneCountryCodes, type PhoneCountryISO, PhoneCountryISOs, Pill, type PillAppearance, type PillProps, type PillVariant, PopupContext, type PopupContextProps, PopupDialog, type PopupDialogProps, type PopupDimensions, PopupProvider, type PopupProviderProps, ProgressBar, ProgressBarGroup, type ProgressBarGroupProps, type ProgressBarProps, PublicFooter, type PublicFooterProps, RadioButton, RadioButtonGroup, type RadioButtonGroupProps, type RadioButtonProps, type RangeOrientation, type RangeProps, type RangeType, Scribbles, type ScribblesName, type ScribblesProps, SkipNavigation, StatusCard, type StatusCardProps, type StatusCardType, StepList, type StepListProps, Switch, type SwitchPosition, type SwitchProps, Tab, TabBody, type TabBodyProps, TabHeader, type TabHeaderProps, type TabProps, Tabs, type TabsProps, Tag, type TagProps, type TagVariant, Toast, ToastContext, type ToastContextProps, type ToastPositions, type ToastProps, ToastProvider, type ToastProviderProps, type ToastType, Tooltip, type TooltipAlignment, type TooltipPosition, type TooltipProps, type TooltipVariant, TypedEventEmitter, allIcons, allScribbles, debounce, normalizeText, stringToBoolean, useLoaderDialogContext, useModalContext, usePopupContext, useToast, useToastContext, useWindowSize };
|