@envive-ai/react-toolkit-v3 0.3.9 → 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.
Files changed (189) hide show
  1. package/dist/AnimatedText/AnimatedText.d.cts +3 -3
  2. package/dist/CSSVariablesEditor/components/CSSVariablesEditor.cjs +1 -1
  3. package/dist/CSSVariablesEditor/components/CSSVariablesEditor.js +1 -1
  4. package/dist/Carousel/Carousel.cjs +1 -1
  5. package/dist/Carousel/Carousel.d.cts +2 -2
  6. package/dist/Carousel/Carousel.js +1 -1
  7. package/dist/Carousel/components/Container.cjs +3 -3
  8. package/dist/Carousel/components/Container.js +3 -3
  9. package/dist/ChatFooter/ChatFooter.cjs +1 -1
  10. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  11. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  12. package/dist/ChatFooter/ChatFooter.js +1 -1
  13. package/dist/ChatFooter/components/Layout.cjs +2 -2
  14. package/dist/ChatFooter/components/Layout.js +2 -2
  15. package/dist/ChatFooter/components/index.d.cts +5 -5
  16. package/dist/ChatFooter/components/index.d.ts +1 -1
  17. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  18. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  19. package/dist/ChatHeader/components/Handle.cjs +2 -2
  20. package/dist/ChatHeader/components/Handle.js +2 -2
  21. package/dist/ChatHeader/components/Toggle.cjs +3 -3
  22. package/dist/ChatHeader/components/Toggle.js +3 -3
  23. package/dist/ChatHeader/hooks/useGetCloseButtonProperties.cjs +1 -1
  24. package/dist/ChatHeader/hooks/useGetCloseButtonProperties.js +1 -1
  25. package/dist/ChatPreview/ChatPreview.cjs +2 -2
  26. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  27. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  28. package/dist/ChatPreview/ChatPreview.js +2 -2
  29. package/dist/ChatPreview/components/Message.cjs +1 -1
  30. package/dist/ChatPreview/components/Message.js +1 -1
  31. package/dist/ChatPreviewComparison/ChatPreviewComparison.cjs +2 -2
  32. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  33. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  34. package/dist/ChatPreviewComparison/ChatPreviewComparison.js +2 -2
  35. package/dist/ChatPreviewComparison/components/Headline.cjs +2 -2
  36. package/dist/ChatPreviewComparison/components/Headline.js +2 -2
  37. package/dist/ChatPreviewComparison/components/Layout.cjs +4 -4
  38. package/dist/ChatPreviewComparison/components/Layout.js +4 -4
  39. package/dist/ChatPreviewComparison/components/Message.cjs +3 -3
  40. package/dist/ChatPreviewComparison/components/Message.js +3 -3
  41. package/dist/ChatPreviewLoading/ChatPreviewLoading.cjs +1 -1
  42. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  43. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  44. package/dist/ChatPreviewLoading/ChatPreviewLoading.js +1 -1
  45. package/dist/Container/Container.d.cts +176 -176
  46. package/dist/Container/Container.d.ts +4 -4
  47. package/dist/DesignTokens/DesignTokensComponent.cjs +1 -1
  48. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  49. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  50. package/dist/DesignTokens/DesignTokensComponent.js +1 -1
  51. package/dist/Disclaimer/components/Container.cjs +2 -2
  52. package/dist/Disclaimer/components/Container.js +2 -2
  53. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  54. package/dist/DocumentRetrievalCard/components/Layout.cjs +2 -2
  55. package/dist/DocumentRetrievalCard/components/Layout.js +2 -2
  56. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
  57. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
  58. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  59. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  60. package/dist/FloatingChat/FloatingChat.cjs +1 -1
  61. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  62. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  63. package/dist/FloatingChat/FloatingChat.js +1 -1
  64. package/dist/FloatingChat/components/ChatMessages.cjs +2 -2
  65. package/dist/FloatingChat/components/ChatMessages.js +2 -2
  66. package/dist/FloatingChat/components/Layout.cjs +4 -4
  67. package/dist/FloatingChat/components/Layout.js +4 -4
  68. package/dist/FloatingChat/components/ModalSheet.cjs +6 -7
  69. package/dist/FloatingChat/components/ModalSheet.js +6 -7
  70. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +0 -3
  71. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +0 -3
  72. package/dist/FloatingChat/components/ScrollToBottomButton.cjs +1 -1
  73. package/dist/FloatingChat/components/ScrollToBottomButton.js +1 -1
  74. package/dist/Form/Form.cjs +1 -1
  75. package/dist/Form/Form.js +1 -1
  76. package/dist/Image/Image.d.cts +2 -2
  77. package/dist/Image/Image.d.ts +2 -2
  78. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  79. package/dist/ImageGallery/ImageGallery.d.ts +2 -2
  80. package/dist/ImageGallery/components/Layout.cjs +1 -1
  81. package/dist/ImageGallery/components/Layout.js +1 -1
  82. package/dist/ImageGallery/components/NormalLayout.cjs +1 -1
  83. package/dist/ImageGallery/components/NormalLayout.js +1 -1
  84. package/dist/MarkdownProcessor/MarkdownProcessor.cjs +1 -1
  85. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  86. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  87. package/dist/MarkdownProcessor/MarkdownProcessor.js +1 -1
  88. package/dist/Message/components/AgentContent.cjs +1 -1
  89. package/dist/Message/components/AgentContent.js +1 -1
  90. package/dist/Message/components/LinkButton.cjs +1 -1
  91. package/dist/Message/components/LinkButton.js +1 -1
  92. package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
  93. package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
  94. package/dist/ProductCard/ProductCard.cjs +2 -2
  95. package/dist/ProductCard/ProductCard.d.cts +2 -2
  96. package/dist/ProductCard/ProductCard.d.ts +2 -2
  97. package/dist/ProductCard/ProductCard.js +2 -2
  98. package/dist/ProductCard/components/Header.cjs +1 -1
  99. package/dist/ProductCard/components/Header.js +1 -1
  100. package/dist/PromptButton/PromptButton.d.cts +2 -2
  101. package/dist/PromptButton/PromptButton.d.ts +2 -2
  102. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  103. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  104. package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
  105. package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
  106. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.cjs +1 -1
  107. package/dist/PromptButtonCarouselWithImage/components/PromptButtonsCarousel.js +1 -1
  108. package/dist/PromptCarousel/PromptCarousel.cjs +5 -4
  109. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  110. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  111. package/dist/PromptCarousel/PromptCarousel.js +5 -4
  112. package/dist/ReviewCard/ReviewCard.cjs +1 -1
  113. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  114. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  115. package/dist/ReviewCard/ReviewCard.js +1 -1
  116. package/dist/ReviewCard/components/Container.cjs +2 -2
  117. package/dist/ReviewCard/components/Container.js +2 -2
  118. package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
  119. package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
  120. package/dist/ReviewCard/components/index.d.cts +6 -6
  121. package/dist/ReviewCard/components/index.d.ts +6 -6
  122. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  123. package/dist/SalesAgentProductCard/components/Container.cjs +2 -2
  124. package/dist/SalesAgentProductCard/components/Container.js +2 -2
  125. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  126. package/dist/SalesAgentProductCard/components/index.d.ts +2 -2
  127. package/dist/SocialProof/SocialProof.cjs +1 -1
  128. package/dist/SocialProof/SocialProof.d.cts +2 -2
  129. package/dist/SocialProof/SocialProof.d.ts +2 -2
  130. package/dist/SocialProof/SocialProof.js +1 -1
  131. package/dist/SocialProof/components/Headline.cjs +4 -4
  132. package/dist/SocialProof/components/Headline.js +4 -4
  133. package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
  134. package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
  135. package/dist/SocialProof/components/LayoutSingle.cjs +1 -1
  136. package/dist/SocialProof/components/LayoutSingle.js +1 -1
  137. package/dist/SocialProof/components/Subheadline.cjs +1 -1
  138. package/dist/SocialProof/components/Subheadline.js +1 -1
  139. package/dist/Stack/Stack.d.cts +2 -2
  140. package/dist/Stack/Stack.d.ts +2 -2
  141. package/dist/Stack/hooks/useFormatStackChildren.cjs +1 -1
  142. package/dist/Stack/hooks/useFormatStackChildren.js +1 -1
  143. package/dist/TextField/utils/getIconColor.cjs +1 -1
  144. package/dist/TextField/utils/getIconColor.js +1 -1
  145. package/dist/TextField/utils/getSendIconElement.cjs +1 -1
  146. package/dist/TextField/utils/getSendIconElement.js +1 -1
  147. package/dist/Title/components/Image.cjs +1 -1
  148. package/dist/Title/components/Image.js +1 -1
  149. package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
  150. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.cts +2 -2
  151. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  152. package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
  153. package/dist/Tokens/index.cjs +1 -1
  154. package/dist/Tokens/index.js +1 -1
  155. package/dist/TypingAnimation/TypingAnimation.cjs +3 -3
  156. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  157. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  158. package/dist/TypingAnimation/TypingAnimation.js +3 -3
  159. package/dist/TypingAnimation/hooks/useGetTypographyVariant.cjs +1 -1
  160. package/dist/TypingAnimation/hooks/useGetTypographyVariant.js +1 -1
  161. package/dist/Typography/Typography.d.cts +4 -4
  162. package/dist/Typography/Typography.d.ts +4 -4
  163. package/dist/WelcomeMessage/components/Container.cjs +2 -2
  164. package/dist/WelcomeMessage/components/Container.js +2 -2
  165. package/dist/WidgetTextField/WidgetTextField.cjs +1 -1
  166. package/dist/WidgetTextField/WidgetTextField.d.cts +2 -2
  167. package/dist/WidgetTextField/WidgetTextField.d.ts +2 -2
  168. package/dist/WidgetTextField/WidgetTextField.js +1 -1
  169. package/dist/WidgetTextField/components/Container.cjs +2 -2
  170. package/dist/WidgetTextField/components/Container.js +2 -2
  171. package/dist/WidgetTextField/components/Icon.cjs +3 -2
  172. package/dist/WidgetTextField/components/Icon.js +3 -2
  173. package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
  174. package/dist/WidgetTextField/components/Skeleton.js +1 -1
  175. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  176. package/dist/WidgetWrapper/WidgetWrapper.d.ts +2 -2
  177. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  178. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  179. package/dist/utils/CustomIcon.cjs +2 -2
  180. package/dist/utils/CustomIcon.js +2 -2
  181. package/package.json +1 -1
  182. package/src/components/ChatHeader/hooks/useGetCloseButtonProperties.ts +1 -1
  183. package/src/components/FloatingChat/components/ModalSheet.tsx +5 -7
  184. package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +0 -3
  185. package/src/components/PromptCarousel/PromptCarousel.tsx +1 -0
  186. package/src/components/TextField/utils/getIconColor.ts +1 -1
  187. package/src/components/TextField/utils/getSendIconElement.tsx +3 -1
  188. package/src/components/WidgetTextField/components/Icon.tsx +1 -0
  189. package/src/components/utils/CustomIcon.tsx +1 -1
@@ -10,8 +10,6 @@ import { Unit } from '../hooks/useSnapCalculator';
10
10
  import { useSnapControl } from '../hooks/useSnapControl';
11
11
  import { usePreventScroll } from '../hooks/usePreventScroll';
12
12
 
13
- const BOTTOM_OFFSET = 100;
14
-
15
13
  export interface ModalSheetControl {
16
14
  jumpToSnap: (snapIndex: number) => void;
17
15
  }
@@ -228,7 +226,7 @@ export const ModalSheet: FC<ModalSheetProps> = ({
228
226
  dragConstraints={{ top: 0, bottom: swipeviewHeightPx }}
229
227
  initial={{ y: swipeviewHeightPx }}
230
228
  animate={{ y: initSnapInPixels }}
231
- exit={{ y: swipeviewHeightPx + BOTTOM_OFFSET }}
229
+ exit={{ y: swipeviewHeightPx }}
232
230
  transition={animation}
233
231
  onDragEnd={handleDragEnd}
234
232
  onClick={expandToFullView}
@@ -254,16 +252,16 @@ export const ModalSheet: FC<ModalSheetProps> = ({
254
252
  onPointerMove={
255
253
  disableDrag ? undefined : event => handleContentGesture(event.clientX, event.clientY)
256
254
  }
257
- initial={{ y: swipeviewHeightPx + BOTTOM_OFFSET }}
255
+ initial={{ y: swipeviewHeightPx }}
258
256
  animate={{ y: initSnapInPixels }}
259
- exit={{ y: swipeviewHeightPx + BOTTOM_OFFSET }}
257
+ exit={{ y: swipeviewHeightPx }}
260
258
  transition={animation}
261
259
  style={{
262
260
  y: animatedY,
263
261
  width: '100%',
264
- height: swipeviewHeightPx + BOTTOM_OFFSET,
262
+ height: swipeviewHeightPx,
265
263
  position: 'fixed',
266
- bottom: -BOTTOM_OFFSET + 2,
264
+ bottom: 0,
267
265
  right: 0,
268
266
  boxSizing: 'content-box',
269
267
  zIndex: 2147483646,
@@ -52,9 +52,6 @@ export const SalesAgentProductCardsCarousel = ({
52
52
  numberOfReviews={product.numberOfReviews}
53
53
  image={product.image}
54
54
  url={product.url}
55
- onClick={() => {
56
- window.open(product.url, '_blank');
57
- }}
58
55
  theme={finalTheme}
59
56
  />
60
57
  ))}
@@ -123,6 +123,7 @@ export const PromptCarousel = ({
123
123
  >
124
124
  <Stack
125
125
  direction="column"
126
+ className={animationSpeed === AnimationSpeed.NONE ? 'envive-tw-w-full' : ''}
126
127
  gap="2"
127
128
  >
128
129
  <div
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const getIconColor = (hasValue: boolean, disabled: boolean): string => {
5
5
  if (disabled || !hasValue) {
6
- return 'var(--envive-colors-border-medium)';
6
+ return 'var(--envive-colors-border-light)';
7
7
  }
8
8
  return 'var(--envive-colors-text-primary)';
9
9
  };
@@ -30,7 +30,9 @@ export const getSendIconElement = (
30
30
  <CustomIcon
31
31
  IconComponent={<SendModern />}
32
32
  fill={iconColor}
33
- stroke={iconColor}
33
+ stroke={
34
+ hasValue ? 'var(--envive-colors-background-light)' : 'var(--envive-colors-border-dark)'
35
+ }
34
36
  />
35
37
  );
36
38
  case Theme.MINIMAL:
@@ -53,6 +53,7 @@ export const Icon = ({ variant, theme, textColor }: IconProps) => {
53
53
  ? `var(--envive-colors-${textColor})`
54
54
  : 'var(--envive-colors-border-medium)'
55
55
  }
56
+ stroke="var(--envive-colors-border-dark)"
56
57
  />
57
58
  );
58
59
  }
@@ -19,7 +19,7 @@ export const CustomIcon = ({
19
19
 
20
20
  const cssRules: string[] = [];
21
21
  if (fill) {
22
- cssRules.push(`#${iconId} path { fill: ${fill} !important; }`);
22
+ cssRules.push(`#${iconId} path, #${iconId} rect { fill: ${fill} !important; }`);
23
23
  }
24
24
  if (stroke) {
25
25
  cssRules.push(`#${iconId} path { stroke: ${stroke} !important; }`);