@envive-ai/react-toolkit 0.2.13 → 0.2.14

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 (397) hide show
  1. package/dist/{chunk-CbDLau6x.cjs → _virtual/rolldown_runtime.cjs} +1 -6
  2. package/dist/{types--eyQnaEA.d.cts → atoms/search/types.d.cts} +1 -1
  3. package/dist/{types-CQpdBL3M.d.ts → atoms/search/types.d.ts} +1 -1
  4. package/dist/{Accordion-Bc3o-NjV.cjs → components/Accordion/Accordion.cjs} +6 -10
  5. package/dist/components/Accordion/{index-DJOd-3Pi.d.ts → Accordion.d.cts} +2 -2
  6. package/dist/components/Accordion/{index-D_7-KJa0.d.cts → Accordion.d.ts} +2 -2
  7. package/dist/{Accordion-D8Vm8J1y.js → components/Accordion/Accordion.js} +3 -2
  8. package/dist/components/Accordion/index.cjs +1 -2
  9. package/dist/components/Accordion/index.d.cts +2 -0
  10. package/dist/components/Accordion/index.d.ts +2 -0
  11. package/dist/components/Accordion/index.js +1 -2
  12. package/dist/{AnimatedChevron-BKQrUKb5.cjs → components/AnimatedChevron/AnimatedChevron.cjs} +2 -7
  13. package/dist/components/AnimatedChevron/{index-BfdaL9eW.d.cts → AnimatedChevron.d.cts} +2 -2
  14. package/dist/components/AnimatedChevron/{index-bNdUYDzX.d.ts → AnimatedChevron.d.ts} +2 -2
  15. package/dist/{AnimatedChevron-DghLnmlM.js → components/AnimatedChevron/AnimatedChevron.js} +1 -1
  16. package/dist/components/AnimatedChevron/index.cjs +1 -1
  17. package/dist/components/AnimatedChevron/index.d.cts +2 -0
  18. package/dist/components/AnimatedChevron/index.d.ts +2 -0
  19. package/dist/components/AnimatedChevron/index.js +1 -1
  20. package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.cjs +45 -0
  21. package/dist/components/AppliedFiltersScrollbar/{index-B68Mx16E.d.cts → AppliedFiltersScrollbar.d.cts} +2 -2
  22. package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.d.ts +22 -0
  23. package/dist/components/AppliedFiltersScrollbar/AppliedFiltersScrollbar.js +42 -0
  24. package/dist/components/AppliedFiltersScrollbar/index.cjs +2 -43
  25. package/dist/components/AppliedFiltersScrollbar/index.d.cts +2 -0
  26. package/dist/components/AppliedFiltersScrollbar/index.d.ts +2 -0
  27. package/dist/components/AppliedFiltersScrollbar/index.js +1 -39
  28. package/dist/{ButtonBase-Bm_QOyM1.cjs → components/ButtonBase/ButtonBase.cjs} +12 -29
  29. package/dist/components/ButtonBase/ButtonBase.d.cts +18 -0
  30. package/dist/components/ButtonBase/ButtonBase.d.ts +18 -0
  31. package/dist/{ButtonBase-CT397aT3.js → components/ButtonBase/ButtonBase.js} +8 -14
  32. package/dist/components/ButtonBase/index.cjs +3 -4
  33. package/dist/components/ButtonBase/index.d.cts +3 -0
  34. package/dist/components/ButtonBase/index.d.ts +3 -0
  35. package/dist/components/ButtonBase/index.js +2 -3
  36. package/dist/components/ButtonBase/types.cjs +11 -0
  37. package/dist/components/ButtonBase/{index-3ltL6jhO.d.ts → types.d.cts} +4 -19
  38. package/dist/components/ButtonBase/{index-CcVRnbuQ.d.cts → types.d.ts} +4 -19
  39. package/dist/components/ButtonBase/types.js +10 -0
  40. package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.cjs +33 -0
  41. package/dist/components/DynamicFiltersScrollbar/{index-B483Jhki.d.cts → DynamicFiltersScrollbar.d.cts} +2 -2
  42. package/dist/components/DynamicFiltersScrollbar/{index-B_a6Oebn.d.ts → DynamicFiltersScrollbar.d.ts} +2 -2
  43. package/dist/components/DynamicFiltersScrollbar/DynamicFiltersScrollbar.js +30 -0
  44. package/dist/components/DynamicFiltersScrollbar/index.cjs +2 -31
  45. package/dist/components/DynamicFiltersScrollbar/index.d.cts +2 -0
  46. package/dist/components/DynamicFiltersScrollbar/index.d.ts +2 -0
  47. package/dist/components/DynamicFiltersScrollbar/index.js +1 -27
  48. package/dist/{DynamicFiltersScrollbar-bT3VoG-D.cjs → components/FilterScrollbar/AppliedFiltersScrollbar.cjs} +6 -39
  49. package/dist/components/FilterScrollbar/{index-CISEdkBM.d.ts → AppliedFiltersScrollbar.d.cts} +1 -26
  50. package/dist/components/{AppliedFiltersScrollbar/index-B9u7XRmf.d.ts → FilterScrollbar/AppliedFiltersScrollbar.d.ts} +1 -1
  51. package/dist/{DynamicFiltersScrollbar-CibstqNd.js → components/FilterScrollbar/AppliedFiltersScrollbar.js} +3 -25
  52. package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +33 -0
  53. package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.cts +28 -0
  54. package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.d.ts +28 -0
  55. package/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +30 -0
  56. package/dist/components/FilterScrollbar/index.cjs +3 -3
  57. package/dist/components/FilterScrollbar/index.d.cts +3 -0
  58. package/dist/components/FilterScrollbar/index.d.ts +3 -0
  59. package/dist/components/FilterScrollbar/index.js +2 -2
  60. package/dist/{ImageWithFallback-BiBjNK-9.cjs → components/ImageWithFallback/ImageWithFallback.cjs} +4 -9
  61. package/dist/components/ImageWithFallback/{index-Dk89vxqv.d.cts → ImageWithFallback.d.cts} +2 -2
  62. package/dist/components/ImageWithFallback/{index-CCWzf6ZV.d.ts → ImageWithFallback.d.ts} +2 -2
  63. package/dist/{ImageWithFallback-_QZT0EKI.js → components/ImageWithFallback/ImageWithFallback.js} +1 -1
  64. package/dist/components/ImageWithFallback/index.cjs +1 -1
  65. package/dist/components/ImageWithFallback/index.d.cts +2 -0
  66. package/dist/components/ImageWithFallback/index.d.ts +2 -0
  67. package/dist/components/ImageWithFallback/index.js +1 -1
  68. package/dist/components/ModalSheet/ModalSheet.cjs +30 -0
  69. package/dist/components/ModalSheet/ModalSheet.d.cts +15 -0
  70. package/dist/components/ModalSheet/ModalSheet.d.ts +15 -0
  71. package/dist/components/ModalSheet/ModalSheet.js +29 -0
  72. package/dist/components/ModalSheet/desktop/desktopHeader.cjs +26 -0
  73. package/dist/components/ModalSheet/desktop/desktopHeader.js +24 -0
  74. package/dist/components/ModalSheet/desktop/index.cjs +122 -0
  75. package/dist/components/ModalSheet/desktop/index.js +120 -0
  76. package/dist/components/ModalSheet/index.cjs +1 -2
  77. package/dist/components/ModalSheet/index.d.cts +2 -0
  78. package/dist/components/ModalSheet/index.d.ts +2 -0
  79. package/dist/components/ModalSheet/index.js +1 -2
  80. package/dist/components/ModalSheet/mobile/index.cjs +116 -0
  81. package/dist/components/ModalSheet/mobile/index.js +114 -0
  82. package/dist/components/ModalSheet/mobile/mobileHeader.cjs +38 -0
  83. package/dist/components/ModalSheet/mobile/mobileHeader.js +36 -0
  84. package/dist/components/ModalSheet/{index-C_8baIZK.d.cts → types.d.cts} +1 -14
  85. package/dist/components/ModalSheet/{index-CI0qFVA7.d.ts → types.d.ts} +1 -14
  86. package/dist/{ProductCard-C3seoFWE.cjs → components/ProductCard/ProductCard.cjs} +19 -171
  87. package/dist/components/ProductCard/ProductCard.d.cts +64 -0
  88. package/dist/components/ProductCard/ProductCard.d.ts +64 -0
  89. package/dist/{ProductCard-ChitHvuc.js → components/ProductCard/ProductCard.js} +10 -105
  90. package/dist/components/ProductCard/ProductCardSkeleton.cjs +33 -0
  91. package/dist/components/ProductCard/ProductCardSkeleton.d.cts +7 -0
  92. package/dist/components/ProductCard/ProductCardSkeleton.d.ts +7 -0
  93. package/dist/components/ProductCard/ProductCardSkeleton.js +31 -0
  94. package/dist/components/ProductCard/index.cjs +11 -12
  95. package/dist/components/ProductCard/index.d.cts +5 -0
  96. package/dist/components/ProductCard/index.d.ts +5 -0
  97. package/dist/components/ProductCard/index.js +4 -5
  98. package/dist/components/ProductCard/productCardVariants.cjs +49 -0
  99. package/dist/components/ProductCard/productCardVariants.d.cts +13 -0
  100. package/dist/components/ProductCard/productCardVariants.d.ts +13 -0
  101. package/dist/components/ProductCard/productCardVariants.js +45 -0
  102. package/dist/components/ProductCard/types.cjs +16 -0
  103. package/dist/components/ProductCard/types.d.cts +43 -0
  104. package/dist/components/ProductCard/types.d.ts +43 -0
  105. package/dist/components/ProductCard/types.js +14 -0
  106. package/dist/{ProductGrid-Ct2DvLGf.cjs → components/ProductGrid/ProductGrid.cjs} +7 -35
  107. package/dist/components/ProductGrid/ProductGrid.d.cts +25 -0
  108. package/dist/components/ProductGrid/ProductGrid.d.ts +25 -0
  109. package/dist/{ProductGrid-DukHo_KY.js → components/ProductGrid/ProductGrid.js} +4 -21
  110. package/dist/components/ProductGrid/index.cjs +3 -7
  111. package/dist/components/ProductGrid/index.d.cts +3 -0
  112. package/dist/components/ProductGrid/index.d.ts +3 -0
  113. package/dist/components/ProductGrid/index.js +2 -6
  114. package/dist/components/ProductGrid/productGridVariants.cjs +21 -0
  115. package/dist/components/ProductGrid/productGridVariants.d.cts +13 -0
  116. package/dist/components/ProductGrid/productGridVariants.d.ts +13 -0
  117. package/dist/components/ProductGrid/productGridVariants.js +20 -0
  118. package/dist/{RadioButton-D4TPq1Aa.cjs → components/RadioButton/RadioButton.cjs} +5 -9
  119. package/dist/components/RadioButton/{index-BWo-a19v.d.ts → RadioButton.d.cts} +2 -2
  120. package/dist/components/RadioButton/{index-DsVASVAv.d.cts → RadioButton.d.ts} +2 -2
  121. package/dist/{RadioButton-C1w7N40t.js → components/RadioButton/RadioButton.js} +3 -2
  122. package/dist/components/RadioButton/index.cjs +1 -2
  123. package/dist/components/RadioButton/index.d.cts +2 -0
  124. package/dist/components/RadioButton/index.d.ts +2 -0
  125. package/dist/components/RadioButton/index.js +1 -2
  126. package/dist/{RadioButtonGroup-BhZloLH6.cjs → components/RadioButtonGroup/RadioButtonGroup.cjs} +6 -15
  127. package/dist/components/RadioButtonGroup/{index-CiljmnzJ.d.cts → RadioButtonGroup.d.cts} +2 -2
  128. package/dist/components/RadioButtonGroup/{index-DdyMuFCX.d.ts → RadioButtonGroup.d.ts} +2 -2
  129. package/dist/{RadioButtonGroup-BWQ4-m2M.js → components/RadioButtonGroup/RadioButtonGroup.js} +3 -2
  130. package/dist/components/RadioButtonGroup/index.cjs +1 -3
  131. package/dist/components/RadioButtonGroup/index.d.cts +2 -0
  132. package/dist/components/RadioButtonGroup/index.d.ts +2 -0
  133. package/dist/components/RadioButtonGroup/index.js +1 -3
  134. package/dist/{RecommendedProducts-Cy-1szYc.cjs → components/RecommendedProducts/RecommendedProducts.cjs} +7 -10
  135. package/dist/{RecommendedProducts-DooGvLFT.js → components/RecommendedProducts/RecommendedProducts.js} +5 -3
  136. package/dist/components/RecommendedProducts/index.cjs +1 -7
  137. package/dist/components/RecommendedProducts/index.d.cts +2 -0
  138. package/dist/components/RecommendedProducts/index.d.ts +2 -0
  139. package/dist/components/RecommendedProducts/index.js +1 -7
  140. package/dist/{SearchAutocomplete-C1XH39Xx.cjs → components/SearchAutocomplete/SearchAutocomplete.cjs} +7 -11
  141. package/dist/components/SearchAutocomplete/{index-BBUrFTl5.d.ts → SearchAutocomplete.d.cts} +2 -2
  142. package/dist/components/SearchAutocomplete/{index-OVMqT8K4.d.cts → SearchAutocomplete.d.ts} +2 -2
  143. package/dist/{SearchAutocomplete-CuuN0cDu.js → components/SearchAutocomplete/SearchAutocomplete.js} +3 -2
  144. package/dist/components/SearchAutocomplete/index.cjs +1 -2
  145. package/dist/components/SearchAutocomplete/index.d.cts +2 -0
  146. package/dist/components/SearchAutocomplete/index.d.ts +2 -0
  147. package/dist/components/SearchAutocomplete/index.js +1 -2
  148. package/dist/components/SearchFilter/SearchFilter.cjs +134 -0
  149. package/dist/components/SearchFilter/SearchFilter.d.cts +23 -0
  150. package/dist/components/SearchFilter/SearchFilter.d.ts +23 -0
  151. package/dist/components/SearchFilter/SearchFilter.js +132 -0
  152. package/dist/components/SearchFilter/SearchFilterFooter.cjs +48 -0
  153. package/dist/components/SearchFilter/SearchFilterFooter.d.cts +14 -0
  154. package/dist/components/SearchFilter/SearchFilterFooter.d.ts +14 -0
  155. package/dist/components/SearchFilter/SearchFilterFooter.js +46 -0
  156. package/dist/components/SearchFilter/SearchFilterHeader.cjs +42 -0
  157. package/dist/components/SearchFilter/SearchFilterHeader.d.cts +12 -0
  158. package/dist/components/SearchFilter/SearchFilterHeader.d.ts +12 -0
  159. package/dist/components/SearchFilter/SearchFilterHeader.js +40 -0
  160. package/dist/components/SearchFilter/SearchFilterItem.cjs +41 -0
  161. package/dist/components/SearchFilter/SearchFilterItem.d.cts +13 -0
  162. package/dist/components/SearchFilter/SearchFilterItem.d.ts +13 -0
  163. package/dist/components/SearchFilter/SearchFilterItem.js +39 -0
  164. package/dist/components/SearchFilter/index.cjs +10 -15
  165. package/dist/components/SearchFilter/index.d.cts +6 -0
  166. package/dist/components/SearchFilter/index.d.ts +6 -0
  167. package/dist/components/SearchFilter/index.js +5 -10
  168. package/dist/components/SearchFilter/types.d.cts +42 -0
  169. package/dist/components/SearchFilter/types.d.ts +42 -0
  170. package/dist/components/SearchFilter/useHasFilterStateChanged.cjs +27 -0
  171. package/dist/components/SearchFilter/useHasFilterStateChanged.js +26 -0
  172. package/dist/components/SearchFilter/utils.cjs +11 -0
  173. package/dist/components/SearchFilter/utils.d.cts +7 -0
  174. package/dist/components/SearchFilter/utils.d.ts +7 -0
  175. package/dist/components/SearchFilter/utils.js +9 -0
  176. package/dist/{SearchInput-Cgsjew8Q.cjs → components/SearchInput/SearchInput.cjs} +10 -32
  177. package/dist/components/SearchInput/{index-UY0W77Y0.d.ts → SearchInput.d.cts} +1 -15
  178. package/dist/components/SearchInput/{index-rFDdhvqg.d.cts → SearchInput.d.ts} +1 -15
  179. package/dist/{SearchInput-DE9Iz7A8.js → components/SearchInput/SearchInput.js} +4 -15
  180. package/dist/components/SearchInput/index.cjs +3 -5
  181. package/dist/components/SearchInput/index.d.cts +3 -0
  182. package/dist/components/SearchInput/index.d.ts +3 -0
  183. package/dist/components/SearchInput/index.js +2 -4
  184. package/dist/components/SearchInput/searchInputVariants.cjs +15 -0
  185. package/dist/components/SearchInput/searchInputVariants.d.cts +16 -0
  186. package/dist/components/SearchInput/searchInputVariants.d.ts +16 -0
  187. package/dist/components/SearchInput/searchInputVariants.js +15 -0
  188. package/dist/{SearchInputForm-CSd4tjts.cjs → components/SearchInputForm/SearchInputForm.cjs} +8 -11
  189. package/dist/components/SearchInputForm/{index-D1F37qNH.d.ts → SearchInputForm.d.cts} +3 -3
  190. package/dist/components/SearchInputForm/{index-B3A17s3e.d.cts → SearchInputForm.d.ts} +3 -3
  191. package/dist/{SearchInputForm--CvVrjwl.js → components/SearchInputForm/SearchInputForm.js} +5 -3
  192. package/dist/components/SearchInputForm/index.cjs +1 -6
  193. package/dist/components/SearchInputForm/index.d.cts +2 -0
  194. package/dist/components/SearchInputForm/index.d.ts +2 -0
  195. package/dist/components/SearchInputForm/index.js +1 -6
  196. package/dist/components/SearchResultsContent/SearchResultsContent.cjs +52 -0
  197. package/dist/components/SearchResultsContent/{index-BI4Dm7mI.d.ts → SearchResultsContent.d.cts} +5 -5
  198. package/dist/components/SearchResultsContent/{index-B66EnbgF.d.cts → SearchResultsContent.d.ts} +5 -5
  199. package/dist/components/SearchResultsContent/SearchResultsContent.js +50 -0
  200. package/dist/components/SearchResultsContent/index.cjs +2 -59
  201. package/dist/components/SearchResultsContent/index.d.cts +2 -0
  202. package/dist/components/SearchResultsContent/index.d.ts +2 -0
  203. package/dist/components/SearchResultsContent/index.js +1 -56
  204. package/dist/{SearchResultsFilterButton-BQqm4icD.cjs → components/SearchResultsFilterButton/SearchResultsFilterButton.cjs} +6 -10
  205. package/dist/components/SearchResultsFilterButton/{index-CCVZZUTR.d.cts → SearchResultsFilterButton.d.cts} +2 -2
  206. package/dist/components/SearchResultsFilterButton/{index-Cjq_NOxx.d.ts → SearchResultsFilterButton.d.ts} +2 -2
  207. package/dist/{SearchResultsFilterButton-CV11UTGi.js → components/SearchResultsFilterButton/SearchResultsFilterButton.js} +4 -3
  208. package/dist/components/SearchResultsFilterButton/index.cjs +1 -4
  209. package/dist/components/SearchResultsFilterButton/index.d.cts +2 -0
  210. package/dist/components/SearchResultsFilterButton/index.d.ts +2 -0
  211. package/dist/components/SearchResultsFilterButton/index.js +1 -4
  212. package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +36 -0
  213. package/dist/components/SearchResultsFilterModal/{index-CMWDFJWT.d.cts → SearchResultsFilterModal.d.cts} +3 -3
  214. package/dist/components/SearchResultsFilterModal/{index-Ba84MNoM.d.ts → SearchResultsFilterModal.d.ts} +3 -3
  215. package/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +35 -0
  216. package/dist/components/SearchResultsFilterModal/index.cjs +2 -43
  217. package/dist/components/SearchResultsFilterModal/index.d.cts +2 -0
  218. package/dist/components/SearchResultsFilterModal/index.d.ts +2 -0
  219. package/dist/components/SearchResultsFilterModal/index.js +1 -41
  220. package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +51 -0
  221. package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.cts +27 -0
  222. package/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.d.ts +27 -0
  223. package/dist/{SearchResultsFilterSidebar-ydSo1S6h.js → components/SearchResultsFilterSidebar/SearchResultsFilter.js} +9 -72
  224. package/dist/components/SearchResultsFilterSidebar/index.cjs +3 -14
  225. package/dist/components/SearchResultsFilterSidebar/index.d.cts +4 -0
  226. package/dist/components/SearchResultsFilterSidebar/index.d.ts +4 -0
  227. package/dist/components/SearchResultsFilterSidebar/index.js +2 -13
  228. package/dist/{searchFilterSidebarVariants-C61Byr1S.cjs → components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs} +2 -7
  229. package/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.cts +19 -0
  230. package/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.d.ts +19 -0
  231. package/dist/{searchFilterSidebarVariants-DcwlBfvY.js → components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js} +2 -2
  232. package/dist/components/SearchResultsFilterSidebar/types.d.cts +5 -0
  233. package/dist/components/SearchResultsFilterSidebar/types.d.ts +5 -0
  234. package/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +57 -0
  235. package/dist/components/SearchResultsStates/NoSearchResultsFound.d.cts +25 -0
  236. package/dist/components/SearchResultsStates/NoSearchResultsFound.d.ts +25 -0
  237. package/dist/components/SearchResultsStates/NoSearchResultsFound.js +54 -0
  238. package/dist/components/SearchResultsStates/SearchResultsGrid.cjs +53 -0
  239. package/dist/components/SearchResultsStates/SearchResultsGrid.d.cts +46 -0
  240. package/dist/components/SearchResultsStates/SearchResultsGrid.d.ts +46 -0
  241. package/dist/components/SearchResultsStates/SearchResultsGrid.js +51 -0
  242. package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +52 -0
  243. package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.cts +15 -0
  244. package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.d.ts +15 -0
  245. package/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +51 -0
  246. package/dist/components/SearchResultsStates/index.cjs +6 -15
  247. package/dist/components/SearchResultsStates/index.d.cts +4 -0
  248. package/dist/components/SearchResultsStates/index.d.ts +4 -0
  249. package/dist/components/SearchResultsStates/index.js +3 -12
  250. package/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +60 -0
  251. package/dist/components/SearchResultsToolbar/{index-_hxKcDDT.d.ts → SearchResultsToolbar.d.cts} +2 -2
  252. package/dist/components/SearchResultsToolbar/{index-M8RkRW3H.d.cts → SearchResultsToolbar.d.ts} +2 -2
  253. package/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +57 -0
  254. package/dist/components/SearchResultsToolbar/index.cjs +2 -64
  255. package/dist/components/SearchResultsToolbar/index.d.cts +2 -0
  256. package/dist/components/SearchResultsToolbar/index.d.ts +2 -0
  257. package/dist/components/SearchResultsToolbar/index.js +1 -60
  258. package/dist/{SparkleAnimation-Bg5qax1t.cjs → components/SparkleAnimation/SparkleAnimation.cjs} +9 -29
  259. package/dist/components/SparkleAnimation/SparkleAnimation.d.cts +15 -0
  260. package/dist/components/SparkleAnimation/SparkleAnimation.d.ts +15 -0
  261. package/dist/{SparkleAnimation-HY4cgwE3.js → components/SparkleAnimation/SparkleAnimation.js} +2 -11
  262. package/dist/components/SparkleAnimation/index.cjs +3 -2
  263. package/dist/components/SparkleAnimation/index.d.cts +3 -0
  264. package/dist/components/SparkleAnimation/index.d.ts +3 -0
  265. package/dist/components/SparkleAnimation/index.js +2 -1
  266. package/dist/components/SparkleAnimation/types.cjs +12 -0
  267. package/dist/components/SparkleAnimation/types.d.cts +9 -0
  268. package/dist/components/SparkleAnimation/types.d.ts +9 -0
  269. package/dist/components/SparkleAnimation/types.js +11 -0
  270. package/dist/{Spinner-CUrXDajS.cjs → components/Spinner/Spinner.cjs} +3 -8
  271. package/dist/components/Spinner/{index-DrYhRG9D.d.cts → Spinner.d.cts} +2 -2
  272. package/dist/components/Spinner/{index-C876igqb.d.ts → Spinner.d.ts} +2 -2
  273. package/dist/{Spinner-CDDFWySo.js → components/Spinner/Spinner.js} +1 -1
  274. package/dist/components/Spinner/index.cjs +1 -1
  275. package/dist/components/Spinner/index.d.cts +2 -0
  276. package/dist/components/Spinner/index.d.ts +2 -0
  277. package/dist/components/Spinner/index.js +1 -1
  278. package/dist/components/SuggestionButton/SuggestionButton.cjs +195 -0
  279. package/dist/components/SuggestionButton/{index-CrGSb18s.d.ts → SuggestionButton.d.cts} +6 -8
  280. package/dist/components/SuggestionButton/{index-DfQRQGev.d.cts → SuggestionButton.d.ts} +6 -8
  281. package/dist/components/SuggestionButton/SuggestionButton.js +188 -0
  282. package/dist/components/SuggestionButton/index.cjs +5 -192
  283. package/dist/components/SuggestionButton/index.d.cts +3 -0
  284. package/dist/components/SuggestionButton/index.d.ts +3 -0
  285. package/dist/components/SuggestionButton/index.js +1 -184
  286. package/dist/components/SuggestionButton/types.d.cts +4 -0
  287. package/dist/components/SuggestionButton/types.d.ts +4 -0
  288. package/dist/{TextInput-DfCocKVm.cjs → components/TextInput/TextInput.cjs} +7 -11
  289. package/dist/components/TextInput/{index-CkQtHiR9.d.ts → TextInput.d.cts} +1 -2
  290. package/dist/components/TextInput/{index-CRJMRe-b.d.cts → TextInput.d.ts} +1 -2
  291. package/dist/{TextInput-PtrUXoZo.js → components/TextInput/TextInput.js} +3 -2
  292. package/dist/components/TextInput/index.cjs +1 -2
  293. package/dist/components/TextInput/index.d.cts +2 -0
  294. package/dist/components/TextInput/index.d.ts +2 -0
  295. package/dist/components/TextInput/index.js +1 -2
  296. package/dist/{ToggleButton-BhBEOjxO.cjs → components/ToggleButton/ToggleButton.cjs} +5 -9
  297. package/dist/components/ToggleButton/{index-DFz4kch0.d.ts → ToggleButton.d.cts} +2 -2
  298. package/dist/components/ToggleButton/{index-CpURpMq5.d.cts → ToggleButton.d.ts} +2 -2
  299. package/dist/{ToggleButton-BTz_zIdc.js → components/ToggleButton/ToggleButton.js} +3 -2
  300. package/dist/components/ToggleButton/index.cjs +1 -2
  301. package/dist/components/ToggleButton/index.d.cts +2 -0
  302. package/dist/components/ToggleButton/index.d.ts +2 -0
  303. package/dist/components/ToggleButton/index.js +1 -2
  304. package/dist/components/Typography/Typography.cjs +53 -0
  305. package/dist/{index-Cr8VXccr.d.ts → components/Typography/Typography.d.cts} +2 -2
  306. package/dist/{index-Bw6lDfEp.d.cts → components/Typography/Typography.d.ts} +2 -2
  307. package/dist/components/Typography/Typography.js +50 -0
  308. package/dist/components/Typography/index.cjs +5 -4
  309. package/dist/components/Typography/index.d.cts +3 -0
  310. package/dist/components/Typography/index.d.ts +3 -0
  311. package/dist/components/Typography/index.js +2 -1
  312. package/dist/{Typography-xehJH05l.js → components/Typography/typographyVariantClasses.cjs} +3 -54
  313. package/dist/{typographyVariantClasses-CoRhazCU.d.cts → components/Typography/typographyVariantClasses.d.cts} +1 -1
  314. package/dist/{typographyVariantClasses-CrT5OfVw.d.ts → components/Typography/typographyVariantClasses.d.ts} +1 -1
  315. package/dist/{Typography-Csg-nd_w.cjs → components/Typography/typographyVariantClasses.js} +1 -81
  316. package/dist/components/Typography/util.cjs +10 -0
  317. package/dist/components/Typography/util.js +10 -0
  318. package/dist/logging/logger.cjs +20 -0
  319. package/dist/logging/logger.js +19 -0
  320. package/dist/{colorsConfig-D-MZuBvt.cjs → models/colorsConfig.cjs} +2 -12
  321. package/dist/{colorsConfig-BjdoRtRK.js → models/colorsConfig.js} +1 -1
  322. package/dist/util/camelCase.d.cts +69 -0
  323. package/dist/util/camelCase.d.ts +69 -0
  324. package/dist/util/camelCasedPropertiesDeep.d.cts +55 -0
  325. package/dist/util/camelCasedPropertiesDeep.d.ts +55 -0
  326. package/dist/util/colorVar.cjs +6 -0
  327. package/dist/util/colorVar.d.cts +6 -0
  328. package/dist/util/colorVar.d.ts +6 -0
  329. package/dist/util/colorVar.js +5 -0
  330. package/dist/{formatPrice-CyfkjZ3R.cjs → util/formatPrice.cjs} +1 -6
  331. package/dist/util/formatPrice.d.cts +4 -0
  332. package/dist/util/formatPrice.d.ts +4 -0
  333. package/dist/{formatPrice-DexQu2aZ.js → util/formatPrice.js} +1 -1
  334. package/dist/util/index.cjs +7 -78
  335. package/dist/util/index.d.cts +5 -0
  336. package/dist/util/index.d.ts +5 -0
  337. package/dist/util/index.js +4 -74
  338. package/dist/util/internal.d.cts +22 -0
  339. package/dist/util/internal.d.ts +22 -0
  340. package/dist/util/splitWords.d.cts +28 -0
  341. package/dist/util/splitWords.d.ts +28 -0
  342. package/dist/util/trim.d.cts +28 -0
  343. package/dist/util/trim.d.ts +28 -0
  344. package/dist/util/unknownArray.d.cts +28 -0
  345. package/dist/util/unknownArray.d.ts +28 -0
  346. package/dist/util/useScrollDirection.cjs +39 -0
  347. package/dist/util/useScrollDirection.d.cts +5 -0
  348. package/dist/util/useScrollDirection.d.ts +5 -0
  349. package/dist/util/useScrollDirection.js +38 -0
  350. package/dist/util/useStickyVisibility.cjs +38 -0
  351. package/dist/util/useStickyVisibility.d.cts +10 -0
  352. package/dist/util/useStickyVisibility.d.ts +10 -0
  353. package/dist/util/useStickyVisibility.js +37 -0
  354. package/package.json +1 -2
  355. package/src/components/ButtonBase/ButtonBase.tsx +3 -5
  356. package/src/components/ButtonBase/types.ts +3 -3
  357. package/src/components/ModalSheet/common/closeIcon.tsx +3 -6
  358. package/src/components/ProductCard/ProductCard.tsx +2 -2
  359. package/src/components/SearchFilter/types.ts +2 -0
  360. package/src/components/SearchResultsFilterButton/SearchResultsFilterButton.tsx +1 -1
  361. package/src/components/SearchResultsFilterSidebar/SearchResultsFilter.tsx +2 -2
  362. package/src/components/SuggestionButton/SuggestionButton.tsx +17 -12
  363. package/src/stories/ButtonBase.stories.tsx +1 -1
  364. package/src/stories/ProductCardSkeleton.stories.tsx +46 -16
  365. package/src/stories/SearchResultsFilter.stories.tsx +2 -2
  366. package/dist/ButtonBase-BIXx56hq.cjs +0 -0
  367. package/dist/ButtonBase-C9fn-c5h.js +0 -1
  368. package/dist/ModalSheet-BuCtRDnQ.cjs +0 -308
  369. package/dist/ModalSheet-DVrY7Mw0.js +0 -301
  370. package/dist/SearchFilter-CnP71PTj.cjs +0 -301
  371. package/dist/SearchFilter-DsYF1A5n.js +0 -264
  372. package/dist/SearchResultsFilterSidebar-U6dFy-Jo.cjs +0 -118
  373. package/dist/SearchResultsStates-BCeqeo9y.js +0 -138
  374. package/dist/SearchResultsStates-Dp-AsmH8.cjs +0 -158
  375. package/dist/components/FilterScrollbar/index-BmHm47DA.d.cts +0 -47
  376. package/dist/components/ProductCard/index-D5om2RVT.d.ts +0 -2
  377. package/dist/components/ProductCard/index-Djjvdeh7.d.cts +0 -2
  378. package/dist/components/ProductGrid/index-AxMBGLVk.d.ts +0 -35
  379. package/dist/components/ProductGrid/index-C4Tz_KWs.d.cts +0 -35
  380. package/dist/components/SearchFilter/index-BDaLJW2Q.d.cts +0 -91
  381. package/dist/components/SearchFilter/index-DESOqSJQ.d.ts +0 -91
  382. package/dist/components/SearchResultsFilterSidebar/index-DmO55w4A.d.ts +0 -2
  383. package/dist/components/SearchResultsFilterSidebar/index-Dtr9q9hT.d.cts +0 -2
  384. package/dist/components/SearchResultsStates/index-Ba3tQMCI.d.ts +0 -78
  385. package/dist/components/SearchResultsStates/index-DN1-g87W.d.cts +0 -78
  386. package/dist/components/SparkleAnimation/index-BMrS1PDU.d.cts +0 -23
  387. package/dist/components/SparkleAnimation/index-t59eI0td.d.ts +0 -23
  388. package/dist/components/Typography/index-DE1Nhjra.d.ts +0 -3
  389. package/dist/components/Typography/index-DzSBreyM.d.cts +0 -3
  390. package/dist/index-1GZFptEC.d.cts +0 -325
  391. package/dist/index-CBI4Lqsm.d.cts +0 -46
  392. package/dist/index-pZZXXUG_.d.ts +0 -46
  393. package/dist/index-yDKT5Bem.d.ts +0 -325
  394. package/dist/util/index-C2ueYGXh.d.ts +0 -21
  395. package/dist/util/index-DUzbpjPa.d.cts +0 -21
  396. /package/dist/components/RecommendedProducts/{index-BFM83Qu3.d.cts → RecommendedProducts.d.cts} +0 -0
  397. /package/dist/components/RecommendedProducts/{index-DlbCfGof.d.ts → RecommendedProducts.d.ts} +0 -0
@@ -1,9 +1,3 @@
1
- const require_chunk = require('./chunk-CbDLau6x.cjs');
2
- let react = require("react");
3
- react = require_chunk.__toESM(react);
4
- let classnames = require("classnames");
5
- classnames = require_chunk.__toESM(classnames);
6
-
7
1
  //#region src/components/Typography/typographyVariantClasses.ts
8
2
  const TypographyDomVariantMap = {
9
3
  ["h1"]: {
@@ -99,78 +93,4 @@ const getVariantPlaceholderClassNames = (classes) => Object.keys(classes).reduce
99
93
  }, {});
100
94
 
101
95
  //#endregion
102
- //#region src/components/Typography/util.ts
103
- const getElementTypeFromVariant = (variant, isHeadline) => {
104
- if (isHeadline) return (TypographyDomVariantMap[variant] ? variant : null) || "h3";
105
- return "span";
106
- };
107
-
108
- //#endregion
109
- //#region src/components/Typography/Typography.tsx
110
- const Typography = ({ children, className, style, noOfLines, testId, elementType, variant = "body3", id }) => {
111
- const variantClassNames = variant ? TypographyVariantMap[variant] : {};
112
- const isHeadline = (0, react.useCallback)(() => [
113
- "t1",
114
- "t2",
115
- "t3",
116
- "h1",
117
- "h2",
118
- "h3",
119
- "h4"
120
- ].includes(variant), [variant]);
121
- const renderedElementType = (0, react.useMemo)(() => {
122
- if (elementType) return elementType;
123
- if (!elementType) {
124
- if (isHeadline()) return getElementTypeFromVariant(variant, isHeadline());
125
- }
126
- return "span";
127
- }, [
128
- isHeadline,
129
- variant,
130
- elementType
131
- ]);
132
- const textClassNames = (0, classnames.default)(className, variantClassNames, {
133
- "spiffy-tw-font-[Poppins,sans-serif]": isHeadline(),
134
- "spiffy-tw-font-[\"Inter Variable,sans-serif\"]": !isHeadline(),
135
- "spiffy-tw-line-clamp-1": noOfLines === 1,
136
- "spiffy-tw-line-clamp-2": noOfLines === 2,
137
- "spiffy-tw-line-clamp-3": noOfLines === 3,
138
- "spiffy-tw-line-clamp-4": noOfLines === 4,
139
- "spiffy-tw-line-clamp-5": noOfLines === 5,
140
- "spiffy-tw-line-clamp-6": noOfLines === 6,
141
- "spiffy-tw-line-clamp-7": noOfLines === 7
142
- });
143
- const renderElement = (elementTypeToRender) => react.default.createElement(elementTypeToRender, {
144
- "data-testid": testId,
145
- className: textClassNames,
146
- style,
147
- id
148
- }, children);
149
- return renderElement(renderedElementType);
150
- };
151
-
152
- //#endregion
153
- Object.defineProperty(exports, 'Typography', {
154
- enumerable: true,
155
- get: function () {
156
- return Typography;
157
- }
158
- });
159
- Object.defineProperty(exports, 'TypographyDomVariantMap', {
160
- enumerable: true,
161
- get: function () {
162
- return TypographyDomVariantMap;
163
- }
164
- });
165
- Object.defineProperty(exports, 'TypographyVariantMap', {
166
- enumerable: true,
167
- get: function () {
168
- return TypographyVariantMap;
169
- }
170
- });
171
- Object.defineProperty(exports, 'getVariantPlaceholderClassNames', {
172
- enumerable: true,
173
- get: function () {
174
- return getVariantPlaceholderClassNames;
175
- }
176
- });
96
+ export { TypographyDomVariantMap, TypographyVariantMap, getVariantPlaceholderClassNames };
@@ -0,0 +1,10 @@
1
+ const require_typographyVariantClasses = require('./typographyVariantClasses.cjs');
2
+
3
+ //#region src/components/Typography/util.ts
4
+ const getElementTypeFromVariant = (variant, isHeadline) => {
5
+ if (isHeadline) return (require_typographyVariantClasses.TypographyDomVariantMap[variant] ? variant : null) || "h3";
6
+ return "span";
7
+ };
8
+
9
+ //#endregion
10
+ exports.getElementTypeFromVariant = getElementTypeFromVariant;
@@ -0,0 +1,10 @@
1
+ import { TypographyDomVariantMap } from "./typographyVariantClasses.js";
2
+
3
+ //#region src/components/Typography/util.ts
4
+ const getElementTypeFromVariant = (variant, isHeadline) => {
5
+ if (isHeadline) return (TypographyDomVariantMap[variant] ? variant : null) || "h3";
6
+ return "span";
7
+ };
8
+
9
+ //#endregion
10
+ export { getElementTypeFromVariant };
@@ -0,0 +1,20 @@
1
+
2
+ //#region src/logging/logger.ts
3
+ var Logger = class {
4
+ static logInfo(message, ...args) {
5
+ console.info(`INFO: ${message}`, ...args);
6
+ }
7
+ static logDebug(message, ...args) {
8
+ console.debug(`DEBUG: ${message}`, ...args);
9
+ }
10
+ static logError(message, error, ...args) {
11
+ console.error(`ERROR: ${message} error=${error}`, args);
12
+ }
13
+ static logWarn(message, error, ...args) {
14
+ console.warn(`WARN: ${message} error=${error}`, args);
15
+ }
16
+ };
17
+ var logger_default = Logger;
18
+
19
+ //#endregion
20
+ exports.default = logger_default;
@@ -0,0 +1,19 @@
1
+ //#region src/logging/logger.ts
2
+ var Logger = class {
3
+ static logInfo(message, ...args) {
4
+ console.info(`INFO: ${message}`, ...args);
5
+ }
6
+ static logDebug(message, ...args) {
7
+ console.debug(`DEBUG: ${message}`, ...args);
8
+ }
9
+ static logError(message, error, ...args) {
10
+ console.error(`ERROR: ${message} error=${error}`, args);
11
+ }
12
+ static logWarn(message, error, ...args) {
13
+ console.warn(`WARN: ${message} error=${error}`, args);
14
+ }
15
+ };
16
+ var logger_default = Logger;
17
+
18
+ //#endregion
19
+ export { logger_default as default };
@@ -24,15 +24,5 @@ var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
24
24
  const colorVar = (color) => `var(--spiffy-colors-${color})`;
25
25
 
26
26
  //#endregion
27
- Object.defineProperty(exports, 'ColorNames', {
28
- enumerable: true,
29
- get: function () {
30
- return ColorNames;
31
- }
32
- });
33
- Object.defineProperty(exports, 'colorVar', {
34
- enumerable: true,
35
- get: function () {
36
- return colorVar;
37
- }
38
- });
27
+ exports.ColorNames = ColorNames;
28
+ exports.colorVar = colorVar;
@@ -23,4 +23,4 @@ var ColorNames = /* @__PURE__ */ function(ColorNames$1) {
23
23
  const colorVar = (color) => `var(--spiffy-colors-${color})`;
24
24
 
25
25
  //#endregion
26
- export { colorVar as n, ColorNames as t };
26
+ export { ColorNames, colorVar };
@@ -0,0 +1,69 @@
1
+ import { SplitWords } from "./splitWords.cjs";
2
+
3
+ //#region src/util/camelCase.d.ts
4
+
5
+ /**
6
+ * CamelCase options.
7
+ *
8
+ * @see {@link CamelCase}
9
+ */
10
+ type CamelCaseOptions = {
11
+ /**
12
+ * Whether to preserved consecutive uppercase letter.
13
+ *
14
+ * @default true
15
+ */
16
+ preserveConsecutiveUppercase?: boolean;
17
+ };
18
+ /**
19
+ * Convert an array of words to camel-case.
20
+ */
21
+ type CamelCaseFromArray<Words extends string[], Options extends CamelCaseOptions, OutputString extends string = ''> = Words extends [infer FirstWord extends string, ...infer RemainingWords extends string[]] ? Options['preserveConsecutiveUppercase'] extends true ? `${Capitalize<FirstWord>}${CamelCaseFromArray<RemainingWords, Options>}` : `${Capitalize<Lowercase<FirstWord>>}${CamelCaseFromArray<RemainingWords, Options>}` : OutputString;
22
+ /**
23
+ * Convert a string literal to camel-case.
24
+ *
25
+ * This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result.
26
+ *
27
+ * By default, consecutive uppercase letter are preserved. See {@link CamelCaseOptions.preserveConsecutiveUppercase preserveConsecutiveUppercase} option to change this behaviour.
28
+ *
29
+ * @example
30
+ * ```
31
+ * import type {CamelCase} from 'type-fest';
32
+ *
33
+ * // Simple
34
+ *
35
+ * const someVariable: CamelCase<'foo-bar'> = 'fooBar';
36
+ *
37
+ * // Advanced
38
+ *
39
+ * type CamelCasedProperties<T> = {
40
+ * [K in keyof T as CamelCase<K>]: T[K]
41
+ * };
42
+ *
43
+ * interface RawOptions {
44
+ * 'dry-run': boolean;
45
+ * 'full_family_name': string;
46
+ * foo: number;
47
+ * BAR: string;
48
+ * QUZ_QUX: number;
49
+ * 'OTHER-FIELD': boolean;
50
+ * }
51
+ *
52
+ * const dbResult: CamelCasedProperties<RawOptions> = {
53
+ * dryRun: true,
54
+ * fullFamilyName: 'bar.js',
55
+ * foo: 123,
56
+ * bar: 'foo',
57
+ * quzQux: 6,
58
+ * otherField: false
59
+ * };
60
+ * ```
61
+ *
62
+ * @category Change case
63
+ * @category Template literal
64
+ */
65
+ type CamelCase<Type, Options extends CamelCaseOptions = {
66
+ preserveConsecutiveUppercase: true;
67
+ }> = Type extends string ? string extends Type ? Type : Uncapitalize<CamelCaseFromArray<SplitWords<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>> : Type;
68
+ //#endregion
69
+ export { CamelCase, CamelCaseOptions };
@@ -0,0 +1,69 @@
1
+ import { SplitWords } from "./splitWords.js";
2
+
3
+ //#region src/util/camelCase.d.ts
4
+
5
+ /**
6
+ * CamelCase options.
7
+ *
8
+ * @see {@link CamelCase}
9
+ */
10
+ type CamelCaseOptions = {
11
+ /**
12
+ * Whether to preserved consecutive uppercase letter.
13
+ *
14
+ * @default true
15
+ */
16
+ preserveConsecutiveUppercase?: boolean;
17
+ };
18
+ /**
19
+ * Convert an array of words to camel-case.
20
+ */
21
+ type CamelCaseFromArray<Words extends string[], Options extends CamelCaseOptions, OutputString extends string = ''> = Words extends [infer FirstWord extends string, ...infer RemainingWords extends string[]] ? Options['preserveConsecutiveUppercase'] extends true ? `${Capitalize<FirstWord>}${CamelCaseFromArray<RemainingWords, Options>}` : `${Capitalize<Lowercase<FirstWord>>}${CamelCaseFromArray<RemainingWords, Options>}` : OutputString;
22
+ /**
23
+ * Convert a string literal to camel-case.
24
+ *
25
+ * This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result.
26
+ *
27
+ * By default, consecutive uppercase letter are preserved. See {@link CamelCaseOptions.preserveConsecutiveUppercase preserveConsecutiveUppercase} option to change this behaviour.
28
+ *
29
+ * @example
30
+ * ```
31
+ * import type {CamelCase} from 'type-fest';
32
+ *
33
+ * // Simple
34
+ *
35
+ * const someVariable: CamelCase<'foo-bar'> = 'fooBar';
36
+ *
37
+ * // Advanced
38
+ *
39
+ * type CamelCasedProperties<T> = {
40
+ * [K in keyof T as CamelCase<K>]: T[K]
41
+ * };
42
+ *
43
+ * interface RawOptions {
44
+ * 'dry-run': boolean;
45
+ * 'full_family_name': string;
46
+ * foo: number;
47
+ * BAR: string;
48
+ * QUZ_QUX: number;
49
+ * 'OTHER-FIELD': boolean;
50
+ * }
51
+ *
52
+ * const dbResult: CamelCasedProperties<RawOptions> = {
53
+ * dryRun: true,
54
+ * fullFamilyName: 'bar.js',
55
+ * foo: 123,
56
+ * bar: 'foo',
57
+ * quzQux: 6,
58
+ * otherField: false
59
+ * };
60
+ * ```
61
+ *
62
+ * @category Change case
63
+ * @category Template literal
64
+ */
65
+ type CamelCase<Type, Options extends CamelCaseOptions = {
66
+ preserveConsecutiveUppercase: true;
67
+ }> = Type extends string ? string extends Type ? Type : Uncapitalize<CamelCaseFromArray<SplitWords<Type extends Uppercase<Type> ? Lowercase<Type> : Type>, Options>> : Type;
68
+ //#endregion
69
+ export { CamelCase, CamelCaseOptions };
@@ -0,0 +1,55 @@
1
+ import { CamelCase, CamelCaseOptions } from "./camelCase.cjs";
2
+ import { UnknownArray } from "./unknownArray.cjs";
3
+
4
+ //#region src/util/camelCasedPropertiesDeep.d.ts
5
+
6
+ /**
7
+ * Convert object properties to camel case recursively.
8
+ *
9
+ * This can be useful when, for example, converting some API types from a different style.
10
+ *
11
+ * @see CamelCasedProperties
12
+ * @see CamelCase
13
+ *
14
+ * @example
15
+ * ```
16
+ * import type {CamelCasedPropertiesDeep} from 'type-fest';
17
+ *
18
+ * interface User {
19
+ * UserId: number;
20
+ * UserName: string;
21
+ * }
22
+ *
23
+ * interface UserWithFriends {
24
+ * UserInfo: User;
25
+ * UserFriends: User[];
26
+ * }
27
+ *
28
+ * const result: CamelCasedPropertiesDeep<UserWithFriends> = {
29
+ * userInfo: {
30
+ * userId: 1,
31
+ * userName: 'Tom',
32
+ * },
33
+ * userFriends: [
34
+ * {
35
+ * userId: 2,
36
+ * userName: 'Jerry',
37
+ * },
38
+ * {
39
+ * userId: 3,
40
+ * userName: 'Spike',
41
+ * },
42
+ * ],
43
+ * };
44
+ * ```
45
+ *
46
+ * @category Change case
47
+ * @category Template literal
48
+ * @category Object
49
+ */
50
+ type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
51
+ preserveConsecutiveUppercase: true;
52
+ }> = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep<Value[K], Options> };
53
+ type CamelCasedPropertiesArrayDeep<Value extends UnknownArray> = Value extends [] ? [] : Value extends [infer U, ...infer V] ? [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [infer U, ...infer V] ? readonly [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? readonly [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends Array<infer U> ? Array<CamelCasedPropertiesDeep<U>> : Value extends ReadonlyArray<infer U> ? ReadonlyArray<CamelCasedPropertiesDeep<U>> : never;
54
+ //#endregion
55
+ export { CamelCasedPropertiesDeep };
@@ -0,0 +1,55 @@
1
+ import { CamelCase, CamelCaseOptions } from "./camelCase.js";
2
+ import { UnknownArray } from "./unknownArray.js";
3
+
4
+ //#region src/util/camelCasedPropertiesDeep.d.ts
5
+
6
+ /**
7
+ * Convert object properties to camel case recursively.
8
+ *
9
+ * This can be useful when, for example, converting some API types from a different style.
10
+ *
11
+ * @see CamelCasedProperties
12
+ * @see CamelCase
13
+ *
14
+ * @example
15
+ * ```
16
+ * import type {CamelCasedPropertiesDeep} from 'type-fest';
17
+ *
18
+ * interface User {
19
+ * UserId: number;
20
+ * UserName: string;
21
+ * }
22
+ *
23
+ * interface UserWithFriends {
24
+ * UserInfo: User;
25
+ * UserFriends: User[];
26
+ * }
27
+ *
28
+ * const result: CamelCasedPropertiesDeep<UserWithFriends> = {
29
+ * userInfo: {
30
+ * userId: 1,
31
+ * userName: 'Tom',
32
+ * },
33
+ * userFriends: [
34
+ * {
35
+ * userId: 2,
36
+ * userName: 'Jerry',
37
+ * },
38
+ * {
39
+ * userId: 3,
40
+ * userName: 'Spike',
41
+ * },
42
+ * ],
43
+ * };
44
+ * ```
45
+ *
46
+ * @category Change case
47
+ * @category Template literal
48
+ * @category Object
49
+ */
50
+ type CamelCasedPropertiesDeep<Value, Options extends CamelCaseOptions = {
51
+ preserveConsecutiveUppercase: true;
52
+ }> = Value extends Function ? Value : Value extends UnknownArray ? CamelCasedPropertiesArrayDeep<Value> : Value extends Set<infer U> ? Set<CamelCasedPropertiesDeep<U, Options>> : { [K in keyof Value as CamelCase<K, Options>]: CamelCasedPropertiesDeep<Value[K], Options> };
53
+ type CamelCasedPropertiesArrayDeep<Value extends UnknownArray> = Value extends [] ? [] : Value extends [infer U, ...infer V] ? [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [infer U, ...infer V] ? readonly [CamelCasedPropertiesDeep<U>, ...CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends readonly [...infer U, infer V] ? readonly [...CamelCasedPropertiesDeep<U>, CamelCasedPropertiesDeep<V>] : Value extends Array<infer U> ? Array<CamelCasedPropertiesDeep<U>> : Value extends ReadonlyArray<infer U> ? ReadonlyArray<CamelCasedPropertiesDeep<U>> : never;
54
+ //#endregion
55
+ export { CamelCasedPropertiesDeep };
@@ -0,0 +1,6 @@
1
+
2
+ //#region src/util/colorVar.ts
3
+ const colorVar = (color) => `var(--spiffy-colors-${color})`;
4
+
5
+ //#endregion
6
+ exports.colorVar = colorVar;
@@ -0,0 +1,6 @@
1
+ import { ColorNames } from "@envive-ai/react-hooks/contexts/types";
2
+
3
+ //#region src/util/colorVar.d.ts
4
+ declare const colorVar: (color: ColorNames) => string;
5
+ //#endregion
6
+ export { colorVar };
@@ -0,0 +1,6 @@
1
+ import { ColorNames } from "@envive-ai/react-hooks/contexts/types";
2
+
3
+ //#region src/util/colorVar.d.ts
4
+ declare const colorVar: (color: ColorNames) => string;
5
+ //#endregion
6
+ export { colorVar };
@@ -0,0 +1,5 @@
1
+ //#region src/util/colorVar.ts
2
+ const colorVar = (color) => `var(--spiffy-colors-${color})`;
3
+
4
+ //#endregion
5
+ export { colorVar };
@@ -11,9 +11,4 @@ const formatPrice = (price, currency = "$") => {
11
11
  };
12
12
 
13
13
  //#endregion
14
- Object.defineProperty(exports, 'formatPrice', {
15
- enumerable: true,
16
- get: function () {
17
- return formatPrice;
18
- }
19
- });
14
+ exports.formatPrice = formatPrice;
@@ -0,0 +1,4 @@
1
+ //#region src/util/formatPrice.d.ts
2
+ declare const formatPrice: (price?: number, currency?: string) => string;
3
+ //#endregion
4
+ export { formatPrice };
@@ -0,0 +1,4 @@
1
+ //#region src/util/formatPrice.d.ts
2
+ declare const formatPrice: (price?: number, currency?: string) => string;
3
+ //#endregion
4
+ export { formatPrice };
@@ -10,4 +10,4 @@ const formatPrice = (price, currency = "$") => {
10
10
  };
11
11
 
12
12
  //#endregion
13
- export { formatPrice as t };
13
+ export { formatPrice };
@@ -1,80 +1,9 @@
1
- const require_chunk = require('../chunk-CbDLau6x.cjs');
2
- const require_formatPrice = require('../formatPrice-CyfkjZ3R.cjs');
3
- let react = require("react");
1
+ const require_formatPrice = require('./formatPrice.cjs');
2
+ const require_useScrollDirection = require('./useScrollDirection.cjs');
3
+ const require_useStickyVisibility = require('./useStickyVisibility.cjs');
4
+ const require_colorVar = require('./colorVar.cjs');
4
5
 
5
- //#region src/util/useScrollDirection.ts
6
- const useScrollDirection = (scrollContainerRef) => {
7
- const [scrollDirection, setScrollDirection] = (0, react.useState)(null);
8
- const touchStartY = (0, react.useRef)(0);
9
- (0, react.useEffect)(() => {
10
- const container = scrollContainerRef?.current || window;
11
- const touchTarget = scrollContainerRef?.current || document;
12
- const handleWheel = (e) => {
13
- if (e.deltaY > 0) setScrollDirection("down");
14
- else setScrollDirection("up");
15
- };
16
- const handleTouchStart = (e) => {
17
- touchStartY.current = e.touches[0].clientY;
18
- };
19
- const handleTouchMove = (e) => {
20
- const currentTouchY = e.touches[0].clientY;
21
- const deltaY = touchStartY.current - currentTouchY;
22
- if (Math.abs(deltaY) < 10) return;
23
- if (deltaY > 0) setScrollDirection("down");
24
- else setScrollDirection("up");
25
- touchStartY.current = currentTouchY;
26
- };
27
- container.addEventListener("wheel", handleWheel, { passive: true });
28
- touchTarget.addEventListener("touchstart", handleTouchStart, { passive: true });
29
- touchTarget.addEventListener("touchmove", handleTouchMove, { passive: true });
30
- return () => {
31
- container.removeEventListener("wheel", handleWheel);
32
- touchTarget.removeEventListener("touchstart", handleTouchStart);
33
- touchTarget.removeEventListener("touchmove", handleTouchMove);
34
- };
35
- }, [scrollContainerRef]);
36
- return scrollDirection;
37
- };
38
-
39
- //#endregion
40
- //#region src/util/useStickyVisibility.ts
41
- const useStickyVisibility = () => {
42
- const [isVisible, setIsVisible] = (0, react.useState)(true);
43
- const toolbarRef = (0, react.useRef)(null);
44
- const [toolbarHeight, setToolbarHeight] = (0, react.useState)(0);
45
- const [scrollY, setScrollY] = (0, react.useState)(0);
46
- const scrollDirection = useScrollDirection();
47
- (0, react.useEffect)(() => {
48
- const handleScroll = () => {
49
- setScrollY(window.scrollY);
50
- };
51
- window.addEventListener("scroll", handleScroll, { passive: true });
52
- return () => window.removeEventListener("scroll", handleScroll);
53
- }, []);
54
- (0, react.useEffect)(() => {
55
- if (toolbarRef.current) setToolbarHeight(toolbarRef.current.offsetHeight);
56
- }, []);
57
- (0, react.useEffect)(() => {
58
- if (scrollDirection === "down" && scrollY > toolbarHeight && toolbarHeight > 0) setIsVisible(false);
59
- else setIsVisible(true);
60
- }, [
61
- scrollDirection,
62
- toolbarHeight,
63
- scrollY
64
- ]);
65
- return {
66
- toolbarRef,
67
- isVisible,
68
- toolbarHeight
69
- };
70
- };
71
-
72
- //#endregion
73
- //#region src/util/colorVar.ts
74
- const colorVar = (color) => `var(--spiffy-colors-${color})`;
75
-
76
- //#endregion
77
- exports.colorVar = colorVar;
6
+ exports.colorVar = require_colorVar.colorVar;
78
7
  exports.formatPrice = require_formatPrice.formatPrice;
79
- exports.useScrollDirection = useScrollDirection;
80
- exports.useStickyVisibility = useStickyVisibility;
8
+ exports.useScrollDirection = require_useScrollDirection.useScrollDirection;
9
+ exports.useStickyVisibility = require_useStickyVisibility.useStickyVisibility;
@@ -0,0 +1,5 @@
1
+ import { formatPrice } from "./formatPrice.cjs";
2
+ import { ScrollDirection, useScrollDirection } from "./useScrollDirection.cjs";
3
+ import { useStickyVisibility } from "./useStickyVisibility.cjs";
4
+ import { colorVar } from "./colorVar.cjs";
5
+ export { ScrollDirection, colorVar, formatPrice, useScrollDirection, useStickyVisibility };
@@ -0,0 +1,5 @@
1
+ import { formatPrice } from "./formatPrice.js";
2
+ import { ScrollDirection, useScrollDirection } from "./useScrollDirection.js";
3
+ import { useStickyVisibility } from "./useStickyVisibility.js";
4
+ import { colorVar } from "./colorVar.js";
5
+ export { ScrollDirection, colorVar, formatPrice, useScrollDirection, useStickyVisibility };
@@ -1,76 +1,6 @@
1
- import { t as formatPrice } from "../formatPrice-DexQu2aZ.js";
2
- import { useEffect, useRef, useState } from "react";
1
+ import { formatPrice } from "./formatPrice.js";
2
+ import { useScrollDirection } from "./useScrollDirection.js";
3
+ import { useStickyVisibility } from "./useStickyVisibility.js";
4
+ import { colorVar } from "./colorVar.js";
3
5
 
4
- //#region src/util/useScrollDirection.ts
5
- const useScrollDirection = (scrollContainerRef) => {
6
- const [scrollDirection, setScrollDirection] = useState(null);
7
- const touchStartY = useRef(0);
8
- useEffect(() => {
9
- const container = scrollContainerRef?.current || window;
10
- const touchTarget = scrollContainerRef?.current || document;
11
- const handleWheel = (e) => {
12
- if (e.deltaY > 0) setScrollDirection("down");
13
- else setScrollDirection("up");
14
- };
15
- const handleTouchStart = (e) => {
16
- touchStartY.current = e.touches[0].clientY;
17
- };
18
- const handleTouchMove = (e) => {
19
- const currentTouchY = e.touches[0].clientY;
20
- const deltaY = touchStartY.current - currentTouchY;
21
- if (Math.abs(deltaY) < 10) return;
22
- if (deltaY > 0) setScrollDirection("down");
23
- else setScrollDirection("up");
24
- touchStartY.current = currentTouchY;
25
- };
26
- container.addEventListener("wheel", handleWheel, { passive: true });
27
- touchTarget.addEventListener("touchstart", handleTouchStart, { passive: true });
28
- touchTarget.addEventListener("touchmove", handleTouchMove, { passive: true });
29
- return () => {
30
- container.removeEventListener("wheel", handleWheel);
31
- touchTarget.removeEventListener("touchstart", handleTouchStart);
32
- touchTarget.removeEventListener("touchmove", handleTouchMove);
33
- };
34
- }, [scrollContainerRef]);
35
- return scrollDirection;
36
- };
37
-
38
- //#endregion
39
- //#region src/util/useStickyVisibility.ts
40
- const useStickyVisibility = () => {
41
- const [isVisible, setIsVisible] = useState(true);
42
- const toolbarRef = useRef(null);
43
- const [toolbarHeight, setToolbarHeight] = useState(0);
44
- const [scrollY, setScrollY] = useState(0);
45
- const scrollDirection = useScrollDirection();
46
- useEffect(() => {
47
- const handleScroll = () => {
48
- setScrollY(window.scrollY);
49
- };
50
- window.addEventListener("scroll", handleScroll, { passive: true });
51
- return () => window.removeEventListener("scroll", handleScroll);
52
- }, []);
53
- useEffect(() => {
54
- if (toolbarRef.current) setToolbarHeight(toolbarRef.current.offsetHeight);
55
- }, []);
56
- useEffect(() => {
57
- if (scrollDirection === "down" && scrollY > toolbarHeight && toolbarHeight > 0) setIsVisible(false);
58
- else setIsVisible(true);
59
- }, [
60
- scrollDirection,
61
- toolbarHeight,
62
- scrollY
63
- ]);
64
- return {
65
- toolbarRef,
66
- isVisible,
67
- toolbarHeight
68
- };
69
- };
70
-
71
- //#endregion
72
- //#region src/util/colorVar.ts
73
- const colorVar = (color) => `var(--spiffy-colors-${color})`;
74
-
75
- //#endregion
76
6
  export { colorVar, formatPrice, useScrollDirection, useStickyVisibility };