@envive-ai/react-toolkit-v3 0.3.40 → 0.3.41
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/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/Carousel/Carousel.cjs +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/Carousel.js +1 -1
- package/dist/Carousel/components/Container.cjs +2 -2
- package/dist/Carousel/components/Container.js +2 -2
- package/dist/ChatFooter/ChatFooter.cjs +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/ChatFooter.d.ts +2 -2
- package/dist/ChatFooter/ChatFooter.js +1 -1
- package/dist/ChatFooter/components/Layout.cjs +2 -2
- package/dist/ChatFooter/components/Layout.js +2 -2
- package/dist/ChatFooter/components/index.d.cts +5 -5
- package/dist/ChatFooter/components/index.d.ts +5 -5
- package/dist/ChatHeader/ChatHeader.d.cts +2 -2
- package/dist/ChatHeader/ChatHeader.d.ts +2 -2
- package/dist/ChatHeader/components/Handle.cjs +2 -2
- package/dist/ChatHeader/components/Handle.js +2 -2
- package/dist/ChatHeader/components/Toggle.cjs +3 -3
- package/dist/ChatHeader/components/Toggle.js +3 -3
- package/dist/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 +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/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 +1 -1
- package/dist/FloatingChat/components/SalesAgentBadgeContent.js +1 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +1 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +1 -1
- package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +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 +2 -2
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- 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 +2 -2
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +2 -2
- 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 +4 -4
- 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 +6 -6
- package/dist/SocialProof/SocialProof.cjs +41 -54
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/SocialProof.js +41 -54
- package/dist/SocialProof/components/Headline.cjs +3 -3
- package/dist/SocialProof/components/Headline.js +3 -3
- package/dist/SocialProof/components/LayoutFourHorizontal.cjs +4 -5
- package/dist/SocialProof/components/LayoutFourHorizontal.js +4 -5
- package/dist/SocialProof/components/LayoutSingle.cjs +5 -4
- package/dist/SocialProof/components/LayoutSingle.js +5 -4
- package/dist/SocialProof/components/Subheadline.cjs +1 -1
- package/dist/SocialProof/components/Subheadline.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/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +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/WelcomeMessage/components/Container.cjs +2 -2
- package/dist/WelcomeMessage/components/Container.js +2 -2
- package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
- package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
- package/dist/WidgetTextField/WidgetTextField.js +1 -1
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +1 -1
- package/dist/WidgetTextField/components/Icon.js +1 -1
- package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
- package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
- package/package.json +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/SocialProof/SocialProof.tsx +41 -48
- package/src/components/SocialProof/components/LayoutFourHorizontal.tsx +5 -3
- package/src/components/SocialProof/components/LayoutSingle.tsx +6 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { screensBreakpointsVariables } from "../../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
2
|
+
import "../../Tokens/index.js";
|
|
2
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
4
|
import "../../Stack/index.js";
|
|
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');
|
|
3
|
+
require('../../Tokens/index.cjs');
|
|
2
4
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
5
|
require('../../Stack/index.cjs');
|
|
4
|
-
const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.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";
|
|
2
|
+
import "../../Tokens/index.js";
|
|
1
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
2
4
|
import "../../Stack/index.js";
|
|
3
|
-
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.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,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
3
4
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
4
5
|
require('../../Stack/index.cjs');
|
|
5
6
|
const require_index = require('../../Typography/types/index.cjs');
|
|
6
7
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
7
8
|
require('../../Typography/index.cjs');
|
|
8
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_PromptButton_types_index = require('../../PromptButton/types/index.cjs');
|
|
10
10
|
require('../../PromptButton/index.cjs');
|
|
11
11
|
const require_PromptCarousel = require('../../PromptCarousel/PromptCarousel.cjs');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
2
3
|
import { Stack } from "../../Stack/Stack.js";
|
|
3
4
|
import "../../Stack/index.js";
|
|
4
5
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
5
6
|
import { Typography } from "../../Typography/Typography.js";
|
|
6
7
|
import "../../Typography/index.js";
|
|
7
|
-
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { PromptButtonVariant } from "../../PromptButton/types/index.js";
|
|
9
9
|
import "../../PromptButton/index.js";
|
|
10
10
|
import { PromptCarousel } from "../../PromptCarousel/PromptCarousel.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 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_runtime4.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SparkleAnimation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 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_runtime6.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 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,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
+
require('../Tokens/index.cjs');
|
|
3
4
|
const require_Stack = require('../Stack/Stack.cjs');
|
|
4
5
|
require('../Stack/index.cjs');
|
|
5
6
|
const require_index = require('../Typography/types/index.cjs');
|
|
6
7
|
const require_Typography = require('../Typography/Typography.cjs');
|
|
7
8
|
require('../Typography/index.cjs');
|
|
8
|
-
require('../Tokens/index.cjs');
|
|
9
9
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
10
10
|
require('../PromptButton/index.cjs');
|
|
11
11
|
const require_PromptCarousel_types_types = require('../PromptCarousel/types/types.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 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_runtime2.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TitledPromptCarousel };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import "../Tokens/index.js";
|
|
2
3
|
import { Stack } from "../Stack/Stack.js";
|
|
3
4
|
import "../Stack/index.js";
|
|
4
5
|
import { TypographyVariant } from "../Typography/types/index.js";
|
|
5
6
|
import { Typography } from "../Typography/Typography.js";
|
|
6
7
|
import "../Typography/index.js";
|
|
7
|
-
import "../Tokens/index.js";
|
|
8
8
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
9
9
|
import "../PromptButton/index.js";
|
|
10
10
|
import { AnimationSpeed, PromptCarouselRows } from "../PromptCarousel/types/types.js";
|
package/dist/Tokens/index.cjs
CHANGED
|
@@ -7,8 +7,8 @@ const require_fontFamily = require('../packages/components-v3/tokens/typography/
|
|
|
7
7
|
const require_radius = require('../packages/components-v3/tokens/radius/radius.cjs');
|
|
8
8
|
const require_aspectRatio = require('../packages/components-v3/tokens/aspectRatio/aspectRatio.cjs');
|
|
9
9
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
10
|
-
const require_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
11
10
|
const require_typography = require('../packages/components-v3/tokens/typography/typography.cjs');
|
|
11
|
+
const require_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
12
12
|
const require_spacing = require('../packages/components-v3/tokens/spacing/spacing.cjs');
|
|
13
13
|
const require_motion = require('../packages/components-v3/tokens/montion/motion.cjs');
|
|
14
14
|
|
package/dist/Tokens/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import { FontFamily, fontFamilyVariables } from "../packages/components-v3/token
|
|
|
7
7
|
import { borderRadiusVariables } from "../packages/components-v3/tokens/radius/radius.js";
|
|
8
8
|
import { aspectRatioVariables } from "../packages/components-v3/tokens/aspectRatio/aspectRatio.js";
|
|
9
9
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
10
|
-
import { screensBreakpointsVariables, tailwindScreens } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
11
10
|
import { createTypographyComponents } from "../packages/components-v3/tokens/typography/typography.js";
|
|
11
|
+
import { screensBreakpointsVariables, tailwindScreens } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
12
12
|
import { spacingVariables } from "../packages/components-v3/tokens/spacing/spacing.js";
|
|
13
13
|
import { animationsVariables, keyFramesVariables } from "../packages/components-v3/tokens/montion/motion.js";
|
|
14
14
|
|
|
@@ -2,12 +2,12 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
|
2
2
|
const require_AnimatedText = require('../AnimatedText/AnimatedText.cjs');
|
|
3
3
|
require('../AnimatedText/index.cjs');
|
|
4
4
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
5
|
+
require('../Tokens/index.cjs');
|
|
5
6
|
const require_Stack = require('../Stack/Stack.cjs');
|
|
6
7
|
require('../Stack/index.cjs');
|
|
7
8
|
const require_index = require('../Typography/types/index.cjs');
|
|
8
9
|
const require_Typography = require('../Typography/Typography.cjs');
|
|
9
10
|
require('../Typography/index.cjs');
|
|
10
|
-
require('../Tokens/index.cjs');
|
|
11
11
|
const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
|
|
12
12
|
const require_PromptCarousel_types_types = require('../PromptCarousel/types/types.cjs');
|
|
13
13
|
const require_PromptCarousel = require('../PromptCarousel/PromptCarousel.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypingAnimationProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 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_runtime3.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_runtime1 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_runtime1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { TypingAnimation };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AnimatedText } from "../AnimatedText/AnimatedText.js";
|
|
2
2
|
import "../AnimatedText/index.js";
|
|
3
3
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
4
|
+
import "../Tokens/index.js";
|
|
4
5
|
import { Stack } from "../Stack/Stack.js";
|
|
5
6
|
import "../Stack/index.js";
|
|
6
7
|
import { TypographyColor } from "../Typography/types/index.js";
|
|
7
8
|
import { Typography } from "../Typography/Typography.js";
|
|
8
9
|
import "../Typography/index.js";
|
|
9
|
-
import "../Tokens/index.js";
|
|
10
10
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
11
11
|
import { PromptCarouselRows } from "../PromptCarousel/types/types.js";
|
|
12
12
|
import { PromptCarousel } from "../PromptCarousel/PromptCarousel.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
|
+
require('../../Tokens/index.cjs');
|
|
2
3
|
const require_index = require('../../Typography/types/index.cjs');
|
|
3
4
|
require('../../Typography/index.cjs');
|
|
4
|
-
require('../../Tokens/index.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/components/TypingAnimation/hooks/useGetTypographyVariant.tsx
|
|
7
7
|
const useGetTypographyVariant = (theme) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import "../../Tokens/index.js";
|
|
2
3
|
import { TypographyVariant } from "../../Typography/types/index.js";
|
|
3
4
|
import "../../Typography/index.js";
|
|
4
|
-
import "../../Tokens/index.js";
|
|
5
5
|
|
|
6
6
|
//#region src/components/TypingAnimation/hooks/useGetTypographyVariant.tsx
|
|
7
7
|
const useGetTypographyVariant = (theme) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1 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) => react1.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react1.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react1.CSSProperties;
|
|
28
28
|
id: string;
|
|
29
29
|
'data-testid': string;
|
|
30
30
|
}, HTMLElement>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
|
-
require('../../Stack/index.cjs');
|
|
4
2
|
const require_Container = require('../../Container/Container.cjs');
|
|
5
3
|
require('../../Container/index.cjs');
|
|
4
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
|
+
require('../../Stack/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let classnames = require("classnames");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
-
import "../../Stack/index.js";
|
|
3
1
|
import { Container } from "../../Container/Container.js";
|
|
4
2
|
import "../../Container/index.js";
|
|
3
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
4
|
+
import "../../Stack/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_index = require('../Typography/types/index.cjs');
|
|
4
3
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
5
|
-
const require_index
|
|
4
|
+
const require_index = require('../TextField/components/index.cjs');
|
|
6
5
|
const require_useGetSkeletonProperties = require('../TextField/hooks/useGetSkeletonProperties.cjs');
|
|
7
6
|
const require_react = require('../node_modules/jotai/esm/react.cjs');
|
|
8
7
|
const require_useVoiceInput = require('../TextField/hooks/useVoiceInput.cjs');
|
|
8
|
+
const require_index$1 = require('../Typography/types/index.cjs');
|
|
9
9
|
const require_types = require('./types/types.cjs');
|
|
10
10
|
const require_index$2 = require('./components/index.cjs');
|
|
11
11
|
const require_useGetMicWidgetButtonProperties = require('./hooks/useGetMicWidgetButtonProperties.cjs');
|
|
@@ -15,7 +15,7 @@ classnames = require_rolldown_runtime.__toESM(classnames);
|
|
|
15
15
|
let __envive_ai_react_hooks_atoms_chat = require("@envive-ai/react-hooks/atoms/chat");
|
|
16
16
|
|
|
17
17
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
18
|
-
const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, theme = require_theme.Theme.GLOBAL_CUSTOM, minimalFrame = "full", minimalBorderVariant, iconVariant = require_types.IconVariant.DEFAULT, textColor = require_index.TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick, enableVoiceInput = false, onTranscriptionStarted }) => {
|
|
18
|
+
const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, theme = require_theme.Theme.GLOBAL_CUSTOM, minimalFrame = "full", minimalBorderVariant, iconVariant = require_types.IconVariant.DEFAULT, textColor = require_index$1.TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick, enableVoiceInput = false, onTranscriptionStarted }) => {
|
|
19
19
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
20
20
|
const setListeningToSpeech = require_react.useSetAtom(__envive_ai_react_hooks_atoms_chat.listeningToSpeechAtom);
|
|
21
21
|
const { skeletonClass } = require_useGetSkeletonProperties.useGetSkeletonProperties(isLoading);
|
|
@@ -31,7 +31,7 @@ const WidgetTextField = ({ id, testId, style, className, voiceInputClassName, th
|
|
|
31
31
|
onTranscriptionStarted?.();
|
|
32
32
|
onClick();
|
|
33
33
|
};
|
|
34
|
-
const voiceInputButton = enableVoiceInput && browserSupportsSpeechRecognition ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index
|
|
34
|
+
const voiceInputButton = enableVoiceInput && browserSupportsSpeechRecognition ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.TextFieldComponents.VoiceInputButton, {
|
|
35
35
|
theme: resolvedTheme,
|
|
36
36
|
isListening: false,
|
|
37
37
|
onToggleListening: disabled ? void 0 : handleToggleListening,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.cjs";
|
|
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 { WidgetTextFieldProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 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_runtime2.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { WidgetTextField };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { TypographyColor } from "../Typography/types/index.js";
|
|
3
2
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
4
3
|
import { TextFieldComponents } from "../TextField/components/index.js";
|
|
5
4
|
import { useGetSkeletonProperties } from "../TextField/hooks/useGetSkeletonProperties.js";
|
|
6
5
|
import { useSetAtom } from "../node_modules/jotai/esm/react.js";
|
|
7
6
|
import { useVoiceInput } from "../TextField/hooks/useVoiceInput.js";
|
|
7
|
+
import { TypographyColor } from "../Typography/types/index.js";
|
|
8
8
|
import { IconVariant } from "./types/types.js";
|
|
9
9
|
import { WidgetTextFieldComponents } from "./components/index.js";
|
|
10
10
|
import { useGetMicWidgetButtonProperties } from "./hooks/useGetMicWidgetButtonProperties.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Stack = require('../../Stack/Stack.cjs');
|
|
3
|
-
require('../../Stack/index.cjs');
|
|
4
2
|
const require_Container = require('../../Container/Container.cjs');
|
|
5
3
|
require('../../Container/index.cjs');
|
|
4
|
+
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
|
+
require('../../Stack/index.cjs');
|
|
6
6
|
const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
|
|
7
7
|
const require_useHandleKeyboard = require('../hooks/useHandleKeyboard.cjs');
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Stack } from "../../Stack/Stack.js";
|
|
2
|
-
import "../../Stack/index.js";
|
|
3
1
|
import { Container } from "../../Container/Container.js";
|
|
4
2
|
import "../../Container/index.js";
|
|
3
|
+
import { Stack } from "../../Stack/Stack.js";
|
|
4
|
+
import "../../Stack/index.js";
|
|
5
5
|
import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { useHandleKeyboard } from "../hooks/useHandleKeyboard.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_index = require('../../Typography/types/index.cjs');
|
|
4
3
|
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
4
|
+
const require_index = require('../../Typography/types/index.cjs');
|
|
5
5
|
const require_types = require('../types/types.cjs');
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
let __envive_ai_react_icons_SendStandard = require("@envive-ai/react-icons/SendStandard");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import { TypographyColor } from "../../Typography/types/index.js";
|
|
3
2
|
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
3
|
+
import { TypographyColor } from "../../Typography/types/index.js";
|
|
4
4
|
import { IconVariant } from "../types/types.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import SendStandard from "@envive-ai/react-icons/SendStandard";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 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_runtime0.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_runtime0 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_runtime0.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|
package/package.json
CHANGED
|
@@ -49,6 +49,8 @@ export const PromptButtonCarouselWithImage = ({
|
|
|
49
49
|
<PromptButtonCarouselWithImageComponents.TextField
|
|
50
50
|
isLoading={isLoading}
|
|
51
51
|
placeholder={textFieldPlaceholder}
|
|
52
|
+
minimalFrame={finalTheme === Theme.MINIMAL ? 'bottom-only' : 'full'}
|
|
53
|
+
minimalBorderVariant="primary"
|
|
52
54
|
className={finalTheme === Theme.MINIMAL ? '!envive-tw-border-border-medium' : undefined}
|
|
53
55
|
onClick={() => handleTextFieldClick(textFieldPlaceholder)}
|
|
54
56
|
theme={finalTheme}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
|
-
import { cloneElement, isValidElement } from 'react';
|
|
2
|
+
import { cloneElement, isValidElement, useMemo } from 'react';
|
|
3
3
|
import { calculateWidthImageGallery } from '../../SocialProof/utils/functions';
|
|
4
4
|
import { Stack } from '../../Stack';
|
|
5
5
|
import { WidgetTextFieldProps } from '../../WidgetTextField/types/types';
|
|
@@ -52,6 +52,19 @@ export const Layout = ({
|
|
|
52
52
|
|
|
53
53
|
const imageWidth = calculateWidthImageGallery(height, 1, 1);
|
|
54
54
|
|
|
55
|
+
const textFieldElement = useMemo(
|
|
56
|
+
() =>
|
|
57
|
+
!hideTextField &&
|
|
58
|
+
isValidElement(textField) &&
|
|
59
|
+
cloneElement(textField as React.ReactElement<WidgetTextFieldProps>, {
|
|
60
|
+
className: classNames(
|
|
61
|
+
isMobile ? 'envive-tw-w-full' : 'envive-tw-min-w-[276px]',
|
|
62
|
+
(textField as React.ReactElement<WidgetTextFieldProps>).props.className,
|
|
63
|
+
),
|
|
64
|
+
}),
|
|
65
|
+
[textField, hideTextField, isMobile],
|
|
66
|
+
);
|
|
67
|
+
|
|
55
68
|
return (
|
|
56
69
|
<Stack
|
|
57
70
|
id={id}
|
|
@@ -79,7 +92,7 @@ export const Layout = ({
|
|
|
79
92
|
msOverflowStyle: 'none',
|
|
80
93
|
scrollbarWidth: 'none',
|
|
81
94
|
}}
|
|
82
|
-
gap={4}
|
|
95
|
+
gap={isMobile ? 2 : 4}
|
|
83
96
|
className={classNames(
|
|
84
97
|
'[&::-webkit-scrollbar]:hidden envive-tw-h-fit',
|
|
85
98
|
isMobile ? 'envive-tw-w-full envive-tw-overflow-y-auto' : 'envive-tw-overflow-x-auto',
|
|
@@ -89,16 +102,10 @@ export const Layout = ({
|
|
|
89
102
|
)}
|
|
90
103
|
>
|
|
91
104
|
{promptButtons}
|
|
105
|
+
{isMobile ? textFieldElement : null}
|
|
92
106
|
</Stack>
|
|
93
107
|
</Stack>
|
|
94
|
-
{
|
|
95
|
-
isValidElement(textField) &&
|
|
96
|
-
cloneElement(textField as React.ReactElement<WidgetTextFieldProps>, {
|
|
97
|
-
className: classNames(
|
|
98
|
-
isMobile ? 'envive-tw-w-full' : 'envive-tw-min-w-[276px]',
|
|
99
|
-
(textField as React.ReactElement<WidgetTextFieldProps>).props.className,
|
|
100
|
-
),
|
|
101
|
-
})}
|
|
108
|
+
{isMobile ? null : textFieldElement}
|
|
102
109
|
</Stack>
|
|
103
110
|
</Stack>
|
|
104
111
|
);
|