2023-06-06 17:44:30 +08:00
|
|
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
2022-03-21 16:48:25 +08:00
|
|
|
import type {
|
|
|
|
AliasToken,
|
2023-06-06 17:44:30 +08:00
|
|
|
GenerateStyle,
|
2023-01-06 11:06:46 +08:00
|
|
|
PresetColorKey,
|
2023-06-06 17:44:30 +08:00
|
|
|
PresetColorType,
|
2022-05-27 11:07:58 +08:00
|
|
|
SeedToken,
|
2023-06-06 17:44:30 +08:00
|
|
|
UseComponentStyleResult,
|
2022-03-21 16:48:25 +08:00
|
|
|
} from './interface';
|
2022-05-27 11:07:58 +08:00
|
|
|
import { PresetColors } from './interface';
|
2023-06-06 17:44:30 +08:00
|
|
|
import useToken from './useToken';
|
2022-04-06 12:20:52 +08:00
|
|
|
import type { FullToken } from './util/genComponentStyleHook';
|
2022-05-27 11:07:58 +08:00
|
|
|
import genComponentStyleHook from './util/genComponentStyleHook';
|
2023-03-28 12:12:36 +08:00
|
|
|
import genPresetColor from './util/genPresetColor';
|
2023-06-06 17:44:30 +08:00
|
|
|
import statisticToken, { merge as mergeToken } from './util/statistic';
|
2022-03-08 10:29:00 +08:00
|
|
|
|
2023-06-06 17:44:30 +08:00
|
|
|
export { DesignTokenContext, defaultConfig } from './context';
|
2022-03-08 10:29:00 +08:00
|
|
|
export {
|
2022-04-24 18:05:08 +08:00
|
|
|
PresetColors,
|
2023-06-25 10:47:34 +08:00
|
|
|
genComponentStyleHook,
|
|
|
|
genPresetColor,
|
2022-04-01 17:00:12 +08:00
|
|
|
mergeToken,
|
2023-06-25 10:47:34 +08:00
|
|
|
statisticToken,
|
2022-04-24 18:05:08 +08:00
|
|
|
// hooks
|
|
|
|
useStyleRegister,
|
2023-06-06 17:44:30 +08:00
|
|
|
useToken,
|
2022-03-08 10:29:00 +08:00
|
|
|
};
|
2022-03-21 16:48:25 +08:00
|
|
|
export type {
|
|
|
|
AliasToken,
|
|
|
|
// FIXME: Remove this type
|
|
|
|
AliasToken as DerivativeToken,
|
2022-04-06 12:20:52 +08:00
|
|
|
FullToken,
|
2023-06-06 17:44:30 +08:00
|
|
|
GenerateStyle,
|
2023-06-25 10:47:34 +08:00
|
|
|
PresetColorKey,
|
|
|
|
PresetColorType,
|
|
|
|
SeedToken,
|
|
|
|
UseComponentStyleResult,
|
2022-03-15 15:33:50 +08:00
|
|
|
};
|