formica-ui-lib 1.0.124 → 1.0.125
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/componentProps/molecules/card/articlerecentcard/ArticleRecentCardProps.d.ts +11 -0
- package/dist/componentProps/molecules/card/featureproductcard/FeaturedProductCardProps.d.ts +1 -1
- package/dist/componentProps/molecules/card/swatchcard/SwatchCardProps.d.ts +5 -1
- package/dist/componentProps/molecules/carousel/standardcarousel/StandardCarouselProps.d.ts +6 -0
- package/dist/componentProps/organisms/articles/articlerecentsection/ArticleRecentSectionProps.d.ts +6 -0
- package/dist/componentProps/organisms/decorgrid/DecorGridProps.d.ts +4 -0
- package/dist/componentProps/organisms/featurecards/featurecardscollection/FeatureCardCollectionProps.d.ts +0 -1
- package/dist/componentProps/scene/article/{ArticleScene.d.ts → ArticleSceneProps.d.ts} +6 -2
- package/dist/componentProps/scene/category/CategorySceneProps.d.ts +10 -0
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1697 -1595
- package/dist/stories/molecules/card/articlerecentcard/ArticleRecentCard.d.ts +4 -0
- package/dist/stories/molecules/card/swatchcard/SwatchCardStatusConfig.d.ts +10 -0
- package/dist/stories/organisms/articles/articlerecentsection/ArticleRecentSection.d.ts +4 -0
- package/dist/stories/organisms/decorgrid/DecorGrid.d.ts +4 -0
- package/dist/stories/scenes/article/ArticleScene.d.ts +1 -1
- package/dist/stories/scenes/category/CategoryScene.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
export type SwatchStatus = "new" | "discontinued" | "comingSoon" | "sale";
|
|
1
2
|
export interface SwatchCardProps {
|
|
2
3
|
imageSrc: string;
|
|
3
4
|
imageAlt: string;
|
|
4
5
|
title: string;
|
|
5
6
|
brand: string;
|
|
6
|
-
|
|
7
|
+
product: string;
|
|
8
|
+
decorNumber: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
status?: SwatchStatus;
|
|
7
11
|
}
|
|
@@ -3,6 +3,11 @@ export interface StandardCarouselSlide {
|
|
|
3
3
|
imageSrc: string;
|
|
4
4
|
imageAlt?: string;
|
|
5
5
|
link?: string;
|
|
6
|
+
eyebrow?: string;
|
|
7
|
+
heading?: string;
|
|
8
|
+
subheading?: string;
|
|
9
|
+
body?: string;
|
|
10
|
+
ctas?: ButtonProps[];
|
|
6
11
|
}
|
|
7
12
|
export interface StandardCarouselProps {
|
|
8
13
|
slides: StandardCarouselSlide[];
|
|
@@ -14,5 +19,6 @@ export interface StandardCarouselProps {
|
|
|
14
19
|
nextArrowButtonProps?: Partial<ButtonProps>;
|
|
15
20
|
autoRotateSeconds?: number;
|
|
16
21
|
onSlideChange?: (index: number) => void;
|
|
22
|
+
onSlideClick?: (slide: StandardCarouselSlide, index: number) => void;
|
|
17
23
|
heightClassName?: string;
|
|
18
24
|
}
|
|
@@ -2,11 +2,15 @@ import type { ArticleBannerProps } from "../../organisms/banner/articlebanner/Ar
|
|
|
2
2
|
import type { ArticleTextProps } from "../../organisms/articles/articletext/ArticleTextProps";
|
|
3
3
|
import type { ArticleImageProps } from "../../organisms/articles/articleimage/ArticleImageProps";
|
|
4
4
|
import type { ArticleCarouselProps } from "../../organisms/articles/articlecarousel/ArticleCarouselProps";
|
|
5
|
-
|
|
5
|
+
import { FeaturedProductsCarouselProps } from "../../organisms/carousels/featureproductcarousel/FeaturedProductsCarouselProps";
|
|
6
|
+
import { ArticleRecentSectionProps } from "../../organisms/articles/articlerecentsection/ArticleRecentSectionProps";
|
|
7
|
+
export interface ArticlePageProps {
|
|
6
8
|
articleBannerProps: ArticleBannerProps;
|
|
7
9
|
articleHeaderProps: ArticleTextProps;
|
|
8
10
|
articleTextProps: ArticleTextProps;
|
|
9
11
|
articleTextProps2: ArticleTextProps;
|
|
10
12
|
articleImageProps: ArticleImageProps;
|
|
11
13
|
articleCarouselProps: ArticleCarouselProps;
|
|
12
|
-
|
|
14
|
+
featuredProductsCarouselProps: FeaturedProductsCarouselProps;
|
|
15
|
+
articleRecentSectionProps: ArticleRecentSectionProps;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StandardCopyHeroProps } from "../../organisms/banner/standardcopyhero/StandardCopyHeroProps";
|
|
2
|
+
import type { MultiButtonBarProps } from "../../molecules/selectors/multibuttonbar/MultiButtonBarProps";
|
|
3
|
+
import type { SortAndSearchBarProps } from "../../molecules/selectors/sortandsearchbar/SortAndSearchBarProps";
|
|
4
|
+
import type { DecorGridProps } from "../../organisms/decorgrid/DecorGridProps";
|
|
5
|
+
export type CategorySceneProps = {
|
|
6
|
+
standardCopyHeroProps: StandardCopyHeroProps;
|
|
7
|
+
multiButtonBarProps: MultiButtonBarProps;
|
|
8
|
+
sortAndSearchBarProps: SortAndSearchBarProps;
|
|
9
|
+
decorGridProps: DecorGridProps;
|
|
10
|
+
};
|