kyd-shared-badge 0.3.33 → 0.3.34
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/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { FiThumbsUp, FiTrendingUp, FiInfo } from 'react-icons/fi';
|
|
4
|
+
import { red, yellow, green, hexToRgba } from '../colors';
|
|
4
5
|
|
|
5
6
|
type CoachingItem = {
|
|
6
7
|
headline: string;
|
|
@@ -22,18 +23,18 @@ export default function EnterpriseCoaching({
|
|
|
22
23
|
|
|
23
24
|
const toneTint = (label?: string) => {
|
|
24
25
|
const l = (label || '').toLowerCase();
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const base = (l.includes('optimal') || l.includes('strong'))
|
|
27
|
+
? green
|
|
28
|
+
: (l.includes('moderate'))
|
|
29
|
+
? yellow
|
|
30
|
+
: red;
|
|
31
|
+
return hexToRgba(base, 0.10);
|
|
28
32
|
};
|
|
29
33
|
|
|
30
34
|
return (
|
|
31
35
|
<div className={'mt-4 p-4 rounded-lg border'} style={{ background: toneTint(matchLabel), borderColor: 'var(--icon-button-secondary)' }}>
|
|
32
36
|
<div className="flex items-center justify-between mb-2">
|
|
33
37
|
<div className="flex items-center gap-2">
|
|
34
|
-
<span className={'px-2 py-1 rounded text-xs font-semibold'} style={{ backgroundColor: 'var(--content-card-background)', border: '1px solid var(--icon-button-secondary)', color: 'var(--text-main)' }}>
|
|
35
|
-
{matchLabel || 'Role Match'}
|
|
36
|
-
</span>
|
|
37
38
|
<div className={'text-sm font-semibold'} style={{ color: 'var(--text-main)' }}>
|
|
38
39
|
{roleName ? `Role Alignment — ${roleName}` : 'Role Alignment'}
|
|
39
40
|
</div>
|