vlite3 1.5.12 → 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.
- package/README.md +20 -8
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/AccordionView2.vue.js +1 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +7 -7
- package/components/PanZoomViewport/PanZoomViewport.vue.js +1 -1
- package/components/Tabes/Tabes.vue.js +2 -2
- package/docs/README.md +17 -0
- package/docs/all-components.md +89 -0
- package/docs/component-index.md +313 -0
- package/docs/components/accordion.md +52 -0
- package/docs/components/alert.md +34 -0
- package/docs/components/app-shell.md +371 -0
- package/docs/components/async-select.md +264 -0
- package/docs/components/attachments-list.md +231 -0
- package/docs/components/avatar-group.md +74 -0
- package/docs/components/avatar-uploader.md +61 -0
- package/docs/components/avatar.md +28 -0
- package/docs/components/badge.md +81 -0
- package/docs/components/barcode.md +42 -0
- package/docs/components/beacon.md +29 -0
- package/docs/components/breadcrumb.md +317 -0
- package/docs/components/button-group.md +35 -0
- package/docs/components/button.md +86 -0
- package/docs/components/calendar.md +95 -0
- package/docs/components/carousel.md +122 -0
- package/docs/components/cart.md +533 -0
- package/docs/components/category-manager.md +269 -0
- package/docs/components/category-menu.md +251 -0
- package/docs/components/charts.md +1456 -0
- package/docs/components/chat.md +330 -0
- package/docs/components/checkbox.md +31 -0
- package/docs/components/chip.md +137 -0
- package/docs/components/choice-box.md +40 -0
- package/docs/components/clipboard.md +105 -0
- package/docs/components/clock.md +70 -0
- package/docs/components/color-picker.md +82 -0
- package/docs/components/command-palette.md +214 -0
- package/docs/components/comment-thread.md +171 -0
- package/docs/components/confirmation-modal.md +50 -0
- package/docs/components/custom-fields-display.md +94 -0
- package/docs/components/custom-fields.md +97 -0
- package/docs/components/data-list.md +93 -0
- package/docs/components/data-table.md +922 -0
- package/docs/components/date-picker.md +58 -0
- package/docs/components/date-range-picker.md +24 -0
- package/docs/components/date-time.md +104 -0
- package/docs/components/dropdown.md +740 -0
- package/docs/components/empty.md +100 -0
- package/docs/components/export-data.md +320 -0
- package/docs/components/file-picker.md +83 -0
- package/docs/components/file-preview.md +42 -0
- package/docs/components/file-tree.md +144 -0
- package/docs/components/footer.md +251 -0
- package/docs/components/forms.md +776 -0
- package/docs/components/gantt-chart.md +767 -0
- package/docs/components/google-login.md +67 -0
- package/docs/components/google-map.md +128 -0
- package/docs/components/heatmap.md +80 -0
- package/docs/components/icon-picker.md +58 -0
- package/docs/components/icon.md +176 -0
- package/docs/components/image-comparison.md +51 -0
- package/docs/components/image-magnifier.md +26 -0
- package/docs/components/import-data.md +521 -0
- package/docs/components/input.md +58 -0
- package/docs/components/invoice.md +339 -0
- package/docs/components/kanban.md +302 -0
- package/docs/components/label.md +25 -0
- package/docs/components/list.md +419 -0
- package/docs/components/masonry.md +55 -0
- package/docs/components/modal.md +133 -0
- package/docs/components/multi-select.md +54 -0
- package/docs/components/navbar.md +403 -0
- package/docs/components/number-input.md +41 -0
- package/docs/components/otp-input.md +68 -0
- package/docs/components/pagination.md +83 -0
- package/docs/components/pan-zoom-viewport.md +245 -0
- package/docs/components/permission-editor.md +322 -0
- package/docs/components/persona.md +56 -0
- package/docs/components/price.md +106 -0
- package/docs/components/pricing-plan.md +68 -0
- package/docs/components/progress-bar.md +53 -0
- package/docs/components/qr-code.md +59 -0
- package/docs/components/rating.md +59 -0
- package/docs/components/rich-text-editor.md +210 -0
- package/docs/components/scale-generator.md +101 -0
- package/docs/components/screen.md +208 -0
- package/docs/components/seo-provider.md +189 -0
- package/docs/components/side-panel.md +94 -0
- package/docs/components/sidebar-menu.md +422 -0
- package/docs/components/skeleton.md +115 -0
- package/docs/components/slider.md +48 -0
- package/docs/components/spinner.md +27 -0
- package/docs/components/splitter.md +97 -0
- package/docs/components/stats.md +234 -0
- package/docs/components/status-chip.md +232 -0
- package/docs/components/switch.md +23 -0
- package/docs/components/tabs.md +335 -0
- package/docs/components/tag-input.md +55 -0
- package/docs/components/textarea.md +31 -0
- package/docs/components/theme-provider.md +130 -0
- package/docs/components/theme-toggle.md +36 -0
- package/docs/components/thumbnail-selector.md +186 -0
- package/docs/components/timeline.md +225 -0
- package/docs/components/toast-notification.md +89 -0
- package/docs/components/tooltip.md +31 -0
- package/docs/components/workbook.md +102 -0
- package/docs/composables/use-theme.md +59 -0
- package/docs/getting-started/setup.md +176 -0
- package/docs/guides/draggable.md +211 -0
- package/docs/guides/internationalization.md +281 -0
- package/docs/guides/performance.md +118 -0
- package/docs/guides/testing-forms.md +154 -0
- package/docs/guides/testing-overlays.md +131 -0
- package/docs/guides/theming.md +124 -0
- package/docs/utilities/search.md +580 -0
- package/docs/utilities/utilities.md +371 -0
- package/docs-manifest.json +339 -0
- package/package.json +5 -13
- package/scripts/generate-docs-manifest.js +207 -0
- package/scripts/sync-docs.js +754 -0
- package/style.css +1 -1
- /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Footer Component
|
|
2
|
+
|
|
3
|
+
**Import:** `import { Footer } from 'vlite3'`
|
|
4
|
+
|
|
5
|
+
### Description
|
|
6
|
+
|
|
7
|
+
An API-driven, multi-variant footer component for Vue 3. Pass a single JSON data object and the component auto-generates brand sections, link columns, social icons, optional newsletter subscriptions, and legal links. Fully customizable through props with complete dark mode support.
|
|
8
|
+
|
|
9
|
+
The component ships with 3 visual variants designed for different use cases — from full marketing websites to minimal dashboard footers.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
### Props
|
|
14
|
+
|
|
15
|
+
| Prop | Type | Default | Description |
|
|
16
|
+
| :--------------- | :------------------------------------------- | :----------- | :----------------------------------------------------------------------------- |
|
|
17
|
+
| `data` | `FooterData` | **Required** | The complete data object powering the footer. |
|
|
18
|
+
| `variant` | `FooterVariant` | `'Variant1'` | Selects the visual style: `'Variant1'`, `'Variant2'`, or `'Variant3'`. |
|
|
19
|
+
| `labels` | `FooterLabels` | `{}` | Custom static text labels (e.g. overriding "Subscribe", "Follow us"). |
|
|
20
|
+
| `containerClass` | `string \| any[] \| Record<string, boolean>` | `undefined` | Custom class applied to the root footer element. |
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
### Events
|
|
25
|
+
|
|
26
|
+
| Event | Payload | Description |
|
|
27
|
+
| :----------- | :----------------------------- | :---------------------------------------------------------- |
|
|
28
|
+
| `subscribe` | `email: string` | Emitted when the newsletter subscribe button is clicked. |
|
|
29
|
+
| `link-click` | `url: string, event: MouseEvent` | Emitted when any link is clicked (useful for SPA routing). |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### Data Models (API Reference)
|
|
34
|
+
|
|
35
|
+
#### `FooterData`
|
|
36
|
+
|
|
37
|
+
The root object passed to the `:data` prop.
|
|
38
|
+
|
|
39
|
+
| Field | Type | Description |
|
|
40
|
+
| :----------------- | :------------------------- | :----------------------------------------------------------------------- |
|
|
41
|
+
| `brandName` | `string?` | Company or brand name displayed in the footer. |
|
|
42
|
+
| `brandLogo` | `string?` | URL to the brand logo image. |
|
|
43
|
+
| `brandDescription` | `string?` | Brand tagline or short description. |
|
|
44
|
+
| `linkGroups` | `FooterLinkGroup[]?` | Column-based link groups (e.g., Product, Company, Resources). |
|
|
45
|
+
| `socialLinks` | `FooterSocialLink[]?` | Social media icon links rendered as icon buttons. |
|
|
46
|
+
| `copyright` | `string?` | Copyright text (e.g., '© 2024 Acme Inc. All rights reserved.'). |
|
|
47
|
+
| `legalLinks` | `FooterLink[]?` | Legal links in the bottom bar (e.g., Terms, Privacy Policy). |
|
|
48
|
+
| `newsletter` | `FooterNewsletterConfig?` | Optional newsletter subscription section configuration. |
|
|
49
|
+
| `badge` | `string?` | Small badge text near brand (e.g., version number). |
|
|
50
|
+
|
|
51
|
+
#### `FooterLinkGroup`
|
|
52
|
+
|
|
53
|
+
Defines a column of links in the footer.
|
|
54
|
+
|
|
55
|
+
| Field | Type | Description |
|
|
56
|
+
| :------ | :-------------- | :--------------------------------------------- |
|
|
57
|
+
| `title` | `string` | Column heading (e.g., 'Product', 'Company'). |
|
|
58
|
+
| `links` | `FooterLink[]` | Array of links in this group. |
|
|
59
|
+
|
|
60
|
+
#### `FooterLink`
|
|
61
|
+
|
|
62
|
+
Individual navigational link.
|
|
63
|
+
|
|
64
|
+
| Field | Type | Description |
|
|
65
|
+
| :--------- | :--------- | :-------------------------------------------------------------- |
|
|
66
|
+
| `label` | `string` | Display text for the link. |
|
|
67
|
+
| `url` | `string` | Full URL (href). |
|
|
68
|
+
| `external` | `boolean?` | Opens in a new tab with `rel="noopener noreferrer"`. |
|
|
69
|
+
| `icon` | `string?` | Optional leading Iconify icon name. |
|
|
70
|
+
|
|
71
|
+
#### `FooterSocialLink`
|
|
72
|
+
|
|
73
|
+
Social media icon button.
|
|
74
|
+
|
|
75
|
+
| Field | Type | Description |
|
|
76
|
+
| :------ | :-------- | :-------------------------------------------------------- |
|
|
77
|
+
| `icon` | `string` | Iconify icon name (e.g., `'lucide:instagram'`). |
|
|
78
|
+
| `url` | `string` | Full URL for the social link. |
|
|
79
|
+
| `label` | `string?` | Accessible label for screen readers (e.g., 'Instagram'). |
|
|
80
|
+
|
|
81
|
+
#### `FooterNewsletterConfig`
|
|
82
|
+
|
|
83
|
+
Optional newsletter subscription section.
|
|
84
|
+
|
|
85
|
+
| Field | Type | Description |
|
|
86
|
+
| :------------ | :-------- | :------------------------------------------- |
|
|
87
|
+
| `title` | `string?` | Heading text (e.g., "Stay updated"). |
|
|
88
|
+
| `description` | `string?` | Description below the title. |
|
|
89
|
+
| `placeholder` | `string?` | Input placeholder text. |
|
|
90
|
+
| `buttonText` | `string?` | Submit button text. |
|
|
91
|
+
|
|
92
|
+
#### `FooterLabels`
|
|
93
|
+
|
|
94
|
+
Dictionary used to override static text inside the component via the `labels` prop.
|
|
95
|
+
|
|
96
|
+
| Field | Type | Description |
|
|
97
|
+
| :---------- | :-------- | :--------------------------------------- |
|
|
98
|
+
| `followUs` | `string?` | Replaces the "Follow us" heading. |
|
|
99
|
+
| `subscribe` | `string?` | Replaces the "Subscribe" button text. |
|
|
100
|
+
| `newsletter`| `string?` | Replaces the "Newsletter" heading. |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### Variant Descriptions
|
|
105
|
+
|
|
106
|
+
| Variant | Style | Best For |
|
|
107
|
+
| :--------- | :------------------- | :-------------------------------------- |
|
|
108
|
+
| `Variant1` | Classic Columnar | SaaS products, marketing websites |
|
|
109
|
+
| `Variant2` | Centered / Stacked | Portfolios, creative agencies, blogs |
|
|
110
|
+
| `Variant3` | Minimal Single-line | Dashboards, internal tools, admin panels|
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### Data Contract for AI Agents (JSON Template)
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"brandName": "Acme Corp",
|
|
119
|
+
"brandLogo": "https://cdn.example.com/logo.svg",
|
|
120
|
+
"brandDescription": "Building the future of web development.",
|
|
121
|
+
"linkGroups": [
|
|
122
|
+
{
|
|
123
|
+
"title": "Product",
|
|
124
|
+
"links": [
|
|
125
|
+
{ "label": "Overview", "url": "/overview" },
|
|
126
|
+
{ "label": "Pricing", "url": "/pricing" },
|
|
127
|
+
{ "label": "Features", "url": "/features" }
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"title": "Company",
|
|
132
|
+
"links": [
|
|
133
|
+
{ "label": "About", "url": "/about" },
|
|
134
|
+
{ "label": "Blog", "url": "/blog" },
|
|
135
|
+
{ "label": "Careers", "url": "/careers" }
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"title": "Resources",
|
|
140
|
+
"links": [
|
|
141
|
+
{ "label": "Documentation", "url": "/docs" },
|
|
142
|
+
{ "label": "Help Center", "url": "/help" },
|
|
143
|
+
{ "label": "API Reference", "url": "/api", "external": true }
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"socialLinks": [
|
|
148
|
+
{ "icon": "lucide:twitter", "url": "https://twitter.com/acme", "label": "Twitter" },
|
|
149
|
+
{ "icon": "lucide:github", "url": "https://github.com/acme", "label": "GitHub" },
|
|
150
|
+
{ "icon": "lucide:linkedin", "url": "https://linkedin.com/company/acme", "label": "LinkedIn" }
|
|
151
|
+
],
|
|
152
|
+
"newsletter": {
|
|
153
|
+
"title": "Stay in the loop",
|
|
154
|
+
"description": "Get notified about new releases and features.",
|
|
155
|
+
"placeholder": "you@example.com",
|
|
156
|
+
"buttonText": "Subscribe"
|
|
157
|
+
},
|
|
158
|
+
"copyright": "© 2024 Acme Corp. All rights reserved.",
|
|
159
|
+
"legalLinks": [
|
|
160
|
+
{ "label": "Terms of Service", "url": "/terms" },
|
|
161
|
+
{ "label": "Privacy Policy", "url": "/privacy" }
|
|
162
|
+
],
|
|
163
|
+
"badge": "v2.0"
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
### Implementation Examples
|
|
170
|
+
|
|
171
|
+
#### 1. SaaS Product Footer (Variant 1)
|
|
172
|
+
|
|
173
|
+
```vue
|
|
174
|
+
<script setup>
|
|
175
|
+
import { Footer } from 'vlite3'
|
|
176
|
+
|
|
177
|
+
const footerData = {
|
|
178
|
+
brandName: 'Acme Corp',
|
|
179
|
+
brandDescription: 'Building the future of web development.',
|
|
180
|
+
linkGroups: [
|
|
181
|
+
{
|
|
182
|
+
title: 'Product',
|
|
183
|
+
links: [
|
|
184
|
+
{ label: 'Overview', url: '#' },
|
|
185
|
+
{ label: 'Pricing', url: '#' },
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
title: 'Company',
|
|
190
|
+
links: [
|
|
191
|
+
{ label: 'About', url: '#' },
|
|
192
|
+
{ label: 'Careers', url: '#' },
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
socialLinks: [
|
|
197
|
+
{ icon: 'lucide:twitter', url: '#', label: 'Twitter' },
|
|
198
|
+
{ icon: 'lucide:github', url: '#', label: 'GitHub' },
|
|
199
|
+
],
|
|
200
|
+
copyright: '© 2024 Acme Corp. All rights reserved.',
|
|
201
|
+
legalLinks: [
|
|
202
|
+
{ label: 'Privacy', url: '#' },
|
|
203
|
+
{ label: 'Terms', url: '#' },
|
|
204
|
+
],
|
|
205
|
+
}
|
|
206
|
+
</script>
|
|
207
|
+
|
|
208
|
+
<template>
|
|
209
|
+
<Footer :data="footerData" variant="Variant1" />
|
|
210
|
+
</template>
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
#### 2. Centered Portfolio Footer (Variant 2)
|
|
214
|
+
|
|
215
|
+
```vue
|
|
216
|
+
<template>
|
|
217
|
+
<Footer :data="portfolioData" variant="Variant2" />
|
|
218
|
+
</template>
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
#### 3. Minimal Dashboard Footer (Variant 3)
|
|
222
|
+
|
|
223
|
+
```vue
|
|
224
|
+
<script setup>
|
|
225
|
+
const dashboardFooter = {
|
|
226
|
+
brandName: 'AppDash',
|
|
227
|
+
copyright: '© 2024 AppDash Inc.',
|
|
228
|
+
legalLinks: [
|
|
229
|
+
{ label: 'Terms', url: '#' },
|
|
230
|
+
{ label: 'Privacy', url: '#' },
|
|
231
|
+
],
|
|
232
|
+
}
|
|
233
|
+
</script>
|
|
234
|
+
|
|
235
|
+
<template>
|
|
236
|
+
<Footer :data="dashboardFooter" variant="Variant3" />
|
|
237
|
+
</template>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
### Senior Engineer's Implementation Notes
|
|
243
|
+
|
|
244
|
+
1. **API-Driven Design**: The component is purely presentational — it takes a JSON object and renders the footer. This makes it perfect for CMS-driven sites where footer content comes from an API.
|
|
245
|
+
2. **Event Handling**: The `link-click` event allows SPA apps to intercept navigation and use `router.push()` instead of hard page loads. Call `event.preventDefault()` in your handler to stop the default `<a>` navigation.
|
|
246
|
+
3. **Variant Selection**:
|
|
247
|
+
- **Variant 1** is the classic columnar layout matching most SaaS/product sites.
|
|
248
|
+
- **Variant 2** centers everything — ideal for portfolios, blogs, and creative agencies.
|
|
249
|
+
- **Variant 3** is a single-line minimal footer — perfect for dashboards and internal tools where you don't need link columns.
|
|
250
|
+
4. **Newsletter**: The optional newsletter section emits a `subscribe` event with the email string. No built-in HTTP calls — wire it to your own API.
|
|
251
|
+
5. **Responsive**: All variants are fully responsive. Link columns stack vertically on mobile. The bottom bar switches from horizontal to vertical layout on small screens.
|