@potenlab/ui 0.1.2 → 0.2.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.
Files changed (45) hide show
  1. package/README.md +18 -1
  2. package/dist/cli.js +756 -0
  3. package/package.json +8 -3
  4. package/template/admin/README.md +36 -0
  5. package/template/admin/_gitignore +41 -0
  6. package/template/admin/components.json +23 -0
  7. package/template/admin/docs/changes.json +295 -0
  8. package/template/admin/docs/dev-plan.md +822 -0
  9. package/template/admin/docs/frontend-plan.md +874 -0
  10. package/template/admin/docs/prd.md +408 -0
  11. package/template/admin/docs/progress.json +777 -0
  12. package/template/admin/docs/test-plan.md +790 -0
  13. package/template/admin/docs/ui-ux-plan.md +1664 -0
  14. package/template/admin/eslint.config.mjs +18 -0
  15. package/template/admin/next.config.ts +7 -0
  16. package/template/admin/package.json +43 -0
  17. package/template/admin/postcss.config.mjs +7 -0
  18. package/template/admin/public/avatars/user1.svg +4 -0
  19. package/template/admin/public/avatars/user2.svg +4 -0
  20. package/template/admin/public/avatars/user3.svg +4 -0
  21. package/template/admin/public/avatars/user4.svg +4 -0
  22. package/template/admin/public/avatars/user5.svg +4 -0
  23. package/template/admin/public/file.svg +1 -0
  24. package/template/admin/public/globe.svg +1 -0
  25. package/template/admin/public/next.svg +1 -0
  26. package/template/admin/public/profile/img1.svg +7 -0
  27. package/template/admin/public/profile/img2.svg +7 -0
  28. package/template/admin/public/profile/img3.svg +7 -0
  29. package/template/admin/public/vercel.svg +1 -0
  30. package/template/admin/public/window.svg +1 -0
  31. package/template/admin/src/app/favicon.ico +0 -0
  32. package/template/admin/src/app/layout.tsx +38 -0
  33. package/template/admin/src/app/page.tsx +5 -0
  34. package/template/admin/src/app/users/[id]/page.tsx +10 -0
  35. package/template/admin/src/components/layouts/app-sidebar.tsx +152 -0
  36. package/template/admin/src/components/user-management/profile-images.tsx +69 -0
  37. package/template/admin/src/components/user-management/user-detail-form.tsx +143 -0
  38. package/template/admin/src/features/user-management/components/user-columns.tsx +101 -0
  39. package/template/admin/src/features/user-management/components/user-detail.tsx +79 -0
  40. package/template/admin/src/features/user-management/components/user-list.tsx +74 -0
  41. package/template/admin/src/features/user-management/types/index.ts +113 -0
  42. package/template/admin/src/features/user-management/utils/format.ts +2 -0
  43. package/template/admin/src/lib/mock-data.ts +131 -0
  44. package/template/admin/src/styles/globals.css +26 -0
  45. package/template/admin/tsconfig.json +34 -0
package/README.md CHANGED
@@ -7,6 +7,21 @@ Potenlab's shared React UI component library built with Tailwind CSS 4, Radix UI
7
7
 
8
8
  [Storybook](https://potenlab-library.vercel.app) | [npm](https://www.npmjs.com/package/@potenlab/ui)
9
9
 
10
+ ## Quick Start
11
+
12
+ Scaffold a new project with a single command:
13
+
14
+ ```bash
15
+ npx @potenlab/ui init
16
+ ```
17
+
18
+ This will prompt you to select a template (e.g. `admin`) and copy the starter files into your current directory. Then:
19
+
20
+ ```bash
21
+ npm install
22
+ npm run dev
23
+ ```
24
+
10
25
  ## Installation
11
26
 
12
27
  ```bash
@@ -344,6 +359,7 @@ bun run release:major
344
359
 
345
360
  ```
346
361
  src/
362
+ cli/ # CLI source (potenlab-ui init)
347
363
  components/
348
364
  ui/ # Radix UI primitives with Tailwind styling
349
365
  common/ # Higher-level reusable components
@@ -352,7 +368,8 @@ src/
352
368
  lib/ # Utility functions (cn, formatNumber)
353
369
  types/ # Shared TypeScript types
354
370
  styles/ # Global CSS with design tokens
355
- template/ # Next.js reference app using @potenlab/ui
371
+ template/
372
+ admin/ # Admin dashboard starter template
356
373
  .storybook/ # Storybook configuration
357
374
  ```
358
375