@riadvargas/svelte-algolia-instantsearch
Version:
Svelte wrapper for Algolia InstantSearch
96 lines (95 loc) • 3.08 kB
TypeScript
import type { RefinementListConnectorParams } from "instantsearch.js/es/connectors/refinement-list/connectRefinementList";
import { type ShowMoreButtonTranslations } from "../components/ShowMoreButton.svelte";
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
$$bindings?: Bindings;
} & Exports;
(internal: unknown, props: Props & {
$$events?: Events;
$$slots?: Slots;
}): Exports & {
$set?: any;
$on?: any;
};
z_$$bindings?: Bindings;
}
declare const RefinementList: $$__sveltets_2_IsomorphicComponent<RefinementListConnectorParams & {
classes?: Partial<{
/**
* Class names to apply to the root element
*/
root: string;
/**
* Class names to apply to the root element when there are no refinements possible
*/
noRefinementRoot: string;
/**
* Class names to apply to the search box wrapper element
*/
searchBox: string;
/**
* Class names to apply to the input element
*/
input: string;
/**
* Class names to apply to the root element
*/
noResults: string;
/**
* Class names to apply to the list element
*/
list: string;
/**
* Class names to apply to each item element
*/
item: string;
/**
* Class names to apply to each selected item element
*/
selectedItem: string;
/**
* Class names to apply to each label element
*/
label: string;
/**
* Class names to apply to each checkbox element
*/
checkbox: string;
/**
* Class names to apply to the text for each label
*/
labelText: string;
/**
* Class names to apply to the facet count of each item
*/
count: string;
/**
* Class names to apply to the "Show more" button
*/
showMore: string;
/**
* Class names to apply to the "Show more" button if it's disabled
*/
disabledShowMore: string;
}>;
translations?: Partial<ShowMoreButtonTranslations & {
/**
* What to display when there are no results.
*/
noResultsText: string;
/**
* The alternative text of the submit button.
*/
submitButtonTitle: string;
/**
* The alternative text of the reset button.
*/
resetButtonTitle: string;
}>;
searchable?: boolean;
searchablePlaceholder?: string;
}, {
[evt: string]: CustomEvent<any>;
}, {}, {}, string>;
type RefinementList = InstanceType<typeof RefinementList>;
export default RefinementList;