formica-ui-lib 1.0.180 → 1.0.182
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/carousel/standardcarousel/StandardCarouselProps.d.ts +20 -5
- package/dist/componentProps/organisms/articles/articlecarousel/ArticleCarouselProps.d.ts +2 -2
- package/dist/componentProps/organisms/navigation/TopNavBarProps.d.ts +1 -1
- package/dist/componentProps/scene/article/ArticleSceneProps.d.ts +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +825 -808
- package/dist/stories/molecules/carousel/standardcarousel/StandardCarousel.d.ts +2 -3
- package/dist/stories/templates/articlelandingpagetemplate/ArticleLandingPageTemplate.test.d.ts +1 -0
- package/dist/stories/templates/cart/confirmation/CartConfirmationTemplate.test.d.ts +1 -0
- package/dist/stories/templates/cart/payment/CartPaymentTemplate.test.d.ts +1 -0
- package/dist/stories/templates/cart/summary/CartSummaryTemplate.test.d.ts +1 -0
- package/dist/utils/brandLogoMap.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
13
|
-
|
|
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,8 +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:
|
|
27
|
+
onSlideChange?: (index: number, slide: T) => void;
|
|
28
|
+
onSlideClick?: (slide: T, index: number) => void;
|
|
23
29
|
heightClassName?: string;
|
|
24
30
|
showImageOverlay?: boolean;
|
|
25
|
-
}
|
|
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 {
|
|
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<
|
|
5
|
+
export interface ArticleCarouselProps extends Omit<StandardCarouselDefaultSlideProps, "slides" | "onSlideChange" | "renderSlide" | "showImageOverlay"> {
|
|
6
6
|
slides: ArticleCarouselSlide[];
|
|
7
7
|
}
|
|
@@ -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;
|