kyd-shared-badge 0.2.5 → 0.2.6

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,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -73,8 +73,8 @@ const AppendixTables: React.FC<AppendixTableProps> = ({ type, sources, searchedA
73
73
  });
74
74
 
75
75
  const headers = type === 'sanctions'
76
- ? ["Issuing Entity", "List Name", "List Searched On", "Findings", "What the Findings Mean"]
77
- : ["Country", "Entity Type", "Entity/Domain", "Searched On", "Findings", "What the Findings Mean"];
76
+ ? ["Issuing Entity", "List Name", "List Searched On", "Value", "Findings"]
77
+ : ["Country", "Entity Type", "Entity/Domain", "Searched On", "Value", "Findings"];
78
78
 
79
79
  const parsedSources = type === 'sanctions'
80
80
  ? (sources as string[]).map(sourceString => {
@@ -102,6 +102,11 @@ const AppendixTables: React.FC<AppendixTableProps> = ({ type, sources, searchedA
102
102
  <div>
103
103
  <div className={'overflow-x-auto rounded-lg border'} style={{ borderColor: 'var(--icon-button-secondary)', backgroundColor: 'var(--content-card-background)' }}>
104
104
  <table className={'min-w-full'}>
105
+ <colgroup>
106
+ {headers.map((_, idx) => (
107
+ <col key={idx} style={idx === headers.length - 1 ? { width: '45%' } : {}} />
108
+ ))}
109
+ </colgroup>
105
110
  <thead className={''}>
106
111
  <tr>
107
112
  {headers.map(header => (
@@ -22,14 +22,14 @@ const FindingRow = ({ finding }: { finding: IpRiskAnalysisFinding }) => (
22
22
  const Section = ({ section }: { section: IpRiskSection }) => (
23
23
  <div className="py-3">
24
24
  <h4 className="text-lg font-semibold mb-2" style={{ color: 'var(--text-main)' }}>{section.title}</h4>
25
- <div className="space-y-3">
25
+ <ul className="list-disc pl-5 space-y-2">
26
26
  {section.items.map((item, idx) => (
27
- <div key={idx}>
28
- <p className="font-medium" style={{ color: 'var(--text-main)' }}>{item.label}:</p>
29
- <p className="text-sm" style={{ color: 'var(--text-secondary)' }}>{item.text}</p>
30
- </div>
27
+ <li key={idx} className="text-sm">
28
+ <span className="font-medium" style={{ color: 'var(--text-main)' }}>{item.label}:</span>{' '}
29
+ <span style={{ color: 'var(--text-secondary)' }}>{item.text}</span>
30
+ </li>
31
31
  ))}
32
- </div>
32
+ </ul>
33
33
  </div>
34
34
  );
35
35
 
@@ -59,23 +59,28 @@ export default function ProviderInsights({ platforms, insights }: ProviderInsigh
59
59
  {Icon && <Icon className={'h-6 w-6'} style={{ color: 'var(--text-secondary)' }} />}
60
60
  <h3 className={'font-semibold text-lg'} style={{ color: 'var(--text-main)' }}>{platform.name}</h3>
61
61
  </div>
62
- {observedDate && (
63
- <span className={'text-sm'} style={{ color: 'var(--text-secondary)' }}>
64
- Observed: {observedDate}
65
- </span>
66
- )}
62
+ <div className="flex flex-col items-end gap-1">
63
+ {platform.url && (
64
+ <span className={'text-sm'} style={{ color: 'var(--text-secondary)' }}>
65
+ Profile:{' '}
66
+ <a
67
+ href={platform.url}
68
+ target="_blank"
69
+ rel="noopener noreferrer"
70
+ className={'font-medium underline-offset-2 hover:underline'}
71
+ style={{ color: 'var(--icon-accent)' }}
72
+ >
73
+ {platform.handle || 'View Profile'}
74
+ </a>
75
+ </span>
76
+ )}
77
+ {observedDate && (
78
+ <span className={'text-sm'} style={{ color: 'var(--text-secondary)' }}>
79
+ Observed: {observedDate}
80
+ </span>
81
+ )}
82
+ </div>
67
83
  </div>
68
- {platform.url && (
69
- <a
70
- href={platform.url}
71
- target="_blank"
72
- rel="noopener noreferrer"
73
- className={'mt-2 inline-block text-sm font-medium underline-offset-2 hover:underline'}
74
- style={{ color: 'var(--icon-accent)' }}
75
- >
76
- {platform.handle || 'View Profile'}
77
- </a>
78
- )}
79
84
  </div>
80
85
 
81
86
  {/* Insights */}