UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

20 lines (19 loc) 1.15 kB
import type { Generic } from 'adopted-style-sheets'; import type { PropLabel, PropTableCallbacks, PropTableData, PropTableDataFoot, PropTableSelection, TableHeaderCells } from '../props'; import type { PropHasSettingsMenu } from '../props/has-settings-menu'; import type { PropTableHeaderCells } from '../props/table-header-cells'; import type { KoliBriTableDataType, KoliBriTableSelection } from '../types'; type RequiredProps = PropLabel & PropTableData & PropTableHeaderCells; type OptionalProps = PropTableCallbacks & PropTableDataFoot & PropTableSelection & PropHasSettingsMenu; type RequiredStates = { headerCells: TableHeaderCells; data: KoliBriTableDataType[]; } & PropLabel; type OptionalStates = { dataFoot: KoliBriTableDataType[]; selection: KoliBriTableSelection; } & PropHasSettingsMenu & PropTableCallbacks; export type TableStatelessProps = Generic.Element.Members<RequiredProps, OptionalProps>; export type TableStatelessStates = Generic.Element.Members<RequiredStates, OptionalStates>; export type TableStatelessAPI = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>; export {};