@envive-ai/react-widgets 0.1.2 → 0.1.3

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/SearchResults/SearchResults.cjs +86 -0
  2. package/dist/SearchResults/SearchResults.js +84 -0
  3. package/dist/SearchResults/SearchResultsWidget.cjs +34 -0
  4. package/dist/SearchResults/SearchResultsWidget.js +33 -0
  5. package/dist/SearchResults/index.cjs +2 -122
  6. package/dist/SearchResults/index.d.cts +2 -0
  7. package/dist/SearchResults/index.d.ts +2 -0
  8. package/dist/SearchResults/index.js +1 -119
  9. package/dist/SearchResults/withSearchResults.cjs +18 -0
  10. package/dist/SearchResults/withSearchResults.js +17 -0
  11. package/dist/SearchZeroState/SearchIcon.cjs +48 -0
  12. package/dist/SearchZeroState/SearchIcon.js +45 -0
  13. package/dist/SearchZeroState/SearchOverlay.cjs +42 -0
  14. package/dist/SearchZeroState/SearchOverlay.js +39 -0
  15. package/dist/SearchZeroState/SearchZeroState.cjs +173 -0
  16. package/dist/SearchZeroState/SearchZeroState.d.cts +7 -0
  17. package/dist/SearchZeroState/SearchZeroState.d.ts +7 -0
  18. package/dist/SearchZeroState/SearchZeroState.js +171 -0
  19. package/dist/SearchZeroState/SearchZeroStateWidget.cjs +23 -0
  20. package/dist/SearchZeroState/SearchZeroStateWidget.d.cts +15 -0
  21. package/dist/SearchZeroState/SearchZeroStateWidget.d.ts +15 -0
  22. package/dist/SearchZeroState/SearchZeroStateWidget.js +22 -0
  23. package/dist/SearchZeroState/components/RecommendedProducts.cjs +74 -0
  24. package/dist/SearchZeroState/components/RecommendedProducts.js +72 -0
  25. package/dist/SearchZeroState/index.cjs +4 -3070
  26. package/dist/SearchZeroState/index.d.cts +4 -0
  27. package/dist/SearchZeroState/index.d.ts +4 -0
  28. package/dist/SearchZeroState/index.js +2 -3065
  29. package/dist/SearchZeroState/overlay/overlayHostLocator.cjs +21 -0
  30. package/dist/SearchZeroState/overlay/overlayHostLocator.js +20 -0
  31. package/dist/SearchZeroState/types.d.cts +10 -0
  32. package/dist/SearchZeroState/types.d.ts +10 -0
  33. package/dist/SearchZeroState/zeroStateSearchVariants.cjs +21 -0
  34. package/dist/SearchZeroState/zeroStateSearchVariants.js +20 -0
  35. package/dist/SuggestionBar/SuggestionBar.cjs +74 -0
  36. package/dist/SuggestionBar/{index-DZU9kbWS.d.cts → SuggestionBar.d.cts} +4 -9
  37. package/dist/SuggestionBar/{index-DyXd4-b7.d.ts → SuggestionBar.d.ts} +6 -11
  38. package/dist/{SuggestionBar-BHAXhgcd.js → SuggestionBar/SuggestionBar.js} +7 -59
  39. package/dist/SuggestionBar/index.cjs +3 -3
  40. package/dist/SuggestionBar/index.d.cts +3 -0
  41. package/dist/SuggestionBar/index.d.ts +3 -0
  42. package/dist/SuggestionBar/index.js +2 -2
  43. package/dist/SuggestionBar/types.cjs +10 -0
  44. package/dist/SuggestionBar/types.d.cts +7 -0
  45. package/dist/SuggestionBar/types.d.ts +7 -0
  46. package/dist/SuggestionBar/types.js +9 -0
  47. package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +76 -0
  48. package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.cts +6 -0
  49. package/dist/SuggestionButtonContainer/SuggestionButtonContainer.d.ts +6 -0
  50. package/dist/{SuggestionButtonContainer-s2e9YGW_.js → SuggestionButtonContainer/SuggestionButtonContainer.js} +6 -98
  51. package/dist/SuggestionButtonContainer/index.cjs +1 -1
  52. package/dist/SuggestionButtonContainer/index.d.cts +3 -0
  53. package/dist/SuggestionButtonContainer/index.d.ts +3 -0
  54. package/dist/SuggestionButtonContainer/index.js +1 -1
  55. package/dist/SuggestionButtonContainer/{index-B_X537jw.d.cts → types.d.cts} +1 -4
  56. package/dist/SuggestionButtonContainer/{index-vwelzDzM.d.ts → types.d.ts} +1 -4
  57. package/dist/{chunk-DSlc6foC.cjs → _virtual/rolldown_runtime.cjs} +2 -12
  58. package/dist/node_modules/react-icons/lib/iconBase.cjs +121 -0
  59. package/dist/node_modules/react-icons/lib/iconBase.js +119 -0
  60. package/dist/node_modules/react-icons/lib/iconContext.cjs +17 -0
  61. package/dist/node_modules/react-icons/lib/iconContext.js +14 -0
  62. package/dist/node_modules/react-icons/md/index.cjs +35 -0
  63. package/dist/node_modules/react-icons/md/index.js +35 -0
  64. package/dist/{SuggestionBar-CK5aU2bb.cjs → node_modules/react-indiana-drag-scroll/dist/index.cjs} +6 -132
  65. package/dist/node_modules/uuid/dist/native.js +6 -0
  66. package/dist/node_modules/uuid/dist/rng.js +13 -0
  67. package/dist/node_modules/uuid/dist/stringify.js +9 -0
  68. package/dist/node_modules/uuid/dist/v4.js +27 -0
  69. package/dist/node_modules/uuid/dist-node/native.cjs +8 -0
  70. package/dist/node_modules/uuid/dist-node/rng.cjs +16 -0
  71. package/dist/node_modules/uuid/dist-node/stringify.cjs +10 -0
  72. package/dist/node_modules/uuid/dist-node/v4.cjs +27 -0
  73. package/dist/packages/components/dist/components/Accordion/Accordion.cjs +80 -0
  74. package/dist/packages/components/dist/components/Accordion/Accordion.js +78 -0
  75. package/dist/packages/components/dist/components/Accordion/index.cjs +1 -0
  76. package/dist/packages/components/dist/components/Accordion/index.js +1 -0
  77. package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.cjs +30 -0
  78. package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.js +29 -0
  79. package/dist/packages/components/dist/components/ButtonBase/ButtonBase.cjs +56 -0
  80. package/dist/packages/components/dist/components/ButtonBase/ButtonBase.js +54 -0
  81. package/dist/packages/components/dist/components/ButtonBase/index.cjs +2 -0
  82. package/dist/packages/components/dist/components/ButtonBase/index.js +2 -0
  83. package/dist/packages/components/dist/components/ButtonBase/types.cjs +11 -0
  84. package/dist/packages/components/dist/components/ButtonBase/types.js +10 -0
  85. package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.cjs +45 -0
  86. package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.js +42 -0
  87. package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +33 -0
  88. package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +30 -0
  89. package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.cjs +45 -0
  90. package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.js +42 -0
  91. package/dist/packages/components/dist/components/ImageWithFallback/index.cjs +1 -0
  92. package/dist/packages/components/dist/components/ImageWithFallback/index.js +1 -0
  93. package/dist/packages/components/dist/components/ModalSheet/ModalSheet.cjs +30 -0
  94. package/dist/packages/components/dist/components/ModalSheet/ModalSheet.js +29 -0
  95. package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.cjs +26 -0
  96. package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.js +24 -0
  97. package/dist/packages/components/dist/components/ModalSheet/desktop/index.cjs +122 -0
  98. package/dist/packages/components/dist/components/ModalSheet/desktop/index.js +120 -0
  99. package/dist/packages/components/dist/components/ModalSheet/index.cjs +1 -0
  100. package/dist/packages/components/dist/components/ModalSheet/index.js +1 -0
  101. package/dist/packages/components/dist/components/ModalSheet/mobile/index.cjs +116 -0
  102. package/dist/packages/components/dist/components/ModalSheet/mobile/index.js +114 -0
  103. package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.cjs +38 -0
  104. package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.js +36 -0
  105. package/dist/packages/components/dist/components/ProductCard/ProductCard.cjs +153 -0
  106. package/dist/packages/components/dist/components/ProductCard/ProductCard.js +149 -0
  107. package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.cjs +33 -0
  108. package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.js +31 -0
  109. package/dist/packages/components/dist/components/ProductCard/index.cjs +4 -0
  110. package/dist/packages/components/dist/components/ProductCard/index.js +4 -0
  111. package/dist/packages/components/dist/components/ProductCard/productCardVariants.cjs +49 -0
  112. package/dist/packages/components/dist/components/ProductCard/productCardVariants.js +45 -0
  113. package/dist/packages/components/dist/components/ProductCard/types.cjs +10 -0
  114. package/dist/packages/components/dist/components/ProductCard/types.js +9 -0
  115. package/dist/packages/components/dist/components/ProductGrid/ProductGrid.cjs +43 -0
  116. package/dist/packages/components/dist/components/ProductGrid/ProductGrid.js +41 -0
  117. package/dist/packages/components/dist/components/ProductGrid/index.cjs +2 -0
  118. package/dist/packages/components/dist/components/ProductGrid/index.js +2 -0
  119. package/dist/packages/components/dist/components/ProductGrid/productGridVariants.cjs +21 -0
  120. package/dist/packages/components/dist/components/ProductGrid/productGridVariants.js +20 -0
  121. package/dist/packages/components/dist/components/RadioButton/RadioButton.cjs +74 -0
  122. package/dist/packages/components/dist/components/RadioButton/RadioButton.js +72 -0
  123. package/dist/packages/components/dist/components/RadioButton/index.cjs +1 -0
  124. package/dist/packages/components/dist/components/RadioButton/index.js +1 -0
  125. package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.cjs +42 -0
  126. package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.js +39 -0
  127. package/dist/packages/components/dist/components/RadioButtonGroup/index.cjs +1 -0
  128. package/dist/packages/components/dist/components/RadioButtonGroup/index.js +1 -0
  129. package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.cjs +53 -0
  130. package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.js +51 -0
  131. package/dist/packages/components/dist/components/RecommendedProducts/index.cjs +3 -0
  132. package/dist/packages/components/dist/components/RecommendedProducts/index.js +3 -0
  133. package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.cjs +72 -0
  134. package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.js +69 -0
  135. package/dist/packages/components/dist/components/SearchAutocomplete/index.cjs +1 -0
  136. package/dist/packages/components/dist/components/SearchAutocomplete/index.js +1 -0
  137. package/dist/packages/components/dist/components/SearchFilter/SearchFilter.cjs +134 -0
  138. package/dist/packages/components/dist/components/SearchFilter/SearchFilter.js +132 -0
  139. package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.cjs +48 -0
  140. package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.js +46 -0
  141. package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.cjs +42 -0
  142. package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.js +40 -0
  143. package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.cjs +6 -0
  144. package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.js +4 -0
  145. package/dist/packages/components/dist/components/SearchFilter/index.cjs +5 -0
  146. package/dist/packages/components/dist/components/SearchFilter/index.js +5 -0
  147. package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.cjs +27 -0
  148. package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.js +26 -0
  149. package/dist/packages/components/dist/components/SearchFilter/utils.cjs +11 -0
  150. package/dist/packages/components/dist/components/SearchFilter/utils.js +9 -0
  151. package/dist/packages/components/dist/components/SearchInput/SearchInput.cjs +81 -0
  152. package/dist/packages/components/dist/components/SearchInput/SearchInput.js +78 -0
  153. package/dist/packages/components/dist/components/SearchInput/index.cjs +2 -0
  154. package/dist/packages/components/dist/components/SearchInput/index.js +2 -0
  155. package/dist/packages/components/dist/components/SearchInput/searchInputVariants.cjs +15 -0
  156. package/dist/packages/components/dist/components/SearchInput/searchInputVariants.js +15 -0
  157. package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.cjs +57 -0
  158. package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.js +55 -0
  159. package/dist/packages/components/dist/components/SearchInputForm/index.cjs +1 -0
  160. package/dist/packages/components/dist/components/SearchInputForm/index.js +1 -0
  161. package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.cjs +52 -0
  162. package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.js +50 -0
  163. package/dist/packages/components/dist/components/SearchResultsContent/index.cjs +1 -0
  164. package/dist/packages/components/dist/components/SearchResultsContent/index.js +1 -0
  165. package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.cjs +24 -0
  166. package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.js +23 -0
  167. package/dist/packages/components/dist/components/SearchResultsFilterButton/index.cjs +3 -0
  168. package/dist/packages/components/dist/components/SearchResultsFilterButton/index.js +3 -0
  169. package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +36 -0
  170. package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +35 -0
  171. package/dist/packages/components/dist/components/SearchResultsFilterModal/index.cjs +3 -0
  172. package/dist/packages/components/dist/components/SearchResultsFilterModal/index.js +3 -0
  173. package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +9 -0
  174. package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.js +9 -0
  175. package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.cjs +2 -0
  176. package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.js +2 -0
  177. package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs +34 -0
  178. package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +34 -0
  179. package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +56 -0
  180. package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.js +54 -0
  181. package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.cjs +53 -0
  182. package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.js +51 -0
  183. package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
  184. package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +51 -0
  185. package/dist/packages/components/dist/components/SearchResultsStates/index.cjs +3 -0
  186. package/dist/packages/components/dist/components/SearchResultsStates/index.js +3 -0
  187. package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +60 -0
  188. package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +57 -0
  189. package/dist/packages/components/dist/components/SearchResultsToolbar/index.cjs +3 -0
  190. package/dist/packages/components/dist/components/SearchResultsToolbar/index.js +3 -0
  191. package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.cjs +77 -0
  192. package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.js +75 -0
  193. package/dist/packages/components/dist/components/SparkleAnimation/index.cjs +2 -0
  194. package/dist/packages/components/dist/components/SparkleAnimation/index.js +2 -0
  195. package/dist/packages/components/dist/components/SparkleAnimation/types.cjs +12 -0
  196. package/dist/packages/components/dist/components/SparkleAnimation/types.js +11 -0
  197. package/dist/packages/components/dist/components/Spinner/Spinner.cjs +40 -0
  198. package/dist/packages/components/dist/components/Spinner/Spinner.js +38 -0
  199. package/dist/packages/components/dist/components/Spinner/index.cjs +1 -0
  200. package/dist/packages/components/dist/components/Spinner/index.js +1 -0
  201. package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.cjs +193 -0
  202. package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.js +188 -0
  203. package/dist/packages/components/dist/components/SuggestionButton/index.cjs +1 -0
  204. package/dist/packages/components/dist/components/SuggestionButton/index.js +1 -0
  205. package/dist/packages/components/dist/components/TextInput/TextInput.cjs +34 -0
  206. package/dist/packages/components/dist/components/TextInput/TextInput.js +31 -0
  207. package/dist/packages/components/dist/components/TextInput/index.cjs +1 -0
  208. package/dist/packages/components/dist/components/TextInput/index.js +1 -0
  209. package/dist/packages/components/dist/components/ToggleButton/ToggleButton.cjs +63 -0
  210. package/dist/packages/components/dist/components/ToggleButton/ToggleButton.js +61 -0
  211. package/dist/packages/components/dist/components/ToggleButton/index.cjs +1 -0
  212. package/dist/packages/components/dist/components/ToggleButton/index.js +1 -0
  213. package/dist/packages/components/dist/components/Typography/Typography.cjs +53 -0
  214. package/dist/packages/components/dist/components/Typography/Typography.js +50 -0
  215. package/dist/packages/components/dist/components/Typography/index.cjs +2 -0
  216. package/dist/packages/components/dist/components/Typography/index.js +2 -0
  217. package/dist/packages/components/dist/components/Typography/typographyVariantClasses.cjs +99 -0
  218. package/dist/packages/components/dist/components/Typography/typographyVariantClasses.js +96 -0
  219. package/dist/packages/components/dist/components/Typography/util.cjs +10 -0
  220. package/dist/packages/components/dist/components/Typography/util.js +10 -0
  221. package/dist/packages/components/dist/logging/logger.cjs +20 -0
  222. package/dist/packages/components/dist/logging/logger.js +19 -0
  223. package/dist/packages/components/dist/models/colorsConfig.cjs +28 -0
  224. package/dist/packages/components/dist/models/colorsConfig.js +26 -0
  225. package/dist/packages/components/dist/util/formatPrice.cjs +14 -0
  226. package/dist/packages/components/dist/util/formatPrice.js +13 -0
  227. package/dist/packages/components/dist/util/index.cjs +3 -0
  228. package/dist/packages/components/dist/util/index.js +3 -0
  229. package/dist/packages/components/dist/util/useScrollDirection.cjs +39 -0
  230. package/dist/packages/components/dist/util/useScrollDirection.js +38 -0
  231. package/dist/packages/components/dist/util/useStickyVisibility.cjs +38 -0
  232. package/dist/packages/components/dist/util/useStickyVisibility.js +37 -0
  233. package/dist/packages/icons/dist/AiSearchBold.cjs +38 -0
  234. package/dist/packages/icons/dist/AiSearchBold.js +38 -0
  235. package/dist/packages/icons/dist/AiSearchThin.cjs +35 -0
  236. package/dist/packages/icons/dist/AiSearchThin.js +35 -0
  237. package/dist/packages/icons/dist/ChevronDown.cjs +23 -0
  238. package/dist/packages/icons/dist/ChevronDown.js +23 -0
  239. package/dist/packages/icons/dist/FourPointStar.cjs +22 -0
  240. package/dist/packages/icons/dist/FourPointStar.js +22 -0
  241. package/dist/packages/icons/dist/IconClose.cjs +26 -0
  242. package/dist/packages/icons/dist/IconClose.js +26 -0
  243. package/dist/packages/icons/dist/IconCloseVariant.cjs +22 -0
  244. package/dist/packages/icons/dist/IconCloseVariant.js +22 -0
  245. package/dist/packages/icons/dist/MagnifyingGlassStarVariant.cjs +39 -0
  246. package/dist/packages/icons/dist/MagnifyingGlassStarVariant.js +39 -0
  247. package/dist/packages/icons/dist/OutlinedStar.cjs +22 -0
  248. package/dist/packages/icons/dist/OutlinedStar.js +22 -0
  249. package/dist/packages/icons/dist/SettingsVariant.cjs +72 -0
  250. package/dist/packages/icons/dist/SettingsVariant.js +72 -0
  251. package/dist/packages/icons/dist/Sparkles.cjs +43 -0
  252. package/dist/packages/icons/dist/Sparkles.js +43 -0
  253. package/dist/packages/icons/dist/_virtual/rolldown_runtime.cjs +29 -0
  254. package/dist/packages/icons/dist/_virtual/rolldown_runtime.js +27 -0
  255. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +696 -0
  256. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.development.js +696 -0
  257. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs +43 -0
  258. package/dist/packages/icons/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +43 -0
  259. package/dist/packages/icons/dist/node_modules/react/cjs/react.development.cjs +1528 -0
  260. package/dist/packages/icons/dist/node_modules/react/cjs/react.development.js +1528 -0
  261. package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.cjs +329 -0
  262. package/dist/packages/icons/dist/node_modules/react/cjs/react.production.min.js +329 -0
  263. package/dist/packages/icons/dist/node_modules/react/index.cjs +13 -0
  264. package/dist/packages/icons/dist/node_modules/react/index.js +13 -0
  265. package/dist/packages/icons/dist/node_modules/react/jsx-runtime.cjs +13 -0
  266. package/dist/packages/icons/dist/node_modules/react/jsx-runtime.js +13 -0
  267. package/dist/util/useHorizontalScrollAnimation.cjs +88 -0
  268. package/dist/util/useHorizontalScrollAnimation.js +87 -0
  269. package/dist/util/useReducedMotionWithOverride.cjs +15 -0
  270. package/dist/util/useReducedMotionWithOverride.js +14 -0
  271. package/package.json +3 -5
  272. package/src/SearchZeroState/SearchZeroState.tsx +1 -1
  273. package/src/SuggestionBar/SuggestionBar.tsx +2 -2
  274. package/dist/SearchZeroState/index-DSFtalZR.d.ts +0 -27
  275. package/dist/SearchZeroState/index-bEcxYOSF.d.cts +0 -27
  276. package/dist/SuggestionButtonContainer-Dm38gJiJ.cjs +0 -173
  277. /package/dist/SearchResults/{index-DCTxvwmv.d.cts → SearchResultsWidget.d.cts} +0 -0
  278. /package/dist/SearchResults/{index-CYPV3XE0.d.ts → SearchResultsWidget.d.ts} +0 -0
@@ -0,0 +1,13 @@
1
+ import { __commonJS } from "../../_virtual/rolldown_runtime.js";
2
+ import { require_react_jsx_runtime_production_min } from "./cjs/react-jsx-runtime.production.min.js";
3
+ import { require_react_jsx_runtime_development } from "./cjs/react-jsx-runtime.development.js";
4
+
5
+ //#region ../icons/dist/node_modules/react/jsx-runtime.js
6
+ var require_jsx_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/react/jsx-runtime.js": ((exports, module) => {
7
+ if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production_min();
8
+ else module.exports = require_react_jsx_runtime_development();
9
+ }) });
10
+ var jsx_runtime_default = require_jsx_runtime();
11
+
12
+ //#endregion
13
+ export { require_jsx_runtime };
@@ -0,0 +1,88 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_useReducedMotionWithOverride = require('./useReducedMotionWithOverride.cjs');
3
+ let react = require("react");
4
+
5
+ //#region src/util/useHorizontalScrollAnimation.ts
6
+ function useHorizontalScrollAnimation({ scrollContainerRef, animationSpeed = "standard" }) {
7
+ const reducedMotion = require_useReducedMotionWithOverride.useReducedMotionWithOverride();
8
+ const resumeTimeoutRef = (0, react.useRef)(null);
9
+ const scrollAnimationRef = (0, react.useRef)(null);
10
+ const pauseOnHover = true;
11
+ let PIXELS_PER_SECOND = 40;
12
+ switch (animationSpeed) {
13
+ case "standard":
14
+ PIXELS_PER_SECOND = 40;
15
+ break;
16
+ case "slow":
17
+ PIXELS_PER_SECOND = 25;
18
+ break;
19
+ case "none":
20
+ PIXELS_PER_SECOND = 0;
21
+ break;
22
+ default: PIXELS_PER_SECOND = 40;
23
+ }
24
+ const RESUME_DELAY_MS = 2e3;
25
+ const isAnimated = animationSpeed !== "none";
26
+ (0, react.useEffect)(() => {
27
+ if (!isAnimated || reducedMotion || !scrollContainerRef) return () => {};
28
+ const container = scrollContainerRef.current;
29
+ if (!container) return () => {};
30
+ if (container.scrollWidth <= container.clientWidth) return () => {};
31
+ let isPaused = false;
32
+ let lastTimestamp = null;
33
+ let accumulatedScroll = 0;
34
+ const step = (timestamp) => {
35
+ if (lastTimestamp === null) lastTimestamp = timestamp;
36
+ if (!isPaused) {
37
+ const delta = timestamp - lastTimestamp;
38
+ lastTimestamp = timestamp;
39
+ accumulatedScroll += PIXELS_PER_SECOND * (delta / 1e3);
40
+ const pixelsToScroll = Math.floor(accumulatedScroll);
41
+ if (pixelsToScroll > 0) {
42
+ container.scrollLeft += pixelsToScroll;
43
+ accumulatedScroll -= pixelsToScroll;
44
+ if (Math.ceil(container.scrollLeft) >= container.scrollWidth - container.clientWidth) {
45
+ container.scrollLeft = 0;
46
+ accumulatedScroll = 0;
47
+ }
48
+ }
49
+ }
50
+ scrollAnimationRef.current = requestAnimationFrame(step);
51
+ };
52
+ scrollAnimationRef.current = requestAnimationFrame(step);
53
+ const pauseAnimation = () => {
54
+ isPaused = true;
55
+ if (resumeTimeoutRef.current) {
56
+ clearTimeout(resumeTimeoutRef.current);
57
+ resumeTimeoutRef.current = null;
58
+ }
59
+ };
60
+ const scheduleResumeAnimation = () => {
61
+ resumeTimeoutRef.current = setTimeout(() => {
62
+ isPaused = false;
63
+ lastTimestamp = null;
64
+ }, RESUME_DELAY_MS);
65
+ };
66
+ container.addEventListener("mouseenter", pauseAnimation);
67
+ container.addEventListener("mouseleave", scheduleResumeAnimation);
68
+ container.addEventListener("touchstart", pauseAnimation);
69
+ container.addEventListener("touchend", scheduleResumeAnimation);
70
+ return function cleanup() {
71
+ if (scrollAnimationRef.current) cancelAnimationFrame(scrollAnimationRef.current);
72
+ container.removeEventListener("mouseenter", pauseAnimation);
73
+ container.removeEventListener("mouseleave", scheduleResumeAnimation);
74
+ container.removeEventListener("touchstart", pauseAnimation);
75
+ container.removeEventListener("touchend", scheduleResumeAnimation);
76
+ if (resumeTimeoutRef.current) clearTimeout(resumeTimeoutRef.current);
77
+ };
78
+ }, [
79
+ isAnimated,
80
+ reducedMotion,
81
+ PIXELS_PER_SECOND,
82
+ pauseOnHover,
83
+ scrollContainerRef
84
+ ]);
85
+ }
86
+
87
+ //#endregion
88
+ exports.useHorizontalScrollAnimation = useHorizontalScrollAnimation;
@@ -0,0 +1,87 @@
1
+ import { useReducedMotionWithOverride } from "./useReducedMotionWithOverride.js";
2
+ import { useEffect, useRef } from "react";
3
+
4
+ //#region src/util/useHorizontalScrollAnimation.ts
5
+ function useHorizontalScrollAnimation({ scrollContainerRef, animationSpeed = "standard" }) {
6
+ const reducedMotion = useReducedMotionWithOverride();
7
+ const resumeTimeoutRef = useRef(null);
8
+ const scrollAnimationRef = useRef(null);
9
+ const pauseOnHover = true;
10
+ let PIXELS_PER_SECOND = 40;
11
+ switch (animationSpeed) {
12
+ case "standard":
13
+ PIXELS_PER_SECOND = 40;
14
+ break;
15
+ case "slow":
16
+ PIXELS_PER_SECOND = 25;
17
+ break;
18
+ case "none":
19
+ PIXELS_PER_SECOND = 0;
20
+ break;
21
+ default: PIXELS_PER_SECOND = 40;
22
+ }
23
+ const RESUME_DELAY_MS = 2e3;
24
+ const isAnimated = animationSpeed !== "none";
25
+ useEffect(() => {
26
+ if (!isAnimated || reducedMotion || !scrollContainerRef) return () => {};
27
+ const container = scrollContainerRef.current;
28
+ if (!container) return () => {};
29
+ if (container.scrollWidth <= container.clientWidth) return () => {};
30
+ let isPaused = false;
31
+ let lastTimestamp = null;
32
+ let accumulatedScroll = 0;
33
+ const step = (timestamp) => {
34
+ if (lastTimestamp === null) lastTimestamp = timestamp;
35
+ if (!isPaused) {
36
+ const delta = timestamp - lastTimestamp;
37
+ lastTimestamp = timestamp;
38
+ accumulatedScroll += PIXELS_PER_SECOND * (delta / 1e3);
39
+ const pixelsToScroll = Math.floor(accumulatedScroll);
40
+ if (pixelsToScroll > 0) {
41
+ container.scrollLeft += pixelsToScroll;
42
+ accumulatedScroll -= pixelsToScroll;
43
+ if (Math.ceil(container.scrollLeft) >= container.scrollWidth - container.clientWidth) {
44
+ container.scrollLeft = 0;
45
+ accumulatedScroll = 0;
46
+ }
47
+ }
48
+ }
49
+ scrollAnimationRef.current = requestAnimationFrame(step);
50
+ };
51
+ scrollAnimationRef.current = requestAnimationFrame(step);
52
+ const pauseAnimation = () => {
53
+ isPaused = true;
54
+ if (resumeTimeoutRef.current) {
55
+ clearTimeout(resumeTimeoutRef.current);
56
+ resumeTimeoutRef.current = null;
57
+ }
58
+ };
59
+ const scheduleResumeAnimation = () => {
60
+ resumeTimeoutRef.current = setTimeout(() => {
61
+ isPaused = false;
62
+ lastTimestamp = null;
63
+ }, RESUME_DELAY_MS);
64
+ };
65
+ container.addEventListener("mouseenter", pauseAnimation);
66
+ container.addEventListener("mouseleave", scheduleResumeAnimation);
67
+ container.addEventListener("touchstart", pauseAnimation);
68
+ container.addEventListener("touchend", scheduleResumeAnimation);
69
+ return function cleanup() {
70
+ if (scrollAnimationRef.current) cancelAnimationFrame(scrollAnimationRef.current);
71
+ container.removeEventListener("mouseenter", pauseAnimation);
72
+ container.removeEventListener("mouseleave", scheduleResumeAnimation);
73
+ container.removeEventListener("touchstart", pauseAnimation);
74
+ container.removeEventListener("touchend", scheduleResumeAnimation);
75
+ if (resumeTimeoutRef.current) clearTimeout(resumeTimeoutRef.current);
76
+ };
77
+ }, [
78
+ isAnimated,
79
+ reducedMotion,
80
+ PIXELS_PER_SECOND,
81
+ pauseOnHover,
82
+ scrollContainerRef
83
+ ]);
84
+ }
85
+
86
+ //#endregion
87
+ export { useHorizontalScrollAnimation };
@@ -0,0 +1,15 @@
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ let react = require("react");
3
+ let framer_motion = require("framer-motion");
4
+
5
+ //#region src/util/useReducedMotionWithOverride.ts
6
+ const useReducedMotionWithOverride = () => {
7
+ const reducedMotionConfig = (0, framer_motion.useReducedMotionConfig)();
8
+ return (0, react.useMemo)(() => {
9
+ if (window?._spiffy?.reducedMotionOverride) return window?._spiffy?.reducedMotionOverride;
10
+ return reducedMotionConfig;
11
+ }, [reducedMotionConfig]);
12
+ };
13
+
14
+ //#endregion
15
+ exports.useReducedMotionWithOverride = useReducedMotionWithOverride;
@@ -0,0 +1,14 @@
1
+ import { useMemo } from "react";
2
+ import { useReducedMotionConfig } from "framer-motion";
3
+
4
+ //#region src/util/useReducedMotionWithOverride.ts
5
+ const useReducedMotionWithOverride = () => {
6
+ const reducedMotionConfig = useReducedMotionConfig();
7
+ return useMemo(() => {
8
+ if (window?._spiffy?.reducedMotionOverride) return window?._spiffy?.reducedMotionOverride;
9
+ return reducedMotionConfig;
10
+ }, [reducedMotionConfig]);
11
+ };
12
+
13
+ //#endregion
14
+ export { useReducedMotionWithOverride };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envive-ai/react-widgets",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "React widget library for Envive services.",
5
5
  "keywords": [
6
6
  "react",
@@ -25,15 +25,13 @@
25
25
  "build:watch": "tsdown --watch",
26
26
  "dev": "npm run get-merchants && storybook dev -p 6006",
27
27
  "prepublish": "npm run build",
28
- "build-storybook": "npm run get-merchants && storybook build",
29
- "storybook": "npm run get-merchants && storybook dev -p 6006",
28
+ "storybook": "tsx ./.storybook/getMerchants.ts && storybook dev -p 6006",
29
+ "storybook:build": "npm run get-merchants && storybook build",
30
30
  "storybook:get-merchants": "tsx ./.storybook/getMerchants.ts",
31
31
  "typecheck": "tsc",
32
32
  "test": "vitest"
33
33
  },
34
34
  "dependencies": {
35
- "@envive-ai/react-hooks": "0.2.9",
36
- "@envive-ai/react-toolkit": "*",
37
35
  "@tailwindcss/typography": "^0.5.15",
38
36
  "classnames": "^2.5.1",
39
37
  "framer-motion": "^12.23.24",
@@ -202,7 +202,7 @@ export const SearchZeroState: React.FC<SearchZeroStateProps> = ({
202
202
  onKeyDown={onKeyDown}
203
203
  onAutocompleteSelect={onAutocompleteSelect}
204
204
  onSearchInputChange={searchChange}
205
- onSearchSubmit={submitSearchString}
205
+ onSearchSubmit={() => submitSearchString}
206
206
  onSearchInputFocus={onSearchInputFocus}
207
207
  onSearchInputBlur={onSearchInputBlur}
208
208
  />
@@ -8,7 +8,6 @@ import { PerfMetricsEvents, logPerfMetricAtom } from '@envive-ai/react-hooks/ato
8
8
  import { SUGGESTION_BAR_TESTID } from '@envive-ai/react-hooks/config';
9
9
  import { useIsSmallScreen } from '@envive-ai/react-hooks/hooks/IsSmallScreen';
10
10
  import { useTrackComponentVisibleEvent } from '@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent';
11
- import { TestProps } from '@envive-ai/react-hooks/types';
12
11
  import { Message } from 'postcss';
13
12
 
14
13
  import { SuggestionButtonVariant } from '@envive-ai/react-hooks/contexts/types';
@@ -16,7 +15,7 @@ import { SuggestionBarLocationForMetrics } from './types';
16
15
  import { SuggestionButtonContainer } from '../SuggestionButtonContainer';
17
16
 
18
17
  // SuggestionBarV2 Props
19
- interface SuggestionBarProps extends TestProps {
18
+ interface SuggestionBarProps {
20
19
  id: string;
21
20
  locationForMetrics: SuggestionBarLocationForMetrics;
22
21
  buttonTexts: string[];
@@ -27,6 +26,7 @@ interface SuggestionBarProps extends TestProps {
27
26
  twoRowsOnMobile?: boolean | undefined;
28
27
  animationSpeed?: 'standard' | 'slow' | 'none';
29
28
  buttonBorderRadius?: 'sm' | 'md' | 'lg';
29
+ dataTestId?: string;
30
30
  }
31
31
 
32
32
  // SuggestionBar functional component
@@ -1,27 +0,0 @@
1
- import React$1 from "react";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
3
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
4
-
5
- //#region src/SearchZeroState/types.d.ts
6
- interface SearchZeroStateProps {
7
- widgetConfig: SearchEntryPointWidgetConfig;
8
- initialIsOpen?: boolean;
9
- entryPointRef?: React.Ref<HTMLButtonElement>;
10
- }
11
- //#endregion
12
- //#region src/SearchZeroState/SearchZeroState.d.ts
13
- declare const SearchZeroState: React$1.FC<SearchZeroStateProps>;
14
- //#endregion
15
- //#region src/SearchZeroState/SearchZeroStateWidget.d.ts
16
- type SearchZeroStateWidgetProps = {
17
- initialIsOpen: boolean;
18
- widgetConfigId?: string;
19
- entryPointRef: React.Ref<HTMLButtonElement>;
20
- };
21
- declare const SearchZeroStateWidget: ({
22
- initialIsOpen,
23
- widgetConfigId,
24
- entryPointRef
25
- }: SearchZeroStateWidgetProps) => react_jsx_runtime1.JSX.Element;
26
- //#endregion
27
- export { type SearchEntryPointWidgetConfig, type SearchInputVariant, SearchZeroState, SearchZeroStateProps, SearchZeroStateWidget };
@@ -1,27 +0,0 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
- import { SearchEntryPointWidgetConfig, SearchInputVariant } from "@envive-ai/react-hooks/contexts/types";
3
- import React$1 from "react";
4
-
5
- //#region src/SearchZeroState/types.d.ts
6
- interface SearchZeroStateProps {
7
- widgetConfig: SearchEntryPointWidgetConfig;
8
- initialIsOpen?: boolean;
9
- entryPointRef?: React.Ref<HTMLButtonElement>;
10
- }
11
- //#endregion
12
- //#region src/SearchZeroState/SearchZeroState.d.ts
13
- declare const SearchZeroState: React$1.FC<SearchZeroStateProps>;
14
- //#endregion
15
- //#region src/SearchZeroState/SearchZeroStateWidget.d.ts
16
- type SearchZeroStateWidgetProps = {
17
- initialIsOpen: boolean;
18
- widgetConfigId?: string;
19
- entryPointRef: React.Ref<HTMLButtonElement>;
20
- };
21
- declare const SearchZeroStateWidget: ({
22
- initialIsOpen,
23
- widgetConfigId,
24
- entryPointRef
25
- }: SearchZeroStateWidgetProps) => react_jsx_runtime0.JSX.Element;
26
- //#endregion
27
- export { type SearchEntryPointWidgetConfig, type SearchInputVariant, SearchZeroState, SearchZeroStateProps, SearchZeroStateWidget };
@@ -1,173 +0,0 @@
1
- const require_chunk = require('./chunk-DSlc6foC.cjs');
2
- let react = require("react");
3
- let react_jsx_runtime = require("react/jsx-runtime");
4
- let framer_motion = require("framer-motion");
5
- let __envive_ai_react_hooks_application_models = require("@envive-ai/react-hooks/application/models");
6
- let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
7
- let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
8
- let __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent = require("@envive-ai/react-hooks/hooks/TrackComponentVisibleEvent");
9
- let __envive_ai_react_toolkit_SuggestionButton = require("@envive-ai/react-toolkit/SuggestionButton");
10
-
11
- //#region src/util/useReducedMotionWithOverride.ts
12
- const useReducedMotionWithOverride = () => {
13
- const reducedMotionConfig = (0, framer_motion.useReducedMotionConfig)();
14
- return (0, react.useMemo)(() => {
15
- if (window?._spiffy?.reducedMotionOverride) return window?._spiffy?.reducedMotionOverride;
16
- return reducedMotionConfig;
17
- }, [reducedMotionConfig]);
18
- };
19
-
20
- //#endregion
21
- //#region src/util/useHorizontalScrollAnimation.ts
22
- function useHorizontalScrollAnimation({ scrollContainerRef, animationSpeed = "standard" }) {
23
- const reducedMotion = useReducedMotionWithOverride();
24
- const resumeTimeoutRef = (0, react.useRef)(null);
25
- const scrollAnimationRef = (0, react.useRef)(null);
26
- const pauseOnHover = true;
27
- let PIXELS_PER_SECOND = 40;
28
- switch (animationSpeed) {
29
- case "standard":
30
- PIXELS_PER_SECOND = 40;
31
- break;
32
- case "slow":
33
- PIXELS_PER_SECOND = 25;
34
- break;
35
- case "none":
36
- PIXELS_PER_SECOND = 0;
37
- break;
38
- default: PIXELS_PER_SECOND = 40;
39
- }
40
- const RESUME_DELAY_MS = 2e3;
41
- const isAnimated = animationSpeed !== "none";
42
- (0, react.useEffect)(() => {
43
- if (!isAnimated || reducedMotion || !scrollContainerRef) return () => {};
44
- const container = scrollContainerRef.current;
45
- if (!container) return () => {};
46
- if (container.scrollWidth <= container.clientWidth) return () => {};
47
- let isPaused = false;
48
- let lastTimestamp = null;
49
- let accumulatedScroll = 0;
50
- const step = (timestamp) => {
51
- if (lastTimestamp === null) lastTimestamp = timestamp;
52
- if (!isPaused) {
53
- const delta = timestamp - lastTimestamp;
54
- lastTimestamp = timestamp;
55
- accumulatedScroll += PIXELS_PER_SECOND * (delta / 1e3);
56
- const pixelsToScroll = Math.floor(accumulatedScroll);
57
- if (pixelsToScroll > 0) {
58
- container.scrollLeft += pixelsToScroll;
59
- accumulatedScroll -= pixelsToScroll;
60
- if (Math.ceil(container.scrollLeft) >= container.scrollWidth - container.clientWidth) {
61
- container.scrollLeft = 0;
62
- accumulatedScroll = 0;
63
- }
64
- }
65
- }
66
- scrollAnimationRef.current = requestAnimationFrame(step);
67
- };
68
- scrollAnimationRef.current = requestAnimationFrame(step);
69
- const pauseAnimation = () => {
70
- isPaused = true;
71
- if (resumeTimeoutRef.current) {
72
- clearTimeout(resumeTimeoutRef.current);
73
- resumeTimeoutRef.current = null;
74
- }
75
- };
76
- const scheduleResumeAnimation = () => {
77
- resumeTimeoutRef.current = setTimeout(() => {
78
- isPaused = false;
79
- lastTimestamp = null;
80
- }, RESUME_DELAY_MS);
81
- };
82
- container.addEventListener("mouseenter", pauseAnimation);
83
- container.addEventListener("mouseleave", scheduleResumeAnimation);
84
- container.addEventListener("touchstart", pauseAnimation);
85
- container.addEventListener("touchend", scheduleResumeAnimation);
86
- return function cleanup() {
87
- if (scrollAnimationRef.current) cancelAnimationFrame(scrollAnimationRef.current);
88
- container.removeEventListener("mouseenter", pauseAnimation);
89
- container.removeEventListener("mouseleave", scheduleResumeAnimation);
90
- container.removeEventListener("touchstart", pauseAnimation);
91
- container.removeEventListener("touchend", scheduleResumeAnimation);
92
- if (resumeTimeoutRef.current) clearTimeout(resumeTimeoutRef.current);
93
- };
94
- }, [
95
- isAnimated,
96
- reducedMotion,
97
- PIXELS_PER_SECOND,
98
- pauseOnHover,
99
- scrollContainerRef
100
- ]);
101
- }
102
-
103
- //#endregion
104
- //#region src/SuggestionButtonContainer/SuggestionButtonContainer.tsx
105
- function ButtonContainer({ children }) {
106
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
107
- className: "spiffy-tw-pl-0 spiffy-tw-flex spiffy-tw-h-full spiffy-tw-flex-row spiffy-tw-items-center spiffy-tw-space-x-2",
108
- children
109
- });
110
- }
111
- const SuggestionButtonContainer = ({ buttonVariation, hoverButtonVariation, buttonTexts, boldFirstButton = false, twoRowsOnMobile = false, animationSpeed = "none", buttonBorderRadius = "lg", scrollContainerRef, onButtonClick }) => {
112
- const componentVisibleTriggerRef = (0, react.useRef)(null);
113
- useHorizontalScrollAnimation({
114
- scrollContainerRef,
115
- animationSpeed
116
- });
117
- const isSmallScreen = (0, __envive_ai_react_hooks_hooks_IsSmallScreen.useIsSmallScreen)();
118
- const isAnimated = animationSpeed !== "none";
119
- (0, __envive_ai_react_hooks_hooks_TrackComponentVisibleEvent.useTrackComponentVisibleEvent)(__envive_ai_react_hooks_application_models.SpiffyWidgets.SuggestionBar, componentVisibleTriggerRef, { animated: isAnimated });
120
- const visibleButtonsFirstRow = buttonTexts.slice(0, twoRowsOnMobile && isSmallScreen ? Math.ceil((buttonTexts.length + 1) / 2) : void 0);
121
- const visibleButtonsSecondRow = buttonTexts.slice(Math.ceil((buttonTexts.length + 1) / 2), buttonTexts.length);
122
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
123
- className: "spiffy-tw-no-scrollbar spiffy-tw-w-full spiffy-tw-overflow-x-scroll spiffy-tw-whitespace-nowrap",
124
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ButtonContainer, { children: [visibleButtonsFirstRow.map((suggestion, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_SuggestionButton.SuggestionButton, {
125
- variant: buttonVariation,
126
- hoverVariant: hoverButtonVariation,
127
- isDisabled: false,
128
- content: suggestion,
129
- boldText: boldFirstButton && i === 0,
130
- borderRadius: buttonBorderRadius,
131
- onClick: () => onButtonClick(suggestion),
132
- dataTestId: __envive_ai_react_hooks_config.SUGGESTION_BAR_BUTTON_TESTID
133
- }, i)), isAnimated && buttonTexts.map((suggestion, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_SuggestionButton.SuggestionButton, {
134
- variant: buttonVariation,
135
- hoverVariant: hoverButtonVariation,
136
- isDisabled: false,
137
- content: suggestion,
138
- boldText: boldFirstButton && i === 0,
139
- borderRadius: buttonBorderRadius,
140
- onClick: () => onButtonClick(suggestion),
141
- dataTestId: __envive_ai_react_hooks_config.SUGGESTION_BAR_BUTTON_TESTID
142
- }, `animation-dupe-${i}`))] }), twoRowsOnMobile && isSmallScreen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
143
- className: "spiffy-tw-mt-1.5",
144
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(ButtonContainer, { children: [visibleButtonsSecondRow.map((suggestion, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_SuggestionButton.SuggestionButton, {
145
- variant: buttonVariation,
146
- hoverVariant: hoverButtonVariation,
147
- isDisabled: false,
148
- content: suggestion,
149
- boldText: boldFirstButton && i === 0,
150
- borderRadius: buttonBorderRadius,
151
- onClick: () => onButtonClick(suggestion),
152
- dataTestId: __envive_ai_react_hooks_config.SUGGESTION_BAR_BUTTON_TESTID
153
- }, i)), isAnimated && visibleButtonsSecondRow.map((suggestion, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_toolkit_SuggestionButton.SuggestionButton, {
154
- variant: buttonVariation,
155
- hoverVariant: hoverButtonVariation,
156
- isDisabled: false,
157
- content: suggestion,
158
- boldText: boldFirstButton && i === 0,
159
- borderRadius: buttonBorderRadius,
160
- onClick: () => onButtonClick(suggestion),
161
- dataTestId: __envive_ai_react_hooks_config.SUGGESTION_BAR_BUTTON_TESTID
162
- }, `animation-dupe-${i}`))] })
163
- })]
164
- });
165
- };
166
-
167
- //#endregion
168
- Object.defineProperty(exports, 'SuggestionButtonContainer', {
169
- enumerable: true,
170
- get: function () {
171
- return SuggestionButtonContainer;
172
- }
173
- });