ant-design/components/theme/internal.ts

52 lines
1.2 KiB
TypeScript
Raw Normal View History

import { useStyleRegister } from '@ant-design/cssinjs';
import type {
AliasToken,
GenerateStyle,
PresetColorKey,
PresetColorType,
SeedToken,
UseComponentStyleResult,
} from './interface';
import { PresetColors } from './interface';
import { getLineHeight } from './themes/shared/genFontSizes';
import useToken from './useToken';
import calc from './util/calc';
import type { FullToken, GetDefaultToken } from './util/genComponentStyleHook';
import genComponentStyleHook, {
genStyleHooks,
genSubStyleComponent,
} from './util/genComponentStyleHook';
2023-03-28 12:12:36 +08:00
import genPresetColor from './util/genPresetColor';
import statisticToken, { merge as mergeToken } from './util/statistic';
import useResetIconStyle from './util/useResetIconStyle';
export { DesignTokenContext, defaultConfig } from './context';
export {
PresetColors,
2023-06-25 10:47:34 +08:00
genComponentStyleHook,
genSubStyleComponent,
2023-06-25 10:47:34 +08:00
genPresetColor,
genStyleHooks,
mergeToken,
2023-06-25 10:47:34 +08:00
statisticToken,
calc,
getLineHeight,
// hooks
useResetIconStyle,
useStyleRegister,
useToken,
};
export type {
AliasToken,
// FIXME: Remove this type
AliasToken as DerivativeToken,
FullToken,
GenerateStyle,
2023-06-25 10:47:34 +08:00
PresetColorKey,
PresetColorType,
SeedToken,
UseComponentStyleResult,
GetDefaultToken,
};