@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,9 +1,10 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
6
6
|
theme,
|
|
7
|
+
variant,
|
|
7
8
|
imageSrc,
|
|
8
9
|
headline,
|
|
9
10
|
italicizeHeadline,
|
|
@@ -27,6 +28,6 @@ declare const ProductCard: ({
|
|
|
27
28
|
onInputClick,
|
|
28
29
|
onTranscriptionStarted,
|
|
29
30
|
onTranscriptionCompleted
|
|
30
|
-
}: ProductCardProps) =>
|
|
31
|
+
}: ProductCardProps) => react_jsx_runtime4.JSX.Element;
|
|
31
32
|
//#endregion
|
|
32
33
|
export { ProductCard };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ProductCardProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ProductCard/ProductCard.d.ts
|
|
5
5
|
declare const ProductCard: ({
|
|
6
6
|
theme,
|
|
7
|
+
variant,
|
|
7
8
|
imageSrc,
|
|
8
9
|
headline,
|
|
9
10
|
italicizeHeadline,
|
|
@@ -27,6 +28,6 @@ declare const ProductCard: ({
|
|
|
27
28
|
onInputClick,
|
|
28
29
|
onTranscriptionStarted,
|
|
29
30
|
onTranscriptionCompleted
|
|
30
|
-
}: ProductCardProps) =>
|
|
31
|
+
}: ProductCardProps) => react_jsx_runtime18.JSX.Element;
|
|
31
32
|
//#endregion
|
|
32
33
|
export { ProductCard };
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../Tokens/index.js";
|
|
3
|
-
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
4
2
|
import { TypographyColor } from "../Typography/types/index.js";
|
|
3
|
+
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
4
|
+
import "../Tokens/index.js";
|
|
5
5
|
import { WidgetTextField } from "../WidgetTextField/WidgetTextField.js";
|
|
6
6
|
import "../WidgetTextField/index.js";
|
|
7
|
+
import { ProductCardVariant } from "./types/index.js";
|
|
7
8
|
import { ProductCardWidgetComponents } from "./components/index.js";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import classNames from "classnames";
|
|
10
11
|
|
|
11
12
|
//#region src/components/ProductCard/ProductCard.tsx
|
|
12
|
-
const ProductCard = ({ 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 }) => {
|
|
13
|
+
const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, variant = 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 }) => {
|
|
13
14
|
const resolvedTheme = resolveTheme(theme);
|
|
15
|
+
const isLight = variant === ProductCardVariant.LIGHT;
|
|
16
|
+
const minimalTextColor = isLight ? TypographyColor.TEXT_PRIMARY : TypographyColor.TEXT_LIGHT;
|
|
14
17
|
return /* @__PURE__ */ jsxs(ProductCardWidgetComponents.Poster, {
|
|
15
18
|
imageSrc,
|
|
16
19
|
fallbackColor,
|
|
20
|
+
variant,
|
|
17
21
|
children: [
|
|
18
22
|
/* @__PURE__ */ jsx(ProductCardWidgetComponents.Header, {
|
|
19
23
|
headline,
|
|
@@ -21,7 +25,8 @@ const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, imageSrc, headline, italiciz
|
|
|
21
25
|
animatedText,
|
|
22
26
|
textTypingDuration,
|
|
23
27
|
textTransition,
|
|
24
|
-
loop
|
|
28
|
+
loop,
|
|
29
|
+
variant
|
|
25
30
|
}),
|
|
26
31
|
/* @__PURE__ */ jsx(ProductCardWidgetComponents.Carousel, {
|
|
27
32
|
theme: resolvedTheme,
|
|
@@ -39,12 +44,13 @@ const ProductCard = ({ theme = Theme.GLOBAL_CUSTOM, imageSrc, headline, italiciz
|
|
|
39
44
|
/* @__PURE__ */ jsx(WidgetTextField, {
|
|
40
45
|
theme: resolvedTheme,
|
|
41
46
|
minimalFrame: resolvedTheme === Theme.MINIMAL ? "bottom-only" : "full",
|
|
47
|
+
minimalBorderVariant: isLight ? "primary" : "light",
|
|
42
48
|
placeholder,
|
|
43
49
|
onClick: onInputClick,
|
|
44
50
|
enableVoiceInput: voiceInputEnabled,
|
|
45
51
|
onTranscriptionStarted,
|
|
46
52
|
onTranscriptionCompleted,
|
|
47
|
-
textColor: resolvedTheme === Theme.MINIMAL ?
|
|
53
|
+
textColor: resolvedTheme === Theme.MINIMAL ? minimalTextColor : TypographyColor.TEXT_SECONDARY,
|
|
48
54
|
className: classNames(resolvedTheme === Theme.MINIMAL ? "envive-tw-bg-transparent" : "envive-tw-bg-background-light")
|
|
49
55
|
})
|
|
50
56
|
]
|
|
@@ -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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 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_runtime11.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_runtime0 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_runtime0.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { PromptButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 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_runtime15.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_runtime5 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_runtime5.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { PromptButtonCarouselWithImage };
|
|
@@ -1,7 +1,7 @@
|
|
|
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');
|
|
4
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
5
5
|
const require_PromptButton = require('../../PromptButton/PromptButton.cjs');
|
|
6
6
|
require('../../PromptButton/index.cjs');
|
|
7
7
|
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
1
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
2
|
import "../../Stack/index.js";
|
|
3
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
4
4
|
import { PromptButton } from "../../PromptButton/PromptButton.js";
|
|
5
5
|
import "../../PromptButton/index.js";
|
|
6
6
|
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.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
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
9
9
|
const require_PromptButton = require('../PromptButton/PromptButton.cjs');
|
|
10
10
|
require('../PromptButton/index.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PromptCarouselProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 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_runtime12.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_runtime19 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_runtime19.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { PromptCarousel };
|
|
@@ -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 { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
8
8
|
import { PromptButton } from "../PromptButton/PromptButton.js";
|
|
9
9
|
import "../PromptButton/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReviewCardProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 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_runtime5.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_runtime14 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_runtime14.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ReviewCard };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Container = require('../../Container/Container.cjs');
|
|
3
|
-
require('../../Container/index.cjs');
|
|
4
2
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
3
|
require('../../Stack/index.cjs');
|
|
4
|
+
const require_Container = require('../../Container/Container.cjs');
|
|
5
|
+
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');
|
|
@@ -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 { useGetPaddingProperties } from "../hooks/useGetPaddingProperties.js";
|
|
7
7
|
import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
4
3
|
const require_index = require('../../Typography/types/index.cjs');
|
|
5
4
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
6
5
|
require('../../Typography/index.cjs');
|
|
6
|
+
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
7
7
|
const require_useGetReadMoreTypographyProperties = require('../hooks/useGetReadMoreTypographyProperties.cjs');
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let classnames = require("classnames");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
3
2
|
import { TypographyColor } from "../../Typography/types/index.js";
|
|
4
3
|
import { Typography } from "../../Typography/Typography.js";
|
|
5
4
|
import "../../Typography/index.js";
|
|
5
|
+
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
6
6
|
import { useGetReadMoreTypographyProperties } from "../hooks/useGetReadMoreTypographyProperties.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import classNames from "classnames";
|