@dayoakin/vue-ui 0.0.0-stage → 0.1.2

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 (55) hide show
  1. package/README.md +121 -2
  2. package/dist/components/AnimeHeight/index.vue.d.ts +28 -0
  3. package/dist/components/Badge/Badge.vue.d.ts +110 -0
  4. package/dist/components/Button/Button.vue.d.ts +231 -0
  5. package/dist/components/Button/ButtonGroup.vue.d.ts +41 -0
  6. package/dist/components/Button/SecondaryButton/index.vue.d.ts +231 -0
  7. package/dist/components/Card/Card.vue.d.ts +139 -0
  8. package/dist/components/CardSelect/CardSelect.vue.d.ts +178 -0
  9. package/dist/components/CodeBlock/index.vue.d.ts +291 -0
  10. package/dist/components/EmptyState/index.vue.d.ts +98 -0
  11. package/dist/components/Hr/index.vue.d.ts +3 -0
  12. package/dist/components/Input/AddressAutocomplete/index.vue.d.ts +218 -0
  13. package/dist/components/Input/CheckboxInput/index.vue.d.ts +115 -0
  14. package/dist/components/Input/CurrencyConverterInput/index.vue.d.ts +561 -0
  15. package/dist/components/Input/CurrencyInput/index.vue.d.ts +310 -0
  16. package/dist/components/Input/DateInput/index.vue.d.ts +276 -0
  17. package/dist/components/Input/DoubleRangeInput/index.vue.d.ts +206 -0
  18. package/dist/components/Input/Input.vue.d.ts +377 -0
  19. package/dist/components/Input/OtpInput/index.vue.d.ts +294 -0
  20. package/dist/components/Input/OtpInput/singleOtpInput.vue.d.ts +258 -0
  21. package/dist/components/Input/RadioInput/index.vue.d.ts +107 -0
  22. package/dist/components/Input/SearchInput/index.vue.d.ts +170 -0
  23. package/dist/components/Input/Select/index.vue.d.ts +250 -0
  24. package/dist/components/Input/TelInput/index.vue.d.ts +242 -0
  25. package/dist/components/Input/Upload/index.vue.d.ts +353 -0
  26. package/dist/components/Loaders/index.d.ts +8 -0
  27. package/dist/components/Loaders/index.vue.d.ts +104 -0
  28. package/dist/components/Loaders/loaderService.d.ts +18 -0
  29. package/dist/components/Modals/Modal.vue.d.ts +189 -0
  30. package/dist/components/Modals/RightSidebar.vue.d.ts +146 -0
  31. package/dist/components/Notification/AlertBox/AlertBox.vue.d.ts +103 -0
  32. package/dist/components/Notification/AlertBox/alertService.d.ts +21 -0
  33. package/dist/components/Notification/AlertBox/index.d.ts +8 -0
  34. package/dist/components/Notification/InlineToast/InlineToast.vue.d.ts +103 -0
  35. package/dist/components/Notification/Toast/index.d.ts +8 -0
  36. package/dist/components/Notification/Toast/index.vue.d.ts +76 -0
  37. package/dist/components/Notification/Toast/toastServices.d.ts +20 -0
  38. package/dist/components/Pagination/Pagination.vue.d.ts +238 -0
  39. package/dist/components/Skeleton/index.vue.d.ts +81 -0
  40. package/dist/components/Spinner/index.vue.d.ts +71 -0
  41. package/dist/components/Tab/Tab.vue.d.ts +149 -0
  42. package/dist/components/Table/index.vue.d.ts +551 -0
  43. package/dist/components/Tooltip/Tooltip.vue.d.ts +90 -0
  44. package/dist/components/index.d.ts +38 -0
  45. package/dist/components/ts/api.d.ts +4 -0
  46. package/dist/core/theme.d.ts +4 -0
  47. package/dist/core/ui.d.ts +88 -0
  48. package/dist/index-z9l8C72U-BM4uarLu.cjs +14 -0
  49. package/dist/index-z9l8C72U-CAfHR3NZ.js +3733 -0
  50. package/dist/index.cjs +7 -0
  51. package/dist/index.d.ts +2 -0
  52. package/dist/index.js +16257 -0
  53. package/dist/lib.d.ts +3 -0
  54. package/dist/style.css +1 -0
  55. package/package.json +53 -4
@@ -0,0 +1,561 @@
1
+ import { uiAttrs } from '../../../core/ui';
2
+ export declare const WORLD_CURRENCIES: {
3
+ code: string;
4
+ symbol: string;
5
+ name: string;
6
+ flag: string;
7
+ }[];
8
+ interface CurrencyCode {
9
+ code: string;
10
+ sign: string;
11
+ }
12
+ interface CurrencyRate {
13
+ sourceCurrencyCode: CurrencyCode;
14
+ destinationCurrencyCode: CurrencyCode;
15
+ exchangeRate: number;
16
+ }
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
20
+ modelValue: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ receiveLabel: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ topUpLabel: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ totalLabel: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ continueText: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ type: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ currencies: {
45
+ type: () => CurrencyRate[];
46
+ default: () => never[];
47
+ };
48
+ allowedCurrencies: {
49
+ type: () => string[];
50
+ default: () => never[];
51
+ };
52
+ sourceCurrency: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ getFees: {
57
+ type: any;
58
+ default: undefined;
59
+ };
60
+ w: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ h: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ radius: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ fontSize: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ bgColor: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ borderColor: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ focusColor: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ textColor: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ labelColor: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ mutedColor: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ dangerColor: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ }>, {
105
+ uiAttrs: typeof uiAttrs;
106
+ currencyTo: import('vue').Ref<string, string>;
107
+ receiveAmount: import('vue').Ref<number, number>;
108
+ nairaAmount: import('vue').Ref<number, number>;
109
+ feeAmount: import('vue').Ref<number, number>;
110
+ feesLoading: import('vue').Ref<boolean, boolean>;
111
+ editingField: import('vue').Ref<"receive", "receive">;
112
+ updatedAt: import('vue').Ref<string, string>;
113
+ rate: import('vue').ComputedRef<number>;
114
+ totalAmount: import('vue').ComputedRef<number>;
115
+ continueDisabled: import('vue').ComputedRef<boolean>;
116
+ computedCurrencyOptions: import('vue').ComputedRef<{
117
+ code: string;
118
+ symbol: string;
119
+ }[]>;
120
+ sourceCurrencySymbol: import('vue').ComputedRef<string>;
121
+ sourceCurrencyFlag: import('vue').ComputedRef<string>;
122
+ badgeBg: import('vue').ComputedRef<string>;
123
+ money: (v: number) => string;
124
+ summaryStyle: import('vue').ComputedRef<{
125
+ border: string;
126
+ background: string;
127
+ borderRadius: string;
128
+ padding: string;
129
+ marginTop: string;
130
+ }>;
131
+ readonlyFieldStyle: import('vue').ComputedRef<{
132
+ height: string;
133
+ borderRadius: string;
134
+ border: string;
135
+ background: string;
136
+ fontSize: string;
137
+ }>;
138
+ continueBtnStyle: import('vue').ComputedRef<{
139
+ background: string;
140
+ color: string;
141
+ borderRadius: string;
142
+ cursor: string;
143
+ }>;
144
+ onReceiveInput: (value: number) => void;
145
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:modelValue" | "destinationCurrency" | "fees" | "continue")[], "update:modelValue" | "destinationCurrency" | "fees" | "continue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
146
+ modelValue: {
147
+ type: NumberConstructor;
148
+ default: number;
149
+ };
150
+ receiveLabel: {
151
+ type: StringConstructor;
152
+ default: string;
153
+ };
154
+ topUpLabel: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ totalLabel: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ continueText: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ type: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ currencies: {
171
+ type: () => CurrencyRate[];
172
+ default: () => never[];
173
+ };
174
+ allowedCurrencies: {
175
+ type: () => string[];
176
+ default: () => never[];
177
+ };
178
+ sourceCurrency: {
179
+ type: StringConstructor;
180
+ default: string;
181
+ };
182
+ getFees: {
183
+ type: any;
184
+ default: undefined;
185
+ };
186
+ w: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ h: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ radius: {
195
+ type: StringConstructor;
196
+ default: string;
197
+ };
198
+ fontSize: {
199
+ type: StringConstructor;
200
+ default: string;
201
+ };
202
+ bgColor: {
203
+ type: StringConstructor;
204
+ default: string;
205
+ };
206
+ borderColor: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
210
+ focusColor: {
211
+ type: StringConstructor;
212
+ default: string;
213
+ };
214
+ textColor: {
215
+ type: StringConstructor;
216
+ default: string;
217
+ };
218
+ labelColor: {
219
+ type: StringConstructor;
220
+ default: string;
221
+ };
222
+ mutedColor: {
223
+ type: StringConstructor;
224
+ default: string;
225
+ };
226
+ dangerColor: {
227
+ type: StringConstructor;
228
+ default: string;
229
+ };
230
+ }>> & Readonly<{
231
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
232
+ onContinue?: ((...args: any[]) => any) | undefined;
233
+ onDestinationCurrency?: ((...args: any[]) => any) | undefined;
234
+ onFees?: ((...args: any[]) => any) | undefined;
235
+ }>, {
236
+ borderColor: string;
237
+ fontSize: string;
238
+ bgColor: string;
239
+ type: string;
240
+ textColor: string;
241
+ radius: string;
242
+ w: string;
243
+ h: string;
244
+ modelValue: number;
245
+ focusColor: string;
246
+ labelColor: string;
247
+ mutedColor: string;
248
+ dangerColor: string;
249
+ receiveLabel: string;
250
+ topUpLabel: string;
251
+ totalLabel: string;
252
+ continueText: string;
253
+ currencies: CurrencyRate[];
254
+ allowedCurrencies: string[];
255
+ sourceCurrency: string;
256
+ getFees: any;
257
+ }, {}, {
258
+ CurrencyInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
259
+ modelValue: {
260
+ type: (StringConstructor | NumberConstructor)[];
261
+ default: string;
262
+ };
263
+ modelCurrency: {
264
+ type: StringConstructor;
265
+ default: string;
266
+ };
267
+ id: {
268
+ type: StringConstructor;
269
+ default: string;
270
+ };
271
+ label: {
272
+ type: StringConstructor;
273
+ default: string;
274
+ };
275
+ placeholder: {
276
+ type: StringConstructor;
277
+ default: string;
278
+ };
279
+ desc: {
280
+ type: StringConstructor;
281
+ default: string;
282
+ };
283
+ errorText: {
284
+ type: StringConstructor;
285
+ default: string;
286
+ };
287
+ infoTooltip: {
288
+ type: StringConstructor;
289
+ default: string;
290
+ };
291
+ required: {
292
+ type: BooleanConstructor;
293
+ default: boolean;
294
+ };
295
+ disabled: {
296
+ type: BooleanConstructor;
297
+ default: boolean;
298
+ };
299
+ validation: {
300
+ type: BooleanConstructor;
301
+ default: boolean;
302
+ };
303
+ showCurrency: {
304
+ type: BooleanConstructor;
305
+ default: boolean;
306
+ };
307
+ showRightSymbol: {
308
+ type: BooleanConstructor;
309
+ default: boolean;
310
+ };
311
+ maxlength: {
312
+ type: NumberConstructor;
313
+ default: number;
314
+ };
315
+ currencyOptions: {
316
+ type: () => import('../CurrencyInput/index.vue').CurrencyItem[];
317
+ default: () => {
318
+ code: string;
319
+ symbol: string;
320
+ }[];
321
+ };
322
+ w: {
323
+ type: StringConstructor;
324
+ default: string;
325
+ };
326
+ h: {
327
+ type: StringConstructor;
328
+ default: string;
329
+ };
330
+ p: {
331
+ type: StringConstructor;
332
+ default: string;
333
+ };
334
+ r: {
335
+ type: StringConstructor;
336
+ default: string;
337
+ };
338
+ fontSize: {
339
+ type: StringConstructor;
340
+ default: string;
341
+ };
342
+ labelSize: {
343
+ type: StringConstructor;
344
+ default: string;
345
+ };
346
+ bgColor: {
347
+ type: StringConstructor;
348
+ default: string;
349
+ };
350
+ borderColor: {
351
+ type: StringConstructor;
352
+ default: string;
353
+ };
354
+ focusColor: {
355
+ type: StringConstructor;
356
+ default: string;
357
+ };
358
+ textColor: {
359
+ type: StringConstructor;
360
+ default: string;
361
+ };
362
+ labelColor: {
363
+ type: StringConstructor;
364
+ default: string;
365
+ };
366
+ mutedColor: {
367
+ type: StringConstructor;
368
+ default: string;
369
+ };
370
+ dangerColor: {
371
+ type: StringConstructor;
372
+ default: string;
373
+ };
374
+ shadow: {
375
+ type: StringConstructor;
376
+ default: string;
377
+ };
378
+ }>, {
379
+ uiAttrs: typeof uiAttrs;
380
+ inputRef: import('vue').Ref<HTMLInputElement | null, HTMLInputElement | null>;
381
+ isFocused: import('vue').Ref<boolean, boolean>;
382
+ hasError: import('vue').Ref<boolean, boolean>;
383
+ selectedCurrency: import('vue').Ref<string, string>;
384
+ rawValue: import('vue').Ref<number, number>;
385
+ activeSymbol: import('vue').ComputedRef<string>;
386
+ displayValue: import('vue').WritableComputedRef<string, string>;
387
+ handleInput: (e: Event) => void;
388
+ handleCurrencyChange: () => void;
389
+ handleFocus: () => void;
390
+ handleBlur: () => void;
391
+ boxStyle: import('vue').ComputedRef<{
392
+ height: string;
393
+ borderRadius: string;
394
+ background: string;
395
+ borderColor: string;
396
+ boxShadow: string;
397
+ }>;
398
+ inputStyle: import('vue').ComputedRef<{
399
+ color: string;
400
+ fontSize: string;
401
+ padding: string;
402
+ }>;
403
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:modelValue" | "valid" | "update:modelCurrency" | "change" | "focus" | "blur")[], "update:modelValue" | "valid" | "update:modelCurrency" | "change" | "focus" | "blur", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
404
+ modelValue: {
405
+ type: (StringConstructor | NumberConstructor)[];
406
+ default: string;
407
+ };
408
+ modelCurrency: {
409
+ type: StringConstructor;
410
+ default: string;
411
+ };
412
+ id: {
413
+ type: StringConstructor;
414
+ default: string;
415
+ };
416
+ label: {
417
+ type: StringConstructor;
418
+ default: string;
419
+ };
420
+ placeholder: {
421
+ type: StringConstructor;
422
+ default: string;
423
+ };
424
+ desc: {
425
+ type: StringConstructor;
426
+ default: string;
427
+ };
428
+ errorText: {
429
+ type: StringConstructor;
430
+ default: string;
431
+ };
432
+ infoTooltip: {
433
+ type: StringConstructor;
434
+ default: string;
435
+ };
436
+ required: {
437
+ type: BooleanConstructor;
438
+ default: boolean;
439
+ };
440
+ disabled: {
441
+ type: BooleanConstructor;
442
+ default: boolean;
443
+ };
444
+ validation: {
445
+ type: BooleanConstructor;
446
+ default: boolean;
447
+ };
448
+ showCurrency: {
449
+ type: BooleanConstructor;
450
+ default: boolean;
451
+ };
452
+ showRightSymbol: {
453
+ type: BooleanConstructor;
454
+ default: boolean;
455
+ };
456
+ maxlength: {
457
+ type: NumberConstructor;
458
+ default: number;
459
+ };
460
+ currencyOptions: {
461
+ type: () => import('../CurrencyInput/index.vue').CurrencyItem[];
462
+ default: () => {
463
+ code: string;
464
+ symbol: string;
465
+ }[];
466
+ };
467
+ w: {
468
+ type: StringConstructor;
469
+ default: string;
470
+ };
471
+ h: {
472
+ type: StringConstructor;
473
+ default: string;
474
+ };
475
+ p: {
476
+ type: StringConstructor;
477
+ default: string;
478
+ };
479
+ r: {
480
+ type: StringConstructor;
481
+ default: string;
482
+ };
483
+ fontSize: {
484
+ type: StringConstructor;
485
+ default: string;
486
+ };
487
+ labelSize: {
488
+ type: StringConstructor;
489
+ default: string;
490
+ };
491
+ bgColor: {
492
+ type: StringConstructor;
493
+ default: string;
494
+ };
495
+ borderColor: {
496
+ type: StringConstructor;
497
+ default: string;
498
+ };
499
+ focusColor: {
500
+ type: StringConstructor;
501
+ default: string;
502
+ };
503
+ textColor: {
504
+ type: StringConstructor;
505
+ default: string;
506
+ };
507
+ labelColor: {
508
+ type: StringConstructor;
509
+ default: string;
510
+ };
511
+ mutedColor: {
512
+ type: StringConstructor;
513
+ default: string;
514
+ };
515
+ dangerColor: {
516
+ type: StringConstructor;
517
+ default: string;
518
+ };
519
+ shadow: {
520
+ type: StringConstructor;
521
+ default: string;
522
+ };
523
+ }>> & Readonly<{
524
+ onFocus?: ((...args: any[]) => any) | undefined;
525
+ onBlur?: ((...args: any[]) => any) | undefined;
526
+ onChange?: ((...args: any[]) => any) | undefined;
527
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
528
+ onValid?: ((...args: any[]) => any) | undefined;
529
+ "onUpdate:modelCurrency"?: ((...args: any[]) => any) | undefined;
530
+ }>, {
531
+ r: string;
532
+ p: string;
533
+ borderColor: string;
534
+ fontSize: string;
535
+ shadow: string;
536
+ bgColor: string;
537
+ textColor: string;
538
+ label: string;
539
+ desc: string;
540
+ required: boolean;
541
+ disabled: boolean;
542
+ w: string;
543
+ h: string;
544
+ id: string;
545
+ modelValue: string | number;
546
+ placeholder: string;
547
+ focusColor: string;
548
+ infoTooltip: string;
549
+ maxlength: number;
550
+ errorText: string;
551
+ validation: boolean;
552
+ modelCurrency: string;
553
+ showCurrency: boolean;
554
+ showRightSymbol: boolean;
555
+ currencyOptions: import('../CurrencyInput/index.vue').CurrencyItem[];
556
+ labelSize: string;
557
+ labelColor: string;
558
+ mutedColor: string;
559
+ dangerColor: string;
560
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
561
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;