ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
51 lines (44 loc) • 1.88 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define('ng-zorro-antd/core/color', ['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ng-zorro-antd'] = global['ng-zorro-antd'] || {}, global['ng-zorro-antd'].core = global['ng-zorro-antd'].core || {}, global['ng-zorro-antd'].core.color = {})));
}(this, (function (exports) { 'use strict';
/**
* 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
*/
var 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.
*/
exports.isPresetColor = isPresetColor;
exports.presetColors = presetColors;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ng-zorro-antd-core-color.umd.js.map