UNPKG

svelte-meilisearch-instantsearch

Version:

Svelte wrapper for Meilisearch InstantSearch

101 lines (100 loc) 3.58 kB
import { SvelteComponentTyped } from "svelte"; import { type ShowMoreButtonTranslations } from "../components/ShowMoreButton.svelte"; declare const __propDef: { props: { attribute: string; operator?: "and" | "or" | undefined; limit?: number | undefined; showMore?: boolean | undefined; showMoreLimit?: number | undefined; /** * Class names to apply to each checkbox element */ sortBy?: import("instantsearch.js").SortBy<import("algoliasearch-helper").SearchResults.FacetValue> | undefined; escapeFacetValues?: boolean | undefined; transformItems?: import("instantsearch.js").TransformItems<import("instantsearch.js/es/connectors/refinement-list/connectRefinementList").RefinementListItem> | undefined; 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; }> | undefined; 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; }> | undefined; searchable?: boolean | undefined; searchablePlaceholder?: string | undefined; }; events: { [evt: string]: CustomEvent<any>; }; slots: {}; }; export type RefinementListProps = typeof __propDef.props; export type RefinementListEvents = typeof __propDef.events; export type RefinementListSlots = typeof __propDef.slots; export default class RefinementList extends SvelteComponentTyped<RefinementListProps, RefinementListEvents, RefinementListSlots> { } export {};