nirs4all-ui 0.1.8 → 0.1.10
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/README.md +18 -8
- package/assets/brands/nirs4all/horizontal.svg +4 -4
- package/assets/brands/nirs4all/icon.svg +3 -3
- package/assets/brands/nirs4all/stacked.svg +4 -4
- package/assets/brands/nirs4all-core/horizontal.svg +4 -4
- package/assets/brands/nirs4all-core/icon.svg +4 -4
- package/assets/brands/nirs4all-core/stacked.svg +4 -4
- package/assets/brands/nirs4all-providers/horizontal.svg +4 -4
- package/assets/brands/nirs4all-providers/icon.svg +4 -4
- package/assets/brands/nirs4all-providers/stacked.svg +4 -4
- package/assets/brands/nirs4all-ui/horizontal.svg +2 -2
- package/assets/brands/nirs4all-ui/icon.svg +3 -3
- package/assets/brands/nirs4all-ui/stacked.svg +2 -2
- package/assets/theme.css +1 -1
- package/dist/brand/index.d.ts +14 -14
- package/dist/brand/index.d.ts.map +1 -1
- package/dist/brand/index.js +16 -14
- package/dist/brand/index.js.map +1 -1
- package/dist/styles/index.d.ts +13 -1
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +14 -0
- package/dist/styles/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -20,14 +20,16 @@ spectra motion asset.
|
|
|
20
20
|
| `runtime` | `nirs4all-ui/runtime` | Runtime/result status display tokens, busy-state predicates, progress projection, engine metadata summaries, diagnostics, and native-result affordances. |
|
|
21
21
|
| `dataset` | `nirs4all-ui/dataset` | Dataset preview contracts, counts, split summaries, spectral ranges, task labels, badges, and stats. |
|
|
22
22
|
| `components` | `nirs4all-ui/components` | Stateless React components that render shared runtime, diagnostic, and metric affordances. |
|
|
23
|
+
| `lab` | `nirs4all-ui/lab` | Quality/lab decision, sample lifecycle, health, model report, worklist, and budget display contracts plus presentational components. |
|
|
24
|
+
| `datasetBuilder` | `nirs4all-ui/datasetBuilder` | Multisource dataset-builder wizard components and pure dataset-config helpers. |
|
|
23
25
|
| `brand` | `nirs4all-ui/brand` | Ecosystem brand definitions, stable asset paths, palettes, and deterministic SVG generators. |
|
|
24
26
|
| `styles` | `nirs4all-ui/styles` | Default theme tokens, CSS/motion asset manifests, and CSS variable helpers. |
|
|
25
|
-
| `assets` | `nirs4all-ui/assets/*` | Package logo kit, ecosystem brand SVGs, default CSS, and animated NIR spectra asset. |
|
|
27
|
+
| `assets` | `nirs4all-ui/assets/*` | Package logo kit, ecosystem brand SVGs, default CSS, dataset-builder CSS, quality/lab theme CSS, and animated NIR spectra asset. |
|
|
26
28
|
|
|
27
29
|
The root export also exposes namespace barrels:
|
|
28
30
|
|
|
29
31
|
```ts
|
|
30
|
-
import { brand, dataset, runtime, score, styles } from "nirs4all-ui";
|
|
32
|
+
import { brand, dataset, datasetBuilder, lab, runtime, score, styles } from "nirs4all-ui";
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
Prefer domain imports when a consumer only needs one area:
|
|
@@ -36,6 +38,8 @@ Prefer domain imports when a consumer only needs one area:
|
|
|
36
38
|
import { canonicalMetricKey, formatMetricValue } from "nirs4all-ui/score";
|
|
37
39
|
import { buildDatasetPreview } from "nirs4all-ui/dataset";
|
|
38
40
|
import { buildRuntimeResultStatusView } from "nirs4all-ui/runtime";
|
|
41
|
+
import { DatasetBuilder } from "nirs4all-ui/datasetBuilder";
|
|
42
|
+
import { DecisionBadge } from "nirs4all-ui/lab";
|
|
39
43
|
import { generateNirs4allBrandSvg } from "nirs4all-ui/brand";
|
|
40
44
|
import { getNirs4allStyleAsset } from "nirs4all-ui/styles";
|
|
41
45
|
import { MetricValueBadge, RuntimeEngineBadge } from "nirs4all-ui/components";
|
|
@@ -45,10 +49,14 @@ Static assets are published through the existing `nirs4all-ui/assets/*` export:
|
|
|
45
49
|
|
|
46
50
|
```css
|
|
47
51
|
@import "nirs4all-ui/assets/styles/nirs4all-default.css";
|
|
52
|
+
@import "nirs4all-ui/assets/datasetBuilder.css";
|
|
53
|
+
@import "nirs4all-ui/assets/theme.css";
|
|
48
54
|
```
|
|
49
55
|
|
|
50
56
|
```ts
|
|
51
57
|
const css = getNirs4allStyleAsset("default-theme");
|
|
58
|
+
const builderCss = getNirs4allStyleAsset("dataset-builder");
|
|
59
|
+
const labTheme = getNirs4allStyleAsset("quality-lab-theme");
|
|
52
60
|
const animatedIcon = generateNirs4allBrandSvg("nirs4all-ui", {
|
|
53
61
|
variant: "icon",
|
|
54
62
|
animated: true,
|
|
@@ -75,12 +83,14 @@ npm run site:build
|
|
|
75
83
|
```
|
|
76
84
|
|
|
77
85
|
`site/src/App.tsx` renders reusable React components separately from the
|
|
78
|
-
runtime, score, brand, style, and asset inventories. `site/public/`
|
|
86
|
+
lab, dataset-builder, runtime, score, brand, style, and asset inventories. `site/public/`
|
|
79
87
|
intentionally carries the Pages publication files (`logo.svg`, `favicon.ico`,
|
|
80
88
|
`favicon.svg`, `robots.txt`, `sitemap.xml`, and `site.webmanifest`). The site
|
|
81
89
|
build also copies the package brand kit to namespaced GitHub Pages URLs under
|
|
82
90
|
`assets/brand/nirs4all-ui/` and publishes the reusable visual system under
|
|
83
|
-
`assets/brands/`, `assets/styles/`, and `assets/motion
|
|
91
|
+
`assets/brands/`, `assets/styles/`, and `assets/motion/`, while package-level
|
|
92
|
+
CSS such as `assets/datasetBuilder.css` and `assets/theme.css` remains
|
|
93
|
+
available through the npm asset export.
|
|
84
94
|
The npm package keeps the same files available through the
|
|
85
95
|
`nirs4all-ui/assets/*` export. Production Pages is currently served from the
|
|
86
96
|
GitHub project-page path with the default `/nirs4all-ui/` Vite base. When a
|
|
@@ -88,7 +98,7 @@ dedicated subdomain such as `ui.nirs4all.org` is enabled, switch the Pages
|
|
|
88
98
|
workflow to `NIRS4ALL_UI_BASE=/` and add `site/public/CNAME`.
|
|
89
99
|
|
|
90
100
|
`site/src/App.test.tsx` is the focused hardening check for the showcase: it
|
|
91
|
-
verifies that every public React component
|
|
92
|
-
the mirrored brand/logo, crawler metadata,
|
|
93
|
-
|
|
94
|
-
asset set.
|
|
101
|
+
verifies that every public React component, lab, and dataset-builder export
|
|
102
|
+
appears in the page and that the mirrored brand/logo, crawler metadata,
|
|
103
|
+
manifest, default styles, package CSS assets, motion asset, reusable brand kit,
|
|
104
|
+
and canonical URLs stay in sync with the packaged asset set.
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<title id="nirs4all-horizontal-title">NIRS4ALL</title>
|
|
3
3
|
<rect width="520" height="132" rx="22" fill="#ffffff"/>
|
|
4
4
|
<g transform="translate(24 18)">
|
|
5
|
-
<rect width="96" height="96" rx="20" fill="#
|
|
6
|
-
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#
|
|
7
|
-
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#
|
|
8
|
-
<circle cx="78" cy="28" r="8" fill="#
|
|
5
|
+
<rect width="96" height="96" rx="20" fill="#058E96" opacity=".12"/>
|
|
6
|
+
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#058E96" stroke-width="8" stroke-linecap="round"/>
|
|
7
|
+
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#00A5D2" stroke-width="5" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="78" cy="28" r="8" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="146" y="61" fill="#0f172a" font-family="Inter, Arial, sans-serif" font-size="34" font-weight="800">NIRS4ALL</text>
|
|
11
11
|
<text x="146" y="92" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="16" font-weight="600">Ecosystem umbrella</text>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-labelledby="nirs4all-icon-title">
|
|
2
2
|
<title id="nirs4all-icon-title">NIRS4ALL</title>
|
|
3
3
|
<rect width="128" height="128" rx="24" fill="#ffffff"/>
|
|
4
|
-
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#
|
|
5
|
-
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#
|
|
6
|
-
<circle cx="98" cy="39" r="10" fill="#
|
|
4
|
+
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#058E96" stroke-width="9" stroke-linecap="round"/>
|
|
5
|
+
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#00A5D2" stroke-width="5" stroke-linecap="round" opacity=".82"/>
|
|
6
|
+
<circle cx="98" cy="39" r="10" fill="#E9362D"/>
|
|
7
7
|
<text x="64" y="112" fill="#0f172a" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">n4a</text>
|
|
8
8
|
</svg>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<title id="nirs4all-stacked-title">NIRS4ALL</title>
|
|
3
3
|
<rect width="280" height="236" rx="24" fill="#ffffff"/>
|
|
4
4
|
<g transform="translate(80 26)">
|
|
5
|
-
<rect width="120" height="120" rx="28" fill="#
|
|
6
|
-
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#
|
|
7
|
-
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#
|
|
8
|
-
<circle cx="96" cy="38" r="10" fill="#
|
|
5
|
+
<rect width="120" height="120" rx="28" fill="#058E96" opacity=".12"/>
|
|
6
|
+
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#058E96" stroke-width="10" stroke-linecap="round"/>
|
|
7
|
+
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#00A5D2" stroke-width="6" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="96" cy="38" r="10" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="140" y="178" fill="#0f172a" font-family="Inter, Arial, sans-serif" font-size="28" font-weight="800" text-anchor="middle">NIRS4ALL</text>
|
|
11
11
|
<text x="140" y="205" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="14" font-weight="600" text-anchor="middle">Ecosystem umbrella</text>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<title id="nirs4all-core-horizontal-title">nirs4all-core</title>
|
|
3
3
|
<rect width="520" height="132" rx="22" fill="#ffffff"/>
|
|
4
4
|
<g transform="translate(24 18)">
|
|
5
|
-
<rect width="96" height="96" rx="20" fill="#
|
|
6
|
-
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#
|
|
7
|
-
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#
|
|
8
|
-
<circle cx="78" cy="28" r="8" fill="#
|
|
5
|
+
<rect width="96" height="96" rx="20" fill="#E9362D" opacity=".12"/>
|
|
6
|
+
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#E9362D" stroke-width="8" stroke-linecap="round"/>
|
|
7
|
+
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#058E96" stroke-width="5" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="78" cy="28" r="8" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="146" y="61" fill="#10233a" font-family="Inter, Arial, sans-serif" font-size="34" font-weight="800">nirs4all-core</text>
|
|
11
11
|
<text x="146" y="92" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="16" font-weight="600">Portable aggregate runtime</text>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-labelledby="nirs4all-core-icon-title">
|
|
2
2
|
<title id="nirs4all-core-icon-title">nirs4all-core</title>
|
|
3
3
|
<rect width="128" height="128" rx="24" fill="#ffffff"/>
|
|
4
|
-
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#
|
|
5
|
-
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#
|
|
6
|
-
<circle cx="98" cy="39" r="10" fill="#
|
|
7
|
-
<text x="64" y="112" fill="#10233a" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">
|
|
4
|
+
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#E9362D" stroke-width="9" stroke-linecap="round"/>
|
|
5
|
+
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#058E96" stroke-width="5" stroke-linecap="round" opacity=".82"/>
|
|
6
|
+
<circle cx="98" cy="39" r="10" fill="#E9362D"/>
|
|
7
|
+
<text x="64" y="112" fill="#10233a" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">n4o</text>
|
|
8
8
|
</svg>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<title id="nirs4all-core-stacked-title">nirs4all-core</title>
|
|
3
3
|
<rect width="280" height="236" rx="24" fill="#ffffff"/>
|
|
4
4
|
<g transform="translate(80 26)">
|
|
5
|
-
<rect width="120" height="120" rx="28" fill="#
|
|
6
|
-
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#
|
|
7
|
-
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#
|
|
8
|
-
<circle cx="96" cy="38" r="10" fill="#
|
|
5
|
+
<rect width="120" height="120" rx="28" fill="#E9362D" opacity=".12"/>
|
|
6
|
+
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#E9362D" stroke-width="10" stroke-linecap="round"/>
|
|
7
|
+
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#058E96" stroke-width="6" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="96" cy="38" r="10" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="140" y="178" fill="#10233a" font-family="Inter, Arial, sans-serif" font-size="28" font-weight="800" text-anchor="middle">nirs4all-core</text>
|
|
11
11
|
<text x="140" y="205" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="14" font-weight="600" text-anchor="middle">Portable aggregate runtime</text>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<title id="nirs4all-providers-horizontal-title">nirs4all-providers</title>
|
|
3
3
|
<rect width="520" height="132" rx="22" fill="#ffffff"/>
|
|
4
4
|
<g transform="translate(24 18)">
|
|
5
|
-
<rect width="96" height="96" rx="20" fill="#
|
|
6
|
-
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#
|
|
7
|
-
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#
|
|
8
|
-
<circle cx="78" cy="28" r="8" fill="#
|
|
5
|
+
<rect width="96" height="96" rx="20" fill="#D946EF" opacity=".12"/>
|
|
6
|
+
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#D946EF" stroke-width="8" stroke-linecap="round"/>
|
|
7
|
+
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#058E96" stroke-width="5" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="78" cy="28" r="8" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="146" y="61" fill="#2e1065" font-family="Inter, Arial, sans-serif" font-size="34" font-weight="800">nirs4all-providers</text>
|
|
11
11
|
<text x="146" y="92" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="16" font-weight="600">Soft-import provider bridge</text>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-labelledby="nirs4all-providers-icon-title">
|
|
2
2
|
<title id="nirs4all-providers-icon-title">nirs4all-providers</title>
|
|
3
3
|
<rect width="128" height="128" rx="24" fill="#ffffff"/>
|
|
4
|
-
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#
|
|
5
|
-
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#
|
|
6
|
-
<circle cx="98" cy="39" r="10" fill="#
|
|
7
|
-
<text x="64" y="112" fill="#2e1065" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">
|
|
4
|
+
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#D946EF" stroke-width="9" stroke-linecap="round"/>
|
|
5
|
+
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#058E96" stroke-width="5" stroke-linecap="round" opacity=".82"/>
|
|
6
|
+
<circle cx="98" cy="39" r="10" fill="#E9362D"/>
|
|
7
|
+
<text x="64" y="112" fill="#2e1065" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">n4v</text>
|
|
8
8
|
</svg>
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<title id="nirs4all-providers-stacked-title">nirs4all-providers</title>
|
|
3
3
|
<rect width="280" height="236" rx="24" fill="#ffffff"/>
|
|
4
4
|
<g transform="translate(80 26)">
|
|
5
|
-
<rect width="120" height="120" rx="28" fill="#
|
|
6
|
-
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#
|
|
7
|
-
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#
|
|
8
|
-
<circle cx="96" cy="38" r="10" fill="#
|
|
5
|
+
<rect width="120" height="120" rx="28" fill="#D946EF" opacity=".12"/>
|
|
6
|
+
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#D946EF" stroke-width="10" stroke-linecap="round"/>
|
|
7
|
+
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#058E96" stroke-width="6" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="96" cy="38" r="10" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="140" y="178" fill="#2e1065" font-family="Inter, Arial, sans-serif" font-size="28" font-weight="800" text-anchor="middle">nirs4all-providers</text>
|
|
11
11
|
<text x="140" y="205" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="14" font-weight="600" text-anchor="middle">Soft-import provider bridge</text>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<g transform="translate(24 18)">
|
|
5
5
|
<rect width="96" height="96" rx="20" fill="#2563eb" opacity=".12"/>
|
|
6
6
|
<path d="M14 58C25 28 37 28 49 54s24 26 40-15" fill="none" stroke="#2563eb" stroke-width="8" stroke-linecap="round"/>
|
|
7
|
-
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#
|
|
8
|
-
<circle cx="78" cy="28" r="8" fill="#
|
|
7
|
+
<path d="M14 72C29 58 39 59 53 72s25 14 37-2" fill="none" stroke="#058E96" stroke-width="5" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="78" cy="28" r="8" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="146" y="61" fill="#172554" font-family="Inter, Arial, sans-serif" font-size="34" font-weight="800">nirs4all-ui</text>
|
|
11
11
|
<text x="146" y="92" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="16" font-weight="600">Reusable visual system</text>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<title id="nirs4all-ui-icon-title">nirs4all-ui</title>
|
|
3
3
|
<rect width="128" height="128" rx="24" fill="#ffffff"/>
|
|
4
4
|
<path d="M20 78C31 45 44 44 58 70s26 25 50-20" fill="none" stroke="#2563eb" stroke-width="9" stroke-linecap="round"/>
|
|
5
|
-
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#
|
|
6
|
-
<circle cx="98" cy="39" r="10" fill="#
|
|
7
|
-
<text x="64" y="112" fill="#172554" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">
|
|
5
|
+
<path d="M20 90C36 74 48 74 64 89s29 17 44-4" fill="none" stroke="#058E96" stroke-width="5" stroke-linecap="round" opacity=".82"/>
|
|
6
|
+
<circle cx="98" cy="39" r="10" fill="#E9362D"/>
|
|
7
|
+
<text x="64" y="112" fill="#172554" font-family="Inter, Arial, sans-serif" font-size="18" font-weight="800" text-anchor="middle">n4u</text>
|
|
8
8
|
</svg>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<g transform="translate(80 26)">
|
|
5
5
|
<rect width="120" height="120" rx="28" fill="#2563eb" opacity=".12"/>
|
|
6
6
|
<path d="M18 73C32 36 47 35 64 68s32 33 56-18" fill="none" stroke="#2563eb" stroke-width="10" stroke-linecap="round"/>
|
|
7
|
-
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#
|
|
8
|
-
<circle cx="96" cy="38" r="10" fill="#
|
|
7
|
+
<path d="M18 91C37 72 51 74 68 91s35 18 52-3" fill="none" stroke="#058E96" stroke-width="6" stroke-linecap="round"/>
|
|
8
|
+
<circle cx="96" cy="38" r="10" fill="#E9362D"/>
|
|
9
9
|
</g>
|
|
10
10
|
<text x="140" y="178" fill="#172554" font-family="Inter, Arial, sans-serif" font-size="28" font-weight="800" text-anchor="middle">nirs4all-ui</text>
|
|
11
11
|
<text x="140" y="205" fill="#475569" font-family="Inter, Arial, sans-serif" font-size="14" font-weight="600" text-anchor="middle">Reusable visual system</text>
|
package/assets/theme.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
--surface: #ffffff; --border: #e2e8f0; --border-warm: #e8e2d3;
|
|
30
30
|
--text: #0f172a; --text-2: #475569; --text-3: #64748b;
|
|
31
31
|
|
|
32
|
-
/* Semantic aliases
|
|
32
|
+
/* Semantic aliases shared by Studio/Web hosts */
|
|
33
33
|
--primary: var(--teal); --primary-hover: var(--teal-d);
|
|
34
34
|
--success: var(--green); --warning: var(--amber); --destructive: var(--rose);
|
|
35
35
|
--chart-1: var(--teal); --chart-2: var(--cyan); --chart-3: var(--indigo);
|
package/dist/brand/index.d.ts
CHANGED
|
@@ -44,9 +44,9 @@ export declare const NIRS4ALL_BRANDS: readonly [{
|
|
|
44
44
|
readonly role: "Ecosystem umbrella";
|
|
45
45
|
readonly description: "Shared identity for NIRS4ALL applications, docs, releases, and custom hosts.";
|
|
46
46
|
readonly palette: {
|
|
47
|
-
readonly primary: "#
|
|
48
|
-
readonly secondary: "#
|
|
49
|
-
readonly accent: "#
|
|
47
|
+
readonly primary: "#058E96";
|
|
48
|
+
readonly secondary: "#00A5D2";
|
|
49
|
+
readonly accent: "#E9362D";
|
|
50
50
|
readonly dark: "#0f172a";
|
|
51
51
|
readonly surface: "#ffffff";
|
|
52
52
|
};
|
|
@@ -59,14 +59,14 @@ export declare const NIRS4ALL_BRANDS: readonly [{
|
|
|
59
59
|
}, {
|
|
60
60
|
readonly id: "nirs4all-core";
|
|
61
61
|
readonly name: "nirs4all-core";
|
|
62
|
-
readonly shortName: "
|
|
62
|
+
readonly shortName: "n4o";
|
|
63
63
|
readonly packageName: "nirs4all";
|
|
64
64
|
readonly role: "Portable aggregate runtime";
|
|
65
65
|
readonly description: "Low-level aggregate used by native, Python, R, WASM, Rust, MATLAB, and custom hosts.";
|
|
66
66
|
readonly palette: {
|
|
67
|
-
readonly primary: "#
|
|
68
|
-
readonly secondary: "#
|
|
69
|
-
readonly accent: "#
|
|
67
|
+
readonly primary: "#E9362D";
|
|
68
|
+
readonly secondary: "#058E96";
|
|
69
|
+
readonly accent: "#E9362D";
|
|
70
70
|
readonly dark: "#10233a";
|
|
71
71
|
readonly surface: "#ffffff";
|
|
72
72
|
};
|
|
@@ -79,14 +79,14 @@ export declare const NIRS4ALL_BRANDS: readonly [{
|
|
|
79
79
|
}, {
|
|
80
80
|
readonly id: "nirs4all-ui";
|
|
81
81
|
readonly name: "nirs4all-ui";
|
|
82
|
-
readonly shortName: "
|
|
82
|
+
readonly shortName: "n4u";
|
|
83
83
|
readonly packageName: "nirs4all-ui";
|
|
84
84
|
readonly role: "Reusable visual system";
|
|
85
85
|
readonly description: "Shared React components, visual tokens, brand assets, and app-host UI contracts.";
|
|
86
86
|
readonly palette: {
|
|
87
87
|
readonly primary: "#2563eb";
|
|
88
|
-
readonly secondary: "#
|
|
89
|
-
readonly accent: "#
|
|
88
|
+
readonly secondary: "#058E96";
|
|
89
|
+
readonly accent: "#E9362D";
|
|
90
90
|
readonly dark: "#172554";
|
|
91
91
|
readonly surface: "#ffffff";
|
|
92
92
|
};
|
|
@@ -99,14 +99,14 @@ export declare const NIRS4ALL_BRANDS: readonly [{
|
|
|
99
99
|
}, {
|
|
100
100
|
readonly id: "nirs4all-providers";
|
|
101
101
|
readonly name: "nirs4all-providers";
|
|
102
|
-
readonly shortName: "
|
|
102
|
+
readonly shortName: "n4v";
|
|
103
103
|
readonly packageName: "nirs4all-providers";
|
|
104
104
|
readonly role: "Soft-import provider bridge";
|
|
105
105
|
readonly description: "Optional provider clients for datasets, repositories, archives, and publication surfaces.";
|
|
106
106
|
readonly palette: {
|
|
107
|
-
readonly primary: "#
|
|
108
|
-
readonly secondary: "#
|
|
109
|
-
readonly accent: "#
|
|
107
|
+
readonly primary: "#D946EF";
|
|
108
|
+
readonly secondary: "#058E96";
|
|
109
|
+
readonly accent: "#E9362D";
|
|
110
110
|
readonly dark: "#2e1065";
|
|
111
111
|
readonly surface: "#ffffff";
|
|
112
112
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/brand/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,eAAe,GACf,aAAa,GACb,oBAAoB,CAAC;AAEzB,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;AAErE,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC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AI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAaD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+E2B,CAAC;AAIxD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEzE;AAED,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,eAAe,GAAG,uBAAuB,CAMvF;AAED,wBAAgB,kBAAkB,IAAI,SAAS,uBAAuB,EAAE,CAEvE;AAED,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,eAAe,GAAG,uBAAuB,EAChD,OAAO,EAAE,oBAAoB,GAC5B,MAAM,CAER;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,eAAe,GAAG,uBAAuB,EAChD,OAAO,GAAE,+BAAoC,GAC5C,MAAM,CAWR"}
|
package/dist/brand/index.js
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
* Hosts can use the asset paths for packaged files or generate inline SVG
|
|
6
6
|
* strings when they need app-local marks.
|
|
7
7
|
*/
|
|
8
|
+
const NIRS4ALL_TEAL = "#058E96";
|
|
9
|
+
const NIRS4ALL_RED = "#E9362D";
|
|
8
10
|
const SHARED_TEAL_PALETTE = {
|
|
9
|
-
primary:
|
|
10
|
-
secondary: "#
|
|
11
|
-
accent:
|
|
11
|
+
primary: NIRS4ALL_TEAL,
|
|
12
|
+
secondary: "#00A5D2",
|
|
13
|
+
accent: NIRS4ALL_RED,
|
|
12
14
|
dark: "#0f172a",
|
|
13
15
|
surface: "#ffffff",
|
|
14
16
|
};
|
|
@@ -31,14 +33,14 @@ export const NIRS4ALL_BRANDS = [
|
|
|
31
33
|
{
|
|
32
34
|
id: "nirs4all-core",
|
|
33
35
|
name: "nirs4all-core",
|
|
34
|
-
shortName: "
|
|
36
|
+
shortName: "n4o",
|
|
35
37
|
packageName: "nirs4all",
|
|
36
38
|
role: "Portable aggregate runtime",
|
|
37
39
|
description: "Low-level aggregate used by native, Python, R, WASM, Rust, MATLAB, and custom hosts.",
|
|
38
40
|
palette: {
|
|
39
|
-
primary:
|
|
40
|
-
secondary:
|
|
41
|
-
accent:
|
|
41
|
+
primary: NIRS4ALL_RED,
|
|
42
|
+
secondary: NIRS4ALL_TEAL,
|
|
43
|
+
accent: NIRS4ALL_RED,
|
|
42
44
|
dark: "#10233a",
|
|
43
45
|
surface: "#ffffff",
|
|
44
46
|
},
|
|
@@ -52,14 +54,14 @@ export const NIRS4ALL_BRANDS = [
|
|
|
52
54
|
{
|
|
53
55
|
id: "nirs4all-ui",
|
|
54
56
|
name: "nirs4all-ui",
|
|
55
|
-
shortName: "
|
|
57
|
+
shortName: "n4u",
|
|
56
58
|
packageName: "nirs4all-ui",
|
|
57
59
|
role: "Reusable visual system",
|
|
58
60
|
description: "Shared React components, visual tokens, brand assets, and app-host UI contracts.",
|
|
59
61
|
palette: {
|
|
60
62
|
primary: "#2563eb",
|
|
61
|
-
secondary:
|
|
62
|
-
accent:
|
|
63
|
+
secondary: NIRS4ALL_TEAL,
|
|
64
|
+
accent: NIRS4ALL_RED,
|
|
63
65
|
dark: "#172554",
|
|
64
66
|
surface: "#ffffff",
|
|
65
67
|
},
|
|
@@ -73,14 +75,14 @@ export const NIRS4ALL_BRANDS = [
|
|
|
73
75
|
{
|
|
74
76
|
id: "nirs4all-providers",
|
|
75
77
|
name: "nirs4all-providers",
|
|
76
|
-
shortName: "
|
|
78
|
+
shortName: "n4v",
|
|
77
79
|
packageName: "nirs4all-providers",
|
|
78
80
|
role: "Soft-import provider bridge",
|
|
79
81
|
description: "Optional provider clients for datasets, repositories, archives, and publication surfaces.",
|
|
80
82
|
palette: {
|
|
81
|
-
primary: "#
|
|
82
|
-
secondary:
|
|
83
|
-
accent:
|
|
83
|
+
primary: "#D946EF",
|
|
84
|
+
secondary: NIRS4ALL_TEAL,
|
|
85
|
+
accent: NIRS4ALL_RED,
|
|
84
86
|
dark: "#2e1065",
|
|
85
87
|
surface: "#ffffff",
|
|
86
88
|
},
|
package/dist/brand/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/brand/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2CH,MAAM,mBAAmB,GAAG;IAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/brand/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA2CH,MAAM,aAAa,GAAG,SAAS,CAAC;AAChC,MAAM,YAAY,GAAG,SAAS,CAAC;AAE/B,MAAM,mBAAmB,GAAG;IAC1B,OAAO,EAAE,aAAa;IACtB,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS;CACqB,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;QACE,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,8EAA8E;QAC3F,OAAO,EAAE,mBAAmB;QAC5B,MAAM,EAAE;YACN,IAAI,EAAE,iCAAiC;YACvC,UAAU,EAAE,uCAAuC;YACnD,OAAO,EAAE,oCAAoC;SAC9C;QACD,IAAI,EAAE,CAA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AC,MAAM;;gCAE/B,SAAS,kGAAkG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;gCAChI,UAAU,kGAAkG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;OAC1J,CAAC;AACR,CAAC;AAED,SAAS,aAAa;IACpB,OAAO,+FAA+F,CAAC;AACzG,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,KAAK;SACT,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC;SACxB,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC;SACvB,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC;SACvB,UAAU,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;AAC/B,CAAC"}
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Static CSS and motion files are shipped under `assets/`; this module exposes
|
|
5
5
|
* typed paths and token names without importing CSS at runtime.
|
|
6
6
|
*/
|
|
7
|
-
export type Nirs4allStyleAssetId = "default-theme" | "spectra-motion";
|
|
7
|
+
export type Nirs4allStyleAssetId = "default-theme" | "dataset-builder" | "quality-lab-theme" | "spectra-motion";
|
|
8
8
|
export type Nirs4allStyleAssetKind = "css" | "svg-motion";
|
|
9
9
|
export interface Nirs4allStyleAsset {
|
|
10
10
|
id: Nirs4allStyleAssetId;
|
|
@@ -19,6 +19,18 @@ export declare const NIRS4ALL_STYLE_ASSETS: readonly [{
|
|
|
19
19
|
readonly path: "assets/styles/nirs4all-default.css";
|
|
20
20
|
readonly packageExport: "nirs4all-ui/assets/styles/nirs4all-default.css";
|
|
21
21
|
readonly description: "Default NIRS4ALL design tokens, surface classes, badges, grids, and runtime affordances.";
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "dataset-builder";
|
|
24
|
+
readonly kind: "css";
|
|
25
|
+
readonly path: "assets/datasetBuilder.css";
|
|
26
|
+
readonly packageExport: "nirs4all-ui/assets/datasetBuilder.css";
|
|
27
|
+
readonly description: "Default multimodal DatasetBuilder wizard layout and role-mapping utility classes.";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "quality-lab-theme";
|
|
30
|
+
readonly kind: "css";
|
|
31
|
+
readonly path: "assets/theme.css";
|
|
32
|
+
readonly packageExport: "nirs4all-ui/assets/theme.css";
|
|
33
|
+
readonly description: "Shared lab/quality app theme tokens used by quality-oriented custom hosts.";
|
|
22
34
|
}, {
|
|
23
35
|
readonly id: "spectra-motion";
|
|
24
36
|
readonly kind: "svg-motion";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,oBAAoB,GAC5B,eAAe,GACf,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,CAAC;AAErB,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,YAAY,CAAC;AAE1D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,oBAAoB,CAAC;IACzB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EA6BgB,CAAC;AAEnD,eAAO,MAAM,mBAAmB,iWAoBtB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;CAwBzB,CAAC;AAEX,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,oBAAoB,GAAG,kBAAkB,CAMlF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEtE"}
|
package/dist/styles/index.js
CHANGED
|
@@ -12,6 +12,20 @@ export const NIRS4ALL_STYLE_ASSETS = [
|
|
|
12
12
|
packageExport: "nirs4all-ui/assets/styles/nirs4all-default.css",
|
|
13
13
|
description: "Default NIRS4ALL design tokens, surface classes, badges, grids, and runtime affordances.",
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
id: "dataset-builder",
|
|
17
|
+
kind: "css",
|
|
18
|
+
path: "assets/datasetBuilder.css",
|
|
19
|
+
packageExport: "nirs4all-ui/assets/datasetBuilder.css",
|
|
20
|
+
description: "Default multimodal DatasetBuilder wizard layout and role-mapping utility classes.",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "quality-lab-theme",
|
|
24
|
+
kind: "css",
|
|
25
|
+
path: "assets/theme.css",
|
|
26
|
+
packageExport: "nirs4all-ui/assets/theme.css",
|
|
27
|
+
description: "Shared lab/quality app theme tokens used by quality-oriented custom hosts.",
|
|
28
|
+
},
|
|
15
29
|
{
|
|
16
30
|
id: "spectra-motion",
|
|
17
31
|
kind: "svg-motion",
|
package/dist/styles/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC;QACE,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,oCAAoC;QAC1C,aAAa,EAAE,gDAAgD;QAC/D,WAAW,EAAE,0FAA0F;KACxG;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,2BAA2B;QACjC,aAAa,EAAE,uCAAuC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IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7E,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CAAC,iCAAiC,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAuB;IAC5D,OAAO,SAAS,KAAK,GAAG,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirs4all-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Shared React UI components, visual assets, and pure view-model helpers for nirs4all apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "(CECILL-2.1 OR AGPL-3.0-or-later)",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"brand:generate": "node scripts/generate-brand-assets.mjs",
|
|
68
|
+
"brand:check": "node scripts/generate-brand-assets.mjs --check",
|
|
68
69
|
"build": "tsc -p tsconfig.build.json",
|
|
69
70
|
"ci": "npm run prepublishOnly && npm run pack:smoke && npm run smoke:react-consumers",
|
|
70
71
|
"pack:smoke": "npm pack --dry-run",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"site:dev": "vite --config site/vite.config.ts",
|
|
74
75
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
75
76
|
"test": "vitest run",
|
|
76
|
-
"
|
|
77
|
+
"prepare": "npm run build",
|
|
77
78
|
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
|
78
79
|
"test:watch": "vitest"
|
|
79
80
|
},
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
"react": ">=18 <20"
|
|
82
83
|
},
|
|
83
84
|
"devDependencies": {
|
|
85
|
+
"@types/node": "^22.20.1",
|
|
84
86
|
"@types/react": "^19.2.7",
|
|
85
87
|
"@types/react-dom": "^19.2.3",
|
|
86
88
|
"react": "^19.2.3",
|