@nuxt/ui 3.3.1 → 3.3.3

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 (83) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/Accordion.vue.d.ts +1 -1
  4. package/dist/runtime/components/Alert.vue.d.ts +1 -1
  5. package/dist/runtime/components/App.vue +1 -1
  6. package/dist/runtime/components/App.vue.d.ts +1 -1
  7. package/dist/runtime/components/Avatar.vue.d.ts +1 -1
  8. package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
  9. package/dist/runtime/components/Badge.vue.d.ts +1 -1
  10. package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
  11. package/dist/runtime/components/Button.vue.d.ts +1 -1
  12. package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
  13. package/dist/runtime/components/Calendar.vue +1 -1
  14. package/dist/runtime/components/Calendar.vue.d.ts +3 -2
  15. package/dist/runtime/components/Card.vue.d.ts +1 -1
  16. package/dist/runtime/components/Carousel.vue +1 -1
  17. package/dist/runtime/components/Carousel.vue.d.ts +1 -1
  18. package/dist/runtime/components/Checkbox.vue.d.ts +4 -4
  19. package/dist/runtime/components/CheckboxGroup.vue.d.ts +4 -4
  20. package/dist/runtime/components/Chip.vue.d.ts +2 -2
  21. package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
  22. package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
  23. package/dist/runtime/components/CommandPalette.vue.d.ts +1 -1
  24. package/dist/runtime/components/Container.vue.d.ts +1 -1
  25. package/dist/runtime/components/ContextMenu.vue +1 -0
  26. package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
  27. package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
  28. package/dist/runtime/components/Drawer.vue.d.ts +1 -1
  29. package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
  30. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +1 -1
  31. package/dist/runtime/components/FileUpload.vue +1 -1
  32. package/dist/runtime/components/FileUpload.vue.d.ts +5 -6
  33. package/dist/runtime/components/Form.vue +2 -2
  34. package/dist/runtime/components/Form.vue.d.ts +7 -7
  35. package/dist/runtime/components/FormField.vue +2 -2
  36. package/dist/runtime/components/FormField.vue.d.ts +1 -1
  37. package/dist/runtime/components/Icon.vue.d.ts +1 -1
  38. package/dist/runtime/components/Input.vue.d.ts +4 -4
  39. package/dist/runtime/components/InputMenu.vue +1 -1
  40. package/dist/runtime/components/InputMenu.vue.d.ts +9 -9
  41. package/dist/runtime/components/InputNumber.vue.d.ts +6 -6
  42. package/dist/runtime/components/InputTags.vue.d.ts +1 -1
  43. package/dist/runtime/components/Kbd.vue.d.ts +1 -1
  44. package/dist/runtime/components/Link.vue.d.ts +1 -1
  45. package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
  46. package/dist/runtime/components/Modal.vue.d.ts +1 -1
  47. package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
  48. package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
  49. package/dist/runtime/components/Pagination.vue.d.ts +1 -1
  50. package/dist/runtime/components/PinInput.vue.d.ts +6 -6
  51. package/dist/runtime/components/Popover.vue.d.ts +1 -1
  52. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  53. package/dist/runtime/components/RadioGroup.vue.d.ts +4 -4
  54. package/dist/runtime/components/Select.vue.d.ts +9 -9
  55. package/dist/runtime/components/SelectMenu.vue.d.ts +9 -9
  56. package/dist/runtime/components/Separator.vue.d.ts +1 -1
  57. package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
  58. package/dist/runtime/components/Slideover.vue.d.ts +1 -1
  59. package/dist/runtime/components/Slider.vue +1 -1
  60. package/dist/runtime/components/Slider.vue.d.ts +6 -7
  61. package/dist/runtime/components/Stepper.vue.d.ts +6 -6
  62. package/dist/runtime/components/Switch.vue.d.ts +4 -4
  63. package/dist/runtime/components/Table.vue +2 -2
  64. package/dist/runtime/components/Table.vue.d.ts +1 -1
  65. package/dist/runtime/components/Tabs.vue.d.ts +1 -1
  66. package/dist/runtime/components/Textarea.vue.d.ts +4 -4
  67. package/dist/runtime/components/Timeline.vue.d.ts +1 -1
  68. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  69. package/dist/runtime/components/Tooltip.vue.d.ts +1 -1
  70. package/dist/runtime/components/Tree.vue.d.ts +3 -3
  71. package/dist/runtime/composables/useFormField.d.ts +2 -1
  72. package/dist/runtime/composables/useFormField.js +1 -0
  73. package/dist/runtime/inertia/components/Link.vue +3 -0
  74. package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
  75. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
  76. package/dist/runtime/types/form.d.ts +3 -3
  77. package/dist/runtime/types/utils.d.ts +1 -1
  78. package/dist/runtime/utils/index.d.ts +2 -1
  79. package/dist/runtime/utils/index.js +30 -1
  80. package/dist/runtime/utils/tv.d.ts +1 -1
  81. package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
  82. package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
  83. package/package.json +20 -22
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "docs": "https://ui.nuxt.com/getting-started/installation/nuxt",
5
5
  "configKey": "ui",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -8,7 +8,7 @@ import 'tailwindcss/colors';
8
8
  import 'knitwork';
9
9
 
10
10
  const name = "@nuxt/ui";
11
- const version = "3.3.1";
11
+ const version = "3.3.3";
12
12
 
13
13
  const module = defineNuxtModule({
14
14
  meta: {
@@ -63,7 +63,7 @@ export type AccordionSlots<T extends AccordionItem = AccordionItem> = {
63
63
  declare const _default: <T extends AccordionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
64
64
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
65
65
  readonly "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
66
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & Partial<{}>> & import("vue").PublicProps;
66
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & AccordionProps<T> & {}> & import("vue").PublicProps;
67
67
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
68
68
  attrs: any;
69
69
  slots: AccordionSlots<T>;
@@ -66,7 +66,7 @@ export interface AlertSlots {
66
66
  };
67
67
  }): any;
68
68
  }
69
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
70
  "update:open": (value: boolean) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
72
72
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -15,7 +15,7 @@ import UOverlayProvider from "./OverlayProvider.vue";
15
15
  const props = defineProps({
16
16
  tooltip: { type: Object, required: false },
17
17
  toaster: { type: [Object, null], required: false },
18
- locale: { type: null, required: false },
18
+ locale: { type: Object, required: false },
19
19
  portal: { type: null, required: false, default: "body" },
20
20
  scrollBody: { type: [Boolean, Object], required: false },
21
21
  nonce: { type: String, required: false }
@@ -10,7 +10,7 @@ export interface AppSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
12
  declare const _default: <T extends Messages>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
13
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & Partial<{}>> & import("vue").PublicProps;
13
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & AppProps<T> & {}> & import("vue").PublicProps;
14
14
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
15
15
  attrs: any;
16
16
  slots: AppSlots;
@@ -28,7 +28,7 @@ export interface AvatarProps {
28
28
  export interface AvatarSlots {
29
29
  default(props?: {}): any;
30
30
  }
31
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
31
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
32
32
  as: any;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
34
34
  default?: (props: {}) => any;
@@ -22,7 +22,7 @@ export interface AvatarGroupProps {
22
22
  export interface AvatarGroupSlots {
23
23
  default(props?: {}): any;
24
24
  }
25
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
25
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<AvatarGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, AvatarGroupSlots>;
26
26
  export default _default;
27
27
  type __VLS_WithSlots<T, S> = T & {
28
28
  new (): {
@@ -32,7 +32,7 @@ export interface BadgeSlots {
32
32
  default(props?: {}): any;
33
33
  trailing(props?: {}): any;
34
34
  }
35
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
35
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
36
36
  as: any;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, BadgeSlots>;
38
38
  export default _default;
@@ -52,7 +52,7 @@ export type BreadcrumbSlots<T extends BreadcrumbItem = BreadcrumbItem> = {
52
52
  active?: boolean;
53
53
  }>;
54
54
  declare const _default: <T extends BreadcrumbItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
55
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & Partial<{}>> & import("vue").PublicProps;
55
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & BreadcrumbProps<T> & {}> & import("vue").PublicProps;
56
56
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
57
57
  attrs: any;
58
58
  slots: BreadcrumbSlots<T>;
@@ -35,7 +35,7 @@ export interface ButtonSlots {
35
35
  default(props?: {}): any;
36
36
  trailing(props?: {}): any;
37
37
  }
38
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
38
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonSlots>;
39
39
  export default _default;
40
40
  type __VLS_WithSlots<T, S> = T & {
41
41
  new (): {
@@ -23,7 +23,7 @@ export interface ButtonGroupProps {
23
23
  export interface ButtonGroupSlots {
24
24
  default(props?: {}): any;
25
25
  }
26
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
26
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
27
27
  orientation: ButtonGroup["variants"]["orientation"];
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ButtonGroupSlots>;
29
29
  export default _default;
@@ -54,7 +54,7 @@ const props = defineProps({
54
54
  disableDaysOutsideCurrentView: { type: Boolean, required: false },
55
55
  fixedDate: { type: String, required: false }
56
56
  });
57
- const emits = defineEmits(["update:modelValue", "update:placeholder", "update:startValue"]);
57
+ const emits = defineEmits(["update:modelValue", "update:placeholder", "update:validModelValue", "update:startValue"]);
58
58
  defineSlots();
59
59
  const { code: locale, dir, t } = useLocale();
60
60
  const appConfig = useAppConfig();
@@ -96,12 +96,13 @@ declare const _default: <R extends boolean, M extends boolean>(__VLS_props: NonN
96
96
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
97
  readonly "onUpdate:modelValue"?: ((date: CalendarModelValue<R, M>) => any) | undefined;
98
98
  readonly "onUpdate:placeholder"?: ((...args: unknown[]) => any) | undefined;
99
+ readonly "onUpdate:validModelValue"?: ((date: DateRange) => any) | undefined;
99
100
  readonly "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
100
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:startValue"> & CalendarProps<R, M> & Partial<{}>> & import("vue").PublicProps;
101
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:placeholder" | "onUpdate:validModelValue" | "onUpdate:startValue"> & CalendarProps<R, M> & {}> & import("vue").PublicProps;
101
102
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
102
103
  attrs: any;
103
104
  slots: CalendarSlots;
104
- emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
105
+ emit: ((evt: "update:modelValue", date: CalendarModelValue<R, M>) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void);
105
106
  }>) => import("vue").VNode & {
106
107
  __ctx?: Awaited<typeof __VLS_setup>;
107
108
  };
@@ -20,7 +20,7 @@ export interface CardSlots {
20
20
  default(props?: {}): any;
21
21
  footer(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CardSlots>;
24
24
  export default _default;
25
25
  type __VLS_WithSlots<T, S> = T & {
26
26
  new (): {
@@ -26,7 +26,7 @@ const props = defineProps({
26
26
  autoHeight: { type: [Boolean, Object], required: false, default: false },
27
27
  classNames: { type: [Boolean, Object], required: false, default: false },
28
28
  fade: { type: [Boolean, Object], required: false, default: false },
29
- wheelGestures: { type: Boolean, required: false, skipCheck: true, default: false },
29
+ wheelGestures: { type: [Boolean, Object], required: false, default: false },
30
30
  class: { type: null, required: false },
31
31
  ui: { type: null, required: false },
32
32
  align: { type: [String, Function], required: false, default: "center" },
@@ -110,7 +110,7 @@ export interface CarouselEmits {
110
110
  declare const _default: <T extends CarouselItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
111
111
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
112
112
  readonly onSelect?: ((selectedIndex: number) => any) | undefined;
113
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> & Partial<{}>> & import("vue").PublicProps;
113
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> & {}> & import("vue").PublicProps;
114
114
  expose(exposed: import("vue").ShallowUnwrapRef<{
115
115
  emblaRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
116
116
  emblaApi: import("vue").Ref<EmblaCarouselType | undefined, EmblaCarouselType | undefined>;
@@ -44,7 +44,7 @@ export interface CheckboxProps extends Pick<CheckboxRootProps, 'disabled' | 'req
44
44
  ui?: Checkbox['slots'];
45
45
  }
46
46
  export type CheckboxEmits = {
47
- change: [payload: Event];
47
+ change: [event: Event];
48
48
  };
49
49
  export interface CheckboxSlots {
50
50
  label(props: {
@@ -56,13 +56,13 @@ export interface CheckboxSlots {
56
56
  }
57
57
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
58
58
  modelValue?: boolean | "indeterminate";
59
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
- change: (payload: Event) => any;
59
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
+ change: (event: Event) => any;
61
61
  "update:modelValue": (value: boolean | "indeterminate") => any;
62
62
  }, string, import("vue").PublicProps, Readonly<CheckboxProps & {
63
63
  modelValue?: boolean | "indeterminate";
64
64
  }> & Readonly<{
65
- onChange?: ((payload: Event) => any) | undefined;
65
+ onChange?: ((event: Event) => any) | undefined;
66
66
  "onUpdate:modelValue"?: ((value: boolean | "indeterminate") => any) | undefined;
67
67
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CheckboxSlots>;
68
68
  export default _default;
@@ -54,7 +54,7 @@ export interface CheckboxGroupProps<T extends CheckboxGroupItem = CheckboxGroupI
54
54
  ui?: CheckboxGroup['slots'] & CheckboxProps['ui'];
55
55
  }
56
56
  export type CheckboxGroupEmits = CheckboxGroupRootEmits & {
57
- change: [payload: Event];
57
+ change: [event: Event];
58
58
  };
59
59
  type SlotProps<T extends CheckboxGroupItem> = (props: {
60
60
  item: T & {
@@ -68,13 +68,13 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
68
68
  }
69
69
  declare const _default: <T extends CheckboxGroupItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
70
70
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
71
- readonly onChange?: ((payload: Event) => any) | undefined;
71
+ readonly onChange?: ((event: Event) => any) | undefined;
72
72
  readonly "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
73
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps<T> & Partial<{}>> & import("vue").PublicProps;
73
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps<T> & {}> & import("vue").PublicProps;
74
74
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
75
75
  attrs: any;
76
76
  slots: CheckboxGroupSlots<T>;
77
- emit: ((evt: "change", payload: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void);
77
+ emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void);
78
78
  }>) => import("vue").VNode & {
79
79
  __ctx?: Awaited<typeof __VLS_setup>;
80
80
  };
@@ -31,7 +31,7 @@ export interface ChipProps {
31
31
  ui?: Chip['slots'];
32
32
  }
33
33
  export interface ChipEmits {
34
- 'update:show': [payload: boolean];
34
+ 'update:show': [value: boolean];
35
35
  }
36
36
  export interface ChipSlots {
37
37
  default(props?: {}): any;
@@ -39,7 +39,7 @@ export interface ChipSlots {
39
39
  }
40
40
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
41
41
  show?: boolean;
42
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
43
  "update:show": (value: boolean) => any;
44
44
  }, string, import("vue").PublicProps, Readonly<ChipProps & {
45
45
  show?: boolean;
@@ -20,7 +20,7 @@ export interface CollapsibleSlots {
20
20
  }): any;
21
21
  content(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:open": (value: boolean) => any;
25
25
  }, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
26
26
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
@@ -34,7 +34,7 @@ export type ColorPickerProps = {
34
34
  };
35
35
  declare const _default: import("vue").DefineComponent<ColorPickerProps & {
36
36
  modelValue?: string;
37
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  "update:modelValue": (value: string | undefined) => any;
39
39
  }, string, import("vue").PublicProps, Readonly<ColorPickerProps & {
40
40
  modelValue?: string;
@@ -175,7 +175,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
175
175
  readonly onLeave?: ((event: Event) => any) | undefined;
176
176
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onEntryFocus" | "onLeave"> & (CommandPaletteProps<G, T> & {
177
177
  searchTerm?: string;
178
- }) & Partial<{}>> & import("vue").PublicProps;
178
+ }) & {}> & import("vue").PublicProps;
179
179
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
180
180
  attrs: any;
181
181
  slots: CommandPaletteSlots<G, T>;
@@ -9,7 +9,7 @@ export interface ContainerProps {
9
9
  export interface ContainerSlots {
10
10
  default(props?: {}): any;
11
11
  }
12
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
12
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
13
13
  export default _default;
14
14
  type __VLS_WithSlots<T, S> = T & {
15
15
  new (): {
@@ -22,6 +22,7 @@ const props = defineProps({
22
22
  disabled: { type: Boolean, required: false },
23
23
  class: { type: null, required: false },
24
24
  ui: { type: null, required: false },
25
+ pressOpenDelay: { type: Number, required: false },
25
26
  modal: { type: Boolean, required: false, default: true }
26
27
  });
27
28
  const emits = defineEmits(["update:open"]);
@@ -95,7 +95,7 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
95
95
  declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
96
96
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
97
  readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
98
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> & Partial<{}>> & import("vue").PublicProps;
98
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> & {}> & import("vue").PublicProps;
99
99
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
100
100
  attrs: any;
101
101
  slots: ContextMenuSlots<T, NestedItem<T>>;
@@ -35,7 +35,7 @@ declare const _default: <T extends ArrayOrNested<ContextMenuItem>>(__VLS_props:
35
35
  readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
36
36
  readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
37
37
  readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
38
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & ContextMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps;
38
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & ContextMenuContentProps<T> & {}> & import("vue").PublicProps;
39
39
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
40
40
  attrs: any;
41
41
  slots: ContextMenuSlots<T>;
@@ -53,7 +53,7 @@ export interface DrawerSlots {
53
53
  body(props?: {}): any;
54
54
  footer(props?: {}): any;
55
55
  }
56
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
56
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
57
  close: () => any;
58
58
  drag: (percentageDragged: number) => any;
59
59
  "update:open": (open: boolean) => any;
@@ -105,7 +105,7 @@ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayO
105
105
  declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
106
106
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
107
107
  readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
108
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & Partial<{}>> & import("vue").PublicProps;
108
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & {}> & import("vue").PublicProps;
109
109
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
110
110
  attrs: any;
111
111
  slots: DropdownMenuSlots<T, NestedItem<T>>;
@@ -41,7 +41,7 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
41
41
  readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
42
42
  readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
43
43
  readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
44
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps;
44
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & {}> & import("vue").PublicProps;
45
45
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
46
46
  attrs: any;
47
47
  slots: DropdownMenuContentSlots<T, NestedItem<T>>;
@@ -40,7 +40,7 @@ const props = defineProps({
40
40
  class: { type: null, required: false },
41
41
  ui: { type: null, required: false }
42
42
  });
43
- const emits = defineEmits(["update:modelValue", "change"]);
43
+ const emits = defineEmits(["change"]);
44
44
  const slots = defineSlots();
45
45
  const modelValue = defineModel({ type: null });
46
46
  const appConfig = useAppConfig();
@@ -92,9 +92,8 @@ export interface FileUploadProps<M extends boolean = false> {
92
92
  class?: any;
93
93
  ui?: FileUpload['slots'];
94
94
  }
95
- export interface FileUploadEmits<M extends boolean = false> {
96
- 'update:modelValue': [payload: M extends true ? File[] : File | null];
97
- 'change': [event: Event];
95
+ export interface FileUploadEmits {
96
+ change: [event: Event];
98
97
  }
99
98
  type FileUploadFiles<M> = (M extends true ? File[] : File) | null;
100
99
  export interface FileUploadSlots<M extends boolean = false> {
@@ -147,17 +146,17 @@ export interface FileUploadSlots<M extends boolean = false> {
147
146
  declare const _default: <M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
148
147
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
149
148
  readonly onChange?: ((event: Event) => any) | undefined;
150
- readonly "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
149
+ readonly "onUpdate:modelValue"?: ((value: (M extends true ? File[] : File) | null | undefined) => any) | undefined;
151
150
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & (FileUploadProps<M> & {
152
151
  modelValue?: (M extends true ? File[] : File) | null;
153
- }) & Partial<{}>> & import("vue").PublicProps;
152
+ }) & {}> & import("vue").PublicProps;
154
153
  expose(exposed: import("vue").ShallowUnwrapRef<{
155
154
  inputRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
156
155
  dropzoneRef: import("vue").Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
157
156
  }>): void;
158
157
  attrs: any;
159
158
  slots: FileUploadSlots<M>;
160
- emit: (((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: M extends true ? File[] : File | null) => void)) & ((evt: "update:modelValue", value: (M extends true ? File[] : File) | null | undefined) => void);
159
+ emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: (M extends true ? File[] : File) | null | undefined) => void);
161
160
  }>) => import("vue").VNode & {
162
161
  __ctx?: Awaited<typeof __VLS_setup>;
163
162
  };
@@ -6,7 +6,7 @@ import theme from "#build/ui/form";
6
6
  import { provide, inject, nextTick, ref, onUnmounted, onMounted, computed, useId, readonly, reactive } from "vue";
7
7
  import { useEventBus } from "@vueuse/core";
8
8
  import { useAppConfig } from "#imports";
9
- import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey, formLoadingInjectionKey } from "../composables/useFormField";
9
+ import { formOptionsInjectionKey, formInputsInjectionKey, formBusInjectionKey, formLoadingInjectionKey, formErrorsInjectionKey } from "../composables/useFormField";
10
10
  import { tv } from "../utils/tv";
11
11
  import { validateSchema } from "../utils/form";
12
12
  import { FormValidationException } from "../types/form";
@@ -77,7 +77,7 @@ onUnmounted(() => {
77
77
  }
78
78
  });
79
79
  const errors = ref([]);
80
- provide("form-errors", errors);
80
+ provide(formErrorsInjectionKey, errors);
81
81
  const inputs = ref({});
82
82
  provide(formInputsInjectionKey, inputs);
83
83
  const dirtyFields = reactive(/* @__PURE__ */ new Set());
@@ -44,24 +44,24 @@ export interface FormProps<S extends FormSchema, T extends boolean = true> {
44
44
  onSubmit?: ((event: FormSubmitEvent<FormData<S, T>>) => void | Promise<void>) | (() => void | Promise<void>);
45
45
  }
46
46
  export interface FormEmits<S extends FormSchema, T extends boolean = true> {
47
- submit: [payload: FormSubmitEvent<FormData<S, T>>];
48
- error: [payload: FormErrorEvent];
47
+ submit: [event: FormSubmitEvent<FormData<S, T>>];
48
+ error: [event: FormErrorEvent];
49
49
  }
50
50
  export interface FormSlots {
51
- default(props?: {
51
+ default(props: {
52
52
  errors: FormError[];
53
53
  loading: boolean;
54
54
  }): any;
55
55
  }
56
56
  declare const _default: <S extends FormSchema, T extends boolean = true>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
57
57
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
58
- readonly onError?: ((payload: FormErrorEvent) => any) | undefined;
59
- readonly onSubmit?: ((payload: FormSubmitEvent<FormData<S, T>>) => any) | undefined;
60
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onError"> & FormProps<S, T> & Partial<{}>> & import("vue").PublicProps;
58
+ readonly onError?: ((event: FormErrorEvent) => any) | undefined;
59
+ readonly onSubmit?: ((event: FormSubmitEvent<FormData<S, T>>) => any) | undefined;
60
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSubmit" | "onError"> & FormProps<S, T> & {}> & import("vue").PublicProps;
61
61
  expose(exposed: import("vue").ShallowUnwrapRef<Form<S>>): void;
62
62
  attrs: any;
63
63
  slots: FormSlots;
64
- emit: ((evt: "error", payload: FormErrorEvent) => void) & ((evt: "submit", payload: FormSubmitEvent<FormData<S, T>>) => void);
64
+ emit: ((evt: "error", event: FormErrorEvent) => void) & ((evt: "submit", event: FormSubmitEvent<FormData<S, T>>) => void);
65
65
  }>) => import("vue").VNode & {
66
66
  __ctx?: Awaited<typeof __VLS_setup>;
67
67
  };
@@ -6,7 +6,7 @@ import theme from "#build/ui/form-field";
6
6
  import { computed, ref, inject, provide, useId } from "vue";
7
7
  import { Primitive, Label } from "reka-ui";
8
8
  import { useAppConfig } from "#imports";
9
- import { formFieldInjectionKey, inputIdInjectionKey } from "../composables/useFormField";
9
+ import { formFieldInjectionKey, inputIdInjectionKey, formErrorsInjectionKey } from "../composables/useFormField";
10
10
  import { tv } from "../utils/tv";
11
11
  const props = defineProps({
12
12
  as: { type: null, required: false },
@@ -30,7 +30,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.formField ||
30
30
  size: props.size,
31
31
  required: props.required
32
32
  }));
33
- const formErrors = inject("form-errors", null);
33
+ const formErrors = inject(formErrorsInjectionKey, null);
34
34
  const error = computed(() => props.error || formErrors?.value?.find((error2) => error2.name && (error2.name === props.name || props.errorPattern && error2.name.match(props.errorPattern)))?.message);
35
35
  const id = ref(useId());
36
36
  const ariaId = id.value;
@@ -52,7 +52,7 @@ export interface FormFieldSlots {
52
52
  error?: boolean | string;
53
53
  }): any;
54
54
  }
55
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FormFieldSlots>;
55
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FormFieldSlots>;
56
56
  export default _default;
57
57
  type __VLS_WithSlots<T, S> = T & {
58
58
  new (): {
@@ -4,5 +4,5 @@ export interface IconProps {
4
4
  size?: string | number;
5
5
  customize?: (content: string, name?: string, prefix?: string, provider?: string) => string;
6
6
  }
7
- declare const _default: import("vue").DefineComponent<IconProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -47,7 +47,7 @@ export interface InputProps<T extends AcceptableValue = AcceptableValue> extends
47
47
  ui?: Input['slots'];
48
48
  }
49
49
  export interface InputEmits<T extends AcceptableValue = AcceptableValue> {
50
- 'update:modelValue': [payload: T];
50
+ 'update:modelValue': [value: T];
51
51
  'blur': [event: FocusEvent];
52
52
  'change': [event: Event];
53
53
  }
@@ -60,14 +60,14 @@ declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awa
60
60
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
61
61
  readonly onBlur?: ((event: FocusEvent) => any) | undefined;
62
62
  readonly onChange?: ((event: Event) => any) | undefined;
63
- readonly "onUpdate:modelValue"?: ((payload: T) => any) | undefined;
64
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & InputProps<T> & Partial<{}>> & import("vue").PublicProps;
63
+ readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
64
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onBlur" | "onChange" | "onUpdate:modelValue"> & InputProps<T> & {}> & import("vue").PublicProps;
65
65
  expose(exposed: import("vue").ShallowUnwrapRef<{
66
66
  inputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
67
67
  }>): void;
68
68
  attrs: any;
69
69
  slots: InputSlots;
70
- emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: T) => void);
70
+ emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
71
71
  }>) => import("vue").VNode & {
72
72
  __ctx?: Awaited<typeof __VLS_setup>;
73
73
  };
@@ -314,7 +314,7 @@ defineExpose({
314
314
  </ComboboxAnchor>
315
315
 
316
316
  <ComboboxPortal v-bind="portalProps">
317
- <ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps">
317
+ <ComboboxContent :class="ui.content({ class: props.ui?.content })" v-bind="contentProps" @focus-outside.prevent>
318
318
  <slot name="content-top" />
319
319
 
320
320
  <ComboboxEmpty :class="ui.empty({ class: props.ui?.empty })">
@@ -127,9 +127,9 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
127
127
  ui?: InputMenu['slots'];
128
128
  }
129
129
  export type InputMenuEmits<A extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<A> | undefined, M extends boolean> = Pick<ComboboxRootEmits, 'update:open'> & {
130
- 'change': [payload: Event];
131
- 'blur': [payload: FocusEvent];
132
- 'focus': [payload: FocusEvent];
130
+ 'change': [event: Event];
131
+ 'blur': [event: FocusEvent];
132
+ 'focus': [event: FocusEvent];
133
133
  'create': [item: string];
134
134
  /** Event handler when highlighted element changes. */
135
135
  'highlight': [
@@ -176,12 +176,12 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
176
176
  }
177
177
  declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
178
178
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
179
- readonly onBlur?: ((payload: FocusEvent) => any) | undefined;
180
- readonly onChange?: ((payload: Event) => any) | undefined;
181
- readonly onFocus?: ((payload: FocusEvent) => any) | undefined;
179
+ readonly onBlur?: ((event: FocusEvent) => any) | undefined;
180
+ readonly onChange?: ((event: Event) => any) | undefined;
181
+ readonly onFocus?: ((event: FocusEvent) => any) | undefined;
182
182
  readonly onCreate?: ((item: string) => any) | undefined;
183
183
  readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
184
- readonly "onUpdate:modelValue"?: ((payload: GetModelValue<T, VK, M>) => any) | undefined;
184
+ readonly "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
185
185
  readonly onHighlight?: ((payload: {
186
186
  ref: HTMLElement;
187
187
  value: GetModelValue<T, VK, M>;
@@ -190,7 +190,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
190
190
  readonly "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
191
191
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onCreate" | "onRemove-tag"> & (InputMenuProps<T, VK, M> & {
192
192
  searchTerm?: string;
193
- }) & Partial<{}>> & import("vue").PublicProps;
193
+ }) & {}> & import("vue").PublicProps;
194
194
  expose(exposed: import("vue").ShallowUnwrapRef<{
195
195
  inputRef: import("vue").Ref<({
196
196
  $: import("vue").ComponentInternalInstance;
@@ -316,7 +316,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
316
316
  }>): void;
317
317
  attrs: any;
318
318
  slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
319
- emit: (((evt: "blur", payload: FocusEvent) => void) & ((evt: "change", payload: Event) => void) & ((evt: "focus", payload: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", payload: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
319
+ emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
320
320
  ref: HTMLElement;
321
321
  value: GetModelValue<T, VK, M>;
322
322
  } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);