viscous-ui 1.0.80
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 +365 -0
- package/dist/index.js +4018 -0
- package/dist/index.mjs +3958 -0
- package/package.json +22 -0
package/README.md
ADDED
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
# 🌐 Live Demo
|
|
2
|
+
|
|
3
|
+
👉 https://virtual-ui-client.onrender.com
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Virtual UI
|
|
8
|
+
|
|
9
|
+
A modern and customizable **React UI Component Library** designed for fast development and clean design systems.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 📦 Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install virtual-ui-lib
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 🚀 Usage
|
|
22
|
+
|
|
23
|
+
```jsx
|
|
24
|
+
import {
|
|
25
|
+
Navbar,
|
|
26
|
+
Sidebar,
|
|
27
|
+
AvatarCard,
|
|
28
|
+
PricingCard,
|
|
29
|
+
Loader,
|
|
30
|
+
OTPInput
|
|
31
|
+
} from "virtual-ui-lib"
|
|
32
|
+
|
|
33
|
+
function App() {
|
|
34
|
+
return (
|
|
35
|
+
<>
|
|
36
|
+
<Navbar />
|
|
37
|
+
<Sidebar />
|
|
38
|
+
|
|
39
|
+
<div style={{ padding: "20px" }}>
|
|
40
|
+
<AvatarCard />
|
|
41
|
+
<PricingCard />
|
|
42
|
+
<OTPInput />
|
|
43
|
+
<Loader />
|
|
44
|
+
</div>
|
|
45
|
+
</>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
# 🧩 Components
|
|
53
|
+
|
|
54
|
+
Virtual UI includes the following components:
|
|
55
|
+
|
|
56
|
+
* AvatarCard
|
|
57
|
+
* BackgroundImageSlider
|
|
58
|
+
* Charts
|
|
59
|
+
* ColorPicker
|
|
60
|
+
* FileUpload
|
|
61
|
+
* Footer
|
|
62
|
+
* ImageCard
|
|
63
|
+
* ImageSlider
|
|
64
|
+
* InvoiceCard
|
|
65
|
+
* Loader
|
|
66
|
+
* Navbar
|
|
67
|
+
* NotificationToast
|
|
68
|
+
* OTPInput
|
|
69
|
+
* PageLoader
|
|
70
|
+
* PricingCard
|
|
71
|
+
* RatingStars
|
|
72
|
+
* Sidebar
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
# 📘 Component Details
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## AvatarCard
|
|
81
|
+
|
|
82
|
+
```jsx
|
|
83
|
+
<AvatarCard />
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Props
|
|
87
|
+
|
|
88
|
+
| Prop | Description |
|
|
89
|
+
| ----- | ------------ |
|
|
90
|
+
| name | User name |
|
|
91
|
+
| image | Avatar image |
|
|
92
|
+
| role | User role |
|
|
93
|
+
| size | Card size |
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Navbar
|
|
98
|
+
|
|
99
|
+
```jsx
|
|
100
|
+
<Navbar />
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Props
|
|
104
|
+
|
|
105
|
+
| Prop | Description |
|
|
106
|
+
| ----- | ---------------- |
|
|
107
|
+
| logo | Logo text/image |
|
|
108
|
+
| links | Navigation links |
|
|
109
|
+
| fixed | Sticky navbar |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Sidebar
|
|
114
|
+
|
|
115
|
+
```jsx
|
|
116
|
+
<Sidebar />
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Props
|
|
120
|
+
|
|
121
|
+
| Prop | Description |
|
|
122
|
+
| --------- | -------------- |
|
|
123
|
+
| items | Sidebar items |
|
|
124
|
+
| collapsed | Collapse state |
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## PricingCard
|
|
129
|
+
|
|
130
|
+
```jsx
|
|
131
|
+
<PricingCard />
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Props
|
|
135
|
+
|
|
136
|
+
| Prop | Description |
|
|
137
|
+
| ----------- | ---------------- |
|
|
138
|
+
| title | Plan name |
|
|
139
|
+
| price | Plan price |
|
|
140
|
+
| features | List of features |
|
|
141
|
+
| highlighted | Highlight plan |
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## OTPInput
|
|
146
|
+
|
|
147
|
+
```jsx
|
|
148
|
+
<OTPInput length={6} />
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Props
|
|
152
|
+
|
|
153
|
+
| Prop | Description |
|
|
154
|
+
| -------- | ------------------ |
|
|
155
|
+
| length | Number of digits |
|
|
156
|
+
| onChange | OTP change handler |
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Loader
|
|
161
|
+
|
|
162
|
+
```jsx
|
|
163
|
+
<Loader />
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Props
|
|
167
|
+
|
|
168
|
+
| Prop | Description |
|
|
169
|
+
| ----- | ------------ |
|
|
170
|
+
| size | Loader size |
|
|
171
|
+
| color | Loader color |
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## NotificationToast
|
|
176
|
+
|
|
177
|
+
```jsx
|
|
178
|
+
<NotificationToast message="Saved!" />
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Props
|
|
182
|
+
|
|
183
|
+
| Prop | Description |
|
|
184
|
+
| ------- | ---------------------- |
|
|
185
|
+
| message | Toast text |
|
|
186
|
+
| type | success / error / info |
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Charts
|
|
191
|
+
|
|
192
|
+
```jsx
|
|
193
|
+
<Charts />
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Props
|
|
197
|
+
|
|
198
|
+
| Prop | Description |
|
|
199
|
+
| ---- | ---------------- |
|
|
200
|
+
| type | bar / line / pie |
|
|
201
|
+
| data | Chart data |
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## ColorPicker
|
|
206
|
+
|
|
207
|
+
```jsx
|
|
208
|
+
<ColorPicker />
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Props
|
|
212
|
+
|
|
213
|
+
| Prop | Description |
|
|
214
|
+
| -------- | -------------- |
|
|
215
|
+
| value | Selected color |
|
|
216
|
+
| onChange | Change handler |
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## FileUpload
|
|
221
|
+
|
|
222
|
+
```jsx
|
|
223
|
+
<FileUpload />
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Props
|
|
227
|
+
|
|
228
|
+
| Prop | Description |
|
|
229
|
+
| -------- | -------------------- |
|
|
230
|
+
| onUpload | Upload handler |
|
|
231
|
+
| multiple | Allow multiple files |
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## ImageCard
|
|
236
|
+
|
|
237
|
+
```jsx
|
|
238
|
+
<ImageCard />
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Props
|
|
242
|
+
|
|
243
|
+
| Prop | Description |
|
|
244
|
+
| ----- | ------------ |
|
|
245
|
+
| src | Image source |
|
|
246
|
+
| title | Image title |
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## ImageSlider
|
|
251
|
+
|
|
252
|
+
```jsx
|
|
253
|
+
<ImageSlider />
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### Props
|
|
257
|
+
|
|
258
|
+
| Prop | Description |
|
|
259
|
+
| -------- | ----------- |
|
|
260
|
+
| images | Image array |
|
|
261
|
+
| autoPlay | Auto slide |
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## BackgroundImageSlider
|
|
266
|
+
|
|
267
|
+
```jsx
|
|
268
|
+
<BackgroundImageSlider />
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
### Props
|
|
272
|
+
|
|
273
|
+
| Prop | Description |
|
|
274
|
+
| ------- | ----------------- |
|
|
275
|
+
| images | Background images |
|
|
276
|
+
| overlay | Overlay color |
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## InvoiceCard
|
|
281
|
+
|
|
282
|
+
```jsx
|
|
283
|
+
<InvoiceCard />
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Props
|
|
287
|
+
|
|
288
|
+
| Prop | Description |
|
|
289
|
+
| --------- | -------------- |
|
|
290
|
+
| invoiceId | Invoice ID |
|
|
291
|
+
| amount | Amount |
|
|
292
|
+
| status | Paid / Pending |
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## RatingStars
|
|
297
|
+
|
|
298
|
+
```jsx
|
|
299
|
+
<RatingStars rating={4} />
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Props
|
|
303
|
+
|
|
304
|
+
| Prop | Description |
|
|
305
|
+
| -------- | --------------- |
|
|
306
|
+
| rating | Number of stars |
|
|
307
|
+
| onChange | Change handler |
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## PageLoader
|
|
312
|
+
|
|
313
|
+
```jsx
|
|
314
|
+
<PageLoader />
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### Props
|
|
318
|
+
|
|
319
|
+
| Prop | Description |
|
|
320
|
+
| ---------- | ---------------- |
|
|
321
|
+
| fullScreen | Full page loader |
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Footer
|
|
326
|
+
|
|
327
|
+
```jsx
|
|
328
|
+
<Footer />
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Props
|
|
332
|
+
|
|
333
|
+
| Prop | Description |
|
|
334
|
+
| ----- | ------------ |
|
|
335
|
+
| text | Footer text |
|
|
336
|
+
| links | Footer links |
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
# 🤝 Contributing
|
|
341
|
+
|
|
342
|
+
Contributions are welcome!
|
|
343
|
+
|
|
344
|
+
* Fork the repo
|
|
345
|
+
* Create a new branch
|
|
346
|
+
* Submit a pull request
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
# 📄 License
|
|
351
|
+
|
|
352
|
+
MIT License
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
# 💡 Future Improvements
|
|
357
|
+
|
|
358
|
+
* Theme system (dark/light mode)
|
|
359
|
+
* Animation presets
|
|
360
|
+
* Accessibility improvements
|
|
361
|
+
* More enterprise components
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
Made with ❤️ for developers
|