diff --git a/.changeset/polite-badgers-film.md b/.changeset/polite-badgers-film.md deleted file mode 100644 index 1779e1b1a7..0000000000 --- a/.changeset/polite-badgers-film.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bigcommerce/catalyst-core": patch ---- - -Remove unused exports from UI components. diff --git a/core/vibes/soul/primitives/compare-drawer/index.tsx b/core/vibes/soul/primitives/compare-drawer/index.tsx index 013c2cebc3..b55a57b4bd 100644 --- a/core/vibes/soul/primitives/compare-drawer/index.tsx +++ b/core/vibes/soul/primitives/compare-drawer/index.tsx @@ -30,7 +30,7 @@ interface CompareDrawerContext { maxItems?: number; } -const CompareDrawerContext = createContext({ +export const CompareDrawerContext = createContext({ optimisticItems: [], // eslint-disable-next-line @typescript-eslint/no-empty-function setOptimisticItems: () => {}, diff --git a/core/vibes/soul/primitives/cursor-pagination/index.tsx b/core/vibes/soul/primitives/cursor-pagination/index.tsx index 65af5c1da8..601b54a0b7 100644 --- a/core/vibes/soul/primitives/cursor-pagination/index.tsx +++ b/core/vibes/soul/primitives/cursor-pagination/index.tsx @@ -131,7 +131,7 @@ function SkeletonLink({ children }: { children: React.ReactNode }) { ); } -function CursorPaginationSkeleton() { +export function CursorPaginationSkeleton() { return (
diff --git a/core/vibes/soul/sections/blog-post-content/index.tsx b/core/vibes/soul/sections/blog-post-content/index.tsx index 8990bce932..fa88beadbb 100644 --- a/core/vibes/soul/sections/blog-post-content/index.tsx +++ b/core/vibes/soul/sections/blog-post-content/index.tsx @@ -149,7 +149,7 @@ function BlogPostBodySkeleton() { ); } -function BlogPostContentSkeleton() { +export function BlogPostContentSkeleton() { return (
diff --git a/core/vibes/soul/sections/blog-post-list/index.tsx b/core/vibes/soul/sections/blog-post-list/index.tsx index 629b7bafe4..c614bee22e 100644 --- a/core/vibes/soul/sections/blog-post-list/index.tsx +++ b/core/vibes/soul/sections/blog-post-list/index.tsx @@ -53,7 +53,7 @@ export function BlogPostList({ ); } -function BlogPostListSkeleton({ +export function BlogPostListSkeleton({ className, placeholderCount = 6, }: Pick) { @@ -68,7 +68,7 @@ function BlogPostListSkeleton({ ); } -function BlogPostListEmptyState({ +export function BlogPostListEmptyState({ className, placeholderCount = 6, emptyStateTitle, diff --git a/core/vibes/soul/sections/breadcrumbs/index.tsx b/core/vibes/soul/sections/breadcrumbs/index.tsx index 133b9c4363..eac3e0044e 100644 --- a/core/vibes/soul/sections/breadcrumbs/index.tsx +++ b/core/vibes/soul/sections/breadcrumbs/index.tsx @@ -97,7 +97,7 @@ export function BreadcrumbsSkeleton({ className }: Pick) { +export function BreadCrumbEmptyState({ className }: Pick) { return (
diff --git a/core/vibes/soul/sections/compare-section/index.tsx b/core/vibes/soul/sections/compare-section/index.tsx index 5c4c6a977c..5121bf81e1 100644 --- a/core/vibes/soul/sections/compare-section/index.tsx +++ b/core/vibes/soul/sections/compare-section/index.tsx @@ -143,7 +143,7 @@ export function CompareSection({ ); } -function CompareSectionSkeleton({ +export function CompareSectionSkeleton({ className, title = 'Compare products', placeholderCount = 4, @@ -189,7 +189,7 @@ function CompareSectionSkeleton({ ); } -function CompareSectionEmptyState({ +export function CompareSectionEmptyState({ className, emptyStateTitle, emptyStateSubtitle, diff --git a/core/vibes/soul/sections/product-carousel/index.tsx b/core/vibes/soul/sections/product-carousel/index.tsx index 46fe360a36..2dde47916b 100644 --- a/core/vibes/soul/sections/product-carousel/index.tsx +++ b/core/vibes/soul/sections/product-carousel/index.tsx @@ -129,7 +129,7 @@ export function ProductCarousel({ ); } -function ProductsCarouselSkeleton({ +export function ProductsCarouselSkeleton({ className, placeholderCount = 8, hideOverflow, @@ -163,7 +163,7 @@ function ProductsCarouselSkeleton({ ); } -function ProductsCarouselEmptyState({ +export function ProductsCarouselEmptyState({ className, placeholderCount = 8, emptyStateTitle, diff --git a/core/vibes/soul/sections/product-detail/index.tsx b/core/vibes/soul/sections/product-detail/index.tsx index 82a7ca8c45..417b68decd 100644 --- a/core/vibes/soul/sections/product-detail/index.tsx +++ b/core/vibes/soul/sections/product-detail/index.tsx @@ -332,7 +332,7 @@ function ProductAccordionsSkeleton() { ); } -function ProductDetailSkeleton() { +export function ProductDetailSkeleton() { return ( ) { @@ -145,7 +145,7 @@ function ProductListSkeleton({ ); } -function ProductListEmptyState({ +export function ProductListEmptyState({ className, placeholderCount = 8, emptyStateTitle, diff --git a/core/vibes/soul/sections/products-list-section/filters-panel.tsx b/core/vibes/soul/sections/products-list-section/filters-panel.tsx index dabafbc807..ffe55398a0 100644 --- a/core/vibes/soul/sections/products-list-section/filters-panel.tsx +++ b/core/vibes/soul/sections/products-list-section/filters-panel.tsx @@ -92,7 +92,7 @@ export function FiltersPanel({ ); } -function FiltersPanelInner({ +export function FiltersPanelInner({ className, filters: streamableFilters, resetFiltersLabel: streamableResetFiltersLabel, @@ -301,7 +301,7 @@ function FiltersPanelInner({ ); } -function FiltersSkeleton() { +export function FiltersSkeleton() { return (
diff --git a/core/vibes/soul/sections/reviews/index.tsx b/core/vibes/soul/sections/reviews/index.tsx index a991fb3799..2d2c25cf74 100644 --- a/core/vibes/soul/sections/reviews/index.tsx +++ b/core/vibes/soul/sections/reviews/index.tsx @@ -112,7 +112,7 @@ export function Reviews({ ); } -function ReviewsEmptyState({ +export function ReviewsEmptyState({ message = 'No reviews have been added for this product', reviewsLabel = 'Reviews', }: { @@ -141,7 +141,7 @@ function ReviewsEmptyState({ ); } -function ReviewsSkeleton({ reviewsLabel = 'Reviews' }: { reviewsLabel?: string }) { +export function ReviewsSkeleton({ reviewsLabel = 'Reviews' }: { reviewsLabel?: string }) { return (