ant-design/components/_util/colors.ts

24 lines
565 B
TypeScript
Raw Normal View History

import type { ElementOf } from './type';
import { tuple } from './type';
export const PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning');
2019-08-14 18:21:24 +08:00
// eslint-disable-next-line import/prefer-default-export
export const PresetColorTypes = tuple(
2019-04-26 18:15:31 +08:00
'pink',
'red',
'yellow',
'orange',
'cyan',
'green',
'blue',
'purple',
'geekblue',
'magenta',
'volcano',
'gold',
'lime',
);
2019-04-26 18:15:31 +08:00
export type PresetColorType = ElementOf<typeof PresetColorTypes>;
export type PresetStatusColorType = ElementOf<typeof PresetStatusColorTypes>;