@envive-ai/react-toolkit-v3 0.3.40 → 0.3.42
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/Carousel/Carousel.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/components/index.d.cts +2 -2
- 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/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/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/Container/Container.d.cts +174 -174
- package/dist/Container/Container.d.ts +174 -174
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
- 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/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/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButton/hooks/useGetBorderColorsProperties.cjs +1 -1
- package/dist/PromptButton/hooks/useGetBorderColorsProperties.js +1 -1
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.cjs +2 -0
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.js +2 -0
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +9 -4
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +11 -6
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/components/Name.cjs +1 -1
- package/dist/ReviewCard/components/Name.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/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
- package/dist/SocialProof/SocialProof.cjs +40 -53
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +40 -53
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +3 -4
- package/dist/SocialProof/components/LayoutFourHorizontal.js +3 -4
- package/dist/SocialProof/components/LayoutSingle.cjs +5 -4
- package/dist/SocialProof/components/LayoutSingle.js +5 -4
- 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.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +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/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/FullPageSalesAgent/FullPageSalesAgent.tsx +1 -1
- package/src/components/PromptButton/hooks/useGetBorderColorsProperties.ts +1 -1
- package/src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx +2 -0
- package/src/components/PromptButtonCarouselWithImage/components/Layout.tsx +17 -10
- package/src/components/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.tsx +1 -1
- package/src/components/ReviewCard/components/Name.tsx +1 -1
- package/src/components/SocialProof/SocialProof.tsx +41 -48
- package/src/components/SocialProof/components/LayoutFourHorizontal.tsx +5 -3
- package/src/components/SocialProof/components/LayoutSingle.tsx +6 -3
|
@@ -1,16 +1,17 @@
|
|
|
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_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
3
4
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
5
|
require('../Tokens/index.cjs');
|
|
5
6
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
6
7
|
require('../PromptButton/index.cjs');
|
|
7
|
-
const require_utils_useCheckIsMobile = require('../utils/useCheckIsMobile.cjs');
|
|
8
8
|
const require_PromptCarousel_types_types = require('../PromptCarousel/types/types.cjs');
|
|
9
9
|
require('../PromptCarousel/index.cjs');
|
|
10
10
|
const require_types = require('../WidgetTextField/types/types.cjs');
|
|
11
11
|
const require_types$1 = require('../WidgetWrapper/types/types.cjs');
|
|
12
12
|
require('../WidgetWrapper/index.cjs');
|
|
13
13
|
const require_WidgetWrapperWithTitle = require('../WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs');
|
|
14
|
+
const require_useGetContentSize = require('../utils/useGetContentSize.cjs');
|
|
14
15
|
const require_types$2 = require('../ImageGallery/types/types.cjs');
|
|
15
16
|
const require_functions = require('./utils/functions.cjs');
|
|
16
17
|
const require_types$3 = require('./types/types.cjs');
|
|
@@ -32,7 +33,8 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
|
|
|
32
33
|
});
|
|
33
34
|
const { handlePrimaryButtonClick, handlePrimaryButtonHover, handleSecondaryButtonClick, handleSecondaryButtonHover, handleSecondaryButtonDrag, handleSecondaryButtonMouseDown, handleSecondaryButtonMouseUp, handleSecondaryButtonTouchStart, handleSecondaryButtonTouchEnd, handleTextFieldClick, onTranscriptionStarted, onTranscriptionCompleted } = widgetEventProps ?? {};
|
|
34
35
|
const finalTheme = require_resolveTheme.resolveTheme(theme);
|
|
35
|
-
const {
|
|
36
|
+
const { width: containerWidth, ref: containerRef } = require_useGetContentSize.useGetContentSize({});
|
|
37
|
+
const isMobile = containerWidth !== void 0 ? containerWidth < require_breakpoints.screensBreakpointsVariables.sm : typeof window !== "undefined" && window.innerWidth < require_breakpoints.screensBreakpointsVariables.sm;
|
|
36
38
|
const hasDynamicLayout = kind === require_types$3.WidgetKind.DYNAMIC || dynamicLayout !== void 0;
|
|
37
39
|
const hideImageGallery = require_functions.shouldHideImageGallery({
|
|
38
40
|
hideImage,
|
|
@@ -73,59 +75,44 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
|
|
|
73
75
|
onTranscriptionStarted,
|
|
74
76
|
onTranscriptionCompleted
|
|
75
77
|
});
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
testId,
|
|
79
|
-
variant,
|
|
80
|
-
className,
|
|
81
|
-
style,
|
|
82
|
-
titleLabel,
|
|
83
|
-
logoSrc,
|
|
84
|
-
hexCardColor,
|
|
85
|
-
hideLogo,
|
|
86
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.LayoutFourGrid, {
|
|
87
|
-
hideImage: hideImageGallery,
|
|
88
|
-
images,
|
|
89
|
-
headline,
|
|
90
|
-
subheadline,
|
|
91
|
-
textfield: !hideTextField && textfield
|
|
92
|
-
})
|
|
93
|
-
});
|
|
94
|
-
if (isFourHorizontalLayout) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WidgetWrapperWithTitle.WidgetWrapperWithTitle, {
|
|
95
|
-
id,
|
|
96
|
-
testId,
|
|
97
|
-
variant,
|
|
98
|
-
className,
|
|
78
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
79
|
+
ref: containerRef,
|
|
99
80
|
style,
|
|
100
|
-
titleLabel,
|
|
101
|
-
logoSrc,
|
|
102
|
-
hexCardColor,
|
|
103
|
-
hideLogo,
|
|
104
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.LayoutFourHorizontal, {
|
|
105
|
-
hideImage: hideImageGallery,
|
|
106
|
-
images,
|
|
107
|
-
headline,
|
|
108
|
-
subheadline,
|
|
109
|
-
textfield: !hideTextField && textfield
|
|
110
|
-
})
|
|
111
|
-
});
|
|
112
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WidgetWrapperWithTitle.WidgetWrapperWithTitle, {
|
|
113
|
-
id,
|
|
114
|
-
testId,
|
|
115
|
-
variant,
|
|
116
81
|
className,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
82
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_WidgetWrapperWithTitle.WidgetWrapperWithTitle, {
|
|
83
|
+
id,
|
|
84
|
+
testId,
|
|
85
|
+
variant,
|
|
86
|
+
titleLabel,
|
|
87
|
+
logoSrc,
|
|
88
|
+
hexCardColor,
|
|
89
|
+
hideLogo,
|
|
90
|
+
children: (() => {
|
|
91
|
+
if (isFourGridLayout) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.LayoutFourGrid, {
|
|
92
|
+
hideImage: hideImageGallery,
|
|
93
|
+
images,
|
|
94
|
+
headline,
|
|
95
|
+
subheadline,
|
|
96
|
+
textfield: !hideTextField && textfield
|
|
97
|
+
});
|
|
98
|
+
if (isFourHorizontalLayout) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.LayoutFourHorizontal, {
|
|
99
|
+
hideImage: hideImageGallery,
|
|
100
|
+
images,
|
|
101
|
+
headline,
|
|
102
|
+
subheadline,
|
|
103
|
+
textfield: !hideTextField && textfield,
|
|
104
|
+
containerWidth
|
|
105
|
+
});
|
|
106
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.SocialProofComponents.LayoutSingle, {
|
|
107
|
+
hideImage: hideImageGallery,
|
|
108
|
+
dynamicLayout,
|
|
109
|
+
images,
|
|
110
|
+
headline,
|
|
111
|
+
subheadline,
|
|
112
|
+
textfield: !hideTextField && textfield,
|
|
113
|
+
containerWidth
|
|
114
|
+
});
|
|
115
|
+
})()
|
|
129
116
|
})
|
|
130
117
|
});
|
|
131
118
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialProofProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SocialProof/SocialProof.d.ts
|
|
5
5
|
declare const SocialProof: ({
|
|
@@ -7,6 +7,6 @@ declare const SocialProof: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: SocialProofProps) =>
|
|
10
|
+
}: SocialProofProps) => react_jsx_runtime21.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SocialProofProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/SocialProof/SocialProof.d.ts
|
|
5
5
|
declare const SocialProof: ({
|
|
@@ -7,6 +7,6 @@ declare const SocialProof: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: SocialProofProps) =>
|
|
10
|
+
}: SocialProofProps) => react_jsx_runtime10.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { SocialProof };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { screensBreakpointsVariables } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
2
3
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
4
|
import "../Tokens/index.js";
|
|
4
5
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
5
6
|
import "../PromptButton/index.js";
|
|
6
|
-
import { useCheckIsMobile } from "../utils/useCheckIsMobile.js";
|
|
7
7
|
import { PromptCarouselRows } from "../PromptCarousel/types/types.js";
|
|
8
8
|
import "../PromptCarousel/index.js";
|
|
9
9
|
import { IconVariant } from "../WidgetTextField/types/types.js";
|
|
10
10
|
import { WidgetWrapperVariant } from "../WidgetWrapper/types/types.js";
|
|
11
11
|
import "../WidgetWrapper/index.js";
|
|
12
12
|
import { WidgetWrapperWithTitle } from "../WidgetWrapperWithTitle/WidgetWrapperWithTitle.js";
|
|
13
|
+
import { useGetContentSize } from "../utils/useGetContentSize.js";
|
|
13
14
|
import { ImageGalleryLayout } from "../ImageGallery/types/types.js";
|
|
14
15
|
import { shouldHideImageGallery } from "./utils/functions.js";
|
|
15
16
|
import { WidgetKind } from "./types/types.js";
|
|
@@ -31,7 +32,8 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
|
|
|
31
32
|
});
|
|
32
33
|
const { handlePrimaryButtonClick, handlePrimaryButtonHover, handleSecondaryButtonClick, handleSecondaryButtonHover, handleSecondaryButtonDrag, handleSecondaryButtonMouseDown, handleSecondaryButtonMouseUp, handleSecondaryButtonTouchStart, handleSecondaryButtonTouchEnd, handleTextFieldClick, onTranscriptionStarted, onTranscriptionCompleted } = widgetEventProps ?? {};
|
|
33
34
|
const finalTheme = resolveTheme(theme);
|
|
34
|
-
const {
|
|
35
|
+
const { width: containerWidth, ref: containerRef } = useGetContentSize({});
|
|
36
|
+
const isMobile = containerWidth !== void 0 ? containerWidth < screensBreakpointsVariables.sm : typeof window !== "undefined" && window.innerWidth < screensBreakpointsVariables.sm;
|
|
35
37
|
const hasDynamicLayout = kind === WidgetKind.DYNAMIC || dynamicLayout !== void 0;
|
|
36
38
|
const hideImageGallery = shouldHideImageGallery({
|
|
37
39
|
hideImage,
|
|
@@ -72,59 +74,44 @@ const SocialProof = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEv
|
|
|
72
74
|
onTranscriptionStarted,
|
|
73
75
|
onTranscriptionCompleted
|
|
74
76
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
testId,
|
|
78
|
-
variant,
|
|
79
|
-
className,
|
|
80
|
-
style,
|
|
81
|
-
titleLabel,
|
|
82
|
-
logoSrc,
|
|
83
|
-
hexCardColor,
|
|
84
|
-
hideLogo,
|
|
85
|
-
children: /* @__PURE__ */ jsx(SocialProofComponents.LayoutFourGrid, {
|
|
86
|
-
hideImage: hideImageGallery,
|
|
87
|
-
images,
|
|
88
|
-
headline,
|
|
89
|
-
subheadline,
|
|
90
|
-
textfield: !hideTextField && textfield
|
|
91
|
-
})
|
|
92
|
-
});
|
|
93
|
-
if (isFourHorizontalLayout) return /* @__PURE__ */ jsx(WidgetWrapperWithTitle, {
|
|
94
|
-
id,
|
|
95
|
-
testId,
|
|
96
|
-
variant,
|
|
97
|
-
className,
|
|
77
|
+
return /* @__PURE__ */ jsx("div", {
|
|
78
|
+
ref: containerRef,
|
|
98
79
|
style,
|
|
99
|
-
titleLabel,
|
|
100
|
-
logoSrc,
|
|
101
|
-
hexCardColor,
|
|
102
|
-
hideLogo,
|
|
103
|
-
children: /* @__PURE__ */ jsx(SocialProofComponents.LayoutFourHorizontal, {
|
|
104
|
-
hideImage: hideImageGallery,
|
|
105
|
-
images,
|
|
106
|
-
headline,
|
|
107
|
-
subheadline,
|
|
108
|
-
textfield: !hideTextField && textfield
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
|
-
return /* @__PURE__ */ jsx(WidgetWrapperWithTitle, {
|
|
112
|
-
id,
|
|
113
|
-
testId,
|
|
114
|
-
variant,
|
|
115
80
|
className,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
81
|
+
children: /* @__PURE__ */ jsx(WidgetWrapperWithTitle, {
|
|
82
|
+
id,
|
|
83
|
+
testId,
|
|
84
|
+
variant,
|
|
85
|
+
titleLabel,
|
|
86
|
+
logoSrc,
|
|
87
|
+
hexCardColor,
|
|
88
|
+
hideLogo,
|
|
89
|
+
children: (() => {
|
|
90
|
+
if (isFourGridLayout) return /* @__PURE__ */ jsx(SocialProofComponents.LayoutFourGrid, {
|
|
91
|
+
hideImage: hideImageGallery,
|
|
92
|
+
images,
|
|
93
|
+
headline,
|
|
94
|
+
subheadline,
|
|
95
|
+
textfield: !hideTextField && textfield
|
|
96
|
+
});
|
|
97
|
+
if (isFourHorizontalLayout) return /* @__PURE__ */ jsx(SocialProofComponents.LayoutFourHorizontal, {
|
|
98
|
+
hideImage: hideImageGallery,
|
|
99
|
+
images,
|
|
100
|
+
headline,
|
|
101
|
+
subheadline,
|
|
102
|
+
textfield: !hideTextField && textfield,
|
|
103
|
+
containerWidth
|
|
104
|
+
});
|
|
105
|
+
return /* @__PURE__ */ jsx(SocialProofComponents.LayoutSingle, {
|
|
106
|
+
hideImage: hideImageGallery,
|
|
107
|
+
dynamicLayout,
|
|
108
|
+
images,
|
|
109
|
+
headline,
|
|
110
|
+
subheadline,
|
|
111
|
+
textfield: !hideTextField && textfield,
|
|
112
|
+
containerWidth
|
|
113
|
+
});
|
|
114
|
+
})()
|
|
128
115
|
})
|
|
129
116
|
});
|
|
130
117
|
};
|
|
@@ -3,7 +3,6 @@ const require_breakpoints = require('../../packages/components-v3/tokens/breakpo
|
|
|
3
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
4
|
require('../../Stack/index.cjs');
|
|
5
5
|
require('../../Tokens/index.cjs');
|
|
6
|
-
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
7
6
|
const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
|
|
8
7
|
const require_types = require('../../ImageGallery/types/types.cjs');
|
|
9
8
|
const require_functions = require('../utils/functions.cjs');
|
|
@@ -13,9 +12,9 @@ let classnames = require("classnames");
|
|
|
13
12
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
14
13
|
|
|
15
14
|
//#region src/components/SocialProof/components/LayoutFourHorizontal.tsx
|
|
16
|
-
const LayoutFourHorizontal = ({ hideImage, images, headline, subheadline, textfield }) => {
|
|
17
|
-
const
|
|
18
|
-
const isTablet = !isMobile &&
|
|
15
|
+
const LayoutFourHorizontal = ({ hideImage, images, headline, subheadline, textfield, containerWidth }) => {
|
|
16
|
+
const isMobile = containerWidth !== void 0 && containerWidth < require_breakpoints.screensBreakpointsVariables.sm;
|
|
17
|
+
const isTablet = !isMobile && containerWidth !== void 0 && containerWidth < require_breakpoints.screensBreakpointsVariables.xl;
|
|
19
18
|
const { height, ref } = require_useGetContentSize.useGetContentSize({ heightDefault: 170 });
|
|
20
19
|
const imageGalleryWidth = require_functions.calculateWidthImageGallery(height, 4, 1);
|
|
21
20
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
@@ -2,7 +2,6 @@ import { screensBreakpointsVariables } from "../../packages/components-v3/tokens
|
|
|
2
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
3
|
import "../../Stack/index.js";
|
|
4
4
|
import "../../Tokens/index.js";
|
|
5
|
-
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
6
5
|
import { useGetContentSize } from "../../utils/useGetContentSize.js";
|
|
7
6
|
import { ImageGalleryLayout } from "../../ImageGallery/types/types.js";
|
|
8
7
|
import { calculateWidthImageGallery } from "../utils/functions.js";
|
|
@@ -11,9 +10,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
11
10
|
import classNames from "classnames";
|
|
12
11
|
|
|
13
12
|
//#region src/components/SocialProof/components/LayoutFourHorizontal.tsx
|
|
14
|
-
const LayoutFourHorizontal = ({ hideImage, images, headline, subheadline, textfield }) => {
|
|
15
|
-
const
|
|
16
|
-
const isTablet = !isMobile &&
|
|
13
|
+
const LayoutFourHorizontal = ({ hideImage, images, headline, subheadline, textfield, containerWidth }) => {
|
|
14
|
+
const isMobile = containerWidth !== void 0 && containerWidth < screensBreakpointsVariables.sm;
|
|
15
|
+
const isTablet = !isMobile && containerWidth !== void 0 && containerWidth < screensBreakpointsVariables.xl;
|
|
17
16
|
const { height, ref } = useGetContentSize({ heightDefault: 170 });
|
|
18
17
|
const imageGalleryWidth = calculateWidthImageGallery(height, 4, 1);
|
|
19
18
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_breakpoints = require('../../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
2
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
4
|
require('../../Stack/index.cjs');
|
|
4
|
-
|
|
5
|
+
require('../../Tokens/index.cjs');
|
|
5
6
|
const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
|
|
6
7
|
const require_types = require('../../ImageGallery/types/types.cjs');
|
|
7
8
|
const require_ImageGallery = require('./ImageGallery.cjs');
|
|
@@ -10,10 +11,10 @@ let react = require("react");
|
|
|
10
11
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
11
12
|
|
|
12
13
|
//#region src/components/SocialProof/components/LayoutSingle.tsx
|
|
13
|
-
const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline, textfield }) => {
|
|
14
|
-
const
|
|
14
|
+
const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline, textfield, containerWidth }) => {
|
|
15
|
+
const isMobile = containerWidth !== void 0 && containerWidth < require_breakpoints.screensBreakpointsVariables.sm;
|
|
15
16
|
const isNarrowLayout = dynamicLayout === require_types$1.DynamicLayout.NARROW || isMobile && dynamicLayout !== require_types$1.DynamicLayout.WIDE;
|
|
16
|
-
const {
|
|
17
|
+
const { ref } = require_useGetContentSize.useGetContentSize({ heightDefault: 245 });
|
|
17
18
|
const imageGalleryWidth = 80;
|
|
18
19
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Stack.Stack, {
|
|
19
20
|
gap: "6",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { screensBreakpointsVariables } from "../../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
1
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
3
|
import "../../Stack/index.js";
|
|
3
|
-
import
|
|
4
|
+
import "../../Tokens/index.js";
|
|
4
5
|
import { useGetContentSize } from "../../utils/useGetContentSize.js";
|
|
5
6
|
import { ImageGalleryLayout } from "../../ImageGallery/types/types.js";
|
|
6
7
|
import { ImageGallery } from "./ImageGallery.js";
|
|
@@ -9,10 +10,10 @@ import { cloneElement } from "react";
|
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
|
|
11
12
|
//#region src/components/SocialProof/components/LayoutSingle.tsx
|
|
12
|
-
const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline, textfield }) => {
|
|
13
|
-
const
|
|
13
|
+
const LayoutSingle = ({ dynamicLayout, hideImage, images, headline, subheadline, textfield, containerWidth }) => {
|
|
14
|
+
const isMobile = containerWidth !== void 0 && containerWidth < screensBreakpointsVariables.sm;
|
|
14
15
|
const isNarrowLayout = dynamicLayout === DynamicLayout.NARROW || isMobile && dynamicLayout !== DynamicLayout.WIDE;
|
|
15
|
-
const {
|
|
16
|
+
const { ref } = useGetContentSize({ heightDefault: 245 });
|
|
16
17
|
const imageGalleryWidth = 80;
|
|
17
18
|
return /* @__PURE__ */ jsxs(Stack, {
|
|
18
19
|
gap: "6",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime5.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/SparkleAnimation/SparkleAnimation.d.ts
|
|
4
4
|
interface SparkleAnimationProps {
|
|
@@ -10,6 +10,6 @@ declare const SparkleAnimation: ({
|
|
|
10
10
|
color,
|
|
11
11
|
className,
|
|
12
12
|
animate
|
|
13
|
-
}: SparkleAnimationProps) =>
|
|
13
|
+
}: SparkleAnimationProps) => react_jsx_runtime3.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
package/dist/Stack/Stack.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StackProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react179 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Stack/Stack.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Stack component for laying out children in a flexible container with gap.
|
|
7
7
|
*/
|
|
8
|
-
declare const Stack:
|
|
8
|
+
declare const Stack: react179.ForwardRefExoticComponent<StackProps & react179.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
package/dist/Stack/Stack.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StackProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react0 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Stack/Stack.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Stack component for laying out children in a flexible container with gap.
|
|
7
7
|
*/
|
|
8
|
-
declare const Stack:
|
|
8
|
+
declare const Stack: react0.ForwardRefExoticComponent<StackProps & react0.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -21,6 +21,6 @@ declare const TitledPromptCarousel: ({
|
|
|
21
21
|
handleButtonTouchEnd,
|
|
22
22
|
promptButtonTexts,
|
|
23
23
|
promptCarouselAriaLabel
|
|
24
|
-
}: TitledPromptCarouselProps) =>
|
|
24
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime4.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TitledPromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -21,6 +21,6 @@ declare const TitledPromptCarousel: ({
|
|
|
21
21
|
handleButtonTouchEnd,
|
|
22
22
|
promptButtonTexts,
|
|
23
23
|
promptCarouselAriaLabel
|
|
24
|
-
}: TitledPromptCarouselProps) =>
|
|
24
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime0.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TitledPromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TypingAnimation/TypingAnimation.d.ts
|
|
5
5
|
declare const TypingAnimation: ({
|
|
@@ -7,6 +7,6 @@ declare const TypingAnimation: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: TypingAnimationProps) =>
|
|
10
|
+
}: TypingAnimationProps) => react_jsx_runtime8.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { TypingAnimation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TypingAnimation/TypingAnimation.d.ts
|
|
5
5
|
declare const TypingAnimation: ({
|
|
@@ -7,6 +7,6 @@ declare const TypingAnimation: ({
|
|
|
7
7
|
widgetContentProps,
|
|
8
8
|
widgetStyleProps,
|
|
9
9
|
widgetEventProps
|
|
10
|
-
}: TypingAnimationProps) =>
|
|
10
|
+
}: TypingAnimationProps) => react_jsx_runtime12.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { TypingAnimation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react2 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Typography/Typography.d.ts
|
|
5
5
|
/**
|
|
@@ -18,13 +18,13 @@ declare const Typography: ({
|
|
|
18
18
|
noWrap,
|
|
19
19
|
as,
|
|
20
20
|
"aria-label": ariaLabel
|
|
21
|
-
}: TypographyProps) =>
|
|
21
|
+
}: TypographyProps) => react2.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react2.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react2.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react4 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Typography/Typography.d.ts
|
|
5
5
|
/**
|
|
@@ -18,13 +18,13 @@ declare const Typography: ({
|
|
|
18
18
|
noWrap,
|
|
19
19
|
as,
|
|
20
20
|
"aria-label": ariaLabel
|
|
21
|
-
}: TypographyProps) =>
|
|
21
|
+
}: TypographyProps) => react4.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react4.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react4.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -20,6 +20,6 @@ declare const WidgetTextField: ({
|
|
|
20
20
|
onClick,
|
|
21
21
|
enableVoiceInput,
|
|
22
22
|
onTranscriptionStarted
|
|
23
|
-
}: WidgetTextFieldProps) =>
|
|
23
|
+
}: WidgetTextFieldProps) => react_jsx_runtime19.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { WidgetTextField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -20,6 +20,6 @@ declare const WidgetTextField: ({
|
|
|
20
20
|
onClick,
|
|
21
21
|
enableVoiceInput,
|
|
22
22
|
onTranscriptionStarted
|
|
23
|
-
}: WidgetTextFieldProps) =>
|
|
23
|
+
}: WidgetTextFieldProps) => react_jsx_runtime0.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { WidgetTextField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapper/WidgetWrapper.d.ts
|
|
5
5
|
|
|
@@ -16,6 +16,6 @@ declare const WidgetWrapper: ({
|
|
|
16
16
|
className,
|
|
17
17
|
style,
|
|
18
18
|
...containerProps
|
|
19
|
-
}: WidgetWrapperProps) =>
|
|
19
|
+
}: WidgetWrapperProps) => react_jsx_runtime20.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { WidgetWrapper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperWithTitleProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
|
|
5
5
|
declare const WidgetWrapperWithTitle: ({
|
|
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
|
|
|
14
14
|
hexCardColor,
|
|
15
15
|
hideLogo,
|
|
16
16
|
fullIsLoading
|
|
17
|
-
}: WidgetWrapperWithTitleProps) =>
|
|
17
|
+
}: WidgetWrapperWithTitleProps) => react_jsx_runtime17.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperWithTitleProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts
|
|
5
5
|
declare const WidgetWrapperWithTitle: ({
|
|
@@ -14,6 +14,6 @@ declare const WidgetWrapperWithTitle: ({
|
|
|
14
14
|
hexCardColor,
|
|
15
15
|
hideLogo,
|
|
16
16
|
fullIsLoading
|
|
17
|
-
}: WidgetWrapperWithTitleProps) =>
|
|
17
|
+
}: WidgetWrapperWithTitleProps) => react_jsx_runtime2.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|