ant-design/components/theme/interface/index.ts
kiner-tang(文辉) b88ac06b8c
refactor(Theme): solve theme circular dependency issue (#42852)
* refactor: solve theme circular dependency issue

* refactor: solve theme circular dependency issue

* refactor: solve theme circular dependency issue

* refactor: solve theme circular dependency issue

* refactor: solve theme circular dependency issue

* refactor: solve theme circular dependency issue
2023-06-06 17:44:30 +08:00

39 lines
1.1 KiB
TypeScript

import type { CSSInterpolation } from '@ant-design/cssinjs';
import type { AliasToken } from './alias';
import type { ComponentTokenMap } from './components';
export type OverrideToken = {
[key in keyof ComponentTokenMap]: Partial<ComponentTokenMap[key]> & Partial<AliasToken>;
};
/** Final token which contains the components level override */
export type GlobalToken = AliasToken & ComponentTokenMap;
export type { AliasToken } from './alias';
export type { ComponentTokenMap } from './components';
export type {
ColorMapToken,
ColorNeutralMapToken,
CommonMapToken,
FontMapToken,
HeightMapToken,
MapToken,
SizeMapToken,
StyleMapToken,
} from './maps';
export { PresetColors } from './presetColors';
export type {
ColorPalettes,
LegacyColorPalettes,
PresetColorKey,
PresetColorType,
} from './presetColors';
export type { SeedToken } from './seeds';
export type UseComponentStyleResult = [(node: React.ReactNode) => React.ReactElement, string];
export type GenerateStyle<
ComponentToken extends object = AliasToken,
ReturnType = CSSInterpolation,
> = (token: ComponentToken) => ReturnType;