@nuxt/ui 3.3.5 → 3.3.7

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 (146) hide show
  1. package/.nuxt/ui/drawer.ts +23 -0
  2. package/dist/module.json +3 -3
  3. package/dist/module.mjs +2 -2
  4. package/dist/runtime/components/Accordion.d.vue.ts +6 -5
  5. package/dist/runtime/components/Accordion.vue.d.ts +6 -5
  6. package/dist/runtime/components/Alert.d.vue.ts +2 -1
  7. package/dist/runtime/components/Alert.vue.d.ts +2 -1
  8. package/dist/runtime/components/App.d.vue.ts +5 -4
  9. package/dist/runtime/components/App.vue +1 -1
  10. package/dist/runtime/components/App.vue.d.ts +5 -4
  11. package/dist/runtime/components/Avatar.d.vue.ts +2 -1
  12. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  13. package/dist/runtime/components/AvatarGroup.d.vue.ts +2 -1
  14. package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
  15. package/dist/runtime/components/Badge.d.vue.ts +2 -1
  16. package/dist/runtime/components/Badge.vue.d.ts +2 -1
  17. package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -3
  18. package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
  19. package/dist/runtime/components/Button.d.vue.ts +2 -1
  20. package/dist/runtime/components/Button.vue.d.ts +2 -1
  21. package/dist/runtime/components/ButtonGroup.d.vue.ts +2 -1
  22. package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
  23. package/dist/runtime/components/Calendar.d.vue.ts +9 -8
  24. package/dist/runtime/components/Calendar.vue.d.ts +9 -8
  25. package/dist/runtime/components/Card.d.vue.ts +2 -1
  26. package/dist/runtime/components/Card.vue.d.ts +2 -1
  27. package/dist/runtime/components/Carousel.d.vue.ts +7 -6
  28. package/dist/runtime/components/Carousel.vue +32 -12
  29. package/dist/runtime/components/Carousel.vue.d.ts +7 -6
  30. package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
  31. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  32. package/dist/runtime/components/CheckboxGroup.d.vue.ts +7 -6
  33. package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
  34. package/dist/runtime/components/Chip.d.vue.ts +2 -1
  35. package/dist/runtime/components/Chip.vue.d.ts +2 -1
  36. package/dist/runtime/components/Collapsible.d.vue.ts +2 -1
  37. package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
  38. package/dist/runtime/components/ColorPicker.d.vue.ts +2 -1
  39. package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
  40. package/dist/runtime/components/CommandPalette.d.vue.ts +13 -12
  41. package/dist/runtime/components/CommandPalette.vue +1 -1
  42. package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
  43. package/dist/runtime/components/Container.d.vue.ts +2 -1
  44. package/dist/runtime/components/Container.vue.d.ts +2 -1
  45. package/dist/runtime/components/ContextMenu.d.vue.ts +6 -5
  46. package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
  47. package/dist/runtime/components/ContextMenuContent.d.vue.ts +10 -9
  48. package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
  49. package/dist/runtime/components/Drawer.d.vue.ts +5 -1
  50. package/dist/runtime/components/Drawer.vue +19 -5
  51. package/dist/runtime/components/Drawer.vue.d.ts +5 -1
  52. package/dist/runtime/components/DropdownMenu.d.vue.ts +6 -5
  53. package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
  54. package/dist/runtime/components/DropdownMenuContent.d.vue.ts +10 -9
  55. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
  56. package/dist/runtime/components/FileUpload.d.vue.ts +9 -8
  57. package/dist/runtime/components/FileUpload.vue +3 -2
  58. package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
  59. package/dist/runtime/components/Form.d.vue.ts +7 -6
  60. package/dist/runtime/components/Form.vue.d.ts +7 -6
  61. package/dist/runtime/components/FormField.d.vue.ts +2 -1
  62. package/dist/runtime/components/FormField.vue.d.ts +2 -1
  63. package/dist/runtime/components/Icon.d.vue.ts +2 -1
  64. package/dist/runtime/components/Icon.vue.d.ts +2 -1
  65. package/dist/runtime/components/Input.d.vue.ts +9 -8
  66. package/dist/runtime/components/Input.vue.d.ts +9 -8
  67. package/dist/runtime/components/InputMenu.d.vue.ts +17 -16
  68. package/dist/runtime/components/InputMenu.vue.d.ts +17 -16
  69. package/dist/runtime/components/InputNumber.d.vue.ts +2 -1
  70. package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
  71. package/dist/runtime/components/InputTags.d.vue.ts +13 -12
  72. package/dist/runtime/components/InputTags.vue.d.ts +13 -12
  73. package/dist/runtime/components/Kbd.d.vue.ts +2 -1
  74. package/dist/runtime/components/Kbd.vue.d.ts +2 -1
  75. package/dist/runtime/components/Link.d.vue.ts +2 -1
  76. package/dist/runtime/components/Link.vue.d.ts +2 -1
  77. package/dist/runtime/components/LinkBase.d.vue.ts +2 -1
  78. package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
  79. package/dist/runtime/components/Modal.d.vue.ts +4 -3
  80. package/dist/runtime/components/Modal.vue.d.ts +4 -3
  81. package/dist/runtime/components/NavigationMenu.d.vue.ts +6 -5
  82. package/dist/runtime/components/NavigationMenu.vue +1 -1
  83. package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
  84. package/dist/runtime/components/OverlayProvider.d.vue.ts +2 -1
  85. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
  86. package/dist/runtime/components/Pagination.d.vue.ts +2 -1
  87. package/dist/runtime/components/Pagination.vue +4 -4
  88. package/dist/runtime/components/Pagination.vue.d.ts +2 -1
  89. package/dist/runtime/components/PinInput.d.vue.ts +10 -9
  90. package/dist/runtime/components/PinInput.vue.d.ts +10 -9
  91. package/dist/runtime/components/Popover.d.vue.ts +2 -1
  92. package/dist/runtime/components/Popover.vue.d.ts +2 -1
  93. package/dist/runtime/components/Progress.d.vue.ts +2 -1
  94. package/dist/runtime/components/Progress.vue.d.ts +2 -1
  95. package/dist/runtime/components/RadioGroup.d.vue.ts +7 -6
  96. package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
  97. package/dist/runtime/components/Select.d.vue.ts +11 -10
  98. package/dist/runtime/components/Select.vue.d.ts +11 -10
  99. package/dist/runtime/components/SelectMenu.d.vue.ts +16 -15
  100. package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
  101. package/dist/runtime/components/Separator.d.vue.ts +2 -1
  102. package/dist/runtime/components/Separator.vue.d.ts +2 -1
  103. package/dist/runtime/components/Skeleton.d.vue.ts +2 -1
  104. package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
  105. package/dist/runtime/components/Slideover.d.vue.ts +4 -3
  106. package/dist/runtime/components/Slideover.vue.d.ts +4 -3
  107. package/dist/runtime/components/Slider.d.vue.ts +8 -7
  108. package/dist/runtime/components/Slider.vue.d.ts +8 -7
  109. package/dist/runtime/components/Stepper.d.vue.ts +10 -9
  110. package/dist/runtime/components/Stepper.vue.d.ts +10 -9
  111. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  112. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  113. package/dist/runtime/components/Table.d.vue.ts +20 -19
  114. package/dist/runtime/components/Table.vue +19 -1
  115. package/dist/runtime/components/Table.vue.d.ts +20 -19
  116. package/dist/runtime/components/Tabs.d.vue.ts +7 -6
  117. package/dist/runtime/components/Tabs.vue.d.ts +7 -6
  118. package/dist/runtime/components/Textarea.d.vue.ts +9 -8
  119. package/dist/runtime/components/Textarea.vue.d.ts +9 -8
  120. package/dist/runtime/components/Timeline.d.vue.ts +7 -6
  121. package/dist/runtime/components/Timeline.vue.d.ts +7 -6
  122. package/dist/runtime/components/Toast.d.vue.ts +4 -3
  123. package/dist/runtime/components/Toast.vue.d.ts +4 -3
  124. package/dist/runtime/components/Toaster.d.vue.ts +2 -1
  125. package/dist/runtime/components/Toaster.vue +2 -1
  126. package/dist/runtime/components/Toaster.vue.d.ts +2 -1
  127. package/dist/runtime/components/Tooltip.d.vue.ts +2 -1
  128. package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
  129. package/dist/runtime/components/Tree.d.vue.ts +7 -6
  130. package/dist/runtime/components/Tree.vue.d.ts +7 -6
  131. package/dist/runtime/composables/useKbd.js +1 -1
  132. package/dist/runtime/composables/usePortal.d.ts +3 -3
  133. package/dist/runtime/composables/usePortal.js +5 -10
  134. package/dist/runtime/inertia/components/Link.d.vue.ts +2 -1
  135. package/dist/runtime/inertia/components/Link.vue +12 -7
  136. package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
  137. package/dist/runtime/inertia/components/LinkBase.d.vue.ts +2 -1
  138. package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
  139. package/dist/runtime/vue/components/Icon.d.vue.ts +2 -1
  140. package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
  141. package/dist/runtime/vue/components/Link.d.vue.ts +2 -1
  142. package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
  143. package/dist/shared/{ui.DH9BUZkq.mjs → ui.DBpKc5X3.mjs} +88 -60
  144. package/dist/unplugin.mjs +1 -1
  145. package/dist/vite.mjs +1 -1
  146. package/package.json +22 -21
@@ -107,20 +107,21 @@ export interface CarouselEmits {
107
107
  */
108
108
  select: [selectedIndex: number];
109
109
  }
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
112
- readonly onSelect?: ((selectedIndex: number) => any) | undefined;
113
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & CarouselProps<T> & {}> & import("vue").PublicProps;
114
- expose(exposed: import("vue").ShallowUnwrapRef<{
110
+ declare const __VLS_export: <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
+ props: __VLS_PrettifyLocal<CarouselProps<T> & {
112
+ onSelect?: ((selectedIndex: number) => any) | undefined;
113
+ }> & import("vue").PublicProps;
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>;
117
- }>): void;
117
+ }>) => void;
118
118
  attrs: any;
119
119
  slots: CarouselSlots<T>;
120
120
  emit: (evt: "select", selectedIndex: number) => void;
121
121
  }>) => import("vue").VNode & {
122
122
  __ctx?: Awaited<typeof __VLS_setup>;
123
123
  };
124
+ declare const _default: typeof __VLS_export;
124
125
  export default _default;
125
126
  type __VLS_PrettifyLocal<T> = {
126
127
  [K in keyof T as K]: T[K];
@@ -54,7 +54,7 @@ export interface CheckboxSlots {
54
54
  description?: string;
55
55
  }): any;
56
56
  }
57
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
57
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
58
58
  modelValue?: boolean | "indeterminate";
59
59
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
60
  change: (event: Event) => any;
@@ -65,6 +65,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxPr
65
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
+ declare const _default: typeof __VLS_export;
68
69
  export default _default;
69
70
  type __VLS_WithSlots<T, S> = T & {
70
71
  new (): {
@@ -54,7 +54,7 @@ export interface CheckboxSlots {
54
54
  description?: string;
55
55
  }): any;
56
56
  }
57
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
57
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
58
58
  modelValue?: boolean | "indeterminate";
59
59
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
60
  change: (event: Event) => any;
@@ -65,6 +65,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxPr
65
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
+ declare const _default: typeof __VLS_export;
68
69
  export default _default;
69
70
  type __VLS_WithSlots<T, S> = T & {
70
71
  new (): {
@@ -66,18 +66,19 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
66
66
  label: SlotProps<T>;
67
67
  description: SlotProps<T>;
68
68
  }
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
71
- readonly onChange?: ((event: Event) => any) | undefined;
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> & {}> & import("vue").PublicProps;
74
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
69
+ declare const __VLS_export: <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
+ props: __VLS_PrettifyLocal<CheckboxGroupProps<T> & {
71
+ onChange?: ((event: Event) => any) | undefined;
72
+ "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
73
+ }> & import("vue").PublicProps;
74
+ expose: (exposed: {}) => void;
75
75
  attrs: any;
76
76
  slots: CheckboxGroupSlots<T>;
77
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
  };
81
+ declare const _default: typeof __VLS_export;
81
82
  export default _default;
82
83
  type __VLS_PrettifyLocal<T> = {
83
84
  [K in keyof T as K]: T[K];
@@ -66,18 +66,19 @@ export interface CheckboxGroupSlots<T extends CheckboxGroupItem = CheckboxGroupI
66
66
  label: SlotProps<T>;
67
67
  description: SlotProps<T>;
68
68
  }
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
71
- readonly onChange?: ((event: Event) => any) | undefined;
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> & {}> & import("vue").PublicProps;
74
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
69
+ declare const __VLS_export: <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
+ props: __VLS_PrettifyLocal<CheckboxGroupProps<T> & {
71
+ onChange?: ((event: Event) => any) | undefined;
72
+ "onUpdate:modelValue"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined;
73
+ }> & import("vue").PublicProps;
74
+ expose: (exposed: {}) => void;
75
75
  attrs: any;
76
76
  slots: CheckboxGroupSlots<T>;
77
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
  };
81
+ declare const _default: typeof __VLS_export;
81
82
  export default _default;
82
83
  type __VLS_PrettifyLocal<T> = {
83
84
  [K in keyof T as K]: T[K];
@@ -37,7 +37,7 @@ export interface ChipSlots {
37
37
  default(props?: {}): any;
38
38
  content(props?: {}): any;
39
39
  }
40
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
40
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
41
41
  show?: boolean;
42
42
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
43
  "update:show": (value: boolean) => any;
@@ -49,6 +49,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps
49
49
  inset: boolean;
50
50
  standalone: boolean;
51
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>;
52
+ declare const _default: typeof __VLS_export;
52
53
  export default _default;
53
54
  type __VLS_WithSlots<T, S> = T & {
54
55
  new (): {
@@ -37,7 +37,7 @@ export interface ChipSlots {
37
37
  default(props?: {}): any;
38
38
  content(props?: {}): any;
39
39
  }
40
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
40
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
41
41
  show?: boolean;
42
42
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
43
  "update:show": (value: boolean) => any;
@@ -49,6 +49,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps
49
49
  inset: boolean;
50
50
  standalone: boolean;
51
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChipSlots>;
52
+ declare const _default: typeof __VLS_export;
52
53
  export default _default;
53
54
  type __VLS_WithSlots<T, S> = T & {
54
55
  new (): {
@@ -20,13 +20,14 @@ export interface CollapsibleSlots {
20
20
  }): any;
21
21
  content(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ declare const __VLS_export: __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;
27
27
  }>, {
28
28
  unmountOnHide: boolean;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CollapsibleSlots>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
31
32
  type __VLS_WithSlots<T, S> = T & {
32
33
  new (): {
@@ -20,13 +20,14 @@ export interface CollapsibleSlots {
20
20
  }): any;
21
21
  content(props?: {}): any;
22
22
  }
23
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ declare const __VLS_export: __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;
27
27
  }>, {
28
28
  unmountOnHide: boolean;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, CollapsibleSlots>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
31
32
  type __VLS_WithSlots<T, S> = T & {
32
33
  new (): {
@@ -32,7 +32,7 @@ export type ColorPickerProps = {
32
32
  class?: any;
33
33
  ui?: ColorPicker['slots'];
34
34
  };
35
- declare const _default: import("vue").DefineComponent<ColorPickerProps & {
35
+ declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps & {
36
36
  modelValue?: string;
37
37
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  "update:modelValue": (value: string | undefined) => any;
@@ -45,4 +45,5 @@ declare const _default: import("vue").DefineComponent<ColorPickerProps & {
45
45
  defaultValue: string;
46
46
  throttle: number;
47
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
+ declare const _default: typeof __VLS_export;
48
49
  export default _default;
@@ -32,7 +32,7 @@ export type ColorPickerProps = {
32
32
  class?: any;
33
33
  ui?: ColorPicker['slots'];
34
34
  };
35
- declare const _default: import("vue").DefineComponent<ColorPickerProps & {
35
+ declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps & {
36
36
  modelValue?: string;
37
37
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
38
  "update:modelValue": (value: string | undefined) => any;
@@ -45,4 +45,5 @@ declare const _default: import("vue").DefineComponent<ColorPickerProps & {
45
45
  defaultValue: string;
46
46
  throttle: number;
47
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
+ declare const _default: typeof __VLS_export;
48
49
  export default _default;
@@ -162,21 +162,21 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
162
162
  'item-label': SlotProps<T>;
163
163
  'item-trailing': SlotProps<T>;
164
164
  } & Record<string, SlotProps<G>> & Record<string, SlotProps<T>>;
165
- declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
166
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
167
- readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
168
- readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
169
- readonly onHighlight?: ((payload: {
165
+ declare const __VLS_export: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
166
+ props: __VLS_PrettifyLocal<(CommandPaletteProps<G, T> & {
167
+ searchTerm?: string;
168
+ }) & {
169
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
170
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
171
+ onHighlight?: ((payload: {
170
172
  ref: HTMLElement;
171
173
  value: T;
172
174
  } | undefined) => any) | undefined;
173
- readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
174
- readonly onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
175
- readonly onLeave?: ((event: Event) => any) | undefined;
176
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onEntryFocus" | "onLeave"> & (CommandPaletteProps<G, T> & {
177
- searchTerm?: string;
178
- }) & {}> & import("vue").PublicProps;
179
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
175
+ onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
176
+ onLeave?: ((event: Event) => any) | undefined;
177
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
178
+ }> & import("vue").PublicProps;
179
+ expose: (exposed: {}) => void;
180
180
  attrs: any;
181
181
  slots: CommandPaletteSlots<G, T>;
182
182
  emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
@@ -186,6 +186,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
186
186
  }>) => import("vue").VNode & {
187
187
  __ctx?: Awaited<typeof __VLS_setup>;
188
188
  };
189
+ declare const _default: typeof __VLS_export;
189
190
  export default _default;
190
191
  type __VLS_PrettifyLocal<T> = {
191
192
  [K in keyof T as K]: T[K];
@@ -42,7 +42,7 @@ const props = defineProps({
42
42
  disabled: { type: Boolean, required: false },
43
43
  modelValue: { type: null, required: false, default: "" },
44
44
  defaultValue: { type: null, required: false },
45
- highlightOnHover: { type: Boolean, required: false },
45
+ highlightOnHover: { type: Boolean, required: false, default: true },
46
46
  selectionBehavior: { type: String, required: false },
47
47
  loading: { type: Boolean, required: false },
48
48
  loadingIcon: { type: String, required: false }
@@ -162,21 +162,21 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
162
162
  'item-label': SlotProps<T>;
163
163
  'item-trailing': SlotProps<T>;
164
164
  } & Record<string, SlotProps<G>> & Record<string, SlotProps<T>>;
165
- declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
166
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
167
- readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
168
- readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
169
- readonly onHighlight?: ((payload: {
165
+ declare const __VLS_export: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__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<{
166
+ props: __VLS_PrettifyLocal<(CommandPaletteProps<G, T> & {
167
+ searchTerm?: string;
168
+ }) & {
169
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
170
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
171
+ onHighlight?: ((payload: {
170
172
  ref: HTMLElement;
171
173
  value: T;
172
174
  } | undefined) => any) | undefined;
173
- readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
174
- readonly onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
175
- readonly onLeave?: ((event: Event) => any) | undefined;
176
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open" | "onUpdate:modelValue" | "onHighlight" | "onUpdate:searchTerm" | "onEntryFocus" | "onLeave"> & (CommandPaletteProps<G, T> & {
177
- searchTerm?: string;
178
- }) & {}> & import("vue").PublicProps;
179
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
175
+ onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
176
+ onLeave?: ((event: Event) => any) | undefined;
177
+ "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
178
+ }> & import("vue").PublicProps;
179
+ expose: (exposed: {}) => void;
180
180
  attrs: any;
181
181
  slots: CommandPaletteSlots<G, T>;
182
182
  emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
@@ -186,6 +186,7 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
186
186
  }>) => import("vue").VNode & {
187
187
  __ctx?: Awaited<typeof __VLS_setup>;
188
188
  };
189
+ declare const _default: typeof __VLS_export;
189
190
  export default _default;
190
191
  type __VLS_PrettifyLocal<T> = {
191
192
  [K in keyof T as K]: T[K];
@@ -9,7 +9,8 @@ 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, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
12
+ declare const __VLS_export: __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
+ declare const _default: typeof __VLS_export;
13
14
  export default _default;
14
15
  type __VLS_WithSlots<T, S> = T & {
15
16
  new (): {
@@ -9,7 +9,8 @@ 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, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
12
+ declare const __VLS_export: __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
+ declare const _default: typeof __VLS_export;
13
14
  export default _default;
14
15
  type __VLS_WithSlots<T, S> = T & {
15
16
  new (): {
@@ -92,17 +92,18 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
92
92
  active?: boolean;
93
93
  index: number;
94
94
  }>;
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
- readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
98
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> & {}> & import("vue").PublicProps;
99
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
95
+ declare const __VLS_export: <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
+ props: __VLS_PrettifyLocal<ContextMenuProps<T> & {
97
+ "onUpdate:open"?: ((payload: boolean) => any) | undefined;
98
+ }> & import("vue").PublicProps;
99
+ expose: (exposed: {}) => void;
100
100
  attrs: any;
101
101
  slots: ContextMenuSlots<T, NestedItem<T>>;
102
102
  emit: (evt: "update:open", payload: boolean) => void;
103
103
  }>) => import("vue").VNode & {
104
104
  __ctx?: Awaited<typeof __VLS_setup>;
105
105
  };
106
+ declare const _default: typeof __VLS_export;
106
107
  export default _default;
107
108
  type __VLS_PrettifyLocal<T> = {
108
109
  [K in keyof T as K]: T[K];
@@ -92,17 +92,18 @@ export type ContextMenuSlots<A extends ArrayOrNested<ContextMenuItem> = ArrayOrN
92
92
  active?: boolean;
93
93
  index: number;
94
94
  }>;
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
97
- readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
98
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & ContextMenuProps<T> & {}> & import("vue").PublicProps;
99
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
95
+ declare const __VLS_export: <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
+ props: __VLS_PrettifyLocal<ContextMenuProps<T> & {
97
+ "onUpdate:open"?: ((payload: boolean) => any) | undefined;
98
+ }> & import("vue").PublicProps;
99
+ expose: (exposed: {}) => void;
100
100
  attrs: any;
101
101
  slots: ContextMenuSlots<T, NestedItem<T>>;
102
102
  emit: (evt: "update:open", payload: boolean) => void;
103
103
  }>) => import("vue").VNode & {
104
104
  __ctx?: Awaited<typeof __VLS_setup>;
105
105
  };
106
+ declare const _default: typeof __VLS_export;
106
107
  export default _default;
107
108
  type __VLS_PrettifyLocal<T> = {
108
109
  [K in keyof T as K]: T[K];
@@ -28,21 +28,22 @@ interface ContextMenuContentProps<T extends ArrayOrNested<ContextMenuItem>> exte
28
28
  };
29
29
  uiOverride?: ContextMenu['slots'];
30
30
  }
31
- 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<{
32
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
33
- readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
34
- readonly onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
35
- readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
36
- readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
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> & {}> & import("vue").PublicProps;
39
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
31
+ declare const __VLS_export: <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<{
32
+ props: __VLS_PrettifyLocal<ContextMenuContentProps<T> & {
33
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
34
+ onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
35
+ onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
36
+ onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
37
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
38
+ }> & import("vue").PublicProps;
39
+ expose: (exposed: {}) => void;
40
40
  attrs: any;
41
41
  slots: ContextMenuSlots<T>;
42
42
  emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
43
43
  }>) => import("vue").VNode & {
44
44
  __ctx?: Awaited<typeof __VLS_setup>;
45
45
  };
46
+ declare const _default: typeof __VLS_export;
46
47
  export default _default;
47
48
  type __VLS_PrettifyLocal<T> = {
48
49
  [K in keyof T as K]: T[K];
@@ -28,21 +28,22 @@ interface ContextMenuContentProps<T extends ArrayOrNested<ContextMenuItem>> exte
28
28
  };
29
29
  uiOverride?: ContextMenu['slots'];
30
30
  }
31
- 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<{
32
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
33
- readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
34
- readonly onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
35
- readonly onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
36
- readonly onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
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> & {}> & import("vue").PublicProps;
39
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
31
+ declare const __VLS_export: <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<{
32
+ props: __VLS_PrettifyLocal<ContextMenuContentProps<T> & {
33
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
34
+ onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
35
+ onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
36
+ onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
37
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
38
+ }> & import("vue").PublicProps;
39
+ expose: (exposed: {}) => void;
40
40
  attrs: any;
41
41
  slots: ContextMenuSlots<T>;
42
42
  emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
43
43
  }>) => import("vue").VNode & {
44
44
  __ctx?: Awaited<typeof __VLS_setup>;
45
45
  };
46
+ declare const _default: typeof __VLS_export;
46
47
  export default _default;
47
48
  type __VLS_PrettifyLocal<T> = {
48
49
  [K in keyof T as K]: T[K];
@@ -43,6 +43,7 @@ export interface DrawerProps extends Pick<DrawerRootProps, 'activeSnapPoint' | '
43
43
  ui?: Drawer['slots'];
44
44
  }
45
45
  export interface DrawerEmits extends DrawerRootEmits {
46
+ (e: 'close:prevent'): void;
46
47
  }
47
48
  export interface DrawerSlots {
48
49
  default(props?: {}): any;
@@ -53,10 +54,11 @@ export interface DrawerSlots {
53
54
  body(props?: {}): any;
54
55
  footer(props?: {}): any;
55
56
  }
56
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
58
  close: () => any;
58
59
  drag: (percentageDragged: number) => any;
59
60
  "update:open": (open: boolean) => any;
61
+ "close:prevent": () => any;
60
62
  release: (open: boolean) => any;
61
63
  "update:activeSnapPoint": (val: string | number) => any;
62
64
  animationEnd: (open: boolean) => any;
@@ -64,6 +66,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
64
66
  onClose?: (() => any) | undefined;
65
67
  onDrag?: ((percentageDragged: number) => any) | undefined;
66
68
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
69
+ "onClose:prevent"?: (() => any) | undefined;
67
70
  onRelease?: ((open: boolean) => any) | undefined;
68
71
  "onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
69
72
  onAnimationEnd?: ((open: boolean) => any) | undefined;
@@ -75,6 +78,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
75
78
  dismissible: boolean;
76
79
  handle: boolean;
77
80
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DrawerSlots>;
81
+ declare const _default: typeof __VLS_export;
78
82
  export default _default;
79
83
  type __VLS_WithSlots<T, S> = T & {
80
84
  new (): {
@@ -38,18 +38,32 @@ const props = defineProps({
38
38
  preventScrollRestoration: { type: Boolean, required: false },
39
39
  snapPoints: { type: Array, required: false }
40
40
  });
41
- const emits = defineEmits(["drag", "release", "close", "update:open", "update:activeSnapPoint", "animationEnd"]);
41
+ const emits = defineEmits(["close:prevent", "drag", "release", "close", "update:open", "update:activeSnapPoint", "animationEnd"]);
42
42
  const slots = defineSlots();
43
43
  const appConfig = useAppConfig();
44
44
  const rootProps = useForwardPropsEmits(reactivePick(props, "activeSnapPoint", "closeThreshold", "shouldScaleBackground", "setBackgroundColorOnScale", "scrollLockTimeout", "fixed", "dismissible", "modal", "open", "defaultOpen", "nested", "direction", "noBodyStyles", "handleOnly", "preventScrollRestoration", "snapPoints"), emits);
45
45
  const portalProps = usePortal(toRef(() => props.portal));
46
46
  const contentProps = toRef(() => props.content);
47
- const contentEvents = {
48
- closeAutoFocus: (e) => e.preventDefault()
49
- };
47
+ const contentEvents = computed(() => {
48
+ const defaultEvents = {
49
+ closeAutoFocus: (e) => e.preventDefault()
50
+ };
51
+ if (!props.dismissible) {
52
+ const events = ["pointerDownOutside", "interactOutside", "escapeKeyDown"];
53
+ return events.reduce((acc, curr) => {
54
+ acc[curr] = (e) => {
55
+ e.preventDefault();
56
+ emits("close:prevent");
57
+ };
58
+ return acc;
59
+ }, defaultEvents);
60
+ }
61
+ return defaultEvents;
62
+ });
50
63
  const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.drawer || {} })({
51
64
  direction: props.direction,
52
- inset: props.inset
65
+ inset: props.inset,
66
+ snapPoints: props.snapPoints && props.snapPoints.length > 0
53
67
  }));
54
68
  </script>
55
69
 
@@ -43,6 +43,7 @@ export interface DrawerProps extends Pick<DrawerRootProps, 'activeSnapPoint' | '
43
43
  ui?: Drawer['slots'];
44
44
  }
45
45
  export interface DrawerEmits extends DrawerRootEmits {
46
+ (e: 'close:prevent'): void;
46
47
  }
47
48
  export interface DrawerSlots {
48
49
  default(props?: {}): any;
@@ -53,10 +54,11 @@ export interface DrawerSlots {
53
54
  body(props?: {}): any;
54
55
  footer(props?: {}): any;
55
56
  }
56
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
58
  close: () => any;
58
59
  drag: (percentageDragged: number) => any;
59
60
  "update:open": (open: boolean) => any;
61
+ "close:prevent": () => any;
60
62
  release: (open: boolean) => any;
61
63
  "update:activeSnapPoint": (val: string | number) => any;
62
64
  animationEnd: (open: boolean) => any;
@@ -64,6 +66,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
64
66
  onClose?: (() => any) | undefined;
65
67
  onDrag?: ((percentageDragged: number) => any) | undefined;
66
68
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
69
+ "onClose:prevent"?: (() => any) | undefined;
67
70
  onRelease?: ((open: boolean) => any) | undefined;
68
71
  "onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
69
72
  onAnimationEnd?: ((open: boolean) => any) | undefined;
@@ -75,6 +78,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProp
75
78
  dismissible: boolean;
76
79
  handle: boolean;
77
80
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DrawerSlots>;
81
+ declare const _default: typeof __VLS_export;
78
82
  export default _default;
79
83
  type __VLS_WithSlots<T, S> = T & {
80
84
  new (): {
@@ -102,17 +102,18 @@ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayO
102
102
  active?: boolean;
103
103
  index: number;
104
104
  }>;
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
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
107
- readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
108
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & {}> & import("vue").PublicProps;
109
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
105
+ declare const __VLS_export: <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
+ props: __VLS_PrettifyLocal<DropdownMenuProps<T> & {
107
+ "onUpdate:open"?: ((payload: boolean) => any) | undefined;
108
+ }> & import("vue").PublicProps;
109
+ expose: (exposed: {}) => void;
110
110
  attrs: any;
111
111
  slots: DropdownMenuSlots<T, NestedItem<T>>;
112
112
  emit: (evt: "update:open", payload: boolean) => void;
113
113
  }>) => import("vue").VNode & {
114
114
  __ctx?: Awaited<typeof __VLS_setup>;
115
115
  };
116
+ declare const _default: typeof __VLS_export;
116
117
  export default _default;
117
118
  type __VLS_PrettifyLocal<T> = {
118
119
  [K in keyof T as K]: T[K];