@soybeanjs/ui 0.1.6 → 0.1.8

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 +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 +7 -7
  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 +6 -6
  10. package/dist/components/button/button-icon.vue.d.ts +3 -3
  11. package/dist/components/button/button-link.vue.d.ts +4 -4
  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 +7 -7
  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 +13 -13
  25. package/dist/components/context-menu/context-menu.vue.d.ts +9 -9
  26. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  27. package/dist/components/dialog/dialog-pure.vue.d.ts +12 -12
  28. package/dist/components/dialog/dialog.vue.d.ts +12 -12
  29. package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
  30. package/dist/components/drawer/drawer.vue.d.ts +12 -12
  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 +13 -13
  34. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +9 -9
  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 +4 -4
  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 +9 -9
  48. package/dist/components/menu/menu-options.vue.d.ts +9 -9
  49. package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
  50. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +4 -4
  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 +4 -4
  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 +7 -7
  61. package/dist/components/separator/separator.vue.d.ts +5 -5
  62. package/dist/components/switch/switch.vue.d.ts +3 -3
  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 +4 -4
  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-styled-item.js +1 -1
  70. package/dist/components/tree-menu/tree-menu-styled-item.vue.d.ts +2 -2
  71. package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
  72. package/dist/components/tree-menu/types.d.ts +2 -0
  73. package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
  74. package/dist/styles.css +7 -0
  75. package/dist/variants/badge.d.ts +3 -3
  76. package/dist/variants/button.d.ts +3 -3
  77. package/dist/variants/checkbox.d.ts +3 -3
  78. package/dist/variants/kbd.d.ts +3 -3
  79. package/dist/variants/pagination.d.ts +3 -3
  80. package/dist/variants/radio-group.d.ts +3 -3
  81. package/dist/variants/separator.d.ts +3 -3
  82. package/dist/variants/switch.d.ts +3 -3
  83. package/dist/variants/tabs.d.ts +3 -3
  84. package/dist/variants/tag.d.ts +3 -3
  85. package/dist/variants/textarea.d.ts +3 -3
  86. package/dist/variants/toast.d.ts +3 -3
  87. package/dist/variants/tree-menu.js +1 -1
  88. package/package.json +2 -2
@@ -220,7 +220,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
220
220
  readonly modelValue: T | undefined;
221
221
  readonly trueValue: NonNullable<T> extends infer T_1 ? T_1 extends NonNullable<T> ? T_1 extends undefined ? never : T_1 : never : never;
222
222
  readonly falseValue: NonNullable<T> extends infer T_2 ? T_2 extends NonNullable<T> ? T_2 extends undefined ? never : T_2 : never : never;
223
- } & ("inlist" | "disabled" | "required" | (T | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "modelValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "defaultValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "trueValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "falseValue" : never) extends infer T_3 extends keyof T_4 ? { readonly [K in T_3]-?: K extends "modelValue" | "trueValue" | "falseValue" ? {
223
+ } & ("disabled" | "inlist" | "required" | (T | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "modelValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "defaultValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "trueValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "falseValue" : never) extends infer T_3 extends keyof T_4 ? { readonly [K in T_3]-?: K extends "modelValue" | "trueValue" | "falseValue" ? {
224
224
  modelValue: undefined;
225
225
  trueValue: any;
226
226
  falseValue: any;
@@ -431,7 +431,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
431
431
  readonly modelValue: T | undefined;
432
432
  readonly trueValue: NonNullable<T> extends infer T_1 ? T_1 extends NonNullable<T> ? T_1 extends undefined ? never : T_1 : never : never;
433
433
  readonly falseValue: NonNullable<T> extends infer T_2 ? T_2 extends NonNullable<T> ? T_2 extends undefined ? never : T_2 : never : never;
434
- } & ("inlist" | "disabled" | "required" | (T | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "modelValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "defaultValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "trueValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "falseValue" : never) extends infer T_3 extends keyof T_4 ? { readonly [K in T_3]-?: K extends "modelValue" | "trueValue" | "falseValue" ? {
434
+ } & ("disabled" | "inlist" | "required" | (T | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "modelValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "defaultValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "trueValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "falseValue" : never) extends infer T_3 extends keyof T_4 ? { readonly [K in T_3]-?: K extends "modelValue" | "trueValue" | "falseValue" ? {
435
435
  modelValue: undefined;
436
436
  trueValue: any;
437
437
  falseValue: any;
@@ -642,7 +642,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = boolean>(__VLS_p
642
642
  readonly modelValue: T | undefined;
643
643
  readonly trueValue: NonNullable<T> extends infer T_1 ? T_1 extends NonNullable<T> ? T_1 extends undefined ? never : T_1 : never : never;
644
644
  readonly falseValue: NonNullable<T> extends infer T_2 ? T_2 extends NonNullable<T> ? T_2 extends undefined ? never : T_2 : never : never;
645
- } & ("inlist" | "disabled" | "required" | (T | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "modelValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "defaultValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "trueValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "falseValue" : never) extends infer T_3 extends keyof T_4 ? { readonly [K in T_3]-?: K extends "modelValue" | "trueValue" | "falseValue" ? {
645
+ } & ("disabled" | "inlist" | "required" | (T | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "modelValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "defaultValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "trueValue" : never) | (NonNullable<T> | undefined extends boolean | undefined ? (boolean & T) | undefined extends undefined ? never : "falseValue" : never) extends infer T_3 extends keyof T_4 ? { readonly [K in T_3]-?: K extends "modelValue" | "trueValue" | "falseValue" ? {
646
646
  modelValue: undefined;
647
647
  trueValue: any;
648
648
  falseValue: any;
@@ -1,10 +1,10 @@
1
1
  import { TabsOptionData, TabsProps } from "./types.js";
2
- import * as vue268 from "vue";
2
+ import * as vue265 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: vue268.PublicProps & __VLS_PrettifyLocal<TabsProps<T, S> & {
7
+ props: vue265.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
- }>) => vue268.VNode & {
24
+ }>) => vue265.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 vue285 from "vue";
2
+ import * as vue297 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: vue285.DefineComponent<TagProps, {}, {}, {}, {}, vue285.ComponentOptionsMixin, vue285.ComponentOptionsMixin, {
17
+ declare const __VLS_base: vue297.DefineComponent<TagProps, {}, {}, {}, {}, vue297.ComponentOptionsMixin, vue297.ComponentOptionsMixin, {
18
18
  "update:open": (open: boolean) => any;
19
- }, string, vue285.PublicProps, Readonly<TagProps> & Readonly<{
19
+ }, string, vue297.PublicProps, Readonly<TagProps> & Readonly<{
20
20
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
21
21
  }>, {
22
22
  open: boolean;
23
- }, {}, {}, {}, string, vue285.ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, vue297.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 vue280 from "vue";
2
+ import * as vue292 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: vue280.DefineComponent<TextareaProps, {}, {}, {}, {}, vue280.ComponentOptionsMixin, vue280.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue292.DefineComponent<TextareaProps, {}, {}, {}, {}, vue292.ComponentOptionsMixin, vue292.ComponentOptionsMixin, {
15
15
  "update:modelValue": (value: string) => any;
16
- }, string, vue280.PublicProps, Readonly<TextareaProps> & Readonly<{
16
+ }, string, vue292.PublicProps, Readonly<TextareaProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, vue280.ComponentProvideOptions, false, {}, any>;
18
+ }>, {}, {}, {}, {}, string, vue292.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,5 +1,5 @@
1
1
  import { TooltipProps } from "./types.js";
2
- import * as vue290 from "vue";
2
+ import * as vue309 from "vue";
3
3
  import * as _soybeanjs_headless190 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/tooltip/tooltip.vue.d.ts
@@ -9,11 +9,11 @@ type __VLS_Slots = {} & {
9
9
  } & {
10
10
  default?: (props: typeof __VLS_36) => any;
11
11
  };
12
- declare const __VLS_base: vue290.DefineComponent<TooltipProps, {}, {}, {}, {}, vue290.ComponentOptionsMixin, vue290.ComponentOptionsMixin, {
12
+ declare const __VLS_base: vue309.DefineComponent<TooltipProps, {}, {}, {}, {}, vue309.ComponentOptionsMixin, vue309.ComponentOptionsMixin, {
13
13
  "update:open": (value: boolean) => any;
14
14
  escapeKeyDown: (event: KeyboardEvent) => any;
15
15
  pointerDownOutside: (event: _soybeanjs_headless190.PointerDownOutsideEvent) => any;
16
- }, string, vue290.PublicProps, Readonly<TooltipProps> & Readonly<{
16
+ }, string, vue309.PublicProps, Readonly<TooltipProps> & Readonly<{
17
17
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
18
18
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
19
  onPointerDownOutside?: ((event: _soybeanjs_headless190.PointerDownOutsideEvent) => any) | undefined;
@@ -21,7 +21,7 @@ declare const __VLS_base: vue290.DefineComponent<TooltipProps, {}, {}, {}, {}, v
21
21
  open: boolean;
22
22
  defaultOpen: boolean;
23
23
  showArrow: boolean;
24
- }, {}, {}, {}, string, vue290.ComponentProvideOptions, false, {}, any>;
24
+ }, {}, {}, {}, string, vue309.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 vue118 from "vue";
3
- import * as _soybeanjs_headless48 from "@soybeanjs/headless";
2
+ import * as vue40 from "vue";
3
+ import * as _soybeanjs_headless8 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: vue118.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerProps<T, U, M> & {
9
+ props: vue40.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_headless48.FlattenedItem<T>;
21
+ item: _soybeanjs_headless8.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
- }>) => vue118.VNode & {
27
+ }>) => vue40.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 vue120 from "vue";
2
- import * as _soybeanjs_headless49 from "@soybeanjs/headless";
1
+ import * as vue38 from "vue";
2
+ import * as _soybeanjs_headless7 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: vue120.PublicProps & __VLS_PrettifyLocal<TreeRootProps<T, U, M> & {
7
+ props: vue38.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_headless49.FlattenedItem<T>;
20
+ item: _soybeanjs_headless7.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
- }>) => vue120.VNode & {
28
+ }>) => vue38.VNode & {
29
29
  __ctx?: Awaited<typeof __VLS_setup>;
30
30
  };
31
31
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import{cn as e}from"../../theme/merge.js";import{computed as t,createElementBlock as n,createElementVNode as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s}from"vue";import{useTreeMenuUi as c}from"@soybeanjs/headless";var l=i({name:`STreeMenuStyledItem`,__name:`tree-menu-styled-item`,props:{ui:{}},setup(i){let l=i,u=c(),d=t(()=>e(u.value.item,l.ui?.item)),f=t(()=>e(u.value.button,l.ui?.button));return(e,t)=>(o(),n(`div`,{class:a(d.value)},[r(`button`,{class:a(f.value)},[s(e.$slots,`default`)],2)],2))}});export{l as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import{treeMenuVariants as t}from"../../variants/tree-menu.js";import{computed as n,createElementBlock as r,createElementVNode as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c}from"vue";var l=a({name:`STreeMenuStyledItem`,__name:`tree-menu-styled-item`,props:{class:{},size:{},ui:{}},setup(a){let l=a,u=n(()=>e(t({size:l.size}),l.ui,{item:l.class}));return(e,t)=>(s(),r(`div`,{class:o(u.value.item)},[i(`button`,{class:o(u.value.button)},[c(e.$slots,`default`)],2)],2))}});export{l as default};
@@ -1,12 +1,12 @@
1
1
  import { TreeMenuStyledItemProps } from "./types.js";
2
- import * as vue309 from "vue";
2
+ import * as vue304 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu-styled-item.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: vue309.DefineComponent<TreeMenuStyledItemProps, {}, {}, {}, {}, vue309.ComponentOptionsMixin, vue309.ComponentOptionsMixin, {}, string, vue309.PublicProps, Readonly<TreeMenuStyledItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue309.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue304.DefineComponent<TreeMenuStyledItemProps, {}, {}, {}, {}, vue304.ComponentOptionsMixin, vue304.ComponentOptionsMixin, {}, string, vue304.PublicProps, Readonly<TreeMenuStyledItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue304.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,9 +1,9 @@
1
1
  import { TreeMenuBaseOptionData, TreeMenuProps } from "./types.js";
2
- import * as vue307 from "vue";
2
+ import * as vue302 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu.vue.d.ts
5
5
  declare const __VLS_export: <T extends TreeMenuBaseOptionData = TreeMenuBaseOptionData>(__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
- props: vue307.PublicProps & __VLS_PrettifyLocal<TreeMenuProps<T> & {
6
+ props: vue302.PublicProps & __VLS_PrettifyLocal<TreeMenuProps<T> & {
7
7
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
8
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
9
9
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
@@ -27,7 +27,7 @@ declare const __VLS_export: <T extends TreeMenuBaseOptionData = TreeMenuBaseOpti
27
27
  }) => any;
28
28
  };
29
29
  emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "update:collapsed", value: boolean) => void) & ((evt: "selectDropdown", value: string) => void);
30
- }>) => vue307.VNode & {
30
+ }>) => vue302.VNode & {
31
31
  __ctx?: Awaited<typeof __VLS_setup>;
32
32
  };
33
33
  declare const _default: typeof __VLS_export;
@@ -111,6 +111,8 @@ type TreeMenuItemEmits = {
111
111
  selectDropdown: [value: string];
112
112
  };
113
113
  interface TreeMenuStyledItemProps extends /** @vue-ignore */HTMLAttributes {
114
+ class?: ClassValue;
115
+ size?: ThemeSize;
114
116
  ui?: Partial<Pick<TreeMenuExtendedUi, 'item' | 'button'>>;
115
117
  }
116
118
  interface TreeMenuContextParams extends PropsToContext<TreeMenuProps, 'size' | 'side'> {}
@@ -1,10 +1,10 @@
1
1
  import { VirtualizerProps } from "./types.js";
2
- import * as vue0 from "vue";
2
+ import * as vue36 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: vue0.PublicProps & __VLS_PrettifyLocal<VirtualizerProps<T>> & (typeof globalThis extends {
7
+ props: vue36.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
- }>) => vue0.VNode & {
20
+ }>) => vue36.VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
23
23
  declare const _default: typeof __VLS_export;
package/dist/styles.css CHANGED
@@ -244,6 +244,13 @@
244
244
  .ml-3\.5{margin-left:0.875rem;}
245
245
  .group[data-orientation=vertical] .group-data-\[orientation\=vertical\]\:ml-4{margin-left:1rem;}
246
246
  .group[data-orientation=vertical] .group-data-\[orientation\=vertical\]\:mt-0{margin-top:0;}
247
+ .group[data-state=collapsed] .group-data-\[state\=collapsed\]\:mb-0{margin-bottom:0;}
248
+ .mb-0\.75{margin-bottom:0.1875rem;}
249
+ .mb-0\.875{margin-bottom:0.21875rem;}
250
+ .mb-1{margin-bottom:0.25rem;}
251
+ .mb-1\.25{margin-bottom:0.3125rem;}
252
+ .mb-1\.5{margin-bottom:0.375rem;}
253
+ .mb-2{margin-bottom:0.5rem;}
247
254
  .ml-\[--soybean-tree-menu-indent\]{margin-left:var(--soybean-tree-menu-indent);}
248
255
  .ml-1\.5{margin-left:0.375rem;}
249
256
  .ml-auto{margin-left:auto;}
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants1 from "tailwind-variants";
1
+ import * as tailwind_variants9 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_variants1.TVReturnType<{
5
+ declare const badgeVariants: tailwind_variants9.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  content: string;
@@ -130,7 +130,7 @@ declare const badgeVariants: tailwind_variants1.TVReturnType<{
130
130
  }, {
131
131
  root: string;
132
132
  content: string;
133
- }, tailwind_variants1.TVReturnType<{
133
+ }, tailwind_variants9.TVReturnType<{
134
134
  color: {
135
135
  primary: {
136
136
  content: 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/button.d.ts
5
- declare const buttonVariants: tailwind_variants3.TVReturnType<{
5
+ declare const buttonVariants: tailwind_variants5.TVReturnType<{
6
6
  color: {
7
7
  primary: string;
8
8
  destructive: string;
@@ -92,7 +92,7 @@ declare const buttonVariants: tailwind_variants3.TVReturnType<{
92
92
  true: string;
93
93
  false: string;
94
94
  };
95
- }, undefined, tailwind_variants3.TVReturnType<{
95
+ }, undefined, tailwind_variants5.TVReturnType<{
96
96
  color: {
97
97
  primary: string;
98
98
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants11 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/checkbox.d.ts
5
- declare const checkboxVariants: tailwind_variants11.TVReturnType<{
5
+ declare const checkboxVariants: tailwind_variants1.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -164,7 +164,7 @@ declare const checkboxVariants: tailwind_variants11.TVReturnType<{
164
164
  control: string[];
165
165
  indicator: string;
166
166
  label: string;
167
- }, tailwind_variants11.TVReturnType<{
167
+ }, tailwind_variants1.TVReturnType<{
168
168
  color: {
169
169
  primary: {
170
170
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants15 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/kbd.d.ts
5
- declare const kbdVariants: tailwind_variants15.TVReturnType<{
5
+ declare const kbdVariants: tailwind_variants11.TVReturnType<{
6
6
  variant: {
7
7
  solid: string;
8
8
  outline: string;
@@ -30,7 +30,7 @@ declare const kbdVariants: tailwind_variants15.TVReturnType<{
30
30
  xl: string;
31
31
  '2xl': string;
32
32
  };
33
- }, undefined, tailwind_variants15.TVReturnType<{
33
+ }, undefined, tailwind_variants11.TVReturnType<{
34
34
  variant: {
35
35
  solid: string;
36
36
  outline: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants17 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/pagination.d.ts
5
- declare const paginationVariants: tailwind_variants17.TVReturnType<{
5
+ declare const paginationVariants: tailwind_variants13.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  list: string;
@@ -150,7 +150,7 @@ declare const paginationVariants: tailwind_variants17.TVReturnType<{
150
150
  ellipsis: string;
151
151
  button: string[];
152
152
  navigationButton: string[];
153
- }, tailwind_variants17.TVReturnType<{
153
+ }, tailwind_variants13.TVReturnType<{
154
154
  size: {
155
155
  xs: {
156
156
  list: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants7 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_variants7.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_variants7.TVReturnType<{
180
180
  control: string[];
181
181
  indicator: string;
182
182
  label: string;
183
- }, tailwind_variants7.TVReturnType<{
183
+ }, tailwind_variants17.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_variants27 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_variants27.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_variants27.TVReturnType<{
118
118
  size: {
119
119
  xs: {
120
120
  label: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants25 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/switch.d.ts
5
- declare const switchVariants: tailwind_variants25.TVReturnType<{
5
+ declare const switchVariants: tailwind_variants21.TVReturnType<{
6
6
  color: {
7
7
  primary: {
8
8
  control: string;
@@ -136,7 +136,7 @@ declare const switchVariants: tailwind_variants25.TVReturnType<{
136
136
  root: string;
137
137
  control: string[];
138
138
  thumb: string;
139
- }, tailwind_variants25.TVReturnType<{
139
+ }, tailwind_variants21.TVReturnType<{
140
140
  color: {
141
141
  primary: {
142
142
  control: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants21 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_variants21.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_variants21.TVReturnType<{
148
148
  indicator: string;
149
149
  indicatorContent: string;
150
150
  content: string;
151
- }, tailwind_variants21.TVReturnType<{
151
+ }, tailwind_variants15.TVReturnType<{
152
152
  size: {
153
153
  xs: {
154
154
  root: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants23 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/tag.d.ts
5
- declare const tagVariants: tailwind_variants23.TVReturnType<{
5
+ declare const tagVariants: tailwind_variants31.TVReturnType<{
6
6
  color: {
7
7
  primary: string;
8
8
  destructive: string;
@@ -64,7 +64,7 @@ declare const tagVariants: tailwind_variants23.TVReturnType<{
64
64
  auto: string;
65
65
  rounded: string;
66
66
  };
67
- }, undefined, tailwind_variants23.TVReturnType<{
67
+ }, undefined, tailwind_variants31.TVReturnType<{
68
68
  color: {
69
69
  primary: string;
70
70
  destructive: string;
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants27 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/textarea.d.ts
5
- declare const textareaVariants: tailwind_variants27.TVReturnType<{
5
+ declare const textareaVariants: tailwind_variants29.TVReturnType<{
6
6
  size: {
7
7
  xs: {
8
8
  root: string;
@@ -118,7 +118,7 @@ declare const textareaVariants: tailwind_variants27.TVReturnType<{
118
118
  control: string[];
119
119
  counter: string;
120
120
  clearable: string;
121
- }, tailwind_variants27.TVReturnType<{
121
+ }, tailwind_variants29.TVReturnType<{
122
122
  size: {
123
123
  xs: {
124
124
  root: string;
@@ -1,9 +1,9 @@
1
- import * as tailwind_variants29 from "tailwind-variants";
1
+ import * as tailwind_variants23 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_variants29.TVReturnType<{
6
+ declare const toastViewportVariants: tailwind_variants23.TVReturnType<{
7
7
  size: {
8
8
  xs: string;
9
9
  sm: string;
@@ -37,7 +37,7 @@ declare const toastViewportVariants: tailwind_variants29.TVReturnType<{
37
37
  'bottom-left': string;
38
38
  'bottom-right': string;
39
39
  };
40
- }, undefined, tailwind_variants29.TVReturnType<{
40
+ }, undefined, tailwind_variants23.TVReturnType<{
41
41
  size: {
42
42
  xs: string;
43
43
  sm: string;
@@ -1 +1 @@
1
- import{tv as e}from"tailwind-variants";const t=e({slots:{root:`group flex-1 flex flex-col w-full h-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out`,groupRoot:``,group:`flex flex-col m-0 p-0 list-none`,groupLabel:`flex items-center text-foreground/70 group-data-[state=collapsed]:size-0 group-data-[state=collapsed]:p-0 group-data-[state=collapsed]:opacity-0 group-data-[state=collapsed]:overflow-hidden transition-[height,padding,opacity]-200`,item:`relative m-0 p-0 group-data-[state=collapsed]:hover:bg-sidebar-accent group-data-[state=collapsed]:hover:rounded-sm`,button:[`group/button relative flex items-center w-full rounded-sm outline-none cursor-pointer select-none group-data-[state=collapsed]:overflow-hidden`,`data-[active=true]:bg-primary/10 data-[active=true]:text-primary`,`data-[active=false]:hover:bg-sidebar-accent data-[active=false]:focus:bg-sidebar-accent`,`data-[child-active=true]:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],collapsibleIcon:`shrink-0 ml-auto text-muted-foreground transition-transform-200 group-data-[state=open]/button:rotate-90 group-data-[child-active=true]/button:text-primary`,collapsibleContent:[`overflow-hidden transition will-change-auto`,`data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down`],sub:`flex flex-col m-0 list-none ml-[--soybean-tree-menu-indent] border-l border-sidebar-border border-solid`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground`,itemBadge:``,itemTag:`shrink-0 ml-auto`,itemAction:`absolute -translate-y-1/2 top-1/2`,itemAbsolute:`absolute top-0 left-0 w-full h-full z-1 cursor-pointer`},variants:{size:{xs:{root:`gap-2 p-1.5 text-2xs data-[state=collapsed]:gap-0.75`,groupLabel:`h-6 gap-1 px-1.5 py-1 text-3xs`,group:`gap-0.75`,button:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,sub:`gap-0.75 px-1.5 pt-0.75`,subButton:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,itemLinkIcon:`size-2 -ml-1`,itemAction:`right-1.5`},sm:{root:`gap-2.5 p-1.75 text-xs data-[state=collapsed]:gap-0.875`,groupLabel:`h-7 gap-1.5 px-1.75 py-1 text-2xs`,group:`gap-0.875`,button:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,sub:`gap-0.875 px-1.75 pt-0.875`,subButton:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,itemLinkIcon:`size-2.5 -ml-1.5`,itemAction:`right-1.75`},md:{root:`gap-3 p-2 text-sm data-[state=collapsed]:gap-1`,groupLabel:`h-8 gap-2 px-2 py-1.5 text-xs`,group:`gap-1`,button:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,sub:`gap-1 px-2 pt-1`,subButton:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,itemLinkIcon:`size-3 -ml-2`,itemAction:`right-2`},lg:{root:`gap-3.5 p-2.25 text-base data-[state=collapsed]:gap-1.25`,groupLabel:`h-9 gap-2.5 px-2.25 py-1.5 text-sm`,group:`gap-1.25`,button:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,sub:`gap-1.25 px-2.25 pt-1.25`,subButton:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,itemLinkIcon:`size-3.5 -ml-2.5`,itemAction:`right-2.25`},xl:{root:`gap-4 p-2.5 text-lg data-[state=collapsed]:gap-1.5`,groupLabel:`h-10 gap-3 px-2.5 py-1.5 text-base`,group:`gap-1.5`,button:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,sub:`gap-1.5 px-2.5 pt-1.5`,subButton:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,itemLinkIcon:`size-4 -ml-3`,itemAction:`right-2.5`},"2xl":{root:`gap-5 p-3 text-xl data-[state=collapsed]:gap-2`,groupLabel:`h-12 gap-3.5 px-3 py-2.5 text-lg`,group:`gap-2`,button:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,sub:`gap-2 px-3 pt-2`,subButton:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,itemLinkIcon:`size-5 -ml-4`,itemAction:`right-3`}}},defaultVariants:{size:`md`}});export{t as treeMenuVariants};
1
+ import{tv as e}from"tailwind-variants";const t=e({slots:{root:`group flex-1 flex flex-col w-full h-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out`,groupRoot:`group-data-[state=collapsed]:mb-0`,group:`flex flex-col m-0 p-0 list-none`,groupLabel:`flex items-center text-foreground/70 group-data-[state=collapsed]:size-0 group-data-[state=collapsed]:p-0 group-data-[state=collapsed]:opacity-0 group-data-[state=collapsed]:overflow-hidden transition-[height,padding,opacity]-200`,item:`relative m-0 p-0 group-data-[state=collapsed]:hover:bg-sidebar-accent group-data-[state=collapsed]:hover:rounded-sm`,button:[`group/button relative flex items-center w-full rounded-sm outline-none cursor-pointer select-none group-data-[state=collapsed]:overflow-hidden`,`data-[active=true]:bg-primary/10 data-[active=true]:text-primary`,`data-[active=false]:hover:bg-sidebar-accent data-[active=false]:focus:bg-sidebar-accent`,`data-[child-active=true]:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],collapsibleIcon:`shrink-0 ml-auto text-muted-foreground transition-transform-200 group-data-[state=open]/button:rotate-90 group-data-[child-active=true]/button:text-primary`,collapsibleContent:[`overflow-hidden transition will-change-auto`,`data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down`],sub:`flex flex-col m-0 list-none ml-[--soybean-tree-menu-indent] border-l border-sidebar-border border-solid`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground`,itemBadge:``,itemTag:`shrink-0 ml-auto`,itemAction:`absolute -translate-y-1/2 top-1/2`,itemAbsolute:`absolute top-0 left-0 w-full h-full z-1 cursor-pointer`},variants:{size:{xs:{root:`gap-2 p-1.5 text-2xs data-[state=collapsed]:gap-0.75`,groupRoot:`mb-0.75`,groupLabel:`h-6 gap-1 px-1.5 py-1 text-3xs`,group:`gap-0.75`,button:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,sub:`gap-0.75 px-1.5 pt-0.75`,subButton:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,itemLinkIcon:`size-2 -ml-1`,itemAction:`right-1.5`},sm:{root:`gap-2.5 p-1.75 text-xs data-[state=collapsed]:gap-0.875`,groupRoot:`mb-0.875`,groupLabel:`h-7 gap-1.5 px-1.75 py-1 text-2xs`,group:`gap-0.875`,button:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,sub:`gap-0.875 px-1.75 pt-0.875`,subButton:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,itemLinkIcon:`size-2.5 -ml-1.5`,itemAction:`right-1.75`},md:{root:`gap-1 p-2 text-sm data-[state=collapsed]:gap-1`,groupRoot:`mb-1`,groupLabel:`h-8 gap-2 px-2 py-1.5 text-xs`,group:`gap-1`,button:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,sub:`gap-1 px-2 pt-1`,subButton:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,itemLinkIcon:`size-3 -ml-2`,itemAction:`right-2`},lg:{root:`gap-3.5 p-2.25 text-base data-[state=collapsed]:gap-1.25`,groupRoot:`mb-1.25`,groupLabel:`h-9 gap-2.5 px-2.25 py-1.5 text-sm`,group:`gap-1.25`,button:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,sub:`gap-1.25 px-2.25 pt-1.25`,subButton:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,itemLinkIcon:`size-3.5 -ml-2.5`,itemAction:`right-2.25`},xl:{root:`gap-4 p-2.5 text-lg data-[state=collapsed]:gap-1.5`,groupRoot:`mb-1.5`,groupLabel:`h-10 gap-3 px-2.5 py-1.5 text-base`,group:`gap-1.5`,button:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,sub:`gap-1.5 px-2.5 pt-1.5`,subButton:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,itemLinkIcon:`size-4 -ml-3`,itemAction:`right-2.5`},"2xl":{root:`gap-5 p-3 text-xl data-[state=collapsed]:gap-2`,groupRoot:`mb-2`,groupLabel:`h-12 gap-3.5 px-3 py-2.5 text-lg`,group:`gap-2`,button:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,sub:`gap-2 px-3 pt-2`,subButton:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,itemLinkIcon:`size-5 -ml-4`,itemAction:`right-3`}}},defaultVariants:{size:`md`}});export{t as treeMenuVariants};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soybeanjs/ui",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.8",
5
5
  "description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
6
6
  "author": {
7
7
  "name": "Soybean",
@@ -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.1.6"
58
+ "@soybeanjs/headless": "^0.1.8"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@soybeanjs/cli": "^1.4.4",