formica-ui-lib 1.0.179 → 1.0.180
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/molecules/card/columncarouselcard/ColumnCarouselCardProps.d.ts +1 -0
- package/dist/componentProps/molecules/carousel/columncarousel/ColumnCarouselProps.d.ts +1 -0
- package/dist/componentProps/molecules/carousel/standardcarousel/StandardCarouselProps.d.ts +1 -0
- package/dist/componentProps/organisms/articles/articlecarousel/ArticleCarouselProps.d.ts +1 -1
- package/dist/componentProps/organisms/articles/articletext/ArticleTextProps.d.ts +2 -0
- package/dist/componentProps/organisms/banner/columnbanner/ColumnBannerProps.d.ts +1 -0
- package/dist/componentProps/organisms/footer/FooterProps.d.ts +1 -0
- package/dist/componentProps/organisms/footer/LogosBarProps.d.ts +1 -0
- package/dist/componentProps/organisms/navigation/AnnouncementBarProps.d.ts +7 -0
- package/dist/componentProps/organisms/navigation/TopNavActionsProps.d.ts +1 -0
- package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +3 -0
- package/dist/componentProps/scene/home/HomePageProps.d.ts +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +6 -0
- package/dist/index.js +812 -730
- package/dist/stories/organisms/navigation/AnnouncementBar/AnnouncementBar.d.ts +4 -0
- package/dist/stories/organisms/navigation/{TopNavBar/parts → TopNavActions}/TopNavActions.d.ts +1 -1
- package/dist/stories/organisms/navigation/{TopNavBar/parts → TopNavMegaMenu}/TopNavMegaMenu.d.ts +1 -1
- package/dist/stories/organisms/navigation/TopNavMegaMenu/TopNavMegaMenu.test.d.ts +1 -0
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
- /package/dist/stories/organisms/navigation/{TopNavBar/parts/TopNavActions.test.d.ts → AnnouncementBar/AnnouncementBar.test.d.ts} +0 -0
- /package/dist/stories/organisms/navigation/{TopNavBar/parts/TopNavMegaMenu.test.d.ts → TopNavActions/TopNavActions.test.d.ts} +0 -0
|
@@ -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;
|
|
@@ -2,6 +2,6 @@ import type { StandardCarouselProps, StandardCarouselSlide } from "../../../mole
|
|
|
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<StandardCarouselProps, "slides" | "onSlideChange" | "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
|
}
|
|
@@ -24,6 +24,8 @@ export type TopNavLogo = {
|
|
|
24
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;
|
|
@@ -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;
|