@partbot/stockist-map 0.1.5 → 0.1.7
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/dist/StockistSearch.d.ts +4 -1
- package/dist/stockist-search.js +271 -197
- package/dist/stockist-search.umd.js +10 -10
- package/package.json +1 -1
package/dist/StockistSearch.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
import type { Coordinate, StockistHit, StockistSearchProps } from "./types";
|
|
2
3
|
declare const RESULT_LIMIT = 3;
|
|
3
4
|
declare const CANDIDATE_LIMIT = 100;
|
|
4
5
|
declare const SEARCH_RADIUS_KM = 50;
|
|
6
|
+
declare function hitCategories(hit: StockistHit): string[];
|
|
7
|
+
declare function categoryBadgeStyle(category: string, colors: Record<string, string> | undefined): React.CSSProperties | undefined;
|
|
5
8
|
declare function resultsWithDistance(hits: StockistHit[], center: Coordinate | null): StockistHit[];
|
|
6
9
|
export declare function StockistSearch({ token, configUrl, config: providedConfig, theme, initialQuery, viewAllUrl, className, }: StockistSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { CANDIDATE_LIMIT, RESULT_LIMIT, SEARCH_RADIUS_KM, resultsWithDistance };
|
|
10
|
+
export { CANDIDATE_LIMIT, RESULT_LIMIT, SEARCH_RADIUS_KM, categoryBadgeStyle, hitCategories, resultsWithDistance, };
|