@usereactify/search 5.0.0-beta.7 → 5.0.0

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 (239) hide show
  1. package/CHANGELOG.md +500 -0
  2. package/README.md +3 -21
  3. package/dist/package.json +3 -3
  4. package/dist/src/components/ClearAll/ClearAll.d.ts +8 -0
  5. package/dist/src/components/ClearAll/ClearAll.js +29 -0
  6. package/dist/src/components/ClearAll/ClearAll.js.map +1 -0
  7. package/dist/src/components/ClearAll/index.d.ts +1 -0
  8. package/dist/src/components/{ReactifySearchBase → ClearAll}/index.js +1 -1
  9. package/dist/src/components/ClearAll/index.js.map +1 -0
  10. package/dist/src/components/CustomComponent/CustomComponent.d.ts +4 -0
  11. package/dist/src/components/CustomComponent/CustomComponent.js +13 -0
  12. package/dist/src/components/CustomComponent/CustomComponent.js.map +1 -0
  13. package/dist/src/components/CustomComponent/index.d.ts +1 -0
  14. package/dist/src/components/CustomComponent/index.js +14 -0
  15. package/dist/src/components/CustomComponent/index.js.map +1 -0
  16. package/dist/src/components/Example/ExampleClearAll.d.ts +4 -0
  17. package/dist/src/components/Example/ExampleClearAll.js +12 -0
  18. package/dist/src/components/Example/ExampleClearAll.js.map +1 -0
  19. package/dist/src/components/Example/ExampleCustomComponent.d.ts +2 -0
  20. package/dist/src/components/Example/ExampleCustomComponent.js +36 -0
  21. package/dist/src/components/Example/ExampleCustomComponent.js.map +1 -0
  22. package/dist/src/components/Example/ExampleFilterList.d.ts +5 -0
  23. package/dist/src/components/Example/ExampleFilterList.js +81 -9
  24. package/dist/src/components/Example/ExampleFilterList.js.map +1 -1
  25. package/dist/src/components/Example/ExampleFilterRange.js +6 -11
  26. package/dist/src/components/Example/ExampleFilterRange.js.map +1 -1
  27. package/dist/src/components/Example/ExampleFilterSlider.js +8 -9
  28. package/dist/src/components/Example/ExampleFilterSlider.js.map +1 -1
  29. package/dist/src/components/Example/ExampleFilters.d.ts +4 -0
  30. package/dist/src/components/Example/{ExampleFilterStack.js → ExampleFilters.js} +6 -5
  31. package/dist/src/components/Example/ExampleFilters.js.map +1 -0
  32. package/dist/src/components/Example/ExampleFiltersActive.d.ts +4 -0
  33. package/dist/src/components/Example/ExampleFiltersActive.js +23 -0
  34. package/dist/src/components/Example/ExampleFiltersActive.js.map +1 -0
  35. package/dist/src/components/Example/ExampleHookUseFilters.d.ts +2 -0
  36. package/dist/src/components/Example/ExampleHookUseFilters.js +20 -0
  37. package/dist/src/components/Example/ExampleHookUseFilters.js.map +1 -0
  38. package/dist/src/components/Example/ExampleHookUseSearch.d.ts +2 -0
  39. package/dist/src/components/Example/ExampleHookUseSearch.js +22 -0
  40. package/dist/src/components/Example/ExampleHookUseSearch.js.map +1 -0
  41. package/dist/src/components/Example/ExampleHookUseSortBy.d.ts +2 -0
  42. package/dist/src/components/Example/ExampleHookUseSortBy.js +18 -0
  43. package/dist/src/components/Example/ExampleHookUseSortBy.js.map +1 -0
  44. package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.d.ts +2 -0
  45. package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.js +27 -0
  46. package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.js.map +1 -0
  47. package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.d.ts +2 -0
  48. package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.js +27 -0
  49. package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.js.map +1 -0
  50. package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.d.ts +2 -0
  51. package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.js +27 -0
  52. package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.js.map +1 -0
  53. package/dist/src/components/Example/ExampleResultCardCallout.js +4 -4
  54. package/dist/src/components/Example/ExampleResultCardCallout.js.map +1 -1
  55. package/dist/src/components/Example/ExampleResultCardProduct.js +6 -6
  56. package/dist/src/components/Example/ExampleResultCardProduct.js.map +1 -1
  57. package/dist/src/components/Example/ExampleResultPaginationLoadMore.js +1 -1
  58. package/dist/src/components/Example/ExampleResultPaginationLoadMore.js.map +1 -1
  59. package/dist/src/components/Example/ExampleResultPaginationNextPrev.js +3 -3
  60. package/dist/src/components/Example/ExampleResultPaginationNextPrev.js.map +1 -1
  61. package/dist/src/components/Example/ExampleResultPaginationNumbered.js +6 -6
  62. package/dist/src/components/Example/ExampleResultPaginationNumbered.js.map +1 -1
  63. package/dist/src/components/Example/ExampleResults.d.ts +2 -0
  64. package/dist/src/components/Example/ExampleResults.js +38 -0
  65. package/dist/src/components/Example/ExampleResults.js.map +1 -0
  66. package/dist/src/components/Example/ExampleSearch.d.ts +4 -0
  67. package/dist/src/components/Example/ExampleSearch.js +20 -0
  68. package/dist/src/components/Example/ExampleSearch.js.map +1 -0
  69. package/dist/src/components/Example/ExampleSortBy.d.ts +4 -0
  70. package/dist/src/components/Example/ExampleSortBy.js +13 -0
  71. package/dist/src/components/Example/ExampleSortBy.js.map +1 -0
  72. package/dist/src/components/Example/ExampleStats.d.ts +4 -0
  73. package/dist/src/components/Example/ExampleStats.js +15 -0
  74. package/dist/src/components/Example/ExampleStats.js.map +1 -0
  75. package/dist/src/components/Example/index.d.ts +12 -2
  76. package/dist/src/components/Example/index.js +12 -2
  77. package/dist/src/components/Example/index.js.map +1 -1
  78. package/dist/src/components/Filter/Filter.d.ts +9 -6
  79. package/dist/src/components/Filter/Filter.js +29 -29
  80. package/dist/src/components/Filter/Filter.js.map +1 -1
  81. package/dist/src/components/Filter/Filters.d.ts +7 -0
  82. package/dist/src/components/Filter/Filters.js +17 -0
  83. package/dist/src/components/Filter/Filters.js.map +1 -0
  84. package/dist/src/components/Filter/FiltersActive.d.ts +16 -0
  85. package/dist/src/components/Filter/FiltersActive.js +36 -0
  86. package/dist/src/components/Filter/FiltersActive.js.map +1 -0
  87. package/dist/src/components/Filter/index.d.ts +2 -1
  88. package/dist/src/components/Filter/index.js +2 -1
  89. package/dist/src/components/Filter/index.js.map +1 -1
  90. package/dist/src/components/{ReactifySearchBase/ReactifySearchBase.d.ts → ReactifySearchProvider/ReactifySearchProvider.d.ts} +6 -10
  91. package/dist/src/components/{ReactifySearchBase/ReactifySearchBase.js → ReactifySearchProvider/ReactifySearchProvider.js} +33 -29
  92. package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.js.map +1 -0
  93. package/dist/src/components/ReactifySearchProvider/index.d.ts +1 -0
  94. package/dist/src/components/ReactifySearchProvider/index.js +14 -0
  95. package/dist/src/components/ReactifySearchProvider/index.js.map +1 -0
  96. package/dist/src/components/Result/ResultCardCallout.d.ts +2 -4
  97. package/dist/src/components/Result/ResultCardCallout.js.map +1 -1
  98. package/dist/src/components/Result/ResultCardProduct.d.ts +2 -5
  99. package/dist/src/components/Result/ResultCardProduct.js.map +1 -1
  100. package/dist/src/components/Result/ResultPaginationLoadMore.d.ts +2 -2
  101. package/dist/src/components/Result/ResultPaginationLoadMore.js +1 -1
  102. package/dist/src/components/Result/ResultPaginationLoadMore.js.map +1 -1
  103. package/dist/src/components/Result/ResultPaginationNextPrev.d.ts +2 -2
  104. package/dist/src/components/Result/ResultPaginationNextPrev.js +1 -1
  105. package/dist/src/components/Result/ResultPaginationNextPrev.js.map +1 -1
  106. package/dist/src/components/Result/ResultPaginationNumbered.d.ts +2 -2
  107. package/dist/src/components/Result/ResultPaginationNumbered.js +1 -1
  108. package/dist/src/components/Result/ResultPaginationNumbered.js.map +1 -1
  109. package/dist/src/components/Result/{ResultStack.d.ts → Results.d.ts} +21 -13
  110. package/dist/src/components/Result/{ResultStack.js → Results.js} +45 -28
  111. package/dist/src/components/Result/Results.js.map +1 -0
  112. package/dist/src/components/Result/index.d.ts +1 -1
  113. package/dist/src/components/Result/index.js +1 -1
  114. package/dist/src/components/Result/index.js.map +1 -1
  115. package/dist/src/components/Search/Search.d.ts +7 -0
  116. package/dist/src/components/Search/Search.js +17 -0
  117. package/dist/src/components/Search/Search.js.map +1 -0
  118. package/dist/src/components/Search/index.d.ts +1 -1
  119. package/dist/src/components/Search/index.js +1 -1
  120. package/dist/src/components/Search/index.js.map +1 -1
  121. package/dist/src/components/Sensor/SensorCollection.js +2 -2
  122. package/dist/src/components/Sensor/SensorCollection.js.map +1 -1
  123. package/dist/src/components/Sensor/SensorInventoryAvailable.js +1 -1
  124. package/dist/src/components/Sensor/SensorInventoryAvailable.js.map +1 -1
  125. package/dist/src/components/Sensor/SensorSearch.js +7 -3
  126. package/dist/src/components/Sensor/SensorSearch.js.map +1 -1
  127. package/dist/src/components/Sensor/SensorSort.js +13 -13
  128. package/dist/src/components/Sensor/SensorSort.js.map +1 -1
  129. package/dist/src/components/Sensor/Sensors.d.ts +3 -0
  130. package/dist/src/components/Sensor/{SensorStack.js → Sensors.js} +4 -4
  131. package/dist/src/components/Sensor/Sensors.js.map +1 -0
  132. package/dist/src/components/Sensor/index.d.ts +1 -1
  133. package/dist/src/components/Sensor/index.js +1 -1
  134. package/dist/src/components/Sensor/index.js.map +1 -1
  135. package/dist/src/components/SortBy/SortBy.d.ts +7 -0
  136. package/dist/src/components/SortBy/SortBy.js +17 -0
  137. package/dist/src/components/SortBy/SortBy.js.map +1 -0
  138. package/dist/src/components/SortBy/index.d.ts +1 -0
  139. package/dist/src/components/{Sortby → SortBy}/index.js +1 -1
  140. package/dist/src/components/{Sortby → SortBy}/index.js.map +1 -1
  141. package/dist/src/components/Stats/Stats.d.ts +22 -0
  142. package/dist/src/components/Stats/Stats.js +15 -0
  143. package/dist/src/components/Stats/Stats.js.map +1 -0
  144. package/dist/src/components/Stats/index.d.ts +1 -0
  145. package/dist/src/components/Stats/index.js +14 -0
  146. package/dist/src/components/Stats/index.js.map +1 -0
  147. package/dist/src/components/index.d.ts +5 -2
  148. package/dist/src/components/index.js +5 -2
  149. package/dist/src/components/index.js.map +1 -1
  150. package/dist/src/hooks/index.d.ts +4 -3
  151. package/dist/src/hooks/index.js +4 -3
  152. package/dist/src/hooks/index.js.map +1 -1
  153. package/dist/src/hooks/reactivesearch/index.d.ts +3 -3
  154. package/dist/src/hooks/reactivesearch/index.js +3 -3
  155. package/dist/src/hooks/reactivesearch/index.js.map +1 -1
  156. package/dist/src/hooks/reactivesearch/useReactiveBaseProps.js +2 -1
  157. package/dist/src/hooks/reactivesearch/useReactiveBaseProps.js.map +1 -1
  158. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.d.ts +1 -1
  159. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.js +12 -11
  160. package/dist/src/hooks/reactivesearch/useReactiveDataSearchProps.js.map +1 -1
  161. package/dist/src/hooks/reactivesearch/useReactiveFilterListProps.js +2 -1
  162. package/dist/src/hooks/reactivesearch/useReactiveFilterListProps.js.map +1 -1
  163. package/dist/src/hooks/reactivesearch/useReactiveFilterRangeProps.d.ts +6 -1
  164. package/dist/src/hooks/reactivesearch/useReactiveFilterRangeProps.js +14 -2
  165. package/dist/src/hooks/reactivesearch/useReactiveFilterRangeProps.js.map +1 -1
  166. package/dist/src/hooks/reactivesearch/useReactiveFilterSharedProps.js +2 -1
  167. package/dist/src/hooks/reactivesearch/useReactiveFilterSharedProps.js.map +1 -1
  168. package/dist/src/hooks/reactivesearch/useReactiveFilterSliderProps.d.ts +5 -0
  169. package/dist/src/hooks/reactivesearch/useReactiveFilterSliderProps.js +11 -3
  170. package/dist/src/hooks/reactivesearch/useReactiveFilterSliderProps.js.map +1 -1
  171. package/dist/src/hooks/reactivesearch/useReactiveReactProp.js +4 -4
  172. package/dist/src/hooks/reactivesearch/useReactiveReactProp.js.map +1 -1
  173. package/dist/src/hooks/reactivesearch/useReactiveReactiveListProps.d.ts +5 -0
  174. package/dist/src/hooks/reactivesearch/{useReactiveResultStackProps.js → useReactiveReactiveListProps.js} +7 -6
  175. package/dist/src/hooks/reactivesearch/useReactiveReactiveListProps.js.map +1 -0
  176. package/dist/src/hooks/useConfig.js +1 -1
  177. package/dist/src/hooks/useConfig.js.map +1 -1
  178. package/dist/src/hooks/useCuration.js +4 -8
  179. package/dist/src/hooks/useCuration.js.map +1 -1
  180. package/dist/src/hooks/useFilterListProps.d.ts +3 -2
  181. package/dist/src/hooks/useFilterListProps.js +67 -10
  182. package/dist/src/hooks/useFilterListProps.js.map +1 -1
  183. package/dist/src/hooks/useFilterRangeProps.d.ts +11 -0
  184. package/dist/src/hooks/useFilterRangeProps.js +53 -0
  185. package/dist/src/hooks/useFilterRangeProps.js.map +1 -0
  186. package/dist/src/hooks/useFilterSliderProps.d.ts +12 -0
  187. package/dist/src/hooks/useFilterSliderProps.js +49 -0
  188. package/dist/src/hooks/useFilterSliderProps.js.map +1 -0
  189. package/dist/src/hooks/useFilters.d.ts +5 -2
  190. package/dist/src/hooks/useFilters.js +45 -11
  191. package/dist/src/hooks/useFilters.js.map +1 -1
  192. package/dist/src/hooks/usePagination.d.ts +10 -0
  193. package/dist/src/hooks/usePagination.js.map +1 -1
  194. package/dist/src/hooks/usePaginationLoadMore.js +1 -1
  195. package/dist/src/hooks/usePaginationLoadMore.js.map +1 -1
  196. package/dist/src/hooks/useReactifySearchContext.d.ts +12 -20
  197. package/dist/src/hooks/useReactifySearchContext.js.map +1 -1
  198. package/dist/src/hooks/useSearch.d.ts +8 -3
  199. package/dist/src/hooks/useSearch.js +39 -17
  200. package/dist/src/hooks/useSearch.js.map +1 -1
  201. package/dist/src/hooks/useSortBy.d.ts +9 -0
  202. package/dist/src/hooks/{useSortby.js → useSortBy.js} +5 -5
  203. package/dist/src/hooks/useSortBy.js.map +1 -0
  204. package/dist/src/types/firestore.d.ts +3 -0
  205. package/dist/src/types/firestore.js.map +1 -1
  206. package/dist/src/types/reactivesearch.d.ts +2 -2
  207. package/dist/src/types/reactivesearch.js.map +1 -1
  208. package/dist/src/utility/debug.d.ts +3 -1
  209. package/dist/src/utility/debug.js +6 -2
  210. package/dist/src/utility/debug.js.map +1 -1
  211. package/package.json +3 -3
  212. package/dist/src/components/Example/ExampleFilterStack.d.ts +0 -4
  213. package/dist/src/components/Example/ExampleFilterStack.js.map +0 -1
  214. package/dist/src/components/Example/ExampleSortby.d.ts +0 -4
  215. package/dist/src/components/Example/ExampleSortby.js +0 -13
  216. package/dist/src/components/Example/ExampleSortby.js.map +0 -1
  217. package/dist/src/components/Filter/FilterStack.d.ts +0 -7
  218. package/dist/src/components/Filter/FilterStack.js +0 -17
  219. package/dist/src/components/Filter/FilterStack.js.map +0 -1
  220. package/dist/src/components/ReactifySearchBase/ReactifySearchBase.js.map +0 -1
  221. package/dist/src/components/ReactifySearchBase/index.d.ts +0 -1
  222. package/dist/src/components/ReactifySearchBase/index.js.map +0 -1
  223. package/dist/src/components/Result/ResultStack.js.map +0 -1
  224. package/dist/src/components/Search/SearchInput.d.ts +0 -8
  225. package/dist/src/components/Search/SearchInput.js +0 -18
  226. package/dist/src/components/Search/SearchInput.js.map +0 -1
  227. package/dist/src/components/Sensor/SensorStack.d.ts +0 -3
  228. package/dist/src/components/Sensor/SensorStack.js.map +0 -1
  229. package/dist/src/components/Sortby/Sortby.d.ts +0 -7
  230. package/dist/src/components/Sortby/Sortby.js +0 -17
  231. package/dist/src/components/Sortby/Sortby.js.map +0 -1
  232. package/dist/src/components/Sortby/index.d.ts +0 -1
  233. package/dist/src/hooks/reactivesearch/useReactiveResultStackProps.d.ts +0 -17
  234. package/dist/src/hooks/reactivesearch/useReactiveResultStackProps.js.map +0 -1
  235. package/dist/src/hooks/useFilterStack.d.ts +0 -4
  236. package/dist/src/hooks/useFilterStack.js +0 -52
  237. package/dist/src/hooks/useFilterStack.js.map +0 -1
  238. package/dist/src/hooks/useSortby.d.ts +0 -6
  239. package/dist/src/hooks/useSortby.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleHookUseSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleHookUseSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uCAAwC;AAEjC,MAAM,oBAAoB,GAAa,GAAG,EAAE;IACjD,MAAM,UAAU,GAAG,IAAA,iBAAS,GAAE,CAAC;IAE/B,MAAM,gBAAgB,GAAG,eAAK,CAAC,WAAW,CACxC,CAAC,KAAuC,EAAE,EAAE;QAC1C,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,UAAU,CAAC,gBAAgB,EAAE,CAAC;IAChC,CAAC,EACD,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAC9B,CAAC;IAEF,MAAM,iBAAiB,GAAG,eAAK,CAAC,WAAW,CACzC,CAAC,KAA0C,EAAE,EAAE;QAC7C,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC,EACD,CAAC,UAAU,CAAC,aAAa,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,wCAAM,QAAQ,EAAE,gBAAgB;QAC9B,yCACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,UAAU,CAAC,UAAU,EAC5B,QAAQ,EAAE,iBAAiB,GAC3B,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,oBAAoB,wBA2B/B","sourcesContent":["import React from \"react\";\n\nimport { useSearch } from \"../../hooks\";\n\nexport const ExampleHookUseSearch: React.FC = () => {\n const searchHook = useSearch();\n\n const handleFormSubmit = React.useCallback(\n (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n searchHook.submitSearchTerm();\n },\n [searchHook.submitSearchTerm]\n );\n\n const handleInputChange = React.useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n searchHook.setSearchTerm(event.target.value);\n },\n [searchHook.setSearchTerm]\n );\n\n return (\n <form onSubmit={handleFormSubmit}>\n <input\n type=\"text\"\n value={searchHook.searchTerm}\n onChange={handleInputChange}\n />\n </form>\n );\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const ExampleHookUseSortBy: React.FC;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ExampleHookUseSortBy = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const hooks_1 = require("../../hooks");
9
+ const ExampleHookUseSortBy = () => {
10
+ var _a;
11
+ const sortByHook = (0, hooks_1.useSortBy)();
12
+ const handleSelectChange = react_1.default.useCallback((event) => {
13
+ sortByHook.setSortOption(event.target.value);
14
+ }, [sortByHook.setSortOption]);
15
+ return (react_1.default.createElement("select", { value: (_a = sortByHook.sortOption) === null || _a === void 0 ? void 0 : _a.handle, onChange: handleSelectChange }, sortByHook.sortOptions.map((sortOption) => (react_1.default.createElement("option", { key: sortOption.handle, value: sortOption.handle }, sortOption.name)))));
16
+ };
17
+ exports.ExampleHookUseSortBy = ExampleHookUseSortBy;
18
+ //# sourceMappingURL=ExampleHookUseSortBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleHookUseSortBy.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleHookUseSortBy.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,uCAAwC;AAEjC,MAAM,oBAAoB,GAAa,GAAG,EAAE;;IACjD,MAAM,UAAU,GAAG,IAAA,iBAAS,GAAE,CAAC;IAE/B,MAAM,kBAAkB,GAAG,eAAK,CAAC,WAAW,CAC1C,CAAC,KAA2C,EAAE,EAAE;QAC9C,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC,EACD,CAAC,UAAU,CAAC,aAAa,CAAC,CAC3B,CAAC;IAEF,OAAO,CACL,0CAAQ,KAAK,EAAE,MAAA,UAAU,CAAC,UAAU,0CAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,IACvE,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC1C,0CAAQ,GAAG,EAAE,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,CAAC,MAAM,IACrD,UAAU,CAAC,IAAI,CACT,CACV,CAAC,CACK,CACV,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,oBAAoB,wBAmB/B","sourcesContent":["import React from \"react\";\n\nimport { useSortBy } from \"../../hooks\";\n\nexport const ExampleHookUseSortBy: React.FC = () => {\n const sortByHook = useSortBy();\n\n const handleSelectChange = React.useCallback(\n (event: React.ChangeEvent<HTMLSelectElement>) => {\n sortByHook.setSortOption(event.target.value);\n },\n [sortByHook.setSortOption]\n );\n\n return (\n <select value={sortByHook.sortOption?.handle} onChange={handleSelectChange}>\n {sortByHook.sortOptions.map((sortOption) => (\n <option key={sortOption.handle} value={sortOption.handle}>\n {sortOption.name}\n </option>\n ))}\n </select>\n );\n};\n"]}
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const ExampleReactiveSearchProviderCollection: React.FC;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ExampleReactiveSearchProviderCollection = void 0;
23
+ const React = __importStar(require("react"));
24
+ const components_1 = require("../../components");
25
+ const ExampleReactiveSearchProviderCollection = () => (React.createElement(components_1.ReactifySearchProvider, { mode: "collection", shopifyPermanentDomain: "reactify-apps.myshopify.com", collectionHandle: "example-collection" }, "..."));
26
+ exports.ExampleReactiveSearchProviderCollection = ExampleReactiveSearchProviderCollection;
27
+ //# sourceMappingURL=ExampleReactiveSearchProviderCollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleReactiveSearchProviderCollection.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderCollection.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,iDAA0D;AAEnD,MAAM,uCAAuC,GAAa,GAAG,EAAE,CAAC,CACrE,oBAAC,mCAAsB,IACrB,IAAI,EAAC,YAAY,EACjB,sBAAsB,EAAC,6BAA6B,EACpD,gBAAgB,EAAC,oBAAoB,UAGd,CAC1B,CAAC;AARW,QAAA,uCAAuC,2CAQlD","sourcesContent":["import * as React from \"react\";\n\nimport { ReactifySearchProvider } from \"../../components\";\n\nexport const ExampleReactiveSearchProviderCollection: React.FC = () => (\n <ReactifySearchProvider\n mode=\"collection\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n collectionHandle=\"example-collection\"\n >\n ...\n </ReactifySearchProvider>\n);\n"]}
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const ExampleReactiveSearchProviderInstantSearch: React.FC;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ExampleReactiveSearchProviderInstantSearch = void 0;
23
+ const React = __importStar(require("react"));
24
+ const components_1 = require("../../components");
25
+ const ExampleReactiveSearchProviderInstantSearch = () => (React.createElement(components_1.ReactifySearchProvider, { mode: "instant-search", shopifyPermanentDomain: "reactify-apps.myshopify.com" }, "..."));
26
+ exports.ExampleReactiveSearchProviderInstantSearch = ExampleReactiveSearchProviderInstantSearch;
27
+ //# sourceMappingURL=ExampleReactiveSearchProviderInstantSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleReactiveSearchProviderInstantSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderInstantSearch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,iDAA0D;AAEnD,MAAM,0CAA0C,GAAa,GAAG,EAAE,CAAC,CACxE,oBAAC,mCAAsB,IACrB,IAAI,EAAC,gBAAgB,EACrB,sBAAsB,EAAC,6BAA6B,UAG7B,CAC1B,CAAC;AAPW,QAAA,0CAA0C,8CAOrD","sourcesContent":["import * as React from \"react\";\n\nimport { ReactifySearchProvider } from \"../../components\";\n\nexport const ExampleReactiveSearchProviderInstantSearch: React.FC = () => (\n <ReactifySearchProvider\n mode=\"instant-search\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n >\n ...\n </ReactifySearchProvider>\n);\n"]}
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const ExampleReactiveSearchProviderSearch: React.FC;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.ExampleReactiveSearchProviderSearch = void 0;
23
+ const React = __importStar(require("react"));
24
+ const components_1 = require("../../components");
25
+ const ExampleReactiveSearchProviderSearch = () => (React.createElement(components_1.ReactifySearchProvider, { mode: "search", shopifyPermanentDomain: "reactify-apps.myshopify.com" }, "..."));
26
+ exports.ExampleReactiveSearchProviderSearch = ExampleReactiveSearchProviderSearch;
27
+ //# sourceMappingURL=ExampleReactiveSearchProviderSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleReactiveSearchProviderSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleReactiveSearchProviderSearch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,iDAA0D;AAEnD,MAAM,mCAAmC,GAAa,GAAG,EAAE,CAAC,CACjE,oBAAC,mCAAsB,IACrB,IAAI,EAAC,QAAQ,EACb,sBAAsB,EAAC,6BAA6B,UAG7B,CAC1B,CAAC;AAPW,QAAA,mCAAmC,uCAO9C","sourcesContent":["import * as React from \"react\";\n\nimport { ReactifySearchProvider } from \"../../components\";\n\nexport const ExampleReactiveSearchProviderSearch: React.FC = () => (\n <ReactifySearchProvider\n mode=\"search\"\n shopifyPermanentDomain=\"reactify-apps.myshopify.com\"\n >\n ...\n </ReactifySearchProvider>\n);\n"]}
@@ -13,10 +13,10 @@ const ExampleResultCardCallout = (props) => {
13
13
  gridColumn: `span ${(_b = props.callout.displayColumns) !== null && _b !== void 0 ? _b : 1}`,
14
14
  });
15
15
  }, [props.callout]);
16
- return (react_1.default.createElement("article", { ref: props.itemRef, style: styleProp },
17
- react_1.default.createElement("a", { href: props.callout.link, onClick: props.handleClick },
18
- props.callout.desktopImage && (react_1.default.createElement("img", { src: props.callout.desktopImage, width: "100%" })),
19
- props.callout.title)));
16
+ return (react_1.default.createElement("div", { className: "rs__result-card-callout", ref: props.itemRef, style: styleProp },
17
+ react_1.default.createElement("a", { className: "rs__result-card-callout__link", href: props.callout.link, onClick: props.handleClick },
18
+ props.callout.desktopImage && (react_1.default.createElement("img", { className: "rs__result-card-callout__image", src: props.callout.desktopImage, width: "100%" })),
19
+ react_1.default.createElement("span", { className: "rs__result-card-callout__title" }, props.callout.title))));
20
20
  };
21
21
  exports.ExampleResultCardCallout = ExampleResultCardCallout;
22
22
  //# sourceMappingURL=ExampleResultCardCallout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResultCardCallout.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardCallout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,wBAAwB,GACnC,CAAC,KAAK,EAAE,EAAE;IACR,MAAM,SAAS,GAAG,eAAK,CAAC,OAAO,CAC7B,GAAG,EAAE;;QAAC,OAAA,CAAC;YACL,OAAO,EAAE,QAAQ,MAAA,KAAK,CAAC,OAAO,CAAC,WAAW,mCAAI,CAAC,EAAE;YACjD,UAAU,EAAE,QAAQ,MAAA,KAAK,CAAC,OAAO,CAAC,cAAc,mCAAI,CAAC,EAAE;SACxD,CAAC,CAAA;KAAA,EACF,CAAC,KAAK,CAAC,OAAO,CAAC,CAChB,CAAC;IAEF,OAAO,CACL,2CAAS,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS;QAC3C,qCAAG,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,WAAW;YACpD,KAAK,CAAC,OAAO,CAAC,YAAY,IAAI,CAC7B,uCAAK,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,KAAK,EAAC,MAAM,GAAG,CACtD;YACA,KAAK,CAAC,OAAO,CAAC,KAAK,CAClB,CACI,CACX,CAAC;AACJ,CAAC,CAAC;AApBS,QAAA,wBAAwB,4BAoBjC","sourcesContent":["import React from \"react\";\n\nimport { ResultCardCalloutProps } from \"../../components\";\n\nexport type ExampleResultCardCalloutProps = React.ComponentProps<\n NonNullable<ResultCardCalloutProps[\"render\"]>\n>;\n\nexport const ExampleResultCardCallout: React.FC<ExampleResultCardCalloutProps> =\n (props) => {\n const styleProp = React.useMemo<React.HTMLAttributes<HTMLElement>[\"style\"]>(\n () => ({\n gridRow: `span ${props.callout.displayRows ?? 1}`,\n gridColumn: `span ${props.callout.displayColumns ?? 1}`,\n }),\n [props.callout]\n );\n\n return (\n <article ref={props.itemRef} style={styleProp}>\n <a href={props.callout.link} onClick={props.handleClick}>\n {props.callout.desktopImage && (\n <img src={props.callout.desktopImage} width=\"100%\" />\n )}\n {props.callout.title}\n </a>\n </article>\n );\n };\n"]}
1
+ {"version":3,"file":"ExampleResultCardCallout.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardCallout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,wBAAwB,GACnC,CAAC,KAAK,EAAE,EAAE;IACR,MAAM,SAAS,GAAG,eAAK,CAAC,OAAO,CAC7B,GAAG,EAAE;;QAAC,OAAA,CAAC;YACL,OAAO,EAAE,QAAQ,MAAA,KAAK,CAAC,OAAO,CAAC,WAAW,mCAAI,CAAC,EAAE;YACjD,UAAU,EAAE,QAAQ,MAAA,KAAK,CAAC,OAAO,CAAC,cAAc,mCAAI,CAAC,EAAE;SACxD,CAAC,CAAA;KAAA,EACF,CAAC,KAAK,CAAC,OAAO,CAAC,CAChB,CAAC;IAEF,OAAO,CACL,uCACE,SAAS,EAAC,yBAAyB,EACnC,GAAG,EAAE,KAAK,CAAC,OAAO,EAClB,KAAK,EAAE,SAAS;QAEhB,qCACE,SAAS,EAAC,+BAA+B,EACzC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EACxB,OAAO,EAAE,KAAK,CAAC,WAAW;YAEzB,KAAK,CAAC,OAAO,CAAC,YAAY,IAAI,CAC7B,uCACE,SAAS,EAAC,gCAAgC,EAC1C,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,EAC/B,KAAK,EAAC,MAAM,GACZ,CACH;YACD,wCAAM,SAAS,EAAC,gCAAgC,IAC7C,KAAK,CAAC,OAAO,CAAC,KAAK,CACf,CACL,CACA,CACP,CAAC;AACJ,CAAC,CAAC;AAlCS,QAAA,wBAAwB,4BAkCjC","sourcesContent":["import React from \"react\";\n\nimport { ResultCardCalloutProps } from \"../../components\";\n\nexport type ExampleResultCardCalloutProps = React.ComponentProps<\n NonNullable<ResultCardCalloutProps[\"render\"]>\n>;\n\nexport const ExampleResultCardCallout: React.FC<ExampleResultCardCalloutProps> =\n (props) => {\n const styleProp = React.useMemo<React.HTMLAttributes<HTMLElement>[\"style\"]>(\n () => ({\n gridRow: `span ${props.callout.displayRows ?? 1}`,\n gridColumn: `span ${props.callout.displayColumns ?? 1}`,\n }),\n [props.callout]\n );\n\n return (\n <div\n className=\"rs__result-card-callout\"\n ref={props.itemRef}\n style={styleProp}\n >\n <a\n className=\"rs__result-card-callout__link\"\n href={props.callout.link}\n onClick={props.handleClick}\n >\n {props.callout.desktopImage && (\n <img\n className=\"rs__result-card-callout__image\"\n src={props.callout.desktopImage}\n width=\"100%\"\n />\n )}\n <span className=\"rs__result-card-callout__title\">\n {props.callout.title}\n </span>\n </a>\n </div>\n );\n };\n"]}
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ExampleResultCardProduct = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const ExampleResultCardProduct = (props) => {
9
- return (react_1.default.createElement("article", { ref: props.itemRef },
10
- react_1.default.createElement("a", { onClick: props.handleClick, href: `/products/${props.product.handle}` },
11
- props.product.image && (react_1.default.createElement("img", { src: props.product.image, width: "100%" })),
12
- props.product.title),
13
- react_1.default.createElement("span", null, props.formattedPrice),
14
- props.onSale && (react_1.default.createElement("span", { style: {
9
+ return (react_1.default.createElement("div", { ref: props.itemRef, className: "rs__result-card-product" },
10
+ react_1.default.createElement("a", { className: "rs__result-card-product__link", onClick: props.handleClick, href: `/products/${props.product.handle}` },
11
+ props.product.image && (react_1.default.createElement("img", { className: "rs__result-card-product__image", src: props.product.image, width: "100%" })),
12
+ react_1.default.createElement("span", { className: "rs__result-card-product__title" }, props.product.title)),
13
+ react_1.default.createElement("span", { className: "rs__result-card-product__price" }, props.formattedPrice),
14
+ props.onSale && (react_1.default.createElement("span", { className: "rs__result-card-product__price-sale", style: {
15
15
  textDecoration: "line-through",
16
16
  } }, props.formattedCompareAtPrice))));
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResultCardProduct.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardProduct.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,wBAAwB,GACnC,CAAC,KAAK,EAAE,EAAE;IACR,OAAO,CACL,2CAAS,GAAG,EAAE,KAAK,CAAC,OAAO;QACzB,qCACE,OAAO,EAAE,KAAK,CAAC,WAAW,EAC1B,IAAI,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE;YAExC,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CACtB,uCAAK,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,GAAG,CAC/C;YACA,KAAK,CAAC,OAAO,CAAC,KAAK,CAClB;QACJ,4CAAO,KAAK,CAAC,cAAc,CAAQ;QAClC,KAAK,CAAC,MAAM,IAAI,CACf,wCACE,KAAK,EAAE;gBACL,cAAc,EAAE,cAAc;aAC/B,IAEA,KAAK,CAAC,uBAAuB,CACzB,CACR,CACO,CACX,CAAC;AACJ,CAAC,CAAC;AAzBS,QAAA,wBAAwB,4BAyBjC","sourcesContent":["import React from \"react\";\n\nimport { ResultCardProductProps } from \"../../components\";\n\nexport type ExampleResultCardProductProps = React.ComponentProps<\n NonNullable<ResultCardProductProps[\"render\"]>\n>;\n\nexport const ExampleResultCardProduct: React.FC<ExampleResultCardProductProps> =\n (props) => {\n return (\n <article ref={props.itemRef}>\n <a\n onClick={props.handleClick}\n href={`/products/${props.product.handle}`}\n >\n {props.product.image && (\n <img src={props.product.image} width=\"100%\" />\n )}\n {props.product.title}\n </a>\n <span>{props.formattedPrice}</span>\n {props.onSale && (\n <span\n style={{\n textDecoration: \"line-through\",\n }}\n >\n {props.formattedCompareAtPrice}\n </span>\n )}\n </article>\n );\n };\n"]}
1
+ {"version":3,"file":"ExampleResultCardProduct.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardProduct.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,wBAAwB,GACnC,CAAC,KAAK,EAAE,EAAE;IACR,OAAO,CACL,uCAAK,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAC,yBAAyB;QAC1D,qCACE,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,KAAK,CAAC,WAAW,EAC1B,IAAI,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE;YAExC,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CACtB,uCACE,SAAS,EAAC,gCAAgC,EAC1C,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EACxB,KAAK,EAAC,MAAM,GACZ,CACH;YACD,wCAAM,SAAS,EAAC,gCAAgC,IAC7C,KAAK,CAAC,OAAO,CAAC,KAAK,CACf,CACL;QACJ,wCAAM,SAAS,EAAC,gCAAgC,IAC7C,KAAK,CAAC,cAAc,CAChB;QACN,KAAK,CAAC,MAAM,IAAI,CACf,wCACE,SAAS,EAAC,qCAAqC,EAC/C,KAAK,EAAE;gBACL,cAAc,EAAE,cAAc;aAC/B,IAEA,KAAK,CAAC,uBAAuB,CACzB,CACR,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAnCS,QAAA,wBAAwB,4BAmCjC","sourcesContent":["import React from \"react\";\n\nimport { ResultCardProductProps } from \"../../components\";\n\nexport type ExampleResultCardProductProps = React.ComponentProps<\n NonNullable<ResultCardProductProps[\"render\"]>\n>;\n\nexport const ExampleResultCardProduct: React.FC<ExampleResultCardProductProps> =\n (props) => {\n return (\n <div ref={props.itemRef} className=\"rs__result-card-product\">\n <a\n className=\"rs__result-card-product__link\"\n onClick={props.handleClick}\n href={`/products/${props.product.handle}`}\n >\n {props.product.image && (\n <img\n className=\"rs__result-card-product__image\"\n src={props.product.image}\n width=\"100%\"\n />\n )}\n <span className=\"rs__result-card-product__title\">\n {props.product.title}\n </span>\n </a>\n <span className=\"rs__result-card-product__price\">\n {props.formattedPrice}\n </span>\n {props.onSale && (\n <span\n className=\"rs__result-card-product__price-sale\"\n style={{\n textDecoration: \"line-through\",\n }}\n >\n {props.formattedCompareAtPrice}\n </span>\n )}\n </div>\n );\n };\n"]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ExampleResultPaginationLoadMore = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const ExampleResultPaginationLoadMore = (props) => {
9
- return (react_1.default.createElement("button", { onClick: () => props.handleLoadMore() }, "Load more"));
9
+ return (react_1.default.createElement("button", { className: "rs__pagination__loadmore-button", onClick: () => props.handleLoadMore() }, "Load more"));
10
10
  };
11
11
  exports.ExampleResultPaginationLoadMore = ExampleResultPaginationLoadMore;
12
12
  //# sourceMappingURL=ExampleResultPaginationLoadMore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResultPaginationLoadMore.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationLoadMore.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,+BAA+B,GAC1C,CAAC,KAAK,EAAE,EAAE;IACR,OAAO,CACL,0CAAQ,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,IAAG,WAAW,CAAU,CACtE,CAAC;AACJ,CAAC,CAAC;AALS,QAAA,+BAA+B,mCAKxC","sourcesContent":["import React from \"react\";\n\nimport { ResultPaginationLoadMoreProps } from \"../../components\";\n\nexport type ExampleResultPaginationLoadMoreProps = React.ComponentProps<\n NonNullable<ResultPaginationLoadMoreProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationLoadMore: React.FC<ExampleResultPaginationLoadMoreProps> =\n (props) => {\n return (\n <button onClick={() => props.handleLoadMore()}>{\"Load more\"}</button>\n );\n };\n"]}
1
+ {"version":3,"file":"ExampleResultPaginationLoadMore.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationLoadMore.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,+BAA+B,GAC1C,CAAC,KAAK,EAAE,EAAE;IACR,OAAO,CACL,0CACE,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,IAEpC,WAAW,CACL,CACV,CAAC;AACJ,CAAC,CAAC;AAVS,QAAA,+BAA+B,mCAUxC","sourcesContent":["import React from \"react\";\n\nimport { ResultPaginationLoadMoreProps } from \"../../components\";\n\nexport type ExampleResultPaginationLoadMoreProps = React.ComponentProps<\n NonNullable<ResultPaginationLoadMoreProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationLoadMore: React.FC<ExampleResultPaginationLoadMoreProps> =\n (props) => {\n return (\n <button\n className=\"rs__pagination__loadmore-button\"\n onClick={() => props.handleLoadMore()}\n >\n {\"Load more\"}\n </button>\n );\n };\n"]}
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ExampleResultPaginationNextPrev = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const ExampleResultPaginationNextPrev = (props) => {
9
- return (react_1.default.createElement("nav", null,
10
- props.hasPreviousPage && (react_1.default.createElement("a", { rel: "prev", onClick: props.handlePreviousPage, href: props.buildPagePath(props.actualCurrentPage - 1) }, "Prev")),
11
- props.hasNextPage && (react_1.default.createElement("a", { rel: "next", onClick: props.handleNextPage, href: props.buildPagePath(props.actualCurrentPage + 1) }, "Next"))));
9
+ return (react_1.default.createElement("nav", { className: "rs__pagination__nav" },
10
+ props.hasPreviousPage && (react_1.default.createElement("a", { className: "rs__pagination__prev-link", rel: "prev", onClick: props.handlePreviousPage, href: props.buildPagePath(props.actualCurrentPage - 1) }, "Prev")),
11
+ props.hasNextPage && (react_1.default.createElement("a", { className: "rs__pagination__next-link", rel: "next", onClick: props.handleNextPage, href: props.buildPagePath(props.actualCurrentPage + 1) }, "Next"))));
12
12
  };
13
13
  exports.ExampleResultPaginationNextPrev = ExampleResultPaginationNextPrev;
14
14
  //# sourceMappingURL=ExampleResultPaginationNextPrev.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResultPaginationNextPrev.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNextPrev.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,+BAA+B,GAC1C,CAAC,KAAK,EAAE,EAAE;IACR,OAAO,CACL;QACG,KAAK,CAAC,eAAe,IAAI,CACxB,qCACE,GAAG,EAAC,MAAM,EACV,OAAO,EAAE,KAAK,CAAC,kBAAkB,EACjC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAErD,MAAM,CACL,CACL;QACA,KAAK,CAAC,WAAW,IAAI,CACpB,qCACE,GAAG,EAAC,MAAM,EACV,OAAO,EAAE,KAAK,CAAC,cAAc,EAC7B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAErD,MAAM,CACL,CACL,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAxBS,QAAA,+BAA+B,mCAwBxC","sourcesContent":["import React from \"react\";\n\nimport { ResultPaginationNextPrevProps } from \"../../components\";\n\nexport type ExampleResultPaginationNextPrevProps = React.ComponentProps<\n NonNullable<ResultPaginationNextPrevProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationNextPrev: React.FC<ExampleResultPaginationNextPrevProps> =\n (props) => {\n return (\n <nav>\n {props.hasPreviousPage && (\n <a\n rel=\"prev\"\n onClick={props.handlePreviousPage}\n href={props.buildPagePath(props.actualCurrentPage - 1)}\n >\n {\"Prev\"}\n </a>\n )}\n {props.hasNextPage && (\n <a\n rel=\"next\"\n onClick={props.handleNextPage}\n href={props.buildPagePath(props.actualCurrentPage + 1)}\n >\n {\"Next\"}\n </a>\n )}\n </nav>\n );\n };\n"]}
1
+ {"version":3,"file":"ExampleResultPaginationNextPrev.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNextPrev.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,+BAA+B,GAC1C,CAAC,KAAK,EAAE,EAAE;IACR,OAAO,CACL,uCAAK,SAAS,EAAC,qBAAqB;QACjC,KAAK,CAAC,eAAe,IAAI,CACxB,qCACE,SAAS,EAAC,2BAA2B,EACrC,GAAG,EAAC,MAAM,EACV,OAAO,EAAE,KAAK,CAAC,kBAAkB,EACjC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAErD,MAAM,CACL,CACL;QACA,KAAK,CAAC,WAAW,IAAI,CACpB,qCACE,SAAS,EAAC,2BAA2B,EACrC,GAAG,EAAC,MAAM,EACV,OAAO,EAAE,KAAK,CAAC,cAAc,EAC7B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAErD,MAAM,CACL,CACL,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AA1BS,QAAA,+BAA+B,mCA0BxC","sourcesContent":["import React from \"react\";\n\nimport { ResultPaginationNextPrevProps } from \"../../components\";\n\nexport type ExampleResultPaginationNextPrevProps = React.ComponentProps<\n NonNullable<ResultPaginationNextPrevProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationNextPrev: React.FC<ExampleResultPaginationNextPrevProps> =\n (props) => {\n return (\n <nav className=\"rs__pagination__nav\">\n {props.hasPreviousPage && (\n <a\n className=\"rs__pagination__prev-link\"\n rel=\"prev\"\n onClick={props.handlePreviousPage}\n href={props.buildPagePath(props.actualCurrentPage - 1)}\n >\n {\"Prev\"}\n </a>\n )}\n {props.hasNextPage && (\n <a\n className=\"rs__pagination__next-link\"\n rel=\"next\"\n onClick={props.handleNextPage}\n href={props.buildPagePath(props.actualCurrentPage + 1)}\n >\n {\"Next\"}\n </a>\n )}\n </nav>\n );\n };\n"]}
@@ -6,22 +6,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ExampleResultPaginationNumbered = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const ExampleResultPaginationNumbered = (props) => {
9
- return (react_1.default.createElement("nav", null,
10
- props.currentPage > 0 && (react_1.default.createElement("a", { rel: "prev", href: props.buildPagePath(props.currentPage), onClick: (event) => props.handlePreviousPage(event) }, "Prev")),
11
- !props.pagesToShow.includes(0) && (react_1.default.createElement("a", { href: props.buildPagePath(1), onClick: (event) => props.handlePageChange(0, event), rel: 0 === props.currentPage - 1 ? `prev` : undefined }, "1")),
9
+ return (react_1.default.createElement("nav", { className: "rs__pagination__nav" },
10
+ props.currentPage > 0 && (react_1.default.createElement("a", { className: "rs__pagination__prev-link", rel: "prev", href: props.buildPagePath(props.currentPage), onClick: (event) => props.handlePreviousPage(event) }, "Prev")),
11
+ !props.pagesToShow.includes(0) && (react_1.default.createElement("a", { className: "rs__pagination__pagenumber-link", href: props.buildPagePath(1), onClick: (event) => props.handlePageChange(0, event), rel: 0 === props.currentPage - 1 ? `prev` : undefined }, "1")),
12
12
  !props.pagesToShow.includes(1) && react_1.default.createElement("span", null, "..."),
13
- props.pagesToShow.map((page) => page === props.currentPage ? (react_1.default.createElement("span", { key: page + 1 }, page + 1)) : (react_1.default.createElement("a", { key: page + 1, href: props.buildPagePath(page + 1), onClick: (event) => props.handlePageChange(page, event), rel: page === props.currentPage + 1
13
+ props.pagesToShow.map((page) => page === props.currentPage ? (react_1.default.createElement("span", { className: "rs__pagination__pagenumber-active", key: page + 1 }, page + 1)) : (react_1.default.createElement("a", { className: "rs__pagination__pagenumber-link", key: page + 1, href: props.buildPagePath(page + 1), onClick: (event) => props.handlePageChange(page, event), rel: page === props.currentPage + 1
14
14
  ? `next`
15
15
  : page === props.currentPage - 1
16
16
  ? `prev`
17
17
  : undefined }, page + 1))),
18
18
  !props.pagesToShow.includes(props.totalPages - 2) && react_1.default.createElement("span", null, "..."),
19
- !props.pagesToShow.includes(props.totalPages - 1) && (react_1.default.createElement("a", { href: props.buildPagePath(props.totalPages), onClick: (event) => props.handlePageChange(props.totalPages - 1, event), rel: props.totalPages - 1 === props.currentPage + 1
19
+ !props.pagesToShow.includes(props.totalPages - 1) && (react_1.default.createElement("a", { className: "rs__pagination__pagenumber-link", href: props.buildPagePath(props.totalPages), onClick: (event) => props.handlePageChange(props.totalPages - 1, event), rel: props.totalPages - 1 === props.currentPage + 1
20
20
  ? `next`
21
21
  : props.totalPages - 1 === props.currentPage - 1
22
22
  ? `prev`
23
23
  : undefined }, props.totalPages)),
24
- props.currentPage + 1 < props.totalPages && (react_1.default.createElement("a", { rel: "next", href: props.buildPagePath(props.currentPage + 2), onClick: (event) => props.handleNextPage(event) }, "Next"))));
24
+ props.currentPage + 1 < props.totalPages && (react_1.default.createElement("a", { className: "rs__pagination__next-link", rel: "next", href: props.buildPagePath(props.currentPage + 2), onClick: (event) => props.handleNextPage(event) }, "Next"))));
25
25
  };
26
26
  exports.ExampleResultPaginationNumbered = ExampleResultPaginationNumbered;
27
27
  //# sourceMappingURL=ExampleResultPaginationNumbered.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResultPaginationNumbered.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNumbered.tsx"],"names":[],"mappings":"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","sourcesContent":["import React from \"react\";\n\nimport { ResultPaginationNumberedProps } from \"../../components\";\n\nexport type ExampleResultPaginationNumberedProps = React.ComponentProps<\n NonNullable<ResultPaginationNumberedProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationNumbered: React.FC<ExampleResultPaginationNumberedProps> =\n (props) => {\n return (\n <nav>\n {props.currentPage > 0 && (\n <a\n rel=\"prev\"\n href={props.buildPagePath(props.currentPage)}\n onClick={(event) => props.handlePreviousPage(event)}\n >\n {\"Prev\"}\n </a>\n )}\n {!props.pagesToShow.includes(0) && (\n <a\n href={props.buildPagePath(1)}\n onClick={(event) => props.handlePageChange(0, event)}\n rel={0 === props.currentPage - 1 ? `prev` : undefined}\n >\n {\"1\"}\n </a>\n )}\n {!props.pagesToShow.includes(1) && <span>...</span>}\n {props.pagesToShow.map((page) =>\n page === props.currentPage ? (\n <span key={page + 1}>{page + 1}</span>\n ) : (\n <a\n key={page + 1}\n href={props.buildPagePath(page + 1)}\n onClick={(event) => props.handlePageChange(page, event)}\n rel={\n page === props.currentPage + 1\n ? `next`\n : page === props.currentPage - 1\n ? `prev`\n : undefined\n }\n >\n {page + 1}\n </a>\n )\n )}\n {!props.pagesToShow.includes(props.totalPages - 2) && <span>...</span>}\n {!props.pagesToShow.includes(props.totalPages - 1) && (\n <a\n href={props.buildPagePath(props.totalPages)}\n onClick={(event) =>\n props.handlePageChange(props.totalPages - 1, event)\n }\n rel={\n props.totalPages - 1 === props.currentPage + 1\n ? `next`\n : props.totalPages - 1 === props.currentPage - 1\n ? `prev`\n : undefined\n }\n >\n {props.totalPages}\n </a>\n )}\n {props.currentPage + 1 < props.totalPages && (\n <a\n rel=\"next\"\n href={props.buildPagePath(props.currentPage + 2)}\n onClick={(event) => props.handleNextPage(event)}\n >\n {\"Next\"}\n </a>\n )}\n </nav>\n );\n };\n"]}
1
+ {"version":3,"file":"ExampleResultPaginationNumbered.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNumbered.tsx"],"names":[],"mappings":"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","sourcesContent":["import React from \"react\";\n\nimport { ResultPaginationNumberedProps } from \"../../components\";\n\nexport type ExampleResultPaginationNumberedProps = React.ComponentProps<\n NonNullable<ResultPaginationNumberedProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationNumbered: React.FC<ExampleResultPaginationNumberedProps> =\n (props) => {\n return (\n <nav className=\"rs__pagination__nav\">\n {props.currentPage > 0 && (\n <a\n className=\"rs__pagination__prev-link\"\n rel=\"prev\"\n href={props.buildPagePath(props.currentPage)}\n onClick={(event) => props.handlePreviousPage(event)}\n >\n {\"Prev\"}\n </a>\n )}\n {!props.pagesToShow.includes(0) && (\n <a\n className=\"rs__pagination__pagenumber-link\"\n href={props.buildPagePath(1)}\n onClick={(event) => props.handlePageChange(0, event)}\n rel={0 === props.currentPage - 1 ? `prev` : undefined}\n >\n {\"1\"}\n </a>\n )}\n {!props.pagesToShow.includes(1) && <span>...</span>}\n {props.pagesToShow.map((page) =>\n page === props.currentPage ? (\n <span className=\"rs__pagination__pagenumber-active\" key={page + 1}>\n {page + 1}\n </span>\n ) : (\n <a\n className=\"rs__pagination__pagenumber-link\"\n key={page + 1}\n href={props.buildPagePath(page + 1)}\n onClick={(event) => props.handlePageChange(page, event)}\n rel={\n page === props.currentPage + 1\n ? `next`\n : page === props.currentPage - 1\n ? `prev`\n : undefined\n }\n >\n {page + 1}\n </a>\n )\n )}\n {!props.pagesToShow.includes(props.totalPages - 2) && <span>...</span>}\n {!props.pagesToShow.includes(props.totalPages - 1) && (\n <a\n className=\"rs__pagination__pagenumber-link\"\n href={props.buildPagePath(props.totalPages)}\n onClick={(event) =>\n props.handlePageChange(props.totalPages - 1, event)\n }\n rel={\n props.totalPages - 1 === props.currentPage + 1\n ? `next`\n : props.totalPages - 1 === props.currentPage - 1\n ? `prev`\n : undefined\n }\n >\n {props.totalPages}\n </a>\n )}\n {props.currentPage + 1 < props.totalPages && (\n <a\n className=\"rs__pagination__next-link\"\n rel=\"next\"\n href={props.buildPagePath(props.currentPage + 2)}\n onClick={(event) => props.handleNextPage(event)}\n >\n {\"Next\"}\n </a>\n )}\n </nav>\n );\n };\n"]}
@@ -0,0 +1,2 @@
1
+ import * as React from "react";
2
+ export declare const Component: React.FC;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.Component = void 0;
23
+ const React = __importStar(require("react"));
24
+ const components_1 = require("../../components");
25
+ const ExampleResultCardProduct_1 = require("./ExampleResultCardProduct");
26
+ const ExampleResultCardCallout_1 = require("./ExampleResultCardCallout");
27
+ const ExampleResultPaginationNumbered_1 = require("./ExampleResultPaginationNumbered");
28
+ const ExampleResultPaginationLoadMore_1 = require("./ExampleResultPaginationLoadMore");
29
+ const ExampleResultPaginationNextPrev_1 = require("./ExampleResultPaginationNextPrev");
30
+ const Component = () => {
31
+ return (React.createElement(components_1.Results, { listStyle: {
32
+ display: "grid",
33
+ gap: "10px",
34
+ gridTemplateColumns: "repeat(4, minmax(0, 1fr))",
35
+ }, renderResultCardProduct: ExampleResultCardProduct_1.ExampleResultCardProduct, renderResultCardCallout: ExampleResultCardCallout_1.ExampleResultCardCallout, renderPaginationNumbered: ExampleResultPaginationNumbered_1.ExampleResultPaginationNumbered, renderPaginationLoadMore: ExampleResultPaginationLoadMore_1.ExampleResultPaginationLoadMore, renderPaginationNextPrev: ExampleResultPaginationNextPrev_1.ExampleResultPaginationNextPrev }));
36
+ };
37
+ exports.Component = Component;
38
+ //# sourceMappingURL=ExampleResults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleResults.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResults.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,iDAA2C;AAE3C,yEAAsE;AACtE,yEAAsE;AACtE,uFAAoF;AACpF,uFAAoF;AACpF,uFAAoF;AAE7E,MAAM,SAAS,GAAa,GAAG,EAAE;IACtC,OAAO,CACL,oBAAC,oBAAO,IACN,SAAS,EAAE;YACT,OAAO,EAAE,MAAM;YACf,GAAG,EAAE,MAAM;YACX,mBAAmB,EAAE,2BAA2B;SACjD,EACD,uBAAuB,EAAE,mDAAwB,EACjD,uBAAuB,EAAE,mDAAwB,EACjD,wBAAwB,EAAE,iEAA+B,EACzD,wBAAwB,EAAE,iEAA+B,EACzD,wBAAwB,EAAE,iEAA+B,GACzD,CACH,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,SAAS,aAepB","sourcesContent":["import * as React from \"react\";\n\nimport { Results } from \"../../components\";\n\nimport { ExampleResultCardProduct } from \"./ExampleResultCardProduct\";\nimport { ExampleResultCardCallout } from \"./ExampleResultCardCallout\";\nimport { ExampleResultPaginationNumbered } from \"./ExampleResultPaginationNumbered\";\nimport { ExampleResultPaginationLoadMore } from \"./ExampleResultPaginationLoadMore\";\nimport { ExampleResultPaginationNextPrev } from \"./ExampleResultPaginationNextPrev\";\n\nexport const Component: React.FC = () => {\n return (\n <Results\n listStyle={{\n display: \"grid\",\n gap: \"10px\",\n gridTemplateColumns: \"repeat(4, minmax(0, 1fr))\",\n }}\n renderResultCardProduct={ExampleResultCardProduct}\n renderResultCardCallout={ExampleResultCardCallout}\n renderPaginationNumbered={ExampleResultPaginationNumbered}\n renderPaginationLoadMore={ExampleResultPaginationLoadMore}\n renderPaginationNextPrev={ExampleResultPaginationNextPrev}\n />\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { SearchProps } from "../../components";
3
+ export declare type ExampleSearchProps = React.ComponentProps<NonNullable<SearchProps["render"]>>;
4
+ export declare const ExampleSearch: React.FC<ExampleSearchProps>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ExampleSearch = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const ExampleSearch = (props) => {
9
+ const handleFormSubmit = react_1.default.useCallback((event) => {
10
+ event.preventDefault();
11
+ props.submitSearchTerm();
12
+ }, [props.submitSearchTerm]);
13
+ const handleInputChange = react_1.default.useCallback((event) => {
14
+ props.setSearchTerm(event.target.value);
15
+ }, [props.setSearchTerm]);
16
+ return (react_1.default.createElement("form", { onSubmit: handleFormSubmit },
17
+ react_1.default.createElement("input", { type: "text", placeholder: "Search terms...", value: props.searchTerm, onChange: handleInputChange })));
18
+ };
19
+ exports.ExampleSearch = ExampleSearch;
20
+ //# sourceMappingURL=ExampleSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,aAAa,GAAiC,CAAC,KAAK,EAAE,EAAE;IACnE,MAAM,gBAAgB,GAAG,eAAK,CAAC,WAAW,CACxC,CAAC,KAAuC,EAAE,EAAE;QAC1C,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,gBAAgB,EAAE,CAAC;IAC3B,CAAC,EACD,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACzB,CAAC;IAEF,MAAM,iBAAiB,GAAG,eAAK,CAAC,WAAW,CACzC,CAAC,KAA0C,EAAE,EAAE;QAC7C,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC,EACD,CAAC,KAAK,CAAC,aAAa,CAAC,CACtB,CAAC;IAEF,OAAO,CACL,wCAAM,QAAQ,EAAE,gBAAgB;QAC9B,yCACE,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,iBAAiB,EAC7B,KAAK,EAAE,KAAK,CAAC,UAAU,EACvB,QAAQ,EAAE,iBAAiB,GAC3B,CACG,CACR,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,aAAa,iBA0BxB","sourcesContent":["import React from \"react\";\n\nimport { SearchProps } from \"../../components\";\n\nexport type ExampleSearchProps = React.ComponentProps<\n NonNullable<SearchProps[\"render\"]>\n>;\n\nexport const ExampleSearch: React.FC<ExampleSearchProps> = (props) => {\n const handleFormSubmit = React.useCallback(\n (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n props.submitSearchTerm();\n },\n [props.submitSearchTerm]\n );\n\n const handleInputChange = React.useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n props.setSearchTerm(event.target.value);\n },\n [props.setSearchTerm]\n );\n\n return (\n <form onSubmit={handleFormSubmit}>\n <input\n type=\"text\"\n placeholder=\"Search terms...\"\n value={props.searchTerm}\n onChange={handleInputChange}\n />\n </form>\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { SortByProps } from "../../components";
3
+ export declare type ExampleSortByProps = React.ComponentProps<NonNullable<SortByProps["render"]>>;
4
+ export declare const ExampleSortBy: React.FC<ExampleSortByProps>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ExampleSortBy = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const ExampleSortBy = (props) => {
9
+ var _a;
10
+ return (react_1.default.createElement("select", { className: "rs__sortby__select", value: (_a = props.sortOption) === null || _a === void 0 ? void 0 : _a.handle, onChange: (event) => props.setSortOption(event.target.value) }, props.sortOptions.map((sortOption) => (react_1.default.createElement("option", { key: sortOption.handle, className: "rs__sortby__option", value: sortOption.handle }, sortOption.name)))));
11
+ };
12
+ exports.ExampleSortBy = ExampleSortBy;
13
+ //# sourceMappingURL=ExampleSortBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSortBy.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSortBy.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,aAAa,GAAiC,CAAC,KAAK,EAAE,EAAE;;IACnE,OAAO,CACL,0CACE,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAE,MAAA,KAAK,CAAC,UAAU,0CAAE,MAAM,EAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,IAE3D,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CACrC,0CACE,GAAG,EAAE,UAAU,CAAC,MAAM,EACtB,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAE,UAAU,CAAC,MAAM,IAEvB,UAAU,CAAC,IAAI,CACT,CACV,CAAC,CACK,CACV,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,aAAa,iBAkBxB","sourcesContent":["import React from \"react\";\n\nimport { SortByProps } from \"../../components\";\n\nexport type ExampleSortByProps = React.ComponentProps<\n NonNullable<SortByProps[\"render\"]>\n>;\n\nexport const ExampleSortBy: React.FC<ExampleSortByProps> = (props) => {\n return (\n <select\n className=\"rs__sortby__select\"\n value={props.sortOption?.handle}\n onChange={(event) => props.setSortOption(event.target.value)}\n >\n {props.sortOptions.map((sortOption) => (\n <option\n key={sortOption.handle}\n className=\"rs__sortby__option\"\n value={sortOption.handle}\n >\n {sortOption.name}\n </option>\n ))}\n </select>\n );\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { StatsProps } from "../../components";
3
+ export declare type ExampleStatsProps = React.ComponentProps<NonNullable<StatsProps["render"]>>;
4
+ export declare const ExampleStats: React.FC<ExampleStatsProps>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ExampleStats = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const ExampleStats = (props) => {
9
+ return (react_1.default.createElement("div", null,
10
+ "Found ",
11
+ props.resultStats.numberOfResults,
12
+ " products"));
13
+ };
14
+ exports.ExampleStats = ExampleStats;
15
+ //# sourceMappingURL=ExampleStats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleStats.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleStats.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAQnB,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IACjE,OAAO,CACL;QACG,QAAQ;QACR,KAAK,CAAC,WAAW,CAAC,eAAe;QACjC,WAAW,CACR,CACP,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,YAAY,gBAQvB","sourcesContent":["import React from \"react\";\n\nimport { StatsProps } from \"../../components\";\n\nexport type ExampleStatsProps = React.ComponentProps<\n NonNullable<StatsProps[\"render\"]>\n>;\n\nexport const ExampleStats: React.FC<ExampleStatsProps> = (props) => {\n return (\n <div>\n {\"Found \"}\n {props.resultStats.numberOfResults}\n {\" products\"}\n </div>\n );\n};\n"]}
@@ -1,10 +1,20 @@
1
+ export * from "./ExampleClearAll";
2
+ export * from "./ExampleCustomComponent";
1
3
  export * from "./ExampleFilterList";
2
4
  export * from "./ExampleFilterRange";
3
5
  export * from "./ExampleFilterSlider";
4
- export * from "./ExampleFilterStack";
6
+ export * from "./ExampleFilters";
7
+ export * from "./ExampleFiltersActive";
8
+ export * from "./ExampleReactiveSearchProviderCollection";
9
+ export * from "./ExampleReactiveSearchProviderInstantSearch";
10
+ export * from "./ExampleReactiveSearchProviderSearch";
5
11
  export * from "./ExampleResultCardCallout";
6
12
  export * from "./ExampleResultCardProduct";
7
13
  export * from "./ExampleResultPaginationNumbered";
8
14
  export * from "./ExampleResultPaginationLoadMore";
9
15
  export * from "./ExampleResultPaginationNextPrev";
10
- export * from "./ExampleSortby";
16
+ export * from "./ExampleSearch";
17
+ export * from "./ExampleSortBy";
18
+ export * from "./ExampleStats";
19
+ export * from "./ExampleHookUseSearch";
20
+ export * from "./ExampleHookUseSortBy";
@@ -10,14 +10,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./ExampleClearAll"), exports);
14
+ __exportStar(require("./ExampleCustomComponent"), exports);
13
15
  __exportStar(require("./ExampleFilterList"), exports);
14
16
  __exportStar(require("./ExampleFilterRange"), exports);
15
17
  __exportStar(require("./ExampleFilterSlider"), exports);
16
- __exportStar(require("./ExampleFilterStack"), exports);
18
+ __exportStar(require("./ExampleFilters"), exports);
19
+ __exportStar(require("./ExampleFiltersActive"), exports);
20
+ __exportStar(require("./ExampleReactiveSearchProviderCollection"), exports);
21
+ __exportStar(require("./ExampleReactiveSearchProviderInstantSearch"), exports);
22
+ __exportStar(require("./ExampleReactiveSearchProviderSearch"), exports);
17
23
  __exportStar(require("./ExampleResultCardCallout"), exports);
18
24
  __exportStar(require("./ExampleResultCardProduct"), exports);
19
25
  __exportStar(require("./ExampleResultPaginationNumbered"), exports);
20
26
  __exportStar(require("./ExampleResultPaginationLoadMore"), exports);
21
27
  __exportStar(require("./ExampleResultPaginationNextPrev"), exports);
22
- __exportStar(require("./ExampleSortby"), exports);
28
+ __exportStar(require("./ExampleSearch"), exports);
29
+ __exportStar(require("./ExampleSortBy"), exports);
30
+ __exportStar(require("./ExampleStats"), exports);
31
+ __exportStar(require("./ExampleHookUseSearch"), exports);
32
+ __exportStar(require("./ExampleHookUseSortBy"), exports);
23
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Example/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,6DAA0C;AAC1C,6DAA2C;AAC3C,oEAAkD;AAClD,oEAAkD;AAClD,oEAAkD;AAClD,kDAAgC","sourcesContent":["export * from \"./ExampleFilterList\";\nexport * from \"./ExampleFilterRange\";\nexport * from \"./ExampleFilterSlider\";\nexport * from \"./ExampleFilterStack\";\nexport * from \"./ExampleResultCardCallout\"\nexport * from \"./ExampleResultCardProduct\";\nexport * from \"./ExampleResultPaginationNumbered\";\nexport * from \"./ExampleResultPaginationLoadMore\";\nexport * from \"./ExampleResultPaginationNextPrev\";\nexport * from \"./ExampleSortby\";"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Example/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,wDAAsC;AACtC,mDAAiC;AACjC,yDAAuC;AACvC,4EAA0D;AAC1D,+EAA6D;AAC7D,wEAAsD;AACtD,6DAA2C;AAC3C,6DAA2C;AAC3C,oEAAkD;AAClD,oEAAkD;AAClD,oEAAkD;AAClD,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAE/B,yDAAuC;AACvC,yDAAuC","sourcesContent":["export * from \"./ExampleClearAll\";\nexport * from \"./ExampleCustomComponent\";\nexport * from \"./ExampleFilterList\";\nexport * from \"./ExampleFilterRange\";\nexport * from \"./ExampleFilterSlider\";\nexport * from \"./ExampleFilters\";\nexport * from \"./ExampleFiltersActive\";\nexport * from \"./ExampleReactiveSearchProviderCollection\";\nexport * from \"./ExampleReactiveSearchProviderInstantSearch\";\nexport * from \"./ExampleReactiveSearchProviderSearch\";\nexport * from \"./ExampleResultCardCallout\";\nexport * from \"./ExampleResultCardProduct\";\nexport * from \"./ExampleResultPaginationNumbered\";\nexport * from \"./ExampleResultPaginationLoadMore\";\nexport * from \"./ExampleResultPaginationNextPrev\";\nexport * from \"./ExampleSearch\";\nexport * from \"./ExampleSortBy\";\nexport * from \"./ExampleStats\";\n\nexport * from \"./ExampleHookUseSearch\";\nexport * from \"./ExampleHookUseSortBy\";\n"]}
@@ -1,20 +1,23 @@
1
1
  import React from "react";
2
2
  import type { ConfigFilterOption } from "../../types";
3
- import { useFilterListProps, useReactiveFilterRangeProps, useReactiveFilterSliderProps } from "../../hooks";
3
+ import { useFilterListProps, useFilterRangeProps, useFilterSliderProps } from "../../hooks";
4
4
  export declare type FilterProps = {
5
5
  /** The filter option being rendered */
6
6
  filter: ConfigFilterOption;
7
7
  /** Render method for List filters */
8
- renderFilterList?: React.FC<Omit<FilterProps, "renderFilterList"> & {
8
+ renderFilterList?: React.FC<{
9
+ filter: ConfigFilterOption;
9
10
  filterListProps: ReturnType<typeof useFilterListProps>;
10
11
  }>;
11
12
  /** Render method for Range filters */
12
- renderFilterRange?: React.FC<Omit<FilterProps, "renderFilterRange"> & {
13
- reactiveFilterRangeProps: ReturnType<typeof useReactiveFilterRangeProps>;
13
+ renderFilterRange?: React.FC<{
14
+ filter: ConfigFilterOption;
15
+ filterRangeProps: ReturnType<typeof useFilterRangeProps>;
14
16
  }>;
15
17
  /** Render method for Slider filters */
16
- renderFilterSlider?: React.FC<Omit<FilterProps, "renderFilterSlider"> & {
17
- reactiveFilterSliderProps: ReturnType<typeof useReactiveFilterSliderProps>;
18
+ renderFilterSlider?: React.FC<{
19
+ filter: ConfigFilterOption;
20
+ filterSliderProps: ReturnType<typeof useFilterSliderProps>;
18
21
  }>;
19
22
  };
20
23
  export declare const Filter: React.FC<FilterProps>;