@envive-ai/react-toolkit 0.2.11 → 0.2.13-arthur-1

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 (309) hide show
  1. package/dist/{Accordion-B8aUlf0q.js → Accordion-8zFBEEaN.js} +25 -6
  2. package/dist/{Accordion-FyCFBOen.cjs → Accordion-DPUaEXiE.cjs} +23 -8
  3. package/dist/{AnimatedChevron-wpcAHp6d.cjs → AnimatedChevron-CPW5KPLr.cjs} +0 -2
  4. package/dist/{AnimatedChevron-Dee6Pe81.js → AnimatedChevron-DO_jcnJg.js} +1 -1
  5. package/dist/{ButtonBase-B6vDKbGQ.cjs → ButtonBase-C44g6llb.cjs} +1 -3
  6. package/dist/{ButtonBase-Bpc7nOpz.js → ButtonBase-Cjo-fBg2.js} +3 -3
  7. package/dist/{DynamicFiltersScrollbar-DIwHWq6v.cjs → DynamicFiltersScrollbar-IO886VXD.cjs} +3 -6
  8. package/dist/{DynamicFiltersScrollbar-D8OqC4DA.js → DynamicFiltersScrollbar-s5yfmMau.js} +5 -7
  9. package/dist/FourPointStar-3DqnYmfN.js +21 -0
  10. package/dist/FourPointStar-AQ9OSu0S.cjs +26 -0
  11. package/dist/{ImageWithFallback-DvaVpR6v.cjs → ImageWithFallback-C-ZQn7tR.cjs} +1 -2
  12. package/dist/{ImageWithFallback-BW57cQw-.js → ImageWithFallback-DjDNefaG.js} +2 -2
  13. package/dist/{ModalSheet-DFva7krP.js → ModalSheet-C5f5abw1.js} +12 -13
  14. package/dist/{ModalSheet-BvM2PJbH.cjs → ModalSheet-JZerJZ1T.cjs} +11 -16
  15. package/dist/OutlinedStar-CC0V_jAK.cjs +26 -0
  16. package/dist/OutlinedStar-WWs3gRwt.js +21 -0
  17. package/dist/{ProductCard-C2KvH4MN.cjs → ProductCard-C7rZyWpj.cjs} +31 -28
  18. package/dist/{ProductCard-BiWAcPO4.js → ProductCard-GxpFxjh0.js} +19 -24
  19. package/dist/{ProductGrid-DkOyRAEg.cjs → ProductGrid-0A8vml2y.cjs} +2 -3
  20. package/dist/{ProductGrid-B1RtE58G.js → ProductGrid-DAwc9dKV.js} +3 -3
  21. package/dist/{RadioButton-CQ6qOvBl.js → RadioButton-DOc8g47U.js} +3 -3
  22. package/dist/{RadioButton-DP-qs5cy.cjs → RadioButton-DpF1wymL.cjs} +1 -3
  23. package/dist/{RadioButtonGroup-CJPWfAaA.cjs → RadioButtonGroup-ByzTXNAb.cjs} +2 -3
  24. package/dist/{RadioButtonGroup-Ce8cKqYw.js → RadioButtonGroup-YQIxmR7j.js} +3 -3
  25. package/dist/RecommendedProducts-C6dLpLPP.js +49 -0
  26. package/dist/RecommendedProducts-qkPxXVJn.cjs +56 -0
  27. package/dist/{SearchAutocomplete-bbMvWWjI.cjs → SearchAutocomplete-BdTWETDB.cjs} +5 -9
  28. package/dist/{SearchAutocomplete-CjjL2_lm.js → SearchAutocomplete-DNe193EV.js} +7 -8
  29. package/dist/{SearchFilter-BLi6E9Wx.cjs → SearchFilter-BRtCSuAn.cjs} +38 -44
  30. package/dist/{SearchFilter-wHwOym_n.js → SearchFilter-DvJx0b0W.js} +40 -44
  31. package/dist/{SearchInput-BA6bepV_.cjs → SearchInput-CImlqrau.cjs} +64 -13
  32. package/dist/{SearchInput-C3nNkmBm.js → SearchInput-kLhxkpgq.js} +64 -9
  33. package/dist/{SearchInputForm/index.js → SearchInputForm-CFm_hUvX.js} +7 -9
  34. package/dist/{SearchInputForm/index.cjs → SearchInputForm-ZgNNEX6E.cjs} +13 -12
  35. package/dist/SearchResultsFilterButton-D929tRt9.cjs +96 -0
  36. package/dist/SearchResultsFilterButton-Dk7u7rgn.js +90 -0
  37. package/dist/{SearchResultsFilterSidebar/index.cjs → SearchResultsFilterSidebar-BRFONIEq.cjs} +11 -18
  38. package/dist/{SearchResultsFilterSidebar/index.js → SearchResultsFilterSidebar-DLzQoFGD.js} +5 -14
  39. package/dist/SearchResultsStates-CQR5Il4l.cjs +196 -0
  40. package/dist/SearchResultsStates-D7HfsLeZ.js +177 -0
  41. package/dist/{SparkleAnimation-BFAj73CF.cjs → SparkleAnimation-BikAiAmb.cjs} +20 -15
  42. package/dist/{SparkleAnimation-BYDUEqWX.js → SparkleAnimation-szzXiTam.js} +15 -12
  43. package/dist/{Spinner-Ccy6VFEp.cjs → Spinner-7HblFCja.cjs} +1 -2
  44. package/dist/{Spinner-D2HbRsuw.js → Spinner-OFbXMms8.js} +2 -2
  45. package/dist/{TextInput-CYTko3-n.cjs → TextInput-CaynCoDf.cjs} +3 -5
  46. package/dist/{TextInput-CmxnphaT.js → TextInput-CsdOvLBQ.js} +5 -6
  47. package/dist/{ToggleButton-V9Qsaks7.js → ToggleButton-D8--AKKK.js} +3 -3
  48. package/dist/{ToggleButton-CvxNLMe_.cjs → ToggleButton-Dxk3U1hR.cjs} +1 -2
  49. package/dist/{Typography-C3QmJzFK.js → Typography-xehJH05l.js} +1 -1
  50. package/dist/colorsConfig-CFI1KN8R.js +26 -0
  51. package/dist/colorsConfig-Dp7w5LPb.cjs +38 -0
  52. package/dist/{Accordion/index.d.ts → components/Accordion/index-D_7-KJa0.d.cts} +2 -2
  53. package/dist/{Accordion/index.d.cts → components/Accordion/index-Dd_9XeqA.d.ts} +2 -2
  54. package/dist/components/Accordion/index.cjs +5 -0
  55. package/dist/components/Accordion/index.js +5 -0
  56. package/dist/{AnimatedChevron/index.d.cts → components/AnimatedChevron/index-BwQ6tJL8.d.cts} +2 -2
  57. package/dist/{AnimatedChevron/index.d.ts → components/AnimatedChevron/index-DZdGWikh.d.ts} +2 -2
  58. package/dist/components/AnimatedChevron/index.cjs +3 -0
  59. package/dist/components/AnimatedChevron/index.js +3 -0
  60. package/dist/{AppliedFiltersScrollbar/index.d.ts → components/AppliedFiltersScrollbar/index-Dcyc-5Bv.d.ts} +3 -3
  61. package/dist/{AppliedFiltersScrollbar/index.d.cts → components/AppliedFiltersScrollbar/index-VbXAIfym.d.cts} +3 -3
  62. package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.cjs +4 -6
  63. package/dist/{AppliedFiltersScrollbar → components/AppliedFiltersScrollbar}/index.js +3 -4
  64. package/dist/{ButtonBase/index.d.ts → components/ButtonBase/index-Bxdhf_O8.d.cts} +3 -3
  65. package/dist/{ButtonBase/index.d.cts → components/ButtonBase/index-VoanK6Pr.d.ts} +3 -3
  66. package/dist/components/ButtonBase/index.cjs +6 -0
  67. package/dist/components/ButtonBase/index.js +5 -0
  68. package/dist/{DynamicFiltersScrollbar/index.d.cts → components/DynamicFiltersScrollbar/index-CHzxQmaW.d.cts} +2 -2
  69. package/dist/{DynamicFiltersScrollbar/index.d.ts → components/DynamicFiltersScrollbar/index-vVNOOaOF.d.ts} +2 -2
  70. package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.cjs +4 -6
  71. package/dist/{DynamicFiltersScrollbar → components/DynamicFiltersScrollbar}/index.js +3 -4
  72. package/dist/{FilterScrollbar/index.d.cts → components/FilterScrollbar/index-DXcZLcQi.d.cts} +4 -4
  73. package/dist/{FilterScrollbar/index.d.ts → components/FilterScrollbar/index-DwLyxqQl.d.ts} +4 -4
  74. package/dist/components/FilterScrollbar/index.cjs +5 -0
  75. package/dist/components/FilterScrollbar/index.js +4 -0
  76. package/dist/{ImageWithFallback/index.d.cts → components/ImageWithFallback/index-BLbkDyG8.d.cts} +2 -2
  77. package/dist/{ImageWithFallback/index.d.ts → components/ImageWithFallback/index-NJZsMOXc.d.ts} +2 -2
  78. package/dist/components/ImageWithFallback/index.cjs +3 -0
  79. package/dist/components/ImageWithFallback/index.js +3 -0
  80. package/dist/{ModalSheet/index.d.cts → components/ModalSheet/index-B5q4MHdq.d.cts} +2 -2
  81. package/dist/{ModalSheet/index.d.ts → components/ModalSheet/index-BN20-QS0.d.ts} +2 -2
  82. package/dist/components/ModalSheet/index.cjs +4 -0
  83. package/dist/components/ModalSheet/index.js +4 -0
  84. package/dist/components/ProductCard/index-CglXQ3wh.d.ts +2 -0
  85. package/dist/components/ProductCard/index-XVlN6iMl.d.cts +2 -0
  86. package/dist/{ProductCard → components/ProductCard}/index.cjs +7 -4
  87. package/dist/components/ProductCard/index.js +7 -0
  88. package/dist/{ProductGrid/index.d.ts → components/ProductGrid/index-BPBgwFsa.d.cts} +4 -3
  89. package/dist/{ProductGrid/index.d.cts → components/ProductGrid/index-D_YpwJCd.d.ts} +4 -3
  90. package/dist/components/ProductGrid/index.cjs +9 -0
  91. package/dist/components/ProductGrid/index.js +8 -0
  92. package/dist/{RadioButton/index.d.cts → components/RadioButton/index-BeOT_AlW.d.cts} +3 -3
  93. package/dist/{RadioButton/index.d.ts → components/RadioButton/index-CxluCaJw.d.ts} +3 -3
  94. package/dist/components/RadioButton/index.cjs +4 -0
  95. package/dist/components/RadioButton/index.js +4 -0
  96. package/dist/{RadioButtonGroup/index.d.cts → components/RadioButtonGroup/index-BOhV-rG3.d.cts} +3 -3
  97. package/dist/{RadioButtonGroup/index.d.ts → components/RadioButtonGroup/index-KeOIiYNW.d.ts} +3 -3
  98. package/dist/components/RadioButtonGroup/index.cjs +6 -0
  99. package/dist/components/RadioButtonGroup/index.js +5 -0
  100. package/dist/components/RecommendedProducts/index-BFM83Qu3.d.cts +15 -0
  101. package/dist/components/RecommendedProducts/index-DlbCfGof.d.ts +15 -0
  102. package/dist/components/RecommendedProducts/index.cjs +12 -0
  103. package/dist/components/RecommendedProducts/index.js +12 -0
  104. package/dist/{SearchAutocomplete/index.d.cts → components/SearchAutocomplete/index-BcnHcv7Q.d.cts} +2 -2
  105. package/dist/{SearchAutocomplete/index.d.ts → components/SearchAutocomplete/index-Br_POGOz.d.ts} +2 -2
  106. package/dist/components/SearchAutocomplete/index.cjs +6 -0
  107. package/dist/components/SearchAutocomplete/index.js +6 -0
  108. package/dist/components/SearchFilter/index-BbIqmoO8.d.ts +91 -0
  109. package/dist/components/SearchFilter/index-DAL3Wl6U.d.cts +91 -0
  110. package/dist/components/SearchFilter/index.cjs +18 -0
  111. package/dist/components/SearchFilter/index.js +13 -0
  112. package/dist/{SearchInput/index.d.cts → components/SearchInput/index-C0H51Flv.d.ts} +4 -3
  113. package/dist/{SearchInput/index.d.ts → components/SearchInput/index-rFDdhvqg.d.cts} +4 -3
  114. package/dist/components/SearchInput/index.cjs +8 -0
  115. package/dist/components/SearchInput/index.js +7 -0
  116. package/dist/{SearchInputForm/index.d.cts → components/SearchInputForm/index-Cleto06d.d.cts} +4 -2
  117. package/dist/{SearchInputForm/index.d.ts → components/SearchInputForm/index-DjjoY7MQ.d.ts} +6 -4
  118. package/dist/components/SearchInputForm/index.cjs +10 -0
  119. package/dist/components/SearchInputForm/index.js +10 -0
  120. package/dist/{SearchResultsContent/index.d.ts → components/SearchResultsContent/index-C4qsTFUd.d.cts} +19 -7
  121. package/dist/{SearchResultsContent/index.d.cts → components/SearchResultsContent/index-KdFf9yzs.d.ts} +17 -5
  122. package/dist/components/SearchResultsContent/index.cjs +62 -0
  123. package/dist/components/SearchResultsContent/index.js +60 -0
  124. package/dist/components/SearchResultsFilterButton/index-BvntKdyC.d.ts +13 -0
  125. package/dist/components/SearchResultsFilterButton/index-zgQsT6vz.d.cts +13 -0
  126. package/dist/components/SearchResultsFilterButton/index.cjs +10 -0
  127. package/dist/components/SearchResultsFilterButton/index.js +10 -0
  128. package/dist/components/SearchResultsFilterModal/index-CNBQ1ikL.d.ts +27 -0
  129. package/dist/components/SearchResultsFilterModal/index-mRcnKysU.d.cts +27 -0
  130. package/dist/components/SearchResultsFilterModal/index.cjs +48 -0
  131. package/dist/components/SearchResultsFilterModal/index.js +47 -0
  132. package/dist/components/SearchResultsFilterSidebar/index-C7PE9z5a.d.ts +2 -0
  133. package/dist/components/SearchResultsFilterSidebar/index-DKzEKFV3.d.cts +2 -0
  134. package/dist/components/SearchResultsFilterSidebar/index.cjs +17 -0
  135. package/dist/components/SearchResultsFilterSidebar/index.js +16 -0
  136. package/dist/{SearchResultsStates/index.d.ts → components/SearchResultsStates/index-Dugoegtn.d.ts} +20 -9
  137. package/dist/{SearchResultsStates/index.d.cts → components/SearchResultsStates/index-RVgPTFiH.d.cts} +16 -5
  138. package/dist/components/SearchResultsStates/index.cjs +18 -0
  139. package/dist/components/SearchResultsStates/index.js +16 -0
  140. package/dist/components/SearchResultsToolbar/index-CIvuccni.d.ts +49 -0
  141. package/dist/components/SearchResultsToolbar/index-PYr086HM.d.cts +49 -0
  142. package/dist/components/SearchResultsToolbar/index.cjs +68 -0
  143. package/dist/components/SearchResultsToolbar/index.js +65 -0
  144. package/dist/components/SparkleAnimation/index-BFqUibyY.d.ts +23 -0
  145. package/dist/components/SparkleAnimation/index-CSBR76H5.d.cts +23 -0
  146. package/dist/components/SparkleAnimation/index.cjs +6 -0
  147. package/dist/components/SparkleAnimation/index.js +5 -0
  148. package/dist/{Spinner/index.d.cts → components/Spinner/index-DrYhRG9D.d.cts} +2 -2
  149. package/dist/{Spinner/index.d.ts → components/Spinner/index-TKsPifGM.d.ts} +2 -2
  150. package/dist/components/Spinner/index.cjs +3 -0
  151. package/dist/components/Spinner/index.js +3 -0
  152. package/dist/{SuggestionButton/index.d.cts → components/SuggestionButton/index-BioM3QHW.d.ts} +3 -3
  153. package/dist/{SuggestionButton/index.d.ts → components/SuggestionButton/index-CjV6Ar4Y.d.cts} +3 -3
  154. package/dist/{SuggestionButton → components/SuggestionButton}/index.cjs +11 -14
  155. package/dist/{SuggestionButton → components/SuggestionButton}/index.js +10 -10
  156. package/dist/{TextInput/index.d.cts → components/TextInput/index-CRJMRe-b.d.cts} +2 -2
  157. package/dist/{TextInput/index.d.ts → components/TextInput/index-DAhxej1K.d.ts} +2 -2
  158. package/dist/components/TextInput/index.cjs +4 -0
  159. package/dist/components/TextInput/index.js +4 -0
  160. package/dist/{ToggleButton/index.d.cts → components/ToggleButton/index-eLDrp4ic.d.cts} +2 -2
  161. package/dist/{ToggleButton/index.d.ts → components/ToggleButton/index-pFQuGdoj.d.ts} +2 -2
  162. package/dist/components/ToggleButton/index.cjs +4 -0
  163. package/dist/components/ToggleButton/index.js +4 -0
  164. package/dist/components/Typography/index-DzSBreyM.d.cts +3 -0
  165. package/dist/components/Typography/index-ymH7f3jB.d.ts +3 -0
  166. package/dist/{Typography → components/Typography}/index.cjs +1 -1
  167. package/dist/components/Typography/index.js +3 -0
  168. package/dist/formatPrice-CyfkjZ3R.cjs +19 -0
  169. package/dist/formatPrice-DexQu2aZ.js +13 -0
  170. package/dist/index-BCBtAzCc.d.ts +325 -0
  171. package/dist/{SearchResultsFilterSidebar/index.d.ts → index-BiKhzraQ.d.cts} +9 -5
  172. package/dist/{index-DoTNu3mL.d.cts → index-Bw6lDfEp.d.cts} +2 -2
  173. package/dist/index-CzbumwVZ.d.cts +325 -0
  174. package/dist/{SearchResultsFilterSidebar/index.d.cts → index-DK0xpfMg.d.ts} +9 -5
  175. package/dist/{index-C5iOTsRG.d.ts → index-DXGw5Z56.d.ts} +2 -2
  176. package/dist/jsx-runtime-Dg2m6dxZ-B-pkyyHT.cjs +2586 -0
  177. package/dist/jsx-runtime-Dg2m6dxZ-CU_SzTu4.js +2580 -0
  178. package/dist/{searchFilterSidebarVariants-BQ7OC862.cjs → searchFilterSidebarVariants-CjyRGKK_.cjs} +7 -10
  179. package/dist/{searchFilterSidebarVariants-C_rWIcxf.js → searchFilterSidebarVariants-gkgkflXx.js} +2 -3
  180. package/dist/types--eyQnaEA.d.cts +4 -0
  181. package/dist/types-D6fl4HOx.d.ts +4 -0
  182. package/dist/{typographyVariantClasses-BFRoEloZ.d.cts → typographyVariantClasses-CoRhazCU.d.cts} +1 -1
  183. package/dist/{typographyVariantClasses-D7h3ACAj.d.ts → typographyVariantClasses-_oNpv-aN.d.ts} +1 -1
  184. package/dist/util/index-C2ueYGXh.d.ts +21 -0
  185. package/dist/util/index-DUzbpjPa.d.cts +21 -0
  186. package/dist/util/index.cjs +80 -0
  187. package/dist/util/index.js +76 -0
  188. package/package.json +79 -53
  189. package/src/atoms/search/types.ts +1 -0
  190. package/src/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.tsx +1 -1
  191. package/src/components/ButtonBase/types.ts +1 -1
  192. package/src/components/FilterScrollbar/AppliedFiltersScrollbar.tsx +1 -1
  193. package/src/components/ProductCard/ProductCard.tsx +12 -12
  194. package/src/components/ProductCard/ProductCardSkeleton.tsx +1 -13
  195. package/src/components/ProductCard/index.ts +1 -0
  196. package/src/components/ProductCard/productCardVariants.ts +1 -1
  197. package/src/components/ProductCard/types.ts +49 -0
  198. package/src/components/ProductGrid/ProductGrid.tsx +2 -6
  199. package/src/components/ProductGrid/productGridVariants.ts +1 -1
  200. package/src/components/RadioButton/RadioButton.tsx +1 -1
  201. package/src/components/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
  202. package/src/components/RecommendedProducts/RecommendedProducts.tsx +97 -0
  203. package/src/components/RecommendedProducts/index.ts +3 -0
  204. package/src/components/SearchFilter/SearchFilter.tsx +2 -1
  205. package/src/components/SearchFilter/SearchFilterFooter.tsx +1 -1
  206. package/src/components/SearchFilter/SearchFilterHeader.tsx +1 -1
  207. package/src/components/SearchFilter/SearchFilterItem.tsx +1 -1
  208. package/src/components/SearchFilter/types.ts +45 -0
  209. package/src/components/SearchFilter/useHasFilterStateChanged.tsx +1 -1
  210. package/src/components/SearchFilter/utils.ts +1 -1
  211. package/src/components/SearchInput/SearchInput.tsx +1 -1
  212. package/src/components/SearchInput/searchInputVariants.ts +2 -2
  213. package/src/components/SearchInputForm/SearchInputForm.tsx +10 -4
  214. package/src/components/SearchResultsContent/SearchResultsContent.tsx +72 -39
  215. package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +30 -0
  216. package/src/components/SearchResultsFilterButton/index.ts +3 -0
  217. package/src/components/SearchResultsFilterModal/SearchResultsFilterModal.tsx +61 -0
  218. package/src/components/SearchResultsFilterModal/index.ts +3 -0
  219. package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -1
  220. package/src/components/SearchResultsFilterSidebar/index.ts +1 -0
  221. package/src/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.ts +2 -2
  222. package/src/components/SearchResultsFilterSidebar/types.ts +2 -0
  223. package/src/components/SearchResultsStates/NoSearchResultsFound.tsx +43 -11
  224. package/src/components/SearchResultsStates/SearchResultsGrid.tsx +8 -7
  225. package/src/components/SearchResultsStates/SearchResultsLoadingGrid.tsx +1 -2
  226. package/src/components/SearchResultsToolbar/SearchResultsToolbar.tsx +111 -0
  227. package/src/components/SearchResultsToolbar/index.ts +3 -0
  228. package/src/components/SparkleAnimation/SparkleAnimation.tsx +1 -7
  229. package/src/components/SparkleAnimation/index.ts +1 -0
  230. package/src/components/SparkleAnimation/types.ts +6 -0
  231. package/src/components/SuggestionButton/SuggestionButton.tsx +1 -1
  232. package/src/config/chatElementDisplayLocation.ts +23 -0
  233. package/src/models/colorsConfig.ts +28 -0
  234. package/src/stories/AppliedFiltersScrollbar.stories.tsx +42 -0
  235. package/src/stories/ButtonBase.stories.tsx +54 -0
  236. package/src/stories/DynamicFiltersScrollbar.stories.tsx +42 -0
  237. package/src/stories/NoSearchResultsFound.stories.tsx +30 -0
  238. package/src/stories/ProductCard.stories.tsx +78 -0
  239. package/src/stories/ProductCardSkeleton.stories.tsx +48 -0
  240. package/src/stories/ProductGrid.stories.tsx +82 -0
  241. package/src/stories/SearchInputForm.stories.tsx +39 -0
  242. package/src/stories/SearchResultsFilter.stories.tsx +56 -0
  243. package/src/stories/SearchResultsGrid.stories.tsx +98 -0
  244. package/src/stories/SearchResultsLoadingGrid.stories.tsx +30 -0
  245. package/src/stories/SparkleAnimation.stories.tsx +47 -0
  246. package/src/stories/Typography.stories.tsx +140 -0
  247. package/src/util/camelCase.ts +87 -0
  248. package/src/util/camelCasedPropertiesDeep.ts +81 -0
  249. package/src/util/colorVar.ts +1 -1
  250. package/src/util/index.ts +4 -0
  251. package/src/util/internal.ts +97 -0
  252. package/src/util/primitive.ts +8 -0
  253. package/src/util/splitWords.ts +76 -0
  254. package/src/util/trim.ts +28 -0
  255. package/src/util/unknownArray.ts +25 -0
  256. package/src/util/useScrollDirection.ts +60 -0
  257. package/src/util/useStickyVisibility.ts +37 -0
  258. package/dist/Accordion/index.cjs +0 -4
  259. package/dist/Accordion/index.js +0 -4
  260. package/dist/AnimatedChevron/index.cjs +0 -3
  261. package/dist/AnimatedChevron/index.js +0 -3
  262. package/dist/ButtonBase/index.cjs +0 -6
  263. package/dist/ButtonBase/index.js +0 -5
  264. package/dist/FilterScrollbar/index.cjs +0 -5
  265. package/dist/FilterScrollbar/index.js +0 -4
  266. package/dist/ImageWithFallback/index.cjs +0 -3
  267. package/dist/ImageWithFallback/index.js +0 -3
  268. package/dist/ModalSheet/index.cjs +0 -4
  269. package/dist/ModalSheet/index.js +0 -4
  270. package/dist/ProductCard/index.d.cts +0 -82
  271. package/dist/ProductCard/index.d.ts +0 -82
  272. package/dist/ProductCard/index.js +0 -6
  273. package/dist/ProductGrid/index.cjs +0 -8
  274. package/dist/ProductGrid/index.js +0 -7
  275. package/dist/RadioButton/index.cjs +0 -4
  276. package/dist/RadioButton/index.js +0 -4
  277. package/dist/RadioButtonGroup/index.cjs +0 -6
  278. package/dist/RadioButtonGroup/index.js +0 -5
  279. package/dist/SearchAutocomplete/index.cjs +0 -4
  280. package/dist/SearchAutocomplete/index.js +0 -4
  281. package/dist/SearchFilter/index.cjs +0 -17
  282. package/dist/SearchFilter/index.d.cts +0 -54
  283. package/dist/SearchFilter/index.d.ts +0 -54
  284. package/dist/SearchFilter/index.js +0 -12
  285. package/dist/SearchInput/index.cjs +0 -7
  286. package/dist/SearchInput/index.js +0 -6
  287. package/dist/SearchResultsContent/index.cjs +0 -44
  288. package/dist/SearchResultsContent/index.js +0 -41
  289. package/dist/SearchResultsStates/index.cjs +0 -14
  290. package/dist/SearchResultsStates/index.js +0 -12
  291. package/dist/SearchResultsStates-C-8fh8B9.cjs +0 -132
  292. package/dist/SearchResultsStates-D62WbDTD.js +0 -110
  293. package/dist/SparkleAnimation/index.cjs +0 -3
  294. package/dist/SparkleAnimation/index.d.cts +0 -15
  295. package/dist/SparkleAnimation/index.d.ts +0 -15
  296. package/dist/SparkleAnimation/index.js +0 -3
  297. package/dist/Spinner/index.cjs +0 -3
  298. package/dist/Spinner/index.js +0 -3
  299. package/dist/TextInput/index.cjs +0 -4
  300. package/dist/TextInput/index.js +0 -4
  301. package/dist/ToggleButton/index.cjs +0 -4
  302. package/dist/ToggleButton/index.js +0 -4
  303. package/dist/Typography/index.d.cts +0 -3
  304. package/dist/Typography/index.d.ts +0 -3
  305. package/dist/Typography/index.js +0 -3
  306. package/dist/colorVar-B5CLhSof.cjs +0 -11
  307. package/dist/colorVar-BJve0Z4_.js +0 -5
  308. /package/dist/{ButtonBase-DbWQ25n-.cjs → ButtonBase-Cb6Iec6f.cjs} +0 -0
  309. /package/dist/{ButtonBase-C_uKnl48.js → ButtonBase-D2eXuapk.js} +0 -0
@@ -0,0 +1,97 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ // these types come from https://github.com/sindresorhus/type-fest/blob/main/source/internal.d.ts
3
+
4
+ import type { Primitive } from './primitive';
5
+ import type { Trim } from './trim';
6
+
7
+ /**
8
+ * Matches any primitive, `void`, `Date`, or `RegExp` value.
9
+ */
10
+ export type BuiltIns = Primitive | void | Date | RegExp;
11
+
12
+ /**
13
+ * Matches non-recursive types.
14
+ */
15
+ export type NonRecursiveType =
16
+ | BuiltIns
17
+ | ((...arguments_: any[]) => unknown)
18
+ | (new (...arguments_: any[]) => unknown);
19
+
20
+ /**
21
+ * Returns a boolean for whether the string is numeric.
22
+ *
23
+ * This type is a workaround for [Microsoft/TypeScript#46109](https://github.com/microsoft/TypeScript/issues/46109#issuecomment-930307987).
24
+ */
25
+ export type IsNumeric<T extends string> = T extends `${number}`
26
+ ? Trim<T> extends T
27
+ ? true
28
+ : false
29
+ : false;
30
+
31
+ /**
32
+ * Returns a boolean for whether the string is lowercased.
33
+ */
34
+ export type IsLowerCase<T extends string> = T extends Lowercase<T> ? true : false;
35
+
36
+ /**
37
+ * Returns a boolean for whether the string is upper-cased.
38
+ */
39
+ export type IsUpperCase<T extends string> = T extends Uppercase<T> ? true : false;
40
+
41
+ export type WordSeparators = '-' | '_' | Whitespace;
42
+
43
+ export type Whitespace =
44
+ | '\u{9}' // '\t'
45
+ | '\u{A}' // '\n'
46
+ | '\u{B}' // '\v'
47
+ | '\u{C}' // '\f'
48
+ | '\u{D}' // '\r'
49
+ | '\u{20}' // ' '
50
+ | '\u{85}'
51
+ | '\u{A0}'
52
+ | '\u{1680}'
53
+ | '\u{2000}'
54
+ | '\u{2001}'
55
+ | '\u{2002}'
56
+ | '\u{2003}'
57
+ | '\u{2004}'
58
+ | '\u{2005}'
59
+ | '\u{2006}'
60
+ | '\u{2007}'
61
+ | '\u{2008}'
62
+ | '\u{2009}'
63
+ | '\u{200A}'
64
+ | '\u{2028}'
65
+ | '\u{2029}'
66
+ | '\u{202F}'
67
+ | '\u{205F}'
68
+ | '\u{3000}'
69
+ | '\u{FEFF}';
70
+
71
+ export type UpperCaseCharacters =
72
+ | 'A'
73
+ | 'B'
74
+ | 'C'
75
+ | 'D'
76
+ | 'E'
77
+ | 'F'
78
+ | 'G'
79
+ | 'H'
80
+ | 'I'
81
+ | 'J'
82
+ | 'K'
83
+ | 'L'
84
+ | 'M'
85
+ | 'N'
86
+ | 'O'
87
+ | 'P'
88
+ | 'Q'
89
+ | 'R'
90
+ | 'S'
91
+ | 'T'
92
+ | 'U'
93
+ | 'V'
94
+ | 'W'
95
+ | 'X'
96
+ | 'Y'
97
+ | 'Z';
@@ -0,0 +1,8 @@
1
+ // this type comes from https://github.com/sindresorhus/type-fest/blob/main/source/primitive.d.ts
2
+
3
+ /**
4
+ * Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
5
+ *
6
+ * @category Type
7
+ */
8
+ export type Primitive = null | undefined | string | number | boolean | symbol | bigint;
@@ -0,0 +1,76 @@
1
+ // these types come from https://github.com/sindresorhus/type-fest/blob/main/source/split-words.d.ts
2
+
3
+ import type { IsLowerCase, IsNumeric, IsUpperCase, WordSeparators } from './internal';
4
+
5
+ type SkipEmptyWord<Word extends string> = Word extends '' ? [] : [Word];
6
+
7
+ type RemoveLastCharacter<
8
+ Sentence extends string,
9
+ Character extends string,
10
+ > = Sentence extends `${infer LeftSide}${Character}` ? SkipEmptyWord<LeftSide> : never;
11
+
12
+ /**
13
+ * Split a string (almost) like Lodash's `_.words()` function.
14
+ *
15
+ * - Split on each word that begins with a capital letter.
16
+ * - Split on each {@link WordSeparators}.
17
+ * - Split on numeric sequence.
18
+ *
19
+ * @example
20
+ * ```
21
+ * type Words0 = SplitWords<'helloWorld'>; // ['hello', 'World']
22
+ * type Words1 = SplitWords<'helloWORLD'>; // ['hello', 'WORLD']
23
+ * type Words2 = SplitWords<'hello-world'>; // ['hello', 'world']
24
+ * type Words3 = SplitWords<'--hello the_world'>; // ['hello', 'the', 'world']
25
+ * type Words4 = SplitWords<'lifeIs42'>; // ['life', 'Is', '42']
26
+ * ```
27
+ *
28
+ * @internal
29
+ * @category Change case
30
+ * @category Template literal
31
+ */
32
+ export type SplitWords<
33
+ Sentence extends string,
34
+ LastCharacter extends string = '',
35
+ CurrentWord extends string = '',
36
+ > = Sentence extends `${infer FirstCharacter}${infer RemainingCharacters}`
37
+ ? FirstCharacter extends WordSeparators
38
+ ? // Skip word separator
39
+ [...SkipEmptyWord<CurrentWord>, ...SplitWords<RemainingCharacters>]
40
+ : LastCharacter extends ''
41
+ ? // Fist char of word
42
+ SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>
43
+ : // Case change: non-numeric to numeric, push word
44
+ [false, true] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>]
45
+ ? [
46
+ ...SkipEmptyWord<CurrentWord>,
47
+ ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>,
48
+ ]
49
+ : // Case change: numeric to non-numeric, push word
50
+ [true, false] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>]
51
+ ? [
52
+ ...SkipEmptyWord<CurrentWord>,
53
+ ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>,
54
+ ]
55
+ : // No case change: concat word
56
+ [true, true] extends [IsNumeric<LastCharacter>, IsNumeric<FirstCharacter>]
57
+ ? SplitWords<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`>
58
+ : // Case change: lower to upper, push word
59
+ [true, true] extends [IsLowerCase<LastCharacter>, IsUpperCase<FirstCharacter>]
60
+ ? [
61
+ ...SkipEmptyWord<CurrentWord>,
62
+ ...SplitWords<RemainingCharacters, FirstCharacter, FirstCharacter>,
63
+ ]
64
+ : // Case change: upper to lower, brings back the last character, push word
65
+ [true, true] extends [IsUpperCase<LastCharacter>, IsLowerCase<FirstCharacter>]
66
+ ? [
67
+ ...RemoveLastCharacter<CurrentWord, LastCharacter>,
68
+ ...SplitWords<
69
+ RemainingCharacters,
70
+ FirstCharacter,
71
+ `${LastCharacter}${FirstCharacter}`
72
+ >,
73
+ ]
74
+ : // No case change: concat word
75
+ SplitWords<RemainingCharacters, FirstCharacter, `${CurrentWord}${FirstCharacter}`>
76
+ : [...SkipEmptyWord<CurrentWord>];
@@ -0,0 +1,28 @@
1
+ // these types come from https://github.com/sindresorhus/type-fest/blob/main/source/trim.d.ts
2
+
3
+ import type { Whitespace } from './internal';
4
+
5
+ /**
6
+ * Remove spaces from the left side.
7
+ */
8
+ type TrimLeft<V extends string> = V extends `${Whitespace}${infer R}` ? TrimLeft<R> : V;
9
+
10
+ /**
11
+ * Remove spaces from the right side.
12
+ */
13
+ type TrimRight<V extends string> = V extends `${infer R}${Whitespace}` ? TrimRight<R> : V;
14
+
15
+ /**
16
+ * Remove leading and trailing spaces from a string.
17
+ * @example
18
+ * ```
19
+ * import type {Trim} from 'type-fest';
20
+ *
21
+ * Trim<' foo '>
22
+ * //=> 'foo'
23
+ * ```
24
+ *
25
+ * @category String
26
+ * @category Template literal
27
+ */
28
+ export type Trim<V extends string> = TrimLeft<TrimRight<V>>;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Represents an array with `unknown` value.
3
+ *
4
+ * Use case: You want a type that all arrays can be assigned to, but you don't care about the value.
5
+ *
6
+ * @example
7
+ * ```
8
+ * import type {UnknownArray} from 'type-fest';
9
+ *
10
+ * type IsArray<T> = T extends UnknownArray ? true : false;
11
+ *
12
+ * type A = IsArray<['foo']>;
13
+ * //=> true
14
+ *
15
+ * type B = IsArray<readonly number[]>;
16
+ * //=> true
17
+ *
18
+ * type C = IsArray<string>;
19
+ * //=> false
20
+ * ```
21
+ *
22
+ * @category Type
23
+ * @category Array
24
+ */
25
+ export type UnknownArray = readonly unknown[];
@@ -0,0 +1,60 @@
1
+ import { useState, useEffect, useRef } from 'react';
2
+
3
+ export type ScrollDirection = 'up' | 'down';
4
+
5
+ export const useScrollDirection = (scrollContainerRef?: React.RefObject<HTMLElement>) => {
6
+ const [scrollDirection, setScrollDirection] = useState<ScrollDirection | null>(null);
7
+ const touchStartY = useRef(0);
8
+
9
+ useEffect(() => {
10
+ const container = scrollContainerRef?.current || window;
11
+ const touchTarget = scrollContainerRef?.current || document;
12
+
13
+ const handleWheel = (e: Event) => {
14
+ const event = e as WheelEvent;
15
+ if (event.deltaY > 0) {
16
+ setScrollDirection('down');
17
+ } else {
18
+ setScrollDirection('up');
19
+ }
20
+ };
21
+
22
+ const handleTouchStart = (e: Event) => {
23
+ const event = e as TouchEvent;
24
+ touchStartY.current = event.touches[0].clientY;
25
+ };
26
+
27
+ const handleTouchMove = (e: Event) => {
28
+ const event = e as TouchEvent;
29
+ const currentTouchY = event.touches[0].clientY;
30
+ const deltaY = touchStartY.current - currentTouchY;
31
+
32
+ const TOUCH_THRESHOLD = 10; // pixels
33
+
34
+ if (Math.abs(deltaY) < TOUCH_THRESHOLD) {
35
+ return;
36
+ }
37
+
38
+ if (deltaY > 0) {
39
+ setScrollDirection('down');
40
+ } else {
41
+ setScrollDirection('up');
42
+ }
43
+
44
+ // Reset the starting point to prevent continuous firing
45
+ touchStartY.current = currentTouchY;
46
+ };
47
+
48
+ container.addEventListener('wheel', handleWheel, { passive: true });
49
+ touchTarget.addEventListener('touchstart', handleTouchStart, { passive: true });
50
+ touchTarget.addEventListener('touchmove', handleTouchMove, { passive: true });
51
+
52
+ return () => {
53
+ container.removeEventListener('wheel', handleWheel);
54
+ touchTarget.removeEventListener('touchstart', handleTouchStart);
55
+ touchTarget.removeEventListener('touchmove', handleTouchMove);
56
+ };
57
+ }, [scrollContainerRef]);
58
+
59
+ return scrollDirection;
60
+ };
@@ -0,0 +1,37 @@
1
+ import { useState, useEffect, useRef } from 'react';
2
+ import { useScrollDirection } from './useScrollDirection';
3
+
4
+ export const useStickyVisibility = () => {
5
+ const [isVisible, setIsVisible] = useState(true);
6
+ const toolbarRef = useRef<HTMLDivElement>(null);
7
+ const [toolbarHeight, setToolbarHeight] = useState(0);
8
+ const [scrollY, setScrollY] = useState(0);
9
+
10
+ const scrollDirection = useScrollDirection();
11
+
12
+ // listen for scroll events
13
+ useEffect(() => {
14
+ const handleScroll = () => {
15
+ setScrollY(window.scrollY);
16
+ };
17
+ window.addEventListener('scroll', handleScroll, { passive: true });
18
+ return () => window.removeEventListener('scroll', handleScroll);
19
+ }, []);
20
+
21
+ // measure the toolbars height
22
+ useEffect(() => {
23
+ if (toolbarRef.current) {
24
+ setToolbarHeight(toolbarRef.current.offsetHeight);
25
+ }
26
+ }, []);
27
+
28
+ useEffect(() => {
29
+ if (scrollDirection === 'down' && scrollY > toolbarHeight && toolbarHeight > 0) {
30
+ setIsVisible(false);
31
+ } else {
32
+ setIsVisible(true);
33
+ }
34
+ }, [scrollDirection, toolbarHeight, scrollY]);
35
+
36
+ return { toolbarRef, isVisible, toolbarHeight };
37
+ };
@@ -1,4 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- const require_Accordion = require('../Accordion-FyCFBOen.cjs');
3
-
4
- exports.Accordion = require_Accordion.Accordion;
@@ -1,4 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import { Accordion } from "../Accordion-B8aUlf0q.js";
3
-
4
- export { Accordion };
@@ -1,3 +0,0 @@
1
- const require_AnimatedChevron = require('../AnimatedChevron-wpcAHp6d.cjs');
2
-
3
- exports.AnimatedChevron = require_AnimatedChevron.AnimatedChevron;
@@ -1,3 +0,0 @@
1
- import { AnimatedChevron } from "../AnimatedChevron-Dee6Pe81.js";
2
-
3
- export { AnimatedChevron };
@@ -1,6 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- const require_ButtonBase = require('../ButtonBase-B6vDKbGQ.cjs');
3
- require('../ButtonBase-DbWQ25n-.cjs');
4
-
5
- exports.ButtonBase = require_ButtonBase.ButtonBase;
6
- exports.ButtonBaseOverrides = require_ButtonBase.ButtonBaseOverrides;
@@ -1,5 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import { ButtonBase, ButtonBaseOverrides } from "../ButtonBase-Bpc7nOpz.js";
3
- import "../ButtonBase-C_uKnl48.js";
4
-
5
- export { ButtonBase, ButtonBaseOverrides };
@@ -1,5 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- const require_DynamicFiltersScrollbar = require('../DynamicFiltersScrollbar-DIwHWq6v.cjs');
3
-
4
- exports.AppliedFiltersScrollbar = require_DynamicFiltersScrollbar.AppliedFiltersScrollbar;
5
- exports.DynamicFiltersScrollbar = require_DynamicFiltersScrollbar.DynamicFiltersScrollbar;
@@ -1,4 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import { AppliedFiltersScrollbar, DynamicFiltersScrollbar } from "../DynamicFiltersScrollbar-D8OqC4DA.js";
3
-
4
- export { AppliedFiltersScrollbar, DynamicFiltersScrollbar };
@@ -1,3 +0,0 @@
1
- const require_ImageWithFallback = require('../ImageWithFallback-DvaVpR6v.cjs');
2
-
3
- exports.ImageWithFallback = require_ImageWithFallback.ImageWithFallback;
@@ -1,3 +0,0 @@
1
- import { ImageWithFallback } from "../ImageWithFallback-BW57cQw-.js";
2
-
3
- export { ImageWithFallback };
@@ -1,4 +0,0 @@
1
- require('../AnimatedChevron-wpcAHp6d.cjs');
2
- const require_ModalSheet = require('../ModalSheet-BvM2PJbH.cjs');
3
-
4
- exports.ModalSheet = require_ModalSheet.ModalSheet;
@@ -1,4 +0,0 @@
1
- import "../AnimatedChevron-Dee6Pe81.js";
2
- import { ModalSheet } from "../ModalSheet-DFva7krP.js";
3
-
4
- export { ModalSheet };
@@ -1,82 +0,0 @@
1
- import * as react_jsx_runtime26 from "react/jsx-runtime";
2
- import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, TestProps } from "@envive-ai/types";
3
- import { FC } from "react";
4
-
5
- //#region src/components/ProductCard/ProductCard.d.ts
6
- interface RatingSummaryProps {
7
- stars: number;
8
- reviewCount: number;
9
- className?: string;
10
- }
11
- declare const RatingSummary: ({
12
- stars,
13
- reviewCount,
14
- className
15
- }: RatingSummaryProps) => react_jsx_runtime26.JSX.Element;
16
- interface PriceSectionProps {
17
- originalPrice?: string;
18
- salePrice?: string;
19
- pricePrefix?: string;
20
- }
21
- declare const PriceSection: ({
22
- originalPrice,
23
- salePrice,
24
- pricePrefix
25
- }: PriceSectionProps) => react_jsx_runtime26.JSX.Element;
26
- interface ProductCardProps extends TestProps {
27
- productCardConfig?: ProductCardConfig;
28
- merchantShortName: string;
29
- title: string;
30
- url: string;
31
- imageUrl?: string;
32
- originalPrice?: number;
33
- averageRating?: number;
34
- numberReviews?: number;
35
- salePrice?: number;
36
- variant?: ProductCardVariant;
37
- hoverVariant?: ProductCardHoverVariant;
38
- layoutVariant?: ProductCardLayoutVariant;
39
- zoomOnHover?: boolean;
40
- aspectRatio?: '3:4' | 'square' | 'none';
41
- growWithContainer?: boolean;
42
- onClick?: () => void;
43
- }
44
- declare const ProductCard: ({
45
- productCardConfig,
46
- merchantShortName,
47
- imageUrl,
48
- title,
49
- url,
50
- originalPrice,
51
- averageRating,
52
- numberReviews,
53
- salePrice,
54
- variant,
55
- hoverVariant,
56
- dataTestId,
57
- layoutVariant,
58
- zoomOnHover,
59
- aspectRatio,
60
- growWithContainer,
61
- onClick
62
- }: ProductCardProps) => react_jsx_runtime26.JSX.Element;
63
- //#endregion
64
- //#region src/components/ProductCard/ProductCardSkeleton.d.ts
65
- type ProductCardImageAspectRatio = '3:4' | 'square' | 'none';
66
- interface ProductCardSkeletonProps {
67
- layoutVariant: ProductCardLayoutVariant;
68
- aspectRatio: ProductCardImageAspectRatio;
69
- growWithContainer?: boolean;
70
- }
71
- declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
72
- //#endregion
73
- //#region src/components/ProductCard/productCardVariants.d.ts
74
- /**
75
- * Shared variant mapping configurations for ProductCard components
76
- */
77
- declare const variantClassMap: Map<ProductCardVariant, string[]>;
78
- declare const variantHoverClassMap: Map<ProductCardHoverVariant, string[]>;
79
- declare const variantTitleColorMap: Map<ProductCardVariant, string>;
80
- declare const productCardLayoutVariantClasses: Record<ProductCardLayoutVariant, Record<string, string[]>>;
81
- //#endregion
82
- export { PriceSection, ProductCard, ProductCardSkeleton, RatingSummary, RatingSummaryProps, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,82 +0,0 @@
1
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
- import { FC } from "react";
3
- import { ProductCardConfig, ProductCardHoverVariant, ProductCardLayoutVariant, ProductCardVariant, TestProps } from "@envive-ai/types";
4
-
5
- //#region src/components/ProductCard/ProductCard.d.ts
6
- interface RatingSummaryProps {
7
- stars: number;
8
- reviewCount: number;
9
- className?: string;
10
- }
11
- declare const RatingSummary: ({
12
- stars,
13
- reviewCount,
14
- className
15
- }: RatingSummaryProps) => react_jsx_runtime22.JSX.Element;
16
- interface PriceSectionProps {
17
- originalPrice?: string;
18
- salePrice?: string;
19
- pricePrefix?: string;
20
- }
21
- declare const PriceSection: ({
22
- originalPrice,
23
- salePrice,
24
- pricePrefix
25
- }: PriceSectionProps) => react_jsx_runtime22.JSX.Element;
26
- interface ProductCardProps extends TestProps {
27
- productCardConfig?: ProductCardConfig;
28
- merchantShortName: string;
29
- title: string;
30
- url: string;
31
- imageUrl?: string;
32
- originalPrice?: number;
33
- averageRating?: number;
34
- numberReviews?: number;
35
- salePrice?: number;
36
- variant?: ProductCardVariant;
37
- hoverVariant?: ProductCardHoverVariant;
38
- layoutVariant?: ProductCardLayoutVariant;
39
- zoomOnHover?: boolean;
40
- aspectRatio?: '3:4' | 'square' | 'none';
41
- growWithContainer?: boolean;
42
- onClick?: () => void;
43
- }
44
- declare const ProductCard: ({
45
- productCardConfig,
46
- merchantShortName,
47
- imageUrl,
48
- title,
49
- url,
50
- originalPrice,
51
- averageRating,
52
- numberReviews,
53
- salePrice,
54
- variant,
55
- hoverVariant,
56
- dataTestId,
57
- layoutVariant,
58
- zoomOnHover,
59
- aspectRatio,
60
- growWithContainer,
61
- onClick
62
- }: ProductCardProps) => react_jsx_runtime22.JSX.Element;
63
- //#endregion
64
- //#region src/components/ProductCard/ProductCardSkeleton.d.ts
65
- type ProductCardImageAspectRatio = '3:4' | 'square' | 'none';
66
- interface ProductCardSkeletonProps {
67
- layoutVariant: ProductCardLayoutVariant;
68
- aspectRatio: ProductCardImageAspectRatio;
69
- growWithContainer?: boolean;
70
- }
71
- declare const ProductCardSkeleton: FC<ProductCardSkeletonProps>;
72
- //#endregion
73
- //#region src/components/ProductCard/productCardVariants.d.ts
74
- /**
75
- * Shared variant mapping configurations for ProductCard components
76
- */
77
- declare const variantClassMap: Map<ProductCardVariant, string[]>;
78
- declare const variantHoverClassMap: Map<ProductCardHoverVariant, string[]>;
79
- declare const variantTitleColorMap: Map<ProductCardVariant, string>;
80
- declare const productCardLayoutVariantClasses: Record<ProductCardLayoutVariant, Record<string, string[]>>;
81
- //#endregion
82
- export { PriceSection, ProductCard, ProductCardSkeleton, RatingSummary, RatingSummaryProps, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,6 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import "../ImageWithFallback-BW57cQw-.js";
3
- import { PriceSection, ProductCard, ProductCardSkeleton, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap } from "../ProductCard-BiWAcPO4.js";
4
- import "../Spinner-D2HbRsuw.js";
5
-
6
- export { PriceSection, ProductCard, ProductCardSkeleton, RatingSummary, productCardLayoutVariantClasses, variantClassMap, variantHoverClassMap, variantTitleColorMap };
@@ -1,8 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- require('../ImageWithFallback-DvaVpR6v.cjs');
3
- require('../ProductCard-C2KvH4MN.cjs');
4
- require('../Spinner-Ccy6VFEp.cjs');
5
- const require_ProductGrid = require('../ProductGrid-DkOyRAEg.cjs');
6
-
7
- exports.ProductGrid = require_ProductGrid.ProductGrid;
8
- exports.productGridVariantClasses = require_ProductGrid.productGridVariantClasses;
@@ -1,7 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import "../ImageWithFallback-BW57cQw-.js";
3
- import "../ProductCard-BiWAcPO4.js";
4
- import "../Spinner-D2HbRsuw.js";
5
- import { ProductGrid, productGridVariantClasses } from "../ProductGrid-B1RtE58G.js";
6
-
7
- export { ProductGrid, productGridVariantClasses };
@@ -1,4 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- const require_RadioButton = require('../RadioButton-DP-qs5cy.cjs');
3
-
4
- exports.RadioButton = require_RadioButton.RadioButton;
@@ -1,4 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import { RadioButton } from "../RadioButton-CQ6qOvBl.js";
3
-
4
- export { RadioButton };
@@ -1,6 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- require('../RadioButton-DP-qs5cy.cjs');
3
- const require_RadioButtonGroup = require('../RadioButtonGroup-CJPWfAaA.cjs');
4
-
5
- exports.RadioButtonGroup = require_RadioButtonGroup.RadioButtonGroup;
6
- exports.SPIFFY_RADIO_BUTTON_GROUP_CLASS = require_RadioButtonGroup.SPIFFY_RADIO_BUTTON_GROUP_CLASS;
@@ -1,5 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import "../RadioButton-CQ6qOvBl.js";
3
- import { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS } from "../RadioButtonGroup-Ce8cKqYw.js";
4
-
5
- export { RadioButtonGroup, SPIFFY_RADIO_BUTTON_GROUP_CLASS };
@@ -1,4 +0,0 @@
1
- require('../Typography-Ds4gfOJz.cjs');
2
- const require_SearchAutocomplete = require('../SearchAutocomplete-bbMvWWjI.cjs');
3
-
4
- exports.SearchAutocomplete = require_SearchAutocomplete.SearchAutocomplete;
@@ -1,4 +0,0 @@
1
- import "../Typography-C3QmJzFK.js";
2
- import { SearchAutocomplete } from "../SearchAutocomplete-CjjL2_lm.js";
3
-
4
- export { SearchAutocomplete };
@@ -1,17 +0,0 @@
1
- require('../AnimatedChevron-wpcAHp6d.cjs');
2
- require('../Typography-Ds4gfOJz.cjs');
3
- require('../Accordion-FyCFBOen.cjs');
4
- require('../ButtonBase-B6vDKbGQ.cjs');
5
- require('../ButtonBase-DbWQ25n-.cjs');
6
- require('../ModalSheet-BvM2PJbH.cjs');
7
- require('../RadioButton-DP-qs5cy.cjs');
8
- require('../RadioButtonGroup-CJPWfAaA.cjs');
9
- const require_SearchFilter = require('../SearchFilter-BLi6E9Wx.cjs');
10
- require('../ToggleButton-CvxNLMe_.cjs');
11
-
12
- exports.SearchFilter = require_SearchFilter.SearchFilter;
13
- exports.SearchFilterFooter = require_SearchFilter.SearchFilterFooter;
14
- exports.SearchFilterHeader = require_SearchFilter.SearchFilterHeader;
15
- exports.SearchFilterItem = require_SearchFilter.SearchFilterItem;
16
- exports.getSelectedFilterItemsCount = require_SearchFilter.getSelectedFilterItemsCount;
17
- exports.getTotalSelectedFilterItemsCount = require_SearchFilter.getTotalSelectedFilterItemsCount;