UNPKG

@odoo/o-spreadsheet

Version:
85 lines (84 loc) 2.25 kB
import { Color } from "../types/misc"; import { TableConfig, TableStyle, TableStyleTemplateName } from "../types/table"; export declare const DEFAULT_TABLE_CONFIG: TableConfig; export declare const TABLE_STYLE_CATEGORIES: { light: string; medium: string; dark: string; }; export interface TableColorSet { name: string; coloredText: Color; light: Color; medium: Color; dark: Color; mediumBorder: Color; highlight: Color; } export type TableStyleTemplate = (colorSet: TableColorSet) => Omit<TableStyle, "displayName">; export declare const TABLE_COLOR_SETS: { black: { name: string; coloredText: string; light: string; medium: string; dark: string; mediumBorder: string; highlight: string; }; lightBlue: TableColorSet; red: TableColorSet; lightGreen: TableColorSet; purple: TableColorSet; gray: { name: string; coloredText: string; light: string; medium: string; dark: string; mediumBorder: string; highlight: string; }; orange: TableColorSet; }; export declare const DARK_TABLE_COLOR_SETS: { black: { name: string; coloredText: string; light: string; medium: string; dark: string; mediumBorder: string; highlight: string; }; orangeBlue: { highlight: Color; name: string; coloredText: Color; light: Color; medium: Color; dark: Color; mediumBorder: Color; }; purpleGreen: { highlight: Color; name: string; coloredText: Color; light: Color; medium: Color; dark: Color; mediumBorder: Color; }; redBlue: { highlight: Color; name: string; coloredText: Color; light: Color; medium: Color; dark: Color; mediumBorder: Color; }; }; export declare const TABLE_PRESETS: Record<string, TableStyle>; export declare const TABLE_STYLES_TEMPLATES: Record<TableStyleTemplateName, TableStyleTemplate>; export declare function buildTableStyle(name: string, templateName: TableStyleTemplateName, primaryColor: Color): TableStyle;