formica-ui-lib 1.0.350 → 1.0.352
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/buttons/button/ButtonProps.d.ts +5 -1
- package/dist/componentProps/molecules/bannercontent/featuredarticlebannercontent/FeaturedArticleBannerContentProps.d.ts +3 -1
- package/dist/componentProps/molecules/bannercontent/standardcopybannercontent/StandardCopyBannerContentProps.d.ts +3 -1
- package/dist/componentProps/molecules/cards/clickablecard/ClickableCardProps.d.ts +3 -1
- package/dist/componentProps/molecules/cards/columncarouselcard/ColumnCarouselCardProps.d.ts +2 -1
- package/dist/componentProps/molecules/cards/featurecard/FeatureCardProps.d.ts +5 -2
- package/dist/componentProps/molecules/cards/featureproductcard/FeaturedProductCardProps.d.ts +3 -1
- package/dist/componentProps/molecules/cards/imageoverlaycard/ImageOverlayCardProps.d.ts +3 -1
- package/dist/componentProps/molecules/cards/infocard/InfoCardProps.d.ts +2 -1
- package/dist/componentProps/molecules/cards/moreinfohighlightscard/MoreInfoHighlightsCardProps.d.ts +2 -1
- package/dist/componentProps/molecules/cards/recentarticlecard/RecentArticleCardProps.d.ts +3 -1
- package/dist/componentProps/molecules/cards/swatchcard/SwatchCardProps.d.ts +3 -1
- package/dist/componentProps/molecules/carouselprimitives/standardcarousel/StandardCarouselProps.d.ts +4 -1
- package/dist/componentProps/molecules/navigation/footerimagelink/FooterImageLinkProps.d.ts +1 -1
- package/dist/componentProps/molecules/navigation/navdropdownitem/NavDropdownItemProps.d.ts +12 -0
- package/dist/componentProps/molecules/selectors/broadviewcountryselector/BroadviewCountrySelectorProps.d.ts +6 -0
- package/dist/componentProps/organisms/banners/brandhero/BrandHeroProps.d.ts +16 -0
- package/dist/componentProps/organisms/banners/columnbanner/ColumnBannerProps.d.ts +2 -1
- package/dist/componentProps/organisms/banners/featuredarticlebanner/FeaturedArticleBannerProps.d.ts +3 -1
- package/dist/componentProps/organisms/banners/standardcopyhero/StandardCopyHeroProps.d.ts +2 -1
- package/dist/componentProps/organisms/carousels/brandherocarousel/BrandHeroCarouselProps.d.ts +4 -0
- package/dist/componentProps/organisms/carousels/featureproductcarousel/FeaturedProductsCarouselProps.d.ts +2 -1
- package/dist/componentProps/organisms/collections/featurecardcollection/FeatureCardCollectionProps.d.ts +2 -1
- package/dist/componentProps/organisms/grids/decorgrid/DecorGridProps.d.ts +2 -1
- package/dist/componentProps/organisms/grids/imageoverlaygrid/ImageOverlayGridProps.d.ts +2 -1
- package/dist/componentProps/organisms/navigation/AnnouncementBarProps.d.ts +3 -1
- package/dist/componentProps/organisms/navigation/BrandNavBarProps.d.ts +2 -1
- package/dist/componentProps/organisms/navigation/BroadviewNavBarProps.d.ts +22 -0
- package/dist/componentProps/organisms/navigation/PromoBannerProps.d.ts +3 -1
- package/dist/componentProps/organisms/navigation/TopNavActionsProps.d.ts +2 -1
- package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +5 -4
- package/dist/componentProps/organisms/navigation/TopNavMegaMenuProps.d.ts +3 -1
- package/dist/componentProps/organisms/navigation/broadviewfooter/BroadviewFooterProps.d.ts +5 -0
- package/dist/componentProps/organisms/navigation/footerlegal/FooterLegalProps.d.ts +4 -0
- package/dist/componentProps/organisms/navigation/footerlogosbar/FooterLogosBarProps.d.ts +3 -0
- package/dist/componentProps/shared/NavigationClickProps.d.ts +3 -0
- package/dist/componentProps/templates/categorypagetemplate/CategoryPageTemplateProps.d.ts +3 -2
- package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts +2 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.ts +7 -0
- package/dist/index.js +3053 -2686
- package/dist/stories/molecules/navigation/navdropdownitem/NavDropdownItem.d.ts +4 -0
- package/dist/stories/molecules/selectors/broadviewcountryselector/BroadviewCountrySelector.d.ts +4 -0
- package/dist/stories/organisms/banners/brandhero/BrandHero.d.ts +4 -0
- package/dist/stories/organisms/carousels/brandherocarousel/BrandHeroCarousel.d.ts +4 -0
- package/dist/stories/organisms/navigation/BroadviewFooter/BroadviewFooter.d.ts +4 -0
- package/dist/stories/organisms/navigation/BroadviewNavBar/BroadviewNavBar.d.ts +4 -0
- package/dist/stories/organisms/navigation/Footer/FooterLegal/FooterLegal.d.ts +2 -2
- package/dist/tailwind.css +1 -1
- package/dist/utils/brandLogoMap.d.ts +1 -0
- package/dist/utils/linkClick.d.ts +4 -0
- package/package.json +1 -1
|
@@ -6,7 +6,11 @@ export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
|
6
6
|
export type IconPosition = "left" | "right";
|
|
7
7
|
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
8
8
|
export type ButtonAlignment = "justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly";
|
|
9
|
-
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> {
|
|
9
|
+
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children" | "onClick"> {
|
|
10
|
+
href?: string;
|
|
11
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
12
|
+
rel?: string;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
|
|
10
14
|
label?: string;
|
|
11
15
|
children?: React.ReactNode;
|
|
12
16
|
iconType?: FaTypeClass;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export interface FeaturedArticleBannerContentProps {
|
|
2
3
|
heading: string;
|
|
3
4
|
subheading?: string;
|
|
4
5
|
articleCategory?: string;
|
|
5
6
|
ctaLabel?: string;
|
|
6
|
-
|
|
7
|
+
ctaHref?: string;
|
|
8
|
+
onCtaClick?: (event?: NavigationClickEvent) => void;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export interface StandardCopyBannerContentProps {
|
|
2
3
|
heading: string;
|
|
3
4
|
subheading?: string;
|
|
4
5
|
body?: string;
|
|
5
6
|
linkLabel?: string;
|
|
6
|
-
|
|
7
|
+
linkHref?: string;
|
|
8
|
+
onLinkClick?: (event?: NavigationClickEvent) => void;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import React from "react";
|
|
2
3
|
export type ClickableCardProps = {
|
|
3
4
|
children: React.ReactNode;
|
|
4
|
-
|
|
5
|
+
href?: string;
|
|
6
|
+
onCardClick?: (event?: NavigationClickEvent) => void;
|
|
5
7
|
ariaLabel: string;
|
|
6
8
|
ariaControls?: string;
|
|
7
9
|
ariaExpanded?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export interface ColumnCarouselItem {
|
|
2
3
|
id: string;
|
|
3
4
|
label: string;
|
|
@@ -19,5 +20,5 @@ export type ColumnCarouselCardProps = {
|
|
|
19
20
|
setActiveIndex: (n: number | null) => void;
|
|
20
21
|
onLoaded: (id: string) => void;
|
|
21
22
|
onToggleFav: (item: ColumnCarouselItem) => void;
|
|
22
|
-
onItemClick?: (item: ColumnCarouselItem) => void;
|
|
23
|
+
onItemClick?: (item: ColumnCarouselItem, event?: NavigationClickEvent) => void;
|
|
23
24
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export type FeatureCardCtaMode = "button" | "text" | "hidden";
|
|
2
3
|
export type FeatureCardStyle = "standard" | "vertical";
|
|
3
4
|
export type FeatureCardClickPayload = {
|
|
@@ -6,13 +7,15 @@ export type FeatureCardClickPayload = {
|
|
|
6
7
|
buttonLabel?: string;
|
|
7
8
|
};
|
|
8
9
|
export type FeatureCardProps = {
|
|
10
|
+
href?: string;
|
|
9
11
|
imageSrc: string;
|
|
10
12
|
imageAlt?: string;
|
|
11
13
|
title: string;
|
|
12
14
|
description?: string;
|
|
13
15
|
buttonLabel?: string;
|
|
16
|
+
buttonHref?: string;
|
|
14
17
|
ctaMode?: FeatureCardCtaMode;
|
|
15
18
|
cardStyle?: FeatureCardStyle;
|
|
16
|
-
onCardClick?: () => void;
|
|
17
|
-
onCtaClick?: (payload: FeatureCardClickPayload) => void;
|
|
19
|
+
onCardClick?: (event?: NavigationClickEvent) => void;
|
|
20
|
+
onCtaClick?: (payload: FeatureCardClickPayload, event?: NavigationClickEvent) => void;
|
|
18
21
|
};
|
package/dist/componentProps/molecules/cards/featureproductcard/FeaturedProductCardProps.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export type FeaturedProductCardProps = {
|
|
3
|
+
href?: string;
|
|
2
4
|
imageSrc: string;
|
|
3
5
|
imageAlt?: string;
|
|
4
6
|
title: string;
|
|
5
7
|
brand?: string;
|
|
6
8
|
decorNumber?: string | number;
|
|
7
|
-
onProductClick?: () => void;
|
|
9
|
+
onProductClick?: (event?: NavigationClickEvent) => void;
|
|
8
10
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export type ImageOverlayCardAspectRatio = "video" | "compact";
|
|
2
3
|
export type ImageOverlayCardProps = {
|
|
4
|
+
href?: string;
|
|
3
5
|
imageSrc: string;
|
|
4
6
|
imageAlt?: string;
|
|
5
7
|
label: string;
|
|
6
8
|
body?: string;
|
|
7
9
|
aspectRatio?: ImageOverlayCardAspectRatio;
|
|
8
|
-
onCardClick?: () => void;
|
|
10
|
+
onCardClick?: (event?: NavigationClickEvent) => void;
|
|
9
11
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import type { ButtonVariant, ButtonIntent, ButtonSize } from "../../../atoms/buttons/button/ButtonProps";
|
|
2
3
|
export type InfoCardAlign = "left" | "right";
|
|
3
4
|
export type InfoCardLayoutVariant = "default" | "underBanner";
|
|
@@ -21,5 +22,5 @@ export interface InfoCardProps {
|
|
|
21
22
|
buttons?: InfoCardButton[];
|
|
22
23
|
align?: InfoCardAlign;
|
|
23
24
|
layoutVariant?: InfoCardLayoutVariant;
|
|
24
|
-
onButtonClick?: (payload: InfoCardButtonClickPayload) => void;
|
|
25
|
+
onButtonClick?: (payload: InfoCardButtonClickPayload, event?: NavigationClickEvent) => void;
|
|
25
26
|
}
|
package/dist/componentProps/molecules/cards/moreinfohighlightscard/MoreInfoHighlightsCardProps.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import { FaTypeClass } from "../../../atoms/icon/IconProps";
|
|
2
3
|
export type MoreInfoHighlightsCardProps = {
|
|
3
4
|
iconType: FaTypeClass;
|
|
@@ -6,5 +7,5 @@ export type MoreInfoHighlightsCardProps = {
|
|
|
6
7
|
body: string;
|
|
7
8
|
href?: string;
|
|
8
9
|
linkLabel?: string;
|
|
9
|
-
onLinkClick?: () => void;
|
|
10
|
+
onLinkClick?: (event?: NavigationClickEvent) => void;
|
|
10
11
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
2
3
|
export type RecentArticleCardLayoutVariant = "default" | "mediaRightCompact" | "mediaLeftCompact";
|
|
3
4
|
export interface RecentArticleCardProps {
|
|
4
5
|
layoutVariant?: RecentArticleCardLayoutVariant;
|
|
@@ -13,6 +14,7 @@ export interface RecentArticleCardProps {
|
|
|
13
14
|
publishDate?: string;
|
|
14
15
|
body: string;
|
|
15
16
|
buttonLabel: string;
|
|
16
|
-
|
|
17
|
+
buttonHref?: string;
|
|
18
|
+
onViewClick?: (event?: NavigationClickEvent) => void;
|
|
17
19
|
actionFooter?: React.ReactNode;
|
|
18
20
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export type SwatchStatus = "new" | "discontinued" | "comingSoon" | "sale";
|
|
2
3
|
export type SwatchCardProps = {
|
|
3
4
|
id?: string;
|
|
5
|
+
href?: string;
|
|
4
6
|
imageSrc: string;
|
|
5
7
|
imageFallbackSrc?: string;
|
|
6
8
|
imageAlt: string;
|
|
@@ -8,6 +10,6 @@ export type SwatchCardProps = {
|
|
|
8
10
|
brand: string;
|
|
9
11
|
product?: string;
|
|
10
12
|
decorNumber: string | number;
|
|
11
|
-
onSwatchClick?: () => void;
|
|
13
|
+
onSwatchClick?: (event?: NavigationClickEvent) => void;
|
|
12
14
|
status?: SwatchStatus;
|
|
13
15
|
};
|
package/dist/componentProps/molecules/carouselprimitives/standardcarousel/StandardCarouselProps.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import type React from "react";
|
|
2
3
|
import type { ButtonProps } from "../../../atoms/buttons/button/ButtonProps";
|
|
3
4
|
export interface StandardCarouselSlide {
|
|
@@ -14,6 +15,8 @@ export type StandardCarouselRenderSlideArgs<T> = {
|
|
|
14
15
|
slide: T;
|
|
15
16
|
index: number;
|
|
16
17
|
isActive: boolean;
|
|
18
|
+
onPreviousClick: () => void;
|
|
19
|
+
onNextClick: () => void;
|
|
17
20
|
};
|
|
18
21
|
export type StandardCarouselBaseProps<T> = {
|
|
19
22
|
slides: T[];
|
|
@@ -25,7 +28,7 @@ export type StandardCarouselBaseProps<T> = {
|
|
|
25
28
|
nextArrowButtonProps?: Partial<ButtonProps>;
|
|
26
29
|
autoRotateSeconds?: number;
|
|
27
30
|
onSlideChange?: (index: number, slide: T) => void;
|
|
28
|
-
onSlideClick?: (slide: T, index: number) => void;
|
|
31
|
+
onSlideClick?: (slide: T, index: number, event?: NavigationClickEvent) => void;
|
|
29
32
|
heightClassName?: string;
|
|
30
33
|
showImageOverlay?: boolean;
|
|
31
34
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FooterImageProps } from "../../../organisms/navigation/footer/FooterProps";
|
|
2
|
-
export type FooterImageLinkSize = "default" | "primary" | "parent" | "affiliate";
|
|
2
|
+
export type FooterImageLinkSize = "default" | "primary" | "parent" | "parent-lg" | "affiliate";
|
|
3
3
|
export type FooterImageLinkProps = {
|
|
4
4
|
img: FooterImageProps;
|
|
5
5
|
size?: FooterImageLinkSize;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NavLinkItem } from "../../../organisms/navigation/TopNavBarProps";
|
|
2
|
+
export type NavDropdownItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
items?: NavLinkItem[];
|
|
7
|
+
};
|
|
8
|
+
export type NavDropdownItemProps = {
|
|
9
|
+
navDropdownItem: NavDropdownItem;
|
|
10
|
+
onNavItemClick?: (navItem: NavDropdownItem) => void;
|
|
11
|
+
onNavLinkClick?: (navLink: NavLinkItem) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type BrandHeroLabels = {
|
|
2
|
+
leftArrowLabel?: string;
|
|
3
|
+
rightArrowLabel?: string;
|
|
4
|
+
};
|
|
5
|
+
export type BrandHeroProps = {
|
|
6
|
+
imageSrc: string;
|
|
7
|
+
imageAlt?: string;
|
|
8
|
+
heading: string;
|
|
9
|
+
eyebrow?: string;
|
|
10
|
+
logoSrc: string;
|
|
11
|
+
logoAlt?: string;
|
|
12
|
+
labels?: BrandHeroLabels;
|
|
13
|
+
onPreviousClick?: () => void;
|
|
14
|
+
onNextClick?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import type { ColumnCarouselItem } from "../../../molecules/cards/columncarouselcard/ColumnCarouselCardProps";
|
|
2
3
|
export interface TabItem {
|
|
3
4
|
label: string;
|
|
@@ -22,5 +23,5 @@ export interface ColumnBannerProps {
|
|
|
22
23
|
favoriteIds?: string[];
|
|
23
24
|
showFavorites?: boolean;
|
|
24
25
|
onFavoriteToggle?: (item: CtaItem, isFavorite: boolean) => void;
|
|
25
|
-
onItemClick?: (item: CtaItem) => void;
|
|
26
|
+
onItemClick?: (item: CtaItem, event?: NavigationClickEvent) => void;
|
|
26
27
|
}
|
package/dist/componentProps/organisms/banners/featuredarticlebanner/FeaturedArticleBannerProps.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export interface FeaturedArticleBannerProps {
|
|
2
3
|
imageSrc: string;
|
|
3
4
|
imageAlt?: string;
|
|
@@ -5,5 +6,6 @@ export interface FeaturedArticleBannerProps {
|
|
|
5
6
|
subheading?: string;
|
|
6
7
|
articleCategory?: string;
|
|
7
8
|
ctaLabel?: string;
|
|
8
|
-
|
|
9
|
+
ctaHref?: string;
|
|
10
|
+
onCtaClick?: (event?: NavigationClickEvent) => void;
|
|
9
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export interface StandardCopyHeroProps {
|
|
2
3
|
imageSrc: string;
|
|
3
4
|
imageAlt?: string;
|
|
@@ -6,5 +7,5 @@ export interface StandardCopyHeroProps {
|
|
|
6
7
|
body: string;
|
|
7
8
|
linkLabel?: string;
|
|
8
9
|
linkHref?: string;
|
|
9
|
-
onLinkClick?: () => void;
|
|
10
|
+
onLinkClick?: (event?: NavigationClickEvent) => void;
|
|
10
11
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { BrandHeroProps } from "../../banners/brandhero/BrandHeroProps";
|
|
2
|
+
import type { StandardCarouselProps } from "../../../molecules/carouselprimitives/standardcarousel/StandardCarouselProps";
|
|
3
|
+
export type BrandHeroCarouselSlide = Omit<BrandHeroProps, "onPreviousClick" | "onNextClick">;
|
|
4
|
+
export type BrandHeroCarouselProps = Pick<StandardCarouselProps<BrandHeroCarouselSlide>, "slides" | "loop" | "autoRotateSeconds" | "onSlideChange" | "onSlideClick">;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
export type FeaturedProductCarouselItem = {
|
|
2
3
|
id: string;
|
|
3
4
|
imageSrc: string;
|
|
@@ -15,5 +16,5 @@ export type FeaturedProductsCarouselProps = {
|
|
|
15
16
|
headerAlign?: "left" | "center";
|
|
16
17
|
headerVariant?: FeaturedProductsCarouselHeaderVariant;
|
|
17
18
|
items: FeaturedProductCarouselItem[];
|
|
18
|
-
onItemClick?: (item: FeaturedProductCarouselItem) => void;
|
|
19
|
+
onItemClick?: (item: FeaturedProductCarouselItem, event?: NavigationClickEvent) => void;
|
|
19
20
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import type { FeatureCardProps } from "../../../molecules/cards/featurecard/FeatureCardProps";
|
|
2
3
|
export type FeatureCardCollectionItem = FeatureCardProps;
|
|
3
4
|
export type FeatureCardCollectionFooterButtonPayload = {
|
|
@@ -13,5 +14,5 @@ export type FeatureCardCollectionProps = {
|
|
|
13
14
|
footerBlurb?: string;
|
|
14
15
|
footerButtonLabel?: string;
|
|
15
16
|
footerButtonHref?: string;
|
|
16
|
-
onFooterButtonClick?: (payload: FeatureCardCollectionFooterButtonPayload) => void;
|
|
17
|
+
onFooterButtonClick?: (payload: FeatureCardCollectionFooterButtonPayload, event?: NavigationClickEvent) => void;
|
|
17
18
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import { SwatchCardProps } from "../../../molecules/cards/swatchcard/SwatchCardProps";
|
|
2
3
|
export interface DecorGridProps {
|
|
3
4
|
swatches?: SwatchCardProps[];
|
|
4
|
-
onSwatchClick?: (swatch: SwatchCardProps, index: number) => void;
|
|
5
|
+
onSwatchClick?: (swatch: SwatchCardProps, index: number, event?: NavigationClickEvent) => void;
|
|
5
6
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../../shared/NavigationClickProps";
|
|
1
2
|
import type { ImageOverlayCardProps } from "../../../molecules/cards/imageoverlaycard/ImageOverlayCardProps";
|
|
2
3
|
export type ImageOverlayGridItem = Omit<ImageOverlayCardProps, "className" | "onCardClick"> & {
|
|
3
4
|
id?: string;
|
|
@@ -10,5 +11,5 @@ export type ImageOverlayGridClickPayload = {
|
|
|
10
11
|
export interface ImageOverlayGridProps {
|
|
11
12
|
items: ImageOverlayGridItem[];
|
|
12
13
|
layoutVariant?: ImageOverlayGridLayoutVariant;
|
|
13
|
-
onImageOverlayCardClick?: (payload: ImageOverlayGridClickPayload) => void;
|
|
14
|
+
onImageOverlayCardClick?: (payload: ImageOverlayGridClickPayload, event?: NavigationClickEvent) => void;
|
|
14
15
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import type { ReactNode } from "react";
|
|
2
3
|
export type AnnouncementBarProps = {
|
|
3
4
|
message?: string;
|
|
4
5
|
buttonLabel?: string;
|
|
5
|
-
|
|
6
|
+
buttonHref?: string;
|
|
7
|
+
onButtonClick?: (event?: NavigationClickEvent) => void;
|
|
6
8
|
children?: ReactNode;
|
|
7
9
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import type { NavigationLinkValue, NavigationTextValue } from "../../shared/GeneralLinkProps";
|
|
2
3
|
export type BrandNavItem = {
|
|
3
4
|
label: NavigationTextValue;
|
|
@@ -9,6 +10,6 @@ export type BrandNavBarProps = {
|
|
|
9
10
|
showProPortalSelector?: boolean;
|
|
10
11
|
isNorthAmerica?: boolean;
|
|
11
12
|
selectedCustomerType?: CustomerTypeOption;
|
|
12
|
-
onBrandClick?: (brand: BrandNavItem) => void;
|
|
13
|
+
onBrandClick?: (brand: BrandNavItem, event?: NavigationClickEvent) => void;
|
|
13
14
|
onCustomerTypeChange?: (value: CustomerTypeOption) => void;
|
|
14
15
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
|
|
2
|
+
import { NavLinkItem } from "./TopNavBarProps";
|
|
3
|
+
import { NavDropdownItem } from "../../molecules/navigation/navdropdownitem/NavDropdownItemProps";
|
|
4
|
+
type BroadviewNavBarLabels = {
|
|
5
|
+
logoAlt?: string;
|
|
6
|
+
logoClickLabel?: string;
|
|
7
|
+
mobileMenuToggleLabel?: string;
|
|
8
|
+
mobileMenuLabel?: string;
|
|
9
|
+
leftNavMenuLabel?: string;
|
|
10
|
+
rightNavMenuLabel?: string;
|
|
11
|
+
};
|
|
12
|
+
export type BroadviewNavBarProps = {
|
|
13
|
+
leftNavMenuWithSubItems?: NavDropdownItem[];
|
|
14
|
+
rightNavMenuWithSubItems?: NavDropdownItem[];
|
|
15
|
+
countries?: Country[];
|
|
16
|
+
labels?: BroadviewNavBarLabels;
|
|
17
|
+
onLogoClick?: () => void;
|
|
18
|
+
onNavItemClick?: (navItem: NavDropdownItem) => void;
|
|
19
|
+
onNavLinkClick?: (link: NavLinkItem) => void;
|
|
20
|
+
onCountrySelect?: (country: Country) => void;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
export type PromoBannerProps = {
|
|
2
3
|
open: boolean;
|
|
3
4
|
message: string;
|
|
4
5
|
onClose: () => void;
|
|
5
|
-
onButtonClick?: () => void;
|
|
6
|
+
onButtonClick?: (event?: NavigationClickEvent) => void;
|
|
6
7
|
buttonLabel?: string;
|
|
8
|
+
buttonHref?: string;
|
|
7
9
|
closeLabel?: string;
|
|
8
10
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import type { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
|
|
2
3
|
import type { TopNavLogin, TopNavCartSummary, TopNavSearchPayload } from "./TopNavBarProps";
|
|
3
4
|
import type { TopNavSearchResultClickPayload, TopNavSearchResultItem } from "./TopNavSearchResultsProps";
|
|
@@ -24,7 +25,7 @@ export type TopNavActionsProps = {
|
|
|
24
25
|
onSearchResultClick?: (payload: TopNavSearchResultClickPayload) => void;
|
|
25
26
|
onSearchViewAllClick?: (payload: TopNavSearchPayload) => void;
|
|
26
27
|
onCartClick?: () => void;
|
|
27
|
-
onLoginClick?: () => void;
|
|
28
|
+
onLoginClick?: (event?: NavigationClickEvent) => void;
|
|
28
29
|
onAccountClick?: () => void;
|
|
29
30
|
onFavoritesClick?: () => void;
|
|
30
31
|
onCountrySelect?: (country: Country) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
|
|
2
3
|
import type { TopNavSearchResultClickPayload, TopNavSearchResultItem } from "./TopNavSearchResultsProps";
|
|
3
4
|
import type { TopNavAccount } from "./TopNavAccountDrawerProps";
|
|
@@ -61,16 +62,16 @@ export type TopNavBarProps = {
|
|
|
61
62
|
closeSearchLabel?: string;
|
|
62
63
|
searchResultItems?: TopNavSearchResultItem[];
|
|
63
64
|
searchViewAllLabel?: string;
|
|
64
|
-
onLogoClick?: () => void;
|
|
65
|
-
onNavItemClick?: (item: NavItem) => void;
|
|
66
|
-
onMegaMenuLinkClick?: (link: NavLinkItem) => void;
|
|
65
|
+
onLogoClick?: (event?: NavigationClickEvent) => void;
|
|
66
|
+
onNavItemClick?: (item: NavItem, event?: NavigationClickEvent) => void;
|
|
67
|
+
onMegaMenuLinkClick?: (link: NavLinkItem, event?: NavigationClickEvent) => void;
|
|
67
68
|
onSearchClick?: () => void;
|
|
68
69
|
onSearchChange?: (payload: TopNavSearchPayload) => void;
|
|
69
70
|
onSearchSubmit?: (payload: TopNavSearchPayload) => void;
|
|
70
71
|
onSearchResultClick?: (payload: TopNavSearchResultClickPayload) => void;
|
|
71
72
|
onSearchViewAllClick?: (payload: TopNavSearchPayload) => void;
|
|
72
73
|
onCartClick?: () => void;
|
|
73
|
-
onLoginClick?: () => void;
|
|
74
|
+
onLoginClick?: (event?: NavigationClickEvent) => void;
|
|
74
75
|
onAccountClick?: () => void;
|
|
75
76
|
onOrderHistoryClick?: () => void;
|
|
76
77
|
onProfileClick?: () => void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import type { NavItem, NavLinkItem } from "./TopNavBarProps";
|
|
2
3
|
export type TopNavMegaMenuProps = {
|
|
3
4
|
activeItem?: NavItem;
|
|
4
|
-
|
|
5
|
+
items?: NavItem[];
|
|
6
|
+
onMegaMenuLinkClick?: (link: NavLinkItem, event?: NavigationClickEvent) => void;
|
|
5
7
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { FooterImageProps } from "../footer/FooterProps";
|
|
2
2
|
import type { NavigationTextValue } from "../../../shared/GeneralLinkProps";
|
|
3
|
+
import { FooterImageLinkSize } from "../../../molecules/navigation/footerimagelink/FooterImageLinkProps";
|
|
3
4
|
export type FooterLogosBarProps = {
|
|
4
5
|
affiliateLogos?: FooterImageProps[];
|
|
5
6
|
parentLogo?: FooterImageProps;
|
|
6
7
|
phoneLine?: NavigationTextValue;
|
|
8
|
+
withVerticalSeparator?: boolean;
|
|
9
|
+
parentLogoSize?: FooterImageLinkSize;
|
|
7
10
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import type { DropdownProps } from "../../atoms/dropdown/DropdownProps";
|
|
2
3
|
import type { SearchBarProps } from "../../molecules/searchbar/SearchBarProps";
|
|
3
4
|
import type { MultiButtonBarOption, MultiButtonBarSelectPayload } from "../../molecules/selectors/multibuttonbar/MultiButtonBarProps";
|
|
@@ -69,10 +70,10 @@ export type CategoryPageFilterChangeMeta = {
|
|
|
69
70
|
export type CategoryPageTemplateProps = {
|
|
70
71
|
categoryData: CategoryPageData;
|
|
71
72
|
className?: string;
|
|
72
|
-
onHeroLinkClick?: (categoryData: CategoryPageData) => void;
|
|
73
|
+
onHeroLinkClick?: (categoryData: CategoryPageData, event?: NavigationClickEvent) => void;
|
|
73
74
|
onTabChange?: (payload: MultiButtonBarSelectPayload, categoryData: CategoryPageData) => void;
|
|
74
75
|
onSortChange?: (value: string, categoryData: CategoryPageData) => void;
|
|
75
76
|
onSearchChange?: (value: string, categoryData: CategoryPageData) => void;
|
|
76
77
|
onFilterChange?: (sections: CategoryPageFilterSection[], meta: CategoryPageFilterChangeMeta, categoryData: CategoryPageData) => void;
|
|
77
|
-
onSwatchClick?: (swatch: SwatchCardProps, index: number, categoryData: CategoryPageData) => void;
|
|
78
|
+
onSwatchClick?: (swatch: SwatchCardProps, index: number, categoryData: CategoryPageData, event?: NavigationClickEvent) => void;
|
|
78
79
|
};
|
package/dist/componentProps/templates/productdetailpagetemplate/ProductDetailPageTemplateProps.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NavigationClickEvent } from "../../shared/NavigationClickProps";
|
|
1
2
|
import type { ProductPurchaseAvailability } from "../../molecules/cart/cartactions/CartActionsProps";
|
|
2
3
|
import { BreadcrumbsProps } from "../../molecules/selectors/breadcrumb/BreadcrumbsProps";
|
|
3
4
|
import { ProductInformationTabLabels, ProductInformationTabKey, SizeAndGradeDefinition } from "../../organisms/sections/productinformationsection/ProductInformationSectionProps";
|
|
@@ -261,6 +262,6 @@ export type ProductDetailPageTemplateProps = {
|
|
|
261
262
|
onAddToWishlist?: (payload: ProductDetailWishlistPayload, productData: ProductDetailData) => void;
|
|
262
263
|
onAddToCart?: (order: ProductDetailOrder, productData: ProductDetailData) => void;
|
|
263
264
|
onContactActionClick?: (payload: ProductDetailContactActionPayload, productData: ProductDetailData) => void;
|
|
264
|
-
onProductNavigate?: (href: string, meta?: unknown) => void;
|
|
265
|
+
onProductNavigate?: (href: string, meta?: unknown, event?: NavigationClickEvent) => void;
|
|
265
266
|
cartFlyoutProps?: ProductDetailCartFlyoutProps;
|
|
266
267
|
};
|