2023-06-06 17:44:30 +08:00
|
|
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
2023-08-28 21:42:39 +08:00
|
|
|
|
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';
|
2024-04-08 14:04:08 +08:00
|
|
|
import { getLineHeight } from './themes/shared/genFontSizes';
|
2023-06-06 17:44:30 +08:00
|
|
|
import useToken from './useToken';
|
2024-04-08 14:04:08 +08:00
|
|
|
import calc from './util/calc';
|
2024-01-12 15:03:03 +08:00
|
|
|
import type { FullToken, GetDefaultToken } from './util/genComponentStyleHook';
|
2023-11-06 10:31:51 +08:00
|
|
|
import genComponentStyleHook, {
|
2023-11-29 17:23:45 +08:00
|
|
|
genStyleHooks,
|
2024-04-08 14:04:08 +08:00
|
|
|
genSubStyleComponent,
|
2023-11-06 10:31:51 +08:00
|
|
|
} 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';
|
2023-08-28 10:49:18 +08:00
|
|
|
import useResetIconStyle from './util/useResetIconStyle';
|
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,
|
2023-08-28 21:42:39 +08:00
|
|
|
genSubStyleComponent,
|
2023-06-25 10:47:34 +08:00
|
|
|
genPresetColor,
|
2023-11-29 17:23:45 +08:00
|
|
|
genStyleHooks,
|
2022-04-01 17:00:12 +08:00
|
|
|
mergeToken,
|
2023-06-25 10:47:34 +08:00
|
|
|
statisticToken,
|
2023-11-06 10:31:51 +08:00
|
|
|
calc,
|
2024-01-12 15:03:03 +08:00
|
|
|
getLineHeight,
|
2022-04-24 18:05:08 +08:00
|
|
|
// hooks
|
2023-08-28 10:49:18 +08:00
|
|
|
useResetIconStyle,
|
2022-04-24 18:05:08 +08:00
|
|
|
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,
|
2023-11-06 10:31:51 +08:00
|
|
|
GetDefaultToken,
|
2022-03-15 15:33:50 +08:00
|
|
|
};
|