mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-26 01:42:30 +08:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import type { CSSInterpolation, DerivativeFunc } from '@ant-design/cssinjs';
|
|
|
|
import type { AnyObject } from '../../_util/type';
|
|
import type { AliasToken } from './alias';
|
|
import type { MapToken } from './maps';
|
|
import type { SeedToken } from './seeds';
|
|
|
|
export type MappingAlgorithm = DerivativeFunc<SeedToken, MapToken>;
|
|
|
|
export type {
|
|
GlobalToken,
|
|
OverrideToken,
|
|
FullToken,
|
|
OverrideComponent,
|
|
GetDefaultToken,
|
|
GenStyleFn,
|
|
} from './cssinjs-utils';
|
|
|
|
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 {
|
|
LegacyColorPalettes,
|
|
ColorPalettes,
|
|
PresetColorKey,
|
|
PresetColorType,
|
|
} from './presetColors';
|
|
export type { SeedToken } from './seeds';
|
|
|
|
export type UseComponentStyleResult = [(node: React.ReactNode) => React.ReactElement, string];
|
|
|
|
export type GenerateStyle<
|
|
ComponentToken extends AnyObject = AliasToken,
|
|
ReturnType = CSSInterpolation,
|
|
> = (token: ComponentToken) => ReturnType;
|