@hawtio/react
Version:
A Hawtio reimplementation based on TypeScript + React.
49 lines (43 loc) • 1.58 kB
TypeScript
import * as React from 'react';
import React__default from 'react';
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ThProps } from '@patternfly/react-table';
declare const HawtioLoadingPage: React__default.FunctionComponent;
interface Props<T> {
extraToolbarLeft?: React__default.ReactNode;
extraToolbarRight?: React__default.ReactNode;
tableColumns: {
name?: string;
key?: keyof T;
renderer?: (value: T) => React__default.ReactNode;
isAction?: boolean;
percentageWidth?: ThProps['width'];
hideValues?: string[];
}[];
rows: T[];
fixedSearchCategories?: {
key: keyof T;
name: string;
values: string[];
id?: string;
ariaLabel?: string;
renderer?: (value: string) => React__default.ReactNode;
}[];
searchCategories: {
name: string;
key: keyof T;
}[];
onClick?: (value: T) => void;
onClearAllFilters?: () => void;
highlightSearch?: boolean;
classPrefix?: string;
}
declare function FilteredTable<T>({ extraToolbarLeft, extraToolbarRight, tableColumns, rows, fixedSearchCategories, searchCategories, onClick, onClearAllFilters, classPrefix, highlightSearch, }: Props<T>): react_jsx_runtime.JSX.Element;
declare const ExpandableText: React.FunctionComponent<{
children: React.ReactNode;
}>;
type HawtioProps = {
basepath?: string;
};
declare const Hawtio: React__default.FunctionComponent<HawtioProps>;
export { ExpandableText, FilteredTable, Hawtio, HawtioLoadingPage, type HawtioProps };