@envive-ai/react-toolkit 0.2.10 → 0.2.12

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 (256) hide show
  1. package/dist/{Accordion-RpyCFs2a.cjs → Accordion-B0TzPN3m.cjs} +2 -5
  2. package/dist/{Accordion-DxtXK__u.js → Accordion-D8Vm8J1y.js} +3 -3
  3. package/dist/{AnimatedChevron-Q96FneFy.cjs → AnimatedChevron-9xf90bpP.cjs} +0 -2
  4. package/dist/{AnimatedChevron-Bik7GMSe.js → AnimatedChevron-DghLnmlM.js} +1 -1
  5. package/dist/{ButtonBase-AU23oGQr.cjs → ButtonBase-BMEAmPnS.cjs} +1 -3
  6. package/dist/{ButtonBase-6wjsZ1tU.js → ButtonBase-CT397aT3.js} +2 -2
  7. package/dist/{DynamicFiltersScrollbar-CJG4K0PH.js → DynamicFiltersScrollbar-CibstqNd.js} +4 -6
  8. package/dist/{DynamicFiltersScrollbar-DgS9gpdg.cjs → DynamicFiltersScrollbar-DqIydLJu.cjs} +3 -6
  9. package/dist/{ImageWithFallback-Bx17VPmQ.cjs → ImageWithFallback-CuPe6XF6.cjs} +0 -1
  10. package/dist/{ImageWithFallback-c-DTsBH-.js → ImageWithFallback-_QZT0EKI.js} +1 -1
  11. package/dist/{ModalSheet-CcthFeMD.cjs → ModalSheet-Be7-bkXK.cjs} +10 -15
  12. package/dist/{ModalSheet-BSj_g9JF.js → ModalSheet-DVrY7Mw0.js} +11 -12
  13. package/dist/{ProductCard-C-8ie9Lf.cjs → ProductCard-BeY85PBf.cjs} +8 -25
  14. package/dist/{ProductCard-n-PAth5m.js → ProductCard-BoyYu6mI.js} +7 -20
  15. package/dist/{ProductGrid-Ba2tUgmC.cjs → ProductGrid-CxKK7w_X.cjs} +1 -2
  16. package/dist/{ProductGrid-xXkWzvR2.js → ProductGrid-DmtSXfyE.js} +2 -2
  17. package/dist/{RadioButton-gnFz0TWN.js → RadioButton-Bm0qK3bX.js} +2 -2
  18. package/dist/{RadioButton-BBc1b5vX.cjs → RadioButton-Dcdj8pNp.cjs} +1 -3
  19. package/dist/{RadioButtonGroup-DxOtcIdO.cjs → RadioButtonGroup-BnnMx8sE.cjs} +1 -2
  20. package/dist/{RadioButtonGroup-DLLleeDX.js → RadioButtonGroup-hme7gSiQ.js} +2 -2
  21. package/dist/RecommendedProducts-C2eNVrLo.cjs +56 -0
  22. package/dist/RecommendedProducts-LalI8aVC.js +49 -0
  23. package/dist/{SearchAutocomplete-DAEDHeqr.cjs → SearchAutocomplete-A3HXkHwK.cjs} +3 -6
  24. package/dist/{SearchAutocomplete-B690CIZB.js → SearchAutocomplete-Rza3A-gs.js} +4 -5
  25. package/dist/{SearchFilter-Bi0zqO3-.js → SearchFilter-CYY5sNXV.js} +39 -43
  26. package/dist/{SearchFilter-ylBowO7T.cjs → SearchFilter-DxrQOLx0.cjs} +38 -44
  27. package/dist/{SearchInput-Yy6NIiSk.cjs → SearchInput-3ppsm2Ke.cjs} +2 -3
  28. package/dist/{SearchInput-Q3knp7tj.js → SearchInput-DE9Iz7A8.js} +3 -3
  29. package/dist/{SearchInputForm/index.cjs → SearchInputForm-CZz62rOX.cjs} +9 -9
  30. package/dist/{SearchInputForm/index.js → SearchInputForm-DrI4WHDt.js} +3 -6
  31. package/dist/SearchResultsFilterButton-BedTofz5.cjs +29 -0
  32. package/dist/SearchResultsFilterButton-CV11UTGi.js +22 -0
  33. package/dist/{SearchResultsFilterSidebar/index.js → SearchResultsFilterSidebar-Bvpk7Uoo.js} +4 -13
  34. package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-Dgz98oyD.cjs} +10 -17
  35. package/dist/{SearchResultsStates-BjFB9Qo9.cjs → SearchResultsStates-D37wFr9h.cjs} +42 -16
  36. package/dist/{SearchResultsStates-D8Uz39yp.js → SearchResultsStates-DrGtw0pM.js} +43 -15
  37. package/dist/{SparkleAnimation-CvGlWUqv.cjs → SparkleAnimation-B5A_NCuy.cjs} +1 -4
  38. package/dist/{SparkleAnimation-paLhSu5E.js → SparkleAnimation-BSI_34HX.js} +2 -2
  39. package/dist/{Spinner-BqTt55uu.js → Spinner-CDDFWySo.js} +1 -1
  40. package/dist/{Spinner-DjK8ts9E.cjs → Spinner-FQpy5bGu.cjs} +0 -1
  41. package/dist/{TextInput-B70n36-J.cjs → TextInput-Do5-j1V_.cjs} +3 -5
  42. package/dist/{TextInput-y6nNxaTI.js → TextInput-PtrUXoZo.js} +4 -5
  43. package/dist/{ToggleButton-Br6MgjiG.js → ToggleButton-BTz_zIdc.js} +2 -2
  44. package/dist/{ToggleButton-CJ74eu-N.cjs → ToggleButton-CmxTz-ou.cjs} +1 -2
  45. package/dist/{Typography-D3vDkBMS.js → Typography-xehJH05l.js} +1 -1
  46. package/dist/{colorsConfig-DZ-GSPWy.js → colorsConfig-BjdoRtRK.js} +1 -1
  47. package/dist/{Accordion/index.d.ts → components/Accordion/index-BPofgdcd.d.cts} +2 -2
  48. package/dist/{Accordion/index.d.cts → components/Accordion/index-DBEaF9x5.d.ts} +2 -2
  49. package/dist/components/Accordion/index.cjs +4 -0
  50. package/dist/components/Accordion/index.js +4 -0
  51. package/dist/{AnimatedChevron/index.d.cts → components/AnimatedChevron/index-Bvff3AGS.d.ts} +2 -2
  52. package/dist/{AnimatedChevron/index.d.ts → components/AnimatedChevron/index-BwQ6tJL8.d.cts} +2 -2
  53. package/dist/components/AnimatedChevron/index.cjs +3 -0
  54. package/dist/components/AnimatedChevron/index.js +3 -0
  55. package/dist/{AppliedFiltersScrollbar/index.d.ts → components/AppliedFiltersScrollbar/index-BKNoroAl.d.ts} +2 -2
  56. package/dist/{AppliedFiltersScrollbar/index.d.cts → components/AppliedFiltersScrollbar/index-DADY550R.d.cts} +2 -2
  57. package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.cjs +3 -5
  58. package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.js +2 -3
  59. package/dist/{ButtonBase/index.d.ts → components/ButtonBase/index-BCw2WQ-2.d.ts} +2 -2
  60. package/dist/{ButtonBase/index.d.cts → components/ButtonBase/index-pBSmWoqg.d.cts} +2 -2
  61. package/dist/components/ButtonBase/index.cjs +6 -0
  62. package/dist/components/ButtonBase/index.js +5 -0
  63. package/dist/{DynamicFiltersScrollbar/index.d.ts → components/DynamicFiltersScrollbar/index-BvAT64cX.d.ts} +2 -2
  64. package/dist/{DynamicFiltersScrollbar/index.d.cts → components/DynamicFiltersScrollbar/index-X--ALCSa.d.cts} +2 -2
  65. package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.cjs +3 -5
  66. package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.js +2 -3
  67. package/dist/{FilterScrollbar/index.d.ts → components/FilterScrollbar/index-DgxXE1ff.d.cts} +3 -3
  68. package/dist/{FilterScrollbar/index.d.cts → components/FilterScrollbar/index-xlg1Q06Q.d.ts} +3 -3
  69. package/dist/components/FilterScrollbar/index.cjs +5 -0
  70. package/dist/components/FilterScrollbar/index.js +4 -0
  71. package/dist/{ImageWithFallback/index.d.cts → components/ImageWithFallback/index-C8Fqb7AQ.d.cts} +2 -2
  72. package/dist/{ImageWithFallback/index.d.ts → components/ImageWithFallback/index-yxDWrUCQ.d.ts} +2 -2
  73. package/dist/components/ImageWithFallback/index.cjs +3 -0
  74. package/dist/components/ImageWithFallback/index.js +3 -0
  75. package/dist/{ModalSheet/index.d.cts → components/ModalSheet/index-Cp_h5dbe.d.ts} +2 -2
  76. package/dist/{ModalSheet/index.d.ts → components/ModalSheet/index-Dnt-aUte.d.cts} +2 -2
  77. package/dist/components/ModalSheet/index.cjs +4 -0
  78. package/dist/components/ModalSheet/index.js +4 -0
  79. package/dist/components/ProductCard/index-BF8pv46P.d.ts +2 -0
  80. package/dist/components/ProductCard/index-C6TLdXjC.d.cts +2 -0
  81. package/dist/{ProductCard → components/ProductCard}/index.cjs +5 -4
  82. package/dist/components/ProductCard/index.js +7 -0
  83. package/dist/{ProductGrid/index.d.cts → components/ProductGrid/index-B1eVXjB4.d.cts} +3 -3
  84. package/dist/{ProductGrid/index.d.ts → components/ProductGrid/index-CyDy1V6o.d.ts} +3 -3
  85. package/dist/components/ProductGrid/index.cjs +9 -0
  86. package/dist/components/ProductGrid/index.js +8 -0
  87. package/dist/{RadioButton/index.d.cts → components/RadioButton/index-BHl3dM6k.d.cts} +2 -2
  88. package/dist/{RadioButton/index.d.ts → components/RadioButton/index-BZrcz8-J.d.ts} +2 -2
  89. package/dist/components/RadioButton/index.cjs +4 -0
  90. package/dist/components/RadioButton/index.js +4 -0
  91. package/dist/{RadioButtonGroup/index.d.cts → components/RadioButtonGroup/index-DdyMuFCX.d.ts} +2 -2
  92. package/dist/{RadioButtonGroup/index.d.ts → components/RadioButtonGroup/index-DtdjcXo-.d.cts} +2 -2
  93. package/dist/components/RadioButtonGroup/index.cjs +6 -0
  94. package/dist/components/RadioButtonGroup/index.js +5 -0
  95. package/dist/components/RecommendedProducts/index-BFM83Qu3.d.cts +15 -0
  96. package/dist/components/RecommendedProducts/index-DlbCfGof.d.ts +15 -0
  97. package/dist/components/RecommendedProducts/index.cjs +12 -0
  98. package/dist/components/RecommendedProducts/index.js +12 -0
  99. package/dist/{SearchAutocomplete/index.d.ts → components/SearchAutocomplete/index-Br_POGOz.d.ts} +2 -2
  100. package/dist/{SearchAutocomplete/index.d.cts → components/SearchAutocomplete/index-Ce9gkkbU.d.cts} +2 -2
  101. package/dist/components/SearchAutocomplete/index.cjs +4 -0
  102. package/dist/components/SearchAutocomplete/index.js +4 -0
  103. package/dist/{SearchFilter/index.d.cts → components/SearchFilter/index-DAR4UKSA.d.cts} +5 -5
  104. package/dist/{SearchFilter/index.d.ts → components/SearchFilter/index-VygXUBM9.d.ts} +5 -5
  105. package/dist/components/SearchFilter/index.cjs +17 -0
  106. package/dist/components/SearchFilter/index.js +12 -0
  107. package/dist/{SearchInput/index.d.ts → components/SearchInput/index-UY0W77Y0.d.ts} +2 -2
  108. package/dist/{SearchInput/index.d.cts → components/SearchInput/index-rFDdhvqg.d.cts} +2 -2
  109. package/dist/components/SearchInput/index.cjs +7 -0
  110. package/dist/components/SearchInput/index.js +6 -0
  111. package/dist/{SearchInputForm/index.d.cts → components/SearchInputForm/index-_sR_KugL.d.ts} +3 -3
  112. package/dist/{SearchInputForm/index.d.ts → components/SearchInputForm/index-dlLBivQA.d.cts} +1 -1
  113. package/dist/components/SearchInputForm/index.cjs +8 -0
  114. package/dist/components/SearchInputForm/index.js +8 -0
  115. package/dist/{SearchResultsContent/index.d.cts → components/SearchResultsContent/index-B_6-7-t-.d.ts} +18 -9
  116. package/dist/{SearchResultsContent/index.d.ts → components/SearchResultsContent/index-CayvNVCK.d.cts} +18 -9
  117. package/dist/components/SearchResultsContent/index.cjs +60 -0
  118. package/dist/components/SearchResultsContent/index.js +58 -0
  119. package/dist/components/SearchResultsFilterButton/index-D_u8PzTc.d.cts +13 -0
  120. package/dist/components/SearchResultsFilterButton/index-DuTGqa7-.d.ts +13 -0
  121. package/dist/components/SearchResultsFilterButton/index.cjs +9 -0
  122. package/dist/components/SearchResultsFilterButton/index.js +9 -0
  123. package/dist/components/SearchResultsFilterModal/index-BNZEJiXR.d.cts +27 -0
  124. package/dist/components/SearchResultsFilterModal/index-CXBAA2-F.d.ts +27 -0
  125. package/dist/components/SearchResultsFilterModal/index.cjs +47 -0
  126. package/dist/components/SearchResultsFilterModal/index.js +46 -0
  127. package/dist/components/SearchResultsFilterSidebar/index-BDcl27l4.d.ts +2 -0
  128. package/dist/components/SearchResultsFilterSidebar/index-DgPB1knO.d.cts +2 -0
  129. package/dist/components/SearchResultsFilterSidebar/index.cjs +16 -0
  130. package/dist/components/SearchResultsFilterSidebar/index.js +15 -0
  131. package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-CjYl1v-v.d.cts} +19 -10
  132. package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-DJaUfKjE.d.ts} +19 -10
  133. package/dist/components/SearchResultsStates/index.cjs +16 -0
  134. package/dist/components/SearchResultsStates/index.js +14 -0
  135. package/dist/components/SearchResultsToolbar/index-CVstdvRQ.d.cts +49 -0
  136. package/dist/components/SearchResultsToolbar/index-tAB6lEUm.d.ts +49 -0
  137. package/dist/components/SearchResultsToolbar/index.cjs +66 -0
  138. package/dist/components/SearchResultsToolbar/index.js +63 -0
  139. package/dist/{SparkleAnimation/index.d.ts → components/SparkleAnimation/index-BQOC3G_6.d.cts} +2 -2
  140. package/dist/{SparkleAnimation/index.d.cts → components/SparkleAnimation/index-DjRK3Dys.d.ts} +2 -2
  141. package/dist/{SparkleAnimation → components/SparkleAnimation}/index.cjs +1 -1
  142. package/dist/components/SparkleAnimation/index.js +3 -0
  143. package/dist/{Spinner/index.d.cts → components/Spinner/index-C0pGovHC.d.cts} +2 -2
  144. package/dist/{Spinner/index.d.ts → components/Spinner/index-CIr1izou.d.ts} +2 -2
  145. package/dist/components/Spinner/index.cjs +3 -0
  146. package/dist/components/Spinner/index.js +3 -0
  147. package/dist/{SuggestionButton/index.d.cts → components/SuggestionButton/index-B4J70IPS.d.cts} +2 -2
  148. package/dist/{SuggestionButton/index.d.ts → components/SuggestionButton/index-D6_y1hTj.d.ts} +2 -2
  149. package/dist/{SuggestionButton → components/SuggestionButton}/index.cjs +5 -7
  150. package/dist/{SuggestionButton → components/SuggestionButton}/index.js +4 -5
  151. package/dist/{TextInput/index.d.cts → components/TextInput/index-CRJMRe-b.d.cts} +2 -2
  152. package/dist/{TextInput/index.d.ts → components/TextInput/index-CkQtHiR9.d.ts} +2 -2
  153. package/dist/components/TextInput/index.cjs +4 -0
  154. package/dist/components/TextInput/index.js +4 -0
  155. package/dist/{ToggleButton/index.d.cts → components/ToggleButton/index-Dc-cs_tK.d.ts} +2 -2
  156. package/dist/components/ToggleButton/index.cjs +4 -0
  157. package/dist/components/ToggleButton/index.js +4 -0
  158. package/dist/components/Typography/index-DE1Nhjra.d.ts +3 -0
  159. package/dist/components/Typography/index-DzSBreyM.d.cts +3 -0
  160. package/dist/{Typography → components/Typography}/index.cjs +1 -1
  161. package/dist/components/Typography/index.js +3 -0
  162. package/dist/formatPrice-CyfkjZ3R.cjs +19 -0
  163. package/dist/formatPrice-DexQu2aZ.js +13 -0
  164. package/dist/{index-DmvaMYbj.d.ts → index-8cIrhPDk.d.ts} +3 -3
  165. package/dist/{index-Dfe_lkL2.d.cts → index-BKYA7uMB.d.cts} +1 -1
  166. package/dist/{index-Qtr26aUO.d.ts → index-Bw6lDfEp.d.cts} +2 -2
  167. package/dist/{index-BqARXvZ6.d.cts → index-CqfgJHj8.d.cts} +5 -5
  168. package/dist/{index-BMHF0IWd.d.cts → index-Cr8VXccr.d.ts} +2 -2
  169. package/dist/{index-BB4Qbpmg.d.ts → index-Cz6qxTZG.d.ts} +5 -5
  170. package/dist/{searchFilterSidebarVariants-DzCf_sfh.cjs → searchFilterSidebarVariants-C61Byr1S.cjs} +1 -1
  171. package/dist/{searchFilterSidebarVariants-f9PS9fl6.js → searchFilterSidebarVariants-DcwlBfvY.js} +2 -2
  172. package/dist/{types-BhGjnuWx.d.cts → types--eyQnaEA.d.cts} +1 -1
  173. package/dist/{types-DlqhqT_S.d.ts → types-CQpdBL3M.d.ts} +1 -1
  174. package/dist/{typographyVariantClasses-B6wiawat.d.ts → typographyVariantClasses-CoRhazCU.d.cts} +1 -1
  175. package/dist/{typographyVariantClasses-DTSltxPN.d.cts → typographyVariantClasses-CrT5OfVw.d.ts} +1 -1
  176. package/dist/util/index-C2ueYGXh.d.ts +21 -0
  177. package/dist/util/index-DUzbpjPa.d.cts +21 -0
  178. package/dist/util/index.cjs +80 -0
  179. package/dist/util/index.js +76 -0
  180. package/package.json +79 -52
  181. package/src/components/RecommendedProducts/RecommendedProducts.tsx +97 -0
  182. package/src/components/RecommendedProducts/index.ts +3 -0
  183. package/src/components/SearchResultsContent/SearchResultsContent.tsx +68 -35
  184. package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +30 -0
  185. package/src/components/SearchResultsFilterButton/index.ts +3 -0
  186. package/src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx +61 -0
  187. package/src/components/SearchResultsFilterModal/index.ts +3 -0
  188. package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +43 -11
  189. package/src/components/SearchResultsStates/SearchResultsGrid.tsx +5 -1
  190. package/src/components/SearchResultsToolbar/SearchResultsToolbar.tsx +111 -0
  191. package/src/components/SearchResultsToolbar/index.ts +3 -0
  192. package/src/stories/AppliedFiltersScrollbar.stories.tsx +42 -0
  193. package/src/stories/ButtonBase.stories.tsx +54 -0
  194. package/src/stories/DynamicFiltersScrollbar.stories.tsx +42 -0
  195. package/src/stories/NoSearchResultsFound.stories.tsx +30 -0
  196. package/src/stories/ProductCard.stories.tsx +78 -0
  197. package/src/stories/ProductCardSkeleton.stories.tsx +48 -0
  198. package/src/stories/ProductGrid.stories.tsx +82 -0
  199. package/src/stories/SearchInputForm.stories.tsx +39 -0
  200. package/src/stories/SearchResultsFilter.stories.tsx +56 -0
  201. package/src/stories/SearchResultsGrid.stories.tsx +98 -0
  202. package/src/stories/SearchResultsLoadingGrid.stories.tsx +30 -0
  203. package/src/stories/SparkleAnimation.stories.tsx +47 -0
  204. package/src/stories/Typography.stories.tsx +140 -0
  205. package/src/util/colorVar.ts +3 -0
  206. package/src/util/index.ts +4 -0
  207. package/src/util/useScrollDirection.ts +60 -0
  208. package/src/util/useStickyVisibility.ts +37 -0
  209. package/dist/Accordion/index.cjs +0 -4
  210. package/dist/Accordion/index.js +0 -4
  211. package/dist/AnimatedChevron/index.cjs +0 -3
  212. package/dist/AnimatedChevron/index.js +0 -3
  213. package/dist/ButtonBase/index.cjs +0 -6
  214. package/dist/ButtonBase/index.js +0 -5
  215. package/dist/FilterScrollbar/index.cjs +0 -5
  216. package/dist/FilterScrollbar/index.js +0 -4
  217. package/dist/ImageWithFallback/index.cjs +0 -3
  218. package/dist/ImageWithFallback/index.js +0 -3
  219. package/dist/ModalSheet/index.cjs +0 -4
  220. package/dist/ModalSheet/index.js +0 -4
  221. package/dist/ProductCard/index.d.cts +0 -2
  222. package/dist/ProductCard/index.d.ts +0 -2
  223. package/dist/ProductCard/index.js +0 -6
  224. package/dist/ProductGrid/index.cjs +0 -8
  225. package/dist/ProductGrid/index.js +0 -7
  226. package/dist/RadioButton/index.cjs +0 -4
  227. package/dist/RadioButton/index.js +0 -4
  228. package/dist/RadioButtonGroup/index.cjs +0 -6
  229. package/dist/RadioButtonGroup/index.js +0 -5
  230. package/dist/SearchAutocomplete/index.cjs +0 -4
  231. package/dist/SearchAutocomplete/index.js +0 -4
  232. package/dist/SearchFilter/index.cjs +0 -17
  233. package/dist/SearchFilter/index.js +0 -12
  234. package/dist/SearchInput/index.cjs +0 -7
  235. package/dist/SearchInput/index.js +0 -6
  236. package/dist/SearchResultsContent/index.cjs +0 -44
  237. package/dist/SearchResultsContent/index.js +0 -41
  238. package/dist/SearchResultsFilterSidebar/index.d.cts +0 -2
  239. package/dist/SearchResultsFilterSidebar/index.d.ts +0 -2
  240. package/dist/SearchResultsStates/index.cjs +0 -14
  241. package/dist/SearchResultsStates/index.js +0 -12
  242. package/dist/SparkleAnimation/index.js +0 -3
  243. package/dist/Spinner/index.cjs +0 -3
  244. package/dist/Spinner/index.js +0 -3
  245. package/dist/TextInput/index.cjs +0 -4
  246. package/dist/TextInput/index.js +0 -4
  247. package/dist/ToggleButton/index.cjs +0 -4
  248. package/dist/ToggleButton/index.js +0 -4
  249. package/dist/Typography/index.d.cts +0 -3
  250. package/dist/Typography/index.d.ts +0 -3
  251. package/dist/Typography/index.js +0 -3
  252. /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-BIXx56hq.cjs} +0 -0
  253. /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-C9fn-c5h.js} +0 -0
  254. /package/dist/{Typography-CFNWgbM5.cjs → Typography-Ds4gfOJz.cjs} +0 -0
  255. /package/dist/{colorsConfig-B3-SMUSx.cjs → colorsConfig-D-MZuBvt.cjs} +0 -0
  256. /package/dist/{ToggleButton/index.d.ts → components/ToggleButton/index-B2rBwaVX.d.cts} +0 -0
@@ -1,15 +1,12 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Typography = require('./Typography-CFNWgbM5.cjs');
3
- let framer_motion = require("framer-motion");
4
- framer_motion = require_chunk.__toESM(framer_motion);
2
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
5
3
  let react = require("react");
6
- react = require_chunk.__toESM(react);
4
+ let framer_motion = require("framer-motion");
7
5
  let classnames = require("classnames");
8
6
  classnames = require_chunk.__toESM(classnames);
9
7
  let __envive_ai_react_icons_ChevronDown = require("@envive-ai/react-icons/ChevronDown");
10
8
  __envive_ai_react_icons_ChevronDown = require_chunk.__toESM(__envive_ai_react_icons_ChevronDown);
11
9
  let react_jsx_runtime = require("react/jsx-runtime");
12
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
13
10
 
14
11
  //#region src/components/Accordion/Accordion.tsx
15
12
  const ANIMATION_DURATION = .3;
@@ -1,6 +1,6 @@
1
- import { Typography } from "./Typography-D3vDkBMS.js";
2
- import { motion } from "framer-motion";
1
+ import { t as Typography } from "./Typography-xehJH05l.js";
3
2
  import { useRef, useState } from "react";
3
+ import { motion } from "framer-motion";
4
4
  import classNames from "classnames";
5
5
  import ChevronDown from "@envive-ai/react-icons/ChevronDown";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -74,4 +74,4 @@ const Accordion = ({ title, content }) => {
74
74
  };
75
75
 
76
76
  //#endregion
77
- export { Accordion };
77
+ export { Accordion as t };
@@ -1,8 +1,6 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  let framer_motion = require("framer-motion");
3
- framer_motion = require_chunk.__toESM(framer_motion);
4
3
  let react_jsx_runtime = require("react/jsx-runtime");
5
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
6
4
 
7
5
  //#region src/components/AnimatedChevron/AnimatedChevron.tsx
8
6
  const AnimatedChevron = ({ animationKey, chevronColor }) => {
@@ -26,4 +26,4 @@ const AnimatedChevron = ({ animationKey, chevronColor }) => {
26
26
  };
27
27
 
28
28
  //#endregion
29
- export { AnimatedChevron };
29
+ export { AnimatedChevron as t };
@@ -1,11 +1,9 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Typography = require('./Typography-CFNWgbM5.cjs');
2
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
3
3
  let react = require("react");
4
- react = require_chunk.__toESM(react);
5
4
  let classnames = require("classnames");
6
5
  classnames = require_chunk.__toESM(classnames);
7
6
  let react_jsx_runtime = require("react/jsx-runtime");
8
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
9
7
 
10
8
  //#region src/components/ButtonBase/types.ts
11
9
  let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
@@ -1,4 +1,4 @@
1
- import { Typography } from "./Typography-D3vDkBMS.js";
1
+ import { t as Typography } from "./Typography-xehJH05l.js";
2
2
  import { createElement, useEffect, useRef } from "react";
3
3
  import classNames from "classnames";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -57,4 +57,4 @@ const ButtonBase = ({ isDisabled = false, dataAttributes, buttonClass, text, tex
57
57
  };
58
58
 
59
59
  //#endregion
60
- export { ButtonBase, ButtonBaseOverrides };
60
+ export { ButtonBaseOverrides as n, ButtonBase as t };
@@ -1,4 +1,4 @@
1
- import { Typography } from "./Typography-D3vDkBMS.js";
1
+ import { t as Typography } from "./Typography-xehJH05l.js";
2
2
  import classNames from "classnames";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import ScrollContainer from "react-indiana-drag-scroll";
@@ -6,8 +6,7 @@ import ScrollContainer from "react-indiana-drag-scroll";
6
6
  //#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
7
7
  const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
8
8
  if (selectedFilterOptions.length === 0) return null;
9
- const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
10
- const buttonClasses = classNames(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultWithoutBg, appliedFilterBackgroundClasses);
9
+ const buttonClasses = classNames(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim(), appliedFilterBackgroundClasses);
11
10
  const iconColor = "currentColor";
12
11
  return /* @__PURE__ */ jsx(ScrollContainer, {
13
12
  className: filterBarClassNames,
@@ -44,10 +43,9 @@ const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames,
44
43
  className: filterBarClassNames,
45
44
  hideScrollbars: true,
46
45
  children: availableDynamicFilters.map(({ name, displayName }) => {
47
- const buttonClasses = classNames("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
48
46
  return /* @__PURE__ */ jsx("button", {
49
47
  type: "button",
50
- className: buttonClasses,
48
+ className: classNames("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses),
51
49
  onClick: () => {
52
50
  onToggleDynamicFilter({
53
51
  filter: name,
@@ -63,4 +61,4 @@ const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames,
63
61
  });
64
62
 
65
63
  //#endregion
66
- export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
64
+ export { AppliedFiltersScrollbar as n, DynamicFiltersScrollbar as t };
@@ -1,17 +1,15 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Typography = require('./Typography-CFNWgbM5.cjs');
2
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
3
3
  let classnames = require("classnames");
4
4
  classnames = require_chunk.__toESM(classnames);
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
7
6
  let react_indiana_drag_scroll = require("react-indiana-drag-scroll");
8
7
  react_indiana_drag_scroll = require_chunk.__toESM(react_indiana_drag_scroll);
9
8
 
10
9
  //#region src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx
11
10
  const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
12
11
  if (selectedFilterOptions.length === 0) return null;
13
- const filterDefaultWithoutBg = filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim();
14
- const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultWithoutBg, appliedFilterBackgroundClasses);
12
+ const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim(), appliedFilterBackgroundClasses);
15
13
  const iconColor = "currentColor";
16
14
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_indiana_drag_scroll.default, {
17
15
  className: filterBarClassNames,
@@ -48,10 +46,9 @@ const DynamicFiltersScrollbar = ({ availableDynamicFilters, filterBarClassNames,
48
46
  className: filterBarClassNames,
49
47
  hideScrollbars: true,
50
48
  children: availableDynamicFilters.map(({ name, displayName }) => {
51
- const buttonClasses = (0, classnames.default)("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses);
52
49
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
53
50
  type: "button",
54
- className: buttonClasses,
51
+ className: (0, classnames.default)("spiffy-tw-px-[12px] spiffy-tw-py-2 spiffy-tw-rounded-full spiffy-tw-border spiffy-tw-whitespace-nowrap ", filterHoverClasses, filterDefaultClasses),
55
52
  onClick: () => {
56
53
  onToggleDynamicFilter({
57
54
  filter: name,
@@ -4,7 +4,6 @@ react = require_chunk.__toESM(react);
4
4
  let classnames = require("classnames");
5
5
  classnames = require_chunk.__toESM(classnames);
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
8
7
 
9
8
  //#region src/components/ImageWithFallback/ImageWithFallback.tsx
10
9
  const ImageWithFallback = ({ src, alt, dataTestId, fallbackClassnames, fallback, imageClassnames, onLoad, onError }) => {
@@ -39,4 +39,4 @@ const ImageWithFallback = ({ src, alt, dataTestId, fallbackClassnames, fallback,
39
39
  };
40
40
 
41
41
  //#endregion
42
- export { ImageWithFallback };
42
+ export { ImageWithFallback as t };
@@ -1,15 +1,11 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_AnimatedChevron = require('./AnimatedChevron-Q96FneFy.cjs');
3
- let framer_motion = require("framer-motion");
4
- framer_motion = require_chunk.__toESM(framer_motion);
2
+ const require_AnimatedChevron = require('./AnimatedChevron-9xf90bpP.cjs');
5
3
  let react = require("react");
6
- react = require_chunk.__toESM(react);
4
+ let framer_motion = require("framer-motion");
7
5
  let classnames = require("classnames");
8
6
  classnames = require_chunk.__toESM(classnames);
9
7
  let react_jsx_runtime = require("react/jsx-runtime");
10
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
11
8
  let __envive_ai_react_hooks_hooks_IsSmallScreen = require("@envive-ai/react-hooks/hooks/IsSmallScreen");
12
- __envive_ai_react_hooks_hooks_IsSmallScreen = require_chunk.__toESM(__envive_ai_react_hooks_hooks_IsSmallScreen);
13
9
 
14
10
  //#region src/components/ModalSheet/mobile/mobileHeader.tsx
15
11
  const modalSheetVariants$1 = { primary: {
@@ -154,16 +150,15 @@ const modalSheetVariants = { primary: {
154
150
  "spiffy-tw-text-[--spiffy-colors-text-light]": true
155
151
  } };
156
152
  const ModalSheetDesktopHeader = ({ headerVariant = "primary", headerContent }) => {
157
- const headerStyles = (0, classnames.default)({
158
- "spiffy-modal-sheet-header": true,
159
- "spiffy-tw-flex": true,
160
- "spiffy-tw-items-center": true,
161
- "spiffy-tw-justify-between": true,
162
- "spiffy-tw-w-full": true,
163
- ...modalSheetVariants[headerVariant]
164
- });
165
153
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
166
- className: headerStyles,
154
+ className: (0, classnames.default)({
155
+ "spiffy-modal-sheet-header": true,
156
+ "spiffy-tw-flex": true,
157
+ "spiffy-tw-items-center": true,
158
+ "spiffy-tw-justify-between": true,
159
+ "spiffy-tw-w-full": true,
160
+ ...modalSheetVariants[headerVariant]
161
+ }),
167
162
  children: headerContent
168
163
  });
169
164
  };
@@ -1,6 +1,6 @@
1
- import { AnimatedChevron } from "./AnimatedChevron-Bik7GMSe.js";
2
- import { motion, useMotionValue } from "framer-motion";
1
+ import { t as AnimatedChevron } from "./AnimatedChevron-DghLnmlM.js";
3
2
  import { useEffect, useState } from "react";
3
+ import { motion, useMotionValue } from "framer-motion";
4
4
  import classNames from "classnames";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useIsSmallScreen } from "@envive-ai/react-hooks/hooks/IsSmallScreen";
@@ -148,16 +148,15 @@ const modalSheetVariants = { primary: {
148
148
  "spiffy-tw-text-[--spiffy-colors-text-light]": true
149
149
  } };
150
150
  const ModalSheetDesktopHeader = ({ headerVariant = "primary", headerContent }) => {
151
- const headerStyles = classNames({
152
- "spiffy-modal-sheet-header": true,
153
- "spiffy-tw-flex": true,
154
- "spiffy-tw-items-center": true,
155
- "spiffy-tw-justify-between": true,
156
- "spiffy-tw-w-full": true,
157
- ...modalSheetVariants[headerVariant]
158
- });
159
151
  return /* @__PURE__ */ jsx("div", {
160
- className: headerStyles,
152
+ className: classNames({
153
+ "spiffy-modal-sheet-header": true,
154
+ "spiffy-tw-flex": true,
155
+ "spiffy-tw-items-center": true,
156
+ "spiffy-tw-justify-between": true,
157
+ "spiffy-tw-w-full": true,
158
+ ...modalSheetVariants[headerVariant]
159
+ }),
161
160
  children: headerContent
162
161
  });
163
162
  };
@@ -299,4 +298,4 @@ const ModalSheet = ({ children, isOpen, closeModal, animationDuration = ANIMATIO
299
298
  };
300
299
 
301
300
  //#endregion
302
- export { ModalSheet };
301
+ export { ModalSheet as t };
@@ -1,17 +1,14 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Typography = require('./Typography-CFNWgbM5.cjs');
3
- const require_ImageWithFallback = require('./ImageWithFallback-Bx17VPmQ.cjs');
4
- const require_Spinner = require('./Spinner-DjK8ts9E.cjs');
2
+ const require_formatPrice = require('./formatPrice-CyfkjZ3R.cjs');
3
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
4
+ const require_ImageWithFallback = require('./ImageWithFallback-CuPe6XF6.cjs');
5
+ const require_Spinner = require('./Spinner-FQpy5bGu.cjs');
5
6
  let classnames = require("classnames");
6
7
  classnames = require_chunk.__toESM(classnames);
7
8
  let react_jsx_runtime = require("react/jsx-runtime");
8
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
9
9
  let react_icons_md = require("react-icons/md");
10
- react_icons_md = require_chunk.__toESM(react_icons_md);
11
10
  let __envive_ai_react_hooks_hooks_ImageResolver = require("@envive-ai/react-hooks/hooks/ImageResolver");
12
- __envive_ai_react_hooks_hooks_ImageResolver = require_chunk.__toESM(__envive_ai_react_hooks_hooks_ImageResolver);
13
11
  let __envive_ai_react_hooks_config = require("@envive-ai/react-hooks/config");
14
- __envive_ai_react_hooks_config = require_chunk.__toESM(__envive_ai_react_hooks_config);
15
12
 
16
13
  //#region src/logging/logger.ts
17
14
  var Logger = class {
@@ -30,18 +27,6 @@ var Logger = class {
30
27
  };
31
28
  var logger_default = Logger;
32
29
 
33
- //#endregion
34
- //#region src/util/formatPrice.ts
35
- const formatPrice = (price, currency = "$") => {
36
- if (price == null) return "";
37
- const options = {};
38
- if (!Number.isInteger(price)) {
39
- options.minimumFractionDigits = 2;
40
- options.maximumFractionDigits = 2;
41
- }
42
- return `${currency}${price.toLocaleString("en-US", options)}`;
43
- };
44
-
45
30
  //#endregion
46
31
  //#region src/components/ProductCard/productCardVariants.ts
47
32
  /**
@@ -93,14 +78,12 @@ const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
93
78
  maximumFractionDigits: 1
94
79
  }));
95
80
  const RatingSummary = ({ stars, reviewCount, className }) => {
96
- 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]");
97
- 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]");
98
81
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
99
82
  className,
100
83
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
101
- className: group,
84
+ className: (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]"),
102
85
  children: [
103
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_md.MdStar, { className: starClassnames }),
86
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_icons_md.MdStar, { className: (0, classnames.default)("spiffy-product-card-rating-star-color", "spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-w-[14px]", "spiffy-tw-h-[14px]") }),
104
87
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
105
88
  variant: "body3",
106
89
  children: formatReviews(stars)
@@ -207,8 +190,8 @@ const ProductCard = ({ productCardConfig, merchantShortName, imageUrl, title, ur
207
190
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
208
191
  className: priceAndRatingContainerClassnames,
209
192
  children: [(originalPrice || salePrice) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PriceSection, {
210
- originalPrice: formatPrice(originalPrice),
211
- salePrice: formatPrice(salePrice),
193
+ originalPrice: require_formatPrice.formatPrice(originalPrice),
194
+ salePrice: require_formatPrice.formatPrice(salePrice),
212
195
  pricePrefix
213
196
  }), averageRating && numberReviews && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RatingSummary, {
214
197
  stars: averageRating,
@@ -1,6 +1,7 @@
1
- import { Typography } from "./Typography-D3vDkBMS.js";
2
- import { ImageWithFallback } from "./ImageWithFallback-c-DTsBH-.js";
3
- import { Spinner } from "./Spinner-BqTt55uu.js";
1
+ import { t as formatPrice } from "./formatPrice-DexQu2aZ.js";
2
+ import { t as Typography } from "./Typography-xehJH05l.js";
3
+ import { t as ImageWithFallback } from "./ImageWithFallback-_QZT0EKI.js";
4
+ import { t as Spinner } from "./Spinner-CDDFWySo.js";
4
5
  import classNames from "classnames";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { MdStar } from "react-icons/md";
@@ -24,18 +25,6 @@ var Logger = class {
24
25
  };
25
26
  var logger_default = Logger;
26
27
 
27
- //#endregion
28
- //#region src/util/formatPrice.ts
29
- const formatPrice = (price, currency = "$") => {
30
- if (price == null) return "";
31
- const options = {};
32
- if (!Number.isInteger(price)) {
33
- options.minimumFractionDigits = 2;
34
- options.maximumFractionDigits = 2;
35
- }
36
- return `${currency}${price.toLocaleString("en-US", options)}`;
37
- };
38
-
39
28
  //#endregion
40
29
  //#region src/components/ProductCard/productCardVariants.ts
41
30
  /**
@@ -87,14 +76,12 @@ const formatReviews = (stars) => String(Number(stars).toLocaleString("en-US", {
87
76
  maximumFractionDigits: 1
88
77
  }));
89
78
  const RatingSummary = ({ stars, reviewCount, className }) => {
90
- const group = classNames("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]");
91
- const starClassnames = classNames("spiffy-product-card-rating-star-color", "spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-w-[14px]", "spiffy-tw-h-[14px]");
92
79
  return /* @__PURE__ */ jsx("div", {
93
80
  className,
94
81
  children: /* @__PURE__ */ jsxs("div", {
95
- className: group,
82
+ className: classNames("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]"),
96
83
  children: [
97
- /* @__PURE__ */ jsx(MdStar, { className: starClassnames }),
84
+ /* @__PURE__ */ jsx(MdStar, { className: classNames("spiffy-product-card-rating-star-color", "spiffy-tw-fill-[--spiffy-colors-accent-primary]", "spiffy-tw-w-[14px]", "spiffy-tw-h-[14px]") }),
98
85
  /* @__PURE__ */ jsx(Typography, {
99
86
  variant: "body3",
100
87
  children: formatReviews(stars)
@@ -254,4 +241,4 @@ const ProductCardSkeleton = ({ layoutVariant, aspectRatio, growWithContainer = f
254
241
  };
255
242
 
256
243
  //#endregion
257
- export { AnimatedProductCardOverrides, PriceSection, ProductCard, ProductCardSkeleton, ProductCardSkeletonOverrides, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
244
+ export { ProductCard as a, variantClassMap as c, PriceSection as i, variantHoverClassMap as l, AnimatedProductCardOverrides as n, RatingSummary as o, ProductCardSkeletonOverrides as r, productCardLayoutVariantClasses as s, ProductCardSkeleton as t, variantTitleColorMap as u };
@@ -1,9 +1,8 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_ProductCard = require('./ProductCard-C-8ie9Lf.cjs');
2
+ const require_ProductCard = require('./ProductCard-BeY85PBf.cjs');
3
3
  let classnames = require("classnames");
4
4
  classnames = require_chunk.__toESM(classnames);
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
7
6
 
8
7
  //#region src/components/ProductGrid/productGridVariants.ts
9
8
  const productGridVariantClasses = {
@@ -1,4 +1,4 @@
1
- import { ProductCard } from "./ProductCard-n-PAth5m.js";
1
+ import { a as ProductCard } from "./ProductCard-BoyYu6mI.js";
2
2
  import classNames from "classnames";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -55,4 +55,4 @@ const ProductGrid = ({ productList, productGridVariant, productGridClasses, prod
55
55
  };
56
56
 
57
57
  //#endregion
58
- export { ProductGrid, productGridVariantClasses };
58
+ export { productGridVariantClasses as n, ProductGrid as t };
@@ -1,4 +1,4 @@
1
- import { Typography } from "./Typography-D3vDkBMS.js";
1
+ import { t as Typography } from "./Typography-xehJH05l.js";
2
2
  import { useState } from "react";
3
3
  import classNames from "classnames";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -68,4 +68,4 @@ const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "
68
68
  };
69
69
 
70
70
  //#endregion
71
- export { RadioButton };
71
+ export { RadioButton as t };
@@ -1,11 +1,9 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Typography = require('./Typography-CFNWgbM5.cjs');
2
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
3
3
  let react = require("react");
4
- react = require_chunk.__toESM(react);
5
4
  let classnames = require("classnames");
6
5
  classnames = require_chunk.__toESM(classnames);
7
6
  let react_jsx_runtime = require("react/jsx-runtime");
8
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
9
7
 
10
8
  //#region src/components/RadioButton/RadioButton.tsx
11
9
  const RadioButton = ({ isDisabled = false, label, name, value, textButtonGap = "medium", fillColor, hoverColor, uncheckedBorderColor, checked = false, onChange, id }) => {
@@ -1,9 +1,8 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_RadioButton = require('./RadioButton-BBc1b5vX.cjs');
2
+ const require_RadioButton = require('./RadioButton-Dcdj8pNp.cjs');
3
3
  let classnames = require("classnames");
4
4
  classnames = require_chunk.__toESM(classnames);
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
7
6
 
8
7
  //#region src/components/RadioButtonGroup/RadioButtonGroup.tsx
9
8
  const SPIFFY_RADIO_BUTTON_GROUP_CLASS = "spiffy-radio-button-group-class";
@@ -1,4 +1,4 @@
1
- import { RadioButton } from "./RadioButton-gnFz0TWN.js";
1
+ import { t as RadioButton } from "./RadioButton-Bm0qK3bX.js";
2
2
  import classNames from "classnames";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
 
@@ -35,4 +35,4 @@ const RadioButtonGroup = ({ name, options, fillColor, hoverColor, uncheckedBorde
35
35
  };
36
36
 
37
37
  //#endregion
38
- export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
38
+ export { SPIFFY_RADIO_BUTTON_GROUP_CLASS as n, RadioButtonGroup as t };
@@ -0,0 +1,56 @@
1
+ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
3
+ const require_ProductGrid = require('./ProductGrid-CxKK7w_X.cjs');
4
+ let framer_motion = require("framer-motion");
5
+ let classnames = require("classnames");
6
+ classnames = require_chunk.__toESM(classnames);
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+
9
+ //#region src/components/RecommendedProducts/RecommendedProducts.tsx
10
+ const RecommendedProducts = ({ retrievedProducts, merchantShortName, productCardConfig = {
11
+ variant: "minimal",
12
+ hoverVariant: "none",
13
+ layoutVariant: "square"
14
+ }, productGridVariant = "square", heading, onProductClick }) => {
15
+ const containerClasses = (0, classnames.default)("spiffy-tw-justify-center", "spiffy-tw-overflow-hidden", "spiffy-tw-bg-white", "spiffy-tw-relative", "spiffy-tw-px-[24px]", "spiffy-tw-py-[16px]", "sm:spiffy-tw-px-[41px]", "sm:spiffy-tw-py-[40px]");
16
+ const titleContainerClasses = (0, classnames.default)("spiffy-tw-w-full", "spiffy-tw-border-b", "spiffy-tw-border-solid", "spiffy-tw-border-b-[--spiffy-colors-text-accent]", "spiffy-tw-pb-[8px]", "spiffy-tw-mb-[16px]");
17
+ const productGridClasses = (0, classnames.default)("spiffy-tw-grid", "spiffy-tw-justify-items-stretch", "spiffy-tw-grid-cols-2", "md:spiffy-tw-grid-cols-3", "lg:spiffy-tw-grid-cols-4", "spiffy-tw-gap-x-[4px]", "spiffy-tw-gap-y-[24px]", "spiffy-tw-h-full", "spiffy-tw-w-full", "spiffy-tw-items-stretch");
18
+ if (retrievedProducts == null || retrievedProducts.length === 0) return null;
19
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(framer_motion.motion.div, {
20
+ className: containerClasses,
21
+ initial: { opacity: 0 },
22
+ animate: { opacity: 1 },
23
+ exit: { opacity: 0 },
24
+ transition: { duration: .2 },
25
+ style: {
26
+ left: "50%",
27
+ right: "50%",
28
+ marginLeft: "-50vw",
29
+ marginRight: "-50vw",
30
+ width: "100vw"
31
+ },
32
+ children: [heading && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
33
+ className: titleContainerClasses,
34
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
35
+ variant: "h1",
36
+ className: "spiffy-tw-text-[--spiffy-colors-text-accent]",
37
+ children: heading
38
+ })
39
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProductGrid.ProductGrid, {
40
+ productList: retrievedProducts,
41
+ productGridVariant,
42
+ productGridClasses,
43
+ productCardConfig,
44
+ merchantShortName,
45
+ onProductClick
46
+ })]
47
+ });
48
+ };
49
+
50
+ //#endregion
51
+ Object.defineProperty(exports, 'RecommendedProducts', {
52
+ enumerable: true,
53
+ get: function () {
54
+ return RecommendedProducts;
55
+ }
56
+ });
@@ -0,0 +1,49 @@
1
+ import { t as Typography } from "./Typography-xehJH05l.js";
2
+ import { t as ProductGrid } from "./ProductGrid-DmtSXfyE.js";
3
+ import { motion } from "framer-motion";
4
+ import classNames from "classnames";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/components/RecommendedProducts/RecommendedProducts.tsx
8
+ const RecommendedProducts = ({ retrievedProducts, merchantShortName, productCardConfig = {
9
+ variant: "minimal",
10
+ hoverVariant: "none",
11
+ layoutVariant: "square"
12
+ }, productGridVariant = "square", heading, onProductClick }) => {
13
+ const containerClasses = classNames("spiffy-tw-justify-center", "spiffy-tw-overflow-hidden", "spiffy-tw-bg-white", "spiffy-tw-relative", "spiffy-tw-px-[24px]", "spiffy-tw-py-[16px]", "sm:spiffy-tw-px-[41px]", "sm:spiffy-tw-py-[40px]");
14
+ const titleContainerClasses = classNames("spiffy-tw-w-full", "spiffy-tw-border-b", "spiffy-tw-border-solid", "spiffy-tw-border-b-[--spiffy-colors-text-accent]", "spiffy-tw-pb-[8px]", "spiffy-tw-mb-[16px]");
15
+ const productGridClasses = classNames("spiffy-tw-grid", "spiffy-tw-justify-items-stretch", "spiffy-tw-grid-cols-2", "md:spiffy-tw-grid-cols-3", "lg:spiffy-tw-grid-cols-4", "spiffy-tw-gap-x-[4px]", "spiffy-tw-gap-y-[24px]", "spiffy-tw-h-full", "spiffy-tw-w-full", "spiffy-tw-items-stretch");
16
+ if (retrievedProducts == null || retrievedProducts.length === 0) return null;
17
+ return /* @__PURE__ */ jsxs(motion.div, {
18
+ className: containerClasses,
19
+ initial: { opacity: 0 },
20
+ animate: { opacity: 1 },
21
+ exit: { opacity: 0 },
22
+ transition: { duration: .2 },
23
+ style: {
24
+ left: "50%",
25
+ right: "50%",
26
+ marginLeft: "-50vw",
27
+ marginRight: "-50vw",
28
+ width: "100vw"
29
+ },
30
+ children: [heading && /* @__PURE__ */ jsx("div", {
31
+ className: titleContainerClasses,
32
+ children: /* @__PURE__ */ jsx(Typography, {
33
+ variant: "h1",
34
+ className: "spiffy-tw-text-[--spiffy-colors-text-accent]",
35
+ children: heading
36
+ })
37
+ }), /* @__PURE__ */ jsx(ProductGrid, {
38
+ productList: retrievedProducts,
39
+ productGridVariant,
40
+ productGridClasses,
41
+ productCardConfig,
42
+ merchantShortName,
43
+ onProductClick
44
+ })]
45
+ });
46
+ };
47
+
48
+ //#endregion
49
+ export { RecommendedProducts as t };
@@ -1,13 +1,11 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_Typography = require('./Typography-CFNWgbM5.cjs');
3
- let framer_motion = require("framer-motion");
4
- framer_motion = require_chunk.__toESM(framer_motion);
2
+ const require_Typography = require('./Typography-Ds4gfOJz.cjs');
5
3
  let react = require("react");
6
4
  react = require_chunk.__toESM(react);
5
+ let framer_motion = require("framer-motion");
7
6
  let classnames = require("classnames");
8
7
  classnames = require_chunk.__toESM(classnames);
9
8
  let react_jsx_runtime = require("react/jsx-runtime");
10
- react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
11
9
  let __envive_ai_react_icons_OutlinedStar = require("@envive-ai/react-icons/OutlinedStar");
12
10
  __envive_ai_react_icons_OutlinedStar = require_chunk.__toESM(__envive_ai_react_icons_OutlinedStar);
13
11
 
@@ -21,10 +19,9 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
21
19
  });
22
20
  const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
23
21
  const regex = new RegExp(`(${escapedQuery})`, "gi");
24
- const parts = text.split(regex);
25
22
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
26
23
  variant: "body3",
27
- children: parts.map((part, index) => {
24
+ children: text.split(regex).map((part, index) => {
28
25
  return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", {
29
26
  className: "spiffy-tw-font-bold",
30
27
  children: part
@@ -1,6 +1,6 @@
1
- import { Typography } from "./Typography-D3vDkBMS.js";
2
- import { motion } from "framer-motion";
1
+ import { t as Typography } from "./Typography-xehJH05l.js";
3
2
  import React from "react";
3
+ import { motion } from "framer-motion";
4
4
  import classNames from "classnames";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import OutlinedStar from "@envive-ai/react-icons/OutlinedStar";
@@ -15,10 +15,9 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
15
15
  });
16
16
  const escapedQuery = searchQuery.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17
17
  const regex = new RegExp(`(${escapedQuery})`, "gi");
18
- const parts = text.split(regex);
19
18
  return /* @__PURE__ */ jsx(Typography, {
20
19
  variant: "body3",
21
- children: parts.map((part, index) => {
20
+ children: text.split(regex).map((part, index) => {
22
21
  return part.toLowerCase() === searchQuery.toLowerCase() ? /* @__PURE__ */ jsx("strong", {
23
22
  className: "spiffy-tw-font-bold",
24
23
  children: part
@@ -66,4 +65,4 @@ const SearchAutocomplete = ({ id, results, focusedIndex, searchText = "", onSugg
66
65
  };
67
66
 
68
67
  //#endregion
69
- export { SearchAutocomplete };
68
+ export { SearchAutocomplete as t };