UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

40 lines (36 loc) 1.1 kB
/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ const presetColors = [ 'pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime' ]; function isPresetColor(color) { return presetColors.indexOf(color) !== -1; } // export const presetStatusColors = ['success', 'processing', 'error', 'default', 'warning']; // export type NzPresetStatusColor = typeof presetStatusColors[number]; // export function isPresetStatusColor(color: string): color is NzPresetStatusColor { // return presetStatusColors.indexOf(color as NzSafeAny) !== -1; // } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ /** * Generated bundle index. Do not edit. */ export { isPresetColor, presetColors }; //# sourceMappingURL=ng-zorro-antd-core-color.js.map