@envive-ai/react-toolkit-v3 0.3.31 → 0.3.33
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.cts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +165 -60
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +165 -60
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +30 -15
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +30 -15
- 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/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 +175 -175
- package/dist/Container/Container.d.ts +175 -175
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/components/FontWeight.cjs +4 -3
- package/dist/DesignTokens/components/FontWeight.js +4 -3
- package/dist/DesignTokens/components/LetterSpacing.cjs +15 -1
- package/dist/DesignTokens/components/LetterSpacing.js +15 -1
- package/dist/DesignTokens/components/LineHeight.cjs +13 -8
- package/dist/DesignTokens/components/LineHeight.js +13 -8
- 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 +4 -4
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +4 -4
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +6 -3
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +6 -3
- package/dist/FloatingChat/utils/functions.cjs +2 -1
- package/dist/FloatingChat/utils/functions.js +2 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.js +1 -1
- 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 +15 -9
- package/dist/ProductCard/ProductCard.d.cts +3 -2
- package/dist/ProductCard/ProductCard.d.ts +3 -2
- package/dist/ProductCard/ProductCard.js +11 -5
- package/dist/ProductCard/components/Header.cjs +7 -5
- package/dist/ProductCard/components/Header.js +7 -5
- package/dist/ProductCard/components/Poster.cjs +3 -2
- package/dist/ProductCard/components/Poster.js +3 -2
- package/dist/ProductCard/hooks/useGetPosterProperties.cjs +5 -3
- package/dist/ProductCard/hooks/useGetPosterProperties.js +6 -3
- package/dist/ProductCard/index.cjs +3 -1
- package/dist/ProductCard/index.d.cts +2 -2
- package/dist/ProductCard/index.d.ts +2 -2
- package/dist/ProductCard/index.js +2 -1
- package/dist/ProductCard/types/index.cjs +10 -0
- package/dist/ProductCard/types/index.d.cts +13 -3
- package/dist/ProductCard/types/index.d.ts +13 -3
- package/dist/ProductCard/types/index.js +9 -0
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- 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.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 +6 -6
- 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 +8 -8
- 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/SocialProof/hooks/useSocialProofCount.cjs +2 -1
- package/dist/SocialProof/hooks/useSocialProofCount.js +2 -1
- 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/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 +5 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
- package/dist/WidgetTextField/WidgetTextField.js +3 -2
- package/dist/WidgetTextField/components/Container.cjs +5 -4
- package/dist/WidgetTextField/components/Container.js +5 -4
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.js +1 -1
- package/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +7 -3
- package/dist/WidgetTextField/hooks/useGetContainerProperties.js +7 -3
- package/dist/WidgetTextField/types/types.d.cts +2 -0
- package/dist/WidgetTextField/types/types.d.ts +2 -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/packages/components-v3/tokens/typography/fontWeight.cjs +12 -9
- package/dist/packages/components-v3/tokens/typography/fontWeight.d.ts +4 -3
- package/dist/packages/components-v3/tokens/typography/fontWeight.js +12 -9
- package/dist/packages/components-v3/tokens/typography/letterSpacing.cjs +39 -6
- package/dist/packages/components-v3/tokens/typography/letterSpacing.d.ts +13 -2
- package/dist/packages/components-v3/tokens/typography/letterSpacing.js +39 -6
- package/dist/packages/components-v3/tokens/typography/lineHeight.cjs +39 -30
- package/dist/packages/components-v3/tokens/typography/lineHeight.d.ts +15 -12
- package/dist/packages/components-v3/tokens/typography/lineHeight.js +39 -30
- package/dist/packages/components-v3/tokens/typography/typography.cjs +63 -63
- package/dist/packages/components-v3/tokens/typography/typography.js +63 -63
- package/dist/styles.css +1 -1
- package/dist/tokens/typography/fontWeight.d.cts +4 -3
- package/dist/tokens/typography/letterSpacing.d.cts +13 -2
- package/dist/tokens/typography/lineHeight.d.cts +15 -12
- package/package.json +1 -1
- package/src/components/CSSVariablesEditor/hooks/useGetDefaultCssVariables.ts +165 -60
- package/src/components/CSSVariablesEditor/hooks/useHandleUpdateCssVars.ts +30 -15
- package/src/components/DesignTokens/components/FontWeight.tsx +4 -3
- package/src/components/DesignTokens/components/LetterSpacing.tsx +13 -1
- package/src/components/DesignTokens/components/LineHeight.tsx +13 -8
- package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -2
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +5 -2
- package/src/components/FloatingChat/utils/functions.ts +2 -3
- package/src/components/ProductCard/ProductCard.tsx +8 -4
- package/src/components/ProductCard/components/Header.tsx +11 -5
- package/src/components/ProductCard/components/Poster.tsx +12 -3
- package/src/components/ProductCard/hooks/useGetPosterProperties.ts +15 -3
- package/src/components/ProductCard/index.ts +1 -0
- package/src/components/ProductCard/types/index.ts +13 -1
- package/src/components/SocialProof/components/Headline.tsx +1 -1
- package/src/components/SocialProof/hooks/useSocialProofCount.ts +5 -2
- package/src/components/WidgetTextField/WidgetTextField.tsx +2 -0
- package/src/components/WidgetTextField/components/Container.tsx +3 -0
- package/src/components/WidgetTextField/hooks/useGetContainerProperties.ts +8 -2
- package/src/components/WidgetTextField/types/types.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Container } from "../../Container/Container.js";
|
|
2
|
-
import "../../Container/index.js";
|
|
3
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
2
|
import "../../Stack/index.js";
|
|
3
|
+
import { Container } from "../../Container/Container.js";
|
|
4
|
+
import "../../Container/index.js";
|
|
5
5
|
import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
|
|
6
6
|
import { useGetStackLayoutProperties } from "../hooks/useGetStackLayoutProperties.js";
|
|
7
7
|
import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
3
2
|
const require_Stack = require('../../../../Stack/Stack.cjs');
|
|
4
3
|
require('../../../../Stack/index.cjs');
|
|
4
|
+
const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
let classnames = require("classnames");
|
|
7
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
2
1
|
import { Stack } from "../../../../Stack/Stack.js";
|
|
3
2
|
import "../../../../Stack/index.js";
|
|
3
|
+
import { CustomIcon } from "../../../../utils/CustomIcon.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import Document from "@envive-ai/react-icons/Document";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingButton: ({
|
|
|
19
19
|
ariaLabel,
|
|
20
20
|
previewMode,
|
|
21
21
|
containerRef
|
|
22
|
-
}: FloatingButtonProps) =>
|
|
22
|
+
}: FloatingButtonProps) => react_jsx_runtime18.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingButtonProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingButton/FloatingButton.d.ts
|
|
5
5
|
declare const FloatingButton: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingButton: ({
|
|
|
19
19
|
ariaLabel,
|
|
20
20
|
previewMode,
|
|
21
21
|
containerRef
|
|
22
|
-
}: FloatingButtonProps) =>
|
|
22
|
+
}: FloatingButtonProps) => react_jsx_runtime24.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime19.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingChatProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/FloatingChat/FloatingChat.d.ts
|
|
5
5
|
declare const FloatingChat: ({
|
|
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
|
|
|
19
19
|
onSwipeClose,
|
|
20
20
|
onToggleCXButton,
|
|
21
21
|
setIsResultsModalOpen
|
|
22
|
-
}: FloatingChatProps) =>
|
|
22
|
+
}: FloatingChatProps) => react_jsx_runtime27.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FloatingChat };
|
|
@@ -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_functions = require('../utils/functions.cjs');
|
|
10
10
|
const require_index$1 = require('../../Message/types/index.cjs');
|
|
11
11
|
const require_Message = require('../../Message/Message.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 { checkIfHideAgentName, getGroupableMessages } from "../utils/functions.js";
|
|
9
9
|
import { MessageVariant } from "../../Message/types/index.js";
|
|
10
10
|
import { Message } from "../../Message/Message.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");
|
|
@@ -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";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
3
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
3
|
require('../../Stack/index.cjs');
|
|
5
4
|
const require_index = require('../../Typography/types/index.cjs');
|
|
6
5
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
7
6
|
require('../../Typography/index.cjs');
|
|
7
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
8
8
|
const require_types = require('../../SalesAgentProductCard/types/types.cjs');
|
|
9
9
|
const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
|
|
10
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
2
|
import "../../Stack/index.js";
|
|
4
3
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
5
4
|
import { Typography } from "../../Typography/Typography.js";
|
|
6
5
|
import "../../Typography/index.js";
|
|
6
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
7
7
|
import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
|
|
8
8
|
import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
|
+
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
3
4
|
const require_index = require('../../Typography/types/index.cjs');
|
|
4
5
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
5
6
|
require('../../Typography/index.cjs');
|
|
6
|
-
const require_ArrowIcon = require('../../Carousel/components/ArrowIcon.cjs');
|
|
7
7
|
const require_functions = require('../utils/functions.cjs');
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_rolldown_runtime.__toESM(react);
|
|
@@ -44,7 +44,7 @@ const SalesAgentBadgeContent = ({ totalProducts, displayLimit = require_function
|
|
|
44
44
|
})]
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT }) => {
|
|
47
|
+
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT, isMobile = false }) => {
|
|
48
48
|
if (hideBadgeCount) return {
|
|
49
49
|
badgeContent: null,
|
|
50
50
|
badgeLabel: null
|
|
@@ -53,9 +53,9 @@ const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimi
|
|
|
53
53
|
badgeContent: areProductsMoreThanDisplayLimit ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SalesAgentBadgeContent, {
|
|
54
54
|
totalProducts,
|
|
55
55
|
displayLimit,
|
|
56
|
-
onExploreAllResults
|
|
56
|
+
onExploreAllResults: onExploreAllResults ?? (() => {})
|
|
57
57
|
}) : null,
|
|
58
|
-
badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts
|
|
58
|
+
badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts >= (isMobile ? 3 : 4) ? `${totalProducts} Products` : null
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
+
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
2
3
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
3
4
|
import { Typography } from "../../Typography/Typography.js";
|
|
4
5
|
import "../../Typography/index.js";
|
|
5
|
-
import { ArrowIcon } from "../../Carousel/components/ArrowIcon.js";
|
|
6
6
|
import { MOST_RELEVANT_DISPLAY_LIMIT } from "../utils/functions.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -41,7 +41,7 @@ const SalesAgentBadgeContent = ({ totalProducts, displayLimit = MOST_RELEVANT_DI
|
|
|
41
41
|
})]
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT }) => {
|
|
44
|
+
const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT, isMobile = false }) => {
|
|
45
45
|
if (hideBadgeCount) return {
|
|
46
46
|
badgeContent: null,
|
|
47
47
|
badgeLabel: null
|
|
@@ -50,9 +50,9 @@ const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimi
|
|
|
50
50
|
badgeContent: areProductsMoreThanDisplayLimit ? /* @__PURE__ */ jsx(SalesAgentBadgeContent, {
|
|
51
51
|
totalProducts,
|
|
52
52
|
displayLimit,
|
|
53
|
-
onExploreAllResults
|
|
53
|
+
onExploreAllResults: onExploreAllResults ?? (() => {})
|
|
54
54
|
}) : null,
|
|
55
|
-
badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts
|
|
55
|
+
badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts >= (isMobile ? 3 : 4) ? `${totalProducts} Products` : null
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
3
3
|
const require_Carousel = require('../../Carousel/Carousel.cjs');
|
|
4
|
+
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
4
5
|
const require_functions = require('../utils/functions.cjs');
|
|
5
6
|
const require_types = require('../../SalesAgentProductCard/types/types.cjs');
|
|
6
7
|
const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
|
|
@@ -10,18 +11,20 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
10
11
|
//#region src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx
|
|
11
12
|
const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, hideBadgeCount, variant = require_types.SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
|
|
12
13
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
14
|
+
const { isMobile } = require_utils_useCheckIsMobile.useCheckIsMobile("md");
|
|
13
15
|
const { totalProducts, areProductsMoreThanDisplayLimit, displayedProducts } = require_functions.getProductCarouselDisplayInfo(products, numberOfProducts);
|
|
14
16
|
const forceShowCurrentPriceSpace = displayedProducts.some((product) => product.currentPrice && product.previousPrice !== product.currentPrice);
|
|
15
17
|
const { badgeContent, badgeLabel } = require_SalesAgentBadgeContent.getBadgeContentAndLabel({
|
|
16
18
|
hideBadgeCount,
|
|
17
19
|
totalProducts,
|
|
18
20
|
areProductsMoreThanDisplayLimit,
|
|
19
|
-
onExploreAllResults
|
|
21
|
+
onExploreAllResults,
|
|
22
|
+
isMobile
|
|
20
23
|
});
|
|
21
24
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Carousel.Carousel, {
|
|
22
25
|
hideNavigation,
|
|
23
26
|
badgeContent,
|
|
24
|
-
badgeLabel,
|
|
27
|
+
badgeLabel: badgeLabel ?? void 0,
|
|
25
28
|
elements: displayedProducts.map((product, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SalesAgentProductCard.SalesAgentProductCard, {
|
|
26
29
|
variant,
|
|
27
30
|
productName: product.productName,
|
|
@@ -35,7 +38,7 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
|
|
|
35
38
|
url: product.url,
|
|
36
39
|
target: "_blank",
|
|
37
40
|
theme: finalTheme,
|
|
38
|
-
onClick: () => onProductCardClick(product)
|
|
41
|
+
onClick: () => onProductCardClick?.(product)
|
|
39
42
|
}, product.id ?? `product-${index}`)),
|
|
40
43
|
theme: finalTheme
|
|
41
44
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
2
|
import { Carousel } from "../../Carousel/Carousel.js";
|
|
3
|
+
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
3
4
|
import { getProductCarouselDisplayInfo } from "../utils/functions.js";
|
|
4
5
|
import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
|
|
5
6
|
import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
|
|
@@ -9,18 +10,20 @@ import { jsx } from "react/jsx-runtime";
|
|
|
9
10
|
//#region src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx
|
|
10
11
|
const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, hideBadgeCount, variant = SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
|
|
11
12
|
const finalTheme = resolveTheme(theme);
|
|
13
|
+
const { isMobile } = useCheckIsMobile("md");
|
|
12
14
|
const { totalProducts, areProductsMoreThanDisplayLimit, displayedProducts } = getProductCarouselDisplayInfo(products, numberOfProducts);
|
|
13
15
|
const forceShowCurrentPriceSpace = displayedProducts.some((product) => product.currentPrice && product.previousPrice !== product.currentPrice);
|
|
14
16
|
const { badgeContent, badgeLabel } = getBadgeContentAndLabel({
|
|
15
17
|
hideBadgeCount,
|
|
16
18
|
totalProducts,
|
|
17
19
|
areProductsMoreThanDisplayLimit,
|
|
18
|
-
onExploreAllResults
|
|
20
|
+
onExploreAllResults,
|
|
21
|
+
isMobile
|
|
19
22
|
});
|
|
20
23
|
return /* @__PURE__ */ jsx(Carousel, {
|
|
21
24
|
hideNavigation,
|
|
22
25
|
badgeContent,
|
|
23
|
-
badgeLabel,
|
|
26
|
+
badgeLabel: badgeLabel ?? void 0,
|
|
24
27
|
elements: displayedProducts.map((product, index) => /* @__PURE__ */ jsx(SalesAgentProductCard, {
|
|
25
28
|
variant,
|
|
26
29
|
productName: product.productName,
|
|
@@ -34,7 +37,7 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
|
|
|
34
37
|
url: product.url,
|
|
35
38
|
target: "_blank",
|
|
36
39
|
theme: finalTheme,
|
|
37
|
-
onClick: () => onProductCardClick(product)
|
|
40
|
+
onClick: () => onProductCardClick?.(product)
|
|
38
41
|
}, product.id ?? `product-${index}`)),
|
|
39
42
|
theme: finalTheme
|
|
40
43
|
});
|
|
@@ -101,10 +101,11 @@ const getSearchQueryFromMessageBlock = (messages, productBlockIndex) => {
|
|
|
101
101
|
const getProductCarouselDisplayInfo = (products, numberOfProducts, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT) => {
|
|
102
102
|
const totalProducts = numberOfProducts ?? products.length;
|
|
103
103
|
const areProductsMoreThanDisplayLimit = totalProducts > displayLimit;
|
|
104
|
+
const maxDisplayed = areProductsMoreThanDisplayLimit ? displayLimit : totalProducts;
|
|
104
105
|
return {
|
|
105
106
|
totalProducts,
|
|
106
107
|
areProductsMoreThanDisplayLimit,
|
|
107
|
-
displayedProducts:
|
|
108
|
+
displayedProducts: products.slice(0, maxDisplayed)
|
|
108
109
|
};
|
|
109
110
|
};
|
|
110
111
|
|
|
@@ -100,10 +100,11 @@ const getSearchQueryFromMessageBlock = (messages, productBlockIndex) => {
|
|
|
100
100
|
const getProductCarouselDisplayInfo = (products, numberOfProducts, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT) => {
|
|
101
101
|
const totalProducts = numberOfProducts ?? products.length;
|
|
102
102
|
const areProductsMoreThanDisplayLimit = totalProducts > displayLimit;
|
|
103
|
+
const maxDisplayed = areProductsMoreThanDisplayLimit ? displayLimit : totalProducts;
|
|
103
104
|
return {
|
|
104
105
|
totalProducts,
|
|
105
106
|
areProductsMoreThanDisplayLimit,
|
|
106
|
-
displayedProducts:
|
|
107
|
+
displayedProducts: products.slice(0, maxDisplayed)
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
110
|
|
|
@@ -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
|
-
require('../Tokens/index.cjs');
|
|
4
3
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
|
+
require('../Tokens/index.cjs');
|
|
5
5
|
const require_react = require('../node_modules/jotai/esm/react.cjs');
|
|
6
6
|
const require_usePromptCarouselAnalytics = require('../PromptCarousel/hooks/usePromptCarouselAnalytics.cjs');
|
|
7
7
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../tokens/theme/theme.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
@@ -19,6 +19,6 @@ declare const FullPageSalesAgent: ({
|
|
|
19
19
|
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
21
|
voiceInputEnabled
|
|
22
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime9.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FullPageSalesAgent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
import { FloatingChatConfig, FullPageSalesAgentWidgetV3Config, LookAndFeelConfig } from "@envive-ai/react-hooks/contexts/typesV3";
|
|
4
4
|
import { HardcopyResponse } from "@envive-ai/react-hooks/contexts/hardcopyContext";
|
|
5
5
|
|
|
@@ -19,6 +19,6 @@ declare const FullPageSalesAgent: ({
|
|
|
19
19
|
widgetConfig,
|
|
20
20
|
hardcopyContent,
|
|
21
21
|
voiceInputEnabled
|
|
22
|
-
}: FullPageSalesAgentProps) =>
|
|
22
|
+
}: FullPageSalesAgentProps) => react_jsx_runtime21.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { FullPageSalesAgent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../Tokens/index.js";
|
|
3
2
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
|
+
import "../Tokens/index.js";
|
|
4
4
|
import { useSetAtom } from "../node_modules/jotai/esm/react.js";
|
|
5
5
|
import { usePromptCarouselAnalytics } from "../PromptCarousel/hooks/usePromptCarouselAnalytics.js";
|
|
6
6
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
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_runtime13 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_runtime13.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_runtime25 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_runtime25.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_runtime16 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_runtime16.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_runtime22 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_runtime22.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_utils_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_runtime17 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
|
onLinkClick,
|
|
11
11
|
theme
|
|
12
|
-
}: MarkdownProcessorProps) =>
|
|
12
|
+
}: MarkdownProcessorProps) => react_jsx_runtime17.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
|
onLinkClick,
|
|
11
11
|
theme
|
|
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_useGetLinkButtonIconProperties = require('../hooks/useGetLinkButtonIconProperties.cjs');
|
|
7
7
|
const require_useGetLinkButtonProperties = require('../hooks/useGetLinkButtonProperties.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 { useGetLinkButtonIconProperties } from "../hooks/useGetLinkButtonIconProperties.js";
|
|
6
6
|
import { useGetLinkButtonProperties } from "../hooks/useGetLinkButtonProperties.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,31 +1,36 @@
|
|
|
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('../Tokens/index.cjs');
|
|
4
|
-
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
3
|
const require_index = require('../Typography/types/index.cjs');
|
|
4
|
+
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
|
+
require('../Tokens/index.cjs');
|
|
6
6
|
const require_WidgetTextField = require('../WidgetTextField/WidgetTextField.cjs');
|
|
7
7
|
require('../WidgetTextField/index.cjs');
|
|
8
|
-
const require_index$1 = require('./
|
|
8
|
+
const require_index$1 = require('./types/index.cjs');
|
|
9
|
+
const require_index$2 = require('./components/index.cjs');
|
|
9
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let classnames = require("classnames");
|
|
11
12
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
12
13
|
|
|
13
14
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
14
|
-
const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, headline, italicizeHeadline, animatedText, prompts, promptButtonType, carouselId, fallbackColor, placeholder, textTypingDuration, textTransition, loop, voiceInputEnabled, onSelect, onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd, onInputClick, onTranscriptionStarted, onTranscriptionCompleted }) => {
|
|
15
|
+
const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, variant = require_index$1.ProductCardVariant.DARK, imageSrc, headline, italicizeHeadline, animatedText, prompts, promptButtonType, carouselId, fallbackColor, placeholder, textTypingDuration, textTransition, loop, voiceInputEnabled, onSelect, onDrag, onHover, onMouseDown, onMouseUp, onTouchStart, onTouchEnd, onInputClick, onTranscriptionStarted, onTranscriptionCompleted }) => {
|
|
15
16
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
16
|
-
|
|
17
|
+
const isLight = variant === require_index$1.ProductCardVariant.LIGHT;
|
|
18
|
+
const minimalTextColor = isLight ? require_index.TypographyColor.TEXT_PRIMARY : require_index.TypographyColor.TEXT_LIGHT;
|
|
19
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_index$2.ProductCardWidgetComponents.Poster, {
|
|
17
20
|
imageSrc,
|
|
18
21
|
fallbackColor,
|
|
22
|
+
variant,
|
|
19
23
|
children: [
|
|
20
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$
|
|
24
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$2.ProductCardWidgetComponents.Header, {
|
|
21
25
|
headline,
|
|
22
26
|
italicizeHeadline,
|
|
23
27
|
animatedText,
|
|
24
28
|
textTypingDuration,
|
|
25
29
|
textTransition,
|
|
26
|
-
loop
|
|
30
|
+
loop,
|
|
31
|
+
variant
|
|
27
32
|
}),
|
|
28
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$
|
|
33
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$2.ProductCardWidgetComponents.Carousel, {
|
|
29
34
|
theme: resolvedTheme,
|
|
30
35
|
carouselId,
|
|
31
36
|
prompts,
|
|
@@ -41,12 +46,13 @@ const ProductCard = ({ theme = require_theme.Theme.GLOBAL_CUSTOM, imageSrc, head
|
|
|
41
46
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WidgetTextField.WidgetTextField, {
|
|
42
47
|
theme: resolvedTheme,
|
|
43
48
|
minimalFrame: resolvedTheme === require_theme.Theme.MINIMAL ? "bottom-only" : "full",
|
|
49
|
+
minimalBorderVariant: isLight ? "primary" : "light",
|
|
44
50
|
placeholder,
|
|
45
51
|
onClick: onInputClick,
|
|
46
52
|
enableVoiceInput: voiceInputEnabled,
|
|
47
53
|
onTranscriptionStarted,
|
|
48
54
|
onTranscriptionCompleted,
|
|
49
|
-
textColor: resolvedTheme === require_theme.Theme.MINIMAL ?
|
|
55
|
+
textColor: resolvedTheme === require_theme.Theme.MINIMAL ? minimalTextColor : require_index.TypographyColor.TEXT_SECONDARY,
|
|
50
56
|
className: (0, classnames.default)(resolvedTheme === require_theme.Theme.MINIMAL ? "envive-tw-bg-transparent" : "envive-tw-bg-background-light")
|
|
51
57
|
})
|
|
52
58
|
]
|