UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

37 lines 1.56 kB
import { CompoundStylesApiProps, ExtendComponent, Factory, MenuProps } from '@mantine/core'; import { ReactNode } from 'react'; import { TableAction } from '../Table.types'; export type TableActionsListStylesNames = 'actionsTarget' | 'actionsDropdown' | 'actionsTooltip' | 'actionsGroup' | 'actionsGroupLabel' | 'actionsGroupDivider' | 'actionsGroupItems'; export interface TableActionsListProps extends Omit<MenuProps, 'classNames' | 'styles' | 'vars' | 'variant'>, CompoundStylesApiProps<TableActionsListFactory> { actions: TableAction[]; /** * Label for the more menu * @default 'More' when variant is 'split', 'Actions' when variant is 'combined' */ label?: string; /** * Label for the primary actions group when variant is 'combined' * @default '' */ primaryGroupLabel?: string; icon?: ReactNode; } type TableActionsListFactory = Factory<{ props: TableActionsListProps; ref: HTMLDivElement; stylesNames: TableActionsListStylesNames; compound: true; variant: 'split' | 'combined'; }>; export declare const TableActionsList: { (props: TableActionsListProps): import("react/jsx-runtime").JSX.Element; extend(input: ExtendComponent<TableActionsListFactory>): import("@mantine/core/lib/core/factory/factory").ExtendCompoundComponent<{ props: TableActionsListProps; ref: HTMLDivElement; stylesNames: TableActionsListStylesNames; compound: true; variant: "split" | "combined"; }>; }; export {}; //# sourceMappingURL=TableActionsList.d.ts.map