formica-ui-lib 1.0.135 → 1.0.138
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/atoms/button/ButtonProps.d.ts +1 -5
- package/dist/componentProps/atoms/checkbox/CheckboxProps.d.ts +2 -8
- package/dist/componentProps/molecules/card/articlerecentcard/ArticleRecentCardProps.d.ts +11 -0
- package/dist/componentProps/molecules/card/featureproductcard/FeaturedProductCardProps.d.ts +3 -4
- package/dist/componentProps/molecules/card/swatchcard/SwatchCardProps.d.ts +2 -2
- package/dist/componentProps/organisms/articles/articlerecentsection/ArticleRecentSectionProps.d.ts +6 -0
- package/dist/componentProps/organisms/carousels/featureproductcarousel/FeaturedProductsCarouselProps.d.ts +7 -5
- package/dist/componentProps/organisms/decorgrid/DecorGridProps.d.ts +1 -1
- package/dist/componentProps/organisms/navigation/TopNavActionsProps.d.ts +2 -2
- package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +2 -9
- package/dist/componentProps/scene/article/ArticleSceneProps.d.ts +6 -2
- package/dist/componentProps/scene/productdetailscene/ProductDetailSceneProps.d.ts +1 -1
- package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts +36 -25
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6855 -8011
- package/dist/stories/atoms/buttons/button/ButtonThemeStyles.d.ts +2 -3
- package/dist/stories/molecules/card/articlerecentcard/ArticleRecentCard.d.ts +4 -0
- package/dist/stories/organisms/articles/articlerecentsection/ArticleRecentSection.d.ts +4 -0
- package/package.json +19 -23
- package/dist/componentProps/molecules/selectors/appliedoptionslist/AppliedOptionsListProps.d.ts +0 -14
- package/dist/componentProps/molecules/selectors/verticalcheckboxlist/VerticalCheckboxListProps.d.ts +0 -13
- package/dist/componentProps/organisms/verticalcheckboxlistcollection/VerticalCheckboxListCollectionProps.d.ts +0 -8
- package/dist/stories/molecules/selectors/appliedoptionslist/AppliedOptionsList.d.ts +0 -4
- package/dist/stories/molecules/selectors/verticalcheckboxlist/VerticalCheckboxList.d.ts +0 -4
- package/dist/stories/organisms/verticalcheckboxlistcollection/VerticalCheckboxListCollection.d.ts +0 -4
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FaTypeClass } from "../icon/IconProps";
|
|
3
|
-
export type ButtonVariant = "standard" | "nav" | "text" | "icon" | "segmented" | "small" | "grid"
|
|
3
|
+
export type ButtonVariant = "standard" | "nav" | "text" | "icon" | "segmented" | "small" | "grid";
|
|
4
4
|
export type ButtonType = "primary" | "secondary" | "accent" | "ghost" | "radio";
|
|
5
|
-
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
5
|
export type IconPosition = "left" | "right";
|
|
7
6
|
export type SegmentPosition = "only" | "first" | "middle" | "last";
|
|
8
|
-
export type ButtonAlignment = "justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly";
|
|
9
7
|
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> {
|
|
10
8
|
label?: string;
|
|
11
9
|
children?: React.ReactNode;
|
|
12
10
|
iconType?: FaTypeClass;
|
|
13
11
|
iconName?: string;
|
|
14
12
|
iconAlt?: string;
|
|
15
|
-
iconSize?: IconSize;
|
|
16
13
|
iconPosition?: IconPosition;
|
|
17
14
|
variant?: ButtonVariant;
|
|
18
15
|
buttonType?: ButtonType;
|
|
19
16
|
segmentPosition?: SegmentPosition;
|
|
20
|
-
buttonAlignment?: ButtonAlignment;
|
|
21
17
|
active?: boolean;
|
|
22
18
|
className?: string;
|
|
23
19
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export interface CheckboxChangePayload {
|
|
3
|
-
id: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
checked: boolean;
|
|
6
|
-
}
|
|
1
|
+
import React from "react";
|
|
7
2
|
export interface CheckboxProps {
|
|
8
3
|
id: string;
|
|
9
4
|
name?: string;
|
|
10
5
|
label: string;
|
|
11
6
|
checked?: boolean;
|
|
12
7
|
disabled?: boolean;
|
|
13
|
-
|
|
14
|
-
onChange?: (payload: CheckboxChangePayload) => void;
|
|
8
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
9
|
}
|
|
@@ -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
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Login, TopNavCartSummary } from "./TopNavBarProps";
|
|
3
3
|
export type TopNavActionsProps = {
|
|
4
4
|
Countries?: Country[];
|
|
5
|
-
Login:
|
|
5
|
+
Login: Login;
|
|
6
6
|
Cart?: TopNavCartSummary;
|
|
7
7
|
onSearchClick?: () => void;
|
|
8
8
|
onCartClick?: () => void;
|
|
@@ -23,22 +23,15 @@ export type TopNavCartSummary = {
|
|
|
23
23
|
hasCart: boolean;
|
|
24
24
|
itemCount: number;
|
|
25
25
|
};
|
|
26
|
-
export type
|
|
26
|
+
export type Login = {
|
|
27
27
|
label: string;
|
|
28
28
|
href: string;
|
|
29
29
|
};
|
|
30
|
-
export type TopNavLogo = {
|
|
31
|
-
src: string;
|
|
32
|
-
alt?: string;
|
|
33
|
-
href?: string;
|
|
34
|
-
};
|
|
35
30
|
export type TopNavBarProps = {
|
|
36
31
|
NavMenuWithSubItems?: NavItem[];
|
|
37
32
|
Countries?: Country[];
|
|
38
|
-
Login
|
|
33
|
+
Login: Login;
|
|
39
34
|
Cart?: TopNavCartSummary;
|
|
40
|
-
Logo?: TopNavLogo;
|
|
41
|
-
onLogoClick?: () => void;
|
|
42
35
|
onNavItemClick?: (item: NavItem) => void;
|
|
43
36
|
onMegaMenuLinkClick?: (link: NavLinkItem) => void;
|
|
44
37
|
onPromoClick?: (promo: NavPromo) => void;
|
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -192,28 +200,31 @@ export type ProductDetailData = {
|
|
|
192
200
|
standardCopyHero?: ProductDetailStandardCopyHero;
|
|
193
201
|
featuredProducts?: ProductDetailFeaturedProduct[];
|
|
194
202
|
};
|
|
203
|
+
export type ProductDetailWishlistPayload = {
|
|
204
|
+
sku?: string;
|
|
205
|
+
decor?: string;
|
|
206
|
+
};
|
|
207
|
+
export type ProductDetailOrder = {
|
|
208
|
+
type: string;
|
|
209
|
+
sku?: string;
|
|
210
|
+
decor?: string;
|
|
211
|
+
product: string | null;
|
|
212
|
+
grade: string | null;
|
|
213
|
+
texture: string | null;
|
|
214
|
+
size: string | null;
|
|
215
|
+
quantity: number;
|
|
216
|
+
priceValue?: number;
|
|
217
|
+
priceLabel?: string;
|
|
218
|
+
currency?: string;
|
|
219
|
+
};
|
|
220
|
+
export type ProductDetailCartFlyoutProps = Omit<CartFlyoutProps, "isOpen" | "onClose">;
|
|
195
221
|
export type ProductDetailPageTemplateProps = {
|
|
196
222
|
breadcrumbsProps?: BreadcrumbsProps;
|
|
197
|
-
productData
|
|
198
|
-
onDownloadSwatch?: (
|
|
199
|
-
onDownloadFullSheet?: (
|
|
200
|
-
onAddToWishlist?: (payload:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
onAddToCart?: (order: {
|
|
205
|
-
type: string;
|
|
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">;
|
|
223
|
+
productData: ProductDetailData;
|
|
224
|
+
onDownloadSwatch?: (productData: ProductDetailData) => void;
|
|
225
|
+
onDownloadFullSheet?: (productData: ProductDetailData) => void;
|
|
226
|
+
onAddToWishlist?: (payload: ProductDetailWishlistPayload, productData: ProductDetailData) => void;
|
|
227
|
+
onAddToCart?: (order: ProductDetailOrder, productData: ProductDetailData) => void;
|
|
228
|
+
onNavigate?: (href: string, meta?: unknown) => void;
|
|
229
|
+
cartFlyoutProps?: ProductDetailCartFlyoutProps;
|
|
219
230
|
};
|