@lobehub/ui 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Tag/utils.js +3 -2
- package/package.json +1 -1
package/es/Tag/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { camelCase } from 'lodash-es';
|
|
2
2
|
export var presetColors = ['red', 'volcano', 'orange', 'gold', 'yellow', 'lime', 'green', 'cyan', 'blue', 'geekblue', 'purple', 'magenta', 'gray'];
|
|
3
|
-
export var presetSystemColors = new Set(['error', 'warning', 'success', 'info']);
|
|
3
|
+
export var presetSystemColors = new Set(['error', 'warning', 'success', 'info', 'processing']);
|
|
4
4
|
export var colorsPreset = function colorsPreset(theme, type) {
|
|
5
5
|
for (var _len = arguments.length, keys = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
6
6
|
keys[_key - 2] = arguments[_key];
|
|
@@ -8,8 +8,9 @@ export var colorsPreset = function colorsPreset(theme, type) {
|
|
|
8
8
|
return theme[camelCase([type].concat(keys).join('-'))];
|
|
9
9
|
};
|
|
10
10
|
export var colorsPresetSystem = function colorsPresetSystem(theme, type) {
|
|
11
|
+
var t = type === 'processing' ? 'info' : type;
|
|
11
12
|
for (var _len2 = arguments.length, keys = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
12
13
|
keys[_key2 - 2] = arguments[_key2];
|
|
13
14
|
}
|
|
14
|
-
return theme[camelCase(['color',
|
|
15
|
+
return theme[camelCase(['color', t].concat(keys).join('-'))];
|
|
15
16
|
};
|