@machinemetrics/mm-react-components 0.2.3-0 → 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 +119 -33
- 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 +332 -0
- 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/docs/TAILWIND_SETUP.md +8 -1
- package/dist/index.d.ts +18 -3
- 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 +11015 -926
- 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/docs/TAILWIND_SETUP.md +8 -1
- package/package.json +59 -9
- package/src/index.css +99 -498
- package/dist/index.css +0 -536
- package/dist/tailwind.config.export.js +0 -153
- package/scripts/README.md +0 -171
- package/scripts/chakra-to-shadcn-migrator/README.md +0 -107
- package/src/themes/carbide.css +0 -1257
- package/tailwind.config.export.js +0 -153
- /package/{scripts → dist/scripts}/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js +0 -0
package/docs/TAILWIND_SETUP.md
CHANGED
|
@@ -20,7 +20,14 @@ cp node_modules/@machinemetrics/mm-react-components/tailwind.config.export.js ta
|
|
|
20
20
|
|
|
21
21
|
### 3. Import Theme CSS
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Option A: Complete All-in-One (Recommended)**
|
|
24
|
+
|
|
25
|
+
```css
|
|
26
|
+
/* Import everything in one go - includes Tailwind reset, base theme, and Carbide theme */
|
|
27
|
+
@import '@machinemetrics/mm-react-components/themes/complete';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Option B: Manual Setup**
|
|
24
31
|
|
|
25
32
|
```css
|
|
26
33
|
/* Import base theme */
|
package/package.json
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machinemetrics/mm-react-components",
|
|
3
|
-
"version": "0.2.3-
|
|
3
|
+
"version": "0.2.3-10",
|
|
4
|
+
"description": "Industrial-grade React components for manufacturing applications",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"components",
|
|
8
|
+
"industrial",
|
|
9
|
+
"manufacturing",
|
|
10
|
+
"tailwind",
|
|
11
|
+
"shadcn"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/machinemetrics/mm-react-components#readme",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/machinemetrics/mm-react-components.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/machinemetrics/mm-react-components/issues"
|
|
20
|
+
},
|
|
4
21
|
"license": "MIT",
|
|
5
22
|
"type": "module",
|
|
6
23
|
"main": "dist/mm-react-components.umd.js",
|
|
@@ -12,17 +29,39 @@
|
|
|
12
29
|
"import": "./dist/mm-react-components.es.js",
|
|
13
30
|
"require": "./dist/mm-react-components.umd.js"
|
|
14
31
|
},
|
|
15
|
-
"./styles": "./dist/
|
|
16
|
-
"./themes/base": "./dist/index.css",
|
|
32
|
+
"./styles": "./dist/lib/mm-react-components.css",
|
|
17
33
|
"./themes/carbide": "./dist/themes/carbide.css",
|
|
18
|
-
"./tailwind.config": "./tailwind.config.
|
|
19
|
-
"./docs/tailwind-setup": "./docs/TAILWIND_SETUP.md"
|
|
34
|
+
"./tailwind.config": "./dist/tailwind.base.config.js",
|
|
35
|
+
"./docs/tailwind-setup": "./docs/TAILWIND_SETUP.md",
|
|
36
|
+
"./docs/getting-started": "./dist/docs/GETTING_STARTED.md",
|
|
37
|
+
"./README": "./dist/README.md",
|
|
38
|
+
"./migration/config": "./dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json",
|
|
39
|
+
"./agent-docs": "./agent-docs/"
|
|
20
40
|
},
|
|
21
41
|
"engines": {
|
|
22
42
|
"node": ">=20"
|
|
23
43
|
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^19.1.1",
|
|
46
|
+
"react-dom": "^19.1.1",
|
|
47
|
+
"tailwindcss": "^4.0.0",
|
|
48
|
+
"postcss": "^8.5.6",
|
|
49
|
+
"autoprefixer": "^10.0.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependenciesMeta": {
|
|
52
|
+
"tailwindcss": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"postcss": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"autoprefixer": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
61
|
+
},
|
|
24
62
|
"bin": {
|
|
25
|
-
"chakra-to-shadcn": "scripts/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js"
|
|
63
|
+
"chakra-to-shadcn": "dist/scripts/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js",
|
|
64
|
+
"mm-init": "dist/scripts/init.cjs"
|
|
26
65
|
},
|
|
27
66
|
"scripts": {
|
|
28
67
|
"build": "vite build --mode production && tsc --project tsconfig.build.json",
|
|
@@ -62,7 +101,10 @@
|
|
|
62
101
|
"@dnd-kit/modifiers": "9.0.0",
|
|
63
102
|
"@dnd-kit/sortable": "10.0.0",
|
|
64
103
|
"@dnd-kit/utilities": "3.2.2",
|
|
104
|
+
"@hookform/resolvers": "^5.2.2",
|
|
65
105
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
106
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
107
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
66
108
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
67
109
|
"@radix-ui/react-collapsible": "^1.1.12",
|
|
68
110
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -72,6 +114,7 @@
|
|
|
72
114
|
"@radix-ui/react-progress": "^1.1.7",
|
|
73
115
|
"@radix-ui/react-radio-group": "^1.3.8",
|
|
74
116
|
"@radix-ui/react-select": "^2.2.6",
|
|
117
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
75
118
|
"@radix-ui/react-slider": "^1.3.6",
|
|
76
119
|
"@radix-ui/react-slot": "^1.2.3",
|
|
77
120
|
"@radix-ui/react-switch": "^1.2.6",
|
|
@@ -84,17 +127,23 @@
|
|
|
84
127
|
"clsx": "^2.1.1",
|
|
85
128
|
"date-fns": "^4.1.0",
|
|
86
129
|
"lucide-react": "^0.544.0",
|
|
130
|
+
"next-themes": "^0.4.6",
|
|
87
131
|
"react": "^19.1.1",
|
|
88
132
|
"react-day-picker": "^9.11.0",
|
|
89
133
|
"react-dom": "^19.1.1",
|
|
90
134
|
"react-dropzone": "14.3.8",
|
|
135
|
+
"react-hook-form": "^7.64.0",
|
|
136
|
+
"recharts": "^2.15.4",
|
|
137
|
+
"sonner": "^2.0.7",
|
|
91
138
|
"tailwind-merge": "^3.3.1",
|
|
92
139
|
"tw-animate-css": "^1.3.8",
|
|
93
|
-
"vaul": "^1.1.2"
|
|
140
|
+
"vaul": "^1.1.2",
|
|
141
|
+
"zod": "^4.1.12"
|
|
94
142
|
},
|
|
95
143
|
"devDependencies": {
|
|
96
144
|
"@eslint/js": "^9.33.0",
|
|
97
145
|
"@playwright/test": "^1.55.0",
|
|
146
|
+
"@tailwindcss/postcss": "^4.1.13",
|
|
98
147
|
"@tailwindcss/vite": "^4.1.13",
|
|
99
148
|
"@types/node": "^24.5.0",
|
|
100
149
|
"@types/react": "^19.1.10",
|
|
@@ -103,6 +152,7 @@
|
|
|
103
152
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
104
153
|
"@typescript-eslint/parser": "^8.43.0",
|
|
105
154
|
"@vitejs/plugin-react": "^5.0.0",
|
|
155
|
+
"autoprefixer": "^10.4.21",
|
|
106
156
|
"eslint": "^9.33.0",
|
|
107
157
|
"eslint-config-prettier": "^10.1.8",
|
|
108
158
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -113,7 +163,7 @@
|
|
|
113
163
|
"globals": "^16.3.0",
|
|
114
164
|
"playwright": "^1.55.0",
|
|
115
165
|
"prettier": "^3.6.2",
|
|
116
|
-
"tailwindcss": "^4.1.
|
|
166
|
+
"tailwindcss": "^4.1.14",
|
|
117
167
|
"terser": "^5.44.0",
|
|
118
168
|
"tsx": "^4.19.2",
|
|
119
169
|
"typescript": "~5.8.3",
|
|
@@ -122,8 +172,8 @@
|
|
|
122
172
|
},
|
|
123
173
|
"files": [
|
|
124
174
|
"dist",
|
|
175
|
+
"agent-docs",
|
|
125
176
|
"src/index.css",
|
|
126
|
-
"src/themes",
|
|
127
177
|
"tailwind.config.export.js",
|
|
128
178
|
"docs/TAILWIND_SETUP.md",
|
|
129
179
|
"README.md",
|