@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 CHANGED
@@ -1,369 +1,369 @@
1
- # @sujanbomjan/react-crud-ui
2
-
3
- A comprehensive React CRUD and UI component library with Zustand store integration, layout components, and CLI code generator.
4
-
5
- ## Features
6
-
7
- - 🎨 **20+ UI Components** - Button, Card, Badge, Dialog, Select, Tabs, Table, and more
8
- - 📊 **CRUD Components** - DataTable, CrudList, CrudForm, CrudDetail with store integration
9
- - 🔄 **Zustand Store Factory** - Create CRUD stores with minimal code
10
- - 🎯 **Form Components** - QInput, QSelect, QSwitch, QSearchSelect with validation
11
- - 🏗️ **Layout Components** - AuthLayout, LoginPage, DashboardLayout with Sidebar & Header
12
- - 📱 **Responsive** - Mobile-first design with Tailwind CSS v4
13
- - 🌙 **Dark Mode** - Built-in dark mode support via CSS variables
14
- - ⚡ **TypeScript Ready** - Full TypeScript support
15
- - 🛠️ **CLI Generator** - Generate CRUD modules with one command
16
-
17
- ## Documentation
18
-
19
- > These docs ship inside the package. After `npm install`, find them at `node_modules/@sujanbomjan/react-crud-ui/docs/` — the links below only resolve when browsing this file directly in the repo.
20
-
21
- - [Getting Started](./docs/1_GETTING_STARTED.md) - Installation and setup
22
- - [UI Components](./docs/2_UI_COMPONENTS.md) - Button, Card, Badge, Input, Select, etc.
23
- - [CRUD Components](./docs/3_CRUD_COMPONENTS.md) - DataTable, CrudList, CrudForm, CrudDetail
24
- - [Form Components](./docs/4_FORM_COMPONENTS.md) - QInput, QTextarea, QSelect, QSwitch
25
- - [Layout Components](./docs/5_LAYOUT_COMPONENTS.md) - AuthLayout, LoginPage, DashboardLayout
26
- - [Store Factory](./docs/6_STORE_FACTORY.md) - createCrudStore and store patterns
27
- - [Book Viewer](./docs/7_BOOK_VIEWER.md) - BookViewer, EpubViewer, PdfViewer for EPUB/PDF flipbooks
28
- - [Toast Notifications](./docs/8_TOAST_NOTIFICATIONS.md) - useToast, ToastContainer
29
- - [Utilities](./docs/9_UTILITIES.md) - formatCurrency, formatDate, debounce, slugify, and more
30
-
31
- ## Installation
32
-
33
- ```bash
34
- npm install @sujanbomjan/react-crud-ui
35
- # or
36
- yarn add @sujanbomjan/react-crud-ui
37
- # or
38
- pnpm add @sujanbomjan/react-crud-ui
39
- ```
40
-
41
- ### Peer Dependencies
42
-
43
- Make sure you have these peer dependencies installed:
44
-
45
- ```bash
46
- npm install react react-dom react-router-dom zustand
47
- ```
48
-
49
- ## CLI
50
-
51
- Generate CRUD modules with a single command:
52
-
53
- ```bash
54
- npx @sujanbomjan/react-crud-ui generate <module-name>
55
- ```
56
-
57
- Example:
58
- ```bash
59
- npx @sujanbomjan/react-crud-ui generate product
60
- ```
61
-
62
- This will create:
63
- - `src/pages/<module>/ModuleListPage.jsx` - List page with table and actions
64
- - `src/pages/<module>/ModuleFormPage.jsx` - Create/edit form page
65
- - `src/pages/<module>/ModuleDetailPage.jsx` - Detail view page
66
- - `src/routes/modules/<module>Routes.js` - Route definitions
67
- - `src/stores/use<Module>Store.js` - Zustand store for CRUD operations
68
-
69
- ## Setup
70
-
71
- ### 1. Import Styles
72
-
73
- Add the styles to your main entry file (e.g., `main.jsx` or `App.jsx`):
74
-
75
- ```jsx
76
- import '@sujanbomjan/react-crud-ui/styles.css'
77
- ```
78
-
79
- ### 2. Configure Tailwind (Optional)
80
-
81
- If you're using Tailwind CSS in your project, add the package to your content paths:
82
-
83
- ```js
84
- // tailwind.config.js
85
- module.exports = {
86
- content: [
87
- './src/**/*.{js,jsx,ts,tsx}',
88
- './node_modules/@sujanbomjan/react-crud-ui/dist/**/*.{js,cjs}',
89
- ],
90
- // ... rest of config
91
- }
92
- ```
93
-
94
- ## Usage
95
-
96
- ### UI Components
97
-
98
- ```jsx
99
- ```jsx
100
- import { Button, Card, CardHeader, CardTitle, CardContent, Badge } from '@sujanbomjan/react-crud-ui'
101
- ```
102
-
103
- function MyComponent() {
104
- return (
105
- <Card>
106
- <CardHeader>
107
- <CardTitle>My Card</CardTitle>
108
- </CardHeader>
109
- <CardContent>
110
- <Badge variant="success">Active</Badge>
111
- <Button onClick={() => alert('Clicked!')}>Click Me</Button>
112
- </CardContent>
113
- </Card>
114
- )
115
- }
116
- ```
117
-
118
- ### Form Components
119
-
120
- ```jsx
121
- ```jsx
122
- import { QInput, QSelect, QSwitch, QForm } from '@sujanbomjan/react-crud-ui'
123
- ```
124
-
125
- function MyForm() {
126
- const handleSubmit = (e) => {
127
- const formData = new FormData(e.target)
128
- console.log(Object.fromEntries(formData))
129
- }
130
-
131
- return (
132
- <QForm onSubmit={handleSubmit}>
133
- <QInput
134
- label="Name"
135
- name="name"
136
- placeholder="Enter name"
137
- required
138
- />
139
- <QSelect
140
- label="Status"
141
- name="status"
142
- options={[
143
- { value: 'active', label: 'Active' },
144
- { value: 'inactive', label: 'Inactive' },
145
- ]}
146
- />
147
- <QSwitch
148
- label="Is Published"
149
- name="is_published"
150
- />
151
- <Button type="submit">Save</Button>
152
- </QForm>
153
- )
154
- }
155
- ```
156
-
157
- ### DataTable
158
-
159
- ```jsx
160
- ```jsx
161
- import { DataTable } from '@sujanbomjan/react-crud-ui'
162
- ```
163
-
164
- const columns = [
165
- { header: 'Name', accessor: 'name', sortable: true },
166
- { header: 'Email', accessor: 'email' },
167
- {
168
- header: 'Status',
169
- accessor: 'status',
170
- render: (row) => <Badge>{row.status}</Badge>
171
- },
172
- ]
173
-
174
- const actions = [
175
- { label: 'View', icon: Eye, onClick: (row) => console.log('View', row) },
176
- { label: 'Edit', icon: Pencil, onClick: (row) => console.log('Edit', row) },
177
- { label: 'Delete', icon: Trash2, variant: 'destructive', onClick: (row) => console.log('Delete', row) },
178
- ]
179
-
180
- function UserTable() {
181
- return (
182
- <DataTable
183
- data={users}
184
- columns={columns}
185
- actions={actions}
186
- searchable
187
- onSearchChange={(search) => console.log(search)}
188
- currentPage={1}
189
- totalPages={10}
190
- onPageChange={(page) => console.log(page)}
191
- />
192
- )
193
- }
194
- ```
195
-
196
- ### CrudList
197
-
198
- ```jsx
199
- ```jsx
200
- import { CrudList } from '@sujanbomjan/react-crud-ui'
201
- ```
202
-
203
- function ProductList() {
204
- const columns = [
205
- { header: 'Name', accessor: 'name', sortable: true },
206
- { header: 'Price', accessor: 'price', format: (v) => `$${v}` },
207
- ]
208
-
209
- return (
210
- <CrudList
211
- title="Products"
212
- description="Manage your products"
213
- data={products}
214
- columns={columns}
215
- onCreate={() => navigate('/products/create')}
216
- onEdit={(item) => navigate(`/products/${item.id}/edit`)}
217
- onDelete={(item) => deleteProduct(item.id)}
218
- itemName="product"
219
- />
220
- )
221
- }
222
- ```
223
-
224
- ### CrudForm
225
-
226
- ```jsx
227
- ```jsx
228
- import { CrudForm } from '@sujanbomjan/react-crud-ui'
229
- ```
230
- import { z } from 'zod'
231
-
232
- const schema = z.object({
233
- name: z.string().min(1, 'Name is required'),
234
- price: z.number().min(0, 'Price must be positive'),
235
- is_active: z.boolean(),
236
- })
237
-
238
- const fields = [
239
- { name: 'name', label: 'Name', type: 'text', required: true },
240
- { name: 'price', label: 'Price', type: 'number', required: true },
241
- { name: 'description', label: 'Description', type: 'textarea', colSpan: 2 },
242
- { name: 'is_active', label: 'Active', type: 'switch' },
243
- ]
244
-
245
- function ProductForm() {
246
- return (
247
- <CrudForm
248
- title="Create Product"
249
- fields={fields}
250
- validationSchema={schema}
251
- onSubmit={(data) => console.log(data)}
252
- onCancel={() => navigate(-1)}
253
- columns={2}
254
- />
255
- )
256
- }
257
- ```
258
-
259
- ### Create CRUD Store with Zustand
260
-
261
- ```jsx
262
- import { create } from 'zustand'
263
- ```jsx
264
- import { createCrudStore } from '@sujanbomjan/react-crud-ui'
265
- ```
266
- import { apiClient } from './api'
267
-
268
- // Create a product store
269
- const useProductStore = create(
270
- createCrudStore({
271
- name: 'products',
272
- apiClient,
273
- endpoint: '/api/products',
274
- })
275
- )
276
-
277
- // Use in component
278
- function ProductPage() {
279
- const {
280
- items,
281
- loading,
282
- fetchList,
283
- create,
284
- update,
285
- delete: deleteItem,
286
- page,
287
- setPage,
288
- } = useProductStore()
289
-
290
- useEffect(() => {
291
- fetchList()
292
- }, [page])
293
-
294
- return (
295
- <CrudList
296
- data={items}
297
- loading={loading}
298
- // ...
299
- />
300
- )
301
- }
302
- ```
303
-
304
- ## Components Reference
305
-
306
- ### UI Components
307
-
308
- | Component | Description |
309
- |-----------|-------------|
310
- | `Button` | Button with variants (default, destructive, outline, secondary, ghost, link) |
311
- | `Card` | Card container with Header, Content, Footer |
312
- | `Badge` | Badge/Tag with variants |
313
- | `Input` | Text input field |
314
- | `Textarea` | Multi-line text input |
315
- | `Select` | Dropdown select |
316
- | `SearchSelect` | Searchable dropdown select |
317
- | `Checkbox` | Checkbox input |
318
- | `Switch` | Toggle switch |
319
- | `Dialog` | Modal dialog |
320
- | `Tabs` | Tab navigation |
321
- | `QTabs` | Simplified tabs |
322
- | `Avatar` | User avatar |
323
- | `Tooltip` | Tooltip |
324
- | `DropdownMenu` | Dropdown menu |
325
- | `Alert` | Alert message |
326
- | `Table` | Table elements |
327
- | `Separator` | Visual separator |
328
- | `Skeleton` | Loading skeleton |
329
- | `ScrollArea` | Custom scrollable area |
330
-
331
- ### Form Components
332
-
333
- | Component | Description |
334
- |-----------|-------------|
335
- | `QInput` | Input with label and error handling |
336
- | `QTextarea` | Textarea with label and error handling |
337
- | `QSelect` | Select with label and error handling |
338
- | `QSearchSelect` | Searchable select with label and error handling |
339
- | `QSwitch` | Switch with label |
340
- | `QCheckbox` | Checkbox with label |
341
- | `QForm` | Form wrapper |
342
-
343
- ### CRUD Components
344
-
345
- | Component | Description |
346
- |-----------|-------------|
347
- | `DataTable` | Data table with sorting, filtering, pagination |
348
- | `CrudList` | Complete CRUD list with actions |
349
- | `CrudForm` | Dynamic form for create/edit |
350
- | `CrudDetail` | Detail view component |
351
- | `Pagination` | Pagination controls |
352
- | `Loading` | Loading indicators |
353
- | `EmptyState` | Empty state displays |
354
- | `Modal` | Modal dialogs |
355
-
356
- ### Utilities
357
-
358
- | Function | Description |
359
- |----------|-------------|
360
- | `cn` | Tailwind class merge utility |
361
- | `formatDate` | Format date string |
362
- | `formatDateTime` | Format datetime string |
363
- | `formatCurrency` | Format currency |
364
- | `debounce` | Debounce function |
365
- | `createCrudStore` | Zustand store factory |
366
-
367
- ## License
368
-
369
- MIT
1
+ # @bomjan133/react-crud-ui
2
+
3
+ A comprehensive React CRUD and UI component library with Zustand store integration, layout components, and CLI code generator.
4
+
5
+ ## Features
6
+
7
+ - 🎨 **20+ UI Components** - Button, Card, Badge, Dialog, Select, Tabs, Table, and more
8
+ - 📊 **CRUD Components** - DataTable, CrudList, CrudForm, CrudDetail with store integration
9
+ - 🔄 **Zustand Store Factory** - Create CRUD stores with minimal code
10
+ - 🎯 **Form Components** - QInput, QSelect, QSwitch, QSearchSelect with validation
11
+ - 🏗️ **Layout Components** - AuthLayout, LoginPage, DashboardLayout with Sidebar & Header
12
+ - 📱 **Responsive** - Mobile-first design with Tailwind CSS v4
13
+ - 🌙 **Dark Mode** - Built-in dark mode support via CSS variables
14
+ - ⚡ **TypeScript Ready** - Full TypeScript support
15
+ - 🛠️ **CLI Generator** - Generate CRUD modules with one command
16
+
17
+ ## Documentation
18
+
19
+ > These docs ship inside the package (`node_modules/@bomjan133/react-crud-ui/docs/`). The links below point to the GitLab repo so they render as formatted pages both here and from the README on npmjs.com.
20
+
21
+ - [Getting Started](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/1_GETTING_STARTED.md) - Installation and setup
22
+ - [UI Components](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/2_UI_COMPONENTS.md) - Button, Card, Badge, Input, Select, etc.
23
+ - [CRUD Components](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/3_CRUD_COMPONENTS.md) - DataTable, CrudList, CrudForm, CrudDetail
24
+ - [Form Components](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/4_FORM_COMPONENTS.md) - QInput, QTextarea, QSelect, QSwitch
25
+ - [Layout Components](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/5_LAYOUT_COMPONENTS.md) - AuthLayout, LoginPage, DashboardLayout
26
+ - [Store Factory](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/6_STORE_FACTORY.md) - createCrudStore and store patterns
27
+ - [Book Viewer](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/7_BOOK_VIEWER.md) - BookViewer, EpubViewer, PdfViewer for EPUB/PDF flipbooks
28
+ - [Toast Notifications](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/8_TOAST_NOTIFICATIONS.md) - useToast, ToastContainer
29
+ - [Utilities](https://gitlab.com/bomjan133/react-crud/-/blob/main/docs/9_UTILITIES.md) - formatCurrency, formatDate, debounce, slugify, and more
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ npm install @bomjan133/react-crud-ui
35
+ # or
36
+ yarn add @bomjan133/react-crud-ui
37
+ # or
38
+ pnpm add @bomjan133/react-crud-ui
39
+ ```
40
+
41
+ ### Peer Dependencies
42
+
43
+ Make sure you have these peer dependencies installed:
44
+
45
+ ```bash
46
+ npm install react react-dom react-router-dom zustand
47
+ ```
48
+
49
+ ## CLI
50
+
51
+ Generate CRUD modules with a single command:
52
+
53
+ ```bash
54
+ npx @bomjan133/react-crud-ui generate <module-name>
55
+ ```
56
+
57
+ Example:
58
+ ```bash
59
+ npx @bomjan133/react-crud-ui generate product
60
+ ```
61
+
62
+ This will create:
63
+ - `src/pages/<module>/ModuleListPage.jsx` - List page with table and actions
64
+ - `src/pages/<module>/ModuleFormPage.jsx` - Create/edit form page
65
+ - `src/pages/<module>/ModuleDetailPage.jsx` - Detail view page
66
+ - `src/routes/modules/<module>Routes.js` - Route definitions
67
+ - `src/stores/use<Module>Store.js` - Zustand store for CRUD operations
68
+
69
+ ## Setup
70
+
71
+ ### 1. Import Styles
72
+
73
+ Add the styles to your main entry file (e.g., `main.jsx` or `App.jsx`):
74
+
75
+ ```jsx
76
+ import '@bomjan133/react-crud-ui/styles.css'
77
+ ```
78
+
79
+ ### 2. Configure Tailwind (Optional)
80
+
81
+ If you're using Tailwind CSS in your project, add the package to your content paths:
82
+
83
+ ```js
84
+ // tailwind.config.js
85
+ module.exports = {
86
+ content: [
87
+ './src/**/*.{js,jsx,ts,tsx}',
88
+ './node_modules/@bomjan133/react-crud-ui/dist/**/*.{js,cjs}',
89
+ ],
90
+ // ... rest of config
91
+ }
92
+ ```
93
+
94
+ ## Usage
95
+
96
+ ### UI Components
97
+
98
+ ```jsx
99
+ ```jsx
100
+ import { Button, Card, CardHeader, CardTitle, CardContent, Badge } from '@bomjan133/react-crud-ui'
101
+ ```
102
+
103
+ function MyComponent() {
104
+ return (
105
+ <Card>
106
+ <CardHeader>
107
+ <CardTitle>My Card</CardTitle>
108
+ </CardHeader>
109
+ <CardContent>
110
+ <Badge variant="success">Active</Badge>
111
+ <Button onClick={() => alert('Clicked!')}>Click Me</Button>
112
+ </CardContent>
113
+ </Card>
114
+ )
115
+ }
116
+ ```
117
+
118
+ ### Form Components
119
+
120
+ ```jsx
121
+ ```jsx
122
+ import { QInput, QSelect, QSwitch, QForm } from '@bomjan133/react-crud-ui'
123
+ ```
124
+
125
+ function MyForm() {
126
+ const handleSubmit = (e) => {
127
+ const formData = new FormData(e.target)
128
+ console.log(Object.fromEntries(formData))
129
+ }
130
+
131
+ return (
132
+ <QForm onSubmit={handleSubmit}>
133
+ <QInput
134
+ label="Name"
135
+ name="name"
136
+ placeholder="Enter name"
137
+ required
138
+ />
139
+ <QSelect
140
+ label="Status"
141
+ name="status"
142
+ options={[
143
+ { value: 'active', label: 'Active' },
144
+ { value: 'inactive', label: 'Inactive' },
145
+ ]}
146
+ />
147
+ <QSwitch
148
+ label="Is Published"
149
+ name="is_published"
150
+ />
151
+ <Button type="submit">Save</Button>
152
+ </QForm>
153
+ )
154
+ }
155
+ ```
156
+
157
+ ### DataTable
158
+
159
+ ```jsx
160
+ ```jsx
161
+ import { DataTable } from '@bomjan133/react-crud-ui'
162
+ ```
163
+
164
+ const columns = [
165
+ { header: 'Name', accessor: 'name', sortable: true },
166
+ { header: 'Email', accessor: 'email' },
167
+ {
168
+ header: 'Status',
169
+ accessor: 'status',
170
+ render: (row) => <Badge>{row.status}</Badge>
171
+ },
172
+ ]
173
+
174
+ const actions = [
175
+ { label: 'View', icon: Eye, onClick: (row) => console.log('View', row) },
176
+ { label: 'Edit', icon: Pencil, onClick: (row) => console.log('Edit', row) },
177
+ { label: 'Delete', icon: Trash2, variant: 'destructive', onClick: (row) => console.log('Delete', row) },
178
+ ]
179
+
180
+ function UserTable() {
181
+ return (
182
+ <DataTable
183
+ data={users}
184
+ columns={columns}
185
+ actions={actions}
186
+ searchable
187
+ onSearchChange={(search) => console.log(search)}
188
+ currentPage={1}
189
+ totalPages={10}
190
+ onPageChange={(page) => console.log(page)}
191
+ />
192
+ )
193
+ }
194
+ ```
195
+
196
+ ### CrudList
197
+
198
+ ```jsx
199
+ ```jsx
200
+ import { CrudList } from '@bomjan133/react-crud-ui'
201
+ ```
202
+
203
+ function ProductList() {
204
+ const columns = [
205
+ { header: 'Name', accessor: 'name', sortable: true },
206
+ { header: 'Price', accessor: 'price', format: (v) => `$${v}` },
207
+ ]
208
+
209
+ return (
210
+ <CrudList
211
+ title="Products"
212
+ description="Manage your products"
213
+ data={products}
214
+ columns={columns}
215
+ onCreate={() => navigate('/products/create')}
216
+ onEdit={(item) => navigate(`/products/${item.id}/edit`)}
217
+ onDelete={(item) => deleteProduct(item.id)}
218
+ itemName="product"
219
+ />
220
+ )
221
+ }
222
+ ```
223
+
224
+ ### CrudForm
225
+
226
+ ```jsx
227
+ ```jsx
228
+ import { CrudForm } from '@bomjan133/react-crud-ui'
229
+ ```
230
+ import { z } from 'zod'
231
+
232
+ const schema = z.object({
233
+ name: z.string().min(1, 'Name is required'),
234
+ price: z.number().min(0, 'Price must be positive'),
235
+ is_active: z.boolean(),
236
+ })
237
+
238
+ const fields = [
239
+ { name: 'name', label: 'Name', type: 'text', required: true },
240
+ { name: 'price', label: 'Price', type: 'number', required: true },
241
+ { name: 'description', label: 'Description', type: 'textarea', colSpan: 2 },
242
+ { name: 'is_active', label: 'Active', type: 'switch' },
243
+ ]
244
+
245
+ function ProductForm() {
246
+ return (
247
+ <CrudForm
248
+ title="Create Product"
249
+ fields={fields}
250
+ validationSchema={schema}
251
+ onSubmit={(data) => console.log(data)}
252
+ onCancel={() => navigate(-1)}
253
+ columns={2}
254
+ />
255
+ )
256
+ }
257
+ ```
258
+
259
+ ### Create CRUD Store with Zustand
260
+
261
+ ```jsx
262
+ import { create } from 'zustand'
263
+ ```jsx
264
+ import { createCrudStore } from '@bomjan133/react-crud-ui'
265
+ ```
266
+ import { apiClient } from './api'
267
+
268
+ // Create a product store
269
+ const useProductStore = create(
270
+ createCrudStore({
271
+ name: 'products',
272
+ apiClient,
273
+ endpoint: '/api/products',
274
+ })
275
+ )
276
+
277
+ // Use in component
278
+ function ProductPage() {
279
+ const {
280
+ items,
281
+ loading,
282
+ fetchList,
283
+ create,
284
+ update,
285
+ delete: deleteItem,
286
+ page,
287
+ setPage,
288
+ } = useProductStore()
289
+
290
+ useEffect(() => {
291
+ fetchList()
292
+ }, [page])
293
+
294
+ return (
295
+ <CrudList
296
+ data={items}
297
+ loading={loading}
298
+ // ...
299
+ />
300
+ )
301
+ }
302
+ ```
303
+
304
+ ## Components Reference
305
+
306
+ ### UI Components
307
+
308
+ | Component | Description |
309
+ |-----------|-------------|
310
+ | `Button` | Button with variants (default, destructive, outline, secondary, ghost, link) |
311
+ | `Card` | Card container with Header, Content, Footer |
312
+ | `Badge` | Badge/Tag with variants |
313
+ | `Input` | Text input field |
314
+ | `Textarea` | Multi-line text input |
315
+ | `Select` | Dropdown select |
316
+ | `SearchSelect` | Searchable dropdown select |
317
+ | `Checkbox` | Checkbox input |
318
+ | `Switch` | Toggle switch |
319
+ | `Dialog` | Modal dialog |
320
+ | `Tabs` | Tab navigation |
321
+ | `QTabs` | Simplified tabs |
322
+ | `Avatar` | User avatar |
323
+ | `Tooltip` | Tooltip |
324
+ | `DropdownMenu` | Dropdown menu |
325
+ | `Alert` | Alert message |
326
+ | `Table` | Table elements |
327
+ | `Separator` | Visual separator |
328
+ | `Skeleton` | Loading skeleton |
329
+ | `ScrollArea` | Custom scrollable area |
330
+
331
+ ### Form Components
332
+
333
+ | Component | Description |
334
+ |-----------|-------------|
335
+ | `QInput` | Input with label and error handling |
336
+ | `QTextarea` | Textarea with label and error handling |
337
+ | `QSelect` | Select with label and error handling |
338
+ | `QSearchSelect` | Searchable select with label and error handling |
339
+ | `QSwitch` | Switch with label |
340
+ | `QCheckbox` | Checkbox with label |
341
+ | `QForm` | Form wrapper |
342
+
343
+ ### CRUD Components
344
+
345
+ | Component | Description |
346
+ |-----------|-------------|
347
+ | `DataTable` | Data table with sorting, filtering, pagination |
348
+ | `CrudList` | Complete CRUD list with actions |
349
+ | `CrudForm` | Dynamic form for create/edit |
350
+ | `CrudDetail` | Detail view component |
351
+ | `Pagination` | Pagination controls |
352
+ | `Loading` | Loading indicators |
353
+ | `EmptyState` | Empty state displays |
354
+ | `Modal` | Modal dialogs |
355
+
356
+ ### Utilities
357
+
358
+ | Function | Description |
359
+ |----------|-------------|
360
+ | `cn` | Tailwind class merge utility |
361
+ | `formatDate` | Format date string |
362
+ | `formatDateTime` | Format datetime string |
363
+ | `formatCurrency` | Format currency |
364
+ | `debounce` | Debounce function |
365
+ | `createCrudStore` | Zustand store factory |
366
+
367
+ ## License
368
+
369
+ MIT