@nuxt/ui 2.10.0 → 2.11.0
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 +11 -0
- package/dist/module.d.mts +191 -82
- package/dist/module.d.ts +191 -82
- package/dist/module.json +1 -1
- package/dist/module.mjs +12 -5
- package/dist/runtime/components/elements/Alert.vue +7 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +6 -5
- package/dist/runtime/components/elements/Avatar.vue.d.ts +5 -4
- package/dist/runtime/components/elements/AvatarGroup.d.ts +4 -3
- package/dist/runtime/components/elements/Badge.vue +4 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +6 -6
- package/dist/runtime/components/elements/ButtonGroup.d.ts +5 -4
- package/dist/runtime/components/elements/ButtonGroup.mjs +19 -32
- package/dist/runtime/components/elements/Chip.vue +85 -0
- package/dist/runtime/components/elements/Chip.vue.d.ts +90 -0
- package/dist/runtime/components/elements/Dropdown.vue +31 -17
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +6 -0
- package/dist/runtime/components/elements/Icon.vue +16 -2
- package/dist/runtime/components/elements/Icon.vue.d.ts +14 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +5 -4
- package/dist/runtime/components/elements/Link.vue +2 -5
- package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
- package/dist/runtime/components/elements/MeterGroup.d.ts +2 -2
- package/dist/runtime/components/elements/Progress.vue +1 -1
- package/dist/runtime/components/forms/Checkbox.vue +2 -4
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +5 -5
- package/dist/runtime/components/forms/FormGroup.vue +7 -3
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +15 -5
- package/dist/runtime/components/forms/Input.vue +36 -5
- package/dist/runtime/components/forms/Input.vue.d.ts +32 -9
- package/dist/runtime/components/forms/Radio.vue +12 -6
- package/dist/runtime/components/forms/Radio.vue.d.ts +5 -4
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Range.vue.d.ts +6 -5
- package/dist/runtime/components/forms/Select.vue +5 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +9 -8
- package/dist/runtime/components/forms/SelectMenu.vue +24 -7
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +18 -9
- package/dist/runtime/components/forms/Textarea.vue +33 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +31 -8
- package/dist/runtime/components/forms/Toggle.vue +19 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +15 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +3 -3
- package/dist/runtime/components/navigation/Breadcrumb.vue +78 -0
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +50 -0
- package/dist/runtime/components/navigation/CommandPalette.vue +8 -4
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +4 -4
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue +27 -28
- package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -3
- package/dist/runtime/components/overlays/Notifications.vue +16 -14
- package/dist/runtime/components/overlays/Popover.vue +9 -0
- package/dist/runtime/components/overlays/Popover.vue.d.ts +13 -2
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.mjs +8 -4
- package/dist/runtime/composables/useButtonGroup.d.ts +20 -0
- package/dist/runtime/composables/useButtonGroup.mjs +52 -0
- package/dist/runtime/composables/useFormGroup.d.ts +4 -2
- package/dist/runtime/composables/useFormGroup.mjs +3 -2
- package/dist/runtime/composables/useShortcuts.d.ts +2 -2
- package/dist/runtime/types/alert.d.ts +7 -0
- package/dist/runtime/types/avatar.d.ts +3 -1
- package/dist/runtime/types/badge.d.ts +5 -4
- package/dist/runtime/types/breadcrumb.d.ts +7 -0
- package/dist/runtime/types/button.d.ts +5 -4
- package/dist/runtime/types/chip.d.ts +11 -0
- package/dist/runtime/types/dropdown.d.ts +2 -2
- package/dist/runtime/types/form-group.d.ts +5 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/index.d.ts +10 -0
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/kbd.d.ts +5 -0
- package/dist/runtime/types/range.d.ts +5 -0
- package/dist/runtime/types/select.d.ts +8 -0
- package/dist/runtime/types/textarea.d.ts +8 -0
- package/dist/runtime/types/toggle.d.ts +5 -0
- package/dist/runtime/types/utils.d.ts +22 -5
- package/dist/runtime/ui.config/_popperArrow.d.ts +9 -0
- package/dist/runtime/ui.config/_popperArrow.mjs +8 -0
- package/dist/runtime/ui.config/data/table.d.ts +60 -0
- package/dist/runtime/ui.config/data/table.mjs +59 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +21 -0
- package/dist/runtime/ui.config/elements/accordion.mjs +20 -0
- package/dist/runtime/ui.config/elements/alert.d.ts +40 -0
- package/dist/runtime/ui.config/elements/alert.mjs +39 -0
- package/dist/runtime/ui.config/elements/avatar.d.ts +60 -0
- package/dist/runtime/ui.config/elements/avatar.mjs +59 -0
- package/dist/runtime/ui.config/elements/avatarGroup.d.ts +6 -0
- package/dist/runtime/ui.config/elements/avatarGroup.mjs +5 -0
- package/dist/runtime/ui.config/elements/badge.d.ts +34 -0
- package/dist/runtime/ui.config/elements/badge.mjs +33 -0
- package/dist/runtime/ui.config/elements/button.d.ts +77 -0
- package/dist/runtime/ui.config/elements/button.mjs +76 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +9 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +8 -0
- package/dist/runtime/ui.config/elements/chip.d.ts +35 -0
- package/dist/runtime/ui.config/elements/chip.mjs +34 -0
- package/dist/runtime/ui.config/elements/dropdown.d.ts +53 -0
- package/dist/runtime/ui.config/elements/dropdown.mjs +51 -0
- package/dist/runtime/ui.config/elements/kbd.d.ts +17 -0
- package/dist/runtime/ui.config/elements/kbd.mjs +16 -0
- package/dist/runtime/ui.config/elements/meter.d.ts +77 -0
- package/dist/runtime/ui.config/elements/meter.mjs +76 -0
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +12 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +11 -0
- package/dist/runtime/ui.config/elements/progress.d.ts +75 -0
- package/dist/runtime/ui.config/elements/progress.mjs +74 -0
- package/dist/runtime/ui.config/forms/checkbox.d.ts +16 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +15 -0
- package/dist/runtime/ui.config/forms/formGroup.d.ts +25 -0
- package/dist/runtime/ui.config/forms/formGroup.mjs +25 -0
- package/dist/runtime/ui.config/forms/input.d.ts +105 -0
- package/dist/runtime/ui.config/forms/input.mjs +104 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +15 -0
- package/dist/runtime/ui.config/forms/radio.mjs +14 -0
- package/dist/runtime/ui.config/forms/radioGroup.d.ts +8 -0
- package/dist/runtime/ui.config/forms/radioGroup.mjs +7 -0
- package/dist/runtime/ui.config/forms/range.d.ts +64 -0
- package/dist/runtime/ui.config/forms/range.mjs +63 -0
- package/dist/runtime/ui.config/forms/select.d.ts +106 -0
- package/dist/runtime/ui.config/forms/select.mjs +12 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +63 -0
- package/dist/runtime/ui.config/forms/selectMenu.mjs +61 -0
- package/dist/runtime/ui.config/forms/textarea.d.ts +104 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +9 -0
- package/dist/runtime/ui.config/forms/toggle.d.ts +61 -0
- package/dist/runtime/ui.config/forms/toggle.mjs +60 -0
- package/dist/runtime/ui.config/index.d.ts +40 -0
- package/dist/runtime/ui.config/index.mjs +40 -0
- package/dist/runtime/ui.config/layout/card.d.ts +24 -0
- package/dist/runtime/ui.config/layout/card.mjs +23 -0
- package/dist/runtime/ui.config/layout/container.d.ts +6 -0
- package/dist/runtime/ui.config/layout/container.mjs +5 -0
- package/dist/runtime/ui.config/layout/divider.d.ts +30 -0
- package/dist/runtime/ui.config/layout/divider.mjs +29 -0
- package/dist/runtime/ui.config/layout/skeleton.d.ts +6 -0
- package/dist/runtime/ui.config/layout/skeleton.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +20 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +19 -0
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +68 -0
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +67 -0
- package/dist/runtime/ui.config/navigation/pagination.d.ts +35 -0
- package/dist/runtime/ui.config/navigation/pagination.mjs +34 -0
- package/dist/runtime/ui.config/navigation/tabs.d.ts +34 -0
- package/dist/runtime/ui.config/navigation/tabs.mjs +33 -0
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +28 -0
- package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +27 -0
- package/dist/runtime/ui.config/overlays/contextMenu.d.ts +31 -0
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +25 -0
- package/dist/runtime/ui.config/overlays/modal.d.ts +35 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +36 -0
- package/dist/runtime/ui.config/overlays/notification.d.ts +49 -0
- package/dist/runtime/ui.config/overlays/notification.mjs +49 -0
- package/dist/runtime/ui.config/overlays/notifications.d.ts +7 -0
- package/dist/runtime/ui.config/overlays/notifications.mjs +6 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +42 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +36 -0
- package/dist/runtime/ui.config/overlays/slideover.d.ts +27 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +28 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +32 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +26 -0
- package/dist/runtime/utils/index.d.ts +5 -0
- package/dist/runtime/utils/index.mjs +6 -2
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +32 -19
- package/dist/runtime/ui.config.d.ts +0 -1470
- package/dist/runtime/ui.config.mjs +0 -1273
package/dist/module.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
import { CollectionNames, IconsPluginOptions } from '@egoist/tailwindcss-icons';
|
|
2
3
|
|
|
3
|
-
declare const
|
|
4
|
+
declare const _default$E: {
|
|
4
5
|
wrapper: string;
|
|
5
6
|
base: string;
|
|
6
7
|
divide: string;
|
|
@@ -59,7 +60,8 @@ declare const table: {
|
|
|
59
60
|
};
|
|
60
61
|
};
|
|
61
62
|
};
|
|
62
|
-
|
|
63
|
+
|
|
64
|
+
declare const _default$D: {
|
|
63
65
|
wrapper: string;
|
|
64
66
|
background: string;
|
|
65
67
|
rounded: string;
|
|
@@ -118,12 +120,14 @@ declare const avatar: {
|
|
|
118
120
|
chipPosition: string;
|
|
119
121
|
};
|
|
120
122
|
};
|
|
121
|
-
|
|
123
|
+
|
|
124
|
+
declare const _default$C: {
|
|
122
125
|
wrapper: string;
|
|
123
126
|
ring: string;
|
|
124
127
|
margin: string;
|
|
125
128
|
};
|
|
126
|
-
|
|
129
|
+
|
|
130
|
+
declare const _default$B: {
|
|
127
131
|
base: string;
|
|
128
132
|
rounded: string;
|
|
129
133
|
font: string;
|
|
@@ -156,7 +160,8 @@ declare const badge: {
|
|
|
156
160
|
color: string;
|
|
157
161
|
};
|
|
158
162
|
};
|
|
159
|
-
|
|
163
|
+
|
|
164
|
+
declare const _default$A: {
|
|
160
165
|
base: string;
|
|
161
166
|
font: string;
|
|
162
167
|
rounded: string;
|
|
@@ -232,7 +237,8 @@ declare const button: {
|
|
|
232
237
|
loadingIcon: string;
|
|
233
238
|
};
|
|
234
239
|
};
|
|
235
|
-
|
|
240
|
+
|
|
241
|
+
declare const _default$z: {
|
|
236
242
|
wrapper: {
|
|
237
243
|
horizontal: string;
|
|
238
244
|
vertical: string;
|
|
@@ -240,7 +246,43 @@ declare const buttonGroup: {
|
|
|
240
246
|
rounded: string;
|
|
241
247
|
shadow: string;
|
|
242
248
|
};
|
|
243
|
-
|
|
249
|
+
|
|
250
|
+
declare const _default$y: {
|
|
251
|
+
wrapper: string;
|
|
252
|
+
base: string;
|
|
253
|
+
background: string;
|
|
254
|
+
position: {
|
|
255
|
+
'top-right': string;
|
|
256
|
+
'bottom-right': string;
|
|
257
|
+
'top-left': string;
|
|
258
|
+
'bottom-left': string;
|
|
259
|
+
};
|
|
260
|
+
translate: {
|
|
261
|
+
'top-right': string;
|
|
262
|
+
'bottom-right': string;
|
|
263
|
+
'top-left': string;
|
|
264
|
+
'bottom-left': string;
|
|
265
|
+
};
|
|
266
|
+
size: {
|
|
267
|
+
'3xs': string;
|
|
268
|
+
'2xs': string;
|
|
269
|
+
xs: string;
|
|
270
|
+
sm: string;
|
|
271
|
+
md: string;
|
|
272
|
+
lg: string;
|
|
273
|
+
xl: string;
|
|
274
|
+
'2xl': string;
|
|
275
|
+
'3xl': string;
|
|
276
|
+
};
|
|
277
|
+
default: {
|
|
278
|
+
size: string;
|
|
279
|
+
color: string;
|
|
280
|
+
position: string;
|
|
281
|
+
inset: boolean;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
declare const _default$x: {
|
|
244
286
|
wrapper: string;
|
|
245
287
|
container: string;
|
|
246
288
|
width: string;
|
|
@@ -292,7 +334,8 @@ declare const dropdown: {
|
|
|
292
334
|
placement: string;
|
|
293
335
|
};
|
|
294
336
|
};
|
|
295
|
-
|
|
337
|
+
|
|
338
|
+
declare const _default$w: {
|
|
296
339
|
wrapper: string;
|
|
297
340
|
item: {
|
|
298
341
|
base: string;
|
|
@@ -312,13 +355,16 @@ declare const accordion: {
|
|
|
312
355
|
variant: string;
|
|
313
356
|
};
|
|
314
357
|
};
|
|
315
|
-
|
|
358
|
+
|
|
359
|
+
declare const _default$v: {
|
|
316
360
|
wrapper: string;
|
|
317
361
|
title: string;
|
|
318
362
|
description: string;
|
|
363
|
+
actions: string;
|
|
319
364
|
shadow: string;
|
|
320
365
|
rounded: string;
|
|
321
366
|
padding: string;
|
|
367
|
+
gap: string;
|
|
322
368
|
icon: {
|
|
323
369
|
base: string;
|
|
324
370
|
};
|
|
@@ -349,7 +395,8 @@ declare const alert: {
|
|
|
349
395
|
};
|
|
350
396
|
};
|
|
351
397
|
};
|
|
352
|
-
|
|
398
|
+
|
|
399
|
+
declare const _default$u: {
|
|
353
400
|
base: string;
|
|
354
401
|
padding: string;
|
|
355
402
|
size: {
|
|
@@ -365,7 +412,8 @@ declare const kbd: {
|
|
|
365
412
|
size: string;
|
|
366
413
|
};
|
|
367
414
|
};
|
|
368
|
-
|
|
415
|
+
|
|
416
|
+
declare const _default$t: {
|
|
369
417
|
wrapper: string;
|
|
370
418
|
indicator: {
|
|
371
419
|
container: {
|
|
@@ -439,7 +487,8 @@ declare const progress: {
|
|
|
439
487
|
animation: string;
|
|
440
488
|
};
|
|
441
489
|
};
|
|
442
|
-
|
|
490
|
+
|
|
491
|
+
declare const _default$s: {
|
|
443
492
|
wrapper: string;
|
|
444
493
|
indicator: {
|
|
445
494
|
container: string;
|
|
@@ -515,7 +564,8 @@ declare const meter: {
|
|
|
515
564
|
color: string;
|
|
516
565
|
};
|
|
517
566
|
};
|
|
518
|
-
|
|
567
|
+
|
|
568
|
+
declare const _default$r: {
|
|
519
569
|
wrapper: string;
|
|
520
570
|
base: string;
|
|
521
571
|
background: string;
|
|
@@ -526,7 +576,8 @@ declare const meterGroup: {
|
|
|
526
576
|
size: string;
|
|
527
577
|
};
|
|
528
578
|
};
|
|
529
|
-
|
|
579
|
+
|
|
580
|
+
declare const _default$q: {
|
|
530
581
|
wrapper: string;
|
|
531
582
|
base: string;
|
|
532
583
|
rounded: string;
|
|
@@ -630,7 +681,8 @@ declare const input: {
|
|
|
630
681
|
loadingIcon: string;
|
|
631
682
|
};
|
|
632
683
|
};
|
|
633
|
-
|
|
684
|
+
|
|
685
|
+
declare const _default$p: {
|
|
634
686
|
wrapper: string;
|
|
635
687
|
label: {
|
|
636
688
|
wrapper: string;
|
|
@@ -654,7 +706,8 @@ declare const formGroup: {
|
|
|
654
706
|
size: string;
|
|
655
707
|
};
|
|
656
708
|
};
|
|
657
|
-
|
|
709
|
+
|
|
710
|
+
declare const _default$o: {
|
|
658
711
|
default: {
|
|
659
712
|
size: string;
|
|
660
713
|
color: string;
|
|
@@ -757,7 +810,8 @@ declare const textarea: {
|
|
|
757
810
|
};
|
|
758
811
|
};
|
|
759
812
|
};
|
|
760
|
-
|
|
813
|
+
|
|
814
|
+
declare const _default$n: {
|
|
761
815
|
placeholder: string;
|
|
762
816
|
default: {
|
|
763
817
|
size: string;
|
|
@@ -862,7 +916,8 @@ declare const select: {
|
|
|
862
916
|
};
|
|
863
917
|
};
|
|
864
918
|
};
|
|
865
|
-
|
|
919
|
+
|
|
920
|
+
declare const _default$m: {
|
|
866
921
|
container: string;
|
|
867
922
|
width: string;
|
|
868
923
|
height: string;
|
|
@@ -913,6 +968,7 @@ declare const selectMenu: {
|
|
|
913
968
|
};
|
|
914
969
|
default: {
|
|
915
970
|
selectedIcon: string;
|
|
971
|
+
clearOnClose: boolean;
|
|
916
972
|
};
|
|
917
973
|
arrow: {
|
|
918
974
|
ring: string;
|
|
@@ -923,14 +979,16 @@ declare const selectMenu: {
|
|
|
923
979
|
placement: string;
|
|
924
980
|
};
|
|
925
981
|
};
|
|
926
|
-
|
|
982
|
+
|
|
983
|
+
declare const _default$l: {
|
|
927
984
|
wrapper: string;
|
|
928
985
|
legend: string;
|
|
929
986
|
default: {
|
|
930
987
|
color: string;
|
|
931
988
|
};
|
|
932
989
|
};
|
|
933
|
-
|
|
990
|
+
|
|
991
|
+
declare const _default$k: {
|
|
934
992
|
wrapper: string;
|
|
935
993
|
base: string;
|
|
936
994
|
color: string;
|
|
@@ -944,7 +1002,8 @@ declare const radio: {
|
|
|
944
1002
|
color: string;
|
|
945
1003
|
};
|
|
946
1004
|
};
|
|
947
|
-
|
|
1005
|
+
|
|
1006
|
+
declare const _default$j: {
|
|
948
1007
|
wrapper: string;
|
|
949
1008
|
base: string;
|
|
950
1009
|
rounded: string;
|
|
@@ -959,21 +1018,57 @@ declare const checkbox: {
|
|
|
959
1018
|
color: string;
|
|
960
1019
|
};
|
|
961
1020
|
};
|
|
962
|
-
|
|
1021
|
+
|
|
1022
|
+
declare const _default$i: {
|
|
963
1023
|
base: string;
|
|
964
1024
|
rounded: string;
|
|
965
1025
|
ring: string;
|
|
966
1026
|
active: string;
|
|
967
1027
|
inactive: string;
|
|
1028
|
+
size: {
|
|
1029
|
+
'2xs': string;
|
|
1030
|
+
xs: string;
|
|
1031
|
+
sm: string;
|
|
1032
|
+
md: string;
|
|
1033
|
+
lg: string;
|
|
1034
|
+
xl: string;
|
|
1035
|
+
'2xl': string;
|
|
1036
|
+
};
|
|
968
1037
|
container: {
|
|
969
1038
|
base: string;
|
|
970
|
-
active:
|
|
1039
|
+
active: {
|
|
1040
|
+
'2xs': string;
|
|
1041
|
+
xs: string;
|
|
1042
|
+
sm: string;
|
|
1043
|
+
md: string;
|
|
1044
|
+
lg: string;
|
|
1045
|
+
xl: string;
|
|
1046
|
+
'2xl': string;
|
|
1047
|
+
};
|
|
971
1048
|
inactive: string;
|
|
1049
|
+
size: {
|
|
1050
|
+
'2xs': string;
|
|
1051
|
+
xs: string;
|
|
1052
|
+
sm: string;
|
|
1053
|
+
md: string;
|
|
1054
|
+
lg: string;
|
|
1055
|
+
xl: string;
|
|
1056
|
+
'2xl': string;
|
|
1057
|
+
};
|
|
972
1058
|
};
|
|
973
1059
|
icon: {
|
|
974
1060
|
base: string;
|
|
975
1061
|
active: string;
|
|
976
1062
|
inactive: string;
|
|
1063
|
+
size: {
|
|
1064
|
+
'2xs': string;
|
|
1065
|
+
xs: string;
|
|
1066
|
+
sm: string;
|
|
1067
|
+
md: string;
|
|
1068
|
+
lg: string;
|
|
1069
|
+
xl: string;
|
|
1070
|
+
'2xl': string;
|
|
1071
|
+
};
|
|
977
1072
|
on: string;
|
|
978
1073
|
off: string;
|
|
979
1074
|
};
|
|
@@ -981,9 +1076,11 @@ declare const toggle: {
|
|
|
981
1076
|
onIcon: any;
|
|
982
1077
|
offIcon: any;
|
|
983
1078
|
color: string;
|
|
1079
|
+
size: string;
|
|
984
1080
|
};
|
|
985
1081
|
};
|
|
986
|
-
|
|
1082
|
+
|
|
1083
|
+
declare const _default$h: {
|
|
987
1084
|
wrapper: string;
|
|
988
1085
|
base: string;
|
|
989
1086
|
rounded: string;
|
|
@@ -1046,7 +1143,8 @@ declare const range: {
|
|
|
1046
1143
|
color: string;
|
|
1047
1144
|
};
|
|
1048
1145
|
};
|
|
1049
|
-
|
|
1146
|
+
|
|
1147
|
+
declare const _default$g: {
|
|
1050
1148
|
base: string;
|
|
1051
1149
|
background: string;
|
|
1052
1150
|
divide: string;
|
|
@@ -1069,17 +1167,20 @@ declare const card: {
|
|
|
1069
1167
|
padding: string;
|
|
1070
1168
|
};
|
|
1071
1169
|
};
|
|
1072
|
-
|
|
1170
|
+
|
|
1171
|
+
declare const _default$f: {
|
|
1073
1172
|
base: string;
|
|
1074
1173
|
padding: string;
|
|
1075
1174
|
constrained: string;
|
|
1076
1175
|
};
|
|
1077
|
-
|
|
1176
|
+
|
|
1177
|
+
declare const _default$e: {
|
|
1078
1178
|
base: string;
|
|
1079
1179
|
background: string;
|
|
1080
1180
|
rounded: string;
|
|
1081
1181
|
};
|
|
1082
|
-
|
|
1182
|
+
|
|
1183
|
+
declare const _default$d: {
|
|
1083
1184
|
wrapper: {
|
|
1084
1185
|
base: string;
|
|
1085
1186
|
horizontal: string;
|
|
@@ -1108,7 +1209,8 @@ declare const divider: {
|
|
|
1108
1209
|
};
|
|
1109
1210
|
label: string;
|
|
1110
1211
|
};
|
|
1111
|
-
|
|
1212
|
+
|
|
1213
|
+
declare const _default$c: {
|
|
1112
1214
|
wrapper: string;
|
|
1113
1215
|
base: string;
|
|
1114
1216
|
ring: string;
|
|
@@ -1135,7 +1237,8 @@ declare const verticalNavigation: {
|
|
|
1135
1237
|
inactive: string;
|
|
1136
1238
|
};
|
|
1137
1239
|
};
|
|
1138
|
-
|
|
1240
|
+
|
|
1241
|
+
declare const _default$b: {
|
|
1139
1242
|
wrapper: string;
|
|
1140
1243
|
container: string;
|
|
1141
1244
|
input: {
|
|
@@ -1202,7 +1305,8 @@ declare const commandPalette: {
|
|
|
1202
1305
|
selectedIcon: string;
|
|
1203
1306
|
};
|
|
1204
1307
|
};
|
|
1205
|
-
|
|
1308
|
+
|
|
1309
|
+
declare const _default$a: {
|
|
1206
1310
|
wrapper: string;
|
|
1207
1311
|
base: string;
|
|
1208
1312
|
rounded: string;
|
|
@@ -1236,7 +1340,8 @@ declare const pagination: {
|
|
|
1236
1340
|
};
|
|
1237
1341
|
};
|
|
1238
1342
|
};
|
|
1239
|
-
|
|
1343
|
+
|
|
1344
|
+
declare const _default$9: {
|
|
1240
1345
|
wrapper: string;
|
|
1241
1346
|
container: string;
|
|
1242
1347
|
base: string;
|
|
@@ -1269,7 +1374,28 @@ declare const tabs: {
|
|
|
1269
1374
|
};
|
|
1270
1375
|
};
|
|
1271
1376
|
};
|
|
1272
|
-
|
|
1377
|
+
|
|
1378
|
+
declare const _default$8: {
|
|
1379
|
+
wrapper: string;
|
|
1380
|
+
ol: string;
|
|
1381
|
+
li: string;
|
|
1382
|
+
base: string;
|
|
1383
|
+
icon: {
|
|
1384
|
+
base: string;
|
|
1385
|
+
active: string;
|
|
1386
|
+
inactive: string;
|
|
1387
|
+
};
|
|
1388
|
+
divider: {
|
|
1389
|
+
base: string;
|
|
1390
|
+
};
|
|
1391
|
+
active: string;
|
|
1392
|
+
inactive: string;
|
|
1393
|
+
default: {
|
|
1394
|
+
divider: string;
|
|
1395
|
+
};
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
declare const _default$7: {
|
|
1273
1399
|
wrapper: string;
|
|
1274
1400
|
inner: string;
|
|
1275
1401
|
container: string;
|
|
@@ -1303,7 +1429,8 @@ declare const modal: {
|
|
|
1303
1429
|
leaveTo: string;
|
|
1304
1430
|
};
|
|
1305
1431
|
};
|
|
1306
|
-
|
|
1432
|
+
|
|
1433
|
+
declare const _default$6: {
|
|
1307
1434
|
wrapper: string;
|
|
1308
1435
|
overlay: {
|
|
1309
1436
|
base: string;
|
|
@@ -1329,7 +1456,8 @@ declare const slideover: {
|
|
|
1329
1456
|
leave: string;
|
|
1330
1457
|
};
|
|
1331
1458
|
};
|
|
1332
|
-
|
|
1459
|
+
|
|
1460
|
+
declare const _default$5: {
|
|
1333
1461
|
wrapper: string;
|
|
1334
1462
|
container: string;
|
|
1335
1463
|
width: string;
|
|
@@ -1360,7 +1488,8 @@ declare const tooltip: {
|
|
|
1360
1488
|
placement: string;
|
|
1361
1489
|
};
|
|
1362
1490
|
};
|
|
1363
|
-
|
|
1491
|
+
|
|
1492
|
+
declare const _default$4: {
|
|
1364
1493
|
wrapper: string;
|
|
1365
1494
|
container: string;
|
|
1366
1495
|
width: string;
|
|
@@ -1377,6 +1506,18 @@ declare const popover: {
|
|
|
1377
1506
|
leaveFromClass: string;
|
|
1378
1507
|
leaveToClass: string;
|
|
1379
1508
|
};
|
|
1509
|
+
overlay: {
|
|
1510
|
+
base: string;
|
|
1511
|
+
background: string;
|
|
1512
|
+
transition: {
|
|
1513
|
+
enterActiveClass: string;
|
|
1514
|
+
enterFromClass: string;
|
|
1515
|
+
enterToClass: string;
|
|
1516
|
+
leaveActiveClass: string;
|
|
1517
|
+
leaveFromClass: string;
|
|
1518
|
+
leaveToClass: string;
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1380
1521
|
popper: {
|
|
1381
1522
|
strategy: string;
|
|
1382
1523
|
};
|
|
@@ -1389,7 +1530,8 @@ declare const popover: {
|
|
|
1389
1530
|
placement: string;
|
|
1390
1531
|
};
|
|
1391
1532
|
};
|
|
1392
|
-
|
|
1533
|
+
|
|
1534
|
+
declare const _default$3: {
|
|
1393
1535
|
wrapper: string;
|
|
1394
1536
|
container: string;
|
|
1395
1537
|
width: string;
|
|
@@ -1419,15 +1561,18 @@ declare const contextMenu: {
|
|
|
1419
1561
|
placement: string;
|
|
1420
1562
|
};
|
|
1421
1563
|
};
|
|
1422
|
-
|
|
1564
|
+
|
|
1565
|
+
declare const _default$2: {
|
|
1423
1566
|
wrapper: string;
|
|
1424
1567
|
container: string;
|
|
1425
1568
|
title: string;
|
|
1426
1569
|
description: string;
|
|
1570
|
+
actions: string;
|
|
1427
1571
|
background: string;
|
|
1428
1572
|
shadow: string;
|
|
1429
1573
|
rounded: string;
|
|
1430
1574
|
padding: string;
|
|
1575
|
+
gap: string;
|
|
1431
1576
|
ring: string;
|
|
1432
1577
|
icon: {
|
|
1433
1578
|
base: string;
|
|
@@ -1452,6 +1597,7 @@ declare const notification: {
|
|
|
1452
1597
|
default: {
|
|
1453
1598
|
color: string;
|
|
1454
1599
|
icon: any;
|
|
1600
|
+
timeout: number;
|
|
1455
1601
|
closeButton: {
|
|
1456
1602
|
icon: string;
|
|
1457
1603
|
color: string;
|
|
@@ -1464,60 +1610,23 @@ declare const notification: {
|
|
|
1464
1610
|
};
|
|
1465
1611
|
};
|
|
1466
1612
|
};
|
|
1467
|
-
|
|
1613
|
+
|
|
1614
|
+
declare const _default$1: {
|
|
1468
1615
|
wrapper: string;
|
|
1469
1616
|
position: string;
|
|
1470
1617
|
width: string;
|
|
1471
1618
|
container: string;
|
|
1472
1619
|
};
|
|
1473
1620
|
|
|
1474
|
-
declare const config_accordion: typeof accordion;
|
|
1475
|
-
declare const config_alert: typeof alert;
|
|
1476
|
-
declare const config_avatar: typeof avatar;
|
|
1477
|
-
declare const config_avatarGroup: typeof avatarGroup;
|
|
1478
|
-
declare const config_badge: typeof badge;
|
|
1479
|
-
declare const config_button: typeof button;
|
|
1480
|
-
declare const config_buttonGroup: typeof buttonGroup;
|
|
1481
|
-
declare const config_card: typeof card;
|
|
1482
|
-
declare const config_checkbox: typeof checkbox;
|
|
1483
|
-
declare const config_commandPalette: typeof commandPalette;
|
|
1484
|
-
declare const config_container: typeof container;
|
|
1485
|
-
declare const config_contextMenu: typeof contextMenu;
|
|
1486
|
-
declare const config_divider: typeof divider;
|
|
1487
|
-
declare const config_dropdown: typeof dropdown;
|
|
1488
|
-
declare const config_formGroup: typeof formGroup;
|
|
1489
|
-
declare const config_input: typeof input;
|
|
1490
|
-
declare const config_kbd: typeof kbd;
|
|
1491
|
-
declare const config_meter: typeof meter;
|
|
1492
|
-
declare const config_meterGroup: typeof meterGroup;
|
|
1493
|
-
declare const config_modal: typeof modal;
|
|
1494
|
-
declare const config_notification: typeof notification;
|
|
1495
|
-
declare const config_notifications: typeof notifications;
|
|
1496
|
-
declare const config_pagination: typeof pagination;
|
|
1497
|
-
declare const config_popover: typeof popover;
|
|
1498
|
-
declare const config_progress: typeof progress;
|
|
1499
|
-
declare const config_radio: typeof radio;
|
|
1500
|
-
declare const config_radioGroup: typeof radioGroup;
|
|
1501
|
-
declare const config_range: typeof range;
|
|
1502
|
-
declare const config_select: typeof select;
|
|
1503
|
-
declare const config_selectMenu: typeof selectMenu;
|
|
1504
|
-
declare const config_skeleton: typeof skeleton;
|
|
1505
|
-
declare const config_slideover: typeof slideover;
|
|
1506
|
-
declare const config_table: typeof table;
|
|
1507
|
-
declare const config_tabs: typeof tabs;
|
|
1508
|
-
declare const config_textarea: typeof textarea;
|
|
1509
|
-
declare const config_toggle: typeof toggle;
|
|
1510
|
-
declare const config_tooltip: typeof tooltip;
|
|
1511
|
-
declare const config_verticalNavigation: typeof verticalNavigation;
|
|
1512
1621
|
declare namespace config {
|
|
1513
|
-
export {
|
|
1622
|
+
export { _default$w as accordion, _default$v as alert, _default$D as avatar, _default$C as avatarGroup, _default$B as badge, _default$8 as breadcrumb, _default$A as button, _default$z as buttonGroup, _default$g as card, _default$j as checkbox, _default$y as chip, _default$b as commandPalette, _default$f as container, _default$3 as contextMenu, _default$d as divider, _default$x as dropdown, _default$p as formGroup, _default$q as input, _default$u as kbd, _default$s as meter, _default$r as meterGroup, _default$7 as modal, _default$2 as notification, _default$1 as notifications, _default$a as pagination, _default$4 as popover, _default$t as progress, _default$k as radio, _default$l as radioGroup, _default$h as range, _default$n as select, _default$m as selectMenu, _default$e as skeleton, _default$6 as slideover, _default$E as table, _default$9 as tabs, _default$o as textarea, _default$i as toggle, _default$5 as tooltip, _default$c as verticalNavigation };
|
|
1514
1623
|
}
|
|
1515
1624
|
|
|
1516
|
-
type Strategy = 'merge' | 'override'
|
|
1625
|
+
type Strategy = 'merge' | 'override'
|
|
1517
1626
|
|
|
1518
1627
|
type DeepPartial<T> = Partial<{
|
|
1519
|
-
[P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
|
|
1520
|
-
}
|
|
1628
|
+
[P in keyof T]: DeepPartial<T[P]> | { [key: string]: string | object }
|
|
1629
|
+
}>
|
|
1521
1630
|
|
|
1522
1631
|
type UI = {
|
|
1523
1632
|
primary?: string;
|
|
@@ -1545,7 +1654,7 @@ interface ModuleOptions {
|
|
|
1545
1654
|
* @default false
|
|
1546
1655
|
*/
|
|
1547
1656
|
global?: boolean;
|
|
1548
|
-
icons:
|
|
1657
|
+
icons: CollectionNames[] | 'all' | IconsPluginOptions;
|
|
1549
1658
|
safelistColors?: string[];
|
|
1550
1659
|
}
|
|
1551
1660
|
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import defaultColors from 'tailwindcss/colors.js';
|
|
|
3
3
|
import { defaultExtractor as defaultExtractor$1 } from 'tailwindcss/lib/lib/defaultExtractor.js';
|
|
4
4
|
import { iconsPlugin, getIconCollections } from '@egoist/tailwindcss-icons';
|
|
5
5
|
import { kebabCase, upperFirst, camelCase } from 'scule';
|
|
6
|
-
import { dirname } from 'pathe';
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
@@ -15,7 +14,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
|
15
14
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
16
15
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
17
16
|
const name = "@nuxt/ui";
|
|
18
|
-
const version = "2.
|
|
17
|
+
const version = "2.11.0";
|
|
19
18
|
|
|
20
19
|
function omit(object, keysToOmit) {
|
|
21
20
|
const result = { ...object };
|
|
@@ -221,6 +220,12 @@ const safelistByComponent = {
|
|
|
221
220
|
variants: ["dark"]
|
|
222
221
|
}, {
|
|
223
222
|
pattern: new RegExp(`text-(${colorsAsRegex2})-500`)
|
|
223
|
+
}],
|
|
224
|
+
chip: (colorsAsRegex2) => [{
|
|
225
|
+
pattern: new RegExp(`bg-(${colorsAsRegex2})-400`),
|
|
226
|
+
variants: ["dark"]
|
|
227
|
+
}, {
|
|
228
|
+
pattern: new RegExp(`bg-(${colorsAsRegex2})-500`)
|
|
224
229
|
}]
|
|
225
230
|
};
|
|
226
231
|
const safelistComponentAliasesMap = {
|
|
@@ -290,7 +295,7 @@ function createTemplates(nuxt = useNuxt()) {
|
|
|
290
295
|
getContents: () => `declare module '#ui-colors' { const defaultExport: ${JSON.stringify(nuxt.options.appConfig.ui.colors)}; export default defaultExport; }`,
|
|
291
296
|
write: true
|
|
292
297
|
});
|
|
293
|
-
nuxt.options.alias["#ui-colors"] =
|
|
298
|
+
nuxt.options.alias["#ui-colors"] = template.dst;
|
|
294
299
|
nuxt.hook("prepare:types", (opts) => {
|
|
295
300
|
opts.references.push({ path: typesTemplate.dst });
|
|
296
301
|
});
|
|
@@ -369,9 +374,10 @@ const module = defineNuxtModule({
|
|
|
369
374
|
tailwindConfig.safelist = tailwindConfig.safelist || [];
|
|
370
375
|
tailwindConfig.safelist.push(...generateSafelist(options.safelistColors, colors));
|
|
371
376
|
tailwindConfig.plugins = tailwindConfig.plugins || [];
|
|
372
|
-
tailwindConfig.plugins.push(iconsPlugin({ collections: getIconCollections(options.icons) }));
|
|
377
|
+
tailwindConfig.plugins.push(iconsPlugin(Array.isArray(options.icons) || options.icons === "all" ? { collections: getIconCollections(options.icons) } : typeof options.icons === "object" ? options.icons : {}));
|
|
373
378
|
});
|
|
374
379
|
createTemplates(nuxt);
|
|
380
|
+
await installModule("nuxt-icon");
|
|
375
381
|
await installModule("@nuxtjs/color-mode", { classSuffix: "" });
|
|
376
382
|
await installModule("@nuxtjs/tailwindcss", {
|
|
377
383
|
exposeConfig: true,
|
|
@@ -387,7 +393,7 @@ const module = defineNuxtModule({
|
|
|
387
393
|
content: {
|
|
388
394
|
files: [
|
|
389
395
|
resolve(runtimeDir, "components/**/*.{vue,mjs,ts}"),
|
|
390
|
-
resolve(runtimeDir, "
|
|
396
|
+
resolve(runtimeDir, "ui.config/**/*.{mjs,js,ts}")
|
|
391
397
|
],
|
|
392
398
|
transform: {
|
|
393
399
|
vue: (content) => {
|
|
@@ -398,6 +404,7 @@ const module = defineNuxtModule({
|
|
|
398
404
|
vue: (content) => {
|
|
399
405
|
return [
|
|
400
406
|
...defaultExtractor(content),
|
|
407
|
+
// @ts-ignore
|
|
401
408
|
...customSafelistExtractor(options.prefix, content, nuxt.options.appConfig.ui.colors, options.safelistColors)
|
|
402
409
|
];
|
|
403
410
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="alertClass" v-bind="attrs">
|
|
3
|
-
<div class="flex
|
|
3
|
+
<div class="flex" :class="[ui.gap, { 'items-start': (description || $slots.description), 'items-center': !description && !$slots.description }]">
|
|
4
4
|
<UIcon v-if="icon" :name="icon" :class="ui.icon.base" />
|
|
5
5
|
<UAvatar v-if="avatar" v-bind="{ size: ui.avatar.size, ...avatar }" :class="ui.avatar.base" />
|
|
6
6
|
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
</slot>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
<div v-if="(description || $slots.description) && actions.length" class="
|
|
19
|
+
<div v-if="(description || $slots.description) && actions.length" :class="ui.actions">
|
|
20
20
|
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="action.click" />
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
|
-
<div
|
|
24
|
-
<
|
|
23
|
+
<div v-if="closeButton || (!description && !$slots.description && actions.length)" :class="twMerge(ui.actions, 'mt-0')">
|
|
24
|
+
<template v-if="!description && !$slots.description && actions.length">
|
|
25
25
|
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="action.click" />
|
|
26
|
-
</
|
|
26
|
+
</template>
|
|
27
27
|
|
|
28
28
|
<UButton v-if="closeButton" aria-label="Close" v-bind="{ ...ui.default.closeButton, ...closeButton }" @click.stop="$emit('close')" />
|
|
29
29
|
</div>
|
|
@@ -117,7 +117,8 @@ export default defineComponent({
|
|
|
117
117
|
// eslint-disable-next-line vue/no-dupe-keys
|
|
118
118
|
ui,
|
|
119
119
|
attrs,
|
|
120
|
-
alertClass
|
|
120
|
+
alertClass,
|
|
121
|
+
twMerge
|
|
121
122
|
};
|
|
122
123
|
}
|
|
123
124
|
});
|