@envive-ai/react-toolkit-v3 0.3.8 → 0.3.10
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.cjs +1 -0
- package/dist/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/AnimatedText/AnimatedText.js +1 -0
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +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 +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +1 -1
- package/dist/ChatFooter/components/Layout.cjs +2 -2
- package/dist/ChatFooter/components/Layout.js +2 -2
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- 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/ChatHeader/hooks/useGetCloseButtonProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +1 -1
- package/dist/ChatPreview/ChatPreview.cjs +14 -4
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +14 -4
- package/dist/ChatPreview/types/types.d.cts +5 -4
- package/dist/ChatPreview/types/types.d.ts +5 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +14 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +14 -4
- 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/ChatPreviewComparison/types/types.d.cts +4 -4
- package/dist/ChatPreviewComparison/types/types.d.ts +4 -4
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/Container/Container.d.cts +5 -5
- package/dist/Container/Container.d.ts +176 -176
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- 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/FloatingChat/FloatingChat.cjs +3 -2
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +3 -2
- package/dist/FloatingChat/components/AgentMessage.cjs +9 -5
- package/dist/FloatingChat/components/AgentMessage.js +9 -5
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +13 -13
- package/dist/FloatingChat/components/Layout.js +13 -13
- package/dist/FloatingChat/components/ModalSheet.cjs +5 -6
- package/dist/FloatingChat/components/ModalSheet.js +5 -6
- package/dist/FloatingChat/components/ReviewCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.js +2 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +0 -3
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +0 -3
- 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 +10 -6
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +5 -2
- package/dist/ProductCard/components/Header.cjs +2 -2
- package/dist/ProductCard/components/Header.js +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.cjs +3 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.js +3 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +7 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +8 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +53 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +53 -3
- package/dist/PromptCarousel/PromptCarousel.cjs +71 -33
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +73 -35
- package/dist/PromptCarousel/hooks/index.cjs +2 -4
- package/dist/PromptCarousel/hooks/index.js +2 -4
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.cjs +91 -0
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.js +90 -0
- package/dist/PromptCarousel/hooks/useScrollSync.cjs +65 -0
- package/dist/PromptCarousel/hooks/useScrollSync.js +64 -0
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- 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/index.d.cts +6 -6
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +1 -1
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +1 -1
- package/dist/SocialProof/components/Headline.cjs +3 -3
- package/dist/SocialProof/components/Headline.js +3 -3
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.js +1 -1
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/TextField/utils/getIconColor.cjs +1 -1
- package/dist/TextField/utils/getIconColor.js +1 -1
- package/dist/TextField/utils/getSendIconElement.cjs +1 -1
- package/dist/TextField/utils/getSendIconElement.js +1 -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 +11 -6
- package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
- package/dist/WidgetTextField/WidgetTextField.js +7 -2
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.cjs +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +11 -9
- package/dist/WidgetTextField/components/Icon.js +11 -9
- package/dist/WidgetTextField/types/types.d.cts +3 -0
- package/dist/WidgetTextField/types/types.d.ts +3 -0
- 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/dist/utils/CustomIcon.cjs +1 -1
- package/dist/utils/CustomIcon.js +1 -1
- package/dist/utils/useDragToScroll.cjs +68 -0
- package/dist/utils/useDragToScroll.js +67 -0
- package/package.json +1 -1
- package/src/components/AnimatedText/AnimatedText.tsx +2 -0
- package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
- package/src/components/ChatPreview/ChatPreview.tsx +20 -3
- package/src/components/ChatPreview/types/types.ts +5 -4
- package/src/components/ChatPreviewComparison/ChatPreviewComparison.tsx +20 -3
- package/src/components/ChatPreviewComparison/types/types.ts +4 -4
- package/src/components/FloatingChat/FloatingChat.tsx +3 -2
- package/src/components/FloatingChat/components/AgentMessage.tsx +1 -0
- package/src/components/FloatingChat/components/Layout.tsx +7 -2
- package/src/components/FloatingChat/components/ModalSheet.tsx +5 -7
- package/src/components/FloatingChat/components/ReviewCardsCarousel.tsx +3 -0
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +0 -3
- package/src/components/ProductCard/ProductCard.tsx +12 -1
- package/src/components/ProductCard/components/Header.tsx +10 -8
- package/src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx +6 -3
- package/src/components/PromptButtonCarouselWithImage/components/Layout.tsx +13 -4
- package/src/components/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.tsx +63 -20
- package/src/components/PromptCarousel/PromptCarousel.tsx +89 -51
- package/src/components/PromptCarousel/hooks/index.ts +2 -4
- package/src/components/PromptCarousel/hooks/useCoordinatedScrollAnimation.ts +115 -0
- package/src/components/PromptCarousel/hooks/useHorizontalScrollAnimation.ts +71 -78
- package/src/components/PromptCarousel/hooks/useScrollSync.ts +83 -0
- package/src/components/TextField/utils/getIconColor.ts +1 -1
- package/src/components/TextField/utils/getSendIconElement.tsx +3 -1
- package/src/components/WidgetTextField/WidgetTextField.tsx +9 -1
- package/src/components/WidgetTextField/components/FakeTextInput.tsx +6 -2
- package/src/components/WidgetTextField/components/Icon.tsx +44 -9
- package/src/components/WidgetTextField/types/types.ts +3 -0
- package/src/components/utils/CustomIcon.tsx +1 -1
- package/src/components/utils/useDragToScroll.ts +83 -0
- package/dist/PromptCarousel/components/BlockScrollContainer.cjs +0 -23
- package/dist/PromptCarousel/components/BlockScrollContainer.js +0 -21
- package/dist/PromptCarousel/components/ButtonContainerRow.cjs +0 -34
- package/dist/PromptCarousel/components/ButtonContainerRow.js +0 -32
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.cjs +0 -45
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.js +0 -44
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.cjs +0 -33
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.js +0 -32
- package/dist/PromptCarousel/components/index.cjs +0 -13
- package/dist/PromptCarousel/components/index.js +0 -13
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.cjs +0 -79
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.js +0 -78
- package/dist/PromptCarousel/hooks/useCarouselAnimation.cjs +0 -23
- package/dist/PromptCarousel/hooks/useCarouselAnimation.js +0 -22
- package/dist/PromptCarousel/hooks/useCarouselRefs.cjs +0 -20
- package/dist/PromptCarousel/hooks/useCarouselRefs.js +0 -19
- package/dist/PromptCarousel/hooks/useGetScrollProperties.cjs +0 -18
- package/dist/PromptCarousel/hooks/useGetScrollProperties.js +0 -17
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.cjs +0 -78
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.js +0 -77
- package/src/components/PromptCarousel/components/BlockScrollContainer.tsx +0 -34
- package/src/components/PromptCarousel/components/ButtonContainerRow.tsx +0 -46
- package/src/components/PromptCarousel/components/CarouselContentWithBlockScroll.tsx +0 -83
- package/src/components/PromptCarousel/components/CarouselContentWithRowScroll.tsx +0 -71
- package/src/components/PromptCarousel/components/index.ts +0 -9
- package/src/components/PromptCarousel/hooks/useButtonScrollPosition.ts +0 -128
- package/src/components/PromptCarousel/hooks/useCarouselAnimation.ts +0 -47
- package/src/components/PromptCarousel/hooks/useCarouselRefs.ts +0 -27
|
@@ -33,11 +33,15 @@ const AgentMessage = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, agentName, ty
|
|
|
33
33
|
}, msg.id);
|
|
34
34
|
return null;
|
|
35
35
|
});
|
|
36
|
-
if (type === __envive_ai_react_hooks_application_models.MessageType.Review)
|
|
37
|
-
reviews
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
if (type === __envive_ai_react_hooks_application_models.MessageType.Review) {
|
|
37
|
+
const reviews = require_functions.getCleanReviews(messages);
|
|
38
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ReviewCardsCarousel.ReviewCardsCarousel, {
|
|
39
|
+
reviews,
|
|
40
|
+
theme: finalTheme,
|
|
41
|
+
showVerifiedBuyer,
|
|
42
|
+
hideNavigation: reviews.length === 1
|
|
43
|
+
});
|
|
44
|
+
}
|
|
41
45
|
if (type === __envive_ai_react_hooks_application_models.MessageType.Product) {
|
|
42
46
|
const products = require_functions.getCleanProducts(messages);
|
|
43
47
|
if (products.length === 1 && neverShowSingleProductCards) return null;
|
|
@@ -32,11 +32,15 @@ const AgentMessage = ({ theme = Theme.GLOBAL_CUSTOM, agentName, type, messages,
|
|
|
32
32
|
}, msg.id);
|
|
33
33
|
return null;
|
|
34
34
|
});
|
|
35
|
-
if (type === MessageType.Review)
|
|
36
|
-
reviews
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
if (type === MessageType.Review) {
|
|
36
|
+
const reviews = getCleanReviews(messages);
|
|
37
|
+
return /* @__PURE__ */ jsx(ReviewCardsCarousel, {
|
|
38
|
+
reviews,
|
|
39
|
+
theme: finalTheme,
|
|
40
|
+
showVerifiedBuyer,
|
|
41
|
+
hideNavigation: reviews.length === 1
|
|
42
|
+
});
|
|
43
|
+
}
|
|
40
44
|
if (type === MessageType.Product) {
|
|
41
45
|
const products = getCleanProducts(messages);
|
|
42
46
|
if (products.length === 1 && neverShowSingleProductCards) return null;
|
|
@@ -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');
|
|
4
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
4
|
require('../../Stack/index.cjs');
|
|
6
5
|
const require_index = require('../../Typography/types/index.cjs');
|
|
7
6
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
8
7
|
require('../../Typography/index.cjs');
|
|
8
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_index$1 = require('../../Message/types/index.cjs');
|
|
10
10
|
const require_Message = require('../../Message/Message.cjs');
|
|
11
11
|
require('../../Message/index.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
3
|
import "../../Stack/index.js";
|
|
5
4
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
6
5
|
import { Typography } from "../../Typography/Typography.js";
|
|
7
6
|
import "../../Typography/index.js";
|
|
7
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { MessageVariant } from "../../Message/types/index.js";
|
|
9
9
|
import { Message } from "../../Message/Message.js";
|
|
10
10
|
import "../../Message/index.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
-
require('../../Container/index.cjs');
|
|
6
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
7
4
|
require('../../Stack/index.cjs');
|
|
5
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
6
|
+
require('../../Container/index.cjs');
|
|
7
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let classnames = require("classnames");
|
|
@@ -34,16 +34,16 @@ const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOB
|
|
|
34
34
|
className: "envive-tw-h-full",
|
|
35
35
|
direction: "column",
|
|
36
36
|
justify: "between",
|
|
37
|
-
children: [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
]
|
|
37
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
38
|
+
direction: "column",
|
|
39
|
+
gap: "0",
|
|
40
|
+
children: [welcomeMessage, disclaimer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: disclaimer })]
|
|
41
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
42
|
+
direction: "column",
|
|
43
|
+
gap: "0",
|
|
44
|
+
className: (0, classnames.default)((!hasWelcomeMessage || hasWelcomeMessage && finalTheme === require_theme.Theme.STANDARD) && "envive-tw-pt-4", !hasAnswerSuggestions && !isFloatingFooterLayout && "envive-tw-pb-4", isFloatingFooterLayout && "envive-tw-pb-[180px]"),
|
|
45
|
+
children: [chatMessages, answerSuggestions]
|
|
46
|
+
})]
|
|
47
47
|
})
|
|
48
48
|
}),
|
|
49
49
|
footer && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
|
-
import { Container } from "../../Container/Container.js";
|
|
4
|
-
import "../../Container/index.js";
|
|
5
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
6
3
|
import "../../Stack/index.js";
|
|
4
|
+
import { Container } from "../../Container/Container.js";
|
|
5
|
+
import "../../Container/index.js";
|
|
6
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { isValidElement } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import classNames from "classnames";
|
|
@@ -32,16 +32,16 @@ const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, hea
|
|
|
32
32
|
className: "envive-tw-h-full",
|
|
33
33
|
direction: "column",
|
|
34
34
|
justify: "between",
|
|
35
|
-
children: [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]
|
|
35
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
36
|
+
direction: "column",
|
|
37
|
+
gap: "0",
|
|
38
|
+
children: [welcomeMessage, disclaimer && /* @__PURE__ */ jsx("div", { children: disclaimer })]
|
|
39
|
+
}), /* @__PURE__ */ jsxs(Stack, {
|
|
40
|
+
direction: "column",
|
|
41
|
+
gap: "0",
|
|
42
|
+
className: classNames((!hasWelcomeMessage || hasWelcomeMessage && finalTheme === Theme.STANDARD) && "envive-tw-pt-4", !hasAnswerSuggestions && !isFloatingFooterLayout && "envive-tw-pb-4", isFloatingFooterLayout && "envive-tw-pb-[180px]"),
|
|
43
|
+
children: [chatMessages, answerSuggestions]
|
|
44
|
+
})]
|
|
45
45
|
})
|
|
46
46
|
}),
|
|
47
47
|
footer && /* @__PURE__ */ jsx("div", {
|
|
@@ -7,7 +7,6 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
7
7
|
let framer_motion = require("framer-motion");
|
|
8
8
|
|
|
9
9
|
//#region src/components/FloatingChat/components/ModalSheet.tsx
|
|
10
|
-
const BOTTOM_OFFSET = 100;
|
|
11
10
|
const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], initSnap = 0, handler, animation = {
|
|
12
11
|
type: "spring",
|
|
13
12
|
stiffness: 300,
|
|
@@ -132,7 +131,7 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
132
131
|
},
|
|
133
132
|
initial: { y: swipeviewHeightPx },
|
|
134
133
|
animate: { y: initSnapInPixels },
|
|
135
|
-
exit: { y: swipeviewHeightPx
|
|
134
|
+
exit: { y: swipeviewHeightPx },
|
|
136
135
|
transition: animation,
|
|
137
136
|
onDragEnd: handleDragEnd,
|
|
138
137
|
onClick: expandToFullView,
|
|
@@ -152,16 +151,16 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
152
151
|
onTouchEnd: handleTouchEnd,
|
|
153
152
|
onTouchMove: (event) => handleContentGesture(event.touches[0].clientX, event.touches[0].clientY),
|
|
154
153
|
onPointerMove: disableDrag ? void 0 : (event) => handleContentGesture(event.clientX, event.clientY),
|
|
155
|
-
initial: { y: swipeviewHeightPx
|
|
154
|
+
initial: { y: swipeviewHeightPx },
|
|
156
155
|
animate: { y: initSnapInPixels },
|
|
157
|
-
exit: { y: swipeviewHeightPx
|
|
156
|
+
exit: { y: swipeviewHeightPx },
|
|
158
157
|
transition: animation,
|
|
159
158
|
style: {
|
|
160
159
|
y: animatedY,
|
|
161
160
|
width: "100%",
|
|
162
|
-
height: swipeviewHeightPx
|
|
161
|
+
height: swipeviewHeightPx,
|
|
163
162
|
position: "fixed",
|
|
164
|
-
bottom:
|
|
163
|
+
bottom: 0,
|
|
165
164
|
right: 0,
|
|
166
165
|
boxSizing: "content-box",
|
|
167
166
|
zIndex: 2147483646
|
|
@@ -5,7 +5,6 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { AnimatePresence, motion, useAnimate } from "framer-motion";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FloatingChat/components/ModalSheet.tsx
|
|
8
|
-
const BOTTOM_OFFSET = 100;
|
|
9
8
|
const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], initSnap = 0, handler, animation = {
|
|
10
9
|
type: "spring",
|
|
11
10
|
stiffness: 300,
|
|
@@ -130,7 +129,7 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
130
129
|
},
|
|
131
130
|
initial: { y: swipeviewHeightPx },
|
|
132
131
|
animate: { y: initSnapInPixels },
|
|
133
|
-
exit: { y: swipeviewHeightPx
|
|
132
|
+
exit: { y: swipeviewHeightPx },
|
|
134
133
|
transition: animation,
|
|
135
134
|
onDragEnd: handleDragEnd,
|
|
136
135
|
onClick: expandToFullView,
|
|
@@ -150,16 +149,16 @@ const ModalSheet = ({ animationKey, children, open, height, unit, snaps = [], in
|
|
|
150
149
|
onTouchEnd: handleTouchEnd,
|
|
151
150
|
onTouchMove: (event) => handleContentGesture(event.touches[0].clientX, event.touches[0].clientY),
|
|
152
151
|
onPointerMove: disableDrag ? void 0 : (event) => handleContentGesture(event.clientX, event.clientY),
|
|
153
|
-
initial: { y: swipeviewHeightPx
|
|
152
|
+
initial: { y: swipeviewHeightPx },
|
|
154
153
|
animate: { y: initSnapInPixels },
|
|
155
|
-
exit: { y: swipeviewHeightPx
|
|
154
|
+
exit: { y: swipeviewHeightPx },
|
|
156
155
|
transition: animation,
|
|
157
156
|
style: {
|
|
158
157
|
y: animatedY,
|
|
159
158
|
width: "100%",
|
|
160
|
-
height: swipeviewHeightPx
|
|
159
|
+
height: swipeviewHeightPx,
|
|
161
160
|
position: "fixed",
|
|
162
|
-
bottom:
|
|
161
|
+
bottom: 0,
|
|
163
162
|
right: 0,
|
|
164
163
|
boxSizing: "content-box",
|
|
165
164
|
zIndex: 2147483646
|
|
@@ -6,9 +6,10 @@ require('../../ReviewCard/index.cjs');
|
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
|
|
8
8
|
//#region src/components/FloatingChat/components/ReviewCardsCarousel.tsx
|
|
9
|
-
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer }) => {
|
|
9
|
+
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer, hideNavigation = false }) => {
|
|
10
10
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Carousel.Carousel, {
|
|
12
|
+
hideNavigation,
|
|
12
13
|
elements: reviews.map((review) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ReviewCard.ReviewCard, {
|
|
13
14
|
name: review.name,
|
|
14
15
|
rating: review.rating,
|
|
@@ -5,9 +5,10 @@ import "../../ReviewCard/index.js";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FloatingChat/components/ReviewCardsCarousel.tsx
|
|
8
|
-
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer }) => {
|
|
8
|
+
const ReviewCardsCarousel = ({ reviews, theme, showVerifiedBuyer, hideNavigation = false }) => {
|
|
9
9
|
const finalTheme = resolveTheme(theme);
|
|
10
10
|
return /* @__PURE__ */ jsx(Carousel, {
|
|
11
|
+
hideNavigation,
|
|
11
12
|
elements: reviews.map((review) => /* @__PURE__ */ jsx(ReviewCard, {
|
|
12
13
|
name: review.name,
|
|
13
14
|
rating: review.rating,
|
|
@@ -24,9 +24,6 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
|
|
|
24
24
|
numberOfReviews: product.numberOfReviews,
|
|
25
25
|
image: product.image,
|
|
26
26
|
url: product.url,
|
|
27
|
-
onClick: () => {
|
|
28
|
-
window.open(product.url, "_blank");
|
|
29
|
-
},
|
|
30
27
|
theme: finalTheme
|
|
31
28
|
}, product.id)),
|
|
32
29
|
theme: finalTheme
|
|
@@ -23,9 +23,6 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
|
|
|
23
23
|
numberOfReviews: product.numberOfReviews,
|
|
24
24
|
image: product.image,
|
|
25
25
|
url: product.url,
|
|
26
|
-
onClick: () => {
|
|
27
|
-
window.open(product.url, "_blank");
|
|
28
|
-
},
|
|
29
26
|
theme: finalTheme
|
|
30
27
|
}, product.id)),
|
|
31
28
|
theme: finalTheme
|
package/dist/Image/Image.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Image/Image.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const Image: ({
|
|
|
25
25
|
role,
|
|
26
26
|
"aria-hidden": ariaHidden,
|
|
27
27
|
...rest
|
|
28
|
-
}: ImageProps) =>
|
|
28
|
+
}: ImageProps) => react_jsx_runtime15.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
package/dist/Image/Image.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Image/Image.d.ts
|
|
5
5
|
|
|
@@ -25,6 +25,6 @@ declare const Image: ({
|
|
|
25
25
|
role,
|
|
26
26
|
"aria-hidden": ariaHidden,
|
|
27
27
|
...rest
|
|
28
|
-
}: ImageProps) =>
|
|
28
|
+
}: ImageProps) => react_jsx_runtime28.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Image };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageGallery/ImageGallery.d.ts
|
|
5
5
|
|
|
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
|
|
|
40
40
|
"aria-describedby": ariaDescribedBy,
|
|
41
41
|
role,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
43
|
-
}: ImageGalleryProps) =>
|
|
43
|
+
}: ImageGalleryProps) => react_jsx_runtime8.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageGalleryProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ImageGallery/ImageGallery.d.ts
|
|
5
5
|
|
|
@@ -40,6 +40,6 @@ declare const ImageGallery: ({
|
|
|
40
40
|
"aria-describedby": ariaDescribedBy,
|
|
41
41
|
role,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
43
|
-
}: ImageGalleryProps) =>
|
|
43
|
+
}: ImageGalleryProps) => react_jsx_runtime20.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { ImageGallery };
|
|
@@ -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_Container = require('../../Container/Container.cjs');
|
|
4
3
|
const require_useResponsiveValue = require('../../utils/useResponsiveValue.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
5
|
const require_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
6
6
|
const require_types = require('../types/types.cjs');
|
|
7
7
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { Container } from "../../Container/Container.js";
|
|
3
2
|
import { useResponsiveValue } from "../../utils/useResponsiveValue.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
4
|
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
5
5
|
import { ImageGalleryLayout } from "../types/types.js";
|
|
6
6
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -9,6 +9,6 @@ declare const MarkdownProcessor: ({
|
|
|
9
9
|
textVariant,
|
|
10
10
|
subTextVariant,
|
|
11
11
|
subTextColor
|
|
12
|
-
}: MarkdownProcessorProps) =>
|
|
12
|
+
}: MarkdownProcessorProps) => react_jsx_runtime0.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MarkdownProcessor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkdownProcessorProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/MarkdownProcessor/MarkdownProcessor.d.ts
|
|
5
5
|
declare const MarkdownProcessor: ({
|
|
@@ -9,6 +9,6 @@ declare const MarkdownProcessor: ({
|
|
|
9
9
|
textVariant,
|
|
10
10
|
subTextVariant,
|
|
11
11
|
subTextColor
|
|
12
|
-
}: MarkdownProcessorProps) =>
|
|
12
|
+
}: MarkdownProcessorProps) => react_jsx_runtime23.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { MarkdownProcessor };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
3
2
|
const require_index = require('../../Typography/types/index.cjs');
|
|
4
3
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
5
4
|
require('../../Typography/index.cjs');
|
|
5
|
+
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
6
6
|
const require_useGetLinkButtonProperties = require('../hooks/useGetLinkButtonProperties.cjs');
|
|
7
7
|
const require_useGetLinkButtonIconProperties = require('../hooks/useGetLinkButtonIconProperties.cjs');
|
|
8
8
|
const require_openUrlInNewTab = require('../utils/openUrlInNewTab.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
2
1
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
3
2
|
import { Typography } from "../../Typography/Typography.js";
|
|
4
3
|
import "../../Typography/index.js";
|
|
4
|
+
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
5
5
|
import { useGetLinkButtonProperties } from "../hooks/useGetLinkButtonProperties.js";
|
|
6
6
|
import { useGetLinkButtonIconProperties } from "../hooks/useGetLinkButtonIconProperties.js";
|
|
7
7
|
import { openUrlInNewTab } from "../utils/openUrlInNewTab.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
const require_Stack = require('../Stack/Stack.cjs');
|
|
5
4
|
require('../Stack/index.cjs');
|
|
5
|
+
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
6
6
|
const require_useGetImageBorderRadiusProperties = require('./hooks/useGetImageBorderRadiusProperties.cjs');
|
|
7
7
|
const require_index = require('./components/index.cjs');
|
|
8
8
|
const require_useGetContainerProperties = require('./hooks/useGetContainerProperties.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
2
|
import { Stack } from "../Stack/Stack.js";
|
|
4
3
|
import "../Stack/index.js";
|
|
4
|
+
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
5
5
|
import { useGetImageBorderRadiusProperties } from "./hooks/useGetImageBorderRadiusProperties.js";
|
|
6
6
|
import { OrderLookupCardComponents } from "./components/index.js";
|
|
7
7
|
import { useGetContainerProperties } from "./hooks/useGetContainerProperties.js";
|
|
@@ -1,20 +1,23 @@
|
|
|
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
|
-
require('../
|
|
3
|
+
const require_index = require('../Typography/types/index.cjs');
|
|
4
4
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
|
+
require('../Tokens/index.cjs');
|
|
5
6
|
const require_WidgetTextField = require('../WidgetTextField/WidgetTextField.cjs');
|
|
6
7
|
require('../WidgetTextField/index.cjs');
|
|
7
|
-
const require_index = require('./components/index.cjs');
|
|
8
|
+
const require_index$1 = require('./components/index.cjs');
|
|
8
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
+
let classnames = require("classnames");
|
|
11
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
12
|
|
|
10
13
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
11
14
|
const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, headline, italicizeHeadline, animatedText, prompts, promptButtonType, carouselId, fallbackColor, placeholder, textTypingDuration, textTransition, loop, onSelect, onInputClick }) => {
|
|
12
15
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
13
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_index.ProductCardWidgetComponents.Poster, {
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_index$1.ProductCardWidgetComponents.Poster, {
|
|
14
17
|
imageSrc,
|
|
15
18
|
fallbackColor,
|
|
16
19
|
children: [
|
|
17
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.ProductCardWidgetComponents.Header, {
|
|
20
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.ProductCardWidgetComponents.Header, {
|
|
18
21
|
headline,
|
|
19
22
|
italicizeHeadline,
|
|
20
23
|
animatedText,
|
|
@@ -22,7 +25,7 @@ const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, head
|
|
|
22
25
|
textTransition,
|
|
23
26
|
loop
|
|
24
27
|
}),
|
|
25
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.ProductCardWidgetComponents.Carousel, {
|
|
28
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.ProductCardWidgetComponents.Carousel, {
|
|
26
29
|
theme: resolvedTheme,
|
|
27
30
|
carouselId,
|
|
28
31
|
prompts,
|
|
@@ -33,7 +36,8 @@ const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, head
|
|
|
33
36
|
theme: resolvedTheme,
|
|
34
37
|
placeholder,
|
|
35
38
|
onClick: onInputClick,
|
|
36
|
-
|
|
39
|
+
textColor: resolvedTheme === require_theme.Theme.MINIMAL ? require_index.TypographyColor.TEXT_LIGHT : require_index.TypographyColor.TEXT_SECONDARY,
|
|
40
|
+
className: (0, classnames.default)(resolvedTheme === require_theme.Theme.MINIMAL ? "envive-tw-bg-transparent" : "envive-tw-bg-background-light")
|
|
37
41
|
})
|
|
38
42
|
]
|
|
39
43
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
@@ -18,6 +18,6 @@ declare const ProductCard: ({
|
|
|
18
18
|
loop,
|
|
19
19
|
onSelect,
|
|
20
20
|
onInputClick
|
|
21
|
-
}: ProductCardProps) =>
|
|
21
|
+
}: ProductCardProps) => react_jsx_runtime31.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ProductCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
@@ -18,6 +18,6 @@ declare const ProductCard: ({
|
|
|
18
18
|
loop,
|
|
19
19
|
onSelect,
|
|
20
20
|
onInputClick
|
|
21
|
-
}: ProductCardProps) =>
|
|
21
|
+
}: ProductCardProps) => react_jsx_runtime17.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ProductCard };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../
|
|
2
|
+
import { TypographyColor } from "../Typography/types/index.js";
|
|
3
3
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
4
|
+
import "../Tokens/index.js";
|
|
4
5
|
import { WidgetTextField } from "../WidgetTextField/WidgetTextField.js";
|
|
5
6
|
import "../WidgetTextField/index.js";
|
|
6
7
|
import { ProductCardWidgetComponents } from "./components/index.js";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import classNames from "classnames";
|
|
8
10
|
|
|
9
11
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
10
12
|
const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, imageSrc, headline, italicizeHeadline, animatedText, prompts, promptButtonType, carouselId, fallbackColor, placeholder, textTypingDuration, textTransition, loop, onSelect, onInputClick }) => {
|
|
@@ -32,7 +34,8 @@ const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, imageSrc, headline, italiciz
|
|
|
32
34
|
theme: resolvedTheme,
|
|
33
35
|
placeholder,
|
|
34
36
|
onClick: onInputClick,
|
|
35
|
-
|
|
37
|
+
textColor: resolvedTheme === Theme.MINIMAL ? TypographyColor.TEXT_LIGHT : TypographyColor.TEXT_SECONDARY,
|
|
38
|
+
className: classNames(resolvedTheme === Theme.MINIMAL ? "envive-tw-bg-transparent" : "envive-tw-bg-background-light")
|
|
36
39
|
})
|
|
37
40
|
]
|
|
38
41
|
});
|
|
@@ -23,12 +23,12 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
23
23
|
gap: 1,
|
|
24
24
|
className: stackClasses,
|
|
25
25
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
|
-
variant: require_index.TypographyVariant.
|
|
26
|
+
variant: require_index.TypographyVariant.H1_MD,
|
|
27
27
|
color: require_index.TypographyColor.TEXT_LIGHT,
|
|
28
28
|
className: headlineClasses,
|
|
29
29
|
numberOfLines: 2,
|
|
30
30
|
children: headline
|
|
31
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedText.AnimatedText, {
|
|
31
|
+
}), animatedText.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_AnimatedText.AnimatedText, {
|
|
32
32
|
sequence: animatedText,
|
|
33
33
|
getNodeWrapper: animatedTextWrapper,
|
|
34
34
|
typingDuration: textTypingDuration,
|
|
@@ -22,12 +22,12 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
22
22
|
gap: 1,
|
|
23
23
|
className: stackClasses,
|
|
24
24
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
25
|
-
variant: TypographyVariant.
|
|
25
|
+
variant: TypographyVariant.H1_MD,
|
|
26
26
|
color: TypographyColor.TEXT_LIGHT,
|
|
27
27
|
className: headlineClasses,
|
|
28
28
|
numberOfLines: 2,
|
|
29
29
|
children: headline
|
|
30
|
-
}), /* @__PURE__ */ jsx(AnimatedText, {
|
|
30
|
+
}), animatedText.length > 0 && /* @__PURE__ */ jsx(AnimatedText, {
|
|
31
31
|
sequence: animatedText,
|
|
32
32
|
getNodeWrapper: animatedTextWrapper,
|
|
33
33
|
typingDuration: textTypingDuration,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -16,6 +16,6 @@ declare const PromptButton: ({
|
|
|
16
16
|
onClick,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
ariaDescribedBy
|
|
19
|
-
}: PromptButtonProps) =>
|
|
19
|
+
}: PromptButtonProps) => react_jsx_runtime20.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PromptButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -16,6 +16,6 @@ declare const PromptButton: ({
|
|
|
16
16
|
onClick,
|
|
17
17
|
ariaLabel,
|
|
18
18
|
ariaDescribedBy
|
|
19
|
-
}: PromptButtonProps) =>
|
|
19
|
+
}: PromptButtonProps) => react_jsx_runtime19.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PromptButton };
|
|
@@ -7,7 +7,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
7
7
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx
|
|
8
8
|
const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, alt, isLoading, hideTextField, title, promptButtonsTexts, promptButtonType, handlePromptButtonClick, textFieldPlaceholder, handleTextFieldClick }) => {
|
|
9
9
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
10
|
-
if (promptButtonsTexts && promptButtonsTexts?.length
|
|
10
|
+
if (promptButtonsTexts && promptButtonsTexts?.length < 3) throw new Error("PromptButtonsCarouselWithImage: promptButtonsTexts must have at least 3 items");
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.PromptButtonCarouselWithImageComponents.Layout, {
|
|
12
12
|
id,
|
|
13
13
|
testId,
|
|
@@ -17,6 +17,7 @@ const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = r
|
|
|
17
17
|
textField: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.PromptButtonCarouselWithImageComponents.TextField, {
|
|
18
18
|
isLoading,
|
|
19
19
|
placeholder: textFieldPlaceholder,
|
|
20
|
+
className: finalTheme === require_theme.Theme.MINIMAL ? "!envive-tw-border-border-medium" : void 0,
|
|
20
21
|
onClick: () => handleTextFieldClick(textFieldPlaceholder),
|
|
21
22
|
theme: finalTheme
|
|
22
23
|
}),
|
|
@@ -28,7 +29,7 @@ const PromptButtonCarouselWithImage = ({ id, testId, className, style, theme = r
|
|
|
28
29
|
promptButtons: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.PromptButtonCarouselWithImageComponents.PromptButtonsCarousel, {
|
|
29
30
|
theme: finalTheme,
|
|
30
31
|
isLoading,
|
|
31
|
-
promptButtonsTexts,
|
|
32
|
+
promptButtonsTexts: promptButtonsTexts || [],
|
|
32
33
|
promptButtonType,
|
|
33
34
|
handlePromptButtonClick
|
|
34
35
|
}),
|