mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
832cffcdf9
* refactor: support type update * chore: update clear style * chore: bump color picker * chore: use slider * chore: bump color picker * chore: range slider * chore: layout * chore: useModeColor * chore: simplify * chore: bump color picker * refactor: event * chore: tmp lock check * chore: of it * chore: update ts def * chore: update ts def * chore: remove useless ts * chore: linear * chore: adjust style * chore: rm useless code * chore: fill color * chore: basic linear * chore: support toStr * chore: limit minCount * chore: use cache * chore: drag support: * chore: yes * chore: update demo * chore: useLayoutEffect instead * chore: fix click to add point * chore: add smmoth * chore: support of locale * chore: add locale * chore: fix lint * chore: adjust style * chore: fix lint * chore: fix style * test: fix test case * chore: fix popover * test: fix test case * chore: fix test * test: clean up * chore: fix lint * chore: fix lint * chore: fix lint * test: coverage * test: coverage * test: coverage * test: coverage * test: coverage * test: coverage * chore: fix docs * docs: update demo desc * chore: enhance hover range * fix: delete not working * chore: fix lint * test: coverage * test: coverage * chore: clean up * chore: adjust * chore: highlight * chore: adjust style * chore: fix lint * chore: update demo * chore: memo perf * refactor: up to down colors * test: update snapshot
59 lines
1.3 KiB
TypeScript
59 lines
1.3 KiB
TypeScript
import { useStyleRegister } from '@ant-design/cssinjs';
|
|
import { genCalc as calc, mergeToken, statisticToken, statistic } from '@ant-design/cssinjs-utils';
|
|
|
|
import type {
|
|
AliasToken,
|
|
GenerateStyle,
|
|
PresetColorKey,
|
|
PresetColorType,
|
|
SeedToken,
|
|
GlobalToken,
|
|
UseComponentStyleResult,
|
|
FullToken,
|
|
GetDefaultToken,
|
|
OverrideComponent,
|
|
GenStyleFn,
|
|
} from './interface';
|
|
import { PresetColors } from './interface';
|
|
import { getLineHeight } from './themes/shared/genFontSizes';
|
|
import useToken from './useToken';
|
|
import { genComponentStyleHook, genStyleHooks, genSubStyleComponent } from './util/genStyleUtils';
|
|
import genPresetColor from './util/genPresetColor';
|
|
import useResetIconStyle from './util/useResetIconStyle';
|
|
|
|
export type { CSSUtil, TokenWithCommonCls } from '@ant-design/cssinjs-utils';
|
|
|
|
export { DesignTokenContext, defaultConfig } from './context';
|
|
export {
|
|
// generators
|
|
genComponentStyleHook,
|
|
genSubStyleComponent,
|
|
genPresetColor,
|
|
genStyleHooks,
|
|
// utils
|
|
mergeToken,
|
|
statisticToken,
|
|
calc,
|
|
getLineHeight,
|
|
// hooks
|
|
useResetIconStyle,
|
|
useStyleRegister,
|
|
useToken,
|
|
// constant
|
|
PresetColors,
|
|
statistic,
|
|
};
|
|
export type {
|
|
AliasToken,
|
|
FullToken,
|
|
OverrideComponent,
|
|
GenerateStyle,
|
|
PresetColorKey,
|
|
PresetColorType,
|
|
SeedToken,
|
|
UseComponentStyleResult,
|
|
GetDefaultToken,
|
|
GlobalToken,
|
|
GenStyleFn,
|
|
};
|