@soybeanjs/ui 0.0.6-beta.1 → 0.0.6-beta.2

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 (88) hide show
  1. package/dist/components/accordion/accordion.vue.d.ts +11 -9
  2. package/dist/components/alert/alert.vue.d.ts +10 -10
  3. package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +6 -6
  4. package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +6 -6
  5. package/dist/components/alert-dialog/alert-dialog.vue.d.ts +13 -13
  6. package/dist/components/avatar/avatar.vue.d.ts +11 -11
  7. package/dist/components/badge/badge.vue.d.ts +6 -6
  8. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +7 -5
  9. package/dist/components/button/button-group.vue.d.ts +8 -8
  10. package/dist/components/button/button-icon.vue.d.ts +3 -3
  11. package/dist/components/button/button-link.vue.d.ts +6 -6
  12. package/dist/components/button/button-loading.vue.d.ts +10 -10
  13. package/dist/components/button/button.vue.d.ts +4 -4
  14. package/dist/components/card/card.vue.d.ts +3 -3
  15. package/dist/components/checkbox/checkbox-card-group.vue.d.ts +8 -6
  16. package/dist/components/checkbox/checkbox-card.vue.d.ts +12 -12
  17. package/dist/components/checkbox/checkbox-group.vue.d.ts +8 -6
  18. package/dist/components/checkbox/checkbox.vue.d.ts +16 -16
  19. package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
  20. package/dist/components/command/command.vue.d.ts +12 -10
  21. package/dist/components/config-provider/config-provider.vue.d.ts +7 -7
  22. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +14 -12
  23. package/dist/components/context-menu/context-menu-radio.vue.d.ts +14 -12
  24. package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +16 -16
  25. package/dist/components/context-menu/context-menu.vue.d.ts +13 -11
  26. package/dist/components/dialog/dialog-close.vue.d.ts +4 -4
  27. package/dist/components/dialog/dialog-pure.vue.d.ts +16 -16
  28. package/dist/components/dialog/dialog.vue.d.ts +22 -22
  29. package/dist/components/drawer/drawer-close.vue.d.ts +4 -4
  30. package/dist/components/drawer/drawer.vue.d.ts +23 -23
  31. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +14 -12
  32. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +14 -12
  33. package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +16 -16
  34. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +13 -11
  35. package/dist/components/form/form-field-array.vue.d.ts +8 -8
  36. package/dist/components/form/form-field.vue.d.ts +9 -9
  37. package/dist/components/form/form.vue.d.ts +2 -2
  38. package/dist/components/icon/icon.vue.d.ts +4 -4
  39. package/dist/components/input/input.vue.d.ts +6 -6
  40. package/dist/components/kbd/kbd.vue.d.ts +3 -3
  41. package/dist/components/label/label.vue.d.ts +4 -4
  42. package/dist/components/layout/layout-trigger.vue.d.ts +4 -4
  43. package/dist/components/layout/layout.vue.d.ts +11 -11
  44. package/dist/components/link/link.vue.d.ts +5 -5
  45. package/dist/components/list/list-item.vue.d.ts +8 -8
  46. package/dist/components/list/list.vue.d.ts +4 -4
  47. package/dist/components/menu/menu-checkbox-options.vue.d.ts +7 -5
  48. package/dist/components/menu/menu-option.vue.d.ts +13 -11
  49. package/dist/components/menu/menu-options.vue.d.ts +13 -11
  50. package/dist/components/menu/menu-radio-options.vue.d.ts +7 -5
  51. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +13 -13
  52. package/dist/components/number-input/number-input.vue.d.ts +8 -8
  53. package/dist/components/pagination/pagination.vue.d.ts +10 -10
  54. package/dist/components/password/password.vue.d.ts +7 -7
  55. package/dist/components/popover/popover.vue.d.ts +15 -15
  56. package/dist/components/radio-group/radio-card-group.vue.d.ts +8 -6
  57. package/dist/components/radio-group/radio-card.vue.d.ts +6 -6
  58. package/dist/components/radio-group/radio-group.vue.d.ts +8 -6
  59. package/dist/components/radio-group/radio.vue.d.ts +4 -4
  60. package/dist/components/segment/segment.vue.d.ts +8 -8
  61. package/dist/components/select/select.vue.d.ts +12 -10
  62. package/dist/components/separator/separator.vue.d.ts +5 -5
  63. package/dist/components/switch/switch.vue.d.ts +10 -627
  64. package/dist/components/tabs/tabs.vue.d.ts +9 -11
  65. package/dist/components/tag/tag.vue.d.ts +4 -4
  66. package/dist/components/textarea/textarea.vue.d.ts +8 -8
  67. package/dist/components/toast/toast.vue.d.ts +5 -5
  68. package/dist/components/tooltip/tooltip.vue.d.ts +10 -10
  69. package/dist/components/tree/tree-virtualizer.vue.d.ts +11 -11
  70. package/dist/components/tree/tree.vue.d.ts +11 -10
  71. package/dist/components/tree-menu/tree-menu-item-wrapper.vue.d.ts +2 -2
  72. package/dist/components/tree-menu/tree-menu-item.js +1 -1
  73. package/dist/components/tree-menu/tree-menu.js +1 -1
  74. package/dist/components/tree-menu/tree-menu.vue.d.ts +9 -6
  75. package/dist/components/tree-menu/types.d.ts +3 -3
  76. package/dist/components/virtualizer/virtualizer.vue.d.ts +7 -5
  77. package/dist/variants/badge.d.ts +3 -3
  78. package/dist/variants/button.d.ts +3 -3
  79. package/dist/variants/checkbox.d.ts +3 -3
  80. package/dist/variants/kbd.d.ts +3 -3
  81. package/dist/variants/radio-group.d.ts +3 -3
  82. package/dist/variants/separator.d.ts +3 -3
  83. package/dist/variants/switch.d.ts +3 -3
  84. package/dist/variants/tabs.d.ts +3 -3
  85. package/dist/variants/tag.d.ts +3 -3
  86. package/dist/variants/textarea.d.ts +3 -3
  87. package/dist/variants/toast.d.ts +3 -3
  88. package/package.json +16 -16
@@ -1,28 +1,26 @@
1
1
  import { TabsOptionData, TabsProps } from "./types.js";
2
- import * as vue145 from "vue";
2
+ import * as vue290 from "vue";
3
3
  import { AcceptableValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tabs/tabs.vue.d.ts
6
- declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S extends TabsOptionData<NonNullable<T>> = TabsOptionData<NonNullable<T>>>(__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<{
6
+ declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S extends TabsOptionData<NonNullable<T>> = TabsOptionData<NonNullable<T>>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
7
  props: __VLS_PrettifyLocal<TabsProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
- }> & vue145.PublicProps;
9
+ }> & vue290.PublicProps & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
10
12
  expose: (exposed: {}) => void;
11
13
  attrs: any;
12
14
  slots: {
13
- trigger?: (props: S & {
14
- active: boolean;
15
- }) => any;
15
+ trigger?: (props: any) => any;
16
16
  } & {
17
- content?: (props: S & {
18
- active: boolean;
19
- }) => any;
17
+ content?: (props: any) => any;
20
18
  };
21
19
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
22
- }>) => vue145.VNode & {
20
+ }>) => vue290.VNode & {
23
21
  __ctx?: Awaited<typeof __VLS_setup>;
24
22
  };
25
23
  declare const _default: typeof __VLS_export;
26
- type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
24
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
27
25
  //#endregion
28
26
  export { _default };
@@ -1,5 +1,5 @@
1
1
  import { TagProps } from "./types.js";
2
- import * as vue46 from "vue";
2
+ import * as vue151 from "vue";
3
3
 
4
4
  //#region src/components/tag/tag.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {}, __VLS_16: {
@@ -14,13 +14,13 @@ type __VLS_Slots = {} & {
14
14
  } & {
15
15
  close?: (props: typeof __VLS_16) => any;
16
16
  };
17
- declare const __VLS_base: vue46.DefineComponent<TagProps, {}, {}, {}, {}, vue46.ComponentOptionsMixin, vue46.ComponentOptionsMixin, {
17
+ declare const __VLS_base: vue151.DefineComponent<TagProps, {}, {}, {}, {}, vue151.ComponentOptionsMixin, vue151.ComponentOptionsMixin, {
18
18
  "update:open": (open: boolean) => any;
19
- }, string, vue46.PublicProps, Readonly<TagProps> & Readonly<{
19
+ }, string, vue151.PublicProps, Readonly<TagProps> & Readonly<{
20
20
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
21
21
  }>, {
22
22
  open: boolean;
23
- }, {}, {}, {}, string, vue46.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue151.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
26
26
  type __VLS_WithSlots<T, S> = T & {
@@ -1,21 +1,21 @@
1
1
  import { TextareaProps } from "./types.js";
2
- import * as vue262 from "vue";
2
+ import * as vue281 from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea.vue.d.ts
5
- declare var __VLS_27: {
5
+ declare var __VLS_29: {
6
6
  count: number;
7
7
  maxlength: number | undefined;
8
- }, __VLS_29: {};
8
+ }, __VLS_31: {};
9
9
  type __VLS_Slots = {} & {
10
- counter?: (props: typeof __VLS_27) => any;
10
+ counter?: (props: typeof __VLS_29) => any;
11
11
  } & {
12
- footer?: (props: typeof __VLS_29) => any;
12
+ footer?: (props: typeof __VLS_31) => any;
13
13
  };
14
- declare const __VLS_base: vue262.DefineComponent<TextareaProps, {}, {}, {}, {}, vue262.ComponentOptionsMixin, vue262.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue281.DefineComponent<TextareaProps, {}, {}, {}, {}, vue281.ComponentOptionsMixin, vue281.ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: string) => any;
16
- }, string, vue262.PublicProps, Readonly<TextareaProps> & Readonly<{
16
+ }, string, vue281.PublicProps, Readonly<TextareaProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, vue262.ComponentProvideOptions, false, {}, any>;
18
+ }>, {}, {}, {}, {}, string, vue281.ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  type __VLS_WithSlots<T, S> = T & {
@@ -1,13 +1,13 @@
1
1
  //#region src/components/toast/toast.vue.d.ts
2
- declare var __VLS_16: {}, __VLS_23: {}, __VLS_30: {}, __VLS_36: {};
2
+ declare var __VLS_19: {}, __VLS_27: {}, __VLS_35: {}, __VLS_42: {};
3
3
  type __VLS_Slots = {} & {
4
- title?: (props: typeof __VLS_16) => any;
4
+ title?: (props: typeof __VLS_19) => any;
5
5
  } & {
6
- description?: (props: typeof __VLS_23) => any;
6
+ description?: (props: typeof __VLS_27) => any;
7
7
  } & {
8
- close?: (props: typeof __VLS_30) => any;
8
+ close?: (props: typeof __VLS_35) => any;
9
9
  } & {
10
- default?: (props: typeof __VLS_36) => any;
10
+ default?: (props: typeof __VLS_42) => any;
11
11
  };
12
12
  declare const __VLS_base: any;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,27 +1,27 @@
1
1
  import { TooltipProps } from "./types.js";
2
- import * as vue278 from "vue";
3
- import * as _soybeanjs_headless141 from "@soybeanjs/headless";
2
+ import * as vue292 from "vue";
3
+ import * as _soybeanjs_headless138 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tooltip/tooltip.vue.d.ts
6
- declare var __VLS_15: {}, __VLS_27: {};
6
+ declare var __VLS_16: {}, __VLS_30: {};
7
7
  type __VLS_Slots = {} & {
8
- trigger?: (props: typeof __VLS_15) => any;
8
+ trigger?: (props: typeof __VLS_16) => any;
9
9
  } & {
10
- default?: (props: typeof __VLS_27) => any;
10
+ default?: (props: typeof __VLS_30) => any;
11
11
  };
12
- declare const __VLS_base: vue278.DefineComponent<TooltipProps, {}, {}, {}, {}, vue278.ComponentOptionsMixin, vue278.ComponentOptionsMixin, {
12
+ declare const __VLS_base: vue292.DefineComponent<TooltipProps, {}, {}, {}, {}, vue292.ComponentOptionsMixin, vue292.ComponentOptionsMixin, {
13
13
  "update:open": (value: boolean) => any;
14
14
  escapeKeyDown: (event: KeyboardEvent) => any;
15
- pointerDownOutside: (event: _soybeanjs_headless141.PointerDownOutsideEvent) => any;
16
- }, string, vue278.PublicProps, Readonly<TooltipProps> & Readonly<{
15
+ pointerDownOutside: (event: _soybeanjs_headless138.PointerDownOutsideEvent) => any;
16
+ }, string, vue292.PublicProps, Readonly<TooltipProps> & Readonly<{
17
17
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
18
18
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
- onPointerDownOutside?: ((event: _soybeanjs_headless141.PointerDownOutsideEvent) => any) | undefined;
19
+ onPointerDownOutside?: ((event: _soybeanjs_headless138.PointerDownOutsideEvent) => any) | undefined;
20
20
  }>, {
21
21
  open: boolean;
22
22
  defaultOpen: boolean;
23
23
  showArrow: boolean;
24
- }, {}, {}, {}, string, vue278.ComponentProvideOptions, false, {}, any>;
24
+ }, {}, {}, {}, string, vue292.ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
27
27
  type __VLS_WithSlots<T, S> = T & {
@@ -1,31 +1,31 @@
1
1
  import { TreeVirtualizerProps } from "./types.js";
2
- import * as vue27 from "vue";
3
- import * as _soybeanjs_headless32 from "@soybeanjs/headless";
2
+ import * as vue165 from "vue";
4
3
  import { MaybeArray, TreeItemData } from "@soybeanjs/headless";
5
- import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
6
4
 
7
5
  //#region src/components/tree/tree-virtualizer.vue.d.ts
8
- declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__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<{
6
+ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
9
7
  props: __VLS_PrettifyLocal<TreeVirtualizerProps<T, U, M> & {
10
8
  "onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
11
9
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
12
- }> & vue27.PublicProps;
10
+ }> & vue165.PublicProps & (typeof globalThis extends {
11
+ __VLS_PROPS_FALLBACK: infer P;
12
+ } ? P : {});
13
13
  expose: (exposed: {}) => void;
14
14
  attrs: any;
15
15
  slots: {
16
16
  item?: (props: {
17
- key: number;
18
- virtualItem: _tanstack_vue_virtual0.VirtualItem;
19
- item: _soybeanjs_headless32.FlattenedItem<T>;
17
+ key: any;
18
+ virtualItem: any;
19
+ item: any;
20
20
  modelValue: U;
21
- expanded: string[];
21
+ expanded: any;
22
22
  }) => any;
23
23
  };
24
24
  emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
25
- }>) => vue27.VNode & {
25
+ }>) => vue165.VNode & {
26
26
  __ctx?: Awaited<typeof __VLS_setup>;
27
27
  };
28
28
  declare const _default: typeof __VLS_export;
29
- type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
29
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
30
30
  //#endregion
31
31
  export { _default };
@@ -1,32 +1,33 @@
1
- import * as vue25 from "vue";
2
- import * as _soybeanjs_headless31 from "@soybeanjs/headless";
1
+ import * as vue163 from "vue";
3
2
  import { MaybeArray, TreeItemData, TreeRootProps } from "@soybeanjs/headless";
4
3
 
5
4
  //#region src/components/tree/tree.vue.d.ts
6
- declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__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<{
5
+ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
6
  props: __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
8
7
  "onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
9
8
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
10
- }> & vue25.PublicProps;
9
+ }> & vue163.PublicProps & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
11
12
  expose: (exposed: {}) => void;
12
13
  attrs: any;
13
14
  slots: {
14
15
  top?: (props: {}) => any;
15
16
  } & {
16
17
  item?: (props: {
17
- key: string;
18
- item: _soybeanjs_headless31.FlattenedItem<T>;
19
- modelValue: U | undefined;
20
- expanded: string[];
18
+ key: any;
19
+ item: any;
20
+ modelValue: any;
21
+ expanded: any;
21
22
  }) => any;
22
23
  } & {
23
24
  bottom?: (props: {}) => any;
24
25
  };
25
26
  emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
26
- }>) => vue25.VNode & {
27
+ }>) => vue163.VNode & {
27
28
  __ctx?: Awaited<typeof __VLS_setup>;
28
29
  };
29
30
  declare const _default: typeof __VLS_export;
30
- type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
31
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
31
32
  //#endregion
32
33
  export { _default };
@@ -1,11 +1,11 @@
1
- import * as vue218 from "vue";
1
+ import * as vue158 from "vue";
2
2
 
3
3
  //#region src/components/tree-menu/tree-menu-item-wrapper.vue.d.ts
4
4
  declare var __VLS_1: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
7
7
  };
8
- declare const __VLS_base: vue218.DefineComponent<{}, {}, {}, {}, {}, vue218.ComponentOptionsMixin, vue218.ComponentOptionsMixin, {}, string, vue218.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue218.ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_base: vue158.DefineComponent<{}, {}, {}, {}, {}, vue158.ComponentOptionsMixin, vue158.ComponentOptionsMixin, {}, string, vue158.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue158.ComponentProvideOptions, true, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
10
  declare const _default: typeof __VLS_export;
11
11
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import e from"../button/button-icon.js";import t from"../icon/icon.js";import n from"../badge/badge.js";import r from"../link/link.js";import i from"../dropdown-menu/dropdown-menu.js";import a from"../tag/tag.js";import o from"../tooltip/tooltip.js";import{useTreeMenuContext as s,useTreeMenuThemeContext as c}from"./context.js";import{treeMenuCssVars as l}from"./shared.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,defineComponent as g,mergeProps as _,normalizeClass as v,openBlock as y,renderSlot as b,resolveDynamicComponent as x,toDisplayString as S,toHandlers as C,unref as w,useAttrs as T,withCtx as E,withModifiers as D}from"vue";import{useForwardListeners as O,usePickProps as k}from"@soybeanjs/headless/composables";import{TreeItem as A}from"@soybeanjs/headless";var j=g({name:`STreeMenuItem`,__name:`tree-menu-item`,props:{actionMenuProps:{},tooltipProps:{},dropdownMenuProps:{},value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{},label:{},icon:{},to:{},href:{},linkProps:{},badge:{},badgeProps:{},tag:{},tagProps:{},actions:{},onActionSelect:{type:Function},children:{}},emits:[`select`,`toggle`,`selectDropdown`],setup(g,{emit:j}){let M=g,N=j,P=T(),F=O(N),{size:I,collapsed:L}=s(`TreeMenuItem`),{ui:R}=c(`TreeMenuItem`),z=d(()=>!!(M.to||M.href||M.linkProps)),B=d(()=>{let e={disabled:M.disabled,...M.linkProps};return M.to&&(e.to=M.to),M.href&&(e.href=M.href),e}),V=k(M,[`value`,`level`,`disabled`,`disabledSelect`,`disabledToggle`],P),H=d(()=>z.value?r:`button`),U=d(()=>z.value?B.value:{}),W=d(()=>({[l.indent]:M.level-1})),G=d(()=>!!M.children?.length),K=d(()=>L.value&&G.value),q=d(()=>L.value&&!K.value?M.label:void 0),J=d(()=>!!(K.value||q.value)),Y=d(()=>({placement:`right`,...M.tooltipProps})),X=d(()=>({trigger:`hover`,contentProps:{placement:`right`},...M.dropdownMenuProps})),Z=d(()=>({color:`accent`,variant:`raw`,...M.tagProps,content:M.tag})),Q=e=>{N(`selectDropdown`,e.value)};return(r,s)=>(y(),f(w(A),_({class:w(R).item},w(V),{"data-level":g.level,"disabled-toggle":J.value,"disabled-select":J.value,style:W.value},C(w(F))),{default:E(({isExpanded:c})=>[(y(),f(x(H.value),_(U.value,{class:w(R).itemContent,"data-link":z.value?``:void 0,tabindex:`-1`}),{default:E(o=>[b(r.$slots,`leading`,{},()=>[g.icon?(y(),f(t,{key:0,icon:g.icon},null,8,[`icon`])):p(`v-if`,!0)]),b(r.$slots,`default`,{},()=>[g.badge?(y(),f(n,_({key:0},g.badgeProps,{size:w(I),content:g.badge,class:w(R).itemBadge}),{default:E(()=>[h(`span`,{class:v(w(R).itemLabel)},S(g.label),3)]),_:1},16,[`size`,`content`,`class`])):(y(),m(`span`,{key:1,class:v(w(R).itemLabel)},S(g.label),3))]),z.value&&o?.isHref?(y(),f(t,{key:0,icon:`lucide:arrow-up-right`,class:v(w(R).itemLinkIcon)},null,8,[`class`])):p(`v-if`,!0),g.tag?(y(),f(a,_({key:1},Z.value,{size:w(I),content:g.tag,class:w(R).itemTag}),null,16,[`size`,`content`,`class`])):p(`v-if`,!0),g.actions?.length?(y(),f(i,_({key:2},g.actionMenuProps,{size:w(I),items:g.actions,onSelect:g.onActionSelect}),{trigger:E(()=>[w(L)?p(`v-if`,!0):(y(),f(e,{key:0,icon:`lucide:ellipsis`,size:w(I),class:v(w(R).itemAction),onClick:s[0]||=D(()=>{},[`stop`])},null,8,[`size`,`class`]))]),_:1},16,[`size`,`items`,`onSelect`])):p(`v-if`,!0),b(r.$slots,`trailing`),G.value?(y(),f(t,{key:3,icon:`lucide:chevron-right`,"data-expanded":c?``:void 0,class:v(w(R).collapsibleIcon)},null,8,[`data-expanded`,`class`])):p(`v-if`,!0)]),_:2},1040,[`class`,`data-link`])),J.value?(y(),m(u,{key:0},[q.value?(y(),f(o,_({key:0},Y.value,{size:w(I),content:q.value}),{trigger:E(()=>[h(`div`,{class:v(w(R).itemAbsolute)},null,2)]),_:1},16,[`size`,`content`])):p(`v-if`,!0),K.value?(y(),f(i,_({key:1},X.value,{items:g.children??[],disabled:g.disabled,size:w(I),"data-menu":g.label,onSelect:Q}),{trigger:E(()=>[h(`div`,{class:v(w(R).itemAbsolute)},null,2)]),_:1},16,[`items`,`disabled`,`size`,`data-menu`])):p(`v-if`,!0)],64)):p(`v-if`,!0)]),_:3},16,[`class`,`data-level`,`disabled-toggle`,`disabled-select`,`style`]))}});export{j as default};
1
+ import e from"../button/button-icon.js";import t from"../icon/icon.js";import n from"../badge/badge.js";import r from"../link/link.js";import i from"../dropdown-menu/dropdown-menu.js";import a from"../tag/tag.js";import o from"../tooltip/tooltip.js";import{useTreeMenuContext as s,useTreeMenuThemeContext as c}from"./context.js";import{treeMenuCssVars as l}from"./shared.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,defineComponent as g,mergeProps as _,normalizeClass as v,openBlock as y,renderSlot as b,resolveDynamicComponent as x,toDisplayString as S,toHandlers as C,unref as w,useAttrs as T,withCtx as E,withModifiers as D}from"vue";import{useForwardListeners as O,usePickProps as k}from"@soybeanjs/headless/composables";import{TreeItem as A}from"@soybeanjs/headless";var j=g({name:`STreeMenuItem`,__name:`tree-menu-item`,props:{actionMenuProps:{},tooltipProps:{},dropdownMenuProps:{},value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{},label:{},icon:{},to:{},href:{},linkProps:{},badge:{},badgeProps:{},tag:{},tagProps:{},actions:{},onActionSelect:{type:Function},children:{}},emits:[`selectDropdown`],setup(g,{emit:j}){let M=g,N=j,P=T(),F=O(N),{size:I,collapsed:L}=s(`TreeMenuItem`),{ui:R}=c(`TreeMenuItem`),z=d(()=>!!(M.to||M.href||M.linkProps)),B=d(()=>{let e={disabled:M.disabled,...M.linkProps};return M.to&&(e.to=M.to),M.href&&(e.href=M.href),e}),V=k(M,[`value`,`level`,`disabled`,`disabledSelect`,`disabledToggle`],P),H=d(()=>z.value?r:`button`),U=d(()=>z.value?B.value:{}),W=d(()=>({[l.indent]:M.level-1})),G=d(()=>!!M.children?.length),K=d(()=>L.value&&G.value),q=d(()=>L.value&&!K.value?M.label:void 0),J=d(()=>!!(K.value||q.value)),Y=d(()=>({placement:`right`,...M.tooltipProps})),X=d(()=>({trigger:`hover`,contentProps:{placement:`right`},...M.dropdownMenuProps})),Z=d(()=>({color:`accent`,variant:`raw`,...M.tagProps,content:M.tag})),Q=e=>{N(`selectDropdown`,e.value)};return(r,s)=>(y(),f(w(A),_({class:w(R).item},w(V),{"data-level":g.level,"disabled-toggle":J.value,"disabled-select":J.value,style:W.value},C(w(F))),{default:E(({isExpanded:c})=>[(y(),f(x(H.value),_(U.value,{class:w(R).itemContent,"data-link":z.value?``:void 0,tabindex:`-1`}),{default:E(o=>[b(r.$slots,`leading`,{},()=>[g.icon?(y(),f(t,{key:0,icon:g.icon},null,8,[`icon`])):p(`v-if`,!0)]),b(r.$slots,`default`,{},()=>[g.badge?(y(),f(n,_({key:0},g.badgeProps,{size:w(I),content:g.badge,class:w(R).itemBadge}),{default:E(()=>[h(`span`,{class:v(w(R).itemLabel)},S(g.label),3)]),_:1},16,[`size`,`content`,`class`])):(y(),m(`span`,{key:1,class:v(w(R).itemLabel)},S(g.label),3))]),z.value&&o?.isHref?(y(),f(t,{key:0,icon:`lucide:arrow-up-right`,class:v(w(R).itemLinkIcon)},null,8,[`class`])):p(`v-if`,!0),g.tag?(y(),f(a,_({key:1},Z.value,{size:w(I),content:g.tag,class:w(R).itemTag}),null,16,[`size`,`content`,`class`])):p(`v-if`,!0),g.actions?.length?(y(),f(i,_({key:2},g.actionMenuProps,{size:w(I),items:g.actions,onSelect:g.onActionSelect}),{trigger:E(()=>[w(L)?p(`v-if`,!0):(y(),f(e,{key:0,icon:`lucide:ellipsis`,size:w(I),class:v(w(R).itemAction),onClick:s[0]||=D(()=>{},[`stop`])},null,8,[`size`,`class`]))]),_:1},16,[`size`,`items`,`onSelect`])):p(`v-if`,!0),b(r.$slots,`trailing`),G.value?(y(),f(t,{key:3,icon:`lucide:chevron-right`,"data-expanded":c?``:void 0,class:v(w(R).collapsibleIcon)},null,8,[`data-expanded`,`class`])):p(`v-if`,!0)]),_:2},1040,[`class`,`data-link`])),J.value?(y(),m(u,{key:0},[q.value?(y(),f(o,_({key:0},Y.value,{size:w(I),content:q.value}),{trigger:E(()=>[h(`div`,{class:v(w(R).itemAbsolute)},null,2)]),_:1},16,[`size`,`content`])):p(`v-if`,!0),K.value?(y(),f(i,_({key:1},X.value,{items:g.children??[],disabled:g.disabled,size:w(I),"data-menu":g.label,onSelect:Q}),{trigger:E(()=>[h(`div`,{class:v(w(R).itemAbsolute)},null,2)]),_:1},16,[`items`,`disabled`,`size`,`data-menu`])):p(`v-if`,!0)],64)):p(`v-if`,!0)]),_:3},16,[`class`,`data-level`,`disabled-toggle`,`disabled-select`,`style`]))}});export{j as default};
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import{themeSizeMap as t,themeSizeRatio as n}from"../../theme/config.js";import{treeMenuVariants as r}from"../../variants/tree-menu.js";import{provideTreeMenuContext as i,provideTreeMenuThemeContext as a}from"./context.js";import{isTreeMenuGroupOption as o,transformTreeMenuItems as s,treeMenuCssVars as c}from"./shared.js";import l from"./tree-menu-item.js";import{Fragment as u,computed as d,createBlock as f,createElementBlock as p,createElementVNode as m,defineComponent as h,isRef as g,mergeProps as _,normalizeClass as v,openBlock as y,renderList as b,renderSlot as x,toDisplayString as S,toHandlers as C,unref as w,watch as T,withCtx as E,withDirectives as D}from"vue";import{useControllableState as O,useForwardListeners as k,useOmitProps as A}from"@soybeanjs/headless/composables";import{TreeRoot as j}from"@soybeanjs/headless";import{vAutoAnimate as M}from"@formkit/auto-animate";var N=h({name:`TreeMenu`,__name:`tree-menu`,props:{size:{},ui:{},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:!1},collapsedWidth:{default:50},tooltipProps:{},dropdownMenuProps:{},badgeProps:{},tagProps:{},actionMenuProps:{},modelValue:{},defaultValue:{},multiple:{},items:{},expanded:{},defaultExpanded:{},selectionBehavior:{},toggleBehavior:{},dir:{},loop:{type:Boolean},disabled:{type:Boolean},propagateSelect:{type:Boolean},bubbleSelect:{type:Boolean},allowParentSelect:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:expanded`,`update:collapsed`],setup(h,{emit:N}){let P=h,F=N,I=A(P,[`size`,`ui`,`items`,`expanded`,`defaultExpanded`,`collapsed`,`defaultCollapsed`,`collapsedWidth`,`tooltipProps`,`dropdownMenuProps`,`badgeProps`,`tagProps`,`actionMenuProps`]),L=k(F),R=d(()=>e(r({size:P.size}),P.ui)),z=d(()=>s(P.items??[])),B=O(()=>P.expanded,e=>{F(`update:expanded`,e??[])},P.defaultExpanded??[]),V=O(()=>P.collapsed,e=>{F(`update:collapsed`,e??!1)},P.defaultCollapsed),H=d(()=>{let e=P.collapsedWidth*n[P.size||`md`];return{[c.collapsedWidth]:`${e/t.md}rem`}}),U=d(()=>V.value?`collapsed`:`expanded`);i({collapsed:V,size:d(()=>P.size??`md`)}),a({ui:R});let W=null;return T(V,e=>{if(e){W=[...B.value??[]],B.value=[];return}W?.length&&(B.value=[...W],W=null)}),(e,t)=>D((y(),f(w(j),_(w(I),{expanded:w(B),"onUpdate:expanded":t[0]||=e=>g(B)?B.value=e:null,items:z.value,class:R.value.root,"data-state":U.value,"data-collapsed":w(V)?``:void 0,style:H.value},C(w(L))),{default:E(({flattenItems:t,select:n,toggle:r})=>[x(e.$slots,`top`),(y(!0),p(u,null,b(t,({data:t,value:i,level:a})=>(y(),p(u,{key:i},[w(o)(t)?(y(),p(`li`,{key:0,class:v(R.value.groupLabel)},[x(e.$slots,`group-label`,{item:t},()=>[m(`span`,null,S(t.label),1)])],2)):(y(),f(l,_({key:1,ref_for:!0},t,{level:a,"tooltip-props":h.tooltipProps,"dropdown-menu-props":h.dropdownMenuProps,"action-menu-props":h.actionMenuProps,onSelectDropdown:e=>{n(e),r(e)}}),{default:E(()=>[x(e.$slots,`item`,{item:t,level:a})]),leading:E(()=>[x(e.$slots,`item-leading`,{item:t,level:a})]),trailing:E(()=>[x(e.$slots,`item-trailing`,{item:t,level:a})]),_:2},1040,[`level`,`tooltip-props`,`dropdown-menu-props`,`action-menu-props`,`onSelectDropdown`]))],64))),128)),x(e.$slots,`bottom`)]),_:3},16,[`expanded`,`items`,`class`,`data-state`,`data-collapsed`,`style`])),[[w(M)]])}});export{N as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import{themeSizeMap as t,themeSizeRatio as n}from"../../theme/config.js";import{treeMenuVariants as r}from"../../variants/tree-menu.js";import{provideTreeMenuContext as i,provideTreeMenuThemeContext as a}from"./context.js";import{isTreeMenuGroupOption as o,transformTreeMenuItems as s,treeMenuCssVars as c}from"./shared.js";import l from"./tree-menu-item.js";import{Fragment as u,computed as d,createBlock as f,createElementBlock as p,createElementVNode as m,defineComponent as h,isRef as g,mergeProps as _,normalizeClass as v,openBlock as y,renderList as b,renderSlot as x,toDisplayString as S,toHandlers as C,unref as w,watch as T,withCtx as E,withDirectives as D}from"vue";import{useControllableState as O,useForwardListeners as k,useOmitProps as A}from"@soybeanjs/headless/composables";import{TreeRoot as j}from"@soybeanjs/headless";import{vAutoAnimate as M}from"@formkit/auto-animate";var N=h({name:`TreeMenu`,__name:`tree-menu`,props:{size:{},ui:{},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:!1},collapsedWidth:{default:50},tooltipProps:{},dropdownMenuProps:{},badgeProps:{},tagProps:{},actionMenuProps:{},modelValue:{},defaultValue:{},multiple:{},items:{},expanded:{},defaultExpanded:{},selectionBehavior:{},toggleBehavior:{},dir:{},loop:{type:Boolean},disabled:{type:Boolean},propagateSelect:{type:Boolean},bubbleSelect:{type:Boolean},allowParentSelect:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:expanded`,`selectDropdown`,`update:collapsed`],setup(h,{emit:N}){let P=h,F=N,I=A(P,[`size`,`ui`,`items`,`expanded`,`defaultExpanded`,`collapsed`,`defaultCollapsed`,`collapsedWidth`,`tooltipProps`,`dropdownMenuProps`,`badgeProps`,`tagProps`,`actionMenuProps`]),L=k(F),R=d(()=>e(r({size:P.size}),P.ui)),z=d(()=>s(P.items??[])),B=O(()=>P.expanded,e=>{F(`update:expanded`,e??[])},P.defaultExpanded??[]),V=O(()=>P.collapsed,e=>{F(`update:collapsed`,e??!1)},P.defaultCollapsed),H=d(()=>{let e=P.collapsedWidth*n[P.size||`md`];return{[c.collapsedWidth]:`${e/t.md}rem`}}),U=d(()=>V.value?`collapsed`:`expanded`),W=d(()=>P.size??`md`),G=(e,t)=>{t.select(e),t.toggle(e),F(`selectDropdown`,e)};i({collapsed:V,size:W}),a({ui:R});let K=null;return T(V,e=>{if(e){K=[...B.value??[]],B.value=[];return}K?.length&&(B.value=[...K],K=null)}),(e,t)=>D((y(),f(w(j),_(w(I),{expanded:w(B),"onUpdate:expanded":t[0]||=e=>g(B)?B.value=e:null,items:z.value,class:R.value.root,"data-state":U.value,"data-collapsed":w(V)?``:void 0,style:H.value},C(w(L))),{default:E(({flattenItems:t,select:n,toggle:r})=>[x(e.$slots,`top`),(y(!0),p(u,null,b(t,({data:t,value:i,level:a})=>(y(),p(u,{key:i},[w(o)(t)?(y(),p(`li`,{key:0,class:v(R.value.groupLabel)},[x(e.$slots,`group-label`,{item:t},()=>[m(`span`,null,S(t.label),1)])],2)):(y(),f(l,_({key:1,ref_for:!0},t,{level:a,"tooltip-props":h.tooltipProps,"dropdown-menu-props":h.dropdownMenuProps,"action-menu-props":h.actionMenuProps,onSelectDropdown:e=>G(e,{select:n,toggle:r})}),{default:E(()=>[x(e.$slots,`item`,{item:t,level:a})]),leading:E(()=>[x(e.$slots,`item-leading`,{item:t,level:a})]),trailing:E(()=>[x(e.$slots,`item-trailing`,{item:t,level:a})]),_:2},1040,[`level`,`tooltip-props`,`dropdown-menu-props`,`action-menu-props`,`onSelectDropdown`]))],64))),128)),x(e.$slots,`bottom`)]),_:3},16,[`expanded`,`items`,`class`,`data-state`,`data-collapsed`,`style`])),[[w(M)]])}});export{N as default};
@@ -1,13 +1,16 @@
1
1
  import { TreeMenuGroupOptionData, TreeMenuOptionData, TreeMenuProps } from "./types.js";
2
- import * as vue211 from "vue";
2
+ import * as vue156 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu.vue.d.ts
5
- declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(__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<{
5
+ declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: __VLS_PrettifyLocal<TreeMenuProps<T> & {
7
7
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
8
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
9
+ onSelectDropdown?: ((value: string) => any) | undefined;
9
10
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
10
- }> & vue211.PublicProps;
11
+ }> & vue156.PublicProps & (typeof globalThis extends {
12
+ __VLS_PROPS_FALLBACK: infer P;
13
+ } ? P : {});
11
14
  expose: (exposed: {}) => void;
12
15
  attrs: any;
13
16
  slots: {
@@ -34,11 +37,11 @@ declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(
34
37
  } & {
35
38
  bottom?: (props: {}) => any;
36
39
  };
37
- emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "update:collapsed", value: boolean) => void);
38
- }>) => vue211.VNode & {
40
+ emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "selectDropdown", value: string) => void) & ((evt: "update:collapsed", value: boolean) => void);
41
+ }>) => vue156.VNode & {
39
42
  __ctx?: Awaited<typeof __VLS_setup>;
40
43
  };
41
44
  declare const _default: typeof __VLS_export;
42
- type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
45
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
43
46
  //#endregion
44
47
  export { _default };
@@ -7,7 +7,7 @@ import { DropdownMenuProps } from "../dropdown-menu/types.js";
7
7
  import { TagProps as TagProps$1 } from "../tag/types.js";
8
8
  import { TooltipProps } from "../tooltip/types.js";
9
9
  import { ComputedRef, ShallowRef } from "vue";
10
- import { ClassValue, LinkProps, TreeItemEmits, TreeItemProps, TreeRootEmits, TreeRootProps } from "@soybeanjs/headless";
10
+ import { ClassValue, LinkProps, TreeItemProps, TreeRootEmits, TreeRootProps } from "@soybeanjs/headless";
11
11
 
12
12
  //#region src/components/tree-menu/types.d.ts
13
13
  type TreeMenuState = 'expanded' | 'collapsed';
@@ -38,7 +38,7 @@ interface TreeMenuItemProps extends TreeItemProps, TreeMenuBaseOptionData {
38
38
  tooltipProps?: TooltipProps;
39
39
  dropdownMenuProps?: Omit<DropdownMenuProps, 'items'>;
40
40
  }
41
- type TreeMenuItemEmits = TreeItemEmits & {
41
+ type TreeMenuItemEmits = {
42
42
  selectDropdown: [value: string];
43
43
  };
44
44
  interface TreeMenuProps<T extends TreeMenuOptionData = TreeMenuOptionData> extends TreeRootProps<T, string, false> {
@@ -66,7 +66,7 @@ interface TreeMenuProps<T extends TreeMenuOptionData = TreeMenuOptionData> exten
66
66
  tagProps?: Omit<TagProps$1, 'content'>;
67
67
  actionMenuProps?: Omit<DropdownMenuProps, 'items'>;
68
68
  }
69
- type TreeMenuEmits = TreeRootEmits<false> & {
69
+ type TreeMenuEmits = TreeRootEmits<false> & TreeMenuItemEmits & {
70
70
  'update:collapsed': [value: boolean];
71
71
  };
72
72
  interface TreeMenuContextParams {
@@ -1,10 +1,12 @@
1
1
  import { VirtualizerProps } from "./types.js";
2
- import * as vue29 from "vue";
2
+ import * as vue167 from "vue";
3
3
  import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
4
4
 
5
5
  //#region src/components/virtualizer/virtualizer.vue.d.ts
6
- declare const __VLS_export: <T extends Record<string, any>>(__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<{
7
- props: __VLS_PrettifyLocal<VirtualizerProps<T>> & vue29.PublicProps;
6
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: __VLS_PrettifyLocal<VirtualizerProps<T>> & vue167.PublicProps & (typeof globalThis extends {
8
+ __VLS_PROPS_FALLBACK: infer P;
9
+ } ? P : {});
8
10
  expose: (exposed: {}) => void;
9
11
  attrs: any;
10
12
  slots: {
@@ -15,10 +17,10 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
15
17
  }) => any;
16
18
  };
17
19
  emit: {};
18
- }>) => vue29.VNode & {
20
+ }>) => vue167.VNode & {
19
21
  __ctx?: Awaited<typeof __VLS_setup>;
20
22
  };
21
23
  declare const _default: typeof __VLS_export;
22
- type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
24
+ type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
23
25
  //#endregion
24
26
  export { _default };
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants21 from "tailwind-variants";
1
+ import * as tailwind_variants11 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/badge.d.ts
5
- declare const badgeVariants: tailwind_variants21.TVReturnType<{
5
+ declare const badgeVariants: tailwind_variants11.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  content: string;
@@ -130,7 +130,7 @@ declare const badgeVariants: tailwind_variants21.TVReturnType<{
130
130
  }, {
131
131
  root: string;
132
132
  content: string;
133
- }, tailwind_variants21.TVReturnType<{
133
+ }, tailwind_variants11.TVReturnType<{
134
134
  color: {
135
135
  primary: {
136
136
  content: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants11 from "tailwind-variants";
1
+ import * as tailwind_variants17 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/button.d.ts
5
- declare const buttonVariants: tailwind_variants11.TVReturnType<{
5
+ declare const buttonVariants: tailwind_variants17.TVReturnType<{
6
6
  color: {
7
7
  primary: string;
8
8
  destructive: string;
@@ -92,7 +92,7 @@ declare const buttonVariants: tailwind_variants11.TVReturnType<{
92
92
  true: string;
93
93
  false: string;
94
94
  };
95
- }, undefined, tailwind_variants11.TVReturnType<{
95
+ }, undefined, tailwind_variants17.TVReturnType<{
96
96
  color: {
97
97
  primary: string;
98
98
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants15 from "tailwind-variants";
1
+ import * as tailwind_variants13 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/checkbox.d.ts
5
- declare const checkboxVariants: tailwind_variants15.TVReturnType<{
5
+ declare const checkboxVariants: tailwind_variants13.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -164,7 +164,7 @@ declare const checkboxVariants: tailwind_variants15.TVReturnType<{
164
164
  control: string[];
165
165
  indicator: string;
166
166
  label: string;
167
- }, tailwind_variants15.TVReturnType<{
167
+ }, tailwind_variants13.TVReturnType<{
168
168
  color: {
169
169
  primary: {
170
170
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants5 from "tailwind-variants";
1
+ import * as tailwind_variants21 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/kbd.d.ts
5
- declare const kbdVariants: tailwind_variants5.TVReturnType<{
5
+ declare const kbdVariants: tailwind_variants21.TVReturnType<{
6
6
  variant: {
7
7
  solid: string;
8
8
  outline: string;
@@ -30,7 +30,7 @@ declare const kbdVariants: tailwind_variants5.TVReturnType<{
30
30
  xl: string;
31
31
  '2xl': string;
32
32
  };
33
- }, undefined, tailwind_variants5.TVReturnType<{
33
+ }, undefined, tailwind_variants21.TVReturnType<{
34
34
  variant: {
35
35
  solid: string;
36
36
  outline: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants7 from "tailwind-variants";
1
+ import * as tailwind_variants1 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/radio-group.d.ts
5
- declare const radioGroupVariants: tailwind_variants7.TVReturnType<{
5
+ declare const radioGroupVariants: tailwind_variants1.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -180,7 +180,7 @@ declare const radioGroupVariants: tailwind_variants7.TVReturnType<{
180
180
  control: string[];
181
181
  indicator: string;
182
182
  label: string;
183
- }, tailwind_variants7.TVReturnType<{
183
+ }, tailwind_variants1.TVReturnType<{
184
184
  color: {
185
185
  primary: {
186
186
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants19 from "tailwind-variants";
1
+ import * as tailwind_variants31 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/separator.d.ts
5
- declare const separatorVariants: tailwind_variants19.TVReturnType<{
5
+ declare const separatorVariants: tailwind_variants31.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  label: string;
@@ -114,7 +114,7 @@ declare const separatorVariants: tailwind_variants19.TVReturnType<{
114
114
  }, {
115
115
  root: string;
116
116
  label: string;
117
- }, tailwind_variants19.TVReturnType<{
117
+ }, tailwind_variants31.TVReturnType<{
118
118
  size: {
119
119
  xs: {
120
120
  label: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants31 from "tailwind-variants";
1
+ import * as tailwind_variants27 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/switch.d.ts
5
- declare const switchVariants: tailwind_variants31.TVReturnType<{
5
+ declare const switchVariants: tailwind_variants27.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -136,7 +136,7 @@ declare const switchVariants: tailwind_variants31.TVReturnType<{
136
136
  root: string;
137
137
  control: string[];
138
138
  thumb: string;
139
- }, tailwind_variants31.TVReturnType<{
139
+ }, tailwind_variants27.TVReturnType<{
140
140
  color: {
141
141
  primary: {
142
142
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants1 from "tailwind-variants";
1
+ import * as tailwind_variants29 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/tabs.d.ts
5
- declare const tabsVariants: tailwind_variants1.TVReturnType<{
5
+ declare const tabsVariants: tailwind_variants29.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  root: string;
@@ -148,7 +148,7 @@ declare const tabsVariants: tailwind_variants1.TVReturnType<{
148
148
  indicator: string;
149
149
  indicatorContent: string;
150
150
  content: string;
151
- }, tailwind_variants1.TVReturnType<{
151
+ }, tailwind_variants29.TVReturnType<{
152
152
  size: {
153
153
  xs: {
154
154
  root: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants3 from "tailwind-variants";
1
+ import * as tailwind_variants5 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/tag.d.ts
5
- declare const tagVariants: tailwind_variants3.TVReturnType<{
5
+ declare const tagVariants: tailwind_variants5.TVReturnType<{
6
6
  color: {
7
7
  primary: string;
8
8
  destructive: string;
@@ -64,7 +64,7 @@ declare const tagVariants: tailwind_variants3.TVReturnType<{
64
64
  auto: string;
65
65
  rounded: string;
66
66
  };
67
- }, undefined, tailwind_variants3.TVReturnType<{
67
+ }, undefined, tailwind_variants5.TVReturnType<{
68
68
  color: {
69
69
  primary: string;
70
70
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants29 from "tailwind-variants";
1
+ import * as tailwind_variants25 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/textarea.d.ts
5
- declare const textareaVariants: tailwind_variants29.TVReturnType<{
5
+ declare const textareaVariants: tailwind_variants25.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  root: string;
@@ -118,7 +118,7 @@ declare const textareaVariants: tailwind_variants29.TVReturnType<{
118
118
  control: string[];
119
119
  counter: string;
120
120
  clearable: string;
121
- }, tailwind_variants29.TVReturnType<{
121
+ }, tailwind_variants25.TVReturnType<{
122
122
  size: {
123
123
  xs: {
124
124
  root: string;
@@ -1,9 +1,9 @@
1
- import * as tailwind_variants25 from "tailwind-variants";
1
+ import * as tailwind_variants7 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/toast.d.ts
5
5
 
6
- declare const toastViewportVariants: tailwind_variants25.TVReturnType<{
6
+ declare const toastViewportVariants: tailwind_variants7.TVReturnType<{
7
7
  size: {
8
8
  xs: string;
9
9
  sm: string;
@@ -37,7 +37,7 @@ declare const toastViewportVariants: tailwind_variants25.TVReturnType<{
37
37
  'bottom-left': string;
38
38
  'bottom-right': string;
39
39
  };
40
- }, undefined, tailwind_variants25.TVReturnType<{
40
+ }, undefined, tailwind_variants7.TVReturnType<{
41
41
  size: {
42
42
  xs: string;
43
43
  sm: string;