@nim-ui/components 0.0.0
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/dist/index.d.ts +1679 -0
- package/dist/index.js +2638 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +2953 -0
- package/package.json +84 -0
- package/src/registry/index.json +1061 -0
- package/src/registry/schema.ts +34 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry schema definitions for component metadata
|
|
3
|
+
* Used by MCP server to provide component information
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface ComponentMeta {
|
|
7
|
+
/** Unique component identifier */
|
|
8
|
+
name: string;
|
|
9
|
+
/** Component category for organization */
|
|
10
|
+
category: 'primitives' | 'layout' | 'data-display' | 'commerce' | 'landing' | 'forms';
|
|
11
|
+
/** Brief description of component purpose */
|
|
12
|
+
description: string;
|
|
13
|
+
/** Keywords for search functionality */
|
|
14
|
+
keywords: string[];
|
|
15
|
+
/** File path relative to src/ */
|
|
16
|
+
file: string;
|
|
17
|
+
/** List of available variants */
|
|
18
|
+
variants: {
|
|
19
|
+
name: string;
|
|
20
|
+
values: string[];
|
|
21
|
+
}[];
|
|
22
|
+
/** Whether component uses Radix UI */
|
|
23
|
+
hasRadixPrimitive: boolean;
|
|
24
|
+
/** Usage examples */
|
|
25
|
+
examples: {
|
|
26
|
+
title: string;
|
|
27
|
+
code: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface RegistryData {
|
|
32
|
+
version: string;
|
|
33
|
+
components: ComponentMeta[];
|
|
34
|
+
}
|