mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
479e4e8884
* ♻️ refactor token system interface * 📝 docs: add more token meta info to seeds and map token * 🔨 chore: update token meta generator scripts * 🚨 chore: fix lint * 📝 docs: 补充 token 的 meta 信息 * chore: add json in pkg * chore: update script * chore: update flag Co-authored-by: MadCcc <1075746765@qq.com>
31 lines
1009 B
TypeScript
31 lines
1009 B
TypeScript
import type { ColorPalettes } from '../presetColors';
|
|
import type { SeedToken } from '../seeds';
|
|
import type { SizeMapToken, HeightMapToken, FontSizeMapToken } from './size';
|
|
import type { ColorMapToken } from './colors';
|
|
import type { StyleMapToken } from './style';
|
|
|
|
export * from './colors';
|
|
export * from './style';
|
|
export * from './size';
|
|
|
|
export interface CommonMapToken extends FontSizeMapToken, StyleMapToken {
|
|
// Motion
|
|
motionDurationFast: string;
|
|
motionDurationMid: string;
|
|
motionDurationSlow: string;
|
|
}
|
|
|
|
// ======================================================================
|
|
// == Map Token ==
|
|
// ======================================================================
|
|
// 🔥🔥🔥🔥🔥🔥🔥 DO NOT MODIFY THIS. PLEASE CONTACT DESIGNER. 🔥🔥🔥🔥🔥🔥🔥
|
|
|
|
export interface MapToken
|
|
extends SeedToken,
|
|
ColorPalettes,
|
|
ColorMapToken,
|
|
SizeMapToken,
|
|
HeightMapToken,
|
|
StyleMapToken,
|
|
CommonMapToken {}
|