@usereactify/search 5.59.0 → 5.59.1-beta.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.
- package/CHANGELOG.md +8 -0
- package/dist/package.json +7 -5
- package/dist/src/components/ClearAll/ClearAll.d.ts +1 -1
- package/dist/src/components/ClearAll/ClearAll.js +4 -9
- package/dist/src/components/ClearAll/ClearAll.js.map +1 -1
- package/dist/src/components/CustomComponent/CustomComponent.d.ts +1 -1
- package/dist/src/components/CustomComponent/CustomComponent.js +2 -2
- package/dist/src/components/CustomComponent/CustomComponent.js.map +1 -1
- package/dist/src/components/Example/ExampleClearAll.d.ts +2 -2
- package/dist/src/components/Example/ExampleClearAll.js +2 -5
- package/dist/src/components/Example/ExampleClearAll.js.map +1 -1
- package/dist/src/components/Example/ExampleCustomComponent.d.ts +1 -1
- package/dist/src/components/Example/ExampleCustomComponent.js +3 -7
- package/dist/src/components/Example/ExampleCustomComponent.js.map +1 -1
- package/dist/src/components/Example/ExampleFilterList.d.ts +2 -2
- package/dist/src/components/Example/ExampleFilterList.js +31 -66
- package/dist/src/components/Example/ExampleFilterList.js.map +1 -1
- package/dist/src/components/Example/ExampleFilterRange.d.ts +2 -2
- package/dist/src/components/Example/ExampleFilterRange.js +2 -12
- package/dist/src/components/Example/ExampleFilterRange.js.map +1 -1
- package/dist/src/components/Example/ExampleFilterSlider.d.ts +2 -2
- package/dist/src/components/Example/ExampleFilterSlider.js +11 -18
- package/dist/src/components/Example/ExampleFilterSlider.js.map +1 -1
- package/dist/src/components/Example/ExampleFilters.d.ts +1 -1
- package/dist/src/components/Example/ExampleFilters.js +3 -8
- package/dist/src/components/Example/ExampleFilters.js.map +1 -1
- package/dist/src/components/Example/ExampleFiltersSelected.d.ts +2 -2
- package/dist/src/components/Example/ExampleFiltersSelected.js +3 -24
- package/dist/src/components/Example/ExampleFiltersSelected.js.map +1 -1
- package/dist/src/components/Example/ExampleHookUseFilters.d.ts +1 -1
- package/dist/src/components/Example/ExampleHookUseFilters.js +3 -10
- package/dist/src/components/Example/ExampleHookUseFilters.js.map +1 -1
- package/dist/src/components/Example/ExampleHookUseResults.d.ts +1 -1
- package/dist/src/components/Example/ExampleHookUseResults.js +3 -8
- package/dist/src/components/Example/ExampleHookUseResults.js.map +1 -1
- package/dist/src/components/Example/ExampleHookUseSearch.js +2 -2
- package/dist/src/components/Example/ExampleHookUseSearch.js.map +1 -1
- package/dist/src/components/Example/ExampleHookUseSortBy.js +2 -1
- package/dist/src/components/Example/ExampleHookUseSortBy.js.map +1 -1
- package/dist/src/components/Example/ExampleProductCardWeight.d.ts +1 -1
- package/dist/src/components/Example/ExampleProductCardWeight.js +14 -47
- package/dist/src/components/Example/ExampleProductCardWeight.js.map +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.d.ts +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.js +2 -6
- package/dist/src/components/Example/ExampleReactiveSearchProviderCollection.js.map +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.d.ts +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.js +2 -6
- package/dist/src/components/Example/ExampleReactiveSearchProviderInstantSearch.js.map +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.d.ts +1 -1
- package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.js +2 -6
- package/dist/src/components/Example/ExampleReactiveSearchProviderSearch.js.map +1 -1
- package/dist/src/components/Example/ExampleResultCardCallout.d.ts +1 -1
- package/dist/src/components/Example/ExampleResultCardCallout.js +2 -4
- package/dist/src/components/Example/ExampleResultCardCallout.js.map +1 -1
- package/dist/src/components/Example/ExampleResultCardProduct.d.ts +2 -2
- package/dist/src/components/Example/ExampleResultCardProduct.js +2 -12
- package/dist/src/components/Example/ExampleResultCardProduct.js.map +1 -1
- package/dist/src/components/Example/ExampleResultPaginationInfiniteScroll.d.ts +2 -2
- package/dist/src/components/Example/ExampleResultPaginationInfiniteScroll.js +2 -5
- package/dist/src/components/Example/ExampleResultPaginationInfiniteScroll.js.map +1 -1
- package/dist/src/components/Example/ExampleResultPaginationLoadMore.d.ts +2 -2
- package/dist/src/components/Example/ExampleResultPaginationLoadMore.js +2 -5
- package/dist/src/components/Example/ExampleResultPaginationLoadMore.js.map +1 -1
- package/dist/src/components/Example/ExampleResultPaginationNextPrev.d.ts +2 -2
- package/dist/src/components/Example/ExampleResultPaginationNextPrev.js +2 -7
- package/dist/src/components/Example/ExampleResultPaginationNextPrev.js.map +1 -1
- package/dist/src/components/Example/ExampleResultPaginationNumbered.d.ts +2 -2
- package/dist/src/components/Example/ExampleResultPaginationNumbered.js +6 -20
- package/dist/src/components/Example/ExampleResultPaginationNumbered.js.map +1 -1
- package/dist/src/components/Example/ExampleResults.d.ts +1 -1
- package/dist/src/components/Example/ExampleResults.js +7 -10
- package/dist/src/components/Example/ExampleResults.js.map +1 -1
- package/dist/src/components/Example/ExampleSearch.d.ts +1 -1
- package/dist/src/components/Example/ExampleSearch.js +2 -2
- package/dist/src/components/Example/ExampleSearch.js.map +1 -1
- package/dist/src/components/Example/ExampleSortBy.d.ts +2 -2
- package/dist/src/components/Example/ExampleSortBy.js +2 -5
- package/dist/src/components/Example/ExampleSortBy.js.map +1 -1
- package/dist/src/components/Example/ExampleStats.d.ts +2 -2
- package/dist/src/components/Example/ExampleStats.js +2 -8
- package/dist/src/components/Example/ExampleStats.js.map +1 -1
- package/dist/src/components/Example/ExampleSuggestions.d.ts +2 -2
- package/dist/src/components/Example/ExampleSuggestions.js +2 -7
- package/dist/src/components/Example/ExampleSuggestions.js.map +1 -1
- package/dist/src/components/Example/index.d.ts +6 -6
- package/dist/src/components/Example/index.js +6 -6
- package/dist/src/components/Example/index.js.map +1 -1
- package/dist/src/components/Filter/Filter.d.ts +1 -1
- package/dist/src/components/Filter/Filter.js +30 -35
- package/dist/src/components/Filter/Filter.js.map +1 -1
- package/dist/src/components/Filter/Filters.d.ts +4 -4
- package/dist/src/components/Filter/Filters.js +3 -6
- package/dist/src/components/Filter/Filters.js.map +1 -1
- package/dist/src/components/Filter/FiltersSelected.d.ts +1 -1
- package/dist/src/components/Filter/FiltersSelected.js +4 -9
- package/dist/src/components/Filter/FiltersSelected.js.map +1 -1
- package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.d.ts +2 -2
- package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.js +20 -8
- package/dist/src/components/ReactifySearchProvider/ReactifySearchProvider.js.map +1 -1
- package/dist/src/components/Result/ResultCardCallout.d.ts +2 -2
- package/dist/src/components/Result/ResultCardCallout.js +3 -2
- package/dist/src/components/Result/ResultCardCallout.js.map +1 -1
- package/dist/src/components/Result/ResultCardProduct.d.ts +1 -1
- package/dist/src/components/Result/ResultCardProduct.js +4 -3
- package/dist/src/components/Result/ResultCardProduct.js.map +1 -1
- package/dist/src/components/Result/ResultPaginationInfiniteScroll.d.ts +3 -3
- package/dist/src/components/Result/ResultPaginationInfiniteScroll.js +3 -6
- package/dist/src/components/Result/ResultPaginationInfiniteScroll.js.map +1 -1
- package/dist/src/components/Result/ResultPaginationLoadMore.d.ts +3 -3
- package/dist/src/components/Result/ResultPaginationLoadMore.js +3 -6
- package/dist/src/components/Result/ResultPaginationLoadMore.js.map +1 -1
- package/dist/src/components/Result/ResultPaginationNextPrev.d.ts +3 -3
- package/dist/src/components/Result/ResultPaginationNextPrev.js +3 -6
- package/dist/src/components/Result/ResultPaginationNextPrev.js.map +1 -1
- package/dist/src/components/Result/ResultPaginationNumbered.d.ts +3 -3
- package/dist/src/components/Result/ResultPaginationNumbered.js +3 -6
- package/dist/src/components/Result/ResultPaginationNumbered.js.map +1 -1
- package/dist/src/components/Result/ResultStateProvider.d.ts +2 -2
- package/dist/src/components/Result/ResultStateProvider.js +3 -3
- package/dist/src/components/Result/ResultStateProvider.js.map +1 -1
- package/dist/src/components/Result/Results.d.ts +2 -2
- package/dist/src/components/Result/Results.js +50 -52
- package/dist/src/components/Result/Results.js.map +1 -1
- package/dist/src/components/Result/index.d.ts +4 -4
- package/dist/src/components/Result/index.js +4 -4
- package/dist/src/components/Result/index.js.map +1 -1
- package/dist/src/components/Search/Search.d.ts +1 -1
- package/dist/src/components/Search/Search.js +3 -6
- package/dist/src/components/Search/Search.js.map +1 -1
- package/dist/src/components/Sensor/SensorCollection.d.ts +1 -1
- package/dist/src/components/Sensor/SensorCollection.js +2 -2
- package/dist/src/components/Sensor/SensorCollection.js.map +1 -1
- package/dist/src/components/Sensor/SensorCustom.d.ts +1 -2
- package/dist/src/components/Sensor/SensorCustom.js +5 -6
- package/dist/src/components/Sensor/SensorCustom.js.map +1 -1
- package/dist/src/components/Sensor/SensorExplain.js +2 -2
- package/dist/src/components/Sensor/SensorExplain.js.map +1 -1
- package/dist/src/components/Sensor/SensorInventoryAvailable.d.ts +1 -1
- package/dist/src/components/Sensor/SensorInventoryAvailable.js +2 -2
- package/dist/src/components/Sensor/SensorInventoryAvailable.js.map +1 -1
- package/dist/src/components/Sensor/SensorPublished.d.ts +1 -1
- package/dist/src/components/Sensor/SensorPublished.js +2 -2
- package/dist/src/components/Sensor/SensorPublished.js.map +1 -1
- package/dist/src/components/Sensor/SensorSearchTerm.d.ts +1 -2
- package/dist/src/components/Sensor/SensorSearchTerm.js +19 -124
- package/dist/src/components/Sensor/SensorSearchTerm.js.map +1 -1
- package/dist/src/components/Sensor/SensorSort.d.ts +1 -1
- package/dist/src/components/Sensor/SensorSort.js +2 -2
- package/dist/src/components/Sensor/SensorSort.js.map +1 -1
- package/dist/src/components/Sensor/Sensors.d.ts +1 -3
- package/dist/src/components/Sensor/Sensors.js +13 -46
- package/dist/src/components/Sensor/Sensors.js.map +1 -1
- package/dist/src/components/Sensor/index.d.ts +7 -9
- package/dist/src/components/Sensor/index.js +6 -10
- package/dist/src/components/Sensor/index.js.map +1 -1
- package/dist/src/components/SortBy/SortBy.d.ts +1 -1
- package/dist/src/components/SortBy/SortBy.js +3 -6
- package/dist/src/components/SortBy/SortBy.js.map +1 -1
- package/dist/src/components/Stats/Stats.d.ts +2 -2
- package/dist/src/components/Stats/Stats.js +2 -5
- package/dist/src/components/Stats/Stats.js.map +1 -1
- package/dist/src/components/Suggestions/Suggestions.d.ts +1 -1
- package/dist/src/components/Suggestions/Suggestions.js +7 -8
- package/dist/src/components/Suggestions/Suggestions.js.map +1 -1
- package/dist/src/components/Utility/UtilityAuthenticatedReactiveBase.d.ts +1 -1
- package/dist/src/components/Utility/UtilityAuthenticatedReactiveBase.js +3 -3
- package/dist/src/components/Utility/UtilityAuthenticatedReactiveBase.js.map +1 -1
- package/dist/src/components/Utility/index.js.map +1 -1
- package/dist/src/components/index.d.ts +2 -2
- package/dist/src/components/index.js +2 -2
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/hooks/index.d.ts +11 -11
- package/dist/src/hooks/index.js +11 -11
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/hooks/react-slider/useReactSliderProps.d.ts +2 -2
- package/dist/src/hooks/react-slider/useReactSliderProps.js +6 -6
- package/dist/src/hooks/react-slider/useReactSliderProps.js.map +1 -1
- package/dist/src/hooks/reactivesearch/useReactiveBaseProps.d.ts +1 -1
- package/dist/src/hooks/reactivesearch/useReactiveBaseProps.js +2 -2
- package/dist/src/hooks/reactivesearch/useReactiveBaseProps.js.map +1 -1
- package/dist/src/hooks/useAnalytics.js.map +1 -1
- package/dist/src/hooks/useConfig.d.ts +1 -1
- package/dist/src/hooks/useConfig.js +1 -1
- package/dist/src/hooks/useConfig.js.map +1 -1
- package/dist/src/hooks/useCuration.d.ts +1 -1
- package/dist/src/hooks/useCuration.js +9 -25
- package/dist/src/hooks/useCuration.js.map +1 -1
- package/dist/src/hooks/useDebugger.js +3 -3
- package/dist/src/hooks/useDebugger.js.map +1 -1
- package/dist/src/hooks/useFilterCollapsedState.d.ts +1 -1
- package/dist/src/hooks/useFilterCollapsedState.js.map +1 -1
- package/dist/src/hooks/useFilterListProps.d.ts +2 -2
- package/dist/src/hooks/useFilterListProps.js +7 -11
- package/dist/src/hooks/useFilterListProps.js.map +1 -1
- package/dist/src/hooks/useFilterRangeProps.d.ts +1 -1
- package/dist/src/hooks/useFilterRangeProps.js +11 -14
- package/dist/src/hooks/useFilterRangeProps.js.map +1 -1
- package/dist/src/hooks/useFilterSliderProps.d.ts +1 -1
- package/dist/src/hooks/useFilterSliderProps.js +10 -9
- package/dist/src/hooks/useFilterSliderProps.js.map +1 -1
- package/dist/src/hooks/useFilters.d.ts +1 -1
- package/dist/src/hooks/useFilters.js +4 -7
- package/dist/src/hooks/useFilters.js.map +1 -1
- package/dist/src/hooks/useIndices.js +2 -2
- package/dist/src/hooks/useIndices.js.map +1 -1
- package/dist/src/hooks/usePagination.d.ts +1 -1
- package/dist/src/hooks/usePagination.js +6 -14
- package/dist/src/hooks/usePagination.js.map +1 -1
- package/dist/src/hooks/usePaginationLoadable.d.ts +1 -1
- package/dist/src/hooks/usePaginationLoadable.js +3 -5
- package/dist/src/hooks/usePaginationLoadable.js.map +1 -1
- package/dist/src/hooks/useProductPrice.d.ts +1 -1
- package/dist/src/hooks/useProductPrice.js +3 -1
- package/dist/src/hooks/useProductPrice.js.map +1 -1
- package/dist/src/hooks/useReactifySearchContext.d.ts +1 -1
- package/dist/src/hooks/useReactifySearchContext.js.map +1 -1
- package/dist/src/hooks/useResults.d.ts +1 -1
- package/dist/src/hooks/useResults.js +4 -4
- package/dist/src/hooks/useResults.js.map +1 -1
- package/dist/src/hooks/useSearch.d.ts +1 -1
- package/dist/src/hooks/useSearch.js +8 -9
- package/dist/src/hooks/useSearch.js.map +1 -1
- package/dist/src/hooks/useSortBy.d.ts +1 -1
- package/dist/src/hooks/useSortBy.js +1 -1
- package/dist/src/hooks/useSortBy.js.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/search-request-builder/base-builders.d.ts +18 -0
- package/dist/src/search-request-builder/base-builders.js +184 -0
- package/dist/src/search-request-builder/base-builders.js.map +1 -0
- package/dist/src/search-request-builder/curation-builders.d.ts +2 -0
- package/dist/src/search-request-builder/curation-builders.js +44 -0
- package/dist/src/search-request-builder/curation-builders.js.map +1 -0
- package/dist/src/search-request-builder/index.d.ts +3 -0
- package/dist/src/search-request-builder/index.js +12 -0
- package/dist/src/search-request-builder/index.js.map +1 -0
- package/dist/src/search-request-builder/search-request-builder.d.ts +3 -0
- package/dist/src/search-request-builder/search-request-builder.js +54 -0
- package/dist/src/search-request-builder/search-request-builder.js.map +1 -0
- package/dist/src/search-request-builder/types.d.ts +105 -0
- package/dist/src/search-request-builder/types.js +30 -0
- package/dist/src/search-request-builder/types.js.map +1 -0
- package/dist/src/search-request-builder/utils.d.ts +27 -0
- package/dist/src/search-request-builder/utils.js +144 -0
- package/dist/src/search-request-builder/utils.js.map +1 -0
- package/dist/src/types/config.d.ts +1 -1
- package/dist/src/types/config.js.map +1 -1
- package/dist/src/types/elastic.d.ts +8 -11
- package/dist/src/types/elastic.js.map +1 -1
- package/dist/src/types/firestore.d.ts +5 -5
- package/dist/src/types/firestore.js.map +1 -1
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/reactivesearch.d.ts +1 -1
- package/dist/src/types/reactivesearch.js.map +1 -1
- package/dist/src/types/shopify.d.ts +1 -1
- package/dist/src/types/shopify.js.map +1 -1
- package/dist/src/utility/config.d.ts +1 -1
- package/dist/src/utility/config.js +1 -1
- package/dist/src/utility/config.js.map +1 -1
- package/dist/src/utility/curation.d.ts +2 -2
- package/dist/src/utility/curation.js +1 -1
- package/dist/src/utility/curation.js.map +1 -1
- package/dist/src/utility/debug.js +1 -1
- package/dist/src/utility/debug.js.map +1 -1
- package/dist/src/utility/filters.d.ts +2 -2
- package/dist/src/utility/filters.js.map +1 -1
- package/dist/src/utility/liquid.d.ts +2 -2
- package/dist/src/utility/liquid.js +2 -5
- package/dist/src/utility/liquid.js.map +1 -1
- package/dist/src/utility/props.d.ts +7 -226
- package/dist/src/utility/props.js +61 -108
- package/dist/src/utility/props.js.map +1 -1
- package/dist/src/utility/server.d.ts +1 -1
- package/dist/src/utility/server.js +3 -3
- package/dist/src/utility/server.js.map +1 -1
- package/dist/src/utility/sortOption.d.ts +2 -2
- package/dist/src/utility/sortOption.js.map +1 -1
- package/package.json +7 -5
- package/dist/src/components/Sensor/SensorCollectionWeighted.d.ts +0 -1
- package/dist/src/components/Sensor/SensorCollectionWeighted.js +0 -21
- package/dist/src/components/Sensor/SensorCollectionWeighted.js.map +0 -1
- package/dist/src/components/Sensor/SensorSearchWeighted.d.ts +0 -1
- package/dist/src/components/Sensor/SensorSearchWeighted.js +0 -22
- package/dist/src/components/Sensor/SensorSearchWeighted.js.map +0 -1
- package/dist/src/utility/queries.d.ts +0 -393
- package/dist/src/utility/queries.js +0 -197
- package/dist/src/utility/queries.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResultCardProduct.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardProduct.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResultCardProduct.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardProduct.tsx"],"names":[],"mappings":";;AAMA,4DA8BC;;AAnCD,yEAAsE;AAKtE,SAAgB,wBAAwB,CAAC,KAAoC;IAC3E,OAAO,CACL,iCAAK,SAAS,EAAC,yBAAyB,EAAC,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,aAC1F,gCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,YACnE,uBAAC,mDAAwB,IAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,GAClD,EACN,+BACE,SAAS,EAAC,+BAA+B,EACzC,IAAI,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EACzC,OAAO,EAAE,KAAK,CAAC,WAAW,aAEzB,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CACtB,gCACE,GAAG,EAAC,EAAE,EACN,SAAS,EAAC,gCAAgC,EAC1C,MAAM,EAAC,OAAO,EACd,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EACxB,KAAK,EAAC,MAAM,GACZ,CACH,EACD,iCAAM,SAAS,EAAC,gCAAgC,YAAE,KAAK,CAAC,OAAO,CAAC,KAAK,GAAQ,IAC3E,EACJ,iCAAM,SAAS,EAAC,gCAAgC,YAAE,KAAK,CAAC,cAAc,GAAQ,EAC7E,KAAK,CAAC,MAAM,IAAI,CACf,iCAAM,SAAS,EAAC,qCAAqC,EAAC,KAAK,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,YAC5F,KAAK,CAAC,uBAAuB,GACzB,CACR,IACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import type React from \"react\";\nimport { ExampleProductCardWeight } from \"./ExampleProductCardWeight\";\nimport type { ResultCardProductProps } from \"../../components\";\n\nexport type ExampleResultCardProductProps = React.ComponentProps<NonNullable<ResultCardProductProps[\"render\"]>>;\n\nexport function ExampleResultCardProduct(props: ExampleResultCardProductProps) {\n return (\n <div className=\"rs__result-card-product\" ref={props.itemRef} style={{ position: \"relative\" }}>\n <div style={{ position: \"absolute\", right: \"0\", top: \"0\", zIndex: 1 }}>\n <ExampleProductCardWeight document={props.document} />\n </div>\n <a\n className=\"rs__result-card-product__link\"\n href={`/products/${props.product.handle}`}\n onClick={props.handleClick}\n >\n {props.product.image && (\n <img\n alt=\"\"\n className=\"rs__result-card-product__image\"\n height=\"190px\"\n src={props.product.image}\n width=\"100%\"\n />\n )}\n <span className=\"rs__result-card-product__title\">{props.product.title}</span>\n </a>\n <span className=\"rs__result-card-product__price\">{props.formattedPrice}</span>\n {props.onSale && (\n <span className=\"rs__result-card-product__price-sale\" style={{ textDecoration: \"line-through\" }}>\n {props.formattedCompareAtPrice}\n </span>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ResultPaginationInfiniteScrollProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ResultPaginationInfiniteScrollProps } from "../../components";
|
|
3
3
|
export type ExampleResultPaginationInfiniteScrollProps = React.ComponentProps<NonNullable<ResultPaginationInfiniteScrollProps["render"]>>;
|
|
4
4
|
export declare const ExampleResultPaginationInfiniteScroll: React.FC<ExampleResultPaginationInfiniteScrollProps>;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleResultPaginationInfiniteScroll = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const ExampleResultPaginationInfiniteScroll = (props) => {
|
|
9
6
|
if (props.loading) {
|
|
10
|
-
return (
|
|
7
|
+
return (0, jsx_runtime_1.jsx)("div", { className: "rs__pagination__infinitescroll-loading", children: "Loading..." });
|
|
11
8
|
}
|
|
12
9
|
return null;
|
|
13
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResultPaginationInfiniteScroll.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationInfiniteScroll.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResultPaginationInfiniteScroll.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationInfiniteScroll.tsx"],"names":[],"mappings":";;;;AAOO,MAAM,qCAAqC,GAAyD,CAAC,KAAK,EAAE,EAAE;IACnH,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;QAClB,OAAO,gCAAK,SAAS,EAAC,wCAAwC,YAAE,YAAY,GAAO,CAAC;IACtF,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AALW,QAAA,qCAAqC,yCAKhD","sourcesContent":["import type React from \"react\";\nimport type { ResultPaginationInfiniteScrollProps } from \"../../components\";\n\nexport type ExampleResultPaginationInfiniteScrollProps = React.ComponentProps<\n NonNullable<ResultPaginationInfiniteScrollProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationInfiniteScroll: React.FC<ExampleResultPaginationInfiniteScrollProps> = (props) => {\n if (props.loading) {\n return <div className=\"rs__pagination__infinitescroll-loading\">{\"Loading...\"}</div>;\n }\n return null;\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ResultPaginationLoadMoreProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ResultPaginationLoadMoreProps } from "../../components";
|
|
3
3
|
export type ExampleResultPaginationLoadMoreProps = React.ComponentProps<NonNullable<ResultPaginationLoadMoreProps["render"]>>;
|
|
4
4
|
export declare const ExampleResultPaginationLoadMore: React.FC<ExampleResultPaginationLoadMoreProps>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleResultPaginationLoadMore = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const ExampleResultPaginationLoadMore = (props) => {
|
|
9
|
-
return (
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("button", { className: "rs__pagination__loadmore-button", disabled: !props.hasMore, onClick: () => props.handleLoadMore(), type: "button", children: "Load more" }));
|
|
10
7
|
};
|
|
11
8
|
exports.ExampleResultPaginationLoadMore = ExampleResultPaginationLoadMore;
|
|
12
9
|
//# sourceMappingURL=ExampleResultPaginationLoadMore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResultPaginationLoadMore.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationLoadMore.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResultPaginationLoadMore.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationLoadMore.tsx"],"names":[],"mappings":";;;;AAOO,MAAM,+BAA+B,GAAmD,CAAC,KAAK,EAAE,EAAE;IACvG,OAAO,CACL,mCACE,SAAS,EAAC,iCAAiC,EAC3C,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,EACrC,IAAI,EAAC,QAAQ,YAEZ,WAAW,GACL,CACV,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,+BAA+B,mCAW1C","sourcesContent":["import type React from \"react\";\nimport type { ResultPaginationLoadMoreProps } from \"../../components\";\n\nexport type ExampleResultPaginationLoadMoreProps = React.ComponentProps<\n NonNullable<ResultPaginationLoadMoreProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationLoadMore: React.FC<ExampleResultPaginationLoadMoreProps> = (props) => {\n return (\n <button\n className=\"rs__pagination__loadmore-button\"\n disabled={!props.hasMore}\n onClick={() => props.handleLoadMore()}\n type=\"button\"\n >\n {\"Load more\"}\n </button>\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ResultPaginationNextPrevProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ResultPaginationNextPrevProps } from "../../components";
|
|
3
3
|
export type ExampleResultPaginationNextPrevProps = React.ComponentProps<NonNullable<ResultPaginationNextPrevProps["render"]>>;
|
|
4
4
|
export declare const ExampleResultPaginationNextPrev: React.FC<ExampleResultPaginationNextPrevProps>;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleResultPaginationNextPrev = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const ExampleResultPaginationNextPrev = (props) => {
|
|
9
|
-
return (
|
|
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"))));
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("nav", { className: "rs__pagination__nav", children: [props.hasPreviousPage && ((0, jsx_runtime_1.jsx)("a", { className: "rs__pagination__prev-link", href: props.buildPagePath(props.actualCurrentPage - 1), onClick: props.handlePreviousPage, rel: "prev", children: "Prev" })), props.hasNextPage && ((0, jsx_runtime_1.jsx)("a", { className: "rs__pagination__next-link", href: props.buildPagePath(props.actualCurrentPage + 1), onClick: props.handleNextPage, rel: "next", children: "Next" }))] }));
|
|
12
7
|
};
|
|
13
8
|
exports.ExampleResultPaginationNextPrev = ExampleResultPaginationNextPrev;
|
|
14
9
|
//# sourceMappingURL=ExampleResultPaginationNextPrev.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResultPaginationNextPrev.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNextPrev.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResultPaginationNextPrev.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNextPrev.tsx"],"names":[],"mappings":";;;;AAOO,MAAM,+BAA+B,GAAmD,CAAC,KAAK,EAAE,EAAE;IACvG,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aACjC,KAAK,CAAC,eAAe,IAAI,CACxB,8BACE,SAAS,EAAC,2BAA2B,EACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,EACtD,OAAO,EAAE,KAAK,CAAC,kBAAkB,EACjC,GAAG,EAAC,MAAM,YAET,MAAM,GACL,CACL,EACA,KAAK,CAAC,WAAW,IAAI,CACpB,8BACE,SAAS,EAAC,2BAA2B,EACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC,EACtD,OAAO,EAAE,KAAK,CAAC,cAAc,EAC7B,GAAG,EAAC,MAAM,YAET,MAAM,GACL,CACL,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,+BAA+B,mCAyB1C","sourcesContent":["import type React from \"react\";\nimport type { ResultPaginationNextPrevProps } from \"../../components\";\n\nexport type ExampleResultPaginationNextPrevProps = React.ComponentProps<\n NonNullable<ResultPaginationNextPrevProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationNextPrev: React.FC<ExampleResultPaginationNextPrevProps> = (props) => {\n return (\n <nav className=\"rs__pagination__nav\">\n {props.hasPreviousPage && (\n <a\n className=\"rs__pagination__prev-link\"\n href={props.buildPagePath(props.actualCurrentPage - 1)}\n onClick={props.handlePreviousPage}\n rel=\"prev\"\n >\n {\"Prev\"}\n </a>\n )}\n {props.hasNextPage && (\n <a\n className=\"rs__pagination__next-link\"\n href={props.buildPagePath(props.actualCurrentPage + 1)}\n onClick={props.handleNextPage}\n rel=\"next\"\n >\n {\"Next\"}\n </a>\n )}\n </nav>\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ResultPaginationNumberedProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ResultPaginationNumberedProps } from "../../components";
|
|
3
3
|
export type ExampleResultPaginationNumberedProps = React.ComponentProps<NonNullable<ResultPaginationNumberedProps["render"]>>;
|
|
4
4
|
export declare const ExampleResultPaginationNumbered: React.FC<ExampleResultPaginationNumberedProps>;
|
|
@@ -1,27 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleResultPaginationNumbered = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const ExampleResultPaginationNumbered = (props) => {
|
|
9
|
-
return (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
? `next`
|
|
15
|
-
: page === props.currentPage - 1
|
|
16
|
-
? `prev`
|
|
17
|
-
: undefined }, page + 1))),
|
|
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", { 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
|
-
? `next`
|
|
21
|
-
: props.totalPages - 1 === props.currentPage - 1
|
|
22
|
-
? `prev`
|
|
23
|
-
: undefined }, props.totalPages)),
|
|
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"))));
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("nav", { className: "rs__pagination__nav", children: [props.currentPage > 0 && ((0, jsx_runtime_1.jsx)("a", { className: "rs__pagination__prev-link", href: props.buildPagePath(props.currentPage), onClick: (event) => props.handlePreviousPage(event), rel: "prev", children: "Prev" })), !props.pagesToShow.includes(0) && ((0, jsx_runtime_1.jsx)("a", { className: "rs__pagination__pagenumber-link", href: props.buildPagePath(1), onClick: (event) => props.handlePageChange(0, event), rel: 0 === props.currentPage - 1 ? `prev` : undefined, children: "1" })), !props.pagesToShow.includes(1) && (0, jsx_runtime_1.jsx)("span", { children: "..." }), props.pagesToShow.map((page) => page === props.currentPage ? ((0, jsx_runtime_1.jsx)("span", { className: "rs__pagination__pagenumber-active", children: page + 1 }, page + 1)) : ((0, jsx_runtime_1.jsx)("a", { className: "rs__pagination__pagenumber-link", href: props.buildPagePath(page + 1), onClick: (event) => props.handlePageChange(page, event), rel: page === props.currentPage + 1 ? `next` : page === props.currentPage - 1 ? `prev` : undefined, children: page + 1 }, page + 1))), !props.pagesToShow.includes(props.totalPages - 2) && (0, jsx_runtime_1.jsx)("span", { children: "..." }), !props.pagesToShow.includes(props.totalPages - 1) && ((0, jsx_runtime_1.jsx)("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
|
|
7
|
+
? `next`
|
|
8
|
+
: props.totalPages - 1 === props.currentPage - 1
|
|
9
|
+
? `prev`
|
|
10
|
+
: undefined, children: props.totalPages })), props.currentPage + 1 < props.totalPages && ((0, jsx_runtime_1.jsx)("a", { className: "rs__pagination__next-link", href: props.buildPagePath(props.currentPage + 2), onClick: (event) => props.handleNextPage(event), rel: "next", children: "Next" }))] }));
|
|
25
11
|
};
|
|
26
12
|
exports.ExampleResultPaginationNumbered = ExampleResultPaginationNumbered;
|
|
27
13
|
//# sourceMappingURL=ExampleResultPaginationNumbered.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResultPaginationNumbered.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNumbered.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResultPaginationNumbered.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultPaginationNumbered.tsx"],"names":[],"mappings":";;;;AAOO,MAAM,+BAA+B,GAAmD,CAAC,KAAK,EAAE,EAAE;IACvG,OAAO,CACL,iCAAK,SAAS,EAAC,qBAAqB,aACjC,KAAK,CAAC,WAAW,GAAG,CAAC,IAAI,CACxB,8BACE,SAAS,EAAC,2BAA2B,EACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAAC,EAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,EACnD,GAAG,EAAC,MAAM,YAET,MAAM,GACL,CACL,EACA,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACjC,8BACE,SAAS,EAAC,iCAAiC,EAC3C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,EAAE,KAAK,CAAC,EACpD,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAEpD,GAAG,GACF,CACL,EACA,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,mDAAgB,EAClD,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC9B,IAAI,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAC3B,iCAAM,SAAS,EAAC,mCAAmC,YAChD,IAAI,GAAG,CAAC,IAD8C,IAAI,GAAG,CAAC,CAE1D,CACR,CAAC,CAAC,CAAC,CACF,8BACE,SAAS,EAAC,iCAAiC,EAC3C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,CAAC,EAEnC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,EACvD,GAAG,EAAE,IAAI,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAEjG,IAAI,GAAG,CAAC,IAJJ,IAAI,GAAG,CAAC,CAKX,CACL,CACF,EACA,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,IAAI,mDAAgB,EACrE,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,IAAI,CACpD,8BACE,SAAS,EAAC,iCAAiC,EAC3C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,EAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,EAAE,KAAK,CAAC,EACvE,GAAG,EACD,KAAK,CAAC,UAAU,GAAG,CAAC,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC;oBAC5C,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC;wBAC9C,CAAC,CAAC,MAAM;wBACR,CAAC,CAAC,SAAS,YAGhB,KAAK,CAAC,UAAU,GACf,CACL,EACA,KAAK,CAAC,WAAW,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,IAAI,CAC3C,8BACE,SAAS,EAAC,2BAA2B,EACrC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,EAChD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAC/C,GAAG,EAAC,MAAM,YAET,MAAM,GACL,CACL,IACG,CACP,CAAC;AACJ,CAAC,CAAC;AAtEW,QAAA,+BAA+B,mCAsE1C","sourcesContent":["import type React from \"react\";\nimport type { ResultPaginationNumberedProps } from \"../../components\";\n\nexport type ExampleResultPaginationNumberedProps = React.ComponentProps<\n NonNullable<ResultPaginationNumberedProps[\"render\"]>\n>;\n\nexport const ExampleResultPaginationNumbered: React.FC<ExampleResultPaginationNumberedProps> = (props) => {\n return (\n <nav className=\"rs__pagination__nav\">\n {props.currentPage > 0 && (\n <a\n className=\"rs__pagination__prev-link\"\n href={props.buildPagePath(props.currentPage)}\n onClick={(event) => props.handlePreviousPage(event)}\n rel=\"prev\"\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 href={props.buildPagePath(page + 1)}\n key={page + 1}\n onClick={(event) => props.handlePageChange(page, event)}\n rel={page === props.currentPage + 1 ? `next` : page === props.currentPage - 1 ? `prev` : undefined}\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) => props.handlePageChange(props.totalPages - 1, event)}\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 href={props.buildPagePath(props.currentPage + 2)}\n onClick={(event) => props.handleNextPage(event)}\n rel=\"next\"\n >\n {\"Next\"}\n </a>\n )}\n </nav>\n );\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import type React from "react";
|
|
2
2
|
export declare const Component: React.FC;
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.Component = void 0;
|
|
7
|
-
const
|
|
8
|
-
const components_1 = require("../../components");
|
|
9
|
-
const ExampleResultCardProduct_1 = require("./ExampleResultCardProduct");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
10
5
|
const ExampleResultCardCallout_1 = require("./ExampleResultCardCallout");
|
|
11
|
-
const
|
|
12
|
-
const ExampleResultPaginationLoadMore_1 = require("./ExampleResultPaginationLoadMore");
|
|
6
|
+
const ExampleResultCardProduct_1 = require("./ExampleResultCardProduct");
|
|
13
7
|
const ExampleResultPaginationInfiniteScroll_1 = require("./ExampleResultPaginationInfiniteScroll");
|
|
8
|
+
const ExampleResultPaginationLoadMore_1 = require("./ExampleResultPaginationLoadMore");
|
|
14
9
|
const ExampleResultPaginationNextPrev_1 = require("./ExampleResultPaginationNextPrev");
|
|
10
|
+
const ExampleResultPaginationNumbered_1 = require("./ExampleResultPaginationNumbered");
|
|
11
|
+
const components_1 = require("../../components");
|
|
15
12
|
const Component = () => {
|
|
16
|
-
return (
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Results, { listStyle: {
|
|
17
14
|
display: "grid",
|
|
18
15
|
gap: "10px",
|
|
19
16
|
gridTemplateColumns: "repeat(4, minmax(0, 1fr))",
|
|
20
|
-
},
|
|
17
|
+
}, renderPaginationInfiniteScroll: ExampleResultPaginationInfiniteScroll_1.ExampleResultPaginationInfiniteScroll, renderPaginationLoadMore: ExampleResultPaginationLoadMore_1.ExampleResultPaginationLoadMore, renderPaginationNextPrev: ExampleResultPaginationNextPrev_1.ExampleResultPaginationNextPrev, renderPaginationNumbered: ExampleResultPaginationNumbered_1.ExampleResultPaginationNumbered, renderResultCardCallout: ExampleResultCardCallout_1.ExampleResultCardCallout, renderResultCardProduct: ExampleResultCardProduct_1.ExampleResultCardProduct }));
|
|
21
18
|
};
|
|
22
19
|
exports.Component = Component;
|
|
23
20
|
//# sourceMappingURL=ExampleResults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleResults.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResults.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleResults.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResults.tsx"],"names":[],"mappings":";;;;AACA,yEAAsE;AACtE,yEAAsE;AACtE,mGAAgG;AAChG,uFAAoF;AACpF,uFAAoF;AACpF,uFAAoF;AACpF,iDAA2C;AAEpC,MAAM,SAAS,GAAa,GAAG,EAAE;IACtC,OAAO,CACL,uBAAC,oBAAO,IACN,SAAS,EAAE;YACT,OAAO,EAAE,MAAM;YACf,GAAG,EAAE,MAAM;YACX,mBAAmB,EAAE,2BAA2B;SACjD,EACD,8BAA8B,EAAE,6EAAqC,EACrE,wBAAwB,EAAE,iEAA+B,EACzD,wBAAwB,EAAE,iEAA+B,EACzD,wBAAwB,EAAE,iEAA+B,EACzD,uBAAuB,EAAE,mDAAwB,EACjD,uBAAuB,EAAE,mDAAwB,GACjD,CACH,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,SAAS,aAgBpB","sourcesContent":["import type React from \"react\";\nimport { ExampleResultCardCallout } from \"./ExampleResultCardCallout\";\nimport { ExampleResultCardProduct } from \"./ExampleResultCardProduct\";\nimport { ExampleResultPaginationInfiniteScroll } from \"./ExampleResultPaginationInfiniteScroll\";\nimport { ExampleResultPaginationLoadMore } from \"./ExampleResultPaginationLoadMore\";\nimport { ExampleResultPaginationNextPrev } from \"./ExampleResultPaginationNextPrev\";\nimport { ExampleResultPaginationNumbered } from \"./ExampleResultPaginationNumbered\";\nimport { Results } from \"../../components\";\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 renderPaginationInfiniteScroll={ExampleResultPaginationInfiniteScroll}\n renderPaginationLoadMore={ExampleResultPaginationLoadMore}\n renderPaginationNextPrev={ExampleResultPaginationNextPrev}\n renderPaginationNumbered={ExampleResultPaginationNumbered}\n renderResultCardCallout={ExampleResultCardCallout}\n renderResultCardProduct={ExampleResultCardProduct}\n />\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { SearchProps } from "../../components";
|
|
2
|
+
import type { SearchProps } from "../../components";
|
|
3
3
|
export type ExampleSearchProps = React.ComponentProps<NonNullable<SearchProps["render"]>>;
|
|
4
4
|
export declare const ExampleSearch: React.FC<ExampleSearchProps>;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ExampleSearch = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const ExampleSearch = (props) => {
|
|
9
10
|
const handleFormSubmit = react_1.default.useCallback((event) => {
|
|
@@ -13,8 +14,7 @@ const ExampleSearch = (props) => {
|
|
|
13
14
|
const handleInputChange = react_1.default.useCallback((event) => {
|
|
14
15
|
props.setSearchTerm(event.target.value);
|
|
15
16
|
}, [props.setSearchTerm]);
|
|
16
|
-
return (
|
|
17
|
-
react_1.default.createElement("input", { type: "search", placeholder: "Search products...", value: props.searchTerm, onChange: handleInputChange })));
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("form", { onSubmit: handleFormSubmit, children: (0, jsx_runtime_1.jsx)("input", { onChange: handleInputChange, placeholder: "Search products...", type: "search", value: props.searchTerm }) }));
|
|
18
18
|
};
|
|
19
19
|
exports.ExampleSearch = ExampleSearch;
|
|
20
20
|
//# sourceMappingURL=ExampleSearch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSearch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleSearch.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSearch.tsx"],"names":[],"mappings":";;;;;;;AAAA,kDAA0B;AAKnB,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,iCAAM,QAAQ,EAAE,gBAAgB,YAC9B,kCAAO,QAAQ,EAAE,iBAAiB,EAAE,WAAW,EAAC,oBAAoB,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAI,GACzG,CACR,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,aAAa,iBAqBxB","sourcesContent":["import React from \"react\";\nimport type { SearchProps } from \"../../components\";\n\nexport type ExampleSearchProps = React.ComponentProps<NonNullable<SearchProps[\"render\"]>>;\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 onChange={handleInputChange} placeholder=\"Search products...\" type=\"search\" value={props.searchTerm} />\n </form>\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SortByProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { SortByProps } from "../../components";
|
|
3
3
|
export type ExampleSortByProps = React.ComponentProps<NonNullable<SortByProps["render"]>>;
|
|
4
4
|
export declare const ExampleSortBy: React.FC<ExampleSortByProps>;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleSortBy = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const ExampleSortBy = (props) => {
|
|
9
6
|
var _a;
|
|
10
|
-
return (
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("select", { className: "rs__sortby__select", onChange: (event) => props.setSortOption(event.target.value), value: (_a = props.sortOption) === null || _a === void 0 ? void 0 : _a.handle, children: props.sortOptions.map((sortOption) => ((0, jsx_runtime_1.jsx)("option", { className: "rs__sortby__option", value: sortOption.handle, children: sortOption.name }, sortOption.handle))) }));
|
|
11
8
|
};
|
|
12
9
|
exports.ExampleSortBy = ExampleSortBy;
|
|
13
10
|
//# sourceMappingURL=ExampleSortBy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleSortBy.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSortBy.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleSortBy.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSortBy.tsx"],"names":[],"mappings":";;;;AAKO,MAAM,aAAa,GAAiC,CAAC,KAAK,EAAE,EAAE;;IACnE,OAAO,CACL,mCACE,SAAS,EAAC,oBAAoB,EAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAC5D,KAAK,EAAE,MAAA,KAAK,CAAC,UAAU,0CAAE,MAAM,YAE9B,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CACrC,mCAAQ,SAAS,EAAC,oBAAoB,EAAyB,KAAK,EAAE,UAAU,CAAC,MAAM,YACpF,UAAU,CAAC,IAAI,IAD0B,UAAU,CAAC,MAAM,CAEpD,CACV,CAAC,GACK,CACV,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,aAAa,iBAcxB","sourcesContent":["import type React from \"react\";\nimport type { SortByProps } from \"../../components\";\n\nexport type ExampleSortByProps = React.ComponentProps<NonNullable<SortByProps[\"render\"]>>;\n\nexport const ExampleSortBy: React.FC<ExampleSortByProps> = (props) => {\n return (\n <select\n className=\"rs__sortby__select\"\n onChange={(event) => props.setSortOption(event.target.value)}\n value={props.sortOption?.handle}\n >\n {props.sortOptions.map((sortOption) => (\n <option className=\"rs__sortby__option\" key={sortOption.handle} value={sortOption.handle}>\n {sortOption.name}\n </option>\n ))}\n </select>\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { StatsProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { StatsProps } from "../../components";
|
|
3
3
|
export type ExampleStatsProps = React.ComponentProps<NonNullable<StatsProps["render"]>>;
|
|
4
4
|
export declare const ExampleStats: React.FC<ExampleStatsProps>;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleStats = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const ExampleStats = (props) => {
|
|
9
|
-
return (
|
|
10
|
-
"Found ",
|
|
11
|
-
props.resultStats.numberOfResults,
|
|
12
|
-
" products"));
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: ["Found ", props.resultStats.numberOfResults, " products"] }));
|
|
13
7
|
};
|
|
14
8
|
exports.ExampleStats = ExampleStats;
|
|
15
9
|
//# sourceMappingURL=ExampleStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleStats.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleStats.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleStats.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleStats.tsx"],"names":[],"mappings":";;;;AAKO,MAAM,YAAY,GAAgC,CAAC,KAAK,EAAE,EAAE;IACjE,OAAO,CACL,4CACG,QAAQ,EACR,KAAK,CAAC,WAAW,CAAC,eAAe,EACjC,WAAW,IACR,CACP,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,YAAY,gBAQvB","sourcesContent":["import type React from \"react\";\nimport type { StatsProps } from \"../../components\";\n\nexport type ExampleStatsProps = React.ComponentProps<NonNullable<StatsProps[\"render\"]>>;\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,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SuggestionsProps } from "../../components";
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { SuggestionsProps } from "../../components";
|
|
3
3
|
export type ExampleSuggestionsProps = React.ComponentProps<NonNullable<SuggestionsProps["render"]>>;
|
|
4
4
|
export declare const ExampleSuggestions: React.FC<ExampleSuggestionsProps>;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ExampleSuggestions = void 0;
|
|
7
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
5
|
const hooks_1 = require("../../hooks");
|
|
9
6
|
const ExampleSuggestions = (props) => {
|
|
10
7
|
const { setSearchTerm } = (0, hooks_1.useSearch)();
|
|
11
|
-
return (
|
|
12
|
-
react_1.default.createElement("h3", null, "Suggestions"),
|
|
13
|
-
react_1.default.createElement("ul", null, props.suggestions.map((suggestion) => (react_1.default.createElement("li", { onClick: () => setSearchTerm(suggestion.text) }, suggestion.text))))));
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("h3", { children: "Suggestions" }), (0, jsx_runtime_1.jsx)("ul", { children: props.suggestions.map((suggestion) => ((0, jsx_runtime_1.jsx)("li", { onClick: () => setSearchTerm(suggestion.text), children: suggestion.text }, suggestion.text))) })] }));
|
|
14
9
|
};
|
|
15
10
|
exports.ExampleSuggestions = ExampleSuggestions;
|
|
16
11
|
//# sourceMappingURL=ExampleSuggestions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleSuggestions.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSuggestions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleSuggestions.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleSuggestions.tsx"],"names":[],"mappings":";;;;AAEA,uCAAwC;AAIjC,MAAM,kBAAkB,GAAsC,CAAC,KAAK,EAAE,EAAE;IAC7E,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;IAEtC,OAAO,CACL,6DACE,yDAAoB,EACpB,yCACG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CACrC,+BAA0B,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,YACpE,UAAU,CAAC,IAAI,IADT,UAAU,CAAC,IAAI,CAEnB,CACN,CAAC,GACC,IACJ,CACJ,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,kBAAkB,sBAe7B","sourcesContent":["import type React from \"react\";\nimport type { SuggestionsProps } from \"../../components\";\nimport { useSearch } from \"../../hooks\";\n\nexport type ExampleSuggestionsProps = React.ComponentProps<NonNullable<SuggestionsProps[\"render\"]>>;\n\nexport const ExampleSuggestions: React.FC<ExampleSuggestionsProps> = (props) => {\n const { setSearchTerm } = useSearch();\n\n return (\n <>\n <h3>Suggestions</h3>\n <ul>\n {props.suggestions.map((suggestion) => (\n <li key={suggestion.text} onClick={() => setSearchTerm(suggestion.text)}>\n {suggestion.text}\n </li>\n ))}\n </ul>\n </>\n );\n};\n"]}
|
|
@@ -5,21 +5,21 @@ export * from "./ExampleFilterRange";
|
|
|
5
5
|
export * from "./ExampleFilterSlider";
|
|
6
6
|
export * from "./ExampleFilters";
|
|
7
7
|
export * from "./ExampleFiltersSelected";
|
|
8
|
+
export * from "./ExampleHookUseFilters";
|
|
9
|
+
export * from "./ExampleHookUseResults";
|
|
10
|
+
export * from "./ExampleHookUseSearch";
|
|
11
|
+
export * from "./ExampleHookUseSortBy";
|
|
8
12
|
export * from "./ExampleProductCardWeight";
|
|
9
13
|
export * from "./ExampleReactiveSearchProviderCollection";
|
|
10
14
|
export * from "./ExampleReactiveSearchProviderInstantSearch";
|
|
11
15
|
export * from "./ExampleReactiveSearchProviderSearch";
|
|
12
16
|
export * from "./ExampleResultCardCallout";
|
|
13
17
|
export * from "./ExampleResultCardProduct";
|
|
14
|
-
export * from "./ExampleResultPaginationNumbered";
|
|
15
|
-
export * from "./ExampleResultPaginationLoadMore";
|
|
16
18
|
export * from "./ExampleResultPaginationInfiniteScroll";
|
|
19
|
+
export * from "./ExampleResultPaginationLoadMore";
|
|
17
20
|
export * from "./ExampleResultPaginationNextPrev";
|
|
21
|
+
export * from "./ExampleResultPaginationNumbered";
|
|
18
22
|
export * from "./ExampleSearch";
|
|
19
23
|
export * from "./ExampleSortBy";
|
|
20
24
|
export * from "./ExampleStats";
|
|
21
25
|
export * from "./ExampleSuggestions";
|
|
22
|
-
export * from "./ExampleHookUseFilters";
|
|
23
|
-
export * from "./ExampleHookUseResults";
|
|
24
|
-
export * from "./ExampleHookUseSearch";
|
|
25
|
-
export * from "./ExampleHookUseSortBy";
|
|
@@ -21,22 +21,22 @@ __exportStar(require("./ExampleFilterRange"), exports);
|
|
|
21
21
|
__exportStar(require("./ExampleFilterSlider"), exports);
|
|
22
22
|
__exportStar(require("./ExampleFilters"), exports);
|
|
23
23
|
__exportStar(require("./ExampleFiltersSelected"), exports);
|
|
24
|
+
__exportStar(require("./ExampleHookUseFilters"), exports);
|
|
25
|
+
__exportStar(require("./ExampleHookUseResults"), exports);
|
|
26
|
+
__exportStar(require("./ExampleHookUseSearch"), exports);
|
|
27
|
+
__exportStar(require("./ExampleHookUseSortBy"), exports);
|
|
24
28
|
__exportStar(require("./ExampleProductCardWeight"), exports);
|
|
25
29
|
__exportStar(require("./ExampleReactiveSearchProviderCollection"), exports);
|
|
26
30
|
__exportStar(require("./ExampleReactiveSearchProviderInstantSearch"), exports);
|
|
27
31
|
__exportStar(require("./ExampleReactiveSearchProviderSearch"), exports);
|
|
28
32
|
__exportStar(require("./ExampleResultCardCallout"), exports);
|
|
29
33
|
__exportStar(require("./ExampleResultCardProduct"), exports);
|
|
30
|
-
__exportStar(require("./ExampleResultPaginationNumbered"), exports);
|
|
31
|
-
__exportStar(require("./ExampleResultPaginationLoadMore"), exports);
|
|
32
34
|
__exportStar(require("./ExampleResultPaginationInfiniteScroll"), exports);
|
|
35
|
+
__exportStar(require("./ExampleResultPaginationLoadMore"), exports);
|
|
33
36
|
__exportStar(require("./ExampleResultPaginationNextPrev"), exports);
|
|
37
|
+
__exportStar(require("./ExampleResultPaginationNumbered"), exports);
|
|
34
38
|
__exportStar(require("./ExampleSearch"), exports);
|
|
35
39
|
__exportStar(require("./ExampleSortBy"), exports);
|
|
36
40
|
__exportStar(require("./ExampleStats"), exports);
|
|
37
41
|
__exportStar(require("./ExampleSuggestions"), exports);
|
|
38
|
-
__exportStar(require("./ExampleHookUseFilters"), exports);
|
|
39
|
-
__exportStar(require("./ExampleHookUseResults"), exports);
|
|
40
|
-
__exportStar(require("./ExampleHookUseSearch"), exports);
|
|
41
|
-
__exportStar(require("./ExampleHookUseSortBy"), exports);
|
|
42
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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,2DAAyC;AACzC,6DAA2C;AAC3C,4EAA0D;AAC1D,+EAA6D;AAC7D,wEAAsD;AACtD,6DAA2C;AAC3C,6DAA2C;AAC3C,oEAAkD;AAClD,oEAAkD;AAClD,
|
|
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,2DAAyC;AACzC,0DAAwC;AACxC,0DAAwC;AACxC,yDAAuC;AACvC,yDAAuC;AACvC,6DAA2C;AAC3C,4EAA0D;AAC1D,+EAA6D;AAC7D,wEAAsD;AACtD,6DAA2C;AAC3C,6DAA2C;AAC3C,0EAAwD;AACxD,oEAAkD;AAClD,oEAAkD;AAClD,oEAAkD;AAClD,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,uDAAqC","sourcesContent":["export * from \"./ExampleClearAll\";\nexport * from \"./ExampleCustomComponent\";\nexport * from \"./ExampleFilterList\";\nexport * from \"./ExampleFilterRange\";\nexport * from \"./ExampleFilterSlider\";\nexport * from \"./ExampleFilters\";\nexport * from \"./ExampleFiltersSelected\";\nexport * from \"./ExampleHookUseFilters\";\nexport * from \"./ExampleHookUseResults\";\nexport * from \"./ExampleHookUseSearch\";\nexport * from \"./ExampleHookUseSortBy\";\nexport * from \"./ExampleProductCardWeight\";\nexport * from \"./ExampleReactiveSearchProviderCollection\";\nexport * from \"./ExampleReactiveSearchProviderInstantSearch\";\nexport * from \"./ExampleReactiveSearchProviderSearch\";\nexport * from \"./ExampleResultCardCallout\";\nexport * from \"./ExampleResultCardProduct\";\nexport * from \"./ExampleResultPaginationInfiniteScroll\";\nexport * from \"./ExampleResultPaginationLoadMore\";\nexport * from \"./ExampleResultPaginationNextPrev\";\nexport * from \"./ExampleResultPaginationNumbered\";\nexport * from \"./ExampleSearch\";\nexport * from \"./ExampleSortBy\";\nexport * from \"./ExampleStats\";\nexport * from \"./ExampleSuggestions\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ConfigFilterFacet } from "../../types";
|
|
3
2
|
import { useFilterListProps, useFilterRangeProps, useFilterSliderProps } from "../../hooks";
|
|
4
3
|
import { useReactSliderProps } from "../../hooks/react-slider/useReactSliderProps";
|
|
4
|
+
import type { ConfigFilterFacet } from "../../types";
|
|
5
5
|
export type FilterProps = {
|
|
6
6
|
/** The filter option being rendered */
|
|
7
7
|
filter: ConfigFilterFacet;
|