@giteeteam/apps-team-components 1.10.0 → 1.10.1-alpha.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../lib/dayjs.js';
|
|
2
2
|
import { DATE_TIME_FORMAT, DATE_TIME_FORMAT_SEC } from '../../lib/global.js';
|
|
3
|
-
import { blue4, orange4 } from '../../style/common.js';
|
|
3
|
+
import { blue4, green4, orange4 } from '../../style/common.js';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
|
|
6
6
|
const getNameBadge = (name) => {
|
|
@@ -10,7 +10,7 @@ const getNameBadge = (name) => {
|
|
|
10
10
|
const str = name.trim();
|
|
11
11
|
return String.fromCodePoint(str.codePointAt(0));
|
|
12
12
|
};
|
|
13
|
-
const randomBackgroundColor = [blue4,
|
|
13
|
+
const randomBackgroundColor = [blue4, green4, orange4];
|
|
14
14
|
const getBackgroundColor = (s) => {
|
|
15
15
|
const code = (s === null || s === void 0 ? void 0 : s.charCodeAt(0)) || 0;
|
|
16
16
|
const random = Math.floor(code % randomBackgroundColor.length);
|
package/dist/style/common.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const blue7 = "var(--color-brand-7, #0045d9)";
|
|
|
18
18
|
export declare const blue8 = "var(--color-brand-8, #0033b3)";
|
|
19
19
|
export declare const blue9 = "var(--color-brand-9, #00238c)";
|
|
20
20
|
export declare const blue10 = "var(--color-brand-10, #001666)";
|
|
21
|
+
export declare const green4 = "var(--color-success-4, #4DD18B)";
|
|
21
22
|
export declare const green5 = "var(--color-success-5, #29c477)";
|
|
22
23
|
export declare const orange4 = "var(--color-orange-4, #ffd15e)";
|
|
23
24
|
export declare const orange5 = "var(--color-orange-5, #ffbf36)";
|
package/dist/style/common.js
CHANGED
|
@@ -18,6 +18,7 @@ const blue7 = 'var(--color-brand-7, #0045d9)';
|
|
|
18
18
|
const blue8 = 'var(--color-brand-8, #0033b3)';
|
|
19
19
|
const blue9 = 'var(--color-brand-9, #00238c)';
|
|
20
20
|
const blue10 = 'var(--color-brand-10, #001666)';
|
|
21
|
+
const green4 = 'var(--color-success-4, #4DD18B)';
|
|
21
22
|
const green5 = 'var(--color-success-5, #29c477)';
|
|
22
23
|
const orange4 = 'var(--color-orange-4, #ffd15e)';
|
|
23
24
|
const orange5 = 'var(--color-orange-5, #ffbf36)';
|
|
@@ -34,4 +35,4 @@ const randomClassName = (name) => {
|
|
|
34
35
|
return `${name}_${result}`;
|
|
35
36
|
};
|
|
36
37
|
|
|
37
|
-
export { blue1, blue10, blue2, blue3, blue4, blue5, blue6, blue7, blue8, blue9, fieldLabelColor, gray1, gray10, gray2, gray3, gray4, gray5, gray6, gray7, gray8, gray9, green5, orange4, orange5, randomClassName, statusCellMinWidth, themeBgColorBase };
|
|
38
|
+
export { blue1, blue10, blue2, blue3, blue4, blue5, blue6, blue7, blue8, blue9, fieldLabelColor, gray1, gray10, gray2, gray3, gray4, gray5, gray6, gray7, gray8, gray9, green4, green5, orange4, orange5, randomClassName, statusCellMinWidth, themeBgColorBase };
|