@machinemetrics/mm-react-components 0.2.3-2 → 0.2.3-20

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.
Files changed (160) hide show
  1. package/README.md +89 -30
  2. package/agent-docs/agent-documentation-reference.md +364 -0
  3. package/agent-docs/ai-agent-guide.md +558 -0
  4. package/agent-docs/ai-agent-init-guide.md +465 -0
  5. package/agent-docs/chakra-migration-readme.md +265 -0
  6. package/agent-docs/chakra-migration-troubleshooting.md +649 -0
  7. package/agent-docs/component-mapping-reference.md +466 -0
  8. package/agent-docs/init-readme.md +283 -0
  9. package/agent-docs/init-troubleshooting.md +550 -0
  10. package/agent-docs/setup-reference.md +365 -0
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/README.md +89 -30
  13. package/dist/components/ui/alert-dialog.d.ts +15 -0
  14. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  15. package/dist/components/ui/alert.d.ts +10 -0
  16. package/dist/components/ui/alert.d.ts.map +1 -0
  17. package/dist/components/ui/avatar.d.ts +7 -0
  18. package/dist/components/ui/avatar.d.ts.map +1 -0
  19. package/dist/components/ui/breadcrumb.d.ts +12 -0
  20. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  21. package/dist/components/ui/button.d.ts.map +1 -1
  22. package/dist/components/ui/card.d.ts +10 -0
  23. package/dist/components/ui/card.d.ts.map +1 -0
  24. package/dist/components/ui/chart.d.ts +41 -0
  25. package/dist/components/ui/chart.d.ts.map +1 -0
  26. package/dist/components/ui/command.d.ts +19 -0
  27. package/dist/components/ui/command.d.ts.map +1 -0
  28. package/dist/components/ui/data-table/TableView.d.ts.map +1 -1
  29. package/dist/components/ui/data-table/cards/RowCard.d.ts.map +1 -1
  30. package/dist/components/ui/data-table/index.d.ts +3 -1
  31. package/dist/components/ui/data-table/index.d.ts.map +1 -1
  32. package/dist/components/ui/data-table/parts/BatchActionsToolbar.d.ts +6 -0
  33. package/dist/components/ui/data-table/parts/BatchActionsToolbar.d.ts.map +1 -0
  34. package/dist/components/ui/data-table/parts/CellContent.d.ts +7 -0
  35. package/dist/components/ui/data-table/parts/CellContent.d.ts.map +1 -0
  36. package/dist/components/ui/data-table/parts/ColGroup.d.ts +7 -0
  37. package/dist/components/ui/data-table/parts/ColGroup.d.ts.map +1 -0
  38. package/dist/components/ui/data-table/parts/SortableHeader.d.ts +13 -0
  39. package/dist/components/ui/data-table/parts/SortableHeader.d.ts.map +1 -0
  40. package/dist/components/ui/data-table/parts/TableBody.d.ts +11 -0
  41. package/dist/components/ui/data-table/parts/TableBody.d.ts.map +1 -0
  42. package/dist/components/ui/data-table/parts/TableHeader.d.ts +15 -0
  43. package/dist/components/ui/data-table/parts/TableHeader.d.ts.map +1 -0
  44. package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts.map +1 -1
  45. package/dist/components/ui/data-table/types.d.ts +18 -10
  46. package/dist/components/ui/data-table/types.d.ts.map +1 -1
  47. package/dist/components/ui/data-table/utils.d.ts +2 -0
  48. package/dist/components/ui/data-table/utils.d.ts.map +1 -1
  49. package/dist/components/ui/date-picker.d.ts +36 -0
  50. package/dist/components/ui/date-picker.d.ts.map +1 -0
  51. package/dist/components/ui/dropdown-menu.d.ts +1 -1
  52. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  53. package/dist/components/ui/form.d.ts +25 -0
  54. package/dist/components/ui/form.d.ts.map +1 -0
  55. package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts +4 -0
  56. package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts.map +1 -0
  57. package/dist/components/ui/hero-metric-card/HeroMetricCardItem.d.ts +4 -0
  58. package/dist/components/ui/hero-metric-card/HeroMetricCardItem.d.ts.map +1 -0
  59. package/dist/components/ui/hero-metric-card/constants.d.ts +13 -0
  60. package/dist/components/ui/hero-metric-card/constants.d.ts.map +1 -0
  61. package/dist/components/ui/hero-metric-card/grid.d.ts +4 -0
  62. package/dist/components/ui/hero-metric-card/grid.d.ts.map +1 -0
  63. package/dist/components/ui/hero-metric-card/hooks.d.ts +6 -0
  64. package/dist/components/ui/hero-metric-card/hooks.d.ts.map +1 -0
  65. package/dist/components/ui/hero-metric-card/index.d.ts +5 -0
  66. package/dist/components/ui/hero-metric-card/index.d.ts.map +1 -0
  67. package/dist/components/ui/hero-metric-card/parsing.d.ts +11 -0
  68. package/dist/components/ui/hero-metric-card/parsing.d.ts.map +1 -0
  69. package/dist/components/ui/hero-metric-card/refs.d.ts +3 -0
  70. package/dist/components/ui/hero-metric-card/refs.d.ts.map +1 -0
  71. package/dist/components/ui/hero-metric-card/trend.d.ts +4 -0
  72. package/dist/components/ui/hero-metric-card/trend.d.ts.map +1 -0
  73. package/dist/components/ui/hero-metric-card/types.d.ts +60 -0
  74. package/dist/components/ui/hero-metric-card/types.d.ts.map +1 -0
  75. package/dist/components/ui/hero-metric-card/utils.d.ts +10 -0
  76. package/dist/components/ui/hero-metric-card/utils.d.ts.map +1 -0
  77. package/dist/components/ui/pagination.d.ts +14 -0
  78. package/dist/components/ui/pagination.d.ts.map +1 -0
  79. package/dist/components/ui/progress.d.ts +1 -0
  80. package/dist/components/ui/progress.d.ts.map +1 -1
  81. package/dist/components/ui/separator.d.ts +5 -0
  82. package/dist/components/ui/separator.d.ts.map +1 -0
  83. package/dist/components/ui/simple-pagination.d.ts +8 -0
  84. package/dist/components/ui/simple-pagination.d.ts.map +1 -0
  85. package/dist/components/ui/sonner.d.ts +4 -0
  86. package/dist/components/ui/sonner.d.ts.map +1 -0
  87. package/dist/components/ui/spinner-carbide.d.ts +5 -0
  88. package/dist/components/ui/spinner-carbide.d.ts.map +1 -0
  89. package/dist/components/ui/spinner.d.ts +4 -0
  90. package/dist/components/ui/spinner.d.ts.map +1 -0
  91. package/dist/components/ui/textarea.d.ts +4 -0
  92. package/dist/components/ui/textarea.d.ts.map +1 -0
  93. package/dist/docs/GETTING_STARTED.md +13 -5
  94. package/dist/index.d.ts +22 -0
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/lib/mm-react-components.css +1 -0
  97. package/dist/main.d.ts +1 -2
  98. package/dist/main.d.ts.map +1 -1
  99. package/dist/mm-react-components.es.js +16536 -7051
  100. package/dist/mm-react-components.es.js.map +1 -1
  101. package/dist/mm-react-components.umd.js +28 -11
  102. package/dist/mm-react-components.umd.js.map +1 -1
  103. package/dist/preview/AlertDialogPreview.d.ts +2 -0
  104. package/dist/preview/AlertDialogPreview.d.ts.map +1 -0
  105. package/dist/preview/AlertPreview.d.ts +2 -0
  106. package/dist/preview/AlertPreview.d.ts.map +1 -0
  107. package/dist/preview/AvatarPreview.d.ts +2 -0
  108. package/dist/preview/AvatarPreview.d.ts.map +1 -0
  109. package/dist/preview/BreadcrumbPreview.d.ts +2 -0
  110. package/dist/preview/BreadcrumbPreview.d.ts.map +1 -0
  111. package/dist/preview/CardPreview.d.ts +2 -0
  112. package/dist/preview/CardPreview.d.ts.map +1 -0
  113. package/dist/preview/ChartPreview.d.ts +2 -0
  114. package/dist/preview/ChartPreview.d.ts.map +1 -0
  115. package/dist/preview/ColorsPreview.d.ts +7 -0
  116. package/dist/preview/ColorsPreview.d.ts.map +1 -0
  117. package/dist/preview/CommandPreview.d.ts +2 -0
  118. package/dist/preview/CommandPreview.d.ts.map +1 -0
  119. package/dist/preview/DataTablePreview.d.ts.map +1 -1
  120. package/dist/preview/DatePickerPreview.d.ts +2 -0
  121. package/dist/preview/DatePickerPreview.d.ts.map +1 -0
  122. package/dist/preview/DateRangePickerPreview.d.ts.map +1 -1
  123. package/dist/preview/FormPreview.d.ts +2 -0
  124. package/dist/preview/FormPreview.d.ts.map +1 -0
  125. package/dist/preview/HeroMetricCardPreview.d.ts +2 -0
  126. package/dist/preview/HeroMetricCardPreview.d.ts.map +1 -0
  127. package/dist/preview/PaginationPreview.d.ts +2 -0
  128. package/dist/preview/PaginationPreview.d.ts.map +1 -0
  129. package/dist/preview/SeparatorPreview.d.ts +2 -0
  130. package/dist/preview/SeparatorPreview.d.ts.map +1 -0
  131. package/dist/preview/SonnerPreview.d.ts +2 -0
  132. package/dist/preview/SonnerPreview.d.ts.map +1 -0
  133. package/dist/preview/SpinnerPreview.d.ts +2 -0
  134. package/dist/preview/SpinnerPreview.d.ts.map +1 -0
  135. package/dist/preview/TextareaPreview.d.ts +2 -0
  136. package/dist/preview/TextareaPreview.d.ts.map +1 -0
  137. package/dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json +577 -0
  138. package/dist/scripts/chakra-to-shadcn-migrator/lib/args.js +63 -0
  139. package/dist/scripts/chakra-to-shadcn-migrator/lib/colors.js +14 -0
  140. package/dist/scripts/chakra-to-shadcn-migrator/lib/config.js +15 -0
  141. package/dist/scripts/chakra-to-shadcn-migrator/lib/deps.js +125 -0
  142. package/dist/scripts/chakra-to-shadcn-migrator/lib/file-io.js +44 -0
  143. package/dist/scripts/chakra-to-shadcn-migrator/lib/render.js +89 -0
  144. package/dist/scripts/chakra-to-shadcn-migrator/lib/transform.js +550 -0
  145. package/dist/scripts/chakra-to-shadcn-migrator/package.json +11 -0
  146. package/dist/scripts/init.cjs +216 -0
  147. package/dist/scripts/npx-init.cjs +418 -0
  148. package/dist/tailwind.base.config.js +89 -0
  149. package/dist/themes/carbide.css +369 -91
  150. package/package.json +40 -10
  151. package/src/index.css +111 -498
  152. package/dist/index.css +0 -536
  153. package/dist/themes/base.css +0 -536
  154. package/dist/themes/complete.css +0 -8
  155. package/scripts/README.md +0 -171
  156. package/scripts/chakra-to-shadcn-migrator/README.md +0 -107
  157. package/src/themes/base.css +0 -536
  158. package/src/themes/carbide.css +0 -1257
  159. package/src/themes/complete.css +0 -8
  160. /package/{scripts → dist/scripts}/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js +0 -0
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @machinemetrics/mm-react-components
2
2
 
3
+ > **🤖 FOR AI AGENTS:** This library has [extensive AI agent documentation](./agent-docs/agent-documentation-reference.md) for setup and Chakra UI migration. See the [`agent-docs/`](./agent-docs/) folder for comprehensive guides.
4
+
3
5
  A comprehensive React component library designed specifically for MachineMetrics industrial and manufacturing applications.
4
6
 
5
7
  ## Features
@@ -10,6 +12,7 @@ A comprehensive React component library designed specifically for MachineMetrics
10
12
  - 🔧 **TypeScript**: Full TypeScript support with comprehensive type definitions
11
13
  - ♿ **Accessible**: WCAG 2.1 AA compliant components
12
14
  - 🚀 **Performance**: Optimized for real-time data display and monitoring
15
+ - 🤖 **AI-Agent Ready**: [Comprehensive AI agent documentation](./agent-docs/) with automated setup and migration tools
13
16
 
14
17
  ## Installation
15
18
 
@@ -17,6 +20,37 @@ A comprehensive React component library designed specifically for MachineMetrics
17
20
  npm install @machinemetrics/mm-react-components
18
21
  ```
19
22
 
23
+ **Required Dependencies:**
24
+
25
+ - React 19+
26
+ - React DOM 19+
27
+
28
+ **Optional Dependencies (only if using `/themes/carbide`):**
29
+
30
+ - Tailwind CSS 4.0+
31
+ - PostCSS 8.5+
32
+ - Autoprefixer 10+
33
+
34
+ > 💡 **Note:** When using `/styles` (recommended), no build tools are required! The CSS is fully compiled.
35
+
36
+ ## 🤖 For AI Agents
37
+
38
+ **This library has comprehensive documentation for AI-assisted development!**
39
+
40
+ - **New Project Setup:** [`agent-docs/ai-agent-init-guide.md`](./agent-docs/ai-agent-init-guide.md)
41
+ - **Chakra UI Migration:** [`agent-docs/ai-agent-guide.md`](./agent-docs/ai-agent-guide.md)
42
+ - **Component Mappings (83 components):** [`agent-docs/component-mapping-summary.md`](./agent-docs/component-mapping-summary.md)
43
+ - **Full Documentation Index:** [`agent-docs/agent-documentation-reference.md`](./agent-docs/agent-documentation-reference.md)
44
+
45
+ **Automated Tools:**
46
+
47
+ - ✅ Init script: `npx @machinemetrics/mm-react-components init`
48
+ - ✅ Migration script: `npx @machinemetrics/mm-react-components chakra-to-shadcn`
49
+ - ✅ 98% automation rate for Chakra UI conversion
50
+ - ✅ Zero-config setup option (no build tools needed!)
51
+
52
+ ---
53
+
20
54
  ## Quick Start
21
55
 
22
56
  ### 🚀 Automated Setup (Recommended)
@@ -43,13 +77,23 @@ This will automatically:
43
77
 
44
78
  If you prefer manual setup:
45
79
 
46
- #### 1. Install Dependencies
80
+ #### 1. Install the Library
47
81
 
48
82
  ```bash
49
- npm install @machinemetrics/mm-react-components tailwindcss postcss autoprefixer
83
+ npm install @machinemetrics/mm-react-components
50
84
  ```
51
85
 
52
- #### 2. Configure Tailwind CSS
86
+ **Optional:** Only install Tailwind if you want to use `/themes/carbide` instead of `/styles`:
87
+
88
+ ```bash
89
+ npm install -D tailwindcss postcss autoprefixer
90
+ ```
91
+
92
+ #### 2. (Optional) Configure Tailwind CSS
93
+
94
+ > 💡 Skip this step if using `/styles` - Tailwind configuration is not needed!
95
+
96
+ **Only if using `/themes/carbide`:**
53
97
 
54
98
  ```bash
55
99
  cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js tailwind.config.js
@@ -57,29 +101,22 @@ cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js ta
57
101
 
58
102
  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.
59
103
 
60
- #### 3. Import Theme (Recommended: JS imports)
104
+ #### 3. Import Styles
61
105
 
62
- Use app-level JavaScript/TypeScript imports so bundlers resolve package subpaths consistently and you can toggle themes at runtime:
106
+ Import the complete styles including Tailwind CSS, base styles, and Carbide theme:
63
107
 
64
108
  ```ts
65
109
  // In your main entry (e.g., src/main.tsx)
66
110
  import '@machinemetrics/mm-react-components/styles';
67
- import '@machinemetrics/mm-react-components/themes/carbide';
68
111
  document.documentElement.classList.add('carbide');
69
112
  ```
70
113
 
71
- Alternatively, you can import the complete theme in CSS:
114
+ **What's included in `/styles` (118 KB, 18 KB gzipped):**
72
115
 
73
- ```css
74
- @import '@machinemetrics/mm-react-components/themes/complete';
75
- ```
76
-
77
- **What's included:**
78
-
79
- - ✅ Tailwind CSS reset
116
+ - ✅ Tailwind CSS reset and utilities (compiled)
80
117
  - ✅ Base theme variables (OKLCH color system)
81
118
  - ✅ Carbide industrial theme
82
- - ✅ All component styles
119
+ - ✅ All component styles (focus states, rings, borders, etc.)
83
120
  - ✅ Dark mode support
84
121
  - ✅ Animations and utilities
85
122
 
@@ -100,9 +137,18 @@ function App() {
100
137
 
101
138
  ### 📚 Documentation
102
139
 
140
+ **For AI Agents:**
141
+
142
+ - [AI Agent Documentation Hub](./agent-docs/agent-documentation-reference.md) - Start here!
143
+ - [Setup Guide for AI Agents](./agent-docs/ai-agent-init-guide.md)
144
+ - [Chakra Migration for AI Agents](./agent-docs/ai-agent-guide.md)
145
+
146
+ **For Developers:**
147
+
103
148
  - [Getting Started Guide](./docs/GETTING_STARTED.md) - Complete setup guide
104
149
  - [Tailwind Setup Guide](./docs/TAILWIND_SETUP.md) - Detailed configuration
105
- - [Quick Start Template](./templates/quick-start.html) - Live demo
150
+ - [Chakra Migration Guide](./docs/CHAKRA_MIGRATION_GUIDE.md) - Detailed migration reference
151
+ - [Component Mapping Summary](./docs/COMPONENT_MAPPING_SUMMARY.md) - All 83 component mappings
106
152
 
107
153
  ## Theme System
108
154
 
@@ -122,24 +168,40 @@ The component library includes a comprehensive theme system with two main themes
122
168
  - Enhanced component styling for industrial applications
123
169
  - Complete dark mode support
124
170
 
125
- ### Using Themes
171
+ ### Import Options
172
+
173
+ #### Option 1: Complete Styles (Recommended - 118 KB gzipped)
126
174
 
127
- #### Option 1: JS Imports (Recommended)
175
+ Import everything including Tailwind utilities, theme, and animations:
128
176
 
129
177
  ```ts
130
178
  import '@machinemetrics/mm-react-components/styles';
131
- import '@machinemetrics/mm-react-components/themes/carbide';
132
179
  document.documentElement.classList.add('carbide');
133
180
  ```
134
181
 
135
- #### Option 2: Manual Theme Import
182
+ **Includes:**
136
183
 
137
- ```css
138
- /* Import themes separately for more control */
139
- @import '@machinemetrics/mm-react-components/themes/base';
140
- @import '@machinemetrics/mm-react-components/themes/carbide';
184
+ - ✅ All Tailwind utilities (compiled)
185
+ - Carbide theme variables
186
+ - ✅ Component styles with focus states
187
+ - ✅ Dark mode support
188
+ - ✅ Animations
189
+
190
+ #### Option 2: Theme Only (41 KB - if you already have Tailwind)
191
+
192
+ Import just the Carbide theme variables and component overrides:
193
+
194
+ ```ts
195
+ import '@machinemetrics/mm-react-components/themes/carbide';
196
+ document.documentElement.classList.add('carbide');
141
197
  ```
142
198
 
199
+ **Use this if:**
200
+
201
+ - You already have Tailwind CSS in your project
202
+ - You want to minimize bundle size
203
+ - You're using our components with your own Tailwind config
204
+
143
205
  #### Option 3: Use Theme Utilities
144
206
 
145
207
  ```tsx
@@ -250,16 +312,13 @@ This includes:
250
312
  ### Alternative Import Methods
251
313
 
252
314
  ```css
253
- /* Import base theme only */
254
- @import '@machinemetrics/mm-react-components/themes/base';
255
-
256
- /* Import Carbide theme for industrial styling */
257
- @import '@machinemetrics/mm-react-components/themes/carbide';
315
+ /* Import complete styles including Carbide theme */
316
+ @import '@machinemetrics/mm-react-components/styles';
258
317
  ```
259
318
 
260
319
  ```tsx
261
320
  // Import in JavaScript/TypeScript
262
- import '@machinemetrics/mm-react-components/themes/complete';
321
+ import '@machinemetrics/mm-react-components/styles';
263
322
  ```
264
323
 
265
324
  ## TypeScript Support
@@ -0,0 +1,364 @@
1
+ # AI Agent Documentation Reference
2
+
3
+ > **🤖 AI AGENT NOTE:** This documentation is designed to be automatically discoverable. AI agents should find this via:
4
+ >
5
+ > - The main `README.md` with prominent AI agent section at the top
6
+ > - This `agent-docs/` folder with descriptive naming
7
+ > - Package.json exports this folder as `./agent-docs`
8
+
9
+ ## Library Foundation
10
+
11
+ **@machinemetrics/mm-react-components** is a **traditional npm package** built on **[shadcn/ui](https://ui.shadcn.com/)** components (Radix UI + Tailwind CSS) with the Carbide industrial theme.
12
+
13
+ **What this means for you:**
14
+
15
+ - ✅ **Standard npm install**: `npm install @machinemetrics/mm-react-components`
16
+ - ✅ **Import components**: `import { Button, DataTable } from '@machinemetrics/mm-react-components'`
17
+ - ✅ **Pre-packaged & themed**: All components ready with Carbide industrial design
18
+ - ✅ **Zero-config option**: Pre-compiled CSS included (no build tools required)
19
+ - ✅ **Accessible & typed**: Full TypeScript support with Radix UI accessibility
20
+
21
+ ### Key Technologies
22
+
23
+ - **React 19**: Latest React with modern patterns
24
+ - **TypeScript 5**: Strict type safety throughout
25
+ - **Tailwind CSS v4**: Modern CSS-first configuration (pre-compiled in distributed CSS)
26
+ - **Radix UI**: Headless, accessible component primitives
27
+ - **shadcn/ui**: Component foundation and patterns
28
+ - **Carbide**: Industrial design system for manufacturing contexts
29
+
30
+ ## Overview
31
+
32
+ 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**.
33
+
34
+ ## Component Quick Reference
35
+
36
+ ### Core Components (shadcn/ui based)
37
+
38
+ | Component | Exports | Description |
39
+ | --------------- | ------------------------------ | ----------------------------------------- |
40
+ | **Button** | `Button`, `buttonVariants` | Primary interactive element with variants |
41
+ | **Input** | `Input` | Text input field |
42
+ | **SearchInput** | `SearchInput` | Search-specific input with icon |
43
+ | **Label** | `Label` | Form label component |
44
+ | **Checkbox** | `Checkbox` | Checkbox input |
45
+ | **RadioGroup** | `RadioGroup`, `RadioGroupItem` | Radio button groups |
46
+ | **Switch** | `Switch` | Toggle switch control |
47
+ | **Slider** | `Slider`, `LabeledSlider` | Range slider with optional label |
48
+ | **Toggle** | `Toggle` | Toggle button |
49
+ | **Textarea** | `Textarea` | Multi-line text input |
50
+
51
+ ### Layout & Navigation
52
+
53
+ | Component | Exports | Description |
54
+ | -------------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
55
+ | **Card** | `Card`, `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, `CardFooter` | Content container with sections |
56
+ | **Separator** | `Separator` | Visual divider |
57
+ | **Tabs** | `Tabs`, `TabsList`, `TabsTrigger`, `TabsContent` | Tabbed interface |
58
+ | **Breadcrumb** | `Breadcrumb`, `BreadcrumbList`, `BreadcrumbItem`, `BreadcrumbLink`, `BreadcrumbPage`, `BreadcrumbSeparator`, `BreadcrumbEllipsis` | Navigation breadcrumbs |
59
+ | **PageHeader** | `PageHeader` (+ types) | Application page header with actions/tabs |
60
+
61
+ ### Overlays & Modals
62
+
63
+ | Component | Exports | Description |
64
+ | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
65
+ | **Dialog** | `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger` | Modal dialog |
66
+ | **AlertDialog** | `AlertDialog`, `AlertDialogPortal`, `AlertDialogOverlay`, `AlertDialogTrigger`, `AlertDialogContent`, `AlertDialogHeader`, `AlertDialogFooter`, `AlertDialogTitle`, `AlertDialogDescription`, `AlertDialogAction`, `AlertDialogCancel` | Confirmation dialog |
67
+ | **Sheet** | `Sheet`, `SheetTrigger`, `SheetClose`, `SheetContent`, `SheetHeader`, `SheetFooter`, `SheetTitle`, `SheetDescription` | Slide-out panel |
68
+ | **Drawer** | `Drawer`, `DrawerTrigger`, `DrawerClose`, `DrawerPortal`, `DrawerOverlay`, `DrawerContent`, `DrawerHeader`, `DrawerFooter`, `DrawerTitle`, `DrawerDescription`, `DrawerHandle` | Bottom drawer (mobile-friendly) |
69
+ | **Popover** | `Popover`, `PopoverTrigger`, `PopoverContent` | Floating content container |
70
+ | **Tooltip** | `Tooltip`, `TooltipTrigger`, `TooltipContent`, `TooltipProvider` | Hover tooltips |
71
+
72
+ ### Menus & Dropdowns
73
+
74
+ | Component | Exports | Description |
75
+ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
76
+ | **DropdownMenu** | `DropdownMenu`, `DropdownMenuPortal`, `DropdownMenuTrigger`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuLabel`, `DropdownMenuItem`, `DropdownMenuCheckboxItem`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubTrigger`, `DropdownMenuSubContent` | Dropdown menu system |
77
+ | **Select** | `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectScrollDownButton`, `SelectScrollUpButton`, `SelectSeparator`, `SelectTrigger`, `SelectValue` | Select dropdown |
78
+
79
+ ### Data Display
80
+
81
+ | Component | Exports | Description |
82
+ | ------------------ | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
83
+ | **Badge** | `Badge`, `badgeVariants` | Status/label badges |
84
+ | **Avatar** | `Avatar`, `AvatarImage`, `AvatarFallback` | User avatar with fallback |
85
+ | **Alert** | `Alert`, `AlertTitle`, `AlertDescription` | Alert messages |
86
+ | **Table** | `Table`, `TableHeader`, `TableBody`, `TableFooter`, `TableHead`, `TableRow`, `TableCell`, `TableCaption` | Basic table structure |
87
+ | **Skeleton** | `Skeleton` | Loading placeholder |
88
+ | **Progress** | `Progress` | Progress bar |
89
+ | **Spinner** | `Spinner` | Basic loading spinner |
90
+ | **SpinnerCarbide** | `SpinnerCarbide` | Industrial-themed loading spinner with Carbide semantics |
91
+
92
+ ### Advanced Components
93
+
94
+ | Component | Exports | Description |
95
+ | ------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
96
+ | **DataTable** | `DataTable`, `DataTablePagination`, `ResponsiveTable`, `TABLE_TOKENS`, column creators, hooks, toolbar, CSV export (+ types) | Full-featured data table with sorting, filtering, pagination |
97
+ | **HeroMetricCard** | `HeroMetricCard`, `HeroMetricCardItem` (+ types) | Metrics dashboard card with trends |
98
+ | **Calendar** | `Calendar` | Date picker calendar |
99
+ | **DatePicker** | `DatePicker` | Single date selection with label and placeholder |
100
+ | **DateRangePicker** | `DateRangePicker` | Date range selection |
101
+ | **Dropzone** | `Dropzone`, `DropzoneContent`, `DropzoneEmptyState` | File upload drag-drop |
102
+ | **Chart** | `ChartContainer`, `ChartTooltip`, `ChartTooltipContent`, `ChartLegend`, `ChartLegendContent`, `ChartStyle` (+ `ChartConfig` type) | Recharts integration |
103
+
104
+ ### Interactive Elements
105
+
106
+ | Component | Exports | Description |
107
+ | --------------- | ------------------------------------------------------------------------------------------------------------- | ---------------------------- |
108
+ | **Accordion** | `Accordion`, `AccordionItem`, `AccordionTrigger`, `AccordionContent` | Collapsible sections |
109
+ | **Collapsible** | `Collapsible`, `CollapsibleTrigger`, `CollapsibleContent` | Simple collapse/expand |
110
+ | **Form** | `useFormField`, `Form`, `FormItem`, `FormLabel`, `FormControl`, `FormDescription`, `FormMessage`, `FormField` | React Hook Form integration |
111
+ | **Toaster** | `Toaster` | Toast notifications (Sonner) |
112
+
113
+ ### Utilities
114
+
115
+ | Export | Description |
116
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
117
+ | `cn` | Class name utility for merging Tailwind classes |
118
+ | **Theme Utils** | `activateCarbideTheme`, `deactivateCarbideTheme`, `toggleCarbideTheme`, `isCarbideThemeActive`, `activateDarkMode`, `deactivateDarkMode`, `toggleDarkMode`, `isDarkModeActive` |
119
+
120
+ ### Total: 42+ Components
121
+
122
+ All components follow shadcn/ui patterns with Carbide theme integration for industrial/manufacturing contexts.
123
+
124
+ ## Directory Structure
125
+
126
+ ```
127
+ agent-docs/
128
+ ├── agent-documentation-reference.md # This reference file
129
+ ├── ai-agent-init-guide.md # Main init setup guide
130
+ ├── setup-reference.md # Detailed setup reference
131
+ ├── init-troubleshooting.md # Init setup troubleshooting
132
+ ├── init-readme.md # Init setup overview
133
+ ├── ai-agent-guide.md # Chakra migration guide
134
+ ├── component-mapping-reference.md # Chakra migration reference
135
+ ├── chakra-migration-troubleshooting.md # Chakra migration troubleshooting
136
+ └── chakra-migration-readme.md # Chakra migration overview
137
+ ```
138
+
139
+ ## Documentation Categories
140
+
141
+ ### 1. Initialization Setup Documentation
142
+
143
+ #### **ai-agent-init-guide.md**
144
+
145
+ - **Purpose**: Comprehensive guide for AI agents on library setup
146
+ - **Use Case**: When AI agents need to initialize the MachineMetrics React Components library
147
+ - **Key Features**:
148
+ - Zero-config setup (no build tools required)
149
+ - Automated setup procedures
150
+ - Framework-specific instructions (React, Next.js, Vite)
151
+ - Troubleshooting guidance
152
+ - Validation checklists
153
+ - **Target Audience**: AI agents performing automated setup
154
+ - **When to Use**: Primary resource for init script setup
155
+
156
+ #### **setup-reference.md**
157
+
158
+ - **Purpose**: Detailed reference for setup procedures
159
+ - **Use Case**: When AI agents need specific technical details about setup
160
+ - **Key Features**:
161
+ - Complete dependency list
162
+ - Configuration file templates
163
+ - Framework-specific setup instructions
164
+ - Component usage patterns
165
+ - Performance optimization
166
+ - **Target Audience**: AI agents needing technical reference
167
+ - **When to Use**: Technical reference during setup or troubleshooting
168
+
169
+ #### **init-troubleshooting.md**
170
+
171
+ - **Purpose**: Common issues and solutions for init script problems
172
+ - **Use Case**: When the init script fails or encounters issues
173
+ - **Key Features**:
174
+ - Script execution issues
175
+ - Dependency installation problems
176
+ - Configuration issues
177
+ - Build and runtime problems
178
+ - Framework-specific troubleshooting
179
+ - **Target Audience**: AI agents debugging setup issues
180
+ - **When to Use**: When automated setup fails or encounters errors
181
+
182
+ #### **init-readme.md**
183
+
184
+ - **Purpose**: Overview and usage instructions for init setup
185
+ - **Use Case**: Quick reference for init setup process
186
+ - **Key Features**:
187
+ - Quick start instructions
188
+ - File descriptions
189
+ - Usage examples
190
+ - Validation steps
191
+ - **Target Audience**: AI agents needing quick overview
192
+ - **When to Use**: Initial understanding of init setup process
193
+
194
+ ### 2. Chakra UI Migration Documentation
195
+
196
+ #### **ai-agent-guide.md**
197
+
198
+ - **Purpose**: Comprehensive guide for AI agents on Chakra UI to MachineMetrics migration
199
+ - **Use Case**: When AI agents need to migrate existing Chakra UI components
200
+ - **Key Features**:
201
+ - Automated migration procedures
202
+ - Manual conversion steps
203
+ - Component mapping instructions
204
+ - Icon migration guidance
205
+ - Validation checklists
206
+ - **Target Audience**: AI agents performing Chakra UI migration
207
+ - **When to Use**: Primary resource for Chakra UI migration
208
+
209
+ #### **component-mapping-reference.md**
210
+
211
+ - **Purpose**: Detailed reference of component mappings for Chakra UI migration
212
+ - **Use Case**: When AI agents need specific component mapping information
213
+ - **Key Features**:
214
+ - Complete component mapping tables
215
+ - Prop mapping references
216
+ - Styling conversion guides
217
+ - Icon mapping tables
218
+ - Migration patterns
219
+ - **Target Audience**: AI agents needing component mapping details
220
+ - **When to Use**: Technical reference during Chakra UI migration
221
+
222
+ #### **chakra-migration-troubleshooting.md**
223
+
224
+ - **Purpose**: Common issues and solutions for Chakra UI migration problems
225
+ - **Use Case**: When Chakra UI migration encounters issues
226
+ - **Key Features**:
227
+ - Import errors and solutions
228
+ - Theme and styling issues
229
+ - Layout problems
230
+ - API changes
231
+ - Icon issues
232
+ - Form component problems
233
+ - **Target Audience**: AI agents debugging migration issues
234
+ - **When to Use**: When Chakra UI migration fails or encounters errors
235
+
236
+ #### **chakra-migration-readme.md**
237
+
238
+ - **Purpose**: Overview and usage instructions for Chakra UI migration
239
+ - **Use Case**: Quick reference for Chakra UI migration process
240
+ - **Key Features**:
241
+ - Migration overview
242
+ - File descriptions
243
+ - Usage examples
244
+ - Troubleshooting tips
245
+ - **Target Audience**: AI agents needing quick migration overview
246
+ - **When to Use**: Initial understanding of Chakra UI migration process
247
+
248
+ ## Usage Patterns
249
+
250
+ ### For AI Agents
251
+
252
+ #### **Initialization Setup Workflow**
253
+
254
+ 1. **Start with**: `ai-agent-init-guide.md` for comprehensive setup instructions
255
+ 2. **Reference**: `setup-reference.md` for technical details
256
+ 3. **Troubleshoot**: `init-troubleshooting.md` if issues arise
257
+ 4. **Overview**: `init-readme.md` for quick reference
258
+
259
+ #### **Chakra UI Migration Workflow**
260
+
261
+ 1. **Start with**: `ai-agent-guide.md` for comprehensive migration instructions
262
+ 2. **Reference**: `component-mapping-reference.md` for component details
263
+ 3. **Troubleshoot**: `chakra-migration-troubleshooting.md` if issues arise
264
+ 4. **Overview**: `chakra-migration-readme.md` for quick reference
265
+
266
+ ### For Developers
267
+
268
+ #### **Quick Start**
269
+
270
+ - Use `init-readme.md` for setup overview
271
+ - Use `chakra-migration-readme.md` for migration overview
272
+
273
+ #### **Detailed Implementation**
274
+
275
+ - Use `ai-agent-init-guide.md` for setup implementation
276
+ - Use `ai-agent-guide.md` for migration implementation
277
+
278
+ #### **Troubleshooting**
279
+
280
+ - Use `init-troubleshooting.md` for setup issues
281
+ - Use `chakra-migration-troubleshooting.md` for migration issues
282
+
283
+ ## File Relationships
284
+
285
+ ### **Init Setup Files**
286
+
287
+ ```
288
+ ai-agent-init-guide.md (main guide)
289
+ ├── setup-reference.md (technical reference)
290
+ ├── init-troubleshooting.md (issue resolution)
291
+ └── init-readme.md (overview)
292
+ ```
293
+
294
+ ### **Chakra Migration Files**
295
+
296
+ ```
297
+ ai-agent-guide.md (main guide)
298
+ ├── component-mapping-reference.md (technical reference)
299
+ ├── chakra-migration-troubleshooting.md (issue resolution)
300
+ └── chakra-migration-readme.md (overview)
301
+ ```
302
+
303
+ ## Package.json Exports
304
+
305
+ The following files are exported via package.json for AI agent access:
306
+
307
+ ### **Init Setup Exports**
308
+
309
+ - `./init/guide` → `ai-agent-init-guide.md`
310
+ - `./init/reference` → `setup-reference.md`
311
+ - `./init/troubleshooting` → `init-troubleshooting.md`
312
+ - `./init/readme` → `init-readme.md`
313
+
314
+ ### **Chakra Migration Exports**
315
+
316
+ - `./migration/config` → `chakra-to-shadcn.config.json`
317
+ - `./migration/guide` → `ai-agent-guide.md`
318
+ - `./migration/reference` → `component-mapping-reference.md`
319
+ - `./migration/troubleshooting` → `chakra-migration-troubleshooting.md`
320
+ - `./migration/readme` → `chakra-migration-readme.md`
321
+
322
+ ## Best Practices
323
+
324
+ ### **For AI Agents**
325
+
326
+ 1. **Always start with the main guide** for comprehensive instructions
327
+ 2. **Use reference files** for technical details and specific information
328
+ 3. **Check troubleshooting guides** when issues arise
329
+ 4. **Use fallback scripts** when automated tools fail
330
+ 5. **Validate setup** using provided checklists
331
+
332
+ ### **For Documentation Maintenance**
333
+
334
+ 1. **Keep guides updated** with new components and features
335
+ 2. **Update troubleshooting guides** with new issues and solutions
336
+ 3. **Maintain reference files** with current dependency versions
337
+ 4. **Test fallback scripts** regularly to ensure they work
338
+ 5. **Update package.json exports** when adding new files
339
+
340
+ ## Support and Resources
341
+
342
+ ### **Documentation**
343
+
344
+ - [Component Library Docs](https://components.machinemetrics.com)
345
+ - [API Reference](https://components.machinemetrics.com/api)
346
+ - [Getting Started Guide](https://components.machinemetrics.com/getting-started)
347
+
348
+ ### **Community Support**
349
+
350
+ - [GitHub Issues](https://github.com/machinemetrics/mm-react-components/issues)
351
+ - [Discord Community](https://discord.gg/machinemetrics)
352
+ - [Stack Overflow](https://stackoverflow.com/questions/tagged/machinemetrics)
353
+
354
+ ### **Professional Support**
355
+
356
+ - [MachineMetrics Support](https://support.machinemetrics.com)
357
+ - [Enterprise Support](https://enterprise.machinemetrics.com)
358
+ - [Consulting Services](https://consulting.machinemetrics.com)
359
+
360
+ ## Conclusion
361
+
362
+ 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.
363
+
364
+ 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.