UNPKG

weapp-tailwindcss

Version:

把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!

20 lines (19 loc) 1.6 kB
import type { OutputChunk } from 'rollup'; type StyleDeclarations = Record<string, string | number>; export type StyleValue = Record<string, Record<string, StyleDeclarations>>; export declare function parseStyleExport(source: string): StyleValue | undefined; export declare function parseStyleObject(source: string): StyleValue | undefined; export declare function parseSourceMapSourcesContent(source: string): string[]; export declare function collectChunkMapSourcesContent(chunk: OutputChunk): string[]; export declare function styleExportToUtsMap(styleExport: StyleValue): string; export declare function createUtsStyleArrayFromAppStyles(code: string, appSource?: string): string | undefined; export declare function cssSourceToStyleValue(source: string): StyleValue | undefined; export declare function mergeStyleValues(...items: Array<StyleValue | undefined>): StyleValue | undefined; export declare function createStyleValueFromApplySources(sources: string[], utilityStyles: StyleValue | undefined): StyleValue | undefined; export declare function collectUniAppXHarmonyApplyStyleSourcesFromSource(source: string, sourceId?: string): string[]; export declare function collectUniAppXHarmonyApplyUtilitiesFromSources(sources: Iterable<string>): Set<string>; export declare function createMergedStyleValue(code: string, localStyle: StyleValue | undefined, appStyle: StyleValue): StyleValue | undefined; export declare function createMergedStyleValues(code: string, localStyles: StyleValue[], appStyle: StyleValue): { [x: string]: Record<string, StyleDeclarations>; }[] | undefined; export {};