@envive-ai/react-toolkit-v3 0.3.32 → 0.3.34

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 (278) hide show
  1. package/dist/AnimatedText/AnimatedText.d.cts +3 -3
  2. package/dist/AnimatedText/AnimatedText.d.ts +3 -3
  3. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.cts +2 -2
  4. package/dist/CSSVariablesEditor/CssVariablesEditorComponent.d.ts +2 -2
  5. package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.cjs +1 -1
  6. package/dist/CSSVariablesEditor/hooks/useGetCssVariablesOptions.js +1 -1
  7. package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.cjs +1 -1
  8. package/dist/CSSVariablesEditor/hooks/useGetCurrentMerchantColors.js +1 -1
  9. package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.cjs +166 -61
  10. package/dist/CSSVariablesEditor/hooks/useGetDefaultCssVariables.js +166 -61
  11. package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.cjs +31 -16
  12. package/dist/CSSVariablesEditor/hooks/useHandleUpdateCssVars.js +31 -16
  13. package/dist/Carousel/Carousel.d.cts +2 -2
  14. package/dist/Carousel/Carousel.d.ts +2 -2
  15. package/dist/Carousel/components/Badge.cjs +1 -1
  16. package/dist/Carousel/components/Badge.js +1 -1
  17. package/dist/Carousel/components/Container.cjs +1 -1
  18. package/dist/Carousel/components/Container.js +1 -1
  19. package/dist/ChatFooter/ChatFooter.cjs +1 -1
  20. package/dist/ChatFooter/ChatFooter.d.cts +2 -2
  21. package/dist/ChatFooter/ChatFooter.d.ts +2 -2
  22. package/dist/ChatFooter/ChatFooter.js +1 -1
  23. package/dist/ChatFooter/components/Layout.cjs +1 -1
  24. package/dist/ChatFooter/components/Layout.js +1 -1
  25. package/dist/ChatFooter/components/index.d.cts +5 -5
  26. package/dist/ChatFooter/components/index.d.ts +5 -5
  27. package/dist/ChatHeader/ChatHeader.d.cts +2 -2
  28. package/dist/ChatHeader/ChatHeader.d.ts +2 -2
  29. package/dist/ChatHeader/hooks/useGetHandleProperties.cjs +1 -1
  30. package/dist/ChatHeader/hooks/useGetHandleProperties.js +1 -1
  31. package/dist/ChatHeader/hooks/useGetLayoutProperties.cjs +1 -1
  32. package/dist/ChatHeader/hooks/useGetLayoutProperties.js +1 -1
  33. package/dist/ChatPreview/ChatPreview.d.cts +2 -2
  34. package/dist/ChatPreview/ChatPreview.d.ts +2 -2
  35. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.cts +2 -2
  36. package/dist/ChatPreviewComparison/ChatPreviewComparison.d.ts +2 -2
  37. package/dist/ChatPreviewComparison/components/Layout.cjs +2 -2
  38. package/dist/ChatPreviewComparison/components/Layout.js +2 -2
  39. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.cts +2 -2
  40. package/dist/ChatPreviewLoading/ChatPreviewLoading.d.ts +2 -2
  41. package/dist/Container/Container.d.cts +172 -172
  42. package/dist/Container/Container.d.ts +172 -172
  43. package/dist/DesignTokens/DesignTokensComponent.d.cts +2 -2
  44. package/dist/DesignTokens/DesignTokensComponent.d.ts +2 -2
  45. package/dist/DesignTokens/components/FontFamily.cjs +1 -1
  46. package/dist/DesignTokens/components/FontFamily.js +1 -1
  47. package/dist/DesignTokens/components/FontSize.cjs +1 -1
  48. package/dist/DesignTokens/components/FontSize.js +1 -1
  49. package/dist/DesignTokens/components/FontWeight.cjs +5 -4
  50. package/dist/DesignTokens/components/FontWeight.js +5 -4
  51. package/dist/DesignTokens/components/LetterSpacing.cjs +16 -2
  52. package/dist/DesignTokens/components/LetterSpacing.js +16 -2
  53. package/dist/DesignTokens/components/LineHeight.cjs +14 -9
  54. package/dist/DesignTokens/components/LineHeight.js +14 -9
  55. package/dist/DesignTokens/components/Typography.cjs +1 -1
  56. package/dist/DesignTokens/components/Typography.js +1 -1
  57. package/dist/Disclaimer/components/Container.cjs +1 -1
  58. package/dist/Disclaimer/components/Container.js +1 -1
  59. package/dist/DocumentRetrievalCard/DocumentRetrievalCard.d.cts +2 -2
  60. package/dist/DocumentRetrievalCard/components/Image.cjs +1 -1
  61. package/dist/DocumentRetrievalCard/components/Image.js +1 -1
  62. package/dist/DocumentRetrievalCard/components/Layout.cjs +1 -1
  63. package/dist/DocumentRetrievalCard/components/Layout.js +1 -1
  64. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.cjs +1 -1
  65. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.js +1 -1
  66. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.cjs +1 -1
  67. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Label.js +1 -1
  68. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.cjs +1 -1
  69. package/dist/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.js +1 -1
  70. package/dist/FloatingButton/FloatingButton.d.cts +2 -2
  71. package/dist/FloatingButton/FloatingButton.d.ts +2 -2
  72. package/dist/FloatingButton/components/Button.cjs +1 -1
  73. package/dist/FloatingButton/components/Button.js +1 -1
  74. package/dist/FloatingButton/components/Container.cjs +1 -1
  75. package/dist/FloatingButton/components/Container.js +1 -1
  76. package/dist/FloatingButton/components/Wrapper.cjs +1 -1
  77. package/dist/FloatingButton/components/Wrapper.js +1 -1
  78. package/dist/FloatingChat/FloatingChat.d.cts +2 -2
  79. package/dist/FloatingChat/FloatingChat.d.ts +2 -2
  80. package/dist/FloatingChat/components/ChatMessages.cjs +1 -1
  81. package/dist/FloatingChat/components/ChatMessages.js +1 -1
  82. package/dist/FloatingChat/components/Layout.cjs +1 -1
  83. package/dist/FloatingChat/components/Layout.js +1 -1
  84. package/dist/FloatingChat/components/ProductResultsModal.cjs +1 -1
  85. package/dist/FloatingChat/components/ProductResultsModal.js +1 -1
  86. package/dist/FloatingChat/components/ResultsGridView.cjs +1 -1
  87. package/dist/FloatingChat/components/ResultsGridView.js +1 -1
  88. package/dist/FloatingChat/components/SalesAgentBadgeContent.cjs +4 -4
  89. package/dist/FloatingChat/components/SalesAgentBadgeContent.js +4 -4
  90. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.cjs +6 -3
  91. package/dist/FloatingChat/components/SalesAgentProductCardsCarousel.js +6 -3
  92. package/dist/FloatingChat/utils/functions.cjs +2 -1
  93. package/dist/FloatingChat/utils/functions.js +2 -1
  94. package/dist/Form/Form.cjs +1 -1
  95. package/dist/Form/Form.js +1 -1
  96. package/dist/Form/components/Layout.cjs +1 -1
  97. package/dist/Form/components/Layout.js +1 -1
  98. package/dist/Form/components/SubmitButtonItem.cjs +1 -1
  99. package/dist/Form/components/SubmitButtonItem.js +1 -1
  100. package/dist/Form/components/TextFieldItem.cjs +1 -1
  101. package/dist/Form/components/TextFieldItem.js +1 -1
  102. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.cts +2 -2
  103. package/dist/FullPageSalesAgent/FullPageSalesAgent.d.ts +2 -2
  104. package/dist/FullPageSalesAgent/components/Layout.cjs +1 -1
  105. package/dist/FullPageSalesAgent/components/Layout.js +1 -1
  106. package/dist/FullPageSalesAgent/components/WelcomeOverlay.cjs +1 -1
  107. package/dist/FullPageSalesAgent/components/WelcomeOverlay.js +1 -1
  108. package/dist/Image/Image.cjs +1 -1
  109. package/dist/Image/Image.d.cts +2 -2
  110. package/dist/Image/Image.d.ts +2 -2
  111. package/dist/Image/Image.js +1 -1
  112. package/dist/ImageGallery/ImageGallery.d.cts +2 -2
  113. package/dist/ImageGallery/components/Layout.cjs +1 -1
  114. package/dist/ImageGallery/components/Layout.js +1 -1
  115. package/dist/ImageGallery/utils/functions.cjs +1 -1
  116. package/dist/ImageGallery/utils/functions.js +1 -1
  117. package/dist/MarkdownProcessor/MarkdownProcessor.d.cts +2 -2
  118. package/dist/MarkdownProcessor/MarkdownProcessor.d.ts +2 -2
  119. package/dist/Message/components/Layout.cjs +1 -1
  120. package/dist/Message/components/Layout.js +1 -1
  121. package/dist/OrderLookupCard/OrderLookupCard.cjs +1 -1
  122. package/dist/OrderLookupCard/OrderLookupCard.js +1 -1
  123. package/dist/OrderLookupCard/components/Layout.cjs +1 -1
  124. package/dist/OrderLookupCard/components/Layout.js +1 -1
  125. package/dist/OrderLookupCard/components/MoreProductsOverlay.cjs +1 -1
  126. package/dist/OrderLookupCard/components/MoreProductsOverlay.js +1 -1
  127. package/dist/OrderLookupCard/components/ProductImageGridItem.cjs +1 -1
  128. package/dist/OrderLookupCard/components/ProductImageGridItem.js +1 -1
  129. package/dist/OrderLookupCard/components/ProductImageItem.cjs +1 -1
  130. package/dist/OrderLookupCard/components/ProductImageItem.js +1 -1
  131. package/dist/OrderLookupCard/components/ProductImagesGrid.cjs +1 -1
  132. package/dist/OrderLookupCard/components/ProductImagesGrid.js +1 -1
  133. package/dist/OrderLookupCard/components/StatusLabel.cjs +1 -1
  134. package/dist/OrderLookupCard/components/StatusLabel.js +1 -1
  135. package/dist/OrderLookupCard/components/TrackOrderLink.cjs +1 -1
  136. package/dist/OrderLookupCard/components/TrackOrderLink.js +1 -1
  137. package/dist/ProductCard/ProductCard.cjs +14 -8
  138. package/dist/ProductCard/ProductCard.d.cts +3 -2
  139. package/dist/ProductCard/ProductCard.d.ts +3 -2
  140. package/dist/ProductCard/ProductCard.js +10 -4
  141. package/dist/ProductCard/components/Header.cjs +7 -5
  142. package/dist/ProductCard/components/Header.js +7 -5
  143. package/dist/ProductCard/components/Poster.cjs +3 -2
  144. package/dist/ProductCard/components/Poster.js +3 -2
  145. package/dist/ProductCard/hooks/useGetPosterProperties.cjs +5 -3
  146. package/dist/ProductCard/hooks/useGetPosterProperties.js +6 -3
  147. package/dist/ProductCard/index.cjs +3 -1
  148. package/dist/ProductCard/index.d.cts +2 -2
  149. package/dist/ProductCard/index.d.ts +2 -2
  150. package/dist/ProductCard/index.js +2 -1
  151. package/dist/ProductCard/types/index.cjs +10 -0
  152. package/dist/ProductCard/types/index.d.cts +13 -3
  153. package/dist/ProductCard/types/index.d.ts +13 -3
  154. package/dist/ProductCard/types/index.js +9 -0
  155. package/dist/PromptButton/PromptButton.cjs +1 -1
  156. package/dist/PromptButton/PromptButton.d.cts +2 -2
  157. package/dist/PromptButton/PromptButton.d.ts +2 -2
  158. package/dist/PromptButton/PromptButton.js +1 -1
  159. package/dist/PromptButton/components/Layout.cjs +1 -1
  160. package/dist/PromptButton/components/Layout.js +1 -1
  161. package/dist/PromptButton/components/Loading.cjs +1 -1
  162. package/dist/PromptButton/components/Loading.js +1 -1
  163. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.cts +2 -2
  164. package/dist/PromptButtonCarouselWithImage/PromptButtonCarouselWithImage.d.ts +2 -2
  165. package/dist/PromptButtonCarouselWithImage/components/Layout.cjs +1 -1
  166. package/dist/PromptButtonCarouselWithImage/components/Layout.js +1 -1
  167. package/dist/PromptButtonCarouselWithImage/components/Skeleton.cjs +1 -1
  168. package/dist/PromptButtonCarouselWithImage/components/Skeleton.js +1 -1
  169. package/dist/PromptCarousel/PromptCarousel.cjs +1 -1
  170. package/dist/PromptCarousel/PromptCarousel.d.cts +2 -2
  171. package/dist/PromptCarousel/PromptCarousel.d.ts +2 -2
  172. package/dist/PromptCarousel/PromptCarousel.js +1 -1
  173. package/dist/ReviewCard/ReviewCard.d.cts +2 -2
  174. package/dist/ReviewCard/ReviewCard.d.ts +2 -2
  175. package/dist/ReviewCard/components/Container.cjs +1 -1
  176. package/dist/ReviewCard/components/Container.js +1 -1
  177. package/dist/ReviewCard/components/Rating.cjs +1 -1
  178. package/dist/ReviewCard/components/Rating.js +1 -1
  179. package/dist/ReviewCard/components/ReadMoreButton.cjs +1 -1
  180. package/dist/ReviewCard/components/ReadMoreButton.js +1 -1
  181. package/dist/ReviewCard/components/index.d.cts +4 -4
  182. package/dist/ReviewCard/components/index.d.ts +6 -6
  183. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.cts +2 -2
  184. package/dist/SalesAgentProductCard/SalesAgentProductCard.d.ts +2 -2
  185. package/dist/SalesAgentProductCard/components/Container.cjs +1 -1
  186. package/dist/SalesAgentProductCard/components/Container.js +1 -1
  187. package/dist/SalesAgentProductCard/components/ProductImage.cjs +1 -1
  188. package/dist/SalesAgentProductCard/components/ProductImage.js +1 -1
  189. package/dist/SalesAgentProductCard/components/ProductName.cjs +1 -1
  190. package/dist/SalesAgentProductCard/components/ProductName.js +1 -1
  191. package/dist/SalesAgentProductCard/components/index.d.cts +8 -8
  192. package/dist/SalesAgentProductCard/components/index.d.ts +8 -8
  193. package/dist/SocialProof/SocialProof.d.cts +2 -2
  194. package/dist/SocialProof/SocialProof.d.ts +2 -2
  195. package/dist/SocialProof/components/Headline.cjs +1 -1
  196. package/dist/SocialProof/components/Headline.js +1 -1
  197. package/dist/SocialProof/components/LayoutFourHorizontal.cjs +1 -1
  198. package/dist/SocialProof/components/LayoutFourHorizontal.js +1 -1
  199. package/dist/SparkleAnimation/SparkleAnimation.d.cts +2 -2
  200. package/dist/SparkleAnimation/SparkleAnimation.d.ts +2 -2
  201. package/dist/Stack/Stack.d.cts +2 -2
  202. package/dist/Stack/Stack.d.ts +2 -2
  203. package/dist/TextField/TextField.cjs +1 -1
  204. package/dist/TextField/TextField.js +1 -1
  205. package/dist/TextField/components/Input.cjs +1 -1
  206. package/dist/TextField/components/Input.js +1 -1
  207. package/dist/TextField/components/Layout.cjs +1 -1
  208. package/dist/TextField/components/Layout.js +1 -1
  209. package/dist/TextField/components/SendIcon.cjs +1 -1
  210. package/dist/TextField/components/SendIcon.js +1 -1
  211. package/dist/Title/Title.cjs +1 -1
  212. package/dist/Title/Title.js +1 -1
  213. package/dist/Title/components/Layout.cjs +1 -1
  214. package/dist/Title/components/Layout.js +1 -1
  215. package/dist/TitledPromptCarousel/TitledPromptCarousel.cjs +1 -1
  216. package/dist/TitledPromptCarousel/TitledPromptCarousel.d.ts +2 -2
  217. package/dist/TitledPromptCarousel/TitledPromptCarousel.js +1 -1
  218. package/dist/Tokens/index.cjs +2 -2
  219. package/dist/Tokens/index.js +2 -2
  220. package/dist/TypingAnimation/TypingAnimation.d.cts +2 -2
  221. package/dist/TypingAnimation/TypingAnimation.d.ts +2 -2
  222. package/dist/Typography/Typography.d.cts +4 -4
  223. package/dist/Typography/Typography.d.ts +4 -4
  224. package/dist/WelcomeMessage/components/Container.cjs +1 -1
  225. package/dist/WelcomeMessage/components/Container.js +1 -1
  226. package/dist/WidgetTextField/WidgetTextField.cjs +3 -2
  227. package/dist/WidgetTextField/WidgetTextField.d.cts +3 -2
  228. package/dist/WidgetTextField/WidgetTextField.d.ts +3 -2
  229. package/dist/WidgetTextField/WidgetTextField.js +3 -2
  230. package/dist/WidgetTextField/components/Container.cjs +4 -3
  231. package/dist/WidgetTextField/components/Container.js +4 -3
  232. package/dist/WidgetTextField/components/Skeleton.cjs +1 -1
  233. package/dist/WidgetTextField/components/Skeleton.js +1 -1
  234. package/dist/WidgetTextField/hooks/useGetContainerProperties.cjs +7 -3
  235. package/dist/WidgetTextField/hooks/useGetContainerProperties.js +7 -3
  236. package/dist/WidgetTextField/types/types.d.cts +2 -0
  237. package/dist/WidgetTextField/types/types.d.ts +2 -0
  238. package/dist/WidgetWrapper/WidgetWrapper.cjs +1 -1
  239. package/dist/WidgetWrapper/WidgetWrapper.d.cts +2 -2
  240. package/dist/WidgetWrapper/WidgetWrapper.js +1 -1
  241. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.cts +2 -2
  242. package/dist/WidgetWrapperWithTitle/WidgetWrapperWithTitle.d.ts +2 -2
  243. package/dist/packages/components-v3/tokens/typography/fontWeight.cjs +12 -9
  244. package/dist/packages/components-v3/tokens/typography/fontWeight.d.ts +4 -3
  245. package/dist/packages/components-v3/tokens/typography/fontWeight.js +12 -9
  246. package/dist/packages/components-v3/tokens/typography/letterSpacing.cjs +39 -6
  247. package/dist/packages/components-v3/tokens/typography/letterSpacing.d.ts +13 -2
  248. package/dist/packages/components-v3/tokens/typography/letterSpacing.js +39 -6
  249. package/dist/packages/components-v3/tokens/typography/lineHeight.cjs +39 -30
  250. package/dist/packages/components-v3/tokens/typography/lineHeight.d.ts +15 -12
  251. package/dist/packages/components-v3/tokens/typography/lineHeight.js +39 -30
  252. package/dist/packages/components-v3/tokens/typography/typography.cjs +63 -63
  253. package/dist/packages/components-v3/tokens/typography/typography.js +63 -63
  254. package/dist/styles.css +1 -1
  255. package/dist/tokens/typography/fontWeight.d.cts +4 -3
  256. package/dist/tokens/typography/letterSpacing.d.cts +13 -2
  257. package/dist/tokens/typography/lineHeight.d.cts +15 -12
  258. package/dist/utils/resolveTheme.cjs +1 -1
  259. package/dist/utils/resolveTheme.js +1 -1
  260. package/package.json +1 -1
  261. package/src/components/CSSVariablesEditor/hooks/useGetDefaultCssVariables.ts +165 -60
  262. package/src/components/CSSVariablesEditor/hooks/useHandleUpdateCssVars.ts +30 -15
  263. package/src/components/DesignTokens/components/FontWeight.tsx +4 -3
  264. package/src/components/DesignTokens/components/LetterSpacing.tsx +13 -1
  265. package/src/components/DesignTokens/components/LineHeight.tsx +13 -8
  266. package/src/components/FloatingChat/components/SalesAgentBadgeContent.tsx +8 -2
  267. package/src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx +5 -2
  268. package/src/components/FloatingChat/utils/functions.ts +2 -3
  269. package/src/components/ProductCard/ProductCard.tsx +8 -4
  270. package/src/components/ProductCard/components/Header.tsx +11 -5
  271. package/src/components/ProductCard/components/Poster.tsx +12 -3
  272. package/src/components/ProductCard/hooks/useGetPosterProperties.ts +15 -3
  273. package/src/components/ProductCard/index.ts +1 -0
  274. package/src/components/ProductCard/types/index.ts +13 -1
  275. package/src/components/WidgetTextField/WidgetTextField.tsx +2 -0
  276. package/src/components/WidgetTextField/components/Container.tsx +3 -0
  277. package/src/components/WidgetTextField/hooks/useGetContainerProperties.ts +8 -2
  278. package/src/components/WidgetTextField/types/types.ts +2 -0
@@ -1,5 +1,5 @@
1
- import classNames from "classnames";
2
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import classNames from "classnames";
3
3
 
4
4
  //#region src/components/DesignTokens/components/Typography.tsx
5
5
  const Typography = () => {
@@ -3,9 +3,9 @@ const require_Stack = require('../../Stack/Stack.cjs');
3
3
  require('../../Stack/index.cjs');
4
4
  const require_Container = require('../../Container/Container.cjs');
5
5
  require('../../Container/index.cjs');
6
+ let react_jsx_runtime = require("react/jsx-runtime");
6
7
  let classnames = require("classnames");
7
8
  classnames = require_rolldown_runtime.__toESM(classnames);
8
- let react_jsx_runtime = require("react/jsx-runtime");
9
9
 
10
10
  //#region src/components/Disclaimer/components/Container.tsx
11
11
  const Container$1 = ({ markdownNode, id, testId, className, style }) => {
@@ -2,8 +2,8 @@ import { Stack } from "../../Stack/Stack.js";
2
2
  import "../../Stack/index.js";
3
3
  import { Container } from "../../Container/Container.js";
4
4
  import "../../Container/index.js";
5
- import classNames from "classnames";
6
5
  import { jsx } from "react/jsx-runtime";
6
+ import classNames from "classnames";
7
7
 
8
8
  //#region src/components/Disclaimer/components/Container.tsx
9
9
  const Container$1 = ({ markdownNode, id, testId, className, style }) => {
@@ -1,5 +1,5 @@
1
1
  import { DocumentRetrievalCardProps } from "./types/index.cjs";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/DocumentRetrievalCard/DocumentRetrievalCard.d.ts
5
5
  declare const DocumentRetrievalCard: ({
@@ -16,6 +16,6 @@ declare const DocumentRetrievalCard: ({
16
16
  onViewArticle,
17
17
  ariaLabel,
18
18
  viewArticleLabel
19
- }: DocumentRetrievalCardProps) => react_jsx_runtime22.JSX.Element;
19
+ }: DocumentRetrievalCardProps) => react_jsx_runtime1.JSX.Element;
20
20
  //#endregion
21
21
  export { DocumentRetrievalCard };
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_index = require('../../Image/types/index.cjs');
3
3
  const require_Image = require('../../Image/Image.cjs');
4
4
  require('../../Image/index.cjs');
5
+ let react_jsx_runtime = require("react/jsx-runtime");
5
6
  let classnames = require("classnames");
6
7
  classnames = require_rolldown_runtime.__toESM(classnames);
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
8
 
9
9
  //#region src/components/DocumentRetrievalCard/components/Image.tsx
10
10
  const Image$1 = ({ imageUrl, imageAlt, className }) => {
@@ -1,8 +1,8 @@
1
1
  import { ImageAspectRatio } from "../../Image/types/index.js";
2
2
  import { Image } from "../../Image/Image.js";
3
3
  import "../../Image/index.js";
4
- import classNames from "classnames";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import classNames from "classnames";
6
6
 
7
7
  //#region src/components/DocumentRetrievalCard/components/Image.tsx
8
8
  const Image$1 = ({ imageUrl, imageAlt, className }) => {
@@ -7,9 +7,9 @@ const require_useGetThemeProperties = require('../hooks/useGetThemeProperties.cj
7
7
  const require_useGetStackLayoutProperties = require('../hooks/useGetStackLayoutProperties.cjs');
8
8
  const require_useGetCardWidthProperties = require('../hooks/useGetCardWidthProperties.cjs');
9
9
  const require_useGetPaddingProperties = require('../hooks/useGetPaddingProperties.cjs');
10
+ let react_jsx_runtime = require("react/jsx-runtime");
10
11
  let classnames = require("classnames");
11
12
  classnames = require_rolldown_runtime.__toESM(classnames);
12
- let react_jsx_runtime = require("react/jsx-runtime");
13
13
 
14
14
  //#region src/components/DocumentRetrievalCard/components/Layout.tsx
15
15
  const Layout = ({ content, image, viewArticleButton, id, testId, className, style, theme, ariaLabel }) => {
@@ -6,8 +6,8 @@ import { useGetThemeProperties } from "../hooks/useGetThemeProperties.js";
6
6
  import { useGetStackLayoutProperties } from "../hooks/useGetStackLayoutProperties.js";
7
7
  import { useGetCardWidthProperties } from "../hooks/useGetCardWidthProperties.js";
8
8
  import { useGetPaddingProperties } from "../hooks/useGetPaddingProperties.js";
9
- import classNames from "classnames";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
+ import classNames from "classnames";
11
11
 
12
12
  //#region src/components/DocumentRetrievalCard/components/Layout.tsx
13
13
  const Layout = ({ content, image, viewArticleButton, id, testId, className, style, theme, ariaLabel }) => {
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.
2
2
  const require_Stack = require('../../../../Stack/Stack.cjs');
3
3
  require('../../../../Stack/index.cjs');
4
4
  const require_CustomIcon = require('../../../../utils/CustomIcon.cjs');
5
+ let react_jsx_runtime = require("react/jsx-runtime");
5
6
  let classnames = require("classnames");
6
7
  classnames = require_rolldown_runtime.__toESM(classnames);
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
8
  let __envive_ai_react_icons_Document = require("@envive-ai/react-icons/Document");
9
9
  __envive_ai_react_icons_Document = require_rolldown_runtime.__toESM(__envive_ai_react_icons_Document);
10
10
 
@@ -1,8 +1,8 @@
1
1
  import { Stack } from "../../../../Stack/Stack.js";
2
2
  import "../../../../Stack/index.js";
3
3
  import { CustomIcon } from "../../../../utils/CustomIcon.js";
4
- import classNames from "classnames";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import classNames from "classnames";
6
6
  import Document from "@envive-ai/react-icons/Document";
7
7
 
8
8
  //#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Icon.tsx
@@ -5,9 +5,9 @@ const require_index = require('../../../../Typography/types/index.cjs');
5
5
  const require_Typography = require('../../../../Typography/Typography.cjs');
6
6
  require('../../../../Typography/index.cjs');
7
7
  const require_useGetLabelUnderlineProperties = require('../../../hooks/useGetLabelUnderlineProperties.cjs');
8
+ let react_jsx_runtime = require("react/jsx-runtime");
8
9
  let classnames = require("classnames");
9
10
  classnames = require_rolldown_runtime.__toESM(classnames);
10
- let react_jsx_runtime = require("react/jsx-runtime");
11
11
 
12
12
  //#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Label.tsx
13
13
  const Label = ({ viewArticleLabel, typographyVariant, shouldUnderline = false, textCaseClassName }) => {
@@ -4,8 +4,8 @@ import { TypographyColor } from "../../../../Typography/types/index.js";
4
4
  import { Typography } from "../../../../Typography/Typography.js";
5
5
  import "../../../../Typography/index.js";
6
6
  import { useGetLabelUnderlineProperties } from "../../../hooks/useGetLabelUnderlineProperties.js";
7
- import classNames from "classnames";
8
7
  import { jsx } from "react/jsx-runtime";
8
+ import classNames from "classnames";
9
9
 
10
10
  //#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Label.tsx
11
11
  const Label = ({ viewArticleLabel, typographyVariant, shouldUnderline = false, textCaseClassName }) => {
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
2
  const require_Stack = require('../../../../Stack/Stack.cjs');
3
3
  require('../../../../Stack/index.cjs');
4
+ let react_jsx_runtime = require("react/jsx-runtime");
4
5
  let classnames = require("classnames");
5
6
  classnames = require_rolldown_runtime.__toESM(classnames);
6
- let react_jsx_runtime = require("react/jsx-runtime");
7
7
 
8
8
  //#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.tsx
9
9
  const Layout = ({ icon, label, onClick, className, ariaLabel }) => {
@@ -1,7 +1,7 @@
1
1
  import { Stack } from "../../../../Stack/Stack.js";
2
2
  import "../../../../Stack/index.js";
3
- import classNames from "classnames";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import classNames from "classnames";
5
5
 
6
6
  //#region src/components/DocumentRetrievalCard/components/ViewArticleButton/components/Layout.tsx
7
7
  const Layout = ({ icon, label, onClick, className, ariaLabel }) => {
@@ -1,5 +1,5 @@
1
1
  import { FloatingButtonProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime30 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/FloatingButton/FloatingButton.d.ts
5
5
  declare const FloatingButton: ({
@@ -19,6 +19,6 @@ declare const FloatingButton: ({
19
19
  ariaLabel,
20
20
  previewMode,
21
21
  containerRef
22
- }: FloatingButtonProps) => react_jsx_runtime30.JSX.Element;
22
+ }: FloatingButtonProps) => react_jsx_runtime24.JSX.Element;
23
23
  //#endregion
24
24
  export { FloatingButton };
@@ -1,5 +1,5 @@
1
1
  import { FloatingButtonProps } from "./types/types.js";
2
- import * as react_jsx_runtime21 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime30 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/FloatingButton/FloatingButton.d.ts
5
5
  declare const FloatingButton: ({
@@ -19,6 +19,6 @@ declare const FloatingButton: ({
19
19
  ariaLabel,
20
20
  previewMode,
21
21
  containerRef
22
- }: FloatingButtonProps) => react_jsx_runtime21.JSX.Element;
22
+ }: FloatingButtonProps) => react_jsx_runtime30.JSX.Element;
23
23
  //#endregion
24
24
  export { FloatingButton };
@@ -2,9 +2,9 @@ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_types = require('../types/types.cjs');
3
3
  const require_useGetButtonHoverProperties = require('../hooks/useGetButtonHoverProperties.cjs');
4
4
  const require_useGetButtonProperties = require('../hooks/useGetButtonProperties.cjs');
5
+ let react_jsx_runtime = require("react/jsx-runtime");
5
6
  let classnames = require("classnames");
6
7
  classnames = require_rolldown_runtime.__toESM(classnames);
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
8
 
9
9
  //#region src/components/FloatingButton/components/Button.tsx
10
10
  const Button = ({ variant = require_types.FloatingButtonVariant.ATTACHED, mode = require_types.FloatingButtonMode.LIGHT, backgroundColor, onClick, onMouseOver, onFocus, children, className = "", ariaLabel }) => {
@@ -1,8 +1,8 @@
1
1
  import { FloatingButtonMode, FloatingButtonVariant } from "../types/types.js";
2
2
  import { useGetButtonHoverProperties } from "../hooks/useGetButtonHoverProperties.js";
3
3
  import { useGetButtonProperties } from "../hooks/useGetButtonProperties.js";
4
- import classNames from "classnames";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import classNames from "classnames";
6
6
 
7
7
  //#region src/components/FloatingButton/components/Button.tsx
8
8
  const Button = ({ variant = FloatingButtonVariant.ATTACHED, mode = FloatingButtonMode.LIGHT, backgroundColor, onClick, onMouseOver, onFocus, children, className = "", ariaLabel }) => {
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_types = require('../types/types.cjs');
3
3
  const require_useGetContainerProperties = require('../hooks/useGetContainerProperties.cjs');
4
+ let react_jsx_runtime = require("react/jsx-runtime");
4
5
  let classnames = require("classnames");
5
6
  classnames = require_rolldown_runtime.__toESM(classnames);
6
- let react_jsx_runtime = require("react/jsx-runtime");
7
7
 
8
8
  //#region src/components/FloatingButton/components/Container.tsx
9
9
  const Container = ({ location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, show = require_types.FloatingButtonShow.ALWAYS, variant = require_types.FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style, previewMode = false, containerRef }) => {
@@ -1,7 +1,7 @@
1
1
  import { FloatingButtonLocation, FloatingButtonShow, FloatingButtonVariant } from "../types/types.js";
2
2
  import { useGetContainerProperties } from "../hooks/useGetContainerProperties.js";
3
- import classNames from "classnames";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import classNames from "classnames";
5
5
 
6
6
  //#region src/components/FloatingButton/components/Container.tsx
7
7
  const Container = ({ location = FloatingButtonLocation.BOTTOM_RIGHT, show = FloatingButtonShow.ALWAYS, variant = FloatingButtonVariant.ATTACHED, hasInteractionHappened = false, children, id, testId, className = "", style, previewMode = false, containerRef }) => {
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_types = require('../types/types.cjs');
3
3
  const require_useGetWrapperProperties = require('../hooks/useGetWrapperProperties.cjs');
4
+ let react_jsx_runtime = require("react/jsx-runtime");
4
5
  let classnames = require("classnames");
5
6
  classnames = require_rolldown_runtime.__toESM(classnames);
6
- let react_jsx_runtime = require("react/jsx-runtime");
7
7
 
8
8
  //#region src/components/FloatingButton/components/Wrapper.tsx
9
9
  const Wrapper = ({ location = require_types.FloatingButtonLocation.BOTTOM_RIGHT, children, className = "" }) => {
@@ -1,7 +1,7 @@
1
1
  import { FloatingButtonLocation } from "../types/types.js";
2
2
  import { useGetWrapperProperties } from "../hooks/useGetWrapperProperties.js";
3
- import classNames from "classnames";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import classNames from "classnames";
5
5
 
6
6
  //#region src/components/FloatingButton/components/Wrapper.tsx
7
7
  const Wrapper = ({ location = FloatingButtonLocation.BOTTOM_RIGHT, children, className = "" }) => {
@@ -1,5 +1,5 @@
1
1
  import { FloatingChatProps } from "./types/types.cjs";
2
- import * as react_jsx_runtime28 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime29 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/FloatingChat/FloatingChat.d.ts
5
5
  declare const FloatingChat: ({
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
19
19
  onSwipeClose,
20
20
  onToggleCXButton,
21
21
  setIsResultsModalOpen
22
- }: FloatingChatProps) => react_jsx_runtime28.JSX.Element;
22
+ }: FloatingChatProps) => react_jsx_runtime29.JSX.Element;
23
23
  //#endregion
24
24
  export { FloatingChat };
@@ -1,5 +1,5 @@
1
1
  import { FloatingChatProps } from "./types/types.js";
2
- import * as react_jsx_runtime24 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime23 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/FloatingChat/FloatingChat.d.ts
5
5
  declare const FloatingChat: ({
@@ -19,6 +19,6 @@ declare const FloatingChat: ({
19
19
  onSwipeClose,
20
20
  onToggleCXButton,
21
21
  setIsResultsModalOpen
22
- }: FloatingChatProps) => react_jsx_runtime24.JSX.Element;
22
+ }: FloatingChatProps) => react_jsx_runtime23.JSX.Element;
23
23
  //#endregion
24
24
  export { FloatingChat };
@@ -14,9 +14,9 @@ const require_UserMessage = require('./UserMessage.cjs');
14
14
  const require_AgentMessage = require('./AgentMessage.cjs');
15
15
  const require_MessageDivider = require('./MessageDivider.cjs');
16
16
  let react = require("react");
17
+ let react_jsx_runtime = require("react/jsx-runtime");
17
18
  let classnames = require("classnames");
18
19
  classnames = require_rolldown_runtime.__toESM(classnames);
19
- let react_jsx_runtime = require("react/jsx-runtime");
20
20
  let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
21
21
 
22
22
  //#region src/components/FloatingChat/components/ChatMessages.tsx
@@ -13,8 +13,8 @@ import { UserMessage } from "./UserMessage.js";
13
13
  import { AgentMessage } from "./AgentMessage.js";
14
14
  import { MessageDivider } from "./MessageDivider.js";
15
15
  import { forwardRef } from "react";
16
- import classNames from "classnames";
17
16
  import { jsx, jsxs } from "react/jsx-runtime";
17
+ import classNames from "classnames";
18
18
  import { MessageRole, MessageType } from "@envive-ai/react-hooks/application/models";
19
19
 
20
20
  //#region src/components/FloatingChat/components/ChatMessages.tsx
@@ -6,9 +6,9 @@ const require_Container = require('../../Container/Container.cjs');
6
6
  require('../../Container/index.cjs');
7
7
  const require_resolveTheme = require('../../utils/resolveTheme.cjs');
8
8
  let react = require("react");
9
+ let react_jsx_runtime = require("react/jsx-runtime");
9
10
  let classnames = require("classnames");
10
11
  classnames = require_rolldown_runtime.__toESM(classnames);
11
- let react_jsx_runtime = require("react/jsx-runtime");
12
12
 
13
13
  //#region src/components/FloatingChat/components/Layout.tsx
14
14
  const Layout = ({ id, className, style, testId, theme = require_theme.Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false, debugBar, scrollContainerRef }) => {
@@ -5,8 +5,8 @@ import { Container } from "../../Container/Container.js";
5
5
  import "../../Container/index.js";
6
6
  import { resolveTheme } from "../../utils/resolveTheme.js";
7
7
  import { isValidElement } from "react";
8
- import classNames from "classnames";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
+ import classNames from "classnames";
10
10
 
11
11
  //#region src/components/FloatingChat/components/Layout.tsx
12
12
  const Layout = ({ id, className, style, testId, theme = Theme.GLOBAL_CUSTOM, header, footer, welcomeMessage, chatMessages, answerSuggestions, scrollToBottomButton, disclaimer, isFloatingFooterLayout = false, debugBar, scrollContainerRef }) => {
@@ -3,9 +3,9 @@ const require_index = require('../../ChatHeader/types/index.cjs');
3
3
  const require_ChatHeader = require('../../ChatHeader/ChatHeader.cjs');
4
4
  require('../../ChatHeader/index.cjs');
5
5
  const require_ResultsGridView = require('./ResultsGridView.cjs');
6
+ let react_jsx_runtime = require("react/jsx-runtime");
6
7
  let classnames = require("classnames");
7
8
  classnames = require_rolldown_runtime.__toESM(classnames);
8
- let react_jsx_runtime = require("react/jsx-runtime");
9
9
 
10
10
  //#region src/components/FloatingChat/components/ProductResultsModal.tsx
11
11
  const overlayWrapperClasses = (0, classnames.default)("envive-tw-min-h-0 envive-tw-flex envive-tw-h-full envive-tw-w-full", "envive-tw-items-center envive-tw-justify-center envive-tw-p-4");
@@ -2,8 +2,8 @@ import { ChatHeaderOptions, ChatHeaderVariant } from "../../ChatHeader/types/ind
2
2
  import { ChatHeader } from "../../ChatHeader/ChatHeader.js";
3
3
  import "../../ChatHeader/index.js";
4
4
  import { ResultsGridView } from "./ResultsGridView.js";
5
- import classNames from "classnames";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import classNames from "classnames";
7
7
 
8
8
  //#region src/components/FloatingChat/components/ProductResultsModal.tsx
9
9
  const overlayWrapperClasses = classNames("envive-tw-min-h-0 envive-tw-flex envive-tw-h-full envive-tw-w-full", "envive-tw-items-center envive-tw-justify-center envive-tw-p-4");
@@ -7,9 +7,9 @@ require('../../Typography/index.cjs');
7
7
  const require_resolveTheme = require('../../utils/resolveTheme.cjs');
8
8
  const require_types = require('../../SalesAgentProductCard/types/types.cjs');
9
9
  const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
10
+ let react_jsx_runtime = require("react/jsx-runtime");
10
11
  let classnames = require("classnames");
11
12
  classnames = require_rolldown_runtime.__toESM(classnames);
12
- let react_jsx_runtime = require("react/jsx-runtime");
13
13
 
14
14
  //#region src/components/FloatingChat/components/ResultsGridView.tsx
15
15
  const NUM_COLUMNS_MOBILE = 2;
@@ -6,8 +6,8 @@ import "../../Typography/index.js";
6
6
  import { resolveTheme } from "../../utils/resolveTheme.js";
7
7
  import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
8
8
  import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
9
- import classNames from "classnames";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
+ import classNames from "classnames";
11
11
 
12
12
  //#region src/components/FloatingChat/components/ResultsGridView.tsx
13
13
  const NUM_COLUMNS_MOBILE = 2;
@@ -7,9 +7,9 @@ require('../../Typography/index.cjs');
7
7
  const require_functions = require('../utils/functions.cjs');
8
8
  let react = require("react");
9
9
  react = require_rolldown_runtime.__toESM(react);
10
+ let react_jsx_runtime = require("react/jsx-runtime");
10
11
  let classnames = require("classnames");
11
12
  classnames = require_rolldown_runtime.__toESM(classnames);
12
- let react_jsx_runtime = require("react/jsx-runtime");
13
13
 
14
14
  //#region src/components/FloatingChat/components/SalesAgentBadgeContent.tsx
15
15
  const SalesAgentBadgeContent = ({ totalProducts, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT, onExploreAllResults }) => {
@@ -44,7 +44,7 @@ const SalesAgentBadgeContent = ({ totalProducts, displayLimit = require_function
44
44
  })]
45
45
  });
46
46
  };
47
- const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT }) => {
47
+ const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = require_functions.MOST_RELEVANT_DISPLAY_LIMIT, isMobile = false }) => {
48
48
  if (hideBadgeCount) return {
49
49
  badgeContent: null,
50
50
  badgeLabel: null
@@ -53,9 +53,9 @@ const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimi
53
53
  badgeContent: areProductsMoreThanDisplayLimit ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SalesAgentBadgeContent, {
54
54
  totalProducts,
55
55
  displayLimit,
56
- onExploreAllResults
56
+ onExploreAllResults: onExploreAllResults ?? (() => {})
57
57
  }) : null,
58
- badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts > 1 ? `${totalProducts} Products` : null
58
+ badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts >= (isMobile ? 3 : 4) ? `${totalProducts} Products` : null
59
59
  };
60
60
  };
61
61
 
@@ -5,8 +5,8 @@ import { Typography } from "../../Typography/Typography.js";
5
5
  import "../../Typography/index.js";
6
6
  import { MOST_RELEVANT_DISPLAY_LIMIT } from "../utils/functions.js";
7
7
  import React from "react";
8
- import classNames from "classnames";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
+ import classNames from "classnames";
10
10
 
11
11
  //#region src/components/FloatingChat/components/SalesAgentBadgeContent.tsx
12
12
  const SalesAgentBadgeContent = ({ totalProducts, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT, onExploreAllResults }) => {
@@ -41,7 +41,7 @@ const SalesAgentBadgeContent = ({ totalProducts, displayLimit = MOST_RELEVANT_DI
41
41
  })]
42
42
  });
43
43
  };
44
- const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT }) => {
44
+ const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimit, onExploreAllResults, hideBadgeCount, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT, isMobile = false }) => {
45
45
  if (hideBadgeCount) return {
46
46
  badgeContent: null,
47
47
  badgeLabel: null
@@ -50,9 +50,9 @@ const getBadgeContentAndLabel = ({ totalProducts, areProductsMoreThanDisplayLimi
50
50
  badgeContent: areProductsMoreThanDisplayLimit ? /* @__PURE__ */ jsx(SalesAgentBadgeContent, {
51
51
  totalProducts,
52
52
  displayLimit,
53
- onExploreAllResults
53
+ onExploreAllResults: onExploreAllResults ?? (() => {})
54
54
  }) : null,
55
- badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts > 1 ? `${totalProducts} Products` : null
55
+ badgeLabel: !areProductsMoreThanDisplayLimit && totalProducts >= (isMobile ? 3 : 4) ? `${totalProducts} Products` : null
56
56
  };
57
57
  };
58
58
 
@@ -1,6 +1,7 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_resolveTheme = require('../../utils/resolveTheme.cjs');
3
3
  const require_Carousel = require('../../Carousel/Carousel.cjs');
4
+ const require_utils_useCheckIsMobile = require('../../utils/useCheckIsMobile.cjs');
4
5
  const require_functions = require('../utils/functions.cjs');
5
6
  const require_types = require('../../SalesAgentProductCard/types/types.cjs');
6
7
  const require_SalesAgentProductCard = require('../../SalesAgentProductCard/SalesAgentProductCard.cjs');
@@ -10,18 +11,20 @@ let react_jsx_runtime = require("react/jsx-runtime");
10
11
  //#region src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx
11
12
  const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, hideBadgeCount, variant = require_types.SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
12
13
  const finalTheme = require_resolveTheme.resolveTheme(theme);
14
+ const { isMobile } = require_utils_useCheckIsMobile.useCheckIsMobile("md");
13
15
  const { totalProducts, areProductsMoreThanDisplayLimit, displayedProducts } = require_functions.getProductCarouselDisplayInfo(products, numberOfProducts);
14
16
  const forceShowCurrentPriceSpace = displayedProducts.some((product) => product.currentPrice && product.previousPrice !== product.currentPrice);
15
17
  const { badgeContent, badgeLabel } = require_SalesAgentBadgeContent.getBadgeContentAndLabel({
16
18
  hideBadgeCount,
17
19
  totalProducts,
18
20
  areProductsMoreThanDisplayLimit,
19
- onExploreAllResults
21
+ onExploreAllResults,
22
+ isMobile
20
23
  });
21
24
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Carousel.Carousel, {
22
25
  hideNavigation,
23
26
  badgeContent,
24
- badgeLabel,
27
+ badgeLabel: badgeLabel ?? void 0,
25
28
  elements: displayedProducts.map((product, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_SalesAgentProductCard.SalesAgentProductCard, {
26
29
  variant,
27
30
  productName: product.productName,
@@ -35,7 +38,7 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
35
38
  url: product.url,
36
39
  target: "_blank",
37
40
  theme: finalTheme,
38
- onClick: () => onProductCardClick(product)
41
+ onClick: () => onProductCardClick?.(product)
39
42
  }, product.id ?? `product-${index}`)),
40
43
  theme: finalTheme
41
44
  });
@@ -1,5 +1,6 @@
1
1
  import { resolveTheme } from "../../utils/resolveTheme.js";
2
2
  import { Carousel } from "../../Carousel/Carousel.js";
3
+ import { useCheckIsMobile } from "../../utils/useCheckIsMobile.js";
3
4
  import { getProductCarouselDisplayInfo } from "../utils/functions.js";
4
5
  import { SalesAgentProductCardVariant } from "../../SalesAgentProductCard/types/types.js";
5
6
  import { SalesAgentProductCard } from "../../SalesAgentProductCard/SalesAgentProductCard.js";
@@ -9,18 +10,20 @@ import { jsx } from "react/jsx-runtime";
9
10
  //#region src/components/FloatingChat/components/SalesAgentProductCardsCarousel.tsx
10
11
  const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = false, numberOfProducts, hideBadgeCount, variant = SalesAgentProductCardVariant.LARGE, onProductCardClick, onExploreAllResults }) => {
11
12
  const finalTheme = resolveTheme(theme);
13
+ const { isMobile } = useCheckIsMobile("md");
12
14
  const { totalProducts, areProductsMoreThanDisplayLimit, displayedProducts } = getProductCarouselDisplayInfo(products, numberOfProducts);
13
15
  const forceShowCurrentPriceSpace = displayedProducts.some((product) => product.currentPrice && product.previousPrice !== product.currentPrice);
14
16
  const { badgeContent, badgeLabel } = getBadgeContentAndLabel({
15
17
  hideBadgeCount,
16
18
  totalProducts,
17
19
  areProductsMoreThanDisplayLimit,
18
- onExploreAllResults
20
+ onExploreAllResults,
21
+ isMobile
19
22
  });
20
23
  return /* @__PURE__ */ jsx(Carousel, {
21
24
  hideNavigation,
22
25
  badgeContent,
23
- badgeLabel,
26
+ badgeLabel: badgeLabel ?? void 0,
24
27
  elements: displayedProducts.map((product, index) => /* @__PURE__ */ jsx(SalesAgentProductCard, {
25
28
  variant,
26
29
  productName: product.productName,
@@ -34,7 +37,7 @@ const SalesAgentProductCardsCarousel = ({ products, theme, hideNavigation = fals
34
37
  url: product.url,
35
38
  target: "_blank",
36
39
  theme: finalTheme,
37
- onClick: () => onProductCardClick(product)
40
+ onClick: () => onProductCardClick?.(product)
38
41
  }, product.id ?? `product-${index}`)),
39
42
  theme: finalTheme
40
43
  });
@@ -101,10 +101,11 @@ const getSearchQueryFromMessageBlock = (messages, productBlockIndex) => {
101
101
  const getProductCarouselDisplayInfo = (products, numberOfProducts, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT) => {
102
102
  const totalProducts = numberOfProducts ?? products.length;
103
103
  const areProductsMoreThanDisplayLimit = totalProducts > displayLimit;
104
+ const maxDisplayed = areProductsMoreThanDisplayLimit ? displayLimit : totalProducts;
104
105
  return {
105
106
  totalProducts,
106
107
  areProductsMoreThanDisplayLimit,
107
- displayedProducts: areProductsMoreThanDisplayLimit ? products.slice(0, displayLimit) : products
108
+ displayedProducts: products.slice(0, maxDisplayed)
108
109
  };
109
110
  };
110
111
 
@@ -100,10 +100,11 @@ const getSearchQueryFromMessageBlock = (messages, productBlockIndex) => {
100
100
  const getProductCarouselDisplayInfo = (products, numberOfProducts, displayLimit = MOST_RELEVANT_DISPLAY_LIMIT) => {
101
101
  const totalProducts = numberOfProducts ?? products.length;
102
102
  const areProductsMoreThanDisplayLimit = totalProducts > displayLimit;
103
+ const maxDisplayed = areProductsMoreThanDisplayLimit ? displayLimit : totalProducts;
103
104
  return {
104
105
  totalProducts,
105
106
  areProductsMoreThanDisplayLimit,
106
- displayedProducts: areProductsMoreThanDisplayLimit ? products.slice(0, displayLimit) : products
107
+ displayedProducts: products.slice(0, maxDisplayed)
107
108
  };
108
109
  };
109
110
 
@@ -5,9 +5,9 @@ const require_buildSubmitButtonElement = require('./utils/buildSubmitButtonEleme
5
5
  const require_handleFormsSubmit = require('./utils/handleFormsSubmit.cjs');
6
6
  const require_mapTextFields = require('./utils/mapTextFields.cjs');
7
7
  let react = require("react");
8
+ let react_jsx_runtime = require("react/jsx-runtime");
8
9
  let classnames = require("classnames");
9
10
  classnames = require_rolldown_runtime.__toESM(classnames);
10
- let react_jsx_runtime = require("react/jsx-runtime");
11
11
 
12
12
  //#region src/components/Form/Form.tsx
13
13
  /**
package/dist/Form/Form.js CHANGED
@@ -4,8 +4,8 @@ import { buildSubmitButtonElement } from "./utils/buildSubmitButtonElement.js";
4
4
  import { handleFormsSubmit } from "./utils/handleFormsSubmit.js";
5
5
  import { mapTextFields } from "./utils/mapTextFields.js";
6
6
  import { useState } from "react";
7
- import classNames from "classnames";
8
7
  import { jsx } from "react/jsx-runtime";
8
+ import classNames from "classnames";
9
9
 
10
10
  //#region src/components/Form/Form.tsx
11
11
  /**
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_Stack = require('../../Stack/Stack.cjs');
3
3
  require('../../Stack/index.cjs');
4
+ let react_jsx_runtime = require("react/jsx-runtime");
4
5
  let classnames = require("classnames");
5
6
  classnames = require_rolldown_runtime.__toESM(classnames);
6
- let react_jsx_runtime = require("react/jsx-runtime");
7
7
 
8
8
  //#region src/components/Form/components/Layout.tsx
9
9
  const Layout = ({ textFields, submitButton, onSubmit, ariaLabel, id, testId, className, style }) => {
@@ -1,7 +1,7 @@
1
1
  import { Stack } from "../../Stack/Stack.js";
2
2
  import "../../Stack/index.js";
3
- import classNames from "classnames";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import classNames from "classnames";
5
5
 
6
6
  //#region src/components/Form/components/Layout.tsx
7
7
  const Layout = ({ textFields, submitButton, onSubmit, ariaLabel, id, testId, className, style }) => {
@@ -1,8 +1,8 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
2
  const require_useGetButtonProperties = require('../hooks/useGetButtonProperties.cjs');
3
+ let react_jsx_runtime = require("react/jsx-runtime");
3
4
  let classnames = require("classnames");
4
5
  classnames = require_rolldown_runtime.__toESM(classnames);
5
- let react_jsx_runtime = require("react/jsx-runtime");
6
6
 
7
7
  //#region src/components/Form/components/SubmitButtonItem.tsx
8
8
  const SubmitButtonItem = ({ label, isDisabled = false, ariaLabel, id, testId, className, style }) => {