@envive-ai/react-toolkit-v3 0.3.32 → 0.3.34
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/AnimatedText/AnimatedText.d.ts +3 -3
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.cjs +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.js +1 -1
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +166 -61
- package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +166 -61
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +31 -16
- package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +31 -16
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Badge.cjs +1 -1
- package/dist/Carousel/components/Badge.js +1 -1
- package/dist/Carousel/components/Container.cjs +1 -1
- package/dist/Carousel/components/Container.js +1 -1
- 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 +1 -1
- package/dist/ChatFooter/components/Layout.js +1 -1
- 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/hooks/useGetHandleProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetHandleProperties.js +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
- package/dist/ChatPreviewComparison/components/Layout.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 +172 -172
- package/dist/Container/Container.d.ts +172 -172
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/components/FontFamily.cjs +1 -1
- package/dist/DesignTokens/components/FontFamily.js +1 -1
- package/dist/DesignTokens/components/FontSize.cjs +1 -1
- package/dist/DesignTokens/components/FontSize.js +1 -1
- package/dist/DesignTokens/components/FontWeight.cjs +5 -4
- package/dist/DesignTokens/components/FontWeight.js +5 -4
- package/dist/DesignTokens/components/LetterSpacing.cjs +16 -2
- package/dist/DesignTokens/components/LetterSpacing.js +16 -2
- package/dist/DesignTokens/components/LineHeight.cjs +14 -9
- package/dist/DesignTokens/components/LineHeight.js +14 -9
- package/dist/DesignTokens/components/Typography.cjs +1 -1
- package/dist/DesignTokens/components/Typography.js +1 -1
- package/dist/Disclaimer/components/Container.cjs +1 -1
- package/dist/Disclaimer/components/Container.js +1 -1
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
- package/dist/DocumentRetrievalCard/components/Image.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Image.js +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/Layout.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.js +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.cjs +1 -1
- package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.js +1 -1
- package/dist/FloatingButton/FloatingButton.d.cts +2 -2
- package/dist/FloatingButton/FloatingButton.d.ts +2 -2
- package/dist/FloatingButton/components/Button.cjs +1 -1
- package/dist/FloatingButton/components/Button.js +1 -1
- package/dist/FloatingButton/components/Container.cjs +1 -1
- package/dist/FloatingButton/components/Container.js +1 -1
- package/dist/FloatingButton/components/Wrapper.cjs +1 -1
- package/dist/FloatingButton/components/Wrapper.js +1 -1
- 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 +1 -1
- package/dist/FloatingChat/components/Layout.js +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.cjs +1 -1
- package/dist/FloatingChat/components/ProductResultsModal.js +1 -1
- 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/Form/Form.cjs +1 -1
- package/dist/Form/Form.js +1 -1
- package/dist/Form/components/Layout.cjs +1 -1
- package/dist/Form/components/Layout.js +1 -1
- package/dist/Form/components/SubmitButtonItem.cjs +1 -1
- package/dist/Form/components/SubmitButtonItem.js +1 -1
- package/dist/Form/components/TextFieldItem.cjs +1 -1
- package/dist/Form/components/TextFieldItem.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
- package/dist/FullPageSalesAgent/components/Layout.cjs +1 -1
- package/dist/FullPageSalesAgent/components/Layout.js +1 -1
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +1 -1
- package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +1 -1
- package/dist/Image/Image.cjs +1 -1
- package/dist/Image/Image.d.cts +2 -2
- package/dist/Image/Image.d.ts +2 -2
- package/dist/Image/Image.js +1 -1
- package/dist/ImageGallery/ImageGallery.d.cts +2 -2
- package/dist/ImageGallery/components/Layout.cjs +1 -1
- package/dist/ImageGallery/components/Layout.js +1 -1
- package/dist/ImageGallery/utils/functions.cjs +1 -1
- package/dist/ImageGallery/utils/functions.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/Message/components/Layout.cjs +1 -1
- package/dist/Message/components/Layout.js +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
- package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
- package/dist/OrderLookupCard/components/Layout.cjs +1 -1
- package/dist/OrderLookupCard/components/Layout.js +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.cjs +1 -1
- package/dist/OrderLookupCard/components/MoreProductsOverlay.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageGridItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImageItem.js +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.cjs +1 -1
- package/dist/OrderLookupCard/components/ProductImagesGrid.js +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.cjs +1 -1
- package/dist/OrderLookupCard/components/StatusLabel.js +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.cjs +1 -1
- package/dist/OrderLookupCard/components/TrackOrderLink.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +14 -8
- package/dist/ProductCard/ProductCard.d.cts +3 -2
- package/dist/ProductCard/ProductCard.d.ts +3 -2
- package/dist/ProductCard/ProductCard.js +10 -4
- 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.cjs +1 -1
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButton/PromptButton.js +1 -1
- package/dist/PromptButton/components/Layout.cjs +1 -1
- package/dist/PromptButton/components/Layout.js +1 -1
- package/dist/PromptButton/components/Loading.cjs +1 -1
- package/dist/PromptButton/components/Loading.js +1 -1
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/Skeleton.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.cjs +1 -1
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Container.cjs +1 -1
- package/dist/ReviewCard/components/Container.js +1 -1
- package/dist/ReviewCard/components/Rating.cjs +1 -1
- package/dist/ReviewCard/components/Rating.js +1 -1
- 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 +1 -1
- package/dist/SalesAgentProductCard/components/Container.js +1 -1
- package/dist/SalesAgentProductCard/components/ProductImage.cjs +1 -1
- package/dist/SalesAgentProductCard/components/ProductImage.js +1 -1
- package/dist/SalesAgentProductCard/components/ProductName.cjs +1 -1
- package/dist/SalesAgentProductCard/components/ProductName.js +1 -1
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/components/Headline.cjs +1 -1
- package/dist/SocialProof/components/Headline.js +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
- package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -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/TextField/TextField.cjs +1 -1
- package/dist/TextField/TextField.js +1 -1
- package/dist/TextField/components/Input.cjs +1 -1
- package/dist/TextField/components/Input.js +1 -1
- package/dist/TextField/components/Layout.cjs +1 -1
- package/dist/TextField/components/Layout.js +1 -1
- package/dist/TextField/components/SendIcon.cjs +1 -1
- package/dist/TextField/components/SendIcon.js +1 -1
- package/dist/Title/Title.cjs +1 -1
- package/dist/Title/Title.js +1 -1
- package/dist/Title/components/Layout.cjs +1 -1
- package/dist/Title/components/Layout.js +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
- package/dist/Tokens/index.cjs +2 -2
- package/dist/Tokens/index.js +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- package/dist/WelcomeMessage/components/Container.cjs +1 -1
- package/dist/WelcomeMessage/components/Container.js +1 -1
- package/dist/WidgetTextField/WidgetTextField.cjs +3 -2
- 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 +4 -3
- package/dist/WidgetTextField/components/Container.js +4 -3
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.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.cjs +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.js +1 -1
- 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/dist/utils/resolveTheme.cjs +1 -1
- package/dist/utils/resolveTheme.js +1 -1
- 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/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
|
@@ -8,13 +8,15 @@ const require_Typography = require('../../Typography/Typography.cjs');
|
|
|
8
8
|
require('../../Typography/index.cjs');
|
|
9
9
|
const require_useAnimatedTextMinHeight = require('../../utils/useAnimatedTextMinHeight.cjs');
|
|
10
10
|
const require_useGetHeaderProperties = require('../hooks/useGetHeaderProperties.cjs');
|
|
11
|
+
const require_index$1 = require('../types/index.cjs');
|
|
11
12
|
let react = require("react");
|
|
12
13
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
14
|
|
|
14
15
|
//#region src/components/ProductCard/components/Header.tsx
|
|
15
|
-
const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration, textTransition, loop }) => {
|
|
16
|
+
const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration, textTransition, loop, variant = require_index$1.ProductCardVariant.DARK }) => {
|
|
16
17
|
const { stackClasses, headlineClasses } = require_useGetHeaderProperties.useGetHeaderProperties(italicizeHeadline);
|
|
17
18
|
const { measuringRef, minHeight } = require_useAnimatedTextMinHeight.useAnimatedTextMinHeight(animatedText);
|
|
19
|
+
const textColor = variant === require_index$1.ProductCardVariant.LIGHT ? require_index.TypographyColor.TEXT_PRIMARY : require_index.TypographyColor.TEXT_LIGHT;
|
|
18
20
|
const biggestText = (0, react.useMemo)(() => {
|
|
19
21
|
return animatedText.reduce((maxText, currText) => {
|
|
20
22
|
return currText.length > maxText.length ? currText : maxText;
|
|
@@ -22,15 +24,15 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
22
24
|
}, [animatedText]);
|
|
23
25
|
const animatedTextWrapper = (0, react.useCallback)((text) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
24
26
|
variant: require_index.TypographyVariant.B3_MD,
|
|
25
|
-
color:
|
|
27
|
+
color: textColor,
|
|
26
28
|
children: text
|
|
27
|
-
}), []);
|
|
29
|
+
}), [textColor]);
|
|
28
30
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
29
31
|
gap: 1,
|
|
30
32
|
className: stackClasses,
|
|
31
33
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
32
34
|
variant: require_index.TypographyVariant.H1_MD,
|
|
33
|
-
color:
|
|
35
|
+
color: textColor,
|
|
34
36
|
className: headlineClasses,
|
|
35
37
|
numberOfLines: 2,
|
|
36
38
|
children: headline
|
|
@@ -47,7 +49,7 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
47
49
|
},
|
|
48
50
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
49
51
|
variant: require_index.TypographyVariant.B3_MD,
|
|
50
|
-
color:
|
|
52
|
+
color: textColor,
|
|
51
53
|
children: biggestText
|
|
52
54
|
}) })
|
|
53
55
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -7,13 +7,15 @@ import { Typography } from "../../Typography/Typography.js";
|
|
|
7
7
|
import "../../Typography/index.js";
|
|
8
8
|
import { useAnimatedTextMinHeight } from "../../utils/useAnimatedTextMinHeight.js";
|
|
9
9
|
import { useGetHeaderProperties } from "../hooks/useGetHeaderProperties.js";
|
|
10
|
+
import { ProductCardVariant } from "../types/index.js";
|
|
10
11
|
import { useCallback, useMemo } from "react";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
|
|
13
14
|
//#region src/components/ProductCard/components/Header.tsx
|
|
14
|
-
const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration, textTransition, loop }) => {
|
|
15
|
+
const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration, textTransition, loop, variant = ProductCardVariant.DARK }) => {
|
|
15
16
|
const { stackClasses, headlineClasses } = useGetHeaderProperties(italicizeHeadline);
|
|
16
17
|
const { measuringRef, minHeight } = useAnimatedTextMinHeight(animatedText);
|
|
18
|
+
const textColor = variant === ProductCardVariant.LIGHT ? TypographyColor.TEXT_PRIMARY : TypographyColor.TEXT_LIGHT;
|
|
17
19
|
const biggestText = useMemo(() => {
|
|
18
20
|
return animatedText.reduce((maxText, currText) => {
|
|
19
21
|
return currText.length > maxText.length ? currText : maxText;
|
|
@@ -21,15 +23,15 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
21
23
|
}, [animatedText]);
|
|
22
24
|
const animatedTextWrapper = useCallback((text) => /* @__PURE__ */ jsx(Typography, {
|
|
23
25
|
variant: TypographyVariant.B3_MD,
|
|
24
|
-
color:
|
|
26
|
+
color: textColor,
|
|
25
27
|
children: text
|
|
26
|
-
}), []);
|
|
28
|
+
}), [textColor]);
|
|
27
29
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
28
30
|
gap: 1,
|
|
29
31
|
className: stackClasses,
|
|
30
32
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
31
33
|
variant: TypographyVariant.H1_MD,
|
|
32
|
-
color:
|
|
34
|
+
color: textColor,
|
|
33
35
|
className: headlineClasses,
|
|
34
36
|
numberOfLines: 2,
|
|
35
37
|
children: headline
|
|
@@ -46,7 +48,7 @@ const Header = ({ headline, italicizeHeadline, animatedText, textTypingDuration,
|
|
|
46
48
|
},
|
|
47
49
|
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Typography, {
|
|
48
50
|
variant: TypographyVariant.B3_MD,
|
|
49
|
-
color:
|
|
51
|
+
color: textColor,
|
|
50
52
|
children: biggestText
|
|
51
53
|
}) })
|
|
52
54
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_Container = require('../../Container/Container.cjs');
|
|
3
3
|
require('../../Container/index.cjs');
|
|
4
|
+
const require_index = require('../types/index.cjs');
|
|
4
5
|
const require_useGetPosterProperties = require('../hooks/useGetPosterProperties.cjs');
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
7
|
|
|
7
8
|
//#region src/components/ProductCard/components/Poster.tsx
|
|
8
|
-
const Poster = ({ children, imageSrc, fallbackColor }) => {
|
|
9
|
-
const { containerStyles, containerClasses } = require_useGetPosterProperties.useGetPosterProperties(imageSrc, fallbackColor);
|
|
9
|
+
const Poster = ({ children, imageSrc, fallbackColor, variant = require_index.ProductCardVariant.DARK }) => {
|
|
10
|
+
const { containerStyles, containerClasses } = require_useGetPosterProperties.useGetPosterProperties(imageSrc, fallbackColor, variant);
|
|
10
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Container.Container, {
|
|
11
12
|
className: containerClasses,
|
|
12
13
|
style: containerStyles,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Container } from "../../Container/Container.js";
|
|
2
2
|
import "../../Container/index.js";
|
|
3
|
+
import { ProductCardVariant } from "../types/index.js";
|
|
3
4
|
import { useGetPosterProperties } from "../hooks/useGetPosterProperties.js";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
|
|
6
7
|
//#region src/components/ProductCard/components/Poster.tsx
|
|
7
|
-
const Poster = ({ children, imageSrc, fallbackColor }) => {
|
|
8
|
-
const { containerStyles, containerClasses } = useGetPosterProperties(imageSrc, fallbackColor);
|
|
8
|
+
const Poster = ({ children, imageSrc, fallbackColor, variant = ProductCardVariant.DARK }) => {
|
|
9
|
+
const { containerStyles, containerClasses } = useGetPosterProperties(imageSrc, fallbackColor, variant);
|
|
9
10
|
return /* @__PURE__ */ jsx(Container, {
|
|
10
11
|
className: containerClasses,
|
|
11
12
|
style: containerStyles,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
const require_index = require('../types/index.cjs');
|
|
1
2
|
|
|
2
3
|
//#region src/components/ProductCard/hooks/useGetPosterProperties.ts
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const DARK_OVERLAY_OPACITY = "60";
|
|
5
|
+
const LIGHT_OVERLAY_OPACITY = "CC";
|
|
6
|
+
const useGetPosterProperties = (imageSrc, fallbackColor, variant = require_index.ProductCardVariant.DARK) => {
|
|
7
|
+
const overlayColor = `var(--envive-product-card-overlay, ${variant === require_index.ProductCardVariant.LIGHT ? `#FFFFFF${LIGHT_OVERLAY_OPACITY}` : `#000000${DARK_OVERLAY_OPACITY}`})`;
|
|
6
8
|
return {
|
|
7
9
|
containerStyles: { background: imageSrc ? `linear-gradient(${overlayColor}, ${overlayColor}) 0% 0%/cover, url('${imageSrc}') 50% 0%/cover` : fallbackColor || "black" },
|
|
8
10
|
containerClasses: "envive-tw-px-4 envive-tw-py-10 envive-tw-w-full envive-tw-h-full envive-tw-flex envive-tw-flex-col envive-tw-justify-center"
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { ProductCardVariant } from "../types/index.js";
|
|
2
|
+
|
|
1
3
|
//#region src/components/ProductCard/hooks/useGetPosterProperties.ts
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
4
|
+
const DARK_OVERLAY_OPACITY = "60";
|
|
5
|
+
const LIGHT_OVERLAY_OPACITY = "CC";
|
|
6
|
+
const useGetPosterProperties = (imageSrc, fallbackColor, variant = ProductCardVariant.DARK) => {
|
|
7
|
+
const overlayColor = `var(--envive-product-card-overlay, ${variant === ProductCardVariant.LIGHT ? `#FFFFFF${LIGHT_OVERLAY_OPACITY}` : `#000000${DARK_OVERLAY_OPACITY}`})`;
|
|
5
8
|
return {
|
|
6
9
|
containerStyles: { background: imageSrc ? `linear-gradient(${overlayColor}, ${overlayColor}) 0% 0%/cover, url('${imageSrc}') 50% 0%/cover` : fallbackColor || "black" },
|
|
7
10
|
containerClasses: "envive-tw-px-4 envive-tw-py-10 envive-tw-w-full envive-tw-h-full envive-tw-flex envive-tw-flex-col envive-tw-justify-center"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const require_index = require('./types/index.cjs');
|
|
1
2
|
const require_ProductCard = require('./ProductCard.cjs');
|
|
2
3
|
|
|
3
|
-
exports.ProductCard = require_ProductCard.ProductCard;
|
|
4
|
+
exports.ProductCard = require_ProductCard.ProductCard;
|
|
5
|
+
exports.ProductCardVariant = require_index.ProductCardVariant;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InputProps, ProductCardProps } from "./types/index.cjs";
|
|
1
|
+
import { InputProps, ProductCardProps, ProductCardVariant } from "./types/index.cjs";
|
|
2
2
|
import { ProductCard } from "./ProductCard.cjs";
|
|
3
|
-
export { type InputProps, ProductCard, type ProductCardProps };
|
|
3
|
+
export { type InputProps, ProductCard, type ProductCardProps, ProductCardVariant };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InputProps, ProductCardProps } from "./types/index.js";
|
|
1
|
+
import { InputProps, ProductCardProps, ProductCardVariant } from "./types/index.js";
|
|
2
2
|
import { ProductCard } from "./ProductCard.js";
|
|
3
|
-
export { type InputProps, ProductCard, type ProductCardProps };
|
|
3
|
+
export { type InputProps, ProductCard, type ProductCardProps, ProductCardVariant };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ProductCard/types/index.ts
|
|
3
|
+
let ProductCardVariant = /* @__PURE__ */ function(ProductCardVariant$1) {
|
|
4
|
+
ProductCardVariant$1["DARK"] = "dark";
|
|
5
|
+
ProductCardVariant$1["LIGHT"] = "light";
|
|
6
|
+
return ProductCardVariant$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.ProductCardVariant = ProductCardVariant;
|
|
@@ -3,7 +3,10 @@ import { PromptButtonVariant } from "../../PromptButton/types/index.cjs";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductCard/types/index.d.ts
|
|
6
|
-
|
|
6
|
+
declare enum ProductCardVariant {
|
|
7
|
+
DARK = "dark",
|
|
8
|
+
LIGHT = "light",
|
|
9
|
+
}
|
|
7
10
|
/**
|
|
8
11
|
* Props for the Carousel component.
|
|
9
12
|
*/
|
|
@@ -71,6 +74,8 @@ interface HeaderProps {
|
|
|
71
74
|
textTransition?: number;
|
|
72
75
|
/** Whether the animation should loop continuously. */
|
|
73
76
|
loop?: boolean;
|
|
77
|
+
/** Controls text color: dark uses text-light (white), light uses text-primary. */
|
|
78
|
+
variant?: ProductCardVariant;
|
|
74
79
|
}
|
|
75
80
|
/**
|
|
76
81
|
* Props for the Poster component.
|
|
@@ -82,6 +87,8 @@ interface PosterProps {
|
|
|
82
87
|
imageSrc: string;
|
|
83
88
|
/** Fallback background color to display if the image fails to load. */
|
|
84
89
|
fallbackColor?: string;
|
|
90
|
+
/** Controls overlay color on the image: dark uses black overlay, light uses white overlay. */
|
|
91
|
+
variant?: ProductCardVariant;
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
94
|
* Props for the Input component.
|
|
@@ -109,6 +116,9 @@ interface InputProps {
|
|
|
109
116
|
* Combines props from Input, Carousel, Header, and Poster components.
|
|
110
117
|
* Excludes the 'children' prop from PosterProps.
|
|
111
118
|
*/
|
|
112
|
-
interface ProductCardProps extends InputProps, CarouselProps, HeaderProps, Omit<PosterProps, 'children'> {
|
|
119
|
+
interface ProductCardProps extends InputProps, CarouselProps, HeaderProps, Omit<PosterProps, 'children'> {
|
|
120
|
+
/** Controls text color: dark uses text-light (white), light uses text-primary. Defaults to dark. */
|
|
121
|
+
variant?: ProductCardVariant;
|
|
122
|
+
}
|
|
113
123
|
//#endregion
|
|
114
|
-
export { InputProps, ProductCardProps };
|
|
124
|
+
export { InputProps, ProductCardProps, ProductCardVariant };
|
|
@@ -3,7 +3,10 @@ import { PromptButtonVariant } from "../../PromptButton/types/index.js";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/ProductCard/types/index.d.ts
|
|
6
|
-
|
|
6
|
+
declare enum ProductCardVariant {
|
|
7
|
+
DARK = "dark",
|
|
8
|
+
LIGHT = "light",
|
|
9
|
+
}
|
|
7
10
|
/**
|
|
8
11
|
* Props for the Carousel component.
|
|
9
12
|
*/
|
|
@@ -71,6 +74,8 @@ interface HeaderProps {
|
|
|
71
74
|
textTransition?: number;
|
|
72
75
|
/** Whether the animation should loop continuously. */
|
|
73
76
|
loop?: boolean;
|
|
77
|
+
/** Controls text color: dark uses text-light (white), light uses text-primary. */
|
|
78
|
+
variant?: ProductCardVariant;
|
|
74
79
|
}
|
|
75
80
|
/**
|
|
76
81
|
* Props for the Poster component.
|
|
@@ -82,6 +87,8 @@ interface PosterProps {
|
|
|
82
87
|
imageSrc: string;
|
|
83
88
|
/** Fallback background color to display if the image fails to load. */
|
|
84
89
|
fallbackColor?: string;
|
|
90
|
+
/** Controls overlay color on the image: dark uses black overlay, light uses white overlay. */
|
|
91
|
+
variant?: ProductCardVariant;
|
|
85
92
|
}
|
|
86
93
|
/**
|
|
87
94
|
* Props for the Input component.
|
|
@@ -109,6 +116,9 @@ interface InputProps {
|
|
|
109
116
|
* Combines props from Input, Carousel, Header, and Poster components.
|
|
110
117
|
* Excludes the 'children' prop from PosterProps.
|
|
111
118
|
*/
|
|
112
|
-
interface ProductCardProps extends InputProps, CarouselProps, HeaderProps, Omit<PosterProps, 'children'> {
|
|
119
|
+
interface ProductCardProps extends InputProps, CarouselProps, HeaderProps, Omit<PosterProps, 'children'> {
|
|
120
|
+
/** Controls text color: dark uses text-light (white), light uses text-primary. Defaults to dark. */
|
|
121
|
+
variant?: ProductCardVariant;
|
|
122
|
+
}
|
|
113
123
|
//#endregion
|
|
114
|
-
export { InputProps, ProductCardProps };
|
|
124
|
+
export { InputProps, ProductCardProps, ProductCardVariant };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/components/ProductCard/types/index.ts
|
|
2
|
+
let ProductCardVariant = /* @__PURE__ */ function(ProductCardVariant$1) {
|
|
3
|
+
ProductCardVariant$1["DARK"] = "dark";
|
|
4
|
+
ProductCardVariant$1["LIGHT"] = "light";
|
|
5
|
+
return ProductCardVariant$1;
|
|
6
|
+
}({});
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ProductCardVariant };
|
|
@@ -5,9 +5,9 @@ const require_index = require('./components/index.cjs');
|
|
|
5
5
|
const require_useGetBoldTextProperties = require('./hooks/useGetBoldTextProperties.cjs');
|
|
6
6
|
const require_useGetVariantColorsProperties = require('./hooks/useGetVariantColorsProperties.cjs');
|
|
7
7
|
const require_functions = require('./utils/functions.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
9
|
let classnames = require("classnames");
|
|
9
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
let __envive_ai_react_icons_FourPointStar = require("@envive-ai/react-icons/FourPointStar");
|
|
12
12
|
__envive_ai_react_icons_FourPointStar = require_rolldown_runtime.__toESM(__envive_ai_react_icons_FourPointStar);
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -22,6 +22,6 @@ declare const PromptButton: ({
|
|
|
22
22
|
onTouchEnd,
|
|
23
23
|
ariaLabel,
|
|
24
24
|
ariaDescribedBy
|
|
25
|
-
}: PromptButtonProps) =>
|
|
25
|
+
}: PromptButtonProps) => react_jsx_runtime16.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PromptButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButton/PromptButton.d.ts
|
|
5
5
|
declare const PromptButton: ({
|
|
@@ -22,6 +22,6 @@ declare const PromptButton: ({
|
|
|
22
22
|
onTouchEnd,
|
|
23
23
|
ariaLabel,
|
|
24
24
|
ariaDescribedBy
|
|
25
|
-
}: PromptButtonProps) =>
|
|
25
|
+
}: PromptButtonProps) => react_jsx_runtime18.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PromptButton };
|
|
@@ -4,8 +4,8 @@ import { PromptButtonComponents } from "./components/index.js";
|
|
|
4
4
|
import { useGetBoldTextProperties } from "./hooks/useGetBoldTextProperties.js";
|
|
5
5
|
import { useGetVariantColorsProperties } from "./hooks/useGetVariantColorsProperties.js";
|
|
6
6
|
import { shouldShowIcon } from "./utils/functions.js";
|
|
7
|
-
import classNames from "classnames";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import classNames from "classnames";
|
|
9
9
|
import FourPointStar from "@envive-ai/react-icons/FourPointStar";
|
|
10
10
|
|
|
11
11
|
//#region src/components/PromptButton/PromptButton.tsx
|
|
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
3
|
require('../../Stack/index.cjs');
|
|
4
4
|
const require_useGetLayoutBaseProperties = require('../hooks/useGetLayoutBaseProperties.cjs');
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
6
|
let classnames = require("classnames");
|
|
6
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
|
|
9
9
|
//#region src/components/PromptButton/components/Layout.tsx
|
|
10
10
|
const Layout = ({ icon, label, id, testId, className, style, disabled = false, isLoading = false, loadingComponent, onClick, onHover, onFocus, onMouseDown, onMouseUp, onTouchStart, onTouchEnd, ariaLabel, ariaDescribedBy }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
2
|
import "../../Stack/index.js";
|
|
3
3
|
import { useGetLayoutBaseProperties } from "../hooks/useGetLayoutBaseProperties.js";
|
|
4
|
-
import classNames from "classnames";
|
|
5
4
|
import { jsxs } from "react/jsx-runtime";
|
|
5
|
+
import classNames from "classnames";
|
|
6
6
|
|
|
7
7
|
//#region src/components/PromptButton/components/Layout.tsx
|
|
8
8
|
const Layout = ({ icon, label, id, testId, className, style, disabled = false, isLoading = false, loadingComponent, onClick, onHover, onFocus, onMouseDown, onMouseUp, onTouchStart, onTouchEnd, ariaLabel, ariaDescribedBy }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
2
3
|
let classnames = require("classnames");
|
|
3
4
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
|
|
6
6
|
//#region src/components/PromptButton/components/Loading.tsx
|
|
7
7
|
const Loading = ({ className }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -27,6 +27,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
27
27
|
handleTextFieldClick,
|
|
28
28
|
onTranscriptionStarted,
|
|
29
29
|
onTranscriptionCompleted
|
|
30
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
30
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime23.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { PromptButtonCarouselWithImage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
|
|
5
5
|
declare const PromptButtonCarouselWithImage: ({
|
|
@@ -27,6 +27,6 @@ declare const PromptButtonCarouselWithImage: ({
|
|
|
27
27
|
handleTextFieldClick,
|
|
28
28
|
onTranscriptionStarted,
|
|
29
29
|
onTranscriptionCompleted
|
|
30
|
-
}: PromptButtonCarouselWithImageProps) =>
|
|
30
|
+
}: PromptButtonCarouselWithImageProps) => react_jsx_runtime27.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { PromptButtonCarouselWithImage };
|
|
@@ -7,9 +7,9 @@ const require_functions = require('../../SocialProof/utils/functions.cjs');
|
|
|
7
7
|
const require_useDragToScroll = require('../../utils/useDragToScroll.cjs');
|
|
8
8
|
const require_useHorizontalWheelScroll = require('../../utils/useHorizontalWheelScroll.cjs');
|
|
9
9
|
let react = require("react");
|
|
10
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let classnames = require("classnames");
|
|
11
12
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
12
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
13
13
|
|
|
14
14
|
//#region src/components/PromptButtonCarouselWithImage/components/Layout.tsx
|
|
15
15
|
const Layout = ({ id, testId, className, style, title, promptButtons, image, textField, hideTextField, onPromptDrag }) => {
|
|
@@ -6,8 +6,8 @@ import { calculateWidthImageGallery } from "../../SocialProof/utils/functions.js
|
|
|
6
6
|
import { useDragToScroll } from "../../utils/useDragToScroll.js";
|
|
7
7
|
import { useHorizontalWheelScroll } from "../../utils/useHorizontalWheelScroll.js";
|
|
8
8
|
import { cloneElement, isValidElement } from "react";
|
|
9
|
-
import classNames from "classnames";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import classNames from "classnames";
|
|
11
11
|
|
|
12
12
|
//#region src/components/PromptButtonCarouselWithImage/components/Layout.tsx
|
|
13
13
|
const Layout = ({ id, testId, className, style, title, promptButtons, image, textField, hideTextField, onPromptDrag }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
2
3
|
let classnames = require("classnames");
|
|
3
4
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
|
|
6
6
|
//#region src/components/PromptButtonCarouselWithImage/components/Skeleton.tsx
|
|
7
7
|
const Skeleton = ({ className, style }) => {
|
|
@@ -16,8 +16,8 @@ const require_useScrollSync = require('./hooks/useScrollSync.cjs');
|
|
|
16
16
|
require('./hooks/index.cjs');
|
|
17
17
|
const require_functions = require('./utils/functions.cjs');
|
|
18
18
|
let react = require("react");
|
|
19
|
-
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
20
19
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
20
|
+
let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
|
|
21
21
|
|
|
22
22
|
//#region src/components/PromptCarousel/PromptCarousel.tsx
|
|
23
23
|
const PromptCarousel = ({ id, theme = require_theme.Theme.GLOBAL_CUSTOM, testId, className, style, isLoading = false, promptButtonTexts, promptButtonType = require_PromptButton_types_index.PromptButtonVariant.LIGHT, boldFirstButton = false, handleButtonClick, handleButtonHover, handleButtonFocus, handleButtonMouseUp, handleButtonMouseDown, handleButtonTouchStart, handleButtonTouchEnd, handleButtonDrag, promptCarouselRows = require_PromptCarousel_types_types.PromptCarouselRows.ALWAYS_ONE, animationSpeed = require_PromptCarousel_types_types.AnimationSpeed.NONE, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, role = "region" }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/PromptCarousel.d.ts
|
|
5
5
|
declare const PromptCarousel: ({
|
|
@@ -26,6 +26,6 @@ declare const PromptCarousel: ({
|
|
|
26
26
|
"aria-labelledby": ariaLabelledBy,
|
|
27
27
|
"aria-describedby": ariaDescribedBy,
|
|
28
28
|
role
|
|
29
|
-
}: PromptCarouselProps) =>
|
|
29
|
+
}: PromptCarouselProps) => react_jsx_runtime20.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { PromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/PromptCarousel/PromptCarousel.d.ts
|
|
5
5
|
declare const PromptCarousel: ({
|
|
@@ -26,6 +26,6 @@ declare const PromptCarousel: ({
|
|
|
26
26
|
"aria-labelledby": ariaLabelledBy,
|
|
27
27
|
"aria-describedby": ariaDescribedBy,
|
|
28
28
|
role
|
|
29
|
-
}: PromptCarouselProps) =>
|
|
29
|
+
}: PromptCarouselProps) => react_jsx_runtime16.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { PromptCarousel };
|
|
@@ -15,8 +15,8 @@ import { useScrollSync } from "./hooks/useScrollSync.js";
|
|
|
15
15
|
import "./hooks/index.js";
|
|
16
16
|
import { isAnimated, removeSpaces, shouldShowTwoRows } from "./utils/functions.js";
|
|
17
17
|
import { useCallback, useRef } from "react";
|
|
18
|
-
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
19
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { useScrollContainer } from "react-indiana-drag-scroll";
|
|
20
20
|
|
|
21
21
|
//#region src/components/PromptCarousel/PromptCarousel.tsx
|
|
22
22
|
const PromptCarousel = ({ id, theme = Theme.GLOBAL_CUSTOM, testId, className, style, isLoading = false, promptButtonTexts, promptButtonType = PromptButtonVariant.LIGHT, boldFirstButton = false, handleButtonClick, handleButtonHover, handleButtonFocus, handleButtonMouseUp, handleButtonMouseDown, handleButtonTouchStart, handleButtonTouchEnd, handleButtonDrag, promptCarouselRows = PromptCarouselRows.ALWAYS_ONE, animationSpeed = AnimationSpeed.NONE, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, role = "region" }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ReviewCard/ReviewCard.d.ts
|
|
5
5
|
|
|
@@ -27,6 +27,6 @@ declare const ReviewCard: ({
|
|
|
27
27
|
verifiedBuyerLabel,
|
|
28
28
|
onExpand,
|
|
29
29
|
onCollapse
|
|
30
|
-
}: ReviewCardProps) =>
|
|
30
|
+
}: ReviewCardProps) => react_jsx_runtime12.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ReviewCard };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ReviewCard/ReviewCard.d.ts
|
|
5
5
|
|
|
@@ -27,6 +27,6 @@ declare const ReviewCard: ({
|
|
|
27
27
|
verifiedBuyerLabel,
|
|
28
28
|
onExpand,
|
|
29
29
|
onCollapse
|
|
30
|
-
}: ReviewCardProps) =>
|
|
30
|
+
}: ReviewCardProps) => react_jsx_runtime10.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ReviewCard };
|
|
@@ -6,9 +6,9 @@ require('../../Container/index.cjs');
|
|
|
6
6
|
const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cjs');
|
|
7
7
|
const require_useGetPaddingProperties = require('../hooks/useGetPaddingProperties.cjs');
|
|
8
8
|
const require_useGetCardWidthProperties = require('../hooks/useGetCardWidthProperties.cjs');
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
let classnames = require("classnames");
|
|
10
11
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
|
|
13
13
|
//#region src/components/ReviewCard/components/Container.tsx
|
|
14
14
|
const Container$1 = ({ name, reviewText, rating, readMoreButton, id, testId, className, style, theme, ariaLabel }) => {
|
|
@@ -5,8 +5,8 @@ import "../../Container/index.js";
|
|
|
5
5
|
import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
|
|
6
6
|
import { useGetPaddingProperties } from "../hooks/useGetPaddingProperties.js";
|
|
7
7
|
import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
|
|
8
|
-
import classNames from "classnames";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import classNames from "classnames";
|
|
10
10
|
|
|
11
11
|
//#region src/components/ReviewCard/components/Container.tsx
|
|
12
12
|
const Container$1 = ({ name, reviewText, rating, readMoreButton, id, testId, className, style, theme, ariaLabel }) => {
|
|
@@ -6,9 +6,9 @@ const require_Typography = require('../../Typography/Typography.cjs');
|
|
|
6
6
|
require('../../Typography/index.cjs');
|
|
7
7
|
const require_StarIcon = require('./StarIcon.cjs');
|
|
8
8
|
const require_useGetRatingBackgroundProperties = require('../hooks/useGetRatingBackgroundProperties.cjs');
|
|
9
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
10
|
let classnames = require("classnames");
|
|
10
11
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
11
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
12
|
|
|
13
13
|
//#region src/components/ReviewCard/components/Rating.tsx
|
|
14
14
|
const Rating = ({ rating, theme, style }) => {
|
|
@@ -5,8 +5,8 @@ import { Typography } from "../../Typography/Typography.js";
|
|
|
5
5
|
import "../../Typography/index.js";
|
|
6
6
|
import { StarIcon } from "./StarIcon.js";
|
|
7
7
|
import { useGetRatingBackgroundProperties } from "../hooks/useGetRatingBackgroundProperties.js";
|
|
8
|
-
import classNames from "classnames";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import classNames from "classnames";
|
|
10
10
|
|
|
11
11
|
//#region src/components/ReviewCard/components/Rating.tsx
|
|
12
12
|
const Rating = ({ rating, theme, style }) => {
|
|
@@ -5,9 +5,9 @@ const require_Typography = require('../../Typography/Typography.cjs');
|
|
|
5
5
|
require('../../Typography/index.cjs');
|
|
6
6
|
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
7
7
|
const require_useGetReadMoreTypographyProperties = require('../hooks/useGetReadMoreTypographyProperties.cjs');
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
9
|
let classnames = require("classnames");
|
|
9
10
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
10
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
11
|
let __envive_ai_react_icons_ChevronDown = require("@envive-ai/react-icons/ChevronDown");
|
|
12
12
|
__envive_ai_react_icons_ChevronDown = require_rolldown_runtime.__toESM(__envive_ai_react_icons_ChevronDown);
|
|
13
13
|
|
|
@@ -4,8 +4,8 @@ import { Typography } from "../../Typography/Typography.js";
|
|
|
4
4
|
import "../../Typography/index.js";
|
|
5
5
|
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
6
6
|
import { useGetReadMoreTypographyProperties } from "../hooks/useGetReadMoreTypographyProperties.js";
|
|
7
|
-
import classNames from "classnames";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import classNames from "classnames";
|
|
9
9
|
import ChevronDown from "@envive-ai/react-icons/ChevronDown";
|
|
10
10
|
|
|
11
11
|
//#region src/components/ReviewCard/components/ReadMoreButton.tsx
|