@ark-ui/react 5.15.4 → 5.16.1
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/client-only/client-only.cjs +1 -1
- package/dist/components/client-only/client-only.d.cts +1 -1
- package/dist/components/client-only/client-only.d.ts +1 -1
- package/dist/components/client-only/client-only.js +1 -1
- package/dist/components/collection/use-list-collection.cjs +56 -33
- package/dist/components/collection/use-list-collection.d.cts +57 -4
- package/dist/components/collection/use-list-collection.d.ts +57 -4
- package/dist/components/collection/use-list-collection.js +57 -34
- package/dist/components/color-picker/color-picker-root.cjs +1 -0
- package/dist/components/color-picker/color-picker-root.js +1 -0
- package/dist/components/date-picker/date-picker-root.cjs +2 -1
- package/dist/components/date-picker/date-picker-root.js +2 -1
- package/package.json +66 -66
|
@@ -17,7 +17,7 @@ const ClientOnly = (props) => {
|
|
|
17
17
|
if (!isClient) {
|
|
18
18
|
return fallback;
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: typeof children === "function" ? children() : children });
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
exports.ClientOnly = ClientOnly;
|
|
@@ -13,7 +13,7 @@ const ClientOnly = (props) => {
|
|
|
13
13
|
if (!isClient) {
|
|
14
14
|
return fallback;
|
|
15
15
|
}
|
|
16
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
16
|
+
return /* @__PURE__ */ jsx(Fragment, { children: typeof children === "function" ? children() : children });
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export { ClientOnly };
|
|
@@ -9,63 +9,86 @@ const listCollection = require('./list-collection.cjs');
|
|
|
9
9
|
|
|
10
10
|
function useListCollection(props) {
|
|
11
11
|
const { initialItems = [], filter, limit, ...collectionOptions } = props;
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
()
|
|
17
|
-
);
|
|
18
|
-
const setCollection = useEvent.useEvent((collection2) => {
|
|
19
|
-
setCollectionImpl(limit == null ? collection2 : collection2.copy(collection2.items.slice(0, limit)));
|
|
12
|
+
const [items, setItemsImpl] = react.useState(initialItems);
|
|
13
|
+
const [filterText, setFilterText] = react.useState("");
|
|
14
|
+
const setItems = useEvent.useEvent((items2) => {
|
|
15
|
+
setItemsImpl(items2);
|
|
16
|
+
setFilterText("");
|
|
20
17
|
});
|
|
18
|
+
const collectionOptionsRef = react.useRef(collectionOptions);
|
|
19
|
+
collectionOptionsRef.current = collectionOptions;
|
|
20
|
+
const create = react.useCallback((items2) => {
|
|
21
|
+
return listCollection.createListCollection({ ...collectionOptionsRef.current, items: items2 });
|
|
22
|
+
}, []);
|
|
23
|
+
const collection = react.useMemo(() => {
|
|
24
|
+
let activeItems = items;
|
|
25
|
+
if (filterText && filter) {
|
|
26
|
+
activeItems = create(items).filter((itemString, _index, item) => filter(itemString, filterText, item)).items;
|
|
27
|
+
}
|
|
28
|
+
const limitedItems = limit == null ? activeItems : activeItems.slice(0, limit);
|
|
29
|
+
return listCollection.createListCollection({ ...collectionOptionsRef.current, items: limitedItems });
|
|
30
|
+
}, [items, filterText, filter, limit, create]);
|
|
21
31
|
return {
|
|
22
32
|
collection,
|
|
23
|
-
filter: (inputValue) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
set: useEvent.useEvent((items) => {
|
|
29
|
-
setCollection(create(items));
|
|
33
|
+
filter: useEvent.useEvent((inputValue) => {
|
|
34
|
+
setFilterText(inputValue || "");
|
|
35
|
+
}),
|
|
36
|
+
set: useEvent.useEvent((newItems) => {
|
|
37
|
+
setItems(newItems);
|
|
30
38
|
}),
|
|
31
39
|
reset: useEvent.useEvent(() => {
|
|
32
|
-
|
|
40
|
+
setItems(initialItems);
|
|
33
41
|
}),
|
|
34
42
|
clear: useEvent.useEvent(() => {
|
|
35
|
-
|
|
43
|
+
setItems([]);
|
|
36
44
|
}),
|
|
37
|
-
insert: useEvent.useEvent((index, ...
|
|
38
|
-
|
|
45
|
+
insert: useEvent.useEvent((index, ...itemsToInsert) => {
|
|
46
|
+
const newItems = create(items).insert(index, ...itemsToInsert).items;
|
|
47
|
+
setItems(newItems);
|
|
39
48
|
}),
|
|
40
|
-
insertBefore: useEvent.useEvent((value, ...
|
|
41
|
-
|
|
49
|
+
insertBefore: useEvent.useEvent((value, ...itemsToInsert) => {
|
|
50
|
+
const newItems = create(items).insertBefore(value, ...itemsToInsert).items;
|
|
51
|
+
setItems(newItems);
|
|
42
52
|
}),
|
|
43
|
-
insertAfter: useEvent.useEvent((value, ...
|
|
44
|
-
|
|
53
|
+
insertAfter: useEvent.useEvent((value, ...itemsToInsert) => {
|
|
54
|
+
const newItems = create(items).insertAfter(value, ...itemsToInsert).items;
|
|
55
|
+
setItems(newItems);
|
|
45
56
|
}),
|
|
46
57
|
remove: useEvent.useEvent((...itemOrValues) => {
|
|
47
|
-
|
|
58
|
+
const newItems = create(items).remove(...itemOrValues).items;
|
|
59
|
+
setItems(newItems);
|
|
48
60
|
}),
|
|
49
61
|
move: useEvent.useEvent((value, to) => {
|
|
50
|
-
|
|
62
|
+
const newItems = create(items).move(value, to).items;
|
|
63
|
+
setItems(newItems);
|
|
51
64
|
}),
|
|
52
65
|
moveBefore: useEvent.useEvent((value, ...values) => {
|
|
53
|
-
|
|
66
|
+
const newItems = create(items).moveBefore(value, ...values).items;
|
|
67
|
+
setItems(newItems);
|
|
54
68
|
}),
|
|
55
69
|
moveAfter: useEvent.useEvent((value, ...values) => {
|
|
56
|
-
|
|
70
|
+
const newItems = create(items).moveAfter(value, ...values).items;
|
|
71
|
+
setItems(newItems);
|
|
57
72
|
}),
|
|
58
73
|
reorder: useEvent.useEvent((from, to) => {
|
|
59
|
-
|
|
74
|
+
const newItems = create(items).reorder(from, to).items;
|
|
75
|
+
setItems(newItems);
|
|
76
|
+
}),
|
|
77
|
+
append: useEvent.useEvent((...itemsToAppend) => {
|
|
78
|
+
const newItems = create(items).append(...itemsToAppend).items;
|
|
79
|
+
setItems(newItems);
|
|
60
80
|
}),
|
|
61
|
-
|
|
62
|
-
|
|
81
|
+
upsert: useEvent.useEvent((value, item, mode = "append") => {
|
|
82
|
+
const newItems = create(items).upsert(value, item, mode).items;
|
|
83
|
+
setItems(newItems);
|
|
63
84
|
}),
|
|
64
|
-
prepend: useEvent.useEvent((...
|
|
65
|
-
|
|
85
|
+
prepend: useEvent.useEvent((...itemsToPrepend) => {
|
|
86
|
+
const newItems = create(items).prepend(...itemsToPrepend).items;
|
|
87
|
+
setItems(newItems);
|
|
66
88
|
}),
|
|
67
89
|
update: useEvent.useEvent((value, item) => {
|
|
68
|
-
|
|
90
|
+
const newItems = create(items).update(value, item).items;
|
|
91
|
+
setItems(newItems);
|
|
69
92
|
})
|
|
70
93
|
};
|
|
71
94
|
}
|
|
@@ -7,28 +7,81 @@ export interface UseListCollectionProps<T> extends Omit<CollectionOptions<T>, 'i
|
|
|
7
7
|
/**
|
|
8
8
|
* The filter function to use to filter the items.
|
|
9
9
|
*/
|
|
10
|
-
filter?: (itemText: string, filterText: string) => boolean;
|
|
10
|
+
filter?: (itemText: string, filterText: string, item: T) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* The maximum number of items to display in the collection.
|
|
13
13
|
* Useful for performance when you have a large number of items.
|
|
14
14
|
*/
|
|
15
15
|
limit?: number;
|
|
16
16
|
}
|
|
17
|
-
export declare function useListCollection<T>(props: UseListCollectionProps<T>):
|
|
17
|
+
export declare function useListCollection<T>(props: UseListCollectionProps<T>): UseListCollectionReturn<T>;
|
|
18
|
+
export interface UseListCollectionReturn<T> {
|
|
19
|
+
/**
|
|
20
|
+
* The collection of items.
|
|
21
|
+
*/
|
|
18
22
|
collection: ListCollection<T>;
|
|
23
|
+
/**
|
|
24
|
+
* The function to filter the items.
|
|
25
|
+
*/
|
|
19
26
|
filter: (inputValue: string) => void;
|
|
27
|
+
/**
|
|
28
|
+
* The function to set the items.
|
|
29
|
+
*/
|
|
20
30
|
set: (items: T[]) => void;
|
|
31
|
+
/**
|
|
32
|
+
* The function to reset the items.
|
|
33
|
+
*/
|
|
21
34
|
reset: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* The function to clear the items.
|
|
37
|
+
*/
|
|
22
38
|
clear: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* The function to insert items at a specific index.
|
|
41
|
+
*/
|
|
23
42
|
insert: (index: number, ...items: T[]) => void;
|
|
43
|
+
/**
|
|
44
|
+
* The function to insert items before a specific value.
|
|
45
|
+
*/
|
|
24
46
|
insertBefore: (value: string, ...items: T[]) => void;
|
|
47
|
+
/**
|
|
48
|
+
* The function to insert items after a specific value.
|
|
49
|
+
*/
|
|
25
50
|
insertAfter: (value: string, ...items: T[]) => void;
|
|
26
|
-
|
|
51
|
+
/**
|
|
52
|
+
* The function to remove items.
|
|
53
|
+
*/
|
|
54
|
+
remove: (...itemOrValues: Array<T | string>) => void;
|
|
55
|
+
/**
|
|
56
|
+
* The function to move an item to a specific index.
|
|
57
|
+
*/
|
|
27
58
|
move: (value: string, to: number) => void;
|
|
59
|
+
/**
|
|
60
|
+
* The function to move an item before a specific value.
|
|
61
|
+
*/
|
|
28
62
|
moveBefore: (value: string, ...values: string[]) => void;
|
|
63
|
+
/**
|
|
64
|
+
* The function to move an item after a specific value.
|
|
65
|
+
*/
|
|
29
66
|
moveAfter: (value: string, ...values: string[]) => void;
|
|
67
|
+
/**
|
|
68
|
+
* The function to reorder items.
|
|
69
|
+
*/
|
|
30
70
|
reorder: (from: number, to: number) => void;
|
|
71
|
+
/**
|
|
72
|
+
* The function to append items.
|
|
73
|
+
*/
|
|
31
74
|
append: (...items: T[]) => void;
|
|
75
|
+
/**
|
|
76
|
+
* The function to upsert an item.
|
|
77
|
+
*/
|
|
78
|
+
upsert: (value: string, item: T, mode?: 'append' | 'prepend') => void;
|
|
79
|
+
/**
|
|
80
|
+
* The function to prepend items.
|
|
81
|
+
*/
|
|
32
82
|
prepend: (...items: T[]) => void;
|
|
83
|
+
/**
|
|
84
|
+
* The function to update an item.
|
|
85
|
+
*/
|
|
33
86
|
update: (value: string, item: T) => void;
|
|
34
|
-
}
|
|
87
|
+
}
|
|
@@ -7,28 +7,81 @@ export interface UseListCollectionProps<T> extends Omit<CollectionOptions<T>, 'i
|
|
|
7
7
|
/**
|
|
8
8
|
* The filter function to use to filter the items.
|
|
9
9
|
*/
|
|
10
|
-
filter?: (itemText: string, filterText: string) => boolean;
|
|
10
|
+
filter?: (itemText: string, filterText: string, item: T) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* The maximum number of items to display in the collection.
|
|
13
13
|
* Useful for performance when you have a large number of items.
|
|
14
14
|
*/
|
|
15
15
|
limit?: number;
|
|
16
16
|
}
|
|
17
|
-
export declare function useListCollection<T>(props: UseListCollectionProps<T>):
|
|
17
|
+
export declare function useListCollection<T>(props: UseListCollectionProps<T>): UseListCollectionReturn<T>;
|
|
18
|
+
export interface UseListCollectionReturn<T> {
|
|
19
|
+
/**
|
|
20
|
+
* The collection of items.
|
|
21
|
+
*/
|
|
18
22
|
collection: ListCollection<T>;
|
|
23
|
+
/**
|
|
24
|
+
* The function to filter the items.
|
|
25
|
+
*/
|
|
19
26
|
filter: (inputValue: string) => void;
|
|
27
|
+
/**
|
|
28
|
+
* The function to set the items.
|
|
29
|
+
*/
|
|
20
30
|
set: (items: T[]) => void;
|
|
31
|
+
/**
|
|
32
|
+
* The function to reset the items.
|
|
33
|
+
*/
|
|
21
34
|
reset: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* The function to clear the items.
|
|
37
|
+
*/
|
|
22
38
|
clear: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* The function to insert items at a specific index.
|
|
41
|
+
*/
|
|
23
42
|
insert: (index: number, ...items: T[]) => void;
|
|
43
|
+
/**
|
|
44
|
+
* The function to insert items before a specific value.
|
|
45
|
+
*/
|
|
24
46
|
insertBefore: (value: string, ...items: T[]) => void;
|
|
47
|
+
/**
|
|
48
|
+
* The function to insert items after a specific value.
|
|
49
|
+
*/
|
|
25
50
|
insertAfter: (value: string, ...items: T[]) => void;
|
|
26
|
-
|
|
51
|
+
/**
|
|
52
|
+
* The function to remove items.
|
|
53
|
+
*/
|
|
54
|
+
remove: (...itemOrValues: Array<T | string>) => void;
|
|
55
|
+
/**
|
|
56
|
+
* The function to move an item to a specific index.
|
|
57
|
+
*/
|
|
27
58
|
move: (value: string, to: number) => void;
|
|
59
|
+
/**
|
|
60
|
+
* The function to move an item before a specific value.
|
|
61
|
+
*/
|
|
28
62
|
moveBefore: (value: string, ...values: string[]) => void;
|
|
63
|
+
/**
|
|
64
|
+
* The function to move an item after a specific value.
|
|
65
|
+
*/
|
|
29
66
|
moveAfter: (value: string, ...values: string[]) => void;
|
|
67
|
+
/**
|
|
68
|
+
* The function to reorder items.
|
|
69
|
+
*/
|
|
30
70
|
reorder: (from: number, to: number) => void;
|
|
71
|
+
/**
|
|
72
|
+
* The function to append items.
|
|
73
|
+
*/
|
|
31
74
|
append: (...items: T[]) => void;
|
|
75
|
+
/**
|
|
76
|
+
* The function to upsert an item.
|
|
77
|
+
*/
|
|
78
|
+
upsert: (value: string, item: T, mode?: 'append' | 'prepend') => void;
|
|
79
|
+
/**
|
|
80
|
+
* The function to prepend items.
|
|
81
|
+
*/
|
|
32
82
|
prepend: (...items: T[]) => void;
|
|
83
|
+
/**
|
|
84
|
+
* The function to update an item.
|
|
85
|
+
*/
|
|
33
86
|
update: (value: string, item: T) => void;
|
|
34
|
-
}
|
|
87
|
+
}
|
|
@@ -1,67 +1,90 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useState } from 'react';
|
|
2
|
+
import { useState, useRef, useCallback, useMemo } from 'react';
|
|
3
3
|
import { useEvent } from '../../utils/use-event.js';
|
|
4
4
|
import { createListCollection } from './list-collection.js';
|
|
5
5
|
|
|
6
6
|
function useListCollection(props) {
|
|
7
7
|
const { initialItems = [], filter, limit, ...collectionOptions } = props;
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
()
|
|
13
|
-
);
|
|
14
|
-
const setCollection = useEvent((collection2) => {
|
|
15
|
-
setCollectionImpl(limit == null ? collection2 : collection2.copy(collection2.items.slice(0, limit)));
|
|
8
|
+
const [items, setItemsImpl] = useState(initialItems);
|
|
9
|
+
const [filterText, setFilterText] = useState("");
|
|
10
|
+
const setItems = useEvent((items2) => {
|
|
11
|
+
setItemsImpl(items2);
|
|
12
|
+
setFilterText("");
|
|
16
13
|
});
|
|
14
|
+
const collectionOptionsRef = useRef(collectionOptions);
|
|
15
|
+
collectionOptionsRef.current = collectionOptions;
|
|
16
|
+
const create = useCallback((items2) => {
|
|
17
|
+
return createListCollection({ ...collectionOptionsRef.current, items: items2 });
|
|
18
|
+
}, []);
|
|
19
|
+
const collection = useMemo(() => {
|
|
20
|
+
let activeItems = items;
|
|
21
|
+
if (filterText && filter) {
|
|
22
|
+
activeItems = create(items).filter((itemString, _index, item) => filter(itemString, filterText, item)).items;
|
|
23
|
+
}
|
|
24
|
+
const limitedItems = limit == null ? activeItems : activeItems.slice(0, limit);
|
|
25
|
+
return createListCollection({ ...collectionOptionsRef.current, items: limitedItems });
|
|
26
|
+
}, [items, filterText, filter, limit, create]);
|
|
17
27
|
return {
|
|
18
28
|
collection,
|
|
19
|
-
filter: (inputValue) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
set: useEvent((items) => {
|
|
25
|
-
setCollection(create(items));
|
|
29
|
+
filter: useEvent((inputValue) => {
|
|
30
|
+
setFilterText(inputValue || "");
|
|
31
|
+
}),
|
|
32
|
+
set: useEvent((newItems) => {
|
|
33
|
+
setItems(newItems);
|
|
26
34
|
}),
|
|
27
35
|
reset: useEvent(() => {
|
|
28
|
-
|
|
36
|
+
setItems(initialItems);
|
|
29
37
|
}),
|
|
30
38
|
clear: useEvent(() => {
|
|
31
|
-
|
|
39
|
+
setItems([]);
|
|
32
40
|
}),
|
|
33
|
-
insert: useEvent((index, ...
|
|
34
|
-
|
|
41
|
+
insert: useEvent((index, ...itemsToInsert) => {
|
|
42
|
+
const newItems = create(items).insert(index, ...itemsToInsert).items;
|
|
43
|
+
setItems(newItems);
|
|
35
44
|
}),
|
|
36
|
-
insertBefore: useEvent((value, ...
|
|
37
|
-
|
|
45
|
+
insertBefore: useEvent((value, ...itemsToInsert) => {
|
|
46
|
+
const newItems = create(items).insertBefore(value, ...itemsToInsert).items;
|
|
47
|
+
setItems(newItems);
|
|
38
48
|
}),
|
|
39
|
-
insertAfter: useEvent((value, ...
|
|
40
|
-
|
|
49
|
+
insertAfter: useEvent((value, ...itemsToInsert) => {
|
|
50
|
+
const newItems = create(items).insertAfter(value, ...itemsToInsert).items;
|
|
51
|
+
setItems(newItems);
|
|
41
52
|
}),
|
|
42
53
|
remove: useEvent((...itemOrValues) => {
|
|
43
|
-
|
|
54
|
+
const newItems = create(items).remove(...itemOrValues).items;
|
|
55
|
+
setItems(newItems);
|
|
44
56
|
}),
|
|
45
57
|
move: useEvent((value, to) => {
|
|
46
|
-
|
|
58
|
+
const newItems = create(items).move(value, to).items;
|
|
59
|
+
setItems(newItems);
|
|
47
60
|
}),
|
|
48
61
|
moveBefore: useEvent((value, ...values) => {
|
|
49
|
-
|
|
62
|
+
const newItems = create(items).moveBefore(value, ...values).items;
|
|
63
|
+
setItems(newItems);
|
|
50
64
|
}),
|
|
51
65
|
moveAfter: useEvent((value, ...values) => {
|
|
52
|
-
|
|
66
|
+
const newItems = create(items).moveAfter(value, ...values).items;
|
|
67
|
+
setItems(newItems);
|
|
53
68
|
}),
|
|
54
69
|
reorder: useEvent((from, to) => {
|
|
55
|
-
|
|
70
|
+
const newItems = create(items).reorder(from, to).items;
|
|
71
|
+
setItems(newItems);
|
|
72
|
+
}),
|
|
73
|
+
append: useEvent((...itemsToAppend) => {
|
|
74
|
+
const newItems = create(items).append(...itemsToAppend).items;
|
|
75
|
+
setItems(newItems);
|
|
56
76
|
}),
|
|
57
|
-
|
|
58
|
-
|
|
77
|
+
upsert: useEvent((value, item, mode = "append") => {
|
|
78
|
+
const newItems = create(items).upsert(value, item, mode).items;
|
|
79
|
+
setItems(newItems);
|
|
59
80
|
}),
|
|
60
|
-
prepend: useEvent((...
|
|
61
|
-
|
|
81
|
+
prepend: useEvent((...itemsToPrepend) => {
|
|
82
|
+
const newItems = create(items).prepend(...itemsToPrepend).items;
|
|
83
|
+
setItems(newItems);
|
|
62
84
|
}),
|
|
63
85
|
update: useEvent((value, item) => {
|
|
64
|
-
|
|
86
|
+
const newItems = create(items).update(value, item).items;
|
|
87
|
+
setItems(newItems);
|
|
65
88
|
})
|
|
66
89
|
};
|
|
67
90
|
}
|
|
@@ -51,7 +51,8 @@ const DatePickerRoot = react.forwardRef((props, ref) => {
|
|
|
51
51
|
"timeZone",
|
|
52
52
|
"translations",
|
|
53
53
|
"value",
|
|
54
|
-
"view"
|
|
54
|
+
"view",
|
|
55
|
+
"inline"
|
|
55
56
|
]);
|
|
56
57
|
const datePicker = useDatePicker.useDatePicker(useDatePickerProps);
|
|
57
58
|
const presence = usePresence.usePresence(react$1.mergeProps({ present: datePicker.open }, presenceProps));
|
|
@@ -47,7 +47,8 @@ const DatePickerRoot = forwardRef((props, ref) => {
|
|
|
47
47
|
"timeZone",
|
|
48
48
|
"translations",
|
|
49
49
|
"value",
|
|
50
|
-
"view"
|
|
50
|
+
"view",
|
|
51
|
+
"inline"
|
|
51
52
|
]);
|
|
52
53
|
const datePicker = useDatePicker(useDatePickerProps);
|
|
53
54
|
const presence = usePresence(mergeProps({ present: datePicker.open }, presenceProps));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.16.1",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -141,68 +141,68 @@
|
|
|
141
141
|
"sideEffects": false,
|
|
142
142
|
"dependencies": {
|
|
143
143
|
"@internationalized/date": "3.8.2",
|
|
144
|
-
"@zag-js/accordion": "1.
|
|
145
|
-
"@zag-js/angle-slider": "1.
|
|
146
|
-
"@zag-js/anatomy": "1.
|
|
147
|
-
"@zag-js/auto-resize": "1.
|
|
148
|
-
"@zag-js/avatar": "1.
|
|
149
|
-
"@zag-js/carousel": "1.
|
|
150
|
-
"@zag-js/checkbox": "1.
|
|
151
|
-
"@zag-js/clipboard": "1.
|
|
152
|
-
"@zag-js/collapsible": "1.
|
|
153
|
-
"@zag-js/collection": "1.
|
|
154
|
-
"@zag-js/color-picker": "1.
|
|
155
|
-
"@zag-js/color-utils": "1.
|
|
156
|
-
"@zag-js/combobox": "1.
|
|
157
|
-
"@zag-js/core": "1.
|
|
158
|
-
"@zag-js/date-picker": "1.
|
|
159
|
-
"@zag-js/date-utils": "1.
|
|
160
|
-
"@zag-js/dialog": "1.
|
|
161
|
-
"@zag-js/dom-query": "1.
|
|
162
|
-
"@zag-js/editable": "1.
|
|
163
|
-
"@zag-js/file-upload": "1.
|
|
164
|
-
"@zag-js/file-utils": "1.
|
|
165
|
-
"@zag-js/focus-trap": "1.
|
|
166
|
-
"@zag-js/floating-panel": "1.
|
|
167
|
-
"@zag-js/highlight-word": "1.
|
|
168
|
-
"@zag-js/hover-card": "1.
|
|
169
|
-
"@zag-js/i18n-utils": "1.
|
|
170
|
-
"@zag-js/listbox": "1.
|
|
171
|
-
"@zag-js/menu": "1.
|
|
172
|
-
"@zag-js/number-input": "1.
|
|
173
|
-
"@zag-js/pagination": "1.
|
|
174
|
-
"@zag-js/password-input": "1.
|
|
175
|
-
"@zag-js/pin-input": "1.
|
|
176
|
-
"@zag-js/popover": "1.
|
|
177
|
-
"@zag-js/presence": "1.
|
|
178
|
-
"@zag-js/progress": "1.
|
|
179
|
-
"@zag-js/qr-code": "1.
|
|
180
|
-
"@zag-js/radio-group": "1.
|
|
181
|
-
"@zag-js/rating-group": "1.
|
|
182
|
-
"@zag-js/react": "1.
|
|
183
|
-
"@zag-js/select": "1.
|
|
184
|
-
"@zag-js/signature-pad": "1.
|
|
185
|
-
"@zag-js/slider": "1.
|
|
186
|
-
"@zag-js/splitter": "1.
|
|
187
|
-
"@zag-js/steps": "1.
|
|
188
|
-
"@zag-js/switch": "1.
|
|
189
|
-
"@zag-js/tabs": "1.
|
|
190
|
-
"@zag-js/tags-input": "1.
|
|
191
|
-
"@zag-js/time-picker": "1.
|
|
192
|
-
"@zag-js/timer": "1.
|
|
193
|
-
"@zag-js/toast": "1.
|
|
194
|
-
"@zag-js/toggle": "1.
|
|
195
|
-
"@zag-js/toggle-group": "1.
|
|
196
|
-
"@zag-js/tooltip": "1.
|
|
197
|
-
"@zag-js/tour": "1.
|
|
198
|
-
"@zag-js/tree-view": "1.
|
|
199
|
-
"@zag-js/types": "1.
|
|
200
|
-
"@zag-js/utils": "1.
|
|
144
|
+
"@zag-js/accordion": "1.18.2",
|
|
145
|
+
"@zag-js/angle-slider": "1.18.2",
|
|
146
|
+
"@zag-js/anatomy": "1.18.2",
|
|
147
|
+
"@zag-js/auto-resize": "1.18.2",
|
|
148
|
+
"@zag-js/avatar": "1.18.2",
|
|
149
|
+
"@zag-js/carousel": "1.18.2",
|
|
150
|
+
"@zag-js/checkbox": "1.18.2",
|
|
151
|
+
"@zag-js/clipboard": "1.18.2",
|
|
152
|
+
"@zag-js/collapsible": "1.18.2",
|
|
153
|
+
"@zag-js/collection": "1.18.2",
|
|
154
|
+
"@zag-js/color-picker": "1.18.2",
|
|
155
|
+
"@zag-js/color-utils": "1.18.2",
|
|
156
|
+
"@zag-js/combobox": "1.18.2",
|
|
157
|
+
"@zag-js/core": "1.18.2",
|
|
158
|
+
"@zag-js/date-picker": "1.18.2",
|
|
159
|
+
"@zag-js/date-utils": "1.18.2",
|
|
160
|
+
"@zag-js/dialog": "1.18.2",
|
|
161
|
+
"@zag-js/dom-query": "1.18.2",
|
|
162
|
+
"@zag-js/editable": "1.18.2",
|
|
163
|
+
"@zag-js/file-upload": "1.18.2",
|
|
164
|
+
"@zag-js/file-utils": "1.18.2",
|
|
165
|
+
"@zag-js/focus-trap": "1.18.2",
|
|
166
|
+
"@zag-js/floating-panel": "1.18.2",
|
|
167
|
+
"@zag-js/highlight-word": "1.18.2",
|
|
168
|
+
"@zag-js/hover-card": "1.18.2",
|
|
169
|
+
"@zag-js/i18n-utils": "1.18.2",
|
|
170
|
+
"@zag-js/listbox": "1.18.2",
|
|
171
|
+
"@zag-js/menu": "1.18.2",
|
|
172
|
+
"@zag-js/number-input": "1.18.2",
|
|
173
|
+
"@zag-js/pagination": "1.18.2",
|
|
174
|
+
"@zag-js/password-input": "1.18.2",
|
|
175
|
+
"@zag-js/pin-input": "1.18.2",
|
|
176
|
+
"@zag-js/popover": "1.18.2",
|
|
177
|
+
"@zag-js/presence": "1.18.2",
|
|
178
|
+
"@zag-js/progress": "1.18.2",
|
|
179
|
+
"@zag-js/qr-code": "1.18.2",
|
|
180
|
+
"@zag-js/radio-group": "1.18.2",
|
|
181
|
+
"@zag-js/rating-group": "1.18.2",
|
|
182
|
+
"@zag-js/react": "1.18.2",
|
|
183
|
+
"@zag-js/select": "1.18.2",
|
|
184
|
+
"@zag-js/signature-pad": "1.18.2",
|
|
185
|
+
"@zag-js/slider": "1.18.2",
|
|
186
|
+
"@zag-js/splitter": "1.18.2",
|
|
187
|
+
"@zag-js/steps": "1.18.2",
|
|
188
|
+
"@zag-js/switch": "1.18.2",
|
|
189
|
+
"@zag-js/tabs": "1.18.2",
|
|
190
|
+
"@zag-js/tags-input": "1.18.2",
|
|
191
|
+
"@zag-js/time-picker": "1.18.2",
|
|
192
|
+
"@zag-js/timer": "1.18.2",
|
|
193
|
+
"@zag-js/toast": "1.18.2",
|
|
194
|
+
"@zag-js/toggle": "1.18.2",
|
|
195
|
+
"@zag-js/toggle-group": "1.18.2",
|
|
196
|
+
"@zag-js/tooltip": "1.18.2",
|
|
197
|
+
"@zag-js/tour": "1.18.2",
|
|
198
|
+
"@zag-js/tree-view": "1.18.2",
|
|
199
|
+
"@zag-js/types": "1.18.2",
|
|
200
|
+
"@zag-js/utils": "1.18.2"
|
|
201
201
|
},
|
|
202
202
|
"devDependencies": {
|
|
203
203
|
"@biomejs/biome": "1.9.4",
|
|
204
|
-
"@storybook/addon-a11y": "9.0.
|
|
205
|
-
"@storybook/react-vite": "9.0.
|
|
204
|
+
"@storybook/addon-a11y": "9.0.15",
|
|
205
|
+
"@storybook/react-vite": "9.0.15",
|
|
206
206
|
"@testing-library/dom": "10.4.0",
|
|
207
207
|
"@testing-library/jest-dom": "6.6.3",
|
|
208
208
|
"@testing-library/react": "16.3.0",
|
|
@@ -210,11 +210,11 @@
|
|
|
210
210
|
"@types/jsdom": "21.1.7",
|
|
211
211
|
"@types/react": "19.1.8",
|
|
212
212
|
"@types/react-dom": "19.1.6",
|
|
213
|
-
"@vitejs/plugin-react": "4.
|
|
213
|
+
"@vitejs/plugin-react": "4.6.0",
|
|
214
214
|
"clean-package": "2.2.0",
|
|
215
215
|
"globby": "14.1.0",
|
|
216
216
|
"happy-dom": "18.0.1",
|
|
217
|
-
"lucide-react": "0.
|
|
217
|
+
"lucide-react": "0.525.0",
|
|
218
218
|
"react": "19.1.0",
|
|
219
219
|
"react-dom": "19.1.0",
|
|
220
220
|
"react-shadow": "20.6.0",
|
|
@@ -222,12 +222,12 @@
|
|
|
222
222
|
"react-frame-component": "5.2.7",
|
|
223
223
|
"react-hook-form": "7.57.0",
|
|
224
224
|
"resize-observer-polyfill": "1.5.1",
|
|
225
|
-
"storybook": "9.0.
|
|
225
|
+
"storybook": "9.0.15",
|
|
226
226
|
"typescript": "5.8.3",
|
|
227
|
-
"vite": "
|
|
227
|
+
"vite": "7.0.2",
|
|
228
228
|
"vite-plugin-dts": "4.5.4",
|
|
229
|
-
"vitest": "3.2.
|
|
230
|
-
"@vitest/coverage-v8": "3.2.
|
|
229
|
+
"vitest": "3.2.4",
|
|
230
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
231
231
|
"vitest-axe": "1.0.0-pre.5"
|
|
232
232
|
},
|
|
233
233
|
"peerDependencies": {
|