mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
2fe9b46bc1
* feat: Button support lineHeight token * refactor: rm format * chore: code clean * chore: fix test
52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
|
|
import type {
|
|
AliasToken,
|
|
GenerateStyle,
|
|
PresetColorKey,
|
|
PresetColorType,
|
|
SeedToken,
|
|
UseComponentStyleResult,
|
|
} from './interface';
|
|
import { PresetColors } from './interface';
|
|
import useToken from './useToken';
|
|
import type { FullToken, GetDefaultToken } from './util/genComponentStyleHook';
|
|
import genComponentStyleHook, {
|
|
genSubStyleComponent,
|
|
genStyleHooks,
|
|
} from './util/genComponentStyleHook';
|
|
import genPresetColor from './util/genPresetColor';
|
|
import statisticToken, { merge as mergeToken } from './util/statistic';
|
|
import useResetIconStyle from './util/useResetIconStyle';
|
|
import calc from './util/calc';
|
|
import { getLineHeight } from './themes/shared/genFontSizes';
|
|
|
|
export { DesignTokenContext, defaultConfig } from './context';
|
|
export {
|
|
PresetColors,
|
|
genComponentStyleHook,
|
|
genSubStyleComponent,
|
|
genPresetColor,
|
|
genStyleHooks,
|
|
mergeToken,
|
|
statisticToken,
|
|
calc,
|
|
getLineHeight,
|
|
// hooks
|
|
useResetIconStyle,
|
|
useStyleRegister,
|
|
useToken,
|
|
};
|
|
export type {
|
|
AliasToken,
|
|
// FIXME: Remove this type
|
|
AliasToken as DerivativeToken,
|
|
FullToken,
|
|
GenerateStyle,
|
|
PresetColorKey,
|
|
PresetColorType,
|
|
SeedToken,
|
|
UseComponentStyleResult,
|
|
GetDefaultToken,
|
|
};
|