@envive-ai/react-toolkit-v3 0.3.8 → 0.3.10
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.cjs +1 -0
- package/dist/AnimatedText/AnimatedText.d.cts +3 -3
- package/dist/AnimatedText/AnimatedText.js +1 -0
- 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/ChatHeader/hooks/useGetCloseButtonProperties.cjs +1 -1
- package/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +1 -1
- package/dist/ChatPreview/ChatPreview.cjs +14 -4
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +14 -4
- package/dist/ChatPreview/types/types.d.cts +5 -4
- package/dist/ChatPreview/types/types.d.ts +5 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +14 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +14 -4
- 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/ChatPreviewComparison/types/types.d.cts +4 -4
- package/dist/ChatPreviewComparison/types/types.d.ts +4 -4
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/Container/Container.d.cts +5 -5
- package/dist/Container/Container.d.ts +176 -176
- 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/FloatingChat/FloatingChat.cjs +3 -2
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +3 -2
- package/dist/FloatingChat/components/AgentMessage.cjs +9 -5
- package/dist/FloatingChat/components/AgentMessage.js +9 -5
- package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
- package/dist/FloatingChat/components/ChatMessages.js +1 -1
- package/dist/FloatingChat/components/Layout.cjs +13 -13
- package/dist/FloatingChat/components/Layout.js +13 -13
- package/dist/FloatingChat/components/ModalSheet.cjs +5 -6
- package/dist/FloatingChat/components/ModalSheet.js +5 -6
- package/dist/FloatingChat/components/ReviewCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.js +2 -1
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +0 -3
- package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +0 -3
- 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 +10 -6
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +5 -2
- package/dist/ProductCard/components/Header.cjs +2 -2
- package/dist/ProductCard/components/Header.js +2 -2
- package/dist/PromptButton/PromptButton.d.cts +2 -2
- package/dist/PromptButton/PromptButton.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.cjs +3 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
- package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.js +3 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +7 -2
- package/dist/PromptButtonCarouselWithImage/components/Layout.js +8 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +53 -3
- package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +53 -3
- package/dist/PromptCarousel/PromptCarousel.cjs +71 -33
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +73 -35
- package/dist/PromptCarousel/hooks/index.cjs +2 -4
- package/dist/PromptCarousel/hooks/index.js +2 -4
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.cjs +91 -0
- package/dist/PromptCarousel/hooks/useCoordinatedScrollAnimation.js +90 -0
- package/dist/PromptCarousel/hooks/useScrollSync.cjs +65 -0
- package/dist/PromptCarousel/hooks/useScrollSync.js +64 -0
- 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 +4 -4
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/Container.cjs +2 -2
- package/dist/SalesAgentProductCard/components/Container.js +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +6 -6
- 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/Stack/Stack.d.cts +2 -2
- package/dist/TextField/utils/getIconColor.cjs +1 -1
- package/dist/TextField/utils/getIconColor.js +1 -1
- package/dist/TextField/utils/getSendIconElement.cjs +1 -1
- package/dist/TextField/utils/getSendIconElement.js +1 -1
- 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 +11 -6
- package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
- package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
- package/dist/WidgetTextField/WidgetTextField.js +7 -2
- package/dist/WidgetTextField/components/Container.cjs +2 -2
- package/dist/WidgetTextField/components/Container.js +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.cjs +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +11 -9
- package/dist/WidgetTextField/components/Icon.js +11 -9
- package/dist/WidgetTextField/types/types.d.cts +3 -0
- package/dist/WidgetTextField/types/types.d.ts +3 -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/styles.css +1 -1
- package/dist/utils/CustomIcon.cjs +1 -1
- package/dist/utils/CustomIcon.js +1 -1
- package/dist/utils/useDragToScroll.cjs +68 -0
- package/dist/utils/useDragToScroll.js +67 -0
- package/package.json +1 -1
- package/src/components/AnimatedText/AnimatedText.tsx +2 -0
- package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
- package/src/components/ChatPreview/ChatPreview.tsx +20 -3
- package/src/components/ChatPreview/types/types.ts +5 -4
- package/src/components/ChatPreviewComparison/ChatPreviewComparison.tsx +20 -3
- package/src/components/ChatPreviewComparison/types/types.ts +4 -4
- package/src/components/FloatingChat/FloatingChat.tsx +3 -2
- package/src/components/FloatingChat/components/AgentMessage.tsx +1 -0
- package/src/components/FloatingChat/components/Layout.tsx +7 -2
- package/src/components/FloatingChat/components/ModalSheet.tsx +5 -7
- package/src/components/FloatingChat/components/ReviewCardsCarousel.tsx +3 -0
- package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +0 -3
- package/src/components/ProductCard/ProductCard.tsx +12 -1
- package/src/components/ProductCard/components/Header.tsx +10 -8
- package/src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.tsx +6 -3
- package/src/components/PromptButtonCarouselWithImage/components/Layout.tsx +13 -4
- package/src/components/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.tsx +63 -20
- package/src/components/PromptCarousel/PromptCarousel.tsx +89 -51
- package/src/components/PromptCarousel/hooks/index.ts +2 -4
- package/src/components/PromptCarousel/hooks/useCoordinatedScrollAnimation.ts +115 -0
- package/src/components/PromptCarousel/hooks/useHorizontalScrollAnimation.ts +71 -78
- package/src/components/PromptCarousel/hooks/useScrollSync.ts +83 -0
- package/src/components/TextField/utils/getIconColor.ts +1 -1
- package/src/components/TextField/utils/getSendIconElement.tsx +3 -1
- package/src/components/WidgetTextField/WidgetTextField.tsx +9 -1
- package/src/components/WidgetTextField/components/FakeTextInput.tsx +6 -2
- package/src/components/WidgetTextField/components/Icon.tsx +44 -9
- package/src/components/WidgetTextField/types/types.ts +3 -0
- package/src/components/utils/CustomIcon.tsx +1 -1
- package/src/components/utils/useDragToScroll.ts +83 -0
- package/dist/PromptCarousel/components/BlockScrollContainer.cjs +0 -23
- package/dist/PromptCarousel/components/BlockScrollContainer.js +0 -21
- package/dist/PromptCarousel/components/ButtonContainerRow.cjs +0 -34
- package/dist/PromptCarousel/components/ButtonContainerRow.js +0 -32
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.cjs +0 -45
- package/dist/PromptCarousel/components/CarouselContentWithBlockScroll.js +0 -44
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.cjs +0 -33
- package/dist/PromptCarousel/components/CarouselContentWithRowScroll.js +0 -32
- package/dist/PromptCarousel/components/index.cjs +0 -13
- package/dist/PromptCarousel/components/index.js +0 -13
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.cjs +0 -79
- package/dist/PromptCarousel/hooks/useButtonScrollPosition.js +0 -78
- package/dist/PromptCarousel/hooks/useCarouselAnimation.cjs +0 -23
- package/dist/PromptCarousel/hooks/useCarouselAnimation.js +0 -22
- package/dist/PromptCarousel/hooks/useCarouselRefs.cjs +0 -20
- package/dist/PromptCarousel/hooks/useCarouselRefs.js +0 -19
- package/dist/PromptCarousel/hooks/useGetScrollProperties.cjs +0 -18
- package/dist/PromptCarousel/hooks/useGetScrollProperties.js +0 -17
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.cjs +0 -78
- package/dist/PromptCarousel/hooks/useHorizontalScrollAnimation.js +0 -77
- package/src/components/PromptCarousel/components/BlockScrollContainer.tsx +0 -34
- package/src/components/PromptCarousel/components/ButtonContainerRow.tsx +0 -46
- package/src/components/PromptCarousel/components/CarouselContentWithBlockScroll.tsx +0 -83
- package/src/components/PromptCarousel/components/CarouselContentWithRowScroll.tsx +0 -71
- package/src/components/PromptCarousel/components/index.ts +0 -9
- package/src/components/PromptCarousel/hooks/useButtonScrollPosition.ts +0 -128
- package/src/components/PromptCarousel/hooks/useCarouselAnimation.ts +0 -47
- package/src/components/PromptCarousel/hooks/useCarouselRefs.ts +0 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../Tokens/index.js";
|
|
3
2
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
|
+
import "../Tokens/index.js";
|
|
4
4
|
import { PromptButtonVariant } from "../PromptButton/types/index.js";
|
|
5
5
|
import "../PromptButton/index.js";
|
|
6
6
|
import { useCheckIsMobile } from "../utils/useCheckIsMobile.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
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');
|
|
8
7
|
const require_index = require('../../Typography/types/index.cjs');
|
|
9
8
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
10
9
|
require('../../Typography/index.cjs');
|
|
10
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
11
11
|
const require_PromptButton_types_index = require('../../PromptButton/types/index.cjs');
|
|
12
12
|
const require_PromptButton = require('../../PromptButton/PromptButton.cjs');
|
|
13
13
|
require('../../PromptButton/index.cjs');
|
|
@@ -1,12 +1,12 @@
|
|
|
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";
|
|
7
6
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
8
7
|
import { Typography } from "../../Typography/Typography.js";
|
|
9
8
|
import "../../Typography/index.js";
|
|
9
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
10
10
|
import { PromptButtonVariant } from "../../PromptButton/types/index.js";
|
|
11
11
|
import { PromptButton } from "../../PromptButton/PromptButton.js";
|
|
12
12
|
import "../../PromptButton/index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_breakpoints = require('../../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
3
|
-
require('../../Tokens/index.cjs');
|
|
4
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
4
|
require('../../Stack/index.cjs');
|
|
5
|
+
require('../../Tokens/index.cjs');
|
|
6
6
|
const require_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
|
|
7
7
|
const require_useGetContentSize = require('../../utils/useGetContentSize.cjs');
|
|
8
8
|
const require_functions = require('../utils/functions.cjs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { screensBreakpointsVariables } from "../../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
2
|
-
import "../../Tokens/index.js";
|
|
3
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
3
|
import "../../Stack/index.js";
|
|
4
|
+
import "../../Tokens/index.js";
|
|
5
5
|
import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
|
|
6
6
|
import { useGetContentSize } from "../../utils/useGetContentSize.js";
|
|
7
7
|
import { calculateWidthImageGallery } from "../utils/functions.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
|
|
3
|
-
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
4
3
|
const require_Stack = require('../../Stack/Stack.cjs');
|
|
5
4
|
require('../../Stack/index.cjs');
|
|
6
5
|
const require_index = require('../../Typography/types/index.cjs');
|
|
7
6
|
const require_Typography = require('../../Typography/Typography.cjs');
|
|
8
7
|
require('../../Typography/index.cjs');
|
|
8
|
+
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
9
9
|
const require_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";
|
|
3
2
|
import { Stack } from "../../Stack/Stack.js";
|
|
4
3
|
import "../../Stack/index.js";
|
|
5
4
|
import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
|
|
6
5
|
import { Typography } from "../../Typography/Typography.js";
|
|
7
6
|
import "../../Typography/index.js";
|
|
7
|
+
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
8
8
|
import { PromptButtonVariant } from "../../PromptButton/types/index.js";
|
|
9
9
|
import "../../PromptButton/index.js";
|
|
10
10
|
import { PromptCarousel } from "../../PromptCarousel/PromptCarousel.js";
|
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 react5 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: react5.ForwardRefExoticComponent<StackProps & react5.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Returns the appropriate icon color based on the hasValue and disabled state.
|
|
5
5
|
*/
|
|
6
6
|
const getIconColor = (hasValue, disabled) => {
|
|
7
|
-
if (disabled || !hasValue) return "var(--envive-colors-border-
|
|
7
|
+
if (disabled || !hasValue) return "var(--envive-colors-border-light)";
|
|
8
8
|
return "var(--envive-colors-text-primary)";
|
|
9
9
|
};
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Returns the appropriate icon color based on the hasValue and disabled state.
|
|
4
4
|
*/
|
|
5
5
|
const getIconColor = (hasValue, disabled) => {
|
|
6
|
-
if (disabled || !hasValue) return "var(--envive-colors-border-
|
|
6
|
+
if (disabled || !hasValue) return "var(--envive-colors-border-light)";
|
|
7
7
|
return "var(--envive-colors-text-primary)";
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -27,7 +27,7 @@ const getSendIconElement = (theme, hasValue, disabled) => {
|
|
|
27
27
|
case require_theme.Theme.MODERN: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
28
28
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendModern.default, {}),
|
|
29
29
|
fill: iconColor,
|
|
30
|
-
stroke:
|
|
30
|
+
stroke: hasValue ? "var(--envive-colors-background-light)" : "var(--envive-colors-border-dark)"
|
|
31
31
|
});
|
|
32
32
|
case require_theme.Theme.MINIMAL: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
33
33
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendMinimalist.default, {}),
|
|
@@ -22,7 +22,7 @@ const getSendIconElement = (theme, hasValue, disabled) => {
|
|
|
22
22
|
case Theme.MODERN: return /* @__PURE__ */ jsx(CustomIcon, {
|
|
23
23
|
IconComponent: /* @__PURE__ */ jsx(SendModern, {}),
|
|
24
24
|
fill: iconColor,
|
|
25
|
-
stroke:
|
|
25
|
+
stroke: hasValue ? "var(--envive-colors-background-light)" : "var(--envive-colors-border-dark)"
|
|
26
26
|
});
|
|
27
27
|
case Theme.MINIMAL: return /* @__PURE__ */ jsx(CustomIcon, {
|
|
28
28
|
IconComponent: /* @__PURE__ */ jsx(SendMinimalist, {}),
|
|
@@ -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');
|
|
4
3
|
const require_Stack = require('../Stack/Stack.cjs');
|
|
5
4
|
require('../Stack/index.cjs');
|
|
6
5
|
const require_index = require('../Typography/types/index.cjs');
|
|
7
6
|
const require_Typography = require('../Typography/Typography.cjs');
|
|
8
7
|
require('../Typography/index.cjs');
|
|
8
|
+
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_runtime24 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -15,6 +15,6 @@ declare const TitledPromptCarousel: ({
|
|
|
15
15
|
handleButtonClick,
|
|
16
16
|
promptButtonTexts,
|
|
17
17
|
promptCarouselAriaLabel
|
|
18
|
-
}: TitledPromptCarouselProps) =>
|
|
18
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime24.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { TitledPromptCarousel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/TitledPromptCarousel/TitledPromptCarousel.d.ts
|
|
5
5
|
declare const TitledPromptCarousel: ({
|
|
@@ -15,6 +15,6 @@ declare const TitledPromptCarousel: ({
|
|
|
15
15
|
handleButtonClick,
|
|
16
16
|
promptButtonTexts,
|
|
17
17
|
promptCarouselAriaLabel
|
|
18
|
-
}: TitledPromptCarouselProps) =>
|
|
18
|
+
}: TitledPromptCarouselProps) => react_jsx_runtime7.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { TitledPromptCarousel };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
-
import "../Tokens/index.js";
|
|
3
2
|
import { Stack } from "../Stack/Stack.js";
|
|
4
3
|
import "../Stack/index.js";
|
|
5
4
|
import { TypographyVariant } from "../Typography/types/index.js";
|
|
6
5
|
import { Typography } from "../Typography/Typography.js";
|
|
7
6
|
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_typography = require('../packages/components-v3/tokens/typography/typography.cjs');
|
|
11
10
|
const require_breakpoints = require('../packages/components-v3/tokens/breakpoints/breakpoints.cjs');
|
|
11
|
+
const require_typography = require('../packages/components-v3/tokens/typography/typography.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 { createTypographyComponents } from "../packages/components-v3/tokens/typography/typography.js";
|
|
11
10
|
import { screensBreakpointsVariables, tailwindScreens } from "../packages/components-v3/tokens/breakpoints/breakpoints.js";
|
|
11
|
+
import { createTypographyComponents } from "../packages/components-v3/tokens/typography/typography.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');
|
|
6
5
|
const require_Stack = require('../Stack/Stack.cjs');
|
|
7
6
|
require('../Stack/index.cjs');
|
|
8
7
|
const require_index = require('../Typography/types/index.cjs');
|
|
9
8
|
const require_Typography = require('../Typography/Typography.cjs');
|
|
10
9
|
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_runtime19 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_runtime19.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_runtime6 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_runtime6.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";
|
|
5
4
|
import { Stack } from "../Stack/Stack.js";
|
|
6
5
|
import "../Stack/index.js";
|
|
7
6
|
import { TypographyColor } from "../Typography/types/index.js";
|
|
8
7
|
import { Typography } from "../Typography/Typography.js";
|
|
9
8
|
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');
|
|
3
2
|
const require_index = require('../../Typography/types/index.cjs');
|
|
4
3
|
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";
|
|
3
2
|
import { TypographyVariant } from "../../Typography/types/index.js";
|
|
4
3
|
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 react7 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) => react7.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react7.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react7.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 react0 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) => react0.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react0.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react0.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_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_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 { 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 { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -1,15 +1,16 @@
|
|
|
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');
|
|
3
4
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
5
|
const require_types = require('./types/types.cjs');
|
|
5
|
-
const require_index = require('./components/index.cjs');
|
|
6
|
+
const require_index$1 = require('./components/index.cjs');
|
|
6
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
|
|
8
9
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
9
|
-
const WidgetTextField = ({ id, testId, style, className, theme = require_theme.Theme.GLOBAL_CUSTOM, iconVariant = require_types.IconVariant.DEFAULT, placeholder, ariaLabel, disabled, isLoading, onClick }) => {
|
|
10
|
+
const WidgetTextField = ({ id, testId, style, className, theme = require_theme.Theme.GLOBAL_CUSTOM, iconVariant = require_types.IconVariant.DEFAULT, textColor = require_index.TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick }) => {
|
|
10
11
|
const resolvedTheme = require_resolveTheme.resolveTheme(theme);
|
|
11
|
-
if (isLoading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.WidgetTextFieldComponents.Skeleton, { theme: resolvedTheme });
|
|
12
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.WidgetTextFieldComponents.Container, {
|
|
12
|
+
if (isLoading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.WidgetTextFieldComponents.Skeleton, { theme: resolvedTheme });
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.WidgetTextFieldComponents.Container, {
|
|
13
14
|
onClick: disabled ? void 0 : onClick,
|
|
14
15
|
id,
|
|
15
16
|
testId,
|
|
@@ -18,11 +19,15 @@ const WidgetTextField = ({ id, testId, style, className, theme = require_theme.T
|
|
|
18
19
|
theme: resolvedTheme,
|
|
19
20
|
disabled,
|
|
20
21
|
ariaLabel,
|
|
21
|
-
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.WidgetTextFieldComponents.Icon, {
|
|
22
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.WidgetTextFieldComponents.Icon, {
|
|
23
|
+
textColor,
|
|
22
24
|
variant: iconVariant,
|
|
23
25
|
theme: resolvedTheme
|
|
24
26
|
}),
|
|
25
|
-
text: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.WidgetTextFieldComponents.FakeTextInput, {
|
|
27
|
+
text: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.WidgetTextFieldComponents.FakeTextInput, {
|
|
28
|
+
placeholder,
|
|
29
|
+
textColor
|
|
30
|
+
})
|
|
26
31
|
});
|
|
27
32
|
};
|
|
28
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -9,11 +9,12 @@ declare const WidgetTextField: ({
|
|
|
9
9
|
className,
|
|
10
10
|
theme,
|
|
11
11
|
iconVariant,
|
|
12
|
+
textColor,
|
|
12
13
|
placeholder,
|
|
13
14
|
ariaLabel,
|
|
14
15
|
disabled,
|
|
15
16
|
isLoading,
|
|
16
17
|
onClick
|
|
17
|
-
}: WidgetTextFieldProps) =>
|
|
18
|
+
}: WidgetTextFieldProps) => react_jsx_runtime34.JSX.Element;
|
|
18
19
|
//#endregion
|
|
19
20
|
export { WidgetTextField };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetTextFieldProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/WidgetTextField/WidgetTextField.d.ts
|
|
5
5
|
declare const WidgetTextField: ({
|
|
@@ -9,11 +9,12 @@ declare const WidgetTextField: ({
|
|
|
9
9
|
className,
|
|
10
10
|
theme,
|
|
11
11
|
iconVariant,
|
|
12
|
+
textColor,
|
|
12
13
|
placeholder,
|
|
13
14
|
ariaLabel,
|
|
14
15
|
disabled,
|
|
15
16
|
isLoading,
|
|
16
17
|
onClick
|
|
17
|
-
}: WidgetTextFieldProps) =>
|
|
18
|
+
}: WidgetTextFieldProps) => react_jsx_runtime9.JSX.Element;
|
|
18
19
|
//#endregion
|
|
19
20
|
export { WidgetTextField };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { TypographyColor } from "../Typography/types/index.js";
|
|
2
3
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
4
|
import { IconVariant } from "./types/types.js";
|
|
4
5
|
import { WidgetTextFieldComponents } from "./components/index.js";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
|
|
7
8
|
//#region src/components/WidgetTextField/WidgetTextField.tsx
|
|
8
|
-
const WidgetTextField = ({ id, testId, style, className, theme = Theme.GLOBAL_CUSTOM, iconVariant = IconVariant.DEFAULT, placeholder, ariaLabel, disabled, isLoading, onClick }) => {
|
|
9
|
+
const WidgetTextField = ({ id, testId, style, className, theme = Theme.GLOBAL_CUSTOM, iconVariant = IconVariant.DEFAULT, textColor = TypographyColor.TEXT_SECONDARY, placeholder, ariaLabel, disabled, isLoading, onClick }) => {
|
|
9
10
|
const resolvedTheme = resolveTheme(theme);
|
|
10
11
|
if (isLoading) return /* @__PURE__ */ jsx(WidgetTextFieldComponents.Skeleton, { theme: resolvedTheme });
|
|
11
12
|
return /* @__PURE__ */ jsx(WidgetTextFieldComponents.Container, {
|
|
@@ -18,10 +19,14 @@ const WidgetTextField = ({ id, testId, style, className, theme = Theme.GLOBAL_CU
|
|
|
18
19
|
disabled,
|
|
19
20
|
ariaLabel,
|
|
20
21
|
icon: /* @__PURE__ */ jsx(WidgetTextFieldComponents.Icon, {
|
|
22
|
+
textColor,
|
|
21
23
|
variant: iconVariant,
|
|
22
24
|
theme: resolvedTheme
|
|
23
25
|
}),
|
|
24
|
-
text: /* @__PURE__ */ jsx(WidgetTextFieldComponents.FakeTextInput, {
|
|
26
|
+
text: /* @__PURE__ */ jsx(WidgetTextFieldComponents.FakeTextInput, {
|
|
27
|
+
placeholder,
|
|
28
|
+
textColor
|
|
29
|
+
})
|
|
25
30
|
});
|
|
26
31
|
};
|
|
27
32
|
|
|
@@ -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_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 { 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 { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
|
|
6
6
|
import { useHandleKeyboard } from "../hooks/useHandleKeyboard.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -5,10 +5,10 @@ require('../../Typography/index.cjs');
|
|
|
5
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
6
|
|
|
7
7
|
//#region src/components/WidgetTextField/components/FakeTextInput.tsx
|
|
8
|
-
const FakeTextInput = ({ placeholder }) => {
|
|
8
|
+
const FakeTextInput = ({ placeholder, textColor = require_index.TypographyColor.TEXT_SECONDARY }) => {
|
|
9
9
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
10
10
|
variant: require_index.TypographyVariant.B3_RG,
|
|
11
|
-
color:
|
|
11
|
+
color: textColor,
|
|
12
12
|
noWrap: true,
|
|
13
13
|
children: placeholder
|
|
14
14
|
});
|
|
@@ -4,10 +4,10 @@ import "../../Typography/index.js";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/WidgetTextField/components/FakeTextInput.tsx
|
|
7
|
-
const FakeTextInput = ({ placeholder }) => {
|
|
7
|
+
const FakeTextInput = ({ placeholder, textColor = TypographyColor.TEXT_SECONDARY }) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Typography, {
|
|
9
9
|
variant: TypographyVariant.B3_RG,
|
|
10
|
-
color:
|
|
10
|
+
color: textColor,
|
|
11
11
|
noWrap: true,
|
|
12
12
|
children: placeholder
|
|
13
13
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
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');
|
|
3
4
|
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
4
5
|
const require_types = require('../types/types.cjs');
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -15,52 +16,53 @@ let __envive_ai_react_icons_MagnifyingThin = require("@envive-ai/react-icons/Mag
|
|
|
15
16
|
__envive_ai_react_icons_MagnifyingThin = require_rolldown_runtime.__toESM(__envive_ai_react_icons_MagnifyingThin);
|
|
16
17
|
|
|
17
18
|
//#region src/components/WidgetTextField/components/Icon.tsx
|
|
18
|
-
const Icon = ({ variant, theme }) => {
|
|
19
|
+
const Icon = ({ variant, theme, textColor }) => {
|
|
19
20
|
if (theme === require_theme.Theme.STANDARD) {
|
|
20
21
|
if (variant === require_types.IconVariant.DEFAULT) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
21
22
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendStandard.default, {}),
|
|
22
23
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
23
|
-
fill: "var(--envive-colors-border-medium)"
|
|
24
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
24
25
|
});
|
|
25
26
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
26
27
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_MagnifyingGlass.default, {}),
|
|
27
28
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
28
|
-
fill: "var(--envive-colors-border-medium)"
|
|
29
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
if (theme === require_theme.Theme.MODERN) {
|
|
32
33
|
if (variant === require_types.IconVariant.DEFAULT) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
33
34
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendModern.default, {}),
|
|
34
35
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
35
|
-
fill: "var(--envive-colors-border-medium)"
|
|
36
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)",
|
|
37
|
+
stroke: "var(--envive-colors-border-dark)"
|
|
36
38
|
});
|
|
37
39
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
38
40
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_MagnifyingThin.default, {}),
|
|
39
41
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
40
|
-
stroke: "var(--envive-colors-border-medium)"
|
|
42
|
+
stroke: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
45
|
if (theme === require_theme.Theme.MINIMAL) {
|
|
44
46
|
if (variant === require_types.IconVariant.DEFAULT) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
45
47
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendMinimalist.default, {}),
|
|
46
48
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
47
|
-
stroke: "var(--envive-colors-text-secondary)"
|
|
49
|
+
stroke: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-text-secondary)"
|
|
48
50
|
});
|
|
49
51
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
50
52
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendMinimalist.default, {}),
|
|
51
53
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
52
|
-
stroke: "var(--envive-colors-text-light)"
|
|
54
|
+
stroke: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-text-light)"
|
|
53
55
|
});
|
|
54
56
|
}
|
|
55
57
|
if (variant === require_types.IconVariant.DEFAULT) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
56
58
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendStandard.default, {}),
|
|
57
59
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
58
|
-
fill: "var(--envive-colors-border-medium)"
|
|
60
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
59
61
|
});
|
|
60
62
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
61
63
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_MagnifyingGlass.default, {}),
|
|
62
64
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
63
|
-
fill: "var(--envive-colors-border-medium)"
|
|
65
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
64
66
|
});
|
|
65
67
|
};
|
|
66
68
|
|