@sonic-equipment/ui 0.0.39 → 0.0.40

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.
@@ -1,6 +1,5 @@
1
1
  import { ProductCardProps } from './product-card';
2
- interface ConnectedProductCartProps extends Omit<ProductCardProps, 'addToCartButton'> {
2
+ export interface ConnectedProductCartProps extends Omit<ProductCardProps, 'addToCartButton'> {
3
3
  productId: string;
4
4
  }
5
- export declare function ConnectedProductCart({ productId, ...props }: ConnectedProductCartProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
5
+ export declare function ConnectedProductCard({ productId, ...props }: ConnectedProductCartProps): import("react/jsx-runtime").JSX.Element;
@@ -3,11 +3,13 @@ import { SwiperOptions } from 'swiper/types';
3
3
  import 'swiper/css';
4
4
  export interface CarouselProps {
5
5
  breakpoints?: SwiperOptions['breakpoints'];
6
+ className?: string;
6
7
  hasNavigation?: boolean;
7
8
  hasOverflow?: boolean;
8
9
  navigationButtonsPosition?: 'top' | 'center';
10
+ slideClasses?: string;
9
11
  slides: ReactNode[];
10
12
  slidesPerView?: number | 'auto';
11
13
  spaceBetween?: number;
12
14
  }
13
- export declare function Carousel({ breakpoints, hasNavigation, navigationButtonsPosition, slides, slidesPerView, spaceBetween, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Carousel({ breakpoints, className, hasNavigation, hasOverflow, navigationButtonsPosition, slideClasses, slides, slidesPerView, spaceBetween, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { type CategoryCardProps } from 'cards/category-card/category-card';
1
+ import { ReactNode } from 'react';
2
2
  export interface CategoryCarouselProps {
3
- categories: CategoryCardProps[];
3
+ categoryCards: ReactNode[];
4
4
  }
5
- export declare function CategoryCarousel({ categories }: CategoryCarouselProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function CategoryCarousel({ categoryCards }: CategoryCarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,14 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  import { CategoryCarousel } from './category-carousel';
3
3
  declare const meta: {
4
+ args: {
5
+ categoryCards: import("react/jsx-runtime").JSX.Element[];
6
+ };
4
7
  component: typeof CategoryCarousel;
5
8
  parameters: {
6
9
  layout: string;
10
+ tags: string[];
7
11
  };
8
- tags: string[];
9
12
  title: string;
10
13
  };
11
14
  export default meta;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ProductCarouselProps {
3
+ productCards: ReactNode[];
4
+ }
5
+ export declare function ProductCarousel({ productCards }: ProductCarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1 @@
1
1
  export declare function PanelContent(): import("react/jsx-runtime").JSX.Element;
2
- export declare function NoSearch(): import("react/jsx-runtime").JSX.Element;
3
- export declare function PopularSearchesSection(): import("react/jsx-runtime").JSX.Element | null;
4
- export declare function RecentSearchesSection(): import("react/jsx-runtime").JSX.Element | null;
5
- export declare function QuickAccessSection(): import("react/jsx-runtime").JSX.Element | undefined;
6
- export declare function NoResults(): import("react/jsx-runtime").JSX.Element;
7
- export declare function PopularCategoriesSection(): import("react/jsx-runtime").JSX.Element | null;
8
- export declare function WithResults(): import("react/jsx-runtime").JSX.Element;
9
- export declare function SuggestionsSection(): import("react/jsx-runtime").JSX.Element;
10
- export declare function ProductResultsSection(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare function NoResults(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function NoSearch(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function SearchContentSection({ children }: {
2
+ children: any;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface SearchContentProps {
3
+ leftContent: ReactNode;
4
+ rightContent: ReactNode;
5
+ }
6
+ export declare function SectionContainer({ leftContent, rightContent, }: SearchContentProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare function WithResults(): import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -3691,14 +3691,10 @@ interface ProductCardProps {
3691
3691
  }
3692
3692
  declare function ProductCard({ addToCartButton: AddToCartButton, favoriteButton: FavoriteButton, href, image, price, sku, tags, title, }: ProductCardProps): react_jsx_runtime.JSX.Element;
3693
3693
 
3694
- interface CategoryCardProps extends Category {
3695
- isSelected?: boolean
3696
- }
3697
-
3698
3694
  interface CategoryCarouselProps {
3699
- categories: CategoryCardProps[];
3695
+ categoryCards: ReactNode[];
3700
3696
  }
3701
- declare function CategoryCarousel({ categories }: CategoryCarouselProps): react_jsx_runtime.JSX.Element;
3697
+ declare function CategoryCarousel({ categoryCards }: CategoryCarouselProps): react_jsx_runtime.JSX.Element;
3702
3698
 
3703
3699
  interface AccordionItemProps {
3704
3700
  _pseudo?: 'none' | 'focus' | 'hover' | 'active';