forked from shuriken-ui/nuxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.schema.ts
807 lines (806 loc) · 21.8 KB
/
nuxt.schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
export default defineNuxtSchema({
appConfig: {
nui: {
// #region base
BaseAccordion: {
/**
* The action icon of the accordion.
*
* @type {'dot' | 'chevron' | 'plus'}
*/
action: 'dot',
/**
* Default color for the accordion dot
*
* @type {'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'dark' | 'black'}
*/
dotColor: 'primary',
/**
* The color of the accordion.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
color: 'default',
/**
* The radius of the accordion.
*
* @type {'none' | 'sm' | 'md' | 'lg'}
*/
rounded: 'sm',
},
BaseAvatar: {
/**
* Default color for the avatar
*
* @type {'white' | 'muted' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'pink' | 'yellow' | 'indigo' | 'violet'}
*/
color: 'muted',
/**
* The radius of the avatar.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'full',
/**
* The size of the avatar.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'}
*/
size: 'sm',
},
BaseAvatarGroup: {
/**
* The limit of avatars to display.
*
* @type {number}
*/
limit: 4,
/**
* The size of the avatar group.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'}
*/
size: 'sm',
},
BaseBreadcrumb: {
/**
* Defines the hover color of the breadcrumb links
*
* @type {'primary' | 'dark' | 'black'}
*/
color: 'primary',
},
BaseButton: {
/**
* Default color for the BaseButton component
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'light' | 'dark' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
/**
* Default rounded for the BaseButton component
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'md',
/**
* Default size for the BaseButton component
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
/**
* Default variant for the BaseButton component
*
* @type {'solid' | 'pastel' | 'outline'}
*/
variant: 'solid',
},
BaseButtonAction: {
/**
* Default color for the BaseButtonAction component
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'light' | 'dark' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
/**
* Default rounded for the BaseButtonAction component
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'md',
},
BaseButtonClose: {
/**
* Default color for the BaseButtonClose component
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
/**
* Default rounded for the BaseButtonClose component
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'full',
/**
* Default size for the BaseButtonClose component
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'sm',
},
BaseButtonGroup: {},
BaseButtonIcon: {
/**
* Default color for the BaseButtonIcon component
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'light' | 'dark' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
/**
* Default rounded for the BaseButtonIcon component
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'md',
/**
* Default size for the BaseButton component
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
},
BaseCard: {
/**
* Default color for the BaseCard component
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'dark' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
/**
* Default rounded for the BaseCard component
*
* @type {'none' | 'sm' | 'md' | 'lg'}
*/
rounded: 'sm',
},
BaseDropdown: {
/**
* The color of the dropdown button.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'light' | 'dark' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
buttonColor: 'default',
/**
* The color of the dropdown.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'none'}
*/
color: 'default',
/**
* The placement of the dropdown via floating-ui
*
* @type {'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'}
*/
placement: 'bottom-start',
/**
* Default rounded for the BaseDropdown component
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* Default size for the BaseDropdown component menu
*
* @type {'md' | 'lg'}
*/
size: 'md',
/**
* The variant of the dropdown.
*
* @type {'button' | 'context' | 'text'}
*/
variant: 'button',
},
BaseDropdownDivider: {},
BaseDropdownItem: {
/**
* The hover color of the dropdown item inner elements.
*
* @type {'primary' | 'info' | 'success' | 'warning' | 'danger' | 'dark' | 'black'}
*/
color: 'primary',
/**
* The contrast of the dropdown item.
*
* @type {'default' | 'contrast'}
*/
contrast: 'default',
/**
* The radius of the dropdown item.
*
* @type {'none' | 'sm' | 'md' | 'lg'}
*/
rounded: 'sm',
},
BaseHeading: {
/**
* The tag of the heading.
*
* @type {string}
*/
as: 'p',
/**
* The lead of the heading.
*
* @type {'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose'}
*/
lead: 'normal',
/**
* The size of the heading.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl'}
*/
size: 'xl',
/**
* The weight of the heading.
*
* @type {'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold'}
*/
weight: 'semibold',
},
BaseIconBox: {
/**
* The color of the icon box.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'dark' | 'light' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
/**
* The radius of the icon box.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the icon box.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'}
*/
size: 'xs',
/**
* The variant of the icon box.
*
* @type {'solid' | 'outline' | 'pastel'}
*/
variant: 'solid',
},
BaseKbd: {
/**
* The color of the kbd.
*
* @type {'default' | 'muted' | 'none'}
*/
color: 'default',
/**
* The radius of the kbd.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the kbd.
*
* @type {'xs' | 'sm' | 'md' | 'lg'}
*/
size: 'sm',
},
BaseLink: {},
BaseList: {},
BaseListItem: {},
BaseMessage: {
/**
* The color of the message.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-muted' | 'primary' | 'info' | 'success' | 'warning' | 'danger'}
*/
color: 'default',
/**
* The radius of the message.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The default icons of the message.
*
* @type {{
default?: string
'default-contrast'?: string
muted?: string
'muted-contrast'?: string
info?: string
success?: string
warning?: string
danger?: string
primary?: string
}}
*/
defaultIcons: {
muted: 'akar-icons:info-fill',
'muted-contrast': 'akar-icons:info-fill',
default: 'akar-icons:info-fill',
'default-contrast': 'akar-icons:info-fill',
info: 'akar-icons:info-fill',
success: 'carbon:checkmark-filled',
warning: 'ci:warning',
danger: 'ph:warning-octagon-fill',
primary: 'akar-icons:info-fill',
},
},
BasePagination: {
/**
* The color of the pagination.
*
* @type {'primary' | 'dark' | 'black'}
*/
color: 'primary',
/**
* The radius of the pagination.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
},
BaseParagraph: {
/**
* The tag of the paragraph.
*
* @type {string}
*/
as: 'p',
/**
* The lead of the paragraph.
*
* @type {'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose'}
*/
lead: 'normal',
/**
* The size of the paragraph.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl'}
*/
size: 'md',
/**
* The weight of the paragraph.
*
* @type {'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold'}
*/
weight: 'normal',
},
BasePlaceholderPage: {
/**
* The size of the placeholder image.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
*/
imageSize: 'xs',
},
BasePlaceload: {},
BaseProgress: {
/**
* The color of the progress.
*
* @type {'primary' | 'info' | 'success' | 'warning' | 'danger' | 'light' | 'dark' | 'black'}
*/
color: 'primary',
/**
* The grey shade of the progress.
*
* @type {'default' | 'contrast'}
*/
contrast: 'default',
/**
* The radius of the progress.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'full',
/**
* The size of the progress.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'sm',
},
BaseProgressCircle: {
/**
* The color of the progress circle.
*
* @type {'primary' | 'info' | 'success' | 'warning' | 'danger' | 'light' | 'dark' | 'black'}
*/
color: 'primary',
},
BaseProse: {
/**
* The radius of the prose.
*
* @type {'none' | 'sm' | 'md' | 'lg'}
*/
rounded: 'none',
},
BaseSnack: {
/**
* The color of the snack.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
color: 'default',
/**
* The size of the snack.
*
* @type {'xs' | 'sm' | 'md'}
*/
size: 'md',
},
BaseTabs: {
/**
* The color of the active tab.
*
* @type {'default' | 'primary' | 'light' | 'dark' | 'black'}
*/
color: 'primary',
/**
* The alignment of the tabs.
*
* @type {'start' | 'center' | 'end'}
*/
justify: 'start',
/**
* The type of the tabs.
*
* @type {'tabs' | 'box'}
*/
type: 'tabs',
},
BaseTabSlider: {
/**
* The color of the active tab.
*
* @type {'default' | 'default-contrast' | 'primary' | 'light' | 'dark' | 'black'}
*/
color: 'default',
/**
* The alignment of the tabs.
*
* @type {'start' | 'center' | 'end'}
*/
justify: 'start',
/**
* The radius of the tabs.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'lg',
/**
* The size of the tabs.
*
* @type {'sm' | 'md'}
*/
size: 'md',
},
BaseTag: {
/**
* The color of the tag.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'light' | 'dark' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger'}
*/
color: 'default',
/**
* The radius of the tag.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'lg',
/**
* The size of the tag.
*
* @type {'sm' | 'md'}
*/
size: 'md',
/**
* The variant of the tag.
*
* @type {'solid' | 'pastel' | 'outline'}
*/
variant: 'solid',
},
BaseText: {
/**
* The lead of the text span.
*
* @type {'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose'}
*/
lead: 'normal',
/**
* The size of the text span.
*
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl' | '9xl'}
*/
size: 'md',
/**
* The weight of the text span.
*
* @type {'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'extrabold'}
*/
weight: 'normal',
},
BaseThemeSwitch: {
/**
* Disables transitions when toggling between light and dark mode.
*
* @type {boolean}
*/
disableTransitions: false,
},
BaseThemeToggle: {
/**
* Disables transitions when toggling between light and dark mode.
*
* @type {boolean}
*/
disableTransitions: false,
},
// #endregion
// #region form
BaseAutocomplete: {
/**
* The contrast of the autocomplete.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
contrast: 'default',
/**
* Translation strings.
*
* @type {Record<'empty' | 'pending', string>}
*/
i18n: {
empty: 'Nothing found.',
pending: 'Loading ...',
},
/**
* The radius of the autocomplete.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the autocomplete.
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
},
BaseAutocompleteItem: {
/**
* The radius of the autocomplete item.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
},
BaseCheckbox: {
/**
* Default color for the BaseCheckbox component
*
* @type {'default' | 'muted' | 'light' | 'dark' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger'}
*/
color: 'default',
/**
* Default rounded for the BaseCheckbox component
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
},
BaseCheckboxAnimated: {
/**
* Default color for the BaseCheckbox component
*
* @type {'primary' | 'info' | 'success' | 'warning' | 'danger' | 'light' | 'muted' | 'dark' | 'black'}
*/
color: 'primary',
},
BaseCheckboxHeadless: {},
BaseFullscreenDropfile: {
/**
* The color of the icon.
*
* @type {'primary' | 'dark' | 'black'}
*/
color: 'primary',
},
BaseInput: {
/**
* The contrast of the input.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
contrast: 'default',
/**
* The radius of the input.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the input.
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
},
BaseInputFile: {
/**
* The contrast of the input.
*
* @type {'default' | 'default-contrast'}
*/
contrast: 'default',
/**
* The radius of the input.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the input.
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
/**
* The translation strings for the input file.
*
* @type {{ empty: string; invalid: string; multiple: string }}
*/
i18n: {
empty: 'No file chosen',
invalid: 'Invalid file selected',
multiple: '{count} files selected',
},
},
BaseInputFileHeadless: {},
BaseInputNumber: {
/**
* The contrast of the input.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
contrast: 'default',
/**
* The radius of the input.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the input.
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
},
BaseInputHelpText: {
/**
* The color of the text.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast' | 'light' | 'dark' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'none'}
*/
color: 'default',
},
BaseListbox: {
/**
* The contrast of the input.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
contrast: 'default',
/**
* The placement of the dropdown via floating-ui
*
* @type {'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'}
*/
placement: 'bottom-start',
/**
* The radius of the input.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the input.
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
},
BaseListboxItem: {},
BaseRadio: {
/**
* Default color for the BaseRadio component
*
* @type {'default' | 'light' | 'muted' | 'dark' | 'black' | 'primary' | 'info' | 'success' | 'warning' | 'danger'}
*/
color: 'default',
},
BaseRadioHeadless: {},
BaseSelect: {
/**
* The contrast of the select.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
contrast: 'default',
/**
* The radius of the select.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the select.
*
* @type {'sm' | 'md' | 'lg' | 'xl'}
*/
size: 'md',
},
BaseSwitchBall: {
/**
* The color of the switch.
*
* @type {'primary' | 'info' | 'success' | 'warning' | 'danger' | 'dark' | 'black'}
*/
color: 'primary',
},
BaseSwitchThin: {
/**
* The color of the switch.
*
* @type {'primary' | 'info' | 'success' | 'warning' | 'danger' | 'dark' | 'black'}
*/
color: 'primary',
},
BaseTextarea: {
/**
* The contrast of the textarea.
*
* @type {'default' | 'default-contrast' | 'muted' | 'muted-contrast'}
*/
contrast: 'default',
/**
* The radius of the textarea.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
/**
* The size of the textarea.
*
* @type {'sm' | 'md' | 'lg'}
*/
size: 'md',
},
BaseTreeSelectItem: {
/**
* The radius of the tree select item.
*
* @type {'none' | 'sm' | 'md' | 'lg' | 'full'}
*/
rounded: 'sm',
},
},
},
})