pejay-ui 1.4.1 → 1.4.3

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 (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +76 -54
package/README.md CHANGED
@@ -46,6 +46,14 @@ import { Input, Checkbox, AmountInput } from "@/pejay-ui/components";
46
46
  **Component-Specific Documentation (READMEs):**
47
47
  Certain components (like `toast`) ship with localized `README.md` guides. When you install them, the CLI automatically copies their detailed usage documentation directly into the component's folder (e.g., `src/pejay-ui/components/toast/README.md`) so you have helper docs right next to the code.
48
48
 
49
+ **Overwrite Protection:**
50
+ To prevent accidentally overwriting any custom modifications you have made to your components, the CLI checks if the component is already tracked in `pejay-ui.json` or if its files already exist in your workspace. It will ask for confirmation before overwriting:
51
+ ```
52
+ ? Component '<name>' is already present in your project. Overwriting it will discard any local changes you have made. Do you want to proceed and overwrite it? (y/N)
53
+ ```
54
+ - Choosing **No** safely skips the installation, preserving your local changes.
55
+ - Choosing **Yes** overwrites the files with a fresh copy of the component template.
56
+
49
57
  ### 3. Remove Component
50
58
  ```bash
51
59
  npx pejay-ui remove <component-name>
package/package.json CHANGED
@@ -1,54 +1,76 @@
1
- {
2
- "name": "pejay-ui",
3
- "version": "1.4.1",
4
- "type": "module",
5
- "description": "react ui components",
6
- "bin": {
7
- "pejay-ui": "bin/cli.js"
8
- },
9
- "files": [
10
- "bin/",
11
- "templates/",
12
- "utils/",
13
- "registry/"
14
- ],
15
- "keywords": [
16
- "react",
17
- "components",
18
- "ui",
19
- "cli"
20
- ],
21
- "license": "MIT",
22
- "dependencies": {
23
- "@babel/core": "^7.24.0",
24
- "@babel/preset-typescript": "^7.24.0",
25
- "commander": "^12.0.0",
26
- "fs-extra": "^11.0.0",
27
- "inquirer": "^9.0.0"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "git+https://github.com/pejaybro/pejay-ui.git"
32
- },
33
- "author": "Prayas Jadli",
34
- "email": "[EMAIL_ADDRESS]",
35
- "bugs": {
36
- "url": "https://github.com/pejaybro/pejay-ui/issues"
37
- },
38
- "homepage": "https://github.com/pejaybro/pejay-ui#readme",
39
- "devDependencies": {
40
- "@floating-ui/react": "^0.27.19",
41
- "@tanstack/react-query": "^5.101.0",
42
- "@types/react": "^19.2.15",
43
- "@types/react-dom": "^19.2.3",
44
- "clsx": "^2.1.1",
45
- "dayjs": "^1.11.21",
46
- "lucide-react": "^1.17.0",
47
- "react": "^19.2.6",
48
- "react-dom": "^19.2.6",
49
- "react-router-dom": "^7.16.0",
50
- "tailwind-merge": "^3.6.0",
51
- "tailwindcss": "^4.3.0",
52
- "typescript": "^6.0.3"
53
- }
54
- }
1
+ {
2
+ "name": "pejay-ui",
3
+ "version": "1.4.3",
4
+ "type": "module",
5
+ "description": "A powerful React UI component CLI tool to initialize, add, and scaffold premium Tailwind CSS components, layouts, overlays, and client templates.",
6
+ "bin": {
7
+ "pejay-ui": "bin/cli.js"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "templates/",
12
+ "utils/",
13
+ "registry/"
14
+ ],
15
+ "keywords": [
16
+ "pejay-ui",
17
+ "pejay",
18
+ "react",
19
+ "react-components",
20
+ "ui-library",
21
+ "ui-components",
22
+ "cli",
23
+ "component-cli",
24
+ "tailwind",
25
+ "tailwindcss",
26
+ "shadcn",
27
+ "toast",
28
+ "react-toast",
29
+ "portal",
30
+ "overlays",
31
+ "dropdown",
32
+ "date-picker",
33
+ "time-picker",
34
+ "layouts",
35
+ "scaffold",
36
+ "boilerplate",
37
+ "tanstack-query",
38
+ "react-router",
39
+ "redux-toolkit",
40
+ "rtk-query",
41
+ "axios"
42
+ ],
43
+ "license": "MIT",
44
+ "dependencies": {
45
+ "@babel/core": "^7.24.0",
46
+ "@babel/preset-typescript": "^7.24.0",
47
+ "commander": "^12.0.0",
48
+ "fs-extra": "^11.0.0",
49
+ "inquirer": "^9.0.0"
50
+ },
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "git+https://github.com/pejaybro/pejay-ui.git"
54
+ },
55
+ "author": "Prayas Jadli",
56
+ "email": "[EMAIL_ADDRESS]",
57
+ "bugs": {
58
+ "url": "https://github.com/pejaybro/pejay-ui/issues"
59
+ },
60
+ "homepage": "https://github.com/pejaybro/pejay-ui#readme",
61
+ "devDependencies": {
62
+ "@floating-ui/react": "^0.27.19",
63
+ "@tanstack/react-query": "^5.101.0",
64
+ "@types/react": "^19.2.15",
65
+ "@types/react-dom": "^19.2.3",
66
+ "clsx": "^2.1.1",
67
+ "dayjs": "^1.11.21",
68
+ "lucide-react": "^1.17.0",
69
+ "react": "^19.2.6",
70
+ "react-dom": "^19.2.6",
71
+ "react-router-dom": "^7.16.0",
72
+ "tailwind-merge": "^3.6.0",
73
+ "tailwindcss": "^4.3.0",
74
+ "typescript": "^6.0.3"
75
+ }
76
+ }