From 96ab8fa7f57fbe489f137724449320b4c9c80b72 Mon Sep 17 00:00:00 2001 From: iwbtbpotw - Rafael Barros Date: Wed, 16 Nov 2022 18:52:32 -0300 Subject: [PATCH] feat(components): export components types fix #433 --- src/lib/components/Accordion/index.ts | 2 ++ src/lib/components/Avatar/index.ts | 2 ++ src/lib/components/Breadcrumb/index.ts | 1 + src/lib/components/ButtonGroup/index.ts | 1 + src/lib/components/Dropdown/index.ts | 1 + src/lib/components/Floating/index.ts | 1 + src/lib/components/Footer/index.ts | 6 ++++++ src/lib/components/ListGroup/index.ts | 1 + src/lib/components/Modal/index.ts | 3 +++ src/lib/components/Navbar/index.ts | 4 ++++ src/lib/components/Pagination/index.ts | 1 + src/lib/components/Rating/index.ts | 2 ++ src/lib/components/Sidebar/index.ts | 4 ++++ src/lib/components/Tab/index.ts | 1 + src/lib/components/Table/index.ts | 5 +++++ src/lib/components/Timeline/index.ts | 5 +++++ 16 files changed, 40 insertions(+) diff --git a/src/lib/components/Accordion/index.ts b/src/lib/components/Accordion/index.ts index 63f62bc65..ffa664d11 100644 --- a/src/lib/components/Accordion/index.ts +++ b/src/lib/components/Accordion/index.ts @@ -1 +1,3 @@ export * from './Accordion'; +export type { AccordionPanelProps } from './AccordionPanel'; +export type { AccordionTitleProps } from './AccordionTitle'; diff --git a/src/lib/components/Avatar/index.ts b/src/lib/components/Avatar/index.ts index 27700fe3f..df39fbda2 100644 --- a/src/lib/components/Avatar/index.ts +++ b/src/lib/components/Avatar/index.ts @@ -1 +1,3 @@ export * from './Avatar'; +export type { AvatarGroupProps } from './AvatarGroup'; +export type { AvatarGroupdCounterProps } from './AvatarGroupCounter'; diff --git a/src/lib/components/Breadcrumb/index.ts b/src/lib/components/Breadcrumb/index.ts index 116446358..2ca8d3fd2 100644 --- a/src/lib/components/Breadcrumb/index.ts +++ b/src/lib/components/Breadcrumb/index.ts @@ -1 +1,2 @@ export * from './Breadcrumb'; +export type { BreadcrumbItemProps } from './BreadcrumbItem'; diff --git a/src/lib/components/ButtonGroup/index.ts b/src/lib/components/ButtonGroup/index.ts index 8f75707df..6dc5d02c2 100644 --- a/src/lib/components/ButtonGroup/index.ts +++ b/src/lib/components/ButtonGroup/index.ts @@ -1,2 +1,3 @@ export * from './ButtonGroup'; export { default } from './ButtonGroup'; +export type { ButtonGroupProps, PositionInButtonGroup } from './ButtonGroup'; diff --git a/src/lib/components/Dropdown/index.ts b/src/lib/components/Dropdown/index.ts index 2f29bad4e..b86528481 100644 --- a/src/lib/components/Dropdown/index.ts +++ b/src/lib/components/Dropdown/index.ts @@ -1 +1,2 @@ export * from './Dropdown'; +export type { DropdownItemProps } from './DropdownItem'; diff --git a/src/lib/components/Floating/index.ts b/src/lib/components/Floating/index.ts index 9b110369a..c1b773eaf 100644 --- a/src/lib/components/Floating/index.ts +++ b/src/lib/components/Floating/index.ts @@ -1 +1,2 @@ export * from './Floating'; +export type { FloatingProps } from './Floating'; diff --git a/src/lib/components/Footer/index.ts b/src/lib/components/Footer/index.ts index ddcc5a9cd..ed09e63a1 100644 --- a/src/lib/components/Footer/index.ts +++ b/src/lib/components/Footer/index.ts @@ -1 +1,7 @@ export * from './Footer'; +export type { FooterBrandProps } from './FooterBrand'; +export type { CopyrightProps as FooterCopyrightProps } from './FooterCopyright'; +export type { FooterIconProps } from './FooterIcon'; +export type { FooterLinkProps } from './FooterLink'; +export type { FooterLinkGroupProps } from './FooterLinkGroup'; +export type { FooterTitleProps } from './FooterTitle'; diff --git a/src/lib/components/ListGroup/index.ts b/src/lib/components/ListGroup/index.ts index 6210de4fc..8c970a6f9 100644 --- a/src/lib/components/ListGroup/index.ts +++ b/src/lib/components/ListGroup/index.ts @@ -1 +1,2 @@ export * from './ListGroup'; +export type { ListGroupItemProps } from './ListGroupItem'; diff --git a/src/lib/components/Modal/index.ts b/src/lib/components/Modal/index.ts index cb89ee178..9933c5b8b 100644 --- a/src/lib/components/Modal/index.ts +++ b/src/lib/components/Modal/index.ts @@ -1 +1,4 @@ export * from './Modal'; +export type { ModalBodyProps } from './ModalBody'; +export type { ModalFooterProps } from './ModalFooter'; +export type { ModalHeaderProps } from './ModalHeader'; diff --git a/src/lib/components/Navbar/index.ts b/src/lib/components/Navbar/index.ts index e8a656233..d4e1ac581 100644 --- a/src/lib/components/Navbar/index.ts +++ b/src/lib/components/Navbar/index.ts @@ -1 +1,5 @@ export * from './Navbar'; +export type { NavbarBrandProps } from './NavbarBrand'; +export type { NavbarCollapseProps } from './NavbarCollapse'; +export type { NavbarLinkProps } from './NavbarLink'; +export type { NavbarToggleProps } from './NavbarToggle'; diff --git a/src/lib/components/Pagination/index.ts b/src/lib/components/Pagination/index.ts index e016c96b7..3fdfbaecc 100644 --- a/src/lib/components/Pagination/index.ts +++ b/src/lib/components/Pagination/index.ts @@ -1 +1,2 @@ export * from './Pagination'; +export type { PaginationButtonProps } from './PaginationButton'; diff --git a/src/lib/components/Rating/index.ts b/src/lib/components/Rating/index.ts index d32384373..4ecfa532b 100644 --- a/src/lib/components/Rating/index.ts +++ b/src/lib/components/Rating/index.ts @@ -1 +1,3 @@ export * from './Rating'; +export type { RatingAdvancedProps } from './RatingAdvanced'; +export type { RatingStarProps } from './RatingStar'; diff --git a/src/lib/components/Sidebar/index.ts b/src/lib/components/Sidebar/index.ts index c167c49f6..22add39bb 100644 --- a/src/lib/components/Sidebar/index.ts +++ b/src/lib/components/Sidebar/index.ts @@ -1 +1,5 @@ export * from './Sidebar'; +export type { SidebarCollapseProps } from './SidebarCollapse'; +export type { SidebarCTAProps } from './SidebarCTA'; +export type { SidebarItemProps } from './SidebarItem'; +export type { SidebarLogoProps } from './SidebarLogo'; diff --git a/src/lib/components/Tab/index.ts b/src/lib/components/Tab/index.ts index 856dbbb34..88c81f8d0 100644 --- a/src/lib/components/Tab/index.ts +++ b/src/lib/components/Tab/index.ts @@ -1 +1,2 @@ +export type { TabItemProps } from './TabItem'; export * from './Tabs'; diff --git a/src/lib/components/Table/index.ts b/src/lib/components/Table/index.ts index 75193adc3..ff0020a8e 100644 --- a/src/lib/components/Table/index.ts +++ b/src/lib/components/Table/index.ts @@ -1 +1,6 @@ export * from './Table'; +export type { TableBodyProps } from './TableBody'; +export type { TableCellProps } from './TableCell'; +export type { TableHeadProps } from './TableHead'; +export type { TableHeadCellProps } from './TableHeadCell'; +export type { TableRowProps } from './TableRow'; diff --git a/src/lib/components/Timeline/index.ts b/src/lib/components/Timeline/index.ts index 83f79cad5..0aaad67a9 100644 --- a/src/lib/components/Timeline/index.ts +++ b/src/lib/components/Timeline/index.ts @@ -1 +1,6 @@ export * from './Timeline'; +export type { TimelineBodyProps } from './TimelineBody'; +export type { TimelineContentProps } from './TimelineContent'; +export type { TimelineItemProps } from './TimelineItem'; +export type { TimelineTimeProps } from './TimelineTime'; +export type { TimelineTitleProps } from './TimelineTitle';