@bomjan133/react-crud-ui 1.2.5 → 1.2.7

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 (78) hide show
  1. package/README.md +4630 -369
  2. package/bin/cli.js +387 -387
  3. package/dist/components/book-viewer/EpubViewer.d.ts +8 -0
  4. package/dist/components/book-viewer/PdfViewer.d.ts +9 -0
  5. package/dist/components/book-viewer/constants.d.ts +23 -0
  6. package/dist/components/book-viewer/hooks.d.ts +6 -0
  7. package/dist/components/book-viewer/index.d.ts +16 -0
  8. package/dist/components/book-viewer/ui.d.ts +16 -0
  9. package/dist/components/book-viewer/utils.d.ts +12 -0
  10. package/dist/components/crud/CrudDetail.d.ts +86 -0
  11. package/dist/components/crud/CrudForm.d.ts +33 -0
  12. package/dist/components/crud/CrudList.d.ts +105 -0
  13. package/dist/components/crud/DataTable.d.ts +64 -0
  14. package/dist/components/crud/EmptyState.d.ts +54 -0
  15. package/dist/components/crud/Loading.d.ts +32 -0
  16. package/dist/components/crud/Modal.d.ts +75 -0
  17. package/dist/components/crud/Pagination.d.ts +18 -0
  18. package/dist/components/crud/ServerErrorPage.d.ts +7 -0
  19. package/dist/components/layouts/AuthLayout.d.ts +32 -0
  20. package/dist/components/layouts/BreadcrumbContext.d.ts +4 -0
  21. package/dist/components/layouts/DashboardLayout.d.ts +41 -0
  22. package/dist/components/layouts/DetailView.d.ts +58 -0
  23. package/dist/components/layouts/Header.d.ts +13 -0
  24. package/dist/components/layouts/HeaderSlotContext.d.ts +4 -0
  25. package/dist/components/layouts/LoginPage.d.ts +50 -0
  26. package/dist/components/layouts/Sidebar.d.ts +38 -0
  27. package/dist/components/layouts/SidebarContext.d.ts +18 -0
  28. package/dist/components/layouts/index.d.ts +8 -0
  29. package/dist/components/toast/ToastContainer.d.ts +4 -0
  30. package/dist/components/toast/useUI.d.ts +33 -0
  31. package/dist/components/ui/CopyableField.d.ts +12 -0
  32. package/dist/components/ui/DownloadableButton.d.ts +15 -0
  33. package/dist/components/ui/alert-dialog.d.ts +26 -0
  34. package/dist/components/ui/alert.d.ts +8 -0
  35. package/dist/components/ui/avatar.d.ts +4 -0
  36. package/dist/components/ui/badge.d.ts +8 -0
  37. package/dist/components/ui/button.d.ts +6 -0
  38. package/dist/components/ui/calendar.d.ts +16 -0
  39. package/dist/components/ui/card.d.ts +7 -0
  40. package/dist/components/ui/checkbox.d.ts +2 -0
  41. package/dist/components/ui/collapsible.d.ts +3 -0
  42. package/dist/components/ui/date-picker.d.ts +2 -0
  43. package/dist/components/ui/date-range-picker.d.ts +2 -0
  44. package/dist/components/ui/dialog.d.ts +25 -0
  45. package/dist/components/ui/dropdown-menu.d.ts +23 -0
  46. package/dist/components/ui/form-fields.d.ts +19 -0
  47. package/dist/components/ui/input-group.d.ts +28 -0
  48. package/dist/components/ui/input.d.ts +2 -0
  49. package/dist/components/ui/label.d.ts +2 -0
  50. package/dist/components/ui/popover.d.ts +5 -0
  51. package/dist/components/ui/q-tabs.d.ts +18 -0
  52. package/dist/components/ui/rich-text-editor.d.ts +2 -0
  53. package/dist/components/ui/scroll-area.d.ts +3 -0
  54. package/dist/components/ui/search-select.d.ts +6 -0
  55. package/dist/components/ui/select.d.ts +12 -0
  56. package/dist/components/ui/separator.d.ts +2 -0
  57. package/dist/components/ui/skeleton.d.ts +4 -0
  58. package/dist/components/ui/switch.d.ts +2 -0
  59. package/dist/components/ui/table.d.ts +9 -0
  60. package/dist/components/ui/tabs.d.ts +6 -0
  61. package/dist/components/ui/textarea.d.ts +2 -0
  62. package/dist/components/ui/tiptap-editor.d.ts +2 -0
  63. package/dist/components/ui/tooltip.d.ts +6 -0
  64. package/dist/index.d.ts +42 -0
  65. package/dist/lib/utils.d.ts +61 -0
  66. package/dist/store/createCrudStore.d.ts +11 -0
  67. package/dist/store/useUIStore.d.ts +5 -0
  68. package/docs/1_GETTING_STARTED.md +333 -333
  69. package/docs/2_UI_COMPONENTS.md +586 -586
  70. package/docs/3_CRUD_COMPONENTS.md +974 -974
  71. package/docs/4_FORM_COMPONENTS.md +778 -778
  72. package/docs/5_LAYOUT_COMPONENTS.md +402 -402
  73. package/docs/6_STORE_FACTORY.md +456 -456
  74. package/docs/7_BOOK_VIEWER.md +365 -365
  75. package/docs/8_TOAST_NOTIFICATIONS.md +130 -130
  76. package/docs/9_UTILITIES.md +204 -204
  77. package/docs/README.md +83 -83
  78. package/package.json +1 -1
package/docs/README.md CHANGED
@@ -1,83 +1,83 @@
1
- # @sujanbomjan/react-crud-ui Documentation
2
-
3
- Welcome to the documentation for **@sujanbomjan/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 @sujanbomjan/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 @sujanbomjan/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
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bomjan133/react-crud-ui",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
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",