@machinemetrics/mm-react-components 0.2.3-1 → 0.2.3-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 +96 -30
- package/agent-docs/agent-documentation-reference.md +247 -0
- package/agent-docs/ai-agent-guide.md +554 -0
- package/agent-docs/ai-agent-init-guide.md +461 -0
- package/agent-docs/chakra-migration-readme.md +265 -0
- package/agent-docs/chakra-migration-troubleshooting.md +649 -0
- package/agent-docs/component-mapping-reference.md +466 -0
- package/agent-docs/init-readme.md +283 -0
- package/agent-docs/init-troubleshooting.md +550 -0
- package/agent-docs/setup-reference.md +365 -0
- package/dist/App.d.ts.map +1 -1
- package/dist/README.md +96 -30
- package/dist/components/ui/alert-dialog.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +12 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/chart.d.ts +41 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/form.d.ts +25 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/progress.d.ts +1 -0
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/docs/GETTING_STARTED.md +293 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -0
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/mm-react-components.es.js +10964 -927
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +27 -9
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/preview/AlertDialogPreview.d.ts +2 -0
- package/dist/preview/AlertDialogPreview.d.ts.map +1 -0
- package/dist/preview/AlertPreview.d.ts +2 -0
- package/dist/preview/AlertPreview.d.ts.map +1 -0
- package/dist/preview/AvatarPreview.d.ts +2 -0
- package/dist/preview/AvatarPreview.d.ts.map +1 -0
- package/dist/preview/BreadcrumbPreview.d.ts +2 -0
- package/dist/preview/BreadcrumbPreview.d.ts.map +1 -0
- package/dist/preview/CardPreview.d.ts +2 -0
- package/dist/preview/CardPreview.d.ts.map +1 -0
- package/dist/preview/ChartPreview.d.ts +2 -0
- package/dist/preview/ChartPreview.d.ts.map +1 -0
- package/dist/preview/CheckboxPreview.d.ts.map +1 -1
- package/dist/preview/DataTablePreview.d.ts.map +1 -1
- package/dist/preview/FormPreview.d.ts +2 -0
- package/dist/preview/FormPreview.d.ts.map +1 -0
- package/dist/preview/InputPreview.d.ts.map +1 -1
- package/dist/preview/LabelPreview.d.ts.map +1 -1
- package/dist/preview/RadioGroupPreview.d.ts.map +1 -1
- package/dist/preview/SeparatorPreview.d.ts +2 -0
- package/dist/preview/SeparatorPreview.d.ts.map +1 -0
- package/dist/preview/SonnerPreview.d.ts +2 -0
- package/dist/preview/SonnerPreview.d.ts.map +1 -0
- package/dist/preview/TabsPreview.d.ts.map +1 -1
- package/dist/preview/TextareaPreview.d.ts +2 -0
- package/dist/preview/TextareaPreview.d.ts.map +1 -0
- package/dist/preview/data-table/data-table-preview_column-content.d.ts +1 -1
- package/dist/preview/data-table/data-table-preview_column-content.d.ts.map +1 -1
- package/dist/preview/page-header/PageHeaderPreview.d.ts.map +1 -1
- package/dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json +512 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/args.js +63 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/colors.js +14 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/config.js +15 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/deps.js +125 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/file-io.js +44 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/render.js +89 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/transform.js +550 -0
- package/dist/scripts/chakra-to-shadcn-migrator/package.json +11 -0
- package/dist/scripts/init.cjs +207 -0
- package/dist/tailwind.base.config.js +88 -0
- package/dist/themes/carbide.css +187 -32
- package/package.json +58 -10
- package/src/index.css +99 -498
- package/dist/index.css +0 -536
- package/dist/tailwind.config.export.js +0 -153
- package/dist/themes/complete.css +0 -8
- package/scripts/README.md +0 -171
- package/scripts/chakra-to-shadcn-migrator/README.md +0 -107
- package/src/themes/carbide.css +0 -1257
- package/src/themes/complete.css +0 -8
- package/tailwind.config.export.js +0 -153
- /package/{scripts → dist/scripts}/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js +0 -0
package/README.md
CHANGED
|
@@ -17,39 +17,89 @@ A comprehensive React component library designed specifically for MachineMetrics
|
|
|
17
17
|
npm install @machinemetrics/mm-react-components
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
**Required Dependencies:**
|
|
21
|
+
|
|
22
|
+
- React 19+
|
|
23
|
+
- React DOM 19+
|
|
24
|
+
|
|
25
|
+
**Optional Dependencies (only if using `/themes/carbide`):**
|
|
26
|
+
|
|
27
|
+
- Tailwind CSS 4.0+
|
|
28
|
+
- PostCSS 8.5+
|
|
29
|
+
- Autoprefixer 10+
|
|
30
|
+
|
|
31
|
+
> 💡 **Note:** When using `/styles` (recommended), no build tools are required! The CSS is fully compiled.
|
|
32
|
+
|
|
20
33
|
## Quick Start
|
|
21
34
|
|
|
22
|
-
###
|
|
35
|
+
### 🚀 Automated Setup (Recommended)
|
|
36
|
+
|
|
37
|
+
The fastest way to get started:
|
|
23
38
|
|
|
24
39
|
```bash
|
|
25
|
-
|
|
40
|
+
# Install the package
|
|
41
|
+
npm install @machinemetrics/mm-react-components
|
|
42
|
+
|
|
43
|
+
# Run the automated setup
|
|
44
|
+
npx @machinemetrics/mm-react-components/setup
|
|
26
45
|
```
|
|
27
46
|
|
|
28
|
-
|
|
47
|
+
This will automatically:
|
|
48
|
+
|
|
49
|
+
- ✅ Copy Tailwind configuration
|
|
50
|
+
- ✅ Create PostCSS configuration
|
|
51
|
+
- ✅ Set up the complete theme
|
|
52
|
+
- ✅ Create an example component
|
|
53
|
+
- ✅ Generate all necessary files
|
|
54
|
+
|
|
55
|
+
### 📋 Manual Setup
|
|
29
56
|
|
|
30
|
-
|
|
57
|
+
If you prefer manual setup:
|
|
58
|
+
|
|
59
|
+
#### 1. Install the Library
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install @machinemetrics/mm-react-components
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Optional:** Only install Tailwind if you want to use `/themes/carbide` instead of `/styles`:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm install -D tailwindcss postcss autoprefixer
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
#### 2. (Optional) Configure Tailwind CSS
|
|
72
|
+
|
|
73
|
+
> 💡 Skip this step if using `/styles` - Tailwind configuration is not needed!
|
|
74
|
+
|
|
75
|
+
**Only if using `/themes/carbide`:**
|
|
31
76
|
|
|
32
77
|
```bash
|
|
33
78
|
cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js tailwind.config.js
|
|
34
79
|
```
|
|
35
80
|
|
|
36
|
-
|
|
81
|
+
Note: The exported config is the main config (no preview-only utilities). The preview app in this repo uses a separate `tailwind.preview.config.js` that imports the main config and adds preview utilities.
|
|
37
82
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
83
|
+
#### 3. Import Styles
|
|
84
|
+
|
|
85
|
+
Import the complete styles including Tailwind CSS, base styles, and Carbide theme:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
// In your main entry (e.g., src/main.tsx)
|
|
89
|
+
import '@machinemetrics/mm-react-components/styles';
|
|
90
|
+
document.documentElement.classList.add('carbide');
|
|
41
91
|
```
|
|
42
92
|
|
|
43
|
-
**
|
|
93
|
+
**What's included in `/styles` (118 KB, 18 KB gzipped):**
|
|
44
94
|
|
|
45
|
-
- ✅ Tailwind CSS reset
|
|
95
|
+
- ✅ Tailwind CSS reset and utilities (compiled)
|
|
46
96
|
- ✅ Base theme variables (OKLCH color system)
|
|
47
97
|
- ✅ Carbide industrial theme
|
|
48
|
-
- ✅ All component styles
|
|
98
|
+
- ✅ All component styles (focus states, rings, borders, etc.)
|
|
49
99
|
- ✅ Dark mode support
|
|
50
100
|
- ✅ Animations and utilities
|
|
51
101
|
|
|
52
|
-
|
|
102
|
+
#### 4. Use Components
|
|
53
103
|
|
|
54
104
|
```tsx
|
|
55
105
|
import { Button, Input } from '@machinemetrics/mm-react-components';
|
|
@@ -64,9 +114,11 @@ function App() {
|
|
|
64
114
|
}
|
|
65
115
|
```
|
|
66
116
|
|
|
67
|
-
###
|
|
117
|
+
### 📚 Documentation
|
|
68
118
|
|
|
69
|
-
|
|
119
|
+
- [Getting Started Guide](./docs/GETTING_STARTED.md) - Complete setup guide
|
|
120
|
+
- [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md) - Detailed configuration
|
|
121
|
+
- [Quick Start Template](./templates/quick-start.html) - Live demo
|
|
70
122
|
|
|
71
123
|
## Theme System
|
|
72
124
|
|
|
@@ -86,23 +138,40 @@ The component library includes a comprehensive theme system with two main themes
|
|
|
86
138
|
- Enhanced component styling for industrial applications
|
|
87
139
|
- Complete dark mode support
|
|
88
140
|
|
|
89
|
-
###
|
|
141
|
+
### Import Options
|
|
90
142
|
|
|
91
|
-
#### Option 1: Complete
|
|
143
|
+
#### Option 1: Complete Styles (Recommended - 118 KB gzipped)
|
|
92
144
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
145
|
+
Import everything including Tailwind utilities, theme, and animations:
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
import '@machinemetrics/mm-react-components/styles';
|
|
149
|
+
document.documentElement.classList.add('carbide');
|
|
96
150
|
```
|
|
97
151
|
|
|
98
|
-
|
|
152
|
+
**Includes:**
|
|
99
153
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
154
|
+
- ✅ All Tailwind utilities (compiled)
|
|
155
|
+
- ✅ Carbide theme variables
|
|
156
|
+
- ✅ Component styles with focus states
|
|
157
|
+
- ✅ Dark mode support
|
|
158
|
+
- ✅ Animations
|
|
159
|
+
|
|
160
|
+
#### Option 2: Theme Only (41 KB - if you already have Tailwind)
|
|
161
|
+
|
|
162
|
+
Import just the Carbide theme variables and component overrides:
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
import '@machinemetrics/mm-react-components/themes/carbide';
|
|
166
|
+
document.documentElement.classList.add('carbide');
|
|
104
167
|
```
|
|
105
168
|
|
|
169
|
+
**Use this if:**
|
|
170
|
+
|
|
171
|
+
- You already have Tailwind CSS in your project
|
|
172
|
+
- You want to minimize bundle size
|
|
173
|
+
- You're using our components with your own Tailwind config
|
|
174
|
+
|
|
106
175
|
#### Option 3: Use Theme Utilities
|
|
107
176
|
|
|
108
177
|
```tsx
|
|
@@ -213,16 +282,13 @@ This includes:
|
|
|
213
282
|
### Alternative Import Methods
|
|
214
283
|
|
|
215
284
|
```css
|
|
216
|
-
/* Import
|
|
217
|
-
@import '@machinemetrics/mm-react-components/
|
|
218
|
-
|
|
219
|
-
/* Import Carbide theme for industrial styling */
|
|
220
|
-
@import '@machinemetrics/mm-react-components/themes/carbide';
|
|
285
|
+
/* Import complete styles including Carbide theme */
|
|
286
|
+
@import '@machinemetrics/mm-react-components/styles';
|
|
221
287
|
```
|
|
222
288
|
|
|
223
289
|
```tsx
|
|
224
290
|
// Import in JavaScript/TypeScript
|
|
225
|
-
import '@machinemetrics/mm-react-components/
|
|
291
|
+
import '@machinemetrics/mm-react-components/styles';
|
|
226
292
|
```
|
|
227
293
|
|
|
228
294
|
## TypeScript Support
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
# AI Agent Documentation Reference
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This directory contains comprehensive documentation and tools for AI agents working with the MachineMetrics React Components library. The documentation is organized into two main categories: **Initialization Setup** and **Chakra UI Migration**.
|
|
6
|
+
|
|
7
|
+
## Directory Structure
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
agent-docs/
|
|
11
|
+
├── agent-documentation-reference.md # This reference file
|
|
12
|
+
├── ai-agent-init-guide.md # Main init setup guide
|
|
13
|
+
├── setup-reference.md # Detailed setup reference
|
|
14
|
+
├── init-troubleshooting.md # Init setup troubleshooting
|
|
15
|
+
├── init-readme.md # Init setup overview
|
|
16
|
+
├── ai-agent-guide.md # Chakra migration guide
|
|
17
|
+
├── component-mapping-reference.md # Chakra migration reference
|
|
18
|
+
├── chakra-migration-troubleshooting.md # Chakra migration troubleshooting
|
|
19
|
+
└── chakra-migration-readme.md # Chakra migration overview
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Documentation Categories
|
|
23
|
+
|
|
24
|
+
### 1. Initialization Setup Documentation
|
|
25
|
+
|
|
26
|
+
#### **ai-agent-init-guide.md**
|
|
27
|
+
|
|
28
|
+
- **Purpose**: Comprehensive guide for AI agents on library setup
|
|
29
|
+
- **Use Case**: When AI agents need to initialize the MachineMetrics React Components library
|
|
30
|
+
- **Key Features**:
|
|
31
|
+
- Zero-config setup (no build tools required)
|
|
32
|
+
- Automated setup procedures
|
|
33
|
+
- Framework-specific instructions (React, Next.js, Vite)
|
|
34
|
+
- Troubleshooting guidance
|
|
35
|
+
- Validation checklists
|
|
36
|
+
- **Target Audience**: AI agents performing automated setup
|
|
37
|
+
- **When to Use**: Primary resource for init script setup
|
|
38
|
+
|
|
39
|
+
#### **setup-reference.md**
|
|
40
|
+
|
|
41
|
+
- **Purpose**: Detailed reference for setup procedures
|
|
42
|
+
- **Use Case**: When AI agents need specific technical details about setup
|
|
43
|
+
- **Key Features**:
|
|
44
|
+
- Complete dependency list
|
|
45
|
+
- Configuration file templates
|
|
46
|
+
- Framework-specific setup instructions
|
|
47
|
+
- Component usage patterns
|
|
48
|
+
- Performance optimization
|
|
49
|
+
- **Target Audience**: AI agents needing technical reference
|
|
50
|
+
- **When to Use**: Technical reference during setup or troubleshooting
|
|
51
|
+
|
|
52
|
+
#### **init-troubleshooting.md**
|
|
53
|
+
|
|
54
|
+
- **Purpose**: Common issues and solutions for init script problems
|
|
55
|
+
- **Use Case**: When the init script fails or encounters issues
|
|
56
|
+
- **Key Features**:
|
|
57
|
+
- Script execution issues
|
|
58
|
+
- Dependency installation problems
|
|
59
|
+
- Configuration issues
|
|
60
|
+
- Build and runtime problems
|
|
61
|
+
- Framework-specific troubleshooting
|
|
62
|
+
- **Target Audience**: AI agents debugging setup issues
|
|
63
|
+
- **When to Use**: When automated setup fails or encounters errors
|
|
64
|
+
|
|
65
|
+
#### **init-readme.md**
|
|
66
|
+
|
|
67
|
+
- **Purpose**: Overview and usage instructions for init setup
|
|
68
|
+
- **Use Case**: Quick reference for init setup process
|
|
69
|
+
- **Key Features**:
|
|
70
|
+
- Quick start instructions
|
|
71
|
+
- File descriptions
|
|
72
|
+
- Usage examples
|
|
73
|
+
- Validation steps
|
|
74
|
+
- **Target Audience**: AI agents needing quick overview
|
|
75
|
+
- **When to Use**: Initial understanding of init setup process
|
|
76
|
+
|
|
77
|
+
### 2. Chakra UI Migration Documentation
|
|
78
|
+
|
|
79
|
+
#### **ai-agent-guide.md**
|
|
80
|
+
|
|
81
|
+
- **Purpose**: Comprehensive guide for AI agents on Chakra UI to MachineMetrics migration
|
|
82
|
+
- **Use Case**: When AI agents need to migrate existing Chakra UI components
|
|
83
|
+
- **Key Features**:
|
|
84
|
+
- Automated migration procedures
|
|
85
|
+
- Manual conversion steps
|
|
86
|
+
- Component mapping instructions
|
|
87
|
+
- Icon migration guidance
|
|
88
|
+
- Validation checklists
|
|
89
|
+
- **Target Audience**: AI agents performing Chakra UI migration
|
|
90
|
+
- **When to Use**: Primary resource for Chakra UI migration
|
|
91
|
+
|
|
92
|
+
#### **component-mapping-reference.md**
|
|
93
|
+
|
|
94
|
+
- **Purpose**: Detailed reference of component mappings for Chakra UI migration
|
|
95
|
+
- **Use Case**: When AI agents need specific component mapping information
|
|
96
|
+
- **Key Features**:
|
|
97
|
+
- Complete component mapping tables
|
|
98
|
+
- Prop mapping references
|
|
99
|
+
- Styling conversion guides
|
|
100
|
+
- Icon mapping tables
|
|
101
|
+
- Migration patterns
|
|
102
|
+
- **Target Audience**: AI agents needing component mapping details
|
|
103
|
+
- **When to Use**: Technical reference during Chakra UI migration
|
|
104
|
+
|
|
105
|
+
#### **chakra-migration-troubleshooting.md**
|
|
106
|
+
|
|
107
|
+
- **Purpose**: Common issues and solutions for Chakra UI migration problems
|
|
108
|
+
- **Use Case**: When Chakra UI migration encounters issues
|
|
109
|
+
- **Key Features**:
|
|
110
|
+
- Import errors and solutions
|
|
111
|
+
- Theme and styling issues
|
|
112
|
+
- Layout problems
|
|
113
|
+
- API changes
|
|
114
|
+
- Icon issues
|
|
115
|
+
- Form component problems
|
|
116
|
+
- **Target Audience**: AI agents debugging migration issues
|
|
117
|
+
- **When to Use**: When Chakra UI migration fails or encounters errors
|
|
118
|
+
|
|
119
|
+
#### **chakra-migration-readme.md**
|
|
120
|
+
|
|
121
|
+
- **Purpose**: Overview and usage instructions for Chakra UI migration
|
|
122
|
+
- **Use Case**: Quick reference for Chakra UI migration process
|
|
123
|
+
- **Key Features**:
|
|
124
|
+
- Migration overview
|
|
125
|
+
- File descriptions
|
|
126
|
+
- Usage examples
|
|
127
|
+
- Troubleshooting tips
|
|
128
|
+
- **Target Audience**: AI agents needing quick migration overview
|
|
129
|
+
- **When to Use**: Initial understanding of Chakra UI migration process
|
|
130
|
+
|
|
131
|
+
## Usage Patterns
|
|
132
|
+
|
|
133
|
+
### For AI Agents
|
|
134
|
+
|
|
135
|
+
#### **Initialization Setup Workflow**
|
|
136
|
+
|
|
137
|
+
1. **Start with**: `ai-agent-init-guide.md` for comprehensive setup instructions
|
|
138
|
+
2. **Reference**: `setup-reference.md` for technical details
|
|
139
|
+
3. **Troubleshoot**: `init-troubleshooting.md` if issues arise
|
|
140
|
+
4. **Overview**: `init-readme.md` for quick reference
|
|
141
|
+
|
|
142
|
+
#### **Chakra UI Migration Workflow**
|
|
143
|
+
|
|
144
|
+
1. **Start with**: `ai-agent-guide.md` for comprehensive migration instructions
|
|
145
|
+
2. **Reference**: `component-mapping-reference.md` for component details
|
|
146
|
+
3. **Troubleshoot**: `chakra-migration-troubleshooting.md` if issues arise
|
|
147
|
+
4. **Overview**: `chakra-migration-readme.md` for quick reference
|
|
148
|
+
|
|
149
|
+
### For Developers
|
|
150
|
+
|
|
151
|
+
#### **Quick Start**
|
|
152
|
+
|
|
153
|
+
- Use `init-readme.md` for setup overview
|
|
154
|
+
- Use `chakra-migration-readme.md` for migration overview
|
|
155
|
+
|
|
156
|
+
#### **Detailed Implementation**
|
|
157
|
+
|
|
158
|
+
- Use `ai-agent-init-guide.md` for setup implementation
|
|
159
|
+
- Use `ai-agent-guide.md` for migration implementation
|
|
160
|
+
|
|
161
|
+
#### **Troubleshooting**
|
|
162
|
+
|
|
163
|
+
- Use `init-troubleshooting.md` for setup issues
|
|
164
|
+
- Use `chakra-migration-troubleshooting.md` for migration issues
|
|
165
|
+
|
|
166
|
+
## File Relationships
|
|
167
|
+
|
|
168
|
+
### **Init Setup Files**
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
ai-agent-init-guide.md (main guide)
|
|
172
|
+
├── setup-reference.md (technical reference)
|
|
173
|
+
├── init-troubleshooting.md (issue resolution)
|
|
174
|
+
└── init-readme.md (overview)
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### **Chakra Migration Files**
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
ai-agent-guide.md (main guide)
|
|
181
|
+
├── component-mapping-reference.md (technical reference)
|
|
182
|
+
├── chakra-migration-troubleshooting.md (issue resolution)
|
|
183
|
+
└── chakra-migration-readme.md (overview)
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Package.json Exports
|
|
187
|
+
|
|
188
|
+
The following files are exported via package.json for AI agent access:
|
|
189
|
+
|
|
190
|
+
### **Init Setup Exports**
|
|
191
|
+
|
|
192
|
+
- `./init/guide` → `ai-agent-init-guide.md`
|
|
193
|
+
- `./init/reference` → `setup-reference.md`
|
|
194
|
+
- `./init/troubleshooting` → `init-troubleshooting.md`
|
|
195
|
+
- `./init/readme` → `init-readme.md`
|
|
196
|
+
|
|
197
|
+
### **Chakra Migration Exports**
|
|
198
|
+
|
|
199
|
+
- `./migration/config` → `chakra-to-shadcn.config.json`
|
|
200
|
+
- `./migration/guide` → `ai-agent-guide.md`
|
|
201
|
+
- `./migration/reference` → `component-mapping-reference.md`
|
|
202
|
+
- `./migration/troubleshooting` → `chakra-migration-troubleshooting.md`
|
|
203
|
+
- `./migration/readme` → `chakra-migration-readme.md`
|
|
204
|
+
|
|
205
|
+
## Best Practices
|
|
206
|
+
|
|
207
|
+
### **For AI Agents**
|
|
208
|
+
|
|
209
|
+
1. **Always start with the main guide** for comprehensive instructions
|
|
210
|
+
2. **Use reference files** for technical details and specific information
|
|
211
|
+
3. **Check troubleshooting guides** when issues arise
|
|
212
|
+
4. **Use fallback scripts** when automated tools fail
|
|
213
|
+
5. **Validate setup** using provided checklists
|
|
214
|
+
|
|
215
|
+
### **For Documentation Maintenance**
|
|
216
|
+
|
|
217
|
+
1. **Keep guides updated** with new components and features
|
|
218
|
+
2. **Update troubleshooting guides** with new issues and solutions
|
|
219
|
+
3. **Maintain reference files** with current dependency versions
|
|
220
|
+
4. **Test fallback scripts** regularly to ensure they work
|
|
221
|
+
5. **Update package.json exports** when adding new files
|
|
222
|
+
|
|
223
|
+
## Support and Resources
|
|
224
|
+
|
|
225
|
+
### **Documentation**
|
|
226
|
+
|
|
227
|
+
- [Component Library Docs](https://components.machinemetrics.com)
|
|
228
|
+
- [API Reference](https://components.machinemetrics.com/api)
|
|
229
|
+
- [Getting Started Guide](https://components.machinemetrics.com/getting-started)
|
|
230
|
+
|
|
231
|
+
### **Community Support**
|
|
232
|
+
|
|
233
|
+
- [GitHub Issues](https://github.com/machinemetrics/mm-react-components/issues)
|
|
234
|
+
- [Discord Community](https://discord.gg/machinemetrics)
|
|
235
|
+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/machinemetrics)
|
|
236
|
+
|
|
237
|
+
### **Professional Support**
|
|
238
|
+
|
|
239
|
+
- [MachineMetrics Support](https://support.machinemetrics.com)
|
|
240
|
+
- [Enterprise Support](https://enterprise.machinemetrics.com)
|
|
241
|
+
- [Consulting Services](https://consulting.machinemetrics.com)
|
|
242
|
+
|
|
243
|
+
## Conclusion
|
|
244
|
+
|
|
245
|
+
This documentation reference provides a comprehensive overview of all AI agent documentation and tools available for the MachineMetrics React Components library. Use this as a guide to understand which files to use for specific tasks and how they relate to each other.
|
|
246
|
+
|
|
247
|
+
For AI agents, this reference ensures you have access to all necessary documentation and tools to successfully set up and migrate components. For developers, this reference provides a clear understanding of the available resources and how to use them effectively.
|