formica-ui-lib 1.0.179 → 1.0.181

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 (30) hide show
  1. package/dist/componentProps/molecules/card/columncarouselcard/ColumnCarouselCardProps.d.ts +1 -0
  2. package/dist/componentProps/molecules/carousel/columncarousel/ColumnCarouselProps.d.ts +1 -0
  3. package/dist/componentProps/molecules/carousel/standardcarousel/StandardCarouselProps.d.ts +21 -5
  4. package/dist/componentProps/organisms/articles/articlecarousel/ArticleCarouselProps.d.ts +2 -2
  5. package/dist/componentProps/organisms/articles/articletext/ArticleTextProps.d.ts +2 -0
  6. package/dist/componentProps/organisms/banner/columnbanner/ColumnBannerProps.d.ts +1 -0
  7. package/dist/componentProps/organisms/footer/FooterProps.d.ts +1 -0
  8. package/dist/componentProps/organisms/footer/LogosBarProps.d.ts +1 -0
  9. package/dist/componentProps/organisms/navigation/AnnouncementBarProps.d.ts +7 -0
  10. package/dist/componentProps/organisms/navigation/TopNavActionsProps.d.ts +1 -0
  11. package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +4 -1
  12. package/dist/componentProps/scene/article/ArticleSceneProps.d.ts +1 -0
  13. package/dist/componentProps/scene/home/HomePageProps.d.ts +2 -0
  14. package/dist/index.cjs +8 -8
  15. package/dist/index.d.ts +6 -0
  16. package/dist/index.js +1260 -1161
  17. package/dist/stories/molecules/carousel/standardcarousel/StandardCarousel.d.ts +2 -3
  18. package/dist/stories/organisms/navigation/AnnouncementBar/AnnouncementBar.d.ts +4 -0
  19. package/dist/stories/organisms/navigation/{TopNavBar/parts → TopNavActions}/TopNavActions.d.ts +1 -1
  20. package/dist/stories/organisms/navigation/{TopNavBar/parts → TopNavMegaMenu}/TopNavMegaMenu.d.ts +1 -1
  21. package/dist/stories/organisms/navigation/TopNavMegaMenu/TopNavMegaMenu.test.d.ts +1 -0
  22. package/dist/stories/templates/articlelandingpagetemplate/ArticleLandingPageTemplate.test.d.ts +1 -0
  23. package/dist/stories/templates/cart/confirmation/CartConfirmationTemplate.test.d.ts +1 -0
  24. package/dist/stories/templates/cart/payment/CartPaymentTemplate.test.d.ts +1 -0
  25. package/dist/stories/templates/cart/summary/CartSummaryTemplate.test.d.ts +1 -0
  26. package/dist/tailwind.css +1 -1
  27. package/dist/utils/brandLogoMap.d.ts +1 -0
  28. package/package.json +1 -1
  29. /package/dist/stories/organisms/navigation/{TopNavBar/parts/TopNavActions.test.d.ts → AnnouncementBar/AnnouncementBar.test.d.ts} +0 -0
  30. /package/dist/stories/organisms/navigation/{TopNavBar/parts/TopNavMegaMenu.test.d.ts → TopNavActions/TopNavActions.test.d.ts} +0 -0
@@ -15,6 +15,7 @@ export type ColumnCarouselCardProps = {
15
15
  grow: number;
16
16
  isLoaded: boolean;
17
17
  isFav: boolean;
18
+ showFavorites?: boolean;
18
19
  setActiveIndex: (n: number | null) => void;
19
20
  onLoaded: (id: string) => void;
20
21
  onToggleFav: (item: ColumnCarouselItem) => void;
@@ -11,6 +11,7 @@ export type ColumnCarouselProps = {
11
11
  onNext: () => void;
12
12
  loadedIds: Set<string>;
13
13
  favoriteIds: Set<string>;
14
+ showFavorites?: boolean;
14
15
  onLoaded: (id: string) => void;
15
16
  onToggleFav: (item: ColumnCarouselItem) => void;
16
17
  onItemClick?: (item: ColumnCarouselItem) => void;
@@ -1,3 +1,4 @@
1
+ import type React from "react";
1
2
  import type { ButtonProps } from "../../../atoms/buttons/button/ButtonProps";
2
3
  export interface StandardCarouselSlide {
3
4
  imageSrc: string;
@@ -9,8 +10,13 @@ export interface StandardCarouselSlide {
9
10
  body?: string;
10
11
  ctas?: ButtonProps[];
11
12
  }
12
- export interface StandardCarouselProps {
13
- slides: StandardCarouselSlide[];
13
+ export type StandardCarouselRenderSlideArgs<T> = {
14
+ slide: T;
15
+ index: number;
16
+ isActive: boolean;
17
+ };
18
+ export type StandardCarouselBaseProps<T> = {
19
+ slides: T[];
14
20
  initialIndex?: number;
15
21
  showArrows?: boolean;
16
22
  showDots?: boolean;
@@ -18,7 +24,17 @@ export interface StandardCarouselProps {
18
24
  prevArrowButtonProps?: Partial<ButtonProps>;
19
25
  nextArrowButtonProps?: Partial<ButtonProps>;
20
26
  autoRotateSeconds?: number;
21
- onSlideChange?: (index: number) => void;
22
- onSlideClick?: (slide: StandardCarouselSlide, index: number) => void;
27
+ onSlideChange?: (index: number, slide: T) => void;
28
+ onSlideClick?: (slide: T, index: number) => void;
23
29
  heightClassName?: string;
24
- }
30
+ showImageOverlay?: boolean;
31
+ };
32
+ export type StandardCarouselDefaultSlideProps = StandardCarouselBaseProps<StandardCarouselSlide> & {
33
+ renderSlide?: (args: StandardCarouselRenderSlideArgs<StandardCarouselSlide>) => React.ReactNode;
34
+ };
35
+ export type StandardCarouselSlottedProps<T> = StandardCarouselBaseProps<T> & {
36
+ renderSlide: (args: StandardCarouselRenderSlideArgs<T>) => React.ReactNode;
37
+ };
38
+ export type StandardCarouselProps<T = StandardCarouselSlide> = StandardCarouselBaseProps<T> & {
39
+ renderSlide?: (args: StandardCarouselRenderSlideArgs<T>) => React.ReactNode;
40
+ };
@@ -1,7 +1,7 @@
1
- import type { StandardCarouselProps, StandardCarouselSlide } from "../../../molecules/carousel/standardcarousel/StandardCarouselProps";
1
+ import type { StandardCarouselDefaultSlideProps, StandardCarouselSlide } from "../../../molecules/carousel/standardcarousel/StandardCarouselProps";
2
2
  export interface ArticleCarouselSlide extends StandardCarouselSlide {
3
3
  imageText?: string;
4
4
  }
5
- export interface ArticleCarouselProps extends Omit<StandardCarouselProps, "slides" | "onSlideChange"> {
5
+ export interface ArticleCarouselProps extends Omit<StandardCarouselDefaultSlideProps, "slides" | "onSlideChange" | "renderSlide" | "showImageOverlay"> {
6
6
  slides: ArticleCarouselSlide[];
7
7
  }
@@ -1,7 +1,9 @@
1
1
  export type HeadingSize = "small" | "large";
2
+ export type ArticleTextAlign = "left" | "center" | "right";
2
3
  export interface ArticleTextProps {
3
4
  heading?: string;
4
5
  headingSize?: HeadingSize;
6
+ align?: ArticleTextAlign;
5
7
  subheading?: string;
6
8
  datetimeStamp?: string;
7
9
  body?: string;
@@ -20,6 +20,7 @@ export interface ColumnBannerProps {
20
20
  description?: string;
21
21
  TabsWithColumns: TabItem[];
22
22
  favoriteIds?: string[];
23
+ showFavorites?: boolean;
23
24
  onFavoriteToggle?: (item: CtaItem, isFavorite: boolean) => void;
24
25
  onItemClick?: (item: CtaItem) => void;
25
26
  }
@@ -39,5 +39,6 @@ export type FooterProps = {
39
39
  brand: FooterBrandBlock;
40
40
  columns: FooterColumnProps[];
41
41
  parentLogo?: FooterImageProps;
42
+ phoneLinePlacement?: "brand" | "logosBar";
42
43
  legal: FooterLegalBlock;
43
44
  };
@@ -2,4 +2,5 @@ import type { FooterImageProps } from "./FooterProps";
2
2
  export type LogosBarProps = {
3
3
  affiliateLogos?: FooterImageProps[];
4
4
  parentLogo?: FooterImageProps;
5
+ phoneLine?: string;
5
6
  };
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ export type AnnouncementBarProps = {
3
+ message?: string;
4
+ buttonLabel?: string;
5
+ onButtonClick?: () => void;
6
+ children?: ReactNode;
7
+ };
@@ -5,6 +5,7 @@ export type TopNavActionsProps = {
5
5
  selectedCountry?: Country | null;
6
6
  Login: TopNavLogin;
7
7
  Cart?: TopNavCartSummary;
8
+ showFavorites?: boolean;
8
9
  onSearchClick?: () => void;
9
10
  onCartClick?: () => void;
10
11
  onLoginClick?: () => void;
@@ -21,9 +21,11 @@ export type TopNavLogin = {
21
21
  href: string;
22
22
  };
23
23
  export type TopNavLogo = {
24
- src: string;
24
+ src?: string;
25
25
  alt?: string;
26
26
  href?: string;
27
+ className?: string;
28
+ containerClassName?: string;
27
29
  };
28
30
  export type TopNavBarProps = {
29
31
  NavMenuWithSubItems?: NavItem[];
@@ -31,6 +33,7 @@ export type TopNavBarProps = {
31
33
  selectedCountry?: Country | null;
32
34
  Login?: TopNavLogin;
33
35
  Cart?: TopNavCartSummary;
36
+ showFavorites?: boolean;
34
37
  Logo?: TopNavLogo;
35
38
  onLogoClick?: () => void;
36
39
  onNavItemClick?: (item: NavItem) => void;
@@ -11,6 +11,7 @@ export interface ArticlePageProps {
11
11
  articleHeaderProps: ArticleTextProps;
12
12
  articleTextProps: ArticleTextProps;
13
13
  articleTextProps2: ArticleTextProps;
14
+ additionalArticleTextProps?: ArticleTextProps[];
14
15
  articleImageProps: ArticleImageProps;
15
16
  articleCarouselProps: ArticleCarouselProps;
16
17
  featuredProductsCarouselProps: FeaturedProductsCarouselProps;
@@ -1,5 +1,6 @@
1
1
  import type { BrandNavBarProps } from "../../organisms/navigation/BrandNavBarProps";
2
2
  import type { TopNavBarProps } from "../../organisms/navigation/TopNavBarProps";
3
+ import type { AnnouncementBarProps } from "../../organisms/navigation/AnnouncementBarProps";
3
4
  import type { CallToActionHeroProps } from "../../organisms/banner/herobanner/CallToActionHeroProps";
4
5
  import type { ButtonProps } from "../../atoms/buttons/button/ButtonProps";
5
6
  import type { ColumnBannerProps } from "../../organisms/banner/columnbanner/ColumnBannerProps";
@@ -10,6 +11,7 @@ import type { FeatureBannerProps } from "../../organisms/banner/featurebanner/Fe
10
11
  export type HomePageProps = {
11
12
  brandNavBarProps: BrandNavBarProps;
12
13
  topNavBarProps: TopNavBarProps;
14
+ announcementBarProps?: AnnouncementBarProps;
13
15
  callToActionCarouselProps?: {
14
16
  slides: CallToActionHeroProps[];
15
17
  showArrows?: boolean;