@ama-pt/agora-design-system 0.6.1 → 0.8.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/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, ForwardRefRenderFunction, ChangeEvent, RefObject, AnchorHTMLAttributes, ImgHTMLAttributes } from 'react';
2
+ import React__default, { ComponentPropsWithRef, ReactNode, FC, SVGProps, HTMLProps, ComponentPropsWithoutRef, ReactElement, HtmlHTMLAttributes, ForwardRefRenderFunction, ChangeEvent, RefObject, HTMLAttributes, TdHTMLAttributes, AnchorHTMLAttributes, ImgHTMLAttributes } from 'react';
3
3
 
4
4
  type BooleanProp = boolean | 'true' | 'false';
5
5
 
@@ -351,10 +351,20 @@ interface DrawerProps extends ComponentPropsWithRef<'dialog'> {
351
351
  }
352
352
  declare const Drawer: React__default.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React__default.RefAttributes<HTMLDialogElement | DrawerRef>>;
353
353
 
354
- type LetterStatus = 'default' | 'disabled';
354
+ type LetterStatus = 'default' | 'disabled' | 'selected';
355
355
  interface GlossaryLetter extends HTMLProps<HTMLAnchorElement> {
356
+ /**
357
+ * Letter to be rendered
358
+ */
356
359
  letter: string;
360
+ /**
361
+ * Glossary letter status
362
+ */
357
363
  status: LetterStatus;
364
+ /**
365
+ * Data attributes
366
+ */
367
+ [dataAttribute: `data-${string}`]: string;
358
368
  }
359
369
  interface GlossaryLettersProps extends ComponentPropsWithRef<'nav'> {
360
370
  /**
@@ -388,7 +398,7 @@ interface InputNumberProps extends React__default.ComponentPropsWithRef<'input'>
388
398
  /**
389
399
  * Feedback text displayed below input.
390
400
  */
391
- feedbackText?: string;
401
+ feedbackText?: ReactNode;
392
402
  /**
393
403
  * Show or hide the leading icon.
394
404
  */
@@ -424,7 +434,7 @@ interface InputPasswordProps extends React__default.ComponentPropsWithRef<'input
424
434
  /**
425
435
  * Text informative displayed below input text.
426
436
  */
427
- feedbackText?: string;
437
+ feedbackText?: ReactNode;
428
438
  /**
429
439
  * Defines the state of the feedback text. This param will change the feedback icon and dye it.
430
440
  */
@@ -464,7 +474,7 @@ interface InputSearchProps extends React__default.ComponentPropsWithRef<'input'>
464
474
  /**
465
475
  * Text informative displayed below input text.
466
476
  */
467
- feedbackText?: string;
477
+ feedbackText?: ReactNode;
468
478
  /**
469
479
  * Defines the state of the feedback text. This param will change the feedback icon and dye it.
470
480
  */
@@ -484,6 +494,30 @@ interface InputSearchProps extends React__default.ComponentPropsWithRef<'input'>
484
494
  }
485
495
  declare const InputSearch: React__default.ForwardRefExoticComponent<Omit<InputSearchProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
486
496
 
497
+ interface InputSearchBarProps extends ComponentPropsWithRef<'input'> {
498
+ /**
499
+ * Defines if the user specifies a leading icon.
500
+ */
501
+ hasIcon?: BooleanProp;
502
+ /**
503
+ * Name of the icon leading icon to be displayed.
504
+ */
505
+ icon?: string;
506
+ /**
507
+ * Defines if the voice action button is visible.
508
+ */
509
+ hasVoiceActionButton?: BooleanProp;
510
+ /**
511
+ * Callback to execute whenever the user activates the microphone button.
512
+ */
513
+ onVoiceActivate?: () => void;
514
+ /**
515
+ * Callback to execute whenever the user activates the search button.
516
+ */
517
+ onSearchActivate?: (term: string) => void;
518
+ }
519
+ declare const InputSearchBar: React__default.ForwardRefExoticComponent<Omit<InputSearchBarProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
520
+
487
521
  interface InputTextProps extends React__default.ComponentPropsWithRef<'input'> {
488
522
  /**
489
523
  * Input label text.
@@ -500,7 +534,7 @@ interface InputTextProps extends React__default.ComponentPropsWithRef<'input'> {
500
534
  /**
501
535
  * Text informative displayed below input text.
502
536
  */
503
- feedbackText?: string;
537
+ feedbackText?: ReactNode;
504
538
  /**
505
539
  * Defines the state of the feedback text. This param will change the feedback icon and dye it.
506
540
  */
@@ -544,7 +578,7 @@ interface InputTextAreaProps extends React__default.ComponentPropsWithRef<'texta
544
578
  /**
545
579
  * Feedback text displayed below input.
546
580
  */
547
- feedbackText?: string;
581
+ feedbackText?: ReactNode;
548
582
  /**
549
583
  * Defines if the char counter on right corner should or should not be visible.
550
584
  */
@@ -625,40 +659,6 @@ interface ListProps extends ComponentPropsWithoutRef<'ul'> {
625
659
  }
626
660
  declare const List: FC<ListProps>;
627
661
 
628
- /**
629
- * Menu item type
630
- */
631
- type MenuItemType = 'primary' | 'search' | 'menu' | 'secondary' | 'user' | 'avatar' | 'close';
632
- type BaseProps = {
633
- /**
634
- * Remove default icons.
635
- */
636
- noIcons?: BooleanProp;
637
- /**
638
- * Type of menu item
639
- */
640
- itemType: MenuItemType;
641
- /**
642
- * Menu on dark background
643
- */
644
- darkMode?: BooleanProp;
645
- /**
646
- * Menu item is a action button
647
- */
648
- actionItem?: BooleanProp;
649
- /**
650
- * Children content.
651
- */
652
- children?: ReactNode;
653
- };
654
- type MenuItemProps = BaseProps & (HTMLProps<HTMLAnchorElement> | HTMLProps<HTMLButtonElement> | HTMLProps<HTMLDivElement> | AvatarProps);
655
- interface MenuItemRef {
656
- current: HTMLButtonElement | HTMLAnchorElement | null;
657
- toggleMenuItem: () => void;
658
- }
659
- type ExtendedInterfaceMenu = HTMLButtonElement | HTMLAnchorElement | MenuItemRef | AvatarProps;
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>>;
661
-
662
662
  /**
663
663
  * The available variants of the pill. This variants will define the background and border color of the pill.
664
664
  */
@@ -727,7 +727,7 @@ interface ProgressBarProps extends ComponentPropsWithRef<'div'> {
727
727
  }
728
728
  declare const ProgressBar: React__default.ForwardRefExoticComponent<Omit<ProgressBarProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
729
729
 
730
- interface RadioButtonProps extends React__default.ComponentPropsWithRef<'input'> {
730
+ interface RadioButtonProps extends ComponentPropsWithRef<'input'> {
731
731
  /**
732
732
  * Input label text.
733
733
  */
@@ -1193,7 +1193,7 @@ interface CheckboxGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>, 'o
1193
1193
  /**
1194
1194
  * Feedback text displayed below checkbox-group.
1195
1195
  */
1196
- feedbackText?: string;
1196
+ feedbackText?: ReactNode;
1197
1197
  /**
1198
1198
  * List of checkbox components to use as children of the group.
1199
1199
  */
@@ -1291,6 +1291,152 @@ declare const DropdownSection: FC<DropdownSectionProps>;
1291
1291
 
1292
1292
  declare const DropdownSectionOption: FC<DropdownSectionOptionProps>;
1293
1293
 
1294
+ interface LoaderDialogProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
1295
+ /**
1296
+ * The title of the loader.
1297
+ */
1298
+ title?: string;
1299
+ /**
1300
+ * The subtitle of the loader.
1301
+ */
1302
+ subtitle?: string;
1303
+ }
1304
+ declare const LoaderDialog: FC<LoaderDialogProps>;
1305
+
1306
+ interface LoaderDialogContextProps {
1307
+ current: DialogElementRef | null;
1308
+ visibility?: boolean;
1309
+ showLoader: (props: LoaderDialogProps) => void;
1310
+ hideLoader: () => void;
1311
+ }
1312
+ declare const LoaderDialogContext: React$1.Context<LoaderDialogContextProps>;
1313
+ declare const useLoaderDialogContext: () => LoaderDialogContextProps;
1314
+
1315
+ interface LoaderDialogProviderProps {
1316
+ /**
1317
+ * Children content.
1318
+ */
1319
+ children: ReactNode;
1320
+ }
1321
+ declare const LoaderDialogProvider: FC<LoaderDialogProviderProps>;
1322
+
1323
+ /**
1324
+ * Menu item type
1325
+ */
1326
+ type MenuItemType = 'primary' | 'search' | 'menu' | 'secondary' | 'user' | 'avatar' | 'close';
1327
+ type BaseProps = {
1328
+ /**
1329
+ * Remove default icons.
1330
+ */
1331
+ noIcons?: BooleanProp;
1332
+ /**
1333
+ * Type of menu item
1334
+ */
1335
+ itemType: MenuItemType;
1336
+ /**
1337
+ * Menu on dark background
1338
+ */
1339
+ darkMode?: BooleanProp;
1340
+ /**
1341
+ * Menu item is a action button
1342
+ */
1343
+ actionItem?: BooleanProp;
1344
+ /**
1345
+ * Children content.
1346
+ */
1347
+ children?: ReactNode;
1348
+ /**
1349
+ * Vertically , used with primary or secondary menu type, allow to change style of current option
1350
+ */
1351
+ vertically?: BooleanProp;
1352
+ };
1353
+ type MenuItemProps = (BaseProps & HTMLProps<HTMLButtonElement | HTMLAnchorElement | HTMLDivElement>) | (BaseProps & AvatarProps);
1354
+ interface MenuItemRef {
1355
+ current: HTMLButtonElement | HTMLAnchorElement | null;
1356
+ toggleMenuItem: () => void;
1357
+ }
1358
+ type ExtendedInterfaceMenu = HTMLButtonElement | HTMLAnchorElement | AvatarProps | MenuItemRef | null;
1359
+ declare const MenuItem: React__default.ForwardRefExoticComponent<((BaseProps & AvatarProps) | Omit<BaseProps & React__default.HTMLProps<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement>, "ref">) & React__default.RefAttributes<ExtendedInterfaceMenu>>;
1360
+
1361
+ interface ModalDialogProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1362
+ /**
1363
+ * Close button text.
1364
+ */
1365
+ closeButtonLabel: string;
1366
+ /**
1367
+ * Children content.
1368
+ */
1369
+ children: ReactNode;
1370
+ }
1371
+ declare const ModalDialog: FC<ModalDialogProps>;
1372
+
1373
+ interface ModalContextProps {
1374
+ current: DialogElementRef | null;
1375
+ visibility?: boolean;
1376
+ show: (children: ReactNode, popupProps: ModalDialogProps) => void;
1377
+ hide: () => void;
1378
+ }
1379
+ declare const ModalContext: React$1.Context<ModalContextProps>;
1380
+ declare const useModalContext: () => ModalContextProps;
1381
+
1382
+ interface ModalProviderProps {
1383
+ /**
1384
+ * Allows the dialog to be closed by pressing Escape key.
1385
+ */
1386
+ dismissOnEscape?: BooleanProp;
1387
+ /**
1388
+ * Children content.
1389
+ */
1390
+ children: ReactNode;
1391
+ }
1392
+ declare const ModalProvider: FC<ModalProviderProps>;
1393
+
1394
+ type PopupDimensions = 's' | 'm' | 'l';
1395
+ interface PopupDialogProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1396
+ /**
1397
+ * Available popup sizes. Can be small (S), medium (M), and large (L) dimensions.
1398
+ */
1399
+ dimensions?: PopupDimensions;
1400
+ /**
1401
+ * Title of the popup dialog.
1402
+ */
1403
+ title: ReactNode;
1404
+ /**
1405
+ * Close button alternative text.
1406
+ */
1407
+ closeAriaLabel: string;
1408
+ /**
1409
+ * Children content.
1410
+ */
1411
+ children: ReactNode;
1412
+ }
1413
+ declare const PopupDialog: FC<PopupDialogProps>;
1414
+
1415
+ interface PopupContextProps {
1416
+ current: DialogElementRef | null;
1417
+ visibility?: boolean;
1418
+ show: (children: ReactNode, popupProps: PopupDialogProps) => void;
1419
+ hide: () => void;
1420
+ }
1421
+ declare const PopupContext: React$1.Context<PopupContextProps>;
1422
+ declare const usePopupContext: () => PopupContextProps;
1423
+
1424
+ interface PopupProviderProps {
1425
+ /**
1426
+ * If not a fullscreen dialog, allows the user to dismiss the dialog by clicking in the backdrop
1427
+ */
1428
+ dismissOnBackdropClick?: BooleanProp;
1429
+ /**
1430
+ * Allows the dialog to be closed by pressing Escape key.
1431
+ */
1432
+ dismissOnEscape?: BooleanProp;
1433
+ /**
1434
+ * Children content.
1435
+ */
1436
+ children: ReactNode;
1437
+ }
1438
+ declare const PopupProvider: FC<PopupProviderProps>;
1439
+
1294
1440
  /**
1295
1441
  * ProgressBarGroup component.
1296
1442
  */
@@ -1346,7 +1492,7 @@ interface RadioButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>,
1346
1492
  /**
1347
1493
  * Feedback text displayed below radio-button.
1348
1494
  */
1349
- feedbackText?: string;
1495
+ feedbackText?: ReactNode;
1350
1496
  /**
1351
1497
  * List of radiobutton props to generate as radio buttons.
1352
1498
  */
@@ -1362,113 +1508,209 @@ interface RadioButtonGroupProps extends Omit<HtmlHTMLAttributes<HTMLDivElement>,
1362
1508
  }
1363
1509
  declare const RadioButtonGroup: FC<RadioButtonGroupProps>;
1364
1510
 
1365
- type PopupDimensions = 's' | 'm' | 'l';
1366
- interface PopupDialogProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1511
+ interface SearchPaginationProps extends Omit<ComponentPropsWithoutRef<'nav'>, 'onChange'> {
1367
1512
  /**
1368
- * Available popup sizes. Can be small (S), medium (M), and large (L) dimensions.
1513
+ * Define the total number of pages.
1369
1514
  */
1370
- dimensions?: PopupDimensions;
1515
+ totalPages?: number;
1371
1516
  /**
1372
- * Title of the popup dialog.
1517
+ * The flag to hide previous page button.
1373
1518
  */
1374
- title: ReactNode;
1519
+ hidePreviousPageButton?: boolean;
1375
1520
  /**
1376
- * Close button alternative text.
1521
+ * The flag to hide next page button.
1377
1522
  */
1378
- closeAriaLabel: string;
1523
+ hideNextPageButton?: boolean;
1379
1524
  /**
1380
- * Children content.
1525
+ * Define the number of visible page buttons at the beginning and end.
1381
1526
  */
1382
- children: ReactNode;
1383
- }
1384
- declare const PopupDialog: FC<PopupDialogProps>;
1385
-
1386
- interface PopupContextProps {
1387
- current: DialogElementRef | null;
1388
- visibility?: boolean;
1389
- show: (children: ReactNode, popupProps: PopupDialogProps) => void;
1390
- hide: () => void;
1527
+ boundaryCount?: number;
1528
+ /**
1529
+ * Define the number of visible page buttons before and after the current page.
1530
+ */
1531
+ siblingCount?: number;
1532
+ /**
1533
+ * Search Pagination navigation alternative text.
1534
+ */
1535
+ label: string;
1536
+ /**
1537
+ * Next page button alternative text.
1538
+ */
1539
+ nextPageAriaLabel: string;
1540
+ /**
1541
+ * Previous page button alternative text.
1542
+ */
1543
+ previousPageAriaLabel: string;
1544
+ /**
1545
+ * Event triggered whenever any of the search pages changes is current state.
1546
+ */
1547
+ onChange?: (page: number) => void;
1391
1548
  }
1392
- declare const PopupContext: React$1.Context<PopupContextProps>;
1393
- declare const usePopupContext: () => PopupContextProps;
1549
+ declare const SearchPagination: React__default.ForwardRefExoticComponent<SearchPaginationProps & React__default.RefAttributes<HTMLDivElement>>;
1394
1550
 
1395
- interface PopupProviderProps {
1551
+ /**
1552
+ * The available variants of the card emphasize
1553
+ */
1554
+ type CardEmphasizeAlignment = 'default' | 'center';
1555
+ interface CardEmphasizeProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1396
1556
  /**
1397
- * If not a fullscreen dialog, allows the user to dismiss the dialog by clicking in the backdrop
1557
+ * The icon props
1398
1558
  */
1399
- dismissOnBackdropClick?: BooleanProp;
1559
+ icon: IconProps;
1400
1560
  /**
1401
- * Allows the dialog to be closed by pressing Escape key.
1561
+ * The title of the card
1402
1562
  */
1403
- dismissOnEscape?: BooleanProp;
1563
+ title: ReactNode;
1404
1564
  /**
1405
- * Children content.
1565
+ * If the card has a title section
1406
1566
  */
1407
- children: ReactNode;
1567
+ hasTitle: boolean;
1568
+ /**
1569
+ * The description of the card
1570
+ */
1571
+ description?: ReactNode;
1572
+ /**
1573
+ * If the card has a description section
1574
+ */
1575
+ hasDescription: boolean;
1576
+ /**
1577
+ * The variant of the card
1578
+ */
1579
+ alignment: CardEmphasizeAlignment;
1580
+ /**
1581
+ * The button props
1582
+ */
1583
+ button: ButtonProps;
1584
+ /**
1585
+ * If the card has a button
1586
+ */
1587
+ hasButton?: boolean;
1408
1588
  }
1409
- declare const PopupProvider: FC<PopupProviderProps>;
1589
+ declare const CardEmphasize: FC<CardEmphasizeProps>;
1410
1590
 
1411
- interface LoaderDialogProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
1591
+ interface CardExpandableProps extends ComponentPropsWithoutRef<'div'> {
1412
1592
  /**
1413
- * The title of the loader.
1593
+ * Children content.
1594
+ */
1595
+ children: ReactElement<AccordionProps>;
1596
+ /**
1597
+ * Card has title.
1598
+ */
1599
+ hasTitle: boolean;
1600
+ /**
1601
+ * Card title.
1414
1602
  */
1415
1603
  title?: string;
1416
1604
  /**
1417
- * The subtitle of the loader.
1605
+ * Card icon.
1418
1606
  */
1419
- subtitle?: string;
1607
+ showBookmarkIcon?: boolean;
1420
1608
  }
1421
- declare const LoaderDialog: FC<LoaderDialogProps>;
1609
+ declare const CardExpandable: FC<CardExpandableProps>;
1422
1610
 
1423
- interface LoaderDialogContextProps {
1424
- current: DialogElementRef | null;
1425
- visibility?: boolean;
1426
- showLoader: (props: LoaderDialogProps) => void;
1427
- hideLoader: () => void;
1428
- }
1429
- declare const LoaderDialogContext: React$1.Context<LoaderDialogContextProps>;
1430
- declare const useLoaderDialogContext: () => LoaderDialogContextProps;
1431
-
1432
- interface LoaderDialogProviderProps {
1611
+ interface CardFrameProps extends ComponentPropsWithoutRef<'div'> {
1433
1612
  /**
1434
1613
  * Children content.
1435
1614
  */
1436
1615
  children: ReactNode;
1437
- }
1438
- declare const LoaderDialogProvider: FC<LoaderDialogProviderProps>;
1439
-
1440
- interface ModalDialogProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1441
1616
  /**
1442
- * Close button text.
1617
+ * Makes the whole card clickable.
1443
1618
  */
1444
- closeButtonLabel: string;
1619
+ blockedLink?: BooleanProp;
1445
1620
  /**
1446
- * Children content.
1621
+ * Anchor disabled.
1447
1622
  */
1448
- children: ReactNode;
1623
+ hasAnchor?: BooleanProp;
1624
+ /**
1625
+ * label Anchor.
1626
+ */
1627
+ labelAnchor?: ReactNode;
1628
+ /**
1629
+ * aria label Anchor.
1630
+ */
1631
+ ariaLabelAnchor?: string;
1632
+ /**
1633
+ * header Accordion.
1634
+ */
1635
+ headerTag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1636
+ /**
1637
+ * label header.
1638
+ */
1639
+ labelHeader: string;
1640
+ /**
1641
+ * anchor Href.
1642
+ */
1643
+ anchorHref?: string;
1644
+ /**
1645
+ * anchor Target.
1646
+ */
1647
+ anchorTarget?: string;
1449
1648
  }
1450
- declare const ModalDialog: FC<ModalDialogProps>;
1649
+ declare const CardFrame: FC<CardFrameProps>;
1451
1650
 
1452
- interface ModalContextProps {
1453
- current: DialogElementRef | null;
1454
- visibility?: boolean;
1455
- show: (children: ReactNode, popupProps: ModalDialogProps) => void;
1456
- hide: () => void;
1651
+ interface CardHeroIndexProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1652
+ /**
1653
+ * The title of the card
1654
+ */
1655
+ title?: ReactNode;
1656
+ /**
1657
+ * Title header.
1658
+ */
1659
+ headerTag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1660
+ /**
1661
+ * The list of indexes
1662
+ */
1663
+ indexList: AnchorProps[];
1457
1664
  }
1458
- declare const ModalContext: React$1.Context<ModalContextProps>;
1459
- declare const useModalContext: () => ModalContextProps;
1665
+ declare const CardHeroIndex: FC<CardHeroIndexProps>;
1460
1666
 
1461
- interface ModalProviderProps {
1667
+ /**
1668
+ * The available variants of the card links
1669
+ */
1670
+ type CardLinkVariant = 'default' | 'dark';
1671
+ interface CardLinksProps extends Omit<ComponentPropsWithRef<'div'>, 'title'> {
1462
1672
  /**
1463
- * Allows the dialog to be closed by pressing Escape key.
1673
+ * The category of the card
1464
1674
  */
1465
- dismissOnEscape?: BooleanProp;
1675
+ category?: ReactNode;
1466
1676
  /**
1467
- * Children content.
1677
+ * If the card has a category section
1468
1678
  */
1469
- children: ReactNode;
1679
+ hasCategory: boolean;
1680
+ /**
1681
+ * The title of the card
1682
+ */
1683
+ title: ReactNode;
1684
+ /**
1685
+ * If the card has a title section
1686
+ */
1687
+ hasTitle: boolean;
1688
+ /**
1689
+ * The description of the card
1690
+ */
1691
+ description?: ReactNode;
1692
+ /**
1693
+ * If the card has a description section
1694
+ */
1695
+ hasDescription: boolean;
1696
+ /**
1697
+ * The list of links of the card
1698
+ */
1699
+ listLinks: AnchorProps[];
1700
+ /**
1701
+ * The list of topics of the card
1702
+ */
1703
+ topics?: string[];
1704
+ /**
1705
+ * If the card has a topics section
1706
+ */
1707
+ hasTopics: boolean;
1708
+ /**
1709
+ * The variant of the card
1710
+ */
1711
+ variant?: CardLinkVariant;
1470
1712
  }
1471
- declare const ModalProvider: FC<ModalProviderProps>;
1713
+ declare const CardLinks: FC<CardLinksProps>;
1472
1714
 
1473
1715
  interface WeekDays {
1474
1716
  sun: string;
@@ -1507,7 +1749,7 @@ interface InputDateProps extends Omit<ComponentPropsWithRef<'input'>, 'ref' | 'o
1507
1749
  /**
1508
1750
  * Feedback text displayed below input.
1509
1751
  */
1510
- feedbackText?: string;
1752
+ feedbackText?: ReactNode;
1511
1753
  /**
1512
1754
  * Show or hide the leading icon.
1513
1755
  */
@@ -1632,7 +1874,7 @@ interface InputPhoneProps extends Omit<ComponentPropsWithRef<'input'>, 'onChange
1632
1874
  /**
1633
1875
  * Feedback text displayed below input.
1634
1876
  */
1635
- feedbackText?: string;
1877
+ feedbackText?: ReactNode;
1636
1878
  /**
1637
1879
  * Define de initial country selected using the country ISO. Will override defaultCode prop.
1638
1880
  */
@@ -1699,7 +1941,7 @@ interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>, 'option
1699
1941
  /**
1700
1942
  * Feedback text displayed below input.
1701
1943
  */
1702
- feedbackText?: string;
1944
+ feedbackText?: ReactNode;
1703
1945
  /**
1704
1946
  * Show or hide the leading icon.
1705
1947
  */
@@ -1759,6 +2001,93 @@ interface InputSelectProps extends Omit<ComponentPropsWithRef<'select'>, 'option
1759
2001
  }
1760
2002
  declare const InputSelect: React__default.ForwardRefExoticComponent<Omit<InputSelectProps, "ref"> & React__default.RefAttributes<HTMLSelectElement | InputSelectRef>>;
1761
2003
 
2004
+ interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
2005
+ children: ReactNode;
2006
+ }
2007
+ declare const TableRow: FC<TableRowProps>;
2008
+
2009
+ interface TableHeaderProps extends HTMLAttributes<HTMLTableSectionElement> {
2010
+ children: ReactElement<TableRowProps> | Array<ReactElement<TableRowProps>>;
2011
+ }
2012
+ declare const TableHeader: FC<TableHeaderProps>;
2013
+
2014
+ interface TableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
2015
+ children: ReactNode;
2016
+ }
2017
+ declare const TableBody: FC<TableBodyProps>;
2018
+
2019
+ interface TableProps extends ComponentPropsWithoutRef<'div'> {
2020
+ /**
2021
+ * Children content.
2022
+ */
2023
+ children: ReactElement<TableHeaderProps> | ReactElement<TableBodyProps> | Array<ReactElement<TableHeaderProps | TableBodyProps>>;
2024
+ }
2025
+ declare const Table: FC<TableProps>;
2026
+
2027
+ interface TableHeaderCellProps extends HTMLAttributes<HTMLTableCellElement> {
2028
+ children: ReactNode;
2029
+ }
2030
+ declare const TableHeaderCell: FC<TableHeaderCellProps>;
2031
+
2032
+ interface TableFooterProps extends HTMLAttributes<HTMLTableSectionElement> {
2033
+ children: ReactNode;
2034
+ }
2035
+ declare const TableFooter: FC<TableFooterProps>;
2036
+
2037
+ interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
2038
+ children: ReactNode;
2039
+ headerLabel: ReactNode;
2040
+ }
2041
+ declare const TableCell: FC<TableCellProps>;
2042
+
2043
+ interface TablePaginationProps extends ComponentPropsWithRef<'div'> {
2044
+ /**
2045
+ * Defines the label for the items per page
2046
+ * */
2047
+ itemsPerPageLabel: string;
2048
+ /**
2049
+ * Defines the label for the items
2050
+ * */
2051
+ itemsLabel: string;
2052
+ /**
2053
+ * Quantity of items per page
2054
+ * */
2055
+ itemsPerPage: number;
2056
+ /**
2057
+ * Total pages of the table
2058
+ * */
2059
+ totalPages: number;
2060
+ /**
2061
+ * Array of values to be displayed in the dropdown
2062
+ * */
2063
+ availablePageSizes: number[];
2064
+ /**
2065
+ * Current page of the table
2066
+ * */
2067
+ currentPage: number;
2068
+ /**
2069
+ * Aria label for the button
2070
+ */
2071
+ buttonDropdownAriaLabel: string;
2072
+ /**
2073
+ * Aria label for the dropdown list
2074
+ */
2075
+ dropdownListAriaLabel: string;
2076
+ /**
2077
+ * Aria label for the previous button
2078
+ */
2079
+ prevButtonAriaLabel?: string;
2080
+ /**
2081
+ * Aria label for the next button
2082
+ * */
2083
+ nextButtonAriaLabel?: string;
2084
+ /**
2085
+ * Callback to be called when the page changes
2086
+ * */
2087
+ onChangePage: (page: number) => void;
2088
+ }
2089
+ declare const TablePagination: React__default.ForwardRefExoticComponent<Omit<TablePaginationProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2090
+
1762
2091
  type CardFooterProps = {
1763
2092
  title?: string;
1764
2093
  description?: string | ReactNode;
@@ -2100,11 +2429,9 @@ declare const AgoraTailwindConfig: {
2100
2429
  };
2101
2430
  colors: {
2102
2431
  transparent: string;
2103
- backdrop: string;
2104
- inner: string;
2105
2432
  white: string;
2106
2433
  black: string;
2107
- visited: string;
2434
+ backdrop: string;
2108
2435
  neutral: {
2109
2436
  50: string;
2110
2437
  100: string;
@@ -2209,6 +2536,8 @@ declare const AgoraTailwindConfig: {
2209
2536
  120: string;
2210
2537
  128: string;
2211
2538
  256: string;
2539
+ '1/4': string;
2540
+ '1/2': string;
2212
2541
  full: string;
2213
2542
  };
2214
2543
  boxShadow: {
@@ -2229,9 +2558,6 @@ declare const AgoraTailwindConfig: {
2229
2558
  'bottom-high': string;
2230
2559
  'bottom-higher': string;
2231
2560
  inner: string;
2232
- 'input-range-hover': string;
2233
- 'input-range-active': string;
2234
- 'toast-shadow': string;
2235
2561
  };
2236
2562
  transitionDuration: {
2237
2563
  DEFAULT: string;
@@ -2245,6 +2571,10 @@ declare const AgoraTailwindConfig: {
2245
2571
  };
2246
2572
  };
2247
2573
  plugins: (({ addComponents }: any) => void)[];
2574
+ safelist: {
2575
+ pattern: RegExp;
2576
+ variants: string[];
2577
+ }[];
2248
2578
  };
2249
2579
 
2250
- 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, type InputDateRef, 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, getDateString, normalizeText, stringToBoolean, useLoaderDialogContext, useModalContext, usePopupContext, useToast, useToastContext, useWindowSize };
2580
+ 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, CardEmphasize, type CardEmphasizeAlignment, type CardEmphasizeProps, CardExpandable, type CardExpandableProps, type CardFooterProps, CardFrame, type CardFrameProps, CardHeroIndex, type CardHeroIndexProps, type CardLinkVariant, CardLinks, type CardLinksFooterProps, type CardLinksProps, 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, type InputDateRef, InputFile, type InputFileProps, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, InputPhone, type InputPhoneProps, type InputPhoneRef, InputRange, InputSearch, InputSearchBar, type InputSearchBarProps, 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, SearchPagination, type SearchPaginationProps, SkipNavigation, StatusCard, type StatusCardProps, type StatusCardType, StepList, type StepListProps, Switch, type SwitchPosition, type SwitchProps, Tab, TabBody, type TabBodyProps, TabHeader, type TabHeaderProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, 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, getDateString, normalizeText, stringToBoolean, useLoaderDialogContext, useModalContext, usePopupContext, useToast, useToastContext, useWindowSize };