UNPKG

@elacity-js/uikit

Version:

React / Material UI Design kit for Elacity project

53 lines (52 loc) 3.1 kB
import React from 'react'; import { LinkProps } from 'react-router-dom'; import { Theme } from '@mui/material'; export declare const ListItemResult: import("@emotion/styled").StyledComponent<{ button?: false; } & import("@mui/material").ListItemBaseProps & { components?: { Root?: React.ElementType<any>; }; componentsProps?: { root?: React.HTMLAttributes<HTMLDivElement> & import("@mui/material").ListItemComponentsPropsOverrides; }; } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof React.LiHTMLAttributes<HTMLLIElement>> & { ref?: React.Ref<HTMLLIElement>; }, "children" | "button" | "style" | "alignItems" | "dense" | "disabled" | "sx" | "classes" | "className" | "components" | "componentsProps" | "autoFocus" | "selected" | "disableGutters" | "divider" | "disablePadding" | "ContainerComponent" | "ContainerProps" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<Theme> & Omit<Pick<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof React.LiHTMLAttributes<HTMLLIElement>> & { ref?: React.Ref<HTMLLIElement>; }, "children" | "style" | "alignItems" | "dense" | "disabled" | "sx" | "classes" | "className" | "components" | "componentsProps" | "autoFocus" | "selected" | "disableGutters" | "divider" | "disablePadding" | "ContainerComponent" | "ContainerProps" | "secondaryAction"> & LinkProps & { component: React.ComponentType; }, {}, {}>; export declare const ListSubheaderResult: import("@emotion/styled").StyledComponent<{ children?: React.ReactNode; classes?: Partial<import("@mui/material").ListSubheaderClasses>; color?: "primary" | "inherit" | "default"; disableGutters?: boolean; disableSticky?: boolean; inset?: boolean; sx?: import("@mui/material").SxProps<Theme>; } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof React.LiHTMLAttributes<HTMLLIElement>> & { ref?: React.Ref<HTMLLIElement>; }, "children" | "color" | "inset" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "disableGutters" | "disableSticky"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>; interface ResultLineProps { label: string; imageHash?: string; address?: string; id?: string | number; src?: string; } export declare const ResultLine: React.FC<ResultLineProps>; declare type UseQueryHook<T> = (searchTerm: string, o: { skip?: boolean; }) => { data: T; isFetching?: boolean; }; declare type RenderResult<T> = (result: T) => React.ReactNode; interface Props<T> { renderResult: RenderResult<T>; useQuery: UseQueryHook<T>; } declare const _default: <T extends unknown>({ renderResult, useQuery }: Props<T>) => JSX.Element; export default _default; export declare const SearchbarVisible: <T extends unknown>({ renderResult, useQuery }: Props<T>) => JSX.Element;