nexus-shared 1.1.5 → 1.1.7
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 +8 -4
- package/src/api-services/preference-service.tsx +5 -0
- package/src/api-services/system-service.tsx +322 -0
- package/src/components/documents/button.tsx +136 -0
- package/src/components/documents/icon-box.tsx +92 -0
- package/src/components/documents/page-title.tsx +7 -0
- package/src/components/documents/tab-button.tsx +169 -0
- package/src/components/index.js +0 -0
- package/src/components/inputs/checkbox-input.tsx +66 -0
- package/src/components/inputs/input-box.tsx +45 -0
- package/src/components/inputs/input-element.tsx +65 -0
- package/src/components/inputs/input-form.tsx +50 -0
- package/src/components/inputs/input.tsx +181 -0
- package/src/components/inputs/number-input.tsx +108 -0
- package/src/components/inputs/radiobox-input.tsx +53 -0
- package/src/components/inputs/textarea-input.tsx +47 -0
- package/src/components/inputs/textbox-input.tsx +45 -0
- package/src/components/layouts/global-dialogbox.tsx +433 -0
- package/src/components/layouts/global-layout.tsx +63 -0
- package/src/components/layouts/layout-helpers.tsx +21 -0
- package/src/components/layouts/utility-menu.tsx +69 -0
- package/src/components/panels/theme-panel.tsx +44 -0
- package/src/helpers/bitwise-helpers.tsx +11 -0
- package/src/helpers/browser-helpers.tsx +71 -0
- package/src/helpers/datasource-helpers.tsx +99 -0
- package/src/helpers/element-helpers.tsx +57 -0
- package/src/helpers/input-helpers.tsx +24 -0
- package/src/helpers/string-helpers.tsx +28 -0
- package/src/helpers/utility-helpers.tsx +44 -0
- package/src/index.ts +67 -11
- package/src/interfaces/browser-interfaces.tsx +23 -0
- package/src/interfaces/button-interfaces.tsx +63 -0
- package/src/interfaces/datasource-interfaces.tsx +22 -0
- package/src/interfaces/datatable-interfaces.tsx +25 -0
- package/src/interfaces/dialogbox-interfaces.tsx +5 -0
- package/src/interfaces/http-interfaces.tsx +15 -0
- package/src/interfaces/icon-interfaces.tsx +126 -0
- package/src/interfaces/input-interfaces.tsx +360 -0
- package/src/interfaces/layout-interfaces.tsx +191 -0
- package/src/interfaces/menu-interfaces.tsx +36 -0
- package/src/interfaces/permission-interfaces.tsx +9 -0
- package/src/interfaces/storage-interfaces.tsx +3 -0
- package/src/interfaces/system-interfaces.tsx +22 -0
- package/src/interfaces/theme-interfaces.tsx +209 -0
- package/src/interfaces/type-interfaces.tsx +22 -0
- package/src/nexus-client.tsx +21 -0
- package/src/nexus.environments.tsx +34 -0
- package/src/services/loader-service.tsx +168 -0
- package/src/services/localstorage-service.tsx +43 -0
- package/src/services/theme-service.tsx +147 -0
- package/src/styles/nexus.animation.css +269 -0
- package/src/styles/nexus.core.css +119 -0
- package/src/styles/nexus.dialog.css +141 -0
- package/src/styles/nexus.icon.css +50 -0
- package/src/styles/nexus.input.css +207 -0
- package/src/styles/nexus.loader.css +11 -0
- package/src/styles/nexus.logic.css +18 -0
- package/src/styles/nexus.utility.css +347 -0
- package/src/client/index.ts +0 -1
- package/src/client/nexus-selectable-list.css +0 -131
- package/src/client/nexus-selectable-list.tsx +0 -111
- package/src/client.ts +0 -7
- package/src/interface.ts +0 -5
- package/src/interfaces/index.ts +0 -6
- package/src/interfaces/nexus-base.ts +0 -5
- package/src/interfaces/nexus-list.ts +0 -24
- package/src/server/index.ts +0 -1
- package/src/server/nexus-stat-list.css +0 -92
- package/src/server/nexus-stat-list.tsx +0 -46
- package/src/server.ts +0 -7
|
@@ -1,92 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
}
|