vlite3 1.5.12 → 1.5.14

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 (124) hide show
  1. package/README.md +20 -8
  2. package/components/Accordion/AccordionContent.vue.js +2 -2
  3. package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
  4. package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
  5. package/components/Form/AccordionView2.vue.js +1 -1
  6. package/components/Form/Form.vue.js +2 -2
  7. package/components/NavbarCommandPalette.vue.js +1 -1
  8. package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +7 -7
  9. package/components/PanZoomViewport/PanZoomViewport.vue.js +1 -1
  10. package/components/Tabes/Tabes.vue.js +2 -2
  11. package/docs/README.md +16 -0
  12. package/docs/component-index.md +313 -0
  13. package/docs/components/accordion.md +52 -0
  14. package/docs/components/alert.md +34 -0
  15. package/docs/components/app-shell.md +371 -0
  16. package/docs/components/async-select.md +264 -0
  17. package/docs/components/attachments-list.md +231 -0
  18. package/docs/components/avatar-group.md +74 -0
  19. package/docs/components/avatar-uploader.md +61 -0
  20. package/docs/components/avatar.md +28 -0
  21. package/docs/components/badge.md +81 -0
  22. package/docs/components/barcode.md +42 -0
  23. package/docs/components/beacon.md +29 -0
  24. package/docs/components/breadcrumb.md +317 -0
  25. package/docs/components/button-group.md +35 -0
  26. package/docs/components/button.md +86 -0
  27. package/docs/components/calendar.md +95 -0
  28. package/docs/components/carousel.md +122 -0
  29. package/docs/components/cart.md +533 -0
  30. package/docs/components/category-manager.md +269 -0
  31. package/docs/components/category-menu.md +251 -0
  32. package/docs/components/charts.md +1456 -0
  33. package/docs/components/chat.md +330 -0
  34. package/docs/components/checkbox.md +31 -0
  35. package/docs/components/chip.md +137 -0
  36. package/docs/components/choice-box.md +40 -0
  37. package/docs/components/clipboard.md +105 -0
  38. package/docs/components/clock.md +70 -0
  39. package/docs/components/color-picker.md +82 -0
  40. package/docs/components/command-palette.md +214 -0
  41. package/docs/components/comment-thread.md +171 -0
  42. package/docs/components/confirmation-modal.md +50 -0
  43. package/docs/components/custom-fields-display.md +94 -0
  44. package/docs/components/custom-fields.md +97 -0
  45. package/docs/components/data-list.md +93 -0
  46. package/docs/components/data-table.md +922 -0
  47. package/docs/components/date-picker.md +58 -0
  48. package/docs/components/date-range-picker.md +24 -0
  49. package/docs/components/date-time.md +104 -0
  50. package/docs/components/dropdown.md +740 -0
  51. package/docs/components/empty.md +100 -0
  52. package/docs/components/export-data.md +320 -0
  53. package/docs/components/file-picker.md +83 -0
  54. package/docs/components/file-preview.md +42 -0
  55. package/docs/components/file-tree.md +144 -0
  56. package/docs/components/footer.md +251 -0
  57. package/docs/components/forms.md +776 -0
  58. package/docs/components/gantt-chart.md +767 -0
  59. package/docs/components/google-login.md +67 -0
  60. package/docs/components/google-map.md +128 -0
  61. package/docs/components/heatmap.md +80 -0
  62. package/docs/components/icon-picker.md +58 -0
  63. package/docs/components/icon.md +176 -0
  64. package/docs/components/image-comparison.md +51 -0
  65. package/docs/components/image-magnifier.md +26 -0
  66. package/docs/components/import-data.md +521 -0
  67. package/docs/components/input.md +58 -0
  68. package/docs/components/invoice.md +339 -0
  69. package/docs/components/kanban.md +302 -0
  70. package/docs/components/label.md +25 -0
  71. package/docs/components/list.md +419 -0
  72. package/docs/components/masonry.md +55 -0
  73. package/docs/components/modal.md +133 -0
  74. package/docs/components/multi-select.md +54 -0
  75. package/docs/components/navbar.md +403 -0
  76. package/docs/components/number-input.md +41 -0
  77. package/docs/components/otp-input.md +68 -0
  78. package/docs/components/pagination.md +83 -0
  79. package/docs/components/pan-zoom-viewport.md +245 -0
  80. package/docs/components/permission-editor.md +322 -0
  81. package/docs/components/persona.md +56 -0
  82. package/docs/components/price.md +106 -0
  83. package/docs/components/pricing-plan.md +68 -0
  84. package/docs/components/progress-bar.md +53 -0
  85. package/docs/components/qr-code.md +59 -0
  86. package/docs/components/rating.md +59 -0
  87. package/docs/components/rich-text-editor.md +210 -0
  88. package/docs/components/scale-generator.md +101 -0
  89. package/docs/components/screen.md +208 -0
  90. package/docs/components/seo-provider.md +189 -0
  91. package/docs/components/side-panel.md +94 -0
  92. package/docs/components/sidebar-menu.md +422 -0
  93. package/docs/components/skeleton.md +115 -0
  94. package/docs/components/slider.md +48 -0
  95. package/docs/components/spinner.md +27 -0
  96. package/docs/components/splitter.md +97 -0
  97. package/docs/components/stats.md +234 -0
  98. package/docs/components/status-chip.md +232 -0
  99. package/docs/components/switch.md +23 -0
  100. package/docs/components/tabs.md +335 -0
  101. package/docs/components/tag-input.md +55 -0
  102. package/docs/components/textarea.md +31 -0
  103. package/docs/components/theme-provider.md +130 -0
  104. package/docs/components/theme-toggle.md +36 -0
  105. package/docs/components/thumbnail-selector.md +186 -0
  106. package/docs/components/timeline.md +225 -0
  107. package/docs/components/toast-notification.md +89 -0
  108. package/docs/components/tooltip.md +31 -0
  109. package/docs/components/workbook.md +102 -0
  110. package/docs/composables/use-theme.md +59 -0
  111. package/docs/getting-started/setup.md +176 -0
  112. package/docs/guides/draggable.md +211 -0
  113. package/docs/guides/internationalization.md +281 -0
  114. package/docs/guides/performance.md +118 -0
  115. package/docs/guides/testing-forms.md +154 -0
  116. package/docs/guides/testing-overlays.md +131 -0
  117. package/docs/guides/theming.md +124 -0
  118. package/docs/utilities/search.md +580 -0
  119. package/docs/utilities/utilities.md +371 -0
  120. package/docs-manifest.json +336 -0
  121. package/package.json +5 -13
  122. package/scripts/generate-docs-manifest.js +207 -0
  123. package/scripts/sync-docs.js +754 -0
  124. package/style.css +1 -1
@@ -0,0 +1,97 @@
1
+ # Splitter
2
+
3
+ A layout primitive that allows users to resize adjacent vertical or horizontal panels, commonly used in IDEs, data viewers, and complex dashboards.
4
+
5
+ ## Overview
6
+
7
+ The `Splitter` component gives you an out-of-the-box resizable divider separating two slots: `#start` and `#end`. The sizing dynamically calculates percentages upon dragging, ensuring layout fluidity across different screen sizes.
8
+
9
+ ## Usage
10
+
11
+ ```vue
12
+ <script setup lang="ts">
13
+ import { ref } from 'vue'
14
+ import { Splitter } from 'vlite3'
15
+
16
+ const splitPercentage = ref(40)
17
+ </script>
18
+
19
+ <template>
20
+ <div class="h-[500px] border">
21
+ <Splitter v-model="splitPercentage" layout="horizontal" :min="20" :max="80">
22
+ <template #start>
23
+ <div class="p-4 bg-muted">Left Panel</div>
24
+ </template>
25
+ <template #end>
26
+ <div class="p-4">Right Panel</div>
27
+ </template>
28
+ </Splitter>
29
+ </div>
30
+ </template>
31
+ ```
32
+
33
+ ## Props
34
+
35
+ | Prop | Type | Default | Description |
36
+ |:-------------|:---------------------------|:---------------|:------------------------------------------------------------------|
37
+ | `layout` | `'horizontal' \| 'vertical'`| `'horizontal'` | Splitting direction. Horizontal splits left/right, Vertical top/bottom. |
38
+ | `modelValue` | `number` | `50` | The current position of the splitter as a percentage (0 to 100). |
39
+ | `min` | `number` | `10` | The minimum allowed percentage size for the `#start` panel. |
40
+ | `max` | `number` | `90` | The maximum allowed percentage size for the `#start` panel. |
41
+ | `class` | `string` | `''` | Additional CSS classes for the outermost wrapping element. |
42
+ | `lineClass` | `string` | `''` | Additional CSS classes for the splitter line (resize handle). |
43
+ | `lineStyle` | `CSSProperties` | — | Inline styles for the splitter line (resize handle). |
44
+
45
+ ## CSS hooks
46
+
47
+ The splitter line always includes the static class `vl-splitter__line`, so you can style it from your project CSS without passing props:
48
+
49
+ ```css
50
+ .vl-splitter__line {
51
+ background-color: hsl(var(--primary) / 0.15);
52
+ }
53
+
54
+ .vl-splitter__line:hover {
55
+ background-color: hsl(var(--primary) / 0.3);
56
+ }
57
+ ```
58
+
59
+ ## Customizing the splitter line
60
+
61
+ ```vue
62
+ <script setup lang="ts">
63
+ import { ref } from 'vue'
64
+ import { Splitter } from 'vlite3'
65
+
66
+ const splitPercentage = ref(40)
67
+ </script>
68
+
69
+ <template>
70
+ <div class="h-[500px] border">
71
+ <Splitter
72
+ v-model="splitPercentage"
73
+ line-class="bg-primary/20 hover:bg-primary/40"
74
+ :line-style="{ width: '4px' }">
75
+ <template #start>
76
+ <div class="p-4 bg-muted">Left Panel</div>
77
+ </template>
78
+ <template #end>
79
+ <div class="p-4">Right Panel</div>
80
+ </template>
81
+ </Splitter>
82
+ </div>
83
+ </template>
84
+ ```
85
+
86
+ ## Slots
87
+
88
+ | Name | Description |
89
+ |:--------|:--------------------------------------------------------|
90
+ | `start` | The primary panel rendered before the resize handle. |
91
+ | `end` | The secondary panel rendered after the resize handle. |
92
+
93
+ ## Events
94
+
95
+ | Event | Payload | Description |
96
+ |:--------------------|:---------|:--------------------------------------------|
97
+ | `update:modelValue` | `number` | Fires continuously while the handle is dragged, emitting the new position percentage. |
@@ -0,0 +1,234 @@
1
+ # Stats
2
+
3
+ **Import:** `import { Stats } from 'vlite3'`
4
+
5
+ ### Description
6
+
7
+ A flexible and fully-typed grid component for displaying key metrics and statistics. Supports multiple visual variants, rich layout modes, icon box customization, trend indicators, and responsive column configurations.
8
+
9
+ ### Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ | :------------- | :----------------- | :------------ | :---------------------------------------------------- |
13
+ | `items` | `StatItemSchema[]` | required | Array of stat items to display |
14
+ | `variant` | `StatsVariant` | `'outline'` | Visual style of each card |
15
+ | `layout` | `StatsLayout` | `'layout-1'` | Layout mode for icon and content arrangement |
16
+ | `columns` | `number \| string` | `4` | Number of grid columns (1–6) |
17
+ | `attached` | `boolean` | `false` | Fuse cards together with shared borders (no gaps) |
18
+ | `titleSize` | `string` | — | Custom Tailwind classes for the title text |
19
+ | `valueSize` | `string` | — | Custom Tailwind classes for the value text |
20
+ | `iconSize` | `string` | — | Custom Tailwind classes for the icon (e.g. `w-8 h-8`) |
21
+ | `iconBoxShape` | `IconBoxShape` | `'rounded'` | Shape of the icon container box |
22
+ | `iconBoxStyle` | `IconBoxStyle` | `'filled'` | Style of the icon container box |
23
+ | `sparklineHeight` | `number` | `56` | Default sparkline height in px for `layout-9` |
24
+ | `class` | `string` | — | Extra CSS class for the outer grid container |
25
+
26
+ ### Types
27
+
28
+ ```typescript
29
+ type StatsVariant = 'solid' | 'outline' | 'shadow' | 'transparent'
30
+
31
+ type StatsLayout =
32
+ | 'layout-1'
33
+ | 'layout-2'
34
+ | 'layout-3'
35
+ | 'layout-4'
36
+ | 'layout-5'
37
+ | 'layout-6'
38
+ | 'layout-7'
39
+ | 'layout-8'
40
+ | 'layout-9' // Executive sparkline cards
41
+
42
+ type IconBoxShape = 'rounded' | 'full-rounded' | 'none'
43
+ type IconBoxStyle = 'filled' | 'transparent'
44
+
45
+ interface StatTrend {
46
+ value: string | number
47
+ isPositive?: boolean | null
48
+ neutral?: boolean
49
+ label?: string
50
+ hideIcon?: boolean
51
+ }
52
+
53
+ interface StatItemSchema {
54
+ id: string | number
55
+ title: string
56
+ titleI18n?: string
57
+ value: string | number
58
+ icon?: string
59
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | string
60
+ trend?: StatTrend
61
+ isPrice?: boolean
62
+ sparkline?: number[] | Array<{ label?: string; value: number; color?: string }>
63
+ sparklineColor?: string
64
+ sparklineFill?: boolean
65
+ sparklineHeight?: number
66
+ [key: string]: any
67
+ }
68
+ ```
69
+
70
+ ### Variants
71
+
72
+ | Value | Description |
73
+ | :------------ | :-------------------------------------------------------- |
74
+ | `outline` | White/body background with a subtle border (default) |
75
+ | `solid` | Colored background based on each item's `color` field |
76
+ | `shadow` | White/body background with a drop shadow and faint border |
77
+ | `transparent` | No background or border |
78
+
79
+ ### Layouts
80
+
81
+ | Value | Description |
82
+ | :---------------------------- | :--------------------------------------------------------------- |
83
+ | `layout-1` | Icon on the left, title and value stacked on the right (default) |
84
+ | `layout-2` | Title and value on the left, icon pushed to the right |
85
+ | `layout-3` | Icon above the title and value |
86
+ | `layout-4` | Title at the top; value bottom-left, icon bottom-right |
87
+ | `layout-5` | Value on top (larger), title below — centered, no icon |
88
+ | `layout-6` | Icon absolutely positioned at the top-right corner of the card |
89
+ | `layout-7` | Colored left border accent with stacked title/value |
90
+ | `layout-8` | Inline label and value layout |
91
+ | `layout-9` | Executive card: icon → title → value → trend → sparkline |
92
+
93
+ ### Usage
94
+
95
+ #### Basic Usage
96
+
97
+ ```vue
98
+ <script setup>
99
+ import { Stats } from 'vlite3'
100
+
101
+ const items = [
102
+ {
103
+ id: 1,
104
+ title: 'Total Revenue',
105
+ value: '$45,231.89',
106
+ icon: 'lucide:dollar-sign',
107
+ color: 'success',
108
+ trend: { value: '+20.1%', isPositive: true, label: 'from last month' },
109
+ },
110
+ {
111
+ id: 2,
112
+ title: 'Subscriptions',
113
+ value: '+2,350',
114
+ icon: 'lucide:users',
115
+ color: 'primary',
116
+ trend: { value: '+180.1%', isPositive: true, label: 'from last month' },
117
+ },
118
+ ]
119
+ </script>
120
+
121
+ <template>
122
+ <Stats :items="items" variant="outline" />
123
+ </template>
124
+ ```
125
+
126
+ #### Variants
127
+
128
+ ```vue
129
+ <Stats :items="items" variant="solid" />
130
+ <Stats :items="items" variant="shadow" />
131
+ <Stats :items="items" variant="transparent" />
132
+ ```
133
+
134
+ #### Attached (Fused Borders)
135
+
136
+ ```vue
137
+ <Stats :items="items" attached variant="outline" />
138
+ <Stats :items="items" attached variant="shadow" />
139
+ ```
140
+
141
+ #### Layouts
142
+
143
+ ```vue
144
+ <!-- Icon on the right -->
145
+ <Stats :items="items" layout="layout-2" />
146
+
147
+ <!-- Icon above content -->
148
+ <Stats :items="items" layout="layout-3" />
149
+
150
+ <!-- Title top, value bottom-left, icon bottom-right -->
151
+ <Stats :items="items" layout="layout-4" />
152
+
153
+ <!-- Centered: large value on top, title below (no icon) -->
154
+ <Stats :items="items" layout="layout-5" />
155
+
156
+ <!-- Floating icon absolutely positioned at top-right -->
157
+ <Stats :items="items" layout="layout-6" variant="shadow" />
158
+
159
+ <!-- Colored left border accent -->
160
+ <Stats :items="items" layout="layout-7" />
161
+
162
+ <!-- Executive sparkline cards -->
163
+ <Stats
164
+ :items="executiveItems"
165
+ layout="layout-9"
166
+ icon-box-shape="full-rounded"
167
+ :sparkline-height="64"
168
+ value-size="text-2xl font-bold"
169
+ title-size="text-xs font-medium" />
170
+ ```
171
+
172
+ `layout-9` items accept optional sparkline fields:
173
+
174
+ ```js
175
+ {
176
+ id: 'revenue',
177
+ title: 'Total Revenue',
178
+ value: 1250000,
179
+ isPrice: true,
180
+ icon: 'lucide:circle-dollar-sign',
181
+ color: 'info',
182
+ trend: { value: '12.5%', isPositive: true, label: 'vs last period' },
183
+ sparkline: [42, 48, 45, 62, 71, 84, 96],
184
+ sparklineColor: 'var(--color-info)',
185
+ sparklineFill: true,
186
+ }
187
+ ```
188
+
189
+ #### Icon Box Shape & Style
190
+
191
+ ```vue
192
+ <!-- Full rounded (circle) icon box -->
193
+ <Stats :items="items" icon-box-shape="full-rounded" />
194
+
195
+ <!-- No background on icon box, only icon color -->
196
+ <Stats :items="items" icon-box-style="transparent" />
197
+
198
+ <!-- Combining both -->
199
+ <Stats :items="items" icon-box-style="transparent" icon-box-shape="full-rounded" />
200
+ ```
201
+
202
+ #### Custom Columns
203
+
204
+ ```vue
205
+ <Stats :items="items" :columns="3" />
206
+ <Stats :items="items" :columns="6" />
207
+ ```
208
+
209
+ #### Custom Sizing
210
+
211
+ ```vue
212
+ <Stats
213
+ :items="items"
214
+ :columns="2"
215
+ title-size="text-lg font-semibold text-gray-600"
216
+ value-size="text-5xl font-black text-primary"
217
+ icon-size="w-8 h-8" />
218
+ ```
219
+
220
+ #### Custom Color (Non-Semantic)
221
+
222
+ Any hex color string can be passed as the `color` field on an item. The component will derive tinted backgrounds automatically.
223
+
224
+ ```javascript
225
+ const items = [
226
+ {
227
+ id: 1,
228
+ title: 'Custom Color',
229
+ value: '9,999',
230
+ icon: 'lucide:star',
231
+ color: '#7c3aed', // Any valid CSS color
232
+ },
233
+ ]
234
+ ```
@@ -0,0 +1,232 @@
1
+ # StatusChip
2
+
3
+ **Import:** `import { StatusChip } from 'vlite3'`
4
+
5
+ A smart wrapper around `Chip` that automatically resolves a status string to the correct color variant and icon. Handles normalization of casing and delimiters — `in_progress`, `InProgress`, `IN-PROGRESS`, and `In Progress` all map to the same chip.
6
+
7
+ Label text always stays on a single line. Width sizes to content and does not shrink or wrap in tables, flex columns, or other constrained containers.
8
+
9
+ ### Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ | :------------ | :------------------------------- | :-------- | :-------------------------------------------------------- |
13
+ | `status` | `string` | **required** | Status value to resolve (e.g. `'active'`, `'in_progress'`) |
14
+ | `label` | `string` | — | Override the resolved display label |
15
+ | `labelI18n` | `string` | — | i18n translation key for the label (takes priority over `label`) |
16
+ | `hideIcon` | `boolean` | `false` | Hide the auto-resolved icon even when one is mapped |
17
+ | `size` | `'xsmall' \| 'small' \| 'medium' \| 'large'` | `small` | Size passed through to the underlying `Chip` |
18
+ | `appearance` | `'filled' \| 'transparent'` | `filled` | Surface style passed to `Chip` — see [Appearance](#appearance) |
19
+ | `class` | `string` | `''` | Additional CSS classes applied to the root |
20
+
21
+ ### Appearance
22
+
23
+ | Value | Description |
24
+ | :------------ | :-------------------------------------------------------------------------- |
25
+ | `filled` | Default. Status color resolves to a filled chip (background + border) |
26
+ | `transparent` | Status still resolves color and icon automatically, but only text/icon are colored — no background or border |
27
+
28
+ Status resolution is unchanged: `appearance` only controls the surface treatment of the underlying `Chip`.
29
+
30
+ ### Status Normalization
31
+
32
+ The `status` value is normalized before lookup: lowercased, and all `-`, `_`, and spaces are stripped. This means the following all resolve identically:
33
+ ```
34
+ 'in_progress' → 'inprogress'
35
+ 'InProgress' → 'inprogress'
36
+ 'IN-PROGRESS' → 'inprogress'
37
+ 'In Progress' → 'inprogress'
38
+ ```
39
+
40
+ ### Resolved Status Groups
41
+
42
+ **Network & HTTP**
43
+
44
+ | Status value | Variant |
45
+ | :------------- | :---------- |
46
+ | `pending` | `warning` |
47
+ | `success` | `success` |
48
+ | `redirect` | `warning` |
49
+ | `client-error` | `orange` |
50
+ | `server-error` | `danger` |
51
+ | `failed` | `danger` |
52
+ | `blocked` | `danger` |
53
+ | `cancelled` | `pink` |
54
+
55
+ **Payments & ERP / Finance**
56
+
57
+ | Status value | Variant |
58
+ | :----------------- | :-------- |
59
+ | `paid` | `success` |
60
+ | `unpaid` | `danger` |
61
+ | `pending` | `warning` |
62
+ | `partially_paid` | `cyan` |
63
+ | `refunded` | `pink` |
64
+ | `reversed` | `pink` |
65
+ | `overdue` | `orange` |
66
+ | `void` / `voided` | `secondary`|
67
+ | `cancelled` | `pink` |
68
+ | `invoiced` | `indigo` |
69
+ | `billed` | `indigo` |
70
+ | `unbilled` | `warning` |
71
+ | `quoted` | `cyan` |
72
+ | `cleared` | `success` |
73
+ | `reconciled` | `success` |
74
+ | `unreconciled` | `warning` |
75
+ | `posted` | `success` |
76
+ | `unposted` | `secondary`|
77
+ | `settled` | `success` |
78
+ | `authorized` | `success` |
79
+ | `unauthorized` | `danger` |
80
+
81
+ **CRM & Sales**
82
+
83
+ | Status value | Variant |
84
+ | :------------- | :--------- |
85
+ | `prospecting` | `indigo` |
86
+ | `qualification`| `purple` |
87
+ | `proposal` | `cyan` |
88
+ | `negotiation` | `orange` |
89
+ | `contacted` | `blue` |
90
+ | `qualified` | `success` |
91
+ | `won` | `success` |
92
+ | `lost` | `danger` |
93
+ | `closed_won` | `success` |
94
+ | `closed_lost` | `danger` |
95
+
96
+ **Orders & Fulfillment**
97
+
98
+ | Status value | Variant |
99
+ | :-------------- | :-------- |
100
+ | `confirmed` | `success` |
101
+ | `processing` | `info` |
102
+ | `in_progress` | `info` |
103
+ | `dispatched` | `cyan` |
104
+ | `in_transit` | `purple` |
105
+ | `shipped` | `teal` |
106
+ | `delivered` | `teal` |
107
+ | `completed` | `success` |
108
+ | `rejected` | `danger` |
109
+
110
+ **HR & Recruiting**
111
+
112
+ | Status value | Variant |
113
+ | :------------- | :--------- |
114
+ | `present` | `success` |
115
+ | `absent` | `danger` |
116
+ | `active` | `success` |
117
+ | `inactive` | `secondary`|
118
+ | `on_hold` | `orange` |
119
+ | `terminated` | `danger` |
120
+ | `suspended` | `pink` |
121
+ | `hired` | `success` |
122
+ | `interviewing` | `indigo` |
123
+ | `shortlisted` | `teal` |
124
+ | `offered` | `purple` |
125
+ | `onboarding` | `info` |
126
+ | `probation` | `warning` |
127
+ | `promoted` | `success` |
128
+ | `relocated` | `cyan` |
129
+
130
+ **Communication & Presence**
131
+
132
+ | Status value | Variant |
133
+ | :------------- | :--------- |
134
+ | `incoming` | `blue` |
135
+ | `outgoing` | `indigo` |
136
+ | `missed` | `danger` |
137
+ | `online` | `success` |
138
+ | `offline` | `secondary`|
139
+ | `in_person` | `indigo` |
140
+
141
+ **Inventory & Stock**
142
+
143
+ | Status value | Variant |
144
+ | :-------------- | :-------- |
145
+ | `in_stock` | `success` |
146
+ | `low_stock` | `warning` |
147
+ | `out_of_stock` | `danger` |
148
+ | `available` | `success` |
149
+ | `fulfilled` | `success` |
150
+ | `archived` | `secondary`|
151
+
152
+ **Payment Methods**
153
+
154
+ | Status value | Variant |
155
+ | :------------- | :--------- |
156
+ | `cash` | `success` |
157
+ | `check` | `blue` |
158
+ | `card` | `purple` |
159
+ | `transfer` | `cyan` |
160
+
161
+ **Tasks & Approvals**
162
+
163
+ | Status value | Variant |
164
+ | :------------------- | :-------- |
165
+ | `todo` | `secondary`|
166
+ | `in_review` | `info` |
167
+ | `approved` | `success` |
168
+ | `done` | `success` |
169
+ | `awaiting_approval` | `warning` |
170
+ | `partially_approved` | `warning` |
171
+
172
+ **Priority & Severity**
173
+
174
+ | Status value | Variant |
175
+ | :------------------- | :-------- |
176
+ | `critical` | `danger` |
177
+ | `high` | `danger` |
178
+ | `urgent` | `danger` |
179
+ | `medium` | `warning` |
180
+ | `normal` | `secondary`|
181
+ | `minor` | `secondary`|
182
+ | `trivial` | `secondary`|
183
+ | `low` | `secondary`|
184
+
185
+ **Boolean & Logic**
186
+
187
+ | Status value | Variant |
188
+ | :----------- | :-------- |
189
+ | `yes` | `success` |
190
+ | `no` | `danger` |
191
+ | `true` | `success` |
192
+ | `false` | `danger` |
193
+
194
+ > Unknown statuses fall back to the `secondary` variant with the status string formatted as a readable label (e.g. `some_custom_status` → `Some Custom Status`).
195
+
196
+ ### Usage
197
+ ```vue
198
+ <!-- Auto-resolved (filled — default) -->
199
+ <StatusChip status="active" />
200
+ <StatusChip status="in_progress" />
201
+ <StatusChip status="cancelled" />
202
+
203
+ <!-- Transparent — semantic text/icon only -->
204
+ <StatusChip status="active" appearance="transparent" />
205
+ <StatusChip status="in_progress" appearance="transparent" />
206
+ <StatusChip status="cancelled" appearance="transparent" />
207
+
208
+ <!-- Network status with an HTTP response label -->
209
+ <StatusChip status="client-error" label="404 Not Found" appearance="transparent" />
210
+
211
+ <!-- Custom label override -->
212
+ <StatusChip status="active" label="Live" />
213
+ <StatusChip status="pending" label="Awaiting Review" />
214
+
215
+ <!-- i18n label -->
216
+ <StatusChip status="active" label-i18n="statuses.active" />
217
+
218
+ <!-- Hide icon -->
219
+ <StatusChip status="completed" :hide-icon="true" />
220
+
221
+ <!-- Sizes -->
222
+ <StatusChip status="active" size="xsmall" />
223
+ <StatusChip status="active" size="small" />
224
+ <StatusChip status="pending" size="medium" />
225
+ <StatusChip status="cancelled" size="large" />
226
+
227
+ <!-- Normalization — all render identically -->
228
+ <StatusChip status="in_progress" />
229
+ <StatusChip status="InProgress" />
230
+ <StatusChip status="IN-PROGRESS" />
231
+ <StatusChip status="In Progress" />
232
+ ```
@@ -0,0 +1,23 @@
1
+ # Switch
2
+
3
+ **Import:** `import { Switch } from 'vlite3'`
4
+
5
+ ### Props
6
+
7
+ | Prop | Type | Default | Description |
8
+ | ------------ | --------- | ------- | ------------------- |
9
+ | `modelValue` | `boolean` | `false` | Binding (`v-model`) |
10
+ | `label` | `string` | — | Side label text |
11
+ | `labelI18n` | `string` | — | I18n key for label |
12
+ | `class` | `string` | — | Custom class |
13
+ | `disabled` | `boolean` | `false` | Disable toggle |
14
+
15
+ ### Events
16
+
17
+ - `@update:modelValue`: Emitted when toggled
18
+
19
+ ### Usage
20
+
21
+ ```vue
22
+ <Switch v-model="isEnabled" label="Airplane Mode" />
23
+ ```