@kaushalparajuli/react-crud-ui 1.0.17 → 1.0.18

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/bin/cli.js +3 -6
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -95,8 +95,7 @@ function generateModule(name) {
95
95
  }
96
96
 
97
97
  // Templates
98
- const listPageTemplate = `import { Badge } from '@/components/ui/badge';
99
- import { CrudList } from '@/components/common';
98
+ const listPageTemplate = `import { Badge, CrudList } from '@kaushalparajuli/react-crud-ui';
100
99
  import use${moduleNamePascal}Store from '@/stores/use${moduleNamePascal}Store';
101
100
  import { formatDate } from '@/lib/utils';
102
101
 
@@ -142,8 +141,7 @@ export default function ${moduleNamePascal}ListPage() {
142
141
  `;
143
142
 
144
143
  const formPageTemplate = `import { Box } from 'lucide-react';
145
- import CrudForm from '@/components/common/CrudForm';
146
- import { QInput, QTextarea, QSwitch, rules } from '@/components/ui/form';
144
+ import { CrudForm, QInput, QTextarea, QSwitch, rules } from '@kaushalparajuli/react-crud-ui';
147
145
  import use${moduleNamePascal}Store from '@/stores/use${moduleNamePascal}Store';
148
146
 
149
147
  export default function ${moduleNamePascal}FormPage() {
@@ -188,8 +186,7 @@ export default function ${moduleNamePascal}FormPage() {
188
186
  `;
189
187
 
190
188
  const detailPageTemplate = `import { Box } from 'lucide-react';
191
- import { CrudDetail } from '@/components/common';
192
- import { Badge } from '@/components/ui/badge';
189
+ import { CrudDetail, Badge } from '@kaushalparajuli/react-crud-ui';
193
190
  import use${moduleNamePascal}Store from '@/stores/use${moduleNamePascal}Store';
194
191
  import { formatDate } from '@/lib/utils';
195
192
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaushalparajuli/react-crud-ui",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "A comprehensive React CRUD and UI component library with Zustand store integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",