rappel-ui 1.0.34 → 1.0.36

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 (240) hide show
  1. package/README.md +1 -0
  2. package/cjs/components/dropdown/index.d.ts +11 -98
  3. package/cjs/components/dropdown/src/dropdown-item.vue.d.ts +9 -7
  4. package/cjs/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/cjs/components/dropdown/src/dropdown-submenu.vue.d.ts +4 -2
  6. package/cjs/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -1
  7. package/cjs/components/dropdown/src/dropdown.vue.d.ts +343 -11
  8. package/cjs/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  9. package/cjs/components/dropdown/src/loop.js +1 -0
  10. package/cjs/components/dropdown/src/loop.vue.d.ts +18 -0
  11. package/cjs/components/dropdown/src/loop.vue_vue_type_script_setup_true_lang.js +1 -0
  12. package/cjs/components/dropdown/src/types.d.ts +21 -14
  13. package/cjs/components/dropdown/src/use-dropdown-emit.d.ts +4 -4
  14. package/cjs/components/index.d.ts +1 -0
  15. package/cjs/components/index.js +1 -1
  16. package/cjs/components/menu/index.d.ts +86 -0
  17. package/cjs/components/menu/index.js +1 -0
  18. package/cjs/components/menu/src/constants.d.ts +1 -0
  19. package/cjs/components/menu/src/constants.js +1 -0
  20. package/cjs/components/menu/src/loop.js +1 -0
  21. package/cjs/components/menu/src/loop.vue.d.ts +18 -0
  22. package/cjs/components/menu/src/loop.vue_vue_type_script_setup_true_lang.js +1 -0
  23. package/cjs/components/menu/src/menu-item.js +1 -0
  24. package/cjs/components/menu/src/menu-item.vue.d.ts +25 -0
  25. package/cjs/components/menu/src/menu-item.vue_vue_type_script_setup_true_lang.js +1 -0
  26. package/cjs/components/menu/src/menu.js +1 -0
  27. package/cjs/components/menu/src/menu.vue.d.ts +21 -0
  28. package/cjs/components/menu/src/menu.vue_vue_type_script_setup_true_lang.js +1 -0
  29. package/cjs/components/menu/src/submenu.js +1 -0
  30. package/cjs/components/menu/src/submenu.vue.d.ts +19 -0
  31. package/cjs/components/menu/src/submenu.vue_vue_type_script_setup_true_lang.js +1 -0
  32. package/cjs/components/menu/src/types.d.ts +79 -0
  33. package/cjs/components/menu/src/use-menu-emit.d.ts +5 -0
  34. package/cjs/components/menu/src/use-menu-emit.js +1 -0
  35. package/cjs/components/menu/style/css.d.ts +0 -0
  36. package/cjs/components/menu/style/css.js +2 -0
  37. package/cjs/components/menu/style/index.d.ts +0 -0
  38. package/cjs/components/menu/style/index.js +2 -0
  39. package/cjs/components/message/src/create-message.js +1 -1
  40. package/cjs/components/message/src/use-message-emit.d.ts +2 -2
  41. package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
  42. package/cjs/components/popconfirm/src/use-popconfirm-emit.d.ts +2 -2
  43. package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
  44. package/cjs/components/popover/src/types.d.ts +1 -0
  45. package/cjs/components/popover/src/use-popover-emit.d.ts +2 -2
  46. package/cjs/components/tooltip/src/constants.d.ts +0 -1
  47. package/cjs/components/tooltip/src/constants.js +1 -1
  48. package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
  49. package/cjs/components/tooltip/src/types.d.ts +1 -0
  50. package/cjs/components/tooltip/src/use-tooltip-emit.d.ts +2 -2
  51. package/cjs/components/tooltip/src/use-tooltip.js +1 -1
  52. package/cjs/components/transition/src/use-transition-emit.d.ts +2 -2
  53. package/cjs/composables/index.d.ts +1 -0
  54. package/cjs/composables/index.js +1 -1
  55. package/cjs/composables/use-slot-node/index.d.ts +2 -0
  56. package/cjs/composables/use-slot-node/index.js +1 -0
  57. package/cjs/composables/use-theme/index.js +1 -1
  58. package/cjs/constants/index.d.ts +1 -0
  59. package/cjs/constants/index.js +1 -0
  60. package/cjs/index.d.ts +183 -186
  61. package/cjs/index.js +1 -1
  62. package/cjs/svg-icons/create-icon.d.ts +2 -2
  63. package/cjs/svg-icons/src/arrow-backward.d.ts +2 -2
  64. package/cjs/svg-icons/src/arrow-down.d.ts +2 -2
  65. package/cjs/svg-icons/src/arrow-downward.d.ts +2 -2
  66. package/cjs/svg-icons/src/arrow-forward.d.ts +2 -2
  67. package/cjs/svg-icons/src/arrow-left.d.ts +2 -2
  68. package/cjs/svg-icons/src/arrow-right.d.ts +2 -2
  69. package/cjs/svg-icons/src/arrow-up.d.ts +2 -2
  70. package/cjs/svg-icons/src/arrow-upward.d.ts +2 -2
  71. package/cjs/svg-icons/src/check-circle.d.ts +2 -2
  72. package/cjs/svg-icons/src/check-fill.d.ts +2 -2
  73. package/cjs/svg-icons/src/check.d.ts +2 -2
  74. package/cjs/svg-icons/src/close-circle.d.ts +2 -2
  75. package/cjs/svg-icons/src/close-fill.d.ts +2 -2
  76. package/cjs/svg-icons/src/close-short.d.ts +2 -2
  77. package/cjs/svg-icons/src/close.d.ts +2 -2
  78. package/cjs/svg-icons/src/copy-closure.d.ts +2 -2
  79. package/cjs/svg-icons/src/copy.d.ts +2 -2
  80. package/cjs/svg-icons/src/delete.d.ts +2 -2
  81. package/cjs/svg-icons/src/exclam-fill.d.ts +2 -2
  82. package/cjs/svg-icons/src/exclam.d.ts +2 -2
  83. package/cjs/svg-icons/src/help.d.ts +2 -2
  84. package/cjs/svg-icons/src/info-circle.d.ts +2 -2
  85. package/cjs/svg-icons/src/info-fill.d.ts +2 -2
  86. package/cjs/svg-icons/src/loading.d.ts +2 -2
  87. package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
  88. package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
  89. package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
  90. package/cjs/svg-icons/src/more-dot-circle.d.ts +2 -2
  91. package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
  92. package/cjs/svg-icons/src/more-dot-square.d.ts +2 -2
  93. package/cjs/svg-icons/src/more-line.d.ts +2 -2
  94. package/cjs/svg-icons/src/play.d.ts +2 -2
  95. package/cjs/svg-icons/src/search-bold.d.ts +2 -2
  96. package/cjs/svg-icons/src/search.d.ts +2 -2
  97. package/cjs/svg-icons/src/star-fill.d.ts +2 -2
  98. package/cjs/svg-icons/src/star.d.ts +2 -2
  99. package/cjs/svg-icons/src/triangle-backward-fill.d.ts +2 -2
  100. package/cjs/svg-icons/src/triangle-downward-fill.d.ts +2 -2
  101. package/cjs/svg-icons/src/triangle-forward-fill.d.ts +2 -2
  102. package/cjs/svg-icons/src/triangle-upward-fill.d.ts +2 -2
  103. package/cjs/types/common.d.ts +16 -0
  104. package/cjs/types/component.d.ts +2 -1
  105. package/cjs/types/theme.d.ts +1 -1
  106. package/cjs/utils/index.js +1 -1
  107. package/cjs/utils/util.d.ts +15 -0
  108. package/cjs/utils/util.js +1 -1
  109. package/dist/index.css +1 -1
  110. package/dist/index.umd.js +13 -13
  111. package/es/components/dropdown/index.d.ts +11 -98
  112. package/es/components/dropdown/src/dropdown-item.vue.d.ts +9 -7
  113. package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.mjs +103 -43
  114. package/es/components/dropdown/src/dropdown-submenu.vue.d.ts +4 -2
  115. package/es/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.mjs +42 -32
  116. package/es/components/dropdown/src/dropdown.vue.d.ts +343 -11
  117. package/es/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.mjs +105 -107
  118. package/es/components/dropdown/src/loop.mjs +5 -0
  119. package/es/components/dropdown/src/loop.vue.d.ts +18 -0
  120. package/es/components/dropdown/src/loop.vue_vue_type_script_setup_true_lang.mjs +26 -0
  121. package/es/components/dropdown/src/types.d.ts +21 -14
  122. package/es/components/dropdown/src/use-dropdown-emit.d.ts +4 -4
  123. package/es/components/index.d.ts +1 -0
  124. package/es/components/index.mjs +8 -2
  125. package/es/components/menu/index.d.ts +86 -0
  126. package/es/components/menu/index.mjs +13 -0
  127. package/es/components/menu/src/constants.d.ts +1 -0
  128. package/es/components/menu/src/constants.mjs +4 -0
  129. package/es/components/menu/src/loop.mjs +5 -0
  130. package/es/components/menu/src/loop.vue.d.ts +18 -0
  131. package/es/components/menu/src/loop.vue_vue_type_script_setup_true_lang.mjs +22 -0
  132. package/es/components/menu/src/menu-item.mjs +5 -0
  133. package/es/components/menu/src/menu-item.vue.d.ts +25 -0
  134. package/es/components/menu/src/menu-item.vue_vue_type_script_setup_true_lang.mjs +232 -0
  135. package/es/components/menu/src/menu.mjs +5 -0
  136. package/es/components/menu/src/menu.vue.d.ts +21 -0
  137. package/es/components/menu/src/menu.vue_vue_type_script_setup_true_lang.mjs +119 -0
  138. package/es/components/menu/src/submenu.mjs +5 -0
  139. package/es/components/menu/src/submenu.vue.d.ts +19 -0
  140. package/es/components/menu/src/submenu.vue_vue_type_script_setup_true_lang.mjs +176 -0
  141. package/es/components/menu/src/types.d.ts +79 -0
  142. package/es/components/menu/src/use-menu-emit.d.ts +5 -0
  143. package/es/components/menu/src/use-menu-emit.mjs +6 -0
  144. package/es/components/menu/style/css.d.ts +0 -0
  145. package/es/components/menu/style/css.mjs +2 -0
  146. package/es/components/menu/style/index.d.ts +0 -0
  147. package/es/components/menu/style/index.mjs +2 -0
  148. package/es/components/message/src/create-message.mjs +44 -43
  149. package/es/components/message/src/use-message-emit.d.ts +2 -2
  150. package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +62 -65
  151. package/es/components/popconfirm/src/use-popconfirm-emit.d.ts +2 -2
  152. package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +36 -32
  153. package/es/components/popover/src/types.d.ts +1 -0
  154. package/es/components/popover/src/use-popover-emit.d.ts +2 -2
  155. package/es/components/tooltip/src/constants.d.ts +0 -1
  156. package/es/components/tooltip/src/constants.mjs +2 -6
  157. package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +85 -82
  158. package/es/components/tooltip/src/types.d.ts +1 -0
  159. package/es/components/tooltip/src/use-tooltip-emit.d.ts +2 -2
  160. package/es/components/tooltip/src/use-tooltip.mjs +5 -5
  161. package/es/components/transition/src/use-transition-emit.d.ts +2 -2
  162. package/es/composables/index.d.ts +1 -0
  163. package/es/composables/index.mjs +2 -1
  164. package/es/composables/use-slot-node/index.d.ts +2 -0
  165. package/es/composables/use-slot-node/index.mjs +10 -0
  166. package/es/composables/use-theme/index.mjs +1 -1
  167. package/es/constants/index.d.ts +1 -0
  168. package/es/constants/index.mjs +9 -0
  169. package/es/index.d.ts +183 -186
  170. package/es/index.mjs +81 -77
  171. package/es/svg-icons/create-icon.d.ts +2 -2
  172. package/es/svg-icons/src/arrow-backward.d.ts +2 -2
  173. package/es/svg-icons/src/arrow-down.d.ts +2 -2
  174. package/es/svg-icons/src/arrow-downward.d.ts +2 -2
  175. package/es/svg-icons/src/arrow-forward.d.ts +2 -2
  176. package/es/svg-icons/src/arrow-left.d.ts +2 -2
  177. package/es/svg-icons/src/arrow-right.d.ts +2 -2
  178. package/es/svg-icons/src/arrow-up.d.ts +2 -2
  179. package/es/svg-icons/src/arrow-upward.d.ts +2 -2
  180. package/es/svg-icons/src/check-circle.d.ts +2 -2
  181. package/es/svg-icons/src/check-fill.d.ts +2 -2
  182. package/es/svg-icons/src/check.d.ts +2 -2
  183. package/es/svg-icons/src/close-circle.d.ts +2 -2
  184. package/es/svg-icons/src/close-fill.d.ts +2 -2
  185. package/es/svg-icons/src/close-short.d.ts +2 -2
  186. package/es/svg-icons/src/close.d.ts +2 -2
  187. package/es/svg-icons/src/copy-closure.d.ts +2 -2
  188. package/es/svg-icons/src/copy.d.ts +2 -2
  189. package/es/svg-icons/src/delete.d.ts +2 -2
  190. package/es/svg-icons/src/exclam-fill.d.ts +2 -2
  191. package/es/svg-icons/src/exclam.d.ts +2 -2
  192. package/es/svg-icons/src/help.d.ts +2 -2
  193. package/es/svg-icons/src/info-circle.d.ts +2 -2
  194. package/es/svg-icons/src/info-fill.d.ts +2 -2
  195. package/es/svg-icons/src/loading.d.ts +2 -2
  196. package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +2 -2
  197. package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +2 -2
  198. package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +2 -2
  199. package/es/svg-icons/src/more-dot-circle.d.ts +2 -2
  200. package/es/svg-icons/src/more-dot-square-horizontal.d.ts +2 -2
  201. package/es/svg-icons/src/more-dot-square.d.ts +2 -2
  202. package/es/svg-icons/src/more-line.d.ts +2 -2
  203. package/es/svg-icons/src/play.d.ts +2 -2
  204. package/es/svg-icons/src/search-bold.d.ts +2 -2
  205. package/es/svg-icons/src/search.d.ts +2 -2
  206. package/es/svg-icons/src/star-fill.d.ts +2 -2
  207. package/es/svg-icons/src/star.d.ts +2 -2
  208. package/es/svg-icons/src/triangle-backward-fill.d.ts +2 -2
  209. package/es/svg-icons/src/triangle-downward-fill.d.ts +2 -2
  210. package/es/svg-icons/src/triangle-forward-fill.d.ts +2 -2
  211. package/es/svg-icons/src/triangle-upward-fill.d.ts +2 -2
  212. package/es/types/common.d.ts +16 -0
  213. package/es/types/component.d.ts +2 -1
  214. package/es/types/theme.d.ts +1 -1
  215. package/es/utils/index.mjs +2 -2
  216. package/es/utils/util.d.ts +15 -0
  217. package/es/utils/util.mjs +13 -3
  218. package/package.json +2 -2
  219. package/theme-chalk/index.css +1 -1
  220. package/theme-chalk/re-dropdown.css +1 -1
  221. package/theme-chalk/re-menu.css +1 -0
  222. package/theme-chalk/re-popconfirm.css +1 -1
  223. package/theme-chalk/re-popover.css +1 -1
  224. package/theme-chalk/re-tooltip.css +1 -1
  225. package/theme-chalk/src/css-vars/_dropdown.scss +44 -0
  226. package/theme-chalk/src/css-vars/_menu.scss +44 -0
  227. package/theme-chalk/src/css-vars/_popconfirm.scss +15 -0
  228. package/theme-chalk/src/css-vars/_popover.scss +24 -0
  229. package/theme-chalk/src/css-vars/_tooltip.scss +10 -5
  230. package/theme-chalk/src/dropdown.scss +44 -28
  231. package/theme-chalk/src/index.scss +1 -0
  232. package/theme-chalk/src/menu.scss +215 -0
  233. package/theme-chalk/src/mixins/_dropdown.scss +78 -0
  234. package/theme-chalk/src/mixins/_menu.scss +99 -0
  235. package/theme-chalk/src/mixins/_popconfirm.scss +21 -2
  236. package/theme-chalk/src/mixins/_popover.scss +26 -0
  237. package/theme-chalk/src/mixins/index.scss +9 -0
  238. package/theme-chalk/src/popconfirm.scss +7 -1
  239. package/theme-chalk/src/popover.scss +8 -0
  240. package/theme-chalk/src/tooltip.scss +1 -0
@@ -0,0 +1,18 @@
1
+ import { DropdownOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ options?: DropdownOption[];
5
+ };
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,26 @@
1
+ import e from "./dropdown-menu.mjs";
2
+ import t from "./dropdown-item.mjs";
3
+ import n from "./dropdown-submenu.mjs";
4
+ import { Fragment as r, createBlock as i, createElementBlock as a, defineComponent as o, mergeProps as s, openBlock as c, renderList as l, renderSlot as u, withCtx as d } from "vue";
5
+ //#region packages/components/dropdown/src/loop.vue?vue&type=script&setup=true&lang.ts
6
+ var f = o({
7
+ __name: "loop",
8
+ props: { options: { default: () => void 0 } },
9
+ setup(o) {
10
+ return (f, p) => (c(), i(e, null, {
11
+ default: d(() => [u(f.$slots, "default", {}, () => [(c(!0), a(r, null, l(o.options, (e) => {
12
+ var o;
13
+ return c(), a(r, { key: typeof e.value == "boolean" ? e.label : e.value }, [e != null && (o = e.children) != null && o.length ? (c(), i(n, {
14
+ key: 0,
15
+ item: e
16
+ }, null, 8, ["item"])) : (c(), i(t, s({
17
+ key: 1,
18
+ ref_for: !0
19
+ }, e), null, 16))], 64);
20
+ }), 128))])]),
21
+ _: 3
22
+ }));
23
+ }
24
+ });
25
+ //#endregion
26
+ export { f as default };
@@ -1,30 +1,37 @@
1
- import { Component } from 'vue';
2
- import { TooltipProps, TooltipEmits } from '../../tooltip';
1
+ import { Component, Ref, ComputedRef } from 'vue';
2
+ import { BaseMapper, Theme } from '../../../types';
3
+ import { TooltipProps, TooltipEmits, OffsetOptions } from '../../tooltip';
3
4
  export interface DropdownProps extends TooltipProps {
4
- options?: OptionsItem[];
5
- itemProps?: ItemProps;
5
+ options?: DropdownOption[];
6
+ mapper?: DropdownMapper;
6
7
  closeOnSelect?: boolean;
8
+ submenuOffset?: OffsetOptions;
7
9
  }
8
- export interface ItemProps {
9
- label: string;
10
- value: string;
11
- disabled?: string;
12
- children?: string;
10
+ export interface DropdownMapper extends BaseMapper {
13
11
  }
14
12
  export interface DropdownEmits extends TooltipEmits {
15
- select: [value: any, item: OptionsItem];
13
+ select: [value: any, item: DropdownOption];
16
14
  }
17
- export interface OptionsItem {
15
+ export interface DropdownOption {
18
16
  value: any;
19
17
  label?: string;
20
18
  disabled?: boolean;
21
- children?: OptionsItem[];
19
+ children?: DropdownOption[];
22
20
  hasChildren?: boolean;
23
21
  icon?: string | Component;
22
+ subIcon?: string | Component;
23
+ depth?: number;
24
24
  }
25
25
  export interface DropdownProvides {
26
- select: (value: any, item: OptionsItem) => void;
26
+ select: (value: any, item: DropdownOption) => void;
27
+ depth: Ref<number>;
28
+ hasOptions?: ComputedRef<boolean>;
29
+ cssDuration?: ComputedRef<number>;
30
+ theme?: ComputedRef<Theme>;
31
+ reverseTheme?: ComputedRef<boolean>;
32
+ submenuOffset?: ComputedRef<OffsetOptions>;
27
33
  }
28
34
  export interface DropdownSubmenuProps {
29
- item?: OptionsItem;
35
+ item?: DropdownOption;
36
+ depth?: number;
30
37
  }
@@ -1,13 +1,13 @@
1
1
  import { EmitFn } from 'vue';
2
- import { DropdownEmits, OptionsItem } from './types';
2
+ import { DropdownEmits, DropdownOption } from './types';
3
3
  export declare function useDropdownEmits(emits: EmitFn<DropdownEmits>): {
4
- select: (value: any, item: OptionsItem) => void;
4
+ select: (value: any, item: DropdownOption) => void;
5
5
  beforeEnter: (el: HTMLElement) => void;
6
- enter: (el: HTMLElement, done: any) => void;
6
+ enter: (el: HTMLElement, done: () => void) => void;
7
7
  enterCancelled: (el: HTMLElement) => void;
8
8
  afterEnter: (el: HTMLElement) => void;
9
9
  beforeLeave: (el: HTMLElement) => void;
10
- leave: (el: HTMLElement, done: any) => void;
10
+ leave: (el: HTMLElement, done: () => void) => void;
11
11
  leaveCancelled: (el: HTMLElement) => void;
12
12
  afterLeave: (el: HTMLElement) => void;
13
13
  };
@@ -12,3 +12,4 @@ export * from './popover';
12
12
  export * from './popconfirm';
13
13
  export * from './message';
14
14
  export * from './dropdown';
15
+ export * from './menu';
@@ -19,8 +19,10 @@ import { createMessage as x } from "./message/src/create-message.mjs";
19
19
  import { ReMessage as S } from "./message/index.mjs";
20
20
  import { useDropdownEmits as C } from "./dropdown/src/use-dropdown-emit.mjs";
21
21
  import { ReDropdown as w, ReDropdownItem as T, ReDropdownMenu as E, ReDropdownSubmenu as D } from "./dropdown/index.mjs";
22
+ import { useMenuEmits as O } from "./menu/src/use-menu-emit.mjs";
23
+ import { ReMenu as k, ReMenuItem as A, ReSubmenu as j } from "./menu/index.mjs";
22
24
  //#region packages/components/index.ts
23
- var O = e({
25
+ var M = e({
24
26
  ReButton: () => a,
25
27
  ReButtonGroup: () => o,
26
28
  ReDropdown: () => w,
@@ -29,12 +31,15 @@ var O = e({
29
31
  ReDropdownSubmenu: () => D,
30
32
  ReFilterPanel: () => f,
31
33
  ReInput: () => s,
34
+ ReMenu: () => k,
35
+ ReMenuItem: () => A,
32
36
  ReMessage: () => S,
33
37
  ReNeutralColor: () => d,
34
38
  RePopconfirm: () => b,
35
39
  RePopover: () => y,
36
40
  RePrimaryColor: () => l,
37
41
  ReSecondaryColor: () => u,
42
+ ReSubmenu: () => j,
38
43
  ReSvgIcon: () => p,
39
44
  ReTabs: () => c,
40
45
  ReTooltip: () => _,
@@ -45,9 +50,10 @@ var O = e({
45
50
  buttonTypes: () => i,
46
51
  createMessage: () => x,
47
52
  useDropdownEmits: () => C,
53
+ useMenuEmits: () => O,
48
54
  usePopoverEmits: () => v,
49
55
  useTooltipEmits: () => g,
50
56
  useTransitionEmits: () => m
51
57
  });
52
58
  //#endregion
53
- export { a as ReButton, o as ReButtonGroup, w as ReDropdown, T as ReDropdownItem, E as ReDropdownMenu, D as ReDropdownSubmenu, f as ReFilterPanel, s as ReInput, S as ReMessage, d as ReNeutralColor, b as RePopconfirm, y as RePopover, l as RePrimaryColor, u as ReSecondaryColor, p as ReSvgIcon, c as ReTabs, _ as ReTooltip, h as ReTransition, t as _buttonGroupProvideKey, n as buttonNativeTypes, r as buttonSizes, i as buttonTypes, O as components_exports, x as createMessage, C as useDropdownEmits, v as usePopoverEmits, g as useTooltipEmits, m as useTransitionEmits };
59
+ export { a as ReButton, o as ReButtonGroup, w as ReDropdown, T as ReDropdownItem, E as ReDropdownMenu, D as ReDropdownSubmenu, f as ReFilterPanel, s as ReInput, k as ReMenu, A as ReMenuItem, S as ReMessage, d as ReNeutralColor, b as RePopconfirm, y as RePopover, l as RePrimaryColor, u as ReSecondaryColor, j as ReSubmenu, p as ReSvgIcon, c as ReTabs, _ as ReTooltip, h as ReTransition, t as _buttonGroupProvideKey, n as buttonNativeTypes, r as buttonSizes, i as buttonTypes, M as components_exports, x as createMessage, C as useDropdownEmits, O as useMenuEmits, v as usePopoverEmits, g as useTooltipEmits, m as useTransitionEmits };
@@ -0,0 +1,86 @@
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
2
+ import { MenuProps, MenuOption, SubmenuProps } from './index.ts';
3
+ export * from './src/types.ts';
4
+ export * from './src/use-menu-emit.ts';
5
+ export declare const ReMenu: {
6
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< MenuProps> & Readonly<{
7
+ onSelect?: ((value: any, item: MenuOption) => any) | undefined;
8
+ }>, {
9
+ select: (value: any, item: MenuOption, exeEmit?: boolean) => void;
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ select: (value: any, item: MenuOption) => any;
12
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
13
+ P: {};
14
+ B: {};
15
+ D: {};
16
+ C: {};
17
+ M: {};
18
+ Defaults: {};
19
+ }, Readonly< MenuProps> & Readonly<{
20
+ onSelect?: ((value: any, item: MenuOption) => any) | undefined;
21
+ }>, {
22
+ select: (value: any, item: MenuOption, exeEmit?: boolean) => void;
23
+ }, {}, {}, {}, {}>;
24
+ __isFragment?: never;
25
+ __isTeleport?: never;
26
+ __isSuspense?: never;
27
+ } & ComponentOptionsBase<Readonly< MenuProps> & Readonly<{
28
+ onSelect?: ((value: any, item: MenuOption) => any) | undefined;
29
+ }>, {
30
+ select: (value: any, item: MenuOption, exeEmit?: boolean) => void;
31
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
32
+ select: (value: any, item: MenuOption) => any;
33
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
34
+ $slots: {
35
+ default?: (props: {}) => any;
36
+ };
37
+ });
38
+ export declare const ReSubmenu: {
39
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< SubmenuProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
40
+ P: {};
41
+ B: {};
42
+ D: {};
43
+ C: {};
44
+ M: {};
45
+ Defaults: {};
46
+ }, Readonly< SubmenuProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
47
+ __isFragment?: never;
48
+ __isTeleport?: never;
49
+ __isSuspense?: never;
50
+ } & ComponentOptionsBase<Readonly< SubmenuProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
51
+ $slots: {
52
+ label?: (props: {}) => any;
53
+ } & {
54
+ default?: (props: {}) => any;
55
+ } & {
56
+ default?: (props: {}) => any;
57
+ };
58
+ });
59
+ export declare const ReMenuItem: {
60
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< MenuOption> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly< MenuOption> & Readonly<{}>, {}, {}, {}, {}, {}>;
68
+ __isFragment?: never;
69
+ __isTeleport?: never;
70
+ __isSuspense?: never;
71
+ } & ComponentOptionsBase<Readonly< MenuOption> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
72
+ $slots: {
73
+ icon?: (props: {}) => any;
74
+ } & {
75
+ default?: (props: {}) => any;
76
+ } & {
77
+ 'sub-icon'?: (props: {}) => any;
78
+ } & {
79
+ 'item-submenu'?: (props: {}) => any;
80
+ } & {
81
+ default?: (props: {}) => any;
82
+ } & {
83
+ submenu?: (props: {}) => any;
84
+ };
85
+ });
86
+ export default ReMenu;
@@ -0,0 +1,13 @@
1
+ import { withInstall as e } from "../../utils/vue/index.mjs";
2
+ import "../../utils/index.mjs";
3
+ import t from "./src/menu-item.mjs";
4
+ import n from "./src/submenu.mjs";
5
+ import { useMenuEmits as r } from "./src/use-menu-emit.mjs";
6
+ import i from "./src/menu.mjs";
7
+ //#region packages/components/menu/index.ts
8
+ var a = e(i, {
9
+ Submenu: n,
10
+ MenuItem: t
11
+ }), o = e(n), s = e(t);
12
+ //#endregion
13
+ export { a as ReMenu, a as default, s as ReMenuItem, o as ReSubmenu, r as useMenuEmits };
@@ -0,0 +1 @@
1
+ export declare const _menuProvideKey: unique symbol;
@@ -0,0 +1,4 @@
1
+ //#region packages/components/menu/src/constants.ts
2
+ var e = Symbol("_menuProvideKey");
3
+ //#endregion
4
+ export { e as _menuProvideKey };
@@ -0,0 +1,5 @@
1
+ import e from "./loop.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region packages/components/menu/src/loop.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,18 @@
1
+ import { MenuOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ options?: MenuOption[];
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,22 @@
1
+ import e from "./menu-item.mjs";
2
+ import t from "./submenu.mjs";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, defineComponent as a, mergeProps as o, openBlock as s, renderList as c, renderSlot as l } from "vue";
4
+ //#region packages/components/menu/src/loop.vue?vue&type=script&setup=true&lang.ts
5
+ var u = a({
6
+ __name: "loop",
7
+ props: { options: { default: () => void 0 } },
8
+ setup(a) {
9
+ return (u, d) => (s(), i("ul", null, [l(u.$slots, "default", {}, () => [(s(!0), i(n, null, c(a.options, (a) => {
10
+ var c;
11
+ return s(), i(n, { key: typeof a.value == "boolean" ? a.label : a.value }, [a != null && (c = a.children) != null && c.length ? (s(), r(t, {
12
+ key: 0,
13
+ item: a
14
+ }, null, 8, ["item"])) : (s(), r(e, o({
15
+ key: 1,
16
+ ref_for: !0
17
+ }, a), null, 16))], 64);
18
+ }), 128))])]));
19
+ }
20
+ });
21
+ //#endregion
22
+ export { u as default };
@@ -0,0 +1,5 @@
1
+ import e from "./menu-item.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region packages/components/menu/src/menu-item.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,25 @@
1
+ import { MenuOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare var __VLS_7: {}, __VLS_14: {}, __VLS_16: {}, __VLS_30: {}, __VLS_37: {}, __VLS_39: {};
4
+ type __VLS_Slots = {} & {
5
+ icon?: (props: typeof __VLS_7) => any;
6
+ } & {
7
+ default?: (props: typeof __VLS_14) => any;
8
+ } & {
9
+ 'sub-icon'?: (props: typeof __VLS_16) => any;
10
+ } & {
11
+ 'item-submenu'?: (props: typeof __VLS_30) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_37) => any;
14
+ } & {
15
+ submenu?: (props: typeof __VLS_39) => any;
16
+ };
17
+ declare const __VLS_base: DefineComponent<MenuOption, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MenuOption> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,232 @@
1
+ import { toPx as e } from "../../../utils/util.mjs";
2
+ import "../../../utils/index.mjs";
3
+ import { useNamespace as t } from "../../../composables/use-namespace/index.mjs";
4
+ import { useTheme as n } from "../../../composables/use-theme/index.mjs";
5
+ import "../../../composables/index.mjs";
6
+ import { ReTooltip as ee } from "../../tooltip/index.mjs";
7
+ import { _menuProvideKey as r } from "./constants.mjs";
8
+ import i from "./loop.mjs";
9
+ import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as te, normalizeClass as p, normalizeStyle as m, onMounted as h, openBlock as g, ref as _, renderSlot as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
10
+ import { computedAsync as C } from "@vueuse/core";
11
+ import { ArrowDownward as w, getAsyncIcon as T } from "@rappel-ui/svg-icons";
12
+ //#region packages/components/menu/src/menu-item.vue?vue&type=script&setup=true&lang.ts
13
+ var E = ["depth"], D = f({
14
+ name: "ReMenuItem",
15
+ __name: "menu-item",
16
+ props: {
17
+ value: { default: () => void 0 },
18
+ label: { default: () => void 0 },
19
+ disabled: {
20
+ type: Boolean,
21
+ default: () => void 0
22
+ },
23
+ children: { default: () => [] },
24
+ hasChildren: {
25
+ type: Boolean,
26
+ default: () => void 0
27
+ },
28
+ icon: { default: "" },
29
+ subIcon: { default: () => w },
30
+ depth: { default: () => void 0 }
31
+ },
32
+ setup(f) {
33
+ let { n: w, nm: D, ns: O, is: k, has: ne } = t("menu"), A = a(() => {
34
+ var e, t;
35
+ return (e = f.hasChildren) == null ? ((t = f.children) == null ? void 0 : t.length) > 0 : e;
36
+ }), j = a(() => !(A.value && !f.disabled)), M = _(!1), N = te(r), P = (e) => {
37
+ e !== f.value || A.value || f.disabled || N == null || N.select(f.value, {
38
+ label: f.label,
39
+ disabled: f.disabled,
40
+ value: f.value,
41
+ children: f.children,
42
+ hasChildren: f.hasChildren,
43
+ icon: f.icon,
44
+ subIcon: f.subIcon,
45
+ depth: Z.value
46
+ }, !1);
47
+ }, re = (e) => {
48
+ if (e.stopPropagation(), !(A.value || f.disabled) && (N == null || N.select(f.value, {
49
+ label: f.label,
50
+ disabled: f.disabled,
51
+ value: f.value,
52
+ children: f.children,
53
+ hasChildren: f.hasChildren,
54
+ icon: f.icon,
55
+ subIcon: f.subIcon,
56
+ depth: Z.value
57
+ }), U.value)) {
58
+ var t;
59
+ N == null || (t = N.submenuClosers) == null || t.forEach((e) => {
60
+ var t;
61
+ return e == null || (t = e.close) == null ? void 0 : t.call(e);
62
+ });
63
+ }
64
+ }, F = C(async () => await T(f.icon)), I = C(async () => await T(f.subIcon)), L = a(() => {
65
+ var e;
66
+ return (N == null || (e = N.currentItem.value) == null ? void 0 : e.value) === f.value;
67
+ }), R = a(() => {
68
+ var e;
69
+ return N == null || (e = N.collapse) == null ? void 0 : e.value;
70
+ }), z = a(() => {
71
+ var e;
72
+ return N == null || (e = N.cssDuration) == null ? void 0 : e.value;
73
+ }), B = a(() => {
74
+ var e;
75
+ return N == null || (e = N.depth) == null ? void 0 : e.value;
76
+ }), V = a(() => {
77
+ var e;
78
+ return N == null || (e = N.offset) == null ? void 0 : e.value;
79
+ }), H = a(() => {
80
+ var e;
81
+ return N == null || (e = N.submenuOffset) == null ? void 0 : e.value;
82
+ }), U = a(() => {
83
+ var e;
84
+ return N == null || (e = N.closeOnSelect) == null ? void 0 : e.value;
85
+ }), W = a(() => {
86
+ var e;
87
+ return N == null || (e = N.direction) == null ? void 0 : e.value;
88
+ }), G = a(() => {
89
+ var e;
90
+ return N == null || (e = N.selectedKey) == null ? void 0 : e.value;
91
+ }), K = a(() => {
92
+ var e;
93
+ return N == null || (e = N.labelPadding) == null ? void 0 : e.value;
94
+ }), q = a(() => {
95
+ var e;
96
+ return N == null || (e = N.trigger) == null ? void 0 : e.value;
97
+ }), J = a(() => N.theme.value), { currentTheme: Y } = n(J.value, j.value), X = a(() => ({ "--menu-transition-duration": `${z.value}ms` })), ie = a(() => [{ padding: `0 ${e(K.value)}` }]), ae = a(() => [
98
+ O("item"),
99
+ k("disabled", f.disabled),
100
+ ne("children", A.value),
101
+ k("selected", L.value)
102
+ ]), Z = a(() => {
103
+ var e;
104
+ return (e = f.depth) == null ? B.value : e;
105
+ }), oe = a(typeof (N == null ? void 0 : N.placement) == "function" ? () => {
106
+ var e;
107
+ return N == null || (e = N.placement) == null ? void 0 : e.call(N, W.value, Z.value, A.value);
108
+ } : () => W.value === "vertical" ? Z.value === 0 ? "right" : "right-start" : Z.value === 0 ? "bottom" : "right-start"), se = a(() => W.value === "vertical" ? !R.value || !A.value && Z.value !== 0 || A.value && Z.value !== 0 && f.disabled : f.disabled || !A.value), ce = a(typeof (N == null ? void 0 : N.showArrow) == "function" ? () => {
109
+ var e;
110
+ return N == null || (e = N.showArrow) == null ? void 0 : e.call(N, Z.value);
111
+ } : () => Z.value === 0);
112
+ if (U.value && !f.disabled) {
113
+ var Q;
114
+ let e = {
115
+ value: f.value,
116
+ close: () => {
117
+ M.value = !1;
118
+ }
119
+ };
120
+ if (!(N != null && (Q = N.submenuClosers) != null && Q.some((e) => e.value === f.value))) {
121
+ var $;
122
+ N == null || ($ = N.submenuClosers) == null || $.push(e);
123
+ }
124
+ }
125
+ let le = () => {
126
+ if (Z.value === 0 && A.value) {
127
+ var e;
128
+ N == null || (e = N.topSubMenusKeys) == null || (e = e.value) == null || e.push(f.value);
129
+ }
130
+ };
131
+ return h(() => {
132
+ var e;
133
+ N == null || (e = N.registerDescendant) == null || e.call(N, f.value), le(), P(G.value);
134
+ }), (e, t) => {
135
+ var n;
136
+ return g(), c("li", {
137
+ class: p(ae.value),
138
+ depth: Z.value,
139
+ onClick: re
140
+ }, [d(x(ee), {
141
+ visible: M.value,
142
+ "onUpdate:visible": t[0] || (t[0] = (e) => M.value = e),
143
+ "floating-class": [A.value && !f.disabled ? x(D)("tooltip") : x(D)("cover"), x(k)("disabled", f.disabled)],
144
+ disabled: se.value,
145
+ teleported: Z.value === 0,
146
+ placement: oe.value,
147
+ "show-arrow": ce.value,
148
+ theme: J.value,
149
+ "reverse-theme": j.value,
150
+ "css-duration": z.value,
151
+ transform: !1,
152
+ offset: Z.value === 0 ? V.value : H.value,
153
+ transition: "menu",
154
+ trigger: !((n = e.$slots) != null && n["item-submenu"]) && !A.value ? "hover" : q.value
155
+ }, {
156
+ content: S(() => {
157
+ var t;
158
+ return [(t = e.$slots) != null && t["item-submenu"] && !f.disabled ? (g(), o(i, {
159
+ key: 0,
160
+ class: p([
161
+ x(w)(),
162
+ x(D)("tooltip"),
163
+ x(k)(x(Y), !!x(Y))
164
+ ]),
165
+ style: m(X.value)
166
+ }, {
167
+ default: S(() => [v(e.$slots, "item-submenu")]),
168
+ _: 3
169
+ }, 8, ["class", "style"])) : A.value && !f.disabled ? (g(), o(i, {
170
+ key: 1,
171
+ class: p([
172
+ x(w)(),
173
+ x(D)("tooltip"),
174
+ x(k)(x(Y), !!x(Y))
175
+ ]),
176
+ style: m(X.value),
177
+ options: f.children
178
+ }, null, 8, [
179
+ "class",
180
+ "style",
181
+ "options"
182
+ ])) : v(e.$slots, "default", {}, () => [u(b(f.label), 1)], void 0, 2)];
183
+ }),
184
+ default: S(() => [l("div", {
185
+ class: p([x(O)("label-wrap")]),
186
+ style: m(ie.value),
187
+ tabindex: "0"
188
+ }, [
189
+ f.icon ? (g(), c("div", {
190
+ key: 0,
191
+ class: p([x(O)("icon")])
192
+ }, [v(e.$slots, "icon", {}, () => [typeof x(F) == "string" ? (g(), c("i", {
193
+ key: 0,
194
+ class: p([x(F)]),
195
+ "aria-hidden": "true"
196
+ }, null, 2)) : (g(), o(y(x(F)), {
197
+ key: 1,
198
+ "aria-hidden": "true"
199
+ }))])], 2)) : s("", !0),
200
+ l("div", { class: p([x(O)("label")]) }, [v(e.$slots, "default", {}, () => [u(b(f.label), 1)])], 2),
201
+ f.subIcon && A.value ? (g(), c("div", {
202
+ key: 1,
203
+ class: p([x(O)("subicon")])
204
+ }, [v(e.$slots, "sub-icon", {}, () => [typeof x(I) == "string" ? (g(), c("i", {
205
+ key: 0,
206
+ class: p([x(I), x(w)("svg-icon")]),
207
+ "aria-hidden": "true"
208
+ }, null, 2)) : (g(), o(y(x(I)), {
209
+ key: 1,
210
+ class: p([x(w)("svg-icon")]),
211
+ "aria-hidden": "true"
212
+ }, null, 8, ["class"]))])], 2)) : s("", !0)
213
+ ], 6)]),
214
+ _: 3
215
+ }, 8, [
216
+ "visible",
217
+ "floating-class",
218
+ "disabled",
219
+ "teleported",
220
+ "placement",
221
+ "show-arrow",
222
+ "theme",
223
+ "reverse-theme",
224
+ "css-duration",
225
+ "offset",
226
+ "trigger"
227
+ ]), v(e.$slots, "submenu")], 10, E);
228
+ };
229
+ }
230
+ });
231
+ //#endregion
232
+ export { D as default };
@@ -0,0 +1,5 @@
1
+ import e from "./menu.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region packages/components/menu/src/menu.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,21 @@
1
+ import { MenuProps, MenuOption } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare var __VLS_8: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_8) => any;
6
+ };
7
+ declare const __VLS_base: DefineComponent<MenuProps, {
8
+ select: (value: any, item: MenuOption, exeEmit?: boolean) => void;
9
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ select: (value: any, item: MenuOption) => any;
11
+ }, string, PublicProps, Readonly<MenuProps> & Readonly<{
12
+ onSelect?: ((value: any, item: MenuOption) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };