@envive-ai/react-toolkit-v3 0.3.29 → 0.3.30

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.
Files changed (188) hide show
  1. package/dist/AnimatedText/AnimatedText.d.ts +3 -3
  2. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
  3. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
  4. package/dist/Carousel/Carousel.cjs +1 -1
  5. package/dist/Carousel/Carousel.d.ts +2 -2
  6. package/dist/Carousel/Carousel.js +1 -1
  7. package/dist/Carousel/components/Container.cjs +2 -2
  8. package/dist/Carousel/components/Container.js +2 -2
  9. package/dist/ChatFooter/ChatFooter.cjs +1 -1
  10. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  11. package/dist/ChatFooter/ChatFooter.js +1 -1
  12. package/dist/ChatFooter/components/Layout.cjs +2 -2
  13. package/dist/ChatFooter/components/Layout.js +2 -2
  14. package/dist/ChatFooter/components/index.d.ts +5 -5
  15. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  16. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  17. package/dist/ChatHeader/components/Handle.cjs +2 -2
  18. package/dist/ChatHeader/components/Handle.js +2 -2
  19. package/dist/ChatHeader/components/Toggle.cjs +3 -3
  20. package/dist/ChatHeader/components/Toggle.js +3 -3
  21. package/dist/ChatPreview/ChatPreview.cjs +1 -1
  22. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  23. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  24. package/dist/ChatPreview/ChatPreview.js +1 -1
  25. package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +1 -1
  26. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  27. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  28. package/dist/ChatPreviewComparison/ChatPreviewComparison.js +1 -1
  29. package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
  30. package/dist/ChatPreviewComparison/components/Headline.js +2 -2
  31. package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
  32. package/dist/ChatPreviewComparison/components/Layout.js +4 -4
  33. package/dist/ChatPreviewComparison/components/Message.cjs +2 -2
  34. package/dist/ChatPreviewComparison/components/Message.js +2 -2
  35. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  36. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  37. package/dist/Container/Container.d.cts +53 -53
  38. package/dist/Container/Container.d.ts +220 -220
  39. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  40. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  41. package/dist/Disclaimer/components/Container.cjs +2 -2
  42. package/dist/Disclaimer/components/Container.js +2 -2
  43. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  44. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.ts +2 -2
  45. package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
  46. package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
  47. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
  48. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
  49. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  50. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  51. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  52. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  53. package/dist/FloatingChat/components/AgentMessage.cjs +1 -0
  54. package/dist/FloatingChat/components/AgentMessage.js +1 -0
  55. package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
  56. package/dist/FloatingChat/components/ChatMessages.js +1 -1
  57. package/dist/FloatingChat/components/Layout.cjs +3 -3
  58. package/dist/FloatingChat/components/Layout.js +3 -3
  59. package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
  60. package/dist/FloatingChat/components/ResultsGridView.js +1 -1
  61. package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +1 -1
  62. package/dist/FloatingChat/components/SalesAgentBadgeContent.js +1 -1
  63. package/dist/FullPageSalesAgent/FullPageSalesAgent.cjs +1 -1
  64. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
  65. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
  66. package/dist/FullPageSalesAgent/FullPageSalesAgent.js +1 -1
  67. package/dist/Image/Image.d.cts +2 -2
  68. package/dist/Image/Image.d.ts +2 -2
  69. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  70. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  71. package/dist/ImageGallery/components/Layout.cjs +1 -1
  72. package/dist/ImageGallery/components/Layout.js +1 -1
  73. package/dist/MarkdownProcessor/MarkdownProcessor.cjs +7 -3
  74. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +4 -3
  75. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +4 -3
  76. package/dist/MarkdownProcessor/MarkdownProcessor.js +7 -3
  77. package/dist/MarkdownProcessor/components/MarkdownLink.cjs +3 -2
  78. package/dist/MarkdownProcessor/components/MarkdownLink.js +3 -2
  79. package/dist/MarkdownProcessor/types/types.d.cts +5 -0
  80. package/dist/MarkdownProcessor/types/types.d.ts +5 -0
  81. package/dist/MarkdownProcessor/utils/functions.cjs +2 -1
  82. package/dist/MarkdownProcessor/utils/functions.js +2 -1
  83. package/dist/Message/Message.cjs +5 -4
  84. package/dist/Message/Message.d.cts +2 -1
  85. package/dist/Message/Message.d.ts +2 -1
  86. package/dist/Message/Message.js +5 -4
  87. package/dist/Message/components/AgentContent.cjs +3 -2
  88. package/dist/Message/components/AgentContent.js +3 -2
  89. package/dist/Message/components/LinkButton.cjs +3 -3
  90. package/dist/Message/components/LinkButton.d.cts +4 -1
  91. package/dist/Message/components/LinkButton.d.ts +4 -1
  92. package/dist/Message/components/LinkButton.js +3 -3
  93. package/dist/Message/hooks/useGetLinkButtonIconProperties.cjs +4 -3
  94. package/dist/Message/hooks/useGetLinkButtonIconProperties.js +4 -3
  95. package/dist/Message/types/index.d.cts +4 -0
  96. package/dist/Message/types/index.d.ts +4 -0
  97. package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
  98. package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
  99. package/dist/ProductCard/ProductCard.cjs +2 -2
  100. package/dist/ProductCard/ProductCard.d.cts +2 -2
  101. package/dist/ProductCard/ProductCard.d.ts +2 -2
  102. package/dist/ProductCard/ProductCard.js +2 -2
  103. package/dist/PromptButton/PromptButton.d.cts +2 -2
  104. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  105. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  106. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
  107. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
  108. package/dist/PromptCarousel/PromptCarousel.cjs +3 -3
  109. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  110. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  111. package/dist/PromptCarousel/PromptCarousel.js +3 -3
  112. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  113. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  114. package/dist/ReviewCard/components/Container.cjs +2 -2
  115. package/dist/ReviewCard/components/Container.js +2 -2
  116. package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
  117. package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
  118. package/dist/ReviewCard/components/index.d.cts +6 -6
  119. package/dist/ReviewCard/components/index.d.ts +6 -6
  120. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  121. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  122. package/dist/SalesAgentProductCard/components/Container.cjs +2 -2
  123. package/dist/SalesAgentProductCard/components/Container.js +2 -2
  124. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  125. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  126. package/dist/SocialProof/SocialProof.cjs +1 -1
  127. package/dist/SocialProof/SocialProof.d.cts +2 -2
  128. package/dist/SocialProof/SocialProof.d.ts +2 -2
  129. package/dist/SocialProof/SocialProof.js +1 -1
  130. package/dist/SocialProof/components/Headline.cjs +3 -3
  131. package/dist/SocialProof/components/Headline.js +3 -3
  132. package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
  133. package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
  134. package/dist/SocialProof/components/Subheadline.cjs +1 -1
  135. package/dist/SocialProof/components/Subheadline.js +1 -1
  136. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  137. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  138. package/dist/Stack/Stack.d.cts +2 -2
  139. package/dist/Stack/Stack.d.ts +2 -2
  140. package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
  141. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  142. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  143. package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
  144. package/dist/Tokens/index.cjs +1 -1
  145. package/dist/Tokens/index.js +1 -1
  146. package/dist/TypingAnimation/TypingAnimation.cjs +1 -1
  147. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  148. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  149. package/dist/TypingAnimation/TypingAnimation.js +1 -1
  150. package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
  151. package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
  152. package/dist/Typography/Typography.d.cts +4 -4
  153. package/dist/Typography/Typography.d.ts +4 -4
  154. package/dist/WelcomeMessage/components/Container.cjs +2 -2
  155. package/dist/WelcomeMessage/components/Container.js +2 -2
  156. package/dist/WidgetTextField/WidgetTextField.cjs +4 -4
  157. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  158. package/dist/WidgetTextField/WidgetTextField.js +1 -1
  159. package/dist/WidgetTextField/components/Container.cjs +2 -2
  160. package/dist/WidgetTextField/components/Container.js +2 -2
  161. package/dist/WidgetTextField/components/Icon.cjs +1 -1
  162. package/dist/WidgetTextField/components/Icon.js +1 -1
  163. package/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +3 -2
  164. package/dist/WidgetTextField/hooks/useGetContainerProperties.js +3 -2
  165. package/dist/WidgetWrapper/WidgetWrapper.cjs +8 -1
  166. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  167. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  168. package/dist/WidgetWrapper/WidgetWrapper.js +8 -1
  169. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.cjs +1 -1
  170. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  171. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  172. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.js +1 -1
  173. package/dist/styles.css +1 -1
  174. package/package.json +1 -1
  175. package/src/components/FloatingChat/components/AgentMessage.tsx +1 -0
  176. package/src/components/MarkdownProcessor/MarkdownProcessor.tsx +3 -2
  177. package/src/components/MarkdownProcessor/components/MarkdownLink.tsx +4 -1
  178. package/src/components/MarkdownProcessor/types/types.ts +5 -0
  179. package/src/components/MarkdownProcessor/utils/functions.tsx +4 -0
  180. package/src/components/Message/Message.tsx +4 -2
  181. package/src/components/Message/components/AgentContent.tsx +4 -0
  182. package/src/components/Message/components/LinkButton.tsx +4 -1
  183. package/src/components/Message/hooks/useGetLinkButtonIconProperties.ts +7 -3
  184. package/src/components/Message/types/index.ts +3 -0
  185. package/src/components/WidgetTextField/hooks/useGetContainerProperties.ts +2 -1
  186. package/src/components/WidgetWrapper/WidgetWrapper.tsx +10 -2
  187. package/src/components/WidgetWrapperWithTitle/WidgetWrapperWithTitle.tsx +5 -5
  188. package/src/components/utils/resolveTheme.ts +2 -2
@@ -8,7 +8,7 @@ let react_jsx_runtime = require("react/jsx-runtime");
8
8
  /**
9
9
  * Message component that renders a chat message with two variants: agent and user.
10
10
  */
11
- const Message = ({ variant = require_index.MessageVariant.AGENT, agentName, content, isLoading = false, showSparkle = false, id, testId, className, style, ariaLabel, onLinkClick }) => {
11
+ const Message = ({ variant = require_index.MessageVariant.AGENT, agentName, content, isLoading = false, showSparkle = false, id, testId, className, style, ariaLabel, onLinkClick, theme }) => {
12
12
  const validationResult = require_validateMessageProps.validateMessageProps({
13
13
  variant,
14
14
  agentName,
@@ -32,11 +32,12 @@ const Message = ({ variant = require_index.MessageVariant.AGENT, agentName, cont
32
32
  showSparkle
33
33
  }),
34
34
  isAgent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.MessageComponents.AgentContent, {
35
- content,
35
+ content: content ?? "",
36
36
  isLoading,
37
- onLinkClick
37
+ onLinkClick,
38
+ theme
38
39
  }),
39
- isUser && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.MessageComponents.UserContent, { content })
40
+ isUser && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.MessageComponents.UserContent, { content: content ?? "" })
40
41
  ]
41
42
  });
42
43
  };
@@ -16,7 +16,8 @@ declare const Message: ({
16
16
  className,
17
17
  style,
18
18
  ariaLabel,
19
- onLinkClick
19
+ onLinkClick,
20
+ theme
20
21
  }: MessageProps) => JSX.Element;
21
22
  //#endregion
22
23
  export { Message };
@@ -16,7 +16,8 @@ declare const Message: ({
16
16
  className,
17
17
  style,
18
18
  ariaLabel,
19
- onLinkClick
19
+ onLinkClick,
20
+ theme
20
21
  }: MessageProps) => JSX.Element;
21
22
  //#endregion
22
23
  export { Message };
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  /**
8
8
  * Message component that renders a chat message with two variants: agent and user.
9
9
  */
10
- const Message = ({ variant = MessageVariant.AGENT, agentName, content, isLoading = false, showSparkle = false, id, testId, className, style, ariaLabel, onLinkClick }) => {
10
+ const Message = ({ variant = MessageVariant.AGENT, agentName, content, isLoading = false, showSparkle = false, id, testId, className, style, ariaLabel, onLinkClick, theme }) => {
11
11
  const validationResult = validateMessageProps({
12
12
  variant,
13
13
  agentName,
@@ -31,11 +31,12 @@ const Message = ({ variant = MessageVariant.AGENT, agentName, content, isLoading
31
31
  showSparkle
32
32
  }),
33
33
  isAgent && /* @__PURE__ */ jsx(MessageComponents.AgentContent, {
34
- content,
34
+ content: content ?? "",
35
35
  isLoading,
36
- onLinkClick
36
+ onLinkClick,
37
+ theme
37
38
  }),
38
- isUser && /* @__PURE__ */ jsx(MessageComponents.UserContent, { content })
39
+ isUser && /* @__PURE__ */ jsx(MessageComponents.UserContent, { content: content ?? "" })
39
40
  ]
40
41
  });
41
42
  };
@@ -8,13 +8,14 @@ const MarkdownProcessor = (0, react.lazy)(async () => ({ default: (await Promise
8
8
  /**
9
9
  * Component that renders the message content for the agent.
10
10
  */
11
- const AgentContent = ({ content, isLoading = false, onLinkClick }) => {
11
+ const AgentContent = ({ content, isLoading = false, onLinkClick, theme }) => {
12
12
  if (isLoading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_LoadingSkeleton.LoadingSkeleton, {});
13
13
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Suspense, {
14
14
  fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_LoadingSkeleton.LoadingSkeleton, {}),
15
15
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MarkdownProcessor, {
16
16
  content,
17
- onLinkClick
17
+ onLinkClick,
18
+ theme
18
19
  })
19
20
  });
20
21
  };
@@ -7,13 +7,14 @@ const MarkdownProcessor = lazy(async () => ({ default: (await import("../../Mark
7
7
  /**
8
8
  * Component that renders the message content for the agent.
9
9
  */
10
- const AgentContent = ({ content, isLoading = false, onLinkClick }) => {
10
+ const AgentContent = ({ content, isLoading = false, onLinkClick, theme }) => {
11
11
  if (isLoading) return /* @__PURE__ */ jsx(LoadingSkeleton, {});
12
12
  return /* @__PURE__ */ jsx(Suspense, {
13
13
  fallback: /* @__PURE__ */ jsx(LoadingSkeleton, {}),
14
14
  children: /* @__PURE__ */ jsx(MarkdownProcessor, {
15
15
  content,
16
- onLinkClick
16
+ onLinkClick,
17
+ theme
17
18
  })
18
19
  });
19
20
  };
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_CustomIcon = require('../../utils/CustomIcon.cjs');
3
2
  const require_index = require('../../Typography/types/index.cjs');
4
3
  const require_Typography = require('../../Typography/Typography.cjs');
5
4
  require('../../Typography/index.cjs');
5
+ const require_CustomIcon = require('../../utils/CustomIcon.cjs');
6
6
  const require_useGetLinkButtonIconProperties = require('../hooks/useGetLinkButtonIconProperties.cjs');
7
7
  const require_useGetLinkButtonProperties = require('../hooks/useGetLinkButtonProperties.cjs');
8
8
  const require_openUrlInNewTab = require('../utils/openUrlInNewTab.cjs');
@@ -15,9 +15,9 @@ __envive_ai_react_icons_VectorUpRight = require_rolldown_runtime.__toESM(__enviv
15
15
  * Component that renders an external link with an icon.
16
16
  * Uses an inline span with button role for better accessibility and inline text flow.
17
17
  */
18
- const LinkButton = ({ url, text, typographyColor, onClick }) => {
18
+ const LinkButton = ({ url, text, typographyColor, onClick, theme }) => {
19
19
  const { containerClasses } = require_useGetLinkButtonProperties.useGetLinkButtonProperties();
20
- const { iconContainerClasses } = require_useGetLinkButtonIconProperties.useGetLinkButtonIconProperties();
20
+ const { iconContainerClasses } = require_useGetLinkButtonIconProperties.useGetLinkButtonIconProperties(theme);
21
21
  const handleClick = () => {
22
22
  require_openUrlInNewTab.openUrlInNewTab(url);
23
23
  onClick?.(url);
@@ -1,3 +1,4 @@
1
+ import { Theme } from "../../tokens/theme/theme.cjs";
1
2
  import { TypographyColor } from "../../Typography/types/index.cjs";
2
3
 
3
4
  //#region src/components/Message/components/LinkButton.d.ts
@@ -6,6 +7,7 @@ type LinkButtonProps = {
6
7
  text: string;
7
8
  typographyColor?: TypographyColor;
8
9
  onClick?: (url: string) => void;
10
+ theme?: Theme;
9
11
  };
10
12
  /**
11
13
  * Component that renders an external link with an icon.
@@ -15,7 +17,8 @@ declare const LinkButton: ({
15
17
  url,
16
18
  text,
17
19
  typographyColor,
18
- onClick
20
+ onClick,
21
+ theme
19
22
  }: LinkButtonProps) => React.ReactNode;
20
23
  //#endregion
21
24
  export { LinkButton };
@@ -1,3 +1,4 @@
1
+ import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
1
2
  import { TypographyColor } from "../../Typography/types/index.js";
2
3
 
3
4
  //#region src/components/Message/components/LinkButton.d.ts
@@ -6,6 +7,7 @@ type LinkButtonProps = {
6
7
  text: string;
7
8
  typographyColor?: TypographyColor;
8
9
  onClick?: (url: string) => void;
10
+ theme?: Theme;
9
11
  };
10
12
  /**
11
13
  * Component that renders an external link with an icon.
@@ -15,7 +17,8 @@ declare const LinkButton: ({
15
17
  url,
16
18
  text,
17
19
  typographyColor,
18
- onClick
20
+ onClick,
21
+ theme
19
22
  }: LinkButtonProps) => React.ReactNode;
20
23
  //#endregion
21
24
  export { LinkButton };
@@ -1,7 +1,7 @@
1
- import { CustomIcon } from "../../utils/CustomIcon.js";
2
1
  import { TypographyColor, TypographyVariant } from "../../Typography/types/index.js";
3
2
  import { Typography } from "../../Typography/Typography.js";
4
3
  import "../../Typography/index.js";
4
+ import { CustomIcon } from "../../utils/CustomIcon.js";
5
5
  import { useGetLinkButtonIconProperties } from "../hooks/useGetLinkButtonIconProperties.js";
6
6
  import { useGetLinkButtonProperties } from "../hooks/useGetLinkButtonProperties.js";
7
7
  import { openUrlInNewTab } from "../utils/openUrlInNewTab.js";
@@ -13,9 +13,9 @@ import VectorUpRight from "@envive-ai/react-icons/VectorUpRight";
13
13
  * Component that renders an external link with an icon.
14
14
  * Uses an inline span with button role for better accessibility and inline text flow.
15
15
  */
16
- const LinkButton = ({ url, text, typographyColor, onClick }) => {
16
+ const LinkButton = ({ url, text, typographyColor, onClick, theme }) => {
17
17
  const { containerClasses } = useGetLinkButtonProperties();
18
- const { iconContainerClasses } = useGetLinkButtonIconProperties();
18
+ const { iconContainerClasses } = useGetLinkButtonIconProperties(theme);
19
19
  const handleClick = () => {
20
20
  openUrlInNewTab(url);
21
21
  onClick?.(url);
@@ -1,14 +1,15 @@
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
  let react = require("react");
3
4
 
4
5
  //#region src/components/Message/hooks/useGetLinkButtonIconProperties.ts
5
6
  /**
6
7
  * Hook that returns CSS classes for the LinkButton icon container element.
7
8
  */
8
- const useGetLinkButtonIconProperties = () => {
9
+ const useGetLinkButtonIconProperties = (theme) => {
9
10
  return { iconContainerClasses: (0, react.useMemo)(() => {
10
- return `envive-tw-inline-flex envive-tw-h-4 envive-tw-w-4 envive-tw-items-center envive-tw-justify-center envive-tw-align-middle envive-tw-rounded-sm envive-tw-bg-background-secondary envive-tw-transition-colors envive-tw-duration-200 group-hover:envive-tw-bg-[color-mix(in_srgb,var(--envive-colors-background-secondary)_90%,#000000_10%)]`;
11
- }, []) };
11
+ return `envive-tw-inline-flex envive-tw-h-4 envive-tw-w-4 envive-tw-items-center envive-tw-justify-center envive-tw-align-middle ${`${theme === require_theme.Theme.STANDARD || theme === require_theme.Theme.MODERN ? "envive-tw-rounded-2" : ""} envive-tw-bg-background-secondary`} envive-tw-transition-colors envive-tw-duration-200 group-hover:envive-tw-bg-[color-mix(in_srgb,var(--envive-colors-background-secondary)_90%,#000000_10%)]`;
12
+ }, [theme]) };
12
13
  };
13
14
 
14
15
  //#endregion
@@ -1,13 +1,14 @@
1
+ import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
1
2
  import { useMemo } from "react";
2
3
 
3
4
  //#region src/components/Message/hooks/useGetLinkButtonIconProperties.ts
4
5
  /**
5
6
  * Hook that returns CSS classes for the LinkButton icon container element.
6
7
  */
7
- const useGetLinkButtonIconProperties = () => {
8
+ const useGetLinkButtonIconProperties = (theme) => {
8
9
  return { iconContainerClasses: useMemo(() => {
9
- return `envive-tw-inline-flex envive-tw-h-4 envive-tw-w-4 envive-tw-items-center envive-tw-justify-center envive-tw-align-middle envive-tw-rounded-sm envive-tw-bg-background-secondary envive-tw-transition-colors envive-tw-duration-200 group-hover:envive-tw-bg-[color-mix(in_srgb,var(--envive-colors-background-secondary)_90%,#000000_10%)]`;
10
- }, []) };
10
+ return `envive-tw-inline-flex envive-tw-h-4 envive-tw-w-4 envive-tw-items-center envive-tw-justify-center envive-tw-align-middle ${`${theme === Theme.STANDARD || theme === Theme.MODERN ? "envive-tw-rounded-2" : ""} envive-tw-bg-background-secondary`} envive-tw-transition-colors envive-tw-duration-200 group-hover:envive-tw-bg-[color-mix(in_srgb,var(--envive-colors-background-secondary)_90%,#000000_10%)]`;
11
+ }, [theme]) };
11
12
  };
12
13
 
13
14
  //#endregion
@@ -1,4 +1,7 @@
1
+ import { Theme } from "../../tokens/theme/theme.cjs";
2
+
1
3
  //#region src/components/Message/types/index.d.ts
4
+
2
5
  /**
3
6
  * Visual variant of the message component.
4
7
  */
@@ -56,6 +59,7 @@ interface MessageProps {
56
59
  */
57
60
  style?: React.CSSProperties;
58
61
  onLinkClick?: (url: string) => void;
62
+ theme?: Theme;
59
63
  }
60
64
  //#endregion
61
65
  export { MessageProps, MessageVariant };
@@ -1,4 +1,7 @@
1
+ import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
2
+
1
3
  //#region src/components/Message/types/index.d.ts
4
+
2
5
  /**
3
6
  * Visual variant of the message component.
4
7
  */
@@ -56,6 +59,7 @@ interface MessageProps {
56
59
  */
57
60
  style?: React.CSSProperties;
58
61
  onLinkClick?: (url: string) => void;
62
+ theme?: Theme;
59
63
  }
60
64
  //#endregion
61
65
  export { MessageProps, MessageVariant };
@@ -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
- const require_resolveTheme = require('../utils/resolveTheme.cjs');
4
3
  const require_Stack = require('../Stack/Stack.cjs');
5
4
  require('../Stack/index.cjs');
5
+ const require_resolveTheme = require('../utils/resolveTheme.cjs');
6
6
  const require_useGetImageBorderRadiusProperties = require('./hooks/useGetImageBorderRadiusProperties.cjs');
7
7
  const require_index = require('./components/index.cjs');
8
8
  const require_useGetContainerProperties = require('./hooks/useGetContainerProperties.cjs');
@@ -1,7 +1,7 @@
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";
4
+ import { resolveTheme } from "../utils/resolveTheme.js";
5
5
  import { useGetImageBorderRadiusProperties } from "./hooks/useGetImageBorderRadiusProperties.js";
6
6
  import { OrderLookupCardComponents } from "./components/index.js";
7
7
  import { useGetContainerProperties } from "./hooks/useGetContainerProperties.js";
@@ -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
- require('../Tokens/index.cjs');
4
- const require_resolveTheme = require('../utils/resolveTheme.cjs');
5
3
  const require_index = require('../Typography/types/index.cjs');
4
+ const require_resolveTheme = require('../utils/resolveTheme.cjs');
5
+ require('../Tokens/index.cjs');
6
6
  const require_WidgetTextField = require('../WidgetTextField/WidgetTextField.cjs');
7
7
  require('../WidgetTextField/index.cjs');
8
8
  const require_index$1 = require('./components/index.cjs');
@@ -1,5 +1,5 @@
1
1
  import { ProductCardProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ProductCard/ProductCard.d.ts
5
5
  declare const ProductCard: ({
@@ -27,6 +27,6 @@ declare const ProductCard: ({
27
27
  onInputClick,
28
28
  onTranscriptionStarted,
29
29
  onTranscriptionCompleted
30
- }: ProductCardProps) => react_jsx_runtime16.JSX.Element;
30
+ }: ProductCardProps) => react_jsx_runtime2.JSX.Element;
31
31
  //#endregion
32
32
  export { ProductCard };
@@ -1,5 +1,5 @@
1
1
  import { ProductCardProps } from "./types/index.js";
2
- import * as react_jsx_runtime10 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ProductCard/ProductCard.d.ts
5
5
  declare const ProductCard: ({
@@ -27,6 +27,6 @@ declare const ProductCard: ({
27
27
  onInputClick,
28
28
  onTranscriptionStarted,
29
29
  onTranscriptionCompleted
30
- }: ProductCardProps) => react_jsx_runtime10.JSX.Element;
30
+ }: ProductCardProps) => react_jsx_runtime19.JSX.Element;
31
31
  //#endregion
32
32
  export { ProductCard };
@@ -1,7 +1,7 @@
1
1
  import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
2
- import "../Tokens/index.js";
3
- import { resolveTheme } from "../utils/resolveTheme.js";
4
2
  import { TypographyColor } from "../Typography/types/index.js";
3
+ import { resolveTheme } from "../utils/resolveTheme.js";
4
+ import "../Tokens/index.js";
5
5
  import { WidgetTextField } from "../WidgetTextField/WidgetTextField.js";
6
6
  import "../WidgetTextField/index.js";
7
7
  import { ProductCardWidgetComponents } from "./components/index.js";
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime18 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButton/PromptButton.d.ts
5
5
  declare const PromptButton: ({
@@ -22,6 +22,6 @@ declare const PromptButton: ({
22
22
  onTouchEnd,
23
23
  ariaLabel,
24
24
  ariaDescribedBy
25
- }: PromptButtonProps) => react_jsx_runtime18.JSX.Element;
25
+ }: PromptButtonProps) => react_jsx_runtime1.JSX.Element;
26
26
  //#endregion
27
27
  export { PromptButton };
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonCarouselWithImageProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime19 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
5
5
  declare const PromptButtonCarouselWithImage: ({
@@ -27,6 +27,6 @@ declare const PromptButtonCarouselWithImage: ({
27
27
  handleTextFieldClick,
28
28
  onTranscriptionStarted,
29
29
  onTranscriptionCompleted
30
- }: PromptButtonCarouselWithImageProps) => react_jsx_runtime19.JSX.Element;
30
+ }: PromptButtonCarouselWithImageProps) => react_jsx_runtime25.JSX.Element;
31
31
  //#endregion
32
32
  export { PromptButtonCarouselWithImage };
@@ -1,5 +1,5 @@
1
1
  import { PromptButtonCarouselWithImageProps } from "./types/types.js";
2
- import * as react_jsx_runtime16 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts
5
5
  declare const PromptButtonCarouselWithImage: ({
@@ -27,6 +27,6 @@ declare const PromptButtonCarouselWithImage: ({
27
27
  handleTextFieldClick,
28
28
  onTranscriptionStarted,
29
29
  onTranscriptionCompleted
30
- }: PromptButtonCarouselWithImageProps) => react_jsx_runtime16.JSX.Element;
30
+ }: PromptButtonCarouselWithImageProps) => react_jsx_runtime11.JSX.Element;
31
31
  //#endregion
32
32
  export { PromptButtonCarouselWithImage };
@@ -1,7 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_resolveTheme = require('../../utils/resolveTheme.cjs');
3
2
  const require_Stack = require('../../Stack/Stack.cjs');
4
3
  require('../../Stack/index.cjs');
4
+ const require_resolveTheme = require('../../utils/resolveTheme.cjs');
5
5
  const require_PromptButton = require('../../PromptButton/PromptButton.cjs');
6
6
  require('../../PromptButton/index.cjs');
7
7
  const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
@@ -1,6 +1,6 @@
1
- import { resolveTheme } from "../../utils/resolveTheme.js";
2
1
  import { Stack } from "../../Stack/Stack.js";
3
2
  import "../../Stack/index.js";
3
+ import { resolveTheme } from "../../utils/resolveTheme.js";
4
4
  import { PromptButton } from "../../PromptButton/PromptButton.js";
5
5
  import "../../PromptButton/index.js";
6
6
  import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
@@ -1,10 +1,10 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_theme = require('../packages/components-v3/tokens/theme/theme.cjs');
3
- const require_resolveTheme = require('../utils/resolveTheme.cjs');
4
- const require_Container = require('../Container/Container.cjs');
5
- require('../Container/index.cjs');
6
3
  const require_Stack = require('../Stack/Stack.cjs');
7
4
  require('../Stack/index.cjs');
5
+ const require_Container = require('../Container/Container.cjs');
6
+ require('../Container/index.cjs');
7
+ const require_resolveTheme = require('../utils/resolveTheme.cjs');
8
8
  const require_PromptButton_types_index = require('../PromptButton/types/index.cjs');
9
9
  const require_PromptButton = require('../PromptButton/PromptButton.cjs');
10
10
  require('../PromptButton/index.cjs');
@@ -1,5 +1,5 @@
1
1
  import { PromptCarouselProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptCarousel/PromptCarousel.d.ts
5
5
  declare const PromptCarousel: ({
@@ -26,6 +26,6 @@ declare const PromptCarousel: ({
26
26
  "aria-labelledby": ariaLabelledBy,
27
27
  "aria-describedby": ariaDescribedBy,
28
28
  role
29
- }: PromptCarouselProps) => react_jsx_runtime0.JSX.Element;
29
+ }: PromptCarouselProps) => react_jsx_runtime8.JSX.Element;
30
30
  //#endregion
31
31
  export { PromptCarousel };
@@ -1,5 +1,5 @@
1
1
  import { PromptCarouselProps } from "./types/types.js";
2
- import * as react_jsx_runtime9 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/PromptCarousel/PromptCarousel.d.ts
5
5
  declare const PromptCarousel: ({
@@ -26,6 +26,6 @@ declare const PromptCarousel: ({
26
26
  "aria-labelledby": ariaLabelledBy,
27
27
  "aria-describedby": ariaDescribedBy,
28
28
  role
29
- }: PromptCarouselProps) => react_jsx_runtime9.JSX.Element;
29
+ }: PromptCarouselProps) => react_jsx_runtime18.JSX.Element;
30
30
  //#endregion
31
31
  export { PromptCarousel };
@@ -1,9 +1,9 @@
1
1
  import { Theme } from "../packages/components-v3/tokens/theme/theme.js";
2
- import { resolveTheme } from "../utils/resolveTheme.js";
3
- import { Container } from "../Container/Container.js";
4
- import "../Container/index.js";
5
2
  import { Stack } from "../Stack/Stack.js";
6
3
  import "../Stack/index.js";
4
+ import { Container } from "../Container/Container.js";
5
+ import "../Container/index.js";
6
+ import { resolveTheme } from "../utils/resolveTheme.js";
7
7
  import { PromptButtonVariant } from "../PromptButton/types/index.js";
8
8
  import { PromptButton } from "../PromptButton/PromptButton.js";
9
9
  import "../PromptButton/index.js";
@@ -1,5 +1,5 @@
1
1
  import { ReviewCardProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ReviewCard/ReviewCard.d.ts
5
5
 
@@ -27,6 +27,6 @@ declare const ReviewCard: ({
27
27
  verifiedBuyerLabel,
28
28
  onExpand,
29
29
  onCollapse
30
- }: ReviewCardProps) => react_jsx_runtime12.JSX.Element;
30
+ }: ReviewCardProps) => react_jsx_runtime21.JSX.Element;
31
31
  //#endregion
32
32
  export { ReviewCard };
@@ -1,5 +1,5 @@
1
1
  import { ReviewCardProps } from "./types/types.js";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/ReviewCard/ReviewCard.d.ts
5
5
 
@@ -27,6 +27,6 @@ declare const ReviewCard: ({
27
27
  verifiedBuyerLabel,
28
28
  onExpand,
29
29
  onCollapse
30
- }: ReviewCardProps) => react_jsx_runtime2.JSX.Element;
30
+ }: ReviewCardProps) => react_jsx_runtime14.JSX.Element;
31
31
  //#endregion
32
32
  export { ReviewCard };
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_Container = require('../../Container/Container.cjs');
3
- require('../../Container/index.cjs');
4
2
  const require_Stack = require('../../Stack/Stack.cjs');
5
3
  require('../../Stack/index.cjs');
4
+ const require_Container = require('../../Container/Container.cjs');
5
+ require('../../Container/index.cjs');
6
6
  const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cjs');
7
7
  const require_useGetPaddingProperties = require('../hooks/useGetPaddingProperties.cjs');
8
8
  const require_useGetCardWidthProperties = require('../hooks/useGetCardWidthProperties.cjs');
@@ -1,7 +1,7 @@
1
- import { Container } from "../../Container/Container.js";
2
- import "../../Container/index.js";
3
1
  import { Stack } from "../../Stack/Stack.js";
4
2
  import "../../Stack/index.js";
3
+ import { Container } from "../../Container/Container.js";
4
+ import "../../Container/index.js";
5
5
  import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
6
6
  import { useGetPaddingProperties } from "../hooks/useGetPaddingProperties.js";
7
7
  import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_theme = require('../../packages/components-v3/tokens/theme/theme.cjs');
3
- const require_CustomIcon = require('../../utils/CustomIcon.cjs');
4
3
  const require_index = require('../../Typography/types/index.cjs');
5
4
  const require_Typography = require('../../Typography/Typography.cjs');
6
5
  require('../../Typography/index.cjs');
6
+ const require_CustomIcon = require('../../utils/CustomIcon.cjs');
7
7
  const require_useGetReadMoreTypographyProperties = require('../hooks/useGetReadMoreTypographyProperties.cjs');
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let classnames = require("classnames");
@@ -1,8 +1,8 @@
1
1
  import { Theme } from "../../packages/components-v3/tokens/theme/theme.js";
2
- import { CustomIcon } from "../../utils/CustomIcon.js";
3
2
  import { TypographyColor } from "../../Typography/types/index.js";
4
3
  import { Typography } from "../../Typography/Typography.js";
5
4
  import "../../Typography/index.js";
5
+ import { CustomIcon } from "../../utils/CustomIcon.js";
6
6
  import { useGetReadMoreTypographyProperties } from "../hooks/useGetReadMoreTypographyProperties.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import classNames from "classnames";
@@ -2,8 +2,8 @@ import { Theme } from "../../tokens/theme/theme.cjs";
2
2
  import { ContainerProps } from "./Container.cjs";
3
3
  import { RatingProps } from "./Rating.cjs";
4
4
  import { ReadMoreButtonProps } from "./ReadMoreButton.cjs";
5
- import * as react5 from "react";
6
- import * as react_jsx_runtime13 from "react/jsx-runtime";
5
+ import * as react7 from "react";
6
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/ReviewCard/components/index.d.ts
9
9
  declare const ReviewCardComponents: {
@@ -31,12 +31,12 @@ declare const ReviewCardComponents: {
31
31
  verifiedBuyerLabel?: string;
32
32
  className?: string;
33
33
  style?: React.CSSProperties;
34
- }) => react_jsx_runtime13.JSX.Element;
34
+ }) => react_jsx_runtime18.JSX.Element;
35
35
  Rating: ({
36
36
  rating,
37
37
  theme,
38
38
  style
39
- }: RatingProps) => react_jsx_runtime13.JSX.Element;
39
+ }: RatingProps) => react_jsx_runtime18.JSX.Element;
40
40
  StarIcon: ({
41
41
  theme,
42
42
  style,
@@ -45,7 +45,7 @@ declare const ReviewCardComponents: {
45
45
  theme: Theme;
46
46
  style?: React.CSSProperties;
47
47
  className?: string;
48
- }) => react5.ReactElement<react5.SVGProps<SVGSVGElement>, string | react5.JSXElementConstructor<any>>;
48
+ }) => react7.ReactElement<react7.SVGProps<SVGSVGElement>, string | react7.JSXElementConstructor<any>>;
49
49
  ReviewText: ({
50
50
  reviewText,
51
51
  isExpanded,
@@ -56,7 +56,7 @@ declare const ReviewCardComponents: {
56
56
  isExpanded: boolean;
57
57
  className?: string;
58
58
  style?: React.CSSProperties;
59
- }) => react_jsx_runtime13.JSX.Element;
59
+ }) => react_jsx_runtime18.JSX.Element;
60
60
  ReadMoreButton: ({
61
61
  isExpanded,
62
62
  onToggle,