@ark-ui/svelte 5.1.0 → 5.2.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/checkbox/checkbox-group-provider.svelte +24 -0
- package/dist/components/checkbox/checkbox-group-provider.svelte.d.ts +10 -0
- package/dist/components/checkbox/checkbox-group.svelte +2 -2
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/checkbox.js +1 -0
- package/dist/components/checkbox/index.d.ts +2 -1
- package/dist/components/checkbox/index.js +2 -1
- package/dist/components/checkbox/use-checkbox-group-context.d.ts +1 -1
- package/dist/components/checkbox/use-checkbox-group-context.js +1 -1
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/collection/use-list-collection.svelte.d.ts +59 -5
- package/dist/components/collection/use-list-collection.svelte.js +60 -33
- package/dist/components/color-picker/color-picker-content.svelte +1 -1
- package/dist/components/combobox/combobox-content.svelte +2 -2
- package/dist/components/combobox/combobox-positioner.svelte +5 -1
- package/dist/components/dialog/dialog-backdrop.svelte +1 -1
- package/dist/components/dialog/dialog-content.svelte +1 -1
- package/dist/components/factory/svg-factory.svelte +1 -1
- package/dist/components/field/field-root.svelte +1 -1
- package/dist/components/fieldset/fieldset-root.svelte +1 -1
- package/dist/components/file-upload/file-upload.d.ts +1 -1
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/focus-trap/focus-trap.svelte +1 -1
- package/dist/components/portal/portal.svelte +38 -3
- package/dist/components/portal/portal.svelte.d.ts +10 -0
- package/dist/components/select/select.d.ts +15 -13
- package/dist/components/select/select.js +13 -13
- package/package.json +71 -71
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import type { Assign, HTMLProps, PolymorphicProps, RefAttribute } from '../../types'
|
|
3
|
+
import type { UseCheckboxGroupReturn } from './use-checkbox-group.svelte'
|
|
4
|
+
|
|
5
|
+
export interface CheckboxGroupProviderBaseProps extends PolymorphicProps<'div'>, RefAttribute {
|
|
6
|
+
value: UseCheckboxGroupReturn
|
|
7
|
+
}
|
|
8
|
+
export interface CheckboxGroupProviderProps extends Assign<HTMLProps<'div'>, CheckboxGroupProviderBaseProps> {}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script lang="ts">
|
|
12
|
+
import { mergeProps } from '@zag-js/svelte'
|
|
13
|
+
import { Ark } from '../factory'
|
|
14
|
+
import { CheckboxGroupContextProvider } from './use-checkbox-group-context'
|
|
15
|
+
import { checkboxAnatomy } from './checkbox.anatomy'
|
|
16
|
+
|
|
17
|
+
let { ref = $bindable(null), value, ...props }: CheckboxGroupProviderProps = $props()
|
|
18
|
+
|
|
19
|
+
const mergedProps = $derived(mergeProps({ role: 'group', ...checkboxAnatomy.build().group.attrs }, props))
|
|
20
|
+
|
|
21
|
+
CheckboxGroupContextProvider(value)
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<Ark as="div" bind:ref {...mergedProps} />
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Assign, HTMLProps, PolymorphicProps, RefAttribute } from '../../types';
|
|
2
|
+
import type { UseCheckboxGroupReturn } from './use-checkbox-group.svelte';
|
|
3
|
+
export interface CheckboxGroupProviderBaseProps extends PolymorphicProps<'div'>, RefAttribute {
|
|
4
|
+
value: UseCheckboxGroupReturn;
|
|
5
|
+
}
|
|
6
|
+
export interface CheckboxGroupProviderProps extends Assign<HTMLProps<'div'>, CheckboxGroupProviderBaseProps> {
|
|
7
|
+
}
|
|
8
|
+
declare const CheckboxGroupProvider: import("svelte").Component<CheckboxGroupProviderProps, {}, "ref">;
|
|
9
|
+
type CheckboxGroupProvider = ReturnType<typeof CheckboxGroupProvider>;
|
|
10
|
+
export default CheckboxGroupProvider;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts">
|
|
10
10
|
import { Ark } from '../factory'
|
|
11
11
|
import { checkboxAnatomy } from './checkbox.anatomy'
|
|
12
|
-
import {
|
|
12
|
+
import { CheckboxGroupContextProvider } from './use-checkbox-group-context'
|
|
13
13
|
import { splitCheckboxGroupProps } from './split-checkbox-group-props.svelte'
|
|
14
14
|
import { useCheckboxGroup } from './use-checkbox-group.svelte'
|
|
15
15
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
const checkboxGroup = useCheckboxGroup(() => resolvedProps)
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
CheckboxGroupContextProvider(checkboxGroup)
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
34
|
<Ark as="div" bind:ref role="group" {...checkboxAnatomy.build().group.attrs} {...localProps} />
|
|
@@ -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.svelte';
|
|
3
3
|
export { default as Control, type CheckboxControlBaseProps as ControlBaseProps, type CheckboxControlProps as ControlProps, } from './checkbox-control.svelte';
|
|
4
4
|
export { default as Group, type CheckboxGroupBaseProps as GroupBaseProps, type CheckboxGroupProps as GroupProps, } from './checkbox-group.svelte';
|
|
5
|
+
export { default as GroupProvider, type CheckboxGroupProviderBaseProps as GroupProviderBaseProps, type CheckboxGroupProviderProps as GroupProviderProps, } from './checkbox-group-provider.svelte';
|
|
5
6
|
export { default as HiddenInput, type CheckboxHiddenInputBaseProps as HiddenInputBaseProps, type CheckboxHiddenInputProps as HiddenInputProps, } from './checkbox-hidden-input.svelte';
|
|
6
7
|
export { default as Indicator, type CheckboxIndicatorBaseProps as IndicatorBaseProps, type CheckboxIndicatorProps as IndicatorProps, } from './checkbox-indicator.svelte';
|
|
7
8
|
export { default as Label, type CheckboxLabelBaseProps as LabelBaseProps, type CheckboxLabelProps as LabelProps, } from './checkbox-label.svelte';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as Context } from './checkbox-context.svelte';
|
|
2
2
|
export { default as Control, } from './checkbox-control.svelte';
|
|
3
3
|
export { default as Group, } from './checkbox-group.svelte';
|
|
4
|
+
export { default as GroupProvider, } from './checkbox-group-provider.svelte';
|
|
4
5
|
export { default as HiddenInput, } from './checkbox-hidden-input.svelte';
|
|
5
6
|
export { default as Indicator, } from './checkbox-indicator.svelte';
|
|
6
7
|
export { default as Label, } from './checkbox-label.svelte';
|
|
@@ -2,6 +2,7 @@ export type { CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState
|
|
|
2
2
|
export { default as CheckboxContext, type CheckboxContextProps } from './checkbox-context.svelte';
|
|
3
3
|
export { default as CheckboxControl, type CheckboxControlBaseProps, type CheckboxControlProps, } from './checkbox-control.svelte';
|
|
4
4
|
export { default as CheckboxGroup, type CheckboxGroupBaseProps, type CheckboxGroupProps } from './checkbox-group.svelte';
|
|
5
|
+
export { default as CheckboxGroupProvider, type CheckboxGroupProviderBaseProps, type CheckboxGroupProviderProps, } from './checkbox-group-provider.svelte';
|
|
5
6
|
export { default as CheckboxHiddenInput, type CheckboxHiddenInputBaseProps, type CheckboxHiddenInputProps, } from './checkbox-hidden-input.svelte';
|
|
6
7
|
export { default as CheckboxIndicator, type CheckboxIndicatorBaseProps, type CheckboxIndicatorProps, } from './checkbox-indicator.svelte';
|
|
7
8
|
export { default as CheckboxLabel, type CheckboxLabelBaseProps, type CheckboxLabelProps } from './checkbox-label.svelte';
|
|
@@ -10,7 +11,7 @@ export { default as CheckboxRoot, type CheckboxRootBaseProps, type CheckboxRootP
|
|
|
10
11
|
export { checkboxAnatomy } from './checkbox.anatomy';
|
|
11
12
|
export { CheckboxProvider, useCheckboxContext } from './use-checkbox-context';
|
|
12
13
|
export type { UseCheckboxContext } from './use-checkbox-context';
|
|
13
|
-
export {
|
|
14
|
+
export { useCheckboxGroupContext } from './use-checkbox-group-context';
|
|
14
15
|
export type { UseCheckboxGroupContext } from './use-checkbox-group-context';
|
|
15
16
|
export { useCheckboxGroup } from './use-checkbox-group.svelte';
|
|
16
17
|
export type { UseCheckboxGroupProps, UseCheckboxGroupReturn } from './use-checkbox-group.svelte';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as CheckboxContext } from './checkbox-context.svelte';
|
|
2
2
|
export { default as CheckboxControl, } from './checkbox-control.svelte';
|
|
3
3
|
export { default as CheckboxGroup } from './checkbox-group.svelte';
|
|
4
|
+
export { default as CheckboxGroupProvider, } from './checkbox-group-provider.svelte';
|
|
4
5
|
export { default as CheckboxHiddenInput, } from './checkbox-hidden-input.svelte';
|
|
5
6
|
export { default as CheckboxIndicator, } from './checkbox-indicator.svelte';
|
|
6
7
|
export { default as CheckboxLabel } from './checkbox-label.svelte';
|
|
@@ -8,7 +9,7 @@ export { default as CheckboxRootProvider, } from './checkbox-root-provider.svelt
|
|
|
8
9
|
export { default as CheckboxRoot } from './checkbox-root.svelte';
|
|
9
10
|
export { checkboxAnatomy } from './checkbox.anatomy';
|
|
10
11
|
export { CheckboxProvider, useCheckboxContext } from './use-checkbox-context';
|
|
11
|
-
export {
|
|
12
|
+
export { useCheckboxGroupContext } from './use-checkbox-group-context';
|
|
12
13
|
export { useCheckboxGroup } from './use-checkbox-group.svelte';
|
|
13
14
|
export { useCheckbox } from './use-checkbox.svelte';
|
|
14
15
|
export * as Checkbox from './checkbox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { UseCheckboxGroupReturn } from './use-checkbox-group.svelte';
|
|
2
2
|
export interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {
|
|
3
3
|
}
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const CheckboxGroupContextProvider: (opts: UseCheckboxGroupContext) => void, useCheckboxGroupContext: (fallback?: UseCheckboxGroupContext | undefined) => UseCheckboxGroupContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from '../../utils/create-context';
|
|
2
|
-
export const [
|
|
2
|
+
export const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext({
|
|
3
3
|
name: 'CheckboxGroupContext',
|
|
4
4
|
strict: false,
|
|
5
5
|
});
|
|
@@ -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.svelte';
|
|
4
|
+
export { useListCollection, type UseListCollectionProps, type UseListCollectionReturn, } from './use-list-collection.svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { createGridCollection } from './grid-collection';
|
|
2
2
|
export { createListCollection, } from './list-collection';
|
|
3
3
|
export { createFileTreeCollection, createTreeCollection, } from './tree-collection';
|
|
4
|
-
export { useListCollection } from './use-list-collection.svelte';
|
|
4
|
+
export { useListCollection, } from './use-list-collection.svelte';
|
|
@@ -8,27 +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>(
|
|
19
|
-
|
|
18
|
+
export declare function useListCollection<T>(props: MaybeFunction<UseListCollectionProps<T>>): UseListCollectionReturn<T>;
|
|
19
|
+
export interface UseListCollectionReturn<T> {
|
|
20
|
+
/**
|
|
21
|
+
* The collection of items.
|
|
22
|
+
*/
|
|
23
|
+
collection: () => 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
|
-
|
|
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
|
+
*/
|
|
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
|
+
*/
|
|
32
83
|
prepend: (...items: T[]) => void;
|
|
84
|
+
/**
|
|
85
|
+
* The function to update an item.
|
|
86
|
+
*/
|
|
33
87
|
update: (value: string, item: T) => void;
|
|
34
|
-
}
|
|
88
|
+
}
|
|
@@ -1,67 +1,94 @@
|
|
|
1
1
|
import { runIfFn } from '@zag-js/utils';
|
|
2
|
-
import {
|
|
2
|
+
import { untrack } from 'svelte';
|
|
3
3
|
import { createListCollection } from './list-collection';
|
|
4
|
-
export function useListCollection(
|
|
5
|
-
const [
|
|
6
|
-
const { initialItems = [], filter, limit, ...collectionOptions } = runIfFn(
|
|
4
|
+
export function useListCollection(props) {
|
|
5
|
+
const [localProps, collectionOptions] = $derived.by(() => {
|
|
6
|
+
const { initialItems = [], filter, limit, ...collectionOptions } = runIfFn(props);
|
|
7
7
|
return [{ initialItems, filter, limit }, collectionOptions];
|
|
8
8
|
});
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
let items = $state(untrack(() => localProps.initialItems));
|
|
10
|
+
let filterText = $state('');
|
|
11
|
+
const setItems = (newItems) => {
|
|
12
|
+
items = newItems;
|
|
13
|
+
filterText = '';
|
|
11
14
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
collection = props.limit == null ? v : v.copy(v.items.slice(0, props.limit));
|
|
15
|
+
const create = (itemsToCreate) => {
|
|
16
|
+
return createListCollection({ ...collectionOptions, items: itemsToCreate });
|
|
15
17
|
};
|
|
18
|
+
const collection = $derived.by(() => {
|
|
19
|
+
let activeItems = items;
|
|
20
|
+
// Apply filter if we have filter text and a filter function
|
|
21
|
+
const filter = localProps.filter;
|
|
22
|
+
if (filterText && filter) {
|
|
23
|
+
activeItems = create(items).filter((itemString, _index, item) => filter(itemString, filterText, item)).items;
|
|
24
|
+
}
|
|
25
|
+
// Apply limit
|
|
26
|
+
const limitedItems = localProps.limit == null ? activeItems : activeItems.slice(0, localProps.limit);
|
|
27
|
+
return createListCollection({ ...collectionOptions, items: limitedItems });
|
|
28
|
+
});
|
|
16
29
|
return {
|
|
17
30
|
collection() {
|
|
18
31
|
return collection;
|
|
19
32
|
},
|
|
20
|
-
filter: (inputValue) => {
|
|
21
|
-
|
|
22
|
-
if (!filterFn)
|
|
23
|
-
return;
|
|
24
|
-
const filtered = create(props.initialItems).filter((itemString) => filterFn(itemString, inputValue));
|
|
25
|
-
setCollection(filtered);
|
|
33
|
+
filter: (inputValue = '') => {
|
|
34
|
+
filterText = inputValue;
|
|
26
35
|
},
|
|
27
|
-
set: (
|
|
28
|
-
|
|
36
|
+
set: (newItems) => {
|
|
37
|
+
setItems(newItems);
|
|
29
38
|
},
|
|
30
39
|
reset: () => {
|
|
31
|
-
|
|
40
|
+
setItems(localProps.initialItems);
|
|
32
41
|
},
|
|
33
42
|
clear: () => {
|
|
34
|
-
|
|
43
|
+
setItems([]);
|
|
35
44
|
},
|
|
36
|
-
insert: (index, ...
|
|
37
|
-
|
|
45
|
+
insert: (index, ...itemsToInsert) => {
|
|
46
|
+
const newItems = create(items).insert(index, ...itemsToInsert).items;
|
|
47
|
+
setItems(newItems);
|
|
38
48
|
},
|
|
39
|
-
insertBefore: (value, ...
|
|
40
|
-
|
|
49
|
+
insertBefore: (value, ...itemsToInsert) => {
|
|
50
|
+
const newItems = create(items).insertBefore(value, ...itemsToInsert).items;
|
|
51
|
+
setItems(newItems);
|
|
41
52
|
},
|
|
42
|
-
insertAfter: (value, ...
|
|
43
|
-
|
|
53
|
+
insertAfter: (value, ...itemsToInsert) => {
|
|
54
|
+
const newItems = create(items).insertAfter(value, ...itemsToInsert).items;
|
|
55
|
+
setItems(newItems);
|
|
44
56
|
},
|
|
45
57
|
remove: (...itemOrValues) => {
|
|
46
|
-
|
|
58
|
+
const newItems = create(items).remove(...itemOrValues).items;
|
|
59
|
+
setItems(newItems);
|
|
47
60
|
},
|
|
48
61
|
move: (value, to) => {
|
|
49
|
-
|
|
62
|
+
const newItems = create(items).move(value, to).items;
|
|
63
|
+
setItems(newItems);
|
|
50
64
|
},
|
|
51
65
|
moveBefore: (value, ...values) => {
|
|
52
|
-
|
|
66
|
+
const newItems = create(items).moveBefore(value, ...values).items;
|
|
67
|
+
setItems(newItems);
|
|
53
68
|
},
|
|
54
69
|
moveAfter: (value, ...values) => {
|
|
55
|
-
|
|
70
|
+
const newItems = create(items).moveAfter(value, ...values).items;
|
|
71
|
+
setItems(newItems);
|
|
56
72
|
},
|
|
57
73
|
reorder: (from, to) => {
|
|
58
|
-
|
|
74
|
+
const newItems = create(items).reorder(from, to).items;
|
|
75
|
+
setItems(newItems);
|
|
76
|
+
},
|
|
77
|
+
append: (...itemsToAppend) => {
|
|
78
|
+
const newItems = create(items).append(...itemsToAppend).items;
|
|
79
|
+
setItems(newItems);
|
|
80
|
+
},
|
|
81
|
+
upsert: (value, item, mode = 'append') => {
|
|
82
|
+
const newItems = create(items).upsert(value, item, mode).items;
|
|
83
|
+
setItems(newItems);
|
|
59
84
|
},
|
|
60
|
-
prepend: (...
|
|
61
|
-
|
|
85
|
+
prepend: (...itemsToPrepend) => {
|
|
86
|
+
const newItems = create(items).prepend(...itemsToPrepend).items;
|
|
87
|
+
setItems(newItems);
|
|
62
88
|
},
|
|
63
89
|
update: (value, item) => {
|
|
64
|
-
|
|
90
|
+
const newItems = create(items).update(value, item).items;
|
|
91
|
+
setItems(newItems);
|
|
65
92
|
},
|
|
66
93
|
};
|
|
67
94
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { usePresenceContext } from '../presence'
|
|
12
12
|
import { useColorPickerContext } from './use-color-picker-context'
|
|
13
13
|
|
|
14
|
-
let { ref = $bindable
|
|
14
|
+
let { ref = $bindable(null), ...props }: ColorPickerContentProps = $props()
|
|
15
15
|
|
|
16
16
|
const colorPicker = useColorPickerContext()
|
|
17
17
|
const presence = usePresenceContext()
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { useComboboxContext } from './use-combobox-context'
|
|
12
12
|
import { usePresenceContext } from '../presence'
|
|
13
13
|
|
|
14
|
-
let { ref = $bindable
|
|
14
|
+
let { ref = $bindable(null), ...props }: ComboboxContentProps = $props()
|
|
15
15
|
|
|
16
16
|
const combobox = useComboboxContext()
|
|
17
17
|
const presence = usePresenceContext()
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
|
-
{#if presence().
|
|
25
|
+
{#if !presence().unmounted}
|
|
26
26
|
<Ark as="div" bind:ref {...mergedProps} {@attach setNode} />
|
|
27
27
|
{/if}
|
|
@@ -9,11 +9,15 @@
|
|
|
9
9
|
import { mergeProps } from '@zag-js/svelte'
|
|
10
10
|
import { Ark } from '../factory'
|
|
11
11
|
import { useComboboxContext } from './use-combobox-context'
|
|
12
|
+
import { usePresenceContext } from '../presence'
|
|
12
13
|
|
|
13
14
|
let { ref = $bindable(null), ...props }: ComboboxPositionerProps = $props()
|
|
14
15
|
|
|
15
16
|
const combobox = useComboboxContext()
|
|
17
|
+
const presence = usePresenceContext()
|
|
16
18
|
const mergedProps = $derived(mergeProps(combobox().getPositionerProps(), props))
|
|
17
19
|
</script>
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
{#if !presence().unmounted}
|
|
22
|
+
<Ark as="div" bind:ref {...mergedProps} />
|
|
23
|
+
{/if}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import { usePresence } from '../presence'
|
|
15
15
|
import { useDialogContext } from './use-dialog-context'
|
|
16
16
|
|
|
17
|
-
let { ref = $bindable
|
|
17
|
+
let { ref = $bindable(null), ...props }: DialogBackdropProps = $props()
|
|
18
18
|
|
|
19
19
|
const dialog = useDialogContext()
|
|
20
20
|
const renderStrategyProps = useRenderStrategyPropsContext()
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { usePresenceContext } from '../presence'
|
|
14
14
|
import { useDialogContext } from './use-dialog-context'
|
|
15
15
|
|
|
16
|
-
let { ref = $bindable
|
|
16
|
+
let { ref = $bindable(null), ...props }: DialogContentProps = $props()
|
|
17
17
|
|
|
18
18
|
const dialog = useDialogContext()
|
|
19
19
|
const presence = usePresenceContext()
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { FieldProvider } from './use-field-context'
|
|
14
14
|
import { useField } from './use-field.svelte'
|
|
15
15
|
|
|
16
|
-
let { ref = $bindable
|
|
16
|
+
let { ref = $bindable(null), ...props }: FieldRootProps = $props()
|
|
17
17
|
|
|
18
18
|
const [useFieldProps, localProps] = $derived(
|
|
19
19
|
createSplitProps<UseFieldProps>()(props, ['id', 'ids', 'disabled', 'invalid', 'readOnly', 'required']),
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { FieldsetProvider } from './use-fieldset-context'
|
|
14
14
|
import { useFieldset } from './use-fieldset.svelte'
|
|
15
15
|
|
|
16
|
-
let { ref = $bindable
|
|
16
|
+
let { ref = $bindable(null), ...props }: FieldsetRootProps = $props()
|
|
17
17
|
|
|
18
18
|
const [useFieldsetProps, localProps] = $derived(
|
|
19
19
|
createSplitProps<UseFieldsetProps>()(props, ['id', 'disabled', 'invalid']),
|
|
@@ -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.svelte';
|
|
3
3
|
export { default as Context, type FileUploadContextProps as ContextProps } from './file-upload-context.svelte';
|
|
4
4
|
export { default as Dropzone, type FileUploadDropzoneBaseProps as DropzoneBaseProps, type FileUploadDropzoneProps as DropzoneProps, } from './file-upload-dropzone.svelte';
|
|
@@ -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.svelte';
|
|
3
3
|
export { default as FileUploadContext, type FileUploadContextProps } from './file-upload-context.svelte';
|
|
4
4
|
export { default as FileUploadDropzone, type FileUploadDropzoneBaseProps, type FileUploadDropzoneProps, } from './file-upload-dropzone.svelte';
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
export interface FocusTrapBaseProps extends PolymorphicProps<'div'>, RefAttribute, TrapOptions {}
|
|
19
19
|
export interface FocusTrapProps extends Assign<HTMLProps<'div'>, FocusTrapBaseProps> {}
|
|
20
20
|
|
|
21
|
-
let { ref = $bindable
|
|
21
|
+
let { ref = $bindable(null), ...props }: FocusTrapProps = $props()
|
|
22
22
|
|
|
23
23
|
const [trapProps, localProps] = $derived(
|
|
24
24
|
createSplitProps<TrapOptions>()(props, [
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import type { Snippet } from 'svelte'
|
|
3
|
+
|
|
3
4
|
export interface PortalProps {
|
|
5
|
+
/**
|
|
6
|
+
* If true, the portal will not be rendered.
|
|
7
|
+
*/
|
|
8
|
+
disabled?: boolean
|
|
9
|
+
/**
|
|
10
|
+
* The container to render the portal into.
|
|
11
|
+
*/
|
|
4
12
|
container?: HTMLElement
|
|
13
|
+
/**
|
|
14
|
+
* The children to render in the portal.
|
|
15
|
+
*/
|
|
5
16
|
children: Snippet
|
|
6
17
|
}
|
|
7
18
|
</script>
|
|
@@ -13,13 +24,37 @@
|
|
|
13
24
|
import { getAllContexts, mount, unmount } from 'svelte'
|
|
14
25
|
import PortalConsumer from './portal-consumer.svelte'
|
|
15
26
|
|
|
16
|
-
const { container = globalThis?.document?.body, children }: PortalProps = $props()
|
|
27
|
+
const { container = globalThis?.document?.body, children, disabled = false }: PortalProps = $props()
|
|
17
28
|
|
|
18
29
|
const context = getAllContexts()
|
|
19
30
|
|
|
31
|
+
let instance: ReturnType<typeof mount> | null = null
|
|
32
|
+
|
|
33
|
+
const unmountInstance = () => {
|
|
34
|
+
if (instance) {
|
|
35
|
+
unmount(instance)
|
|
36
|
+
instance = null
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
20
40
|
$effect(() => {
|
|
21
|
-
|
|
41
|
+
if (disabled || !container) {
|
|
42
|
+
unmountInstance()
|
|
43
|
+
return
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
instance = mount(PortalConsumer, {
|
|
47
|
+
target: container,
|
|
48
|
+
props: { children },
|
|
49
|
+
context,
|
|
50
|
+
})
|
|
22
51
|
|
|
23
|
-
return () =>
|
|
52
|
+
return () => {
|
|
53
|
+
unmountInstance()
|
|
54
|
+
}
|
|
24
55
|
})
|
|
25
56
|
</script>
|
|
57
|
+
|
|
58
|
+
{#if disabled}
|
|
59
|
+
{@render children?.()}
|
|
60
|
+
{/if}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
export interface PortalProps {
|
|
3
|
+
/**
|
|
4
|
+
* If true, the portal will not be rendered.
|
|
5
|
+
*/
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The container to render the portal into.
|
|
9
|
+
*/
|
|
3
10
|
container?: HTMLElement;
|
|
11
|
+
/**
|
|
12
|
+
* The children to render in the portal.
|
|
13
|
+
*/
|
|
4
14
|
children: Snippet;
|
|
5
15
|
}
|
|
6
16
|
declare const Portal: import("svelte").Component<PortalProps, {}, "">;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
3
|
-
export { default as Context, type SelectContextProps as ContextProps } from './select-context.svelte';
|
|
4
|
-
export { default as Control, type SelectControlProps as ControlProps, type SelectControlBaseProps as ControlBaseProps, } from './select-control.svelte';
|
|
5
|
-
export { default as Trigger, type SelectTriggerProps as TriggerProps } from './select-trigger.svelte';
|
|
6
|
-
export { default as Label, type SelectLabelProps as LabelProps } from './select-label.svelte';
|
|
1
|
+
export type { HighlightChangeDetails, OpenChangeDetails, ValueChangeDetails } from '@zag-js/select';
|
|
2
|
+
export type { CollectionItem, ListCollection } from '../collection';
|
|
7
3
|
export { default as ClearTrigger, type SelectClearTriggerProps as ClearTriggerProps, } from './select-clear-trigger.svelte';
|
|
8
|
-
export { default as Indicator, type SelectIndicatorProps as IndicatorProps } from './select-indicator.svelte';
|
|
9
|
-
export { default as ValueText, type SelectValueTextProps as ValueTextProps } from './select-value-text.svelte';
|
|
10
|
-
export { default as Positioner, type SelectPositionerProps as PositionerProps } from './select-positioner.svelte';
|
|
11
4
|
export { default as Content, type SelectContentProps as ContentProps } from './select-content.svelte';
|
|
12
|
-
export { default as
|
|
5
|
+
export { default as Context, type SelectContextProps as ContextProps } from './select-context.svelte';
|
|
6
|
+
export { default as Control, type SelectControlBaseProps as ControlBaseProps, type SelectControlProps as ControlProps, } from './select-control.svelte';
|
|
13
7
|
export { default as HiddenSelect, type SelectHiddenSelectProps as HiddenSelectProps, } from './select-hidden-select.svelte';
|
|
14
|
-
export { default as
|
|
8
|
+
export { default as Indicator, type SelectIndicatorProps as IndicatorProps } from './select-indicator.svelte';
|
|
15
9
|
export { default as ItemContext, type SelectItemContextProps as ItemContextProps } from './select-item-context.svelte';
|
|
16
|
-
export { default as ItemGroup, type SelectItemGroupProps as ItemGroupProps } from './select-item-group.svelte';
|
|
17
10
|
export { default as ItemGroupLabel, type SelectItemGroupLabelProps as ItemGroupLabelProps, } from './select-item-group-label.svelte';
|
|
18
|
-
export { default as
|
|
11
|
+
export { default as ItemGroup, type SelectItemGroupProps as ItemGroupProps } from './select-item-group.svelte';
|
|
19
12
|
export { default as ItemIndicator, type SelectItemIndicatorProps as ItemIndicatorProps, } from './select-item-indicator.svelte';
|
|
13
|
+
export { default as ItemText, type SelectItemTextProps as ItemTextProps } from './select-item-text.svelte';
|
|
14
|
+
export { default as Item, type SelectItemProps as ItemProps } from './select-item.svelte';
|
|
15
|
+
export { default as Label, type SelectLabelProps as LabelProps } from './select-label.svelte';
|
|
16
|
+
export { default as List, type SelectListProps as ListProps } from './select-list.svelte';
|
|
17
|
+
export { default as Positioner, type SelectPositionerProps as PositionerProps } from './select-positioner.svelte';
|
|
18
|
+
export { default as RootProvider, type SelectRootProviderBaseProps as RootProviderBaseProps, type SelectRootProviderProps as RootProviderProps, } from './select-root-provider.svelte';
|
|
19
|
+
export { default as Root, type SelectRootBaseProps as RootBaseProps, type SelectRootProps as RootProps, } from './select-root.svelte';
|
|
20
|
+
export { default as Trigger, type SelectTriggerProps as TriggerProps } from './select-trigger.svelte';
|
|
21
|
+
export { default as ValueText, type SelectValueTextProps as ValueTextProps } from './select-value-text.svelte';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { default as Root, } from './select-root.svelte';
|
|
2
|
-
export { default as RootProvider, } from './select-root-provider.svelte';
|
|
3
|
-
export { default as Context } from './select-context.svelte';
|
|
4
|
-
export { default as Control, } from './select-control.svelte';
|
|
5
|
-
export { default as Trigger } from './select-trigger.svelte';
|
|
6
|
-
export { default as Label } from './select-label.svelte';
|
|
7
1
|
export { default as ClearTrigger, } from './select-clear-trigger.svelte';
|
|
8
|
-
export { default as Indicator } from './select-indicator.svelte';
|
|
9
|
-
export { default as ValueText } from './select-value-text.svelte';
|
|
10
|
-
export { default as Positioner } from './select-positioner.svelte';
|
|
11
2
|
export { default as Content } from './select-content.svelte';
|
|
12
|
-
export { default as
|
|
3
|
+
export { default as Context } from './select-context.svelte';
|
|
4
|
+
export { default as Control, } from './select-control.svelte';
|
|
13
5
|
export { default as HiddenSelect, } from './select-hidden-select.svelte';
|
|
14
|
-
export { default as
|
|
6
|
+
export { default as Indicator } from './select-indicator.svelte';
|
|
15
7
|
export { default as ItemContext } from './select-item-context.svelte';
|
|
16
|
-
export { default as ItemGroup } from './select-item-group.svelte';
|
|
17
8
|
export { default as ItemGroupLabel, } from './select-item-group-label.svelte';
|
|
18
|
-
export { default as
|
|
9
|
+
export { default as ItemGroup } from './select-item-group.svelte';
|
|
19
10
|
export { default as ItemIndicator, } from './select-item-indicator.svelte';
|
|
11
|
+
export { default as ItemText } from './select-item-text.svelte';
|
|
12
|
+
export { default as Item } from './select-item.svelte';
|
|
13
|
+
export { default as Label } from './select-label.svelte';
|
|
14
|
+
export { default as List } from './select-list.svelte';
|
|
15
|
+
export { default as Positioner } from './select-positioner.svelte';
|
|
16
|
+
export { default as RootProvider, } from './select-root-provider.svelte';
|
|
17
|
+
export { default as Root, } from './select-root.svelte';
|
|
18
|
+
export { default as Trigger } from './select-trigger.svelte';
|
|
19
|
+
export { default as ValueText } from './select-value-text.svelte';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/svelte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for Svelte",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -120,85 +120,85 @@
|
|
|
120
120
|
"sideEffects": false,
|
|
121
121
|
"dependencies": {
|
|
122
122
|
"@internationalized/date": "3.8.2",
|
|
123
|
-
"@zag-js/accordion": "1.18.
|
|
124
|
-
"@zag-js/angle-slider": "1.18.
|
|
125
|
-
"@zag-js/anatomy": "1.18.
|
|
126
|
-
"@zag-js/auto-resize": "1.18.
|
|
127
|
-
"@zag-js/avatar": "1.18.
|
|
128
|
-
"@zag-js/carousel": "1.18.
|
|
129
|
-
"@zag-js/checkbox": "1.18.
|
|
130
|
-
"@zag-js/clipboard": "1.18.
|
|
131
|
-
"@zag-js/collapsible": "1.18.
|
|
132
|
-
"@zag-js/collection": "1.18.
|
|
133
|
-
"@zag-js/color-picker": "1.18.
|
|
134
|
-
"@zag-js/color-utils": "1.18.
|
|
135
|
-
"@zag-js/combobox": "1.18.
|
|
136
|
-
"@zag-js/core": "1.18.
|
|
137
|
-
"@zag-js/date-picker": "1.18.
|
|
138
|
-
"@zag-js/date-utils": "1.18.
|
|
139
|
-
"@zag-js/dialog": "1.18.
|
|
140
|
-
"@zag-js/dom-query": "1.18.
|
|
141
|
-
"@zag-js/editable": "1.18.
|
|
142
|
-
"@zag-js/file-upload": "1.18.
|
|
143
|
-
"@zag-js/file-utils": "1.18.
|
|
144
|
-
"@zag-js/focus-trap": "1.18.
|
|
145
|
-
"@zag-js/floating-panel": "1.18.
|
|
146
|
-
"@zag-js/highlight-word": "1.18.
|
|
147
|
-
"@zag-js/hover-card": "1.18.
|
|
148
|
-
"@zag-js/i18n-utils": "1.18.
|
|
149
|
-
"@zag-js/listbox": "1.18.
|
|
150
|
-
"@zag-js/menu": "1.18.
|
|
151
|
-
"@zag-js/number-input": "1.18.
|
|
152
|
-
"@zag-js/pagination": "1.18.
|
|
153
|
-
"@zag-js/password-input": "1.18.
|
|
154
|
-
"@zag-js/pin-input": "1.18.
|
|
155
|
-
"@zag-js/popover": "1.18.
|
|
156
|
-
"@zag-js/presence": "1.18.
|
|
157
|
-
"@zag-js/progress": "1.18.
|
|
158
|
-
"@zag-js/qr-code": "1.18.
|
|
159
|
-
"@zag-js/radio-group": "1.18.
|
|
160
|
-
"@zag-js/rating-group": "1.18.
|
|
161
|
-
"@zag-js/svelte": "1.18.
|
|
162
|
-
"@zag-js/select": "1.18.
|
|
163
|
-
"@zag-js/signature-pad": "1.18.
|
|
164
|
-
"@zag-js/slider": "1.18.
|
|
165
|
-
"@zag-js/splitter": "1.18.
|
|
166
|
-
"@zag-js/steps": "1.18.
|
|
167
|
-
"@zag-js/switch": "1.18.
|
|
168
|
-
"@zag-js/tabs": "1.18.
|
|
169
|
-
"@zag-js/tags-input": "1.18.
|
|
170
|
-
"@zag-js/time-picker": "1.18.
|
|
171
|
-
"@zag-js/timer": "1.18.
|
|
172
|
-
"@zag-js/toast": "1.18.
|
|
173
|
-
"@zag-js/toggle": "1.18.
|
|
174
|
-
"@zag-js/toggle-group": "1.18.
|
|
175
|
-
"@zag-js/tooltip": "1.18.
|
|
176
|
-
"@zag-js/tour": "1.18.
|
|
177
|
-
"@zag-js/tree-view": "1.18.
|
|
178
|
-
"@zag-js/types": "1.18.
|
|
179
|
-
"@zag-js/utils": "1.18.
|
|
123
|
+
"@zag-js/accordion": "1.18.4",
|
|
124
|
+
"@zag-js/angle-slider": "1.18.4",
|
|
125
|
+
"@zag-js/anatomy": "1.18.4",
|
|
126
|
+
"@zag-js/auto-resize": "1.18.4",
|
|
127
|
+
"@zag-js/avatar": "1.18.4",
|
|
128
|
+
"@zag-js/carousel": "1.18.4",
|
|
129
|
+
"@zag-js/checkbox": "1.18.4",
|
|
130
|
+
"@zag-js/clipboard": "1.18.4",
|
|
131
|
+
"@zag-js/collapsible": "1.18.4",
|
|
132
|
+
"@zag-js/collection": "1.18.4",
|
|
133
|
+
"@zag-js/color-picker": "1.18.4",
|
|
134
|
+
"@zag-js/color-utils": "1.18.4",
|
|
135
|
+
"@zag-js/combobox": "1.18.4",
|
|
136
|
+
"@zag-js/core": "1.18.4",
|
|
137
|
+
"@zag-js/date-picker": "1.18.4",
|
|
138
|
+
"@zag-js/date-utils": "1.18.4",
|
|
139
|
+
"@zag-js/dialog": "1.18.4",
|
|
140
|
+
"@zag-js/dom-query": "1.18.4",
|
|
141
|
+
"@zag-js/editable": "1.18.4",
|
|
142
|
+
"@zag-js/file-upload": "1.18.4",
|
|
143
|
+
"@zag-js/file-utils": "1.18.4",
|
|
144
|
+
"@zag-js/focus-trap": "1.18.4",
|
|
145
|
+
"@zag-js/floating-panel": "1.18.4",
|
|
146
|
+
"@zag-js/highlight-word": "1.18.4",
|
|
147
|
+
"@zag-js/hover-card": "1.18.4",
|
|
148
|
+
"@zag-js/i18n-utils": "1.18.4",
|
|
149
|
+
"@zag-js/listbox": "1.18.4",
|
|
150
|
+
"@zag-js/menu": "1.18.4",
|
|
151
|
+
"@zag-js/number-input": "1.18.4",
|
|
152
|
+
"@zag-js/pagination": "1.18.4",
|
|
153
|
+
"@zag-js/password-input": "1.18.4",
|
|
154
|
+
"@zag-js/pin-input": "1.18.4",
|
|
155
|
+
"@zag-js/popover": "1.18.4",
|
|
156
|
+
"@zag-js/presence": "1.18.4",
|
|
157
|
+
"@zag-js/progress": "1.18.4",
|
|
158
|
+
"@zag-js/qr-code": "1.18.4",
|
|
159
|
+
"@zag-js/radio-group": "1.18.4",
|
|
160
|
+
"@zag-js/rating-group": "1.18.4",
|
|
161
|
+
"@zag-js/svelte": "1.18.4",
|
|
162
|
+
"@zag-js/select": "1.18.4",
|
|
163
|
+
"@zag-js/signature-pad": "1.18.4",
|
|
164
|
+
"@zag-js/slider": "1.18.4",
|
|
165
|
+
"@zag-js/splitter": "1.18.4",
|
|
166
|
+
"@zag-js/steps": "1.18.4",
|
|
167
|
+
"@zag-js/switch": "1.18.4",
|
|
168
|
+
"@zag-js/tabs": "1.18.4",
|
|
169
|
+
"@zag-js/tags-input": "1.18.4",
|
|
170
|
+
"@zag-js/time-picker": "1.18.4",
|
|
171
|
+
"@zag-js/timer": "1.18.4",
|
|
172
|
+
"@zag-js/toast": "1.18.4",
|
|
173
|
+
"@zag-js/toggle": "1.18.4",
|
|
174
|
+
"@zag-js/toggle-group": "1.18.4",
|
|
175
|
+
"@zag-js/tooltip": "1.18.4",
|
|
176
|
+
"@zag-js/tour": "1.18.4",
|
|
177
|
+
"@zag-js/tree-view": "1.18.4",
|
|
178
|
+
"@zag-js/types": "1.18.4",
|
|
179
|
+
"@zag-js/utils": "1.18.4"
|
|
180
180
|
},
|
|
181
181
|
"devDependencies": {
|
|
182
|
-
"@storybook/addon-a11y": "9.0.
|
|
183
|
-
"@storybook/sveltekit": "9.0.
|
|
182
|
+
"@storybook/addon-a11y": "9.0.17",
|
|
183
|
+
"@storybook/sveltekit": "9.0.17",
|
|
184
184
|
"@sveltejs/adapter-auto": "6.0.1",
|
|
185
|
-
"@sveltejs/kit": "2.
|
|
186
|
-
"@sveltejs/package": "2.
|
|
187
|
-
"@sveltejs/vite-plugin-svelte": "
|
|
188
|
-
"@tanstack/svelte-form": "1.
|
|
185
|
+
"@sveltejs/kit": "2.25.0",
|
|
186
|
+
"@sveltejs/package": "2.4.0",
|
|
187
|
+
"@sveltejs/vite-plugin-svelte": "6.1.0",
|
|
188
|
+
"@tanstack/svelte-form": "1.14.0",
|
|
189
189
|
"@testing-library/jest-dom": "6.6.3",
|
|
190
190
|
"@testing-library/svelte": "5.2.8",
|
|
191
191
|
"@testing-library/user-event": "14.6.1",
|
|
192
|
-
"@vitest/coverage-v8": "3.2.
|
|
192
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
193
193
|
"clean-package": "2.2.0",
|
|
194
|
-
"lucide-svelte": "0.
|
|
195
|
-
"storybook": "9.0.
|
|
196
|
-
"svelte": "5.
|
|
197
|
-
"svelte-check": "4.
|
|
194
|
+
"lucide-svelte": "0.525.0",
|
|
195
|
+
"storybook": "9.0.17",
|
|
196
|
+
"svelte": "5.36.7",
|
|
197
|
+
"svelte-check": "4.3.0",
|
|
198
198
|
"tslib": "2.8.1",
|
|
199
199
|
"typescript": "5.8.3",
|
|
200
|
-
"vite": "
|
|
201
|
-
"vitest": "3.2.
|
|
200
|
+
"vite": "7.0.5",
|
|
201
|
+
"vitest": "3.2.4"
|
|
202
202
|
},
|
|
203
203
|
"peerDependencies": {
|
|
204
204
|
"svelte": ">=5.20.0"
|