UNPKG

@lcap/builder

Version:
18 lines (17 loc) 1.53 kB
import type { LcapBuildOptions, CSSValue, FinalComponentCSSInfo, DepComponent } from './types'; export default function buildCSSInfo(options: LcapBuildOptions): void; export declare function batchDepCSSInfo(originComponentNames: string[], renameComponent: (oldName: string) => string, stillRoot?: boolean): Record<string, { depComponentMap: Record<string, boolean>; }>; export declare function batchDepBasicCSSInfo(basicCSSInfo: Record<string, FinalComponentCSSInfo>, originComponentNames: string[], renameComponent: (oldName: string) => string, stillRoot?: boolean): Record<string, { depComponentMap: Record<string, DepComponent>; }>; export declare function extendsCSSInfo(cssInfo: FinalComponentCSSInfo, renameSelector?: (oldSelector: string) => string): { cssRules: { selector: string; isStartRoot: boolean; description: string; parsedStyle?: Partial<Record<"backgroundColor" | "color" | "fontSize" | "borderTopColor" | "borderRightColor" | "borderBottomColor" | "borderLeftColor" | "borderTopWidth" | "borderRightWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderTopStyle" | "borderRightStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomRightRadius" | "borderBottomLeftRadius" | "width" | "height" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft", CSSValue>> | undefined; }[]; mainSelectorMap: Record<string, boolean>; };