@thesage/mcp 0.6.0 → 0.8.1

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.
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Component Registry for Sage UI
3
+ *
4
+ * This registry contains metadata for all 92 components in @thesage/ui,
5
+ * organized into 7 core functional categories plus 4 specialty categories.
6
+ *
7
+ * Core Categories (7):
8
+ * - actions: Interactive elements that trigger behaviors
9
+ * - forms: Input controls for data collection
10
+ * - navigation: Moving through content and hierarchy
11
+ * - overlays: Contextual content above main UI
12
+ * - feedback: Communicating system state
13
+ * - data-display: Presenting information in structured formats
14
+ * - layout: Spatial organization and structural elements
15
+ *
16
+ * Specialty Categories (4):
17
+ * - backgrounds: Animated background effects
18
+ * - cursor: Custom cursor effects
19
+ * - motion: Animation components
20
+ * - blocks: Composed page sections
21
+ */
22
+ interface PropInfo {
23
+ type: string;
24
+ default?: string;
25
+ description: string;
26
+ required?: boolean;
27
+ }
28
+ interface ComponentMetadata {
29
+ name: string;
30
+ category: string;
31
+ description: string;
32
+ keywords: string[];
33
+ useCases: string[];
34
+ dependencies: string[];
35
+ radixPrimitive?: string;
36
+ props?: Record<string, PropInfo>;
37
+ subComponents?: string[];
38
+ example?: string;
39
+ }
40
+ declare const COMPONENT_CATEGORIES: {
41
+ readonly actions: {
42
+ readonly label: "Actions";
43
+ readonly description: "Interactive elements that trigger behaviors";
44
+ readonly count: 5;
45
+ };
46
+ readonly forms: {
47
+ readonly label: "Forms";
48
+ readonly description: "Input controls for data collection";
49
+ readonly count: 19;
50
+ };
51
+ readonly navigation: {
52
+ readonly label: "Navigation";
53
+ readonly description: "Moving through content and hierarchy";
54
+ readonly count: 10;
55
+ };
56
+ readonly overlays: {
57
+ readonly label: "Overlays";
58
+ readonly description: "Contextual content that appears above the main UI";
59
+ readonly count: 12;
60
+ };
61
+ readonly feedback: {
62
+ readonly label: "Feedback";
63
+ readonly description: "Communicating system state and user action results";
64
+ readonly count: 9;
65
+ };
66
+ readonly 'data-display': {
67
+ readonly label: "Data Display";
68
+ readonly description: "Presenting information in structured formats";
69
+ readonly count: 19;
70
+ };
71
+ readonly layout: {
72
+ readonly label: "Layout";
73
+ readonly description: "Spatial organization and structural elements";
74
+ readonly count: 17;
75
+ };
76
+ readonly backgrounds: {
77
+ readonly label: "Backgrounds";
78
+ readonly description: "Animated background effects and decorative elements";
79
+ readonly count: 3;
80
+ };
81
+ readonly cursor: {
82
+ readonly label: "Cursor";
83
+ readonly description: "Custom cursor effects and interactions";
84
+ readonly count: 2;
85
+ };
86
+ readonly motion: {
87
+ readonly label: "Motion";
88
+ readonly description: "Animation components and motion effects";
89
+ readonly count: 1;
90
+ };
91
+ readonly blocks: {
92
+ readonly label: "Blocks";
93
+ readonly description: "Composed page sections and layouts";
94
+ readonly count: 2;
95
+ };
96
+ };
97
+ declare const COMPONENT_REGISTRY: Record<string, ComponentMetadata>;
98
+ /**
99
+ * Get all components by category
100
+ */
101
+ declare function getComponentsByCategory(category: string): ComponentMetadata[];
102
+ /**
103
+ * Search components by keyword or description
104
+ */
105
+ declare function searchComponents(query: string): ComponentMetadata[];
106
+ /**
107
+ * Get component by name (case-insensitive, accepts kebab-case or PascalCase)
108
+ */
109
+ declare function getComponent(name: string): ComponentMetadata | undefined;
110
+ /**
111
+ * Get all component names
112
+ */
113
+ declare function getAllComponentNames(): string[];
114
+ /**
115
+ * Get component count
116
+ */
117
+ declare function getComponentCount(): number;
118
+
119
+ export { COMPONENT_CATEGORIES, COMPONENT_REGISTRY, type ComponentMetadata, type PropInfo, getAllComponentNames, getComponent, getComponentCount, getComponentsByCategory, searchComponents };
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Component Registry for Sage UI
3
+ *
4
+ * This registry contains metadata for all 92 components in @thesage/ui,
5
+ * organized into 7 core functional categories plus 4 specialty categories.
6
+ *
7
+ * Core Categories (7):
8
+ * - actions: Interactive elements that trigger behaviors
9
+ * - forms: Input controls for data collection
10
+ * - navigation: Moving through content and hierarchy
11
+ * - overlays: Contextual content above main UI
12
+ * - feedback: Communicating system state
13
+ * - data-display: Presenting information in structured formats
14
+ * - layout: Spatial organization and structural elements
15
+ *
16
+ * Specialty Categories (4):
17
+ * - backgrounds: Animated background effects
18
+ * - cursor: Custom cursor effects
19
+ * - motion: Animation components
20
+ * - blocks: Composed page sections
21
+ */
22
+ interface PropInfo {
23
+ type: string;
24
+ default?: string;
25
+ description: string;
26
+ required?: boolean;
27
+ }
28
+ interface ComponentMetadata {
29
+ name: string;
30
+ category: string;
31
+ description: string;
32
+ keywords: string[];
33
+ useCases: string[];
34
+ dependencies: string[];
35
+ radixPrimitive?: string;
36
+ props?: Record<string, PropInfo>;
37
+ subComponents?: string[];
38
+ example?: string;
39
+ }
40
+ declare const COMPONENT_CATEGORIES: {
41
+ readonly actions: {
42
+ readonly label: "Actions";
43
+ readonly description: "Interactive elements that trigger behaviors";
44
+ readonly count: 5;
45
+ };
46
+ readonly forms: {
47
+ readonly label: "Forms";
48
+ readonly description: "Input controls for data collection";
49
+ readonly count: 19;
50
+ };
51
+ readonly navigation: {
52
+ readonly label: "Navigation";
53
+ readonly description: "Moving through content and hierarchy";
54
+ readonly count: 10;
55
+ };
56
+ readonly overlays: {
57
+ readonly label: "Overlays";
58
+ readonly description: "Contextual content that appears above the main UI";
59
+ readonly count: 12;
60
+ };
61
+ readonly feedback: {
62
+ readonly label: "Feedback";
63
+ readonly description: "Communicating system state and user action results";
64
+ readonly count: 9;
65
+ };
66
+ readonly 'data-display': {
67
+ readonly label: "Data Display";
68
+ readonly description: "Presenting information in structured formats";
69
+ readonly count: 19;
70
+ };
71
+ readonly layout: {
72
+ readonly label: "Layout";
73
+ readonly description: "Spatial organization and structural elements";
74
+ readonly count: 17;
75
+ };
76
+ readonly backgrounds: {
77
+ readonly label: "Backgrounds";
78
+ readonly description: "Animated background effects and decorative elements";
79
+ readonly count: 3;
80
+ };
81
+ readonly cursor: {
82
+ readonly label: "Cursor";
83
+ readonly description: "Custom cursor effects and interactions";
84
+ readonly count: 2;
85
+ };
86
+ readonly motion: {
87
+ readonly label: "Motion";
88
+ readonly description: "Animation components and motion effects";
89
+ readonly count: 1;
90
+ };
91
+ readonly blocks: {
92
+ readonly label: "Blocks";
93
+ readonly description: "Composed page sections and layouts";
94
+ readonly count: 2;
95
+ };
96
+ };
97
+ declare const COMPONENT_REGISTRY: Record<string, ComponentMetadata>;
98
+ /**
99
+ * Get all components by category
100
+ */
101
+ declare function getComponentsByCategory(category: string): ComponentMetadata[];
102
+ /**
103
+ * Search components by keyword or description
104
+ */
105
+ declare function searchComponents(query: string): ComponentMetadata[];
106
+ /**
107
+ * Get component by name (case-insensitive, accepts kebab-case or PascalCase)
108
+ */
109
+ declare function getComponent(name: string): ComponentMetadata | undefined;
110
+ /**
111
+ * Get all component names
112
+ */
113
+ declare function getAllComponentNames(): string[];
114
+ /**
115
+ * Get component count
116
+ */
117
+ declare function getComponentCount(): number;
118
+
119
+ export { COMPONENT_CATEGORIES, COMPONENT_REGISTRY, type ComponentMetadata, type PropInfo, getAllComponentNames, getComponent, getComponentCount, getComponentsByCategory, searchComponents };