@bomjan133/react-crud-ui 1.2.5 → 1.2.6
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 +369 -369
- package/bin/cli.js +387 -387
- package/docs/1_GETTING_STARTED.md +333 -333
- package/docs/2_UI_COMPONENTS.md +586 -586
- package/docs/3_CRUD_COMPONENTS.md +974 -974
- package/docs/4_FORM_COMPONENTS.md +778 -778
- package/docs/5_LAYOUT_COMPONENTS.md +402 -402
- package/docs/6_STORE_FACTORY.md +456 -456
- package/docs/7_BOOK_VIEWER.md +365 -365
- package/docs/8_TOAST_NOTIFICATIONS.md +130 -130
- package/docs/9_UTILITIES.md +204 -204
- package/docs/README.md +83 -83
- package/package.json +1 -1
package/docs/README.md
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
# @
|
|
2
|
-
|
|
3
|
-
Welcome to the documentation for **@
|
|
4
|
-
|
|
5
|
-
## Quick Links
|
|
6
|
-
|
|
7
|
-
| Document | Description |
|
|
8
|
-
|----------|-------------|
|
|
9
|
-
| [1. Getting Started](./1_GETTING_STARTED.md) | Installation, setup, and quick start guide |
|
|
10
|
-
| [2. UI Components](./2_UI_COMPONENTS.md) | Button, Card, Badge, Input, Select, Dialog, etc. |
|
|
11
|
-
| [3. CRUD Components](./3_CRUD_COMPONENTS.md) | DataTable, CrudList, CrudForm, CrudDetail |
|
|
12
|
-
| [4. Form Components](./4_FORM_COMPONENTS.md) | QInput, QTextarea, QSelect, QSwitch |
|
|
13
|
-
| [5. Layout Components](./5_LAYOUT_COMPONENTS.md) | AuthLayout, LoginPage, DashboardLayout |
|
|
14
|
-
| [6. Store Factory](./6_STORE_FACTORY.md) | createCrudStore and Zustand patterns |
|
|
15
|
-
| [7. Book Viewer](./7_BOOK_VIEWER.md) | BookViewer, EpubViewer, PdfViewer for EPUB/PDF flipbooks |
|
|
16
|
-
| [8. Toast Notifications](./8_TOAST_NOTIFICATIONS.md) | useToast, ToastContainer |
|
|
17
|
-
| [9. Utilities](./9_UTILITIES.md) | formatCurrency, formatDate, debounce, slugify, and more |
|
|
18
|
-
|
|
19
|
-
## Features Overview
|
|
20
|
-
|
|
21
|
-
### 🎨 UI Components
|
|
22
|
-
A complete set of styled, accessible UI primitives built with Radix UI and Tailwind CSS v4.
|
|
23
|
-
|
|
24
|
-
### 📊 CRUD Components
|
|
25
|
-
High-level components that integrate with Zustand stores for rapid CRUD development:
|
|
26
|
-
- **CrudList** - Complete list view with search, pagination, and actions
|
|
27
|
-
- **CrudForm** - Form for create/edit with automatic store binding
|
|
28
|
-
- **CrudDetail** - Detail view with fetch and display capabilities
|
|
29
|
-
- **DataTable** - Feature-rich data table with sorting and pagination
|
|
30
|
-
|
|
31
|
-
### 🎯 Form Components
|
|
32
|
-
Wrapper components for common form fields with consistent styling and error handling:
|
|
33
|
-
- **QInput** - Text input with label, error, and icon support
|
|
34
|
-
- **QTextarea** - Multi-line text input
|
|
35
|
-
- **QSelect** - Dropdown select with object/array options
|
|
36
|
-
- **QSearchSelect** - Searchable select with async support
|
|
37
|
-
- **QSwitch** - Toggle switch for boolean values
|
|
38
|
-
- **QCheckbox** - Checkbox with label support
|
|
39
|
-
|
|
40
|
-
### 🏗️ Layout Components
|
|
41
|
-
Pre-built layouts for common application patterns:
|
|
42
|
-
- **AuthLayout** - Centered layout for auth pages
|
|
43
|
-
- **LoginPage** - Complete login form with customization
|
|
44
|
-
- **DashboardLayout** - Admin layout with sidebar and header
|
|
45
|
-
|
|
46
|
-
### 🔄 Store Factory
|
|
47
|
-
`createCrudStore` factory for creating Zustand stores with:
|
|
48
|
-
- List state (items, pagination, filters, search)
|
|
49
|
-
- Item state (current item, loading)
|
|
50
|
-
- Form state (values, errors)
|
|
51
|
-
- CRUD operations (create, update, delete)
|
|
52
|
-
- Custom extensions
|
|
53
|
-
|
|
54
|
-
### 🛠️ CLI Generator
|
|
55
|
-
Generate CRUD modules with a single command:
|
|
56
|
-
```bash
|
|
57
|
-
npx @
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### 📖 Book Viewer
|
|
61
|
-
`BookViewer` for rendering EPUB and PDF files as an interactive flipbook, with `EpubViewer`, `PdfViewer`, and `useBookDimensions` for direct use.
|
|
62
|
-
|
|
63
|
-
### 🔔 Toast Notifications
|
|
64
|
-
`useToast` + `ToastContainer` for success/error/warning/info toasts with no provider setup required.
|
|
65
|
-
|
|
66
|
-
## Installation
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
npm install @
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
See [Getting Started](./1_GETTING_STARTED.md) for complete setup instructions.
|
|
73
|
-
|
|
74
|
-
## Requirements
|
|
75
|
-
|
|
76
|
-
- React 18+
|
|
77
|
-
- React Router DOM 6+
|
|
78
|
-
- Zustand 4+
|
|
79
|
-
- Tailwind CSS v4
|
|
80
|
-
|
|
81
|
-
## License
|
|
82
|
-
|
|
83
|
-
MIT
|
|
1
|
+
# @bomjan133/react-crud-ui Documentation
|
|
2
|
+
|
|
3
|
+
Welcome to the documentation for **@bomjan133/react-crud-ui** - a comprehensive React CRUD and UI component library.
|
|
4
|
+
|
|
5
|
+
## Quick Links
|
|
6
|
+
|
|
7
|
+
| Document | Description |
|
|
8
|
+
|----------|-------------|
|
|
9
|
+
| [1. Getting Started](./1_GETTING_STARTED.md) | Installation, setup, and quick start guide |
|
|
10
|
+
| [2. UI Components](./2_UI_COMPONENTS.md) | Button, Card, Badge, Input, Select, Dialog, etc. |
|
|
11
|
+
| [3. CRUD Components](./3_CRUD_COMPONENTS.md) | DataTable, CrudList, CrudForm, CrudDetail |
|
|
12
|
+
| [4. Form Components](./4_FORM_COMPONENTS.md) | QInput, QTextarea, QSelect, QSwitch |
|
|
13
|
+
| [5. Layout Components](./5_LAYOUT_COMPONENTS.md) | AuthLayout, LoginPage, DashboardLayout |
|
|
14
|
+
| [6. Store Factory](./6_STORE_FACTORY.md) | createCrudStore and Zustand patterns |
|
|
15
|
+
| [7. Book Viewer](./7_BOOK_VIEWER.md) | BookViewer, EpubViewer, PdfViewer for EPUB/PDF flipbooks |
|
|
16
|
+
| [8. Toast Notifications](./8_TOAST_NOTIFICATIONS.md) | useToast, ToastContainer |
|
|
17
|
+
| [9. Utilities](./9_UTILITIES.md) | formatCurrency, formatDate, debounce, slugify, and more |
|
|
18
|
+
|
|
19
|
+
## Features Overview
|
|
20
|
+
|
|
21
|
+
### 🎨 UI Components
|
|
22
|
+
A complete set of styled, accessible UI primitives built with Radix UI and Tailwind CSS v4.
|
|
23
|
+
|
|
24
|
+
### 📊 CRUD Components
|
|
25
|
+
High-level components that integrate with Zustand stores for rapid CRUD development:
|
|
26
|
+
- **CrudList** - Complete list view with search, pagination, and actions
|
|
27
|
+
- **CrudForm** - Form for create/edit with automatic store binding
|
|
28
|
+
- **CrudDetail** - Detail view with fetch and display capabilities
|
|
29
|
+
- **DataTable** - Feature-rich data table with sorting and pagination
|
|
30
|
+
|
|
31
|
+
### 🎯 Form Components
|
|
32
|
+
Wrapper components for common form fields with consistent styling and error handling:
|
|
33
|
+
- **QInput** - Text input with label, error, and icon support
|
|
34
|
+
- **QTextarea** - Multi-line text input
|
|
35
|
+
- **QSelect** - Dropdown select with object/array options
|
|
36
|
+
- **QSearchSelect** - Searchable select with async support
|
|
37
|
+
- **QSwitch** - Toggle switch for boolean values
|
|
38
|
+
- **QCheckbox** - Checkbox with label support
|
|
39
|
+
|
|
40
|
+
### 🏗️ Layout Components
|
|
41
|
+
Pre-built layouts for common application patterns:
|
|
42
|
+
- **AuthLayout** - Centered layout for auth pages
|
|
43
|
+
- **LoginPage** - Complete login form with customization
|
|
44
|
+
- **DashboardLayout** - Admin layout with sidebar and header
|
|
45
|
+
|
|
46
|
+
### 🔄 Store Factory
|
|
47
|
+
`createCrudStore` factory for creating Zustand stores with:
|
|
48
|
+
- List state (items, pagination, filters, search)
|
|
49
|
+
- Item state (current item, loading)
|
|
50
|
+
- Form state (values, errors)
|
|
51
|
+
- CRUD operations (create, update, delete)
|
|
52
|
+
- Custom extensions
|
|
53
|
+
|
|
54
|
+
### 🛠️ CLI Generator
|
|
55
|
+
Generate CRUD modules with a single command:
|
|
56
|
+
```bash
|
|
57
|
+
npx @bomjan133/react-crud-ui generate product
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### 📖 Book Viewer
|
|
61
|
+
`BookViewer` for rendering EPUB and PDF files as an interactive flipbook, with `EpubViewer`, `PdfViewer`, and `useBookDimensions` for direct use.
|
|
62
|
+
|
|
63
|
+
### 🔔 Toast Notifications
|
|
64
|
+
`useToast` + `ToastContainer` for success/error/warning/info toasts with no provider setup required.
|
|
65
|
+
|
|
66
|
+
## Installation
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
npm install @bomjan133/react-crud-ui
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
See [Getting Started](./1_GETTING_STARTED.md) for complete setup instructions.
|
|
73
|
+
|
|
74
|
+
## Requirements
|
|
75
|
+
|
|
76
|
+
- React 18+
|
|
77
|
+
- React Router DOM 6+
|
|
78
|
+
- Zustand 4+
|
|
79
|
+
- Tailwind CSS v4
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|