formica-ui-lib 1.0.126 → 1.0.128
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/featureproductcard/FeaturedProductCardProps.d.ts +3 -4
- package/dist/componentProps/molecules/card/swatchcard/SwatchCardProps.d.ts +1 -5
- package/dist/componentProps/organisms/carousels/featureproductcarousel/FeaturedProductsCarouselProps.d.ts +7 -5
- package/dist/componentProps/scene/article/{ArticleSceneProps.d.ts → ArticleScene.d.ts} +2 -6
- package/dist/componentProps/scene/productdetailscene/ProductDetailSceneProps.d.ts +1 -1
- package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts +20 -25
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +0 -2
- package/dist/index.js +906 -942
- package/dist/stories/scenes/article/ArticleScene.d.ts +1 -1
- package/package.json +8 -8
- package/dist/componentProps/molecules/card/articlerecentcard/ArticleRecentCardProps.d.ts +0 -11
- package/dist/componentProps/organisms/articles/articlerecentsection/ArticleRecentSectionProps.d.ts +0 -6
- package/dist/componentProps/organisms/decorgrid/DecorGridProps.d.ts +0 -4
- package/dist/componentProps/scene/category/CategorySceneProps.d.ts +0 -10
- package/dist/stories/molecules/card/articlerecentcard/ArticleRecentCard.d.ts +0 -4
- package/dist/stories/molecules/card/swatchcard/SwatchCardStatusConfig.d.ts +0 -10
- package/dist/stories/organisms/articles/articlerecentsection/ArticleRecentSection.d.ts +0 -4
- package/dist/stories/organisms/decorgrid/DecorGrid.d.ts +0 -4
- package/dist/stories/scenes/category/CategoryScene.d.ts +0 -4
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export type SwatchStatus = "new" | "discontinued" | "comingSoon" | "sale";
|
|
2
1
|
export interface SwatchCardProps {
|
|
3
2
|
imageSrc: string;
|
|
4
3
|
imageAlt: string;
|
|
5
4
|
title: string;
|
|
6
5
|
brand: string;
|
|
7
|
-
|
|
8
|
-
decorNumber: string;
|
|
9
|
-
onClick: () => void;
|
|
10
|
-
status?: SwatchStatus;
|
|
6
|
+
decorNumber: number;
|
|
11
7
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type FeaturedProductCarouselItem = {
|
|
2
2
|
id: string;
|
|
3
3
|
imageSrc: string;
|
|
4
|
-
imageAlt
|
|
4
|
+
imageAlt?: string;
|
|
5
5
|
title: string;
|
|
6
|
-
brand
|
|
7
|
-
decorNumber
|
|
6
|
+
brand?: string;
|
|
7
|
+
decorNumber?: string;
|
|
8
8
|
href?: string;
|
|
9
|
+
rangeCode?: string;
|
|
9
10
|
};
|
|
10
11
|
export type FeaturedProductsCarouselProps = {
|
|
11
12
|
title?: string;
|
|
12
|
-
items:
|
|
13
|
+
items: FeaturedProductCarouselItem[];
|
|
14
|
+
onItemClick?: (item: FeaturedProductCarouselItem) => void;
|
|
13
15
|
};
|
|
@@ -2,15 +2,11 @@ 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
|
-
|
|
6
|
-
import { ArticleRecentSectionProps } from "../../organisms/articles/articlerecentsection/ArticleRecentSectionProps";
|
|
7
|
-
export interface ArticlePageProps {
|
|
5
|
+
export type ArticlePageProps = {
|
|
8
6
|
articleBannerProps: ArticleBannerProps;
|
|
9
7
|
articleHeaderProps: ArticleTextProps;
|
|
10
8
|
articleTextProps: ArticleTextProps;
|
|
11
9
|
articleTextProps2: ArticleTextProps;
|
|
12
10
|
articleImageProps: ArticleImageProps;
|
|
13
11
|
articleCarouselProps: ArticleCarouselProps;
|
|
14
|
-
|
|
15
|
-
articleRecentSectionProps: ArticleRecentSectionProps;
|
|
16
|
-
}
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BrandNavBarProps } from "../../organisms/navigation/BrandNavBarProps";
|
|
2
2
|
import type { TopNavBarProps } from "../../organisms/navigation/TopNavBarProps";
|
|
3
3
|
import type { FooterProps } from "../../organisms/footer/FooterProps";
|
|
4
|
-
import { ProductDetailPageTemplateProps } from "../../templates/productdetailpagetemplate/ProductDetailPageTemplateProps";
|
|
4
|
+
import type { ProductDetailPageTemplateProps } from "../../templates/productdetailpagetemplate/ProductDetailPageTemplateProps";
|
|
5
5
|
export type ProductDetailSceneProps = {
|
|
6
6
|
brandNavBarProps: BrandNavBarProps;
|
|
7
7
|
topNavBarProps: TopNavBarProps;
|
package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts
CHANGED
|
@@ -158,11 +158,19 @@ export type ProductDetailStandardCopyHero = {
|
|
|
158
158
|
export type ProductDetailFeaturedProduct = {
|
|
159
159
|
id: string;
|
|
160
160
|
imageSrc: string;
|
|
161
|
-
imageAlt
|
|
161
|
+
imageAlt?: string;
|
|
162
162
|
title: string;
|
|
163
|
-
brand
|
|
164
|
-
decorNumber
|
|
163
|
+
brand?: string;
|
|
164
|
+
decorNumber?: string;
|
|
165
165
|
href?: string;
|
|
166
|
+
rangeCode?: string;
|
|
167
|
+
};
|
|
168
|
+
export type ProductDetailNavigationMeta = {
|
|
169
|
+
source?: "breadcrumbs" | "purchase-panel" | "hero" | "featured-products";
|
|
170
|
+
itemId?: string;
|
|
171
|
+
label?: string;
|
|
172
|
+
rangeCode?: string;
|
|
173
|
+
decorNumber?: string;
|
|
166
174
|
};
|
|
167
175
|
export type ProductDetailData = {
|
|
168
176
|
id?: string;
|
|
@@ -194,26 +202,13 @@ export type ProductDetailData = {
|
|
|
194
202
|
};
|
|
195
203
|
export type ProductDetailPageTemplateProps = {
|
|
196
204
|
breadcrumbsProps?: BreadcrumbsProps;
|
|
197
|
-
productData
|
|
198
|
-
onDownloadSwatch?: (
|
|
199
|
-
onDownloadFullSheet?: (
|
|
200
|
-
onAddToWishlist?: (payload: {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
sku?: string;
|
|
207
|
-
decor?: string;
|
|
208
|
-
product: string | null;
|
|
209
|
-
grade: string | null;
|
|
210
|
-
texture: string | null;
|
|
211
|
-
size: string | null;
|
|
212
|
-
quantity: number;
|
|
213
|
-
priceValue?: number;
|
|
214
|
-
priceLabel?: string;
|
|
215
|
-
currency?: string;
|
|
216
|
-
}, data: ProductDetailData) => void;
|
|
217
|
-
onNavigate?: (href: string) => void;
|
|
218
|
-
cartFlyoutProps?: Omit<CartFlyoutProps, "isOpen" | "onClose">;
|
|
205
|
+
productData: ProductDetailData;
|
|
206
|
+
onDownloadSwatch?: (productData: ProductDetailData) => void;
|
|
207
|
+
onDownloadFullSheet?: (productData: ProductDetailData) => void;
|
|
208
|
+
onAddToWishlist?: (payload: {}, // ProductDetailWishlistPayload,
|
|
209
|
+
productData: ProductDetailData) => void;
|
|
210
|
+
onAddToCart?: (order: {}, // ProductDetailOrder,
|
|
211
|
+
productData: ProductDetailData) => void;
|
|
212
|
+
onNavigate?: (href: string, meta?: unknown) => void;
|
|
213
|
+
cartFlyoutProps?: CartFlyoutProps;
|
|
219
214
|
};
|