2024-07-23 17:25:18 +08:00
|
|
|
import { useStyleRegister } from '@ant-design/cssinjs';
|
2024-07-29 16:38:50 +08:00
|
|
|
import { genCalc as calc, mergeToken, statisticToken, statistic } from '@ant-design/cssinjs-utils';
|
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,
|
2024-07-23 16:45:02 +08:00
|
|
|
GlobalToken,
|
2023-06-06 17:44:30 +08:00
|
|
|
UseComponentStyleResult,
|
2024-07-23 17:01:58 +08:00
|
|
|
FullToken,
|
2024-07-23 17:09:22 +08:00
|
|
|
GetDefaultToken,
|
2024-07-23 17:06:15 +08:00
|
|
|
OverrideComponent,
|
2024-07-23 17:15:39 +08:00
|
|
|
GenStyleFn,
|
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-07-29 16:38:50 +08:00
|
|
|
import { genComponentStyleHook, genStyleHooks, genSubStyleComponent } from './util/genStyleUtils';
|
2023-03-28 12:12:36 +08:00
|
|
|
import genPresetColor from './util/genPresetColor';
|
2023-08-28 10:49:18 +08:00
|
|
|
import useResetIconStyle from './util/useResetIconStyle';
|
2022-03-08 10:29:00 +08:00
|
|
|
|
2024-07-23 17:49:35 +08:00
|
|
|
export type { CSSUtil, TokenWithCommonCls } from '@ant-design/cssinjs-utils';
|
2024-07-23 17:23:43 +08:00
|
|
|
|
2023-06-06 17:44:30 +08:00
|
|
|
export { DesignTokenContext, defaultConfig } from './context';
|
2022-03-08 10:29:00 +08:00
|
|
|
export {
|
2024-07-23 18:55:48 +08:00
|
|
|
// generators
|
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,
|
2024-07-23 18:55:48 +08:00
|
|
|
// utils
|
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,
|
2024-07-23 17:40:45 +08:00
|
|
|
// constant
|
|
|
|
PresetColors,
|
|
|
|
statistic,
|
2022-03-08 10:29:00 +08:00
|
|
|
};
|
2022-03-21 16:48:25 +08:00
|
|
|
export type {
|
|
|
|
AliasToken,
|
2022-04-06 12:20:52 +08:00
|
|
|
FullToken,
|
2024-07-23 17:06:15 +08:00
|
|
|
OverrideComponent,
|
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,
|
2024-07-23 16:45:02 +08:00
|
|
|
GlobalToken,
|
2024-07-23 17:15:39 +08:00
|
|
|
GenStyleFn,
|
2022-03-15 15:33:50 +08:00
|
|
|
};
|