@ark-ui/vue 5.19.0 → 5.21.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.
- package/dist/components/collection/index.cjs +2 -0
- package/dist/components/collection/index.d.cts +1 -0
- package/dist/components/collection/index.d.ts +1 -0
- package/dist/components/collection/index.js +1 -0
- package/dist/components/collection/tree-collection.js +1 -1
- package/dist/components/collection/use-async-list.cjs +35 -0
- package/dist/components/collection/use-async-list.d.cts +7 -0
- package/dist/components/collection/use-async-list.d.ts +7 -0
- package/dist/components/collection/use-async-list.js +12 -0
- package/dist/components/field/use-field.d.cts +16 -16
- package/dist/components/field/use-field.d.ts +16 -16
- package/dist/components/fieldset/fieldset-legend.vue.cjs +1 -1
- package/dist/components/fieldset/fieldset-legend.vue.js +1 -1
- package/dist/components/fieldset/use-fieldset.cjs +2 -1
- package/dist/components/fieldset/use-fieldset.d.cts +3 -3
- package/dist/components/fieldset/use-fieldset.d.ts +3 -3
- package/dist/components/fieldset/use-fieldset.js +2 -1
- package/dist/components/highlight/highlight.types.d.cts +4 -0
- package/dist/components/highlight/highlight.types.d.ts +4 -0
- package/dist/components/highlight/highlight.vue.cjs +2 -1
- package/dist/components/highlight/highlight.vue.d.cts +1 -0
- package/dist/components/highlight/highlight.vue.d.ts +1 -0
- package/dist/components/highlight/highlight.vue.js +2 -1
- package/dist/components/index.cjs +13 -7
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +6 -3
- package/dist/components/toast/index.d.cts +1 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/index.cjs +15 -7
- package/dist/index.js +7 -3
- package/dist/providers/index.cjs +2 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/locale/index.cjs +2 -0
- package/dist/providers/locale/index.d.cts +1 -0
- package/dist/providers/locale/index.d.ts +1 -0
- package/dist/providers/locale/index.js +1 -0
- package/dist/providers/locale/use-collator.cjs +19 -0
- package/dist/providers/locale/use-collator.d.cts +7 -0
- package/dist/providers/locale/use-collator.d.ts +7 -0
- package/dist/providers/locale/use-collator.js +15 -0
- package/package.json +62 -61
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const gridCollection = require('./grid-collection.cjs');
|
|
6
6
|
const listCollection = require('./list-collection.cjs');
|
|
7
7
|
const treeCollection = require('./tree-collection.cjs');
|
|
8
|
+
const useAsyncList = require('./use-async-list.cjs');
|
|
8
9
|
const useListCollection = require('./use-list-collection.cjs');
|
|
9
10
|
const useListSelection = require('./use-list-selection.cjs');
|
|
10
11
|
|
|
@@ -14,5 +15,6 @@ exports.createGridCollection = gridCollection.createGridCollection;
|
|
|
14
15
|
exports.createListCollection = listCollection.createListCollection;
|
|
15
16
|
exports.createFileTreeCollection = treeCollection.createFileTreeCollection;
|
|
16
17
|
exports.createTreeCollection = treeCollection.createTreeCollection;
|
|
18
|
+
exports.useAsyncList = useAsyncList.useAsyncList;
|
|
17
19
|
exports.useListCollection = useListCollection.useListCollection;
|
|
18
20
|
exports.useListSelection = useListSelection.useListSelection;
|
|
@@ -1,5 +1,6 @@
|
|
|
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 { useAsyncList, type UseAsyncListProps, type UseAsyncListReturn } from './use-async-list';
|
|
4
5
|
export { useListCollection, type UseListCollectionProps, type UseListCollectionReturn } from './use-list-collection';
|
|
5
6
|
export { useListSelection, type UseListSelectionProps, type UseListSelectionReturn } from './use-list-selection';
|
|
@@ -1,5 +1,6 @@
|
|
|
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 { useAsyncList, type UseAsyncListProps, type UseAsyncListReturn } from './use-async-list';
|
|
4
5
|
export { useListCollection, type UseListCollectionProps, type UseListCollectionReturn } from './use-list-collection';
|
|
5
6
|
export { useListSelection, type UseListSelectionProps, type UseListSelectionReturn } from './use-list-selection';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { createGridCollection } from './grid-collection.js';
|
|
2
2
|
export { createListCollection } from './list-collection.js';
|
|
3
3
|
export { createFileTreeCollection, createTreeCollection } from './tree-collection.js';
|
|
4
|
+
export { useAsyncList } from './use-async-list.js';
|
|
4
5
|
export { useListCollection } from './use-list-collection.js';
|
|
5
6
|
export { useListSelection } from './use-list-selection.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { filePathToTree, TreeCollection } from '@zag-js/collection';
|
|
2
2
|
|
|
3
3
|
const createTreeCollection = (options) => new TreeCollection(options);
|
|
4
4
|
const createFileTreeCollection = (paths) => filePathToTree(paths);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const asyncList = require('@zag-js/async-list');
|
|
6
|
+
const vue$1 = require('@zag-js/vue');
|
|
7
|
+
const vue = require('vue');
|
|
8
|
+
const cleanProps = require('../../utils/clean-props.cjs');
|
|
9
|
+
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
11
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
12
|
+
if (e) {
|
|
13
|
+
for (const k in e) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: () => e[k]
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const asyncList__namespace = /*#__PURE__*/_interopNamespaceDefault(asyncList);
|
|
28
|
+
|
|
29
|
+
const useAsyncList = (props = {}) => {
|
|
30
|
+
const context = vue.computed(() => cleanProps.cleanProps(vue.toValue(props)));
|
|
31
|
+
const service = vue$1.useMachine(asyncList__namespace.machine, context);
|
|
32
|
+
return vue.computed(() => asyncList__namespace.connect(service));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.useAsyncList = useAsyncList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
2
|
+
import * as asyncList from '@zag-js/async-list';
|
|
3
|
+
export interface UseAsyncListProps<T, C = string> extends asyncList.Props<T, C> {
|
|
4
|
+
}
|
|
5
|
+
export interface UseAsyncListReturn<T, C = string> extends ComputedRef<asyncList.Api<T, C>> {
|
|
6
|
+
}
|
|
7
|
+
export declare const useAsyncList: <T, C = string>(props?: MaybeRef<UseAsyncListProps<T, C>>) => UseAsyncListReturn<T, C>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
2
|
+
import * as asyncList from '@zag-js/async-list';
|
|
3
|
+
export interface UseAsyncListProps<T, C = string> extends asyncList.Props<T, C> {
|
|
4
|
+
}
|
|
5
|
+
export interface UseAsyncListReturn<T, C = string> extends ComputedRef<asyncList.Api<T, C>> {
|
|
6
|
+
}
|
|
7
|
+
export declare const useAsyncList: <T, C = string>(props?: MaybeRef<UseAsyncListProps<T, C>>) => UseAsyncListReturn<T, C>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as asyncList from '@zag-js/async-list';
|
|
2
|
+
import { useMachine } from '@zag-js/vue';
|
|
3
|
+
import { computed, toValue } from 'vue';
|
|
4
|
+
import { cleanProps } from '../../utils/clean-props.js';
|
|
5
|
+
|
|
6
|
+
const useAsyncList = (props = {}) => {
|
|
7
|
+
const context = computed(() => cleanProps(toValue(props)));
|
|
8
|
+
const service = useMachine(asyncList.machine, context);
|
|
9
|
+
return computed(() => asyncList.connect(service));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { useAsyncList };
|
|
@@ -44,9 +44,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
44
44
|
required: boolean | undefined;
|
|
45
45
|
getLabelProps: () => {
|
|
46
46
|
id: string;
|
|
47
|
-
'data-disabled': boolean | "
|
|
48
|
-
'data-invalid': boolean | "
|
|
49
|
-
'data-readonly': boolean | "
|
|
47
|
+
'data-disabled': boolean | "false" | "true";
|
|
48
|
+
'data-invalid': boolean | "false" | "true";
|
|
49
|
+
'data-readonly': boolean | "false" | "true";
|
|
50
50
|
htmlFor: string;
|
|
51
51
|
"data-scope": string;
|
|
52
52
|
"data-part": string;
|
|
@@ -54,9 +54,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
54
54
|
getRootProps: () => {
|
|
55
55
|
id: string;
|
|
56
56
|
role: string;
|
|
57
|
-
'data-disabled': boolean | "
|
|
58
|
-
'data-invalid': boolean | "
|
|
59
|
-
'data-readonly': boolean | "
|
|
57
|
+
'data-disabled': boolean | "false" | "true";
|
|
58
|
+
'data-invalid': boolean | "false" | "true";
|
|
59
|
+
'data-readonly': boolean | "false" | "true";
|
|
60
60
|
"data-scope": string;
|
|
61
61
|
"data-part": string;
|
|
62
62
|
};
|
|
@@ -65,9 +65,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
65
65
|
"data-part": string;
|
|
66
66
|
'aria-describedby': string | undefined;
|
|
67
67
|
'aria-invalid': "true" | undefined;
|
|
68
|
-
'data-invalid': boolean | "
|
|
69
|
-
'data-required': boolean | "
|
|
70
|
-
'data-readonly': boolean | "
|
|
68
|
+
'data-invalid': boolean | "false" | "true";
|
|
69
|
+
'data-required': boolean | "false" | "true";
|
|
70
|
+
'data-readonly': boolean | "false" | "true";
|
|
71
71
|
id: string;
|
|
72
72
|
required: boolean | undefined;
|
|
73
73
|
disabled: boolean | undefined;
|
|
@@ -78,9 +78,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
78
78
|
"data-part": string;
|
|
79
79
|
'aria-describedby': string | undefined;
|
|
80
80
|
'aria-invalid': "true" | undefined;
|
|
81
|
-
'data-invalid': boolean | "
|
|
82
|
-
'data-required': boolean | "
|
|
83
|
-
'data-readonly': boolean | "
|
|
81
|
+
'data-invalid': boolean | "false" | "true";
|
|
82
|
+
'data-required': boolean | "false" | "true";
|
|
83
|
+
'data-readonly': boolean | "false" | "true";
|
|
84
84
|
id: string;
|
|
85
85
|
required: boolean | undefined;
|
|
86
86
|
disabled: boolean | undefined;
|
|
@@ -91,16 +91,16 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
91
91
|
"data-part": string;
|
|
92
92
|
'aria-describedby': string | undefined;
|
|
93
93
|
'aria-invalid': "true" | undefined;
|
|
94
|
-
'data-invalid': boolean | "
|
|
95
|
-
'data-required': boolean | "
|
|
96
|
-
'data-readonly': boolean | "
|
|
94
|
+
'data-invalid': boolean | "false" | "true";
|
|
95
|
+
'data-required': boolean | "false" | "true";
|
|
96
|
+
'data-readonly': boolean | "false" | "true";
|
|
97
97
|
id: string;
|
|
98
98
|
required: boolean | undefined;
|
|
99
99
|
disabled: boolean | undefined;
|
|
100
100
|
readOnly: boolean | undefined;
|
|
101
101
|
};
|
|
102
102
|
getHelperTextProps: () => {
|
|
103
|
-
'data-disabled': boolean | "
|
|
103
|
+
'data-disabled': boolean | "false" | "true";
|
|
104
104
|
"data-scope": string;
|
|
105
105
|
"data-part": string;
|
|
106
106
|
id: string;
|
|
@@ -44,9 +44,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
44
44
|
required: boolean | undefined;
|
|
45
45
|
getLabelProps: () => {
|
|
46
46
|
id: string;
|
|
47
|
-
'data-disabled': boolean | "
|
|
48
|
-
'data-invalid': boolean | "
|
|
49
|
-
'data-readonly': boolean | "
|
|
47
|
+
'data-disabled': boolean | "false" | "true";
|
|
48
|
+
'data-invalid': boolean | "false" | "true";
|
|
49
|
+
'data-readonly': boolean | "false" | "true";
|
|
50
50
|
htmlFor: string;
|
|
51
51
|
"data-scope": string;
|
|
52
52
|
"data-part": string;
|
|
@@ -54,9 +54,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
54
54
|
getRootProps: () => {
|
|
55
55
|
id: string;
|
|
56
56
|
role: string;
|
|
57
|
-
'data-disabled': boolean | "
|
|
58
|
-
'data-invalid': boolean | "
|
|
59
|
-
'data-readonly': boolean | "
|
|
57
|
+
'data-disabled': boolean | "false" | "true";
|
|
58
|
+
'data-invalid': boolean | "false" | "true";
|
|
59
|
+
'data-readonly': boolean | "false" | "true";
|
|
60
60
|
"data-scope": string;
|
|
61
61
|
"data-part": string;
|
|
62
62
|
};
|
|
@@ -65,9 +65,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
65
65
|
"data-part": string;
|
|
66
66
|
'aria-describedby': string | undefined;
|
|
67
67
|
'aria-invalid': "true" | undefined;
|
|
68
|
-
'data-invalid': boolean | "
|
|
69
|
-
'data-required': boolean | "
|
|
70
|
-
'data-readonly': boolean | "
|
|
68
|
+
'data-invalid': boolean | "false" | "true";
|
|
69
|
+
'data-required': boolean | "false" | "true";
|
|
70
|
+
'data-readonly': boolean | "false" | "true";
|
|
71
71
|
id: string;
|
|
72
72
|
required: boolean | undefined;
|
|
73
73
|
disabled: boolean | undefined;
|
|
@@ -78,9 +78,9 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
78
78
|
"data-part": string;
|
|
79
79
|
'aria-describedby': string | undefined;
|
|
80
80
|
'aria-invalid': "true" | undefined;
|
|
81
|
-
'data-invalid': boolean | "
|
|
82
|
-
'data-required': boolean | "
|
|
83
|
-
'data-readonly': boolean | "
|
|
81
|
+
'data-invalid': boolean | "false" | "true";
|
|
82
|
+
'data-required': boolean | "false" | "true";
|
|
83
|
+
'data-readonly': boolean | "false" | "true";
|
|
84
84
|
id: string;
|
|
85
85
|
required: boolean | undefined;
|
|
86
86
|
disabled: boolean | undefined;
|
|
@@ -91,16 +91,16 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
91
91
|
"data-part": string;
|
|
92
92
|
'aria-describedby': string | undefined;
|
|
93
93
|
'aria-invalid': "true" | undefined;
|
|
94
|
-
'data-invalid': boolean | "
|
|
95
|
-
'data-required': boolean | "
|
|
96
|
-
'data-readonly': boolean | "
|
|
94
|
+
'data-invalid': boolean | "false" | "true";
|
|
95
|
+
'data-required': boolean | "false" | "true";
|
|
96
|
+
'data-readonly': boolean | "false" | "true";
|
|
97
97
|
id: string;
|
|
98
98
|
required: boolean | undefined;
|
|
99
99
|
disabled: boolean | undefined;
|
|
100
100
|
readOnly: boolean | undefined;
|
|
101
101
|
};
|
|
102
102
|
getHelperTextProps: () => {
|
|
103
|
-
'data-disabled': boolean | "
|
|
103
|
+
'data-disabled': boolean | "false" | "true";
|
|
104
104
|
"data-scope": string;
|
|
105
105
|
"data-part": string;
|
|
106
106
|
id: string;
|
|
@@ -16,7 +16,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
16
16
|
const fieldset = useFieldsetContext.useFieldsetContext();
|
|
17
17
|
useForwardExpose.useForwardExpose();
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
|
-
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).
|
|
19
|
+
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps(vue.unref(fieldset).getLegendProps(), { "as-child": _ctx.asChild }), {
|
|
20
20
|
default: vue.withCtx(() => [
|
|
21
21
|
vue.renderSlot(_ctx.$slots, "default")
|
|
22
22
|
]),
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
const fieldset = useFieldsetContext();
|
|
13
13
|
useForwardExpose();
|
|
14
14
|
return (_ctx, _cache) => {
|
|
15
|
-
return openBlock(), createBlock(unref(ark).
|
|
15
|
+
return openBlock(), createBlock(unref(ark).div, mergeProps(unref(fieldset).getLegendProps(), { "as-child": _ctx.asChild }), {
|
|
16
16
|
default: withCtx(() => [
|
|
17
17
|
renderSlot(_ctx.$slots, "default")
|
|
18
18
|
]),
|
|
@@ -52,13 +52,14 @@ const useFieldset = (props) => {
|
|
|
52
52
|
disabled,
|
|
53
53
|
"data-disabled": domQuery.dataAttr(!!disabled),
|
|
54
54
|
"data-invalid": domQuery.dataAttr(invalid),
|
|
55
|
+
"aria-labelledby": labelId,
|
|
55
56
|
"aria-describedby": labelIds.join(" ")
|
|
56
57
|
});
|
|
57
58
|
const getLegendProps = () => ({
|
|
58
59
|
id: labelId,
|
|
59
60
|
...fieldset_anatomy.parts.legend.attrs,
|
|
60
61
|
"data-disabled": domQuery.dataAttr(!!disabled),
|
|
61
|
-
"data-invalid": domQuery.dataAttr(
|
|
62
|
+
"data-invalid": domQuery.dataAttr(invalid)
|
|
62
63
|
});
|
|
63
64
|
const getHelperTextProps = () => ({
|
|
64
65
|
id: helperTextId,
|
|
@@ -18,12 +18,12 @@ export declare const useFieldset: (props: MaybeRef<UseFieldsetProps>) => Compute
|
|
|
18
18
|
refs: {
|
|
19
19
|
rootRef: Ref<null, null>;
|
|
20
20
|
};
|
|
21
|
-
disabled: boolean | "
|
|
21
|
+
disabled: boolean | "false" | "true" | undefined;
|
|
22
22
|
invalid: boolean | undefined;
|
|
23
23
|
getRootProps: () => FieldsetHTMLAttributes;
|
|
24
24
|
getLegendProps: () => {
|
|
25
|
-
'data-disabled': boolean | "
|
|
26
|
-
'data-invalid': boolean | "
|
|
25
|
+
'data-disabled': boolean | "false" | "true";
|
|
26
|
+
'data-invalid': boolean | "false" | "true";
|
|
27
27
|
"data-scope": string;
|
|
28
28
|
"data-part": string;
|
|
29
29
|
id: string;
|
|
@@ -18,12 +18,12 @@ export declare const useFieldset: (props: MaybeRef<UseFieldsetProps>) => Compute
|
|
|
18
18
|
refs: {
|
|
19
19
|
rootRef: Ref<null, null>;
|
|
20
20
|
};
|
|
21
|
-
disabled: boolean | "
|
|
21
|
+
disabled: boolean | "false" | "true" | undefined;
|
|
22
22
|
invalid: boolean | undefined;
|
|
23
23
|
getRootProps: () => FieldsetHTMLAttributes;
|
|
24
24
|
getLegendProps: () => {
|
|
25
|
-
'data-disabled': boolean | "
|
|
26
|
-
'data-invalid': boolean | "
|
|
25
|
+
'data-disabled': boolean | "false" | "true";
|
|
26
|
+
'data-invalid': boolean | "false" | "true";
|
|
27
27
|
"data-scope": string;
|
|
28
28
|
"data-part": string;
|
|
29
29
|
id: string;
|
|
@@ -48,13 +48,14 @@ const useFieldset = (props) => {
|
|
|
48
48
|
disabled,
|
|
49
49
|
"data-disabled": dataAttr(!!disabled),
|
|
50
50
|
"data-invalid": dataAttr(invalid),
|
|
51
|
+
"aria-labelledby": labelId,
|
|
51
52
|
"aria-describedby": labelIds.join(" ")
|
|
52
53
|
});
|
|
53
54
|
const getLegendProps = () => ({
|
|
54
55
|
id: labelId,
|
|
55
56
|
...parts.legend.attrs,
|
|
56
57
|
"data-disabled": dataAttr(!!disabled),
|
|
57
|
-
"data-invalid": dataAttr(
|
|
58
|
+
"data-invalid": dataAttr(invalid)
|
|
58
59
|
});
|
|
59
60
|
const getHelperTextProps = () => ({
|
|
60
61
|
id: helperTextId,
|
|
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
12
12
|
text: {},
|
|
13
13
|
query: {},
|
|
14
14
|
ignoreCase: { type: Boolean, default: void 0 },
|
|
15
|
-
matchAll: { type: Boolean, default: void 0 }
|
|
15
|
+
matchAll: { type: Boolean, default: void 0 },
|
|
16
|
+
exactMatch: { type: Boolean, default: void 0 }
|
|
16
17
|
},
|
|
17
18
|
setup(__props) {
|
|
18
19
|
const props = __props;
|
|
@@ -11,5 +11,6 @@ HTMLAttributes {
|
|
|
11
11
|
declare const _default: DefineComponent<HighlightProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<HighlightProps> & Readonly<{}>, {
|
|
12
12
|
matchAll: boolean;
|
|
13
13
|
ignoreCase: boolean;
|
|
14
|
+
exactMatch: boolean;
|
|
14
15
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
15
16
|
export default _default;
|
|
@@ -11,5 +11,6 @@ HTMLAttributes {
|
|
|
11
11
|
declare const _default: DefineComponent<HighlightProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<HighlightProps> & Readonly<{}>, {
|
|
12
12
|
matchAll: boolean;
|
|
13
13
|
ignoreCase: boolean;
|
|
14
|
+
exactMatch: boolean;
|
|
14
15
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
15
16
|
export default _default;
|
|
@@ -8,7 +8,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
text: {},
|
|
9
9
|
query: {},
|
|
10
10
|
ignoreCase: { type: Boolean, default: void 0 },
|
|
11
|
-
matchAll: { type: Boolean, default: void 0 }
|
|
11
|
+
matchAll: { type: Boolean, default: void 0 },
|
|
12
|
+
exactMatch: { type: Boolean, default: void 0 }
|
|
12
13
|
},
|
|
13
14
|
setup(__props) {
|
|
14
15
|
const props = __props;
|
|
@@ -86,6 +86,12 @@ const collapsibleIndicator_vue_vue_type_script_setup_true_lang = require('./coll
|
|
|
86
86
|
const useCollapsible = require('./collapsible/use-collapsible.cjs');
|
|
87
87
|
const useCollapsibleContext = require('./collapsible/use-collapsible-context.cjs');
|
|
88
88
|
const collapsible$1 = require('./collapsible/collapsible.cjs');
|
|
89
|
+
const gridCollection = require('./collection/grid-collection.cjs');
|
|
90
|
+
const listCollection = require('./collection/list-collection.cjs');
|
|
91
|
+
const treeCollection = require('./collection/tree-collection.cjs');
|
|
92
|
+
const useAsyncList = require('./collection/use-async-list.cjs');
|
|
93
|
+
const useListCollection = require('./collection/use-list-collection.cjs');
|
|
94
|
+
const useListSelection = require('./collection/use-list-selection.cjs');
|
|
89
95
|
const colorPicker = require('@zag-js/color-picker');
|
|
90
96
|
const colorPickerAreaBackground_vue_vue_type_script_setup_true_lang = require('./color-picker/color-picker-area-background.vue.cjs');
|
|
91
97
|
const colorPickerAreaThumb_vue_vue_type_script_setup_true_lang = require('./color-picker/color-picker-area-thumb.vue.cjs');
|
|
@@ -120,9 +126,6 @@ const colorPicker_anatomy = require('./color-picker/color-picker.anatomy.cjs');
|
|
|
120
126
|
const useColorPicker = require('./color-picker/use-color-picker.cjs');
|
|
121
127
|
const useColorPickerContext = require('./color-picker/use-color-picker-context.cjs');
|
|
122
128
|
const colorPicker$1 = require('./color-picker/color-picker.cjs');
|
|
123
|
-
const listCollection = require('./collection/list-collection.cjs');
|
|
124
|
-
const treeCollection = require('./collection/tree-collection.cjs');
|
|
125
|
-
const useListCollection = require('./collection/use-list-collection.cjs');
|
|
126
129
|
const comboboxClearTrigger_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-clear-trigger.vue.cjs');
|
|
127
130
|
const comboboxContent_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-content.vue.cjs');
|
|
128
131
|
const comboboxContext_vue_vue_type_script_setup_true_lang = require('./combobox/combobox-context.vue.cjs');
|
|
@@ -813,6 +816,13 @@ exports.CollapsibleIndicator = collapsibleIndicator_vue_vue_type_script_setup_tr
|
|
|
813
816
|
exports.useCollapsible = useCollapsible.useCollapsible;
|
|
814
817
|
exports.useCollapsibleContext = useCollapsibleContext.useCollapsibleContext;
|
|
815
818
|
exports.Collapsible = collapsible$1;
|
|
819
|
+
exports.createGridCollection = gridCollection.createGridCollection;
|
|
820
|
+
exports.createListCollection = listCollection.createListCollection;
|
|
821
|
+
exports.createFileTreeCollection = treeCollection.createFileTreeCollection;
|
|
822
|
+
exports.createTreeCollection = treeCollection.createTreeCollection;
|
|
823
|
+
exports.useAsyncList = useAsyncList.useAsyncList;
|
|
824
|
+
exports.useListCollection = useListCollection.useListCollection;
|
|
825
|
+
exports.useListSelection = useListSelection.useListSelection;
|
|
816
826
|
Object.defineProperty(exports, "parseColor", {
|
|
817
827
|
enumerable: true,
|
|
818
828
|
get: () => colorPicker.parse
|
|
@@ -850,10 +860,6 @@ exports.colorPickerAnatomy = colorPicker_anatomy.colorPickerAnatomy;
|
|
|
850
860
|
exports.useColorPicker = useColorPicker.useColorPicker;
|
|
851
861
|
exports.useColorPickerContext = useColorPickerContext.useColorPickerContext;
|
|
852
862
|
exports.ColorPicker = colorPicker$1;
|
|
853
|
-
exports.createListCollection = listCollection.createListCollection;
|
|
854
|
-
exports.createFileTreeCollection = treeCollection.createFileTreeCollection;
|
|
855
|
-
exports.createTreeCollection = treeCollection.createTreeCollection;
|
|
856
|
-
exports.useListCollection = useListCollection.useListCollection;
|
|
857
863
|
exports.ComboboxClearTrigger = comboboxClearTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
858
864
|
exports.ComboboxContent = comboboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
859
865
|
exports.ComboboxContext = comboboxContext_vue_vue_type_script_setup_true_lang.default;
|
package/dist/components/index.js
CHANGED
|
@@ -89,6 +89,12 @@ export { useCollapsible } from './collapsible/use-collapsible.js';
|
|
|
89
89
|
export { useCollapsibleContext } from './collapsible/use-collapsible-context.js';
|
|
90
90
|
import * as collapsible from './collapsible/collapsible.js';
|
|
91
91
|
export { collapsible as Collapsible };
|
|
92
|
+
export { createGridCollection } from './collection/grid-collection.js';
|
|
93
|
+
export { createListCollection } from './collection/list-collection.js';
|
|
94
|
+
export { createFileTreeCollection, createTreeCollection } from './collection/tree-collection.js';
|
|
95
|
+
export { useAsyncList } from './collection/use-async-list.js';
|
|
96
|
+
export { useListCollection } from './collection/use-list-collection.js';
|
|
97
|
+
export { useListSelection } from './collection/use-list-selection.js';
|
|
92
98
|
export { parse as parseColor } from '@zag-js/color-picker';
|
|
93
99
|
export { default as ColorPickerAreaBackground } from './color-picker/color-picker-area-background.vue.js';
|
|
94
100
|
export { default as ColorPickerAreaThumb } from './color-picker/color-picker-area-thumb.vue.js';
|
|
@@ -124,9 +130,6 @@ export { useColorPicker } from './color-picker/use-color-picker.js';
|
|
|
124
130
|
export { useColorPickerContext } from './color-picker/use-color-picker-context.js';
|
|
125
131
|
import * as colorPicker from './color-picker/color-picker.js';
|
|
126
132
|
export { colorPicker as ColorPicker };
|
|
127
|
-
export { createListCollection } from './collection/list-collection.js';
|
|
128
|
-
export { createFileTreeCollection, createTreeCollection } from './collection/tree-collection.js';
|
|
129
|
-
export { useListCollection } from './collection/use-list-collection.js';
|
|
130
133
|
export { default as ComboboxClearTrigger } from './combobox/combobox-clear-trigger.vue.js';
|
|
131
134
|
export { default as ComboboxContent } from './combobox/combobox-content.vue.js';
|
|
132
135
|
export { default as ComboboxContext } from './combobox/combobox-context.vue.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { ActionOptions as ToastActionOptions, Placement as ToastPlacement, PromiseOptions as ToastPromiseOptions, Status as ToastStatus, StatusChangeDetails as ToastStatusChangeDetails, Type as ToastType, } from '@zag-js/toast';
|
|
1
2
|
export { createToaster, type CreateToasterProps, type CreateToasterReturn } from './create-toaster';
|
|
2
3
|
export { default as ToastActionTrigger, type ToastActionTriggerBaseProps, type ToastActionTriggerProps, } from './toast-action-trigger.vue';
|
|
3
4
|
export { default as ToastCloseTrigger, type ToastCloseTriggerBaseProps, type ToastCloseTriggerProps, } from './toast-close-trigger.vue';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { ActionOptions as ToastActionOptions, Placement as ToastPlacement, PromiseOptions as ToastPromiseOptions, Status as ToastStatus, StatusChangeDetails as ToastStatusChangeDetails, Type as ToastType, } from '@zag-js/toast';
|
|
1
2
|
export { createToaster, type CreateToasterProps, type CreateToasterReturn } from './create-toaster';
|
|
2
3
|
export { default as ToastActionTrigger, type ToastActionTriggerBaseProps, type ToastActionTriggerProps, } from './toast-action-trigger.vue';
|
|
3
4
|
export { default as ToastCloseTrigger, type ToastCloseTriggerBaseProps, type ToastCloseTriggerProps, } from './toast-close-trigger.vue';
|
package/dist/index.cjs
CHANGED
|
@@ -86,6 +86,12 @@ const collapsibleIndicator_vue_vue_type_script_setup_true_lang = require('./comp
|
|
|
86
86
|
const useCollapsible = require('./components/collapsible/use-collapsible.cjs');
|
|
87
87
|
const useCollapsibleContext = require('./components/collapsible/use-collapsible-context.cjs');
|
|
88
88
|
const collapsible$1 = require('./components/collapsible/collapsible.cjs');
|
|
89
|
+
const gridCollection = require('./components/collection/grid-collection.cjs');
|
|
90
|
+
const listCollection = require('./components/collection/list-collection.cjs');
|
|
91
|
+
const treeCollection = require('./components/collection/tree-collection.cjs');
|
|
92
|
+
const useAsyncList = require('./components/collection/use-async-list.cjs');
|
|
93
|
+
const useListCollection = require('./components/collection/use-list-collection.cjs');
|
|
94
|
+
const useListSelection = require('./components/collection/use-list-selection.cjs');
|
|
89
95
|
const colorPicker = require('@zag-js/color-picker');
|
|
90
96
|
const colorPickerAreaBackground_vue_vue_type_script_setup_true_lang = require('./components/color-picker/color-picker-area-background.vue.cjs');
|
|
91
97
|
const colorPickerAreaThumb_vue_vue_type_script_setup_true_lang = require('./components/color-picker/color-picker-area-thumb.vue.cjs');
|
|
@@ -120,9 +126,6 @@ const colorPicker_anatomy = require('./components/color-picker/color-picker.anat
|
|
|
120
126
|
const useColorPicker = require('./components/color-picker/use-color-picker.cjs');
|
|
121
127
|
const useColorPickerContext = require('./components/color-picker/use-color-picker-context.cjs');
|
|
122
128
|
const colorPicker$1 = require('./components/color-picker/color-picker.cjs');
|
|
123
|
-
const listCollection = require('./components/collection/list-collection.cjs');
|
|
124
|
-
const treeCollection = require('./components/collection/tree-collection.cjs');
|
|
125
|
-
const useListCollection = require('./components/collection/use-list-collection.cjs');
|
|
126
129
|
const comboboxClearTrigger_vue_vue_type_script_setup_true_lang = require('./components/combobox/combobox-clear-trigger.vue.cjs');
|
|
127
130
|
const comboboxContent_vue_vue_type_script_setup_true_lang = require('./components/combobox/combobox-content.vue.cjs');
|
|
128
131
|
const comboboxContext_vue_vue_type_script_setup_true_lang = require('./components/combobox/combobox-context.vue.cjs');
|
|
@@ -691,6 +694,7 @@ const treeView$1 = require('./components/tree-view/tree-view.cjs');
|
|
|
691
694
|
const environmentProvider_vue_vue_type_script_setup_true_lang = require('./providers/environment/environment-provider.vue.cjs');
|
|
692
695
|
const useEnvironmentContext = require('./providers/environment/use-environment-context.cjs');
|
|
693
696
|
const localeProvider_vue_vue_type_script_setup_true_lang = require('./providers/locale/locale-provider.vue.cjs');
|
|
697
|
+
const useCollator = require('./providers/locale/use-collator.cjs');
|
|
694
698
|
const useFilter = require('./providers/locale/use-filter.cjs');
|
|
695
699
|
const useLocaleContext = require('./providers/locale/use-locale-context.cjs');
|
|
696
700
|
const useEmitsAsProps = require('./utils/use-emits-as-props.cjs');
|
|
@@ -822,6 +826,13 @@ exports.CollapsibleIndicator = collapsibleIndicator_vue_vue_type_script_setup_tr
|
|
|
822
826
|
exports.useCollapsible = useCollapsible.useCollapsible;
|
|
823
827
|
exports.useCollapsibleContext = useCollapsibleContext.useCollapsibleContext;
|
|
824
828
|
exports.Collapsible = collapsible$1;
|
|
829
|
+
exports.createGridCollection = gridCollection.createGridCollection;
|
|
830
|
+
exports.createListCollection = listCollection.createListCollection;
|
|
831
|
+
exports.createFileTreeCollection = treeCollection.createFileTreeCollection;
|
|
832
|
+
exports.createTreeCollection = treeCollection.createTreeCollection;
|
|
833
|
+
exports.useAsyncList = useAsyncList.useAsyncList;
|
|
834
|
+
exports.useListCollection = useListCollection.useListCollection;
|
|
835
|
+
exports.useListSelection = useListSelection.useListSelection;
|
|
825
836
|
Object.defineProperty(exports, "parseColor", {
|
|
826
837
|
enumerable: true,
|
|
827
838
|
get: () => colorPicker.parse
|
|
@@ -859,10 +870,6 @@ exports.colorPickerAnatomy = colorPicker_anatomy.colorPickerAnatomy;
|
|
|
859
870
|
exports.useColorPicker = useColorPicker.useColorPicker;
|
|
860
871
|
exports.useColorPickerContext = useColorPickerContext.useColorPickerContext;
|
|
861
872
|
exports.ColorPicker = colorPicker$1;
|
|
862
|
-
exports.createListCollection = listCollection.createListCollection;
|
|
863
|
-
exports.createFileTreeCollection = treeCollection.createFileTreeCollection;
|
|
864
|
-
exports.createTreeCollection = treeCollection.createTreeCollection;
|
|
865
|
-
exports.useListCollection = useListCollection.useListCollection;
|
|
866
873
|
exports.ComboboxClearTrigger = comboboxClearTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
867
874
|
exports.ComboboxContent = comboboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
868
875
|
exports.ComboboxContext = comboboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1440,6 +1447,7 @@ exports.EnvironmentProvider = environmentProvider_vue_vue_type_script_setup_true
|
|
|
1440
1447
|
exports.DEFAULT_ENVIRONMENT = useEnvironmentContext.DEFAULT_ENVIRONMENT;
|
|
1441
1448
|
exports.useEnvironmentContext = useEnvironmentContext.useEnvironmentContext;
|
|
1442
1449
|
exports.LocaleProvider = localeProvider_vue_vue_type_script_setup_true_lang.default;
|
|
1450
|
+
exports.useCollator = useCollator.useCollator;
|
|
1443
1451
|
exports.useFilter = useFilter.useFilter;
|
|
1444
1452
|
exports.DEFAULT_LOCALE = useLocaleContext.DEFAULT_LOCALE;
|
|
1445
1453
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
package/dist/index.js
CHANGED
|
@@ -89,6 +89,12 @@ export { useCollapsible } from './components/collapsible/use-collapsible.js';
|
|
|
89
89
|
export { useCollapsibleContext } from './components/collapsible/use-collapsible-context.js';
|
|
90
90
|
import * as collapsible from './components/collapsible/collapsible.js';
|
|
91
91
|
export { collapsible as Collapsible };
|
|
92
|
+
export { createGridCollection } from './components/collection/grid-collection.js';
|
|
93
|
+
export { createListCollection } from './components/collection/list-collection.js';
|
|
94
|
+
export { createFileTreeCollection, createTreeCollection } from './components/collection/tree-collection.js';
|
|
95
|
+
export { useAsyncList } from './components/collection/use-async-list.js';
|
|
96
|
+
export { useListCollection } from './components/collection/use-list-collection.js';
|
|
97
|
+
export { useListSelection } from './components/collection/use-list-selection.js';
|
|
92
98
|
export { parse as parseColor } from '@zag-js/color-picker';
|
|
93
99
|
export { default as ColorPickerAreaBackground } from './components/color-picker/color-picker-area-background.vue.js';
|
|
94
100
|
export { default as ColorPickerAreaThumb } from './components/color-picker/color-picker-area-thumb.vue.js';
|
|
@@ -124,9 +130,6 @@ export { useColorPicker } from './components/color-picker/use-color-picker.js';
|
|
|
124
130
|
export { useColorPickerContext } from './components/color-picker/use-color-picker-context.js';
|
|
125
131
|
import * as colorPicker from './components/color-picker/color-picker.js';
|
|
126
132
|
export { colorPicker as ColorPicker };
|
|
127
|
-
export { createListCollection } from './components/collection/list-collection.js';
|
|
128
|
-
export { createFileTreeCollection, createTreeCollection } from './components/collection/tree-collection.js';
|
|
129
|
-
export { useListCollection } from './components/collection/use-list-collection.js';
|
|
130
133
|
export { default as ComboboxClearTrigger } from './components/combobox/combobox-clear-trigger.vue.js';
|
|
131
134
|
export { default as ComboboxContent } from './components/combobox/combobox-content.vue.js';
|
|
132
135
|
export { default as ComboboxContext } from './components/combobox/combobox-context.vue.js';
|
|
@@ -735,6 +738,7 @@ export { treeView as TreeView };
|
|
|
735
738
|
export { default as EnvironmentProvider } from './providers/environment/environment-provider.vue.js';
|
|
736
739
|
export { DEFAULT_ENVIRONMENT, useEnvironmentContext } from './providers/environment/use-environment-context.js';
|
|
737
740
|
export { default as LocaleProvider } from './providers/locale/locale-provider.vue.js';
|
|
741
|
+
export { useCollator } from './providers/locale/use-collator.js';
|
|
738
742
|
export { useFilter } from './providers/locale/use-filter.js';
|
|
739
743
|
export { DEFAULT_LOCALE, useLocaleContext } from './providers/locale/use-locale-context.js';
|
|
740
744
|
export { useEmitAsProps } from './utils/use-emits-as-props.js';
|
package/dist/providers/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const environmentProvider_vue_vue_type_script_setup_true_lang = require('./environment/environment-provider.vue.cjs');
|
|
6
6
|
const useEnvironmentContext = require('./environment/use-environment-context.cjs');
|
|
7
7
|
const localeProvider_vue_vue_type_script_setup_true_lang = require('./locale/locale-provider.vue.cjs');
|
|
8
|
+
const useCollator = require('./locale/use-collator.cjs');
|
|
8
9
|
const useFilter = require('./locale/use-filter.cjs');
|
|
9
10
|
const useLocaleContext = require('./locale/use-locale-context.cjs');
|
|
10
11
|
|
|
@@ -14,6 +15,7 @@ exports.EnvironmentProvider = environmentProvider_vue_vue_type_script_setup_true
|
|
|
14
15
|
exports.DEFAULT_ENVIRONMENT = useEnvironmentContext.DEFAULT_ENVIRONMENT;
|
|
15
16
|
exports.useEnvironmentContext = useEnvironmentContext.useEnvironmentContext;
|
|
16
17
|
exports.LocaleProvider = localeProvider_vue_vue_type_script_setup_true_lang.default;
|
|
18
|
+
exports.useCollator = useCollator.useCollator;
|
|
17
19
|
exports.useFilter = useFilter.useFilter;
|
|
18
20
|
exports.DEFAULT_LOCALE = useLocaleContext.DEFAULT_LOCALE;
|
|
19
21
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
package/dist/providers/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as EnvironmentProvider } from './environment/environment-provider.vue.js';
|
|
2
2
|
export { DEFAULT_ENVIRONMENT, useEnvironmentContext } from './environment/use-environment-context.js';
|
|
3
3
|
export { default as LocaleProvider } from './locale/locale-provider.vue.js';
|
|
4
|
+
export { useCollator } from './locale/use-collator.js';
|
|
4
5
|
export { useFilter } from './locale/use-filter.js';
|
|
5
6
|
export { DEFAULT_LOCALE, useLocaleContext } from './locale/use-locale-context.js';
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const localeProvider_vue_vue_type_script_setup_true_lang = require('./locale-provider.vue.cjs');
|
|
6
|
+
const useCollator = require('./use-collator.cjs');
|
|
6
7
|
const useFilter = require('./use-filter.cjs');
|
|
7
8
|
const useLocaleContext = require('./use-locale-context.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
exports.LocaleProvider = localeProvider_vue_vue_type_script_setup_true_lang.default;
|
|
13
|
+
exports.useCollator = useCollator.useCollator;
|
|
12
14
|
exports.useFilter = useFilter.useFilter;
|
|
13
15
|
exports.DEFAULT_LOCALE = useLocaleContext.DEFAULT_LOCALE;
|
|
14
16
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as LocaleProvider, type LocaleProviderProps } from './locale-provider.vue';
|
|
2
|
+
export { useCollator, type UseCollatorProps, type UseCollatorReturn } from './use-collator';
|
|
2
3
|
export { useFilter, type UseFilterProps, type UseFilterReturn } from './use-filter';
|
|
3
4
|
export { DEFAULT_LOCALE, useLocaleContext, type LocaleContext } from './use-locale-context';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as LocaleProvider, type LocaleProviderProps } from './locale-provider.vue';
|
|
2
|
+
export { useCollator, type UseCollatorProps, type UseCollatorReturn } from './use-collator';
|
|
2
3
|
export { useFilter, type UseFilterProps, type UseFilterReturn } from './use-filter';
|
|
3
4
|
export { DEFAULT_LOCALE, useLocaleContext, type LocaleContext } from './use-locale-context';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const i18nUtils = require('@zag-js/i18n-utils');
|
|
6
|
+
const vue = require('vue');
|
|
7
|
+
const useLocaleContext = require('./use-locale-context.cjs');
|
|
8
|
+
|
|
9
|
+
function useCollator(propsOrFn = {}) {
|
|
10
|
+
const env = useLocaleContext.useLocaleContext();
|
|
11
|
+
return vue.computed(() => {
|
|
12
|
+
const props = vue.toValue(propsOrFn);
|
|
13
|
+
const locale = props.locale ?? env.value.locale;
|
|
14
|
+
const { locale: _, ...options } = props;
|
|
15
|
+
return i18nUtils.createCollator(locale, options);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.useCollator = useCollator;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
2
|
+
export interface UseCollatorProps extends Intl.CollatorOptions {
|
|
3
|
+
locale?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UseCollatorReturn extends ComputedRef<Intl.Collator> {
|
|
6
|
+
}
|
|
7
|
+
export declare function useCollator(propsOrFn?: MaybeRef<UseCollatorProps>): UseCollatorReturn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
2
|
+
export interface UseCollatorProps extends Intl.CollatorOptions {
|
|
3
|
+
locale?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UseCollatorReturn extends ComputedRef<Intl.Collator> {
|
|
6
|
+
}
|
|
7
|
+
export declare function useCollator(propsOrFn?: MaybeRef<UseCollatorProps>): UseCollatorReturn;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createCollator } from '@zag-js/i18n-utils';
|
|
2
|
+
import { computed, toValue } from 'vue';
|
|
3
|
+
import { useLocaleContext } from './use-locale-context.js';
|
|
4
|
+
|
|
5
|
+
function useCollator(propsOrFn = {}) {
|
|
6
|
+
const env = useLocaleContext();
|
|
7
|
+
return computed(() => {
|
|
8
|
+
const props = toValue(propsOrFn);
|
|
9
|
+
const locale = props.locale ?? env.value.locale;
|
|
10
|
+
const { locale: _, ...options } = props;
|
|
11
|
+
return createCollator(locale, options);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { useCollator };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.21.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,65 +140,66 @@
|
|
|
140
140
|
"sideEffects": false,
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@internationalized/date": "3.8.2",
|
|
143
|
-
"@zag-js/accordion": "1.21.
|
|
144
|
-
"@zag-js/anatomy": "1.21.
|
|
145
|
-
"@zag-js/angle-slider": "1.21.
|
|
146
|
-
"@zag-js/
|
|
147
|
-
"@zag-js/
|
|
148
|
-
"@zag-js/
|
|
149
|
-
"@zag-js/
|
|
150
|
-
"@zag-js/
|
|
151
|
-
"@zag-js/
|
|
152
|
-
"@zag-js/
|
|
153
|
-
"@zag-js/
|
|
154
|
-
"@zag-js/color-
|
|
155
|
-
"@zag-js/
|
|
156
|
-
"@zag-js/
|
|
157
|
-
"@zag-js/
|
|
158
|
-
"@zag-js/date-
|
|
159
|
-
"@zag-js/
|
|
160
|
-
"@zag-js/
|
|
161
|
-
"@zag-js/
|
|
162
|
-
"@zag-js/
|
|
163
|
-
"@zag-js/file-
|
|
164
|
-
"@zag-js/
|
|
165
|
-
"@zag-js/
|
|
166
|
-
"@zag-js/
|
|
167
|
-
"@zag-js/
|
|
168
|
-
"@zag-js/
|
|
169
|
-
"@zag-js/
|
|
170
|
-
"@zag-js/
|
|
171
|
-
"@zag-js/
|
|
172
|
-
"@zag-js/
|
|
173
|
-
"@zag-js/
|
|
174
|
-
"@zag-js/
|
|
175
|
-
"@zag-js/
|
|
176
|
-
"@zag-js/
|
|
177
|
-
"@zag-js/
|
|
178
|
-
"@zag-js/
|
|
179
|
-
"@zag-js/
|
|
180
|
-
"@zag-js/
|
|
181
|
-
"@zag-js/
|
|
182
|
-
"@zag-js/
|
|
183
|
-
"@zag-js/
|
|
184
|
-
"@zag-js/
|
|
185
|
-
"@zag-js/
|
|
186
|
-
"@zag-js/
|
|
187
|
-
"@zag-js/
|
|
188
|
-
"@zag-js/
|
|
189
|
-
"@zag-js/
|
|
190
|
-
"@zag-js/
|
|
191
|
-
"@zag-js/
|
|
192
|
-
"@zag-js/
|
|
193
|
-
"@zag-js/
|
|
194
|
-
"@zag-js/
|
|
195
|
-
"@zag-js/toggle
|
|
196
|
-
"@zag-js/
|
|
197
|
-
"@zag-js/
|
|
198
|
-
"@zag-js/
|
|
199
|
-
"@zag-js/
|
|
200
|
-
"@zag-js/
|
|
201
|
-
"@zag-js/
|
|
143
|
+
"@zag-js/accordion": "1.21.9",
|
|
144
|
+
"@zag-js/anatomy": "1.21.9",
|
|
145
|
+
"@zag-js/angle-slider": "1.21.9",
|
|
146
|
+
"@zag-js/async-list": "1.21.9",
|
|
147
|
+
"@zag-js/auto-resize": "1.21.9",
|
|
148
|
+
"@zag-js/avatar": "1.21.9",
|
|
149
|
+
"@zag-js/carousel": "1.21.9",
|
|
150
|
+
"@zag-js/checkbox": "1.21.9",
|
|
151
|
+
"@zag-js/clipboard": "1.21.9",
|
|
152
|
+
"@zag-js/collapsible": "1.21.9",
|
|
153
|
+
"@zag-js/collection": "1.21.9",
|
|
154
|
+
"@zag-js/color-picker": "1.21.9",
|
|
155
|
+
"@zag-js/color-utils": "1.21.9",
|
|
156
|
+
"@zag-js/combobox": "1.21.9",
|
|
157
|
+
"@zag-js/core": "1.21.9",
|
|
158
|
+
"@zag-js/date-picker": "1.21.9",
|
|
159
|
+
"@zag-js/date-utils": "1.21.9",
|
|
160
|
+
"@zag-js/dialog": "1.21.9",
|
|
161
|
+
"@zag-js/dom-query": "1.21.9",
|
|
162
|
+
"@zag-js/editable": "1.21.9",
|
|
163
|
+
"@zag-js/file-upload": "1.21.9",
|
|
164
|
+
"@zag-js/file-utils": "1.21.9",
|
|
165
|
+
"@zag-js/floating-panel": "1.21.9",
|
|
166
|
+
"@zag-js/focus-trap": "1.21.9",
|
|
167
|
+
"@zag-js/highlight-word": "1.21.9",
|
|
168
|
+
"@zag-js/hover-card": "1.21.9",
|
|
169
|
+
"@zag-js/i18n-utils": "1.21.9",
|
|
170
|
+
"@zag-js/json-tree-utils": "1.21.9",
|
|
171
|
+
"@zag-js/listbox": "1.21.9",
|
|
172
|
+
"@zag-js/menu": "1.21.9",
|
|
173
|
+
"@zag-js/number-input": "1.21.9",
|
|
174
|
+
"@zag-js/pagination": "1.21.9",
|
|
175
|
+
"@zag-js/password-input": "1.21.9",
|
|
176
|
+
"@zag-js/pin-input": "1.21.9",
|
|
177
|
+
"@zag-js/popover": "1.21.9",
|
|
178
|
+
"@zag-js/presence": "1.21.9",
|
|
179
|
+
"@zag-js/progress": "1.21.9",
|
|
180
|
+
"@zag-js/qr-code": "1.21.9",
|
|
181
|
+
"@zag-js/radio-group": "1.21.9",
|
|
182
|
+
"@zag-js/rating-group": "1.21.9",
|
|
183
|
+
"@zag-js/scroll-area": "1.21.9",
|
|
184
|
+
"@zag-js/select": "1.21.9",
|
|
185
|
+
"@zag-js/signature-pad": "1.21.9",
|
|
186
|
+
"@zag-js/slider": "1.21.9",
|
|
187
|
+
"@zag-js/splitter": "1.21.9",
|
|
188
|
+
"@zag-js/steps": "1.21.9",
|
|
189
|
+
"@zag-js/switch": "1.21.9",
|
|
190
|
+
"@zag-js/tabs": "1.21.9",
|
|
191
|
+
"@zag-js/tags-input": "1.21.9",
|
|
192
|
+
"@zag-js/time-picker": "1.21.9",
|
|
193
|
+
"@zag-js/timer": "1.21.9",
|
|
194
|
+
"@zag-js/toast": "1.21.9",
|
|
195
|
+
"@zag-js/toggle": "1.21.9",
|
|
196
|
+
"@zag-js/toggle-group": "1.21.9",
|
|
197
|
+
"@zag-js/tooltip": "1.21.9",
|
|
198
|
+
"@zag-js/tour": "1.21.9",
|
|
199
|
+
"@zag-js/tree-view": "1.21.9",
|
|
200
|
+
"@zag-js/types": "1.21.9",
|
|
201
|
+
"@zag-js/utils": "1.21.9",
|
|
202
|
+
"@zag-js/vue": "1.21.9"
|
|
202
203
|
},
|
|
203
204
|
"devDependencies": {
|
|
204
205
|
"@biomejs/biome": "2.2.0",
|
|
@@ -216,7 +217,7 @@
|
|
|
216
217
|
"globby": "14.1.0",
|
|
217
218
|
"histoire": "0.17.17",
|
|
218
219
|
"jsdom": "26.1.0",
|
|
219
|
-
"lucide-vue-next": "0.
|
|
220
|
+
"lucide-vue-next": "0.540.0",
|
|
220
221
|
"resize-observer-polyfill": "1.5.1",
|
|
221
222
|
"typescript": "5.9.2",
|
|
222
223
|
"vite": "7.1.2",
|