UNPKG

weapp-tailwindcss

Version:

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

23 lines (22 loc) 2.01 kB
import type { OutputAsset, OutputChunk } from 'rollup'; import { expandUniAppXHarmonyApplyStyles } from './style-asset/harmony-apply.js'; import { collectUniAppXHarmonyApplyStyleSourcesFromSource, collectUniAppXHarmonyApplyUtilitiesFromSources } from './style-asset/style-value.js'; export declare const UNI_APP_X_STYLE_PLACEHOLDER_VERSION = "uni-app-x-style-placeholder-v3"; type BundleItem = { type: string; } | OutputAsset | OutputChunk; interface HarmonyStyleInjectOptions { cssSources?: Iterable<string | undefined> | undefined; styleAssetFiles?: Iterable<string | undefined> | ((file: string) => Iterable<string | undefined>) | undefined; excludeComponents?: boolean | undefined; mapSources?: Iterable<string | undefined> | undefined; } export { collectUniAppXHarmonyApplyStyleSourcesFromSource, collectUniAppXHarmonyApplyUtilitiesFromSources, expandUniAppXHarmonyApplyStyles, }; export declare function createUniAppXHarmonyApplyGeneratorSource(applyStyleSources: string[], _applyUtilities: Iterable<string>): string; export declare function collectUniAppXHarmonyApplyUtilities(bundle: Record<string, BundleItem>): Set<string>; export declare function collectUniAppXHarmonyApplyStyleSources(bundle: Record<string, BundleItem>): string[]; export declare function injectUniAppXStylePlaceholder(file: string, code: string, getAssetSource?: (file: string) => string | undefined, cssSources?: Iterable<string | undefined>): string; export declare function injectUniAppXHarmonyGlobalStyles(file: string, code: string, getBundleSource?: (file: string) => string | undefined, options?: HarmonyStyleInjectOptions): string; export declare function injectUniAppXHarmonyBundleStyles(bundle: Record<string, BundleItem>, options?: HarmonyStyleInjectOptions): boolean; export declare function isUniAppXHarmonyBundle(bundle: Record<string, BundleItem>): boolean; export declare function createUniAppXBundleAssetSourceGetter(bundle: Record<string, BundleItem>): (file: string) => string | undefined;