@velkymx/vibeui 0.1.1 → 0.2.0

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
@@ -4,11 +4,12 @@ A modern Vue 3 UI component library built with Bootstrap 5, designed to simplify
4
4
 
5
5
  ## Features
6
6
 
7
- * Vue 3 Composition API: Built from the ground up using modern, reactive Vue.js practices.
8
- * Bootstrap 5 Integration: Directly utilizes Bootstrap 5 CSS for consistency, without additional styling overhead.
9
- * Lightweight & Modular: Import only what you need, keeping your bundle small.
10
- * TypeScript Support: Fully typed components for a great developer experience.
11
- * Accessibility First: Components crafted with accessibility and usability in mind.
7
+ * **Vue 3 Composition API**: Built from the ground up using modern, reactive Vue.js practices.
8
+ * **Bootstrap 5 Integration**: Directly utilizes Bootstrap 5 CSS for consistency, without additional styling overhead.
9
+ * **Dual-Mode Components**: Use shorthand props for quick setup or composable slots for full control.
10
+ * **Lightweight & Modular**: Import only what you need, keeping your bundle small.
11
+ * **TypeScript Support**: Fully typed components for a great developer experience.
12
+ * **Accessibility First**: Components crafted with accessibility and usability in mind.
12
13
 
13
14
  ## Installation
14
15
 
@@ -55,10 +56,133 @@ const showAlert = ref(true);
55
56
  </template>
56
57
  ```
57
58
 
59
+ ## Dual-Mode Components
60
+
61
+ Many VibeUI components support two usage modes:
62
+
63
+ ### Shorthand Mode (Array-Based Props)
64
+
65
+ Perfect for quickly building UIs with data arrays:
66
+
67
+ ```vue
68
+ <template>
69
+ <VibeBreadcrumb :items="breadcrumbItems" />
70
+ <VibeNav tabs :items="navItems" />
71
+ <VibeDropdown id="menu" text="Menu" :items="dropdownItems" />
72
+ </template>
73
+
74
+ <script setup>
75
+ const breadcrumbItems = [
76
+ { text: 'Home', href: '/' },
77
+ { text: 'Products', href: '/products' },
78
+ { text: 'Details', active: true }
79
+ ]
80
+
81
+ const navItems = [
82
+ { text: 'Home', href: '#', active: true },
83
+ { text: 'Features', href: '#' },
84
+ { text: 'Pricing', href: '#' }
85
+ ]
86
+
87
+ const dropdownItems = [
88
+ { text: 'Action', href: '#' },
89
+ { text: 'Another action', href: '#' },
90
+ { divider: true },
91
+ { text: 'Separated link', href: '#' }
92
+ ]
93
+ </script>
94
+ ```
95
+
96
+ ### Composable Mode (Slot-Based)
97
+
98
+ For maximum flexibility and custom content:
99
+
100
+ ```vue
101
+ <template>
102
+ <VibeBreadcrumb>
103
+ <VibeBreadcrumbItem href="/">Home</VibeBreadcrumbItem>
104
+ <VibeBreadcrumbItem href="/products">Products</VibeBreadcrumbItem>
105
+ <VibeBreadcrumbItem active>Details</VibeBreadcrumbItem>
106
+ </VibeBreadcrumb>
107
+
108
+ <VibeNav tabs>
109
+ <VibeNavItem active href="#">Home</VibeNavItem>
110
+ <VibeNavItem href="#">Features</VibeNavItem>
111
+ <VibeNavItem href="#">Pricing</VibeNavItem>
112
+ </VibeNav>
113
+
114
+ <VibeDropdown id="menu" text="Menu">
115
+ <VibeDropdownItem href="#">Action</VibeDropdownItem>
116
+ <VibeDropdownItem href="#">Another action</VibeDropdownItem>
117
+ <VibeDropdownItem divider />
118
+ <VibeDropdownItem href="#">Separated link</VibeDropdownItem>
119
+ </VibeDropdown>
120
+ </template>
121
+ ```
122
+
123
+ Components with dual-mode support include: `VibeBreadcrumb`, `VibeNav`, `VibeNavbarNav`, `VibePagination`, `VibeListGroup`, `VibeAccordion`, `VibeDropdown`, and `VibeCarousel`.
124
+
58
125
  ## Components
59
126
 
60
- * VibeAlert
61
- * More components coming soon.
127
+ VibeUI includes all major Bootstrap 5.3 components:
128
+
129
+ ### Core Components
130
+ * **VibeAlert** - Alert messages with variants and dismissible option
131
+ * **VibeBadge** - Badges and labels with pill option
132
+ * **VibeButton** - Buttons with variants, sizes, and outline style
133
+ * **VibeButtonGroup** - Button groups with sizing and vertical layout
134
+ * **VibeCloseButton** - Close button with white variant
135
+ * **VibeSpinner** - Loading spinners (border and grow types)
136
+ * **VibePlaceholder** - Placeholder loading states with animations
137
+
138
+ ### Card Components
139
+ * **VibeCard** - Card container with variant styling
140
+ * **VibeCardHeader** - Card header section
141
+ * **VibeCardBody** - Card body section
142
+ * **VibeCardFooter** - Card footer section
143
+ * **VibeCardImg** - Card images (top, bottom, or overlay)
144
+ * **VibeCardTitle** - Card title heading
145
+ * **VibeCardText** - Card text paragraph
146
+
147
+ ### Navigation Components
148
+ * **VibeBreadcrumb** - Breadcrumb navigation container
149
+ * **VibeBreadcrumbItem** - Individual breadcrumb items
150
+ * **VibeNav** - Navigation tabs and pills
151
+ * **VibeNavItem** - Navigation items with active state
152
+ * **VibeNavbar** - Responsive navbar with variants
153
+ * **VibeNavbarBrand** - Navbar branding section
154
+ * **VibeNavbarToggle** - Navbar mobile toggle button
155
+ * **VibeNavbarNav** - Navbar navigation links container
156
+ * **VibePagination** - Pagination container
157
+ * **VibePaginationItem** - Individual pagination items
158
+
159
+ ### List Components
160
+ * **VibeListGroup** - List group container with flush and horizontal options
161
+ * **VibeListGroupItem** - List items with variants and active state
162
+
163
+ ### Progress Components
164
+ * **VibeProgress** - Progress bar container
165
+ * **VibeProgressBar** - Progress bar with variants, striped, and animated styles
166
+
167
+ ### Interactive Components
168
+ * **VibeAccordion** - Accordion container with flush option
169
+ * **VibeAccordionItem** - Collapsible accordion items
170
+ * **VibeCollapse** - Collapse component for showing/hiding content
171
+ * **VibeDropdown** - Dropdown menus with variants and directions
172
+ * **VibeDropdownItem** - Dropdown menu items, dividers, and headers
173
+ * **VibeModal** - Modal dialogs with sizes and positions
174
+ * **VibeOffcanvas** - Offcanvas sidebars with placement options
175
+ * **VibeToast** - Toast notifications with autohide
176
+ * **VibeCarousel** - Image carousels with controls and indicators
177
+ * **VibeCarouselSlide** - Individual carousel slides
178
+
179
+ ### Advanced Components
180
+ * **VibeTooltip** - Tooltips with placement options (requires Bootstrap JS)
181
+ * **VibePopover** - Popovers with title and content (requires Bootstrap JS)
182
+ * **VibeScrollspy** - Scrollspy for navigation highlighting
183
+
184
+ ### Data Components
185
+ * **VibeDataTable** - Powerful data table with search, sorting, and pagination
62
186
 
63
187
  ## Contributing
64
188
 
@@ -0,0 +1 @@
1
+ .vibe-datatable[data-v-48221c7b]{width:100%}.datatable-info[data-v-48221c7b]{padding:.5rem 0;color:#6c757d}