@cerberus-design/styled-system
Version:
Cerberus Design System Panda-CSS styled-system.
39 lines (32 loc) • 1.13 kB
TypeScript
/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { DistributiveOmit, Pretty } from '../types/system-types';
interface TableVariant {
/**
* @default "md"
*/
size: "sm" | "md" | "lg"
/**
* @default "default"
*/
decoration: "default" | "zebra"
}
type TableVariantMap = {
[key in keyof TableVariant]: Array<TableVariant[key]>
}
export type TableVariantProps = {
[key in keyof TableVariant]?: ConditionalValue<TableVariant[key]> | undefined
}
export interface TableRecipe {
__type: TableVariantProps
(props?: TableVariantProps): Pretty<Record<"root" | "trigger" | "table" | "caption" | "thead" | "tbody" | "tfoot" | "tr" | "th" | "td", 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
}
/**
* The styles for Table components
*/
export declare const table: TableRecipe