@ark-ui/vue 5.16.0 → 5.17.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 (51) hide show
  1. package/dist/components/checkbox/checkbox-group-provider.vue.cjs +33 -0
  2. package/dist/components/checkbox/checkbox-group-provider.vue.d.cts +23 -0
  3. package/dist/components/checkbox/checkbox-group-provider.vue.d.ts +23 -0
  4. package/dist/components/checkbox/checkbox-group-provider.vue.js +29 -0
  5. package/dist/components/checkbox/checkbox-group-provider.vue2.cjs +9 -0
  6. package/dist/components/checkbox/checkbox-group-provider.vue2.js +5 -0
  7. package/dist/components/checkbox/checkbox-group.vue.cjs +1 -1
  8. package/dist/components/checkbox/checkbox-group.vue.js +2 -2
  9. package/dist/components/checkbox/checkbox.cjs +2 -0
  10. package/dist/components/checkbox/checkbox.d.cts +1 -0
  11. package/dist/components/checkbox/checkbox.d.ts +1 -0
  12. package/dist/components/checkbox/checkbox.js +1 -0
  13. package/dist/components/checkbox/index.cjs +2 -0
  14. package/dist/components/checkbox/index.d.cts +1 -0
  15. package/dist/components/checkbox/index.d.ts +1 -0
  16. package/dist/components/checkbox/index.js +1 -0
  17. package/dist/components/checkbox/use-checkbox-group-context.cjs +2 -2
  18. package/dist/components/checkbox/use-checkbox-group-context.d.cts +1 -1
  19. package/dist/components/checkbox/use-checkbox-group-context.d.ts +1 -1
  20. package/dist/components/checkbox/use-checkbox-group-context.js +2 -2
  21. package/dist/components/collapsible/collapsible-trigger.vue.cjs +2 -2
  22. package/dist/components/collapsible/collapsible-trigger.vue.js +3 -3
  23. package/dist/components/collection/index.d.cts +1 -1
  24. package/dist/components/collection/index.d.ts +1 -1
  25. package/dist/components/collection/use-list-collection.cjs +60 -38
  26. package/dist/components/collection/use-list-collection.d.cts +58 -5
  27. package/dist/components/collection/use-list-collection.d.ts +58 -5
  28. package/dist/components/collection/use-list-collection.js +60 -38
  29. package/dist/components/combobox/combobox-item-group.vue.cjs +2 -1
  30. package/dist/components/combobox/combobox-item-group.vue.js +2 -1
  31. package/dist/components/date-picker/date-picker-table.vue.cjs +2 -1
  32. package/dist/components/date-picker/date-picker-table.vue.js +2 -1
  33. package/dist/components/date-picker/use-date-picker.cjs +0 -1
  34. package/dist/components/date-picker/use-date-picker.js +0 -1
  35. package/dist/components/file-upload/file-upload.d.cts +1 -1
  36. package/dist/components/file-upload/file-upload.d.ts +1 -1
  37. package/dist/components/file-upload/index.d.cts +1 -1
  38. package/dist/components/file-upload/index.d.ts +1 -1
  39. package/dist/components/index.cjs +2 -0
  40. package/dist/components/index.js +1 -0
  41. package/dist/components/listbox/listbox-item-group.vue.cjs +2 -1
  42. package/dist/components/listbox/listbox-item-group.vue.js +2 -1
  43. package/dist/components/menu/menu-item-group.vue.cjs +2 -1
  44. package/dist/components/menu/menu-item-group.vue.js +2 -1
  45. package/dist/components/menu/menu-radio-item-group.vue.cjs +2 -1
  46. package/dist/components/menu/menu-radio-item-group.vue.js +2 -1
  47. package/dist/components/select/select-item-group.vue.cjs +2 -1
  48. package/dist/components/select/select-item-group.vue.js +2 -1
  49. package/dist/index.cjs +2 -0
  50. package/dist/index.js +1 -0
  51. package/package.json +65 -65
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const vue = require('vue');
6
+ const factory = require('../factory.cjs');
7
+ const useCheckboxGroupContext = require('./use-checkbox-group-context.cjs');
8
+ const useForwardExpose = require('../../utils/use-forward-expose.cjs');
9
+ const checkbox_anatomy = require('./checkbox.anatomy.cjs');
10
+
11
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
+ __name: "checkbox-group-provider",
13
+ props: {
14
+ value: {},
15
+ asChild: { type: Boolean }
16
+ },
17
+ setup(__props) {
18
+ const props = __props;
19
+ const checkboxGroup = vue.computed(() => props.value);
20
+ useCheckboxGroupContext.CheckboxGroupContextProvider(checkboxGroup);
21
+ useForwardExpose.useForwardExpose();
22
+ return (_ctx, _cache) => {
23
+ return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ role: "group" }, vue.unref(checkbox_anatomy.checkboxAnatomy).build().group.attrs, { "as-child": _ctx.asChild }), {
24
+ default: vue.withCtx(() => [
25
+ vue.renderSlot(_ctx.$slots, "default")
26
+ ]),
27
+ _: 3
28
+ }, 16, ["as-child"]);
29
+ };
30
+ }
31
+ });
32
+
33
+ exports.default = _sfc_main;
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { PolymorphicProps } from '../factory';
3
+ import { UseCheckboxGroupReturn } from './use-checkbox-group';
4
+ interface GroupProviderProps {
5
+ value: UnwrapRef<UseCheckboxGroupReturn>;
6
+ }
7
+ export interface CheckboxGroupProviderBaseProps extends GroupProviderProps, PolymorphicProps {
8
+ }
9
+ export interface CheckboxGroupProviderProps extends CheckboxGroupProviderBaseProps,
10
+ /**
11
+ * @vue-ignore
12
+ */
13
+ HTMLAttributes {
14
+ }
15
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<CheckboxGroupProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CheckboxGroupProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
16
+ default?(_: {}): any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { PolymorphicProps } from '../factory';
3
+ import { UseCheckboxGroupReturn } from './use-checkbox-group';
4
+ interface GroupProviderProps {
5
+ value: UnwrapRef<UseCheckboxGroupReturn>;
6
+ }
7
+ export interface CheckboxGroupProviderBaseProps extends GroupProviderProps, PolymorphicProps {
8
+ }
9
+ export interface CheckboxGroupProviderProps extends CheckboxGroupProviderBaseProps,
10
+ /**
11
+ * @vue-ignore
12
+ */
13
+ HTMLAttributes {
14
+ }
15
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<CheckboxGroupProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<CheckboxGroupProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
16
+ default?(_: {}): any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,29 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
+ import { ark } from '../factory.js';
3
+ import { CheckboxGroupContextProvider } from './use-checkbox-group-context.js';
4
+ import { useForwardExpose } from '../../utils/use-forward-expose.js';
5
+ import { checkboxAnatomy } from './checkbox.anatomy.js';
6
+
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "checkbox-group-provider",
9
+ props: {
10
+ value: {},
11
+ asChild: { type: Boolean }
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const checkboxGroup = computed(() => props.value);
16
+ CheckboxGroupContextProvider(checkboxGroup);
17
+ useForwardExpose();
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createBlock(unref(ark).div, mergeProps({ role: "group" }, unref(checkboxAnatomy).build().group.attrs, { "as-child": _ctx.asChild }), {
20
+ default: withCtx(() => [
21
+ renderSlot(_ctx.$slots, "default")
22
+ ]),
23
+ _: 3
24
+ }, 16, ["as-child"]);
25
+ };
26
+ }
27
+ });
28
+
29
+ export { _sfc_main as default };
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
+
5
+ const checkboxGroupProvider_vue_vue_type_script_setup_true_lang = require('./checkbox-group-provider.vue.cjs');
6
+
7
+
8
+
9
+ exports.default = checkboxGroupProvider_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './checkbox-group-provider.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
29
29
  const props = __props;
30
30
  const emits = __emit;
31
31
  const checkboxGroup = useCheckboxGroup.useCheckboxGroup(props, emits);
32
- useCheckboxGroupContext.CheckboxGroupProvider(checkboxGroup);
32
+ useCheckboxGroupContext.CheckboxGroupContextProvider(checkboxGroup);
33
33
  useForwardExpose.useForwardExpose();
34
34
  return (_ctx, _cache) => {
35
35
  return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ role: "group" }, { ...vue.unref(checkbox_anatomy.checkboxAnatomy).build().group.attrs }, { "as-child": _ctx.asChild }), {
@@ -2,7 +2,7 @@ import { defineComponent, mergeDefaults, createBlock, openBlock, unref, mergePro
2
2
  import { ark } from '../factory.js';
3
3
  import { checkboxAnatomy } from './checkbox.anatomy.js';
4
4
  import { useCheckboxGroup } from './use-checkbox-group.js';
5
- import { CheckboxGroupProvider } from './use-checkbox-group-context.js';
5
+ import { CheckboxGroupContextProvider } from './use-checkbox-group-context.js';
6
6
  import { useForwardExpose } from '../../utils/use-forward-expose.js';
7
7
 
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  const props = __props;
26
26
  const emits = __emit;
27
27
  const checkboxGroup = useCheckboxGroup(props, emits);
28
- CheckboxGroupProvider(checkboxGroup);
28
+ CheckboxGroupContextProvider(checkboxGroup);
29
29
  useForwardExpose();
30
30
  return (_ctx, _cache) => {
31
31
  return openBlock(), createBlock(unref(ark).div, mergeProps({ role: "group" }, { ...unref(checkboxAnatomy).build().group.attrs }, { "as-child": _ctx.asChild }), {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
  const checkboxContext_vue_vue_type_script_setup_true_lang = require('./checkbox-context.vue.cjs');
6
6
  const checkboxControl_vue_vue_type_script_setup_true_lang = require('./checkbox-control.vue.cjs');
7
7
  const checkboxGroup_vue_vue_type_script_setup_true_lang = require('./checkbox-group.vue.cjs');
8
+ const checkboxGroupProvider_vue_vue_type_script_setup_true_lang = require('./checkbox-group-provider.vue.cjs');
8
9
  const checkboxHiddenInput_vue_vue_type_script_setup_true_lang = require('./checkbox-hidden-input.vue.cjs');
9
10
  const checkboxIndicator_vue_vue_type_script_setup_true_lang = require('./checkbox-indicator.vue.cjs');
10
11
  const checkboxLabel_vue_vue_type_script_setup_true_lang = require('./checkbox-label.vue.cjs');
@@ -16,6 +17,7 @@ const checkboxRoot_vue_vue_type_script_setup_true_lang = require('./checkbox-roo
16
17
  exports.Context = checkboxContext_vue_vue_type_script_setup_true_lang.default;
17
18
  exports.Control = checkboxControl_vue_vue_type_script_setup_true_lang.default;
18
19
  exports.Group = checkboxGroup_vue_vue_type_script_setup_true_lang.default;
20
+ exports.GroupProvider = checkboxGroupProvider_vue_vue_type_script_setup_true_lang.default;
19
21
  exports.HiddenInput = checkboxHiddenInput_vue_vue_type_script_setup_true_lang.default;
20
22
  exports.Indicator = checkboxIndicator_vue_vue_type_script_setup_true_lang.default;
21
23
  exports.Label = checkboxLabel_vue_vue_type_script_setup_true_lang.default;
@@ -2,6 +2,7 @@ export type { CheckedChangeDetails, CheckedState } from '@zag-js/checkbox';
2
2
  export { default as Context, type CheckboxContextProps as ContextProps } from './checkbox-context.vue';
3
3
  export { default as Control, type CheckboxControlBaseProps as ControlBaseProps, type CheckboxControlProps as ControlProps, } from './checkbox-control.vue';
4
4
  export { default as Group, type CheckboxGroupBaseProps as GroupBaseProps, type CheckboxGroupProps as GroupProps, } from './checkbox-group.vue';
5
+ export { default as GroupProvider, type CheckboxGroupProviderBaseProps as GroupProviderBaseProps, type CheckboxGroupProviderProps as GroupProviderProps, } from './checkbox-group-provider.vue';
5
6
  export { default as HiddenInput, type CheckboxHiddenInputBaseProps as HiddenInputBaseProps, type CheckboxHiddenInputProps as HiddenInputProps, } from './checkbox-hidden-input.vue';
6
7
  export { default as Indicator, type CheckboxIndicatorBaseProps as IndicatorBaseProps, type CheckboxIndicatorProps as IndicatorProps, } from './checkbox-indicator.vue';
7
8
  export { default as Label, type CheckboxLabelBaseProps as LabelBaseProps, type CheckboxLabelProps as LabelProps, } from './checkbox-label.vue';
@@ -2,6 +2,7 @@ export type { CheckedChangeDetails, CheckedState } from '@zag-js/checkbox';
2
2
  export { default as Context, type CheckboxContextProps as ContextProps } from './checkbox-context.vue';
3
3
  export { default as Control, type CheckboxControlBaseProps as ControlBaseProps, type CheckboxControlProps as ControlProps, } from './checkbox-control.vue';
4
4
  export { default as Group, type CheckboxGroupBaseProps as GroupBaseProps, type CheckboxGroupProps as GroupProps, } from './checkbox-group.vue';
5
+ export { default as GroupProvider, type CheckboxGroupProviderBaseProps as GroupProviderBaseProps, type CheckboxGroupProviderProps as GroupProviderProps, } from './checkbox-group-provider.vue';
5
6
  export { default as HiddenInput, type CheckboxHiddenInputBaseProps as HiddenInputBaseProps, type CheckboxHiddenInputProps as HiddenInputProps, } from './checkbox-hidden-input.vue';
6
7
  export { default as Indicator, type CheckboxIndicatorBaseProps as IndicatorBaseProps, type CheckboxIndicatorProps as IndicatorProps, } from './checkbox-indicator.vue';
7
8
  export { default as Label, type CheckboxLabelBaseProps as LabelBaseProps, type CheckboxLabelProps as LabelProps, } from './checkbox-label.vue';
@@ -1,6 +1,7 @@
1
1
  export { default as Context } from './checkbox-context.vue.js';
2
2
  export { default as Control } from './checkbox-control.vue.js';
3
3
  export { default as Group } from './checkbox-group.vue.js';
4
+ export { default as GroupProvider } from './checkbox-group-provider.vue.js';
4
5
  export { default as HiddenInput } from './checkbox-hidden-input.vue.js';
5
6
  export { default as Indicator } from './checkbox-indicator.vue.js';
6
7
  export { default as Label } from './checkbox-label.vue.js';
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5
5
  const checkboxContext_vue_vue_type_script_setup_true_lang = require('./checkbox-context.vue.cjs');
6
6
  const checkboxControl_vue_vue_type_script_setup_true_lang = require('./checkbox-control.vue.cjs');
7
7
  const checkboxGroup_vue_vue_type_script_setup_true_lang = require('./checkbox-group.vue.cjs');
8
+ const checkboxGroupProvider_vue_vue_type_script_setup_true_lang = require('./checkbox-group-provider.vue.cjs');
8
9
  const checkboxHiddenInput_vue_vue_type_script_setup_true_lang = require('./checkbox-hidden-input.vue.cjs');
9
10
  const checkboxIndicator_vue_vue_type_script_setup_true_lang = require('./checkbox-indicator.vue.cjs');
10
11
  const checkboxLabel_vue_vue_type_script_setup_true_lang = require('./checkbox-label.vue.cjs');
@@ -22,6 +23,7 @@ const checkbox = require('./checkbox.cjs');
22
23
  exports.CheckboxContext = checkboxContext_vue_vue_type_script_setup_true_lang.default;
23
24
  exports.CheckboxControl = checkboxControl_vue_vue_type_script_setup_true_lang.default;
24
25
  exports.CheckboxGroup = checkboxGroup_vue_vue_type_script_setup_true_lang.default;
26
+ exports.CheckboxGroupProvider = checkboxGroupProvider_vue_vue_type_script_setup_true_lang.default;
25
27
  exports.CheckboxHiddenInput = checkboxHiddenInput_vue_vue_type_script_setup_true_lang.default;
26
28
  exports.CheckboxIndicator = checkboxIndicator_vue_vue_type_script_setup_true_lang.default;
27
29
  exports.CheckboxLabel = checkboxLabel_vue_vue_type_script_setup_true_lang.default;
@@ -2,6 +2,7 @@ export type { CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState
2
2
  export { default as CheckboxContext, type CheckboxContextProps } from './checkbox-context.vue';
3
3
  export { default as CheckboxControl, type CheckboxControlProps, type CheckboxControlBaseProps, } from './checkbox-control.vue';
4
4
  export { default as CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupBaseProps } from './checkbox-group.vue';
5
+ export { default as CheckboxGroupProvider, type CheckboxGroupProviderProps, type CheckboxGroupProviderBaseProps, } from './checkbox-group-provider.vue';
5
6
  export { default as CheckboxHiddenInput, type CheckboxHiddenInputProps, type CheckboxHiddenInputBaseProps, } from './checkbox-hidden-input.vue';
6
7
  export { default as CheckboxIndicator, type CheckboxIndicatorProps, type CheckboxIndicatorBaseProps, } from './checkbox-indicator.vue';
7
8
  export { default as CheckboxLabel, type CheckboxLabelProps, type CheckboxLabelBaseProps } from './checkbox-label.vue';
@@ -2,6 +2,7 @@ export type { CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState
2
2
  export { default as CheckboxContext, type CheckboxContextProps } from './checkbox-context.vue';
3
3
  export { default as CheckboxControl, type CheckboxControlProps, type CheckboxControlBaseProps, } from './checkbox-control.vue';
4
4
  export { default as CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupBaseProps } from './checkbox-group.vue';
5
+ export { default as CheckboxGroupProvider, type CheckboxGroupProviderProps, type CheckboxGroupProviderBaseProps, } from './checkbox-group-provider.vue';
5
6
  export { default as CheckboxHiddenInput, type CheckboxHiddenInputProps, type CheckboxHiddenInputBaseProps, } from './checkbox-hidden-input.vue';
6
7
  export { default as CheckboxIndicator, type CheckboxIndicatorProps, type CheckboxIndicatorBaseProps, } from './checkbox-indicator.vue';
7
8
  export { default as CheckboxLabel, type CheckboxLabelProps, type CheckboxLabelBaseProps } from './checkbox-label.vue';
@@ -1,6 +1,7 @@
1
1
  export { default as CheckboxContext } from './checkbox-context.vue.js';
2
2
  export { default as CheckboxControl } from './checkbox-control.vue.js';
3
3
  export { default as CheckboxGroup } from './checkbox-group.vue.js';
4
+ export { default as CheckboxGroupProvider } from './checkbox-group-provider.vue.js';
4
5
  export { default as CheckboxHiddenInput } from './checkbox-hidden-input.vue.js';
5
6
  export { default as CheckboxIndicator } from './checkbox-indicator.vue.js';
6
7
  export { default as CheckboxLabel } from './checkbox-label.vue.js';
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const createContext = require('../../utils/create-context.cjs');
6
6
 
7
- const [CheckboxGroupProvider, useCheckboxGroupContext] = createContext.createContext('CheckboxGroupContext');
7
+ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext.createContext('CheckboxGroupContext');
8
8
 
9
- exports.CheckboxGroupProvider = CheckboxGroupProvider;
9
+ exports.CheckboxGroupContextProvider = CheckboxGroupContextProvider;
10
10
  exports.useCheckboxGroupContext = useCheckboxGroupContext;
@@ -1,4 +1,4 @@
1
1
  import { UseCheckboxGroupReturn } from './use-checkbox-group';
2
2
  export interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {
3
3
  }
4
- export declare const CheckboxGroupProvider: (opts: UseCheckboxGroupContext | undefined) => void, useCheckboxGroupContext: (fallback?: UseCheckboxGroupContext | undefined) => UseCheckboxGroupContext | undefined;
4
+ export declare const CheckboxGroupContextProvider: (opts: UseCheckboxGroupContext | undefined) => void, useCheckboxGroupContext: (fallback?: UseCheckboxGroupContext | undefined) => UseCheckboxGroupContext | undefined;
@@ -1,4 +1,4 @@
1
1
  import { UseCheckboxGroupReturn } from './use-checkbox-group';
2
2
  export interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {
3
3
  }
4
- export declare const CheckboxGroupProvider: (opts: UseCheckboxGroupContext | undefined) => void, useCheckboxGroupContext: (fallback?: UseCheckboxGroupContext | undefined) => UseCheckboxGroupContext | undefined;
4
+ export declare const CheckboxGroupContextProvider: (opts: UseCheckboxGroupContext | undefined) => void, useCheckboxGroupContext: (fallback?: UseCheckboxGroupContext | undefined) => UseCheckboxGroupContext | undefined;
@@ -1,5 +1,5 @@
1
1
  import { createContext } from '../../utils/create-context.js';
2
2
 
3
- const [CheckboxGroupProvider, useCheckboxGroupContext] = createContext('CheckboxGroupContext');
3
+ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext('CheckboxGroupContext');
4
4
 
5
- export { CheckboxGroupProvider, useCheckboxGroupContext };
5
+ export { CheckboxGroupContextProvider, useCheckboxGroupContext };
@@ -16,12 +16,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
16
16
  const collapsible = useCollapsibleContext.useCollapsibleContext();
17
17
  useForwardExpose.useForwardExpose();
18
18
  return (_ctx, _cache) => {
19
- return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).button, vue.normalizeProps(vue.guardReactiveProps(vue.unref(collapsible).getTriggerProps())), {
19
+ return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).button, vue.mergeProps(vue.unref(collapsible).getTriggerProps(), { "as-child": _ctx.asChild }), {
20
20
  default: vue.withCtx(() => [
21
21
  vue.renderSlot(_ctx.$slots, "default")
22
22
  ]),
23
23
  _: 3
24
- }, 16);
24
+ }, 16, ["as-child"]);
25
25
  };
26
26
  }
27
27
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
2
2
  import { ark } from '../factory.js';
3
3
  import { useCollapsibleContext } from './use-collapsible-context.js';
4
4
  import { useForwardExpose } from '../../utils/use-forward-expose.js';
@@ -12,12 +12,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  const collapsible = useCollapsibleContext();
13
13
  useForwardExpose();
14
14
  return (_ctx, _cache) => {
15
- return openBlock(), createBlock(unref(ark).button, normalizeProps(guardReactiveProps(unref(collapsible).getTriggerProps())), {
15
+ return openBlock(), createBlock(unref(ark).button, mergeProps(unref(collapsible).getTriggerProps(), { "as-child": _ctx.asChild }), {
16
16
  default: withCtx(() => [
17
17
  renderSlot(_ctx.$slots, "default")
18
18
  ]),
19
19
  _: 3
20
- }, 16);
20
+ }, 16, ["as-child"]);
21
21
  };
22
22
  }
23
23
  });
@@ -1,4 +1,4 @@
1
1
  export { createGridCollection, type GridCollection, type GridCollectionOptions } from './grid-collection';
2
2
  export { createListCollection, type CollectionItem, type CollectionOptions, type ListCollection, } from './list-collection';
3
3
  export { createFileTreeCollection, createTreeCollection, type FilePathTreeNode, type FlatTreeNode, type TreeCollection, type TreeCollectionOptions, type TreeNode, } from './tree-collection';
4
- export { useListCollection, type UseListCollectionProps } from './use-list-collection';
4
+ export { useListCollection, type UseListCollectionProps, type UseListCollectionReturn } from './use-list-collection';
@@ -1,4 +1,4 @@
1
1
  export { createGridCollection, type GridCollection, type GridCollectionOptions } from './grid-collection';
2
2
  export { createListCollection, type CollectionItem, type CollectionOptions, type ListCollection, } from './list-collection';
3
3
  export { createFileTreeCollection, createTreeCollection, type FilePathTreeNode, type FlatTreeNode, type TreeCollection, type TreeCollectionOptions, type TreeNode, } from './tree-collection';
4
- export { useListCollection, type UseListCollectionProps } from './use-list-collection';
4
+ export { useListCollection, type UseListCollectionProps, type UseListCollectionReturn } from './use-list-collection';
@@ -10,72 +10,94 @@ function useListCollection(props) {
10
10
  const { initialItems = [], filter, limit, ...collectionOptions } = vue.toValue(props);
11
11
  return [{ initialItems, filter, limit }, collectionOptions];
12
12
  });
13
- const create = (items) => {
14
- const [, collectionOptions] = resolvedProps.value;
15
- return listCollection.createListCollection({ ...collectionOptions, items });
16
- };
17
13
  const init = () => {
18
- const [localProps] = resolvedProps.value;
19
- return create(
20
- localProps.limit != null ? localProps.initialItems.slice(0, localProps.limit) : localProps.initialItems
21
- );
14
+ const { initialItems } = resolvedProps.value[0];
15
+ return initialItems;
22
16
  };
23
- const collection = vue.ref(init());
24
- const setCollection = (newCollection) => {
25
- const [localProps] = resolvedProps.value;
26
- collection.value = localProps.limit == null ? newCollection : newCollection.copy(newCollection.items.slice(0, localProps.limit));
17
+ const items = vue.ref(init());
18
+ const filterText = vue.ref("");
19
+ const setItems = (newItems) => {
20
+ items.value = newItems;
21
+ filterText.value = "";
22
+ };
23
+ const create = (itemsToCreate) => {
24
+ const [, collectionOptions] = resolvedProps.value;
25
+ return listCollection.createListCollection({ ...collectionOptions, items: itemsToCreate });
27
26
  };
27
+ const collection = vue.computed(() => {
28
+ const [localProps, collectionOptions] = resolvedProps.value;
29
+ let activeItems = items.value;
30
+ const filter = localProps.filter;
31
+ if (filterText.value && filter) {
32
+ activeItems = create(items.value).filter(
33
+ (itemString, _index, item) => filter(itemString, filterText.value, item)
34
+ ).items;
35
+ }
36
+ const limitedItems = localProps.limit == null ? activeItems : activeItems.slice(0, localProps.limit);
37
+ return listCollection.createListCollection({ ...collectionOptions, items: limitedItems });
38
+ });
28
39
  return {
29
40
  collection,
30
- filter: (inputValue) => {
31
- const [localProps] = resolvedProps.value;
32
- const filter = localProps.filter;
33
- if (!filter) return;
34
- const filtered = create(localProps.initialItems).filter((itemString) => filter(itemString, inputValue));
35
- setCollection(filtered);
41
+ filter: (inputValue = "") => {
42
+ filterText.value = inputValue;
36
43
  },
37
- set: (items) => {
38
- setCollection(create(items));
44
+ set: (newItems) => {
45
+ setItems(newItems);
39
46
  },
40
47
  reset: () => {
41
48
  const [localProps] = resolvedProps.value;
42
- setCollection(create(localProps.initialItems));
49
+ setItems(localProps.initialItems);
43
50
  },
44
51
  clear: () => {
45
- setCollection(create([]));
52
+ setItems([]);
46
53
  },
47
- insert: (index, ...items) => {
48
- setCollection(collection.value.insert(index, ...items));
54
+ insert: (index, ...itemsToInsert) => {
55
+ const newItems = create(items.value).insert(index, ...itemsToInsert).items;
56
+ setItems(newItems);
49
57
  },
50
- insertBefore: (value, ...items) => {
51
- setCollection(collection.value.insertBefore(value, ...items));
58
+ insertBefore: (value, ...itemsToInsert) => {
59
+ const newItems = create(items.value).insertBefore(value, ...itemsToInsert).items;
60
+ setItems(newItems);
52
61
  },
53
- insertAfter: (value, ...items) => {
54
- setCollection(collection.value.insertAfter(value, ...items));
62
+ insertAfter: (value, ...itemsToInsert) => {
63
+ const newItems = create(items.value).insertAfter(value, ...itemsToInsert).items;
64
+ setItems(newItems);
55
65
  },
56
66
  remove: (...itemOrValues) => {
57
- setCollection(collection.value.remove(...itemOrValues));
67
+ const newItems = create(items.value).remove(...itemOrValues).items;
68
+ setItems(newItems);
58
69
  },
59
70
  move: (value, to) => {
60
- setCollection(collection.value.move(value, to));
71
+ const newItems = create(items.value).move(value, to).items;
72
+ setItems(newItems);
61
73
  },
62
74
  moveBefore: (value, ...values) => {
63
- setCollection(collection.value.moveBefore(value, ...values));
75
+ const newItems = create(items.value).moveBefore(value, ...values).items;
76
+ setItems(newItems);
64
77
  },
65
78
  moveAfter: (value, ...values) => {
66
- setCollection(collection.value.moveAfter(value, ...values));
79
+ const newItems = create(items.value).moveAfter(value, ...values).items;
80
+ setItems(newItems);
67
81
  },
68
82
  reorder: (from, to) => {
69
- setCollection(collection.value.reorder(from, to));
83
+ const newItems = create(items.value).reorder(from, to).items;
84
+ setItems(newItems);
85
+ },
86
+ append: (...itemsToAppend) => {
87
+ const newItems = create(items.value).append(...itemsToAppend).items;
88
+ setItems(newItems);
70
89
  },
71
- append: (...items) => {
72
- setCollection(collection.value.append(...items));
90
+ upsert: (value, item, mode = "append") => {
91
+ const newItems = create(items.value).upsert(value, item, mode).items;
92
+ setItems(newItems);
73
93
  },
74
- prepend: (...items) => {
75
- setCollection(collection.value.prepend(...items));
94
+ prepend: (...itemsToPrepend) => {
95
+ const newItems = create(items.value).prepend(...itemsToPrepend).items;
96
+ setItems(newItems);
76
97
  },
77
98
  update: (value, item) => {
78
- setCollection(collection.value.update(value, item));
99
+ const newItems = create(items.value).update(value, item).items;
100
+ setItems(newItems);
79
101
  }
80
102
  };
81
103
  }
@@ -8,28 +8,81 @@ export interface UseListCollectionProps<T> extends Omit<CollectionOptions<T>, 'i
8
8
  /**
9
9
  * The filter function to use to filter the items.
10
10
  */
11
- filter?: (itemText: string, filterText: string) => boolean;
11
+ filter?: (itemText: string, filterText: string, item: T) => boolean;
12
12
  /**
13
13
  * The maximum number of items to display in the collection.
14
14
  * Useful for performance when you have a large number of items.
15
15
  */
16
16
  limit?: number;
17
17
  }
18
- export declare function useListCollection<T>(props: MaybeRef<UseListCollectionProps<T>>): {
19
- collection: Ref<ListCollection<T>, ListCollection<T>>;
18
+ export declare function useListCollection<T>(props: MaybeRef<UseListCollectionProps<T>>): UseListCollectionReturn<T>;
19
+ export interface UseListCollectionReturn<T> {
20
+ /**
21
+ * The collection of items.
22
+ */
23
+ collection: Ref<ListCollection<T>>;
24
+ /**
25
+ * The function to filter the items.
26
+ */
20
27
  filter: (inputValue: string) => void;
28
+ /**
29
+ * The function to set the items.
30
+ */
21
31
  set: (items: T[]) => void;
32
+ /**
33
+ * The function to reset the items.
34
+ */
22
35
  reset: () => void;
36
+ /**
37
+ * The function to clear the items.
38
+ */
23
39
  clear: () => void;
40
+ /**
41
+ * The function to insert items at a specific index.
42
+ */
24
43
  insert: (index: number, ...items: T[]) => void;
44
+ /**
45
+ * The function to insert items before a specific value.
46
+ */
25
47
  insertBefore: (value: string, ...items: T[]) => void;
48
+ /**
49
+ * The function to insert items after a specific value.
50
+ */
26
51
  insertAfter: (value: string, ...items: T[]) => void;
27
- remove: (...itemOrValues: T[]) => void;
52
+ /**
53
+ * The function to remove items.
54
+ */
55
+ remove: (...itemOrValues: Array<T | string>) => void;
56
+ /**
57
+ * The function to move an item to a specific index.
58
+ */
28
59
  move: (value: string, to: number) => void;
60
+ /**
61
+ * The function to move an item before a specific value.
62
+ */
29
63
  moveBefore: (value: string, ...values: string[]) => void;
64
+ /**
65
+ * The function to move an item after a specific value.
66
+ */
30
67
  moveAfter: (value: string, ...values: string[]) => void;
68
+ /**
69
+ * The function to reorder items.
70
+ */
31
71
  reorder: (from: number, to: number) => void;
72
+ /**
73
+ * The function to append items.
74
+ */
32
75
  append: (...items: T[]) => void;
76
+ /**
77
+ * The function to upsert an item.
78
+ */
79
+ upsert: (value: string, item: T, mode?: 'append' | 'prepend') => void;
80
+ /**
81
+ * The function to prepend items.
82
+ */
33
83
  prepend: (...items: T[]) => void;
84
+ /**
85
+ * The function to update an item.
86
+ */
34
87
  update: (value: string, item: T) => void;
35
- };
88
+ }
@@ -8,28 +8,81 @@ export interface UseListCollectionProps<T> extends Omit<CollectionOptions<T>, 'i
8
8
  /**
9
9
  * The filter function to use to filter the items.
10
10
  */
11
- filter?: (itemText: string, filterText: string) => boolean;
11
+ filter?: (itemText: string, filterText: string, item: T) => boolean;
12
12
  /**
13
13
  * The maximum number of items to display in the collection.
14
14
  * Useful for performance when you have a large number of items.
15
15
  */
16
16
  limit?: number;
17
17
  }
18
- export declare function useListCollection<T>(props: MaybeRef<UseListCollectionProps<T>>): {
19
- collection: Ref<ListCollection<T>, ListCollection<T>>;
18
+ export declare function useListCollection<T>(props: MaybeRef<UseListCollectionProps<T>>): UseListCollectionReturn<T>;
19
+ export interface UseListCollectionReturn<T> {
20
+ /**
21
+ * The collection of items.
22
+ */
23
+ collection: Ref<ListCollection<T>>;
24
+ /**
25
+ * The function to filter the items.
26
+ */
20
27
  filter: (inputValue: string) => void;
28
+ /**
29
+ * The function to set the items.
30
+ */
21
31
  set: (items: T[]) => void;
32
+ /**
33
+ * The function to reset the items.
34
+ */
22
35
  reset: () => void;
36
+ /**
37
+ * The function to clear the items.
38
+ */
23
39
  clear: () => void;
40
+ /**
41
+ * The function to insert items at a specific index.
42
+ */
24
43
  insert: (index: number, ...items: T[]) => void;
44
+ /**
45
+ * The function to insert items before a specific value.
46
+ */
25
47
  insertBefore: (value: string, ...items: T[]) => void;
48
+ /**
49
+ * The function to insert items after a specific value.
50
+ */
26
51
  insertAfter: (value: string, ...items: T[]) => void;
27
- remove: (...itemOrValues: T[]) => void;
52
+ /**
53
+ * The function to remove items.
54
+ */
55
+ remove: (...itemOrValues: Array<T | string>) => void;
56
+ /**
57
+ * The function to move an item to a specific index.
58
+ */
28
59
  move: (value: string, to: number) => void;
60
+ /**
61
+ * The function to move an item before a specific value.
62
+ */
29
63
  moveBefore: (value: string, ...values: string[]) => void;
64
+ /**
65
+ * The function to move an item after a specific value.
66
+ */
30
67
  moveAfter: (value: string, ...values: string[]) => void;
68
+ /**
69
+ * The function to reorder items.
70
+ */
31
71
  reorder: (from: number, to: number) => void;
72
+ /**
73
+ * The function to append items.
74
+ */
32
75
  append: (...items: T[]) => void;
76
+ /**
77
+ * The function to upsert an item.
78
+ */
79
+ upsert: (value: string, item: T, mode?: 'append' | 'prepend') => void;
80
+ /**
81
+ * The function to prepend items.
82
+ */
33
83
  prepend: (...items: T[]) => void;
84
+ /**
85
+ * The function to update an item.
86
+ */
34
87
  update: (value: string, item: T) => void;
35
- };
88
+ }
@@ -6,72 +6,94 @@ function useListCollection(props) {
6
6
  const { initialItems = [], filter, limit, ...collectionOptions } = toValue(props);
7
7
  return [{ initialItems, filter, limit }, collectionOptions];
8
8
  });
9
- const create = (items) => {
10
- const [, collectionOptions] = resolvedProps.value;
11
- return createListCollection({ ...collectionOptions, items });
12
- };
13
9
  const init = () => {
14
- const [localProps] = resolvedProps.value;
15
- return create(
16
- localProps.limit != null ? localProps.initialItems.slice(0, localProps.limit) : localProps.initialItems
17
- );
10
+ const { initialItems } = resolvedProps.value[0];
11
+ return initialItems;
18
12
  };
19
- const collection = ref(init());
20
- const setCollection = (newCollection) => {
21
- const [localProps] = resolvedProps.value;
22
- collection.value = localProps.limit == null ? newCollection : newCollection.copy(newCollection.items.slice(0, localProps.limit));
13
+ const items = ref(init());
14
+ const filterText = ref("");
15
+ const setItems = (newItems) => {
16
+ items.value = newItems;
17
+ filterText.value = "";
18
+ };
19
+ const create = (itemsToCreate) => {
20
+ const [, collectionOptions] = resolvedProps.value;
21
+ return createListCollection({ ...collectionOptions, items: itemsToCreate });
23
22
  };
23
+ const collection = computed(() => {
24
+ const [localProps, collectionOptions] = resolvedProps.value;
25
+ let activeItems = items.value;
26
+ const filter = localProps.filter;
27
+ if (filterText.value && filter) {
28
+ activeItems = create(items.value).filter(
29
+ (itemString, _index, item) => filter(itemString, filterText.value, item)
30
+ ).items;
31
+ }
32
+ const limitedItems = localProps.limit == null ? activeItems : activeItems.slice(0, localProps.limit);
33
+ return createListCollection({ ...collectionOptions, items: limitedItems });
34
+ });
24
35
  return {
25
36
  collection,
26
- filter: (inputValue) => {
27
- const [localProps] = resolvedProps.value;
28
- const filter = localProps.filter;
29
- if (!filter) return;
30
- const filtered = create(localProps.initialItems).filter((itemString) => filter(itemString, inputValue));
31
- setCollection(filtered);
37
+ filter: (inputValue = "") => {
38
+ filterText.value = inputValue;
32
39
  },
33
- set: (items) => {
34
- setCollection(create(items));
40
+ set: (newItems) => {
41
+ setItems(newItems);
35
42
  },
36
43
  reset: () => {
37
44
  const [localProps] = resolvedProps.value;
38
- setCollection(create(localProps.initialItems));
45
+ setItems(localProps.initialItems);
39
46
  },
40
47
  clear: () => {
41
- setCollection(create([]));
48
+ setItems([]);
42
49
  },
43
- insert: (index, ...items) => {
44
- setCollection(collection.value.insert(index, ...items));
50
+ insert: (index, ...itemsToInsert) => {
51
+ const newItems = create(items.value).insert(index, ...itemsToInsert).items;
52
+ setItems(newItems);
45
53
  },
46
- insertBefore: (value, ...items) => {
47
- setCollection(collection.value.insertBefore(value, ...items));
54
+ insertBefore: (value, ...itemsToInsert) => {
55
+ const newItems = create(items.value).insertBefore(value, ...itemsToInsert).items;
56
+ setItems(newItems);
48
57
  },
49
- insertAfter: (value, ...items) => {
50
- setCollection(collection.value.insertAfter(value, ...items));
58
+ insertAfter: (value, ...itemsToInsert) => {
59
+ const newItems = create(items.value).insertAfter(value, ...itemsToInsert).items;
60
+ setItems(newItems);
51
61
  },
52
62
  remove: (...itemOrValues) => {
53
- setCollection(collection.value.remove(...itemOrValues));
63
+ const newItems = create(items.value).remove(...itemOrValues).items;
64
+ setItems(newItems);
54
65
  },
55
66
  move: (value, to) => {
56
- setCollection(collection.value.move(value, to));
67
+ const newItems = create(items.value).move(value, to).items;
68
+ setItems(newItems);
57
69
  },
58
70
  moveBefore: (value, ...values) => {
59
- setCollection(collection.value.moveBefore(value, ...values));
71
+ const newItems = create(items.value).moveBefore(value, ...values).items;
72
+ setItems(newItems);
60
73
  },
61
74
  moveAfter: (value, ...values) => {
62
- setCollection(collection.value.moveAfter(value, ...values));
75
+ const newItems = create(items.value).moveAfter(value, ...values).items;
76
+ setItems(newItems);
63
77
  },
64
78
  reorder: (from, to) => {
65
- setCollection(collection.value.reorder(from, to));
79
+ const newItems = create(items.value).reorder(from, to).items;
80
+ setItems(newItems);
81
+ },
82
+ append: (...itemsToAppend) => {
83
+ const newItems = create(items.value).append(...itemsToAppend).items;
84
+ setItems(newItems);
66
85
  },
67
- append: (...items) => {
68
- setCollection(collection.value.append(...items));
86
+ upsert: (value, item, mode = "append") => {
87
+ const newItems = create(items.value).upsert(value, item, mode).items;
88
+ setItems(newItems);
69
89
  },
70
- prepend: (...items) => {
71
- setCollection(collection.value.prepend(...items));
90
+ prepend: (...itemsToPrepend) => {
91
+ const newItems = create(items.value).prepend(...itemsToPrepend).items;
92
+ setItems(newItems);
72
93
  },
73
94
  update: (value, item) => {
74
- setCollection(collection.value.update(value, item));
95
+ const newItems = create(items.value).update(value, item).items;
96
+ setItems(newItems);
75
97
  }
76
98
  };
77
99
  }
@@ -17,7 +17,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  setup(__props) {
18
18
  const props = __props;
19
19
  const combobox = useComboboxContext.useComboboxContext();
20
- const id = props.id ?? vue.useId();
20
+ const uid = vue.useId();
21
+ const id = props.id ?? uid;
21
22
  useComboboxItemGroupPropsContext.ComboboxItemGroupPropsProvider({ id });
22
23
  useForwardExpose.useForwardExpose();
23
24
  return (_ctx, _cache) => {
@@ -13,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  setup(__props) {
14
14
  const props = __props;
15
15
  const combobox = useComboboxContext();
16
- const id = props.id ?? useId();
16
+ const uid = useId();
17
+ const id = props.id ?? uid;
17
18
  ComboboxItemGroupPropsProvider({ id });
18
19
  useForwardExpose();
19
20
  return (_ctx, _cache) => {
@@ -21,7 +21,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
21
  const props = __props;
22
22
  const datePicker = useDatePickerContext.useDatePickerContext();
23
23
  const viewProps = useDatePickerViewPropsContext.useDatePickerViewPropsContext();
24
- const id = props.id ?? vue.useId();
24
+ const uid = vue.useId();
25
+ const id = props.id ?? uid;
25
26
  useDatePickerTablePropsContext.DatePickerTablePropsProvider({ ...props, id, ...viewProps });
26
27
  useForwardExpose.useForwardExpose();
27
28
  return (_ctx, _cache) => {
@@ -17,7 +17,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  const props = __props;
18
18
  const datePicker = useDatePickerContext();
19
19
  const viewProps = useDatePickerViewPropsContext();
20
- const id = props.id ?? useId();
20
+ const uid = useId();
21
+ const id = props.id ?? uid;
21
22
  DatePickerTablePropsProvider({ ...props, id, ...viewProps });
22
23
  useForwardExpose();
23
24
  return (_ctx, _cache) => {
@@ -58,7 +58,6 @@ const useDatePicker = (props = {}, emit) => {
58
58
  },
59
59
  onValueChange: (details) => {
60
60
  emit?.("valueChange", details);
61
- console.log("valueChange", details);
62
61
  emit?.("update:modelValue", details.value);
63
62
  localeProps.onValueChange?.(details);
64
63
  }
@@ -35,7 +35,6 @@ const useDatePicker = (props = {}, emit) => {
35
35
  },
36
36
  onValueChange: (details) => {
37
37
  emit?.("valueChange", details);
38
- console.log("valueChange", details);
39
38
  emit?.("update:modelValue", details.value);
40
39
  localeProps.onValueChange?.(details);
41
40
  }
@@ -1,4 +1,4 @@
1
- export type { FileAcceptDetails, FileChangeDetails, FileRejectDetails, FileValidateDetails } from '@zag-js/file-upload';
1
+ export type { FileAcceptDetails, FileChangeDetails, FileRejectDetails, FileValidateDetails, FileError, FileMimeType, FileRejection, } from '@zag-js/file-upload';
2
2
  export { default as ClearTrigger, type FileUploadClearTriggerBaseProps as ClearTriggerBaseProps, type FileUploadClearTriggerProps as ClearTriggerProps, } from './file-upload-clear-trigger.vue';
3
3
  export { default as Context, type FileUploadContextProps as ContextProps } from './file-upload-context.vue';
4
4
  export { default as Dropzone, type FileUploadDropzoneBaseProps as DropzoneBaseProps, type FileUploadDropzoneProps as DropzoneProps, } from './file-upload-dropzone.vue';
@@ -1,4 +1,4 @@
1
- export type { FileAcceptDetails, FileChangeDetails, FileRejectDetails, FileValidateDetails } from '@zag-js/file-upload';
1
+ export type { FileAcceptDetails, FileChangeDetails, FileRejectDetails, FileValidateDetails, FileError, FileMimeType, FileRejection, } from '@zag-js/file-upload';
2
2
  export { default as ClearTrigger, type FileUploadClearTriggerBaseProps as ClearTriggerBaseProps, type FileUploadClearTriggerProps as ClearTriggerProps, } from './file-upload-clear-trigger.vue';
3
3
  export { default as Context, type FileUploadContextProps as ContextProps } from './file-upload-context.vue';
4
4
  export { default as Dropzone, type FileUploadDropzoneBaseProps as DropzoneBaseProps, type FileUploadDropzoneProps as DropzoneProps, } from './file-upload-dropzone.vue';
@@ -1,4 +1,4 @@
1
- export type { FileAcceptDetails as FileUploadFileAcceptDetails, FileChangeDetails as FileUploadFileChangeDetails, FileRejectDetails as FileUploadFileRejectDetails, FileValidateDetails as FileUploadFileValidateDetails, } from '@zag-js/file-upload';
1
+ export type { FileAcceptDetails as FileUploadFileAcceptDetails, FileChangeDetails as FileUploadFileChangeDetails, FileRejectDetails as FileUploadFileRejectDetails, FileValidateDetails as FileUploadFileValidateDetails, FileError as FileUploadFileError, FileMimeType as FileUploadFileMimeType, FileRejection as FileUploadFileRejection, } from '@zag-js/file-upload';
2
2
  export { default as FileUploadClearTrigger, type FileUploadClearTriggerBaseProps, type FileUploadClearTriggerProps, } from './file-upload-clear-trigger.vue';
3
3
  export { default as FileUploadContext, type FileUploadContextProps } from './file-upload-context.vue';
4
4
  export { default as FileUploadDropzone, type FileUploadDropzoneBaseProps, type FileUploadDropzoneProps, } from './file-upload-dropzone.vue';
@@ -1,4 +1,4 @@
1
- export type { FileAcceptDetails as FileUploadFileAcceptDetails, FileChangeDetails as FileUploadFileChangeDetails, FileRejectDetails as FileUploadFileRejectDetails, FileValidateDetails as FileUploadFileValidateDetails, } from '@zag-js/file-upload';
1
+ export type { FileAcceptDetails as FileUploadFileAcceptDetails, FileChangeDetails as FileUploadFileChangeDetails, FileRejectDetails as FileUploadFileRejectDetails, FileValidateDetails as FileUploadFileValidateDetails, FileError as FileUploadFileError, FileMimeType as FileUploadFileMimeType, FileRejection as FileUploadFileRejection, } from '@zag-js/file-upload';
2
2
  export { default as FileUploadClearTrigger, type FileUploadClearTriggerBaseProps, type FileUploadClearTriggerProps, } from './file-upload-clear-trigger.vue';
3
3
  export { default as FileUploadContext, type FileUploadContextProps } from './file-upload-context.vue';
4
4
  export { default as FileUploadDropzone, type FileUploadDropzoneBaseProps, type FileUploadDropzoneProps, } from './file-upload-dropzone.vue';
@@ -52,6 +52,7 @@ const carousel$1 = require('./carousel/carousel.cjs');
52
52
  const checkboxContext_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-context.vue.cjs');
53
53
  const checkboxControl_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-control.vue.cjs');
54
54
  const checkboxGroup_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-group.vue.cjs');
55
+ const checkboxGroupProvider_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-group-provider.vue.cjs');
55
56
  const checkboxHiddenInput_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-hidden-input.vue.cjs');
56
57
  const checkboxIndicator_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-indicator.vue.cjs');
57
58
  const checkboxLabel_vue_vue_type_script_setup_true_lang = require('./checkbox/checkbox-label.vue.cjs');
@@ -761,6 +762,7 @@ exports.Carousel = carousel$1;
761
762
  exports.CheckboxContext = checkboxContext_vue_vue_type_script_setup_true_lang.default;
762
763
  exports.CheckboxControl = checkboxControl_vue_vue_type_script_setup_true_lang.default;
763
764
  exports.CheckboxGroup = checkboxGroup_vue_vue_type_script_setup_true_lang.default;
765
+ exports.CheckboxGroupProvider = checkboxGroupProvider_vue_vue_type_script_setup_true_lang.default;
764
766
  exports.CheckboxHiddenInput = checkboxHiddenInput_vue_vue_type_script_setup_true_lang.default;
765
767
  exports.CheckboxIndicator = checkboxIndicator_vue_vue_type_script_setup_true_lang.default;
766
768
  exports.CheckboxLabel = checkboxLabel_vue_vue_type_script_setup_true_lang.default;
@@ -52,6 +52,7 @@ export { carousel as Carousel };
52
52
  export { default as CheckboxContext } from './checkbox/checkbox-context.vue.js';
53
53
  export { default as CheckboxControl } from './checkbox/checkbox-control.vue.js';
54
54
  export { default as CheckboxGroup } from './checkbox/checkbox-group.vue.js';
55
+ export { default as CheckboxGroupProvider } from './checkbox/checkbox-group-provider.vue.js';
55
56
  export { default as CheckboxHiddenInput } from './checkbox/checkbox-hidden-input.vue.js';
56
57
  export { default as CheckboxIndicator } from './checkbox/checkbox-indicator.vue.js';
57
58
  export { default as CheckboxLabel } from './checkbox/checkbox-label.vue.js';
@@ -17,7 +17,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  setup(__props) {
18
18
  const props = __props;
19
19
  const listbox = useListboxContext.useListboxContext();
20
- const id = props.id ?? vue.useId();
20
+ const uid = vue.useId();
21
+ const id = props.id ?? uid;
21
22
  useListboxItemGroupPropsContext.ListboxItemGroupPropsProvider({ id });
22
23
  useForwardExpose.useForwardExpose();
23
24
  return (_ctx, _cache) => {
@@ -13,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  setup(__props) {
14
14
  const props = __props;
15
15
  const listbox = useListboxContext();
16
- const id = props.id ?? useId();
16
+ const uid = useId();
17
+ const id = props.id ?? uid;
17
18
  ListboxItemGroupPropsProvider({ id });
18
19
  useForwardExpose();
19
20
  return (_ctx, _cache) => {
@@ -17,7 +17,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  setup(__props) {
18
18
  const props = __props;
19
19
  const menu = useMenuContext.useMenuContext();
20
- const id = props.id ?? vue.useId();
20
+ const uid = vue.useId();
21
+ const id = props.id ?? uid;
21
22
  const itemGroupProps = vue.computed(() => ({ id }));
22
23
  useMenuItemGroupContext.MenuItemGroupProvider(itemGroupProps);
23
24
  useForwardExpose.useForwardExpose();
@@ -13,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  setup(__props) {
14
14
  const props = __props;
15
15
  const menu = useMenuContext();
16
- const id = props.id ?? useId();
16
+ const uid = useId();
17
+ const id = props.id ?? uid;
17
18
  const itemGroupProps = computed(() => ({ id }));
18
19
  MenuItemGroupProvider(itemGroupProps);
19
20
  useForwardExpose();
@@ -20,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20
20
  const props = __props;
21
21
  const emits = __emit;
22
22
  const menu = useMenuContext.useMenuContext();
23
- const id = props.id ?? vue.useId();
23
+ const uid = vue.useId();
24
+ const id = props.id ?? uid;
24
25
  const itemGroupProps = vue.computed(() => ({
25
26
  id,
26
27
  value: props.modelValue,
@@ -16,7 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  const props = __props;
17
17
  const emits = __emit;
18
18
  const menu = useMenuContext();
19
- const id = props.id ?? useId();
19
+ const uid = useId();
20
+ const id = props.id ?? uid;
20
21
  const itemGroupProps = computed(() => ({
21
22
  id,
22
23
  value: props.modelValue,
@@ -17,7 +17,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  setup(__props) {
18
18
  const props = __props;
19
19
  const select = useSelectContext.useSelectContext();
20
- const id = props.id ?? vue.useId();
20
+ const uid = vue.useId();
21
+ const id = props.id ?? uid;
21
22
  useSelectItemGroupPropsContext.SelectItemGroupPropsProvider({ id });
22
23
  useForwardExpose.useForwardExpose();
23
24
  return (_ctx, _cache) => {
@@ -13,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  setup(__props) {
14
14
  const props = __props;
15
15
  const select = useSelectContext();
16
- const id = props.id ?? useId();
16
+ const uid = useId();
17
+ const id = props.id ?? uid;
17
18
  SelectItemGroupPropsProvider({ id });
18
19
  useForwardExpose();
19
20
  return (_ctx, _cache) => {
package/dist/index.cjs CHANGED
@@ -52,6 +52,7 @@ const carousel$1 = require('./components/carousel/carousel.cjs');
52
52
  const checkboxContext_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-context.vue.cjs');
53
53
  const checkboxControl_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-control.vue.cjs');
54
54
  const checkboxGroup_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-group.vue.cjs');
55
+ const checkboxGroupProvider_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-group-provider.vue.cjs');
55
56
  const checkboxHiddenInput_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-hidden-input.vue.cjs');
56
57
  const checkboxIndicator_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-indicator.vue.cjs');
57
58
  const checkboxLabel_vue_vue_type_script_setup_true_lang = require('./components/checkbox/checkbox-label.vue.cjs');
@@ -770,6 +771,7 @@ exports.Carousel = carousel$1;
770
771
  exports.CheckboxContext = checkboxContext_vue_vue_type_script_setup_true_lang.default;
771
772
  exports.CheckboxControl = checkboxControl_vue_vue_type_script_setup_true_lang.default;
772
773
  exports.CheckboxGroup = checkboxGroup_vue_vue_type_script_setup_true_lang.default;
774
+ exports.CheckboxGroupProvider = checkboxGroupProvider_vue_vue_type_script_setup_true_lang.default;
773
775
  exports.CheckboxHiddenInput = checkboxHiddenInput_vue_vue_type_script_setup_true_lang.default;
774
776
  exports.CheckboxIndicator = checkboxIndicator_vue_vue_type_script_setup_true_lang.default;
775
777
  exports.CheckboxLabel = checkboxLabel_vue_vue_type_script_setup_true_lang.default;
package/dist/index.js CHANGED
@@ -52,6 +52,7 @@ export { carousel as Carousel };
52
52
  export { default as CheckboxContext } from './components/checkbox/checkbox-context.vue.js';
53
53
  export { default as CheckboxControl } from './components/checkbox/checkbox-control.vue.js';
54
54
  export { default as CheckboxGroup } from './components/checkbox/checkbox-group.vue.js';
55
+ export { default as CheckboxGroupProvider } from './components/checkbox/checkbox-group-provider.vue.js';
55
56
  export { default as CheckboxHiddenInput } from './components/checkbox/checkbox-hidden-input.vue.js';
56
57
  export { default as CheckboxIndicator } from './components/checkbox/checkbox-indicator.vue.js';
57
58
  export { default as CheckboxLabel } from './components/checkbox/checkbox-label.vue.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/vue",
3
3
  "type": "module",
4
- "version": "5.16.0",
4
+ "version": "5.17.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",
@@ -140,63 +140,63 @@
140
140
  "sideEffects": false,
141
141
  "dependencies": {
142
142
  "@internationalized/date": "3.8.2",
143
- "@zag-js/accordion": "1.18.0",
144
- "@zag-js/angle-slider": "1.18.0",
145
- "@zag-js/anatomy": "1.18.0",
146
- "@zag-js/auto-resize": "1.18.0",
147
- "@zag-js/avatar": "1.18.0",
148
- "@zag-js/carousel": "1.18.0",
149
- "@zag-js/checkbox": "1.18.0",
150
- "@zag-js/clipboard": "1.18.0",
151
- "@zag-js/collapsible": "1.18.0",
152
- "@zag-js/collection": "1.18.0",
153
- "@zag-js/color-picker": "1.18.0",
154
- "@zag-js/color-utils": "1.18.0",
155
- "@zag-js/combobox": "1.18.0",
156
- "@zag-js/core": "1.18.0",
157
- "@zag-js/date-picker": "1.18.0",
158
- "@zag-js/date-utils": "1.18.0",
159
- "@zag-js/dialog": "1.18.0",
160
- "@zag-js/dom-query": "1.18.0",
161
- "@zag-js/editable": "1.18.0",
162
- "@zag-js/file-upload": "1.18.0",
163
- "@zag-js/file-utils": "1.18.0",
164
- "@zag-js/focus-trap": "1.18.0",
165
- "@zag-js/floating-panel": "1.18.0",
166
- "@zag-js/highlight-word": "1.18.0",
167
- "@zag-js/hover-card": "1.18.0",
168
- "@zag-js/i18n-utils": "1.18.0",
169
- "@zag-js/listbox": "1.18.0",
170
- "@zag-js/menu": "1.18.0",
171
- "@zag-js/number-input": "1.18.0",
172
- "@zag-js/pagination": "1.18.0",
173
- "@zag-js/password-input": "1.18.0",
174
- "@zag-js/pin-input": "1.18.0",
175
- "@zag-js/popover": "1.18.0",
176
- "@zag-js/presence": "1.18.0",
177
- "@zag-js/progress": "1.18.0",
178
- "@zag-js/qr-code": "1.18.0",
179
- "@zag-js/radio-group": "1.18.0",
180
- "@zag-js/rating-group": "1.18.0",
181
- "@zag-js/select": "1.18.0",
182
- "@zag-js/signature-pad": "1.18.0",
183
- "@zag-js/slider": "1.18.0",
184
- "@zag-js/splitter": "1.18.0",
185
- "@zag-js/switch": "1.18.0",
186
- "@zag-js/tabs": "1.18.0",
187
- "@zag-js/tags-input": "1.18.0",
188
- "@zag-js/time-picker": "1.18.0",
189
- "@zag-js/timer": "1.18.0",
190
- "@zag-js/toast": "1.18.0",
191
- "@zag-js/toggle": "1.18.0",
192
- "@zag-js/toggle-group": "1.18.0",
193
- "@zag-js/tooltip": "1.18.0",
194
- "@zag-js/tour": "1.18.0",
195
- "@zag-js/tree-view": "1.18.0",
196
- "@zag-js/types": "1.18.0",
197
- "@zag-js/utils": "1.18.0",
198
- "@zag-js/steps": "1.18.0",
199
- "@zag-js/vue": "1.18.0"
143
+ "@zag-js/accordion": "1.18.4",
144
+ "@zag-js/angle-slider": "1.18.4",
145
+ "@zag-js/anatomy": "1.18.4",
146
+ "@zag-js/auto-resize": "1.18.4",
147
+ "@zag-js/avatar": "1.18.4",
148
+ "@zag-js/carousel": "1.18.4",
149
+ "@zag-js/checkbox": "1.18.4",
150
+ "@zag-js/clipboard": "1.18.4",
151
+ "@zag-js/collapsible": "1.18.4",
152
+ "@zag-js/collection": "1.18.4",
153
+ "@zag-js/color-picker": "1.18.4",
154
+ "@zag-js/color-utils": "1.18.4",
155
+ "@zag-js/combobox": "1.18.4",
156
+ "@zag-js/core": "1.18.4",
157
+ "@zag-js/date-picker": "1.18.4",
158
+ "@zag-js/date-utils": "1.18.4",
159
+ "@zag-js/dialog": "1.18.4",
160
+ "@zag-js/dom-query": "1.18.4",
161
+ "@zag-js/editable": "1.18.4",
162
+ "@zag-js/file-upload": "1.18.4",
163
+ "@zag-js/file-utils": "1.18.4",
164
+ "@zag-js/focus-trap": "1.18.4",
165
+ "@zag-js/floating-panel": "1.18.4",
166
+ "@zag-js/highlight-word": "1.18.4",
167
+ "@zag-js/hover-card": "1.18.4",
168
+ "@zag-js/i18n-utils": "1.18.4",
169
+ "@zag-js/listbox": "1.18.4",
170
+ "@zag-js/menu": "1.18.4",
171
+ "@zag-js/number-input": "1.18.4",
172
+ "@zag-js/pagination": "1.18.4",
173
+ "@zag-js/password-input": "1.18.4",
174
+ "@zag-js/pin-input": "1.18.4",
175
+ "@zag-js/popover": "1.18.4",
176
+ "@zag-js/presence": "1.18.4",
177
+ "@zag-js/progress": "1.18.4",
178
+ "@zag-js/qr-code": "1.18.4",
179
+ "@zag-js/radio-group": "1.18.4",
180
+ "@zag-js/rating-group": "1.18.4",
181
+ "@zag-js/select": "1.18.4",
182
+ "@zag-js/signature-pad": "1.18.4",
183
+ "@zag-js/slider": "1.18.4",
184
+ "@zag-js/splitter": "1.18.4",
185
+ "@zag-js/switch": "1.18.4",
186
+ "@zag-js/tabs": "1.18.4",
187
+ "@zag-js/tags-input": "1.18.4",
188
+ "@zag-js/time-picker": "1.18.4",
189
+ "@zag-js/timer": "1.18.4",
190
+ "@zag-js/toast": "1.18.4",
191
+ "@zag-js/toggle": "1.18.4",
192
+ "@zag-js/toggle-group": "1.18.4",
193
+ "@zag-js/tooltip": "1.18.4",
194
+ "@zag-js/tour": "1.18.4",
195
+ "@zag-js/tree-view": "1.18.4",
196
+ "@zag-js/types": "1.18.4",
197
+ "@zag-js/utils": "1.18.4",
198
+ "@zag-js/steps": "1.18.4",
199
+ "@zag-js/vue": "1.18.4"
200
200
  },
201
201
  "devDependencies": {
202
202
  "@biomejs/biome": "1.9.4",
@@ -208,20 +208,20 @@
208
208
  "@types/jsdom": "21.1.7",
209
209
  "@vitejs/plugin-vue": "6.0.0",
210
210
  "@vitejs/plugin-vue-jsx": "5.0.1",
211
- "@vue/compiler-sfc": "3.5.16",
211
+ "@vue/compiler-sfc": "3.5.17",
212
212
  "clean-package": "2.2.0",
213
213
  "globby": "14.1.0",
214
214
  "histoire": "0.17.17",
215
215
  "jsdom": "26.1.0",
216
- "lucide-vue-next": "0.515.0",
216
+ "lucide-vue-next": "0.525.0",
217
217
  "resize-observer-polyfill": "1.5.1",
218
218
  "typescript": "5.8.3",
219
- "vite": "6.3.5",
219
+ "vite": "7.0.5",
220
220
  "vite-plugin-dts": "4.5.4",
221
- "vitest": "3.2.3",
222
- "@vitest/coverage-v8": "3.2.3",
223
- "vue": "3.5.16",
224
- "vue-tsc": "2.2.10"
221
+ "vitest": "3.2.4",
222
+ "@vitest/coverage-v8": "3.2.4",
223
+ "vue": "3.5.17",
224
+ "vue-tsc": "3.0.2"
225
225
  },
226
226
  "peerDependencies": {
227
227
  "vue": ">=3.5.0"