prosperita-dumbo-react
Version:
**Dumbo React** é uma biblioteca de componentes React que facilita a manipulação de propriedades em seus componentes. Ela fornece uma forma simples e eficiente de gerenciar e manipular props, tornando seu código mais limpo e fácil de manter.
44 lines • 1.46 kB
TypeScript
import { ReactNode } from "react";
import "@fontsource/ibm-plex-sans";
type TableRow = {
[key: string]: ReactNode | string | JSX.Element;
};
export type TableProps = {
columnTitles: ReactNode[];
rowData: TableRow[];
pageSizes: number[];
actions?: OptionsActions[];
label?: string;
buttons?: ButtonTable[];
search?: boolean;
messagedatalength?: string;
width?: string;
columsKeys?: Array<string>;
sizeSearch?: "small" | "large" | "medium";
headerAction?: {
active: boolean;
count: number;
};
rowSizes?: string;
};
type OptionsActions = {
text: ReactNode;
icon?: string;
feature?: boolean;
onClick?: () => void;
};
type ButtonTable = {
label: string;
onClick?: () => void;
icon?: string | ReactNode;
kind: "primary" | "secondary" | "tertiary" | "ghost" | "dangerPrimary" | "dangerTertiary" | "dangerGhost";
position?: "right" | "left";
hasIconSvg?: boolean;
dimension?: string;
width?: string;
size?: "small" | "large" | "medium" | "extraLarge" | "twoXLarge" | "expressive";
disabled?: boolean;
};
export declare const TableBatchActions: ({ rowData, pageSizes, buttons, label, search, columnTitles, messagedatalength, width, columsKeys, actions, sizeSearch, headerAction, rowSizes }: TableProps) => import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=index.d.ts.map