formica-ui-lib 1.0.167 → 1.0.169
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 +1 -1
- package/dist/componentProps/molecules/banner/featuredarticlebannercontent/FeaturedArticleBannerContentProps.d.ts +2 -0
- package/dist/componentProps/molecules/card/articlerecentcard/ArticleRecentCardProps.d.ts +6 -1
- package/dist/componentProps/molecules/card/clickablecard/ClickableCardProps.d.ts +2 -0
- package/dist/componentProps/molecules/card/imageoverlaycard/ImageOverlayCardProps.d.ts +7 -0
- package/dist/componentProps/molecules/carousel/columncarousel/ColumnCarouselProps.d.ts +1 -0
- package/dist/componentProps/molecules/carousel/minicarousel/MiniCarouselProps.d.ts +1 -0
- package/dist/componentProps/molecules/mediaLinks/sociallinkrow/SocialLinkRowProps.d.ts +14 -0
- package/dist/componentProps/molecules/selectors/filterbar/FilterBarButtonProps.d.ts +1 -0
- package/dist/componentProps/organisms/articles/articlerecentsection/ArticleRecentSectionProps.d.ts +0 -2
- package/dist/componentProps/organisms/articles/articletext/ArticleTextProps.d.ts +2 -0
- package/dist/componentProps/organisms/banner/featuredarticlebanner/FeaturedArticleBannerProps.d.ts +2 -0
- package/dist/componentProps/organisms/carousels/featureproductcarousel/FeaturedProductsCarouselProps.d.ts +2 -0
- package/dist/componentProps/organisms/cart/purchasepanel/PurchasePanelLeftPanelProps.d.ts +1 -1
- package/dist/componentProps/organisms/featurecards/featurecardscollection/FeatureCardCollectionProps.d.ts +8 -0
- package/dist/componentProps/organisms/moreinfohighlightssection/MoreInfoHighlightsSectionProps.d.ts +0 -1
- package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +3 -5
- package/dist/componentProps/organisms/navigation/TopNavMegaMenuProps.d.ts +3 -3
- package/dist/componentProps/organisms/verticalcheckboxlistcollection/VerticalCheckboxListCollectionProps.d.ts +4 -0
- package/dist/index.cjs +8 -8
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1611 -1287
- package/dist/stories/molecules/card/imageoverlaycard/ImageOverlayCard.d.ts +4 -0
- package/dist/stories/molecules/card/imageoverlaycard/ImageOverlayCard.test.d.ts +1 -0
- package/dist/stories/molecules/carousel/minicarousel/MiniCarousel.d.ts +1 -1
- package/dist/stories/molecules/carousel/standardcarousel/StandardCarousel.test.d.ts +1 -0
- package/dist/stories/molecules/mediaLinks/socialLinkRow/SocialLinkRow.d.ts +4 -0
- package/dist/stories/molecules/mediaLinks/socialLinkRow/SocialLinkRow.test.d.ts +1 -0
- package/dist/stories/molecules/selectors/progressindicator/CheckoutProgressIndicator.test.d.ts +1 -0
- package/dist/stories/organisms/articles/articlecarousel/ArticleCarousel.test.d.ts +1 -0
- package/dist/stories/organisms/articles/articleimage/ArticleImage.test.d.ts +1 -0
- package/dist/stories/organisms/articles/articletext/ArticleText.test.d.ts +1 -0
- package/dist/stories/organisms/banner/articlebanner/ArticleBanner.test.d.ts +1 -0
- package/dist/stories/organisms/banner/featuredarticlebanner/FeaturedArticleBanner.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartconfirmation/cartconfirmedhero/CartConfirmedHero.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartconfirmation/cartordersummary/CartOrderSummary.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartconfirmation/cartreceiptsection/CartReceiptSection.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartconfirmation/cartsummarysection/CartSummarySection.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartflyout/CartFlyout.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartpaymentpanel/CartPaymentPanel.test.d.ts +1 -0
- package/dist/stories/organisms/cart/cartsummary/CartSummary.test.d.ts +1 -0
- package/dist/stories/organisms/cart/carttotalspanel/CartTotalsPanel.test.d.ts +1 -0
- package/dist/stories/organisms/cart/checkoutsteppanel/CheckoutStepPanel.test.d.ts +1 -0
- package/dist/stories/organisms/documentlinkcollection/DocumentLinkCollection.test.d.ts +1 -0
- package/dist/stories/organisms/faqcardcollection/FaqCardCollection.test.d.ts +1 -0
- package/dist/stories/organisms/featurecardcollection/FeatureCardCollection.test.d.ts +1 -0
- package/dist/stories/organisms/moreinfohighlights/MoreInfoHighlightsSection.test.d.ts +1 -0
- package/dist/stories/organisms/navigation/Footer/Footer.test.d.ts +1 -0
- package/dist/stories/organisms/navigation/TopNavBar/parts/TopNavActions.test.d.ts +1 -0
- package/dist/stories/organisms/productinformation/productdetailpane/ProductDetailsPane.test.d.ts +1 -0
- package/dist/stories/organisms/productinformation/productinformation/ProductInformationSection.test.d.ts +1 -0
- package/dist/stories/organisms/productinformation/sizeandgradepane/SizeAndGradePane.test.d.ts +1 -0
- package/dist/stories/organisms/productinformation/texturepane/TexturePane.test.d.ts +1 -0
- package/dist/stories/organisms/verticalcheckboxlistcollection/VerticalCheckboxListCollection.test.d.ts +1 -0
- package/dist/stories/templates/cart/shipping/CartShippingTemplate.test.d.ts +1 -0
- package/dist/stories/templates/categorypagetemplate/CategoryPageTemplate.test.d.ts +1 -0
- package/dist/stories/templates/productdetailpagetemplate/ProductDetailPageTemplate.test.d.ts +1 -0
- package/package.json +9 -8
- package/dist/componentProps/scene/category/CategorySceneProps.d.ts +0 -18
- package/dist/stories/scenes/category/CategoryScene.d.ts +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FaTypeClass } from "../../icon/IconProps";
|
|
3
3
|
export type ButtonVariant = "solid" | "outline" | "ghost" | "link" | "chip";
|
|
4
|
-
export type ButtonIntent = "primary" | "secondary" | "neutral" | "accent" | "danger" | "ghost" | "radio";
|
|
4
|
+
export type ButtonIntent = "primary" | "secondary" | "neutral" | "accent" | "danger" | "ghost" | "muted" | "radio";
|
|
5
5
|
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
export type IconPosition = "left" | "right";
|
|
7
7
|
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import type React from "react";
|
|
1
2
|
export interface ArticleRecentCardProps {
|
|
2
|
-
|
|
3
|
+
mediaType?: "image" | "video";
|
|
4
|
+
imageSrc?: string;
|
|
3
5
|
imageAlt?: string;
|
|
6
|
+
videoEmbedUrl?: string;
|
|
7
|
+
videoTitle?: string;
|
|
4
8
|
category?: string;
|
|
5
9
|
title: string;
|
|
6
10
|
publishDate?: string;
|
|
7
11
|
body: string;
|
|
8
12
|
buttonLabel: string;
|
|
9
13
|
onViewClick?: () => void;
|
|
14
|
+
actionFooter?: React.ReactNode;
|
|
10
15
|
}
|
|
@@ -2,6 +2,7 @@ import type { ColumnCarouselItem } from "../../card/columncarouselcard/ColumnCar
|
|
|
2
2
|
export type ColumnCarouselProps = {
|
|
3
3
|
items: ColumnCarouselItem[];
|
|
4
4
|
startIndex: number;
|
|
5
|
+
desktopVisibleCount?: number;
|
|
5
6
|
activeIndex: number | null;
|
|
6
7
|
setActiveIndex: (n: number | null) => void;
|
|
7
8
|
canPrev: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FaTypeClass } from "../../../atoms/icon/IconProps";
|
|
2
|
+
export type SocialLinkItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
iconName: string;
|
|
6
|
+
iconType?: FaTypeClass;
|
|
7
|
+
target?: "_self" | "_blank";
|
|
8
|
+
rel?: string;
|
|
9
|
+
};
|
|
10
|
+
export type SocialLinkRowProps = {
|
|
11
|
+
links: SocialLinkItem[];
|
|
12
|
+
className?: string;
|
|
13
|
+
linkClassName?: string;
|
|
14
|
+
};
|
package/dist/componentProps/organisms/articles/articlerecentsection/ArticleRecentSectionProps.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { ArticleRecentCardProps } from "../../../molecules/card/articlerecentcard/ArticleRecentCardProps";
|
|
2
|
-
export type TitleVariant = "h1" | "h2" | "h3" | "standard" | "bold" | "nav" | "free";
|
|
3
2
|
export interface ArticleRecentSectionProps {
|
|
4
3
|
title?: string;
|
|
5
|
-
titleVariant?: TitleVariant;
|
|
6
4
|
titleClassName?: string;
|
|
7
5
|
items: ArticleRecentCardProps[];
|
|
8
6
|
className?: string;
|
|
@@ -10,6 +10,8 @@ export type FeaturedProductCarouselItem = {
|
|
|
10
10
|
};
|
|
11
11
|
export type FeaturedProductsCarouselProps = {
|
|
12
12
|
title?: string;
|
|
13
|
+
body?: string;
|
|
14
|
+
headerAlign?: "left" | "center";
|
|
13
15
|
items: FeaturedProductCarouselItem[];
|
|
14
16
|
onItemClick?: (item: FeaturedProductCarouselItem) => void;
|
|
15
17
|
};
|
|
@@ -6,7 +6,7 @@ export type SwatchOption = ButtonGridItem & {
|
|
|
6
6
|
value: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
active?: boolean;
|
|
9
|
-
onOptionClick?: (
|
|
9
|
+
onOptionClick?: () => void;
|
|
10
10
|
};
|
|
11
11
|
export type SwatchPurchasePanelLeftPanelNavigateMeta = {
|
|
12
12
|
kind: "availability" | "returnPolicy";
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { FeatureCardProps } from "../../../molecules/card/featurecard/FeatureCardProps";
|
|
2
2
|
export type FeatureCardCollectionItem = FeatureCardProps;
|
|
3
|
+
export type FeatureCardCollectionFooterButtonPayload = {
|
|
4
|
+
buttonLabel: string;
|
|
5
|
+
buttonHref?: string;
|
|
6
|
+
};
|
|
3
7
|
export type FeatureCardCollectionProps = {
|
|
4
8
|
title?: string;
|
|
5
9
|
body?: string;
|
|
6
10
|
cards?: FeatureCardCollectionItem[];
|
|
11
|
+
footerBlurb?: string;
|
|
12
|
+
footerButtonLabel?: string;
|
|
13
|
+
footerButtonHref?: string;
|
|
14
|
+
onFooterButtonClick?: (payload: FeatureCardCollectionFooterButtonPayload) => void;
|
|
7
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
|
|
2
2
|
export type NavLinkItem = {
|
|
3
3
|
label: string;
|
|
4
|
-
|
|
4
|
+
href: string;
|
|
5
5
|
};
|
|
6
6
|
export type NavSubcategory = {
|
|
7
7
|
label: string;
|
|
@@ -11,11 +11,11 @@ export type NavPromo = {
|
|
|
11
11
|
imageSrc: string;
|
|
12
12
|
imageAlt: string;
|
|
13
13
|
label?: string;
|
|
14
|
-
|
|
14
|
+
href?: string;
|
|
15
15
|
};
|
|
16
16
|
export type NavItem = {
|
|
17
17
|
label: string;
|
|
18
|
-
|
|
18
|
+
href?: string;
|
|
19
19
|
subcategories?: NavSubcategory[];
|
|
20
20
|
promo?: NavPromo;
|
|
21
21
|
};
|
|
@@ -39,10 +39,8 @@ export type TopNavBarProps = {
|
|
|
39
39
|
Login?: TopNavLogin;
|
|
40
40
|
Cart?: TopNavCartSummary;
|
|
41
41
|
Logo?: TopNavLogo;
|
|
42
|
-
defaultOpenSubcategory?: NavSubcategory | null;
|
|
43
42
|
onLogoClick?: () => void;
|
|
44
43
|
onNavItemClick?: (item: NavItem) => void;
|
|
45
|
-
onOpenSubcategoryChange?: (subcategory: NavSubcategory | null, item: NavItem) => void;
|
|
46
44
|
onMegaMenuLinkClick?: (link: NavLinkItem) => void;
|
|
47
45
|
onPromoClick?: (promo: NavPromo) => void;
|
|
48
46
|
onSearchClick?: () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { NavItem, NavLinkItem, NavPromo
|
|
1
|
+
import type { NavItem, NavLinkItem, NavPromo } from "./TopNavBarProps";
|
|
2
2
|
export type TopNavMegaMenuProps = {
|
|
3
3
|
activeItem?: NavItem;
|
|
4
|
-
openSubcategory:
|
|
5
|
-
setOpenSubcategory: (
|
|
4
|
+
openSubcategory: string | null;
|
|
5
|
+
setOpenSubcategory: (label: string | null) => void;
|
|
6
6
|
onMegaMenuLinkClick?: (link: NavLinkItem) => void;
|
|
7
7
|
onPromoClick?: (promo: NavPromo) => void;
|
|
8
8
|
};
|
|
@@ -13,4 +13,8 @@ export interface VerticalCheckboxListCollectionProps {
|
|
|
13
13
|
headerIcon?: string;
|
|
14
14
|
appliedOptions?: AppliedOptionsListProps;
|
|
15
15
|
sections: VerticalCheckboxListCollectionSection[];
|
|
16
|
+
resetLabel?: string;
|
|
17
|
+
applyFiltersLabel?: string;
|
|
18
|
+
onResetClick: () => void;
|
|
19
|
+
onApplyFiltersClick: () => void;
|
|
16
20
|
}
|