vlite3 0.4.10 → 0.5.3
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 +172 -70
- package/_virtual/Barcode.js +4 -0
- package/_virtual/CODE128.js +4 -0
- package/_virtual/CODE128A.js +4 -0
- package/_virtual/CODE128B.js +4 -0
- package/_virtual/CODE128C.js +4 -0
- package/_virtual/CODE128_AUTO.js +4 -0
- package/_virtual/CODE93.js +4 -0
- package/_virtual/CODE93FullASCII.js +4 -0
- package/_virtual/EAN.js +4 -0
- package/_virtual/EAN13.js +4 -0
- package/_virtual/EAN2.js +4 -0
- package/_virtual/EAN5.js +4 -0
- package/_virtual/EAN8.js +4 -0
- package/_virtual/ErrorHandler.js +4 -0
- package/_virtual/FileSaver.min.js +5 -0
- package/_virtual/FileSaver.min2.js +4 -0
- package/_virtual/ITF.js +4 -0
- package/_virtual/ITF14.js +4 -0
- package/_virtual/JsBarcode.js +7 -0
- package/_virtual/MSI.js +4 -0
- package/_virtual/MSI10.js +4 -0
- package/_virtual/MSI1010.js +4 -0
- package/_virtual/MSI11.js +4 -0
- package/_virtual/MSI1110.js +4 -0
- package/_virtual/UPC.js +4 -0
- package/_virtual/UPCE.js +4 -0
- package/_virtual/_commonjsHelpers.js +8 -0
- package/_virtual/alignment-pattern.js +4 -0
- package/_virtual/auto.js +4 -0
- package/_virtual/browser.js +7 -0
- package/_virtual/browser2.js +4 -0
- package/_virtual/canvas.js +4 -0
- package/_virtual/canvas2.js +4 -0
- package/_virtual/checksums.js +4 -0
- package/_virtual/constants.js +4 -0
- package/_virtual/constants2.js +4 -0
- package/_virtual/constants3.js +4 -0
- package/_virtual/constants4.js +4 -0
- package/_virtual/defaults.js +4 -0
- package/_virtual/dijkstra.js +4 -0
- package/_virtual/encoder.js +4 -0
- package/_virtual/error-correction-code.js +4 -0
- package/_virtual/error-correction-level.js +4 -0
- package/_virtual/exceptions.js +4 -0
- package/_virtual/finder-pattern.js +4 -0
- package/_virtual/fixOptions.js +4 -0
- package/_virtual/format-info.js +4 -0
- package/_virtual/galois-field.js +4 -0
- package/_virtual/getOptionsFromElement.js +4 -0
- package/_virtual/getRenderProperties.js +4 -0
- package/_virtual/index.js +4 -0
- package/_virtual/index10.js +4 -0
- package/_virtual/index11.js +4 -0
- package/_virtual/index2.js +4 -0
- package/_virtual/index3.js +4 -0
- package/_virtual/index4.js +4 -0
- package/_virtual/index5.js +4 -0
- package/_virtual/index6.js +4 -0
- package/_virtual/index7.js +4 -0
- package/_virtual/index8.js +4 -0
- package/_virtual/index9.js +4 -0
- package/_virtual/linearizeEncodings.js +4 -0
- package/_virtual/mask-pattern.js +4 -0
- package/_virtual/merge.js +4 -0
- package/_virtual/mode.js +4 -0
- package/_virtual/object.js +4 -0
- package/_virtual/optionsFromStrings.js +4 -0
- package/_virtual/papaparse.min.js +7 -0
- package/_virtual/papaparse.min2.js +4 -0
- package/_virtual/polynomial.js +4 -0
- package/_virtual/qrcode.js +4 -0
- package/_virtual/regex.js +4 -0
- package/_virtual/segments.js +4 -0
- package/_virtual/shared.js +4 -0
- package/_virtual/svg-tag.js +4 -0
- package/_virtual/svg.js +4 -0
- package/_virtual/utils.js +4 -0
- package/_virtual/utils2.js +4 -0
- package/_virtual/version-check.js +4 -0
- package/_virtual/version.js +4 -0
- package/components/Accordion/Accordion.vue.d.ts +7 -7
- package/components/Accordion/AccordionItem.vue.d.ts +4 -4
- package/components/Accordion/AccordionTrigger.vue.d.ts +2 -2
- package/components/Alert.vue.d.ts +1 -1
- package/components/Avatar.vue.d.ts +2 -2
- package/components/Avatar.vue.js +2 -2
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +5 -5
- package/components/Badge.vue.d.ts +1 -1
- package/components/Barcode/Barcode.vue.d.ts +22 -0
- package/components/Barcode/Barcode.vue.js +58 -0
- package/components/Barcode/Barcode.vue2.js +4 -0
- package/components/Barcode/index.d.ts +2 -0
- package/components/Barcode/types.d.ts +5 -0
- package/components/Barcode/types.js +15 -0
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +23 -0
- package/components/Breadcrumb/Breadcrumb.vue.js +7 -0
- package/components/Breadcrumb/Breadcrumb.vue2.js +84 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +27 -0
- package/components/Breadcrumb/BreadcrumbItem.vue.js +7 -0
- package/components/Breadcrumb/BreadcrumbItem.vue2.js +50 -0
- package/components/Breadcrumb/index.d.ts +3 -0
- package/components/Breadcrumb/types.d.ts +19 -0
- package/components/Button.vue.d.ts +4 -4
- package/components/Button.vue.js +32 -29
- package/components/ButtonGroup.vue.d.ts +1 -1
- package/components/Carousel/Carousel.vue.d.ts +58 -58
- package/components/CheckBox.vue.d.ts +2 -2
- package/components/Chip/Chip.vue.d.ts +3 -3
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +4 -4
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.d.ts +3 -3
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/ColorPicker/index.d.ts +1 -0
- package/components/CommandPaletteContent.vue.d.ts +15 -0
- package/components/CommandPaletteContent.vue.js +7 -0
- package/components/CommandPaletteContent.vue2.js +287 -0
- package/components/ConfirmationModal.vue.js +12 -10
- package/components/DataList/DataList.vue.d.ts +2 -2
- package/components/DataTable/DataTable.vue.d.ts +6 -6
- package/components/DataTable/DataTableRow.vue.d.ts +3 -3
- package/components/DatePicker.vue.d.ts +2 -2
- package/components/DatePicker.vue.js +7 -7
- package/components/DateRangePicker.vue.d.ts +29 -0
- package/components/DateRangePicker.vue.js +231 -0
- package/components/DateRangePicker.vue2.js +4 -0
- package/components/Dropdown/Dropdown.vue.d.ts +10 -6
- package/components/Dropdown/Dropdown.vue.js +146 -109
- package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +1 -1
- package/components/Dropdown/DropdownItem.vue.js +28 -20
- package/components/Dropdown/DropdownMenu.vue.d.ts +5 -3
- package/components/Dropdown/DropdownMenu.vue.js +112 -108
- package/components/ExportData/ExportData.vue.d.ts +16 -0
- package/components/ExportData/ExportData.vue.js +135 -0
- package/components/ExportData/ExportData.vue2.js +4 -0
- package/components/ExportData/index.d.ts +2 -0
- package/components/ExportData/types.d.ts +17 -0
- package/components/FilePicker/FilePicker.vue.d.ts +5 -5
- package/components/Form/CustomFields.vue.d.ts +6 -6
- package/components/Form/CustomFields.vue.js +1 -1
- package/components/Form/Form.vue.d.ts +4 -5
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +221 -178
- package/components/Form/FormField.vue.d.ts +4 -3
- package/components/Form/FormField.vue.js +70 -62
- package/components/Form/FormFields.vue.d.ts +3 -1
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +105 -59
- package/components/GoogleLogin.vue.d.ts +2 -2
- package/components/ImportData/ImportData.vue.d.ts +31 -0
- package/components/ImportData/ImportData.vue.js +242 -0
- package/components/ImportData/ImportData.vue2.js +4 -0
- package/components/ImportData/ImportStep1.vue.d.ts +23 -0
- package/components/ImportData/ImportStep1.vue.js +162 -0
- package/components/ImportData/ImportStep1.vue2.js +4 -0
- package/components/ImportData/ImportStep2.vue.d.ts +20 -0
- package/components/ImportData/ImportStep2.vue.js +98 -0
- package/components/ImportData/ImportStep2.vue2.js +4 -0
- package/components/ImportData/ImportStep3.vue.d.ts +6 -0
- package/components/ImportData/ImportStep3.vue.js +98 -0
- package/components/ImportData/ImportStep3.vue2.js +4 -0
- package/components/ImportData/ImportStep4.vue.d.ts +6 -0
- package/components/ImportData/ImportStep4.vue.js +139 -0
- package/components/ImportData/ImportStep4.vue2.js +4 -0
- package/components/ImportData/index.d.ts +2 -0
- package/components/ImportData/types.d.ts +51 -0
- package/components/Input.vue.d.ts +9 -9
- package/components/Input.vue.js +137 -120
- package/components/List/List.vue.d.ts +18 -0
- package/components/List/List.vue.js +189 -0
- package/components/List/List.vue2.js +4 -0
- package/components/List/ListFieldRow.vue.d.ts +35 -0
- package/components/List/ListFieldRow.vue.js +119 -0
- package/components/List/ListFieldRow.vue2.js +4 -0
- package/components/List/index.d.ts +4 -0
- package/components/List/types.d.ts +1 -0
- package/components/List/utils.d.ts +9 -0
- package/components/List/utils.js +64 -0
- package/components/Masonry/Masonry.vue.d.ts +2 -2
- package/components/Modal.vue.d.ts +6 -2
- package/components/Modal.vue.js +5 -122
- package/components/Modal.vue2.js +136 -2
- package/components/MultiSelect/MultiSelect.vue.d.ts +12 -9
- package/components/MultiSelect/MultiSelect.vue.js +101 -64
- package/components/Navbar/Navbar.vue.d.ts +14 -6
- package/components/Navbar/Navbar.vue.js +425 -356
- package/components/Navbar/NavbarItem.vue.d.ts +2 -2
- package/components/Navbar/NavbarTabs.vue.d.ts +21 -0
- package/components/Navbar/NavbarTabs.vue.js +179 -0
- package/components/Navbar/NavbarTabs.vue3.js +5 -0
- package/components/Navbar/index.d.ts +3 -0
- package/components/NavbarCommandPalette.vue.d.ts +48 -0
- package/components/NumberInput.vue.d.ts +8 -8
- package/components/OTPInput/OTPInput.vue.d.ts +7 -7
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +36 -0
- package/components/PermissionMatrix/PermissionEditor.vue.js +323 -0
- package/components/PermissionMatrix/PermissionEditor.vue2.js +4 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.d.ts +15 -0
- package/components/PermissionMatrix/PermissionMatrix.vue.js +7 -0
- package/components/PermissionMatrix/PermissionMatrix.vue2.js +245 -0
- package/components/PermissionMatrix/index.d.ts +3 -0
- package/components/PermissionMatrix/types.d.ts +59 -0
- package/components/PricingPlan/PricingPlan.vue.d.ts +3 -3
- package/components/ProgressBar/ProgressBar.vue.d.ts +3 -3
- package/components/QRCode/QRCode.vue.d.ts +15 -0
- package/components/QRCode/QRCode.vue.js +38 -0
- package/components/QRCode/QRCode.vue2.js +4 -0
- package/components/QRCode/index.d.ts +1 -0
- package/components/Screen/Screen.vue.d.ts +232 -5
- package/components/Screen/Screen.vue.js +423 -271
- package/components/Screen/ScreenFilter.vue.d.ts +2 -2
- package/components/Screen/ScreenFilter.vue.js +10 -10
- package/components/Screen/types.d.ts +12 -0
- package/components/SidePanel.vue.d.ts +2 -2
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +6 -2
- package/components/SidebarMenu/SidebarMenu.vue.js +104 -50
- package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +2 -0
- package/components/SidebarMenu/SidebarMenuItem.vue.js +187 -174
- package/components/SidebarMenu/types.d.ts +8 -0
- package/components/Slider.vue.d.ts +2 -2
- package/components/Spinner/Spinner.vue.d.ts +2 -2
- package/components/Stats/Stats.vue.d.ts +14 -0
- package/components/Stats/Stats.vue.js +307 -0
- package/components/Stats/Stats.vue2.js +4 -0
- package/components/Stats/index.d.ts +2 -0
- package/components/Stats/types.d.ts +32 -0
- package/components/Switch.vue.d.ts +2 -1
- package/components/Switch.vue.js +4 -2
- package/components/Tabes/Tabes.vue.d.ts +3 -3
- package/components/Tabes/Tabes.vue.js +60 -57
- package/components/Tabes/types.d.ts +5 -0
- package/components/Textarea.vue.d.ts +3 -3
- package/components/{Timeline.vue.d.ts → Timeline/Timeline.vue.d.ts} +23 -2
- package/components/Timeline/Timeline.vue.js +92 -0
- package/components/Timeline/TimelineIndicator.vue.d.ts +9 -0
- package/components/Timeline/TimelineIndicator.vue.js +68 -0
- package/components/Timeline/TimelineIndicator.vue2.js +4 -0
- package/components/Timeline/TimelineItem.vue.d.ts +56 -0
- package/components/Timeline/TimelineItem.vue.js +173 -0
- package/components/Timeline/TimelineItem.vue2.js +4 -0
- package/components/Timeline/index.d.ts +3 -0
- package/components/Tooltip.vue.d.ts +2 -2
- package/components/Workbook/Sheet.vue.d.ts +2 -2
- package/components/Workbook/Workbook.vue.d.ts +3 -3
- package/components/index.d.ts +62 -0
- package/composables/useBreadcrumb.d.ts +17 -0
- package/composables/useBreadcrumb.js +27 -0
- package/core/config.d.ts +34 -0
- package/core/config.js +10 -7
- package/core/index.js +15 -8
- package/index.d.ts +55 -44
- package/index.js +243 -200
- package/package.json +13 -3
- package/router.d.ts +2 -0
- package/style.css +7 -5
- package/types/button.d.ts +1 -1
- package/types/config.type.d.ts +35 -0
- package/types/form.type.d.ts +3 -1
- package/types/index.d.ts +2 -1
- package/types/list.type.d.ts +57 -0
- package/types/navbar.type.d.ts +38 -1
- package/types/timeline.type.d.ts +14 -4
- package/components/Timeline.vue.js +0 -160
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
- /package/components/{Timeline.vue2.js → Timeline/Timeline.vue2.js} +0 -0
package/README.md
CHANGED
|
@@ -6,10 +6,12 @@ A lightweight Vue 3 UI component library built with Tailwind CSS, created for pe
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install vlite3
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
|
|
11
12
|
```bash
|
|
12
13
|
yarn add vlite3
|
|
14
|
+
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
## 2. Tailwind CSS Setup (Tailwind v4)
|
|
@@ -53,11 +55,11 @@ import { Button, Input } from 'vlite3'
|
|
|
53
55
|
|
|
54
56
|
## Global Configuration (Registry System)
|
|
55
57
|
|
|
56
|
-
vlite3 features a plugin-based architecture that allows you to register global services
|
|
58
|
+
vlite3 features a plugin-based architecture that allows you to register global services and set global component configurations. This ensures consistency and prevents repetition across your application.
|
|
57
59
|
|
|
58
60
|
### Setting up the Plugin
|
|
59
61
|
|
|
60
|
-
In your `main.ts` or `main.js`, import `createVLite` and `vScrollReveal` and register your services:
|
|
62
|
+
In your `main.ts` or `main.js`, import `createVLite` and `vScrollReveal` and register your services and component configurations:
|
|
61
63
|
|
|
62
64
|
```typescript
|
|
63
65
|
import { createApp } from 'vue'
|
|
@@ -75,6 +77,7 @@ app.use(GoogleSignInPlugin, {
|
|
|
75
77
|
|
|
76
78
|
// Initialize VLite with custom configuration
|
|
77
79
|
const vlite = createVLite({
|
|
80
|
+
// Global Service Registry
|
|
78
81
|
services: {
|
|
79
82
|
/**
|
|
80
83
|
* Global File Upload Handler
|
|
@@ -111,6 +114,16 @@ const vlite = createVLite({
|
|
|
111
114
|
return data.url // MUST return the file URL string
|
|
112
115
|
},
|
|
113
116
|
},
|
|
117
|
+
|
|
118
|
+
// Global UI Components Configuration
|
|
119
|
+
components: {
|
|
120
|
+
form: {
|
|
121
|
+
variant: 'outline', // Applies 'outline' globally to all Form inputs ('solid' | 'outline' | 'floating' | etc.)
|
|
122
|
+
size: 'md', // Global size for form inputs ('sm' | 'md' | 'lg')
|
|
123
|
+
rounded: 'md', // Global border radius for forms
|
|
124
|
+
showRequiredAsterisk: true, // Globally toggle the visibility of the required asterisk
|
|
125
|
+
},
|
|
126
|
+
},
|
|
114
127
|
})
|
|
115
128
|
|
|
116
129
|
app.use(vlite)
|
|
@@ -119,21 +132,30 @@ app.mount('#app')
|
|
|
119
132
|
|
|
120
133
|
### How it works
|
|
121
134
|
|
|
135
|
+
#### Global Services (e.g., Uploads)
|
|
136
|
+
|
|
122
137
|
Once registered, you don't need to pass upload handlers to individual components.
|
|
123
138
|
|
|
124
139
|
1. **Automatic Injection**: The `Form` component detects input types like `file`, `avatarUpload`, or `fileUploader`.
|
|
125
140
|
2. **Parallel Processing**: When the form is submitted, it automatically uploads all files in **parallel** using your registered `upload` service.
|
|
126
141
|
3. **URL Replacement**: The File objects in your form data are replaced with the returned URLs before the final `onSubmit` event is triggered.
|
|
127
142
|
|
|
128
|
-
|
|
143
|
+
#### Global Component Configuration (e.g., Forms)
|
|
129
144
|
|
|
130
|
-
|
|
145
|
+
By setting `components.form` in the global configuration, you establish app-wide defaults.
|
|
146
|
+
|
|
147
|
+
1. **Consistency**: Every `<Form />` rendered in your application will automatically inherit the global `variant`, `size`, `rounded`, and `showRequiredAsterisk` configurations.
|
|
148
|
+
2. **Local Overrides**: If you need a specific form to behave differently, simply pass the prop locally on the component (e.g., `<Form variant="floating" ... />`). Local props will always override the global configuration fallback.
|
|
149
|
+
|
|
150
|
+
## 4. Advanced Usage
|
|
151
|
+
|
|
152
|
+
Import components directly in your Vue files and leverage the global configuration:
|
|
131
153
|
|
|
132
154
|
```vue
|
|
133
155
|
<script setup>
|
|
134
156
|
import { Button, Input, Form } from 'vlite3'
|
|
135
157
|
|
|
136
|
-
// The form will automatically use the global upload service
|
|
158
|
+
// The form will automatically use the global upload service AND the global style configurations
|
|
137
159
|
const schema = [
|
|
138
160
|
{
|
|
139
161
|
name: 'avatar',
|
|
@@ -158,6 +180,8 @@ const handleSubmit = (payload) => {
|
|
|
158
180
|
<template>
|
|
159
181
|
<div class="">
|
|
160
182
|
<Form :schema="schema" @onSubmit="handleSubmit" />
|
|
183
|
+
|
|
184
|
+
<Form :schema="schema" variant="solid" size="lg" @onSubmit="handleSubmit" />
|
|
161
185
|
</div>
|
|
162
186
|
</template>
|
|
163
187
|
```
|
|
@@ -198,23 +222,81 @@ Override these variables in `:root` or within a `.dark` class (when using class-
|
|
|
198
222
|
|
|
199
223
|
For more complex components, vlite3 provides extended variants for main semantic colors (`primary`, `danger`, `warning`, `info`, `success`). These are useful for building nuanced UIs with subtle backgrounds, hover states, and accessible text.
|
|
200
224
|
|
|
201
|
-
| Base Color | Variant Variables
|
|
202
|
-
|
|
|
203
|
-
| **Primary** | `--color-primary-light`<br
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
225
|
+
| Base Color | Variant Variables | Usage Description |
|
|
226
|
+
| ----------- | --------------------------- | ----------------- |
|
|
227
|
+
| **Primary** | `--color-primary-light`<br> |
|
|
228
|
+
|
|
229
|
+
<br>`--color-primary-dark`<br>
|
|
230
|
+
|
|
231
|
+
<br>`--color-primary-fg`<br>
|
|
232
|
+
|
|
233
|
+
<br>`--color-primary-fg-light` | **Light**: Subtle background (e.g., 10% opacity).<br>
|
|
234
|
+
|
|
235
|
+
<br>**Dark**: Hover state for the main color.<br>
|
|
236
|
+
|
|
237
|
+
<br>**Fg**: Text color on top of the _main_ color.<br>
|
|
238
|
+
|
|
239
|
+
<br>**Fg-Light**: Text color on top of the _light_ variant. |
|
|
240
|
+
| **Danger** | `--color-danger-light`<br>
|
|
241
|
+
|
|
242
|
+
<br>`--color-danger-dark`<br>
|
|
243
|
+
|
|
244
|
+
<br>`--color-danger-fg`<br>
|
|
245
|
+
|
|
246
|
+
<br>`--color-danger-fg-light` | **Light**: Error backgrounds (alerts).<br>
|
|
247
|
+
|
|
248
|
+
<br>**Dark**: Hover state for destructive buttons.<br>
|
|
249
|
+
|
|
250
|
+
<br>**Fg**: Text on destructive buttons.<br>
|
|
251
|
+
|
|
252
|
+
<br>**Fg-Light**: Text on error alerts. |
|
|
253
|
+
| **Warning** | `--color-warning-light`<br>
|
|
254
|
+
|
|
255
|
+
<br>`--color-warning-dark`<br>
|
|
256
|
+
|
|
257
|
+
<br>`--color-warning-fg`<br>
|
|
258
|
+
|
|
259
|
+
<br>`--color-warning-fg-light` | **Light**: Warning backgrounds.<br>
|
|
260
|
+
|
|
261
|
+
<br>**Dark**: Active/Determined warning states.<br>
|
|
262
|
+
|
|
263
|
+
<br>**Fg**: Text on warning badges.<br>
|
|
264
|
+
|
|
265
|
+
<br>**Fg-Light**: Text on warning backgrounds. |
|
|
266
|
+
| **Success** | `--color-success-light`<br>
|
|
267
|
+
|
|
268
|
+
<br>`--color-success-dark`<br>
|
|
269
|
+
|
|
270
|
+
<br>`--color-success-fg`<br>
|
|
271
|
+
|
|
272
|
+
<br>`--color-success-fg-light` | **Light**: Success backgrounds (toasts).<br>
|
|
273
|
+
|
|
274
|
+
<br>**Dark**: Hover/Active success actions.<br>
|
|
275
|
+
|
|
276
|
+
<br>**Fg**: Text on success buttons.<br>
|
|
277
|
+
|
|
278
|
+
<br>**Fg-Light**: Text on success backgrounds. |
|
|
279
|
+
| **Info** | `--color-info-light`<br>
|
|
280
|
+
|
|
281
|
+
<br>`--color-info-dark`<br>
|
|
282
|
+
|
|
283
|
+
<br>`--color-info-fg`<br>
|
|
284
|
+
|
|
285
|
+
<br>`--color-info-fg-light` | **Light**: Info backgrounds.<br>
|
|
286
|
+
|
|
287
|
+
<br>**Dark**: Hover/Active info actions.<br>
|
|
288
|
+
|
|
289
|
+
<br>**Fg**: Text on info buttons.<br>
|
|
290
|
+
|
|
291
|
+
<br>**Fg-Light**: Text on info backgrounds. |
|
|
208
292
|
|
|
209
293
|
**Example Usage:**
|
|
210
294
|
|
|
211
295
|
```html
|
|
212
|
-
<!-- A success badge with subtle background and matching text -->
|
|
213
296
|
<div class="bg-success-light text-success-fg-light border border-success/20">
|
|
214
297
|
Operation Completed
|
|
215
298
|
</div>
|
|
216
299
|
|
|
217
|
-
<!-- A danger button with hover effect -->
|
|
218
300
|
<button class="bg-danger text-danger-fg hover:bg-danger-dark">Delete</button>
|
|
219
301
|
```
|
|
220
302
|
|
|
@@ -223,7 +305,7 @@ For more complex components, vlite3 provides extended variants for main semantic
|
|
|
223
305
|
vlite3 also provides additional utility colors for specific feedback states:
|
|
224
306
|
|
|
225
307
|
| Variable | Class Name | Description |
|
|
226
|
-
|
|
|
308
|
+
| ----------------- | ---------------------------- | --------------------------------------- |
|
|
227
309
|
| `--color-success` | `text-success`, `bg-success` | For success messages/badges. |
|
|
228
310
|
| `--color-warning` | `text-warning`, `bg-warning` | For warning messages/badges. |
|
|
229
311
|
| `--color-info` | `text-info`, `bg-info` | For informational messages/badges. |
|
|
@@ -306,75 +388,95 @@ Follow these rules strictly to ensure visual consistency and predictable styling
|
|
|
306
388
|
- Use `rounded` instead of `rounded-rounded`.
|
|
307
389
|
- Use `bg-muted` instead of `bg-secondary/20`.
|
|
308
390
|
- Use `gap-x-*` instead of applying `ml-*` or `mr-*` directly on sibling items.
|
|
309
|
-
- Use `gap-y-*` instead of applying `mt
|
|
391
|
+
- Use `gap-y-*` instead of applying `mt-*` or `mb-*` directly on sibling items.
|
|
310
392
|
|
|
311
393
|
---
|
|
312
394
|
|
|
313
395
|
## ✅ Components
|
|
314
396
|
|
|
315
|
-
- **Button**
|
|
316
|
-
- **ButtonGroup**
|
|
317
|
-
- **Icon**
|
|
318
|
-
- **Label**
|
|
319
|
-
- **Badge**
|
|
320
|
-
- **Chip**
|
|
321
|
-
- **Logo**
|
|
322
|
-
- **Navbar**
|
|
323
|
-
- **SidebarMenu**
|
|
324
|
-
- **SidePanel**
|
|
325
|
-
-
|
|
326
|
-
- **
|
|
397
|
+
- [x] **Button**
|
|
398
|
+
- [x] **ButtonGroup**
|
|
399
|
+
- [x] **Icon**
|
|
400
|
+
- [x] **Label**
|
|
401
|
+
- [x] **Badge**
|
|
402
|
+
- [x] **Chip**
|
|
403
|
+
- [x] **Logo**
|
|
404
|
+
- [x] **Navbar**
|
|
405
|
+
- [x] **SidebarMenu**
|
|
406
|
+
- [x] **SidePanel**
|
|
407
|
+
- [x] **Breadcrumb**
|
|
408
|
+
- [x] **List**
|
|
409
|
+
- [x] **Masonry Grid**
|
|
410
|
+
- [x] **Stats**
|
|
411
|
+
- [x] **ThemeToggle**
|
|
412
|
+
- [x] **Screen**
|
|
327
413
|
|
|
328
414
|
### Inputs & Forms
|
|
329
415
|
|
|
330
|
-
- **Input**
|
|
331
|
-
- **Textarea**
|
|
332
|
-
- **CheckBox**
|
|
333
|
-
- **Switch**
|
|
334
|
-
- **ChoiceBox**
|
|
335
|
-
- **Slider**
|
|
336
|
-
- **OTPInput**
|
|
337
|
-
- **
|
|
338
|
-
- **
|
|
339
|
-
- **
|
|
340
|
-
- **
|
|
341
|
-
- **
|
|
342
|
-
- **
|
|
343
|
-
- **
|
|
344
|
-
- **
|
|
345
|
-
- **
|
|
346
|
-
-
|
|
416
|
+
- [x] **Input**
|
|
417
|
+
- [x] **Textarea**
|
|
418
|
+
- [x] **CheckBox**
|
|
419
|
+
- [x] **Switch**
|
|
420
|
+
- [x] **ChoiceBox**
|
|
421
|
+
- [x] **Slider**
|
|
422
|
+
- [x] **OTPInput**
|
|
423
|
+
- [x] **NumberInput**
|
|
424
|
+
- [x] **DatePicker**
|
|
425
|
+
- [x] **DateRangePicker**
|
|
426
|
+
- [x] **ColorPicker**
|
|
427
|
+
- [x] **FilePicker**
|
|
428
|
+
- [x] **AvatarUploader**
|
|
429
|
+
- [x] **IconPicker**
|
|
430
|
+
- [x] **MultiSelect**
|
|
431
|
+
- [x] **Forms**
|
|
432
|
+
- [x] **CustomFields**
|
|
433
|
+
- [x] **GoogleLogin**
|
|
434
|
+
- [x] **PermissionEditor**
|
|
347
435
|
|
|
348
436
|
### Data Display
|
|
349
437
|
|
|
350
|
-
- **Avatar**
|
|
351
|
-
- **Accordion**
|
|
352
|
-
- **Carousel**
|
|
353
|
-
- **DataTable**
|
|
354
|
-
- **
|
|
355
|
-
- **
|
|
356
|
-
- **
|
|
357
|
-
- **
|
|
358
|
-
- **
|
|
359
|
-
- **
|
|
360
|
-
- **
|
|
438
|
+
- [x] **Avatar**
|
|
439
|
+
- [x] **Accordion**
|
|
440
|
+
- [x] **Carousel**
|
|
441
|
+
- [x] **DataTable**
|
|
442
|
+
- [x] **DataList**
|
|
443
|
+
- [x] **Pagination**
|
|
444
|
+
- [x] **Timeline**
|
|
445
|
+
- [x] **Heatmap**
|
|
446
|
+
- [x] **PricingPlan**
|
|
447
|
+
- [x] **FileTree**
|
|
448
|
+
- [x] **Workbook**
|
|
449
|
+
- [x] **Kanban**
|
|
450
|
+
- [x] **Tabes**
|
|
451
|
+
- [x] **Masonry**
|
|
452
|
+
- [x] **Stats**
|
|
361
453
|
|
|
362
454
|
### Feedback & Overlays
|
|
363
455
|
|
|
364
|
-
- **Alert**
|
|
365
|
-
- **Modal**
|
|
366
|
-
- **ConfirmationModal**
|
|
367
|
-
- **ToastNotification**
|
|
368
|
-
- **Tooltip**
|
|
369
|
-
- **Dropdown**
|
|
370
|
-
- **ProgressBar**
|
|
371
|
-
- **Spinner**
|
|
456
|
+
- [x] **Alert**
|
|
457
|
+
- [x] **Modal**
|
|
458
|
+
- [x] **ConfirmationModal**
|
|
459
|
+
- [x] **ToastNotification**
|
|
460
|
+
- [x] **Tooltip**
|
|
461
|
+
- [x] **Dropdown**
|
|
462
|
+
- [x] **ProgressBar**
|
|
463
|
+
- [x] **Spinner**
|
|
464
|
+
- [x] **CommandPalette**
|
|
465
|
+
- [x] **SidePanel**
|
|
466
|
+
|
|
467
|
+
### Utilities & Tools
|
|
468
|
+
|
|
469
|
+
- [x] **Barcode**
|
|
470
|
+
- [x] **QRCode**
|
|
471
|
+
- [x] **ImportData**
|
|
472
|
+
- [x] **ExportData**
|
|
372
473
|
|
|
373
474
|
## Complete reference for AI agents and developers:
|
|
374
475
|
|
|
375
|
-
- [
|
|
376
|
-
- [
|
|
377
|
-
- [
|
|
378
|
-
- [
|
|
379
|
-
- [
|
|
380
|
-
- [
|
|
476
|
+
- [0-setup.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/0-vlite3-setup.md)
|
|
477
|
+
- [1-theming.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/1-theming.md)
|
|
478
|
+
- [2-components.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/2-all-components.md)
|
|
479
|
+
- [3-forms.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/components/Forms.md)
|
|
480
|
+
- [3-utility.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/3-utility.md)
|
|
481
|
+
- [4-i18n.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/4-i18n.md)
|
|
482
|
+
- [5-search-util.md](https://github.com/safdar-azeem/vlite3/blob/main/docs/5-search-util.md)
|
package/_virtual/EAN.js
ADDED
package/_virtual/EAN2.js
ADDED
package/_virtual/EAN5.js
ADDED
package/_virtual/EAN8.js
ADDED
package/_virtual/ITF.js
ADDED
package/_virtual/MSI.js
ADDED
package/_virtual/UPC.js
ADDED
package/_virtual/UPCE.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function l(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
o as commonjsGlobal,
|
|
7
|
+
l as getDefaultExportFromCjs
|
|
8
|
+
};
|
package/_virtual/auto.js
ADDED