@envive-ai/react-toolkit-v3 0.3.26 → 0.3.28
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/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/Carousel/Carousel.cjs +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/Carousel.js +1 -1
- package/dist/Carousel/components/Container.cjs +2 -2
- package/dist/Carousel/components/Container.js +2 -2
- package/dist/ChatFooter/ChatFooter.cjs +3 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +3 -1
- package/dist/ChatFooter/components/Layout.cjs +4 -4
- package/dist/ChatFooter/components/Layout.d.cts +1 -0
- package/dist/ChatFooter/components/Layout.d.ts +1 -0
- package/dist/ChatFooter/components/Layout.js +4 -4
- package/dist/ChatFooter/components/index.d.cts +5 -3
- package/dist/ChatFooter/components/index.d.ts +7 -5
- package/dist/ChatFooter/types/types.d.cts +3 -2
- package/dist/ChatFooter/types/types.d.ts +3 -2
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/components/Handle.cjs +2 -2
- package/dist/ChatHeader/components/Handle.js +2 -2
- package/dist/ChatHeader/components/Toggle.cjs +3 -3
- package/dist/ChatHeader/components/Toggle.js +3 -3
- package/dist/ChatPreview/ChatPreview.cjs +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
- package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Headline.js +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
- package/dist/ChatPreviewComparison/components/Layout.js +4 -4
- package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Message.js +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +56 -56
- package/dist/Container/Container.d.ts +220 -220
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/Disclaimer/components/Container.cjs +2 -2
- package/dist/Disclaimer/components/Container.js +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
- package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +3 -3
- package/dist/FloatingChat/components/Layout.js +3 -3
- package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
- package/dist/FloatingChat/components/ResultsGridView.js +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +6 -2
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +6 -2
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +2 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +126 -27
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +5 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +5 -7
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +127 -28
- package/dist/FullPageSalesAgent/components/Layout.cjs +34 -27
- package/dist/FullPageSalesAgent/components/Layout.js +34 -27
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +109 -0
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +107 -0
- package/dist/FullPageSalesAgent/components/index.cjs +1 -0
- package/dist/FullPageSalesAgent/components/index.js +1 -0
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.cjs +16 -6
- package/dist/FullPageSalesAgent/hooks/useGetFooterStyles.js +16 -6
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.cjs +44 -0
- package/dist/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.js +42 -0
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/ImageGallery.d.ts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/LinkButton.cjs +1 -1
- package/dist/Message/components/LinkButton.js +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButton/hooks/useGetLayoutBaseProperties.cjs +1 -1
- package/dist/PromptButton/hooks/useGetLayoutBaseProperties.js +1 -1
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +3 -3
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +2 -2
- package/dist/ReviewCard/components/Container.js +2 -2
- package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
- package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +4 -4
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/Container.cjs +2 -2
- package/dist/SalesAgentProductCard/components/Container.js +2 -2
- package/dist/SalesAgentProductCard/components/Price.cjs +2 -2
- package/dist/SalesAgentProductCard/components/Price.js +2 -2
- package/dist/SalesAgentProductCard/components/Rate.cjs +1 -1
- package/dist/SalesAgentProductCard/components/Rate.js +1 -1
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +5 -4
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +5 -4
- package/dist/SocialProof/components/Headline.cjs +4 -4
- package/dist/SocialProof/components/Headline.js +4 -4
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SocialProof/components/LayoutSingle.cjs +3 -4
- package/dist/SocialProof/components/LayoutSingle.js +3 -4
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- package/dist/SocialProof/hooks/useSocialProofCount.cjs +3 -2
- package/dist/SocialProof/hooks/useSocialProofCount.d.cts +2 -0
- package/dist/SocialProof/hooks/useSocialProofCount.d.ts +2 -0
- package/dist/SocialProof/hooks/useSocialProofCount.js +3 -2
- package/dist/SocialProof/types/types.d.cts +5 -0
- package/dist/SocialProof/types/types.d.ts +5 -0
- package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
- package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/TextField/TextField.cjs +10 -3
- package/dist/TextField/TextField.d.cts +1 -0
- package/dist/TextField/TextField.d.ts +1 -0
- package/dist/TextField/TextField.js +10 -3
- package/dist/TextField/components/Input.cjs +31 -2
- package/dist/TextField/components/Input.js +31 -2
- package/dist/TextField/components/Layout.cjs +7 -2
- package/dist/TextField/components/Layout.js +7 -2
- package/dist/TextField/hooks/useAutoResize.cjs +17 -0
- package/dist/TextField/hooks/useAutoResize.js +16 -0
- package/dist/TextField/hooks/usePlaceholderAnimation.cjs +58 -0
- package/dist/TextField/hooks/usePlaceholderAnimation.js +57 -0
- package/dist/TextField/hooks/useVoiceInput.cjs +9 -1
- package/dist/TextField/hooks/useVoiceInput.js +9 -1
- package/dist/TextField/types/index.d.cts +19 -1
- package/dist/TextField/types/index.d.ts +19 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +1 -1
- package/dist/Tokens/index.js +1 -1
- package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
- package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +2 -2
- package/dist/WelcomeMessage/components/Container.js +2 -2
- package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.js +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/ChatFooter/ChatFooter.tsx +2 -0
- package/src/components/ChatFooter/components/Layout.tsx +3 -1
- package/src/components/ChatFooter/components/TextField.tsx +4 -1
- package/src/components/ChatFooter/types/types.ts +3 -2
- package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -0
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +3 -0
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +207 -49
- package/src/components/FullPageSalesAgent/components/Layout.tsx +10 -3
- package/src/components/FullPageSalesAgent/components/WelcomeOverlay.tsx +143 -0
- package/src/components/FullPageSalesAgent/components/index.ts +2 -0
- package/src/components/FullPageSalesAgent/hooks/useGetFooterStyles.ts +15 -5
- package/src/components/FullPageSalesAgent/hooks/useWelcomeOverlayProducts.ts +52 -0
- package/src/components/PromptButton/hooks/useGetLayoutBaseProperties.ts +3 -1
- package/src/components/SalesAgentProductCard/components/Price.tsx +2 -2
- package/src/components/SalesAgentProductCard/components/Rate.tsx +1 -1
- package/src/components/SocialProof/SocialProof.tsx +4 -2
- package/src/components/SocialProof/components/Headline.tsx +1 -1
- package/src/components/SocialProof/components/LayoutSingle.tsx +6 -5
- package/src/components/SocialProof/hooks/useSocialProofCount.ts +8 -1
- package/src/components/SocialProof/types/types.ts +6 -0
- package/src/components/TextField/TextField.tsx +17 -3
- package/src/components/TextField/__tests__/VoiceInputButton.test.tsx +22 -58
- package/src/components/TextField/components/Input.tsx +43 -9
- package/src/components/TextField/components/Layout.tsx +7 -1
- package/src/components/TextField/hooks/useAutoResize.ts +14 -0
- package/src/components/TextField/hooks/usePlaceholderAnimation.ts +67 -0
- package/src/components/TextField/hooks/useTextFieldSubmit.ts +1 -1
- package/src/components/TextField/hooks/useVoiceInput.ts +8 -0
- package/src/components/TextField/types/index.ts +19 -1
|
@@ -2,8 +2,8 @@ import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
|
2
2
|
import { ContainerProps } from "./Container.js";
|
|
3
3
|
import { RatingProps } from "./Rating.js";
|
|
4
4
|
import { ReadMoreButtonProps } from "./ReadMoreButton.js";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as react0 from "react";
|
|
6
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/ReviewCard/components/index.d.ts
|
|
9
9
|
declare const ReviewCardComponents: {
|
|
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
|
|
|
31
31
|
verifiedBuyerLabel?: string;
|
|
32
32
|
className?: string;
|
|
33
33
|
style?: React.CSSProperties;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => react_jsx_runtime1.JSX.Element;
|
|
35
35
|
Rating: ({
|
|
36
36
|
rating,
|
|
37
37
|
theme,
|
|
38
38
|
style
|
|
39
|
-
}: RatingProps) =>
|
|
39
|
+
}: RatingProps) => react_jsx_runtime1.JSX.Element;
|
|
40
40
|
StarIcon: ({
|
|
41
41
|
theme,
|
|
42
42
|
style,
|
|
@@ -45,7 +45,7 @@ declare const ReviewCardComponents: {
|
|
|
45
45
|
theme: Theme;
|
|
46
46
|
style?: React.CSSProperties;
|
|
47
47
|
className?: string;
|
|
48
|
-
}) =>
|
|
48
|
+
}) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
|
|
49
49
|
ReviewText: ({
|
|
50
50
|
reviewText,
|
|
51
51
|
isExpanded,
|
|
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
|
|
|
56
56
|
isExpanded: boolean;
|
|
57
57
|
className?: string;
|
|
58
58
|
style?: React.CSSProperties;
|
|
59
|
-
}) =>
|
|
59
|
+
}) => react_jsx_runtime1.JSX.Element;
|
|
60
60
|
ReadMoreButton: ({
|
|
61
61
|
isExpanded,
|
|
62
62
|
onToggle,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SalesAgentProductCardProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
|
|
5
5
|
|
|
@@ -30,6 +30,6 @@ declare const SalesAgentProductCard: ({
|
|
|
30
30
|
url,
|
|
31
31
|
target,
|
|
32
32
|
onClick
|
|
33
|
-
}: SalesAgentProductCardProps) =>
|
|
33
|
+
}: SalesAgentProductCardProps) => react_jsx_runtime7.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SalesAgentProductCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SalesAgentProductCardProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SalesAgentProductCard/SalesAgentProductCard.d.ts
|
|
5
5
|
|
|
@@ -30,6 +30,6 @@ declare const SalesAgentProductCard: ({
|
|
|
30
30
|
url,
|
|
31
31
|
target,
|
|
32
32
|
onClick
|
|
33
|
-
}: SalesAgentProductCardProps) =>
|
|
33
|
+
}: SalesAgentProductCardProps) => react_jsx_runtime12.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { SalesAgentProductCard };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
|
-
require('../../Stack/index.cjs');
|
|
5
3
|
const require_Container = require('../../Container/Container.cjs');
|
|
6
4
|
require('../../Container/index.cjs');
|
|
5
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
6
|
+
require('../../Stack/index.cjs');
|
|
7
7
|
const require_types = require('../types/types.cjs');
|
|
8
8
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
9
9
|
const require_useGetProductDescriptionProperties = require('../hooks/useGetProductDescriptionProperties.cjs');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { Stack } from "../../Stack/Stack.js";
|
|
3
|
-
import "../../Stack/index.js";
|
|
4
2
|
import { Container } from "../../Container/Container.js";
|
|
5
3
|
import "../../Container/index.js";
|
|
4
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
5
|
+
import "../../Stack/index.js";
|
|
6
6
|
import { SalesAgentProductCardVariant } from "../types/types.js";
|
|
7
7
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
8
8
|
import { useGetProductDescriptionProperties } from "../hooks/useGetProductDescriptionProperties.js";
|
|
@@ -16,11 +16,11 @@ const Price = ({ previousPrice, currentPrice, pricePrefix, forceShowCurrentPrice
|
|
|
16
16
|
direction: "column",
|
|
17
17
|
children: [(showSalePrice || forceShowCurrentPriceSpace) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
18
18
|
variant: require_index.TypographyVariant.B3_RG,
|
|
19
|
-
color: require_index.TypographyColor.
|
|
19
|
+
color: require_index.TypographyColor.TEXT_PRIMARY,
|
|
20
20
|
children: forceShowCurrentPriceSpace && !showSalePrice ? "ㅤ" : formattedCurrentPrice
|
|
21
21
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
22
22
|
variant: require_index.TypographyVariant.B3_RG,
|
|
23
|
-
color: require_index.TypographyColor.
|
|
23
|
+
color: require_index.TypographyColor.TEXT_PRIMARY,
|
|
24
24
|
className: showSalePrice ? "envive-tw-line-through" : "",
|
|
25
25
|
children: formattedPreviousPrice
|
|
26
26
|
})]
|
|
@@ -15,11 +15,11 @@ const Price = ({ previousPrice, currentPrice, pricePrefix, forceShowCurrentPrice
|
|
|
15
15
|
direction: "column",
|
|
16
16
|
children: [(showSalePrice || forceShowCurrentPriceSpace) && /* @__PURE__ */ jsx(Typography, {
|
|
17
17
|
variant: TypographyVariant.B3_RG,
|
|
18
|
-
color: TypographyColor.
|
|
18
|
+
color: TypographyColor.TEXT_PRIMARY,
|
|
19
19
|
children: forceShowCurrentPriceSpace && !showSalePrice ? "ㅤ" : formattedCurrentPrice
|
|
20
20
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
21
21
|
variant: TypographyVariant.B3_RG,
|
|
22
|
-
color: TypographyColor.
|
|
22
|
+
color: TypographyColor.TEXT_PRIMARY,
|
|
23
23
|
className: showSalePrice ? "envive-tw-line-through" : "",
|
|
24
24
|
children: formattedPreviousPrice
|
|
25
25
|
})]
|
|
@@ -23,7 +23,7 @@ const Rate = ({ rate, numberOfReviews, theme = require_theme.Theme.GLOBAL_CUSTOM
|
|
|
23
23
|
theme
|
|
24
24
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
25
25
|
variant: require_index.TypographyVariant.B3_RG,
|
|
26
|
-
color: require_index.TypographyColor.
|
|
26
|
+
color: require_index.TypographyColor.TEXT_PRIMARY,
|
|
27
27
|
children: formattedRateString
|
|
28
28
|
})]
|
|
29
29
|
});
|
|
@@ -22,7 +22,7 @@ const Rate = ({ rate, numberOfReviews, theme = Theme.GLOBAL_CUSTOM }) => {
|
|
|
22
22
|
theme
|
|
23
23
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
24
24
|
variant: TypographyVariant.B3_RG,
|
|
25
|
-
color: TypographyColor.
|
|
25
|
+
color: TypographyColor.TEXT_PRIMARY,
|
|
26
26
|
children: formattedRateString
|
|
27
27
|
})]
|
|
28
28
|
});
|
|
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.cjs";
|
|
|
4
4
|
import { PriceProps } from "./Price.cjs";
|
|
5
5
|
import { RateProps } from "./Rate.cjs";
|
|
6
6
|
import { ProductImageProps } from "./ProductImage.cjs";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as react0 from "react";
|
|
8
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/SalesAgentProductCard/components/index.d.ts
|
|
11
11
|
declare const SalesAgentProductCardComponents: {
|
|
@@ -23,24 +23,24 @@ declare const SalesAgentProductCardComponents: {
|
|
|
23
23
|
url,
|
|
24
24
|
target,
|
|
25
25
|
onClick
|
|
26
|
-
}: ContainerProps) =>
|
|
26
|
+
}: ContainerProps) => react_jsx_runtime2.JSX.Element;
|
|
27
27
|
ProductName: ({
|
|
28
28
|
label,
|
|
29
29
|
theme,
|
|
30
30
|
style,
|
|
31
31
|
className
|
|
32
|
-
}: ProductNameProps) =>
|
|
32
|
+
}: ProductNameProps) => react_jsx_runtime2.JSX.Element;
|
|
33
33
|
Price: ({
|
|
34
34
|
previousPrice,
|
|
35
35
|
currentPrice,
|
|
36
36
|
pricePrefix,
|
|
37
37
|
forceShowCurrentPriceSpace
|
|
38
|
-
}: PriceProps) =>
|
|
38
|
+
}: PriceProps) => react_jsx_runtime2.JSX.Element;
|
|
39
39
|
Rate: ({
|
|
40
40
|
rate,
|
|
41
41
|
numberOfReviews,
|
|
42
42
|
theme
|
|
43
|
-
}: RateProps) =>
|
|
43
|
+
}: RateProps) => react_jsx_runtime2.JSX.Element;
|
|
44
44
|
ProductImage: ({
|
|
45
45
|
src,
|
|
46
46
|
alt,
|
|
@@ -48,14 +48,14 @@ declare const SalesAgentProductCardComponents: {
|
|
|
48
48
|
aspectRatio,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: ProductImageProps) =>
|
|
51
|
+
}: ProductImageProps) => react_jsx_runtime2.JSX.Element;
|
|
52
52
|
StarIcon: ({
|
|
53
53
|
theme,
|
|
54
54
|
style
|
|
55
55
|
}: {
|
|
56
56
|
theme: Theme;
|
|
57
57
|
style?: React.CSSProperties;
|
|
58
|
-
}) =>
|
|
58
|
+
}) => react0.ReactElement<react0.SVGProps<SVGSVGElement>, string | react0.JSXElementConstructor<any>>;
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SalesAgentProductCardComponents };
|
|
@@ -4,8 +4,8 @@ import { ProductNameProps } from "./ProductName.js";
|
|
|
4
4
|
import { PriceProps } from "./Price.js";
|
|
5
5
|
import { RateProps } from "./Rate.js";
|
|
6
6
|
import { ProductImageProps } from "./ProductImage.js";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
7
|
+
import * as react2 from "react";
|
|
8
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/SalesAgentProductCard/components/index.d.ts
|
|
11
11
|
declare const SalesAgentProductCardComponents: {
|
|
@@ -23,24 +23,24 @@ declare const SalesAgentProductCardComponents: {
|
|
|
23
23
|
url,
|
|
24
24
|
target,
|
|
25
25
|
onClick
|
|
26
|
-
}: ContainerProps) =>
|
|
26
|
+
}: ContainerProps) => react_jsx_runtime7.JSX.Element;
|
|
27
27
|
ProductName: ({
|
|
28
28
|
label,
|
|
29
29
|
theme,
|
|
30
30
|
style,
|
|
31
31
|
className
|
|
32
|
-
}: ProductNameProps) =>
|
|
32
|
+
}: ProductNameProps) => react_jsx_runtime7.JSX.Element;
|
|
33
33
|
Price: ({
|
|
34
34
|
previousPrice,
|
|
35
35
|
currentPrice,
|
|
36
36
|
pricePrefix,
|
|
37
37
|
forceShowCurrentPriceSpace
|
|
38
|
-
}: PriceProps) =>
|
|
38
|
+
}: PriceProps) => react_jsx_runtime7.JSX.Element;
|
|
39
39
|
Rate: ({
|
|
40
40
|
rate,
|
|
41
41
|
numberOfReviews,
|
|
42
42
|
theme
|
|
43
|
-
}: RateProps) =>
|
|
43
|
+
}: RateProps) => react_jsx_runtime7.JSX.Element;
|
|
44
44
|
ProductImage: ({
|
|
45
45
|
src,
|
|
46
46
|
alt,
|
|
@@ -48,14 +48,14 @@ declare const SalesAgentProductCardComponents: {
|
|
|
48
48
|
aspectRatio,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: ProductImageProps) =>
|
|
51
|
+
}: ProductImageProps) => react_jsx_runtime7.JSX.Element;
|
|
52
52
|
StarIcon: ({
|
|
53
53
|
theme,
|
|
54
54
|
style
|
|
55
55
|
}: {
|
|
56
56
|
theme: Theme;
|
|
57
57
|
style?: React.CSSProperties;
|
|
58
|
-
}) =>
|
|
58
|
+
}) => react2.ReactElement<react2.SVGProps<SVGSVGElement>, string | react2.JSXElementConstructor<any>>;
|
|
59
59
|
};
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SalesAgentProductCardComponents };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
3
|
require('../Tokens/index.cjs');
|
|
4
|
+
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
5
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
6
6
|
require('../PromptButton/index.cjs');
|
|
7
7
|
const require_utils_useCheckIsMobile = require('../utils/useCheckIsMobile.cjs');
|
|
@@ -23,10 +23,11 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
23
23
|
const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEventProps }) => {
|
|
24
24
|
const { id, testId, className, style, pageVariant, countKey } = baseProps ?? {};
|
|
25
25
|
const { theme = require_theme.Theme.GLOBAL_CUSTOM, variant = require_types$1.WidgetWrapperVariant.CARD_WITH_BORDER, kind = require_types$3.WidgetKind.STATIC, hexCardColor, promptCarouselRows = require_PromptCarousel_types_types.PromptCarouselRows.TWO_ON_MOBILE_ONE_ON_DESKTOP, hideImage, imageGalleryLayout, hideTextField, primaryButtonVariant = require_PromptButton_types_index.PromptButtonVariant.DARK, secondaryButtonVariant = require_PromptButton_types_index.PromptButtonVariant.LIGHT, hideLogo, dynamicLayout } = widgetStyleProps ?? {};
|
|
26
|
-
const { customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
|
|
27
|
-
const
|
|
26
|
+
const { numberOfCustomersText, customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
|
|
27
|
+
const socialProofCounter = require_useSocialProofCount.useSocialProofCount({
|
|
28
28
|
pageVariant,
|
|
29
29
|
countKey,
|
|
30
|
+
numberOfCustomersText,
|
|
30
31
|
id
|
|
31
32
|
});
|
|
32
33
|
const { handlePrimaryButtonClick, handlePrimaryButtonHover, handleSecondaryButtonClick, handleSecondaryButtonHover, handleSecondaryButtonDrag, handleSecondaryButtonMouseDown, handleSecondaryButtonMouseUp, handleSecondaryButtonTouchStart, handleSecondaryButtonTouchEnd, handleTextFieldClick, onTranscriptionStarted, onTranscriptionCompleted } = widgetEventProps ?? {};
|
|
@@ -42,7 +43,7 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
|
|
|
42
43
|
const isFourHorizontalLayout = (imageGalleryLayout === require_types$2.ImageGalleryLayout.FOUR_HORIZONTAL || isMobile && imageGalleryLayout === require_types$2.ImageGalleryLayout.FOUR_GRID) && !hasDynamicLayout;
|
|
43
44
|
const headline = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.Headline, {
|
|
44
45
|
theme: finalTheme,
|
|
45
|
-
socialProofCounter
|
|
46
|
+
socialProofCounter,
|
|
46
47
|
socialProofHeadline: customerQueryText,
|
|
47
48
|
primaryPromptButtonText: primaryButtonText,
|
|
48
49
|
primaryPromptButtonVariant: primaryButtonVariant,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialProofProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SocialProof/SocialProof.d.ts
|
|
5
5
|
declare const SocialProof: ({
|
|
@@ -7,6 +7,6 @@ declare const SocialProof: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: SocialProofProps) =>
|
|
10
|
+
}: SocialProofProps) => react_jsx_runtime11.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialProofProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SocialProof/SocialProof.d.ts
|
|
5
5
|
declare const SocialProof: ({
|
|
@@ -7,6 +7,6 @@ declare const SocialProof: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: SocialProofProps) =>
|
|
10
|
+
}: SocialProofProps) => react_jsx_runtime5.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
2
|
import "../Tokens/index.js";
|
|
3
|
+
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
4
4
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
5
5
|
import "../PromptButton/index.js";
|
|
6
6
|
import { useCheckIsMobile } from "../utils/useCheckIsMobile.js";
|
|
@@ -22,10 +22,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
22
22
|
const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEventProps }) => {
|
|
23
23
|
const { id, testId, className, style, pageVariant, countKey } = baseProps ?? {};
|
|
24
24
|
const { theme = Theme.GLOBAL_CUSTOM, variant = WidgetWrapperVariant.CARD_WITH_BORDER, kind = WidgetKind.STATIC, hexCardColor, promptCarouselRows = PromptCarouselRows.TWO_ON_MOBILE_ONE_ON_DESKTOP, hideImage, imageGalleryLayout, hideTextField, primaryButtonVariant = PromptButtonVariant.DARK, secondaryButtonVariant = PromptButtonVariant.LIGHT, hideLogo, dynamicLayout } = widgetStyleProps ?? {};
|
|
25
|
-
const { customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
|
|
26
|
-
const
|
|
25
|
+
const { numberOfCustomersText, customerQueryText, primaryButtonText, secondaryButtonTitleText, secondaryButtonTexts, textFieldPlaceholderText, images, logoSrc, titleLabel, voiceInputEnabled } = widgetContentProps ?? {};
|
|
26
|
+
const socialProofCounter = useSocialProofCount({
|
|
27
27
|
pageVariant,
|
|
28
28
|
countKey,
|
|
29
|
+
numberOfCustomersText,
|
|
29
30
|
id
|
|
30
31
|
});
|
|
31
32
|
const { handlePrimaryButtonClick, handlePrimaryButtonHover, handleSecondaryButtonClick, handleSecondaryButtonHover, handleSecondaryButtonDrag, handleSecondaryButtonMouseDown, handleSecondaryButtonMouseUp, handleSecondaryButtonTouchStart, handleSecondaryButtonTouchEnd, handleTextFieldClick, onTranscriptionStarted, onTranscriptionCompleted } = widgetEventProps ?? {};
|
|
@@ -41,7 +42,7 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
|
|
|
41
42
|
const isFourHorizontalLayout = (imageGalleryLayout === ImageGalleryLayout.FOUR_HORIZONTAL || isMobile && imageGalleryLayout === ImageGalleryLayout.FOUR_GRID) && !hasDynamicLayout;
|
|
42
43
|
const headline = /* @__PURE__ */ jsx(SocialProofComponents.Headline, {
|
|
43
44
|
theme: finalTheme,
|
|
44
|
-
socialProofCounter
|
|
45
|
+
socialProofCounter,
|
|
45
46
|
socialProofHeadline: customerQueryText,
|
|
46
47
|
primaryPromptButtonText: primaryButtonText,
|
|
47
48
|
primaryPromptButtonVariant: primaryButtonVariant,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const
|
|
4
|
-
require('../../Stack/index.cjs');
|
|
3
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
5
4
|
const require_Container = require('../../Container/Container.cjs');
|
|
6
5
|
require('../../Container/index.cjs');
|
|
6
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
|
+
require('../../Stack/index.cjs');
|
|
7
8
|
const require_index = require('../../Typography/types/index.cjs');
|
|
8
9
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
9
10
|
require('../../Typography/index.cjs');
|
|
10
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
11
11
|
const require_PromptButton_types_index = require('../../PromptButton/types/index.cjs');
|
|
12
12
|
const require_PromptButton = require('../../PromptButton/PromptButton.cjs');
|
|
13
13
|
require('../../PromptButton/index.cjs');
|
|
@@ -27,7 +27,7 @@ const Headline = (0, react.forwardRef)(({ theme = require_theme.Theme.GLOBAL_CUS
|
|
|
27
27
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
28
28
|
ref,
|
|
29
29
|
gap: "4",
|
|
30
|
-
className: (0, classnames.default)("envive-tw-h-fit", className),
|
|
30
|
+
className: (0, classnames.default)("envive-tw-h-fit envive-tw-overflow-x-auto", className),
|
|
31
31
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Stack.Stack, {
|
|
32
32
|
gap: "2",
|
|
33
33
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Container.Container, { children: [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import {
|
|
3
|
-
import "../../Stack/index.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
4
3
|
import { Container } from "../../Container/Container.js";
|
|
5
4
|
import "../../Container/index.js";
|
|
5
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
6
|
+
import "../../Stack/index.js";
|
|
6
7
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
7
8
|
import { Typography } from "../../Typography/Typography.js";
|
|
8
9
|
import "../../Typography/index.js";
|
|
9
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
10
10
|
import { PromptButtonVariant } from "../../PromptButton/types/index.js";
|
|
11
11
|
import { PromptButton } from "../../PromptButton/PromptButton.js";
|
|
12
12
|
import "../../PromptButton/index.js";
|
|
@@ -25,7 +25,7 @@ const Headline = forwardRef(({ theme = Theme.GLOBAL_CUSTOM, className, isLoading
|
|
|
25
25
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
26
26
|
ref,
|
|
27
27
|
gap: "4",
|
|
28
|
-
className: classNames("envive-tw-h-fit", className),
|
|
28
|
+
className: classNames("envive-tw-h-fit envive-tw-overflow-x-auto", className),
|
|
29
29
|
children: [/* @__PURE__ */ jsx(Stack, {
|
|
30
30
|
gap: "2",
|
|
31
31
|
children: /* @__PURE__ */ jsxs(Container, { children: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_breakpoints = require('../../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
3
|
+
require('../../Tokens/index.cjs');
|
|
3
4
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
5
|
require('../../Stack/index.cjs');
|
|
5
|
-
require('../../Tokens/index.cjs');
|
|
6
6
|
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
7
7
|
const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
|
|
8
8
|
const require_types = require('../../ImageGallery/types/types.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { screensBreakpointsVariables } from "../../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
2
|
+
import "../../Tokens/index.js";
|
|
2
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
4
|
import "../../Stack/index.js";
|
|
4
|
-
import "../../Tokens/index.js";
|
|
5
5
|
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
6
6
|
import { useGetContentSize } from "../../utils/useGetContentSize.js";
|
|
7
7
|
import { ImageGalleryLayout } from "../../ImageGallery/types/types.js";
|
|
@@ -4,7 +4,6 @@ require('../../Stack/index.cjs');
|
|
|
4
4
|
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
5
5
|
const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
|
|
6
6
|
const require_types = require('../../ImageGallery/types/types.cjs');
|
|
7
|
-
const require_functions = require('../utils/functions.cjs');
|
|
8
7
|
const require_ImageGallery = require('./ImageGallery.cjs');
|
|
9
8
|
const require_types$1 = require('../types/types.cjs');
|
|
10
9
|
let react = require("react");
|
|
@@ -15,7 +14,7 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
|
|
|
15
14
|
const { isMobile } = require_utils_useCheckIsMobile.useCheckIsMobile("sm");
|
|
16
15
|
const isNarrowLayout = dynamicLayout === require_types$1.DynamicLayout.NARROW || isMobile && dynamicLayout !== require_types$1.DynamicLayout.WIDE;
|
|
17
16
|
const { height, ref } = require_useGetContentSize.useGetContentSize({ heightDefault: 245 });
|
|
18
|
-
const imageGalleryWidth =
|
|
17
|
+
const imageGalleryWidth = 80;
|
|
19
18
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
20
19
|
gap: "6",
|
|
21
20
|
direction: isNarrowLayout ? "column" : "row",
|
|
@@ -31,11 +30,11 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
|
|
|
31
30
|
styleImageGallery: {
|
|
32
31
|
width: (() => {
|
|
33
32
|
if (!isNarrowLayout && isMobile) return "100%";
|
|
34
|
-
|
|
33
|
+
return `${imageGalleryWidth}px`;
|
|
35
34
|
})(),
|
|
36
35
|
maxWidth: (() => {
|
|
37
36
|
if (!isNarrowLayout && isMobile) return "100%";
|
|
38
|
-
|
|
37
|
+
return `${imageGalleryWidth}px`;
|
|
39
38
|
})()
|
|
40
39
|
},
|
|
41
40
|
images,
|
|
@@ -3,7 +3,6 @@ import "../../Stack/index.js";
|
|
|
3
3
|
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
4
4
|
import { useGetContentSize } from "../../utils/useGetContentSize.js";
|
|
5
5
|
import { ImageGalleryLayout } from "../../ImageGallery/types/types.js";
|
|
6
|
-
import { calculateWidthImageGallery } from "../utils/functions.js";
|
|
7
6
|
import { ImageGallery } from "./ImageGallery.js";
|
|
8
7
|
import { DynamicLayout } from "../types/types.js";
|
|
9
8
|
import { cloneElement } from "react";
|
|
@@ -14,7 +13,7 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
|
|
|
14
13
|
const { isMobile } = useCheckIsMobile("sm");
|
|
15
14
|
const isNarrowLayout = dynamicLayout === DynamicLayout.NARROW || isMobile && dynamicLayout !== DynamicLayout.WIDE;
|
|
16
15
|
const { height, ref } = useGetContentSize({ heightDefault: 245 });
|
|
17
|
-
const imageGalleryWidth =
|
|
16
|
+
const imageGalleryWidth = 80;
|
|
18
17
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
19
18
|
gap: "6",
|
|
20
19
|
direction: isNarrowLayout ? "column" : "row",
|
|
@@ -30,11 +29,11 @@ const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline,
|
|
|
30
29
|
styleImageGallery: {
|
|
31
30
|
width: (() => {
|
|
32
31
|
if (!isNarrowLayout && isMobile) return "100%";
|
|
33
|
-
|
|
32
|
+
return `${imageGalleryWidth}px`;
|
|
34
33
|
})(),
|
|
35
34
|
maxWidth: (() => {
|
|
36
35
|
if (!isNarrowLayout && isMobile) return "100%";
|
|
37
|
-
|
|
36
|
+
return `${imageGalleryWidth}px`;
|
|
38
37
|
})()
|
|
39
38
|
},
|
|
40
39
|
images,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
3
4
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
5
|
require('../../Stack/index.cjs');
|
|
5
6
|
const require_index = require('../../Typography/types/index.cjs');
|
|
6
7
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
7
8
|
require('../../Typography/index.cjs');
|
|
8
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_PromptButton_types_index = require('../../PromptButton/types/index.cjs');
|
|
10
10
|
require('../../PromptButton/index.cjs');
|
|
11
11
|
const require_PromptCarousel = require('../../PromptCarousel/PromptCarousel.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
4
|
import "../../Stack/index.js";
|
|
4
5
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
5
6
|
import { Typography } from "../../Typography/Typography.js";
|
|
6
7
|
import "../../Typography/index.js";
|
|
7
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { PromptButtonVariant } from "../../PromptButton/types/index.js";
|
|
9
9
|
import "../../PromptButton/index.js";
|
|
10
10
|
import { PromptCarousel } from "../../PromptCarousel/PromptCarousel.js";
|
|
@@ -6,7 +6,8 @@ let react = require("react");
|
|
|
6
6
|
const RANDOM_NUMBER_MIN = 100;
|
|
7
7
|
const RANDOM_NUMBER_MAX = 200;
|
|
8
8
|
const SOCIAL_PROOF_COUNT_KEY = "v3_social_proof_values";
|
|
9
|
-
const
|
|
9
|
+
const DEFAULT_CUSTOMER_TEXT = "{count} customers";
|
|
10
|
+
const useSocialProofCount = ({ pageVariant, countKey, numberOfCustomersText = DEFAULT_CUSTOMER_TEXT, id }) => {
|
|
10
11
|
const [customerCount, setCustomerCount] = (0, react.useState)(() => Math.floor(Math.random() * (RANDOM_NUMBER_MAX - RANDOM_NUMBER_MIN + 1) + RANDOM_NUMBER_MIN));
|
|
11
12
|
(0, react.useEffect)(() => {
|
|
12
13
|
const variant = pageVariant || require_types.PageVariant.PageVisit;
|
|
@@ -40,7 +41,7 @@ const useSocialProofCount = ({ pageVariant, countKey, id }) => {
|
|
|
40
41
|
countKey,
|
|
41
42
|
id
|
|
42
43
|
]);
|
|
43
|
-
return
|
|
44
|
+
return (numberOfCustomersText.includes("{count}") ? numberOfCustomersText : DEFAULT_CUSTOMER_TEXT).replace("{count}", customerCount.toString());
|
|
44
45
|
};
|
|
45
46
|
|
|
46
47
|
//#endregion
|
|
@@ -3,12 +3,14 @@ import { PageVariant } from "../types/types.cjs";
|
|
|
3
3
|
//#region src/components/SocialProof/hooks/useSocialProofCount.d.ts
|
|
4
4
|
interface UseSocialProofCountParams {
|
|
5
5
|
pageVariant?: PageVariant;
|
|
6
|
+
numberOfCustomersText?: string;
|
|
6
7
|
countKey?: string;
|
|
7
8
|
id?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const useSocialProofCount: ({
|
|
10
11
|
pageVariant,
|
|
11
12
|
countKey,
|
|
13
|
+
numberOfCustomersText,
|
|
12
14
|
id
|
|
13
15
|
}: UseSocialProofCountParams) => string;
|
|
14
16
|
//#endregion
|
|
@@ -3,12 +3,14 @@ import { PageVariant } from "../types/types.js";
|
|
|
3
3
|
//#region src/components/SocialProof/hooks/useSocialProofCount.d.ts
|
|
4
4
|
interface UseSocialProofCountParams {
|
|
5
5
|
pageVariant?: PageVariant;
|
|
6
|
+
numberOfCustomersText?: string;
|
|
6
7
|
countKey?: string;
|
|
7
8
|
id?: string;
|
|
8
9
|
}
|
|
9
10
|
declare const useSocialProofCount: ({
|
|
10
11
|
pageVariant,
|
|
11
12
|
countKey,
|
|
13
|
+
numberOfCustomersText,
|
|
12
14
|
id
|
|
13
15
|
}: UseSocialProofCountParams) => string;
|
|
14
16
|
//#endregion
|
|
@@ -5,7 +5,8 @@ import { useEffect, useState } from "react";
|
|
|
5
5
|
const RANDOM_NUMBER_MIN = 100;
|
|
6
6
|
const RANDOM_NUMBER_MAX = 200;
|
|
7
7
|
const SOCIAL_PROOF_COUNT_KEY = "v3_social_proof_values";
|
|
8
|
-
const
|
|
8
|
+
const DEFAULT_CUSTOMER_TEXT = "{count} customers";
|
|
9
|
+
const useSocialProofCount = ({ pageVariant, countKey, numberOfCustomersText = DEFAULT_CUSTOMER_TEXT, id }) => {
|
|
9
10
|
const [customerCount, setCustomerCount] = useState(() => Math.floor(Math.random() * (RANDOM_NUMBER_MAX - RANDOM_NUMBER_MIN + 1) + RANDOM_NUMBER_MIN));
|
|
10
11
|
useEffect(() => {
|
|
11
12
|
const variant = pageVariant || PageVariant.PageVisit;
|
|
@@ -39,7 +40,7 @@ const useSocialProofCount = ({ pageVariant, countKey, id }) => {
|
|
|
39
40
|
countKey,
|
|
40
41
|
id
|
|
41
42
|
]);
|
|
42
|
-
return
|
|
43
|
+
return (numberOfCustomersText.includes("{count}") ? numberOfCustomersText : DEFAULT_CUSTOMER_TEXT).replace("{count}", customerCount.toString());
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
//#endregion
|
|
@@ -71,6 +71,11 @@ type WidgetContentProps = {
|
|
|
71
71
|
* Displayed in the headline section alongside the customer count.
|
|
72
72
|
*/
|
|
73
73
|
customerQueryText?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Text displaying how many customers asked the customerQueryText question (e.g., "123 customers")
|
|
76
|
+
* Utilizes replacement to replace the value {count} with the replaced value
|
|
77
|
+
*/
|
|
78
|
+
numberOfCustomersText?: string;
|
|
74
79
|
/**
|
|
75
80
|
* Text label for the primary prompt button.
|
|
76
81
|
* Displayed prominently in the headline section.
|
|
@@ -71,6 +71,11 @@ type WidgetContentProps = {
|
|
|
71
71
|
* Displayed in the headline section alongside the customer count.
|
|
72
72
|
*/
|
|
73
73
|
customerQueryText?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Text displaying how many customers asked the customerQueryText question (e.g., "123 customers")
|
|
76
|
+
* Utilizes replacement to replace the value {count} with the replaced value
|
|
77
|
+
*/
|
|
78
|
+
numberOfCustomersText?: string;
|
|
74
79
|
/**
|
|
75
80
|
* Text label for the primary prompt button.
|
|
76
81
|
* Displayed prominently in the headline section.
|