@soybeanjs/ui 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/components/accordion/accordion.vue.d.ts +3 -3
  2. package/dist/components/alert/alert.vue.d.ts +4 -4
  3. package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
  4. package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +3 -3
  5. package/dist/components/alert-dialog/alert-dialog.vue.d.ts +4 -4
  6. package/dist/components/avatar/avatar.vue.d.ts +4 -4
  7. package/dist/components/badge/badge.vue.d.ts +4 -4
  8. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
  9. package/dist/components/button/button-group.vue.d.ts +3 -3
  10. package/dist/components/button/button-icon.vue.d.ts +3 -3
  11. package/dist/components/button/button-link.vue.d.ts +3 -3
  12. package/dist/components/button/button-loading.vue.d.ts +3 -3
  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 +3 -3
  16. package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
  17. package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
  18. package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
  19. package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
  20. package/dist/components/command/command.vue.d.ts +8 -8
  21. package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
  22. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +9 -9
  23. package/dist/components/context-menu/context-menu-radio.vue.d.ts +9 -9
  24. package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +11 -11
  25. package/dist/components/context-menu/context-menu.vue.d.ts +8 -8
  26. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  27. package/dist/components/dialog/dialog-pure.vue.d.ts +13 -13
  28. package/dist/components/dialog/dialog.vue.d.ts +13 -13
  29. package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
  30. package/dist/components/drawer/drawer.vue.d.ts +13 -13
  31. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +9 -9
  32. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +9 -9
  33. package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +12 -12
  34. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +8 -8
  35. package/dist/components/form/form.vue.d.ts +2 -2
  36. package/dist/components/form/use-form.d.ts +22 -22
  37. package/dist/components/icon/icon.vue.d.ts +2 -2
  38. package/dist/components/input/input.vue.d.ts +4 -4
  39. package/dist/components/kbd/kbd.vue.d.ts +3 -3
  40. package/dist/components/label/label.vue.d.ts +2 -2
  41. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  42. package/dist/components/layout/layout.vue.d.ts +5 -5
  43. package/dist/components/link/link.vue.d.ts +3 -3
  44. package/dist/components/list/list-item.vue.d.ts +2 -2
  45. package/dist/components/list/list.vue.d.ts +2 -2
  46. package/dist/components/menu/menu-checkbox-options.vue.d.ts +3 -3
  47. package/dist/components/menu/menu-option.vue.d.ts +8 -8
  48. package/dist/components/menu/menu-options.vue.d.ts +8 -8
  49. package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
  50. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +13 -13
  51. package/dist/components/number-input/number-input.vue.d.ts +4 -4
  52. package/dist/components/pagination/pagination.vue.d.ts +4 -4
  53. package/dist/components/password/password.vue.d.ts +4 -4
  54. package/dist/components/popover/popover.vue.d.ts +11 -11
  55. package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
  56. package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
  57. package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
  58. package/dist/components/radio-group/radio.vue.d.ts +2 -2
  59. package/dist/components/segment/segment.vue.d.ts +3 -3
  60. package/dist/components/select/select.vue.d.ts +8 -8
  61. package/dist/components/separator/separator.vue.d.ts +5 -5
  62. package/dist/components/switch/switch.vue.d.ts +22 -22
  63. package/dist/components/tabs/tabs.vue.d.ts +3 -3
  64. package/dist/components/tag/tag.vue.d.ts +4 -4
  65. package/dist/components/textarea/textarea.vue.d.ts +4 -4
  66. package/dist/components/tooltip/tooltip.vue.d.ts +7 -7
  67. package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
  68. package/dist/components/tree/tree.vue.d.ts +5 -5
  69. package/dist/components/tree-menu/tree-menu-option.js +1 -1
  70. package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
  71. package/dist/variants/alert.d.ts +3 -3
  72. package/dist/variants/badge.d.ts +3 -3
  73. package/dist/variants/button.d.ts +3 -3
  74. package/dist/variants/checkbox.d.ts +3 -3
  75. package/dist/variants/radio-group.d.ts +3 -3
  76. package/dist/variants/separator.d.ts +3 -3
  77. package/dist/variants/tabs.d.ts +3 -3
  78. package/dist/variants/tag.d.ts +3 -3
  79. package/dist/variants/textarea.d.ts +3 -3
  80. package/package.json +2 -2
@@ -2,13 +2,13 @@ import { ThemeColor, ThemeSize } from "../../theme/types.js";
2
2
  import "../../theme/index.js";
3
3
  import { SwitchShape } from "../../variants/switch.js";
4
4
  import { SwitchProps } from "./types.js";
5
- import * as vue252 from "vue";
6
- import * as _soybeanjs_headless166 from "@soybeanjs/headless";
5
+ import * as vue270 from "vue";
6
+ import * as _soybeanjs_headless178 from "@soybeanjs/headless";
7
7
  import { AcceptableBooleanValue } from "@soybeanjs/headless";
8
8
 
9
9
  //#region src/components/switch/switch.vue.d.ts
10
10
  declare const __VLS_export: <T extends AcceptableBooleanValue = 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<{
11
- props: vue252.PublicProps & __VLS_PrettifyLocal<SwitchProps<T> & {
11
+ props: vue270.PublicProps & __VLS_PrettifyLocal<SwitchProps<T> & {
12
12
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P;
@@ -18,13 +18,13 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
18
18
  slots: {
19
19
  leading?: (props: {
20
20
  modelValue: (Readonly<{
21
- class: _soybeanjs_headless166.ClassValue;
22
- ui: Partial<_soybeanjs_headless166.SwitchUi>;
21
+ class: _soybeanjs_headless178.ClassValue;
22
+ ui: Partial<_soybeanjs_headless178.SwitchUi>;
23
23
  color: ThemeColor;
24
24
  size: ThemeSize;
25
25
  shape: SwitchShape;
26
- controlProps: _soybeanjs_headless166.SwitchControlProps;
27
- thumbProps: _soybeanjs_headless166.SwitchThumbProps;
26
+ controlProps: _soybeanjs_headless178.SwitchControlProps;
27
+ thumbProps: _soybeanjs_headless178.SwitchThumbProps;
28
28
  defaultValue: NonNullable<T> | undefined;
29
29
  disabled: boolean;
30
30
  value: string;
@@ -32,14 +32,14 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
32
32
  required: boolean;
33
33
  manifest: string | undefined;
34
34
  innerHTML: string | undefined;
35
- style: vue252.StyleValue | undefined;
35
+ style: vue270.StyleValue | undefined;
36
36
  accesskey: string | undefined;
37
37
  contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
38
38
  contextmenu: string | undefined;
39
39
  dir: string | undefined;
40
40
  draggable: (boolean | "true" | "false") | undefined;
41
41
  enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
42
- enterKeyHint: vue252.HTMLAttributes["enterkeyhint"];
42
+ enterKeyHint: vue270.HTMLAttributes["enterkeyhint"];
43
43
  hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
44
44
  id: string | undefined;
45
45
  inert: (boolean | "true" | "false") | undefined;
@@ -229,13 +229,13 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
229
229
  } & {
230
230
  default?: (props: {
231
231
  modelValue: (Readonly<{
232
- class: _soybeanjs_headless166.ClassValue;
233
- ui: Partial<_soybeanjs_headless166.SwitchUi>;
232
+ class: _soybeanjs_headless178.ClassValue;
233
+ ui: Partial<_soybeanjs_headless178.SwitchUi>;
234
234
  color: ThemeColor;
235
235
  size: ThemeSize;
236
236
  shape: SwitchShape;
237
- controlProps: _soybeanjs_headless166.SwitchControlProps;
238
- thumbProps: _soybeanjs_headless166.SwitchThumbProps;
237
+ controlProps: _soybeanjs_headless178.SwitchControlProps;
238
+ thumbProps: _soybeanjs_headless178.SwitchThumbProps;
239
239
  defaultValue: NonNullable<T> | undefined;
240
240
  disabled: boolean;
241
241
  value: string;
@@ -243,14 +243,14 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
243
243
  required: boolean;
244
244
  manifest: string | undefined;
245
245
  innerHTML: string | undefined;
246
- style: vue252.StyleValue | undefined;
246
+ style: vue270.StyleValue | undefined;
247
247
  accesskey: string | undefined;
248
248
  contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
249
249
  contextmenu: string | undefined;
250
250
  dir: string | undefined;
251
251
  draggable: (boolean | "true" | "false") | undefined;
252
252
  enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
253
- enterKeyHint: vue252.HTMLAttributes["enterkeyhint"];
253
+ enterKeyHint: vue270.HTMLAttributes["enterkeyhint"];
254
254
  hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
255
255
  id: string | undefined;
256
256
  inert: (boolean | "true" | "false") | undefined;
@@ -440,13 +440,13 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
440
440
  } & {
441
441
  trailing?: (props: {
442
442
  modelValue: (Readonly<{
443
- class: _soybeanjs_headless166.ClassValue;
444
- ui: Partial<_soybeanjs_headless166.SwitchUi>;
443
+ class: _soybeanjs_headless178.ClassValue;
444
+ ui: Partial<_soybeanjs_headless178.SwitchUi>;
445
445
  color: ThemeColor;
446
446
  size: ThemeSize;
447
447
  shape: SwitchShape;
448
- controlProps: _soybeanjs_headless166.SwitchControlProps;
449
- thumbProps: _soybeanjs_headless166.SwitchThumbProps;
448
+ controlProps: _soybeanjs_headless178.SwitchControlProps;
449
+ thumbProps: _soybeanjs_headless178.SwitchThumbProps;
450
450
  defaultValue: NonNullable<T> | undefined;
451
451
  disabled: boolean;
452
452
  value: string;
@@ -454,14 +454,14 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
454
454
  required: boolean;
455
455
  manifest: string | undefined;
456
456
  innerHTML: string | undefined;
457
- style: vue252.StyleValue | undefined;
457
+ style: vue270.StyleValue | undefined;
458
458
  accesskey: string | undefined;
459
459
  contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
460
460
  contextmenu: string | undefined;
461
461
  dir: string | undefined;
462
462
  draggable: (boolean | "true" | "false") | undefined;
463
463
  enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
464
- enterKeyHint: vue252.HTMLAttributes["enterkeyhint"];
464
+ enterKeyHint: vue270.HTMLAttributes["enterkeyhint"];
465
465
  hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
466
466
  id: string | undefined;
467
467
  inert: (boolean | "true" | "false") | undefined;
@@ -650,7 +650,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
650
650
  }) => any;
651
651
  };
652
652
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
653
- }>) => vue252.VNode & {
653
+ }>) => vue270.VNode & {
654
654
  __ctx?: Awaited<typeof __VLS_setup>;
655
655
  };
656
656
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
1
  import { TabsOptionData, TabsProps } from "./types.js";
2
- import * as vue265 from "vue";
2
+ import * as vue278 from "vue";
3
3
  import { AcceptableValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tabs/tabs.vue.d.ts
6
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
- props: vue265.PublicProps & __VLS_PrettifyLocal<TabsProps<T, S> & {
7
+ props: vue278.PublicProps & __VLS_PrettifyLocal<TabsProps<T, S> & {
8
8
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends AcceptableValue = AcceptableValue, S exte
21
21
  }) => any;
22
22
  };
23
23
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
24
- }>) => vue265.VNode & {
24
+ }>) => vue278.VNode & {
25
25
  __ctx?: Awaited<typeof __VLS_setup>;
26
26
  };
27
27
  declare const _default: typeof __VLS_export;
@@ -1,5 +1,5 @@
1
1
  import { TagProps } from "./types.js";
2
- import * as vue242 from "vue";
2
+ import * as vue280 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: vue242.DefineComponent<TagProps, {}, {}, {}, {}, vue242.ComponentOptionsMixin, vue242.ComponentOptionsMixin, {
17
+ declare const __VLS_base: vue280.DefineComponent<TagProps, {}, {}, {}, {}, vue280.ComponentOptionsMixin, vue280.ComponentOptionsMixin, {
18
18
  "update:open": (open: boolean) => any;
19
- }, string, vue242.PublicProps, Readonly<TagProps> & Readonly<{
19
+ }, string, vue280.PublicProps, Readonly<TagProps> & Readonly<{
20
20
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
21
21
  }>, {
22
22
  open: boolean;
23
- }, {}, {}, {}, string, vue242.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue280.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,5 +1,5 @@
1
1
  import { TextareaProps } from "./types.js";
2
- import * as vue288 from "vue";
2
+ import * as vue285 from "vue";
3
3
 
4
4
  //#region src/components/textarea/textarea.vue.d.ts
5
5
  declare var __VLS_28: {
@@ -11,11 +11,11 @@ type __VLS_Slots = {} & {
11
11
  } & {
12
12
  footer?: (props: typeof __VLS_30) => any;
13
13
  };
14
- declare const __VLS_base: vue288.DefineComponent<TextareaProps, {}, {}, {}, {}, vue288.ComponentOptionsMixin, vue288.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue285.DefineComponent<TextareaProps, {}, {}, {}, {}, vue285.ComponentOptionsMixin, vue285.ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: string) => any;
16
- }, string, vue288.PublicProps, Readonly<TextareaProps> & Readonly<{
16
+ }, string, vue285.PublicProps, Readonly<TextareaProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, vue288.ComponentProvideOptions, false, {}, any>;
18
+ }>, {}, {}, {}, {}, string, vue285.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,6 +1,6 @@
1
1
  import { TooltipProps } from "./types.js";
2
- import * as vue281 from "vue";
3
- import * as _soybeanjs_headless186 from "@soybeanjs/headless";
2
+ import * as vue302 from "vue";
3
+ import * as _soybeanjs_headless190 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tooltip/tooltip.vue.d.ts
6
6
  declare var __VLS_16: {}, __VLS_36: {};
@@ -9,19 +9,19 @@ type __VLS_Slots = {} & {
9
9
  } & {
10
10
  default?: (props: typeof __VLS_36) => any;
11
11
  };
12
- declare const __VLS_base: vue281.DefineComponent<TooltipProps, {}, {}, {}, {}, vue281.ComponentOptionsMixin, vue281.ComponentOptionsMixin, {
12
+ declare const __VLS_base: vue302.DefineComponent<TooltipProps, {}, {}, {}, {}, vue302.ComponentOptionsMixin, vue302.ComponentOptionsMixin, {
13
13
  "update:open": (value: boolean) => any;
14
14
  escapeKeyDown: (event: KeyboardEvent) => any;
15
- pointerDownOutside: (event: _soybeanjs_headless186.PointerDownOutsideEvent) => any;
16
- }, string, vue281.PublicProps, Readonly<TooltipProps> & Readonly<{
15
+ pointerDownOutside: (event: _soybeanjs_headless190.PointerDownOutsideEvent) => any;
16
+ }, string, vue302.PublicProps, Readonly<TooltipProps> & Readonly<{
17
17
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
18
18
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
- onPointerDownOutside?: ((event: _soybeanjs_headless186.PointerDownOutsideEvent) => any) | undefined;
19
+ onPointerDownOutside?: ((event: _soybeanjs_headless190.PointerDownOutsideEvent) => any) | undefined;
20
20
  }>, {
21
21
  open: boolean;
22
22
  defaultOpen: boolean;
23
23
  showArrow: boolean;
24
- }, {}, {}, {}, string, vue281.ComponentProvideOptions, false, {}, any>;
24
+ }, {}, {}, {}, string, vue302.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,12 +1,12 @@
1
1
  import { TreeVirtualizerProps } from "./types.js";
2
- import * as vue131 from "vue";
3
- import * as _soybeanjs_headless117 from "@soybeanjs/headless";
2
+ import * as vue137 from "vue";
3
+ import * as _soybeanjs_headless87 from "@soybeanjs/headless";
4
4
  import { MaybeArray, TreeItemData } from "@soybeanjs/headless";
5
5
  import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
6
6
 
7
7
  //#region src/components/tree/tree-virtualizer.vue.d.ts
8
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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
9
- props: vue131.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerProps<T, U, M> & {
9
+ props: vue137.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerProps<T, U, M> & {
10
10
  "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
11
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
12
12
  }> & (typeof globalThis extends {
@@ -18,13 +18,13 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
18
18
  item?: (props: {
19
19
  key: number;
20
20
  virtualItem: _tanstack_vue_virtual0.VirtualItem;
21
- item: _soybeanjs_headless117.FlattenedItem<T>;
21
+ item: _soybeanjs_headless87.FlattenedItem<T>;
22
22
  modelValue: U;
23
23
  expanded: string[];
24
24
  }) => any;
25
25
  };
26
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);
27
- }>) => vue131.VNode & {
27
+ }>) => vue137.VNode & {
28
28
  __ctx?: Awaited<typeof __VLS_setup>;
29
29
  };
30
30
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
- import * as vue129 from "vue";
2
- import * as _soybeanjs_headless116 from "@soybeanjs/headless";
1
+ import * as vue135 from "vue";
2
+ import * as _soybeanjs_headless86 from "@soybeanjs/headless";
3
3
  import { MaybeArray, TreeItemData, TreeRootProps } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tree/tree.vue.d.ts
6
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<{
7
- props: vue129.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
7
+ props: vue135.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
8
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;
9
9
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
17
17
  } & {
18
18
  item?: (props: {
19
19
  key: string;
20
- item: _soybeanjs_headless116.FlattenedItem<T>;
20
+ item: _soybeanjs_headless86.FlattenedItem<T>;
21
21
  modelValue: U | undefined;
22
22
  expanded: string[];
23
23
  }) => any;
@@ -25,7 +25,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
25
25
  bottom?: (props: {}) => any;
26
26
  };
27
27
  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);
28
- }>) => vue129.VNode & {
28
+ }>) => vue135.VNode & {
29
29
  __ctx?: Awaited<typeof __VLS_setup>;
30
30
  };
31
31
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import e from"../link/link.js";import t from"../dropdown-menu/dropdown-menu.js";import n from"../tooltip/tooltip.js";import{useTreeMenuContext as r,useTreeMenuExtraUi as i}from"./context.js";import a from"./tree-menu-option-slot.js";import{Fragment as o,computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createSlots as f,createVNode as p,defineComponent as m,guardReactiveProps as h,mergeProps as g,normalizeClass as _,normalizeProps as v,openBlock as y,renderList as b,renderSlot as x,resolveComponent as S,resolveDynamicComponent as C,unref as w,useSlots as T,withCtx as E}from"vue";import{useOmitProps as D}from"@soybeanjs/headless/composables";import{TreeMenuButton as O,TreeMenuCollapsible as k,TreeMenuItem as A,TreeMenuSub as j,useTreeMenuRootContext as M}from"@soybeanjs/headless";var N=m({name:`STreeMenuOption`,__name:`tree-menu-option`,props:{as:{default:`li`},item:{},itemProps:{},buttonProps:{},linkProps:{},collapsibleProps:{},subProps:{}},emits:[`selectDropdown`],setup(m,{emit:N}){let P=m,F=N,I=T(),L=D(P,[`as`,`item`]),{collapsed:R,modelValue:z,onModelValueChange:B}=M(`TreeMenuOption`),{size:V,side:H,activePaths:U}=r(`TreeMenuOption`),W=i(`itemAbsolute`),G=s(()=>Object.keys(I)),K=s(()=>P.item.children??[]),q=s(()=>!!K.value.length),J=s(()=>{let e=P.item.value;return z.value===e?!1:U.value.includes(e)}),Y=s(()=>!!(P.item.to||P.item.href)),X=s(()=>{let{disabled:e,to:t,href:n,target:r,external:i}=P.item;return Y.value?{disabled:e,to:t,href:n,target:r,external:i}:{}}),Z=s(()=>R.value&&q.value),Q=s(()=>R.value&&!Z.value?P.item.label:void 0),$=s(()=>H.value===`left`?`right`:`left`),ee=s(()=>({...P.item.tooltipProps,placement:P.item.tooltipProps?.placement??$.value})),te=s(()=>({...P.item.dropdownMenuProps,trigger:P.item.dropdownMenuProps?.trigger??`hover`,placement:P.item.dropdownMenuProps?.placement??$.value})),ne=()=>{P.item.disabled||B(P.item.value)},re=e=>{P.item.disabled||(B(e.value),F(`selectDropdown`,e.value))};return(r,i)=>{let s=S(`STreeMenuOption`);return q.value?(y(),c(w(A),g({key:1},m.itemProps,{"as-child":``,value:m.item.value,disabled:m.item.disabled}),{default:E(()=>[p(w(k),g(m.collapsibleProps,{as:m.as,"disabled-collapsible":w(R)}),{trigger:E(()=>[p(w(O),g(m.buttonProps,{"disabled-active":``,"data-child-active":J.value?``:void 0}),{default:E(()=>[p(a,{item:m.item},f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,v(h(t)))])}))]),1032,[`item`])]),_:3},16,[`data-child-active`])]),extra:E(()=>[Z.value?(y(),c(t,g({key:0},te.value,{items:K.value,disabled:m.item.disabled,size:w(V),"data-menu":m.item.label,onSelect:re}),{trigger:E(()=>[d(`div`,{class:_(w(W))},null,2)]),_:1},16,[`items`,`disabled`,`size`,`data-menu`])):l(`v-if`,!0)]),default:E(()=>[p(w(j),v(h(m.subProps)),{default:E(()=>[(y(!0),u(o,null,b(K.value,e=>(y(),c(s,g({key:e.value,ref_for:!0},w(L),{item:e}),f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,g({ref_for:!0},t))])}))]),1040,[`item`]))),128))]),_:3},16)]),_:3},16,[`as`,`disabled-collapsible`])]),_:3},16,[`value`,`disabled`])):(y(),c(w(A),g({key:0},m.itemProps,{as:m.as,value:m.item.value,disabled:m.item.disabled}),{default:E(()=>[Y.value?(y(),c(w(O),g({key:0},m.buttonProps,{"as-child":``}),{default:E(()=>[p(e,v(h(X.value)),{default:E(({isHref:e})=>[p(a,{item:m.item,"show-link-icon":e},f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,v(h(t)))])}))]),1032,[`item`,`show-link-icon`])]),_:3},16)]),_:3},16)):(y(),c(w(O),v(g({key:1},m.buttonProps)),{default:E(()=>[p(a,{item:m.item},f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,v(h(t)))])}))]),1032,[`item`])]),_:3},16)),Q.value?(y(),c(n,g({key:2},ee.value,{size:w(V),content:Q.value}),{trigger:E(()=>[(y(),c(C(Y.value?e:`div`),g(X.value,{class:w(W),onClick:ne}),null,16,[`class`]))]),_:1},16,[`size`,`content`])):l(`v-if`,!0)]),_:3},16,[`as`,`value`,`disabled`]))}}});export{N as default};
1
+ import e from"../link/link.js";import t from"../dropdown-menu/dropdown-menu.js";import n from"../tooltip/tooltip.js";import{useTreeMenuContext as r,useTreeMenuExtraUi as i}from"./context.js";import a from"./tree-menu-option-slot.js";import{Fragment as o,computed as s,createBlock as c,createCommentVNode as l,createElementBlock as u,createElementVNode as d,createSlots as f,createVNode as p,defineComponent as m,guardReactiveProps as h,mergeProps as g,normalizeClass as _,normalizeProps as v,openBlock as y,renderList as b,renderSlot as x,resolveComponent as S,resolveDynamicComponent as C,unref as w,useSlots as T,withCtx as E}from"vue";import{useOmitProps as D}from"@soybeanjs/headless/composables";import{TreeMenuButton as O,TreeMenuCollapsible as k,TreeMenuItem as A,TreeMenuSub as j,useTreeMenuRootContext as M}from"@soybeanjs/headless";var N=m({name:`STreeMenuOption`,__name:`tree-menu-option`,props:{as:{default:`li`},item:{},itemProps:{},buttonProps:{},linkProps:{},collapsibleProps:{},subProps:{}},emits:[`selectDropdown`],setup(m,{emit:N}){let P=m,F=N,I=T(),L=D(P,[`as`,`item`]),{collapsed:R,modelValue:z,onModelValueChange:B}=M(`TreeMenuOption`),{size:V,side:H,activePaths:U}=r(`TreeMenuOption`),W=i(`itemAbsolute`),G=s(()=>Object.keys(I)),K=s(()=>P.item.children??[]),q=s(()=>!!K.value.length),J=s(()=>{let e=P.item.value;return z.value===e?!1:U.value.includes(e)}),Y=s(()=>!!(P.item.to||P.item.href)),X=s(()=>{let{disabled:e,to:t,href:n,target:r,external:i}=P.item;return Y.value?{disabled:e,to:t,href:n,target:r,external:i}:{}}),Z=s(()=>R.value&&q.value),Q=s(()=>R.value&&!Z.value?P.item.label:void 0),$=s(()=>H.value===`left`?`right`:`left`),ee=s(()=>({...P.item.tooltipProps,placement:P.item.tooltipProps?.placement??$.value})),te=s(()=>({...P.item.dropdownMenuProps,trigger:P.item.dropdownMenuProps?.trigger??`hover`,placement:P.item.dropdownMenuProps?.placement??$.value})),ne=()=>{P.item.disabled||B(P.item.value)},re=e=>{P.item.disabled||(B(e.value),F(`selectDropdown`,e.value))};return(r,i)=>{let s=S(`STreeMenuOption`);return q.value?(y(),c(w(A),g({key:1},m.itemProps,{"as-child":``,value:m.item.value,disabled:m.item.disabled}),{default:E(()=>[p(w(k),g(m.collapsibleProps,{as:m.as,"disabled-collapsible":w(R)}),{trigger:E(()=>[p(w(O),g(m.buttonProps,{"disabled-active":``,"data-child-active":J.value?``:void 0}),{default:E(()=>[p(a,{item:m.item},f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,v(h(t)))])}))]),1032,[`item`])]),_:3},16,[`data-child-active`])]),extra:E(()=>[Z.value?(y(),c(t,g({key:0},te.value,{items:K.value,disabled:m.item.disabled,size:w(V),"data-menu":m.item.label,"active-value":w(z),onSelect:re}),{trigger:E(()=>[d(`div`,{class:_(w(W))},null,2)]),_:1},16,[`items`,`disabled`,`size`,`data-menu`,`active-value`])):l(`v-if`,!0)]),default:E(()=>[p(w(j),v(h(m.subProps)),{default:E(()=>[(y(!0),u(o,null,b(K.value,e=>(y(),c(s,g({key:e.value,ref_for:!0},w(L),{item:e}),f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,g({ref_for:!0},t))])}))]),1040,[`item`]))),128))]),_:3},16)]),_:3},16,[`as`,`disabled-collapsible`])]),_:3},16,[`value`,`disabled`])):(y(),c(w(A),g({key:0},m.itemProps,{as:m.as,value:m.item.value,disabled:m.item.disabled}),{default:E(()=>[Y.value?(y(),c(w(O),g({key:0},m.buttonProps,{"as-child":``}),{default:E(()=>[p(e,v(h(X.value)),{default:E(({isHref:e})=>[p(a,{item:m.item,"show-link-icon":e},f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,v(h(t)))])}))]),1032,[`item`,`show-link-icon`])]),_:3},16)]),_:3},16)):(y(),c(w(O),v(g({key:1},m.buttonProps)),{default:E(()=>[p(a,{item:m.item},f({_:2},[b(G.value,e=>({name:e,fn:E(t=>[x(r.$slots,e,v(h(t)))])}))]),1032,[`item`])]),_:3},16)),Q.value?(y(),c(n,g({key:2},ee.value,{size:w(V),content:Q.value}),{trigger:E(()=>[(y(),c(C(Y.value?e:`div`),g(X.value,{class:w(W),onClick:ne}),null,16,[`class`]))]),_:1},16,[`size`,`content`])):l(`v-if`,!0)]),_:3},16,[`as`,`value`,`disabled`]))}}});export{N as default};
@@ -1,10 +1,10 @@
1
1
  import { VirtualizerProps } from "./types.js";
2
- import * as vue127 from "vue";
2
+ import * as vue139 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
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: vue127.PublicProps & __VLS_PrettifyLocal<VirtualizerProps<T>> & (typeof globalThis extends {
7
+ props: vue139.PublicProps & __VLS_PrettifyLocal<VirtualizerProps<T>> & (typeof globalThis extends {
8
8
  __VLS_PROPS_FALLBACK: infer P;
9
9
  } ? P : {});
10
10
  expose: (exposed: {}) => void;
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
17
17
  }) => any;
18
18
  };
19
19
  emit: {};
20
- }>) => vue127.VNode & {
20
+ }>) => vue139.VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
23
23
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants9 from "tailwind-variants";
1
+ import * as tailwind_variants0 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/variants/alert.d.ts
5
- declare const alertVariants: tailwind_variants9.TVReturnType<{
5
+ declare const alertVariants: tailwind_variants0.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  root: string;
@@ -196,7 +196,7 @@ declare const alertVariants: tailwind_variants9.TVReturnType<{
196
196
  title: string;
197
197
  description: string;
198
198
  close: string;
199
- }, tailwind_variants9.TVReturnType<{
199
+ }, tailwind_variants0.TVReturnType<{
200
200
  color: {
201
201
  primary: {
202
202
  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/badge.d.ts
5
- declare const badgeVariants: tailwind_variants3.TVReturnType<{
5
+ declare const badgeVariants: tailwind_variants5.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  content: string;
@@ -130,7 +130,7 @@ declare const badgeVariants: tailwind_variants3.TVReturnType<{
130
130
  }, {
131
131
  root: string;
132
132
  content: string;
133
- }, tailwind_variants3.TVReturnType<{
133
+ }, tailwind_variants5.TVReturnType<{
134
134
  color: {
135
135
  primary: {
136
136
  content: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants0 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/button.d.ts
5
- declare const buttonVariants: tailwind_variants0.TVReturnType<{
5
+ declare const buttonVariants: tailwind_variants1.TVReturnType<{
6
6
  color: {
7
7
  primary: string;
8
8
  destructive: string;
@@ -92,7 +92,7 @@ declare const buttonVariants: tailwind_variants0.TVReturnType<{
92
92
  true: string;
93
93
  false: string;
94
94
  };
95
- }, undefined, tailwind_variants0.TVReturnType<{
95
+ }, undefined, tailwind_variants1.TVReturnType<{
96
96
  color: {
97
97
  primary: string;
98
98
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants5 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/checkbox.d.ts
5
- declare const checkboxVariants: tailwind_variants5.TVReturnType<{
5
+ declare const checkboxVariants: tailwind_variants7.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -164,7 +164,7 @@ declare const checkboxVariants: tailwind_variants5.TVReturnType<{
164
164
  control: string[];
165
165
  indicator: string;
166
166
  label: string;
167
- }, tailwind_variants5.TVReturnType<{
167
+ }, tailwind_variants7.TVReturnType<{
168
168
  color: {
169
169
  primary: {
170
170
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants19 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/radio-group.d.ts
5
- declare const radioGroupVariants: tailwind_variants19.TVReturnType<{
5
+ declare const radioGroupVariants: tailwind_variants17.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -180,7 +180,7 @@ declare const radioGroupVariants: tailwind_variants19.TVReturnType<{
180
180
  control: string[];
181
181
  indicator: string;
182
182
  label: string;
183
- }, tailwind_variants19.TVReturnType<{
183
+ }, tailwind_variants17.TVReturnType<{
184
184
  color: {
185
185
  primary: {
186
186
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants31 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/separator.d.ts
5
- declare const separatorVariants: tailwind_variants31.TVReturnType<{
5
+ declare const separatorVariants: tailwind_variants21.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  label: string;
@@ -114,7 +114,7 @@ declare const separatorVariants: tailwind_variants31.TVReturnType<{
114
114
  }, {
115
115
  root: string;
116
116
  label: string;
117
- }, tailwind_variants31.TVReturnType<{
117
+ }, tailwind_variants21.TVReturnType<{
118
118
  size: {
119
119
  xs: {
120
120
  label: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants17 from "tailwind-variants";
1
+ import * as tailwind_variants15 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_variants17.TVReturnType<{
5
+ declare const tabsVariants: tailwind_variants15.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  root: string;
@@ -148,7 +148,7 @@ declare const tabsVariants: tailwind_variants17.TVReturnType<{
148
148
  indicator: string;
149
149
  indicatorContent: string;
150
150
  content: string;
151
- }, tailwind_variants17.TVReturnType<{
151
+ }, tailwind_variants15.TVReturnType<{
152
152
  size: {
153
153
  xs: {
154
154
  root: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants15 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/tag.d.ts
5
- declare const tagVariants: tailwind_variants15.TVReturnType<{
5
+ declare const tagVariants: tailwind_variants25.TVReturnType<{
6
6
  color: {
7
7
  primary: string;
8
8
  destructive: string;
@@ -64,7 +64,7 @@ declare const tagVariants: tailwind_variants15.TVReturnType<{
64
64
  auto: string;
65
65
  rounded: string;
66
66
  };
67
- }, undefined, tailwind_variants15.TVReturnType<{
67
+ }, undefined, tailwind_variants25.TVReturnType<{
68
68
  color: {
69
69
  primary: string;
70
70
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants25 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/textarea.d.ts
5
- declare const textareaVariants: tailwind_variants25.TVReturnType<{
5
+ declare const textareaVariants: tailwind_variants31.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  root: string;
@@ -118,7 +118,7 @@ declare const textareaVariants: tailwind_variants25.TVReturnType<{
118
118
  control: string[];
119
119
  counter: string;
120
120
  clearable: string;
121
- }, tailwind_variants25.TVReturnType<{
121
+ }, tailwind_variants31.TVReturnType<{
122
122
  size: {
123
123
  xs: {
124
124
  root: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/ui",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
5
5
  "homepage": "https://github.com/soybeanjs/soybean-ui",
6
6
  "bugs": {
@@ -55,7 +55,7 @@
55
55
  "tailwind-variants": "^3.2.2",
56
56
  "valibot": "^1.2.0",
57
57
  "zod": "^4.3.6",
58
- "@soybeanjs/headless": "^0.3.2"
58
+ "@soybeanjs/headless": "^0.3.3"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@soybeanjs/cli": "^1.4.4",