@ark-ui/vue 5.22.0 → 5.23.0

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 (39) hide show
  1. package/dist/components/combobox/combobox-root-provider.vue.d.cts +2 -0
  2. package/dist/components/combobox/combobox-root-provider.vue.d.ts +2 -0
  3. package/dist/components/combobox/combobox-root.vue.d.cts +2 -0
  4. package/dist/components/combobox/combobox-root.vue.d.ts +2 -0
  5. package/dist/components/combobox/combobox.d.cts +2 -2
  6. package/dist/components/combobox/combobox.d.ts +2 -2
  7. package/dist/components/combobox/index.d.cts +2 -2
  8. package/dist/components/combobox/index.d.ts +2 -2
  9. package/dist/components/field/use-field.cjs +1 -0
  10. package/dist/components/field/use-field.d.cts +1 -0
  11. package/dist/components/field/use-field.d.ts +1 -0
  12. package/dist/components/field/use-field.js +1 -0
  13. package/dist/components/listbox/index.d.cts +2 -2
  14. package/dist/components/listbox/index.d.ts +2 -2
  15. package/dist/components/listbox/listbox-root-provider.vue.d.cts +2 -0
  16. package/dist/components/listbox/listbox-root-provider.vue.d.ts +2 -0
  17. package/dist/components/listbox/listbox-root.vue.d.cts +2 -0
  18. package/dist/components/listbox/listbox-root.vue.d.ts +2 -0
  19. package/dist/components/listbox/listbox.d.cts +2 -2
  20. package/dist/components/listbox/listbox.d.ts +2 -2
  21. package/dist/components/menu/menu-trigger-item.vue.cjs +2 -0
  22. package/dist/components/menu/menu-trigger-item.vue.js +3 -1
  23. package/dist/components/select/index.d.cts +2 -2
  24. package/dist/components/select/index.d.ts +2 -2
  25. package/dist/components/select/select-root-provider.vue.d.cts +2 -0
  26. package/dist/components/select/select-root-provider.vue.d.ts +2 -0
  27. package/dist/components/select/select-root.vue.d.cts +2 -0
  28. package/dist/components/select/select-root.vue.d.ts +2 -0
  29. package/dist/components/select/select.d.cts +2 -2
  30. package/dist/components/select/select.d.ts +2 -2
  31. package/dist/components/tree-view/index.d.cts +2 -2
  32. package/dist/components/tree-view/index.d.ts +2 -2
  33. package/dist/components/tree-view/tree-view-root-provider.vue.d.cts +2 -0
  34. package/dist/components/tree-view/tree-view-root-provider.vue.d.ts +2 -0
  35. package/dist/components/tree-view/tree-view-root.vue.d.cts +2 -0
  36. package/dist/components/tree-view/tree-view-root.vue.d.ts +2 -0
  37. package/dist/components/tree-view/tree-view.d.cts +2 -2
  38. package/dist/components/tree-view/tree-view.d.ts +2 -2
  39. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -14,6 +15,7 @@ export interface ComboboxRootProviderProps<T extends CollectionItem> extends Com
14
15
  */
15
16
  HTMLAttributes {
16
17
  }
18
+ export type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => any;
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ComboboxRootProviderProps<T> & Partial<{}>> & PublicProps;
19
21
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -14,6 +15,7 @@ export interface ComboboxRootProviderProps<T extends CollectionItem> extends Com
14
15
  */
15
16
  HTMLAttributes {
16
17
  }
18
+ export type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => any;
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ComboboxRootProviderProps<T> & Partial<{}>> & PublicProps;
19
21
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -13,6 +14,7 @@ export interface ComboboxRootProps<T extends CollectionItem> extends ComboboxRoo
13
14
  */
14
15
  Omit<HTMLAttributes, 'onSelect'> {
15
16
  }
17
+ export type ComboboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProps<T>, P>) => any;
16
18
  export type { RootEmits as ComboboxRootEmits } from './combobox.types';
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -13,6 +14,7 @@ export interface ComboboxRootProps<T extends CollectionItem> extends ComboboxRoo
13
14
  */
14
15
  Omit<HTMLAttributes, 'onSelect'> {
15
16
  }
17
+ export type ComboboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProps<T>, P>) => any;
16
18
  export type { RootEmits as ComboboxRootEmits } from './combobox.types';
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -14,6 +14,6 @@ export { default as Item, type ComboboxItemProps as ItemProps, type ComboboxItem
14
14
  export { default as Label, type ComboboxLabelProps as LabelProps, type ComboboxLabelBaseProps as LabelBaseProps, } from './combobox-label.vue';
15
15
  export { default as List, type ComboboxListProps as ListProps, type ComboboxListBaseProps as ListBaseProps, } from './combobox-list.vue';
16
16
  export { default as Positioner, type ComboboxPositionerProps as PositionerProps, type ComboboxPositionerBaseProps as PositionerBaseProps, } from './combobox-positioner.vue';
17
- export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, } from './combobox-root-provider.vue';
18
- export { default as Root, type ComboboxRootEmits as RootEmits, type ComboboxRootBaseProps as RootBaseProps, type ComboboxRootProps as RootProps, } from './combobox-root.vue';
17
+ export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, type ComboboxRootProviderComponent as RootProviderComponent, } from './combobox-root-provider.vue';
18
+ export { default as Root, type ComboboxRootBaseProps as RootBaseProps, type ComboboxRootComponent as RootComponent, type ComboboxRootEmits as RootEmits, type ComboboxRootProps as RootProps, } from './combobox-root.vue';
19
19
  export { default as Trigger, type ComboboxTriggerProps as TriggerProps, type ComboboxTriggerBaseProps as TriggerBaseProps, } from './combobox-trigger.vue';
@@ -14,6 +14,6 @@ export { default as Item, type ComboboxItemProps as ItemProps, type ComboboxItem
14
14
  export { default as Label, type ComboboxLabelProps as LabelProps, type ComboboxLabelBaseProps as LabelBaseProps, } from './combobox-label.vue';
15
15
  export { default as List, type ComboboxListProps as ListProps, type ComboboxListBaseProps as ListBaseProps, } from './combobox-list.vue';
16
16
  export { default as Positioner, type ComboboxPositionerProps as PositionerProps, type ComboboxPositionerBaseProps as PositionerBaseProps, } from './combobox-positioner.vue';
17
- export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, } from './combobox-root-provider.vue';
18
- export { default as Root, type ComboboxRootEmits as RootEmits, type ComboboxRootBaseProps as RootBaseProps, type ComboboxRootProps as RootProps, } from './combobox-root.vue';
17
+ export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, type ComboboxRootProviderComponent as RootProviderComponent, } from './combobox-root-provider.vue';
18
+ export { default as Root, type ComboboxRootBaseProps as RootBaseProps, type ComboboxRootComponent as RootComponent, type ComboboxRootEmits as RootEmits, type ComboboxRootProps as RootProps, } from './combobox-root.vue';
19
19
  export { default as Trigger, type ComboboxTriggerProps as TriggerProps, type ComboboxTriggerBaseProps as TriggerBaseProps, } from './combobox-trigger.vue';
@@ -15,8 +15,8 @@ export { default as ComboboxItem, type ComboboxItemBaseProps, type ComboboxItemP
15
15
  export { default as ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps } from './combobox-label.vue';
16
16
  export { default as ComboboxList, type ComboboxListBaseProps, type ComboboxListProps } from './combobox-list.vue';
17
17
  export { default as ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, } from './combobox-positioner.vue';
18
- export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, } from './combobox-root-provider.vue';
19
- export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
18
+ export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, type ComboboxRootProviderComponent, } from './combobox-root-provider.vue';
19
+ export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootComponent, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
20
20
  export { default as ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, } from './combobox-trigger.vue';
21
21
  export { comboboxAnatomy } from './combobox.anatomy';
22
22
  export { useCombobox, type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
@@ -15,8 +15,8 @@ export { default as ComboboxItem, type ComboboxItemBaseProps, type ComboboxItemP
15
15
  export { default as ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps } from './combobox-label.vue';
16
16
  export { default as ComboboxList, type ComboboxListBaseProps, type ComboboxListProps } from './combobox-list.vue';
17
17
  export { default as ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, } from './combobox-positioner.vue';
18
- export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, } from './combobox-root-provider.vue';
19
- export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
18
+ export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, type ComboboxRootProviderComponent, } from './combobox-root-provider.vue';
19
+ export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootComponent, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
20
20
  export { default as ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, } from './combobox-trigger.vue';
21
21
  export { comboboxAnatomy } from './combobox.anatomy';
22
22
  export { useCombobox, type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
@@ -56,6 +56,7 @@ const useField = (props = {}) => {
56
56
  "data-disabled": domQuery.dataAttr(values.disabled),
57
57
  "data-invalid": domQuery.dataAttr(values.invalid),
58
58
  "data-readonly": domQuery.dataAttr(values.readOnly),
59
+ "data-required": domQuery.dataAttr(values.required),
59
60
  htmlFor: id.value
60
61
  };
61
62
  };
@@ -47,6 +47,7 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
47
47
  'data-disabled': boolean | "false" | "true";
48
48
  'data-invalid': boolean | "false" | "true";
49
49
  'data-readonly': boolean | "false" | "true";
50
+ 'data-required': boolean | "false" | "true";
50
51
  htmlFor: string;
51
52
  "data-scope": string;
52
53
  "data-part": string;
@@ -47,6 +47,7 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
47
47
  'data-disabled': boolean | "false" | "true";
48
48
  'data-invalid': boolean | "false" | "true";
49
49
  'data-readonly': boolean | "false" | "true";
50
+ 'data-required': boolean | "false" | "true";
50
51
  htmlFor: string;
51
52
  "data-scope": string;
52
53
  "data-part": string;
@@ -52,6 +52,7 @@ const useField = (props = {}) => {
52
52
  "data-disabled": dataAttr(values.disabled),
53
53
  "data-invalid": dataAttr(values.invalid),
54
54
  "data-readonly": dataAttr(values.readOnly),
55
+ "data-required": dataAttr(values.required),
55
56
  htmlFor: id.value
56
57
  };
57
58
  };
@@ -11,8 +11,8 @@ export { default as ListboxItemGroupLabel, type ListboxItemGroupLabelBaseProps,
11
11
  export { default as ListboxItemIndicator, type ListboxItemIndicatorBaseProps, type ListboxItemIndicatorProps, } from './listbox-item-indicator.vue';
12
12
  export { default as ListboxItemText, type ListboxItemTextBaseProps, type ListboxItemTextProps, } from './listbox-item-text.vue';
13
13
  export { default as ListboxLabel, type ListboxLabelBaseProps, type ListboxLabelProps } from './listbox-label.vue';
14
- export { default as ListboxRoot, type ListboxRootBaseProps, type ListboxRootProps, type ListboxRootEmits, } from './listbox-root.vue';
15
- export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, } from './listbox-root-provider.vue';
14
+ export { default as ListboxRoot, type ListboxRootBaseProps, type ListboxRootComponent, type ListboxRootEmits, type ListboxRootProps, } from './listbox-root.vue';
15
+ export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, type ListboxRootProviderComponent, } from './listbox-root-provider.vue';
16
16
  export { default as ListboxValueText, type ListboxValueTextBaseProps, type ListboxValueTextProps, } from './listbox-value-text.vue';
17
17
  export { listboxAnatomy } from './listbox.anatomy';
18
18
  export { useListbox, type UseListboxProps, type UseListboxReturn } from './use-listbox';
@@ -11,8 +11,8 @@ export { default as ListboxItemGroupLabel, type ListboxItemGroupLabelBaseProps,
11
11
  export { default as ListboxItemIndicator, type ListboxItemIndicatorBaseProps, type ListboxItemIndicatorProps, } from './listbox-item-indicator.vue';
12
12
  export { default as ListboxItemText, type ListboxItemTextBaseProps, type ListboxItemTextProps, } from './listbox-item-text.vue';
13
13
  export { default as ListboxLabel, type ListboxLabelBaseProps, type ListboxLabelProps } from './listbox-label.vue';
14
- export { default as ListboxRoot, type ListboxRootBaseProps, type ListboxRootProps, type ListboxRootEmits, } from './listbox-root.vue';
15
- export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, } from './listbox-root-provider.vue';
14
+ export { default as ListboxRoot, type ListboxRootBaseProps, type ListboxRootComponent, type ListboxRootEmits, type ListboxRootProps, } from './listbox-root.vue';
15
+ export { default as ListboxRootProvider, type ListboxRootProviderBaseProps, type ListboxRootProviderProps, type ListboxRootProviderComponent, } from './listbox-root-provider.vue';
16
16
  export { default as ListboxValueText, type ListboxValueTextBaseProps, type ListboxValueTextProps, } from './listbox-value-text.vue';
17
17
  export { listboxAnatomy } from './listbox.anatomy';
18
18
  export { useListbox, type UseListboxProps, type UseListboxReturn } from './use-listbox';
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { CollectionItem } from '../collection';
3
4
  import { PolymorphicProps } from '../factory';
4
5
  import { UseListboxReturn } from './use-listbox';
@@ -13,6 +14,7 @@ export interface ListboxRootProviderProps<T extends CollectionItem> extends List
13
14
  */
14
15
  HTMLAttributes {
15
16
  }
17
+ export type ListboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProviderProps<T>, P>) => any;
16
18
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
17
19
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ListboxRootProviderProps<T> & Partial<{}>> & PublicProps;
18
20
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { CollectionItem } from '../collection';
3
4
  import { PolymorphicProps } from '../factory';
4
5
  import { UseListboxReturn } from './use-listbox';
@@ -13,6 +14,7 @@ export interface ListboxRootProviderProps<T extends CollectionItem> extends List
13
14
  */
14
15
  HTMLAttributes {
15
16
  }
17
+ export type ListboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProviderProps<T>, P>) => any;
16
18
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
17
19
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ListboxRootProviderProps<T> & Partial<{}>> & PublicProps;
18
20
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { CollectionItem } from '../collection';
3
4
  import { PolymorphicProps } from '../factory';
4
5
  import { RootProps } from './listbox.types';
@@ -11,6 +12,7 @@ export interface ListboxRootProps<T extends CollectionItem> extends ListboxRootB
11
12
  */
12
13
  HTMLAttributes {
13
14
  }
15
+ export type ListboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProps<T>, P>) => any;
14
16
  export type { RootEmits as ListboxRootEmits } from './listbox.types';
15
17
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
16
18
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { CollectionItem } from '../collection';
3
4
  import { PolymorphicProps } from '../factory';
4
5
  import { RootProps } from './listbox.types';
@@ -11,6 +12,7 @@ export interface ListboxRootProps<T extends CollectionItem> extends ListboxRootB
11
12
  */
12
13
  HTMLAttributes {
13
14
  }
15
+ export type ListboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ListboxRootProps<T>, P>) => any;
14
16
  export type { RootEmits as ListboxRootEmits } from './listbox.types';
15
17
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
16
18
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -10,6 +10,6 @@ export { default as ItemIndicator, type ListboxItemIndicatorBaseProps as ItemInd
10
10
  export { default as ItemText, type ListboxItemTextBaseProps as ItemTextBaseProps, type ListboxItemTextProps as ItemTextProps, } from './listbox-item-text.vue';
11
11
  export { default as Item, type ListboxItemBaseProps as ItemBaseProps, type ListboxItemProps as ItemProps, } from './listbox-item.vue';
12
12
  export { default as Label, type ListboxLabelBaseProps as LabelBaseProps, type ListboxLabelProps as LabelProps, } from './listbox-label.vue';
13
- export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, } from './listbox-root-provider.vue';
14
- export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
13
+ export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, type ListboxRootProviderComponent as RootProviderComponent, } from './listbox-root-provider.vue';
14
+ export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootComponent as RootComponent, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
15
15
  export { default as ValueText, type ListboxValueTextBaseProps as ValueTextBaseProps, type ListboxValueTextProps as ValueTextProps, } from './listbox-value-text.vue';
@@ -10,6 +10,6 @@ export { default as ItemIndicator, type ListboxItemIndicatorBaseProps as ItemInd
10
10
  export { default as ItemText, type ListboxItemTextBaseProps as ItemTextBaseProps, type ListboxItemTextProps as ItemTextProps, } from './listbox-item-text.vue';
11
11
  export { default as Item, type ListboxItemBaseProps as ItemBaseProps, type ListboxItemProps as ItemProps, } from './listbox-item.vue';
12
12
  export { default as Label, type ListboxLabelBaseProps as LabelBaseProps, type ListboxLabelProps as LabelProps, } from './listbox-label.vue';
13
- export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, } from './listbox-root-provider.vue';
14
- export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
13
+ export { default as RootProvider, type ListboxRootProviderBaseProps as RootProviderBaseProps, type ListboxRootProviderProps as RootProviderProps, type ListboxRootProviderComponent as RootProviderComponent, } from './listbox-root-provider.vue';
14
+ export { default as Root, type ListboxRootBaseProps as RootBaseProps, type ListboxRootComponent as RootComponent, type ListboxRootEmits as RootEmits, type ListboxRootProps as RootProps, } from './listbox-root.vue';
15
15
  export { default as ValueText, type ListboxValueTextBaseProps as ValueTextBaseProps, type ListboxValueTextProps as ValueTextProps, } from './listbox-value-text.vue';
@@ -5,6 +5,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
5
5
  const vue = require('vue');
6
6
  const factory = require('../factory.cjs');
7
7
  const useForwardExpose = require('../../utils/use-forward-expose.cjs');
8
+ const useMenuOptionItemPropsContext = require('./use-menu-option-item-props-context.cjs');
8
9
  const useMenuTriggerItemContext = require('./use-menu-trigger-item-context.cjs');
9
10
 
10
11
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -14,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
14
15
  },
15
16
  setup(__props) {
16
17
  const triggerItemProps = useMenuTriggerItemContext.useMenuTriggerItemContext();
18
+ useMenuOptionItemPropsContext.MenuItemPropsProvider(vue.computed(() => ({ value: triggerItemProps.value?.["data-value"] })));
17
19
  useForwardExpose.useForwardExpose();
18
20
  return (_ctx, _cache) => {
19
21
  return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps(vue.unref(triggerItemProps), { "as-child": _ctx.asChild }), {
@@ -1,6 +1,7 @@
1
- import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
2
  import { ark } from '../factory.js';
3
3
  import { useForwardExpose } from '../../utils/use-forward-expose.js';
4
+ import { MenuItemPropsProvider } from './use-menu-option-item-props-context.js';
4
5
  import { useMenuTriggerItemContext } from './use-menu-trigger-item-context.js';
5
6
 
6
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -10,6 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
11
  },
11
12
  setup(__props) {
12
13
  const triggerItemProps = useMenuTriggerItemContext();
14
+ MenuItemPropsProvider(computed(() => ({ value: triggerItemProps.value?.["data-value"] })));
13
15
  useForwardExpose();
14
16
  return (_ctx, _cache) => {
15
17
  return openBlock(), createBlock(unref(ark).div, mergeProps(unref(triggerItemProps), { "as-child": _ctx.asChild }), {
@@ -15,8 +15,8 @@ export { default as SelectItem, type SelectItemBaseProps, type SelectItemProps }
15
15
  export { default as SelectLabel, type SelectLabelBaseProps, type SelectLabelProps } from './select-label.vue';
16
16
  export { default as SelectList, type SelectListBaseProps, type SelectListProps } from './select-list.vue';
17
17
  export { default as SelectPositioner, type SelectPositionerBaseProps, type SelectPositionerProps, } from './select-positioner.vue';
18
- export { default as SelectRootProvider, type SelectRootProviderBaseProps, type SelectRootProviderProps, } from './select-root-provider.vue';
19
- export { default as SelectRoot, type SelectRootBaseProps, type SelectRootEmits, type SelectRootProps, } from './select-root.vue';
18
+ export { default as SelectRootProvider, type SelectRootProviderBaseProps, type SelectRootProviderProps, type SelectRootProviderComponent, } from './select-root-provider.vue';
19
+ export { default as SelectRoot, type SelectRootBaseProps, type SelectRootEmits, type SelectRootProps, type SelectRootComponent, } from './select-root.vue';
20
20
  export { default as SelectTrigger, type SelectTriggerBaseProps, type SelectTriggerProps } from './select-trigger.vue';
21
21
  export { default as SelectValueText, type SelectValueTextBaseProps, type SelectValueTextProps, } from './select-value-text.vue';
22
22
  export { selectAnatomy } from './select.anatomy';
@@ -15,8 +15,8 @@ export { default as SelectItem, type SelectItemBaseProps, type SelectItemProps }
15
15
  export { default as SelectLabel, type SelectLabelBaseProps, type SelectLabelProps } from './select-label.vue';
16
16
  export { default as SelectList, type SelectListBaseProps, type SelectListProps } from './select-list.vue';
17
17
  export { default as SelectPositioner, type SelectPositionerBaseProps, type SelectPositionerProps, } from './select-positioner.vue';
18
- export { default as SelectRootProvider, type SelectRootProviderBaseProps, type SelectRootProviderProps, } from './select-root-provider.vue';
19
- export { default as SelectRoot, type SelectRootBaseProps, type SelectRootEmits, type SelectRootProps, } from './select-root.vue';
18
+ export { default as SelectRootProvider, type SelectRootProviderBaseProps, type SelectRootProviderProps, type SelectRootProviderComponent, } from './select-root-provider.vue';
19
+ export { default as SelectRoot, type SelectRootBaseProps, type SelectRootEmits, type SelectRootProps, type SelectRootComponent, } from './select-root.vue';
20
20
  export { default as SelectTrigger, type SelectTriggerBaseProps, type SelectTriggerProps } from './select-trigger.vue';
21
21
  export { default as SelectValueText, type SelectValueTextBaseProps, type SelectValueTextProps, } from './select-value-text.vue';
22
22
  export { selectAnatomy } from './select.anatomy';
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -14,6 +15,7 @@ export interface SelectRootProviderProps<T extends CollectionItem> extends Selec
14
15
  */
15
16
  HTMLAttributes {
16
17
  }
18
+ export type SelectRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<SelectRootProviderProps<T>, P>) => any;
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & SelectRootProviderProps<T> & Partial<{}>> & PublicProps;
19
21
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -14,6 +15,7 @@ export interface SelectRootProviderProps<T extends CollectionItem> extends Selec
14
15
  */
15
16
  HTMLAttributes {
16
17
  }
18
+ export type SelectRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<SelectRootProviderProps<T>, P>) => any;
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & SelectRootProviderProps<T> & Partial<{}>> & PublicProps;
19
21
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -13,6 +14,7 @@ export interface SelectRootProps<T extends CollectionItem> extends SelectRootBas
13
14
  */
14
15
  Omit<HTMLAttributes, 'onSelect'> {
15
16
  }
17
+ export type SelectRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<SelectRootProps<T>, P>) => any;
16
18
  export type { RootEmits as SelectRootEmits } from './select.types';
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { CollectionItem } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -13,6 +14,7 @@ export interface SelectRootProps<T extends CollectionItem> extends SelectRootBas
13
14
  */
14
15
  Omit<HTMLAttributes, 'onSelect'> {
15
16
  }
17
+ export type SelectRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<SelectRootProps<T>, P>) => any;
16
18
  export type { RootEmits as SelectRootEmits } from './select.types';
17
19
  declare const _default: <T extends CollectionItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -15,7 +15,7 @@ export { default as ItemText, type SelectItemTextProps as ItemTextProps, type Se
15
15
  export { default as Item, type SelectItemProps as ItemProps, type SelectItemBaseProps as ItemBaseProps, } from './select-item.vue';
16
16
  export { default as Label, type SelectLabelProps as LabelProps, type SelectLabelBaseProps as LabelBaseProps, } from './select-label.vue';
17
17
  export { default as Positioner, type SelectPositionerProps as PositionerProps, type SelectPositionerBaseProps as PositionerBaseProps, } from './select-positioner.vue';
18
- export { default as RootProvider, type SelectRootProviderProps as RootProviderProps, type SelectRootProviderBaseProps as RootProviderBaseProps, } from './select-root-provider.vue';
19
- export { default as Root, type SelectRootEmits as RootEmits, type SelectRootBaseProps as RootBaseProps, type SelectRootProps as RootProps, } from './select-root.vue';
18
+ export { default as RootProvider, type SelectRootProviderProps as RootProviderProps, type SelectRootProviderBaseProps as RootProviderBaseProps, type SelectRootProviderComponent as RootProviderComponent, } from './select-root-provider.vue';
19
+ export { default as Root, type SelectRootEmits as RootEmits, type SelectRootBaseProps as RootBaseProps, type SelectRootProps as RootProps, type SelectRootComponent as RootComponent, } from './select-root.vue';
20
20
  export { default as Trigger, type SelectTriggerProps as TriggerProps, type SelectTriggerBaseProps as TriggerBaseProps, } from './select-trigger.vue';
21
21
  export { default as ValueText, type SelectValueTextProps as ValueTextProps, type SelectValueTextBaseProps as ValueTextBaseProps, } from './select-value-text.vue';
@@ -15,7 +15,7 @@ export { default as ItemText, type SelectItemTextProps as ItemTextProps, type Se
15
15
  export { default as Item, type SelectItemProps as ItemProps, type SelectItemBaseProps as ItemBaseProps, } from './select-item.vue';
16
16
  export { default as Label, type SelectLabelProps as LabelProps, type SelectLabelBaseProps as LabelBaseProps, } from './select-label.vue';
17
17
  export { default as Positioner, type SelectPositionerProps as PositionerProps, type SelectPositionerBaseProps as PositionerBaseProps, } from './select-positioner.vue';
18
- export { default as RootProvider, type SelectRootProviderProps as RootProviderProps, type SelectRootProviderBaseProps as RootProviderBaseProps, } from './select-root-provider.vue';
19
- export { default as Root, type SelectRootEmits as RootEmits, type SelectRootBaseProps as RootBaseProps, type SelectRootProps as RootProps, } from './select-root.vue';
18
+ export { default as RootProvider, type SelectRootProviderProps as RootProviderProps, type SelectRootProviderBaseProps as RootProviderBaseProps, type SelectRootProviderComponent as RootProviderComponent, } from './select-root-provider.vue';
19
+ export { default as Root, type SelectRootEmits as RootEmits, type SelectRootBaseProps as RootBaseProps, type SelectRootProps as RootProps, type SelectRootComponent as RootComponent, } from './select-root.vue';
20
20
  export { default as Trigger, type SelectTriggerProps as TriggerProps, type SelectTriggerBaseProps as TriggerBaseProps, } from './select-trigger.vue';
21
21
  export { default as ValueText, type SelectValueTextProps as ValueTextProps, type SelectValueTextBaseProps as ValueTextBaseProps, } from './select-value-text.vue';
@@ -16,8 +16,8 @@ export { default as TreeViewNodeCheckbox, type TreeViewNodeCheckboxBaseProps, ty
16
16
  export { default as TreeViewNodeCheckboxIndicator, type TreeViewNodeCheckboxIndicatorBaseProps, type TreeViewNodeCheckboxIndicatorProps, } from './tree-view-node-checkbox-indicator.vue';
17
17
  export { default as TreeViewNodeContext, type TreeViewNodeContextProps } from './tree-view-node-context.vue';
18
18
  export { default as TreeViewNodeProvider, type TreeViewNodeProviderBaseProps, type TreeViewNodeProviderProps, } from './tree-view-node-provider.vue';
19
- export { default as TreeViewRootProvider, type TreeViewRootProviderBaseProps, type TreeViewRootProviderProps, } from './tree-view-root-provider.vue';
20
- export { default as TreeViewRoot, type TreeViewRootBaseProps, type TreeViewRootProps } from './tree-view-root.vue';
19
+ export { default as TreeViewRootProvider, type TreeViewRootProviderBaseProps, type TreeViewRootProviderComponent, type TreeViewRootProviderProps, } from './tree-view-root-provider.vue';
20
+ export { default as TreeViewRoot, type TreeViewRootBaseProps, type TreeViewRootComponent, type TreeViewRootProps, } from './tree-view-root.vue';
21
21
  export { default as TreeViewTree, type TreeViewTreeBaseProps, type TreeViewTreeProps } from './tree-view-tree.vue';
22
22
  export { treeViewAnatomy } from './tree-view.anatomy';
23
23
  export { useTreeView, type UseTreeViewProps, type UseTreeViewReturn } from './use-tree-view';
@@ -16,8 +16,8 @@ export { default as TreeViewNodeCheckbox, type TreeViewNodeCheckboxBaseProps, ty
16
16
  export { default as TreeViewNodeCheckboxIndicator, type TreeViewNodeCheckboxIndicatorBaseProps, type TreeViewNodeCheckboxIndicatorProps, } from './tree-view-node-checkbox-indicator.vue';
17
17
  export { default as TreeViewNodeContext, type TreeViewNodeContextProps } from './tree-view-node-context.vue';
18
18
  export { default as TreeViewNodeProvider, type TreeViewNodeProviderBaseProps, type TreeViewNodeProviderProps, } from './tree-view-node-provider.vue';
19
- export { default as TreeViewRootProvider, type TreeViewRootProviderBaseProps, type TreeViewRootProviderProps, } from './tree-view-root-provider.vue';
20
- export { default as TreeViewRoot, type TreeViewRootBaseProps, type TreeViewRootProps } from './tree-view-root.vue';
19
+ export { default as TreeViewRootProvider, type TreeViewRootProviderBaseProps, type TreeViewRootProviderComponent, type TreeViewRootProviderProps, } from './tree-view-root-provider.vue';
20
+ export { default as TreeViewRoot, type TreeViewRootBaseProps, type TreeViewRootComponent, type TreeViewRootProps, } from './tree-view-root.vue';
21
21
  export { default as TreeViewTree, type TreeViewTreeBaseProps, type TreeViewTreeProps } from './tree-view-tree.vue';
22
22
  export { treeViewAnatomy } from './tree-view.anatomy';
23
23
  export { useTreeView, type UseTreeViewProps, type UseTreeViewReturn } from './use-tree-view';
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { TreeNode } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -14,6 +15,7 @@ export interface TreeViewRootProviderProps<T extends TreeNode> extends TreeViewR
14
15
  */
15
16
  HTMLAttributes {
16
17
  }
18
+ export type TreeViewRootProviderComponent<P = {}> = <T extends TreeNode>(props: Assign<TreeViewRootProviderProps<T>, P>) => any;
17
19
  declare const _default: <T extends TreeNode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & TreeViewRootProviderProps<T> & Partial<{}>> & PublicProps;
19
21
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
2
+ import { Assign } from '../../types';
2
3
  import { RenderStrategyProps } from '../../utils';
3
4
  import { TreeNode } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
@@ -14,6 +15,7 @@ export interface TreeViewRootProviderProps<T extends TreeNode> extends TreeViewR
14
15
  */
15
16
  HTMLAttributes {
16
17
  }
18
+ export type TreeViewRootProviderComponent<P = {}> = <T extends TreeNode>(props: Assign<TreeViewRootProviderProps<T>, P>) => any;
17
19
  declare const _default: <T extends TreeNode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
20
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & TreeViewRootProviderProps<T> & Partial<{}>> & PublicProps;
19
21
  expose(exposed: ShallowUnwrapRef<{}>): void;
@@ -1,5 +1,6 @@
1
1
  import { RenderStrategyProps } from '../../utils';
2
2
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { Assign } from '../../types';
3
4
  import { TreeNode } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
5
6
  import { RootProps } from './tree-view.types';
@@ -12,6 +13,7 @@ export interface TreeViewRootProps<T extends TreeNode> extends TreeViewRootBaseP
12
13
  */
13
14
  HTMLAttributes {
14
15
  }
16
+ export type TreeViewRootComponent<P = {}> = <T extends TreeNode>(props: Assign<TreeViewRootProps<T>, P>) => any;
15
17
  export type { RootEmits as TreeViewRootEmits } from './tree-view.types';
16
18
  declare const _default: <T extends TreeNode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
17
19
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -1,5 +1,6 @@
1
1
  import { RenderStrategyProps } from '../../utils';
2
2
  import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ import { Assign } from '../../types';
3
4
  import { TreeNode } from '../collection';
4
5
  import { PolymorphicProps } from '../factory';
5
6
  import { RootProps } from './tree-view.types';
@@ -12,6 +13,7 @@ export interface TreeViewRootProps<T extends TreeNode> extends TreeViewRootBaseP
12
13
  */
13
14
  HTMLAttributes {
14
15
  }
16
+ export type TreeViewRootComponent<P = {}> = <T extends TreeNode>(props: Assign<TreeViewRootProps<T>, P>) => any;
15
17
  export type { RootEmits as TreeViewRootEmits } from './tree-view.types';
16
18
  declare const _default: <T extends TreeNode>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
17
19
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -15,6 +15,6 @@ export { default as NodeCheckbox, type TreeViewNodeCheckboxBaseProps as NodeChec
15
15
  export { default as NodeCheckboxIndicator, type TreeViewNodeCheckboxIndicatorBaseProps as NodeCheckboxIndicatorBaseProps, type TreeViewNodeCheckboxIndicatorProps as NodeCheckboxIndicatorProps, } from './tree-view-node-checkbox-indicator.vue';
16
16
  export { default as NodeContext, type TreeViewNodeContextProps as NodeContextProps } from './tree-view-node-context.vue';
17
17
  export { default as NodeProvider, type TreeViewNodeProviderBaseProps as NodeProviderBaseProps, type TreeViewNodeProviderProps as NodeProviderProps, } from './tree-view-node-provider.vue';
18
- export { default as RootProvider, type TreeViewRootProviderBaseProps as RootProviderBaseProps, type TreeViewRootProviderProps as RootProviderProps, } from './tree-view-root-provider.vue';
19
- export { default as Root, type TreeViewRootBaseProps as RootBaseProps, type TreeViewRootEmits as RootEmits, type TreeViewRootProps as RootProps, } from './tree-view-root.vue';
18
+ export { default as RootProvider, type TreeViewRootProviderBaseProps as RootProviderBaseProps, type TreeViewRootProviderComponent as RootProviderComponent, type TreeViewRootProviderProps as RootProviderProps, } from './tree-view-root-provider.vue';
19
+ export { default as Root, type TreeViewRootBaseProps as RootBaseProps, type TreeViewRootComponent as RootComponent, type TreeViewRootEmits as RootEmits, type TreeViewRootProps as RootProps, } from './tree-view-root.vue';
20
20
  export { default as Tree, type TreeViewTreeBaseProps as TreeBaseProps, type TreeViewTreeProps as TreeProps, } from './tree-view-tree.vue';
@@ -15,6 +15,6 @@ export { default as NodeCheckbox, type TreeViewNodeCheckboxBaseProps as NodeChec
15
15
  export { default as NodeCheckboxIndicator, type TreeViewNodeCheckboxIndicatorBaseProps as NodeCheckboxIndicatorBaseProps, type TreeViewNodeCheckboxIndicatorProps as NodeCheckboxIndicatorProps, } from './tree-view-node-checkbox-indicator.vue';
16
16
  export { default as NodeContext, type TreeViewNodeContextProps as NodeContextProps } from './tree-view-node-context.vue';
17
17
  export { default as NodeProvider, type TreeViewNodeProviderBaseProps as NodeProviderBaseProps, type TreeViewNodeProviderProps as NodeProviderProps, } from './tree-view-node-provider.vue';
18
- export { default as RootProvider, type TreeViewRootProviderBaseProps as RootProviderBaseProps, type TreeViewRootProviderProps as RootProviderProps, } from './tree-view-root-provider.vue';
19
- export { default as Root, type TreeViewRootBaseProps as RootBaseProps, type TreeViewRootEmits as RootEmits, type TreeViewRootProps as RootProps, } from './tree-view-root.vue';
18
+ export { default as RootProvider, type TreeViewRootProviderBaseProps as RootProviderBaseProps, type TreeViewRootProviderComponent as RootProviderComponent, type TreeViewRootProviderProps as RootProviderProps, } from './tree-view-root-provider.vue';
19
+ export { default as Root, type TreeViewRootBaseProps as RootBaseProps, type TreeViewRootComponent as RootComponent, type TreeViewRootEmits as RootEmits, type TreeViewRootProps as RootProps, } from './tree-view-root.vue';
20
20
  export { default as Tree, type TreeViewTreeBaseProps as TreeBaseProps, type TreeViewTreeProps as TreeProps, } from './tree-view-tree.vue';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/vue",
3
3
  "type": "module",
4
- "version": "5.22.0",
4
+ "version": "5.23.0",
5
5
  "description": "A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.",
6
6
  "keywords": [
7
7
  "accordion",