@envive-ai/react-toolkit 0.1.1 → 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 (319) hide show
  1. package/dist/AppliedFiltersScrollbar-Cd6jgn-c.cjs +53 -0
  2. package/dist/AppliedFiltersScrollbar-CeMmITGf.d.cts +22 -0
  3. package/dist/AppliedFiltersScrollbar-DUo5NSwQ.js +44 -0
  4. package/dist/AppliedFiltersScrollbar-DrcrTkwX.d.ts +22 -0
  5. package/dist/ButtonBase-2R-hB-y8.d.cts +43 -0
  6. package/dist/ButtonBase-DVBSlvQv.d.ts +43 -0
  7. package/dist/ButtonBase-Dk_5Bxe0.js +60 -0
  8. package/dist/ButtonBase-RIYFAcSy.cjs +75 -0
  9. package/dist/DynamicFiltersScrollbar-BbgfsOpt.js +32 -0
  10. package/dist/DynamicFiltersScrollbar-CHI1YQZ7.d.cts +28 -0
  11. package/dist/DynamicFiltersScrollbar-DMuCZcGH.d.ts +28 -0
  12. package/dist/DynamicFiltersScrollbar-FKO8Qb5u.cjs +41 -0
  13. package/dist/Headline-B8ivXd0O.d.cts +21 -0
  14. package/dist/Headline-CRQSK38D.d.ts +21 -0
  15. package/dist/Headline-L7w3BsBF.cjs +72 -0
  16. package/dist/Headline-ro_Nigw5.js +64 -0
  17. package/dist/ImageWithFallback-CfmkC58B.js +42 -0
  18. package/dist/ImageWithFallback-D70hTBkZ.d.cts +26 -0
  19. package/dist/ImageWithFallback-P3AjyL2Y.cjs +51 -0
  20. package/dist/ImageWithFallback-xikP8SY4.d.ts +26 -0
  21. package/dist/NoSearchResultsFound-C25AsQAI.d.ts +17 -0
  22. package/dist/NoSearchResultsFound-jT3JwiYm.cjs +34 -0
  23. package/dist/NoSearchResultsFound-lpvz_Gq-.d.cts +17 -0
  24. package/dist/NoSearchResultsFound-q-DgYpjR.js +25 -0
  25. package/dist/ProductCard-CLLIICuS.js +172 -0
  26. package/dist/ProductCard-CPOXS9kz.d.ts +91 -0
  27. package/dist/ProductCard-CTm2sGVZ.d.cts +91 -0
  28. package/dist/ProductCard-DSmiLLCO.cjs +199 -0
  29. package/dist/ProductCardSkeleton-BD-4l9Ym.d.ts +12 -0
  30. package/dist/ProductCardSkeleton-CgpRxzKt.d.cts +12 -0
  31. package/dist/ProductCardSkeleton-Pp0UQG-h.cjs +63 -0
  32. package/dist/ProductCardSkeleton-lKjP9IjT.js +43 -0
  33. package/dist/ProductGrid-CGKgdAK7.js +69 -0
  34. package/dist/ProductGrid-CocLTY7Q.cjs +83 -0
  35. package/dist/ProductGrid-DDhSKNBT.d.ts +26 -0
  36. package/dist/ProductGrid-Lts9Xv83.d.cts +26 -0
  37. package/dist/SearchAutocomplete-5gSMPXfM.d.cts +13 -0
  38. package/dist/SearchAutocomplete-CIsbwN0M.cjs +62 -0
  39. package/dist/SearchAutocomplete-D4LkC6bS.js +51 -0
  40. package/dist/SearchAutocomplete-I5DJkfmd.d.ts +13 -0
  41. package/dist/SearchFilter-BoCnqT8O.d.ts +18 -0
  42. package/dist/SearchFilter-D9_2Bdu0.cjs +70 -0
  43. package/dist/SearchFilter-DK7f_J7J.d.cts +18 -0
  44. package/dist/SearchFilter-qTwBmFt1.js +62 -0
  45. package/dist/SearchFilterHeader-C4D38iyw.d.ts +12 -0
  46. package/dist/SearchFilterHeader-CcHU0lN_.cjs +45 -0
  47. package/dist/SearchFilterHeader-DRA6XMMY.js +37 -0
  48. package/dist/SearchFilterHeader-TQ_MapZI.d.cts +12 -0
  49. package/dist/SearchFilterItem-C3F8x3M3.d.cts +13 -0
  50. package/dist/SearchFilterItem-CsrO3Om5.js +26 -0
  51. package/dist/SearchFilterItem-DJrPcYtU.cjs +34 -0
  52. package/dist/SearchFilterItem-sOBAQLPQ.d.ts +13 -0
  53. package/dist/SearchInput-Cxg1t9H8.js +89 -0
  54. package/dist/SearchInput-D2yMIYtf.cjs +106 -0
  55. package/dist/SearchInput-DzLynEd6.d.cts +20 -0
  56. package/dist/SearchInput-zggwSGKj.d.ts +20 -0
  57. package/dist/SearchInputForm-BWMdfatv.d.cts +32 -0
  58. package/dist/SearchInputForm-D4qh2b7S.d.ts +32 -0
  59. package/dist/SearchInputForm-DNEkauQ5.js +33 -0
  60. package/dist/SearchInputForm-z5RFjdh2.cjs +40 -0
  61. package/dist/SearchResultsFilter-3U3u9E4U.d.ts +28 -0
  62. package/dist/SearchResultsFilter-CVFVMTUO.js +45 -0
  63. package/dist/SearchResultsFilter-DdF8BeDA.cjs +53 -0
  64. package/dist/SearchResultsFilter-RuaEmhp5.d.cts +28 -0
  65. package/dist/SearchResultsGrid-B7bjLKye.cjs +62 -0
  66. package/dist/SearchResultsGrid-BXyk2cMd.js +53 -0
  67. package/dist/SearchResultsGrid-CLldvt66.d.cts +41 -0
  68. package/dist/SearchResultsGrid-CoWZNxWh.d.ts +41 -0
  69. package/dist/SearchResultsLoadingGrid-4QzwkBiT.cjs +55 -0
  70. package/dist/SearchResultsLoadingGrid-BiZ11r8B.js +47 -0
  71. package/dist/SearchResultsLoadingGrid-DN3MQxZi.d.ts +15 -0
  72. package/dist/SearchResultsLoadingGrid-XA5pUZAz.d.cts +15 -0
  73. package/dist/SparkleAnimation-BStwzL9T.d.ts +15 -0
  74. package/dist/SparkleAnimation-CVu9vUAb.cjs +102 -0
  75. package/dist/SparkleAnimation-DKhQSeVg.d.cts +15 -0
  76. package/dist/SparkleAnimation-Df_wUFfB.js +85 -0
  77. package/dist/Spinner-79PaZrmy.d.cts +11 -0
  78. package/dist/Spinner-BZ-kTOpm.js +38 -0
  79. package/dist/Spinner-CfQ85Ajl.cjs +46 -0
  80. package/dist/Spinner-De8NVcZz.d.ts +11 -0
  81. package/dist/SuggestionButton-BVzBCzmQ.cjs +206 -0
  82. package/dist/SuggestionButton-BoKmwMb3.d.ts +35 -0
  83. package/dist/SuggestionButton-C4p08bZv.js +178 -0
  84. package/dist/SuggestionButton-CNwyzi1V.d.cts +35 -0
  85. package/dist/Text-Bdv7F5-u.js +42 -0
  86. package/dist/Text-C04c4Z93.cjs +50 -0
  87. package/dist/Text-D8WEjUal.d.ts +41 -0
  88. package/dist/Text-D8bCCNPT.d.cts +41 -0
  89. package/dist/TextInput-BZSsdOtq.js +31 -0
  90. package/dist/TextInput-CZogcpzR.cjs +40 -0
  91. package/dist/TextInput-CtSUuczk.d.ts +98 -0
  92. package/dist/TextInput-QqdJV52m.d.cts +98 -0
  93. package/dist/chunk-CUT6urMc.cjs +30 -0
  94. package/dist/colorsConfig-TCONYTQ7.cjs +38 -0
  95. package/dist/colorsConfig-l0ODUVhu.js +26 -0
  96. package/dist/components/common/ButtonBase/ButtonBase.cjs +5 -0
  97. package/dist/components/common/ButtonBase/ButtonBase.d.cts +3 -0
  98. package/dist/components/common/ButtonBase/ButtonBase.d.ts +3 -0
  99. package/dist/components/common/ButtonBase/ButtonBase.js +5 -0
  100. package/dist/components/common/Headline/Headline.cjs +4 -0
  101. package/dist/components/common/Headline/Headline.d.cts +2 -0
  102. package/dist/components/common/Headline/Headline.d.ts +2 -0
  103. package/dist/components/common/Headline/Headline.js +4 -0
  104. package/dist/components/common/ImageWithFallback/ImageWithFallback.cjs +3 -0
  105. package/dist/components/common/ImageWithFallback/ImageWithFallback.d.cts +2 -0
  106. package/dist/components/common/ImageWithFallback/ImageWithFallback.d.ts +2 -0
  107. package/dist/components/common/ImageWithFallback/ImageWithFallback.js +3 -0
  108. package/dist/components/common/ProductCard/ProductCard.cjs +11 -0
  109. package/dist/components/common/ProductCard/ProductCard.d.cts +4 -0
  110. package/dist/components/common/ProductCard/ProductCard.d.ts +4 -0
  111. package/dist/components/common/ProductCard/ProductCard.js +9 -0
  112. package/dist/components/common/ProductCard/ProductCardSkeleton.cjs +4 -0
  113. package/dist/components/common/ProductCard/ProductCardSkeleton.d.cts +3 -0
  114. package/dist/components/common/ProductCard/ProductCardSkeleton.d.ts +3 -0
  115. package/dist/components/common/ProductCard/ProductCardSkeleton.js +4 -0
  116. package/dist/components/common/ProductGrid/ProductGrid.cjs +11 -0
  117. package/dist/components/common/ProductGrid/ProductGrid.d.cts +3 -0
  118. package/dist/components/common/ProductGrid/ProductGrid.d.ts +3 -0
  119. package/dist/components/common/ProductGrid/ProductGrid.js +11 -0
  120. package/dist/components/common/SparkleAnimation/SparkleAnimation.cjs +3 -0
  121. package/dist/components/common/SparkleAnimation/SparkleAnimation.d.cts +2 -0
  122. package/dist/components/common/SparkleAnimation/SparkleAnimation.d.ts +2 -0
  123. package/dist/components/common/SparkleAnimation/SparkleAnimation.js +3 -0
  124. package/dist/components/common/Spinner/Spinner.cjs +3 -0
  125. package/dist/components/common/Spinner/Spinner.d.cts +2 -0
  126. package/dist/components/common/Spinner/Spinner.d.ts +2 -0
  127. package/dist/components/common/Spinner/Spinner.js +3 -0
  128. package/dist/components/common/SuggestionButton/SuggestionButton.cjs +9 -0
  129. package/dist/components/common/SuggestionButton/SuggestionButton.d.cts +3 -0
  130. package/dist/components/common/SuggestionButton/SuggestionButton.d.ts +3 -0
  131. package/dist/components/common/SuggestionButton/SuggestionButton.js +6 -0
  132. package/dist/components/common/Text/Text.cjs +4 -0
  133. package/dist/components/common/Text/Text.d.cts +2 -0
  134. package/dist/components/common/Text/Text.d.ts +2 -0
  135. package/dist/components/common/Text/Text.js +4 -0
  136. package/dist/components/common/TextInput/TextInput.cjs +4 -0
  137. package/dist/components/common/TextInput/TextInput.d.cts +2 -0
  138. package/dist/components/common/TextInput/TextInput.d.ts +2 -0
  139. package/dist/components/common/TextInput/TextInput.js +4 -0
  140. package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.cjs +5 -0
  141. package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.cts +3 -0
  142. package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +3 -0
  143. package/dist/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +5 -0
  144. package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.cjs +5 -0
  145. package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.cts +2 -0
  146. package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +2 -0
  147. package/dist/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +5 -0
  148. package/dist/components/search/SearchFilter/SearchFilter.cjs +7 -0
  149. package/dist/components/search/SearchFilter/SearchFilter.d.cts +3 -0
  150. package/dist/components/search/SearchFilter/SearchFilter.d.ts +3 -0
  151. package/dist/components/search/SearchFilter/SearchFilter.js +7 -0
  152. package/dist/components/search/SearchFilter/SearchFilterHeader.cjs +5 -0
  153. package/dist/components/search/SearchFilter/SearchFilterHeader.d.cts +3 -0
  154. package/dist/components/search/SearchFilter/SearchFilterHeader.d.ts +3 -0
  155. package/dist/components/search/SearchFilter/SearchFilterHeader.js +5 -0
  156. package/dist/components/search/SearchFilter/SearchFilterItem.cjs +5 -0
  157. package/dist/components/search/SearchFilter/SearchFilterItem.d.cts +3 -0
  158. package/dist/components/search/SearchFilter/SearchFilterItem.d.ts +3 -0
  159. package/dist/components/search/SearchFilter/SearchFilterItem.js +5 -0
  160. package/dist/components/search/SearchInput/SearchInput.cjs +6 -0
  161. package/dist/components/search/SearchInput/SearchInput.d.cts +3 -0
  162. package/dist/components/search/SearchInput/SearchInput.d.ts +3 -0
  163. package/dist/components/search/SearchInput/SearchInput.js +6 -0
  164. package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.cjs +3 -0
  165. package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.d.cts +2 -0
  166. package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +2 -0
  167. package/dist/components/search/SearchInputAutocomplete/SearchAutocomplete.js +3 -0
  168. package/dist/components/search/SearchInputForm/SearchInputForm.cjs +8 -0
  169. package/dist/components/search/SearchInputForm/SearchInputForm.d.cts +3 -0
  170. package/dist/components/search/SearchInputForm/SearchInputForm.d.ts +3 -0
  171. package/dist/components/search/SearchInputForm/SearchInputForm.js +8 -0
  172. package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.cjs +11 -0
  173. package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +4 -0
  174. package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +4 -0
  175. package/dist/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +11 -0
  176. package/dist/components/search/SearchResultsStates/NoSearchResultsFound.cjs +5 -0
  177. package/dist/components/search/SearchResultsStates/NoSearchResultsFound.d.cts +2 -0
  178. package/dist/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +2 -0
  179. package/dist/components/search/SearchResultsStates/NoSearchResultsFound.js +5 -0
  180. package/dist/components/search/SearchResultsStates/SearchResultsGrid.cjs +16 -0
  181. package/dist/components/search/SearchResultsStates/SearchResultsGrid.d.cts +5 -0
  182. package/dist/components/search/SearchResultsStates/SearchResultsGrid.d.ts +5 -0
  183. package/dist/components/search/SearchResultsStates/SearchResultsGrid.js +16 -0
  184. package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.cjs +9 -0
  185. package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.cts +3 -0
  186. package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +3 -0
  187. package/dist/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +9 -0
  188. package/dist/index.cjs +80 -0
  189. package/dist/index.d.cts +75 -0
  190. package/dist/index.d.ts +75 -0
  191. package/dist/index.js +48 -0
  192. package/dist/productCardVariants-C_QIZ-KF.js +45 -0
  193. package/dist/productCardVariants-Dd-wrJKP.cjs +69 -0
  194. package/dist/productGridVariants-BNX4YlRK.js +20 -0
  195. package/dist/productGridVariants-CsNV0ACt.cjs +26 -0
  196. package/dist/searchFilterSidebarVariants-2hFLDP6e.cjs +39 -0
  197. package/dist/searchFilterSidebarVariants-ClPVoN5E.js +34 -0
  198. package/dist/textVariantClasses-5t3OricK.js +101 -0
  199. package/dist/textVariantClasses-Bhf4VY5z.cjs +125 -0
  200. package/dist/types--SBcFTJX.d.cts +289 -0
  201. package/dist/types-BKI60fVP.d.ts +5 -0
  202. package/dist/types-CmjqQWAG.d.ts +289 -0
  203. package/dist/types-CrKSiwfx.d.ts +8 -0
  204. package/dist/types-D2gzKgxc.d.cts +5 -0
  205. package/dist/types-DBFHTDLN.d.cts +8 -0
  206. package/dist/types-DIFUT33A.d.ts +4 -0
  207. package/dist/types-DSduYC0Z.d.ts +46 -0
  208. package/dist/types-TYhhwWZw.d.cts +6 -0
  209. package/dist/types-Y0WKFOqS.d.ts +6 -0
  210. package/dist/types-ZUUsuyGT.d.cts +4 -0
  211. package/dist/types-pOHvi423.d.cts +46 -0
  212. package/package.json +8 -8
  213. package/src/components/common/ButtonBase/ButtonBase.tsx +2 -2
  214. package/src/components/common/ButtonBase/types.ts +2 -3
  215. package/src/index.ts +14 -15
  216. package/dist/src/atoms/search/types.d.ts +0 -5
  217. package/dist/src/atoms/search/types.js +0 -1
  218. package/dist/src/components/common/ButtonBase/ButtonBase.d.ts +0 -2
  219. package/dist/src/components/common/ButtonBase/ButtonBase.js +0 -41
  220. package/dist/src/components/common/ButtonBase/types.d.ts +0 -24
  221. package/dist/src/components/common/ButtonBase/types.js +0 -6
  222. package/dist/src/components/common/Headline/Headline.d.ts +0 -10
  223. package/dist/src/components/common/Headline/Headline.js +0 -34
  224. package/dist/src/components/common/ImageWithFallback/ImageWithFallback.d.ts +0 -12
  225. package/dist/src/components/common/ImageWithFallback/ImageWithFallback.js +0 -26
  226. package/dist/src/components/common/ProductCard/ProductCard.d.ts +0 -39
  227. package/dist/src/components/common/ProductCard/ProductCard.js +0 -84
  228. package/dist/src/components/common/ProductCard/ProductCardSkeleton.d.ts +0 -9
  229. package/dist/src/components/common/ProductCard/ProductCardSkeleton.js +0 -15
  230. package/dist/src/components/common/ProductCard/productCardVariants.d.ts +0 -8
  231. package/dist/src/components/common/ProductCard/productCardVariants.js +0 -50
  232. package/dist/src/components/common/ProductCard/types.d.ts +0 -39
  233. package/dist/src/components/common/ProductCard/types.js +0 -10
  234. package/dist/src/components/common/ProductGrid/ProductGrid.d.ts +0 -14
  235. package/dist/src/components/common/ProductGrid/ProductGrid.js +0 -13
  236. package/dist/src/components/common/ProductGrid/productGridVariants.d.ts +0 -10
  237. package/dist/src/components/common/ProductGrid/productGridVariants.js +0 -16
  238. package/dist/src/components/common/SparkleAnimation/SparkleAnimation.d.ts +0 -7
  239. package/dist/src/components/common/SparkleAnimation/SparkleAnimation.js +0 -40
  240. package/dist/src/components/common/SparkleAnimation/types.d.ts +0 -6
  241. package/dist/src/components/common/SparkleAnimation/types.js +0 -7
  242. package/dist/src/components/common/Spinner/Spinner.d.ts +0 -5
  243. package/dist/src/components/common/Spinner/Spinner.js +0 -16
  244. package/dist/src/components/common/SuggestionButton/SuggestionButton.d.ts +0 -18
  245. package/dist/src/components/common/SuggestionButton/SuggestionButton.js +0 -210
  246. package/dist/src/components/common/SuggestionButton/types.d.ts +0 -1
  247. package/dist/src/components/common/SuggestionButton/types.js +0 -1
  248. package/dist/src/components/common/Text/Text.d.ts +0 -12
  249. package/dist/src/components/common/Text/Text.js +0 -26
  250. package/dist/src/components/common/Text/textVariantClasses.d.ts +0 -171
  251. package/dist/src/components/common/Text/textVariantClasses.js +0 -103
  252. package/dist/src/components/common/Text/types.d.ts +0 -16
  253. package/dist/src/components/common/Text/types.js +0 -6
  254. package/dist/src/components/common/TextInput/TextInput.d.ts +0 -8
  255. package/dist/src/components/common/TextInput/TextInput.js +0 -25
  256. package/dist/src/components/models/colorsConfig.d.ts +0 -26
  257. package/dist/src/components/models/colorsConfig.js +0 -23
  258. package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.d.ts +0 -11
  259. package/dist/src/components/search/FilterScrollbar/AppliedFiltersScrollbar.js +0 -18
  260. package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.d.ts +0 -15
  261. package/dist/src/components/search/FilterScrollbar/DynamicFiltersScrollbar.js +0 -15
  262. package/dist/src/components/search/SearchFilter/SearchFilter.d.ts +0 -2
  263. package/dist/src/components/search/SearchFilter/SearchFilter.js +0 -24
  264. package/dist/src/components/search/SearchFilter/SearchFilterHeader.d.ts +0 -2
  265. package/dist/src/components/search/SearchFilter/SearchFilterHeader.js +0 -9
  266. package/dist/src/components/search/SearchFilter/SearchFilterItem.d.ts +0 -2
  267. package/dist/src/components/search/SearchFilter/SearchFilterItem.js +0 -13
  268. package/dist/src/components/search/SearchFilter/types.d.ts +0 -42
  269. package/dist/src/components/search/SearchFilter/types.js +0 -1
  270. package/dist/src/components/search/SearchInput/SearchInput.d.ts +0 -16
  271. package/dist/src/components/search/SearchInput/SearchInput.js +0 -38
  272. package/dist/src/components/search/SearchInput/searchInputVariants.d.ts +0 -13
  273. package/dist/src/components/search/SearchInput/searchInputVariants.js +0 -12
  274. package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts +0 -10
  275. package/dist/src/components/search/SearchInputAutocomplete/SearchAutocomplete.js +0 -14
  276. package/dist/src/components/search/SearchInputForm/SearchInputForm.d.ts +0 -16
  277. package/dist/src/components/search/SearchInputForm/SearchInputForm.js +0 -13
  278. package/dist/src/components/search/SearchInputForm/types.d.ts +0 -1
  279. package/dist/src/components/search/SearchInputForm/types.js +0 -1
  280. package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +0 -14
  281. package/dist/src/components/search/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -15
  282. package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts +0 -16
  283. package/dist/src/components/search/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +0 -29
  284. package/dist/src/components/search/SearchResultsFilterSidebar/types.d.ts +0 -2
  285. package/dist/src/components/search/SearchResultsFilterSidebar/types.js +0 -1
  286. package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.d.ts +0 -8
  287. package/dist/src/components/search/SearchResultsStates/NoSearchResultsFound.js +0 -10
  288. package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.d.ts +0 -24
  289. package/dist/src/components/search/SearchResultsStates/SearchResultsGrid.js +0 -19
  290. package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.d.ts +0 -6
  291. package/dist/src/components/search/SearchResultsStates/SearchResultsLoadingGrid.js +0 -10
  292. package/dist/src/components/search/types.d.ts +0 -5
  293. package/dist/src/components/search/types.js +0 -6
  294. package/dist/src/components/test/types.d.ts +0 -3
  295. package/dist/src/components/test/types.js +0 -1
  296. package/dist/src/config/chatElementDisplayLocation.d.ts +0 -21
  297. package/dist/src/config/chatElementDisplayLocation.js +0 -23
  298. package/dist/src/index.d.ts +0 -45
  299. package/dist/src/index.js +0 -49
  300. package/dist/src/logging/logger.d.ts +0 -7
  301. package/dist/src/logging/logger.js +0 -16
  302. package/dist/src/types/external.d.ts +0 -21
  303. package/dist/src/types/external.js +0 -5
  304. package/dist/src/util/camelCase.d.ts +0 -65
  305. package/dist/src/util/camelCase.js +0 -2
  306. package/dist/src/util/camelCasedPropertiesDeep.d.ts +0 -53
  307. package/dist/src/util/camelCasedPropertiesDeep.js +0 -1
  308. package/dist/src/util/formatPrice.d.ts +0 -1
  309. package/dist/src/util/formatPrice.js +0 -11
  310. package/dist/src/util/internal.d.ts +0 -27
  311. package/dist/src/util/internal.js +0 -4
  312. package/dist/src/util/primitive.d.ts +0 -6
  313. package/dist/src/util/primitive.js +0 -2
  314. package/dist/src/util/splitWords.d.ts +0 -55
  315. package/dist/src/util/splitWords.js +0 -2
  316. package/dist/src/util/trim.d.ts +0 -24
  317. package/dist/src/util/trim.js +0 -2
  318. package/dist/src/util/unknownArray.d.ts +0 -25
  319. package/dist/src/util/unknownArray.js +0 -1
@@ -0,0 +1,199 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const require_Text = require('./Text-C04c4Z93.cjs');
3
+ const require_Headline = require('./Headline-L7w3BsBF.cjs');
4
+ const require_ImageWithFallback = require('./ImageWithFallback-P3AjyL2Y.cjs');
5
+ const require_productCardVariants = require('./productCardVariants-Dd-wrJKP.cjs');
6
+ const require_Spinner = require('./Spinner-CfQ85Ajl.cjs');
7
+ let classnames = require("classnames");
8
+ classnames = require_chunk.__toESM(classnames);
9
+ let react_jsx_runtime = require("react/jsx-runtime");
10
+ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
11
+ let react_icons_md = require("react-icons/md");
12
+ react_icons_md = require_chunk.__toESM(react_icons_md);
13
+
14
+ //#region src/logging/logger.ts
15
+ var Logger = class {
16
+ static logInfo(message, ...args) {
17
+ console.info(`INFO: ${message}`, ...args);
18
+ }
19
+ static logDebug(message, ...args) {
20
+ console.debug(`DEBUG: ${message}`, ...args);
21
+ }
22
+ static logError(message, error, ...args) {
23
+ console.error(`ERROR: ${message} error=${error}`, args);
24
+ }
25
+ static logWarn(message, error, ...args) {
26
+ console.warn(`WARN: ${message} error=${error}`, args);
27
+ }
28
+ };
29
+ var logger_default = Logger;
30
+
31
+ //#endregion
32
+ //#region src/util/formatPrice.ts
33
+ const formatPrice = (price, currency = "$") => {
34
+ if (price == null) return "";
35
+ const options = {};
36
+ if (!Number.isInteger(price)) {
37
+ options.minimumFractionDigits = 2;
38
+ options.maximumFractionDigits = 2;
39
+ }
40
+ return `${currency}${price.toLocaleString("en-US", options)}`;
41
+ };
42
+
43
+ //#endregion
44
+ //#region src/components/common/ProductCard/ProductCard.tsx
45
+ const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
46
+ minimumFractionDigits: 1,
47
+ maximumFractionDigits: 1
48
+ }));
49
+ const RatingSummary = ({ stars, reviewCount, className }) => {
50
+ const group = (0, classnames.default)("spiffy-product-card-rating", "spiffy-product-card-text-color", "spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-items-center", "spiffy-tw-gap-1", "spiffy-tw-text-[--spiffy-colors-text-primary]", "spiffy-tw-tracking-[0.8px]");
51
+ const starClassnames = (0, classnames.default)("spiffy-product-card-rating-star-color", "spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-w-[14px]", "spiffy-tw-h-[14px]");
52
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
53
+ className,
54
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
55
+ className: group,
56
+ children: [
57
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_md.MdStar, { className: starClassnames }),
58
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
59
+ variant: "body3",
60
+ children: formatReviews(stars)
61
+ }),
62
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Text.Text, {
63
+ variant: "body3",
64
+ children: [
65
+ "(",
66
+ reviewCount,
67
+ ")"
68
+ ]
69
+ })
70
+ ]
71
+ })
72
+ });
73
+ };
74
+ const PriceSection = ({ originalPrice, salePrice, pricePrefix }) => {
75
+ if (!originalPrice) return null;
76
+ const priceClassName = (0, classnames.default)("spiffy-product-card-price", "spiffy-product-card-text-color", "spiffy-tw-font-regular", "spiffy-tw-flex", "spiffy-tw-flex-wrap", "spiffy-tw-gap-1", "spiffy-tw-text-sm", "spiffy-tw-font-[400]", "spiffy-tw-leading-[100%]", "spiffy-tw-tracking-[0.8px]", "spiffy-tw-text-[--spiffy-colors-text-primary]");
77
+ const showSalePrice = salePrice && originalPrice !== salePrice;
78
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
79
+ className: priceClassName,
80
+ children: [
81
+ pricePrefix && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: pricePrefix }),
82
+ showSalePrice && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, { children: salePrice }),
83
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Text, {
84
+ className: showSalePrice ? "spiffy-tw-line-through" : "",
85
+ children: originalPrice
86
+ })
87
+ ]
88
+ });
89
+ };
90
+ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, url, originalPrice, averageRating, numberReviews, salePrice, variant, hoverVariant, dataTestId, layoutVariant = "normal", zoomOnHover = false, aspectRatio = "none", growWithContainer = false, handleClick }) => {
91
+ const finalVariant = variant ?? productCardConfig?.variant ?? "filled";
92
+ const finalHoverVariant = hoverVariant ?? productCardConfig?.hoverVariant ?? "backgroundDark";
93
+ const finalLayoutVariant = layoutVariant ?? productCardConfig?.layoutVariant ?? "normal";
94
+ const pricePrefix = productCardConfig?.pricePrefix;
95
+ if (productCardConfig == null) {
96
+ logger_default.logError("[ProductCard] productCardConfig is null", void 0, { merchant: merchantShortName });
97
+ return null;
98
+ }
99
+ const layoutClasses = require_productCardVariants.productCardLayoutVariantClasses[finalLayoutVariant];
100
+ const containerClassnames = (0, classnames.default)("spiffy-tw-cursor-pointer", "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-overflow-hidden", {
101
+ "spiffy-tw-h-full": growWithContainer,
102
+ "spiffy-tw-w-full": growWithContainer,
103
+ "spiffy-tw-max-w-full": growWithContainer
104
+ }, !growWithContainer && layoutClasses.container, require_productCardVariants.variantClassMap.get(finalVariant) ?? [], require_productCardVariants.variantHoverClassMap.get(finalHoverVariant) ?? []);
105
+ const verticalContainerVariantClasses = require_productCardVariants.productCardLayoutVariantClasses[layoutVariant].verticalContainer;
106
+ const verticalContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", {
107
+ "spiffy-tw-h-full": growWithContainer,
108
+ "spiffy-tw-w-full": growWithContainer,
109
+ "spiffy-tw-flex-1": growWithContainer
110
+ }, ...!growWithContainer && layoutVariant ? verticalContainerVariantClasses : []);
111
+ const linkClassnames = (0, classnames.default)({
112
+ "spiffy-tw-w-full": true,
113
+ "spiffy-tw-h-full": true,
114
+ "spiffy-tw-overflow-hidden": true,
115
+ "spiffy-tw-select-none": true
116
+ });
117
+ const imageClipContainerClassnames = (0, classnames.default)("spiffy-tw-w-full", "spiffy-tw-overflow-hidden", {
118
+ "spiffy-tw-flex-shrink-0": growWithContainer,
119
+ "spiffy-tw-tw-h-full": !growWithContainer
120
+ }, aspectRatio === "3:4" ? "spiffy-tw-aspect-[3/4]" : "", aspectRatio === "square" ? "spiffy-tw-aspect-square" : "");
121
+ const imageContainerClassnames = (0, classnames.default)(linkClassnames, zoomOnHover ? [
122
+ "spiffy-tw-transition-transform",
123
+ "spiffy-tw-duration-200",
124
+ "spiffy-tw-origin-top",
125
+ "hover:spiffy-tw-scale-105"
126
+ ] : []);
127
+ const contentClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-p-2", "spiffy-tw-pr-2", "spiffy-tw-items-start", "spiffy-tw-justify-end", { "spiffy-tw-flex-grow-0": layoutVariant === "tall" || layoutVariant === "square" });
128
+ const productTitleClassnames = (0, classnames.default)("spiffy-tw-line-clamp-2", "spiffy-tw-overflow-clip", "spiffy-tw-tracking-[0.8px]", "spiffy-tw-whitespace-normal", "spiffy-tw-normal-case", require_productCardVariants.variantTitleColorMap.get(finalVariant) ?? "spiffy-tw-text-[--spiffy-colors-text-primary]", ...layoutClasses.productTitle);
129
+ const priceAndRatingContainerClassnames = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-row", "spiffy-tw-justify-between", "spiffy-tw-items-center", "spiffy-tw-w-full", "spiffy-tw-pt-2", "spiffy-tw-gap-2");
130
+ const imageClassnames = (0, classnames.default)("spiffy-tw-bg-transparent", "spiffy-tw-w-full", "spiffy-tw-h-full", "spiffy-tw-object-cover", "spiffy-tw-object-top", "spiffy-tw-select-none", "spiffy-tw-pointer-events-none");
131
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
132
+ className: containerClassnames,
133
+ "data-testid": dataTestId,
134
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
135
+ href: url,
136
+ onClick: () => handleClick(url || ""),
137
+ target: "_self",
138
+ draggable: false,
139
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
140
+ className: verticalContainerClassnames,
141
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
142
+ className: imageClipContainerClassnames,
143
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
144
+ className: imageContainerClassnames,
145
+ children: imageUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ImageWithFallback.ImageWithFallback, {
146
+ src: imageUrl,
147
+ alt: title,
148
+ fallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Spinner.Spinner, { className: "spiffy-tw-w-6 spiffy-tw-h-6" }),
149
+ imageClassnames
150
+ })
151
+ })
152
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
153
+ className: contentClassnames,
154
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Headline.Headline, {
155
+ variant: "h4",
156
+ className: productTitleClassnames,
157
+ children: title
158
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
159
+ className: priceAndRatingContainerClassnames,
160
+ children: [(originalPrice || salePrice) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PriceSection, {
161
+ originalPrice: formatPrice(originalPrice),
162
+ salePrice: formatPrice(salePrice),
163
+ pricePrefix
164
+ }), averageRating && numberReviews && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RatingSummary, {
165
+ stars: averageRating,
166
+ reviewCount: numberReviews
167
+ })]
168
+ })]
169
+ })]
170
+ })
171
+ })
172
+ });
173
+ };
174
+
175
+ //#endregion
176
+ Object.defineProperty(exports, 'PriceSection', {
177
+ enumerable: true,
178
+ get: function () {
179
+ return PriceSection;
180
+ }
181
+ });
182
+ Object.defineProperty(exports, 'ProductCard', {
183
+ enumerable: true,
184
+ get: function () {
185
+ return ProductCard;
186
+ }
187
+ });
188
+ Object.defineProperty(exports, 'RatingSummary', {
189
+ enumerable: true,
190
+ get: function () {
191
+ return RatingSummary;
192
+ }
193
+ });
194
+ Object.defineProperty(exports, 'formatPrice', {
195
+ enumerable: true,
196
+ get: function () {
197
+ return formatPrice;
198
+ }
199
+ });
@@ -0,0 +1,12 @@
1
+ import { ProductCardLayoutVariant } from "./types-CmjqQWAG.js";
2
+ import { FC } from "react";
3
+
4
+ //#region src/components/common/ProductCard/ProductCardSkeleton.d.ts
5
+ interface ProductCardSkeletonProps {
6
+ layoutVariant: ProductCardLayoutVariant;
7
+ aspectRatio?: '3:4' | 'square' | 'none';
8
+ growWithContainer?: boolean;
9
+ }
10
+ declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
11
+ //#endregion
12
+ export { ProductCardSkeleton };
@@ -0,0 +1,12 @@
1
+ import { ProductCardLayoutVariant } from "./types--SBcFTJX.cjs";
2
+ import { FC } from "react";
3
+
4
+ //#region src/components/common/ProductCard/ProductCardSkeleton.d.ts
5
+ interface ProductCardSkeletonProps {
6
+ layoutVariant: ProductCardLayoutVariant;
7
+ aspectRatio?: '3:4' | 'square' | 'none';
8
+ growWithContainer?: boolean;
9
+ }
10
+ declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
11
+ //#endregion
12
+ export { ProductCardSkeleton };
@@ -0,0 +1,63 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const require_productCardVariants = require('./productCardVariants-Dd-wrJKP.cjs');
3
+ let classnames = require("classnames");
4
+ classnames = require_chunk.__toESM(classnames);
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
7
+
8
+ //#region src/components/common/ProductCard/types.ts
9
+ let ProductCardSkeletonOverrides = /* @__PURE__ */ function(ProductCardSkeletonOverrides$1) {
10
+ ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON_CONTAINER"] = "spiffy-product-card-skeleton-container";
11
+ ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON"] = "spiffy-product-card-skeleton";
12
+ return ProductCardSkeletonOverrides$1;
13
+ }({});
14
+ let AnimatedProductCardOverrides = /* @__PURE__ */ function(AnimatedProductCardOverrides$1) {
15
+ AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_CONTAINER"] = "spiffy-product-card-animated-container";
16
+ AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_IMAGE_CONTAINER"] = "spiffy-product-card-animated";
17
+ return AnimatedProductCardOverrides$1;
18
+ }({});
19
+
20
+ //#endregion
21
+ //#region src/components/common/ProductCard/ProductCardSkeleton.tsx
22
+ const ProductCardSkeleton = ({ layoutVariant, aspectRatio, growWithContainer = false }) => {
23
+ const layoutClasses = require_productCardVariants.productCardLayoutVariantClasses[layoutVariant || "normal"];
24
+ const containerClasses = (0, classnames.default)(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON_CONTAINER, "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-bg-transparent", !growWithContainer ? layoutClasses.container : "");
25
+ const verticalContainerClasses = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", !growWithContainer ? layoutClasses.verticalContainer : "");
26
+ const imageClipContainerClasses = (0, classnames.default)("spiffy-tw-w-full", aspectRatio === "3:4" ? "spiffy-tw-aspect-[3/4]" : "", aspectRatio === "square" ? "spiffy-tw-aspect-square" : "", "spiffy-tw-overflow-hidden");
27
+ const imageSkeletonClasses = (0, classnames.default)("spiffy-tw-bg-[#F4F4F6]", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-w-full", "spiffy-tw-h-full");
28
+ const contentContainerClasses = (0, classnames.default)("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-2", "spiffy-tw-w-full", "spiffy-tw-p-2");
29
+ const textSkeletonClasses = (0, classnames.default)(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON, "spiffy-tw-h-[15px]", "spiffy-tw-block", "spiffy-tw-rounded-sm", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-bg-[#F4F4F6]");
30
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
31
+ className: containerClasses,
32
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
33
+ className: verticalContainerClasses,
34
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
35
+ className: imageClipContainerClasses,
36
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: imageSkeletonClasses })
37
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
38
+ className: contentContainerClasses,
39
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(textSkeletonClasses, "spiffy-tw-w-full") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: (0, classnames.default)(textSkeletonClasses, "spiffy-tw-w-[60%]") })]
40
+ })]
41
+ })
42
+ });
43
+ };
44
+
45
+ //#endregion
46
+ Object.defineProperty(exports, 'AnimatedProductCardOverrides', {
47
+ enumerable: true,
48
+ get: function () {
49
+ return AnimatedProductCardOverrides;
50
+ }
51
+ });
52
+ Object.defineProperty(exports, 'ProductCardSkeleton', {
53
+ enumerable: true,
54
+ get: function () {
55
+ return ProductCardSkeleton;
56
+ }
57
+ });
58
+ Object.defineProperty(exports, 'ProductCardSkeletonOverrides', {
59
+ enumerable: true,
60
+ get: function () {
61
+ return ProductCardSkeletonOverrides;
62
+ }
63
+ });
@@ -0,0 +1,43 @@
1
+ import { productCardLayoutVariantClasses } from "./productCardVariants-C_QIZ-KF.js";
2
+ import classNames from "classnames";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+
5
+ //#region src/components/common/ProductCard/types.ts
6
+ let ProductCardSkeletonOverrides = /* @__PURE__ */ function(ProductCardSkeletonOverrides$1) {
7
+ ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON_CONTAINER"] = "spiffy-product-card-skeleton-container";
8
+ ProductCardSkeletonOverrides$1["PRODUCT_CARD_SKELETON"] = "spiffy-product-card-skeleton";
9
+ return ProductCardSkeletonOverrides$1;
10
+ }({});
11
+ let AnimatedProductCardOverrides = /* @__PURE__ */ function(AnimatedProductCardOverrides$1) {
12
+ AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_CONTAINER"] = "spiffy-product-card-animated-container";
13
+ AnimatedProductCardOverrides$1["PRODUCT_CARD_ANIMATED_IMAGE_CONTAINER"] = "spiffy-product-card-animated";
14
+ return AnimatedProductCardOverrides$1;
15
+ }({});
16
+
17
+ //#endregion
18
+ //#region src/components/common/ProductCard/ProductCardSkeleton.tsx
19
+ const ProductCardSkeleton = ({ layoutVariant, aspectRatio, growWithContainer = false }) => {
20
+ const layoutClasses = productCardLayoutVariantClasses[layoutVariant || "normal"];
21
+ const containerClasses = classNames(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON_CONTAINER, "spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-inherit", "spiffy-tw-bg-transparent", !growWithContainer ? layoutClasses.container : "");
22
+ const verticalContainerClasses = classNames("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-overflow-hidden", "spiffy-tw-gap-inherit", !growWithContainer ? layoutClasses.verticalContainer : "");
23
+ const imageClipContainerClasses = classNames("spiffy-tw-w-full", aspectRatio === "3:4" ? "spiffy-tw-aspect-[3/4]" : "", aspectRatio === "square" ? "spiffy-tw-aspect-square" : "", "spiffy-tw-overflow-hidden");
24
+ const imageSkeletonClasses = classNames("spiffy-tw-bg-[#F4F4F6]", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-w-full", "spiffy-tw-h-full");
25
+ const contentContainerClasses = classNames("spiffy-tw-flex", "spiffy-tw-flex-col", "spiffy-tw-gap-2", "spiffy-tw-w-full", "spiffy-tw-p-2");
26
+ const textSkeletonClasses = classNames(ProductCardSkeletonOverrides.PRODUCT_CARD_SKELETON, "spiffy-tw-h-[15px]", "spiffy-tw-block", "spiffy-tw-rounded-sm", "spiffy-tw-animate-pulse", "spiffy-tw-opacity-70", "spiffy-tw-bg-[#F4F4F6]");
27
+ return /* @__PURE__ */ jsx("div", {
28
+ className: containerClasses,
29
+ children: /* @__PURE__ */ jsxs("div", {
30
+ className: verticalContainerClasses,
31
+ children: [/* @__PURE__ */ jsx("div", {
32
+ className: imageClipContainerClasses,
33
+ children: /* @__PURE__ */ jsx("div", { className: imageSkeletonClasses })
34
+ }), /* @__PURE__ */ jsxs("div", {
35
+ className: contentContainerClasses,
36
+ children: [/* @__PURE__ */ jsx("div", { className: classNames(textSkeletonClasses, "spiffy-tw-w-full") }), /* @__PURE__ */ jsx("div", { className: classNames(textSkeletonClasses, "spiffy-tw-w-[60%]") })]
37
+ })]
38
+ })
39
+ });
40
+ };
41
+
42
+ //#endregion
43
+ export { AnimatedProductCardOverrides, ProductCardSkeleton, ProductCardSkeletonOverrides };
@@ -0,0 +1,69 @@
1
+ import { ProductCard } from "./ProductCard-CLLIICuS.js";
2
+ import { productGridVariantClasses } from "./productGridVariants-BNX4YlRK.js";
3
+ import classNames from "classnames";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/config/chatElementDisplayLocation.ts
7
+ let ChatElementDisplayLocation = /* @__PURE__ */ function(ChatElementDisplayLocation$1) {
8
+ ChatElementDisplayLocation$1["IN_CHAT"] = "in_chat";
9
+ ChatElementDisplayLocation$1["CHAT_PREVIEW"] = "chat_preview";
10
+ ChatElementDisplayLocation$1["FLOATING_BUTTON"] = "floating_button";
11
+ ChatElementDisplayLocation$1["HELP_ME_CHOOSE"] = "help_me_choose";
12
+ ChatElementDisplayLocation$1["PLP_IMAGE_BANNER"] = "plp_image_banner";
13
+ ChatElementDisplayLocation$1["TOP_REVIEWS_SNIPPET"] = "top_reviews_snippet";
14
+ ChatElementDisplayLocation$1["BOTTOM_REVIEWS_SNIPPET"] = "bottom_reviews_snippet";
15
+ ChatElementDisplayLocation$1["BLOCK_BACK_BUTTON"] = "block_back_button";
16
+ ChatElementDisplayLocation$1["SWITCH_TO_AGENT"] = "switch_to_agent";
17
+ ChatElementDisplayLocation$1["CONVERSATIONAL_SEARCH"] = "conversational_search";
18
+ ChatElementDisplayLocation$1["GLOBAL_SEARCH_ENTRYPOINT"] = "global_search_entrypoint";
19
+ ChatElementDisplayLocation$1["SEARCH_NAV_ENTRYPOINT"] = "search_nav_entrypoint";
20
+ ChatElementDisplayLocation$1["SEARCH_PROMPT"] = "search_prompt";
21
+ ChatElementDisplayLocation$1["SEARCH_PROMPT_BUTTON"] = "search_prompt_button";
22
+ ChatElementDisplayLocation$1["PRODUCT_GRID"] = "product_grid";
23
+ ChatElementDisplayLocation$1["UNSPECIFIED"] = "unspecified";
24
+ ChatElementDisplayLocation$1["FILTER_MODAL"] = "filter_modal";
25
+ ChatElementDisplayLocation$1["PROMPT_CARD"] = "prompt_card";
26
+ ChatElementDisplayLocation$1["WINDOW_API_CALL"] = "window_api_call";
27
+ return ChatElementDisplayLocation$1;
28
+ }({});
29
+
30
+ //#endregion
31
+ //#region src/components/common/ProductGrid/ProductGrid.tsx
32
+ const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, searchResponseId, cardsGrowWithContainer = true, handleClick }) => {
33
+ const { productCardVariant, productCardHoverVariant, productCardLayoutVariant, productCardImageAspectRatio, zoomOnHover } = productGridVariantClasses[productGridVariant];
34
+ const cardContainerClasses = classNames({
35
+ "spiffy-tw-w-full": cardsGrowWithContainer,
36
+ "spiffy-tw-h-full": cardsGrowWithContainer
37
+ });
38
+ return /* @__PURE__ */ jsx("div", {
39
+ className: productGridClasses,
40
+ children: productList.map((product, index) => /* @__PURE__ */ jsx("div", {
41
+ className: cardContainerClasses,
42
+ children: /* @__PURE__ */ jsx(ProductCard, {
43
+ productCardConfig,
44
+ merchantShortName,
45
+ imageUrl: product.imageUrl,
46
+ searchResponseId,
47
+ productResponseId: product.responseId,
48
+ title: product.title,
49
+ url: product.url,
50
+ originalPrice: product.originalPrice,
51
+ salePrice: product.salePrice,
52
+ averageRating: product.averageRating,
53
+ numberReviews: product.numberReviews,
54
+ cardDisplayLocation: ChatElementDisplayLocation.PRODUCT_GRID,
55
+ layoutVariant: productCardLayoutVariant,
56
+ variant: productCardVariant,
57
+ hoverVariant: productCardHoverVariant,
58
+ zoomOnHover,
59
+ aspectRatio: productCardImageAspectRatio,
60
+ clickPosition: index,
61
+ growWithContainer: cardsGrowWithContainer,
62
+ handleClick
63
+ }, product.id)
64
+ }, product.id))
65
+ });
66
+ };
67
+
68
+ //#endregion
69
+ export { ChatElementDisplayLocation, ProductGrid };
@@ -0,0 +1,83 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const require_ProductCard = require('./ProductCard-DSmiLLCO.cjs');
3
+ const require_productGridVariants = require('./productGridVariants-CsNV0ACt.cjs');
4
+ let classnames = require("classnames");
5
+ classnames = require_chunk.__toESM(classnames);
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
8
+
9
+ //#region src/config/chatElementDisplayLocation.ts
10
+ let ChatElementDisplayLocation = /* @__PURE__ */ function(ChatElementDisplayLocation$1) {
11
+ ChatElementDisplayLocation$1["IN_CHAT"] = "in_chat";
12
+ ChatElementDisplayLocation$1["CHAT_PREVIEW"] = "chat_preview";
13
+ ChatElementDisplayLocation$1["FLOATING_BUTTON"] = "floating_button";
14
+ ChatElementDisplayLocation$1["HELP_ME_CHOOSE"] = "help_me_choose";
15
+ ChatElementDisplayLocation$1["PLP_IMAGE_BANNER"] = "plp_image_banner";
16
+ ChatElementDisplayLocation$1["TOP_REVIEWS_SNIPPET"] = "top_reviews_snippet";
17
+ ChatElementDisplayLocation$1["BOTTOM_REVIEWS_SNIPPET"] = "bottom_reviews_snippet";
18
+ ChatElementDisplayLocation$1["BLOCK_BACK_BUTTON"] = "block_back_button";
19
+ ChatElementDisplayLocation$1["SWITCH_TO_AGENT"] = "switch_to_agent";
20
+ ChatElementDisplayLocation$1["CONVERSATIONAL_SEARCH"] = "conversational_search";
21
+ ChatElementDisplayLocation$1["GLOBAL_SEARCH_ENTRYPOINT"] = "global_search_entrypoint";
22
+ ChatElementDisplayLocation$1["SEARCH_NAV_ENTRYPOINT"] = "search_nav_entrypoint";
23
+ ChatElementDisplayLocation$1["SEARCH_PROMPT"] = "search_prompt";
24
+ ChatElementDisplayLocation$1["SEARCH_PROMPT_BUTTON"] = "search_prompt_button";
25
+ ChatElementDisplayLocation$1["PRODUCT_GRID"] = "product_grid";
26
+ ChatElementDisplayLocation$1["UNSPECIFIED"] = "unspecified";
27
+ ChatElementDisplayLocation$1["FILTER_MODAL"] = "filter_modal";
28
+ ChatElementDisplayLocation$1["PROMPT_CARD"] = "prompt_card";
29
+ ChatElementDisplayLocation$1["WINDOW_API_CALL"] = "window_api_call";
30
+ return ChatElementDisplayLocation$1;
31
+ }({});
32
+
33
+ //#endregion
34
+ //#region src/components/common/ProductGrid/ProductGrid.tsx
35
+ const ProductGrid = ({ productList, productGridVariant, productGridClasses, productCardConfig, merchantShortName, searchResponseId, cardsGrowWithContainer = true, handleClick }) => {
36
+ const { productCardVariant, productCardHoverVariant, productCardLayoutVariant, productCardImageAspectRatio, zoomOnHover } = require_productGridVariants.productGridVariantClasses[productGridVariant];
37
+ const cardContainerClasses = (0, classnames.default)({
38
+ "spiffy-tw-w-full": cardsGrowWithContainer,
39
+ "spiffy-tw-h-full": cardsGrowWithContainer
40
+ });
41
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
42
+ className: productGridClasses,
43
+ children: productList.map((product, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
44
+ className: cardContainerClasses,
45
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductCard.ProductCard, {
46
+ productCardConfig,
47
+ merchantShortName,
48
+ imageUrl: product.imageUrl,
49
+ searchResponseId,
50
+ productResponseId: product.responseId,
51
+ title: product.title,
52
+ url: product.url,
53
+ originalPrice: product.originalPrice,
54
+ salePrice: product.salePrice,
55
+ averageRating: product.averageRating,
56
+ numberReviews: product.numberReviews,
57
+ cardDisplayLocation: ChatElementDisplayLocation.PRODUCT_GRID,
58
+ layoutVariant: productCardLayoutVariant,
59
+ variant: productCardVariant,
60
+ hoverVariant: productCardHoverVariant,
61
+ zoomOnHover,
62
+ aspectRatio: productCardImageAspectRatio,
63
+ clickPosition: index,
64
+ growWithContainer: cardsGrowWithContainer,
65
+ handleClick
66
+ }, product.id)
67
+ }, product.id))
68
+ });
69
+ };
70
+
71
+ //#endregion
72
+ Object.defineProperty(exports, 'ChatElementDisplayLocation', {
73
+ enumerable: true,
74
+ get: function () {
75
+ return ChatElementDisplayLocation;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, 'ProductGrid', {
79
+ enumerable: true,
80
+ get: function () {
81
+ return ProductGrid;
82
+ }
83
+ });
@@ -0,0 +1,26 @@
1
+ import { ProductCardConfig, ProductGridVariant, SearchResponseProduct } from "./types-CmjqQWAG.js";
2
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+
4
+ //#region src/components/common/ProductGrid/ProductGrid.d.ts
5
+ interface ProductGridProps {
6
+ productList: SearchResponseProduct[];
7
+ productGridVariant: ProductGridVariant;
8
+ productGridClasses: string;
9
+ productCardConfig?: ProductCardConfig;
10
+ merchantShortName: string;
11
+ searchResponseId: string;
12
+ cardsGrowWithContainer?: boolean;
13
+ handleClick: (clickedUrl: string) => void;
14
+ }
15
+ declare const ProductGrid: ({
16
+ productList,
17
+ productGridVariant,
18
+ productGridClasses,
19
+ productCardConfig,
20
+ merchantShortName,
21
+ searchResponseId,
22
+ cardsGrowWithContainer,
23
+ handleClick
24
+ }: ProductGridProps) => react_jsx_runtime3.JSX.Element;
25
+ //#endregion
26
+ export { ProductGrid };
@@ -0,0 +1,26 @@
1
+ import { ProductCardConfig, ProductGridVariant, SearchResponseProduct } from "./types--SBcFTJX.cjs";
2
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
3
+
4
+ //#region src/components/common/ProductGrid/ProductGrid.d.ts
5
+ interface ProductGridProps {
6
+ productList: SearchResponseProduct[];
7
+ productGridVariant: ProductGridVariant;
8
+ productGridClasses: string;
9
+ productCardConfig?: ProductCardConfig;
10
+ merchantShortName: string;
11
+ searchResponseId: string;
12
+ cardsGrowWithContainer?: boolean;
13
+ handleClick: (clickedUrl: string) => void;
14
+ }
15
+ declare const ProductGrid: ({
16
+ productList,
17
+ productGridVariant,
18
+ productGridClasses,
19
+ productCardConfig,
20
+ merchantShortName,
21
+ searchResponseId,
22
+ cardsGrowWithContainer,
23
+ handleClick
24
+ }: ProductGridProps) => react_jsx_runtime13.JSX.Element;
25
+ //#endregion
26
+ export { ProductGrid };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+
3
+ //#region src/components/search/SearchInputAutocomplete/SearchAutocomplete.d.ts
4
+ interface GlobalSearchAutocompleteProps {
5
+ id: string;
6
+ results: string[];
7
+ focusedIndex: number;
8
+ onSuggestionSelect: (suggestion: string, rankPosition: number) => void;
9
+ iconColor?: string;
10
+ }
11
+ declare const SearchAutocomplete: React.FC<GlobalSearchAutocompleteProps>;
12
+ //#endregion
13
+ export { SearchAutocomplete };
@@ -0,0 +1,62 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ let classnames = require("classnames");
3
+ classnames = require_chunk.__toESM(classnames);
4
+ let react = require("react");
5
+ react = require_chunk.__toESM(react);
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
8
+ let framer_motion = require("framer-motion");
9
+ framer_motion = require_chunk.__toESM(framer_motion);
10
+ let __envive_ai_react_icons_src_OutlinedStar = require("@envive-ai/react-icons/src/OutlinedStar");
11
+ __envive_ai_react_icons_src_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_src_OutlinedStar);
12
+
13
+ //#region src/components/search/SearchInputAutocomplete/SearchAutocomplete.tsx
14
+ const SearchAutocomplete = ({ id, results, focusedIndex, onSuggestionSelect, iconColor }) => {
15
+ if (results.length === 0) return null;
16
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
17
+ className: "spiffy-tw-h-full",
18
+ initial: {
19
+ opacity: 0,
20
+ y: -10
21
+ },
22
+ animate: {
23
+ opacity: 1,
24
+ y: 0
25
+ },
26
+ exit: {
27
+ opacity: 0,
28
+ y: -10
29
+ },
30
+ transition: { duration: .2 },
31
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
32
+ id,
33
+ role: "listbox",
34
+ className: "spiffy-tw-mt-4 spiffy-tw-space-y-2",
35
+ children: results.map((result, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
36
+ id: `option-${index}`,
37
+ role: "option",
38
+ "aria-selected": index === focusedIndex,
39
+ className: (0, classnames.default)("spiffy-tw-flex spiffy-tw-items-center spiffy-tw-cursor-pointer spiffy-tw-py-1", { "spiffy-tw-bg-neutral-200": index === focusedIndex }, "hover:spiffy-tw-bg-neutral-100"),
40
+ onClick: () => onSuggestionSelect(result, index),
41
+ onKeyDown: (event) => {
42
+ if (event.key === "Enter" || event.keyCode === 13) onSuggestionSelect(result, index);
43
+ },
44
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__envive_ai_react_icons_src_OutlinedStar.default, {
45
+ className: "spiffy-tw-w-[16px] spiffy-tw-h-[16px] spiffy-tw-mr-2",
46
+ fill: iconColor
47
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
48
+ className: "spiffy-tw-font-bold",
49
+ children: result
50
+ })]
51
+ }, index))
52
+ })
53
+ });
54
+ };
55
+
56
+ //#endregion
57
+ Object.defineProperty(exports, 'SearchAutocomplete', {
58
+ enumerable: true,
59
+ get: function () {
60
+ return SearchAutocomplete;
61
+ }
62
+ });