table.d.ts•1.1 kB
/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { DistributiveOmit, Pretty } from '../types/system-types';
interface TableVariant {
/**
* @default "plain"
*/
variant: "dense" | "plain"
/**
* @default "md"
*/
size: "sm" | "md"
}
type TableVariantMap = {
[key in keyof TableVariant]: Array<TableVariant[key]>
}
type TableSlot = "root" | "body" | "cell" | "footer" | "head" | "header" | "row" | "caption"
export type TableVariantProps = {
[key in keyof TableVariant]?: ConditionalValue<TableVariant[key]> | undefined
}
export interface TableRecipe {
__slot: TableSlot
__type: TableVariantProps
(props?: TableVariantProps): Pretty<Record<TableSlot, string>>
raw: (props?: TableVariantProps) => TableVariantProps
variantMap: TableVariantMap
variantKeys: Array<keyof TableVariant>
splitVariantProps<Props extends TableVariantProps>(props: Props): [TableVariantProps, Pretty<DistributiveOmit<Props, keyof TableVariantProps>>]
getVariantProps: (props?: TableVariantProps) => TableVariantProps
}
export declare const table: TableRecipe