UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

31 lines 1.27 kB
import { AntdProbeName } from "./registry.mjs"; import { ScanAntdUsageOptions } from "./scan.mjs"; import { ReactElement } from "react"; import { ThemeConfig } from "antd"; //#region src/static-css/buildAntdStaticCss.d.ts interface AntdStaticCssOptions { /** escape hatch for render paths the registry has no probe for */ customProbes?: [name: string, render: () => ReactElement][]; /** extra probes on top of 'auto' scan results */ extraIncluded?: AntdProbeName[]; hrefTemplate?: (hash: string) => string; included?: 'auto' | AntdProbeName[]; scan?: ScanAntdUsageOptions; /** must equal the ConfigProvider theme used at SSR — token hash decides styleKeys matching */ theme?: ThemeConfig; } interface AntdStaticCssPayload { css: string; failedProbes: string[]; hash: string; href: string; probes: string[]; styleKeys: string[]; /** antd exports found by 'auto' scan that no registry probe covers */ unmatchedComponents: string[]; } declare const createProbeAntdTheme: () => ThemeConfig; declare const buildAntdStaticCss: (options?: AntdStaticCssOptions) => AntdStaticCssPayload; //#endregion export { AntdStaticCssOptions, AntdStaticCssPayload, buildAntdStaticCss, createProbeAntdTheme }; //# sourceMappingURL=buildAntdStaticCss.d.mts.map