@nuxt/ui 2.18.4 → 2.18.6
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 +1 -1
- package/dist/module.d.mts +1 -6
- package/dist/module.d.ts +1 -6
- package/dist/module.json +2 -2
- package/dist/module.mjs +16 -8
- package/dist/runtime/components/data/Table.vue +8 -7
- package/dist/runtime/components/data/Table.vue.d.ts +2016 -12
- package/dist/runtime/components/elements/Accordion.vue.d.ts +1124 -10
- package/dist/runtime/components/elements/Alert.vue.d.ts +1449 -11
- package/dist/runtime/components/elements/Avatar.vue.d.ts +118 -10
- package/dist/runtime/components/elements/AvatarGroup.d.ts +12 -6
- package/dist/runtime/components/elements/Badge.vue.d.ts +45 -9
- package/dist/runtime/components/elements/Button.vue.d.ts +367 -14
- package/dist/runtime/components/elements/ButtonGroup.d.ts +107 -6
- package/dist/runtime/components/elements/Carousel.vue.d.ts +970 -10
- package/dist/runtime/components/elements/Chip.vue.d.ts +46 -9
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +784 -13
- package/dist/runtime/components/elements/Icon.vue.d.ts +4 -4
- package/dist/runtime/components/elements/Kbd.vue.d.ts +28 -9
- package/dist/runtime/components/elements/Link.vue +1 -0
- package/dist/runtime/components/elements/Link.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Meter.vue.d.ts +136 -11
- package/dist/runtime/components/elements/MeterGroup.d.ts +60 -6
- package/dist/runtime/components/elements/Progress.vue.d.ts +89 -12
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +33 -12
- package/dist/runtime/components/forms/Form.vue +4 -3
- package/dist/runtime/components/forms/Form.vue.d.ts +13 -6
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +39 -11
- package/dist/runtime/components/forms/Input.vue +1 -2
- package/dist/runtime/components/forms/Input.vue.d.ts +176 -14
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +957 -20
- package/dist/runtime/components/forms/Radio.vue.d.ts +32 -12
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +245 -14
- package/dist/runtime/components/forms/Range.vue.d.ts +79 -13
- package/dist/runtime/components/forms/Select.vue.d.ts +171 -12
- package/dist/runtime/components/forms/SelectMenu.vue +1 -1
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +1163 -19
- package/dist/runtime/components/forms/Textarea.vue +3 -0
- package/dist/runtime/components/forms/Textarea.vue.d.ts +129 -14
- package/dist/runtime/components/forms/Toggle.vue.d.ts +211 -12
- package/dist/runtime/components/layout/Card.vue.d.ts +35 -9
- package/dist/runtime/components/layout/Container.vue.d.ts +17 -9
- package/dist/runtime/components/layout/Divider.vue.d.ts +528 -11
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +17 -9
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +302 -9
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1971 -13
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue.d.ts +625 -5
- package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +898 -9
- package/dist/runtime/components/navigation/Pagination.vue +4 -0
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +981 -11
- package/dist/runtime/components/navigation/Tabs.vue +4 -0
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +274 -14
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +1666 -9
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +45 -12
- package/dist/runtime/components/overlays/Modal.vue +2 -2
- package/dist/runtime/components/overlays/Modal.vue.d.ts +392 -13
- package/dist/runtime/components/overlays/Notification.vue.d.ts +1459 -12
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +1746 -10
- package/dist/runtime/components/overlays/Popover.vue.d.ts +165 -14
- package/dist/runtime/components/overlays/Slideover.vue +3 -3
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +391 -13
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +168 -12
- package/dist/runtime/composables/useFormGroup.d.ts +1 -1
- package/dist/runtime/composables/useFormGroup.js +4 -2
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/usePopper.d.ts +262 -1
- package/dist/runtime/composables/useShortcuts.d.ts +4 -4
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/composables/useUI.d.ts +2 -2
- package/dist/runtime/composables/useUI.js +1 -1
- package/dist/runtime/plugins/colors.js +3 -3
- package/dist/runtime/types/command-palette.d.ts +2 -2
- package/dist/runtime/ui.config/elements/button.js +9 -9
- package/dist/runtime/ui.config/elements/carousel.js +1 -1
- package/dist/runtime/ui.config/navigation/tabs.js +1 -1
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +5 -1
- package/package.json +27 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, ComputedRef } from 'vue';
|
|
2
|
-
import type { SelectSize, SelectColor, SelectVariant, Strategy } from '../../types/index.js';
|
|
2
|
+
import type { SelectSize, SelectColor, SelectVariant, Strategy, DeepPartial } from '../../types/index.js';
|
|
3
3
|
declare const config: {
|
|
4
4
|
form: string;
|
|
5
5
|
placeholder: string;
|
|
@@ -110,7 +110,7 @@ declare const config: {
|
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
declare const _default: import("vue").DefineComponent<{
|
|
113
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
114
114
|
modelValue: {
|
|
115
115
|
type: (StringConstructor | NumberConstructor | ObjectConstructor)[];
|
|
116
116
|
default: string;
|
|
@@ -203,12 +203,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
203
|
default: () => "";
|
|
204
204
|
};
|
|
205
205
|
ui: {
|
|
206
|
-
type: PropType<
|
|
206
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
207
207
|
strategy?: Strategy;
|
|
208
208
|
}>;
|
|
209
209
|
default: () => {};
|
|
210
210
|
};
|
|
211
|
-
}
|
|
211
|
+
}>, {
|
|
212
212
|
ui: ComputedRef<{
|
|
213
213
|
form: string;
|
|
214
214
|
placeholder: string;
|
|
@@ -342,7 +342,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
342
342
|
trailingWrapperIconClass: ComputedRef<string>;
|
|
343
343
|
onInput: (event: Event) => void;
|
|
344
344
|
onChange: (event: Event) => void;
|
|
345
|
-
},
|
|
345
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
346
346
|
modelValue: {
|
|
347
347
|
type: (StringConstructor | NumberConstructor | ObjectConstructor)[];
|
|
348
348
|
default: string;
|
|
@@ -435,24 +435,137 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
435
435
|
default: () => "";
|
|
436
436
|
};
|
|
437
437
|
ui: {
|
|
438
|
-
type: PropType<
|
|
438
|
+
type: PropType<DeepPartial<typeof config> & {
|
|
439
439
|
strategy?: Strategy;
|
|
440
440
|
}>;
|
|
441
441
|
default: () => {};
|
|
442
442
|
};
|
|
443
|
-
}>> & {
|
|
443
|
+
}>> & Readonly<{
|
|
444
444
|
onChange?: (...args: any[]) => any;
|
|
445
445
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
446
|
-
}
|
|
446
|
+
}>, {
|
|
447
447
|
name: string;
|
|
448
|
-
size: SelectSize;
|
|
449
448
|
required: boolean;
|
|
449
|
+
size: SelectSize;
|
|
450
450
|
class: any;
|
|
451
|
+
disabled: boolean;
|
|
451
452
|
leading: boolean;
|
|
452
453
|
color: SelectColor;
|
|
453
454
|
variant: SelectVariant;
|
|
454
|
-
|
|
455
|
-
|
|
455
|
+
ui: {
|
|
456
|
+
form?: string;
|
|
457
|
+
placeholder?: string;
|
|
458
|
+
default?: DeepPartial<{
|
|
459
|
+
size: string;
|
|
460
|
+
color: string;
|
|
461
|
+
variant: string;
|
|
462
|
+
loadingIcon: string;
|
|
463
|
+
trailingIcon: string;
|
|
464
|
+
}, any>;
|
|
465
|
+
wrapper?: string;
|
|
466
|
+
base?: string;
|
|
467
|
+
rounded?: string;
|
|
468
|
+
file?: DeepPartial<{
|
|
469
|
+
base: string;
|
|
470
|
+
}, any>;
|
|
471
|
+
size?: DeepPartial<{
|
|
472
|
+
'2xs': string;
|
|
473
|
+
xs: string;
|
|
474
|
+
sm: string;
|
|
475
|
+
md: string;
|
|
476
|
+
lg: string;
|
|
477
|
+
xl: string;
|
|
478
|
+
}, any>;
|
|
479
|
+
gap?: DeepPartial<{
|
|
480
|
+
'2xs': string;
|
|
481
|
+
xs: string;
|
|
482
|
+
sm: string;
|
|
483
|
+
md: string;
|
|
484
|
+
lg: string;
|
|
485
|
+
xl: string;
|
|
486
|
+
}, any>;
|
|
487
|
+
padding?: DeepPartial<{
|
|
488
|
+
'2xs': string;
|
|
489
|
+
xs: string;
|
|
490
|
+
sm: string;
|
|
491
|
+
md: string;
|
|
492
|
+
lg: string;
|
|
493
|
+
xl: string;
|
|
494
|
+
}, any>;
|
|
495
|
+
leading?: DeepPartial<{
|
|
496
|
+
padding: {
|
|
497
|
+
'2xs': string;
|
|
498
|
+
xs: string;
|
|
499
|
+
sm: string;
|
|
500
|
+
md: string;
|
|
501
|
+
lg: string;
|
|
502
|
+
xl: string;
|
|
503
|
+
};
|
|
504
|
+
}, any>;
|
|
505
|
+
trailing?: DeepPartial<{
|
|
506
|
+
padding: {
|
|
507
|
+
'2xs': string;
|
|
508
|
+
xs: string;
|
|
509
|
+
sm: string;
|
|
510
|
+
md: string;
|
|
511
|
+
lg: string;
|
|
512
|
+
xl: string;
|
|
513
|
+
};
|
|
514
|
+
}, any>;
|
|
515
|
+
color?: DeepPartial<{
|
|
516
|
+
white: {
|
|
517
|
+
outline: string;
|
|
518
|
+
};
|
|
519
|
+
gray: {
|
|
520
|
+
outline: string;
|
|
521
|
+
};
|
|
522
|
+
}, any>;
|
|
523
|
+
variant?: DeepPartial<{
|
|
524
|
+
outline: string;
|
|
525
|
+
none: string;
|
|
526
|
+
}, any>;
|
|
527
|
+
icon?: DeepPartial<{
|
|
528
|
+
base: string;
|
|
529
|
+
color: string;
|
|
530
|
+
loading: string;
|
|
531
|
+
size: {
|
|
532
|
+
'2xs': string;
|
|
533
|
+
xs: string;
|
|
534
|
+
sm: string;
|
|
535
|
+
md: string;
|
|
536
|
+
lg: string;
|
|
537
|
+
xl: string;
|
|
538
|
+
};
|
|
539
|
+
leading: {
|
|
540
|
+
wrapper: string;
|
|
541
|
+
pointer: string;
|
|
542
|
+
padding: {
|
|
543
|
+
'2xs': string;
|
|
544
|
+
xs: string;
|
|
545
|
+
sm: string;
|
|
546
|
+
md: string;
|
|
547
|
+
lg: string;
|
|
548
|
+
xl: string;
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
trailing: {
|
|
552
|
+
wrapper: string;
|
|
553
|
+
pointer: string;
|
|
554
|
+
padding: {
|
|
555
|
+
'2xs': string;
|
|
556
|
+
xs: string;
|
|
557
|
+
sm: string;
|
|
558
|
+
md: string;
|
|
559
|
+
lg: string;
|
|
560
|
+
xl: string;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
}, any>;
|
|
564
|
+
} & {
|
|
565
|
+
[key: string]: any;
|
|
566
|
+
} & {
|
|
567
|
+
strategy?: Strategy;
|
|
568
|
+
};
|
|
456
569
|
id: string;
|
|
457
570
|
icon: string;
|
|
458
571
|
options: unknown[];
|
|
@@ -467,5 +580,51 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
467
580
|
optionAttribute: string;
|
|
468
581
|
valueAttribute: string;
|
|
469
582
|
selectClass: string;
|
|
470
|
-
}, {}
|
|
583
|
+
}, {}, {
|
|
584
|
+
UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
585
|
+
name: {
|
|
586
|
+
type: StringConstructor;
|
|
587
|
+
required: true;
|
|
588
|
+
};
|
|
589
|
+
mode: {
|
|
590
|
+
type: PropType<"svg" | "css">;
|
|
591
|
+
required: false;
|
|
592
|
+
default: any;
|
|
593
|
+
};
|
|
594
|
+
size: {
|
|
595
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
596
|
+
required: false;
|
|
597
|
+
default: any;
|
|
598
|
+
};
|
|
599
|
+
customize: {
|
|
600
|
+
type: FunctionConstructor;
|
|
601
|
+
required: false;
|
|
602
|
+
default: any;
|
|
603
|
+
};
|
|
604
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
605
|
+
name: {
|
|
606
|
+
type: StringConstructor;
|
|
607
|
+
required: true;
|
|
608
|
+
};
|
|
609
|
+
mode: {
|
|
610
|
+
type: PropType<"svg" | "css">;
|
|
611
|
+
required: false;
|
|
612
|
+
default: any;
|
|
613
|
+
};
|
|
614
|
+
size: {
|
|
615
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
616
|
+
required: false;
|
|
617
|
+
default: any;
|
|
618
|
+
};
|
|
619
|
+
customize: {
|
|
620
|
+
type: FunctionConstructor;
|
|
621
|
+
required: false;
|
|
622
|
+
default: any;
|
|
623
|
+
};
|
|
624
|
+
}>> & Readonly<{}>, {
|
|
625
|
+
mode: "svg" | "css";
|
|
626
|
+
size: string | number;
|
|
627
|
+
customize: Function;
|
|
628
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
629
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
471
630
|
export default _default;
|
|
@@ -393,7 +393,7 @@ export default defineComponent({
|
|
|
393
393
|
variant?.replaceAll("{color}", color.value),
|
|
394
394
|
(isLeading.value || slots.leading) && ui.value.leading.padding[size.value],
|
|
395
395
|
(isTrailing.value || slots.trailing) && ui.value.trailing.padding[size.value]
|
|
396
|
-
), props.placeholder && !props.modelValue && ui.value.placeholder, props.selectClass);
|
|
396
|
+
), props.placeholder && (!props.modelValue || Array.isArray(props.modelValue) && !props.modelValue.length) && ui.value.placeholder, props.selectClass);
|
|
397
397
|
});
|
|
398
398
|
const isLeading = computed(() => {
|
|
399
399
|
return props.icon && props.leading || props.icon && !props.trailing || props.loading && !props.trailing || props.leadingIcon;
|