UNPKG

svelte-meilisearch-instantsearch

Version:

Svelte wrapper for Meilisearch InstantSearch

82 lines (81 loc) 2.63 kB
import { SvelteComponentTyped } from "svelte"; export type HierarchicalMenuClassNames = { /** * 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 list element */ list: string; /** * Class names to apply to each child list element */ childList: string; /** * Class names to apply to each item element */ item: string; /** * Class names to apply to the selected item */ selectedItem: string; /** * Class names to apply to the parent item of the list */ parentItem: string; /** * Class names to apply to each link element */ link: string; /** * Class names to apply to the link of each selected item */ selectedItemLink: string; /** * Class names to apply to the label of an item element */ label: string; /** * Class names to apply to the count of an item element */ 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; }; import { type ShowMoreButtonTranslations } from "../components/ShowMoreButton.svelte"; declare const __propDef: { props: { attributes: string[]; separator?: string | undefined; rootPath?: string | null | undefined; showParentLevel?: boolean | undefined; limit?: number | undefined; showMore?: boolean | undefined; showMoreLimit?: number | undefined; sortBy?: import("instantsearch.js").SortBy<import("algoliasearch-helper").SearchResults.HierarchicalFacet> | undefined; transformItems?: import("instantsearch.js").TransformItems<import("instantsearch.js/es/connectors/hierarchical-menu/connectHierarchicalMenu").HierarchicalMenuItem> | undefined; classes?: Partial<HierarchicalMenuClassNames> | undefined; translations?: Partial<ShowMoreButtonTranslations> | undefined; }; events: { [evt: string]: CustomEvent<any>; }; slots: {}; }; export type HierarchicalMenuProps = typeof __propDef.props; export type HierarchicalMenuEvents = typeof __propDef.events; export type HierarchicalMenuSlots = typeof __propDef.slots; export default class HierarchicalMenu extends SvelteComponentTyped<HierarchicalMenuProps, HierarchicalMenuEvents, HierarchicalMenuSlots> { } export {};