@envive-ai/react-toolkit-v3 0.3.8 → 0.3.9
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.js +1 -0
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
- package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.cjs +1 -1
- package/dist/CSSVariablesEditor/components/CSSVariablesEditor.js +1 -1
- package/dist/Carousel/Carousel.d.cts +2 -2
- package/dist/Carousel/Carousel.d.ts +2 -2
- package/dist/Carousel/components/Container.cjs +1 -1
- package/dist/Carousel/components/Container.js +1 -1
- package/dist/ChatFooter/ChatFooter.d.cts +2 -2
- package/dist/ChatFooter/components/index.d.cts +3 -3
- 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.cjs +13 -3
- package/dist/ChatPreview/ChatPreview.d.cts +2 -2
- package/dist/ChatPreview/ChatPreview.d.ts +2 -2
- package/dist/ChatPreview/ChatPreview.js +13 -3
- package/dist/ChatPreview/components/Message.cjs +1 -1
- package/dist/ChatPreview/components/Message.js +1 -1
- package/dist/ChatPreview/types/types.d.cts +5 -4
- package/dist/ChatPreview/types/types.d.ts +5 -4
- package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +13 -3
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
- package/dist/ChatPreviewComparison/ChatPreviewComparison.js +13 -3
- package/dist/ChatPreviewComparison/components/Message.cjs +1 -1
- package/dist/ChatPreviewComparison/components/Message.js +1 -1
- package/dist/ChatPreviewComparison/types/types.d.cts +4 -4
- package/dist/ChatPreviewComparison/types/types.d.ts +4 -4
- package/dist/ChatPreviewLoading/ChatPreviewLoading.cjs +1 -1
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
- package/dist/ChatPreviewLoading/ChatPreviewLoading.js +1 -1
- package/dist/Container/Container.d.cts +174 -174
- package/dist/Container/Container.d.ts +174 -174
- package/dist/DesignTokens/DesignTokensComponent.cjs +1 -1
- package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
- package/dist/DesignTokens/DesignTokensComponent.js +1 -1
- 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.cjs +4 -3
- package/dist/FloatingChat/FloatingChat.d.cts +2 -2
- package/dist/FloatingChat/FloatingChat.d.ts +2 -2
- package/dist/FloatingChat/FloatingChat.js +4 -3
- 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 +11 -11
- package/dist/FloatingChat/components/Layout.js +11 -11
- package/dist/FloatingChat/components/ModalSheet.cjs +1 -1
- package/dist/FloatingChat/components/ModalSheet.js +1 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.cjs +2 -1
- package/dist/FloatingChat/components/ReviewCardsCarousel.js +2 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.cjs +1 -1
- package/dist/FloatingChat/components/ScrollToBottomButton.js +1 -1
- package/dist/Form/Form.cjs +1 -1
- package/dist/Form/Form.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/NormalLayout.cjs +1 -1
- package/dist/ImageGallery/components/NormalLayout.js +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.cjs +1 -1
- package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
- package/dist/MarkdownProcessor/MarkdownProcessor.js +1 -1
- package/dist/Message/components/AgentContent.cjs +1 -1
- package/dist/Message/components/AgentContent.js +1 -1
- package/dist/ProductCard/ProductCard.cjs +9 -5
- package/dist/ProductCard/ProductCard.d.cts +2 -2
- package/dist/ProductCard/ProductCard.d.ts +2 -2
- package/dist/ProductCard/ProductCard.js +4 -1
- package/dist/ProductCard/components/Header.cjs +3 -3
- package/dist/ProductCard/components/Header.js +3 -3
- 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 +8 -3
- 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 +70 -33
- package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
- package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
- package/dist/PromptCarousel/PromptCarousel.js +71 -34
- 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.cjs +1 -1
- package/dist/ReviewCard/ReviewCard.d.cts +2 -2
- package/dist/ReviewCard/ReviewCard.d.ts +2 -2
- package/dist/ReviewCard/ReviewCard.js +1 -1
- package/dist/ReviewCard/components/index.d.cts +6 -6
- package/dist/ReviewCard/components/index.d.ts +6 -6
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
- package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
- package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
- package/dist/SalesAgentProductCard/components/index.d.ts +6 -6
- package/dist/SocialProof/SocialProof.d.cts +2 -2
- package/dist/SocialProof/SocialProof.d.ts +2 -2
- package/dist/SocialProof/components/Headline.cjs +1 -1
- package/dist/SocialProof/components/Headline.js +1 -1
- package/dist/SocialProof/components/LayoutSingle.cjs +1 -1
- package/dist/SocialProof/components/LayoutSingle.js +1 -1
- package/dist/Stack/Stack.d.cts +2 -2
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/Stack/hooks/useFormatStackChildren.cjs +1 -1
- package/dist/Stack/hooks/useFormatStackChildren.js +1 -1
- package/dist/Title/components/Image.cjs +1 -1
- package/dist/Title/components/Image.js +1 -1
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
- package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.cjs +2 -2
- package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
- package/dist/TypingAnimation/TypingAnimation.js +2 -2
- package/dist/Typography/Typography.d.cts +4 -4
- package/dist/Typography/Typography.d.ts +4 -4
- 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/FakeTextInput.cjs +2 -2
- package/dist/WidgetTextField/components/FakeTextInput.js +2 -2
- package/dist/WidgetTextField/components/Icon.cjs +10 -9
- package/dist/WidgetTextField/components/Icon.js +10 -9
- package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
- package/dist/WidgetTextField/components/Skeleton.js +1 -1
- 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/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/ReviewCardsCarousel.tsx +3 -0
- 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 +88 -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/WidgetTextField/WidgetTextField.tsx +9 -1
- package/src/components/WidgetTextField/components/FakeTextInput.tsx +6 -2
- package/src/components/WidgetTextField/components/Icon.tsx +43 -9
- package/src/components/WidgetTextField/types/types.ts +3 -0
- 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
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 react8 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: react8.ForwardRefExoticComponent<StackProps & react8.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Stack };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react = require("react");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let react = require("react");
|
|
4
4
|
|
|
5
5
|
//#region src/components/Stack/hooks/useFormatStackChildren.tsx
|
|
6
6
|
const renderDivider = (divider) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children, cloneElement, isValidElement, useMemo } from "react";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, cloneElement, isValidElement, useMemo } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Stack/hooks/useFormatStackChildren.tsx
|
|
5
5
|
const renderDivider = (divider) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react = require("react");
|
|
3
2
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let react = require("react");
|
|
4
4
|
|
|
5
5
|
//#region src/components/Title/components/Image.tsx
|
|
6
6
|
const Image = ({ logo }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TitledPromptCarouselProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 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_runtime1.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_runtime11 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_runtime11.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { TitledPromptCarousel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
2
3
|
const require_AnimatedText = require('../AnimatedText/AnimatedText.cjs');
|
|
3
4
|
require('../AnimatedText/index.cjs');
|
|
4
|
-
const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
|
|
5
5
|
require('../Tokens/index.cjs');
|
|
6
6
|
const require_Stack = require('../Stack/Stack.cjs');
|
|
7
7
|
require('../Stack/index.cjs');
|
|
@@ -19,8 +19,8 @@ require('../WidgetWrapper/index.cjs');
|
|
|
19
19
|
const require_WidgetWrapperWithTitle = require('../WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs');
|
|
20
20
|
require('../WidgetWrapperWithTitle/index.cjs');
|
|
21
21
|
const require_useGetTypographyVariant = require('./hooks/useGetTypographyVariant.cjs');
|
|
22
|
-
let react = require("react");
|
|
23
22
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
23
|
+
let react = require("react");
|
|
24
24
|
|
|
25
25
|
//#region src/components/TypingAnimation/TypingAnimation.tsx
|
|
26
26
|
const TypingAnimation = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEventProps }) => {
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
+
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
1
2
|
import { AnimatedText } from "../AnimatedText/AnimatedText.js";
|
|
2
3
|
import "../AnimatedText/index.js";
|
|
3
|
-
import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
|
|
4
4
|
import "../Tokens/index.js";
|
|
5
5
|
import { Stack } from "../Stack/Stack.js";
|
|
6
6
|
import "../Stack/index.js";
|
|
@@ -18,8 +18,8 @@ import "../WidgetWrapper/index.js";
|
|
|
18
18
|
import { WidgetWrapperWithTitle } from "../WidgetWrapperWithTitle/WidgetWrapperWithTitle.js";
|
|
19
19
|
import "../WidgetWrapperWithTitle/index.js";
|
|
20
20
|
import { useGetTypographyVariant } from "./hooks/useGetTypographyVariant.js";
|
|
21
|
-
import { useCallback } from "react";
|
|
22
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { useCallback } from "react";
|
|
23
23
|
|
|
24
24
|
//#region src/components/TypingAnimation/TypingAnimation.tsx
|
|
25
25
|
const TypingAnimation = ({ baseProps, widgetContentProps, widgetStyleProps, widgetEventProps }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypographyProps } from "./types/index.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react173 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) => react173.DetailedReactHTMLElement<{
|
|
22
22
|
'aria-label': string;
|
|
23
23
|
'aria-level'?: number;
|
|
24
|
-
role?:
|
|
24
|
+
role?: react173.AriaRole;
|
|
25
25
|
title?: string;
|
|
26
26
|
className: string;
|
|
27
|
-
style:
|
|
27
|
+
style: react173.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 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,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
3
|
const require_resolveTheme = require('../utils/resolveTheme.cjs');
|
|
4
|
+
const require_index = require('../Typography/types/index.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_runtime15 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_runtime15.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_runtime5 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_runtime5.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
2
|
import { resolveTheme } from "../utils/resolveTheme.js";
|
|
3
|
+
import { TypographyColor } from "../Typography/types/index.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
|
|
|
@@ -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,6 +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
3
|
const require_CustomIcon = require('../../utils/CustomIcon.cjs');
|
|
4
|
+
const require_index = require('../../Typography/types/index.cjs');
|
|
4
5
|
const require_types = require('../types/types.cjs');
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
7
|
let __envive_ai_react_icons_SendStandard = require("@envive-ai/react-icons/SendStandard");
|
|
@@ -15,52 +16,52 @@ 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)"
|
|
36
37
|
});
|
|
37
38
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
38
39
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_MagnifyingThin.default, {}),
|
|
39
40
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
40
|
-
stroke: "var(--envive-colors-border-medium)"
|
|
41
|
+
stroke: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
if (theme === require_theme.Theme.MINIMAL) {
|
|
44
45
|
if (variant === require_types.IconVariant.DEFAULT) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
45
46
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendMinimalist.default, {}),
|
|
46
47
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
47
|
-
stroke: "var(--envive-colors-text-secondary)"
|
|
48
|
+
stroke: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-text-secondary)"
|
|
48
49
|
});
|
|
49
50
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
50
51
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendMinimalist.default, {}),
|
|
51
52
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
52
|
-
stroke: "var(--envive-colors-text-light)"
|
|
53
|
+
stroke: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-text-light)"
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
if (variant === require_types.IconVariant.DEFAULT) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
56
57
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_SendStandard.default, {}),
|
|
57
58
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
58
|
-
fill: "var(--envive-colors-border-medium)"
|
|
59
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
59
60
|
});
|
|
60
61
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CustomIcon.CustomIcon, {
|
|
61
62
|
IconComponent: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_MagnifyingGlass.default, {}),
|
|
62
63
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
63
|
-
fill: "var(--envive-colors-border-medium)"
|
|
64
|
+
fill: textColor !== require_index.TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
64
65
|
});
|
|
65
66
|
};
|
|
66
67
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
2
|
import { CustomIcon } from "../../utils/CustomIcon.js";
|
|
3
|
+
import { TypographyColor } from "../../Typography/types/index.js";
|
|
3
4
|
import { IconVariant } from "../types/types.js";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import SendStandard from "@envive-ai/react-icons/SendStandard";
|
|
@@ -9,52 +10,52 @@ import SvgSendStandard from "@envive-ai/react-icons/MagnifyingGlass";
|
|
|
9
10
|
import SvgSendModern from "@envive-ai/react-icons/MagnifyingThin";
|
|
10
11
|
|
|
11
12
|
//#region src/components/WidgetTextField/components/Icon.tsx
|
|
12
|
-
const Icon = ({ variant, theme }) => {
|
|
13
|
+
const Icon = ({ variant, theme, textColor }) => {
|
|
13
14
|
if (theme === Theme.STANDARD) {
|
|
14
15
|
if (variant === IconVariant.DEFAULT) return /* @__PURE__ */ jsx(CustomIcon, {
|
|
15
16
|
IconComponent: /* @__PURE__ */ jsx(SendStandard, {}),
|
|
16
17
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
17
|
-
fill: "var(--envive-colors-border-medium)"
|
|
18
|
+
fill: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
18
19
|
});
|
|
19
20
|
return /* @__PURE__ */ jsx(CustomIcon, {
|
|
20
21
|
IconComponent: /* @__PURE__ */ jsx(SvgSendStandard, {}),
|
|
21
22
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
22
|
-
fill: "var(--envive-colors-border-medium)"
|
|
23
|
+
fill: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
if (theme === Theme.MODERN) {
|
|
26
27
|
if (variant === IconVariant.DEFAULT) return /* @__PURE__ */ jsx(CustomIcon, {
|
|
27
28
|
IconComponent: /* @__PURE__ */ jsx(SendModern, {}),
|
|
28
29
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
29
|
-
fill: "var(--envive-colors-border-medium)"
|
|
30
|
+
fill: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
30
31
|
});
|
|
31
32
|
return /* @__PURE__ */ jsx(CustomIcon, {
|
|
32
33
|
IconComponent: /* @__PURE__ */ jsx(SvgSendModern, {}),
|
|
33
34
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
34
|
-
stroke: "var(--envive-colors-border-medium)"
|
|
35
|
+
stroke: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
if (theme === Theme.MINIMAL) {
|
|
38
39
|
if (variant === IconVariant.DEFAULT) return /* @__PURE__ */ jsx(CustomIcon, {
|
|
39
40
|
IconComponent: /* @__PURE__ */ jsx(SendMinimalist, {}),
|
|
40
41
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
41
|
-
stroke: "var(--envive-colors-text-secondary)"
|
|
42
|
+
stroke: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-text-secondary)"
|
|
42
43
|
});
|
|
43
44
|
return /* @__PURE__ */ jsx(CustomIcon, {
|
|
44
45
|
IconComponent: /* @__PURE__ */ jsx(SendMinimalist, {}),
|
|
45
46
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
46
|
-
stroke: "var(--envive-colors-text-light)"
|
|
47
|
+
stroke: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-text-light)"
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
if (variant === IconVariant.DEFAULT) return /* @__PURE__ */ jsx(CustomIcon, {
|
|
50
51
|
IconComponent: /* @__PURE__ */ jsx(SendStandard, {}),
|
|
51
52
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
52
|
-
fill: "var(--envive-colors-border-medium)"
|
|
53
|
+
fill: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
53
54
|
});
|
|
54
55
|
return /* @__PURE__ */ jsx(CustomIcon, {
|
|
55
56
|
IconComponent: /* @__PURE__ */ jsx(SvgSendStandard, {}),
|
|
56
57
|
className: "envive-tw-h-6 envive-tw-w-6",
|
|
57
|
-
fill: "var(--envive-colors-border-medium)"
|
|
58
|
+
fill: textColor !== TypographyColor.TEXT_SECONDARY ? `var(--envive-colors-${textColor})` : "var(--envive-colors-border-medium)"
|
|
58
59
|
});
|
|
59
60
|
};
|
|
60
61
|
|
|
@@ -1,8 +1,8 @@
|
|
|
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
3
|
const require_resolveTheme = require('../../utils/resolveTheme.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
let react = require("react");
|
|
6
6
|
let classnames = require("classnames");
|
|
7
7
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
2
|
import { resolveTheme } from "../../utils/resolveTheme.js";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { useMemo } from "react";
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
|
|
7
7
|
//#region src/components/WidgetTextField/components/Skeleton.tsx
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../../tokens/theme/theme.cjs";
|
|
2
|
+
import { TypographyColor } from "../../Typography/types/index.cjs";
|
|
2
3
|
|
|
3
4
|
//#region src/components/WidgetTextField/types/types.d.ts
|
|
4
5
|
|
|
@@ -35,6 +36,8 @@ type WidgetTextFieldProps = {
|
|
|
35
36
|
placeholder?: string;
|
|
36
37
|
/** Accessible label for screen readers. If not provided, the placeholder will be used. */
|
|
37
38
|
ariaLabel?: string;
|
|
39
|
+
/** Text color for the text field. */
|
|
40
|
+
textColor?: TypographyColor;
|
|
38
41
|
/** Whether the text field is disabled. */
|
|
39
42
|
disabled?: boolean;
|
|
40
43
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
|
|
2
|
+
import { TypographyColor } from "../../Typography/types/index.js";
|
|
2
3
|
|
|
3
4
|
//#region src/components/WidgetTextField/types/types.d.ts
|
|
4
5
|
|
|
@@ -35,6 +36,8 @@ type WidgetTextFieldProps = {
|
|
|
35
36
|
placeholder?: string;
|
|
36
37
|
/** Accessible label for screen readers. If not provided, the placeholder will be used. */
|
|
37
38
|
ariaLabel?: string;
|
|
39
|
+
/** Text color for the text field. */
|
|
40
|
+
textColor?: TypographyColor;
|
|
38
41
|
/** Whether the text field is disabled. */
|
|
39
42
|
disabled?: boolean;
|
|
40
43
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime14 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_runtime14.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { WidgetWrapper };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WidgetWrapperProps } from "./types/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime34 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_runtime34.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_runtime16 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_runtime16.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_runtime6 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_runtime6.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { WidgetWrapperWithTitle };
|