@soybeanjs/ui 0.1.8 → 0.1.9

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 (92) 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.js +1 -1
  9. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
  10. package/dist/components/breadcrumb/types.d.ts +3 -8
  11. package/dist/components/button/button-group.vue.d.ts +3 -3
  12. package/dist/components/button/button-icon.vue.d.ts +3 -3
  13. package/dist/components/button/button-link.vue.d.ts +4 -4
  14. package/dist/components/button/button-loading.vue.d.ts +3 -3
  15. package/dist/components/button/button.vue.d.ts +4 -4
  16. package/dist/components/card/card.vue.d.ts +3 -3
  17. package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
  18. package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
  19. package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
  20. package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
  21. package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
  22. package/dist/components/command/command.vue.d.ts +7 -7
  23. package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
  24. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +9 -9
  25. package/dist/components/context-menu/context-menu-radio.vue.d.ts +9 -9
  26. package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +13 -13
  27. package/dist/components/context-menu/context-menu.js +1 -1
  28. package/dist/components/context-menu/context-menu.vue.d.ts +9 -9
  29. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  30. package/dist/components/dialog/dialog-pure.vue.d.ts +11 -11
  31. package/dist/components/dialog/dialog.vue.d.ts +11 -11
  32. package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
  33. package/dist/components/drawer/drawer.vue.d.ts +11 -11
  34. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +9 -9
  35. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +9 -9
  36. package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +13 -13
  37. package/dist/components/dropdown-menu/dropdown-menu.js +1 -1
  38. package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +9 -9
  39. package/dist/components/form/form.vue.d.ts +2 -2
  40. package/dist/components/form/use-form.d.ts +17 -17
  41. package/dist/components/icon/icon.vue.d.ts +2 -2
  42. package/dist/components/input/input.vue.d.ts +4 -4
  43. package/dist/components/kbd/kbd.vue.d.ts +3 -3
  44. package/dist/components/label/label.vue.d.ts +2 -2
  45. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  46. package/dist/components/layout/layout.vue.d.ts +5 -5
  47. package/dist/components/link/link.vue.d.ts +3 -3
  48. package/dist/components/list/list-item.vue.d.ts +2 -2
  49. package/dist/components/list/list.vue.d.ts +2 -2
  50. package/dist/components/menu/menu-checkbox-options.vue.d.ts +3 -3
  51. package/dist/components/menu/menu-option.js +1 -1
  52. package/dist/components/menu/menu-option.vue.d.ts +9 -9
  53. package/dist/components/menu/menu-options.js +1 -1
  54. package/dist/components/menu/menu-options.vue.d.ts +9 -9
  55. package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
  56. package/dist/components/menu/types.d.ts +3 -8
  57. package/dist/components/navigation-menu/navigation-menu-option.js +1 -1
  58. package/dist/components/navigation-menu/navigation-menu-sub-option.js +1 -1
  59. package/dist/components/navigation-menu/navigation-menu.js +1 -1
  60. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +11 -11
  61. package/dist/components/navigation-menu/types.d.ts +4 -8
  62. package/dist/components/number-input/number-input.vue.d.ts +4 -4
  63. package/dist/components/pagination/pagination.vue.d.ts +4 -4
  64. package/dist/components/password/password.vue.d.ts +4 -4
  65. package/dist/components/popover/popover.vue.d.ts +11 -11
  66. package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
  67. package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
  68. package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
  69. package/dist/components/radio-group/radio.vue.d.ts +2 -2
  70. package/dist/components/segment/segment.vue.d.ts +3 -3
  71. package/dist/components/select/select.vue.d.ts +7 -7
  72. package/dist/components/separator/separator.vue.d.ts +5 -5
  73. package/dist/components/switch/switch.vue.d.ts +25 -25
  74. package/dist/components/tabs/tabs.vue.d.ts +3 -3
  75. package/dist/components/tag/tag.vue.d.ts +4 -4
  76. package/dist/components/textarea/textarea.vue.d.ts +4 -4
  77. package/dist/components/tooltip/tooltip.vue.d.ts +7 -7
  78. package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
  79. package/dist/components/tree/tree.vue.d.ts +5 -5
  80. package/dist/components/tree-menu/tree-menu-styled-item.vue.d.ts +2 -2
  81. package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
  82. package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
  83. package/dist/variants/badge.d.ts +3 -3
  84. package/dist/variants/button.d.ts +3 -3
  85. package/dist/variants/checkbox.d.ts +3 -3
  86. package/dist/variants/kbd.d.ts +3 -3
  87. package/dist/variants/separator.d.ts +3 -3
  88. package/dist/variants/switch.d.ts +3 -3
  89. package/dist/variants/tag.d.ts +3 -3
  90. package/dist/variants/textarea.d.ts +3 -3
  91. package/dist/variants/toast.d.ts +3 -3
  92. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { FormFieldArrayComponent, FormFieldComponent } from "./types.js";
2
2
  import * as vue138 from "vue";
3
- import * as _soybeanjs_headless92 from "@soybeanjs/headless";
3
+ import * as _soybeanjs_headless64 from "@soybeanjs/headless";
4
4
  import { FormValues, InferStandardSchemaInput, Path, StandardSchemaV1, UseFormOptions } from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/form/use-form.d.ts
@@ -9,33 +9,33 @@ declare function useForm$1<S extends StandardSchemaV1<FormValues, FormValues>>(o
9
9
  SFormFieldArray: FormFieldArrayComponent<InferStandardSchemaInput<S>>;
10
10
  handleSubmit: (event?: Event) => void;
11
11
  handleReset: (event?: Event) => void;
12
- useFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless92.FormRegisterOptions<_soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless92.FormFieldArrayStates<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless92.FormFieldArrayStates<InferStandardSchemaInput<S>, Name>>;
13
- useField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless92.FormRegisterOptions<_soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>>;
12
+ useFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless64.FormRegisterOptions<_soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless64.FormFieldArrayStates<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless64.FormFieldArrayStates<InferStandardSchemaInput<S>, Name>>;
13
+ useField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless64.FormRegisterOptions<_soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>>;
14
14
  dirty: vue138.ComputedRef<boolean>;
15
15
  setSubmitting: (isSubmitting: boolean) => void;
16
- registerField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless92.FormRegisterOptions<_soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>>;
17
- registerFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless92.FormRegisterOptions<_soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>>;
16
+ registerField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless64.FormRegisterOptions<_soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>>;
17
+ registerFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless64.FormRegisterOptions<_soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue138.Ref<_soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>>;
18
18
  validateField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => Promise<string | undefined | void>;
19
- getFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue138.WritableComputedRef<_soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>>;
20
- getFieldMeta: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue138.Ref<_soybeanjs_headless92.FormFieldMeta>;
19
+ getFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue138.WritableComputedRef<_soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>>;
20
+ getFieldMeta: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue138.Ref<_soybeanjs_headless64.FormFieldMeta>;
21
21
  getFieldError: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => string | undefined;
22
22
  getFieldTouched: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => boolean | undefined;
23
23
  getFieldDirty: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => boolean;
24
- getFieldState: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue138.Ref<_soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless92.FormFieldState<InferStandardSchemaInput<S>, Name>>;
25
- setValues: (values: InferStandardSchemaInput<S>, shouldValidate?: boolean) => Promise<void> | Promise<_soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>>;
26
- setErrors: (errors: _soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>) => void;
27
- setFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, value: _soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>, shouldValidate?: boolean) => Promise<void> | Promise<_soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>>;
24
+ getFieldState: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue138.Ref<_soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless64.FormFieldState<InferStandardSchemaInput<S>, Name>>;
25
+ setValues: (values: InferStandardSchemaInput<S>, shouldValidate?: boolean) => Promise<void> | Promise<_soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>>;
26
+ setErrors: (errors: _soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>) => void;
27
+ setFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, value: _soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>, shouldValidate?: boolean) => Promise<void> | Promise<_soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>>;
28
28
  setFieldTouched: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, touched: boolean) => void;
29
29
  setFieldError: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, error: string | undefined) => void;
30
- setFieldArrayValue: <Name extends Path<InferStandardSchemaInput<S>>, Method extends (...args: any) => any>(name: Name, value: _soybeanjs_headless92.PathValue<InferStandardSchemaInput<S>, Name>, method: Method, args?: Partial<{
30
+ setFieldArrayValue: <Name extends Path<InferStandardSchemaInput<S>>, Method extends (...args: any) => any>(name: Name, value: _soybeanjs_headless64.PathValue<InferStandardSchemaInput<S>, Name>, method: Method, args?: Partial<{
31
31
  argA: Parameters<Method>[1];
32
32
  argB: Parameters<Method>[2];
33
- }> | undefined, shouldSetValue?: boolean) => Promise<void> | Promise<_soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>>;
34
- validateForm: (values?: InferStandardSchemaInput<S> | undefined) => Promise<_soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>>;
35
- resetForm: (nextState?: _soybeanjs_headless92.FormResetState<InferStandardSchemaInput<S>> | undefined) => void;
33
+ }> | undefined, shouldSetValue?: boolean) => Promise<void> | Promise<_soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>>;
34
+ validateForm: (values?: InferStandardSchemaInput<S> | undefined) => Promise<_soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>>;
35
+ resetForm: (nextState?: _soybeanjs_headless64.FormResetState<InferStandardSchemaInput<S>> | undefined) => void;
36
36
  values: InferStandardSchemaInput<S>;
37
- touched: vue138.Ref<_soybeanjs_headless92.FormTouched<InferStandardSchemaInput<S>>, _soybeanjs_headless92.FormTouched<InferStandardSchemaInput<S>>>;
38
- errors: vue138.Ref<_soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>, _soybeanjs_headless92.FormErrors<InferStandardSchemaInput<S>>>;
37
+ touched: vue138.Ref<_soybeanjs_headless64.FormTouched<InferStandardSchemaInput<S>>, _soybeanjs_headless64.FormTouched<InferStandardSchemaInput<S>>>;
38
+ errors: vue138.Ref<_soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>, _soybeanjs_headless64.FormErrors<InferStandardSchemaInput<S>>>;
39
39
  submitCount: vue138.ShallowRef<number>;
40
40
  isSubmitting: vue138.ShallowRef<boolean>;
41
41
  isValidating: vue138.ShallowRef<boolean>;
@@ -1,8 +1,8 @@
1
1
  import { IconProps } from "./types.js";
2
- import * as vue111 from "vue";
2
+ import * as vue151 from "vue";
3
3
 
4
4
  //#region src/components/icon/icon.vue.d.ts
5
- declare const __VLS_export: vue111.DefineComponent<IconProps, {}, {}, {}, {}, vue111.ComponentOptionsMixin, vue111.ComponentOptionsMixin, {}, string, vue111.PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, vue111.ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: vue151.DefineComponent<IconProps, {}, {}, {}, {}, vue151.ComponentOptionsMixin, vue151.ComponentOptionsMixin, {}, string, vue151.PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, vue151.ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  //#endregion
8
8
  export { _default };
@@ -1,5 +1,5 @@
1
1
  import { InputProps } from "./types.js";
2
- import * as vue156 from "vue";
2
+ import * as vue166 from "vue";
3
3
 
4
4
  //#region src/components/input/input.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_24: {};
@@ -8,11 +8,11 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  trailing?: (props: typeof __VLS_24) => any;
10
10
  };
11
- declare const __VLS_base: vue156.DefineComponent<InputProps, {}, {}, {}, {}, vue156.ComponentOptionsMixin, vue156.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue166.DefineComponent<InputProps, {}, {}, {}, {}, vue166.ComponentOptionsMixin, vue166.ComponentOptionsMixin, {
12
12
  "update:modelValue": (value: string) => any;
13
- }, string, vue156.PublicProps, Readonly<InputProps> & Readonly<{
13
+ }, string, vue166.PublicProps, Readonly<InputProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, vue156.ComponentProvideOptions, false, {}, any>;
15
+ }>, {}, {}, {}, {}, string, vue166.ComponentProvideOptions, false, {}, any>;
16
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,10 @@
1
1
  import { KbdProps } from "./types.js";
2
- import * as vue161 from "vue";
2
+ import * as vue69 from "vue";
3
3
 
4
4
  //#region src/components/kbd/kbd.vue.d.ts
5
- declare const __VLS_export: vue161.DefineComponent<KbdProps, {}, {}, {}, {}, vue161.ComponentOptionsMixin, vue161.ComponentOptionsMixin, {}, string, vue161.PublicProps, Readonly<KbdProps> & Readonly<{}>, {
5
+ declare const __VLS_export: vue69.DefineComponent<KbdProps, {}, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<KbdProps> & Readonly<{}>, {
6
6
  symbolize: boolean;
7
- }, {}, {}, {}, string, vue161.ComponentProvideOptions, false, {}, any>;
7
+ }, {}, {}, {}, string, vue69.ComponentProvideOptions, false, {}, any>;
8
8
  declare const _default: typeof __VLS_export;
9
9
  //#endregion
10
10
  export { _default };
@@ -1,12 +1,12 @@
1
1
  import { LabelProps } from "./types.js";
2
- import * as vue166 from "vue";
2
+ import * as vue197 from "vue";
3
3
 
4
4
  //#region src/components/label/label.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: vue166.DefineComponent<LabelProps, {}, {}, {}, {}, vue166.ComponentOptionsMixin, vue166.ComponentOptionsMixin, {}, string, vue166.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue166.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue197.DefineComponent<LabelProps, {}, {}, {}, {}, vue197.ComponentOptionsMixin, vue197.ComponentOptionsMixin, {}, string, vue197.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue197.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,4 +1,4 @@
1
- import * as vue194 from "vue";
1
+ import * as vue207 from "vue";
2
2
  import { LayoutTriggerProps } from "@soybeanjs/headless";
3
3
 
4
4
  //#region src/components/layout/layout-trigger.vue.d.ts
@@ -8,7 +8,7 @@ declare var __VLS_8: {
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue194.DefineComponent<LayoutTriggerProps, {}, {}, {}, {}, vue194.ComponentOptionsMixin, vue194.ComponentOptionsMixin, {}, string, vue194.PublicProps, Readonly<LayoutTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue194.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue207.DefineComponent<LayoutTriggerProps, {}, {}, {}, {}, vue207.ComponentOptionsMixin, vue207.ComponentOptionsMixin, {}, string, vue207.PublicProps, Readonly<LayoutTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue207.ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  type __VLS_WithSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import { ThemeSize } from "../../theme/types.js";
2
2
  import "../../theme/index.js";
3
3
  import { LayoutProps } from "./types.js";
4
- import * as vue199 from "vue";
4
+ import * as vue202 from "vue";
5
5
 
6
6
  //#region src/components/layout/layout.vue.d.ts
7
7
  declare var __VLS_16: {
@@ -19,14 +19,14 @@ type __VLS_Slots = {} & {
19
19
  } & {
20
20
  footer?: (props: typeof __VLS_53) => any;
21
21
  };
22
- declare const __VLS_base: vue199.DefineComponent<LayoutProps, {}, {}, {}, {}, vue199.ComponentOptionsMixin, vue199.ComponentOptionsMixin, {
22
+ declare const __VLS_base: vue202.DefineComponent<LayoutProps, {}, {}, {}, {}, vue202.ComponentOptionsMixin, vue202.ComponentOptionsMixin, {
23
23
  "update:open": (open: boolean) => any;
24
- }, string, vue199.PublicProps, Readonly<LayoutProps> & Readonly<{
24
+ }, string, vue202.PublicProps, Readonly<LayoutProps> & Readonly<{
25
25
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
26
26
  }>, {
27
- open: boolean;
28
27
  size: ThemeSize;
29
- }, {}, {}, {}, string, vue199.ComponentProvideOptions, false, {}, any>;
28
+ open: boolean;
29
+ }, {}, {}, {}, string, vue202.ComponentProvideOptions, false, {}, any>;
30
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
31
  declare const _default: typeof __VLS_export;
32
32
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { LinkProps } from "./types.js";
2
- import * as vue204 from "vue";
2
+ import * as vue216 from "vue";
3
3
 
4
4
  //#region src/components/link/link.vue.d.ts
5
5
  declare var __VLS_8: {
@@ -10,7 +10,7 @@ declare var __VLS_8: {
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_8) => any;
12
12
  };
13
- declare const __VLS_base: vue204.DefineComponent<LinkProps, {}, {}, {}, {}, vue204.ComponentOptionsMixin, vue204.ComponentOptionsMixin, {}, string, vue204.PublicProps, Readonly<LinkProps> & Readonly<{}>, {
13
+ declare const __VLS_base: vue216.DefineComponent<LinkProps, {}, {}, {}, {}, vue216.ComponentOptionsMixin, vue216.ComponentOptionsMixin, {}, string, vue216.PublicProps, Readonly<LinkProps> & Readonly<{}>, {
14
14
  disabled: boolean;
15
15
  replace: boolean;
16
16
  viewTransition: boolean;
@@ -18,7 +18,7 @@ declare const __VLS_base: vue204.DefineComponent<LinkProps, {}, {}, {}, {}, vue2
18
18
  noRel: boolean;
19
19
  prefetch: boolean;
20
20
  noPrefetch: boolean;
21
- }, {}, {}, {}, string, vue204.ComponentProvideOptions, false, {}, any>;
21
+ }, {}, {}, {}, string, vue216.ComponentProvideOptions, false, {}, any>;
22
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
23
  declare const _default: typeof __VLS_export;
24
24
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { ListItemProps } from "./types.js";
2
- import * as vue214 from "vue";
2
+ import * as vue176 from "vue";
3
3
 
4
4
  //#region src/components/list/list-item.vue.d.ts
5
5
  declare var __VLS_8: {}, __VLS_22: {}, __VLS_30: {}, __VLS_32: {}, __VLS_34: {};
@@ -14,7 +14,7 @@ type __VLS_Slots = {} & {
14
14
  } & {
15
15
  trailing?: (props: typeof __VLS_34) => any;
16
16
  };
17
- declare const __VLS_base: vue214.DefineComponent<ListItemProps, {}, {}, {}, {}, vue214.ComponentOptionsMixin, vue214.ComponentOptionsMixin, {}, string, vue214.PublicProps, Readonly<ListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue214.ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_base: vue176.DefineComponent<ListItemProps, {}, {}, {}, {}, vue176.ComponentOptionsMixin, vue176.ComponentOptionsMixin, {}, string, vue176.PublicProps, Readonly<ListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue176.ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { ListProps } from "./types.js";
2
- import * as vue209 from "vue";
2
+ import * as vue171 from "vue";
3
3
 
4
4
  //#region src/components/list/list.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: vue209.DefineComponent<ListProps, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, vue209.PublicProps, Readonly<ListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue171.DefineComponent<ListProps, {}, {}, {}, {}, vue171.ComponentOptionsMixin, vue171.ComponentOptionsMixin, {}, string, vue171.PublicProps, Readonly<ListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue171.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,10 +1,10 @@
1
1
  import { MenuCheckboxOptionData, MenuCheckboxOptionsProps } from "./types.js";
2
- import * as vue223 from "vue";
2
+ import * as vue221 from "vue";
3
3
  import { DefinedValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/menu/menu-checkbox-options.vue.d.ts
6
6
  declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends MenuCheckboxOptionData<T> = MenuCheckboxOptionData<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: vue223.PublicProps & __VLS_PrettifyLocal<MenuCheckboxOptionsProps<T, S> & {
7
+ props: vue221.PublicProps & __VLS_PrettifyLocal<MenuCheckboxOptionsProps<T, S> & {
8
8
  onSelect?: ((item: S, event: Event) => any) | undefined;
9
9
  "onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
@@ -19,7 +19,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Me
19
19
  'item-indicator-icon': (props: S) => any;
20
20
  };
21
21
  emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void);
22
- }>) => vue223.VNode & {
22
+ }>) => vue221.VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
25
25
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import e from"../icon/icon.js";import t from"../link/link.js";import n from"../kbd/kbd.js";import r from"./menu-item-slot.js";import{useCommonSlotKeys as i}from"./shared.js";import{useMenuExtraUi as a}from"./context.js";import{Fragment as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createSlots as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeClass as h,normalizeProps as g,openBlock as _,renderList as v,renderSlot as y,resolveComponent as b,toHandlers as x,unref as S,useSlots as C,withCtx as w}from"vue";import{useForwardListeners as T,useOmitProps as E}from"@soybeanjs/headless/composables";import{MenuGroup as D,MenuGroupLabel as O,MenuItem as k,MenuPortal as A,MenuSeparator as j,MenuSub as M,MenuSubContent as N,MenuSubTrigger as P}from"@soybeanjs/headless";var F=f({name:`SMenuOption`,inheritAttrs:!1,__name:`menu-option`,props:{item:{},itemProps:{},groupProps:{},groupLabelProps:{},subProps:{},subTriggerProps:{},portalProps:{},subContentProps:{},separatorProps:{},shortcutProps:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`,`select`],setup(f,{emit:F}){let I=f,L=F,R=C(),z=E(I,[`item`]),B=T(L),V=i(R),H=a();return(i,a)=>{let C=b(`SMenuOption`);return _(),l(o,null,[f.item.isGroupLabel?(_(),s(S(O),g(m({key:0},f.groupLabelProps)),{default:w(()=>[d(r,{icon:f.item.icon,label:f.item.label},u({_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item})])}))]),1032,[`icon`,`label`])]),_:3},16)):f.item.linkProps?(_(),s(S(k),m({key:1},f.itemProps,{"as-child":``,disabled:f.item.disabled,"text-value":f.item.textValue,onSelect:a[0]||=e=>L(`select`,f.item,e)}),{default:w(()=>[d(t,m(f.item.linkProps,{disabled:f.item.disabled}),{default:w(({isHref:t})=>[d(r,{icon:f.item.icon,label:f.item.label},u({_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item})])})),t?{name:`link-icon`,fn:w(()=>[y(i.$slots,`item-link-icon`,{item:f.item},()=>[d(e,{icon:`lucide:arrow-up-right`,class:h(S(H).itemLinkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`,`label`])]),_:3},16,[`disabled`])]),_:3},16,[`disabled`,`text-value`])):f.item.children?(_(),s(S(M),m({key:3},f.subProps,{"onUpdate:open":a[2]||=e=>L(`update:open`,e)}),{default:w(()=>[d(S(P),m(f.subTriggerProps,{disabled:f.item.disabled,"text-value":f.item.textValue}),{default:w(()=>[d(r,{icon:f.item.icon,label:f.item.label},u({"trigger-icon":w(()=>[y(i.$slots,`item-trigger-icon`,{item:f.item},()=>[d(e,{icon:`lucide:chevron-right`,class:h(S(H).subTriggerIcon)},null,8,[`class`])])]),_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item,isTrigger:!0})])}))]),1032,[`icon`,`label`])]),_:3},16,[`disabled`,`text-value`]),f.item.separator?(_(),s(S(j),g(m({key:0},f.separatorProps)),null,16)):c(`v-if`,!0),d(S(A),g(p(f.portalProps)),{default:w(()=>[d(S(N),m(f.subContentProps,x(S(B))),{default:w(()=>[d(S(D),g(p(f.groupProps)),{default:w(()=>[(_(!0),l(o,null,v(f.item.children,e=>(_(),s(C,m({key:e.value},{ref_for:!0},S(z),{item:e},x(S(B))),null,16,[`item`]))),128))]),_:1},16)]),_:1},16)]),_:1},16)]),_:3},16)):(_(),s(S(k),m({key:2},f.itemProps,{disabled:f.item.disabled,"text-value":f.item.textValue,onSelect:a[1]||=e=>L(`select`,f.item,e)}),{default:w(()=>[d(r,{icon:f.item.icon,label:f.item.label},u({shortcut:w(()=>[f.item.shortcut?(_(),s(n,m({key:0},f.shortcutProps,{value:f.item.shortcut,class:S(H).shortcut}),null,16,[`value`,`class`])):c(`v-if`,!0)]),_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item})])}))]),1032,[`icon`,`label`])]),_:3},16,[`disabled`,`text-value`])),f.item.separator&&!f.item.children?(_(),s(S(j),g(m({key:4},f.separatorProps)),null,16)):c(`v-if`,!0)],64)}}});export{F as default};
1
+ import e from"../icon/icon.js";import t from"../link/link.js";import n from"../kbd/kbd.js";import r from"./menu-item-slot.js";import{useCommonSlotKeys as i}from"./shared.js";import{useMenuExtraUi as a}from"./context.js";import{Fragment as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createSlots as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeClass as h,normalizeProps as g,openBlock as _,renderList as v,renderSlot as y,resolveComponent as b,toHandlers as x,unref as S,useSlots as C,withCtx as w}from"vue";import{useForwardListeners as T,useOmitProps as E}from"@soybeanjs/headless/composables";import{MenuGroup as D,MenuGroupLabel as O,MenuItem as k,MenuPortal as A,MenuSeparator as j,MenuSub as M,MenuSubContent as N,MenuSubTrigger as P}from"@soybeanjs/headless";var F=f({name:`SMenuOption`,inheritAttrs:!1,__name:`menu-option`,props:{item:{},itemProps:{},linkProps:{},groupProps:{},groupLabelProps:{},subProps:{},subTriggerProps:{},portalProps:{},subContentProps:{},separatorProps:{},shortcutProps:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`,`select`],setup(f,{emit:F}){let I=f,L=F,R=C(),z=E(I,[`item`]),B=T(L),V=i(R),H=a();return(i,a)=>{let C=b(`SMenuOption`);return _(),l(o,null,[f.item.isGroupLabel?(_(),s(S(O),g(m({key:0},f.groupLabelProps)),{default:w(()=>[d(r,{icon:f.item.icon,label:f.item.label},u({_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item})])}))]),1032,[`icon`,`label`])]),_:3},16)):f.item.to||f.item.href?(_(),s(S(k),m({key:1},f.itemProps,{"as-child":``,disabled:f.item.disabled,"text-value":f.item.textValue,onSelect:a[0]||=e=>L(`select`,f.item,e)}),{default:w(()=>[d(t,m(f.linkProps,{disabled:f.item.disabled,to:f.item.to,href:f.item.href,target:f.item.target,external:f.item.external}),{default:w(({isHref:t})=>[d(r,{icon:f.item.icon,label:f.item.label},u({_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item})])})),t?{name:`link-icon`,fn:w(()=>[y(i.$slots,`item-link-icon`,{item:f.item},()=>[d(e,{icon:`lucide:arrow-up-right`,class:h(S(H).itemLinkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`,`label`])]),_:3},16,[`disabled`,`to`,`href`,`target`,`external`])]),_:3},16,[`disabled`,`text-value`])):f.item.children?(_(),s(S(M),m({key:3},f.subProps,{"onUpdate:open":a[2]||=e=>L(`update:open`,e)}),{default:w(()=>[d(S(P),m(f.subTriggerProps,{disabled:f.item.disabled,"text-value":f.item.textValue}),{default:w(()=>[d(r,{icon:f.item.icon,label:f.item.label},u({"trigger-icon":w(()=>[y(i.$slots,`item-trigger-icon`,{item:f.item},()=>[d(e,{icon:`lucide:chevron-right`,class:h(S(H).subTriggerIcon)},null,8,[`class`])])]),_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item,isTrigger:!0})])}))]),1032,[`icon`,`label`])]),_:3},16,[`disabled`,`text-value`]),f.item.separator?(_(),s(S(j),g(m({key:0},f.separatorProps)),null,16)):c(`v-if`,!0),d(S(A),g(p(f.portalProps)),{default:w(()=>[d(S(N),m(f.subContentProps,x(S(B))),{default:w(()=>[d(S(D),g(p(f.groupProps)),{default:w(()=>[(_(!0),l(o,null,v(f.item.children,e=>(_(),s(C,m({key:e.value},{ref_for:!0},S(z),{item:e},x(S(B))),null,16,[`item`]))),128))]),_:1},16)]),_:1},16)]),_:1},16)]),_:3},16)):(_(),s(S(k),m({key:2},f.itemProps,{disabled:f.item.disabled,"text-value":f.item.textValue,onSelect:a[1]||=e=>L(`select`,f.item,e)}),{default:w(()=>[d(r,{icon:f.item.icon,label:f.item.label},u({shortcut:w(()=>[f.item.shortcut?(_(),s(n,m({key:0},f.shortcutProps,{value:f.item.shortcut,class:S(H).shortcut}),null,16,[`value`,`class`])):c(`v-if`,!0)]),_:2},[v(S(V),e=>({name:e,fn:w(()=>[y(i.$slots,e,{item:f.item})])}))]),1032,[`icon`,`label`])]),_:3},16,[`disabled`,`text-value`])),f.item.separator&&!f.item.children?(_(),s(S(j),g(m({key:4},f.separatorProps)),null,16)):c(`v-if`,!0)],64)}}});export{F as default};
@@ -1,20 +1,20 @@
1
1
  import { MenuOptionData, MenuOptionProps } from "./types.js";
2
- import * as vue219 from "vue";
3
- import * as _soybeanjs_headless141 from "@soybeanjs/headless";
2
+ import * as vue214 from "vue";
3
+ import * as _soybeanjs_headless145 from "@soybeanjs/headless";
4
4
  import { DefinedValue } from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/menu/menu-option.vue.d.ts
7
7
  declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__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<{
8
- props: vue219.PublicProps & __VLS_PrettifyLocal<MenuOptionProps<T> & {
8
+ props: vue214.PublicProps & __VLS_PrettifyLocal<MenuOptionProps<T> & {
9
9
  onSelect?: ((item: MenuOptionData<T>, event: Event) => any) | undefined;
10
10
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
+ onEntryFocus?: ((event: Event) => any) | undefined;
11
12
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
12
- onPointerDownOutside?: ((event: _soybeanjs_headless141.PointerDownOutsideEvent) => any) | undefined;
13
- onFocusOutside?: ((event: _soybeanjs_headless141.FocusOutsideEvent) => any) | undefined;
14
- onInteractOutside?: ((event: _soybeanjs_headless141.PointerDownOutsideEvent | _soybeanjs_headless141.FocusOutsideEvent) => any) | undefined;
13
+ onPointerDownOutside?: ((event: _soybeanjs_headless145.PointerDownOutsideEvent) => any) | undefined;
14
+ onFocusOutside?: ((event: _soybeanjs_headless145.FocusOutsideEvent) => any) | undefined;
15
+ onInteractOutside?: ((event: _soybeanjs_headless145.PointerDownOutsideEvent | _soybeanjs_headless145.FocusOutsideEvent) => any) | undefined;
15
16
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
16
17
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
17
- onEntryFocus?: ((event: Event) => any) | undefined;
18
18
  }> & (typeof globalThis extends {
19
19
  __VLS_PROPS_FALLBACK: infer P;
20
20
  } ? P : {});
@@ -38,8 +38,8 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
38
38
  item: MenuOptionData<T>;
39
39
  }) => any;
40
40
  };
41
- emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless141.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _soybeanjs_headless141.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _soybeanjs_headless141.PointerDownOutsideEvent | _soybeanjs_headless141.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
42
- }>) => vue219.VNode & {
41
+ emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless145.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _soybeanjs_headless145.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _soybeanjs_headless145.PointerDownOutsideEvent | _soybeanjs_headless145.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
42
+ }>) => vue214.VNode & {
43
43
  __ctx?: Awaited<typeof __VLS_setup>;
44
44
  };
45
45
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import e from"./menu-option.js";import{Fragment as t,computed as n,createBlock as r,createElementBlock as i,createSlots as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderList as d,renderSlot as f,toHandlers as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useForwardListeners as _,useOmitProps as v}from"@soybeanjs/headless/composables";import{MenuGroup as y}from"@soybeanjs/headless";var b=o({name:`SMenuOptions`,inheritAttrs:!1,__name:`menu-options`,props:{items:{},itemProps:{},groupProps:{},groupLabelProps:{},subProps:{},subTriggerProps:{},portalProps:{},subContentProps:{},separatorProps:{},shortcutProps:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`,`select`],setup(o,{emit:b}){let x=o,S=b,C=h(),w=n(()=>Object.keys(C)),T=v(x,[`items`]),E=_(S);return(n,h)=>(u(),r(m(y),l(s(o.groupProps)),{default:g(()=>[(u(!0),i(t,null,d(o.items,t=>(u(),r(e,c({key:t.value},{ref_for:!0},m(T),{item:t},p(m(E))),a({_:2},[d(w.value,e=>({name:e,fn:g(t=>[f(n.$slots,e,c({ref_for:!0},t))])}))]),1040,[`item`]))),128))]),_:3},16))}});export{b as default};
1
+ import e from"./menu-option.js";import{Fragment as t,computed as n,createBlock as r,createElementBlock as i,createSlots as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderList as d,renderSlot as f,toHandlers as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useForwardListeners as _,useOmitProps as v}from"@soybeanjs/headless/composables";import{MenuGroup as y}from"@soybeanjs/headless";var b=o({name:`SMenuOptions`,inheritAttrs:!1,__name:`menu-options`,props:{items:{},itemProps:{},linkProps:{},groupProps:{},groupLabelProps:{},subProps:{},subTriggerProps:{},portalProps:{},subContentProps:{},separatorProps:{},shortcutProps:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`,`select`],setup(o,{emit:b}){let x=o,S=b,C=h(),w=n(()=>Object.keys(C)),T=v(x,[`items`]),E=_(S);return(n,h)=>(u(),r(m(y),l(s(o.groupProps)),{default:g(()=>[(u(!0),i(t,null,d(o.items,t=>(u(),r(e,c({key:t.value},{ref_for:!0},m(T),{item:t},p(m(E))),a({_:2},[d(w.value,e=>({name:e,fn:g(t=>[f(n.$slots,e,c({ref_for:!0},t))])}))]),1040,[`item`]))),128))]),_:3},16))}});export{b as default};
@@ -1,20 +1,20 @@
1
1
  import { MenuOptionData, MenuOptionsProps } from "./types.js";
2
- import * as vue221 from "vue";
3
- import * as _soybeanjs_headless149 from "@soybeanjs/headless";
2
+ import * as vue212 from "vue";
3
+ import * as _soybeanjs_headless137 from "@soybeanjs/headless";
4
4
  import { DefinedValue } from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/menu/menu-options.vue.d.ts
7
7
  declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends MenuOptionData<T> = MenuOptionData<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<{
8
- props: vue221.PublicProps & __VLS_PrettifyLocal<MenuOptionsProps<T, S> & {
8
+ props: vue212.PublicProps & __VLS_PrettifyLocal<MenuOptionsProps<T, S> & {
9
9
  onSelect?: ((item: S, event: Event) => any) | undefined;
10
10
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
+ onEntryFocus?: ((event: Event) => any) | undefined;
11
12
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
12
- onPointerDownOutside?: ((event: _soybeanjs_headless149.PointerDownOutsideEvent) => any) | undefined;
13
- onFocusOutside?: ((event: _soybeanjs_headless149.FocusOutsideEvent) => any) | undefined;
14
- onInteractOutside?: ((event: _soybeanjs_headless149.PointerDownOutsideEvent | _soybeanjs_headless149.FocusOutsideEvent) => any) | undefined;
13
+ onPointerDownOutside?: ((event: _soybeanjs_headless137.PointerDownOutsideEvent) => any) | undefined;
14
+ onFocusOutside?: ((event: _soybeanjs_headless137.FocusOutsideEvent) => any) | undefined;
15
+ onInteractOutside?: ((event: _soybeanjs_headless137.PointerDownOutsideEvent | _soybeanjs_headless137.FocusOutsideEvent) => any) | undefined;
15
16
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
16
17
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
17
- onEntryFocus?: ((event: Event) => any) | undefined;
18
18
  }> & (typeof globalThis extends {
19
19
  __VLS_PROPS_FALLBACK: infer P;
20
20
  } ? P : {});
@@ -38,8 +38,8 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Me
38
38
  item: MenuOptionData<T>;
39
39
  }) => any;
40
40
  };
41
- emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless149.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _soybeanjs_headless149.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _soybeanjs_headless149.PointerDownOutsideEvent | _soybeanjs_headless149.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
42
- }>) => vue221.VNode & {
41
+ emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless137.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _soybeanjs_headless137.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _soybeanjs_headless137.PointerDownOutsideEvent | _soybeanjs_headless137.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
42
+ }>) => vue212.VNode & {
43
43
  __ctx?: Awaited<typeof __VLS_setup>;
44
44
  };
45
45
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
1
  import { MenuRadioOptionData, MenuRadioOptionsProps } from "./types.js";
2
- import * as vue225 from "vue";
2
+ import * as vue223 from "vue";
3
3
  import { AcceptableBooleanValue } from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/menu/menu-radio-options.vue.d.ts
6
6
  declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue, S extends MenuRadioOptionData<T> = MenuRadioOptionData<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: vue225.PublicProps & __VLS_PrettifyLocal<MenuRadioOptionsProps<T, S> & {
7
+ props: vue223.PublicProps & __VLS_PrettifyLocal<MenuRadioOptionsProps<T, S> & {
8
8
  onSelect?: ((item: S, event: Event) => any) | undefined;
9
9
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
@@ -19,7 +19,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
19
19
  'item-indicator-icon': (props: S) => any;
20
20
  };
21
21
  emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void);
22
- }>) => vue225.VNode & {
22
+ }>) => vue223.VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
25
25
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
1
  import { IconValue } from "../icon/types.js";
2
2
  import { LinkProps as LinkProps$1 } from "../link/types.js";
3
3
  import { KbdProps as KbdProps$1 } from "../kbd/types.js";
4
- import { AcceptableBooleanValue, DefinedValue, KbdValue, MenuCheckboxGroupEmits, MenuCheckboxGroupProps, MenuCheckboxItemProps, MenuGroupLabelProps, MenuGroupProps, MenuItemIndicatorProps, MenuItemProps, MenuPortalProps, MenuRadioGroupEmits, MenuRadioGroupProps, MenuRadioItemProps, MenuSeparatorProps, MenuSubContentEmits, MenuSubContentProps, MenuSubEmits, MenuSubProps, MenuSubTriggerProps, MenuUi, UiClass } from "@soybeanjs/headless";
4
+ import { AcceptableBooleanValue, DefinedValue, KbdValue, LinkBaseProps, MenuCheckboxGroupEmits, MenuCheckboxGroupProps, MenuCheckboxItemProps, MenuGroupLabelProps, MenuGroupProps, MenuItemIndicatorProps, MenuItemProps, MenuPortalProps, MenuRadioGroupEmits, MenuRadioGroupProps, MenuRadioItemProps, MenuSeparatorProps, MenuSubContentEmits, MenuSubContentProps, MenuSubEmits, MenuSubProps, MenuSubTriggerProps, MenuUi, UiClass } from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/menu/types.d.ts
7
- interface MenuOptionData<T = DefinedValue> extends Pick<MenuItemProps, 'disabled' | 'textValue'> {
7
+ interface MenuOptionData<T = DefinedValue> extends Pick<MenuItemProps, 'disabled' | 'textValue'>, LinkBaseProps {
8
8
  /** The label to display in the menu. */
9
9
  label: string;
10
10
  /** The value of the option. */
@@ -25,12 +25,6 @@ interface MenuOptionData<T = DefinedValue> extends Pick<MenuItemProps, 'disabled
25
25
  separator?: boolean;
26
26
  /** The shortcut of the option. */
27
27
  shortcut?: KbdValue | KbdValue[];
28
- /**
29
- * The link props
30
- *
31
- * if provided, the option will be a link.
32
- */
33
- linkProps?: LinkProps$1;
34
28
  /** The children of the option. */
35
29
  children?: MenuOptionData<T>[];
36
30
  }
@@ -41,6 +35,7 @@ type MenuExtendedUi = MenuUi & MenuExtraUi;
41
35
  interface MenuOptionProps<T extends DefinedValue = DefinedValue> {
42
36
  item: MenuOptionData<T>;
43
37
  itemProps?: MenuItemProps;
38
+ linkProps?: LinkProps$1;
44
39
  groupProps?: MenuGroupProps;
45
40
  groupLabelProps?: MenuGroupLabelProps;
46
41
  subProps?: MenuSubProps;
@@ -1 +1 @@
1
- import e from"../icon/icon.js";import t from"./navigation-menu-item-slot.js";import{useNavigationMenuExtraUi as n}from"./context.js";import{useCommonSlotKeys as r}from"./shared.js";import i from"./navigation-menu-sub-option.js";import{Fragment as a,computed as o,createBlock as s,createElementBlock as c,createElementVNode as l,createSlots as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeClass as h,normalizeProps as g,openBlock as _,renderList as v,renderSlot as y,resolveDynamicComponent as b,toDisplayString as x,toHandlers as S,unref as C,useSlots as w,withCtx as T}from"vue";import{useForwardListeners as E}from"@soybeanjs/headless/composables";import{NavigationMenuContent as D,NavigationMenuItem as O,NavigationMenuLink as k,NavigationMenuSubList as A,NavigationMenuTrigger as j}from"@soybeanjs/headless";var M=f({name:`SNavigationMenuOption`,__name:`navigation-menu-option`,props:{item:{},itemProps:{},triggerProps:{},contentProps:{},viewportProps:{},indicatorProps:{},listProps:{},subListProps:{},subItemProps:{}},emits:[`update:modelValue`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`select`],setup(f,{emit:M}){let N=M,P=w(),F=E(N),I=o(()=>Object.keys(P)),L=r(P),R=n();return(n,r)=>(_(),s(C(O),m(f.itemProps,{value:f.item.value}),{default:T(()=>[f.item.children?.length?(_(),c(a,{key:1},[d(C(j),m(f.triggerProps,{disabled:f.item.disabled,"as-child":!!f.item.linkProps}),{default:T(()=>[(_(),s(b(f.item.linkProps?C(k):`template`),m(f.item.linkProps,{onSelect:r[1]||=e=>N(`select`,e)}),{default:T(()=>[d(t,{icon:f.item.icon},u({"trigger-icon":T(()=>[y(n.$slots,`item-trigger-icon`,{item:f.item},()=>[d(e,{icon:`lucide:chevron-down`,class:h(C(R).triggerIcon)},null,8,[`class`])])]),default:T(()=>[l(`span`,null,x(f.item.label),1)]),_:2},[v(C(L),e=>({name:e,fn:T(()=>[y(n.$slots,e,{item:f.item,isTrigger:!0})])}))]),1032,[`icon`])]),_:3},16))]),_:3},16,[`disabled`,`as-child`]),d(C(D),m(f.contentProps,S(C(F))),{default:T(()=>[d(C(A),g(p(f.subListProps)),{default:T(()=>[(_(!0),c(a,null,v(f.item.children,e=>(_(),s(i,{key:e.value,"sub-item":e,"sub-item-props":f.subItemProps,onSelect:r[2]||=e=>N(`select`,e)},u({"item-children":T(e=>[y(n.$slots,`item-children`,{item:e.item})]),_:2},[v(I.value,t=>({name:t,fn:T(()=>[y(n.$slots,t,{item:e})])}))]),1032,[`sub-item`,`sub-item-props`]))),128))]),_:3},16)]),_:3},16)],64)):(_(),s(C(k),m({key:0},f.item.linkProps,{disabled:f.item.disabled,onSelect:r[0]||=e=>N(`select`,e)}),{default:T(({isHref:r})=>[d(t,{icon:f.item.icon},u({default:T(()=>[l(`span`,null,x(f.item.label),1)]),_:2},[v(C(L),e=>({name:e,fn:T(()=>[y(n.$slots,e,{item:f.item})])})),r?{name:`link-icon`,fn:T(()=>[y(n.$slots,`item-link-icon`,{item:f.item},()=>[d(e,{icon:`lucide:arrow-up-right`,class:h(C(R).linkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`])]),_:3},16,[`disabled`]))]),_:3},16,[`value`]))}});export{M as default};
1
+ import e from"../icon/icon.js";import t from"./navigation-menu-item-slot.js";import{useNavigationMenuExtraUi as n}from"./context.js";import{useCommonSlotKeys as r}from"./shared.js";import i from"./navigation-menu-sub-option.js";import{Fragment as a,computed as o,createBlock as s,createElementBlock as c,createElementVNode as l,createSlots as u,createVNode as d,defineComponent as f,guardReactiveProps as p,mergeProps as m,normalizeClass as h,normalizeProps as g,openBlock as _,renderList as v,renderSlot as y,resolveDynamicComponent as b,toDisplayString as x,toHandlers as S,unref as C,useSlots as w,withCtx as T}from"vue";import{useForwardListeners as E}from"@soybeanjs/headless/composables";import{NavigationMenuContent as D,NavigationMenuItem as O,NavigationMenuLink as k,NavigationMenuSubList as A,NavigationMenuTrigger as j}from"@soybeanjs/headless";var M=f({name:`SNavigationMenuOption`,__name:`navigation-menu-option`,props:{item:{},itemProps:{},linkProps:{},triggerProps:{},contentProps:{},viewportProps:{},indicatorProps:{},listProps:{},subListProps:{},subItemProps:{}},emits:[`update:modelValue`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`select`],setup(f,{emit:M}){let N=f,P=M,F=w(),I=E(P),L=o(()=>Object.keys(F)),R=r(F),z=n(),B=o(()=>!!(N.item.to||N.item.href)),V=o(()=>B.value?{...N.linkProps,disabled:N.item.disabled,to:N.item.to,href:N.item.href,target:N.item.target,external:N.item.external}:{});return(n,r)=>(_(),s(C(O),m(f.itemProps,{value:f.item.value}),{default:T(()=>[f.item.children?.length?(_(),c(a,{key:1},[d(C(j),m(f.triggerProps,{disabled:f.item.disabled,"as-child":B.value}),{default:T(()=>[(_(),s(b(B.value?C(k):`template`),m(V.value,{onSelect:r[1]||=e=>P(`select`,e)}),{default:T(()=>[d(t,{icon:f.item.icon},u({"trigger-icon":T(()=>[y(n.$slots,`item-trigger-icon`,{item:f.item},()=>[d(e,{icon:`lucide:chevron-down`,class:h(C(z).triggerIcon)},null,8,[`class`])])]),default:T(()=>[l(`span`,null,x(f.item.label),1)]),_:2},[v(C(R),e=>({name:e,fn:T(()=>[y(n.$slots,e,{item:f.item,isTrigger:!0})])}))]),1032,[`icon`])]),_:3},16))]),_:3},16,[`disabled`,`as-child`]),d(C(D),m(f.contentProps,S(C(I))),{default:T(()=>[d(C(A),g(p(f.subListProps)),{default:T(()=>[(_(!0),c(a,null,v(f.item.children,e=>(_(),s(i,{key:e.value,"sub-item":e,"sub-item-props":f.subItemProps,onSelect:r[2]||=e=>P(`select`,e)},u({"item-children":T(e=>[y(n.$slots,`item-children`,{item:e.item})]),_:2},[v(L.value,t=>({name:t,fn:T(()=>[y(n.$slots,t,{item:e})])}))]),1032,[`sub-item`,`sub-item-props`]))),128))]),_:3},16)]),_:3},16)],64)):(_(),s(C(k),m({key:0},V.value,{onSelect:r[0]||=e=>P(`select`,e)}),{default:T(({isHref:r})=>[d(t,{icon:f.item.icon},u({default:T(()=>[l(`span`,null,x(f.item.label),1)]),_:2},[v(C(R),e=>({name:e,fn:T(()=>[y(n.$slots,e,{item:f.item})])})),r?{name:`link-icon`,fn:T(()=>[y(n.$slots,`item-link-icon`,{item:f.item},()=>[d(e,{icon:`lucide:arrow-up-right`,class:h(C(z).linkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`])]),_:3},16))]),_:3},16,[`value`]))}});export{M as default};
@@ -1 +1 @@
1
- import e from"../icon/icon.js";import t from"./navigation-menu-item-slot.js";import{useNavigationMenuExtraUi as n}from"./context.js";import{useCommonSlotKeys as r}from"./shared.js";import{createBlock as i,createCommentVNode as a,createElementVNode as o,createSlots as s,createVNode as c,defineComponent as l,mergeProps as u,normalizeClass as d,openBlock as f,renderList as p,renderSlot as m,resolveDynamicComponent as h,toDisplayString as g,unref as _,useSlots as v,withCtx as y}from"vue";import{NavigationMenuItem as b,NavigationMenuLink as x}from"@soybeanjs/headless";var S=l({name:`SNavigationMenuSubOption`,__name:`navigation-menu-sub-option`,props:{subItem:{},subItemProps:{}},emits:[`select`],setup(l,{emit:S}){let C=S,w=r(v()),T=n();return(n,r)=>(f(),i(_(b),u(l.subItemProps,{value:l.subItem.value}),{default:y(()=>[(f(),i(h(l.subItem.linkProps?_(x):`div`),u(l.subItem.linkProps,{disabled:l.subItem.linkProps?l.subItem.disabled:void 0,onSelect:r[0]||=e=>C(`select`,e)}),{default:y(()=>[c(t,{icon:l.subItem.icon},s({default:y(()=>[o(`div`,{class:d(_(T).subLinkContent)},[o(`span`,{class:d(_(T).subLinkLabel)},g(l.subItem.label),3),o(`p`,{class:d(_(T).subLinkDescription)},g(l.subItem.description),3)],2)]),_:2},[p(_(w),e=>({name:e,fn:y(()=>[m(n.$slots,e,{item:l.subItem})])})),l.subItem.linkProps?{name:`link-icon`,fn:y(()=>[m(n.$slots,`item-link-icon`,{item:l.subItem},()=>[c(e,{icon:`lucide:arrow-up-right`,class:d(_(T).linkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`])]),_:3},16,[`disabled`])),l.subItem.children?.length?m(n.$slots,`item-children`,{key:0,item:l.subItem}):a(`v-if`,!0)]),_:3},16,[`value`]))}});export{S as default};
1
+ import e from"../icon/icon.js";import t from"./navigation-menu-item-slot.js";import{useNavigationMenuExtraUi as n}from"./context.js";import{useCommonSlotKeys as r}from"./shared.js";import{computed as i,createBlock as a,createCommentVNode as o,createElementVNode as s,createSlots as c,createVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,openBlock as p,renderList as m,renderSlot as h,resolveDynamicComponent as g,toDisplayString as _,unref as v,useSlots as y,withCtx as b}from"vue";import{NavigationMenuItem as x,NavigationMenuLink as S}from"@soybeanjs/headless";var C=u({name:`SNavigationMenuSubOption`,__name:`navigation-menu-sub-option`,props:{subItem:{},subItemProps:{},linkProps:{}},emits:[`select`],setup(u,{emit:C}){let w=u,T=C,E=r(y()),D=n(),O=i(()=>!!(w.subItem.to||w.subItem.href)),k=i(()=>O.value?{...w.linkProps,disabled:w.subItem.disabled,to:w.subItem.to,href:w.subItem.href,target:w.subItem.target,external:w.subItem.external}:{});return(n,r)=>(p(),a(v(x),d(u.subItemProps,{value:u.subItem.value}),{default:b(()=>[(p(),a(g(O.value?v(S):`div`),d(k.value,{onSelect:r[0]||=e=>T(`select`,e)}),{default:b(r=>[l(t,{icon:u.subItem.icon},c({default:b(()=>[s(`div`,{class:f(v(D).subLinkContent)},[s(`span`,{class:f(v(D).subLinkLabel)},_(u.subItem.label),3),s(`p`,{class:f(v(D).subLinkDescription)},_(u.subItem.description),3)],2)]),_:2},[m(v(E),e=>({name:e,fn:b(()=>[h(n.$slots,e,{item:u.subItem})])})),r?.isHref?{name:`link-icon`,fn:b(()=>[h(n.$slots,`item-link-icon`,{item:u.subItem},()=>[l(e,{icon:`lucide:arrow-up-right`,class:f(v(D).linkIcon)},null,8,[`class`])])]),key:`0`}:void 0]),1032,[`icon`])]),_:3},16)),u.subItem.children?.length?h(n.$slots,`item-children`,{key:0,item:u.subItem}):o(`v-if`,!0)]),_:3},16,[`value`]))}});export{C as default};
@@ -1 +1 @@
1
- import{mergeSlotVariants as e}from"../../theme/shared.js";import{navigationMenuVariants as t}from"../../variants/navigation-menu.js";import{provideNavigationMenuExtraUi as n}from"./context.js";import r from"./navigation-menu-option.js";import{Fragment as i,computed as a,createBlock as o,createElementBlock as s,createElementVNode as c,createSlots as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeClass as m,normalizeProps as h,openBlock as g,renderList as _,renderSlot as v,toHandlers as y,unref as b,useSlots as x,withCtx as S}from"vue";import{useForwardListeners as C,useOmitProps as w,usePickProps as T}from"@soybeanjs/headless/composables";import{NavigationMenuIndicator as E,NavigationMenuList as D,NavigationMenuRoot as O,NavigationMenuViewport as k,provideNavigationMenuUi as A}from"@soybeanjs/headless";var j=d({name:`SNavigationMenu`,__name:`navigation-menu`,props:{class:{},size:{},ui:{},items:{},modelValue:{},defaultValue:{},dir:{},orientation:{},delayDuration:{},skipDelayDuration:{},disableClickTrigger:{type:Boolean},disableHoverTrigger:{type:Boolean},disablePointerLeaveClose:{type:Boolean},unmountOnHide:{type:Boolean},itemProps:{},triggerProps:{},contentProps:{},viewportProps:{},indicatorProps:{},listProps:{},subListProps:{},subItemProps:{}},emits:[`update:modelValue`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`select`],setup(d,{emit:j}){let M=d,N=j,P=x(),F=[`itemProps`,`triggerProps`,`contentProps`,`viewportProps`,`indicatorProps`,`listProps`,`subListProps`,`subItemProps`],I=w(M,[`class`,`size`,`ui`,`items`,...F]),L=T(M,[...F]),R=C(N),z=a(()=>Object.keys(P)),B=a(()=>e(t({size:M.size}),M.ui,{root:M.class}));return A(B),n(B),(e,t)=>(g(),o(b(O),p(b(I),{"onUpdate:modelValue":t[0]||=e=>N(`update:modelValue`,e)}),{default:S(()=>[u(b(D),h(f(d.listProps)),{default:S(()=>[(g(!0),s(i,null,_(d.items,t=>(g(),o(r,p({key:t.value},{ref_for:!0},b(L),{item:t},y(b(R))),l({"item-children":S(t=>[v(e.$slots,`item-children`,{item:t.item})]),_:2},[_(z.value,t=>({name:t,fn:S(n=>[v(e.$slots,t,p({ref_for:!0},n))])}))]),1040,[`item`]))),128))]),_:3},16),u(b(E),h(f(d.indicatorProps)),{default:S(()=>[c(`div`,{class:m(B.value?.arrow)},null,2)]),_:1},16),c(`div`,{class:m(B.value?.viewportRoot)},[u(b(k),h(f(d.viewportProps)),null,16)],2)]),_:3},16))}});export{j as default};
1
+ import{mergeSlotVariants as e}from"../../theme/shared.js";import{navigationMenuVariants as t}from"../../variants/navigation-menu.js";import{provideNavigationMenuExtraUi as n}from"./context.js";import r from"./navigation-menu-option.js";import{Fragment as i,computed as a,createBlock as o,createElementBlock as s,createElementVNode as c,createSlots as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeClass as m,normalizeProps as h,openBlock as g,renderList as _,renderSlot as v,toHandlers as y,unref as b,useSlots as x,withCtx as S}from"vue";import{useForwardListeners as C,useOmitProps as w,usePickProps as T}from"@soybeanjs/headless/composables";import{NavigationMenuIndicator as E,NavigationMenuList as D,NavigationMenuRoot as O,NavigationMenuViewport as k,provideNavigationMenuUi as A}from"@soybeanjs/headless";var j=d({name:`SNavigationMenu`,__name:`navigation-menu`,props:{class:{},size:{},ui:{},items:{},modelValue:{},defaultValue:{},dir:{},orientation:{},delayDuration:{},skipDelayDuration:{},disableClickTrigger:{type:Boolean},disableHoverTrigger:{type:Boolean},disablePointerLeaveClose:{type:Boolean},unmountOnHide:{type:Boolean},itemProps:{},linkProps:{},triggerProps:{},contentProps:{},viewportProps:{},indicatorProps:{},listProps:{},subListProps:{},subItemProps:{}},emits:[`update:modelValue`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`select`],setup(d,{emit:j}){let M=d,N=j,P=x(),F=[`itemProps`,`linkProps`,`triggerProps`,`contentProps`,`viewportProps`,`indicatorProps`,`listProps`,`subListProps`,`subItemProps`],I=w(M,[`class`,`size`,`ui`,`items`,...F]),L=T(M,[...F]),R=C(N),z=a(()=>Object.keys(P)),B=a(()=>e(t({size:M.size}),M.ui,{root:M.class}));return A(B),n(B),(e,t)=>(g(),o(b(O),p(b(I),{"onUpdate:modelValue":t[0]||=e=>N(`update:modelValue`,e)}),{default:S(()=>[u(b(D),h(f(d.listProps)),{default:S(()=>[(g(!0),s(i,null,_(d.items,t=>(g(),o(r,p({key:t.value},{ref_for:!0},b(L),{item:t},y(b(R))),l({"item-children":S(t=>[v(e.$slots,`item-children`,{item:t.item})]),_:2},[_(z.value,t=>({name:t,fn:S(n=>[v(e.$slots,t,p({ref_for:!0},n))])}))]),1040,[`item`]))),128))]),_:3},16),u(b(E),h(f(d.indicatorProps)),{default:S(()=>[c(`div`,{class:m(B.value?.arrow)},null,2)]),_:1},16),c(`div`,{class:m(B.value?.viewportRoot)},[u(b(k),h(f(d.viewportProps)),null,16)],2)]),_:3},16))}});export{j as default};
@@ -1,6 +1,6 @@
1
1
  import { NavigationMenuOptionData, NavigationMenuProps } from "./types.js";
2
- import * as vue227 from "vue";
3
- import * as _soybeanjs_headless157 from "@soybeanjs/headless";
2
+ import * as vue244 from "vue";
3
+ import * as _soybeanjs_headless161 from "@soybeanjs/headless";
4
4
 
5
5
  //#region src/components/navigation-menu/navigation-menu.vue.d.ts
6
6
  type Slots = {
@@ -25,25 +25,25 @@ type Slots = {
25
25
  }) => any;
26
26
  };
27
27
  type __VLS_Slots = Slots;
28
- declare const __VLS_base: vue227.DefineComponent<NavigationMenuProps, {}, {}, {}, {}, vue227.ComponentOptionsMixin, vue227.ComponentOptionsMixin, {
28
+ declare const __VLS_base: vue244.DefineComponent<NavigationMenuProps, {}, {}, {}, {}, vue244.ComponentOptionsMixin, vue244.ComponentOptionsMixin, {
29
29
  select: (payload: CustomEvent<{
30
30
  originalEvent: Event;
31
31
  }>) => any;
32
32
  "update:modelValue": (value: string) => any;
33
33
  escapeKeyDown: (event: KeyboardEvent) => any;
34
- pointerDownOutside: (event: _soybeanjs_headless157.PointerDownOutsideEvent) => any;
35
- focusOutside: (event: _soybeanjs_headless157.FocusOutsideEvent) => any;
36
- interactOutside: (event: _soybeanjs_headless157.PointerDownOutsideEvent | _soybeanjs_headless157.FocusOutsideEvent) => any;
37
- }, string, vue227.PublicProps, Readonly<NavigationMenuProps> & Readonly<{
34
+ pointerDownOutside: (event: _soybeanjs_headless161.PointerDownOutsideEvent) => any;
35
+ focusOutside: (event: _soybeanjs_headless161.FocusOutsideEvent) => any;
36
+ interactOutside: (event: _soybeanjs_headless161.PointerDownOutsideEvent | _soybeanjs_headless161.FocusOutsideEvent) => any;
37
+ }, string, vue244.PublicProps, Readonly<NavigationMenuProps> & Readonly<{
38
38
  onSelect?: ((payload: CustomEvent<{
39
39
  originalEvent: Event;
40
40
  }>) => any) | undefined;
41
41
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
42
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
43
- onPointerDownOutside?: ((event: _soybeanjs_headless157.PointerDownOutsideEvent) => any) | undefined;
44
- onFocusOutside?: ((event: _soybeanjs_headless157.FocusOutsideEvent) => any) | undefined;
45
- onInteractOutside?: ((event: _soybeanjs_headless157.PointerDownOutsideEvent | _soybeanjs_headless157.FocusOutsideEvent) => any) | undefined;
46
- }>, {}, {}, {}, {}, string, vue227.ComponentProvideOptions, false, {}, any>;
43
+ onPointerDownOutside?: ((event: _soybeanjs_headless161.PointerDownOutsideEvent) => any) | undefined;
44
+ onFocusOutside?: ((event: _soybeanjs_headless161.FocusOutsideEvent) => any) | undefined;
45
+ onInteractOutside?: ((event: _soybeanjs_headless161.PointerDownOutsideEvent | _soybeanjs_headless161.FocusOutsideEvent) => any) | undefined;
46
+ }>, {}, {}, {}, {}, string, vue244.ComponentProvideOptions, false, {}, any>;
47
47
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
48
48
  declare const _default: typeof __VLS_export;
49
49
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,10 @@
1
1
  import { ThemeSize } from "../../theme/types.js";
2
2
  import "../../theme/index.js";
3
3
  import { IconValue } from "../icon/types.js";
4
- import { ClassValue, NavigationMenuContentEmits, NavigationMenuContentProps, NavigationMenuIndicatorProps, NavigationMenuItemProps, NavigationMenuLinkEmits, NavigationMenuLinkProps, NavigationMenuListProps, NavigationMenuRootEmits, NavigationMenuRootProps, NavigationMenuSubEmits, NavigationMenuTriggerProps, NavigationMenuUi, NavigationMenuViewportProps, UiClass } from "@soybeanjs/headless";
4
+ import { ClassValue, LinkBaseProps, NavigationMenuContentEmits, NavigationMenuContentProps, NavigationMenuIndicatorProps, NavigationMenuItemProps, NavigationMenuLinkEmits, NavigationMenuLinkProps, NavigationMenuListProps, NavigationMenuRootEmits, NavigationMenuRootProps, NavigationMenuSubEmits, NavigationMenuTriggerProps, NavigationMenuUi, NavigationMenuViewportProps, UiClass } from "@soybeanjs/headless";
5
5
 
6
6
  //#region src/components/navigation-menu/types.d.ts
7
- interface NavigationMenuOptionData {
7
+ interface NavigationMenuOptionData extends LinkBaseProps {
8
8
  /** The value of the option. */
9
9
  value: string;
10
10
  /** The label to display in the option. */
@@ -19,12 +19,6 @@ interface NavigationMenuOptionData {
19
19
  icon?: IconValue;
20
20
  /** Whether the option is disabled. */
21
21
  disabled?: boolean;
22
- /**
23
- * The link props
24
- *
25
- * if provided, the option will be a link.
26
- */
27
- linkProps?: NavigationMenuLinkProps;
28
22
  /** The children of the option. */
29
23
  children?: NavigationMenuOptionData[];
30
24
  }
@@ -34,11 +28,13 @@ type NavigationMenuExtendedUi = NavigationMenuUi & NavigationMenuExtraUi;
34
28
  interface NavigationMenuSubOptionProps {
35
29
  subItem: NavigationMenuOptionData;
36
30
  subItemProps?: NavigationMenuItemProps;
31
+ linkProps?: NavigationMenuLinkProps;
37
32
  }
38
33
  type NavigationMenuSubOptionEmits = NavigationMenuLinkEmits;
39
34
  interface NavigationMenuOptionProps {
40
35
  item: NavigationMenuOptionData;
41
36
  itemProps?: NavigationMenuItemProps;
37
+ linkProps?: NavigationMenuLinkProps;
42
38
  triggerProps?: NavigationMenuTriggerProps;
43
39
  contentProps?: NavigationMenuContentProps;
44
40
  viewportProps?: NavigationMenuViewportProps;
@@ -1,5 +1,5 @@
1
1
  import { NumberInputProps } from "./types.js";
2
- import * as vue31 from "vue";
2
+ import * as vue225 from "vue";
3
3
 
4
4
  //#region src/components/number-input/number-input.vue.d.ts
5
5
  declare var __VLS_10: {}, __VLS_24: {}, __VLS_32: {}, __VLS_45: {};
@@ -12,11 +12,11 @@ type __VLS_Slots = {} & {
12
12
  } & {
13
13
  increment?: (props: typeof __VLS_45) => any;
14
14
  };
15
- declare const __VLS_base: vue31.DefineComponent<NumberInputProps, {}, {}, {}, {}, vue31.ComponentOptionsMixin, vue31.ComponentOptionsMixin, {
15
+ declare const __VLS_base: vue225.DefineComponent<NumberInputProps, {}, {}, {}, {}, vue225.ComponentOptionsMixin, vue225.ComponentOptionsMixin, {
16
16
  "update:modelValue": (val: number) => any;
17
- }, string, vue31.PublicProps, Readonly<NumberInputProps> & Readonly<{
17
+ }, string, vue225.PublicProps, Readonly<NumberInputProps> & Readonly<{
18
18
  "onUpdate:modelValue"?: ((val: number) => any) | undefined;
19
- }>, {}, {}, {}, {}, string, vue31.ComponentProvideOptions, false, {}, any>;
19
+ }>, {}, {}, {}, {}, string, vue225.ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
21
  declare const _default: typeof __VLS_export;
22
22
  type __VLS_WithSlots<T, S> = T & {