ant-design/components/theme/internal.ts

39 lines
942 B
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 useToken from './useToken';
import type { FullToken } from './util/genComponentStyleHook';
import genComponentStyleHook from './util/genComponentStyleHook';
2023-03-28 12:12:36 +08:00
import genPresetColor from './util/genPresetColor';
import statisticToken, { merge as mergeToken } from './util/statistic';
export { DesignTokenContext, defaultConfig } from './context';
export {
PresetColors,
2023-06-25 10:47:34 +08:00
genComponentStyleHook,
genPresetColor,
mergeToken,
2023-06-25 10:47:34 +08:00
statisticToken,
// hooks
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,
};