nexus-shared 1.1.3 → 1.1.5
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 +12 -50
- package/src/client/index.ts +1 -0
- package/src/client/nexus-selectable-list.css +131 -0
- package/src/client/nexus-selectable-list.tsx +111 -0
- package/src/client.ts +7 -0
- package/src/index.ts +11 -0
- package/src/interface.ts +5 -0
- package/src/interfaces/index.ts +6 -0
- package/src/interfaces/nexus-base.ts +5 -0
- package/src/interfaces/nexus-list.ts +24 -0
- package/src/server/index.ts +1 -0
- package/src/server/nexus-stat-list.css +92 -0
- package/src/server/nexus-stat-list.tsx +46 -0
- package/src/server.ts +7 -0
- package/USER-GUIDE.md +0 -175
- package/dist/index.cjs +0 -3002
- package/dist/index.cjs.map +0 -1
- package/dist/index.css +0 -975
- package/dist/index.css.map +0 -1
- package/dist/index.d.mts +0 -1011
- package/dist/index.d.ts +0 -1011
- package/dist/index.js +0 -2856
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,64 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexus-shared",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Nexus
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"module": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
3
|
+
"version": "1.1.5",
|
|
4
|
+
"description": "Nexus shared React components for Next.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": ["**/*.css"],
|
|
9
7
|
"exports": {
|
|
10
|
-
".":
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
"./styles.css": "./dist/index.css"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist",
|
|
19
|
-
"USER-GUIDE.md"
|
|
20
|
-
],
|
|
21
|
-
"sideEffects": [
|
|
22
|
-
"**/*.css",
|
|
23
|
-
"./src/load-env.ts",
|
|
24
|
-
"./dist/index.js",
|
|
25
|
-
"./dist/index.cjs"
|
|
26
|
-
],
|
|
27
|
-
"engines": {
|
|
28
|
-
"node": ">=24.15.0"
|
|
8
|
+
".": "./src/index.ts",
|
|
9
|
+
"./interface": "./src/interface.ts",
|
|
10
|
+
"./server": "./src/server.ts",
|
|
11
|
+
"./client": "./src/client.ts"
|
|
29
12
|
},
|
|
13
|
+
"files": ["src"],
|
|
30
14
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"dev": "tsup --watch",
|
|
33
|
-
"prepublishOnly": "npm run build"
|
|
34
|
-
},
|
|
35
|
-
"keywords": [
|
|
36
|
-
"nexus",
|
|
37
|
-
"react",
|
|
38
|
-
"components"
|
|
39
|
-
],
|
|
40
|
-
"author": "",
|
|
41
|
-
"license": "ISC",
|
|
42
|
-
"publishConfig": {
|
|
43
|
-
"access": "public",
|
|
44
|
-
"registry": "https://registry.npmjs.org/"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"dotenv": "^17.4.2"
|
|
15
|
+
"typecheck": "tsc --noEmit"
|
|
48
16
|
},
|
|
49
17
|
"peerDependencies": {
|
|
50
|
-
"
|
|
51
|
-
"react": "
|
|
52
|
-
"react-dom": ">=19.2.4"
|
|
18
|
+
"react": "19.2.4",
|
|
19
|
+
"react-dom": "19.2.4"
|
|
53
20
|
},
|
|
54
21
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^20",
|
|
56
22
|
"@types/react": "^19",
|
|
57
23
|
"@types/react-dom": "^19",
|
|
58
|
-
"next": "^16.2.6",
|
|
59
|
-
"react": "^19.2.6",
|
|
60
|
-
"react-dom": "^19.2.6",
|
|
61
|
-
"tsup": "^8.5.1",
|
|
62
24
|
"typescript": "^5"
|
|
63
25
|
}
|
|
64
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NexusSelectableList } from "./nexus-selectable-list";
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.nexus-selectable-list {
|
|
2
|
+
--nexus-select-bg: #12101a;
|
|
3
|
+
--nexus-select-surface: #1e1b28;
|
|
4
|
+
--nexus-select-border: #3d3654;
|
|
5
|
+
--nexus-select-accent: #a855f7;
|
|
6
|
+
--nexus-select-accent-dim: rgba(168, 85, 247, 0.15);
|
|
7
|
+
--nexus-select-text: #f4f0fa;
|
|
8
|
+
--nexus-select-muted: #9d94b0;
|
|
9
|
+
|
|
10
|
+
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
11
|
+
background: var(--nexus-select-bg);
|
|
12
|
+
border: 1px solid var(--nexus-select-border);
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
padding: 1.25rem 1.5rem;
|
|
15
|
+
color: var(--nexus-select-text);
|
|
16
|
+
max-width: 32rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.nexus-selectable-list__header {
|
|
20
|
+
margin-bottom: 1rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nexus-selectable-list__title {
|
|
24
|
+
margin: 0 0 0.75rem;
|
|
25
|
+
font-size: 1.125rem;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
letter-spacing: -0.02em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nexus-selectable-list__search {
|
|
31
|
+
width: 100%;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
padding: 0.625rem 0.875rem;
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
color: var(--nexus-select-text);
|
|
36
|
+
background: var(--nexus-select-surface);
|
|
37
|
+
border: 1px solid var(--nexus-select-border);
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
outline: none;
|
|
40
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nexus-selectable-list__search::placeholder {
|
|
44
|
+
color: var(--nexus-select-muted);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nexus-selectable-list__search:focus {
|
|
48
|
+
border-color: var(--nexus-select-accent);
|
|
49
|
+
box-shadow: 0 0 0 3px var(--nexus-select-accent-dim);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.nexus-selectable-list__meta {
|
|
53
|
+
margin: 0.5rem 0 0;
|
|
54
|
+
font-size: 0.75rem;
|
|
55
|
+
color: var(--nexus-select-muted);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nexus-selectable-list__list {
|
|
59
|
+
list-style: none;
|
|
60
|
+
margin: 0;
|
|
61
|
+
padding: 0;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: 0.375rem;
|
|
65
|
+
max-height: 16rem;
|
|
66
|
+
overflow-y: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nexus-selectable-list__item {
|
|
70
|
+
display: block;
|
|
71
|
+
width: 100%;
|
|
72
|
+
text-align: left;
|
|
73
|
+
padding: 0.75rem 1rem;
|
|
74
|
+
font: inherit;
|
|
75
|
+
color: inherit;
|
|
76
|
+
background: var(--nexus-select-surface);
|
|
77
|
+
border: 1px solid transparent;
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
transition:
|
|
81
|
+
background 0.15s ease,
|
|
82
|
+
border-color 0.15s ease;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nexus-selectable-list__item:hover {
|
|
86
|
+
border-color: var(--nexus-select-border);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nexus-selectable-list__item--selected {
|
|
90
|
+
background: var(--nexus-select-accent-dim);
|
|
91
|
+
border-color: var(--nexus-select-accent);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.nexus-selectable-list__label {
|
|
95
|
+
display: block;
|
|
96
|
+
font-size: 0.9375rem;
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nexus-selectable-list__description {
|
|
101
|
+
display: block;
|
|
102
|
+
margin-top: 0.2rem;
|
|
103
|
+
font-size: 0.8125rem;
|
|
104
|
+
color: var(--nexus-select-muted);
|
|
105
|
+
line-height: 1.35;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nexus-selectable-list__empty {
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding: 1.25rem;
|
|
111
|
+
text-align: center;
|
|
112
|
+
font-size: 0.875rem;
|
|
113
|
+
color: var(--nexus-select-muted);
|
|
114
|
+
background: var(--nexus-select-surface);
|
|
115
|
+
border-radius: 8px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.nexus-selectable-list__detail {
|
|
119
|
+
margin-top: 1rem;
|
|
120
|
+
padding: 0.875rem 1rem;
|
|
121
|
+
background: var(--nexus-select-surface);
|
|
122
|
+
border-left: 3px solid var(--nexus-select-accent);
|
|
123
|
+
border-radius: 0 8px 8px 0;
|
|
124
|
+
font-size: 0.8125rem;
|
|
125
|
+
line-height: 1.5;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.nexus-selectable-list__detail strong {
|
|
129
|
+
color: var(--nexus-select-accent);
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import type { NexusSelectableListProps } from "../interfaces/nexus-list";
|
|
5
|
+
import "./nexus-selectable-list.css";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Client component — filterable list with selection and detail preview.
|
|
9
|
+
*/
|
|
10
|
+
export function NexusSelectableList({
|
|
11
|
+
title,
|
|
12
|
+
items,
|
|
13
|
+
placeholder = "Filter items…",
|
|
14
|
+
emptyMessage = "No matching items.",
|
|
15
|
+
className,
|
|
16
|
+
}: NexusSelectableListProps) {
|
|
17
|
+
const [query, setQuery] = useState("");
|
|
18
|
+
const [selectedId, setSelectedId] = useState<string | null>(
|
|
19
|
+
items[0]?.id ?? null,
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const filtered = useMemo(() => {
|
|
23
|
+
const q = query.trim().toLowerCase();
|
|
24
|
+
if (!q) return items;
|
|
25
|
+
return items.filter(
|
|
26
|
+
(item) =>
|
|
27
|
+
item.label.toLowerCase().includes(q) ||
|
|
28
|
+
item.description?.toLowerCase().includes(q),
|
|
29
|
+
);
|
|
30
|
+
}, [items, query]);
|
|
31
|
+
|
|
32
|
+
const selected = items.find((item) => item.id === selectedId) ?? null;
|
|
33
|
+
const rootClass = className
|
|
34
|
+
? `nexus-selectable-list ${className}`
|
|
35
|
+
: "nexus-selectable-list";
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<section
|
|
39
|
+
className={rootClass}
|
|
40
|
+
aria-labelledby="nexus-selectable-list-title"
|
|
41
|
+
>
|
|
42
|
+
<div className="nexus-selectable-list__header">
|
|
43
|
+
<h2 id="nexus-selectable-list-title" className="nexus-selectable-list__title">
|
|
44
|
+
{title}
|
|
45
|
+
</h2>
|
|
46
|
+
<input
|
|
47
|
+
type="search"
|
|
48
|
+
className="nexus-selectable-list__search"
|
|
49
|
+
placeholder={placeholder}
|
|
50
|
+
value={query}
|
|
51
|
+
onChange={(e) => setQuery(e.target.value)}
|
|
52
|
+
aria-label={`Filter ${title}`}
|
|
53
|
+
/>
|
|
54
|
+
<p className="nexus-selectable-list__meta">
|
|
55
|
+
Showing {filtered.length} of {items.length}
|
|
56
|
+
</p>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
{filtered.length === 0 ? (
|
|
60
|
+
<p className="nexus-selectable-list__empty">{emptyMessage}</p>
|
|
61
|
+
) : (
|
|
62
|
+
<ul
|
|
63
|
+
className="nexus-selectable-list__list"
|
|
64
|
+
role="listbox"
|
|
65
|
+
aria-label={title}
|
|
66
|
+
>
|
|
67
|
+
{filtered.map((item) => {
|
|
68
|
+
const isSelected = item.id === selectedId;
|
|
69
|
+
const itemClass = isSelected
|
|
70
|
+
? "nexus-selectable-list__item nexus-selectable-list__item--selected"
|
|
71
|
+
: "nexus-selectable-list__item";
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<li key={item.id} role="presentation">
|
|
75
|
+
<button
|
|
76
|
+
type="button"
|
|
77
|
+
role="option"
|
|
78
|
+
aria-selected={isSelected}
|
|
79
|
+
className={itemClass}
|
|
80
|
+
onClick={() => setSelectedId(item.id)}
|
|
81
|
+
>
|
|
82
|
+
<span className="nexus-selectable-list__label">
|
|
83
|
+
{item.label}
|
|
84
|
+
</span>
|
|
85
|
+
{item.description ? (
|
|
86
|
+
<span className="nexus-selectable-list__description">
|
|
87
|
+
{item.description}
|
|
88
|
+
</span>
|
|
89
|
+
) : null}
|
|
90
|
+
</button>
|
|
91
|
+
</li>
|
|
92
|
+
);
|
|
93
|
+
})}
|
|
94
|
+
</ul>
|
|
95
|
+
)}
|
|
96
|
+
|
|
97
|
+
{selected ? (
|
|
98
|
+
<div className="nexus-selectable-list__detail">
|
|
99
|
+
<strong>{selected.label}</strong>
|
|
100
|
+
{selected.description ? <> — {selected.description}</> : null}
|
|
101
|
+
{selected.value !== undefined && selected.value !== null ? (
|
|
102
|
+
<>
|
|
103
|
+
<br />
|
|
104
|
+
Value: <strong>{selected.value}</strong>
|
|
105
|
+
</>
|
|
106
|
+
) : null}
|
|
107
|
+
</div>
|
|
108
|
+
) : null}
|
|
109
|
+
</section>
|
|
110
|
+
);
|
|
111
|
+
}
|
package/src/client.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified entry — re-exports interface, server, and client modules.
|
|
3
|
+
*
|
|
4
|
+
* Prefer subpath imports in client-only code:
|
|
5
|
+
* - `@nexus/core/interface`
|
|
6
|
+
* - `@nexus/core/server`
|
|
7
|
+
* - `@nexus/core/client`
|
|
8
|
+
*/
|
|
9
|
+
export * from "./interface";
|
|
10
|
+
export * from "./server";
|
|
11
|
+
export * from "./client";
|
package/src/interface.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Single row/item used by Nexus list components */
|
|
2
|
+
export interface NexusListItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Props for the server-rendered stat list */
|
|
10
|
+
export interface NexusStatListProps {
|
|
11
|
+
title: string;
|
|
12
|
+
items: NexusListItem[];
|
|
13
|
+
emptyMessage?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** Props for the client-side selectable & filterable list */
|
|
18
|
+
export interface NexusSelectableListProps {
|
|
19
|
+
title: string;
|
|
20
|
+
items: NexusListItem[];
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
emptyMessage?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NexusStatList } from "./nexus-stat-list";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.nexus-stat-list {
|
|
2
|
+
--nexus-stat-bg: #0f1419;
|
|
3
|
+
--nexus-stat-surface: #1a2332;
|
|
4
|
+
--nexus-stat-border: #2d3a4f;
|
|
5
|
+
--nexus-stat-accent: #3b82f6;
|
|
6
|
+
--nexus-stat-text: #e8edf4;
|
|
7
|
+
--nexus-stat-muted: #8b9cb3;
|
|
8
|
+
|
|
9
|
+
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
10
|
+
background: var(--nexus-stat-bg);
|
|
11
|
+
border: 1px solid var(--nexus-stat-border);
|
|
12
|
+
border-radius: 12px;
|
|
13
|
+
padding: 1.25rem 1.5rem;
|
|
14
|
+
color: var(--nexus-stat-text);
|
|
15
|
+
max-width: 28rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nexus-stat-list__title {
|
|
19
|
+
margin: 0 0 1rem;
|
|
20
|
+
font-size: 1.125rem;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
letter-spacing: -0.02em;
|
|
23
|
+
color: var(--nexus-stat-text);
|
|
24
|
+
border-bottom: 2px solid var(--nexus-stat-accent);
|
|
25
|
+
padding-bottom: 0.5rem;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nexus-stat-list__list {
|
|
30
|
+
list-style: none;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: 0.5rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.nexus-stat-list__item {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: space-between;
|
|
42
|
+
gap: 1rem;
|
|
43
|
+
padding: 0.75rem 1rem;
|
|
44
|
+
background: var(--nexus-stat-surface);
|
|
45
|
+
border-radius: 8px;
|
|
46
|
+
border: 1px solid transparent;
|
|
47
|
+
transition: border-color 0.15s ease;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nexus-stat-list__item:hover {
|
|
51
|
+
border-color: var(--nexus-stat-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nexus-stat-list__label-group {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 0.15rem;
|
|
58
|
+
min-width: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nexus-stat-list__label {
|
|
62
|
+
font-size: 0.9375rem;
|
|
63
|
+
font-weight: 500;
|
|
64
|
+
color: var(--nexus-stat-text);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nexus-stat-list__description {
|
|
68
|
+
font-size: 0.8125rem;
|
|
69
|
+
color: var(--nexus-stat-muted);
|
|
70
|
+
line-height: 1.35;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.nexus-stat-list__value {
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
font-size: 0.875rem;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
color: var(--nexus-stat-accent);
|
|
78
|
+
background: rgba(59, 130, 246, 0.12);
|
|
79
|
+
padding: 0.25rem 0.625rem;
|
|
80
|
+
border-radius: 6px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nexus-stat-list__empty {
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding: 1.5rem;
|
|
86
|
+
text-align: center;
|
|
87
|
+
font-size: 0.875rem;
|
|
88
|
+
color: var(--nexus-stat-muted);
|
|
89
|
+
background: var(--nexus-stat-surface);
|
|
90
|
+
border-radius: 8px;
|
|
91
|
+
border: 1px dashed var(--nexus-stat-border);
|
|
92
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { NexusStatListProps } from "../interfaces/nexus-list";
|
|
2
|
+
import "./nexus-stat-list.css";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Server component — renders a read-only list of labeled items with optional values.
|
|
6
|
+
*/
|
|
7
|
+
export function NexusStatList({
|
|
8
|
+
title,
|
|
9
|
+
items,
|
|
10
|
+
emptyMessage = "No items to display.",
|
|
11
|
+
className,
|
|
12
|
+
}: NexusStatListProps) {
|
|
13
|
+
const rootClass = className
|
|
14
|
+
? `nexus-stat-list ${className}`
|
|
15
|
+
: "nexus-stat-list";
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<section className={rootClass} aria-labelledby="nexus-stat-list-title">
|
|
19
|
+
<h2 id="nexus-stat-list-title" className="nexus-stat-list__title">
|
|
20
|
+
{title}
|
|
21
|
+
</h2>
|
|
22
|
+
|
|
23
|
+
{items.length === 0 ? (
|
|
24
|
+
<p className="nexus-stat-list__empty">{emptyMessage}</p>
|
|
25
|
+
) : (
|
|
26
|
+
<ul className="nexus-stat-list__list">
|
|
27
|
+
{items.map((item) => (
|
|
28
|
+
<li key={item.id} className="nexus-stat-list__item">
|
|
29
|
+
<div className="nexus-stat-list__label-group">
|
|
30
|
+
<span className="nexus-stat-list__label">{item.label}</span>
|
|
31
|
+
{item.description ? (
|
|
32
|
+
<span className="nexus-stat-list__description">
|
|
33
|
+
{item.description}
|
|
34
|
+
</span>
|
|
35
|
+
) : null}
|
|
36
|
+
</div>
|
|
37
|
+
{item.value !== undefined && item.value !== null ? (
|
|
38
|
+
<span className="nexus-stat-list__value">{item.value}</span>
|
|
39
|
+
) : null}
|
|
40
|
+
</li>
|
|
41
|
+
))}
|
|
42
|
+
</ul>
|
|
43
|
+
)}
|
|
44
|
+
</section>
|
|
45
|
+
);
|
|
46
|
+
}
|