vlite3 1.5.11 → 1.5.13

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 (132) hide show
  1. package/README.md +20 -8
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/CategoryManager/CategoryManager2.vue.js +1 -1
  4. package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
  5. package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
  6. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  7. package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +2 -2
  8. package/components/Form/Form.vue.js +2 -2
  9. package/components/Form/index2.vue.js +1 -1
  10. package/components/NavbarCommandPalette.vue.js +1 -1
  11. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +7 -7
  12. package/components/PanZoomViewport/PanZoomViewport.vue.js +1 -1
  13. package/components/Screen/ScreenFilter.vue.js +1 -1
  14. package/components/Splitter/Splitter.vue.d.ts +7 -0
  15. package/components/Splitter/Splitter.vue.js +33 -29
  16. package/components/Tabes/Tabes.vue.js +2 -2
  17. package/docs/README.md +17 -0
  18. package/docs/all-components.md +89 -0
  19. package/docs/component-index.md +313 -0
  20. package/docs/components/accordion.md +52 -0
  21. package/docs/components/alert.md +34 -0
  22. package/docs/components/app-shell.md +371 -0
  23. package/docs/components/async-select.md +264 -0
  24. package/docs/components/attachments-list.md +231 -0
  25. package/docs/components/avatar-group.md +74 -0
  26. package/docs/components/avatar-uploader.md +61 -0
  27. package/docs/components/avatar.md +28 -0
  28. package/docs/components/badge.md +81 -0
  29. package/docs/components/barcode.md +42 -0
  30. package/docs/components/beacon.md +29 -0
  31. package/docs/components/breadcrumb.md +317 -0
  32. package/docs/components/button-group.md +35 -0
  33. package/docs/components/button.md +86 -0
  34. package/docs/components/calendar.md +95 -0
  35. package/docs/components/carousel.md +122 -0
  36. package/docs/components/cart.md +533 -0
  37. package/docs/components/category-manager.md +269 -0
  38. package/docs/components/category-menu.md +251 -0
  39. package/docs/components/charts.md +1456 -0
  40. package/docs/components/chat.md +330 -0
  41. package/docs/components/checkbox.md +31 -0
  42. package/docs/components/chip.md +137 -0
  43. package/docs/components/choice-box.md +40 -0
  44. package/docs/components/clipboard.md +105 -0
  45. package/docs/components/clock.md +70 -0
  46. package/docs/components/color-picker.md +82 -0
  47. package/docs/components/command-palette.md +214 -0
  48. package/docs/components/comment-thread.md +171 -0
  49. package/docs/components/confirmation-modal.md +50 -0
  50. package/docs/components/custom-fields-display.md +94 -0
  51. package/docs/components/custom-fields.md +97 -0
  52. package/docs/components/data-list.md +93 -0
  53. package/docs/components/data-table.md +922 -0
  54. package/docs/components/date-picker.md +58 -0
  55. package/docs/components/date-range-picker.md +24 -0
  56. package/docs/components/date-time.md +104 -0
  57. package/docs/components/dropdown.md +740 -0
  58. package/docs/components/empty.md +100 -0
  59. package/docs/components/export-data.md +320 -0
  60. package/docs/components/file-picker.md +83 -0
  61. package/docs/components/file-preview.md +42 -0
  62. package/docs/components/file-tree.md +144 -0
  63. package/docs/components/footer.md +251 -0
  64. package/docs/components/forms.md +776 -0
  65. package/docs/components/gantt-chart.md +767 -0
  66. package/docs/components/google-login.md +67 -0
  67. package/docs/components/google-map.md +128 -0
  68. package/docs/components/heatmap.md +80 -0
  69. package/docs/components/icon-picker.md +58 -0
  70. package/docs/components/icon.md +176 -0
  71. package/docs/components/image-comparison.md +51 -0
  72. package/docs/components/image-magnifier.md +26 -0
  73. package/docs/components/import-data.md +521 -0
  74. package/docs/components/input.md +58 -0
  75. package/docs/components/invoice.md +339 -0
  76. package/docs/components/kanban.md +302 -0
  77. package/docs/components/label.md +25 -0
  78. package/docs/components/list.md +419 -0
  79. package/docs/components/masonry.md +55 -0
  80. package/docs/components/modal.md +133 -0
  81. package/docs/components/multi-select.md +54 -0
  82. package/docs/components/navbar.md +403 -0
  83. package/docs/components/number-input.md +41 -0
  84. package/docs/components/otp-input.md +68 -0
  85. package/docs/components/pagination.md +83 -0
  86. package/docs/components/pan-zoom-viewport.md +245 -0
  87. package/docs/components/permission-editor.md +322 -0
  88. package/docs/components/persona.md +56 -0
  89. package/docs/components/price.md +106 -0
  90. package/docs/components/pricing-plan.md +68 -0
  91. package/docs/components/progress-bar.md +53 -0
  92. package/docs/components/qr-code.md +59 -0
  93. package/docs/components/rating.md +59 -0
  94. package/docs/components/rich-text-editor.md +210 -0
  95. package/docs/components/scale-generator.md +101 -0
  96. package/docs/components/screen.md +208 -0
  97. package/docs/components/seo-provider.md +189 -0
  98. package/docs/components/side-panel.md +94 -0
  99. package/docs/components/sidebar-menu.md +422 -0
  100. package/docs/components/skeleton.md +115 -0
  101. package/docs/components/slider.md +48 -0
  102. package/docs/components/spinner.md +27 -0
  103. package/docs/components/splitter.md +97 -0
  104. package/docs/components/stats.md +234 -0
  105. package/docs/components/status-chip.md +232 -0
  106. package/docs/components/switch.md +23 -0
  107. package/docs/components/tabs.md +335 -0
  108. package/docs/components/tag-input.md +55 -0
  109. package/docs/components/textarea.md +31 -0
  110. package/docs/components/theme-provider.md +130 -0
  111. package/docs/components/theme-toggle.md +36 -0
  112. package/docs/components/thumbnail-selector.md +186 -0
  113. package/docs/components/timeline.md +225 -0
  114. package/docs/components/toast-notification.md +89 -0
  115. package/docs/components/tooltip.md +31 -0
  116. package/docs/components/workbook.md +102 -0
  117. package/docs/composables/use-theme.md +59 -0
  118. package/docs/getting-started/setup.md +176 -0
  119. package/docs/guides/draggable.md +211 -0
  120. package/docs/guides/internationalization.md +281 -0
  121. package/docs/guides/performance.md +118 -0
  122. package/docs/guides/testing-forms.md +154 -0
  123. package/docs/guides/testing-overlays.md +131 -0
  124. package/docs/guides/theming.md +124 -0
  125. package/docs/utilities/search.md +580 -0
  126. package/docs/utilities/utilities.md +371 -0
  127. package/docs-manifest.json +339 -0
  128. package/package.json +6 -15
  129. package/scripts/generate-docs-manifest.js +207 -0
  130. package/scripts/sync-docs.js +754 -0
  131. package/style.css +1 -1
  132. /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
@@ -0,0 +1,403 @@
1
+ # Navbar
2
+
3
+ **Import:** `import { Navbar, NavbarGroup, NavbarItem, NavbarTabs } from 'vlite3'`
4
+
5
+ The `Navbar` component is a versatile top-level navigation primitive.
6
+ If you are looking to build a full application layout with sidebars and routing areas, you should use the new [`AppShell`](./app-shell.md) component instead. The `Navbar` is designed exclusively for horizontal header layouts (e.g. landing pages, standalone dashboards, simple navigation wrappers).
7
+
8
+ ---
9
+
10
+ ## Props
11
+
12
+ | Prop | Type | Default | Description |
13
+ | :------------------- | :------------------------------------------------- | :------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
14
+ | `variant` | `'header' \| 'sidebar'` | `'header'` | Renders the nav either as a horizontal top bar or a vertically constrained block mapping. (Typically you use `header` for Navbar). |
15
+ | `position` | `'fixed' \| 'sticky' \| 'relative' \| 'absolute'` | `'sticky'` | CSS positioning strategy applied to the nav element. |
16
+ | `centerPosition` | `'center' \| 'left' \| 'right'` | `'center'` | Controls the alignment of the `#center` slot content. |
17
+ | `glass` | `boolean` | `false` | Enables a frosted glass `backdrop-blur` effect on scroll. |
18
+ | `border` | `boolean` | `true` | Shows a bottom-border separator on the header. Disabled automatically when `floating` is true. |
19
+ | `floating` | `boolean` | `false` | Applies a floating card style with margin, rounded corners, shadow, and a subtle border. |
20
+ | `class` | `string` | `''` | Custom CSS class(es) appended to the root nav wrapper element. |
21
+ | `height` | `string` | `'h-16'` | Tailwind height class applied to the header container. |
22
+ | `compact` | `boolean` | `false` | Enables compact mode. Passed via provide/inject to child `NavbarItem` components. |
23
+ | `mobileBreakpoint` | `'sm' \| 'md' \| 'lg' \| 'xl'` | `'md'` | The Tailwind breakpoint at which the navbar switches from mobile (hamburger menu) to desktop layout slots. |
24
+ | `contentClass` | `string` | `''` | Additional CSS classes applied to the center container in the header. |
25
+ | `menuClass` | `string` | `''` | Additional CSS classes applied to the mobile dropdown menu container (when `mobileMenuVariant="dropdown"`). |
26
+ | `rightClass` | `string` | `''` | Additional CSS classes applied to the right-actions area. |
27
+ | `mobileTriggerClass` | `string` | `''` | Additional CSS classes applied to the default hamburger toggle button. |
28
+ | `mobileMenuVariant` | `'sidepanel' \| 'dropdown'` | `'sidepanel'` | Controls how the mobile menu is displayed. `sidepanel` opens an animated drawer from the left; `dropdown` renders a full-width panel below the navbar. |
29
+
30
+ ---
31
+
32
+ ## Slots
33
+
34
+ | Slot | Description | Scoped Props |
35
+ | :---------------- | :------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------- |
36
+ | `#logo` | Branding/logo area, rendered on the far left. | — |
37
+ | `#left` | Left nav links, placed right after the logo. Hidden on mobile. | — |
38
+ | `#center` | Center content navigation. Alignment controlled by `centerPosition`. | — |
39
+ | `#right` | Right action items (Buttons, User Avatars, Theme Toggles). | — |
40
+ | `#mobile-trigger` | Replaces the default hamburger `<button>`. Must handle open/close logic manually using scoped props. | `{ isOpen: boolean, toggle: () => void }` |
41
+ | `#mobile-menu` | Replaces the default mobile menu content (both `sidepanel` and `dropdown` variants). Renders the full content area of the mobile menu. By default, it mirrors `#left`, `#center`, and `#right`. | — |
42
+
43
+
44
+ ---
45
+
46
+ ## Usage
47
+
48
+ ### Standard Top Header
49
+
50
+ ```vue
51
+ <Navbar variant="header" position="sticky" glass>
52
+ <template #logo>
53
+ <div class="font-bold text-xl flex items-center gap-2">
54
+ <Icon icon="lucide:box" /> MyBrand
55
+ </div>
56
+ </template>
57
+
58
+ <template #left>
59
+ <NavbarGroup>
60
+ <NavbarItem label="Features" to="/features" />
61
+ <NavbarItem label="Pricing" to="/pricing" />
62
+ <NavbarItem label="Customers" to="/customers" />
63
+ </NavbarGroup>
64
+ </template>
65
+
66
+ <!-- Centered search bar -->
67
+ <template #center>
68
+ <Input placeholder="Search..." icon="lucide:search" class="w-64" />
69
+ </template>
70
+
71
+ <template #right>
72
+ <Button variant="ghost" size="sm">Log in</Button>
73
+ <Button size="sm">Get Started</Button>
74
+ </template>
75
+ </Navbar>
76
+ ```
77
+
78
+ ### Mobile Menu: Dropdown Variant
79
+
80
+ ```vue
81
+ <Navbar mobile-menu-variant="dropdown" mobile-breakpoint="lg">
82
+ <template #logo>
83
+ <span class="font-bold">Brand</span>
84
+ </template>
85
+
86
+ <template #left>
87
+ <NavbarGroup>
88
+ <NavbarItem label="Products" to="/products" />
89
+ <NavbarItem label="Solutions" to="/solutions" />
90
+ </NavbarGroup>
91
+ </template>
92
+
93
+ <template #right>
94
+ <Button size="sm">Sign In</Button>
95
+ </template>
96
+
97
+ <template #mobile-menu>
98
+ <!-- Explicit mobile override -->
99
+ <div class="flex flex-col p-2 space-y-1">
100
+ <NavbarItem label="Products" to="/products" />
101
+ <NavbarItem label="Solutions" to="/solutions" />
102
+ <div class="h-px bg-border my-2" />
103
+ <NavbarItem label="Sign In" to="/login" />
104
+ </div>
105
+ </template>
106
+ </Navbar>
107
+ ```
108
+
109
+ ### Custom Mobile Trigger
110
+
111
+ ```vue
112
+ <Navbar variant="header">
113
+ <template #logo>Brand</template>
114
+
115
+ <template #mobile-trigger="{ isOpen, toggle }">
116
+ <button class="p-2 rounded-md bg-primary text-white" @click="toggle">
117
+ <Icon :icon="isOpen ? 'lucide:x' : 'lucide:menu'" />
118
+ </button>
119
+ </template>
120
+
121
+ <template #left>
122
+ <NavbarItem label="Home" to="/" />
123
+ </template>
124
+ </Navbar>
125
+ ```
126
+
127
+ ---
128
+
129
+ ## NavbarGroup
130
+
131
+ **Import:** `import { NavbarGroup } from 'vlite3'`
132
+
133
+ A simple layout wrapper that groups `NavbarItem` components either horizontally or vertically.
134
+
135
+ ### NavbarGroup Props
136
+
137
+ | Prop | Type | Default | Description |
138
+ | :------------ | :--------------------------- | :------------- | :---------------------------------------------------------------------------------------------------------------------- |
139
+ | `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Flex direction of the group. `horizontal` uses `flex-row items-center space-x-1`; `vertical` uses `flex-col space-y-1`. |
140
+ | `class` | `string` | `''` | Additional CSS classes on the wrapper div. |
141
+
142
+ ### NavbarGroup Usage
143
+
144
+ ```vue
145
+ <!-- Horizontal group (default) for header nav links -->
146
+ <NavbarGroup>
147
+ <NavbarItem label="Home" to="/" />
148
+ <NavbarItem label="About" to="/about" />
149
+ <NavbarItem label="Contact" to="/contact" />
150
+ </NavbarGroup>
151
+
152
+ <!-- Vertical group for stacked links (e.g. mobile menu) -->
153
+ <NavbarGroup orientation="vertical">
154
+ <NavbarItem label="Home" to="/" />
155
+ <NavbarItem label="About" to="/about" />
156
+ </NavbarGroup>
157
+ ```
158
+
159
+ ---
160
+
161
+ ## NavbarItem
162
+
163
+ **Import:** `import { NavbarItem } from 'vlite3'`
164
+
165
+ A single navigation link or button within the navbar. Automatically detects the active route via Vue Router and supports icons, badges, disabled state, external links, and compact mode.
166
+
167
+ ### NavbarItem Props
168
+
169
+ | Prop | Type | Default | Description |
170
+ | :------------ | :---------------------------------------------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------ |
171
+ | `to` | `string` | `—` | Vue Router link target path. Renders as a `<router-link>`. Active state auto-detected from current route. |
172
+ | `href` | `string` | `—` | External URL. Renders as an `<a>` tag with `target="_blank"` and `rel="noopener noreferrer"` when the URL starts with `http` or `//`. |
173
+ | `label` | `string` | `—` | Link text. Also used as the tooltip content in compact mode. Can alternatively be provided via the default slot. |
174
+ | `icon` | `string` | `—` | Leading icon identifier (e.g. `'lucide:home'`). Rendered via the `<Icon>` component. |
175
+ | `iconRight` | `string` | `—` | Trailing icon identifier. Hidden in compact mode. |
176
+ | `active` | `boolean` | `false` | Forces the active visual state regardless of the current route. |
177
+ | `disabled` | `boolean` | `false` | Disables all pointer events and applies `opacity-50`. Prevents click events. |
178
+ | `class` | `string` | `''` | Additional CSS classes on the root component element. |
179
+ | `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Layout orientation (inferred from parent context; can be forced). |
180
+ | `variant` | `'default' \| 'pill' \| 'underline' \| 'ghost'` | `'ghost'` | Visual style of the item. |
181
+
182
+ ### NavbarItem Variants
183
+
184
+ | Variant | Active State | Inactive State |
185
+ | :---------------- | :----------------------------------------------------- | :------------------------------------------------------------------------ |
186
+ | `ghost` (default) | `bg-primary-light text-primary-fg-light font-semibold` | `text-muted-foreground hover:bg-accent hover:text-foreground` |
187
+ | `pill` | `bg-primary text-primary-fg shadow-sm` | `text-muted-foreground hover:bg-accent hover:text-foreground` |
188
+ | `underline` | `text-primary border-b-2 border-primary rounded-none` | `text-muted-foreground border-b-2 border-transparent hover:border-border` |
189
+ | `default` | `text-foreground font-semibold` | `text-muted-foreground hover:text-foreground` |
190
+
191
+ ### NavbarItem Slots
192
+
193
+ | Slot | Description |
194
+ | :-------- | :------------------------------------------------------------------------------------------------------------ |
195
+ | `default` | Replaces the label text. |
196
+ | `badge` | Renders additional content (e.g. a count badge) aligned to the far right of the item. Hidden in compact mode. |
197
+
198
+ ### NavbarItem Emits
199
+
200
+ | Event | Payload | Description |
201
+ | :------ | :----------- | :-------------------------------------------------------------- |
202
+ | `click` | `MouseEvent` | Emitted when the item is clicked (not emitted when `disabled`). |
203
+
204
+ ### NavbarItem Usage
205
+
206
+ ```vue
207
+ <!-- Basic router link -->
208
+ <NavbarItem label="Dashboard" to="/dashboard" />
209
+
210
+ <!-- With leading and trailing icons -->
211
+ <NavbarItem label="Settings" to="/settings" icon="lucide:settings" icon-right="lucide:chevron-right" />
212
+
213
+ <!-- External link -->
214
+ <NavbarItem label="Documentation" href="https://docs.example.com" icon="lucide:external-link" />
215
+
216
+ <!-- Forced active state -->
217
+ <NavbarItem label="Reports" to="/reports" :active="true" />
218
+
219
+ <!-- Disabled -->
220
+ <NavbarItem label="Billing" to="/billing" :disabled="true" />
221
+
222
+ <!-- Pill variant -->
223
+ <NavbarItem label="New" to="/new" variant="pill" />
224
+
225
+ <!-- Underline variant (suited for tab-style headers) -->
226
+ <NavbarItem label="Overview" to="/overview" variant="underline" />
227
+
228
+ <!-- With badge slot -->
229
+ <NavbarItem label="Notifications" to="/notifications" icon="lucide:bell">
230
+ <template #badge>
231
+ <span class="bg-red-500 text-white text-[10px] px-1.5 py-0.5 rounded-full">12</span>
232
+ </template>
233
+ </NavbarItem>
234
+
235
+ <!-- Custom label content via default slot -->
236
+ <NavbarItem to="/profile" icon="lucide:user">
237
+ <span class="font-semibold text-primary">John Doe</span>
238
+ </NavbarItem>
239
+ ```
240
+
241
+ ---
242
+
243
+ ## NavbarTabs
244
+
245
+ **Import:** `import { NavbarTabs } from 'vlite3'`
246
+ **Types:** `import type { NavbarTabItem, NavbarTabsVariant, NavbarTabsSize } from 'vlite3'`
247
+
248
+ A horizontal, router-linked tab bar with automatic overflow detection, scroll fade indicators, and keyboard accessibility.
249
+
250
+ ### NavbarTabs Props
251
+
252
+ | Prop | Type | Default | Description |
253
+ | :-------------- | :------------------ | :-------- | :------------------------------------------------------------------------ |
254
+ | `items` | `NavbarTabItem[]` | required | Array of tab definitions. Each must have a `label` and a `to` route path. |
255
+ | `variant` | `NavbarTabsVariant` | `'solid'` | Visual style of the tabs. |
256
+ | `size` | `NavbarTabsSize` | `'md'` | Size of the tab items, controlling padding and font size. |
257
+ | `activeClass` | `string` | `''` | Overrides the default active tab CSS classes entirely. |
258
+ | `inactiveClass` | `string` | `''` | Overrides the default inactive tab CSS classes entirely. |
259
+ | `class` | `string` | `''` | Custom class applied to the root wrapper element. |
260
+
261
+ ### NavbarTabs Types
262
+
263
+ ```ts
264
+ export interface NavbarTabItem {
265
+ label: string
266
+ labelI18n?: string
267
+ to: string
268
+ icon?: string
269
+ iconRight?: string
270
+ disabled?: boolean
271
+ exact?: boolean
272
+ }
273
+
274
+ export type NavbarTabsVariant = 'line' | 'pill' | 'solid' | 'ghost'
275
+ export type NavbarTabsSize = 'sm' | 'md' | 'lg'
276
+ ```
277
+
278
+ ### NavbarTabs Variants
279
+
280
+ | Variant | Container Style | Active Style | Inactive Style |
281
+ | :------ | :------------------------------- | :---------------------------------------------- | :------------------------------------------------------------------------ |
282
+ | `line` | `border-b border-border` | `text-primary border-b-2 border-primary -mb-px` | `text-muted-foreground border-b-2 border-transparent hover:border-border` |
283
+ | `pill` | `p-1 bg-secondary/80 rounded-lg` | `bg-background text-foreground shadow-sm` | `text-muted-foreground hover:bg-accent/60` |
284
+ | `solid` | `flex gap-0` | `bg-primary-light text-primary-dark` | `text-muted-foreground hover:bg-accent` |
285
+ | `ghost` | `flex gap-1` | `bg-accent text-accent-foreground` | `text-muted-foreground hover:bg-accent/60` |
286
+
287
+ ### NavbarTabs Sizes
288
+
289
+ | Size | Padding | Font Size |
290
+ | :--- | :-------------- | :---------- |
291
+ | `sm` | `px-2.5 py-1.5` | `text-xs` |
292
+ | `md` | `px-3.5 py-2` | `text-sm` |
293
+ | `lg` | `px-5 py-2.5` | `text-base` |
294
+
295
+ ### NavbarTabs Features
296
+
297
+ - Uses `<RouterLink>` with proper `aria-selected` and `role="tab"` attributes.
298
+ - Horizontal overflow with a hidden scrollbar (scroll still works via touch/trackpad).
299
+ - Fade gradient overlay + chevron buttons appear automatically when tabs overflow the container.
300
+ - The active tab is scrolled into view on every route change via `scrollIntoView`.
301
+ - **Smart active matching**: boundary-aware prefix check — `/button` does NOT match `/buttongroup`. Exact matching forced when `item.exact = true` or `item.to = '/'`.
302
+
303
+ ### NavbarTabs Usage
304
+
305
+ ```vue
306
+ <!-- Line tabs (default) -->
307
+ <NavbarTabs
308
+ :items="[
309
+ { label: 'Overview', to: '/project/overview' },
310
+ { label: 'Issues', to: '/project/issues' },
311
+ { label: 'Settings', to: '/project/settings' },
312
+ ]"
313
+ variant="line"
314
+ size="md" />
315
+
316
+ <!-- With icons -->
317
+ <NavbarTabs
318
+ :items="[
319
+ { label: 'General', to: '/settings/general', icon: 'lucide:settings' },
320
+ { label: 'Profile', to: '/settings/profile', icon: 'lucide:user' },
321
+ { label: 'Security', to: '/settings/security', icon: 'lucide:shield' },
322
+ ]"
323
+ variant="line" />
324
+
325
+ <!-- Pill style -->
326
+ <NavbarTabs
327
+ :items="[
328
+ { label: 'All', to: '/items/all' },
329
+ { label: 'Active', to: '/items/active' },
330
+ { label: 'Archived', to: '/items/archived' },
331
+ ]"
332
+ variant="pill"
333
+ size="sm" />
334
+
335
+ <!-- Disabled tab -->
336
+ <NavbarTabs
337
+ :items="[
338
+ { label: 'Available', to: '/tab/a' },
339
+ { label: 'Coming Soon', to: '/tab/b', disabled: true },
340
+ ]"
341
+ variant="solid" />
342
+
343
+ <!-- Exact route matching -->
344
+ <NavbarTabs
345
+ :items="[
346
+ { label: 'Root', to: '/', exact: true },
347
+ { label: 'Docs', to: '/docs' },
348
+ ]"
349
+ variant="ghost" />
350
+
351
+ <!-- Custom active/inactive class overrides -->
352
+ <NavbarTabs
353
+ :items="tabs"
354
+ variant="line"
355
+ active-class="text-purple-600 border-b-2 border-purple-600 -mb-px"
356
+ inactive-class="text-gray-400 border-b-2 border-transparent hover:text-gray-600" />
357
+ ```
358
+
359
+ ---
360
+
361
+ ## Type Reference
362
+
363
+ ```ts
364
+ export type NavbarVariant = 'header' | 'sidebar'
365
+ export type NavbarPosition = 'fixed' | 'sticky' | 'relative' | 'absolute'
366
+ export type NavbarCenterPosition = 'center' | 'left' | 'right'
367
+
368
+ export interface NavbarProps {
369
+ variant?: NavbarVariant
370
+ position?: NavbarPosition
371
+ centerPosition?: NavbarCenterPosition
372
+ glass?: boolean
373
+ border?: boolean
374
+ floating?: boolean
375
+ class?: string
376
+ height?: string
377
+ compact?: boolean
378
+ mobileBreakpoint?: 'sm' | 'md' | 'lg' | 'xl'
379
+ logoClass?: string
380
+ contentClass?: string
381
+ menuClass?: string
382
+ rightClass?: string
383
+ mobileTriggerClass?: string
384
+ mobileMenuVariant?: 'sidepanel' | 'dropdown'
385
+ }
386
+ ```
387
+
388
+ ---
389
+
390
+ ## RTL
391
+
392
+ Under `html[dir=rtl]`:
393
+
394
+ - Sidebar borders and fixed positioning use logical `start` / `border-e` utilities
395
+ - Mobile drawer docks to **inline-start** (SidePanel `position="left"` = start)
396
+ - `NavbarTabs` overflow arrows, fades, and scroll direction follow start/end (same helpers as Tabes)
397
+ - Compact-mode tooltips open toward the content (`left` in RTL, `right` in LTR)
398
+
399
+ ## Notes & Best Practices
400
+
401
+ - Use `Navbar` solely for headers or simple side panels without integrated app layouts. To architect layouts with connected routes, sidebars, and nested tabs dynamically routing the page, you must use [`AppShell`](./app-shell.md).
402
+ - When using `mobileMenuVariant="dropdown"`, the parent must be a positioned container for correct stacking (or attach CSS directly to the parent layout).
403
+ - The mobile `SidePanel` and `dropdown` menus cleanly mirror `#left`, `#center`, and `#right` content. Using `#mobile-menu` overrides them entirely.
@@ -0,0 +1,41 @@
1
+ # NumberInput
2
+
3
+ **Import:** `import { NumberInput } from 'vlite3'`
4
+
5
+ ### Props
6
+
7
+ | Prop | Type | Default | Description |
8
+ | :------------ | :------------------- | :---------- | :---------------------- |
9
+ | `modelValue` | `number` | `undefined` | Binding (`v-model`) |
10
+ | `min` | `number` | — | Minimum value |
11
+ | `max` | `number` | — | Maximum value |
12
+ | `step` | `number` | `1` | Increment step |
13
+ | `variant` | `NumberInputVariant` | `split` | Visual style |
14
+ | `mode` | `NumberInputMode` | `outline` | Background/border style |
15
+ | `size` | `NumberInputSize` | `md` | Dimensions |
16
+ | `rounded` | `NumberInputRounded` | `md` | Border radius |
17
+ | `placeholder` | `string` | — | Input placeholder |
18
+ | `name` | `string` | — | Input name attribute |
19
+ | `id` | `string` | — | Input ID attribute |
20
+ | `disabled` | `boolean` | `false` | Disable interaction |
21
+ | `readonly` | `boolean` | `false` | Read-only state |
22
+
23
+ ### Types
24
+
25
+ ```ts
26
+ type NumberInputVariant = 'split' | 'stacked'
27
+ type NumberInputMode = 'solid' | 'outline' | 'ghost'
28
+ type NumberInputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
29
+ type NumberInputRounded = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full'
30
+ ```
31
+
32
+ ### Usage
33
+
34
+ ```vue
35
+ <NumberInput v-model="quantity" :min="1" :max="10" />
36
+ <NumberInput v-model="price" variant="stacked" mode="ghost" />
37
+ ```
38
+
39
+ #### RTL
40
+
41
+ The stepper strip is a **`dir="ltr"` island** (− on the left, + on the right) with logical radii/borders inside that island. The number field’s placeholder and text direction follow page `dir` so localized placeholders still mirror under RTL.
@@ -0,0 +1,68 @@
1
+ # OTPInput
2
+
3
+ **Import:** `import { OTPInput } from 'vlite3'`
4
+
5
+ ### Props
6
+
7
+ | Prop | Type | Default | Description |
8
+ | :------------ | :-------------------------------- | :-------- | :------------------------------------------------- |
9
+ | `modelValue` | `string` | `''` | Binding (`v-model`) - Joined string |
10
+ | `length` | `number` | `6` | Number of inputs |
11
+ | `type` | `'text' \| 'number'` | `number` | Input mask |
12
+ | `placeholder` | `string` | `''` | Input placeholder |
13
+ | `variant` | `'solid' \| 'outline' \| 'ghost'` | `outline` | Visual style |
14
+ | `size` | `'sm' \| 'md' \| 'lg'` | `md` | Dimensions |
15
+ | `attached` | `boolean` | `false` | Group inputs visually |
16
+ | `error` | `boolean` | `false` | Error state |
17
+ | `disabled` | `boolean` | `false` | Disable all inputs |
18
+ | `autofocus` | `boolean` | `false` | Focus first input on mount |
19
+ | `mask` | `boolean` | `false` | Hide input values like a password field |
20
+ | `fluid` | `boolean` | `false` | Stretch inputs to fill parent container width equally |
21
+ | `allowResend` | `boolean` | `false` | Enables the resend countdown UI |
22
+ | `resendDuration` | `number` | `45` | The countdown duration in seconds |
23
+ | `maxResends` | `number` | `5` | Maximum number of times a user can resend |
24
+ | `resendText` | `string` | `'Don\'t see it?'` | Text displayed before wait/action text |
25
+ | `resendActionText` | `string` | `'Resend code'` | Text of the clickable action button |
26
+ | `resendWaitText` | `string` | `'Resend code in'` | Text displayed during countdown |
27
+ | `resendLimitText` | `string` | `'Too many attempts...'` | Text displayed when limits are reached |
28
+
29
+ ### Events
30
+
31
+ - `@update:modelValue`: Emitted on change
32
+ - `@change`: Emitted when the joined string changes
33
+ - `@complete`: Emitted when all fields are filled
34
+ - `@resend`: Emitted when the user requests a new code, providing the current `count`
35
+ - `@resend-limit-reached`: Emitted when the user surpasses the `maxResends` capacity
36
+
37
+ #### RTL
38
+
39
+ The digit row is a **`dir="ltr"` island** (left → right), including attached-cell radii and attached `-space-x` overlap, so digit order and focus traversal stay left-to-right on RTL pages.
40
+
41
+ ### Usage
42
+ ```vue
43
+ <!-- Basic -->
44
+ <OTPInput v-model="otp" :length="4" variant="solid" @complete="verifyOtp" />
45
+
46
+ <!-- Masked (hidden digits like password) -->
47
+ <OTPInput v-model="otp" mask @complete="verifyOtp" />
48
+
49
+ <!-- Fluid (stretches to parent width) -->
50
+ <div class="w-full max-w-sm">
51
+ <OTPInput v-model="otp" fluid />
52
+ </div>
53
+
54
+ <!-- Masked + Fluid -->
55
+ <div class="w-full max-w-sm">
56
+ <OTPInput v-model="otp" mask fluid @complete="verifyOtp" />
57
+ </div>
58
+
59
+ <!-- With Resend Functionality -->
60
+ <OTPInput
61
+ v-model="otp"
62
+ allow-resend
63
+ :resend-duration="45"
64
+ :max-resends="3"
65
+ @resend="handleResend"
66
+ @resend-limit-reached="handleResendLimit"
67
+ />
68
+ ```
@@ -0,0 +1,83 @@
1
+ # Pagination
2
+
3
+ **Import:** `import { Pagination } from 'vlite3'`
4
+
5
+ ### Props
6
+
7
+ | Prop | Type | Default | Description |
8
+ | :-------------------- | :------------------------------------------ | :------------ | :------------------------------------------------- |
9
+ | `currentPage` | `number` | `1` | Binding (`v-model:currentPage`) |
10
+ | `totalPages` | `number` | required | Total pages |
11
+ | `totalItems` | `number` | `0` | Total number of items (records) |
12
+ | `siblingCount` | `number` | `1` | Number of sibling pages to show next to current |
13
+ | `disabled` | `boolean` | `false` | Disable navigation |
14
+ | `showEdges` | `boolean` | `false` | Show first/last buttons |
15
+ | `showPageInfo` | `boolean` | `false` | Show "Page X of Y" |
16
+ | `showItemsPerPage` | `boolean` | `false` | Show limit selector |
17
+ | `itemsPerPage` | `number` | `10` | Binding (`v-model:itemsPerPage`) |
18
+ | `itemsPerPageOptions` | `number[]` | `[10, 25...]` | Limit options |
19
+ | `navType` | `'text' \| 'icon'` | `text` | Navigation style |
20
+ | `alignment` | `'start' \| 'center' \| 'end' \| 'between'` | — | Flex alignment |
21
+ | `activeVariant` | `PaginationVariant` | `'outline'` | Visual style for the active/current page button |
22
+ | `rounded` | `PaginationRounded` | `'md'` | Border-radius preset applied to all page buttons |
23
+
24
+ ### Types
25
+ ```ts
26
+ type PaginationVariant = 'outline' | 'solid' | 'ghost'
27
+ type PaginationRounded = 'none' | 'sm' | 'md' | 'lg' | 'full'
28
+ ```
29
+
30
+ ### Active Variant
31
+
32
+ | Value | Description |
33
+ | :-------- | :----------------------------------------------------------------------- |
34
+ | `outline` | Bordered button with ring highlight (legacy default) |
35
+ | `solid` | Filled primary-color background with white text — most visually distinct |
36
+ | `ghost` | Subtle accent background with semi-bold text |
37
+
38
+ ### Rounded Preset
39
+
40
+ | Value | Tailwind class |
41
+ | :----- | :--------------- |
42
+ | `none` | `rounded-none` |
43
+ | `sm` | `rounded-sm` |
44
+ | `md` | `rounded-md` |
45
+ | `lg` | `rounded-lg` |
46
+ | `full` | `rounded-full` |
47
+
48
+ ### Events
49
+
50
+ - `@update:currentPage`: Emitted to update page (v-model)
51
+ - `@change`: Emitted on page change
52
+ - `@update:itemsPerPage`: Emitted to update limit (v-model)
53
+ - `@change:itemsPerPage`: Emitted when items per page changes
54
+
55
+ ### Usage
56
+ ```vue
57
+ <!-- Solid active indicator, pill-shaped buttons -->
58
+ <Pagination
59
+ v-model:currentPage="page"
60
+ :total-pages="20"
61
+ active-variant="solid"
62
+ rounded="full" />
63
+
64
+ <!-- Full-featured with items-per-page selector -->
65
+ <Pagination
66
+ v-model:currentPage="page"
67
+ v-model:itemsPerPage="limit"
68
+ :total-pages="10"
69
+ show-page-info
70
+ show-items-per-page
71
+ active-variant="solid"
72
+ alignment="between" />
73
+ ```
74
+
75
+ #### RTL
76
+
77
+ Under `html[dir=rtl]`:
78
+
79
+ - Page numbers flow with the page direction (page 1 on **inline-start** / right)
80
+ - **Previous** sits on inline-start and **Next** on inline-end
81
+ - First / previous / next / last chevrons flip so they point toward the travel direction
82
+ - “Show N per page” and “Page X of Y” stay an **LTR island** so English phrase order is not scrambled
83
+