trevor-ui 1.1.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.
package/package.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "name": "trevor-ui",
3
+ "private": false,
4
+ "version": "1.1.1",
5
+ "description": "A modern React component library built with TypeScript, Tailwind CSS v4, and comprehensive testing",
6
+ "type": "module",
7
+ "main": "dist/lib/index.js",
8
+ "module": "dist/lib/index.es.js",
9
+ "types": "dist/lib/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/lib/index.d.ts",
13
+ "import": "./dist/lib/index.es.js",
14
+ "require": "./dist/lib/index.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "keywords": [
24
+ "react",
25
+ "typescript",
26
+ "tailwind",
27
+ "component-library",
28
+ "ui-components",
29
+ "design-system"
30
+ ],
31
+ "author": "Trevor H",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/trevorh2007/trevor-ui.git"
36
+ },
37
+ "homepage": "https://trevorh2007.github.io/trevor-ui/",
38
+ "bugs": {
39
+ "url": "https://github.com/trevorh2007/trevor-ui/issues"
40
+ },
41
+ "engines": {
42
+ "node": ">=18.0.0",
43
+ "npm": ">=9.0.0"
44
+ },
45
+ "scripts": {
46
+ "generate:registry": "node scripts/generate-component-registry.cjs",
47
+ "dev": "npm run generate:registry && vite --config config/vite.config.ts",
48
+ "build": "npm run generate:registry && tsc -b && vite build --config config/vite.config.ts",
49
+ "build:lib": "npm run generate:registry && vite build --mode library --config config/vite.config.ts",
50
+ "test": "jest --config config/jest.config.json",
51
+ "test:watch": "jest --watch --config config/jest.config.json",
52
+ "test:coverage": "jest --coverage --config config/jest.config.json && node scripts/copy-coverage.js",
53
+ "test:coverage:copy": "node scripts/copy-coverage.js",
54
+ "test:ci": "jest --config config/jest.config.json --coverage --watchAll=false --passWithNoTests",
55
+ "lint": "eslint . --config config/eslint.config.js",
56
+ "lint:fix": "eslint . --config config/eslint.config.js --fix",
57
+ "format": "prettier --write . --config config/prettier.config.json",
58
+ "format:check": "prettier --check . --config config/prettier.config.json",
59
+ "type-check": "tsc --noEmit",
60
+ "fix": "npm run lint:fix && npm run format",
61
+ "validate": "npm run lint && npm run format:check && npm run type-check && npm run test:ci",
62
+ "preview": "vite preview --config config/vite.config.ts",
63
+ "clean": "rimraf dist coverage",
64
+ "prepare": "husky",
65
+ "prepublishOnly": "npm run generate:registry && npm run clean && npm run type-check && npm run test:ci && npm run build:lib"
66
+ },
67
+ "lint-staged": {
68
+ "*.{ts,tsx}": [
69
+ "eslint --config config/eslint.config.js --fix",
70
+ "prettier --write --config config/prettier.config.json"
71
+ ],
72
+ "*.{js,jsx,json,css,md}": [
73
+ "prettier --write --config config/prettier.config.json"
74
+ ]
75
+ },
76
+ "peerDependencies": {
77
+ "react": ">=18.0.0",
78
+ "react-dom": ">=18.0.0"
79
+ },
80
+ "dependencies": {
81
+ "@heroicons/react": "^2.2.0",
82
+ "react": ">=18.0.0",
83
+ "react-dom": ">=18.0.0",
84
+ "react-router-dom": "^7.9.5"
85
+ },
86
+ "devDependencies": {
87
+ "@eslint/js": "^9.36.0",
88
+ "@tailwindcss/postcss": "^4.1.16",
89
+ "@testing-library/jest-dom": "^6.9.1",
90
+ "@testing-library/react": "^16.3.0",
91
+ "@testing-library/user-event": "^14.6.1",
92
+ "@types/jest": "^30.0.0",
93
+ "@types/node": "^24.6.0",
94
+ "@types/react": "^19.1.16",
95
+ "@types/react-dom": "^19.1.9",
96
+ "@types/react-router-dom": "^5.3.3",
97
+ "@vitejs/plugin-react": "^5.0.4",
98
+ "autoprefixer": "^10.4.21",
99
+ "eslint": "^9.36.0",
100
+ "eslint-plugin-react-hooks": "^5.2.0",
101
+ "eslint-plugin-react-refresh": "^0.4.22",
102
+ "gh-pages": "^6.3.0",
103
+ "globals": "^16.4.0",
104
+ "husky": "^9.1.7",
105
+ "identity-obj-proxy": "^3.0.0",
106
+ "jest": "^30.2.0",
107
+ "jest-environment-jsdom": "^30.2.0",
108
+ "lint-staged": "^15.3.0",
109
+ "postcss": "^8.5.6",
110
+ "prettier": "^3.6.2",
111
+ "rimraf": "^6.0.1",
112
+ "tailwindcss": "^4.1.16",
113
+ "ts-jest": "^29.4.5",
114
+ "typescript": "~5.9.3",
115
+ "typescript-eslint": "^8.45.0",
116
+ "vite": "^7.1.7"
117
+ }
118
+ }