mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +08:00
14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
|
import type { PickerToken } from './token';
|
||
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||
|
import { genBorderlessStyle, genFilledStyle, genOutlinedStyle } from '../../input/style/variants';
|
||
|
|
||
|
const genVariantsStyle = (token: PickerToken): CSSObject => ({
|
||
|
[token.componentCls]: {
|
||
|
...genOutlinedStyle(token),
|
||
|
...genFilledStyle(token),
|
||
|
...genBorderlessStyle(token),
|
||
|
},
|
||
|
});
|
||
|
|
||
|
export default genVariantsStyle;
|