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.
Files changed (60) hide show
  1. package/dist/componentProps/atoms/buttons/button/ButtonProps.d.ts +1 -1
  2. package/dist/componentProps/molecules/banner/featuredarticlebannercontent/FeaturedArticleBannerContentProps.d.ts +2 -0
  3. package/dist/componentProps/molecules/card/articlerecentcard/ArticleRecentCardProps.d.ts +6 -1
  4. package/dist/componentProps/molecules/card/clickablecard/ClickableCardProps.d.ts +2 -0
  5. package/dist/componentProps/molecules/card/imageoverlaycard/ImageOverlayCardProps.d.ts +7 -0
  6. package/dist/componentProps/molecules/carousel/columncarousel/ColumnCarouselProps.d.ts +1 -0
  7. package/dist/componentProps/molecules/carousel/minicarousel/MiniCarouselProps.d.ts +1 -0
  8. package/dist/componentProps/molecules/mediaLinks/sociallinkrow/SocialLinkRowProps.d.ts +14 -0
  9. package/dist/componentProps/molecules/selectors/filterbar/FilterBarButtonProps.d.ts +1 -0
  10. package/dist/componentProps/organisms/articles/articlerecentsection/ArticleRecentSectionProps.d.ts +0 -2
  11. package/dist/componentProps/organisms/articles/articletext/ArticleTextProps.d.ts +2 -0
  12. package/dist/componentProps/organisms/banner/featuredarticlebanner/FeaturedArticleBannerProps.d.ts +2 -0
  13. package/dist/componentProps/organisms/carousels/featureproductcarousel/FeaturedProductsCarouselProps.d.ts +2 -0
  14. package/dist/componentProps/organisms/cart/purchasepanel/PurchasePanelLeftPanelProps.d.ts +1 -1
  15. package/dist/componentProps/organisms/featurecards/featurecardscollection/FeatureCardCollectionProps.d.ts +8 -0
  16. package/dist/componentProps/organisms/moreinfohighlightssection/MoreInfoHighlightsSectionProps.d.ts +0 -1
  17. package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +3 -5
  18. package/dist/componentProps/organisms/navigation/TopNavMegaMenuProps.d.ts +3 -3
  19. package/dist/componentProps/organisms/verticalcheckboxlistcollection/VerticalCheckboxListCollectionProps.d.ts +4 -0
  20. package/dist/index.cjs +8 -8
  21. package/dist/index.d.ts +4 -0
  22. package/dist/index.js +1611 -1287
  23. package/dist/stories/molecules/card/imageoverlaycard/ImageOverlayCard.d.ts +4 -0
  24. package/dist/stories/molecules/card/imageoverlaycard/ImageOverlayCard.test.d.ts +1 -0
  25. package/dist/stories/molecules/carousel/minicarousel/MiniCarousel.d.ts +1 -1
  26. package/dist/stories/molecules/carousel/standardcarousel/StandardCarousel.test.d.ts +1 -0
  27. package/dist/stories/molecules/mediaLinks/socialLinkRow/SocialLinkRow.d.ts +4 -0
  28. package/dist/stories/molecules/mediaLinks/socialLinkRow/SocialLinkRow.test.d.ts +1 -0
  29. package/dist/stories/molecules/selectors/progressindicator/CheckoutProgressIndicator.test.d.ts +1 -0
  30. package/dist/stories/organisms/articles/articlecarousel/ArticleCarousel.test.d.ts +1 -0
  31. package/dist/stories/organisms/articles/articleimage/ArticleImage.test.d.ts +1 -0
  32. package/dist/stories/organisms/articles/articletext/ArticleText.test.d.ts +1 -0
  33. package/dist/stories/organisms/banner/articlebanner/ArticleBanner.test.d.ts +1 -0
  34. package/dist/stories/organisms/banner/featuredarticlebanner/FeaturedArticleBanner.test.d.ts +1 -0
  35. package/dist/stories/organisms/cart/cartconfirmation/cartconfirmedhero/CartConfirmedHero.test.d.ts +1 -0
  36. package/dist/stories/organisms/cart/cartconfirmation/cartordersummary/CartOrderSummary.test.d.ts +1 -0
  37. package/dist/stories/organisms/cart/cartconfirmation/cartreceiptsection/CartReceiptSection.test.d.ts +1 -0
  38. package/dist/stories/organisms/cart/cartconfirmation/cartsummarysection/CartSummarySection.test.d.ts +1 -0
  39. package/dist/stories/organisms/cart/cartflyout/CartFlyout.test.d.ts +1 -0
  40. package/dist/stories/organisms/cart/cartpaymentpanel/CartPaymentPanel.test.d.ts +1 -0
  41. package/dist/stories/organisms/cart/cartsummary/CartSummary.test.d.ts +1 -0
  42. package/dist/stories/organisms/cart/carttotalspanel/CartTotalsPanel.test.d.ts +1 -0
  43. package/dist/stories/organisms/cart/checkoutsteppanel/CheckoutStepPanel.test.d.ts +1 -0
  44. package/dist/stories/organisms/documentlinkcollection/DocumentLinkCollection.test.d.ts +1 -0
  45. package/dist/stories/organisms/faqcardcollection/FaqCardCollection.test.d.ts +1 -0
  46. package/dist/stories/organisms/featurecardcollection/FeatureCardCollection.test.d.ts +1 -0
  47. package/dist/stories/organisms/moreinfohighlights/MoreInfoHighlightsSection.test.d.ts +1 -0
  48. package/dist/stories/organisms/navigation/Footer/Footer.test.d.ts +1 -0
  49. package/dist/stories/organisms/navigation/TopNavBar/parts/TopNavActions.test.d.ts +1 -0
  50. package/dist/stories/organisms/productinformation/productdetailpane/ProductDetailsPane.test.d.ts +1 -0
  51. package/dist/stories/organisms/productinformation/productinformation/ProductInformationSection.test.d.ts +1 -0
  52. package/dist/stories/organisms/productinformation/sizeandgradepane/SizeAndGradePane.test.d.ts +1 -0
  53. package/dist/stories/organisms/productinformation/texturepane/TexturePane.test.d.ts +1 -0
  54. package/dist/stories/organisms/verticalcheckboxlistcollection/VerticalCheckboxListCollection.test.d.ts +1 -0
  55. package/dist/stories/templates/cart/shipping/CartShippingTemplate.test.d.ts +1 -0
  56. package/dist/stories/templates/categorypagetemplate/CategoryPageTemplate.test.d.ts +1 -0
  57. package/dist/stories/templates/productdetailpagetemplate/ProductDetailPageTemplate.test.d.ts +1 -0
  58. package/package.json +9 -8
  59. package/dist/componentProps/scene/category/CategorySceneProps.d.ts +0 -18
  60. 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";
@@ -2,4 +2,6 @@ export interface FeaturedArticleBannerContentProps {
2
2
  heading: string;
3
3
  subheading?: string;
4
4
  articleCategory?: string;
5
+ ctaLabel?: string;
6
+ onCtaClick?: () => void;
5
7
  }
@@ -1,10 +1,15 @@
1
+ import type React from "react";
1
2
  export interface ArticleRecentCardProps {
2
- imageSrc: string;
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
  }
@@ -3,5 +3,7 @@ export type ClickableCardProps = {
3
3
  children: React.ReactNode;
4
4
  onCardClick: () => void;
5
5
  ariaLabel: string;
6
+ ariaControls?: string;
7
+ ariaExpanded?: boolean;
6
8
  className?: string;
7
9
  };
@@ -0,0 +1,7 @@
1
+ export type ImageOverlayCardProps = {
2
+ imageSrc: string;
3
+ imageAlt?: string;
4
+ label: string;
5
+ onCardClick?: () => void;
6
+ className?: string;
7
+ };
@@ -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;
@@ -14,5 +14,6 @@ export type MiniCarouselProps<T> = {
14
14
  select: () => void;
15
15
  }) => React.ReactNode;
16
16
  className?: string;
17
+ trackClassName?: string;
17
18
  ariaLabel?: string;
18
19
  };
@@ -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
+ };
@@ -1,5 +1,6 @@
1
1
  import type { ButtonProps } from "../../../atoms/buttons/button/ButtonProps";
2
2
  export type FilterBarButtonProps = {
3
3
  buttonProps: ButtonProps;
4
+ mobileButtonProps?: ButtonProps;
4
5
  className?: string;
5
6
  };
@@ -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;
@@ -1,5 +1,7 @@
1
+ export type HeadingSize = "small" | "large";
1
2
  export interface ArticleTextProps {
2
3
  heading?: string;
4
+ headingSize?: HeadingSize;
3
5
  subheading?: string;
4
6
  datetimeStamp?: string;
5
7
  body?: string;
@@ -4,4 +4,6 @@ export interface FeaturedArticleBannerProps {
4
4
  heading: string;
5
5
  subheading?: string;
6
6
  articleCategory?: string;
7
+ ctaLabel?: string;
8
+ onCtaClick?: () => void;
7
9
  }
@@ -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?: (id: string) => void;
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
  };
@@ -4,5 +4,4 @@ export type MoreInfoHighlightsSectionProps = {
4
4
  body?: string;
5
5
  cards: MoreInfoHighlightsCardProps[];
6
6
  className?: string;
7
- columns?: 1 | 2 | 3 | 4;
8
7
  };
@@ -1,7 +1,7 @@
1
1
  import { Country } from "../../molecules/selectors/countryselector/CountrySelectorProps";
2
2
  export type NavLinkItem = {
3
3
  label: string;
4
- link: string;
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
- link?: string;
14
+ href?: string;
15
15
  };
16
16
  export type NavItem = {
17
17
  label: string;
18
- link?: string;
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, NavSubcategory } from "./TopNavBarProps";
1
+ import type { NavItem, NavLinkItem, NavPromo } from "./TopNavBarProps";
2
2
  export type TopNavMegaMenuProps = {
3
3
  activeItem?: NavItem;
4
- openSubcategory: NavSubcategory | null;
5
- setOpenSubcategory: (subcategory: NavSubcategory | null) => void;
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
  }