@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.
- package/README.md +18 -1
- package/dist/cli.js +756 -0
- package/package.json +8 -3
- package/template/admin/README.md +36 -0
- package/template/admin/_gitignore +41 -0
- package/template/admin/components.json +23 -0
- package/template/admin/docs/changes.json +295 -0
- package/template/admin/docs/dev-plan.md +822 -0
- package/template/admin/docs/frontend-plan.md +874 -0
- package/template/admin/docs/prd.md +408 -0
- package/template/admin/docs/progress.json +777 -0
- package/template/admin/docs/test-plan.md +790 -0
- package/template/admin/docs/ui-ux-plan.md +1664 -0
- package/template/admin/eslint.config.mjs +18 -0
- package/template/admin/next.config.ts +7 -0
- package/template/admin/package.json +43 -0
- package/template/admin/postcss.config.mjs +7 -0
- package/template/admin/public/avatars/user1.svg +4 -0
- package/template/admin/public/avatars/user2.svg +4 -0
- package/template/admin/public/avatars/user3.svg +4 -0
- package/template/admin/public/avatars/user4.svg +4 -0
- package/template/admin/public/avatars/user5.svg +4 -0
- package/template/admin/public/file.svg +1 -0
- package/template/admin/public/globe.svg +1 -0
- package/template/admin/public/next.svg +1 -0
- package/template/admin/public/profile/img1.svg +7 -0
- package/template/admin/public/profile/img2.svg +7 -0
- package/template/admin/public/profile/img3.svg +7 -0
- package/template/admin/public/vercel.svg +1 -0
- package/template/admin/public/window.svg +1 -0
- package/template/admin/src/app/favicon.ico +0 -0
- package/template/admin/src/app/layout.tsx +38 -0
- package/template/admin/src/app/page.tsx +5 -0
- package/template/admin/src/app/users/[id]/page.tsx +10 -0
- package/template/admin/src/components/layouts/app-sidebar.tsx +152 -0
- package/template/admin/src/components/user-management/profile-images.tsx +69 -0
- package/template/admin/src/components/user-management/user-detail-form.tsx +143 -0
- package/template/admin/src/features/user-management/components/user-columns.tsx +101 -0
- package/template/admin/src/features/user-management/components/user-detail.tsx +79 -0
- package/template/admin/src/features/user-management/components/user-list.tsx +74 -0
- package/template/admin/src/features/user-management/types/index.ts +113 -0
- package/template/admin/src/features/user-management/utils/format.ts +2 -0
- package/template/admin/src/lib/mock-data.ts +131 -0
- package/template/admin/src/styles/globals.css +26 -0
- 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/
|
|
371
|
+
template/
|
|
372
|
+
admin/ # Admin dashboard starter template
|
|
356
373
|
.storybook/ # Storybook configuration
|
|
357
374
|
```
|
|
358
375
|
|