@machinemetrics/mm-react-components 0.1.1-0 → 0.2.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +218 -0
  3. package/dist/App.d.ts +3 -0
  4. package/dist/App.d.ts.map +1 -0
  5. package/dist/components/ui/button.d.ts +23 -0
  6. package/dist/components/ui/button.d.ts.map +1 -0
  7. package/dist/components/ui/checkbox.d.ts +17 -0
  8. package/dist/components/ui/checkbox.d.ts.map +1 -0
  9. package/dist/components/ui/input.d.ts +18 -0
  10. package/dist/components/ui/input.d.ts.map +1 -0
  11. package/dist/components/ui/label.d.ts +14 -0
  12. package/dist/components/ui/label.d.ts.map +1 -0
  13. package/dist/components/ui/radio-group.d.ts +25 -0
  14. package/dist/components/ui/radio-group.d.ts.map +1 -0
  15. package/dist/index.d.ts +8 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/lib/theme-utils.d.ts +104 -0
  18. package/dist/lib/theme-utils.d.ts.map +1 -0
  19. package/dist/lib/utils.d.ts +3 -0
  20. package/dist/lib/utils.d.ts.map +1 -0
  21. package/dist/main.d.ts +3 -0
  22. package/dist/main.d.ts.map +1 -0
  23. package/dist/mm-react-components.es.js +4873 -26
  24. package/dist/mm-react-components.es.js.map +1 -0
  25. package/dist/mm-react-components.umd.js +36 -1
  26. package/dist/mm-react-components.umd.js.map +1 -0
  27. package/dist/preview/ButtonPreview.d.ts +2 -0
  28. package/dist/preview/ButtonPreview.d.ts.map +1 -0
  29. package/dist/preview/CheckboxPreview.d.ts +2 -0
  30. package/dist/preview/CheckboxPreview.d.ts.map +1 -0
  31. package/dist/preview/InputPreview.d.ts +2 -0
  32. package/dist/preview/InputPreview.d.ts.map +1 -0
  33. package/dist/preview/LabelPreview.d.ts +2 -0
  34. package/dist/preview/LabelPreview.d.ts.map +1 -0
  35. package/dist/preview/RadioGroupPreview.d.ts +2 -0
  36. package/dist/preview/RadioGroupPreview.d.ts.map +1 -0
  37. package/package.json +88 -15
@@ -0,0 +1,2 @@
1
+ export default function ButtonPreview(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=ButtonPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonPreview.d.ts","sourceRoot":"","sources":["../../src/preview/ButtonPreview.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,aAAa,4CA2DpC"}
@@ -0,0 +1,2 @@
1
+ export default function CheckboxPreview(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=CheckboxPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxPreview.d.ts","sourceRoot":"","sources":["../../src/preview/CheckboxPreview.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,eAAe,4CAgEtC"}
@@ -0,0 +1,2 @@
1
+ export default function InputPreview(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=InputPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputPreview.d.ts","sourceRoot":"","sources":["../../src/preview/InputPreview.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,YAAY,4CA4CnC"}
@@ -0,0 +1,2 @@
1
+ export default function LabelPreview(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=LabelPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelPreview.d.ts","sourceRoot":"","sources":["../../src/preview/LabelPreview.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAwDnC"}
@@ -0,0 +1,2 @@
1
+ export default function RadioGroupPreview(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=RadioGroupPreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroupPreview.d.ts","sourceRoot":"","sources":["../../src/preview/RadioGroupPreview.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,iBAAiB,4CAqFxC"}
package/package.json CHANGED
@@ -1,29 +1,102 @@
1
1
  {
2
2
  "name": "@machinemetrics/mm-react-components",
3
- "version": "0.1.1-0",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
- "module": "dist/mm-react-components.es.js",
6
- "source": "src/index.js",
7
5
  "type": "module",
6
+ "main": "dist/mm-react-components.umd.js",
7
+ "module": "dist/mm-react-components.es.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/mm-react-components.es.js",
13
+ "require": "./dist/mm-react-components.umd.js"
14
+ },
15
+ "./styles": "./dist/style.css",
16
+ "./themes/base": "./src/index.css",
17
+ "./themes/carbide": "./src/themes/carbide.css"
18
+ },
8
19
  "engines": {
9
20
  "node": ">=20"
10
21
  },
11
22
  "scripts": {
12
- "build": "vite build",
13
- "start": "vite build --watch"
23
+ "build": "vite build --mode production && tsc --project tsconfig.build.json",
24
+ "build:dev": "vite build --mode development",
25
+ "dev": "vite",
26
+ "preview": "vite preview",
27
+ "lint": "eslint . --max-warnings 0",
28
+ "lint:fix": "eslint . --fix",
29
+ "type-check": "tsc --noEmit",
30
+ "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
31
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
32
+ "test": "playwright test",
33
+ "test:ui": "playwright test --ui",
34
+ "test:headed": "playwright test --headed",
35
+ "test:visual": "playwright test --config=playwright.config.ts",
36
+ "test:visual:ui": "playwright test --config=playwright.config.ts --ui",
37
+ "test:visual:update": "playwright test --config=playwright.config.ts --update-snapshots",
38
+ "test:visual:ci": "playwright test --config=playwright.config.ts --reporter=github",
39
+ "update-components": "tsx scripts/update-components.ts",
40
+ "update-components:bash": "./scripts/update-components.sh",
41
+ "update-components:full": "tsx scripts/update-components.ts && tsx scripts/apply-customizations.ts",
42
+ "apply-customizations": "tsx scripts/apply-customizations.ts",
43
+ "generate-visual-tests": "npx tsx scripts/generate-visual-tests.ts",
44
+ "generate-visual-tests:overwrite": "npx tsx scripts/generate-visual-tests.ts --overwrite",
45
+ "create-component": "tsx scripts/create-component.ts",
46
+ "shadcn:add": "shadcn add",
47
+ "shadcn:diff": "shadcn diff",
48
+ "shadcn:init": "shadcn init",
49
+ "ci:setup": "npm run test:visual:update",
50
+ "ci:check": "npm run build && npm run test:visual",
51
+ "prepublishOnly": "npm run type-check && npm run lint && npm run build",
52
+ "clean": "rm -rf dist dev-dist"
14
53
  },
15
- "devDependencies": {
16
- "prettier": "^3.3.3",
17
- "vite": "^6.1.0"
54
+ "dependencies": {
55
+ "@radix-ui/react-checkbox": "^1.3.3",
56
+ "@radix-ui/react-dialog": "^1.1.15",
57
+ "@radix-ui/react-label": "^2.1.7",
58
+ "@radix-ui/react-radio-group": "^1.3.8",
59
+ "@radix-ui/react-select": "^2.2.6",
60
+ "@radix-ui/react-slot": "^1.2.3",
61
+ "class-variance-authority": "^0.7.1",
62
+ "clsx": "^2.1.1",
63
+ "lucide-react": "^0.544.0",
64
+ "react": "^19.1.1",
65
+ "react-dom": "^19.1.1",
66
+ "tailwind-merge": "^3.3.1",
67
+ "tw-animate-css": "^1.3.8"
18
68
  },
19
- "peerDependencies": {
20
- "@chakra-ui/react": "^2.10.5",
21
- "react": ">=16.0.0",
22
- "react-dom": ">=16.0.0",
23
- "react-router-dom": "^6.29.0",
24
- "styled-components": ">=4.0.0"
69
+ "devDependencies": {
70
+ "@eslint/js": "^9.33.0",
71
+ "@playwright/test": "^1.55.0",
72
+ "@tailwindcss/vite": "^4.1.13",
73
+ "@types/node": "^24.5.0",
74
+ "@types/react": "^19.1.10",
75
+ "@types/react-dom": "^19.1.7",
76
+ "@typescript-eslint/eslint-plugin": "^8.43.0",
77
+ "@typescript-eslint/parser": "^8.43.0",
78
+ "@vitejs/plugin-react": "^5.0.0",
79
+ "eslint": "^9.33.0",
80
+ "eslint-config-prettier": "^10.1.8",
81
+ "eslint-plugin-jsx-a11y": "^6.10.2",
82
+ "eslint-plugin-prettier": "^5.5.4",
83
+ "eslint-plugin-react": "^7.37.5",
84
+ "eslint-plugin-react-hooks": "^5.2.0",
85
+ "eslint-plugin-react-refresh": "^0.4.20",
86
+ "globals": "^16.3.0",
87
+ "playwright": "^1.55.0",
88
+ "prettier": "^3.6.2",
89
+ "tailwindcss": "^4.1.13",
90
+ "terser": "^5.44.0",
91
+ "tsx": "^4.19.2",
92
+ "typescript": "~5.8.3",
93
+ "typescript-eslint": "^8.39.1",
94
+ "vite": "^7.1.2"
25
95
  },
26
96
  "files": [
27
- "dist"
97
+ "dist",
98
+ "README.md",
99
+ "CHANGELOG.md",
100
+ "LICENSE"
28
101
  ]
29
102
  }