2024-07-23 16:45:02 +08:00
|
|
|
import type {
|
|
|
|
GlobalToken as GlobalTokenTypeUtil,
|
2024-07-23 16:53:24 +08:00
|
|
|
OverrideTokenMap as OverrideTokenTypeUtil,
|
2024-07-23 17:01:58 +08:00
|
|
|
FullToken as FullTokenTypeUtil,
|
2024-07-23 17:09:22 +08:00
|
|
|
GetDefaultToken as GetDefaultTokenTypeUtil,
|
2024-07-23 17:15:39 +08:00
|
|
|
GenStyleFn as GenStyleFnTypeUtil,
|
2024-07-23 17:01:58 +08:00
|
|
|
TokenMapKey,
|
2024-07-23 16:45:02 +08:00
|
|
|
} from '@ant-design/cssinjs-utils';
|
|
|
|
|
|
|
|
import type { AliasToken } from './alias';
|
|
|
|
import type { ComponentTokenMap } from './components';
|
|
|
|
|
|
|
|
/** Final token which contains the components level override */
|
|
|
|
export type GlobalToken = GlobalTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
2024-07-23 16:53:24 +08:00
|
|
|
|
|
|
|
export type OverrideToken = OverrideTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
2024-07-23 17:01:58 +08:00
|
|
|
|
2024-07-23 17:06:15 +08:00
|
|
|
export type OverrideComponent = TokenMapKey<ComponentTokenMap>;
|
|
|
|
|
2024-07-29 16:38:50 +08:00
|
|
|
export type FullToken<C extends TokenMapKey<ComponentTokenMap>> = FullTokenTypeUtil<
|
|
|
|
ComponentTokenMap,
|
|
|
|
AliasToken,
|
|
|
|
C
|
|
|
|
>;
|
|
|
|
|
|
|
|
export type GetDefaultToken<C extends TokenMapKey<ComponentTokenMap>> = GetDefaultTokenTypeUtil<
|
|
|
|
ComponentTokenMap,
|
|
|
|
AliasToken,
|
|
|
|
C
|
|
|
|
>;
|
|
|
|
|
|
|
|
export type GenStyleFn<C extends TokenMapKey<ComponentTokenMap>> = GenStyleFnTypeUtil<
|
|
|
|
ComponentTokenMap,
|
|
|
|
AliasToken,
|
|
|
|
C
|
|
|
|
>;
|